/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-header {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background-color: #26a2ff;
    box-sizing: border-box;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    height: 40px;
    line-height: 1;
    padding: 0 10px;
    position: relative;
    text-align: center;
    white-space: nowrap;
}
.mint-header .mint-button {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    display: inline-block;
    padding: 0;
    font-size: inherit
}
.mint-header .mint-button::after {
    content: none;
}
.mint-header.is-fixed {
    top: 0;
    right: 0;
    left: 0;
    position: fixed;
    z-index: 1;
}
.mint-header-button {
    -webkit-box-flex: .5;
        -ms-flex: .5;
            flex: .5;
}
.mint-header-button > a {
    color: inherit;
}
.mint-header-button.is-right {
    text-align: right;
}
.mint-header-button.is-left {
    text-align: left;
}
.mint-header-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit;
    font-weight: 400;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-button {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border-radius: 4px;
    border: 0;
    box-sizing: border-box;
    color: inherit;
    display: block;
    font-size: 18px;
    height: 41px;
    outline: 0;
    overflow: hidden;
    position: relative;
    text-align: center
}
.mint-button::after {
    background-color: #000;
    content: " ";
    opacity: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute
}
.mint-button:not(.is-disabled):active::after {
    opacity: .4
}
.mint-button.is-disabled {
    opacity: .6
}
.mint-button-icon {
    vertical-align: middle;
    display: inline-block
}
.mint-button--default {
    color: #656b79;
    background-color: #f6f8fa;
    box-shadow: 0 0 1px #b8bbbf
}
.mint-button--default.is-plain {
    border: 1px solid #5a5a5a;
    background-color: transparent;
    box-shadow: none;
    color: #5a5a5a
}
.mint-button--primary {
    color: #fff;
    background-color: #26a2ff
}
.mint-button--primary.is-plain {
    border: 1px solid #26a2ff;
    background-color: transparent;
    color: #26a2ff
}
.mint-button--danger {
    color: #fff;
    background-color: #ef4f4f
}
.mint-button--danger.is-plain {
    border: 1px solid #ef4f4f;
    background-color: transparent;
    color: #ef4f4f
}
.mint-button--large {
    display: block;
    width: 100%
}
.mint-button--normal {
    display: inline-block;
    padding: 0 12px
}
.mint-button--small {
    display: inline-block;
    font-size: 14px;
    padding: 0 12px;
    height: 33px
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-cell {
    background-color:#fff;
    box-sizing:border-box;
    color:inherit;
    min-height:48px;
    display:block;
    overflow:hidden;
    position:relative;
    text-decoration:none;
}
.mint-cell img {
    vertical-align:middle;
}
.mint-cell:first-child .mint-cell-wrapper {
    background-origin:border-box;
}
.mint-cell:last-child {
    background-image:-webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%);
    background-image:linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
    background-size:100% 1px;
    background-repeat:no-repeat;
    background-position:bottom;
}
.mint-cell-wrapper {
    background-image:-webkit-linear-gradient(top, #d9d9d9, #d9d9d9 50%, transparent 50%);
    background-image:linear-gradient(180deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
    background-size: 120% 1px;
    background-repeat: no-repeat;
    background-position: top left;
    background-origin: content-box;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 16px;
    line-height: 1;
    min-height: inherit;
    overflow: hidden;
    padding: 0 10px;
    width: 100%;
}
.mint-cell-mask {}
.mint-cell-mask::after {
    background-color:#000;
    content:" ";
    opacity:0;
    top:0;
    right:0;
    bottom:0;
    left:0;
    position:absolute;
}
.mint-cell-mask:active::after {
    opacity:.1;
}
.mint-cell-text {
    vertical-align: middle;
}
.mint-cell-label {
    color: #888;
    display: block;
    font-size: 12px;
    margin-top: 6px;
}
.mint-cell-title {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}
.mint-cell-value {
    color: #888;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.mint-cell-value.is-link {
    margin-right:24px;
}
.mint-cell-left {
    position: absolute;
    height: 100%;
    left: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
            transform: translate3d(-100%, 0, 0);
}
.mint-cell-right {
    position: absolute;
    height: 100%;
    right: 0;
    top: 0;
    -webkit-transform: translate3d(100%, 0, 0);
            transform: translate3d(100%, 0, 0);
}
.mint-cell-allow-right::after {
    border: solid 2px #c8c8cd;
    border-bottom-width: 0;
    border-left-width: 0;
    content: " ";
    top:50%;
    right:20px;
    position: absolute;
    width:5px;
    height:5px;
    -webkit-transform: translateY(-50%) rotate(45deg);
            transform: translateY(-50%) rotate(45deg);
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-cell-swipe .mint-cell-wrapper {
    position: relative;
}
.mint-cell-swipe .mint-cell-wrapper, .mint-cell-swipe .mint-cell-left, .mint-cell-swipe .mint-cell-right {
    -webkit-transition: -webkit-transform 150ms ease-in-out;
    transition: -webkit-transform 150ms ease-in-out;
    transition: transform 150ms ease-in-out;
    transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out;
}
.mint-cell-swipe-buttongroup {
    height: 100%;
}
.mint-cell-swipe-button {
    height: 100%;
    display: inline-block;
    padding: 0 10px;
    line-height: 48px;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-field {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.mint-field .mint-cell-title {
    width: 105px;
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
}
.mint-field .mint-cell-value {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    color: inherit;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.mint-field.is-nolabel .mint-cell-title {
    display: none;
}
.mint-field.is-textarea {
    -webkit-box-align: inherit;
        -ms-flex-align: inherit;
            align-items: inherit;
}
.mint-field.is-textarea .mint-cell-title {
    padding: 10px 0;
}
.mint-field.is-textarea .mint-cell-value {
    padding: 5px 0;
}
.mint-field-core {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border-radius: 0;
    border: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    outline: 0;
    line-height: 1.6;
    font-size: inherit;
    width: 100%;
}
.mint-field-clear {
    opacity: .2;
}
.mint-field-state {
    color: inherit;
    margin-left: 20px;
}
.mint-field-state .mintui {
    font-size: 20px;
}
.mint-field-state.is-default {
    margin-left: 0;
}
.mint-field-state.is-success {
    color: #4caf50;
}
.mint-field-state.is-warning {
    color: #ffc107;
}
.mint-field-state.is-error {
    color: #f44336;
}
.mint-field-other {
    top: 0;
    right: 0;
    position: relative;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-badge {
    color: #fff;
    text-align: center;
    display: inline-block
}
.mint-badge.is-size-large {
    border-radius: 14px;
    font-size: 18px;
    padding: 2px 10px
}
.mint-badge.is-size-small {
    border-radius: 8px;
    font-size: 12px;
    padding: 2px 6px
}
.mint-badge.is-size-normal {
    border-radius: 12px;
    font-size: 15px;
    padding: 2px 8px
}
.mint-badge.is-warning {
    background-color: #ffc107
}
.mint-badge.is-error {
    background-color: #f44336
}
.mint-badge.is-primary {
    background-color: #26a2ff
}
.mint-badge.is-success {
    background-color: #4caf50
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-switch {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    position: relative;
}
.mint-switch * {
    pointer-events: none;
}
.mint-switch-label {
    margin-left: 10px;
    display: inline-block;
}
.mint-switch-label:empty {
    margin-left: 0;
}
.mint-switch-core {
    display: inline-block;
    position: relative;
    width: 52px;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    box-sizing: border-box;
    background: #d9d9d9;
}
.mint-switch-core::after, .mint-switch-core::before {
    content: " ";
    top: 0;
    left: 0;
    position: absolute;
    -webkit-transition: -webkit-transform .3s;
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
    border-radius: 15px;
}
.mint-switch-core::after {
    width: 30px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.mint-switch-core::before {
    width: 50px;
    height: 30px;
    background-color: #fdfdfd;
}
.mint-switch-input {
    display: none;
}
.mint-switch-input:checked + .mint-switch-core {
    border-color: #26a2ff;
    background-color: #26a2ff;
}
.mint-switch-input:checked + .mint-switch-core::before {
    -webkit-transform: scale(0);
            transform: scale(0);
}
.mint-switch-input:checked + .mint-switch-core::after {
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
}

.mint-spinner-snake {
  -webkit-animation: mint-spinner-rotate 0.8s infinite linear;
          animation: mint-spinner-rotate 0.8s infinite linear;
  border: 4px solid transparent;
  border-radius: 50%;
}
@-webkit-keyframes mint-spinner-rotate {
0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
}
100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
}
}
@keyframes mint-spinner-rotate {
0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
}
100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
}
}

.mint-spinner-double-bounce {
position: relative;
}
.mint-spinner-double-bounce-bounce1, .mint-spinner-double-bounce-bounce2 {
width: 100%;
height: 100%;
border-radius: 50%;
opacity: 0.6;
position: absolute;
top: 0;
left: 0;
-webkit-animation: mint-spinner-double-bounce 2.0s infinite ease-in-out;
        animation: mint-spinner-double-bounce 2.0s infinite ease-in-out;
}
.mint-spinner-double-bounce-bounce2 {
-webkit-animation-delay: -1.0s;
        animation-delay: -1.0s;
}
@-webkit-keyframes mint-spinner-double-bounce {
0%, 100% {
    -webkit-transform: scale(0.0);
            transform: scale(0.0);
}
50% {
    -webkit-transform: scale(1.0);
            transform: scale(1.0);
}
}
@keyframes mint-spinner-double-bounce {
0%, 100% {
    -webkit-transform: scale(0.0);
            transform: scale(0.0);
}
50% {
    -webkit-transform: scale(1.0);
            transform: scale(1.0);
}
}

.mint-spinner-triple-bounce {}
.mint-spinner-triple-bounce-bounce1, .mint-spinner-triple-bounce-bounce2, .mint-spinner-triple-bounce-bounce3 {
border-radius: 100%;
display: inline-block;
-webkit-animation: mint-spinner-triple-bounce 1.4s infinite ease-in-out both;
        animation: mint-spinner-triple-bounce 1.4s infinite ease-in-out both;
}
.mint-spinner-triple-bounce-bounce1 {
-webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
}
.mint-spinner-triple-bounce-bounce2 {
-webkit-animation-delay: -0.16s;
        animation-delay: -0.16s;
}
@-webkit-keyframes mint-spinner-triple-bounce {
0%, 80%, 100% {
    -webkit-transform: scale(0);
            transform: scale(0);
}
40% {
    -webkit-transform: scale(1.0);
            transform: scale(1.0);
}
}
@keyframes mint-spinner-triple-bounce {
0%, 80%, 100% {
    -webkit-transform: scale(0);
            transform: scale(0);
}
40% {
    -webkit-transform: scale(1.0);
            transform: scale(1.0);
}
}

.mint-spinner-fading-circle {
    position: relative
}
.mint-spinner-fading-circle-circle {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute
}
.mint-spinner-fading-circle-circle::before {
    content: " ";
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    border-radius: 100%;
    -webkit-animation: mint-fading-circle 1.2s infinite ease-in-out both;
            animation: mint-fading-circle 1.2s infinite ease-in-out both
}
.mint-spinner-fading-circle-circle.is-circle2 {
    -webkit-transform: rotate(30deg);
            transform: rotate(30deg)
}
.mint-spinner-fading-circle-circle.is-circle2::before {
    -webkit-animation-delay: -1.1s;
            animation-delay: -1.1s
}
.mint-spinner-fading-circle-circle.is-circle3 {
    -webkit-transform: rotate(60deg);
            transform: rotate(60deg)
}
.mint-spinner-fading-circle-circle.is-circle3::before {
    -webkit-animation-delay: -1s;
            animation-delay: -1s
}
.mint-spinner-fading-circle-circle.is-circle4 {
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg)
}
.mint-spinner-fading-circle-circle.is-circle4::before {
    -webkit-animation-delay: -0.9s;
            animation-delay: -0.9s
}
.mint-spinner-fading-circle-circle.is-circle5 {
    -webkit-transform: rotate(120deg);
            transform: rotate(120deg)
}
.mint-spinner-fading-circle-circle.is-circle5::before {
    -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s
}
.mint-spinner-fading-circle-circle.is-circle6 {
    -webkit-transform: rotate(150deg);
            transform: rotate(150deg)
}
.mint-spinner-fading-circle-circle.is-circle6::before {
    -webkit-animation-delay: -0.7s;
            animation-delay: -0.7s
}
.mint-spinner-fading-circle-circle.is-circle7 {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg)
}
.mint-spinner-fading-circle-circle.is-circle7::before {
    -webkit-animation-delay: -0.6s;
            animation-delay: -0.6s
}
.mint-spinner-fading-circle-circle.is-circle8 {
    -webkit-transform: rotate(210deg);
            transform: rotate(210deg)
}
.mint-spinner-fading-circle-circle.is-circle8::before {
    -webkit-animation-delay: -0.5s;
            animation-delay: -0.5s
}
.mint-spinner-fading-circle-circle.is-circle9 {
    -webkit-transform: rotate(240deg);
            transform: rotate(240deg)
}
.mint-spinner-fading-circle-circle.is-circle9::before {
    -webkit-animation-delay: -0.4s;
            animation-delay: -0.4s
}
.mint-spinner-fading-circle-circle.is-circle10 {
    -webkit-transform: rotate(270deg);
            transform: rotate(270deg)
}
.mint-spinner-fading-circle-circle.is-circle10::before {
    -webkit-animation-delay: -0.3s;
            animation-delay: -0.3s
}
.mint-spinner-fading-circle-circle.is-circle11 {
    -webkit-transform: rotate(300deg);
            transform: rotate(300deg)
}
.mint-spinner-fading-circle-circle.is-circle11::before {
    -webkit-animation-delay: -0.2s;
            animation-delay: -0.2s
}
.mint-spinner-fading-circle-circle.is-circle12 {
    -webkit-transform: rotate(330deg);
            transform: rotate(330deg)
}
.mint-spinner-fading-circle-circle.is-circle12::before {
    -webkit-animation-delay: -0.1s;
            animation-delay: -0.1s
}
@-webkit-keyframes mint-fading-circle {
    0%, 39%, 100% {
        opacity: 0
    }
    40% {
        opacity: 1
    }
}
@keyframes mint-fading-circle {
    0%, 39%, 100% {
        opacity: 0
    }
    40% {
        opacity: 1
    }
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-tab-item {
    display: block;
    padding: 7px 0;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    text-decoration: none
}
.mint-tab-item-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 5px
}
.mint-tab-item-icon:empty {
    display: none
}
.mint-tab-item-icon > * {
    display: block;
    width: 100%;
    height: 100%
}
.mint-tab-item-label {
    color: inherit;
    font-size: 12px;
    line-height: 1
}

.mint-tab-container-item {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: 100%
}

.mint-tab-container {
    overflow: hidden;
    position: relative;
}
.mint-tab-container .swipe-transition {
    -webkit-transition: -webkit-transform 150ms ease-in-out;
    transition: -webkit-transform 150ms ease-in-out;
    transition: transform 150ms ease-in-out;
    transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out;
}
.mint-tab-container-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-navbar {
    background-color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-align: center;
}
.mint-navbar .mint-tab-item {
    padding: 17px 0;
    font-size: 15px
}
.mint-navbar .mint-tab-item:last-child {
    border-right: 0;
}
.mint-navbar .mint-tab-item.is-selected {
    border-bottom: 3px solid #26a2ff;
    color: #26a2ff;
    margin-bottom: -3px;
}
.mint-navbar.is-fixed {
    top: 0;
    right: 0;
    left: 0;
    position: fixed;
    z-index: 1;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-tabbar {
    background-image: -webkit-linear-gradient(top, #d9d9d9, #d9d9d9 50%, transparent 50%);
    background-image: linear-gradient(180deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: top left;
    position: relative;
    background-color: #fafafa;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    text-align: center;
}
.mint-tabbar > .mint-tab-item.is-selected {
    background-color: #eaeaea;
    color: #26a2ff;
}
.mint-tabbar.is-fixed {
    right: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: 1;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-search {
    height: 100%;
    height: 100vh;
    overflow: hidden;
}
.mint-searchbar {
    position: relative;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background-color: #d9d9d9;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 8px 10px;
    z-index: 1;
}
.mint-searchbar-inner {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background-color: #fff;
    border-radius: 2px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    height: 28px;
    padding: 4px 6px;
}
.mint-searchbar-inner .mintui-search {
    font-size: 12px;
    color: #d9d9d9;
}
.mint-searchbar-core {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    outline: 0;
}
.mint-searchbar-cancel {
    color: #26a2ff;
    margin-left: 10px;
    text-decoration: none;
}
.mint-search-list {
    overflow: auto;
    padding-top: 44px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-checklist .mint-cell {
    padding: 0;
}
.mint-checklist.is-limit .mint-checkbox-core:not(:checked) {
    background-color: #d9d9d9;
    border-color: #d9d9d9;
}
.mint-checklist-label {
    display: block;
    padding: 0 10px;
}
.mint-checklist-title {
    color: #888;
    display: block;
    font-size: 12px;
    margin: 8px;
}
.mint-checkbox {}
.mint-checkbox.is-right {
    float: right;
}
.mint-checkbox-label {
    vertical-align: middle;
    margin-left: 6px;
}
.mint-checkbox-input {
    display: none;
}
.mint-checkbox-input:checked + .mint-checkbox-core {
    background-color: #26a2ff;
    border-color: #26a2ff;
}
.mint-checkbox-input:checked + .mint-checkbox-core::after {
    border-color: #fff;
    -webkit-transform: rotate(45deg) scale(1);
            transform: rotate(45deg) scale(1);
}
.mint-checkbox-input[disabled] + .mint-checkbox-core {
    background-color: #d9d9d9;
    border-color: #ccc;
}
.mint-checkbox-core {
    display: inline-block;
    background-color: #fff;
    border-radius: 100%;
    border: 1px solid #ccc;
    position: relative;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.mint-checkbox-core::after {
    border: 2px solid transparent;
    border-left: 0;
    border-top: 0;
    content: " ";
    top: 3px;
    left: 6px;
    position: absolute;
    width: 4px;
    height: 8px;
    -webkit-transform: rotate(45deg) scale(0);
            transform: rotate(45deg) scale(0);
    -webkit-transition: -webkit-transform .2s;
    transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s, -webkit-transform .2s;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-radiolist .mint-cell {
    padding: 0;
}
.mint-radiolist-label {
    display: block;
    padding: 0 10px;
}
.mint-radiolist-title {
    font-size: 12px;
    margin: 8px;
    display: block;
    color: #888;
}
.mint-radio {}
.mint-radio.is-right {
    float: right;
}
.mint-radio-label {
    vertical-align: middle;
    margin-left: 6px;
}
.mint-radio-input {
    display: none;
}
.mint-radio-input:checked + .mint-radio-core {
    background-color: #26a2ff;
    border-color: #26a2ff;
}
.mint-radio-input:checked + .mint-radio-core::after {
    background-color: #fff;
    -webkit-transform: scale(1);
            transform: scale(1);
}
.mint-radio-input[disabled] + .mint-radio-core {
    background-color: #d9d9d9;
    border-color: #ccc;
}
.mint-radio-core {
    box-sizing: border-box;
    display: inline-block;
    background-color: #fff;
    border-radius: 100%;
    border: 1px solid #ccc;
    position: relative;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.mint-radio-core::after {
    content: " ";
    border-radius: 100%;
    top: 5px;
    left: 5px;
    position: absolute;
    width: 8px;
    height: 8px;
    -webkit-transition: -webkit-transform .2s;
    transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s, -webkit-transform .2s;
    -webkit-transform: scale(0);
            transform: scale(0);
}

.mint-loadmore {
    overflow: hidden
}
.mint-loadmore-content {}
.mint-loadmore-content.is-dropped {
    -webkit-transition: .2s;
    transition: .2s
}
.mint-loadmore-top, .mint-loadmore-bottom {
    text-align: center;
    height: 50px;
    line-height: 50px
}
.mint-loadmore-top {
    margin-top: -50px
}
.mint-loadmore-bottom {
    margin-bottom: -50px
}
.mint-loadmore-spinner {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle
}
.mint-loadmore-text {
    vertical-align: middle
}

.mint-actionsheet {
  position: fixed;
  background: #e0e0e0;
  width: 100%;
  text-align: center;
  bottom: 0;
  left: 50%;
  -webkit-transform: translate3d(-50%, 0, 0);
          transform: translate3d(-50%, 0, 0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition: -webkit-transform .3s ease-out;
  transition: -webkit-transform .3s ease-out;
  transition: transform .3s ease-out;
  transition: transform .3s ease-out, -webkit-transform .3s ease-out;
}
.mint-actionsheet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mint-actionsheet-listitem {
  border-bottom: solid 1px #e0e0e0;
}
.mint-actionsheet-listitem, .mint-actionsheet-button {
  display: block;
  width: 100%;
  height: 45px;
  line-height: 45px;
  font-size: 18px;
  color: #333;
  background-color: #fff;
}
.mint-actionsheet-listitem:active, .mint-actionsheet-button:active {
  background-color: #f0f0f0;
}
.actionsheet-float-enter, .actionsheet-float-leave-active {
  -webkit-transform: translate3d(-50%, 100%, 0);
          transform: translate3d(-50%, 100%, 0);
}
.v-modal-enter {
  -webkit-animation: v-modal-in .2s ease;
          animation: v-modal-in .2s ease;
}

.v-modal-leave {
  -webkit-animation: v-modal-out .2s ease forwards;
          animation: v-modal-out .2s ease forwards;
}

@-webkit-keyframes v-modal-in {
  0% {
    opacity: 0;
  }
  100% {
  }
}

@keyframes v-modal-in {
  0% {
    opacity: 0;
  }
  100% {
  }
}

@-webkit-keyframes v-modal-out {
  0% {
  }
  100% {
    opacity: 0;
  }
}

@keyframes v-modal-out {
  0% {
  }
  100% {
    opacity: 0;
  }
}

.v-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: #000;
}

.mint-popup {
  position: fixed;
  background: #fff;
  top: 50%;
  left: 50%;
  -webkit-transform: translate3d(-50%, -50%, 0);
          transform: translate3d(-50%, -50%, 0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition: .2s ease-out;
  transition: .2s ease-out;
}
.mint-popup-top {
  top: 0;
  right: auto;
  bottom: auto;
  left: 50%;
  -webkit-transform: translate3d(-50%, 0, 0);
          transform: translate3d(-50%, 0, 0);
}
.mint-popup-right {
  top: 50%;
  right: 0;
  bottom: auto;
  left: auto;
  -webkit-transform: translate3d(0, -50%, 0);
          transform: translate3d(0, -50%, 0);
}
.mint-popup-bottom {
  top: auto;
  right: auto;
  bottom: 0;
  left: 50%;
  -webkit-transform: translate3d(-50%, 0, 0);
          transform: translate3d(-50%, 0, 0);
}
.mint-popup-left {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 0;
  -webkit-transform: translate3d(0, -50%, 0);
          transform: translate3d(0, -50%, 0);
}
.popup-slide-top-enter, .popup-slide-top-leave-active {
  -webkit-transform: translate3d(-50%, -100%, 0);
          transform: translate3d(-50%, -100%, 0);
}
.popup-slide-right-enter, .popup-slide-right-leave-active {
  -webkit-transform: translate3d(100%, -50%, 0);
          transform: translate3d(100%, -50%, 0);
}
.popup-slide-bottom-enter, .popup-slide-bottom-leave-active {
  -webkit-transform: translate3d(-50%, 100%, 0);
          transform: translate3d(-50%, 100%, 0);
}
.popup-slide-left-enter, .popup-slide-left-leave-active {
  -webkit-transform: translate3d(-100%, -50%, 0);
          transform: translate3d(-100%, -50%, 0);
}
.popup-fade-enter, .popup-fade-leave-active {
  opacity: 0;
}

.mint-swipe {
    overflow: hidden;
    position: relative;
    height: 100%;
}
.mint-swipe-items-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
}
.mint-swipe-items-wrap > div {
    position: absolute;
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
    width: 100%;
    height: 100%;
    display: none
}
.mint-swipe-items-wrap > div.is-active {
    display: block;
    -webkit-transform: none;
            transform: none;
}
.mint-swipe-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
}
.mint-swipe-indicator {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 100%;
    background: #000;
    opacity: 0.2;
    margin: 0 3px;
}
.mint-swipe-indicator.is-active {
    background: #fff;
}


.mt-range {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 30px;
    line-height: 30px
}
.mt-range > * {
    display: -ms-flexbox;
    display: flex;
    display: -webkit-box
}
.mt-range *[slot=start] {
    margin-right: 5px
}
.mt-range *[slot=end] {
    margin-left: 5px
}
.mt-range-content {
    position: relative;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin-right: 30px
}
.mt-range-runway {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    left: 0;
    right: -30px;
    border-top-color: #a9acb1;
    border-top-style: solid
}
.mt-range-thumb {
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    cursor: move;
    box-shadow: 0 1px 3px rgba(0,0,0,.4)
}
.mt-range-progress {
    position: absolute;
    display: block;
    background-color: #26a2ff;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 0
}
.mt-range--disabled {
    opacity: 0.5
}

.picker {
  overflow: hidden;
}
.picker-toolbar {
  height: 40px;
}
.picker-items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0;
  text-align: right;
  font-size: 24px;
  position: relative;
}
.picker-center-highlight {
  box-sizing: border-box;
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  margin-top: -18px;
  pointer-events: none
}
.picker-center-highlight:before, .picker-center-highlight:after {
  content: '';
  position: absolute;
  height: 1px;
  width: 100%;
  background-color: #eaeaea;
  display: block;
  z-index: 15;
  -webkit-transform: scaleY(0.5);
          transform: scaleY(0.5);
}
.picker-center-highlight:before {
  left: 0;
  top: 0;
  bottom: auto;
  right: auto;
}
.picker-center-highlight:after {
  left: 0;
  bottom: 0;
  right: auto;
  top: auto;
}

.picker-slot {
  font-size: 18px;
  overflow: hidden;
  position: relative;
  max-height: 100%
}
.picker-slot.picker-slot-left {
  text-align: left;
}
.picker-slot.picker-slot-center {
  text-align: center;
}
.picker-slot.picker-slot-right {
  text-align: right;
}
.picker-slot.picker-slot-divider {
  color: #000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center
}
.picker-slot-wrapper {
  -webkit-transition-duration: 0.3s;
          transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
          transition-timing-function: ease-out;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.picker-slot-wrapper.dragging, .picker-slot-wrapper.dragging .picker-item {
  -webkit-transition-duration: 0s;
          transition-duration: 0s;
}
.picker-item {
  height: 36px;
  line-height: 36px;
  padding: 0 10px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #707274;
  left: 0;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  -webkit-transition-duration: .3s;
          transition-duration: .3s;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.picker-slot-absolute .picker-item {
  position: absolute;
}
.picker-item.picker-item-far {
  pointer-events: none
}
.picker-item.picker-selected {
  color: #000;
  -webkit-transform: translate3d(0, 0, 0) rotateX(0);
          transform: translate3d(0, 0, 0) rotateX(0);
}
.picker-3d .picker-items {
  overflow: hidden;
  -webkit-perspective: 700px;
          perspective: 700px;
}
.picker-3d .picker-item, .picker-3d .picker-slot, .picker-3d .picker-slot-wrapper {
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d
}
.picker-3d .picker-slot {
  overflow: visible
}
.picker-3d .picker-item {
  -webkit-transform-origin: center center;
          transform-origin: center center;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition-timing-function: ease-out;
          transition-timing-function: ease-out
}

.mt-progress {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 30px;
    line-height: 30px
}
.mt-progress > * {
    display: -ms-flexbox;
    display: flex;
    display: -webkit-box
}
.mt-progress *[slot="start"] {
    margin-right: 5px
}
.mt-progress *[slot="end"] {
    margin-left: 5px
}
.mt-progress-content {
    position: relative;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1
}
.mt-progress-runway {
    position: absolute;
    -webkit-transform: translate(0, -50%);
            transform: translate(0, -50%);
    top: 50%;
    left: 0;
    right: 0;
    background-color: #ebebeb;
    height: 3px
}
.mt-progress-progress {
    position: absolute;
    display: block;
    background-color: #26a2ff;
    top: 50%;
    -webkit-transform: translate(0, -50%);
            transform: translate(0, -50%);
    width: 0
}

.mint-toast {
    position: fixed;
    max-width: 80%;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    box-sizing: border-box;
    text-align: center;
    z-index: 1000;
    -webkit-transition: opacity .3s linear;
    transition: opacity .3s linear
}
.mint-toast.is-placebottom {
    bottom: 50px;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0)
}
.mint-toast.is-placemiddle {
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%)
}
.mint-toast.is-placetop {
    top: 50px;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0)
}
.mint-toast-icon {
    display: block;
    text-align: center;
    font-size: 56px
}
.mint-toast-text {
    font-size: 14px;
    display: block;
    text-align: center
}
.mint-toast-pop-enter, .mint-toast-pop-leave-active {
    opacity: 0
}

.mint-indicator {
  -webkit-transition: opacity .2s linear;
  transition: opacity .2s linear;
}
.mint-indicator-wrapper {
  top: 50%;
  left: 50%;
  position: fixed;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  box-sizing: border-box;
  text-align: center;
}
.mint-indicator-text {
  display: block;
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}
.mint-indicator-spin {
  display: inline-block;
  text-align: center;
}
.mint-indicator-mask {
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: transparent;
}
.mint-indicator-enter, .mint-indicator-leave-active {
  opacity: 0;
}

.mint-msgbox {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate3d(-50%, -50%, 0);
          transform: translate3d(-50%, -50%, 0);
  background-color: #fff;
  width: 85%;
  border-radius: 3px;
  font-size: 16px;
  -webkit-user-select: none;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition: .2s;
  transition: .2s;
}
.mint-msgbox-header {
  padding: 15px 0 0;
}
.mint-msgbox-content {
  padding: 10px 20px 15px;
  border-bottom: 1px solid #ddd;
  min-height: 36px;
  position: relative;
}
.mint-msgbox-input {
  padding-top: 15px;
}
.mint-msgbox-input input {
  border: 1px solid #dedede;
  border-radius: 5px;
  padding: 4px 5px;
  width: 100%;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
}
.mint-msgbox-input input.invalid {
  border-color: #ff4949;
}
.mint-msgbox-input input.invalid:focus {
  border-color: #ff4949;
}
.mint-msgbox-errormsg {
  color: red;
  font-size: 12px;
  min-height: 18px;
  margin-top: 2px;
}
.mint-msgbox-title {
  text-align: center;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.mint-msgbox-message {
  color: #999;
  margin: 0;
  text-align: center;
  line-height: 36px;
}
.mint-msgbox-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 40px;
  line-height: 40px;
}
.mint-msgbox-btn {
  line-height: 35px;
  display: block;
  background-color: #fff;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin: 0;
  border: 0;
}
.mint-msgbox-btn:focus {
  outline: none;
}
.mint-msgbox-btn:active {
  background-color: #fff;
}
.mint-msgbox-cancel {
  width: 50%;
  border-right: 1px solid #ddd;
}
.mint-msgbox-cancel:active {
  color: #000;
}
.mint-msgbox-confirm {
  color: #26a2ff;
  width: 50%;
}
.mint-msgbox-confirm:active {
  color: #26a2ff;
}
.msgbox-bounce-enter {
  opacity: 0;
  -webkit-transform: translate3d(-50%, -50%, 0) scale(0.7);
          transform: translate3d(-50%, -50%, 0) scale(0.7);
}
.msgbox-bounce-leave-active {
  opacity: 0;
  -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9);
          transform: translate3d(-50%, -50%, 0) scale(0.9);
}

.v-modal-enter {
  -webkit-animation: v-modal-in .2s ease;
          animation: v-modal-in .2s ease;
}
.v-modal-leave {
  -webkit-animation: v-modal-out .2s ease forwards;
          animation: v-modal-out .2s ease forwards;
}
@-webkit-keyframes v-modal-in {
0% {
    opacity: 0;
}
100% {
}
}
@keyframes v-modal-in {
0% {
    opacity: 0;
}
100% {
}
}
@-webkit-keyframes v-modal-out {
0% {
}
100% {
    opacity: 0;
}
}
@keyframes v-modal-out {
0% {
}
100% {
    opacity: 0;
}
}
.v-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: #000;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-datetime {
    width: 100%;
}
.mint-datetime .picker-slot-wrapper, .mint-datetime .picker-item {
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}
.mint-datetime .picker-toolbar {
    border-bottom: solid 1px #eaeaea;
}
.mint-datetime-action {
    display: inline-block;
    width: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    color: #26a2ff;
}
.mint-datetime-cancel {
    float: left;
}
.mint-datetime-confirm {
    float: right;
}
/* Cell Component */
/* Header Component */
/* Button Component */
/* Tab Item Component */
/* Tabbar Component */
/* Navbar Component */
/* Checklist Component */
/* Radio Component */
/* z-index */
.mint-indexlist {
    width: 100%;
    position: relative;
    overflow: hidden
}
.mint-indexlist-content {
    margin: 0;
    padding: 0;
    overflow: auto
}
.mint-indexlist-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    background-color: #fff;
    border-left: solid 1px #ddd;
    text-align: center;
    max-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center
}
.mint-indexlist-navlist {
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column
}
.mint-indexlist-navitem {
    padding: 2px 6px;
    font-size: 12px;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-touch-callout: none
}
.mint-indexlist-indicator {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    text-align: center;
    line-height: 50px;
    background-color: rgba(0, 0, 0, .7);
    border-radius: 5px;
    color: #fff;
    font-size: 22px
}

.mint-indexsection {
    padding: 0;
    margin: 0
}
.mint-indexsection-index {
    margin: 0;
    padding: 10px;
    background-color: #fafafa
}
.mint-indexsection-index + ul {
    padding: 0
}

.mint-palette-button{
  display:inline-block;
  position:relative;
  border-radius:50%;
  width: 56px;
  height:56px;
  line-height:56px;
  text-align:center;
  -webkit-transition:-webkit-transform .1s ease-in-out;
  transition:-webkit-transform .1s ease-in-out;
  transition:transform .1s ease-in-out;
  transition:transform .1s ease-in-out, -webkit-transform .1s ease-in-out;
}
.mint-main-button{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border-radius:50%;
  background-color:blue;
  font-size:2em;
}
.mint-palette-button-active{
  -webkit-animation: mint-zoom 0.5s ease-in-out;
          animation: mint-zoom 0.5s ease-in-out;
}
.mint-sub-button-container>*{
  position:absolute;
  top:15px;
  left:15px;
  width:25px;
  height:25px;
  -webkit-transition:-webkit-transform .3s ease-in-out;
  transition:-webkit-transform .3s ease-in-out;
  transition:transform .3s ease-in-out;
  transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
}
@-webkit-keyframes mint-zoom{
0% {-webkit-transform:scale(1);transform:scale(1)
}
10% {-webkit-transform:scale(1.1);transform:scale(1.1)
}
30% {-webkit-transform:scale(0.9);transform:scale(0.9)
}
50% {-webkit-transform:scale(1.05);transform:scale(1.05)
}
70% {-webkit-transform:scale(0.95);transform:scale(0.95)
}
90% {-webkit-transform:scale(1.01);transform:scale(1.01)
}
100% {-webkit-transform:scale(1);transform:scale(1)
}
}
@keyframes mint-zoom{
0% {-webkit-transform:scale(1);transform:scale(1)
}
10% {-webkit-transform:scale(1.1);transform:scale(1.1)
}
30% {-webkit-transform:scale(0.9);transform:scale(0.9)
}
50% {-webkit-transform:scale(1.05);transform:scale(1.05)
}
70% {-webkit-transform:scale(0.95);transform:scale(0.95)
}
90% {-webkit-transform:scale(1.01);transform:scale(1.01)
}
100% {-webkit-transform:scale(1);transform:scale(1)
}
}

@font-face {font-family: "mintui";
  src: url(data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTXMrDTgAAAD8AAAAHE9TLzJXb1zGAAABGAAAAGBjbWFwsbgH3gAAAXgAAAFaY3Z0IA1j/vQAAA2UAAAAJGZwZ20w956VAAANuAAACZZnYXNwAAAAEAAADYwAAAAIZ2x5Zm8hHaQAAALUAAAHeGhlYWQKwq5kAAAKTAAAADZoaGVhCJMESQAACoQAAAAkaG10eBuiAmQAAAqoAAAAKGxvY2EJUArqAAAK0AAAABhtYXhwAS4KKwAACugAAAAgbmFtZal8DOEAAAsIAAACE3Bvc3QbrFqUAAANHAAAAHBwcmVwpbm+ZgAAF1AAAACVAAAAAQAAAADMPaLPAAAAANN2tTQAAAAA03a1NAAEBBIB9AAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAgAGAwAAAAAAAAAAAAEQAAAAAAAAAAAAAABQZkVkAMAAeOYJA4D/gABcA38AgAAAAAEAAAAAAxgAAAAAACAAAQAAAAMAAAADAAAAHAABAAAAAABUAAMAAQAAABwABAA4AAAACgAIAAIAAgB45gLmBeYJ//8AAAB45gDmBOYI////ixoEGgMaAQABAAAAAAAAAAAAAAAAAQYAAAEAAAAAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACACIAAAEyAqoAAwAHAClAJgAAAAMCAANXAAIBAQJLAAICAU8EAQECAUMAAAcGBQQAAwADEQUPKzMRIREnMxEjIgEQ7szMAqr9ViICZgAAAAUALP/hA7wDGAAWADAAOgBSAF4Bd0uwE1BYQEoCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoGCV4RAQwGBAYMXgALBAtpDwEIAAYMCAZYAAoHBQIECwoEWRIBDg4NUQANDQoOQhtLsBdQWEBLAgEADQ4NAA5mAAMOAQ4DXgABCAgBXBABCQgKCAkKZhEBDAYEBgxeAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0uwGFBYQEwCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0BOAgEADQ4NAA5mAAMOAQ4DAWYAAQgOAQhkEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CWVlZQChTUzs7MjEXF1NeU15bWDtSO1JLQzc1MToyOhcwFzBRETEYESgVQBMWKwEGKwEiDgIdASE1NCY1NC4CKwEVIQUVFBYUDgIjBiYrASchBysBIiciLgI9ARciBhQWMzI2NCYXBgcOAx4BOwYyNicuAScmJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIw4OHw4gLf5JLB0iFBkZIBMIdwwSEgwNEhKMCAYFCwQCBA8OJUNRUEAkFxYJBQkFBQb+pAUPGhW8HykCHwEMGScaTCkQHAQNIBsSYYg0Fzo6JRcJAQGAgAETGyAOpz8RGhERGhF8GhYTJA4QDQgYGg0jERMUAXfkCxgTDB0m4wAAAQDp//UCugMMABEASLYKAQIAAQFAS7AaUFhACwABAQpBAAAACwBCG0uwKlBYQAsAAAABUQABAQoAQhtAEAABAAABTQABAQBRAAABAEVZWbMYFQIQKwkCFhQGIicBJjcmNwE2MhYUArD+iQF3ChQcCv5yCgEBCgGOChwUAtT+rf6sCRwTCgFoCw8OCwFoChMcAAAAAAMAXgElA6EB2gAHAA8AFwAhQB4EAgIAAQEATQQCAgAAAVEFAwIBAAFFExMTExMQBhQrEiIGFBYyNjQkIgYUFjI2NCQiBhQWMjY03ks1NUs1ARNLNTVLNQERSzU1SzUB2jVLNTVLNTVLNTVLNTVLNTVLAAAAAQAA/4AEtgN/ABAAEkAPBwYFAwAFAD0AAABfHQEPKwEEAQcmATcBNiQ+AT8BMh4BBLb/AP6adZT+uW0BJZkBCJ5uGBUFDicDNuP95Le4AUdu/wCa+YVeDg4EIwACAE7/6AO4A1IAGAAgACdAJBEDAgMEAUAAAAAEAwAEWQADAAECAwFZAAICCwJCExMVJRgFEyslJyYnNjU0LgEiDgEUHgEzMjcWHwEWMjY0JCImNDYyFhQDrdQFB0lfpMKkX1+kYYZlAwTUCx8W/nb4sLD4sCrYBgJie2KoYWGoxahhWwYE2QsXH5a0/rOz/gAGAEH/wAO/Az4ADwAbADMAQwBPAFsAVUBSW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEGxoZGBcWFRQTEhEQJAEAAUAAAwADaAACAQJpBAEAAQEATQQBAAABUQUBAQABRT08NTQpKB0cFxAGECsAIg4CFB4CMj4CNC4BAwcnByc3JzcXNxcHEiInLgEnJjQ3PgE3NjIXHgEXFhQHDgEHAiIOAhQeAjI+AjQuAQMnByc3JzcXNxcHFyEXNxc3JzcnBycHFwJataZ3R0d3prWmd0dHd0Qimpoimpoimpoimjm2U1F7IiMjIntRU7ZTUHwiIyMifFBUtaV4RkZ4pbWleEdHeGWamiOamiOamiOamv6IIZqaIZqaIZqaIZoDPkd3praleEZGeKW2pnf97yKamiKamiKamiKa/kAjInxQU7ZTUXsiIyMie1FTtlNQfCIDWkZ4pbWleEdHeKW1pXj9zJqaI5qaI5qaI5qaIZqaIZqaIZqaIZoAAAAABABHAAIDtwLdAA0AHQAwADEAMUAuMQEEBQFAAAAABQQABVkABAADAgQDWQACAQECTQACAgFRAAECAUU2NDU1NRIGFCslASYiBwEGFxYzITI3NiUUBisBIiY9ATQ2OwEyFhUnBiMnIiY1JzU0NjsBMhYdAhQHA7f+dxA+EP53EREQHwMSHxAR/mkKCD4ICwsIPggKBQUIPggKAQsHPwgKBVACdBkZ/YwbGhkZGjEJDQ0JJQoNDQpWBQEIB2mmBgkJBqVrBgQAAAADAED/wwO+A0IAAAAQABYAJkAjFhUUExIRBgEAAUAAAQA+AAABAQBNAAAAAVEAAQABRRcRAhArATIiDgIUHgIyPgI0LgEBJzcXARcB/1u2pndHR3emtqZ3R0d3/sXCI58BIyMDQkd4pbameEdHeKa2pXj9w8MjnwEkIwAAAQAAAAEAACFDvy9fDzz1AAsEAAAAAADTdrU0AAAAANN2tTQAAP+ABLYDfwAAAAgAAgAAAAAAAAABAAADf/+AAFwEvwAAAAAEtgABAAAAAAAAAAAAAAAAAAAACQF2ACIAAAAAAVUAAAPpACwEAADpBAAAXgS/AAAD6ABOBAAAQQBHAEAAAAAoACgAKAFkAa4B6AIWAl4DGgN+A7wAAQAAAAsAXwAGAAAAAAACACYANABsAAAAigmWAAAAAAAAAAwAlgABAAAAAAABAAYAAAABAAAAAAACAAYABgABAAAAAAADACEADAABAAAAAAAEAAYALQABAAAAAAAFAEYAMwABAAAAAAAGAAYAeQADAAEECQABAAwAfwADAAEECQACAAwAiwADAAEECQADAEIAlwADAAEECQAEAAwA2QADAAEECQAFAIwA5QADAAEECQAGAAwBcW1pbnR1aU1lZGl1bUZvbnRGb3JnZSAyLjAgOiBtaW50dWkgOiAzLTYtMjAxNm1pbnR1aVZlcnNpb24gMS4wIDsgdHRmYXV0b2hpbnQgKHYwLjk0KSAtbCA4IC1yIDUwIC1HIDIwMCAteCAxNCAtdyAiRyIgLWYgLXNtaW50dWkAbQBpAG4AdAB1AGkATQBlAGQAaQB1AG0ARgBvAG4AdABGAG8AcgBnAGUAIAAyAC4AMAAgADoAIABtAGkAbgB0AHUAaQAgADoAIAAzAC0ANgAtADIAMAAxADYAbQBpAG4AdAB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwACAAOwAgAHQAdABmAGEAdQB0AG8AaABpAG4AdAAgACgAdgAwAC4AOQA0ACkAIAAtAGwAIAA4ACAALQByACAANQAwACAALQBHACAAMgAwADAAIAAtAHgAIAAxADQAIAAtAHcAIAAiAEcAIgAgAC0AZgAgAC0AcwBtAGkAbgB0AHUAaQAAAgAAAAAAAP+DADIAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQACAFsBAgEDAQQBBQEGAQcBCAd1bmlFNjAwB3VuaUU2MDEHdW5pRTYwMgd1bmlFNjA0B3VuaUU2MDUHdW5pRTYwOAd1bmlFNjA5AAEAAf//AA8AAAAAAAAAAAAAAAAAAAAAADIAMgMY/+EDf/+AAxj/4QN//4CwACywIGBmLbABLCBkILDAULAEJlqwBEVbWCEjIRuKWCCwUFBYIbBAWRsgsDhQWCGwOFlZILAKRWFksChQWCGwCkUgsDBQWCGwMFkbILDAUFggZiCKimEgsApQWGAbILAgUFghsApgGyCwNlBYIbA2YBtgWVlZG7AAK1lZI7AAUFhlWVktsAIsIEUgsAQlYWQgsAVDUFiwBSNCsAYjQhshIVmwAWAtsAMsIyEjISBksQViQiCwBiNCsgoAAiohILAGQyCKIIqwACuxMAUlilFYYFAbYVJZWCNZISCwQFNYsAArGyGwQFkjsABQWGVZLbAELLAII0KwByNCsAAjQrAAQ7AHQ1FYsAhDK7IAAQBDYEKwFmUcWS2wBSywAEMgRSCwAkVjsAFFYmBELbAGLLAAQyBFILAAKyOxBAQlYCBFiiNhIGQgsCBQWCGwABuwMFBYsCAbsEBZWSOwAFBYZVmwAyUjYURELbAHLLEFBUWwAWFELbAILLABYCAgsApDSrAAUFggsAojQlmwC0NKsABSWCCwCyNCWS2wCSwguAQAYiC4BABjiiNhsAxDYCCKYCCwDCNCIy2wCixLVFixBwFEWSSwDWUjeC2wCyxLUVhLU1ixBwFEWRshWSSwE2UjeC2wDCyxAA1DVVixDQ1DsAFhQrAJK1mwAEOwAiVCsgABAENgQrEKAiVCsQsCJUKwARYjILADJVBYsABDsAQlQoqKIIojYbAIKiEjsAFhIIojYbAIKiEbsABDsAIlQrACJWGwCCohWbAKQ0ewC0NHYLCAYiCwAkVjsAFFYmCxAAATI0SwAUOwAD6yAQEBQ2BCLbANLLEABUVUWACwDSNCIGCwAWG1Dg4BAAwAQkKKYLEMBCuwaysbIlktsA4ssQANKy2wDyyxAQ0rLbAQLLECDSstsBEssQMNKy2wEiyxBA0rLbATLLEFDSstsBQssQYNKy2wFSyxBw0rLbAWLLEIDSstsBcssQkNKy2wGCywByuxAAVFVFgAsA0jQiBgsAFhtQ4OAQAMAEJCimCxDAQrsGsrGyJZLbAZLLEAGCstsBossQEYKy2wGyyxAhgrLbAcLLEDGCstsB0ssQQYKy2wHiyxBRgrLbAfLLEGGCstsCAssQcYKy2wISyxCBgrLbAiLLEJGCstsCMsIGCwDmAgQyOwAWBDsAIlsAIlUVgjIDywAWAjsBJlHBshIVktsCQssCMrsCMqLbAlLCAgRyAgsAJFY7ABRWJgI2E4IyCKVVggRyAgsAJFY7ABRWJgI2E4GyFZLbAmLLEABUVUWACwARawJSqwARUwGyJZLbAnLLAHK7EABUVUWACwARawJSqwARUwGyJZLbAoLCA1sAFgLbApLACwA0VjsAFFYrAAK7ACRWOwAUVisAArsAAWtAAAAAAARD4jOLEoARUqLbAqLCA8IEcgsAJFY7ABRWJgsABDYTgtsCssLhc8LbAsLCA8IEcgsAJFY7ABRWJgsABDYbABQ2M4LbAtLLECABYlIC4gR7AAI0KwAiVJiopHI0cjYSBYYhshWbABI0KyLAEBFRQqLbAuLLAAFrAEJbAEJUcjRyNhsAZFK2WKLiMgIDyKOC2wLyywABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyCwCUMgiiNHI0cjYSNGYLAEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmEjICCwBCYjRmE4GyOwCUNGsAIlsAlDRyNHI2FgILAEQ7CAYmAjILAAKyOwBENgsAArsAUlYbAFJbCAYrAEJmEgsAQlYGQjsAMlYGRQWCEbIyFZIyAgsAQmI0ZhOFktsDAssAAWICAgsAUmIC5HI0cjYSM8OC2wMSywABYgsAkjQiAgIEYjR7AAKyNhOC2wMiywABawAyWwAiVHI0cjYbAAVFguIDwjIRuwAiWwAiVHI0cjYSCwBSWwBCVHI0cjYbAGJbAFJUmwAiVhsAFFYyMgWGIbIVljsAFFYmAjLiMgIDyKOCMhWS2wMyywABYgsAlDIC5HI0cjYSBgsCBgZrCAYiMgIDyKOC2wNCwjIC5GsAIlRlJYIDxZLrEkARQrLbA1LCMgLkawAiVGUFggPFkusSQBFCstsDYsIyAuRrACJUZSWCA8WSMgLkawAiVGUFggPFkusSQBFCstsDcssC4rIyAuRrACJUZSWCA8WS6xJAEUKy2wOCywLyuKICA8sAQjQoo4IyAuRrACJUZSWCA8WS6xJAEUK7AEQy6wJCstsDkssAAWsAQlsAQmIC5HI0cjYbAGRSsjIDwgLiM4sSQBFCstsDossQkEJUKwABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyBHsARDsIBiYCCwACsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsIBiYbACJUZhOCMgPCM4GyEgIEYjR7AAKyNhOCFZsSQBFCstsDsssC4rLrEkARQrLbA8LLAvKyEjICA8sAQjQiM4sSQBFCuwBEMusCQrLbA9LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA+LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA/LLEAARQTsCsqLbBALLAtKi2wQSywABZFIyAuIEaKI2E4sSQBFCstsEIssAkjQrBBKy2wQyyyAAA6Ky2wRCyyAAE6Ky2wRSyyAQA6Ky2wRiyyAQE6Ky2wRyyyAAA7Ky2wSCyyAAE7Ky2wSSyyAQA7Ky2wSiyyAQE7Ky2wSyyyAAA3Ky2wTCyyAAE3Ky2wTSyyAQA3Ky2wTiyyAQE3Ky2wTyyyAAA5Ky2wUCyyAAE5Ky2wUSyyAQA5Ky2wUiyyAQE5Ky2wUyyyAAA8Ky2wVCyyAAE8Ky2wVSyyAQA8Ky2wViyyAQE8Ky2wVyyyAAA4Ky2wWCyyAAE4Ky2wWSyyAQA4Ky2wWiyyAQE4Ky2wWyywMCsusSQBFCstsFwssDArsDQrLbBdLLAwK7A1Ky2wXiywABawMCuwNistsF8ssDErLrEkARQrLbBgLLAxK7A0Ky2wYSywMSuwNSstsGIssDErsDYrLbBjLLAyKy6xJAEUKy2wZCywMiuwNCstsGUssDIrsDUrLbBmLLAyK7A2Ky2wZyywMysusSQBFCstsGgssDMrsDQrLbBpLLAzK7A1Ky2waiywMyuwNistsGssK7AIZbADJFB4sAEVMC0AAEu4AMhSWLEBAY5ZuQgACABjILABI0QgsAMjcLAORSAgS7gADlFLsAZTWliwNBuwKFlgZiCKVViwAiVhsAFFYyNisAIjRLMKCQUEK7MKCwUEK7MODwUEK1myBCgJRVJEswoNBgQrsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAAA)
}

.mintui {
  font-family:"mintui" !important;
  font-size:16px;
  font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
.mintui-search:before { content: "\E604"; }
.mintui-more:before { content: "\E601"; }
.mintui-back:before { content: "\E600"; }
.mintui-field-error:before { content: "\E605"; }
.mintui-field-warning:before { content: "\E608"; }
.mintui-success:before { content: "\E602"; }
.mintui-field-success:before { content: "\E609"; }

@font-face {font-family: "mintui";  src: url(data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTXMrDTgAAAD8AAAAHE9TLzJXb1zGAAABGAAAAGBjbWFwsbgH3gAAAXgAAAFaY3Z0IA1j/vQAAA2UAAAAJGZwZ20w956VAAANuAAACZZnYXNwAAAAEAAADYwAAAAIZ2x5Zm8hHaQAAALUAAAHeGhlYWQKwq5kAAAKTAAAADZoaGVhCJMESQAACoQAAAAkaG10eBuiAmQAAAqoAAAAKGxvY2EJUArqAAAK0AAAABhtYXhwAS4KKwAACugAAAAgbmFtZal8DOEAAAsIAAACE3Bvc3QbrFqUAAANHAAAAHBwcmVwpbm+ZgAAF1AAAACVAAAAAQAAAADMPaLPAAAAANN2tTQAAAAA03a1NAAEBBIB9AAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAgAGAwAAAAAAAAAAAAEQAAAAAAAAAAAAAABQZkVkAMAAeOYJA4D/gABcA38AgAAAAAEAAAAAAxgAAAAAACAAAQAAAAMAAAADAAAAHAABAAAAAABUAAMAAQAAABwABAA4AAAACgAIAAIAAgB45gLmBeYJ//8AAAB45gDmBOYI////ixoEGgMaAQABAAAAAAAAAAAAAAAAAQYAAAEAAAAAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACACIAAAEyAqoAAwAHAClAJgAAAAMCAANXAAIBAQJLAAICAU8EAQECAUMAAAcGBQQAAwADEQUPKzMRIREnMxEjIgEQ7szMAqr9ViICZgAAAAUALP/hA7wDGAAWADAAOgBSAF4Bd0uwE1BYQEoCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoGCV4RAQwGBAYMXgALBAtpDwEIAAYMCAZYAAoHBQIECwoEWRIBDg4NUQANDQoOQhtLsBdQWEBLAgEADQ4NAA5mAAMOAQ4DXgABCAgBXBABCQgKCAkKZhEBDAYEBgxeAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0uwGFBYQEwCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0BOAgEADQ4NAA5mAAMOAQ4DAWYAAQgOAQhkEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CWVlZQChTUzs7MjEXF1NeU15bWDtSO1JLQzc1MToyOhcwFzBRETEYESgVQBMWKwEGKwEiDgIdASE1NCY1NC4CKwEVIQUVFBYUDgIjBiYrASchBysBIiciLgI9ARciBhQWMzI2NCYXBgcOAx4BOwYyNicuAScmJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIw4OHw4gLf5JLB0iFBkZIBMIdwwSEgwNEhKMCAYFCwQCBA8OJUNRUEAkFxYJBQkFBQb+pAUPGhW8HykCHwEMGScaTCkQHAQNIBsSYYg0Fzo6JRcJAQGAgAETGyAOpz8RGhERGhF8GhYTJA4QDQgYGg0jERMUAXfkCxgTDB0m4wAAAQDp//UCugMMABEASLYKAQIAAQFAS7AaUFhACwABAQpBAAAACwBCG0uwKlBYQAsAAAABUQABAQoAQhtAEAABAAABTQABAQBRAAABAEVZWbMYFQIQKwkCFhQGIicBJjcmNwE2MhYUArD+iQF3ChQcCv5yCgEBCgGOChwUAtT+rf6sCRwTCgFoCw8OCwFoChMcAAAAAAMAXgElA6EB2gAHAA8AFwAhQB4EAgIAAQEATQQCAgAAAVEFAwIBAAFFExMTExMQBhQrEiIGFBYyNjQkIgYUFjI2NCQiBhQWMjY03ks1NUs1ARNLNTVLNQERSzU1SzUB2jVLNTVLNTVLNTVLNTVLNTVLAAAAAQAA/4AEtgN/ABAAEkAPBwYFAwAFAD0AAABfHQEPKwEEAQcmATcBNiQ+AT8BMh4BBLb/AP6adZT+uW0BJZkBCJ5uGBUFDicDNuP95Le4AUdu/wCa+YVeDg4EIwACAE7/6AO4A1IAGAAgACdAJBEDAgMEAUAAAAAEAwAEWQADAAECAwFZAAICCwJCExMVJRgFEyslJyYnNjU0LgEiDgEUHgEzMjcWHwEWMjY0JCImNDYyFhQDrdQFB0lfpMKkX1+kYYZlAwTUCx8W/nb4sLD4sCrYBgJie2KoYWGoxahhWwYE2QsXH5a0/rOz/gAGAEH/wAO/Az4ADwAbADMAQwBPAFsAVUBSW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEGxoZGBcWFRQTEhEQJAEAAUAAAwADaAACAQJpBAEAAQEATQQBAAABUQUBAQABRT08NTQpKB0cFxAGECsAIg4CFB4CMj4CNC4BAwcnByc3JzcXNxcHEiInLgEnJjQ3PgE3NjIXHgEXFhQHDgEHAiIOAhQeAjI+AjQuAQMnByc3JzcXNxcHFyEXNxc3JzcnBycHFwJataZ3R0d3prWmd0dHd0Qimpoimpoimpoimjm2U1F7IiMjIntRU7ZTUHwiIyMifFBUtaV4RkZ4pbWleEdHeGWamiOamiOamiOamv6IIZqaIZqaIZqaIZoDPkd3praleEZGeKW2pnf97yKamiKamiKamiKa/kAjInxQU7ZTUXsiIyMie1FTtlNQfCIDWkZ4pbWleEdHeKW1pXj9zJqaI5qaI5qaI5qaIZqaIZqaIZqaIZoAAAAABABHAAIDtwLdAA0AHQAwADEAMUAuMQEEBQFAAAAABQQABVkABAADAgQDWQACAQECTQACAgFRAAECAUU2NDU1NRIGFCslASYiBwEGFxYzITI3NiUUBisBIiY9ATQ2OwEyFhUnBiMnIiY1JzU0NjsBMhYdAhQHA7f+dxA+EP53EREQHwMSHxAR/mkKCD4ICwsIPggKBQUIPggKAQsHPwgKBVACdBkZ/YwbGhkZGjEJDQ0JJQoNDQpWBQEIB2mmBgkJBqVrBgQAAAADAED/wwO+A0IAAAAQABYAJkAjFhUUExIRBgEAAUAAAQA+AAABAQBNAAAAAVEAAQABRRcRAhArATIiDgIUHgIyPgI0LgEBJzcXARcB/1u2pndHR3emtqZ3R0d3/sXCI58BIyMDQkd4pbameEdHeKa2pXj9w8MjnwEkIwAAAQAAAAEAACFDvy9fDzz1AAsEAAAAAADTdrU0AAAAANN2tTQAAP+ABLYDfwAAAAgAAgAAAAAAAAABAAADf/+AAFwEvwAAAAAEtgABAAAAAAAAAAAAAAAAAAAACQF2ACIAAAAAAVUAAAPpACwEAADpBAAAXgS/AAAD6ABOBAAAQQBHAEAAAAAoACgAKAFkAa4B6AIWAl4DGgN+A7wAAQAAAAsAXwAGAAAAAAACACYANABsAAAAigmWAAAAAAAAAAwAlgABAAAAAAABAAYAAAABAAAAAAACAAYABgABAAAAAAADACEADAABAAAAAAAEAAYALQABAAAAAAAFAEYAMwABAAAAAAAGAAYAeQADAAEECQABAAwAfwADAAEECQACAAwAiwADAAEECQADAEIAlwADAAEECQAEAAwA2QADAAEECQAFAIwA5QADAAEECQAGAAwBcW1pbnR1aU1lZGl1bUZvbnRGb3JnZSAyLjAgOiBtaW50dWkgOiAzLTYtMjAxNm1pbnR1aVZlcnNpb24gMS4wIDsgdHRmYXV0b2hpbnQgKHYwLjk0KSAtbCA4IC1yIDUwIC1HIDIwMCAteCAxNCAtdyAiRyIgLWYgLXNtaW50dWkAbQBpAG4AdAB1AGkATQBlAGQAaQB1AG0ARgBvAG4AdABGAG8AcgBnAGUAIAAyAC4AMAAgADoAIABtAGkAbgB0AHUAaQAgADoAIAAzAC0ANgAtADIAMAAxADYAbQBpAG4AdAB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwACAAOwAgAHQAdABmAGEAdQB0AG8AaABpAG4AdAAgACgAdgAwAC4AOQA0ACkAIAAtAGwAIAA4ACAALQByACAANQAwACAALQBHACAAMgAwADAAIAAtAHgAIAAxADQAIAAtAHcAIAAiAEcAIgAgAC0AZgAgAC0AcwBtAGkAbgB0AHUAaQAAAgAAAAAAAP+DADIAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQACAFsBAgEDAQQBBQEGAQcBCAd1bmlFNjAwB3VuaUU2MDEHdW5pRTYwMgd1bmlFNjA0B3VuaUU2MDUHdW5pRTYwOAd1bmlFNjA5AAEAAf//AA8AAAAAAAAAAAAAAAAAAAAAADIAMgMY/+EDf/+AAxj/4QN//4CwACywIGBmLbABLCBkILDAULAEJlqwBEVbWCEjIRuKWCCwUFBYIbBAWRsgsDhQWCGwOFlZILAKRWFksChQWCGwCkUgsDBQWCGwMFkbILDAUFggZiCKimEgsApQWGAbILAgUFghsApgGyCwNlBYIbA2YBtgWVlZG7AAK1lZI7AAUFhlWVktsAIsIEUgsAQlYWQgsAVDUFiwBSNCsAYjQhshIVmwAWAtsAMsIyEjISBksQViQiCwBiNCsgoAAiohILAGQyCKIIqwACuxMAUlilFYYFAbYVJZWCNZISCwQFNYsAArGyGwQFkjsABQWGVZLbAELLAII0KwByNCsAAjQrAAQ7AHQ1FYsAhDK7IAAQBDYEKwFmUcWS2wBSywAEMgRSCwAkVjsAFFYmBELbAGLLAAQyBFILAAKyOxBAQlYCBFiiNhIGQgsCBQWCGwABuwMFBYsCAbsEBZWSOwAFBYZVmwAyUjYURELbAHLLEFBUWwAWFELbAILLABYCAgsApDSrAAUFggsAojQlmwC0NKsABSWCCwCyNCWS2wCSwguAQAYiC4BABjiiNhsAxDYCCKYCCwDCNCIy2wCixLVFixBwFEWSSwDWUjeC2wCyxLUVhLU1ixBwFEWRshWSSwE2UjeC2wDCyxAA1DVVixDQ1DsAFhQrAJK1mwAEOwAiVCsgABAENgQrEKAiVCsQsCJUKwARYjILADJVBYsABDsAQlQoqKIIojYbAIKiEjsAFhIIojYbAIKiEbsABDsAIlQrACJWGwCCohWbAKQ0ewC0NHYLCAYiCwAkVjsAFFYmCxAAATI0SwAUOwAD6yAQEBQ2BCLbANLLEABUVUWACwDSNCIGCwAWG1Dg4BAAwAQkKKYLEMBCuwaysbIlktsA4ssQANKy2wDyyxAQ0rLbAQLLECDSstsBEssQMNKy2wEiyxBA0rLbATLLEFDSstsBQssQYNKy2wFSyxBw0rLbAWLLEIDSstsBcssQkNKy2wGCywByuxAAVFVFgAsA0jQiBgsAFhtQ4OAQAMAEJCimCxDAQrsGsrGyJZLbAZLLEAGCstsBossQEYKy2wGyyxAhgrLbAcLLEDGCstsB0ssQQYKy2wHiyxBRgrLbAfLLEGGCstsCAssQcYKy2wISyxCBgrLbAiLLEJGCstsCMsIGCwDmAgQyOwAWBDsAIlsAIlUVgjIDywAWAjsBJlHBshIVktsCQssCMrsCMqLbAlLCAgRyAgsAJFY7ABRWJgI2E4IyCKVVggRyAgsAJFY7ABRWJgI2E4GyFZLbAmLLEABUVUWACwARawJSqwARUwGyJZLbAnLLAHK7EABUVUWACwARawJSqwARUwGyJZLbAoLCA1sAFgLbApLACwA0VjsAFFYrAAK7ACRWOwAUVisAArsAAWtAAAAAAARD4jOLEoARUqLbAqLCA8IEcgsAJFY7ABRWJgsABDYTgtsCssLhc8LbAsLCA8IEcgsAJFY7ABRWJgsABDYbABQ2M4LbAtLLECABYlIC4gR7AAI0KwAiVJiopHI0cjYSBYYhshWbABI0KyLAEBFRQqLbAuLLAAFrAEJbAEJUcjRyNhsAZFK2WKLiMgIDyKOC2wLyywABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyCwCUMgiiNHI0cjYSNGYLAEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmEjICCwBCYjRmE4GyOwCUNGsAIlsAlDRyNHI2FgILAEQ7CAYmAjILAAKyOwBENgsAArsAUlYbAFJbCAYrAEJmEgsAQlYGQjsAMlYGRQWCEbIyFZIyAgsAQmI0ZhOFktsDAssAAWICAgsAUmIC5HI0cjYSM8OC2wMSywABYgsAkjQiAgIEYjR7AAKyNhOC2wMiywABawAyWwAiVHI0cjYbAAVFguIDwjIRuwAiWwAiVHI0cjYSCwBSWwBCVHI0cjYbAGJbAFJUmwAiVhsAFFYyMgWGIbIVljsAFFYmAjLiMgIDyKOCMhWS2wMyywABYgsAlDIC5HI0cjYSBgsCBgZrCAYiMgIDyKOC2wNCwjIC5GsAIlRlJYIDxZLrEkARQrLbA1LCMgLkawAiVGUFggPFkusSQBFCstsDYsIyAuRrACJUZSWCA8WSMgLkawAiVGUFggPFkusSQBFCstsDcssC4rIyAuRrACJUZSWCA8WS6xJAEUKy2wOCywLyuKICA8sAQjQoo4IyAuRrACJUZSWCA8WS6xJAEUK7AEQy6wJCstsDkssAAWsAQlsAQmIC5HI0cjYbAGRSsjIDwgLiM4sSQBFCstsDossQkEJUKwABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyBHsARDsIBiYCCwACsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsIBiYbACJUZhOCMgPCM4GyEgIEYjR7AAKyNhOCFZsSQBFCstsDsssC4rLrEkARQrLbA8LLAvKyEjICA8sAQjQiM4sSQBFCuwBEMusCQrLbA9LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA+LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA/LLEAARQTsCsqLbBALLAtKi2wQSywABZFIyAuIEaKI2E4sSQBFCstsEIssAkjQrBBKy2wQyyyAAA6Ky2wRCyyAAE6Ky2wRSyyAQA6Ky2wRiyyAQE6Ky2wRyyyAAA7Ky2wSCyyAAE7Ky2wSSyyAQA7Ky2wSiyyAQE7Ky2wSyyyAAA3Ky2wTCyyAAE3Ky2wTSyyAQA3Ky2wTiyyAQE3Ky2wTyyyAAA5Ky2wUCyyAAE5Ky2wUSyyAQA5Ky2wUiyyAQE5Ky2wUyyyAAA8Ky2wVCyyAAE8Ky2wVSyyAQA8Ky2wViyyAQE8Ky2wVyyyAAA4Ky2wWCyyAAE4Ky2wWSyyAQA4Ky2wWiyyAQE4Ky2wWyywMCsusSQBFCstsFwssDArsDQrLbBdLLAwK7A1Ky2wXiywABawMCuwNistsF8ssDErLrEkARQrLbBgLLAxK7A0Ky2wYSywMSuwNSstsGIssDErsDYrLbBjLLAyKy6xJAEUKy2wZCywMiuwNCstsGUssDIrsDUrLbBmLLAyK7A2Ky2wZyywMysusSQBFCstsGgssDMrsDQrLbBpLLAzK7A1Ky2waiywMyuwNistsGssK7AIZbADJFB4sAEVMC0AAEu4AMhSWLEBAY5ZuQgACABjILABI0QgsAMjcLAORSAgS7gADlFLsAZTWliwNBuwKFlgZiCKVViwAiVhsAFFYyNisAIjRLMKCQUEK7MKCwUEK7MODwUEK1myBCgJRVJEswoNBgQrsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAAA)
}
.mintui {font-family:"mintui" !important;font-size:16px;font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
.mintui-search:before { content: "\E604"; }
.mintui-more:before { content: "\E601"; }
.mintui-back:before { content: "\E600"; }
.mintui-field-error:before { content: "\E605"; }
.mintui-field-warning:before { content: "\E608"; }
.mintui-success:before { content: "\E602"; }
.mintui-field-success:before { content: "\E609"; }
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2129);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c41e63e6", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, "html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif}a{text-decoration:none}button,input,textarea{color:inherit;font:inherit}[class*=van-]:focus,a:focus,button:focus,input:focus,textarea:focus{outline:0}ol,ul{margin:0;padding:0;list-style:none}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix::after{display:table;clear:both;content:''}[class*=van-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after,.van-hairline-unset--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}@-webkit-keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-fade-in{from{opacity:0}to{opacity:1}}@keyframes van-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes van-fade-out{from{opacity:1}to{opacity:0}}@keyframes van-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.van-fade-enter-active{-webkit-animation:.3s van-fade-in both ease-out;animation:.3s van-fade-in both ease-out}.van-fade-leave-active{-webkit-animation:.3s van-fade-out both ease-in;animation:.3s van-fade-out both ease-in}.van-slide-up-enter-active{-webkit-animation:van-slide-up-enter .3s both ease-out;animation:van-slide-up-enter .3s both ease-out}.van-slide-up-leave-active{-webkit-animation:van-slide-up-leave .3s both ease-in;animation:van-slide-up-leave .3s both ease-in}.van-slide-down-enter-active{-webkit-animation:van-slide-down-enter .3s both ease-out;animation:van-slide-down-enter .3s both ease-out}.van-slide-down-leave-active{-webkit-animation:van-slide-down-leave .3s both ease-in;animation:van-slide-down-leave .3s both ease-in}.van-slide-left-enter-active{-webkit-animation:van-slide-left-enter .3s both ease-out;animation:van-slide-left-enter .3s both ease-out}.van-slide-left-leave-active{-webkit-animation:van-slide-left-leave .3s both ease-in;animation:van-slide-left-leave .3s both ease-in}.van-slide-right-enter-active{-webkit-animation:van-slide-right-enter .3s both ease-out;animation:van-slide-right-enter .3s both ease-out}.van-slide-right-leave-active{-webkit-animation:van-slide-right-leave .3s both ease-in;animation:van-slide-right-leave .3s both ease-in}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/style/base.css"],"names":[],"mappings":"AAAA,KAAK,uCAAuC,CAAC,KAAK,SAAS,gKAAgK,CAAC,EAAE,oBAAoB,CAAC,sBAAsB,cAAc,YAAY,CAAC,oEAAoE,SAAS,CAAC,MAAM,SAAS,UAAU,eAAe,CAAC,cAAc,gBAAgB,mBAAmB,sBAAsB,CAAC,wBAAwB,oBAAoB,gBAAgB,uBAAuB,qBAAqB,2BAA2B,CAAC,wBAAwB,oBAAoB,gBAAgB,uBAAuB,qBAAqB,2BAA2B,CAAC,qBAAqB,cAAc,WAAW,UAAU,CAAC,6BAA6B,kBAAkB,sBAAsB,YAAY,oBAAoB,SAAS,WAAW,YAAY,UAAU,uBAAuB,4BAA4B,mBAAmB,CAAC,kJAAkJ,iBAAiB,CAAC,0BAA0B,oBAAoB,CAAC,2BAA2B,qBAAqB,CAAC,4BAA4B,sBAAsB,CAAC,6BAA6B,uBAAuB,CAAC,wEAAwE,kBAAkB,CAAC,+BAA+B,gBAAgB,CAAC,sCAAsC,KAAK,wCAAwC,+BAA+B,CAAC,CAAC,8BAA8B,KAAK,wCAAwC,+BAA+B,CAAC,CAAC,sCAAsC,GAAG,wCAAwC,+BAA+B,CAAC,CAAC,8BAA8B,GAAG,wCAAwC,+BAA+B,CAAC,CAAC,wCAAwC,KAAK,yCAAyC,gCAAgC,CAAC,CAAC,gCAAgC,KAAK,yCAAyC,gCAAgC,CAAC,CAAC,wCAAwC,GAAG,yCAAyC,gCAAgC,CAAC,CAAC,gCAAgC,GAAG,yCAAyC,gCAAgC,CAAC,CAAC,wCAAwC,KAAK,yCAAyC,gCAAgC,CAAC,CAAC,gCAAgC,KAAK,yCAAyC,gCAAgC,CAAC,CAAC,wCAAwC,GAAG,yCAAyC,gCAAgC,CAAC,CAAC,gCAAgC,GAAG,yCAAyC,gCAAgC,CAAC,CAAC,yCAAyC,KAAK,wCAAwC,+BAA+B,CAAC,CAAC,iCAAiC,KAAK,wCAAwC,+BAA+B,CAAC,CAAC,yCAAyC,GAAG,wCAAwC,+BAA+B,CAAC,CAAC,iCAAiC,GAAG,wCAAwC,+BAA+B,CAAC,CAAC,+BAA+B,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,uBAAuB,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,gCAAgC,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,wBAAwB,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,8BAA8B,KAAK,4BAA4B,mBAAmB,CAAC,GAAG,iCAAiC,wBAAwB,CAAC,CAAC,sBAAsB,KAAK,4BAA4B,mBAAmB,CAAC,GAAG,iCAAiC,wBAAwB,CAAC,CAAC,uBAAuB,gDAAgD,uCAAuC,CAAC,uBAAuB,gDAAgD,uCAAuC,CAAC,2BAA2B,uDAAuD,8CAA8C,CAAC,2BAA2B,sDAAsD,6CAA6C,CAAC,6BAA6B,yDAAyD,gDAAgD,CAAC,6BAA6B,wDAAwD,+CAA+C,CAAC,6BAA6B,yDAAyD,gDAAgD,CAAC,6BAA6B,wDAAwD,+CAA+C,CAAC,8BAA8B,0DAA0D,iDAAiD,CAAC,8BAA8B,yDAAyD,gDAAgD,CAAC","file":"base.css","sourcesContent":["html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif}a{text-decoration:none}button,input,textarea{color:inherit;font:inherit}[class*=van-]:focus,a:focus,button:focus,input:focus,textarea:focus{outline:0}ol,ul{margin:0;padding:0;list-style:none}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix::after{display:table;clear:both;content:''}[class*=van-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after,.van-hairline-unset--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}@-webkit-keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-fade-in{from{opacity:0}to{opacity:1}}@keyframes van-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes van-fade-out{from{opacity:1}to{opacity:0}}@keyframes van-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.van-fade-enter-active{-webkit-animation:.3s van-fade-in both ease-out;animation:.3s van-fade-in both ease-out}.van-fade-leave-active{-webkit-animation:.3s van-fade-out both ease-in;animation:.3s van-fade-out both ease-in}.van-slide-up-enter-active{-webkit-animation:van-slide-up-enter .3s both ease-out;animation:van-slide-up-enter .3s both ease-out}.van-slide-up-leave-active{-webkit-animation:van-slide-up-leave .3s both ease-in;animation:van-slide-up-leave .3s both ease-in}.van-slide-down-enter-active{-webkit-animation:van-slide-down-enter .3s both ease-out;animation:van-slide-down-enter .3s both ease-out}.van-slide-down-leave-active{-webkit-animation:van-slide-down-leave .3s both ease-in;animation:van-slide-down-leave .3s both ease-in}.van-slide-left-enter-active{-webkit-animation:van-slide-left-enter .3s both ease-out;animation:van-slide-left-enter .3s both ease-out}.van-slide-left-leave-active{-webkit-animation:van-slide-left-leave .3s both ease-in;animation:van-slide-left-leave .3s both ease-in}.van-slide-right-enter-active{-webkit-animation:van-slide-right-enter .3s both ease-out;animation:van-slide-right-enter .3s both ease-out}.van-slide-right-leave-active{-webkit-animation:van-slide-right-leave .3s both ease-in;animation:van-slide-right-leave .3s both ease-in}"],"sourceRoot":""}]);

// exports
function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=[].concat(d,e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=[].concat(g,h)}else c[b][f]=a[b][f];}else if("hook"===b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.noop = noop;
exports.isDef = isDef;
exports.isFunction = isFunction;
exports.isObject = isObject;
exports.isPromise = isPromise;
exports.get = get;
exports.isEmpty = isEmpty;
exports.isServer = exports.inBrowser = exports.addUnit = exports.createNamespace = void 0;

var _vue = _interopRequireDefault(__webpack_require__(22));

var _create = __webpack_require__(2132);

exports.createNamespace = _create.createNamespace;

var _unit = __webpack_require__(248);

exports.addUnit = _unit.addUnit;
var inBrowser = typeof window !== 'undefined';
exports.inBrowser = inBrowser;
var isServer = _vue.default.prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function

exports.isServer = isServer;

function noop() {}

function isDef(val) {
  return val !== undefined && val !== null;
}

function isFunction(val) {
  return typeof val === 'function';
}

function isObject(val) {
  return val !== null && typeof val === 'object';
}

function isPromise(val) {
  return isObject(val) && isFunction(val.then) && isFunction(val.catch);
}

function get(object, path) {
  var keys = path.split('.');
  var result = object;
  keys.forEach(function (key) {
    var _result$key;

    result = isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';
  });
  return result;
}
/**
 * Checks if `value` is an empty object, collection, map, or set.
 *
 * Objects are considered empty if they have no own enumerable string keyed
 * properties.
 *
 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
 * jQuery-like collections are considered empty if they have a `length` of `0`.
 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
 *
 * @function isEmpty
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
 * @example
 *
 * _.isEmpty(null);
 * // => true
 *
 * _.isEmpty(true);
 * // => true
 *
 * _.isEmpty(1);
 * // => true
 *
 * _.isEmpty([1, 2, 3]);
 * // => false
 *
 * _.isEmpty({ 'a': 1 });
 * // => false
 */


function isEmpty(value) {
  if (value == null) {
    return true;
  }

  if (typeof value !== 'object') {
    return true;
  }

  return Object.keys(value).length === 0;
}

exports.__esModule = true;
exports.createNamespace = createNamespace;

var _bem = __webpack_require__(2133);

var _component = __webpack_require__(2134);

var _i18n = __webpack_require__(2138);

function createNamespace(name) {
  name = 'van-' + name;
  return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
}

exports.__esModule = true;
exports.createBEM = createBEM;

/**
 * bem helper
 * b() // 'button'
 * b('text') // 'button__text'
 * b({ disabled }) // 'button button--disabled'
 * b('text', { disabled }) // 'button__text button__text--disabled'
 * b(['disabled', 'primary']) // 'button button--disabled button--primary'
 */
function gen(name, mods) {
  if (!mods) {
    return '';
  }

  if (typeof mods === 'string') {
    return " " + name + "--" + mods;
  }

  if (Array.isArray(mods)) {
    return mods.reduce(function (ret, item) {
      return ret + gen(name, item);
    }, '');
  }

  return Object.keys(mods).reduce(function (ret, key) {
    return ret + (mods[key] ? gen(name, key) : '');
  }, '');
}

function createBEM(name) {
  return function (el, mods) {
    if (el && typeof el !== 'string') {
      mods = el;
      el = '';
    }

    el = el ? name + "__" + el : name;
    return "" + el + gen(el, mods);
  };
}

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.unifySlots = unifySlots;
exports.createComponent = createComponent;

__webpack_require__(1485);

var _ = __webpack_require__(18);

var _string = __webpack_require__(168);

var _slots = __webpack_require__(2137);

var _vue = _interopRequireDefault(__webpack_require__(22));

/**
 * Create a basic component with common options
 */
function install(Vue) {
  var name = this.name;
  Vue.component(name, this);
  Vue.component((0, _string.camelize)("-" + name), this);
} // unify slots & scopedSlots


function unifySlots(context) {
  // use data.scopedSlots in lower Vue version
  var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  var slots = context.slots();
  Object.keys(slots).forEach(function (key) {
    if (!scopedSlots[key]) {
      scopedSlots[key] = function () {
        return slots[key];
      };
    }
  });
  return scopedSlots;
} // should be removed after Vue 3


function transformFunctionComponent(pure) {
  return {
    functional: true,
    props: pure.props,
    model: pure.model,
    render: function render(h, context) {
      return pure(h, context.props, unifySlots(context), context);
    }
  };
}

function createComponent(name) {
  return function (sfc) {
    if ((0, _.isFunction)(sfc)) {
      sfc = transformFunctionComponent(sfc);
    }

    if (!sfc.functional) {
      sfc.mixins = sfc.mixins || [];
      sfc.mixins.push(_slots.SlotsMixin);
    }

    sfc.name = name;
    sfc.install = install;
    return sfc;
  };
}

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _vue = _interopRequireDefault(__webpack_require__(22));

var _deepAssign = __webpack_require__(2135);

var _zhCN = _interopRequireDefault(__webpack_require__(2136));

var proto = _vue.default.prototype;
var defineReactive = _vue.default.util.defineReactive;
defineReactive(proto, '$vantLang', 'zh-CN');
defineReactive(proto, '$vantMessages', {
  'zh-CN': _zhCN.default
});
var _default = {
  messages: function messages() {
    return proto.$vantMessages[proto.$vantLang];
  },
  use: function use(lang, messages) {
    var _this$add;

    proto.$vantLang = lang;
    this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
  },
  add: function add(messages) {
    if (messages === void 0) {
      messages = {};
    }

    (0, _deepAssign.deepAssign)(proto.$vantMessages, messages);
  }
};
exports.default = _default;

exports.__esModule = true;
exports.deepAssign = deepAssign;

var _ = __webpack_require__(18);

var hasOwnProperty = Object.prototype.hasOwnProperty;

function assignKey(to, from, key) {
  var val = from[key];

  if (!(0, _.isDef)(val)) {
    return;
  }

  if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
    to[key] = val;
  } else {
    // eslint-disable-next-line @typescript-eslint/no-use-before-define
    to[key] = deepAssign(Object(to[key]), from[key]);
  }
}

function deepAssign(to, from) {
  Object.keys(from).forEach(function (key) {
    assignKey(to, from, key);
  });
  return to;
}

exports.__esModule = true;
exports.default = void 0;
var _default = {
  name: '姓名',
  tel: '电话',
  save: '保存',
  confirm: '确认',
  cancel: '取消',
  delete: '删除',
  complete: '完成',
  loading: '加载中...',
  telEmpty: '请填写电话',
  nameEmpty: '请填写姓名',
  nameInvalid: '请输入正确的姓名',
  confirmDelete: '确定要删除吗',
  telInvalid: '请输入正确的手机号',
  vanCalendar: {
    end: '结束',
    start: '开始',
    title: '日期选择',
    confirm: '确定',
    startEnd: '开始/结束',
    weekdays: ['日', '一', '二', '三', '四', '五', '六'],
    monthTitle: function monthTitle(year, month) {
      return year + "\u5E74" + month + "\u6708";
    },
    rangePrompt: function rangePrompt(maxRange) {
      return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
    }
  },
  vanCascader: {
    select: '请选择'
  },
  vanContactCard: {
    addText: '添加联系人'
  },
  vanContactList: {
    addText: '新建联系人'
  },
  vanPagination: {
    prev: '上一页',
    next: '下一页'
  },
  vanPullRefresh: {
    pulling: '下拉即可刷新...',
    loosing: '释放即可刷新...'
  },
  vanSubmitBar: {
    label: '合计：'
  },
  vanCoupon: {
    unlimited: '无使用门槛',
    discount: function discount(_discount) {
      return _discount + "\u6298";
    },
    condition: function condition(_condition) {
      return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
    }
  },
  vanCouponCell: {
    title: '优惠券',
    tips: '暂无可用',
    count: function count(_count) {
      return _count + "\u5F20\u53EF\u7528";
    }
  },
  vanCouponList: {
    empty: '暂无优惠券',
    exchange: '兑换',
    close: '不使用优惠券',
    enable: '可用',
    disabled: '不可用',
    placeholder: '请输入优惠码'
  },
  vanAddressEdit: {
    area: '地区',
    postal: '邮政编码',
    areaEmpty: '请选择地区',
    addressEmpty: '请填写详细地址',
    postalEmpty: '邮政编码格式不正确',
    defaultAddress: '设为默认收货地址',
    telPlaceholder: '收货人手机号',
    namePlaceholder: '收货人姓名',
    areaPlaceholder: '选择省 / 市 / 区'
  },
  vanAddressEditDetail: {
    label: '详细地址',
    placeholder: '街道门牌、楼层房间号等信息'
  },
  vanAddressList: {
    add: '新增地址'
  }
};
exports.default = _default;

exports.__esModule = true;
exports.camelize = camelize;
exports.padZero = padZero;
var camelizeRE = /-(\w)/g;

function camelize(str) {
  return str.replace(camelizeRE, function (_, c) {
    return c.toUpperCase();
  });
}

function padZero(num, targetLength) {
  if (targetLength === void 0) {
    targetLength = 2;
  }

  var str = num + '';

  while (str.length < targetLength) {
    str = '0' + str;
  }

  return str;
}

exports.__esModule = true;
exports.SlotsMixin = void 0;

/**
 * Use scopedSlots in Vue 2.6+
 * downgrade to slots in lower version
 */
var SlotsMixin = {
  methods: {
    slots: function slots(name, props) {
      if (name === void 0) {
        name = 'default';
      }

      var $slots = this.$slots,
          $scopedSlots = this.$scopedSlots;
      var scopedSlot = $scopedSlots[name];

      if (scopedSlot) {
        return scopedSlot(props);
      }

      return $slots[name];
    }
  }
};
exports.SlotsMixin = SlotsMixin;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.createI18N = createI18N;

var _ = __webpack_require__(18);

var _string = __webpack_require__(168);

var _locale = _interopRequireDefault(__webpack_require__(1485));

function createI18N(name) {
  var prefix = (0, _string.camelize)(name) + '.';
  return function (path) {
    var messages = _locale.default.messages();

    var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  };
}

exports.__esModule = true;
exports.addUnit = addUnit;
exports.unitToPx = unitToPx;

var _ = __webpack_require__(18);

var _number = __webpack_require__(281);

function addUnit(value) {
  if (!(0, _.isDef)(value)) {
    return undefined;
  }

  value = String(value);
  return (0, _number.isNumeric)(value) ? value + "px" : value;
} // cache


var rootFontSize;

function getRootFontSize() {
  if (!rootFontSize) {
    var doc = document.documentElement;
    var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
    rootFontSize = parseFloat(fontSize);
  }

  return rootFontSize;
}

function convertRem(value) {
  value = value.replace(/rem/g, '');
  return +value * getRootFontSize();
}

function convertVw(value) {
  value = value.replace(/vw/g, '');
  return +value * window.innerWidth / 100;
}

function convertVh(value) {
  value = value.replace(/vh/g, '');
  return +value * window.innerHeight / 100;
}

function unitToPx(value) {
  if (typeof value === 'number') {
    return value;
  }

  if (_.inBrowser) {
    if (value.indexOf('rem') !== -1) {
      return convertRem(value);
    }

    if (value.indexOf('vw') !== -1) {
      return convertVw(value);
    }

    if (value.indexOf('vh') !== -1) {
      return convertVh(value);
    }
  }

  return parseFloat(value);
}

exports.__esModule = true;
exports.isNumeric = isNumeric;
exports.isNaN = isNaN;

function isNumeric(val) {
  return /^\d+(\.\d+)?$/.test(val);
}

function isNaN(val) {
  if (Number.isNaN) {
    return Number.isNaN(val);
  } // eslint-disable-next-line no-self-compare


  return val !== val;
}/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return camelize; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return padZero; });
var camelizeRE = /-(\w)/g;
function camelize(str) {
  return str.replace(camelizeRE, function (_, c) {
    return c.toUpperCase();
  });
}
function padZero(num, targetLength) {
  if (targetLength === void 0) {
    targetLength = 2;
  }

  var str = num + '';

  while (str.length < targetLength) {
    str = '0' + str;
  }

  return str;
}/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return inBrowser; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isServer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return noop; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isDef; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isFunction; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isPromise; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return get; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isEmpty; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);



var inBrowser = typeof window !== 'undefined';
var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function

function noop() {}
function isDef(val) {
  return val !== undefined && val !== null;
}
function isFunction(val) {
  return typeof val === 'function';
}
function isObject(val) {
  return val !== null && typeof val === 'object';
}
function isPromise(val) {
  return isObject(val) && isFunction(val.then) && isFunction(val.catch);
}
function get(object, path) {
  var keys = path.split('.');
  var result = object;
  keys.forEach(function (key) {
    var _result$key;

    result = isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';
  });
  return result;
}
/**
 * Checks if `value` is an empty object, collection, map, or set.
 *
 * Objects are considered empty if they have no own enumerable string keyed
 * properties.
 *
 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
 * jQuery-like collections are considered empty if they have a `length` of `0`.
 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
 *
 * @function isEmpty
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
 * @example
 *
 * _.isEmpty(null);
 * // => true
 *
 * _.isEmpty(true);
 * // => true
 *
 * _.isEmpty(1);
 * // => true
 *
 * _.isEmpty([1, 2, 3]);
 * // => false
 *
 * _.isEmpty({ 'a': 1 });
 * // => false
 */

function isEmpty(value) {
  if (value == null) {
    return true;
  }

  if (typeof value !== 'object') {
    return true;
  }

  return Object.keys(value).length === 0;
}/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addUnit; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return unitToPx; });
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
/* harmony import */ var _validate_number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78);


function addUnit(value) {
  if (!Object(___WEBPACK_IMPORTED_MODULE_0__[/* isDef */ "c"])(value)) {
    return undefined;
  }

  value = String(value);
  return Object(_validate_number__WEBPACK_IMPORTED_MODULE_1__[/* isNumeric */ "b"])(value) ? value + "px" : value;
} // cache

var rootFontSize;

function getRootFontSize() {
  if (!rootFontSize) {
    var doc = document.documentElement;
    var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
    rootFontSize = parseFloat(fontSize);
  }

  return rootFontSize;
}

function convertRem(value) {
  value = value.replace(/rem/g, '');
  return +value * getRootFontSize();
}

function convertVw(value) {
  value = value.replace(/vw/g, '');
  return +value * window.innerWidth / 100;
}

function convertVh(value) {
  value = value.replace(/vh/g, '');
  return +value * window.innerHeight / 100;
}

function unitToPx(value) {
  if (typeof value === 'number') {
    return value;
  }

  if (___WEBPACK_IMPORTED_MODULE_0__[/* inBrowser */ "b"]) {
    if (value.indexOf('rem') !== -1) {
      return convertRem(value);
    }

    if (value.indexOf('vw') !== -1) {
      return convertVw(value);
    }

    if (value.indexOf('vh') !== -1) {
      return convertVh(value);
    }
  }

  return parseFloat(value);
}/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isNumeric; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isNaN; });
function isNumeric(val) {
  return /^\d+(\.\d+)?$/.test(val);
}
function isNaN(val) {
  if (Number.isNaN) {
    return Number.isNaN(val);
  } // eslint-disable-next-line no-self-compare


  return val !== val;
}/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return raf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return doubleRaf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cancelRaf; });
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
/**
 * requestAnimationFrame polyfill
 */

var prev = Date.now();
/* istanbul ignore next */

function fallback(fn) {
  var curr = Date.now();
  var ms = Math.max(0, 16 - (curr - prev));
  var id = setTimeout(fn, ms);
  prev = curr + ms;
  return id;
}
/* istanbul ignore next */


var root = ___WEBPACK_IMPORTED_MODULE_0__[/* isServer */ "h"] ? global : window;
/* istanbul ignore next */

var iRaf = root.requestAnimationFrame || fallback;
/* istanbul ignore next */

var iCancel = root.cancelAnimationFrame || root.clearTimeout;
function raf(fn) {
  return iRaf.call(root, fn);
} // double raf for animation

function doubleRaf(fn) {
  raf(function () {
    raf(fn);
  });
}
function cancelRaf(id) {
  iCancel.call(root, id);
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(50)))

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.offsetModifier = exports.createPopper = void 0;
// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getWindow.js
function getWindow(node) {
  if (node == null) {
    return window;
  }
  if (node.toString() !== "[object Window]") {
    var ownerDocument = node.ownerDocument;
    return ownerDocument ? ownerDocument.defaultView || window : window;
  }
  return node;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
function isElement(node) {
  var OwnElement = getWindow(node).Element;
  return node instanceof OwnElement || node instanceof Element;
}
function isHTMLElement(node) {
  var OwnElement = getWindow(node).HTMLElement;
  return node instanceof OwnElement || node instanceof HTMLElement;
}
function isShadowRoot(node) {
  if (typeof ShadowRoot === "undefined") {
    return false;
  }
  var OwnElement = getWindow(node).ShadowRoot;
  return node instanceof OwnElement || node instanceof ShadowRoot;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/math.js
var round = Math.round;

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/userAgent.js
function getUAString() {
  var uaData = navigator.userAgentData;
  if (uaData != null && uaData.brands) {
    return uaData.brands.map(function (item) {
      return item.brand + "/" + item.version;
    }).join(" ");
  }
  return navigator.userAgent;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
function isLayoutViewport() {
  return !/^((?!chrome|android).)*safari/i.test(getUAString());
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
  if (includeScale === void 0) {
    includeScale = false;
  }
  if (isFixedStrategy === void 0) {
    isFixedStrategy = false;
  }
  var clientRect = element.getBoundingClientRect();
  var scaleX = 1;
  var scaleY = 1;
  if (includeScale && isHTMLElement(element)) {
    scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
    scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
  }
  var _ref = isElement(element) ? getWindow(element) : window,
    visualViewport = _ref.visualViewport;
  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
  var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
  var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
  var width = clientRect.width / scaleX;
  var height = clientRect.height / scaleY;
  return {
    width: width,
    height: height,
    top: y,
    right: x + width,
    bottom: y + height,
    left: x,
    x: x,
    y: y
  };
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
function getWindowScroll(node) {
  var win = getWindow(node);
  var scrollLeft = win.pageXOffset;
  var scrollTop = win.pageYOffset;
  return {
    scrollLeft: scrollLeft,
    scrollTop: scrollTop
  };
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
function getHTMLElementScroll(element) {
  return {
    scrollLeft: element.scrollLeft,
    scrollTop: element.scrollTop
  };
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
function getNodeScroll(node) {
  if (node === getWindow(node) || !isHTMLElement(node)) {
    return getWindowScroll(node);
  } else {
    return getHTMLElementScroll(node);
  }
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
function getNodeName(element) {
  return element ? (element.nodeName || "").toLowerCase() : null;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
function getDocumentElement(element) {
  return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
function getWindowScrollBarX(element) {
  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
function getComputedStyle(element) {
  return getWindow(element).getComputedStyle(element);
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
function isScrollParent(element) {
  var _getComputedStyle = getComputedStyle(element),
    overflow = _getComputedStyle.overflow,
    overflowX = _getComputedStyle.overflowX,
    overflowY = _getComputedStyle.overflowY;
  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
function isElementScaled(element) {
  var rect = element.getBoundingClientRect();
  var scaleX = round(rect.width) / element.offsetWidth || 1;
  var scaleY = round(rect.height) / element.offsetHeight || 1;
  return scaleX !== 1 || scaleY !== 1;
}
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
  if (isFixed === void 0) {
    isFixed = false;
  }
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
  var documentElement = getDocumentElement(offsetParent);
  var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
  var scroll = {
    scrollLeft: 0,
    scrollTop: 0
  };
  var offsets = {
    x: 0,
    y: 0
  };
  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
    if (getNodeName(offsetParent) !== "body" || isScrollParent(documentElement)) {
      scroll = getNodeScroll(offsetParent);
    }
    if (isHTMLElement(offsetParent)) {
      offsets = getBoundingClientRect(offsetParent, true);
      offsets.x += offsetParent.clientLeft;
      offsets.y += offsetParent.clientTop;
    } else if (documentElement) {
      offsets.x = getWindowScrollBarX(documentElement);
    }
  }
  return {
    x: rect.left + scroll.scrollLeft - offsets.x,
    y: rect.top + scroll.scrollTop - offsets.y,
    width: rect.width,
    height: rect.height
  };
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
function getLayoutRect(element) {
  var clientRect = getBoundingClientRect(element);
  var width = element.offsetWidth;
  var height = element.offsetHeight;
  if (Math.abs(clientRect.width - width) <= 1) {
    width = clientRect.width;
  }
  if (Math.abs(clientRect.height - height) <= 1) {
    height = clientRect.height;
  }
  return {
    x: element.offsetLeft,
    y: element.offsetTop,
    width: width,
    height: height
  };
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
function getParentNode(element) {
  if (getNodeName(element) === "html") {
    return element;
  }
  return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
function getScrollParent(node) {
  if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
    return node.ownerDocument.body;
  }
  if (isHTMLElement(node) && isScrollParent(node)) {
    return node;
  }
  return getScrollParent(getParentNode(node));
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
function listScrollParents(element, list) {
  var _element$ownerDocumen;
  if (list === void 0) {
    list = [];
  }
  var scrollParent = getScrollParent(element);
  var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
  var win = getWindow(scrollParent);
  var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
  var updatedList = list.concat(target);
  return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
function isTableElement(element) {
  return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
function getTrueOffsetParent(element) {
  if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
    return null;
  }
  return element.offsetParent;
}
function getContainingBlock(element) {
  var isFirefox = /firefox/i.test(getUAString());
  var isIE = /Trident/i.test(getUAString());
  if (isIE && isHTMLElement(element)) {
    var elementCss = getComputedStyle(element);
    if (elementCss.position === "fixed") {
      return null;
    }
  }
  var currentNode = getParentNode(element);
  if (isShadowRoot(currentNode)) {
    currentNode = currentNode.host;
  }
  while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
    var css = getComputedStyle(currentNode);
    if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") {
      return currentNode;
    } else {
      currentNode = currentNode.parentNode;
    }
  }
  return null;
}
function getOffsetParent(element) {
  var window2 = getWindow(element);
  var offsetParent = getTrueOffsetParent(element);
  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
    offsetParent = getTrueOffsetParent(offsetParent);
  }
  if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
    return window2;
  }
  return offsetParent || getContainingBlock(element) || window2;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/enums.js
var top = "top";
var bottom = "bottom";
var right = "right";
var left = "left";
var auto = "auto";
var basePlacements = [top, bottom, right, left];
var start = "start";
var end = "end";
var placements = /* @__PURE__ */[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
  return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
}, []);
var beforeRead = "beforeRead";
var read = "read";
var afterRead = "afterRead";
var beforeMain = "beforeMain";
var main = "main";
var afterMain = "afterMain";
var beforeWrite = "beforeWrite";
var write = "write";
var afterWrite = "afterWrite";
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/orderModifiers.js
function order(modifiers) {
  var map = /* @__PURE__ */new Map();
  var visited = /* @__PURE__ */new Set();
  var result = [];
  modifiers.forEach(function (modifier) {
    map.set(modifier.name, modifier);
  });
  function sort(modifier) {
    visited.add(modifier.name);
    var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
    requires.forEach(function (dep) {
      if (!visited.has(dep)) {
        var depModifier = map.get(dep);
        if (depModifier) {
          sort(depModifier);
        }
      }
    });
    result.push(modifier);
  }
  modifiers.forEach(function (modifier) {
    if (!visited.has(modifier.name)) {
      sort(modifier);
    }
  });
  return result;
}
function orderModifiers(modifiers) {
  var orderedModifiers = order(modifiers);
  return modifierPhases.reduce(function (acc, phase) {
    return acc.concat(orderedModifiers.filter(function (modifier) {
      return modifier.phase === phase;
    }));
  }, []);
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/debounce.js
function debounce(fn2) {
  var pending;
  return function () {
    if (!pending) {
      pending = new Promise(function (resolve) {
        Promise.resolve().then(function () {
          pending = void 0;
          resolve(fn2());
        });
      });
    }
    return pending;
  };
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/format.js
function format(str) {
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }
  return [].concat(args).reduce(function (p, c) {
    return p.replace(/%s/, c);
  }, str);
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/validateModifiers.js
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
var VALID_PROPERTIES = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
function validateModifiers(modifiers) {
  modifiers.forEach(function (modifier) {
    [].concat(Object.keys(modifier), VALID_PROPERTIES).filter(function (value, index, self) {
      return self.indexOf(value) === index;
    }).forEach(function (key) {
      switch (key) {
        case "name":
          if (typeof modifier.name !== "string") {
            console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', '"' + String(modifier.name) + '"'));
          }
          break;
        case "enabled":
          if (typeof modifier.enabled !== "boolean") {
            console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', '"' + String(modifier.enabled) + '"'));
          }
          break;
        case "phase":
          if (modifierPhases.indexOf(modifier.phase) < 0) {
            console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(", "), '"' + String(modifier.phase) + '"'));
          }
          break;
        case "fn":
          if (typeof modifier.fn !== "function") {
            console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', '"' + String(modifier.fn) + '"'));
          }
          break;
        case "effect":
          if (modifier.effect != null && typeof modifier.effect !== "function") {
            console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', '"' + String(modifier.fn) + '"'));
          }
          break;
        case "requires":
          if (modifier.requires != null && !Array.isArray(modifier.requires)) {
            console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', '"' + String(modifier.requires) + '"'));
          }
          break;
        case "requiresIfExists":
          if (!Array.isArray(modifier.requiresIfExists)) {
            console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', '"' + String(modifier.requiresIfExists) + '"'));
          }
          break;
        case "options":
        case "data":
          break;
        default:
          console.error('PopperJS: an invalid property has been provided to the "' + modifier.name + '" modifier, valid properties are ' + VALID_PROPERTIES.map(function (s) {
            return '"' + s + '"';
          }).join(", ") + '; but "' + key + '" was provided.');
      }
      modifier.requires && modifier.requires.forEach(function (requirement) {
        if (modifiers.find(function (mod) {
          return mod.name === requirement;
        }) == null) {
          console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
        }
      });
    });
  });
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/uniqueBy.js
function uniqueBy(arr, fn2) {
  var identifiers = /* @__PURE__ */new Set();
  return arr.filter(function (item) {
    var identifier = fn2(item);
    if (!identifiers.has(identifier)) {
      identifiers.add(identifier);
      return true;
    }
  });
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/getBasePlacement.js
function getBasePlacement(placement) {
  return placement.split("-")[0];
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/mergeByName.js
function mergeByName(modifiers) {
  var merged = modifiers.reduce(function (merged2, current) {
    var existing = merged2[current.name];
    merged2[current.name] = existing ? Object.assign({}, existing, current, {
      options: Object.assign({}, existing.options, current.options),
      data: Object.assign({}, existing.data, current.data)
    }) : current;
    return merged2;
  }, {});
  return Object.keys(merged).map(function (key) {
    return merged[key];
  });
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/getVariation.js
function getVariation(placement) {
  return placement.split("-")[1];
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
function getMainAxisFromPlacement(placement) {
  return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/utils/computeOffsets.js
function computeOffsets(_ref) {
  var reference = _ref.reference,
    element = _ref.element,
    placement = _ref.placement;
  var basePlacement = placement ? getBasePlacement(placement) : null;
  var variation = placement ? getVariation(placement) : null;
  var commonX = reference.x + reference.width / 2 - element.width / 2;
  var commonY = reference.y + reference.height / 2 - element.height / 2;
  var offsets;
  switch (basePlacement) {
    case top:
      offsets = {
        x: commonX,
        y: reference.y - element.height
      };
      break;
    case bottom:
      offsets = {
        x: commonX,
        y: reference.y + reference.height
      };
      break;
    case right:
      offsets = {
        x: reference.x + reference.width,
        y: commonY
      };
      break;
    case left:
      offsets = {
        x: reference.x - element.width,
        y: commonY
      };
      break;
    default:
      offsets = {
        x: reference.x,
        y: reference.y
      };
  }
  var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
  if (mainAxis != null) {
    var len = mainAxis === "y" ? "height" : "width";
    switch (variation) {
      case start:
        offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
        break;
      case end:
        offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
        break;
      default:
    }
  }
  return offsets;
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/createPopper.js
var INVALID_ELEMENT_ERROR = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";
var INFINITE_LOOP_ERROR = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.";
var DEFAULT_OPTIONS = {
  placement: "bottom",
  modifiers: [],
  strategy: "absolute"
};
function areValidElements() {
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
    args[_key] = arguments[_key];
  }
  return !args.some(function (element) {
    return !(element && typeof element.getBoundingClientRect === "function");
  });
}
function popperGenerator(generatorOptions) {
  if (generatorOptions === void 0) {
    generatorOptions = {};
  }
  var _generatorOptions = generatorOptions,
    _generatorOptions$def = _generatorOptions.defaultModifiers,
    defaultModifiers2 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
    _generatorOptions$def2 = _generatorOptions.defaultOptions,
    defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
  return function createPopper2(reference, popper, options) {
    if (options === void 0) {
      options = defaultOptions;
    }
    var state = {
      placement: "bottom",
      orderedModifiers: [],
      options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
      modifiersData: {},
      elements: {
        reference: reference,
        popper: popper
      },
      attributes: {},
      styles: {}
    };
    var effectCleanupFns = [];
    var isDestroyed = false;
    var instance = {
      state: state,
      setOptions: function setOptions(setOptionsAction) {
        var options2 = typeof setOptionsAction === "function" ? setOptionsAction(state.options) : setOptionsAction;
        cleanupModifierEffects();
        state.options = Object.assign({}, defaultOptions, state.options, options2);
        state.scrollParents = {
          reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
          popper: listScrollParents(popper)
        };
        var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
        state.orderedModifiers = orderedModifiers.filter(function (m) {
          return m.enabled;
        });
        if (true) {
          var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
            var name = _ref.name;
            return name;
          });
          validateModifiers(modifiers);
          if (getBasePlacement(state.options.placement) === auto) {
            var flipModifier = state.orderedModifiers.find(function (_ref2) {
              var name = _ref2.name;
              return name === "flip";
            });
            if (!flipModifier) {
              console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
            }
          }
          var _getComputedStyle = getComputedStyle(popper),
            marginTop = _getComputedStyle.marginTop,
            marginRight = _getComputedStyle.marginRight,
            marginBottom = _getComputedStyle.marginBottom,
            marginLeft = _getComputedStyle.marginLeft;
          if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
            return parseFloat(margin);
          })) {
            console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
          }
        }
        runModifierEffects();
        return instance.update();
      },
      forceUpdate: function forceUpdate() {
        if (isDestroyed) {
          return;
        }
        var _state$elements = state.elements,
          reference2 = _state$elements.reference,
          popper2 = _state$elements.popper;
        if (!areValidElements(reference2, popper2)) {
          if (true) {
            console.error(INVALID_ELEMENT_ERROR);
          }
          return;
        }
        state.rects = {
          reference: getCompositeRect(reference2, getOffsetParent(popper2), state.options.strategy === "fixed"),
          popper: getLayoutRect(popper2)
        };
        state.reset = false;
        state.placement = state.options.placement;
        state.orderedModifiers.forEach(function (modifier) {
          return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
        });
        var __debug_loops__ = 0;
        for (var index = 0; index < state.orderedModifiers.length; index++) {
          if (true) {
            __debug_loops__ += 1;
            if (__debug_loops__ > 100) {
              console.error(INFINITE_LOOP_ERROR);
              break;
            }
          }
          if (state.reset === true) {
            state.reset = false;
            index = -1;
            continue;
          }
          var _state$orderedModifie = state.orderedModifiers[index],
            fn2 = _state$orderedModifie.fn,
            _state$orderedModifie2 = _state$orderedModifie.options,
            _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
            name = _state$orderedModifie.name;
          if (typeof fn2 === "function") {
            state = fn2({
              state: state,
              options: _options,
              name: name,
              instance: instance
            }) || state;
          }
        }
      },
      update: debounce(function () {
        return new Promise(function (resolve) {
          instance.forceUpdate();
          resolve(state);
        });
      }),
      destroy: function destroy() {
        cleanupModifierEffects();
        isDestroyed = true;
      }
    };
    if (!areValidElements(reference, popper)) {
      if (true) {
        console.error(INVALID_ELEMENT_ERROR);
      }
      return instance;
    }
    instance.setOptions(options).then(function (state2) {
      if (!isDestroyed && options.onFirstUpdate) {
        options.onFirstUpdate(state2);
      }
    });
    function runModifierEffects() {
      state.orderedModifiers.forEach(function (_ref3) {
        var name = _ref3.name,
          _ref3$options = _ref3.options,
          options2 = _ref3$options === void 0 ? {} : _ref3$options,
          effect3 = _ref3.effect;
        if (typeof effect3 === "function") {
          var cleanupFn = effect3({
            state: state,
            name: name,
            instance: instance,
            options: options2
          });
          var noopFn = function noopFn2() {};
          effectCleanupFns.push(cleanupFn || noopFn);
        }
      });
    }
    function cleanupModifierEffects() {
      effectCleanupFns.forEach(function (fn2) {
        return fn2();
      });
      effectCleanupFns = [];
    }
    return instance;
  };
}

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/modifiers/eventListeners.js
var passive = {
  passive: true
};
function effect(_ref) {
  var state = _ref.state,
    instance = _ref.instance,
    options = _ref.options;
  var _options$scroll = options.scroll,
    scroll = _options$scroll === void 0 ? true : _options$scroll,
    _options$resize = options.resize,
    resize = _options$resize === void 0 ? true : _options$resize;
  var window2 = getWindow(state.elements.popper);
  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
  if (scroll) {
    scrollParents.forEach(function (scrollParent) {
      scrollParent.addEventListener("scroll", instance.update, passive);
    });
  }
  if (resize) {
    window2.addEventListener("resize", instance.update, passive);
  }
  return function () {
    if (scroll) {
      scrollParents.forEach(function (scrollParent) {
        scrollParent.removeEventListener("scroll", instance.update, passive);
      });
    }
    if (resize) {
      window2.removeEventListener("resize", instance.update, passive);
    }
  };
}
var eventListeners_default = {
  name: "eventListeners",
  enabled: true,
  phase: "write",
  fn: function fn() {},
  effect: effect,
  data: {}
};

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
function popperOffsets(_ref) {
  var state = _ref.state,
    name = _ref.name;
  state.modifiersData[name] = computeOffsets({
    reference: state.rects.reference,
    element: state.rects.popper,
    strategy: "absolute",
    placement: state.placement
  });
}
var popperOffsets_default = {
  name: "popperOffsets",
  enabled: true,
  phase: "read",
  fn: popperOffsets,
  data: {}
};

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/modifiers/computeStyles.js
var unsetSides = {
  top: "auto",
  right: "auto",
  bottom: "auto",
  left: "auto"
};
function roundOffsetsByDPR(_ref) {
  var x = _ref.x,
    y = _ref.y;
  var win = window;
  var dpr = win.devicePixelRatio || 1;
  return {
    x: round(x * dpr) / dpr || 0,
    y: round(y * dpr) / dpr || 0
  };
}
function mapToStyles(_ref2) {
  var _Object$assign2;
  var popper = _ref2.popper,
    popperRect = _ref2.popperRect,
    placement = _ref2.placement,
    variation = _ref2.variation,
    offsets = _ref2.offsets,
    position = _ref2.position,
    gpuAcceleration = _ref2.gpuAcceleration,
    adaptive = _ref2.adaptive,
    roundOffsets = _ref2.roundOffsets,
    isFixed = _ref2.isFixed;
  var _offsets$x = offsets.x,
    x = _offsets$x === void 0 ? 0 : _offsets$x,
    _offsets$y = offsets.y,
    y = _offsets$y === void 0 ? 0 : _offsets$y;
  var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
    x: x,
    y: y
  }) : {
    x: x,
    y: y
  };
  x = _ref3.x;
  y = _ref3.y;
  var hasX = offsets.hasOwnProperty("x");
  var hasY = offsets.hasOwnProperty("y");
  var sideX = left;
  var sideY = top;
  var win = window;
  if (adaptive) {
    var offsetParent = getOffsetParent(popper);
    var heightProp = "clientHeight";
    var widthProp = "clientWidth";
    if (offsetParent === getWindow(popper)) {
      offsetParent = getDocumentElement(popper);
      if (getComputedStyle(offsetParent).position !== "static" && position === "absolute") {
        heightProp = "scrollHeight";
        widthProp = "scrollWidth";
      }
    }
    offsetParent = offsetParent;
    if (placement === top || (placement === left || placement === right) && variation === end) {
      sideY = bottom;
      var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];
      y -= offsetY - popperRect.height;
      y *= gpuAcceleration ? 1 : -1;
    }
    if (placement === left || (placement === top || placement === bottom) && variation === end) {
      sideX = right;
      var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : offsetParent[widthProp];
      x -= offsetX - popperRect.width;
      x *= gpuAcceleration ? 1 : -1;
    }
  }
  var commonStyles = Object.assign({
    position: position
  }, adaptive && unsetSides);
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
    x: x,
    y: y
  }) : {
    x: x,
    y: y
  };
  x = _ref4.x;
  y = _ref4.y;
  if (gpuAcceleration) {
    var _Object$assign;
    return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
  }
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
}
function computeStyles(_ref5) {
  var state = _ref5.state,
    options = _ref5.options;
  var _options$gpuAccelerat = options.gpuAcceleration,
    gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
    _options$adaptive = options.adaptive,
    adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
    _options$roundOffsets = options.roundOffsets,
    roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
  if (true) {
    var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || "";
    if (adaptive && ["transform", "top", "right", "bottom", "left"].some(function (property) {
      return transitionProperty.indexOf(property) >= 0;
    })) {
      console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', "\n\n", 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", "\n\n", "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
    }
  }
  var commonStyles = {
    placement: getBasePlacement(state.placement),
    variation: getVariation(state.placement),
    popper: state.elements.popper,
    popperRect: state.rects.popper,
    gpuAcceleration: gpuAcceleration,
    isFixed: state.options.strategy === "fixed"
  };
  if (state.modifiersData.popperOffsets != null) {
    state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
      offsets: state.modifiersData.popperOffsets,
      position: state.options.strategy,
      adaptive: adaptive,
      roundOffsets: roundOffsets
    })));
  }
  if (state.modifiersData.arrow != null) {
    state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
      offsets: state.modifiersData.arrow,
      position: "absolute",
      adaptive: false,
      roundOffsets: roundOffsets
    })));
  }
  state.attributes.popper = Object.assign({}, state.attributes.popper, {
    "data-popper-placement": state.placement
  });
}
var computeStyles_default = {
  name: "computeStyles",
  enabled: true,
  phase: "beforeWrite",
  fn: computeStyles,
  data: {}
};

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/modifiers/applyStyles.js
function applyStyles(_ref) {
  var state = _ref.state;
  Object.keys(state.elements).forEach(function (name) {
    var style = state.styles[name] || {};
    var attributes = state.attributes[name] || {};
    var element = state.elements[name];
    if (!isHTMLElement(element) || !getNodeName(element)) {
      return;
    }
    Object.assign(element.style, style);
    Object.keys(attributes).forEach(function (name2) {
      var value = attributes[name2];
      if (value === false) {
        element.removeAttribute(name2);
      } else {
        element.setAttribute(name2, value === true ? "" : value);
      }
    });
  });
}
function effect2(_ref2) {
  var state = _ref2.state;
  var initialStyles = {
    popper: {
      position: state.options.strategy,
      left: "0",
      top: "0",
      margin: "0"
    },
    arrow: {
      position: "absolute"
    },
    reference: {}
  };
  Object.assign(state.elements.popper.style, initialStyles.popper);
  state.styles = initialStyles;
  if (state.elements.arrow) {
    Object.assign(state.elements.arrow.style, initialStyles.arrow);
  }
  return function () {
    Object.keys(state.elements).forEach(function (name) {
      var element = state.elements[name];
      var attributes = state.attributes[name] || {};
      var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
      var style = styleProperties.reduce(function (style2, property) {
        style2[property] = "";
        return style2;
      }, {});
      if (!isHTMLElement(element) || !getNodeName(element)) {
        return;
      }
      Object.assign(element.style, style);
      Object.keys(attributes).forEach(function (attribute) {
        element.removeAttribute(attribute);
      });
    });
  };
}
var applyStyles_default = {
  name: "applyStyles",
  enabled: true,
  phase: "write",
  fn: applyStyles,
  effect: effect2,
  requires: ["computeStyles"]
};

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/popper-lite.js
var defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default];
var createPopper = exports.createPopper = /* @__PURE__ */popperGenerator({
  defaultModifiers: defaultModifiers
});

// ../../node_modules/.pnpm/@popperjs+core@2.11.6/node_modules/@popperjs/core/lib/modifiers/offset.js
function distanceAndSkiddingToXY(placement, rects, offset2) {
  var basePlacement = getBasePlacement(placement);
  var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
  var _ref = typeof offset2 === "function" ? offset2(Object.assign({}, rects, {
      placement: placement
    })) : offset2,
    skidding = _ref[0],
    distance = _ref[1];
  skidding = skidding || 0;
  distance = (distance || 0) * invertDistance;
  return [left, right].indexOf(basePlacement) >= 0 ? {
    x: distance,
    y: skidding
  } : {
    x: skidding,
    y: distance
  };
}
function offset(_ref2) {
  var state = _ref2.state,
    options = _ref2.options,
    name = _ref2.name;
  var _options$offset = options.offset,
    offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
  var data = placements.reduce(function (acc, placement) {
    acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
    return acc;
  }, {});
  var _data$state$placement = data[state.placement],
    x = _data$state$placement.x,
    y = _data$state$placement.y;
  if (state.modifiersData.popperOffsets != null) {
    state.modifiersData.popperOffsets.x += x;
    state.modifiersData.popperOffsets.y += y;
  }
  state.modifiersData[name] = data;
}
var offset_default = exports.offsetModifier = {
  name: "offset",
  enabled: true,
  phase: "main",
  requires: ["popperOffsets"],
  fn: offset
};/*!
 * Vue-Lazyload.js v1.2.3
 * (c) 2018 Awe <hilongjw@gmail.com>
 * Released under the MIT License.
 */
!function(e,t){ true?module.exports=t():undefined}(this,function(){"use strict";function e(e){return e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function t(e){e=e||{};var t=arguments.length,i=0;if(1===t)return e;for(;++i<t;){var o=arguments[i];g(e)&&(e=o),r(o)&&n(e,o)}return e}function n(e,n){m(e,n);for(var o in n)if("__proto__"!==o&&i(n,o)){var a=n[o];r(a)?("undefined"===L(e[o])&&"function"===L(a)&&(e[o]=a),e[o]=t(e[o]||{},a)):e[o]=a}return e}function r(e){return"object"===L(e)||"function"===L(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e,t){if(e.length){var n=e.indexOf(t);return n>-1?e.splice(n,1):void 0}}function a(e,t){for(var n=!1,r=0,i=e.length;r<i;r++)if(t(e[r])){n=!0;break}return n}function s(e,t){if("IMG"===e.tagName&&e.getAttribute("data-srcset")){var n=e.getAttribute("data-srcset"),r=[],i=e.parentNode,o=i.offsetWidth*t,a=void 0,s=void 0,u=void 0;n=n.trim().split(","),n.map(function(e){e=e.trim(),a=e.lastIndexOf(" "),-1===a?(s=e,u=999998):(s=e.substr(0,a),u=parseInt(e.substr(a+1,e.length-a-2),10)),r.push([u,s])}),r.sort(function(e,t){if(e[0]<t[0])return-1;if(e[0]>t[0])return 1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0});for(var l="",d=void 0,c=r.length,h=0;h<c;h++)if(d=r[h],d[0]>=o){l=d[1];break}return l}}function u(e,t){for(var n=void 0,r=0,i=e.length;r<i;r++)if(t(e[r])){n=e[r];break}return n}function l(){if(!k)return!1;var e=!0,t=document;try{var n=t.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",t.body.appendChild(n),e=!n.offsetWidth,t.body.removeChild(n)}catch(t){e=!1}return e}function d(e,t){var n=null,r=0;return function(){if(!n){var i=Date.now()-r,o=this,a=arguments,s=function(){r=Date.now(),n=!1,e.apply(o,a)};i>=t?s():n=setTimeout(s,t)}}}function c(e){return null!==e&&"object"===(void 0===e?"undefined":p(e))}function h(e){if(!(e instanceof Object))return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function f(e){for(var t=e.length,n=[],r=0;r<t;r++)n.push(e[r]);return n}function v(){}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=function(e){return null==e||"function"!=typeof e&&"object"!==(void 0===e?"undefined":p(e))},m=function(e,t){if(null===e||void 0===e)throw new TypeError("expected first argument to be an object.");if(void 0===t||"undefined"==typeof Symbol)return e;if("function"!=typeof Object.getOwnPropertySymbols)return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),i=arguments.length,o=0;++o<i;)for(var a=Object(arguments[o]),s=Object.getOwnPropertySymbols(a),u=0;u<s.length;u++){var l=s[u];n.call(a,l)&&(r[l]=a[l])}return r},w=Object.prototype.toString,L=function(t){var n=void 0===t?"undefined":p(t);return"undefined"===n?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===n||t instanceof String?"string":"number"===n||t instanceof Number?"number":"function"===n||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":(n=w.call(t),"[object RegExp]"===n?"regexp":"[object Date]"===n?"date":"[object Arguments]"===n?"arguments":"[object Error]"===n?"error":"[object Promise]"===n?"promise":e(t)?"buffer":"[object Set]"===n?"set":"[object WeakSet]"===n?"weakset":"[object Map]"===n?"map":"[object WeakMap]"===n?"weakmap":"[object Symbol]"===n?"symbol":"[object Map Iterator]"===n?"mapiterator":"[object Set Iterator]"===n?"setiterator":"[object String Iterator]"===n?"stringiterator":"[object Array Iterator]"===n?"arrayiterator":"[object Int8Array]"===n?"int8array":"[object Uint8Array]"===n?"uint8array":"[object Uint8ClampedArray]"===n?"uint8clampedarray":"[object Int16Array]"===n?"int16array":"[object Uint16Array]"===n?"uint16array":"[object Int32Array]"===n?"int32array":"[object Uint32Array]"===n?"uint32array":"[object Float32Array]"===n?"float32array":"[object Float64Array]"===n?"float64array":"object")},_=t,k="undefined"!=typeof window,E=k&&"IntersectionObserver"in window,A={event:"event",observer:"observer"},j=function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}if(k)return"function"==typeof window.CustomEvent?window.CustomEvent:(e.prototype=window.Event.prototype,e)}(),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return k?window.devicePixelRatio||e:e},T=function(){if(k){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}}(),O={on:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];T?e.addEventListener(t,n,{capture:r,passive:!0}):e.addEventListener(t,n,r)},off:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}},I=function(e,t,n){var r=new Image;r.src=e.src,r.onload=function(){t({naturalHeight:r.naturalHeight,naturalWidth:r.naturalWidth,src:r.src})},r.onerror=function(e){n(e)}},x=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},S=function(e){return x(e,"overflow")+x(e,"overflow-y")+x(e,"overflow-x")},$=function(e){if(k){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(S(t)))return t;t=t.parentNode}return window}},H={},Q=function(){function e(t){var n=t.el,r=t.src,i=t.error,o=t.loading,a=t.bindType,s=t.$parent,u=t.options,l=t.elRenderer;b(this,e),this.el=n,this.src=r,this.error=i,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=s,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return y(e,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(e){this.performanceData[e]=Date.now()}},{key:"update",value:function(e){var t=e.src,n=e.loading,r=e.error,i=this.src;this.src=t,this.loading=n,this.error=r,this.filter(),i!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var e=this;h(this.options.filter).map(function(t){e.options.filter[t](e,e.options)})}},{key:"renderLoading",value:function(e){var t=this;I({src:this.loading},function(n){t.render("loading",!1),e()},function(){e(),t.options.silent||console.warn("VueLazyload log: load failed with loading image("+t.loading+")")})}},{key:"load",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void t()):this.state.loaded||H[this.src]?(this.state.loaded=!0,t(),this.render("loaded",!0)):void this.renderLoading(function(){e.attempt++,e.record("loadStart"),I({src:e.src},function(n){e.naturalHeight=n.naturalHeight,e.naturalWidth=n.naturalWidth,e.state.loaded=!0,e.state.error=!1,e.record("loadEnd"),e.render("loaded",!1),H[e.src]=1,t()},function(t){!e.options.silent&&console.error(t),e.state.error=!0,e.state.loaded=!1,e.render("error",!1)})})}},{key:"render",value:function(e,t){this.elRenderer(this,e,t)}},{key:"performance",value:function(){var e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),e}(),C="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",R=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],W={rootMargin:"0px",threshold:0},D=function(e){return function(){function t(e){var n=e.preLoad,r=e.error,i=e.throttleWait,o=e.preLoadTop,a=e.dispatchEvent,s=e.loading,u=e.attempt,c=e.silent,h=void 0===c||c,f=e.scale,v=e.listenEvents,p=(e.hasbind,e.filter),y=e.adapter,g=e.observer,m=e.observerOptions;b(this,t),this.version="1.2.3",this.mode=A.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:h,dispatchEvent:!!a,throttleWait:i||200,preLoad:n||1.3,preLoadTop:o||0,error:r||C,loading:s||C,attempt:u||3,scale:f||z(f),ListenEvents:v||R,hasbind:!1,supportWebp:l(),filter:p||{},adapter:y||{},observer:!!g,observerOptions:m||W},this._initEvent(),this.lazyLoadHandler=d(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?A.observer:A.event)}return y(t,[{key:"config",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this.options,e)}},{key:"performance",value:function(){var e=[];return this.ListenerQueue.map(function(t){e.push(t.performance())}),e}},{key:"addLazyBox",value:function(e){this.ListenerQueue.push(e),k&&(this._addListenerTarget(window),this._observer&&this._observer.observe(e.el),e.$el&&e.$el.parentNode&&this._addListenerTarget(e.$el.parentNode))}},{key:"add",value:function(t,n,r){var i=this;if(a(this.ListenerQueue,function(e){return e.el===t}))return this.update(t,n),e.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(n.value),u=o.src,l=o.loading,d=o.error;e.nextTick(function(){u=s(t,i.options.scale)||u,i._observer&&i._observer.observe(t);var o=Object.keys(n.modifiers)[0],a=void 0;o&&(a=r.context.$refs[o],a=a?a.$el||a:document.getElementById(o)),a||(a=$(t));var c=new Q({bindType:n.arg,$parent:a,el:t,loading:l,error:d,src:u,elRenderer:i._elRenderer.bind(i),options:i.options});i.ListenerQueue.push(c),k&&(i._addListenerTarget(window),i._addListenerTarget(a)),i.lazyLoadHandler(),e.nextTick(function(){return i.lazyLoadHandler()})})}},{key:"update",value:function(t,n){var r=this,i=this._valueFormatter(n.value),o=i.src,a=i.loading,l=i.error;o=s(t,this.options.scale)||o;var d=u(this.ListenerQueue,function(e){return e.el===t});d&&d.update({src:o,loading:a,error:l}),this._observer&&(this._observer.unobserve(t),this._observer.observe(t)),this.lazyLoadHandler(),e.nextTick(function(){return r.lazyLoadHandler()})}},{key:"remove",value:function(e){if(e){this._observer&&this._observer.unobserve(e);var t=u(this.ListenerQueue,function(t){return t.el===e});t&&(this._removeListenerTarget(t.$parent),this._removeListenerTarget(window),o(this.ListenerQueue,t)&&t.destroy())}}},{key:"removeComponent",value:function(e){e&&(o(this.ListenerQueue,e),this._observer&&this._observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this._removeListenerTarget(e.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(e){var t=this;E||e!==A.observer||(e=A.event),this.mode=e,e===A.event?(this._observer&&(this.ListenerQueue.forEach(function(e){t._observer.unobserve(e.el)}),this._observer=null),this.TargetQueue.forEach(function(e){t._initListen(e.el,!0)})):(this.TargetQueue.forEach(function(e){t._initListen(e.el,!1)}),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(e){if(e){var t=u(this.TargetQueue,function(t){return t.el===e});return t?t.childrenCount++:(t={el:e,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===A.event&&this._initListen(t.el,!0),this.TargetQueue.push(t)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(e){var t=this;this.TargetQueue.forEach(function(n,r){n.el===e&&(--n.childrenCount||(t._initListen(n.el,!1),t.TargetQueue.splice(r,1),n=null))})}},{key:"_initListen",value:function(e,t){var n=this;this.options.ListenEvents.forEach(function(r){return O[t?"on":"off"](e,r,n.lazyLoadHandler)})}},{key:"_initEvent",value:function(){var e=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(t,n){e.Event.listeners[t].push(n)},this.$once=function(t,n){function r(){i.$off(t,r),n.apply(i,arguments)}var i=e;e.$on(t,r)},this.$off=function(t,n){if(!n)return void(e.Event.listeners[t]=[]);o(e.Event.listeners[t],n)},this.$emit=function(t,n,r){e.Event.listeners[t].forEach(function(e){return e(n,r)})}}},{key:"_lazyLoadHandler",value:function(){var e=this,t=!1;this.ListenerQueue.forEach(function(n,r){n.state.loaded||(t=n.checkInView())&&n.load(function(){!n.error&&n.loaded&&e.ListenerQueue.splice(r,1)})})}},{key:"_initIntersectionObserver",value:function(){var e=this;E&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(function(t){e._observer.observe(t.el)}))}},{key:"_observerHandler",value:function(e,t){var n=this;e.forEach(function(e){e.isIntersecting&&n.ListenerQueue.forEach(function(t){if(t.el===e.target){if(t.state.loaded)return n._observer.unobserve(t.el);t.load()}})})}},{key:"_elRenderer",value:function(e,t,n){if(e.el){var r=e.el,i=e.bindType,o=void 0;switch(t){case"loading":o=e.loading;break;case"error":o=e.error;break;default:o=e.src}if(i?r.style[i]='url("'+o+'")':r.getAttribute("src")!==o&&r.setAttribute("src",o),r.setAttribute("lazy",t),this.$emit(t,e,n),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){var a=new j(t,{detail:e});r.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(e){var t=e,n=this.options.loading,r=this.options.error;return c(e)&&(e.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+e),t=e.src,n=e.loading||this.options.loading,r=e.error||this.options.error),{src:t,loading:n,error:r}}}]),t}()},B=function(e){return{props:{tag:{type:String,default:"div"}},render:function(e){return!1===this.show?e(this.tag):e(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),k&&this.rect.top<window.innerHeight*e.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*e.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},V=function(){function e(t){var n=t.lazy;b(this,e),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return y(e,[{key:"bind",value:function(e,t,n){var r=new N({el:e,binding:t,vnode:n,lazy:this.lazy});this._queue.push(r)}},{key:"update",value:function(e,t,n){var r=u(this._queue,function(t){return t.el===e});r&&r.update({el:e,binding:t,vnode:n})}},{key:"unbind",value:function(e,t,n){var r=u(this._queue,function(t){return t.el===e});r&&(r.clear(),o(this._queue,r))}}]),e}(),M={selector:"img"},N=function(){function e(t){var n=t.el,r=t.binding,i=t.vnode,o=t.lazy;b(this,e),this.el=null,this.vnode=i,this.binding=r,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:r})}return y(e,[{key:"update",value:function(e){var t=this,n=e.el,r=e.binding;this.el=n,this.options=_({},M,r.value),this.getImgs().forEach(function(e){t.lazy.add(e,_({},t.binding,{value:{src:e.dataset.src,error:e.dataset.error,loading:e.dataset.loading}}),t.vnode)})}},{key:"getImgs",value:function(){return f(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var e=this;this.getImgs().forEach(function(t){return e.lazy.remove(t)}),this.vnode=null,this.binding=null,this.lazy=null}}]),e}();return{install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=D(e),r=new n(t),i=new V({lazy:r}),o="2"===e.version.split(".")[0];e.prototype.$Lazyload=r,t.lazyComponent&&e.component("lazy-component",B(r)),o?(e.directive("lazy",{bind:r.add.bind(r),update:r.update.bind(r),componentUpdated:r.lazyLoadHandler.bind(r),unbind:r.remove.bind(r)}),e.directive("lazy-container",{bind:i.bind.bind(i),update:i.update.bind(i),unbind:i.unbind.bind(i)})):(e.directive("lazy",{bind:r.lazyLoadHandler.bind(r),update:function(e,t){_(this.vm.$refs,this.vm.$els),r.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){r.remove(this.el)}}),e.directive("lazy-container",{update:function(e,t){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}}});
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2130);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2212b974", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-info{position:absolute;top:0;right:0;box-sizing:border-box;min-width:16px;padding:0 3px;color:#fff;font-weight:500;font-size:12px;font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;line-height:1.2;text-align:center;background-color:#ee0a24;border:1px solid #fff;border-radius:16px;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%}.van-info--dot{width:8px;min-width:0;height:8px;background-color:#ee0a24;border-radius:100%}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/info/index.css"],"names":[],"mappings":"AAAA,UAAU,kBAAkB,MAAM,QAAQ,sBAAsB,eAAe,cAAc,WAAW,gBAAgB,eAAe,+DAA+D,gBAAgB,kBAAkB,yBAAyB,sBAAsB,mBAAmB,sCAAsC,8BAA8B,8BAA8B,qBAAqB,CAAC,eAAe,UAAU,YAAY,WAAW,yBAAyB,kBAAkB,CAAC","file":"index.css","sourcesContent":[".van-info{position:absolute;top:0;right:0;box-sizing:border-box;min-width:16px;padding:0 3px;color:#fff;font-weight:500;font-size:12px;font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;line-height:1.2;text-align:center;background-color:#ee0a24;border:1px solid #fff;border-radius:16px;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%}.van-info--dot{width:8px;min-width:0;height:8px;background-color:#ee0a24;border-radius:100%}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2131);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5faf7951", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-icon{position:relative;display:inline-block;font:normal normal normal 14px/1 vant-icon;font:normal normal normal 14px/1 var(--van-icon-font-family, 'vant-icon');font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon:before{display:inline-block}.van-icon-contact:before{content:'\\E753'}.van-icon-notes:before{content:'\\E63C'}.van-icon-records:before{content:'\\E63D'}.van-icon-cash-back-record:before{content:'\\E63E'}.van-icon-newspaper:before{content:'\\E63F'}.van-icon-discount:before{content:'\\E640'}.van-icon-completed:before{content:'\\E641'}.van-icon-user:before{content:'\\E642'}.van-icon-description:before{content:'\\E643'}.van-icon-list-switch:before{content:'\\E6AD'}.van-icon-list-switching:before{content:'\\E65A'}.van-icon-link-o:before{content:'\\E751'}.van-icon-miniprogram-o:before{content:'\\E752'}.van-icon-qq:before{content:'\\E74E'}.van-icon-wechat-moments:before{content:'\\E74F'}.van-icon-weibo:before{content:'\\E750'}.van-icon-cash-o:before{content:'\\E74D'}.van-icon-guide-o:before{content:'\\E74C'}.van-icon-invitation:before{content:'\\E6D6'}.van-icon-shield-o:before{content:'\\E74B'}.van-icon-exchange:before{content:'\\E6AF'}.van-icon-eye:before{content:'\\E6B0'}.van-icon-enlarge:before{content:'\\E6B1'}.van-icon-expand-o:before{content:'\\E6B2'}.van-icon-eye-o:before{content:'\\E6B3'}.van-icon-expand:before{content:'\\E6B4'}.van-icon-filter-o:before{content:'\\E6B5'}.van-icon-fire:before{content:'\\E6B6'}.van-icon-fail:before{content:'\\E6B7'}.van-icon-failure:before{content:'\\E6B8'}.van-icon-fire-o:before{content:'\\E6B9'}.van-icon-flag-o:before{content:'\\E6BA'}.van-icon-font:before{content:'\\E6BB'}.van-icon-font-o:before{content:'\\E6BC'}.van-icon-gem-o:before{content:'\\E6BD'}.van-icon-flower-o:before{content:'\\E6BE'}.van-icon-gem:before{content:'\\E6BF'}.van-icon-gift-card:before{content:'\\E6C0'}.van-icon-friends:before{content:'\\E6C1'}.van-icon-friends-o:before{content:'\\E6C2'}.van-icon-gold-coin:before{content:'\\E6C3'}.van-icon-gold-coin-o:before{content:'\\E6C4'}.van-icon-good-job-o:before{content:'\\E6C5'}.van-icon-gift:before{content:'\\E6C6'}.van-icon-gift-o:before{content:'\\E6C7'}.van-icon-gift-card-o:before{content:'\\E6C8'}.van-icon-good-job:before{content:'\\E6C9'}.van-icon-home-o:before{content:'\\E6CA'}.van-icon-goods-collect:before{content:'\\E6CB'}.van-icon-graphic:before{content:'\\E6CC'}.van-icon-goods-collect-o:before{content:'\\E6CD'}.van-icon-hot-o:before{content:'\\E6CE'}.van-icon-info:before{content:'\\E6CF'}.van-icon-hotel-o:before{content:'\\E6D0'}.van-icon-info-o:before{content:'\\E6D1'}.van-icon-hot-sale-o:before{content:'\\E6D2'}.van-icon-hot:before{content:'\\E6D3'}.van-icon-like:before{content:'\\E6D4'}.van-icon-idcard:before{content:'\\E6D5'}.van-icon-like-o:before{content:'\\E6D7'}.van-icon-hot-sale:before{content:'\\E6D8'}.van-icon-location-o:before{content:'\\E6D9'}.van-icon-location:before{content:'\\E6DA'}.van-icon-label:before{content:'\\E6DB'}.van-icon-lock:before{content:'\\E6DC'}.van-icon-label-o:before{content:'\\E6DD'}.van-icon-map-marked:before{content:'\\E6DE'}.van-icon-logistics:before{content:'\\E6DF'}.van-icon-manager:before{content:'\\E6E0'}.van-icon-more:before{content:'\\E6E1'}.van-icon-live:before{content:'\\E6E2'}.van-icon-manager-o:before{content:'\\E6E3'}.van-icon-medal:before{content:'\\E6E4'}.van-icon-more-o:before{content:'\\E6E5'}.van-icon-music-o:before{content:'\\E6E6'}.van-icon-music:before{content:'\\E6E7'}.van-icon-new-arrival-o:before{content:'\\E6E8'}.van-icon-medal-o:before{content:'\\E6E9'}.van-icon-new-o:before{content:'\\E6EA'}.van-icon-free-postage:before{content:'\\E6EB'}.van-icon-newspaper-o:before{content:'\\E6EC'}.van-icon-new-arrival:before{content:'\\E6ED'}.van-icon-minus:before{content:'\\E6EE'}.van-icon-orders-o:before{content:'\\E6EF'}.van-icon-new:before{content:'\\E6F0'}.van-icon-paid:before{content:'\\E6F1'}.van-icon-notes-o:before{content:'\\E6F2'}.van-icon-other-pay:before{content:'\\E6F3'}.van-icon-pause-circle:before{content:'\\E6F4'}.van-icon-pause:before{content:'\\E6F5'}.van-icon-pause-circle-o:before{content:'\\E6F6'}.van-icon-peer-pay:before{content:'\\E6F7'}.van-icon-pending-payment:before{content:'\\E6F8'}.van-icon-passed:before{content:'\\E6F9'}.van-icon-plus:before{content:'\\E6FA'}.van-icon-phone-circle-o:before{content:'\\E6FB'}.van-icon-phone-o:before{content:'\\E6FC'}.van-icon-printer:before{content:'\\E6FD'}.van-icon-photo-fail:before{content:'\\E6FE'}.van-icon-phone:before{content:'\\E6FF'}.van-icon-photo-o:before{content:'\\E700'}.van-icon-play-circle:before{content:'\\E701'}.van-icon-play:before{content:'\\E702'}.van-icon-phone-circle:before{content:'\\E703'}.van-icon-point-gift-o:before{content:'\\E704'}.van-icon-point-gift:before{content:'\\E705'}.van-icon-play-circle-o:before{content:'\\E706'}.van-icon-shrink:before{content:'\\E707'}.van-icon-photo:before{content:'\\E708'}.van-icon-qr:before{content:'\\E709'}.van-icon-qr-invalid:before{content:'\\E70A'}.van-icon-question-o:before{content:'\\E70B'}.van-icon-revoke:before{content:'\\E70C'}.van-icon-replay:before{content:'\\E70D'}.van-icon-service:before{content:'\\E70E'}.van-icon-question:before{content:'\\E70F'}.van-icon-search:before{content:'\\E710'}.van-icon-refund-o:before{content:'\\E711'}.van-icon-service-o:before{content:'\\E712'}.van-icon-scan:before{content:'\\E713'}.van-icon-share:before{content:'\\E714'}.van-icon-send-gift-o:before{content:'\\E715'}.van-icon-share-o:before{content:'\\E716'}.van-icon-setting:before{content:'\\E717'}.van-icon-points:before{content:'\\E718'}.van-icon-photograph:before{content:'\\E719'}.van-icon-shop:before{content:'\\E71A'}.van-icon-shop-o:before{content:'\\E71B'}.van-icon-shop-collect-o:before{content:'\\E71C'}.van-icon-shop-collect:before{content:'\\E71D'}.van-icon-smile:before{content:'\\E71E'}.van-icon-shopping-cart-o:before{content:'\\E71F'}.van-icon-sign:before{content:'\\E720'}.van-icon-sort:before{content:'\\E721'}.van-icon-star-o:before{content:'\\E722'}.van-icon-smile-comment-o:before{content:'\\E723'}.van-icon-stop:before{content:'\\E724'}.van-icon-stop-circle-o:before{content:'\\E725'}.van-icon-smile-o:before{content:'\\E726'}.van-icon-star:before{content:'\\E727'}.van-icon-success:before{content:'\\E728'}.van-icon-stop-circle:before{content:'\\E729'}.van-icon-records-o:before{content:'\\E72A'}.van-icon-shopping-cart:before{content:'\\E72B'}.van-icon-tosend:before{content:'\\E72C'}.van-icon-todo-list:before{content:'\\E72D'}.van-icon-thumb-circle-o:before{content:'\\E72E'}.van-icon-thumb-circle:before{content:'\\E72F'}.van-icon-umbrella-circle:before{content:'\\E730'}.van-icon-underway:before{content:'\\E731'}.van-icon-upgrade:before{content:'\\E732'}.van-icon-todo-list-o:before{content:'\\E733'}.van-icon-tv-o:before{content:'\\E734'}.van-icon-underway-o:before{content:'\\E735'}.van-icon-user-o:before{content:'\\E736'}.van-icon-vip-card-o:before{content:'\\E737'}.van-icon-vip-card:before{content:'\\E738'}.van-icon-send-gift:before{content:'\\E739'}.van-icon-wap-home:before{content:'\\E73A'}.van-icon-wap-nav:before{content:'\\E73B'}.van-icon-volume-o:before{content:'\\E73C'}.van-icon-video:before{content:'\\E73D'}.van-icon-wap-home-o:before{content:'\\E73E'}.van-icon-volume:before{content:'\\E73F'}.van-icon-warning:before{content:'\\E740'}.van-icon-weapp-nav:before{content:'\\E741'}.van-icon-wechat-pay:before{content:'\\E742'}.van-icon-warning-o:before{content:'\\E743'}.van-icon-wechat:before{content:'\\E744'}.van-icon-setting-o:before{content:'\\E745'}.van-icon-youzan-shield:before{content:'\\E746'}.van-icon-warn-o:before{content:'\\E747'}.van-icon-smile-comment:before{content:'\\E748'}.van-icon-user-circle-o:before{content:'\\E749'}.van-icon-video-o:before{content:'\\E74A'}.van-icon-add-square:before{content:'\\E65C'}.van-icon-add:before{content:'\\E65D'}.van-icon-arrow-down:before{content:'\\E65E'}.van-icon-arrow-up:before{content:'\\E65F'}.van-icon-arrow:before{content:'\\E660'}.van-icon-after-sale:before{content:'\\E661'}.van-icon-add-o:before{content:'\\E662'}.van-icon-alipay:before{content:'\\E663'}.van-icon-ascending:before{content:'\\E664'}.van-icon-apps-o:before{content:'\\E665'}.van-icon-aim:before{content:'\\E666'}.van-icon-award:before{content:'\\E667'}.van-icon-arrow-left:before{content:'\\E668'}.van-icon-award-o:before{content:'\\E669'}.van-icon-audio:before{content:'\\E66A'}.van-icon-bag-o:before{content:'\\E66B'}.van-icon-balance-list:before{content:'\\E66C'}.van-icon-back-top:before{content:'\\E66D'}.van-icon-bag:before{content:'\\E66E'}.van-icon-balance-pay:before{content:'\\E66F'}.van-icon-balance-o:before{content:'\\E670'}.van-icon-bar-chart-o:before{content:'\\E671'}.van-icon-bars:before{content:'\\E672'}.van-icon-balance-list-o:before{content:'\\E673'}.van-icon-birthday-cake-o:before{content:'\\E674'}.van-icon-bookmark:before{content:'\\E675'}.van-icon-bill:before{content:'\\E676'}.van-icon-bell:before{content:'\\E677'}.van-icon-browsing-history-o:before{content:'\\E678'}.van-icon-browsing-history:before{content:'\\E679'}.van-icon-bookmark-o:before{content:'\\E67A'}.van-icon-bulb-o:before{content:'\\E67B'}.van-icon-bullhorn-o:before{content:'\\E67C'}.van-icon-bill-o:before{content:'\\E67D'}.van-icon-calendar-o:before{content:'\\E67E'}.van-icon-brush-o:before{content:'\\E67F'}.van-icon-card:before{content:'\\E680'}.van-icon-cart-o:before{content:'\\E681'}.van-icon-cart-circle:before{content:'\\E682'}.van-icon-cart-circle-o:before{content:'\\E683'}.van-icon-cart:before{content:'\\E684'}.van-icon-cash-on-deliver:before{content:'\\E685'}.van-icon-cash-back-record-o:before{content:'\\E686'}.van-icon-cashier-o:before{content:'\\E687'}.van-icon-chart-trending-o:before{content:'\\E688'}.van-icon-certificate:before{content:'\\E689'}.van-icon-chat:before{content:'\\E68A'}.van-icon-clear:before{content:'\\E68B'}.van-icon-chat-o:before{content:'\\E68C'}.van-icon-checked:before{content:'\\E68D'}.van-icon-clock:before{content:'\\E68E'}.van-icon-clock-o:before{content:'\\E68F'}.van-icon-close:before{content:'\\E690'}.van-icon-closed-eye:before{content:'\\E691'}.van-icon-circle:before{content:'\\E692'}.van-icon-cluster-o:before{content:'\\E693'}.van-icon-column:before{content:'\\E694'}.van-icon-comment-circle-o:before{content:'\\E695'}.van-icon-cluster:before{content:'\\E696'}.van-icon-comment:before{content:'\\E697'}.van-icon-comment-o:before{content:'\\E698'}.van-icon-comment-circle:before{content:'\\E699'}.van-icon-completed-o:before{content:'\\E69A'}.van-icon-credit-pay:before{content:'\\E69B'}.van-icon-coupon:before{content:'\\E69C'}.van-icon-debit-pay:before{content:'\\E69D'}.van-icon-coupon-o:before{content:'\\E69E'}.van-icon-contact-o:before{content:'\\E69F'}.van-icon-descending:before{content:'\\E6A0'}.van-icon-desktop-o:before{content:'\\E6A1'}.van-icon-diamond-o:before{content:'\\E6A2'}.van-icon-description-o:before{content:'\\E6A3'}.van-icon-delete:before{content:'\\E6A4'}.van-icon-diamond:before{content:'\\E6A5'}.van-icon-delete-o:before{content:'\\E6A6'}.van-icon-cross:before{content:'\\E6A7'}.van-icon-edit:before{content:'\\E6A8'}.van-icon-ellipsis:before{content:'\\E6A9'}.van-icon-down:before{content:'\\E6AA'}.van-icon-discount-o:before{content:'\\E6AB'}.van-icon-ecard-pay:before{content:'\\E6AC'}.van-icon-envelop-o:before{content:'\\E6AE'}@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url('data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAGL8AA0AAAAA6SgAAGKgAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCUhEICoOoBILIXQuECgABNgIkA4QQBCAFhQ4Hlicbj7ZFB3LYOIBhOG/7KEqjrI5CckpqLfv/nNwYQy3QrP8HqSyT0KreOBC6oV3YaCNcHtGFZdNfJs0K3ObxOB3jel2BnkhyW3HUmbbpKvaF/2F/+AxsG/mTnLxQ8ftt593970giiaZM0kbMJCiNSis0tRKANnKdCL5V097IukKp1yqEwfj1H57Pbe+PbRz77ILtf9hxMc4xGBvsf7i3sXGNcxunynELyIYyFA9MEUxB7zzSFM3i43GW5XElUGKXmFZqytCsDLEyO928c2+JTY/UgPqRB0iBPwY3x61tjLrd8yPPeIFR3Xa/Ko41DM4rqawV8d4B63AskFKHLHYdRuxubxxgFpDGnGg/5nyVrtLGkp7hp2guAAzJiQOl/JQ4Y1/sq30NOM7GCZcofwCUdr5vziooIFdKZSc/dWhaHgA6Lb77nvbSZtU94K3qlkb2I+JIMvyvaeGQJ5FSKTUcQ/gAkB0P/65leQOcJMhJBGkdvKpsXfISpIKWnmrlZn6T3ycRbG8njurMmoBHTn5N5/S4btDGbZkUQTWu6urAEIda/bJ7Hcqs+7831WrDbpoZai2555x0V6qiNjpXuXEuuiR7/f5vdPf//RuNboIDNAgOjKQDAWkHAMU5kKBmCAJCGXJ4oNw64xqANEVSayhSmuVqz3DOWR95m/lIddGEZ4Lkwg3Ci2ejM+ll+QXhhRteEl4QGafOaR8mzISTJwmMPi8V6sb8WDPyZqjeYpQiTUCwbUp9/PI31vpPl3vcTWN9cl23SFGfgNwCut2Pqf/smn8n/c1aGk00goIccMfQVqE2rYijelABf3yTyvYWkshqd800339ZiAOk0ihRbhihigqbeaPZl9zFOgo9djn/gFZ5Eb8yvH5/0DZ9rDFfxjPo9+p+LCLwAbyF7bPfLbxbELYXzWpjjJxsxPV7qQ6IWc/DjqhAkvYQe89A5gEn5C21NuLGwwTwFR9/40EfE/zB9F3xoZAO+WBoZN5j8fJuh9Ny/ZeOIo2mRH3jIi6jS1Bcg2RXHlUIhgXuRUXUssSJ7EhhtrKLuqlVIetsJBH7kCWLMel2gHxoMtbmKZ2RCulqJziTblpEY5xlFKce29TPvbt0wBOxQ3dQH1I0e/UK8OPPQ4wOmU8wwJixLP2hM7MXMDMDM6Ghd13K1GDBIreYzaZrZNhp5GgmDWVF3RyhgXcYdVRt/K1ktavWlvWPSiAT1GkvJDGqNtNQjRl9ZnrrUWKnkxNOno+A3wEnY6rbPDxwCTWdwJr5G1pr/QDnbiTmPU2nDygO91cZ3Ctg7lTvI37TlW0txun9tJV0DeznjL1yHge6+BFK6wcgp+5pXVLaZJ5fHJM6N9axFgMg42zMNXe2tMUKv4EW9ycnzIVGd5BW975V259xOw62mDHEfqy7DCIC2Jv3wLcgFterTUUEiNm/KJIRJafCmkgI4PgqU86Nyaq/YHFR+LkqBgJYvJOkkikLzK4VdCm4y/N7R+ISxqnuY6d0SBnRUUdcOJCQGPciGYL3e0jF7GS/V43RUvtrHGUlD1/N3hZGVTXlEhWenFfMGy78E0oPNpvtulC2DKWquL8HTrtedp/SgdAOs4zsMJttXEjCNrs2E5lMy/Jmx+zthMxyORyTKcDWBWjGbLRCitzz7lJpbSQ05G0ZtR+LqkK59pqzlksgsqKWo8jAqm2qlQ1eoytL0wyBBUDYG0A22EjhtlWepykw3dXmoHTYbWidrRMEKjUW13AVFKLpVFa8qlb/UZZURxhu0KOJBI5E6n3fb66uKsduUcv/Gxl1BkP9ZoANzfHe5ll2YhK3YzwBCZcodzAHOU0VXzRw4V7fVdHAXegAPPe3RJVXpXK+4OSoelAoWa1a1TYIKVjJ7cW6F8WCBfMJDTWPXLFeRF6elR2zGSCCEq63EdbJrbFk9+DNC+VjUu7oTimbXVdsrgfqTtWEs9MCMG9YafRcx3LnDlF1+4upNJjwOuwc7Q1hU4PxWOo3PGUcl9X2xU2Z6fhqGgTCAOKctMbIgiL16urBZ6vh+Ycoxfttre9F4/iqOzsFbrzqwZs57qLM7ZAilHDuy5TRe3EdgURP4y6akzEKR0QEPxh6eE+W29sjFIpb9KnOP8R5JiNe1thAQKXSUE32liigsbda6XxShBDnPjpGzmldyY36QZe8pReOfGmYOBfjmNpKqodtll2GEWEi50mRyayZuJ2Ew7WAetPBteI2xvpxQgipwE6tcgFcj6Cg9R20FYf0adxFMExD1QVJgQzlCwfjraFgXMZapZqGdFGlg3qZG/AAaS+Vg09WbV2mT9eIFBLmVoV7r9JYsdTIeg/JZLkHJ7LYQ+Mf1ESoWX5gB/GSKMyxTS4+cZ+Lm7J0drJrO48wh9gBlVIhkojJSBMKQax/ClJIG5/IJ5JrbSvlCLEkKyzJXB+B+4KqWGZVed6BXY3cLcIOqvUuW8YmlYLcl1zdCTpEBDfs034M8MiY6n0DQiF0Ksm7kNvpfzeVcOrLq3IytWU9I3ynxX75LJUOAAnrSNgiHxeRpdx7ZrwVJWig2Ler7IPhJEo59W8uo7fjFgLuc6KoybEetkjCuPIwW412skDEL0hhHPPRMaoPAzaCim9hYRTnB1F31AjSRiGMeFVEsHrl5rDpv7UQV8XogpIqeFHNtHEeauPt8j7RhRjH4FxGVw81Nre49Lrs57odNvSlQx4CU/Zhk8l/YeSoC8zlCqbksfIvjczdRjOxAUwdDjk79Y4Ab1OMJqo3o3QoamCyhtaQF/ChgVgT40VmVa6xo+9fgeQKYqw96yqtLMEio32nFHiEgIA3lvsfSjvSsqJWZDNTWb1J6X7WJIRxX7+iIhxcw9xf+jBa/3SvwvNdeyi0utc+XUJNz5dFiGY/i3brLVbpfOFukqrTJ5aTxT/b3tL2Lq2rN/5xY1+/t+iJtIRwlLK1ns3J1OjMUoXye1Zu8NldIIIxwggMPvj5zrmIgxqh8xD9XraO4CJDOnsDSo/yhZt+bmf13eDz6MvwqzOMG5AgKm6zjFxBMJ7Xp1t4hdr1Y+vqL/zlzL726wqxQfdUtSsiw7p62DpS8kDf3gfhQv/nwLheDr+MPg++WKX9eW3ffPC3K+vyNatC8K/WoySc5cDQXUOnJuGCTBK2UdaJMGBfKNOGyz+rmzXa9WNAPtNcSk3M8k+xzzz2C+pOIyr90q9bsmAT/I38z4b6KHB3q6sdU97Gicae63ZTtYB3sOxwnTJkgE7cNOoRGjbUlX4vF7NeHx1rk4d5tXcnjth5i1qq1AkpldveHs7LERosH9abvuJ06HLYIWY2y3k83tExhyeNaCq6FFOlOofDFNZmarZXMyhVCF4eVEwz73b4biNEvUe+HyMR0mtlqln3HQiciNe1tIQ0VRFm41M0z/VCGl0y7Q/mnhVtvCdPfBPWOjDJ9OIL+3fK3z8sXZ7VaZjSU7kodwJBLtAXKJy4v+63Z3QSTg0r+wClK5Wclwez90LO9usx6nOjZ3/LKWArd6WVP7p+XZsRIxrxcJE5L0o1+M60c9CSslldqOoE4ajXR0/aFuQEdK8sV4lnlHIqXaV4MFAc4DESB1IGWUjIPKumVg+/ZLz8THTpu0g8PMqjOEi4bnXMI5Nmd+jdqIbclZ+d51PosFmRslRDC8MJ9ztcXFMInvHlKqArleW92r3GU94mBbYNyHhKXDy8U6dOnHnxmfyR8w27febnTZmK2KxPDpHUq5+nDgOell3+rk3rb64+HdiBbAaSYfnWxtrrTs/aM6ETKlao2kuiJdsbbg1r8nB0YCecRV3jKXZ61d3o59yY9sbKU77lS0Ygm3Zgb667wXvXn42WRKodKpYTOlvrbw7pN04EmbKv/5b2YujNXjz+d+wp3YbfXcXZkkO6g9xUlMmJVMG0lPpSPLv4M8CnNVvRxo0pgCEI9FnvLd59Q46/YOAj8K1jFpvsIdTppfAoJb559hyK0hDO0Pj1E5eqOEcq8vdThz+MkycZ8Qhpu2jz55cLJJHoJqE/wCbc71b2TAxZ11YoD4+tyvhtzlAnIb1jRkNjpSswM62AUdPjI1KmulLF/UjcRe7BM2GAt8cs6uT/bgeDYZ/L70lGsp9XqtwMrOaY/TXMs+CWdix7gMGR0NrARWAI+BGG0BIk3I8gYdGwADUgZ5Jq4iFZ3NftPq4ik7jm4tS3IhkLJxaayEnjlh854TwL+6Zz888p1nr3XsDFqedWFjBeJ1zxO5OLGXPGmLkrL5s0eh/iWyaVSXXq8mem95S0DhUFqNXOpKmzZxz+oYXKda+CekjSGz9/sBXWmd243w7TXtRJygXveC+eBDak0E8twa5SUVj9pqjHMOgZByV9hBBBPZTifr4NZNdrYoDmLL6ICE3O6Ye9TjmwoIexaHDYtohPVf0fvteLsvLVwvcGaCCMlNgZ/UHrXqu1i6BmplEx8m95pPYh1k6bG1QMONSOFe6r2dWZ9JqFIUKcUSoAXYLYahqu8B6VHk8Sy/ESYWaj5exbKvXcl+PfUIi9v7JRtYRQCIJAJCIaBhJcYLw5SLJJAKhE1nht/gnQgjBhrgmwciD7cng6UaUcxI28tc1tascGG1AGkJu2YRgOU8c3Gf2onOM+sIdSNG9JQd/Y16Ns3AqSAkCEvJXThEATbXKIKYxRzAUcLFgahVP2QyHtkZGbgloC1TmrrtYix2vur+7M2ZL75Uo4+6kGZZQfxqBCrI9Doai04KktiWEDOmCrOgbbXDRxrVTh5brqXQuUOGEDM1zOz3xzOozRwoCrpduTPkqiRpw/Lh1abD3quUdUxXFlmKwLZVbDFQ1ZmU89QYcZMtXnuy/sdyej9ehqi/kWNP0biiLsdUXp1jZjDMB1ehj/fkuUjZWRqko3e+SQdZbU0OWkNxjGBK8BEv6ljpbfJ8rOAxdjixKG81IS9gJPMITnGJn5D2ZSHn0w4pKhqPz+vHcgZmcEy8Nro36ugfNV5+2CGFKZeGnEo554ycaI44Q5/fCjNZtBLdZjhzLIxX9A0IsjwppWUC+8kKtLxBdvKYoXWc66Yb0YhrYmr1dKXaNJpK4VC93qAnDmqvUPhbTNl8cOUHi5JkY49eHOnHjoETatGgzOBP1uNdW+knIBMx7fbWOigUwHVxRAos0sqVJ6mBjKLrzrZhPjy4+tT0ThxP7fHAnFFN18az3XqKozjYOh+lDQKoHBmLCYDRtwtYnL2tY/R5ni2uh2xjqcoWEvYs+hIKv6G/Fh7FXgurAEACrADT3VwvbQi2m9iRLWLYPktIAAMjSA4UnqqadDVxEM5iwMNdFBRJUy1Uq3saInw8fATVERUug/PtXEvP0eNqEqbmOfKmrUiB0pgTyaaqRQJavPFK1APOb4FUWiGUkXsCojTmPda0UAdoqtsAT5qVdnfkypLScWqBTIpjnEhipo/Izf5pwBvGJGZUTCLVERffHqUOTo9p5rbze6drjpd5camECFXdym/WCgBDAib5r3iU06MUjlZszK1ZipXCDFC/MnvshzYz9DPz+PSBEIzpX1zLADRYZW8hzfNfNp00zN+25pYtKMaNK4L7sWVYqvEgVkXxkDPWVFpbr7HDzzqW5mjecVW65HcJQIqMNxUh3rN35a358wn0zI2uk6B92wV1xxUofqj8JglY8qpBFhH42pebHXL0mFITcOKMMjjg1lBYsOXDRoAk+OYqHhH38SjcaNnpcIgsb3RYaFHt6fKefvu2DSBpy43kRNYoUd5yb0jiAA5noIT5DjmtSe+UGUtXoUcDNWaSis3MQJtfZFsfRnMRQRuCHe+5413Y40pJGvrX69IqXhHqipWsKOZJk8lGzU306yrZEfzz0zqt6nPz/ia85XtdsJpYUYVBYTLQn4b+u0ohgptJUmKcp4e3o3YD/T5Hhor2nmPj+wZ5ddqN9XJT+owfLL8w9GoTO3/OLACU2zzfbWqXZkffH/9veEHiDNmLQ5J3pwbtx9rmMrYB5exQHRFOhEUKfoFqiFt1pFV4syuUheIAuk1Y57ipMqZ2H2pSZMIDpkgVHtcVcTK8pZDL460QDOP+S3+xeQ5wKWL/R3l5/Nh622JFE0WV6a1WHSv1+/u2w2WDqzdef5va7YoTcHDhpKy+fCFfM7yi8dMrGmeQiammxzc6dgNDNTzTHejs2VxVp4SwrNjkgUtZXiS7dqf20reb/9BQHeDikV8PtsJGcqHKd0Rw9sPZSZKF4gUYhUYVqa3TJyB9iLSumBULFUClKzb20snZmZXgU6XrGStqTQP7q8I3rpMFpesXxCM5c+I8UIajxqUaP4iQBlKld7bvNjYTD00QcRIRJxt48/GvrwYwKlm/rUYlFBCTtnrKcNM7r1jDg9rdt5nj+K7UwBSDFSupnoWa/fbTHExjOzr+wmqWyc1p14sCwB7gDPBvIV02Vuz0PqSxjHBBs1QlekNIU+ayx70mGy/L+X9rmj36g+bk7A+qM3I51bc8ZN3JO1Oy2O3RJM9FWzf22gRxP82Qk6u7bNjKw+7WwK9EBPWM+OsvaMuzkUoXH13NnKNpauc44lcQxASqe1Fpsg9klapkuJDmemJhHBSxn2idhFIRnRJL6w6LxoLbLNBXZ+li15SKW0pHlxTyLLX1XXM21m3g2taLhKpyVCQyQxQ2xmqdF+lSA9Y/pQjtInrirlSU1bx5sc7sD8iktBfVuwS8AmNT3wuvJZdzoWbfIbqfJpFmJ8N4IuCmX6T0JUEMpmL6eb7AlxfkV/HvMOLDAZ7ycSEZKjMQYjdFGMvQQuZpsWJcqh26na01c316luLYzJrEWphZURaGHWX7v494kTktAOCI76n2L+Rx9/8YSMjFYX1Byneuy1U/Fb6cTLzbEr+r5s6tMcPptZ+zGHg5iPPqfdtAvQdCEEzgqhwC++sf8veFZjXTiPmOsxkjakH2pjneD7xZEV5s9lHKBcsdVLLxxu3NhQOI0ZIK/MJUq/hLxycSBFdDvdFAPSGxkVS1ghLF9FWHvWg+PlHdZZlp5DCE+c9patZiWaYwaRgHKK4Jc10Qz19VPFVjwJS7zNHpUu8WY8IckIUyaOx8CxHmMP741QnXDPg38XcDeAQidRiJqxQuqSY9zDpbR851Z0R2IPZUa8EY5+o+OJG2RpqLEKthzJ2z2+W8m5XtKCd5M32YUGAy4zSxm3U4gX7b5lBDyc1w4bErdzizxW7eR6HoLYTDpCyVFakgOd1avnh58uiWhsAQx4pCP4+KPPK7cr/qF88hMPTc+s/5Rb6WdUrqqQoMAqzY7jyeGjWSEQ6uBmGYWDXqFreHDdYOAWN6qX+mVsDmL8zFbf4uVjNnROSkRhv+VTIzqc9g9re0Xc3oMpgIiXY9m0O/4Nuru2Ke871QbHRBZ7rdftLTa7JOwJADtkBqE7VXSI87oBocSZ1LbxXDJnY2jmA3HaEwBXtpo4sB1juUwc6RPY+iyg6Ej95uwXudZvnABwEmJSAfgCumqw0beaEaBIAByLraFTcogQLYx++TcejlZpUntnGF1AgE5gxhy55kJ52pJEQuieOHMHRCKKG1ZSeqgEWbF9c/InUWfZpe3ILJSaYW05tAbQwNq6bJDm9JG8JusOuXK7piiAosgcLZgq4NNZDIwMhJRZ1RVF7gJxL21paOj2NjyC62rA3NMscELjsnYDxVKr7ggi2gsVJqui7ESzt7QCMX9ixUqZDwz8OiEQDuUks0PofpJyik9ebyJDcGLnI2rpSjOfbbQvarINI8YBXXaju/1mz4bcmUUlFvlka9fqpnpuKgELjF1nd888Yau3+Hv75VdPt2+t72uZsTojb7ahPVyumLc/Nqmo97h5dyfjuI1vH2eIHBX1s+Ld9YHdHoqnI/OJ6Go5EC9TvuCT6DHkCN3gxBgfu8Mz01+R5XVJbvp4Lmo3O4k/u4wdtvwFMxBL2fWYy52Hw/aJ0utoOSxIp1o+i2JopLimQHKh0KEoKre8vs40TuQFwdwW2AKOQfKWlFWJ4gxsK5xc1I8CSQKpqeUk6qIFgbK8ChwrZ2odLeo++KiUigeU9WPHF0qhFr04oaUkP1PstVvr2x2bBb7Mdzuy2hvdXTd7JA5pKiluhWnb6x+fmg9e7fIujHRtFblfR7RCbZ+1u6zcYxB7cvK5v2NFdtNsazvm46t1zDcKHXs+B87Gug50fiuoR4Whpmwf1t68EsZFxu1cBPgkeAxws7gpcAd5/5byP0giocEeOvR/2WIA5rMWiI+KlO14iZz04k796FIfXf6/9xbRNgYXgovDSfzZ+HJ4aTT3FqFMzBbJFeHnWFKyod0ARGcCR3hmDh8B3mcLCOGBAmBMYsc7HVR5kQ2XyUDqTOIDbi4pX06WIGJVczltjmuIJ7hP8vi3d4MOvJdHSw5bISOwCzm8lTM75bXd3imzpeUXE0t5sYhZM29HPy6G0AnEwncEOTXGConA+aO00yGF7tgJ4F+G3CO4NBKB2grUblh6fkkRAxKsdYLHBYhVDLWrRDnwi1iXTbkaqibraiewrzvBaRyV3t8JysbUT1OJpiajh8BBumeZUWhEWaDlVbQkQQwf7ACWPkFe+lmaJKO8DE1d/ekVxOc3c5/7lQKCc13d4qEOArSOeHl18LbkNpIqJsUwXm6npDiOPMR6Kp7SeYx9quwKsMv0qqoBoa19e6zexp4IsUvYHOF+c2Lh830xKvKVRaJK9shsi8E4YYGiNnoNpkwV5+fdKbaZMrdLbVh5nOn6yuFcU+e8B/6BE2CFHCV7t08v7WYnGpotBWoZljAjeJWQHOwQuGn7PBF/5nGxRQAMR3QVCNDH2gBDX2Bo54XvE4MKAX0EDG7EZDARDzpcNjTHIrVg6mX7E84OfTK9HllyZagqEOelLqCTVQDV1v1KN/vLl+W3jmC+SmUuDghxFAyq4rqTdwwVPnDSSVuypsvtb2WvEyL+qLCOEbUd87R8I9eoR437+qUOLLIB63l4OS2ldKTYrMAp3Ky2AMmpFSovWoSXZIVjU8kmA2+TZFRkNZRctfin3JedRThhfn97PbuzsRnLFUE81X2iqtR70rRJvd7GnIt1XGJdKi5y/nmyXnFS2JG9avfp/PnFarMpt1mVirWQB9KDxzAHR2M7fyfcuCpOQK0NFo+3sqgpA1c0EcjJJ1W9MLq/Jq3qk+XAi7xLhFkFODf8IdWmTIrNdpNGhSlRKpXUjv2Q0iAaz4QEIV9oaCXeOUUg7udzQNooA4oaELMBBINFf1hZY6dfVZGWJjWYqFWpd2aURfGSc++XjYPPxl7dVNE9Jisbv3TVtqbjGoxG6rmg/oomOpE7oR+DLJDlEXJ/+jMxNxSleldxtUJ7Ahm9XL0ikCBc1cHOQOMBDnJ3YYYkQgdR5ap2mPcOIxRlxeXASsI71xcIkBFNKELyvUrDK3M0d2LrhFT9gaVpBuIK6hW4k7DmBNFbw8FnKEHu7rBwLI3oAR1jvzA1N0eifxTM3lbihP/aonGMue2KvCuetKR2a9TmWXAb4i9kEzkLMSH4whYoGJu280VP4V9EkmHtOfRgo8DSlx8ckbPwwnDQAU50HPcn7UnrqWlfckrfxwwNaSv3lDKntmx/ur10rKCxrZNEjGT+aPkwuL7JeVwicJFH8uzdfTRQyDQJbjpjfF13tAMKMEtFo1HwTRSqXWBrneOu8ZN13o+uyx+qTux0XRegCiGYo4iBe8p3nSeyUOl8ja+2bdW+OldvhXhU1ltug8YGetcRCwEXBGYsIWZYuKeMtiO693pSRZfSgskV81skD6hJ+zEeEgUCIk/KL4M0MCpChi9mg6c1w1Uce5BCAntKaHl6DCQhKNSo459yc6Fm9SiupskVjRzUsdXBtcL+0SqGrN5qrAn95N4DlGS/GkFu6kwlBvupGeoaRmGtuWidz1wYFo77J28wajIaiwT50nAJbbZXDL90xEuKsG+0vhSkt6DAMccXLyL0LJJpwHbwjxnjLUmKxM3J2kvHzmeoQ0I6Ip4o6G2gY988e8XiFY50YVGs5CL5ivDap1/99BTezQhTO6Lf7rLViVy0+xYEyOFnVXtUj5J6H7yvVNpudFhxFpnc/ELH3WYqrC8N0nvLb2an0WcXMGm/njDDdUsKSZtcmZNNDnMOBq5cDem0/dPtWRzOD6Z1BTqiVSOBs6zbvMn9nEajn5625DLkKS6Fycrk21lVDF+cM2uJvcy8G0ramyNKQ2LVgFZp84afccW7udwq5YWDVYbRjelQcnqaErDo+Im8mZNp4maJUC1Eq3x+KbXeWi3AZnvcR3i5OPQhc2J1sptrkD5Z+JDhj9siW5w1PqFVQ6iXOvhaJ70zh7UYgBpw0GNbXXeRs/ijPCQhDhYVg0TBNstseiTNajwiCRJHsMn2REeIiokCuJIr/9U43yZzx2LYWjnUBKnmRb/ITNarNwu5DYwX4qH/dcctmVxXzOwmqQCUrneNmchvIq+gi45eG3hoLIGqVWkjdJprT8z4FDlD2KmtYB3HYjV2Up+qN9bg1GmtVLE0Ku0RYwFRCTXt9JJRLeCVmkZVVB948N4aGLNvvBg4B24SCSLGB/a7XLCwpxkvQaLNhyiLP4OM6DDToJ4kC7zK8vV6SnNSrry7K3EjUqjjFRgWtOSwBNDEqoB0MjwgAUG8cMmIzkahDzsd0yvXJKK/1bh8NFKqu4sxyHHX9aoNy7c6hG58k61OzT+3YnnHJZ/YqdlXEXSvjrqZTUxZQZmapcTqr0bxxIHmDe08ZEhN5xYPF8CQUxRFeLp2vVQry+9cWWBslchhf/rqL8HEwu7147/2kcBg54HzmgcupCPRuWu/+lKbObfODp1TzcCOff5R2DN4YG0tHTiwBw81l/37Vt+eoByZAnkOX4tJQh/e+ByNceEc6E9qHr0hwVa4F9Qnyci69/CA+OZbcTogXvJm6ih89zijBzI0y6BFdugne4Wqakd0/vi5HnElKLTmVHqYLdqW64L167bP2hO15XbGXZzQeGoChj3/hH7IDYStrbHvkA6tCGDpMoNhaR54PrmmfagTvJstwwBeygVjgD3JUjuuSsZU5MtbG9rx4k/kc4m5MgfAl4qFbP7njozwBTmZJO+d/oeeKDavzqR6NF2kyBZqV2V61PHFOj1cStNZFNm6f5z19f3i2xUKOhNu7Gs/vx3Xaf0dPSj5jJDW+uS2VvfXfo5QkI7UajywzY3KYgNVb8na4CWH/4wVCeCbVY5WDJF8oPZi6xNP8yOQsBy/L/Gyr80pQ8Pmq4oiy1BWYV8YB/qlV5TCsJzimMPBz1sgJveWa2K4Ji8yhjBUyuqB7n6szQNdUMBrMedSoW4XbFYIoYC07ndGhk/U4H0Dwj3BUenWACbUKU5wZRa2arle1SqyzrMdG1/IOc/I5qdo8S7XC9VQiEQ/saBrlAexB2P0jRCidGqx8iaKCBzqIYyCVdE/RtbIiue99lJZkUsv4XL29Ph8wP0aP0SU2GdH5OflV+5luSePoelYdluZraw2vBhxFmJcq0WvrqZHOO9E+zQ5S0OvyVn2h1hvhuIjceLDlebLqrcr8Xwe2RJ64IlBMR1d3rqgDRQdLnmg0vn5ttbbSZdudnOZJ7EdITSSxuPtyzTGRoqvIFq5DYVotOlQU+BkCW0wuRiqKtTLPq5OqBbbJY1Hg+R44kL/0LKhOezNK2IhE0eQ0d62EAtYuVkiy8xj2E4x9YzAvMIT8riA/0kJQ1c4MydfIyUe64rOzYNCk3wZg6ynCu3JAiyGfdf+p/gE+pflcfX+mzXoNEhDOoO4ap6rGkLpI8SIFs9H86omOQ3Bqf9gJj5uxrvwsUZ25h+FfZUsX8AsQwSuH91blxfzwwqVkWq31K2HzwTmvdy+Z6j/AaHKodwq46W4h9kSB4etKW8BTcNqvqZAMXGSsgQrQzLmCQUBsb2BAR1BRHeFU42IIY5Hfh+KBfJeeVhVK90oXykSh0H1WiCmuHvDftBAzcpnHWyFlXEC+u+kt/nM0bHduB9YLCf7eZMKrCop0eSU6WHjJqq5DbL8dKXFhrpPSzcyIu+WCVHXHfFJFemNwF8Yis8IuwJY+2Ly6dn2Ke08dAthw79F07KncXQ2x3MVb7x16Gyu54RDkQ2utBMu3jx1UOaKaWhefR7dT1hztEfkrFNtqxFScDuk+ISpjTJKDTWYI5rnGLHgVGuMKS2sd+amCoc3Lfhzmv5MOCu+DXB+y67zjmBiUhhO6TAGBm5nyAiD5/UX0CFbqf9wsBriNdAMCiwu+5aeNF9wdq37PA8V/jIKb91Utu69RclnyO2S8M6eAC5TJKGVGK2yepC5CP3Ll/TSWVp03Pr03GfT/on48rVsPMis/nElixIS3eJP4YxNZjcflVPhvLU/r5WZUuh1qngBzJObajd4s8xssF2HwZyrn156HscYtt0yd4+F0+GVno45zjPjOrwOXhtBVQKj4QpWSqGiaiFjjzQZJUPlKQnVmBAvk2a0n31Zt2ypy7C/eCZ+Zq/r2C1NCd/bCttLVaAP966y4PbBjxMDhDl34EDBYTgnux9HxY6u+Yi3j8pIumHhGOL59qeaN/LwLh4rRsYTRIhe6zOdY2SvVeS3Jmx85cJOzshdzCydusQzdIYyVJHsFxxdACdM/3UfTmxKHhg0Aix5iNvcX7YOxOk13nE5hWmzJvu7W9V3ZlHi5CO850dfPx1IR1KY+nlz2GMCG0DjDh/uwoRkLGu8JFPigI6H4H8YM6hpxueWSjxKWnywFzt9+Bm1ekz+Umkn1leW+pwmvgE2CBiBg5bVrxzcfo8ng41Ko5VC0yUNbfb3fCRLewT4ReCj7lAB7r6Frav6poQev0yvVqw8HndczbG2eBtKq+fwXb7kC6JY86fWTM2319yJh9xJZJwckwTfnrgXMxOScQSPgn9fAYfZ8ERrH2JgB/6+2xWl5SIRv5p5zpB2NvKIKZhbGMny0j1gJ/D3Nv1q8W6wg3EL6qunY8rm8469u0zAXKbAxFdbchNFudUJjsmQsOUXD1KQylvoCcQbaFw32zxzXXfsYAY6AdV5zm5mJlYuVAuWQl7DCRVtVWfmV3RFS970KG/I6oPC31Ml2G4ruveWnr9WvbnMnIb8acXaZle56EbT4yszo2wh1IqDYHh77BFSS+r1ZvvIlfr9dIIRoYFVV6pK51bPOaHhasK0HgghBdoFOO5yj37Vy4zqefqVtrCMcK2nLXGlpzu6TDaPlDMp4/1ILwBOHqjHkOzH8kvqqLYdClg53VGR0j3duFVUirolh+jrNAHTM+DEvnx5dmyUqW8lQpCkTtKyZGYiDvGo1lhRNvwqnI6Ee0eSx4/Eu9JR2uVgbDAwMlrD22NVnTrVb30dmpiE/r7IQ5Zr0o4CdC+I/B3bBTADdcMCW083yoAJ1yAMEADvVtHsZ7NcIzSAMmgjT79gAFCuirWyrTdsLNvDH9QFBRwPD58vwjiFFH3Y2dFDh6xcfmsShe4R3Sqwpx96933ufa4Px0ozbiBWl8N0bJ92pnilwOZ2hp04+ZYfEUz47fCubhuyRJZE1bVUxJZqNKWxFXcNEMhQrtlSa4u0KNreYaZtqytNaeOTstK6BGuZsiC5yZgDc1DTHX5kFp2trNCT73Qos4oaADDtg91n59yXXlMNVJcjcALv54e2H8KRixgDI46RAWyEBmAXDGgj8GxIz9Ksgw2CmjaLukPsDuHscdBa+5whCMJWSYnVLrPPjZ63PX77XLVr33ptgTA3yJhPyskh5RuD+E0Reg0ICSo4wACGoSZ+cySiiRdkuvxRMQXxNjd7IT4ni5OLZGVnIeaiG/IzBXLfqPnt4+W5IfGdQeApE8G/1N+JAtRlBZZ/NnX2X4r7ReatbmmxAus//6h9YqwyWsxPF6Q0SUl8zCZ1xFoYwAQboHwYgFeTnNTYkLhUgg92P0atpfb1eIXvwQ+Ln9CY1zmYuM6kPWnmHvQFdq8tW7hEZ338C6OzV6+40TIUvEvADJQB8w+HeO0wOEsDeNjOR06sSoDPKTpAmCjfx0IACh0HugAAwxhoBX+B0JnZSAACAITDq+JxbhgUyKMgw3Zgf0Rvk5mKcBAo8wGu3eM0BsqgjfvhWXS2svBAsGFCHXJgtGZkRKOAEKiVBd+vp5Y2JdUnJNQnNf1lgECGsvVfj53B3xtP9lmsE7J+2Q3tapyLJeetVmc6gMu7I1br+b5z8o2hCcsoK7jjjOgixXScNi7uNmZdrRW3cSquKiP/30LlvHKQp/Dd5r47D5RH5ikLD84tSZFbjSqgaefNi6vQzG8Fl9ri5mkq5oPWtkv/Is2gDaZ6LHMHVvBPxR2NOPcxM/gxBWWgIJlzKg+Eb+hP6U3ZZpB9oe42YMp9MRng2j0G32Fg74x+ajpzaJ+CMZobeS4XdD+ncA07hdZ3S2c+HxuPr1rRv9Ol+wOle/f//la8eIcB/SgsA527B7ssvjw31zuOTS68Kr4at1+MT98t5v+S6/vLj63ZX+zzzgsy1a7BjbqgVJkmrSHmCxtFGrhfKqTChKcr0R3z33/YKB1T5msi3Z9v3FLzfZ8RqK6G6PQ35O3X37fOtd/gLgrgsHmun13NsOdkt4rlOpOn5CBEmwaTk9L94enhQ+lDgemB+0PVRSpVUZ3KwobrLKrhOlXRM/cKAwC4MVMJI1MVlRYgrpDRywIlf4yB2MMktMt7Cx+A3agbHqiiFsTkq1T5MQXUqu8QoYAGOtA94yoqQW5ZDgqiP/0BsfAQDGBqWouypERs7kAJLqceyg8+XXpvTq4yRxGZE5n3EYUFMpStP37MVLhEyS6dTEpOcoXpQOkMsDotlmOf1zKutS3AtfuBe9KsC345T67bJU+Tp/6x67uM/keEAqaIbt5LOpaDdXSAOTL348hcxQEoEoCWuBntgC7YkbAzfmfCjnHZ/kBjwJBxKMAYuH9rtT1Kdx1a7ViNVVixEQsWPpiI7o04eOEPlsQHUYF9RYvKui38gEP88QNH8DktBudUo5QynuFSTGV8/hoWCm6JcKXCfKmXA/h1ldUMC0NewTDNljNtTPncyt8huhUJXEalOTLSPAcBg3MeL6d+FAXoonkJyY2JiY3JMWHFefN9XX6qn5VtlcY4/Rw5BxHgPcGa8A7nh29no943WDe80QivasIrgo/sQOJZ+4p1oS9WZ3ed3c0Fc6udc2vasBZYebw/IMCJMhDnzz97wj7CgD2F7gQbdfZi/aFL63D8MAksNQOTIu9VxeyvjzK3PmDrJ0beAtEyus/PYfJBhHOfA1v5g89O2G8d6+09day6gsK80mjrPQIQ9Xu6ardebLVZ+2UXf6L1NTT0IQDpv8/1RsMR/AiG5MRHaQUegdbi3u9HAFBVRnanCeW+cuf/ip1ehAz6pJmbFyX0cTu3OUe4g0Udn5TA8LS4NymNVNTalCX4xROReggZ8LXG6TVpueJrb9Zo/uRyUC73T03HkmtmcWxarJ5u5Q746A4T+oUGX8PCol3ng52pSYJ734mGmLO+UyzufQ6EWLggHKgTzhcaAhyeRd03FwBilLAT7VhkR/N11RjfwbdjDoSJ8lEm4hjI/LewjznGkiiEjB2YI9EpQSAwWoMwo7QEYqurXQ6o33U3nosc2ln8SvvNs7fl6MPRAOHdlgJ0PX2ajwLarE0DjBhz2OYYlAcpWcVXQ/5U//RuAxjsPl3okc99/wc+fjvr/X/1r4dYD4mdbJ8Z9tY+QWiQHnCd49z3CZBf9/By9OqnWtZE0z8oiE5ymn4eDwgjn+APY0Q8ouZd+u2OcccYNo5AXNIRQL7kQ/+0w27YYTma9Q4rR1L5qVF5/DxBPBgjBoRfCiwvoiLNuZEVBjyPSqcjIlfy6rhEKbXTniEMPx4CUP9fJg//F/qf20g4/eiSPw8FAJwFEHAq4UjfTY7EeM8FkkBmuP43yTrRDAAateMIC5m2J8PtMR0bi6vUqG37wOIrYxlZMosbdsNCG3VwTmhmWE4J3zYq3Da9Rmz8khZ60P87xEYVwm7g9l3vfrc9DuwtfbxLPrnPa+Nk7JuPM4+CNnA08/GbsZMbvfZNync9Lt0LSmpz9IsQdGG2/jOTWIgii8rxGiwgYDg68Xbe+zycIHBkEImn9InO5vFuHfmr4Kl78HhabLRyVzCYAXsk70sPpaRXKaHtWgBmgEOu3qAoo2VN8RqLXyuod2D1xbGLMUmVkXMXz4305VM9NAaMwwxk89lwRrutvvRKqTXbVnq8tG5LZxfi7Heis0iXsw8xLYYZMIhJfQHMaHq+ta70cqYtAUpPlNra5/chfc6HoVlU+CBAdfVx+ke/2X5zGezTz1Aw+45hJ1wohNgQCHXlz7XsG6dbBH4krXQ4bs/YuFK017i9Np+i9f9bHfXryAaAuuj4ND6M2VXpk9hdGDYVtaPMrsEMB0FRTIOivnf9BzilgNhtJ+wDdviwbMHic3czOx90ZLQV3QbF1gMXfHwY0d0yUWBM6ZKcJVcDUgOiegTs6IBoDhawPkDLiVLl+lECJ9zDOL+2PciLZAb7zQWorplwfNDvn9hmX2vWynu+HiuSPPkap+1m/U2bU8P3TFrh4XtvZZa12Tf2H79BHNdOYTdv1V7hbv8RX6FK4tOMlsiTn4i5C86ILEYaP0m1Av9xO/dK7S0n5sAANkubhUdoAJkPHnJHDo45kKPYFIYNznA2ASzhOPPvvaK9P4l+ekf0zt9j9PLan3bw09XQ8IU+vj4vff4LSLSG39pPXY6t8Grnrq2ivc2vRC/FPuLYWz7/0/LFqOfjHSfKGK9gnv0RDGCyXywR+rMPgRF85qUvJF9csjMFDOGnO/CGQzgiQFiIYBGGUrrjCAA8nbkEwkLee2xrxztJ49A0v/Nn5ba9x1FR4QJ3Itw9k/EqUW6GqMEJvHi8djwltLD1OLOWebw1aip5lgcf6fdfPIuxcX4Jt/ISWADYq7Vr7Ali9+0xqaTwQhu2Rw1GadYFWql149Zt1jLjEtgkS+teUj4En6vMCuyTgA/smP3+Df1DJD5id8wkTP78Ygpd/1Z9f/OAfRP+iZQbIQCwWhCRdEU5E30vLtAPnk7T3Iib1ga74bZTaZHzQ3YbuzWuTYQQtlXzqbC4nraegcSVemQuooLQuJm2Ge3OZohCXAb+/MngrvqyUb5GMH0o1vPtrZYD6dv47w9pqF+vqQbYiTNhvBZFvnlLeUHwG+ni3Dmxf5W0PIUEH4N6n0VnkdnL/ES8mwwhkk7XTBm+Llpu0T1U59ItDw1OA8NaX+9E+4HYg760KbZek1CaVHHXgIcM5W1YalghWbBJuQXrxWO6U+RtCS2V492WKSr0H+Iw2XKPo8c6TYz50aw+pG/d+tVzomA1vG593wjatR7Hx3Gu/3lTCNhtXiCrqMGXtFYoSxVqc2zuWQMeMpTWd4/PvorapCIs4TzQ1n8x1aN7AGf8fFR49GfhIULQsXJ4r2gvQQ/gpuMoMBgp8a2Tm14l28mvDICcKL2SEqXETa8Tq7/UR7rUviqHSXdF87kB1q9f1clZdIS0IhqBzJg3BQMYhNjnCkCbdsHAxT1sqNesjXvvrVvvMKi4Ud9RJlLXAErG4o6iu8Px52Kb4OaJf24ePb3l9uaYbeH98qUL7sHv3Pv5VVxLu4LVnrCwwrEmoqOqU14VviCVnUoCfX4zD/z6/rgmVi6uki+qUi7xdzJM8960VSxZnFXzAXBTm8s0JWp1iaZsUlOmLilRl2kmS2felALryOik3WGfn8h2NQ8n2StkIAGOolO2YGRi/opeFii5bx03fe6CN/RZ5I3YRgcRCmh8EkUFA/NLPUexUQIECEZ85tidQ4EsTnKtsBueTiFgu3/G78N/SA7wZL52RqOA+qSmtxiT50V2DPtKfYvoEt9wBrb6TN98Bs9XQi863uohbFAqHxpSA154MTMtlAMOI17MtRDwJ4wImG3hxc1xVCmglsXEPsC+W1dd2pt495pvxf8Nkd5uGZP4bQOEi+B7DgzcxYVLEwAfJKzcvePD8bGxwfsPQyMG61KK8fKpy9XzrnmM+X1nVmOM8EiJVC2nyaVAdY0OW+OzKA5fb2c+pv+fyYKsAGLKvNT//FPfQ1UvWBBDhiiyt9WbYkriJTTpTxckPek8nMAx2zBmPZXDwxgRxDKxgl4PAWzqtl4s+K/FqssEf4yP/QwO6oU3ILMAe2FeUoOjlWi6KZCdGom32jMoPXLUiTq7+lDGVuTsR4a8ulAC/J8EyBJPsY+BOPu6ZgNslP42HXtIJ8DRTg8jroO1cE1FcBefqKvBV1zfnwXj56mdRkxYivPh+EYT2EN8bOKLPnuBO9x+Jo5tMCoNSdogrSExKt0gPaNdgFXtVhSbVUiEOEis4MbYzLsjqkatKD7HetY+Vt9N9jDQpBuIZn6r158L6pdNEKj32mR5oxqaY8BR8S5PyUEk2ZbqimkMGxu2T+PTVvs4Me6xyopSHx5qxwk2mRDjI2iEnR4ZQ/y0UY7zQgZ0Puw/odde+jF6/Ju1Ac39E6WZsBTOLI3fweaAtTuvfa74/EAYfxPvR048zMdwT8KDpKutjpAG/u2HobXzP8wyO5EGWukem72XQItKUU0AG9UKMAjbTTATNn6U77xQGNxyZGJg1R7UHZv9esptpebqAVXs23kGFziVVXeGc38h1eVICEAaiAlpcSs2vXc3gRZlB2hQKaoVlEtsxg0fiaN5cJm0W44k7i44W44mqz7WZu6XtJxMuRHUH3SeQl5HTcj6g85RHPJ5H4dBTuQi+4OIW9SuLifqrK3dt89CLKPpu/Ly+pzmNPj0qduLzf0tp6XtFZ1QRJApor1pL2Bfv5oaP18YnJ3EaO+bsDahv46qjdYK+2sloqzZFHste/Lu3XPRE2Ai6BwawJgFKJoiO8QTnV+XT7J3gofeU1O/Dm5yp1Xt5Pq7A54+UCofPA1w+3N3VqW5Nw3+uuZGZpY+oonv3fvYMAXxpinvBsdzzY69bC4ni7rzPkzNmv/JiQ/JlcczTrDtc9Rz22X2edFz7f9snqpdjoSnCNEtcKemidW5RDw68DQNON5O5W53p40ND7MhEzCnGzL8j9PeYqFuQT0RJomFEALx2C94Yey7MT6muozzC7c9Tq6iD1vkv6gXU/RiVYlVQPPwA86bxyq2ybU5zt7enYKdfX1IScqZ1Mg5EIxl2zvMol29q3fQhzDQPuCetOUK9QHHqW/8aRP5MmxPNr+6VCbzhEfzBv6XXm1+YmP4imx/vkE9/gNundI6JYcKI90ylolltGVgty+7n7XnbdEy6ywK0I9Y/XcP5kf/DdlY34PujHtdw9ubGASYZxfwPVcJQEwSK0UgF/72rthH7CLiEfcYH8BjdEYqHe/N75zn7BKEpD8LjZ7b+ICYN7z+yhDmiA4a8Jv66/2BsvNekB+p7ZbYnIabhFmizQAAeRfM4lttJD/IdwzOnczPCUxDPtbsxYrVQTWdTZ8bPnuVGbgRt/TqM8PnTZ01QepibK/m4zQkJzBvoKLs3AqgCf1oukuupYHqyu18xerfWFkYb+Ub9cXFfD4AbKmcahrZ5qS9T9yvGV61246Z1wNB9nY1tKib7rfTr5b+4c+1R6FFO4brAL/DVFX4Eumes3/hewnLrz2JiDr11rmbHk/+l/jviXKOu6NPR/YE1G4qn1NUJGi1yYU5mS37VvMrx9d9GME1pJh8SwW6yMzoBeHpheY3U3et7S7tdFYcBKOvqV2eFk+nJy3As5+aSO33VHyE2lzwoRpGJeX6TBA44cJcwGGd8IGZfpSF9s+4naiTRVq5p1ddXKNZ/E8orXimOn1exc5TB99aeCsi9OSGBQkHxAtD8ozQHsmjqRC+NbUMz8QymqLSmvxrWQUZhs/kvHXzu5ZA/ideCYpG6PMPz9g3jzWtSnl9f2V+66KxlL6hANrroEZFKrnG9v/6ZvSzGx/6pnLnt3U3Ut2w78rdaltFaeXyLGlDK5YeKz3ypZ/QbPKde4u8jrLhhVCWlgs+e/1B+PWDXuPbj6d5ZKEm6PWrS3t+Svnnww8+2prF6fntQjopcen2O4nJP4KaTktgajYpnd0UW5H4l/eVD3L8ctjzNz6cw9lhzDH/9M+Jb9wgtogeacF43cxPJ+4PmyiEA2Zw/wugOEZgN/L5ps0iwxixugOYIGEjiLzEoDj33xeApobu9VNI7etgkXXE1WDvIx6nRwVXvw75yXsMY64vn19+eHmBT8E78tyM3EPm0Y/B6Hp8lH5s9Lxp9BoIvRQXmqoLqRrK8LDrQ8N0iKeTATgf1vX+GX7l7Rx6nR6qP9+0L2Ti/a47JzPKfUEGhAO7rjQWK9b73XpcXfc18/nJ9NY5tzse8vYsTm9eZ7z2w9sHQko4IT4n5FhZWVz1jh8LeAWJeY+Ytc7FTacbWNou9aLgAmvNohoYoAzUjc5WMuBZZBa1n4vLzwTXxXRpZRqjNwxg+rrFTc5a5qPEPF4BCP2FOwtT/IG01lojT6aRDDsDvZNrHm94nFG3ZcGWgc6NlRsxLNP9KnWDXpubnvJ2QaDODbHbDVgrsrbfvq15rRBt/BD74B2RYkbz+PH2rMygg/UHbVubNAyM0aTZaptOpnhbFH9zv/PrTNhEyL16Pkk8NJdsGRKT+PX3QibCQIiaHleu0ZTHJSRXhoAMdsc8sV6cngtBMIPWQQM0KpQjMYjTOuZmsEBo8ryEuNjyMs2RNPpXb2bEhJbmzQnpfM+zrtnnpjeFoW2vzL0ItqjzVZER2dkKoLuFvzVPF9eYCJFUxUZQjixNtLjQ9Au0j4Ey4NcdyvDgNLk8zSxPTQvmBVTkKXMUihxl3hzcHKyb9/JYaKZkQz05uZc2PmeBPpzB+fiOWJrGiWtTTgyBVwIel0QUhaTK5am5BlQw97FrY1x5rKasRVNermk5UQC9rHmIgdtopsRP86w4muoa5Q4BJxxTKubmFRUUIDChrpqVdyFgJx2dnAV5S4tS+csyMEUZfOOzvNjxwYt5VKeDbUSXo90Zg/Whit0efqS1EDu0M8QrKkrVhkmLUIAOogAdTu4f9uEHYtE8qa8WapRqf2AJrWgJM01ZRLuGFIa2dgZ/NGAftIMHu9de1F5cm7DJnKKWHYmPPyJTm1M2laAAGfnIVoGNhkYQp3P/ls+3OoBwEMDlu7Blyb4GQ23jBQpZ0VnUZXfgDsJCWImBPwdgrhHXKNFjise/uHb/2otu3n1N0ONB/OvMaBGvfmZQ1vbHjzUzCtE7y7DlG0WK15rbt7efX/6gWXyYOWTDQ2rxBRUXnrLf+tqB/WwXt68u5v/w/12yj/vIvitybXvzuY3YRt4zy7PAaP6zX8N/xXh04Ma8fmMC6p7bUpKcTDP7c0zSnzpPgxifGPDX++JpMNeXIidJWb8ePv9rmjv0+cHpg89VAwAAAObte/XmdhSgEhGFzlU7GSZ5mEd4ZlB0qjOdS+f4JenCLoiC/5TrQqjUPgiCwPBzhIXgNuZCmcEH3sAwrMexWYO9mCaAGfDAaKKa/+6AXQOkBsKWwA/hZDKJJLP4PKH6ImcRX6qIVMYZnC9ynz0u443Hr6rFBcKoSTGFVcWdzwYAAGhjBMOwOi9GclbwIQRYMSlb9ZBiIAd0+FHEk1HJJ/b/xX1hNEKK3wI8SV44pC19MiF1fPRpjeTGk5I5IVQIIpMCftMMFAblrPNcCzcMxGZ+J6LyldQ/Ghf/uSBtwZ9iLFqZ3yA2m1i48OBBsuh9PsBqamajZykbKAOY44xoxmcty35zJ/a1Il4VH3koUq/SK/YXhraY5ocKyL+rZoPPB7wUTPORl/yX7Xh/mHKZYpky7qbEUoNHABwnjMMb1SeNIAn0LV+MEWMCorGIRVv+AKMBGKcBxG6N0Vy0EUfmi5baYQBjU/j3/n1csFPyuDujhJWwYNZU1NFV5IRy3QKW4Y6/MQFgFNCOgPc0b0UE64TA5oBS34O0jjAyPvoPNcew8cHxj70wuqJFuljzW0ny3lN5RSylhTlWv1Sa+9XfXtnQEyyZj/l0IpWSSm4XYr/itWXpC0k3t1pSjaQ6MoC3JIxd9zm1e3LtryG3/vuE/kkzqX91aMGeBtrzzSG9z0L/Dks3aqtDKUmMI4r1Jd7iC415MimpJVWaxHpG+mb7ddenP/ISVJ4ymSysAIQEy4JDw6RhSplEvJLlDwvO9gxtUylkihDQ8RWrlKCvD8XotfoYtfvx2vhVhQJbtFYdJAg9l38eCZAL5QjfX8xZMT9MvSxmmToMdGX8SSaJ+4LW1NT0SnWCtXMnC36ErZbW1sjWiPo8iuczHr6w+8ZGh009creblgE+xgcDJp9scK5XvxlIvCQgLzrtn2Xx3mR+g1at1jbwrY7Pu7dxt7kZ/423t+P2ugjbcWJvgNgk2Ldgbp2lqTGgmd+Um9sY2BBYz5LUb5Bsc+4BBi+4ODtn507WamlvAVfPrT2JavX9Txz4ghTjJ2NPoGyvv7/KlS6tH7MwlUWsvFN7k0t+0yyWtijo3KNSpFpSze2WvFi6xeuKHeniVkoqq8s9wyTeIMNGWjvZTb3kd+UT+if/vetP3VMQuvo+8qw3ZLMnSxYmk8k8VQm8Hz91Xd/+DekZK0ma2kKSyvIaL4i9S9YrjjCSKKHVWmP6wpCgEIVModo21HNWAPuzVoolMmWYNCw0WBYMxB4Zc/IicyIU2cqc8v8UagAezio0/5YrcxTZORF5keWYOU2eGpS9PHuaF8SXPc7OWf5Hmtw8GpwGMpQdFj1YsWC4wYMsTW6MxZuT/s/4nPLdRwzpye6M+l/Dkd2H9cb/MUwhm157K73dm5Sb3OHo601gINyhh4JOo+qwdW1t5SiOMFGcse8Jq/8M7wy7/5t9DNykuv6sIwlhiyQ5TBc222H3sGzMYeYe4TuC5WlQqHtaMFBd5vyN/c0b4B3gI+NvkvA9Q1rJpzJvbq3wLdvfncKtKqnCz1bwny99ffcO19WBxG/ZEShAWQPbXd3rGVUnl42fBACcHF92Mn0KH8ddU8n52Ebs4pS0MdvIeEfH+IhtLC1lcWwRr0sasMNfTmgNPWzKKb+8KoJjZitQzJ6KoVjFI/VTzvc4byBjbv3bZiGigmKwdhg+LvP7HdOjowgrmGkV1GXIJg9jCNQh99NybyXfyk36OyfAigtwsOmnUOclEkOgp52phhk0x8uTdNAY2O+oZn38B8sdcANmzxRu2rYNA071t7ZelP3k+HSkn2uJLvnzi2KCxW5E1nSUd3Jn4Y98LtvXAOKD68T1D2yJX8hyf3aW3kZnx7muk1S2hxi4a2I2S1ffm42ezc93RzmW9wGwVpRbxUSYqOPGEZ13p6PTeUduOJCmq8brdLa6Rx2SV5FD8A9DjhAm//th9/xNnImwmxc/XKir9fLweeYNSpYGmgTw5fjLNIFJQLssoEJLsiNqGKNxpTbeOKOdRCpF2xbqaot3H9XkFKAXcO02p8lfzgvW7TKZ1pKbpzGXdmR8JKkxKbFhqQG/yy8Xf1qwQiZMFcUL4iuEEnZrlSfsY0kUJIp0wqCq5R+vrhf3nsn992iRtkkkPqUvPkxGKk1v/AzK3vrli95dIlYKS7xLsEvM0oUv6Eea66ct+2o6FF81Dg9etAam5KTsydbl6OB/u6527ROujF/5fYM9MUX4tjCpohuMzz3I5xZeOYZf0OKZbZXjlfKHKcx0AT9GSkpVyozyzKJA2fMVBWUGpbtNLQPsyu7jp1gle6BxN1jUW/Aj5IcU6nxac395ZjRH/s42pz/79kFzXn7eerKQLl6EEtJOAF1vyg34FhfZRPi3AbntGNEXFqk3hyhtSgfRJ2zLkGxEmFgN1fBSQVItdCtNVjOyv6EoWZogTpAdNiHNMjkR7OeAEIcAcUB+jmA5IUOaHYe7cvcMbYaWlCR6XzgiGBYdFH0kGBGeFWmSaDOJNkGjoMhnxkcJvTkzNH/ca5enynOX17nHXxefE3TxA08YUyk7vDQ95tzcJM8dlJ6zGq+3qFrjAkNSeq6W+lZPmVD71PDY9lHHiIPnerPgQTMuYbUFqJbRZreHYFaZMFERCVCVHV8fhF2zLBQ2Vv67tFImTOMlihLN3jBl5XK2TGjFRBgvWSiZU7k5TfpwADKO79CRrKKg4aBhkbhBHXP+qGPlVhkzgSl7Z0vvVikzhRnUWOksvFK0P9dr7PCy7+rDYowJxu+MKUbN+9cXXpcVaZZpyhWG5vIE0R5RcgeQl+5k1onrmE/+poDqlikqSlEIfCCUQyiG4QLc7dJh+chLG58gvqEwh2OpqDX0QGKLeljGr28QE47I6qCkWoFP10C7q59k2YQ0OYZBWkGMMwfYw8f4Y/ZhOCdwsC/zZwAXYcf5Pjmdn8aizHQseC/Kd4XrC39uu2AUMPYuDTW14jmach2p9Xz4SJNHp/59KvkycN7cIJOMwfTdWz4GYvMj7Ha3kbA5lqA5M2y4DxneaKZgxUSDq7/X0jS9lOEeCeulQWNfYDnyED7PHtcDc8m7Y2cYGHTLBfftBH0iH1heBLGCMOSmq/bFsqsHAAfCN2saO8BfFjNGqrzo2FTEGH9MddmOPWQ77q91d3Xhs/LynKgzL79v97per+WdmsiKbCxzDMcBox7kG3AEazLEePaSv+EFqEjBnQbYoMM6Oc71fQZY84XmK509M+bLGMUz/Zc07an1kJeamTaxjWk2N5dm89TVY0D+Y2s8YdOHE+l6AMj6Ny/94MtLaYQIZmMKz/f/f9/XkAHQWCa6WRQovSI7WH3E4/eTLigpIiX6O7Xj4HULRImcImx4SGpJIQ4nc+kDN92Mg7/4CYZqV2m8d27UY8Zwgd/FrFn3vbt0ruvyFnlJasgWEDkJIEhsgXzMy5VmT5+9LGC5u689R3HH7D1rYAN13fl3fz0dcQcKsqraF0TbVKb6B5nnd1R9kzNHZZAZ8bmsq3F6WaqqlJxJqZiRfv2lmNS60+2zwBDpBQu/NdQ36PfMnhhUprfRUlJ3fqOC4Eh1P4jNryUIAkdBNC9GUxg2MTI8jN3YTthRsGSguUzmE5j72hcMTob6DGZmPN8PG7aLa1y2+AOMGOT+x6Hg3C8KqQIO7E9NV1SQL8CIw6SM4he/iQyzaO9+dNSOJjyLNBxwokHj3waBpvJfi2H17sZuaI6fsKJq6tLEs70auXf7LZsUXpB66GBq22WZLcnUbMrTi7b/w70dePrM6vej0fi7IiLEXEEM99Yc6uWCJ3hEYPC6nOyZsi2aGk8ffkbWhtJ09p7Hb/j4bs1eB7AXMAMF6Czqptl1e980tUesxwtJRiYjiuFKBvmrT/PL7HbyQrHYv82KeVkc9q+HWNh51HEWqytkzdfv13EBnO/zZfUaoJLUDiRvr/7SZxnM4C7Kj5U1wV1slfzNnD7KTYbxwpKQVNxG1G1JDSmRb7ns4tLv3nPPMhf9BOFGTL9xp7dmVe2QwO+Xgwz3zYG7AOjTJz5kUQBkuX7Qof4uOiUiCXKd/N3jiDo4uyIdorC6JywaAMia9//935fXmMIkoJRGnu8Pl97UA+UW2izlAVG3G4UQB9q5kCyF5gog9LL14wcUUHmf6L8AHd1J/Fr5xy5gBVrLnwPcuANvt/tNA/fQO6XWbX+FQ9NwiW27Lw9RN24YgsL/2mYtDRJz7TWgd5W0O4TfflrNCn+62moabOm36G7D0AaThgKj8/tP98CIaxAwJCOO+5qAwfzC/vPn+yfu5892MYsyme+gAIlHZtvxEa1+XuS+UralH+TfBCNNX7+/pvpLn3wYcOvo60hIF+vIYplQi2t1gsqrV9BpGqCN0Fyx+sWLXZKndWTO0vsDWA03vn//6NYX+K+0ZoN1AwohG8YCw+fju1+zcazwPtb4mTjUDgCwO8+jqBsTzS43u0aoWOg72WASTPqm0ql1FO9XVNfzwvsnZHgUO27nspYWqaTvn7L+48f6nza3hmEIE33af+x4/+Yef5VpLr25d+BVZO/8I23hlDE3zwDRY3gxdCicEhghTRejlJH2XzawUQrwVfMgYUSEqZ1+et0yJZapM7X6n/8+ZGfIcEg/6J3oJJvU9WmLYg4fjuN6kan+flJixIm6PTLUixc/rSyIzFMozdG5Z5VmRXZOZK6yghRPYyCfb0qNLDDIdfLg1NC0HcGpuW+YzaQ/QNAtzbB9TDg+bO/V/UBryKCuVcXoA4xCC6OYYY3TYYbhxGKGha7TpmMCy84sDw+PnHU7z2bnHQ+qK9Tn6+rYTezPMg2FujxWvV9TUJ2w6NeJoQQbJZ72QAdcZxGATiMAwVGACPgCBBqHkOmql3UUnoUbi/MrciaN45tPqmmpjTCos1Tv0i29/rTA5LoIo+uc+ZV29rxbq7sU7H5oXGTQL1pnhhfp1w0bFq2DJh2Hu92NoJP79b9BjltNYcYwTJiIsAyvsKEwgsy9NGRYtUF1QLaF3oSPmZMbaY5UxFODbzInWoR1u3BFP+I3smN2yf7eBa/1n5KtnaWqWkcRzxz/7tAnH8aobR2NwcqaxiNhASuw9ix72p5frp6vWlMSWwY1y2pqc3iFIleRnR1pVpYBuBSYI7MUiqzKA2WUtZ/iMTKLOqy1Unx5FJ/G211/uD8IbmG4xB6wG7075qANxAZXx7GVgyFQ6sKTM4bnJGyxPWJuNQ3Qyd//ZwDkPmdzb2Qn3ZBO5KSeQ1jvF2f76L03iw8ZPu0NdR1sM4dTeblln07PfS9lW8bFTGG+uNIXqKWPa8+mhhYu28esZe5rDS1sRwFCIEy0/V7DiHU4jUizEhjh0rpI9vD2cBDsouQYzpFu5JhuUNkj73YFV4r+vNPzqQoKm+FWK/OTmqsMnYWHkMNsqnJNMvpH9TZOg7FaH98+s21L/k/kQDQV9Ux89hQE67NNjGUZFG/6q9aHHMNmjuFh6yu6N2VZhokBvs9Pzf8erHvA72qK40l83LsXXlN3H3Uc6fbG02nkiOOoTwdWa/Mv9KtJMxlAyM3jj4VfxL2x5XNuEDXZiyX2WkEo81bNd/pMBX5k6bWYp+Y7v/QIHp5kxMc6ttxEZCmUyFDGJzU3dBn3tAwBzptsAiFb6Iz13fElxMDcwCBenWj9utczuqaSG5KSGpYagpDRD2ia7Wdy/hjdR/4/6qSDM8YHB424a8R48EH1mZAN6n7021ta7s58Xl7+XM7RBOABGn+5e+RH/81ZRsCuF701MTNo67to4NufBob2eULRkGdffl8opArPLzTw07cD0XcjU9K+k6MB1RW6KGlaRGZWkYJLZQAAsDFCqFtll7LeE7wHAOQABwxRirdzwEI2RTSZJJJcOcE74ndHJ113XxoWmm4IDQt6npX1Q8YPZVk/BPnH+qtpAGHQ0lh97ORtE+n3pet0d/x00yik0bCiWJ5ekCcOaUuePFM5vvvFHvPZy9KKEDIVZfMPJwdtPoiEOvM6qaQoErUztzOEFJ10dYYiByNwmhuZpSkPW1HYjwQKLvtYZm7/uT227Wj1GWpQ8uRUc0JWfcZy8xnMSmhuOJTAzjBXR7RWRWSa2QmH1l/xPxd6Pux86LmQ8WsBvFbRJT7i2F0oQLy5FnHqu4AXo/J5TQuql4IgCU0cRyt5nqTp+eV/PJVFvLXVjjP+QS7pwCiNxiQJHfg0OaXlm+/upanXYMpQqDOl8aOkr1gFRr/3JFCg/M+fKlm50r0JtswEXta4XO7j/CM8Drxk1Bsz+2G9u9gwNQUUNPmmpeBL0vDFv+N67mnYICUDXv/cgDsIc7cfLM4KpvK4H33ZRe0z2Jnx61+U1m2rifWQMydPBXLTu5fJ4/o82u9VDebsfoUTuF1j9RiwO/A2N0h0OW6BlJG5OZHl2f1wPUADt6W3lImCr+kk2mwxrto7MMoKjbt5+qA8J4PlZP32wKCvJ1RM41evK9MwYylPL/V1s2qsqoLo6AKVddSAhwxl69FH3+rEhdXxlVptZXz1UwMeMpStnz5uh4lG+45WBLaMBl5vCay4Ph+O9meaLYSdM59OaHYeSmBnmqsiWqsjMrjLauC87xLgjne3HyzJDPbkccr7btVxdzvJ28uhPdrX/ouKxfUN/sWZxbpFJxbVRtfd6l6UXzfiJHf++efHknM210meWSrzEmAguUZP4sxwf+HOcLy5D7jivnUecGEXZXn67wl6hn9N0fq+ufMNQ6/szjdO1Jmf76QZ+i5eaHvSYF58jyFo4ToISo1tLA891jV+M/kptmSU0klhX1mcExOGb0k7jSO/UuqzeE2nvl+2MN8NYABnIqB+sP9TIRMGesc3Kfy7JPnR1DyT5zVuC9eb5EFK5mWT/L3Igd70bLmHB8l/SBcRzT7k9x49+Cuj78l1B5YWScJNt1J/I/54tt9/aL0LxECwzLrhgQ+/7+B3MnK9h4eXN1ke7E8lkwPJWSSOL9cj3JuHkiiaymwvyQ42pYj2AK1oBHWRmN/8Jzgi4rfUW6ZwSdHSA+tOGn2/Cqa/53eIHRGtG/IneXjIs+negWQvf1I2L5nkQfLmtnCvmTw/7Rzy33/0p+MPaJQi9g5JtlelhkJCed7hHlxfDimLHEgmU/2D5WRvLw+PevJ3soN9fJ8HG6wyGIoB/6/4z9cD9kxNb2nTp1FFGpcuilBAA5007DHj6k9PsU4u+JqDvzUjGM99vv/K00V4DVMlFqiw6rYcBCfVHGkJ5FKHabP4YsI59Cxmt6e2DDPRQXgH6fsGB7c0jm1FJlvDfuYD57+fAYPOA5ZvK3yA6QDuj2AEICY8L8/bWp8l9//SgQFMLbxcuXVRlqmCfqZePuU1TA3kHmmpSWq9XQUVSizUYTBg/LqrdAbnA5s79VFy+vuvekiXvPtWe4x+3lu7InSjkCmNsP0eve/30D9Cw22rK91emjQ3NOSrwnjeG4o3eCDRUTu4Z9g+Nk6Mna+y3oeJ7qpPLPYfUSo0N4maV3a5IR5gU7XK0w/DbEbqttS1kRyOzaVuo64JFWwmX6h50iKfuLTCF1V9vrsQ6HERCxmxj0D/JWRbu3yd9kfUvvqY/8PBgd1nORNhE5y/tv8rJm5ODN/0/2toIpxc5YHwsz/s+Uzu8KPBs9gYu5d5mtnLHpsiUE8mlemJqp/NSApkRR8b8CUzzgaBUZg5BAD5Dfn5neENC2FUp/O5rLBi8rmfI6Jz3KfpI938CHYr+UkGrTxOFs9TE+RBAl/JDA/j7bixHdg0iP2MFHOtIyOzc+vleYVUmAFfocqz6reG5x1jXo0yESJ8gBEj7EEHcfIWfusor9ABfH+/+wXrLOuLu66+O4zd38vgv5s59qSpD3EaDBnHrhrw5HteEhMpuwn0nXCiC9q7kP5zSvtyw8+1yYQ6eE49PFTUfagE+Tm7fDGrQVIv6ZQ44TMJZCvFs8vDSg4nW8leXRQrcE+G7q+ah902JUx8+YFl7Bev+3xSdvRLjy/85pTRftkxdD0+qyy8IqJ5YY16XgxmxUsaSyPywnKyNewFntuvL8mLzQ4s7Fgulf3l+ZDeNvP2XaRYyQk2TfHqIp/XV2UP0UpWvaRB4pR0gjPAtDzZUJ+inj0XzELyiqNWDoiy3Q8ymldkND9wz8zmvhk/p/4HiJ4z9WXGwnTpJuCLrHr00q9dK5r3/R8hqdlf7NmSkdjKMAjThVahZWisi0Shgf0je0fQTj2+44urtcDToz2eBkUXuq5iHdqlQJ8efXIxr+tf479dCqDG5acXV2H3ErO49jVnaPXofbEZuV9C4rydYRVbHsw3qouSVqp6VBukb77zHxzICdupq3Q02WdvO15euhq0NR/5tnmlZexZ8Fd/wmQKxSO4jOYlZoRmcRLDKF4IWRfLyvXuOedFLUH/74he+cArqXA58R3LBv7bXdD6rnhtYdvBiawPGO+iAKW3FLSdupl9R/cDWe0RTlaTKbCH3kPoofbgVAS5o3g/tb1Gd0e0Yw6NRP9akKi8pXSnAxqIijRnfwXU4VxlDAHZLSaIfwDgPvulXw+4zq4UqvRj9zo2dE70vfL3OlM9+bjq9+n2urQwVV379O9Vjyerz3j5v+q74WQps3ZYThrwpzrK+n4uv+QIRBKXW6SwKccREPJ3uQSJ+P2771BjQEbuUt60l+b2oP/zT0XnXzGBoe96vpycJv/+dcyjoeihRzFf/06ennzp+W5oYMxfFPWxyDCBExMBau0tqVdgBhT+nZkZRo4dcxBTON6ugUkYtz/uDEj0qdoa42bu27rMzLcqtZN6wVbOFj3v68rY/kz1Z+PbnM3GuJq4ZAhoawooe6Kdv+ZFpsmNgiK5UZGtPPwiZA+lIF5Nc8Ng8zZ4luuGt4GttOdcN23bFtjNnYW3bIEZoO7jmG3pp05GZmVFKsrqy5NuZK8uPR2eTk7BnvlnX/tVO2j/p3J3RsSatenb+bqO+Hk+vp98ld/X3X9/M0uwloq4UrW6NK6ipVldHlNsi81rN5I6QCU/bU0+q+SKSr4opeUkoi4tY+VxlK3vNpXFVoRpAGGrfWii2ndYHbimAuM76TBNRWncGt22mkaZcXH64uY1QJtfflmI/Agi53acDm/x21d6kmQkPZLJHhlJpJOlGz1awk93zI30ivjK1JMvkesqkE2P+4pdpPn8ImHJl3rNJzr1Q2Ex30JqeRVa/dCzQieXgBWSZl9PoE4HVxna//qEg9TTR2Do5XG+m/0FtDT4Fisq4stZyTPmmGNsvPI0EOnX9PWuibYCBUNztfFnv2gbUDDiLnfxt3vDX303dRUGrF18x8c8L+39Xguv4Vn7bhes9qgDVw90/p5defkCWP1J8YNd7P+egpdRZDSa6uWK1a5dSF35G2utTTYol2tif1u4SXtg5twDkzI1zOZX6JdDKaKm+hUE/L/Ns8AXUpdPkDeHLiNsWVMXi/jiug9yQUbGkqAt1G61qbAmI787fBP1/4mMssh+ox5A98np1OUmac/lt9bvnOvL8FNlXH264Yp2k983VWlH5LdX3VNkxz76R7z0xWephfcqruekcLMCywU1qk2VZIZZUkX68bB4cuW3nXbm6XwwtBEwDAz465MAgiR+wvYcTw+ve/4PfCCJiE8v/Mnngf99n1kxexV/7q7PgfBbZol4LqUwcnRJyDzHEhB/Qu/xak17x03/Ak7+uVxOHvtemq6/571+tD8l7XWu0JYncvfxFwQsaGprHl7AaxMUFAiqf9NT6lj0IF8SwZ4qjPymOSTPsQQkXNZ7vOq0d9z0K/DPP5fHyWU/0+n6A1hoV1e0+4akE376T0Dtw8frGa1FZ3dV6KekVLX4Qk2qiTKKGriGW9trm0Cjdju4+87RfVCvuD9UlL+s60Oll7ZECp74DxP6/V0+QeHemcdIfOlFI4MeoDILgbuHDDx6uOEFqgcCgmlWOGwmL6naIl/ofsQBRoBz5ZlKERyswiSkBBUq5gCDmvgIFGk5NQLGwBFkB4w1Lce32OMjPRzJfDxyRyC8fVSx5Vhf9baYxB3eORaMgSE/pYmeAEoiO4TVGo/6fmBQlHAcdMYHgc5JH66NjWYliAiwb0wjj5bkKDFiAWJEBazEkyYOBz3UTgJQL6GhBAUENuoJb+nzRf0KAQNXmHnD4v5rQYCxiEgN3dIHdqAdxAAHpDasidu9yfzKh6V5JmnT0ojLgEg8wgEdR3tBkeArunz+kkMIm3svAl8ASB4yfPR+ANwAXM8GD7pxPxAq7YeAN8jfTwKeoNnwGA2uMcgweHA/BdDAqEGFwSf7fUAElJFPA37Q28BD7CF7x4MB6O2HABsk7icBOigzPHDQYZBhcON+CuCCowYVBr/e7wNsYHY9GgiGFgI9cIA6UAUWbgfWAjGoBovfZROoAQtAG6iHcQPAm0fMVMRgzQHQCarGwUin0OpVXRZp2R2AQlAHGsAi0AKq8ov6Hssn4OGELKI2UIdGh8LR8WKgAkoQDQAG80OkUkZ7lk28LYBF02t0fDXSAGJAGPV1tB44ZqM1CeMDiNaBFm0sOPB2Y6MZjJrRAygBwKgv7uhsiFm4sJ6dGT8YCBGW1e9uGQOgMfipdhAPonSr+oC5UmCpVUUbFvWukQ12AWzqMnxG7qDADf4ZuQgYTkRMQkpGTkFJhSo16ljY/Pjj4EKgAgTi4RMQEhGTkJIJIhcsRKgw4SIoRFKKEk0lhppGrDhaGFy8BImSJEuRCoZAYXAEEoXGYHF4ApFEplBpdAazCsDmcHl8gVAklkhlcoVSpdZodXqD0WS2WG12h9Pl9nh5+/j6AUAQGAKFwRFIFBqDxeEJRBKZQqXRGUwWu+cAh8vjC4QisUQanY1coVSpNVqd3mA0mS1Wm93hTOqc2+P1+YEQjKAYTpAUzbA8vkAoEks4qUyuUKrUGq1ObzCazBarze5wutwer89PGRdSaWPZjuv5T8XGszqYYJelkMBMOW1N1QQFFNcyNLxBIdVlQITb6LhvWQTHNZX/dl43N1ZqqUy5xjfrVqb25VEEXNN0Y2vFEbdwuUwhfBk6t0lpXrdmP5EseHShifh6jHJfeSek/6U+EbBgzj044QjEm0CVZhceYZepMNwkJjmX9Tu23AiDDkgGB+6urMEAMqw6oms4Wgmgb1JLNjy1DCgvA4hfBrTC5t/3+jjUzY2C8MKDlqnasm5gnCFdY+5la49t35gP6I8CAXbeu+SxxnW0TIL0XlIRjLuT+sVFGoNEHQydCToOzwr83PLvZcKYiVrvEJKZpnZs7ndY+ZUXwgkbcOKeyPfL6AYfwVTNHMmPOR9hgIrYUdneMaXiV1FshBAyw6VJYMAiRRfWYiu4K1jXktlJGO0FXXZT/m0oHTE+O516CB98UCpy1YBR/n4qx7ByF04C+UcIFrEyqxjNd2kMORcqiTACwX3TyDF5UjgHRMkg61q2HEDfEbwWDLnRZXwY2HZ/h+FYhn4488WtuEdIiRUOtzFsAxE2k+SmISUGxoDJmAFXs2CgY4ME2kLKY+UK63lGB9gT2DBt8O7e//IY35IJsTLTOAlmMhZyBgLjYY7lJy/d7K4wkKy0RL4lzwxcMjrAHnS+AFjGnBHcMSALyvChbM2CyaKbEgMUDG5iYUL2ZM7MzlD0EYBhZ1LYIctfBpDI0Gc1JGH/UQ1C58xID8AyNi0Lo6wcAzeOhMocsiPpAtxgu6z620C4vOeifjyJFwdzKzPgU2ZQMIRoZiuxo8xGGmKWJLzKqIPno8HwKCE4GqMtBdDAoWdbjqkvIM1BV03C0uhcmIYGGqj8ZYACzbi+xSdBiJsx3+jexq+jyukcZY1Rjckfc9gLJ15QVYhpkyCeeeRuXlCsUI5n9WdKE5BoplmJo77JKoeO01l1w0Bq8r5wT+9salZosLKG4AGzZCSffegO6F/iM8IaXWvybTMCNNDKg4LAvQyVR5eCSaBNgooW5quWY2kwxQirMj2ZOyNkNHMk1KoAnDVKUKmoOQlkHokjWZABIDWjQ0wZx1pebPJyBxOu20pQpqFHa37EnWYAq80I5FqRxE5Q6yUGcNYsHBY8aGJO9OGxYNbpRtcT0rYCNIewdAJMFhMicdLK8EiNrfna5OVGktnON67OuYG0nvZkP15OlG05P1BAe25nWUvIjNpp5aBvFSjNgVtQHqxu7kGLZZvxJWLZfY21NtZ+5MttqFb4uqmhYB7tiBwwYl+3CVsK0rSqJspDqsPldaFqTri8/rNZGyFvLMmW0ql8yDwIq91fEjqAaRwrDQKCYyxoY3foM0aMlEJwjzrwoMuRjBsWFqjFVX5t5Tu1aQAAAAA=') format('woff2'),url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff?t=1694918397022) format('woff')}.van-icon__image{display:block;width:1em;height:1em;object-fit:contain}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/icon/index.css"],"names":[],"mappings":"AAAA,UAAU,kBAAkB,qBAAqB,2CAA2C,0EAA0E,kBAAkB,oBAAoB,kCAAkC,CAAC,iBAAiB,oBAAoB,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,yBAAyB,eAAe,CAAC,kCAAkC,eAAe,CAAC,2BAA2B,eAAe,CAAC,0BAA0B,eAAe,CAAC,2BAA2B,eAAe,CAAC,sBAAsB,eAAe,CAAC,6BAA6B,eAAe,CAAC,6BAA6B,eAAe,CAAC,gCAAgC,eAAe,CAAC,wBAAwB,eAAe,CAAC,+BAA+B,eAAe,CAAC,oBAAoB,eAAe,CAAC,gCAAgC,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,4BAA4B,eAAe,CAAC,0BAA0B,eAAe,CAAC,0BAA0B,eAAe,CAAC,qBAAqB,eAAe,CAAC,yBAAyB,eAAe,CAAC,0BAA0B,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,0BAA0B,eAAe,CAAC,sBAAsB,eAAe,CAAC,sBAAsB,eAAe,CAAC,yBAAyB,eAAe,CAAC,wBAAwB,eAAe,CAAC,wBAAwB,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,uBAAuB,eAAe,CAAC,0BAA0B,eAAe,CAAC,qBAAqB,eAAe,CAAC,2BAA2B,eAAe,CAAC,yBAAyB,eAAe,CAAC,2BAA2B,eAAe,CAAC,2BAA2B,eAAe,CAAC,6BAA6B,eAAe,CAAC,4BAA4B,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,6BAA6B,eAAe,CAAC,0BAA0B,eAAe,CAAC,wBAAwB,eAAe,CAAC,+BAA+B,eAAe,CAAC,yBAAyB,eAAe,CAAC,iCAAiC,eAAe,CAAC,uBAAuB,eAAe,CAAC,sBAAsB,eAAe,CAAC,yBAAyB,eAAe,CAAC,wBAAwB,eAAe,CAAC,4BAA4B,eAAe,CAAC,qBAAqB,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,wBAAwB,eAAe,CAAC,0BAA0B,eAAe,CAAC,4BAA4B,eAAe,CAAC,0BAA0B,eAAe,CAAC,uBAAuB,eAAe,CAAC,sBAAsB,eAAe,CAAC,yBAAyB,eAAe,CAAC,4BAA4B,eAAe,CAAC,2BAA2B,eAAe,CAAC,yBAAyB,eAAe,CAAC,sBAAsB,eAAe,CAAC,sBAAsB,eAAe,CAAC,2BAA2B,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,+BAA+B,eAAe,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,8BAA8B,eAAe,CAAC,6BAA6B,eAAe,CAAC,6BAA6B,eAAe,CAAC,uBAAuB,eAAe,CAAC,0BAA0B,eAAe,CAAC,qBAAqB,eAAe,CAAC,sBAAsB,eAAe,CAAC,yBAAyB,eAAe,CAAC,2BAA2B,eAAe,CAAC,8BAA8B,eAAe,CAAC,uBAAuB,eAAe,CAAC,gCAAgC,eAAe,CAAC,0BAA0B,eAAe,CAAC,iCAAiC,eAAe,CAAC,wBAAwB,eAAe,CAAC,sBAAsB,eAAe,CAAC,gCAAgC,eAAe,CAAC,yBAAyB,eAAe,CAAC,yBAAyB,eAAe,CAAC,4BAA4B,eAAe,CAAC,uBAAuB,eAAe,CAAC,yBAAyB,eAAe,CAAC,6BAA6B,eAAe,CAAC,sBAAsB,eAAe,CAAC,8BAA8B,eAAe,CAAC,8BAA8B,eAAe,CAAC,4BAA4B,eAAe,CAAC,+BAA+B,eAAe,CAAC,wBAAwB,eAAe,CAAC,uBAAuB,eAAe,CAAC,oBAAoB,eAAe,CAAC,4BAA4B,eAAe,CAAC,4BAA4B,eAAe,CAAC,wBAAwB,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,0BAA0B,eAAe,CAAC,wBAAwB,eAAe,CAAC,0BAA0B,eAAe,CAAC,2BAA2B,eAAe,CAAC,sBAAsB,eAAe,CAAC,uBAAuB,eAAe,CAAC,6BAA6B,eAAe,CAAC,yBAAyB,eAAe,CAAC,yBAAyB,eAAe,CAAC,wBAAwB,eAAe,CAAC,4BAA4B,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,gCAAgC,eAAe,CAAC,8BAA8B,eAAe,CAAC,uBAAuB,eAAe,CAAC,iCAAiC,eAAe,CAAC,sBAAsB,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,iCAAiC,eAAe,CAAC,sBAAsB,eAAe,CAAC,+BAA+B,eAAe,CAAC,yBAAyB,eAAe,CAAC,sBAAsB,eAAe,CAAC,yBAAyB,eAAe,CAAC,6BAA6B,eAAe,CAAC,2BAA2B,eAAe,CAAC,+BAA+B,eAAe,CAAC,wBAAwB,eAAe,CAAC,2BAA2B,eAAe,CAAC,gCAAgC,eAAe,CAAC,8BAA8B,eAAe,CAAC,iCAAiC,eAAe,CAAC,0BAA0B,eAAe,CAAC,yBAAyB,eAAe,CAAC,6BAA6B,eAAe,CAAC,sBAAsB,eAAe,CAAC,4BAA4B,eAAe,CAAC,wBAAwB,eAAe,CAAC,4BAA4B,eAAe,CAAC,0BAA0B,eAAe,CAAC,2BAA2B,eAAe,CAAC,0BAA0B,eAAe,CAAC,yBAAyB,eAAe,CAAC,0BAA0B,eAAe,CAAC,uBAAuB,eAAe,CAAC,4BAA4B,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,2BAA2B,eAAe,CAAC,4BAA4B,eAAe,CAAC,2BAA2B,eAAe,CAAC,wBAAwB,eAAe,CAAC,2BAA2B,eAAe,CAAC,+BAA+B,eAAe,CAAC,wBAAwB,eAAe,CAAC,+BAA+B,eAAe,CAAC,+BAA+B,eAAe,CAAC,yBAAyB,eAAe,CAAC,4BAA4B,eAAe,CAAC,qBAAqB,eAAe,CAAC,4BAA4B,eAAe,CAAC,0BAA0B,eAAe,CAAC,uBAAuB,eAAe,CAAC,4BAA4B,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,2BAA2B,eAAe,CAAC,wBAAwB,eAAe,CAAC,qBAAqB,eAAe,CAAC,uBAAuB,eAAe,CAAC,4BAA4B,eAAe,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,uBAAuB,eAAe,CAAC,8BAA8B,eAAe,CAAC,0BAA0B,eAAe,CAAC,qBAAqB,eAAe,CAAC,6BAA6B,eAAe,CAAC,2BAA2B,eAAe,CAAC,6BAA6B,eAAe,CAAC,sBAAsB,eAAe,CAAC,gCAAgC,eAAe,CAAC,iCAAiC,eAAe,CAAC,0BAA0B,eAAe,CAAC,sBAAsB,eAAe,CAAC,sBAAsB,eAAe,CAAC,oCAAoC,eAAe,CAAC,kCAAkC,eAAe,CAAC,4BAA4B,eAAe,CAAC,wBAAwB,eAAe,CAAC,4BAA4B,eAAe,CAAC,wBAAwB,eAAe,CAAC,4BAA4B,eAAe,CAAC,yBAAyB,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,6BAA6B,eAAe,CAAC,+BAA+B,eAAe,CAAC,sBAAsB,eAAe,CAAC,iCAAiC,eAAe,CAAC,oCAAoC,eAAe,CAAC,2BAA2B,eAAe,CAAC,kCAAkC,eAAe,CAAC,6BAA6B,eAAe,CAAC,sBAAsB,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,4BAA4B,eAAe,CAAC,wBAAwB,eAAe,CAAC,2BAA2B,eAAe,CAAC,wBAAwB,eAAe,CAAC,kCAAkC,eAAe,CAAC,yBAAyB,eAAe,CAAC,yBAAyB,eAAe,CAAC,2BAA2B,eAAe,CAAC,gCAAgC,eAAe,CAAC,6BAA6B,eAAe,CAAC,4BAA4B,eAAe,CAAC,wBAAwB,eAAe,CAAC,2BAA2B,eAAe,CAAC,0BAA0B,eAAe,CAAC,2BAA2B,eAAe,CAAC,4BAA4B,eAAe,CAAC,2BAA2B,eAAe,CAAC,2BAA2B,eAAe,CAAC,+BAA+B,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,0BAA0B,eAAe,CAAC,uBAAuB,eAAe,CAAC,sBAAsB,eAAe,CAAC,0BAA0B,eAAe,CAAC,sBAAsB,eAAe,CAAC,4BAA4B,eAAe,CAAC,2BAA2B,eAAe,CAAC,2BAA2B,eAAe,CAAC,WAAW,gBAAgB,sBAAsB,kBAAkB,kBAAkB,kpiCAAkpiC,CAAC,iBAAiB,cAAc,UAAU,WAAW,kBAAkB,CAAC","file":"index.css","sourcesContent":[".van-icon{position:relative;display:inline-block;font:normal normal normal 14px/1 vant-icon;font:normal normal normal 14px/1 var(--van-icon-font-family, 'vant-icon');font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon:before{display:inline-block}.van-icon-contact:before{content:'\\e753'}.van-icon-notes:before{content:'\\e63c'}.van-icon-records:before{content:'\\e63d'}.van-icon-cash-back-record:before{content:'\\e63e'}.van-icon-newspaper:before{content:'\\e63f'}.van-icon-discount:before{content:'\\e640'}.van-icon-completed:before{content:'\\e641'}.van-icon-user:before{content:'\\e642'}.van-icon-description:before{content:'\\e643'}.van-icon-list-switch:before{content:'\\e6ad'}.van-icon-list-switching:before{content:'\\e65a'}.van-icon-link-o:before{content:'\\e751'}.van-icon-miniprogram-o:before{content:'\\e752'}.van-icon-qq:before{content:'\\e74e'}.van-icon-wechat-moments:before{content:'\\e74f'}.van-icon-weibo:before{content:'\\e750'}.van-icon-cash-o:before{content:'\\e74d'}.van-icon-guide-o:before{content:'\\e74c'}.van-icon-invitation:before{content:'\\e6d6'}.van-icon-shield-o:before{content:'\\e74b'}.van-icon-exchange:before{content:'\\e6af'}.van-icon-eye:before{content:'\\e6b0'}.van-icon-enlarge:before{content:'\\e6b1'}.van-icon-expand-o:before{content:'\\e6b2'}.van-icon-eye-o:before{content:'\\e6b3'}.van-icon-expand:before{content:'\\e6b4'}.van-icon-filter-o:before{content:'\\e6b5'}.van-icon-fire:before{content:'\\e6b6'}.van-icon-fail:before{content:'\\e6b7'}.van-icon-failure:before{content:'\\e6b8'}.van-icon-fire-o:before{content:'\\e6b9'}.van-icon-flag-o:before{content:'\\e6ba'}.van-icon-font:before{content:'\\e6bb'}.van-icon-font-o:before{content:'\\e6bc'}.van-icon-gem-o:before{content:'\\e6bd'}.van-icon-flower-o:before{content:'\\e6be'}.van-icon-gem:before{content:'\\e6bf'}.van-icon-gift-card:before{content:'\\e6c0'}.van-icon-friends:before{content:'\\e6c1'}.van-icon-friends-o:before{content:'\\e6c2'}.van-icon-gold-coin:before{content:'\\e6c3'}.van-icon-gold-coin-o:before{content:'\\e6c4'}.van-icon-good-job-o:before{content:'\\e6c5'}.van-icon-gift:before{content:'\\e6c6'}.van-icon-gift-o:before{content:'\\e6c7'}.van-icon-gift-card-o:before{content:'\\e6c8'}.van-icon-good-job:before{content:'\\e6c9'}.van-icon-home-o:before{content:'\\e6ca'}.van-icon-goods-collect:before{content:'\\e6cb'}.van-icon-graphic:before{content:'\\e6cc'}.van-icon-goods-collect-o:before{content:'\\e6cd'}.van-icon-hot-o:before{content:'\\e6ce'}.van-icon-info:before{content:'\\e6cf'}.van-icon-hotel-o:before{content:'\\e6d0'}.van-icon-info-o:before{content:'\\e6d1'}.van-icon-hot-sale-o:before{content:'\\e6d2'}.van-icon-hot:before{content:'\\e6d3'}.van-icon-like:before{content:'\\e6d4'}.van-icon-idcard:before{content:'\\e6d5'}.van-icon-like-o:before{content:'\\e6d7'}.van-icon-hot-sale:before{content:'\\e6d8'}.van-icon-location-o:before{content:'\\e6d9'}.van-icon-location:before{content:'\\e6da'}.van-icon-label:before{content:'\\e6db'}.van-icon-lock:before{content:'\\e6dc'}.van-icon-label-o:before{content:'\\e6dd'}.van-icon-map-marked:before{content:'\\e6de'}.van-icon-logistics:before{content:'\\e6df'}.van-icon-manager:before{content:'\\e6e0'}.van-icon-more:before{content:'\\e6e1'}.van-icon-live:before{content:'\\e6e2'}.van-icon-manager-o:before{content:'\\e6e3'}.van-icon-medal:before{content:'\\e6e4'}.van-icon-more-o:before{content:'\\e6e5'}.van-icon-music-o:before{content:'\\e6e6'}.van-icon-music:before{content:'\\e6e7'}.van-icon-new-arrival-o:before{content:'\\e6e8'}.van-icon-medal-o:before{content:'\\e6e9'}.van-icon-new-o:before{content:'\\e6ea'}.van-icon-free-postage:before{content:'\\e6eb'}.van-icon-newspaper-o:before{content:'\\e6ec'}.van-icon-new-arrival:before{content:'\\e6ed'}.van-icon-minus:before{content:'\\e6ee'}.van-icon-orders-o:before{content:'\\e6ef'}.van-icon-new:before{content:'\\e6f0'}.van-icon-paid:before{content:'\\e6f1'}.van-icon-notes-o:before{content:'\\e6f2'}.van-icon-other-pay:before{content:'\\e6f3'}.van-icon-pause-circle:before{content:'\\e6f4'}.van-icon-pause:before{content:'\\e6f5'}.van-icon-pause-circle-o:before{content:'\\e6f6'}.van-icon-peer-pay:before{content:'\\e6f7'}.van-icon-pending-payment:before{content:'\\e6f8'}.van-icon-passed:before{content:'\\e6f9'}.van-icon-plus:before{content:'\\e6fa'}.van-icon-phone-circle-o:before{content:'\\e6fb'}.van-icon-phone-o:before{content:'\\e6fc'}.van-icon-printer:before{content:'\\e6fd'}.van-icon-photo-fail:before{content:'\\e6fe'}.van-icon-phone:before{content:'\\e6ff'}.van-icon-photo-o:before{content:'\\e700'}.van-icon-play-circle:before{content:'\\e701'}.van-icon-play:before{content:'\\e702'}.van-icon-phone-circle:before{content:'\\e703'}.van-icon-point-gift-o:before{content:'\\e704'}.van-icon-point-gift:before{content:'\\e705'}.van-icon-play-circle-o:before{content:'\\e706'}.van-icon-shrink:before{content:'\\e707'}.van-icon-photo:before{content:'\\e708'}.van-icon-qr:before{content:'\\e709'}.van-icon-qr-invalid:before{content:'\\e70a'}.van-icon-question-o:before{content:'\\e70b'}.van-icon-revoke:before{content:'\\e70c'}.van-icon-replay:before{content:'\\e70d'}.van-icon-service:before{content:'\\e70e'}.van-icon-question:before{content:'\\e70f'}.van-icon-search:before{content:'\\e710'}.van-icon-refund-o:before{content:'\\e711'}.van-icon-service-o:before{content:'\\e712'}.van-icon-scan:before{content:'\\e713'}.van-icon-share:before{content:'\\e714'}.van-icon-send-gift-o:before{content:'\\e715'}.van-icon-share-o:before{content:'\\e716'}.van-icon-setting:before{content:'\\e717'}.van-icon-points:before{content:'\\e718'}.van-icon-photograph:before{content:'\\e719'}.van-icon-shop:before{content:'\\e71a'}.van-icon-shop-o:before{content:'\\e71b'}.van-icon-shop-collect-o:before{content:'\\e71c'}.van-icon-shop-collect:before{content:'\\e71d'}.van-icon-smile:before{content:'\\e71e'}.van-icon-shopping-cart-o:before{content:'\\e71f'}.van-icon-sign:before{content:'\\e720'}.van-icon-sort:before{content:'\\e721'}.van-icon-star-o:before{content:'\\e722'}.van-icon-smile-comment-o:before{content:'\\e723'}.van-icon-stop:before{content:'\\e724'}.van-icon-stop-circle-o:before{content:'\\e725'}.van-icon-smile-o:before{content:'\\e726'}.van-icon-star:before{content:'\\e727'}.van-icon-success:before{content:'\\e728'}.van-icon-stop-circle:before{content:'\\e729'}.van-icon-records-o:before{content:'\\e72a'}.van-icon-shopping-cart:before{content:'\\e72b'}.van-icon-tosend:before{content:'\\e72c'}.van-icon-todo-list:before{content:'\\e72d'}.van-icon-thumb-circle-o:before{content:'\\e72e'}.van-icon-thumb-circle:before{content:'\\e72f'}.van-icon-umbrella-circle:before{content:'\\e730'}.van-icon-underway:before{content:'\\e731'}.van-icon-upgrade:before{content:'\\e732'}.van-icon-todo-list-o:before{content:'\\e733'}.van-icon-tv-o:before{content:'\\e734'}.van-icon-underway-o:before{content:'\\e735'}.van-icon-user-o:before{content:'\\e736'}.van-icon-vip-card-o:before{content:'\\e737'}.van-icon-vip-card:before{content:'\\e738'}.van-icon-send-gift:before{content:'\\e739'}.van-icon-wap-home:before{content:'\\e73a'}.van-icon-wap-nav:before{content:'\\e73b'}.van-icon-volume-o:before{content:'\\e73c'}.van-icon-video:before{content:'\\e73d'}.van-icon-wap-home-o:before{content:'\\e73e'}.van-icon-volume:before{content:'\\e73f'}.van-icon-warning:before{content:'\\e740'}.van-icon-weapp-nav:before{content:'\\e741'}.van-icon-wechat-pay:before{content:'\\e742'}.van-icon-warning-o:before{content:'\\e743'}.van-icon-wechat:before{content:'\\e744'}.van-icon-setting-o:before{content:'\\e745'}.van-icon-youzan-shield:before{content:'\\e746'}.van-icon-warn-o:before{content:'\\e747'}.van-icon-smile-comment:before{content:'\\e748'}.van-icon-user-circle-o:before{content:'\\e749'}.van-icon-video-o:before{content:'\\e74a'}.van-icon-add-square:before{content:'\\e65c'}.van-icon-add:before{content:'\\e65d'}.van-icon-arrow-down:before{content:'\\e65e'}.van-icon-arrow-up:before{content:'\\e65f'}.van-icon-arrow:before{content:'\\e660'}.van-icon-after-sale:before{content:'\\e661'}.van-icon-add-o:before{content:'\\e662'}.van-icon-alipay:before{content:'\\e663'}.van-icon-ascending:before{content:'\\e664'}.van-icon-apps-o:before{content:'\\e665'}.van-icon-aim:before{content:'\\e666'}.van-icon-award:before{content:'\\e667'}.van-icon-arrow-left:before{content:'\\e668'}.van-icon-award-o:before{content:'\\e669'}.van-icon-audio:before{content:'\\e66a'}.van-icon-bag-o:before{content:'\\e66b'}.van-icon-balance-list:before{content:'\\e66c'}.van-icon-back-top:before{content:'\\e66d'}.van-icon-bag:before{content:'\\e66e'}.van-icon-balance-pay:before{content:'\\e66f'}.van-icon-balance-o:before{content:'\\e670'}.van-icon-bar-chart-o:before{content:'\\e671'}.van-icon-bars:before{content:'\\e672'}.van-icon-balance-list-o:before{content:'\\e673'}.van-icon-birthday-cake-o:before{content:'\\e674'}.van-icon-bookmark:before{content:'\\e675'}.van-icon-bill:before{content:'\\e676'}.van-icon-bell:before{content:'\\e677'}.van-icon-browsing-history-o:before{content:'\\e678'}.van-icon-browsing-history:before{content:'\\e679'}.van-icon-bookmark-o:before{content:'\\e67a'}.van-icon-bulb-o:before{content:'\\e67b'}.van-icon-bullhorn-o:before{content:'\\e67c'}.van-icon-bill-o:before{content:'\\e67d'}.van-icon-calendar-o:before{content:'\\e67e'}.van-icon-brush-o:before{content:'\\e67f'}.van-icon-card:before{content:'\\e680'}.van-icon-cart-o:before{content:'\\e681'}.van-icon-cart-circle:before{content:'\\e682'}.van-icon-cart-circle-o:before{content:'\\e683'}.van-icon-cart:before{content:'\\e684'}.van-icon-cash-on-deliver:before{content:'\\e685'}.van-icon-cash-back-record-o:before{content:'\\e686'}.van-icon-cashier-o:before{content:'\\e687'}.van-icon-chart-trending-o:before{content:'\\e688'}.van-icon-certificate:before{content:'\\e689'}.van-icon-chat:before{content:'\\e68a'}.van-icon-clear:before{content:'\\e68b'}.van-icon-chat-o:before{content:'\\e68c'}.van-icon-checked:before{content:'\\e68d'}.van-icon-clock:before{content:'\\e68e'}.van-icon-clock-o:before{content:'\\e68f'}.van-icon-close:before{content:'\\e690'}.van-icon-closed-eye:before{content:'\\e691'}.van-icon-circle:before{content:'\\e692'}.van-icon-cluster-o:before{content:'\\e693'}.van-icon-column:before{content:'\\e694'}.van-icon-comment-circle-o:before{content:'\\e695'}.van-icon-cluster:before{content:'\\e696'}.van-icon-comment:before{content:'\\e697'}.van-icon-comment-o:before{content:'\\e698'}.van-icon-comment-circle:before{content:'\\e699'}.van-icon-completed-o:before{content:'\\e69a'}.van-icon-credit-pay:before{content:'\\e69b'}.van-icon-coupon:before{content:'\\e69c'}.van-icon-debit-pay:before{content:'\\e69d'}.van-icon-coupon-o:before{content:'\\e69e'}.van-icon-contact-o:before{content:'\\e69f'}.van-icon-descending:before{content:'\\e6a0'}.van-icon-desktop-o:before{content:'\\e6a1'}.van-icon-diamond-o:before{content:'\\e6a2'}.van-icon-description-o:before{content:'\\e6a3'}.van-icon-delete:before{content:'\\e6a4'}.van-icon-diamond:before{content:'\\e6a5'}.van-icon-delete-o:before{content:'\\e6a6'}.van-icon-cross:before{content:'\\e6a7'}.van-icon-edit:before{content:'\\e6a8'}.van-icon-ellipsis:before{content:'\\e6a9'}.van-icon-down:before{content:'\\e6aa'}.van-icon-discount-o:before{content:'\\e6ab'}.van-icon-ecard-pay:before{content:'\\e6ac'}.van-icon-envelop-o:before{content:'\\e6ae'}@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url('data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAGL8AA0AAAAA6SgAAGKgAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCUhEICoOoBILIXQuECgABNgIkA4QQBCAFhQ4Hlicbj7ZFB3LYOIBhOG/7KEqjrI5CckpqLfv/nNwYQy3QrP8HqSyT0KreOBC6oV3YaCNcHtGFZdNfJs0K3ObxOB3jel2BnkhyW3HUmbbpKvaF/2F/+AxsG/mTnLxQ8ftt593970giiaZM0kbMJCiNSis0tRKANnKdCL5V097IukKp1yqEwfj1H57Pbe+PbRz77ILtf9hxMc4xGBvsf7i3sXGNcxunynELyIYyFA9MEUxB7zzSFM3i43GW5XElUGKXmFZqytCsDLEyO928c2+JTY/UgPqRB0iBPwY3x61tjLrd8yPPeIFR3Xa/Ko41DM4rqawV8d4B63AskFKHLHYdRuxubxxgFpDGnGg/5nyVrtLGkp7hp2guAAzJiQOl/JQ4Y1/sq30NOM7GCZcofwCUdr5vziooIFdKZSc/dWhaHgA6Lb77nvbSZtU94K3qlkb2I+JIMvyvaeGQJ5FSKTUcQ/gAkB0P/65leQOcJMhJBGkdvKpsXfISpIKWnmrlZn6T3ycRbG8njurMmoBHTn5N5/S4btDGbZkUQTWu6urAEIda/bJ7Hcqs+7831WrDbpoZai2555x0V6qiNjpXuXEuuiR7/f5vdPf//RuNboIDNAgOjKQDAWkHAMU5kKBmCAJCGXJ4oNw64xqANEVSayhSmuVqz3DOWR95m/lIddGEZ4Lkwg3Ci2ejM+ll+QXhhRteEl4QGafOaR8mzISTJwmMPi8V6sb8WDPyZqjeYpQiTUCwbUp9/PI31vpPl3vcTWN9cl23SFGfgNwCut2Pqf/smn8n/c1aGk00goIccMfQVqE2rYijelABf3yTyvYWkshqd800339ZiAOk0ihRbhihigqbeaPZl9zFOgo9djn/gFZ5Eb8yvH5/0DZ9rDFfxjPo9+p+LCLwAbyF7bPfLbxbELYXzWpjjJxsxPV7qQ6IWc/DjqhAkvYQe89A5gEn5C21NuLGwwTwFR9/40EfE/zB9F3xoZAO+WBoZN5j8fJuh9Ny/ZeOIo2mRH3jIi6jS1Bcg2RXHlUIhgXuRUXUssSJ7EhhtrKLuqlVIetsJBH7kCWLMel2gHxoMtbmKZ2RCulqJziTblpEY5xlFKce29TPvbt0wBOxQ3dQH1I0e/UK8OPPQ4wOmU8wwJixLP2hM7MXMDMDM6Ghd13K1GDBIreYzaZrZNhp5GgmDWVF3RyhgXcYdVRt/K1ktavWlvWPSiAT1GkvJDGqNtNQjRl9ZnrrUWKnkxNOno+A3wEnY6rbPDxwCTWdwJr5G1pr/QDnbiTmPU2nDygO91cZ3Ctg7lTvI37TlW0txun9tJV0DeznjL1yHge6+BFK6wcgp+5pXVLaZJ5fHJM6N9axFgMg42zMNXe2tMUKv4EW9ycnzIVGd5BW975V259xOw62mDHEfqy7DCIC2Jv3wLcgFterTUUEiNm/KJIRJafCmkgI4PgqU86Nyaq/YHFR+LkqBgJYvJOkkikLzK4VdCm4y/N7R+ISxqnuY6d0SBnRUUdcOJCQGPciGYL3e0jF7GS/V43RUvtrHGUlD1/N3hZGVTXlEhWenFfMGy78E0oPNpvtulC2DKWquL8HTrtedp/SgdAOs4zsMJttXEjCNrs2E5lMy/Jmx+zthMxyORyTKcDWBWjGbLRCitzz7lJpbSQ05G0ZtR+LqkK59pqzlksgsqKWo8jAqm2qlQ1eoytL0wyBBUDYG0A22EjhtlWepykw3dXmoHTYbWidrRMEKjUW13AVFKLpVFa8qlb/UZZURxhu0KOJBI5E6n3fb66uKsduUcv/Gxl1BkP9ZoANzfHe5ll2YhK3YzwBCZcodzAHOU0VXzRw4V7fVdHAXegAPPe3RJVXpXK+4OSoelAoWa1a1TYIKVjJ7cW6F8WCBfMJDTWPXLFeRF6elR2zGSCCEq63EdbJrbFk9+DNC+VjUu7oTimbXVdsrgfqTtWEs9MCMG9YafRcx3LnDlF1+4upNJjwOuwc7Q1hU4PxWOo3PGUcl9X2xU2Z6fhqGgTCAOKctMbIgiL16urBZ6vh+Ycoxfttre9F4/iqOzsFbrzqwZs57qLM7ZAilHDuy5TRe3EdgURP4y6akzEKR0QEPxh6eE+W29sjFIpb9KnOP8R5JiNe1thAQKXSUE32liigsbda6XxShBDnPjpGzmldyY36QZe8pReOfGmYOBfjmNpKqodtll2GEWEi50mRyayZuJ2Ew7WAetPBteI2xvpxQgipwE6tcgFcj6Cg9R20FYf0adxFMExD1QVJgQzlCwfjraFgXMZapZqGdFGlg3qZG/AAaS+Vg09WbV2mT9eIFBLmVoV7r9JYsdTIeg/JZLkHJ7LYQ+Mf1ESoWX5gB/GSKMyxTS4+cZ+Lm7J0drJrO48wh9gBlVIhkojJSBMKQax/ClJIG5/IJ5JrbSvlCLEkKyzJXB+B+4KqWGZVed6BXY3cLcIOqvUuW8YmlYLcl1zdCTpEBDfs034M8MiY6n0DQiF0Ksm7kNvpfzeVcOrLq3IytWU9I3ynxX75LJUOAAnrSNgiHxeRpdx7ZrwVJWig2Ler7IPhJEo59W8uo7fjFgLuc6KoybEetkjCuPIwW412skDEL0hhHPPRMaoPAzaCim9hYRTnB1F31AjSRiGMeFVEsHrl5rDpv7UQV8XogpIqeFHNtHEeauPt8j7RhRjH4FxGVw81Nre49Lrs57odNvSlQx4CU/Zhk8l/YeSoC8zlCqbksfIvjczdRjOxAUwdDjk79Y4Ab1OMJqo3o3QoamCyhtaQF/ChgVgT40VmVa6xo+9fgeQKYqw96yqtLMEio32nFHiEgIA3lvsfSjvSsqJWZDNTWb1J6X7WJIRxX7+iIhxcw9xf+jBa/3SvwvNdeyi0utc+XUJNz5dFiGY/i3brLVbpfOFukqrTJ5aTxT/b3tL2Lq2rN/5xY1+/t+iJtIRwlLK1ns3J1OjMUoXye1Zu8NldIIIxwggMPvj5zrmIgxqh8xD9XraO4CJDOnsDSo/yhZt+bmf13eDz6MvwqzOMG5AgKm6zjFxBMJ7Xp1t4hdr1Y+vqL/zlzL726wqxQfdUtSsiw7p62DpS8kDf3gfhQv/nwLheDr+MPg++WKX9eW3ffPC3K+vyNatC8K/WoySc5cDQXUOnJuGCTBK2UdaJMGBfKNOGyz+rmzXa9WNAPtNcSk3M8k+xzzz2C+pOIyr90q9bsmAT/I38z4b6KHB3q6sdU97Gicae63ZTtYB3sOxwnTJkgE7cNOoRGjbUlX4vF7NeHx1rk4d5tXcnjth5i1qq1AkpldveHs7LERosH9abvuJ06HLYIWY2y3k83tExhyeNaCq6FFOlOofDFNZmarZXMyhVCF4eVEwz73b4biNEvUe+HyMR0mtlqln3HQiciNe1tIQ0VRFm41M0z/VCGl0y7Q/mnhVtvCdPfBPWOjDJ9OIL+3fK3z8sXZ7VaZjSU7kodwJBLtAXKJy4v+63Z3QSTg0r+wClK5Wclwez90LO9usx6nOjZ3/LKWArd6WVP7p+XZsRIxrxcJE5L0o1+M60c9CSslldqOoE4ajXR0/aFuQEdK8sV4lnlHIqXaV4MFAc4DESB1IGWUjIPKumVg+/ZLz8THTpu0g8PMqjOEi4bnXMI5Nmd+jdqIbclZ+d51PosFmRslRDC8MJ9ztcXFMInvHlKqArleW92r3GU94mBbYNyHhKXDy8U6dOnHnxmfyR8w27febnTZmK2KxPDpHUq5+nDgOell3+rk3rb64+HdiBbAaSYfnWxtrrTs/aM6ETKlao2kuiJdsbbg1r8nB0YCecRV3jKXZ61d3o59yY9sbKU77lS0Ygm3Zgb667wXvXn42WRKodKpYTOlvrbw7pN04EmbKv/5b2YujNXjz+d+wp3YbfXcXZkkO6g9xUlMmJVMG0lPpSPLv4M8CnNVvRxo0pgCEI9FnvLd59Q46/YOAj8K1jFpvsIdTppfAoJb559hyK0hDO0Pj1E5eqOEcq8vdThz+MkycZ8Qhpu2jz55cLJJHoJqE/wCbc71b2TAxZ11YoD4+tyvhtzlAnIb1jRkNjpSswM62AUdPjI1KmulLF/UjcRe7BM2GAt8cs6uT/bgeDYZ/L70lGsp9XqtwMrOaY/TXMs+CWdix7gMGR0NrARWAI+BGG0BIk3I8gYdGwADUgZ5Jq4iFZ3NftPq4ik7jm4tS3IhkLJxaayEnjlh854TwL+6Zz888p1nr3XsDFqedWFjBeJ1zxO5OLGXPGmLkrL5s0eh/iWyaVSXXq8mem95S0DhUFqNXOpKmzZxz+oYXKda+CekjSGz9/sBXWmd243w7TXtRJygXveC+eBDak0E8twa5SUVj9pqjHMOgZByV9hBBBPZTifr4NZNdrYoDmLL6ICE3O6Ye9TjmwoIexaHDYtohPVf0fvteLsvLVwvcGaCCMlNgZ/UHrXqu1i6BmplEx8m95pPYh1k6bG1QMONSOFe6r2dWZ9JqFIUKcUSoAXYLYahqu8B6VHk8Sy/ESYWaj5exbKvXcl+PfUIi9v7JRtYRQCIJAJCIaBhJcYLw5SLJJAKhE1nht/gnQgjBhrgmwciD7cng6UaUcxI28tc1tascGG1AGkJu2YRgOU8c3Gf2onOM+sIdSNG9JQd/Y16Ns3AqSAkCEvJXThEATbXKIKYxRzAUcLFgahVP2QyHtkZGbgloC1TmrrtYix2vur+7M2ZL75Uo4+6kGZZQfxqBCrI9Doai04KktiWEDOmCrOgbbXDRxrVTh5brqXQuUOGEDM1zOz3xzOozRwoCrpduTPkqiRpw/Lh1abD3quUdUxXFlmKwLZVbDFQ1ZmU89QYcZMtXnuy/sdyej9ehqi/kWNP0biiLsdUXp1jZjDMB1ehj/fkuUjZWRqko3e+SQdZbU0OWkNxjGBK8BEv6ljpbfJ8rOAxdjixKG81IS9gJPMITnGJn5D2ZSHn0w4pKhqPz+vHcgZmcEy8Nro36ugfNV5+2CGFKZeGnEo554ycaI44Q5/fCjNZtBLdZjhzLIxX9A0IsjwppWUC+8kKtLxBdvKYoXWc66Yb0YhrYmr1dKXaNJpK4VC93qAnDmqvUPhbTNl8cOUHi5JkY49eHOnHjoETatGgzOBP1uNdW+knIBMx7fbWOigUwHVxRAos0sqVJ6mBjKLrzrZhPjy4+tT0ThxP7fHAnFFN18az3XqKozjYOh+lDQKoHBmLCYDRtwtYnL2tY/R5ni2uh2xjqcoWEvYs+hIKv6G/Fh7FXgurAEACrADT3VwvbQi2m9iRLWLYPktIAAMjSA4UnqqadDVxEM5iwMNdFBRJUy1Uq3saInw8fATVERUug/PtXEvP0eNqEqbmOfKmrUiB0pgTyaaqRQJavPFK1APOb4FUWiGUkXsCojTmPda0UAdoqtsAT5qVdnfkypLScWqBTIpjnEhipo/Izf5pwBvGJGZUTCLVERffHqUOTo9p5rbze6drjpd5camECFXdym/WCgBDAib5r3iU06MUjlZszK1ZipXCDFC/MnvshzYz9DPz+PSBEIzpX1zLADRYZW8hzfNfNp00zN+25pYtKMaNK4L7sWVYqvEgVkXxkDPWVFpbr7HDzzqW5mjecVW65HcJQIqMNxUh3rN35a358wn0zI2uk6B92wV1xxUofqj8JglY8qpBFhH42pebHXL0mFITcOKMMjjg1lBYsOXDRoAk+OYqHhH38SjcaNnpcIgsb3RYaFHt6fKefvu2DSBpy43kRNYoUd5yb0jiAA5noIT5DjmtSe+UGUtXoUcDNWaSis3MQJtfZFsfRnMRQRuCHe+5413Y40pJGvrX69IqXhHqipWsKOZJk8lGzU306yrZEfzz0zqt6nPz/ia85XtdsJpYUYVBYTLQn4b+u0ohgptJUmKcp4e3o3YD/T5Hhor2nmPj+wZ5ddqN9XJT+owfLL8w9GoTO3/OLACU2zzfbWqXZkffH/9veEHiDNmLQ5J3pwbtx9rmMrYB5exQHRFOhEUKfoFqiFt1pFV4syuUheIAuk1Y57ipMqZ2H2pSZMIDpkgVHtcVcTK8pZDL460QDOP+S3+xeQ5wKWL/R3l5/Nh622JFE0WV6a1WHSv1+/u2w2WDqzdef5va7YoTcHDhpKy+fCFfM7yi8dMrGmeQiammxzc6dgNDNTzTHejs2VxVp4SwrNjkgUtZXiS7dqf20reb/9BQHeDikV8PtsJGcqHKd0Rw9sPZSZKF4gUYhUYVqa3TJyB9iLSumBULFUClKzb20snZmZXgU6XrGStqTQP7q8I3rpMFpesXxCM5c+I8UIajxqUaP4iQBlKld7bvNjYTD00QcRIRJxt48/GvrwYwKlm/rUYlFBCTtnrKcNM7r1jDg9rdt5nj+K7UwBSDFSupnoWa/fbTHExjOzr+wmqWyc1p14sCwB7gDPBvIV02Vuz0PqSxjHBBs1QlekNIU+ayx70mGy/L+X9rmj36g+bk7A+qM3I51bc8ZN3JO1Oy2O3RJM9FWzf22gRxP82Qk6u7bNjKw+7WwK9EBPWM+OsvaMuzkUoXH13NnKNpauc44lcQxASqe1Fpsg9klapkuJDmemJhHBSxn2idhFIRnRJL6w6LxoLbLNBXZ+li15SKW0pHlxTyLLX1XXM21m3g2taLhKpyVCQyQxQ2xmqdF+lSA9Y/pQjtInrirlSU1bx5sc7sD8iktBfVuwS8AmNT3wuvJZdzoWbfIbqfJpFmJ8N4IuCmX6T0JUEMpmL6eb7AlxfkV/HvMOLDAZ7ycSEZKjMQYjdFGMvQQuZpsWJcqh26na01c316luLYzJrEWphZURaGHWX7v494kTktAOCI76n2L+Rx9/8YSMjFYX1Byneuy1U/Fb6cTLzbEr+r5s6tMcPptZ+zGHg5iPPqfdtAvQdCEEzgqhwC++sf8veFZjXTiPmOsxkjakH2pjneD7xZEV5s9lHKBcsdVLLxxu3NhQOI0ZIK/MJUq/hLxycSBFdDvdFAPSGxkVS1ghLF9FWHvWg+PlHdZZlp5DCE+c9patZiWaYwaRgHKK4Jc10Qz19VPFVjwJS7zNHpUu8WY8IckIUyaOx8CxHmMP741QnXDPg38XcDeAQidRiJqxQuqSY9zDpbR851Z0R2IPZUa8EY5+o+OJG2RpqLEKthzJ2z2+W8m5XtKCd5M32YUGAy4zSxm3U4gX7b5lBDyc1w4bErdzizxW7eR6HoLYTDpCyVFakgOd1avnh58uiWhsAQx4pCP4+KPPK7cr/qF88hMPTc+s/5Rb6WdUrqqQoMAqzY7jyeGjWSEQ6uBmGYWDXqFreHDdYOAWN6qX+mVsDmL8zFbf4uVjNnROSkRhv+VTIzqc9g9re0Xc3oMpgIiXY9m0O/4Nuru2Ke871QbHRBZ7rdftLTa7JOwJADtkBqE7VXSI87oBocSZ1LbxXDJnY2jmA3HaEwBXtpo4sB1juUwc6RPY+iyg6Ej95uwXudZvnABwEmJSAfgCumqw0beaEaBIAByLraFTcogQLYx++TcejlZpUntnGF1AgE5gxhy55kJ52pJEQuieOHMHRCKKG1ZSeqgEWbF9c/InUWfZpe3ILJSaYW05tAbQwNq6bJDm9JG8JusOuXK7piiAosgcLZgq4NNZDIwMhJRZ1RVF7gJxL21paOj2NjyC62rA3NMscELjsnYDxVKr7ggi2gsVJqui7ESzt7QCMX9ixUqZDwz8OiEQDuUks0PofpJyik9ebyJDcGLnI2rpSjOfbbQvarINI8YBXXaju/1mz4bcmUUlFvlka9fqpnpuKgELjF1nd888Yau3+Hv75VdPt2+t72uZsTojb7ahPVyumLc/Nqmo97h5dyfjuI1vH2eIHBX1s+Ld9YHdHoqnI/OJ6Go5EC9TvuCT6DHkCN3gxBgfu8Mz01+R5XVJbvp4Lmo3O4k/u4wdtvwFMxBL2fWYy52Hw/aJ0utoOSxIp1o+i2JopLimQHKh0KEoKre8vs40TuQFwdwW2AKOQfKWlFWJ4gxsK5xc1I8CSQKpqeUk6qIFgbK8ChwrZ2odLeo++KiUigeU9WPHF0qhFr04oaUkP1PstVvr2x2bBb7Mdzuy2hvdXTd7JA5pKiluhWnb6x+fmg9e7fIujHRtFblfR7RCbZ+1u6zcYxB7cvK5v2NFdtNsazvm46t1zDcKHXs+B87Gug50fiuoR4Whpmwf1t68EsZFxu1cBPgkeAxws7gpcAd5/5byP0giocEeOvR/2WIA5rMWiI+KlO14iZz04k796FIfXf6/9xbRNgYXgovDSfzZ+HJ4aTT3FqFMzBbJFeHnWFKyod0ARGcCR3hmDh8B3mcLCOGBAmBMYsc7HVR5kQ2XyUDqTOIDbi4pX06WIGJVczltjmuIJ7hP8vi3d4MOvJdHSw5bISOwCzm8lTM75bXd3imzpeUXE0t5sYhZM29HPy6G0AnEwncEOTXGConA+aO00yGF7tgJ4F+G3CO4NBKB2grUblh6fkkRAxKsdYLHBYhVDLWrRDnwi1iXTbkaqibraiewrzvBaRyV3t8JysbUT1OJpiajh8BBumeZUWhEWaDlVbQkQQwf7ACWPkFe+lmaJKO8DE1d/ekVxOc3c5/7lQKCc13d4qEOArSOeHl18LbkNpIqJsUwXm6npDiOPMR6Kp7SeYx9quwKsMv0qqoBoa19e6zexp4IsUvYHOF+c2Lh830xKvKVRaJK9shsi8E4YYGiNnoNpkwV5+fdKbaZMrdLbVh5nOn6yuFcU+e8B/6BE2CFHCV7t08v7WYnGpotBWoZljAjeJWQHOwQuGn7PBF/5nGxRQAMR3QVCNDH2gBDX2Bo54XvE4MKAX0EDG7EZDARDzpcNjTHIrVg6mX7E84OfTK9HllyZagqEOelLqCTVQDV1v1KN/vLl+W3jmC+SmUuDghxFAyq4rqTdwwVPnDSSVuypsvtb2WvEyL+qLCOEbUd87R8I9eoR437+qUOLLIB63l4OS2ldKTYrMAp3Ky2AMmpFSovWoSXZIVjU8kmA2+TZFRkNZRctfin3JedRThhfn97PbuzsRnLFUE81X2iqtR70rRJvd7GnIt1XGJdKi5y/nmyXnFS2JG9avfp/PnFarMpt1mVirWQB9KDxzAHR2M7fyfcuCpOQK0NFo+3sqgpA1c0EcjJJ1W9MLq/Jq3qk+XAi7xLhFkFODf8IdWmTIrNdpNGhSlRKpXUjv2Q0iAaz4QEIV9oaCXeOUUg7udzQNooA4oaELMBBINFf1hZY6dfVZGWJjWYqFWpd2aURfGSc++XjYPPxl7dVNE9Jisbv3TVtqbjGoxG6rmg/oomOpE7oR+DLJDlEXJ/+jMxNxSleldxtUJ7Ahm9XL0ikCBc1cHOQOMBDnJ3YYYkQgdR5ap2mPcOIxRlxeXASsI71xcIkBFNKELyvUrDK3M0d2LrhFT9gaVpBuIK6hW4k7DmBNFbw8FnKEHu7rBwLI3oAR1jvzA1N0eifxTM3lbihP/aonGMue2KvCuetKR2a9TmWXAb4i9kEzkLMSH4whYoGJu280VP4V9EkmHtOfRgo8DSlx8ckbPwwnDQAU50HPcn7UnrqWlfckrfxwwNaSv3lDKntmx/ur10rKCxrZNEjGT+aPkwuL7JeVwicJFH8uzdfTRQyDQJbjpjfF13tAMKMEtFo1HwTRSqXWBrneOu8ZN13o+uyx+qTux0XRegCiGYo4iBe8p3nSeyUOl8ja+2bdW+OldvhXhU1ltug8YGetcRCwEXBGYsIWZYuKeMtiO693pSRZfSgskV81skD6hJ+zEeEgUCIk/KL4M0MCpChi9mg6c1w1Uce5BCAntKaHl6DCQhKNSo459yc6Fm9SiupskVjRzUsdXBtcL+0SqGrN5qrAn95N4DlGS/GkFu6kwlBvupGeoaRmGtuWidz1wYFo77J28wajIaiwT50nAJbbZXDL90xEuKsG+0vhSkt6DAMccXLyL0LJJpwHbwjxnjLUmKxM3J2kvHzmeoQ0I6Ip4o6G2gY988e8XiFY50YVGs5CL5ivDap1/99BTezQhTO6Lf7rLViVy0+xYEyOFnVXtUj5J6H7yvVNpudFhxFpnc/ELH3WYqrC8N0nvLb2an0WcXMGm/njDDdUsKSZtcmZNNDnMOBq5cDem0/dPtWRzOD6Z1BTqiVSOBs6zbvMn9nEajn5625DLkKS6Fycrk21lVDF+cM2uJvcy8G0ramyNKQ2LVgFZp84afccW7udwq5YWDVYbRjelQcnqaErDo+Im8mZNp4maJUC1Eq3x+KbXeWi3AZnvcR3i5OPQhc2J1sptrkD5Z+JDhj9siW5w1PqFVQ6iXOvhaJ70zh7UYgBpw0GNbXXeRs/ijPCQhDhYVg0TBNstseiTNajwiCRJHsMn2REeIiokCuJIr/9U43yZzx2LYWjnUBKnmRb/ITNarNwu5DYwX4qH/dcctmVxXzOwmqQCUrneNmchvIq+gi45eG3hoLIGqVWkjdJprT8z4FDlD2KmtYB3HYjV2Up+qN9bg1GmtVLE0Ku0RYwFRCTXt9JJRLeCVmkZVVB948N4aGLNvvBg4B24SCSLGB/a7XLCwpxkvQaLNhyiLP4OM6DDToJ4kC7zK8vV6SnNSrry7K3EjUqjjFRgWtOSwBNDEqoB0MjwgAUG8cMmIzkahDzsd0yvXJKK/1bh8NFKqu4sxyHHX9aoNy7c6hG58k61OzT+3YnnHJZ/YqdlXEXSvjrqZTUxZQZmapcTqr0bxxIHmDe08ZEhN5xYPF8CQUxRFeLp2vVQry+9cWWBslchhf/rqL8HEwu7147/2kcBg54HzmgcupCPRuWu/+lKbObfODp1TzcCOff5R2DN4YG0tHTiwBw81l/37Vt+eoByZAnkOX4tJQh/e+ByNceEc6E9qHr0hwVa4F9Qnyci69/CA+OZbcTogXvJm6ih89zijBzI0y6BFdugne4Wqakd0/vi5HnElKLTmVHqYLdqW64L167bP2hO15XbGXZzQeGoChj3/hH7IDYStrbHvkA6tCGDpMoNhaR54PrmmfagTvJstwwBeygVjgD3JUjuuSsZU5MtbG9rx4k/kc4m5MgfAl4qFbP7njozwBTmZJO+d/oeeKDavzqR6NF2kyBZqV2V61PHFOj1cStNZFNm6f5z19f3i2xUKOhNu7Gs/vx3Xaf0dPSj5jJDW+uS2VvfXfo5QkI7UajywzY3KYgNVb8na4CWH/4wVCeCbVY5WDJF8oPZi6xNP8yOQsBy/L/Gyr80pQ8Pmq4oiy1BWYV8YB/qlV5TCsJzimMPBz1sgJveWa2K4Ji8yhjBUyuqB7n6szQNdUMBrMedSoW4XbFYIoYC07ndGhk/U4H0Dwj3BUenWACbUKU5wZRa2arle1SqyzrMdG1/IOc/I5qdo8S7XC9VQiEQ/saBrlAexB2P0jRCidGqx8iaKCBzqIYyCVdE/RtbIiue99lJZkUsv4XL29Ph8wP0aP0SU2GdH5OflV+5luSePoelYdluZraw2vBhxFmJcq0WvrqZHOO9E+zQ5S0OvyVn2h1hvhuIjceLDlebLqrcr8Xwe2RJ64IlBMR1d3rqgDRQdLnmg0vn5ttbbSZdudnOZJ7EdITSSxuPtyzTGRoqvIFq5DYVotOlQU+BkCW0wuRiqKtTLPq5OqBbbJY1Hg+R44kL/0LKhOezNK2IhE0eQ0d62EAtYuVkiy8xj2E4x9YzAvMIT8riA/0kJQ1c4MydfIyUe64rOzYNCk3wZg6ynCu3JAiyGfdf+p/gE+pflcfX+mzXoNEhDOoO4ap6rGkLpI8SIFs9H86omOQ3Bqf9gJj5uxrvwsUZ25h+FfZUsX8AsQwSuH91blxfzwwqVkWq31K2HzwTmvdy+Z6j/AaHKodwq46W4h9kSB4etKW8BTcNqvqZAMXGSsgQrQzLmCQUBsb2BAR1BRHeFU42IIY5Hfh+KBfJeeVhVK90oXykSh0H1WiCmuHvDftBAzcpnHWyFlXEC+u+kt/nM0bHduB9YLCf7eZMKrCop0eSU6WHjJqq5DbL8dKXFhrpPSzcyIu+WCVHXHfFJFemNwF8Yis8IuwJY+2Ly6dn2Ke08dAthw79F07KncXQ2x3MVb7x16Gyu54RDkQ2utBMu3jx1UOaKaWhefR7dT1hztEfkrFNtqxFScDuk+ISpjTJKDTWYI5rnGLHgVGuMKS2sd+amCoc3Lfhzmv5MOCu+DXB+y67zjmBiUhhO6TAGBm5nyAiD5/UX0CFbqf9wsBriNdAMCiwu+5aeNF9wdq37PA8V/jIKb91Utu69RclnyO2S8M6eAC5TJKGVGK2yepC5CP3Ll/TSWVp03Pr03GfT/on48rVsPMis/nElixIS3eJP4YxNZjcflVPhvLU/r5WZUuh1qngBzJObajd4s8xssF2HwZyrn156HscYtt0yd4+F0+GVno45zjPjOrwOXhtBVQKj4QpWSqGiaiFjjzQZJUPlKQnVmBAvk2a0n31Zt2ypy7C/eCZ+Zq/r2C1NCd/bCttLVaAP966y4PbBjxMDhDl34EDBYTgnux9HxY6u+Yi3j8pIumHhGOL59qeaN/LwLh4rRsYTRIhe6zOdY2SvVeS3Jmx85cJOzshdzCydusQzdIYyVJHsFxxdACdM/3UfTmxKHhg0Aix5iNvcX7YOxOk13nE5hWmzJvu7W9V3ZlHi5CO850dfPx1IR1KY+nlz2GMCG0DjDh/uwoRkLGu8JFPigI6H4H8YM6hpxueWSjxKWnywFzt9+Bm1ekz+Umkn1leW+pwmvgE2CBiBg5bVrxzcfo8ng41Ko5VC0yUNbfb3fCRLewT4ReCj7lAB7r6Frav6poQev0yvVqw8HndczbG2eBtKq+fwXb7kC6JY86fWTM2319yJh9xJZJwckwTfnrgXMxOScQSPgn9fAYfZ8ERrH2JgB/6+2xWl5SIRv5p5zpB2NvKIKZhbGMny0j1gJ/D3Nv1q8W6wg3EL6qunY8rm8469u0zAXKbAxFdbchNFudUJjsmQsOUXD1KQylvoCcQbaFw32zxzXXfsYAY6AdV5zm5mJlYuVAuWQl7DCRVtVWfmV3RFS970KG/I6oPC31Ml2G4ruveWnr9WvbnMnIb8acXaZle56EbT4yszo2wh1IqDYHh77BFSS+r1ZvvIlfr9dIIRoYFVV6pK51bPOaHhasK0HgghBdoFOO5yj37Vy4zqefqVtrCMcK2nLXGlpzu6TDaPlDMp4/1ILwBOHqjHkOzH8kvqqLYdClg53VGR0j3duFVUirolh+jrNAHTM+DEvnx5dmyUqW8lQpCkTtKyZGYiDvGo1lhRNvwqnI6Ee0eSx4/Eu9JR2uVgbDAwMlrD22NVnTrVb30dmpiE/r7IQ5Zr0o4CdC+I/B3bBTADdcMCW083yoAJ1yAMEADvVtHsZ7NcIzSAMmgjT79gAFCuirWyrTdsLNvDH9QFBRwPD58vwjiFFH3Y2dFDh6xcfmsShe4R3Sqwpx96933ufa4Px0ozbiBWl8N0bJ92pnilwOZ2hp04+ZYfEUz47fCubhuyRJZE1bVUxJZqNKWxFXcNEMhQrtlSa4u0KNreYaZtqytNaeOTstK6BGuZsiC5yZgDc1DTHX5kFp2trNCT73Qos4oaADDtg91n59yXXlMNVJcjcALv54e2H8KRixgDI46RAWyEBmAXDGgj8GxIz9Ksgw2CmjaLukPsDuHscdBa+5whCMJWSYnVLrPPjZ63PX77XLVr33ptgTA3yJhPyskh5RuD+E0Reg0ICSo4wACGoSZ+cySiiRdkuvxRMQXxNjd7IT4ni5OLZGVnIeaiG/IzBXLfqPnt4+W5IfGdQeApE8G/1N+JAtRlBZZ/NnX2X4r7ReatbmmxAus//6h9YqwyWsxPF6Q0SUl8zCZ1xFoYwAQboHwYgFeTnNTYkLhUgg92P0atpfb1eIXvwQ+Ln9CY1zmYuM6kPWnmHvQFdq8tW7hEZ338C6OzV6+40TIUvEvADJQB8w+HeO0wOEsDeNjOR06sSoDPKTpAmCjfx0IACh0HugAAwxhoBX+B0JnZSAACAITDq+JxbhgUyKMgw3Zgf0Rvk5mKcBAo8wGu3eM0BsqgjfvhWXS2svBAsGFCHXJgtGZkRKOAEKiVBd+vp5Y2JdUnJNQnNf1lgECGsvVfj53B3xtP9lmsE7J+2Q3tapyLJeetVmc6gMu7I1br+b5z8o2hCcsoK7jjjOgixXScNi7uNmZdrRW3cSquKiP/30LlvHKQp/Dd5r47D5RH5ikLD84tSZFbjSqgaefNi6vQzG8Fl9ri5mkq5oPWtkv/Is2gDaZ6LHMHVvBPxR2NOPcxM/gxBWWgIJlzKg+Eb+hP6U3ZZpB9oe42YMp9MRng2j0G32Fg74x+ajpzaJ+CMZobeS4XdD+ncA07hdZ3S2c+HxuPr1rRv9Ol+wOle/f//la8eIcB/SgsA527B7ssvjw31zuOTS68Kr4at1+MT98t5v+S6/vLj63ZX+zzzgsy1a7BjbqgVJkmrSHmCxtFGrhfKqTChKcr0R3z33/YKB1T5msi3Z9v3FLzfZ8RqK6G6PQ35O3X37fOtd/gLgrgsHmun13NsOdkt4rlOpOn5CBEmwaTk9L94enhQ+lDgemB+0PVRSpVUZ3KwobrLKrhOlXRM/cKAwC4MVMJI1MVlRYgrpDRywIlf4yB2MMktMt7Cx+A3agbHqiiFsTkq1T5MQXUqu8QoYAGOtA94yoqQW5ZDgqiP/0BsfAQDGBqWouypERs7kAJLqceyg8+XXpvTq4yRxGZE5n3EYUFMpStP37MVLhEyS6dTEpOcoXpQOkMsDotlmOf1zKutS3AtfuBe9KsC345T67bJU+Tp/6x67uM/keEAqaIbt5LOpaDdXSAOTL348hcxQEoEoCWuBntgC7YkbAzfmfCjnHZ/kBjwJBxKMAYuH9rtT1Kdx1a7ViNVVixEQsWPpiI7o04eOEPlsQHUYF9RYvKui38gEP88QNH8DktBudUo5QynuFSTGV8/hoWCm6JcKXCfKmXA/h1ldUMC0NewTDNljNtTPncyt8huhUJXEalOTLSPAcBg3MeL6d+FAXoonkJyY2JiY3JMWHFefN9XX6qn5VtlcY4/Rw5BxHgPcGa8A7nh29no943WDe80QivasIrgo/sQOJZ+4p1oS9WZ3ed3c0Fc6udc2vasBZYebw/IMCJMhDnzz97wj7CgD2F7gQbdfZi/aFL63D8MAksNQOTIu9VxeyvjzK3PmDrJ0beAtEyus/PYfJBhHOfA1v5g89O2G8d6+09day6gsK80mjrPQIQ9Xu6ardebLVZ+2UXf6L1NTT0IQDpv8/1RsMR/AiG5MRHaQUegdbi3u9HAFBVRnanCeW+cuf/ip1ehAz6pJmbFyX0cTu3OUe4g0Udn5TA8LS4NymNVNTalCX4xROReggZ8LXG6TVpueJrb9Zo/uRyUC73T03HkmtmcWxarJ5u5Q746A4T+oUGX8PCol3ng52pSYJ734mGmLO+UyzufQ6EWLggHKgTzhcaAhyeRd03FwBilLAT7VhkR/N11RjfwbdjDoSJ8lEm4hjI/LewjznGkiiEjB2YI9EpQSAwWoMwo7QEYqurXQ6o33U3nosc2ln8SvvNs7fl6MPRAOHdlgJ0PX2ajwLarE0DjBhz2OYYlAcpWcVXQ/5U//RuAxjsPl3okc99/wc+fjvr/X/1r4dYD4mdbJ8Z9tY+QWiQHnCd49z3CZBf9/By9OqnWtZE0z8oiE5ymn4eDwgjn+APY0Q8ouZd+u2OcccYNo5AXNIRQL7kQ/+0w27YYTma9Q4rR1L5qVF5/DxBPBgjBoRfCiwvoiLNuZEVBjyPSqcjIlfy6rhEKbXTniEMPx4CUP9fJg//F/qf20g4/eiSPw8FAJwFEHAq4UjfTY7EeM8FkkBmuP43yTrRDAAateMIC5m2J8PtMR0bi6vUqG37wOIrYxlZMosbdsNCG3VwTmhmWE4J3zYq3Da9Rmz8khZ60P87xEYVwm7g9l3vfrc9DuwtfbxLPrnPa+Nk7JuPM4+CNnA08/GbsZMbvfZNync9Lt0LSmpz9IsQdGG2/jOTWIgii8rxGiwgYDg68Xbe+zycIHBkEImn9InO5vFuHfmr4Kl78HhabLRyVzCYAXsk70sPpaRXKaHtWgBmgEOu3qAoo2VN8RqLXyuod2D1xbGLMUmVkXMXz4305VM9NAaMwwxk89lwRrutvvRKqTXbVnq8tG5LZxfi7Heis0iXsw8xLYYZMIhJfQHMaHq+ta70cqYtAUpPlNra5/chfc6HoVlU+CBAdfVx+ke/2X5zGezTz1Aw+45hJ1wohNgQCHXlz7XsG6dbBH4krXQ4bs/YuFK017i9Np+i9f9bHfXryAaAuuj4ND6M2VXpk9hdGDYVtaPMrsEMB0FRTIOivnf9BzilgNhtJ+wDdviwbMHic3czOx90ZLQV3QbF1gMXfHwY0d0yUWBM6ZKcJVcDUgOiegTs6IBoDhawPkDLiVLl+lECJ9zDOL+2PciLZAb7zQWorplwfNDvn9hmX2vWynu+HiuSPPkap+1m/U2bU8P3TFrh4XtvZZa12Tf2H79BHNdOYTdv1V7hbv8RX6FK4tOMlsiTn4i5C86ILEYaP0m1Av9xO/dK7S0n5sAANkubhUdoAJkPHnJHDo45kKPYFIYNznA2ASzhOPPvvaK9P4l+ekf0zt9j9PLan3bw09XQ8IU+vj4vff4LSLSG39pPXY6t8Grnrq2ivc2vRC/FPuLYWz7/0/LFqOfjHSfKGK9gnv0RDGCyXywR+rMPgRF85qUvJF9csjMFDOGnO/CGQzgiQFiIYBGGUrrjCAA8nbkEwkLee2xrxztJ49A0v/Nn5ba9x1FR4QJ3Itw9k/EqUW6GqMEJvHi8djwltLD1OLOWebw1aip5lgcf6fdfPIuxcX4Jt/ISWADYq7Vr7Ali9+0xqaTwQhu2Rw1GadYFWql149Zt1jLjEtgkS+teUj4En6vMCuyTgA/smP3+Df1DJD5id8wkTP78Ygpd/1Z9f/OAfRP+iZQbIQCwWhCRdEU5E30vLtAPnk7T3Iib1ga74bZTaZHzQ3YbuzWuTYQQtlXzqbC4nraegcSVemQuooLQuJm2Ge3OZohCXAb+/MngrvqyUb5GMH0o1vPtrZYD6dv47w9pqF+vqQbYiTNhvBZFvnlLeUHwG+ni3Dmxf5W0PIUEH4N6n0VnkdnL/ES8mwwhkk7XTBm+Llpu0T1U59ItDw1OA8NaX+9E+4HYg760KbZek1CaVHHXgIcM5W1YalghWbBJuQXrxWO6U+RtCS2V492WKSr0H+Iw2XKPo8c6TYz50aw+pG/d+tVzomA1vG593wjatR7Hx3Gu/3lTCNhtXiCrqMGXtFYoSxVqc2zuWQMeMpTWd4/PvorapCIs4TzQ1n8x1aN7AGf8fFR49GfhIULQsXJ4r2gvQQ/gpuMoMBgp8a2Tm14l28mvDICcKL2SEqXETa8Tq7/UR7rUviqHSXdF87kB1q9f1clZdIS0IhqBzJg3BQMYhNjnCkCbdsHAxT1sqNesjXvvrVvvMKi4Ud9RJlLXAErG4o6iu8Px52Kb4OaJf24ePb3l9uaYbeH98qUL7sHv3Pv5VVxLu4LVnrCwwrEmoqOqU14VviCVnUoCfX4zD/z6/rgmVi6uki+qUi7xdzJM8960VSxZnFXzAXBTm8s0JWp1iaZsUlOmLilRl2kmS2felALryOik3WGfn8h2NQ8n2StkIAGOolO2YGRi/opeFii5bx03fe6CN/RZ5I3YRgcRCmh8EkUFA/NLPUexUQIECEZ85tidQ4EsTnKtsBueTiFgu3/G78N/SA7wZL52RqOA+qSmtxiT50V2DPtKfYvoEt9wBrb6TN98Bs9XQi863uohbFAqHxpSA154MTMtlAMOI17MtRDwJ4wImG3hxc1xVCmglsXEPsC+W1dd2pt495pvxf8Nkd5uGZP4bQOEi+B7DgzcxYVLEwAfJKzcvePD8bGxwfsPQyMG61KK8fKpy9XzrnmM+X1nVmOM8EiJVC2nyaVAdY0OW+OzKA5fb2c+pv+fyYKsAGLKvNT//FPfQ1UvWBBDhiiyt9WbYkriJTTpTxckPek8nMAx2zBmPZXDwxgRxDKxgl4PAWzqtl4s+K/FqssEf4yP/QwO6oU3ILMAe2FeUoOjlWi6KZCdGom32jMoPXLUiTq7+lDGVuTsR4a8ulAC/J8EyBJPsY+BOPu6ZgNslP42HXtIJ8DRTg8jroO1cE1FcBefqKvBV1zfnwXj56mdRkxYivPh+EYT2EN8bOKLPnuBO9x+Jo5tMCoNSdogrSExKt0gPaNdgFXtVhSbVUiEOEis4MbYzLsjqkatKD7HetY+Vt9N9jDQpBuIZn6r158L6pdNEKj32mR5oxqaY8BR8S5PyUEk2ZbqimkMGxu2T+PTVvs4Me6xyopSHx5qxwk2mRDjI2iEnR4ZQ/y0UY7zQgZ0Puw/odde+jF6/Ju1Ac39E6WZsBTOLI3fweaAtTuvfa74/EAYfxPvR048zMdwT8KDpKutjpAG/u2HobXzP8wyO5EGWukem72XQItKUU0AG9UKMAjbTTATNn6U77xQGNxyZGJg1R7UHZv9esptpebqAVXs23kGFziVVXeGc38h1eVICEAaiAlpcSs2vXc3gRZlB2hQKaoVlEtsxg0fiaN5cJm0W44k7i44W44mqz7WZu6XtJxMuRHUH3SeQl5HTcj6g85RHPJ5H4dBTuQi+4OIW9SuLifqrK3dt89CLKPpu/Ly+pzmNPj0qduLzf0tp6XtFZ1QRJApor1pL2Bfv5oaP18YnJ3EaO+bsDahv46qjdYK+2sloqzZFHste/Lu3XPRE2Ai6BwawJgFKJoiO8QTnV+XT7J3gofeU1O/Dm5yp1Xt5Pq7A54+UCofPA1w+3N3VqW5Nw3+uuZGZpY+oonv3fvYMAXxpinvBsdzzY69bC4ni7rzPkzNmv/JiQ/JlcczTrDtc9Rz22X2edFz7f9snqpdjoSnCNEtcKemidW5RDw68DQNON5O5W53p40ND7MhEzCnGzL8j9PeYqFuQT0RJomFEALx2C94Yey7MT6muozzC7c9Tq6iD1vkv6gXU/RiVYlVQPPwA86bxyq2ybU5zt7enYKdfX1IScqZ1Mg5EIxl2zvMol29q3fQhzDQPuCetOUK9QHHqW/8aRP5MmxPNr+6VCbzhEfzBv6XXm1+YmP4imx/vkE9/gNundI6JYcKI90ylolltGVgty+7n7XnbdEy6ywK0I9Y/XcP5kf/DdlY34PujHtdw9ubGASYZxfwPVcJQEwSK0UgF/72rthH7CLiEfcYH8BjdEYqHe/N75zn7BKEpD8LjZ7b+ICYN7z+yhDmiA4a8Jv66/2BsvNekB+p7ZbYnIabhFmizQAAeRfM4lttJD/IdwzOnczPCUxDPtbsxYrVQTWdTZ8bPnuVGbgRt/TqM8PnTZ01QepibK/m4zQkJzBvoKLs3AqgCf1oukuupYHqyu18xerfWFkYb+Ub9cXFfD4AbKmcahrZ5qS9T9yvGV61246Z1wNB9nY1tKib7rfTr5b+4c+1R6FFO4brAL/DVFX4Eumes3/hewnLrz2JiDr11rmbHk/+l/jviXKOu6NPR/YE1G4qn1NUJGi1yYU5mS37VvMrx9d9GME1pJh8SwW6yMzoBeHpheY3U3et7S7tdFYcBKOvqV2eFk+nJy3As5+aSO33VHyE2lzwoRpGJeX6TBA44cJcwGGd8IGZfpSF9s+4naiTRVq5p1ddXKNZ/E8orXimOn1exc5TB99aeCsi9OSGBQkHxAtD8ozQHsmjqRC+NbUMz8QymqLSmvxrWQUZhs/kvHXzu5ZA/ideCYpG6PMPz9g3jzWtSnl9f2V+66KxlL6hANrroEZFKrnG9v/6ZvSzGx/6pnLnt3U3Ut2w78rdaltFaeXyLGlDK5YeKz3ypZ/QbPKde4u8jrLhhVCWlgs+e/1B+PWDXuPbj6d5ZKEm6PWrS3t+Svnnww8+2prF6fntQjopcen2O4nJP4KaTktgajYpnd0UW5H4l/eVD3L8ctjzNz6cw9lhzDH/9M+Jb9wgtogeacF43cxPJ+4PmyiEA2Zw/wugOEZgN/L5ps0iwxixugOYIGEjiLzEoDj33xeApobu9VNI7etgkXXE1WDvIx6nRwVXvw75yXsMY64vn19+eHmBT8E78tyM3EPm0Y/B6Hp8lH5s9Lxp9BoIvRQXmqoLqRrK8LDrQ8N0iKeTATgf1vX+GX7l7Rx6nR6qP9+0L2Ti/a47JzPKfUEGhAO7rjQWK9b73XpcXfc18/nJ9NY5tzse8vYsTm9eZ7z2w9sHQko4IT4n5FhZWVz1jh8LeAWJeY+Ytc7FTacbWNou9aLgAmvNohoYoAzUjc5WMuBZZBa1n4vLzwTXxXRpZRqjNwxg+rrFTc5a5qPEPF4BCP2FOwtT/IG01lojT6aRDDsDvZNrHm94nFG3ZcGWgc6NlRsxLNP9KnWDXpubnvJ2QaDODbHbDVgrsrbfvq15rRBt/BD74B2RYkbz+PH2rMygg/UHbVubNAyM0aTZaptOpnhbFH9zv/PrTNhEyL16Pkk8NJdsGRKT+PX3QibCQIiaHleu0ZTHJSRXhoAMdsc8sV6cngtBMIPWQQM0KpQjMYjTOuZmsEBo8ryEuNjyMs2RNPpXb2bEhJbmzQnpfM+zrtnnpjeFoW2vzL0ItqjzVZER2dkKoLuFvzVPF9eYCJFUxUZQjixNtLjQ9Au0j4Ey4NcdyvDgNLk8zSxPTQvmBVTkKXMUihxl3hzcHKyb9/JYaKZkQz05uZc2PmeBPpzB+fiOWJrGiWtTTgyBVwIel0QUhaTK5am5BlQw97FrY1x5rKasRVNermk5UQC9rHmIgdtopsRP86w4muoa5Q4BJxxTKubmFRUUIDChrpqVdyFgJx2dnAV5S4tS+csyMEUZfOOzvNjxwYt5VKeDbUSXo90Zg/Whit0efqS1EDu0M8QrKkrVhkmLUIAOogAdTu4f9uEHYtE8qa8WapRqf2AJrWgJM01ZRLuGFIa2dgZ/NGAftIMHu9de1F5cm7DJnKKWHYmPPyJTm1M2laAAGfnIVoGNhkYQp3P/ls+3OoBwEMDlu7Blyb4GQ23jBQpZ0VnUZXfgDsJCWImBPwdgrhHXKNFjise/uHb/2otu3n1N0ONB/OvMaBGvfmZQ1vbHjzUzCtE7y7DlG0WK15rbt7efX/6gWXyYOWTDQ2rxBRUXnrLf+tqB/WwXt68u5v/w/12yj/vIvitybXvzuY3YRt4zy7PAaP6zX8N/xXh04Ma8fmMC6p7bUpKcTDP7c0zSnzpPgxifGPDX++JpMNeXIidJWb8ePv9rmjv0+cHpg89VAwAAAObte/XmdhSgEhGFzlU7GSZ5mEd4ZlB0qjOdS+f4JenCLoiC/5TrQqjUPgiCwPBzhIXgNuZCmcEH3sAwrMexWYO9mCaAGfDAaKKa/+6AXQOkBsKWwA/hZDKJJLP4PKH6ImcRX6qIVMYZnC9ynz0u443Hr6rFBcKoSTGFVcWdzwYAAGhjBMOwOi9GclbwIQRYMSlb9ZBiIAd0+FHEk1HJJ/b/xX1hNEKK3wI8SV44pC19MiF1fPRpjeTGk5I5IVQIIpMCftMMFAblrPNcCzcMxGZ+J6LyldQ/Ghf/uSBtwZ9iLFqZ3yA2m1i48OBBsuh9PsBqamajZykbKAOY44xoxmcty35zJ/a1Il4VH3koUq/SK/YXhraY5ocKyL+rZoPPB7wUTPORl/yX7Xh/mHKZYpky7qbEUoNHABwnjMMb1SeNIAn0LV+MEWMCorGIRVv+AKMBGKcBxG6N0Vy0EUfmi5baYQBjU/j3/n1csFPyuDujhJWwYNZU1NFV5IRy3QKW4Y6/MQFgFNCOgPc0b0UE64TA5oBS34O0jjAyPvoPNcew8cHxj70wuqJFuljzW0ny3lN5RSylhTlWv1Sa+9XfXtnQEyyZj/l0IpWSSm4XYr/itWXpC0k3t1pSjaQ6MoC3JIxd9zm1e3LtryG3/vuE/kkzqX91aMGeBtrzzSG9z0L/Dks3aqtDKUmMI4r1Jd7iC415MimpJVWaxHpG+mb7ddenP/ISVJ4ymSysAIQEy4JDw6RhSplEvJLlDwvO9gxtUylkihDQ8RWrlKCvD8XotfoYtfvx2vhVhQJbtFYdJAg9l38eCZAL5QjfX8xZMT9MvSxmmToMdGX8SSaJ+4LW1NT0SnWCtXMnC36ErZbW1sjWiPo8iuczHr6w+8ZGh009creblgE+xgcDJp9scK5XvxlIvCQgLzrtn2Xx3mR+g1at1jbwrY7Pu7dxt7kZ/423t+P2ugjbcWJvgNgk2Ldgbp2lqTGgmd+Um9sY2BBYz5LUb5Bsc+4BBi+4ODtn507WamlvAVfPrT2JavX9Txz4ghTjJ2NPoGyvv7/KlS6tH7MwlUWsvFN7k0t+0yyWtijo3KNSpFpSze2WvFi6xeuKHeniVkoqq8s9wyTeIMNGWjvZTb3kd+UT+if/vetP3VMQuvo+8qw3ZLMnSxYmk8k8VQm8Hz91Xd/+DekZK0ma2kKSyvIaL4i9S9YrjjCSKKHVWmP6wpCgEIVModo21HNWAPuzVoolMmWYNCw0WBYMxB4Zc/IicyIU2cqc8v8UagAezio0/5YrcxTZORF5keWYOU2eGpS9PHuaF8SXPc7OWf5Hmtw8GpwGMpQdFj1YsWC4wYMsTW6MxZuT/s/4nPLdRwzpye6M+l/Dkd2H9cb/MUwhm157K73dm5Sb3OHo601gINyhh4JOo+qwdW1t5SiOMFGcse8Jq/8M7wy7/5t9DNykuv6sIwlhiyQ5TBc222H3sGzMYeYe4TuC5WlQqHtaMFBd5vyN/c0b4B3gI+NvkvA9Q1rJpzJvbq3wLdvfncKtKqnCz1bwny99ffcO19WBxG/ZEShAWQPbXd3rGVUnl42fBACcHF92Mn0KH8ddU8n52Ebs4pS0MdvIeEfH+IhtLC1lcWwRr0sasMNfTmgNPWzKKb+8KoJjZitQzJ6KoVjFI/VTzvc4byBjbv3bZiGigmKwdhg+LvP7HdOjowgrmGkV1GXIJg9jCNQh99NybyXfyk36OyfAigtwsOmnUOclEkOgp52phhk0x8uTdNAY2O+oZn38B8sdcANmzxRu2rYNA071t7ZelP3k+HSkn2uJLvnzi2KCxW5E1nSUd3Jn4Y98LtvXAOKD68T1D2yJX8hyf3aW3kZnx7muk1S2hxi4a2I2S1ffm42ezc93RzmW9wGwVpRbxUSYqOPGEZ13p6PTeUduOJCmq8brdLa6Rx2SV5FD8A9DjhAm//th9/xNnImwmxc/XKir9fLweeYNSpYGmgTw5fjLNIFJQLssoEJLsiNqGKNxpTbeOKOdRCpF2xbqaot3H9XkFKAXcO02p8lfzgvW7TKZ1pKbpzGXdmR8JKkxKbFhqQG/yy8Xf1qwQiZMFcUL4iuEEnZrlSfsY0kUJIp0wqCq5R+vrhf3nsn992iRtkkkPqUvPkxGKk1v/AzK3vrli95dIlYKS7xLsEvM0oUv6Eea66ct+2o6FF81Dg9etAam5KTsydbl6OB/u6527ROujF/5fYM9MUX4tjCpohuMzz3I5xZeOYZf0OKZbZXjlfKHKcx0AT9GSkpVyozyzKJA2fMVBWUGpbtNLQPsyu7jp1gle6BxN1jUW/Aj5IcU6nxac395ZjRH/s42pz/79kFzXn7eerKQLl6EEtJOAF1vyg34FhfZRPi3AbntGNEXFqk3hyhtSgfRJ2zLkGxEmFgN1fBSQVItdCtNVjOyv6EoWZogTpAdNiHNMjkR7OeAEIcAcUB+jmA5IUOaHYe7cvcMbYaWlCR6XzgiGBYdFH0kGBGeFWmSaDOJNkGjoMhnxkcJvTkzNH/ca5enynOX17nHXxefE3TxA08YUyk7vDQ95tzcJM8dlJ6zGq+3qFrjAkNSeq6W+lZPmVD71PDY9lHHiIPnerPgQTMuYbUFqJbRZreHYFaZMFERCVCVHV8fhF2zLBQ2Vv67tFImTOMlihLN3jBl5XK2TGjFRBgvWSiZU7k5TfpwADKO79CRrKKg4aBhkbhBHXP+qGPlVhkzgSl7Z0vvVikzhRnUWOksvFK0P9dr7PCy7+rDYowJxu+MKUbN+9cXXpcVaZZpyhWG5vIE0R5RcgeQl+5k1onrmE/+poDqlikqSlEIfCCUQyiG4QLc7dJh+chLG58gvqEwh2OpqDX0QGKLeljGr28QE47I6qCkWoFP10C7q59k2YQ0OYZBWkGMMwfYw8f4Y/ZhOCdwsC/zZwAXYcf5Pjmdn8aizHQseC/Kd4XrC39uu2AUMPYuDTW14jmach2p9Xz4SJNHp/59KvkycN7cIJOMwfTdWz4GYvMj7Ha3kbA5lqA5M2y4DxneaKZgxUSDq7/X0jS9lOEeCeulQWNfYDnyED7PHtcDc8m7Y2cYGHTLBfftBH0iH1heBLGCMOSmq/bFsqsHAAfCN2saO8BfFjNGqrzo2FTEGH9MddmOPWQ77q91d3Xhs/LynKgzL79v97per+WdmsiKbCxzDMcBox7kG3AEazLEePaSv+EFqEjBnQbYoMM6Oc71fQZY84XmK509M+bLGMUz/Zc07an1kJeamTaxjWk2N5dm89TVY0D+Y2s8YdOHE+l6AMj6Ny/94MtLaYQIZmMKz/f/f9/XkAHQWCa6WRQovSI7WH3E4/eTLigpIiX6O7Xj4HULRImcImx4SGpJIQ4nc+kDN92Mg7/4CYZqV2m8d27UY8Zwgd/FrFn3vbt0ruvyFnlJasgWEDkJIEhsgXzMy5VmT5+9LGC5u689R3HH7D1rYAN13fl3fz0dcQcKsqraF0TbVKb6B5nnd1R9kzNHZZAZ8bmsq3F6WaqqlJxJqZiRfv2lmNS60+2zwBDpBQu/NdQ36PfMnhhUprfRUlJ3fqOC4Eh1P4jNryUIAkdBNC9GUxg2MTI8jN3YTthRsGSguUzmE5j72hcMTob6DGZmPN8PG7aLa1y2+AOMGOT+x6Hg3C8KqQIO7E9NV1SQL8CIw6SM4he/iQyzaO9+dNSOJjyLNBxwokHj3waBpvJfi2H17sZuaI6fsKJq6tLEs70auXf7LZsUXpB66GBq22WZLcnUbMrTi7b/w70dePrM6vej0fi7IiLEXEEM99Yc6uWCJ3hEYPC6nOyZsi2aGk8ffkbWhtJ09p7Hb/j4bs1eB7AXMAMF6Czqptl1e980tUesxwtJRiYjiuFKBvmrT/PL7HbyQrHYv82KeVkc9q+HWNh51HEWqytkzdfv13EBnO/zZfUaoJLUDiRvr/7SZxnM4C7Kj5U1wV1slfzNnD7KTYbxwpKQVNxG1G1JDSmRb7ns4tLv3nPPMhf9BOFGTL9xp7dmVe2QwO+Xgwz3zYG7AOjTJz5kUQBkuX7Qof4uOiUiCXKd/N3jiDo4uyIdorC6JywaAMia9//935fXmMIkoJRGnu8Pl97UA+UW2izlAVG3G4UQB9q5kCyF5gog9LL14wcUUHmf6L8AHd1J/Fr5xy5gBVrLnwPcuANvt/tNA/fQO6XWbX+FQ9NwiW27Lw9RN24YgsL/2mYtDRJz7TWgd5W0O4TfflrNCn+62moabOm36G7D0AaThgKj8/tP98CIaxAwJCOO+5qAwfzC/vPn+yfu5892MYsyme+gAIlHZtvxEa1+XuS+UralH+TfBCNNX7+/pvpLn3wYcOvo60hIF+vIYplQi2t1gsqrV9BpGqCN0Fyx+sWLXZKndWTO0vsDWA03vn//6NYX+K+0ZoN1AwohG8YCw+fju1+zcazwPtb4mTjUDgCwO8+jqBsTzS43u0aoWOg72WASTPqm0ql1FO9XVNfzwvsnZHgUO27nspYWqaTvn7L+48f6nza3hmEIE33af+x4/+Yef5VpLr25d+BVZO/8I23hlDE3zwDRY3gxdCicEhghTRejlJH2XzawUQrwVfMgYUSEqZ1+et0yJZapM7X6n/8+ZGfIcEg/6J3oJJvU9WmLYg4fjuN6kan+flJixIm6PTLUixc/rSyIzFMozdG5Z5VmRXZOZK6yghRPYyCfb0qNLDDIdfLg1NC0HcGpuW+YzaQ/QNAtzbB9TDg+bO/V/UBryKCuVcXoA4xCC6OYYY3TYYbhxGKGha7TpmMCy84sDw+PnHU7z2bnHQ+qK9Tn6+rYTezPMg2FujxWvV9TUJ2w6NeJoQQbJZ72QAdcZxGATiMAwVGACPgCBBqHkOmql3UUnoUbi/MrciaN45tPqmmpjTCos1Tv0i29/rTA5LoIo+uc+ZV29rxbq7sU7H5oXGTQL1pnhhfp1w0bFq2DJh2Hu92NoJP79b9BjltNYcYwTJiIsAyvsKEwgsy9NGRYtUF1QLaF3oSPmZMbaY5UxFODbzInWoR1u3BFP+I3smN2yf7eBa/1n5KtnaWqWkcRzxz/7tAnH8aobR2NwcqaxiNhASuw9ix72p5frp6vWlMSWwY1y2pqc3iFIleRnR1pVpYBuBSYI7MUiqzKA2WUtZ/iMTKLOqy1Unx5FJ/G211/uD8IbmG4xB6wG7075qANxAZXx7GVgyFQ6sKTM4bnJGyxPWJuNQ3Qyd//ZwDkPmdzb2Qn3ZBO5KSeQ1jvF2f76L03iw8ZPu0NdR1sM4dTeblln07PfS9lW8bFTGG+uNIXqKWPa8+mhhYu28esZe5rDS1sRwFCIEy0/V7DiHU4jUizEhjh0rpI9vD2cBDsouQYzpFu5JhuUNkj73YFV4r+vNPzqQoKm+FWK/OTmqsMnYWHkMNsqnJNMvpH9TZOg7FaH98+s21L/k/kQDQV9Ux89hQE67NNjGUZFG/6q9aHHMNmjuFh6yu6N2VZhokBvs9Pzf8erHvA72qK40l83LsXXlN3H3Uc6fbG02nkiOOoTwdWa/Mv9KtJMxlAyM3jj4VfxL2x5XNuEDXZiyX2WkEo81bNd/pMBX5k6bWYp+Y7v/QIHp5kxMc6ttxEZCmUyFDGJzU3dBn3tAwBzptsAiFb6Iz13fElxMDcwCBenWj9utczuqaSG5KSGpYagpDRD2ia7Wdy/hjdR/4/6qSDM8YHB424a8R48EH1mZAN6n7021ta7s58Xl7+XM7RBOABGn+5e+RH/81ZRsCuF701MTNo67to4NufBob2eULRkGdffl8opArPLzTw07cD0XcjU9K+k6MB1RW6KGlaRGZWkYJLZQAAsDFCqFtll7LeE7wHAOQABwxRirdzwEI2RTSZJJJcOcE74ndHJ113XxoWmm4IDQt6npX1Q8YPZVk/BPnH+qtpAGHQ0lh97ORtE+n3pet0d/x00yik0bCiWJ5ekCcOaUuePFM5vvvFHvPZy9KKEDIVZfMPJwdtPoiEOvM6qaQoErUztzOEFJ10dYYiByNwmhuZpSkPW1HYjwQKLvtYZm7/uT227Wj1GWpQ8uRUc0JWfcZy8xnMSmhuOJTAzjBXR7RWRWSa2QmH1l/xPxd6Pux86LmQ8WsBvFbRJT7i2F0oQLy5FnHqu4AXo/J5TQuql4IgCU0cRyt5nqTp+eV/PJVFvLXVjjP+QS7pwCiNxiQJHfg0OaXlm+/upanXYMpQqDOl8aOkr1gFRr/3JFCg/M+fKlm50r0JtswEXta4XO7j/CM8Drxk1Bsz+2G9u9gwNQUUNPmmpeBL0vDFv+N67mnYICUDXv/cgDsIc7cfLM4KpvK4H33ZRe0z2Jnx61+U1m2rifWQMydPBXLTu5fJ4/o82u9VDebsfoUTuF1j9RiwO/A2N0h0OW6BlJG5OZHl2f1wPUADt6W3lImCr+kk2mwxrto7MMoKjbt5+qA8J4PlZP32wKCvJ1RM41evK9MwYylPL/V1s2qsqoLo6AKVddSAhwxl69FH3+rEhdXxlVptZXz1UwMeMpStnz5uh4lG+45WBLaMBl5vCay4Ph+O9meaLYSdM59OaHYeSmBnmqsiWqsjMrjLauC87xLgjne3HyzJDPbkccr7btVxdzvJ28uhPdrX/ouKxfUN/sWZxbpFJxbVRtfd6l6UXzfiJHf++efHknM210meWSrzEmAguUZP4sxwf+HOcLy5D7jivnUecGEXZXn67wl6hn9N0fq+ufMNQ6/szjdO1Jmf76QZ+i5eaHvSYF58jyFo4ToISo1tLA891jV+M/kptmSU0klhX1mcExOGb0k7jSO/UuqzeE2nvl+2MN8NYABnIqB+sP9TIRMGesc3Kfy7JPnR1DyT5zVuC9eb5EFK5mWT/L3Igd70bLmHB8l/SBcRzT7k9x49+Cuj78l1B5YWScJNt1J/I/54tt9/aL0LxECwzLrhgQ+/7+B3MnK9h4eXN1ke7E8lkwPJWSSOL9cj3JuHkiiaymwvyQ42pYj2AK1oBHWRmN/8Jzgi4rfUW6ZwSdHSA+tOGn2/Cqa/53eIHRGtG/IneXjIs+negWQvf1I2L5nkQfLmtnCvmTw/7Rzy33/0p+MPaJQi9g5JtlelhkJCed7hHlxfDimLHEgmU/2D5WRvLw+PevJ3soN9fJ8HG6wyGIoB/6/4z9cD9kxNb2nTp1FFGpcuilBAA5007DHj6k9PsU4u+JqDvzUjGM99vv/K00V4DVMlFqiw6rYcBCfVHGkJ5FKHabP4YsI59Cxmt6e2DDPRQXgH6fsGB7c0jm1FJlvDfuYD57+fAYPOA5ZvK3yA6QDuj2AEICY8L8/bWp8l9//SgQFMLbxcuXVRlqmCfqZePuU1TA3kHmmpSWq9XQUVSizUYTBg/LqrdAbnA5s79VFy+vuvekiXvPtWe4x+3lu7InSjkCmNsP0eve/30D9Cw22rK91emjQ3NOSrwnjeG4o3eCDRUTu4Z9g+Nk6Mna+y3oeJ7qpPLPYfUSo0N4maV3a5IR5gU7XK0w/DbEbqttS1kRyOzaVuo64JFWwmX6h50iKfuLTCF1V9vrsQ6HERCxmxj0D/JWRbu3yd9kfUvvqY/8PBgd1nORNhE5y/tv8rJm5ODN/0/2toIpxc5YHwsz/s+Uzu8KPBs9gYu5d5mtnLHpsiUE8mlemJqp/NSApkRR8b8CUzzgaBUZg5BAD5Dfn5neENC2FUp/O5rLBi8rmfI6Jz3KfpI938CHYr+UkGrTxOFs9TE+RBAl/JDA/j7bixHdg0iP2MFHOtIyOzc+vleYVUmAFfocqz6reG5x1jXo0yESJ8gBEj7EEHcfIWfusor9ABfH+/+wXrLOuLu66+O4zd38vgv5s59qSpD3EaDBnHrhrw5HteEhMpuwn0nXCiC9q7kP5zSvtyw8+1yYQ6eE49PFTUfagE+Tm7fDGrQVIv6ZQ44TMJZCvFs8vDSg4nW8leXRQrcE+G7q+ah902JUx8+YFl7Bev+3xSdvRLjy/85pTRftkxdD0+qyy8IqJ5YY16XgxmxUsaSyPywnKyNewFntuvL8mLzQ4s7Fgulf3l+ZDeNvP2XaRYyQk2TfHqIp/XV2UP0UpWvaRB4pR0gjPAtDzZUJ+inj0XzELyiqNWDoiy3Q8ymldkND9wz8zmvhk/p/4HiJ4z9WXGwnTpJuCLrHr00q9dK5r3/R8hqdlf7NmSkdjKMAjThVahZWisi0Shgf0je0fQTj2+44urtcDToz2eBkUXuq5iHdqlQJ8efXIxr+tf479dCqDG5acXV2H3ErO49jVnaPXofbEZuV9C4rydYRVbHsw3qouSVqp6VBukb77zHxzICdupq3Q02WdvO15euhq0NR/5tnmlZexZ8Fd/wmQKxSO4jOYlZoRmcRLDKF4IWRfLyvXuOedFLUH/74he+cArqXA58R3LBv7bXdD6rnhtYdvBiawPGO+iAKW3FLSdupl9R/cDWe0RTlaTKbCH3kPoofbgVAS5o3g/tb1Gd0e0Yw6NRP9akKi8pXSnAxqIijRnfwXU4VxlDAHZLSaIfwDgPvulXw+4zq4UqvRj9zo2dE70vfL3OlM9+bjq9+n2urQwVV379O9Vjyerz3j5v+q74WQps3ZYThrwpzrK+n4uv+QIRBKXW6SwKccREPJ3uQSJ+P2771BjQEbuUt60l+b2oP/zT0XnXzGBoe96vpycJv/+dcyjoeihRzFf/06ennzp+W5oYMxfFPWxyDCBExMBau0tqVdgBhT+nZkZRo4dcxBTON6ugUkYtz/uDEj0qdoa42bu27rMzLcqtZN6wVbOFj3v68rY/kz1Z+PbnM3GuJq4ZAhoawooe6Kdv+ZFpsmNgiK5UZGtPPwiZA+lIF5Nc8Ng8zZ4luuGt4GttOdcN23bFtjNnYW3bIEZoO7jmG3pp05GZmVFKsrqy5NuZK8uPR2eTk7BnvlnX/tVO2j/p3J3RsSatenb+bqO+Hk+vp98ld/X3X9/M0uwloq4UrW6NK6ipVldHlNsi81rN5I6QCU/bU0+q+SKSr4opeUkoi4tY+VxlK3vNpXFVoRpAGGrfWii2ndYHbimAuM76TBNRWncGt22mkaZcXH64uY1QJtfflmI/Agi53acDm/x21d6kmQkPZLJHhlJpJOlGz1awk93zI30ivjK1JMvkesqkE2P+4pdpPn8ImHJl3rNJzr1Q2Ex30JqeRVa/dCzQieXgBWSZl9PoE4HVxna//qEg9TTR2Do5XG+m/0FtDT4Fisq4stZyTPmmGNsvPI0EOnX9PWuibYCBUNztfFnv2gbUDDiLnfxt3vDX303dRUGrF18x8c8L+39Xguv4Vn7bhes9qgDVw90/p5defkCWP1J8YNd7P+egpdRZDSa6uWK1a5dSF35G2utTTYol2tif1u4SXtg5twDkzI1zOZX6JdDKaKm+hUE/L/Ns8AXUpdPkDeHLiNsWVMXi/jiug9yQUbGkqAt1G61qbAmI787fBP1/4mMssh+ox5A98np1OUmac/lt9bvnOvL8FNlXH264Yp2k983VWlH5LdX3VNkxz76R7z0xWephfcqruekcLMCywU1qk2VZIZZUkX68bB4cuW3nXbm6XwwtBEwDAz465MAgiR+wvYcTw+ve/4PfCCJiE8v/Mnngf99n1kxexV/7q7PgfBbZol4LqUwcnRJyDzHEhB/Qu/xak17x03/Ak7+uVxOHvtemq6/571+tD8l7XWu0JYncvfxFwQsaGprHl7AaxMUFAiqf9NT6lj0IF8SwZ4qjPymOSTPsQQkXNZ7vOq0d9z0K/DPP5fHyWU/0+n6A1hoV1e0+4akE376T0Dtw8frGa1FZ3dV6KekVLX4Qk2qiTKKGriGW9trm0Cjdju4+87RfVCvuD9UlL+s60Oll7ZECp74DxP6/V0+QeHemcdIfOlFI4MeoDILgbuHDDx6uOEFqgcCgmlWOGwmL6naIl/ofsQBRoBz5ZlKERyswiSkBBUq5gCDmvgIFGk5NQLGwBFkB4w1Lce32OMjPRzJfDxyRyC8fVSx5Vhf9baYxB3eORaMgSE/pYmeAEoiO4TVGo/6fmBQlHAcdMYHgc5JH66NjWYliAiwb0wjj5bkKDFiAWJEBazEkyYOBz3UTgJQL6GhBAUENuoJb+nzRf0KAQNXmHnD4v5rQYCxiEgN3dIHdqAdxAAHpDasidu9yfzKh6V5JmnT0ojLgEg8wgEdR3tBkeArunz+kkMIm3svAl8ASB4yfPR+ANwAXM8GD7pxPxAq7YeAN8jfTwKeoNnwGA2uMcgweHA/BdDAqEGFwSf7fUAElJFPA37Q28BD7CF7x4MB6O2HABsk7icBOigzPHDQYZBhcON+CuCCowYVBr/e7wNsYHY9GgiGFgI9cIA6UAUWbgfWAjGoBovfZROoAQtAG6iHcQPAm0fMVMRgzQHQCarGwUin0OpVXRZp2R2AQlAHGsAi0AKq8ov6Hssn4OGELKI2UIdGh8LR8WKgAkoQDQAG80OkUkZ7lk28LYBF02t0fDXSAGJAGPV1tB44ZqM1CeMDiNaBFm0sOPB2Y6MZjJrRAygBwKgv7uhsiFm4sJ6dGT8YCBGW1e9uGQOgMfipdhAPonSr+oC5UmCpVUUbFvWukQ12AWzqMnxG7qDADf4ZuQgYTkRMQkpGTkFJhSo16ljY/Pjj4EKgAgTi4RMQEhGTkJIJIhcsRKgw4SIoRFKKEk0lhppGrDhaGFy8BImSJEuRCoZAYXAEEoXGYHF4ApFEplBpdAazCsDmcHl8gVAklkhlcoVSpdZodXqD0WS2WG12h9Pl9nh5+/j6AUAQGAKFwRFIFBqDxeEJRBKZQqXRGUwWu+cAh8vjC4QisUQanY1coVSpNVqd3mA0mS1Wm93hTOqc2+P1+YEQjKAYTpAUzbA8vkAoEks4qUyuUKrUGq1ObzCazBarze5wutwer89PGRdSaWPZjuv5T8XGszqYYJelkMBMOW1N1QQFFNcyNLxBIdVlQITb6LhvWQTHNZX/dl43N1ZqqUy5xjfrVqb25VEEXNN0Y2vFEbdwuUwhfBk6t0lpXrdmP5EseHShifh6jHJfeSek/6U+EbBgzj044QjEm0CVZhceYZepMNwkJjmX9Tu23AiDDkgGB+6urMEAMqw6oms4Wgmgb1JLNjy1DCgvA4hfBrTC5t/3+jjUzY2C8MKDlqnasm5gnCFdY+5la49t35gP6I8CAXbeu+SxxnW0TIL0XlIRjLuT+sVFGoNEHQydCToOzwr83PLvZcKYiVrvEJKZpnZs7ndY+ZUXwgkbcOKeyPfL6AYfwVTNHMmPOR9hgIrYUdneMaXiV1FshBAyw6VJYMAiRRfWYiu4K1jXktlJGO0FXXZT/m0oHTE+O516CB98UCpy1YBR/n4qx7ByF04C+UcIFrEyqxjNd2kMORcqiTACwX3TyDF5UjgHRMkg61q2HEDfEbwWDLnRZXwY2HZ/h+FYhn4488WtuEdIiRUOtzFsAxE2k+SmISUGxoDJmAFXs2CgY4ME2kLKY+UK63lGB9gT2DBt8O7e//IY35IJsTLTOAlmMhZyBgLjYY7lJy/d7K4wkKy0RL4lzwxcMjrAHnS+AFjGnBHcMSALyvChbM2CyaKbEgMUDG5iYUL2ZM7MzlD0EYBhZ1LYIctfBpDI0Gc1JGH/UQ1C58xID8AyNi0Lo6wcAzeOhMocsiPpAtxgu6z620C4vOeifjyJFwdzKzPgU2ZQMIRoZiuxo8xGGmKWJLzKqIPno8HwKCE4GqMtBdDAoWdbjqkvIM1BV03C0uhcmIYGGqj8ZYACzbi+xSdBiJsx3+jexq+jyukcZY1Rjckfc9gLJ15QVYhpkyCeeeRuXlCsUI5n9WdKE5BoplmJo77JKoeO01l1w0Bq8r5wT+9salZosLKG4AGzZCSffegO6F/iM8IaXWvybTMCNNDKg4LAvQyVR5eCSaBNgooW5quWY2kwxQirMj2ZOyNkNHMk1KoAnDVKUKmoOQlkHokjWZABIDWjQ0wZx1pebPJyBxOu20pQpqFHa37EnWYAq80I5FqRxE5Q6yUGcNYsHBY8aGJO9OGxYNbpRtcT0rYCNIewdAJMFhMicdLK8EiNrfna5OVGktnON67OuYG0nvZkP15OlG05P1BAe25nWUvIjNpp5aBvFSjNgVtQHqxu7kGLZZvxJWLZfY21NtZ+5MttqFb4uqmhYB7tiBwwYl+3CVsK0rSqJspDqsPldaFqTri8/rNZGyFvLMmW0ql8yDwIq91fEjqAaRwrDQKCYyxoY3foM0aMlEJwjzrwoMuRjBsWFqjFVX5t5Tu1aQAAAAA=') format('woff2'),url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff?t=1694918397022) format('woff')}.van-icon__image{display:block;width:1em;height:1em;object-fit:contain}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

var _info = _interopRequireDefault(__webpack_require__(1384));

// Utils
// Components
var _createNamespace = (0, _utils.createNamespace)('icon'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function isImage(name) {
  return name ? name.indexOf('/') !== -1 : false;
} // compatible with legacy usage, should be removed in next major version


var LEGACY_MAP = {
  medel: 'medal',
  'medel-o': 'medal-o',
  'calender-o': 'calendar-o'
};

function correctName(name) {
  return name && LEGACY_MAP[name] || name;
}

function Icon(h, props, slots, ctx) {
  var _props$badge;

  var name = correctName(props.name);
  var imageIcon = isImage(name);

  if (false) {}

  return h(props.tag, (0, _babelHelperVueJsxMergeProps.default)([{
    "class": [props.classPrefix, imageIcon ? '' : props.classPrefix + "-" + name],
    "style": {
      color: props.color,
      fontSize: (0, _utils.addUnit)(props.size)
    }
  }, (0, _functional.inherit)(ctx, true)]), [slots.default && slots.default(), imageIcon && h("img", {
    "class": bem('image'),
    "attrs": {
      "src": name
    }
  }), h(_info.default, {
    "attrs": {
      "dot": props.dot,
      "info": (_props$badge = props.badge) != null ? _props$badge : props.info
    }
  })]);
}

Icon.props = {
  dot: Boolean,
  name: String,
  size: [Number, String],
  // @deprecated
  // should be removed in next major version
  info: [Number, String],
  badge: [Number, String],
  color: String,
  tag: {
    type: String,
    default: 'i'
  },
  classPrefix: {
    type: String,
    default: bem()
  }
};

var _default = createComponent(Icon);

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.inherit = inherit;
exports.emit = emit;
exports.mount = mount;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _vue = _interopRequireDefault(__webpack_require__(22));

var inheritKey = ['ref', 'key', 'style', 'class', 'attrs', 'refInFor', 'nativeOn', 'directives', 'staticClass', 'staticStyle'];
var mapInheritKey = {
  nativeOn: 'on'
}; // inherit partial context, map nativeOn to on

function inherit(context, inheritListeners) {
  var result = inheritKey.reduce(function (obj, key) {
    if (context.data[key]) {
      obj[mapInheritKey[key] || key] = context.data[key];
    }

    return obj;
  }, {});

  if (inheritListeners) {
    result.on = result.on || {};
    (0, _extends2.default)(result.on, context.data.on);
  }

  return result;
} // emit event


function emit(context, eventName) {
  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
    args[_key - 2] = arguments[_key];
  }

  var listeners = context.listeners[eventName];

  if (listeners) {
    if (Array.isArray(listeners)) {
      listeners.forEach(function (listener) {
        listener.apply(void 0, args);
      });
    } else {
      listeners.apply(void 0, args);
    }
  }
} // mount functional component


function mount(Component, data) {
  var instance = new _vue.default({
    el: document.createElement('div'),
    props: Component.props,
    render: function render(h) {
      return h(Component, (0, _extends2.default)({
        props: this.$props
      }, data));
    }
  });
  document.body.appendChild(instance.$el);
  return instance;
}function _extends() {
  return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
    for (var e = 1; e < arguments.length; e++) {
      var t = arguments[e];
      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
    }
    return n;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
}
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

// Utils
var _createNamespace = (0, _utils.createNamespace)('info'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function Info(h, props, slots, ctx) {
  var dot = props.dot,
      info = props.info;
  var showInfo = (0, _utils.isDef)(info) && info !== '';

  if (!dot && !showInfo) {
    return;
  }

  return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
    "class": bem({
      dot: dot
    })
  }, (0, _functional.inherit)(ctx, true)]), [dot ? '' : props.info]);
}

Info.props = {
  dot: Boolean,
  info: [Number, String]
};

var _default = createComponent(Info);

exports.default = _default;__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);__webpack_require__(26);
__webpack_require__(74);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1936);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("73479558", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-loading{position:relative;color:#c8c9cc;font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:30px;max-width:100%;height:30px;max-height:100%;vertical-align:middle;-webkit-animation:van-rotate .8s linear infinite;animation:van-rotate .8s linear infinite}.van-loading__spinner--spinner{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.van-loading__spinner--spinner i{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__spinner--spinner i::before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:' '}.van-loading__spinner--circular{-webkit-animation-duration:2s;animation-duration:2s}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{-webkit-animation:van-circular 1.5s ease-in-out infinite;animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:8px;color:#969799;font-size:14px;vertical-align:middle}.van-loading--vertical{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.van-loading--vertical .van-loading__text{margin:8px 0 0}@-webkit-keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}100%{stroke-dasharray:90,150;stroke-dashoffset:-120}}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}100%{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__spinner--spinner i:nth-of-type(1){-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.van-loading__spinner--spinner i:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.van-loading__spinner--spinner i:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.van-loading__spinner--spinner i:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.van-loading__spinner--spinner i:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.van-loading__spinner--spinner i:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.van-loading__spinner--spinner i:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.van-loading__spinner--spinner i:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.van-loading__spinner--spinner i:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.van-loading__spinner--spinner i:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.van-loading__spinner--spinner i:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.van-loading__spinner--spinner i:nth-of-type(12){-webkit-transform:rotate(360deg);transform:rotate(360deg);opacity:.3125}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/loading/index.css"],"names":[],"mappings":"AAAA,aAAa,kBAAkB,cAAc,YAAY,qBAAqB,CAAC,sBAAsB,kBAAkB,qBAAqB,WAAW,eAAe,YAAY,gBAAgB,sBAAsB,iDAAiD,wCAAwC,CAAC,+BAA+B,4CAA4C,mCAAmC,CAAC,iCAAiC,kBAAkB,MAAM,OAAO,WAAW,WAAW,CAAC,yCAAyC,cAAc,UAAU,WAAW,cAAc,8BAA8B,kBAAkB,WAAW,CAAC,gCAAgC,8BAA8B,qBAAqB,CAAC,uBAAuB,cAAc,WAAW,WAAW,CAAC,8BAA8B,yDAAyD,iDAAiD,oBAAoB,eAAe,oBAAoB,CAAC,mBAAmB,qBAAqB,gBAAgB,cAAc,eAAe,qBAAqB,CAAC,uBAAuB,oBAAoB,qBAAqB,aAAa,4BAA4B,6BAA6B,8BAA8B,sBAAsB,yBAAyB,2BAA2B,kBAAkB,CAAC,0CAA0C,cAAc,CAAC,gCAAgC,GAAG,uBAAuB,mBAAmB,CAAC,IAAI,wBAAwB,qBAAqB,CAAC,KAAK,wBAAwB,sBAAsB,CAAC,CAAC,wBAAwB,GAAG,uBAAuB,mBAAmB,CAAC,IAAI,wBAAwB,qBAAqB,CAAC,KAAK,wBAAwB,sBAAsB,CAAC,CAAC,gDAAgD,gCAAgC,wBAAwB,SAAS,CAAC,gDAAgD,gCAAgC,wBAAwB,aAAa,CAAC,gDAAgD,gCAAgC,wBAAwB,YAAY,CAAC,gDAAgD,iCAAiC,yBAAyB,aAAa,CAAC,gDAAgD,iCAAiC,yBAAyB,WAAW,CAAC,gDAAgD,iCAAiC,yBAAyB,aAAa,CAAC,gDAAgD,iCAAiC,yBAAyB,YAAY,CAAC,gDAAgD,iCAAiC,yBAAyB,aAAa,CAAC,gDAAgD,iCAAiC,yBAAyB,UAAU,CAAC,iDAAiD,iCAAiC,yBAAyB,aAAa,CAAC,iDAAiD,iCAAiC,yBAAyB,YAAY,CAAC,iDAAiD,iCAAiC,yBAAyB,aAAa,CAAC","file":"index.css","sourcesContent":[".van-loading{position:relative;color:#c8c9cc;font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:30px;max-width:100%;height:30px;max-height:100%;vertical-align:middle;-webkit-animation:van-rotate .8s linear infinite;animation:van-rotate .8s linear infinite}.van-loading__spinner--spinner{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.van-loading__spinner--spinner i{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__spinner--spinner i::before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:' '}.van-loading__spinner--circular{-webkit-animation-duration:2s;animation-duration:2s}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{-webkit-animation:van-circular 1.5s ease-in-out infinite;animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:8px;color:#969799;font-size:14px;vertical-align:middle}.van-loading--vertical{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.van-loading--vertical .van-loading__text{margin:8px 0 0}@-webkit-keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}100%{stroke-dasharray:90,150;stroke-dashoffset:-120}}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}100%{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__spinner--spinner i:nth-of-type(1){-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.van-loading__spinner--spinner i:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.van-loading__spinner--spinner i:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.van-loading__spinner--spinner i:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.van-loading__spinner--spinner i:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.van-loading__spinner--spinner i:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.van-loading__spinner--spinner i:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.van-loading__spinner--spinner i:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.van-loading__spinner--spinner i:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.van-loading__spinner--spinner i:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.van-loading__spinner--spinner i:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.van-loading__spinner--spinner i:nth-of-type(12){-webkit-transform:rotate(360deg);transform:rotate(360deg);opacity:.3125}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

// Utils
var _createNamespace = (0, _utils.createNamespace)('loading'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function LoadingIcon(h, props) {
  if (props.type === 'spinner') {
    var Spin = [];

    for (var i = 0; i < 12; i++) {
      Spin.push(h("i"));
    }

    return Spin;
  }

  return h("svg", {
    "class": bem('circular'),
    "attrs": {
      "viewBox": "25 25 50 50"
    }
  }, [h("circle", {
    "attrs": {
      "cx": "50",
      "cy": "50",
      "r": "20",
      "fill": "none"
    }
  })]);
}

function LoadingText(h, props, slots) {
  if (slots.default) {
    var _props$textColor;

    var style = {
      fontSize: (0, _utils.addUnit)(props.textSize),
      color: (_props$textColor = props.textColor) != null ? _props$textColor : props.color
    };
    return h("span", {
      "class": bem('text'),
      "style": style
    }, [slots.default()]);
  }
}

function Loading(h, props, slots, ctx) {
  var color = props.color,
      size = props.size,
      type = props.type;
  var style = {
    color: color
  };

  if (size) {
    var iconSize = (0, _utils.addUnit)(size);
    style.width = iconSize;
    style.height = iconSize;
  }

  return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
    "class": bem([type, {
      vertical: props.vertical
    }])
  }, (0, _functional.inherit)(ctx, true)]), [h("span", {
    "class": bem('spinner', type),
    "style": style
  }, [LoadingIcon(h, props)]), LoadingText(h, props, slots)]);
}

Loading.props = {
  color: String,
  size: [Number, String],
  vertical: Boolean,
  textSize: [Number, String],
  textColor: String,
  type: {
    type: String,
    default: 'circular'
  }
};

var _default = createComponent(Loading);

exports.default = _default;__webpack_require__(26);
__webpack_require__(131);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(164);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1918);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f7046130", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-overlay{position:fixed;top:0;left:0;z-index:1;width:100%;height:100%;background-color:rgba(0,0,0,.7)}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/overlay/index.css"],"names":[],"mappings":"AAAA,aAAa,eAAe,MAAM,OAAO,UAAU,WAAW,YAAY,+BAA+B,CAAC","file":"index.css","sourcesContent":[".van-overlay{position:fixed;top:0;left:0;z-index:1;width:100%;height:100%;background-color:rgba(0,0,0,.7)}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1919);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("138f18c4", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:16px}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 16px 16px}.van-popup--right{top:50%;right:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:16px 0 0 16px}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:16px 16px 0 0}.van-popup--left{top:50%;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 16px 16px 0}.van-popup--safe-area-inset-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-popup-slide-bottom-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-top-enter-active{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.van-popup-slide-bottom-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-top-leave-active{-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}.van-popup-slide-top-enter,.van-popup-slide-top-leave-active{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter,.van-popup-slide-right-leave-active{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter,.van-popup-slide-bottom-leave-active{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.van-popup-slide-left-enter,.van-popup-slide-left-leave-active{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:1;color:#c8c9cc;font-size:22px;cursor:pointer}.van-popup__close-icon:active{color:#969799}.van-popup__close-icon--top-left{top:16px;left:16px}.van-popup__close-icon--top-right{top:16px;right:16px}.van-popup__close-icon--bottom-left{bottom:16px;left:16px}.van-popup__close-icon--bottom-right{right:16px;bottom:16px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/popup/index.css"],"names":[],"mappings":"AAAA,qBAAqB,yBAAyB,CAAC,WAAW,eAAe,gBAAgB,gBAAgB,sBAAsB,yCAAyC,iCAAiC,yBAAyB,+CAA+C,gCAAgC,CAAC,mBAAmB,QAAQ,SAAS,2CAA2C,kCAAkC,CAAC,oCAAoC,kBAAkB,CAAC,gBAAgB,MAAM,OAAO,UAAU,CAAC,iCAAiC,2BAA2B,CAAC,kBAAkB,QAAQ,QAAQ,wCAAwC,+BAA+B,CAAC,mCAAmC,2BAA2B,CAAC,mBAAmB,SAAS,OAAO,UAAU,CAAC,oCAAoC,2BAA2B,CAAC,iBAAiB,QAAQ,OAAO,wCAAwC,+BAA+B,CAAC,kCAAkC,2BAA2B,CAAC,mCAAmC,gDAAgD,0CAA0C,CAAC,8IAA8I,4CAA4C,mCAAmC,CAAC,8IAA8I,2CAA2C,kCAAkC,CAAC,6DAA6D,yCAAyC,gCAAgC,CAAC,iEAAiE,2CAA2C,kCAAkC,CAAC,mEAAmE,wCAAwC,+BAA+B,CAAC,+DAA+D,4CAA4C,mCAAmC,CAAC,uBAAuB,kBAAkB,UAAU,cAAc,eAAe,cAAc,CAAC,8BAA8B,aAAa,CAAC,iCAAiC,SAAS,SAAS,CAAC,kCAAkC,SAAS,UAAU,CAAC,oCAAoC,YAAY,SAAS,CAAC,qCAAqC,WAAW,WAAW,CAAC","file":"index.css","sourcesContent":[".van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:16px}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 16px 16px}.van-popup--right{top:50%;right:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:16px 0 0 16px}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:16px 16px 0 0}.van-popup--left{top:50%;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 16px 16px 0}.van-popup--safe-area-inset-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-popup-slide-bottom-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-top-enter-active{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.van-popup-slide-bottom-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-top-leave-active{-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}.van-popup-slide-top-enter,.van-popup-slide-top-leave-active{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter,.van-popup-slide-right-leave-active{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter,.van-popup-slide-bottom-leave-active{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.van-popup-slide-left-enter,.van-popup-slide-left-leave-active{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:1;color:#c8c9cc;font-size:22px;cursor:pointer}.van-popup__close-icon:active{color:#969799}.van-popup__close-icon--top-left{top:16px;left:16px}.van-popup__close-icon--top-right{top:16px;right:16px}.van-popup__close-icon--bottom-left{bottom:16px;left:16px}.van-popup__close-icon--bottom-right{right:16px;bottom:16px}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _popup = __webpack_require__(198);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _createNamespace = (0, _utils.createNamespace)('popup'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _popup.PopupMixin)()],
  props: {
    round: Boolean,
    duration: [Number, String],
    closeable: Boolean,
    transition: String,
    safeAreaInsetBottom: Boolean,
    closeIcon: {
      type: String,
      default: 'cross'
    },
    closeIconPosition: {
      type: String,
      default: 'top-right'
    },
    position: {
      type: String,
      default: 'center'
    },
    overlay: {
      type: Boolean,
      default: true
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: true
    }
  },
  beforeCreate: function beforeCreate() {
    var _this = this;

    var createEmitter = function createEmitter(eventName) {
      return function (event) {
        return _this.$emit(eventName, event);
      };
    };

    this.onClick = createEmitter('click');
    this.onOpened = createEmitter('opened');
    this.onClosed = createEmitter('closed');
  },
  methods: {
    onClickCloseIcon: function onClickCloseIcon(event) {
      this.$emit('click-close-icon', event);
      this.close();
    }
  },
  render: function render() {
    var _bem;

    var h = arguments[0];

    if (!this.shouldRender) {
      return;
    }

    var round = this.round,
        position = this.position,
        duration = this.duration;
    var isCenter = position === 'center';
    var transitionName = this.transition || (isCenter ? 'van-fade' : "van-popup-slide-" + position);
    var style = {};

    if ((0, _utils.isDef)(duration)) {
      var key = isCenter ? 'animationDuration' : 'transitionDuration';
      style[key] = duration + "s";
    }

    return h("transition", {
      "attrs": {
        "appear": this.transitionAppear,
        "name": transitionName
      },
      "on": {
        "afterEnter": this.onOpened,
        "afterLeave": this.onClosed
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "style": style,
      "class": bem((_bem = {
        round: round
      }, _bem[position] = position, _bem['safe-area-inset-bottom'] = this.safeAreaInsetBottom, _bem)),
      "on": {
        "click": this.onClick
      }
    }, [this.slots(), this.closeable && h(_icon.default, {
      "attrs": {
        "role": "button",
        "tabindex": "0",
        "name": this.closeIcon
      },
      "class": bem('close-icon', this.closeIconPosition),
      "on": {
        "click": this.onClickCloseIcon
      }
    })])]);
  }
});

exports.default = _default;

exports.__esModule = true;
exports.PopupMixin = PopupMixin;
exports.popupMixinProps = void 0;

var _context = __webpack_require__(1345);

var _overlay = __webpack_require__(1920);

var _event = __webpack_require__(59);

var _node = __webpack_require__(766);

var _scroll = __webpack_require__(89);

var _touch = __webpack_require__(103);

var _portal = __webpack_require__(1346);

var _closeOnPopstate = __webpack_require__(1921);

// Context
// Utils
// Mixins
var popupMixinProps = {
  // Initial rendering animation
  transitionAppear: Boolean,
  // whether to show popup
  value: Boolean,
  // whether to show overlay
  overlay: Boolean,
  // overlay custom style
  overlayStyle: Object,
  // overlay custom class name
  overlayClass: String,
  // whether to close popup when overlay is clicked
  closeOnClickOverlay: Boolean,
  // z-index
  zIndex: [Number, String],
  // prevent body scroll
  lockScroll: {
    type: Boolean,
    default: true
  },
  // whether to lazy render
  lazyRender: {
    type: Boolean,
    default: true
  }
};
exports.popupMixinProps = popupMixinProps;

function PopupMixin(options) {
  if (options === void 0) {
    options = {};
  }

  return {
    mixins: [_touch.TouchMixin, _closeOnPopstate.CloseOnPopstateMixin, (0, _portal.PortalMixin)({
      afterPortal: function afterPortal() {
        if (this.overlay) {
          (0, _overlay.updateOverlay)();
        }
      }
    })],
    provide: function provide() {
      return {
        vanPopup: this
      };
    },
    props: popupMixinProps,
    data: function data() {
      this.onReopenCallback = [];
      return {
        inited: this.value
      };
    },
    computed: {
      shouldRender: function shouldRender() {
        return this.inited || !this.lazyRender;
      }
    },
    watch: {
      value: function value(val) {
        var type = val ? 'open' : 'close';
        this.inited = this.inited || this.value;
        this[type]();

        if (!options.skipToggleEvent) {
          this.$emit(type);
        }
      },
      overlay: 'renderOverlay'
    },
    mounted: function mounted() {
      if (this.value) {
        this.open();
      }
    },

    /* istanbul ignore next */
    activated: function activated() {
      if (this.shouldReopen) {
        this.$emit('input', true);
        this.shouldReopen = false;
      }
    },
    beforeDestroy: function beforeDestroy() {
      (0, _overlay.removeOverlay)(this);

      if (this.opened) {
        this.removeLock();
      }

      if (this.getContainer) {
        (0, _node.removeNode)(this.$el);
      }
    },

    /* istanbul ignore next */
    deactivated: function deactivated() {
      if (this.value) {
        this.close();
        this.shouldReopen = true;
      }
    },
    methods: {
      open: function open() {
        /* istanbul ignore next */
        if (this.$isServer || this.opened) {
          return;
        } // cover default zIndex


        if (this.zIndex !== undefined) {
          _context.context.zIndex = this.zIndex;
        }

        this.opened = true;
        this.renderOverlay();
        this.addLock();
        this.onReopenCallback.forEach(function (callback) {
          callback();
        });
      },
      addLock: function addLock() {
        if (this.lockScroll) {
          (0, _event.on)(document, 'touchstart', this.touchStart);
          (0, _event.on)(document, 'touchmove', this.onTouchMove);

          if (!_context.context.lockCount) {
            document.body.classList.add('van-overflow-hidden');
          }

          _context.context.lockCount++;
        }
      },
      removeLock: function removeLock() {
        if (this.lockScroll && _context.context.lockCount) {
          _context.context.lockCount--;
          (0, _event.off)(document, 'touchstart', this.touchStart);
          (0, _event.off)(document, 'touchmove', this.onTouchMove);

          if (!_context.context.lockCount) {
            document.body.classList.remove('van-overflow-hidden');
          }
        }
      },
      close: function close() {
        if (!this.opened) {
          return;
        }

        (0, _overlay.closeOverlay)(this);
        this.opened = false;
        this.removeLock();
        this.$emit('input', false);
      },
      onTouchMove: function onTouchMove(event) {
        this.touchMove(event);
        var direction = this.deltaY > 0 ? '10' : '01';
        var el = (0, _scroll.getScroller)(event.target, this.$el);
        var scrollHeight = el.scrollHeight,
            offsetHeight = el.offsetHeight,
            scrollTop = el.scrollTop;
        var status = '11';
        /* istanbul ignore next */

        if (scrollTop === 0) {
          status = offsetHeight >= scrollHeight ? '00' : '01';
        } else if (scrollTop + offsetHeight >= scrollHeight) {
          status = '10';
        }
        /* istanbul ignore next */


        if (status !== '11' && this.direction === 'vertical' && !(parseInt(status, 2) & parseInt(direction, 2))) {
          (0, _event.preventDefault)(event, true);
        }
      },
      renderOverlay: function renderOverlay() {
        var _this = this;

        if (this.$isServer || !this.value) {
          return;
        }

        this.$nextTick(function () {
          _this.updateZIndex(_this.overlay ? 1 : 0);

          if (_this.overlay) {
            (0, _overlay.openOverlay)(_this, {
              zIndex: _context.context.zIndex++,
              duration: _this.duration,
              className: _this.overlayClass,
              customStyle: _this.overlayStyle
            });
          } else {
            (0, _overlay.closeOverlay)(_this);
          }
        });
      },
      updateZIndex: function updateZIndex(value) {
        if (value === void 0) {
          value = 0;
        }

        this.$el.style.zIndex = ++_context.context.zIndex + value;
      },
      onReopen: function onReopen(callback) {
        this.onReopenCallback.push(callback);
      }
    }
  };
}

exports.__esModule = true;
exports.context = void 0;
var context = {
  zIndex: 2000,
  lockCount: 0,
  stack: [],
  find: function find(vm) {
    return this.stack.filter(function (item) {
      return item.vm === vm;
    })[0];
  },
  remove: function remove(vm) {
    var item = this.find(vm);
    if (!item) return;
    item.vm = null;
    item.overlay = null;
    var index = this.stack.indexOf(item);
    this.stack.splice(index, 1);
  }
};
exports.context = context;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.updateOverlay = updateOverlay;
exports.openOverlay = openOverlay;
exports.closeOverlay = closeOverlay;
exports.removeOverlay = removeOverlay;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _overlay = _interopRequireDefault(__webpack_require__(199));

var _context = __webpack_require__(1345);

var _functional = __webpack_require__(90);

var _node = __webpack_require__(766);

var defaultConfig = {
  className: '',
  customStyle: {}
};

function mountOverlay(vm) {
  return (0, _functional.mount)(_overlay.default, {
    on: {
      // close popup when overlay clicked & closeOnClickOverlay is true
      click: function click() {
        vm.$emit('click-overlay');

        if (vm.closeOnClickOverlay) {
          if (vm.onClickOverlay) {
            vm.onClickOverlay();
          } else {
            vm.close();
          }
        }
      }
    }
  });
}

function updateOverlay(vm) {
  var item = _context.context.find(vm);

  if (item) {
    var el = vm.$el;
    var config = item.config,
        overlay = item.overlay;

    if (el && el.parentNode) {
      el.parentNode.insertBefore(overlay.$el, el);
    }

    (0, _extends2.default)(overlay, defaultConfig, config, {
      show: true
    });
  }
}

function openOverlay(vm, config) {
  var item = _context.context.find(vm);

  if (item) {
    item.config = config;
  } else {
    var overlay = mountOverlay(vm);

    _context.context.stack.push({
      vm: vm,
      config: config,
      overlay: overlay
    });
  }

  updateOverlay(vm);
}

function closeOverlay(vm) {
  var item = _context.context.find(vm);

  if (item) {
    item.overlay.show = false;
  }
}

function removeOverlay(vm) {
  var item = _context.context.find(vm);

  if (item) {
    (0, _node.removeNode)(item.overlay.$el);

    _context.context.remove(vm);
  }
}

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

var _event = __webpack_require__(59);

// Utils
var _createNamespace = (0, _utils.createNamespace)('overlay'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function preventTouchMove(event) {
  (0, _event.preventDefault)(event, true);
}

function Overlay(h, props, slots, ctx) {
  var style = (0, _extends2.default)({
    zIndex: props.zIndex
  }, props.customStyle);

  if ((0, _utils.isDef)(props.duration)) {
    style.animationDuration = props.duration + "s";
  }

  return h("transition", {
    "attrs": {
      "name": "van-fade"
    }
  }, [h("div", (0, _babelHelperVueJsxMergeProps.default)([{
    "directives": [{
      name: "show",
      value: props.show
    }],
    "style": style,
    "class": [bem(), props.className],
    "on": {
      "touchmove": props.lockScroll ? preventTouchMove : _utils.noop
    }
  }, (0, _functional.inherit)(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
}

Overlay.props = {
  show: Boolean,
  zIndex: [Number, String],
  duration: [Number, String],
  className: null,
  customStyle: Object,
  lockScroll: {
    type: Boolean,
    default: true
  }
};

var _default = createComponent(Overlay);

exports.default = _default;

exports.__esModule = true;
exports.on = on;
exports.off = off;
exports.stopPropagation = stopPropagation;
exports.preventDefault = preventDefault;
exports.supportsPassive = void 0;

var _ = __webpack_require__(18);

// eslint-disable-next-line import/no-mutable-exports
var supportsPassive = false;
exports.supportsPassive = supportsPassive;

if (!_.isServer) {
  try {
    var opts = {};
    Object.defineProperty(opts, 'passive', {
      // eslint-disable-next-line getter-return
      get: function get() {
        /* istanbul ignore next */
        exports.supportsPassive = supportsPassive = true;
      }
    });
    window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty
  } catch (e) {}
}

function on(target, event, handler, passive) {
  if (passive === void 0) {
    passive = false;
  }

  if (!_.isServer) {
    target.addEventListener(event, handler, supportsPassive ? {
      capture: false,
      passive: passive
    } : false);
  }
}

function off(target, event, handler) {
  if (!_.isServer) {
    target.removeEventListener(event, handler);
  }
}

function stopPropagation(event) {
  event.stopPropagation();
}

function preventDefault(event, isStopPropagation) {
  /* istanbul ignore else */
  if (typeof event.cancelable !== 'boolean' || event.cancelable) {
    event.preventDefault();
  }

  if (isStopPropagation) {
    stopPropagation(event);
  }
}

exports.__esModule = true;
exports.removeNode = removeNode;

function removeNode(el) {
  var parent = el.parentNode;

  if (parent) {
    parent.removeChild(el);
  }
}

exports.__esModule = true;
exports.getScroller = getScroller;
exports.getScrollTop = getScrollTop;
exports.setScrollTop = setScrollTop;
exports.getRootScrollTop = getRootScrollTop;
exports.setRootScrollTop = setRootScrollTop;
exports.getElementTop = getElementTop;
exports.getVisibleHeight = getVisibleHeight;
exports.getVisibleTop = getVisibleTop;

function isWindow(val) {
  return val === window;
} // get nearest scroll element
// https://github.com/vant-ui/vant/issues/3823


var overflowScrollReg = /scroll|auto|overlay/i;

function getScroller(el, root) {
  if (root === void 0) {
    root = window;
  }

  var node = el;

  while (node && node.tagName !== 'HTML' && node.tagName !== 'BODY' && node.nodeType === 1 && node !== root) {
    var _window$getComputedSt = window.getComputedStyle(node),
        overflowY = _window$getComputedSt.overflowY;

    if (overflowScrollReg.test(overflowY)) {
      return node;
    }

    node = node.parentNode;
  }

  return root;
}

function getScrollTop(el) {
  var top = 'scrollTop' in el ? el.scrollTop : el.pageYOffset; // iOS scroll bounce cause minus scrollTop

  return Math.max(top, 0);
}

function setScrollTop(el, value) {
  if ('scrollTop' in el) {
    el.scrollTop = value;
  } else {
    el.scrollTo(el.scrollX, value);
  }
}

function getRootScrollTop() {
  return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
}

function setRootScrollTop(value) {
  setScrollTop(window, value);
  setScrollTop(document.body, value);
} // get distance from element top to page top or scroller top


function getElementTop(el, scroller) {
  if (isWindow(el)) {
    return 0;
  }

  var scrollTop = scroller ? getScrollTop(scroller) : getRootScrollTop();
  return el.getBoundingClientRect().top + scrollTop;
}

function getVisibleHeight(el) {
  if (isWindow(el)) {
    return el.innerHeight;
  }

  return el.getBoundingClientRect().height;
}

function getVisibleTop(el) {
  if (isWindow(el)) {
    return 0;
  }

  return el.getBoundingClientRect().top;
}

exports.__esModule = true;
exports.TouchMixin = void 0;

var _event = __webpack_require__(59);

function getDirection(x, y) {
  if (x > y) {
    return 'horizontal';
  }

  if (y > x) {
    return 'vertical';
  }

  return '';
}

var TouchMixin = {
  data: function data() {
    return {
      direction: ''
    };
  },
  methods: {
    touchStart: function touchStart(event) {
      this.resetTouchStatus();
      this.startX = event.touches[0].clientX;
      this.startY = event.touches[0].clientY;
    },
    touchMove: function touchMove(event) {
      var touch = event.touches[0]; // safari back will set clientX to negative number

      this.deltaX = touch.clientX < 0 ? 0 : touch.clientX - this.startX;
      this.deltaY = touch.clientY - this.startY;
      this.offsetX = Math.abs(this.deltaX);
      this.offsetY = Math.abs(this.deltaY); // lock direction when distance is greater than a certain value

      var LOCK_DIRECTION_DISTANCE = 10;

      if (!this.direction || this.offsetX < LOCK_DIRECTION_DISTANCE && this.offsetY < LOCK_DIRECTION_DISTANCE) {
        this.direction = getDirection(this.offsetX, this.offsetY);
      }
    },
    resetTouchStatus: function resetTouchStatus() {
      this.direction = '';
      this.deltaX = 0;
      this.deltaY = 0;
      this.offsetX = 0;
      this.offsetY = 0;
    },
    // avoid Vue 2.6 event bubble issues by manually binding events
    // https://github.com/vant-ui/vant/issues/3015
    bindTouchEvent: function bindTouchEvent(el) {
      var onTouchStart = this.onTouchStart,
          onTouchMove = this.onTouchMove,
          onTouchEnd = this.onTouchEnd;
      (0, _event.on)(el, 'touchstart', onTouchStart);
      (0, _event.on)(el, 'touchmove', onTouchMove);

      if (onTouchEnd) {
        (0, _event.on)(el, 'touchend', onTouchEnd);
        (0, _event.on)(el, 'touchcancel', onTouchEnd);
      }
    }
  }
};
exports.TouchMixin = TouchMixin;

exports.__esModule = true;
exports.PortalMixin = PortalMixin;

function getElement(selector) {
  if (typeof selector === 'string') {
    return document.querySelector(selector);
  }

  return selector();
}

function PortalMixin(_temp) {
  var _ref = _temp === void 0 ? {} : _temp,
      ref = _ref.ref,
      afterPortal = _ref.afterPortal;

  return {
    props: {
      getContainer: [String, Function]
    },
    watch: {
      getContainer: 'portal'
    },
    mounted: function mounted() {
      if (this.getContainer) {
        this.portal();
      }
    },
    methods: {
      portal: function portal() {
        var getContainer = this.getContainer;
        var el = ref ? this.$refs[ref] : this.$el;
        var container;

        if (getContainer) {
          container = getElement(getContainer);
        } else if (this.$parent) {
          container = this.$parent.$el;
        }

        if (container && container !== el.parentNode) {
          container.appendChild(el);
        }

        if (afterPortal) {
          afterPortal.call(this);
        }
      }
    }
  };
}

exports.__esModule = true;
exports.CloseOnPopstateMixin = void 0;

var _event = __webpack_require__(59);

var _bindEvent = __webpack_require__(102);

var CloseOnPopstateMixin = {
  mixins: [(0, _bindEvent.BindEventMixin)(function (bind, isBind) {
    this.handlePopstate(isBind && this.closeOnPopstate);
  })],
  props: {
    closeOnPopstate: Boolean
  },
  data: function data() {
    return {
      bindStatus: false
    };
  },
  watch: {
    closeOnPopstate: function closeOnPopstate(val) {
      this.handlePopstate(val);
    }
  },
  methods: {
    onPopstate: function onPopstate() {
      this.close();
      this.shouldReopen = false;
    },
    handlePopstate: function handlePopstate(bind) {
      /* istanbul ignore if */
      if (this.$isServer) {
        return;
      }

      if (this.bindStatus !== bind) {
        this.bindStatus = bind;
        var action = bind ? _event.on : _event.off;
        action(window, 'popstate', this.onPopstate);
      }
    }
  }
};
exports.CloseOnPopstateMixin = CloseOnPopstateMixin;

exports.__esModule = true;
exports.BindEventMixin = BindEventMixin;

var _event = __webpack_require__(59);

/**
 * Bind event when mounted or activated
 */
var uid = 0;

function BindEventMixin(handler) {
  var key = "binded_" + uid++;

  function bind() {
    if (!this[key]) {
      handler.call(this, _event.on, true);
      this[key] = true;
    }
  }

  function unbind() {
    if (this[key]) {
      handler.call(this, _event.off, false);
      this[key] = false;
    }
  }

  return {
    mounted: bind,
    activated: bind,
    deactivated: unbind,
    beforeDestroy: unbind
  };
}__webpack_require__(26);
__webpack_require__(131);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(164);
__webpack_require__(74);
__webpack_require__(1932);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1933);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("75023f02", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-toast{position:fixed;top:50%;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;width:88px;max-width:70%;min-height:88px;padding:16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-break:break-all;background-color:rgba(0,0,0,.7);border-radius:8px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-toast--unclickable{overflow:hidden}.van-toast--unclickable *{pointer-events:none}.van-toast--html,.van-toast--text{width:-webkit-fit-content;width:fit-content;min-width:96px;min-height:0;padding:8px 12px}.van-toast--html .van-toast__text,.van-toast--text .van-toast__text{margin-top:0}.van-toast--top{top:20%}.van-toast--bottom{top:auto;bottom:20%}.van-toast__icon{font-size:36px}.van-toast__loading{padding:4px;color:#fff}.van-toast__text{margin-top:8px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/toast/index.css"],"names":[],"mappings":"AAAA,WAAW,eAAe,QAAQ,SAAS,oBAAoB,qBAAqB,aAAa,4BAA4B,6BAA6B,8BAA8B,sBAAsB,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,uBAAuB,WAAW,cAAc,gBAAgB,aAAa,WAAW,eAAe,iBAAiB,qBAAqB,kBAAkB,qBAAqB,gCAAgC,kBAAkB,2CAA2C,kCAAkC,CAAC,wBAAwB,eAAe,CAAC,0BAA0B,mBAAmB,CAAC,kCAAkC,0BAA0B,kBAAkB,eAAe,aAAa,gBAAgB,CAAC,oEAAoE,YAAY,CAAC,gBAAgB,OAAO,CAAC,mBAAmB,SAAS,UAAU,CAAC,iBAAiB,cAAc,CAAC,oBAAoB,YAAY,UAAU,CAAC,iBAAiB,cAAc,CAAC","file":"index.css","sourcesContent":[".van-toast{position:fixed;top:50%;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;width:88px;max-width:70%;min-height:88px;padding:16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-break:break-all;background-color:rgba(0,0,0,.7);border-radius:8px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-toast--unclickable{overflow:hidden}.van-toast--unclickable *{pointer-events:none}.van-toast--html,.van-toast--text{width:-webkit-fit-content;width:fit-content;min-width:96px;min-height:0;padding:8px 12px}.van-toast--html .van-toast__text,.van-toast--text .van-toast__text{margin-top:0}.van-toast--top{top:20%}.van-toast--bottom{top:auto;bottom:20%}.van-toast__icon{font-size:36px}.van-toast__loading{padding:4px;color:#fff}.van-toast__text{margin-top:8px}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _vue = _interopRequireDefault(__webpack_require__(22));

var _Toast = _interopRequireDefault(__webpack_require__(1934));

var _utils = __webpack_require__(18);

var _node = __webpack_require__(766);

var defaultOptions = {
  icon: '',
  type: 'text',
  // @deprecated
  mask: false,
  value: true,
  message: '',
  className: '',
  overlay: false,
  onClose: null,
  onOpened: null,
  duration: 2000,
  iconPrefix: undefined,
  position: 'middle',
  transition: 'van-fade',
  forbidClick: false,
  loadingType: undefined,
  getContainer: 'body',
  overlayStyle: null,
  closeOnClick: false,
  closeOnClickOverlay: false
}; // default options of specific type

var defaultOptionsMap = {};
var queue = [];
var multiple = false;
var currentOptions = (0, _extends2.default)({}, defaultOptions);

function parseOptions(message) {
  if ((0, _utils.isObject)(message)) {
    return message;
  }

  return {
    message: message
  };
}

function isInDocument(element) {
  return document.body.contains(element);
}

function createInstance() {
  /* istanbul ignore if */
  if (_utils.isServer) {
    return {};
  }

  queue = queue.filter(function (item) {
    return !item.$el.parentNode || isInDocument(item.$el);
  });

  if (!queue.length || multiple) {
    var toast = new (_vue.default.extend(_Toast.default))({
      el: document.createElement('div')
    });
    toast.$on('input', function (value) {
      toast.value = value;
    });
    queue.push(toast);
  }

  return queue[queue.length - 1];
} // transform toast options to popup props


function transformOptions(options) {
  return (0, _extends2.default)({}, options, {
    overlay: options.mask || options.overlay,
    mask: undefined,
    duration: undefined
  });
}

function Toast(options) {
  if (options === void 0) {
    options = {};
  }

  var toast = createInstance(); // should add z-index if previous toast has not disappeared

  if (toast.value) {
    toast.updateZIndex();
  }

  options = parseOptions(options);
  options = (0, _extends2.default)({}, currentOptions, defaultOptionsMap[options.type || currentOptions.type], options);

  if (false) {}

  options.clear = function () {
    toast.value = false;

    if (options.onClose) {
      options.onClose();
      options.onClose = null;
    }

    if (multiple && !_utils.isServer) {
      toast.$on('closed', function () {
        clearTimeout(toast.timer);
        queue = queue.filter(function (item) {
          return item !== toast;
        });
        (0, _node.removeNode)(toast.$el);
        toast.$destroy();
      });
    }
  };

  (0, _extends2.default)(toast, transformOptions(options));
  clearTimeout(toast.timer);

  if (options.duration > 0) {
    toast.timer = setTimeout(function () {
      toast.clear();
    }, options.duration);
  }

  return toast;
}

var createMethod = function createMethod(type) {
  return function (options) {
    return Toast((0, _extends2.default)({
      type: type
    }, parseOptions(options)));
  };
};

['loading', 'success', 'fail'].forEach(function (method) {
  Toast[method] = createMethod(method);
});

Toast.clear = function (all) {
  if (queue.length) {
    if (all) {
      queue.forEach(function (toast) {
        toast.clear();
      });
      queue = [];
    } else if (!multiple) {
      queue[0].clear();
    } else {
      queue.shift().clear();
    }
  }
};

Toast.setDefaultOptions = function (type, options) {
  if (typeof type === 'string') {
    defaultOptionsMap[type] = options;
  } else {
    (0, _extends2.default)(currentOptions, type);
  }
};

Toast.resetDefaultOptions = function (type) {
  if (typeof type === 'string') {
    defaultOptionsMap[type] = null;
  } else {
    currentOptions = (0, _extends2.default)({}, defaultOptions);
    defaultOptionsMap = {};
  }
};

Toast.allowMultiple = function (value) {
  if (value === void 0) {
    value = true;
  }

  multiple = value;
};

Toast.install = function () {
  _vue.default.use(_Toast.default);
};

_vue.default.prototype.$toast = Toast;
var _default = Toast;
exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _lockClick = __webpack_require__(1935);

var _popup = __webpack_require__(198);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _loading = _interopRequireDefault(__webpack_require__(91));

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('toast'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _popup.PopupMixin)()],
  props: {
    icon: String,
    className: null,
    iconPrefix: String,
    loadingType: String,
    forbidClick: Boolean,
    closeOnClick: Boolean,
    message: [Number, String],
    type: {
      type: String,
      default: 'text'
    },
    position: {
      type: String,
      default: 'middle'
    },
    transition: {
      type: String,
      default: 'van-fade'
    },
    lockScroll: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      clickable: false
    };
  },
  mounted: function mounted() {
    this.toggleClickable();
  },
  destroyed: function destroyed() {
    this.toggleClickable();
  },
  watch: {
    value: 'toggleClickable',
    forbidClick: 'toggleClickable'
  },
  methods: {
    onClick: function onClick() {
      if (this.closeOnClick) {
        this.close();
      }
    },
    toggleClickable: function toggleClickable() {
      var clickable = this.value && this.forbidClick;

      if (this.clickable !== clickable) {
        this.clickable = clickable;
        (0, _lockClick.lockClick)(clickable);
      }
    },

    /* istanbul ignore next */
    onAfterEnter: function onAfterEnter() {
      this.$emit('opened');

      if (this.onOpened) {
        this.onOpened();
      }
    },
    onAfterLeave: function onAfterLeave() {
      this.$emit('closed');
    },
    genIcon: function genIcon() {
      var h = this.$createElement;
      var icon = this.icon,
          type = this.type,
          iconPrefix = this.iconPrefix,
          loadingType = this.loadingType;
      var hasIcon = icon || type === 'success' || type === 'fail';

      if (hasIcon) {
        return h(_icon.default, {
          "class": bem('icon'),
          "attrs": {
            "classPrefix": iconPrefix,
            "name": icon || type
          }
        });
      }

      if (type === 'loading') {
        return h(_loading.default, {
          "class": bem('loading'),
          "attrs": {
            "type": loadingType
          }
        });
      }
    },
    genMessage: function genMessage() {
      var h = this.$createElement;
      var type = this.type,
          message = this.message;

      if (!(0, _utils.isDef)(message) || message === '') {
        return;
      }

      if (type === 'html') {
        return h("div", {
          "class": bem('text'),
          "domProps": {
            "innerHTML": message
          }
        });
      }

      return h("div", {
        "class": bem('text')
      }, [message]);
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    return h("transition", {
      "attrs": {
        "name": this.transition
      },
      "on": {
        "afterEnter": this.onAfterEnter,
        "afterLeave": this.onAfterLeave
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "class": [bem([this.position, (_ref = {}, _ref[this.type] = !this.icon, _ref)]), this.className],
      "on": {
        "click": this.onClick
      }
    }, [this.genIcon(), this.genMessage()])]);
  }
});

exports.default = _default;

exports.__esModule = true;
exports.lockClick = lockClick;
var lockCount = 0;

function lockClick(lock) {
  if (lock) {
    if (!lockCount) {
      document.body.classList.add('van-toast--unclickable');
    }

    lockCount++;
  } else {
    lockCount--;

    if (!lockCount) {
      document.body.classList.remove('van-toast--unclickable');
    }
  }
}__webpack_require__(26);
__webpack_require__(2141);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2142);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("06d7c4a9", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-stepper{font-size:0;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:28px;height:28px;margin:0;padding:0;color:#323233;vertical-align:middle;background-color:#f2f3f5;border:0;cursor:pointer}.van-stepper__minus::before,.van-stepper__plus::before{width:50%;height:1px}.van-stepper__minus::after,.van-stepper__plus::after{width:1px;height:50%}.van-stepper__minus::after,.van-stepper__minus::before,.van-stepper__plus::after,.van-stepper__plus::before{position:absolute;top:50%;left:50%;background-color:currentColor;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);content:''}.van-stepper__minus:active,.van-stepper__plus:active{background-color:#e8e8e8}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:#c8c9cc;background-color:#f7f8fa;cursor:not-allowed}.van-stepper__minus--disabled:active,.van-stepper__plus--disabled:active{background-color:#f7f8fa}.van-stepper__minus{border-radius:4px 0 0 4px}.van-stepper__minus::after{display:none}.van-stepper__plus{border-radius:0 4px 4px 0}.van-stepper__input{box-sizing:border-box;width:32px;height:28px;margin:0 2px;padding:0;color:#323233;font-size:14px;line-height:normal;text-align:center;vertical-align:middle;background-color:#f2f3f5;border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:#c8c9cc;background-color:#f2f3f5;-webkit-text-fill-color:#c8c9cc;opacity:1}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus:active,.van-stepper--round .van-stepper__plus:active{opacity:.7}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{color:#fff;background-color:#ee0a24}.van-stepper--round .van-stepper__minus{color:#ee0a24;background-color:#fff;border:1px solid #ee0a24}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/stepper/index.css"],"names":[],"mappings":"AAAA,aAAa,YAAY,yBAAyB,gBAAgB,CAAC,uCAAuC,kBAAkB,sBAAsB,WAAW,YAAY,SAAS,UAAU,cAAc,sBAAsB,yBAAyB,SAAS,cAAc,CAAC,uDAAuD,UAAU,UAAU,CAAC,qDAAqD,UAAU,UAAU,CAAC,4GAA4G,kBAAkB,QAAQ,SAAS,8BAA8B,uCAAuC,+BAA+B,UAAU,CAAC,qDAAqD,wBAAwB,CAAC,2DAA2D,cAAc,yBAAyB,kBAAkB,CAAC,yEAAyE,wBAAwB,CAAC,oBAAoB,yBAAyB,CAAC,2BAA2B,YAAY,CAAC,mBAAmB,yBAAyB,CAAC,oBAAoB,sBAAsB,WAAW,YAAY,aAAa,UAAU,cAAc,eAAe,mBAAmB,kBAAkB,sBAAsB,yBAAyB,SAAS,mBAAmB,gBAAgB,uBAAuB,CAAC,6BAA6B,cAAc,yBAAyB,gCAAgC,SAAS,CAAC,8BAA8B,cAAc,CAAC,wCAAwC,4BAA4B,CAAC,+EAA+E,kBAAkB,CAAC,6FAA6F,UAAU,CAAC,oNAAoN,UAAU,CAAC,uCAAuC,WAAW,wBAAwB,CAAC,wCAAwC,cAAc,sBAAsB,wBAAwB,CAAC","file":"index.css","sourcesContent":[".van-stepper{font-size:0;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:28px;height:28px;margin:0;padding:0;color:#323233;vertical-align:middle;background-color:#f2f3f5;border:0;cursor:pointer}.van-stepper__minus::before,.van-stepper__plus::before{width:50%;height:1px}.van-stepper__minus::after,.van-stepper__plus::after{width:1px;height:50%}.van-stepper__minus::after,.van-stepper__minus::before,.van-stepper__plus::after,.van-stepper__plus::before{position:absolute;top:50%;left:50%;background-color:currentColor;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);content:''}.van-stepper__minus:active,.van-stepper__plus:active{background-color:#e8e8e8}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:#c8c9cc;background-color:#f7f8fa;cursor:not-allowed}.van-stepper__minus--disabled:active,.van-stepper__plus--disabled:active{background-color:#f7f8fa}.van-stepper__minus{border-radius:4px 0 0 4px}.van-stepper__minus::after{display:none}.van-stepper__plus{border-radius:0 4px 4px 0}.van-stepper__input{box-sizing:border-box;width:32px;height:28px;margin:0 2px;padding:0;color:#323233;font-size:14px;line-height:normal;text-align:center;vertical-align:middle;background-color:#f2f3f5;border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:#c8c9cc;background-color:#f2f3f5;-webkit-text-fill-color:#c8c9cc;opacity:1}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus:active,.van-stepper--round .van-stepper__plus:active{opacity:.7}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{color:#fff;background-color:#ee0a24}.van-stepper--round .van-stepper__minus{color:#ee0a24;background-color:#fff;border:1px solid #ee0a24}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _resetScroll = __webpack_require__(1385);

var _event = __webpack_require__(59);

var _number = __webpack_require__(167);

var _number2 = __webpack_require__(281);

var _field = __webpack_require__(202);

var _createNamespace = (0, _utils.createNamespace)('stepper'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var LONG_PRESS_START_TIME = 600;
var LONG_PRESS_INTERVAL = 200;

function equal(value1, value2) {
  return String(value1) === String(value2);
}

var _default = createComponent({
  mixins: [_field.FieldMixin],
  props: {
    value: null,
    theme: String,
    integer: Boolean,
    disabled: Boolean,
    allowEmpty: Boolean,
    inputWidth: [Number, String],
    buttonSize: [Number, String],
    asyncChange: Boolean,
    placeholder: String,
    disablePlus: Boolean,
    disableMinus: Boolean,
    disableInput: Boolean,
    decimalLength: [Number, String],
    name: {
      type: [Number, String],
      default: ''
    },
    min: {
      type: [Number, String],
      default: 1
    },
    max: {
      type: [Number, String],
      default: Infinity
    },
    step: {
      type: [Number, String],
      default: 1
    },
    defaultValue: {
      type: [Number, String],
      default: 1
    },
    showPlus: {
      type: Boolean,
      default: true
    },
    showMinus: {
      type: Boolean,
      default: true
    },
    showInput: {
      type: Boolean,
      default: true
    },
    longPress: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    var _this$value;

    var defaultValue = (_this$value = this.value) != null ? _this$value : this.defaultValue;
    var value = this.format(defaultValue);

    if (!equal(value, this.value)) {
      this.$emit('input', value);
    }

    return {
      currentValue: value
    };
  },
  computed: {
    minusDisabled: function minusDisabled() {
      return this.disabled || this.disableMinus || this.currentValue <= +this.min;
    },
    plusDisabled: function plusDisabled() {
      return this.disabled || this.disablePlus || this.currentValue >= +this.max;
    },
    inputStyle: function inputStyle() {
      var style = {};

      if (this.inputWidth) {
        style.width = (0, _utils.addUnit)(this.inputWidth);
      }

      if (this.buttonSize) {
        style.height = (0, _utils.addUnit)(this.buttonSize);
      }

      return style;
    },
    buttonStyle: function buttonStyle() {
      if (this.buttonSize) {
        var size = (0, _utils.addUnit)(this.buttonSize);
        return {
          width: size,
          height: size
        };
      }
    }
  },
  watch: {
    max: 'check',
    min: 'check',
    integer: 'check',
    decimalLength: 'check',
    value: function value(val) {
      if (!equal(val, this.currentValue)) {
        this.currentValue = this.format(val);
      }
    },
    currentValue: function currentValue(val) {
      this.$emit('input', val);
      this.$emit('change', val, {
        name: this.name
      });
    }
  },
  methods: {
    check: function check() {
      var val = this.format(this.currentValue);

      if (!equal(val, this.currentValue)) {
        this.currentValue = val;
      }
    },
    // formatNumber illegal characters
    formatNumber: function formatNumber(value) {
      return (0, _number.formatNumber)(String(value), !this.integer);
    },
    format: function format(value) {
      if (this.allowEmpty && value === '') {
        return value;
      }

      value = this.formatNumber(value); // format range

      value = value === '' ? 0 : +value;
      value = (0, _number2.isNaN)(value) ? this.min : value;
      value = Math.max(Math.min(this.max, value), this.min); // format decimal

      if ((0, _utils.isDef)(this.decimalLength)) {
        value = value.toFixed(this.decimalLength);
      }

      return value;
    },
    onInput: function onInput(event) {
      var value = event.target.value;
      var formatted = this.formatNumber(value); // limit max decimal length

      if ((0, _utils.isDef)(this.decimalLength) && formatted.indexOf('.') !== -1) {
        var pair = formatted.split('.');
        formatted = pair[0] + "." + pair[1].slice(0, this.decimalLength);
      }

      if (!equal(value, formatted)) {
        event.target.value = formatted;
      } // prefer number type


      if (formatted === String(+formatted)) {
        formatted = +formatted;
      }

      this.emitChange(formatted);
    },
    emitChange: function emitChange(value) {
      if (this.asyncChange) {
        this.$emit('input', value);
        this.$emit('change', value, {
          name: this.name
        });
      } else {
        this.currentValue = value;
      }
    },
    onChange: function onChange() {
      var type = this.type;

      if (this[type + "Disabled"]) {
        this.$emit('overlimit', type);
        return;
      }

      var diff = type === 'minus' ? -this.step : +this.step;
      var value = this.format((0, _number.addNumber)(+this.currentValue, diff));
      this.emitChange(value);
      this.$emit(type);
    },
    onFocus: function onFocus(event) {
      // readonly not work in legacy mobile safari
      if (this.disableInput && this.$refs.input) {
        this.$refs.input.blur();
      } else {
        this.$emit('focus', event);
      }
    },
    onBlur: function onBlur(event) {
      var value = this.format(event.target.value);
      event.target.value = value;
      this.emitChange(value);
      this.$emit('blur', event);
      (0, _resetScroll.resetScroll)();
    },
    longPressStep: function longPressStep() {
      var _this = this;

      this.longPressTimer = setTimeout(function () {
        _this.onChange();

        _this.longPressStep(_this.type);
      }, LONG_PRESS_INTERVAL);
    },
    onTouchStart: function onTouchStart() {
      var _this2 = this;

      if (!this.longPress) {
        return;
      }

      clearTimeout(this.longPressTimer);
      this.isLongPress = false;
      this.longPressTimer = setTimeout(function () {
        _this2.isLongPress = true;

        _this2.onChange();

        _this2.longPressStep();
      }, LONG_PRESS_START_TIME);
    },
    onTouchEnd: function onTouchEnd(event) {
      if (!this.longPress) {
        return;
      }

      clearTimeout(this.longPressTimer);

      if (this.isLongPress) {
        (0, _event.preventDefault)(event);
      }
    },
    onMousedown: function onMousedown(event) {
      // fix mobile safari page scroll down issue
      // see: https://github.com/vant-ui/vant/issues/7690
      if (this.disableInput) {
        event.preventDefault();
      }
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];

    var createListeners = function createListeners(type) {
      return {
        on: {
          click: function click(e) {
            // disable double tap scrolling on mobile safari
            e.preventDefault();
            _this3.type = type;

            _this3.onChange();
          },
          touchstart: function touchstart() {
            _this3.type = type;

            _this3.onTouchStart();
          },
          touchend: _this3.onTouchEnd,
          touchcancel: _this3.onTouchEnd
        }
      };
    };

    return h("div", {
      "class": bem([this.theme])
    }, [h("button", (0, _babelHelperVueJsxMergeProps.default)([{
      "directives": [{
        name: "show",
        value: this.showMinus
      }],
      "attrs": {
        "type": "button"
      },
      "style": this.buttonStyle,
      "class": bem('minus', {
        disabled: this.minusDisabled
      })
    }, createListeners('minus')])), h("input", {
      "directives": [{
        name: "show",
        value: this.showInput
      }],
      "ref": "input",
      "attrs": {
        "type": this.integer ? 'tel' : 'text',
        "role": "spinbutton",
        "disabled": this.disabled,
        "readonly": this.disableInput,
        "inputmode": this.integer ? 'numeric' : 'decimal',
        "placeholder": this.placeholder,
        "aria-valuemax": this.max,
        "aria-valuemin": this.min,
        "aria-valuenow": this.currentValue
      },
      "class": bem('input'),
      "domProps": {
        "value": this.currentValue
      },
      "style": this.inputStyle,
      "on": {
        "input": this.onInput,
        "focus": this.onFocus,
        "blur": this.onBlur,
        "mousedown": this.onMousedown
      }
    }), h("button", (0, _babelHelperVueJsxMergeProps.default)([{
      "directives": [{
        name: "show",
        value: this.showPlus
      }],
      "attrs": {
        "type": "button"
      },
      "style": this.buttonStyle,
      "class": bem('plus', {
        disabled: this.plusDisabled
      })
    }, createListeners('plus')]))]);
  }
});

exports.default = _default;

exports.__esModule = true;
exports.resetScroll = resetScroll;

var _system = __webpack_require__(2049);

var _scroll = __webpack_require__(89);

/**
 * Hack for iOS12 page scroll
 * https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
 */
var isIOS = (0, _system.isIOS)();
/* istanbul ignore next */

function resetScroll() {
  if (isIOS) {
    (0, _scroll.setRootScrollTop)((0, _scroll.getRootScrollTop)());
  }
}

exports.__esModule = true;
exports.isAndroid = isAndroid;
exports.isIOS = isIOS;

var _ = __webpack_require__(18);

function isAndroid() {
  /* istanbul ignore next */
  return _.isServer ? false : /android/.test(navigator.userAgent.toLowerCase());
}

function isIOS() {
  /* istanbul ignore next */
  return _.isServer ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
}

exports.__esModule = true;
exports.range = range;
exports.formatNumber = formatNumber;
exports.addNumber = addNumber;

function range(num, min, max) {
  return Math.min(Math.max(num, min), max);
}

function trimExtraChar(value, _char, regExp) {
  var index = value.indexOf(_char);
  var prefix = '';

  if (index === -1) {
    return value;
  }

  if (_char === '-' && index !== 0) {
    return value.slice(0, index);
  }

  if (_char === '.' && value.match(/^(\.|-\.)/)) {
    prefix = index ? '-0' : '0';
  }

  return prefix + value.slice(0, index + 1) + value.slice(index).replace(regExp, '');
}

function formatNumber(value, allowDot, allowMinus) {
  if (allowDot === void 0) {
    allowDot = true;
  }

  if (allowMinus === void 0) {
    allowMinus = true;
  }

  if (allowDot) {
    value = trimExtraChar(value, '.', /\./g);
  } else {
    value = value.split('.')[0];
  }

  if (allowMinus) {
    value = trimExtraChar(value, '-', /-/g);
  } else {
    value = value.replace(/-/, '');
  }

  var regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
  return value.replace(regExp, '');
} // add num and avoid float number


function addNumber(num1, num2) {
  var cardinal = Math.pow(10, 10);
  return Math.round((num1 + num2) * cardinal) / cardinal;
}

exports.__esModule = true;
exports.FieldMixin = void 0;
var FieldMixin = {
  inject: {
    vanField: {
      default: null
    }
  },
  watch: {
    value: function value() {
      var field = this.vanField;

      if (field) {
        field.resetValidation();
        field.validateWithTrigger('onChange');
      }
    }
  },
  created: function created() {
    var field = this.vanField;

    if (field && !field.children) {
      field.children = this;
    }
  }
};
exports.FieldMixin = FieldMixin;__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(332);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f3dc1f16_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(933);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2123)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-f3dc1f16"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f3dc1f16_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f3dc1f16_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopCart_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2124);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5feaf112", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".shopCart-success-page[data-v-f3dc1f16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;height:100vh;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-top:2.25rem}.shopCart-success-page .success-icon[data-v-f3dc1f16]{width:2.69rem;height:2.69rem;margin-bottom:.85rem;background-image:url(" + escape(__webpack_require__(2125)) + ");background-size:cover}.shopCart-success-page .title[data-v-f3dc1f16]{margin-bottom:3.4rem;height:1.25rem;font-size:.9rem;font-weight:400;color:#333;line-height:1.25rem}.shopCart-success-page .bottom-btn[data-v-f3dc1f16]{width:16.75rem;height:2.4rem;font-size:.8rem;color:#fff;line-height:2.4rem;background:#177afa;border-radius:.3rem;text-align:center}.loading[data-v-f3dc1f16]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.loading[data-v-f3dc1f16],.shopCart-page[data-v-f3dc1f16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100vh}.shopCart-page[data-v-f3dc1f16]{color:#333!important;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;background-color:#f4f5f6}.shopCart-page .van-popup--center[data-v-f3dc1f16]{-webkit-transform:translate3d(-50%,-70%,0);transform:translate3d(-50%,-70%,0)}.shopCart-page .flex-top[data-v-f3dc1f16]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;width:18.75rem;background:#fff6eb;padding:.8rem}.shopCart-page .flex-mid[data-v-f3dc1f16]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;padding:.6rem}.shopCart-page .flex-bottom[data-v-f3dc1f16]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;height:5.4rem}.shopCart-page .flex-bottom.h31[data-v-f3dc1f16]{height:3.1rem}.shopCart-page .top-tips[data-v-f3dc1f16]{overflow:hidden;font-size:.9rem;font-weight:600;color:#f73;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.shopCart-page .merchandiseList-box[data-v-f3dc1f16]{background-color:#fff;border-radius:.3rem;margin-bottom:.4rem}.shopCart-page .merchandiseList-box .tips[data-v-f3dc1f16]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC,sans-serif;font-weight:600;color:#333;line-height:1.13rem;padding:.8rem 0 .2rem .8rem}.shopCart-page .merchandiseList-box .coupon-tips-wrap[data-v-f3dc1f16]{padding:.6rem .6rem 0}.shopCart-page .merchandiseList-box .coupon-tips[data-v-f3dc1f16]{height:1.8rem;background:#fff0f0;border-radius:.3rem;border:1px solid rgba(255,63,63,.4);-ms-flex-align:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .4rem 0 .6rem}.shopCart-page .merchandiseList-box .coupon-tips .left-box[data-v-f3dc1f16],.shopCart-page .merchandiseList-box .coupon-tips[data-v-f3dc1f16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.shopCart-page .merchandiseList-box .coupon-tips .left-box[data-v-f3dc1f16]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center}.shopCart-page .merchandiseList-box .coupon-tips .left-box .icon[data-v-f3dc1f16]{width:.8rem;height:.8rem;background-image:url(" + escape(__webpack_require__(2126)) + ");background-size:cover;margin-right:.4rem}.shopCart-page .merchandiseList-box .coupon-tips .right-box[data-v-f3dc1f16]{font-size:.7rem;font-weight:400;color:#ff3f3f;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shopCart-page .merchandiseList-box .coupon-tips .right-box .price-text[data-v-f3dc1f16]{font-family:PingFangSC-Regular,PingFang SC,sans-serif}.shopCart-page .merchandiseList-box .coupon-tips .text[data-v-f3dc1f16]{font-size:.7rem;font-weight:400;color:#333;font-family:PingFangSC-Regular,PingFang SC,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:9.8rem}.shopCart-page .merchandiseList-box .md-item[data-v-f3dc1f16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.8rem .6rem}.shopCart-page .merchandiseList-box .md-item .select-icon[data-v-f3dc1f16]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;width:.8rem;height:.8rem;margin-right:.4rem;background-size:cover;border:1px solid #d6d7d8;border-radius:.8rem}.shopCart-page .merchandiseList-box .md-item .select-icon.disable[data-v-f3dc1f16]{border-color:#d6d7d8;background-image:url(" + escape(__webpack_require__(792)) + ")}.shopCart-page .merchandiseList-box .md-item .select-icon.cur[data-v-f3dc1f16]{border-color:#177afa;background-image:url(" + escape(__webpack_require__(793)) + ")}.shopCart-page .merchandiseList-box .md-item .right-box[data-v-f3dc1f16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.shopCart-page .merchandiseList-box .md-item .md-item-img[data-v-f3dc1f16]{width:4rem;height:4rem;line-height:4rem;overflow:hidden;border-radius:.2rem;margin-right:.6rem;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shopCart-page .merchandiseList-box .md-item .md-item-img img[data-v-f3dc1f16]{width:100%;height:auto}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox[data-v-f3dc1f16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .title[data-v-f3dc1f16]{font-size:.8rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;width:10.5rem;white-space:nowrap;font-family:PingFangSC-Semibold,PingFang SC,sans-serif}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .sub-title[data-v-f3dc1f16]{font-size:.6rem;color:#999;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.8rem;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box .price-text[data-v-f3dc1f16]{color:#ff3f3f;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box .price-text span[data-v-f3dc1f16]{font-size:.6rem;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box .price-text .origin-price[data-v-f3dc1f16]{color:#999;text-decoration:line-through}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__input{background-color:transparent;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__minus:after,.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__minus:before,.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__plus:after,.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__plus:before{top:50%;left:50%;right:auto;bottom:auto;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__minus:before,.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__plus:before{width:.45rem;height:.08rem}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__minus:after,.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__plus:after{height:.45rem;width:.08rem}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__minus,.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__plus{width:1rem;height:1rem;border-radius:40px;background-color:#fff;border:.05rem solid #eee;color:#333}.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__minus--disabled,.shopCart-page .merchandiseList-box .md-item .md-item-infoBox .price-box[data-v-f3dc1f16] .van-stepper__plus--disabled{color:#ccc;border-radius:50px}.shopCart-page .mid-tips[data-v-f3dc1f16]{color:#999;font-size:.7rem;line-height:1rem}.shopCart-page .user-address-mod[data-v-f3dc1f16]{height:2.3rem;background-color:#fff6eb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .6rem}.shopCart-page .user-address-mod.jc-center[data-v-f3dc1f16]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.shopCart-page .user-address-mod.bgNone[data-v-f3dc1f16]{background-color:transparent}.shopCart-page .user-address-mod .p2[data-v-f3dc1f16]{height:.7rem;font-weight:600;color:#f73;line-height:.7rem}.shopCart-page .user-address-mod .l-box .p-t[data-v-f3dc1f16]{height:.7rem;font-size:.7rem;line-height:.7rem;margin-bottom:.2rem;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .user-address-mod .l-box .p-t span[data-v-f3dc1f16]{color:#f73;margin-left:.4rem;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .user-address-mod .l-box .p-b[data-v-f3dc1f16]{height:.6rem;font-size:.6rem;line-height:.6rem;color:#999;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .user-address-mod .r-box[data-v-f3dc1f16]{width:.34rem;height:.6rem;background:#fff6eb url(" + escape(__webpack_require__(794)) + ") 0 0/cover no-repeat}.shopCart-page .payPrice-mod[data-v-f3dc1f16]{background-color:#fff;padding:.4rem .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shopCart-page .payPrice-mod .price-box .p1[data-v-f3dc1f16]{color:#ff3f3f;height:.8rem;font-size:.8rem;font-weight:600;line-height:.8rem;margin-bottom:.4rem;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .payPrice-mod .price-box .p2[data-v-f3dc1f16]{height:.6rem;font-size:.6rem;line-height:.6rem;color:#999;font-family:PingFangSC-Regular,PingFang SC,serif;white-space:nowrap;width:11.5rem;overflow-y:hidden;overflow-x:auto}.shopCart-page .payPrice-mod .price-box .p2 span[data-v-f3dc1f16]{margin-left:.4rem;height:.6rem;font-size:.6rem;line-height:.6rem;color:#999;font-family:PingFangSC-Regular,PingFang SC,serif}.shopCart-page .payPrice-mod .pay-btn[data-v-f3dc1f16]{width:5.4rem;height:2.3rem;background-color:#177afa;border-radius:.3rem;font-size:.85rem;font-weight:400;color:#fff;line-height:2.3rem;text-align:center}.shopCart-page .payPrice-mod .pay-btn.disable[data-v-f3dc1f16]{background-color:rgba(23,122,250,.4)}.shopCart-page .van-popup[data-v-f3dc1f16]{background-color:transparent}.shopCart-page .coupon-pop[data-v-f3dc1f16]{width:13.95rem}.shopCart-page .coupon-pop .btm[data-v-f3dc1f16],.shopCart-page .coupon-pop .top[data-v-f3dc1f16]{background-size:cover}.shopCart-page .coupon-pop .top[data-v-f3dc1f16]{height:6.35rem;background-image:url(" + escape(__webpack_require__(2127)) + ");display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.05rem 0 .2rem .6rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shopCart-page .coupon-pop .top .left-box[data-v-f3dc1f16]{width:4.9rem;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}.shopCart-page .coupon-pop .top .left-box .price-text[data-v-f3dc1f16]{font-size:1.2rem;font-family:PingFangSC-Semibold,PingFang SC,sans-serif;font-weight:600;color:#ff3f3f;margin-bottom:.2rem;line-height:1.2rem;text-align:center}.shopCart-page .coupon-pop .top .left-box .price-text span[data-v-f3dc1f16]{font-size:.7rem}.shopCart-page .coupon-pop .top .left-box .price-tips[data-v-f3dc1f16]{text-align:center;font-size:.55rem;font-family:PingFangSC-Regular,PingFang SC,sans-serif;font-weight:400;color:#ff6e6e;line-height:.55rem}.shopCart-page .coupon-pop .top .right-box[data-v-f3dc1f16]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:0 1.1rem 0 .6rem}.shopCart-page .coupon-pop .top .right-box .title-text[data-v-f3dc1f16]{font-size:.7rem;font-weight:600;color:#333;line-height:1rem;margin-bottom:.65rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.shopCart-page .coupon-pop .top .right-box .timer[data-v-f3dc1f16]{font-size:.55rem;font-family:PingFangSC-Regular,PingFang SC,sans-serif;font-weight:400;color:#666;line-height:.55rem}.shopCart-page .coupon-pop .mid[data-v-f3dc1f16]{margin-top:-1px;padding:0 .3rem;background:-webkit-gradient(linear,left top,left bottom,from(#ed181b),to(#eb1417));background:linear-gradient(180deg,#ed181b,#eb1417)}.shopCart-page .coupon-pop .mid .in-min[data-v-f3dc1f16]{background-color:#b90001;font-size:.6rem;font-weight:400;color:#fff;padding:0 .3rem}.shopCart-page .coupon-pop .btm[data-v-f3dc1f16]{height:6.55rem;text-align:center;padding-top:3.5rem;background-image:url(" + escape(__webpack_require__(2128)) + ");font-size:.9rem;font-weight:600;color:#541c1e}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/successPay.6c36222.png";module.exports = __webpack_require__.p + "static/img/coupon.fe8ca85.png";module.exports = __webpack_require__.p + "static/img/radio1_icon.cd43e64.png";module.exports = __webpack_require__.p + "static/img/radio1_checked_icon.e04ecd4.png";module.exports = __webpack_require__.p + "static/img/arrow_r.7867ace.png";module.exports = __webpack_require__.p + "static/img/coupon-top.5b348d8.png";module.exports = __webpack_require__.p + "static/img/coupon-bottom.c63bd1f.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(2139);
var _loading = _interopRequireDefault(__webpack_require__(91));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(2140);
var _stepper = _interopRequireDefault(__webpack_require__(2143));
var _vant = __webpack_require__(12);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'ShopCart',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _stepper.default.name, _stepper.default), _toast.default.name, _toast.default), _popup.default.name, _popup.default), _loading.default.name, _loading.default), _icon.default.name, _icon.default),
  data: function data() {
    return {
      isLoad: true,
      shoppingCartCouponContentVo: {},
      // 代金券信息
      couponType: '',
      // 代金券状态
      isShowCouponPop: false,
      maxTimes: 0,
      shoppingCartNo: '',
      userAddress: '',
      initShopCart: '',
      merchandiseList: [],
      // 商品列表
      selectedMerchandiseList: [],
      // 已选商品列表
      totalPrice: 0,
      totalOriginPrice: 0,
      totalPostage: 0,
      reductionPrice: 0,
      isPaySuccess: false,
      selectTypes: 2,
      // 客户选择商品方式0至少选择一种，1指定数量，2购买全部
      selectNum: 0 // 客户选择商品的指定数量 selectTypes!==2 时有效
    };
  },
  created: function created() {
    this.shoppingCartNo = this.getUrlKey('shoppingCartNo');
    this.getCartList();
    if (!this._Util.isApp() && !this._Util.isMPaaS() && localStorage.getItem('inWxMinapp') !== '1') {
      if (true) {
        this._Util.getKaluliAuth(this);
      }
    }
  },
  methods: {
    /**
     * 领取优惠券
     */
    getCoupon: function getCoupon() {
      var _this = this;
      this._Util.post(this._Api.GET_SHOPPING_CART_COUPON, _objectSpread({}, this.shoppingCartCouponContentVo), function (data) {
        (0, _toast.default)('领取成功');
        _this.couponType = 1;
        _this.countPrice();
      }, function () {}, this);
    },
    /**
     * 使用优惠券
     */
    useCoupon: function useCoupon() {
      if (this.couponType === 0) {
        this.getCoupon();
      }
      this.isShowCouponPop = false;
    },
    /**
     * 支付调取kaluli
     */
    getKaluliAuth: function getKaluliAuth(self) {
      if (window.location.href.indexOf('kaluli') === -1) {
        this.post(self._Api.POST_GET_GETKALULIAPPID, {}, function (data) {
          if (data) {
            var hr = window.location.href.substr(0, window.location.href.indexOf('code=') - 1) || window.location.href;
            window.location.replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + data.appId + '&redirect_uri=' + escape(hr) + '&action=viewtest&response_type=code&scope=snsapi_base&state=kaluli#wechat_redirect');
          }
        }, function () {}, self, true);
      } else {
        var reg = new RegExp('(^|&)code=([^&]*)(&|$)');
        var r = location.search.substr(1).match(reg);
        var code = r == null ? null : decodeURI(r[2]);
        this.post(self._Api.POST_GET_GETKLLOPENIDBYCODE, {
          code: code
        }, function () {}, function () {}, self, true);
      }
    },
    /**
     * 获取UrlKey
     * @param[name] key值
     */
    getUrlKey: function getUrlKey(name) {
      // eslint-disable-next-line no-sparse-arrays
      return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ''])[1].replace(/\+/g, '%20')) || null;
    },
    /**
     * 创建订单 跳信支付
     */
    submitPay: function submitPay() {
      var _this2 = this;
      if (!+this.initShopCart.needAddress && !this.userAddress) {
        (0, _toast.default)('请填写收货地址');
        return;
      }
      if (this.selectTypes !== 2 && this.selectedMerchandiseList.length < this.selectNum) {
        (0, _toast.default)('请选择商品');
        return;
      }
      var params = {
        receiveName: this.userAddress.receiptName || '',
        receivePhone: this.userAddress.receiptPhone || '',
        province: this.userAddress.province || '',
        address: this.userAddress.address || '',
        city: this.userAddress.city || '',
        district: this.userAddress.dist || '',
        merchandiseList: this.selectedMerchandiseList,
        shoppingCartId: this.initShopCart.id,
        totalPostage: this.totalPostage,
        totalPrice: this.totalPrice,
        couponId: this.shoppingCartCouponContentVo ? this.shoppingCartCouponContentVo.id : null
      };
      this._Util.post(this._Api.CREATE_ORDER, params, function (data) {
        _this2._Util.sensorsCollect('element_click', {
          operation_page: '定制购物车',
          $element_name: "\u5B9A\u5236\u8D2D\u7269\u8F66-".concat(_this2.totalPrice > 0 ? '支付' : '领取'),
          $element_content: "\u5B9A\u5236\u8D2D\u7269\u8F66-".concat(_this2.totalPrice > 0 ? '支付' : '领取'),
          element_class_name: '',
          element_type: '',
          element_target_url: '',
          $url: location.href,
          title: document.title,
          moudle_type: '定制购物车',
          correlation_id: _this2.initShopCart.id
        });
        if (_this2.totalPrice === 0 && !data.jsApiParameters) {
          _this2.isPaySuccess = true;
          _this2.selectedMerchandiseList = [];
          return;
        }
        // 微信支付
        _this2._Util.wxPay(data.jsApiParameters, function () {
          _this2.isPaySuccess = true;
          _this2.selectedMerchandiseList = [];
        });
      }, function () {}, this);
    },
    /**
     * 进入我的收货地址
     */
    goLocationList: function goLocationList() {
      this.$router.push({
        name: 'locationList'
      });
    },
    /**
     * 去首页
     */
    goIndex: function goIndex() {
      this.$router.push({
        name: 'fms'
      });
    },
    /**
     * 获取地址列表
     */
    getAddressList: function getAddressList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_ADDRESS_GET_LIST, {}, function (data) {
        if (data && data.length > 0) {
          data.forEach(function (v) {
            if (v.isDefault === 1) {
              _this3.userAddress = v;
            }
          });
          if (+_this3.initShopCart.freeShipping) {
            _this3.countPrice();
          } else {
            if (_this3.selectTypes === 2) {
              _this3.countPostage();
            }
          }
        } else {
          _this3.countPrice();
        }
      }, function () {}, this);
    },
    /**
     * 增加数量计算价格
     */
    onChange: function onChange() {
      // this.selectTypes 2为全部
      this.countPostage();
    },
    /**
     * 选择商品
     *@param[i] 点击的索引
     *@param[code] 商品code
     */
    selectMerchandise: function selectMerchandise(i, code) {
      if (this.selectTypes === 2) return;
      var flag = false;
      var item = this.merchandiseList[i];
      var selectedList = this.selectedMerchandiseList;
      // 当this.selectTypes !== 1 以下商品多选多逻辑
      if (item.isSelected) {
        item.isSelected = false;
        var index = selectedList.findIndex(function (v) {
          return v.code === code;
        });
        selectedList.splice(index, 1);
        this.merchandiseList.forEach(function (v) {
          v.disable = false;
        });
      } else {
        // 当this.selectTypes === 0 不走置灰逻辑
        if (this.selectTypes === 0) {
          item.isSelected = true;
          selectedList.push(item);
          this.countPostage();
          return;
        }
        if (selectedList.length < this.selectNum) {
          item.isSelected = true;
          selectedList.push(item);
          if (this.selectNum - selectedList.length === 0) {
            this.merchandiseList.forEach(function (v) {
              v.disable = !v.isSelected;
            });
            this.merchandiseList.splice();
          }
        } else {
          flag = true;
        }
      }
      if (flag) return;
      this.countPostage();
    },
    /**
     * 定制购物init
     */
    getCartList: function getCartList() {
      var _this4 = this;
      this._Util.post(this._Api.GET_CART_LIST, {
        shoppingCartNo: this.shoppingCartNo
      }, function (data) {
        if (data === 'toPayPage') {
          _this4.isLoad = false;
          _this4.isPaySuccess = true;
          return;
        }
        // chooseNum
        _this4.initShopCart = data;
        _this4.isLoad = false;
        _this4.selectNum = data.selectNum;
        _this4.selectTypes = data.selectTypes;
        _this4.merchandiseList = data.merchandiseList;
        _this4.shoppingCartCouponContentVo = data.shoppingCartCouponContentVo;
        // 有券并可以领取和使用展示券弹层
        _this4.couponType = data.couponType;
        if (_this4.shoppingCartCouponContentVo && (_this4.couponType === 0 || _this4.couponType === 1)) {
          _this4.isShowCouponPop = true;
        }
        if (_this4.merchandiseList && _this4.merchandiseList.length > 0) {
          _this4.merchandiseList.forEach(function (v) {
            v.isSelected = _this4.selectTypes === 2;
            // v.maxNum = 10 // 开发用
            v.chooseNum = 1;
            if (+data.shoppingCartType === 1) {
              v.chooseNum = v.maxNum ? v.maxNum : 1;
            }
          });
          // this.selectTypes === 2 全部商品必须购买
          if (_this4.selectTypes === 2) {
            _this4.selectedMerchandiseList = _this4.merchandiseList;
          }
        }
        _this4._Util.sensorsCollect('enter_cart', {
          operation_page: '定制购物车',
          $element_name: '进入定制购物车',
          element_class_name: '',
          element_type: '',
          element_target_url: '',
          $url: location.href,
          title: document.title,
          moudle_type: '定制购物车',
          correlation_id: _this4.initShopCart.id
        });
        _this4.getAddressList();
      }, function () {}, this, false);
    },
    /**
     * 计算费用
     */
    countPrice: function countPrice() {
      var postage = this.totalPostage || 0;
      var merchandiseList = [];
      var couponAmount = 0;
      if (this.couponType === 1) {
        couponAmount = this.shoppingCartCouponContentVo.amount;
      }
      this.selectedMerchandiseList.forEach(function (v) {
        if (v.isSelected) {
          merchandiseList.push(v);
        }
      });
      if (merchandiseList.length <= 0) {
        this.totalPrice = 0;
        this.totalOriginPrice = 0;
        this.reductionPrice = 0;
        return;
      }
      var totalOriginPrice = 0;
      var totalPrice = 0;
      // 浮点数精度计算问题
      function floatParse(expr) {
        return parseFloat(expr.toFixed(10));
      }
      merchandiseList.forEach(function (item) {
        floatParse(totalOriginPrice += item.originalPrice * item.chooseNum);
        floatParse(totalPrice += item.shoppingCartPrice * item.chooseNum);
      });
      this.totalPrice = floatParse(totalPrice + postage - couponAmount);
      this.totalOriginPrice = floatParse(totalOriginPrice + postage);
      this.reductionPrice = floatParse(totalOriginPrice - totalPrice);
      this.totalPrice = this.totalPrice < 0 ? 0 : this.totalPrice;
      if (this.shoppingCartCouponContentVo) {
        this.totalPrice = this.totalPrice <= 0 ? 0.01 : this.totalPrice;
      }
      this.totalOriginPrice = this.totalOriginPrice < 0 ? 0 : this.totalOriginPrice;
      this.reductionPrice = this.reductionPrice < 0 ? 0 : this.reductionPrice;
    },
    /**
     * 计算邮费
     */
    countPostage: function countPostage() {
      var _this5 = this;
      var totalHtWeight = 0;
      if (this.selectedMerchandiseList.length <= 0) {
        this.totalPostage = 0;
        this.countPrice();
        return;
      }
      if (+this.initShopCart.freeShipping) {
        this.totalPostage = 0;
        this.countPrice();
        return;
      }
      this.selectedMerchandiseList.forEach(function (item) {
        parseFloat((totalHtWeight += item.htWeight * item.chooseNum).toFixed(10));
      });
      var param = {
        province: this.userAddress.province,
        modelId: this.initShopCart.shippingRuleId,
        weight: totalHtWeight
      };
      this._Util.post(this._Api.COUNT_POSTAGE, param, function (data) {
        // this.initShopCart = data
        _this5.totalPostage = data;
        _this5.countPrice();
      }, function () {}, this, false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isPaySuccess)?_c('div',{staticClass:"shopCart-success-page"},[_c('div',{staticClass:"success-icon"}),_vm._v(" "),_c('p',{staticClass:"title"},[_vm._v(_vm._s(_vm.totalPrice > 0?'支付':'领取')+"成功")]),_vm._v(" "),_c('div',{staticClass:"bottom-btn",on:{"click":_vm.goIndex}},[_vm._v("去卡修宝典首页")])]):_c('div',{staticClass:"shopCart-page"},[(_vm.isLoad)?_c('div',{staticClass:"loading"},[_c('van-loading')],1):[(_vm.initShopCart.headMsg)?_c('div',{staticClass:"flex-top"},[_c('p',{staticClass:"top-tips"},[_vm._v(_vm._s(_vm.initShopCart.headMsg))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"flex-mid"},[_c('ul',{staticClass:"merchandiseList-box"},[(_vm.selectTypes === 1)?_c('li',{staticClass:"tips"},[_vm._v("\n          以下礼品 "+_vm._s(_vm.merchandiseList && _vm.merchandiseList.length)+" 选 "+_vm._s(_vm.selectNum)+"：\n        ")]):_vm._e(),_vm._v(" "),(_vm.selectTypes === 0)?_c('li',{staticClass:"tips"},[_vm._v("\n          以下礼品至少选1件：\n        ")]):_vm._e(),_vm._v(" "),(_vm.shoppingCartCouponContentVo)?_c('li',{staticClass:"coupon-tips-wrap",on:{"click":function($event){_vm.isShowCouponPop = true}}},[_c('div',{staticClass:"coupon-tips"},[_c('div',{staticClass:"left-box"},[_c('div',{staticClass:"icon"}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v(_vm._s(_vm.shoppingCartCouponContentVo.name))])]),_vm._v(" "),_c('div',{staticClass:"right-box"},[(_vm.couponType === 0)?_c('span',[_vm._v("立即领取")]):_c('span',[_vm._v("-￥"),_c('span',{staticClass:"price-text"},[_vm._v(_vm._s(_vm.shoppingCartCouponContentVo.amount))])]),_vm._v(" "),_c('van-icon',{attrs:{"size":"0.5rem","name":"arrow"}})],1)])]):_vm._e(),_vm._v(" "),_vm._l((_vm.merchandiseList),function(item,index){return _c('li',{key:item.code+index,staticClass:"md-item",on:{"click":function($event){$event.stopPropagation();return _vm.selectMerchandise(index,item.code)}}},[(_vm.selectTypes !== 2)?_c('div',{staticClass:"select-icon",class:{'cur':item.isSelected,'disable':item.disable}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box"},[_c('div',{staticClass:"md-item-img"},[_c('img',{attrs:{"src":item.picUrl,"alt":item.mdseName}})]),_vm._v(" "),_c('div',{staticClass:"md-item-infoBox"},[_c('div',{staticClass:"title-box"},[_c('p',{staticClass:"title"},[_vm._v(_vm._s(item.mdseName)+" ")]),_vm._v(" "),(item.maxNum > 0)?_c('p',{staticClass:"sub-title"},[_vm._v("限"+_vm._s(item.maxNum)+"件")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"price-box"},[_c('div',{staticClass:"price-text"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(item.shoppingCartPrice)+" "),_c('span',{staticClass:"origin-price"},[_vm._v("￥"+_vm._s(item.originalPrice))])]),_vm._v(" "),_c('div',{staticClass:"step-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('van-stepper',{attrs:{"min":"1","input-width":"30","max":item.maxNum > 0 ? item.maxNum : Infinity,"disable-input":""},on:{"change":_vm.onChange},model:{value:(item.chooseNum),callback:function ($$v) {_vm.$set(item, "chooseNum", $$v)},expression:"item.chooseNum"}})],1)])])])])})],2),_vm._v(" "),(_vm.initShopCart.bottomMsg)?_c('p',{staticClass:"mid-tips"},[_vm._v(_vm._s(_vm.initShopCart.bottomMsg))]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"flex-bottom",class:{'h31':+_vm.initShopCart.needAddress}},[(!+_vm.initShopCart.needAddress)?_c('div',{staticClass:"user-address-mod",class:{'jc-center':!_vm.userAddress},on:{"click":_vm.goLocationList}},[(_vm.userAddress)?[_c('div',{staticClass:"l-box"},[_c('p',{staticClass:"p-t"},[_vm._v("\n              "+_vm._s(_vm.userAddress.receiptName)+"    "+_vm._s(_vm.userAddress.receiptPhone)),_c('span',[_vm._v(_vm._s(+_vm.initShopCart.freeShipping ? '包邮':("运费:￥" + _vm.totalPostage)))])]),_vm._v(" "),_c('p',{staticClass:"p-b"},[_vm._v("收货地址："+_vm._s(_vm.userAddress.province)+" "+_vm._s(_vm.userAddress.city)+"  "+_vm._s(_vm.userAddress.dist)+" "+_vm._s(_vm.userAddress.address)+" ")])]),_vm._v(" "),_c('div',{staticClass:"r-box"})]:_c('p',{staticClass:"p2"},[_vm._v("+请填写收货地址")])],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"payPrice-mod"},[_c('div',{staticClass:"price-box"},[_c('p',{staticClass:"p1"},[_vm._v("应付：¥ "+_vm._s(_vm.totalPrice))]),_vm._v(" "),_c('p',{staticClass:"p2"},[_vm._v("总计￥"+_vm._s(_vm.totalOriginPrice)+"\n            "),_c('span',[_vm._v("立减￥"+_vm._s(_vm.reductionPrice))]),_vm._v(" "),(_vm.shoppingCartCouponContentVo)?_c('span',[_vm._v("代金券￥"+_vm._s((_vm.shoppingCartCouponContentVo && _vm.shoppingCartCouponContentVo.amount) || 0))]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"pay-btn",class:{'disable': _vm.selectTypes!==2 ? _vm.selectedMerchandiseList.length < _vm.selectNum : false},on:{"click":_vm.submitPay}},[_vm._v("\n          立即"+_vm._s(_vm.totalPrice > 0 ? '支付':'领取')+"\n        ")])])]),_vm._v(" "),_c('van-popup',{attrs:{"close-on-click-overlay":false,"get-container":"#app"},model:{value:(_vm.isShowCouponPop),callback:function ($$v) {_vm.isShowCouponPop=$$v},expression:"isShowCouponPop"}},[(_vm.shoppingCartCouponContentVo)?_c('div',{staticClass:"coupon-pop"},[_c('div',{staticClass:"top"},[_c('div',{staticClass:"left-box"},[_c('p',{staticClass:"price-text"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(_vm.shoppingCartCouponContentVo.amount))]),_vm._v(" "),_c('p',{staticClass:"price-tips"},[_vm._v("满¥"+_vm._s(_vm.shoppingCartCouponContentVo.lessAmount)+"可用")])]),_vm._v(" "),_c('div',{staticClass:"right-box"},[_c('p',{staticClass:"title-text"},[_vm._v(_vm._s(_vm.shoppingCartCouponContentVo.name))]),_vm._v(" "),(_vm.couponType)?_c('p',{staticClass:"timer"},[_vm._v("有效期至："+_vm._s(_vm._Util.parseTime(_vm.shoppingCartCouponContentVo.outTime, '{y}.{m}.{d}')))]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"mid"},[_c('div',{staticClass:"in-min"},[_vm._v(_vm._s(_vm.shoppingCartCouponContentVo.description || ''))])]),_vm._v(" "),_c('div',{staticClass:"btm",on:{"click":_vm.useCoupon}},[_vm._v(" "+_vm._s(_vm.couponType ? '立即使用':'立即领取并使用'))])]):_vm._e()])]],2)}
var staticRenderFns = []


exports.__esModule = true;
exports.route = route;
exports.functionalRoute = functionalRoute;
exports.routeProps = void 0;

/**
 * Vue Router support
 */
function isRedundantNavigation(err) {
  return err.name === 'NavigationDuplicated' || // compatible with vue-router@3.3
  err.message && err.message.indexOf('redundant navigation') !== -1;
}

function route(router, config) {
  var to = config.to,
      url = config.url,
      replace = config.replace;

  if (to && router) {
    var promise = router[replace ? 'replace' : 'push'](to);
    /* istanbul ignore else */

    if (promise && promise.catch) {
      promise.catch(function (err) {
        if (err && !isRedundantNavigation(err)) {
          throw err;
        }
      });
    }
  } else if (url) {
    replace ? location.replace(url) : location.href = url;
  }
}

function functionalRoute(context) {
  route(context.parent && context.parent.$router, context.props);
}

var routeProps = {
  url: String,
  replace: Boolean,
  to: [String, Object]
};
exports.routeProps = routeProps;// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2149);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4efa1e6c", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-button{position:relative;display:inline-block;box-sizing:border-box;height:44px;margin:0;padding:0;font-size:16px;line-height:1.2;text-align:center;border-radius:2px;cursor:pointer;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-appearance:none}.van-button::before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:#000;border:inherit;border-color:#000;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:' '}.van-button:active::before{opacity:.1}.van-button--disabled::before,.van-button--loading::before{display:none}.van-button--default{color:#323233;background-color:#fff;border:1px solid #ebedf0}.van-button--primary{color:#fff;background-color:#07c160;border:1px solid #07c160}.van-button--info{color:#fff;background-color:#1989fa;border:1px solid #1989fa}.van-button--danger{color:#fff;background-color:#ee0a24;border:1px solid #ee0a24}.van-button--warning{color:#fff;background-color:#ff976a;border:1px solid #ff976a}.van-button--plain{background-color:#fff}.van-button--plain.van-button--primary{color:#07c160}.van-button--plain.van-button--info{color:#1989fa}.van-button--plain.van-button--danger{color:#ee0a24}.van-button--plain.van-button--warning{color:#ff976a}.van-button--large{width:100%;height:50px}.van-button--normal{padding:0 15px;font-size:14px}.van-button--small{height:32px;padding:0 8px;font-size:12px}.van-button__loading{color:inherit;font-size:inherit}.van-button--mini{height:24px;padding:0 4px;font-size:10px}.van-button--mini+.van-button--mini{margin-left:4px}.van-button--block{display:block;width:100%}.van-button--disabled{cursor:not-allowed;opacity:.5}.van-button--loading{cursor:default}.van-button--round{border-radius:999px}.van-button--square{border-radius:0}.van-button__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:100%}.van-button__content::before{content:' '}.van-button__icon{font-size:1.2em;line-height:inherit}.van-button__icon+.van-button__text,.van-button__loading+.van-button__text,.van-button__text+.van-button__icon,.van-button__text+.van-button__loading{margin-left:4px}.van-button--hairline{border-width:0}.van-button--hairline::after{border-color:inherit;border-radius:4px}.van-button--hairline.van-button--round::after{border-radius:999px}.van-button--hairline.van-button--square::after{border-radius:0}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/button/index.css"],"names":[],"mappings":"AAAA,YAAY,kBAAkB,qBAAqB,sBAAsB,YAAY,SAAS,UAAU,eAAe,gBAAgB,kBAAkB,kBAAkB,eAAe,+BAA+B,uBAAuB,uBAAuB,CAAC,oBAAoB,kBAAkB,QAAQ,SAAS,WAAW,YAAY,sBAAsB,eAAe,kBAAkB,sBAAsB,uCAAuC,+BAA+B,UAAU,WAAW,CAAC,2BAA2B,UAAU,CAAC,2DAA2D,YAAY,CAAC,qBAAqB,cAAc,sBAAsB,wBAAwB,CAAC,qBAAqB,WAAW,yBAAyB,wBAAwB,CAAC,kBAAkB,WAAW,yBAAyB,wBAAwB,CAAC,oBAAoB,WAAW,yBAAyB,wBAAwB,CAAC,qBAAqB,WAAW,yBAAyB,wBAAwB,CAAC,mBAAmB,qBAAqB,CAAC,uCAAuC,aAAa,CAAC,oCAAoC,aAAa,CAAC,sCAAsC,aAAa,CAAC,uCAAuC,aAAa,CAAC,mBAAmB,WAAW,WAAW,CAAC,oBAAoB,eAAe,cAAc,CAAC,mBAAmB,YAAY,cAAc,cAAc,CAAC,qBAAqB,cAAc,iBAAiB,CAAC,kBAAkB,YAAY,cAAc,cAAc,CAAC,oCAAoC,eAAe,CAAC,mBAAmB,cAAc,UAAU,CAAC,sBAAsB,mBAAmB,UAAU,CAAC,qBAAqB,cAAc,CAAC,mBAAmB,mBAAmB,CAAC,oBAAoB,eAAe,CAAC,qBAAqB,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,WAAW,CAAC,6BAA6B,WAAW,CAAC,kBAAkB,gBAAgB,mBAAmB,CAAC,sJAAsJ,eAAe,CAAC,sBAAsB,cAAc,CAAC,6BAA6B,qBAAqB,iBAAiB,CAAC,+CAA+C,mBAAmB,CAAC,gDAAgD,eAAe,CAAC","file":"index.css","sourcesContent":[".van-button{position:relative;display:inline-block;box-sizing:border-box;height:44px;margin:0;padding:0;font-size:16px;line-height:1.2;text-align:center;border-radius:2px;cursor:pointer;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-appearance:none}.van-button::before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:#000;border:inherit;border-color:#000;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:' '}.van-button:active::before{opacity:.1}.van-button--disabled::before,.van-button--loading::before{display:none}.van-button--default{color:#323233;background-color:#fff;border:1px solid #ebedf0}.van-button--primary{color:#fff;background-color:#07c160;border:1px solid #07c160}.van-button--info{color:#fff;background-color:#1989fa;border:1px solid #1989fa}.van-button--danger{color:#fff;background-color:#ee0a24;border:1px solid #ee0a24}.van-button--warning{color:#fff;background-color:#ff976a;border:1px solid #ff976a}.van-button--plain{background-color:#fff}.van-button--plain.van-button--primary{color:#07c160}.van-button--plain.van-button--info{color:#1989fa}.van-button--plain.van-button--danger{color:#ee0a24}.van-button--plain.van-button--warning{color:#ff976a}.van-button--large{width:100%;height:50px}.van-button--normal{padding:0 15px;font-size:14px}.van-button--small{height:32px;padding:0 8px;font-size:12px}.van-button__loading{color:inherit;font-size:inherit}.van-button--mini{height:24px;padding:0 4px;font-size:10px}.van-button--mini+.van-button--mini{margin-left:4px}.van-button--block{display:block;width:100%}.van-button--disabled{cursor:not-allowed;opacity:.5}.van-button--loading{cursor:default}.van-button--round{border-radius:999px}.van-button--square{border-radius:0}.van-button__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:100%}.van-button__content::before{content:' '}.van-button__icon{font-size:1.2em;line-height:inherit}.van-button__icon+.van-button__text,.van-button__loading+.van-button__text,.van-button__text+.van-button__icon,.van-button__text+.van-button__loading{margin-left:4px}.van-button--hairline{border-width:0}.van-button--hairline::after{border-color:inherit;border-radius:4px}.van-button--hairline.van-button--round::after{border-radius:999px}.van-button--hairline.van-button--square::after{border-radius:0}"],"sourceRoot":""}]);

// exports


exports.__esModule = true;
exports.BORDER_UNSET_TOP_BOTTOM = exports.BORDER_TOP_BOTTOM = exports.BORDER_SURROUND = exports.BORDER_BOTTOM = exports.BORDER_LEFT = exports.BORDER_TOP = exports.BORDER = exports.RED = void 0;
// color
var RED = '#ee0a24'; // border

exports.RED = RED;
var BORDER = 'van-hairline';
exports.BORDER = BORDER;
var BORDER_TOP = BORDER + "--top";
exports.BORDER_TOP = BORDER_TOP;
var BORDER_LEFT = BORDER + "--left";
exports.BORDER_LEFT = BORDER_LEFT;
var BORDER_BOTTOM = BORDER + "--bottom";
exports.BORDER_BOTTOM = BORDER_BOTTOM;
var BORDER_SURROUND = BORDER + "--surround";
exports.BORDER_SURROUND = BORDER_SURROUND;
var BORDER_TOP_BOTTOM = BORDER + "--top-bottom";
exports.BORDER_TOP_BOTTOM = BORDER_TOP_BOTTOM;
var BORDER_UNSET_TOP_BOTTOM = BORDER + "-unset--top-bottom";
exports.BORDER_UNSET_TOP_BOTTOM = BORDER_UNSET_TOP_BOTTOM;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

var _constant = __webpack_require__(166);

var _router = __webpack_require__(201);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _loading = _interopRequireDefault(__webpack_require__(91));

// Utils
// Components
var _createNamespace = (0, _utils.createNamespace)('button'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function Button(h, props, slots, ctx) {
  var _ref;

  var tag = props.tag,
      icon = props.icon,
      type = props.type,
      color = props.color,
      plain = props.plain,
      disabled = props.disabled,
      loading = props.loading,
      hairline = props.hairline,
      loadingText = props.loadingText,
      iconPosition = props.iconPosition;
  var style = {};

  if (color) {
    style.color = plain ? color : 'white';

    if (!plain) {
      // Use background instead of backgroundColor to make linear-gradient work
      style.background = color;
    } // hide border when color is linear-gradient


    if (color.indexOf('gradient') !== -1) {
      style.border = 0;
    } else {
      style.borderColor = color;
    }
  }

  function onClick(event) {
    if (props.loading) {
      event.preventDefault();
    }

    if (!loading && !disabled) {
      (0, _functional.emit)(ctx, 'click', event);
      (0, _router.functionalRoute)(ctx);
    }
  }

  function onTouchstart(event) {
    (0, _functional.emit)(ctx, 'touchstart', event);
  }

  var classes = [bem([type, props.size, {
    plain: plain,
    loading: loading,
    disabled: disabled,
    hairline: hairline,
    block: props.block,
    round: props.round,
    square: props.square
  }]), (_ref = {}, _ref[_constant.BORDER_SURROUND] = hairline, _ref)];

  function renderIcon() {
    if (loading) {
      return slots.loading ? slots.loading() : h(_loading.default, {
        "class": bem('loading'),
        "attrs": {
          "size": props.loadingSize,
          "type": props.loadingType,
          "color": "currentColor"
        }
      });
    }

    if (slots.icon) {
      return h("div", {
        "class": bem('icon')
      }, [slots.icon()]);
    }

    if (icon) {
      return h(_icon.default, {
        "attrs": {
          "name": icon,
          "classPrefix": props.iconPrefix
        },
        "class": bem('icon')
      });
    }
  }

  function renderContent() {
    var content = [];

    if (iconPosition === 'left') {
      content.push(renderIcon());
    }

    var text;

    if (loading) {
      text = loadingText;
    } else {
      text = slots.default ? slots.default() : props.text;
    }

    if (text) {
      content.push(h("span", {
        "class": bem('text')
      }, [text]));
    }

    if (iconPosition === 'right') {
      content.push(renderIcon());
    }

    return content;
  }

  return h(tag, (0, _babelHelperVueJsxMergeProps.default)([{
    "style": style,
    "class": classes,
    "attrs": {
      "type": props.nativeType,
      "disabled": disabled
    },
    "on": {
      "click": onClick,
      "touchstart": onTouchstart
    }
  }, (0, _functional.inherit)(ctx)]), [h("div", {
    "class": bem('content')
  }, [renderContent()])]);
}

Button.props = (0, _extends2.default)({}, _router.routeProps, {
  text: String,
  icon: String,
  color: String,
  block: Boolean,
  plain: Boolean,
  round: Boolean,
  square: Boolean,
  loading: Boolean,
  hairline: Boolean,
  disabled: Boolean,
  iconPrefix: String,
  nativeType: String,
  loadingText: String,
  loadingType: String,
  tag: {
    type: String,
    default: 'button'
  },
  type: {
    type: String,
    default: 'default'
  },
  size: {
    type: String,
    default: 'normal'
  },
  loadingSize: {
    type: String,
    default: '20px'
  },
  iconPosition: {
    type: String,
    default: 'left'
  }
});

var _default = createComponent(Button);

exports.default = _default;// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1949);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("9eb7120c", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-cell{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;overflow:hidden;color:#323233;font-size:14px;line-height:24px;background-color:#fff}.van-cell::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-cell--borderless::after,.van-cell:last-child::after{display:none}.van-cell__label{margin-top:4px;color:#969799;font-size:12px;line-height:18px}.van-cell__title,.van-cell__value{-webkit-box-flex:1;-webkit-flex:1;flex:1}.van-cell__value{position:relative;overflow:hidden;color:#969799;text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__value--alone{color:#323233;text-align:left}.van-cell__left-icon,.van-cell__right-icon{height:24px;font-size:16px;line-height:24px}.van-cell__left-icon{margin-right:4px}.van-cell__right-icon{margin-left:4px;color:#969799}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:#f2f3f5}.van-cell--required{overflow:visible}.van-cell--required::before{position:absolute;left:8px;color:#ee0a24;font-size:14px;content:'*'}.van-cell--center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.van-cell--large{padding-top:12px;padding-bottom:12px}.van-cell--large .van-cell__title{font-size:16px}.van-cell--large .van-cell__label{font-size:14px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/cell/index.css"],"names":[],"mappings":"AAAA,UAAU,kBAAkB,oBAAoB,qBAAqB,aAAa,sBAAsB,WAAW,kBAAkB,gBAAgB,cAAc,eAAe,iBAAiB,qBAAqB,CAAC,iBAAiB,kBAAkB,sBAAsB,YAAY,oBAAoB,WAAW,SAAS,UAAU,gCAAgC,6BAA6B,oBAAoB,CAAC,yDAAyD,YAAY,CAAC,iBAAiB,eAAe,cAAc,eAAe,gBAAgB,CAAC,kCAAkC,mBAAmB,eAAe,MAAM,CAAC,iBAAiB,kBAAkB,gBAAgB,cAAc,iBAAiB,sBAAsB,oBAAoB,CAAC,wBAAwB,cAAc,eAAe,CAAC,2CAA2C,YAAY,eAAe,gBAAgB,CAAC,qBAAqB,gBAAgB,CAAC,sBAAsB,gBAAgB,aAAa,CAAC,qBAAqB,cAAc,CAAC,4BAA4B,wBAAwB,CAAC,oBAAoB,gBAAgB,CAAC,4BAA4B,kBAAkB,SAAS,cAAc,eAAe,WAAW,CAAC,kBAAkB,yBAAyB,2BAA2B,kBAAkB,CAAC,iBAAiB,iBAAiB,mBAAmB,CAAC,kCAAkC,cAAc,CAAC,kCAAkC,cAAc,CAAC","file":"index.css","sourcesContent":[".van-cell{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;overflow:hidden;color:#323233;font-size:14px;line-height:24px;background-color:#fff}.van-cell::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-cell--borderless::after,.van-cell:last-child::after{display:none}.van-cell__label{margin-top:4px;color:#969799;font-size:12px;line-height:18px}.van-cell__title,.van-cell__value{-webkit-box-flex:1;-webkit-flex:1;flex:1}.van-cell__value{position:relative;overflow:hidden;color:#969799;text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__value--alone{color:#323233;text-align:left}.van-cell__left-icon,.van-cell__right-icon{height:24px;font-size:16px;line-height:24px}.van-cell__left-icon{margin-right:4px}.van-cell__right-icon{margin-left:4px;color:#969799}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:#f2f3f5}.van-cell--required{overflow:visible}.van-cell--required::before{position:absolute;left:8px;color:#ee0a24;font-size:14px;content:'*'}.van-cell--center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.van-cell--large{padding-top:12px;padding-bottom:12px}.van-cell--large .van-cell__title{font-size:16px}.van-cell--large .van-cell__label{font-size:14px}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2148);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("739c80dc", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-field__label{-webkit-box-flex:0;-webkit-flex:none;flex:none;box-sizing:border-box;width:6.2em;margin-right:12px;color:#646566;text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field--disabled .van-field__label{color:#c8c9cc}.van-field__value{overflow:visible}.van-field__body{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:#323233;line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none}.van-field__control::-webkit-input-placeholder{color:#c8c9cc}.van-field__control::placeholder{color:#c8c9cc}.van-field__control:disabled{color:#c8c9cc;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#c8c9cc}.van-field__control:read-only{cursor:default}.van-field__control--center{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.van-field__control--right{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;text-align:right}.van-field__control--custom{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;min-height:24px}.van-field__control[type=date],.van-field__control[type=datetime-local],.van-field__control[type=time]{min-height:24px}.van-field__control[type=search]{-webkit-appearance:none}.van-field__button,.van-field__clear,.van-field__icon,.van-field__right-icon{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:-8px;padding:0 8px;line-height:inherit}.van-field__clear{color:#c8c9cc;font-size:16px;cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:16px;line-height:inherit}.van-field__left-icon{margin-right:4px}.van-field__right-icon{color:#969799}.van-field__button{padding-left:8px}.van-field__error-message{color:#ee0a24;font-size:12px;text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:4px;color:#646566;font-size:12px;line-height:16px;text-align:right}.van-field--error .van-field__control::-webkit-input-placeholder{color:#ee0a24;-webkit-text-fill-color:currentColor}.van-field--error .van-field__control,.van-field--error .van-field__control::placeholder{color:#ee0a24;-webkit-text-fill-color:currentColor}.van-field--min-height .van-field__control{min-height:60px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/field/index.css"],"names":[],"mappings":"AAAA,kBAAkB,mBAAmB,kBAAkB,UAAU,sBAAsB,YAAY,kBAAkB,cAAc,gBAAgB,oBAAoB,CAAC,0BAA0B,iBAAiB,CAAC,yBAAyB,gBAAgB,CAAC,uCAAuC,aAAa,CAAC,kBAAkB,gBAAgB,CAAC,iBAAiB,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,kBAAkB,CAAC,oBAAoB,cAAc,sBAAsB,WAAW,YAAY,SAAS,UAAU,cAAc,oBAAoB,gBAAgB,6BAA6B,SAAS,WAAW,CAAC,+CAA+C,aAAa,CAAC,iCAAiC,aAAa,CAAC,6BAA6B,cAAc,mBAAmB,UAAU,+BAA+B,CAAC,8BAA8B,cAAc,CAAC,4BAA4B,wBAAwB,+BAA+B,uBAAuB,iBAAiB,CAAC,2BAA2B,qBAAqB,iCAAiC,yBAAyB,gBAAgB,CAAC,4BAA4B,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,eAAe,CAAC,uGAAuG,eAAe,CAAC,iCAAiC,uBAAuB,CAAC,6EAA6E,sBAAsB,aAAa,CAAC,yCAAyC,kBAAkB,cAAc,mBAAmB,CAAC,kBAAkB,cAAc,eAAe,cAAc,CAAC,iEAAiE,cAAc,eAAe,mBAAmB,CAAC,sBAAsB,gBAAgB,CAAC,uBAAuB,aAAa,CAAC,mBAAmB,gBAAgB,CAAC,0BAA0B,cAAc,eAAe,eAAe,CAAC,kCAAkC,iBAAiB,CAAC,iCAAiC,gBAAgB,CAAC,uBAAuB,eAAe,cAAc,eAAe,iBAAiB,gBAAgB,CAAC,iEAAiE,cAAc,oCAAoC,CAAC,yFAAyF,cAAc,oCAAoC,CAAC,2CAA2C,eAAe,CAAC","file":"index.css","sourcesContent":[".van-field__label{-webkit-box-flex:0;-webkit-flex:none;flex:none;box-sizing:border-box;width:6.2em;margin-right:12px;color:#646566;text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field--disabled .van-field__label{color:#c8c9cc}.van-field__value{overflow:visible}.van-field__body{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:#323233;line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none}.van-field__control::-webkit-input-placeholder{color:#c8c9cc}.van-field__control::placeholder{color:#c8c9cc}.van-field__control:disabled{color:#c8c9cc;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#c8c9cc}.van-field__control:read-only{cursor:default}.van-field__control--center{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.van-field__control--right{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;text-align:right}.van-field__control--custom{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;min-height:24px}.van-field__control[type=date],.van-field__control[type=datetime-local],.van-field__control[type=time]{min-height:24px}.van-field__control[type=search]{-webkit-appearance:none}.van-field__button,.van-field__clear,.van-field__icon,.van-field__right-icon{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:-8px;padding:0 8px;line-height:inherit}.van-field__clear{color:#c8c9cc;font-size:16px;cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:16px;line-height:inherit}.van-field__left-icon{margin-right:4px}.van-field__right-icon{color:#969799}.van-field__button{padding-left:8px}.van-field__error-message{color:#ee0a24;font-size:12px;text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:4px;color:#646566;font-size:12px;line-height:16px;text-align:right}.van-field--error .van-field__control::-webkit-input-placeholder{color:#ee0a24;-webkit-text-fill-color:currentColor}.van-field--error .van-field__control,.van-field--error .van-field__control::placeholder{color:#ee0a24;-webkit-text-fill-color:currentColor}.van-field--min-height .van-field__control{min-height:60px}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _resetScroll = __webpack_require__(1385);

var _number = __webpack_require__(167);

var _event = __webpack_require__(59);

var _scroll = __webpack_require__(89);

var _utils = __webpack_require__(18);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _cell = _interopRequireDefault(__webpack_require__(83));

var _shared = __webpack_require__(773);

// Utils
// Components
var _createNamespace = (0, _utils.createNamespace)('field'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  inheritAttrs: false,
  provide: function provide() {
    return {
      vanField: this
    };
  },
  inject: {
    vanForm: {
      default: null
    }
  },
  props: (0, _extends2.default)({}, _shared.cellProps, {
    name: String,
    rules: Array,
    disabled: {
      type: Boolean,
      default: null
    },
    readonly: {
      type: Boolean,
      default: null
    },
    autosize: [Boolean, Object],
    leftIcon: String,
    rightIcon: String,
    clearable: Boolean,
    formatter: Function,
    maxlength: [Number, String],
    labelWidth: [Number, String],
    labelClass: null,
    labelAlign: String,
    inputAlign: String,
    placeholder: String,
    errorMessage: String,
    errorMessageAlign: String,
    showWordLimit: Boolean,
    value: {
      type: [Number, String],
      default: ''
    },
    type: {
      type: String,
      default: 'text'
    },
    error: {
      type: Boolean,
      default: null
    },
    colon: {
      type: Boolean,
      default: null
    },
    clearTrigger: {
      type: String,
      default: 'focus'
    },
    formatTrigger: {
      type: String,
      default: 'onChange'
    }
  }),
  data: function data() {
    return {
      focused: false,
      validateFailed: false,
      validateMessage: ''
    };
  },
  watch: {
    value: function value() {
      this.updateValue(this.value);
      this.resetValidation();
      this.validateWithTrigger('onChange');
      this.$nextTick(this.adjustSize);
    }
  },
  mounted: function mounted() {
    this.updateValue(this.value, this.formatTrigger);
    this.$nextTick(this.adjustSize);

    if (this.vanForm) {
      this.vanForm.addField(this);
    }
  },
  beforeDestroy: function beforeDestroy() {
    if (this.vanForm) {
      this.vanForm.removeField(this);
    }
  },
  computed: {
    showClear: function showClear() {
      var readonly = this.getProp('readonly');

      if (this.clearable && !readonly) {
        var hasValue = (0, _utils.isDef)(this.value) && this.value !== '';
        var trigger = this.clearTrigger === 'always' || this.clearTrigger === 'focus' && this.focused;
        return hasValue && trigger;
      }
    },
    showError: function showError() {
      if (this.error !== null) {
        return this.error;
      }

      if (this.vanForm && this.vanForm.showError && this.validateFailed) {
        return true;
      }
    },
    listeners: function listeners() {
      return (0, _extends2.default)({}, this.$listeners, {
        blur: this.onBlur,
        focus: this.onFocus,
        input: this.onInput,
        click: this.onClickInput,
        keypress: this.onKeypress
      });
    },
    labelStyle: function labelStyle() {
      var labelWidth = this.getProp('labelWidth');

      if (labelWidth) {
        return {
          width: (0, _utils.addUnit)(labelWidth)
        };
      }
    },
    formValue: function formValue() {
      if (this.children && (this.$scopedSlots.input || this.$slots.input)) {
        return this.children.value;
      }

      return this.value;
    }
  },
  methods: {
    // @exposed-api
    focus: function focus() {
      if (this.$refs.input) {
        this.$refs.input.focus();
      }
    },
    // @exposed-api
    blur: function blur() {
      if (this.$refs.input) {
        this.$refs.input.blur();
      }
    },
    runValidator: function runValidator(value, rule) {
      return new Promise(function (resolve) {
        var returnVal = rule.validator(value, rule);

        if ((0, _utils.isPromise)(returnVal)) {
          return returnVal.then(resolve);
        }

        resolve(returnVal);
      });
    },
    isEmptyValue: function isEmptyValue(value) {
      if (Array.isArray(value)) {
        return !value.length;
      }

      if (value === 0) {
        return false;
      }

      return !value;
    },
    runSyncRule: function runSyncRule(value, rule) {
      if (rule.required && this.isEmptyValue(value)) {
        return false;
      }

      if (rule.pattern && !rule.pattern.test(value)) {
        return false;
      }

      return true;
    },
    getRuleMessage: function getRuleMessage(value, rule) {
      var message = rule.message;

      if ((0, _utils.isFunction)(message)) {
        return message(value, rule);
      }

      return message;
    },
    runRules: function runRules(rules) {
      var _this = this;

      return rules.reduce(function (promise, rule) {
        return promise.then(function () {
          if (_this.validateFailed) {
            return;
          }

          var value = _this.formValue;

          if (rule.formatter) {
            value = rule.formatter(value, rule);
          }

          if (!_this.runSyncRule(value, rule)) {
            _this.validateFailed = true;
            _this.validateMessage = _this.getRuleMessage(value, rule);
            return;
          }

          if (rule.validator) {
            return _this.runValidator(value, rule).then(function (result) {
              if (result === false) {
                _this.validateFailed = true;
                _this.validateMessage = _this.getRuleMessage(value, rule);
              }
            });
          }
        });
      }, Promise.resolve());
    },
    validate: function validate(rules) {
      var _this2 = this;

      if (rules === void 0) {
        rules = this.rules;
      }

      return new Promise(function (resolve) {
        if (!rules) {
          resolve();
        }

        _this2.resetValidation();

        _this2.runRules(rules).then(function () {
          if (_this2.validateFailed) {
            resolve({
              name: _this2.name,
              message: _this2.validateMessage
            });
          } else {
            resolve();
          }
        });
      });
    },
    validateWithTrigger: function validateWithTrigger(trigger) {
      if (this.vanForm && this.rules) {
        var defaultTrigger = this.vanForm.validateTrigger === trigger;
        var rules = this.rules.filter(function (rule) {
          if (rule.trigger) {
            return rule.trigger === trigger;
          }

          return defaultTrigger;
        });

        if (rules.length) {
          this.validate(rules);
        }
      }
    },
    resetValidation: function resetValidation() {
      if (this.validateFailed) {
        this.validateFailed = false;
        this.validateMessage = '';
      }
    },
    updateValue: function updateValue(value, trigger) {
      if (trigger === void 0) {
        trigger = 'onChange';
      }

      value = (0, _utils.isDef)(value) ? String(value) : ''; // native maxlength have incorrect line-break counting
      // see: https://github.com/vant-ui/vant/issues/5033

      var maxlength = this.maxlength;

      if ((0, _utils.isDef)(maxlength) && value.length > maxlength) {
        if (this.value && this.value.length === +maxlength) {
          value = this.value;
        } else {
          value = value.slice(0, maxlength);
        }
      }

      if (this.type === 'number' || this.type === 'digit') {
        var isNumber = this.type === 'number';
        value = (0, _number.formatNumber)(value, isNumber, isNumber);
      }

      if (this.formatter && trigger === this.formatTrigger) {
        value = this.formatter(value);
      }

      var input = this.$refs.input;

      if (input && value !== input.value) {
        input.value = value;
      }

      if (value !== this.value) {
        this.$emit('input', value);
      }
    },
    onInput: function onInput(event) {
      // not update v-model when composing
      if (event.target.composing) {
        return;
      }

      this.updateValue(event.target.value);
    },
    onFocus: function onFocus(event) {
      this.focused = true;
      this.$emit('focus', event); // https://github.com/vant-ui/vant/issues/9715

      this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari

      /* istanbul ignore if */

      if (this.getProp('readonly')) {
        this.blur();
      }
    },
    onBlur: function onBlur(event) {
      if (this.getProp('readonly')) {
        return;
      }

      this.focused = false;
      this.updateValue(this.value, 'onBlur');
      this.$emit('blur', event);
      this.validateWithTrigger('onBlur');
      this.$nextTick(this.adjustSize);
      (0, _resetScroll.resetScroll)();
    },
    onClick: function onClick(event) {
      this.$emit('click', event);
    },
    onClickInput: function onClickInput(event) {
      this.$emit('click-input', event);
    },
    onClickLeftIcon: function onClickLeftIcon(event) {
      this.$emit('click-left-icon', event);
    },
    onClickRightIcon: function onClickRightIcon(event) {
      this.$emit('click-right-icon', event);
    },
    onClear: function onClear(event) {
      (0, _event.preventDefault)(event);
      this.$emit('input', '');
      this.$emit('clear', event);
    },
    onKeypress: function onKeypress(event) {
      var ENTER_CODE = 13;

      if (event.keyCode === ENTER_CODE) {
        var submitOnEnter = this.getProp('submitOnEnter');

        if (!submitOnEnter && this.type !== 'textarea') {
          (0, _event.preventDefault)(event);
        } // trigger blur after click keyboard search button


        if (this.type === 'search') {
          this.blur();
        }
      }

      this.$emit('keypress', event);
    },
    adjustSize: function adjustSize() {
      var input = this.$refs.input;

      if (!(this.type === 'textarea' && this.autosize) || !input) {
        return;
      }

      var scrollTop = (0, _scroll.getRootScrollTop)();
      input.style.height = 'auto';
      var height = input.scrollHeight;

      if ((0, _utils.isObject)(this.autosize)) {
        var _this$autosize = this.autosize,
            maxHeight = _this$autosize.maxHeight,
            minHeight = _this$autosize.minHeight;

        if (maxHeight) {
          height = Math.min(height, maxHeight);
        }

        if (minHeight) {
          height = Math.max(height, minHeight);
        }
      }

      if (height) {
        input.style.height = height + 'px'; // https://github.com/vant-ui/vant/issues/9178

        (0, _scroll.setRootScrollTop)(scrollTop);
      }
    },
    genInput: function genInput() {
      var h = this.$createElement;
      var type = this.type;
      var disabled = this.getProp('disabled');
      var readonly = this.getProp('readonly');
      var inputSlot = this.slots('input');
      var inputAlign = this.getProp('inputAlign');

      if (inputSlot) {
        return h("div", {
          "class": bem('control', [inputAlign, 'custom']),
          "on": {
            "click": this.onClickInput
          }
        }, [inputSlot]);
      }

      var inputProps = {
        ref: 'input',
        class: bem('control', inputAlign),
        domProps: {
          value: this.value
        },
        attrs: (0, _extends2.default)({}, this.$attrs, {
          name: this.name,
          disabled: disabled,
          readonly: readonly,
          placeholder: this.placeholder
        }),
        on: this.listeners,
        // add model directive to skip IME composition
        directives: [{
          name: 'model',
          value: this.value
        }]
      };

      if (type === 'textarea') {
        return h("textarea", (0, _babelHelperVueJsxMergeProps.default)([{}, inputProps]));
      }

      var inputType = type;
      var inputMode; // type="number" is weird in iOS, and can't prevent dot in Android
      // so use inputmode to set keyboard in modern browsers

      if (type === 'number') {
        inputType = 'text';
        inputMode = 'decimal';
      }

      if (type === 'digit') {
        inputType = 'tel';
        inputMode = 'numeric';
      }

      return h("input", (0, _babelHelperVueJsxMergeProps.default)([{
        "attrs": {
          "type": inputType,
          "inputmode": inputMode
        }
      }, inputProps]));
    },
    genLeftIcon: function genLeftIcon() {
      var h = this.$createElement;
      var showLeftIcon = this.slots('left-icon') || this.leftIcon;

      if (showLeftIcon) {
        return h("div", {
          "class": bem('left-icon'),
          "on": {
            "click": this.onClickLeftIcon
          }
        }, [this.slots('left-icon') || h(_icon.default, {
          "attrs": {
            "name": this.leftIcon,
            "classPrefix": this.iconPrefix
          }
        })]);
      }
    },
    genRightIcon: function genRightIcon() {
      var h = this.$createElement;
      var slots = this.slots;
      var showRightIcon = slots('right-icon') || this.rightIcon;

      if (showRightIcon) {
        return h("div", {
          "class": bem('right-icon'),
          "on": {
            "click": this.onClickRightIcon
          }
        }, [slots('right-icon') || h(_icon.default, {
          "attrs": {
            "name": this.rightIcon,
            "classPrefix": this.iconPrefix
          }
        })]);
      }
    },
    genWordLimit: function genWordLimit() {
      var h = this.$createElement;

      if (this.showWordLimit && this.maxlength) {
        var count = (this.value || '').length;
        return h("div", {
          "class": bem('word-limit')
        }, [h("span", {
          "class": bem('word-num')
        }, [count]), "/", this.maxlength]);
      }
    },
    genMessage: function genMessage() {
      var h = this.$createElement;

      if (this.vanForm && this.vanForm.showErrorMessage === false) {
        return;
      }

      var message = this.errorMessage || this.validateMessage;

      if (message) {
        var errorMessageAlign = this.getProp('errorMessageAlign');
        return h("div", {
          "class": bem('error-message', errorMessageAlign)
        }, [message]);
      }
    },
    getProp: function getProp(key) {
      if ((0, _utils.isDef)(this[key])) {
        return this[key];
      }

      if (this.vanForm && (0, _utils.isDef)(this.vanForm[key])) {
        return this.vanForm[key];
      }
    },
    genLabel: function genLabel() {
      var h = this.$createElement;
      var colon = this.getProp('colon') ? ':' : '';

      if (this.slots('label')) {
        return [this.slots('label'), colon];
      }

      if (this.label) {
        return h("span", [this.label + colon]);
      }
    }
  },
  render: function render() {
    var _bem;

    var h = arguments[0];
    var slots = this.slots;
    var disabled = this.getProp('disabled');
    var labelAlign = this.getProp('labelAlign');
    var scopedSlots = {
      icon: this.genLeftIcon
    };
    var Label = this.genLabel();

    if (Label) {
      scopedSlots.title = function () {
        return Label;
      };
    }

    var extra = this.slots('extra');

    if (extra) {
      scopedSlots.extra = function () {
        return extra;
      };
    }

    return h(_cell.default, {
      "attrs": {
        "icon": this.leftIcon,
        "size": this.size,
        "center": this.center,
        "border": this.border,
        "isLink": this.isLink,
        "required": this.required,
        "clickable": this.clickable,
        "titleStyle": this.labelStyle,
        "valueClass": bem('value'),
        "titleClass": [bem('label', labelAlign), this.labelClass],
        "arrowDirection": this.arrowDirection
      },
      "scopedSlots": scopedSlots,
      "class": bem((_bem = {
        error: this.showError,
        disabled: disabled
      }, _bem["label-" + labelAlign] = labelAlign, _bem['min-height'] = this.type === 'textarea' && !this.autosize, _bem)),
      "on": {
        "click": this.onClick
      }
    }, [h("div", {
      "class": bem('body')
    }, [this.genInput(), this.showClear && h(_icon.default, {
      "attrs": {
        "name": "clear"
      },
      "class": bem('clear'),
      "on": {
        "touchstart": this.onClear
      }
    }), this.genRightIcon(), slots('button') && h("div", {
      "class": bem('button')
    }, [slots('button')])]), this.genWordLimit(), this.genMessage()]);
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

var _router = __webpack_require__(201);

var _shared = __webpack_require__(773);

var _icon = _interopRequireDefault(__webpack_require__(35));

// Utils
// Components
var _createNamespace = (0, _utils.createNamespace)('cell'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function Cell(h, props, slots, ctx) {
  var _props$clickable;

  var icon = props.icon,
      size = props.size,
      title = props.title,
      label = props.label,
      value = props.value,
      isLink = props.isLink;
  var showTitle = slots.title || (0, _utils.isDef)(title);

  function Label() {
    var showLabel = slots.label || (0, _utils.isDef)(label);

    if (showLabel) {
      return h("div", {
        "class": [bem('label'), props.labelClass]
      }, [slots.label ? slots.label() : label]);
    }
  }

  function Title() {
    if (showTitle) {
      return h("div", {
        "class": [bem('title'), props.titleClass],
        "style": props.titleStyle
      }, [slots.title ? slots.title() : h("span", [title]), Label()]);
    }
  }

  function Value() {
    var showValue = slots.default || (0, _utils.isDef)(value);

    if (showValue) {
      return h("div", {
        "class": [bem('value', {
          alone: !showTitle
        }), props.valueClass]
      }, [slots.default ? slots.default() : h("span", [value])]);
    }
  }

  function LeftIcon() {
    if (slots.icon) {
      return slots.icon();
    }

    if (icon) {
      return h(_icon.default, {
        "class": bem('left-icon'),
        "attrs": {
          "name": icon,
          "classPrefix": props.iconPrefix
        }
      });
    }
  }

  function RightIcon() {
    var rightIconSlot = slots['right-icon'];

    if (rightIconSlot) {
      return rightIconSlot();
    }

    if (isLink) {
      var arrowDirection = props.arrowDirection;
      return h(_icon.default, {
        "class": bem('right-icon'),
        "attrs": {
          "name": arrowDirection ? "arrow-" + arrowDirection : 'arrow'
        }
      });
    }
  }

  function onClick(event) {
    (0, _functional.emit)(ctx, 'click', event);
    (0, _router.functionalRoute)(ctx);
  }

  var clickable = (_props$clickable = props.clickable) != null ? _props$clickable : isLink;
  var classes = {
    clickable: clickable,
    center: props.center,
    required: props.required,
    borderless: !props.border
  };

  if (size) {
    classes[size] = size;
  }

  return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
    "class": bem(classes),
    "attrs": {
      "role": clickable ? 'button' : null,
      "tabindex": clickable ? 0 : null
    },
    "on": {
      "click": onClick
    }
  }, (0, _functional.inherit)(ctx)]), [LeftIcon(), Title(), Value(), RightIcon(), slots.extra == null ? void 0 : slots.extra()]);
}

Cell.props = (0, _extends2.default)({}, _shared.cellProps, _router.routeProps);

var _default = createComponent(Cell);

exports.default = _default;

exports.__esModule = true;
exports.cellProps = void 0;
var cellProps = {
  icon: String,
  size: String,
  center: Boolean,
  isLink: Boolean,
  required: Boolean,
  iconPrefix: String,
  titleStyle: null,
  titleClass: null,
  valueClass: null,
  labelClass: null,
  title: [Number, String],
  value: [Number, String],
  label: [Number, String],
  arrowDirection: String,
  border: {
    type: Boolean,
    default: true
  },
  clickable: {
    type: Boolean,
    default: null
  }
};
exports.cellProps = cellProps;__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(333);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cd2e0a50_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(934);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2144)
  __webpack_require__(2146)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-cd2e0a50"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cd2e0a50_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cd2e0a50_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2145);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("75358f44", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-dialog{width:16.75rem}.van-dialog.qa-dialog{border-radius:.4rem}.van-dialog.qa-dialog .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.qa-dialog .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.qa-dialog .van-button--default{height:2.65rem;color:#333}.van-dialog.qa-dialog .van-button--default .van-button__text{font-size:.9rem}.van-dialog.qa-dialog .van-dialog__confirm{color:#177afa}.van-overlay{top:0;bottom:0}.send-msg-popup .van-cell{padding:.8rem}.send-msg-popup .van-cell textarea{font-size:.8rem;line-height:1.1rem;color:#333}.send-msg-popup .van-cell textarea::-webkit-input-placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell textarea:-ms-input-placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell textarea::placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell:after{display:none}.ask-order-detail .add-reward{border-radius:.4rem}.ask-order-detail .add-reward .van-dialog__content{padding:1.4rem 1rem 1rem}.ask-order-detail .add-reward .van-dialog__content .reward-item{color:#333;font:18px/1.25rem PingFangSC-Regular;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ask-order-detail .add-reward .van-dialog__content .reward-item:nth-of-type(2){margin-top:1rem}.ask-order-detail .add-reward .van-dialog__content .reward-item span{width:.8rem;height:.8rem;border:1px solid #d7d7d7;background:#f4f5f6;border-radius:.1rem;margin-right:.6rem}.ask-order-detail .add-reward .van-dialog__content .reward-item img{width:.8rem;height:.8rem;margin-right:.6rem}.ask-order-detail .add-reward .van-dialog__content p{margin-top:1.4rem;color:#666;font:12px/.85rem PingFangSC-Regular}.ask-order-detail .add-reward .van-dialog__content p span{color:#666;font:12px/.85rem PingFangSC-Regular;padding-left:1.2rem}.ask-order-detail .add-reward .van-dialog__footer .van-button .van-button__text{font-size:18px}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2147);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7f55480a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-cd2e0a50]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-cd2e0a50]{font-family:PingFangSC-Regular,PingFang SC}.ask-order-detail[data-v-cd2e0a50]{padding-bottom:3.5rem}.ask-order-detail .ask-home[data-v-cd2e0a50]{position:fixed;right:0;bottom:5.75rem;height:2.2rem;background:rgba(0,0,0,.75);border-radius:.2rem 0 0 .2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;font:11px/.7rem PingFangSC-Regular;padding:0 .3rem 0 .4rem}.ask-order-detail .ask-home img[data-v-cd2e0a50]{width:.525rem;height:.55rem;margin-right:.3rem}.page[data-v-cd2e0a50]{overflow-y:auto}.separate[data-v-cd2e0a50]{width:100%;height:.3rem;background-color:#f4f5f6}.toast[data-v-cd2e0a50]{position:fixed;left:50%;top:50%;width:11rem;min-height:5.78rem;padding:0 .6rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:rgba(0,0,0,.7);border-radius:.4rem;overflow:hidden;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);z-index:2000}.toast .text[data-v-cd2e0a50],.toast[data-v-cd2e0a50]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.toast .text[data-v-cd2e0a50]{color:#fff}.toast .text.text1[data-v-cd2e0a50]{line-height:1.25rem;font-size:.9rem}.toast .text.success-icon span[data-v-cd2e0a50]{display:inline-block;width:1rem;height:1rem;margin-right:.4rem;background-image:url(" + escape(__webpack_require__(1386)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.toast .text.text2[data-v-cd2e0a50]{margin-top:.6rem;font-size:.8rem}.qa-btn[data-v-cd2e0a50]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#177afa}.qa-btn.btn1[data-v-cd2e0a50]{border-radius:.3rem;border:.05rem solid #177afa}.qa-btn.btn3[data-v-cd2e0a50]{height:2.5rem;font-size:.9rem;border-radius:.3rem;background-color:#177afa;color:#fff;width:11rem;margin-left:.6rem}.qa-btn.btn3-line[data-v-cd2e0a50]{height:2.5rem;font-size:.9rem;border-radius:.3rem;border:1px solid #177afa}.detail-top[data-v-cd2e0a50]{padding:0 .6rem .8rem}.detail-top .detail-title[data-v-cd2e0a50]{padding:0 .2rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.detail-top .detail-title p[data-v-cd2e0a50]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-top:1rem;line-height:1.4rem;font-size:1rem;font-weight:600;color:#333}.detail-top .detail-title span[data-v-cd2e0a50]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;margin-top:1rem;margin-right:-.6rem;font-size:.7rem;font-weight:500;color:#177afa}.detail-top .detail-title span[data-v-cd2e0a50]:before{top:0;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-top .detail-title span[data-v-cd2e0a50]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:0;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-top .detail-title span.shrink[data-v-cd2e0a50]:after{background-image:url(" + escape(__webpack_require__(134)) + ")}.detail-top .creat-time[data-v-cd2e0a50]{margin-top:.4rem;padding:0 .2rem}.detail-top .creat-time span[data-v-cd2e0a50]{color:#999;font:14px/1rem PingFangSC-Regular}.detail-top .creat-time span[data-v-cd2e0a50]:first-child{margin-right:.6rem}.detail-top .meta[data-v-cd2e0a50]{padding:0 .2rem}.detail-top .meta .xs[data-v-cd2e0a50]{margin-top:.4rem;margin-right:.6rem;line-height:1.05rem;font-size:.75rem}.detail-top .meta .xs .xs-icon[data-v-cd2e0a50]{display:inline-block;width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.detail-top .meta .xs.xs-1[data-v-cd2e0a50]{color:#fb5f5f}.detail-top .meta .xs.xs-2[data-v-cd2e0a50]{color:#fb985f}.detail-top .manager[data-v-cd2e0a50]{padding:.7rem .6rem .6rem;background:#eff4ff;border-radius:.3rem;margin-top:.8rem}.detail-top .manager .up[data-v-cd2e0a50]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.detail-top .manager .up .count .time[data-v-cd2e0a50]{color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.detail-top .manager .up .count .time .van-count-down[data-v-cd2e0a50]{display:inline;color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.detail-top .manager .up .count .speed[data-v-cd2e0a50]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.2rem;color:#333;font:13px/.9rem PingFangSC-Regular}.detail-top .manager .up .count .speed img[data-v-cd2e0a50]{width:.8rem;height:.8rem;margin-right:.2rem}.detail-top .manager .up .manag-btn[data-v-cd2e0a50]{width:4.1rem;height:1.6rem;border-radius:1.25rem;border:1px solid #177afa;color:#177afa;text-align:center;font:14px/1.6rem PingFangSC-Regular;position:relative;right:-.1rem}.detail-top .manager .down[data-v-cd2e0a50]{margin-top:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#333;font:13px/.9rem PingFangSC-Regular}.detail-top .manager .down.no-speed[data-v-cd2e0a50]{margin-top:1.4rem}.detail-top .manager .down span[data-v-cd2e0a50]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:13px/.9rem PingFangSC-Regular}.detail-top .manager .down .hide-que[data-v-cd2e0a50]{color:#333;font:13px/.9rem PingFangSC-Regular;padding-left:1.1rem;background:url(" + escape(__webpack_require__(1387)) + ") 0 no-repeat;background-size:.8rem .8rem}.detail-top .manager .add-list[data-v-cd2e0a50]{margin-top:.6rem}.detail-top .manager .add-list .add-item[data-v-cd2e0a50]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:.2rem}.detail-top .manager .add-list .add-item[data-v-cd2e0a50]:first-child{margin:0}.detail-top .manager .add-list .add-item span[data-v-cd2e0a50]{color:#999;font:12px/.8rem PingFangSC-Regular}.detail-item-list[data-v-cd2e0a50]{position:relative}.detail-item-list[data-v-cd2e0a50]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-item-list .item[data-v-cd2e0a50]{position:relative}.detail-item-list .item[data-v-cd2e0a50]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-item-list .item .item-title[data-v-cd2e0a50]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.detail-item-list .item .item-title span[data-v-cd2e0a50]{font-size:.9rem}.detail-item-list .item .item-content[data-v-cd2e0a50]{padding:.8rem}.detail-item-list .item .item-content .table[data-v-cd2e0a50]{border:1px solid #eee;border-radius:.2rem}.detail-item-list .item .item-content .param[data-v-cd2e0a50]{font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detail-item-list .item .item-content .param span[data-v-cd2e0a50]{display:inline-block;line-height:1.1rem;font-size:15px;color:#333;padding:.5rem .8rem}.detail-item-list .item .item-content .param span[data-v-cd2e0a50]:first-child{width:4.8rem;padding-right:0;border-right:1px solid #eee}.detail-item-list .item .item-content .param span[data-v-cd2e0a50]:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.detail-item-list .item .item-content .param[data-v-cd2e0a50]:last-child{border:none}.detail-item-list .item .item-content p[data-v-cd2e0a50]{line-height:1.25rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.detail-item-list .item .item-content .images[data-v-cd2e0a50]{margin-right:-.6rem}.detail-item-list .item .item-content .images img[data-v-cd2e0a50]{display:inline-block;width:4rem;height:4rem;margin:0 .38rem .4rem 0;border-radius:.2rem;overflow:hidden;vertical-align:top}.order-bottom-btn[data-v-cd2e0a50]{position:fixed;left:0;bottom:0;padding:.33rem .8rem;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background-color:#fff}.order-bottom-btn[data-v-cd2e0a50]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.order-bottom-btn .qa-btn[data-v-cd2e0a50]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:.4rem}.order-bottom-btn .qa-btn[data-v-cd2e0a50]:last-child{margin-right:0}.order-bottom-btn .btn4[data-v-cd2e0a50]{height:2.5rem;font-size:.9rem;border-radius:.3rem;background-color:#177afa;color:#fff;width:100%;text-align:center;line-height:2.5rem}.send-msg-popup .msg-content .msg-tool[data-v-cd2e0a50]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding:0 .8rem 0 .3rem}.send-msg-popup .msg-content .msg-tool[data-v-cd2e0a50]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.send-msg-popup .msg-content .msg-tool .icon[data-v-cd2e0a50]{display:inline-block;width:2.3rem;height:2.3rem;background-position:50%;background-repeat:no-repeat}.send-msg-popup .msg-content .msg-tool .phiz[data-v-cd2e0a50]{background-image:url(" + escape(__webpack_require__(795)) + ");background-size:1.3rem 1.3rem}.send-msg-popup .msg-content .msg-tool .image .upload-btn[data-v-cd2e0a50]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:2.3rem;height:2.3rem;vertical-align:top}.send-msg-popup .msg-content .msg-tool .image .upload-btn[data-v-cd2e0a50]:before{display:inline-block;content:\"\";width:2.3rem;height:2.3rem;background-image:url(" + escape(__webpack_require__(796)) + ");background-size:1.3rem 1.2rem;background-position:50%;background-repeat:no-repeat}.send-msg-popup .msg-content .msg-tool .btn[data-v-cd2e0a50]{position:absolute;right:.8rem;display:inline-block;width:4rem;height:1.8rem;line-height:.8rem;padding:.5rem 0;font-size:.8rem;color:#fff;background-color:#177afa;text-align:center}.send-msg-popup .msg-content .msg-tool .btn.disable[data-v-cd2e0a50]{opacity:.4}.emoji-box[data-v-cd2e0a50]{height:16.73rem;overflow-y:auto;padding:.6rem .5rem}.emoji-box li[data-v-cd2e0a50]{display:inline-block;padding:.3rem .4rem}.emoji-box li img[data-v-cd2e0a50]{width:1.4rem;height:1.4rem;vertical-align:top}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/success_icon.4b48230.png";module.exports = __webpack_require__.p + "static/img/expand_icon.9012cdf.png";module.exports = __webpack_require__.p + "static/img/shrink_icon.761d6df.png";module.exports = __webpack_require__.p + "static/img/hide.86041d2.png";module.exports = __webpack_require__.p + "static/img/msg_phiz_icon.c2b1350.png";module.exports = __webpack_require__.p + "static/img/msg_image_icon.df48e11.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(144);
var _uploader = _interopRequireDefault(__webpack_require__(145));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
var _vue = _interopRequireDefault(__webpack_require__(22));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(171));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
_vue.default.use(_imagePreview.default);
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _dialog.default.name, _dialog.default), _imagePreview.default.name, _imagePreview.default), _popup.default.name, _popup.default), _field.default.name, _field.default), _uploader.default.name, _uploader.default), _toast.default.name, _toast.default), _countDown.default.name, _countDown.default), _dialog.default.Component.name, _dialog.default.Component), "msgDialog", _msgDialog.default),
  filters: {
    leftTime: function leftTime(val) {
      return val + 30 * 60 * 1000 - new Date().getTime();
    }
  },
  data: function data() {
    return {
      userId: localStorage.getItem('userId'),
      dialogMsg: {},
      acceptFlag: null,
      images: [],
      imageIndex: 0,
      questionDetail: {},
      isAdmin: false,
      // 是否是管理员
      adminData: null,
      // 管理员对应的可见数据
      showAddReward: false,
      // 是否显示加悬赏弹窗
      addRewardList: [{
        name: '加现金',
        isSelect: false
      }, {
        name: '加星豆',
        isSelect: false
      }],
      selectType: null // 0现金 1星豆
    };
  },
  watch: {
    showAddReward: function showAddReward(val) {
      if (!val) {
        this.selectType = null;
      }
    }
  },
  created: function created() {
    var _this = this;
    this.getWxOpenFlag();
    this.getQuestionDetail();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('订单详情页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 添加悬赏
     */
    addReward: function addReward() {
      var leftTime = 0;
      if (this.questionDetail.status === 2) {
        leftTime = this.questionDetail.createTime + 30 * 60 * 1000 - new Date().getTime();
      } else if (this.questionDetail.status === 3) {
        if (this.questionDetail.bountyFlag) {
          leftTime = this.questionDetail.createTime + 7200 * 60 * 1000 - new Date().getTime();
        } else {
          leftTime = this.questionDetail.createTime + 180 * 60 * 1000 - new Date().getTime();
        }
      } else {
        leftTime = 0;
      }
      if (leftTime <= 0) {
        (0, _toast.default)({
          message: '该问题已作废',
          duration: 1500
        });
        return;
      }
      this.addRewardList.forEach(function (item2) {
        item2.isSelect = false;
      });
      this.showAddReward = true;
    },
    /**
     * 加现金或星豆
     * @param {Object} item 当前点击的选项
     */
    selectReward: function selectReward(item, index) {
      this.addRewardList.forEach(function (item2) {
        item2.isSelect = false;
      });
      item.isSelect = true;
      this.selectType = index;
    },
    /**
     * 确认加现金或星豆
     */
    addRewardFn: function addRewardFn(action, done) {
      var _this2 = this;
      if (action === 'confirm') {
        if (this.selectType === null) {
          (0, _toast.default)({
            message: '请选择添加悬赏的种类',
            duration: 1500
          });
          done(false);
          return;
        }
        this._Util.post(this._Api.ADD_SYS_REWARD, {
          questionId: this.questionDetail.id,
          rewardType: this.selectType
        }, function (data) {
          done();
          _this2.getQuestionDetail();
        }, function () {
          done();
        }, this);
      } else {
        done();
      }
    },
    /**
     * 隐藏该问题
    */
    hideQue: function hideQue() {
      var _this3 = this;
      _dialog.default.confirm({
        title: '隐藏该问题',
        message: '提交后该问题不可查看及接单',
        confirmButtonText: '提交',
        className: 'qa-dialog'
      }).then(function () {
        _this3._Util.post(_this3._Api.HIDE_SYS_QUESTION, {
          id: _this3.questionDetail.id
        }, function (data) {
          (0, _toast.default)({
            message: '该问题已经隐藏',
            duration: 1500
          });
          setTimeout(function () {
            if (_this3._Util.isApp()) {
              api.closeWin();
            } else {
              _this3.$router.push({
                name: 'questionsOrAnswers'
              });
            }
          }, 1000);
        }, function () {}, _this3);
      }).catch(function () {});
    },
    /**
     * 跳转到广场页面
     */
    toAskHome: function toAskHome() {
      this.$router.push({
        name: 'questionsOrAnswers'
      });
    },
    /**
     * 跳转到广场页面
     */
    toSquare: function toSquare() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'openOrderSettings',
            url: "".concat(location.origin, "/v2/questionsOrAnswers/problemSquare")
          }
        });
      } else {
        this.$router.push({
          name: 'problemSquare'
        });
      }
    },
    /**
     * 获取微信通知开启状态
     */
    getWxOpenFlag: function getWxOpenFlag() {
      var _this4 = this;
      this._Util.post(this._Api.GET_WX_OPEN_FLAG, {}, function (data) {
        if (_this4.wxOpenFlag === 0) {
          _dialog.default.confirm({
            title: '开启问答',
            message: '开启后可查看问题并接单',
            confirmButtonText: '去开启',
            className: 'put-que'
          }).then(function () {
            if (_this4._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'openOrderSettings',
                  url: "".concat(location.origin, "/v2/questionsOrAnswers/openOrderSettings")
                }
              });
            } else {
              _this4.$router.push({
                name: 'openOrderSettings'
              });
            }
          }).catch(function () {
            if (_this4._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'questionsOrAnswers',
                  url: "".concat(location.origin, "/v2/questionsOrAnswers")
                }
              });
            } else {
              _this4.$router.push({
                name: 'questionsOrAnswers'
              });
            }
          });
        }
      }, function () {}, this, true);
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this5 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        _this5.acceptFlag = data.acceptFlag;
        _this5.isAdmin = !!data.adminFlag;
        _this5.adminData = data.qaSysQuestionVo;
        var detail = data.vo;
        if (!detail.vehicleBrandName) {
          detail.vehicleText = '-';
        } else if (detail.vehicleBrandName && !detail.vehicleModeName) {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/-");
        } else {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/").concat(detail.vehicleModeName);
        }
        if (!detail.engineBrandName) {
          detail.engineText = '-';
        } else if (detail.engineBrandName && !detail.engineModeName) {
          detail.engineText = "".concat(detail.engineBrandName, "/-");
        } else {
          detail.engineText = "".concat(detail.engineBrandName, "/").concat(detail.engineModeName);
        }
        if (!detail.ecuBrandName) {
          detail.ecuText = '-';
        } else if (detail.ecuBrandName && !detail.ecuModeName) {
          detail.ecuText = "".concat(detail.ecuBrandName, "/-");
        } else {
          detail.ecuText = "".concat(detail.ecuBrandName, "/").concat(detail.ecuModeName);
        }
        detail.faultSymptomImg = detail.faultSymptomImg && detail.faultSymptomImg.split(',');
        detail.faultCodeImg = detail.faultCodeImg && detail.faultCodeImg.split(',');
        detail.troubleShootImg = detail.troubleShootImg && detail.troubleShootImg.split(',');
        _this5.questionDetail = detail;
        _this5.shareConfig();
        _this5.enterQaDetail({
          correlation_id: detail.id
        });

        // 如果被隐藏，不管什么身份都无法查看， 如果没有被隐藏则普通用户无法查看  5-超时未接单作废 , 6-超时未采纳作废
        if (detail.isHide || (detail.status === 5 || detail.status === 6) && !_this5.isAdmin) {
          (0, _toast.default)({
            message: '该问题已取消，去问题广场看看吧',
            duration: 1500
          });
          setTimeout(function () {
            if (_this5._Util.isApp()) {
              api.closeWin();
            } else {
              _this5.$router.push({
                name: 'questionsOrAnswers'
              });
            }
          }, 1500);
        }
      }, function () {}, this);
    },
    /**
     * 图片预览
     */
    imagePreview: function imagePreview(images, pos) {
      this.viewImage(images[pos], images, pos);
    },
    /**
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/1000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/1000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
     * 立即接单
     */
    orderNow: function orderNow() {
      var _this6 = this;
      _dialog.default.confirm({
        title: '确认要接单',
        message: '接单后请在10分钟内发送解决方案，提问人等的很着急哦~',
        confirmButtonText: '确认接单',
        className: 'qa-dialog'
      }).then(function () {
        _this6._Util.post(_this6._Api.GRAB_QA_QUESTION, {
          questionNo: _this6.$route.query.questionNo
        }, function (data) {
          if (!data.status) {
            // 没有接单权限，跳转到问题首页
            _this6.$toast(data.msg);
            setTimeout(function () {
              if (_this6._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'questionsOrAnswers',
                    url: "".concat(location.origin, "/v2/questionsOrAnswers")
                  }
                });
              } else {
                _this6.$router.push({
                  name: 'questionsOrAnswers'
                });
              }
            }, 1000);
            return;
          }
          _this6.acceptFlag = 1;
          _this6.toastMsg = {
            show: true,
            msg: '接单成功',
            msg1: '立即沟通解决问题吧~'
          };
          setTimeout(function () {
            if (_this6._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'conversationV13',
                  url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(_this6.$route.query.questionNo, "&id=").concat(data.dialogId, "&ascription=answer")
                }
              });
            } else {
              _this6.$router.push({
                name: 'conversationV13',
                query: {
                  questionNo: _this6.$route.query.questionNo,
                  id: data.dialogId
                }
              });
            }
          }, 300);
        }, function () {}, _this6);
      }).catch(function () {});
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: that.questionDetail.questionTitle || '故障现象',
        desc: '在吗？你知道这个问题的答案吗？',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 进入问题详情页
     */
    enterQaDetail: function enterQaDetail(params) {
      var options = {
        operation_page: '问题详情页'
      };
      var _options = Object.assign(options, params);
      this._Util.sensorsCollect('enter_qa_detail', _options);
    }
  }
};__webpack_require__(26);
__webpack_require__(1960);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1961);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("37484290", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-count-down{color:#323233;font-size:14px;line-height:20px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/count-down/index.css"],"names":[],"mappings":"AAAA,gBAAgB,cAAc,eAAe,gBAAgB,CAAC","file":"index.css","sourcesContent":[".van-count-down{color:#323233;font-size:14px;line-height:20px}"],"sourceRoot":""}]);

// exports


exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _raf = __webpack_require__(165);

var _utils2 = __webpack_require__(1962);

var _createNamespace = (0, _utils.createNamespace)('count-down'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  props: {
    millisecond: Boolean,
    time: {
      type: [Number, String],
      default: 0
    },
    format: {
      type: String,
      default: 'HH:mm:ss'
    },
    autoStart: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      remain: 0
    };
  },
  computed: {
    timeData: function timeData() {
      return (0, _utils2.parseTimeData)(this.remain);
    },
    formattedTime: function formattedTime() {
      return (0, _utils2.parseFormat)(this.format, this.timeData);
    }
  },
  watch: {
    time: {
      immediate: true,
      handler: 'reset'
    }
  },
  activated: function activated() {
    if (this.keepAlivePaused) {
      this.counting = true;
      this.keepAlivePaused = false;
      this.tick();
    }
  },
  deactivated: function deactivated() {
    if (this.counting) {
      this.pause();
      this.keepAlivePaused = true;
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.pause();
  },
  methods: {
    // @exposed-api
    start: function start() {
      if (this.counting) {
        return;
      }

      this.counting = true;
      this.endTime = Date.now() + this.remain;
      this.tick();
    },
    // @exposed-api
    pause: function pause() {
      this.counting = false;
      (0, _raf.cancelRaf)(this.rafId);
    },
    // @exposed-api
    reset: function reset() {
      this.pause();
      this.remain = +this.time;

      if (this.autoStart) {
        this.start();
      }
    },
    tick: function tick() {
      // should not start counting in server
      // see: https://github.com/vant-ui/vant/issues/7807
      if (!_utils.inBrowser) {
        return;
      }

      if (this.millisecond) {
        this.microTick();
      } else {
        this.macroTick();
      }
    },
    microTick: function microTick() {
      var _this = this;

      this.rafId = (0, _raf.raf)(function () {
        /* istanbul ignore if */
        // in case of call reset immediately after finish
        if (!_this.counting) {
          return;
        }

        _this.setRemain(_this.getRemain());

        if (_this.remain > 0) {
          _this.microTick();
        }
      });
    },
    macroTick: function macroTick() {
      var _this2 = this;

      this.rafId = (0, _raf.raf)(function () {
        /* istanbul ignore if */
        // in case of call reset immediately after finish
        if (!_this2.counting) {
          return;
        }

        var remain = _this2.getRemain();

        if (!(0, _utils2.isSameSecond)(remain, _this2.remain) || remain === 0) {
          _this2.setRemain(remain);
        }

        if (_this2.remain > 0) {
          _this2.macroTick();
        }
      });
    },
    getRemain: function getRemain() {
      return Math.max(this.endTime - Date.now(), 0);
    },
    setRemain: function setRemain(remain) {
      this.remain = remain;
      this.$emit('change', this.timeData);

      if (remain === 0) {
        this.pause();
        this.$emit('finish');
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem()
    }, [this.slots('default', this.timeData) || this.formattedTime]);
  }
});

exports.default = _default;/* WEBPACK VAR INJECTION */(function(global) {

exports.__esModule = true;
exports.raf = raf;
exports.doubleRaf = doubleRaf;
exports.cancelRaf = cancelRaf;

var _ = __webpack_require__(18);

/**
 * requestAnimationFrame polyfill
 */
var prev = Date.now();
/* istanbul ignore next */

function fallback(fn) {
  var curr = Date.now();
  var ms = Math.max(0, 16 - (curr - prev));
  var id = setTimeout(fn, ms);
  prev = curr + ms;
  return id;
}
/* istanbul ignore next */


var root = _.isServer ? global : window;
/* istanbul ignore next */

var iRaf = root.requestAnimationFrame || fallback;
/* istanbul ignore next */

var iCancel = root.cancelAnimationFrame || root.clearTimeout;

function raf(fn) {
  return iRaf.call(root, fn);
} // double raf for animation


function doubleRaf(fn) {
  raf(function () {
    raf(fn);
  });
}

function cancelRaf(id) {
  iCancel.call(root, id);
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(50)))

exports.__esModule = true;
exports.parseTimeData = parseTimeData;
exports.parseFormat = parseFormat;
exports.isSameSecond = isSameSecond;

var _string = __webpack_require__(168);

var SECOND = 1000;
var MINUTE = 60 * SECOND;
var HOUR = 60 * MINUTE;
var DAY = 24 * HOUR;

function parseTimeData(time) {
  var days = Math.floor(time / DAY);
  var hours = Math.floor(time % DAY / HOUR);
  var minutes = Math.floor(time % HOUR / MINUTE);
  var seconds = Math.floor(time % MINUTE / SECOND);
  var milliseconds = Math.floor(time % SECOND);
  return {
    days: days,
    hours: hours,
    minutes: minutes,
    seconds: seconds,
    milliseconds: milliseconds
  };
}

function parseFormat(format, timeData) {
  var days = timeData.days;
  var hours = timeData.hours,
      minutes = timeData.minutes,
      seconds = timeData.seconds,
      milliseconds = timeData.milliseconds;

  if (format.indexOf('DD') === -1) {
    hours += days * 24;
  } else {
    format = format.replace('DD', (0, _string.padZero)(days));
  }

  if (format.indexOf('HH') === -1) {
    minutes += hours * 60;
  } else {
    format = format.replace('HH', (0, _string.padZero)(hours));
  }

  if (format.indexOf('mm') === -1) {
    seconds += minutes * 60;
  } else {
    format = format.replace('mm', (0, _string.padZero)(minutes));
  }

  if (format.indexOf('ss') === -1) {
    milliseconds += seconds * 1000;
  } else {
    format = format.replace('ss', (0, _string.padZero)(seconds));
  }

  if (format.indexOf('S') !== -1) {
    var ms = (0, _string.padZero)(milliseconds, 3);

    if (format.indexOf('SSS') !== -1) {
      format = format.replace('SSS', ms);
    } else if (format.indexOf('SS') !== -1) {
      format = format.replace('SS', ms.slice(0, 2));
    } else {
      format = format.replace('S', ms.charAt(0));
    }
  }

  return format;
}

function isSameSecond(time1, time2) {
  return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
}__webpack_require__(26);
__webpack_require__(131);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(770);
__webpack_require__(164);
__webpack_require__(74);
__webpack_require__(771);
__webpack_require__(772);
__webpack_require__(1349);
__webpack_require__(1981);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1979);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0f9b82b3", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#969799;font-size:14px;background-color:#f7f8fa}.van-image__loading-icon{color:#dcdee0;font-size:32px}.van-image__error-icon{color:#dcdee0;font-size:32px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/image/index.css"],"names":[],"mappings":"AAAA,WAAW,kBAAkB,oBAAoB,CAAC,kBAAkB,gBAAgB,iBAAiB,CAAC,sBAAsB,qBAAqB,CAAC,sDAAsD,cAAc,WAAW,WAAW,CAAC,sCAAsC,kBAAkB,MAAM,OAAO,oBAAoB,qBAAqB,aAAa,4BAA4B,6BAA6B,8BAA8B,sBAAsB,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,cAAc,eAAe,wBAAwB,CAAC,yBAAyB,cAAc,cAAc,CAAC,uBAAuB,cAAc,cAAc,CAAC","file":"index.css","sourcesContent":[".van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#969799;font-size:14px;background-color:#f7f8fa}.van-image__loading-icon{color:#dcdee0;font-size:32px}.van-image__error-icon{color:#dcdee0;font-size:32px}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1964);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1e2e8dd2", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-swipe{position:relative;overflow:hidden;-webkit-transform:translateZ(0);transform:translateZ(0);cursor:grab;-webkit-user-select:none;user-select:none}.van-swipe__track{display:-webkit-box;display:-webkit-flex;display:flex;height:100%}.van-swipe__track--vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.van-swipe__indicators{position:absolute;bottom:12px;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.van-swipe__indicators--vertical{top:50%;bottom:auto;left:12px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child){margin-bottom:6px}.van-swipe__indicator{width:6px;height:6px;background-color:#ebedf0;border-radius:100%;opacity:.3;-webkit-transition:opacity .2s,background-color .2s;transition:opacity .2s,background-color .2s}.van-swipe__indicator:not(:last-child){margin-right:6px}.van-swipe__indicator--active{background-color:#1989fa;opacity:1}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/swipe/index.css"],"names":[],"mappings":"AAAA,WAAW,kBAAkB,gBAAgB,gCAAgC,wBAAwB,YAAY,yBAAyB,gBAAgB,CAAC,kBAAkB,oBAAoB,qBAAqB,aAAa,WAAW,CAAC,4BAA4B,4BAA4B,6BAA6B,8BAA8B,qBAAqB,CAAC,uBAAuB,kBAAkB,YAAY,SAAS,oBAAoB,qBAAqB,aAAa,mCAAmC,0BAA0B,CAAC,iCAAiC,QAAQ,YAAY,UAAU,4BAA4B,6BAA6B,8BAA8B,sBAAsB,mCAAmC,0BAA0B,CAAC,wEAAwE,iBAAiB,CAAC,sBAAsB,UAAU,WAAW,yBAAyB,mBAAmB,WAAW,oDAAoD,2CAA2C,CAAC,uCAAuC,gBAAgB,CAAC,8BAA8B,yBAAyB,SAAS,CAAC","file":"index.css","sourcesContent":[".van-swipe{position:relative;overflow:hidden;-webkit-transform:translateZ(0);transform:translateZ(0);cursor:grab;-webkit-user-select:none;user-select:none}.van-swipe__track{display:-webkit-box;display:-webkit-flex;display:flex;height:100%}.van-swipe__track--vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.van-swipe__indicators{position:absolute;bottom:12px;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.van-swipe__indicators--vertical{top:50%;bottom:auto;left:12px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child){margin-bottom:6px}.van-swipe__indicator{width:6px;height:6px;background-color:#ebedf0;border-radius:100%;opacity:.3;-webkit-transition:opacity .2s,background-color .2s;transition:opacity .2s,background-color .2s}.van-swipe__indicator:not(:last-child){margin-right:6px}.van-swipe__indicator--active{background-color:#1989fa;opacity:1}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1965);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1d819b44", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-swipe-item{position:relative;-webkit-flex-shrink:0;flex-shrink:0;width:100%;height:100%}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/swipe-item/index.css"],"names":[],"mappings":"AAAA,gBAAgB,kBAAkB,sBAAsB,cAAc,WAAW,WAAW,CAAC","file":"index.css","sourcesContent":[".van-swipe-item{position:relative;-webkit-flex-shrink:0;flex-shrink:0;width:100%;height:100%}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1980);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("45cc7e24", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image{width:100%;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-image-preview__image--vertical{width:auto;height:100%}.van-image-preview__image img{-webkit-user-drag:none}.van-image-preview__image .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon{font-size:36px}.van-image-preview__image .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:16px;left:50%;color:#fff;font-size:14px;line-height:20px;text-shadow:0 1px 1px #323233;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}.van-image-preview__overlay{background-color:rgba(0,0,0,.9)}.van-image-preview__close-icon{position:absolute;z-index:1;color:#c8c9cc;font-size:22px;cursor:pointer}.van-image-preview__close-icon:active{color:#969799}.van-image-preview__close-icon--top-left{top:16px;left:16px}.van-image-preview__close-icon--top-right{top:16px;right:16px}.van-image-preview__close-icon--bottom-left{bottom:16px;left:16px}.van-image-preview__close-icon--bottom-right{right:16px;bottom:16px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/image-preview/index.css"],"names":[],"mappings":"AAAA,mBAAmB,eAAe,MAAM,OAAO,WAAW,WAAW,CAAC,0BAA0B,WAAW,CAAC,+BAA+B,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,eAAe,CAAC,0BAA0B,kBAAkB,MAAM,MAAM,CAAC,0BAA0B,WAAW,8CAA8C,sCAAsC,8BAA8B,+CAA+C,CAAC,oCAAoC,WAAW,WAAW,CAAC,8BAA8B,sBAAsB,CAAC,4CAA4C,QAAQ,UAAU,CAAC,iDAAiD,cAAc,CAAC,8CAA8C,4BAA4B,CAAC,0BAA0B,kBAAkB,SAAS,SAAS,WAAW,eAAe,iBAAiB,8BAA8B,oCAAoC,2BAA2B,CAAC,4BAA4B,+BAA+B,CAAC,+BAA+B,kBAAkB,UAAU,cAAc,eAAe,cAAc,CAAC,sCAAsC,aAAa,CAAC,yCAAyC,SAAS,SAAS,CAAC,0CAA0C,SAAS,UAAU,CAAC,4CAA4C,YAAY,SAAS,CAAC,6CAA6C,WAAW,WAAW,CAAC","file":"index.css","sourcesContent":[".van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image{width:100%;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-image-preview__image--vertical{width:auto;height:100%}.van-image-preview__image img{-webkit-user-drag:none}.van-image-preview__image .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon{font-size:36px}.van-image-preview__image .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:16px;left:50%;color:#fff;font-size:14px;line-height:20px;text-shadow:0 1px 1px #323233;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}.van-image-preview__overlay{background-color:rgba(0,0,0,.9)}.van-image-preview__close-icon{position:absolute;z-index:1;color:#c8c9cc;font-size:22px;cursor:pointer}.van-image-preview__close-icon:active{color:#969799}.van-image-preview__close-icon--top-left{top:16px;left:16px}.van-image-preview__close-icon--top-right{top:16px;right:16px}.van-image-preview__close-icon--bottom-left{bottom:16px;left:16px}.van-image-preview__close-icon--bottom-right{right:16px;bottom:16px}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1982);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("56e725f4", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:.5}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:80px;height:80px;margin:0 8px 8px 0;background-color:#f7f8fa}.van-uploader__upload:active{background-color:#f2f3f5}.van-uploader__upload--readonly:active{background-color:#f7f8fa}.van-uploader__upload-icon{color:#dcdee0;font-size:24px}.van-uploader__upload-text{margin-top:8px;color:#969799;font-size:12px}.van-uploader__preview{position:relative;margin:0 8px 8px 0;cursor:pointer}.van-uploader__preview-image{display:block;width:80px;height:80px;overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 12px}.van-uploader__preview-delete-icon{position:absolute;top:-2px;right:-2px;color:#fff;font-size:16px;-webkit-transform:scale(.5);transform:scale(.5)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#fff;background-color:rgba(50,50,51,.88)}.van-uploader__mask-icon{font-size:22px}.van-uploader__mask-message{margin-top:6px;padding:0 4px;font-size:12px;line-height:14px}.van-uploader__loading{width:22px;height:22px;color:#fff}.van-uploader__file{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:80px;height:80px;background-color:#f7f8fa}.van-uploader__file-icon{color:#646566;font-size:20px}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:8px;padding:0 4px;color:#646566;font-size:12px;text-align:center}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/uploader/index.css"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,oBAAoB,CAAC,uBAAuB,oBAAoB,qBAAqB,aAAa,uBAAuB,cAAc,CAAC,iCAAiC,UAAU,CAAC,qBAAqB,kBAAkB,MAAM,OAAO,WAAW,YAAY,gBAAgB,eAAe,SAAS,CAAC,6BAA6B,iBAAiB,CAAC,8BAA8B,kBAAkB,CAAC,sBAAsB,kBAAkB,oBAAoB,qBAAqB,aAAa,4BAA4B,6BAA6B,8BAA8B,sBAAsB,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,sBAAsB,WAAW,YAAY,mBAAmB,wBAAwB,CAAC,6BAA6B,wBAAwB,CAAC,uCAAuC,wBAAwB,CAAC,2BAA2B,cAAc,cAAc,CAAC,2BAA2B,eAAe,cAAc,cAAc,CAAC,uBAAuB,kBAAkB,mBAAmB,cAAc,CAAC,6BAA6B,cAAc,WAAW,YAAY,eAAe,CAAC,8BAA8B,kBAAkB,MAAM,QAAQ,WAAW,YAAY,gCAAgC,wBAAwB,CAAC,mCAAmC,kBAAkB,SAAS,WAAW,WAAW,eAAe,4BAA4B,mBAAmB,CAAC,6BAA6B,kBAAkB,MAAM,QAAQ,SAAS,MAAM,CAAC,oBAAoB,kBAAkB,MAAM,QAAQ,SAAS,OAAO,oBAAoB,qBAAqB,aAAa,4BAA4B,6BAA6B,8BAA8B,sBAAsB,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,WAAW,mCAAmC,CAAC,yBAAyB,cAAc,CAAC,4BAA4B,eAAe,cAAc,eAAe,gBAAgB,CAAC,uBAAuB,WAAW,YAAY,UAAU,CAAC,oBAAoB,oBAAoB,qBAAqB,aAAa,4BAA4B,6BAA6B,8BAA8B,sBAAsB,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,WAAW,YAAY,wBAAwB,CAAC,yBAAyB,cAAc,cAAc,CAAC,yBAAyB,sBAAsB,WAAW,eAAe,cAAc,cAAc,eAAe,iBAAiB,CAAC","file":"index.css","sourcesContent":[".van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:.5}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:80px;height:80px;margin:0 8px 8px 0;background-color:#f7f8fa}.van-uploader__upload:active{background-color:#f2f3f5}.van-uploader__upload--readonly:active{background-color:#f7f8fa}.van-uploader__upload-icon{color:#dcdee0;font-size:24px}.van-uploader__upload-text{margin-top:8px;color:#969799;font-size:12px}.van-uploader__preview{position:relative;margin:0 8px 8px 0;cursor:pointer}.van-uploader__preview-image{display:block;width:80px;height:80px;overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 12px}.van-uploader__preview-delete-icon{position:absolute;top:-2px;right:-2px;color:#fff;font-size:16px;-webkit-transform:scale(.5);transform:scale(.5)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#fff;background-color:rgba(50,50,51,.88)}.van-uploader__mask-icon{font-size:22px}.van-uploader__mask-message{margin-top:6px;padding:0 4px;font-size:12px;line-height:14px}.van-uploader__loading{width:22px;height:22px;color:#fff}.van-uploader__file{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:80px;height:80px;background-color:#f7f8fa}.van-uploader__file-icon{color:#646566;font-size:20px}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:8px;padding:0 4px;color:#646566;font-size:12px;text-align:center}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _utils2 = __webpack_require__(1983);

var _field = __webpack_require__(202);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _image = _interopRequireDefault(__webpack_require__(245));

var _loading = _interopRequireDefault(__webpack_require__(91));

var _imagePreview = _interopRequireDefault(__webpack_require__(82));

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('uploader'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default2 = createComponent({
  inheritAttrs: false,
  mixins: [_field.FieldMixin],
  model: {
    prop: 'fileList'
  },
  props: {
    disabled: Boolean,
    readonly: Boolean,
    lazyLoad: Boolean,
    uploadText: String,
    afterRead: Function,
    beforeRead: Function,
    beforeDelete: Function,
    previewSize: [Number, String],
    previewOptions: Object,
    name: {
      type: [Number, String],
      default: ''
    },
    accept: {
      type: String,
      default: 'image/*'
    },
    fileList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    maxSize: {
      type: [Number, String, Function],
      default: Number.MAX_VALUE
    },
    maxCount: {
      type: [Number, String],
      default: Number.MAX_VALUE
    },
    deletable: {
      type: Boolean,
      default: true
    },
    showUpload: {
      type: Boolean,
      default: true
    },
    previewImage: {
      type: Boolean,
      default: true
    },
    previewFullImage: {
      type: Boolean,
      default: true
    },
    imageFit: {
      type: String,
      default: 'cover'
    },
    resultType: {
      type: String,
      default: 'dataUrl'
    },
    uploadIcon: {
      type: String,
      default: 'photograph'
    }
  },
  computed: {
    previewSizeWithUnit: function previewSizeWithUnit() {
      return (0, _utils.addUnit)(this.previewSize);
    },
    // for form
    value: function value() {
      return this.fileList;
    }
  },
  created: function created() {
    this.urls = [];
  },
  beforeDestroy: function beforeDestroy() {
    this.urls.forEach(function (url) {
      return URL.revokeObjectURL(url);
    });
  },
  methods: {
    getDetail: function getDetail(index) {
      if (index === void 0) {
        index = this.fileList.length;
      }

      return {
        name: this.name,
        index: index
      };
    },
    onChange: function onChange(event) {
      var _this = this;

      var files = event.target.files;

      if (this.disabled || !files.length) {
        return;
      }

      files = files.length === 1 ? files[0] : [].slice.call(files);

      if (this.beforeRead) {
        var response = this.beforeRead(files, this.getDetail());

        if (!response) {
          this.resetInput();
          return;
        }

        if ((0, _utils.isPromise)(response)) {
          response.then(function (data) {
            if (data) {
              _this.readFile(data);
            } else {
              _this.readFile(files);
            }
          }).catch(this.resetInput);
          return;
        }
      }

      this.readFile(files);
    },
    readFile: function readFile(files) {
      var _this2 = this;

      var oversize = (0, _utils2.isOversize)(files, this.maxSize);

      if (Array.isArray(files)) {
        var maxCount = this.maxCount - this.fileList.length;

        if (files.length > maxCount) {
          files = files.slice(0, maxCount);
        }

        Promise.all(files.map(function (file) {
          return (0, _utils2.readFile)(file, _this2.resultType);
        })).then(function (contents) {
          var fileList = files.map(function (file, index) {
            var result = {
              file: file,
              status: '',
              message: ''
            };

            if (contents[index]) {
              result.content = contents[index];
            }

            return result;
          });

          _this2.onAfterRead(fileList, oversize);
        });
      } else {
        (0, _utils2.readFile)(files, this.resultType).then(function (content) {
          var result = {
            file: files,
            status: '',
            message: ''
          };

          if (content) {
            result.content = content;
          }

          _this2.onAfterRead(result, oversize);
        });
      }
    },
    onAfterRead: function onAfterRead(files, oversize) {
      var _this3 = this;

      this.resetInput();
      var validFiles = files;

      if (oversize) {
        var oversizeFiles = files;

        if (Array.isArray(files)) {
          oversizeFiles = [];
          validFiles = [];
          files.forEach(function (item) {
            if (item.file) {
              if ((0, _utils2.isOversize)(item.file, _this3.maxSize)) {
                oversizeFiles.push(item);
              } else {
                validFiles.push(item);
              }
            }
          });
        } else {
          validFiles = null;
        }

        this.$emit('oversize', oversizeFiles, this.getDetail());
      }

      var isValidFiles = Array.isArray(validFiles) ? Boolean(validFiles.length) : Boolean(validFiles);

      if (isValidFiles) {
        this.$emit('input', [].concat(this.fileList, (0, _utils2.toArray)(validFiles)));

        if (this.afterRead) {
          this.afterRead(validFiles, this.getDetail());
        }
      }
    },
    onDelete: function onDelete(file, index) {
      var _file$beforeDelete,
          _this4 = this;

      var beforeDelete = (_file$beforeDelete = file.beforeDelete) != null ? _file$beforeDelete : this.beforeDelete;

      if (beforeDelete) {
        var response = beforeDelete(file, this.getDetail(index));

        if (!response) {
          return;
        }

        if ((0, _utils.isPromise)(response)) {
          response.then(function () {
            _this4.deleteFile(file, index);
          }).catch(_utils.noop);
          return;
        }
      }

      this.deleteFile(file, index);
    },
    deleteFile: function deleteFile(file, index) {
      var fileList = this.fileList.slice(0);
      fileList.splice(index, 1);
      this.$emit('input', fileList);
      this.$emit('delete', file, this.getDetail(index));
    },
    resetInput: function resetInput() {
      /* istanbul ignore else */
      if (this.$refs.input) {
        this.$refs.input.value = '';
      }
    },
    onClickUpload: function onClickUpload(event) {
      this.$emit('click-upload', event);
    },
    onPreviewImage: function onPreviewImage(item) {
      var _this5 = this;

      if (!this.previewFullImage) {
        return;
      }

      var imageFiles = this.fileList.filter(function (item) {
        return (0, _utils2.isImageFile)(item);
      });
      var imageContents = imageFiles.map(function (item) {
        if (item.file && !item.url && item.status !== 'failed') {
          item.url = URL.createObjectURL(item.file);

          _this5.urls.push(item.url);
        }

        return item.url;
      });
      this.imagePreview = (0, _imagePreview.default)((0, _extends2.default)({
        images: imageContents,
        startPosition: imageFiles.indexOf(item),
        onClose: function onClose() {
          _this5.$emit('close-preview');
        }
      }, this.previewOptions));
    },
    // @exposed-api
    closeImagePreview: function closeImagePreview() {
      if (this.imagePreview) {
        this.imagePreview.close();
      }
    },
    // @exposed-api
    chooseFile: function chooseFile() {
      if (this.disabled) {
        return;
      }
      /* istanbul ignore else */


      if (this.$refs.input) {
        this.$refs.input.click();
      }
    },
    genPreviewMask: function genPreviewMask(item) {
      var h = this.$createElement;
      var status = item.status,
          message = item.message;

      if (status === 'uploading' || status === 'failed') {
        var MaskIcon = status === 'failed' ? h(_icon.default, {
          "attrs": {
            "name": "close"
          },
          "class": bem('mask-icon')
        }) : h(_loading.default, {
          "class": bem('loading')
        });
        var showMessage = (0, _utils.isDef)(message) && message !== '';
        return h("div", {
          "class": bem('mask')
        }, [MaskIcon, showMessage && h("div", {
          "class": bem('mask-message')
        }, [message])]);
      }
    },
    genPreviewItem: function genPreviewItem(item, index) {
      var _item$deletable,
          _this6 = this,
          _item$previewSize,
          _item$imageFit;

      var h = this.$createElement;
      var deleteAble = (_item$deletable = item.deletable) != null ? _item$deletable : this.deletable;
      var showDelete = item.status !== 'uploading' && deleteAble;
      var DeleteIcon = showDelete && h("div", {
        "class": bem('preview-delete'),
        "on": {
          "click": function click(event) {
            event.stopPropagation();

            _this6.onDelete(item, index);
          }
        }
      }, [h(_icon.default, {
        "attrs": {
          "name": "cross"
        },
        "class": bem('preview-delete-icon')
      })]);
      var PreviewCoverContent = this.slots('preview-cover', (0, _extends2.default)({
        index: index
      }, item));
      var PreviewCover = PreviewCoverContent && h("div", {
        "class": bem('preview-cover')
      }, [PreviewCoverContent]);
      var previewSize = (_item$previewSize = item.previewSize) != null ? _item$previewSize : this.previewSize;
      var imageFit = (_item$imageFit = item.imageFit) != null ? _item$imageFit : this.imageFit;
      var Preview = (0, _utils2.isImageFile)(item) ? h(_image.default, {
        "attrs": {
          "fit": imageFit,
          "src": item.content || item.url,
          "width": previewSize,
          "height": previewSize,
          "lazyLoad": this.lazyLoad
        },
        "class": bem('preview-image'),
        "on": {
          "click": function click() {
            _this6.onPreviewImage(item);
          }
        }
      }, [PreviewCover]) : h("div", {
        "class": bem('file'),
        "style": {
          width: this.previewSizeWithUnit,
          height: this.previewSizeWithUnit
        }
      }, [h(_icon.default, {
        "class": bem('file-icon'),
        "attrs": {
          "name": "description"
        }
      }), h("div", {
        "class": [bem('file-name'), 'van-ellipsis']
      }, [item.file ? item.file.name : item.url]), PreviewCover]);
      return h("div", {
        "class": bem('preview'),
        "on": {
          "click": function click() {
            _this6.$emit('click-preview', item, _this6.getDetail(index));
          }
        }
      }, [Preview, this.genPreviewMask(item), DeleteIcon]);
    },
    genPreviewList: function genPreviewList() {
      if (this.previewImage) {
        return this.fileList.map(this.genPreviewItem);
      }
    },
    genUpload: function genUpload() {
      var h = this.$createElement;

      if (this.fileList.length >= this.maxCount) {
        return;
      }

      var slot = this.slots();
      var Input = this.readonly ? null : h("input", {
        "attrs": (0, _extends2.default)({}, this.$attrs, {
          "type": "file",
          "accept": this.accept,
          "disabled": this.disabled
        }),
        "ref": "input",
        "class": bem('input'),
        "on": {
          "change": this.onChange
        }
      });

      if (slot) {
        return h("div", {
          "class": bem('input-wrapper'),
          "key": "input-wrapper",
          "on": {
            "click": this.onClickUpload
          }
        }, [slot, Input]);
      }

      var style;

      if (this.previewSize) {
        var size = this.previewSizeWithUnit;
        style = {
          width: size,
          height: size
        };
      }

      return h("div", {
        "directives": [{
          name: "show",
          value: this.showUpload
        }],
        "class": bem('upload', {
          readonly: this.readonly
        }),
        "style": style,
        "on": {
          "click": this.onClickUpload
        }
      }, [h(_icon.default, {
        "attrs": {
          "name": this.uploadIcon
        },
        "class": bem('upload-icon')
      }), this.uploadText && h("span", {
        "class": bem('upload-text')
      }, [this.uploadText]), Input]);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem()
    }, [h("div", {
      "class": bem('wrapper', {
        disabled: this.disabled
      })
    }, [this.genPreviewList(), this.genUpload()])]);
  }
});

exports.default = _default2;

exports.__esModule = true;
exports.toArray = toArray;
exports.readFile = readFile;
exports.isOversize = isOversize;
exports.isImageUrl = isImageUrl;
exports.isImageFile = isImageFile;

var _utils = __webpack_require__(18);

function toArray(item) {
  if (Array.isArray(item)) {
    return item;
  }

  return [item];
}

function readFile(file, resultType) {
  return new Promise(function (resolve) {
    if (resultType === 'file') {
      resolve(null);
      return;
    }

    var reader = new FileReader();

    reader.onload = function (event) {
      resolve(event.target.result);
    };

    if (resultType === 'dataUrl') {
      reader.readAsDataURL(file);
    } else if (resultType === 'text') {
      reader.readAsText(file);
    }
  });
}

function isOversize(files, maxSize) {
  return toArray(files).some(function (file) {
    if (file) {
      if ((0, _utils.isFunction)(maxSize)) {
        return maxSize(file);
      }

      return file.size > maxSize;
    }

    return false;
  });
}

var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;

function isImageUrl(url) {
  return IMAGE_REGEXP.test(url);
}

function isImageFile(item) {
  // some special urls cannot be recognized
  // user can add `isImage` flag to mark it as an image url
  if (item.isImage) {
    return true;
  }

  if (item.file && item.file.type) {
    return item.file.type.indexOf('image') === 0;
  }

  if (item.url) {
    return isImageUrl(item.url);
  }

  if (item.content) {
    return item.content.indexOf('data:image') === 0;
  }

  return false;
}

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _createNamespace = (0, _utils.createNamespace)('image'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  props: {
    src: String,
    fit: String,
    alt: String,
    round: Boolean,
    width: [Number, String],
    height: [Number, String],
    radius: [Number, String],
    lazyLoad: Boolean,
    iconPrefix: String,
    showError: {
      type: Boolean,
      default: true
    },
    showLoading: {
      type: Boolean,
      default: true
    },
    errorIcon: {
      type: String,
      default: 'photo-fail'
    },
    loadingIcon: {
      type: String,
      default: 'photo'
    }
  },
  data: function data() {
    return {
      loading: true,
      error: false
    };
  },
  watch: {
    src: function src() {
      this.loading = true;
      this.error = false;
    }
  },
  computed: {
    style: function style() {
      var style = {};

      if ((0, _utils.isDef)(this.width)) {
        style.width = (0, _utils.addUnit)(this.width);
      }

      if ((0, _utils.isDef)(this.height)) {
        style.height = (0, _utils.addUnit)(this.height);
      }

      if ((0, _utils.isDef)(this.radius)) {
        style.overflow = 'hidden';
        style.borderRadius = (0, _utils.addUnit)(this.radius);
      }

      return style;
    }
  },
  created: function created() {
    var $Lazyload = this.$Lazyload;

    if ($Lazyload && _utils.inBrowser) {
      $Lazyload.$on('loaded', this.onLazyLoaded);
      $Lazyload.$on('error', this.onLazyLoadError);
    }
  },
  beforeDestroy: function beforeDestroy() {
    var $Lazyload = this.$Lazyload;

    if ($Lazyload) {
      $Lazyload.$off('loaded', this.onLazyLoaded);
      $Lazyload.$off('error', this.onLazyLoadError);
    }
  },
  methods: {
    onLoad: function onLoad(event) {
      this.loading = false;
      this.$emit('load', event);
    },
    onLazyLoaded: function onLazyLoaded(_ref) {
      var el = _ref.el;

      if (el === this.$refs.image && this.loading) {
        this.onLoad();
      }
    },
    onLazyLoadError: function onLazyLoadError(_ref2) {
      var el = _ref2.el;

      if (el === this.$refs.image && !this.error) {
        this.onError();
      }
    },
    onError: function onError(event) {
      this.error = true;
      this.loading = false;
      this.$emit('error', event);
    },
    onClick: function onClick(event) {
      this.$emit('click', event);
    },
    genPlaceholder: function genPlaceholder() {
      var h = this.$createElement;

      if (this.loading && this.showLoading) {
        return h("div", {
          "class": bem('loading')
        }, [this.slots('loading') || h(_icon.default, {
          "attrs": {
            "name": this.loadingIcon,
            "classPrefix": this.iconPrefix
          },
          "class": bem('loading-icon')
        })]);
      }

      if (this.error && this.showError) {
        return h("div", {
          "class": bem('error')
        }, [this.slots('error') || h(_icon.default, {
          "attrs": {
            "name": this.errorIcon,
            "classPrefix": this.iconPrefix
          },
          "class": bem('error-icon')
        })]);
      }
    },
    genImage: function genImage() {
      var h = this.$createElement;
      var imgData = {
        class: bem('img'),
        attrs: {
          alt: this.alt
        },
        style: {
          objectFit: this.fit
        }
      };

      if (this.error) {
        return;
      }

      if (this.lazyLoad) {
        return h("img", (0, _babelHelperVueJsxMergeProps.default)([{
          "ref": "image",
          "directives": [{
            name: "lazy",
            value: this.src
          }]
        }, imgData]));
      }

      return h("img", (0, _babelHelperVueJsxMergeProps.default)([{
        "attrs": {
          "src": this.src
        },
        "on": {
          "load": this.onLoad,
          "error": this.onError
        }
      }, imgData]));
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem({
        round: this.round
      }),
      "style": this.style,
      "on": {
        "click": this.onClick
      }
    }, [this.genImage(), this.genPlaceholder(), this.slots()]);
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _vue = _interopRequireDefault(__webpack_require__(22));

var _ImagePreview = _interopRequireDefault(__webpack_require__(1984));

var _utils = __webpack_require__(18);

var instance;
var defaultConfig = {
  loop: true,
  value: true,
  images: [],
  maxZoom: 3,
  minZoom: 1 / 3,
  onClose: null,
  onChange: null,
  className: '',
  showIndex: true,
  closeable: false,
  closeIcon: 'clear',
  asyncClose: false,
  transition: 'van-fade',
  getContainer: 'body',
  overlayStyle: null,
  startPosition: 0,
  swipeDuration: 300,
  showIndicators: false,
  closeOnPopstate: true,
  closeIconPosition: 'top-right'
};

var initInstance = function initInstance() {
  instance = new (_vue.default.extend(_ImagePreview.default))({
    el: document.createElement('div')
  });
  document.body.appendChild(instance.$el);
  instance.$on('change', function (index) {
    if (instance.onChange) {
      instance.onChange(index);
    }
  });
  instance.$on('scale', function (data) {
    if (instance.onScale) {
      instance.onScale(data);
    }
  });
};

var ImagePreview = function ImagePreview(images, startPosition) {
  if (startPosition === void 0) {
    startPosition = 0;
  }

  /* istanbul ignore if */
  if (_utils.isServer) {
    return;
  }

  if (!instance) {
    initInstance();
  }

  var options = Array.isArray(images) ? {
    images: images,
    startPosition: startPosition
  } : images;
  (0, _extends2.default)(instance, defaultConfig, options);
  instance.$once('input', function (show) {
    instance.value = show;
  });
  instance.$once('closed', function () {
    instance.images = [];
  });

  if (options.onClose) {
    instance.$off('close');
    instance.$once('close', options.onClose);
  }

  return instance;
};

ImagePreview.Component = _ImagePreview.default;

ImagePreview.install = function () {
  _vue.default.use(_ImagePreview.default);
};

var _default = ImagePreview;
exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _shared = __webpack_require__(1351);

var _popup = __webpack_require__(198);

var _touch = __webpack_require__(103);

var _bindEvent = __webpack_require__(102);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _swipe = _interopRequireDefault(__webpack_require__(1353));

var _ImagePreviewItem = _interopRequireDefault(__webpack_require__(1985));

// Utils
// Mixins
// Components
var _default2 = (0, _shared.createComponent)({
  mixins: [_touch.TouchMixin, (0, _popup.PopupMixin)({
    skipToggleEvent: true
  }), (0, _bindEvent.BindEventMixin)(function (bind) {
    bind(window, 'resize', this.resize, true);
    bind(window, 'orientationchange', this.resize, true);
  })],
  props: {
    className: null,
    closeable: Boolean,
    asyncClose: Boolean,
    overlayStyle: Object,
    showIndicators: Boolean,
    images: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    loop: {
      type: Boolean,
      default: true
    },
    overlay: {
      type: Boolean,
      default: true
    },
    minZoom: {
      type: [Number, String],
      default: 1 / 3
    },
    maxZoom: {
      type: [Number, String],
      default: 3
    },
    transition: {
      type: String,
      default: 'van-fade'
    },
    showIndex: {
      type: Boolean,
      default: true
    },
    swipeDuration: {
      type: [Number, String],
      default: 300
    },
    startPosition: {
      type: [Number, String],
      default: 0
    },
    overlayClass: {
      type: String,
      default: (0, _shared.bem)('overlay')
    },
    closeIcon: {
      type: String,
      default: 'clear'
    },
    closeOnPopstate: {
      type: Boolean,
      default: true
    },
    closeIconPosition: {
      type: String,
      default: 'top-right'
    }
  },
  data: function data() {
    return {
      active: 0,
      rootWidth: 0,
      rootHeight: 0,
      doubleClickTimer: null
    };
  },
  mounted: function mounted() {
    this.resize();
  },
  watch: {
    startPosition: 'setActive',
    value: function value(val) {
      var _this = this;

      if (val) {
        this.setActive(+this.startPosition);
        this.$nextTick(function () {
          _this.resize();

          _this.$refs.swipe.swipeTo(+_this.startPosition, {
            immediate: true
          });
        });
      } else {
        this.$emit('close', {
          index: this.active,
          url: this.images[this.active]
        });
      }
    }
  },
  methods: {
    resize: function resize() {
      if (this.$el && this.$el.getBoundingClientRect) {
        var rect = this.$el.getBoundingClientRect();
        this.rootWidth = rect.width;
        this.rootHeight = rect.height;
      }
    },
    emitClose: function emitClose() {
      if (!this.asyncClose) {
        this.$emit('input', false);
      }
    },
    emitScale: function emitScale(args) {
      this.$emit('scale', args);
    },
    setActive: function setActive(active) {
      if (active !== this.active) {
        this.active = active;
        this.$emit('change', active);
      }
    },
    genIndex: function genIndex() {
      var h = this.$createElement;

      if (this.showIndex) {
        return h("div", {
          "class": (0, _shared.bem)('index')
        }, [this.slots('index', {
          index: this.active
        }) || this.active + 1 + " / " + this.images.length]);
      }
    },
    genCover: function genCover() {
      var h = this.$createElement;
      var cover = this.slots('cover');

      if (cover) {
        return h("div", {
          "class": (0, _shared.bem)('cover')
        }, [cover]);
      }
    },
    genImages: function genImages() {
      var _this2 = this;

      var h = this.$createElement;
      return h(_swipe.default, {
        "ref": "swipe",
        "attrs": {
          "lazyRender": true,
          "loop": this.loop,
          "duration": this.swipeDuration,
          "initialSwipe": this.startPosition,
          "showIndicators": this.showIndicators,
          "indicatorColor": "white"
        },
        "class": (0, _shared.bem)('swipe'),
        "on": {
          "change": this.setActive
        }
      }, [this.images.map(function (image) {
        return h(_ImagePreviewItem.default, {
          "attrs": {
            "src": image,
            "show": _this2.value,
            "active": _this2.active,
            "maxZoom": _this2.maxZoom,
            "minZoom": _this2.minZoom,
            "rootWidth": _this2.rootWidth,
            "rootHeight": _this2.rootHeight
          },
          "on": {
            "scale": _this2.emitScale,
            "close": _this2.emitClose
          }
        });
      })]);
    },
    genClose: function genClose() {
      var h = this.$createElement;

      if (this.closeable) {
        return h(_icon.default, {
          "attrs": {
            "role": "button",
            "name": this.closeIcon
          },
          "class": (0, _shared.bem)('close-icon', this.closeIconPosition),
          "on": {
            "click": this.emitClose
          }
        });
      }
    },
    onClosed: function onClosed() {
      this.$emit('closed');
    },
    // @exposed-api
    swipeTo: function swipeTo(index, options) {
      if (this.$refs.swipe) {
        this.$refs.swipe.swipeTo(index, options);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("transition", {
      "attrs": {
        "name": this.transition
      },
      "on": {
        "afterLeave": this.onClosed
      }
    }, [this.shouldRender ? h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "class": [(0, _shared.bem)(), this.className]
    }, [this.genClose(), this.genImages(), this.genIndex(), this.genCover()]) : null]);
  }
});

exports.default = _default2;

exports.__esModule = true;
exports.bem = exports.createComponent = void 0;

var _utils = __webpack_require__(18);

var _createNamespace = (0, _utils.createNamespace)('image-preview'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

exports.bem = bem;
exports.createComponent = createComponent;

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _style = __webpack_require__(200);

var _event = __webpack_require__(59);

var _raf = __webpack_require__(165);

var _number = __webpack_require__(167);

var _touch = __webpack_require__(103);

var _relation = __webpack_require__(73);

var _bindEvent = __webpack_require__(102);

// Utils
// Mixins
var _createNamespace = (0, _utils.createNamespace)('swipe'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [_touch.TouchMixin, (0, _relation.ParentMixin)('vanSwipe'), (0, _bindEvent.BindEventMixin)(function (bind, isBind) {
    bind(window, 'resize', this.resize, true);
    bind(window, 'orientationchange', this.resize, true);
    bind(window, 'visibilitychange', this.onVisibilityChange);

    if (isBind) {
      this.initialize();
    } else {
      this.clear();
    }
  })],
  props: {
    width: [Number, String],
    height: [Number, String],
    autoplay: [Number, String],
    vertical: Boolean,
    lazyRender: Boolean,
    indicatorColor: String,
    loop: {
      type: Boolean,
      default: true
    },
    duration: {
      type: [Number, String],
      default: 500
    },
    touchable: {
      type: Boolean,
      default: true
    },
    initialSwipe: {
      type: [Number, String],
      default: 0
    },
    showIndicators: {
      type: Boolean,
      default: true
    },
    stopPropagation: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      rect: null,
      offset: 0,
      active: 0,
      deltaX: 0,
      deltaY: 0,
      swiping: false,
      computedWidth: 0,
      computedHeight: 0
    };
  },
  watch: {
    children: function children() {
      this.initialize();
    },
    initialSwipe: function initialSwipe() {
      this.initialize();
    },
    autoplay: function autoplay(_autoplay) {
      if (_autoplay > 0) {
        this.autoPlay();
      } else {
        this.clear();
      }
    }
  },
  computed: {
    count: function count() {
      return this.children.length;
    },
    maxCount: function maxCount() {
      return Math.ceil(Math.abs(this.minOffset) / this.size);
    },
    delta: function delta() {
      return this.vertical ? this.deltaY : this.deltaX;
    },
    size: function size() {
      return this[this.vertical ? 'computedHeight' : 'computedWidth'];
    },
    trackSize: function trackSize() {
      return this.count * this.size;
    },
    activeIndicator: function activeIndicator() {
      return (this.active + this.count) % this.count;
    },
    isCorrectDirection: function isCorrectDirection() {
      var expect = this.vertical ? 'vertical' : 'horizontal';
      return this.direction === expect;
    },
    trackStyle: function trackStyle() {
      var style = {
        transitionDuration: (this.swiping ? 0 : this.duration) + "ms",
        transform: "translate" + (this.vertical ? 'Y' : 'X') + "(" + this.offset + "px)"
      };

      if (this.size) {
        var mainAxis = this.vertical ? 'height' : 'width';
        var crossAxis = this.vertical ? 'width' : 'height';
        style[mainAxis] = this.trackSize + "px";
        style[crossAxis] = this[crossAxis] ? this[crossAxis] + "px" : '';
      }

      return style;
    },
    indicatorStyle: function indicatorStyle() {
      return {
        backgroundColor: this.indicatorColor
      };
    },
    minOffset: function minOffset() {
      return (this.vertical ? this.rect.height : this.rect.width) - this.size * this.count;
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$refs.track);
  },
  methods: {
    // initialize swipe position
    initialize: function initialize(active) {
      if (active === void 0) {
        active = +this.initialSwipe;
      }

      if (!this.$el || (0, _style.isHidden)(this.$el)) {
        return;
      }

      clearTimeout(this.timer);
      var rect = {
        width: this.$el.offsetWidth,
        height: this.$el.offsetHeight
      };
      this.rect = rect;
      this.swiping = true;
      this.active = active;
      this.computedWidth = +this.width || rect.width;
      this.computedHeight = +this.height || rect.height;
      this.offset = this.getTargetOffset(active);
      this.children.forEach(function (swipe) {
        swipe.offset = 0;
      });
      this.autoPlay();
    },
    // @exposed-api
    resize: function resize() {
      this.initialize(this.activeIndicator);
    },
    onVisibilityChange: function onVisibilityChange() {
      if (document.hidden) {
        this.clear();
      } else {
        this.autoPlay();
      }
    },
    onTouchStart: function onTouchStart(event) {
      if (!this.touchable) return;
      this.clear();
      this.touchStartTime = Date.now();
      this.touchStart(event);
      this.correctPosition();
    },
    onTouchMove: function onTouchMove(event) {
      if (!this.touchable || !this.swiping) return;
      this.touchMove(event);

      if (this.isCorrectDirection) {
        (0, _event.preventDefault)(event, this.stopPropagation);
        this.move({
          offset: this.delta
        });
      }
    },
    onTouchEnd: function onTouchEnd() {
      if (!this.touchable || !this.swiping) return;
      var size = this.size,
          delta = this.delta;
      var duration = Date.now() - this.touchStartTime;
      var speed = delta / duration;
      var shouldSwipe = Math.abs(speed) > 0.25 || Math.abs(delta) > size / 2;

      if (shouldSwipe && this.isCorrectDirection) {
        var offset = this.vertical ? this.offsetY : this.offsetX;
        var pace = 0;

        if (this.loop) {
          pace = offset > 0 ? delta > 0 ? -1 : 1 : 0;
        } else {
          pace = -Math[delta > 0 ? 'ceil' : 'floor'](delta / size);
        }

        this.move({
          pace: pace,
          emitChange: true
        });
      } else if (delta) {
        this.move({
          pace: 0
        });
      }

      this.swiping = false;
      this.autoPlay();
    },
    getTargetActive: function getTargetActive(pace) {
      var active = this.active,
          count = this.count,
          maxCount = this.maxCount;

      if (pace) {
        if (this.loop) {
          return (0, _number.range)(active + pace, -1, count);
        }

        return (0, _number.range)(active + pace, 0, maxCount);
      }

      return active;
    },
    getTargetOffset: function getTargetOffset(targetActive, offset) {
      if (offset === void 0) {
        offset = 0;
      }

      var currentPosition = targetActive * this.size;

      if (!this.loop) {
        currentPosition = Math.min(currentPosition, -this.minOffset);
      }

      var targetOffset = offset - currentPosition;

      if (!this.loop) {
        targetOffset = (0, _number.range)(targetOffset, this.minOffset, 0);
      }

      return targetOffset;
    },
    move: function move(_ref) {
      var _ref$pace = _ref.pace,
          pace = _ref$pace === void 0 ? 0 : _ref$pace,
          _ref$offset = _ref.offset,
          offset = _ref$offset === void 0 ? 0 : _ref$offset,
          emitChange = _ref.emitChange;
      var loop = this.loop,
          count = this.count,
          active = this.active,
          children = this.children,
          trackSize = this.trackSize,
          minOffset = this.minOffset;

      if (count <= 1) {
        return;
      }

      var targetActive = this.getTargetActive(pace);
      var targetOffset = this.getTargetOffset(targetActive, offset); // auto move first and last swipe in loop mode

      if (loop) {
        if (children[0] && targetOffset !== minOffset) {
          var outRightBound = targetOffset < minOffset;
          children[0].offset = outRightBound ? trackSize : 0;
        }

        if (children[count - 1] && targetOffset !== 0) {
          var outLeftBound = targetOffset > 0;
          children[count - 1].offset = outLeftBound ? -trackSize : 0;
        }
      }

      this.active = targetActive;
      this.offset = targetOffset;

      if (emitChange && targetActive !== active) {
        this.$emit('change', this.activeIndicator);
      }
    },
    // @exposed-api
    prev: function prev() {
      var _this = this;

      this.correctPosition();
      this.resetTouchStatus();
      (0, _raf.doubleRaf)(function () {
        _this.swiping = false;

        _this.move({
          pace: -1,
          emitChange: true
        });
      });
    },
    // @exposed-api
    next: function next() {
      var _this2 = this;

      this.correctPosition();
      this.resetTouchStatus();
      (0, _raf.doubleRaf)(function () {
        _this2.swiping = false;

        _this2.move({
          pace: 1,
          emitChange: true
        });
      });
    },
    // @exposed-api
    swipeTo: function swipeTo(index, options) {
      var _this3 = this;

      if (options === void 0) {
        options = {};
      }

      this.correctPosition();
      this.resetTouchStatus();
      (0, _raf.doubleRaf)(function () {
        var targetIndex;

        if (_this3.loop && index === _this3.count) {
          targetIndex = _this3.active === 0 ? 0 : index;
        } else {
          targetIndex = index % _this3.count;
        }

        if (options.immediate) {
          (0, _raf.doubleRaf)(function () {
            _this3.swiping = false;
          });
        } else {
          _this3.swiping = false;
        }

        _this3.move({
          pace: targetIndex - _this3.active,
          emitChange: true
        });
      });
    },
    correctPosition: function correctPosition() {
      this.swiping = true;

      if (this.active <= -1) {
        this.move({
          pace: this.count
        });
      }

      if (this.active >= this.count) {
        this.move({
          pace: -this.count
        });
      }
    },
    clear: function clear() {
      clearTimeout(this.timer);
    },
    autoPlay: function autoPlay() {
      var _this4 = this;

      var autoplay = this.autoplay;

      if (autoplay > 0 && this.count > 1) {
        this.clear();
        this.timer = setTimeout(function () {
          _this4.next();

          _this4.autoPlay();
        }, autoplay);
      }
    },
    genIndicator: function genIndicator() {
      var _this5 = this;

      var h = this.$createElement;
      var count = this.count,
          activeIndicator = this.activeIndicator;
      var slot = this.slots('indicator');

      if (slot) {
        return slot;
      }

      if (this.showIndicators && count > 1) {
        return h("div", {
          "class": bem('indicators', {
            vertical: this.vertical
          })
        }, [Array.apply(void 0, Array(count)).map(function (empty, index) {
          return h("i", {
            "class": bem('indicator', {
              active: index === activeIndicator
            }),
            "style": index === activeIndicator ? _this5.indicatorStyle : null
          });
        })]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem()
    }, [h("div", {
      "ref": "track",
      "style": this.trackStyle,
      "class": bem('track', {
        vertical: this.vertical
      })
    }, [this.slots()]), this.genIndicator()]);
  }
});

exports.default = _default;

exports.__esModule = true;
exports.isHidden = isHidden;

function isHidden(el) {
  var style = window.getComputedStyle(el);
  var hidden = style.display === 'none'; // offsetParent returns null in the following situations:
  // 1. The element or its parent element has the display property set to none.
  // 2. The element has the position property set to fixed

  var parentHidden = el.offsetParent === null && style.position !== 'fixed';
  return hidden || parentHidden;
}

exports.__esModule = true;
exports.ChildrenMixin = ChildrenMixin;
exports.ParentMixin = ParentMixin;

var _vnodes = __webpack_require__(1917);

function ChildrenMixin(_parent, options) {
  var _inject, _computed;

  if (options === void 0) {
    options = {};
  }

  var indexKey = options.indexKey || 'index';
  return {
    inject: (_inject = {}, _inject[_parent] = {
      default: null
    }, _inject),
    computed: (_computed = {
      parent: function parent() {
        if (this.disableBindRelation) {
          return null;
        }

        return this[_parent];
      }
    }, _computed[indexKey] = function () {
      this.bindRelation();

      if (this.parent) {
        return this.parent.children.indexOf(this);
      }

      return null;
    }, _computed),
    watch: {
      disableBindRelation: function disableBindRelation(val) {
        if (!val) {
          this.bindRelation();
        }
      }
    },
    mounted: function mounted() {
      this.bindRelation();
    },
    beforeDestroy: function beforeDestroy() {
      var _this = this;

      if (this.parent) {
        this.parent.children = this.parent.children.filter(function (item) {
          return item !== _this;
        });
      }
    },
    methods: {
      bindRelation: function bindRelation() {
        if (!this.parent || this.parent.children.indexOf(this) !== -1) {
          return;
        }

        var children = [].concat(this.parent.children, [this]);
        (0, _vnodes.sortChildren)(children, this.parent);
        this.parent.children = children;
      }
    }
  };
}

function ParentMixin(parent) {
  return {
    provide: function provide() {
      var _ref;

      return _ref = {}, _ref[parent] = this, _ref;
    },
    data: function data() {
      return {
        children: []
      };
    }
  };
}

exports.__esModule = true;
exports.sortChildren = sortChildren;

function flattenVNodes(vnodes) {
  var result = [];

  function traverse(vnodes) {
    vnodes.forEach(function (vnode) {
      result.push(vnode);

      if (vnode.componentInstance) {
        traverse(vnode.componentInstance.$children.map(function (item) {
          return item.$vnode;
        }));
      }

      if (vnode.children) {
        traverse(vnode.children);
      }
    });
  }

  traverse(vnodes);
  return result;
} // sort children instances by vnodes order


function sortChildren(children, parent) {
  var componentOptions = parent.$vnode.componentOptions;

  if (!componentOptions || !componentOptions.children) {
    return;
  }

  var vnodes = flattenVNodes(componentOptions.children);
  children.sort(function (a, b) {
    return vnodes.indexOf(a.$vnode) - vnodes.indexOf(b.$vnode);
  });
}

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _shared = __webpack_require__(1351);

var _number = __webpack_require__(167);

var _event = __webpack_require__(59);

var _touch = __webpack_require__(103);

var _image = _interopRequireDefault(__webpack_require__(245));

var _loading = _interopRequireDefault(__webpack_require__(91));

var _swipeItem = _interopRequireDefault(__webpack_require__(1354));

// Utils
// Mixins
// Component
function getDistance(touches) {
  return Math.sqrt(Math.pow(touches[0].clientX - touches[1].clientX, 2) + Math.pow(touches[0].clientY - touches[1].clientY, 2));
}

var _default = {
  mixins: [_touch.TouchMixin],
  props: {
    src: String,
    show: Boolean,
    active: Number,
    minZoom: [Number, String],
    maxZoom: [Number, String],
    rootWidth: Number,
    rootHeight: Number
  },
  data: function data() {
    return {
      scale: 1,
      moveX: 0,
      moveY: 0,
      moving: false,
      zooming: false,
      imageRatio: 0,
      displayWidth: 0,
      displayHeight: 0
    };
  },
  computed: {
    vertical: function vertical() {
      var rootWidth = this.rootWidth,
          rootHeight = this.rootHeight;
      var rootRatio = rootHeight / rootWidth;
      return this.imageRatio > rootRatio;
    },
    imageStyle: function imageStyle() {
      var scale = this.scale;
      var style = {
        transitionDuration: this.zooming || this.moving ? '0s' : '.3s'
      };

      if (scale !== 1) {
        var offsetX = this.moveX / scale;
        var offsetY = this.moveY / scale;
        style.transform = "scale(" + scale + ", " + scale + ") translate(" + offsetX + "px, " + offsetY + "px)";
      }

      return style;
    },
    maxMoveX: function maxMoveX() {
      if (this.imageRatio) {
        var displayWidth = this.vertical ? this.rootHeight / this.imageRatio : this.rootWidth;
        return Math.max(0, (this.scale * displayWidth - this.rootWidth) / 2);
      }

      return 0;
    },
    maxMoveY: function maxMoveY() {
      if (this.imageRatio) {
        var displayHeight = this.vertical ? this.rootHeight : this.rootWidth * this.imageRatio;
        return Math.max(0, (this.scale * displayHeight - this.rootHeight) / 2);
      }

      return 0;
    }
  },
  watch: {
    active: 'resetScale',
    show: function show(val) {
      if (!val) {
        this.resetScale();
      }
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);
  },
  methods: {
    resetScale: function resetScale() {
      this.setScale(1);
      this.moveX = 0;
      this.moveY = 0;
    },
    setScale: function setScale(scale) {
      scale = (0, _number.range)(scale, +this.minZoom, +this.maxZoom);

      if (scale !== this.scale) {
        this.scale = scale;
        this.$emit('scale', {
          scale: this.scale,
          index: this.active
        });
      }
    },
    toggleScale: function toggleScale() {
      var scale = this.scale > 1 ? 1 : 2;
      this.setScale(scale);
      this.moveX = 0;
      this.moveY = 0;
    },
    onTouchStart: function onTouchStart(event) {
      var touches = event.touches;
      var _this$offsetX = this.offsetX,
          offsetX = _this$offsetX === void 0 ? 0 : _this$offsetX;
      this.touchStart(event);
      this.touchStartTime = new Date();
      this.fingerNum = touches.length;
      this.startMoveX = this.moveX;
      this.startMoveY = this.moveY;
      this.moving = this.fingerNum === 1 && this.scale !== 1;
      this.zooming = this.fingerNum === 2 && !offsetX;

      if (this.zooming) {
        this.startScale = this.scale;
        this.startDistance = getDistance(event.touches);
      }
    },
    onTouchMove: function onTouchMove(event) {
      var touches = event.touches;
      this.touchMove(event);

      if (this.moving || this.zooming) {
        (0, _event.preventDefault)(event, true);
      }

      if (this.moving) {
        var moveX = this.deltaX + this.startMoveX;
        var moveY = this.deltaY + this.startMoveY;
        this.moveX = (0, _number.range)(moveX, -this.maxMoveX, this.maxMoveX);
        this.moveY = (0, _number.range)(moveY, -this.maxMoveY, this.maxMoveY);
      }

      if (this.zooming && touches.length === 2) {
        var distance = getDistance(touches);
        var scale = this.startScale * distance / this.startDistance;
        this.setScale(scale);
      }
    },
    onTouchEnd: function onTouchEnd(event) {
      var stopPropagation = false;
      /* istanbul ignore else */

      if (this.moving || this.zooming) {
        stopPropagation = true;

        if (this.moving && this.startMoveX === this.moveX && this.startMoveY === this.moveY) {
          stopPropagation = false;
        }

        if (!event.touches.length) {
          if (this.zooming) {
            this.moveX = (0, _number.range)(this.moveX, -this.maxMoveX, this.maxMoveX);
            this.moveY = (0, _number.range)(this.moveY, -this.maxMoveY, this.maxMoveY);
            this.zooming = false;
          }

          this.moving = false;
          this.startMoveX = 0;
          this.startMoveY = 0;
          this.startScale = 1;

          if (this.scale < 1) {
            this.resetScale();
          }
        }
      } // eliminate tap delay on safari


      (0, _event.preventDefault)(event, stopPropagation);
      this.checkTap();
      this.resetTouchStatus();
    },
    checkTap: function checkTap() {
      var _this = this;

      if (this.fingerNum > 1) {
        return;
      }

      var _this$offsetX2 = this.offsetX,
          offsetX = _this$offsetX2 === void 0 ? 0 : _this$offsetX2,
          _this$offsetY = this.offsetY,
          offsetY = _this$offsetY === void 0 ? 0 : _this$offsetY;
      var deltaTime = new Date() - this.touchStartTime;
      var TAP_TIME = 250;
      var TAP_OFFSET = 5;

      if (offsetX < TAP_OFFSET && offsetY < TAP_OFFSET && deltaTime < TAP_TIME) {
        if (this.doubleTapTimer) {
          clearTimeout(this.doubleTapTimer);
          this.doubleTapTimer = null;
          this.toggleScale();
        } else {
          this.doubleTapTimer = setTimeout(function () {
            _this.$emit('close');

            _this.doubleTapTimer = null;
          }, TAP_TIME);
        }
      }
    },
    onLoad: function onLoad(event) {
      var _event$target = event.target,
          naturalWidth = _event$target.naturalWidth,
          naturalHeight = _event$target.naturalHeight;
      this.imageRatio = naturalHeight / naturalWidth;
    }
  },
  render: function render() {
    var h = arguments[0];
    var imageSlots = {
      loading: function loading() {
        return h(_loading.default, {
          "attrs": {
            "type": "spinner"
          }
        });
      }
    };
    return h(_swipeItem.default, {
      "class": (0, _shared.bem)('swipe-item')
    }, [h(_image.default, {
      "attrs": {
        "src": this.src,
        "fit": "contain"
      },
      "class": (0, _shared.bem)('image', {
        vertical: this.vertical
      }),
      "style": this.imageStyle,
      "scopedSlots": imageSlots,
      "on": {
        "load": this.onLoad
      }
    })]);
  }
};
exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _relation = __webpack_require__(73);

var _createNamespace = (0, _utils.createNamespace)('swipe-item'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _relation.ChildrenMixin)('vanSwipe')],
  data: function data() {
    return {
      offset: 0,
      inited: false,
      mounted: false
    };
  },
  mounted: function mounted() {
    var _this = this;

    this.$nextTick(function () {
      _this.mounted = true;
    });
  },
  computed: {
    style: function style() {
      var style = {};
      var _this$parent = this.parent,
          size = _this$parent.size,
          vertical = _this$parent.vertical;

      if (size) {
        style[vertical ? 'height' : 'width'] = size + "px";
      }

      if (this.offset) {
        style.transform = "translate" + (vertical ? 'Y' : 'X') + "(" + this.offset + "px)";
      }

      return style;
    },
    shouldRender: function shouldRender() {
      var index = this.index,
          inited = this.inited,
          parent = this.parent,
          mounted = this.mounted;

      if (!parent.lazyRender || inited) {
        return true;
      } // wait for all item to mount, so we can get the exact count


      if (!mounted) {
        return false;
      }

      var active = parent.activeIndicator;
      var maxActive = parent.count - 1;
      var prevActive = active === 0 && parent.loop ? maxActive : active - 1;
      var nextActive = active === maxActive && parent.loop ? 0 : active + 1;
      var shouldRender = index === active || index === prevActive || index === nextActive;

      if (shouldRender) {
        this.inited = true;
      }

      return shouldRender;
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem(),
      "style": this.style,
      "on": (0, _extends2.default)({}, this.$listeners)
    }, [this.shouldRender && this.slots()]);
  }
});

exports.default = _default;__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(234);
__webpack_require__(1350);__webpack_require__(26);
__webpack_require__(131);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(164);
__webpack_require__(74);
__webpack_require__(1348);
__webpack_require__(1923);
__webpack_require__(1925);
__webpack_require__(1927);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1924);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b3a765ec", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-goods-action-button{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:40px;font-weight:500;font-size:14px;border:none;border-radius:0}.van-goods-action-button--first{margin-left:5px;border-top-left-radius:999px;border-bottom-left-radius:999px}.van-goods-action-button--last{margin-right:5px;border-top-right-radius:999px;border-bottom-right-radius:999px}.van-goods-action-button--warning{background:-webkit-linear-gradient(left,#ffd01e,#ff8917);background:linear-gradient(to right,#ffd01e,#ff8917)}.van-goods-action-button--danger{background:-webkit-linear-gradient(left,#ff6034,#ee0a24);background:linear-gradient(to right,#ff6034,#ee0a24)}@media (max-width:321px){.van-goods-action-button{font-size:13px}}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/goods-action-button/index.css"],"names":[],"mappings":"AAAA,yBAAyB,mBAAmB,eAAe,OAAO,YAAY,gBAAgB,eAAe,YAAY,eAAe,CAAC,gCAAgC,gBAAgB,6BAA6B,+BAA+B,CAAC,+BAA+B,iBAAiB,8BAA8B,gCAAgC,CAAC,kCAAkC,yDAAyD,oDAAoD,CAAC,iCAAiC,yDAAyD,oDAAoD,CAAC,yBAAyB,yBAAyB,cAAc,CAAC,CAAC","file":"index.css","sourcesContent":[".van-goods-action-button{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:40px;font-weight:500;font-size:14px;border:none;border-radius:0}.van-goods-action-button--first{margin-left:5px;border-top-left-radius:999px;border-bottom-left-radius:999px}.van-goods-action-button--last{margin-right:5px;border-top-right-radius:999px;border-bottom-right-radius:999px}.van-goods-action-button--warning{background:-webkit-linear-gradient(left,#ffd01e,#ff8917);background:linear-gradient(to right,#ffd01e,#ff8917)}.van-goods-action-button--danger{background:-webkit-linear-gradient(left,#ff6034,#ee0a24);background:linear-gradient(to right,#ff6034,#ee0a24)}@media (max-width:321px){.van-goods-action-button{font-size:13px}}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1926);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("72bf3865", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:content-box;height:50px;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);background-color:#fff}.van-goods-action--unfit{padding-bottom:0}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/goods-action/index.css"],"names":[],"mappings":"AAAA,kBAAkB,eAAe,QAAQ,SAAS,OAAO,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,uBAAuB,YAAY,gDAAgD,2CAA2C,qBAAqB,CAAC,yBAAyB,gBAAgB,CAAC","file":"index.css","sourcesContent":[".van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:content-box;height:50px;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);background-color:#fff}.van-goods-action--unfit{padding-bottom:0}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1928);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1b8ea360", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-dialog{position:fixed;top:45%;left:50%;width:320px;overflow:hidden;font-size:16px;background-color:#fff;border-radius:16px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.3s;transition:.3s;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}@media (max-width:321px){.van-dialog{width:90%}}.van-dialog__header{padding-top:26px;font-weight:500;line-height:24px;text-align:center}.van-dialog__header--isolated{padding:24px 0}.van-dialog__content--isolated{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;min-height:104px}.van-dialog__message{-webkit-box-flex:1;-webkit-flex:1;flex:1;max-height:60vh;padding:26px 24px;overflow-y:auto;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:8px;color:#646566}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__cancel,.van-dialog__confirm{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:48px;margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:#ee0a24}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:8px 24px 16px}.van-dialog--round-button .van-dialog__message{padding-bottom:16px;color:#323233}.van-dialog--round-button .van-dialog__cancel,.van-dialog--round-button .van-dialog__confirm{height:36px}.van-dialog--round-button .van-dialog__confirm{color:#fff}.van-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/dialog/index.css"],"names":[],"mappings":"AAAA,YAAY,eAAe,QAAQ,SAAS,YAAY,gBAAgB,eAAe,sBAAsB,mBAAmB,2CAA2C,mCAAmC,mCAAmC,2BAA2B,uBAAuB,eAAe,sDAAsD,8CAA8C,sCAAsC,uDAAuD,CAAC,yBAAyB,YAAY,SAAS,CAAC,CAAC,oBAAoB,iBAAiB,gBAAgB,iBAAiB,iBAAiB,CAAC,8BAA8B,cAAc,CAAC,+BAA+B,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,gBAAgB,CAAC,qBAAqB,mBAAmB,eAAe,OAAO,gBAAgB,kBAAkB,gBAAgB,eAAe,iBAAiB,qBAAqB,kBAAkB,qBAAqB,gCAAgC,CAAC,gCAAgC,gBAAgB,aAAa,CAAC,2BAA2B,eAAe,CAAC,4BAA4B,gBAAgB,CAAC,oBAAoB,oBAAoB,qBAAqB,aAAa,gBAAgB,yBAAyB,gBAAgB,CAAC,yCAAyC,mBAAmB,eAAe,OAAO,YAAY,SAAS,QAAQ,CAAC,iDAAiD,aAAa,CAAC,8CAA8C,kBAAkB,YAAY,qBAAqB,CAAC,+CAA+C,oBAAoB,aAAa,CAAC,6FAA6F,WAAW,CAAC,+CAA+C,UAAU,CAAC,yBAAyB,qDAAqD,6CAA6C,SAAS,CAAC,gCAAgC,qDAAqD,6CAA6C,SAAS,CAAC","file":"index.css","sourcesContent":[".van-dialog{position:fixed;top:45%;left:50%;width:320px;overflow:hidden;font-size:16px;background-color:#fff;border-radius:16px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.3s;transition:.3s;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}@media (max-width:321px){.van-dialog{width:90%}}.van-dialog__header{padding-top:26px;font-weight:500;line-height:24px;text-align:center}.van-dialog__header--isolated{padding:24px 0}.van-dialog__content--isolated{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;min-height:104px}.van-dialog__message{-webkit-box-flex:1;-webkit-flex:1;flex:1;max-height:60vh;padding:26px 24px;overflow-y:auto;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:8px;color:#646566}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__cancel,.van-dialog__confirm{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:48px;margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:#ee0a24}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:8px 24px 16px}.van-dialog--round-button .van-dialog__message{padding-bottom:16px;color:#323233}.van-dialog--round-button .van-dialog__cancel,.van-dialog--round-button .van-dialog__confirm{height:36px}.van-dialog--round-button .van-dialog__confirm{color:#fff}.van-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _vue = _interopRequireDefault(__webpack_require__(22));

var _Dialog = _interopRequireDefault(__webpack_require__(1929));

var _utils = __webpack_require__(18);

var instance;

function isInDocument(element) {
  return document.body.contains(element);
}

function initInstance() {
  if (instance) {
    instance.$destroy();
  }

  instance = new (_vue.default.extend(_Dialog.default))({
    el: document.createElement('div'),
    // avoid missing animation when first rendered
    propsData: {
      lazyRender: false
    }
  });
  instance.$on('input', function (value) {
    instance.value = value;
  });
}

function Dialog(options) {
  /* istanbul ignore if */
  if (_utils.isServer) {
    return Promise.resolve();
  }

  return new Promise(function (resolve, reject) {
    if (!instance || !isInDocument(instance.$el)) {
      initInstance();
    }

    (0, _extends2.default)(instance, Dialog.currentOptions, options, {
      resolve: resolve,
      reject: reject
    });
  });
}

Dialog.defaultOptions = {
  value: true,
  title: '',
  width: '',
  theme: null,
  message: '',
  overlay: true,
  className: '',
  allowHtml: true,
  lockScroll: true,
  transition: 'van-dialog-bounce',
  beforeClose: null,
  overlayClass: '',
  overlayStyle: null,
  messageAlign: '',
  getContainer: 'body',
  cancelButtonText: '',
  cancelButtonColor: null,
  confirmButtonText: '',
  confirmButtonColor: null,
  showConfirmButton: true,
  showCancelButton: false,
  closeOnPopstate: true,
  closeOnClickOverlay: false,
  callback: function callback(action) {
    instance[action === 'confirm' ? 'resolve' : 'reject'](action);
  }
};
Dialog.alert = Dialog;

Dialog.confirm = function (options) {
  return Dialog((0, _extends2.default)({
    showCancelButton: true
  }, options));
};

Dialog.close = function () {
  if (instance) {
    instance.value = false;
  }
};

Dialog.setDefaultOptions = function (options) {
  (0, _extends2.default)(Dialog.currentOptions, options);
};

Dialog.resetDefaultOptions = function () {
  Dialog.currentOptions = (0, _extends2.default)({}, Dialog.defaultOptions);
};

Dialog.resetDefaultOptions();

Dialog.install = function () {
  _vue.default.use(_Dialog.default);
};

Dialog.Component = _Dialog.default;
_vue.default.prototype.$dialog = Dialog;
var _default = Dialog;
exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _constant = __webpack_require__(166);

var _popup = __webpack_require__(198);

var _button = _interopRequireDefault(__webpack_require__(767));

var _goodsAction = _interopRequireDefault(__webpack_require__(1930));

var _goodsActionButton = _interopRequireDefault(__webpack_require__(1931));

var _createNamespace = (0, _utils.createNamespace)('dialog'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1],
    t = _createNamespace[2];

var _default = createComponent({
  mixins: [(0, _popup.PopupMixin)()],
  props: {
    title: String,
    theme: String,
    width: [Number, String],
    message: String,
    className: null,
    callback: Function,
    beforeClose: Function,
    messageAlign: String,
    cancelButtonText: String,
    cancelButtonColor: String,
    confirmButtonText: String,
    confirmButtonColor: String,
    showCancelButton: Boolean,
    overlay: {
      type: Boolean,
      default: true
    },
    allowHtml: {
      type: Boolean,
      default: true
    },
    transition: {
      type: String,
      default: 'van-dialog-bounce'
    },
    showConfirmButton: {
      type: Boolean,
      default: true
    },
    closeOnPopstate: {
      type: Boolean,
      default: true
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      loading: {
        confirm: false,
        cancel: false
      }
    };
  },
  methods: {
    onClickOverlay: function onClickOverlay() {
      this.handleAction('overlay');
    },
    handleAction: function handleAction(action) {
      var _this = this;

      this.$emit(action); // show not trigger close event when hidden

      if (!this.value) {
        return;
      }

      if (this.beforeClose) {
        this.loading[action] = true;
        this.beforeClose(action, function (state) {
          if (state !== false && _this.loading[action]) {
            _this.onClose(action);
          }

          _this.loading.confirm = false;
          _this.loading.cancel = false;
        });
      } else {
        this.onClose(action);
      }
    },
    onClose: function onClose(action) {
      this.close();

      if (this.callback) {
        this.callback(action);
      }
    },
    onOpened: function onOpened() {
      var _this2 = this;

      this.$emit('opened');
      this.$nextTick(function () {
        var _this2$$refs$dialog;

        (_this2$$refs$dialog = _this2.$refs.dialog) == null ? void 0 : _this2$$refs$dialog.focus();
      });
    },
    onClosed: function onClosed() {
      this.$emit('closed');
    },
    onKeydown: function onKeydown(event) {
      var _this3 = this;

      if (event.key === 'Escape' || event.key === 'Enter') {
        // skip keyboard events of child elements
        if (event.target !== this.$refs.dialog) {
          return;
        }

        var onEventType = {
          Enter: this.showConfirmButton ? function () {
            return _this3.handleAction('confirm');
          } : _utils.noop,
          Escape: this.showCancelButton ? function () {
            return _this3.handleAction('cancel');
          } : _utils.noop
        };
        onEventType[event.key]();
        this.$emit('keydown', event);
      }
    },
    genRoundButtons: function genRoundButtons() {
      var _this4 = this;

      var h = this.$createElement;
      return h(_goodsAction.default, {
        "class": bem('footer')
      }, [this.showCancelButton && h(_goodsActionButton.default, {
        "attrs": {
          "size": "large",
          "type": "warning",
          "text": this.cancelButtonText || t('cancel'),
          "color": this.cancelButtonColor,
          "loading": this.loading.cancel
        },
        "class": bem('cancel'),
        "on": {
          "click": function click() {
            _this4.handleAction('cancel');
          }
        }
      }), this.showConfirmButton && h(_goodsActionButton.default, {
        "attrs": {
          "size": "large",
          "type": "danger",
          "text": this.confirmButtonText || t('confirm'),
          "color": this.confirmButtonColor,
          "loading": this.loading.confirm
        },
        "class": bem('confirm'),
        "on": {
          "click": function click() {
            _this4.handleAction('confirm');
          }
        }
      })]);
    },
    genButtons: function genButtons() {
      var _this5 = this,
          _ref;

      var h = this.$createElement;
      var multiple = this.showCancelButton && this.showConfirmButton;
      return h("div", {
        "class": [_constant.BORDER_TOP, bem('footer')]
      }, [this.showCancelButton && h(_button.default, {
        "attrs": {
          "size": "large",
          "loading": this.loading.cancel,
          "text": this.cancelButtonText || t('cancel'),
          "nativeType": "button"
        },
        "class": bem('cancel'),
        "style": {
          color: this.cancelButtonColor
        },
        "on": {
          "click": function click() {
            _this5.handleAction('cancel');
          }
        }
      }), this.showConfirmButton && h(_button.default, {
        "attrs": {
          "size": "large",
          "loading": this.loading.confirm,
          "text": this.confirmButtonText || t('confirm'),
          "nativeType": "button"
        },
        "class": [bem('confirm'), (_ref = {}, _ref[_constant.BORDER_LEFT] = multiple, _ref)],
        "style": {
          color: this.confirmButtonColor
        },
        "on": {
          "click": function click() {
            _this5.handleAction('confirm');
          }
        }
      })]);
    },
    genContent: function genContent(hasTitle, messageSlot) {
      var h = this.$createElement;

      if (messageSlot) {
        return h("div", {
          "class": bem('content')
        }, [messageSlot]);
      }

      var message = this.message,
          messageAlign = this.messageAlign;

      if (message) {
        var _bem, _domProps;

        var data = {
          class: bem('message', (_bem = {
            'has-title': hasTitle
          }, _bem[messageAlign] = messageAlign, _bem)),
          domProps: (_domProps = {}, _domProps[this.allowHtml ? 'innerHTML' : 'textContent'] = message, _domProps)
        };
        return h("div", {
          "class": bem('content', {
            isolated: !hasTitle
          })
        }, [h("div", (0, _babelHelperVueJsxMergeProps.default)([{}, data]))]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];

    if (!this.shouldRender) {
      return;
    }

    var message = this.message;
    var messageSlot = this.slots();
    var title = this.slots('title') || this.title;
    var Title = title && h("div", {
      "class": bem('header', {
        isolated: !message && !messageSlot
      })
    }, [title]);
    return h("transition", {
      "attrs": {
        "name": this.transition
      },
      "on": {
        "afterEnter": this.onOpened,
        "afterLeave": this.onClosed
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "attrs": {
        "role": "dialog",
        "aria-labelledby": this.title || message,
        "tabIndex": 0
      },
      "class": [bem([this.theme]), this.className],
      "style": {
        width: (0, _utils.addUnit)(this.width)
      },
      "ref": "dialog",
      "on": {
        "keydown": this.onKeydown
      }
    }, [Title, this.genContent(title, messageSlot), this.theme === 'round-button' ? this.genRoundButtons() : this.genButtons()])]);
  }
});

exports.default = _default;

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _relation = __webpack_require__(73);

var _createNamespace = (0, _utils.createNamespace)('goods-action'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _relation.ParentMixin)('vanGoodsAction')],
  props: {
    safeAreaInsetBottom: {
      type: Boolean,
      default: true
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem({
        unfit: !this.safeAreaInsetBottom
      })
    }, [this.slots()]);
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _router = __webpack_require__(201);

var _relation = __webpack_require__(73);

var _button = _interopRequireDefault(__webpack_require__(767));

var _createNamespace = (0, _utils.createNamespace)('goods-action-button'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _relation.ChildrenMixin)('vanGoodsAction')],
  props: (0, _extends2.default)({}, _router.routeProps, {
    type: String,
    text: String,
    icon: String,
    color: String,
    loading: Boolean,
    disabled: Boolean
  }),
  computed: {
    isFirst: function isFirst() {
      var prev = this.parent && this.parent.children[this.index - 1];
      return !prev || prev.$options.name !== this.$options.name;
    },
    isLast: function isLast() {
      var next = this.parent && this.parent.children[this.index + 1];
      return !next || next.$options.name !== this.$options.name;
    }
  },
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);
      (0, _router.route)(this.$router, this);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h(_button.default, {
      "class": bem([{
        first: this.isFirst,
        last: this.isLast
      }, this.type]),
      "attrs": {
        "size": "large",
        "type": this.type,
        "icon": this.icon,
        "color": this.color,
        "loading": this.loading,
        "disabled": this.disabled
      },
      "on": {
        "click": this.onClick
      }
    }, [this.slots() || this.text]);
  }
});

exports.default = _default;__webpack_require__(26);
__webpack_require__(131);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(770);
__webpack_require__(164);
__webpack_require__(74);
__webpack_require__(771);
__webpack_require__(772);
__webpack_require__(1349);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(240);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2cbe13d1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(782);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1986)
  __webpack_require__(1988)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2cbe13d1"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2cbe13d1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2cbe13d1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1987);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("224e28c2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "*{font-family:PingFangSC-Regular,PingFang SC}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1989);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("9eedfa08", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fade-enter-active[data-v-2cbe13d1],.fade-leave-active[data-v-2cbe13d1]{-webkit-transition:all .3s linear;transition:all .3s linear}.msg-dialog.fade-enter[data-v-2cbe13d1],.msg-dialog.fade-leave-to[data-v-2cbe13d1]{top:-1rem}.msg-dialog[data-v-2cbe13d1]{position:fixed;width:100%;top:0;left:0;z-index:9999999}.msg-dialog .msg-content[data-v-2cbe13d1]{padding:.5rem;margin:.5rem .6rem;height:3.7rem;border-radius:.4rem;background-color:#e5ecfa;box-shadow:0 .2rem .4rem 0 hsla(223,7%,62%,.3)}.msg-dialog .msg-content .top[data-v-2cbe13d1]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.3rem}.msg-dialog .msg-content .top .avatar[data-v-2cbe13d1]{width:1.2rem;height:1.2rem;vertical-align:top;border-radius:.3rem;overflow:hidden}.msg-dialog .msg-content .top .name[data-v-2cbe13d1]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.4rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;line-height:1rem;color:#666}.msg-dialog .msg-content .top .time[data-v-2cbe13d1]{line-height:.83rem;font-size:.6rem;color:#999}.msg-dialog .msg-content .content[data-v-2cbe13d1]{height:1.2rem;font-size:.85rem;line-height:1.2rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#333}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    msg: {
      type: Object,
      default: function _default() {}
    }
  },
  data: function data() {
    return {
      showMsg: false,
      timer: null,
      startY: null
    };
  },
  watch: {
    'msg': function msg(val) {
      var _this = this;
      this.showMsg = false;
      clearTimeout(this.timer);
      if (val.id) {
        setTimeout(function () {
          _this.showMsg = true;
        }, 300);
      }
      this.timer = setTimeout(function () {
        _this.showMsg = false;
      }, 10 * 1000);
    }
  },
  methods: {
    touchStart: function touchStart(e) {
      this.startY = e.touches[0].clientY;
    },
    touchEnd: function touchEnd(e) {
      var endY = e.changedTouches[0].clientY;
      if (this.startY - endY >= 30) {
        this.showMsg = false;
      }
    },
    /**
     * 进入问题会话
     */
    toConCversation: function toConCversation(item) {
      var userId = Number(localStorage.getItem('userId'));
      var ascription;
      if (userId === item.createUserId) {
        ascription = 'questioner';
      } else {
        ascription = 'answer';
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversationV13' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id, "&ascription=").concat(ascription)
          }
        });
      } else {
        this.$router.push({
          name: 'conversationV13',
          query: {
            questionNo: item.questionNo,
            id: item.id,
            ascription: ascription
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"fade"}},[(_vm.showMsg)?_c('div',{staticClass:"msg-dialog",on:{"touchstart":function($event){return _vm.touchStart($event)},"touchend":function($event){return _vm.touchEnd($event)}}},[_c('div',{staticClass:"msg-content",on:{"click":function($event){return _vm.toConCversation(_vm.msg)}}},[_c('div',{staticClass:"top"},[(_vm.msg.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":_vm.msg.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(_vm.msg.uname))]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm.msg.createTimeValue || '-'))])]),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.msg.messageContent))])])]):_vm._e()])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/avatar.714f223.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page ask-order-detail"},[_c('div',{staticClass:"detail-top"},[_c('div',{staticClass:"detail-title"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))])]),_vm._v(" "),_c('div',{staticClass:"creat-time"},[_c('span',[_vm._v(_vm._s(_vm.questionDetail.uname || '用户_' + _vm.questionDetail.createUserId))]),_c('span',[_vm._v(_vm._s(_vm._Util.dateFormat(_vm.questionDetail.createTime, 'yyyy-MM-dd hh:mm')))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(_vm.questionDetail.cashBounty > 0)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏: "+_vm._s(_vm.questionDetail.cashBounty)+"元")]):_vm._e()]),_vm._v(" "),(_vm.isAdmin && _vm.adminData)?_c('div',{staticClass:"manager"},[_c('div',{staticClass:"up"},[_c('div',{staticClass:"count"},[(_vm.questionDetail.status === 2)?_c('div',{staticClass:"time"},[_vm._v("\n            作废倒计时："),_c('van-count-down',{ref:"countDown",attrs:{"auto-start":true,"time":_vm.questionDetail.createTime + (30 * 60 * 1000) - new Date().getTime(),"format":"mm分ss秒"}})],1):_vm._e(),_vm._v(" "),(_vm.questionDetail.status === 3)?_c('div',{staticClass:"time"},[_vm._v("\n            作废倒计时：\n            "),(_vm.questionDetail.bountyFlag)?_c('van-count-down',{ref:"countDown",attrs:{"auto-start":true,"time":_vm.questionDetail.createTime + (7200 * 60 * 1000) - new Date().getTime(),"format":"HH时mm分ss秒"}}):_c('van-count-down',{ref:"countDown",attrs:{"auto-start":true,"time":_vm.questionDetail.createTime + (180 * 60 * 1000) - new Date().getTime(),"format":"mm分ss秒"}})],1):_vm._e(),_vm._v(" "),(_vm.questionDetail.status !== 3 && _vm.questionDetail.status !== 2)?_c('div',{staticClass:"time"},[_vm._v("\n            作废倒计时：00:00\n          ")]):_vm._e(),_vm._v(" "),(_vm.adminData.isCard)?_c('div',{staticClass:"speed"},[_c('img',{attrs:{"src":__webpack_require__(797)}}),_vm._v("加速卡")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"manag-btn",on:{"click":_vm.addReward}},[_vm._v("加悬赏")])]),_vm._v(" "),_c('div',{staticClass:"down",class:{'no-speed': !_vm.adminData.isCard}},[_c('span',[_vm._v("通知"+_vm._s(_vm.adminData.noticeCount || 0)+"次，查看"+_vm._s(_vm.adminData.viewCount || 0)+"人，接单"+_vm._s(_vm.adminData.ordersCount || 0)+"人")]),_vm._v(" "),_c('div',{staticClass:"hide-que",on:{"click":_vm.hideQue}},[_vm._v("隐藏")])]),_vm._v(" "),(_vm.adminData.qaSystemRewardVos && _vm.adminData.qaSystemRewardVos.length)?_c('div',{staticClass:"add-list"},_vm._l(((_vm.adminData.qaSystemRewardVos ? _vm.adminData.qaSystemRewardVos : [])),function(item2,index2){return _c('div',{key:index2,staticClass:"add-item"},[(item2.rewardType === 0)?[_c('span',[_vm._v("加现金： "+_vm._s(item2.amount)+"元")]),_c('span',[_vm._v(_vm._s(item2.createUser)+" "+_vm._s(_vm._Util.dateFormat(item2.createTime, 'MM-dd hh:mm')))])]:[_c('span',[_vm._v("加星豆： "+_vm._s(item2.amount)+"个")]),_c('span',[_vm._v(_vm._s(item2.createUser)+" "+_vm._s(_vm._Util.dateFormat(item2.createTime, 'MM-dd hh:mm')))])]],2)}),0):_vm._e()]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"detail-item-list"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[_c('div',{staticClass:"table"},[_c('div',{staticClass:"param"},[_c('span',[_vm._v("车辆品牌")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.vehicleText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("发动机")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.engineText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("ECU型号")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.ecuText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("排放阶段")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.dischargeStageName || '-'))])])])])]),_vm._v(" "),((_vm.questionDetail.faultSymptom && _vm.questionDetail.faultSymptom !== '') || (_vm.questionDetail.faultSymptomImg &&_vm.questionDetail.faultSymptomImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("详细描述")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[(_vm.questionDetail.faultSymptom)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultSymptom))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultSymptomImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultSymptomImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.faultCode && _vm.questionDetail.faultCode !== '') || (_vm.questionDetail.faultCodeImg && _vm.questionDetail.faultCodeImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("故障码")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[(_vm.questionDetail.faultCode)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultCode))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultCodeImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultCodeImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.troubleShoot && _vm.questionDetail.troubleShoot !== '') || (_vm.questionDetail.troubleShootImg && _vm.questionDetail.troubleShootImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("已做排查")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[(_vm.questionDetail.troubleShoot)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.troubleShoot))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.troubleShootImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.troubleShootImg, index)}}})}),0)])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"order-bottom-btn hairline"},[(_vm.acceptFlag === 0 && _vm.userId !== _vm.questionDetail.createUserId)?_c('div',{staticClass:"btn4",on:{"click":function($event){return _vm.orderNow()}}},[_vm._v("立即接单")]):_vm._e()]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}}),_vm._v(" "),(!_vm._Util.isApp() && !_vm._Util.isMPaaS())?_c('div',{staticClass:"ask-home",on:{"click":_vm.toAskHome}},[_c('img',{attrs:{"src":__webpack_require__(262),"alt":""}}),_vm._v("\n    问答"),_c('br'),_vm._v("首页\n  ")]):_vm._e(),_vm._v(" "),_c('van-dialog',{attrs:{"title":"","class-name":"add-reward","show-cancel-button":"","confirm-button-text":"提交","before-close":_vm.addRewardFn},model:{value:(_vm.showAddReward),callback:function ($$v) {_vm.showAddReward=$$v},expression:"showAddReward"}},[_vm._l((_vm.addRewardList),function(item,index){return _c('div',{key:index,staticClass:"reward-item",on:{"click":function($event){return _vm.selectReward(item, index)}}},[(!item.isSelect)?_c('span'):_c('img',{attrs:{"src":__webpack_require__(1388)}}),_vm._v(_vm._s(item.name)+"\n    ")])}),_vm._v(" "),_c('p',[_vm._v("\n      注：提交后系统会随机增加数量。"),_c('br'),_vm._v(" "),_c('span',[_vm._v("所加现金/星豆为公司支付，清谨慎操作。")])])],2)],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/xs_1.cb81b01.png";module.exports = __webpack_require__.p + "static/img/my_que_icon_4.d83f27b.png";module.exports = __webpack_require__.p + "static/img/ask-home.cdd1604.png";module.exports = __webpack_require__.p + "static/img/checked.5176f7a.png";__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(234);__webpack_require__(26);
__webpack_require__(74);
__webpack_require__(1945);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1946);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("387dc336", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-list__error-text,.van-list__finished-text,.van-list__loading{color:#969799;font-size:14px;line-height:50px;text-align:center}.van-list__placeholder{height:0;pointer-events:none}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/list/index.css"],"names":[],"mappings":"AAAA,kEAAkE,cAAc,eAAe,iBAAiB,iBAAiB,CAAC,uBAAuB,SAAS,mBAAmB,CAAC","file":"index.css","sourcesContent":[".van-list__error-text,.van-list__finished-text,.van-list__loading{color:#969799;font-size:14px;line-height:50px;text-align:center}.van-list__placeholder{height:0;pointer-events:none}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _style = __webpack_require__(200);

var _scroll = __webpack_require__(89);

var _bindEvent = __webpack_require__(102);

var _loading = _interopRequireDefault(__webpack_require__(91));

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('list'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1],
    t = _createNamespace[2];

var _default = createComponent({
  mixins: [(0, _bindEvent.BindEventMixin)(function (bind) {
    if (!this.scroller) {
      this.scroller = (0, _scroll.getScroller)(this.$el);
    }

    bind(this.scroller, 'scroll', this.check);
  })],
  model: {
    prop: 'loading'
  },
  props: {
    error: Boolean,
    loading: Boolean,
    finished: Boolean,
    errorText: String,
    loadingText: String,
    finishedText: String,
    immediateCheck: {
      type: Boolean,
      default: true
    },
    offset: {
      type: [Number, String],
      default: 300
    },
    direction: {
      type: String,
      default: 'down'
    }
  },
  data: function data() {
    return {
      // use sync innerLoading state to avoid repeated loading in some edge cases
      innerLoading: this.loading
    };
  },
  updated: function updated() {
    this.innerLoading = this.loading;
  },
  mounted: function mounted() {
    if (this.immediateCheck) {
      this.check();
    }
  },
  watch: {
    loading: 'check',
    finished: 'check'
  },
  methods: {
    // @exposed-api
    check: function check() {
      var _this = this;

      this.$nextTick(function () {
        if (_this.innerLoading || _this.finished || _this.error) {
          return;
        }

        var el = _this.$el,
            scroller = _this.scroller,
            offset = _this.offset,
            direction = _this.direction;
        var scrollerRect;

        if (scroller.getBoundingClientRect) {
          scrollerRect = scroller.getBoundingClientRect();
        } else {
          scrollerRect = {
            top: 0,
            bottom: scroller.innerHeight
          };
        }

        var scrollerHeight = scrollerRect.bottom - scrollerRect.top;
        /* istanbul ignore next */

        if (!scrollerHeight || (0, _style.isHidden)(el)) {
          return false;
        }

        var isReachEdge = false;

        var placeholderRect = _this.$refs.placeholder.getBoundingClientRect();

        if (direction === 'up') {
          isReachEdge = scrollerRect.top - placeholderRect.top <= offset;
        } else {
          isReachEdge = placeholderRect.bottom - scrollerRect.bottom <= offset;
        }

        if (isReachEdge) {
          _this.innerLoading = true;

          _this.$emit('input', true);

          _this.$emit('load');
        }
      });
    },
    clickErrorText: function clickErrorText() {
      this.$emit('update:error', false);
      this.check();
    },
    genLoading: function genLoading() {
      var h = this.$createElement;

      if (this.innerLoading && !this.finished) {
        return h("div", {
          "key": "loading",
          "class": bem('loading')
        }, [this.slots('loading') || h(_loading.default, {
          "attrs": {
            "size": "16"
          }
        }, [this.loadingText || t('loading')])]);
      }
    },
    genFinishedText: function genFinishedText() {
      var h = this.$createElement;

      if (this.finished) {
        var text = this.slots('finished') || this.finishedText;

        if (text) {
          return h("div", {
            "class": bem('finished-text')
          }, [text]);
        }
      }
    },
    genErrorText: function genErrorText() {
      var h = this.$createElement;

      if (this.error) {
        var text = this.slots('error') || this.errorText;

        if (text) {
          return h("div", {
            "on": {
              "click": this.clickErrorText
            },
            "class": bem('error-text')
          }, [text]);
        }
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var Placeholder = h("div", {
      "ref": "placeholder",
      "key": "placeholder",
      "class": bem('placeholder')
    });
    return h("div", {
      "class": bem(),
      "attrs": {
        "role": "feed",
        "aria-busy": this.innerLoading
      }
    }, [this.direction === 'down' ? this.slots() : Placeholder, this.genLoading(), this.genFinishedText(), this.genErrorText(), this.direction === 'up' ? this.slots() : Placeholder]);
  }
});

exports.default = _default;__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(334);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_934873c8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(935);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2150)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-934873c8"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_934873c8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_934873c8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2151);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("75159cb1", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-934873c8]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-934873c8]{font-family:PingFangSC-Regular,PingFang SC;-webkit-overflow-scrolling:touch}.page[data-v-934873c8]{background-color:#f4f5f6;overflow:hidden}.message-container[data-v-934873c8]{position:relative;overflow-y:auto}.message-container .msg-list[data-v-934873c8]{padding:1rem 0}.message-container .msg-list .msg-inner[data-v-934873c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .6rem;margin-bottom:1.2rem}.message-container .msg-list .msg-inner .user .avatar[data-v-934873c8]{display:inline-block;width:2rem;height:2rem;vertical-align:top;border-radius:.2rem;overflow:hidden}.message-container .msg-list .msg-inner .content[data-v-934873c8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.message-container .msg-list .msg-inner .content .time[data-v-934873c8]{display:block;line-height:.83rem;margin-bottom:.2rem;font-size:.6rem;color:#999}.message-container .msg-list .msg-inner .content .msg[data-v-934873c8]{display:inline-block;max-width:13.2rem;padding:.4rem .6rem;line-height:1.2rem;text-align:right;word-wrap:break-word;word-break:break-all}.message-container .msg-list .msg-inner .content .msg p[data-v-934873c8]{line-height:1.2rem;text-align:left;font-size:.85rem}.message-container .msg-list .msg-inner .content img[data-v-934873c8]{max-width:5rem;height:auto;vertical-align:top;border-radius:.2rem;overflow:hidden}.message-container .msg-list .msg-inner .content .view-btn[data-v-934873c8]{max-width:4.2rem;margin-top:.6rem;margin-bottom:.2rem;background-color:#177afa;padding:.43rem .8rem;border-radius:1.25rem;line-height:.65rem;font-size:.65rem;text-align:center;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.message-container .msg-list .msg-inner.other-side[data-v-934873c8]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;text-align:left}.message-container .msg-list .msg-inner.other-side .avatar[data-v-934873c8]{margin-right:.6rem}.message-container .msg-list .msg-inner.other-side .msg[data-v-934873c8]{background-color:#fff;color:#333;border-radius:0 .4rem .4rem .4rem}.message-container .msg-list .msg-inner.myself[data-v-934873c8]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.message-container .msg-list .msg-inner.myself .avatar[data-v-934873c8]{margin-left:.6rem}.message-container .msg-list .msg-inner.myself .msg[data-v-934873c8]{background-color:#177afa;color:#fff;text-align:left;border-radius:.4rem 0 .4rem .4rem}.message-container .van-cell[data-v-934873c8]{padding:0;background-color:transparent}.message-container .van-cell[data-v-934873c8]:after{display:none}.tabs-container[data-v-934873c8]{height:3rem}.tabs-container .tabs-1[data-v-934873c8]{position:fixed;z-index:100;background-color:#fff}.tabs-container .tabs-1 .item[data-v-934873c8]:before{top:50%;bottom:0;height:1.4rem;-webkit-transform:scaleX(.5) translateY(-50%);-ms-transform:scaleX(.5) translateY(-50%);transform:scaleX(.5) translateY(-50%);border-right-width:1px;border-color:#e0e0e0}.tabs-container .tabs-1 .item[data-v-934873c8]:last-child:before{display:none}.tabs-container .tabs[data-v-934873c8]{width:100%;height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.tabs-container .tabs .item[data-v-934873c8]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.tabs-container .tabs .item .item-name[data-v-934873c8],.tabs-container .tabs .item[data-v-934873c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:inherit}.tabs-container .tabs .item .item-name[data-v-934873c8]{width:100%;line-height:.9rem;padding:0 .6rem;white-space:nowrap}.tabs-container .tabs .item .item-name .icon[data-v-934873c8]{width:.4rem;margin-right:.3rem}.tabs-container .tabs .item .item-name span[data-v-934873c8]{display:inline-block;max-width:4rem;line-height:1rem;font-size:.8rem;color:#333;vertical-align:middle;text-overflow:ellipsis;overflow:hidden}.tabs-container .tabs .item .sub-tabs-arrow[data-v-934873c8]{position:absolute;bottom:3.5rem;left:50%;margin-left:-.45rem;display:inline-block;width:0;height:0;border-left:.45rem solid transparent;border-right:.45rem solid transparent;border-top:.35rem solid #fff;z-index:2}.tabs-container .tabs .item .sub-tbas[data-v-934873c8]{position:fixed;bottom:3.75rem;padding:0 .5rem;background-color:#fff;box-shadow:0 .2rem .4rem 0 rgba(68,84,99,.1);border-radius:.4rem}.tabs-container .tabs .item .sub-tbas .sub-item[data-v-934873c8]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:2.3rem;white-space:nowrap}.tabs-container .tabs .item .sub-tbas .sub-item p[data-v-934873c8]{text-align:center;font-size:.8rem;color:#333;text-overflow:ellipsis;overflow:hidden}.tabs-container .tabs .item .sub-tbas .sub-item[data-v-934873c8]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px;border-color:#e1e1e1}.tabs-container .tabs .item .sub-tbas .sub-item[data-v-934873c8]:last-child:before{display:none}.fade-slide-enter-active[data-v-934873c8],.fade-slide-leave-active[data-v-934873c8]{-webkit-transition:all .2s linear;transition:all .2s linear}.tabs-container .item .sub-tabs-arrow.fade-slide-enter[data-v-934873c8],.tabs-container .item .sub-tabs-arrow.fade-slide-leave-to[data-v-934873c8],.tabs-container .item .sub-tbas.fade-slide-enter[data-v-934873c8],.tabs-container .item .sub-tbas.fade-slide-leave-to[data-v-934873c8]{bottom:-3rem;opacity:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _list.default.name, _list.default), _cell.default.name, _cell.default),
  data: function data() {
    return {
      pageNum: 1,
      loading: false,
      finished: false,
      msgList: [],
      tabs: []
    };
  },
  created: function created() {
    this.qaAssistant();
  },
  methods: {
    /**
     * 获取问答小助手底部菜单
     */
    qaAssistant: function qaAssistant() {
      var _this = this;
      this._Util.post(this._Api.GET_QA_ASSISTANT_PAGE, {}, function (data) {
        var footbar = data.pageElements[0].frameElements || [];
        if (footbar.length > 0) {
          footbar.forEach(function (item) {
            item.show = false;
          });
        }
        _this.tabs = footbar;
      }, function () {}, this, true);
    },
    /**
     * 获取问答小助手信息
     */
    qaAssistantList: function qaAssistantList() {
      var _this2 = this;
      this._Util.post(this._Api.LIST_QA_ASSISTANT_INFOS, {
        orderType: 0,
        startTime: new Date().getTime(),
        pageNum: this.pageNum,
        pageSize: 10
      }, function (data) {
        var list = data || [];
        if (list.length > 0) {
          list.forEach(function (item) {
            item.msgText = item.msgText.replace(/\n/g, '<br>');
          });
        }
        _this2.msgList = _this2.msgList.concat(list);
        _this2.pageNum++;
        _this2.loading = false;
        if (list.length < 10) {
          _this2.finished = true;
        }
      }, function () {}, this, true);
    },
    hideTab: function hideTab() {
      if (this.tabs.length > 0) {
        this.tabs.forEach(function (ele, i) {
          ele.show = false;
        });
      }
    },
    toggleTab: function toggleTab(item, index) {
      var _this3 = this;
      this.tabs.forEach(function (ele, i) {
        if (i === index) {
          item.show = !item.show;
        } else {
          ele.show = false;
        }
      });
      if (item && item.frameIsLeaf === 1) {
        this.jumpLink(item);
      } else {
        this.$nextTick(function () {
          var subTab = document.querySelectorAll('#subTab' + index)[0];
          var winW = window.screen.width;
          var subTabW = subTab.offsetWidth;
          if (tabW + 48 > winW) {
            subTab.style.left = '12px';
          }
          var tabW = winW / _this3.tabs.length;
          if (subTabW > tabW) {
            if (index === 0) {
              subTab.style.left = '12px';
            } else if (index === _this3.tabs.length - 1) {
              subTab.style.right = '12px';
            } else {
              subTab.style.left = (winW - subTabW) / 2 + 'px';
            }
          } else {
            if (index === 0) {
              subTab.style.left = (tabW - subTabW) / 2 + 'px';
            } else if (index === _this3.tabs.length - 1) {
              subTab.style.right = (tabW - subTabW) / 2 + 'px';
            } else {
              subTab.style.left = (winW - subTabW) / 2 + 'px';
            }
          }
        });
      }
    },
    /**
     * 菜单跳转页面
     */
    jumpLink: function jumpLink(item) {
      item.show = false;
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'assistant' + item.frameId,
            url: item.frameJumpLink
          }
        });
      } else {
        location.href = item.frameJumpLink;
      }
    },
    /**
     * 查看详情
     */
    viewAssistant: function viewAssistant(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'assistantDetail' + new Date().getTime(),
            url: item.msgJumpLink
          }
        });
      } else {
        location.href = item.msgJumpLink;
      }
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text && text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text && text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"message-container",staticStyle:{"height":"calc(100% - 3rem)"},on:{"touchstart":function($event){return _vm.hideTab()}}},[_c('div',{ref:"msgList",staticClass:"msg-list"},[_c('van-list',{attrs:{"finished":_vm.finished},on:{"load":function($event){return _vm.qaAssistantList()}},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:"loading"}},_vm._l((_vm.msgList),function(item,index){return _c('van-cell',{key:index},[_c('div',{staticClass:"msg-item"},[_c('div',{staticClass:"msg-inner other-side"},[_c('div',{staticClass:"user"},[(item.msgIcon)?_c('img',{staticClass:"avatar",attrs:{"src":item.msgIcon}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}})]),_vm._v(" "),_c('div',{staticClass:"content"},[(item.createTime)?_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.isToday(item.createTime) ? _vm._Util.dateFormat(item.createTime, 'hh:mm') : _vm._Util.dateFormat(item.createTime, 'yyyy-MM-dd')))]):_vm._e(),_vm._v(" "),(item.msgText)?_c('div',{staticClass:"msg"},[_c('p',{domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.msgText))}}),_vm._v(" "),(item.msgJumpName && item.msgJumpName !== '')?_c('span',{staticClass:"view-btn",on:{"click":function($event){return _vm.viewAssistant(item)}}},[_vm._v(_vm._s(item.msgJumpName))]):_vm._e()]):_vm._e()])])])])}),1)],1)]),_vm._v(" "),_c('div',{staticClass:"tabs-container"},[_c('div',{staticClass:"tabs tabs-1"},_vm._l((_vm.tabs),function(p,index){return _c('div',{key:index,staticClass:"item hairline"},[_c('div',{staticClass:"item-name",on:{"click":function($event){return _vm.toggleTab(p, index)}}},[(p.frameIsLeaf === 0)?_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(1389)}}):_vm._e(),_c('span',[_vm._v(_vm._s(p.frameName))])])])}),0),_vm._v(" "),_c('div',{staticClass:"tabs"},_vm._l((_vm.tabs),function(p,index){return _c('div',{key:index,staticClass:"item hairline"},[_c('transition',{attrs:{"name":"fade-slide"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(p.frameIsLeaf === 0 && p.show),expression:"p.frameIsLeaf === 0 && p.show"}],staticClass:"sub-tabs-arrow"})]),_vm._v(" "),_c('transition',{attrs:{"name":"fade-slide"}},[_c('ul',{directives:[{name:"show",rawName:"v-show",value:(p.frameIsLeaf === 0 && p.show),expression:"p.frameIsLeaf === 0 && p.show"}],staticClass:"sub-tbas",staticStyle:{"max-width":"calc(100% - 1.2rem)"},attrs:{"id":'subTab' + index}},_vm._l((p.frameElements),function(c,i){return _c('li',{key:i,staticClass:"sub-item hairline",on:{"click":function($event){return _vm.jumpLink(c)}}},[_c('p',[_vm._v(_vm._s(c.frameName))])])}),0)])],1)}),0)])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/tab_icon.b17f7f2.svg";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(335);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e2a15894_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(936);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2152)
  __webpack_require__(2154)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-e2a15894"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e2a15894_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e2a15894_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2153);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("789d5ba2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-cell:after{display:none}.ask-que-detail .van-overlay{z-index:899!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2155);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("152cb2b8", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-e2a15894]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-e2a15894]{font-family:PingFangSC-Regular,PingFang SC}.separate[data-v-e2a15894]{width:100%;height:.3rem;background-color:#f4f5f6}.detail-head[data-v-e2a15894]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;box-shadow:0 .1rem .4rem 0 rgba(185,204,229,.2);z-index:2}.detail-head p[data-v-e2a15894]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:0 1.2rem 0 .6rem;font-size:.8rem;font-weight:600;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-head span[data-v-e2a15894]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;font-size:.7rem;font-weight:500;color:#177afa}.detail-head span[data-v-e2a15894]:before{top:.65rem;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-head span[data-v-e2a15894]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:.1rem;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-wrap[data-v-e2a15894]{z-index:900!important;height:26.68rem}.detail-wrap .detail-top[data-v-e2a15894]{padding:0 .6rem}.detail-wrap .detail-top .detail-title[data-v-e2a15894]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-bottom:.6rem}.detail-wrap .detail-top .detail-title p[data-v-e2a15894]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:.8rem .4rem 0 0;line-height:1.4rem;font-size:1rem;font-weight:700;color:#333}.detail-wrap .detail-top .detail-title span[data-v-e2a15894]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;margin-top:1rem;margin-right:-.6rem;font-size:.7rem;font-weight:500;color:#177afa}.detail-wrap .detail-top .detail-title span[data-v-e2a15894]:before{top:0;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-wrap .detail-top .detail-title span[data-v-e2a15894]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:0;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-wrap .detail-top .detail-title span.shrink[data-v-e2a15894]:after{background-image:url(" + escape(__webpack_require__(134)) + ")}.detail-wrap .detail-top .meta .xs[data-v-e2a15894]{margin-right:.6rem;margin-bottom:.8rem;line-height:1.05rem;font-size:.75rem}.detail-wrap .detail-top .meta .xs .xs-icon[data-v-e2a15894]{display:inline-block;width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.detail-wrap .detail-top .meta .xs.xs-1[data-v-e2a15894]{color:#fb5f5f}.detail-wrap .detail-top .meta .xs.xs-2[data-v-e2a15894]{color:#fb985f}.detail-wrap .detail-item-list[data-v-e2a15894]{position:relative}.detail-wrap .detail-item-list.bottom-line[data-v-e2a15894]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item[data-v-e2a15894]{position:relative}.detail-wrap .detail-item-list .item[data-v-e2a15894]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item .item-title[data-v-e2a15894]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.detail-wrap .detail-item-list .item .item-title span[data-v-e2a15894]{font-size:.9rem}.detail-wrap .detail-item-list .item .item-content[data-v-e2a15894]{padding:.8rem .8rem 1rem}.detail-wrap .detail-item-list .item .item-content.has-img[data-v-e2a15894]{padding-bottom:.6rem}.detail-wrap .detail-item-list .item .item-content .table[data-v-e2a15894]{border:1px solid #eee;border-radius:.2rem}.detail-wrap .detail-item-list .item .item-content .param[data-v-e2a15894]{font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detail-wrap .detail-item-list .item .item-content .param span[data-v-e2a15894]{display:inline-block;line-height:1.1rem;font-size:15px;color:#333;padding:.5rem .8rem}.detail-wrap .detail-item-list .item .item-content .param span[data-v-e2a15894]:first-child{width:4.8rem;padding-right:0;border-right:1px solid #eee}.detail-wrap .detail-item-list .item .item-content .param span[data-v-e2a15894]:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.detail-wrap .detail-item-list .item .item-content .param[data-v-e2a15894]:last-child{border:none}.detail-wrap .detail-item-list .item .item-content p[data-v-e2a15894]{line-height:1.1rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.detail-wrap .detail-item-list .item .item-content .images[data-v-e2a15894]{margin-right:-.6rem}.detail-wrap .detail-item-list .item .item-content .images img[data-v-e2a15894]{display:inline-block;width:4rem;height:4rem;margin:0 .38rem .4rem 0;border-radius:.2rem;overflow:hidden;vertical-align:top}.user-list .user-item[data-v-e2a15894]{position:relative;padding:0 0 0 3.8rem;height:4.2rem}.user-list .user-item .van-cell__value[data-v-e2a15894]{overflow:initial}.user-list .user-item .avatar[data-v-e2a15894]{position:absolute;top:.8rem;left:.6rem;width:2.6rem;height:2.6rem;border-radius:.3rem;overflow:hidden}.user-list .user-item .info[data-v-e2a15894]{height:100%;padding-right:.6rem;position:relative;overflow:hidden}.user-list .user-item .info[data-v-e2a15894]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.user-list .user-item .info .item-cell[data-v-e2a15894]{position:relative;margin:.9rem 0 .2rem}.user-list .user-item .info .item-cell span[data-v-e2a15894]{vertical-align:middle}.user-list .user-item .info .item-cell .name[data-v-e2a15894]{max-width:4rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.85rem;line-height:1.2rem;color:#333}.user-list .user-item .info .item-cell .q-status[data-v-e2a15894]{margin-left:.25rem;font-size:.65rem;line-height:.9rem;color:#fb5f5f}.user-list .user-item .info .item-cell .status[data-v-e2a15894]{position:absolute;top:1.15rem;right:.6rem;font-size:.65rem;line-height:.9rem;color:#a2a2a2}.user-list .user-item .info .item-cell .status.status1[data-v-e2a15894]{color:#fb5f5f}.user-list .user-item .info .item-cell .time[data-v-e2a15894]{position:absolute;top:0;right:0;margin-right:0;font-size:.65rem;color:#999;line-height:1.05rem}.user-list .user-item .info .title[data-v-e2a15894]{font-size:.75rem;line-height:1.05rem;color:#666;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.user-list.first .user-item .avatar[data-v-e2a15894]{left:.6rem}.user-list .null-result[data-v-e2a15894]{margin-top:6.85rem;text-align:center}.user-list .null-result img[data-v-e2a15894]{display:inline-block;width:2.98rem;vertical-align:top}.user-list .null-result span[data-v-e2a15894]{display:block;text-align:center;margin-top:.83rem;line-height:1.13rem;font-size:.8rem;color:#888}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(171));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _list.default.name, _list.default), _cell.default.name, _cell.default), _popup.default.name, _popup.default), _imagePreview.default.name, _imagePreview.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      dialogMsg: {},
      userLoading: false,
      finished: false,
      questionDetail: {},
      user: {},
      userList: [],
      // 会话用户列表
      nullResult: false,
      detailPopup: false
    };
  },
  created: function created() {
    var _this = this;
    this.getConversationUserList();
    this.getQuestionDetail();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问题详情页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  mounted: function mounted() {
    var _this2 = this;
    this.$nextTick(function () {
      _this2.shareConfig();
    });
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this2.shareConfig();
        });
      }, 300);
    }
  },
  methods: {
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this3 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var detail = data.vo;
        if (!detail.vehicleBrandName) {
          detail.vehicleText = '-';
        } else if (detail.vehicleBrandName && !detail.vehicleModeName) {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/-");
        } else {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/").concat(detail.vehicleModeName);
        }
        if (!detail.engineBrandName) {
          detail.engineText = '-';
        } else if (detail.engineBrandName && !detail.engineModeName) {
          detail.engineText = "".concat(detail.engineBrandName, "/-");
        } else {
          detail.engineText = "".concat(detail.engineBrandName, "/").concat(detail.engineModeName);
        }
        if (!detail.ecuBrandName) {
          detail.ecuText = '-';
        } else if (detail.ecuBrandName && !detail.ecuModeName) {
          detail.ecuText = "".concat(detail.ecuBrandName, "/-");
        } else {
          detail.ecuText = "".concat(detail.ecuBrandName, "/").concat(detail.ecuModeName);
        }
        detail.faultSymptomImg = detail.faultSymptomImg && detail.faultSymptomImg.split(',') || '';
        detail.faultCodeImg = detail.faultCodeImg && detail.faultCodeImg.split(',') || '';
        detail.troubleShootImg = detail.troubleShootImg && detail.troubleShootImg.split(',') || '';
        _this3.questionDetail = detail;
        _this3.shareConfig();
      }, function () {}, this);
    },
    /**
     * 获取问题会话用户列表
     */
    getConversationUserList: function getConversationUserList() {
      var _this4 = this;
      this._Util.post(this._Api.GET_VOS_BY_QUESTION_NO, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        _this4.userList = [];
        if (data && data.length > 0) {
          data.forEach(function (item) {
            if (item.status === 4) {
              _this4.user = item;
            } else {
              _this4.userList.push(item);
            }
          });
          _this4.nullResult = false;
        } else {
          _this4.nullResult = true;
        }
      }, function () {}, this);
    },
    /**
     * 进入问题会话
     */
    toConCversation: function toConCversation(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversationV13' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id)
          }
        });
      } else {
        window.location.href = "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id);
        // this.$router.push({
        //   name: 'conversationV13',
        //   query: {
        //     questionNo: item.questionNo,
        //     id: item.id
        //   }
        // })
      }
    },
    /**
     * 获取该问题所用会话用户
     */
    getUserList: function getUserList() {
      this.userLoading = false;
      this.finished = true;
    },
    /**
     * 展开详情
     */
    expandDetail: function expandDetail() {
      this.detailPopup = true;
    },
    /**
     * 收起详情
     */
    shrinkDetail: function shrinkDetail() {
      this.detailPopup = false;
    },
    /**
     * 图片预览
     */
    imagePreview: function imagePreview(images, pos) {
      this.viewImage(images[pos], images, pos);
    },
    /**
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/1000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/1000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: that.questionDetail.questionTitle || '故障现象',
        desc: '在吗？你知道这个问题的答案吗？',
        link: "".concat(location.origin, "/v2/questionsOrAnswers/orderDetails?questionNo=").concat(this.$route.query.questionNo),
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page ask-que-detail"},[_c('div',{staticClass:"detail-head"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.expandDetail()}}},[_vm._v("详情")])]),_vm._v(" "),(_vm.user.status === 4)?_c('div',{staticClass:"user-list first"},[_c('div',{staticClass:"user-item",on:{"click":function($event){return _vm.toConCversation(_vm.user)}}},[(_vm.user.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":_vm.user.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info hairline"},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(_vm.user.uname))]),(_vm.user.status === 4)?_c('span',{staticClass:"q-status"},[_vm._v("已采纳")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm.user.createTimeValue))])]),_vm._v(" "),_c('p',{staticClass:"title"},[_vm._v(_vm._s(_vm.user.messageContent))])])]),_vm._v(" "),_c('div',{staticClass:"separate"})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"user-list"},[_vm._l((_vm.userList),function(item,index){return _c('div',{key:index,staticClass:"user-item",on:{"click":function($event){return _vm.toConCversation(item)}}},[(item.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":item.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info hairline"},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.uname))]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(item.createTimeValue))])]),_vm._v(" "),_c('p',{staticClass:"title"},[_vm._v(_vm._s(item.messageContent))])])])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.nullResult),expression:"nullResult"}],staticClass:"null-result"},[_c('img',{attrs:{"src":__webpack_require__(1390)}}),_vm._v(" "),_c('span',[_vm._v("暂时无人回答该问题")])])],2),_vm._v(" "),_c('van-popup',{staticClass:"popup-container detail-wrap",attrs:{"close-on-click-overlay":false,"position":"top"},model:{value:(_vm.detailPopup),callback:function ($$v) {_vm.detailPopup=$$v},expression:"detailPopup"}},[_c('div',{staticClass:"detail-top"},[_c('div',{staticClass:"detail-title"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline shrink",on:{"click":function($event){return _vm.shrinkDetail()}}},[_vm._v("收起")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(_vm.questionDetail.cashBounty > 0)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏: "+_vm._s(_vm.questionDetail.cashBounty)+"元")]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"detail-item-list"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[_c('div',{staticClass:"table"},[_c('div',{staticClass:"param"},[_c('span',[_vm._v("车辆品牌")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.vehicleText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("发动机")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.engineText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("ECU型号")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.ecuText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("排放阶段")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.dischargeStageName || '-'))])])])])]),_vm._v(" "),((_vm.questionDetail.faultSymptom && _vm.questionDetail.faultSymptom !== '') || (_vm.questionDetail.faultSymptomImg &&_vm.questionDetail.faultSymptomImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("详细描述")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultSymptomImg.length}},[(_vm.questionDetail.faultSymptom)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultSymptom))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultSymptomImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultSymptomImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.faultCode && _vm.questionDetail.faultCode !== '') || (_vm.questionDetail.faultCodeImg && _vm.questionDetail.faultCodeImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("故障码")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultCodeImg.length}},[(_vm.questionDetail.faultCode)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultCode))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultCodeImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultCodeImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.troubleShoot && _vm.questionDetail.troubleShoot !== '') || (_vm.questionDetail.troubleShootImg && _vm.questionDetail.troubleShootImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("已做排查")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.troubleShootImg.length}},[(_vm.questionDetail.troubleShoot)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.troubleShoot))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.troubleShootImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.troubleShootImg, index)}}})}),0)])]):_vm._e()])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/null_aq_icon.319f66f.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(336);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6a6df788_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(939);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2156)
  __webpack_require__(2158)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6a6df788"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6a6df788_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6a6df788_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2157);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ba702a88", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-uploader__preview .van-uploader__preview-image{width:3rem;height:3rem;border-radius:.2rem}.conver-detail .van-overlay,.conver-detail .van-popup--bottom{z-index:899!important}.van-dialog.put-que{border-radius:.4rem}.van-dialog.put-que .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.put-que .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.put-que .van-button--default{height:2.65rem;color:#333}.van-dialog.put-que .van-button--default .van-button__text{font-size:.9rem}.van-dialog.put-que .van-dialog__confirm{color:#177afa}.feedback-popup.van-popup--center.van-popup--round{border-radius:.4rem}.msg-list a{font-size:.85rem}.msg-list a[href^=http]{color:#177afa;text-decoration:underline}.msgLoading{width:40px;min-height:40px}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2159);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("43c8ca62", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-6a6df788]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-6a6df788]{font-family:PingFangSC-Regular,PingFang SC;-webkit-overflow-scrolling:touch}.conver-detail .pop-box[data-v-6a6df788]{position:absolute;width:100%;left:0;top:0;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.conver-detail .pop-box .title[data-v-6a6df788]{height:2.75rem;color:#333;font:700 16px/2.75rem PingFangSC-Semibold;background:#f6f6f6;text-align:center;position:relative}.conver-detail .pop-box .title span[data-v-6a6df788]{position:absolute;left:0;top:0;padding:0 .8rem;color:#666;font:14px/2.75rem PingFangSC-Regular}.conver-detail .pop-box .title p[data-v-6a6df788]{position:absolute;right:0;top:0;padding:0 .8rem;color:#177afa;font:14px/2.75rem PingFangSC-Regular}.conver-detail .pop-box .con[data-v-6a6df788]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;position:relative;padding-top:.8rem}.conver-detail .pop-box .con .question-item[data-v-6a6df788]{padding:0 .6rem;margin-bottom:.4rem;background-color:#fff;border-radius:.3rem;overflow:hidden}.conver-detail .pop-box .con .question-item .van-cell[data-v-6a6df788]{background-color:#f5f5f5;border-radius:.2rem}.conver-detail .pop-box .con .question-item .pic[data-v-6a6df788]{margin-top:.8rem;margin-bottom:-.6rem}.conver-detail .pop-box .con .question-item .pic .upload-btn[data-v-6a6df788]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3rem;height:3rem;margin-bottom:.6rem;border:1px dashed #177afa;border-radius:.2rem;vertical-align:top}.conver-detail .pop-box .con .question-item .pic .upload-btn[data-v-6a6df788]:before{display:inline-block;content:\"\";width:.9rem;height:.8rem;margin-top:.28rem;background-image:url(" + escape(__webpack_require__(798)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.conver-detail .pop-box .con .question-item .pic .upload-btn[data-v-6a6df788]:after{display:block;margin-top:.33rem;content:\"\\6DFB\\52A0\\56FE\\7247\";font-size:.55rem;color:#177afa}.conver-detail .modify[data-v-6a6df788]{padding-top:.3rem;color:#177afa}.conver-detail .ask-home[data-v-6a6df788]{position:fixed;right:0;bottom:8.8rem;z-index:100;height:2.2rem;background:rgba(0,0,0,.75);border-radius:.2rem 0 0 .2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;font:11px/.7rem PingFangSC-Regular;padding:0 .3rem 0 .4rem}.conver-detail .ask-home img[data-v-6a6df788]{width:.525rem;height:.55rem;margin-right:.3rem}.separate[data-v-6a6df788]{width:100%;height:.3rem;background-color:#f4f5f6}.page[data-v-6a6df788]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:#f4f5f6}.page .top[data-v-6a6df788],.page[data-v-6a6df788]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.page .top[data-v-6a6df788]{position:relative;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;background-color:#fff;box-shadow:0 .1rem .4rem 0 rgba(185,204,229,.2);z-index:2}.page .top p[data-v-6a6df788]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:0 1.2rem 0 .6rem;font-size:.8rem;font-weight:600;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page .top span[data-v-6a6df788]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;font-size:.7rem;font-weight:500;color:#177afa}.page .top span[data-v-6a6df788]:before{top:.65rem;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.page .top span[data-v-6a6df788]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:.1rem;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.page .content[data-v-6a6df788]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;z-index:1;overflow-y:auto}.msg-list[data-v-6a6df788]{padding-top:1rem}.msg-list .msg-inner[data-v-6a6df788]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .6rem;margin-bottom:1rem}.msg-list .msg-inner .user .avatar[data-v-6a6df788]{display:inline-block;width:1.5rem;height:1.5rem;vertical-align:top;border-radius:.2rem;overflow:hidden}.msg-list .msg-inner .content[data-v-6a6df788]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.msg-list .msg-inner .content.msg-w .msg[data-v-6a6df788]{width:13.35rem}.msg-list .msg-inner .content.msg-w .view-btn-bar[data-v-6a6df788]{margin-top:.8rem;text-align:right}.msg-list .msg-inner .content .time[data-v-6a6df788]{display:block;line-height:.83rem;margin-bottom:.2rem;font-size:.6rem;color:#999}.msg-list .msg-inner .content .msg[data-v-6a6df788]{display:inline-block;max-width:13.35rem;padding:.6rem;line-height:1.2rem;word-wrap:break-word;word-break:break-all}.msg-list .msg-inner .content .msg p[data-v-6a6df788]{font-size:.85rem}.msg-list .msg-inner .content img[data-v-6a6df788]{max-width:5rem;height:auto;vertical-align:top;border-radius:.2rem;overflow:hidden}.msg-list .msg-inner .content .view-btn[data-v-6a6df788]{margin-left:.6rem;margin-top:.8rem .4rem 0 .2rem;background-color:#177afa;padding:.43rem 1rem;border-radius:1.25rem;line-height:1rem;font-size:.7rem;text-align:center;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;vertical-align:top;font-weight:600}.msg-list .msg-inner.other-side[data-v-6a6df788]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;text-align:left}.msg-list .msg-inner.other-side .avatar[data-v-6a6df788]{margin-right:.6rem}.msg-list .msg-inner.other-side .msg[data-v-6a6df788]{background-color:#fff;color:#333;border-radius:0 .4rem .4rem .4rem}.msg-list .msg-inner.myself[data-v-6a6df788]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.msg-list .msg-inner.myself .avatar[data-v-6a6df788]{margin-left:.6rem}.msg-list .msg-inner.myself .msg[data-v-6a6df788]{background-color:#d6e7ff;color:#000;text-align:left;border-radius:.4rem 0 .4rem .4rem}.msg-list .msg-tip-inner[data-v-6a6df788]{display:block;color:#999;font-size:.7rem;text-align:center}.msg-list .msg-tip-inner .tip-time[data-v-6a6df788]{margin-bottom:.4rem;line-height:1rem}.msg-list .msg-tip-inner .tip-text[data-v-6a6df788]{width:12rem;margin:0 auto;color:#333}.msg-list .msg-tip-inner .tip-btn[data-v-6a6df788]{color:#333}.msg-list .msg-tip-inner .tip-btn.click[data-v-6a6df788]{color:#177afa}.msg-list .msg-tip-inner .tip-btn.click[data-v-6a6df788]:after{display:inline-block;content:\"\";width:.26rem;height:.45rem;margin-left:.2rem;background-image:url(" + escape(__webpack_require__(118)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.close-popup-btn[data-v-6a6df788]{position:fixed;top:22.75rem;left:50%;margin-left:-.8rem;width:1.6rem;height:1.6rem;background-color:#fff;background:url(" + escape(__webpack_require__(263)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;z-index:1000000}.detail-wrap[data-v-6a6df788]{z-index:900!important;height:21.25rem}.detail-wrap .detail-top[data-v-6a6df788]{padding:0 .6rem}.detail-wrap .detail-top .detail-title[data-v-6a6df788]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-bottom:.4rem}.detail-wrap .detail-top .detail-title p[data-v-6a6df788]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:.8rem 0 .4rem;line-height:1.4rem;font-size:1rem;font-weight:700;color:#333}.detail-wrap .detail-top .detail-title span[data-v-6a6df788]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;margin-top:1rem;margin-right:-.6rem;font-size:.7rem;font-weight:500;color:#177afa}.detail-wrap .detail-top .detail-title span[data-v-6a6df788]:before{top:0;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-wrap .detail-top .detail-title span[data-v-6a6df788]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:0;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-wrap .detail-top .detail-title span.shrink[data-v-6a6df788]:after{background-image:url(" + escape(__webpack_require__(134)) + ")}.detail-wrap .detail-top .meta .xs[data-v-6a6df788]{margin-right:.6rem;margin-bottom:.8rem;line-height:1.05rem;font-size:.75rem}.detail-wrap .detail-top .meta .xs .xs-icon[data-v-6a6df788]{display:inline-block;width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.detail-wrap .detail-top .meta .xs.xs-1[data-v-6a6df788]{color:#fb5f5f}.detail-wrap .detail-top .meta .xs.xs-2[data-v-6a6df788]{color:#fb985f}.detail-wrap .detail-item-list[data-v-6a6df788]{position:relative}.detail-wrap .detail-item-list.bottom-line[data-v-6a6df788]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item[data-v-6a6df788]{position:relative}.detail-wrap .detail-item-list .item[data-v-6a6df788]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item .item-title[data-v-6a6df788]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.detail-wrap .detail-item-list .item .item-title span[data-v-6a6df788]{font-size:.9rem}.detail-wrap .detail-item-list .item .item-content[data-v-6a6df788]{padding:.8rem .8rem 1rem}.detail-wrap .detail-item-list .item .item-content.has-img[data-v-6a6df788]{padding-bottom:.6rem}.detail-wrap .detail-item-list .item .item-content .table[data-v-6a6df788]{border:1px solid #eee;border-radius:.2rem}.detail-wrap .detail-item-list .item .item-content .param[data-v-6a6df788]{font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detail-wrap .detail-item-list .item .item-content .param span[data-v-6a6df788]{display:inline-block;line-height:1.1rem;font-size:15px;color:#333;padding:.5rem .8rem}.detail-wrap .detail-item-list .item .item-content .param span[data-v-6a6df788]:first-child{width:4.8rem;padding-right:0;border-right:1px solid #eee}.detail-wrap .detail-item-list .item .item-content .param span[data-v-6a6df788]:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.detail-wrap .detail-item-list .item .item-content .param[data-v-6a6df788]:last-child{border:none}.detail-wrap .detail-item-list .item .item-content p[data-v-6a6df788]{line-height:1.1rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.detail-wrap .detail-item-list .item .item-content .images[data-v-6a6df788]{margin-right:-.6rem}.detail-wrap .detail-item-list .item .item-content .images img[data-v-6a6df788]{display:inline-block;width:4rem;height:4rem;margin:0 .38rem .4rem 0;border-radius:.2rem;overflow:hidden;vertical-align:top}.feedback-popup .popup-content[data-v-6a6df788]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:16.75rem}.feedback-popup .popup-content .close-icon[data-v-6a6df788]{position:absolute;top:0;right:0;width:1.8rem;height:1.8rem;background:url(" + escape(__webpack_require__(2160)) + ");background-repeat:no-repeat;background-size:.6rem .6rem;background-position:50%}.feedback-popup .popup-content .content-middle[data-v-6a6df788]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.25rem;max-height:8.85rem;padding:1.6rem .6rem 1.4rem}.feedback-popup .popup-content .content-middle .content-text[data-v-6a6df788]{text-align:center;color:#000;font-size:.9rem;font-weight:600}.feedback-popup .popup-content .content-middle .content-sub-text[data-v-6a6df788]{margin-top:.6rem;text-align:center;color:#666;font-size:.85rem}.feedback-popup .popup-content .content-bottom[data-v-6a6df788]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.45rem}.feedback-popup .popup-content .content-bottom[data-v-6a6df788]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.feedback-popup .popup-content .content-bottom span[data-v-6a6df788]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;font-size:.9rem;color:#333;padding:0 .6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.feedback-popup .popup-content .content-bottom span.btn[data-v-6a6df788]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;border-radius:0}.feedback-popup .popup-content .content-bottom span.btn[data-v-6a6df788]:before{left:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.feedback-popup .popup-content .content-bottom span.btn-1[data-v-6a6df788]{color:#ff3f3f}.feedback-popup .popup-content .content-bottom span.btn-2[data-v-6a6df788]{color:#177afa}.feedback-popup.active-marking .popup-content .content-middle[data-v-6a6df788]{padding:1rem}.feedback-popup.active-marking .popup-content .content-middle .mark-box[data-v-6a6df788]{margin:.6rem 0 .4rem}.feedback-popup.active-marking .popup-content .content-middle .mark-box .mark-cell[data-v-6a6df788]{height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.feedback-popup.active-marking .popup-content .content-middle .mark-box .label[data-v-6a6df788]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.6rem;font-size:.85rem;color:#333}.feedback-popup.active-marking .popup-content .content-middle .mark-tip[data-v-6a6df788]{font-size:.6rem;line-height:.8rem;color:#666}.feedback-box[data-v-6a6df788]{width:17.15rem;min-height:4.88rem;margin:0 auto 4.2rem;padding:.8rem;background-color:#fdf6d7;border:1px solid #e3dab1;border-radius:.3rem}.feedback-box .feedback-top[data-v-6a6df788]{font-size:.9rem;line-height:1.25rem;font-weight:600;margin-bottom:.8rem;color:#000}.feedback-box .feedback-content .star-rating[data-v-6a6df788]{margin-top:.4rem}.feedback-box .feedback-bottom[data-v-6a6df788]{margin-top:.8rem;text-align:right}.feedback-box .feedback-bottom .feedback-btn[data-v-6a6df788]{display:inline-block;max-width:5rem;height:1.6rem;padding:0 1rem;margin-left:.6rem;border-radius:.85rem;line-height:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:0;color:#fff;font-weight:600;vertical-align:top}.feedback-box .feedback-bottom .feedback-btn span[data-v-6a6df788]{height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.feedback-box .feedback-bottom .feedback-btn.btn-1[data-v-6a6df788]{background-color:#ff3f3f}.feedback-box .feedback-bottom .feedback-btn.btn-2[data-v-6a6df788]{background-color:#177afa}.question-btn[data-v-6a6df788]{width:17.55rem;height:2.5rem;margin:0 auto 1rem;border-radius:1.25rem;background-color:#177afa;color:#fff;font-size:.9rem}.checkbox[data-v-6a6df788],.question-btn[data-v-6a6df788]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.checkbox[data-v-6a6df788]{position:relative;width:.8rem;height:.8rem;background:#f4f5f6;border-radius:.1rem;border:.03rem solid #d7d7d7;vertical-align:middle}.checkbox.checked[data-v-6a6df788]{border:.03rem solid #177afa}.checkbox.checked[data-v-6a6df788]:after{display:block;content:\"\";width:.4rem;height:.4rem;background:#177afa;border-radius:.05rem}.related-information[data-v-6a6df788]{position:relative;padding:.6rem;margin-bottom:.8rem;border-radius:.2rem;background-color:#f4f5f6}.related-information .arrow-r-icon[data-v-6a6df788]{position:absolute;top:1.75rem;right:.6rem;width:.3rem;height:.5rem;background:url(" + escape(__webpack_require__(794)) + ");background-position:50%;background-repeat:no-repeat;background-size:.3rem .5rem}.related-information .label[data-v-6a6df788]{margin-bottom:.3rem;line-height:1;font-size:.6rem;color:#999}.related-information .name[data-v-6a6df788]{margin-right:.8rem;line-height:1rem;font-size:.7rem;color:#333}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/camera_icon.d975e91.png";module.exports = __webpack_require__.p + "static/img/arrow_r_1.792d31b.png";module.exports = __webpack_require__.p + "static/img/close-mask.c87f1bb.png";module.exports = __webpack_require__.p + "static/img/close_icon_2.9cd7436.png";/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(144);
var _uploader = _interopRequireDefault(__webpack_require__(145));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
var _starRating = _interopRequireDefault(__webpack_require__(2161));
var _messageInput = _interopRequireDefault(__webpack_require__(2166));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(172));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _imagePreview.default.name, _imagePreview.default), _field.default.name, _field.default), _uploader.default.name, _uploader.default), _toast.default.name, _toast.default), _dialog.default.name, _dialog.default), "StarRating", _starRating.default), "MessageInput", _messageInput.default),
  data: function data() {
    return {
      extraEventFun: '0',
      editPopup: false,
      faultCode: '',
      // 故障码
      userId: Number(localStorage.getItem('userId')),
      qnInfo: {
        token: '',
        bucketUrl: ''
      },
      detailPopup: false,
      questionDetail: {},
      // 问题详情
      defaultAvatar: __webpack_require__(56),
      takerAvatar_1: __webpack_require__(2173),
      takerAvatar_2: __webpack_require__(2174),
      msgList: [],
      sendParams: {},
      isChat: false,
      faultCodePicList: [],
      currentItem: 0,
      checkDescription: '',
      checkDescriptionPicList: [],
      faultCodePicListArr: [],
      checkDescriptionPicListArr: [],
      editDescriptionBtnItem: {},
      // 跟新故障码问题按钮数据
      descriptionPicListArr: [],
      isShowInputAndAdoption: false,
      isSendSuccess: true,
      showMarkPopup: false,
      // 超时系统关闭 询问是否解决问题弹框（已接单）
      showMaskBox: false,
      // 问题标记
      showActiveMarkPopup: false,
      // 主动关闭 询问是否解决问题弹框（已接单）
      markVal: null,
      // 标记值
      isMarkClick: true,
      markList: [{
        name: '已解决',
        value: 4
      }, {
        name: '未解决',
        value: 6
      }],
      showRatingBox: false,
      // 评价问题
      starNum: 0,
      // 星级数
      showCancelQuestionPopup: false,
      // 取消问题弹框
      msgTipIndex: null,
      // 点击小灰条的位置
      isShowMarkPopup: true,
      initialize: true,
      // 消息初始化
      relatedInformation: {
        sourceTitle: ''
      }
    };
  },
  watch: {
    msgList: function msgList() {
      var _this = this;
      this.msgList.forEach(function (v) {
        if (v.questionerCanTalk === null || v.questionerCanTalk) {
          _this.isShowInputAndAdoption = true;
        }
      });
      setTimeout(function () {
        _this.$refs.msgContent.scrollTop = _this.$refs.msgList.offsetHeight + 100000;
      }, 300);
    },
    '_MQTT.client.connected': function _MQTTClientConnected(val) {
      if (!val) {
        // 重连mqtt
        if (!this._MQTT.client.connected && !this._MQTT.client.reconnecting) {
          this._MQTT.client.reconnect();
        }
      }
    }
  },
  computed: {
    toolStatus: function toolStatus() {
      var _arr = [false, false, false];

      // 是否显示输入框、发图片、发视频
      if ((this.sendParams.questionerId === this.userId || this.sendParams.answererId === this.userId) && this.questionDetail.status === 3) {
        _arr[0] = true;
      }

      // 是否显示关闭
      if (this.sendParams.questionerId === this.userId && this.questionDetail.status === 3 && this.isShowInputAndAdoption) {
        _arr[1] = true;
      }

      // 是否显示拨打电话
      if (this.questionDetail.communicMode === 2 && this.questionDetail.status === 3 && this.isShowInputAndAdoption && (this.sendParams.questionerId === this.userId || this.sendParams.answererId === this.userId)) {
        _arr[2] = true;
      }
      return _arr;
    }
  },
  created: function created() {
    var _this2 = this;
    this.getQNToken();
    this.getDialogueMessageList();
    this.getQuestionDetail();
    this.getSourceTitle();
    setTimeout(function () {
      var ascription = _this2.$route.query.ascription;
      if (ascription === 'questioner') {
        ascription = 'questioner';
      } else {
        ascription = 'answer';
      }
      _this2._MQTT.subscribe("restService/send/".concat(ascription, "/").concat(_this2.$route.query.id), {
        qos: 1
      });
      _this2._MQTT.on("restService/send/".concat(ascription, "/").concat(_this2.$route.query.id), function (message) {
        console.log('message1', message);
        if (message) {
          // 控制关闭按钮和输入框显示状态
          if (message.status === 3 || message.status === 7) {
            _this2.questionDetail.status = message.status;
          }
          _this2.msgList.push(message);
        }
      });
      // 订阅询问人的位置询问消息
      _this2._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this2._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        var currentPos = 1;
        console.log('message2', message);
        if (Number(message.id) === Number(_this2.$route.query.id)) {
          currentPos = 1;
        } else {
          currentPos = 2;
        }
        _this2._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: currentPos,
          dialogueId: _this2.sendParams.dialogueId
        }, function (err) {
          if (!err) {
            console.log('发送当前位置成功' + currentPos);
          } else {
            console.warn(err);
          }
        });
      });
    }, 300);
  },
  beforeDestroy: function beforeDestroy() {
    console.log('离开会话页');
    this._MQTT.unsubscribe("restService/send/questioner/".concat(this.$route.query.id));
    this._MQTT.unsubscribe("restService/send/answer/".concat(this.$route.query.id));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 是否是管理员、提问人、回答人
     * 没有权限跳转问答首页
     */
    isReportAdmin: function isReportAdmin() {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.IS_ADMIN, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this3);
      });
    },
    /**
     * app是否有某个权限
     */
    isRight: function isRight(callBack) {
      var resultList = api.hasPermission({
        list: ['camera']
      });
      if (!resultList[0].granted) {
        MessageBox({
          title: '“卡修宝典”想访问您的相机权限',
          message: '在使用相机功能时，需要使用相机功能，用于下载并存储分享图片',
          confirmButtonText: '同意',
          showCancelButton: 'true',
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action == 'confirm') {
            api.requestPermission({
              list: ['camera'],
              code: 100004
            }, function (ret, err) {
              if (ret.never) {
                console.log('点击了不再提醒');
              }
              if (ret.list[0].granted) {
                callBack && callBack();
              }
            });
          }
        });
      } else {
        callBack && callBack();
      }
    },
    /**
     * 预览图片
     */
    previewImg: function previewImg(file, detail) {
      var curPreviewImgs = [];
      if (file.type === 0) {
        curPreviewImgs = this.descriptionPicListArr;
      }
      if (file.type === 1) {
        curPreviewImgs = this.faultCodePicListArr;
      }
      if (file.type === 2) {
        curPreviewImgs = this.checkDescriptionPicListArr;
      }
      this.viewImage(curPreviewImgs[detail.index], curPreviewImgs, detail.index);
    },
    upload: function upload(file) {
      var _this4 = this;
      file.status = 'uploading';
      file.message = '上传中...';
      file.type = this.currentItem;
      if (file.file) {
        var formData = new FormData();
        var fileNameArr = file.file.name && file.file.name.split('.');
        formData.append('file', file.file);
        formData.append('key', new Date().getTime() + '.' + fileNameArr[fileNameArr.length - 1]);
        formData.append('token', this.qnInfo.token);
        var url = '';
        if (this._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        $.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          file.status = '';
          file.message = '';
          if (_this4.currentItem === 0) {
            _this4.descriptionPicListArr.push(_this4.qnInfo.bucketUrl + res.key);
          }
          if (_this4.currentItem === 1) {
            _this4.faultCodePicListArr.push(_this4.qnInfo.bucketUrl + res.key);
          }
          if (_this4.currentItem === 2) {
            _this4.checkDescriptionPicListArr.push(_this4.qnInfo.bucketUrl + res.key);
          }
        }).fail(function (err) {
          console.log(err);
          file.status = '';
          file.message = '';
        });
      }
    },
    /**
     * 点击按钮
     */
    editDescription: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(item) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (!(this.questionDetail.closeStatus === 1 || this.questionDetail.closeStatus === 2)) {
                _context.next = 1;
                break;
              }
              this.$toast('问题已取消');
              return _context.abrupt("return");
            case 1:
              if (!(this.questionDetail.closeStatus === 3 || this.questionDetail.closeStatus === 4)) {
                _context.next = 2;
                break;
              }
              this.$toast('问题已关闭');
              return _context.abrupt("return");
            case 2:
              this.editDescriptionBtnItem = item;
              if (item.extraEventFun === 'modifyTroubleShoot' || item.extraEventFun === 'modifyFaultCode') {
                this.extraEventFun = item.extraEventFun;
                this.editPopup = true;
              } else {
                this.updateQuestion();
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
    * 确认故障回答
    */
    confirm: function confirm() {
      this.editPopup = false;
      this.updateQuestion();
    },
    /**
     * 更新描述
     * @param item
     */
    updateQuestion: function updateQuestion() {
      // 更新问题参数
      var param = {
        content: '',
        updateType: 0,
        imgs: [],
        questionId: this.questionDetail.id
      };
      var item = this.editDescriptionBtnItem || {
        extraEventFun: ''
      };
      // 修改故障码 || 有故障码
      if (item.extraEventFun === 'modifyFaultCode') {
        param.content = this.faultCode;
        param.imgs = this.faultCodePicListArr;
      }
      // 修改检查 || 有检查
      if (item.extraEventFun === 'modifyTroubleShoot') {
        param.content = this.checkDescription;
        param.imgs = this.checkDescriptionPicListArr;
      }
      // 故障码type
      if (item.extraEventFun === 'modifyFaultCode' || item.extraEventFun === 'modifyNoFaultCode') {
        param.updateType = 1;
      }
      if (item.extraEventFun === 'modifyTroubleShoot' || item.extraEventFun === 'modifyNoTroubleShoot') {
        param.updateType = 2;
      }
      this._Util.post(this._Api.UPDATE_QUESTION, param, function (data) {
        (0, _toast.default)('已修改');
      }, function () {}, this);
    },
    /*
    * 删除已上传的图
    * */
    deleteImg: function deleteImg(file, detail) {
      if (file.type === 0) {
        this.descriptionPicListArr.splice(detail.index, 1);
      }
      if (file.type === 1) {
        this.faultCodePicListArr.splice(detail.index, 1);
      }
      if (file.type === 2) {
        this.checkDescriptionPicListArr.splice(detail.index, 1);
      }
    },
    siteCurrentItem: function siteCurrentItem(c) {
      this.currentItem = c;
    },
    /**
     * 跳转到问答首页
     */
    toAskHome: function toAskHome() {
      this.$router.push({
        name: 'questionsOrAnswers'
      });
    },
    getQNToken: function getQNToken() {
      var _this5 = this;
      this._Util.post(this._Api.appGetQNToken, {}, function (data) {
        _this5.qnInfo = data;
      }, function () {}, this);
    },
    /**
     * 获取会话消息
     */
    getDialogueMessageList: function getDialogueMessageList() {
      var _this6 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var _isAdmin;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this6.isReportAdmin();
            case 1:
              _isAdmin = _context2.sent;
              _this6._Util.post(_this6._Api.GET_DIALOGUE_MESSAGE_LIST, {
                dialogueId: _this6.$route.query.id
              }, function (data) {
                if (data.infoVo.questionerId !== _this6.userId && data.infoVo.answererId !== _this6.userId && !_isAdmin) {
                  if (_this6._Util.isApp()) {
                    api.sendEvent({
                      name: 'acOpenNewFrm',
                      extra: {
                        name: 'questionsOrAnswers',
                        url: "".concat(location.origin, "/v2/questionsOrAnswers")
                      }
                    });
                  } else {
                    _this6.$router.push({
                      name: 'questionsOrAnswers'
                    });
                  }
                  return;
                }
                if (data.code === 1) {
                  _this6.isChat = true;
                  _this6.sendParams = data.infoVo;
                  _this6.msgList = data.vos.dataList;
                } else {
                  _this6.isChat = false;
                }
              }, function () {}, _this6);
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this7 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var detail = data.vo;
        document.title = "\u95EE\u9898-".concat(detail.id);
        _this7.showMarkPopup = detail.createUserId === _this7.userId && detail.closeStatus === 4 && detail.commentStatus === 0 && _this7.isShowMarkPopup;
        _this7.showRatingBox = detail.createUserId === _this7.userId && (detail.closeStatus === 3 || detail.closeStatus === 4) && detail.commentStatus === 1;
        if (!detail.vehicleBrandName) {
          detail.vehicleText = '-';
        } else if (detail.vehicleBrandName && !detail.vehicleModeName) {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/-");
        } else {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/").concat(detail.vehicleModeName);
        }
        if (!detail.engineBrandName) {
          detail.engineText = '-';
        } else if (detail.engineBrandName && !detail.engineModeName) {
          detail.engineText = "".concat(detail.engineBrandName, "/-");
        } else {
          detail.engineText = "".concat(detail.engineBrandName, "/").concat(detail.engineModeName);
        }
        if (!detail.ecuBrandName) {
          detail.ecuText = '-';
        } else if (detail.ecuBrandName && !detail.ecuModeName) {
          detail.ecuText = "".concat(detail.ecuBrandName, "/-");
        } else {
          detail.ecuText = "".concat(detail.ecuBrandName, "/").concat(detail.ecuModeName);
        }
        detail.faultSymptomImg = detail.faultSymptomImg && detail.faultSymptomImg.split(',') || '';
        detail.faultCodeImg = detail.faultCodeImg && detail.faultCodeImg.split(',') || '';
        detail.troubleShootImg = detail.troubleShootImg && detail.troubleShootImg.split(',') || '';
        _this7.questionDetail = detail;
      }, function () {}, this);
    },
    /**
     * 展开详情
     */
    expandDetail: function expandDetail() {
      this.detailPopup = true;
      this.isShowMarkPopup = false;
      this.getQuestionDetail();
    },
    /**
     * 收起详情
     */
    shrinkDetail: function shrinkDetail() {
      this.detailPopup = false;
    },
    /**
     * 图片预览
     */
    imagePreview: function imagePreview(images, pos) {
      this.viewImage(images[pos], images, pos);
    },
    /**
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      console.log('imgUrl', imgUrl);
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/1000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/1000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
     * 转换表情内容
     */
    matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text && text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text && text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    blurInput: function blurInput() {
      setTimeout(function () {
        window.scrollTo(0, document.documentElement.clientHeight);
      }, 300);
    },
    /**
     * 问题标记
     * @param {Number} type 标记标识 6：未解决 4：已解决
     */
    questionMark: (0, _throttleDebounce.debounce)(1000, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(type) {
        var that;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              that = this;
              if (that.isMarkClick) {
                _context3.next = 1;
                break;
              }
              return _context3.abrupt("return");
            case 1:
              that.isMarkClick = false;
              that._Util.post(that._Api.SIGN_QUESTION, {
                id: that.questionDetail.id,
                dialogId: that.$route.query.id,
                dialogueStatus: type
              }, function (data) {
                that.showMarkPopup = false;
                that.showMaskBox = false;
                that.showRatingBox = true;
                that.isMarkClick = true;
                that.$toast('问题标记成功');
                setTimeout(function () {
                  that.$refs.msgContent.scrollTop = that.$refs.msgList.offsetHeight + 100000;
                }, 300);
              }, function () {
                that.isMarkClick = true;
              }, this);
            case 2:
            case "end":
              return _context3.stop();
          }
        }, _callee3, this);
      }));
      return function (_x2) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /**
     * 选择标记值
     * @param {Number} val 标记值
     */
    selectCheckbox: function selectCheckbox(val) {
      this.markVal = val;
    },
    /**
     * 手动关闭问题时标记
     */
    activeMark: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
      var that;
      return _regenerator.default.wrap(function (_context4) {
        while (1) switch (_context4.prev = _context4.next) {
          case 0:
            that = this;
            if (!(!that.markVal || that.markVal === '')) {
              _context4.next = 1;
              break;
            }
            that.$toast('请选择标记');
            return _context4.abrupt("return");
          case 1:
            console.log(that.isMarkClick);
            if (that.isMarkClick) {
              _context4.next = 2;
              break;
            }
            return _context4.abrupt("return");
          case 2:
            that.isMarkClick = false;
            that._Util.post(that._Api.CLOSE_QUESTION, {
              id: that.questionDetail.id,
              dialogId: that.$route.query.id,
              dialogueStatus: that.markVal
            }, function (data) {
              that.questionDetail.status = 7;
              that.showActiveMarkPopup = false;
              that.showRatingBox = true;
              that.isMarkClick = true;
              that.$toast('问题标记成功');
              setTimeout(function () {
                that.$refs.msgContent.scrollTop = that.$refs.msgList.offsetHeight + 100000;
              }, 300);
            }, function () {}, this);
          case 3:
          case "end":
            return _context4.stop();
        }
      }, _callee4, this);
    }))),
    /**
     * 关闭问题标记
     */
    closeMarkPopup: function closeMarkPopup() {
      var _this8 = this;
      this.showMarkPopup = false;
      this.showMaskBox = true;
      setTimeout(function () {
        _this8.$refs.msgContent.scrollTop = _this8.$refs.msgList.offsetHeight + 100000;
      }, 300);
    },
    /**
     * 获取星级数
     */
    getStarNum: function getStarNum(val) {
      this.starNum = val;
    },
    /**
     * 评价问题
     */
    evaluateQuestion: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
      var that;
      return _regenerator.default.wrap(function (_context5) {
        while (1) switch (_context5.prev = _context5.next) {
          case 0:
            that = this;
            that._Util.post(that._Api.EVALUATE_QUESTION, {
              id: that.questionDetail.id,
              commentStars: that.starNum
            }, function (data) {
              that.showRatingBox = false;
              that.$toast('问题评价成功');
            }, function () {}, this);
          case 1:
          case "end":
            return _context5.stop();
        }
      }, _callee5, this);
    }))),
    /**
     * 取消问题（未接单）
     */
    cancelQuestion: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
      var that;
      return _regenerator.default.wrap(function (_context6) {
        while (1) switch (_context6.prev = _context6.next) {
          case 0:
            that = this;
            that._Util.post(that._Api.CANCEL_QUESTION, {
              questionId: that.questionDetail.id
            }, function (data) {
              that.$toast('问题取消成功');
              that.msgList[that.msgTipIndex].status = 7;
              that.questionDetail.closeStatus = 1; // 未接单用户关闭
              that.showCancelQuestionPopup = false;
            }, function () {}, this);
          case 1:
          case "end":
            return _context6.stop();
        }
      }, _callee6, this);
    }))),
    /**
     * 点击小灰条操作按钮
     */
    actionMsgTip: function actionMsgTip(info, index) {
      if (info.buttons[0].extraEventFun === 'goWallet') {
        // 钱包
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'wallet',
              url: "".concat(location.origin, "/v2/member/center/per/medal/wallet")
            }
          });
        } else {
          this.$router.push({
            name: 'wallet'
          });
        }
      } else if (info.buttons[0].extraEventFun === 'goRefund') {
        // 申请退款的问卷
        var url = "".concat(location.origin, "/v2/questionnaire/index?no=3c7c19a0&data=").concat(this.questionDetail.id);
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'feedback',
              url: url
            }
          });
        } else {
          location.href = url;
        }
      } else if (info.buttons[0].extraEventFun === 'cancelQuestion' && info.status === 2) {
        this.msgTipIndex = index;
        this.showCancelQuestionPopup = true;
      }
    },
    /**
     * 去提问页
     */
    goLinkToPutQuestion: function goLinkToPutQuestion() {
      localStorage.removeItem('qa_data');
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'putQuestion',
            url: "".concat(location.origin, "/v2/shopping/putQuestion")
          }
        });
      } else {
        location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
      }
    },
    /**
     * 监听发送消息内容
     */
    getMessage: function getMessage(message) {
      var _this9 = this;
      this.initialize = false;
      if (!this.isSendSuccess) {
        console.log('稍等一下');
        return;
      }
      this.blurInput();
      var sendParams = Object.assign(this.sendParams, message);

      // 发布询问对话人的位置
      this._MQTT.publish("msgService/dialogue/position/".concat(this.sendParams.receiveUserId), {
        id: this.$route.query.id
      });
      setTimeout(function () {
        _this9.isSendSuccess = false;
        _this9.msgPublish(sendParams);
      }, 500);
    },
    /**
     * 发送
     */
    msgPublish: function msgPublish(sendParams) {
      var _this0 = this;
      _toast.default.loading({
        duration: 0,
        className: 'msgLoading'
      });
      this._Util.post(this._Api.SEND_MESSAGE, sendParams, function (data) {
        _this0.initialize = true;
        _this0.isSendSuccess = true;
        _this0.$refs.msgContent.scrollTop = _this0.$refs.msgList.offsetHeight + 100000;
        _toast.default.clear();
      }, function () {
        _toast.default.clear();
      }, this, true);
    },
    /**
     * 监听关闭问题
     */
    closeQuestion: function closeQuestion() {
      this.showActiveMarkPopup = true;
    },
    /**
     * 电话沟通
     */
    telephoneCommunication: function telephoneCommunication() {
      this._Util.post(this._Api.QA_OUT_CALL, {
        id: this.sendParams.dialogueId
      }, function (data) {
        window.location.href = "tel:".concat(data);
      }, function () {}, this);
    },
    /**
     * 元素点击埋点
     */
    elementClick: function elementClick(params) {
      var options = {
        url: window.location.href,
        title: document.title,
        moudle_type: '极速问答',
        operation_page: '极速问答'
      };
      var _options = Object.assign(options, params);
      this._Util.sensorsCollect('element_click', _options);
    },
    /**
     * 获取资料来源
     */
    getSourceTitle: function getSourceTitle() {
      var _this1 = this;
      this._Util.post(this._Api.GET_SOURCE_TITLE, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        if (data.sourceType === 3 || data.sourceType === 4) {
          var partsKeyArr = data.partsKey.split(':') || [];
          var parts = _partsTableConfig.default[partsKeyArr[0]].filter(function (item) {
            if (item.name === partsKeyArr[1]) {
              return item;
            }
          });
          _this1.relatedInformation.sourceTitle = "".concat(parts[0].title, "\uFF1A").concat(data.sourceNo);
        } else {
          _this1.relatedInformation.sourceTitle = data.sourceTitle;
        }
        _this1.relatedInformation.sourceUrl = data.sourceUrl;
      }, function () {}, this);
    },
    /**
     * 跳转关联资料页
     */
    toRelatedInformation: function toRelatedInformation() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'relatedInformation',
            url: this.relatedInformation.sourceUrl
          }
        });
      } else {
        location.href = this.relatedInformation.sourceUrl;
      }
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))(function (global, factory) {
	 true ? factory(exports) :
	undefined;
}(this, (function (exports) { 'use strict';

	/* eslint-disable no-undefined,no-param-reassign,no-shadow */

	/**
	 * Throttle execution of a function. Especially useful for rate limiting
	 * execution of handlers on events like resize and scroll.
	 *
	 * @param  {number}    delay -          A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
	 * @param  {boolean}   [noTrailing] -   Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
	 *                                    throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
	 *                                    after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
	 *                                    the internal counter is reset).
	 * @param  {Function}  callback -       A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
	 *                                    to `callback` when the throttled-function is executed.
	 * @param  {boolean}   [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
	 *                                    schedule `callback` to execute after `delay` ms.
	 *
	 * @returns {Function}  A new, throttled, function.
	 */
	function throttle (delay, noTrailing, callback, debounceMode) {
	  /*
	   * After wrapper has stopped being called, this timeout ensures that
	   * `callback` is executed at the proper times in `throttle` and `end`
	   * debounce modes.
	   */
	  var timeoutID;
	  var cancelled = false; // Keep track of the last time `callback` was executed.

	  var lastExec = 0; // Function to clear existing timeout

	  function clearExistingTimeout() {
	    if (timeoutID) {
	      clearTimeout(timeoutID);
	    }
	  } // Function to cancel next exec


	  function cancel() {
	    clearExistingTimeout();
	    cancelled = true;
	  } // `noTrailing` defaults to falsy.


	  if (typeof noTrailing !== 'boolean') {
	    debounceMode = callback;
	    callback = noTrailing;
	    noTrailing = undefined;
	  }
	  /*
	   * The `wrapper` function encapsulates all of the throttling / debouncing
	   * functionality and when executed will limit the rate at which `callback`
	   * is executed.
	   */


	  function wrapper() {
	    for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
	      arguments_[_key] = arguments[_key];
	    }

	    var self = this;
	    var elapsed = Date.now() - lastExec;

	    if (cancelled) {
	      return;
	    } // Execute `callback` and update the `lastExec` timestamp.


	    function exec() {
	      lastExec = Date.now();
	      callback.apply(self, arguments_);
	    }
	    /*
	     * If `debounceMode` is true (at begin) this is used to clear the flag
	     * to allow future `callback` executions.
	     */


	    function clear() {
	      timeoutID = undefined;
	    }

	    if (debounceMode && !timeoutID) {
	      /*
	       * Since `wrapper` is being called for the first time and
	       * `debounceMode` is true (at begin), execute `callback`.
	       */
	      exec();
	    }

	    clearExistingTimeout();

	    if (debounceMode === undefined && elapsed > delay) {
	      /*
	       * In throttle mode, if `delay` time has been exceeded, execute
	       * `callback`.
	       */
	      exec();
	    } else if (noTrailing !== true) {
	      /*
	       * In trailing throttle mode, since `delay` time has not been
	       * exceeded, schedule `callback` to execute `delay` ms after most
	       * recent execution.
	       *
	       * If `debounceMode` is true (at begin), schedule `clear` to execute
	       * after `delay` ms.
	       *
	       * If `debounceMode` is false (at end), schedule `callback` to
	       * execute after `delay` ms.
	       */
	      timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
	    }
	  }

	  wrapper.cancel = cancel; // Return the wrapper function.

	  return wrapper;
	}

	/* eslint-disable no-undefined */
	/**
	 * Debounce execution of a function. Debouncing, unlike throttling,
	 * guarantees that a function is only executed a single time, either at the
	 * very beginning of a series of calls, or at the very end.
	 *
	 * @param  {number}   delay -         A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
	 * @param  {boolean}  [atBegin] -     Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
	 *                                  after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
	 *                                  (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
	 * @param  {Function} callback -      A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
	 *                                  to `callback` when the debounced-function is executed.
	 *
	 * @returns {Function} A new, debounced function.
	 */

	function debounce (delay, atBegin, callback) {
	  return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
	}

	exports.debounce = debounce;
	exports.throttle = throttle;

	Object.defineProperty(exports, '__esModule', { value: true });

})));
//# sourceMappingURL=index.umd.js.map
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(337);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5997bd5b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(937);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2162)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5997bd5b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5997bd5b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5997bd5b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_starRating_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2163);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("03db4f48", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".star-rating-box[data-v-5997bd5b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.star-rating-box .star-item[data-v-5997bd5b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.star-rating-box .star-item .star[data-v-5997bd5b]{display:inline-block;width:1.4rem;height:1.35rem;background:url(" + escape(__webpack_require__(2164)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;vertical-align:top}.star-rating-box .star-item .star[data-v-5997bd5b]:last-child{margin-right:0}.star-rating-box .star-item .star.selected[data-v-5997bd5b]{background:url(" + escape(__webpack_require__(2165)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.star-rating-box .star-item p[data-v-5997bd5b]{height:.7rem;line-height:1;margin-top:.3rem;color:#999;font-size:.5rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/star_icon.d8fc3f0.png";module.exports = __webpack_require__.p + "static/img/star_icon_selected.c89ad97.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    starNum: {
      type: Number,
      default: 0
    },
    starTotal: {
      type: Array,
      default: function _default() {
        return ['很不满意', '不满意', '一般', '满意', '非常满意'];
      }
    }
  },
  data: function data() {
    return {
      currentStarNum: 0
    };
  },
  watch: {
    starNum: function starNum(val) {
      this.currentStarNum = val;
    }
  },
  methods: {
    /**
     * 选择星级
     */
    selectStar: function selectStar(val) {
      this.currentStarNum = val;
      this.$emit('setStarNum', val);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"star-rating-box"},_vm._l((_vm.starTotal),function(star,index){return _c('div',{key:index,staticClass:"star-item"},[_c('span',{staticClass:"star",class:{'selected': _vm.currentStarNum > index},on:{"click":function($event){return _vm.selectStar(index + 1)}}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(star))])])}),0)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(338);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5432f475_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(938);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2167)
  __webpack_require__(2169)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5432f475"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5432f475_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5432f475_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_messageInput_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2168);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0a13d962", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bottom-input-container .van-cell{padding:.4rem .8rem}.bottom-input-container .van-cell__value{background-color:#f4f5f6;border-radius:.2rem}.bottom-input-container .van-field__control{padding:.45rem .6rem;font-size:.8rem;line-height:1.1rem;color:#333}.bottom-input-container .van-field__control::-webkit-input-placeholder{font-size:.8rem;color:#999}.bottom-input-container .van-field__control:-ms-input-placeholder{font-size:.8rem;color:#999}.bottom-input-container .van-field__control::placeholder{font-size:.8rem;color:#999}.bottom-input-container .van-uploader{width:100%;height:inherit}.bottom-input-container .van-uploader__wrapper{height:inherit}.bottom-input-container .van-uploader__input-wrapper,.bottom-input-container .van-uploader__wrapper{width:100%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.bottom-input-container .van-uploader__input-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2170);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("a33d2fbc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bottom-input-container[data-v-5432f475]{background-color:#fff}.bottom-input-container .msg-input[data-v-5432f475]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.bottom-input-container .msg-input .msg-input-left[data-v-5432f475]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.bottom-input-container .msg-input .msg-input-right[data-v-5432f475]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;width:3.8rem}.bottom-input-container .msg-input .msg-input-right .send-btn[data-v-5432f475]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3rem;height:2rem;line-height:1;margin-bottom:.4rem;background-color:#177afa;border-radius:.2rem;overflow:hidden}.bottom-input-container .msg-input .msg-input-right .send-btn.disable[data-v-5432f475]{background-color:#c2c8d0}.bottom-input-container .msg-input .msg-input-right .send-btn span[data-v-5432f475]{line-height:1;color:#fff;font-size:.7rem}.bottom-input-container .tools[data-v-5432f475]{-ms-flex-align:center}.bottom-input-container .tools .tools-cell[data-v-5432f475],.bottom-input-container .tools[data-v-5432f475]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bottom-input-container .tools .tools-cell[data-v-5432f475]{height:2rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding-bottom:.2rem;overflow:hidden}.bottom-input-container .tools .tools-cell img[data-v-5432f475]{width:1rem;height:1rem;margin-right:.35rem;vertical-align:top}.bottom-input-container .tools .tools-cell span[data-v-5432f475]{line-height:1;font-size:.7rem;color:#666}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(144);
var _uploader = _interopRequireDefault(__webpack_require__(145));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'MessageInput',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _field.default.name, _field.default), _uploader.default.name, _uploader.default), _toast.default.name, _toast.default),
  props: {
    initialize: {
      type: Boolean,
      default: true
    },
    qnInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    toolStatus: {
      type: Array,
      default: function _default() {
        return [false, false, false];
      }
    },
    questionId: {
      type: Number,
      default: null
    }
  },
  data: function data() {
    return {
      messageContent: '',
      selection: '',
      showSendBtn: false,
      disable: false
    };
  },
  watch: {
    initialize: function initialize(val) {
      if (val) {
        // this.messageContent = ''
      }
    },
    toolStatus: function toolStatus(val) {
      var _this = this;
      if (this._Util.isIOS && this._Util.isApp()) return;
      if (val[0]) {
        // 处理点击发送时，input持续获取焦点
        setTimeout(function () {
          _this.$refs.sendBtn.addEventListener('click', function (e) {
            if (_this.disable) return;
            e.preventDefault();
            document.querySelector('.van-field__control').focus();
          });
        }, 500);
      }
    },
    messageContent: function messageContent(val) {
      this.disable = val.trim() === '';
    }
  },
  methods: {
    /**
     * 发送消息（文本）
     */
    getMessage: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that, message;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            that = this;
            if (!that.disable) {
              _context.next = 1;
              break;
            }
            return _context.abrupt("return");
          case 1:
            message = {
              messageContent: that.messageContent,
              messageImg: null
            };
            that.messageContent = '';
            that.$emit('getMessage', message);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 发送消息（图片）
     */
    afterRead: function afterRead(file) {
      var _this2 = this;
      (0, _toast.default)({
        position: 'bottom',
        duration: 0,
        message: '发送中...'
      });
      if (file.file) {
        var formData = new FormData();
        var fileNameArr = file.file.name && file.file.name.split('.');
        formData.append('file', file.file);
        formData.append('key', new Date().getTime() + '.' + fileNameArr[fileNameArr.length - 1]);
        formData.append('token', this.qnInfo.token);
        var url = '';
        if (this._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        $.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _this2.messageImg = _this2.qnInfo.bucketUrl + res.key;
          var message = {
            messageImg: _this2.messageImg,
            messageContent: null
          };
          setTimeout(function () {
            _this2.$emit('getMessage', message);
            _this2.$emit('elementClickEmit', {
              element_name: '发图片',
              element_content: '发图片',
              element_target_url: '',
              correlation_id: _this2.questionId
            });
            _this2.showSendBtn = false;
          }, 300);
          _toast.default.clear();
        }).fail(function (res) {
          (0, _toast.default)({
            position: 'bottom',
            duration: 0,
            message: '发送失败'
          });
        });
      }
    },
    /**
     * 关闭问题
     */
    closeQuestion: function closeQuestion() {
      this.$emit('closeQuestion');
    },
    /**
     * 电话沟通
     */
    telephoneCommunication: function telephoneCommunication() {
      this.$emit('telephoneCommunication');
      this.$emit('elementClickEmit', {
        element_name: '打电话',
        element_content: '打电话',
        element_target_url: '',
        correlation_id: this.questionId
      });
    },
    clickField: function clickField(event) {
      var _selectionStart = event.target.selectionStart;
      var _selectionEnd = event.target.selectionEnd;
      this.selection = "".concat(_selectionStart, " - ").concat(_selectionEnd);
      this.$nextTick(function () {
        var ele = document.querySelector('.van-field__control');
        ele.setSelectionRange(_selectionStart, _selectionEnd);
      });
    },
    msgBlur: function msgBlur() {
      this.showSendBtn = !(this.messageContent === '');
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.toolStatus[0])?_c('div',{staticClass:"bottom-input-container"},[_c('div',{staticClass:"msg-input"},[_c('div',{staticClass:"msg-input-left needsclick"},[_c('van-field',{attrs:{"rows":"1","autosize":{
          maxHeight: 100
        },"type":"textarea","placeholder":"请输入消息..."},on:{"focus":function($event){_vm.showSendBtn = true},"blur":_vm.msgBlur},model:{value:(_vm.messageContent),callback:function ($$v) {_vm.messageContent=$$v},expression:"messageContent"}})],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showSendBtn),expression:"showSendBtn"}],staticClass:"msg-input-right"},[_c('div',{ref:"sendBtn",staticClass:"send-btn",class:{'disable': _vm.disable},on:{"click":_vm.getMessage}},[_c('span',[_vm._v("发送")])])])]),_vm._v(" "),_c('div',{staticClass:"tools"},[(_vm.toolStatus[1])?_c('div',{staticClass:"tools-cell",on:{"click":_vm.closeQuestion}},[_c('img',{attrs:{"src":__webpack_require__(2171)}}),_vm._v(" "),_c('span',[_vm._v("关闭")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"tools-cell"},[_c('van-uploader',{attrs:{"after-read":_vm.afterRead}},[_c('img',{attrs:{"src":__webpack_require__(1391)}}),_vm._v(" "),_c('span',[_vm._v("发图片"+_vm._s(_vm.selection))])])],1),_vm._v(" "),(_vm.toolStatus[2])?_c('div',{staticClass:"tools-cell",on:{"click":_vm.telephoneCommunication}},[_c('img',{attrs:{"src":__webpack_require__(2172)}}),_vm._v(" "),_c('span',[_vm._v("打电话")])]):_vm._e()])]):_vm._e()}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/msg_tool_1.de3ac07.png";module.exports = __webpack_require__.p + "static/img/msg_tool_2.cee2a7b.png";module.exports = __webpack_require__.p + "static/img/msg_tool_4.df19209.png";module.exports = JSON.parse("{\"Pump\":[{\"title\":\"油泵型号\",\"name\":\"pmodel\",\"pageTitle\":\"油泵\"},{\"title\":\"类型\",\"name\":\"part\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"油量计量单元\",\"name\":\"unit\"},{\"title\":\"高压组件\",\"name\":\"pressure\"},{\"title\":\"齿轮泵（叶片泵）\",\"name\":\"gear\"},{\"title\":\"溢流阀\",\"name\":\"tap\"},{\"title\":\"转速传感器\",\"name\":\"speed1\"},{\"title\":\"替用件\",\"name\":\"zcth\"}],\"Product\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"喷油器\"},{\"title\":\"类型\",\"name\":\"ptype\"},{\"title\":\"名称\",\"name\":\"pname\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"油嘴编号\",\"name\":\"yz\"},{\"title\":\"油嘴刻印号\",\"name\":\"yzsn\"},{\"title\":\"阀组件号\",\"name\":\"fz\",\"reg\":\"\"},{\"title\":\"密封球型号\",\"name\":\"mfq\"},{\"title\":\"球座型号\",\"name\":\"qz\"},{\"title\":\"电磁铁型号\",\"name\":\"dct\"},{\"title\":\"衔铁组件型号\",\"name\":\"xtzj\"},{\"title\":\"高压密封圈型号\",\"name\":\"gymfq\",\"reg\":\"\"},{\"title\":\"OHK套件型号\",\"name\":\"ohk\",\"className\":\"aClass\"},{\"title\":\"总成替换产品\",\"name\":\"zcth\",\"reg\":\"\"}],\"Rail\":[{\"title\":\"油轨型号\",\"name\":\"smodel\",\"pageTitle\":\"油轨\"},{\"title\":\"类型\",\"name\":\"rtype\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"匹配系统压力\",\"name\":\"pressure\"},{\"title\":\"轨压传感器类别\",\"name\":\"ptype\"},{\"title\":\"轨压传感器型号\",\"name\":\"pmodel\",\"reg\":\"\"},{\"title\":\"泄压阀型号\",\"name\":\"xmodel\"},{\"title\":\"压力控制阀型号\",\"name\":\"pymodelyq\"}],\"Ecu\":[{\"title\":\"部件型号\",\"name\":\"ecu_no\",\"pageTitle\":\"部件\"},{\"title\":\"类型\",\"name\":\"ptype\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}],\"Delphi\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"Delphi\"},{\"title\":\"主机厂商\",\"name\":\"engineCompany\"},{\"title\":\"发动机型号及应用\",\"name\":\"engineModel\",\"reg\":\"\"},{\"title\":\"油嘴型号\",\"name\":\"yzModel\",\"reg\":\"\"},{\"title\":\"阀组件型号\",\"name\":\"fzjModel\",\"reg\":\"\"},{\"title\":\"总成替换产品\",\"name\":\"totalReplace\"},{\"title\":\"客户号\",\"name\":\"customerNo\"}],\"Dzpyq\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"电装喷油器\"},{\"title\":\"主机厂商\",\"name\":\"zj\"},{\"title\":\"发动机型号\",\"name\":\"fdj\"},{\"title\":\"应用\",\"name\":\"app\"},{\"title\":\"油嘴型号\",\"name\":\"yz\"},{\"title\":\"阀片型号\",\"name\":\"fp\"},{\"title\":\"密封圈套装\",\"name\":\"mfq\"},{\"title\":\"油嘴紧帽\",\"name\":\"jzjm\"},{\"title\":\"总成替换产品\",\"name\":\"zcth\"}],\"Ohk\":[{\"title\":\"OHK套件型号\",\"name\":\"ohk\",\"pageTitle\":\"OHK套件信息\"},{\"title\":\"阀组件型号\",\"name\":\"fzj\"},{\"title\":\"油嘴型号\",\"name\":\"yz\"},{\"title\":\"密封圈\",\"name\":\"mfq\"},{\"title\":\"支撑圈\",\"name\":\"zcq\"}],\"Sensor\":[{\"title\":\"部件型号\",\"name\":\"sensorNo\",\"pageTitle\":\"部件\"},{\"title\":\"类型\",\"name\":\"ptype\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}]}");module.exports = __webpack_require__.p + "static/img/taker_avatar_1.ee33562.png";module.exports = __webpack_require__.p + "static/img/taker_avatar_2.d120484.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page conver-detail"},[_c('div',{staticClass:"top"},[_c('p',[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.expandDetail()}}},[_vm._v("详情")])]),_vm._v(" "),_c('div',{ref:"msgContent",staticClass:"content"},[_c('div',{ref:"msgList",staticClass:"msg-list"},_vm._l((_vm.msgList),function(msg,index){return _c('div',{key:index,staticClass:"msg-item"},[(msg.time)?_c('div',{staticClass:"time"},[_vm._v(_vm._s(msg.time))]):_vm._e(),_vm._v(" "),(msg.createUserId !== -1)?_c('div',{staticClass:"msg-inner",class:msg.selfFlag === 1 ? 'myself' : 'other-side'},[_c('div',{staticClass:"user"},[(msg.answererId === msg.createUserId && msg.createUserId === 0)?_c('img',{staticClass:"avatar",attrs:{"src":_vm.takerAvatar_1}}):(msg.answererId === msg.createUserId && msg.createUserId !== 0)?_c('img',{staticClass:"avatar",attrs:{"src":_vm.takerAvatar_2}}):_c('img',{staticClass:"avatar",attrs:{"src":msg.createUserImg || _vm.defaultAvatar}})]),_vm._v(" "),_c('div',{staticClass:"content",class:{'msg-w': msg.buttons && msg.selfFlag !== 1}},[(msg.createTime)?_c('span',{staticClass:"time"},[_vm._v(_vm._s(new Date(msg.createTime).getTime() ? _vm._Util.dateFormat(msg.createTime, 'yyyy-MM-dd hh:mm:ss'): msg.createTime))]):_vm._e(),_vm._v(" "),(msg.messageImg)?_c('img',{attrs:{"src":msg.messageImg},on:{"click":function($event){return _vm.imagePreview([msg.messageImg], 0)}}}):_vm._e(),_vm._v(" "),(false)?undefined:_vm._e(),_vm._v(" "),(!msg.messageImg)?_c('div',{staticClass:"msg"},[_c('p',{domProps:{"innerHTML":_vm._s(_vm.matchEmotion(msg.messageContent))}}),_vm._v(" "),(msg.buttons && msg.selfFlag !== 1)?[_c('div',{staticClass:"view-btn-bar"},_vm._l((msg.buttons),function(item,idx){return _c('span',{key:idx,staticClass:"view-btn",on:{"click":function($event){return _vm.editDescription(item)}}},[_vm._v(_vm._s(item.extraName))])}),0)]:_vm._e()],2):_vm._e(),_vm._v(" "),(msg.buttons && msg.selfFlag === 1)?_vm._l((msg.buttons),function(item,idx){return _c('div',{key:idx,staticClass:"modify",on:{"click":function($event){return _vm.editDescription(item)}}},[_vm._v(_vm._s(item.extraName))])}):_vm._e()],2)]):_vm._e(),_vm._v(" "),(msg.createUserId === -1)?_c('div',{staticClass:"msg-inner msg-tip-inner"},[(msg.createTime)?_c('p',{staticClass:"tip-time"},[_vm._v(_vm._s(_vm._Util.dateFormat(msg.createTime, 'yyyy-MM-dd hh:mm:ss')))]):_vm._e(),_vm._v(" "),_c('p',{staticClass:"tip-text"},[_vm._v(_vm._s(msg.messageContent)+"\n            "),(msg.buttons && msg.buttons.length > 0)?_c('span',{staticClass:"tip-btn",class:{'click': msg.buttons[0].extraEventFun !== 'cancelQuestion' || (msg.buttons[0].extraEventFun === 'cancelQuestion' && msg.status === 2)},on:{"click":function($event){return _vm.actionMsgTip(msg, index)}}},[_vm._v("\n              "+_vm._s(msg.buttons[0].extraName)+"\n            ")]):_vm._e()])]):_vm._e()])}),0),_vm._v(" "),(_vm.questionDetail.closeStatus === 1 && _vm.sendParams.questionerId === _vm.userId)?_c('div',{staticClass:"question-btn",on:{"click":function($event){return _vm.goLinkToPutQuestion()}}},[_vm._v("发起新的提问")]):_vm._e(),_vm._v(" "),(_vm.showMaskBox)?_c('div',{staticClass:"feedback-box"},[_c('p',{staticClass:"feedback-top"},[_vm._v("这个问题解决了吗？")]),_vm._v(" "),_c('div',{staticClass:"feedback-bottom"},[_c('div',{staticClass:"feedback-btn btn-1",on:{"click":function($event){return _vm.questionMark(6)}}},[_c('span',[_vm._v("未解决")])]),_vm._v(" "),_c('div',{staticClass:"feedback-btn btn-2",on:{"click":function($event){return _vm.questionMark(4)}}},[_c('span',[_vm._v("已解决")])])])]):_vm._e(),_vm._v(" "),(_vm.showRatingBox)?_c('div',{staticClass:"feedback-box"},[_c('p',{staticClass:"feedback-top"},[_vm._v("请对本次服务做出评价")]),_vm._v(" "),_c('div',{staticClass:"feedback-content"},[_c('div',{staticClass:"star-rating"},[_c('star-rating',{attrs:{"star-num":_vm.starNum},on:{"setStarNum":_vm.getStarNum}})],1)]),_vm._v(" "),(_vm.starNum > 0)?_c('div',{staticClass:"feedback-bottom"},[_c('div',{staticClass:"feedback-btn btn-2",on:{"click":function($event){return _vm.evaluateQuestion()}}},[_c('span',[_vm._v("确认")])])]):_vm._e()]):_vm._e()]),_vm._v(" "),_c('message-input',{attrs:{"initialize":_vm.initialize,"qn-info":_vm.qnInfo,"tool-status":_vm.toolStatus,"question-id":_vm.questionDetail.id},on:{"getMessage":_vm.getMessage,"closeQuestion":_vm.closeQuestion,"telephoneCommunication":_vm.telephoneCommunication,"elementClickEmit":_vm.elementClick}}),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.detailPopup),expression:"detailPopup"}],staticClass:"close-popup-btn",on:{"click":function($event){return _vm.shrinkDetail()}}}),_vm._v(" "),_c('van-popup',{staticClass:"popup-container detail-wrap",attrs:{"close-on-click-overlay":false,"position":"top"},model:{value:(_vm.detailPopup),callback:function ($$v) {_vm.detailPopup=$$v},expression:"detailPopup"}},[_c('div',{staticClass:"detail-top"},[_c('div',{staticClass:"detail-title"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(_vm.questionDetail.cashBounty > 0)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏: "+_vm._s(_vm.questionDetail.cashBounty)+"元")]):_vm._e()]),_vm._v(" "),(_vm.relatedInformation.sourceTitle && _vm.relatedInformation.sourceTitle !== '')?_c('div',{staticClass:"related-information",on:{"click":_vm.toRelatedInformation}},[_c('span',{staticClass:"arrow-r-icon"}),_vm._v(" "),_c('p',{staticClass:"label"},[_vm._v("关联资料:")]),_vm._v(" "),_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.relatedInformation.sourceTitle))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"detail-item-list"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[_c('div',{staticClass:"table"},[_c('div',{staticClass:"param"},[_c('span',[_vm._v("车辆品牌")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.vehicleText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("发动机")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.engineText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("ECU型号")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.ecuText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("排放阶段")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.dischargeStageName || '-'))])])])])]),_vm._v(" "),((_vm.questionDetail.faultSymptom && _vm.questionDetail.faultSymptom !== '') || (_vm.questionDetail.faultSymptomImg &&_vm.questionDetail.faultSymptomImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("详细描述")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultSymptomImg.length}},[(_vm.questionDetail.faultSymptom)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultSymptom))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultSymptomImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultSymptomImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.faultCode && _vm.questionDetail.faultCode !== '') || (_vm.questionDetail.faultCodeImg && _vm.questionDetail.faultCodeImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("故障码")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultCodeImg.length}},[(_vm.questionDetail.faultCode)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultCode))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultCodeImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultCodeImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.troubleShoot && _vm.questionDetail.troubleShoot !== '') || (_vm.questionDetail.troubleShootImg && _vm.questionDetail.troubleShootImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("已做排查")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.troubleShootImg.length}},[(_vm.questionDetail.troubleShoot)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.troubleShoot))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.troubleShootImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.troubleShootImg, index)}}})}),0)])]):_vm._e()])]),_vm._v(" "),(!_vm._Util.isApp() && !_vm._Util.isMPaaS())?_c('div',{staticClass:"ask-home",on:{"click":_vm.toAskHome}},[_c('img',{attrs:{"src":__webpack_require__(262),"alt":""}}),_vm._v("\n    问答"),_c('br'),_vm._v("首页\n  ")]):_vm._e(),_vm._v(" "),_c('van-popup',{style:({ 'height': '90%' }),attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.editPopup),callback:function ($$v) {_vm.editPopup=$$v},expression:"editPopup"}},[_c('div',{staticClass:"pop-box"},[_c('div',{staticClass:"title"},[_c('span',{on:{"click":function($event){_vm.editPopup = false}}},[_vm._v("关闭")]),_vm._v("\n        "+_vm._s(_vm.extraEventFun === 'modifyFaultCode'?'填写故障码':'已做排查')+"\n        "),_c('p',{on:{"click":_vm.confirm}},[_vm._v("确定")])]),_vm._v(" "),_c('div',{staticClass:"con"},[(_vm.extraEventFun === 'modifyFaultCode')?_c('div',{staticClass:"question-item"},[_c('van-field',{attrs:{"type":"textarea","placeholder":"请输入故障码，如：P0251"},model:{value:(_vm.faultCode),callback:function ($$v) {_vm.faultCode=$$v},expression:"faultCode"}}),_vm._v(" "),_c('div',{staticClass:"pic",on:{"click":function($event){return _vm.siteCurrentItem(1)}}},[_c('van-uploader',{attrs:{"preview-full-image":false,"after-read":_vm.upload},on:{"delete":_vm.deleteImg,"click-preview":_vm.previewImg},model:{value:(_vm.faultCodePicList),callback:function ($$v) {_vm.faultCodePicList=$$v},expression:"faultCodePicList"}},[_c('span',{staticClass:"upload-btn"})])],1)],1):_vm._e(),_vm._v(" "),(_vm.extraEventFun === 'modifyTroubleShoot')?_c('div',{staticClass:"question-item"},[_c('van-field',{attrs:{"type":"textarea","placeholder":"请描述做了哪些排查"},model:{value:(_vm.checkDescription),callback:function ($$v) {_vm.checkDescription=$$v},expression:"checkDescription"}}),_vm._v(" "),_c('div',{staticClass:"pic",on:{"click":function($event){return _vm.siteCurrentItem(2)}}},[_c('van-uploader',{attrs:{"preview-full-image":false,"after-read":_vm.upload},on:{"delete":_vm.deleteImg,"click-preview":_vm.previewImg},model:{value:(_vm.checkDescriptionPicList),callback:function ($$v) {_vm.checkDescriptionPicList=$$v},expression:"checkDescriptionPicList"}},[_c('span',{staticClass:"upload-btn"})])],1)],1):_vm._e()])])]),_vm._v(" "),_c('van-popup',{staticClass:"feedback-popup",attrs:{"position":"center","round":true,"close-on-click-overlay":false},model:{value:(_vm.showMarkPopup),callback:function ($$v) {_vm.showMarkPopup=$$v},expression:"showMarkPopup"}},[_c('div',{staticClass:"popup-content"},[_c('span',{staticClass:"close-icon",on:{"click":function($event){return _vm.closeMarkPopup()}}}),_vm._v(" "),_c('div',{staticClass:"content-middle"},[_c('p',{staticClass:"content-text"},[_vm._v("这个问题解决了吗？")])]),_vm._v(" "),_c('div',{staticClass:"content-bottom hairline"},[_c('span',{staticClass:"btn btn-1",on:{"click":function($event){return _vm.questionMark(6)}}},[_vm._v("未解决")]),_vm._v(" "),_c('span',{staticClass:"btn btn-2 hairline",on:{"click":function($event){return _vm.questionMark(4)}}},[_vm._v("已解决")])])])]),_vm._v(" "),_c('van-popup',{staticClass:"feedback-popup active-marking",attrs:{"position":"center","round":true,"close-on-click-overlay":false},model:{value:(_vm.showActiveMarkPopup),callback:function ($$v) {_vm.showActiveMarkPopup=$$v},expression:"showActiveMarkPopup"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"content-middle"},[_c('p',{staticClass:"content-text"},[_vm._v("这个问题解决了吗？")]),_vm._v(" "),_c('div',{staticClass:"mark-box"},_vm._l((_vm.markList),function(item,index){return _c('div',{key:index,staticClass:"mark-cell",on:{"click":function($event){return _vm.selectCheckbox(item.value)}}},[_c('i',{staticClass:"checkbox",class:{'checked': _vm.markVal === item.value}}),_c('span',{staticClass:"label"},[_vm._v(_vm._s(item.name))])])}),0),_vm._v(" "),_c('p',{staticClass:"mark-tip"},[_vm._v("注：确定后问题将会关闭，不可继续沟通")])]),_vm._v(" "),_c('div',{staticClass:"content-bottom hairline"},[_c('span',{staticClass:"btn",on:{"click":function($event){_vm.showActiveMarkPopup = false}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"btn btn-2 hairline",on:{"click":function($event){return _vm.activeMark()}}},[_vm._v("确定")])])])]),_vm._v(" "),_c('van-popup',{staticClass:"feedback-popup",attrs:{"position":"center","round":true,"close-on-click-overlay":false},model:{value:(_vm.showCancelQuestionPopup),callback:function ($$v) {_vm.showCancelQuestionPopup=$$v},expression:"showCancelQuestionPopup"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"content-middle"},[_c('p',{staticClass:"content-text"},[_vm._v("确定要取消本次提问吗")]),_vm._v(" "),_c('p',{staticClass:"content-sub-text"},[_vm._v("取消后，悬赏将退回至钱包")])]),_vm._v(" "),_c('div',{staticClass:"content-bottom hairline"},[_c('span',{staticClass:"btn",on:{"click":function($event){_vm.showCancelQuestionPopup = false}}},[_vm._v("再等等")]),_vm._v(" "),_c('span',{staticClass:"btn btn-2 hairline",on:{"click":function($event){return _vm.cancelQuestion()}}},[_vm._v("确定取消")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(339);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cc01176c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(940);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2175)
  __webpack_require__(2177)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-cc01176c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cc01176c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cc01176c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dispatching_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2176);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3a47b5bc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-dialog__message{padding:0;font-size:.85rem;line-height:1.35rem;color:#666;margin-top:.6rem;padding-bottom:1.4rem;width:83%;margin-left:8.5%}.van-button--default{height:2.45rem;color:#333}.van-button--default .van-button__text{font-size:.9rem}.van-dialog__confirm{color:#177afa}.countdownNum .num .van-count-down{font-size:1.3rem;font-weight:600;line-height:1.3rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2178);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4fec85aa", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".dispatching[data-v-cc01176c]{color:#333;padding-top:4.6rem}.dispatching .ask-btn[data-v-cc01176c]{width:6rem;height:1.8rem;text-indent:.45rem;position:fixed;z-index:20;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);bottom:3.45rem;border-radius:1.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#177afa;font:14px/1 PingFangSC-Regular}.dispatching .ask-btn img[data-v-cc01176c]{width:.3rem;height:.5rem;margin-left:.3rem}.dispatching .mod-countdownBox[data-v-cc01176c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative;height:6.4rem;margin-bottom:1rem}.dispatching .mod-countdownBox .countdownNum[data-v-cc01176c]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center}.dispatching .mod-countdownBox .countdownNum .num[data-v-cc01176c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.dispatching .mod-countdownBox .countdownNum .num .subText[data-v-cc01176c]{font-size:.7rem;font-weight:400}.dispatching .mod-countdownBox .countdownNum .text[data-v-cc01176c]{font-size:.6rem;color:#999}.dispatching .mod-disTips[data-v-cc01176c]{margin-bottom:6rem}.dispatching .mod-disTips p[data-v-cc01176c]{text-align:center}.dispatching .mod-disTips p.p1[data-v-cc01176c]{font-size:.75rem;color:#999;margin-bottom:.8rem}.dispatching .mod-disTips p.p2[data-v-cc01176c]{font-size:.85rem}.dispatching .mod-expertCard[data-v-cc01176c]{width:17.15rem;height:9.35rem;box-shadow:0 .2rem 1rem 0 rgba(189,195,213,.29);border-radius:.3rem;margin:0 auto}.dispatching .mod-expertCard .expertCard-title[data-v-cc01176c]{background-color:#f5f5f5;height:2.3rem;border-radius:.3rem .3rem 0 0;font-size:.8rem;font-weight:400;line-height:2.3rem;padding-left:.6rem}.dispatching .mod-expertCard .expertCard-title span[data-v-cc01176c]{color:#ff691d}.dispatching .mod-expertCard .con[data-v-cc01176c]{padding:1.2rem 1.5rem 1rem}.dispatching .mod-expertCard .con .tips-title[data-v-cc01176c]{text-align:center;height:1.45rem;font-size:1.05rem;font-weight:600;line-height:1.45rem;margin-bottom:1.4rem}.dispatching .mod-expertCard .con .btn-box[data-v-cc01176c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.dispatching .mod-expertCard .con .btn-box>div[data-v-cc01176c]{width:6.4rem;height:2rem;border-radius:1.1rem;border:.03rem solid #177afa;text-align:center;line-height:2rem;box-sizing:content-box;font-size:.75rem}.dispatching .mod-expertCard .con .btn-box .btn-l[data-v-cc01176c]{border:1px solid #177afa;color:#177afa}.dispatching .mod-expertCard .con .btn-box .btn-r[data-v-cc01176c]{background-color:#177afa;color:#fff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(799);
var _circle = _interopRequireDefault(__webpack_require__(800));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'Dispatching',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _circle.default.name, _circle.default), _dialog.default.name, _dialog.default), _countDown.default.name, _countDown.default), _toast.default.name, _toast.default),
  data: function data() {
    return {
      time: 0,
      // 倒计时时间
      rate: 0,
      // 环形进度条
      currentRate: 0,
      // 环形进度条当前进度
      cardInfo: {
        vos: null
      },
      // 加速卡
      havaExpertCard: false,
      havaExpertCardBtn: false,
      questionVo: {
        currentTimeStamp: 0,
        deliveryEndTime: 0,
        deliveryStartTime: 0
      },
      mqttData: {
        optType: -1,
        pushNums: '已将本问题通知给了 396 人',
        dialogs: []
      },
      isShowGoConversation: false,
      dialogsId: 0
    };
  },
  watch: {
    isShowGoConversation: function isShowGoConversation(val) {
      var me = this;
      if (val) {
        var timer = setTimeout(function () {
          me.goConversation();
          _dialog.default.close();
        }, 5000);
        _dialog.default.alert({
          message: '派单成功，已有人接单',
          confirmButtonText: "\u786E\u8BA4(5s)"
        }).then(function () {
          me.goConversation();
          clearTimeout(timer);
        });
      }
    }
  },
  computed: {
    text: function text() {
      return this.currentRate.toFixed(0) + '%';
    }
  },
  created: function created() {
    var _this = this;
    // 获取问问题详情
    this.getQuestionDetail();
    // 获取专家卡信息
    this.getQaQuestionCardData();
    // 推送消息
    var userId = localStorage.getItem('userId');
    var questionId = this.$route.query.questionId || null;
    setTimeout(function () {
      console.log('this._MQTT', _this._MQTT);
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(userId), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(userId), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(userId), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(userId), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: userId,
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问题详情页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
      // 订阅消息人数
      _this._MQTT.subscribe("restService/delivery/".concat(userId, "/").concat(questionId), {
        qos: 1
      });
      _this._MQTT.on("restService/delivery/".concat(userId, "/").concat(questionId), function (message) {
        _this.mqttData = message;
        console.log('this.mqttData', _this.mqttData);
        if (_this.mqttData.optType === 2) {
          _this.isShowGoConversation = true;
          _this.dialogsId = _this.mqttData.dialogs[0].id;
        }
        // console.log('this.isShowGoConversation', this.isShowGoConversation)
        // if (this.isShowGoConversation) {
        //
        // }
      });
    }, 500);
  },
  methods: {
    goConversation: function goConversation() {
      var me = this;
      // 问题会话
      if (me._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversationV13' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(me.questionVo.questionNo, "&id=").concat(me.dialogsId)
          }
        });
      } else {
        me.$router.push({
          name: 'conversationV13',
          query: {
            questionNo: me.questionVo.questionNo,
            id: me.dialogsId
          }
        });
      }
    },
    isShowHavaExpert: function isShowHavaExpert() {
      this.havaExpertCardBtn = false;
      this.havaExpertCard = true;
    },
    /**
     * 直连卡显示逻辑
     */
    havaExpertCardFn: function havaExpertCardFn() {
      var _this2 = this;
      this.$route.query.isIndexIn = this.$route.query.isIndexIn || 0;
      if (this.$route.query.isIndexIn * 1 === 1) {
        this.havaExpertCard = true;
        return;
      }
      clearInterval(setTimeoutTimer);
      var setTimeoutTimer = setTimeout(function () {
        _this2.havaExpertCard = true;
      }, 5000);
    },
    /**
     * 使用加速卡
     */
    useAcceleratorCard: function useAcceleratorCard() {
      this._Util.post(this._Api.USE_ACCELERATOR_CARD, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        if (data.type === 0) {
          (0, _toast.default)(data.msg);
          return;
        }
        (0, _toast.default)('使用加速卡成功');
        // this.goConversation()
      }, function () {}, this);
    },
    /**
     * 倒计时
     */
    countdownFn: function countdownFn() {
      console.log(this.currentRate, 'sdsd');
      var me = this;
      var count = 0;
      // console.log(this.questionVo)
      var deliveryStartTime = me.questionVo.deliveryStartTime;
      var deliveryEndTime = me.questionVo.deliveryEndTime;
      // 计算总秒数
      var diffhd = deliveryEndTime - deliveryStartTime; // 时间差的毫秒数
      me.time = deliveryEndTime - new Date().getTime() + 1000;
      var seconds = Math.floor(diffhd / 1000);
      function timeView() {
        var currentTimeStamp = new Date().getTime();
        // 计算活动结束时间跟当前时间的差值
        var diffseconds = deliveryEndTime - currentTimeStamp;
        var timeStr = diffseconds / seconds / 1000 * 100;
        timeStr = Math.round(timeStr);
        me.currentRate = timeStr;
        // me.rate = timeStr
        if (timeStr <= 0) {
          clearInterval(setIntervalTimer);
        }
      }
      var setIntervalTimer = setInterval(function () {
        timeView();
      }, 1000);
      // function fixed() {
      //   count++
      //   let offset = new Date().getTime() - (startTime + count * 1000);
      //   let nextTime = 1000 - offset;
      //   if (nextTime < 0) nextTime = 0;
      //   setTimeout(fixed, nextTime);
      //   console.log(new Date().getTime() - (startTime + count * 1000));
      // }
      // setTimeout(fixed, 1000);
    },
    /**
     *消息监听订阅
     */
    MQTTSubscribe: function MQTTSubscribe() {},
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this3 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        _this3.questionVo = data.vo;
        _this3.countdownFn();
      }, function () {}, this);
    },
    /**
     * 获取加速卡
     */
    getQaQuestionCardData: function getQaQuestionCardData() {
      var _this4 = this;
      this._Util.post(this._Api.GET_QA_QUESTION_CARD_DATA, {}, function (data) {
        _this4.cardInfo.vos = data.vos;
        if (_this4.cardInfo.vos && _this4.cardInfo.vos.length > 0) {
          // 倒计时5s显示专家卡
          _this4.havaExpertCardFn();
        }
      }, function () {}, this);
    }
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/delivery/".concat(localStorage.getItem('userId'), "/").concat(this.$route.query.questionId || null));
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  }
};__webpack_require__(26);
__webpack_require__(2024);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2025);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("d384ce30", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-circle{position:relative;display:inline-block;width:100px;height:100px;text-align:center}.van-circle svg{position:absolute;top:0;left:0;width:100%;height:100%}.van-circle__layer{stroke:#fff}.van-circle__hover{fill:none;stroke:#1989fa;stroke-linecap:round}.van-circle__text{position:absolute;top:50%;left:0;box-sizing:border-box;width:100%;padding:0 4px;color:#323233;font-weight:500;font-size:14px;line-height:20px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/circle/index.css"],"names":[],"mappings":"AAAA,YAAY,kBAAkB,qBAAqB,YAAY,aAAa,iBAAiB,CAAC,gBAAgB,kBAAkB,MAAM,OAAO,WAAW,WAAW,CAAC,mBAAmB,WAAW,CAAC,mBAAmB,UAAU,eAAe,oBAAoB,CAAC,kBAAkB,kBAAkB,QAAQ,OAAO,sBAAsB,WAAW,cAAc,cAAc,gBAAgB,eAAe,iBAAiB,mCAAmC,0BAA0B,CAAC","file":"index.css","sourcesContent":[".van-circle{position:relative;display:inline-block;width:100px;height:100px;text-align:center}.van-circle svg{position:absolute;top:0;left:0;width:100%;height:100%}.van-circle__layer{stroke:#fff}.van-circle__hover{fill:none;stroke:#1989fa;stroke-linecap:round}.van-circle__text{position:absolute;top:50%;left:0;box-sizing:border-box;width:100%;padding:0 4px;color:#323233;font-weight:500;font-size:14px;line-height:20px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}"],"sourceRoot":""}]);

// exports


exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _raf = __webpack_require__(165);

var _createNamespace = (0, _utils.createNamespace)('circle'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var PERIMETER = 3140;
var uid = 0;

function format(rate) {
  return Math.min(Math.max(rate, 0), 100);
}

function getPath(clockwise, viewBoxSize) {
  var sweepFlag = clockwise ? 1 : 0;
  return "M " + viewBoxSize / 2 + " " + viewBoxSize / 2 + " m 0, -500 a 500, 500 0 1, " + sweepFlag + " 0, 1000 a 500, 500 0 1, " + sweepFlag + " 0, -1000";
}

var _default = createComponent({
  props: {
    text: String,
    size: [Number, String],
    color: [String, Object],
    layerColor: String,
    strokeLinecap: String,
    value: {
      type: Number,
      default: 0
    },
    speed: {
      type: [Number, String],
      default: 0
    },
    fill: {
      type: String,
      default: 'none'
    },
    rate: {
      type: [Number, String],
      default: 100
    },
    strokeWidth: {
      type: [Number, String],
      default: 40
    },
    clockwise: {
      type: Boolean,
      default: true
    }
  },
  beforeCreate: function beforeCreate() {
    this.uid = "van-circle-gradient-" + uid++;
  },
  computed: {
    style: function style() {
      var size = (0, _utils.addUnit)(this.size);
      return {
        width: size,
        height: size
      };
    },
    path: function path() {
      return getPath(this.clockwise, this.viewBoxSize);
    },
    viewBoxSize: function viewBoxSize() {
      return +this.strokeWidth + 1000;
    },
    layerStyle: function layerStyle() {
      return {
        fill: "" + this.fill,
        stroke: "" + this.layerColor,
        strokeWidth: this.strokeWidth + "px"
      };
    },
    hoverStyle: function hoverStyle() {
      var offset = PERIMETER * this.value / 100;
      return {
        stroke: "" + (this.gradient ? "url(#" + this.uid + ")" : this.color),
        strokeWidth: +this.strokeWidth + 1 + "px",
        strokeLinecap: this.strokeLinecap,
        strokeDasharray: offset + "px " + PERIMETER + "px"
      };
    },
    gradient: function gradient() {
      return (0, _utils.isObject)(this.color);
    },
    LinearGradient: function LinearGradient() {
      var _this = this;

      var h = this.$createElement;

      if (!this.gradient) {
        return;
      }

      var Stops = Object.keys(this.color).sort(function (a, b) {
        return parseFloat(a) - parseFloat(b);
      }).map(function (key, index) {
        return h("stop", {
          "key": index,
          "attrs": {
            "offset": key,
            "stop-color": _this.color[key]
          }
        });
      });
      return h("defs", [h("linearGradient", {
        "attrs": {
          "id": this.uid,
          "x1": "100%",
          "y1": "0%",
          "x2": "0%",
          "y2": "0%"
        }
      }, [Stops])]);
    }
  },
  watch: {
    rate: {
      handler: function handler(rate) {
        this.startTime = Date.now();
        this.startRate = this.value;
        this.endRate = format(rate);
        this.increase = this.endRate > this.startRate;
        this.duration = Math.abs((this.startRate - this.endRate) * 1000 / this.speed);

        if (this.speed) {
          (0, _raf.cancelRaf)(this.rafId);
          this.rafId = (0, _raf.raf)(this.animate);
        } else {
          this.$emit('input', this.endRate);
        }
      },
      immediate: true
    }
  },
  methods: {
    animate: function animate() {
      var now = Date.now();
      var progress = Math.min((now - this.startTime) / this.duration, 1);
      var rate = progress * (this.endRate - this.startRate) + this.startRate;
      this.$emit('input', format(parseFloat(rate.toFixed(1))));

      if (this.increase ? rate < this.endRate : rate > this.endRate) {
        this.rafId = (0, _raf.raf)(this.animate);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem(),
      "style": this.style
    }, [h("svg", {
      "attrs": {
        "viewBox": "0 0 " + this.viewBoxSize + " " + this.viewBoxSize
      }
    }, [this.LinearGradient, h("path", {
      "class": bem('layer'),
      "style": this.layerStyle,
      "attrs": {
        "d": this.path
      }
    }), h("path", {
      "attrs": {
        "d": this.path
      },
      "class": bem('hover'),
      "style": this.hoverStyle
    })]), this.slots() || this.text && h("div", {
      "class": bem('text')
    }, [this.text])]);
  }
});

exports.default = _default;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dispatching"},[_c('div',{staticClass:"mod-countdownBox"},[_c('van-circle',{attrs:{"rate":_vm.rate,"size":"6.4rem","stroke-width":"70","layer-color":"#ebedf0","text":""},model:{value:(_vm.currentRate),callback:function ($$v) {_vm.currentRate=$$v},expression:"currentRate"}}),_vm._v(" "),_c('div',{staticClass:"countdownNum"},[_c('div',{staticClass:"num"},[_c('van-count-down',{attrs:{"time":_vm.time,"format":"ss"}}),_c('div',{staticClass:"subText"},[_vm._v(" s")])],1),_vm._v(" "),_c('p',{staticClass:"text"},[_vm._v("倒计时")])])],1),_vm._v(" "),_c('div',{staticClass:"mod-disTips"},[_c('p',{staticClass:"p1"},[_vm._v("系统正在派单中，请稍后…")]),_vm._v(" "),(_vm.mqttData.optType === 1)?_c('p',{staticClass:"p2"},[_vm._v(_vm._s(_vm.mqttData.pushNums))]):_vm._e()]),_vm._v(" "),(_vm.cardInfo.vos && _vm.cardInfo.vos.length && _vm.havaExpertCardBtn)?_c('div',{staticClass:"ask-btn",style:({'bottom': _vm._Util.isApp() ? '1rem' : '3.45rem'}),on:{"click":function($event){return _vm.isShowHavaExpert()}}},[_vm._v("\n    直连专家卡"),_c('img',{attrs:{"src":__webpack_require__(118),"alt":""}})]):_vm._e(),_vm._v(" "),(_vm.cardInfo.vos && _vm.cardInfo.vos.length> 0 && _vm.havaExpertCard)?_c('div',{staticClass:"mod-expertCard"},[_c('h2',{staticClass:"expertCard-title"},[_vm._v("\n      你的直连专家卡剩余："),_c('span',[_vm._v(_vm._s(_vm.cardInfo.vos[0].cardNum)+" 张")])]),_vm._v(" "),_c('div',{staticClass:"con"},[_c('p',{staticClass:"tips-title"},[_vm._v("需要直连专家吗？")]),_vm._v(" "),_c('div',{staticClass:"btn-box"},[_c('div',{staticClass:"btn-l",on:{"click":function($event){_vm.havaExpertCard = false, _vm.havaExpertCardBtn = true}}},[_vm._v("暂不需要")]),_vm._v(" "),_c('div',{staticClass:"btn-r",on:{"click":function($event){return _vm.useAcceleratorCard()}}},[_vm._v("立即直连")])])])]):_vm._e()])}
var staticRenderFns = []
__webpack_require__(26);
__webpack_require__(131);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(340);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bd0ea0e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(941);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2179)
  __webpack_require__(2181)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2bd0ea0e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bd0ea0e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bd0ea0e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2180);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3d7e0402", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-cell:after{display:none}.que-content .van-pull-refresh{overflow:auto}.que-content .que-list .van-list__finished-text,.que-content .que-list .van-list__placeholder{margin-left:-.6rem}.que-content .van-overlay{background-color:rgba(0,0,0,.3)}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2182);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("91490c5c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-2bd0ea0e]{font-family:PingFangSC-Regular,PingFang SC}[class*=hairline][data-v-2bd0ea0e]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.separate[data-v-2bd0ea0e]{width:100%;height:.3rem;background-color:#f4f5f6}.page[data-v-2bd0ea0e]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.que-top[data-v-2bd0ea0e]{position:relative}.que-top .meta-wrap[data-v-2bd0ea0e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3.45rem;padding:0 .8rem}.que-top .meta-wrap .meta[data-v-2bd0ea0e]{width:3.8rem}.que-top .meta-wrap .meta span[data-v-2bd0ea0e]{display:block;line-height:1;font-size:.6rem;color:#999}.que-top .meta-wrap .meta span.num[data-v-2bd0ea0e]{margin-top:1rem;margin-bottom:.25rem;line-height:1rem;font-size:1rem;font-weight:600;color:#333}.que-top .meta-wrap .meta span em[data-v-2bd0ea0e]{line-height:.6rem;font-size:.6rem;font-weight:600}.que-top .filter[data-v-2bd0ea0e]{position:relative}.que-top .filter .filter-btn[data-v-2bd0ea0e]{position:absolute;bottom:.6rem;right:.6rem;font-size:.7rem;color:#177afa;line-height:1rem}.que-top .filter .filter-btn .filter-icon[data-v-2bd0ea0e]{display:inline-block;width:.65rem;height:.63rem;margin-right:.35rem;margin-top:-.15rem;background-image:url(" + escape(__webpack_require__(1392)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;vertical-align:middle}.que-top .filter .filter-box .filter-list[data-v-2bd0ea0e]{position:absolute;top:1rem;right:.6rem;width:7.5rem;padding:.1rem 0;border-radius:.4rem;background-color:#fff;overflow:hidden;z-index:1002}.que-top .filter .filter-box .filter-list .filter-item[data-v-2bd0ea0e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.1rem;padding:0 .6rem 0 1rem}.que-top .filter .filter-box .filter-list .filter-item span[data-v-2bd0ea0e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;line-height:1rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.que-top .filter .filter-box .filter-list .filter-item.selected[data-v-2bd0ea0e]:after{display:inline-block;content:\"\";width:.7rem;height:.5rem;background-image:url(" + escape(__webpack_require__(173)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.null-result[data-v-2bd0ea0e]{margin-top:2rem;margin-left:-.6rem;text-align:center;color:#999;font-size:.7rem}.que-container[data-v-2bd0ea0e]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.que-content[data-v-2bd0ea0e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.que-list[data-v-2bd0ea0e]{position:relative;padding-left:.6rem;overflow-y:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.que-list .que-item[data-v-2bd0ea0e]{position:relative;padding:.6rem .6rem .6rem 0}.que-list .que-item[data-v-2bd0ea0e]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.que-list .que-item .item-cell[data-v-2bd0ea0e]{line-height:1}.que-list .que-item .item-cell span[data-v-2bd0ea0e]{display:inline-block;margin-right:.6rem}.que-list .que-item .item-cell .status[data-v-2bd0ea0e]{line-height:1.05rem;font-size:.75rem;color:#999}.que-list .que-item .item-cell .status.status1[data-v-2bd0ea0e]{color:#fb5f5f}.que-list .que-item .item-cell .time[data-v-2bd0ea0e]{position:absolute;top:0;right:0;margin-right:0;font-size:.65rem;color:#999;line-height:1.05rem}.que-list .que-item .item-cell .tag[data-v-2bd0ea0e]{margin-right:.6rem;font-size:.65rem;color:#999;line-height:.9rem}.que-list .que-item .item-title[data-v-2bd0ea0e]{margin-top:.4rem;margin-bottom:.2rem;font-size:.9rem;font-weight:600;color:#333;line-height:1.25rem;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.order-list[data-v-2bd0ea0e]{position:relative;overflow-y:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.order-list .order-item[data-v-2bd0ea0e]{padding:0 0 0 3.8rem;height:4.2rem}.order-list .order-item .van-cell__value[data-v-2bd0ea0e]{overflow:initial}.order-list .order-item .avatar[data-v-2bd0ea0e]{position:absolute;top:.8rem;left:-3.2rem;width:2.6rem;height:2.6rem;border-radius:.3rem;overflow:hidden}.order-list .order-item .info[data-v-2bd0ea0e]{height:100%;padding-right:.6rem;position:relative;overflow:hidden}.order-list .order-item .info[data-v-2bd0ea0e]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.order-list .order-item .info .item-cell[data-v-2bd0ea0e]{margin:.9rem 0 .2rem}.order-list .order-item .info .item-cell .name[data-v-2bd0ea0e]{max-width:4rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.85rem;line-height:1.2rem;color:#333}.order-list .order-item .info .item-cell .status[data-v-2bd0ea0e]{position:absolute;top:1.15rem;right:.6rem;font-size:.65rem;line-height:.9rem;color:#a2a2a2}.order-list .order-item .info .item-cell .status.status1[data-v-2bd0ea0e]{color:#fb5f5f}.order-list .order-item .info .title[data-v-2bd0ea0e]{font-size:.75rem;line-height:1.05rem;color:#666;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.popup-container[data-v-2bd0ea0e]{width:16.35rem}.popup-container.vip-popup[data-v-2bd0ea0e]{text-align:center}.popup-container.vip-popup img[data-v-2bd0ea0e]{display:inline-block;width:3rem;margin-bottom:1rem;vertical-align:top}.popup-container.vip-popup p[data-v-2bd0ea0e]{font-size:.9rem}.popup-container .popup-content[data-v-2bd0ea0e]{padding:1.4rem 1rem}.popup-container .popup-toolbar[data-v-2bd0ea0e]{width:100%;-ms-flex-align:center}.popup-container .popup-toolbar[data-v-2bd0ea0e],.popup-container .popup-toolbar span[data-v-2bd0ea0e]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.popup-container .popup-toolbar span[data-v-2bd0ea0e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem;color:#333}.popup-container .popup-toolbar span[data-v-2bd0ea0e]:before{top:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.popup-container .popup-toolbar span.confirm-btn[data-v-2bd0ea0e]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top[data-v-2bd0ea0e]{height:2.75rem;background-color:#f6f6f6;border-radius:.5rem .5rem 0 0}.popup-container .popup-toolbar.popup-toolbar-top[data-v-2bd0ea0e]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-toolbar.popup-toolbar-top span[data-v-2bd0ea0e]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding:0 .8rem;font-size:.7rem;color:#666}.popup-container .popup-toolbar.popup-toolbar-top span.confirm-btn[data-v-2bd0ea0e]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top .title[data-v-2bd0ea0e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;text-align:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-2bd0ea0e]{position:relative;width:100%;height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-2bd0ea0e]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.tabs[data-v-2bd0ea0e]{margin:0 .3rem}.tabs .tab-item[data-v-2bd0ea0e]{position:relative;display:inline-block;height:2.45rem;padding:0 .5rem}.tabs .tab-item .item-inner[data-v-2bd0ea0e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit}.tabs .tab-item span[data-v-2bd0ea0e]{line-height:1.05rem;font-size:.75rem;color:#999}.tabs .tab-item.active[data-v-2bd0ea0e]:after{display:block;content:\"\";position:absolute;bottom:-.1rem;left:50%;margin-left:-.5rem;width:1rem;height:.2rem;background-color:#177afa;border-radius:.1rem;z-index:2}.tabs .tab-item.active span[data-v-2bd0ea0e]{font-weight:600;font-size:.9rem;color:#333}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/filter_icon.cbf7aa4.png";module.exports = __webpack_require__.p + "static/img/checkbox_selected.540b783.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(311);
var _overlay = _interopRequireDefault(__webpack_require__(199));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
__webpack_require__(206);
var _pullRefresh = _interopRequireDefault(__webpack_require__(207));
var _vant = __webpack_require__(12);
var _msgDialog = _interopRequireDefault(__webpack_require__(171));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _pullRefresh.default.name, _pullRefresh.default), _list.default.name, _list.default), _cell.default.name, _cell.default), _overlay.default.name, _overlay.default), _popup.default.name, _popup.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      activeType: 0,
      activeIdx: 0,
      tabs: [{
        name: '全部',
        flag: 0
      }, {
        name: '进行中',
        flag: 5
      }, {
        name: '已结束',
        flag: 6
      }],
      dialogMsg: {},
      showFilterMask: false,
      // 筛选层
      queFilterStatus: 0,
      // 我的提问筛选
      orderFilterStatus: 0,
      // 我的接单筛选
      filterStatusText: '全部',
      cardFlag: localStorage.getItem('cardFlag') || null,
      pageNum: 1,
      // 提问当前页
      unAcceptNum: 0,
      acceptNumQue: 0,
      // 已采纳数
      adoptionRatesQue: 0,
      // 采纳率
      totalQue: 0,
      // 提问问题数
      acceptNumOrder: 0,
      //  已解决数
      adoptionRatesOrder: 0,
      //  解决率
      totalOrder: 0,
      // 接单问题数
      fliterList: [{
        status: 0,
        name: '全部'
      }, {
        status: 2,
        name: '派单中'
      }, {
        status: 3,
        name: '未采纳'
      }, {
        status: 4,
        name: '已采纳'
      }, {
        status: null,
        name: '历史在线问答'
      }],
      // 筛选条件
      questionList: [],
      // 我的提问列表
      queRefreshing: false,
      queListLoading: false,
      queFinished: false,
      queFinishedText: '',
      pageNum1: 1,
      // 接单当前页
      orderList: [],
      // 我的接单列表
      orderListLoading: false,
      orderFinished: false,
      orderRefreshing: false,
      orderFinishedText: '',
      showJoinVipPopup: false
    };
  },
  created: function created() {
    var _this = this;
    this.activeType = Number(this.$route.query.type) || 1;
    this.activeType === 1 ? document.title = '全部问题' : document.title = '我的接单';
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      console.log('_MQTT');
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('全部问题页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 切换Tab
     */
    switchTab: function switchTab(item, index) {
      this.activeIdx = index;
      this.orderFilterStatus = item.flag;
      this.getOrderList('refresh');
    },
    /**
     * 我的提问列表
     * @param {Number} type 列表标识 1我的提问 2我的接单
     * @param {Number} status 问题状态 0全部 2 待接单 3 已接单（去采纳）4已采纳
     */
    getQuestionList: function getQuestionList(type) {
      var _this2 = this;
      if (type === 'refresh') {
        this.pageNum = 1;
        this.questionList = [];
        this.queFinished = false;
        this.queListLoading = true;
      }
      if (this.queRefreshing) {
        this.pageNum = 1;
        this.questionList = [];
        this.queRefreshing = false;
      }
      this._Util.post(this._Api.GET_QA_MY_QUESTION, {
        cardFlag: this.cardFlag,
        pageFlag: 1,
        status: this.queFilterStatus,
        pageNum: this.pageNum,
        pageSize: 10
      }, function (data) {
        _this2.acceptNumQue = data.acceptNum;
        _this2.unAcceptNum = data.unAcceptNum;
        _this2.adoptionRatesQue = data.adoptionRates;
        _this2.totalQue = data.total;
        var list = data.questionVo.dataList || [];
        if (list.length > 0) {
          list.forEach(function (ele) {
            switch (ele.status) {
              case 2:
                ele.statusVal = '派单中';
                break;
              case 3:
                ele.statusVal = '未采纳';
                break;
              case 4:
                ele.statusVal = '已采纳';
                break;
              case 5:
                ele.statusVal = '超时取消';
                break;
              case 6:
                ele.statusVal = '未采纳';
                break;
              default:
                ele.statusVal = '';
            }
            ele.tag1 = ele.vehicleBrandName && ele.vehicleModeName ? "".concat(ele.vehicleBrandName, " ").concat(ele.vehicleModeName) : ele.vehicleBrandName && !ele.vehicleModeName ? "".concat(ele.vehicleBrandName) : null;
            ele.tag2 = ele.engineBrandName && ele.engineModeName ? "".concat(ele.engineBrandName, " ").concat(ele.engineModeName) : ele.engineBrandName && !ele.engineModeName ? "".concat(ele.engineBrandName) : null;
            ele.tag3 = ele.ecuBrandName && ele.ecuModeName ? "".concat(ele.ecuBrandName, " ").concat(ele.ecuModeName) : ele.ecuBrandName && !ele.ecuModeName ? "".concat(ele.ecuBrandName) : null;
          });
        }
        _this2.questionList = _this2.questionList.concat(list);
        _this2.pageNum++;
        _this2.queListLoading = false;
        if (list.length < 10) {
          _this2.queFinished = true;
          _this2.queFinishedText = '到底啦 ^_^';
          if (list.length === 0 && _this2.questionList.length === 0) {
            _this2.queFinishedText = '暂无数据';
          }
        }
      }, function () {}, this);
    },
    /**
     * 我的接单列表
     */
    getOrderList: function getOrderList(type) {
      var _this3 = this;
      if (type === 'refresh') {
        this.orderFinished = false;
        this.orderListLoading = true;
        this.pageNum1 = 1;
        this.orderList = [];
      }
      if (this.orderRefreshing) {
        this.pageNum1 = 1;
        this.orderList = [];
        this.orderRefreshing = false;
      }
      this._Util.post(this._Api.GET_QA_MY_QUESTION, {
        pageFlag: 2,
        status: this.orderFilterStatus,
        pageNum: this.pageNum1,
        pageSize: 10
      }, function (data) {
        _this3.acceptNumOrder = data.acceptNum;
        _this3.adoptionRatesOrder = data.adoptionRates;
        _this3.totalOrder = data.total;
        var list = data.dialogueVo.dataList || [];
        if (list.length > 0) {
          list.forEach(function (ele) {
            switch (ele.status) {
              case 3:
                ele.statusVal = '未采纳';
                break;
              case 4:
                ele.statusVal = '已采纳';
                break;
              default:
                ele.statusVal = '';
            }
          });
        }
        _this3.orderList = _this3.orderList.concat(list);
        _this3.pageNum1++;
        _this3.orderListLoading = false;
        if (list.length < 10) {
          _this3.orderFinished = true;
          _this3.orderFinishedText = '到底啦 ^_^';
          if (list.length === 0 && _this3.orderList.length === 0) {
            _this3.orderFinishedText = '暂无数据';
          }
        }
      }, function () {}, this);
    },
    /**
     * 打开筛选弹框
     */
    openFilter: function openFilter() {
      this.showFilterMask = true;
    },
    /**
     * 筛选
     */
    selectFilter: function selectFilter(item, type) {
      this.cardFlag = null;
      localStorage.removeItem('cardFlag');
      this.showFilterMask = false;
      if (!item.status && item.status !== 0) {
        if (this.$store.state.userInfo.userStatus !== 2) {
          this.showJoinVipPopup = true;
          return;
        }
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'externalPage2',
              url: location.origin + '/v3/carRep/onLineQuestion/questionList'
            }
          });
        } else {
          location.href = location.origin + '/v3/carRep/onLineQuestion/questionList';
        }
      } else {
        if (type === 'order') {
          this.orderFilterStatus = item.status;
          this.getOrderList('refresh');
        }
        if (type === 'que') {
          this.queFilterStatus = item.status;
          this.getQuestionList('refresh');
        }
        this.filterStatusText = item.name;
      }
    },
    /**
     * 问题详情
     */
    questionDetail: function questionDetail(item) {
      if (item.status === 2 || !!item.dialogId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'conversationV13' + new Date().getTime(),
              url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.dialogId, "&ascription=questioner")
            }
          });
        } else {
          this.$router.push({
            name: 'conversationV13',
            query: {
              questionNo: item.questionNo,
              id: item.dialogId,
              ascription: 'questioner'
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'questionDetails',
              url: "".concat(location.origin, "/v2/questionsOrAnswers/questionDetails?questionNo=").concat(item.questionNo)
            }
          });
        } else {
          this.$router.push({
            name: 'questionDetails',
            query: {
              questionNo: item.questionNo
            }
          });
        }
      }
    },
    /**
     * 进入问题会话
     */
    toConCversation: function toConCversation(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversationV13',
            url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id, "&ascription=answer")
          }
        });
      } else {
        this.$router.push({
          name: 'conversationV13',
          query: {
            questionNo: item.questionNo,
            id: item.id,
            ascription: 'answer'
          }
        });
      }
    },
    /**
     * 开通会员
     */
    closeVipPopup: function closeVipPopup(type) {
      this.showJoinVipPopup = false;
      if (type === 'confirm') {
        location.href = location.origin + '/v2/business/pay/certificationRenewal?userStatus=' + this.$store.state.userInfo.userStatus;
      }
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text && text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text && text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    }
  }
};__webpack_require__(26);
__webpack_require__(74);
__webpack_require__(2006);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2007);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3650f8aa", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-pull-refresh{overflow:hidden;-webkit-user-select:none;user-select:none}.van-pull-refresh__track{position:relative;height:100%;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:50px;overflow:hidden;color:#969799;font-size:14px;line-height:50px;text-align:center;-webkit-transform:translateY(-100%);transform:translateY(-100%)}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/pull-refresh/index.css"],"names":[],"mappings":"AAAA,kBAAkB,gBAAgB,yBAAyB,gBAAgB,CAAC,yBAAyB,kBAAkB,YAAY,8CAA8C,sCAAsC,8BAA8B,+CAA+C,CAAC,wBAAwB,kBAAkB,OAAO,WAAW,YAAY,gBAAgB,cAAc,eAAe,iBAAiB,kBAAkB,oCAAoC,2BAA2B,CAAC","file":"index.css","sourcesContent":[".van-pull-refresh{overflow:hidden;-webkit-user-select:none;user-select:none}.van-pull-refresh__track{position:relative;height:100%;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:50px;overflow:hidden;color:#969799;font-size:14px;line-height:50px;text-align:center;-webkit-transform:translateY(-100%);transform:translateY(-100%)}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _event = __webpack_require__(59);

var _scroll = __webpack_require__(89);

var _touch = __webpack_require__(103);

var _loading = _interopRequireDefault(__webpack_require__(91));

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('pull-refresh'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1],
    t = _createNamespace[2];

var DEFAULT_HEAD_HEIGHT = 50;
var TEXT_STATUS = ['pulling', 'loosing', 'success'];

var _default = createComponent({
  mixins: [_touch.TouchMixin],
  props: {
    disabled: Boolean,
    successText: String,
    pullingText: String,
    loosingText: String,
    loadingText: String,
    pullDistance: [Number, String],
    value: {
      type: Boolean,
      required: true
    },
    successDuration: {
      type: [Number, String],
      default: 500
    },
    animationDuration: {
      type: [Number, String],
      default: 300
    },
    headHeight: {
      type: [Number, String],
      default: DEFAULT_HEAD_HEIGHT
    }
  },
  data: function data() {
    return {
      status: 'normal',
      distance: 0,
      duration: 0
    };
  },
  computed: {
    touchable: function touchable() {
      return this.status !== 'loading' && this.status !== 'success' && !this.disabled;
    },
    headStyle: function headStyle() {
      if (this.headHeight !== DEFAULT_HEAD_HEIGHT) {
        return {
          height: this.headHeight + "px"
        };
      }
    }
  },
  watch: {
    value: function value(loading) {
      this.duration = this.animationDuration;

      if (loading) {
        this.setStatus(+this.headHeight, true);
      } else if (this.slots('success') || this.successText) {
        this.showSuccessTip();
      } else {
        this.setStatus(0, false);
      }
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$refs.track);
    this.scrollEl = (0, _scroll.getScroller)(this.$el);
  },
  methods: {
    checkPullStart: function checkPullStart(event) {
      this.ceiling = (0, _scroll.getScrollTop)(this.scrollEl) === 0;

      if (this.ceiling) {
        this.duration = 0;
        this.touchStart(event);
      }
    },
    onTouchStart: function onTouchStart(event) {
      if (this.touchable) {
        this.checkPullStart(event);
      }
    },
    onTouchMove: function onTouchMove(event) {
      if (!this.touchable) {
        return;
      }

      if (!this.ceiling) {
        this.checkPullStart(event);
      }

      this.touchMove(event);

      if (this.ceiling && this.deltaY >= 0 && this.direction === 'vertical') {
        (0, _event.preventDefault)(event);
        this.setStatus(this.ease(this.deltaY));
      }
    },
    onTouchEnd: function onTouchEnd() {
      var _this = this;

      if (this.touchable && this.ceiling && this.deltaY) {
        this.duration = this.animationDuration;

        if (this.status === 'loosing') {
          this.setStatus(+this.headHeight, true);
          this.$emit('input', true); // ensure value change can be watched

          this.$nextTick(function () {
            _this.$emit('refresh');
          });
        } else {
          this.setStatus(0);
        }
      }
    },
    ease: function ease(distance) {
      var pullDistance = +(this.pullDistance || this.headHeight);

      if (distance > pullDistance) {
        if (distance < pullDistance * 2) {
          distance = pullDistance + (distance - pullDistance) / 2;
        } else {
          distance = pullDistance * 1.5 + (distance - pullDistance * 2) / 4;
        }
      }

      return Math.round(distance);
    },
    setStatus: function setStatus(distance, isLoading) {
      var status;

      if (isLoading) {
        status = 'loading';
      } else if (distance === 0) {
        status = 'normal';
      } else {
        status = distance < (this.pullDistance || this.headHeight) ? 'pulling' : 'loosing';
      }

      this.distance = distance;

      if (status !== this.status) {
        this.status = status;
      }
    },
    genStatus: function genStatus() {
      var h = this.$createElement;
      var status = this.status,
          distance = this.distance;
      var slot = this.slots(status, {
        distance: distance
      });

      if (slot) {
        return slot;
      }

      var nodes = [];
      var text = this[status + "Text"] || t(status);

      if (TEXT_STATUS.indexOf(status) !== -1) {
        nodes.push(h("div", {
          "class": bem('text')
        }, [text]));
      }

      if (status === 'loading') {
        nodes.push(h(_loading.default, {
          "attrs": {
            "size": "16"
          }
        }, [text]));
      }

      return nodes;
    },
    showSuccessTip: function showSuccessTip() {
      var _this2 = this;

      this.status = 'success';
      setTimeout(function () {
        _this2.setStatus(0);
      }, this.successDuration);
    }
  },
  render: function render() {
    var h = arguments[0];
    var trackStyle = {
      transitionDuration: this.duration + "ms",
      transform: this.distance ? "translate3d(0," + this.distance + "px, 0)" : ''
    };
    return h("div", {
      "class": bem()
    }, [h("div", {
      "ref": "track",
      "class": bem('track'),
      "style": trackStyle
    }, [h("div", {
      "class": bem('head'),
      "style": this.headStyle
    }, [this.genStatus()]), this.slots()])]);
  }
});

exports.default = _default;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"que-container"},[_c('div',{staticStyle:{"height":"100%"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeType === 1),expression:"activeType === 1"}],staticClass:"que-content"},[_c('div',{staticClass:"que-top"},[_c('div',{staticClass:"meta-wrap"},[_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.totalQue))]),_c('span',[_vm._v("总提问")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.unAcceptNum))]),_c('span',[_vm._v("未采纳")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.acceptNumQue))]),_c('span',[_vm._v("已采纳")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.adoptionRatesQue)),_c('em',[_vm._v("%")])]),_c('span',[_vm._v("采纳率")])])]),_vm._v(" "),_c('div',{staticClass:"filter"},[_c('div',{staticClass:"filter-btn",on:{"click":function($event){return _vm.openFilter()}}},[_c('i',{staticClass:"filter-icon"}),_vm._v("筛选")]),_vm._v(" "),_c('div',{staticClass:"filter-box"},[_c('van-overlay',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilterMask),expression:"showFilterMask"}],attrs:{"z-index":"1000"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilterMask),expression:"showFilterMask"}],staticClass:"filter-list"},_vm._l((_vm.fliterList),function(f,index){return _c('div',{key:index,staticClass:"filter-item",class:{'selected' : _vm.queFilterStatus === f.status},on:{"click":function($event){return _vm.selectFilter(f, 'que')}}},[_c('span',[_vm._v(_vm._s(f.name))])])}),0)],1)])]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"que-list"},[_c('van-pull-refresh',{staticStyle:{"height":"100%"},attrs:{"loading-text":"正在刷新..."},on:{"refresh":function($event){return _vm.getQuestionList('refresh')}},model:{value:(_vm.queRefreshing),callback:function ($$v) {_vm.queRefreshing=$$v},expression:"queRefreshing"}},[_c('van-list',{attrs:{"finished":_vm.queFinished,"offset":"10","finished-text":_vm.queFinishedText},on:{"load":function($event){return _vm.getQuestionList('load')}},model:{value:(_vm.queListLoading),callback:function ($$v) {_vm.queListLoading=$$v},expression:"queListLoading"}},_vm._l((_vm.questionList),function(item,index){return _c('van-cell',{key:index,staticClass:"que-item hairline",on:{"click":function($event){return _vm.questionDetail(item)}}},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"status",class:{'status1': item.status === 4}},[_vm._v(_vm._s(item.statusVal))]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(item.createTimeValue))])]),_vm._v(" "),_c('p',{staticClass:"item-title"},[_vm._v(_vm._s(item.questionTitle))]),_vm._v(" "),_c('div',{staticClass:"item-cell"},[(item.tag1)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag1))]):_vm._e(),(item.tag2)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag2))]):_vm._e(),(item.tag3)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag3))]):_vm._e()])])}),1)],1)],1)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeType === 2),expression:"activeType === 2"}],staticClass:"que-content"},[_c('div',{staticClass:"que-top"},[_c('div',{staticClass:"meta-wrap"},[_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.totalOrder))]),_c('span',[_vm._v("总接单")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.acceptNumOrder))]),_c('span',[_vm._v("被采纳")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.adoptionRatesOrder)),_c('em',[_vm._v("%")])]),_c('span',[_vm._v("解决率")])])])]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"order-list"},[_c('div',{staticClass:"tabs"},_vm._l((_vm.tabs),function(tab,index){return _c('div',{key:index,staticClass:"tab-item",class:{'active': _vm.activeIdx === index},on:{"click":function($event){return _vm.switchTab(tab, index)}}},[_c('div',{staticClass:"item-inner"},[_c('span',[_vm._v(_vm._s(tab.name))])])])}),0),_vm._v(" "),_c('van-pull-refresh',{staticStyle:{"height":"100%"},attrs:{"loading-text":"正在刷新..."},on:{"refresh":function($event){return _vm.getOrderList('refresh')}},model:{value:(_vm.orderRefreshing),callback:function ($$v) {_vm.orderRefreshing=$$v},expression:"orderRefreshing"}},[_c('van-list',{attrs:{"finished":_vm.orderFinished,"offset":"10","finished-text":_vm.orderFinishedText},on:{"load":function($event){return _vm.getOrderList('load')}},model:{value:(_vm.orderListLoading),callback:function ($$v) {_vm.orderListLoading=$$v},expression:"orderListLoading"}},_vm._l((_vm.orderList),function(item,index){return _c('van-cell',{key:index,staticClass:"order-item",on:{"click":function($event){return _vm.toConCversation(item)}}},[(item.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":item.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info hairline"},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.uname))]),_vm._v(" "),_c('span',{staticClass:"status",class:{'status1': item.status === 4}},[_vm._v(_vm._s(item.statusVal))])]),_vm._v(" "),_c('p',{staticClass:"title",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.messageContent))}})])])}),1)],1)],1)])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container vip-popup",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.showJoinVipPopup),callback:function ($$v) {_vm.showJoinVipPopup=$$v},expression:"showJoinVipPopup"}},[_c('div',{staticClass:"popup-content"},[_c('img',{attrs:{"src":__webpack_require__(1393)}}),_vm._v(" "),_c('p',[_vm._v("很抱歉，在线问答目前只对付费会员开放，请先完成付费")])]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeVipPopup('close')}}},[_vm._v("暂不开通")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeVipPopup('confirm')}}},[_vm._v("开通会员")])])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/vip_icon.7b679e9.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(341);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_64a1be07_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(942);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2183)
  __webpack_require__(2185)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-64a1be07"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_64a1be07_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_64a1be07_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2184);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("14f04162", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-switch--on .van-switch__node{-webkit-transform:translateX(1rem)!important;-ms-transform:translateX(1rem)!important;transform:translateX(1rem)!important}.van-picker-column__item{font-size:.9rem;color:#999}.van-picker-column__item--selected{font-size:1.1rem;color:#333;font-weight:600}.van-dialog.put-que-set{width:89.3%;border-radius:.4rem}.van-dialog.put-que-set .van-dialog__header{padding-top:1.6rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.van-dialog.put-que-set .van-dialog__message{padding:0;font-size:.85rem;line-height:1.35rem;color:#666;margin-top:.6rem;padding-bottom:1.4rem;width:83%;margin-left:8.5%}.van-dialog.put-que-set .van-button--default{height:2.45rem;color:#333}.van-dialog.put-que-set .van-button--default .van-button__text{font-size:.9rem}.van-dialog.put-que-set .van-dialog__confirm{color:#177afa}.van-dialog.put-que-set .van-dialog__cancel{color:#ff3f3f}.setting .van-switch{width:2.2rem;height:1.2rem;border:none}.setting .van-switch .van-switch__node{width:.9rem;height:.9rem;top:.15rem;left:.15rem;box-shadow:none}.reward-amount-popup .van-cell{padding:0 .2rem;background-color:transparent}.reward-amount-popup .van-cell input{font-size:.85rem}.reward-amount-popup .van-cell input::-webkit-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input:-ms-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input::placeholder{font-size:.85rem;color:#999}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2186);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3e06e227", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-popup[data-v-64a1be07]{overflow:inherit}.van-popup--center.van-popup--round[data-v-64a1be07]{border-radius:.5rem}.van-popup--bottom.van-popup--round[data-v-64a1be07]{border-radius:.5rem .5rem 0 0}[class*=hairline][data-v-64a1be07]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-64a1be07]{font-family:PingFangSC-Regular,PingFang SC}.page[data-v-64a1be07]{overflow:auto}.ask-set[data-v-64a1be07]{min-height:100%;background:#f4f5f6;padding-bottom:1.2rem}.separate[data-v-64a1be07]{width:100%;height:.3rem;background-color:#f4f5f6}.setting[data-v-64a1be07]{background:#fff}.setting .setting-item[data-v-64a1be07]{position:relative;height:2.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .6rem}.setting .setting-item img[data-v-64a1be07]{display:inline-block;width:1.2rem;height:1.2rem;margin-right:.4rem;border-radius:.2rem;background-color:#fb985f;overflow:hidden}.setting .setting-item p[data-v-64a1be07]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;color:#333}.setting .setting-item span[data-v-64a1be07]{font-size:.7rem;color:#999;margin-right:.4rem}.settings-wrap[data-v-64a1be07]{background:#f4f5f6;padding:1.2rem .5rem 0}.settings-wrap .head h2[data-v-64a1be07]{font-size:1rem;font-weight:600;color:#333;line-height:1.4rem}.settings-wrap .head p[data-v-64a1be07]{margin-top:.2rem;color:#666;font:14px/1rem PingFangSC-Regular}.settings-wrap .head p span[data-v-64a1be07]{color:#177afa;padding:0 .2rem}.settings-wrap .settings-que-list .item[data-v-64a1be07]{background:#fff;margin-top:.6rem;border-radius:.3rem;padding:.8rem .6rem .2rem}.settings-wrap .settings-que-list .item.no-margin[data-v-64a1be07]{margin:0;border-radius:0 0 .3rem .3rem}.settings-wrap .settings-que-list .item.border-bottom[data-v-64a1be07]{border-radius:.3rem .3rem 0 0}.settings-wrap .settings-que-list .item h3[data-v-64a1be07]{font-size:.8rem;font-weight:600;color:#333;line-height:1.1rem;position:relative}.settings-wrap .settings-que-list .item h3[data-v-64a1be07]:after{content:\"\";position:absolute;width:3px;height:.65rem;top:.2rem;left:-.6rem;background:#1b7ffa;border-radius:2px}.settings-wrap .settings-que-list .item .option-wrap[data-v-64a1be07]{margin-top:.6rem;font-size:0}.settings-wrap .settings-que-list .item .option-wrap .option-1[data-v-64a1be07]{position:relative;display:inline-block;padding:.4rem .5rem;margin-right:.6rem;margin-bottom:.6rem;line-height:1;border:.03rem solid #d3d4d5;border-radius:.2rem;font-size:.7rem;color:#999;white-space:nowrap}.settings-wrap .settings-que-list .item .option-wrap .option-1[data-v-64a1be07]:last-child{margin-right:0}.settings-wrap .settings-que-list .item .option-wrap .option-1.active[data-v-64a1be07]{border-color:#177afa;color:#177afa}.settings-wrap .settings-que-list .item .option-wrap .option-1 em[data-v-64a1be07]{display:block;position:absolute;left:50%;bottom:-1rem;width:.83rem;height:.83rem;background:#f3f4f5;-webkit-transform:translate(-50%) rotate(45deg);-ms-transform:translate(-50%) rotate(45deg);transform:translate(-50%) rotate(45deg)}.settings-wrap .settings-que-list .item .option-wrap .option-1 i[data-v-64a1be07]{font-size:.6rem}.settings-wrap .settings-que-list .item .tip[data-v-64a1be07]{position:relative;margin-top:-.27rem;background-color:#f3f4f5;border-radius:.2rem;margin-bottom:.6rem}.settings-wrap .settings-que-list .item .tip .tip-inner[data-v-64a1be07]{position:relative;min-height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.25rem .6rem .25rem .43rem;z-index:2}.settings-wrap .settings-que-list .item .tip .tip-inner p[data-v-64a1be07]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-right:1rem;font-size:.7rem;color:#333;font-weight:400;line-height:1.2rem}.settings-wrap .settings-que-list .item .tip .tip-inner .answer[data-v-64a1be07]{font-size:.7rem;color:#333;font-weight:400;line-height:1.2rem}.settings-wrap .settings-que-list .item .tip .tip-inner .close-icon[data-v-64a1be07]{position:absolute;top:0;right:0;display:inline-block;width:.7rem;height:.7rem;padding:1rem;background-image:url(" + escape(__webpack_require__(180)) + ");background-position:50%;background-repeat:no-repeat;background-size:.7rem .7rem}.settings-wrap .settings-que-list .item .tip.call-tip span[data-v-64a1be07]{font-size:.7rem;color:#177afa}.settings-wrap .settings-que-list .item .tip.call-tip span[data-v-64a1be07]:after{display:inline-block;content:\"\";width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(118)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.accept-mode[data-v-64a1be07]{border-radius:.3rem;background:#fff;padding:.8rem .6rem;margin:1.2rem .6rem 0}.accept-mode .setting-item[data-v-64a1be07]{padding:0;height:1.2rem}.accept-mode .tip[data-v-64a1be07]{margin-top:.3rem;color:#666;font:14px/1rem PingFangSC-Regular}.popup-container[data-v-64a1be07]{width:16.35rem}.popup-container.popup-container-1[data-v-64a1be07]{width:100%}.popup-container.qrcode[data-v-64a1be07]{width:89.3%;overflow:unset}.popup-container.qrcode .popup-content[data-v-64a1be07]{padding:1.2rem 1.1rem 2.7rem}.popup-container.qrcode .popup-content .img-box[data-v-64a1be07]{position:relative}.popup-container.qrcode .popup-content .img-box .bg[data-v-64a1be07]{width:100%;height:auto}.popup-container.qrcode .popup-content .img-box .qrcode[data-v-64a1be07]{position:absolute;width:6rem;height:6rem;top:2.6rem;left:50%;z-index:10000;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.popup-container.qrcode .popup-content p[data-v-64a1be07]{margin-top:.5rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold;text-align:center}.popup-container.qrcode .popup-content .tip[data-v-64a1be07]{text-align:center;margin-top:.3rem;color:#666;font:17px/1.25rem PingFangSC-Regular}.popup-container.qrcode .popup-content .close-btn[data-v-64a1be07]{position:absolute;top:-3.5rem;right:-1.1rem;width:1.6rem;height:1.6rem;z-index:100}.popup-container .popup-content[data-v-64a1be07]{padding:1.4rem 1rem}.popup-container .popup-content .form-cell[data-v-64a1be07]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.4rem;padding:0 .6rem;background-color:#f3f4f5;border-radius:.2rem}.popup-container .popup-content .form-cell .label[data-v-64a1be07]{margin-right:.6rem;font-size:.85rem;color:#333;line-height:1}.popup-container .popup-content .form-cell .value[data-v-64a1be07]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-content .form-cell .value input[data-v-64a1be07]{display:inline-block;width:100%;font-size:.85rem;color:#333}.popup-container .popup-content .form-cell .value input[data-v-64a1be07]::-webkit-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-64a1be07]:-ms-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-64a1be07]::placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input.text-center[data-v-64a1be07]{text-align:center}.popup-container .popup-content .form-cell .value input.text-right[data-v-64a1be07]{text-align:right}.popup-container .popup-content .form-cell .value span[data-v-64a1be07]{margin-left:.2rem;line-height:1;font-size:.85rem;color:#333}.popup-container .popup-content.brand-content[data-v-64a1be07]{height:23.43rem;padding:0;overflow-y:auto}.popup-container .popup-content.brand-content .brand-list[data-v-64a1be07]{padding:.2rem 0 0 3.1rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-64a1be07]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:1.8rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-64a1be07]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .brand-list .brand-item.selected .brand-name[data-v-64a1be07]{color:#177afa}.popup-container .popup-content.brand-content .brand-list .brand-item.selected[data-v-64a1be07]:after{display:inline-block;content:\"\";position:absolute;right:.8rem;width:.7rem;height:.48rem;background-image:url(" + escape(__webpack_require__(173)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-icon[data-v-64a1be07]{position:absolute;top:.6rem;left:-2.2rem;display:inline-block;width:1.6rem;height:1.6rem;vertical-align:top;overflow:hidden;background-color:#f3f4f5}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-name[data-v-64a1be07]{display:block;width:100%;font-size:.9rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popup-container .popup-content.brand-content .selected-brand[data-v-64a1be07]{position:relative;padding:.6rem 0 .25rem}.popup-container .popup-content.brand-content .selected-brand[data-v-64a1be07]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .selected-brand .selected-item[data-v-64a1be07]{display:inline-block;height:1.4rem;margin-left:.8rem;margin-bottom:.35rem;background-color:#f5f5f5;border-radius:.2rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-64a1be07]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;padding:0 .4rem 0 .6rem;color:#333;font-size:.7rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-64a1be07]:after{display:inline-block;content:\"\";width:.6rem;height:.6rem;margin-left:.6rem;background-image:url(" + escape(__webpack_require__(180)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.popup-container .popup-toolbar[data-v-64a1be07]{width:100%;-ms-flex-align:center}.popup-container .popup-toolbar[data-v-64a1be07],.popup-container .popup-toolbar span[data-v-64a1be07]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.popup-container .popup-toolbar span[data-v-64a1be07]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem;color:#333}.popup-container .popup-toolbar span[data-v-64a1be07]:before{top:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.popup-container .popup-toolbar span.confirm-btn[data-v-64a1be07]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top[data-v-64a1be07]{height:2.75rem;background-color:#f6f6f6;border-radius:.5rem .5rem 0 0}.popup-container .popup-toolbar.popup-toolbar-top[data-v-64a1be07]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-toolbar.popup-toolbar-top span[data-v-64a1be07]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding:0 .8rem;font-size:.7rem;color:#666}.popup-container .popup-toolbar.popup-toolbar-top span.confirm-btn[data-v-64a1be07]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top .title[data-v-64a1be07]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;text-align:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-64a1be07]{position:relative;width:100%;height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-64a1be07]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.time-notice[data-v-64a1be07]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.time-notice .divide-insignia[data-v-64a1be07]{margin:0 1.2rem;font-size:.9rem}.time-notice .time-notice-item[data-v-64a1be07]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/close_answer_icon.7ec3750.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(1394);
var _datetimePicker = _interopRequireDefault(__webpack_require__(1395));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(259);
var _switch = _interopRequireDefault(__webpack_require__(260));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
var _vant = __webpack_require__(12);
var _msgDialog = _interopRequireDefault(__webpack_require__(171));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _field.default.name, _field.default), _switch.default.name, _switch.default), _popup.default.name, _popup.default), _datetimePicker.default.name, _datetimePicker.default), _toast.default.name, _toast.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      dialogMsg: {},
      weChartStatus: false,
      openNoticeFlag: 0,
      questionList: [],
      // 设置问题列表
      currentItem: {},
      // 当前设置项索引
      cashSettingPopup: false,
      // 悬赏金额弹窗
      rewardAmount: null,
      starBounty: null,
      inputObj: {
        label: '',
        placeholder: '请输入',
        unit: '',
        type: 'text'
      },
      // 当前设置项（输入框）
      saveParams: {},
      timeNotificationPopup: false,
      // 时间通知弹窗
      startNoticeTime: '09:00',
      // 开始通知时间
      endtNoticeTime: '20:00',
      // 结束通知时间
      brandPopup: false,
      // 品牌选择弹窗
      brandPopupTitle: '',
      // 品牌选择弹窗标题
      brandList: [],
      // 品牌集合
      brandSelectedList: [],
      // 已选品牌集合
      acceptMode: true,
      showQrCodePop: false,
      // 是否显示小轨在线二维码
      qrImg: ''
    };
  },
  created: function created() {
    var _this = this;
    this.getCurrentNoticeFlag();
    this.getSquareNoticeParams();
    this.queryNoticeAndQrcode();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问答设置页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  mounted: function mounted() {
    document.title = '接单设置';
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 开启问答通知&开启广场的弹框 二维码及文案
     */
    queryNoticeAndQrcode: function queryNoticeAndQrcode() {
      var _this2 = this;
      var params = {};
      if (this._Util.isApp()) {
        params.source = 'app';
      } else {
        params.source = 'weixin';
      }
      params.sys_uid = localStorage.getItem('userId');
      params.code = 'ask_open_square';
      this._Util.post(this._Api.QUERY_NOTICE_AND_QRCODE, params, function (data) {
        var dataInfo = data.dataList[0];
        _this2.qrImg = dataInfo.pic_url;
      }, function () {}, this);
    },
    /**
     * 获取当前新消息通知状态
     */
    getCurrentNoticeFlag: function getCurrentNoticeFlag() {
      var _this3 = this;
      this._Util.post(this._Api.GET_CURRENT_NOTICE_FLAG, {}, function (data) {
        _this3.openNoticeFlag = data.openNoticeFlag;
        _this3.weChartStatus = data.openNoticeFlag !== 0;
        _this3.acceptMode = data.ordersMode === 1;
      }, function () {}, this, true);
    },
    /**
     * 开启/关闭新消息通知
     */
    changeOpenNoticeFlag: function changeOpenNoticeFlag() {
      var _this4 = this;
      this._Util.post(this._Api.CHANGE_OPEN_NOTICE_FLAG, {
        openNoticeFlag: this.openNoticeFlag === 1 ? 0 : 1
      }, function (data) {
        _this4.weChartStatus = !_this4.weChartStatus;
        _this4.getCurrentNoticeFlag();
      }, function () {}, this, true);
      this._Util.sensorsCollect('element_click', {
        operation_page: '问答',
        element_name: this.openNoticeFlag === 1 ? '关闭通知' : '开启通知',
        element_content: this.openNoticeFlag === 1 ? '关闭通知' : '开启通知',
        element_class_name: '',
        element_type: '',
        element_target_url: '',
        url: location.href,
        title: '问题抢单设置',
        moudle_type: '问答',
        correlation_id: ''
      });
    },
    /**
     * 开启/关闭接单模式
     */
    changeOpenNoticeFlag2: function changeOpenNoticeFlag2() {
      var _this5 = this;
      if (this.acceptMode) {
        _dialog.default.confirm({
          title: '关闭接单模式',
          message: '关闭后不再接收通知且不可在问题广场接单',
          confirmButtonText: '暂不关闭',
          cancelButtonText: '确认关闭',
          className: 'put-que-set'
        }).then(function () {
          console.log('暂不关闭');
        }).catch(function (err) {
          console.log(err);
          _this5.saveParams.ordersMode = 0;
          _this5._Util.post(_this5._Api.SAVE_SQUARE_NOTICE, _this5.saveParams, function (data) {
            _this5.getCurrentNoticeFlag();
          }, function () {}, _this5);
        });
      } else {
        this.saveParams.ordersMode = 1;
        this._Util.post(this._Api.SAVE_SQUARE_NOTICE, this.saveParams, function (data) {
          _this5.acceptMode = true;
        }, function () {}, this);
      }
    },
    /** 
     * 浏览单张图片
     */
    viewImage: function viewImage(imgUrl) {
      this.$store.commit('openImgView', imgUrl);
    },
    /**
     * 获取问答设置列表
     */
    getSquareNoticeParams: function getSquareNoticeParams() {
      var _this6 = this;
      this._Util.post(this._Api.GET_SQUARE_NOTICE_PARAMS, {}, function (data) {
        _this6.questionList = data;
      }, function () {}, this);
    },
    /**
     * 设置问答
     * item.model 5:现金悬赏 6：星豆悬赏
     */
    siteQAndAItem: function siteQAndAItem(item, i) {
      var _this7 = this;
      this.saveParams = {};
      this.currentItem = {
        idx: item.index,
        mode: item.mode,
        subIdx: i
      };
      // 自定义设置(悬赏金额)
      if (item.mode === 5) {
        if (i === 1) {
          this.inputObj = {
            label: item.modeDesc,
            placeholder: '请输入金额',
            unit: '元',
            type: 'digit',
            param: null
          };
          this.cashSettingPopup = true;
        } else {
          this.saveParams.cashBounty = -1;
          this.saveSquareNotice();
        }
      }
      // 自定义设置(悬赏星豆)
      if (item.mode === 6) {
        if (i === 1) {
          this.inputObj = {
            label: item.modeDesc,
            placeholder: '请输入星豆数',
            unit: '个',
            type: 'digit',
            param: null
          };
          this.cashSettingPopup = true;
        } else {
          this.saveParams.starBounty = -1;
          this.saveSquareNotice();
        }
      }
      // 车辆品牌、发动机品牌、ECU品牌、排放阶段
      if (item.mode === 1 || item.mode === 2 || item.mode === 3 || item.mode === 4) {
        this.brandList = [];
        if (i === 1) {
          this.brandPopupTitle = item.modeDesc;
          this.brandSelectedList = item.checkedVos || [];
          this.brandList = item.vos || [];
          if (this.brandList.length > 0) {
            this.brandList.forEach(function (item) {
              item.selected = false;
              if (_this7.brandSelectedList.length > 0) {
                _this7.brandSelectedList.forEach(function (t) {
                  if (t.id === item.id) {
                    item.selected = true;
                  }
                });
              }
            });
          }
          this.brandPopup = true;
        } else {
          if (item.mode === 1) {
            this.saveParams.vehicleBrandIds = -1;
            this.saveParams.vehicleBrandNames = '';
          }
          if (item.mode === 2) {
            this.saveParams.engineBrandIds = -1;
            this.saveParams.engineBrandNames = '';
          }
          if (item.mode === 3) {
            this.saveParams.ecuBrandIds = -1;
            this.saveParams.ecuBrandNames = '';
          }
          if (item.mode === 4) {
            this.saveParams.dischargeStageIds = -1;
            this.saveParams.dischargeStageNames = '';
          }
          this.saveSquareNotice();
        }
      }
      // 通知时间
      if (item.mode === 7) {
        if (i === 1) {
          this.timeNotificationPopup = true;
        } else {
          this.saveParams.timeFlag = 0;
          this.saveSquareNotice();
        }
      }
      if (item.mode === 8) {
        this.saveParams.communicMode = item.itemVos[i].itemIndex;
        this.saveSquareNotice();
      }
    },
    /**
     * 自定义悬赏金额,星豆
     */
    closeCashPopup: function closeCashPopup(type) {
      _toast.default.clear();
      if (type === 'confirm') {
        if (!this.inputObj.param || this.inputObj.param < 1 && this.currentItem.mode === 5) {
          (0, _toast.default)({
            message: '请输入金额',
            duration: 1500
          });
          return;
        }
        if (!this.inputObj.param || this.inputObj.param < 1 && this.currentItem.mode === 6) {
          (0, _toast.default)({
            message: '请输入星豆数',
            duration: 1500
          });
          return;
        }
        // 确认
        this.currentItem.mode === 5 ? this.saveParams.cashBounty = this.inputObj.param : null;
        this.currentItem.mode === 6 ? this.saveParams.starBounty = this.inputObj.param : null;
        this.saveSquareNotice();
      }
      this.cashSettingPopup = false;
    },
    /**
     * 自定义品牌
     */
    closeBrandPopup: function closeBrandPopup(type) {
      this.brandPopup = false;
      if (type === 'confirm') {
        var ids = [];
        var names = [];
        this.brandSelectedList.forEach(function (item) {
          ids.push(item.id);
          names.push(item.pathName);
        });
        if (this.currentItem.mode === 1) {
          this.saveParams.vehicleBrandIds = ids.join('、');
          this.saveParams.vehicleBrandNames = names.join('、');
        }
        if (this.currentItem.mode === 2) {
          this.saveParams.engineBrandIds = ids.join('、');
          this.saveParams.engineBrandNames = names.join('、');
        }
        if (this.currentItem.mode === 3) {
          this.saveParams.ecuBrandIds = ids.join('、');
          this.saveParams.ecuBrandNames = names.join('、');
        }
        if (this.currentItem.mode === 4) {
          this.saveParams.dischargeStageIds = ids.join('、');
          this.saveParams.dischargeStageNames = names.join('、');
        }
        this.saveSquareNotice();
      }
    },
    /**
     * 选择自定义品牌
     */
    selcteBrand: function selcteBrand(item) {
      item.selected = !item.selected;
      if (item.selected) {
        this.brandSelectedList.push(item);
      } else {
        this.brandSelectedList.splice(this.brandSelectedList.indexOf(item), 1);
      }
    },
    /**
     * 删除自定义品牌
     */
    deleteBrand: function deleteBrand(item) {
      this.brandSelectedList.splice(this.brandSelectedList.indexOf(item), 1);
      if (this.brandList.length > 0) {
        this.brandList.forEach(function (ele) {
          if (item.id === ele.id) {
            item.selected = false;
          }
        });
      }
    },
    /**
     * 自定义通知时间
     */
    closeTimeNotificationPopup: function closeTimeNotificationPopup(type) {
      this.timeNotificationPopup = false;
      if (type === 'confirm') {
        this.saveParams.timeFlag = 1;
        this.saveParams.startTime = this.startNoticeTime;
        this.saveParams.endTime = this.endtNoticeTime;
        this.saveSquareNotice();
      }
    },
    /**
     * 编辑问答设置
     */
    saveSquareNotice: function saveSquareNotice() {
      var _this8 = this;
      this.saveParams.ordersMode = this.acceptMode ? 1 : 0;
      this._Util.post(this._Api.SAVE_SQUARE_NOTICE, this.saveParams, function (data) {
        // 设置当前项选中
        _this8.questionList.forEach(function (item) {
          if (item.index === _this8.currentItem.idx && _this8.currentItem.subIdx === 0) {
            item.checkedVos = []; // 清空已选项
          }
          if (item.index === _this8.currentItem.idx && item.itemVos.length > 0) {
            item.itemVos.forEach(function (subItem, i) {
              subItem.selectFlag = _this8.currentItem.subIdx === i ? 1 : null;
            });
            item.itemValue = data;
          }
        });
      }, function () {}, this);
    },
    openCall: function openCall(url) {
      window.location.href = url;
    },
    blurInput: function blurInput() {
      window.scrollTo(0, document.documentElement.clientHeight);
    }
  }
};__webpack_require__(26);
__webpack_require__(74);
__webpack_require__(1378);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2026);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c6fe61b4", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-picker{position:relative;background-color:#fff;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:44px}.van-picker__cancel,.van-picker__confirm{height:100%;padding:0 16px;font-size:14px;background-color:transparent;border:none;cursor:pointer}.van-picker__cancel:active,.van-picker__confirm:active{opacity:.7}.van-picker__confirm{color:#576b95}.van-picker__cancel{color:#969799}.van-picker__title{max-width:50%;font-weight:500;font-size:16px;line-height:20px;text-align:center}.van-picker__columns{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#1989fa;background-color:rgba(255,255,255,.9)}.van-picker__frame{position:absolute;top:50%;right:16px;left:16px;z-index:2;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:-webkit-linear-gradient(top,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),-webkit-linear-gradient(bottom,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-repeat:no-repeat;background-position:top,bottom;-webkit-transform:translateZ(0);transform:translateZ(0);pointer-events:none}.van-picker-column{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;font-size:16px}.van-picker-column__wrapper{-webkit-transition-timing-function:cubic-bezier(.23,1,.68,1);transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding:0 4px;color:#000}.van-picker-column__item--disabled{cursor:not-allowed;opacity:.3}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/picker/index.css"],"names":[],"mappings":"AAAA,YAAY,kBAAkB,sBAAsB,yBAAyB,gBAAgB,CAAC,qBAAqB,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,yBAAyB,sCAAsC,8BAA8B,WAAW,CAAC,yCAAyC,YAAY,eAAe,eAAe,6BAA6B,YAAY,cAAc,CAAC,uDAAuD,UAAU,CAAC,qBAAqB,aAAa,CAAC,oBAAoB,aAAa,CAAC,mBAAmB,cAAc,gBAAgB,eAAe,iBAAiB,iBAAiB,CAAC,qBAAqB,kBAAkB,oBAAoB,qBAAqB,aAAa,WAAW,CAAC,qBAAqB,kBAAkB,MAAM,QAAQ,SAAS,OAAO,UAAU,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,cAAc,qCAAqC,CAAC,mBAAmB,kBAAkB,QAAQ,WAAW,UAAU,UAAU,mCAAmC,2BAA2B,mBAAmB,CAAC,kBAAkB,kBAAkB,MAAM,OAAO,UAAU,WAAW,YAAY,0JAA0J,2IAA2I,4BAA4B,+BAA+B,gCAAgC,wBAAwB,mBAAmB,CAAC,mBAAmB,mBAAmB,eAAe,OAAO,gBAAgB,cAAc,CAAC,4BAA4B,6DAA6D,oDAAoD,CAAC,yBAAyB,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,cAAc,UAAU,CAAC,mCAAmC,mBAAmB,UAAU,CAAC","file":"index.css","sourcesContent":[".van-picker{position:relative;background-color:#fff;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:44px}.van-picker__cancel,.van-picker__confirm{height:100%;padding:0 16px;font-size:14px;background-color:transparent;border:none;cursor:pointer}.van-picker__cancel:active,.van-picker__confirm:active{opacity:.7}.van-picker__confirm{color:#576b95}.van-picker__cancel{color:#969799}.van-picker__title{max-width:50%;font-weight:500;font-size:16px;line-height:20px;text-align:center}.van-picker__columns{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#1989fa;background-color:rgba(255,255,255,.9)}.van-picker__frame{position:absolute;top:50%;right:16px;left:16px;z-index:2;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:-webkit-linear-gradient(top,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),-webkit-linear-gradient(bottom,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-repeat:no-repeat;background-position:top,bottom;-webkit-transform:translateZ(0);transform:translateZ(0);pointer-events:none}.van-picker-column{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;font-size:16px}.van-picker-column__wrapper{-webkit-transition-timing-function:cubic-bezier(.23,1,.68,1);transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding:0 4px;color:#000}.van-picker-column__item--disabled{cursor:not-allowed;opacity:.3}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _TimePicker = _interopRequireDefault(__webpack_require__(2050));

var _DatePicker = _interopRequireDefault(__webpack_require__(2051));

var _createNamespace = (0, _utils.createNamespace)('datetime-picker'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  props: (0, _extends2.default)({}, _TimePicker.default.props, _DatePicker.default.props),
  methods: {
    // @exposed-api
    getPicker: function getPicker() {
      return this.$refs.root.getProxiedPicker();
    }
  },
  render: function render() {
    var h = arguments[0];
    var Component = this.type === 'time' ? _TimePicker.default : _DatePicker.default;
    return h(Component, {
      "ref": "root",
      "class": bem(),
      "scopedSlots": this.$scopedSlots,
      "props": (0, _extends2.default)({}, this.$props),
      "on": (0, _extends2.default)({}, this.$listeners)
    });
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _string = __webpack_require__(168);

var _number = __webpack_require__(167);

var _shared = __webpack_require__(1379);

var _createNamespace = (0, _utils.createNamespace)('time-picker'),
    createComponent = _createNamespace[0];

var _default = createComponent({
  mixins: [_shared.TimePickerMixin],
  props: (0, _extends2.default)({}, _shared.sharedProps, {
    minHour: {
      type: [Number, String],
      default: 0
    },
    maxHour: {
      type: [Number, String],
      default: 23
    },
    minMinute: {
      type: [Number, String],
      default: 0
    },
    maxMinute: {
      type: [Number, String],
      default: 59
    }
  }),
  computed: {
    ranges: function ranges() {
      return [{
        type: 'hour',
        range: [+this.minHour, +this.maxHour]
      }, {
        type: 'minute',
        range: [+this.minMinute, +this.maxMinute]
      }];
    }
  },
  watch: {
    filter: 'updateInnerValue',
    minHour: function minHour() {
      var _this = this;

      this.$nextTick(function () {
        _this.updateInnerValue();
      });
    },
    maxHour: function maxHour(value) {
      var _this$innerValue$spli = this.innerValue.split(':'),
          hour = _this$innerValue$spli[0],
          minute = _this$innerValue$spli[1];

      if (hour >= value) {
        this.innerValue = this.formatValue(value + ":" + minute);
        this.updateColumnValue();
      } else {
        this.updateInnerValue();
      }
    },
    minMinute: 'updateInnerValue',
    maxMinute: function maxMinute(value) {
      var _this$innerValue$spli2 = this.innerValue.split(':'),
          hour = _this$innerValue$spli2[0],
          minute = _this$innerValue$spli2[1];

      if (minute >= value) {
        this.innerValue = this.formatValue(hour + ":" + value);
        this.updateColumnValue();
      } else {
        this.updateInnerValue();
      }
    },
    value: function value(val) {
      val = this.formatValue(val);

      if (val !== this.innerValue) {
        this.innerValue = val;
        this.updateColumnValue();
      }
    }
  },
  methods: {
    formatValue: function formatValue(value) {
      if (!value) {
        value = (0, _string.padZero)(this.minHour) + ":" + (0, _string.padZero)(this.minMinute);
      }

      var _value$split = value.split(':'),
          hour = _value$split[0],
          minute = _value$split[1];

      hour = (0, _string.padZero)((0, _number.range)(hour, this.minHour, this.maxHour));
      minute = (0, _string.padZero)((0, _number.range)(minute, this.minMinute, this.maxMinute));
      return hour + ":" + minute;
    },
    updateInnerValue: function updateInnerValue() {
      var _this$getPicker$getIn = this.getPicker().getIndexes(),
          hourIndex = _this$getPicker$getIn[0],
          minuteIndex = _this$getPicker$getIn[1];

      var _this$originColumns = this.originColumns,
          hourColumn = _this$originColumns[0],
          minuteColumn = _this$originColumns[1];
      var hour = hourColumn.values[hourIndex] || hourColumn.values[0];
      var minute = minuteColumn.values[minuteIndex] || minuteColumn.values[0];
      this.innerValue = this.formatValue(hour + ":" + minute);
      this.updateColumnValue();
    },
    onChange: function onChange(picker) {
      var _this2 = this;

      this.updateInnerValue();
      this.$nextTick(function () {
        _this2.$nextTick(function () {
          // https://github.com/vant-ui/vant/issues/9775
          _this2.updateInnerValue();

          _this2.$emit('change', picker);
        });
      });
    },
    updateColumnValue: function updateColumnValue() {
      var _this3 = this;

      var formatter = this.formatter;
      var pair = this.innerValue.split(':');
      var values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
      this.$nextTick(function () {
        _this3.getPicker().setValues(values);
      });
    }
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.TimePickerMixin = exports.sharedProps = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(1380);

var _string = __webpack_require__(168);

var _shared = __webpack_require__(1369);

var _picker = _interopRequireDefault(__webpack_require__(791));

var sharedProps = (0, _extends2.default)({}, _shared.pickerProps, {
  value: null,
  filter: Function,
  columnsOrder: Array,
  showToolbar: {
    type: Boolean,
    default: true
  },
  formatter: {
    type: Function,
    default: function _default(type, value) {
      return value;
    }
  }
});
exports.sharedProps = sharedProps;
var TimePickerMixin = {
  data: function data() {
    return {
      innerValue: this.formatValue(this.value)
    };
  },
  computed: {
    originColumns: function originColumns() {
      var _this = this;

      return this.ranges.map(function (_ref) {
        var type = _ref.type,
            rangeArr = _ref.range;
        var values = (0, _utils.times)(rangeArr[1] - rangeArr[0] + 1, function (index) {
          var value = (0, _string.padZero)(rangeArr[0] + index);
          return value;
        });

        if (_this.filter) {
          values = _this.filter(type, values);
        }

        return {
          type: type,
          values: values
        };
      });
    },
    columns: function columns() {
      var _this2 = this;

      return this.originColumns.map(function (column) {
        return {
          values: column.values.map(function (value) {
            return _this2.formatter(column.type, value);
          })
        };
      });
    }
  },
  watch: {
    columns: 'updateColumnValue',
    innerValue: function innerValue(val, oldVal) {
      if (!oldVal) {
        this.$emit('input', null);
      } else {
        this.$emit('input', val);
      }
    }
  },
  mounted: function mounted() {
    var _this3 = this;

    this.updateColumnValue();
    this.$nextTick(function () {
      _this3.updateInnerValue();
    });
  },
  methods: {
    getPicker: function getPicker() {
      return this.$refs.picker;
    },
    // https://github.com/vant-ui/vant/issues/10013
    getProxiedPicker: function getProxiedPicker() {
      var _this4 = this;

      var picker = this.$refs.picker;

      if (picker) {
        var proxy = function proxy(fn) {
          return function () {
            picker[fn].apply(picker, arguments);

            _this4.updateInnerValue();
          };
        };

        return (0, _extends2.default)({}, picker, {
          setValues: proxy('setValues'),
          setIndexes: proxy('setIndexes'),
          setColumnIndex: proxy('setColumnIndex'),
          setColumnValue: proxy('setColumnValue')
        });
      }
    },
    onConfirm: function onConfirm() {
      this.$emit('input', this.innerValue);
      this.$emit('confirm', this.innerValue);
    },
    onCancel: function onCancel() {
      this.$emit('cancel');
    }
  },
  render: function render() {
    var _this5 = this;

    var h = arguments[0];
    var props = {};
    Object.keys(_shared.pickerProps).forEach(function (key) {
      props[key] = _this5[key];
    });
    return h(_picker.default, {
      "ref": "picker",
      "attrs": {
        "columns": this.columns,
        "readonly": this.readonly
      },
      "scopedSlots": this.$scopedSlots,
      "on": {
        "change": this.onChange,
        "confirm": this.onConfirm,
        "cancel": this.onCancel
      },
      "props": (0, _extends2.default)({}, props)
    });
  }
};
exports.TimePickerMixin = TimePickerMixin;

exports.__esModule = true;
exports.times = times;
exports.getTrueValue = getTrueValue;
exports.getMonthEndDay = getMonthEndDay;

var _number = __webpack_require__(281);

function times(n, iteratee) {
  if (n < 0) {
    return [];
  }

  var index = -1;
  var result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }

  return result;
}

function getTrueValue(value) {
  if (!value) {
    return 0;
  }

  while ((0, _number.isNaN)(parseInt(value, 10))) {
    if (value.length > 1) {
      value = value.slice(1);
    } else {
      return 0;
    }
  }

  return parseInt(value, 10);
}

function getMonthEndDay(year, month) {
  return 32 - new Date(year, month - 1, 32).getDate();
}

exports.__esModule = true;
exports.pickerProps = exports.DEFAULT_ITEM_HEIGHT = void 0;
var DEFAULT_ITEM_HEIGHT = 44;
exports.DEFAULT_ITEM_HEIGHT = DEFAULT_ITEM_HEIGHT;
var pickerProps = {
  title: String,
  loading: Boolean,
  readonly: Boolean,
  itemHeight: [Number, String],
  showToolbar: Boolean,
  cancelButtonText: String,
  confirmButtonText: String,
  allowHtml: {
    type: Boolean,
    default: true
  },
  visibleItemCount: {
    type: [Number, String],
    default: 6
  },
  swipeDuration: {
    type: [Number, String],
    default: 1000
  }
};
exports.pickerProps = pickerProps;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _event = __webpack_require__(59);

var _constant = __webpack_require__(166);

var _shared = __webpack_require__(1369);

var _unit = __webpack_require__(248);

var _loading = _interopRequireDefault(__webpack_require__(91));

var _PickerColumn = _interopRequireDefault(__webpack_require__(2027));

// Utils
// Components
var _createNamespace = (0, _utils.createNamespace)('picker'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1],
    t = _createNamespace[2];

var _default2 = createComponent({
  props: (0, _extends2.default)({}, _shared.pickerProps, {
    defaultIndex: {
      type: [Number, String],
      default: 0
    },
    columns: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    toolbarPosition: {
      type: String,
      default: 'top'
    },
    valueKey: {
      type: String,
      default: 'text'
    }
  }),
  data: function data() {
    return {
      children: [],
      formattedColumns: []
    };
  },
  computed: {
    itemPxHeight: function itemPxHeight() {
      return this.itemHeight ? (0, _unit.unitToPx)(this.itemHeight) : _shared.DEFAULT_ITEM_HEIGHT;
    },
    dataType: function dataType() {
      var columns = this.columns;
      var firstColumn = columns[0] || {};

      if (firstColumn.children) {
        return 'cascade';
      }

      if (firstColumn.values) {
        return 'object';
      }

      return 'text';
    }
  },
  watch: {
    columns: {
      handler: 'format',
      immediate: true
    }
  },
  methods: {
    format: function format() {
      var columns = this.columns,
          dataType = this.dataType;

      if (dataType === 'text') {
        this.formattedColumns = [{
          values: columns
        }];
      } else if (dataType === 'cascade') {
        this.formatCascade();
      } else {
        this.formattedColumns = columns;
      }
    },
    formatCascade: function formatCascade() {
      var formatted = [];
      var cursor = {
        children: this.columns
      };

      while (cursor && cursor.children) {
        var _cursor$defaultIndex;

        var _cursor = cursor,
            children = _cursor.children;
        var defaultIndex = (_cursor$defaultIndex = cursor.defaultIndex) != null ? _cursor$defaultIndex : +this.defaultIndex;

        while (children[defaultIndex] && children[defaultIndex].disabled) {
          if (defaultIndex < children.length - 1) {
            defaultIndex++;
          } else {
            defaultIndex = 0;
            break;
          }
        }

        formatted.push({
          values: cursor.children,
          className: cursor.className,
          defaultIndex: defaultIndex
        });
        cursor = children[defaultIndex];
      }

      this.formattedColumns = formatted;
    },
    emit: function emit(event) {
      var _this = this;

      if (this.dataType === 'text') {
        this.$emit(event, this.getColumnValue(0), this.getColumnIndex(0));
      } else {
        var values = this.getValues(); // compatible with old version of wrong parameters
        // should be removed in next major version
        // see: https://github.com/vant-ui/vant/issues/5905

        if (this.dataType === 'cascade') {
          values = values.map(function (item) {
            return item[_this.valueKey];
          });
        }

        this.$emit(event, values, this.getIndexes());
      }
    },
    onCascadeChange: function onCascadeChange(columnIndex) {
      var cursor = {
        children: this.columns
      };
      var indexes = this.getIndexes();

      for (var i = 0; i <= columnIndex; i++) {
        cursor = cursor.children[indexes[i]];
      }

      while (cursor && cursor.children) {
        columnIndex++;
        this.setColumnValues(columnIndex, cursor.children);
        cursor = cursor.children[cursor.defaultIndex || 0];
      }
    },
    onChange: function onChange(columnIndex) {
      var _this2 = this;

      if (this.dataType === 'cascade') {
        this.onCascadeChange(columnIndex);
      }

      if (this.dataType === 'text') {
        this.$emit('change', this, this.getColumnValue(0), this.getColumnIndex(0));
      } else {
        var values = this.getValues(); // compatible with old version of wrong parameters
        // should be removed in next major version
        // see: https://github.com/vant-ui/vant/issues/5905

        if (this.dataType === 'cascade') {
          values = values.map(function (item) {
            return item[_this2.valueKey];
          });
        }

        this.$emit('change', this, values, columnIndex);
      }
    },
    // get column instance by index
    getColumn: function getColumn(index) {
      return this.children[index];
    },
    // @exposed-api
    // get column value by index
    getColumnValue: function getColumnValue(index) {
      var column = this.getColumn(index);
      return column && column.getValue();
    },
    // @exposed-api
    // set column value by index
    setColumnValue: function setColumnValue(index, value) {
      var column = this.getColumn(index);

      if (column) {
        column.setValue(value);

        if (this.dataType === 'cascade') {
          this.onCascadeChange(index);
        }
      }
    },
    // @exposed-api
    // get column option index by column index
    getColumnIndex: function getColumnIndex(columnIndex) {
      return (this.getColumn(columnIndex) || {}).currentIndex;
    },
    // @exposed-api
    // set column option index by column index
    setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
      var column = this.getColumn(columnIndex);

      if (column) {
        column.setIndex(optionIndex);

        if (this.dataType === 'cascade') {
          this.onCascadeChange(columnIndex);
        }
      }
    },
    // @exposed-api
    // get options of column by index
    getColumnValues: function getColumnValues(index) {
      return (this.children[index] || {}).options;
    },
    // @exposed-api
    // set options of column by index
    setColumnValues: function setColumnValues(index, options) {
      var column = this.children[index];

      if (column) {
        column.setOptions(options);
      }
    },
    // @exposed-api
    // get values of all columns
    getValues: function getValues() {
      return this.children.map(function (child) {
        return child.getValue();
      });
    },
    // @exposed-api
    // set values of all columns
    setValues: function setValues(values) {
      var _this3 = this;

      values.forEach(function (value, index) {
        _this3.setColumnValue(index, value);
      });
    },
    // @exposed-api
    // get indexes of all columns
    getIndexes: function getIndexes() {
      return this.children.map(function (child) {
        return child.currentIndex;
      });
    },
    // @exposed-api
    // set indexes of all columns
    setIndexes: function setIndexes(indexes) {
      var _this4 = this;

      indexes.forEach(function (optionIndex, columnIndex) {
        _this4.setColumnIndex(columnIndex, optionIndex);
      });
    },
    // @exposed-api
    confirm: function confirm() {
      this.children.forEach(function (child) {
        return child.stopMomentum();
      });
      this.emit('confirm');
    },
    cancel: function cancel() {
      this.emit('cancel');
    },
    genTitle: function genTitle() {
      var h = this.$createElement;
      var titleSlot = this.slots('title');

      if (titleSlot) {
        return titleSlot;
      }

      if (this.title) {
        return h("div", {
          "class": ['van-ellipsis', bem('title')]
        }, [this.title]);
      }
    },
    genCancel: function genCancel() {
      var h = this.$createElement;
      return h("button", {
        "attrs": {
          "type": "button"
        },
        "class": bem('cancel'),
        "on": {
          "click": this.cancel
        }
      }, [this.slots('cancel') || this.cancelButtonText || t('cancel')]);
    },
    genConfirm: function genConfirm() {
      var h = this.$createElement;
      return h("button", {
        "attrs": {
          "type": "button"
        },
        "class": bem('confirm'),
        "on": {
          "click": this.confirm
        }
      }, [this.slots('confirm') || this.confirmButtonText || t('confirm')]);
    },
    genToolbar: function genToolbar() {
      var h = this.$createElement;

      if (this.showToolbar) {
        return h("div", {
          "class": bem('toolbar')
        }, [this.slots() || [this.genCancel(), this.genTitle(), this.genConfirm()]]);
      }
    },
    genColumns: function genColumns() {
      var h = this.$createElement;
      var itemPxHeight = this.itemPxHeight;
      var wrapHeight = itemPxHeight * this.visibleItemCount;
      var frameStyle = {
        height: itemPxHeight + "px"
      };
      var columnsStyle = {
        height: wrapHeight + "px"
      };
      var maskStyle = {
        backgroundSize: "100% " + (wrapHeight - itemPxHeight) / 2 + "px"
      };
      return h("div", {
        "class": bem('columns'),
        "style": columnsStyle,
        "on": {
          "touchmove": _event.preventDefault
        }
      }, [this.genColumnItems(), h("div", {
        "class": bem('mask'),
        "style": maskStyle
      }), h("div", {
        "class": [_constant.BORDER_UNSET_TOP_BOTTOM, bem('frame')],
        "style": frameStyle
      })]);
    },
    genColumnItems: function genColumnItems() {
      var _this5 = this;

      var h = this.$createElement;
      return this.formattedColumns.map(function (item, columnIndex) {
        var _item$defaultIndex;

        return h(_PickerColumn.default, {
          "attrs": {
            "readonly": _this5.readonly,
            "valueKey": _this5.valueKey,
            "allowHtml": _this5.allowHtml,
            "className": item.className,
            "itemHeight": _this5.itemPxHeight,
            "defaultIndex": (_item$defaultIndex = item.defaultIndex) != null ? _item$defaultIndex : +_this5.defaultIndex,
            "swipeDuration": _this5.swipeDuration,
            "visibleItemCount": _this5.visibleItemCount,
            "initialOptions": item.values
          },
          "scopedSlots": {
            option: _this5.$scopedSlots.option
          },
          "on": {
            "change": function change() {
              _this5.onChange(columnIndex);
            }
          }
        });
      });
    }
  },
  render: function render(h) {
    return h("div", {
      "class": bem()
    }, [this.toolbarPosition === 'top' ? this.genToolbar() : h(), this.loading ? h(_loading.default, {
      "class": bem('loading')
    }) : h(), this.slots('columns-top'), this.genColumns(), this.slots('columns-bottom'), this.toolbarPosition === 'bottom' ? this.genToolbar() : h()]);
  }
});

exports.default = _default2;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = exports.MOMENTUM_LIMIT_DISTANCE = exports.MOMENTUM_LIMIT_TIME = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _deepClone = __webpack_require__(2028);

var _utils = __webpack_require__(18);

var _number = __webpack_require__(167);

var _event = __webpack_require__(59);

var _touch = __webpack_require__(103);

var DEFAULT_DURATION = 200; // 惯性滑动思路:
// 在手指离开屏幕时，如果和上一次 move 时的间隔小于 `MOMENTUM_LIMIT_TIME` 且 move
// 距离大于 `MOMENTUM_LIMIT_DISTANCE` 时，执行惯性滑动

var MOMENTUM_LIMIT_TIME = 300;
exports.MOMENTUM_LIMIT_TIME = MOMENTUM_LIMIT_TIME;
var MOMENTUM_LIMIT_DISTANCE = 15;
exports.MOMENTUM_LIMIT_DISTANCE = MOMENTUM_LIMIT_DISTANCE;

var _createNamespace = (0, _utils.createNamespace)('picker-column'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function getElementTranslateY(element) {
  var style = window.getComputedStyle(element);
  var transform = style.transform || style.webkitTransform;
  var translateY = transform.slice(7, transform.length - 1).split(', ')[5];
  return Number(translateY);
}

function isOptionDisabled(option) {
  return (0, _utils.isObject)(option) && option.disabled;
} // use standard WheelEvent:
// https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent


var supportMousewheel = _utils.inBrowser && 'onwheel' in window;
var mousewheelTimer = null;

var _default2 = createComponent({
  mixins: [_touch.TouchMixin],
  props: {
    valueKey: String,
    readonly: Boolean,
    allowHtml: Boolean,
    className: String,
    itemHeight: Number,
    defaultIndex: Number,
    swipeDuration: [Number, String],
    visibleItemCount: [Number, String],
    initialOptions: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  data: function data() {
    return {
      offset: 0,
      duration: 0,
      options: (0, _deepClone.deepClone)(this.initialOptions),
      currentIndex: this.defaultIndex
    };
  },
  created: function created() {
    if (this.$parent.children) {
      this.$parent.children.push(this);
    }

    this.setIndex(this.currentIndex);
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);

    if (supportMousewheel) {
      (0, _event.on)(this.$el, 'wheel', this.onMouseWheel, false);
    }
  },
  destroyed: function destroyed() {
    var children = this.$parent.children;

    if (children) {
      children.splice(children.indexOf(this), 1);
    }

    if (supportMousewheel) {
      (0, _event.off)(this.$el, 'wheel');
    }
  },
  watch: {
    initialOptions: 'setOptions',
    defaultIndex: function defaultIndex(val) {
      this.setIndex(val);
    }
  },
  computed: {
    count: function count() {
      return this.options.length;
    },
    baseOffset: function baseOffset() {
      return this.itemHeight * (this.visibleItemCount - 1) / 2;
    }
  },
  methods: {
    setOptions: function setOptions(options) {
      if (JSON.stringify(options) !== JSON.stringify(this.options)) {
        this.options = (0, _deepClone.deepClone)(options);
        this.setIndex(this.defaultIndex);
      }
    },
    onTouchStart: function onTouchStart(event) {
      if (this.readonly) {
        return;
      }

      this.touchStart(event);

      if (this.moving) {
        var translateY = getElementTranslateY(this.$refs.wrapper);
        this.offset = Math.min(0, translateY - this.baseOffset);
        this.startOffset = this.offset;
      } else {
        this.startOffset = this.offset;
      }

      this.duration = 0;
      this.transitionEndTrigger = null;
      this.touchStartTime = Date.now();
      this.momentumOffset = this.startOffset;
    },
    onTouchMove: function onTouchMove(event) {
      if (this.readonly) {
        return;
      }

      this.touchMove(event);

      if (this.direction === 'vertical') {
        this.moving = true;
        (0, _event.preventDefault)(event, true);
      }

      this.offset = (0, _number.range)(this.startOffset + this.deltaY, -(this.count * this.itemHeight), this.itemHeight);
      var now = Date.now();

      if (now - this.touchStartTime > MOMENTUM_LIMIT_TIME) {
        this.touchStartTime = now;
        this.momentumOffset = this.offset;
      }
    },
    onTouchEnd: function onTouchEnd() {
      var _this = this;

      if (this.readonly) {
        return;
      }

      var distance = this.offset - this.momentumOffset;
      var duration = Date.now() - this.touchStartTime;
      var allowMomentum = duration < MOMENTUM_LIMIT_TIME && Math.abs(distance) > MOMENTUM_LIMIT_DISTANCE;

      if (allowMomentum) {
        this.momentum(distance, duration);
        return;
      }

      var index = this.getIndexByOffset(this.offset);
      this.duration = DEFAULT_DURATION;
      this.setIndex(index, true); // compatible with desktop scenario
      // use setTimeout to skip the click event Emitted after touchstart

      setTimeout(function () {
        _this.moving = false;
      }, 0);
    },
    onMouseWheel: function onMouseWheel(event) {
      var _this2 = this;

      if (this.readonly) {
        return;
      }

      (0, _event.preventDefault)(event, true); // simply combine touchstart and touchmove

      var translateY = getElementTranslateY(this.$refs.wrapper);
      this.startOffset = Math.min(0, translateY - this.baseOffset);
      this.momentumOffset = this.startOffset;
      this.transitionEndTrigger = null; // directly use deltaY, see https://caniuse.com/?search=deltaY
      // use deltaY to detect direction for not special setting device
      // https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event

      var deltaY = event.deltaY;

      if (this.startOffset === 0 && deltaY < 0) {
        return;
      } // Calculate the offset based on itemHeight


      var itemOffset = this.itemHeight * (deltaY > 0 ? -1 : 1);
      this.offset = (0, _number.range)(this.startOffset + itemOffset, -(this.count * this.itemHeight), this.itemHeight);

      if (mousewheelTimer) {
        clearTimeout(mousewheelTimer);
      }

      mousewheelTimer = setTimeout(function () {
        _this2.onTouchEnd();

        _this2.touchStartTime = 0;
      }, MOMENTUM_LIMIT_TIME);
    },
    onTransitionEnd: function onTransitionEnd() {
      this.stopMomentum();
    },
    onClickItem: function onClickItem(index) {
      if (this.moving || this.readonly) {
        return;
      }

      this.transitionEndTrigger = null;
      this.duration = DEFAULT_DURATION;
      this.setIndex(index, true);
    },
    adjustIndex: function adjustIndex(index) {
      index = (0, _number.range)(index, 0, this.count);

      for (var i = index; i < this.count; i++) {
        if (!isOptionDisabled(this.options[i])) return i;
      }

      for (var _i = index - 1; _i >= 0; _i--) {
        if (!isOptionDisabled(this.options[_i])) return _i;
      }
    },
    getOptionText: function getOptionText(option) {
      if ((0, _utils.isObject)(option) && this.valueKey in option) {
        return option[this.valueKey];
      }

      return option;
    },
    setIndex: function setIndex(index, emitChange) {
      var _this3 = this;

      index = this.adjustIndex(index) || 0;
      var offset = -index * this.itemHeight;

      var trigger = function trigger() {
        if (index !== _this3.currentIndex) {
          _this3.currentIndex = index;

          if (emitChange) {
            _this3.$emit('change', index);
          }
        }
      }; // trigger the change event after transitionend when moving


      if (this.moving && offset !== this.offset) {
        this.transitionEndTrigger = trigger;
      } else {
        trigger();
      }

      this.offset = offset;
    },
    setValue: function setValue(value) {
      var options = this.options;

      for (var i = 0; i < options.length; i++) {
        if (this.getOptionText(options[i]) === value) {
          return this.setIndex(i);
        }
      }
    },
    getValue: function getValue() {
      return this.options[this.currentIndex];
    },
    getIndexByOffset: function getIndexByOffset(offset) {
      return (0, _number.range)(Math.round(-offset / this.itemHeight), 0, this.count - 1);
    },
    momentum: function momentum(distance, duration) {
      var speed = Math.abs(distance / duration);
      distance = this.offset + speed / 0.003 * (distance < 0 ? -1 : 1);
      var index = this.getIndexByOffset(distance);
      this.duration = +this.swipeDuration;
      this.setIndex(index, true);
    },
    stopMomentum: function stopMomentum() {
      this.moving = false;
      this.duration = 0;

      if (this.transitionEndTrigger) {
        this.transitionEndTrigger();
        this.transitionEndTrigger = null;
      }
    },
    genOptions: function genOptions() {
      var _this4 = this;

      var h = this.$createElement;
      var optionStyle = {
        height: this.itemHeight + "px"
      };
      return this.options.map(function (option, index) {
        var _domProps;

        var text = _this4.getOptionText(option);

        var disabled = isOptionDisabled(option);
        var data = {
          style: optionStyle,
          attrs: {
            role: 'button',
            tabindex: disabled ? -1 : 0
          },
          class: [bem('item', {
            disabled: disabled,
            selected: index === _this4.currentIndex
          })],
          on: {
            click: function click() {
              _this4.onClickItem(index);
            }
          }
        };
        var childData = {
          class: 'van-ellipsis',
          domProps: (_domProps = {}, _domProps[_this4.allowHtml ? 'innerHTML' : 'textContent'] = text, _domProps)
        };
        return h("li", (0, _babelHelperVueJsxMergeProps.default)([{}, data]), [_this4.slots('option', option) || h("div", (0, _babelHelperVueJsxMergeProps.default)([{}, childData]))]);
      });
    }
  },
  render: function render() {
    var h = arguments[0];
    var wrapperStyle = {
      transform: "translate3d(0, " + (this.offset + this.baseOffset) + "px, 0)",
      transitionDuration: this.duration + "ms",
      transitionProperty: this.duration ? 'all' : 'none'
    };
    return h("div", {
      "class": [bem(), this.className]
    }, [h("ul", {
      "ref": "wrapper",
      "style": wrapperStyle,
      "class": bem('wrapper'),
      "on": {
        "transitionend": this.onTransitionEnd
      }
    }, [this.genOptions()])]);
  }
});

exports.default = _default2;

exports.__esModule = true;
exports.deepClone = deepClone;

var _index = __webpack_require__(18);

function deepClone(obj) {
  if (!(0, _index.isDef)(obj)) {
    return obj;
  }

  if (Array.isArray(obj)) {
    return obj.map(function (item) {
      return deepClone(item);
    });
  }

  if (typeof obj === 'object') {
    var to = {};
    Object.keys(obj).forEach(function (key) {
      to[key] = deepClone(obj[key]);
    });
    return to;
  }

  return obj;
}

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _construct2 = _interopRequireDefault(__webpack_require__(2052));

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _date = __webpack_require__(2055);

var _string = __webpack_require__(168);

var _utils2 = __webpack_require__(1380);

var _shared = __webpack_require__(1379);

var currentYear = new Date().getFullYear();

var _createNamespace = (0, _utils.createNamespace)('date-picker'),
    createComponent = _createNamespace[0];

var _default2 = createComponent({
  mixins: [_shared.TimePickerMixin],
  props: (0, _extends2.default)({}, _shared.sharedProps, {
    type: {
      type: String,
      default: 'datetime'
    },
    minDate: {
      type: Date,
      default: function _default() {
        return new Date(currentYear - 10, 0, 1);
      },
      validator: _date.isDate
    },
    maxDate: {
      type: Date,
      default: function _default() {
        return new Date(currentYear + 10, 11, 31);
      },
      validator: _date.isDate
    }
  }),
  watch: {
    filter: 'updateInnerValue',
    minDate: function minDate() {
      var _this = this;

      this.$nextTick(function () {
        _this.updateInnerValue();
      });
    },
    maxDate: function maxDate(value) {
      if (this.innerValue.valueOf() >= value.valueOf()) {
        this.innerValue = value;
      } else {
        this.updateInnerValue();
      }
    },
    value: function value(val) {
      val = this.formatValue(val);

      if (val && val.valueOf() !== this.innerValue.valueOf()) {
        this.innerValue = val;
      }
    }
  },
  computed: {
    ranges: function ranges() {
      var _this$getBoundary = this.getBoundary('max', this.innerValue ? this.innerValue : this.minDate),
          maxYear = _this$getBoundary.maxYear,
          maxDate = _this$getBoundary.maxDate,
          maxMonth = _this$getBoundary.maxMonth,
          maxHour = _this$getBoundary.maxHour,
          maxMinute = _this$getBoundary.maxMinute;

      var _this$getBoundary2 = this.getBoundary('min', this.innerValue ? this.innerValue : this.minDate),
          minYear = _this$getBoundary2.minYear,
          minDate = _this$getBoundary2.minDate,
          minMonth = _this$getBoundary2.minMonth,
          minHour = _this$getBoundary2.minHour,
          minMinute = _this$getBoundary2.minMinute;

      var result = [{
        type: 'year',
        range: [minYear, maxYear]
      }, {
        type: 'month',
        range: [minMonth, maxMonth]
      }, {
        type: 'day',
        range: [minDate, maxDate]
      }, {
        type: 'hour',
        range: [minHour, maxHour]
      }, {
        type: 'minute',
        range: [minMinute, maxMinute]
      }];

      switch (this.type) {
        case 'date':
          result = result.slice(0, 3);
          break;

        case 'year-month':
          result = result.slice(0, 2);
          break;

        case 'month-day':
          result = result.slice(1, 3);
          break;

        case 'datehour':
          result = result.slice(0, 4);
          break;
      }

      if (this.columnsOrder) {
        var columnsOrder = this.columnsOrder.concat(result.map(function (column) {
          return column.type;
        }));
        result.sort(function (a, b) {
          return columnsOrder.indexOf(a.type) - columnsOrder.indexOf(b.type);
        });
      }

      return result;
    }
  },
  methods: {
    formatValue: function formatValue(value) {
      var _this2 = this;

      if (!(0, _date.isDate)(value)) {
        return null;
      }

      var minDate = new Date(this.minDate);
      var maxDate = new Date(this.maxDate);
      var dateMethods = {
        year: 'getFullYear',
        month: 'getMonth',
        day: 'getDate',
        hour: 'getHours',
        minute: 'getMinutes'
      };

      if (this.originColumns) {
        var dateColumns = this.originColumns.map(function (_ref, index) {
          var type = _ref.type,
              values = _ref.values;
          var range = _this2.ranges[index].range;
          var minDateVal = minDate[dateMethods[type]]();
          var maxDateVal = maxDate[dateMethods[type]]();
          var min = type === 'month' ? +values[0] - 1 : +values[0];
          var max = type === 'month' ? +values[values.length - 1] - 1 : +values[values.length - 1];
          return {
            type: type,
            values: [minDateVal < range[0] ? Math.max(minDateVal, min) : min || minDateVal, maxDateVal > range[1] ? Math.min(maxDateVal, max) : max || maxDateVal]
          };
        });

        if (this.type === 'month-day') {
          var year = (this.innerValue || this.minDate).getFullYear();
          dateColumns.unshift({
            type: 'year',
            values: [year, year]
          });
        }

        var dates = Object.keys(dateMethods).map(function (type) {
          var _dateColumns$filter$;

          return (_dateColumns$filter$ = dateColumns.filter(function (item) {
            return item.type === type;
          })[0]) == null ? void 0 : _dateColumns$filter$.values;
        }).filter(function (item) {
          return item;
        });
        minDate = (0, _construct2.default)(Date, dates.map(function (val) {
          return (0, _utils2.getTrueValue)(val[0]);
        }));
        maxDate = (0, _construct2.default)(Date, dates.map(function (val) {
          return (0, _utils2.getTrueValue)(val[1]);
        }));
      }

      value = Math.max(value, minDate.getTime());
      value = Math.min(value, maxDate.getTime());
      return new Date(value);
    },
    getBoundary: function getBoundary(type, value) {
      var _ref2;

      var boundary = this[type + "Date"];
      var year = boundary.getFullYear();
      var month = 1;
      var date = 1;
      var hour = 0;
      var minute = 0;

      if (type === 'max') {
        month = 12;
        date = (0, _utils2.getMonthEndDay)(value.getFullYear(), value.getMonth() + 1);
        hour = 23;
        minute = 59;
      }

      if (value.getFullYear() === year) {
        month = boundary.getMonth() + 1;

        if (value.getMonth() + 1 === month) {
          date = boundary.getDate();

          if (value.getDate() === date) {
            hour = boundary.getHours();

            if (value.getHours() === hour) {
              minute = boundary.getMinutes();
            }
          }
        }
      }

      return _ref2 = {}, _ref2[type + "Year"] = year, _ref2[type + "Month"] = month, _ref2[type + "Date"] = date, _ref2[type + "Hour"] = hour, _ref2[type + "Minute"] = minute, _ref2;
    },
    updateInnerValue: function updateInnerValue() {
      var _this3 = this;

      var type = this.type;
      var indexes = this.getPicker().getIndexes();

      var getValue = function getValue(type) {
        var index = 0;

        _this3.originColumns.forEach(function (column, columnIndex) {
          if (type === column.type) {
            index = columnIndex;
          }
        });

        var values = _this3.originColumns[index].values;
        return (0, _utils2.getTrueValue)(values[indexes[index]]);
      };

      var year;
      var month;
      var day;

      if (type === 'month-day') {
        year = (this.innerValue || this.minDate).getFullYear();
        month = getValue('month');
        day = getValue('day');
      } else {
        year = getValue('year');
        month = getValue('month');
        day = type === 'year-month' ? 1 : getValue('day');
      }

      var maxDay = (0, _utils2.getMonthEndDay)(year, month);
      day = day > maxDay ? maxDay : day;
      var hour = 0;
      var minute = 0;

      if (type === 'datehour') {
        hour = getValue('hour');
      }

      if (type === 'datetime') {
        hour = getValue('hour');
        minute = getValue('minute');
      }

      var value = new Date(year, month - 1, day, hour, minute);
      this.innerValue = this.formatValue(value);
    },
    onChange: function onChange(picker) {
      var _this4 = this;

      this.updateInnerValue();
      this.$nextTick(function () {
        _this4.$nextTick(function () {
          // https://github.com/vant-ui/vant/issues/9775
          _this4.updateInnerValue();

          _this4.$emit('change', picker);
        });
      });
    },
    updateColumnValue: function updateColumnValue() {
      var _this5 = this;

      var value = this.innerValue ? this.innerValue : this.minDate;
      var formatter = this.formatter;
      var values = this.originColumns.map(function (column) {
        switch (column.type) {
          case 'year':
            return formatter('year', "" + value.getFullYear());

          case 'month':
            return formatter('month', (0, _string.padZero)(value.getMonth() + 1));

          case 'day':
            return formatter('day', (0, _string.padZero)(value.getDate()));

          case 'hour':
            return formatter('hour', (0, _string.padZero)(value.getHours()));

          case 'minute':
            return formatter('minute', (0, _string.padZero)(value.getMinutes()));

          default:
            // no default
            return null;
        }
      });
      this.$nextTick(function () {
        _this5.getPicker().setValues(values);
      });
    }
  }
});

exports.default = _default2;var isNativeReflectConstruct = __webpack_require__(2053);
var setPrototypeOf = __webpack_require__(2054);
function _construct(t, e, r) {
  if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  var o = [null];
  o.push.apply(o, e);
  var p = new (t.bind.apply(t, o))();
  return r && setPrototypeOf(p, r.prototype), p;
}
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;function _isNativeReflectConstruct() {
  try {
    var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  } catch (t) {}
  return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
    return !!t;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
}
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;function _setPrototypeOf(t, e) {
  return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
    return t.__proto__ = e, t;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
}
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;

exports.__esModule = true;
exports.isDate = isDate;

var _number = __webpack_require__(281);

function isDate(val) {
  return Object.prototype.toString.call(val) === '[object Date]' && !(0, _number.isNaN)(val.getTime());
}__webpack_require__(26);
__webpack_require__(74);
__webpack_require__(2008);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2009);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0e9c3368", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-switch{position:relative;display:inline-block;box-sizing:content-box;width:2em;height:1em;font-size:30px;background-color:#fff;border:1px solid rgba(0,0,0,.1);border-radius:1em;cursor:pointer;-webkit-transition:background-color .3s;transition:background-color .3s}.van-switch__node{position:absolute;top:0;left:0;width:1em;height:1em;font-size:inherit;background-color:#fff;border-radius:100%;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);-webkit-transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05),-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05)}.van-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.van-switch--on{background-color:#1989fa}.van-switch--on .van-switch__node{-webkit-transform:translateX(1em);transform:translateX(1em)}.van-switch--on .van-switch__loading{color:#1989fa}.van-switch--disabled{cursor:not-allowed;opacity:.5}.van-switch--loading{cursor:default}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/switch/index.css"],"names":[],"mappings":"AAAA,YAAY,kBAAkB,qBAAqB,uBAAuB,UAAU,WAAW,eAAe,sBAAsB,gCAAgC,kBAAkB,eAAe,wCAAwC,+BAA+B,CAAC,kBAAkB,kBAAkB,MAAM,OAAO,UAAU,WAAW,kBAAkB,sBAAsB,mBAAmB,8FAA8F,uEAAuE,+DAA+D,uDAAuD,0GAA0G,CAAC,qBAAqB,QAAQ,SAAS,UAAU,WAAW,aAAa,CAAC,gBAAgB,wBAAwB,CAAC,kCAAkC,kCAAkC,yBAAyB,CAAC,qCAAqC,aAAa,CAAC,sBAAsB,mBAAmB,UAAU,CAAC,qBAAqB,cAAc,CAAC","file":"index.css","sourcesContent":[".van-switch{position:relative;display:inline-block;box-sizing:content-box;width:2em;height:1em;font-size:30px;background-color:#fff;border:1px solid rgba(0,0,0,.1);border-radius:1em;cursor:pointer;-webkit-transition:background-color .3s;transition:background-color .3s}.van-switch__node{position:absolute;top:0;left:0;width:1em;height:1em;font-size:inherit;background-color:#fff;border-radius:100%;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);-webkit-transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05),-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05)}.van-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.van-switch--on{background-color:#1989fa}.van-switch--on .van-switch__node{-webkit-transform:translateX(1em);transform:translateX(1em)}.van-switch--on .van-switch__loading{color:#1989fa}.van-switch--disabled{cursor:not-allowed;opacity:.5}.van-switch--loading{cursor:default}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _shared = __webpack_require__(2010);

var _field = __webpack_require__(202);

var _loading = _interopRequireDefault(__webpack_require__(91));

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('switch'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [_field.FieldMixin],
  props: _shared.switchProps,
  computed: {
    checked: function checked() {
      return this.value === this.activeValue;
    },
    style: function style() {
      return {
        fontSize: (0, _utils.addUnit)(this.size),
        backgroundColor: this.checked ? this.activeColor : this.inactiveColor
      };
    }
  },
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);

      if (!this.disabled && !this.loading) {
        var newValue = this.checked ? this.inactiveValue : this.activeValue;
        this.$emit('input', newValue);
        this.$emit('change', newValue);
      }
    },
    genLoading: function genLoading() {
      var h = this.$createElement;

      if (this.loading) {
        var color = this.checked ? this.activeColor : this.inactiveColor;
        return h(_loading.default, {
          "class": bem('loading'),
          "attrs": {
            "color": color
          }
        });
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var checked = this.checked,
        loading = this.loading,
        disabled = this.disabled;
    return h("div", {
      "class": bem({
        on: checked,
        loading: loading,
        disabled: disabled
      }),
      "attrs": {
        "role": "switch",
        "aria-checked": String(checked)
      },
      "style": this.style,
      "on": {
        "click": this.onClick
      }
    }, [h("div", {
      "class": bem('node')
    }, [this.genLoading()])]);
  }
});

exports.default = _default;

exports.__esModule = true;
exports.switchProps = void 0;

/**
 * Common Switch Props
 */
var switchProps = {
  size: [Number, String],
  value: null,
  loading: Boolean,
  disabled: Boolean,
  activeColor: String,
  inactiveColor: String,
  activeValue: {
    type: null,
    default: true
  },
  inactiveValue: {
    type: null,
    default: false
  }
};
exports.switchProps = switchProps;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"ask-set"},[_c('div',{staticClass:"setting"},[_c('div',{staticClass:"setting-item hairline"},[_c('img',{attrs:{"src":__webpack_require__(1396)}}),_vm._v(" "),_c('p',[_vm._v("接单提醒")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.weChartStatus ? '已开启': (_vm.acceptMode ? '3天内不再提醒' : '未开启')))]),_vm._v(" "),_c('van-switch',{attrs:{"value":_vm.weChartStatus,"active-color":"#177AFA","inactive-color":"#C2C8D0"},on:{"input":function($event){return _vm.changeOpenNoticeFlag()}}})],1)]),_vm._v(" "),(_vm.acceptMode)?_c('div',{staticClass:"settings-wrap"},[_c('div',{staticClass:"head"},[_c('h2',[_vm._v("提醒设置")]),_vm._v(" "),_c('p',[_vm._v("有新问题时，将通过"),_c('span',{on:{"click":function($event){_vm.showQrCodePop = true}}},[_vm._v("小轨在线")]),_vm._v("公众号通知你")])]),_vm._v(" "),_c('div',{staticClass:"settings-que-list"},_vm._l((_vm.questionList),function(item,index){return _c('div',{key:index,staticClass:"item",class:{'no-margin': index === 1 || index === 3 || index === 5 || index === 6 || index === 7, 'border-bottom': index === 0 || index === 2 || index === 4 }},[_c('h3',[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('div',{staticClass:"option-wrap"},_vm._l((item.itemVos),function(subItem,i){return _c('span',{key:i,staticClass:"option-1",class:{'active': subItem.selectFlag === 1},on:{"click":function($event){return _vm.siteQAndAItem(item, i)}}},[((subItem.selectFlag === 1 && item.itemValue && item.itemValue !== '' && item.mode !== 8) || (item.mode === 8 && subItem.itemIndex === 2 && item.phoneModeFlag === 0))?_c('em'):_vm._e(),_vm._v("\n              "+_vm._s(subItem.itemName)),(subItem.itemSuffixName)?_c('i',[_vm._v(_vm._s(subItem.itemSuffixName))]):_vm._e()])}),0),_vm._v(" "),(item.itemValue && item.itemValue !== '' && item.mode !== 8)?_c('div',{staticClass:"tip"},[_c('div',{staticClass:"tip-inner"},[_c('p',{domProps:{"innerHTML":_vm._s(item.itemValue)}}),_vm._v(" "),_c('span',{staticClass:"close-icon",on:{"click":function($event){return _vm.siteQAndAItem(item, 0)}}})])]):_vm._e(),_vm._v(" "),(item.mode === 8 && item.phoneModeFlag === 0)?_c('div',{staticClass:"tip call-tip"},[_c('div',{staticClass:"tip-inner"},[_c('p',[_vm._v("注：电话沟通方式正在内测中")]),_c('span',{on:{"click":function($event){return _vm.openCall(item.phoneModeUrl)}}},[_vm._v("点击申请开通")])])]):_vm._e()])}),0)]):_vm._e(),_vm._v(" "),(_vm.acceptMode)?_c('div',{staticClass:"accept-mode setting"},[_c('div',{staticClass:"setting-item"},[_c('img',{attrs:{"src":__webpack_require__(1397)}}),_vm._v(" "),_c('p',[_vm._v("接单模式")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.acceptMode ? '已开启': '未开启'))]),_vm._v(" "),_c('van-switch',{attrs:{"value":_vm.acceptMode,"active-color":"#177AFA","inactive-color":"#C2C8D0"},on:{"input":function($event){return _vm.changeOpenNoticeFlag2()}}})],1),_vm._v(" "),_c('p',{staticClass:"tip"},[_vm._v("关闭后不再接收通知且不可在问题广场接单")])]):_vm._e()]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container reward-amount-popup",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.cashSettingPopup),callback:function ($$v) {_vm.cashSettingPopup=$$v},expression:"cashSettingPopup"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"form-cell"},[(_vm.inputObj.label && _vm.inputObj.label !== '')?_c('div',{staticClass:"label"},[_vm._v(_vm._s(_vm.inputObj.label))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"value"},[_c('van-field',{attrs:{"type":_vm.inputObj.type,"input-align":"right","placeholder":_vm.inputObj.label},on:{"blur":function($event){return _vm.blurInput()}},model:{value:(_vm.inputObj.param),callback:function ($$v) {_vm.$set(_vm.inputObj, "param", $$v)},expression:"inputObj.param"}}),_c('span',[_vm._v(_vm._s(_vm.inputObj.unit))])],1)])]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeCashPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeCashPopup('confirm')}}},[_vm._v("确认")])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.timeNotificationPopup),callback:function ($$v) {_vm.timeNotificationPopup=$$v},expression:"timeNotificationPopup"}},[_c('div',{staticClass:"popup-content time-notice"},[_c('div',{staticClass:"time-notice-item"},[_c('van-datetime-picker',{attrs:{"type":"time","show-toolbar":false,"visible-item-count":"3"},model:{value:(_vm.startNoticeTime),callback:function ($$v) {_vm.startNoticeTime=$$v},expression:"startNoticeTime"}})],1),_vm._v(" "),_c('div',{staticClass:"divide-insignia"},[_vm._v("-")]),_vm._v(" "),_c('div',{staticClass:"time-notice-item"},[_c('van-datetime-picker',{attrs:{"type":"time","show-toolbar":false,"visible-item-count":"3"},model:{value:(_vm.endtNoticeTime),callback:function ($$v) {_vm.endtNoticeTime=$$v},expression:"endtNoticeTime"}})],1)]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeTimeNotificationPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeTimeNotificationPopup('confirm')}}},[_vm._v("确认")])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container popup-container-1",attrs:{"round":true,"close-on-click-overlay":false,"position":"bottom"},model:{value:(_vm.brandPopup),callback:function ($$v) {_vm.brandPopup=$$v},expression:"brandPopup"}},[_c('div',{staticClass:"popup-toolbar popup-toolbar-top hairline"},[_c('span',{on:{"click":function($event){return _vm.closeBrandPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('p',{staticClass:"title"},[_vm._v(_vm._s(_vm.brandPopupTitle))]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeBrandPopup('confirm')}}},[_vm._v("确认")])]),_vm._v(" "),_c('div',{staticClass:"popup-content brand-content"},[(_vm.brandSelectedList.length)?_c('div',{staticClass:"selected-brand hairline"},_vm._l((_vm.brandSelectedList),function(b,i){return _c('div',{key:i,staticClass:"selected-item",on:{"click":function($event){return _vm.deleteBrand(b)}}},[_c('span',{staticClass:"meta"},[_vm._v(_vm._s(b.pathName))])])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"brand-list"},_vm._l((_vm.brandList),function(item,index){return _c('div',{key:index,staticClass:"brand-item hairline",class:{'selected': item.selected},on:{"click":function($event){return _vm.selcteBrand(item)}}},[_c('img',{staticClass:"brand-icon",attrs:{"src":item.pathImg,"alt":""}}),_c('span',{staticClass:"brand-name"},[_vm._v(_vm._s(item.pathName))])])}),0)])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container reward-amount-popup qrcode",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.showQrCodePop),callback:function ($$v) {_vm.showQrCodePop=$$v},expression:"showQrCodePop"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"img-box"},[_c('img',{staticClass:"bg",attrs:{"src":__webpack_require__(1398)}}),_vm._v(" "),_c('img',{staticClass:"qrcode",attrs:{"src":_vm.qrImg}}),_vm._v(" "),_c('img',{staticClass:"close-btn",attrs:{"src":__webpack_require__(263)},on:{"click":function($event){_vm.showQrCodePop = false}}})]),_vm._v(" "),_c('p',[_vm._v("长按识别二维码")]),_vm._v(" "),_c('div',{staticClass:"tip"},[_vm._v("关注「小轨在线」，接收问答通知")])])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/notice.4a61949.png";module.exports = __webpack_require__.p + "static/img/qa_icon_4.32ba621.png";module.exports = __webpack_require__.p + "static/img/qrCodeBg.1b18314.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(343);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_vue_loader_lib_selector_type_script_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_vue_loader_lib_selector_type_script_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_vue_loader_lib_selector_type_script_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _vue_loader_lib_template_compiler_index_id_data_v_7e25a3b8_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(943);
/* harmony import */ var _vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2191)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_vue_loader_lib_selector_type_script_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _vue_loader_lib_template_compiler_index_id_data_v_7e25a3b8_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _vue_loader_lib_template_compiler_index_id_data_v_7e25a3b8_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_mescroll_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2192);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3e903c80", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
// 引入mescroll.min.js和mescroll.min.css
var _default = exports.default = {
  name: 'MeScrollVue',
  data: function data() {
    return {
      mescroll: null,
      lastScrollTop: 0,
      // 路由切换时滚动条的位置
      lastBounce: null // 路由切换时是否禁止ios回弹
    };
  },
  props: {
    up: Object,
    down: Object
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      up: this.up,
      down: this.down
    });
    this.$emit('init', this.mescroll); // init回调mescroll对象
  },
  methods: {
    beforeRouteEnter: function beforeRouteEnter() {
      var _this = this;
      if (this.mescroll) {
        // 滚动到之前列表的位置
        if (this.lastScrollTop) {
          this.mescroll.setScrollTop(this.lastScrollTop);
          setTimeout(function () {
            // 需延时,因为setScrollTop内部会触发onScroll,可能会渐显回到顶部按钮
            _this.mescroll.setTopBtnFadeDuration(0); // 设置回到顶部按钮显示时无渐显动画
          }, 16);
        }
        // 恢复到之前设置的isBounce状态
        if (this.lastBounce != null) this.mescroll.setBounce(this.lastBounce);
      }
    },
    beforeRouteLeave: function beforeRouteLeave() {
      if (this.mescroll) {
        this.lastScrollTop = this.mescroll.getScrollTop(); // 记录当前滚动条的位置
        this.mescroll.hideTopBtn(0); // 隐藏回到顶部按钮,无渐隐动画
        this.lastBounce = this.mescroll.optUp.isBounce; // 记录当前是否禁止ios回弹
        this.mescroll.setBounce(true); // 允许bounce
      }
    }
  }
};var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* mescroll
 * version 1.4.2
 * 2019-08-01 wenju
 * http://www.mescroll.com
 */
(function(a,b){if(true){!(__WEBPACK_AMD_DEFINE_FACTORY__ = (b),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
				__WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))}else{}})("MeScroll",function(){var a=function(b,e){var h=this;h.version="1.4.0";h.isScrollBody=(!b||b==="body");h.scrollDom=h.isScrollBody?document.body:h.getDomById(b);if(!h.scrollDom){return}h.options=e||{};var d=navigator.userAgent;var c=!!d.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);var i=typeof window.orientation==="undefined";var g=d.indexOf("Android")>-1||d.indexOf("Adr")>-1;h.os={ios:c,pc:i,android:g};h.isDownScrolling=false;h.isUpScrolling=false;var f=h.options.down&&h.options.down.callback;h.initDownScroll();h.initUpScroll();setTimeout(function(){if(h.optDown.use&&h.optDown.auto&&f){if(h.optDown.autoShowLoading){h.triggerDownScroll()}else{h.optDown.callback&&h.optDown.callback(h)}}h.optUp.use&&h.optUp.auto&&!h.isUpAutoLoad&&h.triggerUpScroll()},30)};a.prototype.extendDownScroll=function(b){a.extend(b,{use:true,auto:true,autoShowLoading:false,isLock:false,isBoth:false,offset:80,inOffsetRate:1,outOffsetRate:0.2,bottomOffset:20,minAngle:45,hardwareClass:"mescroll-hardware",mustToTop:false,warpId:null,warpClass:"mescroll-downwarp",resetClass:"mescroll-downwarp-reset",textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",htmlContent:'<p class="downwarp-progress"></p><p class="downwarp-tip"></p>',inited:function(d,c){d.downTipDom=c.getElementsByClassName("downwarp-tip")[0];d.downProgressDom=c.getElementsByClassName("downwarp-progress")[0]},inOffset:function(c){if(c.downTipDom){c.downTipDom.innerHTML=c.optDown.textInOffset}if(c.downProgressDom){c.downProgressDom.classList.remove("mescroll-rotate")}},outOffset:function(c){if(c.downTipDom){c.downTipDom.innerHTML=c.optDown.textOutOffset}},onMoving:function(d,f,c){if(d.downProgressDom){var e=360*f;d.downProgressDom.style.webkitTransform="rotate("+e+"deg)";d.downProgressDom.style.transform="rotate("+e+"deg)"}},beforeLoading:function(d,c){return false},showLoading:function(c){if(c.downTipDom){c.downTipDom.innerHTML=c.optDown.textLoading}if(c.downProgressDom){c.downProgressDom.classList.add("mescroll-rotate")}},afterLoading:function(c){return 0},callback:function(c){c.resetUpScroll()}})};a.prototype.extendUpScroll=function(b){var c=this.os.pc;a.extend(b,{use:true,auto:true,isLock:false,isBoth:false,isBounce:true,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:100,toTop:{warpId:null,src:null,html:null,offset:1000,warpClass:"mescroll-totop",showClass:"mescroll-fade-in",hideClass:"mescroll-fade-out",fadeDuration:0.5,duration:300,supportTap:false,btnClick:null},loadFull:{use:false,delay:500},empty:{warpId:null,icon:null,tip:"暂无相关数据~",btntext:"",btnClick:null,supportTap:false},clearId:null,clearEmptyId:null,hardwareClass:"mescroll-hardware",warpId:null,warpClass:"mescroll-upwarp",htmlLoading:'<p class="upwarp-progress mescroll-rotate"></p><p class="upwarp-tip">加载中..</p>',htmlNodata:'<p class="upwarp-nodata">-- END --</p>',inited:function(d,e){},showLoading:function(d,e){e.innerHTML=d.optUp.htmlLoading},showNoMore:function(d,e){e.innerHTML=d.optUp.htmlNodata},onScroll:null,scrollbar:{use:c,barClass:"mescroll-bar"},lazyLoad:{use:false,attr:"imgurl",showClass:"mescroll-lazy-in",delay:500,offset:200}})};a.extend=function(d,b){if(!d){return b}for(var c in b){if(d[c]==null){d[c]=b[c]}else{if(typeof d[c]==="object"){a.extend(d[c],b[c])}}}return d};a.prototype.initDownScroll=function(){var c=this;c.optDown=c.options.down||{};c.extendDownScroll(c.optDown);c.touchstartEvent=function(f){if(c.isScrollTo){c.preventDefault(f)}c.startPoint=c.getPoint(f);c.lastPoint=c.startPoint;c.maxTouchmoveY=c.getBodyHeight()-c.optDown.bottomOffset;c.inTouchend=false;var d=c.getScrollTop();c.isKeepTop=d===0;if(c.os.pc&&d<=0){c.scrollDom.addEventListener("mousemove",c.touchmoveEvent,{passive:false});document.ondragstart=function(){return false}}};c.scrollDom.addEventListener("mousedown",c.touchstartEvent);c.scrollDom.addEventListener("touchstart",c.touchstartEvent);c.touchmoveEvent=function(l){if(!c.startPoint){return}var d=c.getScrollTop();if(d>0){c.isKeepTop=false}var h=c.getPoint(l);var f=h.y-c.startPoint.y;if(f>0){if(d<=0){c.preventDefault(l);if(c.optDown.use&&!c.inTouchend&&!c.isDownScrolling&&!c.optDown.isLock&&(!c.isUpScrolling||(c.isUpScrolling&&c.optUp.isBoth))){if(c.optDown.mustToTop&&!c.isKeepTop){return}var o=Math.abs(c.lastPoint.x-h.x);var n=Math.abs(c.lastPoint.y-h.y);var m=Math.sqrt(o*o+n*n);if(m!==0){var g=Math.asin(n/m)/Math.PI*180;if(g<c.optDown.minAngle){return}}if(c.maxTouchmoveY>0&&h.y>=c.maxTouchmoveY){c.inTouchend=true;c.touchendEvent();return}var p=h.y-c.lastPoint.y;if(!c.downHight){c.downHight=0}if(c.downHight<c.optDown.offset){if(c.movetype!==1){c.movetype=1;c.optDown.inOffset(c);c.downwarp.classList.remove(c.optDown.resetClass);c.isMoveDown=true;if(c.os.ios&&!c.isKeepTop){c.scrollDom.classList.add(c.optDown.hardwareClass);c.scrollDom.style.webkitOverflowScrolling="auto";c.isSetScrollAuto=true}}c.downHight+=p*c.optDown.inOffsetRate}else{if(c.movetype!==2){c.movetype=2;c.optDown.outOffset(c);c.downwarp.classList.remove(c.optDown.resetClass);c.isMoveDown=true;if(c.os.ios&&!c.isKeepTop){c.scrollDom.classList.add(c.optDown.hardwareClass);c.scrollDom.style.webkitOverflowScrolling="auto";c.isSetScrollAuto=true}}if(p>0){c.downHight+=p*c.optDown.outOffsetRate}else{c.downHight+=p}}c.downwarp.style.height=c.downHight+"px";var k=c.downHight/c.optDown.offset;c.optDown.onMoving(c,k,c.downHight)}}}else{if(f<0){var q=c.getScrollHeight();var j=c.getClientHeight();var i=q-j-d;if(!c.optUp.isBounce&&i<=0){c.preventDefault(l)}if(c.optUp.use&&!c.optUp.isLock&&c.optUp.hasNext&&!c.isUpScrolling&&(!c.isDownScrolling||(c.isDownScrolling&&c.optDown.isBoth))&&(j+c.optUp.offset>=q||i<=0)){c.triggerUpScroll()}}}c.lastPoint=h};c.scrollDom.addEventListener("touchmove",c.touchmoveEvent,{passive:false});c.touchendEvent=function(){if(c.optDown.use&&c.isMoveDown){if(c.downHight>=c.optDown.offset){c.triggerDownScroll()}else{c.downwarp.classList.add(c.optDown.resetClass);c.downHight=0;c.downwarp.style.height=0}if(c.isSetScrollAuto){c.scrollDom.style.webkitOverflowScrolling="touch";c.scrollDom.classList.remove(c.optDown.hardwareClass);c.isSetScrollAuto=false}c.movetype=0;c.isMoveDown=false}if(c.os.pc){c.scrollDom.removeEventListener("mousemove",c.touchmoveEvent);document.ondragstart=function(){return true}}};c.scrollDom.addEventListener("mouseup",c.touchendEvent);c.scrollDom.addEventListener("mouseleave",c.touchendEvent);c.scrollDom.addEventListener("touchend",c.touchendEvent);c.scrollDom.addEventListener("touchcancel",c.touchendEvent);if(c.optDown.use){c.downwarp=document.createElement("div");c.downwarp.className=c.optDown.warpClass;c.downwarp.innerHTML='<div class="downwarp-content">'+c.optDown.htmlContent+"</div>";var b=c.optDown.warpId?c.getDomById(c.optDown.warpId):c.scrollDom;if(c.optDown.warpId&&b){b.appendChild(c.downwarp)}else{if(!b){b=c.scrollDom}b.insertBefore(c.downwarp,c.scrollDom.firstChild)}setTimeout(function(){c.optDown.inited(c,c.downwarp)},0)}};a.prototype.preventDefault=function(b){if(b&&b.cancelable&&!b.defaultPrevented){b.preventDefault()}};a.prototype.getPoint=function(b){return{x:b.touches?b.touches[0].pageX:b.clientX,y:b.touches?b.touches[0].pageY:b.clientY}};a.prototype.triggerDownScroll=function(){if(!this.optDown.beforeLoading(this,this.downwarp)){this.showDownScroll();this.optDown.callback&&this.optDown.callback(this)}};a.prototype.showDownScroll=function(){this.isDownScrolling=true;this.optDown.showLoading(this);this.downHight=this.optDown.offset;this.downwarp.classList.add(this.optDown.resetClass);this.downwarp.style.height=this.optDown.offset+"px"};a.prototype.endDownScroll=function(){var d=this;var c=function(){d.downHight=0;d.downwarp.style.height=0;d.isDownScrolling=false;if(d.downProgressDom){d.downProgressDom.classList.remove("mescroll-rotate")}};var b=d.optDown.afterLoading(d);if(typeof b==="number"&&b>0){setTimeout(c,b)}else{c()}};a.prototype.lockDownScroll=function(b){if(b==null){b=true}this.optDown.isLock=b};a.prototype.initUpScroll=function(){var c=this;c.optUp=c.options.up||{use:false};c.extendUpScroll(c.optUp);if(c.optUp.scrollbar.use){c.scrollDom.classList.add(c.optUp.scrollbar.barClass)}if(!c.optUp.isBounce){c.setBounce(false)}if(c.optUp.use===false){return}c.optUp.hasNext=true;c.upwarp=document.createElement("div");c.upwarp.className=c.optUp.warpClass;var b;if(c.optUp.warpId){b=c.getDomById(c.optUp.warpId)}if(!b){b=c.scrollDom}b.appendChild(c.upwarp);c.preScrollY=0;c.lazyStartTime=new Date().getTime();c.lazyTag="mescroll-lazying";c.scrollEvent=function(){var g=c.getScrollTop();var f=g-c.preScrollY>0;c.preScrollY=g;if(!c.isUpScrolling&&(!c.isDownScrolling||(c.isDownScrolling&&c.optDown.isBoth))){if(!c.optUp.isLock&&c.optUp.hasNext){var d=c.getScrollHeight()-c.getClientHeight()-g;if(d<=c.optUp.offset&&f){c.triggerUpScroll()}}}var h=c.optUp.toTop;if(h.src||h.html){if(g>=h.offset){c.showTopBtn()}else{c.hideTopBtn()}}if(c.optUp.lazyLoad.use){var e=new Date().getTime();c.lazyTimer&&clearTimeout(c.lazyTimer);if(e-c.lazyStartTime>=c.optUp.lazyLoad.delay){c.lazyStartTime=e;c.lazyLoad(0)}else{c.lazyTimer=c.lazyLoad()}}c.optUp.onScroll&&c.optUp.onScroll(c,g,f)};if(c.isScrollBody){window.addEventListener("scroll",c.scrollEvent)}else{c.scrollDom.addEventListener("scroll",c.scrollEvent)}setTimeout(function(){c.optUp.inited(c,c.upwarp)},0)};a.prototype.setBounce=function(b){if(this.isScrollBody||!this.os.ios){return}if(b===false){this.optUp.isBounce=false;window.addEventListener("touchmove",this.bounceTouchmove,{passive:false})}else{this.optUp.isBounce=true;window.removeEventListener("touchmove",this.bounceTouchmove)}};a.prototype.bounceTouchmove=function(h){var j=this;var d=h.target;var f=true;while(d!==document.body&&d!==document){var m=d.classList;if(m){if(m.contains("mescroll")||m.contains("mescroll-touch")){f=false;break}else{if(m.contains("mescroll-touch-x")||m.contains("mescroll-touch-y")){var c=h.touches?h.touches[0].pageX:h.clientX;var b=h.touches?h.touches[0].pageY:h.clientY;if(!j.preWinX){j.preWinX=c}if(!j.preWinY){j.preWinY=b}var l=Math.abs(j.preWinX-c);var k=Math.abs(j.preWinY-b);var i=Math.sqrt(l*l+k*k);j.preWinX=c;j.preWinY=b;if(i!==0){var g=Math.asin(k/i)/Math.PI*180;if((g<=45&&m.contains("mescroll-touch-x"))||(g>45&&m.contains("mescroll-touch-y"))){f=false;break}}}}}d=d.parentNode}if(f&&h.cancelable&&!h.defaultPrevented&&typeof h.preventDefault==="function"){h.preventDefault()}};a.prototype.triggerUpScroll=function(){if(this.optUp.callback&&!this.isUpScrolling){this.showUpScroll();this.optUp.page.num++;this.isUpAutoLoad=true;this.optUp.callback(this.optUp.page,this)}};a.prototype.showUpScroll=function(){this.isUpScrolling=true;this.upwarp.classList.add(this.optUp.hardwareClass);this.upwarp.style.visibility="visible";this.upwarp.style.display="block";this.optUp.showLoading(this,this.upwarp)};a.prototype.showNoMore=function(){this.upwarp.style.visibility="visible";this.upwarp.style.display="block";this.optUp.hasNext=false;this.optUp.showNoMore(this,this.upwarp)};a.prototype.hideUpScroll=function(b){if(b){this.upwarp.style.display="none"}else{this.upwarp.style.visibility="hidden"}this.upwarp.classList.remove(this.optUp.hardwareClass);var c=this.upwarp.getElementsByClassName("upwarp-progress")[0];if(c){c.classList.remove("mescroll-rotate")}};a.prototype.endUpScroll=function(c,b){if(c!=null){if(c){this.showNoMore()}else{this.hideUpScroll(b)}}this.isUpScrolling=false};a.prototype.resetUpScroll=function(c){if(this.optUp&&this.optUp.use){var b=this.optUp.page;this.prePageNum=b.num;this.prePageTime=b.time;b.num=1;b.time=null;if(!this.isDownScrolling&&c!==false){if(c==null){this.removeEmpty();this.clearDataList();this.showUpScroll()}else{this.showDownScroll()}}this.isUpAutoLoad=true;this.optUp.callback&&this.optUp.callback(b,this)}};a.prototype.setPageNum=function(b){this.optUp.page.num=b-1};a.prototype.setPageSize=function(b){this.optUp.page.size=b};a.prototype.clearDataList=function(){var c=this.optUp.clearId||this.optUp.clearEmptyId;if(c){var b=this.getDomById(c);if(b){b.innerHTML=""}}};a.prototype.endByPage=function(c,e,d){var b;if(this.optUp.use&&e!=null){b=this.optUp.page.num<e}this.endSuccess(c,b,d)};a.prototype.endBySize=function(d,c,e){var b;if(this.optUp.use&&c!=null){var f=(this.optUp.page.num-1)*this.optUp.page.size+d;b=f<c}this.endSuccess(d,b,e)};a.prototype.endSuccess=function(c,b,i){var f=this;if(f.isDownScrolling){f.endDownScroll()}if(f.optUp.use){var j;if(c!=null){var e=f.optUp.page.num;var g=f.optUp.page.size;if(e===1){f.clearDataList();if(i){f.optUp.page.time=i}}if(c<g||b===false){f.optUp.hasNext=false;if(c===0&&e===1){j=false;f.showEmpty()}else{var d=(e-1)*g+c;if(d<f.optUp.noMoreSize){j=false}else{j=true}f.removeEmpty()}}else{j=false;f.optUp.hasNext=true;f.removeEmpty()}}var h=!f.optUp.hasNext;f.endUpScroll(j,h);f.loadFull();f.optUp.lazyLoad.use&&f.lazyLoad(16)}};a.prototype.endErr=function(){if(this.isDownScrolling){var b=this.optUp.page;if(b&&this.prePageNum){b.num=this.prePageNum;b.time=this.prePageTime}this.endDownScroll()}if(this.isUpScrolling){this.optUp.page.num--;this.endUpScroll(false)}};a.prototype.loadFull=function(){var b=this;if(b.optUp.loadFull.use&&!b.optUp.isLock&&b.optUp.hasNext&&b.optUp.callback&&b.getScrollHeight()<=b.getClientHeight()){setTimeout(function(){if(b.getScrollHeight()<=b.getClientHeight()){b.triggerUpScroll()}},b.optUp.loadFull.delay)}};a.prototype.lockUpScroll=function(b){if(b==null){b=true}this.optUp.isLock=b};a.prototype.showEmpty=function(){var c=this;var d=c.optUp.empty;var b=d.warpId||c.optUp.clearEmptyId;if(b==null){return}var g=c.getDomById(b);if(g){c.removeEmpty();var f="";if(d.icon){f+='<img class="empty-icon" src="'+d.icon+'"/>'}if(d.tip){f+='<p class="empty-tip">'+d.tip+"</p>"}if(d.btntext){f+='<p class="empty-btn">'+d.btntext+"</p>"}c.emptyDom=document.createElement("div");c.emptyDom.className="mescroll-empty";c.emptyDom.innerHTML=f;g.appendChild(c.emptyDom);if(d.btnClick){var e=c.emptyDom.getElementsByClassName("empty-btn")[0];if(d.supportTap){e.addEventListener("tap",function(h){h.stopPropagation();c.preventDefault(h);d.btnClick()})}else{e.onclick=function(){d.btnClick()}}}}};a.prototype.removeEmpty=function(){this.removeChild(this.emptyDom)};a.prototype.showTopBtn=function(c){if(!this.topBtnShow){this.topBtnShow=true;var d=this;var e=d.optUp.toTop;if(d.toTopBtn==null){if(e.html){d.toTopBtn=document.createElement("div");d.toTopBtn.innerHTML=e.html}else{d.toTopBtn=document.createElement("img");d.toTopBtn.src=e.src}d.toTopBtn.className=e.warpClass;if(e.supportTap){d.toTopBtn.addEventListener("tap",function(g){g.stopPropagation();d.preventDefault(g);var f=e.btnClick&&e.btnClick();if(f!==true){d.scrollTo(0,d.optUp.toTop.duration)}})}else{d.toTopBtn.onclick=function(){var f=e.btnClick&&e.btnClick();if(f!==true){d.scrollTo(0,d.optUp.toTop.duration)}}}var b;if(e.warpId){b=d.getDomById(e.warpId)}if(!b){b=document.body}b.appendChild(d.toTopBtn)}d.toTopBtn.classList.remove(e.hideClass);d.toTopBtn.classList.add(e.showClass);d.setTopBtnFadeDuration(c)}};a.prototype.hideTopBtn=function(b){if(this.topBtnShow&&this.toTopBtn){this.topBtnShow=false;this.toTopBtn.classList.remove(this.optUp.toTop.showClass);this.toTopBtn.classList.add(this.optUp.toTop.hideClass);this.setTopBtnFadeDuration(b)}};a.prototype.setTopBtnFadeDuration=function(b){if(this.toTopBtn){var c=(b!=null?b:this.optUp.toTop.fadeDuration)+"s";this.toTopBtn.style.animationDuration=c;this.toTopBtn.style.webkitAnimationDuration=c}};a.prototype.scrollTo=function(g,c){var d=this;var f=d.getScrollTop();var b=g;if(b>0){var e=d.getScrollHeight()-d.getClientHeight();if(b>e){b=e}}else{b=0}d.isScrollTo=true;d.scrollDom.style.webkitOverflowScrolling="auto";d.getStep(f,b,function(h){d.setScrollTop(h);if(h===b){d.scrollDom.style.webkitOverflowScrolling="touch";d.isScrollTo=false}},c)};a.prototype.getStep=function(f,d,k,l,h){var j=d-f;if(l===0||j===0){k&&k(d);return}l=l||300;h=h||30;var g=l/h;var c=j/g;var e=0;var b=window.setInterval(function(){if(e<g-1){f+=c;k&&k(f,b);e++}else{k&&k(d,b);window.clearInterval(b)}},h)};a.prototype.lazyLoad=function(b){var d=this;var c=b!=null?b:d.optUp.lazyLoad.delay;var e=setTimeout(function(){var k=d.scrollDom.querySelectorAll("["+d.optUp.lazyLoad.attr+"]");var f=k.length;for(var j=0;j<f;j++){var l=k[j];if(l.getAttribute(d.lazyTag)!=="true"&&d.isInSee(l,d.optUp.lazyLoad.offset)){var h=l.getAttribute(d.optUp.lazyLoad.attr);var g=new Image();g.onload=function(){var i=this.src;var n=this.dom;var m=d.optUp.lazyLoad.showClass;m&&n.classList.add(m);if(n.tagName==="IMG"){n.src=i}else{n.style.backgroundImage="url("+i+")"}n.removeAttribute(d.optUp.lazyLoad.attr);n.removeAttribute(d.lazyTag)};g.onerror=function(){this.dom.removeAttribute(d.lazyTag)};g.onabort=function(){this.dom.removeAttribute(d.lazyTag)};g.src=h;l.setAttribute(d.lazyTag,"true");g.dom=l}}},c);return e};a.prototype.isInSee=function(f,e){e=e||0;var b=this.getOffsetTop(f);var d=this.getScrollTop()-e;var g=b+f.offsetHeight;var c=d+e+this.getClientHeight()+e;return(b<c&&b>=d)||(g<=c&&g>d)};a.prototype.getOffsetTop=function(d){var c=d.offsetTop;var b=d.offsetParent;while(b!=null&&b!==this.scrollDom){c+=b.offsetTop+b.clientTop;b=b.offsetParent}return c};a.prototype.getScrollHeight=function(){return this.scrollDom.scrollHeight};a.prototype.getClientHeight=function(){if(this.isScrollBody&&document.compatMode==="CSS1Compat"){return document.documentElement.clientHeight}else{return this.scrollDom.clientHeight}};a.prototype.getBodyHeight=function(){return document.body.clientHeight||document.documentElement.clientHeight};a.prototype.getScrollTop=function(){if(this.isScrollBody){return document.documentElement.scrollTop||document.body.scrollTop}else{return this.scrollDom.scrollTop}};a.prototype.getToBottom=function(){return this.getScrollHeight()-this.getClientHeight()-this.getScrollTop()};a.prototype.setScrollTop=function(b){if(typeof b==="number"){if(this.isScrollBody){document.documentElement.scrollTop=b;document.body.scrollTop=b}else{this.scrollDom.scrollTop=b}}};a.prototype.getDomById=function(c){var b;if(c){if(typeof c==="string"){b=document.getElementById(c)}else{if(c.nodeType){b=c}}}if(!b){console.error('the element with id as "'+c+'" can not be found: document.getElementById("'+c+'")==null')}return b};a.prototype.removeChild=function(c){if(c){var b=c.parentNode;b&&b.removeChild(c);c=null}};a.prototype.destroy=function(){var b=this;b.scrollDom.removeEventListener("touchstart",b.touchstartEvent);b.scrollDom.removeEventListener("touchmove",b.touchmoveEvent);b.scrollDom.removeEventListener("touchend",b.touchendEvent);b.scrollDom.removeEventListener("touchcancel",b.touchendEvent);b.scrollDom.removeEventListener("mousedown",b.touchstartEvent);b.scrollDom.removeEventListener("mousemove",b.touchmoveEvent);b.scrollDom.removeEventListener("mouseup",b.touchendEvent);b.scrollDom.removeEventListener("mouseleave",b.touchendEvent);b.removeChild(b.downwarp);if(b.isScrollBody){window.removeEventListener("scroll",b.scrollEvent)}else{b.scrollDom.removeEventListener("scroll",b.scrollEvent)}b.removeChild(b.upwarp);b.removeChild(b.toTopBtn);b.setBounce(true)};return a});// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1922);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0f839e72", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, "/* mescroll\r\n * version 1.4.2\n * 2019-08-01 wenju\r\n * http://www.mescroll.com\r\n */\r\nhtml,body{height:100%}body{-webkit-overflow-scrolling:touch}.mescroll{width:100%;height:100%;overflow-y:auto}.mescroll-hardware{-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden;-webkit-perspective:1000}.mescroll-downwarp{position:relative;width:100%;height:0;overflow:hidden;text-align:center}.mescroll-downwarp-reset{-webkit-transition:height 300ms;transition:height 300ms}.mescroll-downwarp .downwarp-content{position:absolute;left:0;bottom:0;width:100%;min-height:30px;padding:10px 0}.mescroll-upwarp{min-height:30px;padding:15px 0;text-align:center;visibility:hidden}.mescroll-downwarp .downwarp-tip,.mescroll-upwarp .upwarp-tip,.mescroll-upwarp .upwarp-nodata{display:inline-block;font-size:12px;color:gray;vertical-align:middle}.mescroll-downwarp .downwarp-tip,.mescroll-upwarp .upwarp-tip{margin-left:8px}.mescroll-downwarp .downwarp-progress,.mescroll-upwarp .upwarp-progress{display:inline-block;width:16px;height:16px;border-radius:50%;border:1px solid gray;border-bottom-color:transparent;vertical-align:middle}.mescroll-rotate{-webkit-animation:mescrollRotate .6s linear infinite;animation:mescrollRotate .6s linear infinite}@-webkit-keyframes mescrollRotate{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes mescrollRotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.mescroll-empty{width:100%;padding-top:20px;text-align:center}.mescroll-empty .empty-icon{width:45%}.mescroll-empty .empty-tip{margin-top:6px;font-size:14px;color:gray}.mescroll-empty .empty-btn{max-width:50%;margin:20px auto;padding:10px;border:1px solid #65aadd;border-radius:6px;background-color:white;color:#65aadd}.mescroll-empty .empty-btn:active{opacity:.75}.mescroll-totop{z-index:9990;position:fixed;right:10px;bottom:30px;width:36px;height:36px;border-radius:50%;opacity:0}.mescroll-lazy-in,.mescroll-fade-in{-webkit-animation:mescrollFadeIn .5s linear forwards;animation:mescrollFadeIn .5s linear forwards}@-webkit-keyframes mescrollFadeIn{0%{opacity:0}100%{opacity:1}}@keyframes mescrollFadeIn{0%{opacity:0}100%{opacity:1}}.mescroll-fade-out{pointer-events:none;-webkit-animation:mescrollFadeOut .5s linear forwards;animation:mescrollFadeOut .5s linear forwards}@-webkit-keyframes mescrollFadeOut{0%{opacity:1}100%{opacity:0}}@keyframes mescrollFadeOut{0%{opacity:1}100%{opacity:0}}.mescroll-bar::-webkit-scrollbar-track{background-color:transparent}.mescroll-bar::-webkit-scrollbar{width:6px}.mescroll-bar::-webkit-scrollbar-thumb{border-radius:6px;background-color:#ccc}.mescroll-bar::-webkit-scrollbar-thumb:hover{background-color:#aaa}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/mescroll.js/mescroll.min.css"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,UAAU,WAAW,CAAC,KAAK,gCAAgC,CAAC,UAAU,WAAW,YAAY,eAAe,CAAC,mBAAmB,gCAAgC,oCAAoC,mCAAmC,wBAAwB,CAAC,mBAAmB,kBAAkB,WAAW,SAAS,gBAAgB,iBAAiB,CAAC,yBAAyB,gCAAgC,uBAAuB,CAAC,qCAAqC,kBAAkB,OAAO,SAAS,WAAW,gBAAgB,cAAc,CAAC,iBAAiB,gBAAgB,eAAe,kBAAkB,iBAAiB,CAAC,8FAA8F,qBAAqB,eAAe,WAAW,qBAAqB,CAAC,8DAA8D,eAAe,CAAC,wEAAwE,qBAAqB,WAAW,YAAY,kBAAkB,sBAAsB,gCAAgC,qBAAqB,CAAC,iBAAiB,qDAAqD,4CAA4C,CAAC,kCAAkC,GAAG,8BAA8B,CAAC,KAAK,gCAAgC,CAAC,CAAC,0BAA0B,GAAG,sBAAsB,CAAC,KAAK,wBAAwB,CAAC,CAAC,gBAAgB,WAAW,iBAAiB,iBAAiB,CAAC,4BAA4B,SAAS,CAAC,2BAA2B,eAAe,eAAe,UAAU,CAAC,2BAA2B,cAAc,iBAAiB,aAAa,yBAAyB,kBAAkB,uBAAuB,aAAa,CAAC,kCAAkC,WAAW,CAAC,gBAAgB,aAAa,eAAe,WAAW,YAAY,WAAW,YAAY,kBAAkB,SAAS,CAAC,oCAAoC,qDAAqD,4CAA4C,CAAC,kCAAkC,GAAG,SAAS,CAAC,KAAK,SAAS,CAAC,CAAC,0BAA0B,GAAG,SAAS,CAAC,KAAK,SAAS,CAAC,CAAC,mBAAmB,oBAAoB,sDAAsD,6CAA6C,CAAC,mCAAmC,GAAG,SAAS,CAAC,KAAK,SAAS,CAAC,CAAC,2BAA2B,GAAG,SAAS,CAAC,KAAK,SAAS,CAAC,CAAC,uCAAuC,4BAA4B,CAAC,iCAAiC,SAAS,CAAC,uCAAuC,kBAAkB,qBAAqB,CAAC,6CAA6C,qBAAqB,CAAC","file":"mescroll.min.css","sourcesContent":["/* mescroll\r\n * version 1.4.2\n * 2019-08-01 wenju\r\n * http://www.mescroll.com\r\n */\r\nhtml,body{height:100%}body{-webkit-overflow-scrolling:touch}.mescroll{width:100%;height:100%;overflow-y:auto}.mescroll-hardware{-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden;-webkit-perspective:1000}.mescroll-downwarp{position:relative;width:100%;height:0;overflow:hidden;text-align:center}.mescroll-downwarp-reset{-webkit-transition:height 300ms;transition:height 300ms}.mescroll-downwarp .downwarp-content{position:absolute;left:0;bottom:0;width:100%;min-height:30px;padding:10px 0}.mescroll-upwarp{min-height:30px;padding:15px 0;text-align:center;visibility:hidden}.mescroll-downwarp .downwarp-tip,.mescroll-upwarp .upwarp-tip,.mescroll-upwarp .upwarp-nodata{display:inline-block;font-size:12px;color:gray;vertical-align:middle}.mescroll-downwarp .downwarp-tip,.mescroll-upwarp .upwarp-tip{margin-left:8px}.mescroll-downwarp .downwarp-progress,.mescroll-upwarp .upwarp-progress{display:inline-block;width:16px;height:16px;border-radius:50%;border:1px solid gray;border-bottom-color:transparent;vertical-align:middle}.mescroll-rotate{-webkit-animation:mescrollRotate .6s linear infinite;animation:mescrollRotate .6s linear infinite}@-webkit-keyframes mescrollRotate{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes mescrollRotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.mescroll-empty{width:100%;padding-top:20px;text-align:center}.mescroll-empty .empty-icon{width:45%}.mescroll-empty .empty-tip{margin-top:6px;font-size:14px;color:gray}.mescroll-empty .empty-btn{max-width:50%;margin:20px auto;padding:10px;border:1px solid #65aadd;border-radius:6px;background-color:white;color:#65aadd}.mescroll-empty .empty-btn:active{opacity:.75}.mescroll-totop{z-index:9990;position:fixed;right:10px;bottom:30px;width:36px;height:36px;border-radius:50%;opacity:0}.mescroll-lazy-in,.mescroll-fade-in{-webkit-animation:mescrollFadeIn .5s linear forwards;animation:mescrollFadeIn .5s linear forwards}@-webkit-keyframes mescrollFadeIn{0%{opacity:0}100%{opacity:1}}@keyframes mescrollFadeIn{0%{opacity:0}100%{opacity:1}}.mescroll-fade-out{pointer-events:none;-webkit-animation:mescrollFadeOut .5s linear forwards;animation:mescrollFadeOut .5s linear forwards}@-webkit-keyframes mescrollFadeOut{0%{opacity:1}100%{opacity:0}}@keyframes mescrollFadeOut{0%{opacity:1}100%{opacity:0}}.mescroll-bar::-webkit-scrollbar-track{background-color:transparent}.mescroll-bar::-webkit-scrollbar{width:6px}.mescroll-bar::-webkit-scrollbar-thumb{border-radius:6px;background-color:#ccc}.mescroll-bar::-webkit-scrollbar-thumb:hover{background-color:#aaa}"],"sourceRoot":""}]);

// exports
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"mescroll"},[_c('div',[_vm._t("default")],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(342);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_041f0f25_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(944);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2187)
  __webpack_require__(2189)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-041f0f25"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_041f0f25_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_041f0f25_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2188);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6de7f822", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ctrl-box .van-switch__node{height:.85rem;width:.85rem;top:.17rem;left:.17rem}.ctrl-box .van-switch--on .van-switch__node{-webkit-transform:translateX(1rem)!important;-ms-transform:translateX(1rem)!important;transform:translateX(1rem)!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2190);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6653c68d", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".problem-list .van-cell[data-v-041f0f25]{padding:0}.problem-list .van-cell[data-v-041f0f25]:after{display:none}[class*=hairline][data-v-041f0f25]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-041f0f25]{font-family:PingFangSC-Regular,PingFang SC;-webkit-overflow-scrolling:touch}.mescroll[data-v-041f0f25]{position:absolute;top:2.45rem}.ctrl-box[data-v-041f0f25]{padding:0 .6rem;border-bottom:.6rem solid #f4f5f6}.ctrl-box .van-switch[data-v-041f0f25]{width:2.2rem;height:1.2rem;border:none}.ctrl-box .ctrl[data-v-041f0f25]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.7rem}.ctrl-box .ctrl[data-v-041f0f25]:last-child:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px;border-color:#f4f5f6}.ctrl-box .ctrl>span[data-v-041f0f25]{color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.ctrl-box .ctrl .right[data-v-041f0f25]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ctrl-box .ctrl .right span[data-v-041f0f25]{color:#666;font:13px/1 PingFangSC-Regular;margin-right:.3rem}.ctrl-box .ctrl .right img[data-v-041f0f25]{width:.3rem;height:.5rem}.tabs-container[data-v-041f0f25]{position:fixed;top:0;width:100%;height:2.45rem;z-index:2;background-color:#fff}.tabs-container[data-v-041f0f25]:before{left:0;right:0;width:100%;margin-bottom:-.1rem;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.tabs-container .tabs[data-v-041f0f25]{white-space:nowrap;overflow-x:auto;overflow-y:hidden}.tabs-container .tabs .tab-item[data-v-041f0f25]{position:relative;display:inline-block;height:2.45rem;padding:0 .5rem}.tabs-container .tabs .tab-item[data-v-041f0f25]:first-child{margin-left:.3rem}.tabs-container .tabs .tab-item[data-v-041f0f25]:last-child{margin-right:.3rem}.tabs-container .tabs .tab-item .item-inner[data-v-041f0f25]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit}.tabs-container .tabs .tab-item span[data-v-041f0f25]{line-height:1.05rem;font-size:.75rem;color:#999}.tabs-container .tabs .tab-item.active[data-v-041f0f25]:after{display:block;content:\"\";position:absolute;bottom:0;left:50%;margin-left:-.5rem;width:1rem;height:.2rem;background-color:#177afa;border-radius:.1rem;z-index:2}.tabs-container .tabs .tab-item.active span[data-v-041f0f25]{font-weight:600;font-size:.9rem;color:#333}.problem-container[data-v-041f0f25]{position:relative;height:100%}.problem-container .problem-list[data-v-041f0f25]{height:inherit;padding:0 .6rem}.problem-container .problem-list .problem-panel[data-v-041f0f25]{margin-top:1rem}.problem-container .problem-list .problem-panel .panel-top[data-v-041f0f25]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.5rem}.problem-container .problem-list .problem-panel .panel-top .avatar[data-v-041f0f25]{width:1.6rem;height:1.6rem;margin-right:.4rem;margin-top:.1rem;border-radius:100%;overflow:hidden}.problem-container .problem-list .problem-panel .panel-top .info[data-v-041f0f25]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.problem-container .problem-list .problem-panel .panel-top .info span[data-v-041f0f25]{display:block;line-height:.8rem;font-size:.6rem;color:#999;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.problem-container .problem-list .problem-panel .panel-top .info .name[data-v-041f0f25]{display:inline-block;max-width:8rem;line-height:1rem;font-size:.7rem;color:#333;vertical-align:top}.problem-container .problem-list .problem-panel .panel-top .info .vip-icon[data-v-041f0f25]{display:inline-block;width:.75rem;height:.75rem;margin-left:.32rem;margin-top:.125rem;background:url(" + escape(__webpack_require__(282)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:top}.problem-container .problem-list .problem-panel .panel-top .info .admin[data-v-041f0f25]{color:#177afa}.problem-container .problem-list .problem-panel .panel-top .info p[data-v-041f0f25]{line-height:.8rem;font-size:.6rem;color:#999}.problem-container .problem-list .problem-panel .panel-top .time[data-v-041f0f25]{line-height:.9rem;font-size:.65rem;color:#999}.problem-container .problem-list .problem-panel .panel-content[data-v-041f0f25]{padding:.6rem;background-color:#f4f5f6;border-radius:.4rem}.problem-container .problem-list .problem-panel .panel-content h3[data-v-041f0f25]{margin-bottom:.2rem;line-height:1.25rem;font-size:.9rem;font-weight:600;color:#333;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.problem-container .problem-list .problem-panel .panel-content .cell[data-v-041f0f25]{margin-bottom:.6rem;line-height:.9rem;font-size:0}.problem-container .problem-list .problem-panel .panel-content .cell span[data-v-041f0f25]{margin-right:.6rem;line-height:.9rem;font-size:.65rem;color:#999}.problem-container .problem-list .problem-panel .panel-content .meta[data-v-041f0f25]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:1.5rem;line-height:1.05rem}.problem-container .problem-list .problem-panel .panel-content .meta .meta-cell[data-v-041f0f25]{font-size:0}.problem-container .problem-list .problem-panel .panel-content .meta .meta-cell .f-c_25BF93[data-v-041f0f25]{color:#25bf93}.problem-container .problem-list .problem-panel .panel-content .meta .meta-cell .f-c_FB5F5F[data-v-041f0f25]{color:#fb5f5f}.problem-container .problem-list .problem-panel .panel-content .meta .meta-cell .f-c_FB985F[data-v-041f0f25]{color:#fb985f}.problem-container .problem-list .problem-panel .panel-content .meta .xs[data-v-041f0f25]{font-size:.75rem}.problem-container .problem-list .problem-panel .panel-content .meta .xs .xs-icon[data-v-041f0f25]{width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.problem-container .problem-list .problem-panel .panel-content .meta .xs.xs-1[data-v-041f0f25]{color:#fb5f5f}.problem-container .problem-list .problem-panel .panel-content .meta .xs.xs-2[data-v-041f0f25]{color:#fb985f}.problem-container .problem-list .problem-panel .panel-content .meta .mark-text[data-v-041f0f25]{font-size:.65rem;color:#999}.problem-container .result-null[data-v-041f0f25]{text-align:center;margin-top:1rem;font-size:.7rem;color:#999}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/crown.37adca8.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(171));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    msgDialog: _msgDialog.default,
    MescrollVue: _mescroll.default
  },
  data: function data() {
    return {
      handelscroll: '',
      activeIdx: 0,
      dialogMsg: {},
      tabs: [{
        name: '全部',
        questionStatus: 0
      }, {
        name: '未接单',
        questionStatus: 1
      }, {
        name: '已接单',
        questionStatus: 2
      }, {
        name: '已关闭',
        questionStatus: 3
      }, {
        name: '已评价',
        questionStatus: 4
      }, {
        name: '已取消',
        questionStatus: 5
      }],
      // 筛选tab集合
      squareListLoading: false,
      finished: false,
      refreshing: false,
      finishedText: '',
      questionStatus: 0,
      squareList: [],
      isAdmin: false,
      // 是否是管理员
      mescroll: null,
      mescrollDown: {},
      mescrollUp: {
        auto: false,
        callback: this.getSquareList,
        page: {
          num: 1,
          size: 10
        },
        isBounce: false,
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      }
    };
  },
  created: function created() {
    var _this = this;
    this.isReportAdmin();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num || 0);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问题广场页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
    this.mescroll.destroy();
    this.mescroll = null;
  },
  mounted: function mounted() {
    var _this2 = this;
    this.getDataAndPosition();
    this.shareConfig();
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this2.shareConfig();
        });
      }, 300);
    }
  },
  methods: {
    /**
     * 是否是管理员
     * 没有权限跳转问答首页
     */
    isReportAdmin: function isReportAdmin() {
      var _this3 = this;
      this._Util.post(this._Api.IS_ADMIN, {}, function (data) {
        if (!data) {
          if (_this3._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'questionsOrAnswers',
                url: "".concat(location.origin, "/v2/questionsOrAnswers")
              }
            });
          } else {
            _this3.$router.push({
              name: 'questionsOrAnswers'
            });
          }
        }
      }, function () {}, this, true);
    },
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 切换Tab
     */
    switchTab: function switchTab(item, index) {
      this.questionStatus = item.questionStatus;
      this.activeIdx = index;
      this.mescrollUp.page.num = 1;
      this.getSquareList({
        num: this.mescrollUp.page.num
      });
      this._Util.sensorsCollect('element_click', {
        operation_page: '问题广场',
        element_name: '问题筛选',
        element_content: index === 2 ? '星豆悬赏' : index === 1 ? '现金悬赏' : '全部问题',
        element_class_name: '',
        element_type: '',
        element_target_url: '',
        url: location.href,
        title: '问题广场',
        moudle_type: '问答',
        correlation_id: ''
      });
    },
    /**
     * 获取广场列表
     */
    getSquareList: function getSquareList(page) {
      var _this4 = this;
      this.finishedText = '';
      if (page.num === 1) {
        this.squareList = [];
      }
      this._Util.post(this._Api.GET_QA_QUESTION_SQUARE_LIST, {
        questionStatus: this.questionStatus,
        pageNum: page.num,
        pageSize: 10
      }, function (data) {
        var list = data.dataList || [];
        if (list.length > 0) {
          list.forEach(function (item) {
            item.tag1 = item.vehicleBrandName && item.vehicleModeName ? "".concat(item.vehicleBrandName, " ").concat(item.vehicleModeName) : item.vehicleBrandName && !item.vehicleModeName ? "".concat(item.vehicleBrandName) : null;
            item.tag2 = item.engineBrandName && item.engineModeName ? "".concat(item.engineBrandName, " ").concat(item.engineModeName) : item.engineBrandName && !item.engineModeName ? "".concat(item.engineBrandName) : null;
            item.tag3 = item.ecuBrandName && item.ecuModeName ? "".concat(item.ecuBrandName, " ").concat(item.ecuModeName) : item.ecuBrandName && !item.ecuModeName ? "".concat(item.ecuBrandName) : null;
          });
        }
        _this4.squareList = _this4.squareList.concat(list);
        if (list.length === 0 && _this4.squareList.length === 0) {
          _this4.finishedText = '暂无数据';
        }
        _this4.$nextTick(function () {
          _this4.mescroll.endSuccess(list.length);
        });
        _this4._Util.sensorsCollect('pageturning', {
          operation_page: '问题广场',
          file_page: page.num,
          paging_num: 10,
          moudle_type: '问答'
        });
      }, function () {}, this, true);
    },
    /**
     * 订单详情
     */
    orderDetail: function orderDetail(item) {
      this.saveDataAndPosition();
      if (item.dialogId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'conversationV13' + new Date().getTime(),
              url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.dialogId, "&ascription=answer")
            }
          });
        } else {
          this.$router.push({
            name: 'conversationV13',
            query: {
              questionNo: item.questionNo,
              id: item.dialogId,
              ascription: 'answer'
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'questionDetails',
              url: "".concat(location.origin, "/v2/questionsOrAnswers/questionDetails?questionNo=").concat(item.questionNo)
            }
          });
        } else {
          this.$router.push({
            name: 'questionDetails',
            query: {
              questionNo: item.questionNo
            }
          });
        }
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '卡修宝典-问题广场',
        desc: '抢单答题赢现金星豆',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        squareList: this.squareList,
        questionStatus: this.questionStatus,
        activeIdx: this.activeIdx,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_qList', JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_qList'));
      if (position) {
        sessionStorage.removeItem('_qList');
        this.questionStatus = position.questionStatus;
        this.activeIdx = position.activeIdx;
        this.squareList = position.squareList;
        this.mescrollUp.page.num = position.pageNum;
        this.$nextTick(function () {
          document.getElementById('savePosition').scrollTo(0, position.scrollTop);
        });
      } else {
        this.getSquareList({
          num: 1
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"problem-container"},[_c('div',{staticClass:"tabs-container hairline mescroll-touch-x"},[_c('div',{staticClass:"tabs"},_vm._l((_vm.tabs),function(tab,index){return _c('div',{key:index,staticClass:"tab-item",class:{'active': _vm.activeIdx === index},on:{"click":function($event){return _vm.switchTab(tab, index)}}},[_c('div',{staticClass:"item-inner"},[_c('span',[_vm._v(_vm._s(tab.name))])])])}),0)]),_vm._v(" "),_c('mescroll-vue',{ref:"mescroll",staticStyle:{"height":"calc(100% - 2.45rem)"},attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_vm._l((_vm.squareList),function(item,index){return _c('div',{key:index,staticClass:"problem-list",on:{"click":function($event){return _vm.orderDetail(item)}}},[_c('div',{staticClass:"problem-panel"},[_c('div',{staticClass:"panel-top"},[(item.headImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":item.headImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.createUserName))]),_vm._v(" "),(item.userStatus === 2)?_c('span',{staticClass:"vip-icon"}):_vm._e(),_vm._v(" "),_c('span',{staticClass:"status"},[_vm._v(_vm._s(item.receiverDesc))])]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.isToday(item.createTime) ? _vm._Util.dateFormat(item.createTime, 'hh:mm') : _vm._Util.dateFormat(item.createTime, 'yyyy-MM-dd')))])]),_vm._v(" "),_c('div',{staticClass:"panel-content"},[_c('h3',[_vm._v(_vm._s(item.questionTitle))]),_vm._v(" "),_c('div',{staticClass:"cell"},[(item.tag1)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag1))]):_vm._e(),_vm._v(" "),(item.tag2)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag2))]):_vm._e(),_vm._v(" "),(item.tag3)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag3))]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('div',{staticClass:"meta-cell xs xs-1"},[(item.payableCashBounty > 0)?_c('span',[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("悬赏"+_vm._s(item.payableCashBounty)+"元")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"meta-cell mark-text"},[_c('span',{class:item.dialogueStatus === 4 ? 'f-c_25BF93' : item.dialogueStatus === 6 ? 'f-c_FB5F5F' : ''},[_vm._v(_vm._s(item.dialogueStatus === 4 ? '已解决' : item.dialogueStatus === 6 ? '未解决' : '未标记'))]),_vm._v(",\n                "),_c('span',{class:{ 'f-c_FB985F': item.commentStars > 0 }},[_vm._v(_vm._s(item.commentStars > 0 ? ((item.commentStars) + "星") : "未评价"))])])])])])])}),_vm._v(" "),(_vm.squareList.length === 0)?_c('p',{staticClass:"result-null"},[_vm._v(_vm._s(_vm.finishedText))]):_vm._e()],2)],1),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(2199);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2200);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4dc82553", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-radio{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:12px}.van-radio__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:20px;line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid #c8c9cc;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--checked .van-icon{color:#fff;background-color:#1989fa;border-color:#1989fa}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:#ebedf0;border-color:#c8c9cc}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:#c8c9cc}.van-radio__label{margin-left:8px;color:#323233;line-height:20px}.van-radio__label--left{margin:0 8px 0 0}.van-radio__label--disabled{color:#c8c9cc}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/radio/index.css"],"names":[],"mappings":"AAAA,WAAW,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,gBAAgB,eAAe,yBAAyB,gBAAgB,CAAC,qBAAqB,kBAAkB,CAAC,2BAA2B,cAAc,CAAC,uBAAuB,iBAAiB,CAAC,iBAAiB,mBAAmB,kBAAkB,UAAU,WAAW,eAAe,gBAAgB,cAAc,CAAC,2BAA2B,cAAc,sBAAsB,aAAa,cAAc,kBAAkB,eAAe,iBAAiB,kBAAkB,yBAAyB,gCAAgC,wBAAwB,gEAAgE,uDAAuD,CAAC,kCAAkC,kBAAkB,CAAC,oCAAoC,WAAW,yBAAyB,oBAAoB,CAAC,2BAA2B,kBAAkB,CAAC,qCAAqC,yBAAyB,oBAAoB,CAAC,8DAA8D,aAAa,CAAC,kBAAkB,gBAAgB,cAAc,gBAAgB,CAAC,wBAAwB,gBAAgB,CAAC,4BAA4B,aAAa,CAAC","file":"index.css","sourcesContent":[".van-radio{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:12px}.van-radio__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:20px;line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid #c8c9cc;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--checked .van-icon{color:#fff;background-color:#1989fa;border-color:#1989fa}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:#ebedf0;border-color:#c8c9cc}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:#c8c9cc}.van-radio__label{margin-left:8px;color:#323233;line-height:20px}.van-radio__label--left{margin:0 8px 0 0}.van-radio__label--disabled{color:#c8c9cc}"],"sourceRoot":""}]);

// exports


exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _checkbox = __webpack_require__(1381);

var _createNamespace = (0, _utils.createNamespace)('radio'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _checkbox.CheckboxMixin)({
    bem: bem,
    role: 'radio',
    parent: 'vanRadio'
  })],
  computed: {
    currentValue: {
      get: function get() {
        return this.parent ? this.parent.value : this.value;
      },
      set: function set(val) {
        (this.parent || this).$emit('input', val);
      }
    },
    checked: function checked() {
      return this.currentValue === this.name;
    }
  },
  methods: {
    toggle: function toggle() {
      this.currentValue = this.name;
    }
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.CheckboxMixin = void 0;

var _icon = _interopRequireDefault(__webpack_require__(35));

var _field = __webpack_require__(202);

var _relation = __webpack_require__(73);

var _utils = __webpack_require__(18);

/**
 * Common part of Checkbox & Radio
 */
var CheckboxMixin = function CheckboxMixin(_ref) {
  var parent = _ref.parent,
      bem = _ref.bem,
      role = _ref.role;
  return {
    mixins: [(0, _relation.ChildrenMixin)(parent), _field.FieldMixin],
    props: {
      name: null,
      value: null,
      disabled: Boolean,
      iconSize: [Number, String],
      checkedColor: String,
      labelPosition: String,
      labelDisabled: Boolean,
      shape: {
        type: String,
        default: 'round'
      },
      bindGroup: {
        type: Boolean,
        default: true
      }
    },
    computed: {
      disableBindRelation: function disableBindRelation() {
        return !this.bindGroup;
      },
      isDisabled: function isDisabled() {
        return this.parent && this.parent.disabled || this.disabled;
      },
      direction: function direction() {
        return this.parent && this.parent.direction || null;
      },
      iconStyle: function iconStyle() {
        var checkedColor = this.checkedColor || this.parent && this.parent.checkedColor;

        if (checkedColor && this.checked && !this.isDisabled) {
          return {
            borderColor: checkedColor,
            backgroundColor: checkedColor
          };
        }
      },
      tabindex: function tabindex() {
        if (this.isDisabled || role === 'radio' && !this.checked) {
          return -1;
        }

        return 0;
      }
    },
    methods: {
      onClick: function onClick(event) {
        var _this = this;

        var target = event.target;
        var icon = this.$refs.icon;
        var iconClicked = icon === target || (icon == null ? void 0 : icon.contains(target));

        if (!this.isDisabled && (iconClicked || !this.labelDisabled)) {
          this.toggle(); // wait for toggle method to complete
          // so we can get the changed value in the click event listener

          setTimeout(function () {
            _this.$emit('click', event);
          });
        } else {
          this.$emit('click', event);
        }
      },
      genIcon: function genIcon() {
        var h = this.$createElement;
        var checked = this.checked;
        var iconSize = this.iconSize || this.parent && this.parent.iconSize;
        return h("div", {
          "ref": "icon",
          "class": bem('icon', [this.shape, {
            disabled: this.isDisabled,
            checked: checked
          }]),
          "style": {
            fontSize: (0, _utils.addUnit)(iconSize)
          }
        }, [this.slots('icon', {
          checked: checked
        }) || h(_icon.default, {
          "attrs": {
            "name": "success"
          },
          "style": this.iconStyle
        })]);
      },
      genLabel: function genLabel() {
        var h = this.$createElement;
        var slot = this.slots();

        if (slot) {
          return h("span", {
            "class": bem('label', [this.labelPosition, {
              disabled: this.isDisabled
            }])
          }, [slot]);
        }
      }
    },
    render: function render() {
      var h = arguments[0];
      var Children = [this.genIcon()];

      if (this.labelPosition === 'left') {
        Children.unshift(this.genLabel());
      } else {
        Children.push(this.genLabel());
      }

      return h("div", {
        "attrs": {
          "role": role,
          "tabindex": this.tabindex,
          "aria-checked": String(this.checked)
        },
        "class": bem([{
          disabled: this.isDisabled,
          'label-disabled': this.labelDisabled
        }, this.direction]),
        "on": {
          "click": this.onClick
        }
      }, [Children]);
    }
  };
};

exports.CheckboxMixin = CheckboxMixin;__webpack_require__(26);
__webpack_require__(2203);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2204);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("693bd105", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-radio-group--horizontal{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/radio-group/index.css"],"names":[],"mappings":"AAAA,6BAA6B,oBAAoB,qBAAqB,aAAa,uBAAuB,cAAc,CAAC","file":"index.css","sourcesContent":[".van-radio-group--horizontal{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}"],"sourceRoot":""}]);

// exports


exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _field = __webpack_require__(202);

var _relation = __webpack_require__(73);

var _createNamespace = (0, _utils.createNamespace)('radio-group'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _relation.ParentMixin)('vanRadio'), _field.FieldMixin],
  props: {
    value: null,
    disabled: Boolean,
    direction: String,
    checkedColor: String,
    iconSize: [Number, String]
  },
  watch: {
    value: function value(_value) {
      this.$emit('change', _value);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem([this.direction]),
      "attrs": {
        "role": "radiogroup"
      }
    }, [this.slots()]);
  }
});

exports.default = _default;__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(344);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f4fe51f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(946);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2193)
  __webpack_require__(2195)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4f4fe51f"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f4fe51f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f4fe51f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_adoption_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2194);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("cca60434", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".qaAdoption .mod-formBox .van-radio__icon--checked+.van-radio__label .commonItem{border-color:#177afa}.qaAdoption .mod-formBox .commonItem{border:1px solid #eee;padding:.8rem .6rem;width:100%}.qaAdoption .mod-formBox .van-radio{margin-bottom:.6rem}.qaAdoption .mod-formBox .van-radio__label{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;margin-left:.8rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2196);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("03e023cc", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".qaAdoption[data-v-4f4fe51f]{color:#333}.qaAdoption .mod-problemDescription[data-v-4f4fe51f]{margin-bottom:1.2rem;height:2.3rem;box-shadow:0 .1rem .4rem 0 rgba(185,204,229,.2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .6rem}.qaAdoption .mod-problemDescription .des[data-v-4f4fe51f]{font-size:.8rem;font-weight:500}.qaAdoption .mod-problemDescription .infoBtn[data-v-4f4fe51f]{color:#177afa;position:relative;border-left:1px solid #d4d5d6;width:3rem;padding-left:.8rem;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}.qaAdoption .mod-problemDescription .infoBtn[data-v-4f4fe51f]:after{content:\"\";width:0;height:0;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);border-style:solid;border-width:.3rem .3rem 0;border-color:#1779fa transparent transparent}.qaAdoption .mod-adoptionTips[data-v-4f4fe51f]{padding:0 .8rem .8rem}.qaAdoption .mod-adoptionTips .p1[data-v-4f4fe51f]{height:1.4rem;font-size:1rem;font-weight:600;line-height:1.4rem;margin-bottom:.2rem}.qaAdoption .mod-adoptionTips .p2[data-v-4f4fe51f]{color:#666}.qaAdoption .mod-formBox[data-v-4f4fe51f]{padding:0 .8rem}.qaAdoption .mod-formBox .commonItem[data-v-4f4fe51f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.qaAdoption .mod-formBox .commonItem .radioIcon[data-v-4f4fe51f]{margin-right:.6rem;width:2.4rem;height:2.4rem;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;background:url(" + escape(__webpack_require__(2197)) + ") 50%/70% no-repeat}.qaAdoption .mod-formBox .commonItem .text[data-v-4f4fe51f]{font-size:.8rem;font-weight:600;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.qaAdoption .mod-bottom-btn[data-v-4f4fe51f]{background-color:#fff;border-top:1px solid #eee;position:fixed;width:100%;padding:.35rem 0;left:0;bottom:0}.qaAdoption .mod-bottom-btn .btnBox[data-v-4f4fe51f]{margin:0 auto;width:17.15rem;height:2.5rem;border-radius:.3rem;background-color:#177afa;text-align:center;line-height:2.5rem;font-size:.9rem;font-weight:400;color:#fff}.qaAdoption .mod-bottom-btn .btnBox.isDisable[data-v-4f4fe51f]{background-color:#c2c8d0}.qaAdoption .detail-wrap[data-v-4f4fe51f]{height:26.68rem}.qaAdoption .detail-wrap .detail-top[data-v-4f4fe51f]{padding:0 .6rem}.qaAdoption .detail-wrap .detail-top .detail-title[data-v-4f4fe51f]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-bottom:.4rem}.qaAdoption .detail-wrap .detail-top .detail-title p[data-v-4f4fe51f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:.8rem .4rem .4rem 0;line-height:1.4rem;font-size:1rem;font-weight:700;color:#333}.qaAdoption .detail-wrap .detail-top .detail-title span[data-v-4f4fe51f]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;margin-top:1rem;margin-right:-.6rem;font-size:.7rem;font-weight:500;color:#177afa}.qaAdoption .detail-wrap .detail-top .detail-title span[data-v-4f4fe51f]:before{top:0;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.qaAdoption .detail-wrap .detail-top .detail-title span[data-v-4f4fe51f]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:0;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.qaAdoption .detail-wrap .detail-top .detail-title span.shrink[data-v-4f4fe51f]:after{background-image:url(" + escape(__webpack_require__(134)) + ")}.qaAdoption .detail-wrap .detail-top .meta .xs[data-v-4f4fe51f]{margin-right:.6rem;margin-bottom:.8rem;line-height:1.05rem;font-size:.75rem}.qaAdoption .detail-wrap .detail-top .meta .xs .xs-icon[data-v-4f4fe51f]{display:inline-block;width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.qaAdoption .detail-wrap .detail-top .meta .xs.xs-1[data-v-4f4fe51f]{color:#fb5f5f}.qaAdoption .detail-wrap .detail-top .meta .xs.xs-2[data-v-4f4fe51f]{color:#fb985f}.qaAdoption .detail-wrap .detail-item-list[data-v-4f4fe51f]{position:relative}.qaAdoption .detail-wrap .detail-item-list.bottom-line[data-v-4f4fe51f]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.qaAdoption .detail-wrap .detail-item-list .item[data-v-4f4fe51f]{position:relative}.qaAdoption .detail-wrap .detail-item-list .item[data-v-4f4fe51f]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.qaAdoption .detail-wrap .detail-item-list .item .item-title[data-v-4f4fe51f]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.qaAdoption .detail-wrap .detail-item-list .item .item-title span[data-v-4f4fe51f]{font-size:.9rem}.qaAdoption .detail-wrap .detail-item-list .item .item-content[data-v-4f4fe51f]{padding:.8rem .8rem 1rem}.qaAdoption .detail-wrap .detail-item-list .item .item-content.has-img[data-v-4f4fe51f]{padding-bottom:.6rem}.qaAdoption .detail-wrap .detail-item-list .item .item-content .table[data-v-4f4fe51f]{border:1px solid #eee;border-radius:.2rem}.qaAdoption .detail-wrap .detail-item-list .item .item-content .param[data-v-4f4fe51f]{font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.qaAdoption .detail-wrap .detail-item-list .item .item-content .param span[data-v-4f4fe51f]{display:inline-block;line-height:1.1rem;font-size:15px;color:#333;padding:.5rem .8rem}.qaAdoption .detail-wrap .detail-item-list .item .item-content .param span[data-v-4f4fe51f]:first-child{width:4.8rem;padding-right:0;border-right:1px solid #eee}.qaAdoption .detail-wrap .detail-item-list .item .item-content .param span[data-v-4f4fe51f]:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.qaAdoption .detail-wrap .detail-item-list .item .item-content .param[data-v-4f4fe51f]:last-child{border:none}.qaAdoption .detail-wrap .detail-item-list .item .item-content p[data-v-4f4fe51f]{line-height:1.1rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.qaAdoption .detail-wrap .detail-item-list .item .item-content .images[data-v-4f4fe51f]{margin-right:-.6rem}.qaAdoption .detail-wrap .detail-item-list .item .item-content .images img[data-v-4f4fe51f]{display:inline-block;width:4rem;height:4rem;margin:0 .38rem .4rem 0;border-radius:.2rem;overflow:hidden;vertical-align:top}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/dissatisfied.20de21c.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(2198);
var _radio = _interopRequireDefault(__webpack_require__(2201));
__webpack_require__(2202);
var _radioGroup = _interopRequireDefault(__webpack_require__(2205));
var _vant = __webpack_require__(12);
var _listItem = _interopRequireDefault(__webpack_require__(2206));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'Adoption',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _radioGroup.default.name, _radioGroup.default), _radio.default.name, _radio.default), _popup.default.name, _popup.default), _dialog.default.name, _dialog.default), _toast.default.name, _toast.default), "listItem", _listItem.default),
  data: function data() {
    return {
      userId: Number(localStorage.getItem('userId')),
      detailPopup: false,
      questionDetail: {},
      sendParams: {},
      ListDialogInfo: []
    };
  },
  created: function created() {
    this.getQuestionDetail();
  },
  methods: {
    /**
     * 采纳
     */
    acceptAnswer: function acceptAnswer() {
      var _this = this;
      if (JSON.stringify(this.sendParams) === '{}') {
        (0, _toast.default)('请选择一个回答');
        return;
      }
      var param = {
        questionId: this.questionDetail.id
      };
      if (this.sendParams === 'noSendParams') {
        this.sendParams = {};
        param.id = null;
      } else {
        param.id = this.sendParams.dialogId;
      }
      if (this.questionDetail.createUserId === this.userId) {
        _dialog.default.confirm({
          title: '',
          message: '是否确认采纳？',
          confirmButtonText: '确认',
          className: 'put-que'
        }).then(function () {
          // console.log(this.sendParams.dialogId)
          _this._Util.post(_this._Api.ACCEPT_ANSWER, param, function (data) {
            _this.sendParams.status = 4;
            console.log('ACCEPT_ANSWER', data);
            (0, _toast.default)('采纳成功');
            if (_this._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'questionsOrAnswers',
                  url: "".concat(location.origin, "/v2/questionsOrAnswers")
                }
              });
            } else {
              _this.$router.push({
                name: 'questionsOrAnswers'
              });
            }
            // this.$toast({
            //   message: data.msg
            // })
          }, function () {}, _this);
        }).catch(function () {});
        var statusVal = '';
        switch (this.questionDetail.status) {
          case 2:
            statusVal = '派单中';
            break;
          case 3:
            statusVal = '未采纳';
            break;
          case 4:
            statusVal = '已采纳';
            break;
          case 5:
            statusVal = '超时取消';
            break;
          case 6:
            statusVal = '已结束';
            break;
          default:
            statusVal = '';
        }
        this._Util.sensorsCollect('accept_qadialogue', {
          operation_page: '对话详情页',
          dialogue_id: this.sendParams.dialogueId,
          question_no: this.questionDetail.questionNo,
          question_status: statusVal,
          communic_mode: this.questionDetail.communicMode === 1 ? '文字' : '电话',
          url: location.href,
          title: this.sendParams.uname,
          moudle_type: '问答'
        });
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'problemSquare',
              url: "".concat(location.origin, "/v2/questionsOrAnswers/problemSquare")
            }
          });
        } else {
          this.$router.push({
            name: 'problemSquare'
          });
        }
      }
    },
    /**
     * 展开详情
     */
    expandDetail: function expandDetail() {
      this.detailPopup = true;
    },
    /**
     * 收起详情
     */
    shrinkDetail: function shrinkDetail() {
      this.detailPopup = false;
    },
    /**
     *获取会话列表
     */
    getListDialogInfo: function getListDialogInfo(id) {
      var _this2 = this;
      this._Util.post(this._Api.LIST_DIALOG_INFO, {
        questionId: id
      }, function (data) {
        console.log(data);
        _this2.ListDialogInfo = data;
      }, function () {}, this);
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this3 = this;
      // this.$route.query.questionNo
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var detail = data.vo;
        _this3.getListDialogInfo(detail.id);
        if (!detail.vehicleBrandName) {
          detail.vehicleText = '-';
        } else if (detail.vehicleBrandName && !detail.vehicleModeName) {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/-");
        } else {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/").concat(detail.vehicleModeName);
        }
        if (!detail.engineBrandName) {
          detail.engineText = '-';
        } else if (detail.engineBrandName && !detail.engineModeName) {
          detail.engineText = "".concat(detail.engineBrandName, "/-");
        } else {
          detail.engineText = "".concat(detail.engineBrandName, "/").concat(detail.engineModeName);
        }
        if (!detail.ecuBrandName) {
          detail.ecuText = '-';
        } else if (detail.ecuBrandName && !detail.ecuModeName) {
          detail.ecuText = "".concat(detail.ecuBrandName, "/-");
        } else {
          detail.ecuText = "".concat(detail.ecuBrandName, "/").concat(detail.ecuModeName);
        }
        detail.faultSymptomImg = detail.faultSymptomImg && detail.faultSymptomImg.split(',') || '';
        detail.faultCodeImg = detail.faultCodeImg && detail.faultCodeImg.split(',') || '';
        detail.troubleShootImg = detail.troubleShootImg && detail.troubleShootImg.split(',') || '';
        _this3.questionDetail = detail;
      }, function () {}, this);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(345);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_95d186be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(945);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2207)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-95d186be"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_95d186be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_95d186be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_listItem_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2208);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6bfd9fb5", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".commonItem[data-v-95d186be]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:#fff;border-radius:5px}.commonItem .l-icon[data-v-95d186be]{width:2.4rem;height:2.4rem;margin-right:.6rem;border-radius:5px;background-color:#fff;background-image:url(" + escape(__webpack_require__(2209)) + ");-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;background-size:contain}.commonItem .l-icon .tips[data-v-95d186be]{width:.9rem;height:.9rem;color:#fff;border-radius:40px;font-size:.6rem;text-align:center;background-color:#ff3f3f;-webkit-transform:translate(2rem,-.5rem);-ms-transform:translate(2rem,-.5rem);transform:translate(2rem,-.5rem)}.commonItem .r-detail[data-v-95d186be]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.commonItem .r-detail h3[data-v-95d186be]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.2rem}.commonItem .r-detail .time[data-v-95d186be]{color:#a8a8a8;width:2.5rem;text-align:right;font-size:.6rem}.commonItem .r-detail .title[data-v-95d186be]{height:1.1rem;line-height:1.1rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;overflow:hidden}.commonItem .r-detail .title .imgQue[data-v-95d186be]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;width:.8rem;height:.8rem;margin-left:.2rem;background:#fff url(" + escape(__webpack_require__(1399)) + ") 0 0 no-repeat}.commonItem .r-detail .title>div[data-v-95d186be]{font-size:.85rem;font-weight:400}.commonItem .r-detail p[data-v-95d186be]{height:1rem;font-size:.75rem;font-weight:400;line-height:1rem;color:#666}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/myTakeQuestion.0c4e49c.png";module.exports = __webpack_require__.p + "static/img/que_icon_2.dbff262.svg";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'ListItem',
  props: {
    itemData: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      itemDataObject: {
        feedCount: 0,
        // 右上角提示图标
        feedTile: '问答小助手',
        feedContent: '这是一条描述这是一条描述',
        timeStamp: 1592314913241,
        feedIcon: '',
        feedUserId: '',
        feedType: 4 // 是否显示问答按钮
      }
    };
  },
  // computed: {
  //   feedTile() {
  //     return this.itemDataObject.feedUserId === 0 ? `问题id:${this.itemDataObject.questionId}` : this.itemDataObject.feedTile
  //   }
  // },
  watch: {
    itemData: function itemData(val) {
      // val.timeStamp = this.formatDate(val.timeStamp)
      this.itemDataObject = val;
    }
  },
  created: function created() {
    this.itemDataObject = this.itemData;
    // this.itemDataObject.timeStamp = this.formatDate(this.itemDataObject.timeStamp)
  },
  methods: {
    formatDate: function formatDate(timeStamp) {
      if (this._Util.isToday(timeStamp)) {
        return this._Util.dateFormat(timeStamp, 'hh:mm');
      } else {
        return this._Util.dateFormat(timeStamp, 'MM/dd');
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"commonItem"},[(_vm.itemDataObject.feedIcon)?_c('div',{staticClass:"l-icon",style:({backgroundImage:'url('+_vm.itemDataObject.feedIcon+')'})},[(_vm.itemDataObject.feedCount > 0)?_c('div',{staticClass:"tips"},[_vm._v(_vm._s(_vm.itemDataObject.feedCount))]):_vm._e()]):_c('div',{staticClass:"l-icon"},[(_vm.itemDataObject.feedCount > 0)?_c('div',{staticClass:"tips"},[_vm._v(_vm._s(_vm.itemDataObject.feedCount))]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"r-detail"},[_c('h3',[_c('div',{staticClass:"title"},[_c('div',{staticClass:"van-ellipsis"},[_vm._v(_vm._s(_vm.itemDataObject.feedTile))]),_vm._v(" "),(_vm.itemDataObject.feedType !== 1)?_c('div',{staticClass:"imgQue"}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm.formatDate(_vm.itemDataObject.timeStamp)))])]),_vm._v(" "),_c('p',{staticClass:"van-ellipsis"},[_vm._v(_vm._s(_vm.itemDataObject.feedContent || '-'))])])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"qaAdoption"},[_c('div',{staticClass:"mod-problemDescription"},[_c('div',{staticClass:"des van-ellipsis"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('div',{staticClass:"infoBtn",on:{"click":function($event){return _vm.expandDetail()}}},[_vm._v("详情")])]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"mod-formBox"},[_c('van-radio-group',{model:{value:(_vm.sendParams),callback:function ($$v) {_vm.sendParams=$$v},expression:"sendParams"}},[_vm._l((_vm.ListDialogInfo),function(item,index){return [_c('van-radio',{key:index,staticClass:"cur",attrs:{"name":item}},[_c('list-item',{attrs:{"item-data":item}})],1)]}),_vm._v(" "),_c('van-radio',{attrs:{"name":"noSendParams","clas":"cur"}},[_c('div',{staticClass:"commonItem"},[_c('div',{staticClass:"radioIcon"}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v("都不满意")])])])],2)],1),_vm._v(" "),_c('div',{staticClass:"mod-bottom-btn"},[_c('div',{staticClass:"btnBox",class:{'isDisable':JSON.stringify(_vm.sendParams) === '{}'},on:{"click":function($event){return _vm.acceptAnswer()}}},[_vm._v("确认采纳")])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container detail-wrap",attrs:{"close-on-click-overlay":false,"position":"top"},model:{value:(_vm.detailPopup),callback:function ($$v) {_vm.detailPopup=$$v},expression:"detailPopup"}},[_c('div',{staticClass:"detail-top"},[_c('div',{staticClass:"detail-title"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline shrink",on:{"click":function($event){return _vm.shrinkDetail()}}},[_vm._v("收起")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[((_vm.questionDetail.bountyFlag === 1 || _vm.questionDetail.bountyFlag === 2) && _vm.questionDetail.cashBounty > 0)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏: "+_vm._s(_vm.questionDetail.cashBounty)+"元")]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"detail-item-list"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[_c('div',{staticClass:"table"},[_c('div',{staticClass:"param"},[_c('span',[_vm._v("车辆品牌")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.vehicleText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("发动机")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.engineText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("ECU型号")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.ecuText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("排放阶段")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.dischargeStageName || '-'))])])])])]),_vm._v(" "),((_vm.questionDetail.faultSymptom && _vm.questionDetail.faultSymptom !== '') || (_vm.questionDetail.faultSymptomImg &&_vm.questionDetail.faultSymptomImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("详细描述")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultSymptomImg.length}},[(_vm.questionDetail.faultSymptom)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultSymptom))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultSymptomImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultSymptomImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.faultCode && _vm.questionDetail.faultCode !== '') || (_vm.questionDetail.faultCodeImg && _vm.questionDetail.faultCodeImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("故障码")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultCodeImg.length}},[(_vm.questionDetail.faultCode)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultCode))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultCodeImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultCodeImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.troubleShoot && _vm.questionDetail.troubleShoot !== '') || (_vm.questionDetail.troubleShootImg && _vm.questionDetail.troubleShootImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("已做排查")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.troubleShootImg.length}},[(_vm.questionDetail.troubleShoot)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.troubleShoot))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.troubleShootImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.troubleShootImg, index)}}})}),0)])]):_vm._e()])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mod-adoptionTips"},[_c('p',{staticClass:"p1"},[_vm._v("以下接单人，谁解决了你的问题？")]),_vm._v(" "),_c('p',{staticClass:"p2"},[_vm._v("点击左侧按钮选择")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(346);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d0c3412_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(951);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2210)
  __webpack_require__(2212)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4d0c3412"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d0c3412_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d0c3412_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2211);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("77eb3ffc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "*{font-family:PingFangSC-Regular,PingFang SC,sans-serif}.van-dialog{border-radius:.4rem!important}.van-dialog__header{font-size:.9rem;padding-left:1.4rem;padding-right:1.4rem;font-weight:700!important;color:#333}.van-button__text{font-size:.9rem}.common-box{background-color:#fff;padding:0 .8rem .6rem;margin-bottom:.4rem}.common-box .mod-title{height:2.2rem;line-height:2.2rem}.putQuestion .mod-malfunction .van-field__control{font-size:.9rem;font-weight:400;line-height:1.25rem;min-height:6.5rem}.putQuestion .van-dialog{width:17.15rem;border-radius:.3rem}.putQuestion .van-icon-cross{font-weight:700}.putQuestion .van-dialog__content{padding:0 .8rem}.putQuestion .van-dialog__content .reward-pop-content .van-checkbox__icon{width:.8rem;height:.8rem;line-height:.8rem}.putQuestion .van-dialog__content .reward-pop-content .van-checkbox__label{font-size:.75rem;font-weight:400;color:#b8865b;line-height:.75rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2213);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("055697ba", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".putQuestion[data-v-4d0c3412]{color:#333;font-size:.7rem}.putQuestion .macAddress-box[data-v-4d0c3412]{height:3.6rem;background:#fdf6d7;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.putQuestion .macAddress-box>p[data-v-4d0c3412]{font-family:PingFangSC-Regular,PingFang SC,sans-serif!important;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
var _vant = __webpack_require__(12);
var _carBasicMode = _interopRequireDefault(__webpack_require__(2214));
var _malfunctionMode = _interopRequireDefault(__webpack_require__(2220));
var _onceHelpMode = _interopRequireDefault(__webpack_require__(2225));
var _payNumMode = _interopRequireDefault(__webpack_require__(2228));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'PutQuestion',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    carBasicMode: _carBasicMode.default,
    malfunctionMode: _malfunctionMode.default,
    onceHelpMode: _onceHelpMode.default,
    payNumMode: _payNumMode.default
  }, _field.default.name, _field.default), _popup.default.name, _popup.default), _toast.default.name, _toast.default), _dialog.default.Component.name, _dialog.default.Component),
  data: function data() {
    return {
      isMacAddressFlag: false,
      // 是否由二维码链接入口进入
      macAddressTips: '',
      // 二维码链接的mac地址
      isNotRepeatClick: false,
      questionId: null,
      faultSymptom: '',
      // 故障描述
      carBasicParam: {},
      // 车辆信息
      isShowCarBasic: false,
      // 车辆信息模块标识
      faultDescriptionPicList: [],
      // 故障描述上传图片列表
      selectedCode: -1,
      // 选中的赏金
      payableCashBounty: -1,
      // 选中的赏金原价
      isShowReward: -1,
      // 赏金模块显示标识，
      communicMode: 1,
      // 沟通方式：1：文字，2：电话
      onceHelpModAmount: 0,
      // 一建问答次数和金额展示数据
      questionType: '',
      // 一建问答type
      questionTypeExtraData: '',
      // 一建问答Mac地址
      macDeductNum: '',
      // 一建问答扣减次数
      allowanceAmount: 0 // 问答红包支付金额
    };
  },
  created: function created() {
    this.canNewQuestion();
    this.macAddressFlag();
    if (!this._Util.isApp() && !this._Util.isMPaaS()) {
      this._Util.getKaluliAuth(this);
    }
  },
  // 离开页面初始化参数
  destroyed: function destroyed() {
    this.selectedCode = -1;
    this.carBasicParam = {};
    this.faultSymptom = '';
    this.payableCashBounty = -1;
    this.faultDescriptionPicList = [];
  },
  methods: {
    /**
     * 判断是否为一键求助页面
     */
    macAddressFlag: function macAddressFlag() {
      this.questionType = this.getUrlKey('type');
      this.questionTypeExtraData = this.getUrlKey('data');
      if (this.questionType && this.questionTypeExtraData) {
        this.isMacAddressFlag = true;
        this.getTopCardStyle();
        this.getRewardAmountPage();
      }
    },
    /**
     * 一键求助mac地址和次数
     */
    getTopCardStyle: function getTopCardStyle() {
      var _this = this;
      var params = {
        questionType: this.getUrlKey('type'),
        questionTypeExtraData: this.getUrlKey('data')
      };
      this._Util.post(this._Api.TOP_CARD_STYLE, params, function (data) {
        _this.macAddressTips = data.text;
      }, function () {}, this, true);
    },
    /**
     * 一键求助金额接口
     */
    getRewardAmountPage: function getRewardAmountPage() {
      var _this2 = this;
      var params = {
        questionType: this.getUrlKey('type'),
        questionTypeExtraData: this.getUrlKey('data')
      };
      this._Util.post(this._Api.REWARD_AMOUNT_PAGE, params, function (data) {
        _this2.selectedCode = data.amount;
        _this2.payableCashBounty = data.amount;
        if (data.deductNum && data.deductNum > 0) {
          _this2.macDeductNum = 1;
        }
        if (data.phoneCall === 1) {
          _this2.communicMode = 2;
        }
      }, function () {}, this, true);
    },
    /**
     * 获取url参数
     * @param {String} name url参数名
     */
    getUrlKey: function getUrlKey(name) {
      // eslint-disable-next-line no-sparse-arrays
      return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ''])[1].replace(/\+/g, '%20')) || null;
    },
    /**
     * 提问查看提问状态接口
     */
    canNewQuestion: function canNewQuestion() {
      var _this3 = this;
      this._Util.post(this._Api.CAN_NEW_QUESTION, {}, function (data) {
        var element_name = '';
        if (data.code !== 1) {
          var statusText = '去评价';
          var statusText2 = '我知道了';
          element_name = "\u63D0\u95EE\u62E6\u622A-".concat(statusText);
          if (data.questionCloseStatus === 1) {
            statusText = '去关闭';
            statusText2 = '再等等';
            element_name = "\u63D0\u95EE\u62E6\u622A-".concat(statusText);
          }
          _dialog.default.alert({
            title: '提示',
            message: data.msg,
            confirmButtonText: statusText,
            cancelButtonText: statusText2,
            beforeClose: function beforeClose(action, done) {
              if (action !== 'confirm') {
                element_name = "\u63D0\u95EE\u62E6\u622A-".concat(statusText2);
              }
              done();
              _this3.elementClick({
                element_name: element_name,
                element_content: element_name,
                element_target_url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(data.questionNo, "&id=").concat(data.dialogId, "&ascription=questioner")
              });
            }
          }).then(function () {
            _this3.goLinkToConversation(data);
          });
        }
      }, function () {}, this, true);
    },
    /**
     *车辆信息子组件更新数据
     * @param {Object} val 车辆信息
     */
    updateCarBasic: function updateCarBasic(val) {
      this.carBasicParam = val.carBasicParam;
      if (val.isShowReward) {
        this.isShowReward = Math.random();
      }
    },
    /**
     *故障描述子组件上传图片数据
     * @param {Array} val 故障现象图片组
     */
    updateFaultDescriptionPicList: function updateFaultDescriptionPicList(val) {
      this.faultDescriptionPicList = val;
      if (this.faultDescriptionPicList.length > 0) {
        this.isShowCarBasic = true;
      }
    },
    /**
     *故障描述子组件同步数据
     * @param {String} val 故障现象text
     */
    updateFaultSymptom: function updateFaultSymptom(val) {
      this.faultSymptom = val;
      if (this.faultSymptom.length >= 2) {
        this.isShowCarBasic = true;
      }
    },
    /**
     *选择金额子组件同步数据
     * @param {String} val 故障现象text
     */
    updateCashNum: function updateCashNum(val) {
      this.selectedCode = val.selectedCode;
      this.payableCashBounty = val.payableCashBounty;
      this.allowanceAmount = val.allowanceAmount;
      // this.communicMode = val.canConnectByMobile === 1 ? 2 : 1
    },
    /**
     * 创建问题 : 支付/提交按钮逻辑
     */
    submitQuestion: function submitQuestion() {
      if (this.selectedCode < 0) {
        (0, _toast.default)('请选择悬赏金额');
        return;
      }
      if (this.isNotRepeatClick) {
        (0, _toast.default)('请稍后');
        return;
      }
      if (this.selectedCode <= 0) {
        this.getQuestionId(1);
        return;
      }
      this.getQuestionId(2);
    },
    /**
     * 获取问题id
     * @param {Number} isFree 是否免费提问
     */
    getQuestionId: function getQuestionId(isFree) {
      var _this4 = this;
      this.isNotRepeatClick = true;
      var params = {};
      params = this.carBasicParam;
      params.status = 1;
      params.cashBounty = this.selectedCode;
      params.questionTitle = this.faultSymptom;
      params.allowanceAmount = this.allowanceAmount;
      params.payableCashBounty = this.payableCashBounty;
      params.communicMode = this.communicMode;
      params.faultSymptomImg = this.faultDescriptionPicList.join();
      if (this.$route.query.from === 'wxAppHome') {
        // 小程序首页发帖按钮点击跳转过来的
        localStorage.removeItem('qa_data');
      }
      var qaData = JSON.parse(localStorage.getItem('qa_data'));
      params.sourceType = qaData && qaData.sourceType;
      params.sourceNo = qaData && qaData.sourceNo;
      params.sourceUrl = qaData && qaData.sourceUrl;
      this._Util.post(this._Api.EDIT_QUESTION, params, function (data) {
        _this4.questionId = data.id;
        _this4.questionNo = data.questionNo;
        if (isFree === 1) {
          _this4.editQuestion();
        } else {
          _this4.qaQuestionQuickPay();
        }
      }, function () {}, this, true);
    },
    /**
     * 跳转微信支付
     */
    qaQuestionQuickPay: function qaQuestionQuickPay() {
      var _this5 = this;
      var params = {
        amount: this.selectedCode,
        payableCashBounty: this.payableCashBounty,
        questionNo: this.questionNo
      };
      this._Util.post(this._Api.QA_QUESTION_QUICK_PAY, params, function (data) {
        // 微信支付
        _this5._Util.wxPay(data.jsApiParameters, function () {
          _this5.getDialogId();
        });
      }, function () {}, this);
    },
    /**
     *  创建问题
     */
    editQuestion: function editQuestion() {
      var _this6 = this;
      var params = {
        id: this.questionId,
        status: 2
      };
      if (this.isMacAddressFlag) {
        params.deductNum = this.macDeductNum;
        params.questionType = this.questionType;
        params.questionTypeExtraData = this.questionTypeExtraData;
      }
      this._Util.post(this._Api.EDIT_QUESTION, params, function (data) {
        _this6.isNotRepeatClick = false;
        _this6.elementClick({
          element_name: '提交问题',
          element_content: '提交问题',
          element_target_url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(data.questionNo, "&id=").concat(data.dialogId, "&ascription=questioner"),
          correlation_id: _this6.payableCashBounty
        });
        _this6.submitSuccess(data);
      }, function () {}, this, true);
    },
    /**
     * 获取问题会话id
     */
    getDialogId: function getDialogId() {
      var _this7 = this;
      var timer = null;
      var params = {
        questionId: this.questionId
      };
      this._Util.post(this._Api.GET_DIALOG_ID, params, function (data) {
        if (data.dialogId) {
          _toast.default.clear();
          clearTimeout(timer);
          _this7.submitSuccess({
            questionNo: data.questionNo,
            dialogId: data.dialogId
          });
        } else {
          _toast.default.loading({
            message: '付款中...',
            forbidClick: true
          });
          timer = setTimeout(function () {
            _this7.getDialogId();
          }, 2000);
        }
      }, function () {}, this);
    },
    /**
     * 提交/支付成功之后，弹框提示跳转
     */
    submitSuccess: function submitSuccess(option) {
      var _this8 = this;
      var timer = null;
      _dialog.default.alert({
        title: '问题提交成功',
        confirmButtonText: '进入聊天页面'
      }).then(function () {
        localStorage.removeItem('qa_data');
        _this8.goLinkToConversation(option);
        clearTimeout(timer);
      });
      timer = setTimeout(function () {
        _this8.goLinkToConversation(option);
        _dialog.default.close();
      }, 3000);
    },
    /**
     * 跳转会话页
     * @param {Object} item 具体会话对象
     */
    goLinkToConversation: function goLinkToConversation(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversationV13' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.dialogId, "&ascription=questioner")
          }
        });
      } else {
        this.$router.push({
          name: 'conversationV13',
          query: {
            questionNo: item.questionNo,
            id: item.dialogId,
            ascription: 'questioner'
          }
        });
      }
    },
    /**
     * 点击提问拦截弹窗
     */
    elementClick: function elementClick(params) {
      var options = {
        url: window.location.href,
        title: '极速问答',
        moudle_type: '极速问答',
        operation_page: '极速问答'
      };
      var _options = Object.assign(options, params);
      this._Util.sensorsCollect('element_click', _options);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(347);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f4370f7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(947);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2215)
  __webpack_require__(2217)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0f4370f7"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f4370f7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f4370f7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBasicMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2216);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("328b586d", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-overflow-hidden{overflow:visible!important}.QandADialog .van-dialog__header{font-size:.85rem;padding-left:1.4rem;padding-right:1.4rem}.QandADialog .van-button__text{font-size:.9rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2218);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("664f5322", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mod-carBasic[data-v-0f4370f7]{border-top:.4rem solid #f4f5f6;padding-top:.6rem}.mod-carBasic .mod-title[data-v-0f4370f7]{border:solid #e6d6c0;border-width:1px 1px 0;border-radius:.2rem .2rem 0 0;background-color:#fffcef;font-size:.7rem;font-weight:600;height:2rem;line-height:2rem;padding-left:.8rem}.mod-carBasic .item-title[data-v-0f4370f7]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.mod-carBasic .item-title span[data-v-0f4370f7]{font-size:.9rem}.mod-carBasic .mod-con[data-v-0f4370f7]{border:1px solid #e6d6c0;border-radius:0 0 .2rem .2rem;margin-bottom:2.4rem;background-color:#fffcef}.mod-carBasic .mod-con .param[data-v-0f4370f7]{font-size:0;border-bottom:1px solid #e6d6c0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mod-carBasic .mod-con .param .carTitle[data-v-0f4370f7],.mod-carBasic .mod-con .param .right[data-v-0f4370f7]{line-height:1.1rem;font-size:15px;padding:.5rem .8rem}.mod-carBasic .mod-con .param .carTitle[data-v-0f4370f7]{width:4.8rem;padding-right:0;border-right:1px solid #e6d6c0;font-size:.8rem}.mod-carBasic .mod-con .param .right[data-v-0f4370f7]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mod-carBasic .mod-con .param .right .carText>div[data-v-0f4370f7]{font-size:.8rem}.mod-carBasic .mod-con .param .right .carText>.selectBasic[data-v-0f4370f7]{color:#177afa;background:#fffcef url(" + escape(__webpack_require__(2219)) + ") 0 no-repeat;background-size:12px;padding-left:14px;font-size:.7rem}.mod-carBasic .mod-con .param .right .icon[data-v-0f4370f7]{height:.7rem}.mod-carBasic .mod-con .param .right .icon img[data-v-0f4370f7]{width:.7rem;height:.7rem}.mod-carBasic .mod-con .param[data-v-0f4370f7]:last-child{border:none}.mod-carBasic .mod-con p[data-v-0f4370f7]{line-height:1.25rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.mod-carBasic .mod-bottom-btn[data-v-0f4370f7]{width:100%;padding:.35rem 0 1.4rem}.mod-carBasic .mod-bottom-btn .btnBox[data-v-0f4370f7]{margin:0 auto;height:2.5rem;border-radius:2.5rem;background-color:#177afa;text-align:center;line-height:2.5rem;font-size:.9rem;font-weight:400;color:#fff}.mod-carBasic .mod-bottom-btn .btnBox.isDisable[data-v-0f4370f7]{background-color:#c2c8d0}.mod-carBasic .pop-box[data-v-0f4370f7]{position:absolute;width:100%;left:0;top:0;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.mod-carBasic .pop-box .title[data-v-0f4370f7]{height:2.75rem;color:#333;font:700 16px/2.75rem PingFangSC-Semibold;background:#f6f6f6;text-align:center;position:relative}.mod-carBasic .pop-box .title span[data-v-0f4370f7]{position:absolute;left:0;top:0;padding:0 .8rem;color:#666;font:14px/2.75rem PingFangSC-Regular}.mod-carBasic .pop-box .title p[data-v-0f4370f7]{position:absolute;right:0;top:0;padding:0 .8rem;color:#177afa;font:14px/2.75rem PingFangSC-Regular}.mod-carBasic .pop-box .cont[data-v-0f4370f7]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;position:relative}.mod-carBasic .pop-box .cont .step-box[data-v-0f4370f7]{position:relative;font-size:0;height:2.325rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem}.mod-carBasic .pop-box .cont .step-box[data-v-0f4370f7]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.mod-carBasic .pop-box .cont .step-box .live[data-v-0f4370f7]{display:inline-block;color:#177afa;font:16px/2.325rem PingFangSC-Regular;height:100%;position:relative;margin-right:1.5rem}.mod-carBasic .pop-box .cont .step-box .live[data-v-0f4370f7]:after{content:\"\";position:absolute;bottom:0;left:50%;margin-left:-.6rem;height:.15rem;width:1.2rem;background:#177afa;border-radius:.1rem}.mod-carBasic .pop-box .cont .step-box .live.active[data-v-0f4370f7]{color:#177afa!important}.mod-carBasic .pop-box .cont .step-box .live.live-on[data-v-0f4370f7]{color:#333}.mod-carBasic .pop-box .cont .step-box .live.live-on[data-v-0f4370f7]:after{content:\"\";position:absolute;bottom:0;left:50%;height:0;width:0}.mod-carBasic .pop-box .cont .step-box .live.live-two[data-v-0f4370f7]{margin-left:1.5rem}.mod-carBasic .pop-box .cont .panel-cont[data-v-0f4370f7]{margin-bottom:.5rem;height:-webkit-calc(100% - 2.325rem);height:calc(100% - 2.325rem);overflow-y:auto}.mod-carBasic .pop-box .cont .panel-cont .search-bar[data-v-0f4370f7]{position:relative;margin-top:.6rem;padding:0 .6rem}.mod-carBasic .pop-box .cont .panel-cont .search-bar .search-icon[data-v-0f4370f7]{position:absolute;top:.5rem;left:1.2rem;display:inline-block;width:1rem;height:1rem;background-image:url(" + escape(__webpack_require__(306)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.mod-carBasic .pop-box .cont .panel-cont .search-bar input[data-v-0f4370f7]{height:1.8rem;padding:0 .6rem 0 1.8rem;border-radius:.2rem;background-color:#f5f5f5;overflow:hidden;font-size:.7rem}.mod-carBasic .pop-box .cont .panel-cont .search-bar input[data-v-0f4370f7]::-webkit-input-placeholder{color:#999;font-size:.7rem}.mod-carBasic .pop-box .cont .panel-cont .search-bar input[data-v-0f4370f7]:-ms-input-placeholder{color:#999;font-size:.7rem}.mod-carBasic .pop-box .cont .panel-cont .search-bar input[data-v-0f4370f7]::placeholder{color:#999;font-size:.7rem}.mod-carBasic .pop-box .cont .panel-cont .list[data-v-0f4370f7]{padding-left:2.8rem}.mod-carBasic .pop-box .cont .panel-cont .list .item[data-v-0f4370f7]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:1.8rem}.mod-carBasic .pop-box .cont .panel-cont .list .item[data-v-0f4370f7]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.mod-carBasic .pop-box .cont .panel-cont .list .item .icon[data-v-0f4370f7]{position:absolute;top:.7rem;left:-2.1rem;display:inline-block;width:1.4rem;height:1.4rem;vertical-align:top;overflow:hidden;background-color:#f3f4f5}.mod-carBasic .pop-box .cont .panel-cont .list .item .name[data-v-0f4370f7]{display:block;width:100%;font-size:.9rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mod-carBasic .pop-box .cont .panel-cont .list .item .name.jump[data-v-0f4370f7]{color:#666}.mod-carBasic .pop-box .cont .panel-cont .list .item .name.jump i[data-v-0f4370f7]{color:#177afa}.mod-carBasic .pop-box .cont .panel-cont .list-btn .btn2[data-v-0f4370f7]{height:2.65rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/carBasic.18d6f58.png";module.exports = __webpack_require__.p + "static/img/search_icon.5df257e.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'CarBasicMode',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _toast.default.name, _toast.default), _dialog.default.name, _dialog.default),
  props: {
    faultSymptomProp: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      faultSymptom: '',
      // 故障现象
      carBasicParam: {},
      carBasicParamsArr: [],
      carInfoData: {},
      showPop: false,
      questionCompletionRate: 0,
      questionId: null,
      // 草稿ID
      popTitle: '',
      // 弹窗的标题,
      brand: {},
      // 品牌
      model: {},
      // 型号
      brandList: [],
      modelList: [],
      brandWord: '',
      modelWord: '',
      queStatus: 1,
      currentTabIdx: 0,
      // 弹窗内的tab索引
      curIndex: 1,
      // 当前选择的基本信息索引   获取车辆1   发动机2   ECU品牌 3  排放标准4，
      carItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      },
      // 选择的车辆信息
      engineItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      },
      // 选择的发动机的相关数据
      ECUItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      },
      // 选择的Ecu的相关数据
      dischargeItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      } // 选择的排放姐夫安相关的数据
    };
  },
  computed: {
    // 计算属性的 getter
    carName: function carName() {
      var temporary = '-';
      if (this.carItem.brandName && !this.carItem.modelName) {
        temporary = this.carItem.brandName;
      }
      if (this.carItem.brandName && this.carItem.modelName) {
        temporary = "".concat(this.carItem.brandName, "/").concat(this.carItem.modelName);
      }
      return temporary;
    },
    engineName: function engineName() {
      var temporary = '-';
      if (this.engineItem.brandName && !this.engineItem.modelName) {
        temporary = this.engineItem.brandName;
      }
      if (this.engineItem.brandName && this.engineItem.modelName) {
        temporary = "".concat(this.engineItem.brandName, "/").concat(this.engineItem.modelName);
      }
      return temporary;
    },
    ECUIName: function ECUIName() {
      var temporary = '-';
      if (this.ECUItem.brandName && !this.ECUItem.modelName) {
        temporary = this.ECUItem.brandName;
      }
      if (this.ECUItem.brandName && this.ECUItem.modelName) {
        temporary = "".concat(this.ECUItem.brandName, "/").concat(this.ECUItem.modelName);
      }
      return temporary;
    }
  },
  watch: {
    showPop: function showPop(val) {
      if (val) {
        this.currentTabIdx = 0;
      } else {
        this.currentTabIdx = 0;
        this.brandWord = '';
        this.modelWord = '';
        this.brand = {};
        this.model = {};
        this.brandList = [];
        this.modelList = [];
      }
    },
    faultSymptomProp: function faultSymptomProp(val) {
      this.faultSymptom = val;
    }
  },
  created: function created() {
    this.getQAMaskParams();
    this.faultSymptom = this.faultSymptomProp;
  },
  mounted: function mounted() {
    var that = this;
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          that.getQAMaskParams();
        });
      }, 300);
    }
  },
  methods: {
    confirmParam: function confirmParam() {
      var _this = this;
      this.faultSymptom = this.faultSymptom === null ? '' : this.faultSymptom;
      this.faultSymptom = this.faultSymptom.replace(/\s+/g, '');
      if (!this.faultSymptom) {
        (0, _toast.default)('请填写故障现象!');
        return;
      }
      this.$emit('elementClickEmit', {
        element_name: '提交问题',
        element_content: '提交问题',
        element_target_url: '',
        correlation_id: ''
      });
      if (!this.carBasicParam.vehicleBrandId || this.carBasicParam.vehicleBrandId === '-1' || !this.carBasicParam.engineBrandId || this.carBasicParam.engineBrandId === '-1' || !this.carBasicParam.ecuBrandId || this.carBasicParam.ecuBrandId === '-1' || !this.carBasicParam.dischargeStageId || this.carBasicParam.dischargeStageId === '-1') {
        _dialog.default.confirm({
          title: '补全车辆基本信息，问题解决效率会更高哦！',
          confirmButtonText: '立即提交',
          cancelButtonText: '继续完善',
          className: 'QandADialog',
          beforeClose: function beforeClose(action, done) {
            var element_name = action === 'confirm' ? '立即提交问题' : '继续完善问题';
            done();
            _this.$emit('elementClickEmit', {
              element_name: element_name,
              element_content: element_name,
              element_target_url: ''
            });
          }
        }).then(function () {
          _this.$emit('emitCarBasicObj', {
            carBasicParam: _this.carBasicParam,
            isShowReward: true
          });
        }).catch(function () {});
        return;
      }
      this.$emit('emitCarBasicObj', {
        carBasicParam: this.carBasicParam,
        isShowReward: true
      });
    },
    /**
     * 搜索品牌和型号
     */
    search: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(id, keyWord) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this.getQAMaskParams(id, keyWord);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 切换弹层model
     * @param idx
     */
    switchBrandAndModel: function switchBrandAndModel(idx) {
      this.currentTabIdx = idx;
      if (idx === 1 && !this.modelList.length) {
        this.getQAMaskParams(this.brand.id);
      }
    },
    /**
     * 打开底部选择框
     * @param {Object} item 点击的那个元素
     * @param {Number} index 点击元素的索引
     */
    showPopFn: function showPopFn(index) {
      this.curIndex = index;
      if (index === 1) {
        this.popTitle = '请选择车辆品牌型号';
        this.brand = {
          id: this.carItem.brandId,
          pathName: this.carItem.brandName
        };
        this.model = {
          id: this.carItem.modelId,
          pathName: this.carItem.modelName
        };
      } else if (index === 2) {
        this.popTitle = '请选择车辆发动机品牌型号';
        this.brand = {
          id: this.engineItem.brandId,
          pathName: this.engineItem.brandName
        };
        this.model = {
          id: this.engineItem.modelId,
          pathName: this.engineItem.modelName
        };
      } else if (index === 3) {
        this.popTitle = '请选择车辆ECU品牌型号';
        this.brand = {
          id: this.ECUItem.brandId,
          pathName: this.ECUItem.brandName
        };
        this.model = {
          id: this.ECUItem.modelId,
          pathName: this.ECUItem.modelName
        };
      } else {
        this.popTitle = '请选择车辆排放阶段';
        this.brand = {
          id: this.dischargeItem.brandId,
          pathName: this.dischargeItem.brandName
        };
      }
      this.getQAMaskParams();
      this.showPop = true;
    },
    /**
     * 获取车辆1、发动机2、ECU品牌3、排放标准4，根据品牌id, 获取类型集合
     * @param {Number} id 品牌Id
     * @param keyWord
     */
    getQAMaskParams: function getQAMaskParams(id, keyWord) {
      var _this2 = this;
      this._Util.post(this._Api.GET_QA_ASK_PARAMS, {
        id: id,
        keyWord: keyWord,
        moudle: this.curIndex
      }, function (data) {
        if (_this2.currentTabIdx === 0) {
          _this2.brandList = data;
        } else {
          _this2.modelList = data;
        }
      }, function () {}, this);
    },
    /**
     * 汽车品牌信息参数收集器
     * @param {Number} brand 品牌
     * @param {Number} model 型号
     */
    saveQuestion: function saveQuestion(brand, model) {
      // const params = {}
      // 车辆品牌和型号
      if (this.curIndex === 1) {
        this.carItem.brandId = brand && brand.id;
        this.carItem.modelId = model && model.id;
        this.carItem.brandName = brand && brand.pathName;
        this.carItem.modelName = model && model.pathName;
        this.carBasicParam.vehicleBrandId = brand && brand.id || '-1';
        this.carBasicParam.vehicleBrandName = brand && brand.pathName;
        this.carBasicParam.vehicleModeId = model && model.id || '-1';
        this.carBasicParam.vehicleModeName = model && model.pathName;
      }
      // 发动机品牌及型号
      if (this.curIndex === 2) {
        this.engineItem.brandId = brand && brand.id;
        this.engineItem.modelId = model && model.id;
        this.engineItem.brandName = brand && brand.pathName;
        this.engineItem.modelName = model && model.pathName;
        this.carBasicParam.engineBrandId = brand && brand.id || '-1';
        this.carBasicParam.engineBrandName = brand && brand.pathName;
        this.carBasicParam.engineModeId = model && model.id || '-1';
        this.carBasicParam.engineModeName = model && model.pathName;
      }
      // ECU品牌及型号
      if (this.curIndex === 3) {
        this.ECUItem.brandId = brand && brand.id;
        this.ECUItem.modelId = model && model.id;
        this.ECUItem.brandName = brand && brand.pathName;
        this.ECUItem.modelName = model && model.pathName;
        this.carBasicParam.ecuBrandId = brand && brand.id || '-1';
        this.carBasicParam.ecuBrandName = brand && brand.pathName;
        this.carBasicParam.ecuModeId = model && model.id || '-1';
        this.carBasicParam.ecuModeName = model && model.pathName;
      }
      // 排放阶段
      if (this.curIndex === 4) {
        this.dischargeItem.brandId = brand && brand.id;
        this.dischargeItem.brandName = brand && brand.pathName;
        this.carBasicParam.dischargeStageId = brand && brand.id || '-1';
        this.carBasicParam.dischargeStageName = brand && brand.pathName;
      }
    },
    /**
     * 跳过
     */
    editBrandOrModel: function editBrandOrModel(type) {
      if (type === 0) {
        if (this.curIndex === 4) {
          if (this.brand && this.brand.id) {
            this.questionCompletionRate = this.questionCompletionRate - 5;
          }
        } else {
          if (this.brand.id && this.model.id && this.model.id > 0) {
            this.questionCompletionRate = this.questionCompletionRate - 5;
          } else if (this.brand.id && (!this.model.id || this.model.id === -1)) {
            this.questionCompletionRate = this.questionCompletionRate - 3;
          }
        }
        this.brand = {};
        this.model = {};
        this.confirm();
      } else {
        if (this.model && this.model.id) {
          this.questionCompletionRate = this.questionCompletionRate - 2;
        }
        this.model = {};
        this.confirm();
      }
    },
    /**
     * 选择品牌
     */
    selectBrand: function selectBrand(item, type) {
      if (type !== 'draft') {
        if (!this.brand || !(this.brand && this.brand.id)) {
          var addNum = 3;
          if (this.curIndex === 4) {
            addNum = 5;
          }
          this.questionCompletionRate = this.questionCompletionRate + addNum;
        }
        if (this.model && this.model.id) {
          this.questionCompletionRate = this.questionCompletionRate - 2;
        }
        this.brand = item;
        this.model = {};
      }
      this.currentTabIdx = 1;
      this.modelList = [];
      if (this.curIndex !== 4) {
        this.getQAMaskParams(item.id);
      } else {
        this.confirm();
      }
    },
    /**
     * 选择型号
     */
    selectModel: function selectModel(item) {
      if (!this.model.id) {
        this.questionCompletionRate = this.questionCompletionRate + 2;
      }
      this.model = item;
      this.confirm();
    },
    /**
     * 点击确认按钮
     */
    confirm: function confirm() {
      if (this.curIndex === 1) {
        this.carItem.brandName = this.brand.pathName;
        this.carItem.modelName = this.model.pathName;
      }
      if (this.curIndex === 2) {
        this.engineItem.brandName = this.brand.pathName;
        this.engineItem.modelName = this.model.pathName;
      }
      if (this.curIndex === 3) {
        this.ECUItem.brandName = this.brand.pathName;
        this.ECUItem.modelName = this.model.pathName;
      }
      if (this.curIndex === 4) {
        this.dischargeItem.brandName = this.brand.pathName;
      }
      this.saveQuestion(this.brand, this.model);
      this.showPop = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mod-carBasic common-box"},[_c('h3',{staticClass:"mod-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"mod-con"},[_c('div',{staticClass:"param",on:{"click":function($event){return _vm.showPopFn(1)}}},[_c('div',{staticClass:"carTitle"},[_vm._v("车辆品牌")]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"carText"},[(_vm.carName === '-')?_c('div',{staticClass:"selectBasic"},[_vm._v("请选择")]):_c('div',[_vm._v(_vm._s(_vm.carName)+" ")])]),_vm._v(" "),(_vm.carName !== '-')?_c('div',{staticClass:"icon"},[_c('img',{attrs:{"src":__webpack_require__(96),"alt":"编辑"}})]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"param",on:{"click":function($event){return _vm.showPopFn(2)}}},[_c('div',{staticClass:"carTitle"},[_vm._v("发动机")]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"carText"},[(_vm.engineName === '-')?_c('div',{staticClass:"selectBasic"},[_vm._v("请选择")]):_c('div',[_vm._v(_vm._s(_vm.engineName)+" ")])]),_vm._v(" "),(_vm.engineName !== '-')?_c('div',{staticClass:"icon"},[_c('img',{attrs:{"src":__webpack_require__(96),"alt":"编辑"}})]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"param",on:{"click":function($event){return _vm.showPopFn(3)}}},[_c('div',{staticClass:"carTitle"},[_vm._v("ECU型号")]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"carText"},[(_vm.ECUIName === '-')?_c('div',{staticClass:"selectBasic"},[_vm._v("请选择")]):_c('div',[_vm._v(_vm._s(_vm.ECUIName)+" ")])]),_vm._v(" "),(_vm.ECUIName !== '-')?_c('div',{staticClass:"icon"},[_c('img',{attrs:{"src":__webpack_require__(96),"alt":"编辑"}})]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"param",on:{"click":function($event){return _vm.showPopFn(4)}}},[_c('div',{staticClass:"carTitle"},[_vm._v("排放阶段")]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"carText"},[(!_vm.dischargeItem.brandName)?_c('div',{staticClass:"selectBasic"},[_vm._v("请选择")]):_c('div',[_vm._v(_vm._s(_vm.dischargeItem.brandName)+" ")])]),_vm._v(" "),(_vm.dischargeItem.brandName)?_c('div',{staticClass:"icon"},[_c('img',{attrs:{"src":__webpack_require__(96),"alt":"编辑"}})]):_vm._e()])])]),_vm._v(" "),_c('div',{staticClass:"mod-bottom-btn",staticStyle:{"padding":"0 .6rem"}},[_c('div',{staticClass:"btnBox",on:{"click":function($event){$event.stopPropagation();return _vm.confirmParam()}}},[_vm._v("提交")])]),_vm._v(" "),_c('van-popup',{style:({ 'height': '90%'}),attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('div',{staticClass:"pop-box"},[_c('div',{staticClass:"title"},[_c('span',{on:{"click":function($event){_vm.showPop = false}}},[_vm._v("关闭")]),_vm._v("\n        "+_vm._s(_vm.popTitle)+"\n        "),_c('p',{on:{"click":_vm.confirm}},[_vm._v("确定")])]),_vm._v(" "),_c('div',{ref:"container",staticClass:"cont"},[_c('div',{staticClass:"step-box hairline"},[[(_vm.brand.id && _vm.brand.id !== '')?_c('div',{staticClass:"live live-on",class:{'active': _vm.currentTabIdx === 0 && _vm.model.id},on:{"click":function($event){return _vm.switchBrandAndModel(0)}}},[_vm._v(_vm._s(_vm.brand.pathName))]):_c('div',{staticClass:"live",on:{"click":function($event){return _vm.switchBrandAndModel(0)}}},[_vm._v(_vm._s(_vm.curIndex === 4 ? '选择排放阶段' : '选择品牌'))])],_vm._v(" "),(_vm.curIndex !== 4 && (_vm.currentTabIdx === 1 || _vm.model.id))?[(_vm.brand.id && _vm.brand.id !== '' && _vm.model.id)?_c('div',{staticClass:"live live-on",class:{'active': _vm.currentTabIdx === 1},on:{"click":function($event){return _vm.switchBrandAndModel(1)}}},[_vm._v(_vm._s(_vm.model.pathName))]):_vm._e(),_vm._v(" "),(_vm.brand.id && !_vm.model.id)?_c('div',{staticClass:"live",on:{"click":function($event){return _vm.switchBrandAndModel(1)}}},[_vm._v("选择型号")]):_vm._e()]:_vm._e()],2),_vm._v(" "),(_vm.currentTabIdx === 0)?_c('div',{staticClass:"panel-cont",attrs:{"id":"panel-cont"}},[_c('div',{staticClass:"search-bar"},[_c('i',{staticClass:"search-icon"}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.brandWord),expression:"brandWord"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],attrs:{"type":"text","placeholder":"请输入关键词，选择品牌"},domProps:{"value":(_vm.brandWord)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.brandWord=$event.target.value},function($event){return _vm.search(null, _vm.brandWord)}]}})]),_vm._v(" "),_c('div',{staticClass:"list"},[_c('div',{staticClass:"item hairline",on:{"click":function($event){return _vm.editBrandOrModel(0)}}},[_c('img',{staticClass:"icon",staticStyle:{"background":"none"},attrs:{"src":__webpack_require__(307)}}),_vm._v(" "),_c('span',{staticClass:"name jump"},[_vm._v("不知道"+_vm._s(_vm.curIndex === 4 ? '排放阶段' : '品牌')+"，"),_c('i',[_vm._v("跳过")])])]),_vm._v(" "),_vm._l((_vm.brandList),function(item,index){return _c('div',{key:index,staticClass:"item hairline",on:{"click":function($event){return _vm.selectBrand(item)}}},[_c('img',{staticClass:"icon",attrs:{"src":item.pathImg}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])})],2)]):_vm._e(),_vm._v(" "),(_vm.currentTabIdx === 1)?_c('div',{staticClass:"panel-cont"},[_c('div',{staticClass:"search-bar"},[_c('i',{staticClass:"search-icon"}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.modelWord),expression:"modelWord"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],attrs:{"type":"text","placeholder":"请输入关键词，选择型号"},domProps:{"value":(_vm.modelWord)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.modelWord=$event.target.value},function($event){return _vm.search(_vm.brand.id, _vm.modelWord)}]}})]),_vm._v(" "),_c('div',{staticClass:"list"},[_c('div',{staticClass:"item hairline",on:{"click":function($event){return _vm.editBrandOrModel(1)}}},[_c('img',{staticClass:"icon",staticStyle:{"background":"none"},attrs:{"src":__webpack_require__(307)}}),_vm._v(" "),_c('span',{staticClass:"name jump"},[_vm._v("不知道型号，"),_c('i',[_vm._v("跳过")])])]),_vm._v(" "),_vm._l((_vm.modelList),function(item,index){return _c('div',{key:index,staticClass:"item hairline",on:{"click":function($event){return _vm.selectModel(item)}}},[_c('img',{staticClass:"icon",attrs:{"src":item.pathImg}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])})],2)]):_vm._e()])])])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/edit_icon.533bd1a.png";module.exports = __webpack_require__.p + "static/img/jump.d811454.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(348);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_277ec475_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(948);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2221)
  __webpack_require__(2223)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-277ec475"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_277ec475_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_277ec475_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_malfunctionMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2222);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1caa1ac1", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".QandADialog .van-dialog__header{color:#333}.van-uploader__preview .van-uploader__preview-image{width:3rem;height:3rem;border-radius:.2rem}.inputBorder .van-field__body textarea{font-family:PingFangSC-Regular,PingFang SC,sans-serif}.inputBorder .van-field__body textarea::-webkit-input-placeholder{font-size:.9rem}.inputBorder .van-field__body textarea:-ms-input-placeholder{font-size:.9rem}.inputBorder .van-field__body textarea::placeholder{font-size:.9rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2224);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("61570b06", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mod-malfunction[data-v-277ec475]{margin-bottom:0;padding-bottom:.2rem;color:#333}.mod-malfunction .mod-title[data-v-277ec475]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.mod-malfunction .mod-title .redTip[data-v-277ec475]{color:#ff3f3f}.mod-malfunction .mod-title .left-upload .upload-btn[data-v-277ec475]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mod-malfunction .mod-title .left-upload .upload-btn .icon[data-v-277ec475]{display:inline-block;margin-right:.35rem;width:1rem;height:1rem;background:#fff url(" + escape(__webpack_require__(1391)) + ") 0 0/contain no-repeat}.mod-malfunction .mod-title .left-upload .upload-btn span[data-v-277ec475]{font-size:.7rem;color:#666}.mod-malfunction .mod-title .right-btn[data-v-277ec475]{color:#177afa;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mod-malfunction .mod-title .right-btn .icon[data-v-277ec475]{margin-left:.2rem;width:.3rem;height:.5rem;background:#fff url(" + escape(__webpack_require__(118)) + ") 0 0/contain no-repeat}.mod-malfunction .mod-con[data-v-277ec475]{margin-top:.8rem}.mod-malfunction .inputBorder[data-v-277ec475]{min-height:9rem;border-radius:.3rem;border:1px solid #ececec;font-size:.9rem}.mod-malfunction .inputBorder[data-v-277ec475]::-webkit-input-placeholder{font-size:.9rem}.mod-malfunction .inputBorder[data-v-277ec475]:-ms-input-placeholder{font-size:.9rem}.mod-malfunction .inputBorder[data-v-277ec475]::placeholder{font-size:.9rem}.mod-malfunction .mod-bottom .upload-btn[data-v-277ec475]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3rem;height:3rem;margin-bottom:.6rem;border:1px dashed #177afa;border-radius:.2rem;vertical-align:top}.mod-malfunction .mod-bottom .upload-btn[data-v-277ec475]:before{display:inline-block;content:\"\";width:.9rem;height:.8rem;margin-top:.28rem;background-image:url(" + escape(__webpack_require__(798)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.mod-malfunction .mod-bottom .upload-btn[data-v-277ec475]:after{display:block;margin-top:.33rem;content:\"\\6DFB\\52A0\\56FE\\7247\";font-size:.55rem;color:#177afa}.mod-malfunction .question-pic .pic[data-v-277ec475]{position:relative;display:inline-block;width:3rem;height:3rem;margin-right:.8rem;margin-bottom:.8rem;border-radius:.2rem;border:.03rem solid #fff;overflow:hidden;vertical-align:top}.mod-malfunction .question-pic .pic .delete-pic-icon[data-v-277ec475]{position:absolute;top:0;right:0;width:.7rem;height:.7rem;background-image:url(" + escape(__webpack_require__(801)) + ");background-repeat:no-repeat;background-size:100% 100%;background-position:50%}.mod-malfunction .question-pic .pic img[data-v-277ec475]{width:100%;height:100%;overflow:hidden;vertical-align:top}.pop-box[data-v-277ec475]{position:absolute;width:100%;height:100%;left:0;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.pop-box .title[data-v-277ec475]{height:2.75rem;color:#333;font:700 16px/2.75rem PingFangSC-Semibold;background:#f6f6f6;text-align:center;position:relative}.pop-box .title p[data-v-277ec475]{position:absolute;right:0;top:0;padding:0 .8rem;color:#666;font:14px/2.75rem PingFangSC-Regular}.pop-box .con[data-v-277ec475]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;position:relative}.pop-box .con .search-bar[data-v-277ec475]{position:relative;margin-top:.6rem;padding:0 .6rem}.pop-box .con .search-bar .search-icon[data-v-277ec475]{position:absolute;top:.5rem;left:1.2rem;display:inline-block;width:1rem;height:1rem;background-image:url(" + escape(__webpack_require__(306)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-box .con .search-bar input[data-v-277ec475]{height:1.8rem;padding:0 .6rem 0 1.8rem;border-radius:.2rem;background-color:#f5f5f5;overflow:hidden;font-size:.7rem}.pop-box .con .search-bar input[data-v-277ec475]::-webkit-input-placeholder{color:#999;font-size:.7rem}.pop-box .con .search-bar input[data-v-277ec475]:-ms-input-placeholder{color:#999;font-size:.7rem}.pop-box .con .search-bar input[data-v-277ec475]::placeholder{color:#999;font-size:.7rem}.pop-box .con .searchResult-Box[data-v-277ec475]{margin-bottom:.5rem;height:88%;overflow-y:auto}.pop-box .con .searchResult-Box li[data-v-277ec475]{padding:.8rem .8rem .8rem 0;margin-left:.8rem;font-size:.9rem;border-bottom:1px solid #f5f5f5}.related-information[data-v-277ec475]{margin:0 -.8rem;padding:.6rem .8rem;background-color:#f4f5f6}.related-information .label[data-v-277ec475]{margin-bottom:.3rem;line-height:1;font-size:.6rem;color:#999}.related-information .name[data-v-277ec475]{line-height:1rem;font-size:.7rem;color:#333}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/delete_pic_icon.0d1a87a.png";/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(144);
var _uploader = _interopRequireDefault(__webpack_require__(145));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
var _partsTableConfig = _interopRequireDefault(__webpack_require__(172));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'MalfunctionMode',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _field.default.name, _field.default), _uploader.default.name, _uploader.default), _dialog.default.name, _dialog.default),
  props: {
    faultSymptomProp: {
      // 故障现象
      type: String,
      default: ''
    },
    questionIdProp: {
      // 故障现象
      type: Number,
      default: 0
    }
  },
  data: function data() {
    return {
      bucketUrl: '',
      token: '',
      faultDescriptionPicList: [],
      faultDescriptionPicListArr: [],
      searchDataList: [],
      // 搜索数据
      faultSymptom: '',
      // 故障现象名
      fastInputPopup: false,
      // 快捷输入弹层标识
      faultName: '',
      // 搜索填入名
      questionNo: null,
      sourceTitle: '' // 来源标题
    };
  },
  watch: {
    faultDescriptionPicListArr: function faultDescriptionPicListArr(val) {
      this.$emit('emitFaultDescriptionPicList', val);
    },
    faultSymptomProp: function faultSymptomProp(val) {
      this.faultSymptom = val;
    },
    questionIdProp: function questionIdProp(val) {
      this.questionId = val;
    },
    faultSymptom: function faultSymptom(val) {
      this.$emit('emitFaultSymptom', val);
    }
  },
  created: function created() {
    this.questionId = this.questionIdProp;
    this.getQNToken();
    if (this.$route.query.from === 'wxAppHome') {
      // 小程序首页发帖按钮点击跳转过来的
      localStorage.removeItem('qa_data');
    }
    var qaData = JSON.parse(localStorage.getItem('qa_data'));
    if (qaData) {
      this.getSourceTitle({
        sourceType: qaData.sourceType,
        sourceNo: qaData.sourceNo
      });
    }
  },
  methods: {
    // faultSymptomChange(v) {
    //   console.log(v)
    // },
    /**
     * 打开底部选择框
     */
    fastSearchInputFn: function fastSearchInputFn() {
      this.fastInputPopup = true;
      this.getListSymptom();
      this.$emit('elementClickEmit', {
        element_name: '点击快捷输入',
        element_content: '点击快捷输入',
        element_target_url: ''
      });
    },
    /**
     * 搜索故障库名词
     */
    search: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(id, keyWord) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this.getListSymptom({
                keyWord: keyWord
              });
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 故障名词库数据
     */
    getListSymptom: function getListSymptom(param) {
      var _this = this;
      param = param || {};
      this._Util.post(this._Api.LIST_SYMPTOM, param, function (data) {
        _this.searchDataList = data.dataList;
      }, function () {}, this);
    },
    /**
     * 点击快捷输入
     * @param {String} val 点击的那个元素
     */
    getSearchResult: function getSearchResult(val) {
      this.fastInputPopup = false;
      this.faultSymptom = val;
      this.$refs.textArea.focus();
      this.$emit('elementClickEmit', {
        element_name: '点击故障现象库',
        element_content: '点击故障现象库',
        element_target_url: '',
        correlation_id: val
      });
    },
    /**
     * 获取token
     * */
    getQNToken: function getQNToken() {
      var _this2 = this;
      this._Util.post(this._Api.appGetQNToken, {}, function (data) {
        _this2.token = data.token;
        _this2.bucketUrl = data.bucketUrl;
      }, function () {}, this);
    },
    /**
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/1000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/1000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
    * 预览图片
    * */
    previewImg: function previewImg(index) {
      this.viewImage(this.faultDescriptionPicListArr[index], this.faultDescriptionPicListArr, index);
    },
    /**
    * 删除已上传的图
    * */
    deleteImg: function deleteImg(index) {
      var _this3 = this;
      _dialog.default.confirm({
        message: '确认删除该图片？'
      }).then(function () {
        _this3.faultDescriptionPicListArr.splice(index, 1);
      });
    },
    /**
     * 上传图片
     */
    upload: function upload(file) {
      var _this4 = this;
      file.status = 'uploading';
      file.message = '上传中...';
      file.type = this.currentItem;
      if (file.file) {
        var formData = new FormData();
        var fileNameArr = file.file.name && file.file.name.split('.');
        formData.append('file', file.file);
        formData.append('key', new Date().getTime() + '.' + fileNameArr[fileNameArr.length - 1]);
        formData.append('token', this.token);
        var url = '';
        if (this._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        $.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          file.status = '';
          file.message = '';
          _this4.faultDescriptionPicListArr.push(_this4.bucketUrl + res.key);
        }).fail(function (err) {
          console.log(err);
          file.status = '';
          file.message = '';
        });
      }
    },
    /**
     * 获取资料来源
     */
    getSourceTitle: function getSourceTitle(params) {
      var _this5 = this;
      this._Util.post(this._Api.GET_SOURCE_TITLE, params, function (data) {
        if (data.sourceType === 3 || data.sourceType === 4) {
          var partsKeyArr = data.partsKey.split(':') || [];
          var parts = _partsTableConfig.default[partsKeyArr[0]].filter(function (item) {
            if (item.name === partsKeyArr[1]) {
              return item;
            }
          });
          _this5.sourceTitle = "".concat(parts[0].title, "\uFF1A").concat(data.sourceNo);
        } else {
          _this5.sourceTitle = data.sourceTitle;
        }
      }, function () {}, this);
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mod-malfunction common-box"},[(_vm.sourceTitle && _vm.sourceTitle !== '')?_c('div',{staticClass:"related-information"},[_c('p',{staticClass:"label"},[_vm._v("关联资料:")]),_vm._v(" "),_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.sourceTitle))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"mod-con"},[_c('div',{staticClass:"inputBorder needsclick"},[_c('van-field',{ref:"textArea",attrs:{"autosize":"","type":"textarea","maxlength":"200","placeholder":"请描述你的问题，必填","show-word-limit":""},model:{value:(_vm.faultSymptom),callback:function ($$v) {_vm.faultSymptom=$$v},expression:"faultSymptom"}})],1)]),_vm._v(" "),_c('div',{staticClass:"mod-title"},[_c('div',{staticClass:"left-upload"},[_c('van-uploader',{attrs:{"preview-image":false,"after-read":_vm.upload,"max-count":9},model:{value:(_vm.faultDescriptionPicList),callback:function ($$v) {_vm.faultDescriptionPicList=$$v},expression:"faultDescriptionPicList"}},[_c('div',{staticClass:"upload-btn"},[_c('i',{staticClass:"icon"}),_c('span',[_vm._v("添加图片")])])])],1),_vm._v(" "),_c('div',{staticClass:"right-btn",on:{"click":function($event){return _vm.fastSearchInputFn()}}},[_c('p',[_vm._v("点击快捷输入")]),_vm._v(" "),_c('div',{staticClass:"icon"})])]),_vm._v(" "),_c('div',{staticClass:"question-pic"},_vm._l((_vm.faultDescriptionPicListArr),function(pic,index){return _c('div',{key:index,staticClass:"pic",on:{"click":function($event){return _vm.previewImg(index)}}},[_c('span',{staticClass:"delete-pic-icon",on:{"click":function($event){$event.stopPropagation();return _vm.deleteImg(index)}}}),_vm._v(" "),_c('img',{attrs:{"src":pic}})])}),0),_vm._v(" "),_c('van-popup',{style:({ 'height': '90%'}),attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.fastInputPopup),callback:function ($$v) {_vm.fastInputPopup=$$v},expression:"fastInputPopup"}},[_c('div',{staticClass:"pop-box"},[_c('div',{staticClass:"title"},[_vm._v("\n        故障现象库\n        "),_c('p',{on:{"click":function($event){_vm.fastInputPopup = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"con"},[_c('div',{staticClass:"search-bar"},[_c('i',{staticClass:"search-icon"}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultName),expression:"faultName"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],attrs:{"type":"text","placeholder":"搜索故障现象"},domProps:{"value":(_vm.faultName)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.faultName=$event.target.value},function($event){return _vm.search(null, _vm.faultName)}]}})]),_vm._v(" "),_c('ul',{staticClass:"searchResult-Box"},_vm._l((_vm.searchDataList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.getSearchResult(item.templateTitle)}}},[_vm._v(_vm._s(item.templateTitle))])}),0)])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(349);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d59f110_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(949);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2226)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4d59f110"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d59f110_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d59f110_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_onceHelpMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2227);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4d38330d", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".reward-pop-title2[data-v-4d59f110]{padding-top:1.6rem;margin-bottom:.83rem}.reward-pop-title2 .left-text[data-v-4d59f110]{font-size:.85rem;font-weight:400;text-align:center;line-height:.85rem;color:#666}.reward-pop-content2[data-v-4d59f110]{color:#333;font-weight:600;font-family:PingFangSC-Semibold,PingFang SC,serif}.reward-pop-content2 .price[data-v-4d59f110]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:start;-ms-flex-align:start;align-items:start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:1.4rem;padding-bottom:1.6rem;box-sizing:content-box}.reward-pop-content2 .price .icon[data-v-4d59f110]{margin-top:.1rem;height:.7rem;font-size:.7rem;line-height:.7rem}.reward-pop-content2 .price .num[data-v-4d59f110]{height:1.4rem;font-size:1.4rem;line-height:1.4rem}.reward-pop-content2 .tipsText[data-v-4d59f110]{padding:1.6rem 0 1.4rem;box-sizing:content-box;height:1.25rem;font-size:.9rem;line-height:1.25rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'OnceHelp',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _icon.default.name, _icon.default), _dialog.default.Component.name, _dialog.default.Component),
  props: {
    isShowProp: {
      type: Number,
      default: -1
    },
    showAmount: {
      type: Number,
      default: -1
    },
    callBack: {
      type: Function,
      default: function _default() {
        console.log('请传入');
      }
    }
  },
  data: function data() {
    return {
      isShow: false,
      amount: 0 // 金额展示信息
    };
  },
  watch: {
    isShowProp: function isShowProp() {
      this.isShow = true;
    },
    showAmount: function showAmount(val) {
      this.amount = val;
    }
  },
  created: function created() {
    this.amount = this.showAmount;
  },
  methods: {
    childClick: function childClick() {
      this.callBack();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (true)?_c('van-dialog',{attrs:{"confirm-button-text":_vm.amount && _vm.amount > 0 ? '支付':'提交',"show-cancel-button":true},on:{"confirm":_vm.childClick},model:{value:(_vm.isShow),callback:function ($$v) {_vm.isShow=$$v},expression:"isShow"}},[(_vm.amount && _vm.amount > 0)?_c('div',{staticClass:"reward-pop-title2"},[_c('div',{staticClass:"left-text"},[_vm._v("本次「一键求助」需要支付")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"reward-pop-content2"},[(_vm.amount && _vm.amount > 0)?_c('div',{staticClass:"price"},[_c('div',{staticClass:"icon"},[_vm._v("￥")]),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v(_vm._s(_vm.amount))])]):_c('div',{staticClass:"tipsText"},[_vm._v("本次提问将扣除1次一键求助可用次数")])])]):undefined}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(350);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bb6b723c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(950);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2229)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-bb6b723c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bb6b723c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bb6b723c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_payNumMode_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2230);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4e3e6626", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-bb6b723c]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.mod-reward .mod-con-list[data-v-bb6b723c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:1.2rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.mod-reward .mod-con-list li[data-v-bb6b723c]{text-align:center;width:4.78rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;box-sizing:content-box;margin-bottom:.6rem}.mod-reward .mod-con-list li.cur .rmbNum[data-v-bb6b723c]{border-color:#177afa}.mod-reward .mod-con-list li.cur .rmbNum .price>div[data-v-bb6b723c]{color:#177afa}.mod-reward .mod-con-list li.isDisable .rmbNum[data-v-bb6b723c]{background:#f4f5f6}.mod-reward .mod-con-list li.isDisable .rmbNum .price>div[data-v-bb6b723c]{color:#999}.mod-reward .mod-con-list li[data-v-bb6b723c]:nth-child(3n+3){margin-right:0}.mod-reward .mod-con-list .rmbNum[data-v-bb6b723c]{height:3.2rem;border-radius:.2rem;border:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.mod-reward .mod-con-list .rmbNum .price[data-v-bb6b723c]{margin-bottom:.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:end;-ms-flex-align:end;align-items:end}.mod-reward .mod-con-list .rmbNum .price>div[data-v-bb6b723c]{font-weight:600;height:1.1rem;font-size:1.1rem;line-height:1.1rem}.mod-reward .mod-con-list .rmbNum .price>div.fz09[data-v-bb6b723c]{font-size:.9rem}.mod-reward .mod-con-list .rmbNum .price>.icon[data-v-bb6b723c]{font-size:.7rem;height:.7rem;line-height:.7rem;padding-top:.1rem;box-sizing:content-box}.mod-reward .mod-con-list .rmbNum .originPrice[data-v-bb6b723c]{height:.6rem;font-size:.6rem;font-weight:400;color:#999;line-height:.6rem;text-decoration:line-through}.mod-reward .mod-con-list .t_text[data-v-bb6b723c]{padding-top:.25rem;font-size:.6rem;line-height:.8rem;height:.8rem;color:#999;box-sizing:content-box}.mod-reward .mod-rewardTips[data-v-bb6b723c]{text-align:center;font-size:.7rem;-webkit-transition:all .3ms ease;transition:all .3ms ease;height:1rem;font-weight:400;color:#ff3f3f;line-height:1rem}.mod-reward .mod-rewardTips.isOpacity[data-v-bb6b723c]{opacity:0}.mod-bottom-btn[data-v-bb6b723c]{width:100%;padding:.4rem 0 1.4rem}.mod-bottom-btn .btnBox[data-v-bb6b723c]{margin:0 auto;height:2.5rem;border-radius:2.5rem;background-color:#177afa;text-align:center;line-height:2.5rem;font-size:.9rem;font-weight:400;color:#fff}.mod-bottom-btn .btnBox.isDisable[data-v-bb6b723c]{background-color:#c2c8d0}.reward-pop-title[data-v-bb6b723c]{text-align:center;padding-top:1.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:.83rem}.reward-pop-title .left-text[data-v-bb6b723c]{font-size:.85rem;font-weight:400;line-height:.85rem}.reward-pop-content .content-vip-mod[data-v-bb6b723c]{margin-bottom:1.42rem}.reward-pop-content .img-icon[data-v-bb6b723c]{width:100%;height:auto}.lucky-money-panel[data-v-bb6b723c]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.6rem 0;margin:-.4rem 0 1.35rem}.lucky-money-panel[data-v-bb6b723c]:before{left:0;right:0;width:100%;margin-bottom:-.1rem;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px;border-bottom-width:1px}.lucky-money-panel .panel-left[data-v-bb6b723c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.lucky-money-panel .panel-left .icon[data-v-bb6b723c]{width:1rem;height:1rem;margin-right:.4rem;vertical-align:middle}.lucky-money-panel .panel-left .title[data-v-bb6b723c]{line-height:1.05rem;font-size:.75rem;color:#333;vertical-align:middle}.lucky-money-panel .panel-left .date[data-v-bb6b723c]{margin-left:.3rem;line-height:.8rem;font-size:.6rem;color:#666}.lucky-money-panel .panel-right .cash-surplus[data-v-bb6b723c]{line-height:1;color:#ff3f3f;font-size:.75rem}.lucky-money-panel .panel-right .cash-surplus i[data-v-bb6b723c]{font-size:.6rem}.lucky-money-panel .panel-right .cash-surplus .symbol[data-v-bb6b723c]{margin-right:.2rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(1400);
var _checkbox = _interopRequireDefault(__webpack_require__(1401));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'PayNum',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _checkbox.default.name, _checkbox.default), _icon.default.name, _icon.default), _dialog.default.Component.name, _dialog.default.Component),
  props: {
    isShowProp: {
      type: Number,
      default: -1
    },
    callBack: {
      type: Function,
      default: function _default() {
        console.log('请传入');
      }
    }
  },
  data: function data() {
    return {
      isShow: false,
      userStatus: -1,
      // 用户状态
      checked: false,
      // 会员选中状态
      rewardAmountList: [{
        payableRewardNum: 0,
        canConnectByMobile: 1,
        isDisply: 0
      }],
      // 赏金列表
      selectedCode: -1,
      // 选中的赏金
      payableCashBounty: -1,
      // 选中的赏金原价
      minRewardNum: '',
      // 最小悬赏金额
      workTimeVo: {
        workTimeStart: '9:00',
        workTimeEnd: '22:00'
      },
      // 工作时间
      curWorkType: {},
      // 当前工作时间状态
      canConnectByMobile: 0,
      redEnvelopeTotalAmount: 0,
      redEnvelopePayAmount: 0,
      // 红包支付金额
      payAmount: 0 // 支付金额
    };
  },
  computed: {
    submitText: function submitText() {
      return this.payAmount <= 0 ? '提交' : "\u652F\u4ED8 ".concat(this.payAmount, "\u5143");
    }
  },
  watch: {
    checked: function checked(val) {
      var _this = this;
      var timer = null;
      this.selectedCode = -1;
      this.payAmount = 0;
      var param = {
        selectedCode: -1,
        allowanceAmount: this.redEnvelopePayAmount,
        payableCashBounty: this.payableCashBounty,
        canConnectByMobile: this.canConnectByMobile
      };
      // const param = {
      //   selectedCode: -1,
      //   allowanceAmount: this.redEnvelopePayAmount,
      //   payableCashBounty: this.payableCashBounty,
      //   canConnectByMobile: this.canConnectByMobile
      // }
      this.$emit('emitCashNum', param);
      // 非会员3s跳转逻辑
      if (this.userStatus !== 2 && val) {
        (0, _toast.default)('您当前还不是付费会员');
        clearTimeout(timer);
        timer = setTimeout(function () {
          _this.checked = false;
        }, 3000);
      }
    },
    isShowProp: function isShowProp() {
      this.isShow = true;
    }
  },
  created: function created() {
    this.getRewardAmountList();
    this.allowanceInfo();
  },
  methods: {
    childClick: function childClick() {
      this.callBack();
    },
    /**
     * 初始化会员状态判断
     * userStatus === 2 为付费会员
     * */
    initUserStatus: function initUserStatus() {
      this.userStatus = JSON.parse(localStorage.getItem('userInfo')).userStatus;
      // this.userStatus = 1
      if (this.userStatus === 2 && this.rewardAmountList[0].isDisply !== 1) {
        this.checked = true;
      }
    },
    /**
     * 获取悬赏金额列表
     */
    getRewardAmountList: function getRewardAmountList() {
      var _this2 = this;
      this._Util.post(this._Api.GET_QA_CONFIG, {
        type: 1
      }, function (data) {
        if (data) {
          // data.rewardItems.forEach(v => {
          //   v.isDisply = 2
          // })
          _this2.rewardAmountList = data.rewardItems;
          _this2.workTimeVo = data.workTimeVo;
          _this2.curWorkType = data.curWorkType;
          _this2.minRewardNum = data.minRewardNum;
          _this2.initUserStatus();
        }
      }, function () {}, this);
    },
    /**
     * 选择悬赏金额
     * @param {Object} item 选中金额数据
     */
    selectMoney: function selectMoney(item) {
      // 禁止状态不可点
      if (item.isDisply === 1) return;
      // 非会员选中使用会员特权，禁止选择会员价
      if (this.userStatus !== 2 && this.checked) return;
      this.payableCashBounty = item.payableRewardNum;
      this.canConnectByMobile = item.canConnectByMobile;
      if (this.checked) {
        this.selectedCode = item.rewardNum;
      } else {
        this.selectedCode = item.payableRewardNum;
      }
      // 红包总余额 > 0 时
      // 红包金额 >= selectedCode（悬赏金额/会员优惠后的金额）时，支付余额 = 0
      // 红包金额 < selectedCode（悬赏金额/会员优惠后的金额）时，支付余额 = 修改支付金额（selectedCode（悬赏金额/会员优惠后的金额）- 红包金额）
      // 红包总余额 <= 0 时
      // 支付余额 = selectedCode（悬赏金额/会员优惠后的金额）
      if (this.redEnvelopeTotalAmount > 0) {
        if (this.redEnvelopeTotalAmount > this.selectedCode) {
          this.redEnvelopePayAmount = this.selectedCode;
          this.payAmount = 0;
        } else {
          this.redEnvelopePayAmount = this.redEnvelopeTotalAmount;
          this.payAmount = this.currency(this.selectedCode).subtract(this.redEnvelopeTotalAmount);
        }
      } else {
        this.payAmount = this.selectedCode;
      }
      var param = {
        selectedCode: this.payAmount,
        allowanceAmount: this.redEnvelopePayAmount,
        payableCashBounty: this.payableCashBounty,
        canConnectByMobile: this.canConnectByMobile
      };
      // const param = {
      //   selectedCode: this.payAmount,
      //   allowanceAmount: this.redEnvelopePayAmount,
      //   payableCashBounty: this.payableCashBounty,
      //   canConnectByMobile: this.canConnectByMobile
      // }
      this.$emit('emitCashNum', param);
      this.$emit('elementClickEmit', {
        element_name: '选择问题悬赏',
        element_content: '选择问题悬赏',
        element_target_url: '',
        correlation_id: this.payableCashBounty
      });
    },
    /**
     * 我的红包账户
     */
    allowanceInfo: function allowanceInfo() {
      var _this3 = this;
      this._Util.post(this._Api.ALLOWANCES_INFO, {}, function (data) {
        _this3.redEnvelopeTotalAmount = data.allowanceAmount || 0;
      }, function () {}, this);
    },
    /**
     * 使用会员特权埋点
     */
    clickCheckbox: function clickCheckbox() {
      if (!this.checked) return;
      this.$emit('elementClickEmit', {
        element_name: '使用会员特权',
        element_content: '使用会员特权',
        element_target_url: ''
      });
    }
  }
};__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(2056);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2057);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("48b3f7ca", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:12px}.van-checkbox__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:20px;line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid #c8c9cc;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--checked .van-icon{color:#fff;background-color:#1989fa;border-color:#1989fa}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:#ebedf0;border-color:#c8c9cc}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:#c8c9cc}.van-checkbox__label{margin-left:8px;color:#323233;line-height:20px}.van-checkbox__label--left{margin:0 8px 0 0}.van-checkbox__label--disabled{color:#c8c9cc}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/checkbox/index.css"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,gBAAgB,eAAe,yBAAyB,gBAAgB,CAAC,wBAAwB,kBAAkB,CAAC,8BAA8B,cAAc,CAAC,0BAA0B,iBAAiB,CAAC,oBAAoB,mBAAmB,kBAAkB,UAAU,WAAW,eAAe,gBAAgB,cAAc,CAAC,8BAA8B,cAAc,sBAAsB,aAAa,cAAc,kBAAkB,eAAe,iBAAiB,kBAAkB,yBAAyB,gCAAgC,wBAAwB,gEAAgE,uDAAuD,CAAC,qCAAqC,kBAAkB,CAAC,uCAAuC,WAAW,yBAAyB,oBAAoB,CAAC,8BAA8B,kBAAkB,CAAC,wCAAwC,yBAAyB,oBAAoB,CAAC,oEAAoE,aAAa,CAAC,qBAAqB,gBAAgB,cAAc,gBAAgB,CAAC,2BAA2B,gBAAgB,CAAC,+BAA+B,aAAa,CAAC","file":"index.css","sourcesContent":[".van-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:12px}.van-checkbox__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:20px;line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid #c8c9cc;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--checked .van-icon{color:#fff;background-color:#1989fa;border-color:#1989fa}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:#ebedf0;border-color:#c8c9cc}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:#c8c9cc}.van-checkbox__label{margin-left:8px;color:#323233;line-height:20px}.van-checkbox__label--left{margin:0 8px 0 0}.van-checkbox__label--disabled{color:#c8c9cc}"],"sourceRoot":""}]);

// exports


exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _checkbox = __webpack_require__(1381);

var _createNamespace = (0, _utils.createNamespace)('checkbox'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _checkbox.CheckboxMixin)({
    bem: bem,
    role: 'checkbox',
    parent: 'vanCheckbox'
  })],
  computed: {
    checked: {
      get: function get() {
        if (this.parent) {
          return this.parent.value.indexOf(this.name) !== -1;
        }

        return this.value;
      },
      set: function set(val) {
        if (this.parent) {
          this.setParentValue(val);
        } else {
          this.$emit('input', val);
        }
      }
    }
  },
  watch: {
    value: function value(val) {
      this.$emit('change', val);
    }
  },
  methods: {
    // @exposed-api
    toggle: function toggle(checked) {
      var _this = this;

      if (checked === void 0) {
        checked = !this.checked;
      }

      // When toggle method is called multiple times at the same time,
      // only the last call is valid.
      // This is a hack for usage inside Cell.
      clearTimeout(this.toggleTask);
      this.toggleTask = setTimeout(function () {
        _this.checked = checked;
      });
    },
    setParentValue: function setParentValue(val) {
      var parent = this.parent;
      var value = parent.value.slice();

      if (val) {
        if (parent.max && value.length >= parent.max) {
          return;
        }
        /* istanbul ignore else */


        if (value.indexOf(this.name) === -1) {
          value.push(this.name);
          parent.$emit('input', value);
        }
      } else {
        var index = value.indexOf(this.name);
        /* istanbul ignore else */

        if (index !== -1) {
          value.splice(index, 1);
          parent.$emit('input', value);
        }
      }
    }
  }
});

exports.default = _default;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('van-dialog',{attrs:{"show-confirm-button":false},model:{value:(_vm.isShow),callback:function ($$v) {_vm.isShow=$$v},expression:"isShow"}},[_c('div',{staticClass:"reward-pop-title"},[_c('div',{staticClass:"left-text"},[_vm._v("悬赏多少钱解决此问题")]),_vm._v(" "),_c('van-icon',{attrs:{"name":"cross","color":"#ACACAC","size":"0.85rem"},on:{"click":function($event){_vm.isShow = false}}})],1),_vm._v(" "),_c('div',{staticClass:"reward-pop-content"},[_c('div',{staticClass:"content-vip-mod"},[(_vm.curWorkType === 0)?_c('p',{staticClass:"mod-rewardTips"},[_vm._v("当前为非工作时段("+_vm._s(_vm.workTimeVo.workTimeStart)+" - "+_vm._s(_vm.workTimeVo.workTimeEnd)+")，悬赏金额需≥30元")]):_c('van-checkbox',{on:{"click":_vm.clickCheckbox},scopedSlots:_vm._u([{key:"icon",fn:function(props){return [(props.checked)?_c('img',{staticClass:"img-icon",attrs:{"slot":"icon","src":__webpack_require__(2231),"alt":"选中"},slot:"icon"}):_c('img',{staticClass:"img-icon",attrs:{"slot":"icon","size":"0.6rem","src":__webpack_require__(2232),"alt":"非选中"},slot:"icon"})]}}]),model:{value:(_vm.checked),callback:function ($$v) {_vm.checked=$$v},expression:"checked"}},[_vm._v("\n        使用会员特权\n        ")])],1),_vm._v(" "),_c('div',{staticClass:"mod-reward"},[_c('ul',{staticClass:"mod-con-list"},_vm._l((_vm.rewardAmountList),function(item,index){return _c('li',{key:index,class:{'cur': (_vm.checked && _vm.selectedCode === item.rewardNum) || (!_vm.checked && _vm.selectedCode === item.payableRewardNum) ,'isDisable' : item.isDisply === 1 },on:{"click":function($event){return _vm.selectMoney(item)}}},[_c('div',{staticClass:"rmbNum"},[_c('div',{staticClass:"inbox"},[(_vm.checked)?_c('div',{staticClass:"price"},[(item.rewardNum !== 0)?_c('div',{staticClass:"icon"},[_vm._v("￥")]):_vm._e(),_vm._v(" "),_c('div',{class:{'fz09': item.rewardNum === 0}},[_vm._v(_vm._s(item.rewardNum === 0 ? '免费' : item.rewardNum))])]):_c('div',{staticClass:"price"},[_c('div',{staticClass:"icon"},[_vm._v("￥")]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.payableRewardNum))])]),_vm._v(" "),(_vm.checked)?_c('p',{staticClass:"originPrice"},[_vm._v(_vm._s(item.payableRewardNum))]):_vm._e()])]),_vm._v(" "),(item.canConnectByMobile === 1)?_c('p',{staticClass:"t_text"},[_vm._v("可电话沟通")]):_vm._e()])}),0),_vm._v(" "),(_vm.redEnvelopeTotalAmount > 0)?_c('div',{staticClass:"lucky-money-panel hairline"},[_c('div',{staticClass:"panel-left"},[_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(2233)}}),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v("问答红包")]),_vm._v(" "),_c('span',{staticClass:"date"},[_vm._v("(余额 ¥"+_vm._s(_vm.redEnvelopeTotalAmount)+")")])]),_vm._v(" "),_c('div',{staticClass:"panel-right"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.selectedCode >= 0),expression:"selectedCode >= 0"}],staticClass:"cash-surplus"},[_c('i',{staticClass:"symbol"},[_vm._v("-")]),_c('i',[_vm._v("¥")]),_vm._v(_vm._s(_vm.redEnvelopePayAmount))])])]):_vm._e(),_vm._v(" "),_c('p',{staticClass:"mod-rewardTips",class:{'isOpacity' : !_vm.canConnectByMobile }},[_vm._v("悬赏≥"+_vm._s(_vm.minRewardNum)+"元时，可电话进行沟通")]),_vm._v(" "),_c('div',{staticClass:"mod-bottom-btn"},[_c('div',{staticClass:"btnBox",class:{'isDisable':_vm.selectedCode < 0},on:{"click":function($event){return _vm.childClick()}}},[_vm._v(_vm._s(_vm.submitText))])])])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/vip-selected.0b0ad8e.png";module.exports = __webpack_require__.p + "static/img/vip-no-selected.e400765.png";module.exports = __webpack_require__.p + "static/img/lucky_money_icon.18acf01.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"putQuestion"},[(_vm.isMacAddressFlag)?_c('div',{staticClass:"macAddress-box"},[_c('p',{domProps:{"innerHTML":_vm._s(_vm.macAddressTips)}})]):_vm._e(),_vm._v(" "),_c('malfunctionMode',{attrs:{"fault-symptom-prop":_vm.faultSymptom,"question-id-prop":_vm.questionId},on:{"emitFaultSymptom":_vm.updateFaultSymptom,"emitFaultDescriptionPicList":_vm.updateFaultDescriptionPicList,"elementClickEmit":_vm.elementClick}}),_vm._v(" "),(_vm.isShowCarBasic)?[_c('car-basic-mode',{attrs:{"fault-symptom-prop":_vm.faultSymptom},on:{"emitCarBasicObj":_vm.updateCarBasic,"elementClickEmit":_vm.elementClick}})]:_vm._e(),_vm._v(" "),(_vm.isMacAddressFlag)?[_c('onceHelpMode',{attrs:{"show-amount":_vm.selectedCode,"is-show-prop":_vm.isShowReward,"call-back":_vm.submitQuestion}})]:[_c('payNumMode',{attrs:{"is-show-prop":_vm.isShowReward,"call-back":_vm.submitQuestion},on:{"emitCashNum":_vm.updateCashNum,"elementClickEmit":_vm.elementClick}})]],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(351);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1afe31ea_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(952);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2234)
  __webpack_require__(2236)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1afe31ea"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1afe31ea_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1afe31ea_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_redEnvelopeRecord_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2235);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("a979783c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".red-envelope-record .van-pull-refresh{height:100%;overflow:initial}.red-envelope-record .van-cell{padding:0;line-height:1}.red-envelope-record .van-cell:after{display:none}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2237);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("31eaa494", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-1afe31ea]{font-family:PingFangSC-Semibold,PingFang SC}[class*=hairline][data-v-1afe31ea]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.red-envelope-record[data-v-1afe31ea]{background-color:#fff;overflow:auto}.red-envelope-record .use-panel[data-v-1afe31ea]{padding:.6rem;background-color:#f4f5f6}.red-envelope-record .use-panel .panel-inner[data-v-1afe31ea]{padding:.8rem;background-color:#fff;border-radius:.3rem;box-shadow:0 .3rem .6rem 0 rgba(207,210,216,.25)}.red-envelope-record .use-panel .panel-inner .panel-top[data-v-1afe31ea]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:1rem}.red-envelope-record .use-panel .panel-inner .panel-top .title[data-v-1afe31ea]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.7rem;color:#999;line-height:1rem}.red-envelope-record .use-panel .panel-inner .panel-top .tip[data-v-1afe31ea]{font-size:.6rem;color:#177afa}.red-envelope-record .use-panel .panel-inner .panel-top .tip .tip-icon[data-v-1afe31ea]{display:inline-block;width:.6rem;height:.6rem;margin-left:.2rem;margin-top:-.1rem;background:url(" + escape(__webpack_require__(2238)) + ");background-size:100%;background-position:50%;background-repeat:no-repeat;vertical-align:middle}.red-envelope-record .use-panel .panel-inner .panel-content[data-v-1afe31ea]{margin-top:.4rem;line-height:1}.red-envelope-record .use-panel .panel-inner .panel-content .money[data-v-1afe31ea]{font-size:1.6rem;color:#333;line-height:1.6rem;font-weight:600}.red-envelope-record .use-panel .panel-inner .panel-content .money i[data-v-1afe31ea]{display:inline-block;line-height:1;margin-right:.2rem;font-size:.7rem;font-weight:600;vertical-align:baseline}.red-envelope-record .use-panel .panel-inner .panel-bottom[data-v-1afe31ea]{position:relative;margin-top:.8rem;line-height:.6rem}.red-envelope-record .use-panel .panel-inner .panel-bottom .date[data-v-1afe31ea]{font-size:.6rem;color:#999}.red-envelope-record .use-panel .panel-inner .panel-bottom .use-button[data-v-1afe31ea]{position:absolute;right:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:4.1rem;height:1.6rem;background-color:#177afa;border-radius:.85rem;font-size:.7rem;font-weight:600;color:#fff}.red-envelope-record .record-list[data-v-1afe31ea]{padding-bottom:3rem}.red-envelope-record .record-list .title[data-v-1afe31ea]{padding:.4rem 0 .4rem .8rem;font-size:.7rem;color:#999;line-height:1rem;background-color:#f4f5f6}.red-envelope-record .record-list .record-list-wrapper[data-v-1afe31ea]{padding:0 .8rem;background-color:#fff}.red-envelope-record .record-list .record-list-wrapper .item[data-v-1afe31ea]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.25rem}.red-envelope-record .record-list .record-list-wrapper .item[data-v-1afe31ea]:before{left:0;right:0;width:100%;margin-bottom:-.1rem;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.red-envelope-record .record-list .record-list-wrapper .item .item-left[data-v-1afe31ea]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.red-envelope-record .record-list .record-list-wrapper .item .item-left .date[data-v-1afe31ea]{font-size:.7rem;line-height:1;color:#666}.red-envelope-record .record-list .record-list-wrapper .item .item-left .meta[data-v-1afe31ea]{margin-top:.4rem;font-size:.6rem;line-height:1;color:#999}.red-envelope-record .record-list .record-list-wrapper .item .item-right span[data-v-1afe31ea]{font-size:.8rem;font-weight:600;color:#333}.red-envelope-record .record-list .record-list-wrapper .item .item-right span i[data-v-1afe31ea]{font-size:.6rem;font-weight:600}.red-envelope-record .record-list .record-list-wrapper .item .item-right span i.symbol[data-v-1afe31ea]{display:inline-block;margin-right:.2rem}.red-envelope-record .record-list .record-list-wrapper .item .item-right span.font-red[data-v-1afe31ea]{color:#ff3f3f}.red-envelope-record .list-bottom-tip[data-v-1afe31ea]{position:absolute;width:100%;left:0;bottom:0;padding:1rem .6rem;background-color:#fff;line-height:1rem;text-align:center;font-size:.7rem;color:#999;z-index:10}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/question_tip_icon.c49e2b8.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
__webpack_require__(206);
var _pullRefresh = _interopRequireDefault(__webpack_require__(207));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'RedEnvelopeRecord',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _pullRefresh.default.name, _pullRefresh.default), _list.default.name, _list.default), _cell.default.name, _cell.default), _dialog.default.name, _dialog.default),
  data: function data() {
    return {
      env: '',
      allowance: {
        allowanceAmount: 0,
        allowanceAccountEndTime: null
      },
      pageNum: 1,
      pageSize: 20,
      loading: false,
      finished: false,
      refreshing: false,
      finishedText: '',
      logList: [] // 记录数据
    };
  },
  created: function created() {
    this.allowanceInfo();
    if (window.location.href.indexOf('https://wx.kaxiuyun') !== -1) {
      this.env = 'prod';
    } else {
      this.env = 'dev';
    }
  },
  methods: {
    /**
     * 我的红包账户
     */
    allowanceInfo: function allowanceInfo() {
      var _this = this;
      this._Util.post(this._Api.ALLOWANCES_INFO, {}, function (data) {
        _this.allowance = data;
      }, function () {}, this);
    },
    /**
     * 红包记录
     */
    allowanceLogList: function allowanceLogList() {
      var _this2 = this;
      if (this.refreshing) {
        this.logList = [];
        this.pageNum = 1;
        this.refreshing = false;
      }
      this._Util.post(this._Api.ALLOWANCE_LOG_LIST, {
        pageNum: this.pageNum,
        pageSize: this.pageSize
      }, function (data) {
        var list = data.dataList || [];
        _this2.logList = _this2.logList.concat(list);
        _this2.loading = false;
        _this2.pageNum++;
        if (list.length < _this2.pageSize) {
          _this2.finished = true;
          _this2.finishedText = '没有更多了';
        }
        if (list.length === 0 && _this2.logList.length === 0) {
          _this2.finishedText = '暂无数据';
        }
      }, function () {}, this);
    },
    /**
     * 刷新记录列表
     */
    onRefresh: function onRefresh() {
      this.finished = false;
      this.loading = true;
      this.allowanceLogList();
      this.allowanceInfo();
    },
    /**
     * 问答红包规则
     */
    redEnvelopeRule: function redEnvelopeRule() {
      var articleId = null;
      articleId = this.env === 'dev' ? 159427 : 520955;
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'articleDetail',
            url: "".concat(location.origin, "/v2/community/articleDetail?articleId=").concat(articleId, "&shareId=0")
          }
        });
      } else {
        this.$router.push({
          path: "/v2/community/articleDetail?articleId=".concat(articleId, "&shareId=0")
        });
      }
    },
    /**
     * 使用红包去提问
     * 提问查看提问状态接口
     */
    putQuestion: function putQuestion() {
      var _this3 = this;
      this._Util.post(this._Api.CAN_NEW_QUESTION, {}, function (data) {
        var element_name = '';
        if (data.code === 1) {
          _this3.goLinkToPutQuestion();
        } else {
          var statusText = '去评价';
          var statusText2 = '我知道了';
          element_name = "\u63D0\u95EE\u62E6\u622A-".concat(statusText);
          if (data.questionCloseStatus === 1) {
            statusText = '去关闭';
            statusText2 = '再等等';
            element_name = "\u63D0\u95EE\u62E6\u622A-".concat(statusText);
          }
          _dialog.default.confirm({
            title: '提示',
            message: data.msg,
            confirmButtonText: statusText,
            cancelButtonText: statusText2,
            beforeClose: function beforeClose(action, done) {
              if (action !== 'confirm') {
                element_name = "\u63D0\u95EE\u62E6\u622A-".concat(statusText2);
              }
              done();
              _this3.elementClick({
                element_name: element_name,
                element_content: element_name,
                element_target_url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(data.questionNo, "&id=").concat(data.dialogId, "&ascription=questioner")
              });
            }
          }).then(function () {
            _this3.goLinkToConversation({
              dialogId: data.dialogId,
              questionNo: data.questionNo
            });
          }).catch(function () {
            console.log(statusText2);
          });
        }
      }, function () {}, this, true);
      this.elementClick({
        element_name: '去使用红包',
        element_content: '去使用红包',
        element_target_url: "".concat(location.origin, "/v2/shopping/putQuestion"),
        correlation_id: this.allowance.allowanceAmount
      });
    },
    /**
     * 去提问页
     */
    goLinkToPutQuestion: function goLinkToPutQuestion() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'putQuestion',
            url: "".concat(location.origin, "/v2/shopping/putQuestion")
          }
        });
      } else {
        location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
      }
    },
    /**
     * 去会话页标记问题
     */
    goLinkToConversation: function goLinkToConversation(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversationV13' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/questionsOrAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.dialogId, "&ascription=questioner")
          }
        });
      } else {
        this.$router.push({
          name: 'conversationV13',
          query: {
            questionNo: item.questionNo,
            id: item.dialogId,
            ascription: 'questioner'
          }
        });
      }
    },
    /**
     * 元素点击埋点
     */
    elementClick: function elementClick(params) {
      var options = {
        url: window.location.href,
        title: document.title,
        moudle_type: '极速问答',
        operation_page: '极速问答'
      };
      var _options = Object.assign(options, params);
      this._Util.sensorsCollect('element_click', _options);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"red-envelope-record"},[_c('van-pull-refresh',{on:{"refresh":_vm.onRefresh},model:{value:(_vm.refreshing),callback:function ($$v) {_vm.refreshing=$$v},expression:"refreshing"}},[_c('div',{staticClass:"use-panel"},[_c('div',{staticClass:"panel-inner"},[_c('div',{staticClass:"panel-top"},[_c('span',{staticClass:"title"},[_vm._v("红包余额")]),_vm._v(" "),_c('span',{staticClass:"tip",on:{"click":function($event){return _vm.redEnvelopeRule()}}},[_vm._v("红包规则"),_c('i',{staticClass:"tip-icon"})])]),_vm._v(" "),_c('div',{staticClass:"panel-content"},[_c('span',{staticClass:"money"},[_c('i',[_vm._v("¥")]),_vm._v(_vm._s(_vm.allowance.allowanceAmount))])]),_vm._v(" "),(_vm.allowance.allowanceAmount > 0)?_c('div',{staticClass:"panel-bottom"},[_c('span',{staticClass:"date"},[_vm._v(_vm._s(_vm._Util.dateFormat(_vm.allowance.allowanceAccountEndTime, 'yyyy.MM.dd'))+" 到期")]),_vm._v(" "),_c('span',{staticClass:"use-button",on:{"click":function($event){return _vm.putQuestion()}}},[_vm._v("去使用")])]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"record-list"},[_c('p',{staticClass:"title"},[_vm._v("红包使用记录")]),_vm._v(" "),_c('div',{staticClass:"record-list-wrapper"},[_c('van-list',{attrs:{"finished":_vm.finished,"offset":"0","finished-text":_vm.finishedText},on:{"load":_vm.allowanceLogList},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:"loading"}},_vm._l((_vm.logList),function(item){return _c('van-cell',{key:item.logId},[_c('div',{staticClass:"item hairline"},[_c('div',{staticClass:"item-left"},[(item.createTime)?_c('p',{staticClass:"date"},[_vm._v(_vm._s(_vm._Util.dateFormat(item.createTime, 'yyyy-MM-dd hh:mm')))]):_vm._e(),_vm._v(" "),_c('p',{staticClass:"meta"},[_vm._v(_vm._s(item.actionTypeStr))])]),_vm._v(" "),_c('div',{staticClass:"item-right"},[_c('span',{class:{'font-red' : item.logType === 1}},[_c('i',{staticClass:"symbol"},[_vm._v(_vm._s(item.logType === 1 ? '+' : '-'))]),_c('i',[_vm._v("¥")]),_vm._v(_vm._s(item.allowanceAmount))])])])])}),1)],1)])]),_vm._v(" "),_c('p',{staticClass:"list-bottom-tip"},[_vm._v("系统只显示近30天记录")])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(352);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1107a2f1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(953);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2239)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1107a2f1"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1107a2f1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1107a2f1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customIntimacy_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2240);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6319b321", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-1107a2f1]{background-color:#f2f4f7;overflow:auto;padding-top:.6rem}.wrap .intimacy-score[data-v-1107a2f1]{background-color:#fff;height:7.75rem;margin:0 .6rem;box-shadow:0 .1rem .3rem 0 rgba(209,229,255,.35);border-radius:.4rem;position:relative;text-align:center}.wrap .intimacy-score>img[data-v-1107a2f1]{position:absolute;top:.83rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:6.55rem;height:4.63rem}.wrap .intimacy-score .score[data-v-1107a2f1]{padding-top:2.65rem;font-size:1.5rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#111a34;line-height:1.5rem}.wrap .intimacy-score p[data-v-1107a2f1]:first-of-type{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:r#111A34;line-height:1rem}.wrap .intimacy-score p[data-v-1107a2f1]:nth-of-type(2){margin-top:.63rem;font-size:.6rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#858b9c;line-height:.83rem}.wrap .strategy[data-v-1107a2f1]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#2f86f6;line-height:1.13rem;margin-top:2.1rem;text-align:center}.wrap .main .qualification[data-v-1107a2f1]{margin:.5rem .6rem 0;padding:.6rem 0 .6rem .8rem;background:#fff;border-radius:.3rem;position:relative}.wrap .main .qualification .title[data-v-1107a2f1]{font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:blod;color:#111a34;line-height:1.25rem}.wrap .main .qualification .content[data-v-1107a2f1]{margin-top:.3rem;margin-right:4.83rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:1.05rem}.wrap .main .qualification img[data-v-1107a2f1]{position:absolute;top:50%;right:1rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.9rem;height:2.73rem}.wrap .main .left-num[data-v-1107a2f1]{margin:.5rem .6rem 0;height:5.85rem;background-color:#fff;border-radius:.3rem;position:relative}.wrap .main .left-num img[data-v-1107a2f1]{position:absolute;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);top:1rem;width:1.27rem;height:1.95rem}.wrap .main .left-num p[data-v-1107a2f1]{padding-top:3.6rem;text-align:center;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:blod;color:#111a34;line-height:1.25rem}.wrap .main .count-down[data-v-1107a2f1]{margin:.5rem .6rem;height:7.95rem;background:#fff;border-radius:.3rem;text-align:center}.wrap .main .count-down .time[data-v-1107a2f1]{padding-top:.8rem}.wrap .main .count-down .time[data-v-1107a2f1] .van-count-down{font-size:1.4rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:blod;color:#ff5257;line-height:1.95rem}.wrap .main .count-down p[data-v-1107a2f1]{margin-top:.15rem;font-size:.7rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:blod;color:#111a34;line-height:1rem}.wrap .main .count-down .purchase-btn[data-v-1107a2f1]{margin:1.25rem auto;width:15.55rem;height:2rem;line-height:2rem;background-color:#2f86f6;border-radius:1.1rem;text-align:center;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fff}.wrap .main .list-wrap[data-v-1107a2f1]{margin-top:1.4rem;padding-top:.15rem;padding-bottom:2rem;position:relative}.wrap .main .list-wrap .abandon[data-v-1107a2f1]{position:absolute;top:0;right:.6rem;width:3.8rem;height:1.4rem;background-color:#ff5257;border-radius:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.6rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#fff}.wrap .main .list-wrap .list-title[data-v-1107a2f1]{font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:1.13rem;text-indent:.8rem}.wrap .main .list-wrap .list[data-v-1107a2f1]{margin:.6rem .6rem 0;background:#fff;border-radius:.3rem;padding-left:.8rem}.wrap .main .list-wrap .list .item[data-v-1107a2f1]{height:2.7rem;border-bottom:1px solid #eff0f2;box-sizing:content-box;position:relative}.wrap .main .list-wrap .list .item[data-v-1107a2f1]:last-of-type{border-bottom:none}.wrap .main .list-wrap .list .item .index[data-v-1107a2f1]{width:1.45rem;height:1.1rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:blod;color:#002140;line-height:1.1rem}.wrap .main .list-wrap .list .item .user-name[data-v-1107a2f1]{margin-left:2.45rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:2.7rem}.wrap .main .list-wrap .list .item .user-status[data-v-1107a2f1]{font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#858b9c;line-height:1.13rem;position:absolute;top:50%;right:1rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .main .list-wrap .list .item.active .index[data-v-1107a2f1],.wrap .main .list-wrap .list .item.active .user-name[data-v-1107a2f1],.wrap .main .list-wrap .list .item.active .user-status[data-v-1107a2f1]{color:#ff763b}.wrap .strategy-wrap[data-v-1107a2f1]{width:16rem;background-color:#fff;border-radius:.6rem}.wrap .strategy-wrap .title[data-v-1107a2f1]{font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333;line-height:1.25rem;text-align:center;padding-top:1.2rem;padding-bottom:.6rem}.wrap .strategy-wrap .content[data-v-1107a2f1]{padding:0 1.2rem 1.4rem;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.25rem;white-space:pre-line;max-height:11.5rem;overflow:auto}.wrap .strategy-wrap .operation[data-v-1107a2f1]{height:2.53rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:1px solid #d8d8d8;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#2f86f6}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default), _dialog.default.Component.name, _dialog.default.Component), _countDown.default.name, _countDown.default),
  filters: {
    // 根据亲密度 返回对应进度的图片
    rangNumImage: function rangNumImage(val) {
      var _score = 100;
      var scoreList = [100, 200, 300, 400, 500, 600, 700, 800, 900];
      if (val === null || val === 0 || val === '') {
        _score = 100;
      }
      scoreList.forEach(function (scoreRange) {
        if (val >= scoreRange) {
          _score = scoreRange;
        }
      });
      return "https://static4.kaxiuyun.com/intimacy/".concat(_score, ".png");
    }
  },
  data: function data() {
    return {
      status: '',
      // 1:未申请老友价 2：排队中 3：已排到付款倒计时
      applyId: '',
      intimacyNum: 0,
      updateTime: '',
      time: null,
      isTimesUp: false,
      showStrategyBtn: false,
      showStrategyWrap: false,
      strategyText: '',
      queueInfo: {},
      buttonName: '',
      buttonUrl: '',
      totalCount: 0,
      peopleList: [],
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        callback: this.getQueueList,
        warpId: 'list'
      }
    };
  },
  created: function created() {
    this.shareOptions();
    this.getIntimacyDetail();
    this.getStrategyInfo();
    this.getQueueAndPayInfo();
  },
  methods: {
    /**
     * 倒计时结束
     */
    countDownFinish: function countDownFinish() {
      console.log('倒计时结束');
      this.isTimesUp = true;
    },
    /**
     * 获取亲密度详情
     */
    getIntimacyDetail: function getIntimacyDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOM_INTIMACY_DETAIL, {}, function (data) {
        if (data.code && data.code === 'PARAM_MOVED') {
          _this.$router.replace({
            name: 'fms'
          });
          return false;
        }
        _this.intimacyNum = data.intimacyNum;
        _this.updateTime = data.updateTime;
        _this.status = data.status;
        switch (data.status) {
          case 1:
            _this.showStrategyBtn = true; // 未申请到老友价
            break;
          case 2:
            _this.showStrategyBtn = false; // 排队中
            break;
          case 3:
            // 已排到付款倒计时
            _this.showStrategyBtn = false;
            _this.applyId = data.applyId;
            _this.isTimesUp = false;
            _this.time = new Date(data.payEndTime) - Date.now();
            break;
        }
      }, function () {}, this);
    },
    /**
     * 支付跳转链接
     */
    purchase: function purchase() {
      if (this.isTimesUp) {
        return (0, _toast.default)('付款超时');
      }
      window.location.href = this.buttonUrl;
    },
    /**
     * 获取队列 及 支付按钮信息
     */
    getQueueAndPayInfo: function getQueueAndPayInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'close_cus_certification',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.queueInfo = data.dataList[0];
        }
      }, function () {}, this);
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'close_cus_button',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.buttonName = data.dataList[0].button_name;
          _this2.buttonUrl = data.dataList[0].button_url;
          _this2.$nextTick(function () {
            _this2.$refs.countDown.start();
          });
        }
      }, function () {}, this);
    },
    /**
     * 获取攻略内容
     */
    getStrategyInfo: function getStrategyInfo() {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'close_cus_tip',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this3.strategyText = data.dataList[0].text;
        }
      }, function () {}, this);
    },
    /**
     * 初始化 mescroll 方法
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll; // 如果this.mescroll对象没有使用到,则mescrollInit可以不用配置
    },
    /**
     * 获取排队列表
     */
    getQueueList: function getQueueList(page, mescroll) {
      var _this4 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'close_cus_list',
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        var arr = data.dataList;
        if (page.num === 1) {
          _this4.peopleList = [];
          _this4.totalCount = data.totalCount;
        }
        _this4.peopleList = _this4.peopleList.concat(arr);
        _this4.$nextTick(function () {
          mescroll.endSuccess(arr.length);
        });
      }, function () {
        mescroll.endErr();
      }, this, true);
    },
    /**
     * 放弃名额弹窗确认
     */
    abandon: function abandon() {
      var that = this;
      function beforeClose(action, done) {
        if (action === 'confirm') {
          that.abandonQualification(done);
        } else {
          done();
        }
      }
      _dialog.default.confirm({
        title: '提示',
        message: '确认放弃名额？',
        beforeClose: beforeClose
      });
    },
    /**
     * 放弃名额
     */
    abandonQualification: function abandonQualification(done) {
      var _this5 = this;
      this._Util.post(this._Api.POST_ABANDON_INTIMACY_PRICE, {
        id: this.applyId
      }, function (data) {
        _this5.getIntimacyDetail();
        _this5.getQueueAndPayInfo();
        done();
      }, function () {
        done(false);
      }, this);
    },
    /** 分享配置 */shareOptions: function shareOptions() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.shareContent.share_title,
                  desc: that.shareContent.share_text,
                  link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
                  imgUrl: that.shareContent.share_img
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典',
              desc: '让卡车跑得更健康',
              link: location.origin + '/v2/customIntimacy',
              imgUrl: 'https://static4.kaxiuyun.com/carRepair.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典',
              desc: '让卡车跑得更健康',
              link: location.origin + '/v2/customIntimacy',
              imgUrl: 'https://static4.kaxiuyun.com/carRepair.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典',
              desc: '让卡车跑得更健康',
              link: location.origin + '/v2/customIntimacy',
              imgUrl: 'https://static4.kaxiuyun.com/carRepair.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"intimacy-score"},[_c('img',{attrs:{"src":_vm._f("rangNumImage")(_vm.intimacyNum),"alt":"亲密度"}}),_vm._v(" "),_c('div',{staticClass:"score"},[_vm._v(_vm._s(_vm.intimacyNum))]),_vm._v(" "),_c('p',[_vm._v("亲密度")]),_vm._v(" "),_c('p',[_vm._v("更新时间："+_vm._s(_vm._Util.parseTime(_vm.updateTime, '{y}-{m}-{d}')))])]),_vm._v(" "),(_vm.showStrategyBtn)?_c('div',{staticClass:"strategy",on:{"click":function($event){_vm.showStrategyWrap = true}}},[_vm._v("\n      点击查看提升亲密度攻略>\n    ")]):_c('div',{staticClass:"main"},[(_vm.queueInfo.title || _vm.queueInfo.text)?_c('div',{staticClass:"qualification"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.queueInfo.title))]),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.queueInfo.text))]),_vm._v(" "),_c('img',{attrs:{"src":"https://static4.kaxiuyun.com/intimacy/giftBox.png","alt":"礼物"}})]):_vm._e(),_vm._v(" "),(_vm.queueInfo.line_note && _vm.status === 2)?_c('div',{staticClass:"left-num"},[_c('img',{attrs:{"src":"https://static4.kaxiuyun.com/intimacy/queue.png","alt":"倒计时"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.queueInfo.line_note))])]):_vm._e(),_vm._v(" "),(_vm.buttonName && _vm.status === 3)?_c('div',{staticClass:"count-down"},[_c('div',{staticClass:"time"},[_c('van-count-down',{ref:"countDown",attrs:{"auto-start":false,"time":_vm.time,"format":"HH:mm:ss"},on:{"finish":_vm.countDownFinish}})],1),_vm._v(" "),_c('p',[_vm._v("付款倒计时")]),_vm._v(" "),_c('div',{staticClass:"purchase-btn",on:{"click":_vm.purchase}},[_vm._v(_vm._s(_vm.buttonName))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-wrap",attrs:{"id":"list"}},[(_vm.applyId && _vm.status === 3)?_c('div',{staticClass:"abandon",on:{"click":_vm.abandon}},[_vm._v("\n          放弃名额\n        ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-title"},[_vm._v("\n          排队列表"+_vm._s(_vm.totalCount && ("(" + _vm.totalCount + ")"))+"\n        ")]),_vm._v(" "),_c('div',{staticClass:"list"},_vm._l((_vm.peopleList),function(v,i){return _c('div',{key:i,class:['item', v.user_id === _vm.$store.state.userInfo.userId ? 'active' : '']},[_c('div',{staticClass:"index"},[_vm._v(_vm._s(v.user_number))]),_vm._v(" "),_c('div',{staticClass:"user-name"},[_vm._v(_vm._s(v.user_name))]),_vm._v(" "),_c('div',{staticClass:"user-status"},[_vm._v(_vm._s(v.user_status === 1 ? '付款中' : (v.user_status === 2 ? '加速排队中' : '排队中')))])])}),0)])])]),_vm._v(" "),_c('van-popup',{staticClass:"strategy-wrap",model:{value:(_vm.showStrategyWrap),callback:function ($$v) {_vm.showStrategyWrap=$$v},expression:"showStrategyWrap"}},[_c('div',[_c('div',{staticClass:"title"},[_vm._v("提升亲密度")]),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("parseText2Html")(_vm.strategyText)))]),_vm._v(" "),_c('div',{staticClass:"operation",on:{"click":function($event){_vm.showStrategyWrap = false}}},[_vm._v("我知道了")])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(353);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d27cbee_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(954);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2241)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0d27cbee"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d27cbee_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d27cbee_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myIntimacyCustomer_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2242);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5e7b7fd6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-0d27cbee]{background-color:#f2f4f7}.wrap .customerList .item[data-v-0d27cbee]{border-top:.2rem solid #f2f4f7;background-color:#fff}.wrap .customerList .item .main[data-v-0d27cbee]{height:3.2rem;position:relative}.wrap .customerList .item .main img[data-v-0d27cbee]{width:2rem;height:2rem;border-radius:50%;position:absolute;top:50%;left:.8rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background:#f0f8ff}.wrap .customerList .item .main .content[data-v-0d27cbee]{margin-left:3.4rem;padding-top:.6rem}.wrap .customerList .item .main .content .user-name[data-v-0d27cbee]{font-size:.8rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#111a34;line-height:1.1rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-right:4.5rem}.wrap .customerList .item .main .content .intimacy-num[data-v-0d27cbee]{font-size:.65rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#858b9c;line-height:.9rem}.wrap .customerList .item .main .friend-price[data-v-0d27cbee]{width:3.8rem;background:#2f86f6;border-radius:1rem;color:#fff}.wrap .customerList .item .main .friend-price[data-v-0d27cbee],.wrap .customerList .item .main .insert[data-v-0d27cbee]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:1.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.6rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700}.wrap .customerList .item .main .insert[data-v-0d27cbee]{width:3.6rem;border-radius:1rem;border:1px solid #2f86f6;color:#2f86f6;line-height:.8rem}.wrap .customerList .item .bottom-tip[data-v-0d27cbee]{padding-bottom:.4rem;padding-left:.8rem}.wrap .customerList .item .bottom-tip p[data-v-0d27cbee]{font-size:.65rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#858b9c;line-height:.9rem}.wrap .customerList .item .bottom-tip p[data-v-0d27cbee] .van-count-down{display:inline-block;font-size:.65rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#ff5257;line-height:.9rem}.wrap .popup-wrap[data-v-0d27cbee]{width:100%;background-color:#fff;border-radius:.4rem .4rem 0 0}.wrap .popup-wrap .wrap-title[data-v-0d27cbee]{border-bottom:1px solid #eee;background-color:#f6f6f6;height:2.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.wrap .popup-wrap .wrap-title .close[data-v-0d27cbee]{font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1.05rem;margin-left:.8rem}.wrap .popup-wrap .wrap-title .title[data-v-0d27cbee]{font-size:.85rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#111a34;line-height:1.2rem}.wrap .popup-wrap .wrap-title .submit[data-v-0d27cbee]{font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#2f86f6;line-height:1.05rem;margin-right:.8rem}.wrap .popup-wrap .wrap-content[data-v-0d27cbee]{height:19.75rem;padding:.5rem .8rem 0;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:1.13rem}.wrap .popup-wrap .wrap-content .order-wrap[data-v-0d27cbee]{position:relative}.wrap .popup-wrap .wrap-content .order-wrap .label[data-v-0d27cbee]{font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:1.13rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .popup-wrap .wrap-content .order-wrap .input[data-v-0d27cbee]{margin-left:4rem;height:2.33rem;width:13.15rem;background:#f8f8f8;border-radius:.1rem;border:1px solid #e0e0e0}.wrap .popup-wrap .wrap-content .textarea[data-v-0d27cbee]{margin-top:.8rem;height:8.9rem;width:100%;padding:.6rem;background:#f8f8f8;border-radius:.1rem;border:1px solid #e0e0e0;color:#333;font-size:.8rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(1402);
var _notify = _interopRequireDefault(__webpack_require__(1403));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default), _field.default.name, _field.default), _countDown.default.name, _countDown.default),
  filters: {
    leftTime: function leftTime(val) {
      return new Date(val) - Date.now();
    }
  },
  data: function data() {
    return {
      showFriendWrap: false,
      orderNo: '',
      orderRemark: '',
      showApplyInsert: false,
      insertRemark: '',
      currentUserId: '',
      applyId: '',
      text: '',
      // 弹窗文案
      mescroll: null,
      mescrollDown: {},
      mescrollUp: {
        callback: this.getCustomerList
      },
      dataList: [] // 列表数据
    };
  },
  watch: {
    showApplyInsert: function showApplyInsert(val) {
      if (!val) {
        this.applyId = '';
        this.currentUserId = '';
        this.insertRemark = '';
      }
    },
    showFriendWrap: function showFriendWrap(val) {
      if (!val) {
        this.applyId = '';
        this.currentUserId = '';
        this.orderRemark = '';
        this.orderNo = '';
      }
    }
  },
  created: function created() {},
  methods: {
    /** 跳转到用户详情页 */toCustomerDetail: function toCustomerDetail(userName, userId) {
      if (this._Util.isApp()) {
        api.openWin({
          name: 'detail',
          url: 'widget://html/clientele/clientele_detail.html',
          pageParam: {
            id: userId,
            name: userName,
            source: '我的亲密客户'
          },
          slidBackEnabled: false
        });
      }
    },
    /**
     * 申请插队提交逻辑
     */
    insertQueueSubmit: function insertQueueSubmit() {
      var _this = this;
      if (!this.insertRemark.trim()) {
        return (0, _notify.default)('请填写备注');
      }
      this._Util.post(this._Api.POST_APPLY_JUMP_QUEUE, {
        applyId: this.applyId,
        userId: this.currentUserId,
        remark: this.insertRemark
      }, function (data) {
        console.log(data);
        (0, _notify.default)({
          type: 'success',
          message: '申请已提交'
        });
        _this.showApplyInsert = false;
      }, function () {}, this);
    },
    /**
     * 申请老友价提交逻辑
     */
    friendPriceSubmit: function friendPriceSubmit() {
      var _this2 = this;
      if (!this.orderNo.trim() || !this.orderRemark.trim()) {
        return (0, _notify.default)('请填写订单编号 及 备注');
      }
      this._Util.post(this._Api.POST_APPLY_FRIEND_PRICE, {
        applyId: this.applyId,
        orderNo: this.orderNo,
        userId: this.currentUserId,
        remark: this.orderRemark
      }, function (data) {
        console.log(data);
        (0, _notify.default)({
          type: 'success',
          message: '申请已提交'
        });
        _this2.showFriendWrap = false;
      }, function () {}, this);
    },
    /**
     * 申请老友价按钮逻辑
     * @param {number} userId 列表用户id
     * @param {number} applyId 申请id
     */
    applyFriendPrice: function applyFriendPrice(userId, applyId) {
      this.applyId = applyId;
      this.currentUserId = userId;
      this.showFriendWrap = true;
    },
    /**
     * 申请插队按钮逻辑
     * @param {number} userId 列表用户id
     * @param {number} applyId 申请id
     */
    applyInsert: function applyInsert(userId, applyId) {
      this.applyId = applyId;
      this.currentUserId = userId;
      this.showApplyInsert = true;
    },
    /**
     * 初始化mescroll逻辑
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取客户列表
     */
    getCustomerList: function getCustomerList(page, mescroll) {
      var _this3 = this;
      this._Util.post(this._Api.POST_MY_INTIMACY_CUSTOMER_LIST, {
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this3.text = data.text;
          _this3.dataList = [];
        }
        _this3.dataList = _this3.dataList.concat(data.dataList);
        _this3.$nextTick(function () {
          mescroll.endSuccess(data.dataList.length);
        });
      }, function () {
        mescroll.endErr();
      }, this, true);
    }
  }
};__webpack_require__(26);
__webpack_require__(131);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(164);
__webpack_require__(2058);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2059);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("31287021", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-notify{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:8px 16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify--primary{background-color:#1989fa}.van-notify--success{background-color:#07c160}.van-notify--danger{background-color:#ee0a24}.van-notify--warning{background-color:#ff976a}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/notify/index.css"],"names":[],"mappings":"AAAA,YAAY,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,sBAAsB,iBAAiB,WAAW,eAAe,iBAAiB,qBAAqB,kBAAkB,oBAAoB,CAAC,qBAAqB,wBAAwB,CAAC,qBAAqB,wBAAwB,CAAC,oBAAoB,wBAAwB,CAAC,qBAAqB,wBAAwB,CAAC","file":"index.css","sourcesContent":[".van-notify{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:8px 16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify--primary{background-color:#1989fa}.van-notify--success{background-color:#07c160}.van-notify--danger{background-color:#ee0a24}.van-notify--warning{background-color:#ff976a}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _vue = _interopRequireDefault(__webpack_require__(22));

var _Notify = _interopRequireDefault(__webpack_require__(2060));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

var timer;
var instance;

function parseOptions(message) {
  return (0, _utils.isObject)(message) ? message : {
    message: message
  };
}

function Notify(options) {
  /* istanbul ignore if */
  if (_utils.isServer) {
    return;
  }

  if (!instance) {
    instance = (0, _functional.mount)(_Notify.default, {
      on: {
        click: function click(event) {
          if (instance.onClick) {
            instance.onClick(event);
          }
        },
        close: function close() {
          if (instance.onClose) {
            instance.onClose();
          }
        },
        opened: function opened() {
          if (instance.onOpened) {
            instance.onOpened();
          }
        }
      }
    });
  }

  options = (0, _extends2.default)({}, Notify.currentOptions, parseOptions(options));
  (0, _extends2.default)(instance, options);
  clearTimeout(timer);

  if (options.duration && options.duration > 0) {
    timer = setTimeout(Notify.clear, options.duration);
  }

  return instance;
}

function defaultOptions() {
  return {
    type: 'danger',
    value: true,
    message: '',
    color: undefined,
    background: undefined,
    duration: 3000,
    className: '',
    onClose: null,
    onClick: null,
    onOpened: null
  };
}

Notify.clear = function () {
  if (instance) {
    instance.value = false;
  }
};

Notify.currentOptions = defaultOptions();

Notify.setDefaultOptions = function (options) {
  (0, _extends2.default)(Notify.currentOptions, options);
};

Notify.resetDefaultOptions = function () {
  Notify.currentOptions = defaultOptions();
};

Notify.install = function () {
  _vue.default.use(_Notify.default);
};

Notify.Component = _Notify.default;
_vue.default.prototype.$notify = Notify;
var _default = Notify;
exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

var _popup = __webpack_require__(198);

var _popup2 = _interopRequireDefault(__webpack_require__(19));

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('notify'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

function Notify(h, props, slots, ctx) {
  var style = {
    color: props.color,
    background: props.background
  };
  return h(_popup2.default, (0, _babelHelperVueJsxMergeProps.default)([{
    "attrs": {
      "value": props.value,
      "position": "top",
      "overlay": false,
      "duration": 0.2,
      "lockScroll": false
    },
    "style": style,
    "class": [bem([props.type]), props.className]
  }, (0, _functional.inherit)(ctx, true)]), [(slots.default == null ? void 0 : slots.default()) || props.message]);
}

Notify.props = (0, _extends2.default)({}, _popup.popupMixinProps, {
  color: String,
  message: [Number, String],
  duration: [Number, String],
  className: null,
  background: String,
  getContainer: [String, Function],
  type: {
    type: String,
    default: 'danger'
  }
});

var _default = createComponent(Notify);

exports.default = _default;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('mescroll-vue',{ref:"mescroll",staticClass:"customerList",attrs:{"down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.toCustomerDetail(v.uname, v.userId)}}},[_c('div',{staticClass:"main"},[_c('img',{attrs:{"src":v.headImgUrl,"alt":"头像"}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"user-name"},[_vm._v(_vm._s(v.uname))]),_vm._v(" "),_c('div',{staticClass:"intimacy-num"},[_vm._v("亲密度："+_vm._s(v.intimacyValue || '-'))])]),_vm._v(" "),(v.status === 2)?_c('div',{staticClass:"friend-price",on:{"click":function($event){$event.stopPropagation();return _vm.applyFriendPrice(v.userId, v.applyId)}}},[_vm._v("申请老友价")]):_vm._e(),_vm._v(" "),(v.status === 3)?_c('div',{staticClass:"insert",on:{"click":function($event){$event.stopPropagation();return _vm.applyInsert(v.userId, v.applyId)}}},[_vm._v("申请插队")]):_vm._e()]),_vm._v(" "),(v.status !== 2)?_c('div',{staticClass:"bottom-tip"},[(v.status === 5)?_c('p',{staticStyle:{"color":"#37B829"}},[_vm._v("已付款，待创建订单")]):_vm._e(),_vm._v(" "),(v.status === 1)?_c('p',[_vm._v("亲密度值未达到600分")]):_vm._e(),_vm._v(" "),(v.status === 4)?_c('p',{staticStyle:{"color":"#FF5257"}},[_vm._v("\n          付款倒计时：\n          "),_c('van-count-down',{ref:"countDown",refInFor:true,attrs:{"auto-start":true,"time":_vm._f("leftTime")(v.payEndTime),"format":"HH:mm:ss"}})],1):_vm._e(),_vm._v(" "),(v.status === 0)?_c('p',[_vm._v("没有开启亲密度估值")]):_vm._e(),_vm._v(" "),(v.status === 3)?_c('p',{staticStyle:{"color":"#111A34"}},[_vm._v("排队中，前面还有"+_vm._s(v.rankValue)+"人")]):_vm._e()]):_vm._e()])}),0),_vm._v(" "),_c('van-popup',{staticClass:"popup-wrap",attrs:{"position":"bottom"},model:{value:(_vm.showFriendWrap),callback:function ($$v) {_vm.showFriendWrap=$$v},expression:"showFriendWrap"}},[_c('div',{staticClass:"wrap-title"},[_c('span',{staticClass:"close",on:{"click":function($event){_vm.showFriendWrap=false}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v("申请老友价")]),_vm._v(" "),_c('span',{staticClass:"submit",on:{"click":_vm.friendPriceSubmit}},[_vm._v("确认")])]),_vm._v(" "),_c('div',{staticClass:"wrap-content"},[_c('div',{staticClass:"order-wrap"},[_c('span',{staticClass:"label"},[_vm._v("订单编号")]),_vm._v(" "),_c('van-field',{staticClass:"input",attrs:{"type":"number","placeholder":"请输入订单编号"},model:{value:(_vm.orderNo),callback:function ($$v) {_vm.orderNo=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:"orderNo"}})],1),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.orderRemark),expression:"orderRemark",modifiers:{"trim":true}}],staticClass:"textarea",attrs:{"placeholder":"请输入备注"},domProps:{"value":(_vm.orderRemark)},on:{"input":function($event){if($event.target.composing){ return; }_vm.orderRemark=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-wrap",attrs:{"position":"bottom"},model:{value:(_vm.showApplyInsert),callback:function ($$v) {_vm.showApplyInsert=$$v},expression:"showApplyInsert"}},[_c('div',{staticClass:"wrap-title"},[_c('span',{staticClass:"close",on:{"click":function($event){_vm.showApplyInsert=false}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v("申请插队")]),_vm._v(" "),_c('span',{staticClass:"submit",on:{"click":_vm.insertQueueSubmit}},[_vm._v("确认")])]),_vm._v(" "),_c('div',{staticClass:"wrap-content"},[_vm._v("\n      "+_vm._s(_vm.text)+"\n      "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.insertRemark),expression:"insertRemark",modifiers:{"trim":true}}],staticClass:"textarea",attrs:{"rows":"7","placeholder":"请输入备注"},domProps:{"value":(_vm.insertRemark)},on:{"input":function($event){if($event.target.composing){ return; }_vm.insertRemark=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b2278484_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(955);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2243)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b2278484"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b2278484_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b2278484_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_waitAuditList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2244);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0c602eef", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-b2278484]{position:fixed;top:0;bottom:0;height:auto}.wrap[data-v-b2278484]{background-color:#f2f4f7}.wrap .customerList .item[data-v-b2278484]{padding-left:.8rem;background-color:#fff;position:relative}.wrap .customerList .item .main[data-v-b2278484]{position:relative;height:3.2rem}.wrap .customerList .item .main img[data-v-b2278484]{width:2rem;height:2rem;border-radius:1.2rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-color:#f0f8ff}.wrap .customerList .item .main .content[data-v-b2278484]{margin-left:2.6rem;padding-top:.6rem}.wrap .customerList .item .main .content .user-name[data-v-b2278484]{font-size:.8rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#111a34;line-height:1.1rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-right:4.5rem}.wrap .customerList .item .main .content .user-belong[data-v-b2278484]{font-size:.65rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#858b9c;line-height:.9rem}.wrap .customerList .item .main .audit[data-v-b2278484]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.8rem;height:1.4rem;background:#2f86f6;border-radius:1rem;border:1px solid #2f86f6;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.6rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#fff;line-height:.8rem}.wrap .customerList .bottom-tip[data-v-b2278484]{position:relative;padding-bottom:.4rem;font-size:.65rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:.9rem;border-bottom:1px solid #e2e4ea}.wrap .popup-wrap[data-v-b2278484]{width:100%;background-color:#fff;border-radius:.4rem .4rem 0 0}.wrap .popup-wrap .wrap-title[data-v-b2278484]{border-bottom:1px solid #eee;background-color:#f6f6f6;height:2.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}.wrap .popup-wrap .wrap-title .title[data-v-b2278484]{font-size:.85rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#111a34;line-height:1.2rem}.wrap .popup-wrap .wrap-title .close[data-v-b2278484]{position:absolute;top:50%;right:.8rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#2f86f6;line-height:1.05rem}.wrap .popup-wrap .wrap-content[data-v-b2278484]{height:19.75rem;padding:.5rem .8rem 0;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:1.13rem}.wrap .popup-wrap .wrap-content .order-wrap[data-v-b2278484]{position:relative}.wrap .popup-wrap .wrap-content .order-wrap .label[data-v-b2278484]{font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#111a34;line-height:1.13rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .popup-wrap .wrap-content .order-wrap .input[data-v-b2278484]{margin-left:4rem;height:2.33rem;width:13.15rem;background:#f8f8f8;border-radius:.1rem;border:1px solid #e0e0e0}.wrap .popup-wrap .wrap-content .textarea[data-v-b2278484]{display:block;margin-top:.8rem;height:8.9rem;width:100%;padding:.6rem;background:#f8f8f8;border-radius:.1rem;border:1px solid #e0e0e0;color:#333;font-size:.8rem}.wrap .popup-wrap .wrap-content .btn-wrap[data-v-b2278484]{margin-top:1.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.wrap .popup-wrap .wrap-content .btn-wrap>div[data-v-b2278484]{width:6.28rem;height:2rem;border-radius:1.1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fff;line-height:1.13rem}.wrap .popup-wrap .wrap-content .btn-wrap .reject[data-v-b2278484]{background-color:#ff5257}.wrap .popup-wrap .wrap-content .btn-wrap .resolve[data-v-b2278484]{background-color:#2f86f6}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(1402);
var _notify = _interopRequireDefault(__webpack_require__(1403));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default), _field.default.name, _field.default),
  data: function data() {
    return {
      showAudit: false,
      applyId: '',
      examineRemark: '',
      currentName: '',
      mescroll: null,
      // mescroll实例对象
      mescrollDown: {},
      // 下拉刷新的配置. (如果下拉刷新和上拉加载处理的逻辑是一样的,则mescrollDown可不用写了)
      mescrollUp: {
        // 上拉加载的配置.
        callback: this.getWaitList
      },
      dataList: [] // 列表数据
    };
  },
  watch: {
    showAudit: function showAudit(val) {
      if (!val) {
        this.applyId = '';
        this.examineRemark = '';
        this.currentName = '';
      }
    }
  },
  methods: {
    /** 跳转到用户详情页 */toCustomerDetail: function toCustomerDetail(userName, userId) {
      if (this._Util.isApp()) {
        api.openWin({
          name: 'detail',
          url: 'widget://html/clientele/clientele_detail.html',
          pageParam: {
            id: userId,
            name: userName,
            source: '我的亲密客户'
          },
          slidBackEnabled: false
        });
      }
    },
    /**
     * 审核按钮提交逻辑
     * @param {number} status 2: 驳回  3: 通过
     */
    auditApplySubmit: function auditApplySubmit(status) {
      var _this = this;
      if (!this.examineRemark.trim()) {
        return (0, _notify.default)('请填写备注');
      }
      this._Util.post(this._Api.POST_INTIMACY_VERIFY, {
        applyId: this.applyId,
        examineRemark: this.examineRemark,
        status: status
      }, function (data) {
        (0, _notify.default)({
          type: 'success',
          message: '操作成功'
        });
        _this.showAudit = false;
        var index = _this.dataList.findIndex(function (v) {
          return v.applyId === _this.applyId;
        });
        _this.dataList.splice(index, 1);
      }, function () {}, this);
    },
    /**
     * 审核按钮逻辑
     * @param {number} applyId 待审核id
     * @param {string} uname 用户名称
     */
    auditApply: function auditApply(applyId, uname) {
      this.showAudit = true;
      this.applyId = applyId;
      this.currentName = uname;
    },
    /**
     * mescroll 初始化方法
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取待审核列表
     */
    getWaitList: function getWaitList(page, mescroll) {
      var _this2 = this;
      this._Util.post(this._Api.POST_INTIMACY_VERIFY_LIST, {
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        if (page.num === 1) {
          _this2.dataList = [];
        }
        _this2.dataList = _this2.dataList.concat(data.dataList);
        _this2.$nextTick(function () {
          mescroll.endSuccess(data.dataList.length);
        });
      }, function () {
        mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('mescroll-vue',{ref:"mescroll",staticClass:"customerList",attrs:{"down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.toCustomerDetail(v.uname, v.userId)}}},[_c('div',{staticClass:"main"},[_c('img',{attrs:{"src":v.headImgUrl,"alt":"头像"}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"user-name"},[_vm._v(_vm._s(v.uname))]),_vm._v(" "),_c('div',{staticClass:"user-belong"},[_vm._v("销售归属："+_vm._s(v.sysUserName))])]),_vm._v(" "),_c('div',{staticClass:"audit",on:{"click":function($event){$event.stopPropagation();return _vm.auditApply(v.applyId, v.uname)}}},[_vm._v("审批")])]),_vm._v(" "),_c('div',{staticClass:"bottom-tip"},[_c('p',[_vm._v("当前名下已有"+_vm._s(v.num)+"位亲密等级为A的客户")])])])}),0),_vm._v(" "),_c('van-popup',{staticClass:"popup-wrap",attrs:{"position":"bottom"},model:{value:(_vm.showAudit),callback:function ($$v) {_vm.showAudit=$$v},expression:"showAudit"}},[_c('div',{staticClass:"wrap-title"},[_c('span',{staticClass:"title"},[_vm._v("审批")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showAudit=false}}},[_vm._v("取消")])]),_vm._v(" "),_c('div',{staticClass:"wrap-content"},[_vm._v("\n      客户："+_vm._s(_vm.currentName)+"\n      "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.examineRemark),expression:"examineRemark",modifiers:{"trim":true}}],staticClass:"textarea",attrs:{"rows":"7","placeholder":"请输入备注"},domProps:{"value":(_vm.examineRemark)},on:{"input":function($event){if($event.target.composing){ return; }_vm.examineRemark=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"btn-wrap"},[_c('div',{staticClass:"reject",on:{"click":function($event){return _vm.auditApplySubmit(2)}}},[_vm._v("驳回")]),_vm._v(" "),_c('div',{staticClass:"resolve",on:{"click":function($event){return _vm.auditApplySubmit(3)}}},[_vm._v("通过")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(355);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_07a2659a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(956);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2245)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-07a2659a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_07a2659a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_07a2659a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_record_point_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2246);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4ab59510", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".error-wrap[data-v-07a2659a]{padding-top:3.4rem}.error-wrap>div[data-v-07a2659a]:first-of-type{text-align:center}.error-wrap>div:first-of-type img[data-v-07a2659a]{width:7.775rem;height:9.375rem}.error-wrap p[data-v-07a2659a]{margin-top:.8rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#666;text-align:center}.error-wrap .home-btn[data-v-07a2659a]{width:16.35rem;height:2.2rem;line-height:2.2rem;border-radius:2.2rem;color:#fff;font-family:PingFangSC-Regular;font-size:.8rem;text-align:center;margin:4.1rem auto 0;background-color:#177afa}.error-wrap .tip[data-v-07a2659a]{margin-top:.4rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#177afa;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Loading = _interopRequireDefault(__webpack_require__(174));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Loading: _Loading.default
  },
  data: function data() {
    return {
      showError: false
    };
  },
  mounted: function mounted() {
    this.getNoDetail();
  },
  methods: {
    /**
     * 获取no对应的url
     */
    getNoDetail: function getNoDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_RECORD_POINT_GET_DETAIL, {
        no: this.$route.query.no
      }, function (data) {
        Promise.all([_this.addCommonPoint(), _this.addNewPoint(data.id)]).then(function () {
          if (data.status === 0) {
            window.location.replace(data.pointUrl);
          } else {
            _this.showError = true;
          }
        });
      }, function () {}, this, true);
    },
    /**
     * 常规埋点
     */
    addCommonPoint: function addCommonPoint() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '埋点',
          operate_page: '埋点页面',
          optionType: '打开页面',
          param1: window.location.href
        }, _this2, function () {
          resolve();
        });
      });
    },
    /**
     * 新增埋点
     * @param {number} pointId 接口返回的id
     */
    addNewPoint: function addNewPoint(pointId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        var terminal = _this3._Util.getUserAgent().platForm;
        var platform = _this3._Util.isApp() ? 'APP' : 'WEIXIN';
        _this3._Util.post(_this3._Api.POST_RECORD_POINT_ADD_POINT, {
          pointId: pointId,
          parameterNumber: _this3.$route.query.no,
          terminal: terminal,
          platform: platform
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this3, true);
      });
    },
    /**
     * 前往首页看看 埋点
     */
    addHomeBtnPoint: function addHomeBtnPoint() {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '埋点',
          operate_page: '埋点过期页按钮',
          optionType: '点击',
          param1: _this4.$route.query.no
        }, _this4, function () {
          resolve();
        });
      });
    },
    /**
     * 进入卡修宝典首页
     */
    openHomePage: function openHomePage() {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this5.addHomeBtnPoint();
            case 1:
              _this5.$router.replace({
                name: 'fms'
              });
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(241);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ea77e2ae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(783);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1990)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ea77e2ae"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ea77e2ae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ea77e2ae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Loading_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1991);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("047c6974", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-ea77e2ae]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:99}.wrap .main[data-v-ea77e2ae]{text-align:left;position:absolute;top:40%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wrap .main>img[data-v-ea77e2ae]{width:4.2rem;height:1.8rem;pointer-events:none}.wrap .main>p[data-v-ea77e2ae]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;text-align:center}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      curIndex: 0,
      imgList: [{
        src: __webpack_require__(1355)
      }, {
        src: __webpack_require__(1356)
      }, {
        src: __webpack_require__(1357)
      }, {
        src: __webpack_require__(1358)
      }, {
        src: __webpack_require__(1359)
      }, {
        src: __webpack_require__(1360)
      }, {
        src: __webpack_require__(1361)
      }, {
        src: __webpack_require__(1362)
      }, {
        src: __webpack_require__(1363)
      }, {
        src: __webpack_require__(1364)
      }],
      timer: null
    };
  },
  mounted: function mounted() {
    this.frameLoop();
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
    this.timer = null;
  },
  methods: {
    frameLoop: function frameLoop() {
      var _this = this;
      this.timer = setInterval(function () {
        if (_this.curIndex === 9) {
          _this.curIndex = 0;
        } else {
          _this.curIndex++;
        }
      }, 100);
    }
  }
};module.exports = __webpack_require__.p + "static/img/1.7b55aba.png";module.exports = __webpack_require__.p + "static/img/2.2896dbc.png";module.exports = __webpack_require__.p + "static/img/3.fa3cd22.png";module.exports = __webpack_require__.p + "static/img/4.9837150.png";module.exports = __webpack_require__.p + "static/img/5.20ff72f.png";module.exports = __webpack_require__.p + "static/img/6.403da36.png";module.exports = __webpack_require__.p + "static/img/7.927db7b.png";module.exports = __webpack_require__.p + "static/img/8.b080ce2.png";module.exports = __webpack_require__.p + "static/img/9.72dc55f.png";module.exports = __webpack_require__.p + "static/img/10.650900c.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"main"},[_c('img',{attrs:{"src":_vm.imgList[_vm.curIndex].src,"alt":""}}),_vm._v(" "),_c('p',[_vm._v("正在努力加载中...")])])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showError)?_c('div',{staticClass:"error-wrap"},[_c('div',[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/data-analysis/404.png","alt":""},on:{"click":function($event){$event.preventDefault();}}})]),_vm._v(" "),_c('p',[_vm._v("链接已失效，大概是被外星人劫持了...")]),_vm._v(" "),_c('div',{staticClass:"home-btn",on:{"click":_vm.openHomePage}},[_vm._v("去首页看看")]),_vm._v(" "),_c('div',{staticClass:"tip"},[_vm._v("听说，卡修宝典首页很好看")])]):_c('div',[_c('Loading')],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(356);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7ca82ec5_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(957);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2247)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7ca82ec5"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7ca82ec5_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7ca82ec5_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2248);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1ab0d4d4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "div>div[data-v-7ca82ec5]{height:4rem;line-height:4rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      origin: window.location.origin
    };
  },
  mounted: function mounted() {},
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/faultCase?folderid=2834")}},[_vm._v("故障案例")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/dataStream?folderid=2832")}},[_vm._v("数据流")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/circuitDiagram2/engine?pageType=ENGINE&spid=5")}},[_vm._v("发动机资料")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/circuitDiagram2/sensor?pageType=SEN_ACT&spid=8")}},[_vm._v("传感器/执行器")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/circuitDiagram2/sensorPinDefinition?pageType=SEN_ACT_CIRCUIT_IMG&spid=15")}},[_vm._v("传感器针脚定义")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/faultCode2")}},[_vm._v("故障码查询")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/circuitDiagram2/CIRCUIT_IMG/2")}},[_vm._v("电路图2.0")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/circuitDiagram2/vehicle/VEHICLE/4")}},[_vm._v("整车资料2.0")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/queryFaultCode")}},[_vm._v("故障码")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/circuitDiagram?parentId=2&folderid=20171212&title=%E7%94%B5%E8%B7%AF%E5%9B%BE")}},[_vm._v("电路图")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/aftertreatmentLibrary?pageType=HCL&spid=3")}},[_vm._v("后处理")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/entireCarData?attributeType=2&directoryId=4&filterCode=VEHICLE&folderid=0")}},[_vm._v("整车资料")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/engineData?attributeType=2&directoryId=5&filterCode=ENGINE&folderid=0")}},[_vm._v("发动机")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/oilPump")}},[_vm._v("油泵油嘴")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/dataStream?folderid=2832")}},[_vm._v("数据流")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/sensorActuator?attributeType=5&directoryId=8&folderid=0")}},[_vm._v("传感器/执行器")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/engineerMachinery?pageType=EGINE_PLANG&spid=9")}},[_vm._v("工程机械")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/partInfo")}},[_vm._v("部件信息")])]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":(_vm.origin + "/v2/library/faultCase?folderid=2834")}},[_vm._v("故障案例")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(357);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b27cbefa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(958);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2249)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b27cbefa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b27cbefa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b27cbefa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_circuitDiagram_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2250);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("908e6c16", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-b27cbefa]{background-color:#f2f2f2;height:auto!important;min-height:100%}.wrap .topSearch[data-v-b27cbefa]{height:5.65rem;background-color:#fff;padding:.8rem 0}.wrap .topSearch .sTitle[data-v-b27cbefa]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem;margin-bottom:.6rem;text-indent:2rem;position:relative}.wrap .topSearch .sTitle[data-v-b27cbefa]:after{content:\"\";background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-search.jpg\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1rem;height:1rem}.wrap .classifyWrap[data-v-b27cbefa]{padding-top:1rem}.wrap .classifyWrap>p[data-v-b27cbefa]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem}.wrap .classifyWrap .classifyList[data-v-b27cbefa]{padding:0 .4rem}.wrap .classifyWrap .classifyList .item[data-v-b27cbefa]{line-height:2.75rem;background:#fff;border-radius:.2rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;margin-top:.4rem;text-indent:.6rem;position:relative}.wrap .classifyWrap .classifyList .item[data-v-b27cbefa]:after{content:\"\";position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.3rem;height:.5rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-arrow.png\");background-repeat:no-repeat;background-size:100%}.wrap .feedback[data-v-b27cbefa]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0 2.35rem;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Search = _interopRequireDefault(__webpack_require__(135));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default
  },
  data: function data() {
    return {
      classifyList: [
        // 'ECU电路图',
        // 'ECU外观上电通讯跳线图',
        // '整车电路图',
        // '后处理/尿素泵电路图',
        // '传感器针脚定义',
        // '车身模块电路图',
        // 'ABS电路图',
        // '仪表针脚定义',
        // '保险丝盒定义',
        // '工程机械电路图',
        // '诊断接口针脚定义'
      ]
    };
  },
  mounted: function mounted() {
    this.getDirectoryList();

    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '电路图',
      optionType: '打开'
    }, this);
  },
  methods: {
    /** 获取导航层级分类列表 */getDirectoryList: function getDirectoryList() {
      var _this = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_DIRECTORY_LIST, {
        parentId: this.$route.query.parentId
      }, function (data) {
        _this.classifyList = data;
      }, function () {}, this);
    },
    /** 进入 车身模块 页面 */goCarModule: function goCarModule(parentId, filterCode) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'carModuleFilter',
            notGive: 1,
            url: "".concat(location.origin, "/v2/library/circuitDiagram/carModule/").concat(filterCode, "/").concat(parentId, "?folderid=").concat(this.$route.query.folderid)
          }
        });
      } else {
        this.$router.push({
          name: 'carModule',
          params: {
            parentId: parentId,
            filterCode: filterCode
          },
          query: {
            folderid: this.$route.query.folderid
          }
        });
      }
    },
    /**
     * 进入 ABS电路图 页面
     * @params{parentId}: directoryId
     */
    goABS: function goABS(parentId, filterCode, attributeType) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'ABSFilter',
            notGive: 1,
            url: "".concat(location.origin, "/v2/library/circuitDiagram/ABS/").concat(filterCode, "/").concat(attributeType, "/").concat(parentId, "?folderid=").concat(this.$route.query.folderid)
          }
        });
      } else {
        this.$router.push({
          name: 'ABS',
          params: {
            parentId: parentId,
            filterCode: filterCode,
            attributeType: attributeType
          },
          query: {
            folderid: this.$route.query.folderid
          }
        });
      }
    },
    /**
     * 进入 传感器/执行器针脚定义
     */
    goSenAct: function goSenAct(filterCode, directoryId, attributeType) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'senActFilterIndex',
            notGive: 1,
            url: "".concat(location.origin, "/v2/library/circuitDiagram/senActFilterIndex/").concat(filterCode, "/").concat(directoryId, "/").concat(attributeType, "?folderid=").concat(this.$route.query.folderid)
          }
        });
      } else {
        this.$router.push({
          name: 'senActFilterIndex',
          params: {
            directoryId: directoryId,
            filterCode: filterCode,
            attributeType: attributeType
          },
          query: {
            folderid: this.$route.query.folderid
          }
        });
      }
    },
    /** 进入 后处理/尿素泵 */goDCU: function goDCU(filterCode, directoryId, attributeType) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'hclCircuitImg',
            notGive: 1,
            url: "".concat(location.origin, "/v2/library/circuitDiagram/hclCircuitImg/").concat(filterCode, "/").concat(directoryId, "/").concat(attributeType, "?folderid=").concat(this.$route.query.folderid)
          }
        });
      } else {
        this.$router.push({
          name: 'hclCircuitImg',
          params: {
            directoryId: directoryId,
            filterCode: filterCode,
            attributeType: attributeType
          },
          query: {
            folderid: this.$route.query.folderid
          }
        });
      }
    },
    /**
     * 进入部件分类详情页
     * @params{detail}: 部件分类信息
     */
    goClassifyDetail: function goClassifyDetail(detail) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.setPoint(detail.name);
            case 1:
              if (!(detail.code === 'CSMK_CIRCUIT_IMG')) {
                _context.next = 2;
                break;
              }
              // 车身模块
              _this2.goCarModule(detail.id, detail.code);
              return _context.abrupt("return");
            case 2:
              if (!(detail.code === 'ABS_CIRCUIT_IMG')) {
                _context.next = 3;
                break;
              }
              // ABS 电路图
              _this2.goABS(detail.id, detail.code, detail.attributeType);
              return _context.abrupt("return");
            case 3:
              if (!(detail.code === 'SEN_ACT_CIRCUIT_IMG')) {
                _context.next = 4;
                break;
              }
              // 传感器/执行器针脚定义
              _this2.goSenAct(detail.code, detail.id, detail.attributeType);
              return _context.abrupt("return");
            case 4:
              if (!(detail.code === 'HCL_CIRCUIT_IMG')) {
                _context.next = 5;
                break;
              }
              // 后处理/尿素泵电路图
              _this2.goDCU(detail.code, detail.id, detail.attributeType);
              return _context.abrupt("return");
            case 5:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'dataLibFilter',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/circuitDiagram/filter/").concat(detail.code, "/").concat(detail.attributeType, "/").concat(detail.id, "?folderid=").concat(_this2.$route.query.folderid)
                  }
                });
              } else {
                _this2.$router.push({
                  name: 'filter',
                  params: {
                    filterCode: detail.code,
                    attributeType: detail.attributeType,
                    directoryId: detail.id
                  },
                  query: {
                    folderid: _this2.$route.query.folderid
                  }
                });
              }
            case 6:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 电路图查询意见反馈  */toFeedback: function toFeedback() {
      var that = this;
      var url = location.origin + '/v2/questionnaire/index?no=046fd853';
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /** 查资料埋点 */setPoint: function setPoint(name) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this3._Util.collectPageView3({
          postUrl: _this3._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: "\u7535\u8DEF\u56FE-".concat(name),
          optionType: '打开'
        }, _this3, function () {
          resolve();
        });
      });
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(237);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3470d5a6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(779);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1966)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3470d5a6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3470d5a6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3470d5a6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Search_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1967);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8e769542", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".Search[data-v-3470d5a6]{padding:0 .6rem;font-size:0;width:100%}.Search input[data-v-3470d5a6]{display:inline-block;width:13.35rem;height:2.2rem;line-height:2.2rem;background:#f1f1f1;border-radius:.1rem;border:1px solid #eaeaea;margin-right:.6rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;vertical-align:top;outline:none;text-indent:.6rem}.Search input[data-v-3470d5a6]::-webkit-input-placeholder{color:#666}.Search input[data-v-3470d5a6]:-ms-input-placeholder{color:#666}.Search input[data-v-3470d5a6]::placeholder{color:#666}.Search div[data-v-3470d5a6]{display:inline-block;width:3.6rem;line-height:2.2rem;height:2.2rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;border-radius:.1rem;background-color:#377ee1;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    type: {
      type: String // 搜索数据类型 用于搜索埋点记录
    },
    placeholder: {
      type: String
    }
  },
  data: function data() {
    return {
      keyword: '' // 搜索关键字
    };
  },
  mounted: function mounted() {},
  methods: {
    /** 查资料埋点 */setPoint: function setPoint() {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: _this.type,
          optionType: '搜索',
          param1: _this.keyword
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 点击搜索按钮 */search: function search() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var that;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              that = _this2;
              if (that.keyword.trim()) {
                _context.next = 1;
                break;
              }
              MessageBox.alert('请输入搜索内容');
              return _context.abrupt("return");
            case 1:
              if (!_this2.type) {
                _context.next = 2;
                break;
              }
              _context.next = 2;
              return _this2.setPoint();
            case 2:
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'appSearchResult',
                    url: location.origin + '/v2/business/pay/appSearchResultNew?isClick=false&folderid=' + that.$route.query.folderid + '&keyword=' + encodeURIComponent(that.keyword)
                  }
                });
              } else {
                that.$router.push({
                  name: 'appSearchResultNew',
                  query: {
                    keyword: that.keyword,
                    folderid: that.$route.query.folderid,
                    isClick: false
                  }
                });
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"Search"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"type":"text","placeholder":_vm.placeholder||'请输入关键词'},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('div',{on:{"click":_vm.search}},[_vm._v("搜索")])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[_c('div',{staticClass:"topSearch"},[_c('div',{staticClass:"sTitle"},[_vm._v("搜电路图")]),_vm._v(" "),_c('Search',{attrs:{"type":"电路图","placeholder":'请输入关键词，搜电路图'}})],1),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('p',[_vm._v("按部件分类，查找电路图")]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.goClassifyDetail(v)}}},[_vm._v(_vm._s(v.name))])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("电路图查询意见反馈")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(358);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_415fe5ca_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(959);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2251)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-415fe5ca"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_415fe5ca_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_415fe5ca_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2252);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6063a18c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-415fe5ca]{height:auto!important;min-height:100%;background-color:#f2f2f2}.wrap .searchWrap[data-v-415fe5ca]{background:#fff;padding:.8rem 0;position:relative}.wrap .searchWrap .top[data-v-415fe5ca]{margin-bottom:.6rem;text-indent:.6rem}.wrap .searchWrap .top .title[data-v-415fe5ca]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem}.wrap .searchWrap .top .desc[data-v-415fe5ca]{margin-top:.1rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;line-height:1rem}.wrap .searchWrap .tips[data-v-415fe5ca]{position:absolute;top:1.05rem;right:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem}.wrap .classifyWrap[data-v-415fe5ca]{padding-top:.6rem;padding-bottom:.6rem}.wrap .classifyWrap .classifyTitle[data-v-415fe5ca]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-415fe5ca]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-415fe5ca]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-415fe5ca]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-415fe5ca]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-415fe5ca]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Search = _interopRequireDefault(__webpack_require__(135));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default
  },
  data: function data() {
    return {
      classifyList: []
    };
  },
  mounted: function mounted() {
    this.getDirectoryList();
  },
  methods: {
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '车身模块电路图',
          optionType: '筛选',
          param1: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 点击进入车身模块电路图
     * @params{detail}: 模块分类信息
     */
    goClassifyDetail: function goClassifyDetail(detail) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.setPoint(detail.usId);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'dataLibFilter',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/circuitDiagram/filter/").concat(detail.code, "/").concat(detail.attributeType, "/").concat(detail.id, "?folderid=").concat(_this2.$route.query.folderid)
                  }
                });
              } else {
                _this2.$router.push({
                  name: 'filter',
                  params: {
                    filterCode: detail.code,
                    attributeType: detail.attributeType,
                    directoryId: detail.id
                  },
                  query: {
                    folderid: _this2.$route.query.folderid
                  }
                });
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 获取导航层级分类列表 */getDirectoryList: function getDirectoryList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_DIRECTORY_LIST, {
        parentId: this.$route.params.parentId
      }, function (data) {
        _this3.classifyList = data;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[_c('div',{staticClass:"searchWrap"},[_vm._m(0),_vm._v(" "),_c('Search',{attrs:{"type":"电路图","placeholder":'请输入关键词，搜电路图'}})],1),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyTitle"},[_vm._v("根据车身模块，查找电路图")]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.goClassifyDetail(v)}}},[_c('img',{attrs:{"src":v.imageUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0)])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('div',{staticClass:"title"},[_vm._v("搜车身模块电路图")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(359);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8a6f0118_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(960);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2253)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-8a6f0118"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8a6f0118_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8a6f0118_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2254);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7d4ac5d3", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-8a6f0118]{height:auto!important;background-color:#f2f2f2;min-height:100%;padding-top:.73rem;position:relative}.wrap .top[data-v-8a6f0118]{font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.13rem;text-indent:.6rem}.wrap .tips[data-v-8a6f0118]{width:7.2rem;line-height:1.4rem;background:#fff;border-radius:.7rem;border:1px solid #377ee1;position:absolute;top:.6rem;right:.6rem;color:#377ee1;text-align:center}.wrap .classifyList[data-v-8a6f0118]{margin-top:1.35rem;overflow:hidden}.wrap .classifyList [class^=classifyItem][data-v-8a6f0118]{float:left;text-align:center}.wrap .classifyList .classifyItem_33[data-v-8a6f0118]{width:33%;margin-bottom:.4rem}.wrap .classifyList .classifyItem_33>div[data-v-8a6f0118]{display:inline-block;width:5.45rem;height:5.56rem;background-color:#fff;border-radius:.2rem;border:1px solid #e6e6e6}.wrap .classifyList .classifyItem_33>div .imgWrap[data-v-8a6f0118]{width:100%;height:4rem;background-size:contain;background-repeat:no-repeat;background-position:50%}.wrap .classifyList .classifyItem_33>div p[data-v-8a6f0118]{margin-top:.2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.05rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap .errorCollect[data-v-8a6f0118]{text-align:center;padding:.6rem 0 1.2rem;text-decoration:underline;color:#377ee1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      classifyList: []
    };
  },
  mounted: function mounted() {
    this.getDirectoryList();
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 找不到资料 */submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code]);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], '');
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 获取导航层级分类列表 */getDirectoryList: function getDirectoryList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_DIRECTORY_LIST, {
        parentId: this.$route.params.parentId
      }, function (data) {
        _this3.classifyList = data;
      }, function () {}, this);
    },
    /** 进入品牌选择页面 */goCarBrandPage: function goCarBrandPage() {
      var filterCode = this.$route.params.filterCode;
      var parentId = this.$route.params.parentId;
      var attributeType = this.$route.params.attributeType;
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'carBrandFilterIndex',
            url: "".concat(location.origin, "/v2/library/circuitDiagram/carBrandFilterIndex/").concat(filterCode, "/").concat(attributeType, "/").concat(parentId)
          }
        });
      } else {
        this.$router.push({
          name: 'carBrandFilterIndex',
          params: {
            parentId: parentId,
            filterCode: filterCode,
            attributeType: attributeType
          }
        });
      }
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: 'ABS电路图',
          optionType: '筛选',
          param1: usId
        }, _this4, function () {
          resolve();
        });
      });
    },
    /**
     * 进入 类别详情 页面
     * @params{detail}: 当前点击的ABS品牌
     */
    goClassifyDetail: function goClassifyDetail(detail) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var filterCode, directoryId, parentId, attributeType;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.setPoint(detail.usId);
            case 1:
              filterCode = _this5.$route.params.filterCode;
              directoryId = detail.id;
              parentId = _this5.$route.params.parentId;
              attributeType = _this5.$route.params.attributeType;
              if (_this5._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'absFilterResult',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/circuitDiagram/absFilterResult/").concat(filterCode, "/").concat(attributeType, "/").concat(directoryId, "/").concat(parentId, "?folderid=").concat(_this5.$route.query.folderid)
                  }
                });
              } else {
                _this5.$router.push({
                  name: 'absFilterResult',
                  params: {
                    filterCode: filterCode,
                    attributeType: attributeType,
                    directoryId: directoryId,
                    parentId: parentId
                  },
                  query: {
                    folderid: _this5.$route.query.folderid
                  }
                });
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"top"},[_vm._v("选择ABS 品牌")]),_vm._v(" "),_c('div',{staticClass:"tips",on:{"click":_vm.goCarBrandPage}},[_vm._v("不知道品牌点这里")]),_vm._v(" "),_c('div',{staticClass:"classifyList",staticStyle:{"padding-left":"0.4rem","padding-right":"0.4rem"}},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_33"},[_c('div',{on:{"click":function($event){return _vm.goClassifyDetail(v)}}},[_c('div',{staticClass:"imgWrap",style:({backgroundImage: ("url(" + (v.imageUrl))})}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])])}),0),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])}
var staticRenderFns = []
var __WEBPACK_AMD_DEFINE_RESULT__;/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
(function (window, document, Math) {
var rAF = window.requestAnimationFrame	||
	window.webkitRequestAnimationFrame	||
	window.mozRequestAnimationFrame		||
	window.oRequestAnimationFrame		||
	window.msRequestAnimationFrame		||
	function (callback) { window.setTimeout(callback, 1000 / 60); };

var utils = (function () {
	var me = {};

	var _elementStyle = document.createElement('div').style;
	var _vendor = (function () {
		var vendors = ['t', 'webkitT', 'MozT', 'msT', 'OT'],
			transform,
			i = 0,
			l = vendors.length;

		for ( ; i < l; i++ ) {
			transform = vendors[i] + 'ransform';
			if ( transform in _elementStyle ) return vendors[i].substr(0, vendors[i].length-1);
		}

		return false;
	})();

	function _prefixStyle (style) {
		if ( _vendor === false ) return false;
		if ( _vendor === '' ) return style;
		return _vendor + style.charAt(0).toUpperCase() + style.substr(1);
	}

	me.getTime = Date.now || function getTime () { return new Date().getTime(); };

	me.extend = function (target, obj) {
		for ( var i in obj ) {
			target[i] = obj[i];
		}
	};

	me.addEvent = function (el, type, fn, capture) {
		el.addEventListener(type, fn, !!capture);
	};

	me.removeEvent = function (el, type, fn, capture) {
		el.removeEventListener(type, fn, !!capture);
	};

	me.prefixPointerEvent = function (pointerEvent) {
		return window.MSPointerEvent ?
			'MSPointer' + pointerEvent.charAt(7).toUpperCase() + pointerEvent.substr(8):
			pointerEvent;
	};

	me.momentum = function (current, start, time, lowerMargin, wrapperSize, deceleration) {
		var distance = current - start,
			speed = Math.abs(distance) / time,
			destination,
			duration;

		deceleration = deceleration === undefined ? 0.0006 : deceleration;

		destination = current + ( speed * speed ) / ( 2 * deceleration ) * ( distance < 0 ? -1 : 1 );
		duration = speed / deceleration;

		if ( destination < lowerMargin ) {
			destination = wrapperSize ? lowerMargin - ( wrapperSize / 2.5 * ( speed / 8 ) ) : lowerMargin;
			distance = Math.abs(destination - current);
			duration = distance / speed;
		} else if ( destination > 0 ) {
			destination = wrapperSize ? wrapperSize / 2.5 * ( speed / 8 ) : 0;
			distance = Math.abs(current) + destination;
			duration = distance / speed;
		}

		return {
			destination: Math.round(destination),
			duration: duration
		};
	};

	var _transform = _prefixStyle('transform');

	me.extend(me, {
		hasTransform: _transform !== false,
		hasPerspective: _prefixStyle('perspective') in _elementStyle,
		hasTouch: 'ontouchstart' in window,
		hasPointer: !!(window.PointerEvent || window.MSPointerEvent), // IE10 is prefixed
		hasTransition: _prefixStyle('transition') in _elementStyle
	});

	/*
	This should find all Android browsers lower than build 535.19 (both stock browser and webview)
	- galaxy S2 is ok
    - 2.3.6 : `AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1`
    - 4.0.4 : `AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30`
   - galaxy S3 is badAndroid (stock brower, webview)
     `AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30`
   - galaxy S4 is badAndroid (stock brower, webview)
     `AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30`
   - galaxy S5 is OK
     `AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36 (Chrome/)`
   - galaxy S6 is OK
     `AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36 (Chrome/)`
  */
	me.isBadAndroid = (function() {
		var appVersion = window.navigator.appVersion;
		// Android browser is not a chrome browser.
		if (/Android/.test(appVersion) && !(/Chrome\/\d/.test(appVersion))) {
			var safariVersion = appVersion.match(/Safari\/(\d+.\d)/);
			if(safariVersion && typeof safariVersion === "object" && safariVersion.length >= 2) {
				return parseFloat(safariVersion[1]) < 535.19;
			} else {
				return true;
			}
		} else {
			return false;
		}
	})();

	me.extend(me.style = {}, {
		transform: _transform,
		transitionTimingFunction: _prefixStyle('transitionTimingFunction'),
		transitionDuration: _prefixStyle('transitionDuration'),
		transitionDelay: _prefixStyle('transitionDelay'),
		transformOrigin: _prefixStyle('transformOrigin')
	});

	me.hasClass = function (e, c) {
		var re = new RegExp("(^|\\s)" + c + "(\\s|$)");
		return re.test(e.className);
	};

	me.addClass = function (e, c) {
		if ( me.hasClass(e, c) ) {
			return;
		}

		var newclass = e.className.split(' ');
		newclass.push(c);
		e.className = newclass.join(' ');
	};

	me.removeClass = function (e, c) {
		if ( !me.hasClass(e, c) ) {
			return;
		}

		var re = new RegExp("(^|\\s)" + c + "(\\s|$)", 'g');
		e.className = e.className.replace(re, ' ');
	};

	me.offset = function (el) {
		var left = -el.offsetLeft,
			top = -el.offsetTop;

		// jshint -W084
		while (el = el.offsetParent) {
			left -= el.offsetLeft;
			top -= el.offsetTop;
		}
		// jshint +W084

		return {
			left: left,
			top: top
		};
	};

	me.preventDefaultException = function (el, exceptions) {
		for ( var i in exceptions ) {
			if ( exceptions[i].test(el[i]) ) {
				return true;
			}
		}

		return false;
	};

	me.extend(me.eventType = {}, {
		touchstart: 1,
		touchmove: 1,
		touchend: 1,

		mousedown: 2,
		mousemove: 2,
		mouseup: 2,

		pointerdown: 3,
		pointermove: 3,
		pointerup: 3,

		MSPointerDown: 3,
		MSPointerMove: 3,
		MSPointerUp: 3
	});

	me.extend(me.ease = {}, {
		quadratic: {
			style: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
			fn: function (k) {
				return k * ( 2 - k );
			}
		},
		circular: {
			style: 'cubic-bezier(0.1, 0.57, 0.1, 1)',	// Not properly "circular" but this looks better, it should be (0.075, 0.82, 0.165, 1)
			fn: function (k) {
				return Math.sqrt( 1 - ( --k * k ) );
			}
		},
		back: {
			style: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
			fn: function (k) {
				var b = 4;
				return ( k = k - 1 ) * k * ( ( b + 1 ) * k + b ) + 1;
			}
		},
		bounce: {
			style: '',
			fn: function (k) {
				if ( ( k /= 1 ) < ( 1 / 2.75 ) ) {
					return 7.5625 * k * k;
				} else if ( k < ( 2 / 2.75 ) ) {
					return 7.5625 * ( k -= ( 1.5 / 2.75 ) ) * k + 0.75;
				} else if ( k < ( 2.5 / 2.75 ) ) {
					return 7.5625 * ( k -= ( 2.25 / 2.75 ) ) * k + 0.9375;
				} else {
					return 7.5625 * ( k -= ( 2.625 / 2.75 ) ) * k + 0.984375;
				}
			}
		},
		elastic: {
			style: '',
			fn: function (k) {
				var f = 0.22,
					e = 0.4;

				if ( k === 0 ) { return 0; }
				if ( k == 1 ) { return 1; }

				return ( e * Math.pow( 2, - 10 * k ) * Math.sin( ( k - f / 4 ) * ( 2 * Math.PI ) / f ) + 1 );
			}
		}
	});

	me.tap = function (e, eventName) {
		var ev = document.createEvent('Event');
		ev.initEvent(eventName, true, true);
		ev.pageX = e.pageX;
		ev.pageY = e.pageY;
		e.target.dispatchEvent(ev);
	};

	me.click = function (e) {
		var target = e.target,
			ev;

		if ( !(/(SELECT|INPUT|TEXTAREA)/i).test(target.tagName) ) {
			ev = document.createEvent('MouseEvents');
			ev.initMouseEvent('click', true, true, e.view, 1,
				target.screenX, target.screenY, target.clientX, target.clientY,
				e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,
				0, null);

			ev._constructed = true;
			target.dispatchEvent(ev);
		}
	};

	return me;
})();
function IScroll (el, options) {
	this.wrapper = typeof el == 'string' ? document.querySelector(el) : el;
	this.scroller = this.wrapper.children[0];
	this.scrollerStyle = this.scroller.style;		// cache style for better performance

	this.options = {

		resizeScrollbars: true,

		mouseWheelSpeed: 20,

		snapThreshold: 0.334,

// INSERT POINT: OPTIONS
		disablePointer : !utils.hasPointer,
		disableTouch : utils.hasPointer || !utils.hasTouch,
		disableMouse : utils.hasPointer || utils.hasTouch,
		startX: 0,
		startY: 0,
		scrollY: true,
		directionLockThreshold: 5,
		momentum: true,

		bounce: true,
		bounceTime: 600,
		bounceEasing: '',

		preventDefault: true,
		preventDefaultException: { tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ },

		HWCompositing: true,
		useTransition: true,
		useTransform: true,
		bindToWrapper: typeof window.onmousedown === "undefined"
	};

	for ( var i in options ) {
		this.options[i] = options[i];
	}

	// Normalize options
	this.translateZ = this.options.HWCompositing && utils.hasPerspective ? ' translateZ(0)' : '';

	this.options.useTransition = utils.hasTransition && this.options.useTransition;
	this.options.useTransform = utils.hasTransform && this.options.useTransform;

	this.options.eventPassthrough = this.options.eventPassthrough === true ? 'vertical' : this.options.eventPassthrough;
	this.options.preventDefault = !this.options.eventPassthrough && this.options.preventDefault;

	// If you want eventPassthrough I have to lock one of the axes
	this.options.scrollY = this.options.eventPassthrough == 'vertical' ? false : this.options.scrollY;
	this.options.scrollX = this.options.eventPassthrough == 'horizontal' ? false : this.options.scrollX;

	// With eventPassthrough we also need lockDirection mechanism
	this.options.freeScroll = this.options.freeScroll && !this.options.eventPassthrough;
	this.options.directionLockThreshold = this.options.eventPassthrough ? 0 : this.options.directionLockThreshold;

	this.options.bounceEasing = typeof this.options.bounceEasing == 'string' ? utils.ease[this.options.bounceEasing] || utils.ease.circular : this.options.bounceEasing;

	this.options.resizePolling = this.options.resizePolling === undefined ? 60 : this.options.resizePolling;

	if ( this.options.tap === true ) {
		this.options.tap = 'tap';
	}

	if ( this.options.shrinkScrollbars == 'scale' ) {
		this.options.useTransition = false;
	}

	this.options.invertWheelDirection = this.options.invertWheelDirection ? -1 : 1;

// INSERT POINT: NORMALIZATION

	// Some defaults
	this.x = 0;
	this.y = 0;
	this.directionX = 0;
	this.directionY = 0;
	this._events = {};

// INSERT POINT: DEFAULTS

	this._init();
	this.refresh();

	this.scrollTo(this.options.startX, this.options.startY);
	this.enable();
}

IScroll.prototype = {
	version: '5.2.0',

	_init: function () {
		this._initEvents();

		if ( this.options.scrollbars || this.options.indicators ) {
			this._initIndicators();
		}

		if ( this.options.mouseWheel ) {
			this._initWheel();
		}

		if ( this.options.snap ) {
			this._initSnap();
		}

		if ( this.options.keyBindings ) {
			this._initKeys();
		}

// INSERT POINT: _init

	},

	destroy: function () {
		this._initEvents(true);
		clearTimeout(this.resizeTimeout);
 		this.resizeTimeout = null;
		this._execEvent('destroy');
	},

	_transitionEnd: function (e) {
		if ( e.target != this.scroller || !this.isInTransition ) {
			return;
		}

		this._transitionTime();
		if ( !this.resetPosition(this.options.bounceTime) ) {
			this.isInTransition = false;
			this._execEvent('scrollEnd');
		}
	},

	_start: function (e) {
		// React to left mouse button only
		if ( utils.eventType[e.type] != 1 ) {
		  // for button property
		  // http://unixpapa.com/js/mouse.html
		  var button;
	    if (!e.which) {
	      /* IE case */
	      button = (e.button < 2) ? 0 :
	               ((e.button == 4) ? 1 : 2);
	    } else {
	      /* All others */
	      button = e.button;
	    }
			if ( button !== 0 ) {
				return;
			}
		}

		if ( !this.enabled || (this.initiated && utils.eventType[e.type] !== this.initiated) ) {
			return;
		}

		if ( this.options.preventDefault && !utils.isBadAndroid && !utils.preventDefaultException(e.target, this.options.preventDefaultException) ) {
			e.preventDefault();
		}

		var point = e.touches ? e.touches[0] : e,
			pos;

		this.initiated	= utils.eventType[e.type];
		this.moved		= false;
		this.distX		= 0;
		this.distY		= 0;
		this.directionX = 0;
		this.directionY = 0;
		this.directionLocked = 0;

		this.startTime = utils.getTime();

		if ( this.options.useTransition && this.isInTransition ) {
			this._transitionTime();
			this.isInTransition = false;
			pos = this.getComputedPosition();
			this._translate(Math.round(pos.x), Math.round(pos.y));
			this._execEvent('scrollEnd');
		} else if ( !this.options.useTransition && this.isAnimating ) {
			this.isAnimating = false;
			this._execEvent('scrollEnd');
		}

		this.startX    = this.x;
		this.startY    = this.y;
		this.absStartX = this.x;
		this.absStartY = this.y;
		this.pointX    = point.pageX;
		this.pointY    = point.pageY;

		this._execEvent('beforeScrollStart');
	},

	_move: function (e) {
		if ( !this.enabled || utils.eventType[e.type] !== this.initiated ) {
			return;
		}

		if ( this.options.preventDefault ) {	// increases performance on Android? TODO: check!
			e.preventDefault();
		}

		var point		= e.touches ? e.touches[0] : e,
			deltaX		= point.pageX - this.pointX,
			deltaY		= point.pageY - this.pointY,
			timestamp	= utils.getTime(),
			newX, newY,
			absDistX, absDistY;

		this.pointX		= point.pageX;
		this.pointY		= point.pageY;

		this.distX		+= deltaX;
		this.distY		+= deltaY;
		absDistX		= Math.abs(this.distX);
		absDistY		= Math.abs(this.distY);

		// We need to move at least 10 pixels for the scrolling to initiate
		if ( timestamp - this.endTime > 300 && (absDistX < 10 && absDistY < 10) ) {
			return;
		}

		// If you are scrolling in one direction lock the other
		if ( !this.directionLocked && !this.options.freeScroll ) {
			if ( absDistX > absDistY + this.options.directionLockThreshold ) {
				this.directionLocked = 'h';		// lock horizontally
			} else if ( absDistY >= absDistX + this.options.directionLockThreshold ) {
				this.directionLocked = 'v';		// lock vertically
			} else {
				this.directionLocked = 'n';		// no lock
			}
		}

		if ( this.directionLocked == 'h' ) {
			if ( this.options.eventPassthrough == 'vertical' ) {
				e.preventDefault();
			} else if ( this.options.eventPassthrough == 'horizontal' ) {
				this.initiated = false;
				return;
			}

			deltaY = 0;
		} else if ( this.directionLocked == 'v' ) {
			if ( this.options.eventPassthrough == 'horizontal' ) {
				e.preventDefault();
			} else if ( this.options.eventPassthrough == 'vertical' ) {
				this.initiated = false;
				return;
			}

			deltaX = 0;
		}

		deltaX = this.hasHorizontalScroll ? deltaX : 0;
		deltaY = this.hasVerticalScroll ? deltaY : 0;

		newX = this.x + deltaX;
		newY = this.y + deltaY;

		// Slow down if outside of the boundaries
		if ( newX > 0 || newX < this.maxScrollX ) {
			newX = this.options.bounce ? this.x + deltaX / 3 : newX > 0 ? 0 : this.maxScrollX;
		}
		if ( newY > 0 || newY < this.maxScrollY ) {
			newY = this.options.bounce ? this.y + deltaY / 3 : newY > 0 ? 0 : this.maxScrollY;
		}

		this.directionX = deltaX > 0 ? -1 : deltaX < 0 ? 1 : 0;
		this.directionY = deltaY > 0 ? -1 : deltaY < 0 ? 1 : 0;

		if ( !this.moved ) {
			this._execEvent('scrollStart');
		}

		this.moved = true;

		this._translate(newX, newY);

/* REPLACE START: _move */

		if ( timestamp - this.startTime > 300 ) {
			this.startTime = timestamp;
			this.startX = this.x;
			this.startY = this.y;
		}

/* REPLACE END: _move */

	},

	_end: function (e) {
		if ( !this.enabled || utils.eventType[e.type] !== this.initiated ) {
			return;
		}

		if ( this.options.preventDefault && !utils.preventDefaultException(e.target, this.options.preventDefaultException) ) {
			e.preventDefault();
		}

		var point = e.changedTouches ? e.changedTouches[0] : e,
			momentumX,
			momentumY,
			duration = utils.getTime() - this.startTime,
			newX = Math.round(this.x),
			newY = Math.round(this.y),
			distanceX = Math.abs(newX - this.startX),
			distanceY = Math.abs(newY - this.startY),
			time = 0,
			easing = '';

		this.isInTransition = 0;
		this.initiated = 0;
		this.endTime = utils.getTime();

		// reset if we are outside of the boundaries
		if ( this.resetPosition(this.options.bounceTime) ) {
			return;
		}

		this.scrollTo(newX, newY);	// ensures that the last position is rounded

		// we scrolled less than 10 pixels
		if ( !this.moved ) {
			if ( this.options.tap ) {
				utils.tap(e, this.options.tap);
			}

			if ( this.options.click ) {
				utils.click(e);
			}

			this._execEvent('scrollCancel');
			return;
		}

		if ( this._events.flick && duration < 200 && distanceX < 100 && distanceY < 100 ) {
			this._execEvent('flick');
			return;
		}

		// start momentum animation if needed
		if ( this.options.momentum && duration < 300 ) {
			momentumX = this.hasHorizontalScroll ? utils.momentum(this.x, this.startX, duration, this.maxScrollX, this.options.bounce ? this.wrapperWidth : 0, this.options.deceleration) : { destination: newX, duration: 0 };
			momentumY = this.hasVerticalScroll ? utils.momentum(this.y, this.startY, duration, this.maxScrollY, this.options.bounce ? this.wrapperHeight : 0, this.options.deceleration) : { destination: newY, duration: 0 };
			newX = momentumX.destination;
			newY = momentumY.destination;
			time = Math.max(momentumX.duration, momentumY.duration);
			this.isInTransition = 1;
		}


		if ( this.options.snap ) {
			var snap = this._nearestSnap(newX, newY);
			this.currentPage = snap;
			time = this.options.snapSpeed || Math.max(
					Math.max(
						Math.min(Math.abs(newX - snap.x), 1000),
						Math.min(Math.abs(newY - snap.y), 1000)
					), 300);
			newX = snap.x;
			newY = snap.y;

			this.directionX = 0;
			this.directionY = 0;
			easing = this.options.bounceEasing;
		}

// INSERT POINT: _end

		if ( newX != this.x || newY != this.y ) {
			// change easing function when scroller goes out of the boundaries
			if ( newX > 0 || newX < this.maxScrollX || newY > 0 || newY < this.maxScrollY ) {
				easing = utils.ease.quadratic;
			}

			this.scrollTo(newX, newY, time, easing);
			return;
		}

		this._execEvent('scrollEnd');
	},

	_resize: function () {
		var that = this;

		clearTimeout(this.resizeTimeout);

		this.resizeTimeout = setTimeout(function () {
			that.refresh();
		}, this.options.resizePolling);
	},

	resetPosition: function (time) {
		var x = this.x,
			y = this.y;

		time = time || 0;

		if ( !this.hasHorizontalScroll || this.x > 0 ) {
			x = 0;
		} else if ( this.x < this.maxScrollX ) {
			x = this.maxScrollX;
		}

		if ( !this.hasVerticalScroll || this.y > 0 ) {
			y = 0;
		} else if ( this.y < this.maxScrollY ) {
			y = this.maxScrollY;
		}

		if ( x == this.x && y == this.y ) {
			return false;
		}

		this.scrollTo(x, y, time, this.options.bounceEasing);

		return true;
	},

	disable: function () {
		this.enabled = false;
	},

	enable: function () {
		this.enabled = true;
	},

	refresh: function () {
		var rf = this.wrapper.offsetHeight;		// Force reflow

		this.wrapperWidth	= this.wrapper.clientWidth;
		this.wrapperHeight	= this.wrapper.clientHeight;

/* REPLACE START: refresh */

		this.scrollerWidth	= this.scroller.offsetWidth;
		this.scrollerHeight	= this.scroller.offsetHeight;

		this.maxScrollX		= this.wrapperWidth - this.scrollerWidth;
		this.maxScrollY		= this.wrapperHeight - this.scrollerHeight;

/* REPLACE END: refresh */

		this.hasHorizontalScroll	= this.options.scrollX && this.maxScrollX < 0;
		this.hasVerticalScroll		= this.options.scrollY && this.maxScrollY < 0;

		if ( !this.hasHorizontalScroll ) {
			this.maxScrollX = 0;
			this.scrollerWidth = this.wrapperWidth;
		}

		if ( !this.hasVerticalScroll ) {
			this.maxScrollY = 0;
			this.scrollerHeight = this.wrapperHeight;
		}

		this.endTime = 0;
		this.directionX = 0;
		this.directionY = 0;

		this.wrapperOffset = utils.offset(this.wrapper);

		this._execEvent('refresh');

		this.resetPosition();

// INSERT POINT: _refresh

	},

	on: function (type, fn) {
		if ( !this._events[type] ) {
			this._events[type] = [];
		}

		this._events[type].push(fn);
	},

	off: function (type, fn) {
		if ( !this._events[type] ) {
			return;
		}

		var index = this._events[type].indexOf(fn);

		if ( index > -1 ) {
			this._events[type].splice(index, 1);
		}
	},

	_execEvent: function (type) {
		if ( !this._events[type] ) {
			return;
		}

		var i = 0,
			l = this._events[type].length;

		if ( !l ) {
			return;
		}

		for ( ; i < l; i++ ) {
			this._events[type][i].apply(this, [].slice.call(arguments, 1));
		}
	},

	scrollBy: function (x, y, time, easing) {
		x = this.x + x;
		y = this.y + y;
		time = time || 0;

		this.scrollTo(x, y, time, easing);
	},

	scrollTo: function (x, y, time, easing) {
		easing = easing || utils.ease.circular;

		this.isInTransition = this.options.useTransition && time > 0;
		var transitionType = this.options.useTransition && easing.style;
		if ( !time || transitionType ) {
				if(transitionType) {
					this._transitionTimingFunction(easing.style);
					this._transitionTime(time);
				}
			this._translate(x, y);
		} else {
			this._animate(x, y, time, easing.fn);
		}
	},

	scrollToElement: function (el, time, offsetX, offsetY, easing) {
		el = el.nodeType ? el : this.scroller.querySelector(el);

		if ( !el ) {
			return;
		}

		var pos = utils.offset(el);

		pos.left -= this.wrapperOffset.left;
		pos.top  -= this.wrapperOffset.top;

		// if offsetX/Y are true we center the element to the screen
		if ( offsetX === true ) {
			offsetX = Math.round(el.offsetWidth / 2 - this.wrapper.offsetWidth / 2);
		}
		if ( offsetY === true ) {
			offsetY = Math.round(el.offsetHeight / 2 - this.wrapper.offsetHeight / 2);
		}

		pos.left -= offsetX || 0;
		pos.top  -= offsetY || 0;

		pos.left = pos.left > 0 ? 0 : pos.left < this.maxScrollX ? this.maxScrollX : pos.left;
		pos.top  = pos.top  > 0 ? 0 : pos.top  < this.maxScrollY ? this.maxScrollY : pos.top;

		time = time === undefined || time === null || time === 'auto' ? Math.max(Math.abs(this.x-pos.left), Math.abs(this.y-pos.top)) : time;

		this.scrollTo(pos.left, pos.top, time, easing);
	},

	_transitionTime: function (time) {
		time = time || 0;

		var durationProp = utils.style.transitionDuration;
		this.scrollerStyle[durationProp] = time + 'ms';

		if ( !time && utils.isBadAndroid ) {
			this.scrollerStyle[durationProp] = '0.0001ms';
			// remove 0.0001ms
			var self = this;
			rAF(function() {
				if(self.scrollerStyle[durationProp] === '0.0001ms') {
					self.scrollerStyle[durationProp] = '0s';
				}
			});
		}


		if ( this.indicators ) {
			for ( var i = this.indicators.length; i--; ) {
				this.indicators[i].transitionTime(time);
			}
		}


// INSERT POINT: _transitionTime

	},

	_transitionTimingFunction: function (easing) {
		this.scrollerStyle[utils.style.transitionTimingFunction] = easing;


		if ( this.indicators ) {
			for ( var i = this.indicators.length; i--; ) {
				this.indicators[i].transitionTimingFunction(easing);
			}
		}


// INSERT POINT: _transitionTimingFunction

	},

	_translate: function (x, y) {
		if ( this.options.useTransform ) {

/* REPLACE START: _translate */

			this.scrollerStyle[utils.style.transform] = 'translate(' + x + 'px,' + y + 'px)' + this.translateZ;

/* REPLACE END: _translate */

		} else {
			x = Math.round(x);
			y = Math.round(y);
			this.scrollerStyle.left = x + 'px';
			this.scrollerStyle.top = y + 'px';
		}

		this.x = x;
		this.y = y;


	if ( this.indicators ) {
		for ( var i = this.indicators.length; i--; ) {
			this.indicators[i].updatePosition();
		}
	}


// INSERT POINT: _translate

	},

	_initEvents: function (remove) {
		var eventType = remove ? utils.removeEvent : utils.addEvent,
			target = this.options.bindToWrapper ? this.wrapper : window;

		eventType(window, 'orientationchange', this);
		eventType(window, 'resize', this);

		if ( this.options.click ) {
			eventType(this.wrapper, 'click', this, true);
		}

		if ( !this.options.disableMouse ) {
			eventType(this.wrapper, 'mousedown', this);
			eventType(target, 'mousemove', this);
			eventType(target, 'mousecancel', this);
			eventType(target, 'mouseup', this);
		}

		if ( utils.hasPointer && !this.options.disablePointer ) {
			eventType(this.wrapper, utils.prefixPointerEvent('pointerdown'), this);
			eventType(target, utils.prefixPointerEvent('pointermove'), this);
			eventType(target, utils.prefixPointerEvent('pointercancel'), this);
			eventType(target, utils.prefixPointerEvent('pointerup'), this);
		}

		if ( utils.hasTouch && !this.options.disableTouch ) {
			eventType(this.wrapper, 'touchstart', this);
			eventType(target, 'touchmove', this);
			eventType(target, 'touchcancel', this);
			eventType(target, 'touchend', this);
		}

		eventType(this.scroller, 'transitionend', this);
		eventType(this.scroller, 'webkitTransitionEnd', this);
		eventType(this.scroller, 'oTransitionEnd', this);
		eventType(this.scroller, 'MSTransitionEnd', this);
	},

	getComputedPosition: function () {
		var matrix = window.getComputedStyle(this.scroller, null),
			x, y;

		if ( this.options.useTransform ) {
			matrix = matrix[utils.style.transform].split(')')[0].split(', ');
			x = +(matrix[12] || matrix[4]);
			y = +(matrix[13] || matrix[5]);
		} else {
			x = +matrix.left.replace(/[^-\d.]/g, '');
			y = +matrix.top.replace(/[^-\d.]/g, '');
		}

		return { x: x, y: y };
	},
	_initIndicators: function () {
		var interactive = this.options.interactiveScrollbars,
			customStyle = typeof this.options.scrollbars != 'string',
			indicators = [],
			indicator;

		var that = this;

		this.indicators = [];

		if ( this.options.scrollbars ) {
			// Vertical scrollbar
			if ( this.options.scrollY ) {
				indicator = {
					el: createDefaultScrollbar('v', interactive, this.options.scrollbars),
					interactive: interactive,
					defaultScrollbars: true,
					customStyle: customStyle,
					resize: this.options.resizeScrollbars,
					shrink: this.options.shrinkScrollbars,
					fade: this.options.fadeScrollbars,
					listenX: false
				};

				this.wrapper.appendChild(indicator.el);
				indicators.push(indicator);
			}

			// Horizontal scrollbar
			if ( this.options.scrollX ) {
				indicator = {
					el: createDefaultScrollbar('h', interactive, this.options.scrollbars),
					interactive: interactive,
					defaultScrollbars: true,
					customStyle: customStyle,
					resize: this.options.resizeScrollbars,
					shrink: this.options.shrinkScrollbars,
					fade: this.options.fadeScrollbars,
					listenY: false
				};

				this.wrapper.appendChild(indicator.el);
				indicators.push(indicator);
			}
		}

		if ( this.options.indicators ) {
			// TODO: check concat compatibility
			indicators = indicators.concat(this.options.indicators);
		}

		for ( var i = indicators.length; i--; ) {
			this.indicators.push( new Indicator(this, indicators[i]) );
		}

		// TODO: check if we can use array.map (wide compatibility and performance issues)
		function _indicatorsMap (fn) {
			if (that.indicators) {
				for ( var i = that.indicators.length; i--; ) {
					fn.call(that.indicators[i]);
				}
			}
		}

		if ( this.options.fadeScrollbars ) {
			this.on('scrollEnd', function () {
				_indicatorsMap(function () {
					this.fade();
				});
			});

			this.on('scrollCancel', function () {
				_indicatorsMap(function () {
					this.fade();
				});
			});

			this.on('scrollStart', function () {
				_indicatorsMap(function () {
					this.fade(1);
				});
			});

			this.on('beforeScrollStart', function () {
				_indicatorsMap(function () {
					this.fade(1, true);
				});
			});
		}


		this.on('refresh', function () {
			_indicatorsMap(function () {
				this.refresh();
			});
		});

		this.on('destroy', function () {
			_indicatorsMap(function () {
				this.destroy();
			});

			delete this.indicators;
		});
	},

	_initWheel: function () {
		utils.addEvent(this.wrapper, 'wheel', this);
		utils.addEvent(this.wrapper, 'mousewheel', this);
		utils.addEvent(this.wrapper, 'DOMMouseScroll', this);

		this.on('destroy', function () {
			clearTimeout(this.wheelTimeout);
			this.wheelTimeout = null;
			utils.removeEvent(this.wrapper, 'wheel', this);
			utils.removeEvent(this.wrapper, 'mousewheel', this);
			utils.removeEvent(this.wrapper, 'DOMMouseScroll', this);
		});
	},

	_wheel: function (e) {
		if ( !this.enabled ) {
			return;
		}

		e.preventDefault();

		var wheelDeltaX, wheelDeltaY,
			newX, newY,
			that = this;

		if ( this.wheelTimeout === undefined ) {
			that._execEvent('scrollStart');
		}

		// Execute the scrollEnd event after 400ms the wheel stopped scrolling
		clearTimeout(this.wheelTimeout);
		this.wheelTimeout = setTimeout(function () {
			if(!that.options.snap) {
				that._execEvent('scrollEnd');
			}
			that.wheelTimeout = undefined;
		}, 400);

		if ( 'deltaX' in e ) {
			if (e.deltaMode === 1) {
				wheelDeltaX = -e.deltaX * this.options.mouseWheelSpeed;
				wheelDeltaY = -e.deltaY * this.options.mouseWheelSpeed;
			} else {
				wheelDeltaX = -e.deltaX;
				wheelDeltaY = -e.deltaY;
			}
		} else if ( 'wheelDeltaX' in e ) {
			wheelDeltaX = e.wheelDeltaX / 120 * this.options.mouseWheelSpeed;
			wheelDeltaY = e.wheelDeltaY / 120 * this.options.mouseWheelSpeed;
		} else if ( 'wheelDelta' in e ) {
			wheelDeltaX = wheelDeltaY = e.wheelDelta / 120 * this.options.mouseWheelSpeed;
		} else if ( 'detail' in e ) {
			wheelDeltaX = wheelDeltaY = -e.detail / 3 * this.options.mouseWheelSpeed;
		} else {
			return;
		}

		wheelDeltaX *= this.options.invertWheelDirection;
		wheelDeltaY *= this.options.invertWheelDirection;

		if ( !this.hasVerticalScroll ) {
			wheelDeltaX = wheelDeltaY;
			wheelDeltaY = 0;
		}

		if ( this.options.snap ) {
			newX = this.currentPage.pageX;
			newY = this.currentPage.pageY;

			if ( wheelDeltaX > 0 ) {
				newX--;
			} else if ( wheelDeltaX < 0 ) {
				newX++;
			}

			if ( wheelDeltaY > 0 ) {
				newY--;
			} else if ( wheelDeltaY < 0 ) {
				newY++;
			}

			this.goToPage(newX, newY);

			return;
		}

		newX = this.x + Math.round(this.hasHorizontalScroll ? wheelDeltaX : 0);
		newY = this.y + Math.round(this.hasVerticalScroll ? wheelDeltaY : 0);

		this.directionX = wheelDeltaX > 0 ? -1 : wheelDeltaX < 0 ? 1 : 0;
		this.directionY = wheelDeltaY > 0 ? -1 : wheelDeltaY < 0 ? 1 : 0;

		if ( newX > 0 ) {
			newX = 0;
		} else if ( newX < this.maxScrollX ) {
			newX = this.maxScrollX;
		}

		if ( newY > 0 ) {
			newY = 0;
		} else if ( newY < this.maxScrollY ) {
			newY = this.maxScrollY;
		}

		this.scrollTo(newX, newY, 0);

// INSERT POINT: _wheel
	},

	_initSnap: function () {
		this.currentPage = {};

		if ( typeof this.options.snap == 'string' ) {
			this.options.snap = this.scroller.querySelectorAll(this.options.snap);
		}

		this.on('refresh', function () {
			var i = 0, l,
				m = 0, n,
				cx, cy,
				x = 0, y,
				stepX = this.options.snapStepX || this.wrapperWidth,
				stepY = this.options.snapStepY || this.wrapperHeight,
				el;

			this.pages = [];

			if ( !this.wrapperWidth || !this.wrapperHeight || !this.scrollerWidth || !this.scrollerHeight ) {
				return;
			}

			if ( this.options.snap === true ) {
				cx = Math.round( stepX / 2 );
				cy = Math.round( stepY / 2 );

				while ( x > -this.scrollerWidth ) {
					this.pages[i] = [];
					l = 0;
					y = 0;

					while ( y > -this.scrollerHeight ) {
						this.pages[i][l] = {
							x: Math.max(x, this.maxScrollX),
							y: Math.max(y, this.maxScrollY),
							width: stepX,
							height: stepY,
							cx: x - cx,
							cy: y - cy
						};

						y -= stepY;
						l++;
					}

					x -= stepX;
					i++;
				}
			} else {
				el = this.options.snap;
				l = el.length;
				n = -1;

				for ( ; i < l; i++ ) {
					if ( i === 0 || el[i].offsetLeft <= el[i-1].offsetLeft ) {
						m = 0;
						n++;
					}

					if ( !this.pages[m] ) {
						this.pages[m] = [];
					}

					x = Math.max(-el[i].offsetLeft, this.maxScrollX);
					y = Math.max(-el[i].offsetTop, this.maxScrollY);
					cx = x - Math.round(el[i].offsetWidth / 2);
					cy = y - Math.round(el[i].offsetHeight / 2);

					this.pages[m][n] = {
						x: x,
						y: y,
						width: el[i].offsetWidth,
						height: el[i].offsetHeight,
						cx: cx,
						cy: cy
					};

					if ( x > this.maxScrollX ) {
						m++;
					}
				}
			}

			this.goToPage(this.currentPage.pageX || 0, this.currentPage.pageY || 0, 0);

			// Update snap threshold if needed
			if ( this.options.snapThreshold % 1 === 0 ) {
				this.snapThresholdX = this.options.snapThreshold;
				this.snapThresholdY = this.options.snapThreshold;
			} else {
				this.snapThresholdX = Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width * this.options.snapThreshold);
				this.snapThresholdY = Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height * this.options.snapThreshold);
			}
		});

		this.on('flick', function () {
			var time = this.options.snapSpeed || Math.max(
					Math.max(
						Math.min(Math.abs(this.x - this.startX), 1000),
						Math.min(Math.abs(this.y - this.startY), 1000)
					), 300);

			this.goToPage(
				this.currentPage.pageX + this.directionX,
				this.currentPage.pageY + this.directionY,
				time
			);
		});
	},

	_nearestSnap: function (x, y) {
		if ( !this.pages.length ) {
			return { x: 0, y: 0, pageX: 0, pageY: 0 };
		}

		var i = 0,
			l = this.pages.length,
			m = 0;

		// Check if we exceeded the snap threshold
		if ( Math.abs(x - this.absStartX) < this.snapThresholdX &&
			Math.abs(y - this.absStartY) < this.snapThresholdY ) {
			return this.currentPage;
		}

		if ( x > 0 ) {
			x = 0;
		} else if ( x < this.maxScrollX ) {
			x = this.maxScrollX;
		}

		if ( y > 0 ) {
			y = 0;
		} else if ( y < this.maxScrollY ) {
			y = this.maxScrollY;
		}

		for ( ; i < l; i++ ) {
			if ( x >= this.pages[i][0].cx ) {
				x = this.pages[i][0].x;
				break;
			}
		}

		l = this.pages[i].length;

		for ( ; m < l; m++ ) {
			if ( y >= this.pages[0][m].cy ) {
				y = this.pages[0][m].y;
				break;
			}
		}

		if ( i == this.currentPage.pageX ) {
			i += this.directionX;

			if ( i < 0 ) {
				i = 0;
			} else if ( i >= this.pages.length ) {
				i = this.pages.length - 1;
			}

			x = this.pages[i][0].x;
		}

		if ( m == this.currentPage.pageY ) {
			m += this.directionY;

			if ( m < 0 ) {
				m = 0;
			} else if ( m >= this.pages[0].length ) {
				m = this.pages[0].length - 1;
			}

			y = this.pages[0][m].y;
		}

		return {
			x: x,
			y: y,
			pageX: i,
			pageY: m
		};
	},

	goToPage: function (x, y, time, easing) {
		easing = easing || this.options.bounceEasing;

		if ( x >= this.pages.length ) {
			x = this.pages.length - 1;
		} else if ( x < 0 ) {
			x = 0;
		}

		if ( y >= this.pages[x].length ) {
			y = this.pages[x].length - 1;
		} else if ( y < 0 ) {
			y = 0;
		}

		var posX = this.pages[x][y].x,
			posY = this.pages[x][y].y;

		time = time === undefined ? this.options.snapSpeed || Math.max(
			Math.max(
				Math.min(Math.abs(posX - this.x), 1000),
				Math.min(Math.abs(posY - this.y), 1000)
			), 300) : time;

		this.currentPage = {
			x: posX,
			y: posY,
			pageX: x,
			pageY: y
		};

		this.scrollTo(posX, posY, time, easing);
	},

	next: function (time, easing) {
		var x = this.currentPage.pageX,
			y = this.currentPage.pageY;

		x++;

		if ( x >= this.pages.length && this.hasVerticalScroll ) {
			x = 0;
			y++;
		}

		this.goToPage(x, y, time, easing);
	},

	prev: function (time, easing) {
		var x = this.currentPage.pageX,
			y = this.currentPage.pageY;

		x--;

		if ( x < 0 && this.hasVerticalScroll ) {
			x = 0;
			y--;
		}

		this.goToPage(x, y, time, easing);
	},

	_initKeys: function (e) {
		// default key bindings
		var keys = {
			pageUp: 33,
			pageDown: 34,
			end: 35,
			home: 36,
			left: 37,
			up: 38,
			right: 39,
			down: 40
		};
		var i;

		// if you give me characters I give you keycode
		if ( typeof this.options.keyBindings == 'object' ) {
			for ( i in this.options.keyBindings ) {
				if ( typeof this.options.keyBindings[i] == 'string' ) {
					this.options.keyBindings[i] = this.options.keyBindings[i].toUpperCase().charCodeAt(0);
				}
			}
		} else {
			this.options.keyBindings = {};
		}

		for ( i in keys ) {
			this.options.keyBindings[i] = this.options.keyBindings[i] || keys[i];
		}

		utils.addEvent(window, 'keydown', this);

		this.on('destroy', function () {
			utils.removeEvent(window, 'keydown', this);
		});
	},

	_key: function (e) {
		if ( !this.enabled ) {
			return;
		}

		var snap = this.options.snap,	// we are using this alot, better to cache it
			newX = snap ? this.currentPage.pageX : this.x,
			newY = snap ? this.currentPage.pageY : this.y,
			now = utils.getTime(),
			prevTime = this.keyTime || 0,
			acceleration = 0.250,
			pos;

		if ( this.options.useTransition && this.isInTransition ) {
			pos = this.getComputedPosition();

			this._translate(Math.round(pos.x), Math.round(pos.y));
			this.isInTransition = false;
		}

		this.keyAcceleration = now - prevTime < 200 ? Math.min(this.keyAcceleration + acceleration, 50) : 0;

		switch ( e.keyCode ) {
			case this.options.keyBindings.pageUp:
				if ( this.hasHorizontalScroll && !this.hasVerticalScroll ) {
					newX += snap ? 1 : this.wrapperWidth;
				} else {
					newY += snap ? 1 : this.wrapperHeight;
				}
				break;
			case this.options.keyBindings.pageDown:
				if ( this.hasHorizontalScroll && !this.hasVerticalScroll ) {
					newX -= snap ? 1 : this.wrapperWidth;
				} else {
					newY -= snap ? 1 : this.wrapperHeight;
				}
				break;
			case this.options.keyBindings.end:
				newX = snap ? this.pages.length-1 : this.maxScrollX;
				newY = snap ? this.pages[0].length-1 : this.maxScrollY;
				break;
			case this.options.keyBindings.home:
				newX = 0;
				newY = 0;
				break;
			case this.options.keyBindings.left:
				newX += snap ? -1 : 5 + this.keyAcceleration>>0;
				break;
			case this.options.keyBindings.up:
				newY += snap ? 1 : 5 + this.keyAcceleration>>0;
				break;
			case this.options.keyBindings.right:
				newX -= snap ? -1 : 5 + this.keyAcceleration>>0;
				break;
			case this.options.keyBindings.down:
				newY -= snap ? 1 : 5 + this.keyAcceleration>>0;
				break;
			default:
				return;
		}

		if ( snap ) {
			this.goToPage(newX, newY);
			return;
		}

		if ( newX > 0 ) {
			newX = 0;
			this.keyAcceleration = 0;
		} else if ( newX < this.maxScrollX ) {
			newX = this.maxScrollX;
			this.keyAcceleration = 0;
		}

		if ( newY > 0 ) {
			newY = 0;
			this.keyAcceleration = 0;
		} else if ( newY < this.maxScrollY ) {
			newY = this.maxScrollY;
			this.keyAcceleration = 0;
		}

		this.scrollTo(newX, newY, 0);

		this.keyTime = now;
	},

	_animate: function (destX, destY, duration, easingFn) {
		var that = this,
			startX = this.x,
			startY = this.y,
			startTime = utils.getTime(),
			destTime = startTime + duration;

		function step () {
			var now = utils.getTime(),
				newX, newY,
				easing;

			if ( now >= destTime ) {
				that.isAnimating = false;
				that._translate(destX, destY);

				if ( !that.resetPosition(that.options.bounceTime) ) {
					that._execEvent('scrollEnd');
				}

				return;
			}

			now = ( now - startTime ) / duration;
			easing = easingFn(now);
			newX = ( destX - startX ) * easing + startX;
			newY = ( destY - startY ) * easing + startY;
			that._translate(newX, newY);

			if ( that.isAnimating ) {
				rAF(step);
			}
		}

		this.isAnimating = true;
		step();
	},
	handleEvent: function (e) {
		switch ( e.type ) {
			case 'touchstart':
			case 'pointerdown':
			case 'MSPointerDown':
			case 'mousedown':
				this._start(e);
				break;
			case 'touchmove':
			case 'pointermove':
			case 'MSPointerMove':
			case 'mousemove':
				this._move(e);
				break;
			case 'touchend':
			case 'pointerup':
			case 'MSPointerUp':
			case 'mouseup':
			case 'touchcancel':
			case 'pointercancel':
			case 'MSPointerCancel':
			case 'mousecancel':
				this._end(e);
				break;
			case 'orientationchange':
			case 'resize':
				this._resize();
				break;
			case 'transitionend':
			case 'webkitTransitionEnd':
			case 'oTransitionEnd':
			case 'MSTransitionEnd':
				this._transitionEnd(e);
				break;
			case 'wheel':
			case 'DOMMouseScroll':
			case 'mousewheel':
				this._wheel(e);
				break;
			case 'keydown':
				this._key(e);
				break;
			case 'click':
				if ( this.enabled && !e._constructed ) {
					e.preventDefault();
					e.stopPropagation();
				}
				break;
		}
	}
};
function createDefaultScrollbar (direction, interactive, type) {
	var scrollbar = document.createElement('div'),
		indicator = document.createElement('div');

	if ( type === true ) {
		scrollbar.style.cssText = 'position:absolute;z-index:9999';
		indicator.style.cssText = '-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px';
	}

	indicator.className = 'iScrollIndicator';

	if ( direction == 'h' ) {
		if ( type === true ) {
			scrollbar.style.cssText += ';height:7px;left:2px;right:2px;bottom:0';
			indicator.style.height = '100%';
		}
		scrollbar.className = 'iScrollHorizontalScrollbar';
	} else {
		if ( type === true ) {
			scrollbar.style.cssText += ';width:7px;bottom:2px;top:2px;right:1px';
			indicator.style.width = '100%';
		}
		scrollbar.className = 'iScrollVerticalScrollbar';
	}

	scrollbar.style.cssText += ';overflow:hidden';

	if ( !interactive ) {
		scrollbar.style.pointerEvents = 'none';
	}

	scrollbar.appendChild(indicator);

	return scrollbar;
}

function Indicator (scroller, options) {
	this.wrapper = typeof options.el == 'string' ? document.querySelector(options.el) : options.el;
	this.wrapperStyle = this.wrapper.style;
	this.indicator = this.wrapper.children[0];
	this.indicatorStyle = this.indicator.style;
	this.scroller = scroller;

	this.options = {
		listenX: true,
		listenY: true,
		interactive: false,
		resize: true,
		defaultScrollbars: false,
		shrink: false,
		fade: false,
		speedRatioX: 0,
		speedRatioY: 0
	};

	for ( var i in options ) {
		this.options[i] = options[i];
	}

	this.sizeRatioX = 1;
	this.sizeRatioY = 1;
	this.maxPosX = 0;
	this.maxPosY = 0;

	if ( this.options.interactive ) {
		if ( !this.options.disableTouch ) {
			utils.addEvent(this.indicator, 'touchstart', this);
			utils.addEvent(window, 'touchend', this);
		}
		if ( !this.options.disablePointer ) {
			utils.addEvent(this.indicator, utils.prefixPointerEvent('pointerdown'), this);
			utils.addEvent(window, utils.prefixPointerEvent('pointerup'), this);
		}
		if ( !this.options.disableMouse ) {
			utils.addEvent(this.indicator, 'mousedown', this);
			utils.addEvent(window, 'mouseup', this);
		}
	}

	if ( this.options.fade ) {
		this.wrapperStyle[utils.style.transform] = this.scroller.translateZ;
		var durationProp = utils.style.transitionDuration;
		this.wrapperStyle[durationProp] = utils.isBadAndroid ? '0.0001ms' : '0ms';
		// remove 0.0001ms
		var self = this;
		if(utils.isBadAndroid) {
			rAF(function() {
				if(self.wrapperStyle[durationProp] === '0.0001ms') {
					self.wrapperStyle[durationProp] = '0s';
				}
			});
		}
		this.wrapperStyle.opacity = '0';
	}
}

Indicator.prototype = {
	handleEvent: function (e) {
		switch ( e.type ) {
			case 'touchstart':
			case 'pointerdown':
			case 'MSPointerDown':
			case 'mousedown':
				this._start(e);
				break;
			case 'touchmove':
			case 'pointermove':
			case 'MSPointerMove':
			case 'mousemove':
				this._move(e);
				break;
			case 'touchend':
			case 'pointerup':
			case 'MSPointerUp':
			case 'mouseup':
			case 'touchcancel':
			case 'pointercancel':
			case 'MSPointerCancel':
			case 'mousecancel':
				this._end(e);
				break;
		}
	},

	destroy: function () {
		if ( this.options.fadeScrollbars ) {
			clearTimeout(this.fadeTimeout);
			this.fadeTimeout = null;
		}
		if ( this.options.interactive ) {
			utils.removeEvent(this.indicator, 'touchstart', this);
			utils.removeEvent(this.indicator, utils.prefixPointerEvent('pointerdown'), this);
			utils.removeEvent(this.indicator, 'mousedown', this);

			utils.removeEvent(window, 'touchmove', this);
			utils.removeEvent(window, utils.prefixPointerEvent('pointermove'), this);
			utils.removeEvent(window, 'mousemove', this);

			utils.removeEvent(window, 'touchend', this);
			utils.removeEvent(window, utils.prefixPointerEvent('pointerup'), this);
			utils.removeEvent(window, 'mouseup', this);
		}

		if ( this.options.defaultScrollbars ) {
			this.wrapper.parentNode.removeChild(this.wrapper);
		}
	},

	_start: function (e) {
		var point = e.touches ? e.touches[0] : e;

		e.preventDefault();
		e.stopPropagation();

		this.transitionTime();

		this.initiated = true;
		this.moved = false;
		this.lastPointX	= point.pageX;
		this.lastPointY	= point.pageY;

		this.startTime	= utils.getTime();

		if ( !this.options.disableTouch ) {
			utils.addEvent(window, 'touchmove', this);
		}
		if ( !this.options.disablePointer ) {
			utils.addEvent(window, utils.prefixPointerEvent('pointermove'), this);
		}
		if ( !this.options.disableMouse ) {
			utils.addEvent(window, 'mousemove', this);
		}

		this.scroller._execEvent('beforeScrollStart');
	},

	_move: function (e) {
		var point = e.touches ? e.touches[0] : e,
			deltaX, deltaY,
			newX, newY,
			timestamp = utils.getTime();

		if ( !this.moved ) {
			this.scroller._execEvent('scrollStart');
		}

		this.moved = true;

		deltaX = point.pageX - this.lastPointX;
		this.lastPointX = point.pageX;

		deltaY = point.pageY - this.lastPointY;
		this.lastPointY = point.pageY;

		newX = this.x + deltaX;
		newY = this.y + deltaY;

		this._pos(newX, newY);

// INSERT POINT: indicator._move

		e.preventDefault();
		e.stopPropagation();
	},

	_end: function (e) {
		if ( !this.initiated ) {
			return;
		}

		this.initiated = false;

		e.preventDefault();
		e.stopPropagation();

		utils.removeEvent(window, 'touchmove', this);
		utils.removeEvent(window, utils.prefixPointerEvent('pointermove'), this);
		utils.removeEvent(window, 'mousemove', this);

		if ( this.scroller.options.snap ) {
			var snap = this.scroller._nearestSnap(this.scroller.x, this.scroller.y);

			var time = this.options.snapSpeed || Math.max(
					Math.max(
						Math.min(Math.abs(this.scroller.x - snap.x), 1000),
						Math.min(Math.abs(this.scroller.y - snap.y), 1000)
					), 300);

			if ( this.scroller.x != snap.x || this.scroller.y != snap.y ) {
				this.scroller.directionX = 0;
				this.scroller.directionY = 0;
				this.scroller.currentPage = snap;
				this.scroller.scrollTo(snap.x, snap.y, time, this.scroller.options.bounceEasing);
			}
		}

		if ( this.moved ) {
			this.scroller._execEvent('scrollEnd');
		}
	},

	transitionTime: function (time) {
		time = time || 0;
		var durationProp = utils.style.transitionDuration;
		this.indicatorStyle[durationProp] = time + 'ms';

		if ( !time && utils.isBadAndroid ) {
			this.indicatorStyle[durationProp] = '0.0001ms';
			// remove 0.0001ms
			var self = this;
			rAF(function() {
				if(self.indicatorStyle[durationProp] === '0.0001ms') {
					self.indicatorStyle[durationProp] = '0s';
				}
			});
		}
	},

	transitionTimingFunction: function (easing) {
		this.indicatorStyle[utils.style.transitionTimingFunction] = easing;
	},

	refresh: function () {
		this.transitionTime();

		if ( this.options.listenX && !this.options.listenY ) {
			this.indicatorStyle.display = this.scroller.hasHorizontalScroll ? 'block' : 'none';
		} else if ( this.options.listenY && !this.options.listenX ) {
			this.indicatorStyle.display = this.scroller.hasVerticalScroll ? 'block' : 'none';
		} else {
			this.indicatorStyle.display = this.scroller.hasHorizontalScroll || this.scroller.hasVerticalScroll ? 'block' : 'none';
		}

		if ( this.scroller.hasHorizontalScroll && this.scroller.hasVerticalScroll ) {
			utils.addClass(this.wrapper, 'iScrollBothScrollbars');
			utils.removeClass(this.wrapper, 'iScrollLoneScrollbar');

			if ( this.options.defaultScrollbars && this.options.customStyle ) {
				if ( this.options.listenX ) {
					this.wrapper.style.right = '8px';
				} else {
					this.wrapper.style.bottom = '8px';
				}
			}
		} else {
			utils.removeClass(this.wrapper, 'iScrollBothScrollbars');
			utils.addClass(this.wrapper, 'iScrollLoneScrollbar');

			if ( this.options.defaultScrollbars && this.options.customStyle ) {
				if ( this.options.listenX ) {
					this.wrapper.style.right = '2px';
				} else {
					this.wrapper.style.bottom = '2px';
				}
			}
		}

		var r = this.wrapper.offsetHeight;	// force refresh

		if ( this.options.listenX ) {
			this.wrapperWidth = this.wrapper.clientWidth;
			if ( this.options.resize ) {
				this.indicatorWidth = Math.max(Math.round(this.wrapperWidth * this.wrapperWidth / (this.scroller.scrollerWidth || this.wrapperWidth || 1)), 8);
				this.indicatorStyle.width = this.indicatorWidth + 'px';
			} else {
				this.indicatorWidth = this.indicator.clientWidth;
			}

			this.maxPosX = this.wrapperWidth - this.indicatorWidth;

			if ( this.options.shrink == 'clip' ) {
				this.minBoundaryX = -this.indicatorWidth + 8;
				this.maxBoundaryX = this.wrapperWidth - 8;
			} else {
				this.minBoundaryX = 0;
				this.maxBoundaryX = this.maxPosX;
			}

			this.sizeRatioX = this.options.speedRatioX || (this.scroller.maxScrollX && (this.maxPosX / this.scroller.maxScrollX));
		}

		if ( this.options.listenY ) {
			this.wrapperHeight = this.wrapper.clientHeight;
			if ( this.options.resize ) {
				this.indicatorHeight = Math.max(Math.round(this.wrapperHeight * this.wrapperHeight / (this.scroller.scrollerHeight || this.wrapperHeight || 1)), 8);
				this.indicatorStyle.height = this.indicatorHeight + 'px';
			} else {
				this.indicatorHeight = this.indicator.clientHeight;
			}

			this.maxPosY = this.wrapperHeight - this.indicatorHeight;

			if ( this.options.shrink == 'clip' ) {
				this.minBoundaryY = -this.indicatorHeight + 8;
				this.maxBoundaryY = this.wrapperHeight - 8;
			} else {
				this.minBoundaryY = 0;
				this.maxBoundaryY = this.maxPosY;
			}

			this.maxPosY = this.wrapperHeight - this.indicatorHeight;
			this.sizeRatioY = this.options.speedRatioY || (this.scroller.maxScrollY && (this.maxPosY / this.scroller.maxScrollY));
		}

		this.updatePosition();
	},

	updatePosition: function () {
		var x = this.options.listenX && Math.round(this.sizeRatioX * this.scroller.x) || 0,
			y = this.options.listenY && Math.round(this.sizeRatioY * this.scroller.y) || 0;

		if ( !this.options.ignoreBoundaries ) {
			if ( x < this.minBoundaryX ) {
				if ( this.options.shrink == 'scale' ) {
					this.width = Math.max(this.indicatorWidth + x, 8);
					this.indicatorStyle.width = this.width + 'px';
				}
				x = this.minBoundaryX;
			} else if ( x > this.maxBoundaryX ) {
				if ( this.options.shrink == 'scale' ) {
					this.width = Math.max(this.indicatorWidth - (x - this.maxPosX), 8);
					this.indicatorStyle.width = this.width + 'px';
					x = this.maxPosX + this.indicatorWidth - this.width;
				} else {
					x = this.maxBoundaryX;
				}
			} else if ( this.options.shrink == 'scale' && this.width != this.indicatorWidth ) {
				this.width = this.indicatorWidth;
				this.indicatorStyle.width = this.width + 'px';
			}

			if ( y < this.minBoundaryY ) {
				if ( this.options.shrink == 'scale' ) {
					this.height = Math.max(this.indicatorHeight + y * 3, 8);
					this.indicatorStyle.height = this.height + 'px';
				}
				y = this.minBoundaryY;
			} else if ( y > this.maxBoundaryY ) {
				if ( this.options.shrink == 'scale' ) {
					this.height = Math.max(this.indicatorHeight - (y - this.maxPosY) * 3, 8);
					this.indicatorStyle.height = this.height + 'px';
					y = this.maxPosY + this.indicatorHeight - this.height;
				} else {
					y = this.maxBoundaryY;
				}
			} else if ( this.options.shrink == 'scale' && this.height != this.indicatorHeight ) {
				this.height = this.indicatorHeight;
				this.indicatorStyle.height = this.height + 'px';
			}
		}

		this.x = x;
		this.y = y;

		if ( this.scroller.options.useTransform ) {
			this.indicatorStyle[utils.style.transform] = 'translate(' + x + 'px,' + y + 'px)' + this.scroller.translateZ;
		} else {
			this.indicatorStyle.left = x + 'px';
			this.indicatorStyle.top = y + 'px';
		}
	},

	_pos: function (x, y) {
		if ( x < 0 ) {
			x = 0;
		} else if ( x > this.maxPosX ) {
			x = this.maxPosX;
		}

		if ( y < 0 ) {
			y = 0;
		} else if ( y > this.maxPosY ) {
			y = this.maxPosY;
		}

		x = this.options.listenX ? Math.round(x / this.sizeRatioX) : this.scroller.x;
		y = this.options.listenY ? Math.round(y / this.sizeRatioY) : this.scroller.y;

		this.scroller.scrollTo(x, y);
	},

	fade: function (val, hold) {
		if ( hold && !this.visible ) {
			return;
		}

		clearTimeout(this.fadeTimeout);
		this.fadeTimeout = null;

		var time = val ? 250 : 500,
			delay = val ? 0 : 300;

		val = val ? '1' : '0';

		this.wrapperStyle[utils.style.transitionDuration] = time + 'ms';

		this.fadeTimeout = setTimeout((function (val) {
			this.wrapperStyle.opacity = val;
			this.visible = +val;
		}).bind(this, val), delay);
	}
};

IScroll.utils = utils;

if (  true && module.exports ) {
	module.exports = IScroll;
} else if ( true ) {
        !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return IScroll; }).call(exports, __webpack_require__, exports, module),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}

})(window, document, Math);
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(361);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a096b496_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(961);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2257)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a096b496"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a096b496_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a096b496_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_PopupWin_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2258);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f6294ed8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".PopupWin[data-v-a096b496]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:99}.PopupWin .mainContent[data-v-a096b496]{position:absolute;bottom:0;left:0;width:100%;height:90%;background-color:#fff;border-radius:.4rem .4rem 0 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.PopupWin .mainContent .title[data-v-a096b496]{height:2.75rem;line-height:2.75rem;background-color:#f6f6f6;text-align:center;font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;border-radius:.4rem .4rem 0 0}.PopupWin .mainContent .title .close[data-v-a096b496]{position:absolute;top:0;right:0;line-height:2.75rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;padding-right:.8rem}.PopupWin .mainContent .content[data-v-a096b496]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.popup-enter-active[data-v-a096b496],.popup-leave-active[data-v-a096b496]{-webkit-transition:all .25s ease;transition:all .25s ease}.popup-enter[data-v-a096b496],.popup-leave-to[data-v-a096b496]{opacity:0;-webkit-transform:translateY(90%);-ms-transform:translateY(90%);transform:translateY(90%)}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  model: {
    prop: 'isShow',
    event: 'change'
  },
  props: {
    title: String,
    // 弹窗标题
    height: String,
    // 弹窗高度
    isShow: Boolean
  },
  data: function data() {
    return {
      scroll: null,
      showContent: false
    };
  },
  watch: {
    isShow: function isShow(val) {
      this.showContent = val;
    },
    showContent: function showContent() {
      var _this = this;
      this.$nextTick(function () {
        setTimeout(function () {
          _this.scroll.refresh();
        }, 0);
      });
    }
  },
  mounted: function mounted() {
    this.scroll = new _betterScroll.default('#contentScroll', {
      scrollY: true,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300,
      scrollbar: {
        fade: true,
        interactive: false
      }
    });
    var that = this;
    this.scroll.on('scrollEnd', function () {
      if (this.y <= this.maxScrollY && this.distY < -120) {
        that.$emit('scrollBottom', that.scroll);
      }
    });
  },
  destroyed: function destroyed() {
    this.scroll.destroy();
    this.scroll = null;
  },
  methods: {
    afterLeave: function afterLeave() {
      this.$emit('change', false);
    },
    closePopup: function closePopup() {
      this.showContent = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"}],staticClass:"PopupWin",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.closePopup.apply(null, arguments)},"touchmove":function($event){$event.preventDefault();}}},[_c('transition',{attrs:{"name":"popup"},on:{"after-leave":_vm.afterLeave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow&&_vm.showContent),expression:"isShow&&showContent"}],staticClass:"mainContent",style:({height: _vm.height||'90%'})},[_c('div',{staticClass:"title"},[_vm._v("\n        "+_vm._s(_vm.title)+"\n        "),_c('div',{staticClass:"close",on:{"click":_vm.closePopup}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content",attrs:{"id":"contentScroll"},on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',[_vm._t("default")],2)])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(362);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1e5b8cb9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(962);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2259)
  __webpack_require__(2261)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1e5b8cb9"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1e5b8cb9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1e5b8cb9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Result_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2260);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b6a4bcf4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ResultWrap[data-v-1e5b8cb9]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow-y:auto}.ResultWrap .row-tabs[data-v-1e5b8cb9]{background-color:#fff;padding:.68rem 0;box-shadow:0 .05rem .1rem 0 rgba(190,212,242,.3);overflow:hidden;white-space:nowrap;position:relative;z-index:2}.ResultWrap .row-tabs>div[data-v-1e5b8cb9]{display:inline-block;padding-left:.7rem;padding-right:.7rem}.ResultWrap .row-tabs>div .row-tab[data-v-1e5b8cb9]{line-height:1.4rem;text-align:center;border-radius:.7rem;border:1px solid #666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;background-color:#fff;padding:0 .8rem;display:inline-block;box-sizing:border-box;margin-right:.8rem}.ResultWrap .row-tabs>div .row-tab[data-v-1e5b8cb9]:last-child{margin-right:0}.ResultWrap .row-tabs>div .row-tab.active[data-v-1e5b8cb9]{color:#fff;background-color:#377ee1;border-color:#377ee1}.ResultWrap .row-tabs-fake[data-v-1e5b8cb9]{position:fixed;top:0;left:0;width:100%}.ResultWrap .suspend-tabs[data-v-1e5b8cb9]{position:fixed;z-index:10;top:2.8rem;left:.2rem;width:4rem;-webkit-transition:height .3s ease;transition:height .3s ease;background:#fff;box-shadow:0 .25rem .5rem 0 rgba(133,150,174,.34);border-radius:.3rem;-webkit-transition:all .3s ease;transition:all .3s ease}.ResultWrap .suspend-tabs.center[data-v-1e5b8cb9]{top:5%}.ResultWrap .suspend-tabs .suspend-wrap[data-v-1e5b8cb9]{overflow:hidden}.ResultWrap .suspend-tabs .suspend-wrap .suspend-tab[data-v-1e5b8cb9]{padding:.5rem .4rem;border-bottom:1px solid #eee;text-align:center;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.ResultWrap .suspend-tabs .suspend-wrap .suspend-tab.active[data-v-1e5b8cb9]{position:relative;font-weight:700;color:#377ee1}.ResultWrap .suspend-tabs .suspend-wrap .suspend-tab.active[data-v-1e5b8cb9]:after{content:\"\";position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:1.5rem;height:.15rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/tab-active.png\");background-repeat:no-repeat;background-size:contain}.ResultWrap .suspend-tabs .toggle-btn[data-v-1e5b8cb9]{padding:.5rem .4rem;border-bottom:1px solid #eee;text-align:center;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.ResultWrap .suspend-tabs .toggle-btn .tab-arrow[data-v-1e5b8cb9]{width:.45rem;height:.28rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/tab-arrow.png\");background-size:100%;background-repeat:no-repeat;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease}.ResultWrap .suspend-tabs .toggle-btn .tab-arrow.up[data-v-1e5b8cb9]{-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.ResultWrap .suspend-tabs.open .suspend-wrap[data-v-1e5b8cb9]{max-height:16.83rem}.ResultWrap .suspend-tabs.close .suspend-wrap[data-v-1e5b8cb9]{max-height:14.13rem}.ResultWrap .main[data-v-1e5b8cb9]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.ResultWrap .main .col-tabs[data-v-1e5b8cb9]{background-color:#f2f2f2;width:4.5rem;height:100vh;overflow-y:auto}.ResultWrap .main .col-tabs .col-tab[data-v-1e5b8cb9]{padding:.85rem .25rem;line-height:1.05rem;text-align:center;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;border-bottom:1px solid #e6e6e6}.ResultWrap .main .col-tabs .col-tab.active[data-v-1e5b8cb9]{background-color:#fff;color:#377ee1;font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:600;position:relative}.ResultWrap .main .col-tabs .col-tab.active[data-v-1e5b8cb9]:after{content:\"\";position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.2rem;height:.8rem;background-color:#377ee1}.ResultWrap .main .col-tabs-fake-1[data-v-1e5b8cb9]{position:fixed;top:2.76rem;left:0}.ResultWrap .main .col-tabs-fake-2[data-v-1e5b8cb9]{position:fixed;top:0;left:0}.ResultWrap .main .resultList[data-v-1e5b8cb9]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-left:1rem;min-height:100vh}.ResultWrap .main .resultList .item[data-v-1e5b8cb9]{position:relative;border-bottom:1px solid #eee;padding:.6rem .5rem .6rem 0}.ResultWrap .main .resultList .item .fileImg[data-v-1e5b8cb9]{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.4rem;height:2rem;background-color:#f0f8ff}.ResultWrap .main .resultList .item .rightContent[data-v-1e5b8cb9]{margin-left:3.3rem}.ResultWrap .main .resultList .item .rightContent .name[data-v-1e5b8cb9]{font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.25rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.ResultWrap .main .resultList .item .rightContent .type[data-v-1e5b8cb9]{margin-top:.2rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#999;line-height:1rem}.ResultWrap .main .resultList .errorCollect[data-v-1e5b8cb9]{text-align:center;padding:1.2rem 0;text-decoration:underline;color:#377ee1}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2262);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("967328ec", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ResultWrap .mescroll-empty{padding-top:5.48rem!important}.ResultWrap .mescroll-empty .empty-icon{width:2.33rem!important}.ResultWrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
var _iscroll = _interopRequireDefault(__webpack_require__(312));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    usId: {
      required: true
    },
    directoryId: {
      required: true
    }
  },
  data: function data() {
    return {
      leftDirectoryId: '',
      dataList: [],
      leftList: [],
      isSpread: false,
      // 左侧tab栏 展开与否
      isShowMore: false,
      // 是否展示 更多 按钮
      topList: [],
      currentTopTab: '全部',
      pinTab: false,
      scrollSuspend: null,
      // BScroll实例对象
      scrollTab: null,
      // Iscroll实例对象
      mescroll: null,
      // mescroll实例对象
      userResult: {},
      // 用户信息
      showNoData: false // 是否展示 找不到资料 提示
    };
  },
  watch: {
    usId: function usId() {
      this.leftDirectoryId = '';
      this.mescroll.resetUpScroll();
    },
    directoryId: function directoryId() {
      this.leftDirectoryId = '';
      this.mescroll.resetUpScroll();
    }
  },
  mounted: function mounted() {
    this.userResult = this.$store.state.userInfo;
    window.addEventListener('scroll', this.handleScroll, true);
    this.scrollTab = new _iscroll.default('#rowTabScroll', {
      mouseWheel: true,
      click: false,
      preventDefault: true,
      tap: true,
      bounce: true,
      disableTouch: false,
      disablePointer: false,
      scrollY: false,
      scrollX: true
    });
    this.scrollSuspend = new _betterScroll.default('.suspend-wrap', {
      scrollY: true,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300
    });
    this.mescroll = new _mescroll.default(this.$refs.mescrollResult, {
      // 目标容器在父组件上
      down: {
        use: false
      },
      up: {
        callback: this.getResultDataList,
        htmlNodata: '',
        noMoreSize: 5,
        isBounce: false,
        empty: {
          warpId: 'resultList',
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关数据'
        },
        warpId: 'loadWarp'
      }
    });
  },
  destroyed: function destroyed() {
    this.scrollSuspend.destroy();
    this.scrollSuspend = null;
    this.scrollTab.destroy();
    this.scrollTab = null;
    this.mescroll.destroy();
    this.mescroll = null;
    window.removeEventListener('scroll', this.handleScroll, true);
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        var filterIdList = [];
        if (_this.$parent.filterList && _this.$parent.filterList.length > 0) {
          _this.$parent.filterList.forEach(function (val) {
            filterIdList.push(val.usId);
          });
        }
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: filterIdList.join('/')
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 找不到资料
     */
    submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(transObj[_code], "-").concat(_this2.usId);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], _this2.usId);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 左侧悬浮tab的 更多 与 收起 按钮逻辑
     */
    toggleSuspendBtn: function toggleSuspendBtn() {
      var _this3 = this;
      this.isSpread = !this.isSpread;
      this.$nextTick(function () {
        _this3.scrollSuspend.refresh();
      });
    },
    /** 查资料埋点 */setPoint: function setPoint(type, data, index) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        var _code = _this4.$route.params.filterCode || 'default';
        var transObj = {
          FAULT_CODE: '故障码',
          CIRCUIT_IMG: '电路图',
          HCL: '后处理',
          VEHICLE: '整车资料',
          ENGINE: '发动机',
          PUMP: '油泵油嘴',
          DATA_STREAM: '数据流',
          SEN_ACT: '传感器/执行器',
          EGINE_PLANG: '工程机械',
          PART_INFO: '部件信息',
          FAULT_DEMO: '故障案例',
          VIN: 'vin查询资料',
          ECU_CIRCUIT_IMG: 'ECU电路图',
          ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
          VEHICLE_CIRCUIT_IMG: '整车电路图',
          HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
          SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
          CSMK_CIRCUIT_IMG: '车身模块电路图',
          ABS_CIRCUIT_IMG: 'ABS电路图',
          YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
          BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
          EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
          ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
          default: ''
        };
        if (type === 'file' || type === 'page') {
          var currentTab = '';
          var filterNameList = [];
          var filterIdList = [];
          _this4.leftList.forEach(function (val) {
            if (val.isSelect == 1) {
              currentTab = val.name;
            }
          });
          if (_this4.$parent.filterList && _this4.$parent.filterList.length > 0) {
            _this4.$parent.filterList.forEach(function (val) {
              filterNameList.push(val.usName);
              filterIdList.push(val.usId);
            });
          }
          // 记录埋点
          _this4._Util.collectPageView3({
            postUrl: _this4._Api.POST_COLLECT,
            url: window.location.href,
            moduleType: '产品库',
            operate_page: transObj[_code],
            optionType: type === 'page' ? '翻页' : '查看资料',
            param1: data,
            param2: filterIdList.join('/'),
            param3: filterNameList.join('/'),
            param4: currentTab,
            param5: type === 'file' ? index + 1 : null
          }, _this4, function () {
            resolve();
          });
        } else {
          // 记录埋点
          _this4._Util.collectPageView3({
            postUrl: _this4._Api.POST_COLLECT,
            url: window.location.href,
            moduleType: '产品库',
            operate_page: transObj[_code],
            optionType: '筛选',
            param1: data,
            param2: '资料页面TAB切换'
          }, _this4, function () {
            resolve();
          });
        }
      });
    },
    /**
     * 点击左侧tab按钮
     * @param {number} usId 左侧tab的usID
     * @param {string} tabName 悬浮tab的内容
     */
    clickColTab: function clickColTab(usId, tabName) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _this5.leftDirectoryId = usId;
              _this5.dataList = [];
              _this5.mescroll.resetUpScroll();
              _context2.next = 1;
              return _this5.setPoint('tab', tabName);
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 查询数据列表
     */
    getResultDataList: function getResultDataList(page) {
      var _this6 = this;
      this.showNoData = false;
      this._Util.post(this._Api.POST_DATA_LIB_GET_RESULT_DATA_LIST, {
        pageSize: page.size,
        pageNum: page.num,
        directoryId: this.directoryId,
        leftDirectoryId: this.leftDirectoryId,
        usId: this.usId
      }, function (data) {
        if (page.num === 1) {
          _this6.leftList = data.leftList;
          _this6.dataList = [];
          _this6.$nextTick(function () {
            if (_this6.leftDirectoryId === '') {
              _this6.isShowMore = _this6.$refs.suspendWrap.clientHeight < _this6.$refs.suspendContent.clientHeight;
            }
          });
        }
        if (data.dataList.length < page.size) {
          _this6.showNoData = true;
        }
        _this6.dataList = _this6.dataList.concat(data.dataList);
        _this6.$nextTick(function () {
          setTimeout(function () {
            _this6.mescroll.endSuccess(data.dataList.length);
          }, 0);
        });
        _this6.setPoint('page', page.num);
      }, function () {
        _this6.mescroll.endErr();
      }, this, true);
    },
    /** 处理页面滚动距离 判断是否需要定住tab栏 */handleScroll: function handleScroll() {
      var _tabBox = document.getElementById('rowTabScrollBox');
      var scrollTop = _tabBox.getBoundingClientRect().top;
      this.pinTab = scrollTop < 0;
    },
    /** 点击文件或者文件夹 */clickFile: function clickFile(item, index) {
      var _this7 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var that;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              console.log(item);
              _context3.next = 1;
              return _this7.setPoint('file', item.dateId, index);
            case 1:
              that = _this7;
              index = index > 10 ? index % 10 : index;
              index = index + 1;
              if (item.type == 1) {
                // 该项为文件夹
                _this7.$router.push({
                  name: 'inforindex1',
                  query: {
                    fileNo: item.fileNo,
                    folderName: item.dataName,
                    folderid: that.$route.query.folderid
                  }
                });
              } else if (item.type == 2) {
                // 该项为文件
                that.checkStatus(item);
              }
            case 2:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /** 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作 */checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userResult.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
            (0, _mintUi.MessageBox)({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      // that.post();
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userResult.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /** 打开文件 */openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ResultWrap needsclick"},[_c('div',{staticStyle:{"height":"1px","background-color":"transparent"},attrs:{"id":"rowTabScrollBox"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.topList.length>0),expression:"topList.length>0"}],staticStyle:{"min-height":"2.67rem"}},[_c('div',{class:{'row-tabs':true,'row-tabs-fake': _vm.pinTab},attrs:{"id":"rowTabScroll"},on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',_vm._l((_vm.topList),function(v,i){return _c('div',{key:i,class:{'row-tab':true, 'active': _vm.currentTopTab===v}},[_vm._v(_vm._s(v))])}),0)])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.leftList.length>0),expression:"leftList.length>0"}],class:['suspend-tabs', _vm.isSpread ? 'open' : 'close', _vm.pinTab ? '' : '']},[_c('div',{ref:"suspendWrap",staticClass:"suspend-wrap",style:({maxHeight: _vm.isShowMore ? _vm.isSpread ? '16.83rem' : '11.2rem' : 'auto'})},[_c('div',{ref:"suspendContent"},_vm._l((_vm.leftList),function(v,i){return _c('div',{key:i,class:['suspend-tab', v.isSelect===1?'active':''],on:{"click":function($event){return _vm.clickColTab(v.id, v.name)}}},[_vm._v("\n          "+_vm._s(v.name)+"\n        ")])}),0)])]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"resultList"},[_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.clickFile(v, i)}}},[_c('img',{staticClass:"fileImg",attrs:{"src":v.fileImage,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.dataName))]),_vm._v(" "),_c('div',{staticClass:"type"},[_vm._v(_vm._s(v.dataType || '文件夹'))])])])}),_vm._v(" "),_c('div',{attrs:{"id":"resultList"}}),_vm._v(" "),(_vm.showNoData)?_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到资料?")]):_vm._e(),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(360);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_690f347e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(963);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2255)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-690f347e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_690f347e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_690f347e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_absFilterResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2256);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("cd4c56a8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap .Filter[data-v-690f347e],.wrap[data-v-690f347e]{background-color:#f2f2f2}.wrap .Filter .filter[data-v-690f347e]{min-height:2.75rem;line-height:1.55rem;background-color:#fff;padding-top:.6rem;padding-bottom:.6rem}.wrap .Filter .filter>div[data-v-690f347e]{margin-left:.6rem;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333}.wrap .Filter .filter>div span span[data-v-690f347e]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#377ee1;text-decoration:underline}.wrap .Filter .nextFilter[data-v-690f347e]{height:3.18rem;background-color:#fff;margin-top:1px;padding:.57rem .6rem 0}.wrap .Filter .nextFilter div[data-v-690f347e]{height:2rem;line-height:2rem;text-align:center;font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700;color:#ee4545;border-radius:.2rem;border:1px solid #ee4545}.wrap .popup .itemList[data-v-690f347e]{overflow:hidden;padding-top:.8rem}.wrap .popup .itemList .item[data-v-690f347e]{float:left;text-align:center;width:25%;min-height:5rem}.wrap .popup .itemList .item img[data-v-690f347e]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .popup .itemList .item p[data-v-690f347e]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .popup .errorCollect[data-v-690f347e]{text-align:center;padding:.4rem 0 1.2rem;text-decoration:underline;color:#377ee1}.wrap .crumbs[data-v-690f347e]{line-height:1rem;padding:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .crumbs span[data-v-690f347e]{font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;margin-right:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _PopupWin = _interopRequireDefault(__webpack_require__(827));
var _Result = _interopRequireDefault(__webpack_require__(828));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PopupWin: _PopupWin.default,
    Result: _Result.default
  },
  data: function data() {
    return {
      currentUSId: '',
      showPopup: false,
      carBrandList: [],
      filterList: []
    };
  },
  mounted: function mounted() {
    this.getABSInfo();
    this.getCarBrandList();
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 找不到资料 */submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code], "-").concat(_this2.filterList[0].usId);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], _this2.filterList[0].usId);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 面包屑导航 筛选逻辑
     * @param {number} index 面包屑导航索引
     */
    filterLogic: function filterLogic(index) {
      if (index === 0) {
        this.goBackFilter();
      } else {
        this.showPopup = true;
      }
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this3._Util.collectPageView3({
          postUrl: _this3._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: 'ABS电路图',
          optionType: '筛选',
          param1: usId
        }, _this3, function () {
          resolve();
        });
      });
    },
    /**
     * 重新设置筛选项
     * @params{detail}: 当前点击的筛选项
     */
    reset: function reset(detail) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this4.setPoint(detail.id);
            case 1:
              _this4.currentUSId = detail.id;
              _this4.filterList[1] = detail;
              _this4.showPopup = false;
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /** 回到上一次筛选 */goBackFilter: function goBackFilter() {
      if (this._Util.isApp() && api.winName === 'absFilterResult') {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    /**
     * 获取车辆品牌列表
     */
    getCarBrandList: function getCarBrandList() {
      var _this5 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.params.attributeType,
        directoryId: this.$route.params.directoryId
      }, function (data) {
        _this5.carBrandList = data.unitsSelectorList;
      }, function () {}, this);
    },
    /** 获取当前已选的ABS品牌信息 */getABSInfo: function getABSInfo() {
      var _this6 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_DIRECTORY_LIST, {
        parentId: this.$route.params.parentId
      }, function (data) {
        var obj = data.find(function (val) {
          return val.id == _this6.$route.params.directoryId;
        });
        _this6.filterList.push(obj);
      }, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"Filter"},[_c('div',{staticClass:"filter"},[_c('div',_vm._l((_vm.filterList),function(v,i){return _c('span',{key:i,on:{"click":function($event){return _vm.filterLogic(i)}}},[(i!==0)?_c('b',[_vm._v("/ ")]):_vm._e(),_c('span',[_vm._v(_vm._s(v.name))]),_vm._v(" ")])}),0)]),_vm._v(" "),(_vm.filterList.length<2)?_c('div',{staticClass:"nextFilter",on:{"click":function($event){_vm.showPopup=true}}},[_c('div',[_vm._v("点击继续选择车型系列")])]):_vm._e(),_vm._v(" "),_c('Popup-win',{staticClass:"popup",attrs:{"title":'请选择想要查询的车辆品牌'},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"itemList"},_vm._l((_vm.carBrandList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.reset(v);}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.name))])])}),0),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])],1),_vm._v(" "),_c('div',{staticClass:"crumbs"},[_vm._l((_vm.filterList),function(v,i){return _c('span',{key:i},[_vm._v(_vm._s(v.name))])}),_vm._v("\n    ABS电路图\n  ")],2),_vm._v(" "),_c('Result',{attrs:{"us-id":_vm.currentUSId,"directory-id":_vm.$route.params.directoryId}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(363);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0bb8829e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(964);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2263)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0bb8829e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0bb8829e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0bb8829e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBrandFilterIndex_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2264);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6f1cb2c6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-0bb8829e]{min-height:100%;height:auto!important;background-color:#f2f2f2}.wrap .classifyWrap[data-v-0bb8829e]{padding-top:.6rem;padding-bottom:.6rem}.wrap .classifyWrap .classifyTitle[data-v-0bb8829e]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-0bb8829e]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-0bb8829e]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-0bb8829e]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-0bb8829e]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-0bb8829e]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .errorCollect[data-v-0bb8829e]{text-align:center;padding:1.2rem 0;text-decoration:underline;color:#377ee1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      classifyList: []
    };
  },
  mounted: function mounted() {
    this.getCarBrandUSList();
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 找不到资料 */submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code]);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], '');
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this3._Util.collectPageView3({
          postUrl: _this3._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: 'ABS电路图',
          optionType: '筛选',
          param1: usId
        }, _this3, function () {
          resolve();
        });
      });
    },
    /**
     * 进入 品牌详情页
     * @params{UsDetail}: 当前点击的usDetail
     */
    goBrandDetail: function goBrandDetail(UsDetail) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var filterCode, parentId, usId, attributeType;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this4.setPoint(UsDetail.id);
            case 1:
              filterCode = _this4.$route.params.filterCode;
              parentId = _this4.$route.params.parentId;
              usId = UsDetail.id;
              attributeType = _this4.$route.params.attributeType;
              if (_this4._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'carBrandFilterResult',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/circuitDiagram/carBrandFilterResult/").concat(filterCode, "/").concat(usId, "/").concat(parentId, "/").concat(attributeType)
                  }
                });
              } else {
                _this4.$router.push({
                  name: 'carBrandFilterResult',
                  params: {
                    parentId: parentId,
                    filterCode: filterCode,
                    usId: usId,
                    attributeType: attributeType
                  }
                });
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 获取车辆品牌us列表
     */
    getCarBrandUSList: function getCarBrandUSList() {
      var _this5 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.params.attributeType,
        directoryId: this.$route.params.parentId
      }, function (data) {
        _this5.classifyList = data.unitsSelectorList;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyTitle"},[_vm._v("请选择车辆品牌")]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.goBrandDetail(v)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(364);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5d0bdc85_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(965);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2265)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5d0bdc85"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5d0bdc85_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5d0bdc85_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carBrandFilterResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2266);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4b617993", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap .Filter[data-v-5d0bdc85],.wrap[data-v-5d0bdc85]{background-color:#f2f2f2}.wrap .Filter .filter[data-v-5d0bdc85]{min-height:2.75rem;line-height:1.55rem;background-color:#fff;padding-top:.6rem;padding-bottom:.6rem}.wrap .Filter .filter>div[data-v-5d0bdc85]{margin-left:.6rem;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333}.wrap .Filter .filter>div span span[data-v-5d0bdc85]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#377ee1;text-decoration:underline}.wrap .Filter .nextFilter[data-v-5d0bdc85]{height:3.18rem;background-color:#fff;margin-top:1px;padding:.57rem .6rem 0}.wrap .Filter .nextFilter div[data-v-5d0bdc85]{height:2rem;line-height:2rem;text-align:center;font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700;color:#ee4545;border-radius:.2rem;border:1px solid #ee4545}.wrap .popup .itemList[data-v-5d0bdc85]{overflow:hidden;padding-top:.8rem}.wrap .popup .itemList .item[data-v-5d0bdc85]{float:left;text-align:center;width:25%;min-height:5rem}.wrap .popup .itemList .item img[data-v-5d0bdc85]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .popup .itemList .item p[data-v-5d0bdc85]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .popup .errorCollect[data-v-5d0bdc85]{text-align:center;padding:.4rem 0 1.2rem;text-decoration:underline;color:#377ee1}.wrap .crumbs[data-v-5d0bdc85]{line-height:1rem;padding:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .crumbs span[data-v-5d0bdc85]{font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;margin-right:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _PopupWin = _interopRequireDefault(__webpack_require__(827));
var _Result = _interopRequireDefault(__webpack_require__(828));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PopupWin: _PopupWin.default,
    Result: _Result.default
  },
  data: function data() {
    return {
      currentUSId: '',
      directoryId: '',
      showPopup: false,
      ABSList: [],
      filterList: []
    };
  },
  mounted: function mounted() {
    this.getABSList();
    this.getCarBrandInfo();
    this.directoryId = this.$route.params.parentId;
    this.currentUSId = this.$route.params.usId;
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 找不到资料 */submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code], "-").concat(_this2.filterList[0].id);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], _this2.filterList[0].id);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 面包屑导航 筛选逻辑
     * @param {number} index 面包屑导航索引
     */
    filterLogic: function filterLogic(index) {
      if (index === 0) {
        this.goBackFilter();
      } else {
        this.showPopup = true;
      }
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this3._Util.collectPageView3({
          postUrl: _this3._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: 'ABS电路图',
          optionType: '筛选',
          param1: usId
        }, _this3, function () {
          resolve();
        });
      });
    },
    /**
     * 重新设置筛选项
     * @params{detail}: 当前点击的筛选项
     */
    reset: function reset(detail) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this4.setPoint(detail.usId);
            case 1:
              _this4.directoryId = detail.id;
              _this4.filterList[1] = detail;
              _this4.showPopup = false;
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /** 回到上一次筛选 */goBackFilter: function goBackFilter() {
      if (this._Util.isApp() && api.winName === 'carBrandFilterResult') {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    /**
     * 获取车辆品牌列表
     */
    getCarBrandInfo: function getCarBrandInfo() {
      var _this5 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.params.attributeType,
        directoryId: this.$route.params.parentId
      }, function (data) {
        // this.ABSList = data.unitsSelectorList;
        var obj = data.unitsSelectorList.find(function (val) {
          return val.id == _this5.$route.params.usId;
        });
        _this5.filterList.push(obj);
      }, function () {}, this);
    },
    /** 获取当前已选的ABS品牌信息 */getABSList: function getABSList() {
      var _this6 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_DIRECTORY_LIST, {
        parentId: this.$route.params.parentId
      }, function (data) {
        _this6.ABSList = data;
      }, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"Filter"},[_c('div',{staticClass:"filter"},[_c('div',_vm._l((_vm.filterList),function(v,i){return _c('span',{key:i,on:{"click":function($event){return _vm.filterLogic(i)}}},[(i!==0)?_c('b',[_vm._v("/ ")]):_vm._e(),_c('span',[_vm._v(_vm._s(v.name))]),_vm._v(" ")])}),0)]),_vm._v(" "),(_vm.filterList.length<2)?_c('div',{staticClass:"nextFilter",on:{"click":function($event){_vm.showPopup=true}}},[_c('div',[_vm._v("点击继续选择ABS品牌")])]):_vm._e(),_vm._v(" "),_c('Popup-win',{staticClass:"popup",attrs:{"title":'请选择ABS品牌'},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"itemList"},_vm._l((_vm.ABSList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.reset(v);}}},[_c('img',{attrs:{"src":v.imageUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.name))])])}),0),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])],1),_vm._v(" "),_c('div',{staticClass:"crumbs"},[_vm._l((_vm.filterList),function(v,i){return _c('span',{key:i},[_vm._v(_vm._s(v.name))])}),_vm._v("\n    ABS电路图\n  ")],2),_vm._v(" "),_c('Result',{attrs:{"us-id":_vm.currentUSId,"directory-id":_vm.directoryId}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(365);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_744403f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(966);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2267)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-744403f4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_744403f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_744403f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2268);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6bb64163", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-744403f4]{height:auto!important;min-height:100%;background-color:#fff}.wrap .top[data-v-744403f4]{background-color:#fff;padding-bottom:.8rem}.wrap .top p[data-v-744403f4]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem;padding-top:.8rem;padding-left:.6rem;margin-bottom:.6rem}.wrap .classifyWrap[data-v-744403f4]{padding-bottom:.6rem;background-color:#fff}.wrap .classifyWrap .row-tabs-scroll[data-v-744403f4]{border-top:.6rem solid #f2f2f2;background-color:#fff;padding:.68rem 0;box-shadow:0 .05rem .1rem 0 rgba(190,212,242,.3);overflow:hidden;white-space:nowrap;position:relative;z-index:2}.wrap .classifyWrap .row-tabs-scroll>div[data-v-744403f4]{display:inline-block;padding-left:.7rem;padding-right:.7rem}.wrap .classifyWrap .row-tabs-scroll>div .row-tab[data-v-744403f4]{line-height:1.4rem;text-align:center;border-radius:.7rem;border:1px solid #666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;background-color:#fff;padding:0 .8rem;display:inline-block;box-sizing:border-box;margin-right:.8rem}.wrap .classifyWrap .row-tabs-scroll>div .row-tab[data-v-744403f4]:last-child{margin-right:0}.wrap .classifyWrap .row-tabs-scroll>div .row-tab.active[data-v-744403f4]{color:#fff;background-color:#377ee1;border-color:#377ee1}.wrap .classifyWrap .classifyTitle[data-v-744403f4]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;padding-top:.6rem}.wrap .classifyWrap .classifyList[data-v-744403f4]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-744403f4]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-744403f4]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-744403f4]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-744403f4]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .classifyWrap .errorCollect[data-v-744403f4]{text-align:center;padding:.6rem 0 1.2rem;text-decoration:underline;color:#377ee1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Search = _interopRequireDefault(__webpack_require__(135));
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default
  },
  data: function data() {
    return {
      topScroll: null,
      // BScroll实例对象
      currentTopTab: '',
      classifyList: [],
      subUSList: []
    };
  },
  mounted: function mounted() {
    // this.getDirectoryList();
    this.getFirstUSList();
    this.topScroll = new _betterScroll.default('.row-tabs-scroll', {
      scrollX: true,
      scrollY: false,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300
    });
  },
  destroyed: function destroyed() {
    this.topScroll.destroy();
    this.topScroll = null;
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 找不到资料 */submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code], "-").concat(_this2.currentTopTab.id);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], _this2.currentTopTab.id);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 切换 顶部tab
     * @param {object} item 顶部tab us对象
     */
    changeTab: function changeTab(item) {
      this.currentTopTab = item;
      this.getSublevelUSList();
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this3._Util.collectPageView3({
          postUrl: _this3._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '传感器针脚定义',
          optionType: '筛选',
          param1: usId
        }, _this3, function () {
          resolve();
        });
      });
    },
    /**
     * 进入筛选结果页面
     * @params{name}: 分类名称
     * @params{USId}: 分类所对应的USId
     */
    goResultPage: function goResultPage(name, USId) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var directoryId, filterCode;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this4.setPoint(USId);
            case 1:
              directoryId = _this4.$route.params.directoryId;
              filterCode = _this4.$route.params.filterCode;
              if (_this4._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'senActFilterResult',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/circuitDiagram/senActFilterResult/").concat(filterCode, "/").concat(directoryId, "/").concat(USId, "?name=").concat(name, "&folderid=").concat(_this4.$route.query.folderid)
                  }
                });
              } else {
                _this4.$router.push({
                  name: 'senActFilterResult',
                  params: {
                    directoryId: directoryId,
                    filterCode: filterCode,
                    usId: USId
                  },
                  query: {
                    name: name,
                    folderid: _this4.$route.query.folderid
                  }
                });
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /** 获取车身模块分类列表 */getDirectoryList: function getDirectoryList() {
      var _this5 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_DIRECTORY_LIST, {
        parentId: this.$route.params.directoryId
      }, function (data) {
        _this5.classifyList = data;
      }, function () {}, this);
    },
    /**
     * 获取第一层us列表
     */
    getFirstUSList: function getFirstUSList() {
      var _this6 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.params.attributeType,
        directoryId: this.$route.params.directoryId
      }, function (data) {
        _this6.classifyList = data.unitsSelectorList;
        _this6.currentTopTab = data.unitsSelectorList[0];
        document.title = data.directoryName;
        _this6.getSublevelUSList();
      }, function () {}, this);
    },
    /**
     * 获取对应US下的子集
     */
    getSublevelUSList: function getSublevelUSList() {
      var _this7 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_SUBLEVEL_UNITS_SELECTOR, {
        pid: this.currentTopTab.id,
        directoryId: this.$route.params.directoryId
      }, function (data) {
        _this7.subUSList = data.unitsSelectorList;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[_c('div',{staticClass:"top"},[_c('p',[_vm._v("搜传感器/执行器针脚定义")]),_vm._v(" "),_c('Search',{attrs:{"type":"电路图","placeholder":'输入关键词搜传感器/执行器电路图'}})],1),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"row-tabs-scroll"},[_c('div',_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,class:{'row-tab':true, 'active': _vm.currentTopTab.id===v.id},on:{"click":function($event){return _vm.changeTab(v)}}},[_vm._v(_vm._s(v.name))])}),0)]),_vm._v(" "),_c('div',{staticClass:"classifyTitle"},[_vm._v("根据车身模块，查找传感器/执行器针脚定义")]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.subUSList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.goResultPage(v.name, v.id)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(366);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_06650388_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(968);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2269)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-06650388"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_06650388_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_06650388_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2270);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("00691cd5", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-06650388]{height:auto!important;background-color:#f2f2f2;min-height:100%}.wrap .top[data-v-06650388]{background-color:#fff;text-align:center;padding:.6rem 0}.wrap .top input[data-v-06650388]{display:inline-block;height:2.2rem;line-height:2.2rem;width:17.55rem;background:#f1f1f1;border-radius:.1rem;border:1px solid #eaeaea;text-indent:.6rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .top input[data-v-06650388]::-webkit-input-placeholder{color:#666;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400}.wrap .top input[data-v-06650388]:-ms-input-placeholder{color:#666;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400}.wrap .top input[data-v-06650388]::placeholder{color:#666;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400}.wrap .title[data-v-06650388]{padding:.6rem 0 .6rem .6rem;font-size:.7rem;font-family:PingFangSC-Regular;color:#333;line-height:1rem}.wrap .title span[data-v-06650388]{font-family:PingFangSC-Semibold;font-weight:700;color:#333;font-size:.7rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _ResultWithKeyword = _interopRequireDefault(__webpack_require__(2271));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    ResultWithKeyword: _ResultWithKeyword.default
  },
  data: function data() {
    return {
      inputValue: ''
    };
  },
  mounted: function mounted() {},
  methods: {}
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(367);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a50f586a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(967);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2272)
  __webpack_require__(2274)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a50f586a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a50f586a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a50f586a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ResultWithKeyword_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2273);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("546b4e99", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ResultWrap[data-v-a50f586a]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow-y:auto}.ResultWrap .row-tabs[data-v-a50f586a]{background-color:#fff;padding:.68rem 0;box-shadow:0 .05rem .1rem 0 rgba(190,212,242,.3);overflow:hidden;white-space:nowrap;position:relative;z-index:2}.ResultWrap .row-tabs>div[data-v-a50f586a]{display:inline-block;padding-left:.7rem;padding-right:.7rem}.ResultWrap .row-tabs>div .row-tab[data-v-a50f586a]{line-height:1.4rem;text-align:center;border-radius:.7rem;border:1px solid #666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;background-color:#fff;padding:0 .8rem;display:inline-block;box-sizing:border-box;margin-right:.8rem}.ResultWrap .row-tabs>div .row-tab[data-v-a50f586a]:last-child{margin-right:0}.ResultWrap .row-tabs>div .row-tab.active[data-v-a50f586a]{color:#fff;background-color:#377ee1;border-color:#377ee1}.ResultWrap .row-tabs-fake[data-v-a50f586a]{position:fixed;top:0;left:0;width:100%}.ResultWrap .main[data-v-a50f586a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.ResultWrap .main .col-tabs[data-v-a50f586a]{background-color:#f2f2f2;width:4.5rem;height:100vh}.ResultWrap .main .col-tabs .col-tab[data-v-a50f586a]{padding:.85rem .25rem;line-height:1.05rem;text-align:center;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;border-bottom:1px solid #e6e6e6}.ResultWrap .main .col-tabs .col-tab.active[data-v-a50f586a]{background-color:#fff;color:#377ee1;font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:600;position:relative}.ResultWrap .main .col-tabs .col-tab.active[data-v-a50f586a]:after{content:\"\";position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.2rem;height:.8rem;background-color:#377ee1}.ResultWrap .main .col-tabs-fake-1[data-v-a50f586a]{position:fixed;top:2.76rem;left:0}.ResultWrap .main .col-tabs-fake-2[data-v-a50f586a]{position:fixed;top:0;left:0}.ResultWrap .main .resultList[data-v-a50f586a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-left:.6rem;min-height:100vh}.ResultWrap .main .resultList .item[data-v-a50f586a]{position:relative;border-bottom:1px solid #eee;padding:.6rem .5rem .6rem 0}.ResultWrap .main .resultList .item .fileImg[data-v-a50f586a]{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.4rem;height:2rem;background-color:#f0f8ff}.ResultWrap .main .resultList .item .rightContent[data-v-a50f586a]{margin-left:3.3rem}.ResultWrap .main .resultList .item .rightContent .name[data-v-a50f586a]{font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.25rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.ResultWrap .main .resultList .item .rightContent .type[data-v-a50f586a]{margin-top:.2rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#999;line-height:1rem}.ResultWrap .main .resultList .errorCollect[data-v-a50f586a]{text-align:center;padding:1.2rem 0;text-decoration:underline;color:#377ee1}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2275);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("334bf05c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ResultWrap .mescroll-empty{padding-top:5.48rem!important}.ResultWrap .mescroll-empty .empty-icon{width:2.33rem!important}.ResultWrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _iscroll = _interopRequireDefault(__webpack_require__(312));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    usId: [String, Number],
    directoryId: {
      required: true
    },
    keyword: {}
  },
  data: function data() {
    return {
      showNoData: false,
      leftDirectoryId: '',
      dataList: [],
      leftList: [],
      topList: [],
      currentTopTab: '全部',
      pinTab: false,
      scrollTab: null,
      // Iscroll实例对象
      mescroll: null // mescroll实例对象
    };
  },
  watch: {
    usId: function usId() {
      this.leftDirectoryId = '';
      this.mescroll.resetUpScroll();
    },
    directoryId: function directoryId() {
      this.leftDirectoryId = '';
      this.mescroll.resetUpScroll();
    },
    keyword: function keyword() {
      this.leftDirectoryId = '';
      this.lazyReset();
    }
  },
  mounted: function mounted() {
    window.addEventListener('scroll', this.handleScroll, true);
    this.scrollTab = new _iscroll.default('#rowTabScroll', {
      mouseWheel: true,
      click: false,
      preventDefault: true,
      tap: true,
      bounce: true,
      disableTouch: false,
      disablePointer: false,
      scrollY: false,
      scrollX: true
    });
    this.mescroll = new _mescroll.default(this.$refs.mescrollResultWithKeyword, {
      // 目标容器在父组件上
      down: {
        use: false
      },
      up: {
        callback: this.getResultDataList,
        htmlNodata: '',
        noMoreSize: 5,
        isBounce: false,
        empty: {
          warpId: 'resultList',
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关数据'
        },
        warpId: 'loadWarp'
      }
    });
  },
  destroyed: function destroyed() {
    this.scrollTab.destroy();
    this.scrollTab = null;
    this.mescroll.destroy();
    this.mescroll = null;
    window.removeEventListener('scroll', this.handleScroll, true);
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 找不到资料
     */
    submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(transObj[_code], "-").concat(_this2.usId);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], _this2.usId);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    lazyReset: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
      return _regenerator.default.wrap(function (_context2) {
        while (1) switch (_context2.prev = _context2.next) {
          case 0:
            this.mescroll.resetUpScroll();
          case 1:
          case "end":
            return _context2.stop();
        }
      }, _callee2, this);
    }))),
    /**
     * 点击左侧tab按钮
     * @params{usId}: 左侧tab的usID
     */
    clickColTab: function clickColTab(usId) {
      this.leftDirectoryId = usId;
      this.mescroll.resetUpScroll();
    },
    /**
     * 查询数据列表
     */
    getResultDataList: function getResultDataList(page) {
      var _this3 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_RESULT_DATA_LIST, {
        pageSize: page.size,
        pageNum: page.num,
        directoryId: this.directoryId,
        leftDirectoryId: this.leftDirectoryId,
        usId: this.usId,
        keyword: this.keyword
      }, function (data) {
        if (page.num === 1) {
          _this3.leftList = data.leftList;
          _this3.dataList = [];
        }
        if (data.dataList.length < page.size) {
          _this3.showNoData = true;
        }
        _this3.dataList = _this3.dataList.concat(data.dataList);
        _this3.$nextTick(function () {
          setTimeout(function () {
            _this3.mescroll.endSuccess(data.dataList.length);
          }, 0);
        });
      }, function () {
        _this3.mescroll.endErr();
      }, this, true);
    },
    /** 处理页面滚动距离 判断是否需要定住tab栏 */handleScroll: function handleScroll() {
      var _tabBox = document.getElementById('rowTabScrollBox');
      var scrollTop = _tabBox.getBoundingClientRect().top;
      this.pinTab = scrollTop < 0;
    },
    /** 查资料埋点 */setPoint: function setPoint(dataId, index) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '传感器针脚定义',
          optionType: '查看资料',
          param1: dataId,
          param5: index + 1
        }, _this4, function () {
          resolve();
        });
      });
    },
    /** 点击文件或者文件夹 */clickFile: function clickFile(item, index) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var that;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 1;
              return _this5.setPoint(item.dateId, index);
            case 1:
              that = _this5;
              index = index > 10 ? index % 10 : index;
              index = index + 1;
              if (item.type == 1) {
                // 该项为文件夹
                _this5.$router.push({
                  name: 'inforindex1',
                  query: {
                    fileNo: item.fileNo,
                    folderName: item.dataName,
                    folderid: _this5.$route.query.folderid
                  }
                });
              } else if (item.type == 2) {
                // 该项为文件
                that.checkStatus(item);
              }
            case 2:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /** 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作 */checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      // that.post();
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /** 打开文件 */openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    }
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ResultWrap needsclick"},[_c('div',{staticStyle:{"height":"1px","background-color":"transparent"},attrs:{"id":"rowTabScrollBox"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.topList.length>0),expression:"topList.length>0"}],staticStyle:{"min-height":"2.67rem"}},[_c('div',{class:{'row-tabs':true,'row-tabs-fake': _vm.pinTab},attrs:{"id":"rowTabScroll"},on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',_vm._l((_vm.topList),function(v,i){return _c('div',{key:i,class:{'row-tab':true, 'active': _vm.currentTopTab===v}},[_vm._v(_vm._s(v))])}),0)])]),_vm._v(" "),_c('div',{staticClass:"main"},[(_vm.leftList.length>0)?_c('div',{staticClass:"col-tabs"},_vm._l((_vm.leftList),function(v,i){return _c('div',{key:i,class:{'col-tab': true, 'active': v.isSelect===1},on:{"click":function($event){return _vm.clickColTab(v.id)}}},[_vm._v(_vm._s(v.name))])}),0):_vm._e(),_vm._v(" "),(_vm.pinTab&&_vm.leftList.length>0)?_c('div',{class:['col-tabs', _vm.topList.length>0?'col-tabs-fake-1':'col-tabs-fake-2']},_vm._l((_vm.leftList),function(v,i){return _c('div',{key:i,class:{'col-tab': true, 'active': v.isSelect===1},on:{"click":function($event){return _vm.clickColTab(v.id)}}},[_vm._v(_vm._s(v.name))])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"resultList"},[_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.clickFile(v,i)}}},[_c('img',{staticClass:"fileImg",attrs:{"src":v.fileImage,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name",domProps:{"innerHTML":_vm._s(v.dataName)}},[_vm._v(_vm._s(v.dataName))]),_vm._v(" "),_c('div',{staticClass:"type"},[_vm._v(_vm._s(v.dataType || '文件夹'))])])])}),_vm._v(" "),_c('div',{attrs:{"id":"resultList"}}),_vm._v(" "),(_vm.showNoData)?_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到资料?")]):_vm._e(),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescrollResultWithKeyword",staticClass:"wrap"},[_c('div',{staticClass:"top"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.inputValue),expression:"inputValue",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":("请输入关键词，搜" + (_vm.$route.query.name) + "电路图")},domProps:{"value":(_vm.inputValue)},on:{"input":function($event){if($event.target.composing){ return; }_vm.inputValue=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"title"},[_c('span',[_vm._v(_vm._s(_vm.$route.query.name))]),_vm._v(" 电路图\n  ")]),_vm._v(" "),_c('Result-with-keyword',{attrs:{"us-id":_vm.$route.params.usId,"directory-id":_vm.$route.params.directoryId,"keyword":_vm.inputValue}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(368);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_617bf97f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(969);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2276)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-617bf97f"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_617bf97f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_617bf97f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2277);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0311e76b", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-617bf97f]{height:100%;background-color:#fff}.wrap .row-tabs[data-v-617bf97f]{background-color:#fff;padding:.68rem 0;box-shadow:0 .05rem .1rem 0 rgba(190,212,242,.3);overflow:hidden;white-space:nowrap;position:relative;z-index:2}.wrap .row-tabs>div[data-v-617bf97f]{display:inline-block;padding-left:.7rem;padding-right:.7rem}.wrap .row-tabs>div .row-tab[data-v-617bf97f]{line-height:1.4rem;text-align:center;border-radius:.7rem;border:1px solid #666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;background-color:#fff;padding:0 .8rem;display:inline-block;box-sizing:border-box;margin-right:.8rem}.wrap .row-tabs>div .row-tab[data-v-617bf97f]:last-child{margin-right:0}.wrap .row-tabs>div .row-tab.active[data-v-617bf97f]{color:#fff;background-color:#377ee1;border-color:#377ee1}.wrap .classifyWrap[data-v-617bf97f]{padding-top:.6rem}.wrap .classifyWrap .classifyTitle[data-v-617bf97f]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-617bf97f]{overflow:hidden}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-617bf97f]{width:25%;min-height:5rem;float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-617bf97f]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-617bf97f]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .classifyWrap .rowItem[data-v-617bf97f]{height:2.75rem;line-height:2.75rem;width:17.95rem;background:#fff;border-radius:.2rem;margin:.2rem auto .4rem;position:relative;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;padding-left:.6rem}.wrap .classifyWrap .rowItem[data-v-617bf97f]:after{content:\"\";position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.3rem;height:.5rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-arrow.png\");background-repeat:no-repeat;background-size:100%}.wrap .classifyWrap .errorCollect[data-v-617bf97f]{text-align:center;padding:.6rem 0 1.2rem;text-decoration:underline;color:#377ee1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      topList: [{
        name: '尿素泵',
        type: 1,
        id: 6177
      }, {
        name: 'DCU',
        type: 1,
        id: 6178
      }],
      currentTopTab: '尿素泵',
      classifyList: []
    };
  },
  mounted: function mounted() {
    this.getSubUSList(this.topList[0].id);

    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '后处理',
      optionType: '打开'
    }, this);
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 找不到资料 */submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, UsId, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              UsId = _this2.topList.filter(function (v) {
                return v.name === _this2.currentTopTab;
              })[0].id;
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code], "-").concat(UsId);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], UsId);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 切换横向tab
     * @params{item}: 横向tab信息
     */
    changeTab: function changeTab(item) {
      if (item.type === 1) {
        this.currentTopTab = item.name;
        this.getSubUSList(item.id);
      } else if (item.type === 2) {
        this.goToFolder(item.id);
      }
    },
    /**
     * 获取第子集us列表
     */
    getSubUSList: function getSubUSList(id) {
      var _this3 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_SUBLEVEL_UNITS_SELECTOR, {
        pid: id,
        directoryId: this.$route.params.directoryId
      }, function (data) {
        _this3.classifyList = data.unitsSelectorList;
      }, function () {}, this);
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '后处理',
          optionType: '筛选',
          param1: usId
        }, _this4, function () {
          resolve();
        });
      });
    },
    /**
     * 点击US
     * @params{USInfo}: 当前点击的us信息
     */
    clickUS: function clickUS(USInfo) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var filterCode, directoryId, firstUSId;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.setPoint(USInfo.id);
            case 1:
              filterCode = _this5.$route.params.filterCode;
              directoryId = _this5.$route.params.directoryId;
              firstUSId = USInfo.id;
              if (_this5._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'dataLibFilterResult',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/filterResult/").concat(filterCode, "/").concat(directoryId, "/").concat(firstUSId, "?folderid=").concat(_this5.$route.query.folderid)
                  }
                });
              } else {
                _this5.$router.push({
                  name: 'filterResult',
                  params: {
                    filterCode: filterCode,
                    directoryId: directoryId,
                    firstUSId: firstUSId
                  },
                  query: {
                    folderid: _this5.$route.query.folderid
                  }
                });
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 进入 对应文件夹列表
     * @params{folderId}: 对应的文件夹列表
     */
    goToFolder: function goToFolder(folderId) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'folderView',
            url: "".concat(location.origin, "/v2/library/folderView?folderId=").concat(folderId)
          }
        });
      } else {
        this.$router.push({
          name: 'folderView',
          query: {
            folderId: folderId
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[_c('div',{staticClass:"row-tabs"},[_c('div',_vm._l((_vm.topList),function(v,i){return _c('div',{key:i,class:{'row-tab':true, 'active': _vm.currentTopTab===v.name},on:{"click":function($event){return _vm.changeTab(v)}}},[_vm._v(_vm._s(v.name))])}),0)]),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyTitle"},[_vm._v("根据后处理厂家，查后处理资料")]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.clickUS(v)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(369);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7b0d8fa5_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(970);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2278)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7b0d8fa5"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7b0d8fa5_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7b0d8fa5_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2279);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e318c1fa", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-7b0d8fa5]{height:auto!important;min-height:100%;background-color:#f2f2f2}.wrap .searchWrap[data-v-7b0d8fa5]{background:#fff;padding:.8rem 0;position:relative}.wrap .searchWrap .top[data-v-7b0d8fa5]{margin-bottom:.6rem;text-indent:.6rem}.wrap .searchWrap .top .title[data-v-7b0d8fa5]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem}.wrap .searchWrap .top .desc[data-v-7b0d8fa5]{margin-top:.1rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;line-height:1rem}.wrap .searchWrap .tips[data-v-7b0d8fa5]{position:absolute;top:1.05rem;right:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem}.wrap .classifyWrap[data-v-7b0d8fa5]{padding-top:.6rem;padding-bottom:.6rem}.wrap .classifyWrap .classifyTitle[data-v-7b0d8fa5]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-7b0d8fa5]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-7b0d8fa5]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_33[data-v-7b0d8fa5]{width:33.33%;margin-bottom:.4rem}.wrap .classifyWrap .classifyList .classifyItem_33>div[data-v-7b0d8fa5]{display:inline-block;width:5.45rem;height:5.56rem;background-color:#fff;border-radius:.2rem;border:1px solid #e6e6e6}.wrap .classifyWrap .classifyList .classifyItem_33>div img[data-v-7b0d8fa5]{width:100%;height:4rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_33>div p[data-v-7b0d8fa5]{margin-top:.2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.05rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-7b0d8fa5]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-7b0d8fa5]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-7b0d8fa5]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .errorCollect[data-v-7b0d8fa5]{text-align:center;padding:.6rem 0 1.2rem;text-decoration:underline;color:#377ee1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Search = _interopRequireDefault(__webpack_require__(135));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default
  },
  data: function data() {
    return {
      layoutType: 1,
      classifyList: [],
      classifyText: '',
      firstUSInfo: {}
    };
  },
  computed: {
    toggleSearch: function toggleSearch() {
      var isShow;
      switch (this.$route.params.filterCode) {
        case 'ECU_CIRCUIT_IMG':
          isShow = true; // ECU电路图
          break;
        case 'ECU_WGSDTXTXT':
          isShow = true; // ECU上电通讯图电路图
          break;
        case 'VEHICLE_CIRCUIT_IMG':
          isShow = true; // 整车电路图
          break;
        case 'HCL_CIRCUIT_IMG':
          isShow = false; // 后处理/尿素泵电路图
          break;
        case 'YBZJDY_CIRCUIT_IMG':
          isShow = false; // 仪表针脚定义
          break;
        case 'BXSHDY_CIRCUIT_IMG':
          isShow = false; // 保险丝盒定义
          break;
        case 'EGINE_PLANG_CIRCUIT_IMG':
          isShow = false; // 工程机械电路图
          break;
        case 'ZDJK_CIRCUIT_IMG':
          isShow = false; // 诊断接口针脚定义
          break;
        default:
          isShow = false;
      }
      return isShow;
    }
  },
  mounted: function mounted() {
    this.getFirstUSList();
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 找不到资料 */submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = location.origin + '/v2/questionnaire/index?no=558af74a&data=' + transObj[_code];
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], '');
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 获取第一层us列表
     */
    getFirstUSList: function getFirstUSList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.params.attributeType,
        directoryId: this.$route.params.directoryId
      }, function (data) {
        _this3.firstUSInfo = {
          directoryId: data.directoryId,
          directoryName: data.directoryName
        };
        _this3.classifyList = data.unitsSelectorList;
        _this3.classifyText = data.text;
        document.title = data.directoryName;
      }, function () {}, this);
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        var _code = _this4.$route.params.filterCode || 'default';
        var transObj = {
          FAULT_CODE: '故障码',
          CIRCUIT_IMG: '电路图',
          HCL: '后处理',
          VEHICLE: '整车资料',
          ENGINE: '发动机',
          PUMP: '油泵油嘴',
          DATA_STREAM: '数据流',
          SEN_ACT: '传感器/执行器',
          EGINE_PLANG: '工程机械',
          PART_INFO: '部件信息',
          FAULT_DEMO: '故障案例',
          VIN: 'vin查询资料',
          ECU_CIRCUIT_IMG: 'ECU电路图',
          ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
          VEHICLE_CIRCUIT_IMG: '整车电路图',
          HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
          SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
          CSMK_CIRCUIT_IMG: '车身模块电路图',
          ABS_CIRCUIT_IMG: 'ABS电路图',
          YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
          BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
          EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
          ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
          default: ''
        };
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: transObj[_code],
          optionType: '筛选',
          param1: usId
        }, _this4, function () {
          resolve();
        });
      });
    },
    /**
     * 点击US
     * @params{USInfo}: 当前点击的us信息
     */
    clickUS: function clickUS(USInfo) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.setPoint(USInfo.id);
            case 1:
              if (_this5._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'dataLibFilterResult',
                    url: "".concat(location.origin, "/v2/library/filterResult/").concat(_this5.$route.params.filterCode, "/").concat(_this5.$route.params.directoryId, "/").concat(USInfo.id, "?folderid=").concat(_this5.$route.query.folderid)
                  }
                });
              } else {
                _this5.$router.push({
                  name: 'filterResult',
                  params: {
                    filterCode: _this5.$route.params.filterCode,
                    directoryId: _this5.$route.params.directoryId,
                    firstUSId: USInfo.id
                  },
                  query: {
                    folderid: _this5.$route.query.folderid
                  }
                });
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[(_vm.toggleSearch)?_c('div',{staticClass:"searchWrap"},[_c('div',{staticClass:"top"},[_c('div',{staticClass:"title"},[_vm._v("搜"+_vm._s(_vm.firstUSInfo.directoryName))])]),_vm._v(" "),_c('Search',{attrs:{"type":"电路图","placeholder":'请输入关键词，搜电路图'}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyTitle"},[_vm._v(_vm._s(("请选择" + _vm.classifyText)))]),_vm._v(" "),(_vm.layoutType===1)?_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.clickUS(v)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0):_vm._e(),_vm._v(" "),(_vm.layoutType===2)?_c('div',{staticClass:"classifyList",staticStyle:{"padding-left":"0.4rem","padding-right":"0.4rem"}},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_33",on:{"click":function($event){return _vm.clickUS(v)}}},[_c('div',[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])])}),0):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(370);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_486bd340_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(971);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2280)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-486bd340"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_486bd340_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_486bd340_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_aftertreatment_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2281);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("43598506", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-486bd340]{height:100%;background-color:#f5f5f5}.wrap .title[data-v-486bd340]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1rem;padding:.4rem .6rem;position:relative;z-index:1}.wrap .main[data-v-486bd340]{border-radius:.6rem .6rem 0 0;background-color:#f5f5f5;overflow:hidden}.wrap .main .row-tabs[data-v-486bd340]{padding:.8rem 0;border-bottom:1px solid #eee;overflow:hidden;white-space:nowrap;position:relative;z-index:2;background-color:#fff}.wrap .main .row-tabs>div[data-v-486bd340]{display:inline-block;padding-left:.6rem;padding-right:.6rem}.wrap .main .row-tabs>div .row-tab[data-v-486bd340]{line-height:1.13rem;text-align:center;border-radius:1rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;background-color:#f5f5f5;padding:.3rem 1rem;display:inline-block;margin-right:.6rem}.wrap .main .row-tabs>div .row-tab[data-v-486bd340]:last-child{margin-right:0}.wrap .main .row-tabs>div .row-tab.active[data-v-486bd340]{color:#fff;font-weight:600;background-color:#177afa}.wrap .main .classifyWrap[data-v-486bd340]{padding-top:.6rem;background-color:#f5f5f5;position:relative}.wrap .main .classifyWrap .transition[data-v-486bd340]{position:absolute;top:0;left:0;width:100%;height:1.2rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.wrap .main .classifyWrap .classifyList[data-v-486bd340]{overflow:hidden;position:relative;z-index:1}.wrap .main .classifyWrap .classifyList .classifyItem[data-v-486bd340]{border-radius:.4rem;background-color:#fff;margin:0 .6rem .6rem;padding-top:.6rem;overflow:hidden}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle[data-v-486bd340]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:1.6rem;margin-bottom:.6rem;text-indent:.6rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle .lf[data-v-486bd340]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle .lr[data-v-486bd340]{height:1rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:1rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle .lr em[data-v-486bd340]{display:inline-block;width:.5rem;height:.5rem;margin:0 .6rem 0 .1rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:100%}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent[data-v-486bd340]{overflow:hidden}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item[data-v-486bd340]{width:25%;float:left;text-align:center;margin-bottom:.8rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item .iconWrap[data-v-486bd340]{width:2.4rem;height:2.4rem;border-radius:.4rem;border:1px solid #e6e6e6;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto .25rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item .iconWrap img[data-v-486bd340]{width:1.6rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item p[data-v-486bd340]{height:2rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding:0 .4rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item:nth-child(4n+1):nth-last-child(-n+4) p[data-v-486bd340],.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item:nth-child(4n+1):nth-last-child(-n+4)~.item p[data-v-486bd340]{height:auto;max-height:2rem}.wrap .main .feedback[data-v-486bd340]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0 3rem;text-align:center}.wrap .main .arrow[data-v-486bd340]{position:relative}.wrap .main .arrow[data-v-486bd340]:after{content:\"\";position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.3rem;height:.5rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-arrow.png\");background-repeat:no-repeat;background-size:100%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arrow_r.9fd5e84.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _card = _interopRequireDefault(__webpack_require__(117));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default,
    card: _card.default,
    signAd: _signAd.default
  },
  data: function data() {
    return {
      pageType: this.$route.query.pageType,
      spid: this.$route.query.spid,
      signType: 34,
      // 对应广告位
      topList: [{
        name: 'EGR系统',
        openPage: true,
        id: 20187076,
        eventName: 'click_egrsys'
      }, {
        name: 'DPF',
        openPage: true,
        id: 20187289,
        eventName: 'click_dpf'
      }],
      currentTopTab: '',
      classifyList: [],
      firstDictionaryList: []
    };
  },
  mounted: function mounted() {
    this.getModuleList();
    this.shareConfig();
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '后处理',
      optionType: '打开'
    }, this);
  },
  methods: {
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '后处理资料',
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 获取模块列表
     */
    getModuleList: function getModuleList() {
      var _this = this;
      this._Util.post(this._Api.POST_PRODUCT_HCL_MODULE_LIST, {}, function (data) {
        _this.currentTopTab = data[0].name;
        _this.topList = data.concat(_this.topList);
        _this.getFirstDictionaryList(data[0].moudle);
      }, function () {}, this);
    },
    /**
     * 切换横向tab
     * @params{item}: 横向tab信息
     */
    changeTab: function changeTab(item) {
      if (item.openPage) {
        this.goToFolder(item);
      } else {
        this.currentTopTab = item.name;
        this.getFirstDictionaryList(item.moudle);
      }
    },
    /**
     * 获取对应module下的第一层字典列表
     * @param {number} moduleId 模块id
     */
    getFirstDictionaryList: function getFirstDictionaryList(moduleId) {
      var _this2 = this;
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, {
        moudle: moduleId,
        pageType: this.pageType,
        spid: this.spid
      }, function (data) {
        _this2.firstDictionaryList = data.vehicleDictionaryList;
      }, function () {}, this);
    },
    /**
     * 进入查询资料结果页面
     * @param {number} type 1: 一级节点 2：二级节点
     * @param {object} item 当前点击的资料详情
     */
    goResult: function goResult(type, item) {
      if (type === 1 && item.sonVehicleDictionarys && item.sonVehicleDictionarys.length !== 0) return;
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle
      });
      var queryParam = {
        spid: this.spid,
        pageType: this.pageType,
        pathNo: item.pathNo,
        moudle: item.moudle
      };
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'dataLibFilterResult2.0',
            url: "".concat(location.origin, "/v2/library/singlePageResult?").concat(this._Util.objectToQueryString(queryParam))
          }
        });
      } else {
        this.$router.push({
          name: 'singlePageResult',
          query: queryParam
        });
      }
    },
    /**
     * 进入 对应文件夹列表
     * @param {object} item 对应的tab项
     */
    goToFolder: function goToFolder(item) {
      var url = "".concat(location.origin, "/v2/library/folderView?folderId=").concat(item.id);
      this._Util.sensorsCollect(item.eventName, {
        operation_page: document.title,
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'folderView',
            notGive: 1,
            url: url
          }
        });
      } else {
        this.$router.push({
          name: 'folderView',
          query: {
            folderId: item.id
          }
        });
      }
    },
    /** 后处理查询意见反馈*/toFeedback: function toFeedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.pageType, "-\u7A7A-new");
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: '找不到品牌/型号?',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _query = this.$route.query;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_query.pageType, "/").concat(_query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_query.pageType, "/").concat(_query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: '后处理',
        vehicledictionary_path: _path,
        libraryfile_amount: ''
      });
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(233);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f5f11aa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(775);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1947)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f5f11aa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f5f11aa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_signAd_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1948);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0af37828", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ad-container{height:6rem;border-radius:.4rem;overflow:hidden}.ad-container img{width:100%;height:100%;vertical-align:top;border:none;outline:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    signType: {
      default: 0,
      type: Number
    }
  },
  data: function data() {
    return {
      adInfo: {} // 广告位信息
    };
  },
  created: function created() {
    this.getBottomAd();
  },
  methods: {
    /**
     * 获取底部广告位信息
     */
    getBottomAd: function getBottomAd() {
      var _this = this;
      this._Util.post(this._Api.POST_FMS_BOTTOMAD, {
        signType: this.signType
      }, function (data) {
        _this.adInfo = data;
      }, function () {}, this);
    },
    /**
     * 打开广告位
     */
    openAd: function openAd() {
      event.preventDefault();
      this._Util.sensorsCollect('click_advert', {
        operation_page: document.title,
        advert_type_name: this.adInfo.signTypeName,
        advert_name: this.adInfo.advertName,
        jump_url: this.adInfo.advertUrl,
        $url: window.location.href,
        correlation_id: this.adInfo.advertId
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adContainer',
            url: this.adInfo.advertUrl
          }
        });
      } else {
        location.href = this.adInfo.advertUrl;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.adInfo)?_c('div',{staticClass:"ad-container",on:{"click":function($event){return _vm.openAd()}}},[_c('img',{attrs:{"src":_vm.adInfo.advertImg,"alt":"广告"}})]):_vm._e()}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(232);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_55228e8c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(774);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1943)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-55228e8c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_55228e8c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_55228e8c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Search2_0_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1944);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("08e59941", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".search-wrap[data-v-55228e8c]{font-size:0;width:100%;background-color:#fff;position:relative}.search-wrap .main[data-v-55228e8c]{padding:.6rem;position:relative;overflow:hidden}.search-wrap .main img[data-v-55228e8c]{width:1rem;height:1rem;position:absolute;top:51%;left:1rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.search-wrap .main input[data-v-55228e8c]{width:100%;height:2rem;line-height:2rem;text-indent:1.6rem;background:#f5f5f5;border-radius:.2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;outline:none;-webkit-transition:all .5s ease;transition:all .5s ease}.search-wrap .main input[data-v-55228e8c]::-webkit-input-placeholder{color:#999}.search-wrap .main input[data-v-55228e8c]:-ms-input-placeholder{color:#999}.search-wrap .main input[data-v-55228e8c]::placeholder{color:#999}.search-wrap .main div[data-v-55228e8c]{width:3.6rem;line-height:2rem;height:2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;background-color:#177afa;border-radius:.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:.6rem;right:-3.6rem;-webkit-transition:all .5s ease;transition:all .5s ease}.search-wrap .main.active input[data-v-55228e8c]{width:13.35rem}.search-wrap .main.active div[data-v-55228e8c]{right:.6rem}.search-wrap .history[data-v-55228e8c]{overflow:hidden;white-space:nowrap;padding:.6rem 0;background-color:#f5f5f5;border-radius:.6rem .6rem 0 0}.search-wrap .history>div[data-v-55228e8c]{display:inline-block;padding:0 .6rem}.search-wrap .history>div span[data-v-55228e8c]{background:#fff;border-radius:.2rem;margin-right:.5rem;padding:.2rem .4rem;font-size:.65rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:.9rem}.search-wrap .history>div span[data-v-55228e8c]:last-of-type{margin-right:0}.search-wrap .radius[data-v-55228e8c]{position:absolute;left:0;bottom:-.6rem;width:100%;height:.6rem;background-color:#fff}.search-wrap .radius div[data-v-55228e8c]{height:100%;border-radius:.6rem .6rem 0 0;background-color:#f5f5f5}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    pageType: {
      required: true,
      type: String // 搜索数据类型 用于搜索埋点记录
    },
    placeholder: {
      type: String
    }
  },
  data: function data() {
    return {
      folderid: '',
      isActive: false,
      historyList: [],
      // 搜索历史记录列表
      dictionary: _dictionary2.default,
      keyword: '' // 搜索关键字
    };
  },
  created: function created() {
    this.getHistoryList();
  },
  mounted: function mounted() {
    this.getFolderId();
    if (this._Util.isApp()) {
      // app端 当前页面变为页面最上层时，触发接口请求刷新搜索记录
      var that = this;
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          that.getHistoryList();
        });
      }, 300);
    } else {
      this.getHistoryList();
    }
  },
  methods: {
    /**
     * 根据 pageType 获取对应folderid
     */
    getFolderId: function getFolderId() {
      var _this = this;
      this._Util.post(this._Api.POST_GET_FOLDER_ID, {
        pageType: this.pageType
      }, function (data) {
        _this.folderid = data;
      }, function () {}, this, true);
    },
    /**
     * 获取搜索记录
     */
    getHistoryList: function getHistoryList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_PRODUCT_RECORD_LIST, {
        pageType: this.pageType
      }, function (data) {
        _this2.historyList = data;
      }, function () {}, this);
    },
    /**
     * 添加搜索记录
     * @param {string} keyword 搜索关键字
     * @return {object} Promise对象
     */
    addHistory: function addHistory(keyword) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.POST_ADD_SOSO_RECORD, {
          keyword: keyword,
          pageType: _this3.pageType
        }, function (data) {
          resolve(data);
        }, function (err) {
          reject(err);
        }, _this3);
      });
    },
    /**
     * 点击搜索按钮
     * @param {string} historyWord 搜索历史记录
     * @param {number} index 历史记录排序
     */
    search: function search(historyWord, index) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var that, _keyword, queryParam;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              that = _this4;
              _keyword = historyWord || that.keyword;
              if (_keyword.trim()) {
                _context.next = 1;
                break;
              }
              MessageBox.alert('请输入搜索内容');
              return _context.abrupt("return");
            case 1:
              _context.next = 2;
              return that.addHistory(_keyword);
            case 2:
              queryParam = {
                keyword: _keyword,
                folderid: that.folderid,
                isClick: false,
                title: _this4.dictionary[_this4.pageType],
                searchTypes: historyWord ? 1 : 2
              };
              that._Util.sensorsCollect('search_keywords', {
                operation_page: document.title,
                keywords: _keyword,
                jump_url: "".concat(location.origin, "/v2/business/pay/appSearchResultNew?").concat(that._Util.objectToQueryString(queryParam)),
                search_mode: historyWord === null ? '关键字输入' : '点击搜索记录',
                search_history_sort: historyWord === null ? '' : index
              });
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'appSearchResult',
                    url: "".concat(location.origin, "/v2/business/pay/appSearchResultNew?").concat(that._Util.objectToQueryString(queryParam))
                  }
                });
              } else {
                that.$router.push({
                  name: 'appSearchResultNew',
                  query: queryParam
                });
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var dictionary = {
  'FAULT_CODE': '故障码',
  'CIRCUIT_IMG': '电路图',
  'HCL': '后处理',
  'VEHICLE': '整车资料',
  'ENGINE': '发动机',
  'PUMP': '油泵油嘴',
  'DATA_STREAM': '数据流',
  'SEN_ACT': '传感器/执行器',
  'EGINE_PLANG': '工程机械',
  'PART_INFO': '部件信息',
  'FAULT_DEMO': '故障案例',
  'VIN': 'vin查询资料',
  'ECU_CIRCUIT_IMG': 'ECU电路图',
  'ECU_WGSDTXTXT': 'ECU上电通讯图电路图',
  'VEHICLE_CIRCUIT_IMG': '整车电路图',
  'HCL_CIRCUIT_IMG': '后处理/尿素泵电路图',
  'SEN_ACT_CIRCUIT_IMG': '传感器针脚定义',
  'CSMK_CIRCUIT_IMG': '车身模块电路图',
  'YBZJDY_CIRCUIT_IMG': '仪表针脚定义',
  'BXSHDY_CIRCUIT_IMG': '保险丝盒定义',
  'EGINE_PLANG_CIRCUIT_IMG': '工程机械电路图',
  'ZDJK_CIRCUIT_IMG': '诊断接口针脚定义',
  'ABS_CIRCUIT_IMG': 'ABS电路图',
  'CORPUS': '资料大全',
  'SPN_FMI': 'SPN_FMI码',
  'FAULT_DESCRIBE': '故障码描述'
};
var _default = exports.default = dictionary;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"search-wrap"},[_c('div',{class:['main', _vm.isActive ? 'active' : '']},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/course-search.png","alt":"搜索图标"}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"id":"inpu","placeholder":_vm.placeholder||("请输入关键词，搜" + (_vm.dictionary[_vm.pageType])),"type":"text"},domProps:{"value":(_vm.keyword)},on:{"focus":function($event){_vm.isActive=true},"blur":function($event){_vm.isActive=false},"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.search(null)}}},[_vm._v("搜索")])]),_vm._v(" "),(_vm.historyList && _vm.historyList.length > 0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"history",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',_vm._l((_vm.historyList),function(v,i){return _c('span',{key:i,on:{"click":function($event){return _vm.search(v, i)}}},[_vm._v(_vm._s(v))])}),0)]):_c('div',{staticClass:"radius"},[_c('div')])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(231);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3c53aa59_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_card_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(769);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1939)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3c53aa59"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3c53aa59_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_card_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3c53aa59_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_card_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1940);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("06b8c513", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".add-card[data-v-3c53aa59]{height:2.2rem;background:url(" + escape(__webpack_require__(1941)) + ") no-repeat 50%;background-size:100% 100%;position:relative}.add-card .tag[data-v-3c53aa59],.add-card[data-v-3c53aa59]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.add-card .tag[data-v-3c53aa59]{width:1.9rem;height:1rem;background:#fff;font-size:.65rem;color:#ff6a35;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-weight:700;margin:0 0 0 .6rem;border-radius:.2rem}.add-card img[data-v-3c53aa59]{width:.23rem;height:.4rem;right:.6rem;position:absolute}.add-card .card-content[data-v-3c53aa59]{white-space:nowrap;font-size:.8rem;color:#fff;width:75%;margin-left:.6rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/bg.aab9670.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _noticeBar.default.name, _noticeBar.default),
  props: {
    // eslint-disable-next-line vue/require-default-prop
    cardcontent: {
      type: Object
    }
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp(),
      getCardcontent: null,
      isProps: JSON.stringify(this.cardcontent) !== '{}'
    };
  },
  mounted: function mounted() {
    console.log(this.cardcontent);
    if (!this.isProps) {
      console.log(22222);
      this.getRemind();
    }
  },
  methods: {
    getRemind: function getRemind() {
      var _this = this;
      this._Util.post(this._Api.GET_HOME_PAGE_REMIND, {
        terminalType: this.isApp ? 1 : 2
      }, function (data) {
        _this.getCardcontent = data;
      }, function () {}, this);
    },
    goTo: function goTo() {
      var content = this.isProps ? this.cardcontent : this.getCardcontent;
      this._Util.sensorsCollect('click_advert', {
        operation_page: document.title,
        $url: window.location.href,
        advert_type_name: '全局提醒卡片',
        advert_name: content.secondName,
        // eslint-disable-next-line no-irregular-whitespace
        jump_url: content.url,
        correlation_id: content.advertId
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'openCard',
            url: content.url
          }
        });
      } else {
        window.location.href = content.url;
      }
    }
  }
};__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(1937);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1938);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("34bd4e36", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-notice-bar{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:40px;padding:0 16px;color:#ed6a0c;font-size:14px;line-height:24px;background-color:#fffbe8}.van-notice-bar__left-icon,.van-notice-bar__right-icon{min-width:24px;font-size:16px}.van-notice-bar__right-icon{text-align:right;cursor:pointer}.van-notice-bar__wrap{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;overflow:hidden}.van-notice-bar__content{position:absolute;white-space:nowrap;-webkit-transition-timing-function:linear;transition-timing-function:linear}.van-notice-bar__content.van-ellipsis{max-width:100%}.van-notice-bar--wrapable{height:auto;padding:8px 16px}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/notice-bar/index.css"],"names":[],"mappings":"AAAA,gBAAgB,kBAAkB,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,YAAY,eAAe,cAAc,eAAe,iBAAiB,wBAAwB,CAAC,uDAAuD,eAAe,cAAc,CAAC,4BAA4B,iBAAiB,cAAc,CAAC,sBAAsB,kBAAkB,oBAAoB,qBAAqB,aAAa,mBAAmB,eAAe,OAAO,yBAAyB,2BAA2B,mBAAmB,YAAY,eAAe,CAAC,yBAAyB,kBAAkB,mBAAmB,0CAA0C,iCAAiC,CAAC,sCAAsC,cAAc,CAAC,0BAA0B,YAAY,gBAAgB,CAAC,gDAAgD,WAAW,CAAC,mDAAmD,kBAAkB,mBAAmB,oBAAoB,CAAC","file":"index.css","sourcesContent":[".van-notice-bar{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:40px;padding:0 16px;color:#ed6a0c;font-size:14px;line-height:24px;background-color:#fffbe8}.van-notice-bar__left-icon,.van-notice-bar__right-icon{min-width:24px;font-size:16px}.van-notice-bar__right-icon{text-align:right;cursor:pointer}.van-notice-bar__wrap{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;overflow:hidden}.van-notice-bar__content{position:absolute;white-space:nowrap;-webkit-transition-timing-function:linear;transition-timing-function:linear}.van-notice-bar__content.van-ellipsis{max-width:100%}.van-notice-bar--wrapable{height:auto;padding:8px 16px}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _raf = __webpack_require__(165);

var _bindEvent = __webpack_require__(102);

var _icon = _interopRequireDefault(__webpack_require__(35));

var _createNamespace = (0, _utils.createNamespace)('notice-bar'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _bindEvent.BindEventMixin)(function (bind) {
    // fix cache issues with forwards and back history in safari
    // see: https://guwii.com/cache-issues-with-forwards-and-back-history-in-safari/
    bind(window, 'pageshow', this.reset);
  })],
  inject: {
    vanPopup: {
      default: null
    }
  },
  props: {
    text: String,
    mode: String,
    color: String,
    leftIcon: String,
    wrapable: Boolean,
    background: String,
    scrollable: {
      type: Boolean,
      default: null
    },
    delay: {
      type: [Number, String],
      default: 1
    },
    speed: {
      type: [Number, String],
      default: 60
    }
  },
  data: function data() {
    return {
      show: true,
      offset: 0,
      duration: 0,
      wrapWidth: 0,
      contentWidth: 0
    };
  },
  watch: {
    scrollable: 'reset',
    text: {
      handler: 'reset',
      immediate: true
    }
  },
  created: function created() {
    // https://github.com/vant-ui/vant/issues/8634
    if (this.vanPopup) {
      this.vanPopup.onReopen(this.reset);
    }
  },
  activated: function activated() {
    this.reset();
  },
  methods: {
    onClickIcon: function onClickIcon(event) {
      if (this.mode === 'closeable') {
        this.show = false;
        this.$emit('close', event);
      }
    },
    onTransitionEnd: function onTransitionEnd() {
      var _this = this;

      this.offset = this.wrapWidth;
      this.duration = 0; // wait for Vue to render offset
      // using nextTick won't work in iOS14

      (0, _raf.raf)(function () {
        // use double raf to ensure animation can start
        (0, _raf.doubleRaf)(function () {
          _this.offset = -_this.contentWidth;
          _this.duration = (_this.contentWidth + _this.wrapWidth) / _this.speed;

          _this.$emit('replay');
        });
      });
    },
    // not an exposed-api, but may used by some users
    start: function start() {
      this.reset();
    },
    // @exposed-api
    reset: function reset() {
      var _this2 = this;

      var delay = (0, _utils.isDef)(this.delay) ? this.delay * 1000 : 0;
      this.offset = 0;
      this.duration = 0;
      this.wrapWidth = 0;
      this.contentWidth = 0;
      clearTimeout(this.startTimer);
      this.startTimer = setTimeout(function () {
        var _this2$$refs = _this2.$refs,
            wrap = _this2$$refs.wrap,
            content = _this2$$refs.content;

        if (!wrap || !content || _this2.scrollable === false) {
          return;
        }

        var wrapWidth = wrap.getBoundingClientRect().width;
        var contentWidth = content.getBoundingClientRect().width;

        if (_this2.scrollable || contentWidth > wrapWidth) {
          (0, _raf.doubleRaf)(function () {
            _this2.offset = -contentWidth;
            _this2.duration = contentWidth / _this2.speed;
            _this2.wrapWidth = wrapWidth;
            _this2.contentWidth = contentWidth;
          });
        }
      }, delay);
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];
    var slots = this.slots,
        mode = this.mode,
        leftIcon = this.leftIcon,
        onClickIcon = this.onClickIcon;
    var barStyle = {
      color: this.color,
      background: this.background
    };
    var contentStyle = {
      transform: this.offset ? "translateX(" + this.offset + "px)" : '',
      transitionDuration: this.duration + 's'
    };

    function LeftIcon() {
      var slot = slots('left-icon');

      if (slot) {
        return slot;
      }

      if (leftIcon) {
        return h(_icon.default, {
          "class": bem('left-icon'),
          "attrs": {
            "name": leftIcon
          }
        });
      }
    }

    function RightIcon() {
      var slot = slots('right-icon');

      if (slot) {
        return slot;
      }

      var iconName;

      if (mode === 'closeable') {
        iconName = 'cross';
      } else if (mode === 'link') {
        iconName = 'arrow';
      }

      if (iconName) {
        return h(_icon.default, {
          "class": bem('right-icon'),
          "attrs": {
            "name": iconName
          },
          "on": {
            "click": onClickIcon
          }
        });
      }
    }

    return h("div", {
      "attrs": {
        "role": "alert"
      },
      "directives": [{
        name: "show",
        value: this.show
      }],
      "class": bem({
        wrapable: this.wrapable
      }),
      "style": barStyle,
      "on": {
        "click": function click(event) {
          _this3.$emit('click', event);
        }
      }
    }, [LeftIcon(), h("div", {
      "ref": "wrap",
      "class": bem('wrap'),
      "attrs": {
        "role": "marquee"
      }
    }, [h("div", {
      "ref": "content",
      "class": [bem('content'), {
        'van-ellipsis': this.scrollable === false && !this.wrapable
      }],
      "style": contentStyle,
      "on": {
        "transitionend": this.onTransitionEnd
      }
    }, [this.slots() || this.text])]), RightIcon()]);
  }
});

exports.default = _default;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return ((_vm.isProps && _vm.cardcontent) || (_vm.getCardcontent && !_vm.isProps) )?_c('div',{staticClass:"add-card",style:(!_vm.isProps?'margin: 0.4rem 0.6rem;':'width:100%'),on:{"click":_vm.goTo}},[(_vm.isProps && (_vm.cardcontent.secondName || _vm.cardcontent.secondName !== ''))?_c('p',{staticClass:"tag"},[_vm._v(_vm._s(_vm.cardcontent.secondName.slice(0,2)))]):_vm._e(),_vm._v(" "),(!_vm.isProps && (_vm.getCardcontent.secondName || _vm.getCardcontent.secondName !== ''))?_c('p',{staticClass:"tag"},[_vm._v(_vm._s(_vm.getCardcontent.secondName.slice(0,2)))]):_vm._e(),_vm._v(" "),(_vm.isProps)?_c('van-notice-bar',{staticClass:"card-content",staticStyle:{"padding":"0"},style:(_vm.cardcontent.secondName === '' ? 'width:90%' : ''),attrs:{"color":"#fff","background":"none","scrollable":true}},[_vm._v("\n    "+_vm._s(_vm.cardcontent.name)+"\n  ")]):_c('van-notice-bar',{staticClass:"card-content",staticStyle:{"padding":"0"},style:(_vm.getCardcontent.secondName === '' ? 'width:90%' : ''),attrs:{"color":"#fff","background":"none","scrollable":true}},[_vm._v("\n    "+_vm._s(_vm.getCardcontent.name)+"\n  ")]),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(1942)}})],1):_vm._e()}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/white-row.482db98.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[_c('card',{attrs:{"cardcontent":{}}}),_vm._v(" "),_c('Search',{attrs:{"page-type":_vm.pageType}}),_vm._v(" "),_c('div',{staticClass:"title"},[_vm._v("根据后处理类型，查后处理资料")]),_vm._v(" "),_c('div',{staticClass:"main"},[(_vm.currentTopTab)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"row-tabs"},[_c('div',_vm._l((_vm.topList),function(v,i){return _c('div',{key:i,class:{'row-tab':true, 'active': _vm.currentTopTab===v.name},on:{"click":function($event){return _vm.changeTab(v)}}},[_vm._v(_vm._s(v.name))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"transition"}),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.firstDictionaryList),function(v,i){return _c('div',{key:v.pathName + i,staticClass:"classifyItem"},[_c('div',{class:['itemTitle', v.sonVehicleDictionarys && v.sonVehicleDictionarys.length > 0 ? '' : 'arrow'],on:{"click":function($event){return _vm.goResult(1, v)}}},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(v.pathName))]),(v.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(v)}}},[_vm._v(_vm._s(v.pathName)+" 通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"itemContent"},_vm._l((v.sonVehicleDictionarys),function(v,i){return _c('div',{key:v.pathName + i,staticClass:"item",on:{"click":function($event){return _vm.goResult(2, v)}}},[_c('div',{staticClass:"iconWrap"},[_c('img',{attrs:{"src":v.pathOriginalImg,"alt":"v.pathName"},on:{"click":function($event){$event.preventDefault();}}})]),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.pathName))])])}),0)])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("找不到品牌/型号?")]),_vm._v(" "),_c('div',{staticStyle:{"margin":"0 0.6rem","padding-bottom":"1.6rem"}},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(371);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ecfc7a8a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(972);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2282)
  __webpack_require__(2284)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ecfc7a8a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ecfc7a8a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ecfc7a8a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2283);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7e188bd7", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".folderWrap[data-v-ecfc7a8a]{background-color:#fff;overflow:auto}.folderWrap .title[data-v-ecfc7a8a]{line-height:2rem;background-color:#f2f2f2;height:2rem;padding-left:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.folderWrap .resultList[data-v-ecfc7a8a]{background-color:#fff}.folderWrap .resultList .resultItem[data-v-ecfc7a8a]{position:relative;border-bottom:1px solid #eee;padding:.6rem .5rem}.folderWrap .resultList .resultItem .fileImg[data-v-ecfc7a8a]{position:absolute;left:.5rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.4rem;height:2rem;background-color:#f0f8ff}.folderWrap .resultList .resultItem .rightContent[data-v-ecfc7a8a]{margin-left:3.3rem}.folderWrap .resultList .resultItem .rightContent .name[data-v-ecfc7a8a]{font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.25rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.folderWrap .resultList .resultItem .rightContent .type[data-v-ecfc7a8a]{margin-top:.2rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:999;line-height:1rem}.folderWrap .resultList .errorCollect[data-v-ecfc7a8a]{text-align:center;padding:1.2rem 0;text-decoration:underline;color:#377ee1}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2285);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7da93f26", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".folderWrap .mescroll-empty{padding-top:5.48rem!important}.folderWrap .mescroll-empty .empty-icon{width:2.33rem!important}.folderWrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      showNoData: false,
      text: '',
      dataList: [],
      mescroll: null // mescroll实例对象
    };
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.folderWrap, {
      down: {
        use: false
      },
      up: {
        callback: this.getDataList,
        htmlNodata: '',
        noMoreSize: 5,
        isBounce: false,
        empty: {
          warpId: 'resultList',
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关数据'
        },
        warpId: 'loadWarp'
      }
    });
  },
  destroyed: function destroyed() {
    this.mescroll.destroy();
    this.mescroll = null;
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 找不到资料
     */
    submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.feedbakPoint(_this2.text, '');
            case 1:
              url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(_this2.text);
              _this2._Util.sensorsCollect('click_feedbacklink', {
                operation_page: document.title,
                feedbacklink_content: '找不到资料?',
                jump_url: url
              });
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 获取列表数据 */getDataList: function getDataList(page) {
      var _this3 = this;
      this.showNoData = false;
      this._Util.post(this._Api.POST_DATA_LIB_GET_TREE_SHARE_LIST, {
        folderid: this.$route.query.folderId,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        if (page.num === 1) {
          _this3.dataList = [];
          _this3.text = data.name;
          document.title = data.name;
        }
        if (data.dataList.length < page.size) {
          _this3.showNoData = true;
        }
        _this3.dataList = _this3.dataList.concat(data.dataList);
        _this3.$nextTick(function () {
          _this3.mescroll.endSuccess(data.dataList.length);
        });
      }, function () {
        _this3.mescroll.endErr();
      }, this, true);
    },
    /** 查资料埋点 */setPoint: function setPoint(dataId, index) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '后处理',
          optionType: '查看资料',
          param1: dataId,
          param5: index + 1
        }, _this4, function () {
          resolve();
        });
      });
    },
    /** 点击文件或者文件夹 */clickFile: function clickFile(item, index) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var that;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.setPoint(item.dateId, index);
            case 1:
              _this5._Util.sensorsCollect('click_vehicledictionary', {
                operation_page: document.title,
                vehicledictionary_id: item.dateId,
                vehicledictionary_name: item.dataName,
                vehicledictionary_sort: index,
                vehicledictionary_model: item.moduleName
              });
              that = _this5;
              if (item.type == 1) {
                // 该项为文件夹
                _this5.$router.push({
                  name: 'inforindex1',
                  query: {
                    fileNo: item.fileNo,
                    folderName: item.dataName,
                    folderid: that.$route.query.folderid
                  }
                });
              } else if (item.type == 2) {
                // 该项为文件
                that.checkStatus(item);
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /** 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作 */checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      // that.post();
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /** 打开文件 */openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"folderWrap",staticClass:"folderWrap mescroll"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.text)+"资料")]),_vm._v(" "),_c('div',{staticClass:"resultList"},[_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"resultItem",on:{"click":function($event){return _vm.clickFile(v, i)}}},[_c('img',{staticClass:"fileImg",attrs:{"src":v.fileImage,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.dataName))]),_vm._v(" "),_c('div',{staticClass:"type"},[_vm._v(_vm._s(v.dataType || '文件夹'))])])])}),_vm._v(" "),_c('div',{attrs:{"id":"resultList"}}),_vm._v(" "),(_vm.showNoData)?_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到资料?")]):_vm._e(),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(372);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_83ab2a4a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(973);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2286)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-83ab2a4a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_83ab2a4a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_83ab2a4a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_entireCarData_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2287);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("223f1a0e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-83ab2a4a]{background-color:#f2f2f2;height:auto!important;min-height:100%}.wrap .topSearch[data-v-83ab2a4a]{height:5.65rem;background-color:#fff;padding:.8rem 0}.wrap .topSearch .sTitle[data-v-83ab2a4a]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem;margin-bottom:.6rem;text-indent:2rem;position:relative}.wrap .topSearch .sTitle[data-v-83ab2a4a]:after{content:\"\";background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-search.jpg\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1rem;height:1rem}.wrap .classifyWrap[data-v-83ab2a4a]{padding-top:.6rem}.wrap .classifyWrap .classifyTitle[data-v-83ab2a4a]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-83ab2a4a]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-83ab2a4a]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-83ab2a4a]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-83ab2a4a]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-83ab2a4a]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .feedback[data-v-83ab2a4a]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0 2.35rem;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Search = _interopRequireDefault(__webpack_require__(135));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default
  },
  data: function data() {
    return {
      classifyList: []
    };
  },
  mounted: function mounted() {
    this.getFirstUSList();
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '整车资料',
      optionType: '打开'
    }, this);
  },
  methods: {
    /**
     * 获取第一层us列表
     */
    getFirstUSList: function getFirstUSList() {
      var _this = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.query.attributeType,
        directoryId: this.$route.query.directoryId
      }, function (data) {
        _this.classifyList = data.unitsSelectorList;
      }, function () {}, this);
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this2._Util.collectPageView3({
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '整车资料',
          optionType: '筛选',
          param1: usId
        }, _this2, function () {
          resolve();
        });
      });
    },
    /**
     * 点击US
     * @params{USInfo}: 当前点击的us信息
     */
    clickUS: function clickUS(USInfo) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var filterCode, directoryId, firstUSId;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this3.setPoint(USInfo.id);
            case 1:
              filterCode = _this3.$route.query.filterCode;
              directoryId = _this3.$route.query.directoryId;
              firstUSId = USInfo.id;
              if (_this3._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'dataLibFilterResult',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/filterResult/").concat(filterCode, "/").concat(directoryId, "/").concat(firstUSId)
                  }
                });
              } else {
                _this3.$router.push({
                  name: 'filterResult',
                  params: {
                    filterCode: filterCode,
                    directoryId: directoryId,
                    firstUSId: firstUSId
                  }
                });
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this4, function () {
          resolve();
        });
      });
    },
    /** 整车资料查询意见反馈 */toFeedback: function toFeedback() {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _code = _this5.$route.params.filterCode ? _this5.$route.params.filterCode : _this5.$route.query.filterCode ? _this5.$route.query.filterCode : 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code]);
              _context2.next = 1;
              return _this5.feedbakPoint(transObj[_code], '');
            case 1:
              if (_this5._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[_c('div',{staticClass:"topSearch"},[_c('div',{staticClass:"sTitle"},[_vm._v("搜整车资料")]),_vm._v(" "),_c('Search',{attrs:{"type":"整车资料","placeholder":'请输入关键词，搜整车资料'}})],1),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyTitle"},[_vm._v("根据车辆品牌，查找整车资料")]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.clickUS(v)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("找不到品牌/型号?")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(373);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4a91c9d0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(974);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2288)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4a91c9d0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4a91c9d0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4a91c9d0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineData_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2289);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7b42546c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-4a91c9d0]{background-color:#f2f2f2;height:auto!important;min-height:100%}.wrap .topSearch[data-v-4a91c9d0]{height:5.65rem;background-color:#fff;padding:.8rem 0}.wrap .topSearch .sTitle[data-v-4a91c9d0]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem;margin-bottom:.6rem;text-indent:2rem;position:relative}.wrap .topSearch .sTitle[data-v-4a91c9d0]:after{content:\"\";background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-search.jpg\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1rem;height:1rem}.wrap .classifyWrap[data-v-4a91c9d0]{padding-top:.6rem}.wrap .classifyWrap .classifyTitle[data-v-4a91c9d0]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-4a91c9d0]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-4a91c9d0]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-4a91c9d0]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-4a91c9d0]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-4a91c9d0]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .feedback[data-v-4a91c9d0]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0 2.35rem;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Search = _interopRequireDefault(__webpack_require__(135));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default
  },
  data: function data() {
    return {
      classifyList: []
    };
  },
  mounted: function mounted() {
    this.getFirstUSList();
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '发动机',
      optionType: '打开'
    }, this);
  },
  methods: {
    /**
     * 获取第一层us列表
     */
    getFirstUSList: function getFirstUSList() {
      var _this = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.query.attributeType,
        directoryId: this.$route.query.directoryId
      }, function (data) {
        _this.classifyList = data.unitsSelectorList;
      }, function () {}, this);
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this2._Util.collectPageView3({
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '发动机',
          optionType: '筛选',
          param1: usId
        }, _this2, function () {
          resolve();
        });
      });
    },
    /**
     * 点击US
     * @params{USInfo}: 当前点击的us信息
     */
    clickUS: function clickUS(USInfo) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var filterCode, directoryId, firstUSId;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this3.setPoint(USInfo.id);
            case 1:
              filterCode = _this3.$route.query.filterCode;
              directoryId = _this3.$route.query.directoryId;
              firstUSId = USInfo.id;
              if (_this3._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'dataLibFilterResult',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/filterResult/").concat(filterCode, "/").concat(directoryId, "/").concat(firstUSId)
                  }
                });
              } else {
                _this3.$router.push({
                  name: 'filterResult',
                  params: {
                    filterCode: filterCode,
                    directoryId: directoryId,
                    firstUSId: firstUSId
                  }
                });
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this4, function () {
          resolve();
        });
      });
    },
    /** 发动机查询意见反馈 */toFeedback: function toFeedback() {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var _code, transObj, url;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _code = _this5.$route.params.filterCode ? _this5.$route.params.filterCode : _this5.$route.query.filterCode ? _this5.$route.query.filterCode : 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code]);
              _context2.next = 1;
              return _this5.feedbakPoint(transObj[_code], '');
            case 1:
              if (_this5._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[_c('div',{staticClass:"topSearch"},[_c('div',{staticClass:"sTitle"},[_vm._v("搜发动机资料")]),_vm._v(" "),_c('Search',{attrs:{"type":"发动机资料","placeholder":'请输入关键词，搜发动机资料'}})],1),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyTitle"},[_vm._v("根据发动机品牌，查找资料")]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.clickUS(v)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("找不到品牌/型号?")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(374);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6aa5d54e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(975);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2290)
  __webpack_require__(2292)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6aa5d54e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6aa5d54e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6aa5d54e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2291);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("d8b6a2a4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bg[data-v-6aa5d54e]{margin-top:3.4rem;height:.6rem;background-color:#fff}.folderWrap[data-v-6aa5d54e]{background-color:#f5f5f5;height:100%;overflow:auto}.folderWrap .inputWrap[data-v-6aa5d54e]{position:fixed;z-index:2;top:0;left:0;width:100%;padding:.6rem;background-color:#fff}.folderWrap .inputWrap .inner-input[data-v-6aa5d54e]{position:relative;border-radius:.1rem;border:1px solid #eaeaea;background:#f1f1f1}.folderWrap .inputWrap img[data-v-6aa5d54e]{position:absolute;width:1rem;height:1rem;top:51%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.folderWrap .inputWrap input[data-v-6aa5d54e]{margin-left:1.8rem;width:15.65rem;line-height:2.2rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.folderWrap .inputWrap input[data-v-6aa5d54e]::-webkit-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .inputWrap input[data-v-6aa5d54e]:-ms-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .inputWrap input[data-v-6aa5d54e]::placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .title[data-v-6aa5d54e]{margin-top:-.6rem;line-height:1.13rem;padding:1rem 0 .6rem;background-color:#f5f5f5;border-radius:.6rem .6rem 0 0;padding-left:.6rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:600;color:#333}.folderWrap .resultList[data-v-6aa5d54e]{padding:0 .6rem;background-color:#f5f5f5}.folderWrap .resultList .resultItem[data-v-6aa5d54e]{position:relative;margin-bottom:.4rem;padding:.8rem .6rem;background-color:#fff;border-radius:.4rem}.folderWrap .resultList .resultItem.have-read .rightContent .name[data-v-6aa5d54e]{color:#999}.folderWrap .resultList .resultItem .fileImg[data-v-6aa5d54e]{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.4rem;height:2rem;background-color:#f0f8ff}.folderWrap .resultList .resultItem .rightContent .name[data-v-6aa5d54e]{font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.25rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.folderWrap .resultList .resultItem .rightContent .type[data-v-6aa5d54e]{margin-top:.2rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:999;line-height:1rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2293);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("9b286ca0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".folderWrap .mescroll-empty{padding-top:5.48rem!important}.folderWrap .mescroll-empty .empty-icon{width:2.33rem!important}.folderWrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}.folderWrap .feedback{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0;text-align:center;position:relative;bottom:0;left:0;width:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _throttleDebounce = __webpack_require__(21);
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      dataList: [],
      keyword: '',
      mescroll: null,
      // mescroll实例对象
      haveReadDateId: [],
      pageNum: 1
    };
  },
  watch: {
    keyword: function keyword() {
      this.lazyReset();
    }
  },
  created: function created() {
    var _this = this;
    this.$nextTick(function () {
      _this.mescroll = new _mescroll.default(_this.$refs.folderWrap, {
        down: {
          use: false
        },
        up: {
          auto: false,
          callback: _this.getDataList,
          page: {
            num: _this.pageNum,
            size: 10
          },
          htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>',
          noMoreSize: 5,
          isBounce: true,
          empty: {
            warpId: 'resultList',
            icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
            tip: '暂无相关数据'
          },
          warpId: 'loadWarp'
        }
      });
    });
  },
  mounted: function mounted() {
    this.getDataAndPosition();
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '数据流',
      optionType: '打开'
    }, this);
  },
  destroyed: function destroyed() {
    this.mescroll.destroy();
    this.mescroll = null;
  },
  methods: {
    lazyReset: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            // 记录埋点
            this._Util.collectPageView2({
              postUrl: this._Api.POST_COLLECT,
              url: window.location.href,
              moduleType: '产品库',
              operate_page: '数据流',
              optionType: '搜索',
              param1: this.keyword
            }, this);
            this.dataList = [];
            this.mescroll.resetUpScroll();
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /** 获取列表数据 */getDataList: function getDataList(page) {
      var _this2 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_TREE_SHARE_LIST, {
        // folderid: this.$route.query.folderId,
        folderid: 2832,
        keyword: this.keyword,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        if (page.num === 1) {
          _this2.dataList = [];
        }
        _this2.dataList = _this2.dataList.concat(data.dataList);
        if (_this2.dataList.length > 0 && _this2.haveReadDateId.length > 0) {
          _this2.dataList.forEach(function (item) {
            _this2.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this2.$set(item, 'haveRead', true);
              }
            });
          });
        }
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(data.dataList.length);
        });
      }, function () {
        _this2.mescroll.endErr();
      }, this, true);
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        dataList: this.dataList,
        haveReadDateId: this.haveReadDateId,
        keyword: this.keyword,
        text: this.text,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.query.folderid, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var _this3 = this;
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.query.folderid));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.query.folderid);
        this.dataList = position.dataList;
        this.haveReadDateId = position.haveReadDateId;
        this.keyword = position.keyword;
        this.text = position.text;
        this.pageNum = position.pageNum;
        this.$nextTick(function () {
          _this3.$refs.folderWrap.scrollTo(0, position.scrollTop);
        });
      } else {
        this.getDataList({
          num: 1,
          size: 10
        });
      }
    },
    /** 查资料埋点 */setPoint: function setPoint(dataId, index) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '数据流',
          optionType: '查看资料',
          param1: dataId,
          param5: index + 1
        }, _this4, function () {
          resolve();
        });
      });
    },
    /** 点击文件或者文件夹 */clickFile: function clickFile(item, index) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var that;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.setPoint(item.dateId, index);
            case 1:
              that = _this5;
              if (that.haveReadDateId.indexOf(item.dateId) === -1) {
                that.haveReadDateId.push(item.dateId);
                that.$set(item, 'haveRead', true);
              }
              that.saveDataAndPosition();
              index = index > 10 ? index % 10 : index;
              index = index + 1;
              if (item.type == 1) {
                // 该项为文件夹
                _this5.$router.push({
                  name: 'inforindex1',
                  query: {
                    fileNo: item.fileNo,
                    folderName: item.dataName,
                    folderid: that.$route.query.folderid
                  }
                });
              } else if (item.type == 2) {
                // 该项为文件
                that.checkStatus(item);
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /** 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作 */checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      // that.post();
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /** 打开文件 */openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /** 数据流查询意见反馈 */toFeedback: function toFeedback() {
      var that = this;
      var url = location.origin + '/v2/questionnaire/index?no=f3516970';
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    }
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"folderWrap",staticClass:"folderWrap needsclick"},[_c('div',{staticClass:"inputWrap"},[_c('div',{staticClass:"inner-input"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/course-search.png","alt":"搜索图标"}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":"输入关键词，搜数据流资料"},domProps:{"value":(_vm.keyword)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},_vm.lazyReset],"blur":function($event){return _vm.$forceUpdate()}}})])]),_vm._v(" "),_c('div',{staticClass:"bg"}),_vm._v(" "),_c('div',{staticClass:"title"},[_vm._v("数据流资料")]),_vm._v(" "),_c('div',{staticClass:"resultList",attrs:{"id":"resultList"}},[_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"resultItem",class:{'have-read': v.haveRead},on:{"click":function($event){return _vm.clickFile(v, i)}}},[_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name",domProps:{"innerHTML":_vm._s(v.dataName)}},[_vm._v(_vm._s(v.dataName))])])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("数据流查询意见反馈")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(375);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0405e85e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(976);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2294)
  __webpack_require__(2296)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0405e85e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0405e85e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0405e85e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2295);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("96d3f3de", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bg[data-v-0405e85e]{margin-top:3.4rem;height:.6rem;background-color:#fff}.folderWrap[data-v-0405e85e]{background-color:#f5f5f5;height:100%;overflow:auto}.folderWrap .inputWrap[data-v-0405e85e]{position:fixed;z-index:2;top:0;left:0;width:100%;padding:.6rem;background-color:#fff}.folderWrap .inputWrap .inner-input[data-v-0405e85e]{position:relative;border-radius:.1rem;border:1px solid #eaeaea;background:#f1f1f1}.folderWrap .inputWrap img[data-v-0405e85e]{position:absolute;width:1rem;height:1rem;top:51%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.folderWrap .inputWrap input[data-v-0405e85e]{margin-left:1.8rem;width:15.65rem;line-height:2.2rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.folderWrap .inputWrap input[data-v-0405e85e]::-webkit-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .inputWrap input[data-v-0405e85e]:-ms-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .inputWrap input[data-v-0405e85e]::placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .title[data-v-0405e85e]{margin-top:-.6rem;line-height:1.13rem;padding:1rem 0 .6rem;background-color:#f5f5f5;border-radius:.6rem .6rem 0 0;padding-left:.6rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:600;color:#333}.folderWrap .resultList[data-v-0405e85e]{padding:0 .6rem;background-color:#f5f5f5}.folderWrap .resultList .resultItem[data-v-0405e85e]{position:relative;margin-bottom:.4rem;padding:.8rem .6rem;background-color:#fff;border-radius:.4rem}.folderWrap .resultList .resultItem.have-read .rightContent .name[data-v-0405e85e]{color:#999}.folderWrap .resultList .resultItem .fileImg[data-v-0405e85e]{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.4rem;height:2rem;background-color:#f0f8ff}.folderWrap .resultList .resultItem .rightContent .name[data-v-0405e85e]{font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.25rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.folderWrap .resultList .resultItem .rightContent .type[data-v-0405e85e]{margin-top:.2rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:999;line-height:1rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2297);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("91a46bb8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".folderWrap .mescroll-empty{padding-top:5.48rem!important}.folderWrap .mescroll-empty .empty-icon{width:2.33rem!important}.folderWrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}.folderWrap .feedback{font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1.05rem;padding:1.2rem 0;text-align:center;position:relative;bottom:0;left:0;width:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _throttleDebounce = __webpack_require__(21);
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      text: '',
      dataList: [],
      keyword: '',
      placeholder: '',
      mescroll: null,
      // mescroll实例对象
      haveReadDateId: [],
      pageNum: 1,
      show: false
    };
  },
  watch: {
    keyword: function keyword() {
      this.lazyReset();
    }
  },
  created: function created() {
    var _this = this;
    this.$nextTick(function () {
      _this.mescroll = new _mescroll.default(_this.$refs.folderWrap, {
        down: {
          use: false
        },
        up: {
          auto: false,
          callback: _this.getDataList,
          page: {
            num: _this.pageNum,
            size: 10
          },
          htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>',
          noMoreSize: 5,
          isBounce: true,
          empty: {
            warpId: 'resultList',
            icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
            tip: '暂无相关数据'
          },
          warpId: 'loadWarp'
        }
      });
    });
  },
  mounted: function mounted() {
    if (this.$route.query.pageType === 'ZDJK_CIRCUIT_IMG') {
      document.title = '诊断接口针脚定义';
      this.placeholder = '诊断接口针脚定义';
      this.show = false;
    } else {
      document.title = '故障案例';
      this.placeholder = '故障案例';
      this.show = true;
    }
    this.getDataAndPosition();
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: document.title,
      optionType: '打开'
    }, this);
  },
  destroyed: function destroyed() {
    this.mescroll.destroy();
    this.mescroll = null;
  },
  methods: {
    lazyReset: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            // 记录埋点
            this._Util.collectPageView2({
              postUrl: this._Api.POST_COLLECT,
              url: window.location.href,
              moduleType: '产品库',
              operate_page: document.title,
              optionType: '搜索',
              param1: this.keyword
            }, this);
            this.dataList = [];
            this.mescroll.resetUpScroll();
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /** 获取列表数据 */getDataList: function getDataList(page) {
      var _this2 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_TREE_SHARE_LIST, {
        folderid: this.$route.query.folderid,
        // folderid: 2834,
        keyword: this.keyword,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        if (page.num === 1) {
          _this2.dataList = [];
          _this2.text = data.name;
        }
        _this2.dataList = _this2.dataList.concat(data.dataList);
        if (_this2.dataList.length > 0 && _this2.haveReadDateId.length > 0) {
          _this2.dataList.forEach(function (item) {
            _this2.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this2.$set(item, 'haveRead', true);
              }
            });
          });
        }
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(data.dataList.length);
        });
      }, function () {
        _this2.mescroll.endErr();
      }, this, true);
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        dataList: this.dataList,
        haveReadDateId: this.haveReadDateId,
        keyword: this.keyword,
        text: this.text,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.query.folderid, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var _this3 = this;
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.query.folderid));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.query.folderid);
        this.dataList = position.dataList;
        this.haveReadDateId = position.haveReadDateId;
        this.keyword = position.keyword;
        this.text = position.text;
        this.pageNum = position.pageNum;
        this.$nextTick(function () {
          _this3.$refs.folderWrap.scrollTo(0, position.scrollTop);
        });
      } else {
        this.getDataList({
          num: 1,
          size: 10
        });
      }
    },
    /** 查资料埋点 */setPoint: function setPoint(dataId, index) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: document.title,
          optionType: '查看资料',
          param1: dataId,
          param5: index + 1
        }, _this4, function () {
          resolve();
        });
      });
    },
    /** 点击文件或者文件夹 */clickFile: function clickFile(item, index) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var that;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.setPoint(item.dateId, index);
            case 1:
              that = _this5;
              if (that.haveReadDateId.indexOf(item.dateId) === -1) {
                that.haveReadDateId.push(item.dateId);
                that.$set(item, 'haveRead', true);
              }
              that.saveDataAndPosition();
              index = index > 10 ? index % 10 : index;
              index = index + 1;
              if (item.type == 1) {
                // 该项为文件夹
                _this5.$router.push({
                  name: 'inforindex1',
                  query: {
                    fileNo: item.fileNo,
                    folderName: item.dataName,
                    folderid: that.$route.query.folderid
                  }
                });
              } else if (item.type == 2) {
                // 该项为文件
                that.checkStatus(item);
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /** 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作 */checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      // that.post();
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /** 打开文件 */openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /** 故障案例查询意见反馈 */toFeedback: function toFeedback() {
      var that = this;
      var url = location.origin + '/v2/questionnaire/index?no=ce1c3bfd';
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    }
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"folderWrap",staticClass:"folderWrap mescroll"},[_c('div',{staticClass:"inputWrap"},[_c('div',{staticClass:"inner-input"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/course-search.png","alt":"搜索图标"}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":'输入关键词，' + _vm.placeholder},domProps:{"value":(_vm.keyword)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},_vm.lazyReset],"blur":function($event){return _vm.$forceUpdate()}}})])]),_vm._v(" "),_c('div',{staticClass:"bg"}),_vm._v(" "),_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.text)+":")]),_vm._v(" "),_c('div',{staticClass:"resultList",attrs:{"id":"resultList"}},[_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"resultItem",class:{'have-read': v.haveRead},on:{"click":function($event){return _vm.clickFile(v, i)}}},[_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name",domProps:{"innerHTML":_vm._s(v.dataName)}},[_vm._v(_vm._s(v.dataName))])])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2),_vm._v(" "),(_vm.show)?_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("故障案例查询意见反馈")]):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(376);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_41d15cfb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(977);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2298)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-41d15cfb"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_41d15cfb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_41d15cfb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorActuator_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2299);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("56d6b044", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-41d15cfb]{background-color:#fff;height:auto!important;min-height:100%}.wrap .topSearch[data-v-41d15cfb]{height:5.65rem;background-color:#fff;padding:.8rem 0}.wrap .topSearch .sTitle[data-v-41d15cfb]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem;margin-bottom:.6rem;text-indent:2rem;position:relative}.wrap .topSearch .sTitle[data-v-41d15cfb]:after{content:\"\";background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-search.jpg\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1rem;height:1rem}.wrap .classifyWrap .row-tabs-scroll[data-v-41d15cfb]{border-top:.6rem solid #f2f2f2;background-color:#fff;padding:.68rem 0;box-shadow:0 .05rem .1rem 0 rgba(190,212,242,.3);overflow:hidden;white-space:nowrap;position:relative;z-index:2}.wrap .classifyWrap .row-tabs-scroll>div[data-v-41d15cfb]{display:inline-block;padding-left:.7rem;padding-right:.7rem}.wrap .classifyWrap .row-tabs-scroll>div .row-tab[data-v-41d15cfb]{line-height:1.4rem;text-align:center;border-radius:.7rem;border:1px solid #666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;background-color:#fff;padding:0 .8rem;display:inline-block;box-sizing:border-box;margin-right:.8rem}.wrap .classifyWrap .row-tabs-scroll>div .row-tab[data-v-41d15cfb]:last-child{margin-right:0}.wrap .classifyWrap .row-tabs-scroll>div .row-tab.active[data-v-41d15cfb]{color:#fff;background-color:#377ee1;border-color:#377ee1}.wrap .classifyWrap .classifyTitle[data-v-41d15cfb]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-41d15cfb]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-41d15cfb]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-41d15cfb]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-41d15cfb]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-41d15cfb]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .feedback[data-v-41d15cfb]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0 2.35rem;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Search = _interopRequireDefault(__webpack_require__(135));
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default
  },
  data: function data() {
    return {
      topScroll: null,
      // BScroll实例对象
      currentTopTab: '',
      classifyList: [],
      subUSList: []
    };
  },
  mounted: function mounted() {
    this.getDirectoryList();
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '传感器/执行器',
      optionType: '打开'
    }, this);
    this.topScroll = new _betterScroll.default('.row-tabs-scroll', {
      scrollX: true,
      scrollY: false,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300
    });
  },
  destroyed: function destroyed() {
    this.topScroll.destroy();
    this.topScroll = null;
  },
  methods: {
    /**
     * 切换 顶部tab
     * @param {object} item 顶部tab us对象
     */
    changeTab: function changeTab(item) {
      this.currentTopTab = item;
      this.getSublevelUSList();
    },
    /**
     * 获取对应US下的子集
     */
    getSublevelUSList: function getSublevelUSList() {
      var _this = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_SUBLEVEL_UNITS_SELECTOR, {
        pid: this.currentTopTab.id,
        directoryId: this.$route.query.directoryId
      }, function (data) {
        _this.subUSList = data.unitsSelectorList;
      }, function () {}, this);
    },
    /** 获取导航层级分类列表 */getDirectoryList: function getDirectoryList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_FIRST_UNITS_SELECTOR, {
        attributeType: this.$route.query.attributeType,
        directoryId: this.$route.query.directoryId
      }, function (data) {
        _this2.classifyList = data.unitsSelectorList;
        _this2.currentTopTab = data.unitsSelectorList[0];
        _this2.getSublevelUSList();
      }, function () {}, this);
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this3._Util.collectPageView3({
          postUrl: _this3._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '传感器/执行器',
          optionType: '筛选',
          param1: usId
        }, _this3, function () {
          resolve();
        });
      });
    },
    /** 点击进入us */goDetail: function goDetail(info) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var directoryId, usId;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this4.setPoint(info.id);
            case 1:
              directoryId = _this4.$route.query.directoryId;
              usId = info.id;
              if (_this4._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'sensorActuatorResult',
                    notGive: 1,
                    url: "".concat(location.origin, "/v2/library/sensorActuatorResult/").concat(directoryId, "/").concat(usId, "?name=").concat(info.name, "&folderid=").concat(_this4.$route.query.folderid)
                  }
                });
              } else {
                _this4.$router.push({
                  name: 'sensorActuatorResult',
                  params: {
                    usId: usId,
                    directoryId: directoryId
                  },
                  query: {
                    name: info.name,
                    folderid: _this4.$route.query.folderid
                  }
                });
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this5 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this5._Util.collectPageView3({
          postUrl: _this5._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this5, function () {
          resolve();
        });
      });
    },
    /** 传感器/执行器意见反馈 */toFeedback: function toFeedback() {
      var _this6 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var url;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=\u4F20\u611F\u5668/\u6267\u884C\u5668-").concat(_this6.currentTopTab.id);
              _context2.next = 1;
              return _this6.feedbakPoint('传感器/执行器', _this6.currentTopTab.id);
            case 1:
              if (_this6._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"topSearch"},[_c('div',{staticClass:"sTitle"},[_vm._v("搜传感器/执行器")]),_vm._v(" "),_c('Search',{attrs:{"type":"传感器/执行器","placeholder":'请输入关键词，搜传感器/执行器'}})],1),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"row-tabs-scroll"},[_c('div',_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,class:{'row-tab':true, 'active': _vm.currentTopTab.id===v.id},on:{"click":function($event){return _vm.changeTab(v)}}},[_vm._v(_vm._s(v.name))])}),0)]),_vm._v(" "),_c('div',{staticClass:"classifyList"},_vm._l((_vm.subUSList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.goDetail(v)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("找不到品牌/型号?")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(377);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3aa847cf_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(978);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2300)
  __webpack_require__(2302)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3aa847cf"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3aa847cf_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3aa847cf_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorActuatorResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2301);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4818cd07", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".folderWrap[data-v-3aa847cf]{background-color:#fff;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.folderWrap .inputWrap[data-v-3aa847cf]{padding:.6rem}.folderWrap .inputWrap input[data-v-3aa847cf]{text-indent:.6rem;width:17.55rem;line-height:2.2rem;background:#f1f1f1;border-radius:.1rem;border:1px solid #eaeaea;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.folderWrap .inputWrap input[data-v-3aa847cf]::-webkit-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .inputWrap input[data-v-3aa847cf]:-ms-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .inputWrap input[data-v-3aa847cf]::placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.folderWrap .title[data-v-3aa847cf]{line-height:2rem;background-color:#f2f2f2;height:2rem;padding-left:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.folderWrap .title span[data-v-3aa847cf]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:700;color:#333}.folderWrap .row-tabs[data-v-3aa847cf]{background-color:#fff;padding:.68rem 0;box-shadow:0 .05rem .1rem 0 rgba(190,212,242,.3);overflow:hidden;white-space:nowrap;position:relative;z-index:2}.folderWrap .row-tabs>div[data-v-3aa847cf]{display:inline-block;padding-left:.7rem;padding-right:.7rem}.folderWrap .row-tabs>div .row-tab[data-v-3aa847cf]{line-height:1.4rem;text-align:center;border-radius:.7rem;border:1px solid #666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;background-color:#fff;padding:0 .8rem;display:inline-block;box-sizing:border-box;margin-right:.8rem}.folderWrap .row-tabs>div .row-tab[data-v-3aa847cf]:last-child{margin-right:0}.folderWrap .row-tabs>div .row-tab.active[data-v-3aa847cf]{color:#fff;background-color:#377ee1;border-color:#377ee1}.folderWrap .row-tabs-fake[data-v-3aa847cf]{position:fixed;top:0;left:0;width:100%}.folderWrap .resultList[data-v-3aa847cf]{background-color:#fff}.folderWrap .resultList .resultItem[data-v-3aa847cf]{margin-left:.8rem;position:relative;border-bottom:1px solid #eee;padding:.6rem .5rem .6rem 0}.folderWrap .resultList .resultItem .fileImg[data-v-3aa847cf]{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.4rem;height:2rem;background-color:#f0f8ff}.folderWrap .resultList .resultItem .rightContent[data-v-3aa847cf]{margin-left:3.3rem}.folderWrap .resultList .resultItem .rightContent .name[data-v-3aa847cf]{font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.25rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.folderWrap .resultList .resultItem .rightContent .type[data-v-3aa847cf]{margin-top:.2rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:999;line-height:1rem}.folderWrap .resultList .errorCollect[data-v-3aa847cf]{text-align:center;padding:1.2rem 0;text-decoration:underline;color:#377ee1}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2303);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2d7cce93", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".folderWrap .mescroll-empty{padding-top:5.48rem!important}.folderWrap .mescroll-empty .empty-icon{width:2.33rem!important}.folderWrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _throttleDebounce = __webpack_require__(21);
var _mintUi = __webpack_require__(7);
var _iscroll = _interopRequireDefault(__webpack_require__(312));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      showNoData: false,
      // 是否展示 找不到资料 提示
      currentId: '',
      topList: [],
      pinTab: false,
      scrollTab: null,
      // Iscroll实例对象
      dataList: [],
      keyword: '',
      mescroll: null,
      // mescroll实例对象
      userResult: {} // 用户信息
    };
  },
  mounted: function mounted() {
    this.userResult = this.$store.state.userInfo;
    this.mescroll = new _mescroll.default(this.$refs.folderWrap, {
      down: {
        use: false
      },
      up: {
        callback: this.getDataList,
        htmlNodata: '',
        noMoreSize: 5,
        isBounce: true,
        empty: {
          warpId: 'resultList',
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关数据'
        },
        warpId: 'loadWarp'
      }
    });
    window.addEventListener('scroll', this.handleScroll, true);
    this.scrollTab = new _iscroll.default('#rowTabScroll', {
      mouseWheel: true,
      click: false,
      preventDefault: true,
      tap: true,
      bounce: true,
      disableTouch: false,
      disablePointer: false,
      scrollY: false,
      scrollX: true
    });
  },
  destroyed: function destroyed() {
    this.mescroll.destroy();
    this.mescroll = null;
    this.scrollTab.destroy();
    this.scrollTab = null;
    window.removeEventListener('scroll', this.handleScroll, true);
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 找不到资料
     */
    submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(_this2.$route.query.name, "-").concat(_this2.$route.params.usId);
              _context.next = 1;
              return _this2.feedbakPoint(_this2.$route.query.name, _this2.$route.params.usId);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 点击顶部tab
     * @params{type}: 顶部tab的type
     * @params{id}: 顶部tab的id
     */
    clickTab: function clickTab(type, id) {
      this.currentId = type == 1 ? '' : id;
      this.dataList = [];
      this.mescroll.resetUpScroll();
    },
    /** 处理页面滚动距离 判断是否需要定住tab栏 */handleScroll: function handleScroll() {
      var _tabBox = document.getElementById('rowTabScrollBox');
      var scrollTop = _tabBox.getBoundingClientRect().top;
      this.pinTab = scrollTop < 0;
    },
    lazyReset: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
      return _regenerator.default.wrap(function (_context2) {
        while (1) switch (_context2.prev = _context2.next) {
          case 0:
            this.dataList = [];
            this.mescroll.resetUpScroll();
          case 1:
          case "end":
            return _context2.stop();
        }
      }, _callee2, this);
    }))),
    /** 获取列表数据 */getDataList: function getDataList(page) {
      var _this3 = this;
      this._Util.post(this._Api.POST_DATA_LIB_GET_RESULT_DATA_LIST, {
        sharePropertyId: this.currentId,
        directoryId: this.$route.params.directoryId,
        usId: this.$route.params.usId,
        keyword: this.keyword,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        if (page.num === 1) {
          _this3.dataList = [];
          _this3.topList = data.leftList;
        }
        if (data.dataList.length < page.size) {
          _this3.showNoData = true;
        }
        _this3.dataList = _this3.dataList.concat(data.dataList);
        _this3.$nextTick(function () {
          _this3.mescroll.endSuccess(data.dataList.length);
          setTimeout(function () {
            _this3.scrollTab.refresh();
          }, 0);
        });
      }, function () {
        _this3.mescroll.endErr();
      }, this, true);
    },
    /** 查资料埋点 */setPoint: function setPoint(dataId, index) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '传感器/执行器',
          optionType: '查看资料',
          param1: dataId,
          param5: index + 1
        }, _this4, function () {
          resolve();
        });
      });
    },
    /** 点击文件或者文件夹 */clickFile: function clickFile(item, index) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var that;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 1;
              return _this5.setPoint(item.dateId, index);
            case 1:
              that = _this5;
              index = index > 10 ? index % 10 : index;
              index = index + 1;
              if (item.type == 1) {
                // 该项为文件夹
                _this5.$router.push({
                  name: 'inforindex1',
                  query: {
                    fileNo: item.fileNo,
                    folderName: item.dataName,
                    folderid: that.$route.query.folderid
                  }
                });
              } else if (item.type == 2) {
                // 该项为文件
                that.checkStatus(item);
              }
            case 2:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /** 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作 */checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userResult.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
            (0, _mintUi.MessageBox)({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      // that.post();
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userResult.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /** 打开文件 */openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    }
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"folderWrap",staticClass:"folderWrap needsclick"},[_c('div',{staticClass:"inputWrap"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":"请输入关键词，搜传感器/执行器资料"},domProps:{"value":(_vm.keyword)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},_vm.lazyReset],"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"title"},[_c('span',[_vm._v(_vm._s(_vm.$route.query.name))]),_vm._v(" 资料")]),_vm._v(" "),_c('div',{staticStyle:{"height":"1px","background-color":"transparent"},attrs:{"id":"rowTabScrollBox"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.topList.length>0),expression:"topList.length>0"}],staticStyle:{"min-height":"2.67rem"}},[_c('div',{class:{'row-tabs':true,'row-tabs-fake': _vm.pinTab},attrs:{"id":"rowTabScroll"},on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',_vm._l((_vm.topList),function(v,i){return _c('div',{key:i,class:{'row-tab':true, 'active': v.isSelect==1},on:{"click":function($event){return _vm.clickTab(v.type, v.id)}}},[_vm._v(_vm._s(v.name))])}),0)])]),_vm._v(" "),_c('div',{staticClass:"resultList"},[_vm._l((_vm.dataList),function(v,i){return _c('div',{key:i,staticClass:"resultItem",on:{"click":function($event){return _vm.clickFile(v, i)}}},[_c('img',{staticClass:"fileImg",attrs:{"src":v.fileImage,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name",domProps:{"innerHTML":_vm._s(v.dataName)}},[_vm._v(_vm._s(v.dataName))]),_vm._v(" "),_c('div',{staticClass:"type"},[_vm._v(_vm._s(v.dataType || '文件夹'))])])])}),_vm._v(" "),_c('div',{attrs:{"id":"resultList"}}),_vm._v(" "),(_vm.showNoData)?_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到资料?")]):_vm._e(),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(378);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0499f976_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(979);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2304)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0499f976"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0499f976_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0499f976_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineerMachinery_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2305);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c4568ebc", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-0499f976]{height:100%;background-color:#f5f5f5}.wrap .title[data-v-0499f976]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.1rem;padding:.4rem .6rem}.wrap .main[data-v-0499f976]{border-radius:.6rem .6rem 0 0;background-color:#f5f5f5;overflow:hidden}.wrap .main .classifyWrap[data-v-0499f976]{background-color:#f5f5f5;position:relative}.wrap .main .classifyWrap .classifyList[data-v-0499f976]{overflow:hidden;position:relative;z-index:1}.wrap .main .classifyWrap .classifyList .classifyItem[data-v-0499f976]{border-radius:.4rem;background-color:#fff;margin:0 .6rem .6rem;padding:.8rem 0;overflow:hidden}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle[data-v-0499f976]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:1.6rem;padding:0 .6rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle img[data-v-0499f976]{width:1.6rem;height:1.6rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle .lf[data-v-0499f976]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle .lr[data-v-0499f976]{height:1rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:1rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemTitle .lr em[data-v-0499f976]{display:inline-block;width:.5rem;height:.5rem;margin:0 0 0 .1rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:100%}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent[data-v-0499f976]{margin-top:.6rem;overflow:hidden}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item[data-v-0499f976]{width:25%;float:left;text-align:center}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item .iconWrap[data-v-0499f976]{width:2.4rem;height:2.4rem;border-radius:.4rem;border:1px solid #e6e6e6;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto .25rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item .iconWrap img[data-v-0499f976]{width:1.6rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item p[data-v-0499f976]{height:2rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding:0 .4rem}.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item:nth-child(4n+1):nth-last-child(-n+4) p[data-v-0499f976],.wrap .main .classifyWrap .classifyList .classifyItem .itemContent .item:nth-child(4n+1):nth-last-child(-n+4)~.item p[data-v-0499f976]{height:auto;max-height:2rem}.wrap .main .feedback[data-v-0499f976]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0 3rem;text-align:center}.wrap .main .arrow[data-v-0499f976]{position:relative}.wrap .main .arrow[data-v-0499f976]:after{content:\"\";position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.3rem;height:.5rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-arrow.png\");background-repeat:no-repeat;background-size:100%}.outSide[data-v-0499f976]{width:100%;height:3.1rem;border-bottom:1px solid #eee}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _header = _interopRequireDefault(__webpack_require__(93));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _Search.default,
    signAd: _signAd.default,
    headerFixed: _header.default
  },
  data: function data() {
    return {
      isCard: true,
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      pageType: this.$route.query.pageType,
      spid: this.$route.query.spid,
      signType: 35,
      // 对应广告位
      classifyList: [],
      firstDictionaryList: [],
      cardContent: null
    };
  },
  mounted: function mounted() {
    this.getFirstDictionaryList();
    this.shareConfig();
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '工程机械',
      optionType: '打开'
    }, this);
  },
  methods: {
    /**
     * 获取子组件卡片内容
     */
    getcardContent: function getcardContent(res) {
      this.cardContent = res;
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '工程机械资料',
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 获取对应module下的第一层字典列表
     */
    getFirstDictionaryList: function getFirstDictionaryList() {
      var _this = this;
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, {
        pageType: this.pageType,
        spid: this.spid
      }, function (data) {
        _this.firstDictionaryList = data.vehicleDictionaryList;
      }, function () {}, this);
    },
    /**
     * 进入查询资料结果页面
     * @param {number} type 1: 一级节点 2：二级节点
     * @param {object} item 当前点击的资料详情
     */
    goResult: function goResult(type, item) {
      if (type === 1 && item.sonVehicleDictionarys && item.sonVehicleDictionarys.length !== 0) return;
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue,
        vehicledictionary_model: item.moudle
      });
      var queryParam = {
        spid: this.spid,
        pageType: this.pageType,
        pathNo: item.pathNo,
        moudle: item.moudle
      };
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'dataLibFilterResult2.0',
            url: "".concat(location.origin, "/v2/library/singlePageResult?").concat(this._Util.objectToQueryString(queryParam))
          }
        });
      } else {
        this.$router.push({
          name: 'singlePageResult',
          query: queryParam
        });
      }
    },
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this2._Util.collectPageView3({
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: usId
        }, _this2, function () {
          resolve();
        });
      });
    },
    /** 后处理查询意见反馈*/toFeedback: function toFeedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.pageType, "-\u7A7A-new");
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: '找不到品牌/型号?',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _query = this.$route.query;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_query.pageType, "/").concat(_query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_query.pageType, "/").concat(_query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: '工程机械',
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_header_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(235);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_header_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_header_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_header_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_header_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b0fb105a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_header_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(777);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1950)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b0fb105a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_header_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b0fb105a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_header_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b0fb105a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_header_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1951);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4396f459", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".card[data-v-b0fb105a]{padding:.4rem .6rem;background:#fff;left:0;top:0;width:100%;z-index:998}.fixed-black[data-v-b0fb105a]{width:100%;background:rgba(0,0,0,.45);position:fixed;height:100%;top:0;left:0;z-index:997}.fixed-header[data-v-b0fb105a]{top:0;z-index:998;width:100%;border-bottom:1px solid #eee}.fixed-header .fixed-modal[data-v-b0fb105a]{position:fixed;top:2.6rem;width:100%;left:0;padding:.6rem .6rem 1rem;background:#f1f4f7}.fixed-header .fixed-modal .modal-card[data-v-b0fb105a]{margin-top:.5rem}.fixed-header .fixed-modal .modal-classify[data-v-b0fb105a]{margin-top:.5rem;border-radius:.4rem;background:#fff;padding-bottom:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.fixed-header .fixed-modal .modal-classify .classify-item[data-v-b0fb105a]{float:left;margin:1rem 0 0;font-size:.8rem;color:#1c1c1c;width:25%;text-align:center}.fixed-header .fixed-modal .modal-classify .classify-item img[data-v-b0fb105a]{width:2rem;height:2rem;margin-bottom:.15rem}.fixed-header .fixed-modal .modal-classify .classify-item p[data-v-b0fb105a]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.8rem}.fixed-header .fixed-modal .fixed-modal-user[data-v-b0fb105a]{padding:.65rem .6rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background:#fff;border-radius:.4rem}.fixed-header .fixed-modal .fixed-modal-user .fixed-modal-user-left[data-v-b0fb105a],.fixed-header .fixed-modal .fixed-modal-user[data-v-b0fb105a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.fixed-header .fixed-modal .fixed-modal-user .fixed-modal-user-left[data-v-b0fb105a]{position:relative}.fixed-header .fixed-modal .fixed-modal-user .fixed-modal-user-left .modal-user[data-v-b0fb105a]{width:2rem;height:2rem;margin-right:.4rem;border-radius:50%}.fixed-header .fixed-modal .fixed-modal-user .fixed-modal-user-left .modal-members[data-v-b0fb105a]{width:.65rem;height:.65rem;position:absolute;bottom:0;left:1.5rem}.fixed-header .fixed-modal .fixed-modal-user .fixed-modal-user-left .fixed-modal-user-name b[data-v-b0fb105a]{font-size:.8rem;color:#333}.fixed-header .fixed-modal .fixed-modal-user .fixed-modal-user-left .fixed-modal-user-name p[data-v-b0fb105a]{color:#666;font-size:.6rem}.fixed-header .fixed-modal .fixed-modal-user .modal-right-row[data-v-b0fb105a]{width:.23rem;height:.4rem}.fixed-header .fixed-header-tit[data-v-b0fb105a]{border-bottom:1px solid #eee;width:100%;top:0;background:#fff;height:2.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.fixed-header .fixed-header-tit .fixed-right[data-v-b0fb105a],.fixed-header .fixed-header-tit .fixed-right div[data-v-b0fb105a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.fixed-header .fixed-header-tit .fixed-right div[data-v-b0fb105a]{width:2.1rem;height:2.6rem}.fixed-header .fixed-header-tit .fixed-right .b[data-v-b0fb105a]{font-size:.8rem;color:#177afa;padding-right:.6rem;height:.7rem;border-right:1px solid rgba(43,43,43,.14);line-height:.7rem}.fixed-header .fixed-header-tit .fixed-right img[data-v-b0fb105a]{width:1rem;height:1rem}.fixed-header .fixed-header-tit .fixed-left[data-v-b0fb105a]{margin-left:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.fixed-header .fixed-header-tit .fixed-left .fixed-logo[data-v-b0fb105a]{width:5rem;height:1.6rem}.fixed-header .fixed-header-tit .fixed-left .fixed-search[data-v-b0fb105a]{background:0;width:5.1rem;height:1.6rem;background:#f6f6f6;border-radius:.8rem;border:.03rem solid #dfdfdf;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-left:.5rem}.fixed-header .fixed-header-tit .fixed-left .fixed-search img[data-v-b0fb105a]{width:1rem;margin-left:.43rem;height:1rem}.fixed-header .fixed-header-tit .fixed-left .fixed-search input[data-v-b0fb105a]{margin-left:.2rem;width:3rem;height:1.6rem;font-size:14px}.fixed-header .fixed-header-tit .fixed-left .fixed-search input[data-v-b0fb105a]::-webkit-input-placeholder{color:#999}.fixed-header .fixed-header-tit .fixed-left .fixed-search input[data-v-b0fb105a]:-ms-input-placeholder{color:#999}.fixed-header .fixed-header-tit .fixed-left .fixed-search input[data-v-b0fb105a]::placeholder{color:#999}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
var _card = _interopRequireDefault(__webpack_require__(117));
var _vant = __webpack_require__(12);
var _Advertisement = _interopRequireDefault(__webpack_require__(1952));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    card: _card.default,
    Advertisement: _Advertisement.default
  }, _noticeBar.default.name, _noticeBar.default),
  props: {
    // eslint-disable-next-line vue/require-default-prop
    iscard: {
      type: Boolean
    },
    ishome: {
      type: Boolean
    }
  },
  data: function data() {
    return {
      ModalHelper: null,
      isApp: this._Util.isApp(),
      classify: [1, 2, 3, 4, 5, 6, 7, 8],
      topModal: false,
      // 顶部modal
      // userInfo: null, // 用户信息
      infoClassify: {},
      cardContent: null
    };
  },
  computed: {
    userInfo: function userInfo() {
      return this.$store.state.userInfo;
    }
  },
  mounted: function mounted() {
    this.getClassify();
    this.getRemind();
  },
  methods: {
    // getUserInfo() {
    //   this._Util.post(
    //     this._Api.POST_MEMBER_GET_USER_INFO,
    //     {},
    //     data => {
    //       this.userInfo = data
    //       localStorage.setItem('userInfo', JSON.stringify(this.userInfo))
    //     },
    //     () => { },
    //     this
    //   )
    // },
    /**
      * 会员中心跳转
    */
    goUser: function goUser() {
      // if (window.location.href === location.origin + '/v2/member/center') return
      window.location.href = location.origin + '/v2/member/center';
      this._Util.sensorsCollect('element_click', {
        $title: document.title,
        $url: window.location.href,
        $element_target_url: location.origin + '/v2/member/center',
        $element_name: '微信端顶部菜单-个人中心',
        $element_content: '',
        $element_class_name: '',
        $element_type: ''
        // eslint-disable-next-line no-irregular-whitespace
      });
    },
    /**
      * 故障跳转
    */
    goUrl: function goUrl(item, index) {
      location.href = item.url;
      this._Util.sensorsCollect('click_quickenter', {
        operation_page: document.title,
        quickenter_id: item.classifyId,
        quickenter_name: item.name,
        quickenter_sort: index + 1,
        // eslint-disable-next-line no-irregular-whitespace
        jump_url: item.url,
        quickenter_type: '微信顶部引导'
      });
    },
    /**
      * 获取卡片内容
    */
    getRemind: function getRemind() {
      var _this = this;
      this._Util.post(this._Api.GET_HOME_PAGE_REMIND, {
        terminalType: this.isApp ? 1 : 2
      }, function (data) {
        _this.cardContent = data;
        _this.$emit('getcardContent', _this.cardContent);
      }, function () {}, this);
    },
    /**
      * 获取分类内容
    */
    getClassify: function getClassify() {
      var _this2 = this;
      console.log(this.isApp);
      this._Util.post(this._Api.GET_WXTOP_GIIDEQUICK_CLASSIFYLIST, {
        terminalType: this.isApp ? 1 : 2
      }, function (data) {
        _this2.infoClassify = data;
      }, function () {}, this);
    },
    // 埋点
    maiPointFun: function maiPointFun(url, name) {
      this._Util.sensorsCollect('element_click', {
        $title: document.title,
        $url: window.location.href,
        $element_target_url: url,
        $element_name: name,
        $element_content: '',
        $element_class_name: '',
        $element_type: ''
        // eslint-disable-next-line no-irregular-whitespace
      });
    },
    /**
      * 显示顶部modal
    */
    showDailogFun: function showDailogFun() {
      this.maiPointFun('', ' 微信端顶部菜单展开');
      if (this.topModal === true) return;
      this.topModal = true;
      document.querySelector('html').style.position = 'fixed';
      document.querySelector('html').style.height = '100%';
      document.querySelector('html').style.width = '100%';
      // this.$parent.mescroll this.$parent.mescroll.lockDownScroll(true)
      this.$emit('homeModal', 'open');
    },
    /**
      * 关闭顶部modal
    */
    closeModal: function closeModal() {
      // this.maiPointFun('')
      this.topModal = false;
      document.querySelector('html').style.position = 'relative';
      document.querySelector('html').style.height = '100%';
      document.querySelector('html').style.width = '100%';
      this.$emit('homeModal', 'close');
    },
    /** 资料大全 */goCorpus: function goCorpus() {
      this.maiPointFun(location.origin + '/v2/corpus', ' 微信端顶部搜索');
      location.href = location.origin + '/v2/corpus';
    },
    /** 下载app */download: function download() {
      this.maiPointFun('https://android.myapp.com/myapp/detail.htm?apkName=com.y1990218899.nvb&ADTAG=mobile', ' 微信端顶部下载引导');
      window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.y1990218899.nvb&ADTAG=mobile';
    },
    /** 首页 */goIndex: function goIndex() {
      this.maiPointFun(location.origin + '/v2/fms', '微信端顶部logo');
      if (window.location.href === location.origin + '/v2/fms') return;
      location.href = location.origin + '/v2/fms';
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(236);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ecb24420_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(776);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1953)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ecb24420"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ecb24420_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ecb24420_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Advertisement_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1954);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("633c2220", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".add-card[data-v-ecb24420]{width:100%;height:2.2rem;background:#fff;background-size:100% 100%;position:relative;border-radius:.4rem}.add-card .tag[data-v-ecb24420],.add-card[data-v-ecb24420]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.add-card .tag[data-v-ecb24420]{width:1.9rem;height:1rem;background:#e5f1ff;font-size:.65rem;color:#177afa;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-weight:700;margin:0 0 0 .6rem;border-radius:.2rem}.add-card img[data-v-ecb24420]{width:.23rem;height:.4rem;right:.6rem;position:absolute}.add-card .card-content[data-v-ecb24420]{margin-left:.6rem;display:inline-block;white-space:nowrap;width:70%;overflow:hidden;text-overflow:ellipsis;color:#333}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    // eslint-disable-next-line vue/require-default-prop
    content: {
      type: Object
    }
  },
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {
    goTo: function goTo() {
      window.location.href = this.content.advertUrl;
      var content = this.content;
      this._Util.sensorsCollect('click_advert', {
        operation_page: document.title,
        $url: window.location.href,
        advert_type_name: '微信顶部引导',
        advert_name: content.advertName,
        // eslint-disable-next-line no-irregular-whitespace
        jump_url: content.advertUrl,
        correlation_id: content.advertId
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"add-card",on:{"click":_vm.goTo}},[(_vm.content.advertName)?_c('p',{staticClass:"tag"},[_vm._v(_vm._s(_vm.content.advertName.substring(0, 2)))]):_vm._e(),_vm._v(" "),_c('p',{staticClass:"card-content",style:(_vm.content.advertName === '' ? 'width:90%' : '')},[_vm._v(_vm._s(_vm.content.advertContext))]),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(1347)}})])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/right-row.3bc822e.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"fixed-header",style:((_vm.ishome || (_vm.iscard && _vm.cardContent)) && (!_vm.topModal)? '':'position:fixed')},[(_vm.cardContent && _vm.iscard)?_c('div',{staticClass:"card",style:((_vm.iscard && _vm.cardContent) && (!_vm.topModal) ? '' : 'position:fixed')},[_c('card',{attrs:{"cardcontent":_vm.cardContent}})],1):_vm._e(),_vm._v(" "),(!_vm.iscard || (_vm.iscard && !_vm.cardContent))?_c('div',{staticClass:"fixed-header-tit",style:(_vm.ishome && (!_vm.topModal) ? '':'position:fixed')},[_c('div',{staticClass:"fixed-left"},[_c('img',{staticClass:"fixed-logo",attrs:{"src":__webpack_require__(1955)},on:{"click":_vm.goIndex}}),_vm._v(" "),_c('div',{staticClass:"fixed-search",style:(_vm.topModal ? 'width:9.95rem;':''),on:{"click":_vm.goCorpus}},[_c('img',{attrs:{"src":__webpack_require__(1956)}}),_vm._v(" "),_c('input',{attrs:{"type":"text","placeholder":"搜资料","disabled":""},on:{"click":_vm.goCorpus}})])]),_vm._v(" "),_c('div',{staticClass:"fixed-right"},[(!_vm.topModal)?_c('span',{staticClass:"b",on:{"click":_vm.download}},[_vm._v("下载APP")]):_c('b',{staticClass:"b"}),_vm._v(" "),(!_vm.topModal)?_c('div',{on:{"click":_vm.showDailogFun}},[_c('img',{attrs:{"src":__webpack_require__(1957)}})]):_c('div',{on:{"click":_vm.closeModal}},[_c('img',{attrs:{"src":__webpack_require__(1958)}})])])]):_vm._e(),_vm._v(" "),(_vm.userInfo && _vm.topModal)?_c('div',{staticClass:"fixed-modal"},[_c('div',{staticClass:"fixed-modal-user",on:{"click":_vm.goUser}},[_c('div',{staticClass:"fixed-modal-user-left"},[_c('img',{staticClass:"modal-user",attrs:{"src":_vm.userInfo.headimgurl ? _vm.userInfo.headimgurl : _vm.userInfo.headImgurl ? _vm.userInfo.headImgurl : _vm.userInfo.headImgUrl ? _vm.userInfo.headImgUrl :'http://static2.kaxiuyun.com/headimg.png'}}),_vm._v(" "),(_vm.userInfo.userStatus)?_c('img',{staticClass:"modal-members",attrs:{"src":__webpack_require__(1959)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"fixed-modal-user-name"},[(_vm.userInfo.uname)?_c('b',[_vm._v("\n              "+_vm._s(_vm.userInfo.uname.length>9?_vm.userInfo.uname.slice(0,9):_vm.userInfo.uname)+"\n            ")]):_vm._e(),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.userInfo.userStatus===2 ? '付费会员': '您还未开通会员'))])])]),_vm._v(" "),_c('img',{staticClass:"modal-right-row",attrs:{"src":__webpack_require__(1347)}})]),_vm._v(" "),(_vm.infoClassify.quickClassifyList)?_c('div',[(_vm.infoClassify.quickClassifyList.length !== 0)?_c('div',{staticClass:"modal-classify"},_vm._l((_vm.infoClassify.quickClassifyList),function(item,index){return _c('div',{key:index,staticClass:"classify-item",on:{"click":function($event){return _vm.goUrl(item, index)}}},[_c('img',{attrs:{"src":item.imgPath}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name.length > 4 ? item.name.substring(0, 4) + '...' : item.name))])])}),0):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"modal-card"},[_c('card',{attrs:{"cardcontent":_vm.cardContent}})],1),_vm._v(" "),(_vm.infoClassify.advertPostionVo)?_c('div',{staticClass:"modal-card"},[_c('Advertisement',{attrs:{"content":_vm.infoClassify.advertPostionVo}})],1):_vm._e()]):_vm._e()]),_vm._v(" "),(_vm.topModal)?_c('div',{staticClass:"fixed-black",on:{"click":function($event){_vm.topModal=false;_vm.closeModal()},"touchmove":function($event){$event.preventDefault();}}}):_vm._e()])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/logo.8e9d9c0.png";module.exports = __webpack_require__.p + "static/img/search.5df257e.png";module.exports = __webpack_require__.p + "static/img/more.c51a755.png";module.exports = __webpack_require__.p + "static/img/close.f8b7fc4.png";module.exports = __webpack_require__.p + "static/img/members.c732385.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',[(!_vm.isApp || _vm.cardContent)?_c('div',{staticClass:"outSide"},[_c('headerFixed',{attrs:{"iscard":_vm.isCard},on:{"getcardContent":_vm.getcardContent}})],1):_vm._e(),_vm._v(" "),_c('Search',{attrs:{"page-type":_vm.pageType}}),_vm._v(" "),_c('div',{staticClass:"title"},[_vm._v("请选择车辆品牌：")]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyList"},_vm._l((_vm.firstDictionaryList),function(v,i){return _c('div',{key:v.pathName + i,staticClass:"classifyItem"},[_c('div',{class:['itemTitle', v.sonVehicleDictionarys && v.sonVehicleDictionarys.length > 0 ? '' : 'arrow'],on:{"click":function($event){return _vm.goResult(1, v)}}},[_c('img',{attrs:{"src":v.pathOriginalImg,"alt":v.pathName}}),_vm._v(" "),_c('span',{staticClass:"lf"},[_vm._v(_vm._s(v.pathName))]),(v.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(v)}}},[_vm._v(_vm._s(v.pathName)+" 通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),(v.sonVehicleDictionarys && v.sonVehicleDictionarys.length > 0)?_c('div',{staticClass:"itemContent"},_vm._l((v.sonVehicleDictionarys),function(v,i){return _c('div',{key:v.pathName + i,staticClass:"item",on:{"click":function($event){return _vm.goResult(2, v)}}},[_c('div',{staticClass:"iconWrap"},[_c('img',{attrs:{"src":v.pathOriginalImg,"alt":"v.pathName"},on:{"click":function($event){$event.preventDefault();}}})]),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.pathName))])])}),0):_vm._e()])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("找不到品牌/型号?")]),_vm._v(" "),_c('div',{staticStyle:{"margin":"0 0.6rem","padding-bottom":"1.6rem"}},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(379);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c9d867f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(980);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2306)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0c9d867f"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c9d867f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c9d867f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_singlePageResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2307);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("69b29868", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-0c9d867f]{position:fixed;top:0;bottom:0;height:auto}.result-wrap[data-v-0c9d867f]{background-color:#f5f5f5}.result-wrap .head-list[data-v-0c9d867f]{height:2.73rem;background:#fff;padding:.6rem;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.55rem}.result-wrap .head-list span span[data-v-0c9d867f]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#177afa;text-decoration:underline}.result-wrap .filter-tab[data-v-0c9d867f]{height:3.33rem;background-color:#fff;border-radius:.6rem .6rem 0 0;margin-top:.6rem}.result-wrap .filter-tab .scroll-wrap[data-v-0c9d867f]{overflow:hidden;white-space:nowrap;padding:.8rem 0}.result-wrap .filter-tab .scroll-wrap>div[data-v-0c9d867f]{display:inline-block;padding-left:.6rem;padding-right:.6rem}.result-wrap .filter-tab .scroll-wrap>div .row-tab[data-v-0c9d867f]{line-height:1.13rem;text-align:center;border-radius:1rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;background-color:#f5f5f5;padding:.3rem 1rem;display:inline-block;margin-right:.6rem}.result-wrap .filter-tab .scroll-wrap>div .row-tab[data-v-0c9d867f]:last-child{margin-right:0}.result-wrap .filter-tab .scroll-wrap>div .row-tab.active[data-v-0c9d867f]{color:#fff;font-weight:600;background-color:#177afa}.result-wrap .filter-tab .filter-button[data-v-0c9d867f]{padding:.6rem}.result-wrap .filter-tab .filter-button .blue-button[data-v-0c9d867f]{border-radius:1rem;border:1px solid #177afa;background-color:#f1f7ff;color:#177afa}.result-wrap .filter-tab .filter-button .blue-button[data-v-0c9d867f],.result-wrap .filter-tab .filter-button .red-button[data-v-0c9d867f]{height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600}.result-wrap .filter-tab .filter-button .red-button[data-v-0c9d867f]{border-radius:1rem;border:1px solid #ff3f3f;background-color:#fff6f6;color:#ff3f3f}.result-wrap .list-wrap[data-v-0c9d867f]{padding-top:.6rem;position:relative}.result-wrap .list-wrap .transition[data-v-0c9d867f]{position:absolute;top:0;left:0;width:100%;height:1.2rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.result-wrap .list-wrap .itemTitle[data-v-0c9d867f]{font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1rem;margin-bottom:.4rem;text-indent:.6rem;position:relative;z-index:1}.result-wrap .list-wrap .itemTitle span[data-v-0c9d867f]{margin-right:.2rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333}.result-wrap .list-wrap .itemList[data-v-0c9d867f]{position:relative;z-index:1}.result-wrap .list-wrap .itemList .dataItem[data-v-0c9d867f]{padding:.8rem .6rem;margin:0 .6rem .6rem;background-color:#fff;border-radius:.4rem}.result-wrap .list-wrap .itemList .dataItem p[data-v-0c9d867f]:first-of-type{font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.25rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:.2rem}.result-wrap .list-wrap .itemList .dataItem p[data-v-0c9d867f]:nth-of-type(2){font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:1rem}.result-wrap .list-wrap .itemList .dataItem[data-v-0c9d867f]:last-of-type{margin-bottom:0}.result-wrap .list-wrap .itemList .dataItem.have-read p[data-v-0c9d867f]{color:#999}.result-wrap .list-wrap .itemList .emptyData[data-v-0c9d867f]{margin-top:3.5rem;text-align:center}.result-wrap .list-wrap .itemList .emptyData img[data-v-0c9d867f]{width:3rem;margin-bottom:.5rem}.result-wrap .list-wrap .itemList .emptyData p[data-v-0c9d867f]{margin-top:.2rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1.13rem;margin-bottom:2rem}.result-wrap .list-wrap .itemList .emptyData div[data-v-0c9d867f]{margin:0 2.5rem;border-radius:.3rem;border:1px solid #177afa;padding:.55rem 0;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#177afa;line-height:1.13rem}.result-wrap .list-wrap .itemList .lose-data[data-v-0c9d867f]{font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#377ee1;line-height:1.05rem;text-align:center;margin-top:1.2rem}.result-wrap .pop-wrap[data-v-0c9d867f]{background:transparent}.result-wrap .pop-wrap .popTitle[data-v-0c9d867f]{height:2.75rem;line-height:2.75rem;text-align:center;background-color:#f6f6f6;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;position:relative;border-radius:.6rem .6rem 0 0;overflow:hidden}.result-wrap .pop-wrap .popTitle span[data-v-0c9d867f]{position:absolute;height:100%;line-height:2.75rem;top:0;right:0;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;padding:0 .8rem}.result-wrap .pop-wrap .popContent[data-v-0c9d867f]{background-color:#fff;padding:.8rem 0;height:68vh;margin-bottom:3rem;overflow-y:auto;overflow-x:hidden}.result-wrap .pop-wrap .popContent .title[data-v-0c9d867f]{font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem;text-indent:.8rem;margin-bottom:.8rem}.result-wrap .pop-wrap .popContent .itemList[data-v-0c9d867f]{overflow:hidden;padding-left:1rem;padding-right:1rem}.result-wrap .pop-wrap .popContent .itemList>div[data-v-0c9d867f]{float:left;width:50%;text-align:left}.result-wrap .pop-wrap .popContent .itemList>div div[data-v-0c9d867f]{text-align:center;display:inline-block;background-color:#f5f5f5;width:7.88rem;height:2.2rem;line-height:2.2rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-bottom:.6rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;border-radius:.2rem}.result-wrap .pop-wrap .popContent .itemList>div div.active[data-v-0c9d867f]{background-color:#e7f1ff;color:#177afa}.result-wrap .pop-wrap .popContent .itemList>div[data-v-0c9d867f]:nth-child(2n){text-align:right}.result-wrap .pop-wrap .popBottom[data-v-0c9d867f]{border-top:1px solid #eee;background-color:#fff;height:3.2rem;padding-top:.35rem}.result-wrap .pop-wrap .popBottom div[data-v-0c9d867f]{margin:0 .85rem;height:2.5rem;background:#177afa;color:#fff;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;border-radius:.3rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.result-wrap .pop-wrap .foot-bar[data-v-0c9d867f],.result-wrap .pop-wrap .popBottom div[data-v-0c9d867f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.result-wrap .pop-wrap .foot-bar[data-v-0c9d867f]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.result-wrap .pop-wrap .foot-bar .reset-btn[data-v-0c9d867f]{width:6rem;line-height:1;padding:.65rem 0;border:.05rem solid #177afa;border-radius:.3rem;margin-right:.8rem;text-align:center;color:#177afa;font-size:.9rem}.result-wrap .pop-wrap .foot-bar .filter-btn[data-v-0c9d867f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}.list-bottom-box[data-v-0c9d867f]{width:100%;margin-top:3rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-0c9d867f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-0c9d867f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-0c9d867f]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-0c9d867f]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-2px}.list-bottom-box .list-top .lr[data-v-0c9d867f]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-0c9d867f]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-0c9d867f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.btn_2[data-v-0c9d867f]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-0c9d867f]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/z_icon.d44cf97.png";module.exports = __webpack_require__.p + "static/img/blueArrow.13f3b6d.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      spname: '',
      spid: this.$route.query.spid,
      pageType: this.$route.query.pageType,
      pathNo: this.$route.query.pathNo,
      folderid: '',
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getData,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: ''
      },
      isEmptydata: false,
      dataList: [],
      typeList: [],
      headList: [],
      showPopup: false,
      userInfo: {},
      showPathInfo: false,
      dataNumType: 0,
      pathInfo: {},
      haveReadDateId: [],
      dataCount: 0,
      lastNodeName: '',
      fileTypeList: [],
      // 资料类型
      fileTypeIds: [],
      vehiclePartList: [],
      // 部件模块
      partTypeIds: [],
      filterTypeName: '',
      filterNum: null,
      fileTypeIdsTemp: [],
      partTypeIdsTemp: []
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    this.getUserInfo();
  },
  mounted: function mounted() {
    this.getDataAndPosition();
  },
  methods: {
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 资料缺失
     */
    lostData: function lostData() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.pageType, "-").concat(this.pathNo, "-new");
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: '找不到资料',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    bespeakData: function bespeakData() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.pageType, "-").concat(this.pathNo, "-new");
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: '预约资料',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 重置筛选资料
     */
    resetFilter: function resetFilter() {
      this.resetFilterType();
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.filterTypeName = '';
      this.getData({
        num: 1,
        size: 10
      });
    },
    /**
     * 返回上一页
     */
    goBack: function goBack() {
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    /**
     * 获取用户状态信息
     */
    getUserInfo: function getUserInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
        _this.userInfo = data;
      }, function () {}, this, true);
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.pageType);
        this.spname = position.spname;
        this.dataList = position.dataList;
        this.typeList = position.typeList;
        this.headList = position.headList;
        this.mescrollUp.page.num = position.pageNum;
        this.haveReadDateId = position.haveReadDateId;
        this.showPathInfo = position.showPathInfo;
        this.dataNumType = position.dataNumType;
        this.dataCount = position.dataCount;
        this.vehiclePartList = position.vehiclePartList;
        this.fileTypeList = position.fileTypeList;
        this.partTypeIds = position.partTypeIds;
        this.fileTypeIds = position.fileTypeIds;
        this.filterTypeName = position.filterTypeName;
        this.filterNum = position.filterNum;
        this.$nextTick(function () {
          setTimeout(function () {
            // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
            document.getElementById('savePosition').scrollTop = position.scrollTop;
          }, 200);
        });
      } else {
        this.getData({
          size: 10,
          num: 1,
          firstFilter: true
        });
      }
    },
    /**
     * 记录滚动位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        dataList: this.dataList,
        typeList: this.typeList,
        headList: this.headList,
        pageNum: this.mescroll.optUp.page.num,
        haveReadDateId: this.haveReadDateId,
        showPathInfo: this.showPathInfo,
        dataNumType: this.dataNumType,
        dataCount: this.dataCount,
        vehiclePartList: this.vehiclePartList,
        fileTypeList: this.fileTypeList,
        filterTypeName: this.filterTypeName,
        partTypeIds: this.partTypeIds,
        fileTypeIds: this.fileTypeIds,
        filterNum: this.filterNum
      };
      sessionStorage.setItem('_dataList_' + this.pageType, JSON.stringify(position));
    },
    /**
     * 点击资料埋点
     */
    clickCollectPoint: function clickCollectPoint(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: this.getDictionarPath(),
        filter_type: '资料类型',
        filter_name: this.filterTypeName,
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /** 点击文件或者文件夹 */clickFile: function clickFile(item, index) {
      // 点击资料埋点
      this.clickCollectPoint(item, index + 1);
      if (item.type == 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.$route.query.folderid
          }
        });
      } else if (item.type == 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userInfo.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userInfo.userStatus == 0 || that.userInfo.userStatus == 1) {
            (0, _mintUi.MessageBox)({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }

      // 记录位置和数据
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 获取搜索路径
     */
    getDictionarPath: function getDictionarPath() {
      var arr = this.headList.map(function (val) {
        return val.pathName;
      });
      return arr.join('_');
    },
    /**
     * 获取资料数据
     */
    getData: function getData(page) {
      var _this2 = this;
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, {
        spid: this.spid,
        pageType: this.pageType,
        pathNo: this.pathNo,
        vehiclePart: this.partTypeIds.join(','),
        fileType: this.fileTypeIds.join(','),
        moudle: this.$route.query.moudle,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        var arr = data.shareList || [];
        document.title = data.spname;
        if (!_this2.spname) {
          _this2.spname = data.spname;
        }
        if (page.num === 1) {
          _this2.folderid = data.folderid;
          _this2.dataList = [];
          // this.typeList = [{ name: '全部', id: '' }].concat(data.dataTypeList)

          // 资料类型和部件模块
          _this2.fileTypeList = data.fileTypeList || [];
          _this2.vehiclePartList = data.vehiclePartList || [];
          _this2.headList = data.headList;
          _this2.showPathInfo = false;
          // 判断 是否无数据
          if (arr.length === 0) {
            _this2.isEmptydata = true;
          }
          _this2.dataCount = data.dataCount;
          // 埋点相关
          if (page.firstFilter) {
            // 第一次进入结果页搜索埋点
            _this2._Util.sensorsCollect('enter_libraryresultpage', {
              operation_page: data.spname,
              vehicledictionary_path: _this2.getDictionarPath(),
              libraryfile_amount: data.dataCount
            });
          } else {
            // 筛选结果页埋点
            _this2._Util.sensorsCollect('filter_libraryresult', {
              operation_page: data.spname,
              vehicledictionary_path: _this2.getDictionarPath(),
              filter_type: '资料类型',
              filter_name: _this2.filterTypeName,
              libraryfile_amount: data.dataCount
            });
          }
        }
        _this2.lastNodeName = data.pathName;
        if (data.headList.length > 1) {
          _this2.dataNumType = data.parentDataNumType;
          _this2.pathInfo = data.headList[data.headList.length - 2];
        } else {
          _this2.dataNumType = 0;
        }
        _this2.dataList = _this2.dataList.concat(arr);
        _this2.pathInfo.moudle = _this2.$route.query.moudle;
        if (_this2.dataList.length > 0 && arr.length < 10) {
          _this2.showPathInfo = true;
        }
        if (data.shareList && data.shareList.length > 0 && _this2.haveReadDateId.length > 0) {
          data.shareList.forEach(function (item) {
            _this2.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this2.$set(item, 'haveRead', true);
              }
            });
          });
        }
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(arr.length);
        });
      }, function () {
        _this2.mescroll.endErr();
      }, this, true);
    },
    openPopup: function openPopup() {
      var _this3 = this;
      this.showPopup = true;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        if (_this3.fileTypeIds.indexOf(item.id) !== -1) {
          _this3.$set(item, 'selected', true);
          _this3.fileTypeIdsTemp.push(item.id);
        } else {
          _this3.$set(item, 'selected', false);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (_this3.partTypeIds.indexOf(item.id) !== -1) {
          _this3.$set(item, 'selected', true);
          _this3.partTypeIdsTemp.push(item.id);
        } else {
          _this3.$set(item, 'selected', false);
        }
      });
      this.filterNum = this.fileTypeIds.length + this.partTypeIds.length;
    },
    /**
     * 重置
     */
    resetFilterType: function resetFilterType() {
      var _this4 = this;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        _this4.$set(item, 'selected', false);
      });
      this.vehiclePartList.forEach(function (item) {
        _this4.$set(item, 'selected', false);
      });
      this.filterNum = null;
    },
    /**
     * 筛选
     */
    confrimFilterType: function confrimFilterType() {
      var _this5 = this;
      var arr1 = [];
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.fileTypeList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.name);
          _this5.fileTypeIds.push(item.id);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.nickname);
          _this5.partTypeIds.push(item.id);
        }
      });
      // this.filterNum = arr1.length
      this.filterTypeName = arr1.join('、');
      this.showPopup = false;
      this.mescroll.resetUpScroll();
      this.getData({
        num: 1,
        size: 10
      });
    },
    /**
     * 筛选项选中
     * @param {object} item 筛选项
     * @param {Number} type 筛选类型
     */
    toggleFilter: function toggleFilter(item, type) {
      this.$set(item, 'selected', !item.selected);
      var fileArrIndex = this.fileTypeIdsTemp.indexOf(item.id);
      var partArrIndex = this.partTypeIdsTemp.indexOf(item.id);
      if (type === 1) {
        // 资料类型
        if (fileArrIndex !== -1) {
          this.fileTypeIdsTemp.splice(fileArrIndex, 1);
        } else {
          this.fileTypeIdsTemp.push(item.id);
        }
      }
      if (type === 2) {
        // 部件模块
        if (partArrIndex !== -1) {
          this.partTypeIdsTemp.splice(partArrIndex, 1);
        } else {
          this.partTypeIdsTemp.push(item.id);
        }
      }
      this.filterNum = this.fileTypeIdsTemp.length + this.partTypeIdsTemp.length;
    },
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _query = this.$route.query;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_query.pageType, "/").concat(_query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_query.pageType, "/").concat(_query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: this.spname,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"result-wrap"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"head-list"},_vm._l((_vm.headList),function(v,i){return _c('span',{key:i,on:{"click":_vm.goBack}},[(i!==0)?_c('b',[_vm._v("/ ")]):_vm._e(),_c('span',[_vm._v(_vm._s(v.pathName))]),_vm._v(" ")])}),0),_vm._v(" "),(_vm.fileTypeList.length > 1 || _vm.vehiclePartList.length > 1)?_c('div',{staticClass:"filter-tab"},[_c('div',{staticClass:"filter-button"},[(_vm.filterTypeName !== '')?_c('div',{staticClass:"blue-button",on:{"click":function($event){return _vm.openPopup()}}},[_vm._v("已选："+_vm._s(_vm.filterTypeName))]):_c('div',{staticClass:"red-button",on:{"click":function($event){return _vm.openPopup()}}},[_vm._v("点击筛选资料")])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-wrap"},[_c('div',{staticClass:"transition"}),_vm._v(" "),(!_vm.isEmptydata)?_c('div',{staticClass:"itemTitle"},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName || '全部'))]),_vm._v("资料:")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"itemList"},[_vm._l((_vm.dataList),function(v,i){return (!_vm.isEmptydata)?_c('div',{key:i,staticClass:"dataItem",class:{'have-read': v.haveRead},on:{"click":function($event){return _vm.clickFile(v, i)}}},[_c('p',[_vm._v(_vm._s(v.dataName))])]):_vm._e()}),_vm._v(" "),(_vm.isEmptydata)?_c('div',{staticClass:"emptyData"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"没有数据"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '暂时没有资料哦，重新筛选试试' : ("暂时没有 " + _vm.lastNodeName + " 资料")))]),_vm._v(" "),(_vm.filterTypeName !== '')?_c('div',{on:{"click":_vm.resetFilter}},[_vm._v("重新筛选")]):(_vm.dataNumType === 1)?_c('div',{on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.bespeakData()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e(),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.lostData()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.bespeakData()}}},[_vm._v("登记想要的资料"),_c('em')])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('span',{staticClass:"list-btn",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e()]):_vm._e()],2)])]),_vm._v(" "),_c('van-popup',{staticClass:"pop-wrap",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"popTitle"},[_vm._v("\n      选择资料类型\n      "),_c('span',{on:{"click":function($event){_vm.showPopup=false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"popContent"},[(_vm.fileTypeList && _vm.fileTypeList.length > 0)?_c('div',{staticClass:"title"},[_vm._v("资料类型")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"itemList"},_vm._l((_vm.fileTypeList),function(v,i){return (v.id)?_c('div',{key:i},[_c('div',{class:{'active': v.selected},on:{"click":function($event){return _vm.toggleFilter(v, 1)}}},[_vm._v(_vm._s(v.name))])]):_vm._e()}),0),_vm._v(" "),(_vm.vehiclePartList && _vm.vehiclePartList.length > 0)?_c('div',{staticClass:"title"},[_vm._v("部件模块")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"itemList"},_vm._l((_vm.vehiclePartList),function(v,i){return (v.id)?_c('div',{key:i},[_c('div',{class:{'active': v.selected},on:{"click":function($event){return _vm.toggleFilter(v, 2)}}},[_vm._v(_vm._s(v.nickname))])]):_vm._e()}),0)]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"reset-btn",on:{"click":function($event){return _vm.resetFilterType()}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"filter-btn",on:{"click":function($event){return _vm.confrimFilterType()}}},[_vm._v("筛选 "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.filterNum),expression:"filterNum"}]},[_vm._v("("+_vm._s(_vm.filterNum)+"个条件)")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(380);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c59755c4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(981);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2308)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-c59755c4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c59755c4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c59755c4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_searchResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2309);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("9e1c7dd0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-c59755c4]{background-color:#f2f2f2;height:auto!important;min-height:100%}.wrap[data-v-c59755c4]::-webkit-scrollbar{width:0!important}.wrap .Filter[data-v-c59755c4]{background-color:#f2f2f2}.wrap .Filter .filter[data-v-c59755c4]{min-height:2.75rem;line-height:1.55rem;background-color:#fff;padding-top:.6rem;padding-bottom:.6rem}.wrap .Filter .filter>div[data-v-c59755c4]{margin-left:.6rem;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333}.wrap .Filter .filter>div span span[data-v-c59755c4]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#377ee1;text-decoration:underline}.wrap .Filter .nextFilter[data-v-c59755c4]{height:3.18rem;background-color:#fff;margin-top:1px;padding:.57rem .6rem 0}.wrap .Filter .nextFilter div[data-v-c59755c4]{height:2rem;line-height:2rem;text-align:center;font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700;color:#ee4545;border-radius:.2rem;border:1px solid #ee4545}.wrap .arrow-grey[data-v-c59755c4]{position:relative}.wrap .arrow-grey[data-v-c59755c4]:after{content:\"\";width:.24rem;height:.35rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/toggle-grey.png\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;right:-.44rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .arrow-red[data-v-c59755c4]{position:relative}.wrap .arrow-red[data-v-c59755c4]:after{content:\"\";width:.24rem;height:.35rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/toggle-red.png\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;right:-.44rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .popup .itemWrap[data-v-c59755c4]{padding:.8rem;overflow:hidden;background-color:#fff}.wrap .popup .itemWrap .item1[data-v-c59755c4]{float:left;text-align:center;width:33.33%;margin-bottom:.4rem}.wrap .popup .itemWrap .item1>div[data-v-c59755c4]{display:inline-block;width:5.45rem;height:5.56rem;background-color:#fff;border-radius:.2rem;border:1px solid #e6e6e6}.wrap .popup .itemWrap .item1>div img[data-v-c59755c4]{width:100%;height:4rem;object-fit:contain}.wrap .popup .itemWrap .item1>div p[data-v-c59755c4]{margin-top:.2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.05rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap .popup .itemWrap .item2[data-v-c59755c4]{float:left;text-align:center;width:25%;min-height:5rem}.wrap .popup .itemWrap .item2 img[data-v-c59755c4]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .popup .itemWrap .item2 p[data-v-c59755c4]{margin-top:.3rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .crumbs[data-v-c59755c4],.wrap .popup .itemWrap .item2 p[data-v-c59755c4]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem}.wrap .crumbs[data-v-c59755c4]{padding:.6rem}.wrap .crumbs span[data-v-c59755c4]{font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;margin-right:.3rem}.wrap .classifyWrap[data-v-c59755c4]{padding-top:.6rem}.wrap .classifyWrap .classifyTitle[data-v-c59755c4]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem;margin-bottom:.6rem}.wrap .classifyWrap .classifyList[data-v-c59755c4]{overflow:hidden;padding:.8rem 0 .4rem;margin:0 .4rem;border-radius:.2rem;background-color:#fff}.wrap .classifyWrap .classifyList [class^=classifyItem][data-v-c59755c4]{float:left;text-align:center}.wrap .classifyWrap .classifyList .classifyItem_33[data-v-c59755c4]{width:33.33%;margin-bottom:.4rem}.wrap .classifyWrap .classifyList .classifyItem_33>div[data-v-c59755c4]{display:inline-block;width:5.45rem;height:5.56rem;background-color:#fff;border-radius:.2rem;border:1px solid #e6e6e6}.wrap .classifyWrap .classifyList .classifyItem_33>div img[data-v-c59755c4]{width:100%;height:4rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_33>div p[data-v-c59755c4]{margin-top:.2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.05rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap .classifyWrap .classifyList .classifyItem_25[data-v-c59755c4]{width:25%;min-height:5rem}.wrap .classifyWrap .classifyList .classifyItem_25 img[data-v-c59755c4]{width:2.7rem;height:2.7rem;background:#fff;border:1px solid #e6e6e6;border-radius:50%;border-radius:.2rem;object-fit:contain}.wrap .classifyWrap .classifyList .classifyItem_25 p[data-v-c59755c4]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .errorCollect[data-v-c59755c4]{text-align:center;padding:1.2rem 0;text-decoration:underline;color:#377ee1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Result = _interopRequireDefault(__webpack_require__(828));
var _PopupWin = _interopRequireDefault(__webpack_require__(827));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Result: _Result.default,
    PopupWin: _PopupWin.default
  },
  data: function data() {
    return {
      layoutType: 1,
      // US列表展示类型  1：3项一行  2：4项一行
      popupType: 1,
      // 弹窗中列表展示类型 1：3项一行  2：4项一行
      noSubUS: false,
      currentUSId: '',
      showPopup: false,
      filterList: [],
      currentFilterUsId: '',
      // 当前点击的筛选项的usId
      subUSList: [],
      subText: '',
      showResult: false,
      levelNum: 0,
      // US下最大筛选总层数
      dataLevelNum: 0 // 筛选可以出现资料的层数
    };
  },
  watch: {
    showPopup: function showPopup(val) {
      if (!val) {
        this.currentFilterUsId = '';
      }
    }
  },
  created: function created() {
    switch (this.$route.params.filterCode) {
      case 'HCL':
      case 'ECU_CIRCUIT_IMG':
      case 'ECU_WGSDTXTXT':
      case 'HCL_CIRCUIT_IMG':
        this.layoutType = 1;
        this.popupType = 1;
        break;
      default:
        this.layoutType = 2;
        this.popupType = 2;
    }
  },
  mounted: function mounted() {
    this.getUsOrData();
    if (this._Util.isApp()) {
      // 监听app端传递过来 点击返回按钮，回退筛选条件 的事件
      var that = this;
      that.$bus.$on('backFilter', function () {
        console.log('返回筛选');
        that.handleBackFilter();
      });
    }
  },
  methods: {
    /** 意见反馈埋点 */feedbakPoint: function feedbakPoint(operatePage, usId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        var filterIdList = [];
        if (_this.filterList && _this.filterList.length > 0) {
          _this.filterList.forEach(function (val) {
            filterIdList.push(val.usId);
          });
        }
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: operatePage,
          optionType: '点击',
          param1: '意见反馈',
          param2: filterIdList.join('/')
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 找不到资料
     */
    submitError: function submitError() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _code, transObj, lastUsId, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _code = _this2.$route.params.filterCode || 'default';
              transObj = {
                FAULT_CODE: '故障码',
                CIRCUIT_IMG: '电路图',
                HCL: '后处理',
                VEHICLE: '整车资料',
                ENGINE: '发动机',
                PUMP: '油泵油嘴',
                DATA_STREAM: '数据流',
                SEN_ACT: '传感器/执行器',
                EGINE_PLANG: '工程机械',
                PART_INFO: '部件信息',
                FAULT_DEMO: '故障案例',
                VIN: 'vin查询资料',
                ECU_CIRCUIT_IMG: 'ECU电路图',
                ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
                VEHICLE_CIRCUIT_IMG: '整车电路图',
                HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
                SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
                CSMK_CIRCUIT_IMG: '车身模块电路图',
                ABS_CIRCUIT_IMG: 'ABS电路图',
                YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
                BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
                EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
                ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
                default: ''
              };
              lastUsId = _this2.currentFilterUsId || _this2.filterList[_this2.filterList.length - 1].usId;
              url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(transObj[_code], "-").concat(lastUsId);
              _context.next = 1;
              return _this2.feedbakPoint(transObj[_code], lastUsId);
            case 1:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'feedback',
                    url: url
                  }
                });
              } else {
                // eslint-disable-next-line require-atomic-updates
                location.href = url;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 处理app端返回按钮的逻辑
     */
    handleBackFilter: function handleBackFilter() {
      if (this.filterList.length >= 2) {
        var usId = this.filterList[this.filterList.length - 2].usId;
        this.getUsOrData(usId);
      } else {
        api.historyBack({
          frameName: 'dataLibPage'
        }, function (ret, err) {
          if (!ret.status) {
            api.setStatusBarStyle({
              style: 'light',
              color: '#177AFA'
            });
            api.closeWin();
          }
        });
      }
    },
    /**
     * 获取 us列表 或者 结果数据
     * @param {number} USId 请求us的下级列表 为空时请求第一层us
     */
    getUsOrData: function getUsOrData(USId) {
      var _this3 = this;
      this.showPopup = false;
      this._Util.post(this._Api.POST_DATA_LIB_GET_US_OR_DATA_LIST, {
        usId: USId || this.$route.params.firstUSId,
        directoryId: this.$route.params.directoryId
      }, function (data) {
        document.title = data.directoryName;

        // 子集列表展示
        _this3.subUSList = data.usList;
        _this3.subText = data.text;
        _this3.noSubUS = !data.usList.length;
        for (var i = 0, len = _this3.filterList.length; i < len; i++) {
          if (_this3.filterList[i].curLevel === data.curLevel) {
            _this3.filterList.splice(i);
            break;
          }
        }
        var USItem = {
          directoryId: data.directoryId,
          directoryName: data.directoryName,
          isLastLevel: data.isLastLevel,
          usImageUrl: data.pImageUrl,
          usName: data.usName,
          usId: data.usId,
          curLevel: data.curLevel
        };
        _this3.filterList.push(USItem);
        if (data.isLastLevel === 1 || data.loadPageType === 2) {
          // 当前US是最后一层时 或 接口告知需要展示结果页   展示结果数据
          _this3.showResult = true;
          _this3.currentUSId = USId || _this3.$route.params.firstUSId;
          _this3.showDataPoint();
        } else {
          _this3.showResult = false;
        }
      }, function () {}, this);
    },
    /** 查资料埋点 */setPoint: function setPoint(usId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        var _code = _this4.$route.params.filterCode || 'default';
        var transObj = {
          FAULT_CODE: '故障码',
          CIRCUIT_IMG: '电路图',
          HCL: '后处理',
          VEHICLE: '整车资料',
          ENGINE: '发动机',
          PUMP: '油泵油嘴',
          DATA_STREAM: '数据流',
          SEN_ACT: '传感器/执行器',
          EGINE_PLANG: '工程机械',
          PART_INFO: '部件信息',
          FAULT_DEMO: '故障案例',
          VIN: 'vin查询资料',
          ECU_CIRCUIT_IMG: 'ECU电路图',
          ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
          VEHICLE_CIRCUIT_IMG: '整车电路图',
          HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
          SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
          CSMK_CIRCUIT_IMG: '车身模块电路图',
          ABS_CIRCUIT_IMG: 'ABS电路图',
          YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
          BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
          EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
          ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
          default: ''
        };
        _this4._Util.collectPageView3({
          postUrl: _this4._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: transObj[_code],
          optionType: '筛选',
          param1: usId
        }, _this4, function () {
          resolve();
        });
      });
    },
    /**
     * 展示数据埋点
     */
    showDataPoint: function showDataPoint() {
      var _code = this.$route.params.filterCode || 'default';
      var transObj = {
        FAULT_CODE: '故障码',
        CIRCUIT_IMG: '电路图',
        HCL: '后处理',
        VEHICLE: '整车资料',
        ENGINE: '发动机',
        PUMP: '油泵油嘴',
        DATA_STREAM: '数据流',
        SEN_ACT: '传感器/执行器',
        EGINE_PLANG: '工程机械',
        PART_INFO: '部件信息',
        FAULT_DEMO: '故障案例',
        VIN: 'vin查询资料',
        ECU_CIRCUIT_IMG: 'ECU电路图',
        ECU_WGSDTXTXT: 'ECU上电通讯图电路图',
        VEHICLE_CIRCUIT_IMG: '整车电路图',
        HCL_CIRCUIT_IMG: '后处理/尿素泵电路图',
        SEN_ACT_CIRCUIT_IMG: '传感器针脚定义',
        CSMK_CIRCUIT_IMG: '车身模块电路图',
        ABS_CIRCUIT_IMG: 'ABS电路图',
        YBZJDY_CIRCUIT_IMG: '仪表针脚定义',
        BXSHDY_CIRCUIT_IMG: '保险丝盒定义',
        EGINE_PLANG_CIRCUIT_IMG: '工程机械电路图',
        ZDJK_CIRCUIT_IMG: '诊断接口针脚定义',
        default: ''
      };
      var filterNameList = [];
      var filterIdList = [];
      if (this.filterList && this.filterList.length > 0) {
        this.filterList.forEach(function (val) {
          filterNameList.push(val.usName);
          filterIdList.push(val.usId);
        });
      }
      this._Util.collectPageView3({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '产品库',
        operate_page: transObj[_code],
        optionType: '进入',
        param1: '出资料',
        param2: filterIdList.join('/'),
        param3: filterNameList.join('/')
      }, this, function () {});
    },
    /**
     * 点击us
     * @param {string | number} USId 真实点击的usID
     * @param {string | number} parentId 非必填 当前US层级的父级USid
     */
    clickUSList: function clickUSList(USId, parentId) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.setPoint(USId);
            case 1:
              if (USId === 0) {
                _this5.currentUSId = parentId;
                _this5.showResult = true;
                _this5.showDataPoint();
              } else {
                _this5.getUsOrData(USId);
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 获取对应US下的子集
     * @params{USId}: US的主键id  为空时请求第一层us
     */
    getSublevelUSList: function getSublevelUSList(USId) {
      var _this6 = this;
      this.subUSList = [];
      this.currentFilterUsId = USId || '';
      this.showPopup = true;
      this._Util.post(this._Api.POST_DATA_LIB_GET_SUBLEVEL_UNITS_SELECTOR, {
        pid: USId || this.$route.params.firstUSId,
        directoryId: this.$route.params.directoryId
      }, function (data) {
        _this6.subUSList = data.unitsSelectorList;
        _this6.subText = data.text;
      }, function () {}, this);
    },
    /**
     * 筛选点击逻辑
     * @params{filterIndex}: 点击的筛选项在筛选列表中的索引
     */
    filterLogic: function filterLogic(filterIndex) {
      if (filterIndex === 0) {
        // 返回上一页
        if (this._Util.isApp() && api.winName === 'dataLibFilterResult') {
          api.closeWin();
        } else {
          this.$router.go(-1);
        }
      } else {
        this.getSublevelUSList(this.filterList[filterIndex - 1].usId);
      }
    },
    getData: function getData(scroll) {
      // 添加数据
      scroll.refresh();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescrollResult",staticClass:"wrap"},[_c('div',{staticClass:"Filter"},[_c('div',{staticClass:"filter"},[_c('div',_vm._l((_vm.filterList),function(v,i){return _c('span',{key:i,on:{"click":function($event){return _vm.filterLogic(i)}}},[(i!==0)?_c('b',[_vm._v("/ ")]):_vm._e(),_c('span',[_vm._v(_vm._s(v.usName))]),_vm._v(" ")])}),0)]),_vm._v(" "),(!_vm.noSubUS&&_vm.showResult)?_c('div',{staticClass:"nextFilter",on:{"click":function($event){return _vm.getSublevelUSList(_vm.filterList[_vm.filterList.length-1].usId)}}},[_c('div',[_vm._v(_vm._s(("点击继续选择" + _vm.subText)))])]):_vm._e(),_vm._v(" "),_c('Popup-win',{staticClass:"popup",attrs:{"title":_vm.subText},on:{"scrollBottom":_vm.getData},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"itemWrap"},[_vm._l((_vm.subUSList),function(v,i){return (_vm.popupType===1)?_c('div',{key:i,staticClass:"item1",on:{"click":function($event){return _vm.clickUSList(v.id)}}},[_c('div',[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.name))])])]):_vm._e()}),_vm._v(" "),_vm._l((_vm.subUSList),function(v,i){return (_vm.popupType===2)?_c('div',{key:i,staticClass:"item2",on:{"click":function($event){return _vm.clickUSList(v.id)}}},[_c('img',{attrs:{"src":v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.name))])]):_vm._e()})],2),_vm._v(" "),_c('div',{staticClass:"errorCollect",staticStyle:{"padding":"0 0 1.8rem"},on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showResult),expression:"showResult"}],staticClass:"crumbs"},[_vm._l((_vm.filterList),function(v,i){return _c('span',{key:i},[_vm._v(_vm._s(v.usName))])}),_vm._v("\n    "+_vm._s(_vm.filterList.length>0?_vm.filterList[0].directoryName:'')+"\n  ")],2),_vm._v(" "),(_vm.showResult)?_c('Result',{attrs:{"us-id":_vm.currentUSId,"directory-id":_vm.$route.params.directoryId}}):_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyTitle"},[_vm._v("请继续选择")]),_vm._v(" "),(_vm.layoutType===1)?_c('div',{staticClass:"classifyList"},_vm._l((_vm.subUSList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_33"},[_c('div',{on:{"click":function($event){return _vm.clickUSList(v.id, v.parentId)}}},[_c('img',{attrs:{"src":v.id===0 ? 'http://static2.kaxiuyun.com/kxy/data-library/data-all.jpg' : v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])])}),0):_vm._e(),_vm._v(" "),(_vm.layoutType===2)?_c('div',{staticClass:"classifyList"},_vm._l((_vm.subUSList),function(v,i){return _c('div',{key:i,staticClass:"classifyItem_25",on:{"click":function($event){return _vm.clickUSList(v.id, v.parentId)}}},[_c('img',{attrs:{"src":v.id===0 ? 'http://static2.kaxiuyun.com/kxy/data-library/data-all.jpg' : v.imgUrl,"alt":""},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',{style:({fontWeight: v.commonlyUsed===1 ? 'bold' : 'normal'})},[_vm._v(_vm._s(v.name))])])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"errorCollect",on:{"click":_vm.submitError}},[_vm._v("找不到品牌/型号?")])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(381);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a9eef394_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(982);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2310)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a9eef394"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a9eef394_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a9eef394_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2311);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4f111e7c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outSide[data-v-a9eef394]{background:#fff}.queryFaultCode[data-v-a9eef394]{background:#f2f2f2;min-height:100%;height:auto;overflow:auto;padding:1.4rem .6rem 0;font-family:PingFangSC-Regular}.queryFaultCode input[type=button][data-v-a9eef394],.queryFaultCode input[type=number][data-v-a9eef394],.queryFaultCode input[type=tel][data-v-a9eef394],.queryFaultCode input[type=text][data-v-a9eef394],.queryFaultCode select[data-v-a9eef394]{box-sizing:border-box;-webkit-box-sizing:border-box;width:100%}.queryFaultCode .box[data-v-a9eef394]{background:#fff;border-radius:.4rem;padding:.8rem .6rem 1rem;margin-top:1.4rem}.queryFaultCode .box[data-v-a9eef394]:first-of-type{margin-top:0}.queryFaultCode .box.codeBox .tit i[data-v-a9eef394]{background:url(\"http://static2.kaxiuyun.com/kxy/data-library/faultcode.jpg\") no-repeat;background-size:100% 100%}.queryFaultCode .box.spnBox i[data-v-a9eef394]{background:url(\"http://static2.kaxiuyun.com/kxy/data-library/spn.jpg\") no-repeat}.queryFaultCode .box.desBox i[data-v-a9eef394]{background:url(\"http://static2.kaxiuyun.com/kxy/data-library/faultdesc.jpg\") no-repeat}.queryFaultCode .box .tit[data-v-a9eef394]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;margin-bottom:1rem}.queryFaultCode .box .tit i[data-v-a9eef394]{width:1rem;height:1rem;background-size:100% 100%}.queryFaultCode .box .tit span[data-v-a9eef394]{font-size:.9rem;color:#333;font-family:PingFangSC-Semibold;font-weight:600;margin-left:.6rem}.queryFaultCode .box .tit div[data-v-a9eef394]{margin-left:auto;font-size:14px;color:#377ee1;position:relative;padding-right:10px;height:26px;line-height:26px}.queryFaultCode .box .tit div[data-v-a9eef394]:after{content:\" \";position:absolute;top:0;right:0;width:6px;height:100%;background:url(\"http://static2.kaxiuyun.com/kxy/data-library/arror_blue.png\") 50% no-repeat;background-size:100% 12px}.queryFaultCode .box .inpBox[data-v-a9eef394]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;position:relative;height:2.4rem;margin-top:.7rem}.queryFaultCode .box .inpBox input[data-v-a9eef394]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background:#f1f1f1;height:100%;text-indent:.6rem;border-radius:.2rem;font-size:.8rem}.queryFaultCode .box .inpBox input.specail[data-v-a9eef394]{outline:none;color:transparent;caret-color:transparent;position:absolute;z-index:1;background:none;margin-left:-100%;text-indent:-999em;height:1px}.queryFaultCode .box .inpBox input[data-v-a9eef394]::-webkit-input-placeholder{font-size:.8rem}.queryFaultCode .box .inpBox input[data-v-a9eef394]:-ms-input-placeholder{font-size:.8rem}.queryFaultCode .box .inpBox input[data-v-a9eef394]::placeholder{font-size:.8rem}.queryFaultCode .box .inpBox span.keyspan[data-v-a9eef394]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background:#f1f1f1;height:100%;text-indent:.6rem;line-height:2.4rem;border-radius:.2rem;font-size:.8rem}.queryFaultCode .box .inpBox span.keyspan i[data-v-a9eef394]{background-color:#3476eb;height:.8rem;width:1px;color:#3476eb;display:inline-block;vertical-align:middle;-webkit-animation:keyfade-data-v-a9eef394 1s infinite linear;animation:keyfade-data-v-a9eef394 1s infinite linear}.queryFaultCode .box .inpBox span.keyspan[data-v-a9eef394]:focus:before{content:none;font-size:12px}.queryFaultCode .box .inpBox span.cutline[data-v-a9eef394]{padding:0 .4rem;color:#8b8b8b}.queryFaultCode .box .inpBox button[data-v-a9eef394]{width:3.6rem;margin-left:.6rem;border-radius:.2rem;background:#177afa;color:#fff;line-height:1.13rem;height:2.4rem;text-align:center;font-size:.8rem}.queryFaultCode .history[data-v-a9eef394]{margin-top:.5rem;white-space:nowrap;overflow:hidden}.queryFaultCode .history>div[data-v-a9eef394]{display:inline-block}.queryFaultCode .history>div span[data-v-a9eef394]{padding:.2rem .4rem;background:#e8e8e8;border-radius:.2rem;margin-right:.5rem;font-size:.65rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.queryFaultCode .feedback[data-v-a9eef394]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;text-align:center;position:relative;bottom:0;left:0;width:100%;margin-top:1.4rem;padding-bottom:1.4rem}.queryFaultCode .keyboard[data-v-a9eef394]{position:fixed;left:0;bottom:-600px;width:100%;z-index:100;background:#d0d3da}.queryFaultCode .keyboard table[data-v-a9eef394]{border-collapse:inherit;border-spacing:.6rem .5rem}.queryFaultCode .keyboard table tr td[data-v-a9eef394]{width:3.35rem;height:2rem;line-height:2rem;text-align:center;background:#a7afbc;border-radius:.2rem;font-size:1.1rem;color:#0c0c0c;box-shadow:0 1px 0 0 #8c959c;position:relative}.queryFaultCode .keyboard table tr td img[data-v-a9eef394]{width:1.3rem;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);pointer-events:none}.queryFaultCode .keyboard table tr td.press[data-v-a9eef394]{background:#fafafa}.queryFaultCode .keyboard table tr td.pressWhite[data-v-a9eef394]{background:#a7afbc}.queryFaultCode .keyboard table tr .white[data-v-a9eef394]{background:#fafafa;box-shadow:0 1px 0 0 #888c8f}.queryFaultCode .keyboard table tr:last-of-type td[data-v-a9eef394]:last-of-type{background:#096cff;color:#fff;font-size:.9rem}.queryFaultCode .keyboard.show[data-v-a9eef394]{-webkit-animation:mymove-data-v-a9eef394 .5s 1 forwards;animation:mymove-data-v-a9eef394 .5s 1 forwards}@keyframes mymove-data-v-a9eef394{0%{bottom:-600px}to{bottom:0}}@-webkit-keyframes mymove-data-v-a9eef394{0%{bottom:-600px}to{bottom:0}}@keyframes keyfade-data-v-a9eef394{0%{opacity:1}to{opacity:0}}@-webkit-keyframes keyfade-data-v-a9eef394{0%{opacity:1}to{opacity:0}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _vue = _interopRequireDefault(__webpack_require__(22));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
var _card = _interopRequireDefault(__webpack_require__(117));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    card: _card.default
  },
  data: function data() {
    return {
      isCard: true,
      isApp: !!this._Util.isApp(),
      faultCode: '',
      // 输入的故障码
      faultDes: '',
      // 输入的故障描述
      faultSpnFmi1: '',
      // spn码1
      faultSpnFmi2: '',
      // spn码2
      timer: null,
      showKeyboard: false,
      // 弹出自定义键盘
      showCursor: false,
      // 光标展示
      text: '请输入故障码，如：1011',
      keyList: [
      // 键盘数据
      [{
        mes: 'A'
      }, {
        mes: 1,
        class: 'white'
      }, {
        mes: 2,
        class: 'white'
      }, {
        mes: 3,
        class: 'white'
      }, {
        mes: 'delete',
        src: __webpack_require__(264)
      }], [{
        mes: 'B'
      }, {
        mes: 4,
        class: 'white'
      }, {
        mes: 5,
        class: 'white'
      }, {
        mes: 6,
        class: 'white'
      }, {
        mes: 'D'
      }], [{
        mes: 'C'
      }, {
        mes: 7,
        class: 'white'
      }, {
        mes: 8,
        class: 'white'
      }, {
        mes: 9,
        class: 'white'
      }, {
        mes: 'E'
      }], [{
        mes: 'U',
        rowspan: '2'
      }, {
        mes: 0,
        class: 'white'
      }, {
        mes: '-',
        class: 'white',
        colspan: '2'
      }, {
        mes: 'F'
      }], [{}, {
        mes: 'P',
        colspan: '2'
      }, {}, {
        mes: 'key',
        src: __webpack_require__(265)
      }, {
        mes: '搜索'
      }]],
      FAULT_CODE_LIST: [],
      SPN_FMI_LIST: [],
      FAULT_DESCRIBE_LIST: []
    };
  },
  watch: {
    faultSpnFmi1: function faultSpnFmi1(nval) {
      this.faultSpnFmi1 = this.faultSpnFmi1.replace(/[^\d]/g, '');
    },
    faultSpnFmi2: function faultSpnFmi2(nval) {
      this.faultSpnFmi2 = this.faultSpnFmi2.replace(/[^\d]/g, '');
    }
  },
  created: function created() {
    document.title = '故障码查询';

    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '故障码',
      optionType: '打开'
    }, this);
  },
  mounted: function mounted() {
    this.getHistoryList('FAULT_CODE');
    this.getHistoryList('SPN_FMI');
    this.getHistoryList('FAULT_DESCRIBE');
    if (this._Util.isApp()) {
      // app端 当前页面变为页面最上层时，触发接口请求刷新搜索记录
      var that = this;
      api.addEventListener({
        name: 'viewappear'
      }, function (ret, err) {
        that.getHistoryList('FAULT_CODE');
        that.getHistoryList('SPN_FMI');
        that.getHistoryList('FAULT_DESCRIBE');
      });
    }
  },
  destroyed: function destroyed() {
    clearInterval(this.timer);
  },
  methods: {
    /**
     * 获取子组件卡片内容
     */
    getcardContent: function getcardContent(res) {
      this.cardContent = res;
    },
    /**
     * 获取搜索记录
     * @param {string} type 搜索内容对应类型
     */
    getHistoryList: function getHistoryList(type) {
      var _this = this;
      this._Util.post(this._Api.POST_PRODUCT_RECORD_LIST, {
        pageType: type
      }, function (data) {
        _this["".concat(type, "_LIST")] = data;
      }, function () {}, this);
    },
    /**
     * 添加搜索记录
     * @param {string} keyword 搜索关键字
     * @param {string} type 搜索内容对应类型
     * @return {object} Promise对象
     */
    addHistory: function addHistory(keyword, type) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_ADD_SOSO_RECORD, {
          keyword: keyword,
          pageType: type
        }, function (data) {
          resolve(data);
        }, function (err) {
          reject(err);
        }, _this2);
      });
    },
    /* 弹出自定义键盘 */slideBoard: function slideBoard() {
      var that = this;
      (0, _jquery.default)('.specail').blur();
      that.showCursor = true;
      for (var i = 0; i < that.keyList.length; i++) {
        var key2 = that.keyList[i];
        for (var j = 0; j < key2.length; j++) {
          _vue.default.set(key2[j], 'active', false);
          _vue.default.set(key2[j], 'activeWhite', false);
        }
      }
      if (that.text == '请输入故障码，如：1011') {
        that.text = '';
      } else {
        that.text = that.faultCode ? that.text + that.faultCode : that.text;
        that.text = that.text.replace(/\s*/g, '');
      }
      that.faultCode = '';
      that.showKeyboard = !that.showKeyboard;
      if (!that.showKeyboard) {
        that.showCursor = false;
      }
    },
    /* 点击键盘获取值 */getKeyValue: function getKeyValue(param) {
      var that = this;
      for (var i = 0; i < that.keyList.length; i++) {
        var key2 = that.keyList[i];
        for (var j = 0; j < key2.length; j++) {
          _vue.default.set(key2[j], 'active', false);
          _vue.default.set(key2[j], 'activeWhite', false);
        }
      }
      if (typeof param.mes === 'number' || param.mes == '-') {
        _vue.default.set(param, 'activeWhite', true);
        setTimeout(function () {
          _vue.default.set(param, 'activeWhite', false);
        }, 200);
      } else {
        _vue.default.set(param, 'active', true);
        setTimeout(function () {
          _vue.default.set(param, 'active', false);
        }, 200);
      }
      if (param.mes == 'key') {
        // 弹出默认键盘
        that.showKeyboard = false;
        that.faultCode = that.text.replace(/\s*/g, '');
        (0, _jquery.default)('.specail').focus();
        that.text = '';
      } else if (param.mes == 'delete') {
        // 退格删除
        that.text = that.text.substring(0, that.text.length - 1);
      } else if (param.mes == '搜索') {
        that.searchBtnPress(1);
      } else {
        that.text += param.mes;
      }
    },
    /*
      页面滚动到视野内
    */
    scrollIntoView: function scrollIntoView() {
      this.showCursor = false;
      this.showKeyboard = false;
      if (!this._Util.isIOS) {
        // 软键盘弹起，输入框自动出现在可视区域
        this.timer = setInterval(function () {
          if (document.activeElement.className.indexOf('inputcontent') >= 0) {
            document.activeElement.scrollIntoViewIfNeeded();
          }
        }, 300);
      }
    },
    /**
     * 搜索按钮
     * @param {number} type 搜索类型
     * @param {string} historyWord 搜索历史关键字
     * @param {number} index 历史记录索引
     */
    searchBtnPress: function searchBtnPress(type, historyWord, index) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var that, parms, keyword, tempObj;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              that = _this3;
              that.showKeyboard = false;
              parms = {};
              keyword = '';
              if (historyWord) {
                _context.next = 3;
                break;
              }
              // 判断是 正常搜索 还是 历史记录搜索
              if (type && type == 1) {
                // 查故障码
                if (that.text == '请输入故障码，如：1011') {
                  that.text = '';
                }
                keyword = that.text + that.faultCode;
              }
              if (type && type == 2) {
                // 查故障描述
                keyword = that.faultDes;
              }
              if (!(type && type == 3)) {
                _context.next = 2;
                break;
              }
              if (that.faultSpnFmi1.trim()) {
                _context.next = 1;
                break;
              }
              _mintUi.MessageBox.alert('请输入完整的SPN_FMI码！');
              return _context.abrupt("return");
            case 1:
              if (!that.faultSpnFmi2.trim()) {
                keyword = that.faultSpnFmi1;
              } else {
                keyword = that.faultSpnFmi1 + '-' + that.faultSpnFmi2;
              }
              parms.faultType = 'spn';
            case 2:
              if (keyword.trim()) {
                _context.next = 3;
                break;
              }
              _mintUi.MessageBox.alert('请输入搜索内容！');
              that.text = '请输入故障码，如：1011';
              return _context.abrupt("return");
            case 3:
              parms.keyword = historyWord || keyword;
              parms.index = 0;
              parms.folderid = '10086';
              parms.isClick = false;
              parms.title = '故障码';

              // 添加对应搜索记录
              tempObj = {
                1: 'FAULT_CODE',
                2: 'FAULT_DESCRIBE',
                3: 'SPN_FMI'
              };
              _context.next = 4;
              return _this3.addHistory(parms.keyword, tempObj[type]);
            case 4:
              _this3._Util.sensorsCollect('search_keywords', {
                operation_page: document.title,
                keywords: parms.keyword,
                jump_url: location.origin + '/v2/business/pay/appSearchResultNew?folderid=10086&keyword=' + encodeURIComponent(parms.keyword) + '&index=0&isClick=false' + (type == 3 ? '&faultType=spn' : ''),
                search_type: tempObj[type],
                search_mode: historyWord ? '点击搜索记录' : '关键字输入',
                search_history_sort: historyWord ? index : ''
              });
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'appsearchResult10086',
                    url: location.origin + '/v2/business/pay/appSearchResultNew?folderid=10086&keyword=' + encodeURIComponent(parms.keyword) + '&title=故障码' + '&index=0&isClick=false' + (type == 3 ? '&faultType=spn' : '')
                  }
                });
              } else {
                that.$router.push({
                  name: 'appSearchResultNew',
                  query: parms
                });
                // location.href = location.origin + '/v2/business/pay/appSearchResultNew?folderId=10086&title=故障码' +
                //   '&keyWord=' + encodeURIComponent(parms.keyword) + (type == 3 ? '&faultType=spn' : '')
              }
            case 5:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true */compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.1'; // 1.4.1开始app上才添加了openpdf的方法
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /** 故障码查询意见反馈 */toFeedback: function toFeedback() {
      var that = this;
      var url = location.origin + '/v2/questionnaire/index?no=11e80dba';
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: '故障码查询意见反馈',
        jump_url: url
      });
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    }
  }
};module.exports = __webpack_require__.p + "static/img/keyboard.4e5145b.png";module.exports = __webpack_require__.p + "static/img/Shape.8a583d2.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"outSide"},[_c('card',{attrs:{"cardcontent":{}}})],1),_vm._v(" "),_c('div',{staticClass:"queryFaultCode"},[_c('div',{staticClass:"codeBox box"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"inpBox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultCode),expression:"faultCode"}],staticClass:"specail",attrs:{"type":"text"},domProps:{"value":(_vm.faultCode)},on:{"blur":function($event){_vm.showCursor = false},"input":function($event){if($event.target.composing){ return; }_vm.faultCode=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"keyspan",on:{"click":function($event){return _vm.slideBoard()}}},[_vm._v(_vm._s(_vm.text||_vm.faultCode)),_c('i',{directives:[{name:"show",rawName:"v-show",value:(_vm.showCursor),expression:"showCursor"}]})]),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.searchBtnPress(1)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.FAULT_CODE_LIST&&_vm.FAULT_CODE_LIST.length>0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"history"},[_c('div',_vm._l((_vm.FAULT_CODE_LIST),function(v,i){return _c('span',{key:i,on:{"click":function($event){return _vm.searchBtnPress(1, v, i)}}},[_vm._v(_vm._s(v))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"spnBox box"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"inpBox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultSpnFmi1),expression:"faultSpnFmi1"}],attrs:{"type":"tel","placeholder":"请输入数字"},domProps:{"value":(_vm.faultSpnFmi1)},on:{"click":function($event){return _vm.scrollIntoView()},"input":function($event){if($event.target.composing){ return; }_vm.faultSpnFmi1=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"cutline"},[_vm._v("-")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultSpnFmi2),expression:"faultSpnFmi2"}],attrs:{"type":"tel","placeholder":"请输入数字"},domProps:{"value":(_vm.faultSpnFmi2)},on:{"click":function($event){return _vm.scrollIntoView()},"input":function($event){if($event.target.composing){ return; }_vm.faultSpnFmi2=$event.target.value}}}),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.searchBtnPress(3)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.SPN_FMI_LIST&&_vm.SPN_FMI_LIST.length>0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"history"},[_c('div',_vm._l((_vm.SPN_FMI_LIST),function(v,i){return _c('span',{key:i,on:{"click":function($event){return _vm.searchBtnPress(3, v, i)}}},[_vm._v(_vm._s(v))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"desBox box"},[_vm._m(2),_vm._v(" "),_c('div',{staticClass:"inpBox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultDes),expression:"faultDes"}],attrs:{"type":"text","placeholder":"请输入文字，如：扭矩限制"},domProps:{"value":(_vm.faultDes)},on:{"click":function($event){return _vm.scrollIntoView()},"input":function($event){if($event.target.composing){ return; }_vm.faultDes=$event.target.value}}}),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.searchBtnPress(2)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.FAULT_DESCRIBE_LIST&&_vm.FAULT_DESCRIBE_LIST.length>0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"history"},[_c('div',_vm._l((_vm.FAULT_DESCRIBE_LIST),function(v,i){return _c('span',{key:i,on:{"click":function($event){return _vm.searchBtnPress(2, v, i)}}},[_vm._v(_vm._s(v))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("故障码查询意见反馈")]),_vm._v(" "),_c('div',{staticClass:"keyboard",class:{show:_vm.showKeyboard}},[_c('table',_vm._l((_vm.keyList),function(item,index){return _c('tr',{key:index},_vm._l((item),function(v,i){return (v.mes || v.mes == 0 || v.src)?_c('td',{key:i,class:[v.class,{press:v.active,pressWhite:v.activeWhite}],attrs:{"colspan":v.colspan,"rowspan":v.rowspan},on:{"click":function($event){return _vm.getKeyValue(v)}}},[_vm._v("\n            "+_vm._s(v.src?'':v.mes)),(v.src)?_c('img',{attrs:{"src":v.src,"alt":""}}):_vm._e()]):_vm._e()}),0)}),0)])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('i'),_vm._v(" "),_c('span',[_vm._v("查故障码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('i'),_vm._v(" "),_c('span',[_vm._v("查SPN_FMI码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('i'),_vm._v(" "),_c('span',[_vm._v("查故障码描述")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(382);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cafdd9b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(983);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2312)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-cafdd9b6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cafdd9b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cafdd9b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2313);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4c3a3cb2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".oilPumpIndex[data-v-cafdd9b6]{background:#f2f2f2}.oilPumpIndex .classifyWrap[data-v-cafdd9b6]{padding-top:.6rem}.oilPumpIndex .classifyWrap .classifyList[data-v-cafdd9b6]{padding:0 .4rem}.oilPumpIndex .classifyWrap .classifyList .item[data-v-cafdd9b6]{line-height:2.75rem;background:#fff;border-radius:.2rem;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:700;color:#333;margin-top:.4rem;text-indent:.6rem;position:relative}.oilPumpIndex .classifyWrap .classifyList .item[data-v-cafdd9b6]:after{content:\"\";position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.3rem;height:.5rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-arrow.png\");background-repeat:no-repeat;background-size:100%}.oilPumpIndex .feedback[data-v-cafdd9b6]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:2.2rem 0 1.2rem;text-align:center;position:relative;bottom:0;left:0;width:100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      pageType: 'PUMP',
      clssifyList: [{
        id: 2,
        name: '查 部件信息',
        eventName: 'click_componentdata',
        url: '/v2/business/pay/appSearchResult?index=4&title=%E9%83%A8%E4%BB%B6%E4%BF%A1%E6%81%AF&keyword=&folderid=10087&isCloseTabList=true&isClick=true'
      }, {
        id: 1,
        name: '查 测试数据',
        eventName: 'click_testdata',
        url: '/v2/business/pay/appSearchResult?index=5&title=%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE&keyword=&folderid=10088&isCloseTabList=false&isClick=true&showIQA=false'
      }, {
        id: 3,
        name: '查 喷油器 垫片调整',
        eventName: 'click_injectoradjust',
        url: '/v2/soso/testDataQuery?index=1'
      }, {
        id: 4,
        name: 'IQA计算',
        eventName: 'click_iqacalculation',
        url: '/kaxiuyun/wxauth/iqa.htm?'
      }, {
        id: 5,
        name: 'IQA逆向计算',
        eventName: 'element_click',
        url: '/v2/IQA/IQAReverseDirection'
      }]
    };
  },
  watch: {},
  created: function created() {
    document.title = '油泵油嘴';
  },
  mounted: function mounted() {
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '油泵油嘴',
      optionType: '打开'
    }, this);
  },
  updated: function updated() {},
  destroyed: function destroyed() {},
  methods: {
    /** 跳转到对应的详情页 */goClassifyDetail: function goClassifyDetail(item) {
      var that = this;
      var url = location.origin + item.url;
      if (item.id === 5) {
        this._Util.sensorsCollect(item.eventName, {
          operation_page: document.title,
          element_target_url: url,
          moudle_type: '资料服务',
          title: document.title,
          url: window.location.href,
          element_name: 'IQA逆向',
          element_content: 'IQA逆向'
        });
      } else {
        this._Util.sensorsCollect(item.eventName, {
          operation_page: document.title,
          jump_url: url
        });
      }
      switch (item.id) {
        case 1:
          // 测试数据
          if (that._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'testData',
                url: url
              }
            });
          } else {
            location.href = url;
          }
          break;
        case 2:
          // 部件信息
          if (that._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'partInfo',
                url: url
              }
            });
          } else {
            location.href = url;
          }
          break;
        case 3:
          // 垫片调整
          if (that._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'gasketAdjustment',
                url: url
              }
            });
          } else {
            location.href = url;
          }
          break;
        case 4:
          if (that._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'iqa',
                url: url
              }
            });
          } else if (that._Util.isMPaaS()) {
            that._Util.mPassRouter({
              fullPath: url
            });
          } else {
            location.href = url;
          }
          break;
        case 5:
          if (that._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'IQAReverseDirection',
                url: url
              }
            });
          } else {
            location.href = url;
          }
          break;
      }
    },
    /** 油泵油嘴意见反馈 */toFeedback: function toFeedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=515fb83d&data=").concat(this.pageType, "-\u7A7A-new");
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: '油泵油嘴意见反馈',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"oilPumpIndex"},[_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyList"},_vm._l((_vm.clssifyList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.goClassifyDetail(v)}}},[_vm._v(_vm._s(v.name))])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("油泵油嘴意见反馈")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(383);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7decd84e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(984);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2314)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7decd84e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7decd84e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7decd84e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2315);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f3bd6e18", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-7decd84e]{background-color:#f2f2f2;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.wrap .topSearch[data-v-7decd84e]{height:5.65rem;background-color:#fff;padding:.8rem 0}.wrap .topSearch .sTitle[data-v-7decd84e]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem;margin-bottom:.6rem;text-indent:2rem;position:relative}.wrap .topSearch .sTitle[data-v-7decd84e]:after{content:\"\";background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-search.jpg\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1rem;height:1rem}.wrap .topSearch .Search[data-v-7decd84e]{padding:0 .6rem;font-size:0;width:100%}.wrap .topSearch .Search input[data-v-7decd84e]{display:inline-block;width:13.35rem;height:2.2rem;background:#f1f1f1;border-radius:.1rem;border:.03rem solid #eaeaea;margin-right:.6rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;vertical-align:baseline;outline:none;text-indent:.6rem}.wrap .topSearch .Search input[data-v-7decd84e]::-webkit-input-placeholder{color:#666}.wrap .topSearch .Search input[data-v-7decd84e]:-ms-input-placeholder{color:#666}.wrap .topSearch .Search input[data-v-7decd84e]::placeholder{color:#666}.wrap .topSearch .Search div[data-v-7decd84e]{display:inline-block;width:3.6rem;line-height:2.2rem;height:2.2rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;border-radius:.1rem;background-color:#377ee1;text-align:center}.wrap .classifyWrap[data-v-7decd84e]{padding-top:1rem}.wrap .classifyWrap>p[data-v-7decd84e]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;text-indent:.6rem}.wrap .classifyWrap .classifyList[data-v-7decd84e]{padding:0 .4rem}.wrap .classifyWrap .classifyList .item[data-v-7decd84e]{line-height:2.75rem;background:#fff;border-radius:.2rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;margin-top:.4rem;text-indent:.6rem;position:relative}.wrap .classifyWrap .classifyList .item[data-v-7decd84e]:after{content:\"\";position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.3rem;height:.5rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/lib-arrow.png\");background-repeat:no-repeat;background-size:100%}.wrap .feedback[data-v-7decd84e]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;padding:1.2rem 0;text-align:center;position:fixed;bottom:0;left:0;width:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      classifyList: [{
        'name': '配套信息'
      }],
      keyword: '' // 搜索关键字
    };
  },
  mounted: function mounted() {
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '产品库',
      operate_page: '部件信息',
      optionType: '打开'
    }, this);
  },
  methods: {
    /** 搜索埋点 */setPoint: function setPoint(keyword) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        // 记录埋点
        _this._Util.collectPageView3({
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '产品库',
          operate_page: '部件信息',
          optionType: '搜索',
          param1: keyword
        }, _this, function () {
          resolve();
        });
      });
    },
    /** 搜索部件信息 */search: function search() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var that, url;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              that = _this2;
              if (that.keyword.trim()) {
                _context.next = 1;
                break;
              }
              _mintUi.MessageBox.alert('请输入部件信息');
              return _context.abrupt("return");
            case 1:
              _context.next = 2;
              return _this2.setPoint(that.keyword);
            case 2:
              url = location.origin + '/v2/business/pay/appSearchResult?folderid=10087&keyword=' + encodeURIComponent(that.keyword) + '&index=4&isClick=false';
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'appSearchResult10087',
                    url: url
                  }
                });
              } else {
                location.href = url;
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 跳转到配套信息详情页 */goClassifyDetail: function goClassifyDetail() {
      var that = this;
      var url = location.origin + '/v2/partsInfo/index?tab=1';
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'partsInfo',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /** 部件信息意见反馈 */toFeedback: function toFeedback() {
      var that = this;
      var url = location.origin + '/v2/questionnaire/index?no=c4e6bf34';
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"topSearch"},[_c('div',{staticClass:"sTitle"},[_vm._v("搜部件信息")]),_vm._v(" "),_c('div',{staticClass:"Search"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"type":"text","placeholder":"输入部件型号"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('div',{on:{"click":_vm.search}},[_vm._v("搜索")])])]),_vm._v(" "),_c('div',{staticClass:"classifyWrap"},[_c('div',{staticClass:"classifyList"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.goClassifyDetail(v)}}},[_vm._v(_vm._s(v.name))])}),0)]),_vm._v(" "),_c('div',{staticClass:"feedback",on:{"click":_vm.toFeedback}},[_vm._v("部件信息意见反馈")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(384);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1106e62c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(985);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2316)
  __webpack_require__(2318)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1106e62c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1106e62c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1106e62c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_drawPrice_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2317);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("73de2da8", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-1106e62c]{font-size:0;overflow-x:hidden}.outContainer .maskLayer[data-v-1106e62c]{position:fixed;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.outContainer .maskLayer>.strategyContainer[data-v-1106e62c]{background-color:#fff;position:absolute;width:80%;top:35%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:4px}.outContainer .maskLayer>.strategyContainer>.title[data-v-1106e62c]{width:100%;text-align:center;padding-top:16px;padding-bottom:16px}.outContainer .maskLayer>.strategyContainer>.title>p[data-v-1106e62c]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .maskLayer>.strategyContainer>.content[data-v-1106e62c]{padding-bottom:34px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px;text-align:left;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;line-height:18px}.outContainer .maskLayer>.strategyContainer>.bottom[data-v-1106e62c]{overflow:hidden}.outContainer .maskLayer>.strategyContainer>.bottom>div[data-v-1106e62c]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#377ee1;width:100%;float:left;position:relative}.outContainer .shareMAsk[data-v-1106e62c]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.outContainer .shareMAsk .shareTips[data-v-1106e62c]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outContainer .shareMAsk .shareTips>p[data-v-1106e62c]:first-of-type{margin-top:.85rem}.outContainer .shareMAsk .shareTips>p[data-v-1106e62c]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.outContainer .turnplateWrap[data-v-1106e62c]{height:27.3rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_bg.jpg\");background-repeat:no-repeat;background-size:100%;position:relative}.outContainer .turnplateWrap .title[data-v-1106e62c]{width:100%;display:block}.outContainer .turnplateWrap .turnplate[data-v-1106e62c]{position:absolute;width:100%;height:22.25rem;top:4.3rem;left:0;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_turnplate_out.png\");background-repeat:no-repeat;background-size:100%}.outContainer .turnplateWrap .turnplate .plate[data-v-1106e62c]{background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_turnplate_in.png\");background-repeat:no-repeat;background-size:100%;width:15.53rem;height:15.53rem;position:absolute;top:2.8rem;left:50%;-webkit-transform:translateX(-50%) rotate(0deg);-ms-transform:translateX(-50%) rotate(0deg);transform:translateX(-50%) rotate(0deg);-webkit-transition:all 8s;transition:all 8s}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap[data-v-1106e62c]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:0;height:0}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap>div[data-v-1106e62c]{position:absolute;text-align:center;width:3.5rem;font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:700;color:#d01448;line-height:1rem;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:first-of-type{-webkit-transform:translateX(-50%) translateY(-50%) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:nth-of-type(2){-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(45deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(45deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:nth-of-type(3){-webkit-transform:translateX(-50%) translateY(-50%) rotate(90deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(90deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(90deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:nth-of-type(4){-webkit-transform:translateX(-50%) translateY(-50%) rotate(135deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(135deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(135deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:nth-of-type(5){-webkit-transform:translateX(-50%) translateY(-50%) rotate(180deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(180deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(180deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:nth-of-type(6){-webkit-transform:translateX(-50%) translateY(-50%) rotate(225deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(225deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(225deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:nth-of-type(7){-webkit-transform:translateX(-50%) translateY(-50%) rotate(270deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(270deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(270deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-1106e62c]:nth-of-type(8){-webkit-transform:translateX(-50%) translateY(-50%) rotate(315deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(315deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(315deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .roll[data-v-1106e62c]{-webkit-animation:roll-data-v-1106e62c 4s linear;animation:roll-data-v-1106e62c 4s linear}@-webkit-keyframes roll-data-v-1106e62c{0%{-webkit-transform:translateX(-50%) rotate(0deg);transform:translateX(-50%) rotate(0deg)}to{-webkit-transform:translateX(-50%) rotate(1turn);transform:translateX(-50%) rotate(1turn)}}@keyframes roll-data-v-1106e62c{0%{-webkit-transform:translateX(-50%) rotate(0deg);transform:translateX(-50%) rotate(0deg)}to{-webkit-transform:translateX(-50%) rotate(1turn);transform:translateX(-50%) rotate(1turn)}}.outContainer .turnplateWrap .turnplate .btnWrap[data-v-1106e62c]{position:absolute;top:7.03rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:5.68rem;height:6.58rem}.outContainer .turnplateWrap .turnplate .btnWrap>img[data-v-1106e62c]{width:100%;height:100%}.outContainer .turnplateWrap .turnplate .btnWrap .start[data-v-1106e62c]{position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/start2.png\");background-repeat:no-repeat;background-size:100%}.outContainer .turnplateWrap .turnplate .btnWrap .nostart[data-v-1106e62c]{position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/start_grey2.png\");background-repeat:no-repeat;background-size:100%}.outContainer .turnplateWrap .turnplate .lotteryNum[data-v-1106e62c]{position:absolute;left:50%;bottom:.7rem;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700;color:#fff;line-height:1}.outContainer .turnplateWrap .turnplate .lotteryNum>span[data-v-1106e62c]{color:#ffe567;font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700}.outContainer .main[data-v-1106e62c]{margin-top:-1px;background-color:#223de2;padding-top:.8rem}.outContainer .main .tips[data-v-1106e62c]{margin:auto;width:10.5rem;height:1.83rem;line-height:1.83rem;background:rgba(0,0,0,.4);border-radius:.91rem;position:relative}.outContainer .main .tips[data-v-1106e62c]:before{content:\"\";width:1px;height:.6rem;background:#fff;opacity:.5;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer .main .tips span[data-v-1106e62c]:first-of-type{left:1.2rem}.outContainer .main .tips span[data-v-1106e62c]:first-of-type,.outContainer .main .tips span[data-v-1106e62c]:nth-of-type(2){color:#fff;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main .tips span[data-v-1106e62c]:nth-of-type(2){right:1.2rem}.outContainer .main .luckList[data-v-1106e62c]{padding-top:1.4rem}.outContainer .main .luckList .title[data-v-1106e62c]{text-align:center}.outContainer .main .luckList .title>div[data-v-1106e62c]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#fff;line-height:1.25rem;position:relative;margin:0 auto;display:inline-block}.outContainer .main .luckList .title>div[data-v-1106e62c]:before{background-image:url(" + escape(__webpack_require__(1370)) + ");left:-1.33rem}.outContainer .main .luckList .title>div[data-v-1106e62c]:after,.outContainer .main .luckList .title>div[data-v-1106e62c]:before{content:\"\";width:.88rem;height:.3rem;background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main .luckList .title>div[data-v-1106e62c]:after{background-image:url(" + escape(__webpack_require__(1371)) + ");right:-1.33rem}.outContainer .main .luckList .content[data-v-1106e62c]{margin-top:.6rem}.outContainer .main .luckList .content>img[data-v-1106e62c]{width:17.55rem;display:block;margin:0 auto}.outContainer .main .luckList .content .scrollWrap[data-v-1106e62c]{margin:0 auto;position:relative;top:-1.8rem;width:16.2rem;height:14.4rem;background-color:#fff;overflow:hidden}.outContainer .main .luckList .content .scrollWrap .noLucker[data-v-1106e62c]{text-align:center;padding-top:3.2rem}.outContainer .main .luckList .content .scrollWrap .noLucker>img[data-v-1106e62c]{width:3.1rem;height:2.25rem}.outContainer .main .luckList .content .scrollWrap .noLucker>p[data-v-1106e62c]{font-family:PingFangSC-Regular;font-weight:400;color:#333;margin-top:.43rem}.outContainer .main .luckList .content .scrollWrap .scrollLine[data-v-1106e62c]{-webkit-transition:all 1s;transition:all 1s;background-color:#fff;overflow:hidden}.outContainer .main .luckList .content .scrollWrap .scrollLine>span[data-v-1106e62c]{float:left;line-height:1.8rem;height:1.8rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;text-align:center;border-top:1px solid #eee;border-bottom:1px solid #eee}.outContainer .main .luckList .content .scrollWrap .scrollLine>span[data-v-1106e62c]:first-of-type{width:30%;border-right:1px solid #eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .main .luckList .content .scrollWrap .scrollLine>span[data-v-1106e62c]:nth-of-type(2){width:70%}.outContainer .van-popup[data-v-1106e62c]{background-color:transparent}.outContainer .countdown-box[data-v-1106e62c]{width:14.95rem;height:14.75rem;background-color:#fff;border-radius:.8rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column}.outContainer .countdown-box .title[data-v-1106e62c]{height:4.85rem;line-height:4.85rem;text-align:center;color:#fff;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;background:#fff url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/cdPopBg.png\") 0 0/cover no-repeat}.outContainer .countdown-box .title .van-count-down[data-v-1106e62c]{display:inline;color:#fff;font-size:1.6rem;font-weight:600}.outContainer .countdown-box .con[data-v-1106e62c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:1.05rem;text-align:center}.outContainer .countdown-box .con .text-box[data-v-1106e62c]{font-size:.8rem;color:#333;font-weight:400}.outContainer .countdown-box .bottom[data-v-1106e62c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;padding:.8rem}.outContainer .countdown-box .bottom .i-know-btn[data-v-1106e62c]{width:9.65rem;height:2.4rem;line-height:2.4rem;background:-webkit-gradient(linear,left top,left bottom,from(#ff7398),to(#d9184b));background:linear-gradient(180deg,#ff7398,#d9184b);border-radius:1.2rem;text-align:center;font-size:.8rem;color:#fff}.outContainer .countdown-box .bottom .i-know-btn[data-v-1106e62c] :active{background:#fff}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/分享.f82e95e.png";module.exports = __webpack_require__.p + "static/img/左-白色.65d942f.png";module.exports = __webpack_require__.p + "static/img/右-白色.5acf58d.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2319);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("13c02983", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".flip-list-move{-webkit-transition:-webkit-transform 1s;transition:-webkit-transform 1s;transition:transform 1s;transition:transform 1s,-webkit-transform 1s}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _countDown.default.name, _countDown.default),
  data: function data() {
    return {
      tooltip: '',
      time: 0,
      isFinished: true,
      show: false,
      canDraw: false,
      lotteryInfo: '',
      isShowInfo: false,
      showShareBox: false,
      priceList: [{
        name: '全能王<br/>免单',
        id: 1
      }, {
        name: '会员6个月卡修宝典1111',
        id: 2
      }, {
        name: '谢谢参与',
        id: 3
      }, {
        name: '卡修宝典5周年polo衫',
        id: 4
      }, {
        name: '星豆10000个',
        id: 5
      }, {
        name: '谢谢参与 再接再厉',
        id: 6
      }, {
        name: '卡修宝典会员6个月',
        id: 7
      }, {
        name: '星豆1000个',
        id: 8
      }],
      isDrawing: false,
      turnPlate: null,
      // 大转盘DOM对象
      minTurns: 8,
      // 最少旋转圈数
      priceIndex: 1,
      // 奖品索引
      timer: null,
      allLuckerList: [],
      showLuckerList: [],
      luckerListInited: false
    };
  },
  created: function created() {
    this.getPriceAndUserInfo();
    this.getLuckerList();
  },
  mounted: function mounted() {
    this.turnPlate = this.$refs.plate;
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
  },
  methods: {
    /**
     * 关闭倒计时弹层
     */
    closeCDpop: function closeCDpop() {
      this.show = false;
    },
    /**
     * 倒计时结束
     */
    finishFn: function finishFn() {
      this.show = false;
      this.isFinished = true;
      this.isDrawing = false;
    },
    /**
     * 中奖名单滚动
     */
    changeLuckerList: function changeLuckerList() {
      this.showLuckerList.splice(0, 0, this.allLuckerList.shift());
      this.allLuckerList.push(this.showLuckerList.pop());
    },
    /**
     * 抽奖按钮置灰时的提示
     */
    noTimes: function noTimes() {
      var _this = this;
      if (this.isDrawing) return;
      if (this.lotteryInfo.status !== 1) {
        // 判断抽奖活动状态
        (0, _mintUi.Toast)({
          message: this.lotteryInfo.status ? '活动已结束' : '活动未开始',
          position: 'middle',
          duration: 1500
        });
      } else if (this.lotteryInfo.canDraws === '0') {
        if (this.lotteryInfo.btnCopy && this.lotteryInfo.btnLink) {
          (0, _mintUi.MessageBox)({
            title: '',
            message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u62B1\u6B49\u60A8\u7684\u62BD\u5956\u6B21\u6570\u5DF2\u7528\u5B8C</p>",
            confirmButtonText: this.lotteryInfo.btnCopy,
            showCancelButton: true,
            cancelButtonText: '我知道了',
            closeOnClickModal: true
          }).then(function (action) {
            if (action === 'confirm') {
              _this._Util.collectPageView3({
                postUrl: _this._Api.POST_COLLECT,
                moduleType: '大转盘',
                operate_page: '大转盘抽奖',
                optionType: '点击',
                param1: _this.lotteryInfo.lotteryNo,
                param2: _this.lotteryInfo.btnCopy,
                param3: _this.lotteryInfo.btnLink
              }, _this, function () {
                if (_this._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'newYear2020' + new Date().getTime(),
                      url: _this.lotteryInfo.btnLink
                    }
                  });
                } else {
                  location.href = _this.lotteryInfo.btnLink;
                }
              });
            } else {
              _this._Util.collectPageView3({
                postUrl: _this._Api.POST_COLLECT,
                moduleType: '大转盘',
                operate_page: '大转盘抽奖',
                optionType: '点击',
                param1: _this.lotteryInfo.lotteryNo,
                param2: '我知道了'
              }, _this);
            }
          });
        } else {
          (0, _mintUi.MessageBox)({
            title: '',
            message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u62B1\u6B49\u60A8\u7684\u62BD\u5956\u6B21\u6570\u5DF2\u7528\u5B8C</p>",
            confirmButtonText: '我知道了',
            closeOnClickModal: true
          }).then(function (action) {
            if (action === 'confirm') {
              _this._Util.collectPageView3({
                postUrl: _this._Api.POST_COLLECT,
                moduleType: '大转盘',
                operate_page: '大转盘抽奖',
                optionType: '点击',
                param1: _this.lotteryInfo.lotteryNo,
                param2: '我知道了'
              }, _this);
            }
          });
        }
      }
    },
    /**
     * 开始抽奖逻辑
     */
    startDraw: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this2 = this;
      var priceIndex, priceRes, deg, _t;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (!(this.lotteryInfo.canDraws === '0')) {
              _context.next = 1;
              break;
            }
            (0, _mintUi.Toast)({
              message: '抽奖次数已用完',
              position: 'middle',
              duration: 1500
            });
            return _context.abrupt("return");
          case 1:
            if (this.isFinished) {
              _context.next = 2;
              break;
            }
            this.show = true;
            return _context.abrupt("return");
          case 2:
            if (!this.isDrawing) {
              _context.next = 3;
              break;
            }
            return _context.abrupt("return");
          case 3:
            this.isDrawing = true;
            _context.prev = 4;
            _context.next = 5;
            return this.getLotteryResult();
          case 5:
            priceRes = _context.sent;
            if (priceRes.remainingTimes) {
              this.lotteryInfo.canDraws = priceRes.remainingTimes;
            }
            priceIndex = this.lotteryInfo.prizes.findIndex(function (val) {
              return val.id === priceRes.prizeId;
            });
            _context.next = 7;
            break;
          case 6:
            _context.prev = 6;
            _t = _context["catch"](4);
            priceIndex = 7;
          case 7:
            if (!(priceRes.intervalSwitch && priceRes.intervalTime > 0)) {
              _context.next = 8;
              break;
            }
            this.show = true;
            if (this.time > 0) {
              this.$refs.countDown.reset();
            }
            this.isDrawing = false;
            this.time = priceRes.intervalTime * 1000;
            this.tooltip = priceRes.tooltip || '手气太旺了，等等再抽吧。';
            this.isFinished = false;
            if (this.$refs.countDown) {
              this.$refs.countDown.start();
            }
            return _context.abrupt("return");
          case 8:
            deg = this.minTurns * 360 - 20 + Math.floor(Math.random() * 40) - priceIndex * 45;
            if (priceRes) {
              _context.next = 9;
              break;
            }
            (0, _mintUi.Toast)({
              message: '请稍后再试',
              position: 'middle',
              duration: 800
            });
            this.isDrawing = false;
            this.turnPlate.style.transform = 'translateX(-50%) rotateZ(0deg)';
            return _context.abrupt("return");
          case 9:
            this.turnPlate.style.transform = 'translateX(-50%) rotateZ(' + deg + 'deg)';
            setTimeout(function () {
              _this2.isDrawing = false;
              _this2.minTurns += 8;
              if (priceRes.hasWinning) {
                (0, _mintUi.MessageBox)({
                  title: "\u606D\u559C\u60A8,\u83B7\u5F97",
                  message: "<p style=\"font-size:1rem;color:#223DE2;text-align:center;padding-top:0.5rem;padding-bottom:0.5rem;\" >".concat(priceRes.prizeName, "</p>"),
                  confirmButtonText: '分享',
                  cancelButtonText: '继续抽奖',
                  showCancelButton: true,
                  closeOnClickModal: true
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this2.showShareBox = true;
                  } else {
                    _this2.startDraw();
                  }
                });
              } else {
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u5DEE\u4E00\u70B9\u5C31\u4E2D\u5956\u4E86,\u8BF7\u518D\u63A5\u518D\u5389\u54E6!</p>",
                  confirmButtonText: '我知道了',
                  closeOnClickModal: true
                });
              }
            }, 8000);
          case 10:
          case "end":
            return _context.stop();
        }
      }, _callee, this, [[4, 6]]);
    }))),
    /**
     * 获取抽奖结果
     */
    getLotteryResult: function getLotteryResult() {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.POST_ACTIVITY_TURNPLATE_USER_DRAW_PRICE, {
          lotteryNo: _this3.$route.query.lotteryno,
          data: _this3.$route.query.data || '',
          source: _this3._Util.isApp() ? 'app' : 'weixin'
        }, function (data) {
          resolve(data);
        }, function (err) {
          reject(err);
        }, _this3);
      });
    },
    /**
     * 展示活动说明
     */
    showTips: function showTips() {
      if (this.isDrawing) {
        (0, _mintUi.Toast)({
          message: '正在抽奖中...',
          position: 'middle',
          duration: 800
        });
        return;
      }
      this.isShowInfo = true;
    },
    /**
     * 进入我的奖品页
     */
    goPriceList: function goPriceList() {
      if (this.isDrawing) {
        (0, _mintUi.Toast)({
          message: '正在抽奖中...',
          position: 'middle',
          duration: 800
        });
        return;
      }
      this.$router.push({
        name: 'priceList',
        query: {
          title: this.lotteryInfo.title,
          lotteryno: this.$route.query.lotteryno
        }
      });
    },
    /**
     * 获取奖品及抽奖活动基本信息
     */
    getPriceAndUserInfo: function getPriceAndUserInfo() {
      var _this4 = this;
      this._Util.post(this._Api.POST_ACTIVITY_TURNPLATE_PRICE_LIST, {
        lotteryNo: this.$route.query.lotteryno,
        data: this.$route.query.data || '',
        source: this._Util.isApp() ? 'app' : 'weixin'
      }, function (data) {
        _this4.lotteryInfo = data;
        document.title = data.title;
        _this4.share();
        if (data.status !== 1) {
          // 判断抽奖活动是否开始
          (0, _mintUi.Toast)({
            message: data.status ? '活动已结束' : '活动未开始',
            position: 'middle',
            duration: 1500
          });
          _this4.canDraw = false;
          return;
        }
        if (data.pageStatus === 0) {
          // sql限定用户之外，无权限抽奖
          _this4.$router.replace({
            name: 'fms'
          });
        } else if (data.pageStatus === 1) {
          // sql限定用户之内，有权限抽奖
          _this4.canDraw = true;
        } else {
          // sql未限定 根据抽奖活动后台设定判断逻辑
          // if(data.targetUsers===0&&data.userStatus===0) {  // 判断是否限制用户类型
          //   MessageBox({
          //     title: '认证提示',
          //     message: '您当前还未认证， 认证享受更多功能',
          //     confirmButtonText: '去认证',
          //     showCancelButton: false,
          //     closeOnClickModal: false
          //   }).then(action => {
          //     if (action === 'confirm') {
          //       this.$router.replace({name:'personalCertification',query:{from: 'drawPrice'}});
          //     }
          //   })
          //   return
          // }
          if (data.targetUsers === 0 && data.userStatus === 0) {
            // 限定用户为 认证用户；但是当前用户为非认证用户
            _this4.$router.replace({
              name: 'fms'
            });
          } else if (data.targetUsers === 1 && data.userStatus !== 0) {
            // 限定用户为 非认证用户； 但是当前用户为认证用户
            _this4.$router.replace({
              name: 'fms'
            });
          } else {
            _this4.canDraw = true;
          }
        }
      }, function () {}, this);
    },
    /**
     * 获取中奖名单
     */
    getLuckerList: function getLuckerList() {
      var _this5 = this;
      this._Util.post(this._Api.POST_ACTIVITY_TURNPLATE_PRICE_RECORD_LIST, {
        lotteryNo: this.$route.query.lotteryno
      }, function (data) {
        _this5.luckerListInited = true;
        if (data.length <= 9) {
          _this5.showLuckerList = data;
        } else {
          _this5.showLuckerList = data.slice(0, 9);
          _this5.allLuckerList = data;
          _this5.allLuckerList.splice(0, 9);
          _this5.timer = setInterval(function () {
            _this5.changeLuckerList();
          }, 1000);
        }
      }, function () {}, this, true);
    },
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.lotteryInfo.title,
                  desc: '我在卡修宝典抽中大奖啦！快来参加吧',
                  link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.lotteryInfo.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.lotteryInfo.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.lotteryInfo.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_vm._m(0)]):_vm._e(),_vm._v(" "),_c('transition',{attrs:{"name":"fade"}},[(_vm.isShowInfo)?_c('div',{staticClass:"maskLayer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("活动规则")])]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.lotteryInfo.remark)}}),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){_vm.isShowInfo=false;}}},[_vm._v("我知道了")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"turnplateWrap"},[_c('img',{staticClass:"title",attrs:{"src":"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_title2.png","alt":""}}),_vm._v(" "),_c('div',{staticClass:"turnplate"},[_c('div',{ref:"plate",class:['plate']},[_c('div',{staticClass:"priceWrap"},_vm._l((_vm.lotteryInfo.prizes),function(v,i){return _c('div',{key:i,domProps:{"innerHTML":_vm._s(v.name)}})}),0)]),_vm._v(" "),_c('div',{staticClass:"btnWrap"},[((!_vm.isDrawing)&&_vm.canDraw&&(_vm.lotteryInfo.canDraws>0))?_c('div',{staticClass:"start",on:{"click":_vm.startDraw}}):_c('div',{staticClass:"nostart",on:{"click":_vm.noTimes}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.lotteryInfo.status===1),expression:"lotteryInfo.status===1"}],staticClass:"lotteryNum"},[_vm._v("剩余 "),_c('span',[_vm._v(_vm._s(_vm.lotteryInfo.canDraws)+"次")]),_vm._v(" 抽奖")])])]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"tips"},[_c('span',{on:{"click":_vm.showTips}},[_vm._v("抽奖说明")]),_vm._v(" "),_c('span',{on:{"click":_vm.goPriceList}},[_vm._v("我的奖品")])]),_vm._v(" "),_c('div',{staticClass:"luckList"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"content"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/activity/draw-price/price_list.png","alt":""}}),_vm._v(" "),_c('div',{staticClass:"scrollWrap"},[(_vm.luckerListInited&&_vm.showLuckerList.length===0)?_c('div',{staticClass:"noLucker"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_nolucker.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("暂时没人获得奖品哦")])]):_vm._e(),_vm._v(" "),_c('transition-group',{style:({transform: _vm.allLuckerList.length>0?'translateY(-1.8rem)':'translateY(0)'}),attrs:{"tag":"div","name":"flip-list"}},[_vm._v("\n            "+_vm._s(_vm.showLuckerList)+"\n            "),_vm._l((_vm.showLuckerList),function(v,i){return _c('div',{key:i + v.name,staticClass:"scrollLine"},[_c('span',[_vm._v(_vm._s(v.userName))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.name))])])})],2)],1)])])]),_vm._v(" "),_c('van-popup',{model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"countdown-box"},[_c('div',{staticClass:"title"},[_c('van-count-down',{ref:"countDown",attrs:{"time":_vm.time,"format":"ss"},on:{"finish":_vm.finishFn}}),_vm._v("s")],1),_vm._v(" "),_c('div',{staticClass:"con"},[_c('div',{staticClass:"text-box"},[_vm._v(_vm._s(_vm.tooltip))])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{staticClass:"i-know-btn",on:{"click":function($event){return _vm.closeCDpop()}}},[_vm._v("我知道了")])])])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('div',[_vm._v("中奖名单")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(385);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fd0e1ec2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(986);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2320)
  __webpack_require__(2324)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-fd0e1ec2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fd0e1ec2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fd0e1ec2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_priceList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2321);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("02afed1e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-fd0e1ec2]{height:100%;background-color:#3b08bc;position:relative}.outContainer .bgImg[data-v-fd0e1ec2]{width:100%;position:absolute;top:0;left:0}.outContainer .bgColor[data-v-fd0e1ec2]{width:17.55rem;background:#fff;position:absolute;height:50%;left:50%;bottom:0;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.outContainer .main[data-v-fd0e1ec2]{position:absolute;top:0;left:0;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-top:1.2rem;padding-bottom:1rem}.outContainer .main .priceList[data-v-fd0e1ec2]{margin:0 auto;width:17.55rem;min-height:90%;background:#fff;border-radius:.4rem}.outContainer .main .priceList .title[data-v-fd0e1ec2]{text-align:center;padding-top:1rem}.outContainer .main .priceList .title>div[data-v-fd0e1ec2]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#223de2;line-height:1.25rem;position:relative;margin:0 auto;display:inline-block}.outContainer .main .priceList .title>div[data-v-fd0e1ec2]:before{width:1rem;background-image:url(" + escape(__webpack_require__(2322)) + ");left:-1.33rem}.outContainer .main .priceList .title>div[data-v-fd0e1ec2]:after,.outContainer .main .priceList .title>div[data-v-fd0e1ec2]:before{content:\"\";height:.3rem;background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main .priceList .title>div[data-v-fd0e1ec2]:after{width:.88rem;background-image:url(" + escape(__webpack_require__(2323)) + ");right:-1.33rem}.outContainer .main .priceList .content[data-v-fd0e1ec2]{margin-top:1.4rem;padding-bottom:1rem}.outContainer .main .priceList .content .item[data-v-fd0e1ec2]{width:16.35rem;height:2.98rem;background:rgba(34,61,226,.07);border-radius:.1rem;border:1px solid #6074ee;margin:0 auto .8rem;padding-top:.5rem;padding-left:.5rem;position:relative}.outContainer .main .priceList .content .item .name[data-v-fd0e1ec2]{font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700;color:#223de2;line-height:1.05rem}.outContainer .main .priceList .content .item .detail[data-v-fd0e1ec2]{margin-top:.1rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:.83rem}.outContainer .main .priceList .content .item .time[data-v-fd0e1ec2]{position:absolute;top:.5rem;right:.5rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;line-height:.83rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/左.e558341.png";module.exports = __webpack_require__.p + "static/img/右.5e0a400.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2325);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6e914ec7", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".priceList .mescroll-empty{padding-top:2rem!important}.priceList .mescroll-empty .empty-icon{width:2.6rem!important}.priceList .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {
    parseData: function parseData(val) {
      if (!val) return;
      var date = new Date(val);
      var yy = date.getFullYear();
      var mm = date.getMonth() + 1;
      var dd = date.getDate();
      return yy + '.' + mm + '.' + dd;
    }
  },
  components: {},
  data: function data() {
    return {
      priceList: [],
      mescroll: null
    };
  },
  mounted: function mounted() {
    this.share();
    this.mescroll = new _mescroll.default(this.$refs.pricescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getPriceRecordList,
        auto: true,
        isBounce: true,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        htmlNodata: '',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'priceList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          icon: 'http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_noprice.png',
          tip: '您还没有获得过奖品' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /** 获取课程列表数据 */getPriceRecordList: function getPriceRecordList(page) {
      var _this = this;
      this._Util.post(this._Api.POST_ACTIVITY_TURNPLATE_USER_ALL_PRICE_LIST, {
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this.priceList = [];
        }
        _this.priceList = _this.priceList.concat(data);
        _this.$nextTick(function () {
          _this.mescroll.endSuccess(data.length);
        });
      }, function () {
        _this.mescroll.endErr();
      }, this, true);
    },
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.$route.query.title,
                  desc: '我在卡修宝典抽中大奖啦！快来参加吧',
                  link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.$route.query.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.$route.query.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.$route.query.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: location.origin + '/v2/singlepage/drawprice?lotteryno=' + that.$route.query.lotteryno,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer priceList"},[_c('img',{staticClass:"bgImg",attrs:{"src":"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_bg_2.jpg","alt":""}}),_vm._v(" "),_c('div',{staticClass:"bgColor"}),_vm._v(" "),_c('div',{ref:"pricescroll",staticClass:"main"},[_c('div',{staticClass:"priceList",attrs:{"id":"priceList"}},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._l((_vm.priceList),function(v,i){return _c('div',{key:i,staticClass:"item"},[_c('div',{staticClass:"name"},[_vm._v("奖品："+_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"detail"},[_vm._v("["+_vm._s(v.title)+"]活动中获得奖励")]),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm._f("parseData")(v.date)))])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('div',[_vm._v("我的奖品")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(386);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28d3c1cf_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(987);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2326)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-28d3c1cf"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28d3c1cf_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28d3c1cf_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invitee_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2327);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6b332f13", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-28d3c1cf]{position:fixed;top:0;left:0;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.wrap .main[data-v-28d3c1cf]{overflow-x:hidden;overflow-y:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-overflow-scrolling:touch}.wrap .main .top[data-v-28d3c1cf]{background-image:url(http://static2.kaxiuyun.com/kxy/app/activityBg.jpg);background-position-x:center;background-repeat:no-repeat;background-size:100vw auto;position:relative;padding-top:2.85rem;padding-bottom:1.2rem}.wrap .main .top>div[data-v-28d3c1cf]{position:relative;margin:0 auto;width:16.05rem;background-color:#fff;box-shadow:0 5px 10px 0 rgba(76,103,185,.21);border-radius:2px;padding:2.85rem .5rem .5rem}.wrap .main .top>div .headWrap[data-v-28d3c1cf]{position:absolute;top:-1.2rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:center}.wrap .main .top>div .headWrap img[data-v-28d3c1cf]{width:2.5rem;height:2.5rem;border-radius:50%}.wrap .main .top>div .headWrap p[data-v-28d3c1cf]{margin-top:.05rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333;text-align:center}.wrap .main .top>div p[data-v-28d3c1cf]{font-family:PingFangSC-Medium;font-size:.9rem;color:#333}.wrap .main .htmlWrap[data-v-28d3c1cf]{padding:0 .6rem}.wrap .btnWrap[data-v-28d3c1cf]{height:3rem;background-color:#fff;padding:.4rem .6rem;border-top:1px solid #ddd}.wrap .btnWrap>div[data-v-28d3c1cf]{font-family:PingFangSC-Regular;font-size:.85rem;text-align:center;padding-top:.45rem}.wrap .btnWrap>.rightBtn[data-v-28d3c1cf]{background-color:#377ee1;border:1px solid #377ee1;border-radius:2px;color:#fff;float:left;height:100%;width:10.75rem}.wrap .btnWrap>.leftBtn[data-v-28d3c1cf]{float:left;width:6rem;height:100%;background-color:#fff;border:1px solid #377ee1;border-radius:2px;color:#377ee1;margin-right:.8rem}.wrap .shareMAsk[data-v-28d3c1cf]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.wrap .shareMAsk .shareTips[data-v-28d3c1cf]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.wrap .shareMAsk .shareTips>p[data-v-28d3c1cf]:first-of-type{margin-top:.85rem}.wrap .shareMAsk .shareTips>p[data-v-28d3c1cf]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      activityDetail: '',
      showShareBox: false
    };
  },
  mounted: function mounted() {
    this.getShareActivity();
  },
  methods: {
    /**
     * 按钮点击逻辑
     * @param(type): share(分享) jump(跳转链接) wx_pay(支付)
     * @param(param): 按钮参数
     */
    handleClick: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(type, param) {
        var _this = this;
        var _t;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _t = type;
              _context.next = _t === 'share' ? 1 : _t === 'jump' ? 2 : _t === 'wx_pay' ? 3 : 4;
              break;
            case 1:
              this.showShareBox = true;
              return _context.abrupt("continue", 4);
            case 2:
              window.location.href = param;
              return _context.abrupt("continue", 4);
            case 3:
              if (this.$store.state.userInfo.userStatus === 0) {
                (0, _mintUi.MessageBox)({
                  title: '提示',
                  message: '您尚未认证，请先认证',
                  confirmButtonText: '去认证',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this.$router.replace({
                      name: 'personalCertification',
                      query: {
                        nextPath: window.location.href
                      }
                    });
                  }
                });
              } else {
                this._Util.post(this._Api.POST_ORDER_ACTIVITY_QUICK_PAY, {
                  mdseId: param,
                  activityId: this.$route.query.id,
                  refereeId: this.$route.query.refereeId,
                  data: this.$route.query.data || '',
                  source: this._Util.isApp() ? 'app' : 'weixin'
                }, function (data) {
                  _this._Util.wxPay(data.jsApiParameters, function () {
                    // this.recommendRecord(data.orderId);
                    (0, _mintUi.Toast)({
                      message: '支付成功',
                      position: 'middle',
                      duration: 1500
                    });
                    location.reload();
                  });
                }, function () {}, this);
              }
              return _context.abrupt("continue", 4);
            case 4:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 新增活动推荐记录
     * @param(orderId): 支付订单ID
     */
    // recommendRecord(orderId) {
    //   this._Util.post(
    //     this._Api.POST_ADD_USER_INVITATION,
    //     {
    //       activityId: this.$route.query.id,
    //       orderId,
    //       userId: this.$store.state.userInfo.userId,
    //       refereeId: this.$route.query.refereeId
    //     },
    //     data => {},
    //     () => {},
    //     this,
    //     true
    //   );
    // },
    /**
     * 获取受邀人活动详情
     */
    getShareActivity: function getShareActivity() {
      var _this2 = this;
      this._Util.post(this._Api.POST_GET_SHARE_ACTIVITY, {
        activityId: this.$route.query.id,
        userId: this.$route.query.refereeId,
        data: this.$route.query.data || '',
        source: this._Util.isApp() ? 'app' : 'weixin'
      }, function (data) {
        if (!data.flag) {
          window.location.replace(location.origin + '/v2/fms');
        }
        _this2.activityDetail = data;
        _this2.share();

        // 记录埋点
        _this2._Util.collectPageView2({
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '活动',
          operate_page: '活动',
          optionType: '打开',
          param1: _this2.activityDetail.title,
          param2: window.location.href
        }, _this2);
      }, function () {}, this);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = '/v2/shopping/invitee?id=' + that.$route.query.id + '&refereeId=' + that.$route.query.refereeId;
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.activityDetail.shareTitle,
                  desc: that.activityDetail.representNote,
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView2({
              postUrl: that._Api.POST_COLLECT,
              moduleType: '分享成功',
              operate_page: '活动页面',
              optionType: '分享',
              param1: that.$route.query.id,
              param2: window.location.href
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.activityDetail.shareTitle,
              desc: that.activityDetail.representNote,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                postUrl: that._Api.POST_COLLECT,
                moduleType: '分享成功',
                operate_page: '活动页面',
                optionType: '分享',
                param1: that.$route.query.id,
                param2: window.location.href
              }, that);
            });
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.activityDetail.shareTitle,
              desc: that.activityDetail.representNote,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                postUrl: that._Api.POST_COLLECT,
                moduleType: '分享成功',
                operate_page: '活动页面',
                optionType: '分享',
                param1: that.$route.query.id,
                param2: window.location.href
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.activityDetail.shareTitle,
              desc: that.activityDetail.representNote,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {
                that._Util.collectPageView2({
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '分享成功',
                  operate_page: '活动页面',
                  optionType: '分享',
                  param1: that.$route.query.id,
                  param2: window.location.href
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_vm._m(0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main needsclick"},[_c('div',{staticClass:"top"},[_c('div',[_c('div',{staticClass:"headWrap"},[_c('img',{attrs:{"src":_vm.activityDetail.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.activityDetail.userName))])]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.activityDetail.representNote))])])]),_vm._v(" "),_c('div',{staticClass:"htmlWrap",domProps:{"innerHTML":_vm._s(_vm.activityDetail.recommendContent)}})]),_vm._v(" "),(_vm.activityDetail.leftName&&_vm.activityDetail.rightName)?_c('div',{staticClass:"btnWrap"},[_c('div',{staticClass:"leftBtn",on:{"click":function($event){return _vm.handleClick(_vm.activityDetail.leftType, _vm.activityDetail.leftButtonParam)}}},[_vm._v(_vm._s(_vm.activityDetail.leftName))]),_vm._v(" "),_c('div',{staticClass:"rightBtn",on:{"click":function($event){return _vm.handleClick(_vm.activityDetail.rightType, _vm.activityDetail.rightButtonParam)}}},[_vm._v(_vm._s(_vm.activityDetail.rightName))])]):(_vm.activityDetail.leftName)?_c('div',{staticClass:"btnWrap"},[_c('div',{staticClass:"leftBtn",staticStyle:{"width":"17.55rem"},on:{"click":function($event){return _vm.handleClick(_vm.activityDetail.leftType, _vm.activityDetail.leftButtonParam)}}},[_vm._v(_vm._s(_vm.activityDetail.leftName))])]):(_vm.activityDetail.rightName)?_c('div',{staticClass:"btnWrap"},[_c('div',{staticClass:"rightBtn",staticStyle:{"width":"17.55rem"},on:{"click":function($event){return _vm.handleClick(_vm.activityDetail.rightType, _vm.activityDetail.rightButtonParam)}}},[_vm._v(_vm._s(_vm.activityDetail.rightName))])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(387);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8e46a406_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(988);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2328)
  __webpack_require__(2330)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-8e46a406"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8e46a406_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8e46a406_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_participant_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2329);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("38a218b1", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-8e46a406]{width:100%}.wrap .main[data-v-8e46a406]{-webkit-overflow-scrolling:touch;padding-bottom:4rem}.wrap .main .title[data-v-8e46a406]{font-family:PingFangSC-Medium;font-size:1.1rem;color:#333;padding:.8rem .6rem}.wrap .main .htmlWrap[data-v-8e46a406]{padding:0 .6rem}.wrap .btnWrap[data-v-8e46a406]{border-top:1px solid #ddd;height:3rem;background-color:#fff;padding:.4rem .6rem;position:fixed;left:0;bottom:0;width:100%}.wrap .btnWrap>div[data-v-8e46a406]{background-color:#377ee1;border-radius:2px;color:#fff;font-family:PingFangSC-Regular;font-size:.85rem;height:100%;text-align:center;padding-top:.5rem}.wrap .shareMAsk[data-v-8e46a406]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.wrap .shareMAsk .shareTips[data-v-8e46a406]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.wrap .shareMAsk .shareTips>p[data-v-8e46a406]:first-of-type{margin-top:.85rem}.wrap .shareMAsk .shareTips>p[data-v-8e46a406]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2331);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4a1e85da", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".__activity .htmlWrap img{max-width:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      activityDetail: '',
      showShareBox: false
    };
  },
  mounted: function mounted() {
    this.getActivityDetail();
  },
  methods: {
    /**
     * 新增活动推荐记录
     * @param(orderId): 支付订单ID
     */
    // recommendRecord(orderId) {
    //   this._Util.post(
    //     this._Api.POST_ADD_USER_INVITATION,
    //     {
    //       activityId: this.$route.query.id,
    //       orderId,
    //       userId: this.$store.state.userInfo.userId,
    //       refereeId: this.$route.query.userId || ''
    //     },
    //     data=>{},
    //     ()=>{},
    //     this,
    //     true
    //   )
    // },
    /**
     * 按钮点击逻辑
     * @param(type): share(分享) jump(跳转链接) wx_pay(支付)
     * @param(param): 按钮参数
     */
    handleClick: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(type, param) {
        var _this = this;
        var _t;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _t = type;
              _context.next = _t === 'share' ? 1 : _t === 'jump' ? 2 : _t === 'wx_pay' ? 3 : 4;
              break;
            case 1:
              this.showShareBox = true;
              return _context.abrupt("continue", 4);
            case 2:
              window.location.href = param;
              return _context.abrupt("continue", 4);
            case 3:
              if (this.$store.state.userInfo.userStatus === 0) {
                (0, _mintUi.MessageBox)({
                  title: '提示',
                  message: '您尚未认证，请先认证',
                  confirmButtonText: '去认证',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this.$router.replace({
                      name: 'personalCertification',
                      query: {
                        nextPath: window.location.href
                      }
                    });
                  }
                });
              } else {
                this._Util.post(this._Api.POST_ORDER_ACTIVITY_QUICK_PAY, {
                  mdseId: param,
                  activityId: this.$route.query.id,
                  refereeId: this.$route.query.userId || '',
                  data: this.$route.query.data || '',
                  source: this._Util.isApp() ? 'app' : 'weixin'
                }, function (data) {
                  _this._Util.wxPay(data.jsApiParameters, function () {
                    // this.recommendRecord(data.orderId);
                    (0, _mintUi.Toast)({
                      message: '支付成功',
                      position: 'middle',
                      duration: 1500
                    });
                    location.reload();
                  });
                }, function () {}, this);
              }
              return _context.abrupt("continue", 4);
            case 4:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 获取活动详情
     */
    getActivityDetail: function getActivityDetail() {
      var _this2 = this;
      this._Util.post(this._Api.POST_GET_ACTIVITY_DETAIL, {
        id: this.$route.query.id
      }, function (data) {
        if (!data.flag) {
          window.location.replace(location.origin + '/v2/fms');
        }
        _this2.activityDetail = data;
        document.title = _this2.activityDetail.title;
        _this2.share();

        // 记录埋点
        _this2._Util.collectPageView2({
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '活动',
          operate_page: '活动',
          optionType: '打开',
          param1: _this2.activityDetail.title,
          param2: window.location.href
        }, _this2);
      }, function () {}, this);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = that.activityDetail.type === 1 ? '/v2/shopping/participant?id=' + that.$route.query.id : '/v2/shopping/invitee?id=' + that.$route.query.id + '&refereeId=' + that.activityDetail.userId;
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.activityDetail.shareTitle,
                  desc: that.activityDetail.representNote,
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView2({
              postUrl: that._Api.POST_COLLECT,
              moduleType: '分享成功',
              operate_page: '活动页面',
              optionType: '分享',
              param1: that.$route.query.id,
              param2: window.location.href
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.activityDetail.shareTitle,
              desc: that.activityDetail.representNote,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                postUrl: that._Api.POST_COLLECT,
                moduleType: '分享成功',
                operate_page: '活动页面',
                optionType: '分享',
                param1: that.$route.query.id,
                param2: window.location.href
              }, that);
            });
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.activityDetail.shareTitle,
              desc: that.activityDetail.representNote,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                postUrl: that._Api.POST_COLLECT,
                moduleType: '分享成功',
                operate_page: '活动页面',
                optionType: '分享',
                param1: that.$route.query.id,
                param2: window.location.href
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.activityDetail.shareTitle,
              desc: that.activityDetail.representNote,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {
                that._Util.collectPageView2({
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '分享成功',
                  operate_page: '活动页面',
                  optionType: '分享',
                  param1: that.$route.query.id,
                  param2: window.location.href
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap __activity"},[(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){_vm.showShareBox = false;}}},[_vm._m(0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main needsclick"},[_c('div',{staticClass:"title"},[_vm._v("\n      "+_vm._s(_vm.activityDetail.title)+"\n    ")]),_vm._v(" "),_c('div',{staticClass:"htmlWrap",domProps:{"innerHTML":_vm._s(_vm.activityDetail.content)}})]),_vm._v(" "),_c('div',{staticClass:"btnWrap"},[_c('div',{on:{"click":function($event){return _vm.handleClick(_vm.activityDetail.actType, _vm.activityDetail.actButtonParam)}}},[_vm._v(_vm._s(_vm.activityDetail.actName))])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
(function (global, factory) {
     true ? module.exports = factory() :
    undefined;
}(this, (function () { 'use strict';

    /*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
    /* global Reflect, Promise */

    var extendStatics = function(d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };

    function __extends(d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    }

    var __assign = function() {
        __assign = Object.assign || function __assign(t) {
            for (var s, i = 1, n = arguments.length; i < n; i++) {
                s = arguments[i];
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
            }
            return t;
        };
        return __assign.apply(this, arguments);
    };

    function __awaiter(thisArg, _arguments, P, generator) {
        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
        return new (P || (P = Promise))(function (resolve, reject) {
            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
            function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
            step((generator = generator.apply(thisArg, _arguments || [])).next());
        });
    }

    function __generator(thisArg, body) {
        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
        function verb(n) { return function (v) { return step([n, v]); }; }
        function step(op) {
            if (f) throw new TypeError("Generator is already executing.");
            while (_) try {
                if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                if (y = 0, t) op = [op[0] & 2, t.value];
                switch (op[0]) {
                    case 0: case 1: t = op; break;
                    case 4: _.label++; return { value: op[1], done: false };
                    case 5: _.label++; y = op[1]; op = [0]; continue;
                    case 7: op = _.ops.pop(); _.trys.pop(); continue;
                    default:
                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                        if (t[2]) _.ops.pop();
                        _.trys.pop(); continue;
                }
                op = body.call(thisArg, _);
            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
        }
    }

    function __spreadArray(to, from, pack) {
        if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
            if (ar || !(i in from)) {
                if (!ar) ar = Array.prototype.slice.call(from, 0, i);
                ar[i] = from[i];
            }
        }
        return to.concat(ar || from);
    }

    var Bounds = /** @class */ (function () {
        function Bounds(left, top, width, height) {
            this.left = left;
            this.top = top;
            this.width = width;
            this.height = height;
        }
        Bounds.prototype.add = function (x, y, w, h) {
            return new Bounds(this.left + x, this.top + y, this.width + w, this.height + h);
        };
        Bounds.fromClientRect = function (context, clientRect) {
            return new Bounds(clientRect.left + context.windowBounds.left, clientRect.top + context.windowBounds.top, clientRect.width, clientRect.height);
        };
        Bounds.fromDOMRectList = function (context, domRectList) {
            var domRect = Array.from(domRectList).find(function (rect) { return rect.width !== 0; });
            return domRect
                ? new Bounds(domRect.left + context.windowBounds.left, domRect.top + context.windowBounds.top, domRect.width, domRect.height)
                : Bounds.EMPTY;
        };
        Bounds.EMPTY = new Bounds(0, 0, 0, 0);
        return Bounds;
    }());
    var parseBounds = function (context, node) {
        return Bounds.fromClientRect(context, node.getBoundingClientRect());
    };
    var parseDocumentSize = function (document) {
        var body = document.body;
        var documentElement = document.documentElement;
        if (!body || !documentElement) {
            throw new Error("Unable to get document size");
        }
        var width = Math.max(Math.max(body.scrollWidth, documentElement.scrollWidth), Math.max(body.offsetWidth, documentElement.offsetWidth), Math.max(body.clientWidth, documentElement.clientWidth));
        var height = Math.max(Math.max(body.scrollHeight, documentElement.scrollHeight), Math.max(body.offsetHeight, documentElement.offsetHeight), Math.max(body.clientHeight, documentElement.clientHeight));
        return new Bounds(0, 0, width, height);
    };

    /*
     * css-line-break 2.1.0 <https://github.com/niklasvh/css-line-break#readme>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var toCodePoints$1 = function (str) {
        var codePoints = [];
        var i = 0;
        var length = str.length;
        while (i < length) {
            var value = str.charCodeAt(i++);
            if (value >= 0xd800 && value <= 0xdbff && i < length) {
                var extra = str.charCodeAt(i++);
                if ((extra & 0xfc00) === 0xdc00) {
                    codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);
                }
                else {
                    codePoints.push(value);
                    i--;
                }
            }
            else {
                codePoints.push(value);
            }
        }
        return codePoints;
    };
    var fromCodePoint$1 = function () {
        var codePoints = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            codePoints[_i] = arguments[_i];
        }
        if (String.fromCodePoint) {
            return String.fromCodePoint.apply(String, codePoints);
        }
        var length = codePoints.length;
        if (!length) {
            return '';
        }
        var codeUnits = [];
        var index = -1;
        var result = '';
        while (++index < length) {
            var codePoint = codePoints[index];
            if (codePoint <= 0xffff) {
                codeUnits.push(codePoint);
            }
            else {
                codePoint -= 0x10000;
                codeUnits.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00);
            }
            if (index + 1 === length || codeUnits.length > 0x4000) {
                result += String.fromCharCode.apply(String, codeUnits);
                codeUnits.length = 0;
            }
        }
        return result;
    };
    var chars$2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$2 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$2 = 0; i$2 < chars$2.length; i$2++) {
        lookup$2[chars$2.charCodeAt(i$2)] = i$2;
    }

    /*
     * utrie 1.0.2 <https://github.com/niklasvh/utrie>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars$1$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$1$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$1$1 = 0; i$1$1 < chars$1$1.length; i$1$1++) {
        lookup$1$1[chars$1$1.charCodeAt(i$1$1)] = i$1$1;
    }
    var decode$1 = function (base64) {
        var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
        if (base64[base64.length - 1] === '=') {
            bufferLength--;
            if (base64[base64.length - 2] === '=') {
                bufferLength--;
            }
        }
        var buffer = typeof ArrayBuffer !== 'undefined' &&
            typeof Uint8Array !== 'undefined' &&
            typeof Uint8Array.prototype.slice !== 'undefined'
            ? new ArrayBuffer(bufferLength)
            : new Array(bufferLength);
        var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);
        for (i = 0; i < len; i += 4) {
            encoded1 = lookup$1$1[base64.charCodeAt(i)];
            encoded2 = lookup$1$1[base64.charCodeAt(i + 1)];
            encoded3 = lookup$1$1[base64.charCodeAt(i + 2)];
            encoded4 = lookup$1$1[base64.charCodeAt(i + 3)];
            bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
            bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
            bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
        }
        return buffer;
    };
    var polyUint16Array$1 = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 2) {
            bytes.push((buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };
    var polyUint32Array$1 = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 4) {
            bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };

    /** Shift size for getting the index-2 table offset. */
    var UTRIE2_SHIFT_2$1 = 5;
    /** Shift size for getting the index-1 table offset. */
    var UTRIE2_SHIFT_1$1 = 6 + 5;
    /**
     * Shift size for shifting left the index array values.
     * Increases possible data size with 16-bit index values at the cost
     * of compactability.
     * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.
     */
    var UTRIE2_INDEX_SHIFT$1 = 2;
    /**
     * Difference between the two shift sizes,
     * for getting an index-1 offset from an index-2 offset. 6=11-5
     */
    var UTRIE2_SHIFT_1_2$1 = UTRIE2_SHIFT_1$1 - UTRIE2_SHIFT_2$1;
    /**
     * The part of the index-2 table for U+D800..U+DBFF stores values for
     * lead surrogate code _units_ not code _points_.
     * Values for lead surrogate code _points_ are indexed with this portion of the table.
     * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)
     */
    var UTRIE2_LSCP_INDEX_2_OFFSET$1 = 0x10000 >> UTRIE2_SHIFT_2$1;
    /** Number of entries in a data block. 32=0x20 */
    var UTRIE2_DATA_BLOCK_LENGTH$1 = 1 << UTRIE2_SHIFT_2$1;
    /** Mask for getting the lower bits for the in-data-block offset. */
    var UTRIE2_DATA_MASK$1 = UTRIE2_DATA_BLOCK_LENGTH$1 - 1;
    var UTRIE2_LSCP_INDEX_2_LENGTH$1 = 0x400 >> UTRIE2_SHIFT_2$1;
    /** Count the lengths of both BMP pieces. 2080=0x820 */
    var UTRIE2_INDEX_2_BMP_LENGTH$1 = UTRIE2_LSCP_INDEX_2_OFFSET$1 + UTRIE2_LSCP_INDEX_2_LENGTH$1;
    /**
     * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
     * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.
     */
    var UTRIE2_UTF8_2B_INDEX_2_OFFSET$1 = UTRIE2_INDEX_2_BMP_LENGTH$1;
    var UTRIE2_UTF8_2B_INDEX_2_LENGTH$1 = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */
    /**
     * The index-1 table, only used for supplementary code points, at offset 2112=0x840.
     * Variable length, for code points up to highStart, where the last single-value range starts.
     * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.
     * (For 0x100000 supplementary code points U+10000..U+10ffff.)
     *
     * The part of the index-2 table for supplementary code points starts
     * after this index-1 table.
     *
     * Both the index-1 table and the following part of the index-2 table
     * are omitted completely if there is only BMP data.
     */
    var UTRIE2_INDEX_1_OFFSET$1 = UTRIE2_UTF8_2B_INDEX_2_OFFSET$1 + UTRIE2_UTF8_2B_INDEX_2_LENGTH$1;
    /**
     * Number of index-1 entries for the BMP. 32=0x20
     * This part of the index-1 table is omitted from the serialized form.
     */
    var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1 = 0x10000 >> UTRIE2_SHIFT_1$1;
    /** Number of entries in an index-2 block. 64=0x40 */
    var UTRIE2_INDEX_2_BLOCK_LENGTH$1 = 1 << UTRIE2_SHIFT_1_2$1;
    /** Mask for getting the lower bits for the in-index-2-block offset. */
    var UTRIE2_INDEX_2_MASK$1 = UTRIE2_INDEX_2_BLOCK_LENGTH$1 - 1;
    var slice16$1 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint16Array(Array.prototype.slice.call(view, start, end));
    };
    var slice32$1 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint32Array(Array.prototype.slice.call(view, start, end));
    };
    var createTrieFromBase64$1 = function (base64, _byteLength) {
        var buffer = decode$1(base64);
        var view32 = Array.isArray(buffer) ? polyUint32Array$1(buffer) : new Uint32Array(buffer);
        var view16 = Array.isArray(buffer) ? polyUint16Array$1(buffer) : new Uint16Array(buffer);
        var headerLength = 24;
        var index = slice16$1(view16, headerLength / 2, view32[4] / 2);
        var data = view32[5] === 2
            ? slice16$1(view16, (headerLength + view32[4]) / 2)
            : slice32$1(view32, Math.ceil((headerLength + view32[4]) / 4));
        return new Trie$1(view32[0], view32[1], view32[2], view32[3], index, data);
    };
    var Trie$1 = /** @class */ (function () {
        function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {
            this.initialValue = initialValue;
            this.errorValue = errorValue;
            this.highStart = highStart;
            this.highValueIndex = highValueIndex;
            this.index = index;
            this.data = data;
        }
        /**
         * Get the value for a code point as stored in the Trie.
         *
         * @param codePoint the code point
         * @return the value
         */
        Trie.prototype.get = function (codePoint) {
            var ix;
            if (codePoint >= 0) {
                if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) {
                    // Ordinary BMP code point, excluding leading surrogates.
                    // BMP uses a single level lookup.  BMP index starts at offset 0 in the Trie2 index.
                    // 16 bit data is stored in the index array itself.
                    ix = this.index[codePoint >> UTRIE2_SHIFT_2$1];
                    ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1);
                    return this.data[ix];
                }
                if (codePoint <= 0xffff) {
                    // Lead Surrogate Code Point.  A Separate index section is stored for
                    // lead surrogate code units and code points.
                    //   The main index has the code unit data.
                    //   For this function, we need the code point data.
                    // Note: this expression could be refactored for slightly improved efficiency, but
                    //       surrogate code points will be so rare in practice that it's not worth it.
                    ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET$1 + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2$1)];
                    ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1);
                    return this.data[ix];
                }
                if (codePoint < this.highStart) {
                    // Supplemental code point, use two-level lookup.
                    ix = UTRIE2_INDEX_1_OFFSET$1 - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1 + (codePoint >> UTRIE2_SHIFT_1$1);
                    ix = this.index[ix];
                    ix += (codePoint >> UTRIE2_SHIFT_2$1) & UTRIE2_INDEX_2_MASK$1;
                    ix = this.index[ix];
                    ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1);
                    return this.data[ix];
                }
                if (codePoint <= 0x10ffff) {
                    return this.data[this.highValueIndex];
                }
            }
            // Fall through.  The code point is outside of the legal range of 0..0x10ffff.
            return this.errorValue;
        };
        return Trie;
    }());

    /*
     * base64-arraybuffer 1.0.2 <https://github.com/niklasvh/base64-arraybuffer>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars$3 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$3 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$3 = 0; i$3 < chars$3.length; i$3++) {
        lookup$3[chars$3.charCodeAt(i$3)] = i$3;
    }

    var base64$1 = 'KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==';

    var LETTER_NUMBER_MODIFIER = 50;
    // Non-tailorable Line Breaking Classes
    var BK = 1; //  Cause a line break (after)
    var CR$1 = 2; //  Cause a line break (after), except between CR and LF
    var LF$1 = 3; //  Cause a line break (after)
    var CM = 4; //  Prohibit a line break between the character and the preceding character
    var NL = 5; //  Cause a line break (after)
    var WJ = 7; //  Prohibit line breaks before and after
    var ZW = 8; //  Provide a break opportunity
    var GL = 9; //  Prohibit line breaks before and after
    var SP = 10; // Enable indirect line breaks
    var ZWJ$1 = 11; // Prohibit line breaks within joiner sequences
    // Break Opportunities
    var B2 = 12; //  Provide a line break opportunity before and after the character
    var BA = 13; //  Generally provide a line break opportunity after the character
    var BB = 14; //  Generally provide a line break opportunity before the character
    var HY = 15; //  Provide a line break opportunity after the character, except in numeric context
    var CB = 16; //   Provide a line break opportunity contingent on additional information
    // Characters Prohibiting Certain Breaks
    var CL = 17; //  Prohibit line breaks before
    var CP = 18; //  Prohibit line breaks before
    var EX = 19; //  Prohibit line breaks before
    var IN = 20; //  Allow only indirect line breaks between pairs
    var NS = 21; //  Allow only indirect line breaks before
    var OP = 22; //  Prohibit line breaks after
    var QU = 23; //  Act like they are both opening and closing
    // Numeric Context
    var IS = 24; //  Prevent breaks after any and before numeric
    var NU = 25; //  Form numeric expressions for line breaking purposes
    var PO = 26; //  Do not break following a numeric expression
    var PR = 27; //  Do not break in front of a numeric expression
    var SY = 28; //  Prevent a break before; and allow a break after
    // Other Characters
    var AI = 29; //  Act like AL when the resolvedEAW is N; otherwise; act as ID
    var AL = 30; //  Are alphabetic characters or symbols that are used with alphabetic characters
    var CJ = 31; //  Treat as NS or ID for strict or normal breaking.
    var EB = 32; //  Do not break from following Emoji Modifier
    var EM = 33; //  Do not break from preceding Emoji Base
    var H2 = 34; //  Form Korean syllable blocks
    var H3 = 35; //  Form Korean syllable blocks
    var HL = 36; //  Do not break around a following hyphen; otherwise act as Alphabetic
    var ID = 37; //  Break before or after; except in some numeric context
    var JL = 38; //  Form Korean syllable blocks
    var JV = 39; //  Form Korean syllable blocks
    var JT = 40; //  Form Korean syllable blocks
    var RI$1 = 41; //  Keep pairs together. For pairs; break before and after other classes
    var SA = 42; //  Provide a line break opportunity contingent on additional, language-specific context analysis
    var XX = 43; //  Have as yet unknown line breaking behavior or unassigned code positions
    var ea_OP = [0x2329, 0xff08];
    var BREAK_MANDATORY = '!';
    var BREAK_NOT_ALLOWED$1 = '×';
    var BREAK_ALLOWED$1 = '÷';
    var UnicodeTrie$1 = createTrieFromBase64$1(base64$1);
    var ALPHABETICS = [AL, HL];
    var HARD_LINE_BREAKS = [BK, CR$1, LF$1, NL];
    var SPACE$1 = [SP, ZW];
    var PREFIX_POSTFIX = [PR, PO];
    var LINE_BREAKS = HARD_LINE_BREAKS.concat(SPACE$1);
    var KOREAN_SYLLABLE_BLOCK = [JL, JV, JT, H2, H3];
    var HYPHEN = [HY, BA];
    var codePointsToCharacterClasses = function (codePoints, lineBreak) {
        if (lineBreak === void 0) { lineBreak = 'strict'; }
        var types = [];
        var indices = [];
        var categories = [];
        codePoints.forEach(function (codePoint, index) {
            var classType = UnicodeTrie$1.get(codePoint);
            if (classType > LETTER_NUMBER_MODIFIER) {
                categories.push(true);
                classType -= LETTER_NUMBER_MODIFIER;
            }
            else {
                categories.push(false);
            }
            if (['normal', 'auto', 'loose'].indexOf(lineBreak) !== -1) {
                // U+2010, – U+2013, 〜 U+301C, ゠ U+30A0
                if ([0x2010, 0x2013, 0x301c, 0x30a0].indexOf(codePoint) !== -1) {
                    indices.push(index);
                    return types.push(CB);
                }
            }
            if (classType === CM || classType === ZWJ$1) {
                // LB10 Treat any remaining combining mark or ZWJ as AL.
                if (index === 0) {
                    indices.push(index);
                    return types.push(AL);
                }
                // LB9 Do not break a combining character sequence; treat it as if it has the line breaking class of
                // the base character in all of the following rules. Treat ZWJ as if it were CM.
                var prev = types[index - 1];
                if (LINE_BREAKS.indexOf(prev) === -1) {
                    indices.push(indices[index - 1]);
                    return types.push(prev);
                }
                indices.push(index);
                return types.push(AL);
            }
            indices.push(index);
            if (classType === CJ) {
                return types.push(lineBreak === 'strict' ? NS : ID);
            }
            if (classType === SA) {
                return types.push(AL);
            }
            if (classType === AI) {
                return types.push(AL);
            }
            // For supplementary characters, a useful default is to treat characters in the range 10000..1FFFD as AL
            // and characters in the ranges 20000..2FFFD and 30000..3FFFD as ID, until the implementation can be revised
            // to take into account the actual line breaking properties for these characters.
            if (classType === XX) {
                if ((codePoint >= 0x20000 && codePoint <= 0x2fffd) || (codePoint >= 0x30000 && codePoint <= 0x3fffd)) {
                    return types.push(ID);
                }
                else {
                    return types.push(AL);
                }
            }
            types.push(classType);
        });
        return [indices, types, categories];
    };
    var isAdjacentWithSpaceIgnored = function (a, b, currentIndex, classTypes) {
        var current = classTypes[currentIndex];
        if (Array.isArray(a) ? a.indexOf(current) !== -1 : a === current) {
            var i = currentIndex;
            while (i <= classTypes.length) {
                i++;
                var next = classTypes[i];
                if (next === b) {
                    return true;
                }
                if (next !== SP) {
                    break;
                }
            }
        }
        if (current === SP) {
            var i = currentIndex;
            while (i > 0) {
                i--;
                var prev = classTypes[i];
                if (Array.isArray(a) ? a.indexOf(prev) !== -1 : a === prev) {
                    var n = currentIndex;
                    while (n <= classTypes.length) {
                        n++;
                        var next = classTypes[n];
                        if (next === b) {
                            return true;
                        }
                        if (next !== SP) {
                            break;
                        }
                    }
                }
                if (prev !== SP) {
                    break;
                }
            }
        }
        return false;
    };
    var previousNonSpaceClassType = function (currentIndex, classTypes) {
        var i = currentIndex;
        while (i >= 0) {
            var type = classTypes[i];
            if (type === SP) {
                i--;
            }
            else {
                return type;
            }
        }
        return 0;
    };
    var _lineBreakAtIndex = function (codePoints, classTypes, indicies, index, forbiddenBreaks) {
        if (indicies[index] === 0) {
            return BREAK_NOT_ALLOWED$1;
        }
        var currentIndex = index - 1;
        if (Array.isArray(forbiddenBreaks) && forbiddenBreaks[currentIndex] === true) {
            return BREAK_NOT_ALLOWED$1;
        }
        var beforeIndex = currentIndex - 1;
        var afterIndex = currentIndex + 1;
        var current = classTypes[currentIndex];
        // LB4 Always break after hard line breaks.
        // LB5 Treat CR followed by LF, as well as CR, LF, and NL as hard line breaks.
        var before = beforeIndex >= 0 ? classTypes[beforeIndex] : 0;
        var next = classTypes[afterIndex];
        if (current === CR$1 && next === LF$1) {
            return BREAK_NOT_ALLOWED$1;
        }
        if (HARD_LINE_BREAKS.indexOf(current) !== -1) {
            return BREAK_MANDATORY;
        }
        // LB6 Do not break before hard line breaks.
        if (HARD_LINE_BREAKS.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB7 Do not break before spaces or zero width space.
        if (SPACE$1.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB8 Break before any character following a zero-width space, even if one or more spaces intervene.
        if (previousNonSpaceClassType(currentIndex, classTypes) === ZW) {
            return BREAK_ALLOWED$1;
        }
        // LB8a Do not break after a zero width joiner.
        if (UnicodeTrie$1.get(codePoints[currentIndex]) === ZWJ$1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // zwj emojis
        if ((current === EB || current === EM) && UnicodeTrie$1.get(codePoints[afterIndex]) === ZWJ$1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB11 Do not break before or after Word joiner and related characters.
        if (current === WJ || next === WJ) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB12 Do not break after NBSP and related characters.
        if (current === GL) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB12a Do not break before NBSP and related characters, except after spaces and hyphens.
        if ([SP, BA, HY].indexOf(current) === -1 && next === GL) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB13 Do not break before ‘]’ or ‘!’ or ‘;’ or ‘/’, even after spaces.
        if ([CL, CP, EX, IS, SY].indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB14 Do not break after ‘[’, even after spaces.
        if (previousNonSpaceClassType(currentIndex, classTypes) === OP) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB15 Do not break within ‘”[’, even with intervening spaces.
        if (isAdjacentWithSpaceIgnored(QU, OP, currentIndex, classTypes)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB16 Do not break between closing punctuation and a nonstarter (lb=NS), even with intervening spaces.
        if (isAdjacentWithSpaceIgnored([CL, CP], NS, currentIndex, classTypes)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB17 Do not break within ‘——’, even with intervening spaces.
        if (isAdjacentWithSpaceIgnored(B2, B2, currentIndex, classTypes)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB18 Break after spaces.
        if (current === SP) {
            return BREAK_ALLOWED$1;
        }
        // LB19 Do not break before or after quotation marks, such as ‘ ” ’.
        if (current === QU || next === QU) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB20 Break before and after unresolved CB.
        if (next === CB || current === CB) {
            return BREAK_ALLOWED$1;
        }
        // LB21 Do not break before hyphen-minus, other hyphens, fixed-width spaces, small kana, and other non-starters, or after acute accents.
        if ([BA, HY, NS].indexOf(next) !== -1 || current === BB) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB21a Don't break after Hebrew + Hyphen.
        if (before === HL && HYPHEN.indexOf(current) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB21b Don’t break between Solidus and Hebrew letters.
        if (current === SY && next === HL) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB22 Do not break before ellipsis.
        if (next === IN) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB23 Do not break between digits and letters.
        if ((ALPHABETICS.indexOf(next) !== -1 && current === NU) || (ALPHABETICS.indexOf(current) !== -1 && next === NU)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB23a Do not break between numeric prefixes and ideographs, or between ideographs and numeric postfixes.
        if ((current === PR && [ID, EB, EM].indexOf(next) !== -1) ||
            ([ID, EB, EM].indexOf(current) !== -1 && next === PO)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB24 Do not break between numeric prefix/postfix and letters, or between letters and prefix/postfix.
        if ((ALPHABETICS.indexOf(current) !== -1 && PREFIX_POSTFIX.indexOf(next) !== -1) ||
            (PREFIX_POSTFIX.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB25 Do not break between the following pairs of classes relevant to numbers:
        if (
        // (PR | PO) × ( OP | HY )? NU
        ([PR, PO].indexOf(current) !== -1 &&
            (next === NU || ([OP, HY].indexOf(next) !== -1 && classTypes[afterIndex + 1] === NU))) ||
            // ( OP | HY ) × NU
            ([OP, HY].indexOf(current) !== -1 && next === NU) ||
            // NU ×	(NU | SY | IS)
            (current === NU && [NU, SY, IS].indexOf(next) !== -1)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // NU (NU | SY | IS)* × (NU | SY | IS | CL | CP)
        if ([NU, SY, IS, CL, CP].indexOf(next) !== -1) {
            var prevIndex = currentIndex;
            while (prevIndex >= 0) {
                var type = classTypes[prevIndex];
                if (type === NU) {
                    return BREAK_NOT_ALLOWED$1;
                }
                else if ([SY, IS].indexOf(type) !== -1) {
                    prevIndex--;
                }
                else {
                    break;
                }
            }
        }
        // NU (NU | SY | IS)* (CL | CP)? × (PO | PR))
        if ([PR, PO].indexOf(next) !== -1) {
            var prevIndex = [CL, CP].indexOf(current) !== -1 ? beforeIndex : currentIndex;
            while (prevIndex >= 0) {
                var type = classTypes[prevIndex];
                if (type === NU) {
                    return BREAK_NOT_ALLOWED$1;
                }
                else if ([SY, IS].indexOf(type) !== -1) {
                    prevIndex--;
                }
                else {
                    break;
                }
            }
        }
        // LB26 Do not break a Korean syllable.
        if ((JL === current && [JL, JV, H2, H3].indexOf(next) !== -1) ||
            ([JV, H2].indexOf(current) !== -1 && [JV, JT].indexOf(next) !== -1) ||
            ([JT, H3].indexOf(current) !== -1 && next === JT)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB27 Treat a Korean Syllable Block the same as ID.
        if ((KOREAN_SYLLABLE_BLOCK.indexOf(current) !== -1 && [IN, PO].indexOf(next) !== -1) ||
            (KOREAN_SYLLABLE_BLOCK.indexOf(next) !== -1 && current === PR)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB28 Do not break between alphabetics (“at”).
        if (ALPHABETICS.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB29 Do not break between numeric punctuation and alphabetics (“e.g.”).
        if (current === IS && ALPHABETICS.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB30 Do not break between letters, numbers, or ordinary symbols and opening or closing parentheses.
        if ((ALPHABETICS.concat(NU).indexOf(current) !== -1 &&
            next === OP &&
            ea_OP.indexOf(codePoints[afterIndex]) === -1) ||
            (ALPHABETICS.concat(NU).indexOf(next) !== -1 && current === CP)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB30a Break between two regional indicator symbols if and only if there are an even number of regional
        // indicators preceding the position of the break.
        if (current === RI$1 && next === RI$1) {
            var i = indicies[currentIndex];
            var count = 1;
            while (i > 0) {
                i--;
                if (classTypes[i] === RI$1) {
                    count++;
                }
                else {
                    break;
                }
            }
            if (count % 2 !== 0) {
                return BREAK_NOT_ALLOWED$1;
            }
        }
        // LB30b Do not break between an emoji base and an emoji modifier.
        if (current === EB && next === EM) {
            return BREAK_NOT_ALLOWED$1;
        }
        return BREAK_ALLOWED$1;
    };
    var cssFormattedClasses = function (codePoints, options) {
        if (!options) {
            options = { lineBreak: 'normal', wordBreak: 'normal' };
        }
        var _a = codePointsToCharacterClasses(codePoints, options.lineBreak), indicies = _a[0], classTypes = _a[1], isLetterNumber = _a[2];
        if (options.wordBreak === 'break-all' || options.wordBreak === 'break-word') {
            classTypes = classTypes.map(function (type) { return ([NU, AL, SA].indexOf(type) !== -1 ? ID : type); });
        }
        var forbiddenBreakpoints = options.wordBreak === 'keep-all'
            ? isLetterNumber.map(function (letterNumber, i) {
                return letterNumber && codePoints[i] >= 0x4e00 && codePoints[i] <= 0x9fff;
            })
            : undefined;
        return [indicies, classTypes, forbiddenBreakpoints];
    };
    var Break = /** @class */ (function () {
        function Break(codePoints, lineBreak, start, end) {
            this.codePoints = codePoints;
            this.required = lineBreak === BREAK_MANDATORY;
            this.start = start;
            this.end = end;
        }
        Break.prototype.slice = function () {
            return fromCodePoint$1.apply(void 0, this.codePoints.slice(this.start, this.end));
        };
        return Break;
    }());
    var LineBreaker = function (str, options) {
        var codePoints = toCodePoints$1(str);
        var _a = cssFormattedClasses(codePoints, options), indicies = _a[0], classTypes = _a[1], forbiddenBreakpoints = _a[2];
        var length = codePoints.length;
        var lastEnd = 0;
        var nextIndex = 0;
        return {
            next: function () {
                if (nextIndex >= length) {
                    return { done: true, value: null };
                }
                var lineBreak = BREAK_NOT_ALLOWED$1;
                while (nextIndex < length &&
                    (lineBreak = _lineBreakAtIndex(codePoints, classTypes, indicies, ++nextIndex, forbiddenBreakpoints)) ===
                        BREAK_NOT_ALLOWED$1) { }
                if (lineBreak !== BREAK_NOT_ALLOWED$1 || nextIndex === length) {
                    var value = new Break(codePoints, lineBreak, lastEnd, nextIndex);
                    lastEnd = nextIndex;
                    return { value: value, done: false };
                }
                return { done: true, value: null };
            },
        };
    };

    // https://www.w3.org/TR/css-syntax-3
    var FLAG_UNRESTRICTED = 1 << 0;
    var FLAG_ID = 1 << 1;
    var FLAG_INTEGER = 1 << 2;
    var FLAG_NUMBER = 1 << 3;
    var LINE_FEED = 0x000a;
    var SOLIDUS = 0x002f;
    var REVERSE_SOLIDUS = 0x005c;
    var CHARACTER_TABULATION = 0x0009;
    var SPACE = 0x0020;
    var QUOTATION_MARK = 0x0022;
    var EQUALS_SIGN = 0x003d;
    var NUMBER_SIGN = 0x0023;
    var DOLLAR_SIGN = 0x0024;
    var PERCENTAGE_SIGN = 0x0025;
    var APOSTROPHE = 0x0027;
    var LEFT_PARENTHESIS = 0x0028;
    var RIGHT_PARENTHESIS = 0x0029;
    var LOW_LINE = 0x005f;
    var HYPHEN_MINUS = 0x002d;
    var EXCLAMATION_MARK = 0x0021;
    var LESS_THAN_SIGN = 0x003c;
    var GREATER_THAN_SIGN = 0x003e;
    var COMMERCIAL_AT = 0x0040;
    var LEFT_SQUARE_BRACKET = 0x005b;
    var RIGHT_SQUARE_BRACKET = 0x005d;
    var CIRCUMFLEX_ACCENT = 0x003d;
    var LEFT_CURLY_BRACKET = 0x007b;
    var QUESTION_MARK = 0x003f;
    var RIGHT_CURLY_BRACKET = 0x007d;
    var VERTICAL_LINE = 0x007c;
    var TILDE = 0x007e;
    var CONTROL = 0x0080;
    var REPLACEMENT_CHARACTER = 0xfffd;
    var ASTERISK = 0x002a;
    var PLUS_SIGN = 0x002b;
    var COMMA = 0x002c;
    var COLON = 0x003a;
    var SEMICOLON = 0x003b;
    var FULL_STOP = 0x002e;
    var NULL = 0x0000;
    var BACKSPACE = 0x0008;
    var LINE_TABULATION = 0x000b;
    var SHIFT_OUT = 0x000e;
    var INFORMATION_SEPARATOR_ONE = 0x001f;
    var DELETE = 0x007f;
    var EOF = -1;
    var ZERO = 0x0030;
    var a = 0x0061;
    var e = 0x0065;
    var f = 0x0066;
    var u = 0x0075;
    var z = 0x007a;
    var A = 0x0041;
    var E = 0x0045;
    var F = 0x0046;
    var U = 0x0055;
    var Z = 0x005a;
    var isDigit = function (codePoint) { return codePoint >= ZERO && codePoint <= 0x0039; };
    var isSurrogateCodePoint = function (codePoint) { return codePoint >= 0xd800 && codePoint <= 0xdfff; };
    var isHex = function (codePoint) {
        return isDigit(codePoint) || (codePoint >= A && codePoint <= F) || (codePoint >= a && codePoint <= f);
    };
    var isLowerCaseLetter = function (codePoint) { return codePoint >= a && codePoint <= z; };
    var isUpperCaseLetter = function (codePoint) { return codePoint >= A && codePoint <= Z; };
    var isLetter = function (codePoint) { return isLowerCaseLetter(codePoint) || isUpperCaseLetter(codePoint); };
    var isNonASCIICodePoint = function (codePoint) { return codePoint >= CONTROL; };
    var isWhiteSpace = function (codePoint) {
        return codePoint === LINE_FEED || codePoint === CHARACTER_TABULATION || codePoint === SPACE;
    };
    var isNameStartCodePoint = function (codePoint) {
        return isLetter(codePoint) || isNonASCIICodePoint(codePoint) || codePoint === LOW_LINE;
    };
    var isNameCodePoint = function (codePoint) {
        return isNameStartCodePoint(codePoint) || isDigit(codePoint) || codePoint === HYPHEN_MINUS;
    };
    var isNonPrintableCodePoint = function (codePoint) {
        return ((codePoint >= NULL && codePoint <= BACKSPACE) ||
            codePoint === LINE_TABULATION ||
            (codePoint >= SHIFT_OUT && codePoint <= INFORMATION_SEPARATOR_ONE) ||
            codePoint === DELETE);
    };
    var isValidEscape = function (c1, c2) {
        if (c1 !== REVERSE_SOLIDUS) {
            return false;
        }
        return c2 !== LINE_FEED;
    };
    var isIdentifierStart = function (c1, c2, c3) {
        if (c1 === HYPHEN_MINUS) {
            return isNameStartCodePoint(c2) || isValidEscape(c2, c3);
        }
        else if (isNameStartCodePoint(c1)) {
            return true;
        }
        else if (c1 === REVERSE_SOLIDUS && isValidEscape(c1, c2)) {
            return true;
        }
        return false;
    };
    var isNumberStart = function (c1, c2, c3) {
        if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) {
            if (isDigit(c2)) {
                return true;
            }
            return c2 === FULL_STOP && isDigit(c3);
        }
        if (c1 === FULL_STOP) {
            return isDigit(c2);
        }
        return isDigit(c1);
    };
    var stringToNumber = function (codePoints) {
        var c = 0;
        var sign = 1;
        if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) {
            if (codePoints[c] === HYPHEN_MINUS) {
                sign = -1;
            }
            c++;
        }
        var integers = [];
        while (isDigit(codePoints[c])) {
            integers.push(codePoints[c++]);
        }
        var int = integers.length ? parseInt(fromCodePoint$1.apply(void 0, integers), 10) : 0;
        if (codePoints[c] === FULL_STOP) {
            c++;
        }
        var fraction = [];
        while (isDigit(codePoints[c])) {
            fraction.push(codePoints[c++]);
        }
        var fracd = fraction.length;
        var frac = fracd ? parseInt(fromCodePoint$1.apply(void 0, fraction), 10) : 0;
        if (codePoints[c] === E || codePoints[c] === e) {
            c++;
        }
        var expsign = 1;
        if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) {
            if (codePoints[c] === HYPHEN_MINUS) {
                expsign = -1;
            }
            c++;
        }
        var exponent = [];
        while (isDigit(codePoints[c])) {
            exponent.push(codePoints[c++]);
        }
        var exp = exponent.length ? parseInt(fromCodePoint$1.apply(void 0, exponent), 10) : 0;
        return sign * (int + frac * Math.pow(10, -fracd)) * Math.pow(10, expsign * exp);
    };
    var LEFT_PARENTHESIS_TOKEN = {
        type: 2 /* LEFT_PARENTHESIS_TOKEN */
    };
    var RIGHT_PARENTHESIS_TOKEN = {
        type: 3 /* RIGHT_PARENTHESIS_TOKEN */
    };
    var COMMA_TOKEN = { type: 4 /* COMMA_TOKEN */ };
    var SUFFIX_MATCH_TOKEN = { type: 13 /* SUFFIX_MATCH_TOKEN */ };
    var PREFIX_MATCH_TOKEN = { type: 8 /* PREFIX_MATCH_TOKEN */ };
    var COLUMN_TOKEN = { type: 21 /* COLUMN_TOKEN */ };
    var DASH_MATCH_TOKEN = { type: 9 /* DASH_MATCH_TOKEN */ };
    var INCLUDE_MATCH_TOKEN = { type: 10 /* INCLUDE_MATCH_TOKEN */ };
    var LEFT_CURLY_BRACKET_TOKEN = {
        type: 11 /* LEFT_CURLY_BRACKET_TOKEN */
    };
    var RIGHT_CURLY_BRACKET_TOKEN = {
        type: 12 /* RIGHT_CURLY_BRACKET_TOKEN */
    };
    var SUBSTRING_MATCH_TOKEN = { type: 14 /* SUBSTRING_MATCH_TOKEN */ };
    var BAD_URL_TOKEN = { type: 23 /* BAD_URL_TOKEN */ };
    var BAD_STRING_TOKEN = { type: 1 /* BAD_STRING_TOKEN */ };
    var CDO_TOKEN = { type: 25 /* CDO_TOKEN */ };
    var CDC_TOKEN = { type: 24 /* CDC_TOKEN */ };
    var COLON_TOKEN = { type: 26 /* COLON_TOKEN */ };
    var SEMICOLON_TOKEN = { type: 27 /* SEMICOLON_TOKEN */ };
    var LEFT_SQUARE_BRACKET_TOKEN = {
        type: 28 /* LEFT_SQUARE_BRACKET_TOKEN */
    };
    var RIGHT_SQUARE_BRACKET_TOKEN = {
        type: 29 /* RIGHT_SQUARE_BRACKET_TOKEN */
    };
    var WHITESPACE_TOKEN = { type: 31 /* WHITESPACE_TOKEN */ };
    var EOF_TOKEN = { type: 32 /* EOF_TOKEN */ };
    var Tokenizer = /** @class */ (function () {
        function Tokenizer() {
            this._value = [];
        }
        Tokenizer.prototype.write = function (chunk) {
            this._value = this._value.concat(toCodePoints$1(chunk));
        };
        Tokenizer.prototype.read = function () {
            var tokens = [];
            var token = this.consumeToken();
            while (token !== EOF_TOKEN) {
                tokens.push(token);
                token = this.consumeToken();
            }
            return tokens;
        };
        Tokenizer.prototype.consumeToken = function () {
            var codePoint = this.consumeCodePoint();
            switch (codePoint) {
                case QUOTATION_MARK:
                    return this.consumeStringToken(QUOTATION_MARK);
                case NUMBER_SIGN:
                    var c1 = this.peekCodePoint(0);
                    var c2 = this.peekCodePoint(1);
                    var c3 = this.peekCodePoint(2);
                    if (isNameCodePoint(c1) || isValidEscape(c2, c3)) {
                        var flags = isIdentifierStart(c1, c2, c3) ? FLAG_ID : FLAG_UNRESTRICTED;
                        var value = this.consumeName();
                        return { type: 5 /* HASH_TOKEN */, value: value, flags: flags };
                    }
                    break;
                case DOLLAR_SIGN:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return SUFFIX_MATCH_TOKEN;
                    }
                    break;
                case APOSTROPHE:
                    return this.consumeStringToken(APOSTROPHE);
                case LEFT_PARENTHESIS:
                    return LEFT_PARENTHESIS_TOKEN;
                case RIGHT_PARENTHESIS:
                    return RIGHT_PARENTHESIS_TOKEN;
                case ASTERISK:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return SUBSTRING_MATCH_TOKEN;
                    }
                    break;
                case PLUS_SIGN:
                    if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeNumericToken();
                    }
                    break;
                case COMMA:
                    return COMMA_TOKEN;
                case HYPHEN_MINUS:
                    var e1 = codePoint;
                    var e2 = this.peekCodePoint(0);
                    var e3 = this.peekCodePoint(1);
                    if (isNumberStart(e1, e2, e3)) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeNumericToken();
                    }
                    if (isIdentifierStart(e1, e2, e3)) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeIdentLikeToken();
                    }
                    if (e2 === HYPHEN_MINUS && e3 === GREATER_THAN_SIGN) {
                        this.consumeCodePoint();
                        this.consumeCodePoint();
                        return CDC_TOKEN;
                    }
                    break;
                case FULL_STOP:
                    if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeNumericToken();
                    }
                    break;
                case SOLIDUS:
                    if (this.peekCodePoint(0) === ASTERISK) {
                        this.consumeCodePoint();
                        while (true) {
                            var c = this.consumeCodePoint();
                            if (c === ASTERISK) {
                                c = this.consumeCodePoint();
                                if (c === SOLIDUS) {
                                    return this.consumeToken();
                                }
                            }
                            if (c === EOF) {
                                return this.consumeToken();
                            }
                        }
                    }
                    break;
                case COLON:
                    return COLON_TOKEN;
                case SEMICOLON:
                    return SEMICOLON_TOKEN;
                case LESS_THAN_SIGN:
                    if (this.peekCodePoint(0) === EXCLAMATION_MARK &&
                        this.peekCodePoint(1) === HYPHEN_MINUS &&
                        this.peekCodePoint(2) === HYPHEN_MINUS) {
                        this.consumeCodePoint();
                        this.consumeCodePoint();
                        return CDO_TOKEN;
                    }
                    break;
                case COMMERCIAL_AT:
                    var a1 = this.peekCodePoint(0);
                    var a2 = this.peekCodePoint(1);
                    var a3 = this.peekCodePoint(2);
                    if (isIdentifierStart(a1, a2, a3)) {
                        var value = this.consumeName();
                        return { type: 7 /* AT_KEYWORD_TOKEN */, value: value };
                    }
                    break;
                case LEFT_SQUARE_BRACKET:
                    return LEFT_SQUARE_BRACKET_TOKEN;
                case REVERSE_SOLIDUS:
                    if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeIdentLikeToken();
                    }
                    break;
                case RIGHT_SQUARE_BRACKET:
                    return RIGHT_SQUARE_BRACKET_TOKEN;
                case CIRCUMFLEX_ACCENT:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return PREFIX_MATCH_TOKEN;
                    }
                    break;
                case LEFT_CURLY_BRACKET:
                    return LEFT_CURLY_BRACKET_TOKEN;
                case RIGHT_CURLY_BRACKET:
                    return RIGHT_CURLY_BRACKET_TOKEN;
                case u:
                case U:
                    var u1 = this.peekCodePoint(0);
                    var u2 = this.peekCodePoint(1);
                    if (u1 === PLUS_SIGN && (isHex(u2) || u2 === QUESTION_MARK)) {
                        this.consumeCodePoint();
                        this.consumeUnicodeRangeToken();
                    }
                    this.reconsumeCodePoint(codePoint);
                    return this.consumeIdentLikeToken();
                case VERTICAL_LINE:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return DASH_MATCH_TOKEN;
                    }
                    if (this.peekCodePoint(0) === VERTICAL_LINE) {
                        this.consumeCodePoint();
                        return COLUMN_TOKEN;
                    }
                    break;
                case TILDE:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return INCLUDE_MATCH_TOKEN;
                    }
                    break;
                case EOF:
                    return EOF_TOKEN;
            }
            if (isWhiteSpace(codePoint)) {
                this.consumeWhiteSpace();
                return WHITESPACE_TOKEN;
            }
            if (isDigit(codePoint)) {
                this.reconsumeCodePoint(codePoint);
                return this.consumeNumericToken();
            }
            if (isNameStartCodePoint(codePoint)) {
                this.reconsumeCodePoint(codePoint);
                return this.consumeIdentLikeToken();
            }
            return { type: 6 /* DELIM_TOKEN */, value: fromCodePoint$1(codePoint) };
        };
        Tokenizer.prototype.consumeCodePoint = function () {
            var value = this._value.shift();
            return typeof value === 'undefined' ? -1 : value;
        };
        Tokenizer.prototype.reconsumeCodePoint = function (codePoint) {
            this._value.unshift(codePoint);
        };
        Tokenizer.prototype.peekCodePoint = function (delta) {
            if (delta >= this._value.length) {
                return -1;
            }
            return this._value[delta];
        };
        Tokenizer.prototype.consumeUnicodeRangeToken = function () {
            var digits = [];
            var codePoint = this.consumeCodePoint();
            while (isHex(codePoint) && digits.length < 6) {
                digits.push(codePoint);
                codePoint = this.consumeCodePoint();
            }
            var questionMarks = false;
            while (codePoint === QUESTION_MARK && digits.length < 6) {
                digits.push(codePoint);
                codePoint = this.consumeCodePoint();
                questionMarks = true;
            }
            if (questionMarks) {
                var start_1 = parseInt(fromCodePoint$1.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? ZERO : digit); })), 16);
                var end = parseInt(fromCodePoint$1.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? F : digit); })), 16);
                return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start_1, end: end };
            }
            var start = parseInt(fromCodePoint$1.apply(void 0, digits), 16);
            if (this.peekCodePoint(0) === HYPHEN_MINUS && isHex(this.peekCodePoint(1))) {
                this.consumeCodePoint();
                codePoint = this.consumeCodePoint();
                var endDigits = [];
                while (isHex(codePoint) && endDigits.length < 6) {
                    endDigits.push(codePoint);
                    codePoint = this.consumeCodePoint();
                }
                var end = parseInt(fromCodePoint$1.apply(void 0, endDigits), 16);
                return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start, end: end };
            }
            else {
                return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start, end: start };
            }
        };
        Tokenizer.prototype.consumeIdentLikeToken = function () {
            var value = this.consumeName();
            if (value.toLowerCase() === 'url' && this.peekCodePoint(0) === LEFT_PARENTHESIS) {
                this.consumeCodePoint();
                return this.consumeUrlToken();
            }
            else if (this.peekCodePoint(0) === LEFT_PARENTHESIS) {
                this.consumeCodePoint();
                return { type: 19 /* FUNCTION_TOKEN */, value: value };
            }
            return { type: 20 /* IDENT_TOKEN */, value: value };
        };
        Tokenizer.prototype.consumeUrlToken = function () {
            var value = [];
            this.consumeWhiteSpace();
            if (this.peekCodePoint(0) === EOF) {
                return { type: 22 /* URL_TOKEN */, value: '' };
            }
            var next = this.peekCodePoint(0);
            if (next === APOSTROPHE || next === QUOTATION_MARK) {
                var stringToken = this.consumeStringToken(this.consumeCodePoint());
                if (stringToken.type === 0 /* STRING_TOKEN */) {
                    this.consumeWhiteSpace();
                    if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) {
                        this.consumeCodePoint();
                        return { type: 22 /* URL_TOKEN */, value: stringToken.value };
                    }
                }
                this.consumeBadUrlRemnants();
                return BAD_URL_TOKEN;
            }
            while (true) {
                var codePoint = this.consumeCodePoint();
                if (codePoint === EOF || codePoint === RIGHT_PARENTHESIS) {
                    return { type: 22 /* URL_TOKEN */, value: fromCodePoint$1.apply(void 0, value) };
                }
                else if (isWhiteSpace(codePoint)) {
                    this.consumeWhiteSpace();
                    if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) {
                        this.consumeCodePoint();
                        return { type: 22 /* URL_TOKEN */, value: fromCodePoint$1.apply(void 0, value) };
                    }
                    this.consumeBadUrlRemnants();
                    return BAD_URL_TOKEN;
                }
                else if (codePoint === QUOTATION_MARK ||
                    codePoint === APOSTROPHE ||
                    codePoint === LEFT_PARENTHESIS ||
                    isNonPrintableCodePoint(codePoint)) {
                    this.consumeBadUrlRemnants();
                    return BAD_URL_TOKEN;
                }
                else if (codePoint === REVERSE_SOLIDUS) {
                    if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                        value.push(this.consumeEscapedCodePoint());
                    }
                    else {
                        this.consumeBadUrlRemnants();
                        return BAD_URL_TOKEN;
                    }
                }
                else {
                    value.push(codePoint);
                }
            }
        };
        Tokenizer.prototype.consumeWhiteSpace = function () {
            while (isWhiteSpace(this.peekCodePoint(0))) {
                this.consumeCodePoint();
            }
        };
        Tokenizer.prototype.consumeBadUrlRemnants = function () {
            while (true) {
                var codePoint = this.consumeCodePoint();
                if (codePoint === RIGHT_PARENTHESIS || codePoint === EOF) {
                    return;
                }
                if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                    this.consumeEscapedCodePoint();
                }
            }
        };
        Tokenizer.prototype.consumeStringSlice = function (count) {
            var SLICE_STACK_SIZE = 50000;
            var value = '';
            while (count > 0) {
                var amount = Math.min(SLICE_STACK_SIZE, count);
                value += fromCodePoint$1.apply(void 0, this._value.splice(0, amount));
                count -= amount;
            }
            this._value.shift();
            return value;
        };
        Tokenizer.prototype.consumeStringToken = function (endingCodePoint) {
            var value = '';
            var i = 0;
            do {
                var codePoint = this._value[i];
                if (codePoint === EOF || codePoint === undefined || codePoint === endingCodePoint) {
                    value += this.consumeStringSlice(i);
                    return { type: 0 /* STRING_TOKEN */, value: value };
                }
                if (codePoint === LINE_FEED) {
                    this._value.splice(0, i);
                    return BAD_STRING_TOKEN;
                }
                if (codePoint === REVERSE_SOLIDUS) {
                    var next = this._value[i + 1];
                    if (next !== EOF && next !== undefined) {
                        if (next === LINE_FEED) {
                            value += this.consumeStringSlice(i);
                            i = -1;
                            this._value.shift();
                        }
                        else if (isValidEscape(codePoint, next)) {
                            value += this.consumeStringSlice(i);
                            value += fromCodePoint$1(this.consumeEscapedCodePoint());
                            i = -1;
                        }
                    }
                }
                i++;
            } while (true);
        };
        Tokenizer.prototype.consumeNumber = function () {
            var repr = [];
            var type = FLAG_INTEGER;
            var c1 = this.peekCodePoint(0);
            if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) {
                repr.push(this.consumeCodePoint());
            }
            while (isDigit(this.peekCodePoint(0))) {
                repr.push(this.consumeCodePoint());
            }
            c1 = this.peekCodePoint(0);
            var c2 = this.peekCodePoint(1);
            if (c1 === FULL_STOP && isDigit(c2)) {
                repr.push(this.consumeCodePoint(), this.consumeCodePoint());
                type = FLAG_NUMBER;
                while (isDigit(this.peekCodePoint(0))) {
                    repr.push(this.consumeCodePoint());
                }
            }
            c1 = this.peekCodePoint(0);
            c2 = this.peekCodePoint(1);
            var c3 = this.peekCodePoint(2);
            if ((c1 === E || c1 === e) && (((c2 === PLUS_SIGN || c2 === HYPHEN_MINUS) && isDigit(c3)) || isDigit(c2))) {
                repr.push(this.consumeCodePoint(), this.consumeCodePoint());
                type = FLAG_NUMBER;
                while (isDigit(this.peekCodePoint(0))) {
                    repr.push(this.consumeCodePoint());
                }
            }
            return [stringToNumber(repr), type];
        };
        Tokenizer.prototype.consumeNumericToken = function () {
            var _a = this.consumeNumber(), number = _a[0], flags = _a[1];
            var c1 = this.peekCodePoint(0);
            var c2 = this.peekCodePoint(1);
            var c3 = this.peekCodePoint(2);
            if (isIdentifierStart(c1, c2, c3)) {
                var unit = this.consumeName();
                return { type: 15 /* DIMENSION_TOKEN */, number: number, flags: flags, unit: unit };
            }
            if (c1 === PERCENTAGE_SIGN) {
                this.consumeCodePoint();
                return { type: 16 /* PERCENTAGE_TOKEN */, number: number, flags: flags };
            }
            return { type: 17 /* NUMBER_TOKEN */, number: number, flags: flags };
        };
        Tokenizer.prototype.consumeEscapedCodePoint = function () {
            var codePoint = this.consumeCodePoint();
            if (isHex(codePoint)) {
                var hex = fromCodePoint$1(codePoint);
                while (isHex(this.peekCodePoint(0)) && hex.length < 6) {
                    hex += fromCodePoint$1(this.consumeCodePoint());
                }
                if (isWhiteSpace(this.peekCodePoint(0))) {
                    this.consumeCodePoint();
                }
                var hexCodePoint = parseInt(hex, 16);
                if (hexCodePoint === 0 || isSurrogateCodePoint(hexCodePoint) || hexCodePoint > 0x10ffff) {
                    return REPLACEMENT_CHARACTER;
                }
                return hexCodePoint;
            }
            if (codePoint === EOF) {
                return REPLACEMENT_CHARACTER;
            }
            return codePoint;
        };
        Tokenizer.prototype.consumeName = function () {
            var result = '';
            while (true) {
                var codePoint = this.consumeCodePoint();
                if (isNameCodePoint(codePoint)) {
                    result += fromCodePoint$1(codePoint);
                }
                else if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                    result += fromCodePoint$1(this.consumeEscapedCodePoint());
                }
                else {
                    this.reconsumeCodePoint(codePoint);
                    return result;
                }
            }
        };
        return Tokenizer;
    }());

    var Parser = /** @class */ (function () {
        function Parser(tokens) {
            this._tokens = tokens;
        }
        Parser.create = function (value) {
            var tokenizer = new Tokenizer();
            tokenizer.write(value);
            return new Parser(tokenizer.read());
        };
        Parser.parseValue = function (value) {
            return Parser.create(value).parseComponentValue();
        };
        Parser.parseValues = function (value) {
            return Parser.create(value).parseComponentValues();
        };
        Parser.prototype.parseComponentValue = function () {
            var token = this.consumeToken();
            while (token.type === 31 /* WHITESPACE_TOKEN */) {
                token = this.consumeToken();
            }
            if (token.type === 32 /* EOF_TOKEN */) {
                throw new SyntaxError("Error parsing CSS component value, unexpected EOF");
            }
            this.reconsumeToken(token);
            var value = this.consumeComponentValue();
            do {
                token = this.consumeToken();
            } while (token.type === 31 /* WHITESPACE_TOKEN */);
            if (token.type === 32 /* EOF_TOKEN */) {
                return value;
            }
            throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one");
        };
        Parser.prototype.parseComponentValues = function () {
            var values = [];
            while (true) {
                var value = this.consumeComponentValue();
                if (value.type === 32 /* EOF_TOKEN */) {
                    return values;
                }
                values.push(value);
                values.push();
            }
        };
        Parser.prototype.consumeComponentValue = function () {
            var token = this.consumeToken();
            switch (token.type) {
                case 11 /* LEFT_CURLY_BRACKET_TOKEN */:
                case 28 /* LEFT_SQUARE_BRACKET_TOKEN */:
                case 2 /* LEFT_PARENTHESIS_TOKEN */:
                    return this.consumeSimpleBlock(token.type);
                case 19 /* FUNCTION_TOKEN */:
                    return this.consumeFunction(token);
            }
            return token;
        };
        Parser.prototype.consumeSimpleBlock = function (type) {
            var block = { type: type, values: [] };
            var token = this.consumeToken();
            while (true) {
                if (token.type === 32 /* EOF_TOKEN */ || isEndingTokenFor(token, type)) {
                    return block;
                }
                this.reconsumeToken(token);
                block.values.push(this.consumeComponentValue());
                token = this.consumeToken();
            }
        };
        Parser.prototype.consumeFunction = function (functionToken) {
            var cssFunction = {
                name: functionToken.value,
                values: [],
                type: 18 /* FUNCTION */
            };
            while (true) {
                var token = this.consumeToken();
                if (token.type === 32 /* EOF_TOKEN */ || token.type === 3 /* RIGHT_PARENTHESIS_TOKEN */) {
                    return cssFunction;
                }
                this.reconsumeToken(token);
                cssFunction.values.push(this.consumeComponentValue());
            }
        };
        Parser.prototype.consumeToken = function () {
            var token = this._tokens.shift();
            return typeof token === 'undefined' ? EOF_TOKEN : token;
        };
        Parser.prototype.reconsumeToken = function (token) {
            this._tokens.unshift(token);
        };
        return Parser;
    }());
    var isDimensionToken = function (token) { return token.type === 15 /* DIMENSION_TOKEN */; };
    var isNumberToken = function (token) { return token.type === 17 /* NUMBER_TOKEN */; };
    var isIdentToken = function (token) { return token.type === 20 /* IDENT_TOKEN */; };
    var isStringToken = function (token) { return token.type === 0 /* STRING_TOKEN */; };
    var isIdentWithValue = function (token, value) {
        return isIdentToken(token) && token.value === value;
    };
    var nonWhiteSpace = function (token) { return token.type !== 31 /* WHITESPACE_TOKEN */; };
    var nonFunctionArgSeparator = function (token) {
        return token.type !== 31 /* WHITESPACE_TOKEN */ && token.type !== 4 /* COMMA_TOKEN */;
    };
    var parseFunctionArgs = function (tokens) {
        var args = [];
        var arg = [];
        tokens.forEach(function (token) {
            if (token.type === 4 /* COMMA_TOKEN */) {
                if (arg.length === 0) {
                    throw new Error("Error parsing function args, zero tokens for arg");
                }
                args.push(arg);
                arg = [];
                return;
            }
            if (token.type !== 31 /* WHITESPACE_TOKEN */) {
                arg.push(token);
            }
        });
        if (arg.length) {
            args.push(arg);
        }
        return args;
    };
    var isEndingTokenFor = function (token, type) {
        if (type === 11 /* LEFT_CURLY_BRACKET_TOKEN */ && token.type === 12 /* RIGHT_CURLY_BRACKET_TOKEN */) {
            return true;
        }
        if (type === 28 /* LEFT_SQUARE_BRACKET_TOKEN */ && token.type === 29 /* RIGHT_SQUARE_BRACKET_TOKEN */) {
            return true;
        }
        return type === 2 /* LEFT_PARENTHESIS_TOKEN */ && token.type === 3 /* RIGHT_PARENTHESIS_TOKEN */;
    };

    var isLength = function (token) {
        return token.type === 17 /* NUMBER_TOKEN */ || token.type === 15 /* DIMENSION_TOKEN */;
    };

    var isLengthPercentage = function (token) {
        return token.type === 16 /* PERCENTAGE_TOKEN */ || isLength(token);
    };
    var parseLengthPercentageTuple = function (tokens) {
        return tokens.length > 1 ? [tokens[0], tokens[1]] : [tokens[0]];
    };
    var ZERO_LENGTH = {
        type: 17 /* NUMBER_TOKEN */,
        number: 0,
        flags: FLAG_INTEGER
    };
    var FIFTY_PERCENT = {
        type: 16 /* PERCENTAGE_TOKEN */,
        number: 50,
        flags: FLAG_INTEGER
    };
    var HUNDRED_PERCENT = {
        type: 16 /* PERCENTAGE_TOKEN */,
        number: 100,
        flags: FLAG_INTEGER
    };
    var getAbsoluteValueForTuple = function (tuple, width, height) {
        var x = tuple[0], y = tuple[1];
        return [getAbsoluteValue(x, width), getAbsoluteValue(typeof y !== 'undefined' ? y : x, height)];
    };
    var getAbsoluteValue = function (token, parent) {
        if (token.type === 16 /* PERCENTAGE_TOKEN */) {
            return (token.number / 100) * parent;
        }
        if (isDimensionToken(token)) {
            switch (token.unit) {
                case 'rem':
                case 'em':
                    return 16 * token.number; // TODO use correct font-size
                case 'px':
                default:
                    return token.number;
            }
        }
        return token.number;
    };

    var DEG = 'deg';
    var GRAD = 'grad';
    var RAD = 'rad';
    var TURN = 'turn';
    var angle = {
        name: 'angle',
        parse: function (_context, value) {
            if (value.type === 15 /* DIMENSION_TOKEN */) {
                switch (value.unit) {
                    case DEG:
                        return (Math.PI * value.number) / 180;
                    case GRAD:
                        return (Math.PI / 200) * value.number;
                    case RAD:
                        return value.number;
                    case TURN:
                        return Math.PI * 2 * value.number;
                }
            }
            throw new Error("Unsupported angle type");
        }
    };
    var isAngle = function (value) {
        if (value.type === 15 /* DIMENSION_TOKEN */) {
            if (value.unit === DEG || value.unit === GRAD || value.unit === RAD || value.unit === TURN) {
                return true;
            }
        }
        return false;
    };
    var parseNamedSide = function (tokens) {
        var sideOrCorner = tokens
            .filter(isIdentToken)
            .map(function (ident) { return ident.value; })
            .join(' ');
        switch (sideOrCorner) {
            case 'to bottom right':
            case 'to right bottom':
            case 'left top':
            case 'top left':
                return [ZERO_LENGTH, ZERO_LENGTH];
            case 'to top':
            case 'bottom':
                return deg(0);
            case 'to bottom left':
            case 'to left bottom':
            case 'right top':
            case 'top right':
                return [ZERO_LENGTH, HUNDRED_PERCENT];
            case 'to right':
            case 'left':
                return deg(90);
            case 'to top left':
            case 'to left top':
            case 'right bottom':
            case 'bottom right':
                return [HUNDRED_PERCENT, HUNDRED_PERCENT];
            case 'to bottom':
            case 'top':
                return deg(180);
            case 'to top right':
            case 'to right top':
            case 'left bottom':
            case 'bottom left':
                return [HUNDRED_PERCENT, ZERO_LENGTH];
            case 'to left':
            case 'right':
                return deg(270);
        }
        return 0;
    };
    var deg = function (deg) { return (Math.PI * deg) / 180; };

    var color$1 = {
        name: 'color',
        parse: function (context, value) {
            if (value.type === 18 /* FUNCTION */) {
                var colorFunction = SUPPORTED_COLOR_FUNCTIONS[value.name];
                if (typeof colorFunction === 'undefined') {
                    throw new Error("Attempting to parse an unsupported color function \"" + value.name + "\"");
                }
                return colorFunction(context, value.values);
            }
            if (value.type === 5 /* HASH_TOKEN */) {
                if (value.value.length === 3) {
                    var r = value.value.substring(0, 1);
                    var g = value.value.substring(1, 2);
                    var b = value.value.substring(2, 3);
                    return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), 1);
                }
                if (value.value.length === 4) {
                    var r = value.value.substring(0, 1);
                    var g = value.value.substring(1, 2);
                    var b = value.value.substring(2, 3);
                    var a = value.value.substring(3, 4);
                    return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), parseInt(a + a, 16) / 255);
                }
                if (value.value.length === 6) {
                    var r = value.value.substring(0, 2);
                    var g = value.value.substring(2, 4);
                    var b = value.value.substring(4, 6);
                    return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), 1);
                }
                if (value.value.length === 8) {
                    var r = value.value.substring(0, 2);
                    var g = value.value.substring(2, 4);
                    var b = value.value.substring(4, 6);
                    var a = value.value.substring(6, 8);
                    return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), parseInt(a, 16) / 255);
                }
            }
            if (value.type === 20 /* IDENT_TOKEN */) {
                var namedColor = COLORS[value.value.toUpperCase()];
                if (typeof namedColor !== 'undefined') {
                    return namedColor;
                }
            }
            return COLORS.TRANSPARENT;
        }
    };
    var isTransparent = function (color) { return (0xff & color) === 0; };
    var asString = function (color) {
        var alpha = 0xff & color;
        var blue = 0xff & (color >> 8);
        var green = 0xff & (color >> 16);
        var red = 0xff & (color >> 24);
        return alpha < 255 ? "rgba(" + red + "," + green + "," + blue + "," + alpha / 255 + ")" : "rgb(" + red + "," + green + "," + blue + ")";
    };
    var pack = function (r, g, b, a) {
        return ((r << 24) | (g << 16) | (b << 8) | (Math.round(a * 255) << 0)) >>> 0;
    };
    var getTokenColorValue = function (token, i) {
        if (token.type === 17 /* NUMBER_TOKEN */) {
            return token.number;
        }
        if (token.type === 16 /* PERCENTAGE_TOKEN */) {
            var max = i === 3 ? 1 : 255;
            return i === 3 ? (token.number / 100) * max : Math.round((token.number / 100) * max);
        }
        return 0;
    };
    var rgb = function (_context, args) {
        var tokens = args.filter(nonFunctionArgSeparator);
        if (tokens.length === 3) {
            var _a = tokens.map(getTokenColorValue), r = _a[0], g = _a[1], b = _a[2];
            return pack(r, g, b, 1);
        }
        if (tokens.length === 4) {
            var _b = tokens.map(getTokenColorValue), r = _b[0], g = _b[1], b = _b[2], a = _b[3];
            return pack(r, g, b, a);
        }
        return 0;
    };
    function hue2rgb(t1, t2, hue) {
        if (hue < 0) {
            hue += 1;
        }
        if (hue >= 1) {
            hue -= 1;
        }
        if (hue < 1 / 6) {
            return (t2 - t1) * hue * 6 + t1;
        }
        else if (hue < 1 / 2) {
            return t2;
        }
        else if (hue < 2 / 3) {
            return (t2 - t1) * 6 * (2 / 3 - hue) + t1;
        }
        else {
            return t1;
        }
    }
    var hsl = function (context, args) {
        var tokens = args.filter(nonFunctionArgSeparator);
        var hue = tokens[0], saturation = tokens[1], lightness = tokens[2], alpha = tokens[3];
        var h = (hue.type === 17 /* NUMBER_TOKEN */ ? deg(hue.number) : angle.parse(context, hue)) / (Math.PI * 2);
        var s = isLengthPercentage(saturation) ? saturation.number / 100 : 0;
        var l = isLengthPercentage(lightness) ? lightness.number / 100 : 0;
        var a = typeof alpha !== 'undefined' && isLengthPercentage(alpha) ? getAbsoluteValue(alpha, 1) : 1;
        if (s === 0) {
            return pack(l * 255, l * 255, l * 255, 1);
        }
        var t2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;
        var t1 = l * 2 - t2;
        var r = hue2rgb(t1, t2, h + 1 / 3);
        var g = hue2rgb(t1, t2, h);
        var b = hue2rgb(t1, t2, h - 1 / 3);
        return pack(r * 255, g * 255, b * 255, a);
    };
    var SUPPORTED_COLOR_FUNCTIONS = {
        hsl: hsl,
        hsla: hsl,
        rgb: rgb,
        rgba: rgb
    };
    var parseColor = function (context, value) {
        return color$1.parse(context, Parser.create(value).parseComponentValue());
    };
    var COLORS = {
        ALICEBLUE: 0xf0f8ffff,
        ANTIQUEWHITE: 0xfaebd7ff,
        AQUA: 0x00ffffff,
        AQUAMARINE: 0x7fffd4ff,
        AZURE: 0xf0ffffff,
        BEIGE: 0xf5f5dcff,
        BISQUE: 0xffe4c4ff,
        BLACK: 0x000000ff,
        BLANCHEDALMOND: 0xffebcdff,
        BLUE: 0x0000ffff,
        BLUEVIOLET: 0x8a2be2ff,
        BROWN: 0xa52a2aff,
        BURLYWOOD: 0xdeb887ff,
        CADETBLUE: 0x5f9ea0ff,
        CHARTREUSE: 0x7fff00ff,
        CHOCOLATE: 0xd2691eff,
        CORAL: 0xff7f50ff,
        CORNFLOWERBLUE: 0x6495edff,
        CORNSILK: 0xfff8dcff,
        CRIMSON: 0xdc143cff,
        CYAN: 0x00ffffff,
        DARKBLUE: 0x00008bff,
        DARKCYAN: 0x008b8bff,
        DARKGOLDENROD: 0xb886bbff,
        DARKGRAY: 0xa9a9a9ff,
        DARKGREEN: 0x006400ff,
        DARKGREY: 0xa9a9a9ff,
        DARKKHAKI: 0xbdb76bff,
        DARKMAGENTA: 0x8b008bff,
        DARKOLIVEGREEN: 0x556b2fff,
        DARKORANGE: 0xff8c00ff,
        DARKORCHID: 0x9932ccff,
        DARKRED: 0x8b0000ff,
        DARKSALMON: 0xe9967aff,
        DARKSEAGREEN: 0x8fbc8fff,
        DARKSLATEBLUE: 0x483d8bff,
        DARKSLATEGRAY: 0x2f4f4fff,
        DARKSLATEGREY: 0x2f4f4fff,
        DARKTURQUOISE: 0x00ced1ff,
        DARKVIOLET: 0x9400d3ff,
        DEEPPINK: 0xff1493ff,
        DEEPSKYBLUE: 0x00bfffff,
        DIMGRAY: 0x696969ff,
        DIMGREY: 0x696969ff,
        DODGERBLUE: 0x1e90ffff,
        FIREBRICK: 0xb22222ff,
        FLORALWHITE: 0xfffaf0ff,
        FORESTGREEN: 0x228b22ff,
        FUCHSIA: 0xff00ffff,
        GAINSBORO: 0xdcdcdcff,
        GHOSTWHITE: 0xf8f8ffff,
        GOLD: 0xffd700ff,
        GOLDENROD: 0xdaa520ff,
        GRAY: 0x808080ff,
        GREEN: 0x008000ff,
        GREENYELLOW: 0xadff2fff,
        GREY: 0x808080ff,
        HONEYDEW: 0xf0fff0ff,
        HOTPINK: 0xff69b4ff,
        INDIANRED: 0xcd5c5cff,
        INDIGO: 0x4b0082ff,
        IVORY: 0xfffff0ff,
        KHAKI: 0xf0e68cff,
        LAVENDER: 0xe6e6faff,
        LAVENDERBLUSH: 0xfff0f5ff,
        LAWNGREEN: 0x7cfc00ff,
        LEMONCHIFFON: 0xfffacdff,
        LIGHTBLUE: 0xadd8e6ff,
        LIGHTCORAL: 0xf08080ff,
        LIGHTCYAN: 0xe0ffffff,
        LIGHTGOLDENRODYELLOW: 0xfafad2ff,
        LIGHTGRAY: 0xd3d3d3ff,
        LIGHTGREEN: 0x90ee90ff,
        LIGHTGREY: 0xd3d3d3ff,
        LIGHTPINK: 0xffb6c1ff,
        LIGHTSALMON: 0xffa07aff,
        LIGHTSEAGREEN: 0x20b2aaff,
        LIGHTSKYBLUE: 0x87cefaff,
        LIGHTSLATEGRAY: 0x778899ff,
        LIGHTSLATEGREY: 0x778899ff,
        LIGHTSTEELBLUE: 0xb0c4deff,
        LIGHTYELLOW: 0xffffe0ff,
        LIME: 0x00ff00ff,
        LIMEGREEN: 0x32cd32ff,
        LINEN: 0xfaf0e6ff,
        MAGENTA: 0xff00ffff,
        MAROON: 0x800000ff,
        MEDIUMAQUAMARINE: 0x66cdaaff,
        MEDIUMBLUE: 0x0000cdff,
        MEDIUMORCHID: 0xba55d3ff,
        MEDIUMPURPLE: 0x9370dbff,
        MEDIUMSEAGREEN: 0x3cb371ff,
        MEDIUMSLATEBLUE: 0x7b68eeff,
        MEDIUMSPRINGGREEN: 0x00fa9aff,
        MEDIUMTURQUOISE: 0x48d1ccff,
        MEDIUMVIOLETRED: 0xc71585ff,
        MIDNIGHTBLUE: 0x191970ff,
        MINTCREAM: 0xf5fffaff,
        MISTYROSE: 0xffe4e1ff,
        MOCCASIN: 0xffe4b5ff,
        NAVAJOWHITE: 0xffdeadff,
        NAVY: 0x000080ff,
        OLDLACE: 0xfdf5e6ff,
        OLIVE: 0x808000ff,
        OLIVEDRAB: 0x6b8e23ff,
        ORANGE: 0xffa500ff,
        ORANGERED: 0xff4500ff,
        ORCHID: 0xda70d6ff,
        PALEGOLDENROD: 0xeee8aaff,
        PALEGREEN: 0x98fb98ff,
        PALETURQUOISE: 0xafeeeeff,
        PALEVIOLETRED: 0xdb7093ff,
        PAPAYAWHIP: 0xffefd5ff,
        PEACHPUFF: 0xffdab9ff,
        PERU: 0xcd853fff,
        PINK: 0xffc0cbff,
        PLUM: 0xdda0ddff,
        POWDERBLUE: 0xb0e0e6ff,
        PURPLE: 0x800080ff,
        REBECCAPURPLE: 0x663399ff,
        RED: 0xff0000ff,
        ROSYBROWN: 0xbc8f8fff,
        ROYALBLUE: 0x4169e1ff,
        SADDLEBROWN: 0x8b4513ff,
        SALMON: 0xfa8072ff,
        SANDYBROWN: 0xf4a460ff,
        SEAGREEN: 0x2e8b57ff,
        SEASHELL: 0xfff5eeff,
        SIENNA: 0xa0522dff,
        SILVER: 0xc0c0c0ff,
        SKYBLUE: 0x87ceebff,
        SLATEBLUE: 0x6a5acdff,
        SLATEGRAY: 0x708090ff,
        SLATEGREY: 0x708090ff,
        SNOW: 0xfffafaff,
        SPRINGGREEN: 0x00ff7fff,
        STEELBLUE: 0x4682b4ff,
        TAN: 0xd2b48cff,
        TEAL: 0x008080ff,
        THISTLE: 0xd8bfd8ff,
        TOMATO: 0xff6347ff,
        TRANSPARENT: 0x00000000,
        TURQUOISE: 0x40e0d0ff,
        VIOLET: 0xee82eeff,
        WHEAT: 0xf5deb3ff,
        WHITE: 0xffffffff,
        WHITESMOKE: 0xf5f5f5ff,
        YELLOW: 0xffff00ff,
        YELLOWGREEN: 0x9acd32ff
    };

    var backgroundClip = {
        name: 'background-clip',
        initialValue: 'border-box',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.map(function (token) {
                if (isIdentToken(token)) {
                    switch (token.value) {
                        case 'padding-box':
                            return 1 /* PADDING_BOX */;
                        case 'content-box':
                            return 2 /* CONTENT_BOX */;
                    }
                }
                return 0 /* BORDER_BOX */;
            });
        }
    };

    var backgroundColor = {
        name: "background-color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var parseColorStop = function (context, args) {
        var color = color$1.parse(context, args[0]);
        var stop = args[1];
        return stop && isLengthPercentage(stop) ? { color: color, stop: stop } : { color: color, stop: null };
    };
    var processColorStops = function (stops, lineLength) {
        var first = stops[0];
        var last = stops[stops.length - 1];
        if (first.stop === null) {
            first.stop = ZERO_LENGTH;
        }
        if (last.stop === null) {
            last.stop = HUNDRED_PERCENT;
        }
        var processStops = [];
        var previous = 0;
        for (var i = 0; i < stops.length; i++) {
            var stop_1 = stops[i].stop;
            if (stop_1 !== null) {
                var absoluteValue = getAbsoluteValue(stop_1, lineLength);
                if (absoluteValue > previous) {
                    processStops.push(absoluteValue);
                }
                else {
                    processStops.push(previous);
                }
                previous = absoluteValue;
            }
            else {
                processStops.push(null);
            }
        }
        var gapBegin = null;
        for (var i = 0; i < processStops.length; i++) {
            var stop_2 = processStops[i];
            if (stop_2 === null) {
                if (gapBegin === null) {
                    gapBegin = i;
                }
            }
            else if (gapBegin !== null) {
                var gapLength = i - gapBegin;
                var beforeGap = processStops[gapBegin - 1];
                var gapValue = (stop_2 - beforeGap) / (gapLength + 1);
                for (var g = 1; g <= gapLength; g++) {
                    processStops[gapBegin + g - 1] = gapValue * g;
                }
                gapBegin = null;
            }
        }
        return stops.map(function (_a, i) {
            var color = _a.color;
            return { color: color, stop: Math.max(Math.min(1, processStops[i] / lineLength), 0) };
        });
    };
    var getAngleFromCorner = function (corner, width, height) {
        var centerX = width / 2;
        var centerY = height / 2;
        var x = getAbsoluteValue(corner[0], width) - centerX;
        var y = centerY - getAbsoluteValue(corner[1], height);
        return (Math.atan2(y, x) + Math.PI * 2) % (Math.PI * 2);
    };
    var calculateGradientDirection = function (angle, width, height) {
        var radian = typeof angle === 'number' ? angle : getAngleFromCorner(angle, width, height);
        var lineLength = Math.abs(width * Math.sin(radian)) + Math.abs(height * Math.cos(radian));
        var halfWidth = width / 2;
        var halfHeight = height / 2;
        var halfLineLength = lineLength / 2;
        var yDiff = Math.sin(radian - Math.PI / 2) * halfLineLength;
        var xDiff = Math.cos(radian - Math.PI / 2) * halfLineLength;
        return [lineLength, halfWidth - xDiff, halfWidth + xDiff, halfHeight - yDiff, halfHeight + yDiff];
    };
    var distance = function (a, b) { return Math.sqrt(a * a + b * b); };
    var findCorner = function (width, height, x, y, closest) {
        var corners = [
            [0, 0],
            [0, height],
            [width, 0],
            [width, height]
        ];
        return corners.reduce(function (stat, corner) {
            var cx = corner[0], cy = corner[1];
            var d = distance(x - cx, y - cy);
            if (closest ? d < stat.optimumDistance : d > stat.optimumDistance) {
                return {
                    optimumCorner: corner,
                    optimumDistance: d
                };
            }
            return stat;
        }, {
            optimumDistance: closest ? Infinity : -Infinity,
            optimumCorner: null
        }).optimumCorner;
    };
    var calculateRadius = function (gradient, x, y, width, height) {
        var rx = 0;
        var ry = 0;
        switch (gradient.size) {
            case 0 /* CLOSEST_SIDE */:
                // The ending shape is sized so that that it exactly meets the side of the gradient box closest to the gradient’s center.
                // If the shape is an ellipse, it exactly meets the closest side in each dimension.
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.min(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    rx = Math.min(Math.abs(x), Math.abs(x - width));
                    ry = Math.min(Math.abs(y), Math.abs(y - height));
                }
                break;
            case 2 /* CLOSEST_CORNER */:
                // The ending shape is sized so that that it passes through the corner of the gradient box closest to the gradient’s center.
                // If the shape is an ellipse, the ending shape is given the same aspect-ratio it would have if closest-side were specified.
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.min(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    // Compute the ratio ry/rx (which is to be the same as for "closest-side")
                    var c = Math.min(Math.abs(y), Math.abs(y - height)) / Math.min(Math.abs(x), Math.abs(x - width));
                    var _a = findCorner(width, height, x, y, true), cx = _a[0], cy = _a[1];
                    rx = distance(cx - x, (cy - y) / c);
                    ry = c * rx;
                }
                break;
            case 1 /* FARTHEST_SIDE */:
                // Same as closest-side, except the ending shape is sized based on the farthest side(s)
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.max(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    rx = Math.max(Math.abs(x), Math.abs(x - width));
                    ry = Math.max(Math.abs(y), Math.abs(y - height));
                }
                break;
            case 3 /* FARTHEST_CORNER */:
                // Same as closest-corner, except the ending shape is sized based on the farthest corner.
                // If the shape is an ellipse, the ending shape is given the same aspect ratio it would have if farthest-side were specified.
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.max(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    // Compute the ratio ry/rx (which is to be the same as for "farthest-side")
                    var c = Math.max(Math.abs(y), Math.abs(y - height)) / Math.max(Math.abs(x), Math.abs(x - width));
                    var _b = findCorner(width, height, x, y, false), cx = _b[0], cy = _b[1];
                    rx = distance(cx - x, (cy - y) / c);
                    ry = c * rx;
                }
                break;
        }
        if (Array.isArray(gradient.size)) {
            rx = getAbsoluteValue(gradient.size[0], width);
            ry = gradient.size.length === 2 ? getAbsoluteValue(gradient.size[1], height) : rx;
        }
        return [rx, ry];
    };

    var linearGradient = function (context, tokens) {
        var angle$1 = deg(180);
        var stops = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            if (i === 0) {
                var firstToken = arg[0];
                if (firstToken.type === 20 /* IDENT_TOKEN */ && firstToken.value === 'to') {
                    angle$1 = parseNamedSide(arg);
                    return;
                }
                else if (isAngle(firstToken)) {
                    angle$1 = angle.parse(context, firstToken);
                    return;
                }
            }
            var colorStop = parseColorStop(context, arg);
            stops.push(colorStop);
        });
        return { angle: angle$1, stops: stops, type: 1 /* LINEAR_GRADIENT */ };
    };

    var prefixLinearGradient = function (context, tokens) {
        var angle$1 = deg(180);
        var stops = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            if (i === 0) {
                var firstToken = arg[0];
                if (firstToken.type === 20 /* IDENT_TOKEN */ &&
                    ['top', 'left', 'right', 'bottom'].indexOf(firstToken.value) !== -1) {
                    angle$1 = parseNamedSide(arg);
                    return;
                }
                else if (isAngle(firstToken)) {
                    angle$1 = (angle.parse(context, firstToken) + deg(270)) % deg(360);
                    return;
                }
            }
            var colorStop = parseColorStop(context, arg);
            stops.push(colorStop);
        });
        return {
            angle: angle$1,
            stops: stops,
            type: 1 /* LINEAR_GRADIENT */
        };
    };

    var webkitGradient = function (context, tokens) {
        var angle = deg(180);
        var stops = [];
        var type = 1 /* LINEAR_GRADIENT */;
        var shape = 0 /* CIRCLE */;
        var size = 3 /* FARTHEST_CORNER */;
        var position = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            var firstToken = arg[0];
            if (i === 0) {
                if (isIdentToken(firstToken) && firstToken.value === 'linear') {
                    type = 1 /* LINEAR_GRADIENT */;
                    return;
                }
                else if (isIdentToken(firstToken) && firstToken.value === 'radial') {
                    type = 2 /* RADIAL_GRADIENT */;
                    return;
                }
            }
            if (firstToken.type === 18 /* FUNCTION */) {
                if (firstToken.name === 'from') {
                    var color = color$1.parse(context, firstToken.values[0]);
                    stops.push({ stop: ZERO_LENGTH, color: color });
                }
                else if (firstToken.name === 'to') {
                    var color = color$1.parse(context, firstToken.values[0]);
                    stops.push({ stop: HUNDRED_PERCENT, color: color });
                }
                else if (firstToken.name === 'color-stop') {
                    var values = firstToken.values.filter(nonFunctionArgSeparator);
                    if (values.length === 2) {
                        var color = color$1.parse(context, values[1]);
                        var stop_1 = values[0];
                        if (isNumberToken(stop_1)) {
                            stops.push({
                                stop: { type: 16 /* PERCENTAGE_TOKEN */, number: stop_1.number * 100, flags: stop_1.flags },
                                color: color
                            });
                        }
                    }
                }
            }
        });
        return type === 1 /* LINEAR_GRADIENT */
            ? {
                angle: (angle + deg(180)) % deg(360),
                stops: stops,
                type: type
            }
            : { size: size, shape: shape, stops: stops, position: position, type: type };
    };

    var CLOSEST_SIDE = 'closest-side';
    var FARTHEST_SIDE = 'farthest-side';
    var CLOSEST_CORNER = 'closest-corner';
    var FARTHEST_CORNER = 'farthest-corner';
    var CIRCLE = 'circle';
    var ELLIPSE = 'ellipse';
    var COVER = 'cover';
    var CONTAIN = 'contain';
    var radialGradient = function (context, tokens) {
        var shape = 0 /* CIRCLE */;
        var size = 3 /* FARTHEST_CORNER */;
        var stops = [];
        var position = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            var isColorStop = true;
            if (i === 0) {
                var isAtPosition_1 = false;
                isColorStop = arg.reduce(function (acc, token) {
                    if (isAtPosition_1) {
                        if (isIdentToken(token)) {
                            switch (token.value) {
                                case 'center':
                                    position.push(FIFTY_PERCENT);
                                    return acc;
                                case 'top':
                                case 'left':
                                    position.push(ZERO_LENGTH);
                                    return acc;
                                case 'right':
                                case 'bottom':
                                    position.push(HUNDRED_PERCENT);
                                    return acc;
                            }
                        }
                        else if (isLengthPercentage(token) || isLength(token)) {
                            position.push(token);
                        }
                    }
                    else if (isIdentToken(token)) {
                        switch (token.value) {
                            case CIRCLE:
                                shape = 0 /* CIRCLE */;
                                return false;
                            case ELLIPSE:
                                shape = 1 /* ELLIPSE */;
                                return false;
                            case 'at':
                                isAtPosition_1 = true;
                                return false;
                            case CLOSEST_SIDE:
                                size = 0 /* CLOSEST_SIDE */;
                                return false;
                            case COVER:
                            case FARTHEST_SIDE:
                                size = 1 /* FARTHEST_SIDE */;
                                return false;
                            case CONTAIN:
                            case CLOSEST_CORNER:
                                size = 2 /* CLOSEST_CORNER */;
                                return false;
                            case FARTHEST_CORNER:
                                size = 3 /* FARTHEST_CORNER */;
                                return false;
                        }
                    }
                    else if (isLength(token) || isLengthPercentage(token)) {
                        if (!Array.isArray(size)) {
                            size = [];
                        }
                        size.push(token);
                        return false;
                    }
                    return acc;
                }, isColorStop);
            }
            if (isColorStop) {
                var colorStop = parseColorStop(context, arg);
                stops.push(colorStop);
            }
        });
        return { size: size, shape: shape, stops: stops, position: position, type: 2 /* RADIAL_GRADIENT */ };
    };

    var prefixRadialGradient = function (context, tokens) {
        var shape = 0 /* CIRCLE */;
        var size = 3 /* FARTHEST_CORNER */;
        var stops = [];
        var position = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            var isColorStop = true;
            if (i === 0) {
                isColorStop = arg.reduce(function (acc, token) {
                    if (isIdentToken(token)) {
                        switch (token.value) {
                            case 'center':
                                position.push(FIFTY_PERCENT);
                                return false;
                            case 'top':
                            case 'left':
                                position.push(ZERO_LENGTH);
                                return false;
                            case 'right':
                            case 'bottom':
                                position.push(HUNDRED_PERCENT);
                                return false;
                        }
                    }
                    else if (isLengthPercentage(token) || isLength(token)) {
                        position.push(token);
                        return false;
                    }
                    return acc;
                }, isColorStop);
            }
            else if (i === 1) {
                isColorStop = arg.reduce(function (acc, token) {
                    if (isIdentToken(token)) {
                        switch (token.value) {
                            case CIRCLE:
                                shape = 0 /* CIRCLE */;
                                return false;
                            case ELLIPSE:
                                shape = 1 /* ELLIPSE */;
                                return false;
                            case CONTAIN:
                            case CLOSEST_SIDE:
                                size = 0 /* CLOSEST_SIDE */;
                                return false;
                            case FARTHEST_SIDE:
                                size = 1 /* FARTHEST_SIDE */;
                                return false;
                            case CLOSEST_CORNER:
                                size = 2 /* CLOSEST_CORNER */;
                                return false;
                            case COVER:
                            case FARTHEST_CORNER:
                                size = 3 /* FARTHEST_CORNER */;
                                return false;
                        }
                    }
                    else if (isLength(token) || isLengthPercentage(token)) {
                        if (!Array.isArray(size)) {
                            size = [];
                        }
                        size.push(token);
                        return false;
                    }
                    return acc;
                }, isColorStop);
            }
            if (isColorStop) {
                var colorStop = parseColorStop(context, arg);
                stops.push(colorStop);
            }
        });
        return { size: size, shape: shape, stops: stops, position: position, type: 2 /* RADIAL_GRADIENT */ };
    };

    var isLinearGradient = function (background) {
        return background.type === 1 /* LINEAR_GRADIENT */;
    };
    var isRadialGradient = function (background) {
        return background.type === 2 /* RADIAL_GRADIENT */;
    };
    var image = {
        name: 'image',
        parse: function (context, value) {
            if (value.type === 22 /* URL_TOKEN */) {
                var image_1 = { url: value.value, type: 0 /* URL */ };
                context.cache.addImage(value.value);
                return image_1;
            }
            if (value.type === 18 /* FUNCTION */) {
                var imageFunction = SUPPORTED_IMAGE_FUNCTIONS[value.name];
                if (typeof imageFunction === 'undefined') {
                    throw new Error("Attempting to parse an unsupported image function \"" + value.name + "\"");
                }
                return imageFunction(context, value.values);
            }
            throw new Error("Unsupported image type " + value.type);
        }
    };
    function isSupportedImage(value) {
        return (!(value.type === 20 /* IDENT_TOKEN */ && value.value === 'none') &&
            (value.type !== 18 /* FUNCTION */ || !!SUPPORTED_IMAGE_FUNCTIONS[value.name]));
    }
    var SUPPORTED_IMAGE_FUNCTIONS = {
        'linear-gradient': linearGradient,
        '-moz-linear-gradient': prefixLinearGradient,
        '-ms-linear-gradient': prefixLinearGradient,
        '-o-linear-gradient': prefixLinearGradient,
        '-webkit-linear-gradient': prefixLinearGradient,
        'radial-gradient': radialGradient,
        '-moz-radial-gradient': prefixRadialGradient,
        '-ms-radial-gradient': prefixRadialGradient,
        '-o-radial-gradient': prefixRadialGradient,
        '-webkit-radial-gradient': prefixRadialGradient,
        '-webkit-gradient': webkitGradient
    };

    var backgroundImage = {
        name: 'background-image',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (context, tokens) {
            if (tokens.length === 0) {
                return [];
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return [];
            }
            return tokens
                .filter(function (value) { return nonFunctionArgSeparator(value) && isSupportedImage(value); })
                .map(function (value) { return image.parse(context, value); });
        }
    };

    var backgroundOrigin = {
        name: 'background-origin',
        initialValue: 'border-box',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.map(function (token) {
                if (isIdentToken(token)) {
                    switch (token.value) {
                        case 'padding-box':
                            return 1 /* PADDING_BOX */;
                        case 'content-box':
                            return 2 /* CONTENT_BOX */;
                    }
                }
                return 0 /* BORDER_BOX */;
            });
        }
    };

    var backgroundPosition = {
        name: 'background-position',
        initialValue: '0% 0%',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (_context, tokens) {
            return parseFunctionArgs(tokens)
                .map(function (values) { return values.filter(isLengthPercentage); })
                .map(parseLengthPercentageTuple);
        }
    };

    var backgroundRepeat = {
        name: 'background-repeat',
        initialValue: 'repeat',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return parseFunctionArgs(tokens)
                .map(function (values) {
                return values
                    .filter(isIdentToken)
                    .map(function (token) { return token.value; })
                    .join(' ');
            })
                .map(parseBackgroundRepeat);
        }
    };
    var parseBackgroundRepeat = function (value) {
        switch (value) {
            case 'no-repeat':
                return 1 /* NO_REPEAT */;
            case 'repeat-x':
            case 'repeat no-repeat':
                return 2 /* REPEAT_X */;
            case 'repeat-y':
            case 'no-repeat repeat':
                return 3 /* REPEAT_Y */;
            case 'repeat':
            default:
                return 0 /* REPEAT */;
        }
    };

    var BACKGROUND_SIZE;
    (function (BACKGROUND_SIZE) {
        BACKGROUND_SIZE["AUTO"] = "auto";
        BACKGROUND_SIZE["CONTAIN"] = "contain";
        BACKGROUND_SIZE["COVER"] = "cover";
    })(BACKGROUND_SIZE || (BACKGROUND_SIZE = {}));
    var backgroundSize = {
        name: 'background-size',
        initialValue: '0',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return parseFunctionArgs(tokens).map(function (values) { return values.filter(isBackgroundSizeInfoToken); });
        }
    };
    var isBackgroundSizeInfoToken = function (value) {
        return isIdentToken(value) || isLengthPercentage(value);
    };

    var borderColorForSide = function (side) { return ({
        name: "border-" + side + "-color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    }); };
    var borderTopColor = borderColorForSide('top');
    var borderRightColor = borderColorForSide('right');
    var borderBottomColor = borderColorForSide('bottom');
    var borderLeftColor = borderColorForSide('left');

    var borderRadiusForSide = function (side) { return ({
        name: "border-radius-" + side,
        initialValue: '0 0',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return parseLengthPercentageTuple(tokens.filter(isLengthPercentage));
        }
    }); };
    var borderTopLeftRadius = borderRadiusForSide('top-left');
    var borderTopRightRadius = borderRadiusForSide('top-right');
    var borderBottomRightRadius = borderRadiusForSide('bottom-right');
    var borderBottomLeftRadius = borderRadiusForSide('bottom-left');

    var borderStyleForSide = function (side) { return ({
        name: "border-" + side + "-style",
        initialValue: 'solid',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, style) {
            switch (style) {
                case 'none':
                    return 0 /* NONE */;
                case 'dashed':
                    return 2 /* DASHED */;
                case 'dotted':
                    return 3 /* DOTTED */;
                case 'double':
                    return 4 /* DOUBLE */;
            }
            return 1 /* SOLID */;
        }
    }); };
    var borderTopStyle = borderStyleForSide('top');
    var borderRightStyle = borderStyleForSide('right');
    var borderBottomStyle = borderStyleForSide('bottom');
    var borderLeftStyle = borderStyleForSide('left');

    var borderWidthForSide = function (side) { return ({
        name: "border-" + side + "-width",
        initialValue: '0',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isDimensionToken(token)) {
                return token.number;
            }
            return 0;
        }
    }); };
    var borderTopWidth = borderWidthForSide('top');
    var borderRightWidth = borderWidthForSide('right');
    var borderBottomWidth = borderWidthForSide('bottom');
    var borderLeftWidth = borderWidthForSide('left');

    var color = {
        name: "color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var direction = {
        name: 'direction',
        initialValue: 'ltr',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, direction) {
            switch (direction) {
                case 'rtl':
                    return 1 /* RTL */;
                case 'ltr':
                default:
                    return 0 /* LTR */;
            }
        }
    };

    var display = {
        name: 'display',
        initialValue: 'inline-block',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.filter(isIdentToken).reduce(function (bit, token) {
                return bit | parseDisplayValue(token.value);
            }, 0 /* NONE */);
        }
    };
    var parseDisplayValue = function (display) {
        switch (display) {
            case 'block':
            case '-webkit-box':
                return 2 /* BLOCK */;
            case 'inline':
                return 4 /* INLINE */;
            case 'run-in':
                return 8 /* RUN_IN */;
            case 'flow':
                return 16 /* FLOW */;
            case 'flow-root':
                return 32 /* FLOW_ROOT */;
            case 'table':
                return 64 /* TABLE */;
            case 'flex':
            case '-webkit-flex':
                return 128 /* FLEX */;
            case 'grid':
            case '-ms-grid':
                return 256 /* GRID */;
            case 'ruby':
                return 512 /* RUBY */;
            case 'subgrid':
                return 1024 /* SUBGRID */;
            case 'list-item':
                return 2048 /* LIST_ITEM */;
            case 'table-row-group':
                return 4096 /* TABLE_ROW_GROUP */;
            case 'table-header-group':
                return 8192 /* TABLE_HEADER_GROUP */;
            case 'table-footer-group':
                return 16384 /* TABLE_FOOTER_GROUP */;
            case 'table-row':
                return 32768 /* TABLE_ROW */;
            case 'table-cell':
                return 65536 /* TABLE_CELL */;
            case 'table-column-group':
                return 131072 /* TABLE_COLUMN_GROUP */;
            case 'table-column':
                return 262144 /* TABLE_COLUMN */;
            case 'table-caption':
                return 524288 /* TABLE_CAPTION */;
            case 'ruby-base':
                return 1048576 /* RUBY_BASE */;
            case 'ruby-text':
                return 2097152 /* RUBY_TEXT */;
            case 'ruby-base-container':
                return 4194304 /* RUBY_BASE_CONTAINER */;
            case 'ruby-text-container':
                return 8388608 /* RUBY_TEXT_CONTAINER */;
            case 'contents':
                return 16777216 /* CONTENTS */;
            case 'inline-block':
                return 33554432 /* INLINE_BLOCK */;
            case 'inline-list-item':
                return 67108864 /* INLINE_LIST_ITEM */;
            case 'inline-table':
                return 134217728 /* INLINE_TABLE */;
            case 'inline-flex':
                return 268435456 /* INLINE_FLEX */;
            case 'inline-grid':
                return 536870912 /* INLINE_GRID */;
        }
        return 0 /* NONE */;
    };

    var float = {
        name: 'float',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, float) {
            switch (float) {
                case 'left':
                    return 1 /* LEFT */;
                case 'right':
                    return 2 /* RIGHT */;
                case 'inline-start':
                    return 3 /* INLINE_START */;
                case 'inline-end':
                    return 4 /* INLINE_END */;
            }
            return 0 /* NONE */;
        }
    };

    var letterSpacing = {
        name: 'letter-spacing',
        initialValue: '0',
        prefix: false,
        type: 0 /* VALUE */,
        parse: function (_context, token) {
            if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'normal') {
                return 0;
            }
            if (token.type === 17 /* NUMBER_TOKEN */) {
                return token.number;
            }
            if (token.type === 15 /* DIMENSION_TOKEN */) {
                return token.number;
            }
            return 0;
        }
    };

    var LINE_BREAK;
    (function (LINE_BREAK) {
        LINE_BREAK["NORMAL"] = "normal";
        LINE_BREAK["STRICT"] = "strict";
    })(LINE_BREAK || (LINE_BREAK = {}));
    var lineBreak = {
        name: 'line-break',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, lineBreak) {
            switch (lineBreak) {
                case 'strict':
                    return LINE_BREAK.STRICT;
                case 'normal':
                default:
                    return LINE_BREAK.NORMAL;
            }
        }
    };

    var lineHeight = {
        name: 'line-height',
        initialValue: 'normal',
        prefix: false,
        type: 4 /* TOKEN_VALUE */
    };
    var computeLineHeight = function (token, fontSize) {
        if (isIdentToken(token) && token.value === 'normal') {
            return 1.2 * fontSize;
        }
        else if (token.type === 17 /* NUMBER_TOKEN */) {
            return fontSize * token.number;
        }
        else if (isLengthPercentage(token)) {
            return getAbsoluteValue(token, fontSize);
        }
        return fontSize;
    };

    var listStyleImage = {
        name: 'list-style-image',
        initialValue: 'none',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (context, token) {
            if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'none') {
                return null;
            }
            return image.parse(context, token);
        }
    };

    var listStylePosition = {
        name: 'list-style-position',
        initialValue: 'outside',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, position) {
            switch (position) {
                case 'inside':
                    return 0 /* INSIDE */;
                case 'outside':
                default:
                    return 1 /* OUTSIDE */;
            }
        }
    };

    var listStyleType = {
        name: 'list-style-type',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, type) {
            switch (type) {
                case 'disc':
                    return 0 /* DISC */;
                case 'circle':
                    return 1 /* CIRCLE */;
                case 'square':
                    return 2 /* SQUARE */;
                case 'decimal':
                    return 3 /* DECIMAL */;
                case 'cjk-decimal':
                    return 4 /* CJK_DECIMAL */;
                case 'decimal-leading-zero':
                    return 5 /* DECIMAL_LEADING_ZERO */;
                case 'lower-roman':
                    return 6 /* LOWER_ROMAN */;
                case 'upper-roman':
                    return 7 /* UPPER_ROMAN */;
                case 'lower-greek':
                    return 8 /* LOWER_GREEK */;
                case 'lower-alpha':
                    return 9 /* LOWER_ALPHA */;
                case 'upper-alpha':
                    return 10 /* UPPER_ALPHA */;
                case 'arabic-indic':
                    return 11 /* ARABIC_INDIC */;
                case 'armenian':
                    return 12 /* ARMENIAN */;
                case 'bengali':
                    return 13 /* BENGALI */;
                case 'cambodian':
                    return 14 /* CAMBODIAN */;
                case 'cjk-earthly-branch':
                    return 15 /* CJK_EARTHLY_BRANCH */;
                case 'cjk-heavenly-stem':
                    return 16 /* CJK_HEAVENLY_STEM */;
                case 'cjk-ideographic':
                    return 17 /* CJK_IDEOGRAPHIC */;
                case 'devanagari':
                    return 18 /* DEVANAGARI */;
                case 'ethiopic-numeric':
                    return 19 /* ETHIOPIC_NUMERIC */;
                case 'georgian':
                    return 20 /* GEORGIAN */;
                case 'gujarati':
                    return 21 /* GUJARATI */;
                case 'gurmukhi':
                    return 22 /* GURMUKHI */;
                case 'hebrew':
                    return 22 /* HEBREW */;
                case 'hiragana':
                    return 23 /* HIRAGANA */;
                case 'hiragana-iroha':
                    return 24 /* HIRAGANA_IROHA */;
                case 'japanese-formal':
                    return 25 /* JAPANESE_FORMAL */;
                case 'japanese-informal':
                    return 26 /* JAPANESE_INFORMAL */;
                case 'kannada':
                    return 27 /* KANNADA */;
                case 'katakana':
                    return 28 /* KATAKANA */;
                case 'katakana-iroha':
                    return 29 /* KATAKANA_IROHA */;
                case 'khmer':
                    return 30 /* KHMER */;
                case 'korean-hangul-formal':
                    return 31 /* KOREAN_HANGUL_FORMAL */;
                case 'korean-hanja-formal':
                    return 32 /* KOREAN_HANJA_FORMAL */;
                case 'korean-hanja-informal':
                    return 33 /* KOREAN_HANJA_INFORMAL */;
                case 'lao':
                    return 34 /* LAO */;
                case 'lower-armenian':
                    return 35 /* LOWER_ARMENIAN */;
                case 'malayalam':
                    return 36 /* MALAYALAM */;
                case 'mongolian':
                    return 37 /* MONGOLIAN */;
                case 'myanmar':
                    return 38 /* MYANMAR */;
                case 'oriya':
                    return 39 /* ORIYA */;
                case 'persian':
                    return 40 /* PERSIAN */;
                case 'simp-chinese-formal':
                    return 41 /* SIMP_CHINESE_FORMAL */;
                case 'simp-chinese-informal':
                    return 42 /* SIMP_CHINESE_INFORMAL */;
                case 'tamil':
                    return 43 /* TAMIL */;
                case 'telugu':
                    return 44 /* TELUGU */;
                case 'thai':
                    return 45 /* THAI */;
                case 'tibetan':
                    return 46 /* TIBETAN */;
                case 'trad-chinese-formal':
                    return 47 /* TRAD_CHINESE_FORMAL */;
                case 'trad-chinese-informal':
                    return 48 /* TRAD_CHINESE_INFORMAL */;
                case 'upper-armenian':
                    return 49 /* UPPER_ARMENIAN */;
                case 'disclosure-open':
                    return 50 /* DISCLOSURE_OPEN */;
                case 'disclosure-closed':
                    return 51 /* DISCLOSURE_CLOSED */;
                case 'none':
                default:
                    return -1 /* NONE */;
            }
        }
    };

    var marginForSide = function (side) { return ({
        name: "margin-" + side,
        initialValue: '0',
        prefix: false,
        type: 4 /* TOKEN_VALUE */
    }); };
    var marginTop = marginForSide('top');
    var marginRight = marginForSide('right');
    var marginBottom = marginForSide('bottom');
    var marginLeft = marginForSide('left');

    var overflow = {
        name: 'overflow',
        initialValue: 'visible',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.filter(isIdentToken).map(function (overflow) {
                switch (overflow.value) {
                    case 'hidden':
                        return 1 /* HIDDEN */;
                    case 'scroll':
                        return 2 /* SCROLL */;
                    case 'clip':
                        return 3 /* CLIP */;
                    case 'auto':
                        return 4 /* AUTO */;
                    case 'visible':
                    default:
                        return 0 /* VISIBLE */;
                }
            });
        }
    };

    var overflowWrap = {
        name: 'overflow-wrap',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, overflow) {
            switch (overflow) {
                case 'break-word':
                    return "break-word" /* BREAK_WORD */;
                case 'normal':
                default:
                    return "normal" /* NORMAL */;
            }
        }
    };

    var paddingForSide = function (side) { return ({
        name: "padding-" + side,
        initialValue: '0',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'length-percentage'
    }); };
    var paddingTop = paddingForSide('top');
    var paddingRight = paddingForSide('right');
    var paddingBottom = paddingForSide('bottom');
    var paddingLeft = paddingForSide('left');

    var textAlign = {
        name: 'text-align',
        initialValue: 'left',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, textAlign) {
            switch (textAlign) {
                case 'right':
                    return 2 /* RIGHT */;
                case 'center':
                case 'justify':
                    return 1 /* CENTER */;
                case 'left':
                default:
                    return 0 /* LEFT */;
            }
        }
    };

    var position = {
        name: 'position',
        initialValue: 'static',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, position) {
            switch (position) {
                case 'relative':
                    return 1 /* RELATIVE */;
                case 'absolute':
                    return 2 /* ABSOLUTE */;
                case 'fixed':
                    return 3 /* FIXED */;
                case 'sticky':
                    return 4 /* STICKY */;
            }
            return 0 /* STATIC */;
        }
    };

    var textShadow = {
        name: 'text-shadow',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (context, tokens) {
            if (tokens.length === 1 && isIdentWithValue(tokens[0], 'none')) {
                return [];
            }
            return parseFunctionArgs(tokens).map(function (values) {
                var shadow = {
                    color: COLORS.TRANSPARENT,
                    offsetX: ZERO_LENGTH,
                    offsetY: ZERO_LENGTH,
                    blur: ZERO_LENGTH
                };
                var c = 0;
                for (var i = 0; i < values.length; i++) {
                    var token = values[i];
                    if (isLength(token)) {
                        if (c === 0) {
                            shadow.offsetX = token;
                        }
                        else if (c === 1) {
                            shadow.offsetY = token;
                        }
                        else {
                            shadow.blur = token;
                        }
                        c++;
                    }
                    else {
                        shadow.color = color$1.parse(context, token);
                    }
                }
                return shadow;
            });
        }
    };

    var textTransform = {
        name: 'text-transform',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, textTransform) {
            switch (textTransform) {
                case 'uppercase':
                    return 2 /* UPPERCASE */;
                case 'lowercase':
                    return 1 /* LOWERCASE */;
                case 'capitalize':
                    return 3 /* CAPITALIZE */;
            }
            return 0 /* NONE */;
        }
    };

    var transform$1 = {
        name: 'transform',
        initialValue: 'none',
        prefix: true,
        type: 0 /* VALUE */,
        parse: function (_context, token) {
            if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'none') {
                return null;
            }
            if (token.type === 18 /* FUNCTION */) {
                var transformFunction = SUPPORTED_TRANSFORM_FUNCTIONS[token.name];
                if (typeof transformFunction === 'undefined') {
                    throw new Error("Attempting to parse an unsupported transform function \"" + token.name + "\"");
                }
                return transformFunction(token.values);
            }
            return null;
        }
    };
    var matrix = function (args) {
        var values = args.filter(function (arg) { return arg.type === 17 /* NUMBER_TOKEN */; }).map(function (arg) { return arg.number; });
        return values.length === 6 ? values : null;
    };
    // doesn't support 3D transforms at the moment
    var matrix3d = function (args) {
        var values = args.filter(function (arg) { return arg.type === 17 /* NUMBER_TOKEN */; }).map(function (arg) { return arg.number; });
        var a1 = values[0], b1 = values[1]; values[2]; values[3]; var a2 = values[4], b2 = values[5]; values[6]; values[7]; values[8]; values[9]; values[10]; values[11]; var a4 = values[12], b4 = values[13]; values[14]; values[15];
        return values.length === 16 ? [a1, b1, a2, b2, a4, b4] : null;
    };
    var SUPPORTED_TRANSFORM_FUNCTIONS = {
        matrix: matrix,
        matrix3d: matrix3d
    };

    var DEFAULT_VALUE = {
        type: 16 /* PERCENTAGE_TOKEN */,
        number: 50,
        flags: FLAG_INTEGER
    };
    var DEFAULT = [DEFAULT_VALUE, DEFAULT_VALUE];
    var transformOrigin = {
        name: 'transform-origin',
        initialValue: '50% 50%',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            var origins = tokens.filter(isLengthPercentage);
            if (origins.length !== 2) {
                return DEFAULT;
            }
            return [origins[0], origins[1]];
        }
    };

    var visibility = {
        name: 'visible',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, visibility) {
            switch (visibility) {
                case 'hidden':
                    return 1 /* HIDDEN */;
                case 'collapse':
                    return 2 /* COLLAPSE */;
                case 'visible':
                default:
                    return 0 /* VISIBLE */;
            }
        }
    };

    var WORD_BREAK;
    (function (WORD_BREAK) {
        WORD_BREAK["NORMAL"] = "normal";
        WORD_BREAK["BREAK_ALL"] = "break-all";
        WORD_BREAK["KEEP_ALL"] = "keep-all";
    })(WORD_BREAK || (WORD_BREAK = {}));
    var wordBreak = {
        name: 'word-break',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, wordBreak) {
            switch (wordBreak) {
                case 'break-all':
                    return WORD_BREAK.BREAK_ALL;
                case 'keep-all':
                    return WORD_BREAK.KEEP_ALL;
                case 'normal':
                default:
                    return WORD_BREAK.NORMAL;
            }
        }
    };

    var zIndex = {
        name: 'z-index',
        initialValue: 'auto',
        prefix: false,
        type: 0 /* VALUE */,
        parse: function (_context, token) {
            if (token.type === 20 /* IDENT_TOKEN */) {
                return { auto: true, order: 0 };
            }
            if (isNumberToken(token)) {
                return { auto: false, order: token.number };
            }
            throw new Error("Invalid z-index number parsed");
        }
    };

    var time = {
        name: 'time',
        parse: function (_context, value) {
            if (value.type === 15 /* DIMENSION_TOKEN */) {
                switch (value.unit.toLowerCase()) {
                    case 's':
                        return 1000 * value.number;
                    case 'ms':
                        return value.number;
                }
            }
            throw new Error("Unsupported time type");
        }
    };

    var opacity = {
        name: 'opacity',
        initialValue: '1',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isNumberToken(token)) {
                return token.number;
            }
            return 1;
        }
    };

    var textDecorationColor = {
        name: "text-decoration-color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var textDecorationLine = {
        name: 'text-decoration-line',
        initialValue: 'none',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens
                .filter(isIdentToken)
                .map(function (token) {
                switch (token.value) {
                    case 'underline':
                        return 1 /* UNDERLINE */;
                    case 'overline':
                        return 2 /* OVERLINE */;
                    case 'line-through':
                        return 3 /* LINE_THROUGH */;
                    case 'none':
                        return 4 /* BLINK */;
                }
                return 0 /* NONE */;
            })
                .filter(function (line) { return line !== 0 /* NONE */; });
        }
    };

    var fontFamily = {
        name: "font-family",
        initialValue: '',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            var accumulator = [];
            var results = [];
            tokens.forEach(function (token) {
                switch (token.type) {
                    case 20 /* IDENT_TOKEN */:
                    case 0 /* STRING_TOKEN */:
                        accumulator.push(token.value);
                        break;
                    case 17 /* NUMBER_TOKEN */:
                        accumulator.push(token.number.toString());
                        break;
                    case 4 /* COMMA_TOKEN */:
                        results.push(accumulator.join(' '));
                        accumulator.length = 0;
                        break;
                }
            });
            if (accumulator.length) {
                results.push(accumulator.join(' '));
            }
            return results.map(function (result) { return (result.indexOf(' ') === -1 ? result : "'" + result + "'"); });
        }
    };

    var fontSize = {
        name: "font-size",
        initialValue: '0',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'length'
    };

    var fontWeight = {
        name: 'font-weight',
        initialValue: 'normal',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isNumberToken(token)) {
                return token.number;
            }
            if (isIdentToken(token)) {
                switch (token.value) {
                    case 'bold':
                        return 700;
                    case 'normal':
                    default:
                        return 400;
                }
            }
            return 400;
        }
    };

    var fontVariant = {
        name: 'font-variant',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (_context, tokens) {
            return tokens.filter(isIdentToken).map(function (token) { return token.value; });
        }
    };

    var fontStyle = {
        name: 'font-style',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, overflow) {
            switch (overflow) {
                case 'oblique':
                    return "oblique" /* OBLIQUE */;
                case 'italic':
                    return "italic" /* ITALIC */;
                case 'normal':
                default:
                    return "normal" /* NORMAL */;
            }
        }
    };

    var contains = function (bit, value) { return (bit & value) !== 0; };

    var content = {
        name: 'content',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return [];
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return [];
            }
            return tokens;
        }
    };

    var counterIncrement = {
        name: 'counter-increment',
        initialValue: 'none',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return null;
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return null;
            }
            var increments = [];
            var filtered = tokens.filter(nonWhiteSpace);
            for (var i = 0; i < filtered.length; i++) {
                var counter = filtered[i];
                var next = filtered[i + 1];
                if (counter.type === 20 /* IDENT_TOKEN */) {
                    var increment = next && isNumberToken(next) ? next.number : 1;
                    increments.push({ counter: counter.value, increment: increment });
                }
            }
            return increments;
        }
    };

    var counterReset = {
        name: 'counter-reset',
        initialValue: 'none',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return [];
            }
            var resets = [];
            var filtered = tokens.filter(nonWhiteSpace);
            for (var i = 0; i < filtered.length; i++) {
                var counter = filtered[i];
                var next = filtered[i + 1];
                if (isIdentToken(counter) && counter.value !== 'none') {
                    var reset = next && isNumberToken(next) ? next.number : 0;
                    resets.push({ counter: counter.value, reset: reset });
                }
            }
            return resets;
        }
    };

    var duration = {
        name: 'duration',
        initialValue: '0s',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (context, tokens) {
            return tokens.filter(isDimensionToken).map(function (token) { return time.parse(context, token); });
        }
    };

    var quotes = {
        name: 'quotes',
        initialValue: 'none',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return null;
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return null;
            }
            var quotes = [];
            var filtered = tokens.filter(isStringToken);
            if (filtered.length % 2 !== 0) {
                return null;
            }
            for (var i = 0; i < filtered.length; i += 2) {
                var open_1 = filtered[i].value;
                var close_1 = filtered[i + 1].value;
                quotes.push({ open: open_1, close: close_1 });
            }
            return quotes;
        }
    };
    var getQuote = function (quotes, depth, open) {
        if (!quotes) {
            return '';
        }
        var quote = quotes[Math.min(depth, quotes.length - 1)];
        if (!quote) {
            return '';
        }
        return open ? quote.open : quote.close;
    };

    var boxShadow = {
        name: 'box-shadow',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (context, tokens) {
            if (tokens.length === 1 && isIdentWithValue(tokens[0], 'none')) {
                return [];
            }
            return parseFunctionArgs(tokens).map(function (values) {
                var shadow = {
                    color: 0x000000ff,
                    offsetX: ZERO_LENGTH,
                    offsetY: ZERO_LENGTH,
                    blur: ZERO_LENGTH,
                    spread: ZERO_LENGTH,
                    inset: false
                };
                var c = 0;
                for (var i = 0; i < values.length; i++) {
                    var token = values[i];
                    if (isIdentWithValue(token, 'inset')) {
                        shadow.inset = true;
                    }
                    else if (isLength(token)) {
                        if (c === 0) {
                            shadow.offsetX = token;
                        }
                        else if (c === 1) {
                            shadow.offsetY = token;
                        }
                        else if (c === 2) {
                            shadow.blur = token;
                        }
                        else {
                            shadow.spread = token;
                        }
                        c++;
                    }
                    else {
                        shadow.color = color$1.parse(context, token);
                    }
                }
                return shadow;
            });
        }
    };

    var paintOrder = {
        name: 'paint-order',
        initialValue: 'normal',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            var DEFAULT_VALUE = [0 /* FILL */, 1 /* STROKE */, 2 /* MARKERS */];
            var layers = [];
            tokens.filter(isIdentToken).forEach(function (token) {
                switch (token.value) {
                    case 'stroke':
                        layers.push(1 /* STROKE */);
                        break;
                    case 'fill':
                        layers.push(0 /* FILL */);
                        break;
                    case 'markers':
                        layers.push(2 /* MARKERS */);
                        break;
                }
            });
            DEFAULT_VALUE.forEach(function (value) {
                if (layers.indexOf(value) === -1) {
                    layers.push(value);
                }
            });
            return layers;
        }
    };

    var webkitTextStrokeColor = {
        name: "-webkit-text-stroke-color",
        initialValue: 'currentcolor',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var webkitTextStrokeWidth = {
        name: "-webkit-text-stroke-width",
        initialValue: '0',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isDimensionToken(token)) {
                return token.number;
            }
            return 0;
        }
    };

    var CSSParsedDeclaration = /** @class */ (function () {
        function CSSParsedDeclaration(context, declaration) {
            var _a, _b;
            this.animationDuration = parse(context, duration, declaration.animationDuration);
            this.backgroundClip = parse(context, backgroundClip, declaration.backgroundClip);
            this.backgroundColor = parse(context, backgroundColor, declaration.backgroundColor);
            this.backgroundImage = parse(context, backgroundImage, declaration.backgroundImage);
            this.backgroundOrigin = parse(context, backgroundOrigin, declaration.backgroundOrigin);
            this.backgroundPosition = parse(context, backgroundPosition, declaration.backgroundPosition);
            this.backgroundRepeat = parse(context, backgroundRepeat, declaration.backgroundRepeat);
            this.backgroundSize = parse(context, backgroundSize, declaration.backgroundSize);
            this.borderTopColor = parse(context, borderTopColor, declaration.borderTopColor);
            this.borderRightColor = parse(context, borderRightColor, declaration.borderRightColor);
            this.borderBottomColor = parse(context, borderBottomColor, declaration.borderBottomColor);
            this.borderLeftColor = parse(context, borderLeftColor, declaration.borderLeftColor);
            this.borderTopLeftRadius = parse(context, borderTopLeftRadius, declaration.borderTopLeftRadius);
            this.borderTopRightRadius = parse(context, borderTopRightRadius, declaration.borderTopRightRadius);
            this.borderBottomRightRadius = parse(context, borderBottomRightRadius, declaration.borderBottomRightRadius);
            this.borderBottomLeftRadius = parse(context, borderBottomLeftRadius, declaration.borderBottomLeftRadius);
            this.borderTopStyle = parse(context, borderTopStyle, declaration.borderTopStyle);
            this.borderRightStyle = parse(context, borderRightStyle, declaration.borderRightStyle);
            this.borderBottomStyle = parse(context, borderBottomStyle, declaration.borderBottomStyle);
            this.borderLeftStyle = parse(context, borderLeftStyle, declaration.borderLeftStyle);
            this.borderTopWidth = parse(context, borderTopWidth, declaration.borderTopWidth);
            this.borderRightWidth = parse(context, borderRightWidth, declaration.borderRightWidth);
            this.borderBottomWidth = parse(context, borderBottomWidth, declaration.borderBottomWidth);
            this.borderLeftWidth = parse(context, borderLeftWidth, declaration.borderLeftWidth);
            this.boxShadow = parse(context, boxShadow, declaration.boxShadow);
            this.color = parse(context, color, declaration.color);
            this.direction = parse(context, direction, declaration.direction);
            this.display = parse(context, display, declaration.display);
            this.float = parse(context, float, declaration.cssFloat);
            this.fontFamily = parse(context, fontFamily, declaration.fontFamily);
            this.fontSize = parse(context, fontSize, declaration.fontSize);
            this.fontStyle = parse(context, fontStyle, declaration.fontStyle);
            this.fontVariant = parse(context, fontVariant, declaration.fontVariant);
            this.fontWeight = parse(context, fontWeight, declaration.fontWeight);
            this.letterSpacing = parse(context, letterSpacing, declaration.letterSpacing);
            this.lineBreak = parse(context, lineBreak, declaration.lineBreak);
            this.lineHeight = parse(context, lineHeight, declaration.lineHeight);
            this.listStyleImage = parse(context, listStyleImage, declaration.listStyleImage);
            this.listStylePosition = parse(context, listStylePosition, declaration.listStylePosition);
            this.listStyleType = parse(context, listStyleType, declaration.listStyleType);
            this.marginTop = parse(context, marginTop, declaration.marginTop);
            this.marginRight = parse(context, marginRight, declaration.marginRight);
            this.marginBottom = parse(context, marginBottom, declaration.marginBottom);
            this.marginLeft = parse(context, marginLeft, declaration.marginLeft);
            this.opacity = parse(context, opacity, declaration.opacity);
            var overflowTuple = parse(context, overflow, declaration.overflow);
            this.overflowX = overflowTuple[0];
            this.overflowY = overflowTuple[overflowTuple.length > 1 ? 1 : 0];
            this.overflowWrap = parse(context, overflowWrap, declaration.overflowWrap);
            this.paddingTop = parse(context, paddingTop, declaration.paddingTop);
            this.paddingRight = parse(context, paddingRight, declaration.paddingRight);
            this.paddingBottom = parse(context, paddingBottom, declaration.paddingBottom);
            this.paddingLeft = parse(context, paddingLeft, declaration.paddingLeft);
            this.paintOrder = parse(context, paintOrder, declaration.paintOrder);
            this.position = parse(context, position, declaration.position);
            this.textAlign = parse(context, textAlign, declaration.textAlign);
            this.textDecorationColor = parse(context, textDecorationColor, (_a = declaration.textDecorationColor) !== null && _a !== void 0 ? _a : declaration.color);
            this.textDecorationLine = parse(context, textDecorationLine, (_b = declaration.textDecorationLine) !== null && _b !== void 0 ? _b : declaration.textDecoration);
            this.textShadow = parse(context, textShadow, declaration.textShadow);
            this.textTransform = parse(context, textTransform, declaration.textTransform);
            this.transform = parse(context, transform$1, declaration.transform);
            this.transformOrigin = parse(context, transformOrigin, declaration.transformOrigin);
            this.visibility = parse(context, visibility, declaration.visibility);
            this.webkitTextStrokeColor = parse(context, webkitTextStrokeColor, declaration.webkitTextStrokeColor);
            this.webkitTextStrokeWidth = parse(context, webkitTextStrokeWidth, declaration.webkitTextStrokeWidth);
            this.wordBreak = parse(context, wordBreak, declaration.wordBreak);
            this.zIndex = parse(context, zIndex, declaration.zIndex);
        }
        CSSParsedDeclaration.prototype.isVisible = function () {
            return this.display > 0 && this.opacity > 0 && this.visibility === 0 /* VISIBLE */;
        };
        CSSParsedDeclaration.prototype.isTransparent = function () {
            return isTransparent(this.backgroundColor);
        };
        CSSParsedDeclaration.prototype.isTransformed = function () {
            return this.transform !== null;
        };
        CSSParsedDeclaration.prototype.isPositioned = function () {
            return this.position !== 0 /* STATIC */;
        };
        CSSParsedDeclaration.prototype.isPositionedWithZIndex = function () {
            return this.isPositioned() && !this.zIndex.auto;
        };
        CSSParsedDeclaration.prototype.isFloating = function () {
            return this.float !== 0 /* NONE */;
        };
        CSSParsedDeclaration.prototype.isInlineLevel = function () {
            return (contains(this.display, 4 /* INLINE */) ||
                contains(this.display, 33554432 /* INLINE_BLOCK */) ||
                contains(this.display, 268435456 /* INLINE_FLEX */) ||
                contains(this.display, 536870912 /* INLINE_GRID */) ||
                contains(this.display, 67108864 /* INLINE_LIST_ITEM */) ||
                contains(this.display, 134217728 /* INLINE_TABLE */));
        };
        return CSSParsedDeclaration;
    }());
    var CSSParsedPseudoDeclaration = /** @class */ (function () {
        function CSSParsedPseudoDeclaration(context, declaration) {
            this.content = parse(context, content, declaration.content);
            this.quotes = parse(context, quotes, declaration.quotes);
        }
        return CSSParsedPseudoDeclaration;
    }());
    var CSSParsedCounterDeclaration = /** @class */ (function () {
        function CSSParsedCounterDeclaration(context, declaration) {
            this.counterIncrement = parse(context, counterIncrement, declaration.counterIncrement);
            this.counterReset = parse(context, counterReset, declaration.counterReset);
        }
        return CSSParsedCounterDeclaration;
    }());
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    var parse = function (context, descriptor, style) {
        var tokenizer = new Tokenizer();
        var value = style !== null && typeof style !== 'undefined' ? style.toString() : descriptor.initialValue;
        tokenizer.write(value);
        var parser = new Parser(tokenizer.read());
        switch (descriptor.type) {
            case 2 /* IDENT_VALUE */:
                var token = parser.parseComponentValue();
                return descriptor.parse(context, isIdentToken(token) ? token.value : descriptor.initialValue);
            case 0 /* VALUE */:
                return descriptor.parse(context, parser.parseComponentValue());
            case 1 /* LIST */:
                return descriptor.parse(context, parser.parseComponentValues());
            case 4 /* TOKEN_VALUE */:
                return parser.parseComponentValue();
            case 3 /* TYPE_VALUE */:
                switch (descriptor.format) {
                    case 'angle':
                        return angle.parse(context, parser.parseComponentValue());
                    case 'color':
                        return color$1.parse(context, parser.parseComponentValue());
                    case 'image':
                        return image.parse(context, parser.parseComponentValue());
                    case 'length':
                        var length_1 = parser.parseComponentValue();
                        return isLength(length_1) ? length_1 : ZERO_LENGTH;
                    case 'length-percentage':
                        var value_1 = parser.parseComponentValue();
                        return isLengthPercentage(value_1) ? value_1 : ZERO_LENGTH;
                    case 'time':
                        return time.parse(context, parser.parseComponentValue());
                }
                break;
        }
    };

    var elementDebuggerAttribute = 'data-html2canvas-debug';
    var getElementDebugType = function (element) {
        var attribute = element.getAttribute(elementDebuggerAttribute);
        switch (attribute) {
            case 'all':
                return 1 /* ALL */;
            case 'clone':
                return 2 /* CLONE */;
            case 'parse':
                return 3 /* PARSE */;
            case 'render':
                return 4 /* RENDER */;
            default:
                return 0 /* NONE */;
        }
    };
    var isDebugging = function (element, type) {
        var elementType = getElementDebugType(element);
        return elementType === 1 /* ALL */ || type === elementType;
    };

    var ElementContainer = /** @class */ (function () {
        function ElementContainer(context, element) {
            this.context = context;
            this.textNodes = [];
            this.elements = [];
            this.flags = 0;
            if (isDebugging(element, 3 /* PARSE */)) {
                debugger;
            }
            this.styles = new CSSParsedDeclaration(context, window.getComputedStyle(element, null));
            if (isHTMLElementNode(element)) {
                if (this.styles.animationDuration.some(function (duration) { return duration > 0; })) {
                    element.style.animationDuration = '0s';
                }
                if (this.styles.transform !== null) {
                    // getBoundingClientRect takes transforms into account
                    element.style.transform = 'none';
                }
            }
            this.bounds = parseBounds(this.context, element);
            if (isDebugging(element, 4 /* RENDER */)) {
                this.flags |= 16 /* DEBUG_RENDER */;
            }
        }
        return ElementContainer;
    }());

    /*
     * text-segmentation 1.0.3 <https://github.com/niklasvh/text-segmentation>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var base64 = 'AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=';

    /*
     * utrie 1.0.2 <https://github.com/niklasvh/utrie>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$1 = 0; i$1 < chars$1.length; i$1++) {
        lookup$1[chars$1.charCodeAt(i$1)] = i$1;
    }
    var decode = function (base64) {
        var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
        if (base64[base64.length - 1] === '=') {
            bufferLength--;
            if (base64[base64.length - 2] === '=') {
                bufferLength--;
            }
        }
        var buffer = typeof ArrayBuffer !== 'undefined' &&
            typeof Uint8Array !== 'undefined' &&
            typeof Uint8Array.prototype.slice !== 'undefined'
            ? new ArrayBuffer(bufferLength)
            : new Array(bufferLength);
        var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);
        for (i = 0; i < len; i += 4) {
            encoded1 = lookup$1[base64.charCodeAt(i)];
            encoded2 = lookup$1[base64.charCodeAt(i + 1)];
            encoded3 = lookup$1[base64.charCodeAt(i + 2)];
            encoded4 = lookup$1[base64.charCodeAt(i + 3)];
            bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
            bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
            bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
        }
        return buffer;
    };
    var polyUint16Array = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 2) {
            bytes.push((buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };
    var polyUint32Array = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 4) {
            bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };

    /** Shift size for getting the index-2 table offset. */
    var UTRIE2_SHIFT_2 = 5;
    /** Shift size for getting the index-1 table offset. */
    var UTRIE2_SHIFT_1 = 6 + 5;
    /**
     * Shift size for shifting left the index array values.
     * Increases possible data size with 16-bit index values at the cost
     * of compactability.
     * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.
     */
    var UTRIE2_INDEX_SHIFT = 2;
    /**
     * Difference between the two shift sizes,
     * for getting an index-1 offset from an index-2 offset. 6=11-5
     */
    var UTRIE2_SHIFT_1_2 = UTRIE2_SHIFT_1 - UTRIE2_SHIFT_2;
    /**
     * The part of the index-2 table for U+D800..U+DBFF stores values for
     * lead surrogate code _units_ not code _points_.
     * Values for lead surrogate code _points_ are indexed with this portion of the table.
     * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)
     */
    var UTRIE2_LSCP_INDEX_2_OFFSET = 0x10000 >> UTRIE2_SHIFT_2;
    /** Number of entries in a data block. 32=0x20 */
    var UTRIE2_DATA_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_2;
    /** Mask for getting the lower bits for the in-data-block offset. */
    var UTRIE2_DATA_MASK = UTRIE2_DATA_BLOCK_LENGTH - 1;
    var UTRIE2_LSCP_INDEX_2_LENGTH = 0x400 >> UTRIE2_SHIFT_2;
    /** Count the lengths of both BMP pieces. 2080=0x820 */
    var UTRIE2_INDEX_2_BMP_LENGTH = UTRIE2_LSCP_INDEX_2_OFFSET + UTRIE2_LSCP_INDEX_2_LENGTH;
    /**
     * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
     * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.
     */
    var UTRIE2_UTF8_2B_INDEX_2_OFFSET = UTRIE2_INDEX_2_BMP_LENGTH;
    var UTRIE2_UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */
    /**
     * The index-1 table, only used for supplementary code points, at offset 2112=0x840.
     * Variable length, for code points up to highStart, where the last single-value range starts.
     * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.
     * (For 0x100000 supplementary code points U+10000..U+10ffff.)
     *
     * The part of the index-2 table for supplementary code points starts
     * after this index-1 table.
     *
     * Both the index-1 table and the following part of the index-2 table
     * are omitted completely if there is only BMP data.
     */
    var UTRIE2_INDEX_1_OFFSET = UTRIE2_UTF8_2B_INDEX_2_OFFSET + UTRIE2_UTF8_2B_INDEX_2_LENGTH;
    /**
     * Number of index-1 entries for the BMP. 32=0x20
     * This part of the index-1 table is omitted from the serialized form.
     */
    var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> UTRIE2_SHIFT_1;
    /** Number of entries in an index-2 block. 64=0x40 */
    var UTRIE2_INDEX_2_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_1_2;
    /** Mask for getting the lower bits for the in-index-2-block offset. */
    var UTRIE2_INDEX_2_MASK = UTRIE2_INDEX_2_BLOCK_LENGTH - 1;
    var slice16 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint16Array(Array.prototype.slice.call(view, start, end));
    };
    var slice32 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint32Array(Array.prototype.slice.call(view, start, end));
    };
    var createTrieFromBase64 = function (base64, _byteLength) {
        var buffer = decode(base64);
        var view32 = Array.isArray(buffer) ? polyUint32Array(buffer) : new Uint32Array(buffer);
        var view16 = Array.isArray(buffer) ? polyUint16Array(buffer) : new Uint16Array(buffer);
        var headerLength = 24;
        var index = slice16(view16, headerLength / 2, view32[4] / 2);
        var data = view32[5] === 2
            ? slice16(view16, (headerLength + view32[4]) / 2)
            : slice32(view32, Math.ceil((headerLength + view32[4]) / 4));
        return new Trie(view32[0], view32[1], view32[2], view32[3], index, data);
    };
    var Trie = /** @class */ (function () {
        function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {
            this.initialValue = initialValue;
            this.errorValue = errorValue;
            this.highStart = highStart;
            this.highValueIndex = highValueIndex;
            this.index = index;
            this.data = data;
        }
        /**
         * Get the value for a code point as stored in the Trie.
         *
         * @param codePoint the code point
         * @return the value
         */
        Trie.prototype.get = function (codePoint) {
            var ix;
            if (codePoint >= 0) {
                if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) {
                    // Ordinary BMP code point, excluding leading surrogates.
                    // BMP uses a single level lookup.  BMP index starts at offset 0 in the Trie2 index.
                    // 16 bit data is stored in the index array itself.
                    ix = this.index[codePoint >> UTRIE2_SHIFT_2];
                    ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
                    return this.data[ix];
                }
                if (codePoint <= 0xffff) {
                    // Lead Surrogate Code Point.  A Separate index section is stored for
                    // lead surrogate code units and code points.
                    //   The main index has the code unit data.
                    //   For this function, we need the code point data.
                    // Note: this expression could be refactored for slightly improved efficiency, but
                    //       surrogate code points will be so rare in practice that it's not worth it.
                    ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)];
                    ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
                    return this.data[ix];
                }
                if (codePoint < this.highStart) {
                    // Supplemental code point, use two-level lookup.
                    ix = UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH + (codePoint >> UTRIE2_SHIFT_1);
                    ix = this.index[ix];
                    ix += (codePoint >> UTRIE2_SHIFT_2) & UTRIE2_INDEX_2_MASK;
                    ix = this.index[ix];
                    ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
                    return this.data[ix];
                }
                if (codePoint <= 0x10ffff) {
                    return this.data[this.highValueIndex];
                }
            }
            // Fall through.  The code point is outside of the legal range of 0..0x10ffff.
            return this.errorValue;
        };
        return Trie;
    }());

    /*
     * base64-arraybuffer 1.0.2 <https://github.com/niklasvh/base64-arraybuffer>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i = 0; i < chars.length; i++) {
        lookup[chars.charCodeAt(i)] = i;
    }

    var Prepend = 1;
    var CR = 2;
    var LF = 3;
    var Control = 4;
    var Extend = 5;
    var SpacingMark = 7;
    var L = 8;
    var V = 9;
    var T = 10;
    var LV = 11;
    var LVT = 12;
    var ZWJ = 13;
    var Extended_Pictographic = 14;
    var RI = 15;
    var toCodePoints = function (str) {
        var codePoints = [];
        var i = 0;
        var length = str.length;
        while (i < length) {
            var value = str.charCodeAt(i++);
            if (value >= 0xd800 && value <= 0xdbff && i < length) {
                var extra = str.charCodeAt(i++);
                if ((extra & 0xfc00) === 0xdc00) {
                    codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);
                }
                else {
                    codePoints.push(value);
                    i--;
                }
            }
            else {
                codePoints.push(value);
            }
        }
        return codePoints;
    };
    var fromCodePoint = function () {
        var codePoints = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            codePoints[_i] = arguments[_i];
        }
        if (String.fromCodePoint) {
            return String.fromCodePoint.apply(String, codePoints);
        }
        var length = codePoints.length;
        if (!length) {
            return '';
        }
        var codeUnits = [];
        var index = -1;
        var result = '';
        while (++index < length) {
            var codePoint = codePoints[index];
            if (codePoint <= 0xffff) {
                codeUnits.push(codePoint);
            }
            else {
                codePoint -= 0x10000;
                codeUnits.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00);
            }
            if (index + 1 === length || codeUnits.length > 0x4000) {
                result += String.fromCharCode.apply(String, codeUnits);
                codeUnits.length = 0;
            }
        }
        return result;
    };
    var UnicodeTrie = createTrieFromBase64(base64);
    var BREAK_NOT_ALLOWED = '×';
    var BREAK_ALLOWED = '÷';
    var codePointToClass = function (codePoint) { return UnicodeTrie.get(codePoint); };
    var _graphemeBreakAtIndex = function (_codePoints, classTypes, index) {
        var prevIndex = index - 2;
        var prev = classTypes[prevIndex];
        var current = classTypes[index - 1];
        var next = classTypes[index];
        // GB3 Do not break between a CR and LF
        if (current === CR && next === LF) {
            return BREAK_NOT_ALLOWED;
        }
        // GB4 Otherwise, break before and after controls.
        if (current === CR || current === LF || current === Control) {
            return BREAK_ALLOWED;
        }
        // GB5
        if (next === CR || next === LF || next === Control) {
            return BREAK_ALLOWED;
        }
        // Do not break Hangul syllable sequences.
        // GB6
        if (current === L && [L, V, LV, LVT].indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED;
        }
        // GB7
        if ((current === LV || current === V) && (next === V || next === T)) {
            return BREAK_NOT_ALLOWED;
        }
        // GB8
        if ((current === LVT || current === T) && next === T) {
            return BREAK_NOT_ALLOWED;
        }
        // GB9 Do not break before extending characters or ZWJ.
        if (next === ZWJ || next === Extend) {
            return BREAK_NOT_ALLOWED;
        }
        // Do not break before SpacingMarks, or after Prepend characters.
        // GB9a
        if (next === SpacingMark) {
            return BREAK_NOT_ALLOWED;
        }
        // GB9a
        if (current === Prepend) {
            return BREAK_NOT_ALLOWED;
        }
        // GB11 Do not break within emoji modifier sequences or emoji zwj sequences.
        if (current === ZWJ && next === Extended_Pictographic) {
            while (prev === Extend) {
                prev = classTypes[--prevIndex];
            }
            if (prev === Extended_Pictographic) {
                return BREAK_NOT_ALLOWED;
            }
        }
        // GB12 Do not break within emoji flag sequences.
        // That is, do not break between regional indicator (RI) symbols
        // if there is an odd number of RI characters before the break point.
        if (current === RI && next === RI) {
            var countRI = 0;
            while (prev === RI) {
                countRI++;
                prev = classTypes[--prevIndex];
            }
            if (countRI % 2 === 0) {
                return BREAK_NOT_ALLOWED;
            }
        }
        return BREAK_ALLOWED;
    };
    var GraphemeBreaker = function (str) {
        var codePoints = toCodePoints(str);
        var length = codePoints.length;
        var index = 0;
        var lastEnd = 0;
        var classTypes = codePoints.map(codePointToClass);
        return {
            next: function () {
                if (index >= length) {
                    return { done: true, value: null };
                }
                var graphemeBreak = BREAK_NOT_ALLOWED;
                while (index < length &&
                    (graphemeBreak = _graphemeBreakAtIndex(codePoints, classTypes, ++index)) === BREAK_NOT_ALLOWED) { }
                if (graphemeBreak !== BREAK_NOT_ALLOWED || index === length) {
                    var value = fromCodePoint.apply(null, codePoints.slice(lastEnd, index));
                    lastEnd = index;
                    return { value: value, done: false };
                }
                return { done: true, value: null };
            },
        };
    };
    var splitGraphemes = function (str) {
        var breaker = GraphemeBreaker(str);
        var graphemes = [];
        var bk;
        while (!(bk = breaker.next()).done) {
            if (bk.value) {
                graphemes.push(bk.value.slice());
            }
        }
        return graphemes;
    };

    var testRangeBounds = function (document) {
        var TEST_HEIGHT = 123;
        if (document.createRange) {
            var range = document.createRange();
            if (range.getBoundingClientRect) {
                var testElement = document.createElement('boundtest');
                testElement.style.height = TEST_HEIGHT + "px";
                testElement.style.display = 'block';
                document.body.appendChild(testElement);
                range.selectNode(testElement);
                var rangeBounds = range.getBoundingClientRect();
                var rangeHeight = Math.round(rangeBounds.height);
                document.body.removeChild(testElement);
                if (rangeHeight === TEST_HEIGHT) {
                    return true;
                }
            }
        }
        return false;
    };
    var testIOSLineBreak = function (document) {
        var testElement = document.createElement('boundtest');
        testElement.style.width = '50px';
        testElement.style.display = 'block';
        testElement.style.fontSize = '12px';
        testElement.style.letterSpacing = '0px';
        testElement.style.wordSpacing = '0px';
        document.body.appendChild(testElement);
        var range = document.createRange();
        testElement.innerHTML = typeof ''.repeat === 'function' ? '&#128104;'.repeat(10) : '';
        var node = testElement.firstChild;
        var textList = toCodePoints$1(node.data).map(function (i) { return fromCodePoint$1(i); });
        var offset = 0;
        var prev = {};
        // ios 13 does not handle range getBoundingClientRect line changes correctly #2177
        var supports = textList.every(function (text, i) {
            range.setStart(node, offset);
            range.setEnd(node, offset + text.length);
            var rect = range.getBoundingClientRect();
            offset += text.length;
            var boundAhead = rect.x > prev.x || rect.y > prev.y;
            prev = rect;
            if (i === 0) {
                return true;
            }
            return boundAhead;
        });
        document.body.removeChild(testElement);
        return supports;
    };
    var testCORS = function () { return typeof new Image().crossOrigin !== 'undefined'; };
    var testResponseType = function () { return typeof new XMLHttpRequest().responseType === 'string'; };
    var testSVG = function (document) {
        var img = new Image();
        var canvas = document.createElement('canvas');
        var ctx = canvas.getContext('2d');
        if (!ctx) {
            return false;
        }
        img.src = "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";
        try {
            ctx.drawImage(img, 0, 0);
            canvas.toDataURL();
        }
        catch (e) {
            return false;
        }
        return true;
    };
    var isGreenPixel = function (data) {
        return data[0] === 0 && data[1] === 255 && data[2] === 0 && data[3] === 255;
    };
    var testForeignObject = function (document) {
        var canvas = document.createElement('canvas');
        var size = 100;
        canvas.width = size;
        canvas.height = size;
        var ctx = canvas.getContext('2d');
        if (!ctx) {
            return Promise.reject(false);
        }
        ctx.fillStyle = 'rgb(0, 255, 0)';
        ctx.fillRect(0, 0, size, size);
        var img = new Image();
        var greenImageSrc = canvas.toDataURL();
        img.src = greenImageSrc;
        var svg = createForeignObjectSVG(size, size, 0, 0, img);
        ctx.fillStyle = 'red';
        ctx.fillRect(0, 0, size, size);
        return loadSerializedSVG$1(svg)
            .then(function (img) {
            ctx.drawImage(img, 0, 0);
            var data = ctx.getImageData(0, 0, size, size).data;
            ctx.fillStyle = 'red';
            ctx.fillRect(0, 0, size, size);
            var node = document.createElement('div');
            node.style.backgroundImage = "url(" + greenImageSrc + ")";
            node.style.height = size + "px";
            // Firefox 55 does not render inline <img /> tags
            return isGreenPixel(data)
                ? loadSerializedSVG$1(createForeignObjectSVG(size, size, 0, 0, node))
                : Promise.reject(false);
        })
            .then(function (img) {
            ctx.drawImage(img, 0, 0);
            // Edge does not render background-images
            return isGreenPixel(ctx.getImageData(0, 0, size, size).data);
        })
            .catch(function () { return false; });
    };
    var createForeignObjectSVG = function (width, height, x, y, node) {
        var xmlns = 'http://www.w3.org/2000/svg';
        var svg = document.createElementNS(xmlns, 'svg');
        var foreignObject = document.createElementNS(xmlns, 'foreignObject');
        svg.setAttributeNS(null, 'width', width.toString());
        svg.setAttributeNS(null, 'height', height.toString());
        foreignObject.setAttributeNS(null, 'width', '100%');
        foreignObject.setAttributeNS(null, 'height', '100%');
        foreignObject.setAttributeNS(null, 'x', x.toString());
        foreignObject.setAttributeNS(null, 'y', y.toString());
        foreignObject.setAttributeNS(null, 'externalResourcesRequired', 'true');
        svg.appendChild(foreignObject);
        foreignObject.appendChild(node);
        return svg;
    };
    var loadSerializedSVG$1 = function (svg) {
        return new Promise(function (resolve, reject) {
            var img = new Image();
            img.onload = function () { return resolve(img); };
            img.onerror = reject;
            img.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(svg));
        });
    };
    var FEATURES = {
        get SUPPORT_RANGE_BOUNDS() {
            var value = testRangeBounds(document);
            Object.defineProperty(FEATURES, 'SUPPORT_RANGE_BOUNDS', { value: value });
            return value;
        },
        get SUPPORT_WORD_BREAKING() {
            var value = FEATURES.SUPPORT_RANGE_BOUNDS && testIOSLineBreak(document);
            Object.defineProperty(FEATURES, 'SUPPORT_WORD_BREAKING', { value: value });
            return value;
        },
        get SUPPORT_SVG_DRAWING() {
            var value = testSVG(document);
            Object.defineProperty(FEATURES, 'SUPPORT_SVG_DRAWING', { value: value });
            return value;
        },
        get SUPPORT_FOREIGNOBJECT_DRAWING() {
            var value = typeof Array.from === 'function' && typeof window.fetch === 'function'
                ? testForeignObject(document)
                : Promise.resolve(false);
            Object.defineProperty(FEATURES, 'SUPPORT_FOREIGNOBJECT_DRAWING', { value: value });
            return value;
        },
        get SUPPORT_CORS_IMAGES() {
            var value = testCORS();
            Object.defineProperty(FEATURES, 'SUPPORT_CORS_IMAGES', { value: value });
            return value;
        },
        get SUPPORT_RESPONSE_TYPE() {
            var value = testResponseType();
            Object.defineProperty(FEATURES, 'SUPPORT_RESPONSE_TYPE', { value: value });
            return value;
        },
        get SUPPORT_CORS_XHR() {
            var value = 'withCredentials' in new XMLHttpRequest();
            Object.defineProperty(FEATURES, 'SUPPORT_CORS_XHR', { value: value });
            return value;
        },
        get SUPPORT_NATIVE_TEXT_SEGMENTATION() {
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            var value = !!(typeof Intl !== 'undefined' && Intl.Segmenter);
            Object.defineProperty(FEATURES, 'SUPPORT_NATIVE_TEXT_SEGMENTATION', { value: value });
            return value;
        }
    };

    var TextBounds = /** @class */ (function () {
        function TextBounds(text, bounds) {
            this.text = text;
            this.bounds = bounds;
        }
        return TextBounds;
    }());
    var parseTextBounds = function (context, value, styles, node) {
        var textList = breakText(value, styles);
        var textBounds = [];
        var offset = 0;
        textList.forEach(function (text) {
            if (styles.textDecorationLine.length || text.trim().length > 0) {
                if (FEATURES.SUPPORT_RANGE_BOUNDS) {
                    var clientRects = createRange(node, offset, text.length).getClientRects();
                    if (clientRects.length > 1) {
                        var subSegments = segmentGraphemes(text);
                        var subOffset_1 = 0;
                        subSegments.forEach(function (subSegment) {
                            textBounds.push(new TextBounds(subSegment, Bounds.fromDOMRectList(context, createRange(node, subOffset_1 + offset, subSegment.length).getClientRects())));
                            subOffset_1 += subSegment.length;
                        });
                    }
                    else {
                        textBounds.push(new TextBounds(text, Bounds.fromDOMRectList(context, clientRects)));
                    }
                }
                else {
                    var replacementNode = node.splitText(text.length);
                    textBounds.push(new TextBounds(text, getWrapperBounds(context, node)));
                    node = replacementNode;
                }
            }
            else if (!FEATURES.SUPPORT_RANGE_BOUNDS) {
                node = node.splitText(text.length);
            }
            offset += text.length;
        });
        return textBounds;
    };
    var getWrapperBounds = function (context, node) {
        var ownerDocument = node.ownerDocument;
        if (ownerDocument) {
            var wrapper = ownerDocument.createElement('html2canvaswrapper');
            wrapper.appendChild(node.cloneNode(true));
            var parentNode = node.parentNode;
            if (parentNode) {
                parentNode.replaceChild(wrapper, node);
                var bounds = parseBounds(context, wrapper);
                if (wrapper.firstChild) {
                    parentNode.replaceChild(wrapper.firstChild, wrapper);
                }
                return bounds;
            }
        }
        return Bounds.EMPTY;
    };
    var createRange = function (node, offset, length) {
        var ownerDocument = node.ownerDocument;
        if (!ownerDocument) {
            throw new Error('Node has no owner document');
        }
        var range = ownerDocument.createRange();
        range.setStart(node, offset);
        range.setEnd(node, offset + length);
        return range;
    };
    var segmentGraphemes = function (value) {
        if (FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            var segmenter = new Intl.Segmenter(void 0, { granularity: 'grapheme' });
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            return Array.from(segmenter.segment(value)).map(function (segment) { return segment.segment; });
        }
        return splitGraphemes(value);
    };
    var segmentWords = function (value, styles) {
        if (FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            var segmenter = new Intl.Segmenter(void 0, {
                granularity: 'word'
            });
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            return Array.from(segmenter.segment(value)).map(function (segment) { return segment.segment; });
        }
        return breakWords(value, styles);
    };
    var breakText = function (value, styles) {
        return styles.letterSpacing !== 0 ? segmentGraphemes(value) : segmentWords(value, styles);
    };
    // https://drafts.csswg.org/css-text/#word-separator
    var wordSeparators = [0x0020, 0x00a0, 0x1361, 0x10100, 0x10101, 0x1039, 0x1091];
    var breakWords = function (str, styles) {
        var breaker = LineBreaker(str, {
            lineBreak: styles.lineBreak,
            wordBreak: styles.overflowWrap === "break-word" /* BREAK_WORD */ ? 'break-word' : styles.wordBreak
        });
        var words = [];
        var bk;
        var _loop_1 = function () {
            if (bk.value) {
                var value = bk.value.slice();
                var codePoints = toCodePoints$1(value);
                var word_1 = '';
                codePoints.forEach(function (codePoint) {
                    if (wordSeparators.indexOf(codePoint) === -1) {
                        word_1 += fromCodePoint$1(codePoint);
                    }
                    else {
                        if (word_1.length) {
                            words.push(word_1);
                        }
                        words.push(fromCodePoint$1(codePoint));
                        word_1 = '';
                    }
                });
                if (word_1.length) {
                    words.push(word_1);
                }
            }
        };
        while (!(bk = breaker.next()).done) {
            _loop_1();
        }
        return words;
    };

    var TextContainer = /** @class */ (function () {
        function TextContainer(context, node, styles) {
            this.text = transform(node.data, styles.textTransform);
            this.textBounds = parseTextBounds(context, this.text, styles, node);
        }
        return TextContainer;
    }());
    var transform = function (text, transform) {
        switch (transform) {
            case 1 /* LOWERCASE */:
                return text.toLowerCase();
            case 3 /* CAPITALIZE */:
                return text.replace(CAPITALIZE, capitalize);
            case 2 /* UPPERCASE */:
                return text.toUpperCase();
            default:
                return text;
        }
    };
    var CAPITALIZE = /(^|\s|:|-|\(|\))([a-z])/g;
    var capitalize = function (m, p1, p2) {
        if (m.length > 0) {
            return p1 + p2.toUpperCase();
        }
        return m;
    };

    var ImageElementContainer = /** @class */ (function (_super) {
        __extends(ImageElementContainer, _super);
        function ImageElementContainer(context, img) {
            var _this = _super.call(this, context, img) || this;
            _this.src = img.currentSrc || img.src;
            _this.intrinsicWidth = img.naturalWidth;
            _this.intrinsicHeight = img.naturalHeight;
            _this.context.cache.addImage(_this.src);
            return _this;
        }
        return ImageElementContainer;
    }(ElementContainer));

    var CanvasElementContainer = /** @class */ (function (_super) {
        __extends(CanvasElementContainer, _super);
        function CanvasElementContainer(context, canvas) {
            var _this = _super.call(this, context, canvas) || this;
            _this.canvas = canvas;
            _this.intrinsicWidth = canvas.width;
            _this.intrinsicHeight = canvas.height;
            return _this;
        }
        return CanvasElementContainer;
    }(ElementContainer));

    var SVGElementContainer = /** @class */ (function (_super) {
        __extends(SVGElementContainer, _super);
        function SVGElementContainer(context, img) {
            var _this = _super.call(this, context, img) || this;
            var s = new XMLSerializer();
            var bounds = parseBounds(context, img);
            img.setAttribute('width', bounds.width + "px");
            img.setAttribute('height', bounds.height + "px");
            _this.svg = "data:image/svg+xml," + encodeURIComponent(s.serializeToString(img));
            _this.intrinsicWidth = img.width.baseVal.value;
            _this.intrinsicHeight = img.height.baseVal.value;
            _this.context.cache.addImage(_this.svg);
            return _this;
        }
        return SVGElementContainer;
    }(ElementContainer));

    var LIElementContainer = /** @class */ (function (_super) {
        __extends(LIElementContainer, _super);
        function LIElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            _this.value = element.value;
            return _this;
        }
        return LIElementContainer;
    }(ElementContainer));

    var OLElementContainer = /** @class */ (function (_super) {
        __extends(OLElementContainer, _super);
        function OLElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            _this.start = element.start;
            _this.reversed = typeof element.reversed === 'boolean' && element.reversed === true;
            return _this;
        }
        return OLElementContainer;
    }(ElementContainer));

    var CHECKBOX_BORDER_RADIUS = [
        {
            type: 15 /* DIMENSION_TOKEN */,
            flags: 0,
            unit: 'px',
            number: 3
        }
    ];
    var RADIO_BORDER_RADIUS = [
        {
            type: 16 /* PERCENTAGE_TOKEN */,
            flags: 0,
            number: 50
        }
    ];
    var reformatInputBounds = function (bounds) {
        if (bounds.width > bounds.height) {
            return new Bounds(bounds.left + (bounds.width - bounds.height) / 2, bounds.top, bounds.height, bounds.height);
        }
        else if (bounds.width < bounds.height) {
            return new Bounds(bounds.left, bounds.top + (bounds.height - bounds.width) / 2, bounds.width, bounds.width);
        }
        return bounds;
    };
    var getInputValue = function (node) {
        var value = node.type === PASSWORD ? new Array(node.value.length + 1).join('\u2022') : node.value;
        return value.length === 0 ? node.placeholder || '' : value;
    };
    var CHECKBOX = 'checkbox';
    var RADIO = 'radio';
    var PASSWORD = 'password';
    var INPUT_COLOR = 0x2a2a2aff;
    var InputElementContainer = /** @class */ (function (_super) {
        __extends(InputElementContainer, _super);
        function InputElementContainer(context, input) {
            var _this = _super.call(this, context, input) || this;
            _this.type = input.type.toLowerCase();
            _this.checked = input.checked;
            _this.value = getInputValue(input);
            if (_this.type === CHECKBOX || _this.type === RADIO) {
                _this.styles.backgroundColor = 0xdededeff;
                _this.styles.borderTopColor =
                    _this.styles.borderRightColor =
                        _this.styles.borderBottomColor =
                            _this.styles.borderLeftColor =
                                0xa5a5a5ff;
                _this.styles.borderTopWidth =
                    _this.styles.borderRightWidth =
                        _this.styles.borderBottomWidth =
                            _this.styles.borderLeftWidth =
                                1;
                _this.styles.borderTopStyle =
                    _this.styles.borderRightStyle =
                        _this.styles.borderBottomStyle =
                            _this.styles.borderLeftStyle =
                                1 /* SOLID */;
                _this.styles.backgroundClip = [0 /* BORDER_BOX */];
                _this.styles.backgroundOrigin = [0 /* BORDER_BOX */];
                _this.bounds = reformatInputBounds(_this.bounds);
            }
            switch (_this.type) {
                case CHECKBOX:
                    _this.styles.borderTopRightRadius =
                        _this.styles.borderTopLeftRadius =
                            _this.styles.borderBottomRightRadius =
                                _this.styles.borderBottomLeftRadius =
                                    CHECKBOX_BORDER_RADIUS;
                    break;
                case RADIO:
                    _this.styles.borderTopRightRadius =
                        _this.styles.borderTopLeftRadius =
                            _this.styles.borderBottomRightRadius =
                                _this.styles.borderBottomLeftRadius =
                                    RADIO_BORDER_RADIUS;
                    break;
            }
            return _this;
        }
        return InputElementContainer;
    }(ElementContainer));

    var SelectElementContainer = /** @class */ (function (_super) {
        __extends(SelectElementContainer, _super);
        function SelectElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            var option = element.options[element.selectedIndex || 0];
            _this.value = option ? option.text || '' : '';
            return _this;
        }
        return SelectElementContainer;
    }(ElementContainer));

    var TextareaElementContainer = /** @class */ (function (_super) {
        __extends(TextareaElementContainer, _super);
        function TextareaElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            _this.value = element.value;
            return _this;
        }
        return TextareaElementContainer;
    }(ElementContainer));

    var IFrameElementContainer = /** @class */ (function (_super) {
        __extends(IFrameElementContainer, _super);
        function IFrameElementContainer(context, iframe) {
            var _this = _super.call(this, context, iframe) || this;
            _this.src = iframe.src;
            _this.width = parseInt(iframe.width, 10) || 0;
            _this.height = parseInt(iframe.height, 10) || 0;
            _this.backgroundColor = _this.styles.backgroundColor;
            try {
                if (iframe.contentWindow &&
                    iframe.contentWindow.document &&
                    iframe.contentWindow.document.documentElement) {
                    _this.tree = parseTree(context, iframe.contentWindow.document.documentElement);
                    // http://www.w3.org/TR/css3-background/#special-backgrounds
                    var documentBackgroundColor = iframe.contentWindow.document.documentElement
                        ? parseColor(context, getComputedStyle(iframe.contentWindow.document.documentElement).backgroundColor)
                        : COLORS.TRANSPARENT;
                    var bodyBackgroundColor = iframe.contentWindow.document.body
                        ? parseColor(context, getComputedStyle(iframe.contentWindow.document.body).backgroundColor)
                        : COLORS.TRANSPARENT;
                    _this.backgroundColor = isTransparent(documentBackgroundColor)
                        ? isTransparent(bodyBackgroundColor)
                            ? _this.styles.backgroundColor
                            : bodyBackgroundColor
                        : documentBackgroundColor;
                }
            }
            catch (e) { }
            return _this;
        }
        return IFrameElementContainer;
    }(ElementContainer));

    var LIST_OWNERS = ['OL', 'UL', 'MENU'];
    var parseNodeTree = function (context, node, parent, root) {
        for (var childNode = node.firstChild, nextNode = void 0; childNode; childNode = nextNode) {
            nextNode = childNode.nextSibling;
            if (isTextNode(childNode) && childNode.data.trim().length > 0) {
                parent.textNodes.push(new TextContainer(context, childNode, parent.styles));
            }
            else if (isElementNode(childNode)) {
                if (isSlotElement(childNode) && childNode.assignedNodes) {
                    childNode.assignedNodes().forEach(function (childNode) { return parseNodeTree(context, childNode, parent, root); });
                }
                else {
                    var container = createContainer(context, childNode);
                    if (container.styles.isVisible()) {
                        if (createsRealStackingContext(childNode, container, root)) {
                            container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */;
                        }
                        else if (createsStackingContext(container.styles)) {
                            container.flags |= 2 /* CREATES_STACKING_CONTEXT */;
                        }
                        if (LIST_OWNERS.indexOf(childNode.tagName) !== -1) {
                            container.flags |= 8 /* IS_LIST_OWNER */;
                        }
                        parent.elements.push(container);
                        childNode.slot;
                        if (childNode.shadowRoot) {
                            parseNodeTree(context, childNode.shadowRoot, container, root);
                        }
                        else if (!isTextareaElement(childNode) &&
                            !isSVGElement(childNode) &&
                            !isSelectElement(childNode)) {
                            parseNodeTree(context, childNode, container, root);
                        }
                    }
                }
            }
        }
    };
    var createContainer = function (context, element) {
        if (isImageElement(element)) {
            return new ImageElementContainer(context, element);
        }
        if (isCanvasElement(element)) {
            return new CanvasElementContainer(context, element);
        }
        if (isSVGElement(element)) {
            return new SVGElementContainer(context, element);
        }
        if (isLIElement(element)) {
            return new LIElementContainer(context, element);
        }
        if (isOLElement(element)) {
            return new OLElementContainer(context, element);
        }
        if (isInputElement(element)) {
            return new InputElementContainer(context, element);
        }
        if (isSelectElement(element)) {
            return new SelectElementContainer(context, element);
        }
        if (isTextareaElement(element)) {
            return new TextareaElementContainer(context, element);
        }
        if (isIFrameElement(element)) {
            return new IFrameElementContainer(context, element);
        }
        return new ElementContainer(context, element);
    };
    var parseTree = function (context, element) {
        var container = createContainer(context, element);
        container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */;
        parseNodeTree(context, element, container, container);
        return container;
    };
    var createsRealStackingContext = function (node, container, root) {
        return (container.styles.isPositionedWithZIndex() ||
            container.styles.opacity < 1 ||
            container.styles.isTransformed() ||
            (isBodyElement(node) && root.styles.isTransparent()));
    };
    var createsStackingContext = function (styles) { return styles.isPositioned() || styles.isFloating(); };
    var isTextNode = function (node) { return node.nodeType === Node.TEXT_NODE; };
    var isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; };
    var isHTMLElementNode = function (node) {
        return isElementNode(node) && typeof node.style !== 'undefined' && !isSVGElementNode(node);
    };
    var isSVGElementNode = function (element) {
        return typeof element.className === 'object';
    };
    var isLIElement = function (node) { return node.tagName === 'LI'; };
    var isOLElement = function (node) { return node.tagName === 'OL'; };
    var isInputElement = function (node) { return node.tagName === 'INPUT'; };
    var isHTMLElement = function (node) { return node.tagName === 'HTML'; };
    var isSVGElement = function (node) { return node.tagName === 'svg'; };
    var isBodyElement = function (node) { return node.tagName === 'BODY'; };
    var isCanvasElement = function (node) { return node.tagName === 'CANVAS'; };
    var isVideoElement = function (node) { return node.tagName === 'VIDEO'; };
    var isImageElement = function (node) { return node.tagName === 'IMG'; };
    var isIFrameElement = function (node) { return node.tagName === 'IFRAME'; };
    var isStyleElement = function (node) { return node.tagName === 'STYLE'; };
    var isScriptElement = function (node) { return node.tagName === 'SCRIPT'; };
    var isTextareaElement = function (node) { return node.tagName === 'TEXTAREA'; };
    var isSelectElement = function (node) { return node.tagName === 'SELECT'; };
    var isSlotElement = function (node) { return node.tagName === 'SLOT'; };
    // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
    var isCustomElement = function (node) { return node.tagName.indexOf('-') > 0; };

    var CounterState = /** @class */ (function () {
        function CounterState() {
            this.counters = {};
        }
        CounterState.prototype.getCounterValue = function (name) {
            var counter = this.counters[name];
            if (counter && counter.length) {
                return counter[counter.length - 1];
            }
            return 1;
        };
        CounterState.prototype.getCounterValues = function (name) {
            var counter = this.counters[name];
            return counter ? counter : [];
        };
        CounterState.prototype.pop = function (counters) {
            var _this = this;
            counters.forEach(function (counter) { return _this.counters[counter].pop(); });
        };
        CounterState.prototype.parse = function (style) {
            var _this = this;
            var counterIncrement = style.counterIncrement;
            var counterReset = style.counterReset;
            var canReset = true;
            if (counterIncrement !== null) {
                counterIncrement.forEach(function (entry) {
                    var counter = _this.counters[entry.counter];
                    if (counter && entry.increment !== 0) {
                        canReset = false;
                        if (!counter.length) {
                            counter.push(1);
                        }
                        counter[Math.max(0, counter.length - 1)] += entry.increment;
                    }
                });
            }
            var counterNames = [];
            if (canReset) {
                counterReset.forEach(function (entry) {
                    var counter = _this.counters[entry.counter];
                    counterNames.push(entry.counter);
                    if (!counter) {
                        counter = _this.counters[entry.counter] = [];
                    }
                    counter.push(entry.reset);
                });
            }
            return counterNames;
        };
        return CounterState;
    }());
    var ROMAN_UPPER = {
        integers: [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1],
        values: ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I']
    };
    var ARMENIAN = {
        integers: [
            9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70,
            60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
        ],
        values: [
            'Ք',
            'Փ',
            'Ւ',
            'Ց',
            'Ր',
            'Տ',
            'Վ',
            'Ս',
            'Ռ',
            'Ջ',
            'Պ',
            'Չ',
            'Ո',
            'Շ',
            'Ն',
            'Յ',
            'Մ',
            'Ճ',
            'Ղ',
            'Ձ',
            'Հ',
            'Կ',
            'Ծ',
            'Խ',
            'Լ',
            'Ի',
            'Ժ',
            'Թ',
            'Ը',
            'Է',
            'Զ',
            'Ե',
            'Դ',
            'Գ',
            'Բ',
            'Ա'
        ]
    };
    var HEBREW = {
        integers: [
            10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20,
            19, 18, 17, 16, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
        ],
        values: [
            'י׳',
            'ט׳',
            'ח׳',
            'ז׳',
            'ו׳',
            'ה׳',
            'ד׳',
            'ג׳',
            'ב׳',
            'א׳',
            'ת',
            'ש',
            'ר',
            'ק',
            'צ',
            'פ',
            'ע',
            'ס',
            'נ',
            'מ',
            'ל',
            'כ',
            'יט',
            'יח',
            'יז',
            'טז',
            'טו',
            'י',
            'ט',
            'ח',
            'ז',
            'ו',
            'ה',
            'ד',
            'ג',
            'ב',
            'א'
        ]
    };
    var GEORGIAN = {
        integers: [
            10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90,
            80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
        ],
        values: [
            'ჵ',
            'ჰ',
            'ჯ',
            'ჴ',
            'ხ',
            'ჭ',
            'წ',
            'ძ',
            'ც',
            'ჩ',
            'შ',
            'ყ',
            'ღ',
            'ქ',
            'ფ',
            'ჳ',
            'ტ',
            'ს',
            'რ',
            'ჟ',
            'პ',
            'ო',
            'ჲ',
            'ნ',
            'მ',
            'ლ',
            'კ',
            'ი',
            'თ',
            'ჱ',
            'ზ',
            'ვ',
            'ე',
            'დ',
            'გ',
            'ბ',
            'ა'
        ]
    };
    var createAdditiveCounter = function (value, min, max, symbols, fallback, suffix) {
        if (value < min || value > max) {
            return createCounterText(value, fallback, suffix.length > 0);
        }
        return (symbols.integers.reduce(function (string, integer, index) {
            while (value >= integer) {
                value -= integer;
                string += symbols.values[index];
            }
            return string;
        }, '') + suffix);
    };
    var createCounterStyleWithSymbolResolver = function (value, codePointRangeLength, isNumeric, resolver) {
        var string = '';
        do {
            if (!isNumeric) {
                value--;
            }
            string = resolver(value) + string;
            value /= codePointRangeLength;
        } while (value * codePointRangeLength >= codePointRangeLength);
        return string;
    };
    var createCounterStyleFromRange = function (value, codePointRangeStart, codePointRangeEnd, isNumeric, suffix) {
        var codePointRangeLength = codePointRangeEnd - codePointRangeStart + 1;
        return ((value < 0 ? '-' : '') +
            (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, isNumeric, function (codePoint) {
                return fromCodePoint$1(Math.floor(codePoint % codePointRangeLength) + codePointRangeStart);
            }) +
                suffix));
    };
    var createCounterStyleFromSymbols = function (value, symbols, suffix) {
        if (suffix === void 0) { suffix = '. '; }
        var codePointRangeLength = symbols.length;
        return (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, false, function (codePoint) { return symbols[Math.floor(codePoint % codePointRangeLength)]; }) + suffix);
    };
    var CJK_ZEROS = 1 << 0;
    var CJK_TEN_COEFFICIENTS = 1 << 1;
    var CJK_TEN_HIGH_COEFFICIENTS = 1 << 2;
    var CJK_HUNDRED_COEFFICIENTS = 1 << 3;
    var createCJKCounter = function (value, numbers, multipliers, negativeSign, suffix, flags) {
        if (value < -9999 || value > 9999) {
            return createCounterText(value, 4 /* CJK_DECIMAL */, suffix.length > 0);
        }
        var tmp = Math.abs(value);
        var string = suffix;
        if (tmp === 0) {
            return numbers[0] + string;
        }
        for (var digit = 0; tmp > 0 && digit <= 4; digit++) {
            var coefficient = tmp % 10;
            if (coefficient === 0 && contains(flags, CJK_ZEROS) && string !== '') {
                string = numbers[coefficient] + string;
            }
            else if (coefficient > 1 ||
                (coefficient === 1 && digit === 0) ||
                (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_COEFFICIENTS)) ||
                (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_HIGH_COEFFICIENTS) && value > 100) ||
                (coefficient === 1 && digit > 1 && contains(flags, CJK_HUNDRED_COEFFICIENTS))) {
                string = numbers[coefficient] + (digit > 0 ? multipliers[digit - 1] : '') + string;
            }
            else if (coefficient === 1 && digit > 0) {
                string = multipliers[digit - 1] + string;
            }
            tmp = Math.floor(tmp / 10);
        }
        return (value < 0 ? negativeSign : '') + string;
    };
    var CHINESE_INFORMAL_MULTIPLIERS = '十百千萬';
    var CHINESE_FORMAL_MULTIPLIERS = '拾佰仟萬';
    var JAPANESE_NEGATIVE = 'マイナス';
    var KOREAN_NEGATIVE = '마이너스';
    var createCounterText = function (value, type, appendSuffix) {
        var defaultSuffix = appendSuffix ? '. ' : '';
        var cjkSuffix = appendSuffix ? '、' : '';
        var koreanSuffix = appendSuffix ? ', ' : '';
        var spaceSuffix = appendSuffix ? ' ' : '';
        switch (type) {
            case 0 /* DISC */:
                return '•' + spaceSuffix;
            case 1 /* CIRCLE */:
                return '◦' + spaceSuffix;
            case 2 /* SQUARE */:
                return '◾' + spaceSuffix;
            case 5 /* DECIMAL_LEADING_ZERO */:
                var string = createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);
                return string.length < 4 ? "0" + string : string;
            case 4 /* CJK_DECIMAL */:
                return createCounterStyleFromSymbols(value, '〇一二三四五六七八九', cjkSuffix);
            case 6 /* LOWER_ROMAN */:
                return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, 3 /* DECIMAL */, defaultSuffix).toLowerCase();
            case 7 /* UPPER_ROMAN */:
                return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, 3 /* DECIMAL */, defaultSuffix);
            case 8 /* LOWER_GREEK */:
                return createCounterStyleFromRange(value, 945, 969, false, defaultSuffix);
            case 9 /* LOWER_ALPHA */:
                return createCounterStyleFromRange(value, 97, 122, false, defaultSuffix);
            case 10 /* UPPER_ALPHA */:
                return createCounterStyleFromRange(value, 65, 90, false, defaultSuffix);
            case 11 /* ARABIC_INDIC */:
                return createCounterStyleFromRange(value, 1632, 1641, true, defaultSuffix);
            case 12 /* ARMENIAN */:
            case 49 /* UPPER_ARMENIAN */:
                return createAdditiveCounter(value, 1, 9999, ARMENIAN, 3 /* DECIMAL */, defaultSuffix);
            case 35 /* LOWER_ARMENIAN */:
                return createAdditiveCounter(value, 1, 9999, ARMENIAN, 3 /* DECIMAL */, defaultSuffix).toLowerCase();
            case 13 /* BENGALI */:
                return createCounterStyleFromRange(value, 2534, 2543, true, defaultSuffix);
            case 14 /* CAMBODIAN */:
            case 30 /* KHMER */:
                return createCounterStyleFromRange(value, 6112, 6121, true, defaultSuffix);
            case 15 /* CJK_EARTHLY_BRANCH */:
                return createCounterStyleFromSymbols(value, '子丑寅卯辰巳午未申酉戌亥', cjkSuffix);
            case 16 /* CJK_HEAVENLY_STEM */:
                return createCounterStyleFromSymbols(value, '甲乙丙丁戊己庚辛壬癸', cjkSuffix);
            case 17 /* CJK_IDEOGRAPHIC */:
            case 48 /* TRAD_CHINESE_INFORMAL */:
                return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 47 /* TRAD_CHINESE_FORMAL */:
                return createCJKCounter(value, '零壹貳參肆伍陸柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 42 /* SIMP_CHINESE_INFORMAL */:
                return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 41 /* SIMP_CHINESE_FORMAL */:
                return createCJKCounter(value, '零壹贰叁肆伍陆柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 26 /* JAPANESE_INFORMAL */:
                return createCJKCounter(value, '〇一二三四五六七八九', '十百千万', JAPANESE_NEGATIVE, cjkSuffix, 0);
            case 25 /* JAPANESE_FORMAL */:
                return createCJKCounter(value, '零壱弐参四伍六七八九', '拾百千万', JAPANESE_NEGATIVE, cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);
            case 31 /* KOREAN_HANGUL_FORMAL */:
                return createCJKCounter(value, '영일이삼사오육칠팔구', '십백천만', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);
            case 33 /* KOREAN_HANJA_INFORMAL */:
                return createCJKCounter(value, '零一二三四五六七八九', '十百千萬', KOREAN_NEGATIVE, koreanSuffix, 0);
            case 32 /* KOREAN_HANJA_FORMAL */:
                return createCJKCounter(value, '零壹貳參四五六七八九', '拾百千', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);
            case 18 /* DEVANAGARI */:
                return createCounterStyleFromRange(value, 0x966, 0x96f, true, defaultSuffix);
            case 20 /* GEORGIAN */:
                return createAdditiveCounter(value, 1, 19999, GEORGIAN, 3 /* DECIMAL */, defaultSuffix);
            case 21 /* GUJARATI */:
                return createCounterStyleFromRange(value, 0xae6, 0xaef, true, defaultSuffix);
            case 22 /* GURMUKHI */:
                return createCounterStyleFromRange(value, 0xa66, 0xa6f, true, defaultSuffix);
            case 22 /* HEBREW */:
                return createAdditiveCounter(value, 1, 10999, HEBREW, 3 /* DECIMAL */, defaultSuffix);
            case 23 /* HIRAGANA */:
                return createCounterStyleFromSymbols(value, 'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん');
            case 24 /* HIRAGANA_IROHA */:
                return createCounterStyleFromSymbols(value, 'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす');
            case 27 /* KANNADA */:
                return createCounterStyleFromRange(value, 0xce6, 0xcef, true, defaultSuffix);
            case 28 /* KATAKANA */:
                return createCounterStyleFromSymbols(value, 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン', cjkSuffix);
            case 29 /* KATAKANA_IROHA */:
                return createCounterStyleFromSymbols(value, 'イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス', cjkSuffix);
            case 34 /* LAO */:
                return createCounterStyleFromRange(value, 0xed0, 0xed9, true, defaultSuffix);
            case 37 /* MONGOLIAN */:
                return createCounterStyleFromRange(value, 0x1810, 0x1819, true, defaultSuffix);
            case 38 /* MYANMAR */:
                return createCounterStyleFromRange(value, 0x1040, 0x1049, true, defaultSuffix);
            case 39 /* ORIYA */:
                return createCounterStyleFromRange(value, 0xb66, 0xb6f, true, defaultSuffix);
            case 40 /* PERSIAN */:
                return createCounterStyleFromRange(value, 0x6f0, 0x6f9, true, defaultSuffix);
            case 43 /* TAMIL */:
                return createCounterStyleFromRange(value, 0xbe6, 0xbef, true, defaultSuffix);
            case 44 /* TELUGU */:
                return createCounterStyleFromRange(value, 0xc66, 0xc6f, true, defaultSuffix);
            case 45 /* THAI */:
                return createCounterStyleFromRange(value, 0xe50, 0xe59, true, defaultSuffix);
            case 46 /* TIBETAN */:
                return createCounterStyleFromRange(value, 0xf20, 0xf29, true, defaultSuffix);
            case 3 /* DECIMAL */:
            default:
                return createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);
        }
    };

    var IGNORE_ATTRIBUTE = 'data-html2canvas-ignore';
    var DocumentCloner = /** @class */ (function () {
        function DocumentCloner(context, element, options) {
            this.context = context;
            this.options = options;
            this.scrolledElements = [];
            this.referenceElement = element;
            this.counters = new CounterState();
            this.quoteDepth = 0;
            if (!element.ownerDocument) {
                throw new Error('Cloned element does not have an owner document');
            }
            this.documentElement = this.cloneNode(element.ownerDocument.documentElement, false);
        }
        DocumentCloner.prototype.toIFrame = function (ownerDocument, windowSize) {
            var _this = this;
            var iframe = createIFrameContainer(ownerDocument, windowSize);
            if (!iframe.contentWindow) {
                return Promise.reject("Unable to find iframe window");
            }
            var scrollX = ownerDocument.defaultView.pageXOffset;
            var scrollY = ownerDocument.defaultView.pageYOffset;
            var cloneWindow = iframe.contentWindow;
            var documentClone = cloneWindow.document;
            /* Chrome doesn't detect relative background-images assigned in inline <style> sheets when fetched through getComputedStyle
             if window url is about:blank, we can assign the url to current by writing onto the document
             */
            var iframeLoad = iframeLoader(iframe).then(function () { return __awaiter(_this, void 0, void 0, function () {
                var onclone, referenceElement;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            this.scrolledElements.forEach(restoreNodeScroll);
                            if (cloneWindow) {
                                cloneWindow.scrollTo(windowSize.left, windowSize.top);
                                if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent) &&
                                    (cloneWindow.scrollY !== windowSize.top || cloneWindow.scrollX !== windowSize.left)) {
                                    this.context.logger.warn('Unable to restore scroll position for cloned document');
                                    this.context.windowBounds = this.context.windowBounds.add(cloneWindow.scrollX - windowSize.left, cloneWindow.scrollY - windowSize.top, 0, 0);
                                }
                            }
                            onclone = this.options.onclone;
                            referenceElement = this.clonedReferenceElement;
                            if (typeof referenceElement === 'undefined') {
                                return [2 /*return*/, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")];
                            }
                            if (!(documentClone.fonts && documentClone.fonts.ready)) return [3 /*break*/, 2];
                            return [4 /*yield*/, documentClone.fonts.ready];
                        case 1:
                            _a.sent();
                            _a.label = 2;
                        case 2:
                            if (!/(AppleWebKit)/g.test(navigator.userAgent)) return [3 /*break*/, 4];
                            return [4 /*yield*/, imagesReady(documentClone)];
                        case 3:
                            _a.sent();
                            _a.label = 4;
                        case 4:
                            if (typeof onclone === 'function') {
                                return [2 /*return*/, Promise.resolve()
                                        .then(function () { return onclone(documentClone, referenceElement); })
                                        .then(function () { return iframe; })];
                            }
                            return [2 /*return*/, iframe];
                    }
                });
            }); });
            documentClone.open();
            documentClone.write(serializeDoctype(document.doctype) + "<html></html>");
            // Chrome scrolls the parent document for some reason after the write to the cloned window???
            restoreOwnerScroll(this.referenceElement.ownerDocument, scrollX, scrollY);
            documentClone.replaceChild(documentClone.adoptNode(this.documentElement), documentClone.documentElement);
            documentClone.close();
            return iframeLoad;
        };
        DocumentCloner.prototype.createElementClone = function (node) {
            if (isDebugging(node, 2 /* CLONE */)) {
                debugger;
            }
            if (isCanvasElement(node)) {
                return this.createCanvasClone(node);
            }
            if (isVideoElement(node)) {
                return this.createVideoClone(node);
            }
            if (isStyleElement(node)) {
                return this.createStyleClone(node);
            }
            var clone = node.cloneNode(false);
            if (isImageElement(clone)) {
                if (isImageElement(node) && node.currentSrc && node.currentSrc !== node.src) {
                    clone.src = node.currentSrc;
                    clone.srcset = '';
                }
                if (clone.loading === 'lazy') {
                    clone.loading = 'eager';
                }
            }
            if (isCustomElement(clone)) {
                return this.createCustomElementClone(clone);
            }
            return clone;
        };
        DocumentCloner.prototype.createCustomElementClone = function (node) {
            var clone = document.createElement('html2canvascustomelement');
            copyCSSStyles(node.style, clone);
            return clone;
        };
        DocumentCloner.prototype.createStyleClone = function (node) {
            try {
                var sheet = node.sheet;
                if (sheet && sheet.cssRules) {
                    var css = [].slice.call(sheet.cssRules, 0).reduce(function (css, rule) {
                        if (rule && typeof rule.cssText === 'string') {
                            return css + rule.cssText;
                        }
                        return css;
                    }, '');
                    var style = node.cloneNode(false);
                    style.textContent = css;
                    return style;
                }
            }
            catch (e) {
                // accessing node.sheet.cssRules throws a DOMException
                this.context.logger.error('Unable to access cssRules property', e);
                if (e.name !== 'SecurityError') {
                    throw e;
                }
            }
            return node.cloneNode(false);
        };
        DocumentCloner.prototype.createCanvasClone = function (canvas) {
            var _a;
            if (this.options.inlineImages && canvas.ownerDocument) {
                var img = canvas.ownerDocument.createElement('img');
                try {
                    img.src = canvas.toDataURL();
                    return img;
                }
                catch (e) {
                    this.context.logger.info("Unable to inline canvas contents, canvas is tainted", canvas);
                }
            }
            var clonedCanvas = canvas.cloneNode(false);
            try {
                clonedCanvas.width = canvas.width;
                clonedCanvas.height = canvas.height;
                var ctx = canvas.getContext('2d');
                var clonedCtx = clonedCanvas.getContext('2d');
                if (clonedCtx) {
                    if (!this.options.allowTaint && ctx) {
                        clonedCtx.putImageData(ctx.getImageData(0, 0, canvas.width, canvas.height), 0, 0);
                    }
                    else {
                        var gl = (_a = canvas.getContext('webgl2')) !== null && _a !== void 0 ? _a : canvas.getContext('webgl');
                        if (gl) {
                            var attribs = gl.getContextAttributes();
                            if ((attribs === null || attribs === void 0 ? void 0 : attribs.preserveDrawingBuffer) === false) {
                                this.context.logger.warn('Unable to clone WebGL context as it has preserveDrawingBuffer=false', canvas);
                            }
                        }
                        clonedCtx.drawImage(canvas, 0, 0);
                    }
                }
                return clonedCanvas;
            }
            catch (e) {
                this.context.logger.info("Unable to clone canvas as it is tainted", canvas);
            }
            return clonedCanvas;
        };
        DocumentCloner.prototype.createVideoClone = function (video) {
            var canvas = video.ownerDocument.createElement('canvas');
            canvas.width = video.offsetWidth;
            canvas.height = video.offsetHeight;
            var ctx = canvas.getContext('2d');
            try {
                if (ctx) {
                    ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
                    if (!this.options.allowTaint) {
                        ctx.getImageData(0, 0, canvas.width, canvas.height);
                    }
                }
                return canvas;
            }
            catch (e) {
                this.context.logger.info("Unable to clone video as it is tainted", video);
            }
            var blankCanvas = video.ownerDocument.createElement('canvas');
            blankCanvas.width = video.offsetWidth;
            blankCanvas.height = video.offsetHeight;
            return blankCanvas;
        };
        DocumentCloner.prototype.appendChildNode = function (clone, child, copyStyles) {
            if (!isElementNode(child) ||
                (!isScriptElement(child) &&
                    !child.hasAttribute(IGNORE_ATTRIBUTE) &&
                    (typeof this.options.ignoreElements !== 'function' || !this.options.ignoreElements(child)))) {
                if (!this.options.copyStyles || !isElementNode(child) || !isStyleElement(child)) {
                    clone.appendChild(this.cloneNode(child, copyStyles));
                }
            }
        };
        DocumentCloner.prototype.cloneChildNodes = function (node, clone, copyStyles) {
            var _this = this;
            for (var child = node.shadowRoot ? node.shadowRoot.firstChild : node.firstChild; child; child = child.nextSibling) {
                if (isElementNode(child) && isSlotElement(child) && typeof child.assignedNodes === 'function') {
                    var assignedNodes = child.assignedNodes();
                    if (assignedNodes.length) {
                        assignedNodes.forEach(function (assignedNode) { return _this.appendChildNode(clone, assignedNode, copyStyles); });
                    }
                }
                else {
                    this.appendChildNode(clone, child, copyStyles);
                }
            }
        };
        DocumentCloner.prototype.cloneNode = function (node, copyStyles) {
            if (isTextNode(node)) {
                return document.createTextNode(node.data);
            }
            if (!node.ownerDocument) {
                return node.cloneNode(false);
            }
            var window = node.ownerDocument.defaultView;
            if (window && isElementNode(node) && (isHTMLElementNode(node) || isSVGElementNode(node))) {
                var clone = this.createElementClone(node);
                clone.style.transitionProperty = 'none';
                var style = window.getComputedStyle(node);
                var styleBefore = window.getComputedStyle(node, ':before');
                var styleAfter = window.getComputedStyle(node, ':after');
                if (this.referenceElement === node && isHTMLElementNode(clone)) {
                    this.clonedReferenceElement = clone;
                }
                if (isBodyElement(clone)) {
                    createPseudoHideStyles(clone);
                }
                var counters = this.counters.parse(new CSSParsedCounterDeclaration(this.context, style));
                var before = this.resolvePseudoContent(node, clone, styleBefore, PseudoElementType.BEFORE);
                if (isCustomElement(node)) {
                    copyStyles = true;
                }
                if (!isVideoElement(node)) {
                    this.cloneChildNodes(node, clone, copyStyles);
                }
                if (before) {
                    clone.insertBefore(before, clone.firstChild);
                }
                var after = this.resolvePseudoContent(node, clone, styleAfter, PseudoElementType.AFTER);
                if (after) {
                    clone.appendChild(after);
                }
                this.counters.pop(counters);
                if ((style && (this.options.copyStyles || isSVGElementNode(node)) && !isIFrameElement(node)) ||
                    copyStyles) {
                    copyCSSStyles(style, clone);
                }
                if (node.scrollTop !== 0 || node.scrollLeft !== 0) {
                    this.scrolledElements.push([clone, node.scrollLeft, node.scrollTop]);
                }
                if ((isTextareaElement(node) || isSelectElement(node)) &&
                    (isTextareaElement(clone) || isSelectElement(clone))) {
                    clone.value = node.value;
                }
                return clone;
            }
            return node.cloneNode(false);
        };
        DocumentCloner.prototype.resolvePseudoContent = function (node, clone, style, pseudoElt) {
            var _this = this;
            if (!style) {
                return;
            }
            var value = style.content;
            var document = clone.ownerDocument;
            if (!document || !value || value === 'none' || value === '-moz-alt-content' || style.display === 'none') {
                return;
            }
            this.counters.parse(new CSSParsedCounterDeclaration(this.context, style));
            var declaration = new CSSParsedPseudoDeclaration(this.context, style);
            var anonymousReplacedElement = document.createElement('html2canvaspseudoelement');
            copyCSSStyles(style, anonymousReplacedElement);
            declaration.content.forEach(function (token) {
                if (token.type === 0 /* STRING_TOKEN */) {
                    anonymousReplacedElement.appendChild(document.createTextNode(token.value));
                }
                else if (token.type === 22 /* URL_TOKEN */) {
                    var img = document.createElement('img');
                    img.src = token.value;
                    img.style.opacity = '1';
                    anonymousReplacedElement.appendChild(img);
                }
                else if (token.type === 18 /* FUNCTION */) {
                    if (token.name === 'attr') {
                        var attr = token.values.filter(isIdentToken);
                        if (attr.length) {
                            anonymousReplacedElement.appendChild(document.createTextNode(node.getAttribute(attr[0].value) || ''));
                        }
                    }
                    else if (token.name === 'counter') {
                        var _a = token.values.filter(nonFunctionArgSeparator), counter = _a[0], counterStyle = _a[1];
                        if (counter && isIdentToken(counter)) {
                            var counterState = _this.counters.getCounterValue(counter.value);
                            var counterType = counterStyle && isIdentToken(counterStyle)
                                ? listStyleType.parse(_this.context, counterStyle.value)
                                : 3 /* DECIMAL */;
                            anonymousReplacedElement.appendChild(document.createTextNode(createCounterText(counterState, counterType, false)));
                        }
                    }
                    else if (token.name === 'counters') {
                        var _b = token.values.filter(nonFunctionArgSeparator), counter = _b[0], delim = _b[1], counterStyle = _b[2];
                        if (counter && isIdentToken(counter)) {
                            var counterStates = _this.counters.getCounterValues(counter.value);
                            var counterType_1 = counterStyle && isIdentToken(counterStyle)
                                ? listStyleType.parse(_this.context, counterStyle.value)
                                : 3 /* DECIMAL */;
                            var separator = delim && delim.type === 0 /* STRING_TOKEN */ ? delim.value : '';
                            var text = counterStates
                                .map(function (value) { return createCounterText(value, counterType_1, false); })
                                .join(separator);
                            anonymousReplacedElement.appendChild(document.createTextNode(text));
                        }
                    }
                    else ;
                }
                else if (token.type === 20 /* IDENT_TOKEN */) {
                    switch (token.value) {
                        case 'open-quote':
                            anonymousReplacedElement.appendChild(document.createTextNode(getQuote(declaration.quotes, _this.quoteDepth++, true)));
                            break;
                        case 'close-quote':
                            anonymousReplacedElement.appendChild(document.createTextNode(getQuote(declaration.quotes, --_this.quoteDepth, false)));
                            break;
                        default:
                            // safari doesn't parse string tokens correctly because of lack of quotes
                            anonymousReplacedElement.appendChild(document.createTextNode(token.value));
                    }
                }
            });
            anonymousReplacedElement.className = PSEUDO_HIDE_ELEMENT_CLASS_BEFORE + " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
            var newClassName = pseudoElt === PseudoElementType.BEFORE
                ? " " + PSEUDO_HIDE_ELEMENT_CLASS_BEFORE
                : " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
            if (isSVGElementNode(clone)) {
                clone.className.baseValue += newClassName;
            }
            else {
                clone.className += newClassName;
            }
            return anonymousReplacedElement;
        };
        DocumentCloner.destroy = function (container) {
            if (container.parentNode) {
                container.parentNode.removeChild(container);
                return true;
            }
            return false;
        };
        return DocumentCloner;
    }());
    var PseudoElementType;
    (function (PseudoElementType) {
        PseudoElementType[PseudoElementType["BEFORE"] = 0] = "BEFORE";
        PseudoElementType[PseudoElementType["AFTER"] = 1] = "AFTER";
    })(PseudoElementType || (PseudoElementType = {}));
    var createIFrameContainer = function (ownerDocument, bounds) {
        var cloneIframeContainer = ownerDocument.createElement('iframe');
        cloneIframeContainer.className = 'html2canvas-container';
        cloneIframeContainer.style.visibility = 'hidden';
        cloneIframeContainer.style.position = 'fixed';
        cloneIframeContainer.style.left = '-10000px';
        cloneIframeContainer.style.top = '0px';
        cloneIframeContainer.style.border = '0';
        cloneIframeContainer.width = bounds.width.toString();
        cloneIframeContainer.height = bounds.height.toString();
        cloneIframeContainer.scrolling = 'no'; // ios won't scroll without it
        cloneIframeContainer.setAttribute(IGNORE_ATTRIBUTE, 'true');
        ownerDocument.body.appendChild(cloneIframeContainer);
        return cloneIframeContainer;
    };
    var imageReady = function (img) {
        return new Promise(function (resolve) {
            if (img.complete) {
                resolve();
                return;
            }
            if (!img.src) {
                resolve();
                return;
            }
            img.onload = resolve;
            img.onerror = resolve;
        });
    };
    var imagesReady = function (document) {
        return Promise.all([].slice.call(document.images, 0).map(imageReady));
    };
    var iframeLoader = function (iframe) {
        return new Promise(function (resolve, reject) {
            var cloneWindow = iframe.contentWindow;
            if (!cloneWindow) {
                return reject("No window assigned for iframe");
            }
            var documentClone = cloneWindow.document;
            cloneWindow.onload = iframe.onload = function () {
                cloneWindow.onload = iframe.onload = null;
                var interval = setInterval(function () {
                    if (documentClone.body.childNodes.length > 0 && documentClone.readyState === 'complete') {
                        clearInterval(interval);
                        resolve(iframe);
                    }
                }, 50);
            };
        });
    };
    var ignoredStyleProperties = [
        'all',
        'd',
        'content' // Safari shows pseudoelements if content is set
    ];
    var copyCSSStyles = function (style, target) {
        // Edge does not provide value for cssText
        for (var i = style.length - 1; i >= 0; i--) {
            var property = style.item(i);
            if (ignoredStyleProperties.indexOf(property) === -1) {
                target.style.setProperty(property, style.getPropertyValue(property));
            }
        }
        return target;
    };
    var serializeDoctype = function (doctype) {
        var str = '';
        if (doctype) {
            str += '<!DOCTYPE ';
            if (doctype.name) {
                str += doctype.name;
            }
            if (doctype.internalSubset) {
                str += doctype.internalSubset;
            }
            if (doctype.publicId) {
                str += "\"" + doctype.publicId + "\"";
            }
            if (doctype.systemId) {
                str += "\"" + doctype.systemId + "\"";
            }
            str += '>';
        }
        return str;
    };
    var restoreOwnerScroll = function (ownerDocument, x, y) {
        if (ownerDocument &&
            ownerDocument.defaultView &&
            (x !== ownerDocument.defaultView.pageXOffset || y !== ownerDocument.defaultView.pageYOffset)) {
            ownerDocument.defaultView.scrollTo(x, y);
        }
    };
    var restoreNodeScroll = function (_a) {
        var element = _a[0], x = _a[1], y = _a[2];
        element.scrollLeft = x;
        element.scrollTop = y;
    };
    var PSEUDO_BEFORE = ':before';
    var PSEUDO_AFTER = ':after';
    var PSEUDO_HIDE_ELEMENT_CLASS_BEFORE = '___html2canvas___pseudoelement_before';
    var PSEUDO_HIDE_ELEMENT_CLASS_AFTER = '___html2canvas___pseudoelement_after';
    var PSEUDO_HIDE_ELEMENT_STYLE = "{\n    content: \"\" !important;\n    display: none !important;\n}";
    var createPseudoHideStyles = function (body) {
        createStyles(body, "." + PSEUDO_HIDE_ELEMENT_CLASS_BEFORE + PSEUDO_BEFORE + PSEUDO_HIDE_ELEMENT_STYLE + "\n         ." + PSEUDO_HIDE_ELEMENT_CLASS_AFTER + PSEUDO_AFTER + PSEUDO_HIDE_ELEMENT_STYLE);
    };
    var createStyles = function (body, styles) {
        var document = body.ownerDocument;
        if (document) {
            var style = document.createElement('style');
            style.textContent = styles;
            body.appendChild(style);
        }
    };

    var CacheStorage = /** @class */ (function () {
        function CacheStorage() {
        }
        CacheStorage.getOrigin = function (url) {
            var link = CacheStorage._link;
            if (!link) {
                return 'about:blank';
            }
            link.href = url;
            link.href = link.href; // IE9, LOL! - http://jsfiddle.net/niklasvh/2e48b/
            return link.protocol + link.hostname + link.port;
        };
        CacheStorage.isSameOrigin = function (src) {
            return CacheStorage.getOrigin(src) === CacheStorage._origin;
        };
        CacheStorage.setContext = function (window) {
            CacheStorage._link = window.document.createElement('a');
            CacheStorage._origin = CacheStorage.getOrigin(window.location.href);
        };
        CacheStorage._origin = 'about:blank';
        return CacheStorage;
    }());
    var Cache = /** @class */ (function () {
        function Cache(context, _options) {
            this.context = context;
            this._options = _options;
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            this._cache = {};
        }
        Cache.prototype.addImage = function (src) {
            var result = Promise.resolve();
            if (this.has(src)) {
                return result;
            }
            if (isBlobImage(src) || isRenderable(src)) {
                (this._cache[src] = this.loadImage(src)).catch(function () {
                    // prevent unhandled rejection
                });
                return result;
            }
            return result;
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Cache.prototype.match = function (src) {
            return this._cache[src];
        };
        Cache.prototype.loadImage = function (key) {
            return __awaiter(this, void 0, void 0, function () {
                var isSameOrigin, useCORS, useProxy, src;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            isSameOrigin = CacheStorage.isSameOrigin(key);
                            useCORS = !isInlineImage(key) && this._options.useCORS === true && FEATURES.SUPPORT_CORS_IMAGES && !isSameOrigin;
                            useProxy = !isInlineImage(key) &&
                                !isSameOrigin &&
                                !isBlobImage(key) &&
                                typeof this._options.proxy === 'string' &&
                                FEATURES.SUPPORT_CORS_XHR &&
                                !useCORS;
                            if (!isSameOrigin &&
                                this._options.allowTaint === false &&
                                !isInlineImage(key) &&
                                !isBlobImage(key) &&
                                !useProxy &&
                                !useCORS) {
                                return [2 /*return*/];
                            }
                            src = key;
                            if (!useProxy) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.proxy(src)];
                        case 1:
                            src = _a.sent();
                            _a.label = 2;
                        case 2:
                            this.context.logger.debug("Added image " + key.substring(0, 256));
                            return [4 /*yield*/, new Promise(function (resolve, reject) {
                                    var img = new Image();
                                    img.onload = function () { return resolve(img); };
                                    img.onerror = reject;
                                    //ios safari 10.3 taints canvas with data urls unless crossOrigin is set to anonymous
                                    if (isInlineBase64Image(src) || useCORS) {
                                        img.crossOrigin = 'anonymous';
                                    }
                                    img.src = src;
                                    if (img.complete === true) {
                                        // Inline XML images may fail to parse, throwing an Error later on
                                        setTimeout(function () { return resolve(img); }, 500);
                                    }
                                    if (_this._options.imageTimeout > 0) {
                                        setTimeout(function () { return reject("Timed out (" + _this._options.imageTimeout + "ms) loading image"); }, _this._options.imageTimeout);
                                    }
                                })];
                        case 3: return [2 /*return*/, _a.sent()];
                    }
                });
            });
        };
        Cache.prototype.has = function (key) {
            return typeof this._cache[key] !== 'undefined';
        };
        Cache.prototype.keys = function () {
            return Promise.resolve(Object.keys(this._cache));
        };
        Cache.prototype.proxy = function (src) {
            var _this = this;
            var proxy = this._options.proxy;
            if (!proxy) {
                throw new Error('No proxy defined');
            }
            var key = src.substring(0, 256);
            return new Promise(function (resolve, reject) {
                var responseType = FEATURES.SUPPORT_RESPONSE_TYPE ? 'blob' : 'text';
                var xhr = new XMLHttpRequest();
                xhr.onload = function () {
                    if (xhr.status === 200) {
                        if (responseType === 'text') {
                            resolve(xhr.response);
                        }
                        else {
                            var reader_1 = new FileReader();
                            reader_1.addEventListener('load', function () { return resolve(reader_1.result); }, false);
                            reader_1.addEventListener('error', function (e) { return reject(e); }, false);
                            reader_1.readAsDataURL(xhr.response);
                        }
                    }
                    else {
                        reject("Failed to proxy resource " + key + " with status code " + xhr.status);
                    }
                };
                xhr.onerror = reject;
                var queryString = proxy.indexOf('?') > -1 ? '&' : '?';
                xhr.open('GET', "" + proxy + queryString + "url=" + encodeURIComponent(src) + "&responseType=" + responseType);
                if (responseType !== 'text' && xhr instanceof XMLHttpRequest) {
                    xhr.responseType = responseType;
                }
                if (_this._options.imageTimeout) {
                    var timeout_1 = _this._options.imageTimeout;
                    xhr.timeout = timeout_1;
                    xhr.ontimeout = function () { return reject("Timed out (" + timeout_1 + "ms) proxying " + key); };
                }
                xhr.send();
            });
        };
        return Cache;
    }());
    var INLINE_SVG = /^data:image\/svg\+xml/i;
    var INLINE_BASE64 = /^data:image\/.*;base64,/i;
    var INLINE_IMG = /^data:image\/.*/i;
    var isRenderable = function (src) { return FEATURES.SUPPORT_SVG_DRAWING || !isSVG(src); };
    var isInlineImage = function (src) { return INLINE_IMG.test(src); };
    var isInlineBase64Image = function (src) { return INLINE_BASE64.test(src); };
    var isBlobImage = function (src) { return src.substr(0, 4) === 'blob'; };
    var isSVG = function (src) { return src.substr(-3).toLowerCase() === 'svg' || INLINE_SVG.test(src); };

    var Vector = /** @class */ (function () {
        function Vector(x, y) {
            this.type = 0 /* VECTOR */;
            this.x = x;
            this.y = y;
        }
        Vector.prototype.add = function (deltaX, deltaY) {
            return new Vector(this.x + deltaX, this.y + deltaY);
        };
        return Vector;
    }());

    var lerp = function (a, b, t) {
        return new Vector(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t);
    };
    var BezierCurve = /** @class */ (function () {
        function BezierCurve(start, startControl, endControl, end) {
            this.type = 1 /* BEZIER_CURVE */;
            this.start = start;
            this.startControl = startControl;
            this.endControl = endControl;
            this.end = end;
        }
        BezierCurve.prototype.subdivide = function (t, firstHalf) {
            var ab = lerp(this.start, this.startControl, t);
            var bc = lerp(this.startControl, this.endControl, t);
            var cd = lerp(this.endControl, this.end, t);
            var abbc = lerp(ab, bc, t);
            var bccd = lerp(bc, cd, t);
            var dest = lerp(abbc, bccd, t);
            return firstHalf ? new BezierCurve(this.start, ab, abbc, dest) : new BezierCurve(dest, bccd, cd, this.end);
        };
        BezierCurve.prototype.add = function (deltaX, deltaY) {
            return new BezierCurve(this.start.add(deltaX, deltaY), this.startControl.add(deltaX, deltaY), this.endControl.add(deltaX, deltaY), this.end.add(deltaX, deltaY));
        };
        BezierCurve.prototype.reverse = function () {
            return new BezierCurve(this.end, this.endControl, this.startControl, this.start);
        };
        return BezierCurve;
    }());
    var isBezierCurve = function (path) { return path.type === 1 /* BEZIER_CURVE */; };

    var BoundCurves = /** @class */ (function () {
        function BoundCurves(element) {
            var styles = element.styles;
            var bounds = element.bounds;
            var _a = getAbsoluteValueForTuple(styles.borderTopLeftRadius, bounds.width, bounds.height), tlh = _a[0], tlv = _a[1];
            var _b = getAbsoluteValueForTuple(styles.borderTopRightRadius, bounds.width, bounds.height), trh = _b[0], trv = _b[1];
            var _c = getAbsoluteValueForTuple(styles.borderBottomRightRadius, bounds.width, bounds.height), brh = _c[0], brv = _c[1];
            var _d = getAbsoluteValueForTuple(styles.borderBottomLeftRadius, bounds.width, bounds.height), blh = _d[0], blv = _d[1];
            var factors = [];
            factors.push((tlh + trh) / bounds.width);
            factors.push((blh + brh) / bounds.width);
            factors.push((tlv + blv) / bounds.height);
            factors.push((trv + brv) / bounds.height);
            var maxFactor = Math.max.apply(Math, factors);
            if (maxFactor > 1) {
                tlh /= maxFactor;
                tlv /= maxFactor;
                trh /= maxFactor;
                trv /= maxFactor;
                brh /= maxFactor;
                brv /= maxFactor;
                blh /= maxFactor;
                blv /= maxFactor;
            }
            var topWidth = bounds.width - trh;
            var rightHeight = bounds.height - brv;
            var bottomWidth = bounds.width - brh;
            var leftHeight = bounds.height - blv;
            var borderTopWidth = styles.borderTopWidth;
            var borderRightWidth = styles.borderRightWidth;
            var borderBottomWidth = styles.borderBottomWidth;
            var borderLeftWidth = styles.borderLeftWidth;
            var paddingTop = getAbsoluteValue(styles.paddingTop, element.bounds.width);
            var paddingRight = getAbsoluteValue(styles.paddingRight, element.bounds.width);
            var paddingBottom = getAbsoluteValue(styles.paddingBottom, element.bounds.width);
            var paddingLeft = getAbsoluteValue(styles.paddingLeft, element.bounds.width);
            this.topLeftBorderDoubleOuterBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 3, bounds.top + borderTopWidth / 3, tlh - borderLeftWidth / 3, tlv - borderTopWidth / 3, CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 3, bounds.top + borderTopWidth / 3);
            this.topRightBorderDoubleOuterBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top + borderTopWidth / 3, trh - borderRightWidth / 3, trv - borderTopWidth / 3, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 3, bounds.top + borderTopWidth / 3);
            this.bottomRightBorderDoubleOuterBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - borderRightWidth / 3, brv - borderBottomWidth / 3, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 3, bounds.top + bounds.height - borderBottomWidth / 3);
            this.bottomLeftBorderDoubleOuterBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 3, bounds.top + leftHeight, blh - borderLeftWidth / 3, blv - borderBottomWidth / 3, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 3, bounds.top + bounds.height - borderBottomWidth / 3);
            this.topLeftBorderDoubleInnerBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3, tlh - (borderLeftWidth * 2) / 3, tlv - (borderTopWidth * 2) / 3, CORNER.TOP_LEFT)
                    : new Vector(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3);
            this.topRightBorderDoubleInnerBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top + (borderTopWidth * 2) / 3, trh - (borderRightWidth * 2) / 3, trv - (borderTopWidth * 2) / 3, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3);
            this.bottomRightBorderDoubleInnerBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - (borderRightWidth * 2) / 3, brv - (borderBottomWidth * 2) / 3, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth * 2) / 3, bounds.top + bounds.height - (borderBottomWidth * 2) / 3);
            this.bottomLeftBorderDoubleInnerBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + leftHeight, blh - (borderLeftWidth * 2) / 3, blv - (borderBottomWidth * 2) / 3, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + bounds.height - (borderBottomWidth * 2) / 3);
            this.topLeftBorderStroke =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 2, bounds.top + borderTopWidth / 2, tlh - borderLeftWidth / 2, tlv - borderTopWidth / 2, CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 2, bounds.top + borderTopWidth / 2);
            this.topRightBorderStroke =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top + borderTopWidth / 2, trh - borderRightWidth / 2, trv - borderTopWidth / 2, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 2, bounds.top + borderTopWidth / 2);
            this.bottomRightBorderStroke =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - borderRightWidth / 2, brv - borderBottomWidth / 2, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 2, bounds.top + bounds.height - borderBottomWidth / 2);
            this.bottomLeftBorderStroke =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 2, bounds.top + leftHeight, blh - borderLeftWidth / 2, blv - borderBottomWidth / 2, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 2, bounds.top + bounds.height - borderBottomWidth / 2);
            this.topLeftBorderBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left, bounds.top, tlh, tlv, CORNER.TOP_LEFT)
                    : new Vector(bounds.left, bounds.top);
            this.topRightBorderBox =
                trh > 0 || trv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top, trh, trv, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width, bounds.top);
            this.bottomRightBorderBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh, brv, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width, bounds.top + bounds.height);
            this.bottomLeftBorderBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left, bounds.top + leftHeight, blh, blv, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left, bounds.top + bounds.height);
            this.topLeftPaddingBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth, bounds.top + borderTopWidth, Math.max(0, tlh - borderLeftWidth), Math.max(0, tlv - borderTopWidth), CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth, bounds.top + borderTopWidth);
            this.topRightPaddingBox =
                trh > 0 || trv > 0
                    ? getCurvePoints(bounds.left + Math.min(topWidth, bounds.width - borderRightWidth), bounds.top + borderTopWidth, topWidth > bounds.width + borderRightWidth ? 0 : Math.max(0, trh - borderRightWidth), Math.max(0, trv - borderTopWidth), CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth, bounds.top + borderTopWidth);
            this.bottomRightPaddingBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + Math.min(bottomWidth, bounds.width - borderLeftWidth), bounds.top + Math.min(rightHeight, bounds.height - borderBottomWidth), Math.max(0, brh - borderRightWidth), Math.max(0, brv - borderBottomWidth), CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth, bounds.top + bounds.height - borderBottomWidth);
            this.bottomLeftPaddingBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth, bounds.top + Math.min(leftHeight, bounds.height - borderBottomWidth), Math.max(0, blh - borderLeftWidth), Math.max(0, blv - borderBottomWidth), CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth, bounds.top + bounds.height - borderBottomWidth);
            this.topLeftContentBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth + paddingLeft, bounds.top + borderTopWidth + paddingTop, Math.max(0, tlh - (borderLeftWidth + paddingLeft)), Math.max(0, tlv - (borderTopWidth + paddingTop)), CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth + paddingLeft, bounds.top + borderTopWidth + paddingTop);
            this.topRightContentBox =
                trh > 0 || trv > 0
                    ? getCurvePoints(bounds.left + Math.min(topWidth, bounds.width + borderLeftWidth + paddingLeft), bounds.top + borderTopWidth + paddingTop, topWidth > bounds.width + borderLeftWidth + paddingLeft ? 0 : trh - borderLeftWidth + paddingLeft, trv - (borderTopWidth + paddingTop), CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth + paddingRight), bounds.top + borderTopWidth + paddingTop);
            this.bottomRightContentBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + Math.min(bottomWidth, bounds.width - (borderLeftWidth + paddingLeft)), bounds.top + Math.min(rightHeight, bounds.height + borderTopWidth + paddingTop), Math.max(0, brh - (borderRightWidth + paddingRight)), brv - (borderBottomWidth + paddingBottom), CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth + paddingRight), bounds.top + bounds.height - (borderBottomWidth + paddingBottom));
            this.bottomLeftContentBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth + paddingLeft, bounds.top + leftHeight, Math.max(0, blh - (borderLeftWidth + paddingLeft)), blv - (borderBottomWidth + paddingBottom), CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth + paddingLeft, bounds.top + bounds.height - (borderBottomWidth + paddingBottom));
        }
        return BoundCurves;
    }());
    var CORNER;
    (function (CORNER) {
        CORNER[CORNER["TOP_LEFT"] = 0] = "TOP_LEFT";
        CORNER[CORNER["TOP_RIGHT"] = 1] = "TOP_RIGHT";
        CORNER[CORNER["BOTTOM_RIGHT"] = 2] = "BOTTOM_RIGHT";
        CORNER[CORNER["BOTTOM_LEFT"] = 3] = "BOTTOM_LEFT";
    })(CORNER || (CORNER = {}));
    var getCurvePoints = function (x, y, r1, r2, position) {
        var kappa = 4 * ((Math.sqrt(2) - 1) / 3);
        var ox = r1 * kappa; // control point offset horizontal
        var oy = r2 * kappa; // control point offset vertical
        var xm = x + r1; // x-middle
        var ym = y + r2; // y-middle
        switch (position) {
            case CORNER.TOP_LEFT:
                return new BezierCurve(new Vector(x, ym), new Vector(x, ym - oy), new Vector(xm - ox, y), new Vector(xm, y));
            case CORNER.TOP_RIGHT:
                return new BezierCurve(new Vector(x, y), new Vector(x + ox, y), new Vector(xm, ym - oy), new Vector(xm, ym));
            case CORNER.BOTTOM_RIGHT:
                return new BezierCurve(new Vector(xm, y), new Vector(xm, y + oy), new Vector(x + ox, ym), new Vector(x, ym));
            case CORNER.BOTTOM_LEFT:
            default:
                return new BezierCurve(new Vector(xm, ym), new Vector(xm - ox, ym), new Vector(x, y + oy), new Vector(x, y));
        }
    };
    var calculateBorderBoxPath = function (curves) {
        return [curves.topLeftBorderBox, curves.topRightBorderBox, curves.bottomRightBorderBox, curves.bottomLeftBorderBox];
    };
    var calculateContentBoxPath = function (curves) {
        return [
            curves.topLeftContentBox,
            curves.topRightContentBox,
            curves.bottomRightContentBox,
            curves.bottomLeftContentBox
        ];
    };
    var calculatePaddingBoxPath = function (curves) {
        return [
            curves.topLeftPaddingBox,
            curves.topRightPaddingBox,
            curves.bottomRightPaddingBox,
            curves.bottomLeftPaddingBox
        ];
    };

    var TransformEffect = /** @class */ (function () {
        function TransformEffect(offsetX, offsetY, matrix) {
            this.offsetX = offsetX;
            this.offsetY = offsetY;
            this.matrix = matrix;
            this.type = 0 /* TRANSFORM */;
            this.target = 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */;
        }
        return TransformEffect;
    }());
    var ClipEffect = /** @class */ (function () {
        function ClipEffect(path, target) {
            this.path = path;
            this.target = target;
            this.type = 1 /* CLIP */;
        }
        return ClipEffect;
    }());
    var OpacityEffect = /** @class */ (function () {
        function OpacityEffect(opacity) {
            this.opacity = opacity;
            this.type = 2 /* OPACITY */;
            this.target = 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */;
        }
        return OpacityEffect;
    }());
    var isTransformEffect = function (effect) {
        return effect.type === 0 /* TRANSFORM */;
    };
    var isClipEffect = function (effect) { return effect.type === 1 /* CLIP */; };
    var isOpacityEffect = function (effect) { return effect.type === 2 /* OPACITY */; };

    var equalPath = function (a, b) {
        if (a.length === b.length) {
            return a.some(function (v, i) { return v === b[i]; });
        }
        return false;
    };
    var transformPath = function (path, deltaX, deltaY, deltaW, deltaH) {
        return path.map(function (point, index) {
            switch (index) {
                case 0:
                    return point.add(deltaX, deltaY);
                case 1:
                    return point.add(deltaX + deltaW, deltaY);
                case 2:
                    return point.add(deltaX + deltaW, deltaY + deltaH);
                case 3:
                    return point.add(deltaX, deltaY + deltaH);
            }
            return point;
        });
    };

    var StackingContext = /** @class */ (function () {
        function StackingContext(container) {
            this.element = container;
            this.inlineLevel = [];
            this.nonInlineLevel = [];
            this.negativeZIndex = [];
            this.zeroOrAutoZIndexOrTransformedOrOpacity = [];
            this.positiveZIndex = [];
            this.nonPositionedFloats = [];
            this.nonPositionedInlineLevel = [];
        }
        return StackingContext;
    }());
    var ElementPaint = /** @class */ (function () {
        function ElementPaint(container, parent) {
            this.container = container;
            this.parent = parent;
            this.effects = [];
            this.curves = new BoundCurves(this.container);
            if (this.container.styles.opacity < 1) {
                this.effects.push(new OpacityEffect(this.container.styles.opacity));
            }
            if (this.container.styles.transform !== null) {
                var offsetX = this.container.bounds.left + this.container.styles.transformOrigin[0].number;
                var offsetY = this.container.bounds.top + this.container.styles.transformOrigin[1].number;
                var matrix = this.container.styles.transform;
                this.effects.push(new TransformEffect(offsetX, offsetY, matrix));
            }
            if (this.container.styles.overflowX !== 0 /* VISIBLE */) {
                var borderBox = calculateBorderBoxPath(this.curves);
                var paddingBox = calculatePaddingBoxPath(this.curves);
                if (equalPath(borderBox, paddingBox)) {
                    this.effects.push(new ClipEffect(borderBox, 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */));
                }
                else {
                    this.effects.push(new ClipEffect(borderBox, 2 /* BACKGROUND_BORDERS */));
                    this.effects.push(new ClipEffect(paddingBox, 4 /* CONTENT */));
                }
            }
        }
        ElementPaint.prototype.getEffects = function (target) {
            var inFlow = [2 /* ABSOLUTE */, 3 /* FIXED */].indexOf(this.container.styles.position) === -1;
            var parent = this.parent;
            var effects = this.effects.slice(0);
            while (parent) {
                var croplessEffects = parent.effects.filter(function (effect) { return !isClipEffect(effect); });
                if (inFlow || parent.container.styles.position !== 0 /* STATIC */ || !parent.parent) {
                    effects.unshift.apply(effects, croplessEffects);
                    inFlow = [2 /* ABSOLUTE */, 3 /* FIXED */].indexOf(parent.container.styles.position) === -1;
                    if (parent.container.styles.overflowX !== 0 /* VISIBLE */) {
                        var borderBox = calculateBorderBoxPath(parent.curves);
                        var paddingBox = calculatePaddingBoxPath(parent.curves);
                        if (!equalPath(borderBox, paddingBox)) {
                            effects.unshift(new ClipEffect(paddingBox, 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */));
                        }
                    }
                }
                else {
                    effects.unshift.apply(effects, croplessEffects);
                }
                parent = parent.parent;
            }
            return effects.filter(function (effect) { return contains(effect.target, target); });
        };
        return ElementPaint;
    }());
    var parseStackTree = function (parent, stackingContext, realStackingContext, listItems) {
        parent.container.elements.forEach(function (child) {
            var treatAsRealStackingContext = contains(child.flags, 4 /* CREATES_REAL_STACKING_CONTEXT */);
            var createsStackingContext = contains(child.flags, 2 /* CREATES_STACKING_CONTEXT */);
            var paintContainer = new ElementPaint(child, parent);
            if (contains(child.styles.display, 2048 /* LIST_ITEM */)) {
                listItems.push(paintContainer);
            }
            var listOwnerItems = contains(child.flags, 8 /* IS_LIST_OWNER */) ? [] : listItems;
            if (treatAsRealStackingContext || createsStackingContext) {
                var parentStack = treatAsRealStackingContext || child.styles.isPositioned() ? realStackingContext : stackingContext;
                var stack = new StackingContext(paintContainer);
                if (child.styles.isPositioned() || child.styles.opacity < 1 || child.styles.isTransformed()) {
                    var order_1 = child.styles.zIndex.order;
                    if (order_1 < 0) {
                        var index_1 = 0;
                        parentStack.negativeZIndex.some(function (current, i) {
                            if (order_1 > current.element.container.styles.zIndex.order) {
                                index_1 = i;
                                return false;
                            }
                            else if (index_1 > 0) {
                                return true;
                            }
                            return false;
                        });
                        parentStack.negativeZIndex.splice(index_1, 0, stack);
                    }
                    else if (order_1 > 0) {
                        var index_2 = 0;
                        parentStack.positiveZIndex.some(function (current, i) {
                            if (order_1 >= current.element.container.styles.zIndex.order) {
                                index_2 = i + 1;
                                return false;
                            }
                            else if (index_2 > 0) {
                                return true;
                            }
                            return false;
                        });
                        parentStack.positiveZIndex.splice(index_2, 0, stack);
                    }
                    else {
                        parentStack.zeroOrAutoZIndexOrTransformedOrOpacity.push(stack);
                    }
                }
                else {
                    if (child.styles.isFloating()) {
                        parentStack.nonPositionedFloats.push(stack);
                    }
                    else {
                        parentStack.nonPositionedInlineLevel.push(stack);
                    }
                }
                parseStackTree(paintContainer, stack, treatAsRealStackingContext ? stack : realStackingContext, listOwnerItems);
            }
            else {
                if (child.styles.isInlineLevel()) {
                    stackingContext.inlineLevel.push(paintContainer);
                }
                else {
                    stackingContext.nonInlineLevel.push(paintContainer);
                }
                parseStackTree(paintContainer, stackingContext, realStackingContext, listOwnerItems);
            }
            if (contains(child.flags, 8 /* IS_LIST_OWNER */)) {
                processListItems(child, listOwnerItems);
            }
        });
    };
    var processListItems = function (owner, elements) {
        var numbering = owner instanceof OLElementContainer ? owner.start : 1;
        var reversed = owner instanceof OLElementContainer ? owner.reversed : false;
        for (var i = 0; i < elements.length; i++) {
            var item = elements[i];
            if (item.container instanceof LIElementContainer &&
                typeof item.container.value === 'number' &&
                item.container.value !== 0) {
                numbering = item.container.value;
            }
            item.listValue = createCounterText(numbering, item.container.styles.listStyleType, true);
            numbering += reversed ? -1 : 1;
        }
    };
    var parseStackingContexts = function (container) {
        var paintContainer = new ElementPaint(container, null);
        var root = new StackingContext(paintContainer);
        var listItems = [];
        parseStackTree(paintContainer, root, root, listItems);
        processListItems(paintContainer.container, listItems);
        return root;
    };

    var parsePathForBorder = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createPathFromCurves(curves.topLeftBorderBox, curves.topLeftPaddingBox, curves.topRightBorderBox, curves.topRightPaddingBox);
            case 1:
                return createPathFromCurves(curves.topRightBorderBox, curves.topRightPaddingBox, curves.bottomRightBorderBox, curves.bottomRightPaddingBox);
            case 2:
                return createPathFromCurves(curves.bottomRightBorderBox, curves.bottomRightPaddingBox, curves.bottomLeftBorderBox, curves.bottomLeftPaddingBox);
            case 3:
            default:
                return createPathFromCurves(curves.bottomLeftBorderBox, curves.bottomLeftPaddingBox, curves.topLeftBorderBox, curves.topLeftPaddingBox);
        }
    };
    var parsePathForBorderDoubleOuter = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createPathFromCurves(curves.topLeftBorderBox, curves.topLeftBorderDoubleOuterBox, curves.topRightBorderBox, curves.topRightBorderDoubleOuterBox);
            case 1:
                return createPathFromCurves(curves.topRightBorderBox, curves.topRightBorderDoubleOuterBox, curves.bottomRightBorderBox, curves.bottomRightBorderDoubleOuterBox);
            case 2:
                return createPathFromCurves(curves.bottomRightBorderBox, curves.bottomRightBorderDoubleOuterBox, curves.bottomLeftBorderBox, curves.bottomLeftBorderDoubleOuterBox);
            case 3:
            default:
                return createPathFromCurves(curves.bottomLeftBorderBox, curves.bottomLeftBorderDoubleOuterBox, curves.topLeftBorderBox, curves.topLeftBorderDoubleOuterBox);
        }
    };
    var parsePathForBorderDoubleInner = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createPathFromCurves(curves.topLeftBorderDoubleInnerBox, curves.topLeftPaddingBox, curves.topRightBorderDoubleInnerBox, curves.topRightPaddingBox);
            case 1:
                return createPathFromCurves(curves.topRightBorderDoubleInnerBox, curves.topRightPaddingBox, curves.bottomRightBorderDoubleInnerBox, curves.bottomRightPaddingBox);
            case 2:
                return createPathFromCurves(curves.bottomRightBorderDoubleInnerBox, curves.bottomRightPaddingBox, curves.bottomLeftBorderDoubleInnerBox, curves.bottomLeftPaddingBox);
            case 3:
            default:
                return createPathFromCurves(curves.bottomLeftBorderDoubleInnerBox, curves.bottomLeftPaddingBox, curves.topLeftBorderDoubleInnerBox, curves.topLeftPaddingBox);
        }
    };
    var parsePathForBorderStroke = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createStrokePathFromCurves(curves.topLeftBorderStroke, curves.topRightBorderStroke);
            case 1:
                return createStrokePathFromCurves(curves.topRightBorderStroke, curves.bottomRightBorderStroke);
            case 2:
                return createStrokePathFromCurves(curves.bottomRightBorderStroke, curves.bottomLeftBorderStroke);
            case 3:
            default:
                return createStrokePathFromCurves(curves.bottomLeftBorderStroke, curves.topLeftBorderStroke);
        }
    };
    var createStrokePathFromCurves = function (outer1, outer2) {
        var path = [];
        if (isBezierCurve(outer1)) {
            path.push(outer1.subdivide(0.5, false));
        }
        else {
            path.push(outer1);
        }
        if (isBezierCurve(outer2)) {
            path.push(outer2.subdivide(0.5, true));
        }
        else {
            path.push(outer2);
        }
        return path;
    };
    var createPathFromCurves = function (outer1, inner1, outer2, inner2) {
        var path = [];
        if (isBezierCurve(outer1)) {
            path.push(outer1.subdivide(0.5, false));
        }
        else {
            path.push(outer1);
        }
        if (isBezierCurve(outer2)) {
            path.push(outer2.subdivide(0.5, true));
        }
        else {
            path.push(outer2);
        }
        if (isBezierCurve(inner2)) {
            path.push(inner2.subdivide(0.5, true).reverse());
        }
        else {
            path.push(inner2);
        }
        if (isBezierCurve(inner1)) {
            path.push(inner1.subdivide(0.5, false).reverse());
        }
        else {
            path.push(inner1);
        }
        return path;
    };

    var paddingBox = function (element) {
        var bounds = element.bounds;
        var styles = element.styles;
        return bounds.add(styles.borderLeftWidth, styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth), -(styles.borderTopWidth + styles.borderBottomWidth));
    };
    var contentBox = function (element) {
        var styles = element.styles;
        var bounds = element.bounds;
        var paddingLeft = getAbsoluteValue(styles.paddingLeft, bounds.width);
        var paddingRight = getAbsoluteValue(styles.paddingRight, bounds.width);
        var paddingTop = getAbsoluteValue(styles.paddingTop, bounds.width);
        var paddingBottom = getAbsoluteValue(styles.paddingBottom, bounds.width);
        return bounds.add(paddingLeft + styles.borderLeftWidth, paddingTop + styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth + paddingLeft + paddingRight), -(styles.borderTopWidth + styles.borderBottomWidth + paddingTop + paddingBottom));
    };

    var calculateBackgroundPositioningArea = function (backgroundOrigin, element) {
        if (backgroundOrigin === 0 /* BORDER_BOX */) {
            return element.bounds;
        }
        if (backgroundOrigin === 2 /* CONTENT_BOX */) {
            return contentBox(element);
        }
        return paddingBox(element);
    };
    var calculateBackgroundPaintingArea = function (backgroundClip, element) {
        if (backgroundClip === 0 /* BORDER_BOX */) {
            return element.bounds;
        }
        if (backgroundClip === 2 /* CONTENT_BOX */) {
            return contentBox(element);
        }
        return paddingBox(element);
    };
    var calculateBackgroundRendering = function (container, index, intrinsicSize) {
        var backgroundPositioningArea = calculateBackgroundPositioningArea(getBackgroundValueForIndex(container.styles.backgroundOrigin, index), container);
        var backgroundPaintingArea = calculateBackgroundPaintingArea(getBackgroundValueForIndex(container.styles.backgroundClip, index), container);
        var backgroundImageSize = calculateBackgroundSize(getBackgroundValueForIndex(container.styles.backgroundSize, index), intrinsicSize, backgroundPositioningArea);
        var sizeWidth = backgroundImageSize[0], sizeHeight = backgroundImageSize[1];
        var position = getAbsoluteValueForTuple(getBackgroundValueForIndex(container.styles.backgroundPosition, index), backgroundPositioningArea.width - sizeWidth, backgroundPositioningArea.height - sizeHeight);
        var path = calculateBackgroundRepeatPath(getBackgroundValueForIndex(container.styles.backgroundRepeat, index), position, backgroundImageSize, backgroundPositioningArea, backgroundPaintingArea);
        var offsetX = Math.round(backgroundPositioningArea.left + position[0]);
        var offsetY = Math.round(backgroundPositioningArea.top + position[1]);
        return [path, offsetX, offsetY, sizeWidth, sizeHeight];
    };
    var isAuto = function (token) { return isIdentToken(token) && token.value === BACKGROUND_SIZE.AUTO; };
    var hasIntrinsicValue = function (value) { return typeof value === 'number'; };
    var calculateBackgroundSize = function (size, _a, bounds) {
        var intrinsicWidth = _a[0], intrinsicHeight = _a[1], intrinsicProportion = _a[2];
        var first = size[0], second = size[1];
        if (!first) {
            return [0, 0];
        }
        if (isLengthPercentage(first) && second && isLengthPercentage(second)) {
            return [getAbsoluteValue(first, bounds.width), getAbsoluteValue(second, bounds.height)];
        }
        var hasIntrinsicProportion = hasIntrinsicValue(intrinsicProportion);
        if (isIdentToken(first) && (first.value === BACKGROUND_SIZE.CONTAIN || first.value === BACKGROUND_SIZE.COVER)) {
            if (hasIntrinsicValue(intrinsicProportion)) {
                var targetRatio = bounds.width / bounds.height;
                return targetRatio < intrinsicProportion !== (first.value === BACKGROUND_SIZE.COVER)
                    ? [bounds.width, bounds.width / intrinsicProportion]
                    : [bounds.height * intrinsicProportion, bounds.height];
            }
            return [bounds.width, bounds.height];
        }
        var hasIntrinsicWidth = hasIntrinsicValue(intrinsicWidth);
        var hasIntrinsicHeight = hasIntrinsicValue(intrinsicHeight);
        var hasIntrinsicDimensions = hasIntrinsicWidth || hasIntrinsicHeight;
        // If the background-size is auto or auto auto:
        if (isAuto(first) && (!second || isAuto(second))) {
            // If the image has both horizontal and vertical intrinsic dimensions, it's rendered at that size.
            if (hasIntrinsicWidth && hasIntrinsicHeight) {
                return [intrinsicWidth, intrinsicHeight];
            }
            // If the image has no intrinsic dimensions and has no intrinsic proportions,
            // it's rendered at the size of the background positioning area.
            if (!hasIntrinsicProportion && !hasIntrinsicDimensions) {
                return [bounds.width, bounds.height];
            }
            // TODO If the image has no intrinsic dimensions but has intrinsic proportions, it's rendered as if contain had been specified instead.
            // If the image has only one intrinsic dimension and has intrinsic proportions, it's rendered at the size corresponding to that one dimension.
            // The other dimension is computed using the specified dimension and the intrinsic proportions.
            if (hasIntrinsicDimensions && hasIntrinsicProportion) {
                var width_1 = hasIntrinsicWidth
                    ? intrinsicWidth
                    : intrinsicHeight * intrinsicProportion;
                var height_1 = hasIntrinsicHeight
                    ? intrinsicHeight
                    : intrinsicWidth / intrinsicProportion;
                return [width_1, height_1];
            }
            // If the image has only one intrinsic dimension but has no intrinsic proportions,
            // it's rendered using the specified dimension and the other dimension of the background positioning area.
            var width_2 = hasIntrinsicWidth ? intrinsicWidth : bounds.width;
            var height_2 = hasIntrinsicHeight ? intrinsicHeight : bounds.height;
            return [width_2, height_2];
        }
        // If the image has intrinsic proportions, it's stretched to the specified dimension.
        // The unspecified dimension is computed using the specified dimension and the intrinsic proportions.
        if (hasIntrinsicProportion) {
            var width_3 = 0;
            var height_3 = 0;
            if (isLengthPercentage(first)) {
                width_3 = getAbsoluteValue(first, bounds.width);
            }
            else if (isLengthPercentage(second)) {
                height_3 = getAbsoluteValue(second, bounds.height);
            }
            if (isAuto(first)) {
                width_3 = height_3 * intrinsicProportion;
            }
            else if (!second || isAuto(second)) {
                height_3 = width_3 / intrinsicProportion;
            }
            return [width_3, height_3];
        }
        // If the image has no intrinsic proportions, it's stretched to the specified dimension.
        // The unspecified dimension is computed using the image's corresponding intrinsic dimension,
        // if there is one. If there is no such intrinsic dimension,
        // it becomes the corresponding dimension of the background positioning area.
        var width = null;
        var height = null;
        if (isLengthPercentage(first)) {
            width = getAbsoluteValue(first, bounds.width);
        }
        else if (second && isLengthPercentage(second)) {
            height = getAbsoluteValue(second, bounds.height);
        }
        if (width !== null && (!second || isAuto(second))) {
            height =
                hasIntrinsicWidth && hasIntrinsicHeight
                    ? (width / intrinsicWidth) * intrinsicHeight
                    : bounds.height;
        }
        if (height !== null && isAuto(first)) {
            width =
                hasIntrinsicWidth && hasIntrinsicHeight
                    ? (height / intrinsicHeight) * intrinsicWidth
                    : bounds.width;
        }
        if (width !== null && height !== null) {
            return [width, height];
        }
        throw new Error("Unable to calculate background-size for element");
    };
    var getBackgroundValueForIndex = function (values, index) {
        var value = values[index];
        if (typeof value === 'undefined') {
            return values[0];
        }
        return value;
    };
    var calculateBackgroundRepeatPath = function (repeat, _a, _b, backgroundPositioningArea, backgroundPaintingArea) {
        var x = _a[0], y = _a[1];
        var width = _b[0], height = _b[1];
        switch (repeat) {
            case 2 /* REPEAT_X */:
                return [
                    new Vector(Math.round(backgroundPositioningArea.left), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + backgroundPositioningArea.width), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + backgroundPositioningArea.width), Math.round(height + backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left), Math.round(height + backgroundPositioningArea.top + y))
                ];
            case 3 /* REPEAT_Y */:
                return [
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.top)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.top)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.height + backgroundPositioningArea.top)),
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.height + backgroundPositioningArea.top))
                ];
            case 1 /* NO_REPEAT */:
                return [
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.top + y + height)),
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.top + y + height))
                ];
            default:
                return [
                    new Vector(Math.round(backgroundPaintingArea.left), Math.round(backgroundPaintingArea.top)),
                    new Vector(Math.round(backgroundPaintingArea.left + backgroundPaintingArea.width), Math.round(backgroundPaintingArea.top)),
                    new Vector(Math.round(backgroundPaintingArea.left + backgroundPaintingArea.width), Math.round(backgroundPaintingArea.height + backgroundPaintingArea.top)),
                    new Vector(Math.round(backgroundPaintingArea.left), Math.round(backgroundPaintingArea.height + backgroundPaintingArea.top))
                ];
        }
    };

    var SMALL_IMAGE = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';

    var SAMPLE_TEXT = 'Hidden Text';
    var FontMetrics = /** @class */ (function () {
        function FontMetrics(document) {
            this._data = {};
            this._document = document;
        }
        FontMetrics.prototype.parseMetrics = function (fontFamily, fontSize) {
            var container = this._document.createElement('div');
            var img = this._document.createElement('img');
            var span = this._document.createElement('span');
            var body = this._document.body;
            container.style.visibility = 'hidden';
            container.style.fontFamily = fontFamily;
            container.style.fontSize = fontSize;
            container.style.margin = '0';
            container.style.padding = '0';
            container.style.whiteSpace = 'nowrap';
            body.appendChild(container);
            img.src = SMALL_IMAGE;
            img.width = 1;
            img.height = 1;
            img.style.margin = '0';
            img.style.padding = '0';
            img.style.verticalAlign = 'baseline';
            span.style.fontFamily = fontFamily;
            span.style.fontSize = fontSize;
            span.style.margin = '0';
            span.style.padding = '0';
            span.appendChild(this._document.createTextNode(SAMPLE_TEXT));
            container.appendChild(span);
            container.appendChild(img);
            var baseline = img.offsetTop - span.offsetTop + 2;
            container.removeChild(span);
            container.appendChild(this._document.createTextNode(SAMPLE_TEXT));
            container.style.lineHeight = 'normal';
            img.style.verticalAlign = 'super';
            var middle = img.offsetTop - container.offsetTop + 2;
            body.removeChild(container);
            return { baseline: baseline, middle: middle };
        };
        FontMetrics.prototype.getMetrics = function (fontFamily, fontSize) {
            var key = fontFamily + " " + fontSize;
            if (typeof this._data[key] === 'undefined') {
                this._data[key] = this.parseMetrics(fontFamily, fontSize);
            }
            return this._data[key];
        };
        return FontMetrics;
    }());

    var Renderer = /** @class */ (function () {
        function Renderer(context, options) {
            this.context = context;
            this.options = options;
        }
        return Renderer;
    }());

    var MASK_OFFSET = 10000;
    var CanvasRenderer = /** @class */ (function (_super) {
        __extends(CanvasRenderer, _super);
        function CanvasRenderer(context, options) {
            var _this = _super.call(this, context, options) || this;
            _this._activeEffects = [];
            _this.canvas = options.canvas ? options.canvas : document.createElement('canvas');
            _this.ctx = _this.canvas.getContext('2d');
            if (!options.canvas) {
                _this.canvas.width = Math.floor(options.width * options.scale);
                _this.canvas.height = Math.floor(options.height * options.scale);
                _this.canvas.style.width = options.width + "px";
                _this.canvas.style.height = options.height + "px";
            }
            _this.fontMetrics = new FontMetrics(document);
            _this.ctx.scale(_this.options.scale, _this.options.scale);
            _this.ctx.translate(-options.x, -options.y);
            _this.ctx.textBaseline = 'bottom';
            _this._activeEffects = [];
            _this.context.logger.debug("Canvas renderer initialized (" + options.width + "x" + options.height + ") with scale " + options.scale);
            return _this;
        }
        CanvasRenderer.prototype.applyEffects = function (effects) {
            var _this = this;
            while (this._activeEffects.length) {
                this.popEffect();
            }
            effects.forEach(function (effect) { return _this.applyEffect(effect); });
        };
        CanvasRenderer.prototype.applyEffect = function (effect) {
            this.ctx.save();
            if (isOpacityEffect(effect)) {
                this.ctx.globalAlpha = effect.opacity;
            }
            if (isTransformEffect(effect)) {
                this.ctx.translate(effect.offsetX, effect.offsetY);
                this.ctx.transform(effect.matrix[0], effect.matrix[1], effect.matrix[2], effect.matrix[3], effect.matrix[4], effect.matrix[5]);
                this.ctx.translate(-effect.offsetX, -effect.offsetY);
            }
            if (isClipEffect(effect)) {
                this.path(effect.path);
                this.ctx.clip();
            }
            this._activeEffects.push(effect);
        };
        CanvasRenderer.prototype.popEffect = function () {
            this._activeEffects.pop();
            this.ctx.restore();
        };
        CanvasRenderer.prototype.renderStack = function (stack) {
            return __awaiter(this, void 0, void 0, function () {
                var styles;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            styles = stack.element.container.styles;
                            if (!styles.isVisible()) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.renderStackContent(stack)];
                        case 1:
                            _a.sent();
                            _a.label = 2;
                        case 2: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderNode = function (paint) {
            return __awaiter(this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (contains(paint.container.flags, 16 /* DEBUG_RENDER */)) {
                                debugger;
                            }
                            if (!paint.container.styles.isVisible()) return [3 /*break*/, 3];
                            return [4 /*yield*/, this.renderNodeBackgroundAndBorders(paint)];
                        case 1:
                            _a.sent();
                            return [4 /*yield*/, this.renderNodeContent(paint)];
                        case 2:
                            _a.sent();
                            _a.label = 3;
                        case 3: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderTextWithLetterSpacing = function (text, letterSpacing, baseline) {
            var _this = this;
            if (letterSpacing === 0) {
                this.ctx.fillText(text.text, text.bounds.left, text.bounds.top + baseline);
            }
            else {
                var letters = segmentGraphemes(text.text);
                letters.reduce(function (left, letter) {
                    _this.ctx.fillText(letter, left, text.bounds.top + baseline);
                    return left + _this.ctx.measureText(letter).width;
                }, text.bounds.left);
            }
        };
        CanvasRenderer.prototype.createFontStyle = function (styles) {
            var fontVariant = styles.fontVariant
                .filter(function (variant) { return variant === 'normal' || variant === 'small-caps'; })
                .join('');
            var fontFamily = fixIOSSystemFonts(styles.fontFamily).join(', ');
            var fontSize = isDimensionToken(styles.fontSize)
                ? "" + styles.fontSize.number + styles.fontSize.unit
                : styles.fontSize.number + "px";
            return [
                [styles.fontStyle, fontVariant, styles.fontWeight, fontSize, fontFamily].join(' '),
                fontFamily,
                fontSize
            ];
        };
        CanvasRenderer.prototype.renderTextNode = function (text, styles) {
            return __awaiter(this, void 0, void 0, function () {
                var _a, font, fontFamily, fontSize, _b, baseline, middle, paintOrder;
                var _this = this;
                return __generator(this, function (_c) {
                    _a = this.createFontStyle(styles), font = _a[0], fontFamily = _a[1], fontSize = _a[2];
                    this.ctx.font = font;
                    this.ctx.direction = styles.direction === 1 /* RTL */ ? 'rtl' : 'ltr';
                    this.ctx.textAlign = 'left';
                    this.ctx.textBaseline = 'alphabetic';
                    _b = this.fontMetrics.getMetrics(fontFamily, fontSize), baseline = _b.baseline, middle = _b.middle;
                    paintOrder = styles.paintOrder;
                    text.textBounds.forEach(function (text) {
                        paintOrder.forEach(function (paintOrderLayer) {
                            switch (paintOrderLayer) {
                                case 0 /* FILL */:
                                    _this.ctx.fillStyle = asString(styles.color);
                                    _this.renderTextWithLetterSpacing(text, styles.letterSpacing, baseline);
                                    var textShadows = styles.textShadow;
                                    if (textShadows.length && text.text.trim().length) {
                                        textShadows
                                            .slice(0)
                                            .reverse()
                                            .forEach(function (textShadow) {
                                            _this.ctx.shadowColor = asString(textShadow.color);
                                            _this.ctx.shadowOffsetX = textShadow.offsetX.number * _this.options.scale;
                                            _this.ctx.shadowOffsetY = textShadow.offsetY.number * _this.options.scale;
                                            _this.ctx.shadowBlur = textShadow.blur.number;
                                            _this.renderTextWithLetterSpacing(text, styles.letterSpacing, baseline);
                                        });
                                        _this.ctx.shadowColor = '';
                                        _this.ctx.shadowOffsetX = 0;
                                        _this.ctx.shadowOffsetY = 0;
                                        _this.ctx.shadowBlur = 0;
                                    }
                                    if (styles.textDecorationLine.length) {
                                        _this.ctx.fillStyle = asString(styles.textDecorationColor || styles.color);
                                        styles.textDecorationLine.forEach(function (textDecorationLine) {
                                            switch (textDecorationLine) {
                                                case 1 /* UNDERLINE */:
                                                    // Draws a line at the baseline of the font
                                                    // TODO As some browsers display the line as more than 1px if the font-size is big,
                                                    // need to take that into account both in position and size
                                                    _this.ctx.fillRect(text.bounds.left, Math.round(text.bounds.top + baseline), text.bounds.width, 1);
                                                    break;
                                                case 2 /* OVERLINE */:
                                                    _this.ctx.fillRect(text.bounds.left, Math.round(text.bounds.top), text.bounds.width, 1);
                                                    break;
                                                case 3 /* LINE_THROUGH */:
                                                    // TODO try and find exact position for line-through
                                                    _this.ctx.fillRect(text.bounds.left, Math.ceil(text.bounds.top + middle), text.bounds.width, 1);
                                                    break;
                                            }
                                        });
                                    }
                                    break;
                                case 1 /* STROKE */:
                                    if (styles.webkitTextStrokeWidth && text.text.trim().length) {
                                        _this.ctx.strokeStyle = asString(styles.webkitTextStrokeColor);
                                        _this.ctx.lineWidth = styles.webkitTextStrokeWidth;
                                        // eslint-disable-next-line @typescript-eslint/no-explicit-any
                                        _this.ctx.lineJoin = !!window.chrome ? 'miter' : 'round';
                                        _this.ctx.strokeText(text.text, text.bounds.left, text.bounds.top + baseline);
                                    }
                                    _this.ctx.strokeStyle = '';
                                    _this.ctx.lineWidth = 0;
                                    _this.ctx.lineJoin = 'miter';
                                    break;
                            }
                        });
                    });
                    return [2 /*return*/];
                });
            });
        };
        CanvasRenderer.prototype.renderReplacedElement = function (container, curves, image) {
            if (image && container.intrinsicWidth > 0 && container.intrinsicHeight > 0) {
                var box = contentBox(container);
                var path = calculatePaddingBoxPath(curves);
                this.path(path);
                this.ctx.save();
                this.ctx.clip();
                this.ctx.drawImage(image, 0, 0, container.intrinsicWidth, container.intrinsicHeight, box.left, box.top, box.width, box.height);
                this.ctx.restore();
            }
        };
        CanvasRenderer.prototype.renderNodeContent = function (paint) {
            return __awaiter(this, void 0, void 0, function () {
                var container, curves, styles, _i, _a, child, image, image, iframeRenderer, canvas, size, _b, fontFamily, fontSize, baseline, bounds, x, textBounds, img, image, url, fontFamily, bounds;
                return __generator(this, function (_c) {
                    switch (_c.label) {
                        case 0:
                            this.applyEffects(paint.getEffects(4 /* CONTENT */));
                            container = paint.container;
                            curves = paint.curves;
                            styles = container.styles;
                            _i = 0, _a = container.textNodes;
                            _c.label = 1;
                        case 1:
                            if (!(_i < _a.length)) return [3 /*break*/, 4];
                            child = _a[_i];
                            return [4 /*yield*/, this.renderTextNode(child, styles)];
                        case 2:
                            _c.sent();
                            _c.label = 3;
                        case 3:
                            _i++;
                            return [3 /*break*/, 1];
                        case 4:
                            if (!(container instanceof ImageElementContainer)) return [3 /*break*/, 8];
                            _c.label = 5;
                        case 5:
                            _c.trys.push([5, 7, , 8]);
                            return [4 /*yield*/, this.context.cache.match(container.src)];
                        case 6:
                            image = _c.sent();
                            this.renderReplacedElement(container, curves, image);
                            return [3 /*break*/, 8];
                        case 7:
                            _c.sent();
                            this.context.logger.error("Error loading image " + container.src);
                            return [3 /*break*/, 8];
                        case 8:
                            if (container instanceof CanvasElementContainer) {
                                this.renderReplacedElement(container, curves, container.canvas);
                            }
                            if (!(container instanceof SVGElementContainer)) return [3 /*break*/, 12];
                            _c.label = 9;
                        case 9:
                            _c.trys.push([9, 11, , 12]);
                            return [4 /*yield*/, this.context.cache.match(container.svg)];
                        case 10:
                            image = _c.sent();
                            this.renderReplacedElement(container, curves, image);
                            return [3 /*break*/, 12];
                        case 11:
                            _c.sent();
                            this.context.logger.error("Error loading svg " + container.svg.substring(0, 255));
                            return [3 /*break*/, 12];
                        case 12:
                            if (!(container instanceof IFrameElementContainer && container.tree)) return [3 /*break*/, 14];
                            iframeRenderer = new CanvasRenderer(this.context, {
                                scale: this.options.scale,
                                backgroundColor: container.backgroundColor,
                                x: 0,
                                y: 0,
                                width: container.width,
                                height: container.height
                            });
                            return [4 /*yield*/, iframeRenderer.render(container.tree)];
                        case 13:
                            canvas = _c.sent();
                            if (container.width && container.height) {
                                this.ctx.drawImage(canvas, 0, 0, container.width, container.height, container.bounds.left, container.bounds.top, container.bounds.width, container.bounds.height);
                            }
                            _c.label = 14;
                        case 14:
                            if (container instanceof InputElementContainer) {
                                size = Math.min(container.bounds.width, container.bounds.height);
                                if (container.type === CHECKBOX) {
                                    if (container.checked) {
                                        this.ctx.save();
                                        this.path([
                                            new Vector(container.bounds.left + size * 0.39363, container.bounds.top + size * 0.79),
                                            new Vector(container.bounds.left + size * 0.16, container.bounds.top + size * 0.5549),
                                            new Vector(container.bounds.left + size * 0.27347, container.bounds.top + size * 0.44071),
                                            new Vector(container.bounds.left + size * 0.39694, container.bounds.top + size * 0.5649),
                                            new Vector(container.bounds.left + size * 0.72983, container.bounds.top + size * 0.23),
                                            new Vector(container.bounds.left + size * 0.84, container.bounds.top + size * 0.34085),
                                            new Vector(container.bounds.left + size * 0.39363, container.bounds.top + size * 0.79)
                                        ]);
                                        this.ctx.fillStyle = asString(INPUT_COLOR);
                                        this.ctx.fill();
                                        this.ctx.restore();
                                    }
                                }
                                else if (container.type === RADIO) {
                                    if (container.checked) {
                                        this.ctx.save();
                                        this.ctx.beginPath();
                                        this.ctx.arc(container.bounds.left + size / 2, container.bounds.top + size / 2, size / 4, 0, Math.PI * 2, true);
                                        this.ctx.fillStyle = asString(INPUT_COLOR);
                                        this.ctx.fill();
                                        this.ctx.restore();
                                    }
                                }
                            }
                            if (isTextInputElement(container) && container.value.length) {
                                _b = this.createFontStyle(styles), fontFamily = _b[0], fontSize = _b[1];
                                baseline = this.fontMetrics.getMetrics(fontFamily, fontSize).baseline;
                                this.ctx.font = fontFamily;
                                this.ctx.fillStyle = asString(styles.color);
                                this.ctx.textBaseline = 'alphabetic';
                                this.ctx.textAlign = canvasTextAlign(container.styles.textAlign);
                                bounds = contentBox(container);
                                x = 0;
                                switch (container.styles.textAlign) {
                                    case 1 /* CENTER */:
                                        x += bounds.width / 2;
                                        break;
                                    case 2 /* RIGHT */:
                                        x += bounds.width;
                                        break;
                                }
                                textBounds = bounds.add(x, 0, 0, -bounds.height / 2 + 1);
                                this.ctx.save();
                                this.path([
                                    new Vector(bounds.left, bounds.top),
                                    new Vector(bounds.left + bounds.width, bounds.top),
                                    new Vector(bounds.left + bounds.width, bounds.top + bounds.height),
                                    new Vector(bounds.left, bounds.top + bounds.height)
                                ]);
                                this.ctx.clip();
                                this.renderTextWithLetterSpacing(new TextBounds(container.value, textBounds), styles.letterSpacing, baseline);
                                this.ctx.restore();
                                this.ctx.textBaseline = 'alphabetic';
                                this.ctx.textAlign = 'left';
                            }
                            if (!contains(container.styles.display, 2048 /* LIST_ITEM */)) return [3 /*break*/, 20];
                            if (!(container.styles.listStyleImage !== null)) return [3 /*break*/, 19];
                            img = container.styles.listStyleImage;
                            if (!(img.type === 0 /* URL */)) return [3 /*break*/, 18];
                            image = void 0;
                            url = img.url;
                            _c.label = 15;
                        case 15:
                            _c.trys.push([15, 17, , 18]);
                            return [4 /*yield*/, this.context.cache.match(url)];
                        case 16:
                            image = _c.sent();
                            this.ctx.drawImage(image, container.bounds.left - (image.width + 10), container.bounds.top);
                            return [3 /*break*/, 18];
                        case 17:
                            _c.sent();
                            this.context.logger.error("Error loading list-style-image " + url);
                            return [3 /*break*/, 18];
                        case 18: return [3 /*break*/, 20];
                        case 19:
                            if (paint.listValue && container.styles.listStyleType !== -1 /* NONE */) {
                                fontFamily = this.createFontStyle(styles)[0];
                                this.ctx.font = fontFamily;
                                this.ctx.fillStyle = asString(styles.color);
                                this.ctx.textBaseline = 'middle';
                                this.ctx.textAlign = 'right';
                                bounds = new Bounds(container.bounds.left, container.bounds.top + getAbsoluteValue(container.styles.paddingTop, container.bounds.width), container.bounds.width, computeLineHeight(styles.lineHeight, styles.fontSize.number) / 2 + 1);
                                this.renderTextWithLetterSpacing(new TextBounds(paint.listValue, bounds), styles.letterSpacing, computeLineHeight(styles.lineHeight, styles.fontSize.number) / 2 + 2);
                                this.ctx.textBaseline = 'bottom';
                                this.ctx.textAlign = 'left';
                            }
                            _c.label = 20;
                        case 20: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderStackContent = function (stack) {
            return __awaiter(this, void 0, void 0, function () {
                var _i, _a, child, _b, _c, child, _d, _e, child, _f, _g, child, _h, _j, child, _k, _l, child, _m, _o, child;
                return __generator(this, function (_p) {
                    switch (_p.label) {
                        case 0:
                            if (contains(stack.element.container.flags, 16 /* DEBUG_RENDER */)) {
                                debugger;
                            }
                            // https://www.w3.org/TR/css-position-3/#painting-order
                            // 1. the background and borders of the element forming the stacking context.
                            return [4 /*yield*/, this.renderNodeBackgroundAndBorders(stack.element)];
                        case 1:
                            // https://www.w3.org/TR/css-position-3/#painting-order
                            // 1. the background and borders of the element forming the stacking context.
                            _p.sent();
                            _i = 0, _a = stack.negativeZIndex;
                            _p.label = 2;
                        case 2:
                            if (!(_i < _a.length)) return [3 /*break*/, 5];
                            child = _a[_i];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 3:
                            _p.sent();
                            _p.label = 4;
                        case 4:
                            _i++;
                            return [3 /*break*/, 2];
                        case 5: 
                        // 3. For all its in-flow, non-positioned, block-level descendants in tree order:
                        return [4 /*yield*/, this.renderNodeContent(stack.element)];
                        case 6:
                            // 3. For all its in-flow, non-positioned, block-level descendants in tree order:
                            _p.sent();
                            _b = 0, _c = stack.nonInlineLevel;
                            _p.label = 7;
                        case 7:
                            if (!(_b < _c.length)) return [3 /*break*/, 10];
                            child = _c[_b];
                            return [4 /*yield*/, this.renderNode(child)];
                        case 8:
                            _p.sent();
                            _p.label = 9;
                        case 9:
                            _b++;
                            return [3 /*break*/, 7];
                        case 10:
                            _d = 0, _e = stack.nonPositionedFloats;
                            _p.label = 11;
                        case 11:
                            if (!(_d < _e.length)) return [3 /*break*/, 14];
                            child = _e[_d];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 12:
                            _p.sent();
                            _p.label = 13;
                        case 13:
                            _d++;
                            return [3 /*break*/, 11];
                        case 14:
                            _f = 0, _g = stack.nonPositionedInlineLevel;
                            _p.label = 15;
                        case 15:
                            if (!(_f < _g.length)) return [3 /*break*/, 18];
                            child = _g[_f];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 16:
                            _p.sent();
                            _p.label = 17;
                        case 17:
                            _f++;
                            return [3 /*break*/, 15];
                        case 18:
                            _h = 0, _j = stack.inlineLevel;
                            _p.label = 19;
                        case 19:
                            if (!(_h < _j.length)) return [3 /*break*/, 22];
                            child = _j[_h];
                            return [4 /*yield*/, this.renderNode(child)];
                        case 20:
                            _p.sent();
                            _p.label = 21;
                        case 21:
                            _h++;
                            return [3 /*break*/, 19];
                        case 22:
                            _k = 0, _l = stack.zeroOrAutoZIndexOrTransformedOrOpacity;
                            _p.label = 23;
                        case 23:
                            if (!(_k < _l.length)) return [3 /*break*/, 26];
                            child = _l[_k];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 24:
                            _p.sent();
                            _p.label = 25;
                        case 25:
                            _k++;
                            return [3 /*break*/, 23];
                        case 26:
                            _m = 0, _o = stack.positiveZIndex;
                            _p.label = 27;
                        case 27:
                            if (!(_m < _o.length)) return [3 /*break*/, 30];
                            child = _o[_m];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 28:
                            _p.sent();
                            _p.label = 29;
                        case 29:
                            _m++;
                            return [3 /*break*/, 27];
                        case 30: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.mask = function (paths) {
            this.ctx.beginPath();
            this.ctx.moveTo(0, 0);
            this.ctx.lineTo(this.canvas.width, 0);
            this.ctx.lineTo(this.canvas.width, this.canvas.height);
            this.ctx.lineTo(0, this.canvas.height);
            this.ctx.lineTo(0, 0);
            this.formatPath(paths.slice(0).reverse());
            this.ctx.closePath();
        };
        CanvasRenderer.prototype.path = function (paths) {
            this.ctx.beginPath();
            this.formatPath(paths);
            this.ctx.closePath();
        };
        CanvasRenderer.prototype.formatPath = function (paths) {
            var _this = this;
            paths.forEach(function (point, index) {
                var start = isBezierCurve(point) ? point.start : point;
                if (index === 0) {
                    _this.ctx.moveTo(start.x, start.y);
                }
                else {
                    _this.ctx.lineTo(start.x, start.y);
                }
                if (isBezierCurve(point)) {
                    _this.ctx.bezierCurveTo(point.startControl.x, point.startControl.y, point.endControl.x, point.endControl.y, point.end.x, point.end.y);
                }
            });
        };
        CanvasRenderer.prototype.renderRepeat = function (path, pattern, offsetX, offsetY) {
            this.path(path);
            this.ctx.fillStyle = pattern;
            this.ctx.translate(offsetX, offsetY);
            this.ctx.fill();
            this.ctx.translate(-offsetX, -offsetY);
        };
        CanvasRenderer.prototype.resizeImage = function (image, width, height) {
            var _a;
            if (image.width === width && image.height === height) {
                return image;
            }
            var ownerDocument = (_a = this.canvas.ownerDocument) !== null && _a !== void 0 ? _a : document;
            var canvas = ownerDocument.createElement('canvas');
            canvas.width = Math.max(1, width);
            canvas.height = Math.max(1, height);
            var ctx = canvas.getContext('2d');
            ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, width, height);
            return canvas;
        };
        CanvasRenderer.prototype.renderBackgroundImage = function (container) {
            return __awaiter(this, void 0, void 0, function () {
                var index, _loop_1, this_1, _i, _a, backgroundImage;
                return __generator(this, function (_b) {
                    switch (_b.label) {
                        case 0:
                            index = container.styles.backgroundImage.length - 1;
                            _loop_1 = function (backgroundImage) {
                                var image, url, _c, path, x, y, width, height, pattern, _d, path, x, y, width, height, _e, lineLength, x0, x1, y0, y1, canvas, ctx, gradient_1, pattern, _f, path, left, top_1, width, height, position, x, y, _g, rx, ry, radialGradient_1, midX, midY, f, invF;
                                return __generator(this, function (_h) {
                                    switch (_h.label) {
                                        case 0:
                                            if (!(backgroundImage.type === 0 /* URL */)) return [3 /*break*/, 5];
                                            image = void 0;
                                            url = backgroundImage.url;
                                            _h.label = 1;
                                        case 1:
                                            _h.trys.push([1, 3, , 4]);
                                            return [4 /*yield*/, this_1.context.cache.match(url)];
                                        case 2:
                                            image = _h.sent();
                                            return [3 /*break*/, 4];
                                        case 3:
                                            _h.sent();
                                            this_1.context.logger.error("Error loading background-image " + url);
                                            return [3 /*break*/, 4];
                                        case 4:
                                            if (image) {
                                                _c = calculateBackgroundRendering(container, index, [
                                                    image.width,
                                                    image.height,
                                                    image.width / image.height
                                                ]), path = _c[0], x = _c[1], y = _c[2], width = _c[3], height = _c[4];
                                                pattern = this_1.ctx.createPattern(this_1.resizeImage(image, width, height), 'repeat');
                                                this_1.renderRepeat(path, pattern, x, y);
                                            }
                                            return [3 /*break*/, 6];
                                        case 5:
                                            if (isLinearGradient(backgroundImage)) {
                                                _d = calculateBackgroundRendering(container, index, [null, null, null]), path = _d[0], x = _d[1], y = _d[2], width = _d[3], height = _d[4];
                                                _e = calculateGradientDirection(backgroundImage.angle, width, height), lineLength = _e[0], x0 = _e[1], x1 = _e[2], y0 = _e[3], y1 = _e[4];
                                                canvas = document.createElement('canvas');
                                                canvas.width = width;
                                                canvas.height = height;
                                                ctx = canvas.getContext('2d');
                                                gradient_1 = ctx.createLinearGradient(x0, y0, x1, y1);
                                                processColorStops(backgroundImage.stops, lineLength).forEach(function (colorStop) {
                                                    return gradient_1.addColorStop(colorStop.stop, asString(colorStop.color));
                                                });
                                                ctx.fillStyle = gradient_1;
                                                ctx.fillRect(0, 0, width, height);
                                                if (width > 0 && height > 0) {
                                                    pattern = this_1.ctx.createPattern(canvas, 'repeat');
                                                    this_1.renderRepeat(path, pattern, x, y);
                                                }
                                            }
                                            else if (isRadialGradient(backgroundImage)) {
                                                _f = calculateBackgroundRendering(container, index, [
                                                    null,
                                                    null,
                                                    null
                                                ]), path = _f[0], left = _f[1], top_1 = _f[2], width = _f[3], height = _f[4];
                                                position = backgroundImage.position.length === 0 ? [FIFTY_PERCENT] : backgroundImage.position;
                                                x = getAbsoluteValue(position[0], width);
                                                y = getAbsoluteValue(position[position.length - 1], height);
                                                _g = calculateRadius(backgroundImage, x, y, width, height), rx = _g[0], ry = _g[1];
                                                if (rx > 0 && ry > 0) {
                                                    radialGradient_1 = this_1.ctx.createRadialGradient(left + x, top_1 + y, 0, left + x, top_1 + y, rx);
                                                    processColorStops(backgroundImage.stops, rx * 2).forEach(function (colorStop) {
                                                        return radialGradient_1.addColorStop(colorStop.stop, asString(colorStop.color));
                                                    });
                                                    this_1.path(path);
                                                    this_1.ctx.fillStyle = radialGradient_1;
                                                    if (rx !== ry) {
                                                        midX = container.bounds.left + 0.5 * container.bounds.width;
                                                        midY = container.bounds.top + 0.5 * container.bounds.height;
                                                        f = ry / rx;
                                                        invF = 1 / f;
                                                        this_1.ctx.save();
                                                        this_1.ctx.translate(midX, midY);
                                                        this_1.ctx.transform(1, 0, 0, f, 0, 0);
                                                        this_1.ctx.translate(-midX, -midY);
                                                        this_1.ctx.fillRect(left, invF * (top_1 - midY) + midY, width, height * invF);
                                                        this_1.ctx.restore();
                                                    }
                                                    else {
                                                        this_1.ctx.fill();
                                                    }
                                                }
                                            }
                                            _h.label = 6;
                                        case 6:
                                            index--;
                                            return [2 /*return*/];
                                    }
                                });
                            };
                            this_1 = this;
                            _i = 0, _a = container.styles.backgroundImage.slice(0).reverse();
                            _b.label = 1;
                        case 1:
                            if (!(_i < _a.length)) return [3 /*break*/, 4];
                            backgroundImage = _a[_i];
                            return [5 /*yield**/, _loop_1(backgroundImage)];
                        case 2:
                            _b.sent();
                            _b.label = 3;
                        case 3:
                            _i++;
                            return [3 /*break*/, 1];
                        case 4: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderSolidBorder = function (color, side, curvePoints) {
            return __awaiter(this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.path(parsePathForBorder(curvePoints, side));
                    this.ctx.fillStyle = asString(color);
                    this.ctx.fill();
                    return [2 /*return*/];
                });
            });
        };
        CanvasRenderer.prototype.renderDoubleBorder = function (color, width, side, curvePoints) {
            return __awaiter(this, void 0, void 0, function () {
                var outerPaths, innerPaths;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (!(width < 3)) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.renderSolidBorder(color, side, curvePoints)];
                        case 1:
                            _a.sent();
                            return [2 /*return*/];
                        case 2:
                            outerPaths = parsePathForBorderDoubleOuter(curvePoints, side);
                            this.path(outerPaths);
                            this.ctx.fillStyle = asString(color);
                            this.ctx.fill();
                            innerPaths = parsePathForBorderDoubleInner(curvePoints, side);
                            this.path(innerPaths);
                            this.ctx.fill();
                            return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderNodeBackgroundAndBorders = function (paint) {
            return __awaiter(this, void 0, void 0, function () {
                var styles, hasBackground, borders, backgroundPaintingArea, side, _i, borders_1, border;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            this.applyEffects(paint.getEffects(2 /* BACKGROUND_BORDERS */));
                            styles = paint.container.styles;
                            hasBackground = !isTransparent(styles.backgroundColor) || styles.backgroundImage.length;
                            borders = [
                                { style: styles.borderTopStyle, color: styles.borderTopColor, width: styles.borderTopWidth },
                                { style: styles.borderRightStyle, color: styles.borderRightColor, width: styles.borderRightWidth },
                                { style: styles.borderBottomStyle, color: styles.borderBottomColor, width: styles.borderBottomWidth },
                                { style: styles.borderLeftStyle, color: styles.borderLeftColor, width: styles.borderLeftWidth }
                            ];
                            backgroundPaintingArea = calculateBackgroundCurvedPaintingArea(getBackgroundValueForIndex(styles.backgroundClip, 0), paint.curves);
                            if (!(hasBackground || styles.boxShadow.length)) return [3 /*break*/, 2];
                            this.ctx.save();
                            this.path(backgroundPaintingArea);
                            this.ctx.clip();
                            if (!isTransparent(styles.backgroundColor)) {
                                this.ctx.fillStyle = asString(styles.backgroundColor);
                                this.ctx.fill();
                            }
                            return [4 /*yield*/, this.renderBackgroundImage(paint.container)];
                        case 1:
                            _a.sent();
                            this.ctx.restore();
                            styles.boxShadow
                                .slice(0)
                                .reverse()
                                .forEach(function (shadow) {
                                _this.ctx.save();
                                var borderBoxArea = calculateBorderBoxPath(paint.curves);
                                var maskOffset = shadow.inset ? 0 : MASK_OFFSET;
                                var shadowPaintingArea = transformPath(borderBoxArea, -maskOffset + (shadow.inset ? 1 : -1) * shadow.spread.number, (shadow.inset ? 1 : -1) * shadow.spread.number, shadow.spread.number * (shadow.inset ? -2 : 2), shadow.spread.number * (shadow.inset ? -2 : 2));
                                if (shadow.inset) {
                                    _this.path(borderBoxArea);
                                    _this.ctx.clip();
                                    _this.mask(shadowPaintingArea);
                                }
                                else {
                                    _this.mask(borderBoxArea);
                                    _this.ctx.clip();
                                    _this.path(shadowPaintingArea);
                                }
                                _this.ctx.shadowOffsetX = shadow.offsetX.number + maskOffset;
                                _this.ctx.shadowOffsetY = shadow.offsetY.number;
                                _this.ctx.shadowColor = asString(shadow.color);
                                _this.ctx.shadowBlur = shadow.blur.number;
                                _this.ctx.fillStyle = shadow.inset ? asString(shadow.color) : 'rgba(0,0,0,1)';
                                _this.ctx.fill();
                                _this.ctx.restore();
                            });
                            _a.label = 2;
                        case 2:
                            side = 0;
                            _i = 0, borders_1 = borders;
                            _a.label = 3;
                        case 3:
                            if (!(_i < borders_1.length)) return [3 /*break*/, 13];
                            border = borders_1[_i];
                            if (!(border.style !== 0 /* NONE */ && !isTransparent(border.color) && border.width > 0)) return [3 /*break*/, 11];
                            if (!(border.style === 2 /* DASHED */)) return [3 /*break*/, 5];
                            return [4 /*yield*/, this.renderDashedDottedBorder(border.color, border.width, side, paint.curves, 2 /* DASHED */)];
                        case 4:
                            _a.sent();
                            return [3 /*break*/, 11];
                        case 5:
                            if (!(border.style === 3 /* DOTTED */)) return [3 /*break*/, 7];
                            return [4 /*yield*/, this.renderDashedDottedBorder(border.color, border.width, side, paint.curves, 3 /* DOTTED */)];
                        case 6:
                            _a.sent();
                            return [3 /*break*/, 11];
                        case 7:
                            if (!(border.style === 4 /* DOUBLE */)) return [3 /*break*/, 9];
                            return [4 /*yield*/, this.renderDoubleBorder(border.color, border.width, side, paint.curves)];
                        case 8:
                            _a.sent();
                            return [3 /*break*/, 11];
                        case 9: return [4 /*yield*/, this.renderSolidBorder(border.color, side, paint.curves)];
                        case 10:
                            _a.sent();
                            _a.label = 11;
                        case 11:
                            side++;
                            _a.label = 12;
                        case 12:
                            _i++;
                            return [3 /*break*/, 3];
                        case 13: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderDashedDottedBorder = function (color, width, side, curvePoints, style) {
            return __awaiter(this, void 0, void 0, function () {
                var strokePaths, boxPaths, startX, startY, endX, endY, length, dashLength, spaceLength, useLineDash, multiplier, numberOfDashes, minSpace, maxSpace, path1, path2, path1, path2;
                return __generator(this, function (_a) {
                    this.ctx.save();
                    strokePaths = parsePathForBorderStroke(curvePoints, side);
                    boxPaths = parsePathForBorder(curvePoints, side);
                    if (style === 2 /* DASHED */) {
                        this.path(boxPaths);
                        this.ctx.clip();
                    }
                    if (isBezierCurve(boxPaths[0])) {
                        startX = boxPaths[0].start.x;
                        startY = boxPaths[0].start.y;
                    }
                    else {
                        startX = boxPaths[0].x;
                        startY = boxPaths[0].y;
                    }
                    if (isBezierCurve(boxPaths[1])) {
                        endX = boxPaths[1].end.x;
                        endY = boxPaths[1].end.y;
                    }
                    else {
                        endX = boxPaths[1].x;
                        endY = boxPaths[1].y;
                    }
                    if (side === 0 || side === 2) {
                        length = Math.abs(startX - endX);
                    }
                    else {
                        length = Math.abs(startY - endY);
                    }
                    this.ctx.beginPath();
                    if (style === 3 /* DOTTED */) {
                        this.formatPath(strokePaths);
                    }
                    else {
                        this.formatPath(boxPaths.slice(0, 2));
                    }
                    dashLength = width < 3 ? width * 3 : width * 2;
                    spaceLength = width < 3 ? width * 2 : width;
                    if (style === 3 /* DOTTED */) {
                        dashLength = width;
                        spaceLength = width;
                    }
                    useLineDash = true;
                    if (length <= dashLength * 2) {
                        useLineDash = false;
                    }
                    else if (length <= dashLength * 2 + spaceLength) {
                        multiplier = length / (2 * dashLength + spaceLength);
                        dashLength *= multiplier;
                        spaceLength *= multiplier;
                    }
                    else {
                        numberOfDashes = Math.floor((length + spaceLength) / (dashLength + spaceLength));
                        minSpace = (length - numberOfDashes * dashLength) / (numberOfDashes - 1);
                        maxSpace = (length - (numberOfDashes + 1) * dashLength) / numberOfDashes;
                        spaceLength =
                            maxSpace <= 0 || Math.abs(spaceLength - minSpace) < Math.abs(spaceLength - maxSpace)
                                ? minSpace
                                : maxSpace;
                    }
                    if (useLineDash) {
                        if (style === 3 /* DOTTED */) {
                            this.ctx.setLineDash([0, dashLength + spaceLength]);
                        }
                        else {
                            this.ctx.setLineDash([dashLength, spaceLength]);
                        }
                    }
                    if (style === 3 /* DOTTED */) {
                        this.ctx.lineCap = 'round';
                        this.ctx.lineWidth = width;
                    }
                    else {
                        this.ctx.lineWidth = width * 2 + 1.1;
                    }
                    this.ctx.strokeStyle = asString(color);
                    this.ctx.stroke();
                    this.ctx.setLineDash([]);
                    // dashed round edge gap
                    if (style === 2 /* DASHED */) {
                        if (isBezierCurve(boxPaths[0])) {
                            path1 = boxPaths[3];
                            path2 = boxPaths[0];
                            this.ctx.beginPath();
                            this.formatPath([new Vector(path1.end.x, path1.end.y), new Vector(path2.start.x, path2.start.y)]);
                            this.ctx.stroke();
                        }
                        if (isBezierCurve(boxPaths[1])) {
                            path1 = boxPaths[1];
                            path2 = boxPaths[2];
                            this.ctx.beginPath();
                            this.formatPath([new Vector(path1.end.x, path1.end.y), new Vector(path2.start.x, path2.start.y)]);
                            this.ctx.stroke();
                        }
                    }
                    this.ctx.restore();
                    return [2 /*return*/];
                });
            });
        };
        CanvasRenderer.prototype.render = function (element) {
            return __awaiter(this, void 0, void 0, function () {
                var stack;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (this.options.backgroundColor) {
                                this.ctx.fillStyle = asString(this.options.backgroundColor);
                                this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height);
                            }
                            stack = parseStackingContexts(element);
                            return [4 /*yield*/, this.renderStack(stack)];
                        case 1:
                            _a.sent();
                            this.applyEffects([]);
                            return [2 /*return*/, this.canvas];
                    }
                });
            });
        };
        return CanvasRenderer;
    }(Renderer));
    var isTextInputElement = function (container) {
        if (container instanceof TextareaElementContainer) {
            return true;
        }
        else if (container instanceof SelectElementContainer) {
            return true;
        }
        else if (container instanceof InputElementContainer && container.type !== RADIO && container.type !== CHECKBOX) {
            return true;
        }
        return false;
    };
    var calculateBackgroundCurvedPaintingArea = function (clip, curves) {
        switch (clip) {
            case 0 /* BORDER_BOX */:
                return calculateBorderBoxPath(curves);
            case 2 /* CONTENT_BOX */:
                return calculateContentBoxPath(curves);
            case 1 /* PADDING_BOX */:
            default:
                return calculatePaddingBoxPath(curves);
        }
    };
    var canvasTextAlign = function (textAlign) {
        switch (textAlign) {
            case 1 /* CENTER */:
                return 'center';
            case 2 /* RIGHT */:
                return 'right';
            case 0 /* LEFT */:
            default:
                return 'left';
        }
    };
    // see https://github.com/niklasvh/html2canvas/pull/2645
    var iOSBrokenFonts = ['-apple-system', 'system-ui'];
    var fixIOSSystemFonts = function (fontFamilies) {
        return /iPhone OS 15_(0|1)/.test(window.navigator.userAgent)
            ? fontFamilies.filter(function (fontFamily) { return iOSBrokenFonts.indexOf(fontFamily) === -1; })
            : fontFamilies;
    };

    var ForeignObjectRenderer = /** @class */ (function (_super) {
        __extends(ForeignObjectRenderer, _super);
        function ForeignObjectRenderer(context, options) {
            var _this = _super.call(this, context, options) || this;
            _this.canvas = options.canvas ? options.canvas : document.createElement('canvas');
            _this.ctx = _this.canvas.getContext('2d');
            _this.options = options;
            _this.canvas.width = Math.floor(options.width * options.scale);
            _this.canvas.height = Math.floor(options.height * options.scale);
            _this.canvas.style.width = options.width + "px";
            _this.canvas.style.height = options.height + "px";
            _this.ctx.scale(_this.options.scale, _this.options.scale);
            _this.ctx.translate(-options.x, -options.y);
            _this.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized (" + options.width + "x" + options.height + " at " + options.x + "," + options.y + ") with scale " + options.scale);
            return _this;
        }
        ForeignObjectRenderer.prototype.render = function (element) {
            return __awaiter(this, void 0, void 0, function () {
                var svg, img;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            svg = createForeignObjectSVG(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, element);
                            return [4 /*yield*/, loadSerializedSVG(svg)];
                        case 1:
                            img = _a.sent();
                            if (this.options.backgroundColor) {
                                this.ctx.fillStyle = asString(this.options.backgroundColor);
                                this.ctx.fillRect(0, 0, this.options.width * this.options.scale, this.options.height * this.options.scale);
                            }
                            this.ctx.drawImage(img, -this.options.x * this.options.scale, -this.options.y * this.options.scale);
                            return [2 /*return*/, this.canvas];
                    }
                });
            });
        };
        return ForeignObjectRenderer;
    }(Renderer));
    var loadSerializedSVG = function (svg) {
        return new Promise(function (resolve, reject) {
            var img = new Image();
            img.onload = function () {
                resolve(img);
            };
            img.onerror = reject;
            img.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(svg));
        });
    };

    var Logger = /** @class */ (function () {
        function Logger(_a) {
            var id = _a.id, enabled = _a.enabled;
            this.id = id;
            this.enabled = enabled;
            this.start = Date.now();
        }
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.debug = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.debug === 'function') {
                    // eslint-disable-next-line no-console
                    console.debug.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
                else {
                    this.info.apply(this, args);
                }
            }
        };
        Logger.prototype.getTime = function () {
            return Date.now() - this.start;
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.info = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.info === 'function') {
                    // eslint-disable-next-line no-console
                    console.info.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
            }
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.warn = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.warn === 'function') {
                    // eslint-disable-next-line no-console
                    console.warn.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
                else {
                    this.info.apply(this, args);
                }
            }
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.error = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.error === 'function') {
                    // eslint-disable-next-line no-console
                    console.error.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
                else {
                    this.info.apply(this, args);
                }
            }
        };
        Logger.instances = {};
        return Logger;
    }());

    var Context = /** @class */ (function () {
        function Context(options, windowBounds) {
            var _a;
            this.windowBounds = windowBounds;
            this.instanceName = "#" + Context.instanceCount++;
            this.logger = new Logger({ id: this.instanceName, enabled: options.logging });
            this.cache = (_a = options.cache) !== null && _a !== void 0 ? _a : new Cache(this, options);
        }
        Context.instanceCount = 1;
        return Context;
    }());

    var html2canvas = function (element, options) {
        if (options === void 0) { options = {}; }
        return renderElement(element, options);
    };
    if (typeof window !== 'undefined') {
        CacheStorage.setContext(window);
    }
    var renderElement = function (element, opts) { return __awaiter(void 0, void 0, void 0, function () {
        var ownerDocument, defaultView, resourceOptions, contextOptions, windowOptions, windowBounds, context, foreignObjectRendering, cloneOptions, documentCloner, clonedElement, container, _a, width, height, left, top, backgroundColor, renderOptions, canvas, renderer, root, renderer;
        var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
        return __generator(this, function (_u) {
            switch (_u.label) {
                case 0:
                    if (!element || typeof element !== 'object') {
                        return [2 /*return*/, Promise.reject('Invalid element provided as first argument')];
                    }
                    ownerDocument = element.ownerDocument;
                    if (!ownerDocument) {
                        throw new Error("Element is not attached to a Document");
                    }
                    defaultView = ownerDocument.defaultView;
                    if (!defaultView) {
                        throw new Error("Document is not attached to a Window");
                    }
                    resourceOptions = {
                        allowTaint: (_b = opts.allowTaint) !== null && _b !== void 0 ? _b : false,
                        imageTimeout: (_c = opts.imageTimeout) !== null && _c !== void 0 ? _c : 15000,
                        proxy: opts.proxy,
                        useCORS: (_d = opts.useCORS) !== null && _d !== void 0 ? _d : false
                    };
                    contextOptions = __assign({ logging: (_e = opts.logging) !== null && _e !== void 0 ? _e : true, cache: opts.cache }, resourceOptions);
                    windowOptions = {
                        windowWidth: (_f = opts.windowWidth) !== null && _f !== void 0 ? _f : defaultView.innerWidth,
                        windowHeight: (_g = opts.windowHeight) !== null && _g !== void 0 ? _g : defaultView.innerHeight,
                        scrollX: (_h = opts.scrollX) !== null && _h !== void 0 ? _h : defaultView.pageXOffset,
                        scrollY: (_j = opts.scrollY) !== null && _j !== void 0 ? _j : defaultView.pageYOffset
                    };
                    windowBounds = new Bounds(windowOptions.scrollX, windowOptions.scrollY, windowOptions.windowWidth, windowOptions.windowHeight);
                    context = new Context(contextOptions, windowBounds);
                    foreignObjectRendering = (_k = opts.foreignObjectRendering) !== null && _k !== void 0 ? _k : false;
                    cloneOptions = {
                        allowTaint: (_l = opts.allowTaint) !== null && _l !== void 0 ? _l : false,
                        onclone: opts.onclone,
                        ignoreElements: opts.ignoreElements,
                        inlineImages: foreignObjectRendering,
                        copyStyles: foreignObjectRendering
                    };
                    context.logger.debug("Starting document clone with size " + windowBounds.width + "x" + windowBounds.height + " scrolled to " + -windowBounds.left + "," + -windowBounds.top);
                    documentCloner = new DocumentCloner(context, element, cloneOptions);
                    clonedElement = documentCloner.clonedReferenceElement;
                    if (!clonedElement) {
                        return [2 /*return*/, Promise.reject("Unable to find element in cloned iframe")];
                    }
                    return [4 /*yield*/, documentCloner.toIFrame(ownerDocument, windowBounds)];
                case 1:
                    container = _u.sent();
                    _a = isBodyElement(clonedElement) || isHTMLElement(clonedElement)
                        ? parseDocumentSize(clonedElement.ownerDocument)
                        : parseBounds(context, clonedElement), width = _a.width, height = _a.height, left = _a.left, top = _a.top;
                    backgroundColor = parseBackgroundColor(context, clonedElement, opts.backgroundColor);
                    renderOptions = {
                        canvas: opts.canvas,
                        backgroundColor: backgroundColor,
                        scale: (_o = (_m = opts.scale) !== null && _m !== void 0 ? _m : defaultView.devicePixelRatio) !== null && _o !== void 0 ? _o : 1,
                        x: ((_p = opts.x) !== null && _p !== void 0 ? _p : 0) + left,
                        y: ((_q = opts.y) !== null && _q !== void 0 ? _q : 0) + top,
                        width: (_r = opts.width) !== null && _r !== void 0 ? _r : Math.ceil(width),
                        height: (_s = opts.height) !== null && _s !== void 0 ? _s : Math.ceil(height)
                    };
                    if (!foreignObjectRendering) return [3 /*break*/, 3];
                    context.logger.debug("Document cloned, using foreign object rendering");
                    renderer = new ForeignObjectRenderer(context, renderOptions);
                    return [4 /*yield*/, renderer.render(clonedElement)];
                case 2:
                    canvas = _u.sent();
                    return [3 /*break*/, 5];
                case 3:
                    context.logger.debug("Document cloned, element located at " + left + "," + top + " with size " + width + "x" + height + " using computed rendering");
                    context.logger.debug("Starting DOM parsing");
                    root = parseTree(context, clonedElement);
                    if (backgroundColor === root.styles.backgroundColor) {
                        root.styles.backgroundColor = COLORS.TRANSPARENT;
                    }
                    context.logger.debug("Starting renderer for element at " + renderOptions.x + "," + renderOptions.y + " with size " + renderOptions.width + "x" + renderOptions.height);
                    renderer = new CanvasRenderer(context, renderOptions);
                    return [4 /*yield*/, renderer.render(root)];
                case 4:
                    canvas = _u.sent();
                    _u.label = 5;
                case 5:
                    if ((_t = opts.removeContainer) !== null && _t !== void 0 ? _t : true) {
                        if (!DocumentCloner.destroy(container)) {
                            context.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore");
                        }
                    }
                    context.logger.debug("Finished rendering");
                    return [2 /*return*/, canvas];
            }
        });
    }); };
    var parseBackgroundColor = function (context, element, backgroundColorOverride) {
        var ownerDocument = element.ownerDocument;
        // http://www.w3.org/TR/css3-background/#special-backgrounds
        var documentBackgroundColor = ownerDocument.documentElement
            ? parseColor(context, getComputedStyle(ownerDocument.documentElement).backgroundColor)
            : COLORS.TRANSPARENT;
        var bodyBackgroundColor = ownerDocument.body
            ? parseColor(context, getComputedStyle(ownerDocument.body).backgroundColor)
            : COLORS.TRANSPARENT;
        var defaultBackgroundColor = typeof backgroundColorOverride === 'string'
            ? parseColor(context, backgroundColorOverride)
            : backgroundColorOverride === null
                ? COLORS.TRANSPARENT
                : 0xffffffff;
        return element === ownerDocument.documentElement
            ? isTransparent(documentBackgroundColor)
                ? isTransparent(bodyBackgroundColor)
                    ? defaultBackgroundColor
                    : bodyBackgroundColor
                : documentBackgroundColor
            : defaultBackgroundColor;
    };

    return html2canvas;

})));
//# sourceMappingURL=html2canvas.js.map
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(388);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_37242866_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(989);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2332)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-37242866"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_37242866_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_37242866_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invitation_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2333);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1a0c8612", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-37242866]{height:100%;background-color:#f2f2f2;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.wrap .bg[data-v-37242866]{height:6.68rem;width:100%;position:fixed;top:0;left:0;background:-webkit-gradient(linear,left top,left bottom,from(#377ee1),to(rgba(55,126,225,0)));background:linear-gradient(180deg,#377ee1,rgba(55,126,225,0))}.wrap .main[data-v-37242866]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:.8rem .6rem;position:relative;z-index:0}.wrap .main .inviteReward[data-v-37242866]{background:#fff;box-shadow:0 .05rem .1rem 0 rgba(183,190,198,.49);border-radius:.2rem;height:9.82rem;margin-bottom:1.05rem;padding:1.2rem 0 .6rem;overflow:hidden;position:relative}.wrap .main .inviteReward .title[data-v-37242866]{font-size:1.1rem;font-family:PingFangSC-Semibold;font-weight:700;color:#006bff;line-height:1.55rem;text-align:center}.wrap .main .inviteReward .content[data-v-37242866]{margin-top:.4rem}.wrap .main .inviteReward .content p[data-v-37242866]{margin-bottom:.2rem;text-align:center;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem}.wrap .main .inviteReward .content p span[data-v-37242866]{color:#ee4e4e;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:600;line-height:1.25rem}.wrap .main .inviteReward .btnWrap[data-v-37242866]{border-top:1px solid #ededed;height:3rem;width:100%;position:absolute;left:0;bottom:0}.wrap .main .inviteReward .btnWrap>div[data-v-37242866]{width:6.25rem;line-height:1.8rem;text-align:center;background:-webkit-gradient(linear,left top,left bottom,from(#fa913f),to(#e76322));background:linear-gradient(180deg,#fa913f,#e76322);border-radius:1rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#fefffe;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .main .inviteReward .btnWrap>div img[data-v-37242866]{margin-right:.2rem}.wrap .main .inviteReward .btnWrap div[data-v-37242866]:first-of-type{left:1.33rem}.wrap .main .inviteReward .btnWrap div:first-of-type img[data-v-37242866]{width:.9rem;height:.75rem;vertical-align:middle;position:relative;top:-1px}.wrap .main .inviteReward .btnWrap div[data-v-37242866]:nth-of-type(2){right:1.33rem}.wrap .main .inviteReward .btnWrap div:nth-of-type(2) img[data-v-37242866]{width:.8rem;height:.8rem;vertical-align:middle;position:relative;top:-2px}.wrap .main .postWrap[data-v-37242866]{background-color:#fff;border-radius:.2rem;margin-bottom:.6rem}.wrap .main .postWrap .topImg[data-v-37242866]{height:21.6rem;position:relative}.wrap .main .postWrap .topImg .poster[data-v-37242866]{width:100%;height:100%}.wrap .main .postWrap .days[data-v-37242866]{height:4.25rem;border-bottom:1px solid #ededed;position:relative}.wrap .main .postWrap .days .avatar[data-v-37242866]{width:2.2rem;height:2.2rem;border-radius:.1rem;border:.15rem solid #fff;box-sizing:content-box;position:absolute;top:-1.25rem;right:.55rem;background:#f0f8ff}.wrap .main .postWrap .days .time[data-v-37242866]{padding-top:.5rem;padding-left:.8rem}.wrap .main .postWrap .days .time div[data-v-37242866]:first-of-type{font-size:.6rem;font-family:PingFangSC-Regular;color:#333;margin-bottom:.25rem}.wrap .main .postWrap .days .time div[data-v-37242866]:nth-of-type(2){font-size:2rem;font-family:PingFangSC-Regular;font-weight:700;color:#333;line-height:2rem}.wrap .main .postWrap .days .time div:nth-of-type(2) span[data-v-37242866]{font-family:PingFangSC-Regular;font-size:.6rem;font-weight:400;margin-left:.15rem}.wrap .main .postWrap .days .userName[data-v-37242866]{position:absolute;top:1.48rem;right:.8rem;text-align:right}.wrap .main .postWrap .days .userName p[data-v-37242866]:first-of-type{font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;line-height:1.13rem;margin-bottom:.1rem}.wrap .main .postWrap .days .userName p[data-v-37242866]:nth-of-type(2){font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;line-height:.83rem}.wrap .main .postWrap .bottomCode[data-v-37242866]{height:2.95rem;position:relative}.wrap .main .postWrap .bottomCode>div[data-v-37242866]{padding-top:.65rem;padding-left:.6rem}.wrap .main .postWrap .bottomCode>div p[data-v-37242866]{font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#050101}.wrap .main .postWrap .bottomCode>img[data-v-37242866]{width:2.15rem;height:2.15rem;position:absolute;right:.6rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-color:#f0f8ff}.wrap .main .inviteMethod[data-v-37242866]{background-color:#fff;height:9.2rem;border-radius:.2rem;padding:.8rem .6rem;margin-bottom:.6rem}.wrap .main .inviteMethod .title[data-v-37242866]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;position:relative;margin-bottom:1rem}.wrap .main .inviteMethod .title span[data-v-37242866]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;position:absolute;right:0;bottom:0}.wrap .main .inviteMethod .content>div[data-v-37242866]{overflow:hidden}.wrap .main .inviteMethod .content>div[data-v-37242866]:first-of-type{margin-bottom:1rem}.wrap .main .inviteMethod .content>div img[data-v-37242866]{float:left;margin-left:.2rem;width:2rem;height:2rem}.wrap .main .inviteMethod .content>div div[data-v-37242866]{margin-left:2.8rem}.wrap .main .inviteMethod .content>div div p[data-v-37242866]:first-of-type{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .main .inviteMethod .content>div div p[data-v-37242866]:nth-of-type(2){font-size:.65rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545}.wrap .main .inviteList[data-v-37242866]{padding:.8rem .6rem .6rem;min-height:7.85rem;background-color:#fff;border-radius:.2rem;margin-bottom:.6rem}.wrap .main .inviteList .title[data-v-37242866]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;line-height:1.25rem}.wrap .main .inviteList .noCommend[data-v-37242866]{margin-top:1.4rem}.wrap .main .inviteList .noCommend p[data-v-37242866]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;line-height:1rem;text-align:center}.wrap .main .inviteList .table[data-v-37242866]{margin-top:1rem;border-left:1px solid #ededed;border-top:1px solid #ededed}.wrap .main .inviteList .table .tabTitle[data-v-37242866]{overflow:hidden}.wrap .main .inviteList .table .tabTitle div[data-v-37242866]{width:33.33%;text-align:center;border-right:1px solid #ededed;border-bottom:1px solid #ededed;background-color:#f8f8f8;float:left;height:1.85rem;line-height:1.85rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .main .inviteList .table .tabContent .tabRow[data-v-37242866]{overflow:hidden}.wrap .main .inviteList .table .tabContent .tabRow div[data-v-37242866]{width:33.33%;text-align:center;border-right:1px solid #ededed;border-bottom:1px solid #ededed;background-color:#fff;float:left;height:1.85rem;line-height:1.85rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrap .main .inviteList .checkReward[data-v-37242866]{height:2.05rem;position:relative}.wrap .main .inviteList .checkReward[data-v-37242866]:before{content:\"\";width:1px;height:.75rem;position:absolute;bottom:.2rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);background-color:#377ee1}.wrap .main .inviteList .checkReward div[data-v-37242866]:first-of-type{font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;position:absolute;left:2.8rem;bottom:0}.wrap .main .inviteList .checkReward div[data-v-37242866]:nth-of-type(2){font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;position:absolute;right:2.8rem;bottom:0}.wrap .main .rewardRule[data-v-37242866]{padding:.8rem .6rem .6rem;min-height:7.85rem;background-color:#fff;border-radius:.2rem;margin-bottom:.6rem}.wrap .main .rewardRule .title[data-v-37242866]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;line-height:1.25rem;margin-bottom:1rem}.wrap .main .invitationBtn[data-v-37242866]{height:3rem;position:relative;box-shadow:0 .03rem .08rem 0 hsla(0,0%,100%,.5);border-radius:.2rem;background-color:#fff;margin-top:.6rem}.wrap .main .invitationBtn>div[data-v-37242866]{width:6.25rem;line-height:1.8rem;text-align:center;background:-webkit-gradient(linear,left top,left bottom,from(#fa913f),to(#e76322));background:linear-gradient(180deg,#fa913f,#e76322);border-radius:1rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#fefffe;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .main .invitationBtn>div img[data-v-37242866]{margin-right:.2rem}.wrap .main .invitationBtn div[data-v-37242866]:first-of-type{left:1.33rem}.wrap .main .invitationBtn div:first-of-type img[data-v-37242866]{width:.9rem;height:.75rem;vertical-align:middle;position:relative;top:-1px}.wrap .main .invitationBtn div[data-v-37242866]:nth-of-type(2){right:1.33rem}.wrap .main .invitationBtn div:nth-of-type(2) img[data-v-37242866]{width:.8rem;height:.8rem;vertical-align:middle;position:relative;top:-2px}.wrap .main .bottomTips[data-v-37242866]{text-align:center;margin-top:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.wrap .bottomWrap[data-v-37242866]{box-shadow:0 -.05rem .2rem 0 hsla(0,0%,82%,.6);height:2.85rem;background-color:#fff;position:relative;z-index:1}.wrap .bottomWrap>div[data-v-37242866]{float:left;margin-top:.53rem}.wrap .bottomWrap>div[data-v-37242866]:first-of-type{margin-left:.6rem;width:4.55rem;text-align:center;color:#377ee1;border-radius:.1rem;border:1px solid #377ee1;padding:.4rem 0;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;margin-right:.8rem}.wrap .bottomWrap>div[data-v-37242866]:nth-of-type(2){width:5.7rem;padding:.4rem 0;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;border-radius:.1rem;border:1px solid #333;text-indent:1.73rem;position:relative;vertical-align:middle;margin-right:.8rem}.wrap .bottomWrap>div:nth-of-type(2) img[data-v-37242866]{position:absolute;top:50%;left:.48rem;width:1rem;height:.8rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-color:#f0f8ff}.wrap .bottomWrap>div[data-v-37242866]:nth-of-type(3){width:5.7rem;padding:.4rem 0;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;border-radius:.1rem;border:1px solid #333;text-indent:1.73rem;position:relative;vertical-align:middle}.wrap .bottomWrap>div:nth-of-type(3) img[data-v-37242866]{position:absolute;top:50%;left:.55rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.85rem;height:.85rem;background-color:#f0f8ff}.wrap .imgWrap[data-v-37242866]{position:fixed;z-index:9;width:100%;height:100%;left:0;top:0;background-color:rgba(0,0,0,.8)}.wrap .imgWrap>img[data-v-37242866]{height:75%;position:absolute;top:5%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wrap .imgWrap>div[data-v-37242866]{text-align:center;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;line-height:1.5rem;position:absolute;width:100%;left:0;bottom:6%}.wrap .imgWrap>div img[data-v-37242866]{height:1.12rem;width:.94rem;margin-right:.33rem}.wrap .slide-enter-active[data-v-37242866],.wrap .slide-leave-active[data-v-37242866]{-webkit-transition:all .4s;transition:all .4s}.wrap .slide-enter[data-v-37242866],.wrap .slide-leave-to[data-v-37242866]{opacity:0;-webkit-transform:scale(1.5);-ms-transform:scale(1.5);transform:scale(1.5)}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _html2canvas = _interopRequireDefault(__webpack_require__(1486));
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      rulesHtml: '',
      showPic: false,
      posterSrc: '',
      localImageUrl: '',
      // 海报图的本地路径（fs://）
      token: '',
      bucketUrl: '',
      commendInfo: '',
      commendList: []
    };
  },
  created: function created() {
    var _this = this;
    if (this._Util.isApp()) {
      // 七牛云 token
      this._Util.post(this._Api.appGetQNToken, {}, function (data) {
        _this.token = data.token;
        _this.bucketUrl = data.bucketUrl;
      }, function () {}, this);
    }

    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '邀请有礼',
      operate_page: '邀请有礼',
      optionType: '打开',
      param1: '邀请有礼',
      param2: window.location.href
    }, this);
  },
  mounted: function mounted() {
    this.hideMenuItems();
    this.getCommendInfo();
    this.getInvitationRule();
  },
  methods: {
    /**
     * 查看星豆奖励
     */
    goStarBeanReward: function goStarBeanReward() {
      this.$router.push({
        name: 'myStars'
      });
    },
    /**
     * 查看现金奖励
     */
    goWallet: function goWallet() {
      this.$router.push({
        name: 'wallet'
      });
    },
    /**
     * 获取奖励规则
     */
    getInvitationRule: function getInvitationRule() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'invite_note',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.rulesHtml = data.dataList[0].text;
        }
      }, function () {}, this);
    },
    /**
     * 获取我的邀请好友列表
     * @params{userId}: 当前用户的用户id
     */
    getCommendList: function getCommendList(userId) {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'invite_list',
        sys_uid: userId
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this3.commendList = data.dataList;
        }
      }, function () {}, this);
    },
    /**
     * 获取用户推荐相关信息
     */
    getCommendInfo: function getCommendInfo() {
      var _this4 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GET_RECOMMEND_INFO, {}, function (data) {
        _this4.commendInfo = data;
        _this4.getCommendList(data.userId);
      }, function () {}, this);
    },
    /**
     * 底部 发送到朋友圈/微信群 按钮逻辑
     * @params{type}: session: 微信群 timeline: 朋友圈
     */
    shareToWeixin: function shareToWeixin(type) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _wx, that, _t, _t2;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // 记录埋点
              _this5._Util.collectPageView2({
                postUrl: _this5._Api.POST_COLLECT,
                url: window.location.href,
                moduleType: '邀请有礼',
                operate_page: '邀请有礼',
                optionType: '点击',
                param1: type === 'session' ? '微信群邀请' : '朋友圈邀请'
              }, _this5);
              _t = _this5.posterSrc;
              if (_t) {
                _context.next = 2;
                break;
              }
              _context.next = 1;
              return _this5.produceImg();
            case 1:
              _t = _context.sent;
            case 2:
              _this5.posterSrc = _t;
              if (!_this5._Util.isApp()) {
                _context.next = 5;
                break;
              }
              _wx = api.require('wx');
              that = _this5; // eslint-disable-next-line require-atomic-updates
              _t2 = that.localImageUrl;
              if (_t2) {
                _context.next = 4;
                break;
              }
              _context.next = 3;
              return that.getLocalUrl();
            case 3:
              _t2 = _context.sent;
            case 4:
              that.localImageUrl = _t2;
              _wx.isInstalled(function (ret, err) {
                if (ret.installed) {
                  _wx.shareImage({
                    apiKey: '',
                    scene: type,
                    contentUrl: that.localImageUrl
                  }, function (ret, err) {
                    // if (ret.status) {
                    //     Toast("分享成功");
                    // } else {
                    //     Toast("分享失败");
                    // }
                  });
                } else {
                  (0, _mintUi.Toast)('当前设备未安装微信客户端');
                }
              });
              _context.next = 6;
              break;
            case 5:
              _this5.showPic = true;
            case 6:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 上传合成图片到七牛云并下载 用以获取本地路径
     */
    getLocalUrl: function getLocalUrl() {
      var _this6 = this;
      _mintUi.Indicator.open();
      return new Promise(function (resolve, reject) {
        if (_this6._Util.isApp()) {
          var that = _this6;
          var pic = that.posterSrc.toString().substring(that.posterSrc.indexOf(',') + 1);
          var url = 'https://upload.qiniup.com/putb64/-1';
          var xhr = new XMLHttpRequest();
          xhr.onreadystatechange = function () {
            _mintUi.Indicator.close();
            if (xhr.readyState == 4) {
              api.download({
                url: that.bucketUrl + JSON.parse(xhr.responseText).key,
                savePath: 'fs://invitation.jpg',
                report: true,
                cache: false,
                allowResume: true
              }, function (ret, err) {
                if (ret.state == 1) {
                  // 下载成功
                  resolve('fs://invitation.jpg');
                }
              });
            }
          };
          xhr.open('POST', url, true);
          xhr.setRequestHeader('Content-Type', 'application/octet-stream');
          xhr.setRequestHeader('Authorization', 'UpToken ' + that.token);
          xhr.send(pic);
        }
      });
    },
    /**
     * 生成图片海报
     */
    produceImg: function produceImg() {
      _mintUi.Indicator.open();
      return new Promise(function (resolve, reject) {
        (0, _html2canvas.default)(document.getElementById('poster'), {
          allowTaint: false,
          taintTest: true,
          useCORS: true,
          backgroundColor: null,
          loggin: false,
          onclone: function onclone(doc) {}
        }).then(function (canvas) {
          var imgBlob = canvas.toDataURL('image/jpeg', 1.0); // 将图片转为base64
          _mintUi.Indicator.close();
          resolve(imgBlob);
        }).catch(function (err) {
          reject(err);
        });
      });
    },
    /**
     * 页面滚动到视野内
     */
    scrollIntoView: function scrollIntoView() {
      this.$refs.inviteMethod.scrollIntoView();
    },
    /**
     * 隐藏微信分享菜单
     * 设置app端分享为 我的 页面
     */
    hideMenuItems: function hideMenuItems() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典-个人中心',
                  desc: '商用车维修大全',
                  link: "".concat(location.origin, "/v2/member/center"),
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['hideMenuItems']
          });
          _weixinJsSdk.default.ready(function () {
            _weixinJsSdk.default.hideMenuItems({
              menuList: ['menuItem:share:appMessage', 'menuItem:share:timeline', 'menuItem:share:qq', 'menuItem:share:weiboApp', 'menuItem:favorite', 'menuItem:share:facebook', 'menuItem:share:QZone']
            });
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 转换换行符
     * @params{string}: 需要转换的文本
     */
    parseHtml: function parseHtml(string) {
      return string.replace(/\n | \r\n/g, '<br/>');
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('transition',{attrs:{"name":"slide"}},[(_vm.showPic)?_c('div',{staticClass:"imgWrap",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showPic=false;}}},[_c('img',{attrs:{"src":_vm.posterSrc,"alt":""}}),_vm._v(" "),_c('div',{on:{"click":function($event){_vm.showPic=false;}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/member/invitation/longpress.png","alt":""}}),_vm._v("长按图片"),_c('br'),_vm._v("发送给朋友 或 保存到手机\n      ")])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"bg"}),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"inviteReward"},[_c('div',{staticClass:"title"},[_vm._v("邀请微信好友关注「卡修宝典」")]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"btnWrap"},[_c('div',{on:{"click":function($event){return _vm.shareToWeixin('session')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/member/invitation/weixinqun.png","alt":""}}),_vm._v("微信群邀请\n        ")]),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.shareToWeixin('timeline')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/member/invitation/pengyouquan.png","alt":""}}),_vm._v("朋友圈邀请\n        ")])])]),_vm._v(" "),_c('div',{staticClass:"inviteList"},[_c('div',{staticClass:"title"},[_vm._v("我邀请的好友")]),_vm._v(" "),(_vm.commendList.length===0)?_c('div',{staticClass:"noCommend"},[_c('p',[_vm._v("暂未邀请任何好友")]),_vm._v(" "),_c('p',[_vm._v("快快点击上方按钮去邀请吧~")])]):_vm._e(),_vm._v(" "),(_vm.commendList.length>0)?_c('div',{staticClass:"table"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"tabContent"},_vm._l((_vm.commendList),function(v,i){return _c('div',{key:i,staticClass:"tabRow"},[_c('div',[_vm._v(_vm._s(v.user_name))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(v.user_phone))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(v.user_status))])])}),0)]):_vm._e(),_vm._v(" "),(_vm.commendList.length>0)?_c('div',{staticClass:"checkReward"},[_c('div',{on:{"click":_vm.goStarBeanReward}},[_vm._v("查看星豆奖励")]),_vm._v(" "),_c('div',{on:{"click":_vm.goWallet}},[_vm._v("查看现金奖励")])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"rewardRule"},[_c('div',{staticClass:"title"},[_vm._v("奖励规则")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.rulesHtml))}})]),_vm._v(" "),_c('div',{staticClass:"postWrap",attrs:{"id":"poster"}},[_c('div',{staticClass:"topImg"},[_c('img',{staticClass:"poster",attrs:{"src":_vm.commendInfo.backgroundPic,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"days"},[_c('img',{staticClass:"avatar",attrs:{"src":_vm.commendInfo.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"time"},[_c('div',[_vm._v("我已经使用卡修宝典")]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.commendInfo.concernedDays)),_c('span',[_vm._v(" 天")])])]),_vm._v(" "),_c('div',{staticClass:"userName"},[_c('p',[_vm._v(_vm._s(_vm.commendInfo.userName))]),_vm._v(" "),_c('p',[_vm._v("已加入卡修宝典")])])]),_vm._v(" "),_c('div',{staticClass:"bottomCode"},[_vm._m(2),_vm._v(" "),_c('img',{attrs:{"src":_vm.commendInfo.qrCode,"alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"invitationBtn"},[_c('div',{on:{"click":function($event){return _vm.shareToWeixin('session')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/member/invitation/weixinqun.png","alt":""}}),_vm._v("微信群邀请\n      ")]),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.shareToWeixin('timeline')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/member/invitation/pengyouquan.png","alt":""}}),_vm._v("朋友圈邀请\n      ")])]),_vm._v(" "),_c('p',{staticClass:"bottomTips"},[_vm._v("快快去邀请吧~")])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"content"},[_c('p',[_vm._v("好友"),_c('span',[_vm._v("1年内")]),_vm._v("开通年费会员，奖励"),_c('span',[_vm._v("50元现金")])]),_vm._v(" "),_c('p',[_vm._v("多邀多得，上不封顶")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tabTitle"},[_c('div',[_vm._v("姓名")]),_vm._v(" "),_c('div',[_vm._v("手机号")]),_vm._v(" "),_c('div',[_vm._v("返现状态")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('p',[_vm._v("长按识别二维码")]),_vm._v(" "),_c('p',[_vm._v("跟我一起加入卡修宝典")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(389);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_396a1d97_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(990);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2334)
  __webpack_require__(2337)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-396a1d97"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_396a1d97_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_396a1d97_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_repairQuestionnaire_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2335);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7eb1cd68", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-396a1d97]{background-color:#f2f2f2;width:100%;overflow-x:hidden;height:auto!important}.outContainer .editContainer[data-v-396a1d97]{height:94vh;box-sizing:border-box;overflow-y:scroll;padding:1rem .6rem;background:-webkit-gradient(linear,left top,left bottom,from(#e6f3fe),to(#fff));background:linear-gradient(top,#e6f3fe,#fff)}.outContainer .editContainer .editItem[data-v-396a1d97]{margin-bottom:.3rem}.outContainer .editContainer .editItem .title[data-v-396a1d97]{font-family:PingFangSC-Semibold;font-size:.72rem;font-weight:700;color:#000;margin-bottom:.3rem}.outContainer .editContainer .editItem .title>span[data-v-396a1d97]{font-family:PingFangSC-Semibold;font-size:.8rem;color:#ee4545}.outContainer .editContainer .editItem>textarea[data-v-396a1d97]{width:100%;border:none;border-radius:2px;resize:none}.outContainer .editContainer .editItem>input[data-v-396a1d97]{width:100%;height:2.2rem;line-height:2.2rem;border-radius:2px}.outContainer .editContainer .editItem .uploadImg[data-v-396a1d97]{margin-bottom:.3rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#333;position:relative}.outContainer .editContainer .editItem .uploadImg>img[data-v-396a1d97]{vertical-align:middle;width:.75rem;margin-right:.25rem;position:relative;top:-1px;left:0}.outContainer .editContainer .editItem .uploadImg .imgUpload[data-v-396a1d97]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.outContainer .editContainer .editItem .uploadImg>input[data-v-396a1d97]{position:absolute;top:0;left:0;width:3.6rem;height:100%;opacity:0}.outContainer .editContainer .editItem .imgList[data-v-396a1d97]{overflow:hidden}.outContainer .editContainer .editItem .imgList>div[data-v-396a1d97]{margin-top:.8rem;width:25%;float:left;text-align:center;position:relative}.outContainer .editContainer .editItem .imgList>div>span[data-v-396a1d97]{position:absolute;width:.8rem;height:.8rem;top:-.4rem;right:.4rem;background-image:url(" + escape(__webpack_require__(2336)) + ");background-repeat:no-repeat;background-size:100%}.outContainer .editContainer .editItem .imgList>div>img[data-v-396a1d97]{width:3.15rem;height:3.15rem;background-color:#f0f8ff;border:1px solid #ddd;border-radius:2px}.outContainer .bottomBtn[data-v-396a1d97]{height:3rem;position:fixed;bottom:.3rem;left:0;width:100%}.outContainer .bottomBtn>div[data-v-396a1d97]{left:50%;margin-left:-2.5rem;position:absolute;text-align:center;height:1.7rem;line-height:1.68rem;border:2px solid #0f75ff;color:#004eb7;border-radius:10px;font-family:PingFangSC-Regular;font-size:.66rem;width:5rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/删除.a7f62f7.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2338);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("52a3a005", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-dialog.repair-case{width:85%;border-radius:.4rem}.van-dialog.repair-case .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.repair-case .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.repair-case .van-button--default{height:2.65rem;color:#333}.van-dialog.repair-case .van-button--default .van-button__text{font-size:.9rem}.van-dialog.repair-case .van-dialog__confirm{color:#177afa}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
var _typeof = __webpack_require__(69);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _mintUi = __webpack_require__(7);
var qnBase64 = _interopRequireWildcard(__webpack_require__(2339));
var _vant = __webpack_require__(12);
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import wx from 'weixin-js-sdk'
var _default = exports.default = {
  filters: {
    fixSize: function fixSize(val) {
      if (!val) return;
      var newSrc = val;
      if (val.indexOf('thumbnail/')) {
        // 如果使用了七牛云后缀处理传图片，那么重新定义缩略图
        var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
        var name;
        if (userInfo.uname) {
          name = '@' + userInfo.uname;
        } else if (userInfo.userName) {
          name = '@' + userInfo.userName;
        } else {
          name = '@用户' + userInfo.userId;
        }
        var srcIndex = val.indexOf('?imageMogr2');
        var textData = qnBase64.urlSafeBase64Encode(name);
        newSrc = val.substr(0, srcIndex) + '?imageMogr2/auto-orient/thumbnail/140x/quality/90|watermark/3/image/' + 'aHR0cDovL3N0YXRpYzIuNTFnb25nZ3VpLmNvbS9nZ3pqL3F1ZXN0aW9ubmFpcmUvd2F0ZXJtYXJrLWxvZ28tMS5wbmc=/dissolve/100/gravity/SouthWest/dx/10/dy/20/ws/0.3/wst/2/' + '/text/' + textData + '/font/5a6L5L2T/fontsize/' + Math.ceil(140 * 0.04 * 20) + '/fill/I2ZmZg==/dissolve/100/gravity/Center/dx/10/dy/10';
      }
      return val.indexOf('?imageMogr2') > -1 ? newSrc : val + '?imageView2/1/w/140/h/140';
    }
  },
  components: (0, _defineProperty2.default)({}, _dialog.default.name, _dialog.default),
  data: function data() {
    return {
      caseInfo: {
        caseId: '',
        title: '',
        errorShow: '',
        errorShowFileList: [],
        errorCode: '',
        errorCodeFileList: [],
        content: '',
        postFile: [],
        brand: '',
        type: ''
      },
      token: '',
      bucketUrl: '',
      type: '',
      timing: '',
      time: 0
    };
  },
  created: function created() {},
  mounted: function mounted() {
    var that = this;
    this.type = this._Util.getParaValueByName('type');
    if (this.type == 2) {
      document.title = '案例分享';
    } else {
      document.title = '我要提问';
    }
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: this.type == 2 ? '案例分享' : '我要提问',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    this.$nextTick(function () {
      var textareas = document.querySelectorAll('textarea');
      // 为每个文本域添加自适应功能
      textareas.forEach(function (textarea) {
        function adjustHeight() {
          // 重置高度以便正确计算 scrollHeight
          textarea.style.height = 'auto';
          // 设置新高度（加2px防止出现滚动条
          textarea.style.height = textarea.scrollHeight + 2 + 'px';
        }

        // 绑定input事件
        textarea.addEventListener('input', adjustHeight);

        // 初始调整
        adjustHeight();
      });
    });
    // this.getUserRepairCase()
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: this.type == 2 ? '案例分享,' + that.time : '我要提问,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
      * 生成水印的七牛云后缀
    */
    markQuery: function markQuery(text, imgWidth) {
      var textData = qnBase64.urlSafeBase64Encode(text);
      var imgW = imgWidth > 2500 ? 2500 : imgWidth;
      console.log(imgW);
      return '?imageMogr2/auto-orient/thumbnail/' + imgW + 'x/quality/90|watermark/3/image/' + 'aHR0cDovL3N0YXRpYzIuNTFnb25nZ3VpLmNvbS9nZ3pqL3F1ZXN0aW9ubmFpcmUvd2F0ZXJtYXJrLWxvZ28tMS5wbmc=/dissolve/100/gravity/SouthWest/dx/10/dy/20/ws/0.3/wst/2/' + '/text/' + textData + '/font/5a6L5L2T/fontsize/' + Math.ceil(imgW * 0.04 * 20) + '/fill/I2ZmZg==/dissolve/100/gravity/Center/dx/10/dy/10';
    },
    /**
     * app是否有某个权限
    */
    isRight: function isRight(callBack) {
      var resultList = api.hasPermission({
        list: ['camera', 'photos']
      });
      console.log(JSON.stringify('是否有相机的权限,发案例----' + resultList[0].granted));
      console.log(JSON.stringify('是否有读取相册的权限,发案例----' + resultList[1].granted));
      if (!resultList[0].granted) {
        _dialog.default.confirm({
          title: '“卡修宝典”想访问您的相机权限',
          message: '在社区发帖时需要使用相机功能，用于故障现场视频和照片拍摄',
          confirmButtonText: '同意',
          className: 'repair-case'
        }).then(function () {
          api.requestPermission({
            list: ['camera'],
            code: 100004
          }, function (ret, err) {
            if (ret.never) {
              console.log('点击了不再提醒');
            }
            if (ret.list[0].granted && ret.list[1].granted) {
              callBack && callBack();
            }
          });
        }).catch(function () {});
      } else if (!resultList[1].granted) {
        _dialog.default.confirm({
          title: '“卡修宝典”想访问您的相册权限',
          message: '在社区发帖时需要使用相册功能，用于故障现场视频和照片拍摄',
          confirmButtonText: '同意',
          className: 'repair-case'
        }).then(function () {
          api.requestPermission({
            list: ['photos'],
            code: 100005
          }, function (ret, err) {
            if (ret.never) {
              console.log('点击了不再提醒');
            }
            if (ret.list[0].granted && ret.list[1].granted) {
              callBack && callBack();
            }
          });
        }).catch(function () {});
      } else {
        callBack && callBack();
      }
    },
    /** 删除图片 */delImg: function delImg(index, type) {
      this.caseInfo[type].splice(index, 1);
    },
    /**
     * 微信端上传图片文件
     * @param {Object} e 图片文件资源
     * @param {String} type 当前选择图片所属问题
     */
    wxUploadFile: function wxUploadFile(e, type) {
      console.log(e, type);
      var that = this;
      var files = e.target.files;
      if (that.caseInfo[type].length + files.length > 9) {
        (0, _mintUi.Toast)({
          message: '最多上传9张图片',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (files.length > 0) {
        var _loop = function _loop() {
            if (files.hasOwnProperty(key)) {
              var file = files[key];
              size = file.size / 1024;
              if (size < 5000 || file.type == 'image/gif') {
                that.upload(file, type);
              } else {
                reader = new FileReader();
                reader.onload = function (e) {
                  var img = new Image();
                  img.src = e.target.result;
                  img.onload = function () {
                    var canvas = document.createElement('canvas');
                    var context = canvas.getContext('2d');

                    // 图片原始尺寸
                    var w = this.width / 3;
                    var h = this.height / 3;
                    canvas.width = w;
                    canvas.height = h;
                    context.clearRect(0, 0, w, h);
                    context.drawImage(img, 0, 0, w, h);
                    if (canvas.toBlob) {
                      canvas.toBlob(function (blob) {
                        console.log('blob压缩后大小' + blob.size / 1024);
                        that.upload(blob, type);
                      }, 'image/jpeg', 0.9);
                    } else {
                      var dataUrl = canvas.toDataURL('image/jpeg'); // 得到压缩后的base64图片
                      /* 将base64转换为二进制*/
                      var binaryString = window.atob(dataUrl.split(',')[1]);
                      var arrayBuffer = new ArrayBuffer(binaryString.length);
                      var intArray = new Uint8Array(arrayBuffer);
                      var imgFile = file;
                      for (var i = 0, j = binaryString.length; i < j; i++) {
                        intArray[i] = binaryString.charCodeAt(i);
                      }
                      var data = [intArray];
                      var blob;
                      try {
                        blob = new Blob(data, {
                          type: imgFile.type
                        });
                      } catch (error) {
                        window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder;
                        if (error.name === 'TypeError' && window.BlobBuilder) {
                          // eslint-disable-next-line no-undef
                          var builder = new BlobBuilder();
                          builder.append(arrayBuffer);
                          blob = builder.getBlob(imgFile.type);
                        } else {
                          // Toast.error("版本过低，不支持上传图片", 2000, undefined, false);
                          throw new Error('版本过低，不支持上传图片');
                        }
                      }

                      // blob 转file
                      var fileOfBlob = new File([blob], imgFile.name);
                      console.log('BlobBuilder压缩后大小' + fileOfBlob.size / 1024);
                      that.upload(fileOfBlob, type);
                    }
                    img = null;
                  };
                };
                reader.readAsDataURL(file);
              }
            }
          },
          size,
          reader;
        for (var key in files) {
          _loop();
        }
      }
    },
    /* 放大图片*/viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      var _imgUrl = '';
      var _imgList = [];
      if (imgList.length == 0) {
        _imgUrl = imgUrl;
      } else {
        _imgUrl = imgUrl.includes('watermark/3') ? imgUrl : imgUrl + '?imageView2/2/w/2000';
        _imgList = imgList.map(function (v) {
          return v.includes('watermark/3') ? v : v + '?imageView2/2/w/2000';
        });
      }
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
     * app端上传图片文件
     * @param {String} type 当前选择图片所属问题
     */
    appUploadFile: function appUploadFile(type) {
      var that = this;
      that.isRight(function () {
        var UIAlbumBrowser = api.require('UIAlbumBrowser');
        var index = 0;
        UIAlbumBrowser.imagePicker({
          max: 9 - that.caseInfo[type].length
        }, function (ret, err) {
          if (ret.eventType == 'cancel') return;
          var list = ret.list || [];
          var url = '';
          if (that._Util.isIOS) {
            url = 'https://upload.qbox.me';
          } else {
            url = 'https://upload.qiniup.com';
          }
          if (ret.eventType == 'nextStep') {
            if (!list.length) {
              alert('请选择照片');
              return;
            }
            UIAlbumBrowser.closePicker();
            _mintUi.Indicator.open("\u4E0A\u4F20\u4E2D...");
            list.forEach(function (item) {
              UIAlbumBrowser.transPath({
                path: item.path
              }, function (ret1, err) {
                if (ret1) {
                  api.ajax({
                    url: url,
                    method: 'post',
                    dataType: 'json',
                    data: {
                      values: {
                        token: that.token
                      },
                      files: {
                        'file': ret1.path
                      }
                    }
                  }, function (ret2, err) {
                    if (ret2) {
                      var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
                      var name;
                      if (userInfo.uname) {
                        name = '@' + userInfo.uname;
                      } else if (userInfo.userName) {
                        name = '@' + userInfo.userName;
                      } else {
                        name = '@用户' + userInfo.userId;
                      }
                      that.getAppImgInfo(ret1.path, function (imgdata) {
                        // console.log(that.bucketUrl + ret2.key + that.markQuery(name, imgdata.PixelWidth || 1000))
                        that.caseInfo[type].push(that.bucketUrl + ret2.key + that.markQuery(name, imgdata.PixelWidth || 1000));
                        index++;
                        if (index === list.length) {
                          _mintUi.Indicator.close();
                        }
                      });
                    } else {
                      _mintUi.Indicator.close();
                      (0, _mintUi.Toast)({
                        message: "\u7B2C".concat(index, "\u5F20\u4E0A\u4F20\u5931\u8D25"),
                        position: 'middle',
                        duration: 2000
                      });
                    }
                  });
                }
              });
            });
          } else {
            _mintUi.Indicator.open("\u4E0A\u4F20\u4E2D...");
            api.ajax({
              url: url,
              method: 'post',
              dataType: 'json',
              data: {
                values: {
                  token: that.token
                },
                files: {
                  'file': ret.originalPath
                }
              }
            }, function (ret2, err) {
              if (ret2) {
                var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
                var name;
                if (userInfo.uname) {
                  name = '@' + userInfo.uname;
                } else if (userInfo.userName) {
                  name = '@' + userInfo.userName;
                } else {
                  name = '@用户' + userInfo.userId;
                }
                that.getAppImgInfo(ret.originalPath, function (imgdata) {
                  that.caseInfo[type].push(that.bucketUrl + ret2.key + that.markQuery(name, imgdata.PixelWidth || 1000));
                  _mintUi.Indicator.close();
                });
              } else {
                _mintUi.Indicator.close();
                (0, _mintUi.Toast)({
                  message: "\u4E0A\u4F20\u5931\u8D25",
                  position: 'middle',
                  duration: 2000
                });
              }
            });
          }
        });
      });
    },
    /**
     * app端获取图片信息
     * @param {String} path 当前选择图片的路径
     * @param {Function} callback 获取到图片信息后的回调
     */
    getAppImgInfo: function getAppImgInfo(path, callBack) {
      var UIAlbumBrowser = api.require('UIAlbumBrowser');
      UIAlbumBrowser.getImgInfo({
        imagePath: path
      }, function (ret, err) {
        if (ret) {
          callBack && callBack(ret.info);
        } else {
          console.log(JSON.stringify(err));
        }
      });
    },
    /** 上传图片到七牛云 */upload: function upload(file, type) {
      var _this = this;
      var that = this;
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
        var name;
        if (userInfo.uname) {
          name = '@' + userInfo.uname;
        } else if (userInfo.userName) {
          name = '@' + userInfo.userName;
        } else {
          name = '@用户' + userInfo.userId;
        }
        // that._Util.watermarkImg(file, { txt: name, direction: 'Center', isLogo: true, model: 'community' }, (fileData) => {
        var formData = new FormData();
        formData.append('file', file);
        formData.append('token', that.token);
        $.ajax({
          url: '/api/blade-resource/oss/endpoint/put-file-attach-map-notsize',
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false,
          headers: {
            'Authorization': 'Basic c2FiZXI6ZWVBNWtjY1o1Q21tTnpfb3hvTUU=',
            'Blade-Auth': 'bearer ' + localStorage.getItem('wxMiniAppToken')
          }
        }).done(function (res) {
          console.log(JSON.stringify(res));
          _mintUi.Indicator.close();
          // var obj = { src: res.key };
          // that.subdata[item.id].push(res.key);
          _this.caseInfo[type].push(res.data.link);
        }).fail(function (err) {
          _mintUi.Indicator.close();
          console.log(err);
        });
        // })
      }
    },
    /** 提交维修案例 */submitUserCase: function submitUserCase(type) {
      var _this2 = this;
      if (type === 2) {
        if (!this.caseInfo.title) {
          (0, _mintUi.Toast)({
            message: '请填写案例标题后提交',
            position: 'middle',
            duration: 1500
          });
          return;
        } else if (this.caseInfo.title.length > 200) {
          (0, _mintUi.Toast)({
            message: '案例标题不能超过200字',
            position: 'middle',
            duration: 1500
          });
          return;
        }
        if (!this.caseInfo.errorShow && !this.caseInfo.errorCode) {
          (0, _mintUi.Toast)({
            message: '请填写故障现象或故障码后提交',
            position: 'middle',
            duration: 1500
          });
          return;
        }
        if (this.caseInfo.errorShow.length > 200) {
          (0, _mintUi.Toast)({
            message: '故障现象不能超过200字',
            position: 'middle',
            duration: 1500
          });
          return;
        }
        if (this.caseInfo.errorCode.length > 200) {
          (0, _mintUi.Toast)({
            message: '故障码不能超过200字',
            position: 'middle',
            duration: 1500
          });
          return;
        }
        if (!this.caseInfo.content) {
          (0, _mintUi.Toast)({
            message: '请填写维修过程后提交',
            position: 'middle',
            duration: 1500
          });
          return;
        }
        if (!this.caseInfo.brand) {
          (0, _mintUi.Toast)({
            message: '请填写型号配置后提交',
            position: 'middle',
            duration: 1500
          });
          return;
        } else if (this.caseInfo.brand.length > 200) {
          (0, _mintUi.Toast)({
            message: '型号配置不能超过200字',
            position: 'middle',
            duration: 1500
          });
          return;
        }
      } else {
        if (!this.caseInfo.title) {
          (0, _mintUi.Toast)({
            message: '请填写问题后提交',
            position: 'middle',
            duration: 1500
          });
          return;
        } else if (this.caseInfo.title.length > 200) {
          (0, _mintUi.Toast)({
            message: '问题不能超过200字',
            position: 'middle',
            duration: 1500
          });
          return;
        }
        if (!this.caseInfo.content) {
          (0, _mintUi.Toast)({
            message: '请填写问题详情后提交',
            position: 'middle',
            duration: 1500
          });
          return;
        }
        if (!this.caseInfo.brand) {
          (0, _mintUi.Toast)({
            message: '请填写品牌后提交',
            position: 'middle',
            duration: 1500
          });
          return;
        } else if (this.caseInfo.brand.length > 200) {
          (0, _mintUi.Toast)({
            message: '品牌不能超过200字',
            position: 'middle',
            duration: 1500
          });
          return;
        }
      }
      var params = _objectSpread({}, this.caseInfo);
      params.type = type;
      this._Util.post(this._Api.POST_SUBMIT_USER_REPAIR_CASE, params, function (data) {
        // if (type === 2) {
        // this._Util.collectPageView2(// 埋点
        //   {
        //     postUrl: this._Api.POST_COLLECT,
        //     moduleType: '维修案例',
        //     operate_page: '维修案例编辑器',
        //     optionType: '点击'
        //   },
        //   this
        // )
        (0, _mintUi.Toast)({
          message: '发布成功',
          position: 'middle',
          duration: 2000
        });
        if (_this2._Util.isApp()) {
          setTimeout(function () {
            api.closeWin();
          }, 2000);
        } else if (_this2._Util.isMPaaS()) {
          AlipayJSBridge.call('postNotification', {
            // eslint-disable-line
            name: 'POSCASE' // H5 发出的事件必须以 NEBULANOTIFY_ 开通进行监听
          });
          window.AlipayJSBridge && AlipayJSBridge.call('popWindow'); // eslint-disable-line
        } else {
          uni.navigateBack({
            delta: 1
          });
        }
        // }
      }, function () {}, this);
    },
    /** 获取用户草稿案例 */getUserRepairCase: function getUserRepairCase() {
      var _this3 = this;
      this._Util.post(this._Api.POST_GET_USET_REPAIR_CASE, {}, function (data) {
        if (data.isCase) {
          _this3.caseInfo = data;
        }
      }, function () {}, this);
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.urlSafeBase64Decode = urlSafeBase64Decode;
exports.urlSafeBase64Encode = urlSafeBase64Encode;
function utf8Encode(argString) {
  // http://kevin.vanzonneveld.net
  // +   original by: Webtoolkit.info (http://www.webtoolkit.info/)
  // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  // +   improved by: sowberry
  // +    tweaked by: Jack
  // +   bugfixed by: Onno Marsman
  // +   improved by: Yves Sucaet
  // +   bugfixed by: Onno Marsman
  // +   bugfixed by: Ulrich
  // +   bugfixed by: Rafal Kukawski
  // +   improved by: kirilloid
  // +   bugfixed by: kirilloid
  // *     example 1: this.utf8Encode('Kevin van Zonneveld');
  // *     returns 1: 'Kevin van Zonneveld'

  if (argString === null || typeof argString === 'undefined') {
    return '';
  }
  var string = argString + ''; // .replace(/\r\n/g, '\n').replace(/\r/g, '\n');
  var utftext = '';
  var start;
  var end;
  var stringl = 0;
  start = end = 0;
  stringl = string.length;
  for (var n = 0; n < stringl; n++) {
    var c1 = string.charCodeAt(n);
    var enc = null;
    if (c1 < 128) {
      end++;
    } else if (c1 > 127 && c1 < 2048) {
      enc = String.fromCharCode(c1 >> 6 | 192, c1 & 63 | 128);
    } else if (c1 & 0xf800 ^ 0xd800 > 0) {
      enc = String.fromCharCode(c1 >> 12 | 224, c1 >> 6 & 63 | 128, c1 & 63 | 128);
    } else {
      // surrogate pairs
      if (c1 & 0xfc00 ^ 0xd800 > 0) {
        throw new RangeError('Unmatched trail surrogate at ' + n);
      }
      var c2 = string.charCodeAt(++n);
      if (c2 & 0xfc00 ^ 0xdc00 > 0) {
        throw new RangeError('Unmatched lead surrogate at ' + (n - 1));
      }
      c1 = ((c1 & 0x3ff) << 10) + (c2 & 0x3ff) + 0x10000;
      enc = String.fromCharCode(c1 >> 18 | 240, c1 >> 12 & 63 | 128, c1 >> 6 & 63 | 128, c1 & 63 | 128);
    }
    if (enc !== null) {
      if (end > start) {
        utftext += string.slice(start, end);
      }
      utftext += enc;
      start = end = n + 1;
    }
  }
  if (end > start) {
    utftext += string.slice(start, stringl);
  }
  return utftext;
}
function base64Encode(data) {
  // http://kevin.vanzonneveld.net
  // +   original by: Tyler Akins (http://rumkin.com)
  // +   improved by: Bayron Guevara
  // +   improved by: Thunder.m
  // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  // +   bugfixed by: Pellentesque Malesuada
  // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  // -    depends on: this.utf8Encode
  // *     example 1: this.base64Encode('Kevin van Zonneveld');
  // *     returns 1: 'S2V2aW4gdmFuIFpvbm5ldmVsZA=='
  // mozilla has this native
  // - but breaks in 2.0.0.12!
  // if (typeof this.window['atob'] == 'function') {
  //    return atob(data);
  // }
  var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  var o1;
  var o2;
  var o3;
  var h1;
  var h2;
  var h3;
  var h4;
  var bits;
  var i = 0;
  var ac = 0;
  var enc = '';
  var tmp_arr = [];
  if (!data) {
    return data;
  }
  data = utf8Encode(data + '');
  do {
    // pack three octets into four hexets
    o1 = data.charCodeAt(i++);
    o2 = data.charCodeAt(i++);
    o3 = data.charCodeAt(i++);
    bits = o1 << 16 | o2 << 8 | o3;
    h1 = bits >> 18 & 0x3f;
    h2 = bits >> 12 & 0x3f;
    h3 = bits >> 6 & 0x3f;
    h4 = bits & 0x3f;

    // use hexets to index into b64, and append result to encoded string
    tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);
  } while (i < data.length);
  enc = tmp_arr.join('');
  switch (data.length % 3) {
    case 1:
      enc = enc.slice(0, -2) + '==';
      break;
    case 2:
      enc = enc.slice(0, -1) + '=';
      break;
  }
  return enc;
}
function base64Decode(data) {
  // http://kevin.vanzonneveld.net
  // +   original by: Tyler Akins (http://rumkin.com)
  // +   improved by: Thunder.m
  // +      input by: Aman Gupta
  // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  // +   bugfixed by: Onno Marsman
  // +   bugfixed by: Pellentesque Malesuada
  // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  // +      input by: Brett Zamir (http://brett-zamir.me)
  // +   bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  // *     example 1: base64_decode('S2V2aW4gdmFuIFpvbm5ldmVsZA==');
  // *     returns 1: 'Kevin van Zonneveld'
  // mozilla has this native
  // - but breaks in 2.0.0.12!
  // if (typeof this.window['atob'] == 'function') {
  //    return atob(data);
  // }
  var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  var o1;
  var o2;
  var o3;
  var h1;
  var h2;
  var h3;
  var h4;
  var bits;
  var i = 0;
  var ac = 0;
  var dec = '';
  var tmp_arr = [];
  if (!data) {
    return data;
  }
  data += '';
  do {
    // unpack four hexets into three octets using index points in b64
    h1 = b64.indexOf(data.charAt(i++));
    h2 = b64.indexOf(data.charAt(i++));
    h3 = b64.indexOf(data.charAt(i++));
    h4 = b64.indexOf(data.charAt(i++));
    bits = h1 << 18 | h2 << 12 | h3 << 6 | h4;
    o1 = bits >> 16 & 0xff;
    o2 = bits >> 8 & 0xff;
    o3 = bits & 0xff;
    if (h3 === 64) {
      tmp_arr[ac++] = String.fromCharCode(o1);
    } else if (h4 === 64) {
      tmp_arr[ac++] = String.fromCharCode(o1, o2);
    } else {
      tmp_arr[ac++] = String.fromCharCode(o1, o2, o3);
    }
  } while (i < data.length);
  dec = tmp_arr.join('');
  return dec;
}
function urlSafeBase64Encode(v) {
  v = base64Encode(v);
  return v.replace(/\//g, '_').replace(/\+/g, '-');
}
function urlSafeBase64Decode(v) {
  v = v.replace(/_/g, '/').replace(/-/g, '+');
  return base64Decode(v);
}/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(_vm.type==2)?_c('div',{staticClass:"editContainer"},[_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v("案例标题")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.title),expression:"caseInfo.title",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"type":"text","placeholder":"请输入案例标题，方便别人了解"},domProps:{"value":(_vm.caseInfo.title)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "title", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v("型号配置")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.brand),expression:"caseInfo.brand",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"placeholder":"请输入品牌、车型、型号信息"},domProps:{"value":(_vm.caseInfo.brand)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "brand", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v("故障现象")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.errorShow),expression:"caseInfo.errorShow",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"placeholder":"请详细描述故障现象，或上传图片"},domProps:{"value":(_vm.caseInfo.errorShow)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "errorShow", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),(_vm._Util.isApp())?_c('div',{staticClass:"uploadImg",on:{"click":function($event){return _vm.appUploadFile('errorShowFileList')}}},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}})]):_c('div',{staticClass:"uploadImg"},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file","multiple":""},on:{"change":function($event){return _vm.wxUploadFile($event,'errorShowFileList')}}})]),_vm._v(" "),_c('div',{staticClass:"imgList"},_vm._l((_vm.caseInfo.errorShowFileList),function(v,i){return _c('div',{key:i},[_c('img',{attrs:{"src":_vm._f("fixSize")(v),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, _vm.caseInfo.errorShowFileList, i)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(i, 'errorShowFileList')}}})])}),0)]),_vm._v(" "),_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v(" 故障码")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.errorCode),expression:"caseInfo.errorCode",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"placeholder":"请输入故障码"},domProps:{"value":(_vm.caseInfo.errorCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "errorCode", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),(_vm._Util.isApp())?_c('div',{staticClass:"uploadImg",on:{"click":function($event){return _vm.appUploadFile('errorCodeFileList')}}},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}})]):_c('div',{staticClass:"uploadImg"},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file","multiple":""},on:{"change":function($event){return _vm.wxUploadFile($event,'errorCodeFileList')}}})]),_vm._v(" "),_c('div',{staticClass:"imgList"},_vm._l((_vm.caseInfo.errorCodeFileList),function(v,i){return _c('div',{key:i},[_c('img',{attrs:{"src":_vm._f("fixSize")(v),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, _vm.caseInfo.errorCodeFileList, i)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(i, 'errorCodeFileList')}}})])}),0)]),_vm._v(" "),_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v("维修过程")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.content),expression:"caseInfo.content",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"placeholder":"请输入维修过程"},domProps:{"value":(_vm.caseInfo.content)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "content", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),(_vm._Util.isApp())?_c('div',{staticClass:"uploadImg",on:{"click":function($event){return _vm.appUploadFile('postFile')}}},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}})]):_c('div',{staticClass:"uploadImg"},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file","multiple":""},on:{"change":function($event){return _vm.wxUploadFile($event,'postFile')}}})]),_vm._v(" "),_c('div',{staticClass:"imgList"},_vm._l((_vm.caseInfo.postFile),function(v,i){return _c('div',{key:i},[_c('img',{attrs:{"src":_vm._f("fixSize")(v),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, _vm.caseInfo.postFile, i)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(i, 'postFile')}}})])}),0)])]):_vm._e(),_vm._v(" "),(_vm.type==3)?_c('div',{staticClass:"editContainer"},[_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v("问题标题")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.title),expression:"caseInfo.title",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"type":"text","placeholder":"请输入问题标题，方便别人了解"},domProps:{"value":(_vm.caseInfo.title)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "title", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v("品牌")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.brand),expression:"caseInfo.brand",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"placeholder":"请输入品牌"},domProps:{"value":(_vm.caseInfo.brand)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "brand", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"editItem"},[_c('div',{staticClass:"title"},[_vm._v("问题详情")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.caseInfo.content),expression:"caseInfo.content",modifiers:{"trim":true}}],staticClass:"_selectTrue",attrs:{"placeholder":"请详细描述故障现象，或上传图片"},domProps:{"value":(_vm.caseInfo.content)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.caseInfo, "content", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),(_vm._Util.isApp())?_c('div',{staticClass:"uploadImg",on:{"click":function($event){return _vm.appUploadFile('phenomenonPic')}}},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}})]):_c('div',{staticClass:"uploadImg"},[_vm._v("\n          添加图片"),_c('img',{staticStyle:{"width":"8px","height":"12.8px","margin-left":".2rem","margin-top":"-.1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(86)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file","multiple":""},on:{"change":function($event){return _vm.wxUploadFile($event,'postFile')}}})]),_vm._v(" "),_c('div',{staticClass:"imgList"},_vm._l((_vm.caseInfo.postFile),function(v,i){return _c('div',{key:i},[_c('img',{attrs:{"src":_vm._f("fixSize")(v),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, _vm.caseInfo.postFile, i)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(i, 'postFile')}}})])}),0)])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bottomBtn"},[(_vm.type==2)?_c('div',{on:{"click":function($event){return _vm.submitUserCase(2)}}},[_vm._v("发布案例")]):_vm._e(),_vm._v(" "),(_vm.type==3)?_c('div',{on:{"click":function($event){return _vm.submitUserCase(3)}}},[_vm._v("发布问题")]):_vm._e()])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/greyGiftArrow.632db40.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(390);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a233d5b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(991);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2340)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a233d5b6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a233d5b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a233d5b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2341);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("fc9a9668", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-a233d5b6]{height:100%;overflow-x:hidden;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:fixed;width:100%}.outContainer .history[data-v-a233d5b6]{height:1.8rem;line-height:1.8rem;background:hsla(0,0%,100%,.85);position:absolute;top:0;left:0;width:100%;z-index:10;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;padding-left:.6rem}.outContainer .history>img[data-v-a233d5b6]{position:absolute;width:.3rem;height:.5rem;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .dialogContainer[data-v-a233d5b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f2f2f2;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:2rem .6rem .8rem}.outContainer .dialogContainer .opposite[data-v-a233d5b6]{margin-bottom:1.4rem}.outContainer .dialogContainer .opposite .userInfo[data-v-a233d5b6]{height:2rem;overflow:hidden}.outContainer .dialogContainer .opposite .userInfo>img[data-v-a233d5b6]{width:2rem;height:2rem;float:left;background-color:skyblue;border-radius:4px;pointer-events:none}.outContainer .dialogContainer .opposite .userInfo .rightContent[data-v-a233d5b6]{margin-left:2.4rem}.outContainer .dialogContainer .opposite .userInfo .rightContent>div[data-v-a233d5b6]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .dialogContainer .opposite .userInfo .rightContent>div[data-v-a233d5b6]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .dialogContainer .opposite .content[data-v-a233d5b6]{margin-top:.6rem;padding:.5rem .4rem;background-color:#fff;border-radius:4px;max-width:100%;display:inline-block;font-family:PingFangSC-Regular;font-size:.8rem;color:#333;position:relative}.outContainer .dialogContainer .opposite .content[data-v-a233d5b6]:before{content:\"\";position:absolute;width:0;height:0;border:.5rem solid transparent;border-bottom-color:#fff;top:-.8rem;left:.4rem;z-index:1}.outContainer .dialogContainer .opposite .content .item[data-v-a233d5b6]{margin-bottom:1.4rem}.outContainer .dialogContainer .opposite .content .item>p[data-v-a233d5b6]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .dialogContainer .opposite .content .item .recommend[data-v-a233d5b6]{margin-top:.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#377ee1}.outContainer .dialogContainer .opposite .content .item[data-v-a233d5b6]:last-child{margin-bottom:0}.outContainer .dialogContainer .oneself[data-v-a233d5b6]{margin-bottom:1.4rem;text-align:right}.outContainer .dialogContainer .oneself .userInfo[data-v-a233d5b6]{height:2rem;overflow:hidden}.outContainer .dialogContainer .oneself .userInfo>img[data-v-a233d5b6]{width:2rem;height:2rem;float:right;background-color:skyblue;border-radius:4px}.outContainer .dialogContainer .oneself .userInfo .rightContent[data-v-a233d5b6]{margin-right:2.4rem}.outContainer .dialogContainer .oneself .userInfo .rightContent>div[data-v-a233d5b6]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .dialogContainer .oneself .userInfo .rightContent>div[data-v-a233d5b6]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .dialogContainer .oneself .content[data-v-a233d5b6]{margin-top:.6rem;padding:.5rem .4rem;background-color:#377ee1;border-radius:4px;max-width:100%;display:inline-block;font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;position:relative}.outContainer .dialogContainer .oneself .content[data-v-a233d5b6]:before{content:\"\";position:absolute;width:0;height:0;border:.5rem solid transparent;border-bottom-color:#377ee1;top:-.8rem;right:.4rem;z-index:1}.outContainer .talkBox[data-v-a233d5b6]{min-height:2.8rem;background-color:#fff;box-shadow:0 0 10px 0 rgba(167,188,218,.56);position:relative}.outContainer .talkBox .recommendList[data-v-a233d5b6]{box-shadow:0 0 10px 0 rgba(167,188,218,.56);background-color:#fff;position:absolute;z-index:1;bottom:0;left:0;width:100%;padding-bottom:2.8rem;padding-left:.6rem;padding-right:.6rem}.outContainer .talkBox .recommendList .recommendItem[data-v-a233d5b6]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;padding-top:.4rem;padding-bottom:.4rem}.outContainer .talkBox>input[data-v-a233d5b6]{width:13.45rem;height:1.8rem;background-color:#f1f1f1;border:1px solid #d1d1e0;border-radius:2px;position:absolute;z-index:2;bottom:.5rem;left:.6rem;padding-left:.5rem;padding-right:.5rem}.outContainer .talkBox .sendBtn[data-v-a233d5b6]{position:absolute;z-index:2;bottom:.5rem;right:.6rem;width:3.3rem;height:1.8rem;line-height:1.8rem;background-color:#377ee1;border-radius:2px;text-align:center;font-family:PingFangSC-Regular;font-size:.8rem;color:#fff}.outContainer .bottomPopup[data-v-a233d5b6]{width:100%;height:90%}.outContainer .bottomPopup .popupBody[data-v-a233d5b6]{width:100%;height:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _webpageWrap = _interopRequireDefault(__webpack_require__(788));
var _historyDetail = _interopRequireDefault(__webpack_require__(821));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _videoPlayer = _interopRequireDefault(__webpack_require__(169));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import MescrollVue from 'mescroll.js/mescroll.vue'
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  data: function data() {
    return {
      webpageUrl: '',
      showWebpage: false,
      showVideoPage: false,
      showHistoryDetail: false,
      messageList: [],
      // mescroll: null,
      // mescrollDown: {
      //   callback: this.pushData,
      //   auto: false,
      //   offset: 48
      // },
      dataList: [],
      appkey: '',
      token: '',
      message: '',
      recommendList: []
    };
  },
  created: function created() {
    if (window.location.href.indexOf('https://wx') != -1) {
      // 生产
      this.appkey = 'e5t4ouvpeadqa';
    } else {
      // 测试
      this.appkey = '0vnjpoad0ckgz';
    }

    // 进入设备咨询埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '设备购买咨询',
      operate_page: '设备购买咨询',
      optionType: '打开',
      param1: window.location.href
    }, this);
  },
  mounted: function mounted() {
    // this.getToken();
    this.enterChat();
    this.getChatList();
  },
  methods: {
    /** 获取历史聊天记录 */getChatList: function getChatList() {
      var _this = this;
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_INFO, {}, function (userInfo) {
        _this._Util.post(_this._Api.POST_CONSULT_CUSTOM_GET_CHAT_HISTORY, {
          userId: userInfo.userId,
          pageSize: 20,
          pageNum: 1
        }, function (data) {
          console.log(data);
          data.recordList.forEach(function (item) {
            item.content = JSON.parse(item.content);
            _this.messageList.unshift(item);
          });
        }, function () {}, _this, true);
      }, function () {}, this, true);
    },
    /** 用户进入聊天 */enterChat: function enterChat() {
      this._Util.post(this._Api.POST_CONSULT_CUSTOM_TOKEN, {
        parameter: this.$route.query.parameter
      }, function (data) {
        // let temp = {...data};
        // temp.content = JSON.parse(data.content);
        // this.messageList.push(temp);
      }, function () {}, this);
    },
    openHistory: function openHistory() {
      this.webpageUrl = location.origin + '/v2/equip/historyDetail?uid=' + this.$store.state.userInfo.userId;
      this.showWebpage = true;
    },
    /** 获取推荐匹配的列表 */
    getRecommendList: (0, _throttleDebounce.debounce)(200, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this2 = this;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (this.message) {
              _context.next = 1;
              break;
            }
            return _context.abrupt("return");
          case 1:
            this._Util.post(this._Api.POST_CONSULT_CUSTOM_SEARCH_QUESTION, {
              problem: this.message
            }, function (data) {
              if (_this2.message) {
                _this2.recommendList = data;
              }
            }, function () {}, this, true);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /** 发送消息 */
    sendMessage: (0, _throttleDebounce.throttle)(500, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(message) {
        var _this3 = this;
        var _message, msgObj;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _message = message || this.message;
              if (_message.trim()) {
                _context2.next = 1;
                break;
              }
              return _context2.abrupt("return");
            case 1:
              msgObj = {
                headimgurl: this.$store.state.userInfo.headImgUrl || 'http://static2.kaxiuyun.com/headimg.png',
                name: this.$store.getters.getUserName,
                sentTime: Date.now(),
                content: [{
                  content: _message
                }]
              };
              if (this.messageList.length > 50) {
                this.messageList.shift();
              }
              this.messageList.push(msgObj);
              this.message = '';
              this._Util.post(this._Api.POST_CONSULT_CUSTOM_SENT_MESSAGE, {
                message: _message
              }, function (data) {
                var temp = _objectSpread({}, data);
                temp.content = JSON.parse(data.content);
                _this3.messageList.push(temp);
              }, function () {}, this, true);
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /** 点击推荐回来的内容 */acceptRecommend: function acceptRecommend(url, content) {
      if (url) {
        this.webpageUrl = url;
        if (url.includes('.mp4')) {
          this.showVideoPage = true;
        } else {
          this.showWebpage = true;
        }
      } else {
        this.sendMessage(content);
      }
    },
    /** 时间格式转换 */dateFormat: function dateFormat(timeSpan) {
      return this._Util.dateFormat(timeSpan, 'yyyy.MM.dd hh:mm');
    },
    /** 获取聊天室信息 */
    // getToken() {
    //   this._Util.post(
    //     this._Api.POST_CONSULT_CUSTOM_TOKEN,
    //     {
    //       parameter: this.$route.query.parameter
    //     },
    //     data => {
    //       this.token = data.token;
    //       this.initRongCloud();
    //     },
    //     () => {},
    //     this
    //   );
    // },
    /** 初始化融云 */
    // initRongCloud() {
    //   let that = this;
    //   RongIMLib.RongIMClient.init(that.appkey);
    //   // 连接状态监听器
    //   RongIMClient.setConnectionStatusListener({
    //     onChanged: function(status) {
    //       switch (status) {
    //         case RongIMLib.ConnectionStatus.CONNECTED:
    //           console.log("链接成功");
    //           break;
    //         case RongIMLib.ConnectionStatus.CONNECTING:
    //           console.log("正在链接");
    //           break;
    //         case RongIMLib.ConnectionStatus.DISCONNECTED:
    //           console.log("断开连接");
    //           break;
    //         case RongIMLib.ConnectionStatus.KICKED_OFFLINE_BY_OTHER_CLIENT:
    //           console.log("其他设备登录");
    //           break;
    //         case RongIMLib.ConnectionStatus.DOMAIN_INCORRECT:
    //           console.log("域名不正确");
    //           break;
    //         case RongIMLib.ConnectionStatus.NETWORK_UNAVAILABLE:
    //           console.log("网络不可用");
    //           break;
    //       }
    //     }
    //   });
    //   // 消息监听器
    //   RongIMClient.setOnReceiveMessageListener({
    //     // 接收到的消息
    //     onReceived: function(message) {
    //       console.log(message.content.content);
    //       let _message = message.content;
    //       _message.content = JSON.parse(message.content.content);
    //       _message.sentTime = message.sentTime;
    //       that.messageList.push(_message);
    //     }
    //   });
    //   // 连接融云
    //   RongIMClient.connect(
    //     that.token,
    //     {
    //       onSuccess: function(userId) {
    //         console.log("Connect successfully." + userId);
    //       },
    //       onTokenIncorrect: function() {
    //         console.log("token无效");
    //       },
    //       onError: function(errorCode) {
    //         var info = "";
    //         switch (errorCode) {
    //           case RongIMLib.ErrorCode.TIMEOUT:
    //             info = "超时";
    //             break;
    //           case RongIMLib.ConnectionState.UNACCEPTABLE_PAROTOCOL_VERSION:
    //             info = "不可接受的协议版本";
    //             break;
    //           case RongIMLib.ConnectionState.IDENTIFIER_REJECTED:
    //             info = "appkey不正确";
    //             break;
    //           case RongIMLib.ConnectionState.SERVER_UNAVAILABLE:
    //             info = "服务器不可用";
    //             break;
    //         }
    //         console.log(errorCode);
    //       }
    //     }
    //   );
    // },
    // mescrollInit(mescroll) {
    //   this.mescroll = mescroll
    // },
    /** 推入数据 */
    pushData: function pushData() {
      var _this4 = this;
      setTimeout(function () {
        _this4.messageList.unshift('0000');
        _this4.mescroll.endSuccess(1);
      }, 1500);
    },
    /** 聊天记录滚动到最新 */scrollBottom: function scrollBottom() {
      var scroll = this.$refs.mescroll;
      scroll.scrollTop = scroll.scrollHeight;
    },
    /** 处理高亮 */markHtml: function markHtml(htmlString) {
      return htmlString.replace(this.message, '<span style="color:#EE4545;font-size: 0.8rem; font-family: PingFangSC-Regular;" >' + this.message + '</span>');
    }
  },
  watch: {
    message: function message(val, oldVal) {
      if (!val) {
        this.recommendList = [];
      }
    },
    messageList: function messageList() {
      var _this5 = this;
      this.$nextTick(function () {
        _this5.scrollBottom();
      });
    }
  },
  components: {
    // MescrollVue,
    webpageWrap: _webpageWrap.default,
    historyDetail: _historyDetail.default,
    videoPlayer: _videoPlayer.default
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(250);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3dc0bd88_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(829);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2029)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3dc0bd88"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3dc0bd88_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3dc0bd88_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_webpageWrap_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2030);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("637e40f8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-3dc0bd88]{height:100%;width:100%;position:relative}.outContainer iframe[data-v-3dc0bd88]{height:100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    url: String // 需要点开的网页链接
  },
  data: function data() {
    return {};
  },
  watch: {
    url: function url(val) {
      console.log('url变化了', val);
    }
  },
  mounted: function mounted() {},
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('iframe',{attrs:{"src":_vm.url,"frameborder":"0"}},[_vm._v("\n    您的设备不支持iframe\n  ")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(251);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cdd04d4e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(830);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2031)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-cdd04d4e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cdd04d4e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cdd04d4e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_historyDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2032);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6e54c938", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-cdd04d4e]{height:100%;overflow-x:hidden;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:relative}.outContainer .dialogContainer[data-v-cdd04d4e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f2f2f2;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:.8rem .6rem}.outContainer .dialogContainer .opposite[data-v-cdd04d4e]{margin-bottom:1.4rem}.outContainer .dialogContainer .opposite .userInfo[data-v-cdd04d4e]{height:2rem;overflow:hidden}.outContainer .dialogContainer .opposite .userInfo>img[data-v-cdd04d4e]{width:2rem;height:2rem;float:left;background-color:skyblue;border-radius:4px}.outContainer .dialogContainer .opposite .userInfo .rightContent[data-v-cdd04d4e]{margin-left:2.4rem}.outContainer .dialogContainer .opposite .userInfo .rightContent>div[data-v-cdd04d4e]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .dialogContainer .opposite .userInfo .rightContent>div[data-v-cdd04d4e]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .dialogContainer .opposite .content[data-v-cdd04d4e]{margin-top:.6rem;padding:.5rem .4rem;background-color:#fff;border-radius:4px;max-width:100%;display:inline-block;font-family:PingFangSC-Regular;font-size:.8rem;color:#333;position:relative}.outContainer .dialogContainer .opposite .content[data-v-cdd04d4e]:before{content:\"\";position:absolute;width:0;height:0;border:.5rem solid transparent;border-bottom-color:#fff;top:-.8rem;left:.4rem;z-index:1}.outContainer .dialogContainer .opposite .content .item[data-v-cdd04d4e]{margin-bottom:1.4rem}.outContainer .dialogContainer .opposite .content .item>p[data-v-cdd04d4e]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .dialogContainer .opposite .content .item .recommend[data-v-cdd04d4e]{margin-top:.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#377ee1}.outContainer .dialogContainer .opposite .content .item[data-v-cdd04d4e]:last-child{margin-bottom:0}.outContainer .dialogContainer .oneself[data-v-cdd04d4e]{margin-bottom:1.4rem;text-align:right}.outContainer .dialogContainer .oneself .userInfo[data-v-cdd04d4e]{height:2rem;overflow:hidden}.outContainer .dialogContainer .oneself .userInfo>img[data-v-cdd04d4e]{width:2rem;height:2rem;float:right;background-color:skyblue;border-radius:4px}.outContainer .dialogContainer .oneself .userInfo .rightContent[data-v-cdd04d4e]{margin-right:2.4rem}.outContainer .dialogContainer .oneself .userInfo .rightContent>div[data-v-cdd04d4e]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .dialogContainer .oneself .userInfo .rightContent>div[data-v-cdd04d4e]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .dialogContainer .oneself .content[data-v-cdd04d4e]{text-align:left;margin-top:.6rem;padding:.5rem .4rem;background-color:#fff;border-radius:4px;max-width:100%;display:inline-block;font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;position:relative}.outContainer .dialogContainer .oneself .content[data-v-cdd04d4e]:before{content:\"\";position:absolute;width:0;height:0;border:.5rem solid transparent;border-bottom-color:#fff;top:-.8rem;right:.4rem;z-index:1}.outContainer .dialogContainer .oneself .content .item[data-v-cdd04d4e]{margin-bottom:1.4rem}.outContainer .dialogContainer .oneself .content .item>p[data-v-cdd04d4e]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .dialogContainer .oneself .content .item .recommend[data-v-cdd04d4e]{margin-top:.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#377ee1}.outContainer .dialogContainer .oneself .content .item[data-v-cdd04d4e]:last-child{margin-bottom:0}.outContainer .bottomToast[data-v-cdd04d4e]{position:absolute;left:0;bottom:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,.3)}.outContainer .bottomToast .toastBody[data-v-cdd04d4e]{width:100%;height:90%;position:absolute;bottom:0;left:0}.outContainer .slide-fade-enter-active[data-v-cdd04d4e]{-webkit-transition:all .3s ease;transition:all .3s ease}.outContainer .slide-fade-leave-active[data-v-cdd04d4e]{-webkit-transition:all .3s cubic-bezier(1,.5,.8,1);transition:all .3s cubic-bezier(1,.5,.8,1)}.outContainer .slide-fade-enter[data-v-cdd04d4e],.outContainer .slide-fade-leave-to[data-v-cdd04d4e]{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);opacity:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _webpageWrap = _interopRequireDefault(__webpack_require__(788));
var _videoPlayer = _interopRequireDefault(__webpack_require__(169));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    MescrollVue: _mescroll.default,
    webpageWrap: _webpageWrap.default,
    videoPlayer: _videoPlayer.default
  },
  data: function data() {
    return {
      webpageUrl: '',
      showWeb: false,
      showVideoPage: false,
      messageList: [],
      messageUniqueList: [],
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        callback: this.pushData,
        htmlNodata: '<p class="upwarp-nodata">-- 到底啦！ --</p>',
        noMoreSize: 5,
        isBounce: false,
        empty: {
          warpId: 'listContainer',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无相关数据' // 提示
        }
      }
    };
  },
  computed: {},
  watch: {},
  created: function created() {},
  mounted: function mounted() {},
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /** 点击推荐回来的内容 */acceptRecommend: function acceptRecommend(url, content) {
      if (url) {
        this.webpageUrl = url;
        if (url.includes('.mp4')) {
          this.showVideoPage = true;
        } else {
          this.showWeb = true;
        }
      } else {
        // this.messageList.push(2)
      }
    },
    /** 时间格式转换 */dateFormat: function dateFormat(timeSpan) {
      return this._Util.dateFormat(timeSpan, 'yyyy.MM.dd hh:mm');
    },
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /** 推入数据 */pushData: function pushData(page) {
      var _this = this;
      this._Util.post(this._Api.POST_CONSULT_CUSTOM_GET_CHAT_HISTORY, {
        userId: this.$route.query.uid || this.$store.state.userInfo.userId,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        data.recordList.forEach(function (val, index) {
          val.content = JSON.parse(val.content);
          if (!_this.messageUniqueList.includes(val.recordId)) {
            _this.messageList.push(val);
            _this.messageUniqueList.push(val.recordId);
          }
        });
        _this.mescroll.endSuccess(data.recordList.length);
      }, function () {
        _this.mescroll.endErr();
      }, this, true);
    },
    /** 聊天记录滚动到最新 */scrollBottom: function scrollBottom() {
      var scroll = this.$refs.mescroll;
      scroll.scrollTop = scroll.scrollHeight;
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(242);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7188c876_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(784);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1992)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7188c876"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7188c876_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7188c876_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_videoPlayer_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1993);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3ff7bea5", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-7188c876]{height:100%}.outContainer>video[data-v-7188c876]{object-fit:contain;max-width:100%;height:100%}.outContainer .poster[data-v-7188c876]{width:100%;height:100%;position:relative}.outContainer .poster img[data-v-7188c876]{width:100%;height:100%;object-fit:cover}.outContainer .poster span[data-v-7188c876]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:3.4rem;height:3.4rem;background-image:url(" + escape(__webpack_require__(1994)) + ");background-repeat:no-repeat;background-size:100%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/video-start.8138297.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

var oldTime = 0;
var duration = 0;
var _default2 = exports.default = {
  props: {
    url: {
      type: String,
      required: true
    },
    poster: [String],
    logInfo: {
      // 需要额外传递的日志信息
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      video: null,
      isPlaying: false,
      timer: null
    };
  },
  mounted: function mounted() {
    this.video = this.$refs.video;
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
    this.timer = null;
  },
  methods: {
    /**
     * 埋点信息记录
     * @param {number} progress 当前时长（秒）
     * @param {number} duration 视频总时长（秒）
     */
    addLog: function addLog(progress, duration) {
      this._Util.sensorsCollect('video_event', _objectSpread(_objectSpread({}, this.logInfo), {}, {
        video_url: this.url,
        video_duration: duration,
        video_progress: progress
      }));
    },
    startPlay: function startPlay() {
      var _this = this;
      if (oldTime === 0) {
        this.addLog(oldTime, parseInt(this.video.duration));
      }
      this.timer = setInterval(function () {
        _this.addLog(oldTime, parseInt(duration));
      }, 60000);
      this.$emit('play');
    },
    pausePlay: function pausePlay() {
      this.addLog(oldTime, parseInt(this.video.duration));
      clearInterval(this.timer);
      this.timer = null;
      this.$emit('pause');
    },
    /**
     * 时长变化回调
     */
    timeupdate: function timeupdate(v) {
      var seconds = parseInt(v.target.currentTime);
      if (seconds !== oldTime) {
        // this.addLog(seconds, parseInt(v.target.duration))
        duration = v.target.duration;
        oldTime = seconds;
      }
    },
    start: function start() {
      this.isPlaying = true;
      this.video.play();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(!_vm.isPlaying)?_c('div',{staticClass:"poster",on:{"click":_vm.start}},[_c('img',{attrs:{"src":_vm.poster ? _vm.poster : (_vm.url + '?vframe/jpg/offset/1'),"alt":""}}),_vm._v(" "),_c('span')]):_vm._e(),_vm._v(" "),_c('video',{directives:[{name:"show",rawName:"v-show",value:(_vm.isPlaying),expression:"isPlaying"}],ref:"video",attrs:{"webkit-playsinline":"true","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","controls":"","controlsList":"nodownload"},on:{"play":_vm.startPlay,"pause":_vm.pausePlay,"timeupdate":_vm.timeupdate}},[_c('source',{attrs:{"src":_vm.url,"type":"video/mp4"}})])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('mescroll-vue',{ref:"mescroll",staticClass:"dialogContainer",attrs:{"id":"listContainer","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},_vm._l((_vm.messageList),function(val,index){return _c('div',{key:index},[(val.messageName==='TextMessage')?_c('div',{staticClass:"opposite"},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":val.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(val.userName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.dateFormat(val.sentTime)))])])]),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((val.content),function(val,index){return _c('div',{key:index,staticClass:"item"},[_c('p',{domProps:{"innerHTML":_vm._s(val.content)}},[_vm._v(_vm._s(val.content))]),_vm._v(" "),_vm._l((val.extra),function(v,i){return (val.extra&&val.extra.length>0)?_c('div',{key:i,staticClass:"recommend",on:{"click":function($event){return _vm.acceptRecommend(v.url, v.name)}}},[_vm._v("\n              · "+_vm._s(v.name)+"\n            ")]):_vm._e()})],2)}),0)]):_c('div',{staticClass:"oneself"},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":val.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(val.userName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.dateFormat(val.sentTime)))])])]),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((val.content),function(val,index){return _c('div',{key:index,staticClass:"item"},[_c('p',{domProps:{"innerHTML":_vm._s(val.content)}}),_vm._v(" "),_vm._l((val.extra),function(v,i){return (val.extra&&val.extra.length>0)?_c('div',{key:i,staticClass:"recommend",on:{"click":function($event){return _vm.acceptRecommend(v.url, v.name)}}},[_vm._v("\n              · "+_vm._s(v.name)+"\n            ")]):_vm._e()})],2)}),0)])])}),0),_vm._v(" "),_c('transition',{attrs:{"name":"slide-fade"}},[(_vm.showWeb)?_c('div',{staticClass:"bottomToast",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showWeb=false;}}},[_c('div',{staticClass:"toastBody"},[(_vm.showWeb)?_c('webpage-wrap',{attrs:{"url":_vm.webpageUrl}}):_vm._e()],1)]):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":"slide-fade"}},[(_vm.showVideoPage)?_c('div',{staticClass:"bottomToast",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showVideoPage=false;}}},[_c('div',{staticClass:"toastBody"},[(_vm.showVideoPage)?_c('video-player',{attrs:{"url":_vm.webpageUrl}}):_vm._e()],1)]):_vm._e()])],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"history",on:{"click":function($event){_vm.showHistoryDetail=true;}}},[_vm._v("历史咨询记录 "),_c('img',{attrs:{"src":__webpack_require__(24),"alt":""}})]),_vm._v(" "),_c('div',{ref:"mescroll",staticClass:"dialogContainer"},_vm._l((_vm.messageList),function(val,index){return _c('div',{key:index},[(val.messageName==='TextMessage')?_c('div',{staticClass:"opposite"},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":val.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(val.userName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.dateFormat(val.sentTime)))])])]),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((val.content),function(val,index){return _c('div',{key:index,staticClass:"item"},[_c('p',{domProps:{"innerHTML":_vm._s(val.content)}},[_vm._v(_vm._s(val.content))]),_vm._v(" "),_vm._l((val.extra),function(v,i){return (val.extra&&val.extra.length>0)?_c('div',{key:i,staticClass:"recommend",on:{"click":function($event){return _vm.acceptRecommend(v.url, v.name)}}},[_vm._v("\n              · "+_vm._s(v.name)+"\n            ")]):_vm._e()})],2)}),0)]):_c('div',{staticClass:"oneself"},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":val.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(val.name))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.dateFormat(val.sentTime)))])])]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(val.content[0].content)}})])])}),0),_vm._v(" "),_c('div',{staticClass:"talkBox"},[(_vm.recommendList&&_vm.recommendList.length>0)?_c('div',{staticClass:"recommendList",on:{"touchmove":function($event){$event.preventDefault();}}},_vm._l((_vm.recommendList),function(val,index){return _c('div',{key:index,staticClass:"recommendItem",domProps:{"innerHTML":_vm._s(_vm.markHtml(val))},on:{"click":function($event){return _vm.sendMessage(val)}}})}),0):_vm._e(),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.message),expression:"message",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],staticClass:"_selectTrue",attrs:{"type":"text"},domProps:{"value":(_vm.message)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.message=$event.target.value.trim()},_vm.getRecommendList],"focus":_vm.scrollBottom,"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"sendBtn",on:{"click":function($event){return _vm.sendMessage('')}}},[_vm._v("发送")])]),_vm._v(" "),_c('mt-popup',{staticClass:"bottomPopup",attrs:{"position":"bottom"},model:{value:(_vm.showWebpage),callback:function ($$v) {_vm.showWebpage=$$v},expression:"showWebpage"}},[_c('div',{staticClass:"popupBody"},[(_vm.showWebpage)?_c('webpage-wrap',{attrs:{"url":_vm.webpageUrl}}):_vm._e()],1)]),_vm._v(" "),_c('mt-popup',{staticClass:"bottomPopup",attrs:{"position":"bottom"},model:{value:(_vm.showVideoPage),callback:function ($$v) {_vm.showVideoPage=$$v},expression:"showVideoPage"}},[_c('div',{staticClass:"popupBody"},[(_vm.showVideoPage)?_c('video-player',{attrs:{"url":_vm.webpageUrl}}):_vm._e()],1)]),_vm._v(" "),_c('mt-popup',{staticClass:"bottomPopup",attrs:{"position":"bottom"},model:{value:(_vm.showHistoryDetail),callback:function ($$v) {_vm.showHistoryDetail=$$v},expression:"showHistoryDetail"}},[_c('div',{staticClass:"popupBody"},[(_vm.showHistoryDetail)?_c('history-detail'):_vm._e()],1)])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(391);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bc2ebb92_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(992);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2342)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-bc2ebb92"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bc2ebb92_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bc2ebb92_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_historyList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2343);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("53ce378e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".border-1px[data-v-bc2ebb92]{position:relative}.border-1px[data-v-bc2ebb92]:before{content:\"\";position:absolute;left:0;top:0;width:200%;border-bottom:2px solid #f2f2f2;color:#f2f2f2;height:200%;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);pointer-events:none;box-sizing:border-box}@media (-webkit-min-device-pixel-ratio:3),screen and (min-device-pixel-ratio:3){.border-1px[data-v-bc2ebb92]:before{width:300%;height:300%;-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}}.outContainer[data-v-bc2ebb92]{background-color:#fff}.outContainer .consultList[data-v-bc2ebb92]{padding-left:.6rem}.outContainer .consultList .item[data-v-bc2ebb92]{height:4.4rem;overflow:hidden;position:relative}.outContainer .consultList .item>img[data-v-bc2ebb92]{float:left;width:2.8rem;height:2.8rem;border-radius:2px;background-color:#f0f8ff;margin-top:.8rem}.outContainer .consultList .item .rightContent[data-v-bc2ebb92]{margin-top:.9rem;margin-left:3.2rem;position:relative}.outContainer .consultList .item .rightContent .time[data-v-bc2ebb92]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666;position:absolute;top:0;right:.6rem}.outContainer .consultList .item .rightContent .name[data-v-bc2ebb92]{font-family:PingFangSC-Regular;font-size:.9rem;color:#333}.outContainer .consultList .item .rightContent .content[data-v-bc2ebb92]{font-family:PingFangSC-Regular;font-size:.8rem;color:#666;text-overflow:ellipsis;overflow:hidden;width:100%;white-space:nowrap}.outContainer .consultList .item .spot[data-v-bc2ebb92]{width:.6rem;height:.6rem;position:absolute;left:2.5rem;top:.5rem;background-color:red;border-radius:50%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      currentChat: 1,
      chatList: [],
      newMessageList: [],
      timeArr: []
    };
  },
  computed: {},
  watch: {},
  mounted: function mounted() {
    this.getConsultList();
  },
  methods: {
    /** 获取聊天用户列表 */getConsultList: function getConsultList() {
      this._Util.post(this._Api.POST_CONSULT_GET_USER_LIST, {}, function (data) {
        console.log(data);
        // let _data = [];
        // data.forEach((val,index) => {
        //   _data.push({
        //     msg: [],
        //     unread: 0,
        //     ...val
        //   })
        // })
        // this.chatList = _data;
      }, function () {}, this);
    },
    /** 处理消息时间 */getDateDiff: function getDateDiff(dateTimeStamp) {
      var minute = 1000 * 60;
      var hour = minute * 60;
      var day = hour * 24;
      // const halfamonth = day * 15
      var month = day * 30;
      var now = new Date().getTime();
      var diffValue = now - dateTimeStamp;
      if (diffValue < 0) {
        return '刚刚';
      }
      var monthC = diffValue / month;
      var weekC = diffValue / (7 * day);
      var dayC = diffValue / day;
      var hourC = diffValue / hour;
      var minC = diffValue / minute;
      var result = '';
      if (monthC >= 1) {
        result = '' + parseInt(monthC) + '月前';
      } else if (weekC >= 1) {
        result = '' + parseInt(weekC) + '周前';
      } else if (dayC >= 1) {
        result = '' + parseInt(dayC) + '天前';
      } else if (hourC >= 1) {
        result = '' + parseInt(hourC) + '小时前';
      } else if (minC >= 1) {
        result = '' + parseInt(minC) + '分钟前';
      } else {
        result = '刚刚';
      }
      return result;
    },
    /** 进入对话框 */goDetail: function goDetail(uid) {
      this.$router.push({
        name: 'equipConsultDetail',
        query: {
          uid: uid
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"consultList"},_vm._l((_vm.chatList),function(v,i){return _c('div',{key:i,staticClass:"item border-1px",on:{"click":function($event){return _vm.goDetail(v.buyer_uid)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(v.unread>0),expression:"v.unread>0"}],staticClass:"spot"}),_vm._v(" "),_c('img',{attrs:{"src":v.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":"用户头像"}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm.timeArr[i]))]),_vm._v(" "),(v.uname||v.buyer_uid)?_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.uname || '用户_' + (+v.buyer_uid.toString().slice(0,4))))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.newMessageList[i]))])])])}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(392);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a397710a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(993);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2344)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a397710a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a397710a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a397710a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultIndex_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2345);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4f40712e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      chatList: [],
      appkey: '',
      token: ''
    };
  },
  created: function created() {
    if (window.location.href.indexOf('https://wx') != -1) {
      // 生产
      this.appkey = 'e5t4ouvpeadqa';
    } else {
      // 测试
      this.appkey = '0vnjpoad0ckgz';
    }
  },
  mounted: function mounted() {
    this.getConsultList();
    this.getToken();
  },
  methods: {
    /** 获取聊天用户列表 */getConsultList: function getConsultList() {
      var _this = this;
      this._Util.post(this._Api.POST_CONSULT_GET_USER_LIST, {}, function (data) {
        // let _data = [];
        // data.forEach((val, index) => {
        //   _data.push({
        //     msg: [],
        //     unread: 0,
        //     ...val
        //   });
        // });
        // this.chatList = _data;
        _this.$store.commit('equipConsult/setChatList', data);
      }, function () {}, this);
    },
    /** 获取未读消息 */getUnreadMsg: function getUnreadMsg(targetId) {
      var that = this;
      var conversationType = RongIMLib.ConversationType.PRIVATE;
      RongIMLib.RongIMClient.getInstance().getUnreadCount(conversationType, targetId, {
        onSuccess: function onSuccess(count) {
          // count => 指定会话的总未读数。
          that.$store.commit('equipConsult/setUnread', {
            userId: targetId,
            unread: count
          });
        },
        onError: function onError() {
          // error => 获取指定会话未读数错误码。
        }
      });
    },
    /** 获取聊天室信息 */getToken: function getToken() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CONSULT_TOKEN, {}, function (data) {
        _this2.token = data.token;
        _this2.initRongCloud();
      }, function () {}, this);
    },
    /** 初始化融云 */initRongCloud: function initRongCloud() {
      var that = this;
      RongIMLib.RongIMClient.init(that.appkey);
      // 连接状态监听器
      RongIMClient.setConnectionStatusListener({
        onChanged: function onChanged(status) {
          switch (status) {
            case RongIMLib.ConnectionStatus.CONNECTED:
              console.log('链接成功');
              break;
            case RongIMLib.ConnectionStatus.CONNECTING:
              console.log('正在链接');
              break;
            case RongIMLib.ConnectionStatus.DISCONNECTED:
              console.log('断开连接');
              break;
            case RongIMLib.ConnectionStatus.KICKED_OFFLINE_BY_OTHER_CLIENT:
              console.log('其他设备登录');
              break;
            case RongIMLib.ConnectionStatus.DOMAIN_INCORRECT:
              console.log('域名不正确');
              break;
            case RongIMLib.ConnectionStatus.NETWORK_UNAVAILABLE:
              console.log('网络不可用');
              break;
          }
        }
      });
      // 消息监听器
      RongIMClient.setOnReceiveMessageListener({
        // 接收到的消息
        onReceived: function onReceived(message) {
          var _message = message.content;
          _message.content = JSON.parse(message.content.content);
          _message.sentTime = message.sentTime;
          that.getUnreadMsg(_message.user.userId);
          that.$store.commit('equipConsult/addMsg', _message);

          // let _dataArr = that.chatList;
          // _dataArr.forEach((val, index) => {
          //   if(val.buyer_uid == _message.user.userId) {
          //     val.msg.push(_message);
          //   }
          // })

          // that.chatList = _dataArr;
        }
      });
      // 连接融云
      RongIMClient.connect(that.token, {
        onSuccess: function onSuccess(userId) {
          console.log('Connect successfully.' + userId);
        },
        onTokenIncorrect: function onTokenIncorrect() {
          console.log('token无效');
        },
        onError: function onError(errorCode) {
          var info = '';
          switch (errorCode) {
            case RongIMLib.ErrorCode.TIMEOUT:
              info = '超时';
              break;
            case RongIMLib.ConnectionState.UNACCEPTABLE_PAROTOCOL_VERSION:
              info = '不可接受的协议版本';
              break;
            case RongIMLib.ConnectionState.IDENTIFIER_REJECTED:
              info = 'appkey不正确';
              break;
            case RongIMLib.ConnectionState.SERVER_UNAVAILABLE:
              info = '服务器不可用';
              break;
          }
          console.log(info);
          console.log(errorCode);
        }
      });
      // 重新连接
      var callback = {
        onSuccess: function onSuccess(userId) {
          console.log('Reconnect successfully.' + userId);
        },
        onTokenIncorrect: function onTokenIncorrect() {
          console.log('token无效');
        },
        onError: function onError(errorCode) {
          console.log(errorCode);
        }
      };
      var config = {
        // 默认 false, true 启用自动重连，启用则为必选参数
        auto: true,
        // 重试频率 [100, 1000, 3000, 6000, 10000, 18000] 单位为毫秒，可选
        rate: [100, 1000, 3000, 6000, 10000]
      };
      RongIMClient.reconnect(callback, config);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('router-view',{staticStyle:{"height":"100%"}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(393);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e7a351b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(994);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2346)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6e7a351b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e7a351b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e7a351b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2347);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("46f70f46", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".border-1px[data-v-6e7a351b]{position:relative}.border-1px[data-v-6e7a351b]:before{content:\"\";position:absolute;left:0;top:0;width:200%;border-bottom:2px solid #f2f2f2;color:#f2f2f2;height:200%;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);pointer-events:none;box-sizing:border-box}@media (-webkit-min-device-pixel-ratio:3),screen and (min-device-pixel-ratio:3){.border-1px[data-v-6e7a351b]:before{width:300%;height:300%;-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}}.outContainer[data-v-6e7a351b]{background-color:#fff}.outContainer .consultList[data-v-6e7a351b]{padding-left:.6rem}.outContainer .consultList .item[data-v-6e7a351b]{height:4.4rem;overflow:hidden;position:relative}.outContainer .consultList .item>img[data-v-6e7a351b]{float:left;width:2.8rem;height:2.8rem;border-radius:2px;background-color:#f0f8ff;margin-top:.8rem}.outContainer .consultList .item .rightContent[data-v-6e7a351b]{margin-top:.9rem;margin-left:3.2rem;position:relative}.outContainer .consultList .item .rightContent .time[data-v-6e7a351b]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666;position:absolute;top:0;right:.6rem}.outContainer .consultList .item .rightContent .name[data-v-6e7a351b]{font-family:PingFangSC-Regular;font-size:.9rem;color:#333}.outContainer .consultList .item .rightContent .content[data-v-6e7a351b]{font-family:PingFangSC-Regular;font-size:.8rem;color:#666;text-overflow:ellipsis;overflow:hidden;width:100%;white-space:nowrap}.outContainer .consultList .item .spot[data-v-6e7a351b]{width:.6rem;height:.6rem;position:absolute;left:2.5rem;top:.5rem;background-color:red;border-radius:50%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      currentChat: 1,
      chatList: [],
      newMessageList: [],
      timeArr: []
    };
  },
  computed: {
    _chatList: function _chatList() {
      return this.$store.state.equipConsult.chatList;
    }
  },
  watch: {
    _chatList: {
      handler: function handler(val, oldVal) {
        var _this = this;
        this.chatList = val;
        var _newMessageList = [];
        var _timeArr = [];
        val.forEach(function (v) {
          var _msg = v.msg;
          if (_msg.length === 0) {
            _newMessageList.push('');
            _timeArr.push('');
            return;
          }
          var lastMsg = _msg[_msg.length - 1].content ? _msg[_msg.length - 1].content[0].content : '暂无新消息';
          _timeArr.push(_this.getDateDiff(_msg[_msg.length - 1].sentTime));
          _newMessageList.push(lastMsg);
        });
        this.newMessageList = _newMessageList;
        this.timeArr = _timeArr;
      },
      deep: true
    }
  },
  mounted: function mounted() {
    var _this2 = this;
    this.chatList = this.$store.state.equipConsult.chatList;
    var _newMessageList = [];
    var _timeArr = [];
    this.chatList.forEach(function (v) {
      var _msg = v.msg;
      if (_msg.length === 0) {
        _newMessageList.push('');
        _timeArr.push('');
        return;
      }
      var lastMsg = _msg[_msg.length - 1].content ? _msg[_msg.length - 1].content[0].content : '暂无新消息';
      _newMessageList.push(lastMsg);
      _timeArr.push(_this2.getDateDiff(_msg[_msg.length - 1].sentTime));
    });
    this.newMessageList = _newMessageList;
    this.timeArr = _timeArr;
  },
  methods: {
    /** 处理消息时间 */getDateDiff: function getDateDiff(dateTimeStamp) {
      var minute = 1000 * 60;
      var hour = minute * 60;
      var day = hour * 24;
      // const halfamonth = day * 15
      var month = day * 30;
      var now = new Date().getTime();
      var diffValue = now - dateTimeStamp;
      if (diffValue < 0) {
        return '刚刚';
      }
      var monthC = diffValue / month;
      var weekC = diffValue / (7 * day);
      var dayC = diffValue / day;
      var hourC = diffValue / hour;
      var minC = diffValue / minute;
      var result = '';
      if (monthC >= 1) {
        result = '' + parseInt(monthC) + '月前';
      } else if (weekC >= 1) {
        result = '' + parseInt(weekC) + '周前';
      } else if (dayC >= 1) {
        result = '' + parseInt(dayC) + '天前';
      } else if (hourC >= 1) {
        result = '' + parseInt(hourC) + '小时前';
      } else if (minC >= 1) {
        result = '' + parseInt(minC) + '分钟前';
      } else {
        result = '刚刚';
      }
      return result;
    },
    /** 清除未读消息 */clearUnread: function clearUnread(uid) {
      this.$store.commit('equipConsult/setUnread', {
        userId: uid,
        unread: 0
      });
      var conversationType = RongIMLib.ConversationType.PRIVATE;
      RongIMClient.getInstance().clearUnreadCount(conversationType, uid, {
        onSuccess: function onSuccess() {
          // 清除未读消息成功。
        },
        onError: function onError() {
          // error => 清除未读消息数错误码。
        }
      });
    },
    /** 进入对话框 */goDetail: function goDetail(uid, type) {
      if (type === 1) {
        this.clearUnread(uid);
        this.$router.push({
          name: 'equipConsultDetail',
          query: {
            uid: uid
          }
        });
      } else {
        this.$router.push({
          name: 'equipHistoryDetail',
          query: {
            uid: uid
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"consultList"},_vm._l((_vm.chatList),function(v,i){return _c('div',{key:i,staticClass:"item border-1px",on:{"click":function($event){return _vm.goDetail(v.buyer_uid, v.type)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(v.unread>0),expression:"v.unread>0"}],staticClass:"spot"}),_vm._v(" "),_c('img',{attrs:{"src":v.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":"用户头像"}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm.timeArr[i]))]),_vm._v(" "),(v.uname||v.buyer_uid)?_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.uname || '用户_' + (+v.buyer_uid.toString().slice(0,4))))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.newMessageList[i]))])])])}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(394);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_904bc4b8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(995);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2348)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-904bc4b8"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_904bc4b8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_904bc4b8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_consultDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2349);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6ffbfc86", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-904bc4b8]{height:100%;overflow-x:hidden;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:relative}.outContainer .history[data-v-904bc4b8]{height:1.8rem;line-height:1.8rem;background:hsla(0,0%,100%,.85);position:absolute;top:0;left:0;width:100%;z-index:10;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;padding-left:.6rem}.outContainer .history>img[data-v-904bc4b8]{position:absolute;width:.3rem;height:.5rem;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .dialogContainer[data-v-904bc4b8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f2f2f2;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:.8rem .6rem}.outContainer .dialogContainer .opposite[data-v-904bc4b8]{margin-bottom:1.4rem}.outContainer .dialogContainer .opposite .userInfo[data-v-904bc4b8]{height:2rem;overflow:hidden}.outContainer .dialogContainer .opposite .userInfo>img[data-v-904bc4b8]{width:2rem;height:2rem;float:left;background-color:skyblue;border-radius:4px}.outContainer .dialogContainer .opposite .userInfo .rightContent[data-v-904bc4b8]{margin-left:2.4rem}.outContainer .dialogContainer .opposite .userInfo .rightContent>div[data-v-904bc4b8]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .dialogContainer .opposite .userInfo .rightContent>div[data-v-904bc4b8]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .dialogContainer .opposite .content[data-v-904bc4b8]{margin-top:.6rem;padding:.5rem .4rem;background-color:#fff;border-radius:4px;max-width:100%;display:inline-block;font-family:PingFangSC-Regular;font-size:.8rem;color:#333;position:relative}.outContainer .dialogContainer .opposite .content[data-v-904bc4b8]:before{content:\"\";position:absolute;width:0;height:0;border:.5rem solid transparent;border-bottom-color:#fff;top:-.8rem;left:.4rem;z-index:1}.outContainer .dialogContainer .opposite .content .item[data-v-904bc4b8]{margin-bottom:1.4rem}.outContainer .dialogContainer .opposite .content .item>p[data-v-904bc4b8]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .dialogContainer .opposite .content .item .recommend[data-v-904bc4b8]{margin-top:.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#377ee1}.outContainer .dialogContainer .opposite .content .item[data-v-904bc4b8]:last-child{margin-bottom:0}.outContainer .dialogContainer .oneself[data-v-904bc4b8]{margin-bottom:1.4rem;text-align:right}.outContainer .dialogContainer .oneself .userInfo[data-v-904bc4b8]{height:2rem;overflow:hidden}.outContainer .dialogContainer .oneself .userInfo>img[data-v-904bc4b8]{width:2rem;height:2rem;float:right;background-color:skyblue;border-radius:4px}.outContainer .dialogContainer .oneself .userInfo .rightContent[data-v-904bc4b8]{margin-right:2.4rem}.outContainer .dialogContainer .oneself .userInfo .rightContent>div[data-v-904bc4b8]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .dialogContainer .oneself .userInfo .rightContent>div[data-v-904bc4b8]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .dialogContainer .oneself .content[data-v-904bc4b8]{margin-top:.6rem;padding:.5rem .4rem;background-color:#377ee1;border-radius:4px;max-width:100%;display:inline-block;font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;position:relative}.outContainer .dialogContainer .oneself .content[data-v-904bc4b8]:before{content:\"\";position:absolute;width:0;height:0;border:.5rem solid transparent;border-bottom-color:#377ee1;top:-.8rem;right:.4rem;z-index:1}.outContainer .talkBox[data-v-904bc4b8]{min-height:2.8rem;background-color:#fff;box-shadow:0 0 10px 0 rgba(167,188,218,.56);position:relative}.outContainer .talkBox>input[data-v-904bc4b8]{width:13.45rem;height:1.8rem;background-color:#f1f1f1;border:1px solid #d1d1e0;border-radius:2px;position:absolute;bottom:.5rem;left:.6rem;padding-left:.5rem;padding-right:.5rem}.outContainer .talkBox .sendBtn[data-v-904bc4b8]{position:absolute;bottom:.5rem;right:.6rem;width:3.3rem;height:1.8rem;line-height:1.8rem;background-color:#377ee1;border-radius:2px;text-align:center;font-family:PingFangSC-Regular;font-size:.8rem;color:#fff}.outContainer .bottomPopup[data-v-904bc4b8]{width:100%;height:90%}.outContainer .bottomPopup .popupBody[data-v-904bc4b8]{width:100%;height:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _historyDetail = _interopRequireDefault(__webpack_require__(821));
var _webpageWrap = _interopRequireDefault(__webpack_require__(788));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import MescrollVue from 'mescroll.js/mescroll.vue'
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  data: function data() {
    return {
      webpageUrl: '',
      showWebpage: false,
      showHistoryDetail: false,
      messageList: [],
      // mescroll: null,
      // mescrollDown: {
      //   callback: this.pushData,
      //   auto: false,
      //   offset: 48
      // },
      dataList: [],
      appkey: '',
      token: '',
      message: '',
      userId: ''
    };
  },
  computed: {},
  created: function created() {
    if (window.location.href.indexOf('https://wx') != -1) {
      // 生产
      this.appkey = 'e5t4ouvpeadqa';
    } else {
      // 测试
      this.appkey = '0vnjpoad0ckgz';
    }
    this.userId = this.$route.query.uid;
  },
  mounted: function mounted() {
    // this.getToken();
    var _uid = this.$route.query.uid;
    var _chatList = this.$store.state.equipConsult.chatList;
    for (var i = 0, l = _chatList.length; i < l; i++) {
      if (_chatList[i].buyer_uid == _uid) {
        this.messageList = _chatList[i].msg;
      }
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.clearUnread(this.userId);
  },
  methods: {
    openHistory: function openHistory() {
      this.webpageUrl = location.origin + '/v2/equip/historyDetail?uid=' + this.$store.state.userInfo.userId;
      this.showWebpage = true;
    },
    /** 清除未读消息 */clearUnread: function clearUnread(uid) {
      this.$store.commit('equipConsult/setUnread', {
        userId: uid,
        unread: 0
      });
      var conversationType = RongIMLib.ConversationType.PRIVATE;
      RongIMClient.getInstance().clearUnreadCount(conversationType, uid, {
        onSuccess: function onSuccess() {
          // 清除未读消息成功。
        },
        onError: function onError() {
          // error => 清除未读消息数错误码。
        }
      });
    },
    /** 发送消息 */
    sendMessage: (0, _throttleDebounce.throttle)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this = this;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (this.message.trim()) {
              _context.next = 1;
              break;
            }
            return _context.abrupt("return");
          case 1:
            this._Util.post(this._Api.POST_CONSULT_STAFF_SEND_MESSAGE, {
              userId: this.$route.query.uid,
              message: this.message
            }, function (data) {
              var msgObj = {
                headimgurl: _this.$store.state.userInfo.headImgUrl || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
                name: _this.$store.getters.getUserName || '小轨',
                sentTime: Date.now(),
                content: [{
                  content: _this.message
                }]
              };
              if (_this.messageList.length > 50) {
                _this.messageList.shift();
              }
              _this.messageList.push(msgObj);
              _this.message = '';
            }, function () {}, this, true);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /** 点击推荐回来的内容 */acceptRecommend: function acceptRecommend(url, content) {
      if (url) {
        this.webpageUrl = url;
        this.showWebpage = true;
      } else {
        // this.messageList.push(2)
      }
    },
    /** 时间格式转换 */dateFormat: function dateFormat(timeSpan) {
      return this._Util.dateFormat(timeSpan, 'yyyy.MM.dd hh:mm');
    },
    /** 获取聊天室信息 */getToken: function getToken() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CONSULT_TOKEN, {}, function (data) {
        _this2.token = data.token;
        _this2.initRongCloud();
      }, function () {}, this);
    },
    /** 初始化融云 */initRongCloud: function initRongCloud() {
      var that = this;
      RongIMLib.RongIMClient.init(that.appkey);
      // 连接状态监听器
      RongIMClient.setConnectionStatusListener({
        onChanged: function onChanged(status) {
          switch (status) {
            case RongIMLib.ConnectionStatus.CONNECTED:
              console.log('链接成功');
              break;
            case RongIMLib.ConnectionStatus.CONNECTING:
              console.log('正在链接');
              break;
            case RongIMLib.ConnectionStatus.DISCONNECTED:
              console.log('断开连接');
              break;
            case RongIMLib.ConnectionStatus.KICKED_OFFLINE_BY_OTHER_CLIENT:
              console.log('其他设备登录');
              break;
            case RongIMLib.ConnectionStatus.DOMAIN_INCORRECT:
              console.log('域名不正确');
              break;
            case RongIMLib.ConnectionStatus.NETWORK_UNAVAILABLE:
              console.log('网络不可用');
              break;
          }
        }
      });
      // 消息监听器
      RongIMClient.setOnReceiveMessageListener({
        // 接收到的消息
        onReceived: function onReceived(message) {
          console.log(message.content.content);
          var _message = message.content;
          _message.content = JSON.parse(message.content.content);
          _message.sentTime = message.sentTime;
          that.messageList.push(_message);
        }
      });
      // 连接融云
      RongIMClient.connect(that.token, {
        onSuccess: function onSuccess(userId) {
          console.log('Connect successfully.' + userId);
        },
        onTokenIncorrect: function onTokenIncorrect() {
          console.log('token无效');
        },
        onError: function onError(errorCode) {
          var info = '';
          switch (errorCode) {
            case RongIMLib.ErrorCode.TIMEOUT:
              info = '超时';
              break;
            case RongIMLib.ConnectionState.UNACCEPTABLE_PAROTOCOL_VERSION:
              info = '不可接受的协议版本';
              break;
            case RongIMLib.ConnectionState.IDENTIFIER_REJECTED:
              info = 'appkey不正确';
              break;
            case RongIMLib.ConnectionState.SERVER_UNAVAILABLE:
              info = '服务器不可用';
              break;
          }
          console.log(info);
          console.log(errorCode);
        }
      });
    },
    // mescrollInit(mescroll) {
    //   this.mescroll = mescroll
    // },
    /** 推入数据 */
    pushData: function pushData() {
      var _this3 = this;
      setTimeout(function () {
        _this3.messageList.unshift('0000');
        _this3.mescroll.endSuccess(1);
      }, 1500);
    },
    /** 聊天记录滚动到最新 */scrollBottom: function scrollBottom() {
      var scroll = this.$refs.mescroll;
      scroll.scrollTop = scroll.scrollHeight;
    }
  },
  watch: {
    messageList: function messageList() {
      var _this4 = this;
      this.$nextTick(function () {
        _this4.scrollBottom();
      });
    }
  },
  components: {
    // MescrollVue,
    webpageWrap: _webpageWrap.default,
    historyDetail: _historyDetail.default
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"history",on:{"click":function($event){_vm.showHistoryDetail=true;}}},[_vm._v("历史咨询记录 "),_c('img',{attrs:{"src":__webpack_require__(24),"alt":""}})]),_vm._v(" "),_c('div',{ref:"mescroll",staticClass:"dialogContainer"},_vm._l((_vm.messageList),function(val,index){return _c('div',{key:index},[(val.messageName==='TextMessage')?_c('div',{staticClass:"opposite"},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":val.user.portraitUri,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(val.user.name))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.dateFormat(val.sentTime)))])])]),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((val.content),function(val,index){return _c('div',{key:index,staticClass:"item"},[_c('p',[_vm._v(_vm._s(val.content))]),_vm._v(" "),_vm._l((val.extra),function(v,i){return (val.extra&&val.extra.length>0)?_c('div',{key:i,staticClass:"recommend",on:{"click":function($event){return _vm.acceptRecommend(v.url, v.name)}}},[_vm._v("\n              · "+_vm._s(v.name)+"\n            ")]):_vm._e()})],2)}),0)]):_c('div',{staticClass:"oneself"},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":val.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(val.name))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.dateFormat(val.sentTime)))])])]),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._v("\n          "+_vm._s(val.content[0].content)+"\n        ")])])])}),0),_vm._v(" "),_c('div',{staticClass:"talkBox"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.message),expression:"message",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],staticClass:"_selectTrue",attrs:{"type":"text"},domProps:{"value":(_vm.message)},on:{"focus":_vm.scrollBottom,"input":function($event){if($event.target.composing){ return; }_vm.message=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"sendBtn",on:{"click":_vm.sendMessage}},[_vm._v("发送")])]),_vm._v(" "),_c('mt-popup',{staticClass:"bottomPopup",attrs:{"position":"bottom"},model:{value:(_vm.showWebpage),callback:function ($$v) {_vm.showWebpage=$$v},expression:"showWebpage"}},[_c('div',{staticClass:"popupBody"},[(_vm.showWebpage)?_c('webpage-wrap',{attrs:{"url":_vm.webpageUrl}}):_vm._e()],1)]),_vm._v(" "),_c('mt-popup',{staticClass:"bottomPopup",attrs:{"position":"bottom"},model:{value:(_vm.showHistoryDetail),callback:function ($$v) {_vm.showHistoryDetail=$$v},expression:"showHistoryDetail"}},[_c('div',{staticClass:"popupBody"},[(_vm.showHistoryDetail)?_c('history-detail'):_vm._e()],1)])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(395);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2fc75583_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(996);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2350)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2fc75583"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2fc75583_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2fc75583_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_posterPage_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2351);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e88ea192", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-2fc75583]{background-color:#f2f2f2}.outContainer .shareMAsk[data-v-2fc75583]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.outContainer .shareMAsk .shareTips[data-v-2fc75583]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outContainer .shareMAsk .shareTips>p[data-v-2fc75583]:first-of-type{margin-top:.85rem}.outContainer .shareMAsk .shareTips>p[data-v-2fc75583]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.outContainer .main[data-v-2fc75583]{background-color:#fff;padding-bottom:1rem}.outContainer .main .title[data-v-2fc75583]{font-family:PingFangSC-Semibold;font-size:1rem;color:#333;padding:1rem 1rem 1.2rem}.outContainer .main .poster[data-v-2fc75583]{text-align:center}.outContainer .main .poster>img[data-v-2fc75583]{width:15rem;height:19rem;background-color:#f0f8ff;border-radius:4px}.outContainer .main .shareBtn[data-v-2fc75583]{width:12.75rem;height:2.2rem;padding-top:.45rem;padding-bottom:.45rem;background-color:#2b82f7;border-radius:1.2rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#fff;text-align:center;margin:1.8rem auto 0}.outContainer .main .shareBtn>img[data-v-2fc75583]{width:1rem;height:1rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.25rem}.outContainer .tips[data-v-2fc75583]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;padding:.6rem .6rem 2rem;background-color:#f2f2f2}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      activityDetail: {},
      showShareBox: false
    };
  },
  mounted: function mounted() {
    this.getActivityDetail();
  },
  methods: {
    // 分享图片到朋友圈
    sharePics: function sharePics() {
      var that = this;
      var wx = api.require('wx');
      api.download({
        url: that.activityDetail.img,
        savePath: 'fs://poster' + that.$route.query.posterId + '.jpg',
        report: true,
        cache: false,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          // 下载成功
          wx.isInstalled(function (ret, err) {
            if (ret.installed) {
              wx.shareImage({
                apiKey: '',
                scene: 'timeline',
                contentUrl: 'fs://poster' + that.$route.query.posterId + '.jpg'
              }, function (ret, err) {
                if (ret.status) {
                  that.recordShare();
                  (0, _mintUi.Toast)('分享成功');
                } else {
                  (0, _mintUi.Toast)('分享失败');
                }
              });
            } else {
              (0, _mintUi.Toast)('当前设备未安装微信客户端');
            }
          });
        } else if (ret.state == 2) {
          (0, _mintUi.Toast)('分享海报下载失败');
          // alert(JSON.stringify(ret));
        }
      });
    },
    /** 记录分享行为 */recordShare: function recordShare() {
      this._Util.post(this._Api.POST_ACTIVITY_SHARE_RECORD, {
        id: this.$route.query.posterId
      }, function (data) {}, function () {}, this, true);
    },
    /** 分享给好友 */shareFriends: function shareFriends() {
      var that = this;
      if (that._Util.isApp()) {
        // api.sendEvent({
        //   name: "webShare",
        //   extra: {
        //     shareItem: {
        //       type: 'timeline',
        //       title: that.activityDetail.title || '卡修宝典' ,
        //       desc: '',
        //       link:
        //         location.origin +
        //         "/v2/posterPage/index?posterId=" +
        //         that.$route.query.posterId,
        //       imgLink: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
        //     }
        //   }
        // });
        that.sharePics();
      } else {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '请打开卡修宝典App分享海报',
          closeOnClickModal: true,
          confirmButtonText: '立即下载卡修宝典App'
        }).then(function (action) {
          if (action === 'confirm') {
            location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb';
          }
        });
      }
    },
    /** 获取活动详情 */getActivityDetail: function getActivityDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_ACTIVITY_SHARE_DETAILS, {
        id: this.$route.query.posterId
      }, function (data) {
        if (!data.img) {
          location.replace(location.origin + '/v2/community/index');
        }
        _this.activityDetail = data;
        _this.share();
      }, function () {}, this);
    },
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.activityDetail.title || '卡修宝典',
                  desc: '',
                  link: location.origin + '/v2/posterPage/index?posterId=' + that.$route.query.posterId,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.activityDetail.title || '卡修宝典',
              desc: '',
              link: location.origin + '/v2/posterPage/index?posterId=' + that.$route.query.posterId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.activityDetail.title || '卡修宝典',
              desc: '',
              link: location.origin + '/v2/posterPage/index?posterId=' + that.$route.query.posterId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.activityDetail.title || '卡修宝典',
              desc: '',
              link: location.origin + '/v2/posterPage/index?posterId=' + that.$route.query.posterId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_vm._m(0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main"},[(_vm.activityDetail.title)?_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.activityDetail.title))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"poster"},[_c('img',{attrs:{"src":_vm.activityDetail.img,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"shareBtn",on:{"click":_vm.shareFriends}},[_c('img',{attrs:{"src":__webpack_require__(2352),"alt":""}}),_vm._v("分享到朋友圈")])]),_vm._v(" "),(_vm.activityDetail.text)?_c('div',{staticClass:"tips"},[_c('p',{domProps:{"innerHTML":_vm._s(_vm.activityDetail.text)}})]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信朋友圈")])])}]
module.exports = __webpack_require__.p + "static/img/朋友圈.2413020.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(396);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69f75332_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(997);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2353)
  __webpack_require__(2355)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-69f75332"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69f75332_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69f75332_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_answerAndAward_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2354);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("be3ca92c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "._htmlContent img{max-width:100%}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2356);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("36f1920b", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-69f75332]{background-color:#f5f5f9;height:auto!important}.outContainer .maskLayer[data-v-69f75332]{position:fixed;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.outContainer .maskLayer>.strategyContainer[data-v-69f75332]{background-color:#fff;position:absolute;width:80%;top:35%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:4px}.outContainer .maskLayer>.strategyContainer>.title[data-v-69f75332]{width:100%;text-align:center;padding-top:16px;padding-bottom:16px}.outContainer .maskLayer>.strategyContainer>.title>p[data-v-69f75332]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .maskLayer>.strategyContainer>.content[data-v-69f75332]{padding-bottom:34px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px;text-align:left;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;line-height:18px}.outContainer .maskLayer>.strategyContainer>.bottom[data-v-69f75332]{overflow:hidden}.outContainer .maskLayer>.strategyContainer>.bottom>div[data-v-69f75332]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#377ee1;width:100%;float:left;position:relative}.outContainer .banner[data-v-69f75332]{position:relative}.outContainer .banner>img[data-v-69f75332]{height:7.3rem;width:100%}.outContainer .banner .rules[data-v-69f75332]{position:absolute;top:.4rem;left:.6rem;width:3.4rem;padding-top:.15rem;padding-bottom:.15rem;background-color:rgba(0,0,0,.4);border-radius:.6rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#fff;text-align:center}.outContainer .materialContainer[data-v-69f75332]{margin-left:.25rem;margin-right:.25rem;background-color:#fff;margin-top:1.75rem;position:relative;border:2px solid #253092;border-radius:.2rem}.outContainer .materialContainer .title[data-v-69f75332]{height:1.45rem;position:absolute;left:50%;top:-.75rem;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.outContainer .materialContainer>._htmlContent[data-v-69f75332]{padding:1.675rem .6rem 1rem;border-radius:.2rem}.outContainer .materialContainer>._htmlContent>p[data-v-69f75332],.outContainer .materialContainer>._htmlContent[data-v-69f75332]{font-family:PingFangSC-Regular;font-size:.9rem;color:#333;line-height:1.45rem}.outContainer .materialContainer>._htmlContent>.videoContainer[data-v-69f75332]{width:17.05rem;height:7.5rem;background-color:#f2f2f2;margin:.5rem auto 0;overflow:hidden;position:relative}.outContainer .materialContainer>._htmlContent>.videoContainer>.imgContainer[data-v-69f75332]{width:100%;height:100%;position:relative}.outContainer .materialContainer>._htmlContent>.videoContainer>.imgContainer>img[data-v-69f75332]:first-of-type{object-fit:contain;width:100%;height:100%}.outContainer .materialContainer>._htmlContent>.videoContainer>.imgContainer>img[data-v-69f75332]:nth-of-type(2){position:absolute;width:2.5rem;height:2.5rem;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer .materialContainer>._htmlContent>.videoContainer .preplay[data-v-69f75332]{position:absolute;top:0;right:-1000px;width:1px;height:1px}.outContainer .materialContainer>._htmlContent>.videoContainer .startPlay[data-v-69f75332]{position:absolute;top:0;right:0;width:100%;height:100%}.outContainer .materialContainer .item[data-v-69f75332]{font-size:0;border-radius:.2rem;padding:1.675rem 0 1rem;overflow-x:hidden;background-color:#fff;margin-top:1px}.outContainer .materialContainer .item .userInfo[data-v-69f75332]{padding:0 .35rem .4rem;position:relative}.outContainer .materialContainer .item .userInfo>img[data-v-69f75332]{width:2rem;height:2rem;border-radius:50%;float:left;pointer-events:none}.outContainer .materialContainer .item .userInfo>.crown[data-v-69f75332]{display:inline-block;width:.6rem;height:.6rem;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ");position:absolute;left:1.8rem;top:1.35rem}.outContainer .materialContainer .item .userInfo .rightContent[data-v-69f75332]{margin-left:2.4rem;line-height:1.5}.outContainer .materialContainer .item .userInfo .rightContent .uname>span[data-v-69f75332],.outContainer .materialContainer .item .userInfo .rightContent .uname[data-v-69f75332]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .materialContainer .item .userInfo .rightContent .uname .medal[data-v-69f75332]{height:.925rem;margin-right:.6rem;position:relative;left:0;top:1px}.outContainer .materialContainer .item .userInfo .rightContent .uarea[data-v-69f75332]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.outContainer .materialContainer .item .userInfo .rightContent .uarea>span[data-v-69f75332]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .materialContainer .item .content[data-v-69f75332]{padding-left:2.75rem;padding-right:.6rem;padding-bottom:.4rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#333;white-space:pre-wrap;line-height:1.5}.outContainer .materialContainer .item .singleImg[data-v-69f75332]{padding-left:2.75rem;padding-bottom:.2rem}.outContainer .materialContainer .item .singleImg>img[data-v-69f75332]{width:5.7rem;height:7.5rem;object-fit:cover;object-position:50% 50%;box-shadow:0 0 4px #ddd;border-radius:2px}.outContainer .materialContainer .item .imgList[data-v-69f75332]{padding-left:2.75rem;padding-bottom:.2rem;overflow:hidden}.outContainer .materialContainer .item .imgList>img[data-v-69f75332]{float:left;border-radius:2px;margin-right:.25rem;margin-bottom:.25rem;width:4.7rem;height:4.7rem;object-fit:cover;object-position:50% 50%;box-shadow:0 0 4px #ddd}.outContainer .materialContainer .item .videoFrame[data-v-69f75332]{padding-left:2.75rem;padding-bottom:.2rem;overflow:hidden}.outContainer .materialContainer .item .videoFrame>div[data-v-69f75332]{position:relative;float:left;margin-bottom:.5rem}.outContainer .materialContainer .item .videoFrame>div img[data-v-69f75332]{width:5.7rem;height:7.5rem;object-fit:cover;object-position:50% 50%;box-shadow:0 0 4px #ddd;border-radius:2px}.outContainer .materialContainer .item .videoFrame>div[data-v-69f75332]:after{content:\"\";width:2rem;height:2rem;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-image:url(" + escape(__webpack_require__(208)) + ");background-size:100%;background-repeat:no-repeat}.outContainer .materialContainer .item .plateName[data-v-69f75332]{display:inline-block;background-color:#f2f2f2;border-radius:.5rem;padding:.1rem .5rem;overflow:hidden;margin-left:2.75rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#377ee1;text-align:left}.outContainer .materialContainer .item .plateName>img[data-v-69f75332]{width:.5rem;height:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem}.outContainer .materialContainer .item .toolContainer[data-v-69f75332]{padding-left:2.75rem;margin-top:.4rem;position:relative}.outContainer .materialContainer .item .toolContainer>div[data-v-69f75332]{width:4.3rem;display:inline-block;font-family:PingFangSC-Regular;font-size:.75rem;color:#666;position:relative}.outContainer .materialContainer .item .toolContainer>div>img[data-v-69f75332]{width:.7rem;height:.65rem;vertical-align:middle;position:relative;left:0;top:-2px}.outContainer .materialContainer .item .toolContainer>div .hotArea[data-v-69f75332]{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:70%;height:150%;opacity:.3}.outContainer .materialContainer .item .toolContainer>.other[data-v-69f75332]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:100%;width:1rem}.outContainer .materialContainer .item .toolContainer>.other>img[data-v-69f75332]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.75rem;height:.15rem}.outContainer .materialContainer .item .toolContainer>.del[data-v-69f75332]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:100%;width:1rem}.outContainer .materialContainer .item .toolContainer>.del>img[data-v-69f75332]{position:absolute;top:47%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.7rem;height:.7rem}.outContainer .materialContainer .item .toolContainer>.share[data-v-69f75332]{position:relative}.outContainer .materialContainer .item .toolContainer>.share .shareContainer[data-v-69f75332]{z-index:13;position:absolute;bottom:130%;right:2rem;width:8.9rem;height:4.425rem;background-color:#fff;border-radius:2px;padding:0 .8rem}.outContainer .materialContainer .item .toolContainer>.share .shareContainer>div[data-v-69f75332]{height:2.2125rem;line-height:2.2125rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .materialContainer .item .toolContainer>.share .shareContainer>div>img[data-v-69f75332]{width:1rem;height:1rem;vertical-align:middle;position:relative;left:0;top:-2px;margin-right:.5rem}.outContainer .materialContainer .item .toolContainer>.share .shareContainer>div[data-v-69f75332]:first-of-type{border-bottom:1px solid #e0e0e0}.outContainer .materialContainer .item .toolContainer>.share .shareContainer[data-v-69f75332]:after{content:\"\";position:absolute;bottom:-.75rem;right:.5rem;width:0;height:0;border:.5rem solid transparent;border-top-color:#fff}.outContainer .materialContainer .item .articleOperation[data-v-69f75332]{padding-left:2.75rem}.outContainer .materialContainer .item .articleOperation>div[data-v-69f75332]{margin:.6rem auto 0;padding-bottom:.6rem;position:relative;width:14.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .materialContainer .item .articleOperation>div>div[data-v-69f75332]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.outContainer .materialContainer .item .articleOperation>div>div>div[data-v-69f75332]{display:inline-block;width:5.5rem;height:1.6rem;line-height:1.6rem;text-align:center;border:1px solid #4d5257;border-radius:.8rem;box-sizing:border-box;font-family:PingFangSC-Regular;font-size:.8rem;color:#4d5257}.outContainer .materialContainer .item .articleOperation>div>div:last-child div[data-v-69f75332]{color:#247cff;border-color:#247cff}.outContainer .materialContainer .item .commentSelection[data-v-69f75332]{padding-left:2.75rem;padding-right:.6rem;margin-top:.6rem}.outContainer .materialContainer .item .commentSelection>div[data-v-69f75332]{border-radius:2px;background-color:#f2f2f2}.outContainer .materialContainer .item .commentSelection>div .comments[data-v-69f75332]{padding-left:.4rem;overflow:hidden;padding-bottom:.4rem}.outContainer .materialContainer .item .commentSelection>div .comments>p[data-v-69f75332]{font-size:14px;font-family:PingFangSC-Regular;color:#151515;padding-right:8px;margin-top:.2rem}.outContainer .materialContainer .item .commentSelection>div .comments>p>span[data-v-69f75332]{display:inline}.outContainer .materialContainer .item .commentSelection>div .comments>p>.name[data-v-69f75332]{font-family:PingFangSC-Semibold;color:#333;font-weight:700}.outContainer .materialContainer .item .commentSelection>div .comments>p>.imgTips[data-v-69f75332]{font-family:PingFangSC-Regular;font-size:14px;color:#377ee1;margin-right:8px}.outContainer .materialContainer .item .commentSelection>div .comments>p>.imgTips>img[data-v-69f75332]{width:15px;height:14px;vertical-align:middle;margin-top:-2px}.outContainer .materialContainer .item .commentSelection>div .comments>p[data-v-69f75332]:first-of-type{margin-top:.4rem}.outContainer .materialContainer .item .commentSelection>div .showMoreComments[data-v-69f75332]{height:1.4rem;line-height:1.4rem;text-align:center;font-family:PingFangSC-Regular;font-size:.6rem;color:#666;box-sizing:content-box}.outContainer .questionContainer[data-v-69f75332]{margin-left:.25rem;margin-right:.25rem;background-color:#fff;margin-top:1.75rem;position:relative;border:2px solid #253092;border-radius:.2rem}.outContainer .questionContainer .title[data-v-69f75332]{height:1.45rem;position:absolute;left:50%;top:-.75rem;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.outContainer .questionContainer>.content[data-v-69f75332]{padding:1.675rem .6rem 1.4rem}.outContainer .questionContainer>.content .Qtitle[data-v-69f75332]{font-family:PingFangSC-Semibold;font-size:.9rem;color:#333;line-height:1.35rem}.outContainer .questionContainer>.content .Qcontent[data-v-69f75332]{margin-top:1rem;width:17rem;background-color:#f8f8f8;border-radius:3px;border:1px solid #a8abaf}.outContainer .questionContainer>.content .Qcontent .item[data-v-69f75332]{border-bottom:1px solid #a8abaf}.outContainer .questionContainer>.content .Qcontent .item>img[data-v-69f75332]{float:left;margin-top:.725rem;margin-left:.575rem;width:.75rem;height:.75rem}.outContainer .questionContainer>.content .Qcontent .item>.rightContent[data-v-69f75332]{padding-top:.5rem;padding-bottom:.5rem;margin-left:1.925rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333;padding-right:.2rem}.outContainer .questionContainer>.content .Qcontent .item[data-v-69f75332]:last-child{border-bottom:none}.outContainer .questionContainer>.content .tips[data-v-69f75332]{margin-top:.425rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545}.outContainer .questionContainer>.content>.submitBtn[data-v-69f75332]{width:15.85rem;padding-top:.55rem;padding-bottom:.55rem;margin:1.825rem auto 0;background-color:#3d50f4;border-radius:4px;font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.outContainer .btnContainer[data-v-69f75332]{margin-top:1.2rem;text-align:center}.outContainer .btnContainer>div[data-v-69f75332]{display:inline-block;width:15.85rem;padding-top:.55rem;padding-bottom:.55rem;background-color:#3d50f4;border-radius:.2rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;letter-spacing:0;text-align:center}.outContainer .questionNotice[data-v-69f75332]{overflow:hidden;margin-top:2.5rem;background-color:#fff;height:3.5rem;position:relative;padding-left:.6rem}.outContainer .questionNotice .toggle[data-v-69f75332]{position:absolute;top:.6rem;right:.6rem;text-align:right}.outContainer .questionNotice .toggle>img[data-v-69f75332]{width:2.25rem;height:1rem}.outContainer .questionNotice .top[data-v-69f75332]{margin-top:.5rem;font-family:PingFangSC-Semibold;font-size:.9rem;color:#333}.outContainer .questionNotice .bottom[data-v-69f75332]{margin-top:.25rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .withdraw[data-v-69f75332]{padding-top:.8rem;padding-bottom:1.4rem;text-align:center}.outContainer .withdraw>span[data-v-69f75332]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/member02.d4e4046.png";module.exports = __webpack_require__.p + "static/img/视频播放.1193c39.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _throttleDebounce = __webpack_require__(21);
var _mintUi = __webpack_require__(7);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      isPlaying: false,
      wordList: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K'],
      isShowInfo: false,
      questionRule: '',
      isSwitch: false,
      type: 1,
      // 1:图文 2:帖子
      item: {},
      answerList: [],
      materialContext: '',
      materialVideo: '',
      questionTopic: '',
      questionId: '',
      cashAmount: '',
      correctAnswerId: '',
      // 正确的答案
      selectAnswerId: '',
      // 用户选过的答案
      isAnswer: '',
      // 用户是否已经选过答案
      currentChoose: '',
      // 当前用户选择的答案
      btnText: '',
      btnJumpLink: ''
    };
  },
  mounted: function mounted() {
    this.getQuestionHome();
    this.getRules();
    this.share();
  },
  methods: {
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '答题得现金',
                  desc: '每日一题，现金等你拿',
                  link: location.origin + '/v2/answerAndAward/index',
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '答题得现金',
              desc: '每日一题，现金等你拿',
              link: location.origin + '/v2/answerAndAward/index',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '答题得现金',
              desc: '每日一题，现金等你拿',
              link: location.origin + '/v2/answerAndAward/index',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '答题得现金',
              desc: '每日一题，现金等你拿',
              link: location.origin + '/v2/answerAndAward/index',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 帖子点赞 */likeArticle: function likeArticle(id, isPraise) {
      var _this = this;
      if (isPraise == 1) {
        return;
      }
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 1,
        communityId: id
      }, function (data) {
        _this.item.praiseTotal++;
        _this.item.isPraise = 1;
      }, function () {}, this);
    },
    /** 进入帖子详情 */goArticleDetail: function goArticleDetail(articleId) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'articleDetail' + articleId,
            url: location.origin + '/v2/community/articleDetail?articleId=' + articleId
          }
        });
      } else {
        this.$router.push({
          name: 'articleDetail',
          query: {
            articleId: articleId
          }
        });
      }
    },
    /** 播放视频 */playVideo: function playVideo() {
      this.isPlaying = true;
      this.$refs.video.play();
    },
    openAd: function openAd() {
      var that = this;
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adContainer',
            url: that.btnJumpLink
          }
        });
      } else {
        location.href = that.btnJumpLink;
      }
    },
    /** 获取 活动规则 */getRules: function getRules() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'question_rule',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.questionRule = data.dataList[0].text;
        }
      }, function () {}, this);
    },
    /** 跳转提现页面 */goWithDraw: function goWithDraw() {
      this.$router.push({
        name: 'memberReward'
      });
    },
    /** 提交答案 */
    submitAnswer: (0, _throttleDebounce.throttle)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this3 = this;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (this.currentChoose) {
              _context.next = 1;
              break;
            }
            (0, _mintUi.Toast)({
              message: '请先选择答案',
              position: 'middle',
              duration: 1500
            });
            return _context.abrupt("return");
          case 1:
            this._Util.post(this._Api.POST_COMMUNITY_CASHQUESTION_SUBMIT, {
              questionId: this.questionId,
              answerId: this.currentChoose
            }, function (data) {
              console.log(data);
              if (data.correctAnswerId === data.selectAnswerId) {
                (0, _mintUi.MessageBox)({
                  title: '恭喜您，你答对了',
                  message: "恭喜你，成功分得现金<span style='font-size:0.8rem;font-family:PingFangSC-Regular;color:#EE4545'>" + data.cashAmount + '</span>元，可在页面底部提现',
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: false
                }).then(function (action) {});
              } else {
                (0, _mintUi.MessageBox)({
                  title: '很抱歉，您答错了',
                  message: '答错无法分得现金，明日再来吧！查看上方素材答题更容易哦~',
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: false
                }).then(function (action) {});
              }
              _this3.isAnswer = 1;
              _this3.cashAmount = data.cashAmount;
              _this3.correctAnswerId = data.correctAnswerId;
              _this3.selectAnswerId = data.selectAnswerId;
            }, function () {}, this);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /** 切换 答题提醒 */
    toggleNotice: (0, _throttleDebounce.throttle)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
      var _this4 = this;
      return _regenerator.default.wrap(function (_context2) {
        while (1) switch (_context2.prev = _context2.next) {
          case 0:
            this._Util.post(this._Api.POST_COMMUNITY_CASHQUESTION_REMIND, {
              isSwitch: this.isSwitch ? 0 : 1
            }, function (data) {
              _this4.isSwitch = !!data;
            }, function () {}, this, true);
          case 1:
          case "end":
            return _context2.stop();
        }
      }, _callee2, this);
    }))),
    /** 获取答题首页 */getQuestionHome: function getQuestionHome() {
      var _this5 = this;
      this._Util.post(this._Api.POST_COMMUNITY_CASHQUESTION_CASH_ANSWER_HOME, {}, function (data) {
        if (data.flag) {
          _this5.$router.replace({
            name: 'community'
          });
          return;
        }
        _this5.type = data.materialType;
        _this5.answerList = data.questionAnswerList;
        _this5.materialContext = data.materialContext;
        _this5.materialVideo = data.materialVideo;
        _this5.item = _objectSpread({
          showTen: false
        }, data.article);
        _this5.isSwitch = data.isSwitch;
        _this5.questionTopic = data.topic;
        _this5.questionId = data.questionId;
        _this5.cashAmount = data.cashAmount;
        _this5.correctAnswerId = data.correctAnswerId;
        _this5.selectAnswerId = data.selectAnswerId;
        _this5.isAnswer = data.isAnswer;
        _this5.btnText = data.btnText;
        _this5.btnJumpLink = data.jumpLink;
      }, function () {}, this);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('transition',{attrs:{"name":"fade"}},[(_vm.isShowInfo)?_c('div',{staticClass:"maskLayer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("活动规则")])]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.questionRule)}}),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){_vm.isShowInfo=false;}}},[_vm._v("我知道了")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"banner"},[_c('img',{attrs:{"src":__webpack_require__(2357),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rules",on:{"click":function($event){_vm.isShowInfo=true;}}},[_vm._v("活动规则")])]),_vm._v(" "),_c('div',{staticClass:"materialContainer"},[_c('img',{staticClass:"title",attrs:{"src":__webpack_require__(2358),"alt":""}}),_vm._v(" "),(_vm.type===1)?_c('div',{staticClass:"_htmlContent"},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.materialContext)}}),_vm._v(" "),(_vm.materialVideo)?_c('div',{staticClass:"videoContainer"},[(!_vm.isPlaying)?_c('div',{staticClass:"imgContainer",on:{"click":_vm.playVideo}},[_c('img',{attrs:{"src":_vm.materialVideo+'?vframe/jpg/offset/1',"alt":""}}),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(2359),"alt":""}})]):_vm._e(),_vm._v(" "),_c('video',{ref:"video",class:{'startPlay': _vm.isPlaying, 'preplay': !_vm.isPlaying },style:({ 'object-fit' : true ? 'contain' : undefined}),attrs:{"webkit-playsinline":"true","playsinline":"true","x5-playsinline":"true","x-webkit-airplay":"true","poster":"","controls":"","controlsList":"nodownload"}},[_c('source',{attrs:{"src":_vm.materialVideo,"type":"video/mp4"}})])]):_vm._e()]):_c('div',{staticClass:"item",on:{"click":function($event){return _vm.goArticleDetail(_vm.item.articleId)}}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":_vm.item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}),_vm._v(" "),(_vm.item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',[_vm._v(_vm._s(_vm.item.userName.slice(0,7)))]),_vm._v(" "),_vm._l((_vm.item.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val.medalIcon,"alt":""}})})],2),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(_vm.item.time)+" "),(_vm.item.position)?_c('span',[_vm._v(" "+_vm._s(_vm.item.position))]):_vm._e()])])]),_vm._v(" "),(_vm.item.content)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.item.content)}},[_vm._v("\n        "+_vm._s(_vm.item.content)+"\n      ")]):_vm._e(),_vm._v(" "),(_vm.item.pictureList&&_vm.item.pictureList.length===1)?_c('div',{staticClass:"singleImg"},[_c('img',{attrs:{"src":_vm.item.pictureList[0] + '?imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(_vm.item.pictureList[0], [])}}})]):_vm._e(),_vm._v(" "),(_vm.item.pictureList&&_vm.item.pictureList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((_vm.item.pictureList),function(v,i){return _c('img',{key:i,attrs:{"src":v + '?imageView2/2/w/220/h/220',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, _vm.item.pictureList, i)}}})}),0):_vm._e(),_vm._v(" "),(_vm.item.videoList)?_c('div',{staticClass:"videoFrame"},[_c('div',[_c('img',{attrs:{"src":_vm.item.videoList + '?vframe/jpg/offset/1',"alt":""}})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"plateName"},[_c('img',{attrs:{"src":__webpack_require__(210),"alt":""}}),_vm._v(_vm._s(_vm.item.moduleName)+"\n      ")]),_vm._v(" "),(_vm.item.advertType!==1)?_c('div',{staticClass:"toolContainer"},[(_vm.item.isPraise==0)?_c('div',{staticClass:"like"},[_c('img',{attrs:{"src":__webpack_require__(2360),"alt":""}}),_vm._v("\n          "+_vm._s(_vm.item.praiseTotal>0 ? _vm.item.praiseTotal : '点赞')+"\n          "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();return _vm.likeArticle(_vm.item.articleId, _vm.item.isPraise)}}})]):_c('div',{staticClass:"like",staticStyle:{"color":"#EE4545"}},[_c('img',{attrs:{"src":__webpack_require__(2361),"alt":""}}),_vm._v("\n          "+_vm._s(_vm.item.praiseTotal>0 ? _vm.item.praiseTotal : '点赞')+"\n          "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();return _vm.likeArticle(_vm.item.articleId, _vm.item.isPraise)}}})]),_vm._v(" "),_vm._m(0),_vm._v(" "),_vm._m(1)]):_vm._e(),_vm._v(" "),(_vm.item.articleCommentList&&_vm.item.articleCommentList.length>0)?_c('div',{staticClass:"commentSelection"},[(_vm.item.showTen)?_c('div',[_c('div',{staticClass:"comments"},_vm._l((_vm.item.articleCommentList),function(v,i){return _c('p',{key:i},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(v.userName.slice(0,9))+":")]),_vm._v(" "),(v.commentContent)?_c('span',{staticClass:"commentContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.commentContent))}},[_vm._v(_vm._s(v.commentContent))]):_vm._e(),_vm._v(" "),(v.picList&&v.picList.length>0)?_c('span',{staticClass:"imgTips"},[_c('img',{attrs:{"src":__webpack_require__(182),"alt":""}}),_vm._v(" 图片")]):_vm._e()])}),0),_vm._v(" "),_c('div',{staticClass:"showMoreComments"},[_vm._v("查看全部"+_vm._s(_vm.item.commentTotal)+"条评论")])]):_c('div',[_c('div',{staticClass:"comments"},_vm._l((_vm.item.articleCommentList),function(v,i){return (i<2)?_c('p',{key:i},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(v.userName.slice(0,9))+":")]),_vm._v(" "),(v.commentContent)?_c('span',{staticClass:"commentContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.commentContent))}},[_vm._v(_vm._s(v.commentContent))]):_vm._e(),_vm._v(" "),(v.picList&&v.picList.length>0)?_c('span',{staticClass:"imgTips"},[_c('img',{attrs:{"src":__webpack_require__(182),"alt":""}}),_vm._v(" 图片")]):_vm._e()]):_vm._e()}),0),_vm._v(" "),(_vm.item.articleCommentList.length>2)?_c('div',{staticClass:"showMoreComments",on:{"click":function($event){$event.stopPropagation();_vm.item.showTen=true;}}},[_vm._v("展开更多评论")]):_vm._e()])]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"questionContainer"},[_c('img',{staticClass:"title",attrs:{"src":__webpack_require__(2362),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"Qtitle"},[_vm._v("\n        "+_vm._s(_vm.questionTopic)+"\n      ")]),_vm._v(" "),(_vm.isAnswer)?_c('div',{staticClass:"Qcontent"},_vm._l((_vm.answerList),function(v,i){return _c('div',{key:i,staticClass:"item"},[(_vm.correctAnswerId===v.id)?_c('img',{attrs:{"src":__webpack_require__(2363),"alt":""}}):(_vm.selectAnswerId===v.id)?_c('img',{attrs:{"src":__webpack_require__(2364),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1487),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_vm._v("\n            "+_vm._s(_vm.wordList[i]+'、'+v.optionText)+"\n          ")])])}),0):_c('div',{staticClass:"Qcontent"},_vm._l((_vm.answerList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){_vm.currentChoose=v.id}}},[(_vm.currentChoose===v.id)?_c('img',{attrs:{"src":__webpack_require__(2365),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1487),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_vm._v("\n            "+_vm._s(_vm.wordList[i]+'、'+v.optionText)+"\n          ")])])}),0),_vm._v(" "),(_vm.isAnswer)?_c('div',{staticClass:"tips"},[_vm._v("\n        "+_vm._s(_vm.correctAnswerId===_vm.selectAnswerId?('恭喜你，成功分得现金 '+_vm.cashAmount+'元，明日可继续答题哦~ 提现请至页面底部'):'很抱歉，答错无法分得现金，明日再来吧！查看上方素材答题更容易哦~')+"\n      ")]):_c('div',{staticClass:"tips"},[_vm._v("\n        注：提交答案后，答对者将分得当日活动奖金\n      ")]),_vm._v(" "),(_vm.isAnswer===0)?_c('div',{staticClass:"submitBtn",on:{"click":_vm.submitAnswer}},[_vm._v("\n        提交答案\n      ")]):_vm._e()])]),_vm._v(" "),(_vm.btnText&&(_vm.isAnswer===1))?_c('div',{staticClass:"btnContainer"},[_c('div',{on:{"click":_vm.openAd}},[_vm._v(_vm._s(_vm.btnText))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"questionNotice"},[_c('div',{staticClass:"toggle",on:{"click":_vm.toggleNotice}},[(_vm.isSwitch)?_c('img',{attrs:{"src":__webpack_require__(2366),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(2367),"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"top"},[_vm._v("答题提醒")]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_vm._v("每天9:00提醒答题抢现金，关闭后将不会再提醒")])]),_vm._v(" "),_c('div',{staticClass:"withdraw"},[_c('span',{on:{"click":_vm.goWithDraw}},[_vm._v("点此现金提现")])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"comment"},[_c('img',{staticStyle:{"top":"-2px"},attrs:{"src":__webpack_require__(181),"alt":""}}),_vm._v("\n          评论\n          ")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"other"},[_c('img',{attrs:{"src":__webpack_require__(2368),"alt":""}})])}]
module.exports = __webpack_require__.p + "static/img/banner.a7398e6.png";module.exports = __webpack_require__.p + "static/img/题目素材.8e55241.png";module.exports = __webpack_require__.p + "static/img/播放.bc2fd22.png";module.exports = __webpack_require__.p + "static/img/话题标签.a1d376a.png";module.exports = __webpack_require__.p + "static/img/点赞1.d3fef5e.png";module.exports = __webpack_require__.p + "static/img/已点赞1.fdd9cbd.png";module.exports = __webpack_require__.p + "static/img/查看图片.63174f7.png";module.exports = __webpack_require__.p + "static/img/今日题目.e8b0c9f.png";module.exports = __webpack_require__.p + "static/img/正确.b43d4be.jpg";module.exports = __webpack_require__.p + "static/img/错误.23e22cb.jpg";module.exports = __webpack_require__.p + "static/img/未选中.78a09d2.jpg";module.exports = __webpack_require__.p + "static/img/选中.d0bfee6.jpg";module.exports = __webpack_require__.p + "static/img/开.c4598b7.png";module.exports = __webpack_require__.p + "static/img/关.982d245.png";module.exports = __webpack_require__.p + "static/img/评论.9eed3a5.png";module.exports = __webpack_require__.p + "static/img/省略.7d93581.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(397);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d52de44_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(998);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2369)
  __webpack_require__(2371)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6d52de44"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d52de44_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d52de44_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2370);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2d14b50a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-6d52de44]{height:100%;background-color:#2f4ff4;overflow-y:auto;-webkit-overflow-scrolling:touch}.outContainer .topBanner[data-v-6d52de44]{height:5.75rem;background-size:100%;background-repeat:no-repeat;padding-top:.95rem;padding-left:.8rem}.outContainer .topBanner>div[data-v-6d52de44]:first-of-type{font-family:PingFangSC-Semibold;font-weight:700;font-size:1rem;color:#fff;width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .topBanner>div[data-v-6d52de44]:nth-of-type(2){margin-top:.2rem;opacity:.8;font-family:PingFangSC-Regular;font-size:.7rem;color:#fff;width:70%}.outContainer .main .innerMain[data-v-6d52de44]{width:17.55rem;margin:0 auto;background-color:#fff;border-radius:4px;padding-top:.8rem;padding-bottom:.8rem;position:relative;top:-.5rem}.outContainer .main .innerMain .item[data-v-6d52de44]{height:2.4rem;line-height:2.4rem;margin-bottom:.6rem;padding-left:.7rem;overflow:hidden;position:relative}.outContainer .main .innerMain .item[data-v-6d52de44]:nth-last-of-type(2){margin-bottom:0}.outContainer .main .innerMain .item>span[data-v-6d52de44]:first-of-type{float:left;width:1.6rem;height:100%;position:relative}.outContainer .main .innerMain .item>span:first-of-type > span[data-v-6d52de44]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .main .innerMain .item>span:first-of-type > img[data-v-6d52de44]{width:1rem;height:1.25rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main .innerMain .item>.rightContent[data-v-6d52de44]{height:100%;margin-left:1.6rem}.outContainer .main .innerMain .item>.rightContent>span[data-v-6d52de44]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;width:50%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.outContainer .main .innerMain .item>.rightContent>img[data-v-6d52de44]{margin-top:.3rem;width:1.8rem;height:1.8rem;border-radius:50%;margin-right:.4rem}.outContainer .main .innerMain .item>.rightContent>.likeNum[data-v-6d52de44]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Medium;font-size:.9rem;color:#2f4ff4}.outContainer .main .innerMain .self[data-v-6d52de44]{background-color:#fff2e6}.outContainer .main .innerMain .self>.rightContent>span[data-v-6d52de44]{font-weight:700}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2372);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c3d20870", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".rankList .mescroll-upwarp.mescroll-hardware{min-height:0!important;padding:0!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {
    thousand: function thousand(val) {
      if (!val) return 0;
      return val >= 1000 ? (val / 1000).toFixed(1) + 'k' : val;
    }
  },
  components: {},
  data: function data() {
    return {
      rankInfo: '',
      rankList: [],
      mescroll: null,
      dataLoaded: false
    };
  },
  mounted: function mounted() {
    this.getRank();
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getRankList,
        auto: false,
        page: {
          num: 1,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 20 // 每页数据条数,默认10
        },
        htmlNodata: '',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'rankList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无相关数据~' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 埋点
     * @param rankTitle: 排行榜名称
     */
    collectData: function collectData(rankTitle) {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: '社区排行榜',
        optionType: '点击',
        param1: window.location.href,
        param2: rankTitle
      }, this);
    },
    /**
     * 获取排行榜种类
     */
    getRank: function getRank() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'community_rank',
        rankid: this.$route.query.rankId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.rankInfo = data.dataList[0];
          document.title = data.dataList[0].rank_title;
          _this.collectData(data.dataList[0].rank_title);
          _this.getRankList();
          _this.share();
        }
      }, function () {}, this);
    },
    /**
     * 获取排行榜榜单信息
     */
    getRankList: function getRankList() {
      var _this2 = this;
      var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
        num: 1,
        size: 20
      };
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: this.rankInfo.rank_data_code,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this2.rankList = [];
        }
        if (data.dataList.length !== 0) {
          _this2.rankList = _this2.rankList.concat(data.dataList);
          _this2.$nextTick(function () {
            _this2.mescroll.endSuccess(data.dataList.length);
          });
        }
        _this2.dataLoaded = true;
      }, function () {
        _this2.mescroll.endErr();
      }, this, true);
    },
    /**
     * 分享配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.rankInfo.rank_title,
                  desc: '卡修宝典社区排行榜',
                  link: location.origin + '/v2/community/rankList?rankId=' + that.$route.query.rankId,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.rankInfo.rank_title,
              desc: '卡修宝典社区排行榜',
              link: location.origin + '/v2/community/rankList?rankId=' + that.$route.query.rankId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.rankInfo.rank_title,
              desc: '卡修宝典社区排行榜',
              link: location.origin + '/v2/community/rankList?rankId=' + that.$route.query.rankId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.rankInfo.rank_title,
              desc: '卡修宝典社区排行榜',
              link: location.origin + '/v2/community/rankList?rankId=' + that.$route.query.rankId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 进入指定用户主页
     * @param userId: 需要进入的用户主页
     */
    goUserPage: function goUserPage(userId) {
      if (this.$store.state.userInfo.userId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId,
              notGive: true
            }
          });
        } else {
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage' + userId,
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"outContainer rankList"},[_c('div',{staticClass:"topBanner",style:({backgroundImage: 'url('+ _vm.rankInfo.rank_pic +')'})},[_c('div',[_vm._v(_vm._s(_vm.rankInfo.rank_title))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.rankInfo.rank_note))])]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"innerMain",attrs:{"id":"rankList"}},[(!_vm.dataLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"3rem","padding-bottom":"2rem","color":"#666","font-size":"0.7rem"}},[_vm._v("\n        数据正在计算中...\n      ")]):_vm._l((_vm.rankList),function(v,i){return _c('div',{key:i,class:{item: true, self: v.rank_userid == _vm.$store.state.userInfo.userId},on:{"click":function($event){return _vm.goUserPage(v.rank_userid)}}},[_c('span',[(i===0)?_c('img',{attrs:{"src":__webpack_require__(1404)}}):(i===1)?_c('img',{attrs:{"src":__webpack_require__(1405)}}):(i===2)?_c('img',{attrs:{"src":__webpack_require__(1406)}}):_c('span',[_vm._v(_vm._s(i+1 < 10 ? '0'+(i+1) : i+1))])]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('img',{attrs:{"src":v.rank_headimg,"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.rank_uname))]),_vm._v(" "),_c('div',{staticClass:"likeNum"},[_c('span',{staticStyle:{"color":"#666","font-size":"0.6rem"}},[_vm._v(_vm._s(v.rank_intro))]),_vm._v(" "+_vm._s(_vm._f("thousand")(v.rank_score))+" "),_c('span',{staticStyle:{"color":"#666","font-size":"0.6rem"}},[_vm._v(_vm._s(v.rank_remark))])])])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/rank1.6e91bd7.png";module.exports = __webpack_require__.p + "static/img/rank2.b002beb.png";module.exports = __webpack_require__.p + "static/img/rank3.4c020f8.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(398);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9df54a4e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(999);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2373)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-9df54a4e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9df54a4e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9df54a4e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dailyCheck_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2374);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2dd78f09", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-9df54a4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.outContainer .main[data-v-9df54a4e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.outContainer .main .textArea[data-v-9df54a4e]{width:100%;height:6.725rem}.outContainer .main .textArea>textarea[data-v-9df54a4e]{width:100%;height:100%;outline:none;border:none;padding:.6rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333;line-height:1.15rem}.outContainer .main .posterContainer[data-v-9df54a4e]{background-color:#fff;padding-top:1rem;position:relative;text-align:center}.outContainer .main .posterContainer .miniPoster1[data-v-9df54a4e]{display:inline-block;width:12rem;height:15rem;position:relative}.outContainer .main .posterContainer .miniPoster1>img[data-v-9df54a4e]{position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none}.outContainer .main .posterContainer .miniPoster1 .time[data-v-9df54a4e]{position:relative;z-index:1;padding-top:1.6rem;text-align:center}.outContainer .main .posterContainer .miniPoster1 .time>p[data-v-9df54a4e]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#fff}.outContainer .main .posterContainer .miniPoster1 .time>p[data-v-9df54a4e]:nth-of-type(2){font-family:PingFangSC-Semibold;font-weight:700;font-size:1.2rem;color:#fff}.outContainer .main .posterContainer .miniPoster1 .time>p[data-v-9df54a4e]:nth-of-type(3){font-family:PingFangSC-Regular;font-size:.5rem;color:#fff}.outContainer .main .posterContainer .miniPoster1 .content[data-v-9df54a4e]{padding-top:3rem;position:relative;z-index:1}.outContainer .main .posterContainer .miniPoster1 .content>p[data-v-9df54a4e]{font-family:STKaitiSC-Bold;font-weight:700;font-size:.85rem;color:#333;text-align:center}.outContainer .main .posterContainer .miniPoster2[data-v-9df54a4e]{display:inline-block;width:12rem;height:15rem;position:relative}.outContainer .main .posterContainer .miniPoster2>img[data-v-9df54a4e]{position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none}.outContainer .main .posterContainer .miniPoster2 .time[data-v-9df54a4e]{position:absolute;top:10rem;right:.5rem;z-index:1;text-align:right}.outContainer .main .posterContainer .miniPoster2 .time>p[data-v-9df54a4e]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#fff}.outContainer .main .posterContainer .miniPoster2 .time>p[data-v-9df54a4e]:nth-of-type(2){font-family:PingFangSC-Semibold;font-weight:700;font-size:1.1rem;color:#fff}.outContainer .main .posterContainer .miniPoster2 .time>p[data-v-9df54a4e]:nth-of-type(3){font-family:PingFangSC-Regular;font-size:.6rem;color:#fff}.outContainer .main .posterContainer .miniPoster2 .content[data-v-9df54a4e]{position:absolute;top:1rem;left:.8rem;z-index:1}.outContainer .main .posterContainer .miniPoster2 .content .top[data-v-9df54a4e]{text-align:left}.outContainer .main .posterContainer .miniPoster2 .content .top>p[data-v-9df54a4e]:first-of-type{font-family:STKaitiSC-Bold;font-size:.7rem;font-weight:700;color:#fff}.outContainer .main .posterContainer .miniPoster2 .content .top>p[data-v-9df54a4e]:nth-of-type(2){font-family:STKaitiSC;font-size:.55rem;color:#fff}.outContainer .main .posterContainer .miniPoster2 .content .top>p:nth-of-type(2)>span[data-v-9df54a4e]{font-family:STKaitiSC-Bold;font-size:1.05rem;color:#fff}.outContainer .main .posterContainer .miniPoster2 .content .bottom[data-v-9df54a4e]{margin-top:1rem;text-align:left}.outContainer .main .posterContainer .miniPoster2 .content .bottom>p[data-v-9df54a4e]:first-of-type{font-family:STKaitiSC-Bold;font-size:.7rem;font-weight:700;color:#fff}.outContainer .main .posterContainer .miniPoster2 .content .bottom>p[data-v-9df54a4e]:nth-of-type(2){font-family:STKaitiSC;font-size:.55rem;color:#fff}.outContainer .main .posterContainer .miniPoster2 .content .bottom>p:nth-of-type(2)>span[data-v-9df54a4e]{font-family:STKaitiSC-Bold;font-size:1.05rem;color:#fff}.outContainer .main .posterContainer .refresh[data-v-9df54a4e]{margin-top:.65rem;padding-bottom:.65rem;text-align:center}.outContainer .main .posterContainer .refresh>div[data-v-9df54a4e]{display:inline-block;font-family:PingFangSC-Regular;font-size:.8rem;color:#377ee1}.outContainer .main .posterContainer .refresh>div>img[data-v-9df54a4e]{width:.7rem;height:.7rem;margin-right:.2rem;vertical-align:middle;position:relative;top:-1px;pointer-events:none}.outContainer .submitBtn[data-v-9df54a4e]{padding-top:.5rem;padding-bottom:.5rem;background-color:#2b82f7;font-family:PingFangSC-Regular;font-size:.9rem;color:#fff;text-align:center;position:relative;z-index:9}.outContainer #canvas[data-v-9df54a4e]{position:fixed;top:0;left:0;width:375px;height:667px;z-index:-1;opacity:0}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import QArt from 'qartjs'
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      shareContent: '',
      ctx: null,
      token: null,
      bucketUrl: null,
      posterData: null,
      posterConfig: {},
      imgReady: [],
      drawHead: true,
      // 确保头像和二维码只绘制1次
      qrReady: false,
      avatarReady: false,
      posterReady: false
    };
  },
  created: function created() {
    var _this = this;
    // 七牛云 token
    this._Util.post(this._Api.appGetQNToken, {}, function (data) {
      _this.token = data.token;
      _this.bucketUrl = data.bucketUrl;
    }, function () {}, this);
    this.getPosterConfig();
  },
  mounted: function mounted() {
    var canvas = document.getElementById('canvas');
    this.ctx = canvas.getContext('2d');
    var ratio = this.getPixelRatio(this.ctx);
    // eslint-disable-next-line no-unused-vars
    var _height = parseInt(window.getComputedStyle(canvas, null).getPropertyValue('height'));
    // eslint-disable-next-line no-unused-vars
    var _width = parseInt(window.getComputedStyle(canvas, null).getPropertyValue('width'));
    canvas.width = ratio * 375;
    canvas.height = ratio * 667;
    this.ctx.scale(ratio, ratio);
  },
  methods: {
    /** 绘制最终图片 */drawSharePic: function drawSharePic() {
      _mintUi.Indicator.open('绘制中...');
      this.drawPoster();
    },
    /** 绘制海报 */drawPoster: function drawPoster() {
      var that = this;
      var img = new Image();
      img.crossOrigin = '';
      img.onload = function () {
        that.ctx.drawImage(img, 25, 100, 325, 410);
        that.posterReady = true;
        switch (that.posterConfig.template) {
          case 1:
            that.drawTemplate1();
            break;
          case 2:
            that.drawTemplate2();
            break;
        }
        that.upload(); // 图片加载 绘制完成 开始上传
      };
      var _queryStr = that.posterConfig.background.indexOf('?') > -1 ? '&t=' + +new Date() : '?t=' + +new Date();
      img.src = this.posterConfig.background + _queryStr;
    },
    /** 绘制头像、二维码和背景 */drawUserInfo: function drawUserInfo() {
      var that = this;
      var canvas = document.getElementById('canvas');
      // 绘制 背景
      that.ctx.fillStyle = '#fff';
      that.ctx.fillRect(0, 0, canvas.width, canvas.height);
      // 用户相关信息
      var headImg = new Image();
      headImg.crossOrigin = '';
      headImg.onload = function () {
        that.ctx.drawImage(headImg, 25, 24, 36, 36);
        that.avatarReady = true;
        // 头像圆框
        var headBorder = new Image();
        headBorder.crossOrigin = '';
        headBorder.onload = function () {
          that.ctx.drawImage(headBorder, 25, 24, 36, 36);
        };
        headBorder.src = 'http://static2.kaxiuyun.com/avatarBorder2.png';
      };
      var _queryStr = that.posterConfig.headimgurl.indexOf('?') > -1 ? '&t=' + +new Date() : '?t=' + +new Date();
      headImg.src = that.posterConfig.headimgurl + _queryStr;
      that.ctx.fillStyle = '#333';
      that.ctx.font = '18px PingFangSC-Regular';
      that.ctx.fillText(that.posterConfig.userName, 70, 48);
      // 二维码相关
      var codeImg = new Image();
      codeImg.crossOrigin = '';
      codeImg.onload = function () {
        that.ctx.drawImage(codeImg, 155, 548, 66, 66);
        that.qrReady = true;
      };
      var _qrQueryStr = that.posterConfig.qrCode.indexOf('?') > -1 ? '&t=' + +new Date() : '?t=' + +new Date();
      codeImg.src = that.posterConfig.qrCode + _qrQueryStr;
      that.ctx.textAlign = 'center';
      that.ctx.fillStyle = '#666';
      that.ctx.font = '12px PingFangSC-Regular';
      that.ctx.fillText(that.posterConfig.qrCodeText, 188, 630);
    },
    /** 绘制海报模板1 */drawTemplate1: function drawTemplate1() {
      // 日期
      this.ctx.textAlign = 'center';
      this.ctx.textBaseline = 'middle';
      this.ctx.fillStyle = '#fff';
      this.ctx.font = '20px PingFangSC-Regular';
      this.ctx.fillText(this.posterConfig.yearMonth, 188, 150);
      this.ctx.font = '32px PingFangSC-Semibold';
      this.ctx.fillText(this.posterConfig.day, 188, 184);
      this.ctx.font = '14px PingFangSC-Semibold';
      this.ctx.fillText(this.posterConfig.week, 188, 220);
      // 内容
      this.ctx.font = '24px STKaitiSC-Bold';
      this.ctx.textAlign = 'center';
      this.ctx.textBaseline = 'middle';
      this.ctx.fillStyle = '#333';
      this.ctx.fillText(this.posterConfig.text1 + this.posterConfig.text2 + this.posterConfig.text3, 188, 342);
      this.ctx.fillText(this.posterConfig.content1 + this.posterConfig.content2 + this.posterConfig.content3, 188, 378);
    },
    /** 绘制海报模板2 */drawTemplate2: function drawTemplate2() {
      // 内容
      this.ctx.textAlign = 'left';
      this.ctx.font = '20px STKaitiSC-Bold';
      this.ctx.fillStyle = '#fff';
      this.ctx.fillText(this.posterConfig.text1, 40, 144);
      this.ctx.fillText(this.posterConfig.content1, 40, 239);
      this.ctx.font = '30px STKaitiSC-Bold';
      var width1 = this.ctx.measureText(this.posterConfig.text2).width;
      var width2 = this.ctx.measureText(this.posterConfig.content2).width;
      this.ctx.fillText(this.posterConfig.text2, 40, 183);
      this.ctx.fillText(this.posterConfig.content2, 40, 279);
      this.ctx.font = '14px STKaitiSC';
      this.ctx.fillText(this.posterConfig.text3, 42 + width1, 183);
      this.ctx.fillText(this.posterConfig.content3, 42 + width2, 279);

      // 日期
      this.ctx.textAlign = 'right';
      this.ctx.textBaseline = 'middle';
      this.ctx.fillStyle = '#fff';
      this.ctx.font = '20px PingFangSC-Regular';
      this.ctx.fillText(this.posterConfig.yearMonth, 338, 382);
      this.ctx.font = '32px PingFangSC-Semibold';
      this.ctx.fillText(this.posterConfig.day, 338, 418);
      this.ctx.font = '14px PingFangSC-Semibold';
      this.ctx.fillText(this.posterConfig.week, 338, 452);
    },
    /** dpr */getPixelRatio: function getPixelRatio(context) {
      var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1;
      return (window.devicePixelRatio || 1) / backingStore;
    },
    /** canvas转图片 */canvasToImages: function canvasToImages() {
      var _src = document.getElementById('canvas').toDataURL('image/png');
      this.posterData = _src;
    },
    /** 上传合成图片到七牛云 */upload: function upload() {
      var that = this;
      if (!(that.posterReady && that.qrReady && that.avatarReady)) {
        // 判断是否所有的图片都加载完成
        setTimeout(function () {
          that.upload();
        }, 500);
        return;
      }
      _mintUi.Indicator.close();
      that.canvasToImages(); // canvas 转 图片
      _mintUi.Indicator.open('上传中...');
      var pic = that.posterData.replace('data:image/png;base64,', '');
      var url = 'https://upload.qiniup.com/putb64/-1';
      var xhr = new XMLHttpRequest();
      xhr.onreadystatechange = function () {
        if (xhr.readyState == 4) {
          that.sendArticle(that.bucketUrl + JSON.parse(xhr.responseText).key);
          _mintUi.Indicator.close();
        }
      };
      xhr.open('POST', url, true);
      xhr.setRequestHeader('Content-Type', 'application/octet-stream');
      xhr.setRequestHeader('Authorization', 'UpToken ' + that.token);
      xhr.send(pic);
    },
    /** 获取海报配置 */getPosterConfig: function getPosterConfig() {
      var _this2 = this;
      this._Util.post(this._Api.POST_COMMUNITY_DAILY_CHECK_POSTER, {
        templateId: this.posterConfig.template || ''
      }, function (data) {
        _this2.posterConfig = data;
        if (_this2.drawHead) {
          _this2.drawUserInfo(); //  数据返回先绘制 头像和二维码
          _this2.drawHead = false;
        }
      }, function () {}, this);
    },
    /** 发签到帖 */sendArticle: function sendArticle(imgUrl) {
      var _this3 = this;
      this._Util.post(this._Api.POST_COMMUNITY_SEND_ARTICLE, {
        content: this.shareContent,
        pictureUrl: imgUrl,
        backgroundId: this.posterConfig.backgroundId,
        copywritingId: this.posterConfig.copywritingId,
        templateId: this.posterConfig.template
      }, function (data) {
        (0, _mintUi.Toast)({
          message: data ? '今日已发帖' : '发帖成功',
          position: 'bottom',
          duration: 1500
        });
        if (_this3._Util.isApp()) {
          api.sendEvent({
            name: 'dailyCheck'
          });
          api.execScript({
            name: 'root',
            frameName: 'commun',
            script: "window.$bus.$emit('changeTab', 'new')"
          });
        }
        if (_this3.$route.query.closeWin == 1) {
          api.closeWin();
        } else {
          _this3.$router.go(-1);
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('canvas',{attrs:{"id":"canvas"}}),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"textArea"},[_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.shareContent),expression:"shareContent",modifiers:{"trim":true}}],attrs:{"placeholder":"此时此刻，想和大家分享点什么呢？"},domProps:{"value":(_vm.shareContent)},on:{"input":function($event){if($event.target.composing){ return; }_vm.shareContent=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticStyle:{"background-color":"#f2f2f2","height":"0.4rem"}}),_vm._v(" "),_c('div',{staticClass:"posterContainer"},[(_vm.posterConfig.template===1)?_c('div',{staticClass:"miniPoster1"},[_c('img',{attrs:{"src":_vm.posterConfig.background,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"time"},[_c('p',[_vm._v(_vm._s(_vm.posterConfig.yearMonth))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.posterConfig.day))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.posterConfig.week))])]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('p',[_vm._v(_vm._s(_vm.posterConfig.text1 + _vm.posterConfig.text2 + _vm.posterConfig.text3))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.posterConfig.content1 + _vm.posterConfig.content2 + _vm.posterConfig.content3))])])]):(_vm.posterConfig.template===2)?_c('div',{staticClass:"miniPoster2"},[_c('img',{attrs:{"src":_vm.posterConfig.background,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"time"},[_c('p',[_vm._v(_vm._s(_vm.posterConfig.yearMonth))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.posterConfig.day))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.posterConfig.week))])]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"top"},[_c('p',[_vm._v(_vm._s(_vm.posterConfig.text1))]),_vm._v(" "),_c('p',[_c('span',[_vm._v(_vm._s(_vm.posterConfig.text2))]),_vm._v(_vm._s(_vm.posterConfig.text3))])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('p',[_vm._v(_vm._s(_vm.posterConfig.content1))]),_vm._v(" "),_c('p',[_c('span',[_vm._v(_vm._s(_vm.posterConfig.content2))]),_vm._v(_vm._s(_vm.posterConfig.content3))])])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"refresh"},[_c('div',{on:{"click":_vm.getPosterConfig}},[_c('img',{attrs:{"src":__webpack_require__(2375),"alt":""}}),_vm._v("换一换\n        ")])])])]),_vm._v(" "),_c('div',{staticClass:"submitBtn",on:{"click":_vm.drawSharePic}},[_vm._v("发布")])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/refresh.ffc332a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(399);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60cab42e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1000);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2376)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-60cab42e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60cab42e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60cab42e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_starsDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2377);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("93052330", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-60cab42e]{background-color:#fff}.outContainer .topTab[data-v-60cab42e]{height:2.2rem;padding-left:.6rem}.outContainer .topTab>span[data-v-60cab42e]{padding-top:.55rem;font-family:PingFangSC-Semibold;font-size:.8rem;color:#377ee1;font-weight:700}.outContainer .topTab>span>img[data-v-60cab42e]{margin-left:.2rem;width:.45rem;height:.25rem;vertical-align:middle}.outContainer .detailList[data-v-60cab42e]{padding-left:.6rem;padding-right:.6rem}.outContainer .detailList .item[data-v-60cab42e]{padding-top:.6rem;position:relative;height:3.45rem;border-bottom:1px solid #e0e0e0}.outContainer .detailList .item>div[data-v-60cab42e]:first-of-type{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .detailList .item>div[data-v-60cab42e]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .detailList .item>div[data-v-60cab42e]:nth-of-type(3){font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545;position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .detailList .allLoad[data-v-60cab42e]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666;text-align:center;padding-top:.8rem;padding-bottom:1rem}.task[data-v-60cab42e]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:10}.task .boxContainer[data-v-60cab42e]{width:80%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#fff;border-radius:3px}.task .boxContainer .title[data-v-60cab42e]{text-align:center;font-family:PingFangSC-Regular;font-size:20px;color:#333;padding-top:12px;padding-bottom:4px}.task .boxContainer .content[data-v-60cab42e]{margin-bottom:10px}.task .boxContainer .content .item[data-v-60cab42e]{height:47px;overflow:hidden}.task .boxContainer .content .item>img[data-v-60cab42e]{width:15px;height:15px;float:left;margin-top:16px;margin-left:16px}.task .boxContainer .content .item>div[data-v-60cab42e]{height:47px;line-height:47px;margin-left:39px;border-bottom:1px solid #d9d9e2;font-family:PingFangSC-Regular;font-size:16px;color:#333}.task .boxContainer .content .item:last-child > div[data-v-60cab42e]{border-bottom:none}.task .boxContainer .bottom[data-v-60cab42e]{position:relative;height:49px;line-height:49px;border-top:1px solid #d8d8d8}.task .boxContainer .bottom>div[data-v-60cab42e]{height:49px;line-height:49px;float:left;width:50%;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#333}.task .boxContainer .bottom>div[data-v-60cab42e]:nth-of-type(2){color:#377ee1}.task .boxContainer .bottom[data-v-60cab42e]:after{content:\"\";position:absolute;width:1px;height:100%;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);background-color:#d8d8d8}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      showMask: false,
      typeList: [],
      type: '',
      typeName: '全部',
      mescroll: null,
      // mescroll实例对象
      dataList: [] // 列表数据
    };
  },
  mounted: function mounted() {
    // 创建MeScroll对象
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      // 在mounted初始化mescroll,确保此处配置的ref有值
      down: {
        use: false
      },
      up: {
        callback: this.getBeanList,
        htmlNodata: '<p class="upwarp-nodata">-- 到底啦！ --</p>',
        noMoreSize: 5,
        isBounce: false,
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'listContainer',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无相关数据' // 提示
        }
      }
    });
    this.getTypeList();
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /** 获取数据类型 */getTypeList: function getTypeList() {
      var _this = this;
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_BEANDETAIL_TYPELIST, {}, function (data) {
        _this.typeList.push({
          name: '全部',
          value: ''
        });
        _this.typeList = _this.typeList.concat(data);
      }, function () {}, this);
    },
    /** 切换类型 */changeTab: function changeTab(item) {
      this.type = item.value;
      this.typeName = item.name;
      this.showMask = false;
      this.mescroll.resetUpScroll();
    },
    /** 获取星豆数据 */getBeanList: function getBeanList(page) {
      var _this2 = this;
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_STARS_DETAIL, {
        type: this.type,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this2.dataList = [];
        }
        _this2.dataList = _this2.dataList.concat(data.waterList);
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(data.waterList.length);
        });
      }, function () {
        _this2.mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"outContainer mescroll"},[(_vm.showMask)?_c('div',{staticClass:"task",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showMask=false;}}},[_c('transition',{attrs:{"name":"fade"}},[_c('div',{staticClass:"boxContainer"},[_c('div',{staticClass:"title"},[_vm._v("明细类型")]),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._l((_vm.typeList),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.changeTab(item)}}},[(_vm.type===item.value)?_c('img',{attrs:{"src":__webpack_require__(1372),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1373),"alt":""}}),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.name))])])}),_vm._v(" "),(_vm.typeList.length===0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"20px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e()],2)])])],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"topTab"},[_c('span',{on:{"click":function($event){_vm.showMask=true;}}},[_vm._v(_vm._s(_vm.typeName)),_c('img',{attrs:{"src":__webpack_require__(2378),"alt":""}})])]),_vm._v(" "),_c('div',{staticStyle:{"height":"0.4rem","background-color":"#f2f2f2"}}),_vm._v(" "),_c('div',{staticClass:"detailList",attrs:{"id":"listContainer"}},_vm._l((_vm.dataList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',[_vm._v(_vm._s(item.remarks))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.createTime))]),_vm._v(" "),_c('div',{style:({color: item.isAddSub==1?'#EE4545':'#666'})},[_vm._v(_vm._s((item.isAddSub===1?'+':'-') + item.starBean)+"星豆")])])}),0)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/举报-选中.b2ad432.png";module.exports = __webpack_require__.p + "static/img/举报-未选中.800de05.png";module.exports = __webpack_require__.p + "static/img/下拉.8fe97f2.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(400);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_056a17b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1001);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2379)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-056a17b2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_056a17b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_056a17b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myStars_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2380);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("eb42d742", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-056a17b2]{background-color:#fff}.outContainer .summary[data-v-056a17b2]{height:3.625rem;overflow:hidden;padding-top:.8rem;padding-left:.6rem;position:relative}.outContainer .summary>div[data-v-056a17b2]:first-of-type{font-family:PingFangSC-Semibold;font-size:.8rem;color:#333}.outContainer .summary>div[data-v-056a17b2]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .summary>div:nth-of-type(2)>span[data-v-056a17b2]{color:#ee4545}.outContainer .summary .detail[data-v-056a17b2]{position:absolute;top:.8rem;right:.6rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;text-align:right}.outContainer .productList[data-v-056a17b2]{padding-left:.6rem}.outContainer .productList .border-1px[data-v-056a17b2]{position:relative}.outContainer .productList .border-1px[data-v-056a17b2]:before{content:\"\";position:absolute;left:0;top:0;width:200%;border-bottom:2px solid #f2f2f2;color:#f2f2f2;height:200%;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);pointer-events:none;box-sizing:border-box}@media (-webkit-min-device-pixel-ratio:3),screen and (min-device-pixel-ratio:3){.outContainer .productList .border-1px[data-v-056a17b2]:before{width:300%;height:300%;-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}}.outContainer .productList .item[data-v-056a17b2]{height:4.6rem;margin-bottom:1px;position:relative;overflow:hidden}.outContainer .productList .item>img[data-v-056a17b2]{width:3rem;height:3rem;margin-top:.8rem;float:left;pointer-events:none}.outContainer .productList .item .content[data-v-056a17b2]{margin-left:3.4rem;margin-top:.85rem}.outContainer .productList .item .content>div[data-v-056a17b2]:first-of-type{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .productList .item .content>div[data-v-056a17b2]:nth-of-type(2){margin-top:.4rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545}.outContainer .productList .item .exchange[data-v-056a17b2]{position:absolute;top:1.7rem;right:.6rem;width:3.5rem;padding-top:.15rem;padding-bottom:.15rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;text-align:center;border:1px solid #377ee1;border-radius:.7rem;overflow:hidden}.outContainer .productList .commingSoon[data-v-056a17b2]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666;text-align:center;padding-top:.8rem;padding-bottom:1rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _mintUi = __webpack_require__(7);
var _header = _interopRequireDefault(__webpack_require__(93));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    headerFixed: _header.default
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      totalStarBean: '',
      mescroll: null,
      // mescroll实例对象
      dataList: [] // 列表数据
    };
  },
  mounted: function mounted() {
    // 创建MeScroll对象
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getProductList,
        htmlNodata: '<p class="upwarp-nodata">更多兑换商品敬请期待...</p>',
        noMoreSize: 1,
        isBounce: false,
        empty: {
          warpId: 'listContainer',
          tip: '暂无相关数据'
        }
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /** 兑换商品 */exchangeProduct: function exchangeProduct(exchangeId) {
      var _this = this;
      (0, _mintUi.MessageBox)({
        title: '提示',
        message: '确认兑换当前商品？',
        closeOnClickModal: true,
        confirmButtonText: '兑换',
        showCancelButton: true,
        cancelButtonText: '取消'
      }).then(function (action) {
        if (action === 'confirm') {
          _this._Util.post(_this._Api.POST_COMMUNITY_TASKCENTER_USER_EXCHANGE_PRODUCT, {
            exchangeId: exchangeId
          }, function (data) {
            (0, _mintUi.Toast)({
              message: '兑换成功',
              position: 'middle',
              duration: 1500
            });
            _this.mescroll.resetUpScroll();
          }, function () {}, _this);
        }
      });
    },
    /** 获取兑换商品列表 */getProductList: function getProductList(page) {
      var _this2 = this;
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_EXCHANGE_PRODUCT_LIST, {
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this2.dataList = [];
        }
        _this2.totalStarBean = data.beanTotal;
        _this2.dataList = _this2.dataList.concat(data.mdseList);
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(data.mdseList.length);
        });
      }, function () {
        _this2.mescroll.endErr();
      }, this);
    },
    /** 星豆明细 */goStarsDetail: function goStarsDetail() {
      this.$router.push({
        name: 'starsDetail'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"outContainer mescroll"},[_c('div',{staticClass:"summary",style:(!_vm.isApp ? 'margin-top:2.6rem' : '')},[_c('div',[_vm._v("可兑换商品")]),_vm._v(" "),_c('div',[_vm._v("可用星豆数量："),_c('span',[_vm._v(_vm._s(_vm.totalStarBean))])]),_vm._v(" "),_c('div',{staticClass:"detail",on:{"click":_vm.goStarsDetail}},[_vm._v("星豆明细 >")])]),_vm._v(" "),_c('div',{staticStyle:{"height":"0.4rem","background-color":"#f2f2f2"}}),_vm._v(" "),_c('div',{staticClass:"productList",attrs:{"id":"listContainer"}},_vm._l((_vm.dataList),function(item,index){return _c('div',{key:index,staticClass:"item border-1px"},[_c('img',{attrs:{"src":item.picUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',[_vm._v(_vm._s(item.mdseName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.starBean)+"星豆")])]),_vm._v(" "),_c('div',{staticClass:"exchange",on:{"click":function($event){return _vm.exchangeProduct(item.exchangeId)}}},[_vm._v("兑换")])])}),0),_vm._v(" "),(!_vm.isApp)?_c('headerFixed'):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(401);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b50c0ca4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1002);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2381)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b50c0ca4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b50c0ca4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b50c0ca4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_signIn_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2382);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4fe9527b", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-b50c0ca4]{background-color:#f2f2f2}.outContainer .signContainer[data-v-b50c0ca4]{background-color:#fff;position:relative;min-height:7.975rem;padding-bottom:.8rem}.outContainer .signContainer .signTips[data-v-b50c0ca4]{position:absolute;top:.8rem;right:.6rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .signContainer .signTips>img[data-v-b50c0ca4]{width:2rem;height:1rem;position:relative;left:0;top:0}.outContainer .signContainer .signStatus[data-v-b50c0ca4]{padding-top:.8rem;padding-left:.6rem}.outContainer .signContainer .signStatus>div[data-v-b50c0ca4]:first-of-type{font-family:PingFangSC-Semibold;font-size:.8rem;color:#333}.outContainer .signContainer .signStatus>div[data-v-b50c0ca4]:nth-of-type(2){margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .signContainer .dateList[data-v-b50c0ca4]{margin-top:1rem;padding-bottom:.2rem;position:relative;padding:0 1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .signContainer .dateList .line[data-v-b50c0ca4]{background:#d8d8d8;border-radius:.125rem;width:17.55rem;height:.25rem;position:absolute;top:.5rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:0}.outContainer .signContainer .dateList .dateItem[data-v-b50c0ca4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;position:relative;z-index:1}.outContainer .signContainer .dateList .dateItem>p[data-v-b50c0ca4]:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .signContainer .dateList .dateItem>p[data-v-b50c0ca4]:nth-of-type(2){font-family:PingFangSC-Regular;font-size:.6rem;color:#666;margin-top:.2rem}.outContainer .signContainer .dateList .dateItem>img[data-v-b50c0ca4]{width:.8rem;height:.8rem;margin-top:.2rem}.outContainer .signContainer .dateList .dateItem.active>img[data-v-b50c0ca4]{width:1rem;height:.8rem}.outContainer .signContainer .dateList .dateItem.current>p[data-v-b50c0ca4]:first-of-type,.outContainer .signContainer .dateList .dateItem.current>p[data-v-b50c0ca4]:nth-of-type(2){color:#ee4545}.outContainer .signContainer .today[data-v-b50c0ca4]{text-align:center;margin-top:1rem}.outContainer .signContainer .today>div[data-v-b50c0ca4]{overflow:hidden;width:4.9rem;height:4.225rem;display:inline-block;background-color:#f2f2f2;border-radius:.2rem;background-image:url(" + escape(__webpack_require__(2383)) + ");background-size:100%;background-repeat:no-repeat}.outContainer .signContainer .today>div .top[data-v-b50c0ca4]{font-family:PingFangSC-Regular;font-size:.7rem;color:#fff;text-align:center;margin-top:.2rem}.outContainer .signContainer .today>div .top>img[data-v-b50c0ca4]{width:1rem;height:.85rem;vertical-align:middle}.outContainer .signContainer .today>div .content[data-v-b50c0ca4]{text-align:center;margin-top:.2rem}.outContainer .signContainer .today>div .content>p[data-v-b50c0ca4]:first-of-type{font-family:PingFangSC-Regular;font-size:.6rem;color:#333;text-align:center}.outContainer .signContainer .today>div .content>p:first-of-type > span[data-v-b50c0ca4]{font-size:1rem;color:#ee4545}.outContainer .signContainer .today>div .content>p[data-v-b50c0ca4]:nth-of-type(2){font-family:PingFangSC-Regular;font-size:.6rem;color:#333;text-align:center}.outContainer .rulesContainer[data-v-b50c0ca4]{padding-left:.6rem;padding-top:.8rem}.outContainer .rulesContainer>p[data-v-b50c0ca4]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/连续签到背景图.1f344e1.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _throttleDebounce = __webpack_require__(21);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      openRemind: false,
      starsList: [],
      continuityDay: 0
    };
  },
  created: function created() {
    this.getSignInfo();
  },
  mounted: function mounted() {},
  methods: {
    /** 进入广告页面 */goRankList: function goRankList() {
      var url = 'https://wx.kaxiuyun.com/v2/community/rankList?rankId=6';
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'rankContainer',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /** 获取签到信息 */getSignInfo: function getSignInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_SIGN_DETAIL, {}, function (data) {
        _this.openRemind = !!data.isNotice;
        _this.continuityDay = data.continuityDay;
        _this.starsList = data.beanList;
      }, function () {}, this);
    },
    /** 签到提醒开关 */
    toggleNotice: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this2 = this;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_SIGN_NOTICE, {
              isNotice: this.openRemind ? 0 : 1
            }, function (data) {
              console.log(data);
              _this2.openRemind = !!data;
              (0, _mintUi.Toast)({
                message: _this2.openRemind ? '开启成功' : '关闭成功',
                position: 'bottom',
                duration: 1500
              });
            }, function () {}, this, true);
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    })))
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"signContainer"},[_c('div',{staticClass:"signTips",on:{"click":_vm.toggleNotice}},[_vm._v("\n      签到提醒\n      "),(_vm.openRemind)?_c('img',{attrs:{"src":__webpack_require__(2384),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(2385),"alt":""}})]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"dateList"},[_c('div',{staticClass:"line"}),_vm._v(" "),_vm._l((_vm.starsList),function(val,index){return _c('div',{key:index,class:{dateItem: true, active:(index+1)<=_vm.continuityDay, current:(index+1)==_vm.continuityDay}},[((index+1)<=_vm.continuityDay)?_c('img',{attrs:{"src":__webpack_require__(2386),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(2387),"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s((index+1)==_vm.continuityDay?'今':(index+1))+"天")])])})],2),_vm._v(" "),(_vm.continuityDay>7)?_c('div',{staticClass:"today"},[_c('div',[_c('div',{staticClass:"top"},[_c('img',{attrs:{"src":__webpack_require__(2388),"alt":""}}),_vm._v("\n          +"+_vm._s(_vm.starsList[_vm.starsList.length-1])+"\n        ")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('p',[_c('span',[_vm._v(_vm._s(_vm.continuityDay))]),_vm._v("天")]),_vm._v(" "),_c('p',[_vm._v("连续签到")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","margin-top":"2rem","color":"#377EE1"},on:{"click":_vm.goRankList}},[_vm._v("社区签到排行榜>")])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"signStatus"},[_c('div',[_vm._v("今日已签到")]),_vm._v(" "),_c('div',[_vm._v("连续签到获得更多星豆哦")])])}]
module.exports = __webpack_require__.p + "static/img/开.25c99cd.png";module.exports = __webpack_require__.p + "static/img/关.4706c16.png";module.exports = __webpack_require__.p + "static/img/星豆-连续签到.1cd96d0.png";module.exports = __webpack_require__.p + "static/img/进度.08da764.png";module.exports = __webpack_require__.p + "static/img/星豆3.69a2662.png";(typeof document !== "undefined") && (typeof navigator !== "undefined") && (function (global, factory) {
   true ? module.exports = factory() :
  undefined;
})(this, (function () { 'use strict';

  var svgNS = 'http://www.w3.org/2000/svg';
  var locationHref = '';
  var _useWebWorker = false;
  var initialDefaultFrame = -999999;
  var setWebWorker = function setWebWorker(flag) {
    _useWebWorker = !!flag;
  };
  var getWebWorker = function getWebWorker() {
    return _useWebWorker;
  };
  var setLocationHref = function setLocationHref(value) {
    locationHref = value;
  };
  var getLocationHref = function getLocationHref() {
    return locationHref;
  };

  function createTag(type) {
    // return {appendChild:function(){},setAttribute:function(){},style:{}}
    return document.createElement(type);
  }

  function extendPrototype(sources, destination) {
    var i;
    var len = sources.length;
    var sourcePrototype;
    for (i = 0; i < len; i += 1) {
      sourcePrototype = sources[i].prototype;
      for (var attr in sourcePrototype) {
        if (Object.prototype.hasOwnProperty.call(sourcePrototype, attr)) destination.prototype[attr] = sourcePrototype[attr];
      }
    }
  }
  function getDescriptor(object, prop) {
    return Object.getOwnPropertyDescriptor(object, prop);
  }
  function createProxyFunction(prototype) {
    function ProxyFunction() {}
    ProxyFunction.prototype = prototype;
    return ProxyFunction;
  }

  // import Howl from '../../3rd_party/howler';

  var audioControllerFactory = function () {
    function AudioController(audioFactory) {
      this.audios = [];
      this.audioFactory = audioFactory;
      this._volume = 1;
      this._isMuted = false;
    }
    AudioController.prototype = {
      addAudio: function addAudio(audio) {
        this.audios.push(audio);
      },
      pause: function pause() {
        var i;
        var len = this.audios.length;
        for (i = 0; i < len; i += 1) {
          this.audios[i].pause();
        }
      },
      resume: function resume() {
        var i;
        var len = this.audios.length;
        for (i = 0; i < len; i += 1) {
          this.audios[i].resume();
        }
      },
      setRate: function setRate(rateValue) {
        var i;
        var len = this.audios.length;
        for (i = 0; i < len; i += 1) {
          this.audios[i].setRate(rateValue);
        }
      },
      createAudio: function createAudio(assetPath) {
        if (this.audioFactory) {
          return this.audioFactory(assetPath);
        }
        if (window.Howl) {
          return new window.Howl({
            src: [assetPath]
          });
        }
        return {
          isPlaying: false,
          play: function play() {
            this.isPlaying = true;
          },
          seek: function seek() {
            this.isPlaying = false;
          },
          playing: function playing() {},
          rate: function rate() {},
          setVolume: function setVolume() {}
        };
      },
      setAudioFactory: function setAudioFactory(audioFactory) {
        this.audioFactory = audioFactory;
      },
      setVolume: function setVolume(value) {
        this._volume = value;
        this._updateVolume();
      },
      mute: function mute() {
        this._isMuted = true;
        this._updateVolume();
      },
      unmute: function unmute() {
        this._isMuted = false;
        this._updateVolume();
      },
      getVolume: function getVolume() {
        return this._volume;
      },
      _updateVolume: function _updateVolume() {
        var i;
        var len = this.audios.length;
        for (i = 0; i < len; i += 1) {
          this.audios[i].volume(this._volume * (this._isMuted ? 0 : 1));
        }
      }
    };
    return function () {
      return new AudioController();
    };
  }();

  var createTypedArray = function () {
    function createRegularArray(type, len) {
      var i = 0;
      var arr = [];
      var value;
      switch (type) {
        case 'int16':
        case 'uint8c':
          value = 1;
          break;
        default:
          value = 1.1;
          break;
      }
      for (i = 0; i < len; i += 1) {
        arr.push(value);
      }
      return arr;
    }
    function createTypedArrayFactory(type, len) {
      if (type === 'float32') {
        return new Float32Array(len);
      }
      if (type === 'int16') {
        return new Int16Array(len);
      }
      if (type === 'uint8c') {
        return new Uint8ClampedArray(len);
      }
      return createRegularArray(type, len);
    }
    if (typeof Uint8ClampedArray === 'function' && typeof Float32Array === 'function') {
      return createTypedArrayFactory;
    }
    return createRegularArray;
  }();
  function createSizedArray(len) {
    return Array.apply(null, {
      length: len
    });
  }

  function _typeof$6(o) { "@babel/helpers - typeof"; return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$6(o); }
  var subframeEnabled = true;
  var expressionsPlugin = null;
  var expressionsInterfaces = null;
  var idPrefix$1 = '';
  var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
  var _shouldRoundValues = false;
  var bmPow = Math.pow;
  var bmSqrt = Math.sqrt;
  var bmFloor = Math.floor;
  var bmMax = Math.max;
  var bmMin = Math.min;
  var BMMath = {};
  (function () {
    var propertyNames = ['abs', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atanh', 'atan2', 'ceil', 'cbrt', 'expm1', 'clz32', 'cos', 'cosh', 'exp', 'floor', 'fround', 'hypot', 'imul', 'log', 'log1p', 'log2', 'log10', 'max', 'min', 'pow', 'random', 'round', 'sign', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'trunc', 'E', 'LN10', 'LN2', 'LOG10E', 'LOG2E', 'PI', 'SQRT1_2', 'SQRT2'];
    var i;
    var len = propertyNames.length;
    for (i = 0; i < len; i += 1) {
      BMMath[propertyNames[i]] = Math[propertyNames[i]];
    }
  })();
  function ProjectInterface$1() {
    return {};
  }
  BMMath.random = Math.random;
  BMMath.abs = function (val) {
    var tOfVal = _typeof$6(val);
    if (tOfVal === 'object' && val.length) {
      var absArr = createSizedArray(val.length);
      var i;
      var len = val.length;
      for (i = 0; i < len; i += 1) {
        absArr[i] = Math.abs(val[i]);
      }
      return absArr;
    }
    return Math.abs(val);
  };
  var defaultCurveSegments = 150;
  var degToRads = Math.PI / 180;
  var roundCorner = 0.5519;
  function roundValues(flag) {
    _shouldRoundValues = !!flag;
  }
  function bmRnd(value) {
    if (_shouldRoundValues) {
      return Math.round(value);
    }
    return value;
  }
  function styleDiv(element) {
    element.style.position = 'absolute';
    element.style.top = 0;
    element.style.left = 0;
    element.style.display = 'block';
    element.style.transformOrigin = '0 0';
    element.style.webkitTransformOrigin = '0 0';
    element.style.backfaceVisibility = 'visible';
    element.style.webkitBackfaceVisibility = 'visible';
    element.style.transformStyle = 'preserve-3d';
    element.style.webkitTransformStyle = 'preserve-3d';
    element.style.mozTransformStyle = 'preserve-3d';
  }
  function BMEnterFrameEvent(type, currentTime, totalTime, frameMultiplier) {
    this.type = type;
    this.currentTime = currentTime;
    this.totalTime = totalTime;
    this.direction = frameMultiplier < 0 ? -1 : 1;
  }
  function BMCompleteEvent(type, frameMultiplier) {
    this.type = type;
    this.direction = frameMultiplier < 0 ? -1 : 1;
  }
  function BMCompleteLoopEvent(type, totalLoops, currentLoop, frameMultiplier) {
    this.type = type;
    this.currentLoop = currentLoop;
    this.totalLoops = totalLoops;
    this.direction = frameMultiplier < 0 ? -1 : 1;
  }
  function BMSegmentStartEvent(type, firstFrame, totalFrames) {
    this.type = type;
    this.firstFrame = firstFrame;
    this.totalFrames = totalFrames;
  }
  function BMDestroyEvent(type, target) {
    this.type = type;
    this.target = target;
  }
  function BMRenderFrameErrorEvent(nativeError, currentTime) {
    this.type = 'renderFrameError';
    this.nativeError = nativeError;
    this.currentTime = currentTime;
  }
  function BMConfigErrorEvent(nativeError) {
    this.type = 'configError';
    this.nativeError = nativeError;
  }
  function BMAnimationConfigErrorEvent(type, nativeError) {
    this.type = type;
    this.nativeError = nativeError;
  }
  var createElementID = function () {
    var _count = 0;
    return function createID() {
      _count += 1;
      return idPrefix$1 + '__lottie_element_' + _count;
    };
  }();
  function HSVtoRGB(h, s, v) {
    var r;
    var g;
    var b;
    var i;
    var f;
    var p;
    var q;
    var t;
    i = Math.floor(h * 6);
    f = h * 6 - i;
    p = v * (1 - s);
    q = v * (1 - f * s);
    t = v * (1 - (1 - f) * s);
    switch (i % 6) {
      case 0:
        r = v;
        g = t;
        b = p;
        break;
      case 1:
        r = q;
        g = v;
        b = p;
        break;
      case 2:
        r = p;
        g = v;
        b = t;
        break;
      case 3:
        r = p;
        g = q;
        b = v;
        break;
      case 4:
        r = t;
        g = p;
        b = v;
        break;
      case 5:
        r = v;
        g = p;
        b = q;
        break;
      default:
        break;
    }
    return [r, g, b];
  }
  function RGBtoHSV(r, g, b) {
    var max = Math.max(r, g, b);
    var min = Math.min(r, g, b);
    var d = max - min;
    var h;
    var s = max === 0 ? 0 : d / max;
    var v = max / 255;
    switch (max) {
      case min:
        h = 0;
        break;
      case r:
        h = g - b + d * (g < b ? 6 : 0);
        h /= 6 * d;
        break;
      case g:
        h = b - r + d * 2;
        h /= 6 * d;
        break;
      case b:
        h = r - g + d * 4;
        h /= 6 * d;
        break;
      default:
        break;
    }
    return [h, s, v];
  }
  function addSaturationToRGB(color, offset) {
    var hsv = RGBtoHSV(color[0] * 255, color[1] * 255, color[2] * 255);
    hsv[1] += offset;
    if (hsv[1] > 1) {
      hsv[1] = 1;
    } else if (hsv[1] <= 0) {
      hsv[1] = 0;
    }
    return HSVtoRGB(hsv[0], hsv[1], hsv[2]);
  }
  function addBrightnessToRGB(color, offset) {
    var hsv = RGBtoHSV(color[0] * 255, color[1] * 255, color[2] * 255);
    hsv[2] += offset;
    if (hsv[2] > 1) {
      hsv[2] = 1;
    } else if (hsv[2] < 0) {
      hsv[2] = 0;
    }
    return HSVtoRGB(hsv[0], hsv[1], hsv[2]);
  }
  function addHueToRGB(color, offset) {
    var hsv = RGBtoHSV(color[0] * 255, color[1] * 255, color[2] * 255);
    hsv[0] += offset / 360;
    if (hsv[0] > 1) {
      hsv[0] -= 1;
    } else if (hsv[0] < 0) {
      hsv[0] += 1;
    }
    return HSVtoRGB(hsv[0], hsv[1], hsv[2]);
  }
  var rgbToHex = function () {
    var colorMap = [];
    var i;
    var hex;
    for (i = 0; i < 256; i += 1) {
      hex = i.toString(16);
      colorMap[i] = hex.length === 1 ? '0' + hex : hex;
    }
    return function (r, g, b) {
      if (r < 0) {
        r = 0;
      }
      if (g < 0) {
        g = 0;
      }
      if (b < 0) {
        b = 0;
      }
      return '#' + colorMap[r] + colorMap[g] + colorMap[b];
    };
  }();
  var setSubframeEnabled = function setSubframeEnabled(flag) {
    subframeEnabled = !!flag;
  };
  var getSubframeEnabled = function getSubframeEnabled() {
    return subframeEnabled;
  };
  var setExpressionsPlugin = function setExpressionsPlugin(value) {
    expressionsPlugin = value;
  };
  var getExpressionsPlugin = function getExpressionsPlugin() {
    return expressionsPlugin;
  };
  var setExpressionInterfaces = function setExpressionInterfaces(value) {
    expressionsInterfaces = value;
  };
  var getExpressionInterfaces = function getExpressionInterfaces() {
    return expressionsInterfaces;
  };
  var setDefaultCurveSegments = function setDefaultCurveSegments(value) {
    defaultCurveSegments = value;
  };
  var getDefaultCurveSegments = function getDefaultCurveSegments() {
    return defaultCurveSegments;
  };
  var setIdPrefix = function setIdPrefix(value) {
    idPrefix$1 = value;
  };
  var getIdPrefix = function getIdPrefix() {
    return idPrefix$1;
  };

  function createNS(type) {
    // return {appendChild:function(){},setAttribute:function(){},style:{}}
    return document.createElementNS(svgNS, type);
  }

  function _typeof$5(o) { "@babel/helpers - typeof"; return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$5(o); }
  var dataManager = function () {
    var _counterId = 1;
    var processes = [];
    var workerFn;
    var workerInstance;
    var workerProxy = {
      onmessage: function onmessage() {},
      postMessage: function postMessage(path) {
        workerFn({
          data: path
        });
      }
    };
    var _workerSelf = {
      postMessage: function postMessage(data) {
        workerProxy.onmessage({
          data: data
        });
      }
    };
    function createWorker(fn) {
      if (window.Worker && window.Blob && getWebWorker()) {
        var blob = new Blob(['var _workerSelf = self; self.onmessage = ', fn.toString()], {
          type: 'text/javascript'
        });
        // var blob = new Blob(['self.onmessage = ', fn.toString()], { type: 'text/javascript' });
        var url = URL.createObjectURL(blob);
        return new Worker(url);
      }
      workerFn = fn;
      return workerProxy;
    }
    function setupWorker() {
      if (!workerInstance) {
        workerInstance = createWorker(function workerStart(e) {
          function dataFunctionManager() {
            function completeLayers(layers, comps) {
              var layerData;
              var i;
              var len = layers.length;
              var j;
              var jLen;
              var k;
              var kLen;
              for (i = 0; i < len; i += 1) {
                layerData = layers[i];
                if ('ks' in layerData && !layerData.completed) {
                  layerData.completed = true;
                  if (layerData.hasMask) {
                    var maskProps = layerData.masksProperties;
                    jLen = maskProps.length;
                    for (j = 0; j < jLen; j += 1) {
                      if (maskProps[j].pt.k.i) {
                        convertPathsToAbsoluteValues(maskProps[j].pt.k);
                      } else {
                        kLen = maskProps[j].pt.k.length;
                        for (k = 0; k < kLen; k += 1) {
                          if (maskProps[j].pt.k[k].s) {
                            convertPathsToAbsoluteValues(maskProps[j].pt.k[k].s[0]);
                          }
                          if (maskProps[j].pt.k[k].e) {
                            convertPathsToAbsoluteValues(maskProps[j].pt.k[k].e[0]);
                          }
                        }
                      }
                    }
                  }
                  if (layerData.ty === 0) {
                    layerData.layers = findCompLayers(layerData.refId, comps);
                    completeLayers(layerData.layers, comps);
                  } else if (layerData.ty === 4) {
                    completeShapes(layerData.shapes);
                  } else if (layerData.ty === 5) {
                    completeText(layerData);
                  }
                }
              }
            }
            function completeChars(chars, assets) {
              if (chars) {
                var i = 0;
                var len = chars.length;
                for (i = 0; i < len; i += 1) {
                  if (chars[i].t === 1) {
                    // var compData = findComp(chars[i].data.refId, assets);
                    chars[i].data.layers = findCompLayers(chars[i].data.refId, assets);
                    // chars[i].data.ip = 0;
                    // chars[i].data.op = 99999;
                    // chars[i].data.st = 0;
                    // chars[i].data.sr = 1;
                    // chars[i].w = compData.w;
                    // chars[i].data.ks = {
                    //   a: { k: [0, 0, 0], a: 0 },
                    //   p: { k: [0, -compData.h, 0], a: 0 },
                    //   r: { k: 0, a: 0 },
                    //   s: { k: [100, 100], a: 0 },
                    //   o: { k: 100, a: 0 },
                    // };
                    completeLayers(chars[i].data.layers, assets);
                  }
                }
              }
            }
            function findComp(id, comps) {
              var i = 0;
              var len = comps.length;
              while (i < len) {
                if (comps[i].id === id) {
                  return comps[i];
                }
                i += 1;
              }
              return null;
            }
            function findCompLayers(id, comps) {
              var comp = findComp(id, comps);
              if (comp) {
                if (!comp.layers.__used) {
                  comp.layers.__used = true;
                  return comp.layers;
                }
                return JSON.parse(JSON.stringify(comp.layers));
              }
              return null;
            }
            function completeShapes(arr) {
              var i;
              var len = arr.length;
              var j;
              var jLen;
              for (i = len - 1; i >= 0; i -= 1) {
                if (arr[i].ty === 'sh') {
                  if (arr[i].ks.k.i) {
                    convertPathsToAbsoluteValues(arr[i].ks.k);
                  } else {
                    jLen = arr[i].ks.k.length;
                    for (j = 0; j < jLen; j += 1) {
                      if (arr[i].ks.k[j].s) {
                        convertPathsToAbsoluteValues(arr[i].ks.k[j].s[0]);
                      }
                      if (arr[i].ks.k[j].e) {
                        convertPathsToAbsoluteValues(arr[i].ks.k[j].e[0]);
                      }
                    }
                  }
                } else if (arr[i].ty === 'gr') {
                  completeShapes(arr[i].it);
                }
              }
            }
            function convertPathsToAbsoluteValues(path) {
              var i;
              var len = path.i.length;
              for (i = 0; i < len; i += 1) {
                path.i[i][0] += path.v[i][0];
                path.i[i][1] += path.v[i][1];
                path.o[i][0] += path.v[i][0];
                path.o[i][1] += path.v[i][1];
              }
            }
            function checkVersion(minimum, animVersionString) {
              var animVersion = animVersionString ? animVersionString.split('.') : [100, 100, 100];
              if (minimum[0] > animVersion[0]) {
                return true;
              }
              if (animVersion[0] > minimum[0]) {
                return false;
              }
              if (minimum[1] > animVersion[1]) {
                return true;
              }
              if (animVersion[1] > minimum[1]) {
                return false;
              }
              if (minimum[2] > animVersion[2]) {
                return true;
              }
              if (animVersion[2] > minimum[2]) {
                return false;
              }
              return null;
            }
            var checkText = function () {
              var minimumVersion = [4, 4, 14];
              function updateTextLayer(textLayer) {
                var documentData = textLayer.t.d;
                textLayer.t.d = {
                  k: [{
                    s: documentData,
                    t: 0
                  }]
                };
              }
              function iterateLayers(layers) {
                var i;
                var len = layers.length;
                for (i = 0; i < len; i += 1) {
                  if (layers[i].ty === 5) {
                    updateTextLayer(layers[i]);
                  }
                }
              }
              return function (animationData) {
                if (checkVersion(minimumVersion, animationData.v)) {
                  iterateLayers(animationData.layers);
                  if (animationData.assets) {
                    var i;
                    var len = animationData.assets.length;
                    for (i = 0; i < len; i += 1) {
                      if (animationData.assets[i].layers) {
                        iterateLayers(animationData.assets[i].layers);
                      }
                    }
                  }
                }
              };
            }();
            var checkChars = function () {
              var minimumVersion = [4, 7, 99];
              return function (animationData) {
                if (animationData.chars && !checkVersion(minimumVersion, animationData.v)) {
                  var i;
                  var len = animationData.chars.length;
                  for (i = 0; i < len; i += 1) {
                    var charData = animationData.chars[i];
                    if (charData.data && charData.data.shapes) {
                      completeShapes(charData.data.shapes);
                      charData.data.ip = 0;
                      charData.data.op = 99999;
                      charData.data.st = 0;
                      charData.data.sr = 1;
                      charData.data.ks = {
                        p: {
                          k: [0, 0],
                          a: 0
                        },
                        s: {
                          k: [100, 100],
                          a: 0
                        },
                        a: {
                          k: [0, 0],
                          a: 0
                        },
                        r: {
                          k: 0,
                          a: 0
                        },
                        o: {
                          k: 100,
                          a: 0
                        }
                      };
                      if (!animationData.chars[i].t) {
                        charData.data.shapes.push({
                          ty: 'no'
                        });
                        charData.data.shapes[0].it.push({
                          p: {
                            k: [0, 0],
                            a: 0
                          },
                          s: {
                            k: [100, 100],
                            a: 0
                          },
                          a: {
                            k: [0, 0],
                            a: 0
                          },
                          r: {
                            k: 0,
                            a: 0
                          },
                          o: {
                            k: 100,
                            a: 0
                          },
                          sk: {
                            k: 0,
                            a: 0
                          },
                          sa: {
                            k: 0,
                            a: 0
                          },
                          ty: 'tr'
                        });
                      }
                    }
                  }
                }
              };
            }();
            var checkPathProperties = function () {
              var minimumVersion = [5, 7, 15];
              function updateTextLayer(textLayer) {
                var pathData = textLayer.t.p;
                if (typeof pathData.a === 'number') {
                  pathData.a = {
                    a: 0,
                    k: pathData.a
                  };
                }
                if (typeof pathData.p === 'number') {
                  pathData.p = {
                    a: 0,
                    k: pathData.p
                  };
                }
                if (typeof pathData.r === 'number') {
                  pathData.r = {
                    a: 0,
                    k: pathData.r
                  };
                }
              }
              function iterateLayers(layers) {
                var i;
                var len = layers.length;
                for (i = 0; i < len; i += 1) {
                  if (layers[i].ty === 5) {
                    updateTextLayer(layers[i]);
                  }
                }
              }
              return function (animationData) {
                if (checkVersion(minimumVersion, animationData.v)) {
                  iterateLayers(animationData.layers);
                  if (animationData.assets) {
                    var i;
                    var len = animationData.assets.length;
                    for (i = 0; i < len; i += 1) {
                      if (animationData.assets[i].layers) {
                        iterateLayers(animationData.assets[i].layers);
                      }
                    }
                  }
                }
              };
            }();
            var checkColors = function () {
              var minimumVersion = [4, 1, 9];
              function iterateShapes(shapes) {
                var i;
                var len = shapes.length;
                var j;
                var jLen;
                for (i = 0; i < len; i += 1) {
                  if (shapes[i].ty === 'gr') {
                    iterateShapes(shapes[i].it);
                  } else if (shapes[i].ty === 'fl' || shapes[i].ty === 'st') {
                    if (shapes[i].c.k && shapes[i].c.k[0].i) {
                      jLen = shapes[i].c.k.length;
                      for (j = 0; j < jLen; j += 1) {
                        if (shapes[i].c.k[j].s) {
                          shapes[i].c.k[j].s[0] /= 255;
                          shapes[i].c.k[j].s[1] /= 255;
                          shapes[i].c.k[j].s[2] /= 255;
                          shapes[i].c.k[j].s[3] /= 255;
                        }
                        if (shapes[i].c.k[j].e) {
                          shapes[i].c.k[j].e[0] /= 255;
                          shapes[i].c.k[j].e[1] /= 255;
                          shapes[i].c.k[j].e[2] /= 255;
                          shapes[i].c.k[j].e[3] /= 255;
                        }
                      }
                    } else {
                      shapes[i].c.k[0] /= 255;
                      shapes[i].c.k[1] /= 255;
                      shapes[i].c.k[2] /= 255;
                      shapes[i].c.k[3] /= 255;
                    }
                  }
                }
              }
              function iterateLayers(layers) {
                var i;
                var len = layers.length;
                for (i = 0; i < len; i += 1) {
                  if (layers[i].ty === 4) {
                    iterateShapes(layers[i].shapes);
                  }
                }
              }
              return function (animationData) {
                if (checkVersion(minimumVersion, animationData.v)) {
                  iterateLayers(animationData.layers);
                  if (animationData.assets) {
                    var i;
                    var len = animationData.assets.length;
                    for (i = 0; i < len; i += 1) {
                      if (animationData.assets[i].layers) {
                        iterateLayers(animationData.assets[i].layers);
                      }
                    }
                  }
                }
              };
            }();
            var checkShapes = function () {
              var minimumVersion = [4, 4, 18];
              function completeClosingShapes(arr) {
                var i;
                var len = arr.length;
                var j;
                var jLen;
                for (i = len - 1; i >= 0; i -= 1) {
                  if (arr[i].ty === 'sh') {
                    if (arr[i].ks.k.i) {
                      arr[i].ks.k.c = arr[i].closed;
                    } else {
                      jLen = arr[i].ks.k.length;
                      for (j = 0; j < jLen; j += 1) {
                        if (arr[i].ks.k[j].s) {
                          arr[i].ks.k[j].s[0].c = arr[i].closed;
                        }
                        if (arr[i].ks.k[j].e) {
                          arr[i].ks.k[j].e[0].c = arr[i].closed;
                        }
                      }
                    }
                  } else if (arr[i].ty === 'gr') {
                    completeClosingShapes(arr[i].it);
                  }
                }
              }
              function iterateLayers(layers) {
                var layerData;
                var i;
                var len = layers.length;
                var j;
                var jLen;
                var k;
                var kLen;
                for (i = 0; i < len; i += 1) {
                  layerData = layers[i];
                  if (layerData.hasMask) {
                    var maskProps = layerData.masksProperties;
                    jLen = maskProps.length;
                    for (j = 0; j < jLen; j += 1) {
                      if (maskProps[j].pt.k.i) {
                        maskProps[j].pt.k.c = maskProps[j].cl;
                      } else {
                        kLen = maskProps[j].pt.k.length;
                        for (k = 0; k < kLen; k += 1) {
                          if (maskProps[j].pt.k[k].s) {
                            maskProps[j].pt.k[k].s[0].c = maskProps[j].cl;
                          }
                          if (maskProps[j].pt.k[k].e) {
                            maskProps[j].pt.k[k].e[0].c = maskProps[j].cl;
                          }
                        }
                      }
                    }
                  }
                  if (layerData.ty === 4) {
                    completeClosingShapes(layerData.shapes);
                  }
                }
              }
              return function (animationData) {
                if (checkVersion(minimumVersion, animationData.v)) {
                  iterateLayers(animationData.layers);
                  if (animationData.assets) {
                    var i;
                    var len = animationData.assets.length;
                    for (i = 0; i < len; i += 1) {
                      if (animationData.assets[i].layers) {
                        iterateLayers(animationData.assets[i].layers);
                      }
                    }
                  }
                }
              };
            }();
            function completeData(animationData) {
              if (animationData.__complete) {
                return;
              }
              checkColors(animationData);
              checkText(animationData);
              checkChars(animationData);
              checkPathProperties(animationData);
              checkShapes(animationData);
              completeLayers(animationData.layers, animationData.assets);
              completeChars(animationData.chars, animationData.assets);
              animationData.__complete = true;
            }
            function completeText(data) {
              if (data.t.a.length === 0 && !('m' in data.t.p)) {
                // data.singleShape = true;
              }
            }
            var moduleOb = {};
            moduleOb.completeData = completeData;
            moduleOb.checkColors = checkColors;
            moduleOb.checkChars = checkChars;
            moduleOb.checkPathProperties = checkPathProperties;
            moduleOb.checkShapes = checkShapes;
            moduleOb.completeLayers = completeLayers;
            return moduleOb;
          }
          if (!_workerSelf.dataManager) {
            _workerSelf.dataManager = dataFunctionManager();
          }
          if (!_workerSelf.assetLoader) {
            _workerSelf.assetLoader = function () {
              function formatResponse(xhr) {
                // using typeof doubles the time of execution of this method,
                // so if available, it's better to use the header to validate the type
                var contentTypeHeader = xhr.getResponseHeader('content-type');
                if (contentTypeHeader && xhr.responseType === 'json' && contentTypeHeader.indexOf('json') !== -1) {
                  return xhr.response;
                }
                if (xhr.response && _typeof$5(xhr.response) === 'object') {
                  return xhr.response;
                }
                if (xhr.response && typeof xhr.response === 'string') {
                  return JSON.parse(xhr.response);
                }
                if (xhr.responseText) {
                  return JSON.parse(xhr.responseText);
                }
                return null;
              }
              function loadAsset(path, fullPath, callback, errorCallback) {
                var response;
                var xhr = new XMLHttpRequest();
                // set responseType after calling open or IE will break.
                try {
                  // This crashes on Android WebView prior to KitKat
                  xhr.responseType = 'json';
                } catch (err) {} // eslint-disable-line no-empty
                xhr.onreadystatechange = function () {
                  if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                      response = formatResponse(xhr);
                      callback(response);
                    } else {
                      try {
                        response = formatResponse(xhr);
                        callback(response);
                      } catch (err) {
                        if (errorCallback) {
                          errorCallback(err);
                        }
                      }
                    }
                  }
                };
                try {
                  // Hack to workaround banner validation
                  xhr.open(['G', 'E', 'T'].join(''), path, true);
                } catch (error) {
                  // Hack to workaround banner validation
                  xhr.open(['G', 'E', 'T'].join(''), fullPath + '/' + path, true);
                }
                xhr.send();
              }
              return {
                load: loadAsset
              };
            }();
          }
          if (e.data.type === 'loadAnimation') {
            _workerSelf.assetLoader.load(e.data.path, e.data.fullPath, function (data) {
              _workerSelf.dataManager.completeData(data);
              _workerSelf.postMessage({
                id: e.data.id,
                payload: data,
                status: 'success'
              });
            }, function () {
              _workerSelf.postMessage({
                id: e.data.id,
                status: 'error'
              });
            });
          } else if (e.data.type === 'complete') {
            var animation = e.data.animation;
            _workerSelf.dataManager.completeData(animation);
            _workerSelf.postMessage({
              id: e.data.id,
              payload: animation,
              status: 'success'
            });
          } else if (e.data.type === 'loadData') {
            _workerSelf.assetLoader.load(e.data.path, e.data.fullPath, function (data) {
              _workerSelf.postMessage({
                id: e.data.id,
                payload: data,
                status: 'success'
              });
            }, function () {
              _workerSelf.postMessage({
                id: e.data.id,
                status: 'error'
              });
            });
          }
        });
        workerInstance.onmessage = function (event) {
          var data = event.data;
          var id = data.id;
          var process = processes[id];
          processes[id] = null;
          if (data.status === 'success') {
            process.onComplete(data.payload);
          } else if (process.onError) {
            process.onError();
          }
        };
      }
    }
    function createProcess(onComplete, onError) {
      _counterId += 1;
      var id = 'processId_' + _counterId;
      processes[id] = {
        onComplete: onComplete,
        onError: onError
      };
      return id;
    }
    function loadAnimation(path, onComplete, onError) {
      setupWorker();
      var processId = createProcess(onComplete, onError);
      workerInstance.postMessage({
        type: 'loadAnimation',
        path: path,
        fullPath: window.location.origin + window.location.pathname,
        id: processId
      });
    }
    function loadData(path, onComplete, onError) {
      setupWorker();
      var processId = createProcess(onComplete, onError);
      workerInstance.postMessage({
        type: 'loadData',
        path: path,
        fullPath: window.location.origin + window.location.pathname,
        id: processId
      });
    }
    function completeAnimation(anim, onComplete, onError) {
      setupWorker();
      var processId = createProcess(onComplete, onError);
      workerInstance.postMessage({
        type: 'complete',
        animation: anim,
        id: processId
      });
    }
    return {
      loadAnimation: loadAnimation,
      loadData: loadData,
      completeAnimation: completeAnimation
    };
  }();

  var ImagePreloader = function () {
    var proxyImage = function () {
      var canvas = createTag('canvas');
      canvas.width = 1;
      canvas.height = 1;
      var ctx = canvas.getContext('2d');
      ctx.fillStyle = 'rgba(0,0,0,0)';
      ctx.fillRect(0, 0, 1, 1);
      return canvas;
    }();
    function imageLoaded() {
      this.loadedAssets += 1;
      if (this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages) {
        if (this.imagesLoadedCb) {
          this.imagesLoadedCb(null);
        }
      }
    }
    function footageLoaded() {
      this.loadedFootagesCount += 1;
      if (this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages) {
        if (this.imagesLoadedCb) {
          this.imagesLoadedCb(null);
        }
      }
    }
    function getAssetsPath(assetData, assetsPath, originalPath) {
      var path = '';
      if (assetData.e) {
        path = assetData.p;
      } else if (assetsPath) {
        var imagePath = assetData.p;
        if (imagePath.indexOf('images/') !== -1) {
          imagePath = imagePath.split('/')[1];
        }
        path = assetsPath + imagePath;
      } else {
        path = originalPath;
        path += assetData.u ? assetData.u : '';
        path += assetData.p;
      }
      return path;
    }
    function testImageLoaded(img) {
      var _count = 0;
      var intervalId = setInterval(function () {
        var box = img.getBBox();
        if (box.width || _count > 500) {
          this._imageLoaded();
          clearInterval(intervalId);
        }
        _count += 1;
      }.bind(this), 50);
    }
    function createImageData(assetData) {
      var path = getAssetsPath(assetData, this.assetsPath, this.path);
      var img = createNS('image');
      if (isSafari) {
        this.testImageLoaded(img);
      } else {
        img.addEventListener('load', this._imageLoaded, false);
      }
      img.addEventListener('error', function () {
        ob.img = proxyImage;
        this._imageLoaded();
      }.bind(this), false);
      img.setAttributeNS('http://www.w3.org/1999/xlink', 'href', path);
      if (this._elementHelper.append) {
        this._elementHelper.append(img);
      } else {
        this._elementHelper.appendChild(img);
      }
      var ob = {
        img: img,
        assetData: assetData
      };
      return ob;
    }
    function createImgData(assetData) {
      var path = getAssetsPath(assetData, this.assetsPath, this.path);
      var img = createTag('img');
      img.crossOrigin = 'anonymous';
      img.addEventListener('load', this._imageLoaded, false);
      img.addEventListener('error', function () {
        ob.img = proxyImage;
        this._imageLoaded();
      }.bind(this), false);
      img.src = path;
      var ob = {
        img: img,
        assetData: assetData
      };
      return ob;
    }
    function createFootageData(data) {
      var ob = {
        assetData: data
      };
      var path = getAssetsPath(data, this.assetsPath, this.path);
      dataManager.loadData(path, function (footageData) {
        ob.img = footageData;
        this._footageLoaded();
      }.bind(this), function () {
        ob.img = {};
        this._footageLoaded();
      }.bind(this));
      return ob;
    }
    function loadAssets(assets, cb) {
      this.imagesLoadedCb = cb;
      var i;
      var len = assets.length;
      for (i = 0; i < len; i += 1) {
        if (!assets[i].layers) {
          if (!assets[i].t || assets[i].t === 'seq') {
            this.totalImages += 1;
            this.images.push(this._createImageData(assets[i]));
          } else if (assets[i].t === 3) {
            this.totalFootages += 1;
            this.images.push(this.createFootageData(assets[i]));
          }
        }
      }
    }
    function setPath(path) {
      this.path = path || '';
    }
    function setAssetsPath(path) {
      this.assetsPath = path || '';
    }
    function getAsset(assetData) {
      var i = 0;
      var len = this.images.length;
      while (i < len) {
        if (this.images[i].assetData === assetData) {
          return this.images[i].img;
        }
        i += 1;
      }
      return null;
    }
    function destroy() {
      this.imagesLoadedCb = null;
      this.images.length = 0;
    }
    function loadedImages() {
      return this.totalImages === this.loadedAssets;
    }
    function loadedFootages() {
      return this.totalFootages === this.loadedFootagesCount;
    }
    function setCacheType(type, elementHelper) {
      if (type === 'svg') {
        this._elementHelper = elementHelper;
        this._createImageData = this.createImageData.bind(this);
      } else {
        this._createImageData = this.createImgData.bind(this);
      }
    }
    function ImagePreloaderFactory() {
      this._imageLoaded = imageLoaded.bind(this);
      this._footageLoaded = footageLoaded.bind(this);
      this.testImageLoaded = testImageLoaded.bind(this);
      this.createFootageData = createFootageData.bind(this);
      this.assetsPath = '';
      this.path = '';
      this.totalImages = 0;
      this.totalFootages = 0;
      this.loadedAssets = 0;
      this.loadedFootagesCount = 0;
      this.imagesLoadedCb = null;
      this.images = [];
    }
    ImagePreloaderFactory.prototype = {
      loadAssets: loadAssets,
      setAssetsPath: setAssetsPath,
      setPath: setPath,
      loadedImages: loadedImages,
      loadedFootages: loadedFootages,
      destroy: destroy,
      getAsset: getAsset,
      createImgData: createImgData,
      createImageData: createImageData,
      imageLoaded: imageLoaded,
      footageLoaded: footageLoaded,
      setCacheType: setCacheType
    };
    return ImagePreloaderFactory;
  }();

  function BaseEvent() {}
  BaseEvent.prototype = {
    triggerEvent: function triggerEvent(eventName, args) {
      if (this._cbs[eventName]) {
        var callbacks = this._cbs[eventName];
        for (var i = 0; i < callbacks.length; i += 1) {
          callbacks[i](args);
        }
      }
    },
    addEventListener: function addEventListener(eventName, callback) {
      if (!this._cbs[eventName]) {
        this._cbs[eventName] = [];
      }
      this._cbs[eventName].push(callback);
      return function () {
        this.removeEventListener(eventName, callback);
      }.bind(this);
    },
    removeEventListener: function removeEventListener(eventName, callback) {
      if (!callback) {
        this._cbs[eventName] = null;
      } else if (this._cbs[eventName]) {
        var i = 0;
        var len = this._cbs[eventName].length;
        while (i < len) {
          if (this._cbs[eventName][i] === callback) {
            this._cbs[eventName].splice(i, 1);
            i -= 1;
            len -= 1;
          }
          i += 1;
        }
        if (!this._cbs[eventName].length) {
          this._cbs[eventName] = null;
        }
      }
    }
  };

  var markerParser = function () {
    function parsePayloadLines(payload) {
      var lines = payload.split('\r\n');
      var keys = {};
      var line;
      var keysCount = 0;
      for (var i = 0; i < lines.length; i += 1) {
        line = lines[i].split(':');
        if (line.length === 2) {
          keys[line[0]] = line[1].trim();
          keysCount += 1;
        }
      }
      if (keysCount === 0) {
        throw new Error();
      }
      return keys;
    }
    return function (_markers) {
      var markers = [];
      for (var i = 0; i < _markers.length; i += 1) {
        var _marker = _markers[i];
        var markerData = {
          time: _marker.tm,
          duration: _marker.dr
        };
        try {
          markerData.payload = JSON.parse(_markers[i].cm);
        } catch (_) {
          try {
            markerData.payload = parsePayloadLines(_markers[i].cm);
          } catch (__) {
            markerData.payload = {
              name: _markers[i].cm
            };
          }
        }
        markers.push(markerData);
      }
      return markers;
    };
  }();

  var ProjectInterface = function () {
    function registerComposition(comp) {
      this.compositions.push(comp);
    }
    return function () {
      function _thisProjectFunction(name) {
        var i = 0;
        var len = this.compositions.length;
        while (i < len) {
          if (this.compositions[i].data && this.compositions[i].data.nm === name) {
            if (this.compositions[i].prepareFrame && this.compositions[i].data.xt) {
              this.compositions[i].prepareFrame(this.currentFrame);
            }
            return this.compositions[i].compInterface;
          }
          i += 1;
        }
        return null;
      }
      _thisProjectFunction.compositions = [];
      _thisProjectFunction.currentFrame = 0;
      _thisProjectFunction.registerComposition = registerComposition;
      return _thisProjectFunction;
    };
  }();

  var renderers = {};
  var registerRenderer = function registerRenderer(key, value) {
    renderers[key] = value;
  };
  function getRenderer(key) {
    return renderers[key];
  }
  function getRegisteredRenderer() {
    // Returns canvas by default for compatibility
    if (renderers.canvas) {
      return 'canvas';
    }
    // Returns any renderer that is registered
    for (var key in renderers) {
      if (renderers[key]) {
        return key;
      }
    }
    return '';
  }

  function _typeof$4(o) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$4(o); }
  var AnimationItem = function AnimationItem() {
    this._cbs = [];
    this.name = '';
    this.path = '';
    this.isLoaded = false;
    this.currentFrame = 0;
    this.currentRawFrame = 0;
    this.firstFrame = 0;
    this.totalFrames = 0;
    this.frameRate = 0;
    this.frameMult = 0;
    this.playSpeed = 1;
    this.playDirection = 1;
    this.playCount = 0;
    this.animationData = {};
    this.assets = [];
    this.isPaused = true;
    this.autoplay = false;
    this.loop = true;
    this.renderer = null;
    this.animationID = createElementID();
    this.assetsPath = '';
    this.timeCompleted = 0;
    this.segmentPos = 0;
    this.isSubframeEnabled = getSubframeEnabled();
    this.segments = [];
    this._idle = true;
    this._completedLoop = false;
    this.projectInterface = ProjectInterface();
    this.imagePreloader = new ImagePreloader();
    this.audioController = audioControllerFactory();
    this.markers = [];
    this.configAnimation = this.configAnimation.bind(this);
    this.onSetupError = this.onSetupError.bind(this);
    this.onSegmentComplete = this.onSegmentComplete.bind(this);
    this.drawnFrameEvent = new BMEnterFrameEvent('drawnFrame', 0, 0, 0);
    this.expressionsPlugin = getExpressionsPlugin();
  };
  extendPrototype([BaseEvent], AnimationItem);
  AnimationItem.prototype.setParams = function (params) {
    if (params.wrapper || params.container) {
      this.wrapper = params.wrapper || params.container;
    }
    var animType = 'svg';
    if (params.animType) {
      animType = params.animType;
    } else if (params.renderer) {
      animType = params.renderer;
    }
    var RendererClass = getRenderer(animType);
    this.renderer = new RendererClass(this, params.rendererSettings);
    this.imagePreloader.setCacheType(animType, this.renderer.globalData.defs);
    this.renderer.setProjectInterface(this.projectInterface);
    this.animType = animType;
    if (params.loop === '' || params.loop === null || params.loop === undefined || params.loop === true) {
      this.loop = true;
    } else if (params.loop === false) {
      this.loop = false;
    } else {
      this.loop = parseInt(params.loop, 10);
    }
    this.autoplay = 'autoplay' in params ? params.autoplay : true;
    this.name = params.name ? params.name : '';
    this.autoloadSegments = Object.prototype.hasOwnProperty.call(params, 'autoloadSegments') ? params.autoloadSegments : true;
    this.assetsPath = params.assetsPath;
    this.initialSegment = params.initialSegment;
    if (params.audioFactory) {
      this.audioController.setAudioFactory(params.audioFactory);
    }
    if (params.animationData) {
      this.setupAnimation(params.animationData);
    } else if (params.path) {
      if (params.path.lastIndexOf('\\') !== -1) {
        this.path = params.path.substr(0, params.path.lastIndexOf('\\') + 1);
      } else {
        this.path = params.path.substr(0, params.path.lastIndexOf('/') + 1);
      }
      this.fileName = params.path.substr(params.path.lastIndexOf('/') + 1);
      this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf('.json'));
      dataManager.loadAnimation(params.path, this.configAnimation, this.onSetupError);
    }
  };
  AnimationItem.prototype.onSetupError = function () {
    this.trigger('data_failed');
  };
  AnimationItem.prototype.setupAnimation = function (data) {
    dataManager.completeAnimation(data, this.configAnimation);
  };
  AnimationItem.prototype.setData = function (wrapper, animationData) {
    if (animationData) {
      if (_typeof$4(animationData) !== 'object') {
        animationData = JSON.parse(animationData);
      }
    }
    var params = {
      wrapper: wrapper,
      animationData: animationData
    };
    var wrapperAttributes = wrapper.attributes;
    params.path = wrapperAttributes.getNamedItem('data-animation-path') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-animation-path').value : wrapperAttributes.getNamedItem('data-bm-path') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-bm-path').value : wrapperAttributes.getNamedItem('bm-path') ? wrapperAttributes.getNamedItem('bm-path').value : '';
    params.animType = wrapperAttributes.getNamedItem('data-anim-type') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-anim-type').value : wrapperAttributes.getNamedItem('data-bm-type') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-bm-type').value : wrapperAttributes.getNamedItem('bm-type') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('bm-type').value : wrapperAttributes.getNamedItem('data-bm-renderer') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-bm-renderer').value : wrapperAttributes.getNamedItem('bm-renderer') ? wrapperAttributes.getNamedItem('bm-renderer').value : getRegisteredRenderer() || 'canvas';
    var loop = wrapperAttributes.getNamedItem('data-anim-loop') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-anim-loop').value : wrapperAttributes.getNamedItem('data-bm-loop') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-bm-loop').value : wrapperAttributes.getNamedItem('bm-loop') ? wrapperAttributes.getNamedItem('bm-loop').value : '';
    if (loop === 'false') {
      params.loop = false;
    } else if (loop === 'true') {
      params.loop = true;
    } else if (loop !== '') {
      params.loop = parseInt(loop, 10);
    }
    var autoplay = wrapperAttributes.getNamedItem('data-anim-autoplay') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-anim-autoplay').value : wrapperAttributes.getNamedItem('data-bm-autoplay') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-bm-autoplay').value : wrapperAttributes.getNamedItem('bm-autoplay') ? wrapperAttributes.getNamedItem('bm-autoplay').value : true;
    params.autoplay = autoplay !== 'false';
    params.name = wrapperAttributes.getNamedItem('data-name') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-name').value : wrapperAttributes.getNamedItem('data-bm-name') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-bm-name').value : wrapperAttributes.getNamedItem('bm-name') ? wrapperAttributes.getNamedItem('bm-name').value : '';
    var prerender = wrapperAttributes.getNamedItem('data-anim-prerender') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-anim-prerender').value : wrapperAttributes.getNamedItem('data-bm-prerender') // eslint-disable-line no-nested-ternary
    ? wrapperAttributes.getNamedItem('data-bm-prerender').value : wrapperAttributes.getNamedItem('bm-prerender') ? wrapperAttributes.getNamedItem('bm-prerender').value : '';
    if (prerender === 'false') {
      params.prerender = false;
    }
    if (!params.path) {
      this.trigger('destroy');
    } else {
      this.setParams(params);
    }
  };
  AnimationItem.prototype.includeLayers = function (data) {
    if (data.op > this.animationData.op) {
      this.animationData.op = data.op;
      this.totalFrames = Math.floor(data.op - this.animationData.ip);
    }
    var layers = this.animationData.layers;
    var i;
    var len = layers.length;
    var newLayers = data.layers;
    var j;
    var jLen = newLayers.length;
    for (j = 0; j < jLen; j += 1) {
      i = 0;
      while (i < len) {
        if (layers[i].id === newLayers[j].id) {
          layers[i] = newLayers[j];
          break;
        }
        i += 1;
      }
    }
    if (data.chars || data.fonts) {
      this.renderer.globalData.fontManager.addChars(data.chars);
      this.renderer.globalData.fontManager.addFonts(data.fonts, this.renderer.globalData.defs);
    }
    if (data.assets) {
      len = data.assets.length;
      for (i = 0; i < len; i += 1) {
        this.animationData.assets.push(data.assets[i]);
      }
    }
    this.animationData.__complete = false;
    dataManager.completeAnimation(this.animationData, this.onSegmentComplete);
  };
  AnimationItem.prototype.onSegmentComplete = function (data) {
    this.animationData = data;
    var expressionsPlugin = getExpressionsPlugin();
    if (expressionsPlugin) {
      expressionsPlugin.initExpressions(this);
    }
    this.loadNextSegment();
  };
  AnimationItem.prototype.loadNextSegment = function () {
    var segments = this.animationData.segments;
    if (!segments || segments.length === 0 || !this.autoloadSegments) {
      this.trigger('data_ready');
      this.timeCompleted = this.totalFrames;
      return;
    }
    var segment = segments.shift();
    this.timeCompleted = segment.time * this.frameRate;
    var segmentPath = this.path + this.fileName + '_' + this.segmentPos + '.json';
    this.segmentPos += 1;
    dataManager.loadData(segmentPath, this.includeLayers.bind(this), function () {
      this.trigger('data_failed');
    }.bind(this));
  };
  AnimationItem.prototype.loadSegments = function () {
    var segments = this.animationData.segments;
    if (!segments) {
      this.timeCompleted = this.totalFrames;
    }
    this.loadNextSegment();
  };
  AnimationItem.prototype.imagesLoaded = function () {
    this.trigger('loaded_images');
    this.checkLoaded();
  };
  AnimationItem.prototype.preloadImages = function () {
    this.imagePreloader.setAssetsPath(this.assetsPath);
    this.imagePreloader.setPath(this.path);
    this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
  };
  AnimationItem.prototype.configAnimation = function (animData) {
    if (!this.renderer) {
      return;
    }
    try {
      this.animationData = animData;
      if (this.initialSegment) {
        this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]);
        this.firstFrame = Math.round(this.initialSegment[0]);
      } else {
        this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip);
        this.firstFrame = Math.round(this.animationData.ip);
      }
      this.renderer.configAnimation(animData);
      if (!animData.assets) {
        animData.assets = [];
      }
      this.assets = this.animationData.assets;
      this.frameRate = this.animationData.fr;
      this.frameMult = this.animationData.fr / 1000;
      this.renderer.searchExtraCompositions(animData.assets);
      this.markers = markerParser(animData.markers || []);
      this.trigger('config_ready');
      this.preloadImages();
      this.loadSegments();
      this.updaFrameModifier();
      this.waitForFontsLoaded();
      if (this.isPaused) {
        this.audioController.pause();
      }
    } catch (error) {
      this.triggerConfigError(error);
    }
  };
  AnimationItem.prototype.waitForFontsLoaded = function () {
    if (!this.renderer) {
      return;
    }
    if (this.renderer.globalData.fontManager.isLoaded) {
      this.checkLoaded();
    } else {
      setTimeout(this.waitForFontsLoaded.bind(this), 20);
    }
  };
  AnimationItem.prototype.checkLoaded = function () {
    if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== 'canvas') && this.imagePreloader.loadedFootages()) {
      this.isLoaded = true;
      var expressionsPlugin = getExpressionsPlugin();
      if (expressionsPlugin) {
        expressionsPlugin.initExpressions(this);
      }
      this.renderer.initItems();
      setTimeout(function () {
        this.trigger('DOMLoaded');
      }.bind(this), 0);
      this.gotoFrame();
      if (this.autoplay) {
        this.play();
      }
    }
  };
  AnimationItem.prototype.resize = function (width, height) {
    // Adding this validation for backwards compatibility in case an event object was being passed down
    var _width = typeof width === 'number' ? width : undefined;
    var _height = typeof height === 'number' ? height : undefined;
    this.renderer.updateContainerSize(_width, _height);
  };
  AnimationItem.prototype.setSubframe = function (flag) {
    this.isSubframeEnabled = !!flag;
  };
  AnimationItem.prototype.gotoFrame = function () {
    this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame; // eslint-disable-line no-bitwise

    if (this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted) {
      this.currentFrame = this.timeCompleted;
    }
    this.trigger('enterFrame');
    this.renderFrame();
    this.trigger('drawnFrame');
  };
  AnimationItem.prototype.renderFrame = function () {
    if (this.isLoaded === false || !this.renderer) {
      return;
    }
    try {
      if (this.expressionsPlugin) {
        this.expressionsPlugin.resetFrame();
      }
      this.renderer.renderFrame(this.currentFrame + this.firstFrame);
    } catch (error) {
      this.triggerRenderFrameError(error);
    }
  };
  AnimationItem.prototype.play = function (name) {
    if (name && this.name !== name) {
      return;
    }
    if (this.isPaused === true) {
      this.isPaused = false;
      this.trigger('_play');
      this.audioController.resume();
      if (this._idle) {
        this._idle = false;
        this.trigger('_active');
      }
    }
  };
  AnimationItem.prototype.pause = function (name) {
    if (name && this.name !== name) {
      return;
    }
    if (this.isPaused === false) {
      this.isPaused = true;
      this.trigger('_pause');
      this._idle = true;
      this.trigger('_idle');
      this.audioController.pause();
    }
  };
  AnimationItem.prototype.togglePause = function (name) {
    if (name && this.name !== name) {
      return;
    }
    if (this.isPaused === true) {
      this.play();
    } else {
      this.pause();
    }
  };
  AnimationItem.prototype.stop = function (name) {
    if (name && this.name !== name) {
      return;
    }
    this.pause();
    this.playCount = 0;
    this._completedLoop = false;
    this.setCurrentRawFrameValue(0);
  };
  AnimationItem.prototype.getMarkerData = function (markerName) {
    var marker;
    for (var i = 0; i < this.markers.length; i += 1) {
      marker = this.markers[i];
      if (marker.payload && marker.payload.name === markerName) {
        return marker;
      }
    }
    return null;
  };
  AnimationItem.prototype.goToAndStop = function (value, isFrame, name) {
    if (name && this.name !== name) {
      return;
    }
    var numValue = Number(value);
    if (isNaN(numValue)) {
      var marker = this.getMarkerData(value);
      if (marker) {
        this.goToAndStop(marker.time, true);
      }
    } else if (isFrame) {
      this.setCurrentRawFrameValue(value);
    } else {
      this.setCurrentRawFrameValue(value * this.frameModifier);
    }
    this.pause();
  };
  AnimationItem.prototype.goToAndPlay = function (value, isFrame, name) {
    if (name && this.name !== name) {
      return;
    }
    var numValue = Number(value);
    if (isNaN(numValue)) {
      var marker = this.getMarkerData(value);
      if (marker) {
        if (!marker.duration) {
          this.goToAndStop(marker.time, true);
        } else {
          this.playSegments([marker.time, marker.time + marker.duration], true);
        }
      }
    } else {
      this.goToAndStop(numValue, isFrame, name);
    }
    this.play();
  };
  AnimationItem.prototype.advanceTime = function (value) {
    if (this.isPaused === true || this.isLoaded === false) {
      return;
    }
    var nextValue = this.currentRawFrame + value * this.frameModifier;
    var _isComplete = false;
    // Checking if nextValue > totalFrames - 1 for addressing non looping and looping animations.
    // If animation won't loop, it should stop at totalFrames - 1. If it will loop it should complete the last frame and then loop.
    if (nextValue >= this.totalFrames - 1 && this.frameModifier > 0) {
      if (!this.loop || this.playCount === this.loop) {
        if (!this.checkSegments(nextValue > this.totalFrames ? nextValue % this.totalFrames : 0)) {
          _isComplete = true;
          nextValue = this.totalFrames - 1;
        }
      } else if (nextValue >= this.totalFrames) {
        this.playCount += 1;
        if (!this.checkSegments(nextValue % this.totalFrames)) {
          this.setCurrentRawFrameValue(nextValue % this.totalFrames);
          this._completedLoop = true;
          this.trigger('loopComplete');
        }
      } else {
        this.setCurrentRawFrameValue(nextValue);
      }
    } else if (nextValue < 0) {
      if (!this.checkSegments(nextValue % this.totalFrames)) {
        if (this.loop && !(this.playCount-- <= 0 && this.loop !== true)) {
          // eslint-disable-line no-plusplus
          this.setCurrentRawFrameValue(this.totalFrames + nextValue % this.totalFrames);
          if (!this._completedLoop) {
            this._completedLoop = true;
          } else {
            this.trigger('loopComplete');
          }
        } else {
          _isComplete = true;
          nextValue = 0;
        }
      }
    } else {
      this.setCurrentRawFrameValue(nextValue);
    }
    if (_isComplete) {
      this.setCurrentRawFrameValue(nextValue);
      this.pause();
      this.trigger('complete');
    }
  };
  AnimationItem.prototype.adjustSegment = function (arr, offset) {
    this.playCount = 0;
    if (arr[1] < arr[0]) {
      if (this.frameModifier > 0) {
        if (this.playSpeed < 0) {
          this.setSpeed(-this.playSpeed);
        } else {
          this.setDirection(-1);
        }
      }
      this.totalFrames = arr[0] - arr[1];
      this.timeCompleted = this.totalFrames;
      this.firstFrame = arr[1];
      this.setCurrentRawFrameValue(this.totalFrames - 0.001 - offset);
    } else if (arr[1] > arr[0]) {
      if (this.frameModifier < 0) {
        if (this.playSpeed < 0) {
          this.setSpeed(-this.playSpeed);
        } else {
          this.setDirection(1);
        }
      }
      this.totalFrames = arr[1] - arr[0];
      this.timeCompleted = this.totalFrames;
      this.firstFrame = arr[0];
      this.setCurrentRawFrameValue(0.001 + offset);
    }
    this.trigger('segmentStart');
  };
  AnimationItem.prototype.setSegment = function (init, end) {
    var pendingFrame = -1;
    if (this.isPaused) {
      if (this.currentRawFrame + this.firstFrame < init) {
        pendingFrame = init;
      } else if (this.currentRawFrame + this.firstFrame > end) {
        pendingFrame = end - init;
      }
    }
    this.firstFrame = init;
    this.totalFrames = end - init;
    this.timeCompleted = this.totalFrames;
    if (pendingFrame !== -1) {
      this.goToAndStop(pendingFrame, true);
    }
  };
  AnimationItem.prototype.playSegments = function (arr, forceFlag) {
    if (forceFlag) {
      this.segments.length = 0;
    }
    if (_typeof$4(arr[0]) === 'object') {
      var i;
      var len = arr.length;
      for (i = 0; i < len; i += 1) {
        this.segments.push(arr[i]);
      }
    } else {
      this.segments.push(arr);
    }
    if (this.segments.length && forceFlag) {
      this.adjustSegment(this.segments.shift(), 0);
    }
    if (this.isPaused) {
      this.play();
    }
  };
  AnimationItem.prototype.resetSegments = function (forceFlag) {
    this.segments.length = 0;
    this.segments.push([this.animationData.ip, this.animationData.op]);
    if (forceFlag) {
      this.checkSegments(0);
    }
  };
  AnimationItem.prototype.checkSegments = function (offset) {
    if (this.segments.length) {
      this.adjustSegment(this.segments.shift(), offset);
      return true;
    }
    return false;
  };
  AnimationItem.prototype.destroy = function (name) {
    if (name && this.name !== name || !this.renderer) {
      return;
    }
    this.renderer.destroy();
    this.imagePreloader.destroy();
    this.trigger('destroy');
    this._cbs = null;
    this.onEnterFrame = null;
    this.onLoopComplete = null;
    this.onComplete = null;
    this.onSegmentStart = null;
    this.onDestroy = null;
    this.renderer = null;
    this.expressionsPlugin = null;
    this.imagePreloader = null;
    this.projectInterface = null;
  };
  AnimationItem.prototype.setCurrentRawFrameValue = function (value) {
    this.currentRawFrame = value;
    this.gotoFrame();
  };
  AnimationItem.prototype.setSpeed = function (val) {
    this.playSpeed = val;
    this.updaFrameModifier();
  };
  AnimationItem.prototype.setDirection = function (val) {
    this.playDirection = val < 0 ? -1 : 1;
    this.updaFrameModifier();
  };
  AnimationItem.prototype.setLoop = function (isLooping) {
    this.loop = isLooping;
  };
  AnimationItem.prototype.setVolume = function (val, name) {
    if (name && this.name !== name) {
      return;
    }
    this.audioController.setVolume(val);
  };
  AnimationItem.prototype.getVolume = function () {
    return this.audioController.getVolume();
  };
  AnimationItem.prototype.mute = function (name) {
    if (name && this.name !== name) {
      return;
    }
    this.audioController.mute();
  };
  AnimationItem.prototype.unmute = function (name) {
    if (name && this.name !== name) {
      return;
    }
    this.audioController.unmute();
  };
  AnimationItem.prototype.updaFrameModifier = function () {
    this.frameModifier = this.frameMult * this.playSpeed * this.playDirection;
    this.audioController.setRate(this.playSpeed * this.playDirection);
  };
  AnimationItem.prototype.getPath = function () {
    return this.path;
  };
  AnimationItem.prototype.getAssetsPath = function (assetData) {
    var path = '';
    if (assetData.e) {
      path = assetData.p;
    } else if (this.assetsPath) {
      var imagePath = assetData.p;
      if (imagePath.indexOf('images/') !== -1) {
        imagePath = imagePath.split('/')[1];
      }
      path = this.assetsPath + imagePath;
    } else {
      path = this.path;
      path += assetData.u ? assetData.u : '';
      path += assetData.p;
    }
    return path;
  };
  AnimationItem.prototype.getAssetData = function (id) {
    var i = 0;
    var len = this.assets.length;
    while (i < len) {
      if (id === this.assets[i].id) {
        return this.assets[i];
      }
      i += 1;
    }
    return null;
  };
  AnimationItem.prototype.hide = function () {
    this.renderer.hide();
  };
  AnimationItem.prototype.show = function () {
    this.renderer.show();
  };
  AnimationItem.prototype.getDuration = function (isFrame) {
    return isFrame ? this.totalFrames : this.totalFrames / this.frameRate;
  };
  AnimationItem.prototype.updateDocumentData = function (path, documentData, index) {
    try {
      var element = this.renderer.getElementByPath(path);
      element.updateDocumentData(documentData, index);
    } catch (error) {
      // TODO: decide how to handle catch case
    }
  };
  AnimationItem.prototype.trigger = function (name) {
    if (this._cbs && this._cbs[name]) {
      switch (name) {
        case 'enterFrame':
          this.triggerEvent(name, new BMEnterFrameEvent(name, this.currentFrame, this.totalFrames, this.frameModifier));
          break;
        case 'drawnFrame':
          this.drawnFrameEvent.currentTime = this.currentFrame;
          this.drawnFrameEvent.totalTime = this.totalFrames;
          this.drawnFrameEvent.direction = this.frameModifier;
          this.triggerEvent(name, this.drawnFrameEvent);
          break;
        case 'loopComplete':
          this.triggerEvent(name, new BMCompleteLoopEvent(name, this.loop, this.playCount, this.frameMult));
          break;
        case 'complete':
          this.triggerEvent(name, new BMCompleteEvent(name, this.frameMult));
          break;
        case 'segmentStart':
          this.triggerEvent(name, new BMSegmentStartEvent(name, this.firstFrame, this.totalFrames));
          break;
        case 'destroy':
          this.triggerEvent(name, new BMDestroyEvent(name, this));
          break;
        default:
          this.triggerEvent(name);
      }
    }
    if (name === 'enterFrame' && this.onEnterFrame) {
      this.onEnterFrame.call(this, new BMEnterFrameEvent(name, this.currentFrame, this.totalFrames, this.frameMult));
    }
    if (name === 'loopComplete' && this.onLoopComplete) {
      this.onLoopComplete.call(this, new BMCompleteLoopEvent(name, this.loop, this.playCount, this.frameMult));
    }
    if (name === 'complete' && this.onComplete) {
      this.onComplete.call(this, new BMCompleteEvent(name, this.frameMult));
    }
    if (name === 'segmentStart' && this.onSegmentStart) {
      this.onSegmentStart.call(this, new BMSegmentStartEvent(name, this.firstFrame, this.totalFrames));
    }
    if (name === 'destroy' && this.onDestroy) {
      this.onDestroy.call(this, new BMDestroyEvent(name, this));
    }
  };
  AnimationItem.prototype.triggerRenderFrameError = function (nativeError) {
    var error = new BMRenderFrameErrorEvent(nativeError, this.currentFrame);
    this.triggerEvent('error', error);
    if (this.onError) {
      this.onError.call(this, error);
    }
  };
  AnimationItem.prototype.triggerConfigError = function (nativeError) {
    var error = new BMConfigErrorEvent(nativeError, this.currentFrame);
    this.triggerEvent('error', error);
    if (this.onError) {
      this.onError.call(this, error);
    }
  };

  var animationManager = function () {
    var moduleOb = {};
    var registeredAnimations = [];
    var initTime = 0;
    var len = 0;
    var playingAnimationsNum = 0;
    var _stopped = true;
    var _isFrozen = false;
    function removeElement(ev) {
      var i = 0;
      var animItem = ev.target;
      while (i < len) {
        if (registeredAnimations[i].animation === animItem) {
          registeredAnimations.splice(i, 1);
          i -= 1;
          len -= 1;
          if (!animItem.isPaused) {
            subtractPlayingCount();
          }
        }
        i += 1;
      }
    }
    function registerAnimation(element, animationData) {
      if (!element) {
        return null;
      }
      var i = 0;
      while (i < len) {
        if (registeredAnimations[i].elem === element && registeredAnimations[i].elem !== null) {
          return registeredAnimations[i].animation;
        }
        i += 1;
      }
      var animItem = new AnimationItem();
      setupAnimation(animItem, element);
      animItem.setData(element, animationData);
      return animItem;
    }
    function getRegisteredAnimations() {
      var i;
      var lenAnims = registeredAnimations.length;
      var animations = [];
      for (i = 0; i < lenAnims; i += 1) {
        animations.push(registeredAnimations[i].animation);
      }
      return animations;
    }
    function addPlayingCount() {
      playingAnimationsNum += 1;
      activate();
    }
    function subtractPlayingCount() {
      playingAnimationsNum -= 1;
    }
    function setupAnimation(animItem, element) {
      animItem.addEventListener('destroy', removeElement);
      animItem.addEventListener('_active', addPlayingCount);
      animItem.addEventListener('_idle', subtractPlayingCount);
      registeredAnimations.push({
        elem: element,
        animation: animItem
      });
      len += 1;
    }
    function loadAnimation(params) {
      var animItem = new AnimationItem();
      setupAnimation(animItem, null);
      animItem.setParams(params);
      return animItem;
    }
    function setSpeed(val, animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.setSpeed(val, animation);
      }
    }
    function setDirection(val, animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.setDirection(val, animation);
      }
    }
    function play(animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.play(animation);
      }
    }
    function resume(nowTime) {
      var elapsedTime = nowTime - initTime;
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.advanceTime(elapsedTime);
      }
      initTime = nowTime;
      if (playingAnimationsNum && !_isFrozen) {
        window.requestAnimationFrame(resume);
      } else {
        _stopped = true;
      }
    }
    function first(nowTime) {
      initTime = nowTime;
      window.requestAnimationFrame(resume);
    }
    function pause(animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.pause(animation);
      }
    }
    function goToAndStop(value, isFrame, animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.goToAndStop(value, isFrame, animation);
      }
    }
    function stop(animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.stop(animation);
      }
    }
    function togglePause(animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.togglePause(animation);
      }
    }
    function destroy(animation) {
      var i;
      for (i = len - 1; i >= 0; i -= 1) {
        registeredAnimations[i].animation.destroy(animation);
      }
    }
    function searchAnimations(animationData, standalone, renderer) {
      var animElements = [].concat([].slice.call(document.getElementsByClassName('lottie')), [].slice.call(document.getElementsByClassName('bodymovin')));
      var i;
      var lenAnims = animElements.length;
      for (i = 0; i < lenAnims; i += 1) {
        if (renderer) {
          animElements[i].setAttribute('data-bm-type', renderer);
        }
        registerAnimation(animElements[i], animationData);
      }
      if (standalone && lenAnims === 0) {
        if (!renderer) {
          renderer = 'svg';
        }
        var body = document.getElementsByTagName('body')[0];
        body.innerText = '';
        var div = createTag('div');
        div.style.width = '100%';
        div.style.height = '100%';
        div.setAttribute('data-bm-type', renderer);
        body.appendChild(div);
        registerAnimation(div, animationData);
      }
    }
    function resize() {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.resize();
      }
    }
    function activate() {
      if (!_isFrozen && playingAnimationsNum) {
        if (_stopped) {
          window.requestAnimationFrame(first);
          _stopped = false;
        }
      }
    }
    function freeze() {
      _isFrozen = true;
    }
    function unfreeze() {
      _isFrozen = false;
      activate();
    }
    function setVolume(val, animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.setVolume(val, animation);
      }
    }
    function mute(animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.mute(animation);
      }
    }
    function unmute(animation) {
      var i;
      for (i = 0; i < len; i += 1) {
        registeredAnimations[i].animation.unmute(animation);
      }
    }
    moduleOb.registerAnimation = registerAnimation;
    moduleOb.loadAnimation = loadAnimation;
    moduleOb.setSpeed = setSpeed;
    moduleOb.setDirection = setDirection;
    moduleOb.play = play;
    moduleOb.pause = pause;
    moduleOb.stop = stop;
    moduleOb.togglePause = togglePause;
    moduleOb.searchAnimations = searchAnimations;
    moduleOb.resize = resize;
    // moduleOb.start = start;
    moduleOb.goToAndStop = goToAndStop;
    moduleOb.destroy = destroy;
    moduleOb.freeze = freeze;
    moduleOb.unfreeze = unfreeze;
    moduleOb.setVolume = setVolume;
    moduleOb.mute = mute;
    moduleOb.unmute = unmute;
    moduleOb.getRegisteredAnimations = getRegisteredAnimations;
    return moduleOb;
  }();

  /* eslint-disable */
  var BezierFactory = function () {
    /**
       * BezierEasing - use bezier curve for transition easing function
       * by Gaëtan Renaudeau 2014 - 2015 – MIT License
       *
       * Credits: is based on Firefox's nsSMILKeySpline.cpp
       * Usage:
       * var spline = BezierEasing([ 0.25, 0.1, 0.25, 1.0 ])
       * spline.get(x) => returns the easing value | x must be in [0, 1] range
       *
       */

    var ob = {};
    ob.getBezierEasing = getBezierEasing;
    var beziers = {};
    function getBezierEasing(a, b, c, d, nm) {
      var str = nm || ('bez_' + a + '_' + b + '_' + c + '_' + d).replace(/\./g, 'p');
      if (beziers[str]) {
        return beziers[str];
      }
      var bezEasing = new BezierEasing([a, b, c, d]);
      beziers[str] = bezEasing;
      return bezEasing;
    }

    // These values are established by empiricism with tests (tradeoff: performance VS precision)
    var NEWTON_ITERATIONS = 4;
    var NEWTON_MIN_SLOPE = 0.001;
    var SUBDIVISION_PRECISION = 0.0000001;
    var SUBDIVISION_MAX_ITERATIONS = 10;
    var kSplineTableSize = 11;
    var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);
    var float32ArraySupported = typeof Float32Array === 'function';
    function A(aA1, aA2) {
      return 1.0 - 3.0 * aA2 + 3.0 * aA1;
    }
    function B(aA1, aA2) {
      return 3.0 * aA2 - 6.0 * aA1;
    }
    function C(aA1) {
      return 3.0 * aA1;
    }

    // Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
    function calcBezier(aT, aA1, aA2) {
      return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
    }

    // Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.
    function getSlope(aT, aA1, aA2) {
      return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);
    }
    function binarySubdivide(aX, aA, aB, mX1, mX2) {
      var currentX,
        currentT,
        i = 0;
      do {
        currentT = aA + (aB - aA) / 2.0;
        currentX = calcBezier(currentT, mX1, mX2) - aX;
        if (currentX > 0.0) {
          aB = currentT;
        } else {
          aA = currentT;
        }
      } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
      return currentT;
    }
    function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {
      for (var i = 0; i < NEWTON_ITERATIONS; ++i) {
        var currentSlope = getSlope(aGuessT, mX1, mX2);
        if (currentSlope === 0.0) return aGuessT;
        var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
        aGuessT -= currentX / currentSlope;
      }
      return aGuessT;
    }

    /**
       * points is an array of [ mX1, mY1, mX2, mY2 ]
       */
    function BezierEasing(points) {
      this._p = points;
      this._mSampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
      this._precomputed = false;
      this.get = this.get.bind(this);
    }
    BezierEasing.prototype = {
      get: function get(x) {
        var mX1 = this._p[0],
          mY1 = this._p[1],
          mX2 = this._p[2],
          mY2 = this._p[3];
        if (!this._precomputed) this._precompute();
        if (mX1 === mY1 && mX2 === mY2) return x; // linear
        // Because JavaScript number are imprecise, we should guarantee the extremes are right.
        if (x === 0) return 0;
        if (x === 1) return 1;
        return calcBezier(this._getTForX(x), mY1, mY2);
      },
      // Private part

      _precompute: function _precompute() {
        var mX1 = this._p[0],
          mY1 = this._p[1],
          mX2 = this._p[2],
          mY2 = this._p[3];
        this._precomputed = true;
        if (mX1 !== mY1 || mX2 !== mY2) {
          this._calcSampleValues();
        }
      },
      _calcSampleValues: function _calcSampleValues() {
        var mX1 = this._p[0],
          mX2 = this._p[2];
        for (var i = 0; i < kSplineTableSize; ++i) {
          this._mSampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
        }
      },
      /**
           * getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
           */
      _getTForX: function _getTForX(aX) {
        var mX1 = this._p[0],
          mX2 = this._p[2],
          mSampleValues = this._mSampleValues;
        var intervalStart = 0.0;
        var currentSample = 1;
        var lastSample = kSplineTableSize - 1;
        for (; currentSample !== lastSample && mSampleValues[currentSample] <= aX; ++currentSample) {
          intervalStart += kSampleStepSize;
        }
        --currentSample;

        // Interpolate to provide an initial guess for t
        var dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]);
        var guessForT = intervalStart + dist * kSampleStepSize;
        var initialSlope = getSlope(guessForT, mX1, mX2);
        if (initialSlope >= NEWTON_MIN_SLOPE) {
          return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
        }
        if (initialSlope === 0.0) {
          return guessForT;
        }
        return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);
      }
    };
    return ob;
  }();

  var pooling = function () {
    function _double(arr) {
      return arr.concat(createSizedArray(arr.length));
    }
    return {
      "double": _double
    };
  }();

  var poolFactory = function () {
    return function (initialLength, _create, _release) {
      var _length = 0;
      var _maxLength = initialLength;
      var pool = createSizedArray(_maxLength);
      var ob = {
        newElement: newElement,
        release: release
      };
      function newElement() {
        var element;
        if (_length) {
          _length -= 1;
          element = pool[_length];
        } else {
          element = _create();
        }
        return element;
      }
      function release(element) {
        if (_length === _maxLength) {
          pool = pooling["double"](pool);
          _maxLength *= 2;
        }
        if (_release) {
          _release(element);
        }
        pool[_length] = element;
        _length += 1;
      }
      return ob;
    };
  }();

  var bezierLengthPool = function () {
    function create() {
      return {
        addedLength: 0,
        percents: createTypedArray('float32', getDefaultCurveSegments()),
        lengths: createTypedArray('float32', getDefaultCurveSegments())
      };
    }
    return poolFactory(8, create);
  }();

  var segmentsLengthPool = function () {
    function create() {
      return {
        lengths: [],
        totalLength: 0
      };
    }
    function release(element) {
      var i;
      var len = element.lengths.length;
      for (i = 0; i < len; i += 1) {
        bezierLengthPool.release(element.lengths[i]);
      }
      element.lengths.length = 0;
    }
    return poolFactory(8, create, release);
  }();

  function bezFunction() {
    var math = Math;
    function pointOnLine2D(x1, y1, x2, y2, x3, y3) {
      var det1 = x1 * y2 + y1 * x3 + x2 * y3 - x3 * y2 - y3 * x1 - x2 * y1;
      return det1 > -0.001 && det1 < 0.001;
    }
    function pointOnLine3D(x1, y1, z1, x2, y2, z2, x3, y3, z3) {
      if (z1 === 0 && z2 === 0 && z3 === 0) {
        return pointOnLine2D(x1, y1, x2, y2, x3, y3);
      }
      var dist1 = math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2) + math.pow(z2 - z1, 2));
      var dist2 = math.sqrt(math.pow(x3 - x1, 2) + math.pow(y3 - y1, 2) + math.pow(z3 - z1, 2));
      var dist3 = math.sqrt(math.pow(x3 - x2, 2) + math.pow(y3 - y2, 2) + math.pow(z3 - z2, 2));
      var diffDist;
      if (dist1 > dist2) {
        if (dist1 > dist3) {
          diffDist = dist1 - dist2 - dist3;
        } else {
          diffDist = dist3 - dist2 - dist1;
        }
      } else if (dist3 > dist2) {
        diffDist = dist3 - dist2 - dist1;
      } else {
        diffDist = dist2 - dist1 - dist3;
      }
      return diffDist > -0.0001 && diffDist < 0.0001;
    }
    var getBezierLength = function () {
      return function (pt1, pt2, pt3, pt4) {
        var curveSegments = getDefaultCurveSegments();
        var k;
        var i;
        var len;
        var ptCoord;
        var perc;
        var addedLength = 0;
        var ptDistance;
        var point = [];
        var lastPoint = [];
        var lengthData = bezierLengthPool.newElement();
        len = pt3.length;
        for (k = 0; k < curveSegments; k += 1) {
          perc = k / (curveSegments - 1);
          ptDistance = 0;
          for (i = 0; i < len; i += 1) {
            ptCoord = bmPow(1 - perc, 3) * pt1[i] + 3 * bmPow(1 - perc, 2) * perc * pt3[i] + 3 * (1 - perc) * bmPow(perc, 2) * pt4[i] + bmPow(perc, 3) * pt2[i];
            point[i] = ptCoord;
            if (lastPoint[i] !== null) {
              ptDistance += bmPow(point[i] - lastPoint[i], 2);
            }
            lastPoint[i] = point[i];
          }
          if (ptDistance) {
            ptDistance = bmSqrt(ptDistance);
            addedLength += ptDistance;
          }
          lengthData.percents[k] = perc;
          lengthData.lengths[k] = addedLength;
        }
        lengthData.addedLength = addedLength;
        return lengthData;
      };
    }();
    function getSegmentsLength(shapeData) {
      var segmentsLength = segmentsLengthPool.newElement();
      var closed = shapeData.c;
      var pathV = shapeData.v;
      var pathO = shapeData.o;
      var pathI = shapeData.i;
      var i;
      var len = shapeData._length;
      var lengths = segmentsLength.lengths;
      var totalLength = 0;
      for (i = 0; i < len - 1; i += 1) {
        lengths[i] = getBezierLength(pathV[i], pathV[i + 1], pathO[i], pathI[i + 1]);
        totalLength += lengths[i].addedLength;
      }
      if (closed && len) {
        lengths[i] = getBezierLength(pathV[i], pathV[0], pathO[i], pathI[0]);
        totalLength += lengths[i].addedLength;
      }
      segmentsLength.totalLength = totalLength;
      return segmentsLength;
    }
    function BezierData(length) {
      this.segmentLength = 0;
      this.points = new Array(length);
    }
    function PointData(partial, point) {
      this.partialLength = partial;
      this.point = point;
    }
    var buildBezierData = function () {
      var storedData = {};
      return function (pt1, pt2, pt3, pt4) {
        var bezierName = (pt1[0] + '_' + pt1[1] + '_' + pt2[0] + '_' + pt2[1] + '_' + pt3[0] + '_' + pt3[1] + '_' + pt4[0] + '_' + pt4[1]).replace(/\./g, 'p');
        if (!storedData[bezierName]) {
          var curveSegments = getDefaultCurveSegments();
          var k;
          var i;
          var len;
          var ptCoord;
          var perc;
          var addedLength = 0;
          var ptDistance;
          var point;
          var lastPoint = null;
          if (pt1.length === 2 && (pt1[0] !== pt2[0] || pt1[1] !== pt2[1]) && pointOnLine2D(pt1[0], pt1[1], pt2[0], pt2[1], pt1[0] + pt3[0], pt1[1] + pt3[1]) && pointOnLine2D(pt1[0], pt1[1], pt2[0], pt2[1], pt2[0] + pt4[0], pt2[1] + pt4[1])) {
            curveSegments = 2;
          }
          var bezierData = new BezierData(curveSegments);
          len = pt3.length;
          for (k = 0; k < curveSegments; k += 1) {
            point = createSizedArray(len);
            perc = k / (curveSegments - 1);
            ptDistance = 0;
            for (i = 0; i < len; i += 1) {
              ptCoord = bmPow(1 - perc, 3) * pt1[i] + 3 * bmPow(1 - perc, 2) * perc * (pt1[i] + pt3[i]) + 3 * (1 - perc) * bmPow(perc, 2) * (pt2[i] + pt4[i]) + bmPow(perc, 3) * pt2[i];
              point[i] = ptCoord;
              if (lastPoint !== null) {
                ptDistance += bmPow(point[i] - lastPoint[i], 2);
              }
            }
            ptDistance = bmSqrt(ptDistance);
            addedLength += ptDistance;
            bezierData.points[k] = new PointData(ptDistance, point);
            lastPoint = point;
          }
          bezierData.segmentLength = addedLength;
          storedData[bezierName] = bezierData;
        }
        return storedData[bezierName];
      };
    }();
    function getDistancePerc(perc, bezierData) {
      var percents = bezierData.percents;
      var lengths = bezierData.lengths;
      var len = percents.length;
      var initPos = bmFloor((len - 1) * perc);
      var lengthPos = perc * bezierData.addedLength;
      var lPerc = 0;
      if (initPos === len - 1 || initPos === 0 || lengthPos === lengths[initPos]) {
        return percents[initPos];
      }
      var dir = lengths[initPos] > lengthPos ? -1 : 1;
      var flag = true;
      while (flag) {
        if (lengths[initPos] <= lengthPos && lengths[initPos + 1] > lengthPos) {
          lPerc = (lengthPos - lengths[initPos]) / (lengths[initPos + 1] - lengths[initPos]);
          flag = false;
        } else {
          initPos += dir;
        }
        if (initPos < 0 || initPos >= len - 1) {
          // FIX for TypedArrays that don't store floating point values with enough accuracy
          if (initPos === len - 1) {
            return percents[initPos];
          }
          flag = false;
        }
      }
      return percents[initPos] + (percents[initPos + 1] - percents[initPos]) * lPerc;
    }
    function getPointInSegment(pt1, pt2, pt3, pt4, percent, bezierData) {
      var t1 = getDistancePerc(percent, bezierData);
      var u1 = 1 - t1;
      var ptX = math.round((u1 * u1 * u1 * pt1[0] + (t1 * u1 * u1 + u1 * t1 * u1 + u1 * u1 * t1) * pt3[0] + (t1 * t1 * u1 + u1 * t1 * t1 + t1 * u1 * t1) * pt4[0] + t1 * t1 * t1 * pt2[0]) * 1000) / 1000;
      var ptY = math.round((u1 * u1 * u1 * pt1[1] + (t1 * u1 * u1 + u1 * t1 * u1 + u1 * u1 * t1) * pt3[1] + (t1 * t1 * u1 + u1 * t1 * t1 + t1 * u1 * t1) * pt4[1] + t1 * t1 * t1 * pt2[1]) * 1000) / 1000;
      return [ptX, ptY];
    }
    var bezierSegmentPoints = createTypedArray('float32', 8);
    function getNewSegment(pt1, pt2, pt3, pt4, startPerc, endPerc, bezierData) {
      if (startPerc < 0) {
        startPerc = 0;
      } else if (startPerc > 1) {
        startPerc = 1;
      }
      var t0 = getDistancePerc(startPerc, bezierData);
      endPerc = endPerc > 1 ? 1 : endPerc;
      var t1 = getDistancePerc(endPerc, bezierData);
      var i;
      var len = pt1.length;
      var u0 = 1 - t0;
      var u1 = 1 - t1;
      var u0u0u0 = u0 * u0 * u0;
      var t0u0u0_3 = t0 * u0 * u0 * 3; // eslint-disable-line camelcase
      var t0t0u0_3 = t0 * t0 * u0 * 3; // eslint-disable-line camelcase
      var t0t0t0 = t0 * t0 * t0;
      //
      var u0u0u1 = u0 * u0 * u1;
      var t0u0u1_3 = t0 * u0 * u1 + u0 * t0 * u1 + u0 * u0 * t1; // eslint-disable-line camelcase
      var t0t0u1_3 = t0 * t0 * u1 + u0 * t0 * t1 + t0 * u0 * t1; // eslint-disable-line camelcase
      var t0t0t1 = t0 * t0 * t1;
      //
      var u0u1u1 = u0 * u1 * u1;
      var t0u1u1_3 = t0 * u1 * u1 + u0 * t1 * u1 + u0 * u1 * t1; // eslint-disable-line camelcase
      var t0t1u1_3 = t0 * t1 * u1 + u0 * t1 * t1 + t0 * u1 * t1; // eslint-disable-line camelcase
      var t0t1t1 = t0 * t1 * t1;
      //
      var u1u1u1 = u1 * u1 * u1;
      var t1u1u1_3 = t1 * u1 * u1 + u1 * t1 * u1 + u1 * u1 * t1; // eslint-disable-line camelcase
      var t1t1u1_3 = t1 * t1 * u1 + u1 * t1 * t1 + t1 * u1 * t1; // eslint-disable-line camelcase
      var t1t1t1 = t1 * t1 * t1;
      for (i = 0; i < len; i += 1) {
        bezierSegmentPoints[i * 4] = math.round((u0u0u0 * pt1[i] + t0u0u0_3 * pt3[i] + t0t0u0_3 * pt4[i] + t0t0t0 * pt2[i]) * 1000) / 1000; // eslint-disable-line camelcase
        bezierSegmentPoints[i * 4 + 1] = math.round((u0u0u1 * pt1[i] + t0u0u1_3 * pt3[i] + t0t0u1_3 * pt4[i] + t0t0t1 * pt2[i]) * 1000) / 1000; // eslint-disable-line camelcase
        bezierSegmentPoints[i * 4 + 2] = math.round((u0u1u1 * pt1[i] + t0u1u1_3 * pt3[i] + t0t1u1_3 * pt4[i] + t0t1t1 * pt2[i]) * 1000) / 1000; // eslint-disable-line camelcase
        bezierSegmentPoints[i * 4 + 3] = math.round((u1u1u1 * pt1[i] + t1u1u1_3 * pt3[i] + t1t1u1_3 * pt4[i] + t1t1t1 * pt2[i]) * 1000) / 1000; // eslint-disable-line camelcase
      }
      return bezierSegmentPoints;
    }
    return {
      getSegmentsLength: getSegmentsLength,
      getNewSegment: getNewSegment,
      getPointInSegment: getPointInSegment,
      buildBezierData: buildBezierData,
      pointOnLine2D: pointOnLine2D,
      pointOnLine3D: pointOnLine3D
    };
  }
  var bez = bezFunction();

  var initFrame = initialDefaultFrame;
  var mathAbs = Math.abs;
  function interpolateValue(frameNum, caching) {
    var offsetTime = this.offsetTime;
    var newValue;
    if (this.propType === 'multidimensional') {
      newValue = createTypedArray('float32', this.pv.length);
    }
    var iterationIndex = caching.lastIndex;
    var i = iterationIndex;
    var len = this.keyframes.length - 1;
    var flag = true;
    var keyData;
    var nextKeyData;
    var keyframeMetadata;
    while (flag) {
      keyData = this.keyframes[i];
      nextKeyData = this.keyframes[i + 1];
      if (i === len - 1 && frameNum >= nextKeyData.t - offsetTime) {
        if (keyData.h) {
          keyData = nextKeyData;
        }
        iterationIndex = 0;
        break;
      }
      if (nextKeyData.t - offsetTime > frameNum) {
        iterationIndex = i;
        break;
      }
      if (i < len - 1) {
        i += 1;
      } else {
        iterationIndex = 0;
        flag = false;
      }
    }
    keyframeMetadata = this.keyframesMetadata[i] || {};
    var k;
    var kLen;
    var perc;
    var jLen;
    var j;
    var fnc;
    var nextKeyTime = nextKeyData.t - offsetTime;
    var keyTime = keyData.t - offsetTime;
    var endValue;
    if (keyData.to) {
      if (!keyframeMetadata.bezierData) {
        keyframeMetadata.bezierData = bez.buildBezierData(keyData.s, nextKeyData.s || keyData.e, keyData.to, keyData.ti);
      }
      var bezierData = keyframeMetadata.bezierData;
      if (frameNum >= nextKeyTime || frameNum < keyTime) {
        var ind = frameNum >= nextKeyTime ? bezierData.points.length - 1 : 0;
        kLen = bezierData.points[ind].point.length;
        for (k = 0; k < kLen; k += 1) {
          newValue[k] = bezierData.points[ind].point[k];
        }
        // caching._lastKeyframeIndex = -1;
      } else {
        if (keyframeMetadata.__fnct) {
          fnc = keyframeMetadata.__fnct;
        } else {
          fnc = BezierFactory.getBezierEasing(keyData.o.x, keyData.o.y, keyData.i.x, keyData.i.y, keyData.n).get;
          keyframeMetadata.__fnct = fnc;
        }
        perc = fnc((frameNum - keyTime) / (nextKeyTime - keyTime));
        var distanceInLine = bezierData.segmentLength * perc;
        var segmentPerc;
        var addedLength = caching.lastFrame < frameNum && caching._lastKeyframeIndex === i ? caching._lastAddedLength : 0;
        j = caching.lastFrame < frameNum && caching._lastKeyframeIndex === i ? caching._lastPoint : 0;
        flag = true;
        jLen = bezierData.points.length;
        while (flag) {
          addedLength += bezierData.points[j].partialLength;
          if (distanceInLine === 0 || perc === 0 || j === bezierData.points.length - 1) {
            kLen = bezierData.points[j].point.length;
            for (k = 0; k < kLen; k += 1) {
              newValue[k] = bezierData.points[j].point[k];
            }
            break;
          } else if (distanceInLine >= addedLength && distanceInLine < addedLength + bezierData.points[j + 1].partialLength) {
            segmentPerc = (distanceInLine - addedLength) / bezierData.points[j + 1].partialLength;
            kLen = bezierData.points[j].point.length;
            for (k = 0; k < kLen; k += 1) {
              newValue[k] = bezierData.points[j].point[k] + (bezierData.points[j + 1].point[k] - bezierData.points[j].point[k]) * segmentPerc;
            }
            break;
          }
          if (j < jLen - 1) {
            j += 1;
          } else {
            flag = false;
          }
        }
        caching._lastPoint = j;
        caching._lastAddedLength = addedLength - bezierData.points[j].partialLength;
        caching._lastKeyframeIndex = i;
      }
    } else {
      var outX;
      var outY;
      var inX;
      var inY;
      var keyValue;
      len = keyData.s.length;
      endValue = nextKeyData.s || keyData.e;
      if (this.sh && keyData.h !== 1) {
        if (frameNum >= nextKeyTime) {
          newValue[0] = endValue[0];
          newValue[1] = endValue[1];
          newValue[2] = endValue[2];
        } else if (frameNum <= keyTime) {
          newValue[0] = keyData.s[0];
          newValue[1] = keyData.s[1];
          newValue[2] = keyData.s[2];
        } else {
          var quatStart = createQuaternion(keyData.s);
          var quatEnd = createQuaternion(endValue);
          var time = (frameNum - keyTime) / (nextKeyTime - keyTime);
          quaternionToEuler(newValue, slerp(quatStart, quatEnd, time));
        }
      } else {
        for (i = 0; i < len; i += 1) {
          if (keyData.h !== 1) {
            if (frameNum >= nextKeyTime) {
              perc = 1;
            } else if (frameNum < keyTime) {
              perc = 0;
            } else {
              if (keyData.o.x.constructor === Array) {
                if (!keyframeMetadata.__fnct) {
                  keyframeMetadata.__fnct = [];
                }
                if (!keyframeMetadata.__fnct[i]) {
                  outX = keyData.o.x[i] === undefined ? keyData.o.x[0] : keyData.o.x[i];
                  outY = keyData.o.y[i] === undefined ? keyData.o.y[0] : keyData.o.y[i];
                  inX = keyData.i.x[i] === undefined ? keyData.i.x[0] : keyData.i.x[i];
                  inY = keyData.i.y[i] === undefined ? keyData.i.y[0] : keyData.i.y[i];
                  fnc = BezierFactory.getBezierEasing(outX, outY, inX, inY).get;
                  keyframeMetadata.__fnct[i] = fnc;
                } else {
                  fnc = keyframeMetadata.__fnct[i];
                }
              } else if (!keyframeMetadata.__fnct) {
                outX = keyData.o.x;
                outY = keyData.o.y;
                inX = keyData.i.x;
                inY = keyData.i.y;
                fnc = BezierFactory.getBezierEasing(outX, outY, inX, inY).get;
                keyData.keyframeMetadata = fnc;
              } else {
                fnc = keyframeMetadata.__fnct;
              }
              perc = fnc((frameNum - keyTime) / (nextKeyTime - keyTime));
            }
          }
          endValue = nextKeyData.s || keyData.e;
          keyValue = keyData.h === 1 ? keyData.s[i] : keyData.s[i] + (endValue[i] - keyData.s[i]) * perc;
          if (this.propType === 'multidimensional') {
            newValue[i] = keyValue;
          } else {
            newValue = keyValue;
          }
        }
      }
    }
    caching.lastIndex = iterationIndex;
    return newValue;
  }

  // based on @Toji's https://github.com/toji/gl-matrix/
  function slerp(a, b, t) {
    var out = [];
    var ax = a[0];
    var ay = a[1];
    var az = a[2];
    var aw = a[3];
    var bx = b[0];
    var by = b[1];
    var bz = b[2];
    var bw = b[3];
    var omega;
    var cosom;
    var sinom;
    var scale0;
    var scale1;
    cosom = ax * bx + ay * by + az * bz + aw * bw;
    if (cosom < 0.0) {
      cosom = -cosom;
      bx = -bx;
      by = -by;
      bz = -bz;
      bw = -bw;
    }
    if (1.0 - cosom > 0.000001) {
      omega = Math.acos(cosom);
      sinom = Math.sin(omega);
      scale0 = Math.sin((1.0 - t) * omega) / sinom;
      scale1 = Math.sin(t * omega) / sinom;
    } else {
      scale0 = 1.0 - t;
      scale1 = t;
    }
    out[0] = scale0 * ax + scale1 * bx;
    out[1] = scale0 * ay + scale1 * by;
    out[2] = scale0 * az + scale1 * bz;
    out[3] = scale0 * aw + scale1 * bw;
    return out;
  }
  function quaternionToEuler(out, quat) {
    var qx = quat[0];
    var qy = quat[1];
    var qz = quat[2];
    var qw = quat[3];
    var heading = Math.atan2(2 * qy * qw - 2 * qx * qz, 1 - 2 * qy * qy - 2 * qz * qz);
    var attitude = Math.asin(2 * qx * qy + 2 * qz * qw);
    var bank = Math.atan2(2 * qx * qw - 2 * qy * qz, 1 - 2 * qx * qx - 2 * qz * qz);
    out[0] = heading / degToRads;
    out[1] = attitude / degToRads;
    out[2] = bank / degToRads;
  }
  function createQuaternion(values) {
    var heading = values[0] * degToRads;
    var attitude = values[1] * degToRads;
    var bank = values[2] * degToRads;
    var c1 = Math.cos(heading / 2);
    var c2 = Math.cos(attitude / 2);
    var c3 = Math.cos(bank / 2);
    var s1 = Math.sin(heading / 2);
    var s2 = Math.sin(attitude / 2);
    var s3 = Math.sin(bank / 2);
    var w = c1 * c2 * c3 - s1 * s2 * s3;
    var x = s1 * s2 * c3 + c1 * c2 * s3;
    var y = s1 * c2 * c3 + c1 * s2 * s3;
    var z = c1 * s2 * c3 - s1 * c2 * s3;
    return [x, y, z, w];
  }
  function getValueAtCurrentTime() {
    var frameNum = this.comp.renderedFrame - this.offsetTime;
    var initTime = this.keyframes[0].t - this.offsetTime;
    var endTime = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
    if (!(frameNum === this._caching.lastFrame || this._caching.lastFrame !== initFrame && (this._caching.lastFrame >= endTime && frameNum >= endTime || this._caching.lastFrame < initTime && frameNum < initTime))) {
      if (this._caching.lastFrame >= frameNum) {
        this._caching._lastKeyframeIndex = -1;
        this._caching.lastIndex = 0;
      }
      var renderResult = this.interpolateValue(frameNum, this._caching);
      this.pv = renderResult;
    }
    this._caching.lastFrame = frameNum;
    return this.pv;
  }
  function setVValue(val) {
    var multipliedValue;
    if (this.propType === 'unidimensional') {
      multipliedValue = val * this.mult;
      if (mathAbs(this.v - multipliedValue) > 0.00001) {
        this.v = multipliedValue;
        this._mdf = true;
      }
    } else {
      var i = 0;
      var len = this.v.length;
      while (i < len) {
        multipliedValue = val[i] * this.mult;
        if (mathAbs(this.v[i] - multipliedValue) > 0.00001) {
          this.v[i] = multipliedValue;
          this._mdf = true;
        }
        i += 1;
      }
    }
  }
  function processEffectsSequence() {
    if (this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length) {
      return;
    }
    if (this.lock) {
      this.setVValue(this.pv);
      return;
    }
    this.lock = true;
    this._mdf = this._isFirstFrame;
    var i;
    var len = this.effectsSequence.length;
    var finalValue = this.kf ? this.pv : this.data.k;
    for (i = 0; i < len; i += 1) {
      finalValue = this.effectsSequence[i](finalValue);
    }
    this.setVValue(finalValue);
    this._isFirstFrame = false;
    this.lock = false;
    this.frameId = this.elem.globalData.frameId;
  }
  function addEffect(effectFunction) {
    this.effectsSequence.push(effectFunction);
    this.container.addDynamicProperty(this);
  }
  function ValueProperty(elem, data, mult, container) {
    this.propType = 'unidimensional';
    this.mult = mult || 1;
    this.data = data;
    this.v = mult ? data.k * mult : data.k;
    this.pv = data.k;
    this._mdf = false;
    this.elem = elem;
    this.container = container;
    this.comp = elem.comp;
    this.k = false;
    this.kf = false;
    this.vel = 0;
    this.effectsSequence = [];
    this._isFirstFrame = true;
    this.getValue = processEffectsSequence;
    this.setVValue = setVValue;
    this.addEffect = addEffect;
  }
  function MultiDimensionalProperty(elem, data, mult, container) {
    this.propType = 'multidimensional';
    this.mult = mult || 1;
    this.data = data;
    this._mdf = false;
    this.elem = elem;
    this.container = container;
    this.comp = elem.comp;
    this.k = false;
    this.kf = false;
    this.frameId = -1;
    var i;
    var len = data.k.length;
    this.v = createTypedArray('float32', len);
    this.pv = createTypedArray('float32', len);
    this.vel = createTypedArray('float32', len);
    for (i = 0; i < len; i += 1) {
      this.v[i] = data.k[i] * this.mult;
      this.pv[i] = data.k[i];
    }
    this._isFirstFrame = true;
    this.effectsSequence = [];
    this.getValue = processEffectsSequence;
    this.setVValue = setVValue;
    this.addEffect = addEffect;
  }
  function KeyframedValueProperty(elem, data, mult, container) {
    this.propType = 'unidimensional';
    this.keyframes = data.k;
    this.keyframesMetadata = [];
    this.offsetTime = elem.data.st;
    this.frameId = -1;
    this._caching = {
      lastFrame: initFrame,
      lastIndex: 0,
      value: 0,
      _lastKeyframeIndex: -1
    };
    this.k = true;
    this.kf = true;
    this.data = data;
    this.mult = mult || 1;
    this.elem = elem;
    this.container = container;
    this.comp = elem.comp;
    this.v = initFrame;
    this.pv = initFrame;
    this._isFirstFrame = true;
    this.getValue = processEffectsSequence;
    this.setVValue = setVValue;
    this.interpolateValue = interpolateValue;
    this.effectsSequence = [getValueAtCurrentTime.bind(this)];
    this.addEffect = addEffect;
  }
  function KeyframedMultidimensionalProperty(elem, data, mult, container) {
    this.propType = 'multidimensional';
    var i;
    var len = data.k.length;
    var s;
    var e;
    var to;
    var ti;
    for (i = 0; i < len - 1; i += 1) {
      if (data.k[i].to && data.k[i].s && data.k[i + 1] && data.k[i + 1].s) {
        s = data.k[i].s;
        e = data.k[i + 1].s;
        to = data.k[i].to;
        ti = data.k[i].ti;
        if (s.length === 2 && !(s[0] === e[0] && s[1] === e[1]) && bez.pointOnLine2D(s[0], s[1], e[0], e[1], s[0] + to[0], s[1] + to[1]) && bez.pointOnLine2D(s[0], s[1], e[0], e[1], e[0] + ti[0], e[1] + ti[1]) || s.length === 3 && !(s[0] === e[0] && s[1] === e[1] && s[2] === e[2]) && bez.pointOnLine3D(s[0], s[1], s[2], e[0], e[1], e[2], s[0] + to[0], s[1] + to[1], s[2] + to[2]) && bez.pointOnLine3D(s[0], s[1], s[2], e[0], e[1], e[2], e[0] + ti[0], e[1] + ti[1], e[2] + ti[2])) {
          data.k[i].to = null;
          data.k[i].ti = null;
        }
        if (s[0] === e[0] && s[1] === e[1] && to[0] === 0 && to[1] === 0 && ti[0] === 0 && ti[1] === 0) {
          if (s.length === 2 || s[2] === e[2] && to[2] === 0 && ti[2] === 0) {
            data.k[i].to = null;
            data.k[i].ti = null;
          }
        }
      }
    }
    this.effectsSequence = [getValueAtCurrentTime.bind(this)];
    this.data = data;
    this.keyframes = data.k;
    this.keyframesMetadata = [];
    this.offsetTime = elem.data.st;
    this.k = true;
    this.kf = true;
    this._isFirstFrame = true;
    this.mult = mult || 1;
    this.elem = elem;
    this.container = container;
    this.comp = elem.comp;
    this.getValue = processEffectsSequence;
    this.setVValue = setVValue;
    this.interpolateValue = interpolateValue;
    this.frameId = -1;
    var arrLen = data.k[0].s.length;
    this.v = createTypedArray('float32', arrLen);
    this.pv = createTypedArray('float32', arrLen);
    for (i = 0; i < arrLen; i += 1) {
      this.v[i] = initFrame;
      this.pv[i] = initFrame;
    }
    this._caching = {
      lastFrame: initFrame,
      lastIndex: 0,
      value: createTypedArray('float32', arrLen)
    };
    this.addEffect = addEffect;
  }
  var PropertyFactory = function () {
    function getProp(elem, data, type, mult, container) {
      if (data.sid) {
        data = elem.globalData.slotManager.getProp(data);
      }
      var p;
      if (!data.k.length) {
        p = new ValueProperty(elem, data, mult, container);
      } else if (typeof data.k[0] === 'number') {
        p = new MultiDimensionalProperty(elem, data, mult, container);
      } else {
        switch (type) {
          case 0:
            p = new KeyframedValueProperty(elem, data, mult, container);
            break;
          case 1:
            p = new KeyframedMultidimensionalProperty(elem, data, mult, container);
            break;
          default:
            break;
        }
      }
      if (p.effectsSequence.length) {
        container.addDynamicProperty(p);
      }
      return p;
    }
    var ob = {
      getProp: getProp
    };
    return ob;
  }();

  function DynamicPropertyContainer() {}
  DynamicPropertyContainer.prototype = {
    addDynamicProperty: function addDynamicProperty(prop) {
      if (this.dynamicProperties.indexOf(prop) === -1) {
        this.dynamicProperties.push(prop);
        this.container.addDynamicProperty(this);
        this._isAnimated = true;
      }
    },
    iterateDynamicProperties: function iterateDynamicProperties() {
      this._mdf = false;
      var i;
      var len = this.dynamicProperties.length;
      for (i = 0; i < len; i += 1) {
        this.dynamicProperties[i].getValue();
        if (this.dynamicProperties[i]._mdf) {
          this._mdf = true;
        }
      }
    },
    initDynamicPropertyContainer: function initDynamicPropertyContainer(container) {
      this.container = container;
      this.dynamicProperties = [];
      this._mdf = false;
      this._isAnimated = false;
    }
  };

  var pointPool = function () {
    function create() {
      return createTypedArray('float32', 2);
    }
    return poolFactory(8, create);
  }();

  function ShapePath() {
    this.c = false;
    this._length = 0;
    this._maxLength = 8;
    this.v = createSizedArray(this._maxLength);
    this.o = createSizedArray(this._maxLength);
    this.i = createSizedArray(this._maxLength);
  }
  ShapePath.prototype.setPathData = function (closed, len) {
    this.c = closed;
    this.setLength(len);
    var i = 0;
    while (i < len) {
      this.v[i] = pointPool.newElement();
      this.o[i] = pointPool.newElement();
      this.i[i] = pointPool.newElement();
      i += 1;
    }
  };
  ShapePath.prototype.setLength = function (len) {
    while (this._maxLength < len) {
      this.doubleArrayLength();
    }
    this._length = len;
  };
  ShapePath.prototype.doubleArrayLength = function () {
    this.v = this.v.concat(createSizedArray(this._maxLength));
    this.i = this.i.concat(createSizedArray(this._maxLength));
    this.o = this.o.concat(createSizedArray(this._maxLength));
    this._maxLength *= 2;
  };
  ShapePath.prototype.setXYAt = function (x, y, type, pos, replace) {
    var arr;
    this._length = Math.max(this._length, pos + 1);
    if (this._length >= this._maxLength) {
      this.doubleArrayLength();
    }
    switch (type) {
      case 'v':
        arr = this.v;
        break;
      case 'i':
        arr = this.i;
        break;
      case 'o':
        arr = this.o;
        break;
      default:
        arr = [];
        break;
    }
    if (!arr[pos] || arr[pos] && !replace) {
      arr[pos] = pointPool.newElement();
    }
    arr[pos][0] = x;
    arr[pos][1] = y;
  };
  ShapePath.prototype.setTripleAt = function (vX, vY, oX, oY, iX, iY, pos, replace) {
    this.setXYAt(vX, vY, 'v', pos, replace);
    this.setXYAt(oX, oY, 'o', pos, replace);
    this.setXYAt(iX, iY, 'i', pos, replace);
  };
  ShapePath.prototype.reverse = function () {
    var newPath = new ShapePath();
    newPath.setPathData(this.c, this._length);
    var vertices = this.v;
    var outPoints = this.o;
    var inPoints = this.i;
    var init = 0;
    if (this.c) {
      newPath.setTripleAt(vertices[0][0], vertices[0][1], inPoints[0][0], inPoints[0][1], outPoints[0][0], outPoints[0][1], 0, false);
      init = 1;
    }
    var cnt = this._length - 1;
    var len = this._length;
    var i;
    for (i = init; i < len; i += 1) {
      newPath.setTripleAt(vertices[cnt][0], vertices[cnt][1], inPoints[cnt][0], inPoints[cnt][1], outPoints[cnt][0], outPoints[cnt][1], i, false);
      cnt -= 1;
    }
    return newPath;
  };
  ShapePath.prototype.length = function () {
    return this._length;
  };

  var shapePool = function () {
    function create() {
      return new ShapePath();
    }
    function release(shapePath) {
      var len = shapePath._length;
      var i;
      for (i = 0; i < len; i += 1) {
        pointPool.release(shapePath.v[i]);
        pointPool.release(shapePath.i[i]);
        pointPool.release(shapePath.o[i]);
        shapePath.v[i] = null;
        shapePath.i[i] = null;
        shapePath.o[i] = null;
      }
      shapePath._length = 0;
      shapePath.c = false;
    }
    function clone(shape) {
      var cloned = factory.newElement();
      var i;
      var len = shape._length === undefined ? shape.v.length : shape._length;
      cloned.setLength(len);
      cloned.c = shape.c;
      for (i = 0; i < len; i += 1) {
        cloned.setTripleAt(shape.v[i][0], shape.v[i][1], shape.o[i][0], shape.o[i][1], shape.i[i][0], shape.i[i][1], i);
      }
      return cloned;
    }
    var factory = poolFactory(4, create, release);
    factory.clone = clone;
    return factory;
  }();

  function ShapeCollection() {
    this._length = 0;
    this._maxLength = 4;
    this.shapes = createSizedArray(this._maxLength);
  }
  ShapeCollection.prototype.addShape = function (shapeData) {
    if (this._length === this._maxLength) {
      this.shapes = this.shapes.concat(createSizedArray(this._maxLength));
      this._maxLength *= 2;
    }
    this.shapes[this._length] = shapeData;
    this._length += 1;
  };
  ShapeCollection.prototype.releaseShapes = function () {
    var i;
    for (i = 0; i < this._length; i += 1) {
      shapePool.release(this.shapes[i]);
    }
    this._length = 0;
  };

  var shapeCollectionPool = function () {
    var ob = {
      newShapeCollection: newShapeCollection,
      release: release
    };
    var _length = 0;
    var _maxLength = 4;
    var pool = createSizedArray(_maxLength);
    function newShapeCollection() {
      var shapeCollection;
      if (_length) {
        _length -= 1;
        shapeCollection = pool[_length];
      } else {
        shapeCollection = new ShapeCollection();
      }
      return shapeCollection;
    }
    function release(shapeCollection) {
      var i;
      var len = shapeCollection._length;
      for (i = 0; i < len; i += 1) {
        shapePool.release(shapeCollection.shapes[i]);
      }
      shapeCollection._length = 0;
      if (_length === _maxLength) {
        pool = pooling["double"](pool);
        _maxLength *= 2;
      }
      pool[_length] = shapeCollection;
      _length += 1;
    }
    return ob;
  }();

  var ShapePropertyFactory = function () {
    var initFrame = -999999;
    function interpolateShape(frameNum, previousValue, caching) {
      var iterationIndex = caching.lastIndex;
      var keyPropS;
      var keyPropE;
      var isHold;
      var j;
      var k;
      var jLen;
      var kLen;
      var perc;
      var vertexValue;
      var kf = this.keyframes;
      if (frameNum < kf[0].t - this.offsetTime) {
        keyPropS = kf[0].s[0];
        isHold = true;
        iterationIndex = 0;
      } else if (frameNum >= kf[kf.length - 1].t - this.offsetTime) {
        keyPropS = kf[kf.length - 1].s ? kf[kf.length - 1].s[0] : kf[kf.length - 2].e[0];
        /* if(kf[kf.length - 1].s){
                  keyPropS = kf[kf.length - 1].s[0];
              }else{
                  keyPropS = kf[kf.length - 2].e[0];
              } */
        isHold = true;
      } else {
        var i = iterationIndex;
        var len = kf.length - 1;
        var flag = true;
        var keyData;
        var nextKeyData;
        var keyframeMetadata;
        while (flag) {
          keyData = kf[i];
          nextKeyData = kf[i + 1];
          if (nextKeyData.t - this.offsetTime > frameNum) {
            break;
          }
          if (i < len - 1) {
            i += 1;
          } else {
            flag = false;
          }
        }
        keyframeMetadata = this.keyframesMetadata[i] || {};
        isHold = keyData.h === 1;
        iterationIndex = i;
        if (!isHold) {
          if (frameNum >= nextKeyData.t - this.offsetTime) {
            perc = 1;
          } else if (frameNum < keyData.t - this.offsetTime) {
            perc = 0;
          } else {
            var fnc;
            if (keyframeMetadata.__fnct) {
              fnc = keyframeMetadata.__fnct;
            } else {
              fnc = BezierFactory.getBezierEasing(keyData.o.x, keyData.o.y, keyData.i.x, keyData.i.y).get;
              keyframeMetadata.__fnct = fnc;
            }
            perc = fnc((frameNum - (keyData.t - this.offsetTime)) / (nextKeyData.t - this.offsetTime - (keyData.t - this.offsetTime)));
          }
          keyPropE = nextKeyData.s ? nextKeyData.s[0] : keyData.e[0];
        }
        keyPropS = keyData.s[0];
      }
      jLen = previousValue._length;
      kLen = keyPropS.i[0].length;
      caching.lastIndex = iterationIndex;
      for (j = 0; j < jLen; j += 1) {
        for (k = 0; k < kLen; k += 1) {
          vertexValue = isHold ? keyPropS.i[j][k] : keyPropS.i[j][k] + (keyPropE.i[j][k] - keyPropS.i[j][k]) * perc;
          previousValue.i[j][k] = vertexValue;
          vertexValue = isHold ? keyPropS.o[j][k] : keyPropS.o[j][k] + (keyPropE.o[j][k] - keyPropS.o[j][k]) * perc;
          previousValue.o[j][k] = vertexValue;
          vertexValue = isHold ? keyPropS.v[j][k] : keyPropS.v[j][k] + (keyPropE.v[j][k] - keyPropS.v[j][k]) * perc;
          previousValue.v[j][k] = vertexValue;
        }
      }
    }
    function interpolateShapeCurrentTime() {
      var frameNum = this.comp.renderedFrame - this.offsetTime;
      var initTime = this.keyframes[0].t - this.offsetTime;
      var endTime = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
      var lastFrame = this._caching.lastFrame;
      if (!(lastFrame !== initFrame && (lastFrame < initTime && frameNum < initTime || lastFrame > endTime && frameNum > endTime))) {
        /// /
        this._caching.lastIndex = lastFrame < frameNum ? this._caching.lastIndex : 0;
        this.interpolateShape(frameNum, this.pv, this._caching);
        /// /
      }
      this._caching.lastFrame = frameNum;
      return this.pv;
    }
    function resetShape() {
      this.paths = this.localShapeCollection;
    }
    function shapesEqual(shape1, shape2) {
      if (shape1._length !== shape2._length || shape1.c !== shape2.c) {
        return false;
      }
      var i;
      var len = shape1._length;
      for (i = 0; i < len; i += 1) {
        if (shape1.v[i][0] !== shape2.v[i][0] || shape1.v[i][1] !== shape2.v[i][1] || shape1.o[i][0] !== shape2.o[i][0] || shape1.o[i][1] !== shape2.o[i][1] || shape1.i[i][0] !== shape2.i[i][0] || shape1.i[i][1] !== shape2.i[i][1]) {
          return false;
        }
      }
      return true;
    }
    function setVValue(newPath) {
      if (!shapesEqual(this.v, newPath)) {
        this.v = shapePool.clone(newPath);
        this.localShapeCollection.releaseShapes();
        this.localShapeCollection.addShape(this.v);
        this._mdf = true;
        this.paths = this.localShapeCollection;
      }
    }
    function processEffectsSequence() {
      if (this.elem.globalData.frameId === this.frameId) {
        return;
      }
      if (!this.effectsSequence.length) {
        this._mdf = false;
        return;
      }
      if (this.lock) {
        this.setVValue(this.pv);
        return;
      }
      this.lock = true;
      this._mdf = false;
      var finalValue;
      if (this.kf) {
        finalValue = this.pv;
      } else if (this.data.ks) {
        finalValue = this.data.ks.k;
      } else {
        finalValue = this.data.pt.k;
      }
      var i;
      var len = this.effectsSequence.length;
      for (i = 0; i < len; i += 1) {
        finalValue = this.effectsSequence[i](finalValue);
      }
      this.setVValue(finalValue);
      this.lock = false;
      this.frameId = this.elem.globalData.frameId;
    }
    function ShapeProperty(elem, data, type) {
      this.propType = 'shape';
      this.comp = elem.comp;
      this.container = elem;
      this.elem = elem;
      this.data = data;
      this.k = false;
      this.kf = false;
      this._mdf = false;
      var pathData = type === 3 ? data.pt.k : data.ks.k;
      this.v = shapePool.clone(pathData);
      this.pv = shapePool.clone(this.v);
      this.localShapeCollection = shapeCollectionPool.newShapeCollection();
      this.paths = this.localShapeCollection;
      this.paths.addShape(this.v);
      this.reset = resetShape;
      this.effectsSequence = [];
    }
    function addEffect(effectFunction) {
      this.effectsSequence.push(effectFunction);
      this.container.addDynamicProperty(this);
    }
    ShapeProperty.prototype.interpolateShape = interpolateShape;
    ShapeProperty.prototype.getValue = processEffectsSequence;
    ShapeProperty.prototype.setVValue = setVValue;
    ShapeProperty.prototype.addEffect = addEffect;
    function KeyframedShapeProperty(elem, data, type) {
      this.propType = 'shape';
      this.comp = elem.comp;
      this.elem = elem;
      this.container = elem;
      this.offsetTime = elem.data.st;
      this.keyframes = type === 3 ? data.pt.k : data.ks.k;
      this.keyframesMetadata = [];
      this.k = true;
      this.kf = true;
      var len = this.keyframes[0].s[0].i.length;
      this.v = shapePool.newElement();
      this.v.setPathData(this.keyframes[0].s[0].c, len);
      this.pv = shapePool.clone(this.v);
      this.localShapeCollection = shapeCollectionPool.newShapeCollection();
      this.paths = this.localShapeCollection;
      this.paths.addShape(this.v);
      this.lastFrame = initFrame;
      this.reset = resetShape;
      this._caching = {
        lastFrame: initFrame,
        lastIndex: 0
      };
      this.effectsSequence = [interpolateShapeCurrentTime.bind(this)];
    }
    KeyframedShapeProperty.prototype.getValue = processEffectsSequence;
    KeyframedShapeProperty.prototype.interpolateShape = interpolateShape;
    KeyframedShapeProperty.prototype.setVValue = setVValue;
    KeyframedShapeProperty.prototype.addEffect = addEffect;
    var EllShapeProperty = function () {
      var cPoint = roundCorner;
      function EllShapePropertyFactory(elem, data) {
        this.v = shapePool.newElement();
        this.v.setPathData(true, 4);
        this.localShapeCollection = shapeCollectionPool.newShapeCollection();
        this.paths = this.localShapeCollection;
        this.localShapeCollection.addShape(this.v);
        this.d = data.d;
        this.elem = elem;
        this.comp = elem.comp;
        this.frameId = -1;
        this.initDynamicPropertyContainer(elem);
        this.p = PropertyFactory.getProp(elem, data.p, 1, 0, this);
        this.s = PropertyFactory.getProp(elem, data.s, 1, 0, this);
        if (this.dynamicProperties.length) {
          this.k = true;
        } else {
          this.k = false;
          this.convertEllToPath();
        }
      }
      EllShapePropertyFactory.prototype = {
        reset: resetShape,
        getValue: function getValue() {
          if (this.elem.globalData.frameId === this.frameId) {
            return;
          }
          this.frameId = this.elem.globalData.frameId;
          this.iterateDynamicProperties();
          if (this._mdf) {
            this.convertEllToPath();
          }
        },
        convertEllToPath: function convertEllToPath() {
          var p0 = this.p.v[0];
          var p1 = this.p.v[1];
          var s0 = this.s.v[0] / 2;
          var s1 = this.s.v[1] / 2;
          var _cw = this.d !== 3;
          var _v = this.v;
          _v.v[0][0] = p0;
          _v.v[0][1] = p1 - s1;
          _v.v[1][0] = _cw ? p0 + s0 : p0 - s0;
          _v.v[1][1] = p1;
          _v.v[2][0] = p0;
          _v.v[2][1] = p1 + s1;
          _v.v[3][0] = _cw ? p0 - s0 : p0 + s0;
          _v.v[3][1] = p1;
          _v.i[0][0] = _cw ? p0 - s0 * cPoint : p0 + s0 * cPoint;
          _v.i[0][1] = p1 - s1;
          _v.i[1][0] = _cw ? p0 + s0 : p0 - s0;
          _v.i[1][1] = p1 - s1 * cPoint;
          _v.i[2][0] = _cw ? p0 + s0 * cPoint : p0 - s0 * cPoint;
          _v.i[2][1] = p1 + s1;
          _v.i[3][0] = _cw ? p0 - s0 : p0 + s0;
          _v.i[3][1] = p1 + s1 * cPoint;
          _v.o[0][0] = _cw ? p0 + s0 * cPoint : p0 - s0 * cPoint;
          _v.o[0][1] = p1 - s1;
          _v.o[1][0] = _cw ? p0 + s0 : p0 - s0;
          _v.o[1][1] = p1 + s1 * cPoint;
          _v.o[2][0] = _cw ? p0 - s0 * cPoint : p0 + s0 * cPoint;
          _v.o[2][1] = p1 + s1;
          _v.o[3][0] = _cw ? p0 - s0 : p0 + s0;
          _v.o[3][1] = p1 - s1 * cPoint;
        }
      };
      extendPrototype([DynamicPropertyContainer], EllShapePropertyFactory);
      return EllShapePropertyFactory;
    }();
    var StarShapeProperty = function () {
      function StarShapePropertyFactory(elem, data) {
        this.v = shapePool.newElement();
        this.v.setPathData(true, 0);
        this.elem = elem;
        this.comp = elem.comp;
        this.data = data;
        this.frameId = -1;
        this.d = data.d;
        this.initDynamicPropertyContainer(elem);
        if (data.sy === 1) {
          this.ir = PropertyFactory.getProp(elem, data.ir, 0, 0, this);
          this.is = PropertyFactory.getProp(elem, data.is, 0, 0.01, this);
          this.convertToPath = this.convertStarToPath;
        } else {
          this.convertToPath = this.convertPolygonToPath;
        }
        this.pt = PropertyFactory.getProp(elem, data.pt, 0, 0, this);
        this.p = PropertyFactory.getProp(elem, data.p, 1, 0, this);
        this.r = PropertyFactory.getProp(elem, data.r, 0, degToRads, this);
        this.or = PropertyFactory.getProp(elem, data.or, 0, 0, this);
        this.os = PropertyFactory.getProp(elem, data.os, 0, 0.01, this);
        this.localShapeCollection = shapeCollectionPool.newShapeCollection();
        this.localShapeCollection.addShape(this.v);
        this.paths = this.localShapeCollection;
        if (this.dynamicProperties.length) {
          this.k = true;
        } else {
          this.k = false;
          this.convertToPath();
        }
      }
      StarShapePropertyFactory.prototype = {
        reset: resetShape,
        getValue: function getValue() {
          if (this.elem.globalData.frameId === this.frameId) {
            return;
          }
          this.frameId = this.elem.globalData.frameId;
          this.iterateDynamicProperties();
          if (this._mdf) {
            this.convertToPath();
          }
        },
        convertStarToPath: function convertStarToPath() {
          var numPts = Math.floor(this.pt.v) * 2;
          var angle = Math.PI * 2 / numPts;
          /* this.v.v.length = numPts;
                  this.v.i.length = numPts;
                  this.v.o.length = numPts; */
          var longFlag = true;
          var longRad = this.or.v;
          var shortRad = this.ir.v;
          var longRound = this.os.v;
          var shortRound = this.is.v;
          var longPerimSegment = 2 * Math.PI * longRad / (numPts * 2);
          var shortPerimSegment = 2 * Math.PI * shortRad / (numPts * 2);
          var i;
          var rad;
          var roundness;
          var perimSegment;
          var currentAng = -Math.PI / 2;
          currentAng += this.r.v;
          var dir = this.data.d === 3 ? -1 : 1;
          this.v._length = 0;
          for (i = 0; i < numPts; i += 1) {
            rad = longFlag ? longRad : shortRad;
            roundness = longFlag ? longRound : shortRound;
            perimSegment = longFlag ? longPerimSegment : shortPerimSegment;
            var x = rad * Math.cos(currentAng);
            var y = rad * Math.sin(currentAng);
            var ox = x === 0 && y === 0 ? 0 : y / Math.sqrt(x * x + y * y);
            var oy = x === 0 && y === 0 ? 0 : -x / Math.sqrt(x * x + y * y);
            x += +this.p.v[0];
            y += +this.p.v[1];
            this.v.setTripleAt(x, y, x - ox * perimSegment * roundness * dir, y - oy * perimSegment * roundness * dir, x + ox * perimSegment * roundness * dir, y + oy * perimSegment * roundness * dir, i, true);

            /* this.v.v[i] = [x,y];
                      this.v.i[i] = [x+ox*perimSegment*roundness*dir,y+oy*perimSegment*roundness*dir];
                      this.v.o[i] = [x-ox*perimSegment*roundness*dir,y-oy*perimSegment*roundness*dir];
                      this.v._length = numPts; */
            longFlag = !longFlag;
            currentAng += angle * dir;
          }
        },
        convertPolygonToPath: function convertPolygonToPath() {
          var numPts = Math.floor(this.pt.v);
          var angle = Math.PI * 2 / numPts;
          var rad = this.or.v;
          var roundness = this.os.v;
          var perimSegment = 2 * Math.PI * rad / (numPts * 4);
          var i;
          var currentAng = -Math.PI * 0.5;
          var dir = this.data.d === 3 ? -1 : 1;
          currentAng += this.r.v;
          this.v._length = 0;
          for (i = 0; i < numPts; i += 1) {
            var x = rad * Math.cos(currentAng);
            var y = rad * Math.sin(currentAng);
            var ox = x === 0 && y === 0 ? 0 : y / Math.sqrt(x * x + y * y);
            var oy = x === 0 && y === 0 ? 0 : -x / Math.sqrt(x * x + y * y);
            x += +this.p.v[0];
            y += +this.p.v[1];
            this.v.setTripleAt(x, y, x - ox * perimSegment * roundness * dir, y - oy * perimSegment * roundness * dir, x + ox * perimSegment * roundness * dir, y + oy * perimSegment * roundness * dir, i, true);
            currentAng += angle * dir;
          }
          this.paths.length = 0;
          this.paths[0] = this.v;
        }
      };
      extendPrototype([DynamicPropertyContainer], StarShapePropertyFactory);
      return StarShapePropertyFactory;
    }();
    var RectShapeProperty = function () {
      function RectShapePropertyFactory(elem, data) {
        this.v = shapePool.newElement();
        this.v.c = true;
        this.localShapeCollection = shapeCollectionPool.newShapeCollection();
        this.localShapeCollection.addShape(this.v);
        this.paths = this.localShapeCollection;
        this.elem = elem;
        this.comp = elem.comp;
        this.frameId = -1;
        this.d = data.d;
        this.initDynamicPropertyContainer(elem);
        this.p = PropertyFactory.getProp(elem, data.p, 1, 0, this);
        this.s = PropertyFactory.getProp(elem, data.s, 1, 0, this);
        this.r = PropertyFactory.getProp(elem, data.r, 0, 0, this);
        if (this.dynamicProperties.length) {
          this.k = true;
        } else {
          this.k = false;
          this.convertRectToPath();
        }
      }
      RectShapePropertyFactory.prototype = {
        convertRectToPath: function convertRectToPath() {
          var p0 = this.p.v[0];
          var p1 = this.p.v[1];
          var v0 = this.s.v[0] / 2;
          var v1 = this.s.v[1] / 2;
          var round = bmMin(v0, v1, this.r.v);
          var cPoint = round * (1 - roundCorner);
          this.v._length = 0;
          if (this.d === 2 || this.d === 1) {
            this.v.setTripleAt(p0 + v0, p1 - v1 + round, p0 + v0, p1 - v1 + round, p0 + v0, p1 - v1 + cPoint, 0, true);
            this.v.setTripleAt(p0 + v0, p1 + v1 - round, p0 + v0, p1 + v1 - cPoint, p0 + v0, p1 + v1 - round, 1, true);
            if (round !== 0) {
              this.v.setTripleAt(p0 + v0 - round, p1 + v1, p0 + v0 - round, p1 + v1, p0 + v0 - cPoint, p1 + v1, 2, true);
              this.v.setTripleAt(p0 - v0 + round, p1 + v1, p0 - v0 + cPoint, p1 + v1, p0 - v0 + round, p1 + v1, 3, true);
              this.v.setTripleAt(p0 - v0, p1 + v1 - round, p0 - v0, p1 + v1 - round, p0 - v0, p1 + v1 - cPoint, 4, true);
              this.v.setTripleAt(p0 - v0, p1 - v1 + round, p0 - v0, p1 - v1 + cPoint, p0 - v0, p1 - v1 + round, 5, true);
              this.v.setTripleAt(p0 - v0 + round, p1 - v1, p0 - v0 + round, p1 - v1, p0 - v0 + cPoint, p1 - v1, 6, true);
              this.v.setTripleAt(p0 + v0 - round, p1 - v1, p0 + v0 - cPoint, p1 - v1, p0 + v0 - round, p1 - v1, 7, true);
            } else {
              this.v.setTripleAt(p0 - v0, p1 + v1, p0 - v0 + cPoint, p1 + v1, p0 - v0, p1 + v1, 2);
              this.v.setTripleAt(p0 - v0, p1 - v1, p0 - v0, p1 - v1 + cPoint, p0 - v0, p1 - v1, 3);
            }
          } else {
            this.v.setTripleAt(p0 + v0, p1 - v1 + round, p0 + v0, p1 - v1 + cPoint, p0 + v0, p1 - v1 + round, 0, true);
            if (round !== 0) {
              this.v.setTripleAt(p0 + v0 - round, p1 - v1, p0 + v0 - round, p1 - v1, p0 + v0 - cPoint, p1 - v1, 1, true);
              this.v.setTripleAt(p0 - v0 + round, p1 - v1, p0 - v0 + cPoint, p1 - v1, p0 - v0 + round, p1 - v1, 2, true);
              this.v.setTripleAt(p0 - v0, p1 - v1 + round, p0 - v0, p1 - v1 + round, p0 - v0, p1 - v1 + cPoint, 3, true);
              this.v.setTripleAt(p0 - v0, p1 + v1 - round, p0 - v0, p1 + v1 - cPoint, p0 - v0, p1 + v1 - round, 4, true);
              this.v.setTripleAt(p0 - v0 + round, p1 + v1, p0 - v0 + round, p1 + v1, p0 - v0 + cPoint, p1 + v1, 5, true);
              this.v.setTripleAt(p0 + v0 - round, p1 + v1, p0 + v0 - cPoint, p1 + v1, p0 + v0 - round, p1 + v1, 6, true);
              this.v.setTripleAt(p0 + v0, p1 + v1 - round, p0 + v0, p1 + v1 - round, p0 + v0, p1 + v1 - cPoint, 7, true);
            } else {
              this.v.setTripleAt(p0 - v0, p1 - v1, p0 - v0 + cPoint, p1 - v1, p0 - v0, p1 - v1, 1, true);
              this.v.setTripleAt(p0 - v0, p1 + v1, p0 - v0, p1 + v1 - cPoint, p0 - v0, p1 + v1, 2, true);
              this.v.setTripleAt(p0 + v0, p1 + v1, p0 + v0 - cPoint, p1 + v1, p0 + v0, p1 + v1, 3, true);
            }
          }
        },
        getValue: function getValue() {
          if (this.elem.globalData.frameId === this.frameId) {
            return;
          }
          this.frameId = this.elem.globalData.frameId;
          this.iterateDynamicProperties();
          if (this._mdf) {
            this.convertRectToPath();
          }
        },
        reset: resetShape
      };
      extendPrototype([DynamicPropertyContainer], RectShapePropertyFactory);
      return RectShapePropertyFactory;
    }();
    function getShapeProp(elem, data, type) {
      var prop;
      if (type === 3 || type === 4) {
        var dataProp = type === 3 ? data.pt : data.ks;
        var keys = dataProp.k;
        if (keys.length) {
          prop = new KeyframedShapeProperty(elem, data, type);
        } else {
          prop = new ShapeProperty(elem, data, type);
        }
      } else if (type === 5) {
        prop = new RectShapeProperty(elem, data);
      } else if (type === 6) {
        prop = new EllShapeProperty(elem, data);
      } else if (type === 7) {
        prop = new StarShapeProperty(elem, data);
      }
      if (prop.k) {
        elem.addDynamicProperty(prop);
      }
      return prop;
    }
    function getConstructorFunction() {
      return ShapeProperty;
    }
    function getKeyframedConstructorFunction() {
      return KeyframedShapeProperty;
    }
    var ob = {};
    ob.getShapeProp = getShapeProp;
    ob.getConstructorFunction = getConstructorFunction;
    ob.getKeyframedConstructorFunction = getKeyframedConstructorFunction;
    return ob;
  }();

  /*!
   Transformation Matrix v2.0
   (c) Epistemex 2014-2015
   www.epistemex.com
   By Ken Fyrstenberg
   Contributions by leeoniya.
   License: MIT, header required.
   */

  /**
   * 2D transformation matrix object initialized with identity matrix.
   *
   * The matrix can synchronize a canvas context by supplying the context
   * as an argument, or later apply current absolute transform to an
   * existing context.
   *
   * All values are handled as floating point values.
   *
   * @param {CanvasRenderingContext2D} [context] - Optional context to sync with Matrix
   * @prop {number} a - scale x
   * @prop {number} b - shear y
   * @prop {number} c - shear x
   * @prop {number} d - scale y
   * @prop {number} e - translate x
   * @prop {number} f - translate y
   * @prop {CanvasRenderingContext2D|null} [context=null] - set or get current canvas context
   * @constructor
   */

  var Matrix = function () {
    var _cos = Math.cos;
    var _sin = Math.sin;
    var _tan = Math.tan;
    var _rnd = Math.round;
    function reset() {
      this.props[0] = 1;
      this.props[1] = 0;
      this.props[2] = 0;
      this.props[3] = 0;
      this.props[4] = 0;
      this.props[5] = 1;
      this.props[6] = 0;
      this.props[7] = 0;
      this.props[8] = 0;
      this.props[9] = 0;
      this.props[10] = 1;
      this.props[11] = 0;
      this.props[12] = 0;
      this.props[13] = 0;
      this.props[14] = 0;
      this.props[15] = 1;
      return this;
    }
    function rotate(angle) {
      if (angle === 0) {
        return this;
      }
      var mCos = _cos(angle);
      var mSin = _sin(angle);
      return this._t(mCos, -mSin, 0, 0, mSin, mCos, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }
    function rotateX(angle) {
      if (angle === 0) {
        return this;
      }
      var mCos = _cos(angle);
      var mSin = _sin(angle);
      return this._t(1, 0, 0, 0, 0, mCos, -mSin, 0, 0, mSin, mCos, 0, 0, 0, 0, 1);
    }
    function rotateY(angle) {
      if (angle === 0) {
        return this;
      }
      var mCos = _cos(angle);
      var mSin = _sin(angle);
      return this._t(mCos, 0, mSin, 0, 0, 1, 0, 0, -mSin, 0, mCos, 0, 0, 0, 0, 1);
    }
    function rotateZ(angle) {
      if (angle === 0) {
        return this;
      }
      var mCos = _cos(angle);
      var mSin = _sin(angle);
      return this._t(mCos, -mSin, 0, 0, mSin, mCos, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }
    function shear(sx, sy) {
      return this._t(1, sy, sx, 1, 0, 0);
    }
    function skew(ax, ay) {
      return this.shear(_tan(ax), _tan(ay));
    }
    function skewFromAxis(ax, angle) {
      var mCos = _cos(angle);
      var mSin = _sin(angle);
      return this._t(mCos, mSin, 0, 0, -mSin, mCos, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, _tan(ax), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(mCos, -mSin, 0, 0, mSin, mCos, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
      // return this._t(mCos, mSin, -mSin, mCos, 0, 0)._t(1, 0, _tan(ax), 1, 0, 0)._t(mCos, -mSin, mSin, mCos, 0, 0);
    }
    function scale(sx, sy, sz) {
      if (!sz && sz !== 0) {
        sz = 1;
      }
      if (sx === 1 && sy === 1 && sz === 1) {
        return this;
      }
      return this._t(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, sz, 0, 0, 0, 0, 1);
    }
    function setTransform(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) {
      this.props[0] = a;
      this.props[1] = b;
      this.props[2] = c;
      this.props[3] = d;
      this.props[4] = e;
      this.props[5] = f;
      this.props[6] = g;
      this.props[7] = h;
      this.props[8] = i;
      this.props[9] = j;
      this.props[10] = k;
      this.props[11] = l;
      this.props[12] = m;
      this.props[13] = n;
      this.props[14] = o;
      this.props[15] = p;
      return this;
    }
    function translate(tx, ty, tz) {
      tz = tz || 0;
      if (tx !== 0 || ty !== 0 || tz !== 0) {
        return this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, tx, ty, tz, 1);
      }
      return this;
    }
    function transform(a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2) {
      var _p = this.props;
      if (a2 === 1 && b2 === 0 && c2 === 0 && d2 === 0 && e2 === 0 && f2 === 1 && g2 === 0 && h2 === 0 && i2 === 0 && j2 === 0 && k2 === 1 && l2 === 0) {
        // NOTE: commenting this condition because TurboFan deoptimizes code when present
        // if(m2 !== 0 || n2 !== 0 || o2 !== 0){
        _p[12] = _p[12] * a2 + _p[15] * m2;
        _p[13] = _p[13] * f2 + _p[15] * n2;
        _p[14] = _p[14] * k2 + _p[15] * o2;
        _p[15] *= p2;
        // }
        this._identityCalculated = false;
        return this;
      }
      var a1 = _p[0];
      var b1 = _p[1];
      var c1 = _p[2];
      var d1 = _p[3];
      var e1 = _p[4];
      var f1 = _p[5];
      var g1 = _p[6];
      var h1 = _p[7];
      var i1 = _p[8];
      var j1 = _p[9];
      var k1 = _p[10];
      var l1 = _p[11];
      var m1 = _p[12];
      var n1 = _p[13];
      var o1 = _p[14];
      var p1 = _p[15];

      /* matrix order (canvas compatible):
           * ace
           * bdf
           * 001
           */
      _p[0] = a1 * a2 + b1 * e2 + c1 * i2 + d1 * m2;
      _p[1] = a1 * b2 + b1 * f2 + c1 * j2 + d1 * n2;
      _p[2] = a1 * c2 + b1 * g2 + c1 * k2 + d1 * o2;
      _p[3] = a1 * d2 + b1 * h2 + c1 * l2 + d1 * p2;
      _p[4] = e1 * a2 + f1 * e2 + g1 * i2 + h1 * m2;
      _p[5] = e1 * b2 + f1 * f2 + g1 * j2 + h1 * n2;
      _p[6] = e1 * c2 + f1 * g2 + g1 * k2 + h1 * o2;
      _p[7] = e1 * d2 + f1 * h2 + g1 * l2 + h1 * p2;
      _p[8] = i1 * a2 + j1 * e2 + k1 * i2 + l1 * m2;
      _p[9] = i1 * b2 + j1 * f2 + k1 * j2 + l1 * n2;
      _p[10] = i1 * c2 + j1 * g2 + k1 * k2 + l1 * o2;
      _p[11] = i1 * d2 + j1 * h2 + k1 * l2 + l1 * p2;
      _p[12] = m1 * a2 + n1 * e2 + o1 * i2 + p1 * m2;
      _p[13] = m1 * b2 + n1 * f2 + o1 * j2 + p1 * n2;
      _p[14] = m1 * c2 + n1 * g2 + o1 * k2 + p1 * o2;
      _p[15] = m1 * d2 + n1 * h2 + o1 * l2 + p1 * p2;
      this._identityCalculated = false;
      return this;
    }
    function multiply(matrix) {
      var matrixProps = matrix.props;
      return this.transform(matrixProps[0], matrixProps[1], matrixProps[2], matrixProps[3], matrixProps[4], matrixProps[5], matrixProps[6], matrixProps[7], matrixProps[8], matrixProps[9], matrixProps[10], matrixProps[11], matrixProps[12], matrixProps[13], matrixProps[14], matrixProps[15]);
    }
    function isIdentity() {
      if (!this._identityCalculated) {
        this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1);
        this._identityCalculated = true;
      }
      return this._identity;
    }
    function equals(matr) {
      var i = 0;
      while (i < 16) {
        if (matr.props[i] !== this.props[i]) {
          return false;
        }
        i += 1;
      }
      return true;
    }
    function clone(matr) {
      var i;
      for (i = 0; i < 16; i += 1) {
        matr.props[i] = this.props[i];
      }
      return matr;
    }
    function cloneFromProps(props) {
      var i;
      for (i = 0; i < 16; i += 1) {
        this.props[i] = props[i];
      }
    }
    function applyToPoint(x, y, z) {
      return {
        x: x * this.props[0] + y * this.props[4] + z * this.props[8] + this.props[12],
        y: x * this.props[1] + y * this.props[5] + z * this.props[9] + this.props[13],
        z: x * this.props[2] + y * this.props[6] + z * this.props[10] + this.props[14]
      };
      /* return {
           x: x * me.a + y * me.c + me.e,
           y: x * me.b + y * me.d + me.f
           }; */
    }
    function applyToX(x, y, z) {
      return x * this.props[0] + y * this.props[4] + z * this.props[8] + this.props[12];
    }
    function applyToY(x, y, z) {
      return x * this.props[1] + y * this.props[5] + z * this.props[9] + this.props[13];
    }
    function applyToZ(x, y, z) {
      return x * this.props[2] + y * this.props[6] + z * this.props[10] + this.props[14];
    }
    function getInverseMatrix() {
      var determinant = this.props[0] * this.props[5] - this.props[1] * this.props[4];
      var a = this.props[5] / determinant;
      var b = -this.props[1] / determinant;
      var c = -this.props[4] / determinant;
      var d = this.props[0] / determinant;
      var e = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / determinant;
      var f = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / determinant;
      var inverseMatrix = new Matrix();
      inverseMatrix.props[0] = a;
      inverseMatrix.props[1] = b;
      inverseMatrix.props[4] = c;
      inverseMatrix.props[5] = d;
      inverseMatrix.props[12] = e;
      inverseMatrix.props[13] = f;
      return inverseMatrix;
    }
    function inversePoint(pt) {
      var inverseMatrix = this.getInverseMatrix();
      return inverseMatrix.applyToPointArray(pt[0], pt[1], pt[2] || 0);
    }
    function inversePoints(pts) {
      var i;
      var len = pts.length;
      var retPts = [];
      for (i = 0; i < len; i += 1) {
        retPts[i] = inversePoint(pts[i]);
      }
      return retPts;
    }
    function applyToTriplePoints(pt1, pt2, pt3) {
      var arr = createTypedArray('float32', 6);
      if (this.isIdentity()) {
        arr[0] = pt1[0];
        arr[1] = pt1[1];
        arr[2] = pt2[0];
        arr[3] = pt2[1];
        arr[4] = pt3[0];
        arr[5] = pt3[1];
      } else {
        var p0 = this.props[0];
        var p1 = this.props[1];
        var p4 = this.props[4];
        var p5 = this.props[5];
        var p12 = this.props[12];
        var p13 = this.props[13];
        arr[0] = pt1[0] * p0 + pt1[1] * p4 + p12;
        arr[1] = pt1[0] * p1 + pt1[1] * p5 + p13;
        arr[2] = pt2[0] * p0 + pt2[1] * p4 + p12;
        arr[3] = pt2[0] * p1 + pt2[1] * p5 + p13;
        arr[4] = pt3[0] * p0 + pt3[1] * p4 + p12;
        arr[5] = pt3[0] * p1 + pt3[1] * p5 + p13;
      }
      return arr;
    }
    function applyToPointArray(x, y, z) {
      var arr;
      if (this.isIdentity()) {
        arr = [x, y, z];
      } else {
        arr = [x * this.props[0] + y * this.props[4] + z * this.props[8] + this.props[12], x * this.props[1] + y * this.props[5] + z * this.props[9] + this.props[13], x * this.props[2] + y * this.props[6] + z * this.props[10] + this.props[14]];
      }
      return arr;
    }
    function applyToPointStringified(x, y) {
      if (this.isIdentity()) {
        return x + ',' + y;
      }
      var _p = this.props;
      return Math.round((x * _p[0] + y * _p[4] + _p[12]) * 100) / 100 + ',' + Math.round((x * _p[1] + y * _p[5] + _p[13]) * 100) / 100;
    }
    function toCSS() {
      // Doesn't make much sense to add this optimization. If it is an identity matrix, it's very likely this will get called only once since it won't be keyframed.
      /* if(this.isIdentity()) {
              return '';
          } */
      var i = 0;
      var props = this.props;
      var cssValue = 'matrix3d(';
      var v = 10000;
      while (i < 16) {
        cssValue += _rnd(props[i] * v) / v;
        cssValue += i === 15 ? ')' : ',';
        i += 1;
      }
      return cssValue;
    }
    function roundMatrixProperty(val) {
      var v = 10000;
      if (val < 0.000001 && val > 0 || val > -0.000001 && val < 0) {
        return _rnd(val * v) / v;
      }
      return val;
    }
    function to2dCSS() {
      // Doesn't make much sense to add this optimization. If it is an identity matrix, it's very likely this will get called only once since it won't be keyframed.
      /* if(this.isIdentity()) {
              return '';
          } */
      var props = this.props;
      var _a = roundMatrixProperty(props[0]);
      var _b = roundMatrixProperty(props[1]);
      var _c = roundMatrixProperty(props[4]);
      var _d = roundMatrixProperty(props[5]);
      var _e = roundMatrixProperty(props[12]);
      var _f = roundMatrixProperty(props[13]);
      return 'matrix(' + _a + ',' + _b + ',' + _c + ',' + _d + ',' + _e + ',' + _f + ')';
    }
    return function () {
      this.reset = reset;
      this.rotate = rotate;
      this.rotateX = rotateX;
      this.rotateY = rotateY;
      this.rotateZ = rotateZ;
      this.skew = skew;
      this.skewFromAxis = skewFromAxis;
      this.shear = shear;
      this.scale = scale;
      this.setTransform = setTransform;
      this.translate = translate;
      this.transform = transform;
      this.multiply = multiply;
      this.applyToPoint = applyToPoint;
      this.applyToX = applyToX;
      this.applyToY = applyToY;
      this.applyToZ = applyToZ;
      this.applyToPointArray = applyToPointArray;
      this.applyToTriplePoints = applyToTriplePoints;
      this.applyToPointStringified = applyToPointStringified;
      this.toCSS = toCSS;
      this.to2dCSS = to2dCSS;
      this.clone = clone;
      this.cloneFromProps = cloneFromProps;
      this.equals = equals;
      this.inversePoints = inversePoints;
      this.inversePoint = inversePoint;
      this.getInverseMatrix = getInverseMatrix;
      this._t = this.transform;
      this.isIdentity = isIdentity;
      this._identity = true;
      this._identityCalculated = false;
      this.props = createTypedArray('float32', 16);
      this.reset();
    };
  }();

  function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$3(o); }
  var lottie = {};
  var standalone = '__[STANDALONE]__';
  var animationData = '__[ANIMATIONDATA]__';
  var renderer = '';
  function setLocation(href) {
    setLocationHref(href);
  }
  function searchAnimations() {
    if (standalone === true) {
      animationManager.searchAnimations(animationData, standalone, renderer);
    } else {
      animationManager.searchAnimations();
    }
  }
  function setSubframeRendering(flag) {
    setSubframeEnabled(flag);
  }
  function setPrefix(prefix) {
    setIdPrefix(prefix);
  }
  function loadAnimation(params) {
    if (standalone === true) {
      params.animationData = JSON.parse(animationData);
    }
    return animationManager.loadAnimation(params);
  }
  function setQuality(value) {
    if (typeof value === 'string') {
      switch (value) {
        case 'high':
          setDefaultCurveSegments(200);
          break;
        default:
        case 'medium':
          setDefaultCurveSegments(50);
          break;
        case 'low':
          setDefaultCurveSegments(10);
          break;
      }
    } else if (!isNaN(value) && value > 1) {
      setDefaultCurveSegments(value);
    }
    if (getDefaultCurveSegments() >= 50) {
      roundValues(false);
    } else {
      roundValues(true);
    }
  }
  function inBrowser() {
    return typeof navigator !== 'undefined';
  }
  function installPlugin(type, plugin) {
    if (type === 'expressions') {
      setExpressionsPlugin(plugin);
    }
  }
  function getFactory(name) {
    switch (name) {
      case 'propertyFactory':
        return PropertyFactory;
      case 'shapePropertyFactory':
        return ShapePropertyFactory;
      case 'matrix':
        return Matrix;
      default:
        return null;
    }
  }
  lottie.play = animationManager.play;
  lottie.pause = animationManager.pause;
  lottie.setLocationHref = setLocation;
  lottie.togglePause = animationManager.togglePause;
  lottie.setSpeed = animationManager.setSpeed;
  lottie.setDirection = animationManager.setDirection;
  lottie.stop = animationManager.stop;
  lottie.searchAnimations = searchAnimations;
  lottie.registerAnimation = animationManager.registerAnimation;
  lottie.loadAnimation = loadAnimation;
  lottie.setSubframeRendering = setSubframeRendering;
  lottie.resize = animationManager.resize;
  // lottie.start = start;
  lottie.goToAndStop = animationManager.goToAndStop;
  lottie.destroy = animationManager.destroy;
  lottie.setQuality = setQuality;
  lottie.inBrowser = inBrowser;
  lottie.installPlugin = installPlugin;
  lottie.freeze = animationManager.freeze;
  lottie.unfreeze = animationManager.unfreeze;
  lottie.setVolume = animationManager.setVolume;
  lottie.mute = animationManager.mute;
  lottie.unmute = animationManager.unmute;
  lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
  lottie.useWebWorker = setWebWorker;
  lottie.setIDPrefix = setPrefix;
  lottie.__getFactory = getFactory;
  lottie.version = '5.13.0';
  function checkReady() {
    if (document.readyState === 'complete') {
      clearInterval(readyStateCheckInterval);
      searchAnimations();
    }
  }
  function getQueryVariable(variable) {
    var vars = queryString.split('&');
    for (var i = 0; i < vars.length; i += 1) {
      var pair = vars[i].split('=');
      if (decodeURIComponent(pair[0]) == variable) {
        // eslint-disable-line eqeqeq
        return decodeURIComponent(pair[1]);
      }
    }
    return null;
  }
  var queryString = '';
  if (standalone) {
    var scripts = document.getElementsByTagName('script');
    var index = scripts.length - 1;
    var myScript = scripts[index] || {
      src: ''
    };
    queryString = myScript.src ? myScript.src.replace(/^[^\?]+\??/, '') : ''; // eslint-disable-line no-useless-escape
    renderer = getQueryVariable('renderer');
  }
  var readyStateCheckInterval = setInterval(checkReady, 100);

  // this adds bodymovin to the window object for backwards compatibility
  try {
    if (!(( false ? undefined : _typeof$3(exports)) === 'object' && typeof module !== 'undefined') && !( true && __webpack_require__(891)) // eslint-disable-line no-undef
    ) {
      window.bodymovin = lottie;
    }
  } catch (err) {
    //
  }

  var ShapeModifiers = function () {
    var ob = {};
    var modifiers = {};
    ob.registerModifier = registerModifier;
    ob.getModifier = getModifier;
    function registerModifier(nm, factory) {
      if (!modifiers[nm]) {
        modifiers[nm] = factory;
      }
    }
    function getModifier(nm, elem, data) {
      return new modifiers[nm](elem, data);
    }
    return ob;
  }();
  function ShapeModifier() {}
  ShapeModifier.prototype.initModifierProperties = function () {};
  ShapeModifier.prototype.addShapeToModifier = function () {};
  ShapeModifier.prototype.addShape = function (data) {
    if (!this.closed) {
      // Adding shape to dynamic properties. It covers the case where a shape has no effects applied, to reset it's _mdf state on every tick.
      data.sh.container.addDynamicProperty(data.sh);
      var shapeData = {
        shape: data.sh,
        data: data,
        localShapeCollection: shapeCollectionPool.newShapeCollection()
      };
      this.shapes.push(shapeData);
      this.addShapeToModifier(shapeData);
      if (this._isAnimated) {
        data.setAsAnimated();
      }
    }
  };
  ShapeModifier.prototype.init = function (elem, data) {
    this.shapes = [];
    this.elem = elem;
    this.initDynamicPropertyContainer(elem);
    this.initModifierProperties(elem, data);
    this.frameId = initialDefaultFrame;
    this.closed = false;
    this.k = false;
    if (this.dynamicProperties.length) {
      this.k = true;
    } else {
      this.getValue(true);
    }
  };
  ShapeModifier.prototype.processKeys = function () {
    if (this.elem.globalData.frameId === this.frameId) {
      return;
    }
    this.frameId = this.elem.globalData.frameId;
    this.iterateDynamicProperties();
  };
  extendPrototype([DynamicPropertyContainer], ShapeModifier);

  function TrimModifier() {}
  extendPrototype([ShapeModifier], TrimModifier);
  TrimModifier.prototype.initModifierProperties = function (elem, data) {
    this.s = PropertyFactory.getProp(elem, data.s, 0, 0.01, this);
    this.e = PropertyFactory.getProp(elem, data.e, 0, 0.01, this);
    this.o = PropertyFactory.getProp(elem, data.o, 0, 0, this);
    this.sValue = 0;
    this.eValue = 0;
    this.getValue = this.processKeys;
    this.m = data.m;
    this._isAnimated = !!this.s.effectsSequence.length || !!this.e.effectsSequence.length || !!this.o.effectsSequence.length;
  };
  TrimModifier.prototype.addShapeToModifier = function (shapeData) {
    shapeData.pathsData = [];
  };
  TrimModifier.prototype.calculateShapeEdges = function (s, e, shapeLength, addedLength, totalModifierLength) {
    var segments = [];
    if (e <= 1) {
      segments.push({
        s: s,
        e: e
      });
    } else if (s >= 1) {
      segments.push({
        s: s - 1,
        e: e - 1
      });
    } else {
      segments.push({
        s: s,
        e: 1
      });
      segments.push({
        s: 0,
        e: e - 1
      });
    }
    var shapeSegments = [];
    var i;
    var len = segments.length;
    var segmentOb;
    for (i = 0; i < len; i += 1) {
      segmentOb = segments[i];
      if (!(segmentOb.e * totalModifierLength < addedLength || segmentOb.s * totalModifierLength > addedLength + shapeLength)) {
        var shapeS;
        var shapeE;
        if (segmentOb.s * totalModifierLength <= addedLength) {
          shapeS = 0;
        } else {
          shapeS = (segmentOb.s * totalModifierLength - addedLength) / shapeLength;
        }
        if (segmentOb.e * totalModifierLength >= addedLength + shapeLength) {
          shapeE = 1;
        } else {
          shapeE = (segmentOb.e * totalModifierLength - addedLength) / shapeLength;
        }
        shapeSegments.push([shapeS, shapeE]);
      }
    }
    if (!shapeSegments.length) {
      shapeSegments.push([0, 0]);
    }
    return shapeSegments;
  };
  TrimModifier.prototype.releasePathsData = function (pathsData) {
    var i;
    var len = pathsData.length;
    for (i = 0; i < len; i += 1) {
      segmentsLengthPool.release(pathsData[i]);
    }
    pathsData.length = 0;
    return pathsData;
  };
  TrimModifier.prototype.processShapes = function (_isFirstFrame) {
    var s;
    var e;
    if (this._mdf || _isFirstFrame) {
      var o = this.o.v % 360 / 360;
      if (o < 0) {
        o += 1;
      }
      if (this.s.v > 1) {
        s = 1 + o;
      } else if (this.s.v < 0) {
        s = 0 + o;
      } else {
        s = this.s.v + o;
      }
      if (this.e.v > 1) {
        e = 1 + o;
      } else if (this.e.v < 0) {
        e = 0 + o;
      } else {
        e = this.e.v + o;
      }
      if (s > e) {
        var _s = s;
        s = e;
        e = _s;
      }
      s = Math.round(s * 10000) * 0.0001;
      e = Math.round(e * 10000) * 0.0001;
      this.sValue = s;
      this.eValue = e;
    } else {
      s = this.sValue;
      e = this.eValue;
    }
    var shapePaths;
    var i;
    var len = this.shapes.length;
    var j;
    var jLen;
    var pathsData;
    var pathData;
    var totalShapeLength;
    var totalModifierLength = 0;
    if (e === s) {
      for (i = 0; i < len; i += 1) {
        this.shapes[i].localShapeCollection.releaseShapes();
        this.shapes[i].shape._mdf = true;
        this.shapes[i].shape.paths = this.shapes[i].localShapeCollection;
        if (this._mdf) {
          this.shapes[i].pathsData.length = 0;
        }
      }
    } else if (!(e === 1 && s === 0 || e === 0 && s === 1)) {
      var segments = [];
      var shapeData;
      var localShapeCollection;
      for (i = 0; i < len; i += 1) {
        shapeData = this.shapes[i];
        // if shape hasn't changed and trim properties haven't changed, cached previous path can be used
        if (!shapeData.shape._mdf && !this._mdf && !_isFirstFrame && this.m !== 2) {
          shapeData.shape.paths = shapeData.localShapeCollection;
        } else {
          shapePaths = shapeData.shape.paths;
          jLen = shapePaths._length;
          totalShapeLength = 0;
          if (!shapeData.shape._mdf && shapeData.pathsData.length) {
            totalShapeLength = shapeData.totalShapeLength;
          } else {
            pathsData = this.releasePathsData(shapeData.pathsData);
            for (j = 0; j < jLen; j += 1) {
              pathData = bez.getSegmentsLength(shapePaths.shapes[j]);
              pathsData.push(pathData);
              totalShapeLength += pathData.totalLength;
            }
            shapeData.totalShapeLength = totalShapeLength;
            shapeData.pathsData = pathsData;
          }
          totalModifierLength += totalShapeLength;
          shapeData.shape._mdf = true;
        }
      }
      var shapeS = s;
      var shapeE = e;
      var addedLength = 0;
      var edges;
      for (i = len - 1; i >= 0; i -= 1) {
        shapeData = this.shapes[i];
        if (shapeData.shape._mdf) {
          localShapeCollection = shapeData.localShapeCollection;
          localShapeCollection.releaseShapes();
          // if m === 2 means paths are trimmed individually so edges need to be found for this specific shape relative to whoel group
          if (this.m === 2 && len > 1) {
            edges = this.calculateShapeEdges(s, e, shapeData.totalShapeLength, addedLength, totalModifierLength);
            addedLength += shapeData.totalShapeLength;
          } else {
            edges = [[shapeS, shapeE]];
          }
          jLen = edges.length;
          for (j = 0; j < jLen; j += 1) {
            shapeS = edges[j][0];
            shapeE = edges[j][1];
            segments.length = 0;
            if (shapeE <= 1) {
              segments.push({
                s: shapeData.totalShapeLength * shapeS,
                e: shapeData.totalShapeLength * shapeE
              });
            } else if (shapeS >= 1) {
              segments.push({
                s: shapeData.totalShapeLength * (shapeS - 1),
                e: shapeData.totalShapeLength * (shapeE - 1)
              });
            } else {
              segments.push({
                s: shapeData.totalShapeLength * shapeS,
                e: shapeData.totalShapeLength
              });
              segments.push({
                s: 0,
                e: shapeData.totalShapeLength * (shapeE - 1)
              });
            }
            var newShapesData = this.addShapes(shapeData, segments[0]);
            if (segments[0].s !== segments[0].e) {
              if (segments.length > 1) {
                var lastShapeInCollection = shapeData.shape.paths.shapes[shapeData.shape.paths._length - 1];
                if (lastShapeInCollection.c) {
                  var lastShape = newShapesData.pop();
                  this.addPaths(newShapesData, localShapeCollection);
                  newShapesData = this.addShapes(shapeData, segments[1], lastShape);
                } else {
                  this.addPaths(newShapesData, localShapeCollection);
                  newShapesData = this.addShapes(shapeData, segments[1]);
                }
              }
              this.addPaths(newShapesData, localShapeCollection);
            }
          }
          shapeData.shape.paths = localShapeCollection;
        }
      }
    } else if (this._mdf) {
      for (i = 0; i < len; i += 1) {
        // Releasign Trim Cached paths data when no trim applied in case shapes are modified inbetween.
        // Don't remove this even if it's losing cached info.
        this.shapes[i].pathsData.length = 0;
        this.shapes[i].shape._mdf = true;
      }
    }
  };
  TrimModifier.prototype.addPaths = function (newPaths, localShapeCollection) {
    var i;
    var len = newPaths.length;
    for (i = 0; i < len; i += 1) {
      localShapeCollection.addShape(newPaths[i]);
    }
  };
  TrimModifier.prototype.addSegment = function (pt1, pt2, pt3, pt4, shapePath, pos, newShape) {
    shapePath.setXYAt(pt2[0], pt2[1], 'o', pos);
    shapePath.setXYAt(pt3[0], pt3[1], 'i', pos + 1);
    if (newShape) {
      shapePath.setXYAt(pt1[0], pt1[1], 'v', pos);
    }
    shapePath.setXYAt(pt4[0], pt4[1], 'v', pos + 1);
  };
  TrimModifier.prototype.addSegmentFromArray = function (points, shapePath, pos, newShape) {
    shapePath.setXYAt(points[1], points[5], 'o', pos);
    shapePath.setXYAt(points[2], points[6], 'i', pos + 1);
    if (newShape) {
      shapePath.setXYAt(points[0], points[4], 'v', pos);
    }
    shapePath.setXYAt(points[3], points[7], 'v', pos + 1);
  };
  TrimModifier.prototype.addShapes = function (shapeData, shapeSegment, shapePath) {
    var pathsData = shapeData.pathsData;
    var shapePaths = shapeData.shape.paths.shapes;
    var i;
    var len = shapeData.shape.paths._length;
    var j;
    var jLen;
    var addedLength = 0;
    var currentLengthData;
    var segmentCount;
    var lengths;
    var segment;
    var shapes = [];
    var initPos;
    var newShape = true;
    if (!shapePath) {
      shapePath = shapePool.newElement();
      segmentCount = 0;
      initPos = 0;
    } else {
      segmentCount = shapePath._length;
      initPos = shapePath._length;
    }
    shapes.push(shapePath);
    for (i = 0; i < len; i += 1) {
      lengths = pathsData[i].lengths;
      shapePath.c = shapePaths[i].c;
      jLen = shapePaths[i].c ? lengths.length : lengths.length + 1;
      for (j = 1; j < jLen; j += 1) {
        currentLengthData = lengths[j - 1];
        if (addedLength + currentLengthData.addedLength < shapeSegment.s) {
          addedLength += currentLengthData.addedLength;
          shapePath.c = false;
        } else if (addedLength > shapeSegment.e) {
          shapePath.c = false;
          break;
        } else {
          if (shapeSegment.s <= addedLength && shapeSegment.e >= addedLength + currentLengthData.addedLength) {
            this.addSegment(shapePaths[i].v[j - 1], shapePaths[i].o[j - 1], shapePaths[i].i[j], shapePaths[i].v[j], shapePath, segmentCount, newShape);
            newShape = false;
          } else {
            segment = bez.getNewSegment(shapePaths[i].v[j - 1], shapePaths[i].v[j], shapePaths[i].o[j - 1], shapePaths[i].i[j], (shapeSegment.s - addedLength) / currentLengthData.addedLength, (shapeSegment.e - addedLength) / currentLengthData.addedLength, lengths[j - 1]);
            this.addSegmentFromArray(segment, shapePath, segmentCount, newShape);
            // this.addSegment(segment.pt1, segment.pt3, segment.pt4, segment.pt2, shapePath, segmentCount, newShape);
            newShape = false;
            shapePath.c = false;
          }
          addedLength += currentLengthData.addedLength;
          segmentCount += 1;
        }
      }
      if (shapePaths[i].c && lengths.length) {
        currentLengthData = lengths[j - 1];
        if (addedLength <= shapeSegment.e) {
          var segmentLength = lengths[j - 1].addedLength;
          if (shapeSegment.s <= addedLength && shapeSegment.e >= addedLength + segmentLength) {
            this.addSegment(shapePaths[i].v[j - 1], shapePaths[i].o[j - 1], shapePaths[i].i[0], shapePaths[i].v[0], shapePath, segmentCount, newShape);
            newShape = false;
          } else {
            segment = bez.getNewSegment(shapePaths[i].v[j - 1], shapePaths[i].v[0], shapePaths[i].o[j - 1], shapePaths[i].i[0], (shapeSegment.s - addedLength) / segmentLength, (shapeSegment.e - addedLength) / segmentLength, lengths[j - 1]);
            this.addSegmentFromArray(segment, shapePath, segmentCount, newShape);
            // this.addSegment(segment.pt1, segment.pt3, segment.pt4, segment.pt2, shapePath, segmentCount, newShape);
            newShape = false;
            shapePath.c = false;
          }
        } else {
          shapePath.c = false;
        }
        addedLength += currentLengthData.addedLength;
        segmentCount += 1;
      }
      if (shapePath._length) {
        shapePath.setXYAt(shapePath.v[initPos][0], shapePath.v[initPos][1], 'i', initPos);
        shapePath.setXYAt(shapePath.v[shapePath._length - 1][0], shapePath.v[shapePath._length - 1][1], 'o', shapePath._length - 1);
      }
      if (addedLength > shapeSegment.e) {
        break;
      }
      if (i < len - 1) {
        shapePath = shapePool.newElement();
        newShape = true;
        shapes.push(shapePath);
        segmentCount = 0;
      }
    }
    return shapes;
  };

  function PuckerAndBloatModifier() {}
  extendPrototype([ShapeModifier], PuckerAndBloatModifier);
  PuckerAndBloatModifier.prototype.initModifierProperties = function (elem, data) {
    this.getValue = this.processKeys;
    this.amount = PropertyFactory.getProp(elem, data.a, 0, null, this);
    this._isAnimated = !!this.amount.effectsSequence.length;
  };
  PuckerAndBloatModifier.prototype.processPath = function (path, amount) {
    var percent = amount / 100;
    var centerPoint = [0, 0];
    var pathLength = path._length;
    var i = 0;
    for (i = 0; i < pathLength; i += 1) {
      centerPoint[0] += path.v[i][0];
      centerPoint[1] += path.v[i][1];
    }
    centerPoint[0] /= pathLength;
    centerPoint[1] /= pathLength;
    var clonedPath = shapePool.newElement();
    clonedPath.c = path.c;
    var vX;
    var vY;
    var oX;
    var oY;
    var iX;
    var iY;
    for (i = 0; i < pathLength; i += 1) {
      vX = path.v[i][0] + (centerPoint[0] - path.v[i][0]) * percent;
      vY = path.v[i][1] + (centerPoint[1] - path.v[i][1]) * percent;
      oX = path.o[i][0] + (centerPoint[0] - path.o[i][0]) * -percent;
      oY = path.o[i][1] + (centerPoint[1] - path.o[i][1]) * -percent;
      iX = path.i[i][0] + (centerPoint[0] - path.i[i][0]) * -percent;
      iY = path.i[i][1] + (centerPoint[1] - path.i[i][1]) * -percent;
      clonedPath.setTripleAt(vX, vY, oX, oY, iX, iY, i);
    }
    return clonedPath;
  };
  PuckerAndBloatModifier.prototype.processShapes = function (_isFirstFrame) {
    var shapePaths;
    var i;
    var len = this.shapes.length;
    var j;
    var jLen;
    var amount = this.amount.v;
    if (amount !== 0) {
      var shapeData;
      var localShapeCollection;
      for (i = 0; i < len; i += 1) {
        shapeData = this.shapes[i];
        localShapeCollection = shapeData.localShapeCollection;
        if (!(!shapeData.shape._mdf && !this._mdf && !_isFirstFrame)) {
          localShapeCollection.releaseShapes();
          shapeData.shape._mdf = true;
          shapePaths = shapeData.shape.paths.shapes;
          jLen = shapeData.shape.paths._length;
          for (j = 0; j < jLen; j += 1) {
            localShapeCollection.addShape(this.processPath(shapePaths[j], amount));
          }
        }
        shapeData.shape.paths = shapeData.localShapeCollection;
      }
    }
    if (!this.dynamicProperties.length) {
      this._mdf = false;
    }
  };

  var TransformPropertyFactory = function () {
    var defaultVector = [0, 0];
    function applyToMatrix(mat) {
      var _mdf = this._mdf;
      this.iterateDynamicProperties();
      this._mdf = this._mdf || _mdf;
      if (this.a) {
        mat.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]);
      }
      if (this.s) {
        mat.scale(this.s.v[0], this.s.v[1], this.s.v[2]);
      }
      if (this.sk) {
        mat.skewFromAxis(-this.sk.v, this.sa.v);
      }
      if (this.r) {
        mat.rotate(-this.r.v);
      } else {
        mat.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);
      }
      if (this.data.p.s) {
        if (this.data.p.z) {
          mat.translate(this.px.v, this.py.v, -this.pz.v);
        } else {
          mat.translate(this.px.v, this.py.v, 0);
        }
      } else {
        mat.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
      }
    }
    function processKeys(forceRender) {
      if (this.elem.globalData.frameId === this.frameId) {
        return;
      }
      if (this._isDirty) {
        this.precalculateMatrix();
        this._isDirty = false;
      }
      this.iterateDynamicProperties();
      if (this._mdf || forceRender) {
        var frameRate;
        this.v.cloneFromProps(this.pre.props);
        if (this.appliedTransformations < 1) {
          this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]);
        }
        if (this.appliedTransformations < 2) {
          this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]);
        }
        if (this.sk && this.appliedTransformations < 3) {
          this.v.skewFromAxis(-this.sk.v, this.sa.v);
        }
        if (this.r && this.appliedTransformations < 4) {
          this.v.rotate(-this.r.v);
        } else if (!this.r && this.appliedTransformations < 4) {
          this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);
        }
        if (this.autoOriented) {
          var v1;
          var v2;
          frameRate = this.elem.globalData.frameRate;
          if (this.p && this.p.keyframes && this.p.getValueAtTime) {
            if (this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t) {
              v1 = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / frameRate, 0);
              v2 = this.p.getValueAtTime(this.p.keyframes[0].t / frameRate, 0);
            } else if (this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t) {
              v1 = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / frameRate, 0);
              v2 = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / frameRate, 0);
            } else {
              v1 = this.p.pv;
              v2 = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / frameRate, this.p.offsetTime);
            }
          } else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
            v1 = [];
            v2 = [];
            var px = this.px;
            var py = this.py;
            if (px._caching.lastFrame + px.offsetTime <= px.keyframes[0].t) {
              v1[0] = px.getValueAtTime((px.keyframes[0].t + 0.01) / frameRate, 0);
              v1[1] = py.getValueAtTime((py.keyframes[0].t + 0.01) / frameRate, 0);
              v2[0] = px.getValueAtTime(px.keyframes[0].t / frameRate, 0);
              v2[1] = py.getValueAtTime(py.keyframes[0].t / frameRate, 0);
            } else if (px._caching.lastFrame + px.offsetTime >= px.keyframes[px.keyframes.length - 1].t) {
              v1[0] = px.getValueAtTime(px.keyframes[px.keyframes.length - 1].t / frameRate, 0);
              v1[1] = py.getValueAtTime(py.keyframes[py.keyframes.length - 1].t / frameRate, 0);
              v2[0] = px.getValueAtTime((px.keyframes[px.keyframes.length - 1].t - 0.01) / frameRate, 0);
              v2[1] = py.getValueAtTime((py.keyframes[py.keyframes.length - 1].t - 0.01) / frameRate, 0);
            } else {
              v1 = [px.pv, py.pv];
              v2[0] = px.getValueAtTime((px._caching.lastFrame + px.offsetTime - 0.01) / frameRate, px.offsetTime);
              v2[1] = py.getValueAtTime((py._caching.lastFrame + py.offsetTime - 0.01) / frameRate, py.offsetTime);
            }
          } else {
            v2 = defaultVector;
            v1 = v2;
          }
          this.v.rotate(-Math.atan2(v1[1] - v2[1], v1[0] - v2[0]));
        }
        if (this.data.p && this.data.p.s) {
          if (this.data.p.z) {
            this.v.translate(this.px.v, this.py.v, -this.pz.v);
          } else {
            this.v.translate(this.px.v, this.py.v, 0);
          }
        } else {
          this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
        }
      }
      this.frameId = this.elem.globalData.frameId;
    }
    function precalculateMatrix() {
      this.appliedTransformations = 0;
      this.pre.reset();
      if (!this.a.effectsSequence.length) {
        this.pre.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]);
        this.appliedTransformations = 1;
      } else {
        return;
      }
      if (!this.s.effectsSequence.length) {
        this.pre.scale(this.s.v[0], this.s.v[1], this.s.v[2]);
        this.appliedTransformations = 2;
      } else {
        return;
      }
      if (this.sk) {
        if (!this.sk.effectsSequence.length && !this.sa.effectsSequence.length) {
          this.pre.skewFromAxis(-this.sk.v, this.sa.v);
          this.appliedTransformations = 3;
        } else {
          return;
        }
      }
      if (this.r) {
        if (!this.r.effectsSequence.length) {
          this.pre.rotate(-this.r.v);
          this.appliedTransformations = 4;
        }
      } else if (!this.rz.effectsSequence.length && !this.ry.effectsSequence.length && !this.rx.effectsSequence.length && !this.or.effectsSequence.length) {
        this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);
        this.appliedTransformations = 4;
      }
    }
    function autoOrient() {
      //
      // var prevP = this.getValueAtTime();
    }
    function addDynamicProperty(prop) {
      this._addDynamicProperty(prop);
      this.elem.addDynamicProperty(prop);
      this._isDirty = true;
    }
    function TransformProperty(elem, data, container) {
      this.elem = elem;
      this.frameId = -1;
      this.propType = 'transform';
      this.data = data;
      this.v = new Matrix();
      // Precalculated matrix with non animated properties
      this.pre = new Matrix();
      this.appliedTransformations = 0;
      this.initDynamicPropertyContainer(container || elem);
      if (data.p && data.p.s) {
        this.px = PropertyFactory.getProp(elem, data.p.x, 0, 0, this);
        this.py = PropertyFactory.getProp(elem, data.p.y, 0, 0, this);
        if (data.p.z) {
          this.pz = PropertyFactory.getProp(elem, data.p.z, 0, 0, this);
        }
      } else {
        this.p = PropertyFactory.getProp(elem, data.p || {
          k: [0, 0, 0]
        }, 1, 0, this);
      }
      if (data.rx) {
        this.rx = PropertyFactory.getProp(elem, data.rx, 0, degToRads, this);
        this.ry = PropertyFactory.getProp(elem, data.ry, 0, degToRads, this);
        this.rz = PropertyFactory.getProp(elem, data.rz, 0, degToRads, this);
        if (data.or.k[0].ti) {
          var i;
          var len = data.or.k.length;
          for (i = 0; i < len; i += 1) {
            data.or.k[i].to = null;
            data.or.k[i].ti = null;
          }
        }
        this.or = PropertyFactory.getProp(elem, data.or, 1, degToRads, this);
        // sh Indicates it needs to be capped between -180 and 180
        this.or.sh = true;
      } else {
        this.r = PropertyFactory.getProp(elem, data.r || {
          k: 0
        }, 0, degToRads, this);
      }
      if (data.sk) {
        this.sk = PropertyFactory.getProp(elem, data.sk, 0, degToRads, this);
        this.sa = PropertyFactory.getProp(elem, data.sa, 0, degToRads, this);
      }
      this.a = PropertyFactory.getProp(elem, data.a || {
        k: [0, 0, 0]
      }, 1, 0, this);
      this.s = PropertyFactory.getProp(elem, data.s || {
        k: [100, 100, 100]
      }, 1, 0.01, this);
      // Opacity is not part of the transform properties, that's why it won't use this.dynamicProperties. That way transforms won't get updated if opacity changes.
      if (data.o) {
        this.o = PropertyFactory.getProp(elem, data.o, 0, 0.01, elem);
      } else {
        this.o = {
          _mdf: false,
          v: 1
        };
      }
      this._isDirty = true;
      if (!this.dynamicProperties.length) {
        this.getValue(true);
      }
    }
    TransformProperty.prototype = {
      applyToMatrix: applyToMatrix,
      getValue: processKeys,
      precalculateMatrix: precalculateMatrix,
      autoOrient: autoOrient
    };
    extendPrototype([DynamicPropertyContainer], TransformProperty);
    TransformProperty.prototype.addDynamicProperty = addDynamicProperty;
    TransformProperty.prototype._addDynamicProperty = DynamicPropertyContainer.prototype.addDynamicProperty;
    function getTransformProperty(elem, data, container) {
      return new TransformProperty(elem, data, container);
    }
    return {
      getTransformProperty: getTransformProperty
    };
  }();

  function RepeaterModifier() {}
  extendPrototype([ShapeModifier], RepeaterModifier);
  RepeaterModifier.prototype.initModifierProperties = function (elem, data) {
    this.getValue = this.processKeys;
    this.c = PropertyFactory.getProp(elem, data.c, 0, null, this);
    this.o = PropertyFactory.getProp(elem, data.o, 0, null, this);
    this.tr = TransformPropertyFactory.getTransformProperty(elem, data.tr, this);
    this.so = PropertyFactory.getProp(elem, data.tr.so, 0, 0.01, this);
    this.eo = PropertyFactory.getProp(elem, data.tr.eo, 0, 0.01, this);
    this.data = data;
    if (!this.dynamicProperties.length) {
      this.getValue(true);
    }
    this._isAnimated = !!this.dynamicProperties.length;
    this.pMatrix = new Matrix();
    this.rMatrix = new Matrix();
    this.sMatrix = new Matrix();
    this.tMatrix = new Matrix();
    this.matrix = new Matrix();
  };
  RepeaterModifier.prototype.applyTransforms = function (pMatrix, rMatrix, sMatrix, transform, perc, inv) {
    var dir = inv ? -1 : 1;
    var scaleX = transform.s.v[0] + (1 - transform.s.v[0]) * (1 - perc);
    var scaleY = transform.s.v[1] + (1 - transform.s.v[1]) * (1 - perc);
    pMatrix.translate(transform.p.v[0] * dir * perc, transform.p.v[1] * dir * perc, transform.p.v[2]);
    rMatrix.translate(-transform.a.v[0], -transform.a.v[1], transform.a.v[2]);
    rMatrix.rotate(-transform.r.v * dir * perc);
    rMatrix.translate(transform.a.v[0], transform.a.v[1], transform.a.v[2]);
    sMatrix.translate(-transform.a.v[0], -transform.a.v[1], transform.a.v[2]);
    sMatrix.scale(inv ? 1 / scaleX : scaleX, inv ? 1 / scaleY : scaleY);
    sMatrix.translate(transform.a.v[0], transform.a.v[1], transform.a.v[2]);
  };
  RepeaterModifier.prototype.init = function (elem, arr, pos, elemsData) {
    this.elem = elem;
    this.arr = arr;
    this.pos = pos;
    this.elemsData = elemsData;
    this._currentCopies = 0;
    this._elements = [];
    this._groups = [];
    this.frameId = -1;
    this.initDynamicPropertyContainer(elem);
    this.initModifierProperties(elem, arr[pos]);
    while (pos > 0) {
      pos -= 1;
      // this._elements.unshift(arr.splice(pos,1)[0]);
      this._elements.unshift(arr[pos]);
    }
    if (this.dynamicProperties.length) {
      this.k = true;
    } else {
      this.getValue(true);
    }
  };
  RepeaterModifier.prototype.resetElements = function (elements) {
    var i;
    var len = elements.length;
    for (i = 0; i < len; i += 1) {
      elements[i]._processed = false;
      if (elements[i].ty === 'gr') {
        this.resetElements(elements[i].it);
      }
    }
  };
  RepeaterModifier.prototype.cloneElements = function (elements) {
    var newElements = JSON.parse(JSON.stringify(elements));
    this.resetElements(newElements);
    return newElements;
  };
  RepeaterModifier.prototype.changeGroupRender = function (elements, renderFlag) {
    var i;
    var len = elements.length;
    for (i = 0; i < len; i += 1) {
      elements[i]._render = renderFlag;
      if (elements[i].ty === 'gr') {
        this.changeGroupRender(elements[i].it, renderFlag);
      }
    }
  };
  RepeaterModifier.prototype.processShapes = function (_isFirstFrame) {
    var items;
    var itemsTransform;
    var i;
    var dir;
    var cont;
    var hasReloaded = false;
    if (this._mdf || _isFirstFrame) {
      var copies = Math.ceil(this.c.v);
      if (this._groups.length < copies) {
        while (this._groups.length < copies) {
          var group = {
            it: this.cloneElements(this._elements),
            ty: 'gr'
          };
          group.it.push({
            a: {
              a: 0,
              ix: 1,
              k: [0, 0]
            },
            nm: 'Transform',
            o: {
              a: 0,
              ix: 7,
              k: 100
            },
            p: {
              a: 0,
              ix: 2,
              k: [0, 0]
            },
            r: {
              a: 1,
              ix: 6,
              k: [{
                s: 0,
                e: 0,
                t: 0
              }, {
                s: 0,
                e: 0,
                t: 1
              }]
            },
            s: {
              a: 0,
              ix: 3,
              k: [100, 100]
            },
            sa: {
              a: 0,
              ix: 5,
              k: 0
            },
            sk: {
              a: 0,
              ix: 4,
              k: 0
            },
            ty: 'tr'
          });
          this.arr.splice(0, 0, group);
          this._groups.splice(0, 0, group);
          this._currentCopies += 1;
        }
        this.elem.reloadShapes();
        hasReloaded = true;
      }
      cont = 0;
      var renderFlag;
      for (i = 0; i <= this._groups.length - 1; i += 1) {
        renderFlag = cont < copies;
        this._groups[i]._render = renderFlag;
        this.changeGroupRender(this._groups[i].it, renderFlag);
        if (!renderFlag) {
          var elems = this.elemsData[i].it;
          var transformData = elems[elems.length - 1];
          if (transformData.transform.op.v !== 0) {
            transformData.transform.op._mdf = true;
            transformData.transform.op.v = 0;
          } else {
            transformData.transform.op._mdf = false;
          }
        }
        cont += 1;
      }
      this._currentCopies = copies;
      /// /

      var offset = this.o.v;
      var offsetModulo = offset % 1;
      var roundOffset = offset > 0 ? Math.floor(offset) : Math.ceil(offset);
      var pProps = this.pMatrix.props;
      var rProps = this.rMatrix.props;
      var sProps = this.sMatrix.props;
      this.pMatrix.reset();
      this.rMatrix.reset();
      this.sMatrix.reset();
      this.tMatrix.reset();
      this.matrix.reset();
      var iteration = 0;
      if (offset > 0) {
        while (iteration < roundOffset) {
          this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, false);
          iteration += 1;
        }
        if (offsetModulo) {
          this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, offsetModulo, false);
          iteration += offsetModulo;
        }
      } else if (offset < 0) {
        while (iteration > roundOffset) {
          this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, true);
          iteration -= 1;
        }
        if (offsetModulo) {
          this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -offsetModulo, true);
          iteration -= offsetModulo;
        }
      }
      i = this.data.m === 1 ? 0 : this._currentCopies - 1;
      dir = this.data.m === 1 ? 1 : -1;
      cont = this._currentCopies;
      var j;
      var jLen;
      while (cont) {
        items = this.elemsData[i].it;
        itemsTransform = items[items.length - 1].transform.mProps.v.props;
        jLen = itemsTransform.length;
        items[items.length - 1].transform.mProps._mdf = true;
        items[items.length - 1].transform.op._mdf = true;
        items[items.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (i / (this._currentCopies - 1));
        if (iteration !== 0) {
          if (i !== 0 && dir === 1 || i !== this._currentCopies - 1 && dir === -1) {
            this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, false);
          }
          this.matrix.transform(rProps[0], rProps[1], rProps[2], rProps[3], rProps[4], rProps[5], rProps[6], rProps[7], rProps[8], rProps[9], rProps[10], rProps[11], rProps[12], rProps[13], rProps[14], rProps[15]);
          this.matrix.transform(sProps[0], sProps[1], sProps[2], sProps[3], sProps[4], sProps[5], sProps[6], sProps[7], sProps[8], sProps[9], sProps[10], sProps[11], sProps[12], sProps[13], sProps[14], sProps[15]);
          this.matrix.transform(pProps[0], pProps[1], pProps[2], pProps[3], pProps[4], pProps[5], pProps[6], pProps[7], pProps[8], pProps[9], pProps[10], pProps[11], pProps[12], pProps[13], pProps[14], pProps[15]);
          for (j = 0; j < jLen; j += 1) {
            itemsTransform[j] = this.matrix.props[j];
          }
          this.matrix.reset();
        } else {
          this.matrix.reset();
          for (j = 0; j < jLen; j += 1) {
            itemsTransform[j] = this.matrix.props[j];
          }
        }
        iteration += 1;
        cont -= 1;
        i += dir;
      }
    } else {
      cont = this._currentCopies;
      i = 0;
      dir = 1;
      while (cont) {
        items = this.elemsData[i].it;
        itemsTransform = items[items.length - 1].transform.mProps.v.props;
        items[items.length - 1].transform.mProps._mdf = false;
        items[items.length - 1].transform.op._mdf = false;
        cont -= 1;
        i += dir;
      }
    }
    return hasReloaded;
  };
  RepeaterModifier.prototype.addShape = function () {};

  function RoundCornersModifier() {}
  extendPrototype([ShapeModifier], RoundCornersModifier);
  RoundCornersModifier.prototype.initModifierProperties = function (elem, data) {
    this.getValue = this.processKeys;
    this.rd = PropertyFactory.getProp(elem, data.r, 0, null, this);
    this._isAnimated = !!this.rd.effectsSequence.length;
  };
  RoundCornersModifier.prototype.processPath = function (path, round) {
    var clonedPath = shapePool.newElement();
    clonedPath.c = path.c;
    var i;
    var len = path._length;
    var currentV;
    var currentI;
    var currentO;
    var closerV;
    var distance;
    var newPosPerc;
    var index = 0;
    var vX;
    var vY;
    var oX;
    var oY;
    var iX;
    var iY;
    for (i = 0; i < len; i += 1) {
      currentV = path.v[i];
      currentO = path.o[i];
      currentI = path.i[i];
      if (currentV[0] === currentO[0] && currentV[1] === currentO[1] && currentV[0] === currentI[0] && currentV[1] === currentI[1]) {
        if ((i === 0 || i === len - 1) && !path.c) {
          clonedPath.setTripleAt(currentV[0], currentV[1], currentO[0], currentO[1], currentI[0], currentI[1], index);
          /* clonedPath.v[index] = currentV;
                  clonedPath.o[index] = currentO;
                  clonedPath.i[index] = currentI; */
          index += 1;
        } else {
          if (i === 0) {
            closerV = path.v[len - 1];
          } else {
            closerV = path.v[i - 1];
          }
          distance = Math.sqrt(Math.pow(currentV[0] - closerV[0], 2) + Math.pow(currentV[1] - closerV[1], 2));
          newPosPerc = distance ? Math.min(distance / 2, round) / distance : 0;
          iX = currentV[0] + (closerV[0] - currentV[0]) * newPosPerc;
          vX = iX;
          iY = currentV[1] - (currentV[1] - closerV[1]) * newPosPerc;
          vY = iY;
          oX = vX - (vX - currentV[0]) * roundCorner;
          oY = vY - (vY - currentV[1]) * roundCorner;
          clonedPath.setTripleAt(vX, vY, oX, oY, iX, iY, index);
          index += 1;
          if (i === len - 1) {
            closerV = path.v[0];
          } else {
            closerV = path.v[i + 1];
          }
          distance = Math.sqrt(Math.pow(currentV[0] - closerV[0], 2) + Math.pow(currentV[1] - closerV[1], 2));
          newPosPerc = distance ? Math.min(distance / 2, round) / distance : 0;
          oX = currentV[0] + (closerV[0] - currentV[0]) * newPosPerc;
          vX = oX;
          oY = currentV[1] + (closerV[1] - currentV[1]) * newPosPerc;
          vY = oY;
          iX = vX - (vX - currentV[0]) * roundCorner;
          iY = vY - (vY - currentV[1]) * roundCorner;
          clonedPath.setTripleAt(vX, vY, oX, oY, iX, iY, index);
          index += 1;
        }
      } else {
        clonedPath.setTripleAt(path.v[i][0], path.v[i][1], path.o[i][0], path.o[i][1], path.i[i][0], path.i[i][1], index);
        index += 1;
      }
    }
    return clonedPath;
  };
  RoundCornersModifier.prototype.processShapes = function (_isFirstFrame) {
    var shapePaths;
    var i;
    var len = this.shapes.length;
    var j;
    var jLen;
    var rd = this.rd.v;
    if (rd !== 0) {
      var shapeData;
      var localShapeCollection;
      for (i = 0; i < len; i += 1) {
        shapeData = this.shapes[i];
        localShapeCollection = shapeData.localShapeCollection;
        if (!(!shapeData.shape._mdf && !this._mdf && !_isFirstFrame)) {
          localShapeCollection.releaseShapes();
          shapeData.shape._mdf = true;
          shapePaths = shapeData.shape.paths.shapes;
          jLen = shapeData.shape.paths._length;
          for (j = 0; j < jLen; j += 1) {
            localShapeCollection.addShape(this.processPath(shapePaths[j], rd));
          }
        }
        shapeData.shape.paths = shapeData.localShapeCollection;
      }
    }
    if (!this.dynamicProperties.length) {
      this._mdf = false;
    }
  };

  function floatEqual(a, b) {
    return Math.abs(a - b) * 100000 <= Math.min(Math.abs(a), Math.abs(b));
  }
  function floatZero(f) {
    return Math.abs(f) <= 0.00001;
  }
  function lerp(p0, p1, amount) {
    return p0 * (1 - amount) + p1 * amount;
  }
  function lerpPoint(p0, p1, amount) {
    return [lerp(p0[0], p1[0], amount), lerp(p0[1], p1[1], amount)];
  }
  function quadRoots(a, b, c) {
    // no root
    if (a === 0) return [];
    var s = b * b - 4 * a * c;
    // Complex roots
    if (s < 0) return [];
    var singleRoot = -b / (2 * a);
    // 1 root
    if (s === 0) return [singleRoot];
    var delta = Math.sqrt(s) / (2 * a);
    // 2 roots
    return [singleRoot - delta, singleRoot + delta];
  }
  function polynomialCoefficients(p0, p1, p2, p3) {
    return [-p0 + 3 * p1 - 3 * p2 + p3, 3 * p0 - 6 * p1 + 3 * p2, -3 * p0 + 3 * p1, p0];
  }
  function singlePoint(p) {
    return new PolynomialBezier(p, p, p, p, false);
  }
  function PolynomialBezier(p0, p1, p2, p3, linearize) {
    if (linearize && pointEqual(p0, p1)) {
      p1 = lerpPoint(p0, p3, 1 / 3);
    }
    if (linearize && pointEqual(p2, p3)) {
      p2 = lerpPoint(p0, p3, 2 / 3);
    }
    var coeffx = polynomialCoefficients(p0[0], p1[0], p2[0], p3[0]);
    var coeffy = polynomialCoefficients(p0[1], p1[1], p2[1], p3[1]);
    this.a = [coeffx[0], coeffy[0]];
    this.b = [coeffx[1], coeffy[1]];
    this.c = [coeffx[2], coeffy[2]];
    this.d = [coeffx[3], coeffy[3]];
    this.points = [p0, p1, p2, p3];
  }
  PolynomialBezier.prototype.point = function (t) {
    return [((this.a[0] * t + this.b[0]) * t + this.c[0]) * t + this.d[0], ((this.a[1] * t + this.b[1]) * t + this.c[1]) * t + this.d[1]];
  };
  PolynomialBezier.prototype.derivative = function (t) {
    return [(3 * t * this.a[0] + 2 * this.b[0]) * t + this.c[0], (3 * t * this.a[1] + 2 * this.b[1]) * t + this.c[1]];
  };
  PolynomialBezier.prototype.tangentAngle = function (t) {
    var p = this.derivative(t);
    return Math.atan2(p[1], p[0]);
  };
  PolynomialBezier.prototype.normalAngle = function (t) {
    var p = this.derivative(t);
    return Math.atan2(p[0], p[1]);
  };
  PolynomialBezier.prototype.inflectionPoints = function () {
    var denom = this.a[1] * this.b[0] - this.a[0] * this.b[1];
    if (floatZero(denom)) return [];
    var tcusp = -0.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / denom;
    var square = tcusp * tcusp - 1 / 3 * (this.b[1] * this.c[0] - this.b[0] * this.c[1]) / denom;
    if (square < 0) return [];
    var root = Math.sqrt(square);
    if (floatZero(root)) {
      if (root > 0 && root < 1) return [tcusp];
      return [];
    }
    return [tcusp - root, tcusp + root].filter(function (r) {
      return r > 0 && r < 1;
    });
  };
  PolynomialBezier.prototype.split = function (t) {
    if (t <= 0) return [singlePoint(this.points[0]), this];
    if (t >= 1) return [this, singlePoint(this.points[this.points.length - 1])];
    var p10 = lerpPoint(this.points[0], this.points[1], t);
    var p11 = lerpPoint(this.points[1], this.points[2], t);
    var p12 = lerpPoint(this.points[2], this.points[3], t);
    var p20 = lerpPoint(p10, p11, t);
    var p21 = lerpPoint(p11, p12, t);
    var p3 = lerpPoint(p20, p21, t);
    return [new PolynomialBezier(this.points[0], p10, p20, p3, true), new PolynomialBezier(p3, p21, p12, this.points[3], true)];
  };
  function extrema(bez, comp) {
    var min = bez.points[0][comp];
    var max = bez.points[bez.points.length - 1][comp];
    if (min > max) {
      var e = max;
      max = min;
      min = e;
    }
    // Derivative roots to find min/max
    var f = quadRoots(3 * bez.a[comp], 2 * bez.b[comp], bez.c[comp]);
    for (var i = 0; i < f.length; i += 1) {
      if (f[i] > 0 && f[i] < 1) {
        var val = bez.point(f[i])[comp];
        if (val < min) min = val;else if (val > max) max = val;
      }
    }
    return {
      min: min,
      max: max
    };
  }
  PolynomialBezier.prototype.bounds = function () {
    return {
      x: extrema(this, 0),
      y: extrema(this, 1)
    };
  };
  PolynomialBezier.prototype.boundingBox = function () {
    var bounds = this.bounds();
    return {
      left: bounds.x.min,
      right: bounds.x.max,
      top: bounds.y.min,
      bottom: bounds.y.max,
      width: bounds.x.max - bounds.x.min,
      height: bounds.y.max - bounds.y.min,
      cx: (bounds.x.max + bounds.x.min) / 2,
      cy: (bounds.y.max + bounds.y.min) / 2
    };
  };
  function intersectData(bez, t1, t2) {
    var box = bez.boundingBox();
    return {
      cx: box.cx,
      cy: box.cy,
      width: box.width,
      height: box.height,
      bez: bez,
      t: (t1 + t2) / 2,
      t1: t1,
      t2: t2
    };
  }
  function splitData(data) {
    var split = data.bez.split(0.5);
    return [intersectData(split[0], data.t1, data.t), intersectData(split[1], data.t, data.t2)];
  }
  function boxIntersect(b1, b2) {
    return Math.abs(b1.cx - b2.cx) * 2 < b1.width + b2.width && Math.abs(b1.cy - b2.cy) * 2 < b1.height + b2.height;
  }
  function intersectsImpl(d1, d2, depth, tolerance, intersections, maxRecursion) {
    if (!boxIntersect(d1, d2)) return;
    if (depth >= maxRecursion || d1.width <= tolerance && d1.height <= tolerance && d2.width <= tolerance && d2.height <= tolerance) {
      intersections.push([d1.t, d2.t]);
      return;
    }
    var d1s = splitData(d1);
    var d2s = splitData(d2);
    intersectsImpl(d1s[0], d2s[0], depth + 1, tolerance, intersections, maxRecursion);
    intersectsImpl(d1s[0], d2s[1], depth + 1, tolerance, intersections, maxRecursion);
    intersectsImpl(d1s[1], d2s[0], depth + 1, tolerance, intersections, maxRecursion);
    intersectsImpl(d1s[1], d2s[1], depth + 1, tolerance, intersections, maxRecursion);
  }
  PolynomialBezier.prototype.intersections = function (other, tolerance, maxRecursion) {
    if (tolerance === undefined) tolerance = 2;
    if (maxRecursion === undefined) maxRecursion = 7;
    var intersections = [];
    intersectsImpl(intersectData(this, 0, 1), intersectData(other, 0, 1), 0, tolerance, intersections, maxRecursion);
    return intersections;
  };
  PolynomialBezier.shapeSegment = function (shapePath, index) {
    var nextIndex = (index + 1) % shapePath.length();
    return new PolynomialBezier(shapePath.v[index], shapePath.o[index], shapePath.i[nextIndex], shapePath.v[nextIndex], true);
  };
  PolynomialBezier.shapeSegmentInverted = function (shapePath, index) {
    var nextIndex = (index + 1) % shapePath.length();
    return new PolynomialBezier(shapePath.v[nextIndex], shapePath.i[nextIndex], shapePath.o[index], shapePath.v[index], true);
  };
  function crossProduct(a, b) {
    return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];
  }
  function lineIntersection(start1, end1, start2, end2) {
    var v1 = [start1[0], start1[1], 1];
    var v2 = [end1[0], end1[1], 1];
    var v3 = [start2[0], start2[1], 1];
    var v4 = [end2[0], end2[1], 1];
    var r = crossProduct(crossProduct(v1, v2), crossProduct(v3, v4));
    if (floatZero(r[2])) return null;
    return [r[0] / r[2], r[1] / r[2]];
  }
  function polarOffset(p, angle, length) {
    return [p[0] + Math.cos(angle) * length, p[1] - Math.sin(angle) * length];
  }
  function pointDistance(p1, p2) {
    return Math.hypot(p1[0] - p2[0], p1[1] - p2[1]);
  }
  function pointEqual(p1, p2) {
    return floatEqual(p1[0], p2[0]) && floatEqual(p1[1], p2[1]);
  }

  function ZigZagModifier() {}
  extendPrototype([ShapeModifier], ZigZagModifier);
  ZigZagModifier.prototype.initModifierProperties = function (elem, data) {
    this.getValue = this.processKeys;
    this.amplitude = PropertyFactory.getProp(elem, data.s, 0, null, this);
    this.frequency = PropertyFactory.getProp(elem, data.r, 0, null, this);
    this.pointsType = PropertyFactory.getProp(elem, data.pt, 0, null, this);
    this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
  };
  function setPoint(outputBezier, point, angle, direction, amplitude, outAmplitude, inAmplitude) {
    var angO = angle - Math.PI / 2;
    var angI = angle + Math.PI / 2;
    var px = point[0] + Math.cos(angle) * direction * amplitude;
    var py = point[1] - Math.sin(angle) * direction * amplitude;
    outputBezier.setTripleAt(px, py, px + Math.cos(angO) * outAmplitude, py - Math.sin(angO) * outAmplitude, px + Math.cos(angI) * inAmplitude, py - Math.sin(angI) * inAmplitude, outputBezier.length());
  }
  function getPerpendicularVector(pt1, pt2) {
    var vector = [pt2[0] - pt1[0], pt2[1] - pt1[1]];
    var rot = -Math.PI * 0.5;
    var rotatedVector = [Math.cos(rot) * vector[0] - Math.sin(rot) * vector[1], Math.sin(rot) * vector[0] + Math.cos(rot) * vector[1]];
    return rotatedVector;
  }
  function getProjectingAngle(path, cur) {
    var prevIndex = cur === 0 ? path.length() - 1 : cur - 1;
    var nextIndex = (cur + 1) % path.length();
    var prevPoint = path.v[prevIndex];
    var nextPoint = path.v[nextIndex];
    var pVector = getPerpendicularVector(prevPoint, nextPoint);
    return Math.atan2(0, 1) - Math.atan2(pVector[1], pVector[0]);
  }
  function zigZagCorner(outputBezier, path, cur, amplitude, frequency, pointType, direction) {
    var angle = getProjectingAngle(path, cur);
    var point = path.v[cur % path._length];
    var prevPoint = path.v[cur === 0 ? path._length - 1 : cur - 1];
    var nextPoint = path.v[(cur + 1) % path._length];
    var prevDist = pointType === 2 ? Math.sqrt(Math.pow(point[0] - prevPoint[0], 2) + Math.pow(point[1] - prevPoint[1], 2)) : 0;
    var nextDist = pointType === 2 ? Math.sqrt(Math.pow(point[0] - nextPoint[0], 2) + Math.pow(point[1] - nextPoint[1], 2)) : 0;
    setPoint(outputBezier, path.v[cur % path._length], angle, direction, amplitude, nextDist / ((frequency + 1) * 2), prevDist / ((frequency + 1) * 2), pointType);
  }
  function zigZagSegment(outputBezier, segment, amplitude, frequency, pointType, direction) {
    for (var i = 0; i < frequency; i += 1) {
      var t = (i + 1) / (frequency + 1);
      var dist = pointType === 2 ? Math.sqrt(Math.pow(segment.points[3][0] - segment.points[0][0], 2) + Math.pow(segment.points[3][1] - segment.points[0][1], 2)) : 0;
      var angle = segment.normalAngle(t);
      var point = segment.point(t);
      setPoint(outputBezier, point, angle, direction, amplitude, dist / ((frequency + 1) * 2), dist / ((frequency + 1) * 2), pointType);
      direction = -direction;
    }
    return direction;
  }
  ZigZagModifier.prototype.processPath = function (path, amplitude, frequency, pointType) {
    var count = path._length;
    var clonedPath = shapePool.newElement();
    clonedPath.c = path.c;
    if (!path.c) {
      count -= 1;
    }
    if (count === 0) return clonedPath;
    var direction = -1;
    var segment = PolynomialBezier.shapeSegment(path, 0);
    zigZagCorner(clonedPath, path, 0, amplitude, frequency, pointType, direction);
    for (var i = 0; i < count; i += 1) {
      direction = zigZagSegment(clonedPath, segment, amplitude, frequency, pointType, -direction);
      if (i === count - 1 && !path.c) {
        segment = null;
      } else {
        segment = PolynomialBezier.shapeSegment(path, (i + 1) % count);
      }
      zigZagCorner(clonedPath, path, i + 1, amplitude, frequency, pointType, direction);
    }
    return clonedPath;
  };
  ZigZagModifier.prototype.processShapes = function (_isFirstFrame) {
    var shapePaths;
    var i;
    var len = this.shapes.length;
    var j;
    var jLen;
    var amplitude = this.amplitude.v;
    var frequency = Math.max(0, Math.round(this.frequency.v));
    var pointType = this.pointsType.v;
    if (amplitude !== 0) {
      var shapeData;
      var localShapeCollection;
      for (i = 0; i < len; i += 1) {
        shapeData = this.shapes[i];
        localShapeCollection = shapeData.localShapeCollection;
        if (!(!shapeData.shape._mdf && !this._mdf && !_isFirstFrame)) {
          localShapeCollection.releaseShapes();
          shapeData.shape._mdf = true;
          shapePaths = shapeData.shape.paths.shapes;
          jLen = shapeData.shape.paths._length;
          for (j = 0; j < jLen; j += 1) {
            localShapeCollection.addShape(this.processPath(shapePaths[j], amplitude, frequency, pointType));
          }
        }
        shapeData.shape.paths = shapeData.localShapeCollection;
      }
    }
    if (!this.dynamicProperties.length) {
      this._mdf = false;
    }
  };

  function linearOffset(p1, p2, amount) {
    var angle = Math.atan2(p2[0] - p1[0], p2[1] - p1[1]);
    return [polarOffset(p1, angle, amount), polarOffset(p2, angle, amount)];
  }
  function offsetSegment(segment, amount) {
    var p0;
    var p1a;
    var p1b;
    var p2b;
    var p2a;
    var p3;
    var e;
    e = linearOffset(segment.points[0], segment.points[1], amount);
    p0 = e[0];
    p1a = e[1];
    e = linearOffset(segment.points[1], segment.points[2], amount);
    p1b = e[0];
    p2b = e[1];
    e = linearOffset(segment.points[2], segment.points[3], amount);
    p2a = e[0];
    p3 = e[1];
    var p1 = lineIntersection(p0, p1a, p1b, p2b);
    if (p1 === null) p1 = p1a;
    var p2 = lineIntersection(p2a, p3, p1b, p2b);
    if (p2 === null) p2 = p2a;
    return new PolynomialBezier(p0, p1, p2, p3);
  }
  function joinLines(outputBezier, seg1, seg2, lineJoin, miterLimit) {
    var p0 = seg1.points[3];
    var p1 = seg2.points[0];

    // Bevel
    if (lineJoin === 3) return p0;

    // Connected, they don't need a joint
    if (pointEqual(p0, p1)) return p0;

    // Round
    if (lineJoin === 2) {
      var angleOut = -seg1.tangentAngle(1);
      var angleIn = -seg2.tangentAngle(0) + Math.PI;
      var center = lineIntersection(p0, polarOffset(p0, angleOut + Math.PI / 2, 100), p1, polarOffset(p1, angleOut + Math.PI / 2, 100));
      var radius = center ? pointDistance(center, p0) : pointDistance(p0, p1) / 2;
      var tan = polarOffset(p0, angleOut, 2 * radius * roundCorner);
      outputBezier.setXYAt(tan[0], tan[1], 'o', outputBezier.length() - 1);
      tan = polarOffset(p1, angleIn, 2 * radius * roundCorner);
      outputBezier.setTripleAt(p1[0], p1[1], p1[0], p1[1], tan[0], tan[1], outputBezier.length());
      return p1;
    }

    // Miter
    var t0 = pointEqual(p0, seg1.points[2]) ? seg1.points[0] : seg1.points[2];
    var t1 = pointEqual(p1, seg2.points[1]) ? seg2.points[3] : seg2.points[1];
    var intersection = lineIntersection(t0, p0, p1, t1);
    if (intersection && pointDistance(intersection, p0) < miterLimit) {
      outputBezier.setTripleAt(intersection[0], intersection[1], intersection[0], intersection[1], intersection[0], intersection[1], outputBezier.length());
      return intersection;
    }
    return p0;
  }
  function getIntersection(a, b) {
    var intersect = a.intersections(b);
    if (intersect.length && floatEqual(intersect[0][0], 1)) intersect.shift();
    if (intersect.length) return intersect[0];
    return null;
  }
  function pruneSegmentIntersection(a, b) {
    var outa = a.slice();
    var outb = b.slice();
    var intersect = getIntersection(a[a.length - 1], b[0]);
    if (intersect) {
      outa[a.length - 1] = a[a.length - 1].split(intersect[0])[0];
      outb[0] = b[0].split(intersect[1])[1];
    }
    if (a.length > 1 && b.length > 1) {
      intersect = getIntersection(a[0], b[b.length - 1]);
      if (intersect) {
        return [[a[0].split(intersect[0])[0]], [b[b.length - 1].split(intersect[1])[1]]];
      }
    }
    return [outa, outb];
  }
  function pruneIntersections(segments) {
    var e;
    for (var i = 1; i < segments.length; i += 1) {
      e = pruneSegmentIntersection(segments[i - 1], segments[i]);
      segments[i - 1] = e[0];
      segments[i] = e[1];
    }
    if (segments.length > 1) {
      e = pruneSegmentIntersection(segments[segments.length - 1], segments[0]);
      segments[segments.length - 1] = e[0];
      segments[0] = e[1];
    }
    return segments;
  }
  function offsetSegmentSplit(segment, amount) {
    /*
      We split each bezier segment into smaller pieces based
      on inflection points, this ensures the control point
      polygon is convex.
       (A cubic bezier can have none, one, or two inflection points)
    */
    var flex = segment.inflectionPoints();
    var left;
    var right;
    var split;
    var mid;
    if (flex.length === 0) {
      return [offsetSegment(segment, amount)];
    }
    if (flex.length === 1 || floatEqual(flex[1], 1)) {
      split = segment.split(flex[0]);
      left = split[0];
      right = split[1];
      return [offsetSegment(left, amount), offsetSegment(right, amount)];
    }
    split = segment.split(flex[0]);
    left = split[0];
    var t = (flex[1] - flex[0]) / (1 - flex[0]);
    split = split[1].split(t);
    mid = split[0];
    right = split[1];
    return [offsetSegment(left, amount), offsetSegment(mid, amount), offsetSegment(right, amount)];
  }
  function OffsetPathModifier() {}
  extendPrototype([ShapeModifier], OffsetPathModifier);
  OffsetPathModifier.prototype.initModifierProperties = function (elem, data) {
    this.getValue = this.processKeys;
    this.amount = PropertyFactory.getProp(elem, data.a, 0, null, this);
    this.miterLimit = PropertyFactory.getProp(elem, data.ml, 0, null, this);
    this.lineJoin = data.lj;
    this._isAnimated = this.amount.effectsSequence.length !== 0;
  };
  OffsetPathModifier.prototype.processPath = function (inputBezier, amount, lineJoin, miterLimit) {
    var outputBezier = shapePool.newElement();
    outputBezier.c = inputBezier.c;
    var count = inputBezier.length();
    if (!inputBezier.c) {
      count -= 1;
    }
    var i;
    var j;
    var segment;
    var multiSegments = [];
    for (i = 0; i < count; i += 1) {
      segment = PolynomialBezier.shapeSegment(inputBezier, i);
      multiSegments.push(offsetSegmentSplit(segment, amount));
    }
    if (!inputBezier.c) {
      for (i = count - 1; i >= 0; i -= 1) {
        segment = PolynomialBezier.shapeSegmentInverted(inputBezier, i);
        multiSegments.push(offsetSegmentSplit(segment, amount));
      }
    }
    multiSegments = pruneIntersections(multiSegments);

    // Add bezier segments to the output and apply line joints
    var lastPoint = null;
    var lastSeg = null;
    for (i = 0; i < multiSegments.length; i += 1) {
      var multiSegment = multiSegments[i];
      if (lastSeg) lastPoint = joinLines(outputBezier, lastSeg, multiSegment[0], lineJoin, miterLimit);
      lastSeg = multiSegment[multiSegment.length - 1];
      for (j = 0; j < multiSegment.length; j += 1) {
        segment = multiSegment[j];
        if (lastPoint && pointEqual(segment.points[0], lastPoint)) {
          outputBezier.setXYAt(segment.points[1][0], segment.points[1][1], 'o', outputBezier.length() - 1);
        } else {
          outputBezier.setTripleAt(segment.points[0][0], segment.points[0][1], segment.points[1][0], segment.points[1][1], segment.points[0][0], segment.points[0][1], outputBezier.length());
        }
        outputBezier.setTripleAt(segment.points[3][0], segment.points[3][1], segment.points[3][0], segment.points[3][1], segment.points[2][0], segment.points[2][1], outputBezier.length());
        lastPoint = segment.points[3];
      }
    }
    if (multiSegments.length) joinLines(outputBezier, lastSeg, multiSegments[0][0], lineJoin, miterLimit);
    return outputBezier;
  };
  OffsetPathModifier.prototype.processShapes = function (_isFirstFrame) {
    var shapePaths;
    var i;
    var len = this.shapes.length;
    var j;
    var jLen;
    var amount = this.amount.v;
    var miterLimit = this.miterLimit.v;
    var lineJoin = this.lineJoin;
    if (amount !== 0) {
      var shapeData;
      var localShapeCollection;
      for (i = 0; i < len; i += 1) {
        shapeData = this.shapes[i];
        localShapeCollection = shapeData.localShapeCollection;
        if (!(!shapeData.shape._mdf && !this._mdf && !_isFirstFrame)) {
          localShapeCollection.releaseShapes();
          shapeData.shape._mdf = true;
          shapePaths = shapeData.shape.paths.shapes;
          jLen = shapeData.shape.paths._length;
          for (j = 0; j < jLen; j += 1) {
            localShapeCollection.addShape(this.processPath(shapePaths[j], amount, lineJoin, miterLimit));
          }
        }
        shapeData.shape.paths = shapeData.localShapeCollection;
      }
    }
    if (!this.dynamicProperties.length) {
      this._mdf = false;
    }
  };

  function getFontProperties(fontData) {
    var styles = fontData.fStyle ? fontData.fStyle.split(' ') : [];
    var fWeight = 'normal';
    var fStyle = 'normal';
    var len = styles.length;
    var styleName;
    for (var i = 0; i < len; i += 1) {
      styleName = styles[i].toLowerCase();
      switch (styleName) {
        case 'italic':
          fStyle = 'italic';
          break;
        case 'bold':
          fWeight = '700';
          break;
        case 'black':
          fWeight = '900';
          break;
        case 'medium':
          fWeight = '500';
          break;
        case 'regular':
        case 'normal':
          fWeight = '400';
          break;
        case 'light':
        case 'thin':
          fWeight = '200';
          break;
        default:
          break;
      }
    }
    return {
      style: fStyle,
      weight: fontData.fWeight || fWeight
    };
  }

  var FontManager = function () {
    var maxWaitingTime = 5000;
    var emptyChar = {
      w: 0,
      size: 0,
      shapes: [],
      data: {
        shapes: []
      }
    };
    var combinedCharacters = [];
    // Hindi characters
    combinedCharacters = combinedCharacters.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
    var BLACK_FLAG_CODE_POINT = 127988;
    var CANCEL_TAG_CODE_POINT = 917631;
    var A_TAG_CODE_POINT = 917601;
    var Z_TAG_CODE_POINT = 917626;
    var VARIATION_SELECTOR_16_CODE_POINT = 65039;
    var ZERO_WIDTH_JOINER_CODE_POINT = 8205;
    var REGIONAL_CHARACTER_A_CODE_POINT = 127462;
    var REGIONAL_CHARACTER_Z_CODE_POINT = 127487;
    var surrogateModifiers = ['d83cdffb', 'd83cdffc', 'd83cdffd', 'd83cdffe', 'd83cdfff'];
    function trimFontOptions(font) {
      var familyArray = font.split(',');
      var i;
      var len = familyArray.length;
      var enabledFamilies = [];
      for (i = 0; i < len; i += 1) {
        if (familyArray[i] !== 'sans-serif' && familyArray[i] !== 'monospace') {
          enabledFamilies.push(familyArray[i]);
        }
      }
      return enabledFamilies.join(',');
    }
    function setUpNode(font, family) {
      var parentNode = createTag('span');
      // Node is invisible to screen readers.
      parentNode.setAttribute('aria-hidden', true);
      parentNode.style.fontFamily = family;
      var node = createTag('span');
      // Characters that vary significantly among different fonts
      node.innerText = 'giItT1WQy@!-/#';
      // Visible - so we can measure it - but not on the screen
      parentNode.style.position = 'absolute';
      parentNode.style.left = '-10000px';
      parentNode.style.top = '-10000px';
      // Large font size makes even subtle changes obvious
      parentNode.style.fontSize = '300px';
      // Reset any font properties
      parentNode.style.fontVariant = 'normal';
      parentNode.style.fontStyle = 'normal';
      parentNode.style.fontWeight = 'normal';
      parentNode.style.letterSpacing = '0';
      parentNode.appendChild(node);
      document.body.appendChild(parentNode);

      // Remember width with no applied web font
      var width = node.offsetWidth;
      node.style.fontFamily = trimFontOptions(font) + ', ' + family;
      return {
        node: node,
        w: width,
        parent: parentNode
      };
    }
    function checkLoadedFonts() {
      var i;
      var len = this.fonts.length;
      var node;
      var w;
      var loadedCount = len;
      for (i = 0; i < len; i += 1) {
        if (this.fonts[i].loaded) {
          loadedCount -= 1;
        } else if (this.fonts[i].fOrigin === 'n' || this.fonts[i].origin === 0) {
          this.fonts[i].loaded = true;
        } else {
          node = this.fonts[i].monoCase.node;
          w = this.fonts[i].monoCase.w;
          if (node.offsetWidth !== w) {
            loadedCount -= 1;
            this.fonts[i].loaded = true;
          } else {
            node = this.fonts[i].sansCase.node;
            w = this.fonts[i].sansCase.w;
            if (node.offsetWidth !== w) {
              loadedCount -= 1;
              this.fonts[i].loaded = true;
            }
          }
          if (this.fonts[i].loaded) {
            this.fonts[i].sansCase.parent.parentNode.removeChild(this.fonts[i].sansCase.parent);
            this.fonts[i].monoCase.parent.parentNode.removeChild(this.fonts[i].monoCase.parent);
          }
        }
      }
      if (loadedCount !== 0 && Date.now() - this.initTime < maxWaitingTime) {
        setTimeout(this.checkLoadedFontsBinded, 20);
      } else {
        setTimeout(this.setIsLoadedBinded, 10);
      }
    }
    function createHelper(fontData, def) {
      var engine = document.body && def ? 'svg' : 'canvas';
      var helper;
      var fontProps = getFontProperties(fontData);
      if (engine === 'svg') {
        var tHelper = createNS('text');
        tHelper.style.fontSize = '100px';
        // tHelper.style.fontFamily = fontData.fFamily;
        tHelper.setAttribute('font-family', fontData.fFamily);
        tHelper.setAttribute('font-style', fontProps.style);
        tHelper.setAttribute('font-weight', fontProps.weight);
        tHelper.textContent = '1';
        if (fontData.fClass) {
          tHelper.style.fontFamily = 'inherit';
          tHelper.setAttribute('class', fontData.fClass);
        } else {
          tHelper.style.fontFamily = fontData.fFamily;
        }
        def.appendChild(tHelper);
        helper = tHelper;
      } else {
        var tCanvasHelper = new OffscreenCanvas(500, 500).getContext('2d');
        tCanvasHelper.font = fontProps.style + ' ' + fontProps.weight + ' 100px ' + fontData.fFamily;
        helper = tCanvasHelper;
      }
      function measure(text) {
        if (engine === 'svg') {
          helper.textContent = text;
          return helper.getComputedTextLength();
        }
        return helper.measureText(text).width;
      }
      return {
        measureText: measure
      };
    }
    function addFonts(fontData, defs) {
      if (!fontData) {
        this.isLoaded = true;
        return;
      }
      if (this.chars) {
        this.isLoaded = true;
        this.fonts = fontData.list;
        return;
      }
      if (!document.body) {
        this.isLoaded = true;
        fontData.list.forEach(function (data) {
          data.helper = createHelper(data);
          data.cache = {};
        });
        this.fonts = fontData.list;
        return;
      }
      var fontArr = fontData.list;
      var i;
      var len = fontArr.length;
      var _pendingFonts = len;
      for (i = 0; i < len; i += 1) {
        var shouldLoadFont = true;
        var loadedSelector;
        var j;
        fontArr[i].loaded = false;
        fontArr[i].monoCase = setUpNode(fontArr[i].fFamily, 'monospace');
        fontArr[i].sansCase = setUpNode(fontArr[i].fFamily, 'sans-serif');
        if (!fontArr[i].fPath) {
          fontArr[i].loaded = true;
          _pendingFonts -= 1;
        } else if (fontArr[i].fOrigin === 'p' || fontArr[i].origin === 3) {
          loadedSelector = document.querySelectorAll('style[f-forigin="p"][f-family="' + fontArr[i].fFamily + '"], style[f-origin="3"][f-family="' + fontArr[i].fFamily + '"]');
          if (loadedSelector.length > 0) {
            shouldLoadFont = false;
          }
          if (shouldLoadFont) {
            var s = createTag('style');
            s.setAttribute('f-forigin', fontArr[i].fOrigin);
            s.setAttribute('f-origin', fontArr[i].origin);
            s.setAttribute('f-family', fontArr[i].fFamily);
            s.type = 'text/css';
            s.innerText = '@font-face {font-family: ' + fontArr[i].fFamily + "; font-style: normal; src: url('" + fontArr[i].fPath + "');}";
            defs.appendChild(s);
          }
        } else if (fontArr[i].fOrigin === 'g' || fontArr[i].origin === 1) {
          loadedSelector = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');
          for (j = 0; j < loadedSelector.length; j += 1) {
            if (loadedSelector[j].href.indexOf(fontArr[i].fPath) !== -1) {
              // Font is already loaded
              shouldLoadFont = false;
            }
          }
          if (shouldLoadFont) {
            var l = createTag('link');
            l.setAttribute('f-forigin', fontArr[i].fOrigin);
            l.setAttribute('f-origin', fontArr[i].origin);
            l.type = 'text/css';
            l.rel = 'stylesheet';
            l.href = fontArr[i].fPath;
            document.body.appendChild(l);
          }
        } else if (fontArr[i].fOrigin === 't' || fontArr[i].origin === 2) {
          loadedSelector = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');
          for (j = 0; j < loadedSelector.length; j += 1) {
            if (fontArr[i].fPath === loadedSelector[j].src) {
              // Font is already loaded
              shouldLoadFont = false;
            }
          }
          if (shouldLoadFont) {
            var sc = createTag('link');
            sc.setAttribute('f-forigin', fontArr[i].fOrigin);
            sc.setAttribute('f-origin', fontArr[i].origin);
            sc.setAttribute('rel', 'stylesheet');
            sc.setAttribute('href', fontArr[i].fPath);
            defs.appendChild(sc);
          }
        }
        fontArr[i].helper = createHelper(fontArr[i], defs);
        fontArr[i].cache = {};
        this.fonts.push(fontArr[i]);
      }
      if (_pendingFonts === 0) {
        this.isLoaded = true;
      } else {
        // On some cases even if the font is loaded, it won't load correctly when measuring text on canvas.
        // Adding this timeout seems to fix it
        setTimeout(this.checkLoadedFonts.bind(this), 100);
      }
    }
    function addChars(chars) {
      if (!chars) {
        return;
      }
      if (!this.chars) {
        this.chars = [];
      }
      var i;
      var len = chars.length;
      var j;
      var jLen = this.chars.length;
      var found;
      for (i = 0; i < len; i += 1) {
        j = 0;
        found = false;
        while (j < jLen) {
          if (this.chars[j].style === chars[i].style && this.chars[j].fFamily === chars[i].fFamily && this.chars[j].ch === chars[i].ch) {
            found = true;
          }
          j += 1;
        }
        if (!found) {
          this.chars.push(chars[i]);
          jLen += 1;
        }
      }
    }
    function getCharData(_char, style, font) {
      var i = 0;
      var len = this.chars.length;
      while (i < len) {
        if (this.chars[i].ch === _char && this.chars[i].style === style && this.chars[i].fFamily === font) {
          return this.chars[i];
        }
        i += 1;
      }
      if ((typeof _char === 'string' && _char.charCodeAt(0) !== 13 || !_char) && console && console.warn // eslint-disable-line no-console
      && !this._warned) {
        this._warned = true;
        console.warn('Missing character from exported characters list: ', _char, style, font); // eslint-disable-line no-console
      }
      return emptyChar;
    }
    function measureText(_char2, fontName, size) {
      var fontData = this.getFontByName(fontName);
      // Using the char instead of char.charCodeAt(0)
      // to avoid collisions between equal chars
      var index = _char2;
      if (!fontData.cache[index]) {
        var tHelper = fontData.helper;
        if (_char2 === ' ') {
          var doubleSize = tHelper.measureText('|' + _char2 + '|');
          var singleSize = tHelper.measureText('||');
          fontData.cache[index] = (doubleSize - singleSize) / 100;
        } else {
          fontData.cache[index] = tHelper.measureText(_char2) / 100;
        }
      }
      return fontData.cache[index] * size;
    }
    function getFontByName(name) {
      var i = 0;
      var len = this.fonts.length;
      while (i < len) {
        if (this.fonts[i].fName === name) {
          return this.fonts[i];
        }
        i += 1;
      }
      return this.fonts[0];
    }
    function getCodePoint(string) {
      var codePoint = 0;
      var first = string.charCodeAt(0);
      if (first >= 0xD800 && first <= 0xDBFF) {
        var second = string.charCodeAt(1);
        if (second >= 0xDC00 && second <= 0xDFFF) {
          codePoint = (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
        }
      }
      return codePoint;
    }

    // Skin tone modifiers
    function isModifier(firstCharCode, secondCharCode) {
      var sum = firstCharCode.toString(16) + secondCharCode.toString(16);
      return surrogateModifiers.indexOf(sum) !== -1;
    }
    function isZeroWidthJoiner(charCode) {
      return charCode === ZERO_WIDTH_JOINER_CODE_POINT;
    }

    // This codepoint may change the appearance of the preceding character.
    // If that is a symbol, dingbat or emoji, U+FE0F forces it to be rendered
    // as a colorful image as compared to a monochrome text variant.
    function isVariationSelector(charCode) {
      return charCode === VARIATION_SELECTOR_16_CODE_POINT;
    }

    // The regional indicator symbols are a set of 26 alphabetic Unicode
    /// characters (A–Z) intended to be used to encode ISO 3166-1 alpha-2
    // two-letter country codes in a way that allows optional special treatment.
    function isRegionalCode(string) {
      var codePoint = getCodePoint(string);
      if (codePoint >= REGIONAL_CHARACTER_A_CODE_POINT && codePoint <= REGIONAL_CHARACTER_Z_CODE_POINT) {
        return true;
      }
      return false;
    }

    // Some Emoji implementations represent combinations of
    // two “regional indicator” letters as a single flag symbol.
    function isFlagEmoji(string) {
      return isRegionalCode(string.substr(0, 2)) && isRegionalCode(string.substr(2, 2));
    }
    function isCombinedCharacter(_char3) {
      return combinedCharacters.indexOf(_char3) !== -1;
    }

    // Regional flags start with a BLACK_FLAG_CODE_POINT
    // folowed by 5 chars in the TAG range
    // and end with a CANCEL_TAG_CODE_POINT
    function isRegionalFlag(text, index) {
      var codePoint = getCodePoint(text.substr(index, 2));
      if (codePoint !== BLACK_FLAG_CODE_POINT) {
        return false;
      }
      var count = 0;
      index += 2;
      while (count < 5) {
        codePoint = getCodePoint(text.substr(index, 2));
        if (codePoint < A_TAG_CODE_POINT || codePoint > Z_TAG_CODE_POINT) {
          return false;
        }
        count += 1;
        index += 2;
      }
      return getCodePoint(text.substr(index, 2)) === CANCEL_TAG_CODE_POINT;
    }
    function setIsLoaded() {
      this.isLoaded = true;
    }
    var Font = function Font() {
      this.fonts = [];
      this.chars = null;
      this.typekitLoaded = 0;
      this.isLoaded = false;
      this._warned = false;
      this.initTime = Date.now();
      this.setIsLoadedBinded = this.setIsLoaded.bind(this);
      this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
    };
    Font.isModifier = isModifier;
    Font.isZeroWidthJoiner = isZeroWidthJoiner;
    Font.isFlagEmoji = isFlagEmoji;
    Font.isRegionalCode = isRegionalCode;
    Font.isCombinedCharacter = isCombinedCharacter;
    Font.isRegionalFlag = isRegionalFlag;
    Font.isVariationSelector = isVariationSelector;
    Font.BLACK_FLAG_CODE_POINT = BLACK_FLAG_CODE_POINT;
    var fontPrototype = {
      addChars: addChars,
      addFonts: addFonts,
      getCharData: getCharData,
      getFontByName: getFontByName,
      measureText: measureText,
      checkLoadedFonts: checkLoadedFonts,
      setIsLoaded: setIsLoaded
    };
    Font.prototype = fontPrototype;
    return Font;
  }();

  function SlotManager(animationData) {
    this.animationData = animationData;
  }
  SlotManager.prototype.getProp = function (data) {
    if (this.animationData.slots && this.animationData.slots[data.sid]) {
      return Object.assign(data, this.animationData.slots[data.sid].p);
    }
    return data;
  };
  function slotFactory(animationData) {
    return new SlotManager(animationData);
  }

  function RenderableElement() {}
  RenderableElement.prototype = {
    initRenderable: function initRenderable() {
      // layer's visibility related to inpoint and outpoint. Rename isVisible to isInRange
      this.isInRange = false;
      // layer's display state
      this.hidden = false;
      // If layer's transparency equals 0, it can be hidden
      this.isTransparent = false;
      // list of animated components
      this.renderableComponents = [];
    },
    addRenderableComponent: function addRenderableComponent(component) {
      if (this.renderableComponents.indexOf(component) === -1) {
        this.renderableComponents.push(component);
      }
    },
    removeRenderableComponent: function removeRenderableComponent(component) {
      if (this.renderableComponents.indexOf(component) !== -1) {
        this.renderableComponents.splice(this.renderableComponents.indexOf(component), 1);
      }
    },
    prepareRenderableFrame: function prepareRenderableFrame(num) {
      this.checkLayerLimits(num);
    },
    checkTransparency: function checkTransparency() {
      if (this.finalTransform.mProp.o.v <= 0) {
        if (!this.isTransparent && this.globalData.renderConfig.hideOnTransparent) {
          this.isTransparent = true;
          this.hide();
        }
      } else if (this.isTransparent) {
        this.isTransparent = false;
        this.show();
      }
    },
    /**
       * @function
       * Initializes frame related properties.
       *
       * @param {number} num
       * current frame number in Layer's time
       *
       */
    checkLayerLimits: function checkLayerLimits(num) {
      if (this.data.ip - this.data.st <= num && this.data.op - this.data.st > num) {
        if (this.isInRange !== true) {
          this.globalData._mdf = true;
          this._mdf = true;
          this.isInRange = true;
          this.show();
        }
      } else if (this.isInRange !== false) {
        this.globalData._mdf = true;
        this.isInRange = false;
        this.hide();
      }
    },
    renderRenderable: function renderRenderable() {
      var i;
      var len = this.renderableComponents.length;
      for (i = 0; i < len; i += 1) {
        this.renderableComponents[i].renderFrame(this._isFirstFrame);
      }
      /* this.maskManager.renderFrame(this.finalTransform.mat);
          this.renderableEffectsManager.renderFrame(this._isFirstFrame); */
    },
    sourceRectAtTime: function sourceRectAtTime() {
      return {
        top: 0,
        left: 0,
        width: 100,
        height: 100
      };
    },
    getLayerSize: function getLayerSize() {
      if (this.data.ty === 5) {
        return {
          w: this.data.textData.width,
          h: this.data.textData.height
        };
      }
      return {
        w: this.data.width,
        h: this.data.height
      };
    }
  };

  var getBlendMode = function () {
    var blendModeEnums = {
      0: 'source-over',
      1: 'multiply',
      2: 'screen',
      3: 'overlay',
      4: 'darken',
      5: 'lighten',
      6: 'color-dodge',
      7: 'color-burn',
      8: 'hard-light',
      9: 'soft-light',
      10: 'difference',
      11: 'exclusion',
      12: 'hue',
      13: 'saturation',
      14: 'color',
      15: 'luminosity'
    };
    return function (mode) {
      return blendModeEnums[mode] || '';
    };
  }();

  function SliderEffect(data, elem, container) {
    this.p = PropertyFactory.getProp(elem, data.v, 0, 0, container);
  }
  function AngleEffect(data, elem, container) {
    this.p = PropertyFactory.getProp(elem, data.v, 0, 0, container);
  }
  function ColorEffect(data, elem, container) {
    this.p = PropertyFactory.getProp(elem, data.v, 1, 0, container);
  }
  function PointEffect(data, elem, container) {
    this.p = PropertyFactory.getProp(elem, data.v, 1, 0, container);
  }
  function LayerIndexEffect(data, elem, container) {
    this.p = PropertyFactory.getProp(elem, data.v, 0, 0, container);
  }
  function MaskIndexEffect(data, elem, container) {
    this.p = PropertyFactory.getProp(elem, data.v, 0, 0, container);
  }
  function CheckboxEffect(data, elem, container) {
    this.p = PropertyFactory.getProp(elem, data.v, 0, 0, container);
  }
  function NoValueEffect() {
    this.p = {};
  }

  function EffectsManager(data, element) {
    var effects = data.ef || [];
    this.effectElements = [];
    var i;
    var len = effects.length;
    var effectItem;
    for (i = 0; i < len; i += 1) {
      effectItem = new GroupEffect(effects[i], element);
      this.effectElements.push(effectItem);
    }
  }
  function GroupEffect(data, element) {
    this.init(data, element);
  }
  extendPrototype([DynamicPropertyContainer], GroupEffect);
  GroupEffect.prototype.getValue = GroupEffect.prototype.iterateDynamicProperties;
  GroupEffect.prototype.init = function (data, element) {
    this.data = data;
    this.effectElements = [];
    this.initDynamicPropertyContainer(element);
    var i;
    var len = this.data.ef.length;
    var eff;
    var effects = this.data.ef;
    for (i = 0; i < len; i += 1) {
      eff = null;
      switch (effects[i].ty) {
        case 0:
          eff = new SliderEffect(effects[i], element, this);
          break;
        case 1:
          eff = new AngleEffect(effects[i], element, this);
          break;
        case 2:
          eff = new ColorEffect(effects[i], element, this);
          break;
        case 3:
          eff = new PointEffect(effects[i], element, this);
          break;
        case 4:
        case 7:
          eff = new CheckboxEffect(effects[i], element, this);
          break;
        case 10:
          eff = new LayerIndexEffect(effects[i], element, this);
          break;
        case 11:
          eff = new MaskIndexEffect(effects[i], element, this);
          break;
        case 5:
          eff = new EffectsManager(effects[i], element, this);
          break;
        // case 6:
        default:
          eff = new NoValueEffect(effects[i], element, this);
          break;
      }
      if (eff) {
        this.effectElements.push(eff);
      }
    }
  };

  function BaseElement() {}
  BaseElement.prototype = {
    checkMasks: function checkMasks() {
      if (!this.data.hasMask) {
        return false;
      }
      var i = 0;
      var len = this.data.masksProperties.length;
      while (i < len) {
        if (this.data.masksProperties[i].mode !== 'n' && this.data.masksProperties[i].cl !== false) {
          return true;
        }
        i += 1;
      }
      return false;
    },
    initExpressions: function initExpressions() {
      var expressionsInterfaces = getExpressionInterfaces();
      if (!expressionsInterfaces) {
        return;
      }
      var LayerExpressionInterface = expressionsInterfaces('layer');
      var EffectsExpressionInterface = expressionsInterfaces('effects');
      var ShapeExpressionInterface = expressionsInterfaces('shape');
      var TextExpressionInterface = expressionsInterfaces('text');
      var CompExpressionInterface = expressionsInterfaces('comp');
      this.layerInterface = LayerExpressionInterface(this);
      if (this.data.hasMask && this.maskManager) {
        this.layerInterface.registerMaskInterface(this.maskManager);
      }
      var effectsInterface = EffectsExpressionInterface.createEffectsInterface(this, this.layerInterface);
      this.layerInterface.registerEffectsInterface(effectsInterface);
      if (this.data.ty === 0 || this.data.xt) {
        this.compInterface = CompExpressionInterface(this);
      } else if (this.data.ty === 4) {
        this.layerInterface.shapeInterface = ShapeExpressionInterface(this.shapesData, this.itemsData, this.layerInterface);
        this.layerInterface.content = this.layerInterface.shapeInterface;
      } else if (this.data.ty === 5) {
        this.layerInterface.textInterface = TextExpressionInterface(this);
        this.layerInterface.text = this.layerInterface.textInterface;
      }
    },
    setBlendMode: function setBlendMode() {
      var blendModeValue = getBlendMode(this.data.bm);
      var elem = this.baseElement || this.layerElement;
      elem.style['mix-blend-mode'] = blendModeValue;
    },
    initBaseData: function initBaseData(data, globalData, comp) {
      this.globalData = globalData;
      this.comp = comp;
      this.data = data;
      this.layerId = createElementID();

      // Stretch factor for old animations missing this property.
      if (!this.data.sr) {
        this.data.sr = 1;
      }
      // effects manager
      this.effectsManager = new EffectsManager(this.data, this, this.dynamicProperties);
    },
    getType: function getType() {
      return this.type;
    },
    sourceRectAtTime: function sourceRectAtTime() {}
  };

  /**
   * @file
   * Handles element's layer frame update.
   * Checks layer in point and out point
   *
   */

  function FrameElement() {}
  FrameElement.prototype = {
    /**
       * @function
       * Initializes frame related properties.
       *
       */
    initFrame: function initFrame() {
      // set to true when inpoint is rendered
      this._isFirstFrame = false;
      // list of animated properties
      this.dynamicProperties = [];
      // If layer has been modified in current tick this will be true
      this._mdf = false;
    },
    /**
       * @function
       * Calculates all dynamic values
       *
       * @param {number} num
       * current frame number in Layer's time
       * @param {boolean} isVisible
       * if layers is currently in range
       *
       */
    prepareProperties: function prepareProperties(num, isVisible) {
      var i;
      var len = this.dynamicProperties.length;
      for (i = 0; i < len; i += 1) {
        if (isVisible || this._isParent && this.dynamicProperties[i].propType === 'transform') {
          this.dynamicProperties[i].getValue();
          if (this.dynamicProperties[i]._mdf) {
            this.globalData._mdf = true;
            this._mdf = true;
          }
        }
      }
    },
    addDynamicProperty: function addDynamicProperty(prop) {
      if (this.dynamicProperties.indexOf(prop) === -1) {
        this.dynamicProperties.push(prop);
      }
    }
  };

  function FootageElement(data, globalData, comp) {
    this.initFrame();
    this.initRenderable();
    this.assetData = globalData.getAssetData(data.refId);
    this.footageData = globalData.imageLoader.getAsset(this.assetData);
    this.initBaseData(data, globalData, comp);
  }
  FootageElement.prototype.prepareFrame = function () {};
  extendPrototype([RenderableElement, BaseElement, FrameElement], FootageElement);
  FootageElement.prototype.getBaseElement = function () {
    return null;
  };
  FootageElement.prototype.renderFrame = function () {};
  FootageElement.prototype.destroy = function () {};
  FootageElement.prototype.initExpressions = function () {
    var expressionsInterfaces = getExpressionInterfaces();
    if (!expressionsInterfaces) {
      return;
    }
    var FootageInterface = expressionsInterfaces('footage');
    this.layerInterface = FootageInterface(this);
  };
  FootageElement.prototype.getFootageData = function () {
    return this.footageData;
  };

  function AudioElement(data, globalData, comp) {
    this.initFrame();
    this.initRenderable();
    this.assetData = globalData.getAssetData(data.refId);
    this.initBaseData(data, globalData, comp);
    this._isPlaying = false;
    this._canPlay = false;
    var assetPath = this.globalData.getAssetsPath(this.assetData);
    this.audio = this.globalData.audioController.createAudio(assetPath);
    this._currentTime = 0;
    this.globalData.audioController.addAudio(this);
    this._volumeMultiplier = 1;
    this._volume = 1;
    this._previousVolume = null;
    this.tm = data.tm ? PropertyFactory.getProp(this, data.tm, 0, globalData.frameRate, this) : {
      _placeholder: true
    };
    this.lv = PropertyFactory.getProp(this, data.au && data.au.lv ? data.au.lv : {
      k: [100]
    }, 1, 0.01, this);
  }
  AudioElement.prototype.prepareFrame = function (num) {
    this.prepareRenderableFrame(num, true);
    this.prepareProperties(num, true);
    if (!this.tm._placeholder) {
      var timeRemapped = this.tm.v;
      this._currentTime = timeRemapped;
    } else {
      this._currentTime = num / this.data.sr;
    }
    this._volume = this.lv.v[0];
    var totalVolume = this._volume * this._volumeMultiplier;
    if (this._previousVolume !== totalVolume) {
      this._previousVolume = totalVolume;
      this.audio.volume(totalVolume);
    }
  };
  extendPrototype([RenderableElement, BaseElement, FrameElement], AudioElement);
  AudioElement.prototype.renderFrame = function () {
    if (this.isInRange && this._canPlay) {
      if (!this._isPlaying) {
        this.audio.play();
        this.audio.seek(this._currentTime / this.globalData.frameRate);
        this._isPlaying = true;
      } else if (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > 0.1) {
        this.audio.seek(this._currentTime / this.globalData.frameRate);
      }
    }
  };
  AudioElement.prototype.show = function () {
    // this.audio.play()
  };
  AudioElement.prototype.hide = function () {
    this.audio.pause();
    this._isPlaying = false;
  };
  AudioElement.prototype.pause = function () {
    this.audio.pause();
    this._isPlaying = false;
    this._canPlay = false;
  };
  AudioElement.prototype.resume = function () {
    this._canPlay = true;
  };
  AudioElement.prototype.setRate = function (rateValue) {
    this.audio.rate(rateValue);
  };
  AudioElement.prototype.volume = function (volumeValue) {
    this._volumeMultiplier = volumeValue;
    this._previousVolume = volumeValue * this._volume;
    this.audio.volume(this._previousVolume);
  };
  AudioElement.prototype.getBaseElement = function () {
    return null;
  };
  AudioElement.prototype.destroy = function () {};
  AudioElement.prototype.sourceRectAtTime = function () {};
  AudioElement.prototype.initExpressions = function () {};

  function BaseRenderer() {}
  BaseRenderer.prototype.checkLayers = function (num) {
    var i;
    var len = this.layers.length;
    var data;
    this.completeLayers = true;
    for (i = len - 1; i >= 0; i -= 1) {
      if (!this.elements[i]) {
        data = this.layers[i];
        if (data.ip - data.st <= num - this.layers[i].st && data.op - data.st > num - this.layers[i].st) {
          this.buildItem(i);
        }
      }
      this.completeLayers = this.elements[i] ? this.completeLayers : false;
    }
    this.checkPendingElements();
  };
  BaseRenderer.prototype.createItem = function (layer) {
    switch (layer.ty) {
      case 2:
        return this.createImage(layer);
      case 0:
        return this.createComp(layer);
      case 1:
        return this.createSolid(layer);
      case 3:
        return this.createNull(layer);
      case 4:
        return this.createShape(layer);
      case 5:
        return this.createText(layer);
      case 6:
        return this.createAudio(layer);
      case 13:
        return this.createCamera(layer);
      case 15:
        return this.createFootage(layer);
      default:
        return this.createNull(layer);
    }
  };
  BaseRenderer.prototype.createCamera = function () {
    throw new Error('You\'re using a 3d camera. Try the html renderer.');
  };
  BaseRenderer.prototype.createAudio = function (data) {
    return new AudioElement(data, this.globalData, this);
  };
  BaseRenderer.prototype.createFootage = function (data) {
    return new FootageElement(data, this.globalData, this);
  };
  BaseRenderer.prototype.buildAllItems = function () {
    var i;
    var len = this.layers.length;
    for (i = 0; i < len; i += 1) {
      this.buildItem(i);
    }
    this.checkPendingElements();
  };
  BaseRenderer.prototype.includeLayers = function (newLayers) {
    this.completeLayers = false;
    var i;
    var len = newLayers.length;
    var j;
    var jLen = this.layers.length;
    for (i = 0; i < len; i += 1) {
      j = 0;
      while (j < jLen) {
        if (this.layers[j].id === newLayers[i].id) {
          this.layers[j] = newLayers[i];
          break;
        }
        j += 1;
      }
    }
  };
  BaseRenderer.prototype.setProjectInterface = function (pInterface) {
    this.globalData.projectInterface = pInterface;
  };
  BaseRenderer.prototype.initItems = function () {
    if (!this.globalData.progressiveLoad) {
      this.buildAllItems();
    }
  };
  BaseRenderer.prototype.buildElementParenting = function (element, parentName, hierarchy) {
    var elements = this.elements;
    var layers = this.layers;
    var i = 0;
    var len = layers.length;
    while (i < len) {
      if (layers[i].ind == parentName) {
        // eslint-disable-line eqeqeq
        if (!elements[i] || elements[i] === true) {
          this.buildItem(i);
          this.addPendingElement(element);
        } else {
          hierarchy.push(elements[i]);
          elements[i].setAsParent();
          if (layers[i].parent !== undefined) {
            this.buildElementParenting(element, layers[i].parent, hierarchy);
          } else {
            element.setHierarchy(hierarchy);
          }
        }
      }
      i += 1;
    }
  };
  BaseRenderer.prototype.addPendingElement = function (element) {
    this.pendingElements.push(element);
  };
  BaseRenderer.prototype.searchExtraCompositions = function (assets) {
    var i;
    var len = assets.length;
    for (i = 0; i < len; i += 1) {
      if (assets[i].xt) {
        var comp = this.createComp(assets[i]);
        comp.initExpressions();
        this.globalData.projectInterface.registerComposition(comp);
      }
    }
  };
  BaseRenderer.prototype.getElementById = function (ind) {
    var i;
    var len = this.elements.length;
    for (i = 0; i < len; i += 1) {
      if (this.elements[i].data.ind === ind) {
        return this.elements[i];
      }
    }
    return null;
  };
  BaseRenderer.prototype.getElementByPath = function (path) {
    var pathValue = path.shift();
    var element;
    if (typeof pathValue === 'number') {
      element = this.elements[pathValue];
    } else {
      var i;
      var len = this.elements.length;
      for (i = 0; i < len; i += 1) {
        if (this.elements[i].data.nm === pathValue) {
          element = this.elements[i];
          break;
        }
      }
    }
    if (path.length === 0) {
      return element;
    }
    return element.getElementByPath(path);
  };
  BaseRenderer.prototype.setupGlobalData = function (animData, fontsContainer) {
    this.globalData.fontManager = new FontManager();
    this.globalData.slotManager = slotFactory(animData);
    this.globalData.fontManager.addChars(animData.chars);
    this.globalData.fontManager.addFonts(animData.fonts, fontsContainer);
    this.globalData.getAssetData = this.animationItem.getAssetData.bind(this.animationItem);
    this.globalData.getAssetsPath = this.animationItem.getAssetsPath.bind(this.animationItem);
    this.globalData.imageLoader = this.animationItem.imagePreloader;
    this.globalData.audioController = this.animationItem.audioController;
    this.globalData.frameId = 0;
    this.globalData.frameRate = animData.fr;
    this.globalData.nm = animData.nm;
    this.globalData.compSize = {
      w: animData.w,
      h: animData.h
    };
  };

  var effectTypes = {
    TRANSFORM_EFFECT: 'transformEFfect'
  };

  function TransformElement() {}
  TransformElement.prototype = {
    initTransform: function initTransform() {
      var mat = new Matrix();
      this.finalTransform = {
        mProp: this.data.ks ? TransformPropertyFactory.getTransformProperty(this, this.data.ks, this) : {
          o: 0
        },
        _matMdf: false,
        _localMatMdf: false,
        _opMdf: false,
        mat: mat,
        localMat: mat,
        localOpacity: 1
      };
      if (this.data.ao) {
        this.finalTransform.mProp.autoOriented = true;
      }

      // TODO: check TYPE 11: Guided elements
      if (this.data.ty !== 11) {
        // this.createElements();
      }
    },
    renderTransform: function renderTransform() {
      this.finalTransform._opMdf = this.finalTransform.mProp.o._mdf || this._isFirstFrame;
      this.finalTransform._matMdf = this.finalTransform.mProp._mdf || this._isFirstFrame;
      if (this.hierarchy) {
        var mat;
        var finalMat = this.finalTransform.mat;
        var i = 0;
        var len = this.hierarchy.length;
        // Checking if any of the transformation matrices in the hierarchy chain has changed.
        if (!this.finalTransform._matMdf) {
          while (i < len) {
            if (this.hierarchy[i].finalTransform.mProp._mdf) {
              this.finalTransform._matMdf = true;
              break;
            }
            i += 1;
          }
        }
        if (this.finalTransform._matMdf) {
          mat = this.finalTransform.mProp.v.props;
          finalMat.cloneFromProps(mat);
          for (i = 0; i < len; i += 1) {
            finalMat.multiply(this.hierarchy[i].finalTransform.mProp.v);
          }
        }
      }
      if (!this.localTransforms || this.finalTransform._matMdf) {
        this.finalTransform._localMatMdf = this.finalTransform._matMdf;
      }
      if (this.finalTransform._opMdf) {
        this.finalTransform.localOpacity = this.finalTransform.mProp.o.v;
      }
    },
    renderLocalTransform: function renderLocalTransform() {
      if (this.localTransforms) {
        var i = 0;
        var len = this.localTransforms.length;
        this.finalTransform._localMatMdf = this.finalTransform._matMdf;
        if (!this.finalTransform._localMatMdf || !this.finalTransform._opMdf) {
          while (i < len) {
            if (this.localTransforms[i]._mdf) {
              this.finalTransform._localMatMdf = true;
            }
            if (this.localTransforms[i]._opMdf && !this.finalTransform._opMdf) {
              this.finalTransform.localOpacity = this.finalTransform.mProp.o.v;
              this.finalTransform._opMdf = true;
            }
            i += 1;
          }
        }
        if (this.finalTransform._localMatMdf) {
          var localMat = this.finalTransform.localMat;
          this.localTransforms[0].matrix.clone(localMat);
          for (i = 1; i < len; i += 1) {
            var lmat = this.localTransforms[i].matrix;
            localMat.multiply(lmat);
          }
          localMat.multiply(this.finalTransform.mat);
        }
        if (this.finalTransform._opMdf) {
          var localOp = this.finalTransform.localOpacity;
          for (i = 0; i < len; i += 1) {
            localOp *= this.localTransforms[i].opacity * 0.01;
          }
          this.finalTransform.localOpacity = localOp;
        }
      }
    },
    searchEffectTransforms: function searchEffectTransforms() {
      if (this.renderableEffectsManager) {
        var transformEffects = this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);
        if (transformEffects.length) {
          this.localTransforms = [];
          this.finalTransform.localMat = new Matrix();
          var i = 0;
          var len = transformEffects.length;
          for (i = 0; i < len; i += 1) {
            this.localTransforms.push(transformEffects[i]);
          }
        }
      }
    },
    globalToLocal: function globalToLocal(pt) {
      var transforms = [];
      transforms.push(this.finalTransform);
      var flag = true;
      var comp = this.comp;
      while (flag) {
        if (comp.finalTransform) {
          if (comp.data.hasMask) {
            transforms.splice(0, 0, comp.finalTransform);
          }
          comp = comp.comp;
        } else {
          flag = false;
        }
      }
      var i;
      var len = transforms.length;
      var ptNew;
      for (i = 0; i < len; i += 1) {
        ptNew = transforms[i].mat.applyToPointArray(0, 0, 0);
        // ptNew = transforms[i].mat.applyToPointArray(pt[0],pt[1],pt[2]);
        pt = [pt[0] - ptNew[0], pt[1] - ptNew[1], 0];
      }
      return pt;
    },
    mHelper: new Matrix()
  };

  function MaskElement(data, element, globalData) {
    this.data = data;
    this.element = element;
    this.globalData = globalData;
    this.storedData = [];
    this.masksProperties = this.data.masksProperties || [];
    this.maskElement = null;
    var defs = this.globalData.defs;
    var i;
    var len = this.masksProperties ? this.masksProperties.length : 0;
    this.viewData = createSizedArray(len);
    this.solidPath = '';
    var path;
    var properties = this.masksProperties;
    var count = 0;
    var currentMasks = [];
    var j;
    var jLen;
    var layerId = createElementID();
    var rect;
    var expansor;
    var feMorph;
    var x;
    var maskType = 'clipPath';
    var maskRef = 'clip-path';
    for (i = 0; i < len; i += 1) {
      if (properties[i].mode !== 'a' && properties[i].mode !== 'n' || properties[i].inv || properties[i].o.k !== 100 || properties[i].o.x) {
        maskType = 'mask';
        maskRef = 'mask';
      }
      if ((properties[i].mode === 's' || properties[i].mode === 'i') && count === 0) {
        rect = createNS('rect');
        rect.setAttribute('fill', '#ffffff');
        rect.setAttribute('width', this.element.comp.data.w || 0);
        rect.setAttribute('height', this.element.comp.data.h || 0);
        currentMasks.push(rect);
      } else {
        rect = null;
      }
      path = createNS('path');
      if (properties[i].mode === 'n') {
        // TODO move this to a factory or to a constructor
        this.viewData[i] = {
          op: PropertyFactory.getProp(this.element, properties[i].o, 0, 0.01, this.element),
          prop: ShapePropertyFactory.getShapeProp(this.element, properties[i], 3),
          elem: path,
          lastPath: ''
        };
        defs.appendChild(path);
      } else {
        count += 1;
        path.setAttribute('fill', properties[i].mode === 's' ? '#000000' : '#ffffff');
        path.setAttribute('clip-rule', 'nonzero');
        var filterID;
        if (properties[i].x.k !== 0) {
          maskType = 'mask';
          maskRef = 'mask';
          x = PropertyFactory.getProp(this.element, properties[i].x, 0, null, this.element);
          filterID = createElementID();
          expansor = createNS('filter');
          expansor.setAttribute('id', filterID);
          feMorph = createNS('feMorphology');
          feMorph.setAttribute('operator', 'erode');
          feMorph.setAttribute('in', 'SourceGraphic');
          feMorph.setAttribute('radius', '0');
          expansor.appendChild(feMorph);
          defs.appendChild(expansor);
          path.setAttribute('stroke', properties[i].mode === 's' ? '#000000' : '#ffffff');
        } else {
          feMorph = null;
          x = null;
        }

        // TODO move this to a factory or to a constructor
        this.storedData[i] = {
          elem: path,
          x: x,
          expan: feMorph,
          lastPath: '',
          lastOperator: '',
          filterId: filterID,
          lastRadius: 0
        };
        if (properties[i].mode === 'i') {
          jLen = currentMasks.length;
          var g = createNS('g');
          for (j = 0; j < jLen; j += 1) {
            g.appendChild(currentMasks[j]);
          }
          var mask = createNS('mask');
          mask.setAttribute('mask-type', 'alpha');
          mask.setAttribute('id', layerId + '_' + count);
          mask.appendChild(path);
          defs.appendChild(mask);
          g.setAttribute('mask', 'url(' + getLocationHref() + '#' + layerId + '_' + count + ')');
          currentMasks.length = 0;
          currentMasks.push(g);
        } else {
          currentMasks.push(path);
        }
        if (properties[i].inv && !this.solidPath) {
          this.solidPath = this.createLayerSolidPath();
        }
        // TODO move this to a factory or to a constructor
        this.viewData[i] = {
          elem: path,
          lastPath: '',
          op: PropertyFactory.getProp(this.element, properties[i].o, 0, 0.01, this.element),
          prop: ShapePropertyFactory.getShapeProp(this.element, properties[i], 3),
          invRect: rect
        };
        if (!this.viewData[i].prop.k) {
          this.drawPath(properties[i], this.viewData[i].prop.v, this.viewData[i]);
        }
      }
    }
    this.maskElement = createNS(maskType);
    len = currentMasks.length;
    for (i = 0; i < len; i += 1) {
      this.maskElement.appendChild(currentMasks[i]);
    }
    if (count > 0) {
      this.maskElement.setAttribute('id', layerId);
      this.element.maskedElement.setAttribute(maskRef, 'url(' + getLocationHref() + '#' + layerId + ')');
      defs.appendChild(this.maskElement);
    }
    if (this.viewData.length) {
      this.element.addRenderableComponent(this);
    }
  }
  MaskElement.prototype.getMaskProperty = function (pos) {
    return this.viewData[pos].prop;
  };
  MaskElement.prototype.renderFrame = function (isFirstFrame) {
    var finalMat = this.element.finalTransform.mat;
    var i;
    var len = this.masksProperties.length;
    for (i = 0; i < len; i += 1) {
      if (this.viewData[i].prop._mdf || isFirstFrame) {
        this.drawPath(this.masksProperties[i], this.viewData[i].prop.v, this.viewData[i]);
      }
      if (this.viewData[i].op._mdf || isFirstFrame) {
        this.viewData[i].elem.setAttribute('fill-opacity', this.viewData[i].op.v);
      }
      if (this.masksProperties[i].mode !== 'n') {
        if (this.viewData[i].invRect && (this.element.finalTransform.mProp._mdf || isFirstFrame)) {
          this.viewData[i].invRect.setAttribute('transform', finalMat.getInverseMatrix().to2dCSS());
        }
        if (this.storedData[i].x && (this.storedData[i].x._mdf || isFirstFrame)) {
          var feMorph = this.storedData[i].expan;
          if (this.storedData[i].x.v < 0) {
            if (this.storedData[i].lastOperator !== 'erode') {
              this.storedData[i].lastOperator = 'erode';
              this.storedData[i].elem.setAttribute('filter', 'url(' + getLocationHref() + '#' + this.storedData[i].filterId + ')');
            }
            feMorph.setAttribute('radius', -this.storedData[i].x.v);
          } else {
            if (this.storedData[i].lastOperator !== 'dilate') {
              this.storedData[i].lastOperator = 'dilate';
              this.storedData[i].elem.setAttribute('filter', null);
            }
            this.storedData[i].elem.setAttribute('stroke-width', this.storedData[i].x.v * 2);
          }
        }
      }
    }
  };
  MaskElement.prototype.getMaskelement = function () {
    return this.maskElement;
  };
  MaskElement.prototype.createLayerSolidPath = function () {
    var path = 'M0,0 ';
    path += ' h' + this.globalData.compSize.w;
    path += ' v' + this.globalData.compSize.h;
    path += ' h-' + this.globalData.compSize.w;
    path += ' v-' + this.globalData.compSize.h + ' ';
    return path;
  };
  MaskElement.prototype.drawPath = function (pathData, pathNodes, viewData) {
    var pathString = ' M' + pathNodes.v[0][0] + ',' + pathNodes.v[0][1];
    var i;
    var len;
    len = pathNodes._length;
    for (i = 1; i < len; i += 1) {
      // pathString += " C"+pathNodes.o[i-1][0]+','+pathNodes.o[i-1][1] + " "+pathNodes.i[i][0]+','+pathNodes.i[i][1] + " "+pathNodes.v[i][0]+','+pathNodes.v[i][1];
      pathString += ' C' + pathNodes.o[i - 1][0] + ',' + pathNodes.o[i - 1][1] + ' ' + pathNodes.i[i][0] + ',' + pathNodes.i[i][1] + ' ' + pathNodes.v[i][0] + ',' + pathNodes.v[i][1];
    }
    // pathString += " C"+pathNodes.o[i-1][0]+','+pathNodes.o[i-1][1] + " "+pathNodes.i[0][0]+','+pathNodes.i[0][1] + " "+pathNodes.v[0][0]+','+pathNodes.v[0][1];
    if (pathNodes.c && len > 1) {
      pathString += ' C' + pathNodes.o[i - 1][0] + ',' + pathNodes.o[i - 1][1] + ' ' + pathNodes.i[0][0] + ',' + pathNodes.i[0][1] + ' ' + pathNodes.v[0][0] + ',' + pathNodes.v[0][1];
    }
    // pathNodes.__renderedString = pathString;

    if (viewData.lastPath !== pathString) {
      var pathShapeValue = '';
      if (viewData.elem) {
        if (pathNodes.c) {
          pathShapeValue = pathData.inv ? this.solidPath + pathString : pathString;
        }
        viewData.elem.setAttribute('d', pathShapeValue);
      }
      viewData.lastPath = pathString;
    }
  };
  MaskElement.prototype.destroy = function () {
    this.element = null;
    this.globalData = null;
    this.maskElement = null;
    this.data = null;
    this.masksProperties = null;
  };

  var filtersFactory = function () {
    var ob = {};
    ob.createFilter = createFilter;
    ob.createAlphaToLuminanceFilter = createAlphaToLuminanceFilter;
    function createFilter(filId, skipCoordinates) {
      var fil = createNS('filter');
      fil.setAttribute('id', filId);
      if (skipCoordinates !== true) {
        fil.setAttribute('filterUnits', 'objectBoundingBox');
        fil.setAttribute('x', '0%');
        fil.setAttribute('y', '0%');
        fil.setAttribute('width', '100%');
        fil.setAttribute('height', '100%');
      }
      return fil;
    }
    function createAlphaToLuminanceFilter() {
      var feColorMatrix = createNS('feColorMatrix');
      feColorMatrix.setAttribute('type', 'matrix');
      feColorMatrix.setAttribute('color-interpolation-filters', 'sRGB');
      feColorMatrix.setAttribute('values', '0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1');
      return feColorMatrix;
    }
    return ob;
  }();

  var featureSupport = function () {
    var ob = {
      maskType: true,
      svgLumaHidden: true,
      offscreenCanvas: typeof OffscreenCanvas !== 'undefined'
    };
    if (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) {
      ob.maskType = false;
    }
    if (/firefox/i.test(navigator.userAgent)) {
      ob.svgLumaHidden = false;
    }
    return ob;
  }();

  var registeredEffects$1 = {};
  var idPrefix = 'filter_result_';
  function SVGEffects(elem) {
    var i;
    var source = 'SourceGraphic';
    var len = elem.data.ef ? elem.data.ef.length : 0;
    var filId = createElementID();
    var fil = filtersFactory.createFilter(filId, true);
    var count = 0;
    this.filters = [];
    var filterManager;
    for (i = 0; i < len; i += 1) {
      filterManager = null;
      var type = elem.data.ef[i].ty;
      if (registeredEffects$1[type]) {
        var Effect = registeredEffects$1[type].effect;
        filterManager = new Effect(fil, elem.effectsManager.effectElements[i], elem, idPrefix + count, source);
        source = idPrefix + count;
        if (registeredEffects$1[type].countsAsEffect) {
          count += 1;
        }
      }
      if (filterManager) {
        this.filters.push(filterManager);
      }
    }
    if (count) {
      elem.globalData.defs.appendChild(fil);
      elem.layerElement.setAttribute('filter', 'url(' + getLocationHref() + '#' + filId + ')');
    }
    if (this.filters.length) {
      elem.addRenderableComponent(this);
    }
  }
  SVGEffects.prototype.renderFrame = function (_isFirstFrame) {
    var i;
    var len = this.filters.length;
    for (i = 0; i < len; i += 1) {
      this.filters[i].renderFrame(_isFirstFrame);
    }
  };
  SVGEffects.prototype.getEffects = function (type) {
    var i;
    var len = this.filters.length;
    var effects = [];
    for (i = 0; i < len; i += 1) {
      if (this.filters[i].type === type) {
        effects.push(this.filters[i]);
      }
    }
    return effects;
  };
  function registerEffect$1(id, effect, countsAsEffect) {
    registeredEffects$1[id] = {
      effect: effect,
      countsAsEffect: countsAsEffect
    };
  }

  function SVGBaseElement() {}
  SVGBaseElement.prototype = {
    initRendererElement: function initRendererElement() {
      this.layerElement = createNS('g');
    },
    createContainerElements: function createContainerElements() {
      this.matteElement = createNS('g');
      this.transformedElement = this.layerElement;
      this.maskedElement = this.layerElement;
      this._sizeChanged = false;
      var layerElementParent = null;
      // If this layer acts as a mask for the following layer
      if (this.data.td) {
        this.matteMasks = {};
        var gg = createNS('g');
        gg.setAttribute('id', this.layerId);
        gg.appendChild(this.layerElement);
        layerElementParent = gg;
        this.globalData.defs.appendChild(gg);
      } else if (this.data.tt) {
        this.matteElement.appendChild(this.layerElement);
        layerElementParent = this.matteElement;
        this.baseElement = this.matteElement;
      } else {
        this.baseElement = this.layerElement;
      }
      if (this.data.ln) {
        this.layerElement.setAttribute('id', this.data.ln);
      }
      if (this.data.cl) {
        this.layerElement.setAttribute('class', this.data.cl);
      }
      // Clipping compositions to hide content that exceeds boundaries. If collapsed transformations is on, component should not be clipped
      if (this.data.ty === 0 && !this.data.hd) {
        var cp = createNS('clipPath');
        var pt = createNS('path');
        pt.setAttribute('d', 'M0,0 L' + this.data.w + ',0 L' + this.data.w + ',' + this.data.h + ' L0,' + this.data.h + 'z');
        var clipId = createElementID();
        cp.setAttribute('id', clipId);
        cp.appendChild(pt);
        this.globalData.defs.appendChild(cp);
        if (this.checkMasks()) {
          var cpGroup = createNS('g');
          cpGroup.setAttribute('clip-path', 'url(' + getLocationHref() + '#' + clipId + ')');
          cpGroup.appendChild(this.layerElement);
          this.transformedElement = cpGroup;
          if (layerElementParent) {
            layerElementParent.appendChild(this.transformedElement);
          } else {
            this.baseElement = this.transformedElement;
          }
        } else {
          this.layerElement.setAttribute('clip-path', 'url(' + getLocationHref() + '#' + clipId + ')');
        }
      }
      if (this.data.bm !== 0) {
        this.setBlendMode();
      }
    },
    renderElement: function renderElement() {
      if (this.finalTransform._localMatMdf) {
        this.transformedElement.setAttribute('transform', this.finalTransform.localMat.to2dCSS());
      }
      if (this.finalTransform._opMdf) {
        this.transformedElement.setAttribute('opacity', this.finalTransform.localOpacity);
      }
    },
    destroyBaseElement: function destroyBaseElement() {
      this.layerElement = null;
      this.matteElement = null;
      this.maskManager.destroy();
    },
    getBaseElement: function getBaseElement() {
      if (this.data.hd) {
        return null;
      }
      return this.baseElement;
    },
    createRenderableComponents: function createRenderableComponents() {
      this.maskManager = new MaskElement(this.data, this, this.globalData);
      this.renderableEffectsManager = new SVGEffects(this);
      this.searchEffectTransforms();
    },
    getMatte: function getMatte(matteType) {
      // This should not be a common case. But for backward compatibility, we'll create the matte object.
      // It solves animations that have two consecutive layers marked as matte masks.
      // Which is an undefined behavior in AE.
      if (!this.matteMasks) {
        this.matteMasks = {};
      }
      if (!this.matteMasks[matteType]) {
        var id = this.layerId + '_' + matteType;
        var filId;
        var fil;
        var useElement;
        var gg;
        if (matteType === 1 || matteType === 3) {
          var masker = createNS('mask');
          masker.setAttribute('id', id);
          masker.setAttribute('mask-type', matteType === 3 ? 'luminance' : 'alpha');
          useElement = createNS('use');
          useElement.setAttributeNS('http://www.w3.org/1999/xlink', 'href', '#' + this.layerId);
          masker.appendChild(useElement);
          this.globalData.defs.appendChild(masker);
          if (!featureSupport.maskType && matteType === 1) {
            masker.setAttribute('mask-type', 'luminance');
            filId = createElementID();
            fil = filtersFactory.createFilter(filId);
            this.globalData.defs.appendChild(fil);
            fil.appendChild(filtersFactory.createAlphaToLuminanceFilter());
            gg = createNS('g');
            gg.appendChild(useElement);
            masker.appendChild(gg);
            gg.setAttribute('filter', 'url(' + getLocationHref() + '#' + filId + ')');
          }
        } else if (matteType === 2) {
          var maskGroup = createNS('mask');
          maskGroup.setAttribute('id', id);
          maskGroup.setAttribute('mask-type', 'alpha');
          var maskGrouper = createNS('g');
          maskGroup.appendChild(maskGrouper);
          filId = createElementID();
          fil = filtersFactory.createFilter(filId);
          /// /
          var feCTr = createNS('feComponentTransfer');
          feCTr.setAttribute('in', 'SourceGraphic');
          fil.appendChild(feCTr);
          var feFunc = createNS('feFuncA');
          feFunc.setAttribute('type', 'table');
          feFunc.setAttribute('tableValues', '1.0 0.0');
          feCTr.appendChild(feFunc);
          /// /
          this.globalData.defs.appendChild(fil);
          var alphaRect = createNS('rect');
          alphaRect.setAttribute('width', this.comp.data.w);
          alphaRect.setAttribute('height', this.comp.data.h);
          alphaRect.setAttribute('x', '0');
          alphaRect.setAttribute('y', '0');
          alphaRect.setAttribute('fill', '#ffffff');
          alphaRect.setAttribute('opacity', '0');
          maskGrouper.setAttribute('filter', 'url(' + getLocationHref() + '#' + filId + ')');
          maskGrouper.appendChild(alphaRect);
          useElement = createNS('use');
          useElement.setAttributeNS('http://www.w3.org/1999/xlink', 'href', '#' + this.layerId);
          maskGrouper.appendChild(useElement);
          if (!featureSupport.maskType) {
            maskGroup.setAttribute('mask-type', 'luminance');
            fil.appendChild(filtersFactory.createAlphaToLuminanceFilter());
            gg = createNS('g');
            maskGrouper.appendChild(alphaRect);
            gg.appendChild(this.layerElement);
            maskGrouper.appendChild(gg);
          }
          this.globalData.defs.appendChild(maskGroup);
        }
        this.matteMasks[matteType] = id;
      }
      return this.matteMasks[matteType];
    },
    setMatte: function setMatte(id) {
      if (!this.matteElement) {
        return;
      }
      this.matteElement.setAttribute('mask', 'url(' + getLocationHref() + '#' + id + ')');
    }
  };

  /**
   * @file
   * Handles AE's layer parenting property.
   *
   */

  function HierarchyElement() {}
  HierarchyElement.prototype = {
    /**
       * @function
       * Initializes hierarchy properties
       *
       */
    initHierarchy: function initHierarchy() {
      // element's parent list
      this.hierarchy = [];
      // if element is parent of another layer _isParent will be true
      this._isParent = false;
      this.checkParenting();
    },
    /**
       * @function
       * Sets layer's hierarchy.
       * @param {array} hierarch
       * layer's parent list
       *
       */
    setHierarchy: function setHierarchy(hierarchy) {
      this.hierarchy = hierarchy;
    },
    /**
       * @function
       * Sets layer as parent.
       *
       */
    setAsParent: function setAsParent() {
      this._isParent = true;
    },
    /**
       * @function
       * Searches layer's parenting chain
       *
       */
    checkParenting: function checkParenting() {
      if (this.data.parent !== undefined) {
        this.comp.buildElementParenting(this, this.data.parent, []);
      }
    }
  };

  function RenderableDOMElement() {}
  (function () {
    var _prototype = {
      initElement: function initElement(data, globalData, comp) {
        this.initFrame();
        this.initBaseData(data, globalData, comp);
        this.initTransform(data, globalData, comp);
        this.initHierarchy();
        this.initRenderable();
        this.initRendererElement();
        this.createContainerElements();
        this.createRenderableComponents();
        this.createContent();
        this.hide();
      },
      hide: function hide() {
        // console.log('HIDE', this);
        if (!this.hidden && (!this.isInRange || this.isTransparent)) {
          var elem = this.baseElement || this.layerElement;
          elem.style.display = 'none';
          this.hidden = true;
        }
      },
      show: function show() {
        // console.log('SHOW', this);
        if (this.isInRange && !this.isTransparent) {
          if (!this.data.hd) {
            var elem = this.baseElement || this.layerElement;
            elem.style.display = 'block';
          }
          this.hidden = false;
          this._isFirstFrame = true;
        }
      },
      renderFrame: function renderFrame() {
        // If it is exported as hidden (data.hd === true) no need to render
        // If it is not visible no need to render
        if (this.data.hd || this.hidden) {
          return;
        }
        this.renderTransform();
        this.renderRenderable();
        this.renderLocalTransform();
        this.renderElement();
        this.renderInnerContent();
        if (this._isFirstFrame) {
          this._isFirstFrame = false;
        }
      },
      renderInnerContent: function renderInnerContent() {},
      prepareFrame: function prepareFrame(num) {
        this._mdf = false;
        this.prepareRenderableFrame(num);
        this.prepareProperties(num, this.isInRange);
        this.checkTransparency();
      },
      destroy: function destroy() {
        this.innerElem = null;
        this.destroyBaseElement();
      }
    };
    extendPrototype([RenderableElement, createProxyFunction(_prototype)], RenderableDOMElement);
  })();

  function IImageElement(data, globalData, comp) {
    this.assetData = globalData.getAssetData(data.refId);
    if (this.assetData && this.assetData.sid) {
      this.assetData = globalData.slotManager.getProp(this.assetData);
    }
    this.initElement(data, globalData, comp);
    this.sourceRect = {
      top: 0,
      left: 0,
      width: this.assetData.w,
      height: this.assetData.h
    };
  }
  extendPrototype([BaseElement, TransformElement, SVGBaseElement, HierarchyElement, FrameElement, RenderableDOMElement], IImageElement);
  IImageElement.prototype.createContent = function () {
    var assetPath = this.globalData.getAssetsPath(this.assetData);
    this.innerElem = createNS('image');
    this.innerElem.setAttribute('width', this.assetData.w + 'px');
    this.innerElem.setAttribute('height', this.assetData.h + 'px');
    this.innerElem.setAttribute('preserveAspectRatio', this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio);
    this.innerElem.setAttributeNS('http://www.w3.org/1999/xlink', 'href', assetPath);
    this.layerElement.appendChild(this.innerElem);
  };
  IImageElement.prototype.sourceRectAtTime = function () {
    return this.sourceRect;
  };

  function ProcessedElement(element, position) {
    this.elem = element;
    this.pos = position;
  }

  function IShapeElement() {}
  IShapeElement.prototype = {
    addShapeToModifiers: function addShapeToModifiers(data) {
      var i;
      var len = this.shapeModifiers.length;
      for (i = 0; i < len; i += 1) {
        this.shapeModifiers[i].addShape(data);
      }
    },
    isShapeInAnimatedModifiers: function isShapeInAnimatedModifiers(data) {
      var i = 0;
      var len = this.shapeModifiers.length;
      while (i < len) {
        if (this.shapeModifiers[i].isAnimatedWithShape(data)) {
          return true;
        }
      }
      return false;
    },
    renderModifiers: function renderModifiers() {
      if (!this.shapeModifiers.length) {
        return;
      }
      var i;
      var len = this.shapes.length;
      for (i = 0; i < len; i += 1) {
        this.shapes[i].sh.reset();
      }
      len = this.shapeModifiers.length;
      var shouldBreakProcess;
      for (i = len - 1; i >= 0; i -= 1) {
        shouldBreakProcess = this.shapeModifiers[i].processShapes(this._isFirstFrame);
        // workaround to fix cases where a repeater resets the shape so the following processes get called twice
        // TODO: find a better solution for this
        if (shouldBreakProcess) {
          break;
        }
      }
    },
    searchProcessedElement: function searchProcessedElement(elem) {
      var elements = this.processedElements;
      var i = 0;
      var len = elements.length;
      while (i < len) {
        if (elements[i].elem === elem) {
          return elements[i].pos;
        }
        i += 1;
      }
      return 0;
    },
    addProcessedElement: function addProcessedElement(elem, pos) {
      var elements = this.processedElements;
      var i = elements.length;
      while (i) {
        i -= 1;
        if (elements[i].elem === elem) {
          elements[i].pos = pos;
          return;
        }
      }
      elements.push(new ProcessedElement(elem, pos));
    },
    prepareFrame: function prepareFrame(num) {
      this.prepareRenderableFrame(num);
      this.prepareProperties(num, this.isInRange);
    }
  };

  var lineCapEnum = {
    1: 'butt',
    2: 'round',
    3: 'square'
  };
  var lineJoinEnum = {
    1: 'miter',
    2: 'round',
    3: 'bevel'
  };

  function SVGShapeData(transformers, level, shape) {
    this.caches = [];
    this.styles = [];
    this.transformers = transformers;
    this.lStr = '';
    this.sh = shape;
    this.lvl = level;
    // TODO find if there are some cases where _isAnimated can be false.
    // For now, since shapes add up with other shapes. They have to be calculated every time.
    // One way of finding out is checking if all styles associated to this shape depend only of this shape
    this._isAnimated = !!shape.k;
    // TODO: commenting this for now since all shapes are animated
    var i = 0;
    var len = transformers.length;
    while (i < len) {
      if (transformers[i].mProps.dynamicProperties.length) {
        this._isAnimated = true;
        break;
      }
      i += 1;
    }
  }
  SVGShapeData.prototype.setAsAnimated = function () {
    this._isAnimated = true;
  };

  function SVGStyleData(data, level) {
    this.data = data;
    this.type = data.ty;
    this.d = '';
    this.lvl = level;
    this._mdf = false;
    this.closed = data.hd === true;
    this.pElem = createNS('path');
    this.msElem = null;
  }
  SVGStyleData.prototype.reset = function () {
    this.d = '';
    this._mdf = false;
  };

  function DashProperty(elem, data, renderer, container) {
    this.elem = elem;
    this.frameId = -1;
    this.dataProps = createSizedArray(data.length);
    this.renderer = renderer;
    this.k = false;
    this.dashStr = '';
    this.dashArray = createTypedArray('float32', data.length ? data.length - 1 : 0);
    this.dashoffset = createTypedArray('float32', 1);
    this.initDynamicPropertyContainer(container);
    var i;
    var len = data.length || 0;
    var prop;
    for (i = 0; i < len; i += 1) {
      prop = PropertyFactory.getProp(elem, data[i].v, 0, 0, this);
      this.k = prop.k || this.k;
      this.dataProps[i] = {
        n: data[i].n,
        p: prop
      };
    }
    if (!this.k) {
      this.getValue(true);
    }
    this._isAnimated = this.k;
  }
  DashProperty.prototype.getValue = function (forceRender) {
    if (this.elem.globalData.frameId === this.frameId && !forceRender) {
      return;
    }
    this.frameId = this.elem.globalData.frameId;
    this.iterateDynamicProperties();
    this._mdf = this._mdf || forceRender;
    if (this._mdf) {
      var i = 0;
      var len = this.dataProps.length;
      if (this.renderer === 'svg') {
        this.dashStr = '';
      }
      for (i = 0; i < len; i += 1) {
        if (this.dataProps[i].n !== 'o') {
          if (this.renderer === 'svg') {
            this.dashStr += ' ' + this.dataProps[i].p.v;
          } else {
            this.dashArray[i] = this.dataProps[i].p.v;
          }
        } else {
          this.dashoffset[0] = this.dataProps[i].p.v;
        }
      }
    }
  };
  extendPrototype([DynamicPropertyContainer], DashProperty);

  function SVGStrokeStyleData(elem, data, styleOb) {
    this.initDynamicPropertyContainer(elem);
    this.getValue = this.iterateDynamicProperties;
    this.o = PropertyFactory.getProp(elem, data.o, 0, 0.01, this);
    this.w = PropertyFactory.getProp(elem, data.w, 0, null, this);
    this.d = new DashProperty(elem, data.d || {}, 'svg', this);
    this.c = PropertyFactory.getProp(elem, data.c, 1, 255, this);
    this.style = styleOb;
    this._isAnimated = !!this._isAnimated;
  }
  extendPrototype([DynamicPropertyContainer], SVGStrokeStyleData);

  function SVGFillStyleData(elem, data, styleOb) {
    this.initDynamicPropertyContainer(elem);
    this.getValue = this.iterateDynamicProperties;
    this.o = PropertyFactory.getProp(elem, data.o, 0, 0.01, this);
    this.c = PropertyFactory.getProp(elem, data.c, 1, 255, this);
    this.style = styleOb;
  }
  extendPrototype([DynamicPropertyContainer], SVGFillStyleData);

  function SVGNoStyleData(elem, data, styleOb) {
    this.initDynamicPropertyContainer(elem);
    this.getValue = this.iterateDynamicProperties;
    this.style = styleOb;
  }
  extendPrototype([DynamicPropertyContainer], SVGNoStyleData);

  function GradientProperty(elem, data, container) {
    this.data = data;
    this.c = createTypedArray('uint8c', data.p * 4);
    var cLength = data.k.k[0].s ? data.k.k[0].s.length - data.p * 4 : data.k.k.length - data.p * 4;
    this.o = createTypedArray('float32', cLength);
    this._cmdf = false;
    this._omdf = false;
    this._collapsable = this.checkCollapsable();
    this._hasOpacity = cLength;
    this.initDynamicPropertyContainer(container);
    this.prop = PropertyFactory.getProp(elem, data.k, 1, null, this);
    this.k = this.prop.k;
    this.getValue(true);
  }
  GradientProperty.prototype.comparePoints = function (values, points) {
    var i = 0;
    var len = this.o.length / 2;
    var diff;
    while (i < len) {
      diff = Math.abs(values[i * 4] - values[points * 4 + i * 2]);
      if (diff > 0.01) {
        return false;
      }
      i += 1;
    }
    return true;
  };
  GradientProperty.prototype.checkCollapsable = function () {
    if (this.o.length / 2 !== this.c.length / 4) {
      return false;
    }
    if (this.data.k.k[0].s) {
      var i = 0;
      var len = this.data.k.k.length;
      while (i < len) {
        if (!this.comparePoints(this.data.k.k[i].s, this.data.p)) {
          return false;
        }
        i += 1;
      }
    } else if (!this.comparePoints(this.data.k.k, this.data.p)) {
      return false;
    }
    return true;
  };
  GradientProperty.prototype.getValue = function (forceRender) {
    this.prop.getValue();
    this._mdf = false;
    this._cmdf = false;
    this._omdf = false;
    if (this.prop._mdf || forceRender) {
      var i;
      var len = this.data.p * 4;
      var mult;
      var val;
      for (i = 0; i < len; i += 1) {
        mult = i % 4 === 0 ? 100 : 255;
        val = Math.round(this.prop.v[i] * mult);
        if (this.c[i] !== val) {
          this.c[i] = val;
          this._cmdf = !forceRender;
        }
      }
      if (this.o.length) {
        len = this.prop.v.length;
        for (i = this.data.p * 4; i < len; i += 1) {
          mult = i % 2 === 0 ? 100 : 1;
          val = i % 2 === 0 ? Math.round(this.prop.v[i] * 100) : this.prop.v[i];
          if (this.o[i - this.data.p * 4] !== val) {
            this.o[i - this.data.p * 4] = val;
            this._omdf = !forceRender;
          }
        }
      }
      this._mdf = !forceRender;
    }
  };
  extendPrototype([DynamicPropertyContainer], GradientProperty);

  function SVGGradientFillStyleData(elem, data, styleOb) {
    this.initDynamicPropertyContainer(elem);
    this.getValue = this.iterateDynamicProperties;
    this.initGradientData(elem, data, styleOb);
  }
  SVGGradientFillStyleData.prototype.initGradientData = function (elem, data, styleOb) {
    this.o = PropertyFactory.getProp(elem, data.o, 0, 0.01, this);
    this.s = PropertyFactory.getProp(elem, data.s, 1, null, this);
    this.e = PropertyFactory.getProp(elem, data.e, 1, null, this);
    this.h = PropertyFactory.getProp(elem, data.h || {
      k: 0
    }, 0, 0.01, this);
    this.a = PropertyFactory.getProp(elem, data.a || {
      k: 0
    }, 0, degToRads, this);
    this.g = new GradientProperty(elem, data.g, this);
    this.style = styleOb;
    this.stops = [];
    this.setGradientData(styleOb.pElem, data);
    this.setGradientOpacity(data, styleOb);
    this._isAnimated = !!this._isAnimated;
  };
  SVGGradientFillStyleData.prototype.setGradientData = function (pathElement, data) {
    var gradientId = createElementID();
    var gfill = createNS(data.t === 1 ? 'linearGradient' : 'radialGradient');
    gfill.setAttribute('id', gradientId);
    gfill.setAttribute('spreadMethod', 'pad');
    gfill.setAttribute('gradientUnits', 'userSpaceOnUse');
    var stops = [];
    var stop;
    var j;
    var jLen;
    jLen = data.g.p * 4;
    for (j = 0; j < jLen; j += 4) {
      stop = createNS('stop');
      gfill.appendChild(stop);
      stops.push(stop);
    }
    pathElement.setAttribute(data.ty === 'gf' ? 'fill' : 'stroke', 'url(' + getLocationHref() + '#' + gradientId + ')');
    this.gf = gfill;
    this.cst = stops;
  };
  SVGGradientFillStyleData.prototype.setGradientOpacity = function (data, styleOb) {
    if (this.g._hasOpacity && !this.g._collapsable) {
      var stop;
      var j;
      var jLen;
      var mask = createNS('mask');
      var maskElement = createNS('path');
      mask.appendChild(maskElement);
      var opacityId = createElementID();
      var maskId = createElementID();
      mask.setAttribute('id', maskId);
      var opFill = createNS(data.t === 1 ? 'linearGradient' : 'radialGradient');
      opFill.setAttribute('id', opacityId);
      opFill.setAttribute('spreadMethod', 'pad');
      opFill.setAttribute('gradientUnits', 'userSpaceOnUse');
      jLen = data.g.k.k[0].s ? data.g.k.k[0].s.length : data.g.k.k.length;
      var stops = this.stops;
      for (j = data.g.p * 4; j < jLen; j += 2) {
        stop = createNS('stop');
        stop.setAttribute('stop-color', 'rgb(255,255,255)');
        opFill.appendChild(stop);
        stops.push(stop);
      }
      maskElement.setAttribute(data.ty === 'gf' ? 'fill' : 'stroke', 'url(' + getLocationHref() + '#' + opacityId + ')');
      if (data.ty === 'gs') {
        maskElement.setAttribute('stroke-linecap', lineCapEnum[data.lc || 2]);
        maskElement.setAttribute('stroke-linejoin', lineJoinEnum[data.lj || 2]);
        if (data.lj === 1) {
          maskElement.setAttribute('stroke-miterlimit', data.ml);
        }
      }
      this.of = opFill;
      this.ms = mask;
      this.ost = stops;
      this.maskId = maskId;
      styleOb.msElem = maskElement;
    }
  };
  extendPrototype([DynamicPropertyContainer], SVGGradientFillStyleData);

  function SVGGradientStrokeStyleData(elem, data, styleOb) {
    this.initDynamicPropertyContainer(elem);
    this.getValue = this.iterateDynamicProperties;
    this.w = PropertyFactory.getProp(elem, data.w, 0, null, this);
    this.d = new DashProperty(elem, data.d || {}, 'svg', this);
    this.initGradientData(elem, data, styleOb);
    this._isAnimated = !!this._isAnimated;
  }
  extendPrototype([SVGGradientFillStyleData, DynamicPropertyContainer], SVGGradientStrokeStyleData);

  function ShapeGroupData() {
    this.it = [];
    this.prevViewData = [];
    this.gr = createNS('g');
  }

  function SVGTransformData(mProps, op, container) {
    this.transform = {
      mProps: mProps,
      op: op,
      container: container
    };
    this.elements = [];
    this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length;
  }

  var buildShapeString = function buildShapeString(pathNodes, length, closed, mat) {
    if (length === 0) {
      return '';
    }
    var _o = pathNodes.o;
    var _i = pathNodes.i;
    var _v = pathNodes.v;
    var i;
    var shapeString = ' M' + mat.applyToPointStringified(_v[0][0], _v[0][1]);
    for (i = 1; i < length; i += 1) {
      shapeString += ' C' + mat.applyToPointStringified(_o[i - 1][0], _o[i - 1][1]) + ' ' + mat.applyToPointStringified(_i[i][0], _i[i][1]) + ' ' + mat.applyToPointStringified(_v[i][0], _v[i][1]);
    }
    if (closed && length) {
      shapeString += ' C' + mat.applyToPointStringified(_o[i - 1][0], _o[i - 1][1]) + ' ' + mat.applyToPointStringified(_i[0][0], _i[0][1]) + ' ' + mat.applyToPointStringified(_v[0][0], _v[0][1]);
      shapeString += 'z';
    }
    return shapeString;
  };

  var SVGElementsRenderer = function () {
    var _identityMatrix = new Matrix();
    var _matrixHelper = new Matrix();
    var ob = {
      createRenderFunction: createRenderFunction
    };
    function createRenderFunction(data) {
      switch (data.ty) {
        case 'fl':
          return renderFill;
        case 'gf':
          return renderGradient;
        case 'gs':
          return renderGradientStroke;
        case 'st':
          return renderStroke;
        case 'sh':
        case 'el':
        case 'rc':
        case 'sr':
          return renderPath;
        case 'tr':
          return renderContentTransform;
        case 'no':
          return renderNoop;
        default:
          return null;
      }
    }
    function renderContentTransform(styleData, itemData, isFirstFrame) {
      if (isFirstFrame || itemData.transform.op._mdf) {
        itemData.transform.container.setAttribute('opacity', itemData.transform.op.v);
      }
      if (isFirstFrame || itemData.transform.mProps._mdf) {
        itemData.transform.container.setAttribute('transform', itemData.transform.mProps.v.to2dCSS());
      }
    }
    function renderNoop() {}
    function renderPath(styleData, itemData, isFirstFrame) {
      var j;
      var jLen;
      var pathStringTransformed;
      var redraw;
      var pathNodes;
      var l;
      var lLen = itemData.styles.length;
      var lvl = itemData.lvl;
      var paths;
      var mat;
      var iterations;
      var k;
      for (l = 0; l < lLen; l += 1) {
        redraw = itemData.sh._mdf || isFirstFrame;
        if (itemData.styles[l].lvl < lvl) {
          mat = _matrixHelper.reset();
          iterations = lvl - itemData.styles[l].lvl;
          k = itemData.transformers.length - 1;
          while (!redraw && iterations > 0) {
            redraw = itemData.transformers[k].mProps._mdf || redraw;
            iterations -= 1;
            k -= 1;
          }
          if (redraw) {
            iterations = lvl - itemData.styles[l].lvl;
            k = itemData.transformers.length - 1;
            while (iterations > 0) {
              mat.multiply(itemData.transformers[k].mProps.v);
              iterations -= 1;
              k -= 1;
            }
          }
        } else {
          mat = _identityMatrix;
        }
        paths = itemData.sh.paths;
        jLen = paths._length;
        if (redraw) {
          pathStringTransformed = '';
          for (j = 0; j < jLen; j += 1) {
            pathNodes = paths.shapes[j];
            if (pathNodes && pathNodes._length) {
              pathStringTransformed += buildShapeString(pathNodes, pathNodes._length, pathNodes.c, mat);
            }
          }
          itemData.caches[l] = pathStringTransformed;
        } else {
          pathStringTransformed = itemData.caches[l];
        }
        itemData.styles[l].d += styleData.hd === true ? '' : pathStringTransformed;
        itemData.styles[l]._mdf = redraw || itemData.styles[l]._mdf;
      }
    }
    function renderFill(styleData, itemData, isFirstFrame) {
      var styleElem = itemData.style;
      if (itemData.c._mdf || isFirstFrame) {
        styleElem.pElem.setAttribute('fill', 'rgb(' + bmFloor(itemData.c.v[0]) + ',' + bmFloor(itemData.c.v[1]) + ',' + bmFloor(itemData.c.v[2]) + ')');
      }
      if (itemData.o._mdf || isFirstFrame) {
        styleElem.pElem.setAttribute('fill-opacity', itemData.o.v);
      }
    }
    function renderGradientStroke(styleData, itemData, isFirstFrame) {
      renderGradient(styleData, itemData, isFirstFrame);
      renderStroke(styleData, itemData, isFirstFrame);
    }
    function renderGradient(styleData, itemData, isFirstFrame) {
      var gfill = itemData.gf;
      var hasOpacity = itemData.g._hasOpacity;
      var pt1 = itemData.s.v;
      var pt2 = itemData.e.v;
      if (itemData.o._mdf || isFirstFrame) {
        var attr = styleData.ty === 'gf' ? 'fill-opacity' : 'stroke-opacity';
        itemData.style.pElem.setAttribute(attr, itemData.o.v);
      }
      if (itemData.s._mdf || isFirstFrame) {
        var attr1 = styleData.t === 1 ? 'x1' : 'cx';
        var attr2 = attr1 === 'x1' ? 'y1' : 'cy';
        gfill.setAttribute(attr1, pt1[0]);
        gfill.setAttribute(attr2, pt1[1]);
        if (hasOpacity && !itemData.g._collapsable) {
          itemData.of.setAttribute(attr1, pt1[0]);
          itemData.of.setAttribute(attr2, pt1[1]);
        }
      }
      var stops;
      var i;
      var len;
      var stop;
      if (itemData.g._cmdf || isFirstFrame) {
        stops = itemData.cst;
        var cValues = itemData.g.c;
        len = stops.length;
        for (i = 0; i < len; i += 1) {
          stop = stops[i];
          stop.setAttribute('offset', cValues[i * 4] + '%');
          stop.setAttribute('stop-color', 'rgb(' + cValues[i * 4 + 1] + ',' + cValues[i * 4 + 2] + ',' + cValues[i * 4 + 3] + ')');
        }
      }
      if (hasOpacity && (itemData.g._omdf || isFirstFrame)) {
        var oValues = itemData.g.o;
        if (itemData.g._collapsable) {
          stops = itemData.cst;
        } else {
          stops = itemData.ost;
        }
        len = stops.length;
        for (i = 0; i < len; i += 1) {
          stop = stops[i];
          if (!itemData.g._collapsable) {
            stop.setAttribute('offset', oValues[i * 2] + '%');
          }
          stop.setAttribute('stop-opacity', oValues[i * 2 + 1]);
        }
      }
      if (styleData.t === 1) {
        if (itemData.e._mdf || isFirstFrame) {
          gfill.setAttribute('x2', pt2[0]);
          gfill.setAttribute('y2', pt2[1]);
          if (hasOpacity && !itemData.g._collapsable) {
            itemData.of.setAttribute('x2', pt2[0]);
            itemData.of.setAttribute('y2', pt2[1]);
          }
        }
      } else {
        var rad;
        if (itemData.s._mdf || itemData.e._mdf || isFirstFrame) {
          rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
          gfill.setAttribute('r', rad);
          if (hasOpacity && !itemData.g._collapsable) {
            itemData.of.setAttribute('r', rad);
          }
        }
        if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
          if (!rad) {
            rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
          }
          var ang = Math.atan2(pt2[1] - pt1[1], pt2[0] - pt1[0]);
          var percent = itemData.h.v;
          if (percent >= 1) {
            percent = 0.99;
          } else if (percent <= -1) {
            percent = -0.99;
          }
          var dist = rad * percent;
          var x = Math.cos(ang + itemData.a.v) * dist + pt1[0];
          var y = Math.sin(ang + itemData.a.v) * dist + pt1[1];
          gfill.setAttribute('fx', x);
          gfill.setAttribute('fy', y);
          if (hasOpacity && !itemData.g._collapsable) {
            itemData.of.setAttribute('fx', x);
            itemData.of.setAttribute('fy', y);
          }
        }
        // gfill.setAttribute('fy','200');
      }
    }
    function renderStroke(styleData, itemData, isFirstFrame) {
      var styleElem = itemData.style;
      var d = itemData.d;
      if (d && (d._mdf || isFirstFrame) && d.dashStr) {
        styleElem.pElem.setAttribute('stroke-dasharray', d.dashStr);
        styleElem.pElem.setAttribute('stroke-dashoffset', d.dashoffset[0]);
      }
      if (itemData.c && (itemData.c._mdf || isFirstFrame)) {
        styleElem.pElem.setAttribute('stroke', 'rgb(' + bmFloor(itemData.c.v[0]) + ',' + bmFloor(itemData.c.v[1]) + ',' + bmFloor(itemData.c.v[2]) + ')');
      }
      if (itemData.o._mdf || isFirstFrame) {
        styleElem.pElem.setAttribute('stroke-opacity', itemData.o.v);
      }
      if (itemData.w._mdf || isFirstFrame) {
        styleElem.pElem.setAttribute('stroke-width', itemData.w.v);
        if (styleElem.msElem) {
          styleElem.msElem.setAttribute('stroke-width', itemData.w.v);
        }
      }
    }
    return ob;
  }();

  function SVGShapeElement(data, globalData, comp) {
    // List of drawable elements
    this.shapes = [];
    // Full shape data
    this.shapesData = data.shapes;
    // List of styles that will be applied to shapes
    this.stylesList = [];
    // List of modifiers that will be applied to shapes
    this.shapeModifiers = [];
    // List of items in shape tree
    this.itemsData = [];
    // List of items in previous shape tree
    this.processedElements = [];
    // List of animated components
    this.animatedContents = [];
    this.initElement(data, globalData, comp);
    // Moving any property that doesn't get too much access after initialization because of v8 way of handling more than 10 properties.
    // List of elements that have been created
    this.prevViewData = [];
    // Moving any property that doesn't get too much access after initialization because of v8 way of handling more than 10 properties.
  }
  extendPrototype([BaseElement, TransformElement, SVGBaseElement, IShapeElement, HierarchyElement, FrameElement, RenderableDOMElement], SVGShapeElement);
  SVGShapeElement.prototype.initSecondaryElement = function () {};
  SVGShapeElement.prototype.identityMatrix = new Matrix();
  SVGShapeElement.prototype.buildExpressionInterface = function () {};
  SVGShapeElement.prototype.createContent = function () {
    this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], true);
    this.filterUniqueShapes();
  };

  /*
  This method searches for multiple shapes that affect a single element and one of them is animated
  */
  SVGShapeElement.prototype.filterUniqueShapes = function () {
    var i;
    var len = this.shapes.length;
    var shape;
    var j;
    var jLen = this.stylesList.length;
    var style;
    var tempShapes = [];
    var areAnimated = false;
    for (j = 0; j < jLen; j += 1) {
      style = this.stylesList[j];
      areAnimated = false;
      tempShapes.length = 0;
      for (i = 0; i < len; i += 1) {
        shape = this.shapes[i];
        if (shape.styles.indexOf(style) !== -1) {
          tempShapes.push(shape);
          areAnimated = shape._isAnimated || areAnimated;
        }
      }
      if (tempShapes.length > 1 && areAnimated) {
        this.setShapesAsAnimated(tempShapes);
      }
    }
  };
  SVGShapeElement.prototype.setShapesAsAnimated = function (shapes) {
    var i;
    var len = shapes.length;
    for (i = 0; i < len; i += 1) {
      shapes[i].setAsAnimated();
    }
  };
  SVGShapeElement.prototype.createStyleElement = function (data, level) {
    // TODO: prevent drawing of hidden styles
    var elementData;
    var styleOb = new SVGStyleData(data, level);
    var pathElement = styleOb.pElem;
    if (data.ty === 'st') {
      elementData = new SVGStrokeStyleData(this, data, styleOb);
    } else if (data.ty === 'fl') {
      elementData = new SVGFillStyleData(this, data, styleOb);
    } else if (data.ty === 'gf' || data.ty === 'gs') {
      var GradientConstructor = data.ty === 'gf' ? SVGGradientFillStyleData : SVGGradientStrokeStyleData;
      elementData = new GradientConstructor(this, data, styleOb);
      this.globalData.defs.appendChild(elementData.gf);
      if (elementData.maskId) {
        this.globalData.defs.appendChild(elementData.ms);
        this.globalData.defs.appendChild(elementData.of);
        pathElement.setAttribute('mask', 'url(' + getLocationHref() + '#' + elementData.maskId + ')');
      }
    } else if (data.ty === 'no') {
      elementData = new SVGNoStyleData(this, data, styleOb);
    }
    if (data.ty === 'st' || data.ty === 'gs') {
      pathElement.setAttribute('stroke-linecap', lineCapEnum[data.lc || 2]);
      pathElement.setAttribute('stroke-linejoin', lineJoinEnum[data.lj || 2]);
      pathElement.setAttribute('fill-opacity', '0');
      if (data.lj === 1) {
        pathElement.setAttribute('stroke-miterlimit', data.ml);
      }
    }
    if (data.r === 2) {
      pathElement.setAttribute('fill-rule', 'evenodd');
    }
    if (data.ln) {
      pathElement.setAttribute('id', data.ln);
    }
    if (data.cl) {
      pathElement.setAttribute('class', data.cl);
    }
    if (data.bm) {
      pathElement.style['mix-blend-mode'] = getBlendMode(data.bm);
    }
    this.stylesList.push(styleOb);
    this.addToAnimatedContents(data, elementData);
    return elementData;
  };
  SVGShapeElement.prototype.createGroupElement = function (data) {
    var elementData = new ShapeGroupData();
    if (data.ln) {
      elementData.gr.setAttribute('id', data.ln);
    }
    if (data.cl) {
      elementData.gr.setAttribute('class', data.cl);
    }
    if (data.bm) {
      elementData.gr.style['mix-blend-mode'] = getBlendMode(data.bm);
    }
    return elementData;
  };
  SVGShapeElement.prototype.createTransformElement = function (data, container) {
    var transformProperty = TransformPropertyFactory.getTransformProperty(this, data, this);
    var elementData = new SVGTransformData(transformProperty, transformProperty.o, container);
    this.addToAnimatedContents(data, elementData);
    return elementData;
  };
  SVGShapeElement.prototype.createShapeElement = function (data, ownTransformers, level) {
    var ty = 4;
    if (data.ty === 'rc') {
      ty = 5;
    } else if (data.ty === 'el') {
      ty = 6;
    } else if (data.ty === 'sr') {
      ty = 7;
    }
    var shapeProperty = ShapePropertyFactory.getShapeProp(this, data, ty, this);
    var elementData = new SVGShapeData(ownTransformers, level, shapeProperty);
    this.shapes.push(elementData);
    this.addShapeToModifiers(elementData);
    this.addToAnimatedContents(data, elementData);
    return elementData;
  };
  SVGShapeElement.prototype.addToAnimatedContents = function (data, element) {
    var i = 0;
    var len = this.animatedContents.length;
    while (i < len) {
      if (this.animatedContents[i].element === element) {
        return;
      }
      i += 1;
    }
    this.animatedContents.push({
      fn: SVGElementsRenderer.createRenderFunction(data),
      element: element,
      data: data
    });
  };
  SVGShapeElement.prototype.setElementStyles = function (elementData) {
    var arr = elementData.styles;
    var j;
    var jLen = this.stylesList.length;
    for (j = 0; j < jLen; j += 1) {
      if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
        arr.push(this.stylesList[j]);
      }
    }
  };
  SVGShapeElement.prototype.reloadShapes = function () {
    this._isFirstFrame = true;
    var i;
    var len = this.itemsData.length;
    for (i = 0; i < len; i += 1) {
      this.prevViewData[i] = this.itemsData[i];
    }
    this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], true);
    this.filterUniqueShapes();
    len = this.dynamicProperties.length;
    for (i = 0; i < len; i += 1) {
      this.dynamicProperties[i].getValue();
    }
    this.renderModifiers();
  };
  SVGShapeElement.prototype.searchShapes = function (arr, itemsData, prevViewData, container, level, transformers, render) {
    var ownTransformers = [].concat(transformers);
    var i;
    var len = arr.length - 1;
    var j;
    var jLen;
    var ownStyles = [];
    var ownModifiers = [];
    var currentTransform;
    var modifier;
    var processedPos;
    for (i = len; i >= 0; i -= 1) {
      processedPos = this.searchProcessedElement(arr[i]);
      if (!processedPos) {
        arr[i]._render = render;
      } else {
        itemsData[i] = prevViewData[processedPos - 1];
      }
      if (arr[i].ty === 'fl' || arr[i].ty === 'st' || arr[i].ty === 'gf' || arr[i].ty === 'gs' || arr[i].ty === 'no') {
        if (!processedPos) {
          itemsData[i] = this.createStyleElement(arr[i], level);
        } else {
          itemsData[i].style.closed = arr[i].hd;
        }
        if (arr[i]._render) {
          if (itemsData[i].style.pElem.parentNode !== container) {
            container.appendChild(itemsData[i].style.pElem);
          }
        }
        ownStyles.push(itemsData[i].style);
      } else if (arr[i].ty === 'gr') {
        if (!processedPos) {
          itemsData[i] = this.createGroupElement(arr[i]);
        } else {
          jLen = itemsData[i].it.length;
          for (j = 0; j < jLen; j += 1) {
            itemsData[i].prevViewData[j] = itemsData[i].it[j];
          }
        }
        this.searchShapes(arr[i].it, itemsData[i].it, itemsData[i].prevViewData, itemsData[i].gr, level + 1, ownTransformers, render);
        if (arr[i]._render) {
          if (itemsData[i].gr.parentNode !== container) {
            container.appendChild(itemsData[i].gr);
          }
        }
      } else if (arr[i].ty === 'tr') {
        if (!processedPos) {
          itemsData[i] = this.createTransformElement(arr[i], container);
        }
        currentTransform = itemsData[i].transform;
        ownTransformers.push(currentTransform);
      } else if (arr[i].ty === 'sh' || arr[i].ty === 'rc' || arr[i].ty === 'el' || arr[i].ty === 'sr') {
        if (!processedPos) {
          itemsData[i] = this.createShapeElement(arr[i], ownTransformers, level);
        }
        this.setElementStyles(itemsData[i]);
      } else if (arr[i].ty === 'tm' || arr[i].ty === 'rd' || arr[i].ty === 'ms' || arr[i].ty === 'pb' || arr[i].ty === 'zz' || arr[i].ty === 'op') {
        if (!processedPos) {
          modifier = ShapeModifiers.getModifier(arr[i].ty);
          modifier.init(this, arr[i]);
          itemsData[i] = modifier;
          this.shapeModifiers.push(modifier);
        } else {
          modifier = itemsData[i];
          modifier.closed = false;
        }
        ownModifiers.push(modifier);
      } else if (arr[i].ty === 'rp') {
        if (!processedPos) {
          modifier = ShapeModifiers.getModifier(arr[i].ty);
          itemsData[i] = modifier;
          modifier.init(this, arr, i, itemsData);
          this.shapeModifiers.push(modifier);
          render = false;
        } else {
          modifier = itemsData[i];
          modifier.closed = true;
        }
        ownModifiers.push(modifier);
      }
      this.addProcessedElement(arr[i], i + 1);
    }
    len = ownStyles.length;
    for (i = 0; i < len; i += 1) {
      ownStyles[i].closed = true;
    }
    len = ownModifiers.length;
    for (i = 0; i < len; i += 1) {
      ownModifiers[i].closed = true;
    }
  };
  SVGShapeElement.prototype.renderInnerContent = function () {
    this.renderModifiers();
    var i;
    var len = this.stylesList.length;
    for (i = 0; i < len; i += 1) {
      this.stylesList[i].reset();
    }
    this.renderShape();
    for (i = 0; i < len; i += 1) {
      if (this.stylesList[i]._mdf || this._isFirstFrame) {
        if (this.stylesList[i].msElem) {
          this.stylesList[i].msElem.setAttribute('d', this.stylesList[i].d);
          // Adding M0 0 fixes same mask bug on all browsers
          this.stylesList[i].d = 'M0 0' + this.stylesList[i].d;
        }
        this.stylesList[i].pElem.setAttribute('d', this.stylesList[i].d || 'M0 0');
      }
    }
  };
  SVGShapeElement.prototype.renderShape = function () {
    var i;
    var len = this.animatedContents.length;
    var animatedContent;
    for (i = 0; i < len; i += 1) {
      animatedContent = this.animatedContents[i];
      if ((this._isFirstFrame || animatedContent.element._isAnimated) && animatedContent.data !== true) {
        animatedContent.fn(animatedContent.data, animatedContent.element, this._isFirstFrame);
      }
    }
  };
  SVGShapeElement.prototype.destroy = function () {
    this.destroyBaseElement();
    this.shapesData = null;
    this.itemsData = null;
  };

  function LetterProps(o, sw, sc, fc, m, p) {
    this.o = o;
    this.sw = sw;
    this.sc = sc;
    this.fc = fc;
    this.m = m;
    this.p = p;
    this._mdf = {
      o: true,
      sw: !!sw,
      sc: !!sc,
      fc: !!fc,
      m: true,
      p: true
    };
  }
  LetterProps.prototype.update = function (o, sw, sc, fc, m, p) {
    this._mdf.o = false;
    this._mdf.sw = false;
    this._mdf.sc = false;
    this._mdf.fc = false;
    this._mdf.m = false;
    this._mdf.p = false;
    var updated = false;
    if (this.o !== o) {
      this.o = o;
      this._mdf.o = true;
      updated = true;
    }
    if (this.sw !== sw) {
      this.sw = sw;
      this._mdf.sw = true;
      updated = true;
    }
    if (this.sc !== sc) {
      this.sc = sc;
      this._mdf.sc = true;
      updated = true;
    }
    if (this.fc !== fc) {
      this.fc = fc;
      this._mdf.fc = true;
      updated = true;
    }
    if (this.m !== m) {
      this.m = m;
      this._mdf.m = true;
      updated = true;
    }
    if (p.length && (this.p[0] !== p[0] || this.p[1] !== p[1] || this.p[4] !== p[4] || this.p[5] !== p[5] || this.p[12] !== p[12] || this.p[13] !== p[13])) {
      this.p = p;
      this._mdf.p = true;
      updated = true;
    }
    return updated;
  };

  function TextProperty(elem, data) {
    this._frameId = initialDefaultFrame;
    this.pv = '';
    this.v = '';
    this.kf = false;
    this._isFirstFrame = true;
    this._mdf = false;
    if (data.d && data.d.sid) {
      data.d = elem.globalData.slotManager.getProp(data.d);
    }
    this.data = data;
    this.elem = elem;
    this.comp = this.elem.comp;
    this.keysIndex = 0;
    this.canResize = false;
    this.minimumFontSize = 1;
    this.effectsSequence = [];
    this.currentData = {
      ascent: 0,
      boxWidth: this.defaultBoxWidth,
      f: '',
      fStyle: '',
      fWeight: '',
      fc: '',
      j: '',
      justifyOffset: '',
      l: [],
      lh: 0,
      lineWidths: [],
      ls: '',
      of: '',
      s: '',
      sc: '',
      sw: 0,
      t: 0,
      tr: 0,
      sz: 0,
      ps: null,
      fillColorAnim: false,
      strokeColorAnim: false,
      strokeWidthAnim: false,
      yOffset: 0,
      finalSize: 0,
      finalText: [],
      finalLineHeight: 0,
      __complete: false
    };
    this.copyData(this.currentData, this.data.d.k[0].s);
    if (!this.searchProperty()) {
      this.completeTextData(this.currentData);
    }
  }
  TextProperty.prototype.defaultBoxWidth = [0, 0];
  TextProperty.prototype.copyData = function (obj, data) {
    for (var s in data) {
      if (Object.prototype.hasOwnProperty.call(data, s)) {
        obj[s] = data[s];
      }
    }
    return obj;
  };
  TextProperty.prototype.setCurrentData = function (data) {
    if (!data.__complete) {
      this.completeTextData(data);
    }
    this.currentData = data;
    this.currentData.boxWidth = this.currentData.boxWidth || this.defaultBoxWidth;
    this._mdf = true;
  };
  TextProperty.prototype.searchProperty = function () {
    return this.searchKeyframes();
  };
  TextProperty.prototype.searchKeyframes = function () {
    this.kf = this.data.d.k.length > 1;
    if (this.kf) {
      this.addEffect(this.getKeyframeValue.bind(this));
    }
    return this.kf;
  };
  TextProperty.prototype.addEffect = function (effectFunction) {
    this.effectsSequence.push(effectFunction);
    this.elem.addDynamicProperty(this);
  };
  TextProperty.prototype.getValue = function (_finalValue) {
    if ((this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length) && !_finalValue) {
      return;
    }
    this.currentData.t = this.data.d.k[this.keysIndex].s.t;
    var currentValue = this.currentData;
    var currentIndex = this.keysIndex;
    if (this.lock) {
      this.setCurrentData(this.currentData);
      return;
    }
    this.lock = true;
    this._mdf = false;
    var i;
    var len = this.effectsSequence.length;
    var finalValue = _finalValue || this.data.d.k[this.keysIndex].s;
    for (i = 0; i < len; i += 1) {
      // Checking if index changed to prevent creating a new object every time the expression updates.
      if (currentIndex !== this.keysIndex) {
        finalValue = this.effectsSequence[i](finalValue, finalValue.t);
      } else {
        finalValue = this.effectsSequence[i](this.currentData, finalValue.t);
      }
    }
    if (currentValue !== finalValue) {
      this.setCurrentData(finalValue);
    }
    this.v = this.currentData;
    this.pv = this.v;
    this.lock = false;
    this.frameId = this.elem.globalData.frameId;
  };
  TextProperty.prototype.getKeyframeValue = function () {
    var textKeys = this.data.d.k;
    var frameNum = this.elem.comp.renderedFrame;
    var i = 0;
    var len = textKeys.length;
    while (i <= len - 1) {
      if (i === len - 1 || textKeys[i + 1].t > frameNum) {
        break;
      }
      i += 1;
    }
    if (this.keysIndex !== i) {
      this.keysIndex = i;
    }
    return this.data.d.k[this.keysIndex].s;
  };
  TextProperty.prototype.buildFinalText = function (text) {
    var charactersArray = [];
    var i = 0;
    var len = text.length;
    var charCode;
    var secondCharCode;
    var shouldCombine = false;
    var shouldCombineNext = false;
    var currentChars = '';
    while (i < len) {
      shouldCombine = shouldCombineNext;
      shouldCombineNext = false;
      charCode = text.charCodeAt(i);
      currentChars = text.charAt(i);
      if (FontManager.isCombinedCharacter(charCode)) {
        shouldCombine = true;
        // It's a potential surrogate pair (this is the High surrogate)
      } else if (charCode >= 0xD800 && charCode <= 0xDBFF) {
        if (FontManager.isRegionalFlag(text, i)) {
          currentChars = text.substr(i, 14);
        } else {
          secondCharCode = text.charCodeAt(i + 1);
          // It's a surrogate pair (this is the Low surrogate)
          if (secondCharCode >= 0xDC00 && secondCharCode <= 0xDFFF) {
            if (FontManager.isModifier(charCode, secondCharCode)) {
              currentChars = text.substr(i, 2);
              shouldCombine = true;
            } else if (FontManager.isFlagEmoji(text.substr(i, 4))) {
              currentChars = text.substr(i, 4);
            } else {
              currentChars = text.substr(i, 2);
            }
          }
        }
      } else if (charCode > 0xDBFF) {
        secondCharCode = text.charCodeAt(i + 1);
        if (FontManager.isVariationSelector(charCode)) {
          shouldCombine = true;
        }
      } else if (FontManager.isZeroWidthJoiner(charCode)) {
        shouldCombine = true;
        shouldCombineNext = true;
      }
      if (shouldCombine) {
        charactersArray[charactersArray.length - 1] += currentChars;
        shouldCombine = false;
      } else {
        charactersArray.push(currentChars);
      }
      i += currentChars.length;
    }
    return charactersArray;
  };
  TextProperty.prototype.completeTextData = function (documentData) {
    documentData.__complete = true;
    var fontManager = this.elem.globalData.fontManager;
    var data = this.data;
    var letters = [];
    var i;
    var len;
    var newLineFlag;
    var index = 0;
    var val;
    var anchorGrouping = data.m.g;
    var currentSize = 0;
    var currentPos = 0;
    var currentLine = 0;
    var lineWidths = [];
    var lineWidth = 0;
    var maxLineWidth = 0;
    var j;
    var jLen;
    var fontData = fontManager.getFontByName(documentData.f);
    var charData;
    var cLength = 0;
    var fontProps = getFontProperties(fontData);
    documentData.fWeight = fontProps.weight;
    documentData.fStyle = fontProps.style;
    documentData.finalSize = documentData.s;
    documentData.finalText = this.buildFinalText(documentData.t);
    len = documentData.finalText.length;
    documentData.finalLineHeight = documentData.lh;
    var trackingOffset = documentData.tr / 1000 * documentData.finalSize;
    var charCode;
    if (documentData.sz) {
      var flag = true;
      var boxWidth = documentData.sz[0];
      var boxHeight = documentData.sz[1];
      var currentHeight;
      var finalText;
      while (flag) {
        finalText = this.buildFinalText(documentData.t);
        currentHeight = 0;
        lineWidth = 0;
        len = finalText.length;
        trackingOffset = documentData.tr / 1000 * documentData.finalSize;
        var lastSpaceIndex = -1;
        for (i = 0; i < len; i += 1) {
          charCode = finalText[i].charCodeAt(0);
          newLineFlag = false;
          if (finalText[i] === ' ') {
            lastSpaceIndex = i;
          } else if (charCode === 13 || charCode === 3) {
            lineWidth = 0;
            newLineFlag = true;
            currentHeight += documentData.finalLineHeight || documentData.finalSize * 1.2;
          }
          if (fontManager.chars) {
            charData = fontManager.getCharData(finalText[i], fontData.fStyle, fontData.fFamily);
            cLength = newLineFlag ? 0 : charData.w * documentData.finalSize / 100;
          } else {
            // tCanvasHelper.font = documentData.s + 'px '+ fontData.fFamily;
            cLength = fontManager.measureText(finalText[i], documentData.f, documentData.finalSize);
          }
          if (lineWidth + cLength > boxWidth && finalText[i] !== ' ') {
            if (lastSpaceIndex === -1) {
              len += 1;
            } else {
              i = lastSpaceIndex;
            }
            currentHeight += documentData.finalLineHeight || documentData.finalSize * 1.2;
            finalText.splice(i, lastSpaceIndex === i ? 1 : 0, '\r');
            // finalText = finalText.substr(0,i) + "\r" + finalText.substr(i === lastSpaceIndex ? i + 1 : i);
            lastSpaceIndex = -1;
            lineWidth = 0;
          } else {
            lineWidth += cLength;
            lineWidth += trackingOffset;
          }
        }
        currentHeight += fontData.ascent * documentData.finalSize / 100;
        if (this.canResize && documentData.finalSize > this.minimumFontSize && boxHeight < currentHeight) {
          documentData.finalSize -= 1;
          documentData.finalLineHeight = documentData.finalSize * documentData.lh / documentData.s;
        } else {
          documentData.finalText = finalText;
          len = documentData.finalText.length;
          flag = false;
        }
      }
    }
    lineWidth = -trackingOffset;
    cLength = 0;
    var uncollapsedSpaces = 0;
    var currentChar;
    for (i = 0; i < len; i += 1) {
      newLineFlag = false;
      currentChar = documentData.finalText[i];
      charCode = currentChar.charCodeAt(0);
      if (charCode === 13 || charCode === 3) {
        uncollapsedSpaces = 0;
        lineWidths.push(lineWidth);
        maxLineWidth = lineWidth > maxLineWidth ? lineWidth : maxLineWidth;
        lineWidth = -2 * trackingOffset;
        val = '';
        newLineFlag = true;
        currentLine += 1;
      } else {
        val = currentChar;
      }
      if (fontManager.chars) {
        charData = fontManager.getCharData(currentChar, fontData.fStyle, fontManager.getFontByName(documentData.f).fFamily);
        cLength = newLineFlag ? 0 : charData.w * documentData.finalSize / 100;
      } else {
        // var charWidth = fontManager.measureText(val, documentData.f, documentData.finalSize);
        // tCanvasHelper.font = documentData.finalSize + 'px '+ fontManager.getFontByName(documentData.f).fFamily;
        cLength = fontManager.measureText(val, documentData.f, documentData.finalSize);
      }

      //
      if (currentChar === ' ') {
        uncollapsedSpaces += cLength + trackingOffset;
      } else {
        lineWidth += cLength + trackingOffset + uncollapsedSpaces;
        uncollapsedSpaces = 0;
      }
      letters.push({
        l: cLength,
        an: cLength,
        add: currentSize,
        n: newLineFlag,
        anIndexes: [],
        val: val,
        line: currentLine,
        animatorJustifyOffset: 0
      });
      if (anchorGrouping == 2) {
        // eslint-disable-line eqeqeq
        currentSize += cLength;
        if (val === '' || val === ' ' || i === len - 1) {
          if (val === '' || val === ' ') {
            currentSize -= cLength;
          }
          while (currentPos <= i) {
            letters[currentPos].an = currentSize;
            letters[currentPos].ind = index;
            letters[currentPos].extra = cLength;
            currentPos += 1;
          }
          index += 1;
          currentSize = 0;
        }
      } else if (anchorGrouping == 3) {
        // eslint-disable-line eqeqeq
        currentSize += cLength;
        if (val === '' || i === len - 1) {
          if (val === '') {
            currentSize -= cLength;
          }
          while (currentPos <= i) {
            letters[currentPos].an = currentSize;
            letters[currentPos].ind = index;
            letters[currentPos].extra = cLength;
            currentPos += 1;
          }
          currentSize = 0;
          index += 1;
        }
      } else {
        letters[index].ind = index;
        letters[index].extra = 0;
        index += 1;
      }
    }
    documentData.l = letters;
    maxLineWidth = lineWidth > maxLineWidth ? lineWidth : maxLineWidth;
    lineWidths.push(lineWidth);
    if (documentData.sz) {
      documentData.boxWidth = documentData.sz[0];
      documentData.justifyOffset = 0;
    } else {
      documentData.boxWidth = maxLineWidth;
      switch (documentData.j) {
        case 1:
          documentData.justifyOffset = -documentData.boxWidth;
          break;
        case 2:
          documentData.justifyOffset = -documentData.boxWidth / 2;
          break;
        default:
          documentData.justifyOffset = 0;
      }
    }
    documentData.lineWidths = lineWidths;
    var animators = data.a;
    var animatorData;
    var letterData;
    jLen = animators.length;
    var based;
    var ind;
    var indexes = [];
    for (j = 0; j < jLen; j += 1) {
      animatorData = animators[j];
      if (animatorData.a.sc) {
        documentData.strokeColorAnim = true;
      }
      if (animatorData.a.sw) {
        documentData.strokeWidthAnim = true;
      }
      if (animatorData.a.fc || animatorData.a.fh || animatorData.a.fs || animatorData.a.fb) {
        documentData.fillColorAnim = true;
      }
      ind = 0;
      based = animatorData.s.b;
      for (i = 0; i < len; i += 1) {
        letterData = letters[i];
        letterData.anIndexes[j] = ind;
        if (based == 1 && letterData.val !== '' || based == 2 && letterData.val !== '' && letterData.val !== ' ' || based == 3 && (letterData.n || letterData.val == ' ' || i == len - 1) || based == 4 && (letterData.n || i == len - 1)) {
          // eslint-disable-line eqeqeq
          if (animatorData.s.rn === 1) {
            indexes.push(ind);
          }
          ind += 1;
        }
      }
      data.a[j].s.totalChars = ind;
      var currentInd = -1;
      var newInd;
      if (animatorData.s.rn === 1) {
        for (i = 0; i < len; i += 1) {
          letterData = letters[i];
          if (currentInd != letterData.anIndexes[j]) {
            // eslint-disable-line eqeqeq
            currentInd = letterData.anIndexes[j];
            newInd = indexes.splice(Math.floor(Math.random() * indexes.length), 1)[0];
          }
          letterData.anIndexes[j] = newInd;
        }
      }
    }
    documentData.yOffset = documentData.finalLineHeight || documentData.finalSize * 1.2;
    documentData.ls = documentData.ls || 0;
    documentData.ascent = fontData.ascent * documentData.finalSize / 100;
  };
  TextProperty.prototype.updateDocumentData = function (newData, index) {
    index = index === undefined ? this.keysIndex : index;
    var dData = this.copyData({}, this.data.d.k[index].s);
    dData = this.copyData(dData, newData);
    this.data.d.k[index].s = dData;
    this.recalculate(index);
    this.setCurrentData(dData);
    this.elem.addDynamicProperty(this);
  };
  TextProperty.prototype.recalculate = function (index) {
    var dData = this.data.d.k[index].s;
    dData.__complete = false;
    this.keysIndex = 0;
    this._isFirstFrame = true;
    this.getValue(dData);
  };
  TextProperty.prototype.canResizeFont = function (_canResize) {
    this.canResize = _canResize;
    this.recalculate(this.keysIndex);
    this.elem.addDynamicProperty(this);
  };
  TextProperty.prototype.setMinimumFontSize = function (_fontValue) {
    this.minimumFontSize = Math.floor(_fontValue) || 1;
    this.recalculate(this.keysIndex);
    this.elem.addDynamicProperty(this);
  };

  var TextSelectorProp = function () {
    var max = Math.max;
    var min = Math.min;
    var floor = Math.floor;
    function TextSelectorPropFactory(elem, data) {
      this._currentTextLength = -1;
      this.k = false;
      this.data = data;
      this.elem = elem;
      this.comp = elem.comp;
      this.finalS = 0;
      this.finalE = 0;
      this.initDynamicPropertyContainer(elem);
      this.s = PropertyFactory.getProp(elem, data.s || {
        k: 0
      }, 0, 0, this);
      if ('e' in data) {
        this.e = PropertyFactory.getProp(elem, data.e, 0, 0, this);
      } else {
        this.e = {
          v: 100
        };
      }
      this.o = PropertyFactory.getProp(elem, data.o || {
        k: 0
      }, 0, 0, this);
      this.xe = PropertyFactory.getProp(elem, data.xe || {
        k: 0
      }, 0, 0, this);
      this.ne = PropertyFactory.getProp(elem, data.ne || {
        k: 0
      }, 0, 0, this);
      this.sm = PropertyFactory.getProp(elem, data.sm || {
        k: 100
      }, 0, 0, this);
      this.a = PropertyFactory.getProp(elem, data.a, 0, 0.01, this);
      if (!this.dynamicProperties.length) {
        this.getValue();
      }
    }
    TextSelectorPropFactory.prototype = {
      getMult: function getMult(ind) {
        if (this._currentTextLength !== this.elem.textProperty.currentData.l.length) {
          this.getValue();
        }
        var x1 = 0;
        var y1 = 0;
        var x2 = 1;
        var y2 = 1;
        if (this.ne.v > 0) {
          x1 = this.ne.v / 100.0;
        } else {
          y1 = -this.ne.v / 100.0;
        }
        if (this.xe.v > 0) {
          x2 = 1.0 - this.xe.v / 100.0;
        } else {
          y2 = 1.0 + this.xe.v / 100.0;
        }
        var easer = BezierFactory.getBezierEasing(x1, y1, x2, y2).get;
        var mult = 0;
        var s = this.finalS;
        var e = this.finalE;
        var type = this.data.sh;
        if (type === 2) {
          if (e === s) {
            mult = ind >= e ? 1 : 0;
          } else {
            mult = max(0, min(0.5 / (e - s) + (ind - s) / (e - s), 1));
          }
          mult = easer(mult);
        } else if (type === 3) {
          if (e === s) {
            mult = ind >= e ? 0 : 1;
          } else {
            mult = 1 - max(0, min(0.5 / (e - s) + (ind - s) / (e - s), 1));
          }
          mult = easer(mult);
        } else if (type === 4) {
          if (e === s) {
            mult = 0;
          } else {
            mult = max(0, min(0.5 / (e - s) + (ind - s) / (e - s), 1));
            if (mult < 0.5) {
              mult *= 2;
            } else {
              mult = 1 - 2 * (mult - 0.5);
            }
          }
          mult = easer(mult);
        } else if (type === 5) {
          if (e === s) {
            mult = 0;
          } else {
            var tot = e - s;
            /* ind += 0.5;
                      mult = -4/(tot*tot)*(ind*ind)+(4/tot)*ind; */
            ind = min(max(0, ind + 0.5 - s), e - s);
            var x = -tot / 2 + ind;
            var a = tot / 2;
            mult = Math.sqrt(1 - x * x / (a * a));
          }
          mult = easer(mult);
        } else if (type === 6) {
          if (e === s) {
            mult = 0;
          } else {
            ind = min(max(0, ind + 0.5 - s), e - s);
            mult = (1 + Math.cos(Math.PI + Math.PI * 2 * ind / (e - s))) / 2; // eslint-disable-line
          }
          mult = easer(mult);
        } else {
          if (ind >= floor(s)) {
            if (ind - s < 0) {
              mult = max(0, min(min(e, 1) - (s - ind), 1));
            } else {
              mult = max(0, min(e - ind, 1));
            }
          }
          mult = easer(mult);
        }
        // Smoothness implementation.
        // The smoothness represents a reduced range of the original [0; 1] range.
        // if smoothness is 25%, the new range will be [0.375; 0.625]
        // Steps are:
        // - find the lower value of the new range (threshold)
        // - if multiplier is smaller than that value, floor it to 0
        // - if it is larger,
        //     - subtract the threshold
        //     - divide it by the smoothness (this will return the range to [0; 1])
        // Note: If it doesn't work on some scenarios, consider applying it before the easer.
        if (this.sm.v !== 100) {
          var smoothness = this.sm.v * 0.01;
          if (smoothness === 0) {
            smoothness = 0.00000001;
          }
          var threshold = 0.5 - smoothness * 0.5;
          if (mult < threshold) {
            mult = 0;
          } else {
            mult = (mult - threshold) / smoothness;
            if (mult > 1) {
              mult = 1;
            }
          }
        }
        return mult * this.a.v;
      },
      getValue: function getValue(newCharsFlag) {
        this.iterateDynamicProperties();
        this._mdf = newCharsFlag || this._mdf;
        this._currentTextLength = this.elem.textProperty.currentData.l.length || 0;
        if (newCharsFlag && this.data.r === 2) {
          this.e.v = this._currentTextLength;
        }
        var divisor = this.data.r === 2 ? 1 : 100 / this.data.totalChars;
        var o = this.o.v / divisor;
        var s = this.s.v / divisor + o;
        var e = this.e.v / divisor + o;
        if (s > e) {
          var _s = s;
          s = e;
          e = _s;
        }
        this.finalS = s;
        this.finalE = e;
      }
    };
    extendPrototype([DynamicPropertyContainer], TextSelectorPropFactory);
    function getTextSelectorProp(elem, data, arr) {
      return new TextSelectorPropFactory(elem, data, arr);
    }
    return {
      getTextSelectorProp: getTextSelectorProp
    };
  }();

  function TextAnimatorDataProperty(elem, animatorProps, container) {
    var defaultData = {
      propType: false
    };
    var getProp = PropertyFactory.getProp;
    var textAnimatorAnimatables = animatorProps.a;
    this.a = {
      r: textAnimatorAnimatables.r ? getProp(elem, textAnimatorAnimatables.r, 0, degToRads, container) : defaultData,
      rx: textAnimatorAnimatables.rx ? getProp(elem, textAnimatorAnimatables.rx, 0, degToRads, container) : defaultData,
      ry: textAnimatorAnimatables.ry ? getProp(elem, textAnimatorAnimatables.ry, 0, degToRads, container) : defaultData,
      sk: textAnimatorAnimatables.sk ? getProp(elem, textAnimatorAnimatables.sk, 0, degToRads, container) : defaultData,
      sa: textAnimatorAnimatables.sa ? getProp(elem, textAnimatorAnimatables.sa, 0, degToRads, container) : defaultData,
      s: textAnimatorAnimatables.s ? getProp(elem, textAnimatorAnimatables.s, 1, 0.01, container) : defaultData,
      a: textAnimatorAnimatables.a ? getProp(elem, textAnimatorAnimatables.a, 1, 0, container) : defaultData,
      o: textAnimatorAnimatables.o ? getProp(elem, textAnimatorAnimatables.o, 0, 0.01, container) : defaultData,
      p: textAnimatorAnimatables.p ? getProp(elem, textAnimatorAnimatables.p, 1, 0, container) : defaultData,
      sw: textAnimatorAnimatables.sw ? getProp(elem, textAnimatorAnimatables.sw, 0, 0, container) : defaultData,
      sc: textAnimatorAnimatables.sc ? getProp(elem, textAnimatorAnimatables.sc, 1, 0, container) : defaultData,
      fc: textAnimatorAnimatables.fc ? getProp(elem, textAnimatorAnimatables.fc, 1, 0, container) : defaultData,
      fh: textAnimatorAnimatables.fh ? getProp(elem, textAnimatorAnimatables.fh, 0, 0, container) : defaultData,
      fs: textAnimatorAnimatables.fs ? getProp(elem, textAnimatorAnimatables.fs, 0, 0.01, container) : defaultData,
      fb: textAnimatorAnimatables.fb ? getProp(elem, textAnimatorAnimatables.fb, 0, 0.01, container) : defaultData,
      t: textAnimatorAnimatables.t ? getProp(elem, textAnimatorAnimatables.t, 0, 0, container) : defaultData
    };
    this.s = TextSelectorProp.getTextSelectorProp(elem, animatorProps.s, container);
    this.s.t = animatorProps.s.t;
  }

  function TextAnimatorProperty(textData, renderType, elem) {
    this._isFirstFrame = true;
    this._hasMaskedPath = false;
    this._frameId = -1;
    this._textData = textData;
    this._renderType = renderType;
    this._elem = elem;
    this._animatorsData = createSizedArray(this._textData.a.length);
    this._pathData = {};
    this._moreOptions = {
      alignment: {}
    };
    this.renderedLetters = [];
    this.lettersChangedFlag = false;
    this.initDynamicPropertyContainer(elem);
  }
  TextAnimatorProperty.prototype.searchProperties = function () {
    var i;
    var len = this._textData.a.length;
    var animatorProps;
    var getProp = PropertyFactory.getProp;
    for (i = 0; i < len; i += 1) {
      animatorProps = this._textData.a[i];
      this._animatorsData[i] = new TextAnimatorDataProperty(this._elem, animatorProps, this);
    }
    if (this._textData.p && 'm' in this._textData.p) {
      this._pathData = {
        a: getProp(this._elem, this._textData.p.a, 0, 0, this),
        f: getProp(this._elem, this._textData.p.f, 0, 0, this),
        l: getProp(this._elem, this._textData.p.l, 0, 0, this),
        r: getProp(this._elem, this._textData.p.r, 0, 0, this),
        p: getProp(this._elem, this._textData.p.p, 0, 0, this),
        m: this._elem.maskManager.getMaskProperty(this._textData.p.m)
      };
      this._hasMaskedPath = true;
    } else {
      this._hasMaskedPath = false;
    }
    this._moreOptions.alignment = getProp(this._elem, this._textData.m.a, 1, 0, this);
  };
  TextAnimatorProperty.prototype.getMeasures = function (documentData, lettersChangedFlag) {
    this.lettersChangedFlag = lettersChangedFlag;
    if (!this._mdf && !this._isFirstFrame && !lettersChangedFlag && (!this._hasMaskedPath || !this._pathData.m._mdf)) {
      return;
    }
    this._isFirstFrame = false;
    var alignment = this._moreOptions.alignment.v;
    var animators = this._animatorsData;
    var textData = this._textData;
    var matrixHelper = this.mHelper;
    var renderType = this._renderType;
    var renderedLettersCount = this.renderedLetters.length;
    var xPos;
    var yPos;
    var i;
    var len;
    var letters = documentData.l;
    var pathInfo;
    var currentLength;
    var currentPoint;
    var segmentLength;
    var flag;
    var pointInd;
    var segmentInd;
    var prevPoint;
    var points;
    var segments;
    var partialLength;
    var totalLength;
    var perc;
    var tanAngle;
    var mask;
    if (this._hasMaskedPath) {
      mask = this._pathData.m;
      if (!this._pathData.n || this._pathData._mdf) {
        var paths = mask.v;
        if (this._pathData.r.v) {
          paths = paths.reverse();
        }
        // TODO: release bezier data cached from previous pathInfo: this._pathData.pi
        pathInfo = {
          tLength: 0,
          segments: []
        };
        len = paths._length - 1;
        var bezierData;
        totalLength = 0;
        for (i = 0; i < len; i += 1) {
          bezierData = bez.buildBezierData(paths.v[i], paths.v[i + 1], [paths.o[i][0] - paths.v[i][0], paths.o[i][1] - paths.v[i][1]], [paths.i[i + 1][0] - paths.v[i + 1][0], paths.i[i + 1][1] - paths.v[i + 1][1]]);
          pathInfo.tLength += bezierData.segmentLength;
          pathInfo.segments.push(bezierData);
          totalLength += bezierData.segmentLength;
        }
        i = len;
        if (mask.v.c) {
          bezierData = bez.buildBezierData(paths.v[i], paths.v[0], [paths.o[i][0] - paths.v[i][0], paths.o[i][1] - paths.v[i][1]], [paths.i[0][0] - paths.v[0][0], paths.i[0][1] - paths.v[0][1]]);
          pathInfo.tLength += bezierData.segmentLength;
          pathInfo.segments.push(bezierData);
          totalLength += bezierData.segmentLength;
        }
        this._pathData.pi = pathInfo;
      }
      pathInfo = this._pathData.pi;
      currentLength = this._pathData.f.v;
      segmentInd = 0;
      pointInd = 1;
      segmentLength = 0;
      flag = true;
      segments = pathInfo.segments;
      if (currentLength < 0 && mask.v.c) {
        if (pathInfo.tLength < Math.abs(currentLength)) {
          currentLength = -Math.abs(currentLength) % pathInfo.tLength;
        }
        segmentInd = segments.length - 1;
        points = segments[segmentInd].points;
        pointInd = points.length - 1;
        while (currentLength < 0) {
          currentLength += points[pointInd].partialLength;
          pointInd -= 1;
          if (pointInd < 0) {
            segmentInd -= 1;
            points = segments[segmentInd].points;
            pointInd = points.length - 1;
          }
        }
      }
      points = segments[segmentInd].points;
      prevPoint = points[pointInd - 1];
      currentPoint = points[pointInd];
      partialLength = currentPoint.partialLength;
    }
    len = letters.length;
    xPos = 0;
    yPos = 0;
    var yOff = documentData.finalSize * 1.2 * 0.714;
    var firstLine = true;
    var animatorProps;
    var animatorSelector;
    var j;
    var jLen;
    var letterValue;
    jLen = animators.length;
    var mult;
    var ind = -1;
    var offf;
    var xPathPos;
    var yPathPos;
    var initPathPos = currentLength;
    var initSegmentInd = segmentInd;
    var initPointInd = pointInd;
    var currentLine = -1;
    var elemOpacity;
    var sc;
    var sw;
    var fc;
    var k;
    var letterSw;
    var letterSc;
    var letterFc;
    var letterM = '';
    var letterP = this.defaultPropsArray;
    var letterO;

    //
    if (documentData.j === 2 || documentData.j === 1) {
      var animatorJustifyOffset = 0;
      var animatorFirstCharOffset = 0;
      var justifyOffsetMult = documentData.j === 2 ? -0.5 : -1;
      var lastIndex = 0;
      var isNewLine = true;
      for (i = 0; i < len; i += 1) {
        if (letters[i].n) {
          if (animatorJustifyOffset) {
            animatorJustifyOffset += animatorFirstCharOffset;
          }
          while (lastIndex < i) {
            letters[lastIndex].animatorJustifyOffset = animatorJustifyOffset;
            lastIndex += 1;
          }
          animatorJustifyOffset = 0;
          isNewLine = true;
        } else {
          for (j = 0; j < jLen; j += 1) {
            animatorProps = animators[j].a;
            if (animatorProps.t.propType) {
              if (isNewLine && documentData.j === 2) {
                animatorFirstCharOffset += animatorProps.t.v * justifyOffsetMult;
              }
              animatorSelector = animators[j].s;
              mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
              if (mult.length) {
                animatorJustifyOffset += animatorProps.t.v * mult[0] * justifyOffsetMult;
              } else {
                animatorJustifyOffset += animatorProps.t.v * mult * justifyOffsetMult;
              }
            }
          }
          isNewLine = false;
        }
      }
      if (animatorJustifyOffset) {
        animatorJustifyOffset += animatorFirstCharOffset;
      }
      while (lastIndex < i) {
        letters[lastIndex].animatorJustifyOffset = animatorJustifyOffset;
        lastIndex += 1;
      }
    }
    //

    for (i = 0; i < len; i += 1) {
      matrixHelper.reset();
      elemOpacity = 1;
      if (letters[i].n) {
        xPos = 0;
        yPos += documentData.yOffset;
        yPos += firstLine ? 1 : 0;
        currentLength = initPathPos;
        firstLine = false;
        if (this._hasMaskedPath) {
          segmentInd = initSegmentInd;
          pointInd = initPointInd;
          points = segments[segmentInd].points;
          prevPoint = points[pointInd - 1];
          currentPoint = points[pointInd];
          partialLength = currentPoint.partialLength;
          segmentLength = 0;
        }
        letterM = '';
        letterFc = '';
        letterSw = '';
        letterO = '';
        letterP = this.defaultPropsArray;
      } else {
        if (this._hasMaskedPath) {
          if (currentLine !== letters[i].line) {
            switch (documentData.j) {
              case 1:
                currentLength += totalLength - documentData.lineWidths[letters[i].line];
                break;
              case 2:
                currentLength += (totalLength - documentData.lineWidths[letters[i].line]) / 2;
                break;
              default:
                break;
            }
            currentLine = letters[i].line;
          }
          if (ind !== letters[i].ind) {
            if (letters[ind]) {
              currentLength += letters[ind].extra;
            }
            currentLength += letters[i].an / 2;
            ind = letters[i].ind;
          }
          currentLength += alignment[0] * letters[i].an * 0.005;
          var animatorOffset = 0;
          for (j = 0; j < jLen; j += 1) {
            animatorProps = animators[j].a;
            if (animatorProps.p.propType) {
              animatorSelector = animators[j].s;
              mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
              if (mult.length) {
                animatorOffset += animatorProps.p.v[0] * mult[0];
              } else {
                animatorOffset += animatorProps.p.v[0] * mult;
              }
            }
            if (animatorProps.a.propType) {
              animatorSelector = animators[j].s;
              mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
              if (mult.length) {
                animatorOffset += animatorProps.a.v[0] * mult[0];
              } else {
                animatorOffset += animatorProps.a.v[0] * mult;
              }
            }
          }
          flag = true;
          // Force alignment only works with a single line for now
          if (this._pathData.a.v) {
            currentLength = letters[0].an * 0.5 + (totalLength - this._pathData.f.v - letters[0].an * 0.5 - letters[letters.length - 1].an * 0.5) * ind / (len - 1);
            currentLength += this._pathData.f.v;
          }
          while (flag) {
            if (segmentLength + partialLength >= currentLength + animatorOffset || !points) {
              perc = (currentLength + animatorOffset - segmentLength) / currentPoint.partialLength;
              xPathPos = prevPoint.point[0] + (currentPoint.point[0] - prevPoint.point[0]) * perc;
              yPathPos = prevPoint.point[1] + (currentPoint.point[1] - prevPoint.point[1]) * perc;
              matrixHelper.translate(-alignment[0] * letters[i].an * 0.005, -(alignment[1] * yOff) * 0.01);
              flag = false;
            } else if (points) {
              segmentLength += currentPoint.partialLength;
              pointInd += 1;
              if (pointInd >= points.length) {
                pointInd = 0;
                segmentInd += 1;
                if (!segments[segmentInd]) {
                  if (mask.v.c) {
                    pointInd = 0;
                    segmentInd = 0;
                    points = segments[segmentInd].points;
                  } else {
                    segmentLength -= currentPoint.partialLength;
                    points = null;
                  }
                } else {
                  points = segments[segmentInd].points;
                }
              }
              if (points) {
                prevPoint = currentPoint;
                currentPoint = points[pointInd];
                partialLength = currentPoint.partialLength;
              }
            }
          }
          offf = letters[i].an / 2 - letters[i].add;
          matrixHelper.translate(-offf, 0, 0);
        } else {
          offf = letters[i].an / 2 - letters[i].add;
          matrixHelper.translate(-offf, 0, 0);

          // Grouping alignment
          matrixHelper.translate(-alignment[0] * letters[i].an * 0.005, -alignment[1] * yOff * 0.01, 0);
        }
        for (j = 0; j < jLen; j += 1) {
          animatorProps = animators[j].a;
          if (animatorProps.t.propType) {
            animatorSelector = animators[j].s;
            mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
            // This condition is to prevent applying tracking to first character in each line. Might be better to use a boolean "isNewLine"
            if (xPos !== 0 || documentData.j !== 0) {
              if (this._hasMaskedPath) {
                if (mult.length) {
                  currentLength += animatorProps.t.v * mult[0];
                } else {
                  currentLength += animatorProps.t.v * mult;
                }
              } else if (mult.length) {
                xPos += animatorProps.t.v * mult[0];
              } else {
                xPos += animatorProps.t.v * mult;
              }
            }
          }
        }
        if (documentData.strokeWidthAnim) {
          sw = documentData.sw || 0;
        }
        if (documentData.strokeColorAnim) {
          if (documentData.sc) {
            sc = [documentData.sc[0], documentData.sc[1], documentData.sc[2]];
          } else {
            sc = [0, 0, 0];
          }
        }
        if (documentData.fillColorAnim && documentData.fc) {
          fc = [documentData.fc[0], documentData.fc[1], documentData.fc[2]];
        }
        for (j = 0; j < jLen; j += 1) {
          animatorProps = animators[j].a;
          if (animatorProps.a.propType) {
            animatorSelector = animators[j].s;
            mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
            if (mult.length) {
              matrixHelper.translate(-animatorProps.a.v[0] * mult[0], -animatorProps.a.v[1] * mult[1], animatorProps.a.v[2] * mult[2]);
            } else {
              matrixHelper.translate(-animatorProps.a.v[0] * mult, -animatorProps.a.v[1] * mult, animatorProps.a.v[2] * mult);
            }
          }
        }
        for (j = 0; j < jLen; j += 1) {
          animatorProps = animators[j].a;
          if (animatorProps.s.propType) {
            animatorSelector = animators[j].s;
            mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
            if (mult.length) {
              matrixHelper.scale(1 + (animatorProps.s.v[0] - 1) * mult[0], 1 + (animatorProps.s.v[1] - 1) * mult[1], 1);
            } else {
              matrixHelper.scale(1 + (animatorProps.s.v[0] - 1) * mult, 1 + (animatorProps.s.v[1] - 1) * mult, 1);
            }
          }
        }
        for (j = 0; j < jLen; j += 1) {
          animatorProps = animators[j].a;
          animatorSelector = animators[j].s;
          mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
          if (animatorProps.sk.propType) {
            if (mult.length) {
              matrixHelper.skewFromAxis(-animatorProps.sk.v * mult[0], animatorProps.sa.v * mult[1]);
            } else {
              matrixHelper.skewFromAxis(-animatorProps.sk.v * mult, animatorProps.sa.v * mult);
            }
          }
          if (animatorProps.r.propType) {
            if (mult.length) {
              matrixHelper.rotateZ(-animatorProps.r.v * mult[2]);
            } else {
              matrixHelper.rotateZ(-animatorProps.r.v * mult);
            }
          }
          if (animatorProps.ry.propType) {
            if (mult.length) {
              matrixHelper.rotateY(animatorProps.ry.v * mult[1]);
            } else {
              matrixHelper.rotateY(animatorProps.ry.v * mult);
            }
          }
          if (animatorProps.rx.propType) {
            if (mult.length) {
              matrixHelper.rotateX(animatorProps.rx.v * mult[0]);
            } else {
              matrixHelper.rotateX(animatorProps.rx.v * mult);
            }
          }
          if (animatorProps.o.propType) {
            if (mult.length) {
              elemOpacity += (animatorProps.o.v * mult[0] - elemOpacity) * mult[0];
            } else {
              elemOpacity += (animatorProps.o.v * mult - elemOpacity) * mult;
            }
          }
          if (documentData.strokeWidthAnim && animatorProps.sw.propType) {
            if (mult.length) {
              sw += animatorProps.sw.v * mult[0];
            } else {
              sw += animatorProps.sw.v * mult;
            }
          }
          if (documentData.strokeColorAnim && animatorProps.sc.propType) {
            for (k = 0; k < 3; k += 1) {
              if (mult.length) {
                sc[k] += (animatorProps.sc.v[k] - sc[k]) * mult[0];
              } else {
                sc[k] += (animatorProps.sc.v[k] - sc[k]) * mult;
              }
            }
          }
          if (documentData.fillColorAnim && documentData.fc) {
            if (animatorProps.fc.propType) {
              for (k = 0; k < 3; k += 1) {
                if (mult.length) {
                  fc[k] += (animatorProps.fc.v[k] - fc[k]) * mult[0];
                } else {
                  fc[k] += (animatorProps.fc.v[k] - fc[k]) * mult;
                }
              }
            }
            if (animatorProps.fh.propType) {
              if (mult.length) {
                fc = addHueToRGB(fc, animatorProps.fh.v * mult[0]);
              } else {
                fc = addHueToRGB(fc, animatorProps.fh.v * mult);
              }
            }
            if (animatorProps.fs.propType) {
              if (mult.length) {
                fc = addSaturationToRGB(fc, animatorProps.fs.v * mult[0]);
              } else {
                fc = addSaturationToRGB(fc, animatorProps.fs.v * mult);
              }
            }
            if (animatorProps.fb.propType) {
              if (mult.length) {
                fc = addBrightnessToRGB(fc, animatorProps.fb.v * mult[0]);
              } else {
                fc = addBrightnessToRGB(fc, animatorProps.fb.v * mult);
              }
            }
          }
        }
        for (j = 0; j < jLen; j += 1) {
          animatorProps = animators[j].a;
          if (animatorProps.p.propType) {
            animatorSelector = animators[j].s;
            mult = animatorSelector.getMult(letters[i].anIndexes[j], textData.a[j].s.totalChars);
            if (this._hasMaskedPath) {
              if (mult.length) {
                matrixHelper.translate(0, animatorProps.p.v[1] * mult[0], -animatorProps.p.v[2] * mult[1]);
              } else {
                matrixHelper.translate(0, animatorProps.p.v[1] * mult, -animatorProps.p.v[2] * mult);
              }
            } else if (mult.length) {
              matrixHelper.translate(animatorProps.p.v[0] * mult[0], animatorProps.p.v[1] * mult[1], -animatorProps.p.v[2] * mult[2]);
            } else {
              matrixHelper.translate(animatorProps.p.v[0] * mult, animatorProps.p.v[1] * mult, -animatorProps.p.v[2] * mult);
            }
          }
        }
        if (documentData.strokeWidthAnim) {
          letterSw = sw < 0 ? 0 : sw;
        }
        if (documentData.strokeColorAnim) {
          letterSc = 'rgb(' + Math.round(sc[0] * 255) + ',' + Math.round(sc[1] * 255) + ',' + Math.round(sc[2] * 255) + ')';
        }
        if (documentData.fillColorAnim && documentData.fc) {
          letterFc = 'rgb(' + Math.round(fc[0] * 255) + ',' + Math.round(fc[1] * 255) + ',' + Math.round(fc[2] * 255) + ')';
        }
        if (this._hasMaskedPath) {
          matrixHelper.translate(0, -documentData.ls);
          matrixHelper.translate(0, alignment[1] * yOff * 0.01 + yPos, 0);
          if (this._pathData.p.v) {
            tanAngle = (currentPoint.point[1] - prevPoint.point[1]) / (currentPoint.point[0] - prevPoint.point[0]);
            var rot = Math.atan(tanAngle) * 180 / Math.PI;
            if (currentPoint.point[0] < prevPoint.point[0]) {
              rot += 180;
            }
            matrixHelper.rotate(-rot * Math.PI / 180);
          }
          matrixHelper.translate(xPathPos, yPathPos, 0);
          currentLength -= alignment[0] * letters[i].an * 0.005;
          if (letters[i + 1] && ind !== letters[i + 1].ind) {
            currentLength += letters[i].an / 2;
            currentLength += documentData.tr * 0.001 * documentData.finalSize;
          }
        } else {
          matrixHelper.translate(xPos, yPos, 0);
          if (documentData.ps) {
            // matrixHelper.translate(documentData.ps[0],documentData.ps[1],0);
            matrixHelper.translate(documentData.ps[0], documentData.ps[1] + documentData.ascent, 0);
          }
          switch (documentData.j) {
            case 1:
              matrixHelper.translate(letters[i].animatorJustifyOffset + documentData.justifyOffset + (documentData.boxWidth - documentData.lineWidths[letters[i].line]), 0, 0);
              break;
            case 2:
              matrixHelper.translate(letters[i].animatorJustifyOffset + documentData.justifyOffset + (documentData.boxWidth - documentData.lineWidths[letters[i].line]) / 2, 0, 0);
              break;
            default:
              break;
          }
          matrixHelper.translate(0, -documentData.ls);
          matrixHelper.translate(offf, 0, 0);
          matrixHelper.translate(alignment[0] * letters[i].an * 0.005, alignment[1] * yOff * 0.01, 0);
          xPos += letters[i].l + documentData.tr * 0.001 * documentData.finalSize;
        }
        if (renderType === 'html') {
          letterM = matrixHelper.toCSS();
        } else if (renderType === 'svg') {
          letterM = matrixHelper.to2dCSS();
        } else {
          letterP = [matrixHelper.props[0], matrixHelper.props[1], matrixHelper.props[2], matrixHelper.props[3], matrixHelper.props[4], matrixHelper.props[5], matrixHelper.props[6], matrixHelper.props[7], matrixHelper.props[8], matrixHelper.props[9], matrixHelper.props[10], matrixHelper.props[11], matrixHelper.props[12], matrixHelper.props[13], matrixHelper.props[14], matrixHelper.props[15]];
        }
        letterO = elemOpacity;
      }
      if (renderedLettersCount <= i) {
        letterValue = new LetterProps(letterO, letterSw, letterSc, letterFc, letterM, letterP);
        this.renderedLetters.push(letterValue);
        renderedLettersCount += 1;
        this.lettersChangedFlag = true;
      } else {
        letterValue = this.renderedLetters[i];
        this.lettersChangedFlag = letterValue.update(letterO, letterSw, letterSc, letterFc, letterM, letterP) || this.lettersChangedFlag;
      }
    }
  };
  TextAnimatorProperty.prototype.getValue = function () {
    if (this._elem.globalData.frameId === this._frameId) {
      return;
    }
    this._frameId = this._elem.globalData.frameId;
    this.iterateDynamicProperties();
  };
  TextAnimatorProperty.prototype.mHelper = new Matrix();
  TextAnimatorProperty.prototype.defaultPropsArray = [];
  extendPrototype([DynamicPropertyContainer], TextAnimatorProperty);

  function ITextElement() {}
  ITextElement.prototype.initElement = function (data, globalData, comp) {
    this.lettersChangedFlag = true;
    this.initFrame();
    this.initBaseData(data, globalData, comp);
    this.textProperty = new TextProperty(this, data.t, this.dynamicProperties);
    this.textAnimator = new TextAnimatorProperty(data.t, this.renderType, this);
    this.initTransform(data, globalData, comp);
    this.initHierarchy();
    this.initRenderable();
    this.initRendererElement();
    this.createContainerElements();
    this.createRenderableComponents();
    this.createContent();
    this.hide();
    this.textAnimator.searchProperties(this.dynamicProperties);
  };
  ITextElement.prototype.prepareFrame = function (num) {
    this._mdf = false;
    this.prepareRenderableFrame(num);
    this.prepareProperties(num, this.isInRange);
  };
  ITextElement.prototype.createPathShape = function (matrixHelper, shapes) {
    var j;
    var jLen = shapes.length;
    var pathNodes;
    var shapeStr = '';
    for (j = 0; j < jLen; j += 1) {
      if (shapes[j].ty === 'sh') {
        pathNodes = shapes[j].ks.k;
        shapeStr += buildShapeString(pathNodes, pathNodes.i.length, true, matrixHelper);
      }
    }
    return shapeStr;
  };
  ITextElement.prototype.updateDocumentData = function (newData, index) {
    this.textProperty.updateDocumentData(newData, index);
  };
  ITextElement.prototype.canResizeFont = function (_canResize) {
    this.textProperty.canResizeFont(_canResize);
  };
  ITextElement.prototype.setMinimumFontSize = function (_fontSize) {
    this.textProperty.setMinimumFontSize(_fontSize);
  };
  ITextElement.prototype.applyTextPropertiesToMatrix = function (documentData, matrixHelper, lineNumber, xPos, yPos) {
    if (documentData.ps) {
      matrixHelper.translate(documentData.ps[0], documentData.ps[1] + documentData.ascent, 0);
    }
    matrixHelper.translate(0, -documentData.ls, 0);
    switch (documentData.j) {
      case 1:
        matrixHelper.translate(documentData.justifyOffset + (documentData.boxWidth - documentData.lineWidths[lineNumber]), 0, 0);
        break;
      case 2:
        matrixHelper.translate(documentData.justifyOffset + (documentData.boxWidth - documentData.lineWidths[lineNumber]) / 2, 0, 0);
        break;
      default:
        break;
    }
    matrixHelper.translate(xPos, yPos, 0);
  };
  ITextElement.prototype.buildColor = function (colorData) {
    return 'rgb(' + Math.round(colorData[0] * 255) + ',' + Math.round(colorData[1] * 255) + ',' + Math.round(colorData[2] * 255) + ')';
  };
  ITextElement.prototype.emptyProp = new LetterProps();
  ITextElement.prototype.destroy = function () {};
  ITextElement.prototype.validateText = function () {
    if (this.textProperty._mdf || this.textProperty._isFirstFrame) {
      this.buildNewText();
      this.textProperty._isFirstFrame = false;
      this.textProperty._mdf = false;
    }
  };

  var emptyShapeData = {
    shapes: []
  };
  function SVGTextLottieElement(data, globalData, comp) {
    this.textSpans = [];
    this.renderType = 'svg';
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, SVGBaseElement, HierarchyElement, FrameElement, RenderableDOMElement, ITextElement], SVGTextLottieElement);
  SVGTextLottieElement.prototype.createContent = function () {
    if (this.data.singleShape && !this.globalData.fontManager.chars) {
      this.textContainer = createNS('text');
    }
  };
  SVGTextLottieElement.prototype.buildTextContents = function (textArray) {
    var i = 0;
    var len = textArray.length;
    var textContents = [];
    var currentTextContent = '';
    while (i < len) {
      if (textArray[i] === String.fromCharCode(13) || textArray[i] === String.fromCharCode(3)) {
        textContents.push(currentTextContent);
        currentTextContent = '';
      } else {
        currentTextContent += textArray[i];
      }
      i += 1;
    }
    textContents.push(currentTextContent);
    return textContents;
  };
  SVGTextLottieElement.prototype.buildShapeData = function (data, scale) {
    // data should probably be cloned to apply scale separately to each instance of a text on different layers
    // but since text internal content gets only rendered once and then it's never rerendered,
    // it's probably safe not to clone data and reuse always the same instance even if the object is mutated.
    // Avoiding cloning is preferred since cloning each character shape data is expensive
    if (data.shapes && data.shapes.length) {
      var shape = data.shapes[0];
      if (shape.it) {
        var shapeItem = shape.it[shape.it.length - 1];
        if (shapeItem.s) {
          shapeItem.s.k[0] = scale;
          shapeItem.s.k[1] = scale;
        }
      }
    }
    return data;
  };
  SVGTextLottieElement.prototype.buildNewText = function () {
    this.addDynamicProperty(this);
    var i;
    var len;
    var documentData = this.textProperty.currentData;
    this.renderedLetters = createSizedArray(documentData ? documentData.l.length : 0);
    if (documentData.fc) {
      this.layerElement.setAttribute('fill', this.buildColor(documentData.fc));
    } else {
      this.layerElement.setAttribute('fill', 'rgba(0,0,0,0)');
    }
    if (documentData.sc) {
      this.layerElement.setAttribute('stroke', this.buildColor(documentData.sc));
      this.layerElement.setAttribute('stroke-width', documentData.sw);
    }
    this.layerElement.setAttribute('font-size', documentData.finalSize);
    var fontData = this.globalData.fontManager.getFontByName(documentData.f);
    if (fontData.fClass) {
      this.layerElement.setAttribute('class', fontData.fClass);
    } else {
      this.layerElement.setAttribute('font-family', fontData.fFamily);
      var fWeight = documentData.fWeight;
      var fStyle = documentData.fStyle;
      this.layerElement.setAttribute('font-style', fStyle);
      this.layerElement.setAttribute('font-weight', fWeight);
    }
    this.layerElement.setAttribute('aria-label', documentData.t);
    var letters = documentData.l || [];
    var usesGlyphs = !!this.globalData.fontManager.chars;
    len = letters.length;
    var tSpan;
    var matrixHelper = this.mHelper;
    var shapeStr = '';
    var singleShape = this.data.singleShape;
    var xPos = 0;
    var yPos = 0;
    var firstLine = true;
    var trackingOffset = documentData.tr * 0.001 * documentData.finalSize;
    if (singleShape && !usesGlyphs && !documentData.sz) {
      var tElement = this.textContainer;
      var justify = 'start';
      switch (documentData.j) {
        case 1:
          justify = 'end';
          break;
        case 2:
          justify = 'middle';
          break;
        default:
          justify = 'start';
          break;
      }
      tElement.setAttribute('text-anchor', justify);
      tElement.setAttribute('letter-spacing', trackingOffset);
      var textContent = this.buildTextContents(documentData.finalText);
      len = textContent.length;
      yPos = documentData.ps ? documentData.ps[1] + documentData.ascent : 0;
      for (i = 0; i < len; i += 1) {
        tSpan = this.textSpans[i].span || createNS('tspan');
        tSpan.textContent = textContent[i];
        tSpan.setAttribute('x', 0);
        tSpan.setAttribute('y', yPos);
        tSpan.style.display = 'inherit';
        tElement.appendChild(tSpan);
        if (!this.textSpans[i]) {
          this.textSpans[i] = {
            span: null,
            glyph: null
          };
        }
        this.textSpans[i].span = tSpan;
        yPos += documentData.finalLineHeight;
      }
      this.layerElement.appendChild(tElement);
    } else {
      var cachedSpansLength = this.textSpans.length;
      var charData;
      for (i = 0; i < len; i += 1) {
        if (!this.textSpans[i]) {
          this.textSpans[i] = {
            span: null,
            childSpan: null,
            glyph: null
          };
        }
        if (!usesGlyphs || !singleShape || i === 0) {
          tSpan = cachedSpansLength > i ? this.textSpans[i].span : createNS(usesGlyphs ? 'g' : 'text');
          if (cachedSpansLength <= i) {
            tSpan.setAttribute('stroke-linecap', 'butt');
            tSpan.setAttribute('stroke-linejoin', 'round');
            tSpan.setAttribute('stroke-miterlimit', '4');
            this.textSpans[i].span = tSpan;
            if (usesGlyphs) {
              var childSpan = createNS('g');
              tSpan.appendChild(childSpan);
              this.textSpans[i].childSpan = childSpan;
            }
            this.textSpans[i].span = tSpan;
            this.layerElement.appendChild(tSpan);
          }
          tSpan.style.display = 'inherit';
        }
        matrixHelper.reset();
        if (singleShape) {
          if (letters[i].n) {
            xPos = -trackingOffset;
            yPos += documentData.yOffset;
            yPos += firstLine ? 1 : 0;
            firstLine = false;
          }
          this.applyTextPropertiesToMatrix(documentData, matrixHelper, letters[i].line, xPos, yPos);
          xPos += letters[i].l || 0;
          // xPos += letters[i].val === ' ' ? 0 : trackingOffset;
          xPos += trackingOffset;
        }
        if (usesGlyphs) {
          charData = this.globalData.fontManager.getCharData(documentData.finalText[i], fontData.fStyle, this.globalData.fontManager.getFontByName(documentData.f).fFamily);
          var glyphElement;
          // t === 1 means the character has been replaced with an animated shaped
          if (charData.t === 1) {
            glyphElement = new SVGCompElement(charData.data, this.globalData, this);
          } else {
            var data = emptyShapeData;
            if (charData.data && charData.data.shapes) {
              data = this.buildShapeData(charData.data, documentData.finalSize);
            }
            glyphElement = new SVGShapeElement(data, this.globalData, this);
          }
          if (this.textSpans[i].glyph) {
            var glyph = this.textSpans[i].glyph;
            this.textSpans[i].childSpan.removeChild(glyph.layerElement);
            glyph.destroy();
          }
          this.textSpans[i].glyph = glyphElement;
          glyphElement._debug = true;
          glyphElement.prepareFrame(0);
          glyphElement.renderFrame();
          this.textSpans[i].childSpan.appendChild(glyphElement.layerElement);
          // when using animated shapes, the layer will be scaled instead of replacing the internal scale
          // this might have issues with strokes and might need a different solution
          if (charData.t === 1) {
            this.textSpans[i].childSpan.setAttribute('transform', 'scale(' + documentData.finalSize / 100 + ',' + documentData.finalSize / 100 + ')');
          }
        } else {
          if (singleShape) {
            tSpan.setAttribute('transform', 'translate(' + matrixHelper.props[12] + ',' + matrixHelper.props[13] + ')');
          }
          tSpan.textContent = letters[i].val;
          tSpan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
        }
        //
      }
      if (singleShape && tSpan) {
        tSpan.setAttribute('d', shapeStr);
      }
    }
    while (i < this.textSpans.length) {
      this.textSpans[i].span.style.display = 'none';
      i += 1;
    }
    this._sizeChanged = true;
  };
  SVGTextLottieElement.prototype.sourceRectAtTime = function () {
    this.prepareFrame(this.comp.renderedFrame - this.data.st);
    this.renderInnerContent();
    if (this._sizeChanged) {
      this._sizeChanged = false;
      var textBox = this.layerElement.getBBox();
      this.bbox = {
        top: textBox.y,
        left: textBox.x,
        width: textBox.width,
        height: textBox.height
      };
    }
    return this.bbox;
  };
  SVGTextLottieElement.prototype.getValue = function () {
    var i;
    var len = this.textSpans.length;
    var glyphElement;
    this.renderedFrame = this.comp.renderedFrame;
    for (i = 0; i < len; i += 1) {
      glyphElement = this.textSpans[i].glyph;
      if (glyphElement) {
        glyphElement.prepareFrame(this.comp.renderedFrame - this.data.st);
        if (glyphElement._mdf) {
          this._mdf = true;
        }
      }
    }
  };
  SVGTextLottieElement.prototype.renderInnerContent = function () {
    this.validateText();
    if (!this.data.singleShape || this._mdf) {
      this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
      if (this.lettersChangedFlag || this.textAnimator.lettersChangedFlag) {
        this._sizeChanged = true;
        var i;
        var len;
        var renderedLetters = this.textAnimator.renderedLetters;
        var letters = this.textProperty.currentData.l;
        len = letters.length;
        var renderedLetter;
        var textSpan;
        var glyphElement;
        for (i = 0; i < len; i += 1) {
          if (!letters[i].n) {
            renderedLetter = renderedLetters[i];
            textSpan = this.textSpans[i].span;
            glyphElement = this.textSpans[i].glyph;
            if (glyphElement) {
              glyphElement.renderFrame();
            }
            if (renderedLetter._mdf.m) {
              textSpan.setAttribute('transform', renderedLetter.m);
            }
            if (renderedLetter._mdf.o) {
              textSpan.setAttribute('opacity', renderedLetter.o);
            }
            if (renderedLetter._mdf.sw) {
              textSpan.setAttribute('stroke-width', renderedLetter.sw);
            }
            if (renderedLetter._mdf.sc) {
              textSpan.setAttribute('stroke', renderedLetter.sc);
            }
            if (renderedLetter._mdf.fc) {
              textSpan.setAttribute('fill', renderedLetter.fc);
            }
          }
        }
      }
    }
  };

  function ISolidElement(data, globalData, comp) {
    this.initElement(data, globalData, comp);
  }
  extendPrototype([IImageElement], ISolidElement);
  ISolidElement.prototype.createContent = function () {
    var rect = createNS('rect');
    /// /rect.style.width = this.data.sw;
    /// /rect.style.height = this.data.sh;
    /// /rect.style.fill = this.data.sc;
    rect.setAttribute('width', this.data.sw);
    rect.setAttribute('height', this.data.sh);
    rect.setAttribute('fill', this.data.sc);
    this.layerElement.appendChild(rect);
  };

  function NullElement(data, globalData, comp) {
    this.initFrame();
    this.initBaseData(data, globalData, comp);
    this.initFrame();
    this.initTransform(data, globalData, comp);
    this.initHierarchy();
  }
  NullElement.prototype.prepareFrame = function (num) {
    this.prepareProperties(num, true);
  };
  NullElement.prototype.renderFrame = function () {};
  NullElement.prototype.getBaseElement = function () {
    return null;
  };
  NullElement.prototype.destroy = function () {};
  NullElement.prototype.sourceRectAtTime = function () {};
  NullElement.prototype.hide = function () {};
  extendPrototype([BaseElement, TransformElement, HierarchyElement, FrameElement], NullElement);

  function SVGRendererBase() {}
  extendPrototype([BaseRenderer], SVGRendererBase);
  SVGRendererBase.prototype.createNull = function (data) {
    return new NullElement(data, this.globalData, this);
  };
  SVGRendererBase.prototype.createShape = function (data) {
    return new SVGShapeElement(data, this.globalData, this);
  };
  SVGRendererBase.prototype.createText = function (data) {
    return new SVGTextLottieElement(data, this.globalData, this);
  };
  SVGRendererBase.prototype.createImage = function (data) {
    return new IImageElement(data, this.globalData, this);
  };
  SVGRendererBase.prototype.createSolid = function (data) {
    return new ISolidElement(data, this.globalData, this);
  };
  SVGRendererBase.prototype.configAnimation = function (animData) {
    this.svgElement.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
    this.svgElement.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink');
    if (this.renderConfig.viewBoxSize) {
      this.svgElement.setAttribute('viewBox', this.renderConfig.viewBoxSize);
    } else {
      this.svgElement.setAttribute('viewBox', '0 0 ' + animData.w + ' ' + animData.h);
    }
    if (!this.renderConfig.viewBoxOnly) {
      this.svgElement.setAttribute('width', animData.w);
      this.svgElement.setAttribute('height', animData.h);
      this.svgElement.style.width = '100%';
      this.svgElement.style.height = '100%';
      this.svgElement.style.transform = 'translate3d(0,0,0)';
      this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility;
    }
    if (this.renderConfig.width) {
      this.svgElement.setAttribute('width', this.renderConfig.width);
    }
    if (this.renderConfig.height) {
      this.svgElement.setAttribute('height', this.renderConfig.height);
    }
    if (this.renderConfig.className) {
      this.svgElement.setAttribute('class', this.renderConfig.className);
    }
    if (this.renderConfig.id) {
      this.svgElement.setAttribute('id', this.renderConfig.id);
    }
    if (this.renderConfig.focusable !== undefined) {
      this.svgElement.setAttribute('focusable', this.renderConfig.focusable);
    }
    this.svgElement.setAttribute('preserveAspectRatio', this.renderConfig.preserveAspectRatio);
    // this.layerElement.style.transform = 'translate3d(0,0,0)';
    // this.layerElement.style.transformOrigin = this.layerElement.style.mozTransformOrigin = this.layerElement.style.webkitTransformOrigin = this.layerElement.style['-webkit-transform'] = "0px 0px 0px";
    this.animationItem.wrapper.appendChild(this.svgElement);
    // Mask animation
    var defs = this.globalData.defs;
    this.setupGlobalData(animData, defs);
    this.globalData.progressiveLoad = this.renderConfig.progressiveLoad;
    this.data = animData;
    var maskElement = createNS('clipPath');
    var rect = createNS('rect');
    rect.setAttribute('width', animData.w);
    rect.setAttribute('height', animData.h);
    rect.setAttribute('x', 0);
    rect.setAttribute('y', 0);
    var maskId = createElementID();
    maskElement.setAttribute('id', maskId);
    maskElement.appendChild(rect);
    this.layerElement.setAttribute('clip-path', 'url(' + getLocationHref() + '#' + maskId + ')');
    defs.appendChild(maskElement);
    this.layers = animData.layers;
    this.elements = createSizedArray(animData.layers.length);
  };
  SVGRendererBase.prototype.destroy = function () {
    if (this.animationItem.wrapper) {
      this.animationItem.wrapper.innerText = '';
    }
    this.layerElement = null;
    this.globalData.defs = null;
    var i;
    var len = this.layers ? this.layers.length : 0;
    for (i = 0; i < len; i += 1) {
      if (this.elements[i] && this.elements[i].destroy) {
        this.elements[i].destroy();
      }
    }
    this.elements.length = 0;
    this.destroyed = true;
    this.animationItem = null;
  };
  SVGRendererBase.prototype.updateContainerSize = function () {};
  SVGRendererBase.prototype.findIndexByInd = function (ind) {
    var i = 0;
    var len = this.layers.length;
    for (i = 0; i < len; i += 1) {
      if (this.layers[i].ind === ind) {
        return i;
      }
    }
    return -1;
  };
  SVGRendererBase.prototype.buildItem = function (pos) {
    var elements = this.elements;
    if (elements[pos] || this.layers[pos].ty === 99) {
      return;
    }
    elements[pos] = true;
    var element = this.createItem(this.layers[pos]);
    elements[pos] = element;
    if (getExpressionsPlugin()) {
      if (this.layers[pos].ty === 0) {
        this.globalData.projectInterface.registerComposition(element);
      }
      element.initExpressions();
    }
    this.appendElementInPos(element, pos);
    if (this.layers[pos].tt) {
      var elementIndex = 'tp' in this.layers[pos] ? this.findIndexByInd(this.layers[pos].tp) : pos - 1;
      if (elementIndex === -1) {
        return;
      }
      if (!this.elements[elementIndex] || this.elements[elementIndex] === true) {
        this.buildItem(elementIndex);
        this.addPendingElement(element);
      } else {
        var matteElement = elements[elementIndex];
        var matteMask = matteElement.getMatte(this.layers[pos].tt);
        element.setMatte(matteMask);
      }
    }
  };
  SVGRendererBase.prototype.checkPendingElements = function () {
    while (this.pendingElements.length) {
      var element = this.pendingElements.pop();
      element.checkParenting();
      if (element.data.tt) {
        var i = 0;
        var len = this.elements.length;
        while (i < len) {
          if (this.elements[i] === element) {
            var elementIndex = 'tp' in element.data ? this.findIndexByInd(element.data.tp) : i - 1;
            var matteElement = this.elements[elementIndex];
            var matteMask = matteElement.getMatte(this.layers[i].tt);
            element.setMatte(matteMask);
            break;
          }
          i += 1;
        }
      }
    }
  };
  SVGRendererBase.prototype.renderFrame = function (num) {
    if (this.renderedFrame === num || this.destroyed) {
      return;
    }
    if (num === null) {
      num = this.renderedFrame;
    } else {
      this.renderedFrame = num;
    }
    // console.log('-------');
    // console.log('FRAME ',num);
    this.globalData.frameNum = num;
    this.globalData.frameId += 1;
    this.globalData.projectInterface.currentFrame = num;
    this.globalData._mdf = false;
    var i;
    var len = this.layers.length;
    if (!this.completeLayers) {
      this.checkLayers(num);
    }
    for (i = len - 1; i >= 0; i -= 1) {
      if (this.completeLayers || this.elements[i]) {
        this.elements[i].prepareFrame(num - this.layers[i].st);
      }
    }
    if (this.globalData._mdf) {
      for (i = 0; i < len; i += 1) {
        if (this.completeLayers || this.elements[i]) {
          this.elements[i].renderFrame();
        }
      }
    }
  };
  SVGRendererBase.prototype.appendElementInPos = function (element, pos) {
    var newElement = element.getBaseElement();
    if (!newElement) {
      return;
    }
    var i = 0;
    var nextElement;
    while (i < pos) {
      if (this.elements[i] && this.elements[i] !== true && this.elements[i].getBaseElement()) {
        nextElement = this.elements[i].getBaseElement();
      }
      i += 1;
    }
    if (nextElement) {
      this.layerElement.insertBefore(newElement, nextElement);
    } else {
      this.layerElement.appendChild(newElement);
    }
  };
  SVGRendererBase.prototype.hide = function () {
    this.layerElement.style.display = 'none';
  };
  SVGRendererBase.prototype.show = function () {
    this.layerElement.style.display = 'block';
  };

  function ICompElement() {}
  extendPrototype([BaseElement, TransformElement, HierarchyElement, FrameElement, RenderableDOMElement], ICompElement);
  ICompElement.prototype.initElement = function (data, globalData, comp) {
    this.initFrame();
    this.initBaseData(data, globalData, comp);
    this.initTransform(data, globalData, comp);
    this.initRenderable();
    this.initHierarchy();
    this.initRendererElement();
    this.createContainerElements();
    this.createRenderableComponents();
    if (this.data.xt || !globalData.progressiveLoad) {
      this.buildAllItems();
    }
    this.hide();
  };

  /* ICompElement.prototype.hide = function(){
      if(!this.hidden){
          this.hideElement();
          var i,len = this.elements.length;
          for( i = 0; i < len; i+=1 ){
              if(this.elements[i]){
                  this.elements[i].hide();
              }
          }
      }
  }; */

  ICompElement.prototype.prepareFrame = function (num) {
    this._mdf = false;
    this.prepareRenderableFrame(num);
    this.prepareProperties(num, this.isInRange);
    if (!this.isInRange && !this.data.xt) {
      return;
    }
    if (!this.tm._placeholder) {
      var timeRemapped = this.tm.v;
      if (timeRemapped === this.data.op) {
        timeRemapped = this.data.op - 1;
      }
      this.renderedFrame = timeRemapped;
    } else {
      this.renderedFrame = num / this.data.sr;
    }
    var i;
    var len = this.elements.length;
    if (!this.completeLayers) {
      this.checkLayers(this.renderedFrame);
    }
    // This iteration needs to be backwards because of how expressions connect between each other
    for (i = len - 1; i >= 0; i -= 1) {
      if (this.completeLayers || this.elements[i]) {
        this.elements[i].prepareFrame(this.renderedFrame - this.layers[i].st);
        if (this.elements[i]._mdf) {
          this._mdf = true;
        }
      }
    }
  };
  ICompElement.prototype.renderInnerContent = function () {
    var i;
    var len = this.layers.length;
    for (i = 0; i < len; i += 1) {
      if (this.completeLayers || this.elements[i]) {
        this.elements[i].renderFrame();
      }
    }
  };
  ICompElement.prototype.setElements = function (elems) {
    this.elements = elems;
  };
  ICompElement.prototype.getElements = function () {
    return this.elements;
  };
  ICompElement.prototype.destroyElements = function () {
    var i;
    var len = this.layers.length;
    for (i = 0; i < len; i += 1) {
      if (this.elements[i]) {
        this.elements[i].destroy();
      }
    }
  };
  ICompElement.prototype.destroy = function () {
    this.destroyElements();
    this.destroyBaseElement();
  };

  function SVGCompElement(data, globalData, comp) {
    this.layers = data.layers;
    this.supports3d = true;
    this.completeLayers = false;
    this.pendingElements = [];
    this.elements = this.layers ? createSizedArray(this.layers.length) : [];
    this.initElement(data, globalData, comp);
    this.tm = data.tm ? PropertyFactory.getProp(this, data.tm, 0, globalData.frameRate, this) : {
      _placeholder: true
    };
  }
  extendPrototype([SVGRendererBase, ICompElement, SVGBaseElement], SVGCompElement);
  SVGCompElement.prototype.createComp = function (data) {
    return new SVGCompElement(data, this.globalData, this);
  };

  function SVGRenderer(animationItem, config) {
    this.animationItem = animationItem;
    this.layers = null;
    this.renderedFrame = -1;
    this.svgElement = createNS('svg');
    var ariaLabel = '';
    if (config && config.title) {
      var titleElement = createNS('title');
      var titleId = createElementID();
      titleElement.setAttribute('id', titleId);
      titleElement.textContent = config.title;
      this.svgElement.appendChild(titleElement);
      ariaLabel += titleId;
    }
    if (config && config.description) {
      var descElement = createNS('desc');
      var descId = createElementID();
      descElement.setAttribute('id', descId);
      descElement.textContent = config.description;
      this.svgElement.appendChild(descElement);
      ariaLabel += ' ' + descId;
    }
    if (ariaLabel) {
      this.svgElement.setAttribute('aria-labelledby', ariaLabel);
    }
    var defs = createNS('defs');
    this.svgElement.appendChild(defs);
    var maskElement = createNS('g');
    this.svgElement.appendChild(maskElement);
    this.layerElement = maskElement;
    this.renderConfig = {
      preserveAspectRatio: config && config.preserveAspectRatio || 'xMidYMid meet',
      imagePreserveAspectRatio: config && config.imagePreserveAspectRatio || 'xMidYMid slice',
      contentVisibility: config && config.contentVisibility || 'visible',
      progressiveLoad: config && config.progressiveLoad || false,
      hideOnTransparent: !(config && config.hideOnTransparent === false),
      viewBoxOnly: config && config.viewBoxOnly || false,
      viewBoxSize: config && config.viewBoxSize || false,
      className: config && config.className || '',
      id: config && config.id || '',
      focusable: config && config.focusable,
      filterSize: {
        width: config && config.filterSize && config.filterSize.width || '100%',
        height: config && config.filterSize && config.filterSize.height || '100%',
        x: config && config.filterSize && config.filterSize.x || '0%',
        y: config && config.filterSize && config.filterSize.y || '0%'
      },
      width: config && config.width,
      height: config && config.height,
      runExpressions: !config || config.runExpressions === undefined || config.runExpressions
    };
    this.globalData = {
      _mdf: false,
      frameNum: -1,
      defs: defs,
      renderConfig: this.renderConfig
    };
    this.elements = [];
    this.pendingElements = [];
    this.destroyed = false;
    this.rendererType = 'svg';
  }
  extendPrototype([SVGRendererBase], SVGRenderer);
  SVGRenderer.prototype.createComp = function (data) {
    return new SVGCompElement(data, this.globalData, this);
  };

  function ShapeTransformManager() {
    this.sequences = {};
    this.sequenceList = [];
    this.transform_key_count = 0;
  }
  ShapeTransformManager.prototype = {
    addTransformSequence: function addTransformSequence(transforms) {
      var i;
      var len = transforms.length;
      var key = '_';
      for (i = 0; i < len; i += 1) {
        key += transforms[i].transform.key + '_';
      }
      var sequence = this.sequences[key];
      if (!sequence) {
        sequence = {
          transforms: [].concat(transforms),
          finalTransform: new Matrix(),
          _mdf: false
        };
        this.sequences[key] = sequence;
        this.sequenceList.push(sequence);
      }
      return sequence;
    },
    processSequence: function processSequence(sequence, isFirstFrame) {
      var i = 0;
      var len = sequence.transforms.length;
      var _mdf = isFirstFrame;
      while (i < len && !isFirstFrame) {
        if (sequence.transforms[i].transform.mProps._mdf) {
          _mdf = true;
          break;
        }
        i += 1;
      }
      if (_mdf) {
        sequence.finalTransform.reset();
        for (i = len - 1; i >= 0; i -= 1) {
          sequence.finalTransform.multiply(sequence.transforms[i].transform.mProps.v);
        }
      }
      sequence._mdf = _mdf;
    },
    processSequences: function processSequences(isFirstFrame) {
      var i;
      var len = this.sequenceList.length;
      for (i = 0; i < len; i += 1) {
        this.processSequence(this.sequenceList[i], isFirstFrame);
      }
    },
    getNewKey: function getNewKey() {
      this.transform_key_count += 1;
      return '_' + this.transform_key_count;
    }
  };

  var lumaLoader = function lumaLoader() {
    var id = '__lottie_element_luma_buffer';
    var lumaBuffer = null;
    var lumaBufferCtx = null;
    var svg = null;

    // This alternate solution has a slight delay before the filter is applied, resulting in a flicker on the first frame.
    // Keeping this here for reference, and in the future, if offscreen canvas supports url filters, this can be used.
    // For now, neither of them work for offscreen canvas, so canvas workers can't support the luma track matte mask.
    // Naming it solution 2 to mark the extra comment lines.
    /*
    var svgString = [
      '<svg xmlns="http://www.w3.org/2000/svg">',
      '<filter id="' + id + '">',
      '<feColorMatrix type="matrix" color-interpolation-filters="sRGB" values="',
      '0.3, 0.3, 0.3, 0, 0, ',
      '0.3, 0.3, 0.3, 0, 0, ',
      '0.3, 0.3, 0.3, 0, 0, ',
      '0.3, 0.3, 0.3, 0, 0',
      '"/>',
      '</filter>',
      '</svg>',
    ].join('');
    var blob = new Blob([svgString], { type: 'image/svg+xml' });
    var url = URL.createObjectURL(blob);
    */

    function createLumaSvgFilter() {
      var _svg = createNS('svg');
      var fil = createNS('filter');
      var matrix = createNS('feColorMatrix');
      fil.setAttribute('id', id);
      matrix.setAttribute('type', 'matrix');
      matrix.setAttribute('color-interpolation-filters', 'sRGB');
      matrix.setAttribute('values', '0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0');
      fil.appendChild(matrix);
      _svg.appendChild(fil);
      _svg.setAttribute('id', id + '_svg');
      if (featureSupport.svgLumaHidden) {
        _svg.style.display = 'none';
      }
      return _svg;
    }
    function loadLuma() {
      if (!lumaBuffer) {
        svg = createLumaSvgFilter();
        document.body.appendChild(svg);
        lumaBuffer = createTag('canvas');
        lumaBufferCtx = lumaBuffer.getContext('2d');
        // lumaBufferCtx.filter = `url('${url}#__lottie_element_luma_buffer')`; // part of solution 2
        lumaBufferCtx.filter = 'url(#' + id + ')';
        lumaBufferCtx.fillStyle = 'rgba(0,0,0,0)';
        lumaBufferCtx.fillRect(0, 0, 1, 1);
      }
    }
    function getLuma(canvas) {
      if (!lumaBuffer) {
        loadLuma();
      }
      lumaBuffer.width = canvas.width;
      lumaBuffer.height = canvas.height;
      // lumaBufferCtx.filter = `url('${url}#__lottie_element_luma_buffer')`; // part of solution 2
      lumaBufferCtx.filter = 'url(#' + id + ')';
      return lumaBuffer;
    }
    return {
      load: loadLuma,
      get: getLuma
    };
  };
  function createCanvas(width, height) {
    if (featureSupport.offscreenCanvas) {
      return new OffscreenCanvas(width, height);
    }
    var canvas = createTag('canvas');
    canvas.width = width;
    canvas.height = height;
    return canvas;
  }
  var assetLoader = function () {
    return {
      loadLumaCanvas: lumaLoader.load,
      getLumaCanvas: lumaLoader.get,
      createCanvas: createCanvas
    };
  }();

  var registeredEffects = {};
  function CVEffects(elem) {
    var i;
    var len = elem.data.ef ? elem.data.ef.length : 0;
    this.filters = [];
    var filterManager;
    for (i = 0; i < len; i += 1) {
      filterManager = null;
      var type = elem.data.ef[i].ty;
      if (registeredEffects[type]) {
        var Effect = registeredEffects[type].effect;
        filterManager = new Effect(elem.effectsManager.effectElements[i], elem);
      }
      if (filterManager) {
        this.filters.push(filterManager);
      }
    }
    if (this.filters.length) {
      elem.addRenderableComponent(this);
    }
  }
  CVEffects.prototype.renderFrame = function (_isFirstFrame) {
    var i;
    var len = this.filters.length;
    for (i = 0; i < len; i += 1) {
      this.filters[i].renderFrame(_isFirstFrame);
    }
  };
  CVEffects.prototype.getEffects = function (type) {
    var i;
    var len = this.filters.length;
    var effects = [];
    for (i = 0; i < len; i += 1) {
      if (this.filters[i].type === type) {
        effects.push(this.filters[i]);
      }
    }
    return effects;
  };
  function registerEffect(id, effect) {
    registeredEffects[id] = {
      effect: effect
    };
  }

  function CVMaskElement(data, element) {
    this.data = data;
    this.element = element;
    this.masksProperties = this.data.masksProperties || [];
    this.viewData = createSizedArray(this.masksProperties.length);
    var i;
    var len = this.masksProperties.length;
    var hasMasks = false;
    for (i = 0; i < len; i += 1) {
      if (this.masksProperties[i].mode !== 'n') {
        hasMasks = true;
      }
      this.viewData[i] = ShapePropertyFactory.getShapeProp(this.element, this.masksProperties[i], 3);
    }
    this.hasMasks = hasMasks;
    if (hasMasks) {
      this.element.addRenderableComponent(this);
    }
  }
  CVMaskElement.prototype.renderFrame = function () {
    if (!this.hasMasks) {
      return;
    }
    var transform = this.element.finalTransform.mat;
    var ctx = this.element.canvasContext;
    var i;
    var len = this.masksProperties.length;
    var pt;
    var pts;
    var data;
    ctx.beginPath();
    for (i = 0; i < len; i += 1) {
      if (this.masksProperties[i].mode !== 'n') {
        if (this.masksProperties[i].inv) {
          ctx.moveTo(0, 0);
          ctx.lineTo(this.element.globalData.compSize.w, 0);
          ctx.lineTo(this.element.globalData.compSize.w, this.element.globalData.compSize.h);
          ctx.lineTo(0, this.element.globalData.compSize.h);
          ctx.lineTo(0, 0);
        }
        data = this.viewData[i].v;
        pt = transform.applyToPointArray(data.v[0][0], data.v[0][1], 0);
        ctx.moveTo(pt[0], pt[1]);
        var j;
        var jLen = data._length;
        for (j = 1; j < jLen; j += 1) {
          pts = transform.applyToTriplePoints(data.o[j - 1], data.i[j], data.v[j]);
          ctx.bezierCurveTo(pts[0], pts[1], pts[2], pts[3], pts[4], pts[5]);
        }
        pts = transform.applyToTriplePoints(data.o[j - 1], data.i[0], data.v[0]);
        ctx.bezierCurveTo(pts[0], pts[1], pts[2], pts[3], pts[4], pts[5]);
      }
    }
    this.element.globalData.renderer.save(true);
    ctx.clip();
  };
  CVMaskElement.prototype.getMaskProperty = MaskElement.prototype.getMaskProperty;
  CVMaskElement.prototype.destroy = function () {
    this.element = null;
  };

  function CVBaseElement() {}
  var operationsMap = {
    1: 'source-in',
    2: 'source-out',
    3: 'source-in',
    4: 'source-out'
  };
  CVBaseElement.prototype = {
    createElements: function createElements() {},
    initRendererElement: function initRendererElement() {},
    createContainerElements: function createContainerElements() {
      // If the layer is masked we will use two buffers to store each different states of the drawing
      // This solution is not ideal for several reason. But unfortunately, because of the recursive
      // nature of the render tree, it's the only simple way to make sure one inner mask doesn't override an outer mask.
      // TODO: try to reduce the size of these buffers to the size of the composition contaning the layer
      // It might be challenging because the layer most likely is transformed in some way
      if (this.data.tt >= 1) {
        this.buffers = [];
        var canvasContext = this.globalData.canvasContext;
        var bufferCanvas = assetLoader.createCanvas(canvasContext.canvas.width, canvasContext.canvas.height);
        this.buffers.push(bufferCanvas);
        var bufferCanvas2 = assetLoader.createCanvas(canvasContext.canvas.width, canvasContext.canvas.height);
        this.buffers.push(bufferCanvas2);
        if (this.data.tt >= 3 && !document._isProxy) {
          assetLoader.loadLumaCanvas();
        }
      }
      this.canvasContext = this.globalData.canvasContext;
      this.transformCanvas = this.globalData.transformCanvas;
      this.renderableEffectsManager = new CVEffects(this);
      this.searchEffectTransforms();
    },
    createContent: function createContent() {},
    setBlendMode: function setBlendMode() {
      var globalData = this.globalData;
      if (globalData.blendMode !== this.data.bm) {
        globalData.blendMode = this.data.bm;
        var blendModeValue = getBlendMode(this.data.bm);
        globalData.canvasContext.globalCompositeOperation = blendModeValue;
      }
    },
    createRenderableComponents: function createRenderableComponents() {
      this.maskManager = new CVMaskElement(this.data, this);
      this.transformEffects = this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);
    },
    hideElement: function hideElement() {
      if (!this.hidden && (!this.isInRange || this.isTransparent)) {
        this.hidden = true;
      }
    },
    showElement: function showElement() {
      if (this.isInRange && !this.isTransparent) {
        this.hidden = false;
        this._isFirstFrame = true;
        this.maskManager._isFirstFrame = true;
      }
    },
    clearCanvas: function clearCanvas(canvasContext) {
      canvasContext.clearRect(this.transformCanvas.tx, this.transformCanvas.ty, this.transformCanvas.w * this.transformCanvas.sx, this.transformCanvas.h * this.transformCanvas.sy);
    },
    prepareLayer: function prepareLayer() {
      if (this.data.tt >= 1) {
        var buffer = this.buffers[0];
        var bufferCtx = buffer.getContext('2d');
        this.clearCanvas(bufferCtx);
        // on the first buffer we store the current state of the global drawing
        bufferCtx.drawImage(this.canvasContext.canvas, 0, 0);
        // The next four lines are to clear the canvas
        // TODO: Check if there is a way to clear the canvas without resetting the transform
        this.currentTransform = this.canvasContext.getTransform();
        this.canvasContext.setTransform(1, 0, 0, 1, 0, 0);
        this.clearCanvas(this.canvasContext);
        this.canvasContext.setTransform(this.currentTransform);
      }
    },
    exitLayer: function exitLayer() {
      if (this.data.tt >= 1) {
        var buffer = this.buffers[1];
        // On the second buffer we store the current state of the global drawing
        // that only contains the content of this layer
        // (if it is a composition, it also includes the nested layers)
        var bufferCtx = buffer.getContext('2d');
        this.clearCanvas(bufferCtx);
        bufferCtx.drawImage(this.canvasContext.canvas, 0, 0);
        // We clear the canvas again
        this.canvasContext.setTransform(1, 0, 0, 1, 0, 0);
        this.clearCanvas(this.canvasContext);
        this.canvasContext.setTransform(this.currentTransform);
        // We draw the mask
        var mask = this.comp.getElementById('tp' in this.data ? this.data.tp : this.data.ind - 1);
        mask.renderFrame(true);
        // We draw the second buffer (that contains the content of this layer)
        this.canvasContext.setTransform(1, 0, 0, 1, 0, 0);

        // If the mask is a Luma matte, we need to do two extra painting operations
        // the _isProxy check is to avoid drawing a fake canvas in workers that will throw an error
        if (this.data.tt >= 3 && !document._isProxy) {
          // We copy the painted mask to a buffer that has a color matrix filter applied to it
          // that applies the rgb values to the alpha channel
          var lumaBuffer = assetLoader.getLumaCanvas(this.canvasContext.canvas);
          var lumaBufferCtx = lumaBuffer.getContext('2d');
          lumaBufferCtx.drawImage(this.canvasContext.canvas, 0, 0);
          this.clearCanvas(this.canvasContext);
          // we repaint the context with the mask applied to it
          this.canvasContext.drawImage(lumaBuffer, 0, 0);
        }
        this.canvasContext.globalCompositeOperation = operationsMap[this.data.tt];
        this.canvasContext.drawImage(buffer, 0, 0);
        // We finally draw the first buffer (that contains the content of the global drawing)
        // We use destination-over to draw the global drawing below the current layer
        this.canvasContext.globalCompositeOperation = 'destination-over';
        this.canvasContext.drawImage(this.buffers[0], 0, 0);
        this.canvasContext.setTransform(this.currentTransform);
        // We reset the globalCompositeOperation to source-over, the standard type of operation
        this.canvasContext.globalCompositeOperation = 'source-over';
      }
    },
    renderFrame: function renderFrame(forceRender) {
      if (this.hidden || this.data.hd) {
        return;
      }
      if (this.data.td === 1 && !forceRender) {
        return;
      }
      this.renderTransform();
      this.renderRenderable();
      this.renderLocalTransform();
      this.setBlendMode();
      var forceRealStack = this.data.ty === 0;
      this.prepareLayer();
      this.globalData.renderer.save(forceRealStack);
      this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props);
      this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity);
      this.renderInnerContent();
      this.globalData.renderer.restore(forceRealStack);
      this.exitLayer();
      if (this.maskManager.hasMasks) {
        this.globalData.renderer.restore(true);
      }
      if (this._isFirstFrame) {
        this._isFirstFrame = false;
      }
    },
    destroy: function destroy() {
      this.canvasContext = null;
      this.data = null;
      this.globalData = null;
      this.maskManager.destroy();
    },
    mHelper: new Matrix()
  };
  CVBaseElement.prototype.hide = CVBaseElement.prototype.hideElement;
  CVBaseElement.prototype.show = CVBaseElement.prototype.showElement;

  function CVShapeData(element, data, styles, transformsManager) {
    this.styledShapes = [];
    this.tr = [0, 0, 0, 0, 0, 0];
    var ty = 4;
    if (data.ty === 'rc') {
      ty = 5;
    } else if (data.ty === 'el') {
      ty = 6;
    } else if (data.ty === 'sr') {
      ty = 7;
    }
    this.sh = ShapePropertyFactory.getShapeProp(element, data, ty, element);
    var i;
    var len = styles.length;
    var styledShape;
    for (i = 0; i < len; i += 1) {
      if (!styles[i].closed) {
        styledShape = {
          transforms: transformsManager.addTransformSequence(styles[i].transforms),
          trNodes: []
        };
        this.styledShapes.push(styledShape);
        styles[i].elements.push(styledShape);
      }
    }
  }
  CVShapeData.prototype.setAsAnimated = SVGShapeData.prototype.setAsAnimated;

  function CVShapeElement(data, globalData, comp) {
    this.shapes = [];
    this.shapesData = data.shapes;
    this.stylesList = [];
    this.itemsData = [];
    this.prevViewData = [];
    this.shapeModifiers = [];
    this.processedElements = [];
    this.transformsManager = new ShapeTransformManager();
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, CVBaseElement, IShapeElement, HierarchyElement, FrameElement, RenderableElement], CVShapeElement);
  CVShapeElement.prototype.initElement = RenderableDOMElement.prototype.initElement;
  CVShapeElement.prototype.transformHelper = {
    opacity: 1,
    _opMdf: false
  };
  CVShapeElement.prototype.dashResetter = [];
  CVShapeElement.prototype.createContent = function () {
    this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, true, []);
  };
  CVShapeElement.prototype.createStyleElement = function (data, transforms) {
    var styleElem = {
      data: data,
      type: data.ty,
      preTransforms: this.transformsManager.addTransformSequence(transforms),
      transforms: [],
      elements: [],
      closed: data.hd === true
    };
    var elementData = {};
    if (data.ty === 'fl' || data.ty === 'st') {
      elementData.c = PropertyFactory.getProp(this, data.c, 1, 255, this);
      if (!elementData.c.k) {
        styleElem.co = 'rgb(' + bmFloor(elementData.c.v[0]) + ',' + bmFloor(elementData.c.v[1]) + ',' + bmFloor(elementData.c.v[2]) + ')';
      }
    } else if (data.ty === 'gf' || data.ty === 'gs') {
      elementData.s = PropertyFactory.getProp(this, data.s, 1, null, this);
      elementData.e = PropertyFactory.getProp(this, data.e, 1, null, this);
      elementData.h = PropertyFactory.getProp(this, data.h || {
        k: 0
      }, 0, 0.01, this);
      elementData.a = PropertyFactory.getProp(this, data.a || {
        k: 0
      }, 0, degToRads, this);
      elementData.g = new GradientProperty(this, data.g, this);
    }
    elementData.o = PropertyFactory.getProp(this, data.o, 0, 0.01, this);
    if (data.ty === 'st' || data.ty === 'gs') {
      styleElem.lc = lineCapEnum[data.lc || 2];
      styleElem.lj = lineJoinEnum[data.lj || 2];
      if (data.lj == 1) {
        // eslint-disable-line eqeqeq
        styleElem.ml = data.ml;
      }
      elementData.w = PropertyFactory.getProp(this, data.w, 0, null, this);
      if (!elementData.w.k) {
        styleElem.wi = elementData.w.v;
      }
      if (data.d) {
        var d = new DashProperty(this, data.d, 'canvas', this);
        elementData.d = d;
        if (!elementData.d.k) {
          styleElem.da = elementData.d.dashArray;
          styleElem["do"] = elementData.d.dashoffset[0];
        }
      }
    } else {
      styleElem.r = data.r === 2 ? 'evenodd' : 'nonzero';
    }
    this.stylesList.push(styleElem);
    elementData.style = styleElem;
    return elementData;
  };
  CVShapeElement.prototype.createGroupElement = function () {
    var elementData = {
      it: [],
      prevViewData: []
    };
    return elementData;
  };
  CVShapeElement.prototype.createTransformElement = function (data) {
    var elementData = {
      transform: {
        opacity: 1,
        _opMdf: false,
        key: this.transformsManager.getNewKey(),
        op: PropertyFactory.getProp(this, data.o, 0, 0.01, this),
        mProps: TransformPropertyFactory.getTransformProperty(this, data, this)
      }
    };
    return elementData;
  };
  CVShapeElement.prototype.createShapeElement = function (data) {
    var elementData = new CVShapeData(this, data, this.stylesList, this.transformsManager);
    this.shapes.push(elementData);
    this.addShapeToModifiers(elementData);
    return elementData;
  };
  CVShapeElement.prototype.reloadShapes = function () {
    this._isFirstFrame = true;
    var i;
    var len = this.itemsData.length;
    for (i = 0; i < len; i += 1) {
      this.prevViewData[i] = this.itemsData[i];
    }
    this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, true, []);
    len = this.dynamicProperties.length;
    for (i = 0; i < len; i += 1) {
      this.dynamicProperties[i].getValue();
    }
    this.renderModifiers();
    this.transformsManager.processSequences(this._isFirstFrame);
  };
  CVShapeElement.prototype.addTransformToStyleList = function (transform) {
    var i;
    var len = this.stylesList.length;
    for (i = 0; i < len; i += 1) {
      if (!this.stylesList[i].closed) {
        this.stylesList[i].transforms.push(transform);
      }
    }
  };
  CVShapeElement.prototype.removeTransformFromStyleList = function () {
    var i;
    var len = this.stylesList.length;
    for (i = 0; i < len; i += 1) {
      if (!this.stylesList[i].closed) {
        this.stylesList[i].transforms.pop();
      }
    }
  };
  CVShapeElement.prototype.closeStyles = function (styles) {
    var i;
    var len = styles.length;
    for (i = 0; i < len; i += 1) {
      styles[i].closed = true;
    }
  };
  CVShapeElement.prototype.searchShapes = function (arr, itemsData, prevViewData, shouldRender, transforms) {
    var i;
    var len = arr.length - 1;
    var j;
    var jLen;
    var ownStyles = [];
    var ownModifiers = [];
    var processedPos;
    var modifier;
    var currentTransform;
    var ownTransforms = [].concat(transforms);
    for (i = len; i >= 0; i -= 1) {
      processedPos = this.searchProcessedElement(arr[i]);
      if (!processedPos) {
        arr[i]._shouldRender = shouldRender;
      } else {
        itemsData[i] = prevViewData[processedPos - 1];
      }
      if (arr[i].ty === 'fl' || arr[i].ty === 'st' || arr[i].ty === 'gf' || arr[i].ty === 'gs') {
        if (!processedPos) {
          itemsData[i] = this.createStyleElement(arr[i], ownTransforms);
        } else {
          itemsData[i].style.closed = false;
        }
        ownStyles.push(itemsData[i].style);
      } else if (arr[i].ty === 'gr') {
        if (!processedPos) {
          itemsData[i] = this.createGroupElement(arr[i]);
        } else {
          jLen = itemsData[i].it.length;
          for (j = 0; j < jLen; j += 1) {
            itemsData[i].prevViewData[j] = itemsData[i].it[j];
          }
        }
        this.searchShapes(arr[i].it, itemsData[i].it, itemsData[i].prevViewData, shouldRender, ownTransforms);
      } else if (arr[i].ty === 'tr') {
        if (!processedPos) {
          currentTransform = this.createTransformElement(arr[i]);
          itemsData[i] = currentTransform;
        }
        ownTransforms.push(itemsData[i]);
        this.addTransformToStyleList(itemsData[i]);
      } else if (arr[i].ty === 'sh' || arr[i].ty === 'rc' || arr[i].ty === 'el' || arr[i].ty === 'sr') {
        if (!processedPos) {
          itemsData[i] = this.createShapeElement(arr[i]);
        }
      } else if (arr[i].ty === 'tm' || arr[i].ty === 'rd' || arr[i].ty === 'pb' || arr[i].ty === 'zz' || arr[i].ty === 'op') {
        if (!processedPos) {
          modifier = ShapeModifiers.getModifier(arr[i].ty);
          modifier.init(this, arr[i]);
          itemsData[i] = modifier;
          this.shapeModifiers.push(modifier);
        } else {
          modifier = itemsData[i];
          modifier.closed = false;
        }
        ownModifiers.push(modifier);
      } else if (arr[i].ty === 'rp') {
        if (!processedPos) {
          modifier = ShapeModifiers.getModifier(arr[i].ty);
          itemsData[i] = modifier;
          modifier.init(this, arr, i, itemsData);
          this.shapeModifiers.push(modifier);
          shouldRender = false;
        } else {
          modifier = itemsData[i];
          modifier.closed = true;
        }
        ownModifiers.push(modifier);
      }
      this.addProcessedElement(arr[i], i + 1);
    }
    this.removeTransformFromStyleList();
    this.closeStyles(ownStyles);
    len = ownModifiers.length;
    for (i = 0; i < len; i += 1) {
      ownModifiers[i].closed = true;
    }
  };
  CVShapeElement.prototype.renderInnerContent = function () {
    this.transformHelper.opacity = 1;
    this.transformHelper._opMdf = false;
    this.renderModifiers();
    this.transformsManager.processSequences(this._isFirstFrame);
    this.renderShape(this.transformHelper, this.shapesData, this.itemsData, true);
  };
  CVShapeElement.prototype.renderShapeTransform = function (parentTransform, groupTransform) {
    if (parentTransform._opMdf || groupTransform.op._mdf || this._isFirstFrame) {
      groupTransform.opacity = parentTransform.opacity;
      groupTransform.opacity *= groupTransform.op.v;
      groupTransform._opMdf = true;
    }
  };
  CVShapeElement.prototype.drawLayer = function () {
    var i;
    var len = this.stylesList.length;
    var j;
    var jLen;
    var k;
    var kLen;
    var elems;
    var nodes;
    var renderer = this.globalData.renderer;
    var ctx = this.globalData.canvasContext;
    var type;
    var currentStyle;
    for (i = 0; i < len; i += 1) {
      currentStyle = this.stylesList[i];
      type = currentStyle.type;

      // Skipping style when
      // Stroke width equals 0
      // style should not be rendered (extra unused repeaters)
      // current opacity equals 0
      // global opacity equals 0
      if (!((type === 'st' || type === 'gs') && currentStyle.wi === 0 || !currentStyle.data._shouldRender || currentStyle.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
        renderer.save();
        elems = currentStyle.elements;
        if (type === 'st' || type === 'gs') {
          renderer.ctxStrokeStyle(type === 'st' ? currentStyle.co : currentStyle.grd);
          // ctx.strokeStyle = type === 'st' ? currentStyle.co : currentStyle.grd;
          renderer.ctxLineWidth(currentStyle.wi);
          // ctx.lineWidth = currentStyle.wi;
          renderer.ctxLineCap(currentStyle.lc);
          // ctx.lineCap = currentStyle.lc;
          renderer.ctxLineJoin(currentStyle.lj);
          // ctx.lineJoin = currentStyle.lj;
          renderer.ctxMiterLimit(currentStyle.ml || 0);
          // ctx.miterLimit = currentStyle.ml || 0;
        } else {
          renderer.ctxFillStyle(type === 'fl' ? currentStyle.co : currentStyle.grd);
          // ctx.fillStyle = type === 'fl' ? currentStyle.co : currentStyle.grd;
        }
        renderer.ctxOpacity(currentStyle.coOp);
        if (type !== 'st' && type !== 'gs') {
          ctx.beginPath();
        }
        renderer.ctxTransform(currentStyle.preTransforms.finalTransform.props);
        jLen = elems.length;
        for (j = 0; j < jLen; j += 1) {
          if (type === 'st' || type === 'gs') {
            ctx.beginPath();
            if (currentStyle.da) {
              ctx.setLineDash(currentStyle.da);
              ctx.lineDashOffset = currentStyle["do"];
            }
          }
          nodes = elems[j].trNodes;
          kLen = nodes.length;
          for (k = 0; k < kLen; k += 1) {
            if (nodes[k].t === 'm') {
              ctx.moveTo(nodes[k].p[0], nodes[k].p[1]);
            } else if (nodes[k].t === 'c') {
              ctx.bezierCurveTo(nodes[k].pts[0], nodes[k].pts[1], nodes[k].pts[2], nodes[k].pts[3], nodes[k].pts[4], nodes[k].pts[5]);
            } else {
              ctx.closePath();
            }
          }
          if (type === 'st' || type === 'gs') {
            // ctx.stroke();
            renderer.ctxStroke();
            if (currentStyle.da) {
              ctx.setLineDash(this.dashResetter);
            }
          }
        }
        if (type !== 'st' && type !== 'gs') {
          // ctx.fill(currentStyle.r);
          this.globalData.renderer.ctxFill(currentStyle.r);
        }
        renderer.restore();
      }
    }
  };
  CVShapeElement.prototype.renderShape = function (parentTransform, items, data, isMain) {
    var i;
    var len = items.length - 1;
    var groupTransform;
    groupTransform = parentTransform;
    for (i = len; i >= 0; i -= 1) {
      if (items[i].ty === 'tr') {
        groupTransform = data[i].transform;
        this.renderShapeTransform(parentTransform, groupTransform);
      } else if (items[i].ty === 'sh' || items[i].ty === 'el' || items[i].ty === 'rc' || items[i].ty === 'sr') {
        this.renderPath(items[i], data[i]);
      } else if (items[i].ty === 'fl') {
        this.renderFill(items[i], data[i], groupTransform);
      } else if (items[i].ty === 'st') {
        this.renderStroke(items[i], data[i], groupTransform);
      } else if (items[i].ty === 'gf' || items[i].ty === 'gs') {
        this.renderGradientFill(items[i], data[i], groupTransform);
      } else if (items[i].ty === 'gr') {
        this.renderShape(groupTransform, items[i].it, data[i].it);
      } else if (items[i].ty === 'tm') {
        //
      }
    }
    if (isMain) {
      this.drawLayer();
    }
  };
  CVShapeElement.prototype.renderStyledShape = function (styledShape, shape) {
    if (this._isFirstFrame || shape._mdf || styledShape.transforms._mdf) {
      var shapeNodes = styledShape.trNodes;
      var paths = shape.paths;
      var i;
      var len;
      var j;
      var jLen = paths._length;
      shapeNodes.length = 0;
      var groupTransformMat = styledShape.transforms.finalTransform;
      for (j = 0; j < jLen; j += 1) {
        var pathNodes = paths.shapes[j];
        if (pathNodes && pathNodes.v) {
          len = pathNodes._length;
          for (i = 1; i < len; i += 1) {
            if (i === 1) {
              shapeNodes.push({
                t: 'm',
                p: groupTransformMat.applyToPointArray(pathNodes.v[0][0], pathNodes.v[0][1], 0)
              });
            }
            shapeNodes.push({
              t: 'c',
              pts: groupTransformMat.applyToTriplePoints(pathNodes.o[i - 1], pathNodes.i[i], pathNodes.v[i])
            });
          }
          if (len === 1) {
            shapeNodes.push({
              t: 'm',
              p: groupTransformMat.applyToPointArray(pathNodes.v[0][0], pathNodes.v[0][1], 0)
            });
          }
          if (pathNodes.c && len) {
            shapeNodes.push({
              t: 'c',
              pts: groupTransformMat.applyToTriplePoints(pathNodes.o[i - 1], pathNodes.i[0], pathNodes.v[0])
            });
            shapeNodes.push({
              t: 'z'
            });
          }
        }
      }
      styledShape.trNodes = shapeNodes;
    }
  };
  CVShapeElement.prototype.renderPath = function (pathData, itemData) {
    if (pathData.hd !== true && pathData._shouldRender) {
      var i;
      var len = itemData.styledShapes.length;
      for (i = 0; i < len; i += 1) {
        this.renderStyledShape(itemData.styledShapes[i], itemData.sh);
      }
    }
  };
  CVShapeElement.prototype.renderFill = function (styleData, itemData, groupTransform) {
    var styleElem = itemData.style;
    if (itemData.c._mdf || this._isFirstFrame) {
      styleElem.co = 'rgb(' + bmFloor(itemData.c.v[0]) + ',' + bmFloor(itemData.c.v[1]) + ',' + bmFloor(itemData.c.v[2]) + ')';
    }
    if (itemData.o._mdf || groupTransform._opMdf || this._isFirstFrame) {
      styleElem.coOp = itemData.o.v * groupTransform.opacity;
    }
  };
  CVShapeElement.prototype.renderGradientFill = function (styleData, itemData, groupTransform) {
    var styleElem = itemData.style;
    var grd;
    if (!styleElem.grd || itemData.g._mdf || itemData.s._mdf || itemData.e._mdf || styleData.t !== 1 && (itemData.h._mdf || itemData.a._mdf)) {
      var ctx = this.globalData.canvasContext;
      var pt1 = itemData.s.v;
      var pt2 = itemData.e.v;
      if (styleData.t === 1) {
        grd = ctx.createLinearGradient(pt1[0], pt1[1], pt2[0], pt2[1]);
      } else {
        var rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
        var ang = Math.atan2(pt2[1] - pt1[1], pt2[0] - pt1[0]);
        var percent = itemData.h.v;
        if (percent >= 1) {
          percent = 0.99;
        } else if (percent <= -1) {
          percent = -0.99;
        }
        var dist = rad * percent;
        var x = Math.cos(ang + itemData.a.v) * dist + pt1[0];
        var y = Math.sin(ang + itemData.a.v) * dist + pt1[1];
        grd = ctx.createRadialGradient(x, y, 0, pt1[0], pt1[1], rad);
      }
      var i;
      var len = styleData.g.p;
      var cValues = itemData.g.c;
      var opacity = 1;
      for (i = 0; i < len; i += 1) {
        if (itemData.g._hasOpacity && itemData.g._collapsable) {
          opacity = itemData.g.o[i * 2 + 1];
        }
        grd.addColorStop(cValues[i * 4] / 100, 'rgba(' + cValues[i * 4 + 1] + ',' + cValues[i * 4 + 2] + ',' + cValues[i * 4 + 3] + ',' + opacity + ')');
      }
      styleElem.grd = grd;
    }
    styleElem.coOp = itemData.o.v * groupTransform.opacity;
  };
  CVShapeElement.prototype.renderStroke = function (styleData, itemData, groupTransform) {
    var styleElem = itemData.style;
    var d = itemData.d;
    if (d && (d._mdf || this._isFirstFrame)) {
      styleElem.da = d.dashArray;
      styleElem["do"] = d.dashoffset[0];
    }
    if (itemData.c._mdf || this._isFirstFrame) {
      styleElem.co = 'rgb(' + bmFloor(itemData.c.v[0]) + ',' + bmFloor(itemData.c.v[1]) + ',' + bmFloor(itemData.c.v[2]) + ')';
    }
    if (itemData.o._mdf || groupTransform._opMdf || this._isFirstFrame) {
      styleElem.coOp = itemData.o.v * groupTransform.opacity;
    }
    if (itemData.w._mdf || this._isFirstFrame) {
      styleElem.wi = itemData.w.v;
    }
  };
  CVShapeElement.prototype.destroy = function () {
    this.shapesData = null;
    this.globalData = null;
    this.canvasContext = null;
    this.stylesList.length = 0;
    this.itemsData.length = 0;
  };

  function CVTextElement(data, globalData, comp) {
    this.textSpans = [];
    this.yOffset = 0;
    this.fillColorAnim = false;
    this.strokeColorAnim = false;
    this.strokeWidthAnim = false;
    this.stroke = false;
    this.fill = false;
    this.justifyOffset = 0;
    this.currentRender = null;
    this.renderType = 'canvas';
    this.values = {
      fill: 'rgba(0,0,0,0)',
      stroke: 'rgba(0,0,0,0)',
      sWidth: 0,
      fValue: ''
    };
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, CVBaseElement, HierarchyElement, FrameElement, RenderableElement, ITextElement], CVTextElement);
  CVTextElement.prototype.tHelper = createTag('canvas').getContext('2d');
  CVTextElement.prototype.buildNewText = function () {
    var documentData = this.textProperty.currentData;
    this.renderedLetters = createSizedArray(documentData.l ? documentData.l.length : 0);
    var hasFill = false;
    if (documentData.fc) {
      hasFill = true;
      this.values.fill = this.buildColor(documentData.fc);
    } else {
      this.values.fill = 'rgba(0,0,0,0)';
    }
    this.fill = hasFill;
    var hasStroke = false;
    if (documentData.sc) {
      hasStroke = true;
      this.values.stroke = this.buildColor(documentData.sc);
      this.values.sWidth = documentData.sw;
    }
    var fontData = this.globalData.fontManager.getFontByName(documentData.f);
    var i;
    var len;
    var letters = documentData.l;
    var matrixHelper = this.mHelper;
    this.stroke = hasStroke;
    this.values.fValue = documentData.finalSize + 'px ' + this.globalData.fontManager.getFontByName(documentData.f).fFamily;
    len = documentData.finalText.length;
    // this.tHelper.font = this.values.fValue;
    var charData;
    var shapeData;
    var k;
    var kLen;
    var shapes;
    var j;
    var jLen;
    var pathNodes;
    var commands;
    var pathArr;
    var singleShape = this.data.singleShape;
    var trackingOffset = documentData.tr * 0.001 * documentData.finalSize;
    var xPos = 0;
    var yPos = 0;
    var firstLine = true;
    var cnt = 0;
    for (i = 0; i < len; i += 1) {
      charData = this.globalData.fontManager.getCharData(documentData.finalText[i], fontData.fStyle, this.globalData.fontManager.getFontByName(documentData.f).fFamily);
      shapeData = charData && charData.data || {};
      matrixHelper.reset();
      if (singleShape && letters[i].n) {
        xPos = -trackingOffset;
        yPos += documentData.yOffset;
        yPos += firstLine ? 1 : 0;
        firstLine = false;
      }
      shapes = shapeData.shapes ? shapeData.shapes[0].it : [];
      jLen = shapes.length;
      matrixHelper.scale(documentData.finalSize / 100, documentData.finalSize / 100);
      if (singleShape) {
        this.applyTextPropertiesToMatrix(documentData, matrixHelper, letters[i].line, xPos, yPos);
      }
      commands = createSizedArray(jLen - 1);
      var commandsCounter = 0;
      for (j = 0; j < jLen; j += 1) {
        if (shapes[j].ty === 'sh') {
          kLen = shapes[j].ks.k.i.length;
          pathNodes = shapes[j].ks.k;
          pathArr = [];
          for (k = 1; k < kLen; k += 1) {
            if (k === 1) {
              pathArr.push(matrixHelper.applyToX(pathNodes.v[0][0], pathNodes.v[0][1], 0), matrixHelper.applyToY(pathNodes.v[0][0], pathNodes.v[0][1], 0));
            }
            pathArr.push(matrixHelper.applyToX(pathNodes.o[k - 1][0], pathNodes.o[k - 1][1], 0), matrixHelper.applyToY(pathNodes.o[k - 1][0], pathNodes.o[k - 1][1], 0), matrixHelper.applyToX(pathNodes.i[k][0], pathNodes.i[k][1], 0), matrixHelper.applyToY(pathNodes.i[k][0], pathNodes.i[k][1], 0), matrixHelper.applyToX(pathNodes.v[k][0], pathNodes.v[k][1], 0), matrixHelper.applyToY(pathNodes.v[k][0], pathNodes.v[k][1], 0));
          }
          pathArr.push(matrixHelper.applyToX(pathNodes.o[k - 1][0], pathNodes.o[k - 1][1], 0), matrixHelper.applyToY(pathNodes.o[k - 1][0], pathNodes.o[k - 1][1], 0), matrixHelper.applyToX(pathNodes.i[0][0], pathNodes.i[0][1], 0), matrixHelper.applyToY(pathNodes.i[0][0], pathNodes.i[0][1], 0), matrixHelper.applyToX(pathNodes.v[0][0], pathNodes.v[0][1], 0), matrixHelper.applyToY(pathNodes.v[0][0], pathNodes.v[0][1], 0));
          commands[commandsCounter] = pathArr;
          commandsCounter += 1;
        }
      }
      if (singleShape) {
        xPos += letters[i].l;
        xPos += trackingOffset;
      }
      if (this.textSpans[cnt]) {
        this.textSpans[cnt].elem = commands;
      } else {
        this.textSpans[cnt] = {
          elem: commands
        };
      }
      cnt += 1;
    }
  };
  CVTextElement.prototype.renderInnerContent = function () {
    this.validateText();
    var ctx = this.canvasContext;
    ctx.font = this.values.fValue;
    this.globalData.renderer.ctxLineCap('butt');
    // ctx.lineCap = 'butt';
    this.globalData.renderer.ctxLineJoin('miter');
    // ctx.lineJoin = 'miter';
    this.globalData.renderer.ctxMiterLimit(4);
    // ctx.miterLimit = 4;

    if (!this.data.singleShape) {
      this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
    }
    var i;
    var len;
    var j;
    var jLen;
    var k;
    var kLen;
    var renderedLetters = this.textAnimator.renderedLetters;
    var letters = this.textProperty.currentData.l;
    len = letters.length;
    var renderedLetter;
    var lastFill = null;
    var lastStroke = null;
    var lastStrokeW = null;
    var commands;
    var pathArr;
    var renderer = this.globalData.renderer;
    for (i = 0; i < len; i += 1) {
      if (!letters[i].n) {
        renderedLetter = renderedLetters[i];
        if (renderedLetter) {
          renderer.save();
          renderer.ctxTransform(renderedLetter.p);
          renderer.ctxOpacity(renderedLetter.o);
        }
        if (this.fill) {
          if (renderedLetter && renderedLetter.fc) {
            if (lastFill !== renderedLetter.fc) {
              renderer.ctxFillStyle(renderedLetter.fc);
              lastFill = renderedLetter.fc;
              // ctx.fillStyle = renderedLetter.fc;
            }
          } else if (lastFill !== this.values.fill) {
            lastFill = this.values.fill;
            renderer.ctxFillStyle(this.values.fill);
            // ctx.fillStyle = this.values.fill;
          }
          commands = this.textSpans[i].elem;
          jLen = commands.length;
          this.globalData.canvasContext.beginPath();
          for (j = 0; j < jLen; j += 1) {
            pathArr = commands[j];
            kLen = pathArr.length;
            this.globalData.canvasContext.moveTo(pathArr[0], pathArr[1]);
            for (k = 2; k < kLen; k += 6) {
              this.globalData.canvasContext.bezierCurveTo(pathArr[k], pathArr[k + 1], pathArr[k + 2], pathArr[k + 3], pathArr[k + 4], pathArr[k + 5]);
            }
          }
          this.globalData.canvasContext.closePath();
          renderer.ctxFill();
          // this.globalData.canvasContext.fill();
          /// ctx.fillText(this.textSpans[i].val,0,0);
        }
        if (this.stroke) {
          if (renderedLetter && renderedLetter.sw) {
            if (lastStrokeW !== renderedLetter.sw) {
              lastStrokeW = renderedLetter.sw;
              renderer.ctxLineWidth(renderedLetter.sw);
              // ctx.lineWidth = renderedLetter.sw;
            }
          } else if (lastStrokeW !== this.values.sWidth) {
            lastStrokeW = this.values.sWidth;
            renderer.ctxLineWidth(this.values.sWidth);
            // ctx.lineWidth = this.values.sWidth;
          }
          if (renderedLetter && renderedLetter.sc) {
            if (lastStroke !== renderedLetter.sc) {
              lastStroke = renderedLetter.sc;
              renderer.ctxStrokeStyle(renderedLetter.sc);
              // ctx.strokeStyle = renderedLetter.sc;
            }
          } else if (lastStroke !== this.values.stroke) {
            lastStroke = this.values.stroke;
            renderer.ctxStrokeStyle(this.values.stroke);
            // ctx.strokeStyle = this.values.stroke;
          }
          commands = this.textSpans[i].elem;
          jLen = commands.length;
          this.globalData.canvasContext.beginPath();
          for (j = 0; j < jLen; j += 1) {
            pathArr = commands[j];
            kLen = pathArr.length;
            this.globalData.canvasContext.moveTo(pathArr[0], pathArr[1]);
            for (k = 2; k < kLen; k += 6) {
              this.globalData.canvasContext.bezierCurveTo(pathArr[k], pathArr[k + 1], pathArr[k + 2], pathArr[k + 3], pathArr[k + 4], pathArr[k + 5]);
            }
          }
          this.globalData.canvasContext.closePath();
          renderer.ctxStroke();
          // this.globalData.canvasContext.stroke();
          /// ctx.strokeText(letters[i].val,0,0);
        }
        if (renderedLetter) {
          this.globalData.renderer.restore();
        }
      }
    }
  };

  function CVImageElement(data, globalData, comp) {
    this.assetData = globalData.getAssetData(data.refId);
    this.img = globalData.imageLoader.getAsset(this.assetData);
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, CVBaseElement, HierarchyElement, FrameElement, RenderableElement], CVImageElement);
  CVImageElement.prototype.initElement = SVGShapeElement.prototype.initElement;
  CVImageElement.prototype.prepareFrame = IImageElement.prototype.prepareFrame;
  CVImageElement.prototype.createContent = function () {
    if (this.img.width && (this.assetData.w !== this.img.width || this.assetData.h !== this.img.height)) {
      var canvas = createTag('canvas');
      canvas.width = this.assetData.w;
      canvas.height = this.assetData.h;
      var ctx = canvas.getContext('2d');
      var imgW = this.img.width;
      var imgH = this.img.height;
      var imgRel = imgW / imgH;
      var canvasRel = this.assetData.w / this.assetData.h;
      var widthCrop;
      var heightCrop;
      var par = this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio;
      if (imgRel > canvasRel && par === 'xMidYMid slice' || imgRel < canvasRel && par !== 'xMidYMid slice') {
        heightCrop = imgH;
        widthCrop = heightCrop * canvasRel;
      } else {
        widthCrop = imgW;
        heightCrop = widthCrop / canvasRel;
      }
      ctx.drawImage(this.img, (imgW - widthCrop) / 2, (imgH - heightCrop) / 2, widthCrop, heightCrop, 0, 0, this.assetData.w, this.assetData.h);
      this.img = canvas;
    }
  };
  CVImageElement.prototype.renderInnerContent = function () {
    this.canvasContext.drawImage(this.img, 0, 0);
  };
  CVImageElement.prototype.destroy = function () {
    this.img = null;
  };

  function CVSolidElement(data, globalData, comp) {
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, CVBaseElement, HierarchyElement, FrameElement, RenderableElement], CVSolidElement);
  CVSolidElement.prototype.initElement = SVGShapeElement.prototype.initElement;
  CVSolidElement.prototype.prepareFrame = IImageElement.prototype.prepareFrame;
  CVSolidElement.prototype.renderInnerContent = function () {
    // var ctx = this.canvasContext;
    this.globalData.renderer.ctxFillStyle(this.data.sc);
    // ctx.fillStyle = this.data.sc;
    this.globalData.renderer.ctxFillRect(0, 0, this.data.sw, this.data.sh);
    // ctx.fillRect(0, 0, this.data.sw, this.data.sh);
    //
  };

  function CanvasRendererBase() {}
  extendPrototype([BaseRenderer], CanvasRendererBase);
  CanvasRendererBase.prototype.createShape = function (data) {
    return new CVShapeElement(data, this.globalData, this);
  };
  CanvasRendererBase.prototype.createText = function (data) {
    return new CVTextElement(data, this.globalData, this);
  };
  CanvasRendererBase.prototype.createImage = function (data) {
    return new CVImageElement(data, this.globalData, this);
  };
  CanvasRendererBase.prototype.createSolid = function (data) {
    return new CVSolidElement(data, this.globalData, this);
  };
  CanvasRendererBase.prototype.createNull = SVGRenderer.prototype.createNull;
  CanvasRendererBase.prototype.ctxTransform = function (props) {
    if (props[0] === 1 && props[1] === 0 && props[4] === 0 && props[5] === 1 && props[12] === 0 && props[13] === 0) {
      return;
    }
    this.canvasContext.transform(props[0], props[1], props[4], props[5], props[12], props[13]);
  };
  CanvasRendererBase.prototype.ctxOpacity = function (op) {
    this.canvasContext.globalAlpha *= op < 0 ? 0 : op;
  };
  CanvasRendererBase.prototype.ctxFillStyle = function (value) {
    this.canvasContext.fillStyle = value;
  };
  CanvasRendererBase.prototype.ctxStrokeStyle = function (value) {
    this.canvasContext.strokeStyle = value;
  };
  CanvasRendererBase.prototype.ctxLineWidth = function (value) {
    this.canvasContext.lineWidth = value;
  };
  CanvasRendererBase.prototype.ctxLineCap = function (value) {
    this.canvasContext.lineCap = value;
  };
  CanvasRendererBase.prototype.ctxLineJoin = function (value) {
    this.canvasContext.lineJoin = value;
  };
  CanvasRendererBase.prototype.ctxMiterLimit = function (value) {
    this.canvasContext.miterLimit = value;
  };
  CanvasRendererBase.prototype.ctxFill = function (rule) {
    this.canvasContext.fill(rule);
  };
  CanvasRendererBase.prototype.ctxFillRect = function (x, y, w, h) {
    this.canvasContext.fillRect(x, y, w, h);
  };
  CanvasRendererBase.prototype.ctxStroke = function () {
    this.canvasContext.stroke();
  };
  CanvasRendererBase.prototype.reset = function () {
    if (!this.renderConfig.clearCanvas) {
      this.canvasContext.restore();
      return;
    }
    this.contextData.reset();
  };
  CanvasRendererBase.prototype.save = function () {
    this.canvasContext.save();
  };
  CanvasRendererBase.prototype.restore = function (actionFlag) {
    if (!this.renderConfig.clearCanvas) {
      this.canvasContext.restore();
      return;
    }
    if (actionFlag) {
      this.globalData.blendMode = 'source-over';
    }
    this.contextData.restore(actionFlag);
  };
  CanvasRendererBase.prototype.configAnimation = function (animData) {
    if (this.animationItem.wrapper) {
      this.animationItem.container = createTag('canvas');
      var containerStyle = this.animationItem.container.style;
      containerStyle.width = '100%';
      containerStyle.height = '100%';
      var origin = '0px 0px 0px';
      containerStyle.transformOrigin = origin;
      containerStyle.mozTransformOrigin = origin;
      containerStyle.webkitTransformOrigin = origin;
      containerStyle['-webkit-transform'] = origin;
      containerStyle.contentVisibility = this.renderConfig.contentVisibility;
      this.animationItem.wrapper.appendChild(this.animationItem.container);
      this.canvasContext = this.animationItem.container.getContext('2d');
      if (this.renderConfig.className) {
        this.animationItem.container.setAttribute('class', this.renderConfig.className);
      }
      if (this.renderConfig.id) {
        this.animationItem.container.setAttribute('id', this.renderConfig.id);
      }
    } else {
      this.canvasContext = this.renderConfig.context;
    }
    this.contextData.setContext(this.canvasContext);
    this.data = animData;
    this.layers = animData.layers;
    this.transformCanvas = {
      w: animData.w,
      h: animData.h,
      sx: 0,
      sy: 0,
      tx: 0,
      ty: 0
    };
    this.setupGlobalData(animData, document.body);
    this.globalData.canvasContext = this.canvasContext;
    this.globalData.renderer = this;
    this.globalData.isDashed = false;
    this.globalData.progressiveLoad = this.renderConfig.progressiveLoad;
    this.globalData.transformCanvas = this.transformCanvas;
    this.elements = createSizedArray(animData.layers.length);
    this.updateContainerSize();
  };
  CanvasRendererBase.prototype.updateContainerSize = function (width, height) {
    this.reset();
    var elementWidth;
    var elementHeight;
    if (width) {
      elementWidth = width;
      elementHeight = height;
      this.canvasContext.canvas.width = elementWidth;
      this.canvasContext.canvas.height = elementHeight;
    } else {
      if (this.animationItem.wrapper && this.animationItem.container) {
        elementWidth = this.animationItem.wrapper.offsetWidth;
        elementHeight = this.animationItem.wrapper.offsetHeight;
      } else {
        elementWidth = this.canvasContext.canvas.width;
        elementHeight = this.canvasContext.canvas.height;
      }
      this.canvasContext.canvas.width = elementWidth * this.renderConfig.dpr;
      this.canvasContext.canvas.height = elementHeight * this.renderConfig.dpr;
    }
    var elementRel;
    var animationRel;
    if (this.renderConfig.preserveAspectRatio.indexOf('meet') !== -1 || this.renderConfig.preserveAspectRatio.indexOf('slice') !== -1) {
      var par = this.renderConfig.preserveAspectRatio.split(' ');
      var fillType = par[1] || 'meet';
      var pos = par[0] || 'xMidYMid';
      var xPos = pos.substr(0, 4);
      var yPos = pos.substr(4);
      elementRel = elementWidth / elementHeight;
      animationRel = this.transformCanvas.w / this.transformCanvas.h;
      if (animationRel > elementRel && fillType === 'meet' || animationRel < elementRel && fillType === 'slice') {
        this.transformCanvas.sx = elementWidth / (this.transformCanvas.w / this.renderConfig.dpr);
        this.transformCanvas.sy = elementWidth / (this.transformCanvas.w / this.renderConfig.dpr);
      } else {
        this.transformCanvas.sx = elementHeight / (this.transformCanvas.h / this.renderConfig.dpr);
        this.transformCanvas.sy = elementHeight / (this.transformCanvas.h / this.renderConfig.dpr);
      }
      if (xPos === 'xMid' && (animationRel < elementRel && fillType === 'meet' || animationRel > elementRel && fillType === 'slice')) {
        this.transformCanvas.tx = (elementWidth - this.transformCanvas.w * (elementHeight / this.transformCanvas.h)) / 2 * this.renderConfig.dpr;
      } else if (xPos === 'xMax' && (animationRel < elementRel && fillType === 'meet' || animationRel > elementRel && fillType === 'slice')) {
        this.transformCanvas.tx = (elementWidth - this.transformCanvas.w * (elementHeight / this.transformCanvas.h)) * this.renderConfig.dpr;
      } else {
        this.transformCanvas.tx = 0;
      }
      if (yPos === 'YMid' && (animationRel > elementRel && fillType === 'meet' || animationRel < elementRel && fillType === 'slice')) {
        this.transformCanvas.ty = (elementHeight - this.transformCanvas.h * (elementWidth / this.transformCanvas.w)) / 2 * this.renderConfig.dpr;
      } else if (yPos === 'YMax' && (animationRel > elementRel && fillType === 'meet' || animationRel < elementRel && fillType === 'slice')) {
        this.transformCanvas.ty = (elementHeight - this.transformCanvas.h * (elementWidth / this.transformCanvas.w)) * this.renderConfig.dpr;
      } else {
        this.transformCanvas.ty = 0;
      }
    } else if (this.renderConfig.preserveAspectRatio === 'none') {
      this.transformCanvas.sx = elementWidth / (this.transformCanvas.w / this.renderConfig.dpr);
      this.transformCanvas.sy = elementHeight / (this.transformCanvas.h / this.renderConfig.dpr);
      this.transformCanvas.tx = 0;
      this.transformCanvas.ty = 0;
    } else {
      this.transformCanvas.sx = this.renderConfig.dpr;
      this.transformCanvas.sy = this.renderConfig.dpr;
      this.transformCanvas.tx = 0;
      this.transformCanvas.ty = 0;
    }
    this.transformCanvas.props = [this.transformCanvas.sx, 0, 0, 0, 0, this.transformCanvas.sy, 0, 0, 0, 0, 1, 0, this.transformCanvas.tx, this.transformCanvas.ty, 0, 1];
    /* var i, len = this.elements.length;
      for(i=0;i<len;i+=1){
          if(this.elements[i] && this.elements[i].data.ty === 0){
              this.elements[i].resize(this.globalData.transformCanvas);
          }
      } */
    this.ctxTransform(this.transformCanvas.props);
    this.canvasContext.beginPath();
    this.canvasContext.rect(0, 0, this.transformCanvas.w, this.transformCanvas.h);
    this.canvasContext.closePath();
    this.canvasContext.clip();
    this.renderFrame(this.renderedFrame, true);
  };
  CanvasRendererBase.prototype.destroy = function () {
    if (this.renderConfig.clearCanvas && this.animationItem.wrapper) {
      this.animationItem.wrapper.innerText = '';
    }
    var i;
    var len = this.layers ? this.layers.length : 0;
    for (i = len - 1; i >= 0; i -= 1) {
      if (this.elements[i] && this.elements[i].destroy) {
        this.elements[i].destroy();
      }
    }
    this.elements.length = 0;
    this.globalData.canvasContext = null;
    this.animationItem.container = null;
    this.destroyed = true;
  };
  CanvasRendererBase.prototype.renderFrame = function (num, forceRender) {
    if (this.renderedFrame === num && this.renderConfig.clearCanvas === true && !forceRender || this.destroyed || num === -1) {
      return;
    }
    this.renderedFrame = num;
    this.globalData.frameNum = num - this.animationItem._isFirstFrame;
    this.globalData.frameId += 1;
    this.globalData._mdf = !this.renderConfig.clearCanvas || forceRender;
    this.globalData.projectInterface.currentFrame = num;

    // console.log('--------');
    // console.log('NEW: ',num);
    var i;
    var len = this.layers.length;
    if (!this.completeLayers) {
      this.checkLayers(num);
    }
    for (i = len - 1; i >= 0; i -= 1) {
      if (this.completeLayers || this.elements[i]) {
        this.elements[i].prepareFrame(num - this.layers[i].st);
      }
    }
    if (this.globalData._mdf) {
      if (this.renderConfig.clearCanvas === true) {
        this.canvasContext.clearRect(0, 0, this.transformCanvas.w, this.transformCanvas.h);
      } else {
        this.save();
      }
      for (i = len - 1; i >= 0; i -= 1) {
        if (this.completeLayers || this.elements[i]) {
          this.elements[i].renderFrame();
        }
      }
      if (this.renderConfig.clearCanvas !== true) {
        this.restore();
      }
    }
  };
  CanvasRendererBase.prototype.buildItem = function (pos) {
    var elements = this.elements;
    if (elements[pos] || this.layers[pos].ty === 99) {
      return;
    }
    var element = this.createItem(this.layers[pos], this, this.globalData);
    elements[pos] = element;
    element.initExpressions();
    /* if(this.layers[pos].ty === 0){
          element.resize(this.globalData.transformCanvas);
      } */
  };
  CanvasRendererBase.prototype.checkPendingElements = function () {
    while (this.pendingElements.length) {
      var element = this.pendingElements.pop();
      element.checkParenting();
    }
  };
  CanvasRendererBase.prototype.hide = function () {
    this.animationItem.container.style.display = 'none';
  };
  CanvasRendererBase.prototype.show = function () {
    this.animationItem.container.style.display = 'block';
  };

  function CanvasContext() {
    this.opacity = -1;
    this.transform = createTypedArray('float32', 16);
    this.fillStyle = '';
    this.strokeStyle = '';
    this.lineWidth = '';
    this.lineCap = '';
    this.lineJoin = '';
    this.miterLimit = '';
    this.id = Math.random();
  }
  function CVContextData() {
    this.stack = [];
    this.cArrPos = 0;
    this.cTr = new Matrix();
    var i;
    var len = 15;
    for (i = 0; i < len; i += 1) {
      var canvasContext = new CanvasContext();
      this.stack[i] = canvasContext;
    }
    this._length = len;
    this.nativeContext = null;
    this.transformMat = new Matrix();
    this.currentOpacity = 1;
    //
    this.currentFillStyle = '';
    this.appliedFillStyle = '';
    //
    this.currentStrokeStyle = '';
    this.appliedStrokeStyle = '';
    //
    this.currentLineWidth = '';
    this.appliedLineWidth = '';
    //
    this.currentLineCap = '';
    this.appliedLineCap = '';
    //
    this.currentLineJoin = '';
    this.appliedLineJoin = '';
    //
    this.appliedMiterLimit = '';
    this.currentMiterLimit = '';
  }
  CVContextData.prototype.duplicate = function () {
    var newLength = this._length * 2;
    var i = 0;
    for (i = this._length; i < newLength; i += 1) {
      this.stack[i] = new CanvasContext();
    }
    this._length = newLength;
  };
  CVContextData.prototype.reset = function () {
    this.cArrPos = 0;
    this.cTr.reset();
    this.stack[this.cArrPos].opacity = 1;
  };
  CVContextData.prototype.restore = function (forceRestore) {
    this.cArrPos -= 1;
    var currentContext = this.stack[this.cArrPos];
    var transform = currentContext.transform;
    var i;
    var arr = this.cTr.props;
    for (i = 0; i < 16; i += 1) {
      arr[i] = transform[i];
    }
    if (forceRestore) {
      this.nativeContext.restore();
      var prevStack = this.stack[this.cArrPos + 1];
      this.appliedFillStyle = prevStack.fillStyle;
      this.appliedStrokeStyle = prevStack.strokeStyle;
      this.appliedLineWidth = prevStack.lineWidth;
      this.appliedLineCap = prevStack.lineCap;
      this.appliedLineJoin = prevStack.lineJoin;
      this.appliedMiterLimit = prevStack.miterLimit;
    }
    this.nativeContext.setTransform(transform[0], transform[1], transform[4], transform[5], transform[12], transform[13]);
    if (forceRestore || currentContext.opacity !== -1 && this.currentOpacity !== currentContext.opacity) {
      this.nativeContext.globalAlpha = currentContext.opacity;
      this.currentOpacity = currentContext.opacity;
    }
    this.currentFillStyle = currentContext.fillStyle;
    this.currentStrokeStyle = currentContext.strokeStyle;
    this.currentLineWidth = currentContext.lineWidth;
    this.currentLineCap = currentContext.lineCap;
    this.currentLineJoin = currentContext.lineJoin;
    this.currentMiterLimit = currentContext.miterLimit;
  };
  CVContextData.prototype.save = function (saveOnNativeFlag) {
    if (saveOnNativeFlag) {
      this.nativeContext.save();
    }
    var props = this.cTr.props;
    if (this._length <= this.cArrPos) {
      this.duplicate();
    }
    var currentStack = this.stack[this.cArrPos];
    var i;
    for (i = 0; i < 16; i += 1) {
      currentStack.transform[i] = props[i];
    }
    this.cArrPos += 1;
    var newStack = this.stack[this.cArrPos];
    newStack.opacity = currentStack.opacity;
    newStack.fillStyle = currentStack.fillStyle;
    newStack.strokeStyle = currentStack.strokeStyle;
    newStack.lineWidth = currentStack.lineWidth;
    newStack.lineCap = currentStack.lineCap;
    newStack.lineJoin = currentStack.lineJoin;
    newStack.miterLimit = currentStack.miterLimit;
  };
  CVContextData.prototype.setOpacity = function (value) {
    this.stack[this.cArrPos].opacity = value;
  };
  CVContextData.prototype.setContext = function (value) {
    this.nativeContext = value;
  };
  CVContextData.prototype.fillStyle = function (value) {
    if (this.stack[this.cArrPos].fillStyle !== value) {
      this.currentFillStyle = value;
      this.stack[this.cArrPos].fillStyle = value;
    }
  };
  CVContextData.prototype.strokeStyle = function (value) {
    if (this.stack[this.cArrPos].strokeStyle !== value) {
      this.currentStrokeStyle = value;
      this.stack[this.cArrPos].strokeStyle = value;
    }
  };
  CVContextData.prototype.lineWidth = function (value) {
    if (this.stack[this.cArrPos].lineWidth !== value) {
      this.currentLineWidth = value;
      this.stack[this.cArrPos].lineWidth = value;
    }
  };
  CVContextData.prototype.lineCap = function (value) {
    if (this.stack[this.cArrPos].lineCap !== value) {
      this.currentLineCap = value;
      this.stack[this.cArrPos].lineCap = value;
    }
  };
  CVContextData.prototype.lineJoin = function (value) {
    if (this.stack[this.cArrPos].lineJoin !== value) {
      this.currentLineJoin = value;
      this.stack[this.cArrPos].lineJoin = value;
    }
  };
  CVContextData.prototype.miterLimit = function (value) {
    if (this.stack[this.cArrPos].miterLimit !== value) {
      this.currentMiterLimit = value;
      this.stack[this.cArrPos].miterLimit = value;
    }
  };
  CVContextData.prototype.transform = function (props) {
    this.transformMat.cloneFromProps(props);
    // Taking the last transform value from the stored stack of transforms
    var currentTransform = this.cTr;
    // Applying the last transform value after the new transform to respect the order of transformations
    this.transformMat.multiply(currentTransform);
    // Storing the new transformed value in the stored transform
    currentTransform.cloneFromProps(this.transformMat.props);
    var trProps = currentTransform.props;
    // Applying the new transform to the canvas
    this.nativeContext.setTransform(trProps[0], trProps[1], trProps[4], trProps[5], trProps[12], trProps[13]);
  };
  CVContextData.prototype.opacity = function (op) {
    var currentOpacity = this.stack[this.cArrPos].opacity;
    currentOpacity *= op < 0 ? 0 : op;
    if (this.stack[this.cArrPos].opacity !== currentOpacity) {
      if (this.currentOpacity !== op) {
        this.nativeContext.globalAlpha = op;
        this.currentOpacity = op;
      }
      this.stack[this.cArrPos].opacity = currentOpacity;
    }
  };
  CVContextData.prototype.fill = function (rule) {
    if (this.appliedFillStyle !== this.currentFillStyle) {
      this.appliedFillStyle = this.currentFillStyle;
      this.nativeContext.fillStyle = this.appliedFillStyle;
    }
    this.nativeContext.fill(rule);
  };
  CVContextData.prototype.fillRect = function (x, y, w, h) {
    if (this.appliedFillStyle !== this.currentFillStyle) {
      this.appliedFillStyle = this.currentFillStyle;
      this.nativeContext.fillStyle = this.appliedFillStyle;
    }
    this.nativeContext.fillRect(x, y, w, h);
  };
  CVContextData.prototype.stroke = function () {
    if (this.appliedStrokeStyle !== this.currentStrokeStyle) {
      this.appliedStrokeStyle = this.currentStrokeStyle;
      this.nativeContext.strokeStyle = this.appliedStrokeStyle;
    }
    if (this.appliedLineWidth !== this.currentLineWidth) {
      this.appliedLineWidth = this.currentLineWidth;
      this.nativeContext.lineWidth = this.appliedLineWidth;
    }
    if (this.appliedLineCap !== this.currentLineCap) {
      this.appliedLineCap = this.currentLineCap;
      this.nativeContext.lineCap = this.appliedLineCap;
    }
    if (this.appliedLineJoin !== this.currentLineJoin) {
      this.appliedLineJoin = this.currentLineJoin;
      this.nativeContext.lineJoin = this.appliedLineJoin;
    }
    if (this.appliedMiterLimit !== this.currentMiterLimit) {
      this.appliedMiterLimit = this.currentMiterLimit;
      this.nativeContext.miterLimit = this.appliedMiterLimit;
    }
    this.nativeContext.stroke();
  };

  function CVCompElement(data, globalData, comp) {
    this.completeLayers = false;
    this.layers = data.layers;
    this.pendingElements = [];
    this.elements = createSizedArray(this.layers.length);
    this.initElement(data, globalData, comp);
    this.tm = data.tm ? PropertyFactory.getProp(this, data.tm, 0, globalData.frameRate, this) : {
      _placeholder: true
    };
  }
  extendPrototype([CanvasRendererBase, ICompElement, CVBaseElement], CVCompElement);
  CVCompElement.prototype.renderInnerContent = function () {
    var ctx = this.canvasContext;
    ctx.beginPath();
    ctx.moveTo(0, 0);
    ctx.lineTo(this.data.w, 0);
    ctx.lineTo(this.data.w, this.data.h);
    ctx.lineTo(0, this.data.h);
    ctx.lineTo(0, 0);
    ctx.clip();
    var i;
    var len = this.layers.length;
    for (i = len - 1; i >= 0; i -= 1) {
      if (this.completeLayers || this.elements[i]) {
        this.elements[i].renderFrame();
      }
    }
  };
  CVCompElement.prototype.destroy = function () {
    var i;
    var len = this.layers.length;
    for (i = len - 1; i >= 0; i -= 1) {
      if (this.elements[i]) {
        this.elements[i].destroy();
      }
    }
    this.layers = null;
    this.elements = null;
  };
  CVCompElement.prototype.createComp = function (data) {
    return new CVCompElement(data, this.globalData, this);
  };

  function CanvasRenderer(animationItem, config) {
    this.animationItem = animationItem;
    this.renderConfig = {
      clearCanvas: config && config.clearCanvas !== undefined ? config.clearCanvas : true,
      context: config && config.context || null,
      progressiveLoad: config && config.progressiveLoad || false,
      preserveAspectRatio: config && config.preserveAspectRatio || 'xMidYMid meet',
      imagePreserveAspectRatio: config && config.imagePreserveAspectRatio || 'xMidYMid slice',
      contentVisibility: config && config.contentVisibility || 'visible',
      className: config && config.className || '',
      id: config && config.id || '',
      runExpressions: !config || config.runExpressions === undefined || config.runExpressions
    };
    this.renderConfig.dpr = config && config.dpr || 1;
    if (this.animationItem.wrapper) {
      this.renderConfig.dpr = config && config.dpr || window.devicePixelRatio || 1;
    }
    this.renderedFrame = -1;
    this.globalData = {
      frameNum: -1,
      _mdf: false,
      renderConfig: this.renderConfig,
      currentGlobalAlpha: -1
    };
    this.contextData = new CVContextData();
    this.elements = [];
    this.pendingElements = [];
    this.transformMat = new Matrix();
    this.completeLayers = false;
    this.rendererType = 'canvas';
    if (this.renderConfig.clearCanvas) {
      this.ctxTransform = this.contextData.transform.bind(this.contextData);
      this.ctxOpacity = this.contextData.opacity.bind(this.contextData);
      this.ctxFillStyle = this.contextData.fillStyle.bind(this.contextData);
      this.ctxStrokeStyle = this.contextData.strokeStyle.bind(this.contextData);
      this.ctxLineWidth = this.contextData.lineWidth.bind(this.contextData);
      this.ctxLineCap = this.contextData.lineCap.bind(this.contextData);
      this.ctxLineJoin = this.contextData.lineJoin.bind(this.contextData);
      this.ctxMiterLimit = this.contextData.miterLimit.bind(this.contextData);
      this.ctxFill = this.contextData.fill.bind(this.contextData);
      this.ctxFillRect = this.contextData.fillRect.bind(this.contextData);
      this.ctxStroke = this.contextData.stroke.bind(this.contextData);
      this.save = this.contextData.save.bind(this.contextData);
    }
  }
  extendPrototype([CanvasRendererBase], CanvasRenderer);
  CanvasRenderer.prototype.createComp = function (data) {
    return new CVCompElement(data, this.globalData, this);
  };

  function HBaseElement() {}
  HBaseElement.prototype = {
    checkBlendMode: function checkBlendMode() {},
    initRendererElement: function initRendererElement() {
      this.baseElement = createTag(this.data.tg || 'div');
      if (this.data.hasMask) {
        this.svgElement = createNS('svg');
        this.layerElement = createNS('g');
        this.maskedElement = this.layerElement;
        this.svgElement.appendChild(this.layerElement);
        this.baseElement.appendChild(this.svgElement);
      } else {
        this.layerElement = this.baseElement;
      }
      styleDiv(this.baseElement);
    },
    createContainerElements: function createContainerElements() {
      this.renderableEffectsManager = new CVEffects(this);
      this.transformedElement = this.baseElement;
      this.maskedElement = this.layerElement;
      if (this.data.ln) {
        this.layerElement.setAttribute('id', this.data.ln);
      }
      if (this.data.cl) {
        this.layerElement.setAttribute('class', this.data.cl);
      }
      if (this.data.bm !== 0) {
        this.setBlendMode();
      }
    },
    renderElement: function renderElement() {
      var transformedElementStyle = this.transformedElement ? this.transformedElement.style : {};
      if (this.finalTransform._matMdf) {
        var matrixValue = this.finalTransform.mat.toCSS();
        transformedElementStyle.transform = matrixValue;
        transformedElementStyle.webkitTransform = matrixValue;
      }
      if (this.finalTransform._opMdf) {
        transformedElementStyle.opacity = this.finalTransform.mProp.o.v;
      }
    },
    renderFrame: function renderFrame() {
      // If it is exported as hidden (data.hd === true) no need to render
      // If it is not visible no need to render
      if (this.data.hd || this.hidden) {
        return;
      }
      this.renderTransform();
      this.renderRenderable();
      this.renderElement();
      this.renderInnerContent();
      if (this._isFirstFrame) {
        this._isFirstFrame = false;
      }
    },
    destroy: function destroy() {
      this.layerElement = null;
      this.transformedElement = null;
      if (this.matteElement) {
        this.matteElement = null;
      }
      if (this.maskManager) {
        this.maskManager.destroy();
        this.maskManager = null;
      }
    },
    createRenderableComponents: function createRenderableComponents() {
      this.maskManager = new MaskElement(this.data, this, this.globalData);
    },
    addEffects: function addEffects() {},
    setMatte: function setMatte() {}
  };
  HBaseElement.prototype.getBaseElement = SVGBaseElement.prototype.getBaseElement;
  HBaseElement.prototype.destroyBaseElement = HBaseElement.prototype.destroy;
  HBaseElement.prototype.buildElementParenting = BaseRenderer.prototype.buildElementParenting;

  function HSolidElement(data, globalData, comp) {
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, HBaseElement, HierarchyElement, FrameElement, RenderableDOMElement], HSolidElement);
  HSolidElement.prototype.createContent = function () {
    var rect;
    if (this.data.hasMask) {
      rect = createNS('rect');
      rect.setAttribute('width', this.data.sw);
      rect.setAttribute('height', this.data.sh);
      rect.setAttribute('fill', this.data.sc);
      this.svgElement.setAttribute('width', this.data.sw);
      this.svgElement.setAttribute('height', this.data.sh);
    } else {
      rect = createTag('div');
      rect.style.width = this.data.sw + 'px';
      rect.style.height = this.data.sh + 'px';
      rect.style.backgroundColor = this.data.sc;
    }
    this.layerElement.appendChild(rect);
  };

  function HShapeElement(data, globalData, comp) {
    // List of drawable elements
    this.shapes = [];
    // Full shape data
    this.shapesData = data.shapes;
    // List of styles that will be applied to shapes
    this.stylesList = [];
    // List of modifiers that will be applied to shapes
    this.shapeModifiers = [];
    // List of items in shape tree
    this.itemsData = [];
    // List of items in previous shape tree
    this.processedElements = [];
    // List of animated components
    this.animatedContents = [];
    this.shapesContainer = createNS('g');
    this.initElement(data, globalData, comp);
    // Moving any property that doesn't get too much access after initialization because of v8 way of handling more than 10 properties.
    // List of elements that have been created
    this.prevViewData = [];
    this.currentBBox = {
      x: 999999,
      y: -999999,
      h: 0,
      w: 0
    };
  }
  extendPrototype([BaseElement, TransformElement, HSolidElement, SVGShapeElement, HBaseElement, HierarchyElement, FrameElement, RenderableElement], HShapeElement);
  HShapeElement.prototype._renderShapeFrame = HShapeElement.prototype.renderInnerContent;
  HShapeElement.prototype.createContent = function () {
    var cont;
    this.baseElement.style.fontSize = 0;
    if (this.data.hasMask) {
      this.layerElement.appendChild(this.shapesContainer);
      cont = this.svgElement;
    } else {
      cont = createNS('svg');
      var size = this.comp.data ? this.comp.data : this.globalData.compSize;
      cont.setAttribute('width', size.w);
      cont.setAttribute('height', size.h);
      cont.appendChild(this.shapesContainer);
      this.layerElement.appendChild(cont);
    }
    this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.shapesContainer, 0, [], true);
    this.filterUniqueShapes();
    this.shapeCont = cont;
  };
  HShapeElement.prototype.getTransformedPoint = function (transformers, point) {
    var i;
    var len = transformers.length;
    for (i = 0; i < len; i += 1) {
      point = transformers[i].mProps.v.applyToPointArray(point[0], point[1], 0);
    }
    return point;
  };
  HShapeElement.prototype.calculateShapeBoundingBox = function (item, boundingBox) {
    var shape = item.sh.v;
    var transformers = item.transformers;
    var i;
    var len = shape._length;
    var vPoint;
    var oPoint;
    var nextIPoint;
    var nextVPoint;
    if (len <= 1) {
      return;
    }
    for (i = 0; i < len - 1; i += 1) {
      vPoint = this.getTransformedPoint(transformers, shape.v[i]);
      oPoint = this.getTransformedPoint(transformers, shape.o[i]);
      nextIPoint = this.getTransformedPoint(transformers, shape.i[i + 1]);
      nextVPoint = this.getTransformedPoint(transformers, shape.v[i + 1]);
      this.checkBounds(vPoint, oPoint, nextIPoint, nextVPoint, boundingBox);
    }
    if (shape.c) {
      vPoint = this.getTransformedPoint(transformers, shape.v[i]);
      oPoint = this.getTransformedPoint(transformers, shape.o[i]);
      nextIPoint = this.getTransformedPoint(transformers, shape.i[0]);
      nextVPoint = this.getTransformedPoint(transformers, shape.v[0]);
      this.checkBounds(vPoint, oPoint, nextIPoint, nextVPoint, boundingBox);
    }
  };
  HShapeElement.prototype.checkBounds = function (vPoint, oPoint, nextIPoint, nextVPoint, boundingBox) {
    this.getBoundsOfCurve(vPoint, oPoint, nextIPoint, nextVPoint);
    var bounds = this.shapeBoundingBox;
    boundingBox.x = bmMin(bounds.left, boundingBox.x);
    boundingBox.xMax = bmMax(bounds.right, boundingBox.xMax);
    boundingBox.y = bmMin(bounds.top, boundingBox.y);
    boundingBox.yMax = bmMax(bounds.bottom, boundingBox.yMax);
  };
  HShapeElement.prototype.shapeBoundingBox = {
    left: 0,
    right: 0,
    top: 0,
    bottom: 0
  };
  HShapeElement.prototype.tempBoundingBox = {
    x: 0,
    xMax: 0,
    y: 0,
    yMax: 0,
    width: 0,
    height: 0
  };
  HShapeElement.prototype.getBoundsOfCurve = function (p0, p1, p2, p3) {
    var bounds = [[p0[0], p3[0]], [p0[1], p3[1]]];
    for (var a, b, c, t, b2ac, t1, t2, i = 0; i < 2; ++i) {
      // eslint-disable-line no-plusplus
      b = 6 * p0[i] - 12 * p1[i] + 6 * p2[i];
      a = -3 * p0[i] + 9 * p1[i] - 9 * p2[i] + 3 * p3[i];
      c = 3 * p1[i] - 3 * p0[i];
      b |= 0; // eslint-disable-line no-bitwise
      a |= 0; // eslint-disable-line no-bitwise
      c |= 0; // eslint-disable-line no-bitwise

      if (a === 0 && b === 0) {
        //
      } else if (a === 0) {
        t = -c / b;
        if (t > 0 && t < 1) {
          bounds[i].push(this.calculateF(t, p0, p1, p2, p3, i));
        }
      } else {
        b2ac = b * b - 4 * c * a;
        if (b2ac >= 0) {
          t1 = (-b + bmSqrt(b2ac)) / (2 * a);
          if (t1 > 0 && t1 < 1) bounds[i].push(this.calculateF(t1, p0, p1, p2, p3, i));
          t2 = (-b - bmSqrt(b2ac)) / (2 * a);
          if (t2 > 0 && t2 < 1) bounds[i].push(this.calculateF(t2, p0, p1, p2, p3, i));
        }
      }
    }
    this.shapeBoundingBox.left = bmMin.apply(null, bounds[0]);
    this.shapeBoundingBox.top = bmMin.apply(null, bounds[1]);
    this.shapeBoundingBox.right = bmMax.apply(null, bounds[0]);
    this.shapeBoundingBox.bottom = bmMax.apply(null, bounds[1]);
  };
  HShapeElement.prototype.calculateF = function (t, p0, p1, p2, p3, i) {
    return bmPow(1 - t, 3) * p0[i] + 3 * bmPow(1 - t, 2) * t * p1[i] + 3 * (1 - t) * bmPow(t, 2) * p2[i] + bmPow(t, 3) * p3[i];
  };
  HShapeElement.prototype.calculateBoundingBox = function (itemsData, boundingBox) {
    var i;
    var len = itemsData.length;
    for (i = 0; i < len; i += 1) {
      if (itemsData[i] && itemsData[i].sh) {
        this.calculateShapeBoundingBox(itemsData[i], boundingBox);
      } else if (itemsData[i] && itemsData[i].it) {
        this.calculateBoundingBox(itemsData[i].it, boundingBox);
      } else if (itemsData[i] && itemsData[i].style && itemsData[i].w) {
        this.expandStrokeBoundingBox(itemsData[i].w, boundingBox);
      }
    }
  };
  HShapeElement.prototype.expandStrokeBoundingBox = function (widthProperty, boundingBox) {
    var width = 0;
    if (widthProperty.keyframes) {
      for (var i = 0; i < widthProperty.keyframes.length; i += 1) {
        var kfw = widthProperty.keyframes[i].s;
        if (kfw > width) {
          width = kfw;
        }
      }
      width *= widthProperty.mult;
    } else {
      width = widthProperty.v * widthProperty.mult;
    }
    boundingBox.x -= width;
    boundingBox.xMax += width;
    boundingBox.y -= width;
    boundingBox.yMax += width;
  };
  HShapeElement.prototype.currentBoxContains = function (box) {
    return this.currentBBox.x <= box.x && this.currentBBox.y <= box.y && this.currentBBox.width + this.currentBBox.x >= box.x + box.width && this.currentBBox.height + this.currentBBox.y >= box.y + box.height;
  };
  HShapeElement.prototype.renderInnerContent = function () {
    this._renderShapeFrame();
    if (!this.hidden && (this._isFirstFrame || this._mdf)) {
      var tempBoundingBox = this.tempBoundingBox;
      var max = 999999;
      tempBoundingBox.x = max;
      tempBoundingBox.xMax = -max;
      tempBoundingBox.y = max;
      tempBoundingBox.yMax = -max;
      this.calculateBoundingBox(this.itemsData, tempBoundingBox);
      tempBoundingBox.width = tempBoundingBox.xMax < tempBoundingBox.x ? 0 : tempBoundingBox.xMax - tempBoundingBox.x;
      tempBoundingBox.height = tempBoundingBox.yMax < tempBoundingBox.y ? 0 : tempBoundingBox.yMax - tempBoundingBox.y;
      // var tempBoundingBox = this.shapeCont.getBBox();
      if (this.currentBoxContains(tempBoundingBox)) {
        return;
      }
      var changed = false;
      if (this.currentBBox.w !== tempBoundingBox.width) {
        this.currentBBox.w = tempBoundingBox.width;
        this.shapeCont.setAttribute('width', tempBoundingBox.width);
        changed = true;
      }
      if (this.currentBBox.h !== tempBoundingBox.height) {
        this.currentBBox.h = tempBoundingBox.height;
        this.shapeCont.setAttribute('height', tempBoundingBox.height);
        changed = true;
      }
      if (changed || this.currentBBox.x !== tempBoundingBox.x || this.currentBBox.y !== tempBoundingBox.y) {
        this.currentBBox.w = tempBoundingBox.width;
        this.currentBBox.h = tempBoundingBox.height;
        this.currentBBox.x = tempBoundingBox.x;
        this.currentBBox.y = tempBoundingBox.y;
        this.shapeCont.setAttribute('viewBox', this.currentBBox.x + ' ' + this.currentBBox.y + ' ' + this.currentBBox.w + ' ' + this.currentBBox.h);
        var shapeStyle = this.shapeCont.style;
        var shapeTransform = 'translate(' + this.currentBBox.x + 'px,' + this.currentBBox.y + 'px)';
        shapeStyle.transform = shapeTransform;
        shapeStyle.webkitTransform = shapeTransform;
      }
    }
  };

  function HTextElement(data, globalData, comp) {
    this.textSpans = [];
    this.textPaths = [];
    this.currentBBox = {
      x: 999999,
      y: -999999,
      h: 0,
      w: 0
    };
    this.renderType = 'svg';
    this.isMasked = false;
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, HBaseElement, HierarchyElement, FrameElement, RenderableDOMElement, ITextElement], HTextElement);
  HTextElement.prototype.createContent = function () {
    this.isMasked = this.checkMasks();
    if (this.isMasked) {
      this.renderType = 'svg';
      this.compW = this.comp.data.w;
      this.compH = this.comp.data.h;
      this.svgElement.setAttribute('width', this.compW);
      this.svgElement.setAttribute('height', this.compH);
      var g = createNS('g');
      this.maskedElement.appendChild(g);
      this.innerElem = g;
    } else {
      this.renderType = 'html';
      this.innerElem = this.layerElement;
    }
    this.checkParenting();
  };
  HTextElement.prototype.buildNewText = function () {
    var documentData = this.textProperty.currentData;
    this.renderedLetters = createSizedArray(documentData.l ? documentData.l.length : 0);
    var innerElemStyle = this.innerElem.style;
    var textColor = documentData.fc ? this.buildColor(documentData.fc) : 'rgba(0,0,0,0)';
    innerElemStyle.fill = textColor;
    innerElemStyle.color = textColor;
    if (documentData.sc) {
      innerElemStyle.stroke = this.buildColor(documentData.sc);
      innerElemStyle.strokeWidth = documentData.sw + 'px';
    }
    var fontData = this.globalData.fontManager.getFontByName(documentData.f);
    if (!this.globalData.fontManager.chars) {
      innerElemStyle.fontSize = documentData.finalSize + 'px';
      innerElemStyle.lineHeight = documentData.finalSize + 'px';
      if (fontData.fClass) {
        this.innerElem.className = fontData.fClass;
      } else {
        innerElemStyle.fontFamily = fontData.fFamily;
        var fWeight = documentData.fWeight;
        var fStyle = documentData.fStyle;
        innerElemStyle.fontStyle = fStyle;
        innerElemStyle.fontWeight = fWeight;
      }
    }
    var i;
    var len;
    var letters = documentData.l;
    len = letters.length;
    var tSpan;
    var tParent;
    var tCont;
    var matrixHelper = this.mHelper;
    var shapes;
    var shapeStr = '';
    var cnt = 0;
    for (i = 0; i < len; i += 1) {
      if (this.globalData.fontManager.chars) {
        if (!this.textPaths[cnt]) {
          tSpan = createNS('path');
          tSpan.setAttribute('stroke-linecap', lineCapEnum[1]);
          tSpan.setAttribute('stroke-linejoin', lineJoinEnum[2]);
          tSpan.setAttribute('stroke-miterlimit', '4');
        } else {
          tSpan = this.textPaths[cnt];
        }
        if (!this.isMasked) {
          if (this.textSpans[cnt]) {
            tParent = this.textSpans[cnt];
            tCont = tParent.children[0];
          } else {
            tParent = createTag('div');
            tParent.style.lineHeight = 0;
            tCont = createNS('svg');
            tCont.appendChild(tSpan);
            styleDiv(tParent);
          }
        }
      } else if (!this.isMasked) {
        if (this.textSpans[cnt]) {
          tParent = this.textSpans[cnt];
          tSpan = this.textPaths[cnt];
        } else {
          tParent = createTag('span');
          styleDiv(tParent);
          tSpan = createTag('span');
          styleDiv(tSpan);
          tParent.appendChild(tSpan);
        }
      } else {
        tSpan = this.textPaths[cnt] ? this.textPaths[cnt] : createNS('text');
      }
      // tSpan.setAttribute('visibility', 'hidden');
      if (this.globalData.fontManager.chars) {
        var charData = this.globalData.fontManager.getCharData(documentData.finalText[i], fontData.fStyle, this.globalData.fontManager.getFontByName(documentData.f).fFamily);
        var shapeData;
        if (charData) {
          shapeData = charData.data;
        } else {
          shapeData = null;
        }
        matrixHelper.reset();
        if (shapeData && shapeData.shapes && shapeData.shapes.length) {
          shapes = shapeData.shapes[0].it;
          matrixHelper.scale(documentData.finalSize / 100, documentData.finalSize / 100);
          shapeStr = this.createPathShape(matrixHelper, shapes);
          tSpan.setAttribute('d', shapeStr);
        }
        if (!this.isMasked) {
          this.innerElem.appendChild(tParent);
          if (shapeData && shapeData.shapes) {
            // document.body.appendChild is needed to get exact measure of shape
            document.body.appendChild(tCont);
            var boundingBox = tCont.getBBox();
            tCont.setAttribute('width', boundingBox.width + 2);
            tCont.setAttribute('height', boundingBox.height + 2);
            tCont.setAttribute('viewBox', boundingBox.x - 1 + ' ' + (boundingBox.y - 1) + ' ' + (boundingBox.width + 2) + ' ' + (boundingBox.height + 2));
            var tContStyle = tCont.style;
            var tContTranslation = 'translate(' + (boundingBox.x - 1) + 'px,' + (boundingBox.y - 1) + 'px)';
            tContStyle.transform = tContTranslation;
            tContStyle.webkitTransform = tContTranslation;
            letters[i].yOffset = boundingBox.y - 1;
          } else {
            tCont.setAttribute('width', 1);
            tCont.setAttribute('height', 1);
          }
          tParent.appendChild(tCont);
        } else {
          this.innerElem.appendChild(tSpan);
        }
      } else {
        tSpan.textContent = letters[i].val;
        tSpan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
        if (!this.isMasked) {
          this.innerElem.appendChild(tParent);
          //
          var tStyle = tSpan.style;
          var tSpanTranslation = 'translate3d(0,' + -documentData.finalSize / 1.2 + 'px,0)';
          tStyle.transform = tSpanTranslation;
          tStyle.webkitTransform = tSpanTranslation;
        } else {
          this.innerElem.appendChild(tSpan);
        }
      }
      //
      if (!this.isMasked) {
        this.textSpans[cnt] = tParent;
      } else {
        this.textSpans[cnt] = tSpan;
      }
      this.textSpans[cnt].style.display = 'block';
      this.textPaths[cnt] = tSpan;
      cnt += 1;
    }
    while (cnt < this.textSpans.length) {
      this.textSpans[cnt].style.display = 'none';
      cnt += 1;
    }
  };
  HTextElement.prototype.renderInnerContent = function () {
    this.validateText();
    var svgStyle;
    if (this.data.singleShape) {
      if (!this._isFirstFrame && !this.lettersChangedFlag) {
        return;
      }
      if (this.isMasked && this.finalTransform._matMdf) {
        // Todo Benchmark if using this is better than getBBox
        this.svgElement.setAttribute('viewBox', -this.finalTransform.mProp.p.v[0] + ' ' + -this.finalTransform.mProp.p.v[1] + ' ' + this.compW + ' ' + this.compH);
        svgStyle = this.svgElement.style;
        var translation = 'translate(' + -this.finalTransform.mProp.p.v[0] + 'px,' + -this.finalTransform.mProp.p.v[1] + 'px)';
        svgStyle.transform = translation;
        svgStyle.webkitTransform = translation;
      }
    }
    this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
    if (!this.lettersChangedFlag && !this.textAnimator.lettersChangedFlag) {
      return;
    }
    var i;
    var len;
    var count = 0;
    var renderedLetters = this.textAnimator.renderedLetters;
    var letters = this.textProperty.currentData.l;
    len = letters.length;
    var renderedLetter;
    var textSpan;
    var textPath;
    for (i = 0; i < len; i += 1) {
      if (letters[i].n) {
        count += 1;
      } else {
        textSpan = this.textSpans[i];
        textPath = this.textPaths[i];
        renderedLetter = renderedLetters[count];
        count += 1;
        if (renderedLetter._mdf.m) {
          if (!this.isMasked) {
            textSpan.style.webkitTransform = renderedLetter.m;
            textSpan.style.transform = renderedLetter.m;
          } else {
            textSpan.setAttribute('transform', renderedLetter.m);
          }
        }
        /// /textSpan.setAttribute('opacity',renderedLetter.o);
        textSpan.style.opacity = renderedLetter.o;
        if (renderedLetter.sw && renderedLetter._mdf.sw) {
          textPath.setAttribute('stroke-width', renderedLetter.sw);
        }
        if (renderedLetter.sc && renderedLetter._mdf.sc) {
          textPath.setAttribute('stroke', renderedLetter.sc);
        }
        if (renderedLetter.fc && renderedLetter._mdf.fc) {
          textPath.setAttribute('fill', renderedLetter.fc);
          textPath.style.color = renderedLetter.fc;
        }
      }
    }
    if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
      var boundingBox = this.innerElem.getBBox();
      if (this.currentBBox.w !== boundingBox.width) {
        this.currentBBox.w = boundingBox.width;
        this.svgElement.setAttribute('width', boundingBox.width);
      }
      if (this.currentBBox.h !== boundingBox.height) {
        this.currentBBox.h = boundingBox.height;
        this.svgElement.setAttribute('height', boundingBox.height);
      }
      var margin = 1;
      if (this.currentBBox.w !== boundingBox.width + margin * 2 || this.currentBBox.h !== boundingBox.height + margin * 2 || this.currentBBox.x !== boundingBox.x - margin || this.currentBBox.y !== boundingBox.y - margin) {
        this.currentBBox.w = boundingBox.width + margin * 2;
        this.currentBBox.h = boundingBox.height + margin * 2;
        this.currentBBox.x = boundingBox.x - margin;
        this.currentBBox.y = boundingBox.y - margin;
        this.svgElement.setAttribute('viewBox', this.currentBBox.x + ' ' + this.currentBBox.y + ' ' + this.currentBBox.w + ' ' + this.currentBBox.h);
        svgStyle = this.svgElement.style;
        var svgTransform = 'translate(' + this.currentBBox.x + 'px,' + this.currentBBox.y + 'px)';
        svgStyle.transform = svgTransform;
        svgStyle.webkitTransform = svgTransform;
      }
    }
  };

  function HCameraElement(data, globalData, comp) {
    this.initFrame();
    this.initBaseData(data, globalData, comp);
    this.initHierarchy();
    var getProp = PropertyFactory.getProp;
    this.pe = getProp(this, data.pe, 0, 0, this);
    if (data.ks.p.s) {
      this.px = getProp(this, data.ks.p.x, 1, 0, this);
      this.py = getProp(this, data.ks.p.y, 1, 0, this);
      this.pz = getProp(this, data.ks.p.z, 1, 0, this);
    } else {
      this.p = getProp(this, data.ks.p, 1, 0, this);
    }
    if (data.ks.a) {
      this.a = getProp(this, data.ks.a, 1, 0, this);
    }
    if (data.ks.or.k.length && data.ks.or.k[0].to) {
      var i;
      var len = data.ks.or.k.length;
      for (i = 0; i < len; i += 1) {
        data.ks.or.k[i].to = null;
        data.ks.or.k[i].ti = null;
      }
    }
    this.or = getProp(this, data.ks.or, 1, degToRads, this);
    this.or.sh = true;
    this.rx = getProp(this, data.ks.rx, 0, degToRads, this);
    this.ry = getProp(this, data.ks.ry, 0, degToRads, this);
    this.rz = getProp(this, data.ks.rz, 0, degToRads, this);
    this.mat = new Matrix();
    this._prevMat = new Matrix();
    this._isFirstFrame = true;

    // TODO: find a better way to make the HCamera element to be compatible with the LayerInterface and TransformInterface.
    this.finalTransform = {
      mProp: this
    };
  }
  extendPrototype([BaseElement, FrameElement, HierarchyElement], HCameraElement);
  HCameraElement.prototype.setup = function () {
    var i;
    var len = this.comp.threeDElements.length;
    var comp;
    var perspectiveStyle;
    var containerStyle;
    for (i = 0; i < len; i += 1) {
      // [perspectiveElem,container]
      comp = this.comp.threeDElements[i];
      if (comp.type === '3d') {
        perspectiveStyle = comp.perspectiveElem.style;
        containerStyle = comp.container.style;
        var perspective = this.pe.v + 'px';
        var origin = '0px 0px 0px';
        var matrix = 'matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)';
        perspectiveStyle.perspective = perspective;
        perspectiveStyle.webkitPerspective = perspective;
        containerStyle.transformOrigin = origin;
        containerStyle.mozTransformOrigin = origin;
        containerStyle.webkitTransformOrigin = origin;
        perspectiveStyle.transform = matrix;
        perspectiveStyle.webkitTransform = matrix;
      }
    }
  };
  HCameraElement.prototype.createElements = function () {};
  HCameraElement.prototype.hide = function () {};
  HCameraElement.prototype.renderFrame = function () {
    var _mdf = this._isFirstFrame;
    var i;
    var len;
    if (this.hierarchy) {
      len = this.hierarchy.length;
      for (i = 0; i < len; i += 1) {
        _mdf = this.hierarchy[i].finalTransform.mProp._mdf || _mdf;
      }
    }
    if (_mdf || this.pe._mdf || this.p && this.p._mdf || this.px && (this.px._mdf || this.py._mdf || this.pz._mdf) || this.rx._mdf || this.ry._mdf || this.rz._mdf || this.or._mdf || this.a && this.a._mdf) {
      this.mat.reset();
      if (this.hierarchy) {
        len = this.hierarchy.length - 1;
        for (i = len; i >= 0; i -= 1) {
          var mTransf = this.hierarchy[i].finalTransform.mProp;
          this.mat.translate(-mTransf.p.v[0], -mTransf.p.v[1], mTransf.p.v[2]);
          this.mat.rotateX(-mTransf.or.v[0]).rotateY(-mTransf.or.v[1]).rotateZ(mTransf.or.v[2]);
          this.mat.rotateX(-mTransf.rx.v).rotateY(-mTransf.ry.v).rotateZ(mTransf.rz.v);
          this.mat.scale(1 / mTransf.s.v[0], 1 / mTransf.s.v[1], 1 / mTransf.s.v[2]);
          this.mat.translate(mTransf.a.v[0], mTransf.a.v[1], mTransf.a.v[2]);
        }
      }
      if (this.p) {
        this.mat.translate(-this.p.v[0], -this.p.v[1], this.p.v[2]);
      } else {
        this.mat.translate(-this.px.v, -this.py.v, this.pz.v);
      }
      if (this.a) {
        var diffVector;
        if (this.p) {
          diffVector = [this.p.v[0] - this.a.v[0], this.p.v[1] - this.a.v[1], this.p.v[2] - this.a.v[2]];
        } else {
          diffVector = [this.px.v - this.a.v[0], this.py.v - this.a.v[1], this.pz.v - this.a.v[2]];
        }
        var mag = Math.sqrt(Math.pow(diffVector[0], 2) + Math.pow(diffVector[1], 2) + Math.pow(diffVector[2], 2));
        // var lookDir = getNormalizedPoint(getDiffVector(this.a.v,this.p.v));
        var lookDir = [diffVector[0] / mag, diffVector[1] / mag, diffVector[2] / mag];
        var lookLengthOnXZ = Math.sqrt(lookDir[2] * lookDir[2] + lookDir[0] * lookDir[0]);
        var mRotationX = Math.atan2(lookDir[1], lookLengthOnXZ);
        var mRotationY = Math.atan2(lookDir[0], -lookDir[2]);
        this.mat.rotateY(mRotationY).rotateX(-mRotationX);
      }
      this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v);
      this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]);
      this.mat.translate(this.globalData.compSize.w / 2, this.globalData.compSize.h / 2, 0);
      this.mat.translate(0, 0, this.pe.v);
      var hasMatrixChanged = !this._prevMat.equals(this.mat);
      if ((hasMatrixChanged || this.pe._mdf) && this.comp.threeDElements) {
        len = this.comp.threeDElements.length;
        var comp;
        var perspectiveStyle;
        var containerStyle;
        for (i = 0; i < len; i += 1) {
          comp = this.comp.threeDElements[i];
          if (comp.type === '3d') {
            if (hasMatrixChanged) {
              var matValue = this.mat.toCSS();
              containerStyle = comp.container.style;
              containerStyle.transform = matValue;
              containerStyle.webkitTransform = matValue;
            }
            if (this.pe._mdf) {
              perspectiveStyle = comp.perspectiveElem.style;
              perspectiveStyle.perspective = this.pe.v + 'px';
              perspectiveStyle.webkitPerspective = this.pe.v + 'px';
            }
          }
        }
        this.mat.clone(this._prevMat);
      }
    }
    this._isFirstFrame = false;
  };
  HCameraElement.prototype.prepareFrame = function (num) {
    this.prepareProperties(num, true);
  };
  HCameraElement.prototype.destroy = function () {};
  HCameraElement.prototype.getBaseElement = function () {
    return null;
  };

  function HImageElement(data, globalData, comp) {
    this.assetData = globalData.getAssetData(data.refId);
    this.initElement(data, globalData, comp);
  }
  extendPrototype([BaseElement, TransformElement, HBaseElement, HSolidElement, HierarchyElement, FrameElement, RenderableElement], HImageElement);
  HImageElement.prototype.createContent = function () {
    var assetPath = this.globalData.getAssetsPath(this.assetData);
    var img = new Image();
    if (this.data.hasMask) {
      this.imageElem = createNS('image');
      this.imageElem.setAttribute('width', this.assetData.w + 'px');
      this.imageElem.setAttribute('height', this.assetData.h + 'px');
      this.imageElem.setAttributeNS('http://www.w3.org/1999/xlink', 'href', assetPath);
      this.layerElement.appendChild(this.imageElem);
      this.baseElement.setAttribute('width', this.assetData.w);
      this.baseElement.setAttribute('height', this.assetData.h);
    } else {
      this.layerElement.appendChild(img);
    }
    img.crossOrigin = 'anonymous';
    img.src = assetPath;
    if (this.data.ln) {
      this.baseElement.setAttribute('id', this.data.ln);
    }
  };

  function HybridRendererBase(animationItem, config) {
    this.animationItem = animationItem;
    this.layers = null;
    this.renderedFrame = -1;
    this.renderConfig = {
      className: config && config.className || '',
      imagePreserveAspectRatio: config && config.imagePreserveAspectRatio || 'xMidYMid slice',
      hideOnTransparent: !(config && config.hideOnTransparent === false),
      filterSize: {
        width: config && config.filterSize && config.filterSize.width || '400%',
        height: config && config.filterSize && config.filterSize.height || '400%',
        x: config && config.filterSize && config.filterSize.x || '-100%',
        y: config && config.filterSize && config.filterSize.y || '-100%'
      }
    };
    this.globalData = {
      _mdf: false,
      frameNum: -1,
      renderConfig: this.renderConfig
    };
    this.pendingElements = [];
    this.elements = [];
    this.threeDElements = [];
    this.destroyed = false;
    this.camera = null;
    this.supports3d = true;
    this.rendererType = 'html';
  }
  extendPrototype([BaseRenderer], HybridRendererBase);
  HybridRendererBase.prototype.buildItem = SVGRenderer.prototype.buildItem;
  HybridRendererBase.prototype.checkPendingElements = function () {
    while (this.pendingElements.length) {
      var element = this.pendingElements.pop();
      element.checkParenting();
    }
  };
  HybridRendererBase.prototype.appendElementInPos = function (element, pos) {
    var newDOMElement = element.getBaseElement();
    if (!newDOMElement) {
      return;
    }
    var layer = this.layers[pos];
    if (!layer.ddd || !this.supports3d) {
      if (this.threeDElements) {
        this.addTo3dContainer(newDOMElement, pos);
      } else {
        var i = 0;
        var nextDOMElement;
        var nextLayer;
        var tmpDOMElement;
        while (i < pos) {
          if (this.elements[i] && this.elements[i] !== true && this.elements[i].getBaseElement) {
            nextLayer = this.elements[i];
            tmpDOMElement = this.layers[i].ddd ? this.getThreeDContainerByPos(i) : nextLayer.getBaseElement();
            nextDOMElement = tmpDOMElement || nextDOMElement;
          }
          i += 1;
        }
        if (nextDOMElement) {
          if (!layer.ddd || !this.supports3d) {
            this.layerElement.insertBefore(newDOMElement, nextDOMElement);
          }
        } else if (!layer.ddd || !this.supports3d) {
          this.layerElement.appendChild(newDOMElement);
        }
      }
    } else {
      this.addTo3dContainer(newDOMElement, pos);
    }
  };
  HybridRendererBase.prototype.createShape = function (data) {
    if (!this.supports3d) {
      return new SVGShapeElement(data, this.globalData, this);
    }
    return new HShapeElement(data, this.globalData, this);
  };
  HybridRendererBase.prototype.createText = function (data) {
    if (!this.supports3d) {
      return new SVGTextLottieElement(data, this.globalData, this);
    }
    return new HTextElement(data, this.globalData, this);
  };
  HybridRendererBase.prototype.createCamera = function (data) {
    this.camera = new HCameraElement(data, this.globalData, this);
    return this.camera;
  };
  HybridRendererBase.prototype.createImage = function (data) {
    if (!this.supports3d) {
      return new IImageElement(data, this.globalData, this);
    }
    return new HImageElement(data, this.globalData, this);
  };
  HybridRendererBase.prototype.createSolid = function (data) {
    if (!this.supports3d) {
      return new ISolidElement(data, this.globalData, this);
    }
    return new HSolidElement(data, this.globalData, this);
  };
  HybridRendererBase.prototype.createNull = SVGRenderer.prototype.createNull;
  HybridRendererBase.prototype.getThreeDContainerByPos = function (pos) {
    var i = 0;
    var len = this.threeDElements.length;
    while (i < len) {
      if (this.threeDElements[i].startPos <= pos && this.threeDElements[i].endPos >= pos) {
        return this.threeDElements[i].perspectiveElem;
      }
      i += 1;
    }
    return null;
  };
  HybridRendererBase.prototype.createThreeDContainer = function (pos, type) {
    var perspectiveElem = createTag('div');
    var style;
    var containerStyle;
    styleDiv(perspectiveElem);
    var container = createTag('div');
    styleDiv(container);
    if (type === '3d') {
      style = perspectiveElem.style;
      style.width = this.globalData.compSize.w + 'px';
      style.height = this.globalData.compSize.h + 'px';
      var center = '50% 50%';
      style.webkitTransformOrigin = center;
      style.mozTransformOrigin = center;
      style.transformOrigin = center;
      containerStyle = container.style;
      var matrix = 'matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)';
      containerStyle.transform = matrix;
      containerStyle.webkitTransform = matrix;
    }
    perspectiveElem.appendChild(container);
    // this.resizerElem.appendChild(perspectiveElem);
    var threeDContainerData = {
      container: container,
      perspectiveElem: perspectiveElem,
      startPos: pos,
      endPos: pos,
      type: type
    };
    this.threeDElements.push(threeDContainerData);
    return threeDContainerData;
  };
  HybridRendererBase.prototype.build3dContainers = function () {
    var i;
    var len = this.layers.length;
    var lastThreeDContainerData;
    var currentContainer = '';
    for (i = 0; i < len; i += 1) {
      if (this.layers[i].ddd && this.layers[i].ty !== 3) {
        if (currentContainer !== '3d') {
          currentContainer = '3d';
          lastThreeDContainerData = this.createThreeDContainer(i, '3d');
        }
        lastThreeDContainerData.endPos = Math.max(lastThreeDContainerData.endPos, i);
      } else {
        if (currentContainer !== '2d') {
          currentContainer = '2d';
          lastThreeDContainerData = this.createThreeDContainer(i, '2d');
        }
        lastThreeDContainerData.endPos = Math.max(lastThreeDContainerData.endPos, i);
      }
    }
    len = this.threeDElements.length;
    for (i = len - 1; i >= 0; i -= 1) {
      this.resizerElem.appendChild(this.threeDElements[i].perspectiveElem);
    }
  };
  HybridRendererBase.prototype.addTo3dContainer = function (elem, pos) {
    var i = 0;
    var len = this.threeDElements.length;
    while (i < len) {
      if (pos <= this.threeDElements[i].endPos) {
        var j = this.threeDElements[i].startPos;
        var nextElement;
        while (j < pos) {
          if (this.elements[j] && this.elements[j].getBaseElement) {
            nextElement = this.elements[j].getBaseElement();
          }
          j += 1;
        }
        if (nextElement) {
          this.threeDElements[i].container.insertBefore(elem, nextElement);
        } else {
          this.threeDElements[i].container.appendChild(elem);
        }
        break;
      }
      i += 1;
    }
  };
  HybridRendererBase.prototype.configAnimation = function (animData) {
    var resizerElem = createTag('div');
    var wrapper = this.animationItem.wrapper;
    var style = resizerElem.style;
    style.width = animData.w + 'px';
    style.height = animData.h + 'px';
    this.resizerElem = resizerElem;
    styleDiv(resizerElem);
    style.transformStyle = 'flat';
    style.mozTransformStyle = 'flat';
    style.webkitTransformStyle = 'flat';
    if (this.renderConfig.className) {
      resizerElem.setAttribute('class', this.renderConfig.className);
    }
    wrapper.appendChild(resizerElem);
    style.overflow = 'hidden';
    var svg = createNS('svg');
    svg.setAttribute('width', '1');
    svg.setAttribute('height', '1');
    styleDiv(svg);
    this.resizerElem.appendChild(svg);
    var defs = createNS('defs');
    svg.appendChild(defs);
    this.data = animData;
    // Mask animation
    this.setupGlobalData(animData, svg);
    this.globalData.defs = defs;
    this.layers = animData.layers;
    this.layerElement = this.resizerElem;
    this.build3dContainers();
    this.updateContainerSize();
  };
  HybridRendererBase.prototype.destroy = function () {
    if (this.animationItem.wrapper) {
      this.animationItem.wrapper.innerText = '';
    }
    this.animationItem.container = null;
    this.globalData.defs = null;
    var i;
    var len = this.layers ? this.layers.length : 0;
    for (i = 0; i < len; i += 1) {
      if (this.elements[i] && this.elements[i].destroy) {
        this.elements[i].destroy();
      }
    }
    this.elements.length = 0;
    this.destroyed = true;
    this.animationItem = null;
  };
  HybridRendererBase.prototype.updateContainerSize = function () {
    var elementWidth = this.animationItem.wrapper.offsetWidth;
    var elementHeight = this.animationItem.wrapper.offsetHeight;
    var elementRel = elementWidth / elementHeight;
    var animationRel = this.globalData.compSize.w / this.globalData.compSize.h;
    var sx;
    var sy;
    var tx;
    var ty;
    if (animationRel > elementRel) {
      sx = elementWidth / this.globalData.compSize.w;
      sy = elementWidth / this.globalData.compSize.w;
      tx = 0;
      ty = (elementHeight - this.globalData.compSize.h * (elementWidth / this.globalData.compSize.w)) / 2;
    } else {
      sx = elementHeight / this.globalData.compSize.h;
      sy = elementHeight / this.globalData.compSize.h;
      tx = (elementWidth - this.globalData.compSize.w * (elementHeight / this.globalData.compSize.h)) / 2;
      ty = 0;
    }
    var style = this.resizerElem.style;
    style.webkitTransform = 'matrix3d(' + sx + ',0,0,0,0,' + sy + ',0,0,0,0,1,0,' + tx + ',' + ty + ',0,1)';
    style.transform = style.webkitTransform;
  };
  HybridRendererBase.prototype.renderFrame = SVGRenderer.prototype.renderFrame;
  HybridRendererBase.prototype.hide = function () {
    this.resizerElem.style.display = 'none';
  };
  HybridRendererBase.prototype.show = function () {
    this.resizerElem.style.display = 'block';
  };
  HybridRendererBase.prototype.initItems = function () {
    this.buildAllItems();
    if (this.camera) {
      this.camera.setup();
    } else {
      var cWidth = this.globalData.compSize.w;
      var cHeight = this.globalData.compSize.h;
      var i;
      var len = this.threeDElements.length;
      for (i = 0; i < len; i += 1) {
        var style = this.threeDElements[i].perspectiveElem.style;
        style.webkitPerspective = Math.sqrt(Math.pow(cWidth, 2) + Math.pow(cHeight, 2)) + 'px';
        style.perspective = style.webkitPerspective;
      }
    }
  };
  HybridRendererBase.prototype.searchExtraCompositions = function (assets) {
    var i;
    var len = assets.length;
    var floatingContainer = createTag('div');
    for (i = 0; i < len; i += 1) {
      if (assets[i].xt) {
        var comp = this.createComp(assets[i], floatingContainer, this.globalData.comp, null);
        comp.initExpressions();
        this.globalData.projectInterface.registerComposition(comp);
      }
    }
  };

  function HCompElement(data, globalData, comp) {
    this.layers = data.layers;
    this.supports3d = !data.hasMask;
    this.completeLayers = false;
    this.pendingElements = [];
    this.elements = this.layers ? createSizedArray(this.layers.length) : [];
    this.initElement(data, globalData, comp);
    this.tm = data.tm ? PropertyFactory.getProp(this, data.tm, 0, globalData.frameRate, this) : {
      _placeholder: true
    };
  }
  extendPrototype([HybridRendererBase, ICompElement, HBaseElement], HCompElement);
  HCompElement.prototype._createBaseContainerElements = HCompElement.prototype.createContainerElements;
  HCompElement.prototype.createContainerElements = function () {
    this._createBaseContainerElements();
    // divElement.style.clip = 'rect(0px, '+this.data.w+'px, '+this.data.h+'px, 0px)';
    if (this.data.hasMask) {
      this.svgElement.setAttribute('width', this.data.w);
      this.svgElement.setAttribute('height', this.data.h);
      this.transformedElement = this.baseElement;
    } else {
      this.transformedElement = this.layerElement;
    }
  };
  HCompElement.prototype.addTo3dContainer = function (elem, pos) {
    var j = 0;
    var nextElement;
    while (j < pos) {
      if (this.elements[j] && this.elements[j].getBaseElement) {
        nextElement = this.elements[j].getBaseElement();
      }
      j += 1;
    }
    if (nextElement) {
      this.layerElement.insertBefore(elem, nextElement);
    } else {
      this.layerElement.appendChild(elem);
    }
  };
  HCompElement.prototype.createComp = function (data) {
    if (!this.supports3d) {
      return new SVGCompElement(data, this.globalData, this);
    }
    return new HCompElement(data, this.globalData, this);
  };

  function HybridRenderer(animationItem, config) {
    this.animationItem = animationItem;
    this.layers = null;
    this.renderedFrame = -1;
    this.renderConfig = {
      className: config && config.className || '',
      imagePreserveAspectRatio: config && config.imagePreserveAspectRatio || 'xMidYMid slice',
      hideOnTransparent: !(config && config.hideOnTransparent === false),
      filterSize: {
        width: config && config.filterSize && config.filterSize.width || '400%',
        height: config && config.filterSize && config.filterSize.height || '400%',
        x: config && config.filterSize && config.filterSize.x || '-100%',
        y: config && config.filterSize && config.filterSize.y || '-100%'
      },
      runExpressions: !config || config.runExpressions === undefined || config.runExpressions
    };
    this.globalData = {
      _mdf: false,
      frameNum: -1,
      renderConfig: this.renderConfig
    };
    this.pendingElements = [];
    this.elements = [];
    this.threeDElements = [];
    this.destroyed = false;
    this.camera = null;
    this.supports3d = true;
    this.rendererType = 'html';
  }
  extendPrototype([HybridRendererBase], HybridRenderer);
  HybridRenderer.prototype.createComp = function (data) {
    if (!this.supports3d) {
      return new SVGCompElement(data, this.globalData, this);
    }
    return new HCompElement(data, this.globalData, this);
  };

  var CompExpressionInterface = function () {
    return function (comp) {
      function _thisLayerFunction(name) {
        var i = 0;
        var len = comp.layers.length;
        while (i < len) {
          if (comp.layers[i].nm === name || comp.layers[i].ind === name) {
            return comp.elements[i].layerInterface;
          }
          i += 1;
        }
        return null;
        // return {active:false};
      }
      Object.defineProperty(_thisLayerFunction, '_name', {
        value: comp.data.nm
      });
      _thisLayerFunction.layer = _thisLayerFunction;
      _thisLayerFunction.pixelAspect = 1;
      _thisLayerFunction.height = comp.data.h || comp.globalData.compSize.h;
      _thisLayerFunction.width = comp.data.w || comp.globalData.compSize.w;
      _thisLayerFunction.pixelAspect = 1;
      _thisLayerFunction.frameDuration = 1 / comp.globalData.frameRate;
      _thisLayerFunction.displayStartTime = 0;
      _thisLayerFunction.numLayers = comp.layers.length;
      return _thisLayerFunction;
    };
  }();

  function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
  /* eslint-disable */
  /*
   Copyright 2014 David Bau.

   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
   "Software"), to deal in the Software without restriction, including
   without limitation the rights to use, copy, modify, merge, publish,
   distribute, sublicense, and/or sell copies of the Software, and to
   permit persons to whom the Software is furnished to do so, subject to
   the following conditions:

   The above copyright notice and this permission notice shall be
   included in all copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
   CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

   */

  function seedRandom(pool, math) {
    //
    // The following constants are related to IEEE 754 limits.
    //
    var global = this,
      width = 256,
      // each RC4 output is 0 <= x < 256
      chunks = 6,
      // at least six RC4 outputs for each double
      digits = 52,
      // there are 52 significant digits in a double
      rngname = 'random',
      // rngname: name for Math.random and Math.seedrandom
      startdenom = math.pow(width, chunks),
      significance = math.pow(2, digits),
      overflow = significance * 2,
      mask = width - 1,
      nodecrypto; // node.js crypto module, initialized at the bottom.

    //
    // seedrandom()
    // This is the seedrandom function described above.
    //
    function seedrandom(seed, options, callback) {
      var key = [];
      options = options === true ? {
        entropy: true
      } : options || {};

      // Flatten the seed string or build one from local entropy if needed.
      var shortseed = mixkey(flatten(options.entropy ? [seed, tostring(pool)] : seed === null ? autoseed() : seed, 3), key);

      // Use the seed to initialize an ARC4 generator.
      var arc4 = new ARC4(key);

      // This function returns a random double in [0, 1) that contains
      // randomness in every bit of the mantissa of the IEEE 754 value.
      var prng = function prng() {
        var n = arc4.g(chunks),
          // Start with a numerator n < 2 ^ 48
          d = startdenom,
          //   and denominator d = 2 ^ 48.
          x = 0; //   and no 'extra last byte'.
        while (n < significance) {
          // Fill up all significant digits by
          n = (n + x) * width; //   shifting numerator and
          d *= width; //   denominator and generating a
          x = arc4.g(1); //   new least-significant-byte.
        }
        while (n >= overflow) {
          // To avoid rounding up, before adding
          n /= 2; //   last byte, shift everything
          d /= 2; //   right using integer math until
          x >>>= 1; //   we have exactly the desired bits.
        }
        return (n + x) / d; // Form the number within [0, 1).
      };
      prng.int32 = function () {
        return arc4.g(4) | 0;
      };
      prng.quick = function () {
        return arc4.g(4) / 0x100000000;
      };
      prng["double"] = prng;

      // Mix the randomness into accumulated entropy.
      mixkey(tostring(arc4.S), pool);

      // Calling convention: what to return as a function of prng, seed, is_math.
      return (options.pass || callback || function (prng, seed, is_math_call, state) {
        if (state) {
          // Load the arc4 state from the given state if it has an S array.
          if (state.S) {
            copy(state, arc4);
          }
          // Only provide the .state method if requested via options.state.
          prng.state = function () {
            return copy(arc4, {});
          };
        }

        // If called as a method of Math (Math.seedrandom()), mutate
        // Math.random because that is how seedrandom.js has worked since v1.0.
        if (is_math_call) {
          math[rngname] = prng;
          return seed;
        }

        // Otherwise, it is a newer calling convention, so return the
        // prng directly.
        else return prng;
      })(prng, shortseed, 'global' in options ? options.global : this == math, options.state);
    }
    math['seed' + rngname] = seedrandom;

    //
    // ARC4
    //
    // An ARC4 implementation.  The constructor takes a key in the form of
    // an array of at most (width) integers that should be 0 <= x < (width).
    //
    // The g(count) method returns a pseudorandom integer that concatenates
    // the next (count) outputs from ARC4.  Its return value is a number x
    // that is in the range 0 <= x < (width ^ count).
    //
    function ARC4(key) {
      var t,
        keylen = key.length,
        me = this,
        i = 0,
        j = me.i = me.j = 0,
        s = me.S = [];

      // The empty key [] is treated as [0].
      if (!keylen) {
        key = [keylen++];
      }

      // Set up S using the standard key scheduling algorithm.
      while (i < width) {
        s[i] = i++;
      }
      for (i = 0; i < width; i++) {
        s[i] = s[j = mask & j + key[i % keylen] + (t = s[i])];
        s[j] = t;
      }

      // The "g" method returns the next (count) outputs as one number.
      me.g = function (count) {
        // Using instance members instead of closure state nearly doubles speed.
        var t,
          r = 0,
          i = me.i,
          j = me.j,
          s = me.S;
        while (count--) {
          t = s[i = mask & i + 1];
          r = r * width + s[mask & (s[i] = s[j = mask & j + t]) + (s[j] = t)];
        }
        me.i = i;
        me.j = j;
        return r;
        // For robust unpredictability, the function call below automatically
        // discards an initial batch of values.  This is called RC4-drop[256].
        // See http://google.com/search?q=rsa+fluhrer+response&btnI
      };
    }

    //
    // copy()
    // Copies internal state of ARC4 to or from a plain object.
    //
    function copy(f, t) {
      t.i = f.i;
      t.j = f.j;
      t.S = f.S.slice();
      return t;
    }

    //
    // flatten()
    // Converts an object tree to nested arrays of strings.
    //
    function flatten(obj, depth) {
      var result = [],
        typ = _typeof$2(obj),
        prop;
      if (depth && typ == 'object') {
        for (prop in obj) {
          try {
            result.push(flatten(obj[prop], depth - 1));
          } catch (e) {}
        }
      }
      return result.length ? result : typ == 'string' ? obj : obj + '\0';
    }

    //
    // mixkey()
    // Mixes a string seed into a key that is an array of integers, and
    // returns a shortened string seed that is equivalent to the result key.
    //
    function mixkey(seed, key) {
      var stringseed = seed + '',
        smear,
        j = 0;
      while (j < stringseed.length) {
        key[mask & j] = mask & (smear ^= key[mask & j] * 19) + stringseed.charCodeAt(j++);
      }
      return tostring(key);
    }

    //
    // autoseed()
    // Returns an object for autoseeding, using window.crypto and Node crypto
    // module if available.
    //
    function autoseed() {
      try {
        if (nodecrypto) {
          return tostring(nodecrypto.randomBytes(width));
        }
        var out = new Uint8Array(width);
        (global.crypto || global.msCrypto).getRandomValues(out);
        return tostring(out);
      } catch (e) {
        var browser = global.navigator,
          plugins = browser && browser.plugins;
        return [+new Date(), global, plugins, global.screen, tostring(pool)];
      }
    }

    //
    // tostring()
    // Converts an array of charcodes to a string
    //
    function tostring(a) {
      return String.fromCharCode.apply(0, a);
    }

    //
    // When seedrandom.js is loaded, we immediately mix a few bits
    // from the built-in RNG into the entropy pool.  Because we do
    // not want to interfere with deterministic PRNG state later,
    // seedrandom will not call math.random on its own again after
    // initialization.
    //
    mixkey(math.random(), pool);

    //
    // Nodejs and AMD support: export the implementation as a module using
    // either convention.
    //

    // End anonymous scope, and pass initial values.
  }
  ;
  function initialize$2(BMMath) {
    seedRandom([], BMMath);
  }

  var propTypes = {
    SHAPE: 'shape'
  };

  function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
  var ExpressionManager = function () {
    'use strict';

    var ob = {};
    var Math = BMMath;
    var window = null;
    var document = null;
    var XMLHttpRequest = null;
    var fetch = null;
    var frames = null;
    var _lottieGlobal = {};
    initialize$2(BMMath);
    function resetFrame() {
      _lottieGlobal = {};
    }
    function $bm_isInstanceOfArray(arr) {
      return arr.constructor === Array || arr.constructor === Float32Array;
    }
    function isNumerable(tOfV, v) {
      return tOfV === 'number' || v instanceof Number || tOfV === 'boolean' || tOfV === 'string';
    }
    function $bm_neg(a) {
      var tOfA = _typeof$1(a);
      if (tOfA === 'number' || a instanceof Number || tOfA === 'boolean') {
        return -a;
      }
      if ($bm_isInstanceOfArray(a)) {
        var i;
        var lenA = a.length;
        var retArr = [];
        for (i = 0; i < lenA; i += 1) {
          retArr[i] = -a[i];
        }
        return retArr;
      }
      if (a.propType) {
        return a.v;
      }
      return -a;
    }
    var easeInBez = BezierFactory.getBezierEasing(0.333, 0, 0.833, 0.833, 'easeIn').get;
    var easeOutBez = BezierFactory.getBezierEasing(0.167, 0.167, 0.667, 1, 'easeOut').get;
    var easeInOutBez = BezierFactory.getBezierEasing(0.33, 0, 0.667, 1, 'easeInOut').get;
    function sum(a, b) {
      var tOfA = _typeof$1(a);
      var tOfB = _typeof$1(b);
      if (isNumerable(tOfA, a) && isNumerable(tOfB, b) || tOfA === 'string' || tOfB === 'string') {
        return a + b;
      }
      if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
        a = a.slice(0);
        a[0] += b;
        return a;
      }
      if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
        b = b.slice(0);
        b[0] = a + b[0];
        return b;
      }
      if ($bm_isInstanceOfArray(a) && $bm_isInstanceOfArray(b)) {
        var i = 0;
        var lenA = a.length;
        var lenB = b.length;
        var retArr = [];
        while (i < lenA || i < lenB) {
          if ((typeof a[i] === 'number' || a[i] instanceof Number) && (typeof b[i] === 'number' || b[i] instanceof Number)) {
            retArr[i] = a[i] + b[i];
          } else {
            retArr[i] = b[i] === undefined ? a[i] : a[i] || b[i];
          }
          i += 1;
        }
        return retArr;
      }
      return 0;
    }
    var add = sum;
    function sub(a, b) {
      var tOfA = _typeof$1(a);
      var tOfB = _typeof$1(b);
      if (isNumerable(tOfA, a) && isNumerable(tOfB, b)) {
        if (tOfA === 'string') {
          a = parseInt(a, 10);
        }
        if (tOfB === 'string') {
          b = parseInt(b, 10);
        }
        return a - b;
      }
      if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
        a = a.slice(0);
        a[0] -= b;
        return a;
      }
      if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
        b = b.slice(0);
        b[0] = a - b[0];
        return b;
      }
      if ($bm_isInstanceOfArray(a) && $bm_isInstanceOfArray(b)) {
        var i = 0;
        var lenA = a.length;
        var lenB = b.length;
        var retArr = [];
        while (i < lenA || i < lenB) {
          if ((typeof a[i] === 'number' || a[i] instanceof Number) && (typeof b[i] === 'number' || b[i] instanceof Number)) {
            retArr[i] = a[i] - b[i];
          } else {
            retArr[i] = b[i] === undefined ? a[i] : a[i] || b[i];
          }
          i += 1;
        }
        return retArr;
      }
      return 0;
    }
    function mul(a, b) {
      var tOfA = _typeof$1(a);
      var tOfB = _typeof$1(b);
      var arr;
      if (isNumerable(tOfA, a) && isNumerable(tOfB, b)) {
        return a * b;
      }
      var i;
      var len;
      if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
        len = a.length;
        arr = createTypedArray('float32', len);
        for (i = 0; i < len; i += 1) {
          arr[i] = a[i] * b;
        }
        return arr;
      }
      if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
        len = b.length;
        arr = createTypedArray('float32', len);
        for (i = 0; i < len; i += 1) {
          arr[i] = a * b[i];
        }
        return arr;
      }
      return 0;
    }
    function div(a, b) {
      var tOfA = _typeof$1(a);
      var tOfB = _typeof$1(b);
      var arr;
      if (isNumerable(tOfA, a) && isNumerable(tOfB, b)) {
        return a / b;
      }
      var i;
      var len;
      if ($bm_isInstanceOfArray(a) && isNumerable(tOfB, b)) {
        len = a.length;
        arr = createTypedArray('float32', len);
        for (i = 0; i < len; i += 1) {
          arr[i] = a[i] / b;
        }
        return arr;
      }
      if (isNumerable(tOfA, a) && $bm_isInstanceOfArray(b)) {
        len = b.length;
        arr = createTypedArray('float32', len);
        for (i = 0; i < len; i += 1) {
          arr[i] = a / b[i];
        }
        return arr;
      }
      return 0;
    }
    function mod(a, b) {
      if (typeof a === 'string') {
        a = parseInt(a, 10);
      }
      if (typeof b === 'string') {
        b = parseInt(b, 10);
      }
      return a % b;
    }
    var $bm_sum = sum;
    var $bm_sub = sub;
    var $bm_mul = mul;
    var $bm_div = div;
    var $bm_mod = mod;
    function clamp(num, min, max) {
      if (min > max) {
        var mm = max;
        max = min;
        min = mm;
      }
      return Math.min(Math.max(num, min), max);
    }
    function radiansToDegrees(val) {
      return val / degToRads;
    }
    var radians_to_degrees = radiansToDegrees;
    function degreesToRadians(val) {
      return val * degToRads;
    }
    var degrees_to_radians = radiansToDegrees;
    var helperLengthArray = [0, 0, 0, 0, 0, 0];
    function length(arr1, arr2) {
      if (typeof arr1 === 'number' || arr1 instanceof Number) {
        arr2 = arr2 || 0;
        return Math.abs(arr1 - arr2);
      }
      if (!arr2) {
        arr2 = helperLengthArray;
      }
      var i;
      var len = Math.min(arr1.length, arr2.length);
      var addedLength = 0;
      for (i = 0; i < len; i += 1) {
        addedLength += Math.pow(arr2[i] - arr1[i], 2);
      }
      return Math.sqrt(addedLength);
    }
    function normalize(vec) {
      return div(vec, length(vec));
    }
    function rgbToHsl(val) {
      var r = val[0];
      var g = val[1];
      var b = val[2];
      var max = Math.max(r, g, b);
      var min = Math.min(r, g, b);
      var h;
      var s;
      var l = (max + min) / 2;
      if (max === min) {
        h = 0; // achromatic
        s = 0; // achromatic
      } else {
        var d = max - min;
        s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
        switch (max) {
          case r:
            h = (g - b) / d + (g < b ? 6 : 0);
            break;
          case g:
            h = (b - r) / d + 2;
            break;
          case b:
            h = (r - g) / d + 4;
            break;
          default:
            break;
        }
        h /= 6;
      }
      return [h, s, l, val[3]];
    }
    function hue2rgb(p, q, t) {
      if (t < 0) t += 1;
      if (t > 1) t -= 1;
      if (t < 1 / 6) return p + (q - p) * 6 * t;
      if (t < 1 / 2) return q;
      if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
      return p;
    }
    function hslToRgb(val) {
      var h = val[0];
      var s = val[1];
      var l = val[2];
      var r;
      var g;
      var b;
      if (s === 0) {
        r = l; // achromatic
        b = l; // achromatic
        g = l; // achromatic
      } else {
        var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
        var p = 2 * l - q;
        r = hue2rgb(p, q, h + 1 / 3);
        g = hue2rgb(p, q, h);
        b = hue2rgb(p, q, h - 1 / 3);
      }
      return [r, g, b, val[3]];
    }
    function linear(t, tMin, tMax, value1, value2) {
      if (value1 === undefined || value2 === undefined) {
        value1 = tMin;
        value2 = tMax;
        tMin = 0;
        tMax = 1;
      }
      if (tMax < tMin) {
        var _tMin = tMax;
        tMax = tMin;
        tMin = _tMin;
      }
      if (t <= tMin) {
        return value1;
      }
      if (t >= tMax) {
        return value2;
      }
      var perc = tMax === tMin ? 0 : (t - tMin) / (tMax - tMin);
      if (!value1.length) {
        return value1 + (value2 - value1) * perc;
      }
      var i;
      var len = value1.length;
      var arr = createTypedArray('float32', len);
      for (i = 0; i < len; i += 1) {
        arr[i] = value1[i] + (value2[i] - value1[i]) * perc;
      }
      return arr;
    }
    function random(min, max) {
      if (max === undefined) {
        if (min === undefined) {
          min = 0;
          max = 1;
        } else {
          max = min;
          min = undefined;
        }
      }
      if (max.length) {
        var i;
        var len = max.length;
        if (!min) {
          min = createTypedArray('float32', len);
        }
        var arr = createTypedArray('float32', len);
        var rnd = BMMath.random();
        for (i = 0; i < len; i += 1) {
          arr[i] = min[i] + rnd * (max[i] - min[i]);
        }
        return arr;
      }
      if (min === undefined) {
        min = 0;
      }
      var rndm = BMMath.random();
      return min + rndm * (max - min);
    }
    function createPath(points, inTangents, outTangents, closed) {
      var i;
      var len = points.length;
      var path = shapePool.newElement();
      path.setPathData(!!closed, len);
      var arrPlaceholder = [0, 0];
      var inVertexPoint;
      var outVertexPoint;
      for (i = 0; i < len; i += 1) {
        inVertexPoint = inTangents && inTangents[i] ? inTangents[i] : arrPlaceholder;
        outVertexPoint = outTangents && outTangents[i] ? outTangents[i] : arrPlaceholder;
        path.setTripleAt(points[i][0], points[i][1], outVertexPoint[0] + points[i][0], outVertexPoint[1] + points[i][1], inVertexPoint[0] + points[i][0], inVertexPoint[1] + points[i][1], i, true);
      }
      return path;
    }
    function initiateExpression(elem, data, property) {
      // Bail out if we don't want expressions
      function noOp(_value) {
        return _value;
      }
      if (!elem.globalData.renderConfig.runExpressions) {
        return noOp;
      }
      var val = data.x;
      var needsVelocity = /velocity(?![\w\d])/.test(val);
      var _needsRandom = val.indexOf('random') !== -1;
      var elemType = elem.data.ty;
      var transform;
      var $bm_transform;
      var content;
      var effect;
      var thisProperty = property;
      thisProperty._name = elem.data.nm;
      thisProperty.valueAtTime = thisProperty.getValueAtTime;
      Object.defineProperty(thisProperty, 'value', {
        get: function get() {
          return thisProperty.v;
        }
      });
      elem.comp.frameDuration = 1 / elem.comp.globalData.frameRate;
      elem.comp.displayStartTime = 0;
      var inPoint = elem.data.ip / elem.comp.globalData.frameRate;
      var outPoint = elem.data.op / elem.comp.globalData.frameRate;
      var width = elem.data.sw ? elem.data.sw : 0;
      var height = elem.data.sh ? elem.data.sh : 0;
      var name = elem.data.nm;
      var loopIn;
      var loop_in;
      var loopOut;
      var loop_out;
      var smooth;
      var toWorld;
      var fromWorld;
      var fromComp;
      var toComp;
      var fromCompToSurface;
      var position;
      var rotation;
      var anchorPoint;
      var scale;
      var thisLayer;
      var thisComp;
      var mask;
      var valueAtTime;
      var velocityAtTime;
      var scoped_bm_rt;
      // val = val.replace(/(\\?"|')((http)(s)?(:\/))?\/.*?(\\?"|')/g, "\"\""); // deter potential network calls
      var expression_function = eval('[function _expression_function(){' + val + ';scoped_bm_rt=$bm_rt}]')[0]; // eslint-disable-line no-eval
      var numKeys = property.kf ? data.k.length : 0;
      var active = !this.data || this.data.hd !== true;
      var wiggle = function wiggle(freq, amp) {
        var iWiggle;
        var j;
        var lenWiggle = this.pv.length ? this.pv.length : 1;
        var addedAmps = createTypedArray('float32', lenWiggle);
        freq = 5;
        var iterations = Math.floor(time * freq);
        iWiggle = 0;
        j = 0;
        while (iWiggle < iterations) {
          // var rnd = BMMath.random();
          for (j = 0; j < lenWiggle; j += 1) {
            addedAmps[j] += -amp + amp * 2 * BMMath.random();
            // addedAmps[j] += -amp + amp*2*rnd;
          }
          iWiggle += 1;
        }
        // var rnd2 = BMMath.random();
        var periods = time * freq;
        var perc = periods - Math.floor(periods);
        var arr = createTypedArray('float32', lenWiggle);
        if (lenWiggle > 1) {
          for (j = 0; j < lenWiggle; j += 1) {
            arr[j] = this.pv[j] + addedAmps[j] + (-amp + amp * 2 * BMMath.random()) * perc;
            // arr[j] = this.pv[j] + addedAmps[j] + (-amp + amp*2*rnd)*perc;
            // arr[i] = this.pv[i] + addedAmp + amp1*perc + amp2*(1-perc);
          }
          return arr;
        }
        return this.pv + addedAmps[0] + (-amp + amp * 2 * BMMath.random()) * perc;
      }.bind(this);
      if (thisProperty.loopIn) {
        loopIn = thisProperty.loopIn.bind(thisProperty);
        loop_in = loopIn;
      }
      if (thisProperty.loopOut) {
        loopOut = thisProperty.loopOut.bind(thisProperty);
        loop_out = loopOut;
      }
      if (thisProperty.smooth) {
        smooth = thisProperty.smooth.bind(thisProperty);
      }
      function loopInDuration(type, duration) {
        return loopIn(type, duration, true);
      }
      function loopOutDuration(type, duration) {
        return loopOut(type, duration, true);
      }
      if (this.getValueAtTime) {
        valueAtTime = this.getValueAtTime.bind(this);
      }
      if (this.getVelocityAtTime) {
        velocityAtTime = this.getVelocityAtTime.bind(this);
      }
      var comp = elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);
      function lookAt(elem1, elem2) {
        var fVec = [elem2[0] - elem1[0], elem2[1] - elem1[1], elem2[2] - elem1[2]];
        var pitch = Math.atan2(fVec[0], Math.sqrt(fVec[1] * fVec[1] + fVec[2] * fVec[2])) / degToRads;
        var yaw = -Math.atan2(fVec[1], fVec[2]) / degToRads;
        return [yaw, pitch, 0];
      }
      function easeOut(t, tMin, tMax, val1, val2) {
        return applyEase(easeOutBez, t, tMin, tMax, val1, val2);
      }
      function easeIn(t, tMin, tMax, val1, val2) {
        return applyEase(easeInBez, t, tMin, tMax, val1, val2);
      }
      function ease(t, tMin, tMax, val1, val2) {
        return applyEase(easeInOutBez, t, tMin, tMax, val1, val2);
      }
      function applyEase(fn, t, tMin, tMax, val1, val2) {
        if (val1 === undefined) {
          val1 = tMin;
          val2 = tMax;
        } else {
          t = (t - tMin) / (tMax - tMin);
        }
        if (t > 1) {
          t = 1;
        } else if (t < 0) {
          t = 0;
        }
        var mult = fn(t);
        if ($bm_isInstanceOfArray(val1)) {
          var iKey;
          var lenKey = val1.length;
          var arr = createTypedArray('float32', lenKey);
          for (iKey = 0; iKey < lenKey; iKey += 1) {
            arr[iKey] = (val2[iKey] - val1[iKey]) * mult + val1[iKey];
          }
          return arr;
        }
        return (val2 - val1) * mult + val1;
      }
      function nearestKey(time) {
        var iKey;
        var lenKey = data.k.length;
        var index;
        var keyTime;
        if (!data.k.length || typeof data.k[0] === 'number') {
          index = 0;
          keyTime = 0;
        } else {
          index = -1;
          time *= elem.comp.globalData.frameRate;
          if (time < data.k[0].t) {
            index = 1;
            keyTime = data.k[0].t;
          } else {
            for (iKey = 0; iKey < lenKey - 1; iKey += 1) {
              if (time === data.k[iKey].t) {
                index = iKey + 1;
                keyTime = data.k[iKey].t;
                break;
              } else if (time > data.k[iKey].t && time < data.k[iKey + 1].t) {
                if (time - data.k[iKey].t > data.k[iKey + 1].t - time) {
                  index = iKey + 2;
                  keyTime = data.k[iKey + 1].t;
                } else {
                  index = iKey + 1;
                  keyTime = data.k[iKey].t;
                }
                break;
              }
            }
            if (index === -1) {
              index = iKey + 1;
              keyTime = data.k[iKey].t;
            }
          }
        }
        var obKey = {};
        obKey.index = index;
        obKey.time = keyTime / elem.comp.globalData.frameRate;
        return obKey;
      }
      function key(ind) {
        var obKey;
        var iKey;
        var lenKey;
        if (!data.k.length || typeof data.k[0] === 'number') {
          throw new Error('The property has no keyframe at index ' + ind);
        }
        ind -= 1;
        obKey = {
          time: data.k[ind].t / elem.comp.globalData.frameRate,
          value: []
        };
        var arr = Object.prototype.hasOwnProperty.call(data.k[ind], 's') ? data.k[ind].s : data.k[ind - 1].e;
        lenKey = arr.length;
        for (iKey = 0; iKey < lenKey; iKey += 1) {
          obKey[iKey] = arr[iKey];
          obKey.value[iKey] = arr[iKey];
        }
        return obKey;
      }
      function framesToTime(fr, fps) {
        if (!fps) {
          fps = elem.comp.globalData.frameRate;
        }
        return fr / fps;
      }
      function timeToFrames(t, fps) {
        if (!t && t !== 0) {
          t = time;
        }
        if (!fps) {
          fps = elem.comp.globalData.frameRate;
        }
        return t * fps;
      }
      function seedRandom(seed) {
        BMMath.seedrandom(randSeed + seed);
      }
      function sourceRectAtTime() {
        return elem.sourceRectAtTime();
      }
      function substring(init, end) {
        if (typeof value === 'string') {
          if (end === undefined) {
            return value.substring(init);
          }
          return value.substring(init, end);
        }
        return '';
      }
      function substr(init, end) {
        if (typeof value === 'string') {
          if (end === undefined) {
            return value.substr(init);
          }
          return value.substr(init, end);
        }
        return '';
      }
      function posterizeTime(framesPerSecond) {
        time = framesPerSecond === 0 ? 0 : Math.floor(time * framesPerSecond) / framesPerSecond;
        value = valueAtTime(time);
      }
      var time;
      var velocity;
      var value;
      var text;
      var textIndex;
      var textTotal;
      var selectorValue;
      var index = elem.data.ind;
      var hasParent = !!(elem.hierarchy && elem.hierarchy.length);
      var parent;
      var randSeed = Math.floor(Math.random() * 1000000);
      var globalData = elem.globalData;
      function executeExpression(_value) {
        // globalData.pushExpression();
        value = _value;
        if (this.frameExpressionId === elem.globalData.frameId && this.propType !== 'textSelector') {
          return value;
        }
        if (this.propType === 'textSelector') {
          textIndex = this.textIndex;
          textTotal = this.textTotal;
          selectorValue = this.selectorValue;
        }
        if (!thisLayer) {
          text = elem.layerInterface.text;
          thisLayer = elem.layerInterface;
          thisComp = elem.comp.compInterface;
          toWorld = thisLayer.toWorld.bind(thisLayer);
          fromWorld = thisLayer.fromWorld.bind(thisLayer);
          fromComp = thisLayer.fromComp.bind(thisLayer);
          toComp = thisLayer.toComp.bind(thisLayer);
          mask = thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null;
          fromCompToSurface = fromComp;
        }
        if (!transform) {
          transform = elem.layerInterface('ADBE Transform Group');
          $bm_transform = transform;
          if (transform) {
            anchorPoint = transform.anchorPoint;
            /* position = transform.position;
                      rotation = transform.rotation;
                      scale = transform.scale; */
          }
        }
        if (elemType === 4 && !content) {
          content = thisLayer('ADBE Root Vectors Group');
        }
        if (!effect) {
          effect = thisLayer(4);
        }
        hasParent = !!(elem.hierarchy && elem.hierarchy.length);
        if (hasParent && !parent) {
          parent = elem.hierarchy[0].layerInterface;
        }
        time = this.comp.renderedFrame / this.comp.globalData.frameRate;
        if (_needsRandom) {
          seedRandom(randSeed + time);
        }
        if (needsVelocity) {
          velocity = velocityAtTime(time);
        }
        expression_function();
        this.frameExpressionId = elem.globalData.frameId;

        // TODO: Check if it's possible to return on ShapeInterface the .v value
        // Changed this to a ternary operation because Rollup failed compiling it correctly
        scoped_bm_rt = scoped_bm_rt.propType === propTypes.SHAPE ? scoped_bm_rt.v : scoped_bm_rt;
        return scoped_bm_rt;
      }
      // Bundlers will see these as dead code and unless we reference them
      executeExpression.__preventDeadCodeRemoval = [$bm_transform, anchorPoint, time, velocity, inPoint, outPoint, width, height, name, loop_in, loop_out, smooth, toComp, fromCompToSurface, toWorld, fromWorld, mask, position, rotation, scale, thisComp, numKeys, active, wiggle, loopInDuration, loopOutDuration, comp, lookAt, easeOut, easeIn, ease, nearestKey, key, text, textIndex, textTotal, selectorValue, framesToTime, timeToFrames, sourceRectAtTime, substring, substr, posterizeTime, index, globalData];
      return executeExpression;
    }
    ob.initiateExpression = initiateExpression;
    ob.__preventDeadCodeRemoval = [window, document, XMLHttpRequest, fetch, frames, $bm_neg, add, $bm_sum, $bm_sub, $bm_mul, $bm_div, $bm_mod, clamp, radians_to_degrees, degreesToRadians, degrees_to_radians, normalize, rgbToHsl, hslToRgb, linear, random, createPath, _lottieGlobal];
    ob.resetFrame = resetFrame;
    return ob;
  }();

  var Expressions = function () {
    var ob = {};
    ob.initExpressions = initExpressions;
    ob.resetFrame = ExpressionManager.resetFrame;
    function initExpressions(animation) {
      var stackCount = 0;
      var registers = [];
      function pushExpression() {
        stackCount += 1;
      }
      function popExpression() {
        stackCount -= 1;
        if (stackCount === 0) {
          releaseInstances();
        }
      }
      function registerExpressionProperty(expression) {
        if (registers.indexOf(expression) === -1) {
          registers.push(expression);
        }
      }
      function releaseInstances() {
        var i;
        var len = registers.length;
        for (i = 0; i < len; i += 1) {
          registers[i].release();
        }
        registers.length = 0;
      }
      animation.renderer.compInterface = CompExpressionInterface(animation.renderer);
      animation.renderer.globalData.projectInterface.registerComposition(animation.renderer);
      animation.renderer.globalData.pushExpression = pushExpression;
      animation.renderer.globalData.popExpression = popExpression;
      animation.renderer.globalData.registerExpressionProperty = registerExpressionProperty;
    }
    return ob;
  }();

  var MaskManagerInterface = function () {
    function MaskInterface(mask, data) {
      this._mask = mask;
      this._data = data;
    }
    Object.defineProperty(MaskInterface.prototype, 'maskPath', {
      get: function get() {
        if (this._mask.prop.k) {
          this._mask.prop.getValue();
        }
        return this._mask.prop;
      }
    });
    Object.defineProperty(MaskInterface.prototype, 'maskOpacity', {
      get: function get() {
        if (this._mask.op.k) {
          this._mask.op.getValue();
        }
        return this._mask.op.v * 100;
      }
    });
    var MaskManager = function MaskManager(maskManager) {
      var _masksInterfaces = createSizedArray(maskManager.viewData.length);
      var i;
      var len = maskManager.viewData.length;
      for (i = 0; i < len; i += 1) {
        _masksInterfaces[i] = new MaskInterface(maskManager.viewData[i], maskManager.masksProperties[i]);
      }
      var maskFunction = function maskFunction(name) {
        i = 0;
        while (i < len) {
          if (maskManager.masksProperties[i].nm === name) {
            return _masksInterfaces[i];
          }
          i += 1;
        }
        return null;
      };
      return maskFunction;
    };
    return MaskManager;
  }();

  var ExpressionPropertyInterface = function () {
    var defaultUnidimensionalValue = {
      pv: 0,
      v: 0,
      mult: 1
    };
    var defaultMultidimensionalValue = {
      pv: [0, 0, 0],
      v: [0, 0, 0],
      mult: 1
    };
    function completeProperty(expressionValue, property, type) {
      Object.defineProperty(expressionValue, 'velocity', {
        get: function get() {
          return property.getVelocityAtTime(property.comp.currentFrame);
        }
      });
      expressionValue.numKeys = property.keyframes ? property.keyframes.length : 0;
      expressionValue.key = function (pos) {
        if (!expressionValue.numKeys) {
          return 0;
        }
        var value = '';
        if ('s' in property.keyframes[pos - 1]) {
          value = property.keyframes[pos - 1].s;
        } else if ('e' in property.keyframes[pos - 2]) {
          value = property.keyframes[pos - 2].e;
        } else {
          value = property.keyframes[pos - 2].s;
        }
        var valueProp = type === 'unidimensional' ? new Number(value) : Object.assign({}, value); // eslint-disable-line no-new-wrappers
        valueProp.time = property.keyframes[pos - 1].t / property.elem.comp.globalData.frameRate;
        valueProp.value = type === 'unidimensional' ? value[0] : value;
        return valueProp;
      };
      expressionValue.valueAtTime = property.getValueAtTime;
      expressionValue.speedAtTime = property.getSpeedAtTime;
      expressionValue.velocityAtTime = property.getVelocityAtTime;
      expressionValue.propertyGroup = property.propertyGroup;
    }
    function UnidimensionalPropertyInterface(property) {
      if (!property || !('pv' in property)) {
        property = defaultUnidimensionalValue;
      }
      var mult = 1 / property.mult;
      var val = property.pv * mult;
      var expressionValue = new Number(val); // eslint-disable-line no-new-wrappers
      expressionValue.value = val;
      completeProperty(expressionValue, property, 'unidimensional');
      return function () {
        if (property.k) {
          property.getValue();
        }
        val = property.v * mult;
        if (expressionValue.value !== val) {
          expressionValue = new Number(val); // eslint-disable-line no-new-wrappers
          expressionValue.value = val;
          expressionValue[0] = val;
          completeProperty(expressionValue, property, 'unidimensional');
        }
        return expressionValue;
      };
    }
    function MultidimensionalPropertyInterface(property) {
      if (!property || !('pv' in property)) {
        property = defaultMultidimensionalValue;
      }
      var mult = 1 / property.mult;
      var len = property.data && property.data.l || property.pv.length;
      var expressionValue = createTypedArray('float32', len);
      var arrValue = createTypedArray('float32', len);
      expressionValue.value = arrValue;
      completeProperty(expressionValue, property, 'multidimensional');
      return function () {
        if (property.k) {
          property.getValue();
        }
        for (var i = 0; i < len; i += 1) {
          arrValue[i] = property.v[i] * mult;
          expressionValue[i] = arrValue[i];
        }
        return expressionValue;
      };
    }

    // TODO: try to avoid using this getter
    function defaultGetter() {
      return defaultUnidimensionalValue;
    }
    return function (property) {
      if (!property) {
        return defaultGetter;
      }
      if (property.propType === 'unidimensional') {
        return UnidimensionalPropertyInterface(property);
      }
      return MultidimensionalPropertyInterface(property);
    };
  }();

  var TransformExpressionInterface = function () {
    return function (transform) {
      function _thisFunction(name) {
        switch (name) {
          case 'scale':
          case 'Scale':
          case 'ADBE Scale':
          case 6:
            return _thisFunction.scale;
          case 'rotation':
          case 'Rotation':
          case 'ADBE Rotation':
          case 'ADBE Rotate Z':
          case 10:
            return _thisFunction.rotation;
          case 'ADBE Rotate X':
            return _thisFunction.xRotation;
          case 'ADBE Rotate Y':
            return _thisFunction.yRotation;
          case 'position':
          case 'Position':
          case 'ADBE Position':
          case 2:
            return _thisFunction.position;
          case 'ADBE Position_0':
            return _thisFunction.xPosition;
          case 'ADBE Position_1':
            return _thisFunction.yPosition;
          case 'ADBE Position_2':
            return _thisFunction.zPosition;
          case 'anchorPoint':
          case 'AnchorPoint':
          case 'Anchor Point':
          case 'ADBE AnchorPoint':
          case 1:
            return _thisFunction.anchorPoint;
          case 'opacity':
          case 'Opacity':
          case 11:
            return _thisFunction.opacity;
          default:
            return null;
        }
      }
      Object.defineProperty(_thisFunction, 'rotation', {
        get: ExpressionPropertyInterface(transform.r || transform.rz)
      });
      Object.defineProperty(_thisFunction, 'zRotation', {
        get: ExpressionPropertyInterface(transform.rz || transform.r)
      });
      Object.defineProperty(_thisFunction, 'xRotation', {
        get: ExpressionPropertyInterface(transform.rx)
      });
      Object.defineProperty(_thisFunction, 'yRotation', {
        get: ExpressionPropertyInterface(transform.ry)
      });
      Object.defineProperty(_thisFunction, 'scale', {
        get: ExpressionPropertyInterface(transform.s)
      });
      var _px;
      var _py;
      var _pz;
      var _transformFactory;
      if (transform.p) {
        _transformFactory = ExpressionPropertyInterface(transform.p);
      } else {
        _px = ExpressionPropertyInterface(transform.px);
        _py = ExpressionPropertyInterface(transform.py);
        if (transform.pz) {
          _pz = ExpressionPropertyInterface(transform.pz);
        }
      }
      Object.defineProperty(_thisFunction, 'position', {
        get: function get() {
          if (transform.p) {
            return _transformFactory();
          }
          return [_px(), _py(), _pz ? _pz() : 0];
        }
      });
      Object.defineProperty(_thisFunction, 'xPosition', {
        get: ExpressionPropertyInterface(transform.px)
      });
      Object.defineProperty(_thisFunction, 'yPosition', {
        get: ExpressionPropertyInterface(transform.py)
      });
      Object.defineProperty(_thisFunction, 'zPosition', {
        get: ExpressionPropertyInterface(transform.pz)
      });
      Object.defineProperty(_thisFunction, 'anchorPoint', {
        get: ExpressionPropertyInterface(transform.a)
      });
      Object.defineProperty(_thisFunction, 'opacity', {
        get: ExpressionPropertyInterface(transform.o)
      });
      Object.defineProperty(_thisFunction, 'skew', {
        get: ExpressionPropertyInterface(transform.sk)
      });
      Object.defineProperty(_thisFunction, 'skewAxis', {
        get: ExpressionPropertyInterface(transform.sa)
      });
      Object.defineProperty(_thisFunction, 'orientation', {
        get: ExpressionPropertyInterface(transform.or)
      });
      return _thisFunction;
    };
  }();

  var LayerExpressionInterface = function () {
    function getMatrix(time) {
      var toWorldMat = new Matrix();
      if (time !== undefined) {
        var propMatrix = this._elem.finalTransform.mProp.getValueAtTime(time);
        propMatrix.clone(toWorldMat);
      } else {
        var transformMat = this._elem.finalTransform.mProp;
        transformMat.applyToMatrix(toWorldMat);
      }
      return toWorldMat;
    }
    function toWorldVec(arr, time) {
      var toWorldMat = this.getMatrix(time);
      toWorldMat.props[12] = 0;
      toWorldMat.props[13] = 0;
      toWorldMat.props[14] = 0;
      return this.applyPoint(toWorldMat, arr);
    }
    function toWorld(arr, time) {
      var toWorldMat = this.getMatrix(time);
      return this.applyPoint(toWorldMat, arr);
    }
    function fromWorldVec(arr, time) {
      var toWorldMat = this.getMatrix(time);
      toWorldMat.props[12] = 0;
      toWorldMat.props[13] = 0;
      toWorldMat.props[14] = 0;
      return this.invertPoint(toWorldMat, arr);
    }
    function fromWorld(arr, time) {
      var toWorldMat = this.getMatrix(time);
      return this.invertPoint(toWorldMat, arr);
    }
    function applyPoint(matrix, arr) {
      if (this._elem.hierarchy && this._elem.hierarchy.length) {
        var i;
        var len = this._elem.hierarchy.length;
        for (i = 0; i < len; i += 1) {
          this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(matrix);
        }
      }
      return matrix.applyToPointArray(arr[0], arr[1], arr[2] || 0);
    }
    function invertPoint(matrix, arr) {
      if (this._elem.hierarchy && this._elem.hierarchy.length) {
        var i;
        var len = this._elem.hierarchy.length;
        for (i = 0; i < len; i += 1) {
          this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(matrix);
        }
      }
      return matrix.inversePoint(arr);
    }
    function fromComp(arr) {
      var toWorldMat = new Matrix();
      toWorldMat.reset();
      this._elem.finalTransform.mProp.applyToMatrix(toWorldMat);
      if (this._elem.hierarchy && this._elem.hierarchy.length) {
        var i;
        var len = this._elem.hierarchy.length;
        for (i = 0; i < len; i += 1) {
          this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(toWorldMat);
        }
        return toWorldMat.inversePoint(arr);
      }
      return toWorldMat.inversePoint(arr);
    }
    function sampleImage() {
      return [1, 1, 1, 1];
    }
    return function (elem) {
      var transformInterface;
      function _registerMaskInterface(maskManager) {
        _thisLayerFunction.mask = new MaskManagerInterface(maskManager, elem);
      }
      function _registerEffectsInterface(effects) {
        _thisLayerFunction.effect = effects;
      }
      function _thisLayerFunction(name) {
        switch (name) {
          case 'ADBE Root Vectors Group':
          case 'Contents':
          case 2:
            return _thisLayerFunction.shapeInterface;
          case 1:
          case 6:
          case 'Transform':
          case 'transform':
          case 'ADBE Transform Group':
            return transformInterface;
          case 4:
          case 'ADBE Effect Parade':
          case 'effects':
          case 'Effects':
            return _thisLayerFunction.effect;
          case 'ADBE Text Properties':
            return _thisLayerFunction.textInterface;
          default:
            return null;
        }
      }
      _thisLayerFunction.getMatrix = getMatrix;
      _thisLayerFunction.invertPoint = invertPoint;
      _thisLayerFunction.applyPoint = applyPoint;
      _thisLayerFunction.toWorld = toWorld;
      _thisLayerFunction.toWorldVec = toWorldVec;
      _thisLayerFunction.fromWorld = fromWorld;
      _thisLayerFunction.fromWorldVec = fromWorldVec;
      _thisLayerFunction.toComp = toWorld;
      _thisLayerFunction.fromComp = fromComp;
      _thisLayerFunction.sampleImage = sampleImage;
      _thisLayerFunction.sourceRectAtTime = elem.sourceRectAtTime.bind(elem);
      _thisLayerFunction._elem = elem;
      transformInterface = TransformExpressionInterface(elem.finalTransform.mProp);
      var anchorPointDescriptor = getDescriptor(transformInterface, 'anchorPoint');
      Object.defineProperties(_thisLayerFunction, {
        hasParent: {
          get: function get() {
            return elem.hierarchy.length;
          }
        },
        parent: {
          get: function get() {
            return elem.hierarchy[0].layerInterface;
          }
        },
        rotation: getDescriptor(transformInterface, 'rotation'),
        scale: getDescriptor(transformInterface, 'scale'),
        position: getDescriptor(transformInterface, 'position'),
        opacity: getDescriptor(transformInterface, 'opacity'),
        anchorPoint: anchorPointDescriptor,
        anchor_point: anchorPointDescriptor,
        transform: {
          get: function get() {
            return transformInterface;
          }
        },
        active: {
          get: function get() {
            return elem.isInRange;
          }
        }
      });
      _thisLayerFunction.startTime = elem.data.st;
      _thisLayerFunction.index = elem.data.ind;
      _thisLayerFunction.source = elem.data.refId;
      _thisLayerFunction.height = elem.data.ty === 0 ? elem.data.h : 100;
      _thisLayerFunction.width = elem.data.ty === 0 ? elem.data.w : 100;
      _thisLayerFunction.inPoint = elem.data.ip / elem.comp.globalData.frameRate;
      _thisLayerFunction.outPoint = elem.data.op / elem.comp.globalData.frameRate;
      _thisLayerFunction._name = elem.data.nm;
      _thisLayerFunction.registerMaskInterface = _registerMaskInterface;
      _thisLayerFunction.registerEffectsInterface = _registerEffectsInterface;
      return _thisLayerFunction;
    };
  }();

  var propertyGroupFactory = function () {
    return function (interfaceFunction, parentPropertyGroup) {
      return function (val) {
        val = val === undefined ? 1 : val;
        if (val <= 0) {
          return interfaceFunction;
        }
        return parentPropertyGroup(val - 1);
      };
    };
  }();

  var PropertyInterface = function () {
    return function (propertyName, propertyGroup) {
      var interfaceFunction = {
        _name: propertyName
      };
      function _propertyGroup(val) {
        val = val === undefined ? 1 : val;
        if (val <= 0) {
          return interfaceFunction;
        }
        return propertyGroup(val - 1);
      }
      return _propertyGroup;
    };
  }();

  var EffectsExpressionInterface = function () {
    var ob = {
      createEffectsInterface: createEffectsInterface
    };
    function createEffectsInterface(elem, propertyGroup) {
      if (elem.effectsManager) {
        var effectElements = [];
        var effectsData = elem.data.ef;
        var i;
        var len = elem.effectsManager.effectElements.length;
        for (i = 0; i < len; i += 1) {
          effectElements.push(createGroupInterface(effectsData[i], elem.effectsManager.effectElements[i], propertyGroup, elem));
        }
        var effects = elem.data.ef || [];
        var groupInterface = function groupInterface(name) {
          i = 0;
          len = effects.length;
          while (i < len) {
            if (name === effects[i].nm || name === effects[i].mn || name === effects[i].ix) {
              return effectElements[i];
            }
            i += 1;
          }
          return null;
        };
        Object.defineProperty(groupInterface, 'numProperties', {
          get: function get() {
            return effects.length;
          }
        });
        return groupInterface;
      }
      return null;
    }
    function createGroupInterface(data, elements, propertyGroup, elem) {
      function groupInterface(name) {
        var effects = data.ef;
        var i = 0;
        var len = effects.length;
        while (i < len) {
          if (name === effects[i].nm || name === effects[i].mn || name === effects[i].ix) {
            if (effects[i].ty === 5) {
              return effectElements[i];
            }
            return effectElements[i]();
          }
          i += 1;
        }
        throw new Error();
      }
      var _propertyGroup = propertyGroupFactory(groupInterface, propertyGroup);
      var effectElements = [];
      var i;
      var len = data.ef.length;
      for (i = 0; i < len; i += 1) {
        if (data.ef[i].ty === 5) {
          effectElements.push(createGroupInterface(data.ef[i], elements.effectElements[i], elements.effectElements[i].propertyGroup, elem));
        } else {
          effectElements.push(createValueInterface(elements.effectElements[i], data.ef[i].ty, elem, _propertyGroup));
        }
      }
      if (data.mn === 'ADBE Color Control') {
        Object.defineProperty(groupInterface, 'color', {
          get: function get() {
            return effectElements[0]();
          }
        });
      }
      Object.defineProperties(groupInterface, {
        numProperties: {
          get: function get() {
            return data.np;
          }
        },
        _name: {
          value: data.nm
        },
        propertyGroup: {
          value: _propertyGroup
        }
      });
      groupInterface.enabled = data.en !== 0;
      groupInterface.active = groupInterface.enabled;
      return groupInterface;
    }
    function createValueInterface(element, type, elem, propertyGroup) {
      var expressionProperty = ExpressionPropertyInterface(element.p);
      function interfaceFunction() {
        if (type === 10) {
          return elem.comp.compInterface(element.p.v);
        }
        return expressionProperty();
      }
      if (element.p.setGroupProperty) {
        element.p.setGroupProperty(PropertyInterface('', propertyGroup));
      }
      return interfaceFunction;
    }
    return ob;
  }();

  var ShapePathInterface = function () {
    return function pathInterfaceFactory(shape, view, propertyGroup) {
      var prop = view.sh;
      function interfaceFunction(val) {
        if (val === 'Shape' || val === 'shape' || val === 'Path' || val === 'path' || val === 'ADBE Vector Shape' || val === 2) {
          return interfaceFunction.path;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      prop.setGroupProperty(PropertyInterface('Path', _propertyGroup));
      Object.defineProperties(interfaceFunction, {
        path: {
          get: function get() {
            if (prop.k) {
              prop.getValue();
            }
            return prop;
          }
        },
        shape: {
          get: function get() {
            if (prop.k) {
              prop.getValue();
            }
            return prop;
          }
        },
        _name: {
          value: shape.nm
        },
        ix: {
          value: shape.ix
        },
        propertyIndex: {
          value: shape.ix
        },
        mn: {
          value: shape.mn
        },
        propertyGroup: {
          value: propertyGroup
        }
      });
      return interfaceFunction;
    };
  }();

  var ShapeExpressionInterface = function () {
    function iterateElements(shapes, view, propertyGroup) {
      var arr = [];
      var i;
      var len = shapes ? shapes.length : 0;
      for (i = 0; i < len; i += 1) {
        if (shapes[i].ty === 'gr') {
          arr.push(groupInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'fl') {
          arr.push(fillInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'st') {
          arr.push(strokeInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'tm') {
          arr.push(trimInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'tr') {
          // arr.push(transformInterfaceFactory(shapes[i],view[i],propertyGroup));
        } else if (shapes[i].ty === 'el') {
          arr.push(ellipseInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'sr') {
          arr.push(starInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'sh') {
          arr.push(ShapePathInterface(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'rc') {
          arr.push(rectInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'rd') {
          arr.push(roundedInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'rp') {
          arr.push(repeaterInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else if (shapes[i].ty === 'gf') {
          arr.push(gradientFillInterfaceFactory(shapes[i], view[i], propertyGroup));
        } else {
          arr.push(defaultInterfaceFactory(shapes[i], view[i], propertyGroup));
        }
      }
      return arr;
    }
    function contentsInterfaceFactory(shape, view, propertyGroup) {
      var interfaces;
      var interfaceFunction = function _interfaceFunction(value) {
        var i = 0;
        var len = interfaces.length;
        while (i < len) {
          if (interfaces[i]._name === value || interfaces[i].mn === value || interfaces[i].propertyIndex === value || interfaces[i].ix === value || interfaces[i].ind === value) {
            return interfaces[i];
          }
          i += 1;
        }
        if (typeof value === 'number') {
          return interfaces[value - 1];
        }
        return null;
      };
      interfaceFunction.propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      interfaces = iterateElements(shape.it, view.it, interfaceFunction.propertyGroup);
      interfaceFunction.numProperties = interfaces.length;
      var transformInterface = transformInterfaceFactory(shape.it[shape.it.length - 1], view.it[view.it.length - 1], interfaceFunction.propertyGroup);
      interfaceFunction.transform = transformInterface;
      interfaceFunction.propertyIndex = shape.cix;
      interfaceFunction._name = shape.nm;
      return interfaceFunction;
    }
    function groupInterfaceFactory(shape, view, propertyGroup) {
      var interfaceFunction = function _interfaceFunction(value) {
        switch (value) {
          case 'ADBE Vectors Group':
          case 'Contents':
          case 2:
            return interfaceFunction.content;
          // Not necessary for now. Keeping them here in case a new case appears
          // case 'ADBE Vector Transform Group':
          // case 3:
          default:
            return interfaceFunction.transform;
        }
      };
      interfaceFunction.propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      var content = contentsInterfaceFactory(shape, view, interfaceFunction.propertyGroup);
      var transformInterface = transformInterfaceFactory(shape.it[shape.it.length - 1], view.it[view.it.length - 1], interfaceFunction.propertyGroup);
      interfaceFunction.content = content;
      interfaceFunction.transform = transformInterface;
      Object.defineProperty(interfaceFunction, '_name', {
        get: function get() {
          return shape.nm;
        }
      });
      // interfaceFunction.content = interfaceFunction;
      interfaceFunction.numProperties = shape.np;
      interfaceFunction.propertyIndex = shape.ix;
      interfaceFunction.nm = shape.nm;
      interfaceFunction.mn = shape.mn;
      return interfaceFunction;
    }
    function fillInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(val) {
        if (val === 'Color' || val === 'color') {
          return interfaceFunction.color;
        }
        if (val === 'Opacity' || val === 'opacity') {
          return interfaceFunction.opacity;
        }
        return null;
      }
      Object.defineProperties(interfaceFunction, {
        color: {
          get: ExpressionPropertyInterface(view.c)
        },
        opacity: {
          get: ExpressionPropertyInterface(view.o)
        },
        _name: {
          value: shape.nm
        },
        mn: {
          value: shape.mn
        }
      });
      view.c.setGroupProperty(PropertyInterface('Color', propertyGroup));
      view.o.setGroupProperty(PropertyInterface('Opacity', propertyGroup));
      return interfaceFunction;
    }
    function gradientFillInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(val) {
        if (val === 'Start Point' || val === 'start point') {
          return interfaceFunction.startPoint;
        }
        if (val === 'End Point' || val === 'end point') {
          return interfaceFunction.endPoint;
        }
        if (val === 'Opacity' || val === 'opacity') {
          return interfaceFunction.opacity;
        }
        return null;
      }
      Object.defineProperties(interfaceFunction, {
        startPoint: {
          get: ExpressionPropertyInterface(view.s)
        },
        endPoint: {
          get: ExpressionPropertyInterface(view.e)
        },
        opacity: {
          get: ExpressionPropertyInterface(view.o)
        },
        type: {
          get: function get() {
            return 'a';
          }
        },
        _name: {
          value: shape.nm
        },
        mn: {
          value: shape.mn
        }
      });
      view.s.setGroupProperty(PropertyInterface('Start Point', propertyGroup));
      view.e.setGroupProperty(PropertyInterface('End Point', propertyGroup));
      view.o.setGroupProperty(PropertyInterface('Opacity', propertyGroup));
      return interfaceFunction;
    }
    function defaultInterfaceFactory() {
      function interfaceFunction() {
        return null;
      }
      return interfaceFunction;
    }
    function strokeInterfaceFactory(shape, view, propertyGroup) {
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      var _dashPropertyGroup = propertyGroupFactory(dashOb, _propertyGroup);
      function addPropertyToDashOb(i) {
        Object.defineProperty(dashOb, shape.d[i].nm, {
          get: ExpressionPropertyInterface(view.d.dataProps[i].p)
        });
      }
      var i;
      var len = shape.d ? shape.d.length : 0;
      var dashOb = {};
      for (i = 0; i < len; i += 1) {
        addPropertyToDashOb(i);
        view.d.dataProps[i].p.setGroupProperty(_dashPropertyGroup);
      }
      function interfaceFunction(val) {
        if (val === 'Color' || val === 'color') {
          return interfaceFunction.color;
        }
        if (val === 'Opacity' || val === 'opacity') {
          return interfaceFunction.opacity;
        }
        if (val === 'Stroke Width' || val === 'stroke width') {
          return interfaceFunction.strokeWidth;
        }
        return null;
      }
      Object.defineProperties(interfaceFunction, {
        color: {
          get: ExpressionPropertyInterface(view.c)
        },
        opacity: {
          get: ExpressionPropertyInterface(view.o)
        },
        strokeWidth: {
          get: ExpressionPropertyInterface(view.w)
        },
        dash: {
          get: function get() {
            return dashOb;
          }
        },
        _name: {
          value: shape.nm
        },
        mn: {
          value: shape.mn
        }
      });
      view.c.setGroupProperty(PropertyInterface('Color', _propertyGroup));
      view.o.setGroupProperty(PropertyInterface('Opacity', _propertyGroup));
      view.w.setGroupProperty(PropertyInterface('Stroke Width', _propertyGroup));
      return interfaceFunction;
    }
    function trimInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(val) {
        if (val === shape.e.ix || val === 'End' || val === 'end') {
          return interfaceFunction.end;
        }
        if (val === shape.s.ix) {
          return interfaceFunction.start;
        }
        if (val === shape.o.ix) {
          return interfaceFunction.offset;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      interfaceFunction.propertyIndex = shape.ix;
      view.s.setGroupProperty(PropertyInterface('Start', _propertyGroup));
      view.e.setGroupProperty(PropertyInterface('End', _propertyGroup));
      view.o.setGroupProperty(PropertyInterface('Offset', _propertyGroup));
      interfaceFunction.propertyIndex = shape.ix;
      interfaceFunction.propertyGroup = propertyGroup;
      Object.defineProperties(interfaceFunction, {
        start: {
          get: ExpressionPropertyInterface(view.s)
        },
        end: {
          get: ExpressionPropertyInterface(view.e)
        },
        offset: {
          get: ExpressionPropertyInterface(view.o)
        },
        _name: {
          value: shape.nm
        }
      });
      interfaceFunction.mn = shape.mn;
      return interfaceFunction;
    }
    function transformInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(value) {
        if (shape.a.ix === value || value === 'Anchor Point') {
          return interfaceFunction.anchorPoint;
        }
        if (shape.o.ix === value || value === 'Opacity') {
          return interfaceFunction.opacity;
        }
        if (shape.p.ix === value || value === 'Position') {
          return interfaceFunction.position;
        }
        if (shape.r.ix === value || value === 'Rotation' || value === 'ADBE Vector Rotation') {
          return interfaceFunction.rotation;
        }
        if (shape.s.ix === value || value === 'Scale') {
          return interfaceFunction.scale;
        }
        if (shape.sk && shape.sk.ix === value || value === 'Skew') {
          return interfaceFunction.skew;
        }
        if (shape.sa && shape.sa.ix === value || value === 'Skew Axis') {
          return interfaceFunction.skewAxis;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      view.transform.mProps.o.setGroupProperty(PropertyInterface('Opacity', _propertyGroup));
      view.transform.mProps.p.setGroupProperty(PropertyInterface('Position', _propertyGroup));
      view.transform.mProps.a.setGroupProperty(PropertyInterface('Anchor Point', _propertyGroup));
      view.transform.mProps.s.setGroupProperty(PropertyInterface('Scale', _propertyGroup));
      view.transform.mProps.r.setGroupProperty(PropertyInterface('Rotation', _propertyGroup));
      if (view.transform.mProps.sk) {
        view.transform.mProps.sk.setGroupProperty(PropertyInterface('Skew', _propertyGroup));
        view.transform.mProps.sa.setGroupProperty(PropertyInterface('Skew Angle', _propertyGroup));
      }
      view.transform.op.setGroupProperty(PropertyInterface('Opacity', _propertyGroup));
      Object.defineProperties(interfaceFunction, {
        opacity: {
          get: ExpressionPropertyInterface(view.transform.mProps.o)
        },
        position: {
          get: ExpressionPropertyInterface(view.transform.mProps.p)
        },
        anchorPoint: {
          get: ExpressionPropertyInterface(view.transform.mProps.a)
        },
        scale: {
          get: ExpressionPropertyInterface(view.transform.mProps.s)
        },
        rotation: {
          get: ExpressionPropertyInterface(view.transform.mProps.r)
        },
        skew: {
          get: ExpressionPropertyInterface(view.transform.mProps.sk)
        },
        skewAxis: {
          get: ExpressionPropertyInterface(view.transform.mProps.sa)
        },
        _name: {
          value: shape.nm
        }
      });
      interfaceFunction.ty = 'tr';
      interfaceFunction.mn = shape.mn;
      interfaceFunction.propertyGroup = propertyGroup;
      return interfaceFunction;
    }
    function ellipseInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(value) {
        if (shape.p.ix === value) {
          return interfaceFunction.position;
        }
        if (shape.s.ix === value) {
          return interfaceFunction.size;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      interfaceFunction.propertyIndex = shape.ix;
      var prop = view.sh.ty === 'tm' ? view.sh.prop : view.sh;
      prop.s.setGroupProperty(PropertyInterface('Size', _propertyGroup));
      prop.p.setGroupProperty(PropertyInterface('Position', _propertyGroup));
      Object.defineProperties(interfaceFunction, {
        size: {
          get: ExpressionPropertyInterface(prop.s)
        },
        position: {
          get: ExpressionPropertyInterface(prop.p)
        },
        _name: {
          value: shape.nm
        }
      });
      interfaceFunction.mn = shape.mn;
      return interfaceFunction;
    }
    function starInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(value) {
        if (shape.p.ix === value) {
          return interfaceFunction.position;
        }
        if (shape.r.ix === value) {
          return interfaceFunction.rotation;
        }
        if (shape.pt.ix === value) {
          return interfaceFunction.points;
        }
        if (shape.or.ix === value || value === 'ADBE Vector Star Outer Radius') {
          return interfaceFunction.outerRadius;
        }
        if (shape.os.ix === value) {
          return interfaceFunction.outerRoundness;
        }
        if (shape.ir && (shape.ir.ix === value || value === 'ADBE Vector Star Inner Radius')) {
          return interfaceFunction.innerRadius;
        }
        if (shape.is && shape.is.ix === value) {
          return interfaceFunction.innerRoundness;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      var prop = view.sh.ty === 'tm' ? view.sh.prop : view.sh;
      interfaceFunction.propertyIndex = shape.ix;
      prop.or.setGroupProperty(PropertyInterface('Outer Radius', _propertyGroup));
      prop.os.setGroupProperty(PropertyInterface('Outer Roundness', _propertyGroup));
      prop.pt.setGroupProperty(PropertyInterface('Points', _propertyGroup));
      prop.p.setGroupProperty(PropertyInterface('Position', _propertyGroup));
      prop.r.setGroupProperty(PropertyInterface('Rotation', _propertyGroup));
      if (shape.ir) {
        prop.ir.setGroupProperty(PropertyInterface('Inner Radius', _propertyGroup));
        prop.is.setGroupProperty(PropertyInterface('Inner Roundness', _propertyGroup));
      }
      Object.defineProperties(interfaceFunction, {
        position: {
          get: ExpressionPropertyInterface(prop.p)
        },
        rotation: {
          get: ExpressionPropertyInterface(prop.r)
        },
        points: {
          get: ExpressionPropertyInterface(prop.pt)
        },
        outerRadius: {
          get: ExpressionPropertyInterface(prop.or)
        },
        outerRoundness: {
          get: ExpressionPropertyInterface(prop.os)
        },
        innerRadius: {
          get: ExpressionPropertyInterface(prop.ir)
        },
        innerRoundness: {
          get: ExpressionPropertyInterface(prop.is)
        },
        _name: {
          value: shape.nm
        }
      });
      interfaceFunction.mn = shape.mn;
      return interfaceFunction;
    }
    function rectInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(value) {
        if (shape.p.ix === value) {
          return interfaceFunction.position;
        }
        if (shape.r.ix === value) {
          return interfaceFunction.roundness;
        }
        if (shape.s.ix === value || value === 'Size' || value === 'ADBE Vector Rect Size') {
          return interfaceFunction.size;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      var prop = view.sh.ty === 'tm' ? view.sh.prop : view.sh;
      interfaceFunction.propertyIndex = shape.ix;
      prop.p.setGroupProperty(PropertyInterface('Position', _propertyGroup));
      prop.s.setGroupProperty(PropertyInterface('Size', _propertyGroup));
      prop.r.setGroupProperty(PropertyInterface('Rotation', _propertyGroup));
      Object.defineProperties(interfaceFunction, {
        position: {
          get: ExpressionPropertyInterface(prop.p)
        },
        roundness: {
          get: ExpressionPropertyInterface(prop.r)
        },
        size: {
          get: ExpressionPropertyInterface(prop.s)
        },
        _name: {
          value: shape.nm
        }
      });
      interfaceFunction.mn = shape.mn;
      return interfaceFunction;
    }
    function roundedInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(value) {
        if (shape.r.ix === value || value === 'Round Corners 1') {
          return interfaceFunction.radius;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      var prop = view;
      interfaceFunction.propertyIndex = shape.ix;
      prop.rd.setGroupProperty(PropertyInterface('Radius', _propertyGroup));
      Object.defineProperties(interfaceFunction, {
        radius: {
          get: ExpressionPropertyInterface(prop.rd)
        },
        _name: {
          value: shape.nm
        }
      });
      interfaceFunction.mn = shape.mn;
      return interfaceFunction;
    }
    function repeaterInterfaceFactory(shape, view, propertyGroup) {
      function interfaceFunction(value) {
        if (shape.c.ix === value || value === 'Copies') {
          return interfaceFunction.copies;
        }
        if (shape.o.ix === value || value === 'Offset') {
          return interfaceFunction.offset;
        }
        return null;
      }
      var _propertyGroup = propertyGroupFactory(interfaceFunction, propertyGroup);
      var prop = view;
      interfaceFunction.propertyIndex = shape.ix;
      prop.c.setGroupProperty(PropertyInterface('Copies', _propertyGroup));
      prop.o.setGroupProperty(PropertyInterface('Offset', _propertyGroup));
      Object.defineProperties(interfaceFunction, {
        copies: {
          get: ExpressionPropertyInterface(prop.c)
        },
        offset: {
          get: ExpressionPropertyInterface(prop.o)
        },
        _name: {
          value: shape.nm
        }
      });
      interfaceFunction.mn = shape.mn;
      return interfaceFunction;
    }
    return function (shapes, view, propertyGroup) {
      var interfaces;
      function _interfaceFunction(value) {
        if (typeof value === 'number') {
          value = value === undefined ? 1 : value;
          if (value === 0) {
            return propertyGroup;
          }
          return interfaces[value - 1];
        }
        var i = 0;
        var len = interfaces.length;
        while (i < len) {
          if (interfaces[i]._name === value) {
            return interfaces[i];
          }
          i += 1;
        }
        return null;
      }
      function parentGroupWrapper() {
        return propertyGroup;
      }
      _interfaceFunction.propertyGroup = propertyGroupFactory(_interfaceFunction, parentGroupWrapper);
      interfaces = iterateElements(shapes, view, _interfaceFunction.propertyGroup);
      _interfaceFunction.numProperties = interfaces.length;
      _interfaceFunction._name = 'Contents';
      return _interfaceFunction;
    };
  }();

  var TextExpressionInterface = function () {
    return function (elem) {
      var _sourceText;
      function _thisLayerFunction(name) {
        switch (name) {
          case 'ADBE Text Document':
            return _thisLayerFunction.sourceText;
          default:
            return null;
        }
      }
      Object.defineProperty(_thisLayerFunction, 'sourceText', {
        get: function get() {
          elem.textProperty.getValue();
          var stringValue = elem.textProperty.currentData.t;
          if (!_sourceText || stringValue !== _sourceText.value) {
            _sourceText = new String(stringValue); // eslint-disable-line no-new-wrappers
            // If stringValue is an empty string, eval returns undefined, so it has to be returned as a String primitive
            _sourceText.value = stringValue || new String(stringValue); // eslint-disable-line no-new-wrappers
            Object.defineProperty(_sourceText, 'style', {
              get: function get() {
                return {
                  fillColor: elem.textProperty.currentData.fc
                };
              }
            });
          }
          return _sourceText;
        }
      });
      return _thisLayerFunction;
    };
  }();

  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
  var FootageInterface = function () {
    var outlineInterfaceFactory = function outlineInterfaceFactory(elem) {
      var currentPropertyName = '';
      var currentProperty = elem.getFootageData();
      function init() {
        currentPropertyName = '';
        currentProperty = elem.getFootageData();
        return searchProperty;
      }
      function searchProperty(value) {
        if (currentProperty[value]) {
          currentPropertyName = value;
          currentProperty = currentProperty[value];
          if (_typeof(currentProperty) === 'object') {
            return searchProperty;
          }
          return currentProperty;
        }
        var propertyNameIndex = value.indexOf(currentPropertyName);
        if (propertyNameIndex !== -1) {
          var index = parseInt(value.substr(propertyNameIndex + currentPropertyName.length), 10);
          currentProperty = currentProperty[index];
          if (_typeof(currentProperty) === 'object') {
            return searchProperty;
          }
          return currentProperty;
        }
        return '';
      }
      return init;
    };
    var dataInterfaceFactory = function dataInterfaceFactory(elem) {
      function interfaceFunction(value) {
        if (value === 'Outline') {
          return interfaceFunction.outlineInterface();
        }
        return null;
      }
      interfaceFunction._name = 'Outline';
      interfaceFunction.outlineInterface = outlineInterfaceFactory(elem);
      return interfaceFunction;
    };
    return function (elem) {
      function _interfaceFunction(value) {
        if (value === 'Data') {
          return _interfaceFunction.dataInterface;
        }
        return null;
      }
      _interfaceFunction._name = 'Data';
      _interfaceFunction.dataInterface = dataInterfaceFactory(elem);
      return _interfaceFunction;
    };
  }();

  var interfaces = {
    layer: LayerExpressionInterface,
    effects: EffectsExpressionInterface,
    comp: CompExpressionInterface,
    shape: ShapeExpressionInterface,
    text: TextExpressionInterface,
    footage: FootageInterface
  };
  function getInterface(type) {
    return interfaces[type] || null;
  }

  var expressionHelpers = function () {
    function searchExpressions(elem, data, prop) {
      if (data.x) {
        prop.k = true;
        prop.x = true;
        prop.initiateExpression = ExpressionManager.initiateExpression;
        prop.effectsSequence.push(prop.initiateExpression(elem, data, prop).bind(prop));
      }
    }
    function getValueAtTime(frameNum) {
      frameNum *= this.elem.globalData.frameRate;
      frameNum -= this.offsetTime;
      if (frameNum !== this._cachingAtTime.lastFrame) {
        this._cachingAtTime.lastIndex = this._cachingAtTime.lastFrame < frameNum ? this._cachingAtTime.lastIndex : 0;
        this._cachingAtTime.value = this.interpolateValue(frameNum, this._cachingAtTime);
        this._cachingAtTime.lastFrame = frameNum;
      }
      return this._cachingAtTime.value;
    }
    function getSpeedAtTime(frameNum) {
      var delta = -0.01;
      var v1 = this.getValueAtTime(frameNum);
      var v2 = this.getValueAtTime(frameNum + delta);
      var speed = 0;
      if (v1.length) {
        var i;
        for (i = 0; i < v1.length; i += 1) {
          speed += Math.pow(v2[i] - v1[i], 2);
        }
        speed = Math.sqrt(speed) * 100;
      } else {
        speed = 0;
      }
      return speed;
    }
    function getVelocityAtTime(frameNum) {
      if (this.vel !== undefined) {
        return this.vel;
      }
      var delta = -0.001;
      // frameNum += this.elem.data.st;
      var v1 = this.getValueAtTime(frameNum);
      var v2 = this.getValueAtTime(frameNum + delta);
      var velocity;
      if (v1.length) {
        velocity = createTypedArray('float32', v1.length);
        var i;
        for (i = 0; i < v1.length; i += 1) {
          // removing frameRate
          // if needed, don't add it here
          // velocity[i] = this.elem.globalData.frameRate*((v2[i] - v1[i])/delta);
          velocity[i] = (v2[i] - v1[i]) / delta;
        }
      } else {
        velocity = (v2 - v1) / delta;
      }
      return velocity;
    }
    function getStaticValueAtTime() {
      return this.pv;
    }
    function setGroupProperty(propertyGroup) {
      this.propertyGroup = propertyGroup;
    }
    return {
      searchExpressions: searchExpressions,
      getSpeedAtTime: getSpeedAtTime,
      getVelocityAtTime: getVelocityAtTime,
      getValueAtTime: getValueAtTime,
      getStaticValueAtTime: getStaticValueAtTime,
      setGroupProperty: setGroupProperty
    };
  }();

  function addPropertyDecorator() {
    function loopOut(type, duration, durationFlag) {
      if (!this.k || !this.keyframes) {
        return this.pv;
      }
      type = type ? type.toLowerCase() : '';
      var currentFrame = this.comp.renderedFrame;
      var keyframes = this.keyframes;
      var lastKeyFrame = keyframes[keyframes.length - 1].t;
      if (currentFrame <= lastKeyFrame) {
        return this.pv;
      }
      var cycleDuration;
      var firstKeyFrame;
      if (!durationFlag) {
        if (!duration || duration > keyframes.length - 1) {
          duration = keyframes.length - 1;
        }
        firstKeyFrame = keyframes[keyframes.length - 1 - duration].t;
        cycleDuration = lastKeyFrame - firstKeyFrame;
      } else {
        if (!duration) {
          cycleDuration = Math.max(0, lastKeyFrame - this.elem.data.ip);
        } else {
          cycleDuration = Math.abs(lastKeyFrame - this.elem.comp.globalData.frameRate * duration);
        }
        firstKeyFrame = lastKeyFrame - cycleDuration;
      }
      var i;
      var len;
      var ret;
      if (type === 'pingpong') {
        var iterations = Math.floor((currentFrame - firstKeyFrame) / cycleDuration);
        if (iterations % 2 !== 0) {
          return this.getValueAtTime((cycleDuration - (currentFrame - firstKeyFrame) % cycleDuration + firstKeyFrame) / this.comp.globalData.frameRate, 0); // eslint-disable-line
        }
      } else if (type === 'offset') {
        var initV = this.getValueAtTime(firstKeyFrame / this.comp.globalData.frameRate, 0);
        var endV = this.getValueAtTime(lastKeyFrame / this.comp.globalData.frameRate, 0);
        var current = this.getValueAtTime(((currentFrame - firstKeyFrame) % cycleDuration + firstKeyFrame) / this.comp.globalData.frameRate, 0); // eslint-disable-line
        var repeats = Math.floor((currentFrame - firstKeyFrame) / cycleDuration);
        if (this.pv.length) {
          ret = new Array(initV.length);
          len = ret.length;
          for (i = 0; i < len; i += 1) {
            ret[i] = (endV[i] - initV[i]) * repeats + current[i];
          }
          return ret;
        }
        return (endV - initV) * repeats + current;
      } else if (type === 'continue') {
        var lastValue = this.getValueAtTime(lastKeyFrame / this.comp.globalData.frameRate, 0);
        var nextLastValue = this.getValueAtTime((lastKeyFrame - 0.001) / this.comp.globalData.frameRate, 0);
        if (this.pv.length) {
          ret = new Array(lastValue.length);
          len = ret.length;
          for (i = 0; i < len; i += 1) {
            ret[i] = lastValue[i] + (lastValue[i] - nextLastValue[i]) * ((currentFrame - lastKeyFrame) / this.comp.globalData.frameRate) / 0.0005; // eslint-disable-line
          }
          return ret;
        }
        return lastValue + (lastValue - nextLastValue) * ((currentFrame - lastKeyFrame) / 0.001);
      }
      return this.getValueAtTime(((currentFrame - firstKeyFrame) % cycleDuration + firstKeyFrame) / this.comp.globalData.frameRate, 0); // eslint-disable-line
    }
    function loopIn(type, duration, durationFlag) {
      if (!this.k) {
        return this.pv;
      }
      type = type ? type.toLowerCase() : '';
      var currentFrame = this.comp.renderedFrame;
      var keyframes = this.keyframes;
      var firstKeyFrame = keyframes[0].t;
      if (currentFrame >= firstKeyFrame) {
        return this.pv;
      }
      var cycleDuration;
      var lastKeyFrame;
      if (!durationFlag) {
        if (!duration || duration > keyframes.length - 1) {
          duration = keyframes.length - 1;
        }
        lastKeyFrame = keyframes[duration].t;
        cycleDuration = lastKeyFrame - firstKeyFrame;
      } else {
        if (!duration) {
          cycleDuration = Math.max(0, this.elem.data.op - firstKeyFrame);
        } else {
          cycleDuration = Math.abs(this.elem.comp.globalData.frameRate * duration);
        }
        lastKeyFrame = firstKeyFrame + cycleDuration;
      }
      var i;
      var len;
      var ret;
      if (type === 'pingpong') {
        var iterations = Math.floor((firstKeyFrame - currentFrame) / cycleDuration);
        if (iterations % 2 === 0) {
          return this.getValueAtTime(((firstKeyFrame - currentFrame) % cycleDuration + firstKeyFrame) / this.comp.globalData.frameRate, 0); // eslint-disable-line
        }
      } else if (type === 'offset') {
        var initV = this.getValueAtTime(firstKeyFrame / this.comp.globalData.frameRate, 0);
        var endV = this.getValueAtTime(lastKeyFrame / this.comp.globalData.frameRate, 0);
        var current = this.getValueAtTime((cycleDuration - (firstKeyFrame - currentFrame) % cycleDuration + firstKeyFrame) / this.comp.globalData.frameRate, 0);
        var repeats = Math.floor((firstKeyFrame - currentFrame) / cycleDuration) + 1;
        if (this.pv.length) {
          ret = new Array(initV.length);
          len = ret.length;
          for (i = 0; i < len; i += 1) {
            ret[i] = current[i] - (endV[i] - initV[i]) * repeats;
          }
          return ret;
        }
        return current - (endV - initV) * repeats;
      } else if (type === 'continue') {
        var firstValue = this.getValueAtTime(firstKeyFrame / this.comp.globalData.frameRate, 0);
        var nextFirstValue = this.getValueAtTime((firstKeyFrame + 0.001) / this.comp.globalData.frameRate, 0);
        if (this.pv.length) {
          ret = new Array(firstValue.length);
          len = ret.length;
          for (i = 0; i < len; i += 1) {
            ret[i] = firstValue[i] + (firstValue[i] - nextFirstValue[i]) * (firstKeyFrame - currentFrame) / 0.001;
          }
          return ret;
        }
        return firstValue + (firstValue - nextFirstValue) * (firstKeyFrame - currentFrame) / 0.001;
      }
      return this.getValueAtTime((cycleDuration - ((firstKeyFrame - currentFrame) % cycleDuration + firstKeyFrame)) / this.comp.globalData.frameRate, 0); // eslint-disable-line
    }
    function smooth(width, samples) {
      if (!this.k) {
        return this.pv;
      }
      width = (width || 0.4) * 0.5;
      samples = Math.floor(samples || 5);
      if (samples <= 1) {
        return this.pv;
      }
      var currentTime = this.comp.renderedFrame / this.comp.globalData.frameRate;
      var initFrame = currentTime - width;
      var endFrame = currentTime + width;
      var sampleFrequency = samples > 1 ? (endFrame - initFrame) / (samples - 1) : 1;
      var i = 0;
      var j = 0;
      var value;
      if (this.pv.length) {
        value = createTypedArray('float32', this.pv.length);
      } else {
        value = 0;
      }
      var sampleValue;
      while (i < samples) {
        sampleValue = this.getValueAtTime(initFrame + i * sampleFrequency);
        if (this.pv.length) {
          for (j = 0; j < this.pv.length; j += 1) {
            value[j] += sampleValue[j];
          }
        } else {
          value += sampleValue;
        }
        i += 1;
      }
      if (this.pv.length) {
        for (j = 0; j < this.pv.length; j += 1) {
          value[j] /= samples;
        }
      } else {
        value /= samples;
      }
      return value;
    }
    function getTransformValueAtTime(time) {
      if (!this._transformCachingAtTime) {
        this._transformCachingAtTime = {
          v: new Matrix()
        };
      }
      /// /
      var matrix = this._transformCachingAtTime.v;
      matrix.cloneFromProps(this.pre.props);
      if (this.appliedTransformations < 1) {
        var anchor = this.a.getValueAtTime(time);
        matrix.translate(-anchor[0] * this.a.mult, -anchor[1] * this.a.mult, anchor[2] * this.a.mult);
      }
      if (this.appliedTransformations < 2) {
        var scale = this.s.getValueAtTime(time);
        matrix.scale(scale[0] * this.s.mult, scale[1] * this.s.mult, scale[2] * this.s.mult);
      }
      if (this.sk && this.appliedTransformations < 3) {
        var skew = this.sk.getValueAtTime(time);
        var skewAxis = this.sa.getValueAtTime(time);
        matrix.skewFromAxis(-skew * this.sk.mult, skewAxis * this.sa.mult);
      }
      if (this.r && this.appliedTransformations < 4) {
        var rotation = this.r.getValueAtTime(time);
        matrix.rotate(-rotation * this.r.mult);
      } else if (!this.r && this.appliedTransformations < 4) {
        var rotationZ = this.rz.getValueAtTime(time);
        var rotationY = this.ry.getValueAtTime(time);
        var rotationX = this.rx.getValueAtTime(time);
        var orientation = this.or.getValueAtTime(time);
        matrix.rotateZ(-rotationZ * this.rz.mult).rotateY(rotationY * this.ry.mult).rotateX(rotationX * this.rx.mult).rotateZ(-orientation[2] * this.or.mult).rotateY(orientation[1] * this.or.mult).rotateX(orientation[0] * this.or.mult);
      }
      if (this.data.p && this.data.p.s) {
        var positionX = this.px.getValueAtTime(time);
        var positionY = this.py.getValueAtTime(time);
        if (this.data.p.z) {
          var positionZ = this.pz.getValueAtTime(time);
          matrix.translate(positionX * this.px.mult, positionY * this.py.mult, -positionZ * this.pz.mult);
        } else {
          matrix.translate(positionX * this.px.mult, positionY * this.py.mult, 0);
        }
      } else {
        var position = this.p.getValueAtTime(time);
        matrix.translate(position[0] * this.p.mult, position[1] * this.p.mult, -position[2] * this.p.mult);
      }
      return matrix;
      /// /
    }
    function getTransformStaticValueAtTime() {
      return this.v.clone(new Matrix());
    }
    var getTransformProperty = TransformPropertyFactory.getTransformProperty;
    TransformPropertyFactory.getTransformProperty = function (elem, data, container) {
      var prop = getTransformProperty(elem, data, container);
      if (prop.dynamicProperties.length) {
        prop.getValueAtTime = getTransformValueAtTime.bind(prop);
      } else {
        prop.getValueAtTime = getTransformStaticValueAtTime.bind(prop);
      }
      prop.setGroupProperty = expressionHelpers.setGroupProperty;
      return prop;
    };
    var propertyGetProp = PropertyFactory.getProp;
    PropertyFactory.getProp = function (elem, data, type, mult, container) {
      var prop = propertyGetProp(elem, data, type, mult, container);
      // prop.getVelocityAtTime = getVelocityAtTime;
      // prop.loopOut = loopOut;
      // prop.loopIn = loopIn;
      if (prop.kf) {
        prop.getValueAtTime = expressionHelpers.getValueAtTime.bind(prop);
      } else {
        prop.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(prop);
      }
      prop.setGroupProperty = expressionHelpers.setGroupProperty;
      prop.loopOut = loopOut;
      prop.loopIn = loopIn;
      prop.smooth = smooth;
      prop.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(prop);
      prop.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(prop);
      prop.numKeys = data.a === 1 ? data.k.length : 0;
      prop.propertyIndex = data.ix;
      var value = 0;
      if (type !== 0) {
        value = createTypedArray('float32', data.a === 1 ? data.k[0].s.length : data.k.length);
      }
      prop._cachingAtTime = {
        lastFrame: initialDefaultFrame,
        lastIndex: 0,
        value: value
      };
      expressionHelpers.searchExpressions(elem, data, prop);
      if (prop.k) {
        container.addDynamicProperty(prop);
      }
      return prop;
    };
    function getShapeValueAtTime(frameNum) {
      // For now this caching object is created only when needed instead of creating it when the shape is initialized.
      if (!this._cachingAtTime) {
        this._cachingAtTime = {
          shapeValue: shapePool.clone(this.pv),
          lastIndex: 0,
          lastTime: initialDefaultFrame
        };
      }
      frameNum *= this.elem.globalData.frameRate;
      frameNum -= this.offsetTime;
      if (frameNum !== this._cachingAtTime.lastTime) {
        this._cachingAtTime.lastIndex = this._cachingAtTime.lastTime < frameNum ? this._caching.lastIndex : 0;
        this._cachingAtTime.lastTime = frameNum;
        this.interpolateShape(frameNum, this._cachingAtTime.shapeValue, this._cachingAtTime);
      }
      return this._cachingAtTime.shapeValue;
    }
    var ShapePropertyConstructorFunction = ShapePropertyFactory.getConstructorFunction();
    var KeyframedShapePropertyConstructorFunction = ShapePropertyFactory.getKeyframedConstructorFunction();
    function ShapeExpressions() {}
    ShapeExpressions.prototype = {
      vertices: function vertices(prop, time) {
        if (this.k) {
          this.getValue();
        }
        var shapePath = this.v;
        if (time !== undefined) {
          shapePath = this.getValueAtTime(time, 0);
        }
        var i;
        var len = shapePath._length;
        var vertices = shapePath[prop];
        var points = shapePath.v;
        var arr = createSizedArray(len);
        for (i = 0; i < len; i += 1) {
          if (prop === 'i' || prop === 'o') {
            arr[i] = [vertices[i][0] - points[i][0], vertices[i][1] - points[i][1]];
          } else {
            arr[i] = [vertices[i][0], vertices[i][1]];
          }
        }
        return arr;
      },
      points: function points(time) {
        return this.vertices('v', time);
      },
      inTangents: function inTangents(time) {
        return this.vertices('i', time);
      },
      outTangents: function outTangents(time) {
        return this.vertices('o', time);
      },
      isClosed: function isClosed() {
        return this.v.c;
      },
      pointOnPath: function pointOnPath(perc, time) {
        var shapePath = this.v;
        if (time !== undefined) {
          shapePath = this.getValueAtTime(time, 0);
        }
        if (!this._segmentsLength) {
          this._segmentsLength = bez.getSegmentsLength(shapePath);
        }
        var segmentsLength = this._segmentsLength;
        var lengths = segmentsLength.lengths;
        var lengthPos = segmentsLength.totalLength * perc;
        var i = 0;
        var len = lengths.length;
        var accumulatedLength = 0;
        var pt;
        while (i < len) {
          if (accumulatedLength + lengths[i].addedLength > lengthPos) {
            var initIndex = i;
            var endIndex = shapePath.c && i === len - 1 ? 0 : i + 1;
            var segmentPerc = (lengthPos - accumulatedLength) / lengths[i].addedLength;
            pt = bez.getPointInSegment(shapePath.v[initIndex], shapePath.v[endIndex], shapePath.o[initIndex], shapePath.i[endIndex], segmentPerc, lengths[i]);
            break;
          } else {
            accumulatedLength += lengths[i].addedLength;
          }
          i += 1;
        }
        if (!pt) {
          pt = shapePath.c ? [shapePath.v[0][0], shapePath.v[0][1]] : [shapePath.v[shapePath._length - 1][0], shapePath.v[shapePath._length - 1][1]];
        }
        return pt;
      },
      vectorOnPath: function vectorOnPath(perc, time, vectorType) {
        // perc doesn't use triple equality because it can be a Number object as well as a primitive.
        if (perc == 1) {
          // eslint-disable-line eqeqeq
          perc = this.v.c;
        } else if (perc == 0) {
          // eslint-disable-line eqeqeq
          perc = 0.999;
        }
        var pt1 = this.pointOnPath(perc, time);
        var pt2 = this.pointOnPath(perc + 0.001, time);
        var xLength = pt2[0] - pt1[0];
        var yLength = pt2[1] - pt1[1];
        var magnitude = Math.sqrt(Math.pow(xLength, 2) + Math.pow(yLength, 2));
        if (magnitude === 0) {
          return [0, 0];
        }
        var unitVector = vectorType === 'tangent' ? [xLength / magnitude, yLength / magnitude] : [-yLength / magnitude, xLength / magnitude];
        return unitVector;
      },
      tangentOnPath: function tangentOnPath(perc, time) {
        return this.vectorOnPath(perc, time, 'tangent');
      },
      normalOnPath: function normalOnPath(perc, time) {
        return this.vectorOnPath(perc, time, 'normal');
      },
      setGroupProperty: expressionHelpers.setGroupProperty,
      getValueAtTime: expressionHelpers.getStaticValueAtTime
    };
    extendPrototype([ShapeExpressions], ShapePropertyConstructorFunction);
    extendPrototype([ShapeExpressions], KeyframedShapePropertyConstructorFunction);
    KeyframedShapePropertyConstructorFunction.prototype.getValueAtTime = getShapeValueAtTime;
    KeyframedShapePropertyConstructorFunction.prototype.initiateExpression = ExpressionManager.initiateExpression;
    var propertyGetShapeProp = ShapePropertyFactory.getShapeProp;
    ShapePropertyFactory.getShapeProp = function (elem, data, type, arr, trims) {
      var prop = propertyGetShapeProp(elem, data, type, arr, trims);
      prop.propertyIndex = data.ix;
      prop.lock = false;
      if (type === 3) {
        expressionHelpers.searchExpressions(elem, data.pt, prop);
      } else if (type === 4) {
        expressionHelpers.searchExpressions(elem, data.ks, prop);
      }
      if (prop.k) {
        elem.addDynamicProperty(prop);
      }
      return prop;
    };
  }
  function initialize$1() {
    addPropertyDecorator();
  }

  function addDecorator() {
    function searchExpressions() {
      if (this.data.d.x) {
        this.calculateExpression = ExpressionManager.initiateExpression.bind(this)(this.elem, this.data.d, this);
        this.addEffect(this.getExpressionValue.bind(this));
        return true;
      }
      return null;
    }
    TextProperty.prototype.getExpressionValue = function (currentValue, text) {
      var newValue = this.calculateExpression(text);
      if (currentValue.t !== newValue) {
        var newData = {};
        this.copyData(newData, currentValue);
        newData.t = newValue.toString();
        newData.__complete = false;
        return newData;
      }
      return currentValue;
    };
    TextProperty.prototype.searchProperty = function () {
      var isKeyframed = this.searchKeyframes();
      var hasExpressions = this.searchExpressions();
      this.kf = isKeyframed || hasExpressions;
      return this.kf;
    };
    TextProperty.prototype.searchExpressions = searchExpressions;
  }
  function initialize() {
    addDecorator();
  }

  function SVGComposableEffect() {}
  SVGComposableEffect.prototype = {
    createMergeNode: function createMergeNode(resultId, ins) {
      var feMerge = createNS('feMerge');
      feMerge.setAttribute('result', resultId);
      var feMergeNode;
      var i;
      for (i = 0; i < ins.length; i += 1) {
        feMergeNode = createNS('feMergeNode');
        feMergeNode.setAttribute('in', ins[i]);
        feMerge.appendChild(feMergeNode);
        feMerge.appendChild(feMergeNode);
      }
      return feMerge;
    }
  };

  var linearFilterValue = '0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0';
  function SVGTintFilter(filter, filterManager, elem, id, source) {
    this.filterManager = filterManager;
    var feColorMatrix = createNS('feColorMatrix');
    feColorMatrix.setAttribute('type', 'matrix');
    feColorMatrix.setAttribute('color-interpolation-filters', 'linearRGB');
    feColorMatrix.setAttribute('values', linearFilterValue + ' 1 0');
    this.linearFilter = feColorMatrix;
    feColorMatrix.setAttribute('result', id + '_tint_1');
    filter.appendChild(feColorMatrix);
    feColorMatrix = createNS('feColorMatrix');
    feColorMatrix.setAttribute('type', 'matrix');
    feColorMatrix.setAttribute('color-interpolation-filters', 'sRGB');
    feColorMatrix.setAttribute('values', '1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0');
    feColorMatrix.setAttribute('result', id + '_tint_2');
    filter.appendChild(feColorMatrix);
    this.matrixFilter = feColorMatrix;
    var feMerge = this.createMergeNode(id, [source, id + '_tint_1', id + '_tint_2']);
    filter.appendChild(feMerge);
  }
  extendPrototype([SVGComposableEffect], SVGTintFilter);
  SVGTintFilter.prototype.renderFrame = function (forceRender) {
    if (forceRender || this.filterManager._mdf) {
      var colorBlack = this.filterManager.effectElements[0].p.v;
      var colorWhite = this.filterManager.effectElements[1].p.v;
      var opacity = this.filterManager.effectElements[2].p.v / 100;
      this.linearFilter.setAttribute('values', linearFilterValue + ' ' + opacity + ' 0');
      this.matrixFilter.setAttribute('values', colorWhite[0] - colorBlack[0] + ' 0 0 0 ' + colorBlack[0] + ' ' + (colorWhite[1] - colorBlack[1]) + ' 0 0 0 ' + colorBlack[1] + ' ' + (colorWhite[2] - colorBlack[2]) + ' 0 0 0 ' + colorBlack[2] + ' 0 0 0 1 0');
    }
  };

  function SVGFillFilter(filter, filterManager, elem, id) {
    this.filterManager = filterManager;
    var feColorMatrix = createNS('feColorMatrix');
    feColorMatrix.setAttribute('type', 'matrix');
    feColorMatrix.setAttribute('color-interpolation-filters', 'sRGB');
    feColorMatrix.setAttribute('values', '1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0');
    feColorMatrix.setAttribute('result', id);
    filter.appendChild(feColorMatrix);
    this.matrixFilter = feColorMatrix;
  }
  SVGFillFilter.prototype.renderFrame = function (forceRender) {
    if (forceRender || this.filterManager._mdf) {
      var color = this.filterManager.effectElements[2].p.v;
      var opacity = this.filterManager.effectElements[6].p.v;
      this.matrixFilter.setAttribute('values', '0 0 0 0 ' + color[0] + ' 0 0 0 0 ' + color[1] + ' 0 0 0 0 ' + color[2] + ' 0 0 0 ' + opacity + ' 0');
    }
  };

  function SVGStrokeEffect(fil, filterManager, elem) {
    this.initialized = false;
    this.filterManager = filterManager;
    this.elem = elem;
    this.paths = [];
  }
  SVGStrokeEffect.prototype.initialize = function () {
    var elemChildren = this.elem.layerElement.children || this.elem.layerElement.childNodes;
    var path;
    var groupPath;
    var i;
    var len;
    if (this.filterManager.effectElements[1].p.v === 1) {
      len = this.elem.maskManager.masksProperties.length;
      i = 0;
    } else {
      i = this.filterManager.effectElements[0].p.v - 1;
      len = i + 1;
    }
    groupPath = createNS('g');
    groupPath.setAttribute('fill', 'none');
    groupPath.setAttribute('stroke-linecap', 'round');
    groupPath.setAttribute('stroke-dashoffset', 1);
    for (i; i < len; i += 1) {
      path = createNS('path');
      groupPath.appendChild(path);
      this.paths.push({
        p: path,
        m: i
      });
    }
    if (this.filterManager.effectElements[10].p.v === 3) {
      var mask = createNS('mask');
      var id = createElementID();
      mask.setAttribute('id', id);
      mask.setAttribute('mask-type', 'alpha');
      mask.appendChild(groupPath);
      this.elem.globalData.defs.appendChild(mask);
      var g = createNS('g');
      g.setAttribute('mask', 'url(' + getLocationHref() + '#' + id + ')');
      while (elemChildren[0]) {
        g.appendChild(elemChildren[0]);
      }
      this.elem.layerElement.appendChild(g);
      this.masker = mask;
      groupPath.setAttribute('stroke', '#fff');
    } else if (this.filterManager.effectElements[10].p.v === 1 || this.filterManager.effectElements[10].p.v === 2) {
      if (this.filterManager.effectElements[10].p.v === 2) {
        elemChildren = this.elem.layerElement.children || this.elem.layerElement.childNodes;
        while (elemChildren.length) {
          this.elem.layerElement.removeChild(elemChildren[0]);
        }
      }
      this.elem.layerElement.appendChild(groupPath);
      this.elem.layerElement.removeAttribute('mask');
      groupPath.setAttribute('stroke', '#fff');
    }
    this.initialized = true;
    this.pathMasker = groupPath;
  };
  SVGStrokeEffect.prototype.renderFrame = function (forceRender) {
    if (!this.initialized) {
      this.initialize();
    }
    var i;
    var len = this.paths.length;
    var mask;
    var path;
    for (i = 0; i < len; i += 1) {
      if (this.paths[i].m !== -1) {
        mask = this.elem.maskManager.viewData[this.paths[i].m];
        path = this.paths[i].p;
        if (forceRender || this.filterManager._mdf || mask.prop._mdf) {
          path.setAttribute('d', mask.lastPath);
        }
        if (forceRender || this.filterManager.effectElements[9].p._mdf || this.filterManager.effectElements[4].p._mdf || this.filterManager.effectElements[7].p._mdf || this.filterManager.effectElements[8].p._mdf || mask.prop._mdf) {
          var dasharrayValue;
          if (this.filterManager.effectElements[7].p.v !== 0 || this.filterManager.effectElements[8].p.v !== 100) {
            var s = Math.min(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01;
            var e = Math.max(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01;
            var l = path.getTotalLength();
            dasharrayValue = '0 0 0 ' + l * s + ' ';
            var lineLength = l * (e - s);
            var segment = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01;
            var units = Math.floor(lineLength / segment);
            var j;
            for (j = 0; j < units; j += 1) {
              dasharrayValue += '1 ' + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01 + ' ';
            }
            dasharrayValue += '0 ' + l * 10 + ' 0 0';
          } else {
            dasharrayValue = '1 ' + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01;
          }
          path.setAttribute('stroke-dasharray', dasharrayValue);
        }
      }
    }
    if (forceRender || this.filterManager.effectElements[4].p._mdf) {
      this.pathMasker.setAttribute('stroke-width', this.filterManager.effectElements[4].p.v * 2);
    }
    if (forceRender || this.filterManager.effectElements[6].p._mdf) {
      this.pathMasker.setAttribute('opacity', this.filterManager.effectElements[6].p.v);
    }
    if (this.filterManager.effectElements[10].p.v === 1 || this.filterManager.effectElements[10].p.v === 2) {
      if (forceRender || this.filterManager.effectElements[3].p._mdf) {
        var color = this.filterManager.effectElements[3].p.v;
        this.pathMasker.setAttribute('stroke', 'rgb(' + bmFloor(color[0] * 255) + ',' + bmFloor(color[1] * 255) + ',' + bmFloor(color[2] * 255) + ')');
      }
    }
  };

  function SVGTritoneFilter(filter, filterManager, elem, id) {
    this.filterManager = filterManager;
    var feColorMatrix = createNS('feColorMatrix');
    feColorMatrix.setAttribute('type', 'matrix');
    feColorMatrix.setAttribute('color-interpolation-filters', 'linearRGB');
    feColorMatrix.setAttribute('values', '0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0');
    filter.appendChild(feColorMatrix);
    var feComponentTransfer = createNS('feComponentTransfer');
    feComponentTransfer.setAttribute('color-interpolation-filters', 'sRGB');
    feComponentTransfer.setAttribute('result', id);
    this.matrixFilter = feComponentTransfer;
    var feFuncR = createNS('feFuncR');
    feFuncR.setAttribute('type', 'table');
    feComponentTransfer.appendChild(feFuncR);
    this.feFuncR = feFuncR;
    var feFuncG = createNS('feFuncG');
    feFuncG.setAttribute('type', 'table');
    feComponentTransfer.appendChild(feFuncG);
    this.feFuncG = feFuncG;
    var feFuncB = createNS('feFuncB');
    feFuncB.setAttribute('type', 'table');
    feComponentTransfer.appendChild(feFuncB);
    this.feFuncB = feFuncB;
    filter.appendChild(feComponentTransfer);
  }
  SVGTritoneFilter.prototype.renderFrame = function (forceRender) {
    if (forceRender || this.filterManager._mdf) {
      var color1 = this.filterManager.effectElements[0].p.v;
      var color2 = this.filterManager.effectElements[1].p.v;
      var color3 = this.filterManager.effectElements[2].p.v;
      var tableR = color3[0] + ' ' + color2[0] + ' ' + color1[0];
      var tableG = color3[1] + ' ' + color2[1] + ' ' + color1[1];
      var tableB = color3[2] + ' ' + color2[2] + ' ' + color1[2];
      this.feFuncR.setAttribute('tableValues', tableR);
      this.feFuncG.setAttribute('tableValues', tableG);
      this.feFuncB.setAttribute('tableValues', tableB);
    }
  };

  function SVGProLevelsFilter(filter, filterManager, elem, id) {
    this.filterManager = filterManager;
    var effectElements = this.filterManager.effectElements;
    var feComponentTransfer = createNS('feComponentTransfer');

    // Red
    if (effectElements[10].p.k || effectElements[10].p.v !== 0 || effectElements[11].p.k || effectElements[11].p.v !== 1 || effectElements[12].p.k || effectElements[12].p.v !== 1 || effectElements[13].p.k || effectElements[13].p.v !== 0 || effectElements[14].p.k || effectElements[14].p.v !== 1) {
      this.feFuncR = this.createFeFunc('feFuncR', feComponentTransfer);
    }
    // Green
    if (effectElements[17].p.k || effectElements[17].p.v !== 0 || effectElements[18].p.k || effectElements[18].p.v !== 1 || effectElements[19].p.k || effectElements[19].p.v !== 1 || effectElements[20].p.k || effectElements[20].p.v !== 0 || effectElements[21].p.k || effectElements[21].p.v !== 1) {
      this.feFuncG = this.createFeFunc('feFuncG', feComponentTransfer);
    }
    // Blue
    if (effectElements[24].p.k || effectElements[24].p.v !== 0 || effectElements[25].p.k || effectElements[25].p.v !== 1 || effectElements[26].p.k || effectElements[26].p.v !== 1 || effectElements[27].p.k || effectElements[27].p.v !== 0 || effectElements[28].p.k || effectElements[28].p.v !== 1) {
      this.feFuncB = this.createFeFunc('feFuncB', feComponentTransfer);
    }
    // Alpha
    if (effectElements[31].p.k || effectElements[31].p.v !== 0 || effectElements[32].p.k || effectElements[32].p.v !== 1 || effectElements[33].p.k || effectElements[33].p.v !== 1 || effectElements[34].p.k || effectElements[34].p.v !== 0 || effectElements[35].p.k || effectElements[35].p.v !== 1) {
      this.feFuncA = this.createFeFunc('feFuncA', feComponentTransfer);
    }
    // RGB
    if (this.feFuncR || this.feFuncG || this.feFuncB || this.feFuncA) {
      feComponentTransfer.setAttribute('color-interpolation-filters', 'sRGB');
      filter.appendChild(feComponentTransfer);
    }
    if (effectElements[3].p.k || effectElements[3].p.v !== 0 || effectElements[4].p.k || effectElements[4].p.v !== 1 || effectElements[5].p.k || effectElements[5].p.v !== 1 || effectElements[6].p.k || effectElements[6].p.v !== 0 || effectElements[7].p.k || effectElements[7].p.v !== 1) {
      feComponentTransfer = createNS('feComponentTransfer');
      feComponentTransfer.setAttribute('color-interpolation-filters', 'sRGB');
      feComponentTransfer.setAttribute('result', id);
      filter.appendChild(feComponentTransfer);
      this.feFuncRComposed = this.createFeFunc('feFuncR', feComponentTransfer);
      this.feFuncGComposed = this.createFeFunc('feFuncG', feComponentTransfer);
      this.feFuncBComposed = this.createFeFunc('feFuncB', feComponentTransfer);
    }
  }
  SVGProLevelsFilter.prototype.createFeFunc = function (type, feComponentTransfer) {
    var feFunc = createNS(type);
    feFunc.setAttribute('type', 'table');
    feComponentTransfer.appendChild(feFunc);
    return feFunc;
  };
  SVGProLevelsFilter.prototype.getTableValue = function (inputBlack, inputWhite, gamma, outputBlack, outputWhite) {
    var cnt = 0;
    var segments = 256;
    var perc;
    var min = Math.min(inputBlack, inputWhite);
    var max = Math.max(inputBlack, inputWhite);
    var table = Array.call(null, {
      length: segments
    });
    var colorValue;
    var pos = 0;
    var outputDelta = outputWhite - outputBlack;
    var inputDelta = inputWhite - inputBlack;
    while (cnt <= 256) {
      perc = cnt / 256;
      if (perc <= min) {
        colorValue = inputDelta < 0 ? outputWhite : outputBlack;
      } else if (perc >= max) {
        colorValue = inputDelta < 0 ? outputBlack : outputWhite;
      } else {
        colorValue = outputBlack + outputDelta * Math.pow((perc - inputBlack) / inputDelta, 1 / gamma);
      }
      table[pos] = colorValue;
      pos += 1;
      cnt += 256 / (segments - 1);
    }
    return table.join(' ');
  };
  SVGProLevelsFilter.prototype.renderFrame = function (forceRender) {
    if (forceRender || this.filterManager._mdf) {
      var val;
      var effectElements = this.filterManager.effectElements;
      if (this.feFuncRComposed && (forceRender || effectElements[3].p._mdf || effectElements[4].p._mdf || effectElements[5].p._mdf || effectElements[6].p._mdf || effectElements[7].p._mdf)) {
        val = this.getTableValue(effectElements[3].p.v, effectElements[4].p.v, effectElements[5].p.v, effectElements[6].p.v, effectElements[7].p.v);
        this.feFuncRComposed.setAttribute('tableValues', val);
        this.feFuncGComposed.setAttribute('tableValues', val);
        this.feFuncBComposed.setAttribute('tableValues', val);
      }
      if (this.feFuncR && (forceRender || effectElements[10].p._mdf || effectElements[11].p._mdf || effectElements[12].p._mdf || effectElements[13].p._mdf || effectElements[14].p._mdf)) {
        val = this.getTableValue(effectElements[10].p.v, effectElements[11].p.v, effectElements[12].p.v, effectElements[13].p.v, effectElements[14].p.v);
        this.feFuncR.setAttribute('tableValues', val);
      }
      if (this.feFuncG && (forceRender || effectElements[17].p._mdf || effectElements[18].p._mdf || effectElements[19].p._mdf || effectElements[20].p._mdf || effectElements[21].p._mdf)) {
        val = this.getTableValue(effectElements[17].p.v, effectElements[18].p.v, effectElements[19].p.v, effectElements[20].p.v, effectElements[21].p.v);
        this.feFuncG.setAttribute('tableValues', val);
      }
      if (this.feFuncB && (forceRender || effectElements[24].p._mdf || effectElements[25].p._mdf || effectElements[26].p._mdf || effectElements[27].p._mdf || effectElements[28].p._mdf)) {
        val = this.getTableValue(effectElements[24].p.v, effectElements[25].p.v, effectElements[26].p.v, effectElements[27].p.v, effectElements[28].p.v);
        this.feFuncB.setAttribute('tableValues', val);
      }
      if (this.feFuncA && (forceRender || effectElements[31].p._mdf || effectElements[32].p._mdf || effectElements[33].p._mdf || effectElements[34].p._mdf || effectElements[35].p._mdf)) {
        val = this.getTableValue(effectElements[31].p.v, effectElements[32].p.v, effectElements[33].p.v, effectElements[34].p.v, effectElements[35].p.v);
        this.feFuncA.setAttribute('tableValues', val);
      }
    }
  };

  function SVGDropShadowEffect(filter, filterManager, elem, id, source) {
    var globalFilterSize = filterManager.container.globalData.renderConfig.filterSize;
    var filterSize = filterManager.data.fs || globalFilterSize;
    filter.setAttribute('x', filterSize.x || globalFilterSize.x);
    filter.setAttribute('y', filterSize.y || globalFilterSize.y);
    filter.setAttribute('width', filterSize.width || globalFilterSize.width);
    filter.setAttribute('height', filterSize.height || globalFilterSize.height);
    this.filterManager = filterManager;
    var feGaussianBlur = createNS('feGaussianBlur');
    feGaussianBlur.setAttribute('in', 'SourceAlpha');
    feGaussianBlur.setAttribute('result', id + '_drop_shadow_1');
    feGaussianBlur.setAttribute('stdDeviation', '0');
    this.feGaussianBlur = feGaussianBlur;
    filter.appendChild(feGaussianBlur);
    var feOffset = createNS('feOffset');
    feOffset.setAttribute('dx', '25');
    feOffset.setAttribute('dy', '0');
    feOffset.setAttribute('in', id + '_drop_shadow_1');
    feOffset.setAttribute('result', id + '_drop_shadow_2');
    this.feOffset = feOffset;
    filter.appendChild(feOffset);
    var feFlood = createNS('feFlood');
    feFlood.setAttribute('flood-color', '#00ff00');
    feFlood.setAttribute('flood-opacity', '1');
    feFlood.setAttribute('result', id + '_drop_shadow_3');
    this.feFlood = feFlood;
    filter.appendChild(feFlood);
    var feComposite = createNS('feComposite');
    feComposite.setAttribute('in', id + '_drop_shadow_3');
    feComposite.setAttribute('in2', id + '_drop_shadow_2');
    feComposite.setAttribute('operator', 'in');
    feComposite.setAttribute('result', id + '_drop_shadow_4');
    filter.appendChild(feComposite);
    var feMerge = this.createMergeNode(id, [id + '_drop_shadow_4', source]);
    filter.appendChild(feMerge);
    //
  }
  extendPrototype([SVGComposableEffect], SVGDropShadowEffect);
  SVGDropShadowEffect.prototype.renderFrame = function (forceRender) {
    if (forceRender || this.filterManager._mdf) {
      if (forceRender || this.filterManager.effectElements[4].p._mdf) {
        this.feGaussianBlur.setAttribute('stdDeviation', this.filterManager.effectElements[4].p.v / 4);
      }
      if (forceRender || this.filterManager.effectElements[0].p._mdf) {
        var col = this.filterManager.effectElements[0].p.v;
        this.feFlood.setAttribute('flood-color', rgbToHex(Math.round(col[0] * 255), Math.round(col[1] * 255), Math.round(col[2] * 255)));
      }
      if (forceRender || this.filterManager.effectElements[1].p._mdf) {
        this.feFlood.setAttribute('flood-opacity', this.filterManager.effectElements[1].p.v / 255);
      }
      if (forceRender || this.filterManager.effectElements[2].p._mdf || this.filterManager.effectElements[3].p._mdf) {
        var distance = this.filterManager.effectElements[3].p.v;
        var angle = (this.filterManager.effectElements[2].p.v - 90) * degToRads;
        var x = distance * Math.cos(angle);
        var y = distance * Math.sin(angle);
        this.feOffset.setAttribute('dx', x);
        this.feOffset.setAttribute('dy', y);
      }
    }
  };

  var _svgMatteSymbols = [];
  function SVGMatte3Effect(filterElem, filterManager, elem) {
    this.initialized = false;
    this.filterManager = filterManager;
    this.filterElem = filterElem;
    this.elem = elem;
    elem.matteElement = createNS('g');
    elem.matteElement.appendChild(elem.layerElement);
    elem.matteElement.appendChild(elem.transformedElement);
    elem.baseElement = elem.matteElement;
  }
  SVGMatte3Effect.prototype.findSymbol = function (mask) {
    var i = 0;
    var len = _svgMatteSymbols.length;
    while (i < len) {
      if (_svgMatteSymbols[i] === mask) {
        return _svgMatteSymbols[i];
      }
      i += 1;
    }
    return null;
  };
  SVGMatte3Effect.prototype.replaceInParent = function (mask, symbolId) {
    var parentNode = mask.layerElement.parentNode;
    if (!parentNode) {
      return;
    }
    var children = parentNode.children;
    var i = 0;
    var len = children.length;
    while (i < len) {
      if (children[i] === mask.layerElement) {
        break;
      }
      i += 1;
    }
    var nextChild;
    if (i <= len - 2) {
      nextChild = children[i + 1];
    }
    var useElem = createNS('use');
    useElem.setAttribute('href', '#' + symbolId);
    if (nextChild) {
      parentNode.insertBefore(useElem, nextChild);
    } else {
      parentNode.appendChild(useElem);
    }
  };
  SVGMatte3Effect.prototype.setElementAsMask = function (elem, mask) {
    if (!this.findSymbol(mask)) {
      var symbolId = createElementID();
      var masker = createNS('mask');
      masker.setAttribute('id', mask.layerId);
      masker.setAttribute('mask-type', 'alpha');
      _svgMatteSymbols.push(mask);
      var defs = elem.globalData.defs;
      defs.appendChild(masker);
      var symbol = createNS('symbol');
      symbol.setAttribute('id', symbolId);
      this.replaceInParent(mask, symbolId);
      symbol.appendChild(mask.layerElement);
      defs.appendChild(symbol);
      var useElem = createNS('use');
      useElem.setAttribute('href', '#' + symbolId);
      masker.appendChild(useElem);
      mask.data.hd = false;
      mask.show();
    }
    elem.setMatte(mask.layerId);
  };
  SVGMatte3Effect.prototype.initialize = function () {
    var ind = this.filterManager.effectElements[0].p.v;
    var elements = this.elem.comp.elements;
    var i = 0;
    var len = elements.length;
    while (i < len) {
      if (elements[i] && elements[i].data.ind === ind) {
        this.setElementAsMask(this.elem, elements[i]);
      }
      i += 1;
    }
    this.initialized = true;
  };
  SVGMatte3Effect.prototype.renderFrame = function () {
    if (!this.initialized) {
      this.initialize();
    }
  };

  function SVGGaussianBlurEffect(filter, filterManager, elem, id) {
    // Outset the filter region by 100% on all sides to accommodate blur expansion.
    filter.setAttribute('x', '-100%');
    filter.setAttribute('y', '-100%');
    filter.setAttribute('width', '300%');
    filter.setAttribute('height', '300%');
    this.filterManager = filterManager;
    var feGaussianBlur = createNS('feGaussianBlur');
    feGaussianBlur.setAttribute('result', id);
    filter.appendChild(feGaussianBlur);
    this.feGaussianBlur = feGaussianBlur;
  }
  SVGGaussianBlurEffect.prototype.renderFrame = function (forceRender) {
    if (forceRender || this.filterManager._mdf) {
      // Empirical value, matching AE's blur appearance.
      var kBlurrinessToSigma = 0.3;
      var sigma = this.filterManager.effectElements[0].p.v * kBlurrinessToSigma;

      // Dimensions mapping:
      //
      //   1 -> horizontal & vertical
      //   2 -> horizontal only
      //   3 -> vertical only
      //
      var dimensions = this.filterManager.effectElements[1].p.v;
      var sigmaX = dimensions == 3 ? 0 : sigma; // eslint-disable-line eqeqeq
      var sigmaY = dimensions == 2 ? 0 : sigma; // eslint-disable-line eqeqeq

      this.feGaussianBlur.setAttribute('stdDeviation', sigmaX + ' ' + sigmaY);

      // Repeat edges mapping:
      //
      //   0 -> off -> duplicate
      //   1 -> on  -> wrap
      var edgeMode = this.filterManager.effectElements[2].p.v == 1 ? 'wrap' : 'duplicate'; // eslint-disable-line eqeqeq
      this.feGaussianBlur.setAttribute('edgeMode', edgeMode);
    }
  };

  function TransformEffect() {}
  TransformEffect.prototype.init = function (effectsManager) {
    this.effectsManager = effectsManager;
    this.type = effectTypes.TRANSFORM_EFFECT;
    this.matrix = new Matrix();
    this.opacity = -1;
    this._mdf = false;
    this._opMdf = false;
  };
  TransformEffect.prototype.renderFrame = function (forceFrame) {
    this._opMdf = false;
    this._mdf = false;
    if (forceFrame || this.effectsManager._mdf) {
      var effectElements = this.effectsManager.effectElements;
      var anchor = effectElements[0].p.v;
      var position = effectElements[1].p.v;
      var isUniformScale = effectElements[2].p.v === 1;
      var scaleHeight = effectElements[3].p.v;
      var scaleWidth = isUniformScale ? scaleHeight : effectElements[4].p.v;
      var skew = effectElements[5].p.v;
      var skewAxis = effectElements[6].p.v;
      var rotation = effectElements[7].p.v;
      this.matrix.reset();
      this.matrix.translate(-anchor[0], -anchor[1], anchor[2]);
      this.matrix.scale(scaleWidth * 0.01, scaleHeight * 0.01, 1);
      this.matrix.rotate(-rotation * degToRads);
      this.matrix.skewFromAxis(-skew * degToRads, (skewAxis + 90) * degToRads);
      this.matrix.translate(position[0], position[1], 0);
      this._mdf = true;
      if (this.opacity !== effectElements[8].p.v) {
        this.opacity = effectElements[8].p.v;
        this._opMdf = true;
      }
    }
  };

  function SVGTransformEffect(_, filterManager) {
    this.init(filterManager);
  }
  extendPrototype([TransformEffect], SVGTransformEffect);

  function CVTransformEffect(effectsManager) {
    this.init(effectsManager);
  }
  extendPrototype([TransformEffect], CVTransformEffect);

  // Registering renderers
  registerRenderer('canvas', CanvasRenderer);
  registerRenderer('html', HybridRenderer);
  registerRenderer('svg', SVGRenderer);

  // Registering shape modifiers
  ShapeModifiers.registerModifier('tm', TrimModifier);
  ShapeModifiers.registerModifier('pb', PuckerAndBloatModifier);
  ShapeModifiers.registerModifier('rp', RepeaterModifier);
  ShapeModifiers.registerModifier('rd', RoundCornersModifier);
  ShapeModifiers.registerModifier('zz', ZigZagModifier);
  ShapeModifiers.registerModifier('op', OffsetPathModifier);

  // Registering expression plugin
  setExpressionsPlugin(Expressions);
  setExpressionInterfaces(getInterface);
  initialize$1();
  initialize();

  // Registering svg effects
  registerEffect$1(20, SVGTintFilter, true);
  registerEffect$1(21, SVGFillFilter, true);
  registerEffect$1(22, SVGStrokeEffect, false);
  registerEffect$1(23, SVGTritoneFilter, true);
  registerEffect$1(24, SVGProLevelsFilter, true);
  registerEffect$1(25, SVGDropShadowEffect, true);
  registerEffect$1(28, SVGMatte3Effect, false);
  registerEffect$1(29, SVGGaussianBlurEffect, true);
  registerEffect$1(35, SVGTransformEffect, false);
  registerEffect(35, CVTransformEffect);

  return lottie;

}));
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(402);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_08b95622_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1003);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2389)
  __webpack_require__(2393)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-08b95622"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_08b95622_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_08b95622_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_taskCenter_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2390);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("44393e17", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-08b95622]{position:fixed;top:0;bottom:0;height:auto}.taskCenter[data-v-08b95622]{background-color:#f2f2f2}.taskCenter .ad-box[data-v-08b95622]{padding:.4rem .6rem;background:#fff;margin-bottom:.4rem}.taskCenter .ad-box img[data-v-08b95622]{width:100%;height:5.4rem;border-radius:.3rem}.taskCenter .maskLayer[data-v-08b95622]{position:fixed;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.taskCenter .maskLayer>.strategyContainer[data-v-08b95622]{background-color:#fff;position:absolute;width:80%;top:35%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:4px}.taskCenter .maskLayer>.strategyContainer>.title[data-v-08b95622]{width:100%;text-align:center;padding-top:16px;padding-bottom:16px}.taskCenter .maskLayer>.strategyContainer>.title>p[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.taskCenter .maskLayer>.strategyContainer>.content[data-v-08b95622]{padding-bottom:34px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px;text-align:left;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;line-height:18px}.taskCenter .maskLayer>.strategyContainer>.bottom[data-v-08b95622]{overflow:hidden}.taskCenter .maskLayer>.strategyContainer>.bottom>div[data-v-08b95622]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#377ee1;width:100%;float:left;position:relative}.taskCenter #summary[data-v-08b95622]{padding:.8rem .6rem;background:#fff;overflow:hidden}.taskCenter #summary>div[data-v-08b95622]{width:auto;white-space:nowrap;display:inline-block}.taskCenter #summary>div>div[data-v-08b95622]{display:inline-block;width:12rem;height:5.35rem;border-radius:4px;margin-left:.4rem;background:#eee;padding:1rem .6rem;position:relative}.taskCenter #summary>div>div span[data-v-08b95622]{font-size:14px;line-height:20px}.taskCenter #summary>div>div p[data-v-08b95622]{font-family:PingFangSC-Semibold;font-weight:600;font-size:32px;line-height:45px}.taskCenter #summary>div>div i[data-v-08b95622]{position:absolute;right:.6rem;top:2.5rem;width:3rem;height:28px;line-height:28px;font-size:14px;text-align:center}.taskCenter #summary>div .star[data-v-08b95622]{background:url(" + escape(__webpack_require__(2391)) + ") no-repeat;background-size:100% 100%;color:#fff}.taskCenter #summary>div .star i[data-v-08b95622]{color:#396ce1;background:#fff;border-radius:.7rem}.taskCenter #summary>div .bonus[data-v-08b95622]{background:url(" + escape(__webpack_require__(2392)) + ") no-repeat;background-size:100% 100%;color:#dec2a9}.taskCenter #summary>div .bonus i[data-v-08b95622]{color:#36322e;background:#dec2a9;border-radius:.7rem}.taskCenter #summary>div .fix[data-v-08b95622]{width:0;height:0;padding:0}.taskCenter .signTask[data-v-08b95622]{margin-top:.4rem;background-color:#fff;overflow:hidden}.taskCenter .signTask .title[data-v-08b95622]{padding-left:.6rem;margin-top:.6rem;font-family:PingFangSC-Semibold;font-size:.8rem;color:#333;position:relative;font-weight:700}.taskCenter .signTask .title>span[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;position:absolute;top:50%;right:.625rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-weight:400}.taskCenter .signTask .content[data-v-08b95622]{padding-bottom:.6rem}.taskCenter .signTask .content .item[data-v-08b95622]{margin-top:.8rem;height:2.4rem;overflow:hidden}.taskCenter .signTask .content .item>img[data-v-08b95622]{width:2rem;height:2rem;float:left;margin-left:.6rem;margin-top:.2rem;pointer-events:none}.taskCenter .signTask .content .item .rightContent[data-v-08b95622]{margin-left:3rem;position:relative}.taskCenter .signTask .content .item .rightContent .taskName[data-v-08b95622]{padding-top:.175rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.taskCenter .signTask .content .item .rightContent .taskName span[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545}.taskCenter .signTask .content .item .rightContent .taskDetail[data-v-08b95622]{margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.taskCenter .signTask .content .item .rightContent .taskDetail>span[data-v-08b95622]{display:inline;font-family:PingFangSC-Regular;font-size:.6rem;color:#ee4545}.taskCenter .signTask .content .item .rightContent .taskStatus[data-v-08b95622]{position:absolute;top:0;right:0;height:100%;width:5rem}.taskCenter .signTask .content .item .rightContent .taskStatus .doTask[data-v-08b95622]{background-color:#fff;color:#377ee1}.taskCenter .signTask .content .item .rightContent .taskStatus .doTask[data-v-08b95622],.taskCenter .signTask .content .item .rightContent .taskStatus .receive[data-v-08b95622]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.5rem;padding-top:.15rem;padding-bottom:.15rem;border-radius:.7rem;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;border:1px solid #377ee1}.taskCenter .signTask .content .item .rightContent .taskStatus .receive[data-v-08b95622]{background-color:#377ee1;color:#fff}.taskCenter .signTask .content .item .rightContent .taskStatus .finish[data-v-08b95622]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.5rem;padding-top:.15rem;padding-bottom:.15rem;background-color:#c3c3c3;border-radius:.7rem;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;color:#fff;border:1px solid #c3c3c3}.taskCenter .recommendTask[data-v-08b95622]{margin-top:.4rem;padding-bottom:.6rem;background-color:#fff}.taskCenter .recommendTask .title[data-v-08b95622]{padding-left:.6rem;padding-top:.6rem;font-family:PingFangSC-Semibold;font-size:.8rem;color:#333;position:relative;font-weight:700}.taskCenter .recommendTask .title>span[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666;float:right;margin-right:.6rem;margin-top:.2rem;font-weight:400}.taskCenter .recommendTask .content .item[data-v-08b95622]{margin-top:.8rem;height:2.4rem;overflow:hidden}.taskCenter .recommendTask .content .item .mainContent[data-v-08b95622]{margin-left:.6rem;position:relative}.taskCenter .recommendTask .content .item .mainContent .taskName[data-v-08b95622]{padding-top:.175rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.taskCenter .recommendTask .content .item .mainContent .taskName span[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545}.taskCenter .recommendTask .content .item .mainContent .taskDetail[data-v-08b95622]{margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.taskCenter .recommendTask .content .item .mainContent .taskDetail>span[data-v-08b95622]{display:inline;font-family:PingFangSC-Regular;font-size:.6rem;color:#ee4545}.taskCenter .recommendTask .content .item .mainContent .taskStatus[data-v-08b95622]{position:absolute;top:0;right:0;height:100%;width:5rem}.taskCenter .recommendTask .content .item .mainContent .taskStatus .finish[data-v-08b95622]{background-color:#c3c3c3;border-radius:.7rem;color:#fff;border:1px solid #c3c3c3}.taskCenter .recommendTask .content .item .mainContent .taskStatus .doTask[data-v-08b95622],.taskCenter .recommendTask .content .item .mainContent .taskStatus .finish[data-v-08b95622]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.5rem;padding-top:.15rem;padding-bottom:.15rem;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem}.taskCenter .recommendTask .content .item .mainContent .taskStatus .doTask[data-v-08b95622]{background-color:#fff;border-radius:.7rem;color:#377ee1;border:1px solid #377ee1}.taskCenter .recommendTask .content .item .mainContent .taskStatus .receive[data-v-08b95622]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.5rem;padding-top:.15rem;padding-bottom:.15rem;background-color:#377ee1;border-radius:.7rem;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;color:#fff;border:1px solid #377ee1}.taskCenter .redPacketTask .mainContent[data-v-08b95622]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.taskCenter .redPacketTask .mainContent .taskName[data-v-08b95622]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.taskCenter .redPacketTask .mainContent .taskStatus[data-v-08b95622]{position:relative!important;height:2rem!important}.taskCenter .regularTask[data-v-08b95622]{margin-top:.4rem;padding-bottom:.6rem;background-color:#fff}.taskCenter .regularTask .title[data-v-08b95622]{padding-left:.6rem;padding-top:.6rem;font-family:PingFangSC-Semibold;font-size:.8rem;color:#333;position:relative;font-weight:700}.taskCenter .regularTask .title>span[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666;float:right;margin-right:.6rem;margin-top:.2rem;font-weight:400}.taskCenter .regularTask .content .item[data-v-08b95622]{margin-top:.8rem;height:2.4rem;overflow:hidden}.taskCenter .regularTask .content .item .mainContent[data-v-08b95622]{margin-left:.6rem;position:relative}.taskCenter .regularTask .content .item .mainContent .taskName[data-v-08b95622]{padding-top:.175rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.taskCenter .regularTask .content .item .mainContent .taskName span[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545}.taskCenter .regularTask .content .item .mainContent .taskDetail[data-v-08b95622]{margin-top:.1rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.taskCenter .regularTask .content .item .mainContent .taskDetail>span[data-v-08b95622]{display:inline;font-family:PingFangSC-Regular;font-size:.6rem;color:#ee4545}.taskCenter .regularTask .content .item .mainContent .taskStatus[data-v-08b95622]{position:absolute;top:0;right:0;height:100%;width:5rem}.taskCenter .regularTask .content .item .mainContent .taskStatus .nofinish[data-v-08b95622]{border-radius:.7rem;color:#377ee1}.taskCenter .regularTask .content .item .mainContent .taskStatus .finish[data-v-08b95622],.taskCenter .regularTask .content .item .mainContent .taskStatus .nofinish[data-v-08b95622]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.5rem;padding-top:.15rem;padding-bottom:.15rem;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem}.taskCenter .regularTask .content .item .mainContent .taskStatus .finish[data-v-08b95622]{background-color:#c3c3c3;border-radius:.7rem;color:#fff;border:1px solid #c3c3c3}.taskCenter .regularTask .content .item .mainContent .taskStatus .doTask[data-v-08b95622]{background-color:#fff;color:#377ee1}.taskCenter .regularTask .content .item .mainContent .taskStatus .doTask[data-v-08b95622],.taskCenter .regularTask .content .item .mainContent .taskStatus .receive[data-v-08b95622]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.5rem;padding-top:.15rem;padding-bottom:.15rem;border-radius:.7rem;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;border:1px solid #377ee1}.taskCenter .regularTask .content .item .mainContent .taskStatus .receive[data-v-08b95622]{background-color:#377ee1;color:#fff}.taskCenter .commingSoon[data-v-08b95622]{font-family:PingFangSC-Regular;font-size:.7rem;color:#999;text-align:center;padding-top:1rem;padding-bottom:1rem}.taskCenter .popup[data-v-08b95622]{width:16rem;height:13.25rem;background-color:#fff;border-radius:.15rem;overflow:hidden}.taskCenter .popup .title[data-v-08b95622]{font-family:PingFangSC-Semibold;font-weight:700;font-size:.9rem;color:#333;letter-spacing:0;text-align:center;margin-top:.7rem}.taskCenter .popup .content[data-v-08b95622]{margin-top:.2rem;text-align:center}.taskCenter .popup .content>div[data-v-08b95622]:first-of-type{font-family:PingFangSC-Regular;font-size:.8rem;color:#ee4545}.taskCenter .popup .content>img[data-v-08b95622]{margin-top:.6rem;width:4rem;height:3.15rem;pointer-events:none}.taskCenter .popup .content>div[data-v-08b95622]:nth-of-type(2){font-family:PingFangSC-Regular;font-size:.8rem;color:#666;margin-top:1.1rem}.taskCenter .popup .bottom[data-v-08b95622]{height:2.45rem;position:absolute;width:100%;left:0;bottom:0;border-top:1px solid #d8d8d8;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.taskCenter .popup .bottom>div[data-v-08b95622]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;padding-top:.6rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#666}.taskCenter .popup .bottom>div[data-v-08b95622]:nth-of-type(2){color:#377ee1}.taskCenter .popup .bottom[data-v-08b95622]:after{content:\"\";height:100%;width:1px;background-color:#d8d8d8;position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/star.65d7b94.png";module.exports = __webpack_require__.p + "static/img/wallet.2478aec.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2394);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7dbad598", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".task-center-box .v-modal{opacity:.7}.task-center-box .chest-pop{width:10.5rem;height:auto;border-radius:.5rem;background:none}.task-center-box .chest-pop .chest-box{width:100%;height:auto}.task-center-box .chest-pop .img-box{width:10.5rem;height:9.5rem;position:relative;background:url(" + escape(__webpack_require__(2395)) + ") no-repeat;background-size:100% 100%}.task-center-box .chest-pop .chest-box .close{padding:.25rem;position:absolute;top:-3.25rem;right:-2.5rem;margin-left:-26px;z-index:20}.task-center-box .chest-pop .close img{width:1.6rem;height:1.6rem}.task-center-box .chest-pop .open-btn{position:relative;margin:3.7rem 0 0 .4rem;width:9.7rem;height:2.2rem;background:url(" + escape(__webpack_require__(1488)) + ");background-size:100% 100%;text-align:center;color:#d73d11;font:700 20px/2.2rem AlibabaPuHuiTi-Bold\\,AlibabaPuHuiTi}.task-center-box .chest-pop .open-btn .base{position:absolute;width:9.7rem;height:2rem;background:#b74b1e;z-index:-1;border-radius:1rem;bottom:-.15rem;left:0}.task-center-box .chest-pop.result-box{width:14rem;height:auto}.task-center-box .chest-pop.result-box .result-cont{width:100%;height:16.6rem;border-radius:.5rem;background:#fff;position:relative;background:url(" + escape(__webpack_require__(2396)) + ") no-repeat;background-size:100% 100%}.task-center-box .chest-pop.result-box .result-cont #img-box2{width:18rem;height:9rem;position:absolute;top:-3.3rem;left:-24%;z-index:10}.task-center-box .chest-pop.result-box .result-cont>img{width:10.3rem;height:1rem;top:8rem}.task-center-box .chest-pop.result-box .result-cont .prize,.task-center-box .chest-pop.result-box .result-cont>img{position:absolute;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.task-center-box .chest-pop.result-box .result-cont .prize{top:10rem;width:12.8rem;border:1px solid #ea3830;border-radius:.4rem;background:#ffefed;padding:.2rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.task-center-box .chest-pop.result-box .result-cont .prize img{width:4.05rem;height:4.05rem;margin-right:.4rem}.task-center-box .chest-pop.result-box .result-cont .prize .right{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:.3rem .2rem 0 0;box-sizing:border-box;color:#333;font:700 17px/1.2rem PingFangSC-Semibold}.task-center-box .chest-pop.result-box .close{top:-2.4rem;right:-1.05rem}.task-center-box .chest-pop.result-box .get-btn{margin:1.6rem 0 0 2.15rem;width:9.7rem;height:2.2rem;background:url(" + escape(__webpack_require__(1488)) + ");background-size:100% 100%;text-align:center;color:#d73d11;font:700 20px/2.2rem PingFangSC-Semibold\\,PingFang SC}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/openChest.525f996.png";module.exports = __webpack_require__.p + "static/img/chestBtn.0084f1a.png";module.exports = __webpack_require__.p + "static/img/chestAfter.10b89f4.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _lottieWeb = _interopRequireDefault(__webpack_require__(2397));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _header = _interopRequireDefault(__webpack_require__(93));
var _card = _interopRequireDefault(__webpack_require__(117));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  data: function data() {
    return {
      chestData: {},
      // 宝箱数据
      showChestPop: false,
      // 是否打开开宝箱弹窗
      showChestResultPop: false,
      // 是否显示打开宝箱结果弹窗
      chestResult: {},
      // 打开宝箱得到的礼品数据
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      signArticleFlag: false,
      isShowInfo: false,
      infoContent: '',
      today: {
        beans: '',
        days: '',
        sendPostBean: '' // 发帖签到的星豆数
      },
      centerInfo: {},
      regularTaskList: [],
      // 每日任务
      recommendTaskList: [],
      // 推荐任务
      redPackettaskList: [],
      // 红包任务
      popupVisible: false,
      mescroll: null,
      // mescroll实例对象
      shareText: '去分享',
      // 按钮文案状态
      lottie: null,
      adData: {} // 广告数据
    };
  },
  created: function created() {
    this.getAdData();
    this.starBeanInfo();
    this.getChestData();
    // this.userSign() // 签到送星豆的逻辑已经糅合在开宝箱里了
    this.getCenterInfo();
    this.getTaskList();
    if (this._Util.isApp() && this._Util.isIOS) {
      // window.location.reload();
      api.refreshHeaderLoadDone();
    }
  },
  mounted: function mounted() {
    var _this = this;
    // 创建MeScroll对象
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      // 在mounted初始化mescroll,确保此处配置的ref有值
      down: {
        offset: 48,
        mustToTop: true,
        auto: false,
        callback: this.refresh
      },
      up: {
        use: false,
        isBounce: false
      }
    });
    this.scroll = new _betterScroll.default('#summary', {
      scrollX: true,
      scrollY: false,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300
    });
    if (this._Util.isMPaaS()) {
      document.addEventListener('optionMenu', function (e) {
        var params = {
          title: document.title,
          desc: '',
          link: location.href,
          imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
        };
        _this._Util.mpassShare(params, function () {});
      }, false);
      document.addEventListener('gzOptionMenu', function (e) {
        var params = {
          title: document.title,
          desc: '',
          link: location.href,
          imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
        };
        _this._Util.mpassShare(params, function () {});
      }, false);
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
      * 获取广告位数据
    */
    getAdData: function getAdData() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'TaskCenter_adsense',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data && data.dataList.length) {
          _this2.adData = data.dataList[0];
        }
      }, function () {}, this);
    },
    /**
      * 打开广告
      * @param {Object} 广告数据
    */
    toAdDetail: function toAdDetail(data) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'taskCenterAd',
            url: data.url
          }
        });
      } else {
        location.href = data.url;
      }
    },
    getChestFn: function getChestFn() {
      this._Util.sensorsCollect('element_click', {
        $element_name: '收下宝箱',
        $element_content: '收下宝箱',
        $element_class_name: 'get-btn',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: '任务中心',
        moudle_type: '任务中心',
        correlation_id: '',
        operation_page: '任务中心'
      });
      this.showChestResultPop = false;
    },
    /**
      * 点击开启宝箱按钮,获取得到的内容
    */
    openCheckBoxFn: function openCheckBoxFn() {
      var _this3 = this;
      this._Util.sensorsCollect('element_click', {
        $element_name: '开启宝箱',
        $element_content: '开启宝箱',
        $element_class_name: 'open-btn',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: '任务中心',
        moudle_type: '任务中心',
        correlation_id: '',
        operation_page: '任务中心'
      });
      this._Util.post(this._Api.COMMUNITY_TASKCENTER_NEW.OPEN_CHEST_FN, {}, function (data) {
        _this3.showChestPop = false;
        _this3.showChestResultPop = true;
        if (data) {
          _this3.chestData.repeatFlag = true;
          _this3.lottie = _lottieWeb.default.loadAnimation({
            container: document.getElementById('img-box2'),
            // the dom element that will contain the animation
            renderer: 'svg',
            loop: false,
            autoplay: true,
            path: 'https://static1.kaxiuyun.com/animate/chest/data.json'
          });
          setTimeout(function () {
            // this.lottie.goToAndStop(1000)
            _this3.chestResult = data;
          }, 200);
          _this3.getTaskList();
          _this3.getCenterInfo();
        }
      }, function () {}, this);
    },
    /**
     * 监控弹窗关闭打开
     */
    homeModal: function homeModal(res) {
      if (res === 'open') {
        document.querySelector('.mescroll').style.position = 'fixed';
        document.querySelector('.mescroll').style.overflowY = 'hidden';
      } else {
        document.querySelector('.mescroll').style.position = 'relative';
        document.querySelector('.mescroll').style.overflowY = 'auto';
      }
    },
    /** 星豆介绍 */starBeanInfo: function starBeanInfo() {
      var _this4 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'star_bean_introduce',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this4.infoContent = data.dataList[0].text;
          // this.isShowInfo = true;
        }
      }, function () {}, this);
    },
    /** 跳转页面 */jumpPage: function jumpPage(jumpLink) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'recommend' + Math.random(),
            url: jumpLink
          }
        });
      } else {
        location.href = jumpLink;
      }
    },
    /* 去分享海报*/goShare: function goShare() {
      if (this.centerInfo.isSharePoster) {
        // 已分享
        if (!this.centerInfo.isSignSharePoster) {
          // 未领取
          this.receiveStarBean(123456, 3);
        }
      } else {
        // 未分享
        if (!this._Util.isApp()) {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '很抱歉，因微信功能限制，分享需要在卡修宝典App内操作。',
            closeOnClickModal: true,
            confirmButtonText: '立即下载卡修宝典App'
          }).then(function (action) {
            if (action === 'confirm') {
              location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb';
            }
          });
          return;
        }
        this.$router.push({
          name: 'sharePoster'
        });
      }
    },
    /* 触发app端发起的关闭发布回调的事件*/callEvent: function callEvent() {
      var that = this;
      if (this._Util.isApp()) {
        api.addEventListener({
          name: 'closePublish'
        }, function (ret, err) {
          that.popupVisible = false;
          that.getCenterInfo();
          that.getTaskList();
        });
      }
    },
    /**
     * 获取用户宝箱的数据及领取情况
    */
    getChestData: function getChestData() {
      var _this5 = this;
      this._Util.post(this._Api.COMMUNITY_TASKCENTER_NEW.GET_CHEST_DATA, {}, function (data) {
        if (data) {
          _this5.chestData = data;
          if (!_this5.chestData.repeatFlag) {
            _this5.showChestPop = true;
            // // 动画库存在七牛云上 crs-static 这个空间内，animate是lottie动画库的总文件夹，chest是宝箱的动画
            // this.lottie = lottie.loadAnimation({
            //   container: document.getElementById('img-box'), // the dom element that will contain the animation
            //   renderer: 'svg',
            //   loop: true,
            //   autoplay: true,
            //   path: 'https://static1.kaxiuyun.com/animate/chest/data.json'
            // })
            // setTimeout(() => {
            //   this.lottie.goToAndStop(1000)
            // }, 150)
          }
        }
      }, function () {}, this);
    },
    /** 用户签到 */userSign: function userSign() {
      var _this6 = this;
      return this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_USER_SIGN, {}, function (data) {
        _this6.today.beans = data.bean;
        _this6.today.days = data.days;
        _this6.today.sendPostBean = data.sendPostBean;
        _this6.signArticleFlag = data.signArticleFlag;
        if (!data.repeatFlag) {
          _this6.popupVisible = true;
        }
        _this6.getCenterInfo();
      }, function () {}, this);
    },
    /** 发帖签到 */articleSignIn: function articleSignIn() {
      this.popupVisible = false;
      // if (this._Util.isApp()) {
      // this.callEvent();
      // api.sendEvent({
      //   name: "acOpenUpImg",
      //   extra: {
      //     moduleId: 99,
      //     moduleName: '每日签到'
      //   }
      // });

      // } else {
      // MessageBox({
      //   title: "提示",
      //   message: "很抱歉，因微信功能限制，发帖需要在卡修宝典App内操作。",
      //   closeOnClickModal: true,
      //   confirmButtonText: "立即下载卡修宝典App"
      // }).then(action => {
      //   if (action === "confirm") {
      //     location.href =
      //       "https://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb";
      //   }
      // });
      // }

      this.$router.push({
        name: 'dailyCheck'
      });
    },
    /** 领取星豆 */
    receiveStarBean: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(taskId, taskType) {
        var _this7 = this;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_RECEIVE_STAR, {
                taskId: taskId,
                taskType: taskType
              }, function (data) {
                (0, _mintUi.Toast)({
                  message: '领取成功',
                  position: 'middle',
                  duration: 1500
                });
                _this7.getTaskList();
                _this7.getCenterInfo();
              }, function () {}, this);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 获取任务列表 */getTaskList: function getTaskList() {
      var _this8 = this;
      return this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_TASK_LIST, {}, function (data) {
        _this8.regularTaskList = data.dailyTaskList;
        _this8.recommendTaskList = data.recommendTaskList;
        _this8.redPackettaskList = data.redTaskList;
      }, function () {}, this);
    },
    /** 获取任务中心基本信息 */getCenterInfo: function getCenterInfo() {
      var _this9 = this;
      return this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_INFO, {}, function (data) {
        _this9.centerInfo = data;
        if (_this9.centerInfo.isSharePoster) {
          // 已分享
          if (!_this9.centerInfo.isSignSharePoster) {
            // 未领取
            _this9.shareText = '领取';
          } else {
            // 已领取
            _this9.shareText = '已领取';
          }
        }
      }, function () {}, this);
    },
    /** 上拉刷新 */refresh: function refresh() {
      var _this0 = this;
      this.popupVisible = false;
      Promise.all([this.getCenterInfo(), this.getTaskList()]).then(function (res) {
        setTimeout(function () {
          _this0.mescroll.endSuccess();
        }, 500);
      }).catch(function (err) {
        console.err(err);
      });
    },
    /** 查看我的签到表 */goSignIn: function goSignIn() {
      this.popupVisible = false;
      this.$router.push({
        name: 'signIn'
      });
    },
    /** 进入兑换页面 */goMyStars: function goMyStars() {
      this.$router.push({
        name: 'myStars'
      });
    },
    /**  进入提现页面*/takeCash: function takeCash() {
      this.$router.push({
        name: 'memberReward'
      });
    }
  },
  components: {
    headerFixed: _header.default,
    card: _card.default
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"task-center-box"},[_c('div',{ref:"mescroll",staticClass:"taskCenter mescroll",style:(!_vm.isApp ? 'padding-top:2.6rem;' : '')},[(_vm.adData.img)?_c('div',{staticClass:"ad-box"},[_c('img',{attrs:{"src":_vm.adData.img,"alt":""},on:{"click":function($event){return _vm.toAdDetail(_vm.adData)}}})]):_vm._e(),_vm._v(" "),_c('div',{attrs:{"id":"summary"},on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',[_c('div',{staticClass:"star"},[_c('span',[_vm._v("我的星豆（个）")]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.centerInfo.beanTotal || 0))]),_vm._v(" "),_c('i',{on:{"click":_vm.goMyStars}},[_vm._v("兑换")])]),_vm._v(" "),_c('div',{staticClass:"bonus"},[_c('span',[_vm._v("奖金总额（元）")]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.centerInfo.medalRewardTotal || 0))]),_vm._v(" "),_c('i',{on:{"click":_vm.takeCash}},[_vm._v("提现")])]),_vm._v(" "),_c('div',{staticClass:"fix"})])]),_vm._v(" "),_c('div',{staticClass:"signTask"},[_c('div',{staticClass:"title"},[_vm._v("\n        签到任务\n        "),_c('span',{on:{"click":_vm.goSignIn}},[_vm._v("查看签到表 >")])]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"item"},[_c('img',{attrs:{"src":__webpack_require__(2398),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"taskName"},[_vm._v("\n              "+_vm._s(_vm.centerInfo.signCopy)+"\n              ")]),_vm._v(" "),_c('div',{staticClass:"taskDetail"},[_vm._v("\n              已连续签到"+_vm._s(_vm.centerInfo.continuityDay)+"天\n            ")]),_vm._v(" "),_c('div',{staticClass:"taskStatus"},[(!_vm.chestData.repeatFlag)?_c('div',{staticClass:"doTask",on:{"click":function($event){_vm.showChestPop = true}}},[_vm._v("去开启")]):_c('div',{staticClass:"finish"},[_vm._v("已领取")])])])]),_vm._v(" "),_c('div',{staticClass:"item"},[_c('img',{attrs:{"src":__webpack_require__(2399),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"taskName"},[_vm._v("\n              发签到帖\n              "),_c('span',[_vm._v("+"+_vm._s(_vm.centerInfo.SignPostBeanNum)+"星豆")])]),_vm._v(" "),_c('div',{staticClass:"taskDetail"},[_vm._v("\n              完成"),_c('span',[_vm._v(_vm._s(_vm.centerInfo.isSignPost==1?'1':'0'))]),_vm._v("/1\n            ")]),_vm._v(" "),_c('div',{staticClass:"taskStatus"},[(_vm.centerInfo.isSignPost==0)?_c('div',{staticClass:"doTask",on:{"click":_vm.articleSignIn}},[_vm._v("去发帖")]):(_vm.centerInfo.isSignPostReceive==0)?_c('div',{staticClass:"receive",on:{"click":function($event){return _vm.receiveStarBean(0, 3)}}},[_vm._v("领取")]):_c('div',{staticClass:"finish"},[_vm._v("已领取")])])])]),_vm._v(" "),_c('div',{staticClass:"item"},[_c('img',{attrs:{"src":__webpack_require__(2400),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"taskDetail"},[_vm._v("\n              完成"),_c('span',[_vm._v(_vm._s(_vm.centerInfo.isSharePoster))]),_vm._v("/1\n            ")]),_vm._v(" "),_c('div',{staticClass:"taskStatus"},[_c('div',{class:['doTask',{'finish':_vm.centerInfo.isSharePoster&&_vm.centerInfo.isSignSharePoster,
                                   'receive':_vm.centerInfo.isSharePoster&&!_vm.centerInfo.isSignSharePoster}],on:{"click":function($event){return _vm.goShare()}}},[_vm._v("\n                "+_vm._s(_vm.shareText))])])])])])]),_vm._v(" "),(_vm.redPackettaskList&&_vm.redPackettaskList.length>0)?_c('div',{staticClass:"recommendTask redPacketTask"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((_vm.redPackettaskList),function(val){return _c('div',{key:val.taskId,staticClass:"item"},[_c('div',{staticClass:"mainContent"},[_c('div',{staticClass:"taskName"},[_c('p',[_vm._v(_vm._s(val.taskName))]),_vm._v(" "),_c('span',[_vm._v("+"+_vm._s(val.beanNum)+"元")])]),_vm._v(" "),_c('div',{staticClass:"taskStatus"},[_c('div',{staticClass:"doTask",on:{"click":function($event){return _vm.jumpPage(val.jumpLink)}}},[_vm._v("做任务")])])])])}),0)]):_vm._e(),_vm._v(" "),_c('card',{attrs:{"cardcontent":{}}}),_vm._v(" "),(_vm.recommendTaskList&&_vm.recommendTaskList.length>0)?_c('div',{staticClass:"recommendTask"},[_vm._m(2),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((_vm.recommendTaskList),function(val,index){return _c('div',{key:index,staticClass:"item"},[_c('div',{staticClass:"mainContent"},[_c('div',{staticClass:"taskName"},[_vm._v("\n              "+_vm._s(val.taskName)+"\n              "),_c('span',[_vm._v("+"+_vm._s(val.beanNum)+"星豆")])]),_vm._v(" "),_c('div',{staticClass:"taskDetail"},[_vm._v("\n              完成"),_c('span',[_vm._v(_vm._s(val.finishProgress))]),_vm._v("/"+_vm._s(val.progressTotal)+"\n            ")]),_vm._v(" "),_c('div',{staticClass:"taskStatus"},[(val.receiveStatus==0)?_c('div',{staticClass:"doTask",on:{"click":function($event){return _vm.jumpPage(val.jumpLink)}}},[_vm._v("做任务")]):(val.receiveStatus==1)?_c('div',{staticClass:"receive",on:{"click":function($event){return _vm.receiveStarBean(val.taskId, 1)}}},[_vm._v("领取")]):_c('div',{staticClass:"finish"},[_vm._v("已领取")])])])])}),0)]):_vm._e(),_vm._v(" "),(_vm.regularTaskList&&_vm.regularTaskList.length>0)?_c('div',{staticClass:"regularTask"},[_vm._m(3),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((_vm.regularTaskList),function(val,index){return _c('div',{key:index,staticClass:"item"},[_c('div',{staticClass:"mainContent"},[_c('div',{staticClass:"taskName"},[_vm._v("\n              "+_vm._s(val.taskName)+"\n              "),_c('span',[_vm._v("+"+_vm._s(val.beanNum)+"星豆")])]),_vm._v(" "),_c('div',{staticClass:"taskDetail"},[_vm._v("\n              完成"),_c('span',[_vm._v(_vm._s(val.finishProgress))]),_vm._v("/"+_vm._s(val.progressTotal)+"\n            ")]),_vm._v(" "),_c('div',{staticClass:"taskStatus"},[(val.receiveStatus==0)?_c('div',{staticClass:"nofinish"},[_vm._v("未完成")]):(val.receiveStatus==1)?_c('div',{staticClass:"receive",on:{"click":function($event){return _vm.receiveStarBean(val.taskId, 2)}}},[_vm._v("领取")]):_c('div',{staticClass:"finish"},[_vm._v("已领取")])])])])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"commingSoon",staticStyle:{"color":"#377EE1"},on:{"click":function($event){return _vm.jumpPage('https://wx.kaxiuyun.com/v2/questionnaire/index?no=b2f4fd58')}}},[_vm._v("\n      社区意见反馈\n    ")]),_vm._v(" "),_c('mt-popup',{staticStyle:{"border-radius":"0.15rem","overflow":"hidden"},attrs:{"popup-transition":"popup-fade"},model:{value:(_vm.popupVisible),callback:function ($$v) {_vm.popupVisible=$$v},expression:"popupVisible"}},[_c('div',{staticClass:"popup"},[_c('div',{staticClass:"title"},[_vm._v("签到成功")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',[_vm._v("+"+_vm._s(_vm.today.beans)+"星豆")]),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(2401),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("发签到帖，再拿"+_vm._s(_vm.today.sendPostBean)+"星豆")])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){_vm.popupVisible=false;}}},[_vm._v("稍后再说")]),_vm._v(" "),(_vm.signArticleFlag)?_c('div',{on:{"click":_vm.goSignIn}},[_vm._v("查看签到表")]):_c('div',{on:{"click":_vm.articleSignIn}},[_vm._v("发签到帖")])])])])],1),_vm._v(" "),(!_vm.isApp)?_c('headerFixed',{on:{"homeModal":_vm.homeModal}}):_vm._e(),_vm._v(" "),_c('mt-popup',{staticClass:"chest-pop",attrs:{"position":"middle","close-on-click-modal":false},model:{value:(_vm.showChestPop),callback:function ($$v) {_vm.showChestPop=$$v},expression:"showChestPop"}},[_c('div',{staticClass:"chest-box"},[_c('div',{staticClass:"close",on:{"click":function($event){_vm.showChestPop = false}}},[_c('img',{attrs:{"src":__webpack_require__(283),"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"img-box",attrs:{"id":"img-box"}}),_vm._v(" "),_c('div',{staticClass:"open-btn",on:{"click":_vm.openCheckBoxFn}},[_c('div',{staticClass:"base"}),_vm._v("\n        开启宝箱\n      ")])])]),_vm._v(" "),_c('mt-popup',{staticClass:"chest-pop result-box",attrs:{"position":"middle","close-on-click-modal":false},model:{value:(_vm.showChestResultPop),callback:function ($$v) {_vm.showChestResultPop=$$v},expression:"showChestResultPop"}},[_c('div',{staticClass:"chest-box"},[_c('div',{staticClass:"close",on:{"click":function($event){$event.stopPropagation();_vm.showChestResultPop = false}}},[_c('img',{attrs:{"src":__webpack_require__(283),"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"result-cont"},[_c('div',{attrs:{"id":"img-box2"}}),_vm._v(" "),_c('img',{directives:[{name:"show",rawName:"v-show",value:(_vm.chestResult.text),expression:"chestResult.text"}],attrs:{"src":__webpack_require__(2402),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"prize"},[_c('img',{attrs:{"src":_vm.chestResult.imgUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right"},[_vm._v(_vm._s(_vm.chestResult.text))])])]),_vm._v(" "),_c('div',{staticClass:"get-btn",on:{"click":_vm.getChestFn}},[_c('div',{staticClass:"base"}),_vm._v("\n        收下奖品\n      ")])])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"taskName"},[_vm._v("\n              分享海报\n              "),_c('span',[_vm._v("+10星豆")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_vm._v("\n        红包任务\n        "),_c('span',[_vm._v("红包任务完成后需审核通过后领取")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_vm._v("\n        推荐任务\n        "),_c('span',[_vm._v("推荐任务完成后需等待一小时后领取")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_vm._v("\n        每日任务\n        "),_c('span',[_vm._v("每日任务星豆需在当天领取")])])}]
module.exports = __webpack_require__.p + "static/img/每日签到.7b593dd.png";module.exports = __webpack_require__.p + "static/img/发帖签到.c283075.png";module.exports = __webpack_require__.p + "static/img/shareposter.4c3c3f4.png";module.exports = __webpack_require__.p + "static/img/弹框.f7d6209.png";module.exports = __webpack_require__.p + "static/img/close.e9406be.png";module.exports = __webpack_require__.p + "static/img/chestText.fd3296b.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(403);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0538a5bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1004);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2403)
  __webpack_require__(2405)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0538a5bd"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0538a5bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0538a5bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sharePoster_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2404);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("215bca85", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-0538a5bd]{background-color:#fff}.outContainer .poster[data-v-0538a5bd]{width:16.75rem;margin:.8rem 1rem 1.6rem;pointer-events:none}.outContainer>p[data-v-0538a5bd]{width:100%;height:1.6rem;line-height:1.6rem;text-align:center;color:#e8541e;background:#fceee9;font-size:.7rem;margin-bottom:.8rem}.outContainer .shareBtn[data-v-0538a5bd]{width:17.55rem;height:2.2rem;line-height:2.2rem;text-align:center;margin-left:.6rem;color:#fff;font-size:.85rem;background:#377ee1;border-radius:.1rem;position:fixed;bottom:.4rem;z-index:1}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2406);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("79f4a682", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".communityposter.touch{-ms-touch-action:none;touch-action:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      imgPath: null,
      iosOrAndroid: false // 解决touch ios中报错
    };
  },
  created: function created() {},
  mounted: function mounted() {
    this.getimgPath();
    this.iosOrAndroid = this._Util.isIOS;
  },
  methods: {
    /** 报表接口获取海报图片*/getimgPath: function getimgPath() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'share_task_img'
      }, function (data) {
        if (data.dataList.length) {
          _this.imgPath = data.dataList[0].img_url;
        }
      }, function () {}, this);
    },
    /**
     * app是否有某个权限
    */
    isRight: function isRight(callBack) {
      var resultList = api.hasPermission({
        list: ['photos']
      });
      console.log(JSON.stringify('是否有存储的权限11----' + resultList[0].granted));
      if (!resultList[0].granted) {
        (0, _mintUi.Messagebox)({
          title: '“卡修宝典”想访问您的存储权限',
          message: '在使用分享功能时，需要使用存储功能，用于下载并存储分享图片',
          confirmButtonText: '同意',
          showCancelButton: 'true',
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action == 'confirm') {
            api.requestPermission({
              list: ['photos'],
              code: 100004
            }, function (ret, err) {
              if (ret.never) {
                console.log('点击了不再提醒');
              }
              if (ret.list[0].granted) {
                callBack && callBack();
              }
            });
          }
        });
      } else {
        callBack && callBack();
      }
    },
    // 分享图片到朋友圈
    sharePic: function sharePic() {
      var that = this;
      var wx = api.require('wx');
      if (that._Util.isApp()) {
        that.isRight(function () {
          api.download({
            url: that.imgPath,
            savePath: 'fs://communitySharePic.jpg',
            report: true,
            cache: false,
            allowResume: true
          }, function (ret, err) {
            if (ret.state == 1) {
              // 下载成功
              wx.isInstalled(function (ret, err) {
                if (ret.installed) {
                  wx.shareImage({
                    apiKey: '',
                    scene: 'timeline',
                    contentUrl: 'fs://communitySharePic.jpg'
                  }, function (ret, err) {
                    if (ret.status) {
                      (0, _mintUi.Toast)('分享成功');
                      that.sendPoster();
                    } else {
                      (0, _mintUi.Toast)('分享失败');
                    }
                  });
                } else {
                  (0, _mintUi.Toast)('当前设备未安装微信客户端');
                }
              });
            } else if (ret.state == 2) {
              (0, _mintUi.Toast)('服务站分享海报下载失败');
            }
          });
        });
      }
    },
    // 分享成功接口传参
    sendPoster: function sendPoster() {
      this._Util.post(this._Api.POST_COMMUNITY_SEND_POSTER, {
        imgUrl: this.imgPath
      }, function (data) {}, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer communityposter",class:{touch:_vm.iosOrAndroid}},[_c('p',[_vm._v("点击下方按钮，分享成功可得10星豆")]),_vm._v(" "),_c('img',{staticClass:"poster",attrs:{"src":_vm.imgPath,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"shareBtn",on:{"click":function($event){return _vm.sharePic()}}},[_vm._v("分享到朋友圈")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(404);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4a7f6234_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1005);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2407)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4a7f6234_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4a7f6234_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carCodeTask_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2408);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5c5df072", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-msgbox-btns .confBtn{color:#e11d34!important}.mint-toast{min-width:65%!important}#carCodeimg{width:100%;height:10rem}.carCodeTask{height:auto!important;min-height:100%;background:#080927 url(" + escape(__webpack_require__(2409)) + ") no-repeat;background-size:100% auto;padding-top:1rem;font-family:PingFangSC-Regular}.carCodeTask .notice{height:3.35rem;display:-webkit-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between;border-radius:4px;width:94%;margin-left:3%;background:#fff;box-shadow:0 0 20px 0 rgba(237,244,252,.5);padding:.6rem}.carCodeTask .notice .left{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%}.carCodeTask .notice .left p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.carCodeTask .notice .left p:first-of-type{font-size:16px;color:#333;line-height:23px}.carCodeTask .notice .left p:nth-of-type(2){margin-top:2px;font-size:13px;color:#666;line-height:19px}.carCodeTask .notice .right{width:3.6rem;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.carCodeTask .notice .right span{display:block;width:100%;height:25px;line-height:25px;text-align:center;color:#ef3739;font-size:12px;border:1px solid #ef3739;border-radius:17px}.carCodeTask header{width:17.5rem;height:6.6rem;background-size:100% 100%;margin:0 auto 1.4rem}.carCodeTask .redPackBox{width:18.3rem;height:19.2rem;margin:0 auto;background:#080927 url(" + escape(__webpack_require__(2410)) + ") no-repeat;background-size:100% 100%;position:relative;padding-top:6rem}.carCodeTask .redPackBox input{display:block;width:13.4rem;height:2.2rem;border-radius:1.1rem;top:6rem;margin:0 auto;background:#fff;text-align:center;z-index:100000}.carCodeTask .redPackBox input::-webkit-input-placeholder{font-size:16px;font-family:PingFangSC-Regular;color:#e11d34}.carCodeTask .redPackBox .carCodeBtn{display:block;width:13.4rem;height:2.2rem;line-height:2.2rem;border-radius:1.1rem;text-align:center;margin:1.6rem auto 0;font-size:18px;color:#453012;background:-webkit-gradient(linear,left top,left bottom,from(#ffdd94),to(#eaa047));background:linear-gradient(180deg,#ffdd94,#eaa047)}.carCodeTask .redPackBox p{margin-top:3.4rem;text-align:center;color:#fff;width:100%;font-size:16px}.carCodeTask .redPackBox p span{display:inline-block;width:16px;height:16px;margin-right:3px;background:url(" + escape(__webpack_require__(2411)) + ") no-repeat;background-size:100% 100%;position:relative;top:2px}.carCodeTask .upLoadImgBox{font-family:PingFangSC-Regular;position:absolute;width:96%;height:97%;top:2%;left:2%;overflow-y:auto;-webkit-overflow-scrolling:touch;-webkit-transform:translateZ(0);background:#080927;border-radius:6px;z-index:1000}.carCodeTask .upLoadImgBox .imgBox{border-radius:6px;background:#fff;min-height:101%}.carCodeTask .upLoadImgBox .imgBox .money{height:6.6rem;background:url(" + escape(__webpack_require__(2412)) + ") no-repeat;background-size:100% 100%;position:relative}.carCodeTask .upLoadImgBox .imgBox .money p{position:absolute;width:100%;text-align:center;color:#ffecca;font-size:16px;top:1.7rem}.carCodeTask .upLoadImgBox .imgBox .money div{position:absolute;width:100%;text-align:center;color:#ffecca;font-size:16px;top:3rem}.carCodeTask .upLoadImgBox .imgBox .money div span{font-size:36px;font-weight:600;margin-right:5px}.carCodeTask .upLoadImgBox .imgBox .tit{height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:1.4rem;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.carCodeTask .upLoadImgBox .imgBox .tit p{width:9.8rem;text-align:center;line-height:1.5rem;font-size:16px;font-family:PingFangSC-Semibold;color:#ef3739}.carCodeTask .upLoadImgBox .imgBox .tit span{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.carCodeTask .upLoadImgBox .imgBox .tit span:first-of-type{background:100% url(" + escape(__webpack_require__(2413)) + ") no-repeat;background-size:2.25rem .4rem}.carCodeTask .upLoadImgBox .imgBox .tit span:nth-of-type(2){background:0 url(" + escape(__webpack_require__(2414)) + ") no-repeat;background-size:2.25rem .4rem}.carCodeTask .upLoadImgBox .imgBox .upItem{padding:0 .7rem;margin-top:1.8rem}.carCodeTask .upLoadImgBox .imgBox .upItem .title{position:relative}.carCodeTask .upLoadImgBox .imgBox .upItem .title p{font-size:18px;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:1.25rem}.carCodeTask .upLoadImgBox .imgBox .upItem .title span{font-size:14px;color:#999;line-height:1rem;margin-top:4px;color:#ef3739}.carCodeTask .upLoadImgBox .imgBox .upItem .title i{position:absolute;right:0;top:0;width:3.6rem;height:25px;line-height:25px;border-radius:.9rem;color:#377ee1;border:1px solid #377ee1;text-align:center;font-size:12px}.carCodeTask .upLoadImgBox .imgBox .upItem .imgs>div{width:45%;height:5.1rem;background:#f7f7f7;border-radius:4px;float:left;margin-right:9%;margin-top:1rem;position:relative;border:1px solid #c0c0c6;cursor:pointer}.carCodeTask .upLoadImgBox .imgBox .upItem .imgs>div:nth-of-type(2n){margin-right:0}.carCodeTask .upLoadImgBox .imgBox .upItem .imgs>div span{position:absolute;width:2rem;height:2rem;top:50%;left:50%;margin-top:-1rem;margin-left:-1rem;background:url(" + escape(__webpack_require__(266)) + ") no-repeat;background-size:100% 100%}.carCodeTask .upLoadImgBox .imgBox .upItem .imgs>div img{position:absolute;width:100%;height:100%;top:0;left:0}.carCodeTask .upLoadImgBox .imgBox .upItem .imgs>div input{position:absolute;width:100%;height:100%;z-index:100;opacity:0}.carCodeTask .upLoadImgBox .imgBox .upItem .imgs>div .del{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(2415)) + ") no-repeat;background-size:100% 100%;border-radius:50%;top:-.5rem;right:-.5rem}.carCodeTask .upLoadImgBox .imgBox .subBtn{width:94%;margin-left:3%;margin-top:2.2rem;line-height:2.2rem;background:#ef3739;text-align:center;font-size:18px;border-radius:1.1px;color:#fff}.carCodeTask .upLoadImgBox .imgBox .des{text-align:center;font-size:14px;color:#333;margin-top:.6rem;padding-bottom:1rem}.carCodeTask .upLoadImgBox .imgBox .des span{color:#ef3739;padding:0 5px}.carCodeTask .upLoadImgBox .imgBox .warning{width:100%;height:4.2rem;color:#fff;font-size:14px;text-align:center;background:#080927;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/bg.547811e.jpg";module.exports = __webpack_require__.p + "static/img/redPack.708f857.png";module.exports = __webpack_require__.p + "static/img/system-help.f6e8dc8.png";module.exports = __webpack_require__.p + "static/img/redPack_header.db3ac77.png";module.exports = __webpack_require__.p + "static/img/left.cc15c84.png";module.exports = __webpack_require__.p + "static/img/right.278b36e.png";module.exports = __webpack_require__.p + "static/img/addImg.03e2f96.png";module.exports = __webpack_require__.p + "static/img/del.d27332c.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _iscroll = _interopRequireDefault(__webpack_require__(312));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      myScroll: null,
      carCode: '',
      // 车辆识别代号
      // redPacketOpened: false,  //红包是否已经被拆过
      money: 0,
      // 红包钱数
      getAgain: true,
      // 防止请求重复发送
      showUpBox: false,
      // 是否显示传照片弹窗
      carPlate: [],
      // 车牌照片
      ECUImgs: [],
      // ecu照片
      DCUImgs: [],
      // dcu照片
      PUMPImgs: [],
      // 尿素泵照片
      ZDKImgs: [],
      // 诊断口照片
      token: '',
      bucketUrl: '',
      taskId: '',
      subAgain: true,
      // 防止重复提交图片
      popupVisible: false,
      timer: null,
      noticeObj: null,
      ExampleImgs: null // 全部示例照片的集合
    };
  },
  created: function created() {
    var that = this;
    // 获取七牛云 token
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
    }, function () {}, that);
    that.getNotice();
    that.collect();
    that.getExampleImgs();
  },
  mounted: function mounted() {
    this.share();
    var codeInput = document.getElementById('codeInput');
    codeInput.onblur = function () {
      window.scroll(0, 0);
    };
    if (!this._Util.isIOS) {
      // 软键盘弹起，输入框自动出现在可视区域
      this.timer = setInterval(function () {
        if (document.activeElement.className.indexOf('inputcontent') >= 0) {
          document.activeElement.scrollIntoViewIfNeeded();
        }
      }, 300);
    }
  },
  methods: {
    /** 解决ios toast弹出后滑动触摸引起页面往上滚动 */perventMoveFn: function perventMoveFn(elClass) {
      var el = document.getElementsByClassName(elClass)[0];
      el.addEventListener('touchmove', function (e) {
        e.preventDefault();
      });
    },
    /** 获取查看示例的照片 */getExampleImgs: function getExampleImgs() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'vehicle_task_pic',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length) {
          _this.ExampleImgs = data.dataList[0];
        }
      }, function () {}, this);
    },
    /** 进入页面记录埋点 */collect: function collect() {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '车辆信息任务',
        operate_page: '车辆信息任务',
        optionType: '打开',
        param1: location.href
      }, that);
    },
    /** 获取提示信息 */getNotice: function getNotice() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'vehicle_task_money',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length) {
          that.noticeObj = data.dataList[0];
        }
      }, function () {}, that);
    },
    /** 领取红包 */takeCash: function takeCash(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'takeCash',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    // 拆红包
    openRedPacket: (0, _throttleDebounce.throttle)(1000, function () {
      var _this2 = this;
      var that = this;
      if (!that.getAgain) {
        return;
      }
      if (!that.carCode.trim()) {
        (0, _mintUi.Toast)({
          message: '请输入车辆识别代号',
          duration: 1500
        });
        that.perventMoveFn('mint-toast');
        return;
      }
      that.getAgain = false;
      that._Util.post(that._Api.POST_COMMUNITY_TASKCENTER_REDENVELOPE, {
        vinNo: that.carCode
      }, function (data) {
        if (data.userId) {
          that.getAgain = true;
          if (data.status) {
            // 红包状态，0:不存在，1：存在
            that.money = data.money;
            // that.redPacketOpened = true;
            that.taskId = data.id;
            that.showUpBox = true;
            if (that._Util.isIOS) {
              document.getElementById('scrollBox').addEventListener('touchmove', function (e) {
                e.preventDefault();
              });
              setTimeout(function () {
                _this2.myScroll = new _iscroll.default('#scrollBox', {
                  bounce: false
                });
              });
            }
          } else {
            // let msg = that.redPacketOpened ? '红包已被领取' : '很抱歉，这个车辆识别码没有红包';
            var msg = '很抱歉，这个车辆识别码没有红包或者红包已被领取';
            (0, _mintUi.Toast)({
              message: msg,
              duration: 2500
            });
          }
        }
      }, function () {}, that);
    }),
    // 显示车辆识别弹窗
    showCodeBox: function showCodeBox() {
      this.popupVisible = true;
    },
    // 上传图片
    fileChange: function fileChange(e, type) {
      var that = this;
      if (e.target.files[0]) {
        _mintUi.Indicator.open('上传中...');
        that._Util.compressImg(e, function (urlObj) {
          console.log(urlObj);
          that.upload(urlObj, type);
        });
      }
    },
    upload: function upload(e, type) {
      var _this3 = this;
      var that = this;
      var file = e;
      if (file) {
        var formData = new FormData();
        formData.append('file', file);
        formData.append('token', that.token);
        var url = '';
        if (that._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        _jquery.default.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          switch (type) {
            case 'car':
              // 车牌
              that.carPlate.push(res.key);
              break;
            case 'ecu':
              // ecu
              that.ECUImgs.push(res.key);
              break;
            case 'dcu':
              // dcu
              that.DCUImgs.push(res.key);
              break;
            case 'pump':
              // 尿素泵
              that.PUMPImgs.push(res.key);
              break;
            case 'zdk':
              // 诊断口
              that.ZDKImgs.push(res.key);
              break;
          }
          setTimeout(function () {
            _this3.myScroll.refresh();
          }, 0);
        }).fail(function (err) {
          console.log(err);
          _mintUi.Indicator.close();
          (0, _mintUi.Toast)({
            message: '上传失败，请重新上传',
            duration: 1000
          });
        });
      }
    },
    // 删除照片
    del: function del(index, imgList) {
      imgList.splice(index, 1);
    },
    // 查看示例
    openExample: function openExample(type) {
      if (this.ExampleImgs) {
        var src = '';
        if (type == 'car') {
          // 车牌
          src = this.ExampleImgs['car_pic'];
        } else if (type == 'ecu') {
          // 诊断口
          src = this.ExampleImgs['ecu_pic'];
        } else if (type == 'dcu') {
          // ECU
          src = this.ExampleImgs['dcu_pic'];
        } else if (type == 'pump') {
          src = this.ExampleImgs['pump_pic'];
        } else if (type == 'zdk') {
          src = this.ExampleImgs['obd_pic'];
        }
        this.$store.commit('openImgView', {
          imgUrl: src,
          imgList: [],
          activeIndex: 0
        });
      }
    },
    // 上传照片及其他信息
    subImgs: (0, _throttleDebounce.throttle)(1000, function () {
      var that = this;
      if (!that.subAgain) {
        return;
      }
      if (that.carPlate.length == 0) {
        (0, _mintUi.Toast)({
          message: '请上传车辆铭牌照片',
          duration: 1500
        });
        that.perventMoveFn('mint-toast');
        return;
      }
      if (that.ECUImgs.length == 0) {
        (0, _mintUi.Toast)({
          message: '请上传ECU照片',
          duration: 1500
        });
        that.perventMoveFn('mint-toast');
        return;
      }
      if (that.ZDKImgs.length == 0) {
        (0, _mintUi.Toast)({
          message: '请上传诊断口照片',
          duration: 1500
        });
        that.perventMoveFn('mint-toast');
        return;
      }
      that.subAgain = false;
      var imgsData = [];
      that.arrangeImgs(imgsData, that.carPlate, 0); // 车辆铭牌
      that.arrangeImgs(imgsData, that.ECUImgs, 1); // ecu
      if (that.DCUImgs.length) {
        that.arrangeImgs(imgsData, that.DCUImgs, 2); // dcu
      }
      if (that.PUMPImgs.length) {
        that.arrangeImgs(imgsData, that.PUMPImgs, 3); // 尿素泵
      }
      that.arrangeImgs(imgsData, that.ZDKImgs, 4); // 诊断口obd
      console.log(imgsData);
      that._Util.post(that._Api.POST_COMMUNITY_TASKCENTER_SUBMITVEHICLE, {
        id: that.taskId,
        imgs: imgsData
      }, function (data) {
        console.log(data);
        that.$router.push({
          name: 'taskCenter'
        });
      }, function () {
        that.subAgain = true;
      }, that);
    }),
    /** 整理图片供提交使用 */arrangeImgs: function arrangeImgs(imgsData, imgList, type) {
      imgList.forEach(function (item) {
        imgsData.push({
          imgUrl: item,
          type: type
        });
      });
    },
    // 配置分享
    share: function share() {
      var that = this;
      var shareTitle = '小轨@你，给卡车拍个照，就可以领取一个大红包，先到先得！';
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: shareTitle,
                  desc: '每辆车仅限1次，快来快来',
                  link: location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/redpack.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '任务中心',
              operate_page: '红包任务',
              optionType: '分享',
              param1: window.location.href,
              param2: '',
              param4: {
                'queryValue': '',
                'result': '',
                'filter': ''
              }
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: shareTitle,
              desc: '每辆车仅限1次，快来快来',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/redpack.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '任务中心',
                operate_page: '红包任务',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: shareTitle,
              desc: '每辆车仅限1次，快来快来',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/redpack.jpg',
              success: function success() {
                that._Util.collectPageView2({
                  version: that._Util.version,
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '任务中心',
                  operate_page: '红包任务',
                  optionType: '分享',
                  param1: window.location.href,
                  param2: '',
                  param4: {
                    'queryValue': '',
                    'result': '',
                    'filter': ''
                  }
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"carCodeTask"},[(_vm.noticeObj && !_vm.showUpBox)?_c('div',{staticClass:"notice"},[_c('div',{staticClass:"left"},[_c('p',[_vm._v(_vm._s(_vm.noticeObj.title))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.noticeObj.text))])]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('span',{on:{"click":function($event){return _vm.takeCash(_vm.noticeObj.url)}}},[_vm._v("立即领取")])])]):_vm._e(),_vm._v(" "),_c('header',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showUpBox),expression:"!showUpBox"}]}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showUpBox),expression:"!showUpBox"}],staticClass:"redPackBox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.carCode),expression:"carCode"}],staticClass:"inputcontent",attrs:{"id":"codeInput","type":"text","placeholder":"输入车辆识别代号"},domProps:{"value":(_vm.carCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.carCode=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"carCodeBtn",on:{"click":_vm.openRedPacket}},[_vm._v("立即拆红包")]),_vm._v(" "),_c('p',{on:{"click":function($event){return _vm.openExample('car')}}},[_c('span'),_vm._v("什么是车辆识别代号")])]),_vm._v(" "),_c('transition',{attrs:{"name":"fade","enter-active-class":"animated swing","leave-active-class":"animated shake"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showUpBox),expression:"showUpBox"}],staticClass:"upLoadImgBox",attrs:{"id":"scrollBox"}},[_c('div',{staticClass:"imgBox"},[_c('div',{staticClass:"money"},[_c('p',[_vm._v("恭喜您，拆得一个大红包")]),_vm._v(" "),_c('div',[_c('span',[_vm._v(_vm._s(_vm.money))]),_vm._v("元")])]),_vm._v(" "),_c('div',{staticClass:"tit"},[_c('span'),_vm._v(" "),_c('p',[_vm._v("上传以下图片，获得红包")]),_vm._v(" "),_c('span')]),_vm._v(" "),_c('div',{staticClass:"upItem"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("上传车辆铭牌照片")]),_vm._v(" "),_c('span',[_vm._v("请您上传或拍摄车辆铭牌，要求铭牌上的信息清晰可见")]),_vm._v(" "),_c('i',{on:{"click":function($event){return _vm.openExample('car')}}},[_vm._v("查看示例")])]),_vm._v(" "),_c('div',{staticClass:"imgs clearfix"},[_vm._l((_vm.carPlate),function(item,ind){return _c('div',{key:ind,staticClass:"img"},[_c('img',{attrs:{"src":_vm.bucketUrl + item,"alt":""}}),_vm._v(" "),_c('i',{staticClass:"del",on:{"click":function($event){return _vm.del(ind,_vm.carPlate)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.carPlate.length < 1),expression:"carPlate.length < 1"}],staticClass:"addImg"},[_c('span'),_vm._v(" "),_c('input',{attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.fileChange($event,'car')}}})])],2)]),_vm._v(" "),_c('div',{staticClass:"upItem"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("上传ECU照片")]),_vm._v(" "),_c('span',[_vm._v("请您拍摄该车的ECU照片，要求可以看到ECU型号及完整的外观")]),_vm._v(" "),_c('i',{on:{"click":function($event){return _vm.openExample('ecu')}}},[_vm._v("查看示例")])]),_vm._v(" "),_c('div',{staticClass:"imgs clearfix"},[_vm._l((_vm.ECUImgs),function(item,ind){return _c('div',{key:ind,staticClass:"img"},[_c('img',{attrs:{"src":_vm.bucketUrl + item,"alt":""}}),_vm._v(" "),_c('i',{staticClass:"del",on:{"click":function($event){return _vm.del(ind,_vm.ECUImgs)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ECUImgs.length < 3),expression:"ECUImgs.length < 3"}],staticClass:"addImg"},[_c('span'),_vm._v(" "),_c('input',{attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.fileChange($event,'ecu')}}})])],2)]),_vm._v(" "),_c('div',{staticClass:"upItem"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("上传DCU照片")]),_vm._v(" "),_c('span',[_vm._v("请您拍摄该车的DCU照片(如有)，要求可以看到DCU型号及完整的外观")]),_vm._v(" "),_c('i',{on:{"click":function($event){return _vm.openExample('dcu')}}},[_vm._v("查看示例")])]),_vm._v(" "),_c('div',{staticClass:"imgs clearfix"},[_vm._l((_vm.DCUImgs),function(item,ind){return _c('div',{key:ind,staticClass:"img"},[_c('img',{attrs:{"src":_vm.bucketUrl + item,"alt":""}}),_vm._v(" "),_c('i',{staticClass:"del",on:{"click":function($event){return _vm.del(ind,_vm.DCUImgs)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.DCUImgs.length < 3),expression:"DCUImgs.length < 3"}],staticClass:"addImg"},[_c('span'),_vm._v(" "),_c('input',{attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.fileChange($event,'dcu')}}})])],2)]),_vm._v(" "),_c('div',{staticClass:"upItem"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("上传尿素泵照片")]),_vm._v(" "),_c('span',[_vm._v("请您拍摄该车的尿素泵照片，要求可以看到尿素泵型号及完整的外形，建议多角度拍摄以便识别")]),_vm._v(" "),_c('i',{on:{"click":function($event){return _vm.openExample('pump')}}},[_vm._v("查看示例")])]),_vm._v(" "),_c('div',{staticClass:"imgs clearfix"},[_vm._l((_vm.PUMPImgs),function(item,ind){return _c('div',{key:ind,staticClass:"img"},[_c('img',{attrs:{"src":_vm.bucketUrl + item,"alt":""}}),_vm._v(" "),_c('i',{staticClass:"del",on:{"click":function($event){return _vm.del(ind,_vm.PUMPImgs)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.PUMPImgs.length < 3),expression:"PUMPImgs.length < 3"}],staticClass:"addImg"},[_c('span'),_vm._v(" "),_c('input',{attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.fileChange($event,'pump')}}})])],2)]),_vm._v(" "),_c('div',{staticClass:"upItem"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("上传诊断口照片")]),_vm._v(" "),_c('span',[_vm._v("请您上传该识别代码对应的诊断口照片，要求能看到诊断口在车上的位置，以及诊断口的详细情况（哪几个孔有线）")]),_vm._v(" "),_c('i',{on:{"click":function($event){return _vm.openExample('zdk')}}},[_vm._v("查看示例")])]),_vm._v(" "),_c('div',{staticClass:"imgs clearfix"},[_vm._l((_vm.ZDKImgs),function(item,ind){return _c('div',{key:ind,staticClass:"img"},[_c('img',{attrs:{"src":_vm.bucketUrl + item,"alt":""}}),_vm._v(" "),_c('i',{staticClass:"del",on:{"click":function($event){return _vm.del(ind,_vm.ZDKImgs)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ZDKImgs.length < 3),expression:"ZDKImgs.length < 3"}],staticClass:"addImg"},[_c('span'),_vm._v(" "),_c('input',{attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.fileChange($event,'zdk')}}})])],2)]),_vm._v(" "),_c('div',{staticClass:"subBtn",on:{"click":_vm.subImgs}},[_vm._v("提交")]),_vm._v(" "),_c('p',{staticClass:"des"},[_vm._v("审核通过后， 您将获得"),_c('span',[_vm._v(_vm._s(_vm.money)+"元")]),_vm._v("现金红包")]),_vm._v(" "),_c('div',{staticClass:"warning"},[_c('span',[_vm._v("请勿随意、恶意上传不相干照片"),_c('br'),_vm._v("否则小轨将取消您任何拆红包资格")])])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(405);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f3c212e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1006);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2416)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4f3c212e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f3c212e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f3c212e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_meansCollect_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2417);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ecae4e32", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mean-collect[data-v-4f3c212e]{background:#f5f5f5}.mean-collect .collect-wrap[data-v-4f3c212e]{min-height:100%;background:#f5f5f5}.mean-collect .collect-wrap .title[data-v-4f3c212e]{background:#fff;padding:.8rem .6rem}.mean-collect .collect-wrap .title p[data-v-4f3c212e]{color:#333;font:700 20px/1.4rem PingFangSC-Semibold}.mean-collect .collect-wrap .radius[data-v-4f3c212e]{height:.4rem;background:#fff;position:relative}.mean-collect .collect-wrap .radius i[data-v-4f3c212e]{position:absolute;width:100%;height:.43rem;top:0;left:0;background:#f5f5f5;border-radius:.8rem .8rem 0 0}.mean-collect .collect-wrap .wrap[data-v-4f3c212e]{padding:0 .6rem}.mean-collect .collect-wrap .wrap .head-img[data-v-4f3c212e]{width:100%;max-width:100%;height:auto;border-radius:.4rem;margin-top:.6rem}.mean-collect .collect-wrap .wrap .tit-item[data-v-4f3c212e]{line-height:1.25rem}.mean-collect .collect-wrap .wrap .tit-item span[data-v-4f3c212e]{float:left;color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.mean-collect .collect-wrap .wrap .tit-item div[data-v-4f3c212e]{float:right;color:#1b7ffa;font:14px/1.25rem PingFangSC-Regular;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.mean-collect .collect-wrap .wrap .tit-item div i[data-v-4f3c212e]{width:5px;height:8px;margin-left:4px;background:url(" + escape(__webpack_require__(1407)) + ");background-size:100% 100%}.mean-collect .collect-wrap .wrap .count-down[data-v-4f3c212e]{background:#fff;border:1px solid #ededed;overflow:hidden;border-radius:.4rem;margin-top:1rem}.mean-collect .collect-wrap .wrap .count-down .count-tit[data-v-4f3c212e]{height:1.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:14px/1.8rem PingFangSC-Regular;color:#333;background:#fafafa;padding:0 .6rem}.mean-collect .collect-wrap .wrap .count-down .count-time[data-v-4f3c212e]{margin-top:.8rem;text-align:center}.mean-collect .collect-wrap .wrap .count-down .count-time p[data-v-4f3c212e]{color:#333;font:700 28px/2rem PingFangSC-Semibold}.mean-collect .collect-wrap .wrap .count-down .count-time span[data-v-4f3c212e]{color:#999;font:12px/.8rem PingFangSC-Regular}.mean-collect .collect-wrap .wrap .count-down .progress[data-v-4f3c212e]{margin:1rem auto .8rem}.mean-collect .collect-wrap .wrap .count-down .progress .bar-box[data-v-4f3c212e]{width:90%;margin-left:5%;height:.5rem;background:#f1f1f1;border-radius:.25rem;position:relative}.mean-collect .collect-wrap .wrap .count-down .progress .bar[data-v-4f3c212e]{position:absolute;height:.5rem;top:0;left:0;z-index:20;background:url(" + escape(__webpack_require__(2418)) + ") repeat-x;background-size:.8rem .5rem}.mean-collect .collect-wrap .wrap .count-down .progress .bar b[data-v-4f3c212e]{position:absolute;padding:0 .3rem;color:#fff;font:11px/.8rem PingFangSC-Regular;background:#ff3f3f;top:-.15rem;right:0;border-radius:.4rem;white-space:nowrap}.mean-collect .collect-wrap .wrap .count-down .progress .bar-bg[data-v-4f3c212e]{position:absolute;height:.5rem;top:0;left:0;border-radius:.25rem;z-index:10;background:-webkit-gradient(linear,right top,left top,from(#ff3f3f),to(#ff825b));background:linear-gradient(270deg,#ff3f3f,#ff825b)}.mean-collect .collect-wrap .wrap .count-down .progress .num[data-v-4f3c212e]{width:90%;margin-left:5%;margin-top:.2rem;line-height:.8rem;color:#999;font:12px/.8rem PingFangSC-Regular;position:relative}.mean-collect .collect-wrap .wrap .count-down .progress .num span[data-v-4f3c212e]:nth-of-type(2){float:right}.mean-collect .collect-wrap .wrap .count-down .info[data-v-4f3c212e]{width:90%;margin-left:5%;padding-bottom:.4rem;color:#999;font:14px/1rem PingFangSC-Regular}.mean-collect .collect-wrap .wrap #tab-box[data-v-4f3c212e]{padding:.5rem 0;overflow:hidden;margin-top:.4rem}.mean-collect .collect-wrap .wrap #tab-box ul[data-v-4f3c212e]{font-size:0;display:inline-block;white-space:nowrap}.mean-collect .collect-wrap .wrap #tab-box ul li[data-v-4f3c212e]{display:inline-block;line-height:1.6rem;padding:0 .8rem;background:#fff;box-shadow:0 4px 8px 0 hsla(0,0%,75%,.2);border-radius:1.2rem;margin-right:.6rem}.mean-collect .collect-wrap .wrap #tab-box ul li.all[data-v-4f3c212e]{color:#fff;background:#177afa;box-shadow:0 4px 8px 0 rgba(23,122,250,.25)}.mean-collect .collect-wrap .wrap .list-box[data-v-4f3c212e]{margin-top:.2rem}.mean-collect .collect-wrap .wrap .list-box.no-btn[data-v-4f3c212e]{margin-top:.8rem}.mean-collect .collect-wrap .wrap .list-box li[data-v-4f3c212e]{background:#fff;border-radius:.4rem;border:1px solid #ededed;padding-bottom:.6rem;overflow:hidden;margin-bottom:.6rem}.mean-collect .collect-wrap .wrap .list-box li .name[data-v-4f3c212e]{height:1.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:14px/1.8rem PingFangSC-Regular;color:#333;background:#fafafa;padding:0 .6rem}.mean-collect .collect-wrap .wrap .list-box li .detail[data-v-4f3c212e]{padding:.6rem .6rem 0}.mean-collect .collect-wrap .wrap .list-box li .detail .tit[data-v-4f3c212e]{color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.mean-collect .collect-wrap .wrap .list-box li .detail .info[data-v-4f3c212e]{margin-top:.2rem;color:#666;font:16px/1.1rem PingFangSC-Regular}.mean-collect .collect-wrap .wrap .list-box li .bottom[data-v-4f3c212e]{margin-top:1rem;padding:0 .6rem;height:1.6rem;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.mean-collect .collect-wrap .wrap .list-box li .bottom span[data-v-4f3c212e]{color:#ff3f3f;font:16px/1.1rem PingFangSC-Regular}.mean-collect .collect-wrap .wrap .list-box li .bottom i[data-v-4f3c212e]{height:1.6rem;line-height:1.6rem;padding:0 .8rem;color:#fff;background:#177afa;text-align:center;border-radius:.8rem;font-size:14px;box-shadow:0 4px 8px 0 rgba(23,122,250,.25)}.mean-collect .collect-wrap .wrap .list-box li .bottom i.uploaded[data-v-4f3c212e]{background:#e9e9e9;color:#999;box-shadow:0 4px 8px 0 hsla(0,0%,71%,.25)}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arror_r.3274d7c.png";module.exports = __webpack_require__.p + "static/img/progress.6794c8a.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      id: this.$route.query.id,
      tabScroll: null,
      mescroll: null,
      head_title: '',
      // 头部标题
      headImg: '',
      // 头部图片
      collectCode: '',
      // 获取列表数据的报表code
      collectList: [],
      // 资料数据
      buttons_code: '',
      // 按钮数组的来源报表，可为空，当值为空 ,无按钮，否则有按钮
      buttonList: [],
      taskname_status: 0,
      // 任务列表、我的代领红包这一块是否显示 0/1，0不显示，1显示
      countdown_code: '',
      // 倒计时数据来源报表（可为空，空则不显示倒计时卡片）
      countdownResult: {},
      lefttime: '00:00:00',
      timer: null,
      // 调用倒计时报表的定时器
      timer2: null,
      // 倒计时数字变化的定时器
      canGetAgain: true
    };
  },
  created: function created() {
    this.getDataCollect();
    // 打开页面埋点
    this._Util.collectPageView3({
      version: '',
      postUrl: this._Api.POST_COLLECT,
      moduleType: '资料征集',
      operate_page: '资料征集',
      optionType: '打开',
      param1: location.href
    }, this, function () {});
  },
  mounted: function mounted() {
    // 初始化按钮滚动区域
    this.tabScroll = new _betterScroll.default('#tab-box', {
      scrollX: true,
      scrollY: false,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300
    });
    // 创建MeScroll对象
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getCollectList,
        auto: false,
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
        noMoreSize: 1,
        isBounce: false,
        empty: {
          warpId: 'listContainer',
          tip: '暂无相关数据'
        }
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer2);
    clearInterval(this.timer);
    this.mescroll.destroy();
  },
  methods: {
    /**
        * 获取列表数据报表名称，头部图片，分享信息
      */
    getDataCollect: function getDataCollect() {
      var _this = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'data_collection',
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        uid: userId,
        cid: this.id,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        var temp = data.dataList ? data.dataList[0] : {};
        _this.buttons_code = temp.button_code;
        _this.headImg = temp.head_img;
        _this.head_title = temp.head_title;
        _this.taskname_status = temp.taskname_status;
        _this.countdown_code = temp.countdown_code;
        if (temp.carddata_code) {
          // 如果有列表数据的code
          _this.collectCode = temp.carddata_code;
          _this.mescroll.resetUpScroll();
        } else {
          _this.mescroll.endSuccess(0);
        }
        _this.share(temp);
        if (_this.buttons_code) {
          // 如果有按钮数据的报表code
          _this.getCollectButtons();
        }
        if (_this.countdown_code) {
          // 如果有倒计时数据的报表code
          _this.getCollectContDown();
          _this.timer = setInterval(function () {
            if (Number(_this.countdownResult.countdown_percent) >= 1) {
              clearInterval(_this.timer);
              _this.mescroll.resetUpScroll();
              return;
            }
            if (_this.canGetAgain) {
              _this.canGetAgain = false;
              _this.getCollectContDown();
            }
          }, 10000);
        }
      }, function () {}, this, true);
    },
    /**
        * 获取倒计时相关的数据
      */
    getCollectContDown: function getCollectContDown() {
      var _this2 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: this.countdown_code,
        uid: userId,
        cid: this.id,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        var temp = data.dataList ? data.dataList[0] : {};
        _this2.canGetAgain = true;
        _this2.countdownResult = temp;
        if (Number(temp.countdown_time) * 1000 - new Date().getTime() > 0) {
          _this2.leftTime(Number(temp.countdown_time) * 1000);
        }
      }, function () {}, this, true);
    },
    /**
        * 获取按钮相关的数据
      */
    getCollectButtons: function getCollectButtons() {
      var _this3 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'data_collection_button',
        uid: userId,
        cid: this.id,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        var temp = data.dataList ? data.dataList : [];
        _this3.buttonList = temp;
      }, function () {}, this, true);
    },
    /**
        * 获取收集的数据
      */
    getCollectList: function getCollectList(page) {
      var _this4 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: this.collectCode,
        uid: userId,
        // pageNum: page ? page.num + 1 : 1,
        pageNum: page.num,
        pageSize: 10
      }, function (data) {
        _this4.showLoading = false;
        if (page.num === 1) {
          _this4.collectList = [];
        }
        var temp = data.dataList ? data.dataList : [];
        _this4.collectList = _this4.collectList.concat(temp);
        _this4.$nextTick(function () {
          _this4.mescroll.endSuccess(temp.length);
        });
      }, function () {
        _this4.mescroll.endErr();
      }, this);
    },
    /**
        * 点击卡片跳转
        * @param {Object} item 卡片的每一项数据
      */
    toDetail: function toDetail(item) {
      var _this5 = this;
      this._Util.collectPageView3({
        version: '',
        postUrl: this._Api.POST_COLLECT,
        moduleType: '资料征集',
        operate_page: '资料征集',
        optionType: '点击',
        param1: item.id,
        param2: item.button_url
      }, this, function () {
        if (item.button_status === 0) {
          return;
        }
        if (!item.button_url) {
          return;
        }
        if (_this5._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'collectDetail' + item.id,
              url: item.button_url
            }
          });
        } else {
          location.href = item.button_url;
        }
      });
    },
    /**
        * 点击按钮跳转
        * @param {Object} item 按钮的每一项数据
      */
    clickBtn: function clickBtn(item) {
      if (!item.button_url) {
        (0, _mintUi.Toast)('链接为空，请检查');
        return;
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'button' + item.button_url,
            url: item.button_url
          }
        });
      } else {
        location.href = item.button_url;
      }
    },
    /**
        * 点击我的待领红包
      */
    toMyredPack: function toMyredPack() {
      var url = location.origin + '/v2/community/receiveRedPacket';
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'toMyredPack',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
       * 分享配置
       * @param {Object} shareObj 从报表获取到的分享数据
      */
    share: function share(shareObj) {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: shareObj.share_title || '卡修宝典',
                  desc: shareObj.share_text || '卡修宝典',
                  link: location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: shareObj.share_title || '卡修宝典',
              desc: shareObj.share_text || '卡修宝典',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: shareObj.share_title || '卡修宝典',
              desc: shareObj.share_text || '卡修宝典',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: shareObj.share_title || '卡修宝典',
              desc: shareObj.share_text || '卡修宝典',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
       * 倒计时展示逻辑
       * @param {Number} endtime 从报表获取到的分享数据
      */
    leftTime: function leftTime(endtime) {
      var _this6 = this;
      var that = this;
      var time;
      time = (endtime - new Date().getTime()) / 1000;
      console.log(time);
      clearInterval(that.timer2);
      that.timer2 = setInterval(function () {
        time--;
        if (time <= 0) {
          setTimeout(function () {
            this.mescroll.resetUpScroll();
          }, 1000);
          clearInterval(_this6.timer2);
        }
        var leave1 = time % (24 * 3600);
        var hour = parseInt(time / (60 * 60));
        var leave2 = leave1 % 3600;
        var min = parseInt(leave2 / 60);
        var leave3 = leave2 % 60;
        var s = parseInt(leave3);
        that.lefttime = (hour <= 9 ? '0' + hour : hour) + ':' + (min <= 9 ? '0' + min : min) + ':' + (s <= 9 ? '0' + s : s);
      }, 1000);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"mean-collect mescroll"},[_c('div',{staticClass:"collect-wrap"},[(_vm.head_title)?_c('div',{staticClass:"title"},[_c('p',[_vm._v(_vm._s(_vm.head_title))])]):_vm._e(),_vm._v(" "),(_vm.head_title)?_c('div',{staticClass:"radius"},[_c('i')]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"wrap"},[(_vm.headImg)?_c('img',{staticClass:"head-img",attrs:{"src":_vm.headImg,"alt":"头部图片"}}):_vm._e(),_vm._v(" "),(_vm.countdownResult.countdown_sum)?_c('div',{staticClass:"count-down",style:({'margin-bottom': _vm.taskname_status === 1 ? '1rem' : 0})},[_c('div',{staticClass:"count-tit"},[_vm._v(_vm._s(_vm.countdownResult.countdown_tag))]),_vm._v(" "),_c('div',{staticClass:"count-time"},[_c('p',[_vm._v(_vm._s(_vm.lefttime))]),_vm._v(" "),_c('span',[_vm._v("倒计时")])]),_vm._v(" "),_c('div',{staticClass:"progress"},[_c('div',{staticClass:"bar-box"},[_c('div',{staticClass:"bar",style:({'width': Number(_vm.countdownResult.countdown_percent) * 100 + '%'})},[(_vm.countdownResult.countdown_num !== _vm.countdownResult.countdown_sum)?_c('b',[_vm._v(_vm._s(_vm.countdownResult.countdown_num))]):_vm._e()]),_vm._v(" "),_c('i',{staticClass:"bar-bg",style:({'width': Number(_vm.countdownResult.countdown_percent) * 100 + '%'})})]),_vm._v(" "),_c('div',{staticClass:"num"},[_c('span',[_vm._v("0")]),_vm._v(" "),_c('span',{style:({'color': _vm.countdownResult.countdown_num === _vm.countdownResult.countdown_sum ? '#FF3F3F' : '#999'})},[_vm._v(_vm._s(_vm.countdownResult.countdown_sum))])])]),_vm._v(" "),_c('div',{staticClass:"info"},[_vm._v(_vm._s(_vm.countdownResult.countdown_note))])]):_vm._e(),_vm._v(" "),(_vm.taskname_status === 1)?_c('div',{staticClass:"tit-item clearfix"},[_c('span',[_vm._v("任务列表")]),_vm._v(" "),_c('div',{on:{"click":_vm.toMyredPack}},[_vm._v("我的待领红包"),_c('i')])]):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.buttons_code),expression:"buttons_code"}],attrs:{"id":"tab-box"}},[_c('ul',[_c('li',{staticClass:"all"},[_vm._v("全部")]),_vm._v(" "),_vm._l((_vm.buttonList),function(item){return _c('li',{key:item.button_name,on:{"click":function($event){return _vm.clickBtn(item)}}},[_vm._v(_vm._s(item.button_name))])})],2)]),_vm._v(" "),_c('ul',{staticClass:"list-box",class:{'no-btn': !_vm.buttons_code},attrs:{"id":"listContainer"}},_vm._l((_vm.collectList),function(item){return _c('li',{key:item.id,on:{"click":function($event){return _vm.toDetail(item)}}},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(item.tag))]),_vm._v(" "),_c('div',{staticClass:"detail"},[_c('p',{staticClass:"tit"},[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('p',{staticClass:"info"},[_vm._v(_vm._s(item.text))])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('span',[_vm._v(_vm._s(item.money_text))]),_vm._v(" "),(item.button_status === 1 && item.button_name)?_c('i',[_vm._v(_vm._s(item.button_name))]):_vm._e(),_vm._v(" "),(item.button_status === 0 && item.button_name)?_c('i',{staticClass:"uploaded"},[_vm._v(_vm._s(item.button_name))]):_vm._e()])])}),0)])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(406);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_16051311_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1007);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2419)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_16051311_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_16051311_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_receiveRedPacket_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2420);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("610701f1", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak]{display:none}.popup{position:relative;padding:12px;color:#333;line-height:20px;font-size:14px}.popup,.receiveRedPacket{font-family:PingFangSC-Regular}.receiveRedPacket{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.receiveRedPacket .main{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;padding:0 .8rem;-webkit-overflow-scrolling:touch;-webkit-transform:translateZ(0)}.receiveRedPacket .main #wraper li{height:4.6rem;margin-top:1.2rem;background-image:url(" + escape(__webpack_require__(2421)) + ");background-size:100% 100%;background-repeat:no-repeat;padding:.9rem 0 0 .8rem;position:relative}.receiveRedPacket .main #wraper li p{color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:11.5rem}.receiveRedPacket .main #wraper li p:first-child{font-size:16px;font-family:PingFangSC-Semibold}.receiveRedPacket .main #wraper li p:nth-child(2){font-size:14px;margin-top:.6rem}.receiveRedPacket .main #wraper li>div{position:absolute;top:.3rem;right:.8rem;width:5rem;height:4rem;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;text-align:center}.receiveRedPacket .main #wraper li>div>div div{font-size:24px;color:#ee4545;line-height:33px}.receiveRedPacket .main #wraper li>div>div div i{font-size:14px}.receiveRedPacket .main #wraper li>div>div span{font-size:12px;color:#333}.receiveRedPacket .main #wraper li.history{background-image:url(" + escape(__webpack_require__(2422)) + ");background-size:100% 100%;background-repeat:no-repeat}.receiveRedPacket .main #wraper li.history p{width:10.5rem}.receiveRedPacket .main #wraper .showNoMore{color:#666;height:44px;line-height:44px;text-align:center}.receiveRedPacket .main .noRedPacket{position:absolute;top:6rem;left:50%;width:7rem;margin-left:-3.5rem;text-align:center}.receiveRedPacket .main .noRedPacket img{width:2.6rem;height:2.2rem;pointer-events:none}.receiveRedPacket .main .noRedPacket p{margin-top:.25rem}.receiveRedPacket .other{height:3.4rem;padding:0 10%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;color:#377ee1;font-size:14px}.receiveRedPacket .other span{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.receiveRedPacket .other i{width:2.5rem;text-align:center}.receiveRedPacket .mask{position:fixed;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.5);z-index:1000;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center}.receiveRedPacket .mask .win{width:14.5rem;height:13.9rem;background-image:url(" + escape(__webpack_require__(2423)) + ");background-size:100% 100%;background-repeat:no-repeat;position:relative;z-index:1001}.receiveRedPacket .mask .win p{position:absolute;width:100%;font-size:16px;color:#ee4545;top:1.8rem;left:0;text-align:center}.receiveRedPacket .mask .win p:nth-of-type(2){font-family:PingFangSC-Semibold;top:3rem;font-size:16px;font-weight:600}.receiveRedPacket .mask .win p:nth-of-type(2) span{font-size:36px;margin-right:5px}.receiveRedPacket .mask .win i{position:absolute;bottom:2rem;left:50%;margin-left:-4.5rem;width:9rem;height:2rem;background:-webkit-gradient(linear,left top,left bottom,from(#ffdd94),to(#eaa047));background:linear-gradient(180deg,#ffdd94,#eaa047);box-shadow:0 0 6px 0 rgba(126,46,46,.58);border-radius:1.1rem;color:#453012;font-size:16px;text-align:center;line-height:2rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/redPack_bg.9512ce9.png";module.exports = __webpack_require__.p + "static/img/redPack_open.549bbc9.png";module.exports = __webpack_require__.p + "static/img/redPack_model.fb1f157.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  data: function data() {
    return {
      redPacketList: [],
      historyList: [],
      ajaxData: {
        packetStatus: 0,
        pageNum: 1,
        pageSize: 10
      },
      pageType: 0,
      /** 页面状态 0未领取 1历史记录*/
      getDataAgain: true,
      showNoMore: false,
      showMask: false,
      showMaskInner: false,
      redPacketNum: 0,
      // 拆开的红包数量
      currentItemInd: 0,
      // 当前点击的红包的索引
      popupVisible: false,
      getType: '',
      listCancelSource: null
    };
  },
  watch: {
    pageType: function pageType(nval) {
      // console.log(nval)
      this.ajaxData.pageNum = 1;
      this.showNoMore = false;
      this.getDataAgain = false;
      if (nval == 1) {
        this.historyList = [];
      } else {
        this.redPacketList = [];
      }
    }
  },
  created: function created() {
    var that = this;
    that.getPacketList();
    that.share();
  },
  mounted: function mounted() {
    var that = this;
    var scrollEl = document.querySelector('.main');
    var wraper = document.querySelector('#wraper');
    var scrollElH = scrollEl.offsetHeight;
    scrollEl.addEventListener('scroll', function (e) {
      var scrollTop = e.target.scrollTop;
      var wraperH = wraper.offsetHeight;
      // console.log(scrollTop + '--' + scrollElH + '--' + wraperH)
      if (scrollTop + scrollElH >= wraperH - 20) {
        if (that.getDataAgain) {
          that.getDataAgain = false;
          that.ajaxData.pageNum++;
          if (that.pageType == 0) {
            that.getPacketList();
          } else {
            that.getHIstoryList();
          }
        }
      }
    });
  },
  methods: {
    // 配置分享
    share: function share() {
      var that = this;
      var shareTitle = '卡修宝典-我的钱包';
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: shareTitle,
                  desc: '参与活动、观看直播，获取大额红包',
                  link: that._Api.HOSTRESOURCEPATH + '/v2/member/center/per/medal/wallet',
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '红包任务',
              operate_page: '参与活动领取红包',
              optionType: '分享',
              param1: window.location.href,
              param2: '',
              param4: {
                'queryValue': '',
                'result': '',
                'filter': ''
              }
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: shareTitle,
              desc: '参与活动、观看直播，获取大额红包',
              link: that._Api.HOSTRESOURCEPATH + '/v2/member/center/per/medal/wallet',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '红包任务',
                operate_page: '参与活动领取红包',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: shareTitle,
              desc: '参与活动、观看直播，获取大额红包',
              link: that._Api.HOSTRESOURCEPATH + '/v2/member/center/per/medal/wallet',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '红包任务',
                operate_page: '参与活动领取红包',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: shareTitle,
              desc: '参与活动、观看直播，获取大额红包',
              link: that._Api.HOSTRESOURCEPATH + '/v2/member/center/per/medal/wallet',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {
                that._Util.collectPageView2({
                  version: that._Util.version,
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '红包任务',
                  operate_page: '参与活动领取红包',
                  optionType: '分享',
                  param1: window.location.href,
                  param2: '',
                  param4: {
                    'queryValue': '',
                    'result': '',
                    'filter': ''
                  }
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 获取红包列表 */getPacketList: function getPacketList() {
      var that = this;
      if (that.listCancelSource) {
        // 有axiosCancelToken的时候，取消还未返回的请求
        that.listCancelSource.cancel();
      }
      that.listCancelSource = that.$http.CancelToken.source();
      that.ajaxData.packetStatus = 0;
      setTimeout(function () {
        that.pageType = 0;
        that._Util.post(that._Api.POST_GETPACKETPECORDLIST, that.ajaxData, function (data) {
          that.redPacketList = that.redPacketList.concat(data);
          if (data.length == 0 && that.ajaxData.pageNum > 1) {
            that.showNoMore = true;
            that.getDataAgain = false;
          } else {
            that.getDataAgain = true;
          }
        }, function () {}, that, false, {
          cancelToken: that.listCancelSource.token
        });
      }, 300);
    },
    /** 获取历史记录*/getHIstoryList: function getHIstoryList() {
      var that = this;
      if (that.listCancelSource) {
        // 有axiosCancelToken的时候，取消还未返回的请求
        that.listCancelSource.cancel();
      }
      that.listCancelSource = that.$http.CancelToken.source();
      that.ajaxData.packetStatus = 1;
      setTimeout(function () {
        that.pageType = 1;
        that._Util.post(that._Api.POST_GETPACKETPECORDLIST, that.ajaxData, function (data) {
          that.historyList = that.historyList.concat(data);
          if (data.length == 0 && that.ajaxData.pageNum > 1) {
            that.showNoMore = true;
            that.getDataAgain = false;
          } else {
            that.getDataAgain = true;
          }
        }, function () {}, that, false, {
          cancelToken: that.listCancelSource.token
        });
      }, 300);
    },
    /** 打开红包 */openRedPacket: function openRedPacket(item, index) {
      var that = this;
      if (that.pageType == 1) {
        return;
      }
      that._Util.post(that._Api.POST_TASKCENTER_OPENREDPACKET, {
        id: item.id
      }, function (data) {
        console.log(data);
        that.showMask = true;
        that.showMaskInner = true;
        that.currentItemInd = index;
        that.redPacketNum = item.packetNum;
      }, function () {}, that);
    },
    /** 关闭 */hideMask: function hideMask() {
      var _this = this;
      this.showMaskInner = false;
      setTimeout(function () {
        _this.showMask = false;
        _this.redPacketList.splice(_this.currentItemInd, 1);
      }, 1000);
    },
    /** 如何获取红包 */getTypeFn: function getTypeFn() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'get_packet_note',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length) {
          that.popupVisible = true;
          that.getType = data.dataList[0].text.replace(/\n/g, '<br>');
        }
      }, function () {}, that);
    },
    /** 红包提现 */takeCash: function takeCash() {
      this.$router.push({
        name: 'wallet'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"receiveRedPacket"},[_c('div',{staticClass:"main"},[_c('ul',{attrs:{"id":"wraper"}},[_vm._l(((_vm.pageType == 0 ? _vm.redPacketList : _vm.historyList)),function(item,ind){return _c('li',{key:item.id,class:{history: _vm.pageType == 1},on:{"click":function($event){return _vm.openRedPacket(item,ind)}}},[_c('p',[_vm._v(_vm._s(item.packetTitle))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.packetContent))]),_vm._v(" "),(_vm.pageType == 1)?_c('div',[_c('div',[_c('div',[_vm._v(_vm._s(item.packetNum)),_c('i',[_vm._v("元")])]),_vm._v(" "),_c('span',[_vm._v("已领取")])])]):_vm._e()])}),_vm._v(" "),(_vm.showNoMore)?_c('div',{staticClass:"showNoMore"},[_vm._v("没有更多了")]):_vm._e()],2),_vm._v(" "),(_vm.redPacketList.length == 0 && _vm.pageType == 0)?_c('div',{staticClass:"noRedPacket"},[_c('img',{attrs:{"src":__webpack_require__(1489),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("暂无可领取红包")])]):_vm._e(),_vm._v(" "),(_vm.historyList.length == 0 && _vm.pageType == 1)?_c('div',{staticClass:"noRedPacket"},[_c('img',{attrs:{"src":__webpack_require__(1489),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("暂无历史领取记录")])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"other"},[_c('span',{on:{"click":_vm.getTypeFn}},[_vm._v("红包秘籍")]),_vm._v(" "),_c('i',[_vm._v("丨")]),_vm._v(" "),(_vm.pageType == 0)?_c('span',{on:{"click":function($event){return _vm.getHIstoryList()}}},[_vm._v("领取记录")]):_vm._e(),_vm._v(" "),(_vm.pageType == 1)?_c('span',{on:{"click":function($event){return _vm.getPacketList()}}},[_vm._v("返回")]):_vm._e(),_vm._v(" "),_c('i',[_vm._v("丨")]),_vm._v(" "),_c('span',{on:{"click":_vm.takeCash}},[_vm._v("红包提现")])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMask),expression:"showMask"}],staticClass:"mask"},[_c('transition',{attrs:{"name":"fade","enter-active-class":"animated zoomInDown","leave-active-class":"animated zoomOutDown"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMaskInner),expression:"showMaskInner"}],staticClass:"win"},[_c('p',[_vm._v("恭喜您，获得一个大红包")]),_vm._v(" "),_c('p',[_c('span',[_vm._v(_vm._s(_vm.redPacketNum))]),_vm._v("元")]),_vm._v(" "),_c('i',{on:{"click":_vm.hideMask}},[_vm._v("确定")])])])],1),_vm._v(" "),_c('mt-popup',{staticStyle:{"border-radius":"0.15rem","width":"90%","height":"230px","overflow-y":"auto","-webkit-overflow-scrolling":"touch"},attrs:{"popup-transition":"popup-fade","lock-scroll":"true"},model:{value:(_vm.popupVisible),callback:function ($$v) {_vm.popupVisible=$$v},expression:"popupVisible"}},[_c('div',{staticClass:"popup",domProps:{"innerHTML":_vm._s(_vm.getType)}})])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/kong.67d8330.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(407);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8af07052_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1010);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2424)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-8af07052"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8af07052_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8af07052_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_workbench_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2425);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("73a73e8d", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-8af07052]{background-color:#f2f2f2}.outContainer .topInfo[data-v-8af07052]{overflow:hidden;background-image:url(" + escape(__webpack_require__(2426)) + ");height:130px;background-size:100%;background-repeat:no-repeat}.outContainer .topInfo .text[data-v-8af07052]{width:70%;margin-left:20px;margin-top:29px}.outContainer .topInfo .text>p[data-v-8af07052]{font-family:PingFangSC-Semibold;font-size:16px;color:#fff}.outContainer .tabBox[data-v-8af07052]{background-color:#fff;height:44px;line-height:44px;position:relative}.outContainer .tabBox>div[data-v-8af07052]{width:50%;text-align:center;height:44px;line-height:44px;float:left;position:relative;font-family:PingFangSC-Regular;font-size:16px;color:#666}.outContainer .tabBox>div.active[data-v-8af07052]{font-family:PingFangSC-Semibold;color:#2b82f7}.outContainer .tabBox>div.active[data-v-8af07052]:after{position:absolute;content:\"\";width:56px;height:3px;background-color:#2b82f7;left:50%;bottom:0;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.outContainer .content[data-v-8af07052]{overflow:hidden;background-color:#f2f2f2}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/workbench-banner.799d62c.jpg";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _w_articleList = _interopRequireDefault(__webpack_require__(2427));
var _w_commentList = _interopRequireDefault(__webpack_require__(2430));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    articleList: _w_articleList.default,
    commentList: _w_commentList.default
  },
  data: function data() {
    return {
      currentTab: 'article'
    };
  },
  created: function created() {
    if (this.$route.name === 'workbenchArticle') {
      this.currentTab = 'article';
    } else {
      this.currentTab = 'comment';
    }
  },
  mounted: function mounted() {},
  methods: {
    changeTab: function changeTab(type) {
      console.log(type);
      if (type == 'comment') {
        // this.$router.replace({
        //   name: 'workbenchComment'
        // });
        location.replace(location.origin + '/v2/community/workbenchComment');
      } else if (type == 'article') {
        // this.$router.replace({
        //   name: 'workbenchArticle'
        // });
        location.replace(location.origin + '/v2/community/workbenchArticle');
      }
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(408);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4cf9af94_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1008);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2428)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4cf9af94"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4cf9af94_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4cf9af94_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_w_articleList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2429);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("a9b77e80", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer .itemList[data-v-4cf9af94]{background-color:#f2f2f2}.outContainer .itemList .item[data-v-4cf9af94]{background-color:#fff;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;margin-top:8px}.outContainer .itemList .item .userInfo[data-v-4cf9af94]{padding:12px 12px 8px;position:relative}.outContainer .itemList .item .userInfo>img[data-v-4cf9af94]{width:40px;height:40px;border-radius:50%;float:left}.outContainer .itemList .item .userInfo .rightContent[data-v-4cf9af94]{margin-left:44px;line-height:1.5;min-height:42px}.outContainer .itemList .item .userInfo .rightContent .uname>span[data-v-4cf9af94],.outContainer .itemList .item .userInfo .rightContent .uname[data-v-4cf9af94]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .itemList .item .userInfo .rightContent .uname>.crown[data-v-4cf9af94]{display:inline-block;width:12px;height:12px;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ")}.outContainer .itemList .item .userInfo .rightContent .uarea>span[data-v-4cf9af94],.outContainer .itemList .item .userInfo .rightContent .uarea[data-v-4cf9af94]{font-family:PingFangSC-Regular;font-size:12px;color:#666}.outContainer .itemList .item .userInfo .plateName[data-v-4cf9af94]{position:absolute;top:12px;right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#237bff}.outContainer .itemList .item .userInfo .plateName>div[data-v-4cf9af94]{width:24px;height:24px;line-height:24px;text-align:center;display:inline-block;margin-left:4px}.outContainer .itemList .item .userInfo .plateName>div>img[data-v-4cf9af94]{width:12px;height:7px;vertical-align:middle}.outContainer .itemList .item .content[data-v-4cf9af94]{padding-left:12px;padding-right:12px;padding-bottom:8px;font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer .itemList .item .singleImg>img[data-v-4cf9af94]{width:114px;height:150px;object-fit:cover;object-position:50% 50%;margin-bottom:10px;margin-left:12px;box-shadow:0 0 4px #ddd}.outContainer .itemList .item .imgList[data-v-4cf9af94]{padding-left:.1rem;overflow:hidden}.outContainer .itemList .item .imgList>img[data-v-4cf9af94]{float:left;margin-left:.5rem;margin-bottom:.5rem;width:5.5rem;height:5.5rem;object-fit:cover;object-position:50% 50%}.outContainer .itemList .item .videoFrame[data-v-4cf9af94]{padding-left:2px;overflow:hidden}.outContainer .itemList .item .videoFrame>div[data-v-4cf9af94]{position:relative;float:left;margin-left:10px;margin-bottom:10px}.outContainer .itemList .item .videoFrame>div img[data-v-4cf9af94]{width:114px;height:150px}.outContainer .itemList .item .videoFrame>div[data-v-4cf9af94]:after{content:\"\";width:40px;height:40px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-image:url(" + escape(__webpack_require__(208)) + ");background-size:100%;background-repeat:no-repeat;z-index:10}.outContainer .itemList .item .likeAndComment[data-v-4cf9af94]{margin-top:8px;height:40px;line-height:41px;background-color:#fafafa;position:relative}.outContainer .itemList .item .likeAndComment>div[data-v-4cf9af94]{float:left;height:100%;width:50%;text-align:center;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .itemList .item .likeAndComment>div>img[data-v-4cf9af94]{width:16px;height:16px;position:relative;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .itemList .item .likeAndComment[data-v-4cf9af94]:after{content:\"\";width:1px;height:16px;background-color:#979797;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer .refreshBtn[data-v-4cf9af94]{text-align:center;padding-bottom:40px}.outContainer .refreshBtn>span[data-v-4cf9af94]{display:inline-block;height:40px;width:120px;margin-top:40px;line-height:40px;background-color:#fff;border-radius:4px;font-family:PingFangSC-Regular;font-size:14px;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _reportBox = _interopRequireDefault(__webpack_require__(284));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    reportBox: _reportBox.default
  },
  props: {
    currentUserId: [Number, String],
    // 传入的当前用户id
    modulId: [Number, String],
    // 板块id
    type: String,
    // 是否为 主页 内帖子列表
    savePosition: Boolean,
    // 是否记录返回位置
    page: String // 当前页面的路由名称 - 用于记录返回位置
  },
  data: function data() {
    return {
      delIndex: '',
      currentCommunityId: '',
      showReportBox: false,
      list: [],
      listDataInit: false,
      pageSize: 10,
      pageNum: 1,
      userId: '',
      showImgView: false,
      imgUrl: null
    };
  },
  created: function created() {
    // 读取缓存中的滚动条位置
    var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.page));
    if (this.savePosition && position) {
      sessionStorage.removeItem('_dataList_' + this.page);
      this.list = position.list;
      this.pageSize = position.pageSize;
      this.pageNum = position.pageNum;
      this.allLoaded = position.allLoaded;
      this.listDataInit = true;
      this.$nextTick(function () {
        setTimeout(function () {
          if (document.getElementById('savePosition')) {
            document.getElementById('savePosition').scrollTo(0, position.scrollTop);
          } else {
            window.scrollTo(0, position.scrollTop);
          }
        }, 800);
      });
    } else {
      this.getArticleList();
    }
  },
  mounted: function mounted() {
    this.getCurrentUser();
  },
  beforeDestroy: function beforeDestroy() {},
  methods: {
    /** 删除单条 */delArticle: function delArticle(key) {
      this.list.splice(key, 1);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl.includes('watermark/3') ? imgUrl : imgUrl + (imgUrl.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v.includes('watermark/3') ? v : v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /** 保存被卷去的高度和数据 */saveSessionPosition: function saveSessionPosition() {
      // 记录滚动条位置
      if (this.savePosition) {
        var scrollTop = document.getElementById('savePosition') ? document.getElementById('savePosition').scrollTop : document.documentElement.scrollTop || document.body.scrollTop;
        var position = {
          scrollTop: scrollTop,
          pageNum: this.pageNum,
          pageSize: this.pageSize,
          allLoaded: this.allLoaded,
          list: this.list
        };
        console.log(position);
        sessionStorage.setItem('_dataList_' + this.page, JSON.stringify(position));
      }
    },
    /** 进入板块详情 */goPlateDetail: function goPlateDetail(modulId, modulName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'modulPage',
            url: location.origin + '/v2/community/modulPage?modulId=' + modulId + '&modulName=' + modulName
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'modulPage',
          query: {
            modulId: modulId,
            modulName: modulName
          }
        });
      }
    },
    /** 帖子点赞 */likeArticle: function likeArticle(id, index, isPraise) {
      var _this = this;
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 1,
        communityId: id
      }, function (data) {
        _this.list[index].praiseTotal++;
        _this.list[index].isPraise = 1;
        (0, _mintUi.Toast)({
          message: '审核通过',
          position: 'bottom',
          duration: 1000
        });
        _this.delArticle(index);
      }, function () {
        (0, _mintUi.Toast)({
          message: '审核失败',
          position: 'bottom',
          duration: 1000
        });
      }, this);
    },
    /** 获取所有文章详情 */getArticleList: function getArticleList() {
      var _this2 = this;
      if (this.type) {
        this._Util.post(this._Api.POST_COMMUNITY_GET_HOME_PAGE, {
          pageSize: this.pageSize,
          pageNum: this.pageNum,
          userId: this.$route.query.userId || this.currentUserId
        }, function (data) {
          _this2.listDataInit = true;
          _this2.list = _this2.list.concat(data.articleList);
          _this2.scrollLoading = false;
          if (data.articleList.length < _this2.pageSize) {
            _this2.allLoaded = true;
          } else {
            _this2.pageNum++;
          }
        }, function () {}, this);
      } else {
        this._Util.post(this._Api.POST_COMMUNITY_ARTICLE_AUDIT_LIST, {
          pageSize: this.pageSize,
          pageNum: this.pageNum,
          moduleId: this.modulId
        }, function (data) {
          _this2.listDataInit = true;
          _this2.list = _this2.list.concat(data.articleList);
          _this2.scrollLoading = false;
          (0, _mintUi.Toast)({
            message: '数据更新成功',
            position: 'bottom',
            duration: 500
          });
          if (data.articleList.length < _this2.pageSize) {
            _this2.allLoaded = true;
          } else {
            _this2.pageNum++;
          }
        }, function () {
          _this2.$router.replace({
            name: 'community'
          });
        }, this);
      }
    },
    /** 进入帖子详情 */goDetail: function goDetail(articleId) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'articleDetail',
            url: location.origin + '/v2/community/articleDetail?articleId=' + articleId
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'articleDetail',
          query: {
            articleId: articleId
          }
        });
      }
    },
    /** 获取当前用户信息 */getCurrentUser: function getCurrentUser() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.userId = data.userId;
      }, function () {}, that);
    },
    /** 进入用户主页 */goUserPage: function goUserPage(userId) {
      // console.log(userId)
      event.preventDefault();
      if (this.$route.name === 'myPage') {
        return;
      }
      if (this.userId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId,
              notGive: true
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage',
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(252);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_64bb13eb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(831);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2033)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-64bb13eb"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_64bb13eb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_64bb13eb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reportBox_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2034);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1ae12d78", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-64bb13eb]{z-index:11;position:fixed;width:100%;height:100%;top:0;left:0;background-color:rgba(0,0,0,.4)}.outContainer .boxContainer[data-v-64bb13eb]{width:80%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#fff;border-radius:3px}.outContainer .boxContainer .title[data-v-64bb13eb]{text-align:center;font-family:PingFangSC-Regular;font-size:20px;color:#333;padding-top:12px;padding-bottom:4px}.outContainer .boxContainer .content[data-v-64bb13eb]{margin-bottom:29px}.outContainer .boxContainer .content .item[data-v-64bb13eb]{height:47px;overflow:hidden}.outContainer .boxContainer .content .item>img[data-v-64bb13eb]{width:15px;height:15px;float:left;margin-top:16px;margin-left:16px}.outContainer .boxContainer .content .item>div[data-v-64bb13eb]{height:47px;line-height:47px;margin-left:39px;border-bottom:1px solid #d9d9e2;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .boxContainer .bottom[data-v-64bb13eb]{position:relative;height:49px;line-height:49px;border-top:1px solid #d8d8d8}.outContainer .boxContainer .bottom>div[data-v-64bb13eb]{height:49px;line-height:49px;float:left;width:50%;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer .boxContainer .bottom>div[data-v-64bb13eb]:nth-of-type(2){color:#377ee1}.outContainer .boxContainer .bottom[data-v-64bb13eb]:after{content:\"\";position:absolute;width:1px;height:100%;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);background-color:#d8d8d8}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    communityId: [String, Number],
    // 帖子id 或 评论id
    type: [String, Number],
    // 1：举报帖子 2：举报评论
    unchecked: [Boolean] // 是否是未审核文章
  },
  data: function data() {
    return {
      typeList: [],
      chooseType: '',
      submiting: false
    };
  },
  mounted: function mounted() {
    this.getTypeList();
  },
  methods: {
    getTypeList: function getTypeList() {
      var _this = this;
      this._Util.post(this._Api.POST_COMMUNITY_REPORT_TYPE_LIST, {}, function (data) {
        _this.typeList = data;
      }, function () {}, this, true);
    },
    closeEvent: function closeEvent() {
      this.$emit('close');
    },
    submitEvent: function submitEvent() {
      var _this2 = this;
      if (this.chooseType.length === 0) {
        (0, _mintUi.Toast)({
          message: '请选择举报原因',
          position: 'middle',
          duration: 1000
        });
        return;
      }
      if (this.submiting === true) return;
      this.submiting = true;
      this._Util.post(this._Api.POST_COMMUNITY_REPORT_SUBMIT, {
        communityId: this.communityId,
        type: this.type,
        reportType: this.chooseType
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '举报成功',
          position: 'middle',
          duration: 1000
        });
        _this2.submiting = false;
        _this2.$emit('submit');
        _this2.$emit('close');
      }, function () {
        _this2.submiting = false;
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('transition',{attrs:{"name":"fade"}},[_c('div',{staticClass:"boxContainer"},[_c('div',{staticClass:"title"},[_vm._v("举报")]),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._l((_vm.typeList),function(item,index){return (!(_vm.unchecked&&item.name==='其他'))?_c('div',{key:index,staticClass:"item",on:{"click":function($event){_vm.chooseType=item.type}}},[(_vm.chooseType===item.type)?_c('img',{attrs:{"src":__webpack_require__(1372),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1373),"alt":""}}),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.name))])]):_vm._e()}),_vm._v(" "),(_vm.typeList.length===0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"20px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":_vm.closeEvent}},[_vm._v("取消")]),_vm._v(" "),_c('div',{on:{"click":_vm.submitEvent}},[_vm._v("确定")])])])])],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(!_vm.listDataInit)?_c('div',{staticStyle:{"text-align":"center","padding-top":"40px"}},[_vm._v("页面加载中...")]):_c('div',[(_vm.list.length>0)?_c('ul',{staticClass:"itemList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"scrollLoading","infinite-scroll-distance":"10"}},_vm._l((_vm.list),function(item,index){return _c('li',{key:index,staticClass:"item",attrs:{"id":'list'+item.articleId},on:{"click":function($event){return _vm.goDetail(item.articleId)}}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId)}}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[(item.userName)?_c('span',{style:({color: item.userStatus === 2 ? '#EE4545' : '#333' }),on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId)}}},[_vm._v("\n                "+_vm._s(item.userName.slice(0,9))+"\n              ")]):_vm._e(),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v("\n              "+_vm._s(item.time)+"\n              "),(item.uprovince || item.ucity)?_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId)}}},[_vm._v("\n                ·"+_vm._s(item.uprovince === item.ucity ? item.uprovince : item.uprovince + item.ucity)+"\n              ")]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"plateName",on:{"click":function($event){$event.stopPropagation();return _vm.goPlateDetail(item.moduleId, item.moduleName)}}},[_vm._v("\n            #"+_vm._s(item.moduleName)+"#\n          ")])]),_vm._v(" "),(item.content)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(item.content)}},[_vm._v("\n          "+_vm._s(item.content)+"\n        ")]):_vm._e(),_vm._v(" "),(item.pictureList&&item.pictureList.length===1)?_c('div',{staticClass:"singleImg"},[(item.pictureList[0].includes('watermark/3'))?_c('img',{attrs:{"src":item.pictureList[0],"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.pictureList[0], [])}}}):_c('img',{attrs:{"src":item.pictureList[0] + (item.pictureList[0].indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.pictureList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.pictureList&&item.pictureList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.pictureList),function(v,i){return _c('img',{key:i,attrs:{"src":v.indexOf('watermark/3') > -1 ? v : ( v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/220/h/220'),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.pictureList, i)}}})}),0):_vm._e(),_vm._v(" "),(item.videoList)?_c('div',{staticClass:"videoFrame"},[_c('div',[_c('img',{attrs:{"src":item.videoList + '?vframe/jpg/offset/1',"alt":""}})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"likeAndComment"},[_c('div',{staticClass:"like",on:{"click":function($event){$event.stopPropagation();return _vm.likeArticle(item.articleId, index, item.isPraise)}}},[_c('img',{attrs:{"src":__webpack_require__(149),"alt":""}}),_vm._v("\n            赞\n          ")]),_vm._v(" "),_c('div',{staticClass:"comment",on:{"click":function($event){$event.stopPropagation();_vm.showReportBox=true;_vm.currentCommunityId=item.articleId;_vm.delIndex=index;}}},[_c('img',{attrs:{"src":__webpack_require__(1490),"alt":""}}),_vm._v("\n            举报\n          ")])])])}),0):_vm._e(),_vm._v(" "),(_vm.list.length==0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"40px"}},[_vm._v("帖子都审完啦，赶紧刷新一下")]):_vm._e(),_vm._v(" "),(_vm.list.length==0)?_c('div',{staticClass:"refreshBtn"},[_c('span',{on:{"click":_vm.getArticleList}},[_vm._v("刷新")])]):_vm._e()]),_vm._v(" "),(_vm.showReportBox)?_c('report-box',{attrs:{"unchecked":true,"type":1,"community-id":_vm.currentCommunityId},on:{"submit":function($event){return _vm.delArticle(_vm.delIndex)},"close":function($event){_vm.showReportBox=false;_vm.currentCommunityId='';_vm.delIndex='';}}}):_vm._e()],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/点赞.d3fef5e.png";module.exports = __webpack_require__.p + "static/img/举报.733d45c.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(409);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_067f7688_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1009);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2431)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-067f7688"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_067f7688_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_067f7688_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_w_commentList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2432);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("684265f8", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer .itemList[data-v-067f7688]{background-color:#f2f2f2}.outContainer .itemList .item[data-v-067f7688]{background-color:#fff;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;margin-top:8px}.outContainer .itemList .item .userInfo[data-v-067f7688]{padding:12px 12px 8px;position:relative}.outContainer .itemList .item .userInfo>img[data-v-067f7688]{width:40px;height:40px;border-radius:50%;float:left;pointer-events:none}.outContainer .itemList .item .userInfo .rightContent[data-v-067f7688]{margin-left:44px;line-height:1.5;min-height:42px}.outContainer .itemList .item .userInfo .rightContent .uname>span[data-v-067f7688],.outContainer .itemList .item .userInfo .rightContent .uname[data-v-067f7688]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .itemList .item .userInfo .rightContent .uname>.crown[data-v-067f7688]{display:inline-block;width:12px;height:12px;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ")}.outContainer .itemList .item .userInfo .rightContent .uarea>span[data-v-067f7688],.outContainer .itemList .item .userInfo .rightContent .uarea[data-v-067f7688]{font-family:PingFangSC-Regular;font-size:12px;color:#666}.outContainer .itemList .item .userInfo .plateName[data-v-067f7688]{position:absolute;top:12px;right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#666;width:72px;height:28px;line-height:28px;background-color:#f2f2f2;border-radius:2px;text-align:center}.outContainer .itemList .item .content[data-v-067f7688]{padding-left:12px;padding-right:12px;font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer .itemList .item .commentImgList[data-v-067f7688]{margin-top:.4rem;padding-left:.8rem}.outContainer .itemList .item .commentImgList>img[data-v-067f7688]{width:4.5rem;height:4.5rem;object-fit:cover;object-position:50% 50%}.outContainer .itemList .item .likeAndComment[data-v-067f7688]{margin-top:8px;height:40px;line-height:41px;background-color:#fafafa;position:relative}.outContainer .itemList .item .likeAndComment>div[data-v-067f7688]{float:left;height:100%;width:50%;text-align:center;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .itemList .item .likeAndComment>div>img[data-v-067f7688]{width:16px;height:16px;position:relative;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .itemList .item .likeAndComment[data-v-067f7688]:after{content:\"\";width:1px;height:16px;background-color:#979797;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer .refreshBtn[data-v-067f7688]{text-align:center;padding-bottom:40px}.outContainer .refreshBtn>span[data-v-067f7688]{display:inline-block;height:40px;width:120px;margin-top:40px;line-height:40px;background-color:#fff;border-radius:4px;font-family:PingFangSC-Regular;font-size:14px;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _reportBox = _interopRequireDefault(__webpack_require__(284));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    reportBox: _reportBox.default
  },
  props: {
    currentUserId: [Number, String],
    // 传入的当前用户id
    modulId: [Number, String],
    // 板块id
    type: String,
    // 是否为 主页 内帖子列表
    savePosition: Boolean,
    // 是否记录返回位置
    page: String // 当前页面的路由名称 - 用于记录返回位置
  },
  data: function data() {
    return {
      delIndex: '',
      currentCommunityId: '',
      showReportBox: false,
      list: [],
      listDataInit: false,
      pageSize: 10,
      pageNum: 1,
      userId: '',
      showImgView: false,
      imgUrl: null
    };
  },
  created: function created() {
    // 读取缓存中的滚动条位置
    var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.page));
    if (this.savePosition && position) {
      sessionStorage.removeItem('_dataList_' + this.page);
      this.list = position.list;
      this.pageSize = position.pageSize;
      this.pageNum = position.pageNum;
      this.allLoaded = position.allLoaded;
      this.listDataInit = true;
      this.$nextTick(function () {
        setTimeout(function () {
          if (document.getElementById('savePosition')) {
            document.getElementById('savePosition').scrollTo(0, position.scrollTop);
          } else {
            window.scrollTo(0, position.scrollTop);
          }
        }, 800);
      });
    } else {
      this.getArticleList();
    }
  },
  mounted: function mounted() {
    this.getCurrentUser();
  },
  beforeDestroy: function beforeDestroy() {},
  methods: {
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      this.$store.commit('openImgView', {
        imgUrl: imgUrl,
        imgList: imgList,
        activeIndex: activeIndex
      });
    },
    /** 删除单条 */delArticle: function delArticle(key) {
      this.list.splice(key, 1);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 保存被卷去的高度和数据 */saveSessionPosition: function saveSessionPosition() {
      // 记录滚动条位置
      if (this.savePosition) {
        var scrollTop = document.getElementById('savePosition') ? document.getElementById('savePosition').scrollTop : document.documentElement.scrollTop || document.body.scrollTop;
        var position = {
          scrollTop: scrollTop,
          pageNum: this.pageNum,
          pageSize: this.pageSize,
          allLoaded: this.allLoaded,
          list: this.list
        };
        console.log(position);
        sessionStorage.setItem('_dataList_' + this.page, JSON.stringify(position));
      }
    },
    /** 进入板块详情 */goPlateDetail: function goPlateDetail(modulId, modulName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'modulPage',
            url: location.origin + '/v2/community/modulPage?modulId=' + modulId + '&modulName=' + modulName
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'modulPage',
          query: {
            modulId: modulId,
            modulName: modulName
          }
        });
      }
    },
    /** 帖子点赞 */likeArticle: function likeArticle(id, index, isPraise) {
      var _this = this;
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 2,
        communityId: id
      }, function (data) {
        _this.list[index].praiseTotal++;
        _this.list[index].isPraise = 1;
        (0, _mintUi.Toast)({
          message: '审核通过',
          position: 'bottom',
          duration: 1000
        });
        _this.delArticle(index);
      }, function () {
        (0, _mintUi.Toast)({
          message: '审核失败',
          position: 'bottom',
          duration: 1000
        });
      }, this);
    },
    /** 获取所有文章详情 */getArticleList: function getArticleList() {
      var _this2 = this;
      if (this.type) {
        this._Util.post(this._Api.POST_COMMUNITY_GET_HOME_PAGE, {
          pageSize: this.pageSize,
          pageNum: this.pageNum,
          userId: this.$route.query.userId || this.currentUserId
        }, function (data) {
          _this2.listDataInit = true;
          _this2.list = _this2.list.concat(data.articleList);
          _this2.scrollLoading = false;
          if (data.articleList.length < _this2.pageSize) {
            _this2.allLoaded = true;
          } else {
            _this2.pageNum++;
          }
        }, function () {}, this);
      } else {
        this._Util.post(this._Api.POST_COMMUNITY_COMMENT_AUDIT_LIST, {
          pageSize: this.pageSize,
          pageNum: this.pageNum,
          moduleId: this.modulId
        }, function (data) {
          _this2.listDataInit = true;
          _this2.list = _this2.list.concat(data.articleCommentList);
          _this2.scrollLoading = false;
          (0, _mintUi.Toast)({
            message: '数据更新成功',
            position: 'bottom',
            duration: 500
          });
          if (data.articleList.length < _this2.pageSize) {
            _this2.allLoaded = true;
          } else {
            _this2.pageNum++;
          }
        }, function () {
          _this2.$router.replace({
            name: 'community'
          });
        }, this);
      }
    },
    /** 进入帖子详情 */goDetail: function goDetail(articleId) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'articleDetail',
            url: location.origin + '/v2/community/articleDetail?articleId=' + articleId
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'articleDetail',
          query: {
            articleId: articleId
          }
        });
      }
    },
    /** 获取当前用户信息 */getCurrentUser: function getCurrentUser() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.userId = data.userId;
      }, function () {}, that);
    },
    /** 进入用户主页 */goUserPage: function goUserPage(userId) {
      console.log(userId);
      if (this.$route.name === 'myPage') {
        return;
      }
      if (this.userId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId,
              notGive: true
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage',
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(!_vm.listDataInit)?_c('div',{staticStyle:{"text-align":"center","padding-top":"40px"}},[_vm._v("页面加载中...")]):_c('div',[(_vm.list.length>0)?_c('ul',{staticClass:"itemList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"scrollLoading","infinite-scroll-distance":"10"}},_vm._l((_vm.list),function(item,index){return _c('li',{key:index,staticClass:"item",attrs:{"id":'list'+item.articleId}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{style:({color: item.userStatus===2?'#EE4545':'#333' })},[_vm._v(_vm._s(item.userName.slice(0,9)))]),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(item.time)),(item.uprovince||item.ucity)?_c('span',[_vm._v("·"+_vm._s(item.uprovince==item.ucity?item.uprovince:item.uprovince+item.ucity))]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"plateName",on:{"click":function($event){return _vm.goDetail(item.articleId)}}},[_vm._v("\n            查看帖子\n          ")])]),_vm._v(" "),(item.commentContent)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.commentContent))}},[_vm._v("\n          "+_vm._s(item.commentContent)+"\n        ")]):_vm._e(),_vm._v(" "),(item.picList)?_c('div',{staticClass:"commentImgList"},_vm._l((item.picList),function(v,i){return _c('img',{key:i,attrs:{"src":v,"alt":""},on:{"click":function($event){return _vm.viewImage(v, item.picList, i)}}})}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"likeAndComment"},[_c('div',{staticClass:"like",on:{"click":function($event){$event.stopPropagation();return _vm.likeArticle(item.articleCommentId, index, item.isPraise)}}},[_c('img',{attrs:{"src":__webpack_require__(149),"alt":""}}),_vm._v("\n            赞\n          ")]),_vm._v(" "),_c('div',{staticClass:"comment",on:{"click":function($event){$event.stopPropagation();_vm.showReportBox=true;_vm.currentCommunityId=item.articleCommentId;_vm.delIndex=index;}}},[_c('img',{attrs:{"src":__webpack_require__(1490),"alt":""}}),_vm._v("\n            举报\n          ")])])])}),0):_vm._e(),_vm._v(" "),(_vm.list.length==0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"40px"}},[_vm._v("评论都审完啦，赶紧刷新一下吧")]):_vm._e(),_vm._v(" "),(_vm.list.length==0)?_c('div',{staticClass:"refreshBtn"},[_c('span',{on:{"click":_vm.getArticleList}},[_vm._v("刷新")])]):_vm._e()]),_vm._v(" "),(_vm.showReportBox)?_c('report-box',{attrs:{"unchecked":true,"type":2,"community-id":_vm.currentCommunityId},on:{"submit":function($event){return _vm.delArticle(_vm.delIndex)},"close":function($event){_vm.showReportBox=false;_vm.currentCommunityId='';_vm.delIndex='';}}}):_vm._e()],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"tabBox"},[_c('div',{class:{active: _vm.currentTab==='article'},on:{"click":function($event){return _vm.changeTab('article')}}},[_vm._v("帖子")]),_vm._v(" "),_c('div',{class:{active: _vm.currentTab==='comment'},on:{"click":function($event){return _vm.changeTab('comment')}}},[_vm._v("评论")])]),_vm._v(" "),_c('div',{staticClass:"content"},[(_vm.currentTab==='article')?_c('div',{staticClass:"article"},[_c('article-list',{attrs:{"save-position":true,"page":_vm.$route.name}})],1):_c('div',{staticClass:"comment"},[_c('comment-list',{attrs:{"save-position":true,"page":_vm.$route.name}})],1)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"topInfo"},[_c('div',{staticClass:"text"},[_c('p',[_vm._v("点赞：审核通过")]),_vm._v(" "),_c('p',[_vm._v("举报-不实信息：审核不通过")]),_vm._v(" "),_c('p',[_vm._v("举报-违法犯罪：将发布人拉黑")])])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(410);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7e42faf4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1011);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2433)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7e42faf4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7e42faf4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7e42faf4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2434);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("14488f3e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-7e42faf4]{background:#fafafa;padding-top:.8rem}.outContainer li[data-v-7e42faf4]{width:17.95rem;padding:.8rem;background:#fff;box-shadow:0 4px 12px 0 rgba(164,171,191,.2);border-radius:.4rem;margin-left:.4rem;margin-bottom:.6rem}.outContainer li p[data-v-7e42faf4]{font-size:.9rem;font-family:PingFangSC-Regular;color:#333;margin-bottom:1.2rem}.outContainer li>div[data-v-7e42faf4]{position:relative}.outContainer li>div i[data-v-7e42faf4]{width:2rem;height:1.2rem;display:inline-block;line-height:1.3rem;text-align:center;background:#e6efff;border-radius:.1rem;font-size:.6rem;color:#177afa;font-family:PingFangSC-Regular}.outContainer li>div span[data-v-7e42faf4]{width:4.8rem;height:1.6rem;background:url(" + escape(__webpack_require__(2435)) + ") no-repeat 0 0;background-size:100% 100%;position:absolute;right:0;bottom:0}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/detail.dd6d671.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      noticeList: []
    };
  },
  computed: {},
  created: function created() {},
  mounted: function mounted() {
    this.getAnnouncementList();
  },
  destroyed: function destroyed() {},
  methods: {
    /** 获取通告列表 */getAnnouncementList: function getAnnouncementList() {
      var _this = this;
      this._Util.post(this._Api.POST_COMMUNITY_ANNOUNCEMENT_LIST, {}, function (data) {
        _this.noticeList = data;
      }, function () {}, this, true);
    },
    /** 进入通告页面 */goNotice: function goNotice(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'noticeContainer',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('ul',_vm._l((_vm.noticeList),function(val,index){return _c('li',{key:index},[_c('p',[_vm._v(_vm._s(val.title))]),_vm._v(" "),_c('div',[_c('i',[_vm._v(_vm._s(val.label))]),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.goNotice(val.link)}}})])])}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(411);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_486fc5a6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1012);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2436)
  __webpack_require__(2438)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_486fc5a6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_486fc5a6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2437);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1e3989ea", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outSearchWrap{min-height:100%;height:auto!important;background:#fafafa;position:relative;padding-top:3rem}.outSearchWrap .search{width:100%;background:#fff;padding:.6rem 0;position:fixed;top:0;z-index:1}.outSearchWrap .search input{width:13.85rem;height:1.8rem;padding:.55rem 0 .55rem 1.7rem;background:#eee url(" + escape(__webpack_require__(1408)) + ") .6rem no-repeat;background-size:.7rem .65rem;border-radius:.2rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#333;margin-left:.6rem}.outSearchWrap .search>span{width:6.6rem;height:3.6rem;line-height:3.6rem;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;text-align:center;background:#177afa;color:#fff;font-size:1.4rem;font-family:PingFangSC-Regular;border-radius:.4rem;position:absolute;right:-2.7rem}.outSearchWrap .search .tab{padding:.5rem .4rem;margin-top:.5rem;background:#fafafa;height:2.6rem}.outSearchWrap .search .tab span{width:6.2rem;height:3.2rem;line-height:3.2rem;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;margin-right:1rem;text-align:center;background:#fff;color:#999;font-size:1.4rem;font-family:PingFangSC-Regular;border-radius:2.4rem;float:left;margin-right:-2.3rem;box-shadow:0 .2rem .4rem 0 hsla(0,0%,75%,.2);font-weight:400}.outSearchWrap .search .tab span.selected{background:#177afa;color:#fff;box-shadow:0 .2rem .4rem 0 rgba(23,122,250,.25);font-weight:700;font-family:PingFangSC-Semibold}.outSearchWrap .record{width:17.95rem;background:#fff;border-radius:.2rem;margin:.6rem 0 0 .6em;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem}.outSearchWrap .record>p{color:#333;font-size:.7rem;font-family:PingFangSC-Regular;padding:.6rem .6rem 0}.outSearchWrap .record ul{border-top:1px solid #ededed;margin-top:1rem;overflow:hidden;padding:.8rem 0 0 .6rem}.outSearchWrap .record ul li{padding:0 .4rem;height:1.4rem;line-height:1.5rem;background:#f5f5f5;text-align:center;color:#333;font-size:.7rem;font-family:PingFangSC-Regular;margin-right:.8rem;margin-bottom:.6rem;float:left}.outSearchWrap .foot{width:18rem;margin-left:.35rem;height:6.15rem;position:absolute;bottom:.55rem}.outSearchWrap .foot img{width:100%;height:100%;border-radius:.4rem}.outSearchWrap .containerlist{margin-top:.5rem}.outSearchWrap .containerlist .itemList{background-color:#fafafa}.outSearchWrap .containerlist .itemList .itemWrap{margin:0 .4rem .6rem}.outSearchWrap .containerlist .itemList .spe .content{font-size:.9rem!important}.outSearchWrap .containerlist .itemList .item{overflow-x:hidden;background-color:#fff;padding:.8rem;position:relative;border-radius:.4rem;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2)}.outSearchWrap .containerlist .itemList .item .follow{position:absolute;top:1rem;right:.6rem;width:2.9rem;padding:.2rem 0;border:1px solid #177afa;border-radius:.7rem;text-align:center;font-family:PingFangSC-Regular;font-size:.6rem;color:#177afa}.outSearchWrap .containerlist .itemList .item .follow>img{width:.4rem;margin-top:.22rem;margin-right:.1rem}.outSearchWrap .containerlist .itemList .item .followed{background:#f2f2f2;border:1px solid #f2f2f2;color:#999}.outSearchWrap .containerlist .itemList .item .userInfo{margin-bottom:.6rem;position:relative}.outSearchWrap .containerlist .itemList .item .userInfo>img{width:1.8rem;height:1.8rem;border-radius:50%;float:left}.outSearchWrap .containerlist .itemList .item .userInfo>.crown{display:inline-block;width:.65rem;height:.65rem;background:url(" + escape(__webpack_require__(285)) + ") no-repeat 0 0;background-size:100% 100%;position:absolute;left:1.15rem;bottom:.2rem}.outSearchWrap .containerlist .itemList .item .userInfo .rightContent{margin-left:2.2rem}.outSearchWrap .containerlist .itemList .item .userInfo .rightContent .uname,.outSearchWrap .containerlist .itemList .item .userInfo .rightContent .uname>span{font-family:PingFangSC-Regular;font-size:.75rem;color:#333}.outSearchWrap .containerlist .itemList .item .userInfo .rightContent .uname .medal{height:.8rem;margin-right:.2rem;position:relative;left:0;top:2px;pointer-events:none}.outSearchWrap .containerlist .itemList .item .userInfo .rightContent .uarea{font-family:PingFangSC-Regular;font-size:.55rem;color:#999;width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:-.1rem}.outSearchWrap .containerlist .itemList .item .userInfo .rightContent .uarea>span{font-family:PingFangSC-Regular;font-size:.55rem;color:#999}.outSearchWrap .containerlist .itemList .item .articleTitle{font-family:PingFangSC-Semibold;font-weight:700;font-size:.9rem;color:#333;margin-bottom:.4rem;line-height:1.25rem}.outSearchWrap .containerlist .itemList .item .content{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;white-space:pre-wrap;line-height:1.25rem}.outSearchWrap .containerlist .itemList .item .content .highlight{color:#ff5c5c;font-style:normal;font-weight:400;font-size:.9rem;font-family:PingFangSC-Regular}.outSearchWrap .containerlist .itemList .item .content img{max-width:100%}.outSearchWrap .containerlist .itemList .item .singleImg{margin-top:.4rem}.outSearchWrap .containerlist .itemList .item .singleImg>img{width:8.3rem;height:11.2rem;object-fit:cover;object-position:50% 50%;border-radius:.2rem}.outSearchWrap .containerlist .itemList .item .imgList{margin-top:.375rem;overflow:hidden}.outSearchWrap .containerlist .itemList .item .imgList>img{float:left;border-radius:.2rem;margin-right:.15rem;margin-top:.15rem;width:5.35rem;height:5.35rem;object-fit:cover;object-position:50% 50%}.outSearchWrap .containerlist .itemList .item .imgList>img:nth-of-type(3n){margin-right:0}.outSearchWrap .containerlist .itemList .item .ask-tit{background:#f8f8f8;position:relative;border-radius:.4rem;margin-top:.6rem;font-size:.8rem;color:#333;padding:1.35rem .4rem .6rem}.outSearchWrap .containerlist .itemList .item .ask-tit b{position:absolute;left:0;top:0;width:1.9rem;height:.95rem;line-height:1rem;text-align:center;background:#6a6869;border-radius:.4rem 0 .4rem 0;font-size:.55rem;color:#fff;font-family:PingFangSC-Regular}.outSearchWrap .containerlist .itemList .item .ask-tit>span{font-size:.9rem;color:#333;font-family:PingFangSC-Regular;line-height:1.125rem}.outSearchWrap .containerlist .itemList .item .ask-tit .answer{margin-top:.4rem}.outSearchWrap .containerlist .itemList .item .ask-tit .answer span{color:#ff3f3f;font-size:.7rem}.outSearchWrap .containerlist .itemList .item .ask-tit .answer span img{width:.8rem;height:.8rem;position:relative;top:.1rem}.outSearchWrap .containerlist .itemList .item .ask-tit .answer .toAns{margin-top:.6rem;font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:600;color:#177afa;text-align:center;width:100%;height:1.8rem;line-height:1.8rem;background:#e6efff;border-radius:1rem}.outSearchWrap .containerlist .itemList .item .ask-tit .answer .toAns img{width:1rem;margin-top:.35rem}.outSearchWrap .containerlist .itemList .item .videoFrame{padding-left:3rem;margin-top:.4rem;overflow:hidden}.outSearchWrap .containerlist .itemList .item .videoFrame>div{position:relative;float:left}.outSearchWrap .containerlist .itemList .item .videoFrame>div img{width:5.7rem;height:7.5rem;object-fit:cover;object-position:50% 50%;box-shadow:0 0 4px #ddd;border-radius:2px;pointer-events:none}.outSearchWrap .containerlist .itemList .item .videoFrame>div:after{content:\"\";width:2rem;height:2rem;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-image:url(" + escape(__webpack_require__(208)) + ");background-size:100%;background-repeat:no-repeat}.outSearchWrap .containerlist .itemList .item .plateNameContainer{margin-top:.4rem}.outSearchWrap .containerlist .itemList .item .plateNameContainer .plateName{font-family:PingFangSC-Regular;font-size:.6rem;color:#4c5e77;text-align:left;display:inline-block;padding:.1rem .5rem;background-color:#f3f4f9;border-radius:.5rem}.outSearchWrap .containerlist .itemList .item .plateNameContainer .plateName>img{width:.6rem;height:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem;pointer-events:none}.outSearchWrap .containerlist .itemList .item .toolContainer{margin-top:.8rem;position:relative}.outSearchWrap .containerlist .itemList .item .toolContainer>div{margin-right:1.6rem;display:inline-block;font-family:PingFangSC-Regular;font-size:.65rem;color:#333;position:relative}.outSearchWrap .containerlist .itemList .item .toolContainer>div>img{width:1rem;height:1rem;vertical-align:middle;position:relative;left:0;top:-.1rem}.outSearchWrap .containerlist .itemList .item .toolContainer>div .hotArea{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:70%;height:150%;opacity:.3}.outSearchWrap .containerlist .itemList .item .toolContainer>.other{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:100%;width:1rem}.outSearchWrap .containerlist .itemList .item .toolContainer>.other>img{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.75rem;height:3px;pointer-events:none}.outSearchWrap .containerlist .itemList .item .toolContainer>.del{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:150%;width:1.5rem}.outSearchWrap .containerlist .itemList .item .toolContainer>.del>img{position:absolute;top:47%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.7rem;height:.7rem;pointer-events:none}.outSearchWrap .containerlist .itemList .item .toolContainer>.share{position:relative}.outSearchWrap .containerlist .itemList .item .toolContainer>.share .shareContainer{z-index:13;position:absolute;bottom:130%;right:2rem;width:8.9rem;height:4.425rem;background-color:#fff;border-radius:2px;padding:0 .8rem}.outSearchWrap .containerlist .itemList .item .toolContainer>.share .shareContainer>div{height:2.2125rem;line-height:2.2125rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outSearchWrap .containerlist .itemList .item .toolContainer>.share .shareContainer>div>img{width:1rem;height:1rem;vertical-align:middle;position:relative;left:0;top:-2px;margin-right:.5rem;pointer-events:none}.outSearchWrap .containerlist .itemList .item .toolContainer>.share .shareContainer>div:first-of-type{border-bottom:1px solid #e0e0e0}.outSearchWrap .containerlist .itemList .item .toolContainer>.share .shareContainer:after{content:\"\";position:absolute;bottom:-.75rem;right:.5rem;width:0;height:0;border:.5rem solid transparent;border-top-color:#fff}.outSearchWrap .containerlist .itemList .item .articleOperation>div{margin:.9rem 0 1.75rem;position:relative;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outSearchWrap .containerlist .itemList .item .articleOperation>div>div{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:.8rem}.outSearchWrap .containerlist .itemList .item .articleOperation>div>div>div{display:inline-block;width:100%;height:2rem;line-height:2rem;text-align:center;background:#e6efff;border-radius:1rem;box-sizing:border-box;font-family:PingFangSC-Regular;font-size:.8rem;color:#177afa}.outSearchWrap .containerlist .itemList .item .articleOperation>div>div:last-child{margin-right:0}.outSearchWrap .containerlist .itemList .item .articleOperation>div>div:last-child div{color:#fff;background:#177afa}.outSearchWrap .containerlist .shareMask{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:12}.outSearchWrap .userInfos{margin-top:.5rem}.outSearchWrap .userInfos .itemWrap{padding:0 .4rem;margin-bottom:.6rem}.outSearchWrap .userInfos .item{position:relative;background:#fff;border-radius:.4rem;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2)}.outSearchWrap .userInfos .follow{position:absolute;top:1.3rem;right:.8rem;width:2.9rem;padding:.2rem 0;border:1px solid #177afa;border-radius:.7rem;text-align:center;font-family:PingFangSC-Regular;font-size:.6rem;color:#177afa}.outSearchWrap .userInfos .follow>img{width:.4rem;margin-top:.22rem;margin-right:.1rem}.outSearchWrap .userInfos .followed{background:#f2f2f2;border:1px solid #f2f2f2;color:#999}.outSearchWrap .userInfos .userInfo{padding:.9rem .8rem;position:relative}.outSearchWrap .userInfos .userInfo>img{width:2.4rem;height:2.4rem;border-radius:50%;float:left}.outSearchWrap .userInfos .userInfo>.crown{display:inline-block;width:.65rem;height:.65rem;background:url(" + escape(__webpack_require__(285)) + ") no-repeat 0 0;background-size:100% 100%;position:absolute;left:2.6rem;top:2.6rem}.outSearchWrap .userInfos .userInfo .rightContent{margin-left:3rem;line-height:1.5}.outSearchWrap .userInfos .userInfo .rightContent .uname{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outSearchWrap .userInfos .userInfo .rightContent .uname>span{font-family:PingFangSC-Regular;font-size:.85rem;color:#333}.outSearchWrap .userInfos .userInfo .rightContent .uname>span .highlight{color:#ff5c5c;font-style:normal;font-weight:400;font-size:.85rem;font-family:PingFangSC-Regular}.outSearchWrap .userInfos .userInfo .rightContent .uname .medal{height:.8rem;margin-right:.2rem;position:relative;left:0;top:2px;pointer-events:none}.outSearchWrap .userInfos .userInfo .rightContent .uarea{font-size:.7rem;width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:PingFangSC-Regular;font-size:.65rem;color:#999}.outSearchWrap .userInfos .userInfo .rightContent .fans span{margin-right:.5rem;font-size:.65rem;color:#333;font-family:PingFangSC-Regular}.outSearchWrap .userInfos .userInfo .rightContent .fans span:last-of-type{margin-left:.5rem;margin-right:0}.outSearchWrap .userInfos .userInfo .rightContent .fans i{position:relative;top:-.2rem}.outSearchWrap .nodata{text-align:center;margin-top:5rem}.outSearchWrap .nodata img{width:3.1rem;margin-bottom:.25rem}.outSearchWrap .nodata img p{color:#333;font-size:.7rem;font-family:PingFangSC-Regular}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/搜索.cf82873.png";module.exports = __webpack_require__.p + "static/img/会员.d4e4046.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2439);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("79e254a0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outSearchWrap strong{font-weight:400}.outSearchWrap .openArticle{font-family:PingFangSC-Regular;color:#177afa;font-size:.9rem}.outSearchWrap .specail .highlight,.outSearchWrap .specail .openArticle{font-size:.8rem!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _reportBox = _interopRequireDefault(__webpack_require__(284));
var _Loading = _interopRequireDefault(__webpack_require__(174));
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import imgView from '../../components/imgView/imgView.vue'
// import commentBox from './components/newComment'
var _default = exports.default = {
  data: function data() {
    return {
      data: this.page,
      clickNum: 1,
      // 默认选中帖子
      isPostData: false,
      // 子组件
      versionMoreThan5: false,
      // app版本号大于等于5.0
      currentCommunityId: '',
      showReportBox: false,
      allLoaded: false,
      scrollLoading: false,
      list: [],
      idList: [],
      listDataInit: false,
      pageSize: 15,
      pageNum: 1,
      userId: '',
      showImgView: false,
      imgUrl: null,
      pinTab: false,
      shareContent: {},
      ModalHelper: null,
      currentShareItem: '',
      currentCommentItem: '',
      listCancelSource: '',
      // 帖子列表 axios cancelToken
      type: 0,
      savePosition: true,
      word: null,
      // 搜索关键字
      sendWord: null,
      searchList: [],
      // 搜索记录
      clientHeight: document.documentElement.clientHeight,
      showBtn: true,
      // 控制按钮盒子显示隐藏
      adInfo: '',
      // 获取广告位
      canGetAgain: true
    };
  },
  watch: {
    // '$store.state.userInfo': function(nval) {
    //   let data = nval;
    //   this.userId = data.userId;
    // }
  },
  created: function created() {
    // 读取缓存中的滚动条位置
    var position = JSON.parse(sessionStorage.getItem('_searchList_'));
    // let status = JSON.parse(sessionStorage.getItem("_status_"));

    if (this.savePosition && position) {
      sessionStorage.removeItem('_searchList_');
      this.list = position.list;
      this.idList = position.idList;
      this.pageSize = position.pageSize;
      this.pageNum = position.pageNum;
      this.allLoaded = position.allLoaded;
      this.clickNum = position.clickNum;
      this.isPostData = position.isPostData;
      this.word = position.word;
      this.sendWord = position.sendWord;
      this.listDataInit = true;
      // this.index = position.index
      this.$nextTick(function () {
        setTimeout(function () {
          if (document.getElementById('savePosition')) {
            document.getElementById('savePosition').scrollTo(0, position.scrollTop);
          } else {
            window.scrollTo(0, position.scrollTop);
          }
        }, 800);
      });
    }
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _version;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            setTimeout(function () {
              _this.userId = _this.$store.state.userInfo.userId;
            });
            _this.getAd();
            _this.getSearchList();
            window.onresize = function () {
              if (_this.clientHeight > document.documentElement.clientHeight) {
                _this.showBtn = false;
              } else {
                _this.showBtn = true;
              }
            };
            _this.ModalHelper = function (bodyCls) {
              var scrollTop;
              return {
                afterOpen: function afterOpen() {
                  scrollTop = document.scrollingElement.scrollTop;
                  document.body.classList.add(bodyCls);
                  document.body.style.top = -scrollTop + 'px';
                },
                beforeClose: function beforeClose() {
                  document.body.classList.remove(bodyCls);
                  // scrollTop lost after set position:fixed, restore it back.
                  document.scrollingElement.scrollTop = scrollTop;
                }
              };
            }('modal-open');
            _this.ModalHelper.beforeClose();
            if (!_this._Util.isApp()) {
              _context.next = 2;
              break;
            }
            _context.next = 1;
            return _this.getAppVer();
          case 1:
            _version = _context.sent;
            _this.versionMoreThan5 = _this.compareVersion(_version);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  methods: {
    /** 获取广告位 */getAd: function getAd() {
      var _this2 = this;
      this._Util.post(this._Api.POST_ADVERT_POSITION, {
        signType: 17
      }, function (data) {
        if (data.advertId) {
          _this2.adInfo = data;
        }
      }, function () {}, this);
    },
    /**
     * 点击广告
    */
    lookAd: function lookAd(adUrl) {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        moduleType: '社区搜索',
        operate_page: '广告位',
        optionType: '点击',
        param1: adUrl
      }, this);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adSearch',
            url: adUrl
          }
        });
      } else {
        location.href = adUrl;
      }
    },
    /**
     * 搜索记录
    */
    getSearchList: function getSearchList() {
      var _this3 = this;
      this._Util.post(this._Api.GET_COMMUNITY_ADD_SEARCH_LIST, {}, function (data) {
        _this3.searchList = data;
      }, function () {}, this, true);
    },
    /**
     * 选择帖子 评论 或用户
    */
    clickTab: function clickTab(index) {
      this.clickNum = index;
      if (this.listCancelSource) {
        // 有axiosCancelToken的时候，取消还未返回的请求
        this.cancelArticleList();
      }
      if (!this.word) {
        this.getSearchList();
      }
      this.list = [];
      this.listDataInit = false;
      this.sendData(3);
    },
    /**
      * 点击搜索
    */
    sendData: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(param) {
        var that;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              that = this;
              if (that.canGetAgain) {
                _context2.next = 1;
                break;
              }
              return _context2.abrupt("return");
            case 1:
              that.canGetAgain = false;
              that.pageNum = 1;
              that.allLoaded = false;
              that.sendWord = that.word ? that.word.trim() : that.word;
              if (param == 2) {
                that._Util.collectPageView2(
                // 埋点
                {
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '社区搜索',
                  operate_page: '搜索记录',
                  optionType: '点击',
                  param1: that.sendWord
                }, that);
              } else {
                that._Util.collectPageView2(
                // 埋点
                {
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '社区搜索',
                  operate_page: '社区搜索',
                  optionType: param == 1 ? '搜索' : '点击',
                  param1: that.sendWord,
                  param2: that.clickNum == 1 ? '帖子' : that.clickNum == 2 ? '评论' : '用户'
                }, that);
              }
              // that.list = []
              that.isPostData = false;
              that.listDataInit = true;
              that.getArticleList();
              if (that.sendWord) {
                _context2.next = 2;
                break;
              }
              if (param != 3) {
                (0, _mintUi.Toast)({
                  message: '请输入搜索关键字',
                  position: 'middle',
                  duration: 1000
                });
              }
              return _context2.abrupt("return");
            case 2:
              that._Util.post(that._Api.POST_COMMUNITY_ADD_SEARCH, {
                keyword: that.sendWord
              }, function (data) {
                // that.getSearchList();
              }, function () {}, that, true);
              that.isPostData = true;
              that.listDataInit = false;
            case 3:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 点击搜索记录
    */
    getSearchData: function getSearchData(item) {
      this.word = item;
      this.sendData(2);
    },
    /**
     * 跳转到个人中心
    */
    goMyPage: function goMyPage() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'myPage',
            url: location.origin + '/v2/community/myPage',
            notGive: true
          }
        });
      } else {
        this.$router.push({
          name: 'myPage'
        });
      }
    },
    /** 关注、取消关注 */
    followToggle: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(userId, status, index, param) {
        var _this4 = this;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              this._Util.post(this._Api.POST_COMMUNITY_USER_FOLLOW_TOGGLE, {
                userId: userId,
                status: status ? '0' : '1'
              }, function (data) {
                // this.index = index
                _this4.list[index].followStatus = status ? '0' : '1';
                if (param) {
                  _this4.list[index].fansCount += 1;
                }
              }, function () {}, this, true);
            case 1:
            case "end":
              return _context3.stop();
          }
        }, _callee3, this);
      }));
      return function (_x2, _x3, _x4, _x5) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /** 记录分享行为 */recordShare: function recordShare(articleId) {
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_RECORD_SHARE, {
        articleId: articleId
      }, function (data) {}, function () {}, this, true);
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      var _this5 = this;
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          if (_this5.version) {
            resolve(_this5.version);
          } else {
            api.getPrefs({
              // 接收apicloud传递过来的版本号
              key: 'version'
            }, function (ret, err) {
              if (ret.value) {
                resolve(ret.value);
              } else {
                reject();
              }
            });
          }
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '5.0.0';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /** 获取分享信息 */getShareInfo: function getShareInfo(articleId, type) {
      var _this6 = this;
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: this.$route.name === 'modulPage' ? this.$route.query.modulName : '交流首页',
        optionType: '点击',
        param1: articleId,
        param2: type === 'session' ? '分享给好友' : '分享到朋友圈'
      }, this);
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'community_share_set',
        article_id: articleId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this6.shareContent = {
            share_img: data.dataList[0].share_img,
            share_text: data.dataList[0].share_text,
            share_title: data.dataList[0].share_title
          };
          _this6.share(articleId, type);
        }
      }, function () {}, this);
    },
    /** 分享配置 */share: function share(articleId, type) {
      var that = this;
      that.recordShare(articleId); // 分享行为记录
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: that.shareContent.share_title,
                desc: that.shareContent.share_text,
                link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
                imgLink: that.shareContent.share_img
              }
            }
          });
          this.currentShareItem.showShareContainer = false;
          this.currentShareItem = '';
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img,
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 发帖 */postMessage: function postMessage(moduleId, moduleName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpImg',
          extra: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      } else {
        this.$router.push({
          name: 'communityWxpost',
          query: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      }
    },
    /** 进入广告页面 */goAd: function goAd(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adContainer',
            url: url
          }
        });
      } else {
        this.saveSessionPosition();
        location.href = url;
      }
    },
    /*
      * 高亮关键字 text =>内容  words:关键词   tag 被包裹的标签
    */
    highLightKeywords: function highLightKeywords(text, words, tag) {
      tag = tag || 'span'; // 默认的标签，如果没有指定，使用span
      var i;
      var len = words.length;
      var re;
      var reg = /^[\u4E00-\u9FA5]+$/;
      if (!reg.test(words)) {
        re = new RegExp(words, 'gi');
        if (re.test(text)) {
          text = text.replace(re, '<' + tag + ' class="highlight">$&</' + tag + '>');
        }
      } else {
        for (i = 0; i < len; i++) {
          // 正则匹配所有的文本
          re = new RegExp(words[i], 'gi');
          if (re.test(text)) {
            text = text.replace(re, '<' + tag + ' class="highlight">$&</' + tag + '>');
          }
        }
      }
      return text;
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      text = that.highLightKeywords(text, that.sendWord.replace(/\s*/g, '') || '', 'strong');
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /** 删除帖子 */deleteArticle: function deleteArticle(articleId) {
      var _this7 = this;
      _mintUi.MessageBox.confirm('确定删除该内容?').then(function (action) {
        if (action === 'confirm') {
          _this7._Util.post(_this7._Api.POST_COMMUNITY_DELETE_ARTICLE, {
            articleId: articleId
          }, function (data) {
            (0, _mintUi.Toast)({
              message: '删除成功',
              position: 'bottom',
              duration: 1000
            });
            _this7.list = [];
            _this7.idList = [];
            _this7.pageNum = 1;
            _this7.scrollLoading = false;
            _this7.allLoaded = false;
            _this7.getArticleList();
          }, function () {}, _this7);
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /** 保存被卷去的高度和数据 */saveSessionPosition: function saveSessionPosition() {
      // 记录滚动条位置
      if (this.savePosition) {
        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
        var position = {
          scrollTop: scrollTop,
          pageNum: this.pageNum,
          pageSize: this.pageSize,
          allLoaded: this.allLoaded,
          list: this.list,
          idList: this.idList,
          clickNum: this.clickNum,
          isPostData: this.isPostData,
          word: this.word,
          sendWord: this.sendWord
          // index:this.index
        };
        sessionStorage.setItem('_searchList_', JSON.stringify(position));
      }
    },
    /** 进入板块详情 */goPlateDetail: function goPlateDetail(modulId, modulName, moduleType, moduleTotal) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'modulPage' + modulId,
            url: location.origin + '/v2/community/modulPage?modulId=' + modulId + '&modulName=' + modulName + '&moduleType=' + moduleType + '&moduleTotal=' + moduleTotal
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'modulPage',
          query: {
            modulId: modulId,
            modulName: modulName,
            moduleType: moduleType,
            moduleTotal: moduleTotal
          }
        });
      }
    },
    /** 帖子点赞 */likeArticle: function likeArticle(id, index, isPraise) {
      if (isPraise == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: this.$route.name === 'modulPage' ? this.$route.query.modulName : '交流首页',
        optionType: '点击',
        param1: id,
        param2: '点赞'
      }, this);
      this.list[index].praiseTotal++;
      this.list[index].isPraise = 1;
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 1,
        communityId: id
      }, function (data) {
        // Toast({
        //   message: "点赞成功",
        //   position: "bottom",
        //   duration: 1000
        // });
      }, function () {
        // Toast({
        //   message: "点赞失败",
        //   position: "bottom",
        //   duration: 1000
        // });
      }, this, true);
    },
    /** 获取所有文章列表 */getArticleList: function getArticleList(param) {
      var that = this;
      if (!that.sendWord) {
        (0, _mintUi.Toast)({
          message: '请输入搜索关键字',
          position: 'middle',
          duration: 1000
        });
        return;
      }
      that.listCancelSource = that.$http.CancelToken.source();
      that._Util.post(that._Api.POST_COMMUNITY_SEARCH_LIST, {
        keyword: that.sendWord,
        pageSize: that.pageSize,
        pageNum: param ? that.pageNum - 1 : that.pageNum,
        type: that.clickNum
      }, function (data) {
        that.canGetAgain = true;
        that.listDataInit = true;
        that._Util.collectPageView2(
        // 埋点
        {
          postUrl: that._Api.POST_COLLECT,
          moduleType: '社区搜索',
          operate_page: '社区搜索',
          optionType: '翻页',
          param1: that.sendWord,
          param2: that.clickNum == 1 ? '帖子' : that.clickNum == 2 ? '评论' : '用户',
          param3: that.pageNum
        }, that);
        if (that.clickNum == 1) {
          data.articleList.forEach(function (v, i) {
            that.list.push(v);
          });
          if (data.articleList.length < that.pageSize) {
            that.allLoaded = true;
          } else {
            that.pageNum++;
          }
        } else if (that.clickNum == 2) {
          data.articleCommentList.forEach(function (v, i) {
            that.list.push(v);
          });
          if (data.articleCommentList.length < that.pageSize) {
            that.allLoaded = true;
          } else {
            that.pageNum++;
          }
        } else {
          data.userList.forEach(function (v, i) {
            that.list.push(v);
          });
          if (data.userList.length < that.pageSize) {
            that.allLoaded = true;
          } else {
            that.pageNum++;
          }
        }
        that.scrollLoading = false;
      }, function () {
        that.canGetAgain = true;
      }, that, true, {
        cancelToken: that.listCancelSource.token
      });
    },
    /** 取消正在请求的文章列表接口 */cancelArticleList: function cancelArticleList() {
      this.listCancelSource.cancel();
    },
    loadMore: function loadMore() {
      if (!this.scrollLoading && !this.allLoaded) {
        this.scrollLoading = true;
        this.getArticleList();
      }
    },
    /** 进入帖子详情 */goDetail: function goDetail(articleId, advertType, advertJumpLink, artic) {
      // console.log(artic.articleCommentId)
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        moduleType: '社区搜索',
        operate_page: '社区搜索',
        optionType: '点击',
        param1: this.sendWord,
        param2: this.clickNum == 1 ? '帖子' : '评论',
        param3: this.clickNum == 1 ? articleId : artic.articleCommentId,
        param4: '跳转'
      }, this);
      if (advertType === 1) {
        this.goAd(advertJumpLink);
        return;
      }
      if (artic.type == 3) {
        // 3->修车问答提问帖
        if (this._Util.isApp()) {
          var url = location.origin + '/v2/community/askDetailAndAnswerList?detailId=' + artic.repairCaseId;
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'toAskDetail',
              url: url
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'askDetailAndAnswerList',
            query: {
              detailId: artic.repairCaseId
            }
          });
        }
        return;
      }
      if (artic.type == 4) {
        // 4->修车问答回答帖+
        if (this._Util.isApp()) {
          var _url = "".concat(location.origin, "/v2/community/answerDetail?articleId=").concat(artic.articleId, "&detailId=").concat(artic.repairCaseId, "&sourceTag=search");
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'answerDetail',
              url: _url
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'answerDetail',
            query: {
              articleId: artic.articleId,
              detailId: artic.repairCaseId,
              sourceTag: 'search'
            }
          });
        }
        return;
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'articleDetail' + articleId,
            url: location.origin + '/v2/community/articleDetail?articleId=' + articleId
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'articleDetail',
          query: {
            articleId: articleId
          }
        });
      }
    },
    /** 进入用户主页 */goUserPage: function goUserPage(userId, param, index) {
      event.preventDefault();
      if (param) {
        this._Util.collectPageView2(
        // 埋点
        {
          postUrl: this._Api.POST_COLLECT,
          moduleType: '社区搜索',
          operate_page: '社区搜索',
          optionType: '点击',
          param1: this.sendWord,
          param2: '用户',
          param3: userId,
          param4: '跳转'
        }, this);
      }
      if (this.$route.name === 'myPage') {
        return;
      }
      // if(index){
      //   this.index = index
      // }
      if (this.userId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId,
              notGive: true
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage' + userId,
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    }
  },
  components: {
    // imgView,
    reportBox: _reportBox.default,
    // commentBox,
    Loading: _Loading.default
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outSearchWrap",style:({'padding-top':_vm.sendWord ? '5rem' : '3rem'})},[_c('div',{staticClass:"search",style:({'height':_vm.sendWord ? '5.15rem' : 'auto'})},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.word),expression:"word"}],attrs:{"type":"text","placeholder":"输入你想搜索的关键词"},domProps:{"value":(_vm.word)},on:{"input":function($event){if($event.target.composing){ return; }_vm.word=$event.target.value}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.sendData(1)}}},[_vm._v("搜索")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.sendWord),expression:"sendWord"}],staticClass:"tab"},[_c('span',{class:{'selected':_vm.clickNum == 1},on:{"click":function($event){$event.stopPropagation();return _vm.clickTab(1)}}},[_vm._v("帖子")]),_vm._v(" "),_c('span',{class:{'selected':_vm.clickNum == 2},on:{"click":function($event){$event.stopPropagation();return _vm.clickTab(2)}}},[_vm._v("评论")]),_vm._v(" "),_c('span',{class:{'selected':_vm.clickNum == 3},on:{"click":function($event){$event.stopPropagation();return _vm.clickTab(3)}}},[_vm._v("用户")])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isPostData && _vm.searchList.length>0),expression:"!isPostData && searchList.length>0"}],staticClass:"record"},[_c('p',[_vm._v("搜索记录")]),_vm._v(" "),_c('ul',_vm._l((_vm.searchList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.getSearchData(item)}}},[_vm._v(_vm._s(item.length > 10 ? item.slice(0,15) + '...' : item))])}),0)]),_vm._v(" "),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isPostData && _vm.adInfo && _vm.showBtn),expression:"!isPostData && adInfo && showBtn"}],staticClass:"foot",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.lookAd(_vm.adInfo.advertUrl)}}},[_c('img',{attrs:{"src":_vm.adInfo.advertImg,"alt":""}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isPostData && _vm.clickNum != 3),expression:"isPostData && clickNum != 3"}],staticClass:"containerlist"},[(_vm.currentShareItem.showShareContainer)?_c('div',{staticClass:"shareMask",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.currentShareItem.showShareContainer=false; _vm.currentShareItem='';}}}):_vm._e(),_vm._v(" "),(!_vm.listDataInit)?_c('div',{staticStyle:{"text-align":"center","margin-top":"4rem","position":"relative","height":"4rem"}},[_c('Loading')],1):_c('div',[(_vm.list.length>0)?_c('ul',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"itemList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"scrollLoading","infinite-scroll-distance":"10"}},[_vm._l((_vm.list),function(item,index){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.clickNum === 1),expression:"clickNum === 1"}],key:index,staticClass:"itemWrap"},[_c('li',{staticClass:"item",attrs:{"id":'list'+item.articleId},on:{"click":function($event){return _vm.goDetail(item.articleId, item.advertType, item.advertJumpLink, item)}}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId,0,index)}}}),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId,0,index)}}},[_vm._v(_vm._s(item.userName.slice(0,10)))]),_vm._v(" "),_vm._l((item.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val,"alt":""}})})],2),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(item.time)+" "+_vm._s(item.position?item.position:(item.uprovince==item.ucity?item.uprovince:item.uprovince+item.ucity)))])])]),_vm._v(" "),(item.followStatus==1&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow followed",on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId,0,index)}}},[_vm._v("\n              已关注\n            ")]):_vm._e(),_vm._v(" "),(item.followStatus==0&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow",on:{"click":function($event){$event.stopPropagation();return _vm.followToggle(item.userId, item.followStatus, index)}}},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/%E5%85%B3%E6%B3%A8.png","alt":""}}),_vm._v("关注\n            ")]):_vm._e(),_vm._v(" "),(item.articleTitle && item.type != 3)?_c('div',{staticClass:"articleTitle"},[_vm._v("\n              "+_vm._s(item.articleTitle)+"\n            ")]):_vm._e(),_vm._v(" "),(item.content&&item.content.length>112 && item.type != 3)?_c('div',{class:['content',{'specail':item.articleTitle}],style:({'font-size':item.articleTitle?'.8rem':'.9rem'}),domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.content.slice(0, 112).trimRight() + '... ' + '<span class=' + 'openArticle' + '>全部</span>'))}},[_vm._v("\n              "+_vm._s(item.content)+"\n            ")]):_vm._e(),_vm._v(" "),(item.content&&item.content.length<=112 && item.type != 3)?_c('div',{staticClass:"content",style:({'font-size':item.articleTitle?'.8rem':'.9rem'}),domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.content))}},[_vm._v("\n              "+_vm._s(item.content)+"\n            ")]):_vm._e(),_vm._v(" "),(item.pictureList && item.type != 3)?_c('div',[(item.pictureList && item.pictureList.length===1)?_c('div',{staticClass:"singleImg"},[_c('img',{attrs:{"src":item.pictureList[0] + '?imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.pictureList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.pictureList && item.pictureList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.pictureList),function(v,i){return _c('img',{key:i,attrs:{"src":v + '?imageView2/2/w/220/h/220',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.pictureList, i)}}})}),0):_vm._e()]):(item.coverPicList && !item.videoList && item.type != 3)?_c('div',[(item.coverPicList&&item.coverPicList.length===1)?_c('div',{staticClass:"singleImg"},[_c('img',{attrs:{"src":item.coverPicList[0] + '?imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.coverPicList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.coverPicList&&item.coverPicList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.coverPicList),function(v,i){return _c('img',{key:i,attrs:{"src":v + '?imageView2/2/w/220/h/220',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.coverPicList, i)}}})}),0):_vm._e()]):_vm._e(),_vm._v(" "),(item.type == 4)?_c('div',{staticClass:"ask-tit"},[_c('b',[_vm._v("问题")]),_vm._v(" "),_c('span',{staticStyle:{"margin-bottom":"0.4rem","font-size":".8rem"}},[_vm._v(_vm._s(item.associationQues))])]):_vm._e(),_vm._v(" "),(item.type == 3)?_c('div',{staticClass:"ask-tit"},[_c('b',[_vm._v("问题")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.articleTitle))]),_vm._v(" "),_c('div',{staticClass:"answer"},[(item.rewardsCount)?_c('span',[_c('img',{attrs:{"src":__webpack_require__(802),"alt":""}}),_vm._v(" 悬赏"+_vm._s(item.rewardsCount)+"星豆")]):_vm._e(),_vm._v(" "),_vm._m(0,true)])]):_vm._e(),_vm._v(" "),(item.videoList && item.type != 3)?_c('div',{staticClass:"videoFrame"},[_c('div',[_c('img',{attrs:{"src":item.videoList + '?vframe/jpg/offset/1',"alt":""}})])]):_vm._e(),_vm._v(" "),(item.type != 3)?_c('div',{staticClass:"plateNameContainer"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(item.moduleName),expression:"item.moduleName"}],staticClass:"plateName",on:{"click":function($event){$event.stopPropagation();return _vm.goPlateDetail(item.moduleId, item.moduleName, item.moduleType,item.moduleTotal)}}},[_c('img',{attrs:{"src":__webpack_require__(210),"alt":""}}),_vm._v(_vm._s(item.moduleName)+"\n              ")]),_vm._v(" "),(item.hotStatus>0)?_c('div',{staticClass:"plateName"},[_c('img',{attrs:{"src":__webpack_require__(210),"alt":""}}),_vm._v("精选\n              ")]):_vm._e()]):_vm._e(),_vm._v(" "),(item.type===1&&item.advertType===2 && item.type != 3)?_c('div',{staticClass:"articleOperation"},[_c('div',[(item.advertBtnOne)?_c('div',[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.advertLinkOne)}}},[_vm._v(_vm._s(item.advertBtnOne))])]):_vm._e(),_vm._v(" "),(item.advertBtnTwo)?_c('div',[_c('div',{staticClass:"color",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.advertLinkTwo)}}},[_vm._v(_vm._s(item.advertBtnTwo))])]):_vm._e()])]):_vm._e(),_vm._v(" "),(item.type===2&&item.topicStatus===1 && item.type != 3)?_c('div',{staticClass:"articleOperation"},[_c('div',[(item.hairTopicBtn)?_c('div',[_c('div',{staticClass:"color",on:{"click":function($event){$event.stopPropagation();return _vm.postMessage(item.moduleId, item.moduleName)}}},[_vm._v(_vm._s(item.hairTopicBtn))])]):_vm._e()])]):_vm._e(),_vm._v(" "),(item.advertType!=1 && item.type != 3)?_c('div',{staticClass:"toolContainer"},[(!item.isPraise)?_c('div',{staticClass:"like"},[_c('img',{attrs:{"src":__webpack_require__(1409),"alt":""}}),_vm._v("\n                "+_vm._s(item.praiseTotal>0 ? item.praiseTotal : '点赞')+"\n                "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();return _vm.likeArticle(item.articleId, index, item.isPraise)}}})]):_c('div',{staticClass:"like",staticStyle:{"color":"#EE4545"}},[_c('img',{staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(1410),"alt":""}}),_vm._v("\n                "+_vm._s(item.praiseTotal>0 ? item.praiseTotal : '点赞')+"\n                "),_c('div',{staticClass:"hotArea"})]),_vm._v(" "),_vm._m(1,true),_vm._v(" "),(_vm._Util.isApp())?_c('div',{staticClass:"share"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(1411),"alt":""}}),_vm._v("\n                转发\n                "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();item.showShareContainer=true;_vm.currentShareItem=item;}}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(item.showShareContainer),expression:"item.showShareContainer"}],staticClass:"shareContainer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.getShareInfo(item.articleId, 'session')}}},[_c('img',{attrs:{"src":__webpack_require__(267),"alt":""}}),_vm._v("分享给好友")]),_vm._v(" "),_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.getShareInfo(item.articleId, 'timeline')}}},[_c('img',{attrs:{"src":__webpack_require__(268),"alt":""}}),_vm._v("分享到朋友圈")])])]):_vm._e(),_vm._v(" "),(_vm.type==='homePage')?_c('span',{staticClass:"del",on:{"click":function($event){$event.stopPropagation();return _vm.deleteArticle(item.articleId)}}},[_c('img',{attrs:{"src":__webpack_require__(1412),"alt":""}})]):_c('span',{staticClass:"other",on:{"click":function($event){$event.stopPropagation();_vm.showReportBox=true;_vm.currentCommunityId=item.articleId}}},[_c('img',{attrs:{"src":__webpack_require__(213),"alt":""}})])]):_vm._e()])])}),_vm._v(" "),_vm._l((_vm.list),function(item,index){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.clickNum === 2),expression:"clickNum === 2"}],key:'spe'+index,staticClass:"itemWrap spe"},[_c('li',{staticClass:"item",attrs:{"id":'list'+item.articleId},on:{"click":function($event){return _vm.goDetail(item.articleId, item.advertType, item.advertJumpLink, item)}}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId,0,index)}}}),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId,0,index)}}},[_vm._v(_vm._s(item.userName.slice(0,10)))]),_vm._v(" "),_vm._l((item.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val,"alt":""}})})],2),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(item.time)+" "+_vm._s(item.position?item.position:(item.uprovince==item.ucity?item.uprovince:item.uprovince+item.ucity)))])])]),_vm._v(" "),(item.followStatus==1&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow followed",on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId,0,index)}}},[_vm._v("\n              已关注\n            ")]):_vm._e(),_vm._v(" "),(item.followStatus==0&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow",on:{"click":function($event){$event.stopPropagation();return _vm.followToggle(item.userId, item.followStatus, index)}}},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/%E5%85%B3%E6%B3%A8.png","alt":""}}),_vm._v("关注\n            ")]):_vm._e(),_vm._v(" "),(item.commentContent&&item.commentContent.length>112)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.commentContent.slice(0, 112).trimRight() + '... ' + '<span class=' + 'openArticle' + '>全部</span>'))}},[_vm._v("\n              "+_vm._s(item.commentContent)+"\n            ")]):_vm._e(),_vm._v(" "),(item.commentContent&&item.commentContent.length<=112)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.commentContent))}},[_vm._v("\n              "+_vm._s(item.commentContent)+"\n            ")]):_vm._e(),_vm._v(" "),(item.picList)?_c('div',[(item.picList && item.picList.length===1)?_c('div',{staticClass:"singleImg"},[_c('img',{attrs:{"src":item.picList[0] + '?imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.picList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.picList && item.picList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.picList),function(v,i){return _c('img',{key:i,attrs:{"src":v + '?imageView2/2/w/220/h/220',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.picList, i)}}})}),0):_vm._e()]):_vm._e()])])}),_vm._v(" "),(!_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10px","padding-bottom":"10px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.allLoaded && _vm.list.length != 0)?_c('div',{staticStyle:{"text-align":"center","padding":"30px 0"}},[_vm._v("没有更多啦 ^_^")]):_vm._e()]),_vm._v(" "),(_vm.showReportBox)?_c('report-box',{attrs:{"type":1,"community-id":_vm.currentCommunityId},on:{"close":function($event){_vm.showReportBox=false;_vm.currentCommunityId='';}}}):_vm._e()],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isPostData && _vm.clickNum === 3),expression:"isPostData && clickNum === 3"}],staticClass:"userInfos"},[(!_vm.listDataInit)?_c('div',{staticStyle:{"text-align":"center","margin-top":"4rem","position":"relative","height":"4rem"}},[_c('Loading')],1):_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"itemWrap"},[_c('li',{staticClass:"item",on:{"click":function($event){return _vm.goUserPage(item.userId,1,index)}}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.userName.slice(0,10)))}}),_vm._v(" "),_vm._l((item.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val,"alt":""}})})],2),_vm._v(" "),_c('div',{staticClass:"fans"},[_c('span',[_vm._v(_vm._s(item.followCount)+"关注")]),_c('i',[_vm._v(".")]),_c('span',[_vm._v(_vm._s(item.fansCount)+"粉丝")])]),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(item.position?item.position:(item.uprovince==item.ucity?item.uprovince:item.uprovince+item.ucity)))])])]),_vm._v(" "),(item.followStatus==1&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow followed"},[_vm._v("\n          已关注\n        ")]):_vm._e(),_vm._v(" "),(item.followStatus==0&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow",on:{"click":function($event){$event.stopPropagation();return _vm.followToggle(item.userId, item.followStatus, index,1)}}},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/%E5%85%B3%E6%B3%A8.png","alt":""}}),_vm._v("关注\n        ")]):_vm._e()])])}),_vm._v(" "),(_vm.listDataInit && !_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10px","padding-bottom":"10px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e(),_vm._v(" "),(_vm.allLoaded && _vm.list.length != 0)?_c('div',{staticStyle:{"text-align":"center","padding":"30px 0"}},[_vm._v("没有更多啦 ^_^")]):_vm._e()],2),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isPostData && _vm.listDataInit && _vm.list.length == 0),expression:"isPostData && listDataInit && list.length == 0"}],staticClass:"nodata"},[_c('img',{attrs:{"src":__webpack_require__(1413),"alt":""}}),_vm._v(" "),_vm._m(2)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"toAns"},[_c('img',{attrs:{"src":__webpack_require__(803),"alt":""}}),_vm._v(" 帮他解答")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"comment"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(181),"alt":""}}),_vm._v("\n                评论\n              ")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v("很抱歉， 未找到匹配内容"),_c('br'),_vm._v("换个关键词试试吧 ^_^")])}]
module.exports = __webpack_require__.p + "static/img/悬赏星豆.4292245.png";module.exports = __webpack_require__.p + "static/img/赞.7c927db.png";module.exports = __webpack_require__.p + "static/img/赞2.b79767b.png";module.exports = __webpack_require__.p + "static/img/转发.ec139ba.png";module.exports = __webpack_require__.p + "static/img/微信2.141957d.png";module.exports = __webpack_require__.p + "static/img/朋友圈2.c7cb739.png";module.exports = __webpack_require__.p + "static/img/delete.376a940.png";module.exports = __webpack_require__.p + "static/img/更多.55790c1.png";module.exports = __webpack_require__.p + "static/img/box.c3f947b.png";module.exports = __webpack_require__.p + "static/img/myansw.399389a.png";__webpack_require__(26);
__webpack_require__(74);
__webpack_require__(1378);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(412);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3ba894bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1013);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2440)
  __webpack_require__(2442)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3ba894bd"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3ba894bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3ba894bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_personalInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2441);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("a144bb32", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".border-bottom-1px[data-v-3ba894bd]{position:relative}.border-bottom-1px[data-v-3ba894bd]:before{content:\"\";position:absolute;left:0;top:0;width:200%;border-bottom:2px solid #f2f2f2;color:#f2f2f2;height:200%;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);pointer-events:none;box-sizing:border-box}@media (-webkit-min-device-pixel-ratio:3),screen and (min-device-pixel-ratio:3){.border-bottom-1px[data-v-3ba894bd]:before{width:300%;height:300%;-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}}.arrow[data-v-3ba894bd]{position:relative}.arrow[data-v-3ba894bd]:after{content:\"\";width:.6rem;height:.9rem;background-image:url(" + escape(__webpack_require__(57)) + ");background-size:100% 100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:.8rem}.countryMask[data-v-3ba894bd]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1000;background:#f2f2f2}.countryMask .redColor[data-v-3ba894bd]{color:#c13434}.outContainer[data-v-3ba894bd]{height:100%;background-color:#f4f5f7}.outContainer .avatar[data-v-3ba894bd]{height:4.2rem;margin-bottom:.6rem;background-color:#fff;position:relative}.outContainer .avatar>div[data-v-3ba894bd]{font-family:PingFangSC-Regular;font-size:16px;color:#333;height:4.2rem;line-height:4.2rem;padding-left:.8rem}.outContainer .avatar>img[data-v-3ba894bd]{position:absolute;top:50%;right:1.7rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3rem;height:3rem;border-radius:50%;background-color:#f0f8ff}.outContainer .infoWrap[data-v-3ba894bd]{background-color:#fff;margin-bottom:.8rem}.outContainer .infoWrap>.item[data-v-3ba894bd]{height:2.5rem;position:relative;padding:0 .8rem}.outContainer .infoWrap>.item>.title[data-v-3ba894bd]{height:2.5rem;line-height:2.5rem;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .infoWrap>.item>.content[data-v-3ba894bd]{position:absolute;height:100%;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5rem;top:0;right:1.7rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .selectBox[data-v-3ba894bd]:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #555;content:\"\";position:absolute;width:0;top:45%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arrow_r.ae95c7f.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2443);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("dac10aaa", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-picker__toolbar{height:2.85rem}.van-picker__columns{background:#f4f5f7}.van-picker__confirm{color:#fe632a}.business{height:300px}.business .top{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#333;height:2.85rem;line-height:2.85rem;text-align:center}.business .top div{width:69px;font-size:16px}.business .top div.confirm{color:#fe632a;font-weight:700}.business .top p{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:18px;font-weight:700}.business .bottom{padding:.8rem .8rem 0}.business .bottom li{float:left;width:32%;height:2.25rem;border-radius:.2rem;background:#f4f5f7;margin:0 2% .6rem 0;text-align:center;color:#333;font:15px/2.25rem PingFangSC-Regular;position:relative}.business .bottom li:nth-child(3n){margin-right:0}.business .bottom li .icon{position:absolute;top:-1px;right:0;display:none;width:.6rem;height:.6rem;background:url(\"https://static1.kaxiuyun.com/kxy/purchase/20220903092931.jpg\") no-repeat;background-size:100% 100%}.business .bottom li.active{border:1px solid #fe632a;color:#fe632a;font-weight:700}.business .bottom li.active .icon{display:block}.address{background:#f4f5f7;padding-bottom:.8rem}.address .top{background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#333;height:2.85rem;line-height:2.85rem;text-align:center}.address .top div{width:69px;font-size:16px}.address .top div.confirm{color:#fe632a;font-weight:700}.address .top p{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:18px;font-weight:700}.address .city{background:#fff;padding:0 0 0 .8rem;margin-top:.6rem;height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#333;line-height:2.5rem}.address .city .cont{text-align:right;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-right:1.5rem}.address .stree{margin-top:.6rem;background:#fff;padding:.7rem .8rem;color:#333;font-size:16px}.address .stree .text{width:100%;height:5rem;margin-top:.8rem;border:none}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(1491);
var _picker = _interopRequireDefault(__webpack_require__(791));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _DialogComponent = _interopRequireDefault(__webpack_require__(136));
var _index = _interopRequireDefault(__webpack_require__(1414));
var _vueArea = _interopRequireDefault(__webpack_require__(1382));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {
    handlerNull: function handlerNull(val) {
      return !val ? '' : val;
    }
  },
  components: {
    DateTimePicker: _index.default,
    DialogComponent: _DialogComponent.default,
    VueArea: _vueArea.default,
    'van-popup': _popup.default,
    'van-picker': _picker.default
  },
  data: function data() {
    return {
      newPhone: '',
      personalInfo: '',
      showDateTime: false,
      dialogShow: false,
      dialogConfig: {
        title: '',
        confirmButton: '确定',
        cancelButton: '取消',
        flag: 1
      },
      showCountryList: false,
      smsFlag: false,
      timeOut: 60,
      newEntityText: '发送验证码',
      inputCode: '',
      // 验证码
      phoneExp: /^1[3456789]\d{9}$/,
      timer: null,
      showPopup: false,
      sexColumns: ['男', '女'],
      storeInfo: {
        businessVaule: '',
        resignText: '',
        storeNatureText: ''
      },
      popupType: 'sex',
      // 弹窗类型
      identityList: [],
      // 身份信息列表
      identityIndex: 0,
      // 身份信息默认选中索引
      storeNatureList: [],
      // 门店性质列表
      storeNatureIndex: 0,
      businessList: [],
      // 业务范围列表
      showArea: false,
      addressResult: {},
      uname: '',
      editType: '',
      address: {
        province: '',
        city: '',
        area: ''
      },
      resignText: '',
      resign: '',
      timing: '',
      time: 0
    };
  },
  computed: {
    _personalInfo: function _personalInfo() {
      return this.$store.state.userInfo;
    }
  },
  watch: {
    // '$route' () {//刷新数据
    //   window.location.reload();
    // },
    _personalInfo: {
      handler: function handler(val, oldVal) {
        this.personalInfo = val;
        this.getInfo();
      },
      deep: true
    },
    personalInfo: {
      handler: function handler(val, oldVal) {
        if (val.autograph && val.autograph.length > 30) {
          this.personalInfo.autograph = val.autograph.slice(0, 30);
          (0, _toast.default)({
            message: '个性签名不得超过30个字',
            position: 'bottom',
            duration: 800
          });
        }
      },
      deep: true
    }
  },
  mounted: function mounted() {
    var that = this;
    this.personalInfo = this.$store.state.userInfo;
    this.getDict();
    window.vuePage = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '个人信息',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    // this.getIdentity()
    // this.getStoreNature()
    // this.getProject()
    setTimeout(function () {
      // this.getStoreInfo()
    }, 300);
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '个人信息,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    refreshByApp: function refreshByApp() {
      this.getInfo();
    },
    getDict: function getDict() {
      var _this = this;
      var that = this;
      this.$http.get(that._Api.DICR_LIST).then(function (res) {
        console.log(res.data.data);
        if (res.data.code === 200) {
          _this.identityList = res.data.data;
          _this.getInfo();
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /* 获取用户信息*/getInfo: function getInfo() {
      var _this2 = this;
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        var userInfo = data.userinfo;
        _this2.personalInfo.province = userInfo.province;
        _this2.personalInfo.city = userInfo.city;
        _this2.personalInfo.area = userInfo.country;
        if (that._Util.isFromApp()) _this2.personalInfo.uphone = userInfo.uphone;
        _this2.personalInfo = JSON.parse(JSON.stringify(_this2.personalInfo));
        for (var i = 0; i < _this2.identityList.length; i++) {
          if (_this2.identityList[i].dictKey == userInfo.career) {
            _this2.resign = _this2.identityList[i].dictKey;
            _this2.resignText = _this2.identityList[i].dictValue;
            _this2.identityIndex = i;
          }
        }
      }, function () {}, that);
    },
    // 获取门店相关信息
    getStoreInfo: function getStoreInfo() {
      var _this3 = this;
      var that = this;
      that._Util.post(that._Api.POST_GET_STORE_INFO_NEW, {}, function (data) {
        that.storeInfo = data;
        if (_this3.identityList.length && _this3.storeInfo.resign) {
          _this3.identityList.forEach(function (item, index) {
            if (item.value === _this3.storeInfo.resign) {
              _this3.identityIndex = index;
              _this3.storeInfo.resignText = item.name;
            }
          });
        }
        if (_this3.storeNatureList.length && _this3.storeInfo.storeNature) {
          _this3.storeNatureList.forEach(function (item, index) {
            if (item.id === _this3.storeInfo.storeNature) {
              _this3.storeNatureIndex = index;
              _this3.storeInfo.storeNatureText = item.natureName;
            }
          });
        }
        if (_this3.businessList.length && _this3.storeInfo.businessText) {
          var tempArr = _this3.storeInfo.businessText.split(',');
          _this3.businessList.forEach(function (item, index) {
            tempArr.forEach(function (item2) {
              if (item.name === item2) {
                item.active = true;
              }
            });
          });
        }
      }, function () {}, that);
    },
    // 获取身份信息
    getIdentity: function getIdentity() {
      var _this4 = this;
      this._Util.post(this._Api.MEMBER_STORE.getIdentity, {}, function (data) {
        _this4.identityList = data || [];
      }, function () {}, this);
    },
    // 获取门店性质列表
    getStoreNature: function getStoreNature() {
      var _this5 = this;
      this._Util.post(this._Api.MEMBER_STORE.getStoreNature, {}, function (data) {
        _this5.storeNatureList = data || [];
      }, function () {}, this);
    },
    getProject: function getProject() {
      var _this6 = this;
      this._Util.post(this._Api.MEMBER_STORE.getProject, {}, function (data) {
        var temp = data || [];
        temp.forEach(function (item) {
          item.active = false;
        });
        _this6.businessList = temp;
      }, function () {}, this);
    },
    // 绑定手机号跳转
    toChangePhone: function toChangePhone() {
      // if (this.personalInfo.uphone) { // 有手机号
      //   this.$router.push({ name: 'phoneChange', query: { from: 'memberCenter' }})
      // } else {
      //   this.$router.push({ name: 'personalCertification', query: { from: 'memberCenter' }})
      // }
      // this.$router.push({ name: 'personalCertification', query: { from: 'kxyMemberCenter' }})
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/login/login"
        });
      }
    },
    /** 保存用户相关信息 */savePersonInfo: function savePersonInfo(isDialog) {
      var _this7 = this;
      if (this.dialogConfig.flag === 2) {
        // 门店规模
        this.saveStoreInfo();
        this.dialogShow = false;
        return;
      }
      if (this.editType == 1) {
        if (!this.uname) {
          (0, _toast.default)({
            message: '昵称不能为空',
            position: 'center',
            duration: 1500
          });
          return;
        }
      } else if (this.editType == 2) {
        if (!this.uname) {
          (0, _toast.default)({
            message: '姓名不能为空',
            position: 'center',
            duration: 1500
          });
          return;
        }
      }
      this._Util.post(this._Api.MEMBER_STORE.saveUser, {
        editType: this.editType,
        nickname: this.editType == 1 ? this.uname : '',
        uname: this.editType == 2 ? this.uname : '',
        province: this.editType == 3 ? this.address.province : '',
        city: this.editType == 3 ? this.address.city : '',
        country: this.editType == 3 ? this.address.area : ' ',
        career: this.editType == 4 ? this.resign : ''
      }, function (data) {
        _this7.uname = '';
        _this7.address = {
          province: '',
          city: '',
          area: ''
        };
        if (isDialog) _this7.dialogShow = false;
        (0, _toast.default)({
          message: '保存成功',
          position: 'bottom',
          duration: 1500
        });
        _this7.$store.dispatch('refreshUserInfo');
        if (localStorage.getItem('inWxMinapp') === '1') {
          uni.postMessage({
            // eslint-disable-line
            data: {
              type: 'updataUrl' // 通知小程序刷新webview
            }
          });
        }
      }, function () {}, this);
    },
    /** 修改生日 */saveBirthday: function saveBirthday(data) {
      this.showDateTime = false;
      this.personalInfo.birthDayStr = data.province + '-' + data.city + '-' + data.area;
      this.savePersonInfo();
    },
    /** 进入头像上传页面 */reviseHeadImg: function reviseHeadImg() {
      this.$router.push({
        name: 'changeUserHeader'
      });
    },
    // 打开弹窗
    showPopupFn: function showPopupFn(type) {
      this.popupType = type;
      this.showPopup = true;
    },
    // 性别确认
    onConfirm: function onConfirm(value) {
      var _this8 = this;
      console.log(value);
      var title = this.$refs.pickerRef.title;
      if (title === '性别') {
        this.personalInfo.sex = value === '男' ? 0 : 1;
        this.savePersonInfo();
      } else if (title === '身份') {
        this.identityList.forEach(function (item) {
          if (item.dictValue === value) {
            _this8.resign = item.dictKey;
          }
        });
        this.resignText = value;
        this.editType = 4;
        this.savePersonInfo();
      } else if (title === '门店性质') {
        this.storeInfo.storeNature = value;
        this.storeNatureList.forEach(function (item) {
          if (item.natureName === value) {
            _this8.storeInfo.storeNature = item.id;
          }
        });
        this.storeInfo.storeNatureText = value;
        this.saveStoreInfo();
      }
      this.showPopup = false;
    },
    // 取消性别选择
    onCancel: function onCancel() {
      this.showPopup = false;
    },
    /**
     * 限制输入数字
     */
    formatNumber: function formatNumber(e, field) {
      var value = e.target.value;
      this.storeInfo[field] = value.replace(/[^\d.]/g, '');
    },
    // 切换选择业务范围
    selectBusiness: function selectBusiness(item) {
      if (item.name === '以上都不是' || item.name === '其他') {
        this.businessList.forEach(function (item) {
          item.active = false;
        });
      } else {
        this.businessList.forEach(function (item) {
          if (item.name === '以上都不是' || item.name === '其他') {
            item.active = false;
          }
        });
      }
      item.active = !item.active;
    },
    // 确认业务范围选择
    confirmBusiness: function confirmBusiness() {
      var value = [];
      var textList = [];
      this.businessList.forEach(function (item) {
        if (item.active) {
          value.push(item.value);
          textList.push(item.name);
        }
      });
      this.showPopup = false;
      this.storeInfo.businessText = textList.join(',');
      this.storeInfo.businessVaule = value.join(',');
      this.saveStoreInfo();
    },
    // 省市区选择确认
    selectCity: function selectCity(res) {
      this.address.city = res.city;
      this.address.province = res.province;
      this.address.area = res.area;
      this.showArea = false;
      this.editType = 3;
      this.savePersonInfo();
      // this.showPopupFn('address')
    },
    // 打开省市区弹窗同时，关闭地区弹窗
    showAreaFn: function showAreaFn() {
      this.showPopup = false;
      this.showArea = true;
    },
    // 地址确认
    confirmAddress: function confirmAddress() {
      if (!this.storeInfo.province) {
        (0, _toast.default)({
          message: '请选择省市区',
          position: 'bottom',
          duration: 2000
        });
        return;
      }
      if (!this.storeInfo.address) {
        (0, _toast.default)({
          message: '请输入详细地址信息',
          position: 'bottom',
          duration: 2000
        });
        return;
      }
      this.showPopup = false;
      this.saveStoreInfo();
    },
    // 保存门店相关信息
    saveStoreInfo: function saveStoreInfo() {
      var params = {
        businessVaule: this.storeInfo.businessVaule,
        province: this.storeInfo.province,
        city: this.storeInfo.city,
        dist: this.storeInfo.dist,
        address: this.storeInfo.address,
        resign: this.storeInfo.resign,
        storeNature: this.storeInfo.storeNature,
        storeSize: this.storeInfo.storeSize
      };
      console.log(params);
      this._Util.post(this._Api.MEMBER_STORE.saveStoreInfo, params, function (data) {
        console.log(1111);
      }, function () {}, this);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(238);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_570d3490_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(780);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1968)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_570d3490_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_570d3490_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DialogComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1969);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("29d105a4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports
exports.i(__webpack_require__(1970), "");

// module
exports.push([module.i, "", ""]);

// exports
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".weui_btn,.weui_dialog_ft a{text-decoration:none;-webkit-tap-highlight-color:transparent}.weui_dialog,.weui_grid_label,.weui_msg,.weui_toptips{text-align:center}.weui_dialog_ft:after,.weui_grids:after{-webkit-transform-origin:0 0;-ms-transform-origin:0 0}.weui_dialog{position:fixed;z-index:13;width:85%;top:45%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#fff;border-radius:8px}.weui_dialog_confirm .weui_dialog .weui_dialog_hd{padding:1.2em 20px 1.4em}.weui_dialog_confirm .weui_dialog .weui_dialog_bd{text-align:left}.weui_dialog_hd{padding:1.2em 0 .5em}.weui_dialog_title{font-weight:700;font-size:17px;color:#333}.weui_dialog_bd{padding:0 .8rem;font-size:15px;color:#333}.weui_dialog_ft{position:relative;line-height:57px;margin-top:20px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.weui_dialog_ft a{display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#3cc51f;font-size:18px}.weui_dialog_confirm .weui_dialog_ft a:after,.weui_dialog_ft:after{content:\" \";left:0;top:0;color:#d5d5d6}.weui_dialog_ft a:active{background-color:#eee}.weui_dialog_ft:after{position:absolute;width:100%;height:1px;border-top:1px solid #d5d5d6;transform-origin:0 0;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5)}.weui_dialog_confirm .weui_dialog_ft a{position:relative}.weui_dialog_confirm .weui_dialog_ft a:after{position:absolute;width:1px;height:100%;border-left:1px solid #d5d5d6;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5)}.weui_dialog_confirm .weui_dialog_ft a:first-child:after{display:none}.weui_btn_dialog.default{color:#333}.weui_btn_dialog.primary{color:#fe632a}@media screen and (min-width:1024px){.weui_dialog{width:35%}}.weui_mask,.weui_mask_transition,.weui_mask_transparent{z-index:1;height:100%;position:fixed;left:0;top:0;width:100%}.weui_mask{background:rgba(0,0,0,.6)}.weui_mask_transition{display:none;background:0 0;-webkit-transition:background .3s;transition:background .3s}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    /**
       * 对话框类型
       * alert: 提示框，只包含确定按钮（默认）
       * confirm: 询问框，包含确定和取消按钮
       */
    type: {
      type: String,
      required: false,
      default: 'alert'
    },
    /**
       * 对话框标题
       */
    title: {
      type: String,
      required: true
    },
    /**
       * 确定按钮名称
       */
    confirmButton: {
      type: String,
      required: false,
      default: '确定'
    },
    /**
       * 取消按钮名称
       */
    cancelButton: {
      type: String,
      required: false,
      default: '取消'
    }
  },
  methods: {
    save: function save() {
      this.$parent.$emit('dialogSave', 'save');
      this.$emit('dialogSave', 'save');
    },
    cancel: function cancel() {
      this.$parent.$emit('dialogCancel', 'cancel');
      this.$emit('dialogCancel', 'cancel');
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:'weui_dialog_' + _vm.type},[_c('div',{staticClass:"weui_mask"}),_vm._v(" "),_c('div',{staticClass:"weui_dialog"},[_c('div',{staticClass:"weui_dialog_hd"},[_c('div',{staticClass:"weui_dialog_title"},[_vm._v(_vm._s(_vm.title))])]),_vm._v(" "),_c('div',{staticClass:"weui_dialog_bd"},[_vm._t("default")],2),_vm._v(" "),_c('div',{staticClass:"weui_dialog_ft"},[(_vm.type === 'confirm')?_c('a',{staticClass:"weui_btn_dialog default",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.cancel()}}},[_vm._v(_vm._s(_vm.cancelButton)+"\n      ")]):_vm._e(),_vm._v(" "),_c('a',{staticClass:"weui_btn_dialog primary",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.save()}}},[_vm._v(_vm._s(_vm.confirmButton)+"\n      ")])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(286);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_df3f55cc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(873);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2061)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_df3f55cc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_df3f55cc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2062);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("44566f1b", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ProvCityBoxBg{background:rgba(0,0,0,.7);z-index:200;position:absolute;top:0;bottom:0;left:0;right:0}.ProvCityBox{position:fixed;z-index:300;background:#f4f5f7;bottom:0;left:0;right:0;border-radius:8px 8px 0 0;overflow:hidden}.ProvCityHeader{height:57px;line-height:57px;overflow:hidden;text-align:center;font-size:16px!important;background:#fff}.ProvCityHeaderCancle{float:left;padding:0 20px;color:#333;font-size:16px!important}.ProvCityHeaderConfirm{float:right;padding:0 20px;color:#fe632a;font-size:16px!important}.ProvCityContent{width:100%;margin:0 auto;height:245px;overflow:hidden}.ProvCityContentList{float:left;width:33.333333%;text-align:center}.ProvCityContentList ul{-webkit-transition:all .3s ease;transition:all .3s ease}.ProvCityContentList ul.area_dragging,.ProvCityContentList ul.city_dragging,.ProvCityContentList ul.province_dragging{-webkit-transition:none;transition:none}.ProvCityContentList li{line-height:35px;height:35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px!important}.ProvCityContentList li.current{font-size:16px!important;font-weight:700}.ProvCityContentList li.node1{font-size:15px!important;opacity:.7}.ProvCityContentList li.node2{font-size:14px!important;opacity:.5}.ProvCityContentList li.node3{font-size:12px!important;opacity:.3}.ProvCitySelectedTop{bottom:105px}.ProvCitySelectedBottom,.ProvCitySelectedTop{width:100%;border:none;border-top:1px solid #eee;position:absolute;margin:0;height:0}.ProvCitySelectedBottom{bottom:140px}.expand-select-enter-active,.expand-select-leave-active{-webkit-transition:all .4s ease;transition:all .4s ease;bottom:0}.expand-select-enter,.expand-select-leave-active{-webkit-transform:translateY(289px);-ms-transform:translateY(289px);transform:translateY(289px)}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    'result': {
      type: [Object, String],
      default: null
    },
    'show': Boolean,
    'title': {
      type: String,
      default: '请选择'
    },
    'confirm': {
      type: String,
      default: '确定'
    },
    'cancel': {
      type: String,
      default: '取消'
    }
  },
  data: function data() {
    return {
      target: '',
      provinceState: {
        data: [],
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      cityState: {
        data: [],
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      areaState: {
        data: [],
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      delta: 0,
      slideEls: null,
      p: '',
      c: '',
      a: '',
      provinces: [],
      areas: '',
      cities: ''
    };
  },
  watch: {
    result: function result(nval) {
      var _this = this;
      if (typeof nval === 'string') {
        var tempArr = nval.split('-');
        setTimeout(function () {
          _this.provinceState.index = tempArr[0];
          _this.provinceState.translateY = -100;
          _this.cityState.index = Number(tempArr[1]);
          _this.areaState.index = Number(tempArr[2]);
        }, 200);
      }
    }
  },
  mounted: function mounted() {
    var that = this;
    that.initYear();
    that.beforeCreate();
    that._onTouchMove = that._onTouchMove.bind(that);
    that._onTouchEnd = that._onTouchEnd.bind(that);
  },
  methods: {
    initYear: function initYear() {
      var startDate = 1950;
      var endDate = new Date().getFullYear() + 1;
      for (var i = 0; i < endDate - startDate; i++) {
        this.provinces.push(startDate + i);
      }
    },
    beforeCreate: function beforeCreate() {
      this.setProvince(1950);
      this.setCity(1950, 1);
      this.provinceState.data = this.provinces;
      this.provinceState.selectedId = 110000; // 北京市  省
      this.cityState.selectedId = 110100; // 市辖区  市
      this.areaState.selectedId = 110101; // 东城区  区
    },
    setProvince: function setProvince(p) {
      this.p = p;
      this.c = '';
      this.a = '';
      this.areas = [];
      this.cityState.data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
      this.cityState.translateY = 0;
      this.cityState.index = 0;
    },
    setCity: function setCity(year, month) {
      this.c = month;
      this.areaState.data = [];
      var dayCount = this.getDaysInMonth(year, month);
      for (var i = 0; i < dayCount; i++) {
        this.areaState.data.push(i + 1);
      }
      this.areaState.translateY = 0;
      this.areaState.index = 0;
    },
    getDaysInMonth: function getDaysInMonth(year, month) {
      month = parseInt(month, 10); // parseInt(number,type)这个函数后面如果不跟第2个参数来表示进制的话，默认是10进制。
      var temp = new Date(year, month, 0);
      return temp.getDate();
    },
    setArea: function setArea(a) {
      this.a = a;
    },
    submit: function submit() {
      var obj = {
        'province': this.provinceState.data[this.provinceState.index],
        'city': this.cityState.data.length ? this.cityState.data[this.cityState.index] : '',
        'area': this.areaState.data.length ? this.areaState.data[this.areaState.index] : ''
      };
      this.$parent.$emit('checkedCity', obj);
      this.$emit('checkedCity', obj);
    },
    getSelectedData: function getSelectedData(index) {
      var target = this.target;
      var thisData = this[target + 'State'];
      this._Util.log(thisData);
      thisData.selectedId = thisData.data[index];
      if (target === 'province') {
        this.setProvince(thisData.data[index]);
        if (thisData.data[index]) {
          this.setCity(thisData.data[index], 1);
        } else {
          this.setCity();
        }
      }
      if (target === 'city') {
        this.setCity(this.p, thisData.data[index]);
      }
    },
    setPage: function setPage() {
      var target = this.target;
      var thisData = this[target + 'State'];
      if (!thisData.data.length) {
        return;
      }
      var clientHeight = this.slideEls[0]['clientHeight'];
      var total = thisData.data.length;
      var goPage = Math.round((thisData.translateY / clientHeight).toFixed(1));
      if (goPage > 0) {
        goPage = 0;
      }
      goPage = total - 1 >= Math.abs(goPage) ? goPage : -(total - 1);
      var index = Math.abs(goPage);
      thisData.index = index;
      this.getSelectedData(index);
      thisData.translateY = goPage * clientHeight;
    },
    cityCancel: function cityCancel() {
      this.$parent.$emit('areaCancel');
      this.$emit('areaCancel');
    },
    _getTouchPos: function _getTouchPos(e) {
      return e.changedTouches ? e.changedTouches[0]['pageY'] : e['pageY'];
    },
    _getElem: function _getElem(e) {
      return Array.from(e.currentTarget.children).slice(3, -3);
    },
    _onTouchStart: function _onTouchStart(target, e) {
      var thisData = this[target + 'State'];
      this.target = target;
      this.slideEls = this._getElem(e);
      this.delta = 0;
      thisData.startPos = this._getTouchPos(e);
      thisData.startTranslateY = thisData.translateY;
      thisData.dragging = true;
      document.addEventListener('touchmove', this._onTouchMove, false);
      document.addEventListener('touchend', this._onTouchEnd, false);
      document.addEventListener('mousemove', this._onTouchMove, false);
      document.addEventListener('mouseup', this._onTouchEnd, false);
    },
    _onTouchMove: function _onTouchMove(e) {
      var target = this.target;
      var thisData = this[target + 'State'];
      e.delta = this._getTouchPos(e) - thisData.startPos;
      thisData.translateY = thisData.startTranslateY + e.delta;
      if (Math.abs(e.delta) > 0) {
        e.preventDefault();
      }
    },
    _onTouchEnd: function _onTouchEnd(e) {
      var target = this.target;
      var thisData = this[target + 'State'];
      thisData.dragging = false;
      this.setPage();
      document.removeEventListener('touchmove', this._onTouchMove);
      document.removeEventListener('touchend', this._onTouchEnd);
      document.removeEventListener('mousemove', this._onTouchMove);
      document.removeEventListener('mouseup', this._onTouchEnd);
    },
    _stopDef: function _stopDef(e) {
      e.preventDefault();
    },
    getCode: function getCode(itemList, str, parentId) {
      // for (let i = 0; i < itemList.length; i++) {
      //   if (!parentId && itemList[i].name == str) {

      //   }
      // }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ProvCityBoxWarp"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"ProvCityBoxBg",on:{"click":function($event){return _vm.cityCancel()},"touchmove":_vm._stopDef,"mousewheel":_vm._stopDef}}),_vm._v(" "),_c('transition',{attrs:{"name":"expand-select"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"ProvCityBox",on:{"mousewheel":_vm._stopDef}},[_c('div',{staticClass:"ProvCityHeader"},[_c('div',{staticClass:"ProvCityHeaderCancle",on:{"click":function($event){return _vm.cityCancel()}}},[_vm._v(_vm._s(_vm.cancel))]),_vm._v("\n        "+_vm._s(_vm.title)+"\n        "),_c('div',{staticClass:"ProvCityHeaderConfirm",on:{"click":function($event){return _vm.submit()}}},[_vm._v(_vm._s(_vm.confirm))])]),_vm._v(" "),_c('div',{staticClass:"ProvCityContent"},[_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"provinceList",class:{'province_dragging': _vm.provinceState.dragging},style:({'transform' : 'translate3d(0,' + _vm.provinceState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('province', $event)},"mousedown":function($event){return _vm._onTouchStart('province', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.provinceState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.provinceState.selectedId,
                'node1': Math.abs(index - _vm.provinceState.index) == 1,
                'node2': Math.abs(index - _vm.provinceState.index) == 2,
                'node3': Math.abs(index - _vm.provinceState.index) >= 3
              }},[_vm._v(_vm._s(item)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)]),_vm._v(" "),_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"cityList",class:{'city_dragging': _vm.cityState.dragging},style:({'transform' : 'translate3d(0,' + _vm.cityState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('city', $event)},"mousedown":function($event){return _vm._onTouchStart('city', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.cityState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.cityState.selectedId,
                'node1': Math.abs(index - _vm.cityState.index) == 1,
                'node2': Math.abs(index - _vm.cityState.index) == 2,
                'node3': Math.abs(index - _vm.cityState.index) >= 3
              }},[_vm._v(_vm._s(item)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)]),_vm._v(" "),_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"areaList",class:{'area_dragging': _vm.areaState.dragging},style:({'transform' : 'translate3d(0,' + _vm.areaState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('area', $event)},"mousedown":function($event){return _vm._onTouchStart('area', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.areaState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.areaState.selectedId,
                'node1': Math.abs(index - _vm.areaState.index) == 1,
                'node2': Math.abs(index - _vm.areaState.index) == 2,
                'node3': Math.abs(index - _vm.areaState.index) >= 3
              }},[_vm._v(_vm._s(item)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)])]),_vm._v(" "),_c('hr',{staticClass:"ProvCitySelectedTop"}),_vm._v(" "),_c('hr',{staticClass:"ProvCitySelectedBottom"})])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(253);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_54e87b87_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2035)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_54e87b87_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_54e87b87_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vue_area2_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2036);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2bc87d7e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ProvCityBoxBg{background:rgba(0,0,0,.7);z-index:200;position:absolute;top:0;bottom:0;left:0;right:0}.ProvCityBox{position:fixed;z-index:300;background:#fff;bottom:0;left:0;right:0}.ProvCityHeader{background-color:#eee;height:44px;line-height:44px;overflow:hidden;text-align:center;font-size:16px!important}.ProvCityHeaderCancle{float:left}.ProvCityHeaderCancle,.ProvCityHeaderConfirm{padding:0 20px;color:#ff5657;font-size:16px!important}.ProvCityHeaderConfirm{float:right}.ProvCityContent{width:100%;margin:0 auto;background:#fff;height:245px;overflow:hidden}.ProvCityContentList{float:left;width:33.333333%;text-align:center}.ProvCityContentList ul{-webkit-transition:all .3s ease;transition:all .3s ease}.ProvCityContentList ul.area_dragging,.ProvCityContentList ul.city_dragging,.ProvCityContentList ul.province_dragging{-webkit-transition:none;transition:none}.ProvCityContentList li{line-height:35px;height:35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px!important}.ProvCityContentList li.current{font-size:16px!important;font-weight:700}.ProvCityContentList li.node1{font-size:15px!important;opacity:.7}.ProvCityContentList li.node2{font-size:14px!important;opacity:.5}.ProvCityContentList li.node3{font-size:12px!important;opacity:.3}.ProvCitySelectedTop{bottom:105px}.ProvCitySelectedBottom,.ProvCitySelectedTop{width:100%;border:none;border-top:1px solid #eee;position:absolute;margin:0;height:0}.ProvCitySelectedBottom{bottom:140px}.expand-select-enter-active,.expand-select-leave-active{-webkit-transition:all .4s ease;transition:all .4s ease;bottom:0}.expand-select-enter,.expand-select-leave-active{-webkit-transform:translateY(289px);-ms-transform:translateY(289px);transform:translateY(289px)}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _city = _interopRequireDefault(__webpack_require__(1368));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    'result': {
      type: Object,
      default: null
    },
    'show': Boolean,
    'title': {
      type: String,
      default: '请选择'
    },
    'confirm': {
      type: String,
      default: '确定'
    },
    'cancel': {
      type: String,
      default: '取消'
    }
  },
  data: function data() {
    return {
      target: '',
      provinceState: {
        data: null,
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      cityState: {
        data: null,
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      areaState: {
        data: null,
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      delta: 0,
      slideEls: null,
      p: '',
      c: '',
      a: '',
      provinces: _city.default.citylist,
      areas: '',
      cities: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that.beforeCreate();
    that._onTouchMove = that._onTouchMove.bind(that);
    that._onTouchEnd = that._onTouchEnd.bind(that);
  },
  methods: {
    beforeCreate: function beforeCreate() {
      this.setProvince('北京市');
      this.setCity('东城区');
      this.provinceState.data = this.provinces;
      this.provinceState.selectedId = 110000; // 北京市  省
      this.cityState.selectedId = 110100; // 市辖区  市
      this.areaState.selectedId = 110101; // 东城区  区
    },
    setProvince: function setProvince(p) {
      this.p = p;
      this.c = '';
      this.a = '';
      this.areas = [];
      // 根据选中的 p(省份) 值更新 cities(城市列表)
      var result = this.provinces.filter(function (v) {
        return v.p === p;
      });
      this.cityState.data = result[0].c || [];
      this.cityState.translateY = 0;
      this.cityState.index = 0;
    },
    setCity: function setCity(c) {
      this.c = c;
      this.a = '';
      var result = this.cityState.data.filter(function (v) {
        return v.n === c;
      });
      if (result.length) {
        this.areaState.data = result[0].a || [];
      } else {
        this.areaState.data = [];
      }
      this.areaState.translateY = 0;
      this.areaState.index = 0;
    },
    setArea: function setArea(a) {
      this.a = a;
    },
    submit: function submit() {
      var obj = {
        'province': this.provinceState.data[this.provinceState.index].p,
        'city': this.cityState.data.length ? this.cityState.data[this.cityState.index].n : '',
        'area': this.areaState.data.length ? this.areaState.data[this.areaState.index].s : ''
      };
      this.$emit('checkedCity', obj);
    },
    getSelectedData: function getSelectedData(index) {
      var target = this.target;
      var thisData = this[target + 'State'];
      thisData.selectedId = thisData.data[index].code;
      if (target === 'province') {
        this.setProvince(thisData.data[index].p);
        if (thisData.data[index].c) {
          this.setCity(thisData.data[index].c[0].n);
        } else {
          this.setCity();
        }
      }
      if (target === 'city') {
        this.setCity(thisData.data[index].n);
      }
    },
    setPage: function setPage() {
      var target = this.target;
      var thisData = this[target + 'State'];
      if (!thisData.data.length) {
        return;
      }
      var clientHeight = this.slideEls[0]['clientHeight'];
      var total = thisData.data.length;
      var goPage = Math.round((thisData.translateY / clientHeight).toFixed(1));
      if (goPage > 0) {
        goPage = 0;
      }
      goPage = total - 1 >= Math.abs(goPage) ? goPage : -(total - 1);
      var index = Math.abs(goPage);
      thisData.index = index;
      this.getSelectedData(index);
      thisData.translateY = goPage * clientHeight;
    },
    cityCancel: function cityCancel() {
      this.$emit('areaCancel');
    },
    _getTouchPos: function _getTouchPos(e) {
      return e.changedTouches ? e.changedTouches[0]['pageY'] : e['pageY'];
    },
    _getElem: function _getElem(e) {
      return Array.from(e.currentTarget.children).slice(3, -3);
    },
    _onTouchStart: function _onTouchStart(target, e) {
      var thisData = this[target + 'State'];
      this.target = target;
      this.slideEls = this._getElem(e);
      this.delta = 0;
      thisData.startPos = this._getTouchPos(e);
      thisData.startTranslateY = thisData.translateY;
      thisData.dragging = true;
      document.addEventListener('touchmove', this._onTouchMove, false);
      document.addEventListener('touchend', this._onTouchEnd, false);
      document.addEventListener('mousemove', this._onTouchMove, false);
      document.addEventListener('mouseup', this._onTouchEnd, false);
    },
    _onTouchMove: function _onTouchMove(e) {
      var target = this.target;
      var thisData = this[target + 'State'];
      e.delta = this._getTouchPos(e) - thisData.startPos;
      thisData.translateY = thisData.startTranslateY + e.delta;
      if (Math.abs(e.delta) > 0) {
        e.preventDefault();
      }
    },
    _onTouchEnd: function _onTouchEnd(e) {
      var target = this.target;
      var thisData = this[target + 'State'];
      thisData.dragging = false;
      this.setPage();
      document.removeEventListener('touchmove', this._onTouchMove);
      document.removeEventListener('touchend', this._onTouchEnd);
      document.removeEventListener('mousemove', this._onTouchMove);
      document.removeEventListener('mouseup', this._onTouchEnd);
    },
    _stopDef: function _stopDef(e) {
      e.preventDefault();
    }
  }
};module.exports = JSON.parse("{\"citylist\":[{\"p\":\"北京市\",\"c\":[{\"n\":\"东城区\"},{\"n\":\"西城区\"},{\"n\":\"崇文区\"},{\"n\":\"宣武区\"},{\"n\":\"朝阳区\"},{\"n\":\"丰台区\"},{\"n\":\"石景山区\"},{\"n\":\"海淀区\"},{\"n\":\"门头沟区\"},{\"n\":\"房山区\"},{\"n\":\"通州区\"},{\"n\":\"顺义区\"},{\"n\":\"昌平区\"},{\"n\":\"大兴区\"},{\"n\":\"平谷区\"},{\"n\":\"怀柔区\"},{\"n\":\"密云县\"},{\"n\":\"延庆县\"}]},{\"p\":\"天津市\",\"c\":[{\"n\":\"和平区\"},{\"n\":\"河东区\"},{\"n\":\"河西区\"},{\"n\":\"南开区\"},{\"n\":\"河北区\"},{\"n\":\"红挢区\"},{\"n\":\"滨海新区\"},{\"n\":\"东丽区\"},{\"n\":\"西青区\"},{\"n\":\"津南区\"},{\"n\":\"北辰区\"},{\"n\":\"宁河区\"},{\"n\":\"武清区\"},{\"n\":\"静海县\"},{\"n\":\"宝坻区\"},{\"n\":\"蓟县\"}]},{\"p\":\"河北省\",\"c\":[{\"n\":\"石家庄\",\"a\":[{\"s\":\"长安区\"},{\"s\":\"桥东区\"},{\"s\":\"桥西区\"},{\"s\":\"新华区\"},{\"s\":\"井陉矿区\"},{\"s\":\"裕华区\"},{\"s\":\"井陉县\"},{\"s\":\"正定县\"},{\"s\":\"栾城县\"},{\"s\":\"行唐县\"},{\"s\":\"灵寿县\"},{\"s\":\"高邑县\"},{\"s\":\"深泽县\"},{\"s\":\"赞皇县\"},{\"s\":\"无极县\"},{\"s\":\"平山县\"},{\"s\":\"元氏县\"},{\"s\":\"赵县\"},{\"s\":\"辛集市\"},{\"s\":\"藁城市\"},{\"s\":\"晋州市\"},{\"s\":\"新乐市\"},{\"s\":\"鹿泉市\"}]},{\"n\":\"唐山\",\"a\":[{\"s\":\"路南区\"},{\"s\":\"路北区\"},{\"s\":\"古冶区\"},{\"s\":\"开平区\"},{\"s\":\"丰南区\"},{\"s\":\"丰润区\"},{\"s\":\"滦县\"},{\"s\":\"滦南县\"},{\"s\":\"乐亭县\"},{\"s\":\"迁西县\"},{\"s\":\"玉田县\"},{\"s\":\"唐海县\"},{\"s\":\"遵化市\"},{\"s\":\"迁安市\"}]},{\"n\":\"秦皇岛\",\"a\":[{\"s\":\"海港区\"},{\"s\":\"山海关区\"},{\"s\":\"北戴河区\"},{\"s\":\"青龙满族自治县\"},{\"s\":\"昌黎县\"},{\"s\":\"抚宁县\"},{\"s\":\"卢龙县\"}]},{\"n\":\"邯郸\",\"a\":[{\"s\":\"邯山区\"},{\"s\":\"丛台区\"},{\"s\":\"复兴区\"},{\"s\":\"峰峰矿区\"},{\"s\":\"邯郸县\"},{\"s\":\"临漳县\"},{\"s\":\"成安县\"},{\"s\":\"大名县\"},{\"s\":\"涉县\"},{\"s\":\"磁县\"},{\"s\":\"肥乡县\"},{\"s\":\"永年县\"},{\"s\":\"邱县\"},{\"s\":\"鸡泽县\"},{\"s\":\"广平县\"},{\"s\":\"馆陶县\"},{\"s\":\"魏县\"},{\"s\":\"曲周县\"},{\"s\":\"武安市\"}]},{\"n\":\"邢台\",\"a\":[{\"s\":\"桥东区\"},{\"s\":\"桥西区\"},{\"s\":\"邢台县\"},{\"s\":\"临城县\"},{\"s\":\"内丘县\"},{\"s\":\"柏乡县\"},{\"s\":\"隆尧县\"},{\"s\":\"任县\"},{\"s\":\"南和县\"},{\"s\":\"宁晋县\"},{\"s\":\"巨鹿县\"},{\"s\":\"新河县\"},{\"s\":\"广宗县\"},{\"s\":\"平乡县\"},{\"s\":\"威县\"},{\"s\":\"清河县\"},{\"s\":\"临西县\"},{\"s\":\"南宫市\"},{\"s\":\"沙河市\"}]},{\"n\":\"保定\",\"a\":[{\"s\":\"新市区\"},{\"s\":\"北市区\"},{\"s\":\"南市区\"},{\"s\":\"满城县\"},{\"s\":\"清苑县\"},{\"s\":\"涞水县\"},{\"s\":\"阜平县\"},{\"s\":\"徐水县\"},{\"s\":\"定兴县\"},{\"s\":\"唐县\"},{\"s\":\"高阳县\"},{\"s\":\"容城县\"},{\"s\":\"涞源县\"},{\"s\":\"望都县\"},{\"s\":\"安新县\"},{\"s\":\"易县\"},{\"s\":\"曲阳县\"},{\"s\":\"蠡县\"},{\"s\":\"顺平县\"},{\"s\":\"博野县\"},{\"s\":\"雄县\"},{\"s\":\"涿州市\"},{\"s\":\"定州市\"},{\"s\":\"安国市\"},{\"s\":\"高碑店市\"}]},{\"n\":\"张家口\",\"a\":[{\"s\":\"桥东区\"},{\"s\":\"桥西区\"},{\"s\":\"宣化区\"},{\"s\":\"下花园区\"},{\"s\":\"宣化县\"},{\"s\":\"张北县\"},{\"s\":\"康保县\"},{\"s\":\"沽源县\"},{\"s\":\"尚义县\"},{\"s\":\"蔚县\"},{\"s\":\"阳原县\"},{\"s\":\"怀安县\"},{\"s\":\"万全县\"},{\"s\":\"怀来县\"},{\"s\":\"涿鹿县\"},{\"s\":\"赤城县\"},{\"s\":\"崇礼县\"}]},{\"n\":\"承德\",\"a\":[{\"s\":\"双桥区\"},{\"s\":\"双滦区\"},{\"s\":\"鹰手营子矿区\"},{\"s\":\"承德县\"},{\"s\":\"兴隆县\"},{\"s\":\"平泉县\"},{\"s\":\"滦平县\"},{\"s\":\"隆化县\"},{\"s\":\"丰宁满族自治县\"},{\"s\":\"宽城满族自治县\"},{\"s\":\"围场满族蒙古族自治县\"}]},{\"n\":\"沧州\",\"a\":[{\"s\":\"新华区\"},{\"s\":\"运河区\"},{\"s\":\"沧县\"},{\"s\":\"青县\"},{\"s\":\"东光县\"},{\"s\":\"海兴县\"},{\"s\":\"盐山县\"},{\"s\":\"肃宁县\"},{\"s\":\"南皮县\"},{\"s\":\"吴桥县\"},{\"s\":\"献县\"},{\"s\":\"孟村回族自治县\"},{\"s\":\"泊头市\"},{\"s\":\"任丘市\"},{\"s\":\"黄骅市\"},{\"s\":\"河间市\"}]},{\"n\":\"廊坊\",\"a\":[{\"s\":\"安次区\"},{\"s\":\"广阳区\"},{\"s\":\"固安县\"},{\"s\":\"永清县\"},{\"s\":\"香河县\"},{\"s\":\"大城县\"},{\"s\":\"文安县\"},{\"s\":\"大厂回族自治县\"},{\"s\":\"霸州市\"},{\"s\":\"三河市\"}]},{\"n\":\"衡水\",\"a\":[{\"s\":\"桃城区\"},{\"s\":\"枣强县\"},{\"s\":\"武邑县\"},{\"s\":\"武强县\"},{\"s\":\"饶阳县\"},{\"s\":\"安平县\"},{\"s\":\"故城县\"},{\"s\":\"景县\"},{\"s\":\"阜城县\"},{\"s\":\"冀州市\"},{\"s\":\"深州市\"}]}]},{\"p\":\"山西省\",\"c\":[{\"n\":\"太原\",\"a\":[{\"s\":\"小店区\"},{\"s\":\"迎泽区\"},{\"s\":\"杏花岭区\"},{\"s\":\"尖草坪区\"},{\"s\":\"万柏林区\"},{\"s\":\"晋源区\"},{\"s\":\"清徐县\"},{\"s\":\"阳曲县\"},{\"s\":\"娄烦县\"},{\"s\":\"古交市\"}]},{\"n\":\"大同\",\"a\":[{\"s\":\"城区\"},{\"s\":\"矿区\"},{\"s\":\"南郊区\"},{\"s\":\"新荣区\"},{\"s\":\"阳高县\"},{\"s\":\"天镇县\"},{\"s\":\"广灵县\"},{\"s\":\"灵丘县\"},{\"s\":\"浑源县\"},{\"s\":\"左云县\"},{\"s\":\"大同县\"}]},{\"n\":\"阳泉\",\"a\":[{\"s\":\"城区\"},{\"s\":\"矿区\"},{\"s\":\"郊区\"},{\"s\":\"平定县\"},{\"s\":\"盂县\"}]},{\"n\":\"长治\",\"a\":[{\"s\":\"城区\"},{\"s\":\"郊区\"},{\"s\":\"长治县\"},{\"s\":\"襄垣县\"},{\"s\":\"屯留县\"},{\"s\":\"平顺县\"},{\"s\":\"黎城县\"},{\"s\":\"壶关县\"},{\"s\":\"长子县\"},{\"s\":\"武乡县\"},{\"s\":\"沁县\"},{\"s\":\"沁源县\"},{\"s\":\"潞城市\"}]},{\"n\":\"晋城\",\"a\":[{\"s\":\"城区\"},{\"s\":\"沁水县\"},{\"s\":\"阳城县\"},{\"s\":\"陵川县\"},{\"s\":\"泽州县\"},{\"s\":\"高平市\"}]},{\"n\":\"朔州\",\"a\":[{\"s\":\"朔城区\"},{\"s\":\"平鲁区\"},{\"s\":\"山阴县\"},{\"s\":\"应县\"},{\"s\":\"右玉县\"},{\"s\":\"怀仁县\"}]},{\"n\":\"晋中\",\"a\":[{\"s\":\"榆次区\"},{\"s\":\"榆社县\"},{\"s\":\"左权县\"},{\"s\":\"和顺县\"},{\"s\":\"昔阳县\"},{\"s\":\"寿阳县\"},{\"s\":\"太谷县\"},{\"s\":\"祁县\"},{\"s\":\"平遥县\"},{\"s\":\"灵石县\"},{\"s\":\"介休市\"}]},{\"n\":\"运城\",\"a\":[{\"s\":\"盐湖区\"},{\"s\":\"临猗县\"},{\"s\":\"万荣县\"},{\"s\":\"闻喜县\"},{\"s\":\"稷山县\"},{\"s\":\"新绛县\"},{\"s\":\"绛县\"},{\"s\":\"垣曲县\"},{\"s\":\"夏县\"},{\"s\":\"平陆县\"},{\"s\":\"芮城县\"},{\"s\":\"永济市\"},{\"s\":\"河津市\"}]},{\"n\":\"忻州\",\"a\":[{\"s\":\"忻府区\"},{\"s\":\"定襄县\"},{\"s\":\"五台县\"},{\"s\":\"代县\"},{\"s\":\"繁峙县\"},{\"s\":\"宁武县\"},{\"s\":\"静乐县\"},{\"s\":\"神池县\"},{\"s\":\"五寨县\"},{\"s\":\"岢岚县\"},{\"s\":\"河曲县\"},{\"s\":\"保德县\"},{\"s\":\"偏关县\"},{\"s\":\"原平市\"}]},{\"n\":\"临汾\",\"a\":[{\"s\":\"尧都区\"},{\"s\":\"曲沃县\"},{\"s\":\"翼城县\"},{\"s\":\"襄汾县\"},{\"s\":\"洪洞县\"},{\"s\":\"古县\"},{\"s\":\"安泽县\"},{\"s\":\"浮山县\"},{\"s\":\"吉县\"},{\"s\":\"乡宁县\"},{\"s\":\"大宁县\"},{\"s\":\"隰县\"},{\"s\":\"永和县\"},{\"s\":\"蒲县\"},{\"s\":\"汾西县\"},{\"s\":\"侯马市\"},{\"s\":\"霍州市\"}]},{\"n\":\"吕梁\",\"a\":[{\"s\":\"离石区\"},{\"s\":\"文水县\"},{\"s\":\"交城县\"},{\"s\":\"兴县\"},{\"s\":\"临县\"},{\"s\":\"柳林县\"},{\"s\":\"石楼县\"},{\"s\":\"岚县\"},{\"s\":\"方山县\"},{\"s\":\"中阳县\"},{\"s\":\"交口县\"},{\"s\":\"孝义市\"},{\"s\":\"汾阳市\"}]}]},{\"p\":\"内蒙古\",\"c\":[{\"n\":\"呼和浩特\",\"a\":[{\"s\":\"新城区\"},{\"s\":\"回民区\"},{\"s\":\"玉泉区\"},{\"s\":\"玉泉区\"},{\"s\":\"赛罕区\"},{\"s\":\"土默特左旗\"},{\"s\":\"托克托县\"},{\"s\":\"和林格尔县\"},{\"s\":\"清水河县\"},{\"s\":\"武川县\"}]},{\"n\":\"包头\",\"a\":[{\"s\":\"东河区\"},{\"s\":\"昆都仑区\"},{\"s\":\"青山区\"},{\"s\":\"石拐区\"},{\"s\":\"白云矿区\"},{\"s\":\"九原区\"},{\"s\":\"土默特右旗\"},{\"s\":\"固阳县\"},{\"s\":\"达尔罕茂明安联合旗\"}]},{\"n\":\"乌海\",\"a\":[{\"s\":\"海勃湾区\"},{\"s\":\"海南区\"},{\"s\":\"乌达区\"}]},{\"n\":\"赤峰\",\"a\":[{\"s\":\"红山区\"},{\"s\":\"元宝山区\"},{\"s\":\"松山区\"},{\"s\":\"阿鲁科尔沁旗\"},{\"s\":\"巴林左旗\"},{\"s\":\"巴林右旗\"},{\"s\":\"林西县\"},{\"s\":\"克什克腾旗\"},{\"s\":\"翁牛特旗\"},{\"s\":\"喀喇沁旗\"},{\"s\":\"宁城县\"},{\"s\":\"敖汉旗\"}]},{\"n\":\"通辽\",\"a\":[{\"s\":\"科尔沁区\"},{\"s\":\"科尔沁左翼中旗\"},{\"s\":\"科尔沁左翼后旗\"},{\"s\":\"开鲁县\"},{\"s\":\"库伦旗\"},{\"s\":\"奈曼旗\"},{\"s\":\"扎鲁特旗\"},{\"s\":\"霍林郭勒市\"}]},{\"n\":\"鄂尔多斯\",\"a\":[{\"s\":\"东胜区\"},{\"s\":\"达拉特旗\"},{\"s\":\"准格尔旗\"},{\"s\":\"鄂托克前旗\"},{\"s\":\"鄂托克旗\"},{\"s\":\"杭锦旗\"},{\"s\":\"乌审旗\"},{\"s\":\"伊金霍洛旗\"}]},{\"n\":\"呼伦贝尔\",\"a\":[{\"s\":\"海拉尔区\"},{\"s\":\"阿荣旗\"},{\"s\":\"莫力达瓦达斡尔族自治旗\"},{\"s\":\"鄂伦春自治旗\"},{\"s\":\"鄂温克族自治旗\"},{\"s\":\"陈巴尔虎旗\"},{\"s\":\"新巴尔虎左旗\"},{\"s\":\"新巴尔虎右旗\"},{\"s\":\"满洲里市\"},{\"s\":\"牙克石市\"},{\"s\":\"扎兰屯市\"},{\"s\":\"额尔古纳市\"},{\"s\":\"根河市\"}]},{\"n\":\"巴彦淖尔\",\"a\":[{\"s\":\"临河区\"},{\"s\":\"五原县\"},{\"s\":\"磴口县\"},{\"s\":\"乌拉特前旗\"},{\"s\":\"乌拉特中旗\"},{\"s\":\"乌拉特后旗\"},{\"s\":\"杭锦后旗\"}]},{\"n\":\"乌兰察布\",\"a\":[{\"s\":\"集宁区\"},{\"s\":\"卓资县\"},{\"s\":\"化德县\"},{\"s\":\"商都县\"},{\"s\":\"兴和县\"},{\"s\":\"凉城县\"},{\"s\":\"察哈尔右翼前旗\"},{\"s\":\"察哈尔右翼中旗\"},{\"s\":\"察哈尔右翼后旗\"},{\"s\":\"四子王旗\"},{\"s\":\"丰镇市\"}]},{\"n\":\"兴安\",\"a\":[{\"s\":\"乌兰浩特市\"},{\"s\":\"阿尔山市\"},{\"s\":\"科尔沁右翼前旗\"},{\"s\":\"科尔沁右翼中旗\"},{\"s\":\"扎赉特旗\"},{\"s\":\"突泉县\"}]},{\"n\":\"锡林郭勒\",\"a\":[{\"s\":\"二连浩特市\"},{\"s\":\"锡林浩特市\"},{\"s\":\"阿巴嘎旗\"},{\"s\":\"苏尼特左旗\"},{\"s\":\"苏尼特右旗\"},{\"s\":\"东乌珠穆沁旗\"},{\"s\":\"西乌珠穆沁旗\"},{\"s\":\"太仆寺旗\"},{\"s\":\"镶黄旗\"},{\"s\":\"正镶白旗\"},{\"s\":\"正蓝旗\"},{\"s\":\"多伦县\"}]},{\"n\":\"阿拉善\",\"a\":[{\"s\":\"阿拉善左旗\"},{\"s\":\"阿拉善右旗\"},{\"s\":\"额济纳旗\"}]}]},{\"p\":\"辽宁省\",\"c\":[{\"n\":\"沈阳\",\"a\":[{\"s\":\"和平区\"},{\"s\":\"沈河区\"},{\"s\":\"大东区\"},{\"s\":\"皇姑区\"},{\"s\":\"铁西区\"},{\"s\":\"苏家屯区\"},{\"s\":\"东陵区\"},{\"s\":\"新城子区\"},{\"s\":\"于洪区\"},{\"s\":\"辽中县\"},{\"s\":\"康平县\"},{\"s\":\"法库县\"},{\"s\":\"新民市\"}]},{\"n\":\"大连\",\"a\":[{\"s\":\"中山区\"},{\"s\":\"西岗区\"},{\"s\":\"沙河口区\"},{\"s\":\"甘井子区\"},{\"s\":\"旅顺口区\"},{\"s\":\"金州区\"},{\"s\":\"长海县\"},{\"s\":\"瓦房店市\"},{\"s\":\"普兰店市\"},{\"s\":\"庄河市\"}]},{\"n\":\"鞍山\",\"a\":[{\"s\":\"铁东区\"},{\"s\":\"铁西区\"},{\"s\":\"立山区\"},{\"s\":\"千山区\"},{\"s\":\"台安县\"},{\"s\":\"210323\"},{\"s\":\"海城市\"}]},{\"n\":\"抚顺\",\"a\":[{\"s\":\"新抚区\"},{\"s\":\"东洲区\"},{\"s\":\"望花区\"},{\"s\":\"顺城区\"},{\"s\":\"抚顺县\"},{\"s\":\"新宾满族自治县\"},{\"s\":\"清原满族自治县\"}]},{\"n\":\"本溪\",\"a\":[{\"s\":\"平山区\"},{\"s\":\"溪湖区\"},{\"s\":\"明山区\"},{\"s\":\"南芬区\"},{\"s\":\"本溪满族自治县\"},{\"s\":\"桓仁满族自治县\"}]},{\"n\":\"丹东\",\"a\":[{\"s\":\"元宝区\"},{\"s\":\"振兴区\"},{\"s\":\"振安区\"},{\"s\":\"宽甸满族自治县\"},{\"s\":\"东港市\"},{\"s\":\"凤城市\"}]},{\"n\":\"锦州\",\"a\":[{\"s\":\"古塔区\"},{\"s\":\"凌河区\"},{\"s\":\"太和区\"},{\"s\":\"黑山县\"},{\"s\":\"义县\"},{\"s\":\"凌海市\"},{\"s\":\"北镇市\"}]},{\"n\":\"营口\",\"a\":[{\"s\":\"站前区\"},{\"s\":\"西市区\"},{\"s\":\"鲅鱼圈区\"},{\"s\":\"老边区\"},{\"s\":\"盖州市\"},{\"s\":\"大石桥市\"}]},{\"n\":\"阜新\",\"a\":[{\"s\":\"海州区\"},{\"s\":\"新邱区\"},{\"s\":\"太平区\"},{\"s\":\"清河门区\"},{\"s\":\"细河区\"},{\"s\":\"阜新蒙古族自治县\"},{\"s\":\"彰武县\"}]},{\"n\":\"辽阳\",\"a\":[{\"s\":\"白塔区\"},{\"s\":\"文圣区\"},{\"s\":\"宏伟区\"},{\"s\":\"弓长岭区\"},{\"s\":\"太子河区\"},{\"s\":\"辽阳县\"},{\"s\":\"灯塔市\"}]},{\"n\":\"盘锦\",\"a\":[{\"s\":\"双台子区\"},{\"s\":\"兴隆台区\"},{\"s\":\"大洼县\"},{\"s\":\"盘山县\"}]},{\"n\":\"铁岭\",\"a\":[{\"s\":\"银州区\"},{\"s\":\"清河区\"},{\"s\":\"铁岭县\"},{\"s\":\"西丰县\"},{\"s\":\"昌图县\"},{\"s\":\"调兵山市\"},{\"s\":\"开原市\"}]},{\"n\":\"朝阳\",\"a\":[{\"s\":\"双塔区\"},{\"s\":\"龙城区\"},{\"s\":\"朝阳县\"},{\"s\":\"建平县\"},{\"s\":\"喀喇沁左翼蒙古族自治县\"},{\"s\":\"北票市\"},{\"s\":\"凌源市\"}]},{\"n\":\"葫芦岛\",\"a\":[{\"s\":\"连山区\"},{\"s\":\"龙港区\"},{\"s\":\"南票区\"},{\"s\":\"绥中县\"},{\"s\":\"建昌县\"},{\"s\":\"兴城市\"}]}]},{\"p\":\"吉林省\",\"c\":[{\"n\":\"长春\",\"a\":[{\"s\":\"南关区\"},{\"s\":\"宽城区\"},{\"s\":\"朝阳区\"},{\"s\":\"二道区\"},{\"s\":\"绿园区\"},{\"s\":\"双阳区\"},{\"s\":\"农安县\"},{\"s\":\"九台市\"},{\"s\":\"榆树市\"},{\"s\":\"德惠市\"}]},{\"n\":\"吉林\",\"a\":[{\"s\":\"昌邑区\"},{\"s\":\"龙潭区\"},{\"s\":\"船营区\"},{\"s\":\"丰满区\"},{\"s\":\"永吉县\"},{\"s\":\"蛟河市\"},{\"s\":\"桦甸市\"},{\"s\":\"舒兰市\"},{\"s\":\"磐石市\"}]},{\"n\":\"四平\",\"a\":[{\"s\":\"铁西区\"},{\"s\":\"铁东区\"},{\"s\":\"梨树县\"},{\"s\":\"伊通满族自治县\"},{\"s\":\"公主岭市\"},{\"s\":\"双辽市\"}]},{\"n\":\"辽源\",\"a\":[{\"s\":\"龙山区\"},{\"s\":\"西安区\"},{\"s\":\"东丰县\"},{\"s\":\"东辽县\"}]},{\"n\":\"通化\",\"a\":[{\"s\":\"东昌区\"},{\"s\":\"二道江区\"},{\"s\":\"通化县\"},{\"s\":\"辉南县\"},{\"s\":\"柳河县\"},{\"s\":\"梅河口市\"},{\"s\":\"集安市\"}]},{\"n\":\"白山\",\"a\":[{\"s\":\"八道江区\"},{\"s\":\"江源区\"},{\"s\":\"抚松县\"},{\"s\":\"靖宇县\"},{\"s\":\"长白朝鲜族自治县\"},{\"s\":\"临江市\"}]},{\"n\":\"松原\",\"a\":[{\"s\":\"宁江区\"},{\"s\":\"前郭尔罗斯蒙古族自治县\"},{\"s\":\"长岭县\"},{\"s\":\"乾安县\"},{\"s\":\"扶余县\"}]},{\"n\":\"白城\",\"a\":[{\"s\":\"洮北区\"},{\"s\":\"镇赉县\"},{\"s\":\"通榆县\"},{\"s\":\"洮南市\"},{\"s\":\"大安市\"}]},{\"n\":\"延边朝鲜族自治州\",\"a\":[{\"s\":\"延吉市\"},{\"s\":\"图们市\"},{\"s\":\"敦化市\"},{\"s\":\"珲春市\"},{\"s\":\"龙井市\"},{\"s\":\"和龙市\"},{\"s\":\"汪清县\"},{\"s\":\"安图县\"}]}]},{\"p\":\"黑龙江省\",\"c\":[{\"n\":\"哈尔滨\",\"a\":[{\"s\":\"道里区\"},{\"s\":\"南岗区\"},{\"s\":\"道外区\"},{\"s\":\"平房区\"},{\"s\":\"松北区\"},{\"s\":\"香坊区\"},{\"s\":\"呼兰区\"},{\"s\":\"阿城区\"},{\"s\":\"依兰县\"},{\"s\":\"方正县\"},{\"s\":\"宾县\"},{\"s\":\"巴彦县\"},{\"s\":\"木兰县\"},{\"s\":\"通河县\"},{\"s\":\"延寿县\"},{\"s\":\"双城市\"},{\"s\":\"尚志市\"},{\"s\":\"五常市\"}]},{\"n\":\"齐齐哈尔\",\"a\":[{\"s\":\"龙沙区\"},{\"s\":\"建华区\"},{\"s\":\"铁锋区\"},{\"s\":\"昂昂溪区\"},{\"s\":\"富拉尔基区\"},{\"s\":\"碾子山区\"},{\"s\":\"梅里斯达斡尔族区\"},{\"s\":\"龙江县\"},{\"s\":\"依安县\"},{\"s\":\"泰来县\"},{\"s\":\"甘南县\"},{\"s\":\"富裕县\"},{\"s\":\"克山县\"},{\"s\":\"克东县\"},{\"s\":\"拜泉县\"},{\"s\":\"讷河市\"}]},{\"n\":\"鸡西\",\"a\":[{\"s\":\"鸡冠区\"},{\"s\":\"恒山区\"},{\"s\":\"滴道区\"},{\"s\":\"梨树区\"},{\"s\":\"城子河区\"},{\"s\":\"麻山区\"},{\"s\":\"鸡东县\"},{\"s\":\"虎林市\"},{\"s\":\"密山市\"}]},{\"n\":\"鹤岗\",\"a\":[{\"s\":\"向阳区\"},{\"s\":\"工农区\"},{\"s\":\"南山区\"},{\"s\":\"兴安区\"},{\"s\":\"东山区\"},{\"s\":\"兴山区\"},{\"s\":\"萝北县\"},{\"s\":\"绥滨县\"}]},{\"n\":\"双鸭山\",\"a\":[{\"s\":\"尖山区\"},{\"s\":\"岭东区\"},{\"s\":\"四方台区\"},{\"s\":\"宝山区\"},{\"s\":\"集贤县\"},{\"s\":\"友谊县\"},{\"s\":\"宝清县\"},{\"s\":\"饶河县\"}]},{\"n\":\"大庆\",\"a\":[{\"s\":\"萨尔图区\"},{\"s\":\"龙凤区\"},{\"s\":\"让胡路区\"},{\"s\":\"红岗区\"},{\"s\":\"大同区\"},{\"s\":\"肇州县\"},{\"s\":\"肇源县\"},{\"s\":\"林甸县\"},{\"s\":\"杜尔伯特蒙古族自治县\"}]},{\"n\":\"伊春\",\"a\":[{\"s\":\"伊春区\"},{\"s\":\"南岔区\"},{\"s\":\"友好区\"},{\"s\":\"西林区\"},{\"s\":\"翠峦区\"},{\"s\":\"新青区\"},{\"s\":\"美溪区\"},{\"s\":\"金山屯区\"},{\"s\":\"五营区\"},{\"s\":\"乌马河区\"},{\"s\":\"汤旺河区\"},{\"s\":\"带岭区\"},{\"s\":\"乌伊岭区\"},{\"s\":\"红星区\"},{\"s\":\"上甘岭区\"},{\"s\":\"嘉荫县\"},{\"s\":\"铁力市\"}]},{\"n\":\"佳木斯\",\"a\":[{\"s\":\"向阳区\"},{\"s\":\"前进区\"},{\"s\":\"东风区\"},{\"s\":\"郊区\"},{\"s\":\"桦南县\"},{\"s\":\"桦川县\"},{\"s\":\"汤原县\"},{\"s\":\"抚远县\"},{\"s\":\"同江市\"},{\"s\":\"富锦市\"}]},{\"n\":\"七台河\",\"a\":[{\"s\":\"新兴区\"},{\"s\":\"桃山区\"},{\"s\":\"茄子河区\"},{\"s\":\"勃利县\"}]},{\"n\":\"牡丹江\",\"a\":[{\"s\":\"东安区\"},{\"s\":\"阳明区\"},{\"s\":\"爱民区\"},{\"s\":\"西安区\"},{\"s\":\"东宁县\"},{\"s\":\"林口县\"},{\"s\":\"绥芬河市\"},{\"s\":\"海林市\"},{\"s\":\"宁安市\"},{\"s\":\"穆棱市\"}]},{\"n\":\"黑河\",\"a\":[{\"s\":\"爱辉区\"},{\"s\":\"嫩江县\"},{\"s\":\"逊克县\"},{\"s\":\"孙吴县\"},{\"s\":\"北安市\"},{\"s\":\"五大连池市\"}]},{\"n\":\"绥化\",\"a\":[{\"s\":\"北林区\"},{\"s\":\"望奎县\"},{\"s\":\"兰西县\"},{\"s\":\"青冈县\"},{\"s\":\"庆安县\"},{\"s\":\"明水县\"},{\"s\":\"绥棱县\"},{\"s\":\"安达市\"},{\"s\":\"肇东市\"},{\"s\":\"海伦市\"}]},{\"n\":\"大兴安岭\",\"a\":[{\"s\":\"加格达奇区\"},{\"s\":\"松岭区\"},{\"s\":\"新林区\"},{\"s\":\"呼中区\"},{\"s\":\"呼玛县\"},{\"s\":\"塔河县\"},{\"s\":\"漠河县\"}]}]},{\"p\":\"上海市\",\"c\":[{\"n\":\"黄浦区\"},{\"n\":\"卢湾区\"},{\"n\":\"徐汇区\"},{\"n\":\"长宁区\"},{\"n\":\"静安区\"},{\"n\":\"普陀区\"},{\"n\":\"闸北区\"},{\"n\":\"虹口区\"},{\"n\":\"杨浦区\"},{\"n\":\"闵行区\"},{\"n\":\"宝山区\"},{\"n\":\"嘉定区\"},{\"n\":\"浦东新区\"},{\"n\":\"金山区\"},{\"n\":\"松江区\"},{\"n\":\"奉贤区\"},{\"n\":\"青浦区\"},{\"n\":\"崇明县\"}]},{\"p\":\"江苏省\",\"c\":[{\"n\":\"南京\",\"a\":[{\"s\":\"玄武区\"},{\"s\":\"白下区\"},{\"s\":\"秦淮区\"},{\"s\":\"建邺区\"},{\"s\":\"鼓楼区\"},{\"s\":\"下关区\"},{\"s\":\"浦口区\"},{\"s\":\"栖霞区\"},{\"s\":\"雨花台区\"},{\"s\":\"江宁区\"},{\"s\":\"六合区\"},{\"s\":\"溧水县\"},{\"s\":\"高淳县\"}]},{\"n\":\"无锡\",\"a\":[{\"s\":\"崇安区\"},{\"s\":\"南长区\"},{\"s\":\"北塘区\"},{\"s\":\"锡山区\"},{\"s\":\"惠山区\"},{\"s\":\"滨湖区\"},{\"s\":\"江阴市\"},{\"s\":\"宜兴市\"}]},{\"n\":\"徐州\",\"a\":[{\"s\":\"鼓楼区\"},{\"s\":\"云龙区\"},{\"s\":\"九里区\"},{\"s\":\"贾汪区\"},{\"s\":\"泉山区\"},{\"s\":\"丰县\"},{\"s\":\"沛县\"},{\"s\":\"铜山县\"},{\"s\":\"睢宁县\"},{\"s\":\"新沂市\"},{\"s\":\"邳州市\"}]},{\"n\":\"常州\",\"a\":[{\"s\":\"天宁区\"},{\"s\":\"钟楼区\"},{\"s\":\"戚墅堰区\"},{\"s\":\"新北区\"},{\"s\":\"武进区\"},{\"s\":\"溧阳市\"},{\"s\":\"金坛市\"}]},{\"n\":\"苏州\",\"a\":[{\"s\":\"沧浪区\"},{\"s\":\"平江区\"},{\"s\":\"金阊区\"},{\"s\":\"虎丘区\"},{\"s\":\"吴中区\"},{\"s\":\"相城区\"},{\"s\":\"常熟市\"},{\"s\":\"张家港市\"},{\"s\":\"昆山市\"},{\"s\":\"吴江市\"},{\"s\":\"太仓市\"}]},{\"n\":\"南通\",\"a\":[{\"s\":\"崇川区\"},{\"s\":\"港闸区\"},{\"s\":\"海安县\"},{\"s\":\"如东县\"},{\"s\":\"启东市\"},{\"s\":\"如皋市\"},{\"s\":\"通州市\"},{\"s\":\"海门市\"}]},{\"n\":\"连云港\",\"a\":[{\"s\":\"连云区\"},{\"s\":\"新浦区\"},{\"s\":\"海州区\"},{\"s\":\"赣榆县\"},{\"s\":\"东海县\"},{\"s\":\"灌云县\"},{\"s\":\"灌南县\"}]},{\"n\":\"淮安\",\"a\":[{\"s\":\"清河区\"},{\"s\":\"楚州区\"},{\"s\":\"淮阴区\"},{\"s\":\"清浦区\"},{\"s\":\"涟水县\"},{\"s\":\"洪泽县\"},{\"s\":\"盱眙县\"},{\"s\":\"金湖县\"}]},{\"n\":\"盐城\",\"a\":[{\"s\":\"亭湖区\"},{\"s\":\"盐都区\"},{\"s\":\"响水县\"},{\"s\":\"滨海县\"},{\"s\":\"阜宁县\"},{\"s\":\"射阳县\"},{\"s\":\"建湖县\"},{\"s\":\"东台市\"},{\"s\":\"大丰市\"}]},{\"n\":\"扬州\",\"a\":[{\"s\":\"广陵区\"},{\"s\":\"邗江区\"},{\"s\":\"维扬区\"},{\"s\":\"宝应县\"},{\"s\":\"仪征市\"},{\"s\":\"高邮市\"},{\"s\":\"江都市\"}]},{\"n\":\"镇江\",\"a\":[{\"s\":\"京口区\"},{\"s\":\"润州区\"},{\"s\":\"丹徒区\"},{\"s\":\"丹阳市\"},{\"s\":\"扬中市\"},{\"s\":\"句容市\"}]},{\"n\":\"泰州\",\"a\":[{\"s\":\"海陵区\"},{\"s\":\"高港区\"},{\"s\":\"兴化市\"},{\"s\":\"靖江市\"},{\"s\":\"泰兴市\"},{\"s\":\"姜堰市\"}]},{\"n\":\"宿迁\",\"a\":[{\"s\":\"宿城区\"},{\"s\":\"宿豫区\"},{\"s\":\"沭阳县\"},{\"s\":\"泗阳县\"},{\"s\":\"泗洪县\"}]}]},{\"p\":\"浙江省\",\"c\":[{\"n\":\"杭州\",\"a\":[{\"s\":\"上城区\"},{\"s\":\"下城区\"},{\"s\":\"江干区\"},{\"s\":\"拱墅区\"},{\"s\":\"西湖区\"},{\"s\":\"滨江区\"},{\"s\":\"萧山区\"},{\"s\":\"余杭区\"},{\"s\":\"桐庐县\"},{\"s\":\"淳安县\"},{\"s\":\"建德市\"},{\"s\":\"富阳市\"},{\"s\":\"临安市\"}]},{\"n\":\"宁波\",\"a\":[{\"s\":\"海曙区\"},{\"s\":\"江东区\"},{\"s\":\"江北区\"},{\"s\":\"北仑区\"},{\"s\":\"镇海区\"},{\"s\":\"鄞州区\"},{\"s\":\"象山县\"},{\"s\":\"宁海县\"},{\"s\":\"余姚市\"},{\"s\":\"慈溪市\"},{\"s\":\"奉化市\"}]},{\"n\":\"温州\",\"a\":[{\"s\":\"鹿城区\"},{\"s\":\"龙湾区\"},{\"s\":\"瓯海区\"},{\"s\":\"洞头县\"},{\"s\":\"永嘉县\"},{\"s\":\"平阳县\"},{\"s\":\"苍南县\"},{\"s\":\"文成县\"},{\"s\":\"泰顺县\"},{\"s\":\"瑞安市\"},{\"s\":\"乐清市\"}]},{\"n\":\"嘉兴\",\"a\":[{\"s\":\"南湖区\"},{\"s\":\"秀洲区\"},{\"s\":\"嘉善县\"},{\"s\":\"海盐县\"},{\"s\":\"海宁市\"},{\"s\":\"平湖市\"},{\"s\":\"桐乡市\"}]},{\"n\":\"湖州\",\"a\":[{\"s\":\"吴兴区\"},{\"s\":\"南浔区\"},{\"s\":\"德清县\"},{\"s\":\"长兴县\"},{\"s\":\"安吉县\"}]},{\"n\":\"绍兴\",\"a\":[{\"s\":\"越城区\"},{\"s\":\"绍兴县\"},{\"s\":\"新昌县\"},{\"s\":\"诸暨市\"},{\"s\":\"上虞市\"},{\"s\":\"嵊州市\"}]},{\"n\":\"金华\",\"a\":[{\"s\":\"婺城区\"},{\"s\":\"金东区\"},{\"s\":\"武义县\"},{\"s\":\"浦江县\"},{\"s\":\"磐安县\"},{\"s\":\"兰溪市\"},{\"s\":\"义乌市\"},{\"s\":\"东阳市\"},{\"s\":\"永康市\"}]},{\"n\":\"衢州\",\"a\":[{\"s\":\"柯城区\"},{\"s\":\"衢江区\"},{\"s\":\"常山县\"},{\"s\":\"开化县\"},{\"s\":\"龙游县\"},{\"s\":\"江山市\"}]},{\"n\":\"舟山\",\"a\":[{\"s\":\"定海区\"},{\"s\":\"普陀区\"},{\"s\":\"岱山县\"},{\"s\":\"嵊泗县\"}]},{\"n\":\"台州\",\"a\":[{\"s\":\"椒江区\"},{\"s\":\"黄岩区\"},{\"s\":\"路桥区\"},{\"s\":\"玉环县\"},{\"s\":\"三门县\"},{\"s\":\"天台县\"},{\"s\":\"仙居县\"},{\"s\":\"温岭市\"},{\"s\":\"临海市\"}]},{\"n\":\"丽水\",\"a\":[{\"s\":\"莲都区\"},{\"s\":\"青田县\"},{\"s\":\"缙云县\"},{\"s\":\"遂昌县\"},{\"s\":\"松阳县\"},{\"s\":\"云和县\"},{\"s\":\"庆元县\"},{\"s\":\"景宁畲族自治县\"},{\"s\":\"龙泉市\"}]}]},{\"p\":\"安徽省\",\"c\":[{\"n\":\"合肥\",\"a\":[{\"s\":\"瑶海区\"},{\"s\":\"庐阳区\"},{\"s\":\"蜀山区\"},{\"s\":\"包河区\"},{\"s\":\"巢湖市\"},{\"s\":\"长丰县\"},{\"s\":\"肥东县\"},{\"s\":\"肥西县\"},{\"s\":\"庐江县\"}]},{\"n\":\"芜湖\",\"a\":[{\"s\":\"镜湖区\"},{\"s\":\"弋江区\"},{\"s\":\"鸠江区\"},{\"s\":\"三山区\"},{\"s\":\"芜湖县\"},{\"s\":\"繁昌县\"},{\"s\":\"南陵县\"},{\"s\":\"无为市\"}]},{\"n\":\"蚌埠\",\"a\":[{\"s\":\"龙子湖区\"},{\"s\":\"蚌山区\"},{\"s\":\"禹会区\"},{\"s\":\"淮上区\"},{\"s\":\"怀远县\"},{\"s\":\"五河县\"},{\"s\":\"固镇县\"}]},{\"n\":\"淮南\",\"a\":[{\"s\":\"大通区\"},{\"s\":\"田家庵区\"},{\"s\":\"谢家集区\"},{\"s\":\"八公山区\"},{\"s\":\"潘集区\"},{\"s\":\"凤台县\"}]},{\"n\":\"马鞍山\",\"a\":[{\"s\":\"金家庄区\"},{\"s\":\"花山区\"},{\"s\":\"雨山区\"},{\"s\":\"当涂县\"},{\"s\":\"含山县\"},{\"s\":\"和县\"}]},{\"n\":\"淮北\",\"a\":[{\"s\":\"杜集区\"},{\"s\":\"相山区\"},{\"s\":\"烈山区\"},{\"s\":\"濉溪县\"}]},{\"n\":\"铜陵\",\"a\":[{\"s\":\"铜官山区\"},{\"s\":\"狮子山区\"},{\"s\":\"郊区\"},{\"s\":\"铜陵县\"}]},{\"n\":\"安庆\",\"a\":[{\"s\":\"迎江区\"},{\"s\":\"大观区\"},{\"s\":\"宜秀区\"},{\"s\":\"怀宁县\"},{\"s\":\"枞阳县\"},{\"s\":\"潜山市\"},{\"s\":\"太湖县\"},{\"s\":\"宿松县\"},{\"s\":\"望江县\"},{\"s\":\"岳西县\"},{\"s\":\"桐城市\"}]},{\"n\":\"黄山\",\"a\":[{\"s\":\"屯溪区\"},{\"s\":\"黄山区\"},{\"s\":\"徽州区\"},{\"s\":\"歙县\"},{\"s\":\"休宁县\"},{\"s\":\"黟县\"},{\"s\":\"祁门县\"}]},{\"n\":\"滁州\",\"a\":[{\"s\":\"琅琊区\"},{\"s\":\"南谯区\"},{\"s\":\"来安县\"},{\"s\":\"全椒县\"},{\"s\":\"定远县\"},{\"s\":\"凤阳县\"},{\"s\":\"天长市\"},{\"s\":\"明光市\"}]},{\"n\":\"阜阳\",\"a\":[{\"s\":\"颍州区\"},{\"s\":\"颍东区\"},{\"s\":\"颍泉区\"},{\"s\":\"临泉县\"},{\"s\":\"太和县\"},{\"s\":\"阜南县\"},{\"s\":\"颍上县\"},{\"s\":\"界首市\"}]},{\"n\":\"宿州\",\"a\":[{\"s\":\"埇桥区\"},{\"s\":\"砀山县\"},{\"s\":\"萧县\"},{\"s\":\"灵璧县\"},{\"s\":\"泗县\"}]},{\"n\":\"六安\",\"a\":[{\"s\":\"金安区\"},{\"s\":\"裕安区\"},{\"s\":\"寿县\"},{\"s\":\"霍邱县\"},{\"s\":\"舒城县\"},{\"s\":\"金寨县\"},{\"s\":\"霍山县\"}]},{\"n\":\"亳州\",\"a\":[{\"s\":\"谯城区\"},{\"s\":\"涡阳县\"},{\"s\":\"蒙城县\"},{\"s\":\"利辛县\"}]},{\"n\":\"池州\",\"a\":[{\"s\":\"贵池区\"},{\"s\":\"东至县\"},{\"s\":\"石台县\"},{\"s\":\"青阳县\"}]},{\"n\":\"宣城\",\"a\":[{\"s\":\"宣州区\"},{\"s\":\"郎溪县\"},{\"s\":\"广德县\"},{\"s\":\"泾县\"},{\"s\":\"绩溪县\"},{\"s\":\"旌德县\"},{\"s\":\"宁国市\"}]}]},{\"p\":\"福建省\",\"c\":[{\"n\":\"福州\",\"a\":[{\"s\":\"鼓楼区\"},{\"s\":\"台江区\"},{\"s\":\"仓山区\"},{\"s\":\"马尾区\"},{\"s\":\"晋安区\"},{\"s\":\"闽侯县\"},{\"s\":\"连江县\"},{\"s\":\"罗源县\"},{\"s\":\"闽清县\"},{\"s\":\"永泰县\"},{\"s\":\"平潭县\"},{\"s\":\"福清市\"},{\"s\":\"长乐市\"}]},{\"n\":\"厦门\",\"a\":[{\"s\":\"思明区\"},{\"s\":\"海沧区\"},{\"s\":\"湖里区\"},{\"s\":\"集美区\"},{\"s\":\"同安区\"},{\"s\":\"翔安区\"}]},{\"n\":\"莆田\",\"a\":[{\"s\":\"城厢区\"},{\"s\":\"涵江区\"},{\"s\":\"荔城区\"},{\"s\":\"秀屿区\"},{\"s\":\"仙游县\"}]},{\"n\":\"三明\",\"a\":[{\"s\":\"梅列区\"},{\"s\":\"三元区\"},{\"s\":\"明溪县\"},{\"s\":\"清流县\"},{\"s\":\"宁化县\"},{\"s\":\"大田县\"},{\"s\":\"尤溪县\"},{\"s\":\"沙县\"},{\"s\":\"将乐县\"},{\"s\":\"泰宁县\"},{\"s\":\"建宁县\"},{\"s\":\"永安市\"}]},{\"n\":\"泉州\",\"a\":[{\"s\":\"鲤城区\"},{\"s\":\"丰泽区\"},{\"s\":\"洛江区\"},{\"s\":\"泉港区\"},{\"s\":\"惠安县\"},{\"s\":\"安溪县\"},{\"s\":\"永春县\"},{\"s\":\"德化县\"},{\"s\":\"金门县\"},{\"s\":\"石狮市\"},{\"s\":\"晋江市\"},{\"s\":\"南安市\"}]},{\"n\":\"漳州\",\"a\":[{\"s\":\"芗城区\"},{\"s\":\"龙文区\"},{\"s\":\"云霄县\"},{\"s\":\"漳浦县\"},{\"s\":\"诏安县\"},{\"s\":\"长泰县\"},{\"s\":\"东山县\"},{\"s\":\"南靖县\"},{\"s\":\"平和县\"},{\"s\":\"华安县\"},{\"s\":\"龙海市\"}]},{\"n\":\"南平\",\"a\":[{\"s\":\"延平区\"},{\"s\":\"顺昌县\"},{\"s\":\"浦城县\"},{\"s\":\"光泽县\"},{\"s\":\"松溪县\"},{\"s\":\"政和县\"},{\"s\":\"邵武市\"},{\"s\":\"武夷山市\"},{\"s\":\"建瓯市\"},{\"s\":\"建阳市\"}]},{\"n\":\"龙岩\",\"a\":[{\"s\":\"新罗区\"},{\"s\":\"长汀县\"},{\"s\":\"永定县\"},{\"s\":\"上杭县\"},{\"s\":\"武平县\"},{\"s\":\"连城县\"},{\"s\":\"漳平市\"}]},{\"n\":\"宁德\",\"a\":[{\"s\":\"蕉城区\"},{\"s\":\"霞浦县\"},{\"s\":\"古田县\"},{\"s\":\"屏南县\"},{\"s\":\"寿宁县\"},{\"s\":\"周宁县\"},{\"s\":\"柘荣县\"},{\"s\":\"福安市\"},{\"s\":\"福鼎市\"}]}]},{\"p\":\"江西省\",\"c\":[{\"n\":\"南昌\",\"a\":[{\"s\":\"东湖区\"},{\"s\":\"西湖区\"},{\"s\":\"青云谱区\"},{\"s\":\"湾里区\"},{\"s\":\"青山湖区\"},{\"s\":\"南昌县\"},{\"s\":\"新建县\"},{\"s\":\"安义县\"},{\"s\":\"进贤县\"}]},{\"n\":\"景德镇\",\"a\":[{\"s\":\"昌江区\"},{\"s\":\"珠山区\"},{\"s\":\"浮梁县\"},{\"s\":\"乐平市\"}]},{\"n\":\"萍乡\",\"a\":[{\"s\":\"安源区\"},{\"s\":\"湘东区\"},{\"s\":\"莲花县\"},{\"s\":\"上栗县\"},{\"s\":\"芦溪县\"}]},{\"n\":\"九江\",\"a\":[{\"s\":\"庐山区\"},{\"s\":\"浔阳区\"},{\"s\":\"九江县\"},{\"s\":\"武宁县\"},{\"s\":\"修水县\"},{\"s\":\"永修县\"},{\"s\":\"德安县\"},{\"s\":\"星子县\"},{\"s\":\"都昌县\"},{\"s\":\"湖口县\"},{\"s\":\"彭泽县\"},{\"s\":\"瑞昌市\"}]},{\"n\":\"新余\",\"a\":[{\"s\":\"渝水区\"},{\"s\":\"分宜县\"}]},{\"n\":\"鹰潭\",\"a\":[{\"s\":\"月湖区\"},{\"s\":\"余江县\"},{\"s\":\"贵溪市\"}]},{\"n\":\"赣州\",\"a\":[{\"s\":\"章贡区\"},{\"s\":\"赣县\"},{\"s\":\"信丰县\"},{\"s\":\"大余县\"},{\"s\":\"上犹县\"},{\"s\":\"崇义县\"},{\"s\":\"安远县\"},{\"s\":\"龙南县\"},{\"s\":\"定南县\"},{\"s\":\"全南县\"},{\"s\":\"宁都县\"},{\"s\":\"于都县\"},{\"s\":\"兴国县\"},{\"s\":\"会昌县\"},{\"s\":\"寻乌县\"},{\"s\":\"石城县\"},{\"s\":\"瑞金市\"},{\"s\":\"南康市\"}]},{\"n\":\"吉安\",\"a\":[{\"s\":\"吉州区\"},{\"s\":\"青原区\"},{\"s\":\"吉安县\"},{\"s\":\"吉水县\"},{\"s\":\"峡江县\"},{\"s\":\"新干县\"},{\"s\":\"永丰县\"},{\"s\":\"泰和县\"},{\"s\":\"遂川县\"},{\"s\":\"万安县\"},{\"s\":\"安福县\"},{\"s\":\"永新县\"},{\"s\":\"井冈山市\"}]},{\"n\":\"宜春\",\"a\":[{\"s\":\"袁州区\"},{\"s\":\"奉新县\"},{\"s\":\"万载县\"},{\"s\":\"上高县\"},{\"s\":\"宜丰县\"},{\"s\":\"靖安县\"},{\"s\":\"铜鼓县\"},{\"s\":\"丰城市\"},{\"s\":\"樟树市\"},{\"s\":\"高安市\"}]},{\"n\":\"抚州\",\"a\":[{\"s\":\"临川区\"},{\"s\":\"南城县\"},{\"s\":\"黎川县\"},{\"s\":\"南丰县\"},{\"s\":\"崇仁县\"},{\"s\":\"乐安县\"},{\"s\":\"宜黄县\"},{\"s\":\"金溪县\"},{\"s\":\"资溪县\"},{\"s\":\"东乡县\"},{\"s\":\"广昌县\"}]},{\"n\":\"上饶\",\"a\":[{\"s\":\"信州区\"},{\"s\":\"上饶县\"},{\"s\":\"广丰县\"},{\"s\":\"玉山县\"},{\"s\":\"铅山县\"},{\"s\":\"横峰县\"},{\"s\":\"弋阳县\"},{\"s\":\"余干县\"},{\"s\":\"鄱阳县\"},{\"s\":\"万年县\"},{\"s\":\"婺源县\"},{\"s\":\"德兴市\"}]}]},{\"p\":\"山东省\",\"c\":[{\"n\":\"济南\",\"a\":[{\"s\":\"历下区\"},{\"s\":\"市中区\"},{\"s\":\"槐荫区\"},{\"s\":\"天桥区\"},{\"s\":\"历城区\"},{\"s\":\"长清区\"},{\"s\":\"平阴县\"},{\"s\":\"济阳县\"},{\"s\":\"商河县\"},{\"s\":\"章丘市\"}]},{\"n\":\"青岛\",\"a\":[{\"s\":\"市南区\"},{\"s\":\"市北区\"},{\"s\":\"四方区\"},{\"s\":\"黄岛区\"},{\"s\":\"崂山区\"},{\"s\":\"李沧区\"},{\"s\":\"城阳区\"},{\"s\":\"胶州市\"},{\"s\":\"即墨市\"},{\"s\":\"平度市\"},{\"s\":\"胶南市\"},{\"s\":\"莱西市\"}]},{\"n\":\"淄博\",\"a\":[{\"s\":\"淄川区\"},{\"s\":\"张店区\"},{\"s\":\"博山区\"},{\"s\":\"临淄区\"},{\"s\":\"周村区\"},{\"s\":\"桓台县\"},{\"s\":\"高青县\"},{\"s\":\"沂源县\"}]},{\"n\":\"枣庄\",\"a\":[{\"s\":\"市中区\"},{\"s\":\"薛城区\"},{\"s\":\"峄城区\"},{\"s\":\"台儿庄区\"},{\"s\":\"山亭区\"},{\"s\":\"滕州市\"}]},{\"n\":\"东营\",\"a\":[{\"s\":\"东营区\"},{\"s\":\"河口区\"},{\"s\":\"垦利县\"},{\"s\":\"利津县\"},{\"s\":\"广饶县\"}]},{\"n\":\"烟台\",\"a\":[{\"s\":\"芝罘区\"},{\"s\":\"福山区\"},{\"s\":\"牟平区\"},{\"s\":\"莱山区\"},{\"s\":\"长岛县\"},{\"s\":\"龙口市\"},{\"s\":\"莱阳市\"},{\"s\":\"莱州市\"},{\"s\":\"蓬莱市\"},{\"s\":\"招远市\"},{\"s\":\"栖霞市\"},{\"s\":\"海阳市\"}]},{\"n\":\"潍坊\",\"a\":[{\"s\":\"潍城区\"},{\"s\":\"寒亭区\"},{\"s\":\"坊子区\"},{\"s\":\"奎文区\"},{\"s\":\"临朐县\"},{\"s\":\"昌乐县\"},{\"s\":\"青州市\"},{\"s\":\"诸城市\"},{\"s\":\"寿光市\"},{\"s\":\"安丘市\"},{\"s\":\"高密市\"},{\"s\":\"昌邑市\"}]},{\"n\":\"济宁\",\"a\":[{\"s\":\"市中区\"},{\"s\":\"任城区\"},{\"s\":\"微山县\"},{\"s\":\"鱼台县\"},{\"s\":\"金乡县\"},{\"s\":\"嘉祥县\"},{\"s\":\"汶上县\"},{\"s\":\"泗水县\"},{\"s\":\"梁山县\"},{\"s\":\"曲阜市\"},{\"s\":\"兖州市\"},{\"s\":\"邹城市\"}]},{\"n\":\"泰安\",\"a\":[{\"s\":\"泰山区\"},{\"s\":\"岱岳区\"},{\"s\":\"宁阳县\"},{\"s\":\"东平县\"},{\"s\":\"新泰市\"},{\"s\":\"肥城市\"}]},{\"n\":\"威海\",\"a\":[{\"s\":\"环翠区\"},{\"s\":\"文登市\"},{\"s\":\"荣成市\"},{\"s\":\"乳山市\"}]},{\"n\":\"日照\",\"a\":[{\"s\":\"东港区\"},{\"s\":\"岚山区\"},{\"s\":\"五莲县\"},{\"s\":\"莒县\"}]},{\"n\":\"莱芜\",\"a\":[{\"s\":\"莱城区\"},{\"s\":\"钢城区\"}]},{\"n\":\"临沂\",\"a\":[{\"s\":\"兰山区\"},{\"s\":\"罗庄区\"},{\"s\":\"河东区\"},{\"s\":\"沂南县\"},{\"s\":\"郯城县\"},{\"s\":\"沂水县\"},{\"s\":\"苍山县\"},{\"s\":\"费县\"},{\"s\":\"平邑县\"},{\"s\":\"莒南县\"},{\"s\":\"蒙阴县\"},{\"s\":\"临沭县\"}]},{\"n\":\"德州\",\"a\":[{\"s\":\"德城区\"},{\"s\":\"陵县\"},{\"s\":\"宁津县\"},{\"s\":\"庆云县\"},{\"s\":\"临邑县\"},{\"s\":\"齐河县\"},{\"s\":\"平原县\"},{\"s\":\"夏津县\"},{\"s\":\"武城县\"},{\"s\":\"乐陵市\"},{\"s\":\"禹城市\"}]},{\"n\":\"聊城\",\"a\":[{\"s\":\"东昌府区\"},{\"s\":\"阳谷县\"},{\"s\":\"莘县\"},{\"s\":\"茌平县\"},{\"s\":\"东阿县\"},{\"s\":\"冠县\"},{\"s\":\"高唐县\"},{\"s\":\"临清市\"}]},{\"n\":\"滨州\",\"a\":[{\"s\":\"滨城区\"},{\"s\":\"惠民县\"},{\"s\":\"阳信县\"},{\"s\":\"无棣县\"},{\"s\":\"沾化县\"},{\"s\":\"博兴县\"},{\"s\":\"邹平县\"}]},{\"n\":\"菏泽\",\"a\":[{\"s\":\"牡丹区\"},{\"s\":\"曹县\"},{\"s\":\"单县\"},{\"s\":\"成武县\"},{\"s\":\"巨野县\"},{\"s\":\"郓城县\"},{\"s\":\"鄄城县\"},{\"s\":\"定陶县\"},{\"s\":\"东明县\"}]}]},{\"p\":\"河南省\",\"c\":[{\"n\":\"郑州\",\"a\":[{\"s\":\"中原区\"},{\"s\":\"二七区\"},{\"s\":\"管城回族区\"},{\"s\":\"金水区\"},{\"s\":\"上街区\"},{\"s\":\"惠济区\"},{\"s\":\"中牟县\"},{\"s\":\"巩义市\"},{\"s\":\"荥阳市\"},{\"s\":\"新密市\"},{\"s\":\"新郑市\"},{\"s\":\"登封市\"}]},{\"n\":\"开封\",\"a\":[{\"s\":\"龙亭区\"},{\"s\":\"顺河回族区\"},{\"s\":\"鼓楼区\"},{\"s\":\"禹王台区\"},{\"s\":\"金明区\"},{\"s\":\"杞县\"},{\"s\":\"通许县\"},{\"s\":\"尉氏县\"},{\"s\":\"开封县\"},{\"s\":\"兰考县\"}]},{\"n\":\"洛阳\",\"a\":[{\"s\":\"老城区\"},{\"s\":\"西工区\"},{\"s\":\"廛河回族区\"},{\"s\":\"涧西区\"},{\"s\":\"吉利区\"},{\"s\":\"洛龙区\"},{\"s\":\"孟津县\"},{\"s\":\"新安县\"},{\"s\":\"栾川县\"},{\"s\":\"嵩县\"},{\"s\":\"汝阳县\"},{\"s\":\"宜阳县\"},{\"s\":\"洛宁县\"},{\"s\":\"伊川县\"},{\"s\":\"偃师市\"}]},{\"n\":\"平顶山\",\"a\":[{\"s\":\"新华区\"},{\"s\":\"卫东区\"},{\"s\":\"石龙区\"},{\"s\":\"湛河区\"},{\"s\":\"宝丰县\"},{\"s\":\"叶县\"},{\"s\":\"鲁山县\"},{\"s\":\"郏县\"},{\"s\":\"舞钢市\"},{\"s\":\"汝州市\"}]},{\"n\":\"安阳\",\"a\":[{\"s\":\"文峰区\"},{\"s\":\"北关区\"},{\"s\":\"殷都区\"},{\"s\":\"龙安区\"},{\"s\":\"安阳县\"},{\"s\":\"汤阴县\"},{\"s\":\"滑县\"},{\"s\":\"内黄县\"},{\"s\":\"林州市\"}]},{\"n\":\"鹤壁\",\"a\":[{\"s\":\"鹤山区\"},{\"s\":\"山城区\"},{\"s\":\"淇滨区\"},{\"s\":\"浚县\"},{\"s\":\"淇县\"}]},{\"n\":\"新乡\",\"a\":[{\"s\":\"红旗区\"},{\"s\":\"卫滨区\"},{\"s\":\"凤泉区\"},{\"s\":\"牧野区\"},{\"s\":\"新乡县\"},{\"s\":\"获嘉县\"},{\"s\":\"原阳县\"},{\"s\":\"延津县\"},{\"s\":\"封丘县\"},{\"s\":\"长垣县\"},{\"s\":\"卫辉市\"},{\"s\":\"辉县市\"}]},{\"n\":\"焦作\",\"a\":[{\"s\":\"解放区\"},{\"s\":\"中站区\"},{\"s\":\"马村区\"},{\"s\":\"山阳区\"},{\"s\":\"修武县\"},{\"s\":\"博爱县\"},{\"s\":\"武陟县\"},{\"s\":\"温县\"},{\"s\":\"沁阳市\"},{\"s\":\"孟州市\"}]},{\"n\":\"濮阳\",\"a\":[{\"s\":\"华龙区\"},{\"s\":\"清丰县\"},{\"s\":\"南乐县\"},{\"s\":\"范县\"},{\"s\":\"台前县\"},{\"s\":\"濮阳县\"}]},{\"n\":\"许昌\",\"a\":[{\"s\":\"魏都区\"},{\"s\":\"许昌县\"},{\"s\":\"鄢陵县\"},{\"s\":\"襄城县\"},{\"s\":\"禹州市\"},{\"s\":\"长葛市\"}]},{\"n\":\"漯河\",\"a\":[{\"s\":\"源汇区\"},{\"s\":\"郾城区\"},{\"s\":\"召陵区\"},{\"s\":\"舞阳县\"},{\"s\":\"临颍县\"}]},{\"n\":\"三门峡\",\"a\":[{\"s\":\"湖滨区\"},{\"s\":\"渑池县\"},{\"s\":\"陕县\"},{\"s\":\"卢氏县\"},{\"s\":\"义马市\"},{\"s\":\"灵宝市\"}]},{\"n\":\"南阳\",\"a\":[{\"s\":\"宛城区\"},{\"s\":\"卧龙区\"},{\"s\":\"南召县\"},{\"s\":\"方城县\"},{\"s\":\"西峡县\"},{\"s\":\"镇平县\"},{\"s\":\"内乡县\"},{\"s\":\"淅川县\"},{\"s\":\"社旗县\"},{\"s\":\"唐河县\"},{\"s\":\"新野县\"},{\"s\":\"桐柏县\"},{\"s\":\"邓州市\"}]},{\"n\":\"商丘\",\"a\":[{\"s\":\"梁园区\"},{\"s\":\"睢阳区\"},{\"s\":\"民权县\"},{\"s\":\"睢县\"},{\"s\":\"宁陵县\"},{\"s\":\"柘城县\"},{\"s\":\"虞城县\"},{\"s\":\"夏邑县\"},{\"s\":\"永城市\"}]},{\"n\":\"信阳\",\"a\":[{\"s\":\"浉河区\"},{\"s\":\"平桥区\"},{\"s\":\"罗山县\"},{\"s\":\"光山县\"},{\"s\":\"新县\"},{\"s\":\"商城县\"},{\"s\":\"固始县\"},{\"s\":\"潢川县\"},{\"s\":\"淮滨县\"},{\"s\":\"息县\"}]},{\"n\":\"周口\",\"a\":[{\"s\":\"川汇区\"},{\"s\":\"扶沟县\"},{\"s\":\"西华县\"},{\"s\":\"商水县\"},{\"s\":\"沈丘县\"},{\"s\":\"郸城县\"},{\"s\":\"淮阳县\"},{\"s\":\"太康县\"},{\"s\":\"鹿邑县\"},{\"s\":\"项城市\"}]},{\"n\":\"驻马店\",\"a\":[{\"s\":\"驿城区\"},{\"s\":\"西平县\"},{\"s\":\"上蔡县\"},{\"s\":\"平舆县\"},{\"s\":\"正阳县\"},{\"s\":\"确山县\"},{\"s\":\"泌阳县\"},{\"s\":\"汝南县\"},{\"s\":\"遂平县\"},{\"s\":\"新蔡县\"}]},{\"n\":\"济源\",\"a\":[{\"s\":\"济源\"}]}]},{\"p\":\"湖北省\",\"c\":[{\"n\":\"武汉\",\"a\":[{\"s\":\"江岸区\"},{\"s\":\"江汉区\"},{\"s\":\"硚口区\"},{\"s\":\"汉阳区\"},{\"s\":\"武昌区\"},{\"s\":\"青山区\"},{\"s\":\"洪山区\"},{\"s\":\"东西湖区\"},{\"s\":\"汉南区\"},{\"s\":\"蔡甸区\"},{\"s\":\"江夏区\"},{\"s\":\"黄陂区\"},{\"s\":\"新洲区\"}]},{\"n\":\"黄石\",\"a\":[{\"s\":\"黄石港区\"},{\"s\":\"西塞山区\"},{\"s\":\"下陆区\"},{\"s\":\"铁山区\"},{\"s\":\"阳新县\"},{\"s\":\"大冶市\"}]},{\"n\":\"十堰\",\"a\":[{\"s\":\"茅箭区\"},{\"s\":\"张湾区\"},{\"s\":\"郧县\"},{\"s\":\"郧西县\"},{\"s\":\"竹山县\"},{\"s\":\"竹溪县\"},{\"s\":\"房县\"},{\"s\":\"丹江口市\"}]},{\"n\":\"宜昌\",\"a\":[{\"s\":\"西陵区\"},{\"s\":\"伍家岗区\"},{\"s\":\"点军区\"},{\"s\":\"猇亭区\"},{\"s\":\"夷陵区\"},{\"s\":\"远安县\"},{\"s\":\"兴山县\"},{\"s\":\"秭归县\"},{\"s\":\"长阳土家族自治县\"},{\"s\":\"五峰土家族自治县\"},{\"s\":\"宜都市\"},{\"s\":\"当阳市\"},{\"s\":\"枝江市\"}]},{\"n\":\"襄樊\",\"a\":[{\"s\":\"襄城区\"},{\"s\":\"樊城区\"},{\"s\":\"襄阳区\"},{\"s\":\"南漳县\"},{\"s\":\"谷城县\"},{\"s\":\"保康县\"},{\"s\":\"老河口市\"},{\"s\":\"枣阳市\"},{\"s\":\"宜城市\"}]},{\"n\":\"鄂州\",\"a\":[{\"s\":\"梁子湖区\"},{\"s\":\"华容区\"},{\"s\":\"鄂城区\"}]},{\"n\":\"荆门\",\"a\":[{\"s\":\"东宝区\"},{\"s\":\"掇刀区\"},{\"s\":\"京山县\"},{\"s\":\"沙洋县\"},{\"s\":\"钟祥市\"}]},{\"n\":\"孝感\",\"a\":[{\"s\":\"孝南区\"},{\"s\":\"孝昌县\"},{\"s\":\"大悟县\"},{\"s\":\"云梦县\"},{\"s\":\"应城市\"},{\"s\":\"安陆市\"},{\"s\":\"汉川市\"}]},{\"n\":\"荆州\",\"a\":[{\"s\":\"沙市区\"},{\"s\":\"荆州区\"},{\"s\":\"公安县\"},{\"s\":\"监利县\"},{\"s\":\"江陵县\"},{\"s\":\"石首市\"},{\"s\":\"洪湖市\"},{\"s\":\"松滋市\"}]},{\"n\":\"黄冈\",\"a\":[{\"s\":\"黄州区\"},{\"s\":\"团风县\"},{\"s\":\"红安县\"},{\"s\":\"罗田县\"},{\"s\":\"英山县\"},{\"s\":\"浠水县\"},{\"s\":\"蕲春县\"},{\"s\":\"黄梅县\"},{\"s\":\"麻城市\"},{\"s\":\"武穴市\"}]},{\"n\":\"咸宁\",\"a\":[{\"s\":\"咸安区\"},{\"s\":\"嘉鱼县\"},{\"s\":\"通城县\"},{\"s\":\"崇阳县\"},{\"s\":\"通山县\"},{\"s\":\"赤壁市\"}]},{\"n\":\"随州\",\"a\":[{\"s\":\"曾都区\"},{\"s\":\"随县\"},{\"s\":\"广水市\"}]},{\"n\":\"恩施土家族苗族自治州\",\"a\":[{\"s\":\"恩施市\"},{\"s\":\"利川市\"},{\"s\":\"建始县\"},{\"s\":\"巴东县\"},{\"s\":\"宣恩县\"},{\"s\":\"咸丰县\"},{\"s\":\"来凤县\"},{\"s\":\"鹤峰县\"}]},{\"n\":\"仙桃\",\"a\":[{\"s\":\"仙桃\"}]},{\"n\":\"潜江\",\"a\":[{\"s\":\"潜江\"}]},{\"n\":\"天门\",\"a\":[{\"s\":\"天门\"}]},{\"n\":\"神农架\",\"a\":[{\"s\":\"神农架\"}]}]},{\"p\":\"湖南省\",\"c\":[{\"n\":\"长沙\",\"a\":[{\"s\":\"芙蓉区\"},{\"s\":\"天心区\"},{\"s\":\"岳麓区\"},{\"s\":\"开福区\"},{\"s\":\"雨花区\"},{\"s\":\"长沙县\"},{\"s\":\"望城县\"},{\"s\":\"宁乡县\"},{\"s\":\"浏阳市\"}]},{\"n\":\"株洲\",\"a\":[{\"s\":\"荷塘区\"},{\"s\":\"芦淞区\"},{\"s\":\"石峰区\"},{\"s\":\"天元区\"},{\"s\":\"株洲县\"},{\"s\":\"攸县\"},{\"s\":\"茶陵县\"},{\"s\":\"炎陵县\"},{\"s\":\"醴陵市\"}]},{\"n\":\"湘潭\",\"a\":[{\"s\":\"雨湖区\"},{\"s\":\"岳塘区\"},{\"s\":\"湘潭县\"},{\"s\":\"湘乡市\"},{\"s\":\"韶山市\"}]},{\"n\":\"衡阳\",\"a\":[{\"s\":\"珠晖区\"},{\"s\":\"雁峰区\"},{\"s\":\"石鼓区\"},{\"s\":\"蒸湘区\"},{\"s\":\"南岳区\"},{\"s\":\"衡阳县\"},{\"s\":\"衡南县\"},{\"s\":\"衡山县\"},{\"s\":\"衡东县\"},{\"s\":\"祁东县\"},{\"s\":\"耒阳市\"},{\"s\":\"常宁市\"}]},{\"n\":\"邵阳\",\"a\":[{\"s\":\"双清区\"},{\"s\":\"大祥区\"},{\"s\":\"北塔区\"},{\"s\":\"邵东县\"},{\"s\":\"新邵县\"},{\"s\":\"邵阳县\"},{\"s\":\"隆回县\"},{\"s\":\"洞口县\"},{\"s\":\"绥宁县\"},{\"s\":\"新宁县\"},{\"s\":\"城步苗族自治县\"},{\"s\":\"武冈市\"}]},{\"n\":\"岳阳\",\"a\":[{\"s\":\"岳阳楼区\"},{\"s\":\"云溪区\"},{\"s\":\"君山区\"},{\"s\":\"岳阳县\"},{\"s\":\"华容县\"},{\"s\":\"湘阴县\"},{\"s\":\"平江县\"},{\"s\":\"汨罗市\"},{\"s\":\"临湘市\"}]},{\"n\":\"常德\",\"a\":[{\"s\":\"武陵区\"},{\"s\":\"鼎城区\"},{\"s\":\"安乡县\"},{\"s\":\"汉寿县\"},{\"s\":\"澧县\"},{\"s\":\"临澧县\"},{\"s\":\"桃源县\"},{\"s\":\"石门县\"},{\"s\":\"津市市\"}]},{\"n\":\"张家界\",\"a\":[{\"s\":\"永定区\"},{\"s\":\"武陵源区\"},{\"s\":\"慈利县\"},{\"s\":\"桑植县\"}]},{\"n\":\"益阳\",\"a\":[{\"s\":\"资阳区\"},{\"s\":\"赫山区\"},{\"s\":\"南县\"},{\"s\":\"桃江县\"},{\"s\":\"安化县\"},{\"s\":\"沅江市\"}]},{\"n\":\"郴州\",\"a\":[{\"s\":\"北湖区\"},{\"s\":\"苏仙区\"},{\"s\":\"桂阳县\"},{\"s\":\"宜章县\"},{\"s\":\"永兴县\"},{\"s\":\"嘉禾县\"},{\"s\":\"临武县\"},{\"s\":\"汝城县\"},{\"s\":\"桂东县\"},{\"s\":\"安仁县\"},{\"s\":\"资兴市\"}]},{\"n\":\"永州\",\"a\":[{\"s\":\"零陵区\"},{\"s\":\"冷水滩区\"},{\"s\":\"祁阳县\"},{\"s\":\"东安县\"},{\"s\":\"双牌县\"},{\"s\":\"道县\"},{\"s\":\"江永县\"},{\"s\":\"宁远县\"},{\"s\":\"蓝山县\"},{\"s\":\"新田县\"},{\"s\":\"江华瑶族自治县\"}]},{\"n\":\"怀化\",\"a\":[{\"s\":\"鹤城区\"},{\"s\":\"中方县\"},{\"s\":\"沅陵县\"},{\"s\":\"辰溪县\"},{\"s\":\"溆浦县\"},{\"s\":\"会同县\"},{\"s\":\"麻阳苗族自治县\"},{\"s\":\"新晃侗族自治县\"},{\"s\":\"芷江侗族自治县\"},{\"s\":\"靖州苗族侗族自治县\"},{\"s\":\"通道侗族自治县\"},{\"s\":\"洪江市\"}]},{\"n\":\"娄底\",\"a\":[{\"s\":\"娄星区\"},{\"s\":\"双峰县\"},{\"s\":\"新化县\"},{\"s\":\"冷水江市\"},{\"s\":\"涟源市\"}]},{\"n\":\"湘西土家族苗族自治州\",\"a\":[{\"s\":\"吉首市\"},{\"s\":\"泸溪县\"},{\"s\":\"凤凰县\"},{\"s\":\"花垣县\"},{\"s\":\"保靖县\"},{\"s\":\"古丈县\"},{\"s\":\"永顺县\"},{\"s\":\"龙山县\"}]}]},{\"p\":\"广东省\",\"c\":[{\"n\":\"广州\",\"a\":[{\"s\":\"荔湾区\"},{\"s\":\"越秀区\"},{\"s\":\"海珠区\"},{\"s\":\"天河区\"},{\"s\":\"白云区\"},{\"s\":\"黄埔区\"},{\"s\":\"番禺区\"},{\"s\":\"花都区\"},{\"s\":\"南沙区\"},{\"s\":\"萝岗区\"},{\"s\":\"增城市\"},{\"s\":\"从化市\"}]},{\"n\":\"韶关\",\"a\":[{\"s\":\"武江区\"},{\"s\":\"浈江区\"},{\"s\":\"曲江区\"},{\"s\":\"始兴县\"},{\"s\":\"仁化县\"},{\"s\":\"翁源县\"},{\"s\":\"乳源瑶族自治县\"},{\"s\":\"新丰县\"},{\"s\":\"乐昌市\"},{\"s\":\"南雄市\"}]},{\"n\":\"深圳\",\"a\":[{\"s\":\"罗湖区\"},{\"s\":\"福田区\"},{\"s\":\"南山区\"},{\"s\":\"宝安区\"},{\"s\":\"龙岗区\"},{\"s\":\"盐田区\"}]},{\"n\":\"珠海\",\"a\":[{\"s\":\"香洲区\"},{\"s\":\"斗门区\"},{\"s\":\"金湾区\"}]},{\"n\":\"汕头\",\"a\":[{\"s\":\"龙湖区\"},{\"s\":\"金平区\"},{\"s\":\"濠江区\"},{\"s\":\"潮阳区\"},{\"s\":\"潮南区\"},{\"s\":\"澄海区\"},{\"s\":\"南澳县\"}]},{\"n\":\"佛山\",\"a\":[{\"s\":\"禅城区\"},{\"s\":\"南海区\"},{\"s\":\"顺德区\"},{\"s\":\"三水区\"},{\"s\":\"高明区\"}]},{\"n\":\"江门\",\"a\":[{\"s\":\"蓬江区\"},{\"s\":\"江海区\"},{\"s\":\"新会区\"},{\"s\":\"台山市\"},{\"s\":\"开平市\"},{\"s\":\"鹤山市\"},{\"s\":\"恩平市\"}]},{\"n\":\"湛江\",\"a\":[{\"s\":\"赤坎区\"},{\"s\":\"霞山区\"},{\"s\":\"坡头区\"},{\"s\":\"麻章区\"},{\"s\":\"遂溪县\"},{\"s\":\"徐闻县\"},{\"s\":\"廉江市\"},{\"s\":\"雷州市\"},{\"s\":\"吴川市\"}]},{\"n\":\"茂名\",\"a\":[{\"s\":\"茂南区\"},{\"s\":\"茂港区\"},{\"s\":\"电白县\"},{\"s\":\"高州市\"},{\"s\":\"化州市\"},{\"s\":\"信宜市\"}]},{\"n\":\"肇庆\",\"a\":[{\"s\":\"端州区\"},{\"s\":\"鼎湖区\"},{\"s\":\"广宁县\"},{\"s\":\"怀集县\"},{\"s\":\"封开县\"},{\"s\":\"德庆县\"},{\"s\":\"高要市\"},{\"s\":\"四会市\"}]},{\"n\":\"惠州\",\"a\":[{\"s\":\"惠城区\"},{\"s\":\"惠阳区\"},{\"s\":\"博罗县\"},{\"s\":\"惠东县\"},{\"s\":\"龙门县\"}]},{\"n\":\"梅州\",\"a\":[{\"s\":\"梅江区\"},{\"s\":\"梅县\"},{\"s\":\"大埔县\"},{\"s\":\"丰顺县\"},{\"s\":\"五华县\"},{\"s\":\"平远县\"},{\"s\":\"蕉岭县\"},{\"s\":\"兴宁市\"}]},{\"n\":\"汕尾\",\"a\":[{\"s\":\"城区\"},{\"s\":\"海丰县\"},{\"s\":\"陆河县\"},{\"s\":\"陆丰市\"}]},{\"n\":\"河源\",\"a\":[{\"s\":\"源城区\"},{\"s\":\"紫金县\"},{\"s\":\"龙川县\"},{\"s\":\"连平县\"},{\"s\":\"和平县\"},{\"s\":\"东源县\"}]},{\"n\":\"阳江\",\"a\":[{\"s\":\"江城区\"},{\"s\":\"阳西县\"},{\"s\":\"阳东县\"},{\"s\":\"阳春市\"}]},{\"n\":\"清远\",\"a\":[{\"s\":\"清城区\"},{\"s\":\"佛冈县\"},{\"s\":\"阳山县\"},{\"s\":\"连山壮族瑶族自治县\"},{\"s\":\"连南瑶族自治县\"},{\"s\":\"清新县\"},{\"s\":\"英德市\"},{\"s\":\"连州市\"}]},{\"n\":\"东莞\",\"a\":[{\"s\":\"东莞市\"}]},{\"n\":\"中山\",\"a\":[{\"s\":\"中山市\"}]},{\"n\":\"潮州\",\"a\":[{\"s\":\"湘桥区\"},{\"s\":\"潮安县\"},{\"s\":\"饶平县\"}]},{\"n\":\"揭阳\",\"a\":[{\"s\":\"榕城区\"},{\"s\":\"揭东县\"},{\"s\":\"揭西县\"},{\"s\":\"惠来县\"},{\"s\":\"普宁市\"}]},{\"n\":\"云浮\",\"a\":[{\"s\":\"云城区\"},{\"s\":\"新兴县\"},{\"s\":\"郁南县\"},{\"s\":\"云安县\"},{\"s\":\"罗定市\"}]}]},{\"p\":\"广西\",\"c\":[{\"n\":\"南宁\",\"a\":[{\"s\":\"兴宁区\"},{\"s\":\"青秀区\"},{\"s\":\"江南区\"},{\"s\":\"西乡塘区\"},{\"s\":\"良庆区\"},{\"s\":\"邕宁区\"},{\"s\":\"武鸣县\"},{\"s\":\"隆安县\"},{\"s\":\"马山县\"},{\"s\":\"上林县\"},{\"s\":\"宾阳县\"},{\"s\":\"横县\"}]},{\"n\":\"柳州\",\"a\":[{\"s\":\"城中区\"},{\"s\":\"鱼峰区\"},{\"s\":\"柳南区\"},{\"s\":\"柳北区\"},{\"s\":\"柳江县\"},{\"s\":\"柳城县\"},{\"s\":\"鹿寨县\"},{\"s\":\"融安县\"},{\"s\":\"融水苗族自治县\"},{\"s\":\"三江侗族自治县\"}]},{\"n\":\"桂林\",\"a\":[{\"s\":\"秀峰区\"},{\"s\":\"叠彩区\"},{\"s\":\"象山区\"},{\"s\":\"七星区\"},{\"s\":\"雁山区\"},{\"s\":\"阳朔县\"},{\"s\":\"临桂县\"},{\"s\":\"灵川县\"},{\"s\":\"全州县\"},{\"s\":\"兴安县\"},{\"s\":\"永福县\"},{\"s\":\"灌阳县\"},{\"s\":\"龙胜各族自治县\"},{\"s\":\"资源县\"},{\"s\":\"平乐县\"},{\"s\":\"荔蒲县\"},{\"s\":\"恭城瑶族自治县\"}]},{\"n\":\"梧州\",\"a\":[{\"s\":\"万秀区\"},{\"s\":\"蝶山区\"},{\"s\":\"长洲区\"},{\"s\":\"苍梧县\"},{\"s\":\"藤县\"},{\"s\":\"蒙山县\"},{\"s\":\"岑溪市\"}]},{\"n\":\"北海\",\"a\":[{\"s\":\"海城区\"},{\"s\":\"银海区\"},{\"s\":\"铁山港区\"},{\"s\":\"合浦县\"}]},{\"n\":\"防城港\",\"a\":[{\"s\":\"港口区\"},{\"s\":\"防城区\"},{\"s\":\"上思县\"},{\"s\":\"东兴市\"}]},{\"n\":\"钦州\",\"a\":[{\"s\":\"钦南区\"},{\"s\":\"钦北区\"},{\"s\":\"灵山县\"},{\"s\":\"浦北县\"}]},{\"n\":\"贵港\",\"a\":[{\"s\":\"港北区\"},{\"s\":\"港南区\"},{\"s\":\"覃塘区\"},{\"s\":\"平南县\"},{\"s\":\"桂平市\"}]},{\"n\":\"玉林\",\"a\":[{\"s\":\"玉州区\"},{\"s\":\"容县\"},{\"s\":\"陆川县\"},{\"s\":\"博白县\"},{\"s\":\"兴业县\"},{\"s\":\"北流市\"}]},{\"n\":\"百色\",\"a\":[{\"s\":\"右江区\"},{\"s\":\"田阳县\"},{\"s\":\"田东县\"},{\"s\":\"平果县\"},{\"s\":\"德保县\"},{\"s\":\"靖西县\"},{\"s\":\"那坡县\"},{\"s\":\"凌云县\"},{\"s\":\"乐业县\"},{\"s\":\"田林县\"},{\"s\":\"西林县\"},{\"s\":\"隆林各族自治县\"}]},{\"n\":\"贺州\",\"a\":[{\"s\":\"八步区\"},{\"s\":\"昭平县\"},{\"s\":\"钟山县\"},{\"s\":\"富川瑶族自治县\"}]},{\"n\":\"河池\",\"a\":[{\"s\":\"金城江区\"},{\"s\":\"南丹县\"},{\"s\":\"天峨县\"},{\"s\":\"凤山县\"},{\"s\":\"东兰县\"},{\"s\":\"罗城仫佬族自治县\"},{\"s\":\"环江毛南族自治县\"},{\"s\":\"巴马瑶族自治县\"},{\"s\":\"都安瑶族自治县\"},{\"s\":\"大化瑶族自治县\"},{\"s\":\"宜州市\"}]},{\"n\":\"来宾\",\"a\":[{\"s\":\"兴宾区\"},{\"s\":\"忻城县\"},{\"s\":\"象州县\"},{\"s\":\"武宣县\"},{\"s\":\"金秀瑶族自治县\"},{\"s\":\"合山市\"}]},{\"n\":\"崇左\",\"a\":[{\"s\":\"江洲区\"},{\"s\":\"扶绥县\"},{\"s\":\"宁明县\"},{\"s\":\"龙州县\"},{\"s\":\"大新县\"},{\"s\":\"天等县\"},{\"s\":\"凭祥市\"}]}]},{\"p\":\"海南省\",\"c\":[{\"n\":\"海口\",\"a\":[{\"s\":\"秀英区\"},{\"s\":\"龙华区\"},{\"s\":\"琼山区\"},{\"s\":\"美兰区\"}]},{\"n\":\"三亚\",\"a\":[{\"s\":\"三亚市\"}]},{\"n\":\"五指山\",\"a\":[{\"s\":\"五指山\"}]},{\"n\":\"琼海\",\"a\":[{\"s\":\"琼海\"}]},{\"n\":\"儋州\",\"a\":[{\"s\":\"儋州\"}]},{\"n\":\"文昌\",\"a\":[{\"s\":\"文昌\"}]},{\"n\":\"万宁\",\"a\":[{\"s\":\"万宁\"}]},{\"n\":\"东方\",\"a\":[{\"s\":\"东方\"}]}]},{\"p\":\"重庆市\",\"c\":[{\"n\":\"万州区\"},{\"n\":\"涪陵区\"},{\"n\":\"渝中区\"},{\"n\":\"大渡口区\"},{\"n\":\"江北区\"},{\"n\":\"沙坪坝区\"},{\"n\":\"九龙坡区\"},{\"n\":\"南岸区\"},{\"n\":\"北碚区\"},{\"n\":\"万盛区\"},{\"n\":\"双挢区\"},{\"n\":\"渝北区\"},{\"n\":\"巴南区\"},{\"n\":\"长寿区\"},{\"n\":\"綦江县\"},{\"n\":\"潼南县\"},{\"n\":\"铜梁县\"},{\"n\":\"大足县\"},{\"n\":\"荣昌县\"},{\"n\":\"壁山县\"},{\"n\":\"梁平县\"},{\"n\":\"城口县\"},{\"n\":\"丰都县\"},{\"n\":\"垫江县\"},{\"n\":\"武隆县\"},{\"n\":\"忠县\"},{\"n\":\"开县\"},{\"n\":\"云阳县\"},{\"n\":\"奉节县\"},{\"n\":\"巫山县\"},{\"n\":\"巫溪县\"},{\"n\":\"黔江区\"},{\"n\":\"石柱土家族自治县\"},{\"n\":\"秀山土家族苗族自治县\"},{\"n\":\"酉阳土家族苗族自治县\"},{\"n\":\"彭水苗族土家族自治县\"},{\"n\":\"江津区\"},{\"n\":\"合川区\"},{\"n\":\"永川区\"},{\"n\":\"南川区\"}]},{\"p\":\"四川省\",\"c\":[{\"n\":\"成都\",\"a\":[{\"s\":\"锦江区\"},{\"s\":\"青羊区\"},{\"s\":\"金牛区\"},{\"s\":\"武侯区\"},{\"s\":\"成华区\"},{\"s\":\"龙泉驿区\"},{\"s\":\"青白江区\"},{\"s\":\"新都区\"},{\"s\":\"温江区\"},{\"s\":\"金堂县\"},{\"s\":\"双流县\"},{\"s\":\"郫县\"},{\"s\":\"大邑县\"},{\"s\":\"蒲江县\"},{\"s\":\"新津县\"},{\"s\":\"都江堰市\"},{\"s\":\"彭州市\"},{\"s\":\"邛崃市\"},{\"s\":\"崇州市\"}]},{\"n\":\"自贡\",\"a\":[{\"s\":\"自流井区\"},{\"s\":\"贡井区\"},{\"s\":\"大安区\"},{\"s\":\"沿滩区\"},{\"s\":\"荣县\"},{\"s\":\"富顺县\"}]},{\"n\":\"攀枝花\",\"a\":[{\"s\":\"东区\"},{\"s\":\"西区\"},{\"s\":\"仁和区\"},{\"s\":\"米易县\"},{\"s\":\"盐边县\"}]},{\"n\":\"泸州\",\"a\":[{\"s\":\"江阳区\"},{\"s\":\"纳溪区\"},{\"s\":\"龙马潭区\"},{\"s\":\"泸县\"},{\"s\":\"合江县\"},{\"s\":\"叙永县\"},{\"s\":\"古蔺县\"}]},{\"n\":\"德阳\",\"a\":[{\"s\":\"旌阳区\"},{\"s\":\"中江县\"},{\"s\":\"罗江县\"},{\"s\":\"广汉市\"},{\"s\":\"什邡市\"},{\"s\":\"绵竹市\"}]},{\"n\":\"绵阳\",\"a\":[{\"s\":\"涪城区\"},{\"s\":\"游仙区\"},{\"s\":\"三台县\"},{\"s\":\"盐亭县\"},{\"s\":\"安县\"},{\"s\":\"梓潼县\"},{\"s\":\"北川羌族自治县\"},{\"s\":\"平武县\"},{\"s\":\"江油市\"}]},{\"n\":\"广元\",\"a\":[{\"s\":\"利州区\"},{\"s\":\"元坝区\"},{\"s\":\"朝天区\"},{\"s\":\"旺苍县\"},{\"s\":\"青川县\"},{\"s\":\"剑阁县\"},{\"s\":\"苍溪县\"}]},{\"n\":\"遂宁\",\"a\":[{\"s\":\"船山区\"},{\"s\":\">安居区\"},{\"s\":\">蓬溪县\"},{\"s\":\">射洪县\"},{\"s\":\">大英县\"}]},{\"n\":\"内江\",\"a\":[{\"s\":\"市中区\"},{\"s\":\"东兴区\"},{\"s\":\"威远县\"},{\"s\":\"资中县\"},{\"s\":\"隆昌县\"}]},{\"n\":\"乐山\",\"a\":[{\"s\":\"市中区\"},{\"s\":\"沙湾区\"},{\"s\":\"五通桥区\"},{\"s\":\"金口河区\"},{\"s\":\"犍为县\"},{\"s\":\"井研县\"},{\"s\":\"夹江县\"},{\"s\":\"沐川县\"},{\"s\":\"峨边彝族自治县\"},{\"s\":\"马边彝族自治县\"},{\"s\":\"峨眉山市\"}]},{\"n\":\"南充\",\"a\":[{\"s\":\"顺庆区\"},{\"s\":\"高坪区\"},{\"s\":\"嘉陵区\"},{\"s\":\"南部县\"},{\"s\":\"营山县\"},{\"s\":\"蓬安县\"},{\"s\":\"仪陇县\"},{\"s\":\"西充县\"},{\"s\":\"阆中市\"}]},{\"n\":\"眉山\",\"a\":[{\"s\":\"东坡区\"},{\"s\":\"仁寿县\"},{\"s\":\"彭山县\"},{\"s\":\"洪雅县\"},{\"s\":\"丹棱县\"},{\"s\":\"青神县\"}]},{\"n\":\"宜宾\",\"a\":[{\"s\":\"翠屏区\"},{\"s\":\"宜宾县\"},{\"s\":\"南溪县\"},{\"s\":\"江安县\"},{\"s\":\"长宁县\"},{\"s\":\"高县\"},{\"s\":\"珙县\"},{\"s\":\"筠连县\"},{\"s\":\"兴文县\"},{\"s\":\"屏山县\"}]},{\"n\":\"广安\",\"a\":[{\"s\":\"广安区\"},{\"s\":\"岳池县\"},{\"s\":\"武胜县\"},{\"s\":\"邻水县\"},{\"s\":\"华蓥市\"}]},{\"n\":\"达川\",\"a\":[{\"s\":\"通川区\"},{\"s\":\"达县\"},{\"s\":\"宣汉县\"},{\"s\":\"开江县\"},{\"s\":\"大竹县\"},{\"s\":\"渠县\"},{\"s\":\"万源市\"}]},{\"n\":\"雅安\",\"a\":[{\"s\":\"雨城区\"},{\"s\":\"名山县\"},{\"s\":\"荥经县\"},{\"s\":\"汉源县\"},{\"s\":\"石棉县\"},{\"s\":\"天全县\"},{\"s\":\"芦山县\"},{\"s\":\"宝兴县\"}]},{\"n\":\"巴中\",\"a\":[{\"s\":\"巴州区\"},{\"s\":\"通江县\"},{\"s\":\"南江县\"},{\"s\":\"平昌县\"}]},{\"n\":\"资阳\",\"a\":[{\"s\":\"雁江区\"},{\"s\":\"安岳县\"},{\"s\":\"乐至县\"},{\"s\":\"简阳市\"}]},{\"n\":\"阿坝藏族羌族自治州\",\"a\":[{\"s\":\"汶川县\"},{\"s\":\"理县\"},{\"s\":\"茂县\"},{\"s\":\"松潘县\"},{\"s\":\"九寨沟县\"},{\"s\":\"金川县\"},{\"s\":\"小金县\"},{\"s\":\"黑水县\"},{\"s\":\"马尔康县\"},{\"s\":\"壤塘县\"},{\"s\":\"阿坝县\"},{\"s\":\"若尔盖县\"},{\"s\":\"红原县\"}]},{\"n\":\"甘孜藏族自治州\",\"a\":[{\"s\":\"康定县\"},{\"s\":\"泸定县\"},{\"s\":\"丹巴县\"},{\"s\":\"九龙县\"},{\"s\":\"雅江县\"},{\"s\":\"道孚县\"},{\"s\":\"炉霍县\"},{\"s\":\"甘孜县\"},{\"s\":\"新龙县\"},{\"s\":\"德格县\"},{\"s\":\"白玉县\"},{\"s\":\"石渠县\"},{\"s\":\"色达县\"},{\"s\":\"理塘县\"},{\"s\":\"巴塘县\"},{\"s\":\"乡城县\"},{\"s\":\"稻城县\"},{\"s\":\"得荣县\"}]},{\"n\":\"凉山彝族自治州\",\"a\":[{\"s\":\"西昌市\"},{\"s\":\"木里藏族自治县\"},{\"s\":\"盐源县\"},{\"s\":\"德昌县\"},{\"s\":\"会理县\"},{\"s\":\"会东县\"},{\"s\":\"宁南县\"},{\"s\":\"普格县\"},{\"s\":\"布拖县\"},{\"s\":\"金阳县\"},{\"s\":\"昭觉县\"},{\"s\":\"喜德县\"},{\"s\":\"冕宁县\"},{\"s\":\"越西县\"},{\"s\":\"甘洛县\"},{\"s\":\"美姑县\"},{\"s\":\"雷波县\"}]}]},{\"p\":\"贵州省\",\"c\":[{\"n\":\"贵阳\",\"a\":[{\"s\":\"南明区\"},{\"s\":\"云岩区\"},{\"s\":\"花溪区\"},{\"s\":\"乌当区\"},{\"s\":\"白云区\"},{\"s\":\"小河区\"},{\"s\":\"开阳县\"},{\"s\":\"息烽县\"},{\"s\":\"修文县\"},{\"s\":\"清镇市\"}]},{\"n\":\"六盘水\",\"a\":[{\"s\":\"钟山区\"},{\"s\":\"六枝特区\"},{\"s\":\"水城县\"},{\"s\":\"盘县\"}]},{\"n\":\"遵义\",\"a\":[{\"s\":\"红花岗区\"},{\"s\":\"汇川区\"},{\"s\":\"遵义县\"},{\"s\":\"桐梓县\"},{\"s\":\"绥阳县\"},{\"s\":\"正安县\"},{\"s\":\"道真仡佬族苗族自治县\"},{\"s\":\"务川仡佬族苗族自治县\"},{\"s\":\"凤冈县\"},{\"s\":\"湄潭县\"},{\"s\":\"余庆县\"},{\"s\":\"习水县\"},{\"s\":\"赤水市\"},{\"s\":\"仁怀市\"}]},{\"n\":\"安顺\",\"a\":[{\"s\":\"西秀区\"},{\"s\":\"平坝县\"},{\"s\":\"普定县\"},{\"s\":\"镇宁布依族苗族自治县\"},{\"s\":\"关岭布依族苗族自治县\"},{\"s\":\"紫云苗族布依族自治县\"}]},{\"n\":\"铜仁\",\"a\":[{\"s\":\"铜仁市\"},{\"s\":\"江口县\"},{\"s\":\"玉屏侗族自治县\"},{\"s\":\"石阡县\"},{\"s\":\"思南县\"},{\"s\":\"印江土家族苗族自治县\"},{\"s\":\"德江县\"},{\"s\":\"沿河土家族自治县\"},{\"s\":\"松桃苗族自治县\"},{\"s\":\"万山特区\"}]},{\"n\":\"黔西南布依族苗族自治州\",\"a\":[{\"s\":\"兴义市\"},{\"s\":\"兴仁县\"},{\"s\":\"普安县\"},{\"s\":\"晴隆县\"},{\"s\":\"贞丰县\"},{\"s\":\"望谟县\"},{\"s\":\"册亨县\"},{\"s\":\"安龙县\"}]},{\"n\":\"毕节\",\"a\":[{\"s\":\"毕节市\"},{\"s\":\"大方县\"},{\"s\":\"黔西县\"},{\"s\":\"金沙县\"},{\"s\":\"织金县\"},{\"s\":\"纳雍县\"},{\"s\":\"威宁彝族回族苗族自治县\"},{\"s\":\"赫章县\"}]},{\"n\":\"黔东南苗族侗族自治州\",\"a\":[{\"s\":\"凯里市\"},{\"s\":\"黄平县\"},{\"s\":\"施秉县\"},{\"s\":\"三穗县\"},{\"s\":\"镇远县\"},{\"s\":\"岑巩县\"},{\"s\":\"天柱县\"},{\"s\":\"锦屏县\"},{\"s\":\"剑河县\"},{\"s\":\"台江县\"},{\"s\":\"黎平县\"},{\"s\":\"榕江县\"},{\"s\":\"从江县\"},{\"s\":\"雷山县\"},{\"s\":\"麻江县\"},{\"s\":\"丹寨县\"}]},{\"n\":\"黔南布依族苗族自治州\",\"a\":[{\"s\":\"都匀市\"},{\"s\":\"福泉市\"},{\"s\":\"荔波县\"},{\"s\":\"贵定县\"},{\"s\":\"瓮安县\"},{\"s\":\"独山县\"},{\"s\":\"平塘县\"},{\"s\":\"罗甸县\"},{\"s\":\"长顺县\"},{\"s\":\"龙里县\"},{\"s\":\"惠水县\"},{\"s\":\"三都水族自治县\"}]}]},{\"p\":\"云南省\",\"c\":[{\"n\":\"昆明\",\"a\":[{\"s\":\"五华区\"},{\"s\":\"盘龙区\"},{\"s\":\"官渡区\"},{\"s\":\"西山区\"},{\"s\":\"东川区\"},{\"s\":\"呈贡县\"},{\"s\":\"晋宁县\"},{\"s\":\"富民县\"},{\"s\":\"宜良县\"},{\"s\":\"石林彝族自治县\"},{\"s\":\"嵩明县\"},{\"s\":\"禄劝彝族苗族自治县\"},{\"s\":\"寻甸回族彝族自治县\"},{\"s\":\"安宁市\"}]},{\"n\":\"曲靖\",\"a\":[{\"s\":\"麒麟区\"},{\"s\":\"马龙县\"},{\"s\":\"陆良县\"},{\"s\":\"师宗县\"},{\"s\":\"罗平县\"},{\"s\":\"富源县\"},{\"s\":\"会泽县\"},{\"s\":\"沾益县\"},{\"s\":\"宣威市\"}]},{\"n\":\"玉溪\",\"a\":[{\"s\":\"红塔区\"},{\"s\":\"江川县\"},{\"s\":\"澄江县\"},{\"s\":\"通海县\"},{\"s\":\"华宁县\"},{\"s\":\"易门县\"},{\"s\":\"峨山彝族自治县\"},{\"s\":\"新平彝族傣族自治县\"},{\"s\":\"元江哈尼族彝族傣族自治县\"}]},{\"n\":\"保山\",\"a\":[{\"s\":\"隆阳区\"},{\"s\":\"施甸县\"},{\"s\":\"腾冲县\"},{\"s\":\"龙陵县\"},{\"s\":\"昌宁县\"}]},{\"n\":\"昭通\",\"a\":[{\"s\":\"昭阳区\"},{\"s\":\"鲁甸县\"},{\"s\":\"巧家县\"},{\"s\":\"盐津县\"},{\"s\":\"大关县\"},{\"s\":\"永善县\"},{\"s\":\"绥江县\"},{\"s\":\"镇雄县\"},{\"s\":\"彝良县\"},{\"s\":\"威信县\"},{\"s\":\"水富县\"}]},{\"n\":\"丽江\",\"a\":[{\"s\":\"古城区\"},{\"s\":\"玉龙纳西族自治县\"},{\"s\":\"永胜县\"},{\"s\":\"华坪县\"},{\"s\":\"宁蒗彝族自治县\"}]},{\"n\":\"普洱\",\"a\":[{\"s\":\"思茅区\"},{\"s\":\"宁洱镇\"},{\"s\":\"墨江哈尼族自治县\"},{\"s\":\"景东彝族自治县\"},{\"s\":\"景谷傣族彝族自治县\"},{\"s\":\"镇沅彝族哈尼族拉祜族自治县\"},{\"s\":\"江城哈尼族彝族自治县\"},{\"s\":\"孟连傣族拉祜族佤族自治县\"},{\"s\":\"澜沧拉祜族自治县\"},{\"s\":\"西盟佤族自治县\"}]},{\"n\":\"临沧\",\"a\":[{\"s\":\"临翔区\"},{\"s\":\"凤庆县\"},{\"s\":\"云县\"},{\"s\":\"永德县\"},{\"s\":\"镇康县\"},{\"s\":\"双江拉祜族佤族布朗族傣族自治县\"},{\"s\":\"耿马傣族佤族自治县\"},{\"s\":\"沧源佤族自治县\"}]},{\"n\":\"楚雄彝族自治州\",\"a\":[{\"s\":\"楚雄市\"},{\"s\":\"双柏县\"},{\"s\":\"牟定县\"},{\"s\":\"南华县\"},{\"s\":\"姚安县\"},{\"s\":\"大姚县\"},{\"s\":\"永仁县\"},{\"s\":\"元谋县\"},{\"s\":\"武定县\"},{\"s\":\"禄丰县\"}]},{\"n\":\"红河哈尼族彝族自治州\",\"a\":[{\"s\":\"个旧市\"},{\"s\":\"开远市\"},{\"s\":\"蒙自县\"},{\"s\":\"屏边苗族自治县\"},{\"s\":\"建水县\"},{\"s\":\"石屏县\"},{\"s\":\"弥勒县\"},{\"s\":\"泸西县\"},{\"s\":\"元阳县\"},{\"s\":\"红河县\"},{\"s\":\"金平苗族瑶族傣族自治县\"},{\"s\":\"绿春县\"},{\"s\":\"河口瑶族自治县\"}]},{\"n\":\"文山壮族苗族自治州\",\"a\":[{\"s\":\"文山县\"},{\"s\":\"砚山县\"},{\"s\":\"西畴县\"},{\"s\":\"麻栗坡县\"},{\"s\":\"马关县\"},{\"s\":\"丘北县\"},{\"s\":\"广南县\"},{\"s\":\"富宁县\"}]},{\"n\":\"西双版纳傣族自治州\",\"a\":[{\"s\":\"景洪市\"},{\"s\":\"勐海县\"},{\"s\":\"勐腊县\"}]},{\"n\":\"大理白族自治州\",\"a\":[{\"s\":\"大理市\"},{\"s\":\"漾濞彝族自治县\"},{\"s\":\"祥云县\"},{\"s\":\"宾川县\"},{\"s\":\"弥渡县\"},{\"s\":\"南涧彝族自治县\"},{\"s\":\"巍山彝族回族自治县\"},{\"s\":\"永平县\"},{\"s\":\"云龙县\"},{\"s\":\"洱源县\"},{\"s\":\"剑川县\"},{\"s\":\"鹤庆县\"}]},{\"n\":\"德宏傣族景颇族自治州\",\"a\":[{\"s\":\"瑞丽市\"},{\"s\":\"潞西市\"},{\"s\":\"梁河县\"},{\"s\":\"盈江县\"},{\"s\":\"陇川县\"}]},{\"n\":\"怒江傈僳族自治州\",\"a\":[{\"s\":\"泸水县\"},{\"s\":\"福贡县\"},{\"s\":\"贡山独龙族怒族自治县\"},{\"s\":\"兰坪白族普米族自治县\"}]},{\"n\":\"迪庆藏族自治州\",\"a\":[{\"s\":\"香格里拉县\"},{\"s\":\"德钦县\"},{\"s\":\"维西傈僳族自治县\"}]}]},{\"p\":\"西藏\",\"c\":[{\"n\":\"拉萨\",\"a\":[{\"s\":\"城关区\"},{\"s\":\"林周县\"},{\"s\":\"当雄县\"},{\"s\":\"尼木县\"},{\"s\":\"曲水县\"},{\"s\":\"堆龙德庆县\"},{\"s\":\"达孜县\"},{\"s\":\"墨竹工卡县\"}]},{\"n\":\"昌都\",\"a\":[{\"s\":\"昌都县\"},{\"s\":\"江达县\"},{\"s\":\"贡觉县\"},{\"s\":\"类乌齐县\"},{\"s\":\"丁青县\"},{\"s\":\"察雅县\"},{\"s\":\"八宿县\"},{\"s\":\"左贡县\"},{\"s\":\"芒康县\"},{\"s\":\"洛隆县\"},{\"s\":\"边坝县\"}]},{\"n\":\"山南\",\"a\":[{\"s\":\"乃东县\"},{\"s\":\"扎囊县\"},{\"s\":\"贡嘎县\"},{\"s\":\"桑日县\"},{\"s\":\"琼结县\"},{\"s\":\"曲松县\"},{\"s\":\"措美县\"},{\"s\":\"洛扎县\"},{\"s\":\"加查县\"},{\"s\":\"隆子县\"},{\"s\":\"错那县\"},{\"s\":\"浪卡子县\"}]},{\"n\":\"日喀则\",\"a\":[{\"s\":\"日喀则市\"},{\"s\":\"南木林县\"},{\"s\":\"江孜县\"},{\"s\":\"定日县\"},{\"s\":\"萨迦县\"},{\"s\":\"拉孜县\"},{\"s\":\"昂仁县\"},{\"s\":\"谢通门县\"},{\"s\":\"白朗县\"},{\"s\":\"仁布县\"},{\"s\":\"康马县\"},{\"s\":\"定结县\"},{\"s\":\"仲巴县\"},{\"s\":\"亚东县\"},{\"s\":\"吉隆县\"},{\"s\":\"聂拉木县\"},{\"s\":\"萨嘎县\"},{\"s\":\"岗巴县\"}]},{\"n\":\"那曲\",\"a\":[{\"s\":\"那曲县\"},{\"s\":\"嘉黎县\"},{\"s\":\"比如县\"},{\"s\":\"聂荣县\"},{\"s\":\"安多县\"},{\"s\":\"申扎县\"},{\"s\":\"索县\"},{\"s\":\"班戈县\"},{\"s\":\"巴青县\"},{\"s\":\"尼玛县\"}]},{\"n\":\"阿里\",\"a\":[{\"s\":\"普兰县\"},{\"s\":\"札达县\"},{\"s\":\"噶尔县\"},{\"s\":\"日土县\"},{\"s\":\"革吉县\"},{\"s\":\"改则县\"},{\"s\":\"措勤县\"}]},{\"n\":\"林芝\",\"a\":[{\"s\":\"林芝县\"},{\"s\":\"工布江达县\"},{\"s\":\"米林县\"},{\"s\":\"墨脱县\"},{\"s\":\"波密县\"},{\"s\":\"察隅县\"},{\"s\":\"朗县\"}]}]},{\"p\":\"陕西省\",\"c\":[{\"n\":\"西安\",\"a\":[{\"s\":\"新城区\"},{\"s\":\"碑林区\"},{\"s\":\"莲湖区\"},{\"s\":\"灞桥区\"},{\"s\":\"未央区\"},{\"s\":\"雁塔区\"},{\"s\":\"阎良区\"},{\"s\":\"临潼区\"},{\"s\":\"长安区\"},{\"s\":\"蓝田县\"},{\"s\":\"周至县\"},{\"s\":\"户县\"},{\"s\":\"高陵县\"}]},{\"n\":\"铜川\",\"a\":[{\"s\":\"王益区\"},{\"s\":\"印台区\"},{\"s\":\"耀州区\"},{\"s\":\"宜君县\"}]},{\"n\":\"宝鸡\",\"a\":[{\"s\":\"渭滨区\"},{\"s\":\"金台区\"},{\"s\":\"陈仓区\"},{\"s\":\"凤翔县\"},{\"s\":\"岐山县\"},{\"s\":\"扶风县\"},{\"s\":\"眉县\"},{\"s\":\"陇县\"},{\"s\":\"千阳县\"},{\"s\":\"麟游县\"},{\"s\":\"凤县\"},{\"s\":\"太白县\"}]},{\"n\":\"咸阳\",\"a\":[{\"s\":\"秦都区\"},{\"s\":\"杨凌区\"},{\"s\":\"渭城区\"},{\"s\":\"三原县\"},{\"s\":\"泾阳县\"},{\"s\":\"乾县\"},{\"s\":\"礼泉县\"},{\"s\":\"永寿县\"},{\"s\":\"彬县\"},{\"s\":\"长武县\"},{\"s\":\"旬邑县\"},{\"s\":\"淳化县\"},{\"s\":\"武功县\"},{\"s\":\"兴平市\"}]},{\"n\":\"渭南\",\"a\":[{\"s\":\"临渭区\"},{\"s\":\"华县\"},{\"s\":\"潼关县\"},{\"s\":\"大荔县\"},{\"s\":\"合阳县\"},{\"s\":\"澄城县\"},{\"s\":\"蒲城县\"},{\"s\":\"白水县\"},{\"s\":\"富平县\"},{\"s\":\"韩城市\"},{\"s\":\"华阴市\"}]},{\"n\":\"延安\",\"a\":[{\"s\":\"宝塔区\"},{\"s\":\"延长县\"},{\"s\":\"延川县\"},{\"s\":\"子长县\"},{\"s\":\"安塞县\"},{\"s\":\"志丹县\"},{\"s\":\"吴起县\"},{\"s\":\"甘泉县\"},{\"s\":\"富县\"},{\"s\":\"洛川县\"},{\"s\":\"宜川县\"},{\"s\":\"黄龙县\"},{\"s\":\"黄陵县\"}]},{\"n\":\"汉中\",\"a\":[{\"s\":\"汉台区\"},{\"s\":\"南郑县\"},{\"s\":\"城固县\"},{\"s\":\"洋县\"},{\"s\":\"西乡县\"},{\"s\":\"勉县\"},{\"s\":\"宁强县\"},{\"s\":\"略阳县\"},{\"s\":\"镇巴县\"},{\"s\":\"留坝县\"},{\"s\":\"佛坪县\"}]},{\"n\":\"榆林\",\"a\":[{\"s\":\"榆阳区\"},{\"s\":\"神木县\"},{\"s\":\"府谷县\"},{\"s\":\"横山县\"},{\"s\":\"靖边县\"},{\"s\":\"定边县\"},{\"s\":\"绥德县\"},{\"s\":\"米脂县\"},{\"s\":\"佳县\"},{\"s\":\"吴堡县\"},{\"s\":\"清涧县\"},{\"s\":\"子洲县\"}]},{\"n\":\"安康\",\"a\":[{\"s\":\"汉滨区\"},{\"s\":\"汉阴县\"},{\"s\":\"石泉县\"},{\"s\":\"宁陕县\"},{\"s\":\"紫阳县\"},{\"s\":\"岚皋县\"},{\"s\":\"平利县\"},{\"s\":\"镇坪县\"},{\"s\":\"旬阳县\"},{\"s\":\"白河县\"}]},{\"n\":\"商洛\",\"a\":[{\"s\":\"商州区\"},{\"s\":\"洛南县\"},{\"s\":\"丹凤县\"},{\"s\":\"商南县\"},{\"s\":\"山阳县\"},{\"s\":\"镇安县\"},{\"s\":\"柞水县\"}]}]},{\"p\":\"甘肃省\",\"c\":[{\"n\":\"兰州\",\"a\":[{\"s\":\"区(县)\"},{\"s\":\"城关区\"},{\"s\":\"七里河区\"},{\"s\":\"西固区\"},{\"s\":\"安宁区\"},{\"s\":\"红古区\"},{\"s\":\"永登县\"},{\"s\":\"皋兰县\"},{\"s\":\"榆中县\"}]},{\"n\":\"嘉峪关\",\"a\":[{\"s\":\"嘉峪关市\"}]},{\"n\":\"金昌\",\"a\":[{\"s\":\"金川区\"},{\"s\":\"永昌县\"}]},{\"n\":\"白银\",\"a\":[{\"s\":\"白银区\"},{\"s\":\"平川区\"},{\"s\":\"靖远县\"},{\"s\":\"会宁县\"},{\"s\":\"景泰县\"}]},{\"n\":\"天水\",\"a\":[{\"s\":\"秦城区\"},{\"s\":\"麦积区\"},{\"s\":\"清水县\"},{\"s\":\"秦安县\"},{\"s\":\"甘谷县\"},{\"s\":\"武山县\"},{\"s\":\"张家川回族自治县\"}]},{\"n\":\"武威\",\"a\":[{\"s\":\"凉州区\"},{\"s\":\"民勤县\"},{\"s\":\"古浪县\"},{\"s\":\"天祝藏族自治县\"}]},{\"n\":\"张掖\",\"a\":[{\"s\":\"甘州区\"},{\"s\":\"肃南裕固族自治县\"},{\"s\":\"民乐县\"},{\"s\":\"临泽县\"},{\"s\":\"高台县\"},{\"s\":\"山丹县\"}]},{\"n\":\"平凉\",\"a\":[{\"s\":\"崆峒区\"},{\"s\":\"泾川县\"},{\"s\":\"灵台县\"},{\"s\":\"崇信县\"},{\"s\":\"华亭县\"},{\"s\":\"庄浪县\"},{\"s\":\"静宁县\"}]},{\"n\":\"酒泉\",\"a\":[{\"s\":\"肃州区\"},{\"s\":\"金塔县\"},{\"s\":\"瓜州县\"},{\"s\":\"肃北蒙古族自治县\"},{\"s\":\"阿克塞哈萨克族自治县\"},{\"s\":\"玉门市\"},{\"s\":\"敦煌市\"}]},{\"n\":\"庆阳\",\"a\":[{\"s\":\"西峰区\"},{\"s\":\"庆城县\"},{\"s\":\"环县\"},{\"s\":\"华池县\"},{\"s\":\"合水县\"},{\"s\":\"正宁县\"},{\"s\":\"宁县\"},{\"s\":\"镇原县\"}]},{\"n\":\"定西\",\"a\":[{\"s\":\"安定区\"},{\"s\":\"通渭县\"},{\"s\":\"陇西县\"},{\"s\":\"渭源县\"},{\"s\":\"临洮县\"},{\"s\":\"漳县\"},{\"s\":\"岷县\"}]},{\"n\":\"陇南\",\"a\":[{\"s\":\"武都区\"},{\"s\":\"成县\"},{\"s\":\"文县\"},{\"s\":\"宕昌县\"},{\"s\":\"康县\"},{\"s\":\"西和县\"},{\"s\":\"礼县\"},{\"s\":\"徽县\"},{\"s\":\"两当县\"}]},{\"n\":\"临夏回族自治州甘南藏族自治州\",\"a\":[{\"s\":\"临夏市\"},{\"s\":\"临夏县\"},{\"s\":\"康乐县\"},{\"s\":\"永靖县\"},{\"s\":\"广河县\"},{\"s\":\"和政县\"},{\"s\":\"东乡族自治县\"},{\"s\":\"积石山保安族东乡族撒拉族自治县\"}]},{\"n\":\"甘南\",\"a\":[{\"s\":\"合作市\"},{\"s\":\"临潭县\"},{\"s\":\"卓尼县\"},{\"s\":\"舟曲县\"},{\"s\":\"迭部县\"},{\"s\":\"玛曲县\"},{\"s\":\"碌曲县\"},{\"s\":\"夏河县\"}]}]},{\"p\":\"青海省\",\"c\":[{\"n\":\"西宁\",\"a\":[{\"s\":\"城东区\"},{\"s\":\"城中区\"},{\"s\":\"城西区\"},{\"s\":\"城北区\"},{\"s\":\"大通回族土族自治县\"},{\"s\":\"湟中县\"},{\"s\":\"湟源县\"}]},{\"n\":\"海东\",\"a\":[{\"s\":\"平安县\"},{\"s\":\"民和回族土族自治县\"},{\"s\":\"乐都县\"},{\"s\":\"互助土族自治县\"},{\"s\":\"化隆回族自治县\"},{\"s\":\"循化撒拉族自治县\"}]},{\"n\":\"海北\",\"a\":[{\"s\":\"门源回族自治县\"},{\"s\":\"祁连县\"},{\"s\":\"海晏县\"},{\"s\":\"刚察县\"}]},{\"n\":\"黄南藏族自治州海北藏族自治州\",\"a\":[{\"s\":\"同仁县\"},{\"s\":\"尖扎县\"},{\"s\":\"泽库县\"},{\"s\":\"河南蒙古族自治县\"}]},{\"n\":\"海南藏族自治州\",\"a\":[{\"s\":\"共和县\"},{\"s\":\"同德县\"},{\"s\":\"贵德县\"},{\"s\":\"兴海县\"},{\"s\":\"贵南县\"}]},{\"n\":\"果洛藏族自治州\",\"a\":[{\"s\":\"玛沁县\"},{\"s\":\"班玛县\"},{\"s\":\"甘德县\"},{\"s\":\"达日县\"},{\"s\":\"久治县\"},{\"s\":\"玛多县\"}]},{\"n\":\"玉树藏族自治州\",\"a\":[{\"s\":\"玉树县\"},{\"s\":\"杂多县\"},{\"s\":\"称多县\"},{\"s\":\"治多县\"},{\"s\":\"囊谦县\"},{\"s\":\"曲麻莱县\"}]},{\"n\":\"海西蒙古族藏族自治州\",\"a\":[{\"s\":\"格尔木市\"},{\"s\":\"德令哈市\"},{\"s\":\"乌兰县\"},{\"s\":\"都兰县\"},{\"s\":\"天峻县\"}]}]},{\"p\":\"宁夏省\",\"c\":[{\"n\":\"银川\",\"a\":[{\"s\":\"兴庆区\"},{\"s\":\"西夏区\"},{\"s\":\"金凤区\"},{\"s\":\"永宁县\"},{\"s\":\"贺兰县\"},{\"s\":\"灵武市\"}]},{\"n\":\"石嘴山\",\"a\":[{\"s\":\"大武口区\"},{\"s\":\"惠农区\"},{\"s\":\"平罗县\"}]},{\"n\":\"吴忠\",\"a\":[{\"s\":\"利通区\"},{\"s\":\"红寺堡区\"},{\"s\":\"盐池县\"},{\"s\":\"同心县\"},{\"s\":\"青铜峡市\"}]},{\"n\":\"固原\",\"a\":[{\"s\":\"原州区\"},{\"s\":\"西吉县\"},{\"s\":\"隆德县\"},{\"s\":\"泾源县\"},{\"s\":\"彭阳县\"}]},{\"n\":\"中卫\",\"a\":[{\"s\":\"沙坡头区\"},{\"s\":\"中宁县\"},{\"s\":\"海原县\"}]}]},{\"p\":\"新疆\",\"c\":[{\"n\":\"乌鲁木齐\",\"a\":[{\"s\":\"天山区\"},{\"s\":\"沙依巴克区\"},{\"s\":\"新市区\"},{\"s\":\"水磨沟区\"},{\"s\":\"头屯河区\"},{\"s\":\"达坂城区\"},{\"s\":\"米东区\"},{\"s\":\"乌鲁木齐县\"}]},{\"n\":\"克拉玛依\",\"a\":[{\"s\":\"独山子区\"},{\"s\":\"克拉玛依区\"},{\"s\":\"白碱滩区\"},{\"s\":\"乌尔禾区\"}]},{\"n\":\"吐鲁番\",\"a\":[{\"s\":\"吐鲁番市\"},{\"s\":\"鄯善县\"},{\"s\":\"托克逊县\"}]},{\"n\":\"哈密\",\"a\":[{\"s\":\"哈密市\"},{\"s\":\"巴里坤哈萨克自治县\"},{\"s\":\"伊吾县\"}]},{\"n\":\"昌吉回族自治州\",\"a\":[{\"s\":\"昌吉市\"},{\"s\":\"阜康市\"},{\"s\":\"呼图壁县\"},{\"s\":\"玛纳斯县\"},{\"s\":\"奇台县\"},{\"s\":\"吉木萨尔县\"},{\"s\":\"木垒哈萨克自治县\"}]},{\"n\":\"博尔塔拉蒙古自治州\",\"a\":[{\"s\":\"博乐市\"},{\"s\":\"精河县\"},{\"s\":\"温泉县\"}]},{\"n\":\"巴音郭楞蒙古自治州\",\"a\":[{\"s\":\"库尔勒市\"},{\"s\":\"轮台县\"},{\"s\":\"尉犁县\"},{\"s\":\"若羌县\"},{\"s\":\"且末县\"},{\"s\":\"焉耆回族自治县\"},{\"s\":\"和静县\"},{\"s\":\"和硕县\"},{\"s\":\"博湖县\"}]},{\"n\":\"阿克苏\",\"a\":[{\"s\":\"阿克苏市\"},{\"s\":\"温宿县\"},{\"s\":\"库车县\"},{\"s\":\"沙雅县\"},{\"s\":\"新和县\"},{\"s\":\"拜城县\"},{\"s\":\"乌什县\"},{\"s\":\"阿瓦提县\"},{\"s\":\"柯坪县\"}]},{\"n\":\"克孜勒苏柯尔克孜自治州\",\"a\":[{\"s\":\"阿图什市\"},{\"s\":\"阿克陶县\"},{\"s\":\"阿合奇县\"},{\"s\":\"乌恰县\"}]},{\"n\":\"喀什\",\"a\":[{\"s\":\"喀什市\"},{\"s\":\"疏附县\"},{\"s\":\"疏勒县\"},{\"s\":\"英吉沙县\"},{\"s\":\"泽普县\"},{\"s\":\"莎车县\"},{\"s\":\"叶城县\"},{\"s\":\"麦盖提县\"},{\"s\":\"岳普湖县\"},{\"s\":\"伽师县\"},{\"s\":\"巴楚县\"},{\"s\":\"塔什库尔干县塔吉克自治\"}]},{\"n\":\"和田\",\"a\":[{\"s\":\"和田市\"},{\"s\":\"和田县\"},{\"s\":\"墨玉县\"},{\"s\":\"皮山县\"},{\"s\":\"洛浦县\"},{\"s\":\"策勒县\"},{\"s\":\"于田县\"},{\"s\":\"民丰县\"}]},{\"n\":\"伊犁哈萨克自治州\",\"a\":[{\"s\":\"伊宁市\"},{\"s\":\"奎屯市\"},{\"s\":\"伊宁县\"},{\"s\":\"察布查尔锡伯自治县\"},{\"s\":\"霍城县\"},{\"s\":\"巩留县\"},{\"s\":\"新源县\"},{\"s\":\"昭苏县\"},{\"s\":\"特克斯县\"},{\"s\":\"尼勒克县\"}]},{\"n\":\"塔城\",\"a\":[{\"s\":\"塔城市\"},{\"s\":\"乌苏市\"},{\"s\":\"额敏县\"},{\"s\":\"沙湾县\"},{\"s\":\"托里县\"},{\"s\":\"裕民县\"},{\"s\":\"和布克赛尔蒙古自治县\"}]},{\"n\":\"阿勒泰\",\"a\":[{\"s\":\"阿勒泰市\"},{\"s\":\"布尔津县\"},{\"s\":\"富蕴县\"},{\"s\":\"福海县\"},{\"s\":\"哈巴河县\"},{\"s\":\"青河县\"},{\"s\":\"吉木乃县\"}]},{\"n\":\"石河子\",\"a\":[{\"s\":\"石河子\"}]},{\"n\":\"阿拉尔\",\"a\":[{\"s\":\"阿拉尔\"}]},{\"n\":\"图木舒克\",\"a\":[{\"s\":\"图木舒克\"}]},{\"n\":\"五家渠\",\"a\":[{\"s\":\"五家渠\"}]}]},{\"p\":\"香港\",\"c\":[{\"n\":\"中西区\"},{\"n\":\"东区\"},{\"n\":\"九龙城区\"},{\"n\":\"观塘区\"},{\"n\":\"南区\"},{\"n\":\"深水区\"},{\"n\":\"湾仔区\"},{\"n\":\"黄大仙区\"},{\"n\":\"油尖旺区\"},{\"n\":\"离岛区\"},{\"n\":\"葵青区\"},{\"n\":\"北区\"},{\"n\":\"西贡区\"},{\"n\":\"沙田区\"},{\"n\":\"屯门区\"},{\"n\":\"大埔区\"},{\"n\":\"荃湾区\"},{\"n\":\"元朗区\"}]},{\"p\":\"澳门\",\"c\":[{\"n\":\"花地玛堂区\"},{\"n\":\"圣安多尼堂区\"},{\"n\":\"大堂区\"},{\"n\":\"望德堂区\"},{\"n\":\"风顺堂区\"},{\"n\":\"嘉模堂区\"},{\"n\":\"圣方济各堂区\"}]},{\"p\":\"台湾省\",\"c\":[{\"n\":\"台北市\"},{\"n\":\"高雄市\"},{\"n\":\"基隆市\"},{\"n\":\"台中市\"},{\"n\":\"台南市\"},{\"n\":\"新竹市\"},{\"n\":\"嘉义市\"},{\"n\":\"台北县\"},{\"n\":\"宜兰县\"},{\"n\":\"新竹县\"},{\"n\":\"桃园县\"},{\"n\":\"苗栗县\"},{\"n\":\"台中县\"},{\"n\":\"彰化县\"},{\"n\":\"南投县\"},{\"n\":\"嘉义县\"},{\"n\":\"云林县\"},{\"n\":\"台南县\"},{\"n\":\"高雄县\"},{\"n\":\"屏东县\"},{\"n\":\"台东县\"},{\"n\":\"花莲县\"},{\"n\":\"澎湖县\"}]},{\"p\":\"国外\"}]}");/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ProvCityBoxWarp"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"ProvCityBoxBg",on:{"click":function($event){return _vm.cityCancel()},"touchmove":_vm._stopDef,"mousewheel":_vm._stopDef}}),_vm._v(" "),_c('transition',{attrs:{"name":"expand-select"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"ProvCityBox",on:{"mousewheel":_vm._stopDef}},[_c('div',{staticClass:"ProvCityHeader"},[_c('div',{staticClass:"ProvCityHeaderCancle",on:{"click":function($event){return _vm.cityCancel()}}},[_vm._v(_vm._s(_vm.cancel))]),_vm._v("\n        "+_vm._s(_vm.title)+"\n        "),_c('div',{staticClass:"ProvCityHeaderConfirm",on:{"click":function($event){return _vm.submit()}}},[_vm._v(_vm._s(_vm.confirm))])]),_vm._v(" "),_c('div',{staticClass:"ProvCityContent"},[_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"provinceList",class:{'province_dragging': _vm.provinceState.dragging},style:({'transform' : 'translate3d(0,' + _vm.provinceState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('province', $event)},"mousedown":function($event){return _vm._onTouchStart('province', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.provinceState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.provinceState.selectedId,
                'node1': Math.abs(index - _vm.provinceState.index) == 1,
                'node2': Math.abs(index - _vm.provinceState.index) == 2,
                'node3': Math.abs(index - _vm.provinceState.index) >= 3
              }},[_vm._v(_vm._s(item.p)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)]),_vm._v(" "),_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"cityList",class:{'city_dragging': _vm.cityState.dragging},style:({'transform' : 'translate3d(0,' + _vm.cityState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('city', $event)},"mousedown":function($event){return _vm._onTouchStart('city', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.cityState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.cityState.selectedId,
                'node1': Math.abs(index - _vm.cityState.index) == 1,
                'node2': Math.abs(index - _vm.cityState.index) == 2,
                'node3': Math.abs(index - _vm.cityState.index) >= 3
              }},[_vm._v(_vm._s(item.n)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)]),_vm._v(" "),_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"areaList",class:{'area_dragging': _vm.areaState.dragging},style:({'transform' : 'translate3d(0,' + _vm.areaState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('area', $event)},"mousedown":function($event){return _vm._onTouchStart('area', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.areaState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.areaState.selectedId,
                'node1': Math.abs(index - _vm.areaState.index) == 1,
                'node2': Math.abs(index - _vm.areaState.index) == 2,
                'node3': Math.abs(index - _vm.areaState.index) >= 3
              }},[_vm._v(_vm._s(item.s)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)])]),_vm._v(" "),_c('hr',{staticClass:"ProvCitySelectedTop"}),_vm._v(" "),_c('hr',{staticClass:"ProvCitySelectedBottom"})])])],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"avatar arrow",on:{"click":_vm.reviseHeadImg}},[_c('div',[_vm._v("头像")]),_vm._v(" "),(!_vm.personalInfo.headImgUrl)?_c('img',{attrs:{"src":__webpack_require__(2444)}}):_vm._e(),_vm._v(" "),(_vm.personalInfo.headImgUrl)?_c('img',{attrs:{"src":_vm.personalInfo.headImgUrl,"alt":""}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"infoWrap",staticStyle:{"margin-bottom":"0.8rem"}},[_c('div',{staticClass:"item arrow border-bottom-1px",on:{"click":function($event){_vm.dialogShow=true;_vm.dialogConfig.flag=1;_vm.dialogConfig.title='昵称';_vm.uname=_vm.personalInfo.nickname;_vm.editType=1}}},[_c('div',{staticClass:"title"},[_vm._v("昵称")]),_vm._v(" "),(_vm.personalInfo.nickname)?_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.personalInfo.nickname))]):_c('div',{staticClass:"content",staticStyle:{"color":"#999999"}},[_vm._v("请输入昵称")])]),_vm._v(" "),_c('div',{staticClass:"item arrow border-bottom-1px",on:{"click":function($event){_vm.dialogShow=true;_vm.dialogConfig.flag=1;_vm.dialogConfig.title='真实姓名';_vm.uname=_vm.personalInfo.uname;_vm.editType=2}}},[_c('div',{staticClass:"title"},[_vm._v("姓名")]),_vm._v(" "),(_vm.personalInfo.uname)?_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.personalInfo.uname))]):_c('div',{staticClass:"content",staticStyle:{"color":"#999999"}},[_vm._v("请输入真实姓名")])]),_vm._v(" "),_c('div',{staticClass:"item arrow border-bottom-1px",on:{"click":function($event){return _vm.toChangePhone()}}},[_c('div',{staticClass:"title"},[_vm._v("手机号")]),_vm._v(" "),(_vm.personalInfo.uphone)?_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.personalInfo.uphone))]):_c('div',{staticClass:"content",staticStyle:{"color":"#999999"}},[_vm._v("请输入手机号码")])]),_vm._v(" "),_c('div',{staticClass:"item arrow border-bottom-1px",on:{"click":_vm.showAreaFn}},[_c('div',{staticClass:"title"},[_vm._v("地址")]),_vm._v(" "),(_vm.personalInfo.province)?_c('div',{staticClass:"content"},[_vm._v("\n          "+_vm._s(_vm.personalInfo.province)+_vm._s(_vm.personalInfo.city)+_vm._s(_vm.personalInfo.area)+"\n        ")]):_c('div',{staticClass:"content",staticStyle:{"color":"#999999"}},[_vm._v("请选择")])]),_vm._v(" "),_c('div',{staticClass:"item arrow",on:{"click":function($event){return _vm.showPopupFn('identity')}}},[_c('div',{staticClass:"title"},[_vm._v("职业")]),_vm._v(" "),(_vm.resignText)?_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.resignText))]):_c('div',{staticClass:"content",staticStyle:{"color":"#999999"}},[_vm._v("请选择")])])]),_vm._v(" "),_c('Date-time-picker',{attrs:{"show":_vm.showDateTime,"title":"生日"},on:{"areaCancel":function($event){_vm.showDateTime=false;},"checkedCity":_vm.saveBirthday}}),_vm._v(" "),(_vm.dialogShow)?_c('Dialog-component',{attrs:{"type":"confirm","title":_vm.dialogConfig.title,"confirm-button":_vm.dialogConfig.confirmButton,"cancel-button":_vm.dialogConfig.cancelButton},on:{"dialogCancel":function($event){_vm.dialogShow=false;},"dialogSave":function($event){return _vm.savePersonInfo(true)}}},[(_vm.dialogConfig.flag == 1)?_c('div',{staticClass:"newForm"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.uname),expression:"uname"},{name:"focus",rawName:"v-focus"}],staticStyle:{"padding-left":"4px"},attrs:{"type":"text","placeholder":_vm.editType==1?'请输入昵称':'请输入真实姓名'},domProps:{"value":(_vm.uname)},on:{"input":function($event){if($event.target.composing){ return; }_vm.uname=$event.target.value}}})]):_vm._e(),_vm._v(" "),(_vm.dialogConfig.flag == 2)?_c('div',{staticClass:"newForm"},[_c('span',{staticStyle:{"text-indent":"0px","text-align":"center"}},[_vm._v("门店规模")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.storeInfo.storeSize),expression:"storeInfo.storeSize"},{name:"focus",rawName:"v-focus"}],staticStyle:{"padding-left":"20px","float":"left","width":"80%"},attrs:{"type":"text","placeholder":"请输入"},domProps:{"value":(_vm.storeInfo.storeSize)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.$set(_vm.storeInfo, "storeSize", $event.target.value)},function($event){return _vm.formatNumber($event, 'storeSize')}]}}),_vm._v(" "),_c('p',{staticClass:"squa"},[_vm._v("平方米")])]):_vm._e()]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"popup",attrs:{"round":"","safe-area-inset-bottom":"","position":"bottom"},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[(_vm.popupType === 'sex')?_c('van-picker',{ref:"pickerRef",attrs:{"title":"性别","show-toolbar":"","default-index":_vm.personalInfo.sex,"columns":_vm.sexColumns},on:{"confirm":_vm.onConfirm,"cancel":_vm.onCancel}}):_vm._e(),_vm._v(" "),(_vm.popupType === 'identity')?_c('van-picker',{ref:"pickerRef",attrs:{"title":"身份","show-toolbar":"","default-index":_vm.identityIndex,"columns":_vm.identityList.map(function (item) { return item.dictValue; })},on:{"confirm":_vm.onConfirm,"cancel":_vm.onCancel}}):_vm._e(),_vm._v(" "),(_vm.popupType === 'storeNature')?_c('van-picker',{ref:"pickerRef",attrs:{"title":"门店性质","show-toolbar":"","default-index":_vm.storeNatureIndex,"columns":_vm.storeNatureList.map(function (item) { return item.natureName; })},on:{"confirm":_vm.onConfirm,"cancel":_vm.onCancel}}):_vm._e(),_vm._v(" "),(_vm.popupType === 'business')?_c('div',{staticClass:"business"},[_c('div',{staticClass:"top"},[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.onCancel.apply(null, arguments)}}},[_vm._v("取消")]),_vm._v(" "),_c('p',[_vm._v("业务范围")]),_vm._v(" "),_c('div',{staticClass:"confirm",on:{"click":_vm.confirmBusiness}},[_vm._v("确认")])]),_vm._v(" "),_c('ul',{staticClass:"bottom"},_vm._l((_vm.businessList),function(item){return _c('li',{key:item.value,class:{'active': item.active},on:{"click":function($event){$event.stopPropagation();return _vm.selectBusiness(item)}}},[_vm._v("\n            "+_vm._s(item.name)+"\n            "),_c('div',{staticClass:"icon"})])}),0)]):_vm._e(),_vm._v(" "),(_vm.popupType === 'address')?_c('div',{staticClass:"address"},[_c('div',{staticClass:"top"},[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.onCancel.apply(null, arguments)}}},[_vm._v("取消")]),_vm._v(" "),_c('p',[_vm._v("门店地址")]),_vm._v(" "),_c('div',{staticClass:"confirm",on:{"click":_vm.confirmAddress}},[_vm._v("确认")])]),_vm._v(" "),_c('div',{staticClass:"city",on:{"click":function($event){$event.stopPropagation();return _vm.showAreaFn.apply(null, arguments)}}},[_c('span',[_vm._v("所在地区")]),_vm._v(" "),_c('div',{staticClass:"cont"},[_vm._v(_vm._s(_vm.storeInfo.province)+_vm._s(_vm.storeInfo.city)+_vm._s(_vm.storeInfo.dist))]),_vm._v(" "),_c('div',{staticClass:"arrow"})]),_vm._v(" "),_c('div',{staticClass:"stree"},[_c('div',{staticClass:"title"},[_vm._v("详细地址")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.storeInfo.address),expression:"storeInfo.address"}],staticClass:"text",attrs:{"placeholder":"请输入详细地址"},domProps:{"value":(_vm.storeInfo.address)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.storeInfo, "address", $event.target.value)}}})])]):_vm._e()],1),_vm._v(" "),_c('Vue-area',{attrs:{"show":_vm.showArea,"result":_vm.addressResult},on:{"checkedCity":_vm.selectCity,"areaCancel":function($event){_vm.showArea = false}}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/tx.82ae813.png";module.exports = __webpack_require__.p + "static/img/copy.ec0b835.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(414);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ae6e2b3e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1014);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2449)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ae6e2b3e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ae6e2b3e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ae6e2b3e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2450);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7001fd6c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mask[data-v-ae6e2b3e]{top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);position:fixed;z-index:999}.mask .commentBox[data-v-ae6e2b3e]{-webkit-transition:all .3s ease;transition:all .3s ease;width:100%;background:#fff;margin:0 auto;position:absolute;bottom:0;left:0}.mask .commentBox .title[data-v-ae6e2b3e]{height:2.4rem;line-height:2.4rem;background-color:#f5f5f5;position:relative}.mask .commentBox .title>.center[data-v-ae6e2b3e]{text-align:center;font-family:PingFangSC-Regular;font-size:.9rem;color:#333}.mask .commentBox .title>span[data-v-ae6e2b3e]{position:absolute;top:0;height:100%;line-height:2.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#666}.mask .commentBox .title .cancel[data-v-ae6e2b3e]{left:0;padding-left:.8rem}.mask .commentBox .title .submit[data-v-ae6e2b3e]{color:#2b82f7;right:0;padding-right:.8rem}.mask .commentBox .toolList[data-v-ae6e2b3e]{padding:.3rem .8rem .725rem;border-bottom:1px solid #d9d9d9;position:relative}.mask .commentBox .toolList img[data-v-ae6e2b3e]{width:1.3rem;height:1.3rem}.mask .commentBox .toolList .uploadContainer[data-v-ae6e2b3e]{display:inline-block;position:relative;margin-left:1rem}.mask .commentBox .toolList .uploadContainer .putPhoto[data-v-ae6e2b3e]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.mask .commentBox .toolList .uploadContainer>img[data-v-ae6e2b3e]{pointer-events:none}.mask .commentBox .toolList .faceBox[data-v-ae6e2b3e]{position:absolute;Rz-index:2;top:100%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:100%;margin:0 auto;height:360px;overflow-y:scroll;background-color:#fff;padding:.6rem}.mask .commentBox .toolList .faceBox li[data-v-ae6e2b3e]{float:left}.mask .commentBox .toolList .faceBox li img[data-v-ae6e2b3e]{margin-right:.28rem;margin-bottom:.28rem;pointer-events:none}.mask .commentBox .inputArea[data-v-ae6e2b3e],.mask .commentBox .inputBox[data-v-ae6e2b3e]{width:95%;height:8rem;margin:0 auto;display:block;margin-top:12px;padding-left:7px;border:none;font-size:16px;color:#333}.mask .commentBox .controlBox[data-v-ae6e2b3e]{width:100%;margin-top:14px;border-top:1px solid #eee;height:56px;position:relative}.mask .commentBox .controlBox[data-v-ae6e2b3e]:after{content:\"\";width:1px;height:27px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#b9b9b9}.mask .commentBox .controlBox span[data-v-ae6e2b3e]{font-size:18px;color:#666;width:50%;text-align:center;line-height:56px;height:100px;float:left}.mask .commentBox .controlBox span[data-v-ae6e2b3e]:nth-of-type(2){color:#2b82f7}.mask .commentBox .imageList[data-v-ae6e2b3e]{padding-top:1rem;padding-left:.8rem}.mask .commentBox .imageList>.item[data-v-ae6e2b3e]{width:3.75rem;height:3.75rem;position:relative}.mask .commentBox .imageList>.item>img[data-v-ae6e2b3e]{width:100%;height:100%}.mask .commentBox .imageList>.item>span[data-v-ae6e2b3e]{position:absolute;width:.8rem;height:.8rem;top:-.4rem;right:-.4rem;background-image:url(" + escape(__webpack_require__(261)) + ");background-repeat:no-repeat;background-size:100%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/图片删除.aaabcb4.png";/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _emotion = _interopRequireDefault(__webpack_require__(1494));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      boxHeight: 0,
      faceList1: [{
        text: '[微笑]',
        key: 'weixiao'
      }, {
        text: '[撇嘴]',
        key: 'pizui'
      }, {
        text: '[色]',
        key: 'se'
      }, {
        text: '[发呆]',
        key: 'deyi'
      }, {
        text: '[流泪]',
        key: 'liulei'
      }, {
        text: '[害羞]',
        key: 'haixiu'
      }, {
        text: '[闭嘴]',
        key: 'bizui'
      }, {
        text: '[睡觉]',
        key: 'shuijiao'
      }, {
        text: '[大哭]',
        key: 'daku'
      }, {
        text: '[尴尬]',
        key: 'gangga'
      }, {
        text: '[大怒]',
        key: 'danu'
      }, {
        text: '[调皮]',
        key: 'tiaopi'
      }, {
        text: '[呲牙]',
        key: 'ciya'
      }, {
        text: '[惊讶]',
        key: 'jingya'
      }, {
        text: '[难过]',
        key: 'nanguo'
      }, {
        text: '[酷]',
        key: 'ku'
      }, {
        text: '[冷汗]',
        key: 'lenghan'
      }, {
        text: '[抓狂]',
        key: 'zhuakuang'
      }, {
        text: '[吐]',
        key: 'tu'
      }, {
        text: '[偷笑]',
        key: 'touxiao'
      }, {
        text: '[可爱]',
        key: 'keai'
      }, {
        text: '[白眼]',
        key: 'baiyan'
      }, {
        text: '[饥饿]',
        key: 'er'
      }, {
        text: '[困]',
        key: 'kun'
      }, {
        text: '[惊恐]',
        key: 'jingkong'
      }, {
        text: '[流汗]',
        key: 'liuhan'
      }, {
        text: '[憨笑]',
        key: 'haha'
      }, {
        text: '[大兵]',
        key: 'dabing'
      }, {
        text: '[奋斗]',
        key: 'fendou'
      }, {
        text: '[咒骂]',
        key: 'ma'
      }, {
        text: '[疑问]',
        key: 'wen'
      }, {
        text: '[嘘]',
        key: 'xu'
      }, {
        text: '[晕]',
        key: 'yun'
      }, {
        text: '[折磨]',
        key: 'zhemo'
      }, {
        text: '[衰]',
        key: 'shuai'
      }, {
        text: '[骷髅]',
        key: 'kulou'
      }, {
        text: '[敲打]',
        key: 'da'
      }, {
        text: '[擦汗]',
        key: 'cahan'
      }, {
        text: '[挖鼻]',
        key: 'wabi'
      }, {
        text: '[鼓掌]',
        key: 'guzhang'
      }, {
        text: '[糗大了]',
        key: 'qioudale'
      }, {
        text: '[坏笑]',
        key: 'huaixiao'
      }, {
        text: '[左哼哼]',
        key: 'zuohengheng'
      }, {
        text: '[右哼哼]',
        key: 'youhengheng'
      }, {
        text: '[哈欠]',
        key: 'haqian'
      }, {
        text: '[鄙视]',
        key: 'bishi'
      }, {
        text: '[委屈]',
        key: 'weiqu'
      }, {
        text: '[哭了]',
        key: 'ku'
      }, {
        text: '[快哭了]',
        key: 'kuaikule'
      }, {
        text: '[阴险]',
        key: 'yinxian'
      }, {
        text: '[亲亲]',
        key: 'qinqin'
      }, {
        text: '[亲吻]',
        key: 'kiss'
      }, {
        text: '[吓]',
        key: 'xia'
      }, {
        text: '[可怜]',
        key: 'kelian'
      }, {
        text: '[菜刀]',
        key: 'caidao'
      }, {
        text: '[西瓜]',
        key: 'xigua'
      }, {
        text: '[啤酒]',
        key: 'pijiu'
      }, {
        text: '[篮球]',
        key: 'lanqiu'
      }, {
        text: '[乒乓]',
        key: 'pingpang'
      }, {
        text: '[咖啡]',
        key: 'kafei'
      }, {
        text: '[饭]',
        key: 'fan'
      }, {
        text: '[猪头]',
        key: 'zhutou'
      }, {
        text: '[玫瑰]',
        key: 'hua'
      }, {
        text: '[凋谢]',
        key: 'diaoxie'
      }, {
        text: '[爱心]',
        key: 'love'
      }, {
        text: '[心碎]',
        key: 'xinsui'
      }, {
        text: '[蛋糕]',
        key: 'dangao'
      }, {
        text: '[闪电]',
        key: 'shandian'
      }, {
        text: '[地雷]',
        key: 'zhadan'
      }, {
        text: '[刀]',
        key: 'dao'
      }, {
        text: '[足球]',
        key: 'qiu'
      }, {
        text: '[虫]',
        key: 'chong'
      }, {
        text: '[便便]',
        key: 'dabian'
      }, {
        text: '[月亮]',
        key: 'yueliang'
      }, {
        text: '[太阳]',
        key: 'taiyang'
      }, {
        text: '[礼物]',
        key: 'liwu'
      }, {
        text: '[拥抱]',
        key: 'yongbao'
      }, {
        text: '[强]',
        key: 'qiang'
      }, {
        text: '[弱]',
        key: 'ruo'
      }, {
        text: '[握手]',
        key: 'woshou'
      }, {
        text: '[胜利]',
        key: 'shengli'
      }, {
        text: '[佩服]',
        key: 'peifu'
      }, {
        text: '[勾引]',
        key: 'gouyin'
      }, {
        text: '[拳头]',
        key: 'quantou'
      }, {
        text: '[差劲]',
        key: 'chajin'
      }, {
        text: '[干杯]',
        key: 'cheer'
      }, {
        text: '[NO]',
        key: 'no'
      }, {
        text: '[OK]',
        key: 'ok'
      }, {
        text: '[给力]',
        key: 'geili'
      }, {
        text: '[飞吻]',
        key: 'feiwen'
      }, {
        text: '[跳跳]',
        key: 'tiao'
      }, {
        text: '[发抖]',
        key: 'fadou'
      }, {
        text: '[怄火]',
        key: 'dajiao'
      }, {
        text: '[转圈]',
        key: 'zhuanquan'
      }, {
        text: '[磕头]',
        key: 'ketou'
      }, {
        text: '[回头]',
        key: 'huitou'
      }, {
        text: '[跳绳]',
        key: 'tiaosheng'
      }, {
        text: '[挥手]',
        key: 'huishou'
      }, {
        text: '[激动]',
        key: 'jidong'
      }, {
        text: '[街舞]',
        key: 'tiaowu'
      }, {
        text: '[献吻]',
        key: 'xianwen'
      }, {
        text: '[左太极]',
        key: 'youtaiji'
      }, {
        text: '[右太极]',
        key: 'zuotaiji'
      }],
      faceList: _emotion.default,
      commentMessage: '',
      showFaceList: false,
      submiting: false,
      imgList: [],
      bucketUrl: '',
      token: ''
    };
  },
  watch: {
    commentMessage: function commentMessage() {
      if (this.commentMessage.length > 200) {
        this.commentMessage = this.commentMessage.slice(0, 200);
        (0, _mintUi.Toast)({
          message: '评论内容最多200字',
          position: 'middle',
          duration: 1500
        });
      }
    }
  },
  created: function created() {},
  mounted: function mounted() {
    var _this = this;
    this.$nextTick(function () {
      setTimeout(function () {
        _this.boxHeight = '100%';
      }, 50);
    });
  },
  methods: {
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl) {
      this.$store.commit('openImgView', imgUrl);
    },
    /** 图片上传成功 */upload: function upload(e) {
      var that = this;
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
        var name;
        if (userInfo.uname) {
          name = '@' + userInfo.uname;
        } else if (userInfo.userName) {
          name = '@' + userInfo.userName;
        } else {
          name = '@用户' + userInfo.userId;
        }
        that._Util.watermarkImg(e, {
          txt: name,
          direction: 'Center',
          isLogo: true,
          model: 'community'
        }, function (fileData) {
          var formData = new FormData();
          console.log(fileData);
          formData.append('file', fileData);
          formData.append('token', that.token);
          $.ajax({
            url: '/api/blade-resource/oss/endpoint/put-file-attach-map-notsize',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false,
            headers: {
              'Authorization': 'Basic c2FiZXI6ZWVBNWtjY1o1Q21tTnpfb3hvTUU=',
              'Blade-Auth': 'bearer ' + localStorage.getItem('wxMiniAppToken')
            }
          }).done(function (res) {
            _mintUi.Indicator.close();
            console.log(res);
            that.imgList.push(res.data.link);
          }).fail(function () {});
        });
      }
    },
    // 点击选择表情
    showFace: function showFace() {
      event.preventDefault();
      this.showFaceList = !this.showFaceList;
    },
    /** 提交留言 */submitEvent: function submitEvent() {
      var _this2 = this;
      if (!this.commentMessage.trim() && this.imgList.length === 0) {
        (0, _mintUi.Toast)({
          message: '请输入有效内容',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (this.submiting) return;
      this.submiting = true;
      this._Util.post(this._Api.POST_COMMUNITY_ADD_ARTICLE_COMMENT, {
        id: this.$route.query.articleId,
        content: this.commentMessage,
        fileList: this.imgList,
        type: 1
      }, function (data) {
        _this2.boxHeight = '0';
        (0, _mintUi.Toast)({
          message: '提交成功',
          position: 'bottom',
          duration: 1500
        });
        setTimeout(function () {
          _this2.$emit('submit');
        }, 300);
        _this2.submiting = false;
      }, function () {
        _this2.submiting = false;
      }, this);
    },
    /** 关闭评论框 */closeEvent: function closeEvent() {
      var _this3 = this;
      this.boxHeight = '0';
      setTimeout(function () {
        _this3.$emit('closeMask');
      }, 300);
    },
    /** 插入表情 */insertFace: function insertFace(item) {
      this.commentMessage += item.text;
      this.showFaceList = false;
    },
    /** 删除指定索引图片 */delImg: function delImg(i) {
      this.imgList.splice(i, 1);
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))module.exports = JSON.parse("[{\"name\":\"Expression_1\",\"text\":\"[微笑]\"},{\"name\":\"Expression_2\",\"text\":\"[撇嘴]\"},{\"name\":\"Expression_3\",\"text\":\"[色]\"},{\"name\":\"Expression_4\",\"text\":\"[发呆]\"},{\"name\":\"Expression_5\",\"text\":\"[得意]\"},{\"name\":\"Expression_6\",\"text\":\"[流泪]\"},{\"name\":\"Expression_7\",\"text\":\"[害羞]\"},{\"name\":\"Expression_8\",\"text\":\"[闭嘴]\"},{\"name\":\"Expression_9\",\"text\":\"[睡]\"},{\"name\":\"Expression_10\",\"text\":\"[大哭]\"},{\"name\":\"Expression_11\",\"text\":\"[尴尬]\"},{\"name\":\"Expression_12\",\"text\":\"[发怒]\"},{\"name\":\"Expression_13\",\"text\":\"[调皮]\"},{\"name\":\"Expression_14\",\"text\":\"[呲牙]\"},{\"name\":\"Expression_15\",\"text\":\"[惊讶]\"},{\"name\":\"Expression_16\",\"text\":\"[难过]\"},{\"name\":\"Expression_17\",\"text\":\"[酷]\"},{\"name\":\"Expression_18\",\"text\":\"[冷汗]\"},{\"name\":\"Expression_19\",\"text\":\"[抓狂]\"},{\"name\":\"Expression_20\",\"text\":\"[吐]\"},{\"name\":\"Expression_21\",\"text\":\"[偷笑]\"},{\"name\":\"Expression_22\",\"text\":\"[愉快]\"},{\"name\":\"Expression_23\",\"text\":\"[白眼]\"},{\"name\":\"Expression_24\",\"text\":\"[傲慢]\"},{\"name\":\"Expression_25\",\"text\":\"[饥饿]\"},{\"name\":\"Expression_26\",\"text\":\"[困]\"},{\"name\":\"Expression_27\",\"text\":\"[恐惧]\"},{\"name\":\"Expression_28\",\"text\":\"[流汗]\"},{\"name\":\"Expression_29\",\"text\":\"[憨笑]\"},{\"name\":\"Expression_30\",\"text\":\"[悠闲]\"},{\"name\":\"Expression_31\",\"text\":\"[奋斗]\"},{\"name\":\"Expression_32\",\"text\":\"[咒骂]\"},{\"name\":\"Expression_33\",\"text\":\"[疑问]\"},{\"name\":\"Expression_34\",\"text\":\"[嘘]\"},{\"name\":\"Expression_35\",\"text\":\"[晕]\"},{\"name\":\"Expression_36\",\"text\":\"[疯了]\"},{\"name\":\"Expression_37\",\"text\":\"[衰]\"},{\"name\":\"Expression_38\",\"text\":\"[骷髅]\"},{\"name\":\"Expression_39\",\"text\":\"[敲打]\"},{\"name\":\"Expression_40\",\"text\":\"[再见]\"},{\"name\":\"Expression_41\",\"text\":\"[擦汗]\"},{\"name\":\"Expression_42\",\"text\":\"[抠鼻]\"},{\"name\":\"Expression_43\",\"text\":\"[鼓掌]\"},{\"name\":\"Expression_44\",\"text\":\"[糗大了]\"},{\"name\":\"Expression_45\",\"text\":\"[坏笑]\"},{\"name\":\"Expression_46\",\"text\":\"[左哼哼]\"},{\"name\":\"Expression_47\",\"text\":\"[右哼哼]\"},{\"name\":\"Expression_48\",\"text\":\"[哈欠]\"},{\"name\":\"Expression_49\",\"text\":\"[鄙视]\"},{\"name\":\"Expression_50\",\"text\":\"[委屈]\"},{\"name\":\"Expression_51\",\"text\":\"[快哭了]\"},{\"name\":\"Expression_52\",\"text\":\"[阴险]\"},{\"name\":\"Expression_53\",\"text\":\"[亲亲]\"},{\"name\":\"Expression_54\",\"text\":\"[吓]\"},{\"name\":\"Expression_55\",\"text\":\"[可怜]\"},{\"name\":\"Expression_56\",\"text\":\"[菜刀]\"},{\"name\":\"Expression_57\",\"text\":\"[西瓜]\"},{\"name\":\"Expression_58\",\"text\":\"[啤酒]\"},{\"name\":\"Expression_59\",\"text\":\"[篮球]\"},{\"name\":\"Expression_60\",\"text\":\"[乒乓]\"},{\"name\":\"Expression_61\",\"text\":\"[咖啡]\"},{\"name\":\"Expression_62\",\"text\":\"[饭]\"},{\"name\":\"Expression_63\",\"text\":\"[猪头]\"},{\"name\":\"Expression_64\",\"text\":\"[玫瑰]\"},{\"name\":\"Expression_65\",\"text\":\"[凋谢]\"},{\"name\":\"Expression_66\",\"text\":\"[嘴唇]\"},{\"name\":\"Expression_67\",\"text\":\"[爱心]\"},{\"name\":\"Expression_68\",\"text\":\"[心碎]\"},{\"name\":\"Expression_69\",\"text\":\"[蛋糕]\"},{\"name\":\"Expression_70\",\"text\":\"[闪电]\"},{\"name\":\"Expression_71\",\"text\":\"[炸弹]\"},{\"name\":\"Expression_72\",\"text\":\"[刀]\"},{\"name\":\"Expression_73\",\"text\":\"[足球]\"},{\"name\":\"Expression_74\",\"text\":\"[瓢虫]\"},{\"name\":\"Expression_75\",\"text\":\"[便便]\"},{\"name\":\"Expression_76\",\"text\":\"[月亮]\"},{\"name\":\"Expression_77\",\"text\":\"[太阳]\"},{\"name\":\"Expression_78\",\"text\":\"[礼物]\"},{\"name\":\"Expression_79\",\"text\":\"[拥抱]\"},{\"name\":\"Expression_80\",\"text\":\"[强]\"},{\"name\":\"Expression_81\",\"text\":\"[弱]\"},{\"name\":\"Expression_82\",\"text\":\"[握手]\"},{\"name\":\"Expression_83\",\"text\":\"[胜利]\"},{\"name\":\"Expression_84\",\"text\":\"[抱拳]\"},{\"name\":\"Expression_85\",\"text\":\"[勾引]\"},{\"name\":\"Expression_86\",\"text\":\"[拳头]\"},{\"name\":\"Expression_87\",\"text\":\"[差劲]\"},{\"name\":\"Expression_88\",\"text\":\"[爱你]\"},{\"name\":\"Expression_89\",\"text\":\"[NO]\"},{\"name\":\"Expression_90\",\"text\":\"[OK]\"},{\"name\":\"Expression_91\",\"text\":\"[爱情]\"},{\"name\":\"Expression_92\",\"text\":\"[飞吻]\"},{\"name\":\"Expression_93\",\"text\":\"[跳跳]\"},{\"name\":\"Expression_94\",\"text\":\"[发抖]\"},{\"name\":\"Expression_95\",\"text\":\"[怄火]\"},{\"name\":\"Expression_96\",\"text\":\"[转圈]\"},{\"name\":\"Expression_97\",\"text\":\"[磕头]\"},{\"name\":\"Expression_98\",\"text\":\"[回头]\"},{\"name\":\"Expression_99\",\"text\":\"[跳绳]\"},{\"name\":\"Expression_100\",\"text\":\"[投降]\"},{\"name\":\"Expression_101\",\"text\":\"[激动]\"},{\"name\":\"Expression_102\",\"text\":\"[街舞]\"},{\"name\":\"Expression_103\",\"text\":\"[献吻]\"},{\"name\":\"Expression_104\",\"text\":\"[左太极]\"},{\"name\":\"Expression_105\",\"text\":\"[右太极]\"}]");/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask"},[_c('div',{staticClass:"commentBox",style:({'height': _vm.boxHeight})},[_c('div',{staticClass:"title"},[_c('div',{staticClass:"center"},[_vm._v("评论")]),_vm._v(" "),_c('span',{staticClass:"cancel",on:{"click":_vm.closeEvent}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"submit",on:{"click":_vm.submitEvent}},[_vm._v("提交")])]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.commentMessage),expression:"commentMessage",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],staticClass:"inputBox",attrs:{"id":"infocus","placeholder":"有什么想法和他交流一下吧..."},domProps:{"value":(_vm.commentMessage)},on:{"input":function($event){if($event.target.composing){ return; }_vm.commentMessage=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"toolList"},[_c('img',{attrs:{"indexValue":"1","src":__webpack_require__(1495)},on:{"click":function($event){return _vm.showFace()}}}),_vm._v(" "),(_vm.imgList.length===0)?_c('div',{staticClass:"uploadContainer",attrs:{"id":"container2"}},[_c('img',{staticStyle:{"margin-top":"0.025rem","height":"1.2rem"},attrs:{"src":__webpack_require__(1415)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",staticStyle:{"width":"100%","height":"100%"},attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})]):_c('div',{staticClass:"uploadContainer",attrs:{"id":"container2"}},[_c('img',{staticStyle:{"margin-top":"0.025rem","height":"1.2rem"},attrs:{"src":__webpack_require__(2451)}})]),_vm._v(" "),(_vm.showFaceList)?_c('ul',{staticClass:"faceBox"},_vm._l((_vm.faceList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.insertFace(v)}}},[_c('img',{attrs:{"indexValue":"1","src":__webpack_require__(1496)("./Expression_"+(i+1)+".png")}})])}),0):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"imageList"},_vm._l((_vm.imgList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('img',{staticClass:"imgC",attrs:{"src":item},on:{"click":function($event){return _vm.viewImage(item)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(index)}}})])}),0)])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/表情.2846e30.png";module.exports = __webpack_require__.p + "static/img/图片.c2586b2.png";module.exports = __webpack_require__.p + "static/img/图片-不可点.1b4173d.png";var map = {
	"./Expression_1.png": 1497,
	"./Expression_10.png": 1498,
	"./Expression_100.png": 1499,
	"./Expression_101.png": 1500,
	"./Expression_102.png": 1501,
	"./Expression_103.png": 1502,
	"./Expression_104.png": 1503,
	"./Expression_105.png": 1504,
	"./Expression_11.png": 1505,
	"./Expression_12.png": 1506,
	"./Expression_13.png": 1507,
	"./Expression_14.png": 1508,
	"./Expression_15.png": 1509,
	"./Expression_16.png": 1510,
	"./Expression_17.png": 1511,
	"./Expression_18.png": 1512,
	"./Expression_19.png": 1513,
	"./Expression_2.png": 1514,
	"./Expression_20.png": 1515,
	"./Expression_21.png": 1516,
	"./Expression_22.png": 1517,
	"./Expression_23.png": 1518,
	"./Expression_24.png": 1519,
	"./Expression_25.png": 1520,
	"./Expression_26.png": 1521,
	"./Expression_27.png": 1522,
	"./Expression_28.png": 1523,
	"./Expression_29.png": 1524,
	"./Expression_3.png": 1525,
	"./Expression_30.png": 1526,
	"./Expression_31.png": 1527,
	"./Expression_32.png": 1528,
	"./Expression_33.png": 1529,
	"./Expression_34.png": 1530,
	"./Expression_35.png": 1531,
	"./Expression_36.png": 1532,
	"./Expression_37.png": 1533,
	"./Expression_38.png": 1534,
	"./Expression_39.png": 1535,
	"./Expression_4.png": 1536,
	"./Expression_40.png": 1537,
	"./Expression_41.png": 1538,
	"./Expression_42.png": 1539,
	"./Expression_43.png": 1540,
	"./Expression_44.png": 1541,
	"./Expression_45.png": 1542,
	"./Expression_46.png": 1543,
	"./Expression_47.png": 1544,
	"./Expression_48.png": 1545,
	"./Expression_49.png": 1546,
	"./Expression_5.png": 1547,
	"./Expression_50.png": 1548,
	"./Expression_51.png": 1549,
	"./Expression_52.png": 1550,
	"./Expression_53.png": 1551,
	"./Expression_54.png": 1552,
	"./Expression_55.png": 1553,
	"./Expression_56.png": 1554,
	"./Expression_57.png": 1555,
	"./Expression_58.png": 1556,
	"./Expression_59.png": 1557,
	"./Expression_6.png": 1558,
	"./Expression_60.png": 1559,
	"./Expression_61.png": 1560,
	"./Expression_62.png": 1561,
	"./Expression_63.png": 1562,
	"./Expression_64.png": 1563,
	"./Expression_65.png": 1564,
	"./Expression_66.png": 1565,
	"./Expression_67.png": 1566,
	"./Expression_68.png": 1567,
	"./Expression_69.png": 1568,
	"./Expression_7.png": 1569,
	"./Expression_70.png": 1570,
	"./Expression_71.png": 1571,
	"./Expression_72.png": 1572,
	"./Expression_73.png": 1573,
	"./Expression_74.png": 1574,
	"./Expression_75.png": 1575,
	"./Expression_76.png": 1576,
	"./Expression_77.png": 1577,
	"./Expression_78.png": 1578,
	"./Expression_79.png": 1579,
	"./Expression_8.png": 1580,
	"./Expression_80.png": 1581,
	"./Expression_81.png": 1582,
	"./Expression_82.png": 1583,
	"./Expression_83.png": 1584,
	"./Expression_84.png": 1585,
	"./Expression_85.png": 1586,
	"./Expression_86.png": 1587,
	"./Expression_87.png": 1588,
	"./Expression_88.png": 1589,
	"./Expression_89.png": 1590,
	"./Expression_9.png": 1591,
	"./Expression_90.png": 1592,
	"./Expression_91.png": 1593,
	"./Expression_92.png": 1594,
	"./Expression_93.png": 1595,
	"./Expression_94.png": 1596,
	"./Expression_95.png": 1597,
	"./Expression_96.png": 1598,
	"./Expression_97.png": 1599,
	"./Expression_98.png": 1600,
	"./Expression_99.png": 1601
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	return __webpack_require__(id);
}
function webpackContextResolve(req) {
	if(!__webpack_require__.o(map, req)) {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return map[req];
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 1496;module.exports = __webpack_require__.p + "static/img/Expression_1.81e3043.png";module.exports = __webpack_require__.p + "static/img/Expression_10.8181db4.png";module.exports = __webpack_require__.p + "static/img/Expression_100.d2e7659.png";module.exports = __webpack_require__.p + "static/img/Expression_101.f2402d7.png";module.exports = __webpack_require__.p + "static/img/Expression_102.5863f59.png";module.exports = __webpack_require__.p + "static/img/Expression_103.b211048.png";module.exports = __webpack_require__.p + "static/img/Expression_104.be634be.png";module.exports = __webpack_require__.p + "static/img/Expression_105.9892db7.png";module.exports = __webpack_require__.p + "static/img/Expression_11.d90f231.png";module.exports = __webpack_require__.p + "static/img/Expression_12.47d1e6d.png";module.exports = __webpack_require__.p + "static/img/Expression_13.5d51c0e.png";module.exports = __webpack_require__.p + "static/img/Expression_14.c2e7ce9.png";module.exports = __webpack_require__.p + "static/img/Expression_15.e7f5f58.png";module.exports = __webpack_require__.p + "static/img/Expression_16.e34bf35.png";module.exports = __webpack_require__.p + "static/img/Expression_17.3c8171a.png";module.exports = __webpack_require__.p + "static/img/Expression_18.c6056d4.png";module.exports = __webpack_require__.p + "static/img/Expression_19.7e06f4e.png";module.exports = __webpack_require__.p + "static/img/Expression_2.fc0bfc1.png";module.exports = __webpack_require__.p + "static/img/Expression_20.6344224.png";module.exports = __webpack_require__.p + "static/img/Expression_21.b4b4f18.png";module.exports = __webpack_require__.p + "static/img/Expression_22.c610f26.png";module.exports = __webpack_require__.p + "static/img/Expression_23.43e8b94.png";module.exports = __webpack_require__.p + "static/img/Expression_24.309aed5.png";module.exports = __webpack_require__.p + "static/img/Expression_25.8684b34.png";module.exports = __webpack_require__.p + "static/img/Expression_26.fec0b5d.png";module.exports = __webpack_require__.p + "static/img/Expression_27.71ae468.png";module.exports = __webpack_require__.p + "static/img/Expression_28.3696281.png";module.exports = __webpack_require__.p + "static/img/Expression_29.84d4569.png";module.exports = __webpack_require__.p + "static/img/Expression_3.3e30dc4.png";module.exports = __webpack_require__.p + "static/img/Expression_30.1f702e5.png";module.exports = __webpack_require__.p + "static/img/Expression_31.1ac0601.png";module.exports = __webpack_require__.p + "static/img/Expression_32.395f08f.png";module.exports = __webpack_require__.p + "static/img/Expression_33.0390117.png";module.exports = __webpack_require__.p + "static/img/Expression_34.c7162d4.png";module.exports = __webpack_require__.p + "static/img/Expression_35.422c3cd.png";module.exports = __webpack_require__.p + "static/img/Expression_36.52c6985.png";module.exports = __webpack_require__.p + "static/img/Expression_37.e192a1b.png";module.exports = __webpack_require__.p + "static/img/Expression_38.b446e6a.png";module.exports = __webpack_require__.p + "static/img/Expression_39.3111522.png";module.exports = __webpack_require__.p + "static/img/Expression_4.d58788f.png";module.exports = __webpack_require__.p + "static/img/Expression_40.7cd089e.png";module.exports = __webpack_require__.p + "static/img/Expression_41.0a5ba47.png";module.exports = __webpack_require__.p + "static/img/Expression_42.f0fa19c.png";module.exports = __webpack_require__.p + "static/img/Expression_43.df1b878.png";module.exports = __webpack_require__.p + "static/img/Expression_44.e80bb01.png";module.exports = __webpack_require__.p + "static/img/Expression_45.e38f787.png";module.exports = __webpack_require__.p + "static/img/Expression_46.44a8e2d.png";module.exports = __webpack_require__.p + "static/img/Expression_47.620abd9.png";module.exports = __webpack_require__.p + "static/img/Expression_48.af1ef34.png";module.exports = __webpack_require__.p + "static/img/Expression_49.fb4edd7.png";module.exports = __webpack_require__.p + "static/img/Expression_5.5af9861.png";module.exports = __webpack_require__.p + "static/img/Expression_50.3e0e779.png";module.exports = __webpack_require__.p + "static/img/Expression_51.1246801.png";module.exports = __webpack_require__.p + "static/img/Expression_52.aa9c1eb.png";module.exports = __webpack_require__.p + "static/img/Expression_53.5bc876a.png";module.exports = __webpack_require__.p + "static/img/Expression_54.978186e.png";module.exports = __webpack_require__.p + "static/img/Expression_55.9bf379a.png";module.exports = __webpack_require__.p + "static/img/Expression_56.46dcb1e.png";module.exports = __webpack_require__.p + "static/img/Expression_57.653d67d.png";module.exports = __webpack_require__.p + "static/img/Expression_58.2e3e8d2.png";module.exports = __webpack_require__.p + "static/img/Expression_59.66f14e7.png";module.exports = __webpack_require__.p + "static/img/Expression_6.429d1ad.png";module.exports = __webpack_require__.p + "static/img/Expression_60.62dd57a.png";module.exports = __webpack_require__.p + "static/img/Expression_61.088ff87.png";module.exports = __webpack_require__.p + "static/img/Expression_62.089d196.png";module.exports = __webpack_require__.p + "static/img/Expression_63.857b2ce.png";module.exports = __webpack_require__.p + "static/img/Expression_64.f10ed78.png";module.exports = __webpack_require__.p + "static/img/Expression_65.28ec46c.png";module.exports = __webpack_require__.p + "static/img/Expression_66.06925a1.png";module.exports = __webpack_require__.p + "static/img/Expression_67.d85933a.png";module.exports = __webpack_require__.p + "static/img/Expression_68.9641ffc.png";module.exports = __webpack_require__.p + "static/img/Expression_69.f728580.png";module.exports = __webpack_require__.p + "static/img/Expression_7.4fbcd23.png";module.exports = __webpack_require__.p + "static/img/Expression_70.017d48c.png";module.exports = __webpack_require__.p + "static/img/Expression_71.c9f008f.png";module.exports = __webpack_require__.p + "static/img/Expression_72.0f88b1b.png";module.exports = __webpack_require__.p + "static/img/Expression_73.89ceb2d.png";module.exports = __webpack_require__.p + "static/img/Expression_74.c6a2e10.png";module.exports = __webpack_require__.p + "static/img/Expression_75.82869b7.png";module.exports = __webpack_require__.p + "static/img/Expression_76.5a3db51.png";module.exports = __webpack_require__.p + "static/img/Expression_77.449f7fb.png";module.exports = __webpack_require__.p + "static/img/Expression_78.18a7156.png";module.exports = __webpack_require__.p + "static/img/Expression_79.2db474d.png";module.exports = __webpack_require__.p + "static/img/Expression_8.5a8c116.png";module.exports = __webpack_require__.p + "static/img/Expression_80.081d96f.png";module.exports = __webpack_require__.p + "static/img/Expression_81.f85db05.png";module.exports = __webpack_require__.p + "static/img/Expression_82.3f0f2b8.png";module.exports = __webpack_require__.p + "static/img/Expression_83.6d26996.png";module.exports = __webpack_require__.p + "static/img/Expression_84.5a49ca5.png";module.exports = __webpack_require__.p + "static/img/Expression_85.0a49c2e.png";module.exports = __webpack_require__.p + "static/img/Expression_86.376a626.png";module.exports = __webpack_require__.p + "static/img/Expression_87.0ec3831.png";module.exports = __webpack_require__.p + "static/img/Expression_88.0869eaf.png";module.exports = __webpack_require__.p + "static/img/Expression_89.0abac93.png";module.exports = __webpack_require__.p + "static/img/Expression_9.cdc7209.png";module.exports = __webpack_require__.p + "static/img/Expression_90.35d1126.png";module.exports = __webpack_require__.p + "static/img/Expression_91.105b463.png";module.exports = __webpack_require__.p + "static/img/Expression_92.443ace8.png";module.exports = __webpack_require__.p + "static/img/Expression_93.98a39c4.png";module.exports = __webpack_require__.p + "static/img/Expression_94.c7d0c3c.png";module.exports = __webpack_require__.p + "static/img/Expression_95.9285f1b.png";module.exports = __webpack_require__.p + "static/img/Expression_96.40d1ea3.png";module.exports = __webpack_require__.p + "static/img/Expression_97.04e83ff.png";module.exports = __webpack_require__.p + "static/img/Expression_98.081c48c.png";module.exports = __webpack_require__.p + "static/img/Expression_99.b1384b0.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(415);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66f74e85_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1015);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2452)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-66f74e85"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66f74e85_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66f74e85_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reply_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2453);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6227f022", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mask[data-v-66f74e85]{top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);position:fixed;z-index:999}.mask .commentBox[data-v-66f74e85]{-webkit-transition:all .3s ease;transition:all .3s ease;width:100%;background:#fff;margin:0 auto;position:absolute;bottom:0;left:0}.mask .commentBox .title[data-v-66f74e85]{height:2.4rem;line-height:2.4rem;background-color:#f5f5f5;position:relative}.mask .commentBox .title>.center[data-v-66f74e85]{text-align:center;font-family:PingFangSC-Regular;font-size:.9rem;color:#333}.mask .commentBox .title>span[data-v-66f74e85]{position:absolute;top:0;height:100%;line-height:2.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#666}.mask .commentBox .title .cancel[data-v-66f74e85]{left:0;padding-left:.8rem}.mask .commentBox .title .submit[data-v-66f74e85]{color:#2b82f7;right:0;padding-right:.8rem}.mask .commentBox .replyName[data-v-66f74e85]{font-family:PingFangSC-Regular;font-size:.8rem;color:#377ee1;margin-left:.6rem;margin-top:.6rem}.mask .commentBox .toolList[data-v-66f74e85]{padding:1rem .8rem .725rem;border-bottom:1px solid #d9d9d9;position:relative}.mask .commentBox .toolList img[data-v-66f74e85]{width:1.3rem;height:1.3rem}.mask .commentBox .toolList .uploadContainer[data-v-66f74e85]{display:inline-block;position:relative;margin-left:1rem}.mask .commentBox .toolList .uploadContainer .imgUpload[data-v-66f74e85]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.mask .commentBox .toolList .faceBox[data-v-66f74e85]{position:absolute;z-index:2;top:100%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:100%;margin:0 auto;height:360px;overflow-y:scroll;background-color:#fff;padding:.6rem}.mask .commentBox .toolList .faceBox li[data-v-66f74e85]{float:left}.mask .commentBox .toolList .faceBox li img[data-v-66f74e85]{margin-right:.28rem;margin-bottom:.28rem;pointer-events:none}.mask .commentBox .inputArea[data-v-66f74e85],.mask .commentBox .inputBox[data-v-66f74e85]{width:95%;height:8rem;margin:0 auto;display:block;margin-top:.2rem;padding-left:7px;border:none;font-size:16px;color:#333;background-color:#f2f2f2;padding-top:.4rem}.mask .commentBox .controlBox[data-v-66f74e85]{width:100%;margin-top:14px;border-top:1px solid #eee;height:56px;position:relative}.mask .commentBox .controlBox[data-v-66f74e85]:after{content:\"\";width:1px;height:27px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#b9b9b9}.mask .commentBox .controlBox span[data-v-66f74e85]{font-size:18px;color:#666;width:50%;text-align:center;line-height:56px;height:100px;float:left}.mask .commentBox .controlBox span[data-v-66f74e85]:nth-of-type(2){color:#2b82f7}.mask .commentBox .imageList[data-v-66f74e85]{padding-top:1rem;padding-left:.8rem}.mask .commentBox .imageList>.item[data-v-66f74e85]{width:3.75rem;height:3.75rem;position:relative}.mask .commentBox .imageList>.item>img[data-v-66f74e85]{width:100%;height:100%}.mask .commentBox .imageList>.item>span[data-v-66f74e85]{position:absolute;width:.8rem;height:.8rem;top:-.4rem;right:-.4rem;background-image:url(" + escape(__webpack_require__(261)) + ");background-repeat:no-repeat;background-size:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _emotion = _interopRequireDefault(__webpack_require__(1494));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import imgUpload from '../../../components/imgUpload/imgUpload.vue'
var _default = exports.default = {
  // components: {
  //   imgUpload
  // },
  props: {
    commentName: String,
    // 对应的评论人
    commentId: Number // 对应的评论id
  },
  data: function data() {
    return {
      boxHeight: 0,
      faceList1: [{
        text: '[微笑]',
        key: 'weixiao'
      }, {
        text: '[撇嘴]',
        key: 'pizui'
      }, {
        text: '[色]',
        key: 'se'
      }, {
        text: '[发呆]',
        key: 'deyi'
      }, {
        text: '[流泪]',
        key: 'liulei'
      }, {
        text: '[害羞]',
        key: 'haixiu'
      }, {
        text: '[闭嘴]',
        key: 'bizui'
      }, {
        text: '[睡觉]',
        key: 'shuijiao'
      }, {
        text: '[大哭]',
        key: 'daku'
      }, {
        text: '[尴尬]',
        key: 'gangga'
      }, {
        text: '[大怒]',
        key: 'danu'
      }, {
        text: '[调皮]',
        key: 'tiaopi'
      }, {
        text: '[呲牙]',
        key: 'ciya'
      }, {
        text: '[惊讶]',
        key: 'jingya'
      }, {
        text: '[难过]',
        key: 'nanguo'
      }, {
        text: '[酷]',
        key: 'ku'
      }, {
        text: '[冷汗]',
        key: 'lenghan'
      }, {
        text: '[抓狂]',
        key: 'zhuakuang'
      }, {
        text: '[吐]',
        key: 'tu'
      }, {
        text: '[偷笑]',
        key: 'touxiao'
      }, {
        text: '[可爱]',
        key: 'keai'
      }, {
        text: '[白眼]',
        key: 'baiyan'
      }, {
        text: '[饥饿]',
        key: 'er'
      }, {
        text: '[困]',
        key: 'kun'
      }, {
        text: '[惊恐]',
        key: 'jingkong'
      }, {
        text: '[流汗]',
        key: 'liuhan'
      }, {
        text: '[憨笑]',
        key: 'haha'
      }, {
        text: '[大兵]',
        key: 'dabing'
      }, {
        text: '[奋斗]',
        key: 'fendou'
      }, {
        text: '[咒骂]',
        key: 'ma'
      }, {
        text: '[疑问]',
        key: 'wen'
      }, {
        text: '[嘘]',
        key: 'xu'
      }, {
        text: '[晕]',
        key: 'yun'
      }, {
        text: '[折磨]',
        key: 'zhemo'
      }, {
        text: '[衰]',
        key: 'shuai'
      }, {
        text: '[骷髅]',
        key: 'kulou'
      }, {
        text: '[敲打]',
        key: 'da'
      }, {
        text: '[擦汗]',
        key: 'cahan'
      }, {
        text: '[挖鼻]',
        key: 'wabi'
      }, {
        text: '[鼓掌]',
        key: 'guzhang'
      }, {
        text: '[糗大了]',
        key: 'qioudale'
      }, {
        text: '[坏笑]',
        key: 'huaixiao'
      }, {
        text: '[左哼哼]',
        key: 'zuohengheng'
      }, {
        text: '[右哼哼]',
        key: 'youhengheng'
      }, {
        text: '[哈欠]',
        key: 'haqian'
      }, {
        text: '[鄙视]',
        key: 'bishi'
      }, {
        text: '[委屈]',
        key: 'weiqu'
      }, {
        text: '[哭了]',
        key: 'ku'
      }, {
        text: '[快哭了]',
        key: 'kuaikule'
      }, {
        text: '[阴险]',
        key: 'yinxian'
      }, {
        text: '[亲亲]',
        key: 'qinqin'
      }, {
        text: '[亲吻]',
        key: 'kiss'
      }, {
        text: '[吓]',
        key: 'xia'
      }, {
        text: '[可怜]',
        key: 'kelian'
      }, {
        text: '[菜刀]',
        key: 'caidao'
      }, {
        text: '[西瓜]',
        key: 'xigua'
      }, {
        text: '[啤酒]',
        key: 'pijiu'
      }, {
        text: '[篮球]',
        key: 'lanqiu'
      }, {
        text: '[乒乓]',
        key: 'pingpang'
      }, {
        text: '[咖啡]',
        key: 'kafei'
      }, {
        text: '[饭]',
        key: 'fan'
      }, {
        text: '[猪头]',
        key: 'zhutou'
      }, {
        text: '[玫瑰]',
        key: 'hua'
      }, {
        text: '[凋谢]',
        key: 'diaoxie'
      }, {
        text: '[爱心]',
        key: 'love'
      }, {
        text: '[心碎]',
        key: 'xinsui'
      }, {
        text: '[蛋糕]',
        key: 'dangao'
      }, {
        text: '[闪电]',
        key: 'shandian'
      }, {
        text: '[地雷]',
        key: 'zhadan'
      }, {
        text: '[刀]',
        key: 'dao'
      }, {
        text: '[足球]',
        key: 'qiu'
      }, {
        text: '[虫]',
        key: 'chong'
      }, {
        text: '[便便]',
        key: 'dabian'
      }, {
        text: '[月亮]',
        key: 'yueliang'
      }, {
        text: '[太阳]',
        key: 'taiyang'
      }, {
        text: '[礼物]',
        key: 'liwu'
      }, {
        text: '[拥抱]',
        key: 'yongbao'
      }, {
        text: '[强]',
        key: 'qiang'
      }, {
        text: '[弱]',
        key: 'ruo'
      }, {
        text: '[握手]',
        key: 'woshou'
      }, {
        text: '[胜利]',
        key: 'shengli'
      }, {
        text: '[佩服]',
        key: 'peifu'
      }, {
        text: '[勾引]',
        key: 'gouyin'
      }, {
        text: '[拳头]',
        key: 'quantou'
      }, {
        text: '[差劲]',
        key: 'chajin'
      }, {
        text: '[干杯]',
        key: 'cheer'
      }, {
        text: '[NO]',
        key: 'no'
      }, {
        text: '[OK]',
        key: 'ok'
      }, {
        text: '[给力]',
        key: 'geili'
      }, {
        text: '[飞吻]',
        key: 'feiwen'
      }, {
        text: '[跳跳]',
        key: 'tiao'
      }, {
        text: '[发抖]',
        key: 'fadou'
      }, {
        text: '[怄火]',
        key: 'dajiao'
      }, {
        text: '[转圈]',
        key: 'zhuanquan'
      }, {
        text: '[磕头]',
        key: 'ketou'
      }, {
        text: '[回头]',
        key: 'huitou'
      }, {
        text: '[跳绳]',
        key: 'tiaosheng'
      }, {
        text: '[挥手]',
        key: 'huishou'
      }, {
        text: '[激动]',
        key: 'jidong'
      }, {
        text: '[街舞]',
        key: 'tiaowu'
      }, {
        text: '[献吻]',
        key: 'xianwen'
      }, {
        text: '[左太极]',
        key: 'youtaiji'
      }, {
        text: '[右太极]',
        key: 'zuotaiji'
      }],
      faceList: _emotion.default,
      commentMessage: '',
      showFaceList: false,
      submiting: false,
      imgList: [],
      bucketUrl: ''
    };
  },
  watch: {
    commentMessage: function commentMessage() {
      if (this.commentMessage.length > 200) {
        this.commentMessage = this.commentMessage.slice(0, 200);
        (0, _mintUi.Toast)({
          message: '评论内容最多200字',
          position: 'middle',
          duration: 1500
        });
      }
    }
  },
  created: function created() {},
  mounted: function mounted() {
    var _this = this;
    this.$nextTick(function () {
      setTimeout(function () {
        _this.boxHeight = '100%';
      }, 50);
    });
  },
  methods: {
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      this.$store.commit('openImgView', imgUrl);
    },
    /** 图片上传成功 */uploaded: function uploaded(img) {
      this.imgList.push(img);
    },
    /** 提交留言 */submitEvent: function submitEvent() {
      var _this2 = this;
      if (!this.commentMessage.trim() && this.imgList.length === 0) {
        (0, _mintUi.Toast)({
          message: '请输入有效内容',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (this.submiting) return;
      this.submiting = true;
      this._Util.post(this._Api.POST_COMMUNITY_ADD_ARTICLE_COMMENT, {
        id: this.commentId,
        content: this.commentMessage,
        fileList: [],
        type: 2
      }, function (data) {
        _this2.boxHeight = '0';
        (0, _mintUi.Toast)({
          message: '提交成功',
          position: 'bottom',
          duration: 1500
        });
        setTimeout(function () {
          _this2.$emit('submit');
        }, 300);
        _this2.submiting = false;
      }, function () {
        _this2.submiting = false;
      }, this);
    },
    /** 关闭评论框 */closeEvent: function closeEvent() {
      var _this3 = this;
      this.boxHeight = '0';
      setTimeout(function () {
        _this3.$emit('closeMask');
      }, 300);
    },
    /** 插入表情 */insertFace: function insertFace(item) {
      this.commentMessage += item.text;
      this.showFaceList = false;
    },
    /** 删除指定索引图片 */delImg: function delImg(i) {
      this.imgList.splice(i, 1);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask"},[_c('div',{staticClass:"commentBox",style:({'height': _vm.boxHeight})},[_c('div',{staticClass:"title"},[_c('div',{staticClass:"center"},[_vm._v("回复评论")]),_vm._v(" "),_c('span',{staticClass:"cancel",on:{"click":_vm.closeEvent}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"submit",on:{"click":_vm.submitEvent}},[_vm._v("提交")])]),_vm._v(" "),_c('p',{staticClass:"replyName"},[_vm._v("回复@"+_vm._s(_vm.commentName))]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.commentMessage),expression:"commentMessage",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],staticClass:"inputBox",attrs:{"id":"infocus","autofocus":"","placeholder":"有什么想法和他交流一下吧..."},domProps:{"value":(_vm.commentMessage)},on:{"input":function($event){if($event.target.composing){ return; }_vm.commentMessage=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"toolList"},[_c('img',{attrs:{"indexValue":"1","src":__webpack_require__(1495)},on:{"click":function($event){_vm.showFaceList = !_vm.showFaceList}}}),_vm._v(" "),(_vm.showFaceList)?_c('ul',{staticClass:"faceBox"},_vm._l((_vm.faceList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.insertFace(v)}}},[_c('img',{attrs:{"indexValue":"1","src":__webpack_require__(1496)("./Expression_"+(i+1)+".png")}})])}),0):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"imageList"},_vm._l((_vm.imgList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('img',{staticClass:"imgC",attrs:{"src":_vm.bucketUrl + item},on:{"click":function($event){return _vm.viewImage(item, _vm.imgList, index)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(index)}}})])}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(416);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_47813512_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1016);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2454)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-47813512"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_47813512_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_47813512_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_replyDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2455);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("582766fc", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mask[data-v-47813512]{top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);position:fixed;z-index:999}.mask .commentBox[data-v-47813512]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-transition:all .3s ease;transition:all .3s ease;width:100%;background:#fff;margin:0 auto;position:absolute;bottom:0;left:0}.mask .commentBox .title[data-v-47813512]{height:2.4rem;line-height:2.4rem;background-color:#f5f5f5;position:relative}.mask .commentBox .title>.center[data-v-47813512]{text-align:center;font-family:PingFangSC-Regular;font-size:.9rem;color:#333}.mask .commentBox .title>span[data-v-47813512]{position:absolute;top:0;height:100%;line-height:2.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#666}.mask .commentBox .title .cancel[data-v-47813512]{right:0;padding-right:.8rem}.mask .commentBox .commentDetail[data-v-47813512]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mask .commentBox .commentDetail>img[data-v-47813512]{float:left;width:1.8rem;height:1.8rem;margin-left:.8rem;margin-top:1rem;border-radius:50%;pointer-events:none}.mask .commentBox .commentDetail>.crown[data-v-47813512]{display:inline-block;width:.6rem;height:.6rem;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ");position:absolute;left:2rem;top:2.3rem}.mask .commentBox .commentDetail>.rightContent[data-v-47813512]{padding-top:1rem;margin-left:3.2rem;padding-bottom:.75rem;position:relative}.mask .commentBox .commentDetail>.rightContent .name[data-v-47813512]{font-size:.75rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.05rem}.mask .commentBox .commentDetail>.rightContent .name .medal[data-v-47813512]{height:.925rem;position:relative;left:0;top:1px}.mask .commentBox .commentDetail>.rightContent .location>span[data-v-47813512],.mask .commentBox .commentDetail>.rightContent .location[data-v-47813512]{font-size:.55rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:.75rem}.mask .commentBox .commentDetail>.rightContent .commentDetail[data-v-47813512]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;margin-top:.55rem;padding-right:16px}.mask .commentBox .commentDetail>.rightContent .commentImgList[data-v-47813512]{margin-top:.4rem}.mask .commentBox .commentDetail>.rightContent .commentImgList>img[data-v-47813512]{width:4.5rem;height:4.5rem;object-fit:cover;object-position:50% 50%}.mask .commentBox .commentDetail>.rightContent .reply[data-v-47813512]{position:relative;margin-top:.4rem}.mask .commentBox .commentDetail>.rightContent .reply div[data-v-47813512]{display:inline-block;font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.mask .commentBox .commentDetail>.rightContent .reply div>img[data-v-47813512]{width:.65rem;height:.6rem;vertical-align:middle}.mask .commentBox .commentDetail>.rightContent .reply .report[data-v-47813512]{position:absolute;right:.8rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:.6rem;color:#999}.mask .commentBox .commentDetail>.rightContent .replyList[data-v-47813512]{width:14.6rem;margin-top:.6rem;background-color:#f2f2f2}.mask .commentBox .commentDetail>.rightContent .replyList .listContainer[data-v-47813512]{padding:.4rem .6rem 0 .4rem;border-radius:.2rem}.mask .commentBox .commentDetail>.rightContent .replyList .listContainer .replyItem[data-v-47813512]{padding-bottom:.4rem}.mask .commentBox .commentDetail>.rightContent .replyList .listContainer .replyItem>span[data-v-47813512]{display:inline}.mask .commentBox .commentDetail>.rightContent .replyList .listContainer .replyItem .replyName[data-v-47813512]{font-family:PingFangSC-Semibold;font-size:.7rem;color:#333;font-weight:700}.mask .commentBox .commentDetail>.rightContent .replyList .listContainer .replyItem .replyContent[data-v-47813512]{font-family:PingFangSC-Regular;font-size:.7rem;color:#151515}.mask .commentBox .commentDetail>.rightContent .replyList .showAll[data-v-47813512]{text-align:center;height:1.8rem;line-height:1.8rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;border-top:1px solid #e0e0e0}.mask .commentBox .commentDetail>.rightContent .goodNum[data-v-47813512]{position:absolute;top:1rem;right:.8rem;width:3.2rem;text-align:right;vertical-align:middle}.mask .commentBox .commentDetail>.rightContent .goodNum>span[data-v-47813512]{vertical-align:middle}.mask .commentBox .commentDetail>.rightContent .goodNum>img[data-v-47813512]{width:.8rem;height:.8rem;vertical-align:middle}.mask .commentBox .replyBox[data-v-47813512]{width:100%;border-top:1px solid #d9d9d9;height:2.45rem;background-color:#fff;padding:.375rem .8rem 0}.mask .commentBox .replyBox>div[data-v-47813512]{height:1.6rem;line-height:1.6rem;background-color:#f1f1f1;border-radius:2px;text-indent:.6rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#666}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _reply = _interopRequireDefault(__webpack_require__(833));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    reply: _reply.default
  },
  props: {
    commentId: Number
  },
  data: function data() {
    return {
      boxHeight: 0,
      submiting: false,
      showReply: false,
      commentDetail: '',
      needRefresh: false // 关闭当前组件时，是否需要刷新外部组件评论数据的标识
    };
  },
  created: function created() {
    this.getCommentDetail();
  },
  mounted: function mounted() {
    var _this = this;
    this.$nextTick(function () {
      setTimeout(function () {
        _this.boxHeight = '100%';
      }, 50);
    });
  },
  methods: {
    /** 留言点赞 */likeComment: function likeComment(commentId, isPraise) {
      var _this2 = this;
      if (isPraise == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 2,
        communityId: commentId
      }, function (data) {
        _this2.commentDetail.isPraise = 1;
        _this2.commentDetail.praiseTotal++;
        (0, _mintUi.Toast)({
          message: '点赞成功',
          position: 'bottom',
          duration: 1000
        });
      }, function () {
        (0, _mintUi.Toast)({
          message: '点赞失败',
          position: 'bottom',
          duration: 1000
        });
      }, this);
    },
    /** 新增评论后刷新文章信息 */refreshCommentDetail: function refreshCommentDetail() {
      this.showReply = false;
      this.needRefresh = true;
      this.getCommentDetail();
    },
    /** 获取评论详情 */getCommentDetail: function getCommentDetail() {
      var _this3 = this;
      this._Util.post(this._Api.POST_COMMUNITY_ARTICLE_COMMENT_DETAIL, {
        id: this.commentId
      }, function (data) {
        _this3.commentDetail = data;
      }, function () {}, this);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      this.$store.commit('openImgView', imgUrl);
    },
    /** 关闭评论框 */closeEvent: function closeEvent() {
      var _this4 = this;
      this.boxHeight = '0';
      if (this.needRefresh) {
        this.$emit('refresh');
      }
      setTimeout(function () {
        _this4.$emit('closeMask');
      }, 300);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask"},[_c('div',{staticClass:"commentBox",style:({'height': _vm.boxHeight})},[_c('div',{staticClass:"title"},[_c('div',{staticClass:"center"},[_vm._v("查看全部回复")]),_vm._v(" "),_c('span',{staticClass:"cancel",on:{"click":_vm.closeEvent}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"commentDetail"},[_c('img',{attrs:{"src":_vm.commentDetail.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}),_vm._v(" "),(_vm.commentDetail.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[(_vm.commentDetail.userName)?_c('div',{staticClass:"name"},[_vm._v("\n          "+_vm._s(_vm.commentDetail.userName.slice(0,9))+"\n          "),_vm._l((_vm.commentDetail.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val.medalIcon,"alt":""}})})],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"location"},[_vm._v(_vm._s(_vm.commentDetail.time)),(_vm.commentDetail.uprovince||_vm.commentDetail.ucity)?_c('span',[_vm._v("·"+_vm._s(_vm.commentDetail.uprovince==_vm.commentDetail.ucity?_vm.commentDetail.uprovince:_vm.commentDetail.uprovince+_vm.commentDetail.ucity))]):_vm._e()]),_vm._v(" "),(_vm.commentDetail.commentContent)?_c('div',{staticClass:"commentDetail",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(_vm.commentDetail.commentContent))}},[_vm._v(_vm._s(_vm.commentDetail.commentContent))]):_vm._e(),_vm._v(" "),(_vm.commentDetail.picList)?_c('div',{staticClass:"commentImgList"},_vm._l((_vm.commentDetail.picList),function(v,i){return _c('img',{key:i,attrs:{"src":v,"alt":""},on:{"click":function($event){return _vm.viewImage(v, _vm.commentDetail.picList, i)}}})}),0):_vm._e(),_vm._v(" "),(_vm.commentDetail.replyCommentList&&_vm.commentDetail.replyCommentList.length>0)?_c('div',{staticClass:"replyList"},[_c('div',{staticClass:"listContainer"},_vm._l((_vm.commentDetail.replyCommentList),function(val,index){return _c('p',{key:index,staticClass:"replyItem"},[_c('span',{staticClass:"replyName"},[_vm._v(_vm._s(val.userName.slice(0,9))+"：")]),_c('span',{staticClass:"replyContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(val.commentContent))}},[_vm._v(_vm._s(val.commentContent))])])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"goodNum",on:{"click":function($event){return _vm.likeComment(_vm.commentDetail.articleCommentId, _vm.commentDetail.isPraise)}}},[( _vm.commentDetail.praiseTotal > 0 && _vm.commentDetail.isPraise==0)?_c('span',[_vm._v(_vm._s(_vm.commentDetail.praiseTotal))]):_vm._e(),_vm._v(" "),( _vm.commentDetail.praiseTotal > 0 && _vm.commentDetail.isPraise!=0)?_c('span',{staticStyle:{"color":"#FF701F"}},[_vm._v(_vm._s(_vm.commentDetail.praiseTotal))]):_vm._e(),_vm._v(" "),(_vm.commentDetail.isPraise==0)?_c('img',{attrs:{"src":__webpack_require__(149),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(214),"alt":""}})])])]),_vm._v(" "),_c('div',{staticClass:"replyBox"},[(_vm.commentDetail.userName)?_c('div',{on:{"click":function($event){_vm.showReply=true;}}},[_vm._v("回复@"+_vm._s(_vm.commentDetail.userName.slice(0,9)))]):_vm._e()])]),_vm._v(" "),(_vm.showReply)?_c('reply',{attrs:{"comment-name":_vm.commentDetail.userName,"comment-id":_vm.commentDetail.articleCommentId},on:{"submit":_vm.refreshCommentDetail,"closeMask":function($event){_vm.showReply=false;}}}):_vm._e()],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/点赞-1.12a5aa1.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(417);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_67f7ef9c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1017);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2456)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-67f7ef9c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_67f7ef9c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_67f7ef9c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_audioPlayer_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2457);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("618ef9f1", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-67f7ef9c]{padding-left:.6rem;padding-right:.6rem}.outContainer .audio[data-v-67f7ef9c]{height:3.8rem;background-color:#f8f8f8;border-radius:.4rem;position:relative;overflow:hidden}.outContainer .audio>img[data-v-67f7ef9c]{position:absolute;left:.6rem;top:.95rem;width:2.2rem;height:2.2rem}.outContainer .audio .rightContent[data-v-67f7ef9c]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:3.2rem}.outContainer .audio .rightContent .top[data-v-67f7ef9c]{font-size:.8rem;font-family:PingFangSC-Medium,PingFangSC;font-weight:500;color:#333;line-height:1.13rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;display:inline-block;width:50%}.outContainer .audio .rightContent .bottom[data-v-67f7ef9c]{margin-top:.2rem;font-size:.6rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#666;line-height:.83rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    url: String,
    // 音频链接
    from: String,
    // 音频来源
    title: String // 音频标题
  },
  data: function data() {
    return {
      audio: null,
      audioDuration: '',
      audioCurrentTime: '',
      isPlaying: false
    };
  },
  mounted: function mounted() {
    this.audio = this.$refs.audio;
  },
  methods: {
    start: function start() {
      this.audio.play();
      this.isPlaying = true;
    },
    pause: function pause() {
      this.audio.pause();
      this.isPlaying = false;
    },
    audioEnd: function audioEnd() {
      this.isPlaying = false;
      this.audio.currentTime = 0;
    },
    getDuration: function getDuration() {
      this.audioDuration = this.formatTime(this.audio.duration);
    },
    getCurrent: function getCurrent() {
      this.audioCurrentTime = this.formatTime(this.audio.currentTime);
    },
    formatTime: function formatTime(duration) {
      var minute = Math.floor(duration / 60);
      var second = Math.round(duration % 60);
      minute = minute > 9 ? minute : '0' + minute;
      second = second > 9 ? second : '0' + second;
      return minute + ':' + second;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"audio"},[_c('audio',{ref:"audio",attrs:{"src":_vm.url,"preload":"auto"},on:{"loadedmetadata":_vm.getDuration,"timeupdate":_vm.getCurrent,"ended":_vm.audioEnd}},[_c('source',{attrs:{"src":_vm.url,"type":"audio/mpeg"}})]),_vm._v(" "),(_vm.isPlaying)?_c('img',{staticClass:"button",attrs:{"src":__webpack_require__(2458),"alt":"暂停"},on:{"click":_vm.pause}}):_c('img',{staticClass:"button",attrs:{"src":__webpack_require__(2459),"alt":"播放"},on:{"click":_vm.start}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"top"},[_vm._v(_vm._s(_vm.title))]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_vm._v("来自"+_vm._s(_vm.from)+" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.audioDuration),expression:"audioDuration"}]},[_vm._v(_vm._s(_vm.audioCurrentTime)+"/"+_vm._s(_vm.audioDuration))])])])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/audio-pause.af1ae47.png";module.exports = __webpack_require__.p + "static/img/audio-start.84589ff.png";module.exports = __webpack_require__.p + "static/img/toUp.6a5f6b2.png";module.exports = __webpack_require__.p + "static/img/微信96px-1.c395a06.png";module.exports = __webpack_require__.p + "static/img/沙发.9e58d67.png";module.exports = __webpack_require__.p + "static/img/分享.10f1ef2.png";module.exports = __webpack_require__.p + "static/img/选中-2.3b88e76.png";module.exports = __webpack_require__.p + "static/img/选中-1.e7f86f7.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(413);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_787b7312_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1018);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2445)
  __webpack_require__(2447)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-787b7312"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_787b7312_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_787b7312_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2446);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7505eabe", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".__articleDetail .content img{max-width:100%}.__articleDetail .hasRewarded{width:1.9rem;height:.95rem;line-height:.95rem;background:-webkit-gradient(linear,left top,right top,from(#fe8e8e),to(#ee4545));background:linear-gradient(90deg,#fe8e8e,#ee4545);border-radius:.1rem;text-align:center;font-family:PingFangSC-Regular;font-size:.55rem;color:#fff;background-image:-webkit-gradient(linear,right top,left top,from(#fe8e8e),to(#ee4545));background-image:linear-gradient(-90deg,#fe8e8e,#ee4545);margin-right:.25rem;vertical-align:bottom;position:relative;left:0;top:-.3rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2448);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7c358fa6", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "img[data-v-787b7312]{display:inline-block;max-width:100%}.outContainer[data-v-787b7312]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;height:100%}.outContainer .shareMAsk[data-v-787b7312]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:1000;background:rgba(0,0,0,.5)}.outContainer .shareMAsk .shareTips[data-v-787b7312]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outContainer .shareMAsk .shareTips>p[data-v-787b7312]:first-of-type{margin-top:.85rem}.outContainer .shareMAsk .shareTips>p[data-v-787b7312]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.outContainer .detail[data-v-787b7312]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;background-color:#f2f2f2}.outContainer .detail .articleTitle[data-v-787b7312]{font-size:1.2rem;font-family:PingFangSC-Medium,PingFangSC;font-weight:500;color:#333;line-height:1.6rem;padding:1.2rem .8rem 0}.outContainer .detail .userInfo[data-v-787b7312]{padding:1.2rem .8rem 1rem;position:relative}.outContainer .detail .userInfo>img[data-v-787b7312]{width:1.8rem;height:1.8rem;border-radius:50%;position:relative;top:-.2rem}.outContainer .detail .userInfo>.crown[data-v-787b7312]{display:inline-block;width:.65rem;height:.65rem;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ");position:absolute;left:2rem;top:2.2rem}.outContainer .detail .userInfo .rightContent[data-v-787b7312]{position:absolute;left:3rem;top:1rem;width:-webkit-calc(100% - 3.8rem);width:calc(100% - 3.8rem)}.outContainer .detail .userInfo .rightContent .uname>span[data-v-787b7312],.outContainer .detail .userInfo .rightContent .uname[data-v-787b7312]{font-size:.75rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.05rem}.outContainer .detail .userInfo .rightContent .uname .medal[data-v-787b7312]{height:.8rem;margin-right:.2rem;position:relative;left:0;top:2px;pointer-events:none}.outContainer .detail .userInfo .rightContent .uarea>span[data-v-787b7312],.outContainer .detail .userInfo .rightContent .uarea[data-v-787b7312]{font-size:.55rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:.75rem}.outContainer .detail .userInfo .rightContent .uarea>span[data-v-787b7312]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;display:inline-block;max-width:65%}.outContainer .detail .userInfo .plateName[data-v-787b7312]{width:6.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:absolute;top:.85rem;right:1.6rem;font-family:PingFangSC-Regular;font-size:14px;color:#4c5e77;text-align:right}.outContainer .detail .userInfo .plateName>img[data-v-787b7312]{width:.6rem;height:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem}.outContainer .detail .userInfo .dropDown[data-v-787b7312]{position:absolute;top:.7rem;right:0;width:1.8rem;height:1.8rem;line-height:24px;text-align:center;display:inline-block;margin-left:.2rem;text-align:left;text-indent:10px}.outContainer .detail .userInfo .dropDown>img[data-v-787b7312]{width:.6rem;height:.35rem;vertical-align:middle}.outContainer .detail .userInfo .follow[data-v-787b7312]{top:1.4rem;right:.8rem;border-radius:.7rem;border:1px solid #177afa;border-radius:2rem;color:#377ee1}.outContainer .detail .userInfo .follow[data-v-787b7312],.outContainer .detail .userInfo .followed[data-v-787b7312]{position:absolute;width:2.9rem;padding-top:.25rem;padding-bottom:.25rem;text-align:center;font-family:PingFangSC-Regular;font-size:.6rem}.outContainer .detail .userInfo .followed[data-v-787b7312]{top:1.2rem;right:.6rem;line-height:1;background-color:#f2f2f2;border:1px solid #f2f2f2;border-radius:.6rem;color:#999}.outContainer .detail .audioContainer[data-v-787b7312]{margin-bottom:1rem}.outContainer .detail .videoTitle[data-v-787b7312]{font-family:PingFangSC-Semibold;font-size:.9rem;color:#333;padding-left:.6rem;padding-top:.2rem;padding-bottom:.4rem}.outContainer .detail .content[data-v-787b7312]{padding-left:.8rem;padding-right:.8rem;padding-bottom:.6rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#333;white-space:pre-wrap;line-height:1.6rem}.outContainer .detail .singleImg[data-v-787b7312]{padding:0 .8rem .6rem}.outContainer .detail .singleImg>img[data-v-787b7312]{width:8.3rem;height:11.2rem;background:#f2f2f2;border-radius:.2rem}.outContainer .detail .imgList[data-v-787b7312]{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;padding:0 .675rem;margin-bottom:.6rem;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.outContainer .detail .imgList>img[data-v-787b7312]{float:left;margin-left:.125rem;margin-bottom:.125rem;width:5.55rem;height:5.55rem;object-fit:cover;object-position:50% 50%;border-radius:.2rem}.outContainer .detail .videoFrame>div[data-v-787b7312]{margin-bottom:12px;height:210px}.outContainer .detail .videoFrame>div>video[data-v-787b7312]{object-fit:contain;width:100%;height:100%}.outContainer .detail .plateNameContainer[data-v-787b7312]{box-sizing:border-box;padding:0 .8rem 1.6rem;text-align:right;overflow:hidden}.outContainer .detail .plateNameContainer .plateName[data-v-787b7312]{font-family:PingFangSC-Regular;font-size:.6rem;color:#4c5e77;display:inline-block;padding:.1rem .5rem;background-color:#f2f2f2;border-radius:20px;float:left;margin-right:5px}.outContainer .detail .plateNameContainer .plateName>img[data-v-787b7312]{width:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem;color:#4c5e77}.outContainer .detail .plateNameContainer .plateName.best[data-v-787b7312]{color:#ff701f;background:#ffefea}.outContainer .detail .plateNameContainer>.report[data-v-787b7312]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666;display:inline-block}.outContainer .detail .adInArticle[data-v-787b7312]{margin-top:1.2rem;padding-left:.6rem;padding-right:.6rem}.outContainer .detail .adInArticle>div[data-v-787b7312]{background:#4b8ae4;border-radius:.1rem;padding:.4rem .4rem 1.55rem;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;line-height:1.25rem;position:relative}.outContainer .detail .adInArticle>div>span[data-v-787b7312]{position:absolute;right:.5rem;bottom:.4rem;font-size:.55rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;line-height:.75rem}.outContainer .detail .topicContainer[data-v-787b7312]{padding:0 .3rem 2.75rem}.outContainer .detail .topicContainer>div[data-v-787b7312]{height:4rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.15rem 1rem 0}.outContainer .detail .topicContainer>div>div[data-v-787b7312]{width:7.1rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.outContainer .detail .topicContainer table[data-v-787b7312]{width:100%;text-align:center}.outContainer .detail .topicContainer table td[data-v-787b7312]{padding:0 .5rem}.outContainer .detail .topicContainer .btn[data-v-787b7312]{display:inline-block;width:100%;background:#e6efff;box-shadow:0 .2rem .4rem 0 rgba(178,203,235,.25);border-radius:1.3rem;font-size:.9rem;color:#177afa;line-height:1.5rem}.outContainer .detail .topicContainer .btn.blue[data-v-787b7312]{background:#177afa;box-shadow:0 .2rem .4rem 0 rgba(23,122,250,.25);border-radius:1.3rem;color:#fff}.outContainer .detail .topicContainer>div>div:last-child > div[data-v-787b7312]{color:#247cff;border-color:#247cff}.outContainer .detail .goodContainer[data-v-787b7312]{padding:0 .8rem 1.48rem}.outContainer .detail .goodContainer .good[data-v-787b7312]{padding-left:.175rem;padding-right:.175rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .detail .goodContainer .good>.item[data-v-787b7312]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.outContainer .detail .goodContainer .good>.item>div[data-v-787b7312]{display:inline-block;width:100%}.outContainer .detail .goodContainer .good>.item>div>img[data-v-787b7312]{width:2.4rem}.outContainer .detail .goodContainer .good>.item>div>p[data-v-787b7312]{margin-top:.35rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#333}.outContainer .detail .goodContainer .goodList[data-v-787b7312]{margin-top:.75rem;background-color:#f2f2f2;height:2.2rem;overflow:hidden}.outContainer .detail .goodContainer .goodList .num[data-v-787b7312]{width:2rem;float:left;height:100%;position:relative;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;line-height:.7rem;color:#333}.outContainer .detail .goodContainer .goodList .num>p[data-v-787b7312]:first-of-type{margin-top:.45rem}.outContainer .detail .goodContainer .goodList .num[data-v-787b7312]:after{content:\"\";position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:.925rem;background-color:silver}.outContainer .headList[data-v-787b7312]{height:100%;overflow:hidden;text-align:center;padding-top:.5rem}.outContainer .headList img[data-v-787b7312]{width:1.4rem;height:1.4rem;border-radius:50%;background-color:#f0f8ff;margin-right:.5rem;margin-top:.55rem;margin-bottom:.5rem;pointer-events:none}.outContainer .detail .goodContainer-ad[data-v-787b7312]{padding:1rem 0}.outContainer .detail .goodContainer-ad .good[data-v-787b7312]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .detail .goodContainer-ad .item[data-v-787b7312]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.outContainer .detail .goodContainer-ad span[data-v-787b7312]{font-size:.65rem}.outContainer .detail .goodContainer-ad .item[data-v-787b7312]:nth-child(2){padding:0 .3rem}.outContainer .detail .goodContainer-ad .item>div[data-v-787b7312]{border:1px solid #dfe2e7;border-radius:1rem;box-sizing:border-box;text-align:center;padding:.3rem}.goodContainer-ad-btn[data-v-787b7312]{font-family:PingFangSC-Medium,PingFangSC;font-weight:500;color:#ff701f;font-size:.75rem;line-height:2.7rem;text-align:center;border-radius:1.49rem;margin:0 auto .3rem;display:inline-block;padding:0 1.6rem;vertical-align:middle}.goodContainer-ad-btn img[data-v-787b7312]{width:1rem;vertical-align:middle;margin-right:.4rem;position:relative;top:-.1rem}.outContainer .detail .goodContainer-ad .item img[data-v-787b7312]{width:.8rem;position:relative;top:.15rem}.outContainer .detail .reward[data-v-787b7312]{padding-top:.4rem;padding-bottom:1rem;text-align:center}.outContainer .detail .reward>.rewardBtn[data-v-787b7312]{display:inline-block;width:5.65rem;height:1.6rem;line-height:1.625rem;text-align:center;border:1px solid #ee4545;border-radius:2px;font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545}.outContainer .detail .reward>.rewardBtn>img[data-v-787b7312]{width:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.25rem}.outContainer .detail .reward>.rewardNum[data-v-787b7312]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666;margin-top:.2rem;line-height:1}.outContainer .detail .more[data-v-787b7312]{padding-bottom:.8rem;padding-top:.8rem;background-color:#f2f2f2}.outContainer .detail .more>div[data-v-787b7312]{width:120px;border-radius:15px;line-height:29px;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;text-decoration:underline;margin:0 auto}.outContainer .detail .adContainer .ad[data-v-787b7312]{padding:.8rem .8rem .6rem}.outContainer .detail .adContainer .ad>img[data-v-787b7312]{width:100%;height:4.5rem;border-radius:.4rem;pointer-events:none}.outContainer .detail .commentList .title[data-v-787b7312]{font-size:.8rem!important;font-family:PingFangSC-Semibold,PingFangSC;font-weight:600;color:#333;line-height:1.13rem;padding:.8rem .8rem 0}.outContainer .detail .commentList .title>span[data-v-787b7312]{font-size:.8rem!important;font-family:PingFangSC-Semibold;color:#333;display:inline}.outContainer .detail .commentList .itemList .item[data-v-787b7312]{position:relative}.outContainer .detail .commentList .itemList .item>img[data-v-787b7312]{float:left;width:1.8rem;height:1.8rem;margin-left:.8rem;margin-top:1.2rem;border-radius:50%}.outContainer .detail .commentList .itemList .item>.crown[data-v-787b7312]{display:inline-block;width:.65rem;height:.65rem;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ");position:absolute;left:2rem;top:2.3rem}.outContainer .detail .commentList .itemList .item>.rightContent[data-v-787b7312]{padding-top:1.2rem;margin-left:3.2rem;padding-bottom:.6rem;position:relative}.outContainer .detail .commentList .itemList .item>.rightContent .name[data-v-787b7312]{font-size:.75rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.05rem}.outContainer .detail .commentList .itemList .item>.rightContent .name .medal[data-v-787b7312]{height:.8rem;margin-right:.2rem;position:relative;left:0;top:2px;pointer-events:none}.outContainer .detail .commentList .itemList .item>.rightContent .location>span[data-v-787b7312],.outContainer .detail .commentList .itemList .item>.rightContent .location [data-v-787b7312]{font-size:.55rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:.75rem}.outContainer .detail .commentList .itemList .item>.rightContent .commentDetail[data-v-787b7312]{font-size:.9rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.45rem;margin:.4rem 0;text-align:justify;padding-right:.8rem}.outContainer .detail .commentList .itemList .item>.rightContent .commentDetail img[data-v-787b7312]{pointer-events:none}.outContainer .detail .commentList .itemList .item>.rightContent .commentImgList[data-v-787b7312]{margin-top:.4rem}.outContainer .detail .commentList .itemList .item>.rightContent .commentImgList>img[data-v-787b7312]{object-fit:cover;object-position:50% 50%;width:4.8rem;height:4.8rem;border-radius:.2rem}.outContainer .detail .commentList .itemList .item>.rightContent .reply[data-v-787b7312]{position:relative;margin-top:.6rem}.outContainer .detail .commentList .itemList .item>.rightContent .reply div[data-v-787b7312]{display:inline-block;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .detail .commentList .itemList .item>.rightContent .reply div>img[data-v-787b7312]{width:.8rem;height:.8rem;vertical-align:middle;position:relative;top:-1px;left:0}.outContainer .detail .commentList .itemList .item>.rightContent .reply .report[data-v-787b7312]{position:absolute;right:.8rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:.6rem;color:#999}.outContainer .detail .commentList .itemList .item>.rightContent .replyList[data-v-787b7312]{width:14.8rem;margin-top:.2rem;background-color:#f5f5f5;border-radius:.2rem}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer[data-v-787b7312]{padding:.6rem}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem[data-v-787b7312]{padding-bottom:.4rem}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem[data-v-787b7312]:last-child{padding-bottom:0}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem>span[data-v-787b7312]{display:inline}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem .replyName[data-v-787b7312]{font-family:PingFangSC-Semibold;font-size:.7rem;color:#333;font-weight:700}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem .replyContent[data-v-787b7312]{font-family:PingFangSC-Regular;font-size:.7rem;color:#151515}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem .replyContent img[data-v-787b7312]{pointer-events:none}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .showAll[data-v-787b7312]{line-height:1.8rem;font-family:PingFangSC-Regular;font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#377ee1;line-height:1rem;padding-top:.4rem;padding-left:.6rem;padding-bottom:.6rem}.outContainer .detail .commentList .itemList .item>.rightContent .goodNum[data-v-787b7312]{position:absolute;top:1.175rem;right:.8rem;width:3.2rem;text-align:right}.outContainer .detail .commentList .itemList .item>.rightContent .goodNum>img[data-v-787b7312]{width:.8rem;height:.8rem;pointer-events:none;vertical-align:middle}.outContainer .detail .commentList .itemList .item>.rightContent .goodNum span[data-v-787b7312]{vertical-align:middle}.outContainer .detail .commentList .itemList .adInComment>.rightContent .commentDetail[data-v-787b7312]{line-height:1.2rem;font-size:1rem;font-family:PingFangSC-Semibold;font-weight:700;color:#000}.outContainer .detail .commentList .itemList .adInComment>.rightContent .clickBtn[data-v-787b7312]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;margin-top:.6rem}.outContainer .detail .commentList .itemList .adInComment>.rightContent .clickBtn>img[data-v-787b7312]{width:.65rem;height:.45rem;margin-right:.2rem;vertical-align:baseline}.outContainer .detail .noComments[data-v-787b7312]{background-color:#fff;height:10.8rem;text-align:center}.outContainer .detail .noComments>img[data-v-787b7312]{width:5rem;margin:1.2rem auto 0;pointer-events:none;display:block}.outContainer .detail .noComments>p[data-v-787b7312]{font-family:PingFangSC-Regular;font-size:.7rem;color:#333;margin-top:.3rem;margin-bottom:.75rem}.outContainer .detail .noComments>div[data-v-787b7312]{width:5.65rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:1.6rem;border:1px solid #636363;font-family:PingFangSC-Regular;font-size:.7rem;color:#333;margin:0 auto}.outContainer .commentBox[data-v-787b7312]{height:2.6rem;position:relative;background:#fff;box-shadow:0 -.1rem .2rem 0 hsla(0,0%,88%,.5)}.outContainer .commentBox .home[data-v-787b7312]{width:1.78rem;height:1.55rem;position:absolute;top:50%;left:.8rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);text-align:center}.outContainer .commentBox .home img[data-v-787b7312]{width:.8rem;display:inline-block}.outContainer .commentBox .input[data-v-787b7312]{width:9.98rem;height:1.8rem;background:#f5f5f5;border-radius:.2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:1rem;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:3.58rem;line-height:1.8rem;padding-left:.6rem}.outContainer .commentBox .good[data-v-787b7312]{right:3rem}.outContainer .commentBox .good[data-v-787b7312],.outContainer .commentBox .share[data-v-787b7312]{position:absolute;top:50%;width:1.2rem;height:1.2rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .commentBox .share[data-v-787b7312]{right:.8rem}.outContainer .toTop[data-v-787b7312]{width:2.2rem;height:2.2rem;position:fixed;z-index:1;right:.8rem;bottom:14%}.outContainer .toTop>img[data-v-787b7312]{width:100%;height:100%}.deleteFlage[data-v-787b7312]{text-align:center;padding-top:75px}.deleteFlage>img[data-v-787b7312]{width:46px;height:48px}.deleteFlage>p[data-v-787b7312]{margin-top:8px;font-family:PingFangSC-Regular;font-size:16px;color:#666}.deleteFlage>div[data-v-787b7312]{border:1px solid #377ee1;border-radius:17px;width:135px;height:33px;line-height:33px;margin:32px auto 0;font-family:PingFangSC-Regular;font-size:16px;color:#377ee1}.dialog-mark[data-v-787b7312]{background:rgba(0,0,0,.7);width:100%;height:100%;top:0;left:0;position:fixed;z-index:88}.dialog-panel[data-v-787b7312]{background:#fff;width:100%;height:50%;bottom:0;left:0;position:fixed;z-index:89;overflow:hidden;border-radius:10px 10px 0 0;box-sizing:border-box;padding-top:2.75rem}.dialog-panel-title[data-v-787b7312]{background:#f6f6f6;text-align:center;margin-top:-2.75rem;line-height:2.75rem;overflow:hidden;position:relative}.dialog-panel-title td[data-v-787b7312]{padding:0 .8rem}.dialog-panel-title h3[data-v-787b7312]{font-size:.85rem;font-family:PingFangSC-Semibold,PingFangSC;font-weight:600;color:#333;line-height:1.2rem;display:inline-block}.dialog-panel-title .cancel[data-v-787b7312]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999}.dialog-panel-content[data-v-787b7312]{height:100%;width:100%;overflow:auto;padding:0 .8rem;box-sizing:border-box}.dialog-panel-content table[data-v-787b7312]{width:100%}.dialog-panel-content td[data-v-787b7312]{text-align:center;width:25%;padding:1.2rem 0 0}.dialog-panel-content td span[data-v-787b7312]{font-size:.65rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:.9rem}.dialog-panel-content td img[data-v-787b7312]{width:2.5rem;display:block;margin:0 auto 5px}.dialog-panel-content .sub-btn[data-v-787b7312]{width:100%;border-radius:.2rem;text-align:center;line-height:2.6rem;font-size:.85rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#fff;background:#177afa;margin-top:1.8rem}.dialog-panel-content textarea[data-v-787b7312]{background:#f5f5f5;color:#555;min-height:3rem;font-size:.8rem;width:100%;border:none;padding:.2rem}.dialog-panel-content .item[data-v-787b7312]{border-bottom:1px solid #eee;line-height:2.6rem}.dialog-panel-content .item img[data-v-787b7312]{width:.8rem;position:relative;top:.9rem;margin-right:.4rem}.dialog-panel-content .item span[data-v-787b7312]{font-size:.8rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.13rem}.icon-success[data-v-787b7312]{display:block;width:1.8rem;height:1.8rem;background:url(" + escape(__webpack_require__(1492)) + ") no-repeat 50%;background-size:1.8rem 1.8rem;margin:0 auto}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _comment = _interopRequireDefault(__webpack_require__(1493));
var _reply = _interopRequireDefault(__webpack_require__(833));
var _replyDetail = _interopRequireDefault(__webpack_require__(1602));
var _audioPlayer = _interopRequireDefault(__webpack_require__(1603));
var _videoPlayer = _interopRequireDefault(__webpack_require__(169));
var _throttleDebounce = __webpack_require__(21);
var _card = _interopRequireDefault(__webpack_require__(117));
var _header = _interopRequireDefault(__webpack_require__(93));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import reportBox from "./components/reportBox.vue";
// import Ad from '../../components/Ad/Ad.vue'
var _default = exports.default = {
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      // reportText: '',
      typeList: [],
      chooseType: '',
      href: window.location.href,
      moreDialog: false,
      reportDialog: false,
      reportType: '',
      type: '',
      currentCommunityId: '',
      articleDetail: {},
      showTop: false,
      showShareBox: false,
      showCommentBox: false,
      allLoaded: false,
      scrollLoading: false,
      commentList: [],
      commentTotal: '',
      commentDataInit: false,
      pageSize: 5,
      pageNum: 1,
      currentUserId: '',
      shareContent: {},
      showReportBox: false,
      showReply: false,
      showReplyDetail: false,
      commentId: '',
      commentName: '',
      adInfo: '',
      btnTxt: {
        jump_text: '',
        jump_url: '',
        praise_text: ''
      },
      inWxMiniApp: localStorage.getItem('inWxMinapp') === '1' // 是否在微信小程序打开
    };
  },
  created: function created() {
    if (this.$route.query.shareId) {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: '帖子详情页',
        optionType: '打开',
        param1: this.$route.query.articleId,
        param2: this.$route.query.shareId
      }, this);
    }
  },
  mounted: function mounted() {
    this.getCurrentUser();
    this.getArticleDetail();
    this.getCommentList();

    // 获取点赞按钮关键字
    this.getBtnTitle();
    this.getTypeList();
  },
  methods: {
    submitEvent: function submitEvent() {
      var _this = this;
      if (!this.chooseType) {
        (0, _mintUi.Toast)({
          message: '请选择举报原因',
          position: 'middle',
          duration: 1000
        });
        return;
      }
      if (this.submiting === true) return;
      // if (this.reportText == '') {
      //   Toast({
      //     message: '请输入举报原因',
      //     position: 'middle',
      //     duration: 1000
      //   });
      //   return
      // }
      this.submiting = true;
      this._Util.post(this._Api.POST_COMMUNITY_REPORT_SUBMIT, {
        // 帖id或者留言id
        communityId: this.currentCommunityId,
        // 1：举报帖子 2：举报评论
        type: this.type,
        // 帖举报类型
        reportType: this.chooseType
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '举报成功',
          position: 'middle',
          duration: 1000
        });
        _this.submiting = false;
        _this.reportDialog = false;
        _this.chooseType = '';
        _this.$emit('submit');
        // this.$emit('close');
      }, function () {
        _this.submiting = false;
      }, this);
    },
    getTypeList: function getTypeList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_COMMUNITY_REPORT_TYPE_LIST, {}, function (data) {
        _this2.typeList = data;
      }, function () {}, this, true);
    },
    onCopy: function onCopy(e) {
      console.log(e);
      this.$toast({
        message: '已复制链接',
        iconClass: 'icon-success',
        duration: 1000,
        position: 'middle'
      });
    },
    // 获取点赞按钮关键字
    getBtnTitle: function getBtnTitle() {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'praise_set',
        article_id: this.$route.query.articleId
      }, function (data) {
        console.log('获取点赞按钮关键字', data);
        _this3.btnTxt.jump_text = data.dataList[0].jump_text;
        _this3.btnTxt.jump_url = data.dataList[0].jump_url;
        _this3.btnTxt.praise_text = data.dataList[0].praise_text;
      }, function () {}, this);
    },
    /** 回到顶部 */toHideTopImg: function toHideTopImg() {
      event.preventDefault();
      (0, _jquery.default)('.detail').animate({
        scrollTop: 0
      }, 200);
    },
    /** 是否展示回到顶部图标 */
    toggleTopImg: (0, _throttleDebounce.debounce)(100, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(e) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (e.target.scrollTop > e.target.clientHeight) {
                this.showTop = true;
              } else {
                this.showTop = false;
              }
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 获取广告位 */getAd: function getAd() {
      var _this4 = this;
      this._Util.post(this._Api.POST_ADVERT_POSITION, {
        signType: 3
      }, function (data) {
        if (data.advertId) {
          _this4.adInfo = data;
        }
      }, function () {}, this);
    },
    /** 关注、取消关注 */
    followToggle: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(userId, status) {
        var _this5 = this;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              this._Util.post(this._Api.POST_COMMUNITY_USER_FOLLOW_TOGGLE, {
                userId: userId,
                status: status ? '0' : '1'
              }, function (data) {
                _this5.articleDetail.followStatus = status ? '0' : '1';
              }, function () {}, this, true);
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x2, _x3) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /** 记录分享行为 */recordShare: function recordShare() {
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_RECORD_SHARE, {
        articleId: this.$route.query.articleId
      }, function (data) {}, function () {}, this, true);
    },
    /** 进入打赏页面 */goRewardPage: function goRewardPage() {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: '帖子详情',
        optionType: '点击',
        param1: this.$route.query.articleId,
        param2: '打赏楼主'
      }, this);
      location.href = location.origin + '/v2/shopping/articleReward?articleId=' + this.articleDetail.articleId;
    },
    /** 发帖 */postMessage: function postMessage(moduleId, moduleName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpImg',
          extra: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      } else {
        this.$router.push({
          name: 'communityWxpost',
          query: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      }
    },
    /**
     * 进入广告页面
     * @param {String} url 广告链接
     * @param {Object} adObj 广告对象内容
    */
    goAd: function goAd(url, adObj) {
      if (adObj) {
        // 只有配置的广告位才会传递该选项
        this._Util.sensorsCollect('click_advert', {
          $element_content: '广告位',
          operation_page: document.title,
          advert_type_name: '运营页',
          advert_name: adObj.advertName,
          jump_url: adObj.advertUrl,
          $url: window.location.href,
          correlation_id: adObj.advertId
        });
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adContainer' + Date.now(),
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /** 进入社区首页 */goCommunity: function goCommunity() {
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        uni.switchTab({
          // eslint-disable-line
          url: "/pages/community/community"
        });
        return;
      }
      event.preventDefault();
      this.$router.push({
        name: 'fms'
      });
    },
    /** 获取当前用户信息 */getCurrentUser: function getCurrentUser() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.currentUserId = data.userId;
        that.getShareInfo();
      }, function () {}, that);
    },
    /** 进入用户主页 */goUserPage: function goUserPage(userId) {
      event.preventDefault();
      if (this.currentUserId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId
            }
          });
        } else {
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage',
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    },
    /** 进入板块详情 */goPlateDetail: function goPlateDetail(modulId, modulName, moduleType) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'modulPage' + modulId,
            url: location.origin + '/v2/community/modulPage?modulId=' + modulId + '&modulName=' + modulName + '&moduleType=' + moduleType
          }
        });
      } else {
        this.$router.push({
          name: 'modulPage',
          query: {
            modulId: modulId,
            modulName: modulName,
            moduleType: moduleType
          }
        });
      }
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl.includes('watermark/3') ? imgUrl : imgUrl + (imgUrl.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v.includes('watermark/3') ? v : v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /** 分享按钮逻辑 */shareBtn: function shareBtn() {
      event.preventDefault();
      var that = this;
      if (that._Util.isApp()) {
        that._Util.acSendEvent({
          name: 'showSharePage',
          extra: {
            title: that.shareContent.share_title,
            link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
            imgUrl: that.shareContent.share_img
          }
        });
      } else {
        that.recordShare(); // 记录分享行为
        that.showShareBox = true;
      }
    },
    /** 分享给好友 */shareFriends: function shareFriends(type) {
      var that = this;
      // 埋点
      if (type === 'timeline') {
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '交流',
          operate_page: '帖子详情页',
          optionType: '点击',
          param1: that.$route.query.articleId,
          param2: '分享到朋友圈'
        }, this);
      } else if (type === 'session') {
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '交流',
          operate_page: '帖子详情页',
          optionType: '点击',
          param1: that.$route.query.articleId,
          param2: '分享给好友'
        }, this);
      }
      that.recordShare(); // 记录分享行为
      if (that._Util.isApp()) {
        that.isRight(function () {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: that.shareContent.share_title,
                desc: that.shareContent.share_text,
                link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
                imgLink: that.shareContent.share_img
              }
            }
          });
        });
      } else if (that._Util.isMPaaS()) {
        var params = {
          title: that.shareContent.share_title,
          desc: that.shareContent.share_text,
          link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
          imgUrl: that.shareContent.share_img
        };
        if (type === 'timeline') {
          params.isWXTL = true;
        } else if (type === 'session') {
          params.isWX = true;
        }
        this._Util.mpassShare(params, function (shareData) {
          console.log(shareData);
        });
      } else {
        that.showShareBox = true;
      }
    },
    /**
     * app是否有某个权限
    */
    isRight: function isRight(callBack) {
      var resultList = api.hasPermission({
        list: ['photos']
      });
      console.log(JSON.stringify('是否有存储的权限,帖子详情页----' + resultList[0].granted));
      if (!resultList[0].granted) {
        (0, _mintUi.MessageBox)({
          title: '“卡修宝典”想访问您的存储权限',
          message: '在使用分享功能时，需要使用存储功能，用于下载并存储分享图片',
          confirmButtonText: '同意',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action == 'confirm') {
            api.requestPermission({
              list: ['photos'],
              code: 100004
            }, function (ret, err) {
              if (ret.never) {
                console.log('点击了不再提醒');
              }
              if (ret.list[0].granted) {
                callBack && callBack();
              }
            });
          }
        });
      } else {
        callBack && callBack();
      }
    },
    /** 获取分享信息 */getShareInfo: function getShareInfo() {
      var _this6 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'community_share_set',
        sys_uid: this.currentUserId,
        article_id: this.$route.query.articleId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          console.log(data);
          _this6.shareContent = {
            share_img: data.dataList[0].share_img,
            share_text: data.dataList[0].share_text,
            share_title: data.dataList[0].share_title
          };
          _this6.share();
        }
      }, function () {}, this);
    },
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.shareContent.share_title,
                  desc: that.shareContent.share_text,
                  link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
                  imgUrl: that.shareContent.share_img
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
              imgUrl: that.shareContent.share_img,
              success: function success(data) {
                var type = '';
                if (data.errMsg.includes('Message')) {
                  type = 'session';
                } else {
                  type = 'timeline';
                }
                that.shareFriends(type);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 刷新评论 */refreshComment: function refreshComment() {
      this.commentId = '';
      this.commentName = '';
      this.commentDataInit = false;
      this.commentList = [];
      this.commentTotal = '';
      this.allLoaded = false;
      this.scrollLoading = false;
      this.pageNum = 1;
      this.showCommentBox = false;
      this.showReply = false;
      this.showReplyDetail = false;
      this.getCommentList();
    },
    /** 获取评论信息 */getCommentList: function getCommentList() {
      var _this7 = this;
      this._Util.post(this._Api.POST_COMMUNITY_GET_ARTICLE_COMMENT, {
        pageSize: this.pageSize,
        pageNum: this.pageNum,
        articleId: this.$route.query.articleId
      }, function (data) {
        _this7.commentTotal = data.commentTotal;
        _this7.commentList = _this7.commentList.concat(data.articleCommentList);
        _this7.commentDataInit = true;
        _this7.scrollLoading = false;
        if (data.articleCommentList.length < _this7.pageSize) {
          _this7.allLoaded = true;
        } else {
          _this7.pageNum++;
        }
      }, function () {}, this, true);
    },
    /** 留言点赞 */likeComment: function likeComment(commentId, isPraise, index) {
      var _this8 = this;
      if (isPraise == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 2,
        communityId: commentId
      }, function (data) {
        _this8.commentList[index].isPraise = 1;
        _this8.commentList[index].praiseTotal++;
      }, function () {}, this, true);
    },
    /** 帖子点赞 */likeArticle: function likeArticle(isPraise) {
      var _this9 = this;
      event.preventDefault();
      if (isPraise == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: '帖子详情',
        optionType: '点击',
        param1: this.$route.query.articleId,
        param2: '点赞'
      }, this);
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 1,
        communityId: this.$route.query.articleId
      }, function (data) {
        _this9.articleDetail.isPraise = 1;
        // Toast({
        //   message: "点赞成功",
        //   position: "bottom",
        //   duration: 1000
        // });
        _this9.getArticleDetail();
      }, function () {
        // Toast({
        //   message: "点赞失败",
        //   position: "bottom",
        //   duration: 1000
        // });
      }, this, true);
    },
    /** 获取文章详情 */getArticleDetail: function getArticleDetail() {
      var _this0 = this;
      this._Util.post(this._Api.POST_COMMUNITY_GET_ARTICLE_DETAIL, {
        id: this.$route.query.articleId
      }, function (data) {
        if (data.deleteFlag === 1) {
          location.replace(location.origin + '/v2/community/articleDetail?articleId=' + data.articleId);
        }
        console.log('获取文章详情', data);
        _this0.articleDetail = data;
        _this0.articleDetail.praiseList = data.praiseList;
        if (_this0.articleDetail.praiseList.length > 8) {
          _this0.articleDetail.praiseList.length = 8;
        }
        document.title = _this0.articleDetail.articleTitle || '帖子详情';
        if (_this0.articleDetail.adModule === 1) {
          _this0.getAd();
        }
      }, function () {}, this, true);
    },
    loadMore: function loadMore() {
      if (!this.allLoaded && !this.scrollLoading) {
        this.scrollLoading = true;
        this.getCommentList();
      }
    }
  },
  components: {
    comment: _comment.default,
    card: _card.default,
    reply: _reply.default,
    headerFixed: _header.default,
    // reportBox,
    replyDetail: _replyDetail.default,
    // Ad,
    audioPlayer: _audioPlayer.default,
    videoPlayer: _videoPlayer.default
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.articleDetail.deleteFlag===0)?_c('div',{staticClass:"outContainer __articleDetail",style:(!_vm.isApp && !_vm.inWxMiniApp ? 'padding-top:2.6rem;' : '')},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTop),expression:"showTop"}],staticClass:"toTop"},[_c('img',{staticClass:"toupImg",attrs:{"src":__webpack_require__(822)},on:{"click":function($event){return _vm.toHideTopImg()}}})]),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_c('div',{staticClass:"shareTips",style:({'right': _vm.inWxMiniApp ? '2.5rem' : '0.5rem'})},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"detail",on:{"scroll":function($event){return _vm.toggleTopImg($event)}}},[_c('div',{staticStyle:{"background-color":"#fff"}},[(_vm.articleDetail.articleTitle&&_vm.articleDetail.contentType==0)?_c('div',{staticClass:"articleTitle"},[_vm._v("\n        "+_vm._s(_vm.articleDetail.articleTitle)+"\n      ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.videoList&&_vm.articleDetail.contentType==1)?_c('div',{staticStyle:{"height":"10.5rem"}},[_c('video-player',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showCommentBox&&!_vm.showShareBox),expression:"!showCommentBox&&!showShareBox"}],attrs:{"log-info":{ article_id: _vm.$route.query.articleId },"url":_vm.articleDetail.videoList}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":_vm.articleDetail.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){return _vm.goUserPage(_vm.articleDetail.userId)}}}),_vm._v(" "),(_vm.articleDetail.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{on:{"click":function($event){return _vm.goUserPage(_vm.articleDetail.userId)}}},[_vm._v(_vm._s(_vm.articleDetail.userName.slice(0,7)))]),_vm._v(" "),_vm._l((_vm.articleDetail.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val.medalIcon,"alt":""}})})],2),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(_vm.articleDetail.time)),(_vm.articleDetail.position)?_c('span',[_vm._v("·"+_vm._s(_vm.articleDetail.position))]):(_vm.articleDetail.uprovince||_vm.articleDetail.ucity)?_c('span',{on:{"click":function($event){return _vm.goUserPage(_vm.articleDetail.userId)}}},[_vm._v("·"+_vm._s(_vm.articleDetail.uprovince==_vm.articleDetail.ucity?_vm.articleDetail.uprovince:_vm.articleDetail.uprovince+_vm.articleDetail.ucity))]):_vm._e()])]),_vm._v(" "),(_vm.articleDetail.followStatus==1&&_vm.articleDetail.userId!=_vm.currentUserId)?_c('div',{staticClass:"followed",on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(_vm.articleDetail.userId)}}},[_vm._v("\n          已关注\n        ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.followStatus==0&&_vm.articleDetail.userId!=_vm.currentUserId)?_c('div',{staticClass:"follow",on:{"click":function($event){$event.stopPropagation();return _vm.followToggle(_vm.articleDetail.userId, _vm.articleDetail.followStatus)}}},[_c('img',{staticStyle:{"width":".4rem","height":".4rem","margin-top":"5px"},attrs:{"src":__webpack_require__(2460)}}),_vm._v("\n          关注\n        ")]):_vm._e()]),_vm._v(" "),(_vm.articleDetail.audioUrl&&_vm.articleDetail.contentType==0)?_c('div',{staticClass:"audioContainer"},[_c('audio-player',{attrs:{"title":_vm.articleDetail.audioTitle,"from":_vm.articleDetail.audioFrom,"url":_vm.articleDetail.audioUrl}})],1):_vm._e(),_vm._v(" "),(_vm.articleDetail.articleTitle&&_vm.articleDetail.contentType==1)?_c('div',{staticClass:"videoTitle"},[_vm._v("\n        "+_vm._s(_vm.articleDetail.articleTitle)+"\n      ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.content)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.articleDetail.content)}},[_vm._v("\n        "+_vm._s(_vm.articleDetail.content)+"\n      ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.pictureList&&_vm.articleDetail.pictureList.length===1)?_c('div',{staticClass:"singleImg"},[(_vm.articleDetail.pictureList[0].includes('watermark/3'))?_c('img',{attrs:{"src":_vm.articleDetail.pictureList[0],"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(_vm.articleDetail.pictureList[0], [])}}}):_c('img',{attrs:{"src":_vm.articleDetail.pictureList[0] + (_vm.articleDetail.pictureList[0].indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(_vm.articleDetail.pictureList[0], [])}}})]):_vm._e(),_vm._v(" "),(_vm.articleDetail.pictureList&&_vm.articleDetail.pictureList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((_vm.articleDetail.pictureList),function(v,i){return _c('img',{key:i,attrs:{"src":v.indexOf('watermark/3') > -1 ? v : ( v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/220/h/220'),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, _vm.articleDetail.pictureList, i)}}})}),0):_vm._e(),_vm._v(" "),(_vm.articleDetail.videoList&&_vm.articleDetail.contentType!=1)?_c('div',{staticClass:"videoFrame"},[_c('div',[_c('video-player',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showCommentBox&&!_vm.showShareBox),expression:"!showCommentBox&&!showShareBox"}],attrs:{"url":_vm.articleDetail.videoList}})],1)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"plateNameContainer"},[(_vm.articleDetail.moduleName)?_c('div',{staticClass:"plateName",on:{"click":function($event){$event.stopPropagation();return _vm.goPlateDetail(_vm.articleDetail.moduleId, _vm.articleDetail.moduleName, _vm.articleDetail.moduleType)}}},[_c('img',{attrs:{"src":__webpack_require__(210),"alt":""}}),_vm._v(_vm._s(_vm.articleDetail.moduleName)+"\n        ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.hotStatus>0)?_c('div',{staticClass:"plateName best"},[_c('img',{attrs:{"src":__webpack_require__(1416),"alt":""}}),_vm._v("精选\n        ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"report",on:{"click":function($event){$event.stopPropagation();_vm.moreDialog=true;_vm.currentCommunityId=_vm.$route.query.articleId;_vm.type=1;}}},[_c('img',{staticStyle:{"width":"1rem"},attrs:{"src":__webpack_require__(213),"alt":""}})])]),_vm._v(" "),(_vm.articleDetail.type===1&&_vm.articleDetail.advertType===2)?_c('div',{staticClass:"topicContainer"},[_c('table',[_c('tr',[(_vm.articleDetail.advertBtnOne)?_c('td',[_c('div',{staticClass:"btn",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(_vm.articleDetail.advertLinkOne)}}},[_vm._v(_vm._s(_vm.articleDetail.advertBtnOne))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.advertBtnTwo)?_c('td',[_c('div',{staticClass:"btn blue",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(_vm.articleDetail.advertLinkTwo)}}},[_vm._v(_vm._s(_vm.articleDetail.advertBtnTwo))])]):_vm._e()])])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type===2)?_c('div',{staticClass:"topicContainer"},[_c('table',[_c('tr',[(_vm.articleDetail.enterTopicBtn)?_c('td',[_c('span',{staticClass:"btn",on:{"click":function($event){$event.stopPropagation();return _vm.goPlateDetail(_vm.articleDetail.moduleId, _vm.articleDetail.moduleName, _vm.articleDetail.moduleType)}}},[_vm._v(_vm._s(_vm.articleDetail.enterTopicBtn))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.hairTopicBtn&&_vm.articleDetail.topicStatus===1)?_c('td',[_c('span',{staticClass:"btn blue",on:{"click":function($event){$event.stopPropagation();return _vm.postMessage(_vm.articleDetail.moduleId, _vm.articleDetail.moduleName)}}},[_vm._v(_vm._s(_vm.articleDetail.hairTopicBtn))])]):_vm._e()])])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.inPostAdvert)?_c('div',{staticClass:"adInArticle"},[_c('div',{on:{"click":function($event){return _vm.goAd(_vm.articleDetail.inPostAdvert.advertUrl)}}},[_vm._v("\n          "+_vm._s(_vm.articleDetail.inPostAdvert.advertContext)+"\n          "),_c('span',[_vm._v("点击查看详情")])])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type===0)?_c('div',{staticStyle:{"padding":".8rem","text-align":"center"}},[(_vm.articleDetail.isPraise==0)?_c('div',[_c('div',{staticClass:"goodContainer-ad-btn",staticStyle:{"background":"rgba(255,239,230,1)"},on:{"click":function($event){return _vm.likeArticle(_vm.articleDetail.isPraise)}}},[_c('div',[_c('img',{attrs:{"src":__webpack_require__(2461),"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.btnTxt.praise_text)+"点赞")])])]),_vm._v(" "),_c('p',{staticStyle:{"text-align":"center"}},[_vm._v(_vm._s(_vm.articleDetail.praiseTotal)+"人觉得很赞")]),_vm._v(" "),(_vm.articleDetail.praiseList.length>0)?_c('div',{staticClass:"headList"},_vm._l((_vm.articleDetail.praiseList),function(v,i){return _c('img',{key:i,attrs:{"src":v.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}})}),0):_vm._e()]):_c('div',{staticStyle:{"text-align":"center"}},[_c('div',{staticClass:"goodContainer-ad-btn",staticStyle:{"background":"rgba(245,245,245,1)"}},[_c('div',[_c('img',{staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(2462),"alt":""}}),_vm._v(" "),_c('span',{staticStyle:{"color":"#FF701F","vertical-align":"middle"}},[_vm._v(_vm._s(_vm.articleDetail.praiseTotal)+"人觉得很赞")])])]),_vm._v(" "),_c('div',[_c('a',{staticStyle:{"color":"#177AFA"},attrs:{"href":_vm.btnTxt.jump_url,"target":"_blank"}},[_vm._v(_vm._s(_vm.btnTxt.jump_text))])]),_vm._v(" "),(_vm.articleDetail.praiseList.length>0)?_c('div',{staticClass:"headList"},_vm._l((_vm.articleDetail.praiseList),function(v,i){return _c('span',{key:i},[(i === 0)?_c('img',{staticStyle:{"border":"1px solid #FF701F"},attrs:{"src":v.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}):_c('img',{attrs:{"src":v.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}})])}),0):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"goodContainer-ad"},[_c('div',{staticClass:"good"},[(!(_vm.inWxMiniApp && _vm._Util.isIOS))?_c('div',{staticClass:"item"},[_c('div',{on:{"click":_vm.goRewardPage}},[_c('img',{attrs:{"src":__webpack_require__(2463),"alt":"打赏楼主"}}),_vm._v(" "),_c('span',[_vm._v("打赏楼主")])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"item"},[_c('div',{on:{"click":function($event){return _vm.shareFriends('session')}}},[_c('img',{attrs:{"src":__webpack_require__(2464),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("分享给好友")])])]),_vm._v(" "),_c('div',{staticClass:"item"},[_c('div',{on:{"click":function($event){return _vm.shareFriends('timeline')}}},[_c('img',{attrs:{"src":__webpack_require__(2465),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("分享朋友圈")])])])])])]):_c('div',{staticClass:"goodContainer"},[_c('div',{staticClass:"good"},[(_vm.articleDetail.isPraise==0)?_c('div',{staticClass:"item"},[_c('div',[_c('img',{attrs:{"src":__webpack_require__(2466),"alt":""},on:{"click":function($event){return _vm.likeArticle(_vm.articleDetail.isPraise)}}}),_vm._v(" "),_c('p',[_vm._v("点赞")])])]):_c('div',{staticClass:"item"},[_c('div',[_c('img',{staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(2467),"alt":""}}),_vm._v(" "),_c('p',{staticStyle:{"color":"#FF701F"}},[_vm._v(_vm._s(_vm.articleDetail.praiseTotal)+"人点赞")])])]),_vm._v(" "),(!(_vm.inWxMiniApp && _vm._Util.isIOS))?_c('div',{staticClass:"item",on:{"click":_vm.goRewardPage}},[_vm._m(0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"item"},[_c('div',[_c('img',{attrs:{"src":__webpack_require__(834),"alt":""},on:{"click":function($event){return _vm.shareFriends('session')}}}),_vm._v(" "),_c('p',[_vm._v("分享给好友")])])]),_vm._v(" "),_c('div',{staticClass:"item"},[_c('div',[_c('img',{attrs:{"src":__webpack_require__(1604),"alt":""},on:{"click":function($event){return _vm.shareFriends('timeline')}}}),_vm._v(" "),_c('p',[_vm._v("分享朋友圈")])])])])]),_vm._v(" "),_c('card',{attrs:{"cardcontent":{}}}),_vm._v(" "),(_vm.adInfo)?_c('div',{staticClass:"adContainer"},[_c('div',{staticClass:"ad",on:{"click":function($event){return _vm.goAd(_vm.adInfo.advertUrl, _vm.adInfo)}}},[_c('img',{attrs:{"src":_vm.adInfo.advertImg,"alt":""}})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"commentList"},[_c('div',{staticStyle:{"height":"8px","background-color":"#f2f2f2"}}),_vm._v(" "),_c('div',{staticClass:"title"},[_vm._v("\n          评论"),(_vm.commentTotal>0)?_c('span',[_vm._v(_vm._s(_vm.commentTotal))]):_vm._e(),(_vm.articleDetail.rewardCount)?_c('span',[_vm._v(" · 打赏"+_vm._s(_vm.articleDetail.rewardCount))]):_vm._e(),_vm._v(" "),_c('span',{staticStyle:{"display":"inline-block","float":"right"},on:{"click":function($event){_vm.showCommentBox=true;}}},[_c('img',{staticStyle:{"width":"1rem","vertical-align":"middle"},attrs:{"src":__webpack_require__(2468),"alt":""}}),_vm._v(" "),_c('span',{staticStyle:{"color":"rgba(23,122,250,1)","line-height":"1rem","font-weight":"400","font-size":"0.7rem","font-family":"PingFangSC-Regular,PingFangSC"}},[_vm._v("写评论")])])]),_vm._v(" "),(_vm.commentList.length>0)?_c('ul',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"itemList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"scrollLoading","infinite-scroll-distance":"10"}},[_vm._l((_vm.commentList),function(item,index){return _c('div',{key:index},[(item.isAdvert===1)?_c('li',{staticClass:"adInComment item"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){return _vm.goUserPage(item.userId)}}}),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v("\n                  "+_vm._s(item.userName.slice(0,9))+"\n                  "),_vm._l((item.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val.medalIcon,"alt":""}})})],2),_vm._v(" "),(item.advertContext)?_c('div',{staticClass:"commentDetail"},[_vm._v(_vm._s(item.advertContext))]):_vm._e(),_vm._v(" "),(item.advertImg)?_c('div',{staticClass:"commentImgList"},_vm._l(([item.advertImg]),function(v,i){return _c('img',{key:i,attrs:{"src":v,"alt":""},on:{"click":function($event){return _vm.viewImage(v, [])}}})}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"clickBtn",on:{"click":function($event){return _vm.goAd(item.advertUrl)}}},[_c('img',{attrs:{"src":__webpack_require__(2469),"alt":""}}),_vm._v("查看详情")])])]):_c('li',{staticClass:"item"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){return _vm.goUserPage(item.userId)}}}),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v("\n                  "+_vm._s(item.userName.slice(0,9))+"\n                  "),_vm._l((item.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val.medalIcon,"alt":""}})})],2),_vm._v(" "),_c('div',{staticClass:"location"},[_vm._v(_vm._s(item.time)),(item.uprovince||item.ucity)?_c('span',[_vm._v("·"+_vm._s(item.uprovince==item.ucity?item.uprovince:item.uprovince+item.ucity))]):_vm._e()]),_vm._v(" "),(item.commentContent&&item.isReward==1)?_c('div',{staticClass:"commentDetail",domProps:{"innerHTML":_vm._s('<span class=hasRewarded >已打赏</span>' + _vm.matchEmotion(item.commentContent))}},[_vm._v(_vm._s(item.commentContent))]):_vm._e(),_vm._v(" "),(item.commentContent&&item.isReward==0)?_c('div',{staticClass:"commentDetail",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.commentContent))}},[_vm._v(_vm._s(item.commentContent))]):_vm._e(),_vm._v(" "),(item.picList)?_c('div',{staticClass:"commentImgList"},_vm._l((item.picList),function(v,i){return _c('img',{key:i,attrs:{"src":v,"alt":""},on:{"click":function($event){return _vm.viewImage(v, item.picList, i)}}})}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"reply"},[_c('div',{on:{"click":function($event){_vm.showReply=true; _vm.commentId=item.articleCommentId; _vm.commentName=item.userName;}}},[_c('img',{attrs:{"src":__webpack_require__(181),"alt":""}}),_vm._v("\n                    回复\n                  ")]),_vm._v(" "),_c('div',{staticClass:"report",on:{"click":function($event){_vm.reportDialog=true;_vm.currentCommunityId=item.articleCommentId;_vm.type=2;}}},[_c('img',{staticStyle:{"width":".8rem"},attrs:{"src":__webpack_require__(213),"alt":""}})])]),_vm._v(" "),(item.replyCommentList.length>0)?_c('div',{staticClass:"replyList"},[_c('div',{staticClass:"listContainer",on:{"click":function($event){_vm.showReply=true; _vm.commentId=item.articleCommentId; _vm.commentName=item.userName;}}},_vm._l((item.replyCommentList),function(val,index){return (index <= 9)?_c('p',{key:index,staticClass:"replyItem"},[_c('span',{staticClass:"replyName"},[_vm._v(_vm._s(val.userName.slice(0,9))+"：")]),_c('span',{staticClass:"replyContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(val.commentContent))}},[_vm._v(_vm._s(val.commentContent))])]):_vm._e()}),0),_vm._v(" "),(item.replyCommentCount>10)?_c('div',{staticClass:"showAll",on:{"click":function($event){_vm.showReplyDetail=true;_vm.commentId=item.articleCommentId;}}},[_vm._v("\n                    查看全部回复\n                  ")]):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"goodNum",on:{"click":function($event){return _vm.likeComment(item.articleCommentId, item.isPraise, index)}}},[( item.praiseTotal > 0 && item.isPraise==0)?_c('span',[_vm._v(_vm._s(item.praiseTotal))]):_vm._e(),_vm._v(" "),( item.praiseTotal > 0 && item.isPraise!=0)?_c('span',{staticStyle:{"color":"#FF701F"}},[_vm._v(_vm._s(item.praiseTotal))]):_vm._e(),_vm._v(" "),(item.isPraise==0)?_c('img',{attrs:{"src":__webpack_require__(149),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(214),"alt":""}})])])])])}),_vm._v(" "),(!_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10px","padding-bottom":"10px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.commentDataInit&&_vm.commentList.length===0)?_c('div',{staticClass:"noComments"},[_c('img',{attrs:{"src":__webpack_require__(1605),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("还没有人来评论，快来抢沙发~")]),_vm._v(" "),_c('div',{on:{"click":function($event){_vm.showCommentBox=true;}}},[_vm._v("立即评论")])]):_vm._e()])],1)]),_vm._v(" "),(_vm._Util.isApp() || _vm._Util.isMPaaS())?_c('div',{staticClass:"commentBox"},[_c('div',{staticClass:"input",staticStyle:{"left":".8rem","width":"12.76rem"},on:{"click":function($event){_vm.showCommentBox=true;}}},[_vm._v("有啥高见，来说说")]),_vm._v(" "),(_vm.articleDetail.isPraise==0)?_c('img',{staticClass:"good",attrs:{"src":__webpack_require__(149),"alt":""},on:{"click":function($event){return _vm.likeArticle(_vm.articleDetail.isPraise)}}}):_c('img',{staticClass:"good",staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(214),"alt":""}}),_vm._v(" "),_c('img',{staticClass:"share",attrs:{"src":__webpack_require__(835),"alt":""},on:{"click":_vm.shareBtn}})]):_c('div',{staticClass:"commentBox"},[_c('img',{staticClass:"home",attrs:{"src":__webpack_require__(2470)},on:{"click":_vm.goCommunity}}),_vm._v(" "),_c('div',{staticClass:"input",on:{"click":function($event){_vm.showCommentBox=true;}}},[_vm._v("有啥高见，来说说")]),_vm._v(" "),(_vm.articleDetail.isPraise==0)?_c('img',{staticClass:"good",attrs:{"src":__webpack_require__(149),"alt":""},on:{"click":function($event){return _vm.likeArticle(_vm.articleDetail.isPraise)}}}):_c('img',{staticClass:"good",staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(214),"alt":""}}),_vm._v(" "),_c('img',{staticClass:"share",attrs:{"src":__webpack_require__(835),"alt":""},on:{"click":_vm.shareBtn}})]),_vm._v(" "),(_vm.showCommentBox)?_c('comment',{on:{"submit":_vm.refreshComment,"closeMask":function($event){_vm.showCommentBox=false;}}}):_vm._e(),_vm._v(" "),(_vm.showReply)?_c('reply',{attrs:{"comment-id":_vm.commentId,"comment-name":_vm.commentName},on:{"submit":_vm.refreshComment,"closeMask":function($event){_vm.showReply=false;_vm.commentId='';_vm.commentName='';}}}):_vm._e(),_vm._v(" "),(_vm.showReplyDetail)?_c('reply-detail',{attrs:{"comment-id":_vm.commentId},on:{"refresh":_vm.refreshComment,"closeMask":function($event){_vm.showReplyDetail=false;_vm.commentId='';}}}):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:( _vm.moreDialog || _vm.reportDialog ),expression:" moreDialog || reportDialog "}],staticClass:"dialog-mark"}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.moreDialog),expression:"moreDialog"}],staticClass:"dialog-panel"},[_c('div',{staticClass:"dialog-panel-title"},[_c('table',{staticStyle:{"width":"100%"}},[_c('tr',[_c('td',{staticStyle:{"width":"33.33%"}}),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('td',{staticStyle:{"text-align":"right","color":"rgba(23,122,250,1)","width":"33.33%"}},[_c('span',{staticClass:"cancel",on:{"click":function($event){_vm.moreDialog=false}}},[_vm._v("取消")])])])])]),_vm._v(" "),_c('div',{staticClass:"dialog-panel-content"},[_c('table',[_c('tr',[_c('td',[_c('img',{attrs:{"src":__webpack_require__(834),"alt":""},on:{"click":function($event){return _vm.shareFriends('session')}}}),_vm._v(" "),_c('span',[_vm._v("分享给好友")])]),_vm._v(" "),_c('td',[_c('img',{attrs:{"src":__webpack_require__(1604),"alt":""},on:{"click":function($event){return _vm.shareFriends('timeline')}}}),_vm._v(" "),_c('span',[_vm._v("分享朋友圈")])]),_vm._v(" "),_c('td',[_c('img',{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:(_vm.href),expression:"href",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:(_vm.onCopy),expression:"onCopy",arg:"success"}],attrs:{"src":__webpack_require__(2471),"alt":"复制链接"}}),_vm._v(" "),_c('span',[_vm._v("复制链接")])]),_vm._v(" "),_c('td',[_c('img',{attrs:{"src":__webpack_require__(2472),"alt":"举报"},on:{"click":function($event){_vm.reportDialog=true}}}),_vm._v(" "),_c('span',[_vm._v("举报")])])]),_vm._v(" "),_c('tr',[(!(_vm.inWxMiniApp && _vm._Util.isIOS))?_c('td',[_c('img',{attrs:{"src":__webpack_require__(2473),"alt":"打赏"},on:{"click":_vm.goRewardPage}}),_vm._v(" "),_c('span',[_vm._v("打赏楼主")])]):_vm._e(),_vm._v(" "),_c('td',[(_vm.articleDetail.isPraise==0)?_c('div',{on:{"click":function($event){return _vm.likeArticle(_vm.articleDetail.isPraise)}}},[_c('img',{attrs:{"src":__webpack_require__(2474),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("值得推荐")])]):_c('div',[_c('img',{staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(2475),"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.articleDetail.praiseTotal)+"人觉得很赞")])])]),_vm._v(" "),_c('td'),_vm._v(" "),_c('td')])])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.reportDialog),expression:"reportDialog"}],staticClass:"dialog-panel"},[_c('div',{staticClass:"dialog-panel-title"},[_c('table',{staticStyle:{"width":"100%"}},[_c('tr',[_c('td',{staticStyle:{"text-align":"left"}},[_c('span',{staticClass:"cancel",on:{"click":function($event){_vm.reportDialog=false}}},[_vm._v("取消")])]),_vm._v(" "),_vm._m(2),_vm._v(" "),_c('td',{staticStyle:{"text-align":"right","color":"rgba(23,122,250,1)"}},[_c('span',{staticClass:"submit",on:{"click":_vm.submitEvent}},[_vm._v("提交")])])])])]),_vm._v(" "),_c('div',{staticClass:"dialog-panel-content"},[_c('div',_vm._l((_vm.typeList),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){_vm.chooseType=item.type}}},[(_vm.chooseType===item.type)?_c('img',{attrs:{"src":__webpack_require__(1606),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1607),"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.name))])])}),0)])]),_vm._v(" "),(!_vm.isApp && !_vm.inWxMiniApp)?_c('headerFixed'):_vm._e()],1):_vm._e()}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('img',{attrs:{"src":__webpack_require__(2476),"alt":"打赏楼主"}}),_vm._v(" "),_c('p',[_vm._v("打赏楼主")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',{staticStyle:{"width":"33.33%"}},[_c('h3',[_vm._v("更多操作")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',[_c('h3',[_vm._v("举报")])])}]
module.exports = __webpack_require__.p + "static/img/加关注.bcbd53a.png";module.exports = __webpack_require__.p + "static/img/精选话题.b401bf0.png";module.exports = __webpack_require__.p + "static/img/点赞-1.0e29f49.png";module.exports = __webpack_require__.p + "static/img/点赞-2.c42a946.png";module.exports = __webpack_require__.p + "static/img/打赏-1.f2ffcc6.png";module.exports = __webpack_require__.p + "static/img/微信32px-1.4d38a59.png";module.exports = __webpack_require__.p + "static/img/朋友圈32px-1.4ce684c.png";module.exports = __webpack_require__.p + "static/img/点赞-96px-1.db07a3f.png";module.exports = __webpack_require__.p + "static/img/点赞-96px-2.24a7a1a.png";module.exports = __webpack_require__.p + "static/img/朋友圈96px-1.379c1ed.png";module.exports = __webpack_require__.p + "static/img/写评论.e796910.png";module.exports = __webpack_require__.p + "static/img/showDetail.76bdecf.png";module.exports = __webpack_require__.p + "static/img/社区首页.82e8c01.svg";module.exports = __webpack_require__.p + "static/img/复制链接.c660b42.png";module.exports = __webpack_require__.p + "static/img/举报.7f2497d.png";module.exports = __webpack_require__.p + "static/img/打赏.e891592.png";module.exports = __webpack_require__.p + "static/img/d点赞-1.96763e8.png";module.exports = __webpack_require__.p + "static/img/d点赞-2.2970d25.png";module.exports = __webpack_require__.p + "static/img/SketchSlicePng7cfbd11a2996b21b91325d00bd610eab.7cfbd11.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(418);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_907d39b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1019);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2477)
  __webpack_require__(2479)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-907d39b2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_907d39b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_907d39b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newArticleDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2478);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7b68ecff", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".__articleDetail .content img{max-width:100%}.__articleDetail .hasRewarded{width:1.9rem;height:.95rem;line-height:.95rem;background:-webkit-gradient(linear,left top,right top,from(#fe8e8e),to(#ee4545));background:linear-gradient(90deg,#fe8e8e,#ee4545);border-radius:.1rem;text-align:center;font-family:PingFangSC-Regular;font-size:.55rem;color:#fff;background-image:-webkit-gradient(linear,right top,left top,from(#fe8e8e),to(#ee4545));background-image:linear-gradient(-90deg,#fe8e8e,#ee4545);margin-right:.25rem;vertical-align:bottom;position:relative;left:0;top:-.3rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2480);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f07318f2", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "img[data-v-907d39b2]{display:inline-block;max-width:100%}.outContainer[data-v-907d39b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;height:100%}.outContainer .shareMAsk[data-v-907d39b2]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:1000;background:rgba(0,0,0,.5)}.outContainer .shareMAsk .shareTips[data-v-907d39b2]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outContainer .shareMAsk .shareTips>p[data-v-907d39b2]:first-of-type{margin-top:.85rem}.outContainer .shareMAsk .shareTips>p[data-v-907d39b2]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.outContainer .detail[data-v-907d39b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;background-color:#f2f2f2}.outContainer .detail .userInfo[data-v-907d39b2]{padding:1.2rem .8rem 1rem;position:relative}.outContainer .detail .userInfo>img[data-v-907d39b2]{width:2.6rem;height:2.6rem;border-radius:50%;position:relative;top:-.2rem}.outContainer .detail .userInfo>.crown[data-v-907d39b2]{display:inline-block;width:.65rem;height:.65rem;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ");position:absolute;left:2rem;top:2.2rem}.outContainer .detail .userInfo .rightContent[data-v-907d39b2]{position:absolute;left:4rem;top:1rem;width:96.2%}.outContainer .detail .userInfo .rightContent .uname>span[data-v-907d39b2],.outContainer .detail .userInfo .rightContent .uname[data-v-907d39b2]{font-size:.75rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.05rem}.outContainer .detail .userInfo .rightContent .uname .medal[data-v-907d39b2]{height:.8rem;margin-right:.2rem;position:relative;left:0;top:2px;pointer-events:none}.outContainer .detail .userInfo .rightContent .uarea[data-v-907d39b2]{font-size:.58rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#000;line-height:.75rem;margin-top:.7rem}.outContainer .detail .userInfo .rightContent .uarea>span[data-v-907d39b2]{font-size:.55rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:.75rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;display:inline-block;max-width:65%}.outContainer .detail .userInfo .plateName[data-v-907d39b2]{width:6.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:absolute;top:.85rem;right:1.6rem;font-family:PingFangSC-Regular;font-size:14px;color:#4c5e77;text-align:right}.outContainer .detail .userInfo .plateName>img[data-v-907d39b2]{width:.6rem;height:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem}.outContainer .detail .userInfo .dropDown[data-v-907d39b2]{position:absolute;top:.7rem;right:0;width:1.8rem;height:1.8rem;line-height:24px;text-align:center;display:inline-block;margin-left:.2rem;text-align:left;text-indent:10px}.outContainer .detail .userInfo .dropDown>img[data-v-907d39b2]{width:.6rem;height:.35rem;vertical-align:middle}.outContainer .detail .userInfo .follow[data-v-907d39b2]{border:1px solid #177afa;border-radius:.2rem;color:#000}.outContainer .detail .userInfo .follow[data-v-907d39b2],.outContainer .detail .userInfo .followed[data-v-907d39b2]{position:absolute;top:1.4rem;right:.8rem;width:2.9rem;padding-top:.25rem;padding-bottom:.25rem;text-align:center;font-family:PingFangSC-Regular;font-size:.6rem}.outContainer .detail .userInfo .followed[data-v-907d39b2]{background-color:#f2f2f2;border:1px solid #f2f2f2;border-radius:.2rem;color:#999}.outContainer .detail .audioContainer[data-v-907d39b2]{margin-bottom:1rem}.outContainer .detail .videoTitle[data-v-907d39b2]{font-family:PingFangSC-Semibold;font-size:.64rem;color:#113c92;padding-left:.6rem;padding-top:.2rem;padding-bottom:.4rem}.community-info[data-v-907d39b2]{box-sizing:border-box;padding-left:.6rem;padding-bottom:.4rem}.community-info .community-label[data-v-907d39b2]{display:inline-block;vertical-align:top;font-size:.72rem}.community-info .community-content[data-v-907d39b2]{display:inline-block;word-break:break-all}.outContainer .detail .content[data-v-907d39b2]{padding-left:.8rem;padding-right:.8rem;padding-bottom:.6rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#333;line-height:1.6rem}.outContainer .detail .singleImg[data-v-907d39b2]{padding:0 .8rem .6rem}.outContainer .detail .singleImg>img[data-v-907d39b2]{width:8.3rem;height:11.2rem;background:#f2f2f2;border-radius:.2rem}.outContainer .detail .imgList[data-v-907d39b2]{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;padding:0 .675rem;margin-bottom:.6rem;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.outContainer .detail .imgList>img[data-v-907d39b2]{float:left;margin-left:.125rem;margin-bottom:.125rem;width:5.55rem;height:5.55rem;object-fit:cover;object-position:50% 50%;border-radius:.2rem}.outContainer .detail .videoFrame>div[data-v-907d39b2]{margin-bottom:12px;height:210px}.outContainer .detail .videoFrame>div>video[data-v-907d39b2]{object-fit:contain;width:100%;height:100%}.outContainer .detail .plateNameContainer[data-v-907d39b2]{box-sizing:border-box;padding:0 .8rem .8rem;text-align:right;overflow:hidden}.outContainer .detail .plateNameContainer .plateName[data-v-907d39b2]{font-family:PingFangSC-Regular;font-size:.6rem;color:#4c5e77;display:inline-block;padding:.1rem .5rem;background-color:#f2f2f2;border-radius:20px;float:left;margin-right:5px}.outContainer .detail .plateNameContainer .plateName>img[data-v-907d39b2]{width:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem;color:#4c5e77}.outContainer .detail .plateNameContainer .plateName.best[data-v-907d39b2]{color:#ff701f;background:#ffefea}.outContainer .detail .plateNameContainer>.report[data-v-907d39b2]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666;display:inline-block}.outContainer .detail .adInArticle[data-v-907d39b2]{margin-top:1.2rem;padding-left:.6rem;padding-right:.6rem}.outContainer .detail .adInArticle>div[data-v-907d39b2]{background:#4b8ae4;border-radius:.1rem;padding:.4rem .4rem 1.55rem;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;line-height:1.25rem;position:relative}.outContainer .detail .adInArticle>div>span[data-v-907d39b2]{position:absolute;right:.5rem;bottom:.4rem;font-size:.55rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;line-height:.75rem}.outContainer .detail .topicContainer[data-v-907d39b2]{padding:0 .3rem 2.75rem}.outContainer .detail .topicContainer>div[data-v-907d39b2]{height:4rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.15rem 1rem 0}.outContainer .detail .topicContainer>div>div[data-v-907d39b2]{width:7.1rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.outContainer .detail .topicContainer table[data-v-907d39b2]{width:100%;text-align:center}.outContainer .detail .topicContainer table td[data-v-907d39b2]{padding:0 .5rem}.outContainer .detail .topicContainer .btn[data-v-907d39b2]{display:inline-block;width:100%;background:#e6efff;box-shadow:0 .2rem .4rem 0 rgba(178,203,235,.25);border-radius:1.3rem;font-size:.9rem;color:#177afa;line-height:1.5rem}.outContainer .detail .topicContainer .btn.blue[data-v-907d39b2]{background:#177afa;box-shadow:0 .2rem .4rem 0 rgba(23,122,250,.25);border-radius:1.3rem;color:#fff}.outContainer .detail .topicContainer>div>div:last-child > div[data-v-907d39b2]{color:#247cff;border-color:#247cff}.outContainer .detail .goodContainer[data-v-907d39b2]{padding:0 .8rem 1.48rem}.outContainer .detail .goodContainer .good[data-v-907d39b2]{padding-left:.175rem;padding-right:.175rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .detail .goodContainer .good>.item[data-v-907d39b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.outContainer .detail .goodContainer .good>.item>div[data-v-907d39b2]{display:inline-block;width:100%}.outContainer .detail .goodContainer .good>.item>div>img[data-v-907d39b2]{width:2.4rem}.outContainer .detail .goodContainer .good>.item>div>p[data-v-907d39b2]{margin-top:.35rem;font-family:PingFangSC-Regular;font-size:.6rem;color:#333}.outContainer .detail .goodContainer .goodList[data-v-907d39b2]{margin-top:.75rem;background-color:#f2f2f2;height:2.2rem;overflow:hidden}.outContainer .detail .goodContainer .goodList .num[data-v-907d39b2]{width:2rem;float:left;height:100%;position:relative;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;line-height:.7rem;color:#333}.outContainer .detail .goodContainer .goodList .num>p[data-v-907d39b2]:first-of-type{margin-top:.45rem}.outContainer .detail .goodContainer .goodList .num[data-v-907d39b2]:after{content:\"\";position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:.925rem;background-color:silver}.outContainer .headList[data-v-907d39b2]{height:100%;overflow:hidden;text-align:center;padding-top:.5rem}.outContainer .headList img[data-v-907d39b2]{width:1.4rem;height:1.4rem;border-radius:50%;background-color:#f0f8ff;margin-right:.5rem;margin-top:.55rem;margin-bottom:.5rem;pointer-events:none}.outContainer .detail .goodContainer-ad[data-v-907d39b2]{padding:1rem 0}.outContainer .detail .goodContainer-ad .good[data-v-907d39b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .detail .goodContainer-ad .item[data-v-907d39b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.outContainer .detail .goodContainer-ad span[data-v-907d39b2]{font-size:.65rem}.outContainer .detail .goodContainer-ad .item[data-v-907d39b2]:nth-child(2){padding:0 .3rem}.outContainer .detail .goodContainer-ad .item>div[data-v-907d39b2]{border:1px solid #dfe2e7;border-radius:1rem;box-sizing:border-box;text-align:center;padding:.3rem}.goodContainer-ad-btn[data-v-907d39b2]{font-family:PingFangSC-Medium,PingFangSC;font-weight:500;color:#ff701f;font-size:.75rem;line-height:2.7rem;text-align:center;border-radius:1.49rem;margin:0 auto .3rem;display:inline-block;padding:0 1.6rem;vertical-align:middle}.goodContainer-ad-btn img[data-v-907d39b2]{width:1rem;vertical-align:middle;margin-right:.4rem;position:relative;top:-.1rem}.outContainer .detail .goodContainer-ad .item img[data-v-907d39b2]{width:.8rem;position:relative;top:.15rem}.outContainer .detail .reward[data-v-907d39b2]{padding-top:.4rem;padding-bottom:1rem;text-align:center}.outContainer .detail .reward>.rewardBtn[data-v-907d39b2]{display:inline-block;width:5.65rem;height:1.6rem;line-height:1.625rem;text-align:center;border:1px solid #ee4545;border-radius:2px;font-family:PingFangSC-Regular;font-size:.7rem;color:#ee4545}.outContainer .detail .reward>.rewardBtn>img[data-v-907d39b2]{width:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.25rem}.outContainer .detail .reward>.rewardNum[data-v-907d39b2]{font-family:PingFangSC-Regular;font-size:.6rem;color:#666;margin-top:.2rem;line-height:1}.outContainer .detail .more[data-v-907d39b2]{padding-bottom:.8rem;padding-top:.8rem;background-color:#f2f2f2}.outContainer .detail .more>div[data-v-907d39b2]{width:120px;border-radius:15px;line-height:29px;text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;text-decoration:underline;margin:0 auto}.outContainer .detail .adContainer .ad[data-v-907d39b2]{padding:.8rem .8rem .6rem}.outContainer .detail .adContainer .ad>img[data-v-907d39b2]{width:100%;height:4.5rem;border-radius:.4rem;pointer-events:none}.outContainer .detail .commentList .title[data-v-907d39b2]{font-size:.7rem!important;font-family:PingFangSC-Semibold,PingFangSC;font-weight:600;color:#8f8f8f;line-height:1.13rem;margin:0 .8rem;padding:.8rem 0 .2rem;border-top:2px solid #ededed}.outContainer .detail .commentList .title>span[data-v-907d39b2]{font-size:.7rem!important;font-family:PingFangSC-Semibold;color:#8f8f8f;display:inline}.outContainer .detail .commentList .itemList .item[data-v-907d39b2]{position:relative;margin-top:.6rem}.outContainer .detail .commentList .itemList .item>img[data-v-907d39b2]{float:left;width:1.8rem;height:1.8rem;margin-left:.8rem;border-radius:50%}.outContainer .detail .commentList .itemList .item>.crown[data-v-907d39b2]{display:inline-block;width:.65rem;height:.65rem;background-repeat:no-repeat;background-size:100%;background-image:url(" + escape(__webpack_require__(120)) + ");position:absolute;left:2rem;top:2.3rem}.outContainer .detail .commentList .itemList .item>.rightContent[data-v-907d39b2]{margin-left:3.2rem;padding-bottom:.6rem;position:relative}.outContainer .detail .commentList .itemList .item>.rightContent .name[data-v-907d39b2]{font-size:.64rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.8rem}.outContainer .detail .commentList .itemList .item>.rightContent .name .medal[data-v-907d39b2]{height:.8rem;margin-right:.2rem;position:relative;left:0;top:2px;pointer-events:none}.outContainer .detail .commentList .itemList .item>.rightContent .location>span[data-v-907d39b2],.outContainer .detail .commentList .itemList .item>.rightContent .location[data-v-907d39b2]{font-size:.55rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:.75rem}.outContainer .detail .commentList .itemList .item>.rightContent .commentDetail[data-v-907d39b2]{font-size:.68rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.05rem;text-align:justify;padding-right:.8rem}.outContainer .detail .commentList .itemList .item>.rightContent .commentDetail img[data-v-907d39b2]{pointer-events:none}.outContainer .detail .commentList .itemList .item>.rightContent .commentImgList[data-v-907d39b2]{margin-top:.4rem}.outContainer .detail .commentList .itemList .item>.rightContent .commentImgList>img[data-v-907d39b2]{object-fit:cover;object-position:50% 50%;width:4.8rem;height:4.8rem;border-radius:.2rem}.outContainer .detail .commentList .itemList .item>.rightContent .reply[data-v-907d39b2]{position:relative;margin-top:.4rem;padding-right:.8rem}.outContainer .detail .commentList .itemList .item>.rightContent .reply div[data-v-907d39b2]{display:inline-block;font-family:PingFangSC-Regular;font-size:.6rem;color:#666}.outContainer .detail .commentList .itemList .item>.rightContent .reply div>img[data-v-907d39b2]{width:.8rem;height:.8rem;vertical-align:middle;position:relative;top:-1px;left:0}.outContainer .detail .commentList .itemList .item>.rightContent .reply .report[data-v-907d39b2]{position:absolute;right:.8rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:.6rem;color:#999}.outContainer .detail .commentList .itemList .item>.rightContent .replyList[data-v-907d39b2]{width:14.8rem;margin-top:.4rem;border-radius:.2rem}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer[data-v-907d39b2]{padding:.6rem}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem[data-v-907d39b2]{padding-bottom:.4rem}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem[data-v-907d39b2]:last-child{padding-bottom:0}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem>span[data-v-907d39b2]{display:inline}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem .replyName[data-v-907d39b2]{font-family:PingFangSC-Semibold;font-size:.7rem;color:#333;font-weight:700}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem .replyContent[data-v-907d39b2]{font-family:PingFangSC-Regular;font-size:.7rem;color:#151515}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .listContainer .replyItem .replyContent img[data-v-907d39b2]{pointer-events:none}.outContainer .detail .commentList .itemList .item>.rightContent .replyList .showAll[data-v-907d39b2]{line-height:1.8rem;font-family:PingFangSC-Regular;font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#377ee1;line-height:1rem;padding-top:.4rem;padding-left:.6rem;padding-bottom:.6rem}.outContainer .detail .commentList .itemList .item>.rightContent .goodNum[data-v-907d39b2]{position:absolute;top:1.175rem;right:.8rem;width:3.2rem;text-align:right}.outContainer .detail .commentList .itemList .item>.rightContent .goodNum>img[data-v-907d39b2]{width:.8rem;height:.8rem;pointer-events:none;vertical-align:middle}.outContainer .detail .commentList .itemList .item>.rightContent .goodNum span[data-v-907d39b2]{vertical-align:middle}.outContainer .detail .commentList .itemList .adInComment>.rightContent .commentDetail[data-v-907d39b2]{line-height:1.2rem;font-size:1rem;font-family:PingFangSC-Semibold;font-weight:700;color:#000}.outContainer .detail .commentList .itemList .adInComment>.rightContent .clickBtn[data-v-907d39b2]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1rem;margin-top:.6rem}.outContainer .detail .commentList .itemList .adInComment>.rightContent .clickBtn>img[data-v-907d39b2]{width:.65rem;height:.45rem;margin-right:.2rem;vertical-align:baseline}.outContainer .detail .noComments[data-v-907d39b2]{background-color:#fff;height:10.8rem;text-align:center}.outContainer .detail .noComments>img[data-v-907d39b2]{width:5rem;margin:1.2rem auto 0;pointer-events:none;display:block}.outContainer .detail .noComments>p[data-v-907d39b2]{font-family:PingFangSC-Regular;font-size:.7rem;color:#333;margin-top:.3rem;margin-bottom:.75rem}.outContainer .detail .noComments>div[data-v-907d39b2]{width:5.65rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:1.6rem;border:1px solid #636363;font-family:PingFangSC-Regular;font-size:.7rem;color:#333;margin:0 auto}.outContainer .commentBox[data-v-907d39b2]{height:2.6rem;position:relative;background:#fff;box-shadow:0 -.1rem .2rem 0 hsla(0,0%,88%,.5)}.outContainer .commentBox .home[data-v-907d39b2]{width:1.55rem;height:1.55rem;position:absolute;border-radius:50%;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);text-align:center}.outContainer .commentBox .home img[data-v-907d39b2]{width:.8rem;display:inline-block}.outContainer .commentBox .input[data-v-907d39b2]{width:8.48rem;height:1.8rem;background:#f5f5f5;border-radius:.2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:1rem;left:2.8rem;line-height:1.8rem;padding-left:.6rem}.outContainer .commentBox .good[data-v-907d39b2],.outContainer .commentBox .input[data-v-907d39b2]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .commentBox .good[data-v-907d39b2]{right:5.8rem;width:1.2rem;height:1.2rem}.outContainer .commentBox .good-num[data-v-907d39b2]{right:3.6rem;width:2rem;height:1.6rem;line-height:1.6rem}.outContainer .commentBox .good-num2[data-v-907d39b2],.outContainer .commentBox .good-num[data-v-907d39b2]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .commentBox .good-num2[data-v-907d39b2]{right:.2rem;width:2.2rem;height:1.3rem;line-height:1.3rem}.outContainer .commentBox .share[data-v-907d39b2]{position:absolute;top:50%;right:2.4rem;width:1.2rem;height:1.2rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .toTop[data-v-907d39b2]{width:2.2rem;height:2.2rem;position:fixed;z-index:1;right:.8rem;bottom:14%}.outContainer .toTop>img[data-v-907d39b2]{width:100%;height:100%}.deleteFlage[data-v-907d39b2]{text-align:center;padding-top:75px}.deleteFlage>img[data-v-907d39b2]{width:46px;height:48px}.deleteFlage>p[data-v-907d39b2]{margin-top:8px;font-family:PingFangSC-Regular;font-size:16px;color:#666}.deleteFlage>div[data-v-907d39b2]{border:1px solid #377ee1;border-radius:17px;width:135px;height:33px;line-height:33px;margin:32px auto 0;font-family:PingFangSC-Regular;font-size:16px;color:#377ee1}.dialog-mark[data-v-907d39b2]{background:rgba(0,0,0,.7);width:100%;height:100%;top:0;left:0;position:fixed;z-index:88}.dialog-panel[data-v-907d39b2]{background:#fff;width:100%;height:50%;bottom:0;left:0;position:fixed;z-index:89;overflow:hidden;border-radius:10px 10px 0 0;box-sizing:border-box;padding-top:2.75rem}.dialog-panel-title[data-v-907d39b2]{background:#f6f6f6;text-align:center;margin-top:-2.75rem;line-height:2.75rem;overflow:hidden;position:relative}.dialog-panel-title td[data-v-907d39b2]{padding:0 .8rem}.dialog-panel-title h3[data-v-907d39b2]{font-size:.85rem;font-family:PingFangSC-Semibold,PingFangSC;font-weight:600;color:#333;line-height:1.2rem;display:inline-block}.dialog-panel-title .cancel[data-v-907d39b2]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999}.dialog-panel-content[data-v-907d39b2]{height:100%;width:100%;overflow:auto;padding:0 .8rem;box-sizing:border-box}.dialog-panel-content table[data-v-907d39b2]{width:100%}.dialog-panel-content td[data-v-907d39b2]{text-align:center;width:25%;padding:1.2rem 0 0;display:inline-block}.dialog-panel-content td span[data-v-907d39b2]{font-size:.65rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:.9rem}.dialog-panel-content td img[data-v-907d39b2]{width:2.5rem;display:block;margin:0 auto 5px}.dialog-panel-content .sub-btn[data-v-907d39b2]{width:100%;border-radius:.2rem;text-align:center;line-height:2.6rem;font-size:.85rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#fff;background:#177afa;margin-top:1.8rem}.dialog-panel-content textarea[data-v-907d39b2]{background:#f5f5f5;color:#555;min-height:3rem;font-size:.8rem;width:100%;border:none;padding:.2rem}.dialog-panel-content .item[data-v-907d39b2]{border-bottom:1px solid #eee;line-height:2.6rem}.dialog-panel-content .item img[data-v-907d39b2]{width:.8rem;position:relative;top:.9rem;margin-right:.4rem}.dialog-panel-content .item span[data-v-907d39b2]{font-size:.8rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1.13rem}.icon-success[data-v-907d39b2]{display:block;width:1.8rem;height:1.8rem;background:url(" + escape(__webpack_require__(1492)) + ") no-repeat 50%;background-size:1.8rem 1.8rem;margin:0 auto}.activeSort[data-v-907d39b2]{font-size:20px!important}.activeSort>span[data-v-907d39b2]{color:#538cff!important}.blue-color[data-v-907d39b2]{color:#8db3ff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _comment = _interopRequireDefault(__webpack_require__(1493));
var _reply = _interopRequireDefault(__webpack_require__(833));
var _replyDetail = _interopRequireDefault(__webpack_require__(1602));
var _audioPlayer = _interopRequireDefault(__webpack_require__(1603));
var _videoPlayer = _interopRequireDefault(__webpack_require__(169));
var _throttleDebounce = __webpack_require__(21);
var _card = _interopRequireDefault(__webpack_require__(117));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import reportBox from "./components/reportBox.vue";
// import Ad from '../../components/Ad/Ad.vue'
var _default = exports.default = {
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      // reportText: '',
      typeList: [],
      chooseType: '',
      href: window.location.href,
      moreDialog: false,
      reportDialog: false,
      reportType: '',
      type: '',
      currentCommunityId: '',
      articleDetail: {},
      showTop: false,
      showShareBox: false,
      showCommentBox: false,
      allLoaded: false,
      scrollLoading: false,
      commentList: [],
      commentTotal: '',
      commentDataInit: false,
      pageSize: 5,
      pageNum: 1,
      currentUserId: '',
      shareContent: {},
      showReportBox: false,
      showReply: false,
      showReplyDetail: false,
      commentId: '',
      commentName: '',
      adInfo: '',
      btnTxt: {
        jump_text: '',
        jump_url: '',
        praise_text: ''
      },
      inWxMiniApp: localStorage.getItem('inWxMinapp') === '1',
      // 是否在微信小程序打开
      sort: 1,
      timing: '',
      time: 0
    };
  },
  created: function created() {
    if (this.$route.query.shareId) {
      // this._Util.collectPageView2(
      //   {
      //     postUrl: this._Api.POST_COLLECT,
      //     url: window.location.href,
      //     moduleType: '交流',
      //     operate_page: '帖子详情页',
      //     optionType: '打开',
      //     param1: this.$route.query.articleId,
      //     param2: this.$route.query.shareId
      //   },
      //   this
      // )
    }
  },
  mounted: function mounted() {
    var that = this;
    this.getCurrentUser();
    this.getArticleDetail();
    this.getCommentList();
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: this.$route.query.articleId,
      remark: '论坛',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    //
    // // 获取点赞按钮关键字
    // this.getBtnTitle()
    //
    // this.getTypeList()
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: this.$route.query.articleId,
        remark: '论坛,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    changeSort: function changeSort(sort) {
      this.sort = sort;
      this.refreshComment();
    },
    submitEvent: function submitEvent() {
      var _this = this;
      if (!this.chooseType) {
        (0, _mintUi.Toast)({
          message: '请选择举报原因',
          position: 'middle',
          duration: 1000
        });
        return;
      }
      if (this.submiting === true) return;
      // if (this.reportText == '') {
      //   Toast({
      //     message: '请输入举报原因',
      //     position: 'middle',
      //     duration: 1000
      //   });
      //   return
      // }
      this.submiting = true;
      this._Util.post(this._Api.POST_COMMUNITY_REPORT_SUBMIT, {
        // 帖id或者留言id
        communityId: this.currentCommunityId,
        // 1：举报帖子 2：举报评论
        type: this.type,
        // 帖举报类型
        reportType: this.chooseType
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '举报成功',
          position: 'middle',
          duration: 1000
        });
        _this.submiting = false;
        _this.reportDialog = false;
        _this.chooseType = '';
        _this.$emit('submit');
        // this.$emit('close');
      }, function () {
        _this.submiting = false;
      }, this);
    },
    getTypeList: function getTypeList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_COMMUNITY_REPORT_TYPE_LIST, {}, function (data) {
        _this2.typeList = data;
      }, function () {}, this, true);
    },
    onCopy: function onCopy(e) {
      console.log(e);
      this.$toast({
        message: '已复制链接',
        iconClass: 'icon-success',
        duration: 1000,
        position: 'middle'
      });
    },
    // 获取点赞按钮关键字
    getBtnTitle: function getBtnTitle() {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'praise_set',
        article_id: this.$route.query.articleId
      }, function (data) {
        console.log('获取点赞按钮关键字', data);
        _this3.btnTxt.jump_text = data.dataList[0].jump_text;
        _this3.btnTxt.jump_url = data.dataList[0].jump_url;
        _this3.btnTxt.praise_text = data.dataList[0].praise_text;
      }, function () {}, this);
    },
    /** 回到顶部 */toHideTopImg: function toHideTopImg() {
      event.preventDefault();
      (0, _jquery.default)('.detail').animate({
        scrollTop: 0
      }, 200);
    },
    /** 是否展示回到顶部图标 */
    toggleTopImg: (0, _throttleDebounce.debounce)(100, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(e) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (e.target.scrollTop > e.target.clientHeight) {
                this.showTop = true;
              } else {
                this.showTop = false;
              }
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 获取广告位 */getAd: function getAd() {
      var _this4 = this;
      this._Util.post(this._Api.POST_ADVERT_POSITION, {
        signType: 3
      }, function (data) {
        if (data.advertId) {
          _this4.adInfo = data;
        }
      }, function () {}, this);
    },
    /** 关注、取消关注 */
    followToggle: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(userId, status) {
        var _this5 = this;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              this._Util.post(this._Api.POST_COMMUNITY_USER_FOLLOW_TOGGLE, {
                userId: userId,
                status: status ? '0' : '1'
              }, function (data) {
                _this5.articleDetail.followStatus = status ? '0' : '1';
              }, function () {}, this, true);
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x2, _x3) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /** 记录分享行为 */recordShare: function recordShare() {
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_RECORD_SHARE, {
        articleId: this.$route.query.articleId
      }, function (data) {}, function () {}, this, true);
    },
    /** 进入打赏页面 */goRewardPage: function goRewardPage() {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: '帖子详情',
        optionType: '点击',
        param1: this.$route.query.articleId,
        param2: '打赏楼主'
      }, this);
      location.href = location.origin + '/v2/shopping/articleReward?articleId=' + this.articleDetail.articleId;
    },
    /** 发帖 */postMessage: function postMessage(moduleId, moduleName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpImg',
          extra: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      } else {
        this.$router.push({
          name: 'communityWxpost',
          query: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      }
    },
    /**
     * 进入广告页面
     * @param {String} url 广告链接
     * @param {Object} adObj 广告对象内容
    */
    goAd: function goAd(url, adObj) {
      if (adObj) {
        // 只有配置的广告位才会传递该选项
        this._Util.sensorsCollect('click_advert', {
          $element_content: '广告位',
          operation_page: document.title,
          advert_type_name: '运营页',
          advert_name: adObj.advertName,
          jump_url: adObj.advertUrl,
          $url: window.location.href,
          correlation_id: adObj.advertId
        });
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adContainer' + Date.now(),
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /** 进入社区首页 */goCommunity: function goCommunity() {
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        uni.switchTab({
          // eslint-disable-line
          url: "/pages/community/community"
        });
        return;
      }
      event.preventDefault();
      this.$router.push({
        name: 'fms'
      });
    },
    /** 获取当前用户信息 */getCurrentUser: function getCurrentUser() {
      var that = this;
      that._Util.post(that._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
        that.currentUserId = data.userId;
        // that.getShareInfo()
      }, function () {}, that);
    },
    /** 进入用户主页 */goUserPage: function goUserPage(userId) {
      event.preventDefault();
      uni.navigateTo({
        // eslint-disable-line
        url: "/sousou-subpackage/pages/myCommunity/myCommunity?searchToUserId=".concat(userId)
      });
    },
    /** 进入板块详情 */goPlateDetail: function goPlateDetail(modulId, modulName, moduleType) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'modulPage' + modulId,
            url: location.origin + '/v2/community/modulPage?modulId=' + modulId + '&modulName=' + modulName + '&moduleType=' + moduleType
          }
        });
      } else {
        this.$router.push({
          name: 'modulPage',
          query: {
            modulId: modulId,
            modulName: modulName,
            moduleType: moduleType
          }
        });
      }
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      console.log(imgUrl);
      event.preventDefault();
      var _imgUrl = imgUrl.includes('watermark/3') ? imgUrl : imgUrl + (imgUrl.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v.path.includes('watermark/3') ? v.path : v.path + (v.path.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      });
      console.log(_imgList);
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /** 分享按钮逻辑 */shareBtn: function shareBtn() {
      event.preventDefault();
      var that = this;
      if (that._Util.isApp()) {
        that._Util.acSendEvent({
          name: 'showSharePage',
          extra: {
            title: that.shareContent.share_title,
            link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
            imgUrl: that.shareContent.share_img
          }
        });
      } else {
        that.recordShare(); // 记录分享行为
        that.showShareBox = true;
      }
    },
    /** 分享给好友 */shareFriends: function shareFriends(type) {
      var that = this;
      // 埋点
      if (type === 'timeline') {
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '交流',
          operate_page: '帖子详情页',
          optionType: '点击',
          param1: that.$route.query.articleId,
          param2: '分享到朋友圈'
        }, this);
      } else if (type === 'session') {
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '交流',
          operate_page: '帖子详情页',
          optionType: '点击',
          param1: that.$route.query.articleId,
          param2: '分享给好友'
        }, this);
      }
      that.recordShare(); // 记录分享行为
      if (that._Util.isApp()) {
        that.isRight(function () {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: that.shareContent.share_title,
                desc: that.shareContent.share_text,
                link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
                imgLink: that.shareContent.share_img
              }
            }
          });
        });
      } else if (that._Util.isMPaaS()) {
        var params = {
          title: that.shareContent.share_title,
          desc: that.shareContent.share_text,
          link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
          imgUrl: that.shareContent.share_img
        };
        if (type === 'timeline') {
          params.isWXTL = true;
        } else if (type === 'session') {
          params.isWX = true;
        }
        this._Util.mpassShare(params, function (shareData) {
          console.log(shareData);
        });
      } else {
        that.showShareBox = true;
      }
    },
    /**
     * app是否有某个权限
    */
    isRight: function isRight(callBack) {
      var resultList = api.hasPermission({
        list: ['photos']
      });
      console.log(JSON.stringify('是否有存储的权限,帖子详情页----' + resultList[0].granted));
      if (!resultList[0].granted) {
        (0, _mintUi.MessageBox)({
          title: '“卡修宝典”想访问您的存储权限',
          message: '在使用分享功能时，需要使用存储功能，用于下载并存储分享图片',
          confirmButtonText: '同意',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action == 'confirm') {
            api.requestPermission({
              list: ['photos'],
              code: 100004
            }, function (ret, err) {
              if (ret.never) {
                console.log('点击了不再提醒');
              }
              if (ret.list[0].granted) {
                callBack && callBack();
              }
            });
          }
        });
      } else {
        callBack && callBack();
      }
    },
    /** 获取分享信息 */getShareInfo: function getShareInfo() {
      var _this6 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'community_share_set',
        sys_uid: this.currentUserId,
        article_id: this.$route.query.articleId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          console.log(data);
          _this6.shareContent = {
            share_img: data.dataList[0].share_img,
            share_text: data.dataList[0].share_text,
            share_title: data.dataList[0].share_title
          };
          _this6.share();
        }
      }, function () {}, this);
    },
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.shareContent.share_title,
                  desc: that.shareContent.share_text,
                  link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
                  imgUrl: that.shareContent.share_img
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + that.$route.query.articleId + '&shareId=' + that.currentUserId,
              imgUrl: that.shareContent.share_img,
              success: function success(data) {
                var type = '';
                if (data.errMsg.includes('Message')) {
                  type = 'session';
                } else {
                  type = 'timeline';
                }
                that.shareFriends(type);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        var imageSrc = __webpack_require__(2481)("./" + str1 + ".png");
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="' + imageSrc + '" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 刷新评论 */refreshComment: function refreshComment() {
      this.commentId = '';
      this.commentName = '';
      this.commentDataInit = false;
      this.commentList = [];
      this.commentTotal = '';
      this.allLoaded = false;
      this.scrollLoading = false;
      this.pageNum = 1;
      this.showCommentBox = false;
      this.showReply = false;
      this.showReplyDetail = false;
      this.getCommentList();
    },
    /** 获取评论信息 */getCommentList: function getCommentList() {
      var _this7 = this;
      this._Util.post(this._Api.POST_COMMUNITY_GET_ARTICLE_COMMENT, {
        pageSize: this.pageSize,
        currentPage: this.pageNum,
        id: this.$route.query.articleId,
        type: this.sort
      }, function (data) {
        console.log(data);
        _this7.commentTotal = data.totalComment;
        _this7.commentList = _this7.commentList.concat(data.pinglunList);
        _this7.commentDataInit = true;
        _this7.scrollLoading = false;
        if (data.pinglunList.length < _this7.pageSize) {
          _this7.allLoaded = true;
        } else {
          _this7.pageNum++;
        }
      }, function () {}, this, true);
    },
    /** 留言点赞 */likeComment: function likeComment(commentId, isPraise, index) {
      var _this8 = this;
      if (isPraise == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        id: commentId,
        ob: 2,
        op: 1
      }, function (data) {
        _this8.commentList[index].isLike = 1;
        _this8.commentList[index].likes++;
      }, function () {}, this, true);
    },
    /** 留言点赞 */userOperate: function userOperate(id, type) {
      var _this9 = this;
      this._Util.post(this._Api.POST_COMMUNITY_USER_OPERATE, {
        id: id,
        type: type
      }, function (data) {
        if (type == 1) {
          if (_this9.articleDetail.isAttention == 1) {
            _this9.articleDetail.isAttention = 0;
          } else {
            _this9.articleDetail.isAttention = 1;
          }
        }
      }, function () {}, this, true);
    },
    /** 帖子点赞 */likeArticle: function likeArticle(ob, op, isLike) {
      var _this0 = this;
      event.preventDefault();
      if (isLike == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      // this._Util.collectPageView2( // 埋点
      //   {
      //     postUrl: this._Api.POST_COLLECT,
      //     url: window.location.href,
      //     moduleType: '交流',
      //     operate_page: '帖子详情',
      //     optionType: '点击',
      //     param1: this.$route.query.articleId,
      //     param2: '点赞'
      //   },
      //   this
      // )
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        ob: ob,
        id: this.$route.query.articleId,
        op: op
      }, function (data) {
        if (op == 1) {
          _this0.articleDetail.isLike = 1;
          _this0.articleDetail.likes++;
        } else {
          if (_this0.articleDetail.isCollect == 1) {
            _this0.articleDetail.isCollect = 0;
          } else {
            _this0.articleDetail.isCollect = 1;
          }
        }
        // Toast({
        //   message: "点赞成功",
        //   position: "bottom",
        //   duration: 1000
        // });
        _this0.getArticleDetail();
      }, function () {
        // Toast({
        //   message: "点赞失败",
        //   position: "bottom",
        //   duration: 1000
        // });
      }, this, true);
    },
    /** 获取文章详情 */getArticleDetail: function getArticleDetail() {
      var _this1 = this;
      this._Util.post(this._Api.POST_COMMUNITY_GET_ARTICLE_DETAIL, {
        id: this.$route.query.articleId,
        type: 1
      }, function (data) {
        // if (data.deleteFlag === 1) {
        //   location.replace(location.origin + '/v2/community/articleDetail?articleId=' + data.articleId)
        // }
        console.log('获取文章详情', data);
        _this1.articleDetail = data;
        // this.commentList = data.pinglunList
        document.title = _this1.articleDetail.articleTitle || '帖子详情';
        if (_this1.inWxMiniApp) {
          var userinfo = JSON.parse(localStorage.getItem('userInfo'));
          var url = location.origin + '/repair/community/newArticleDetail?articleId=' + _this1.$route.query.articleId + '&referee=' + userinfo.uphone;
          var src = encodeURIComponent(url);
          uni.postMessage({
            // eslint-disable-line
            data: {
              type: 'updataShareCont',
              title: _this1.articleDetail.title || '卡修宝典',
              imageUrl: 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/common/270031CCF86D8E643DE5C929DE01687A.png',
              link: '/pages/webView/webView?src=' + src
            }
          });
          // this._Util.post(
          //   this._Api.GET_SCHEME,
          //   {
          //     jump_wxa: {
          //       path: '/pages/webView/webView',
          //       query: 'src=' + src,
          //       env_version: 'trial'
          //     }
          //   },
          //   data => {
          //     uni.postMessage({ // eslint-disable-line
          //       data: {
          //         type: 'updataShareCont',
          //         title: '卡修宝典',
          //         imageUrl: 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/common/270031CCF86D8E643DE5C929DE01687A.png',
          //         link: location.origin + '/kaxiubaodian?jumpUrl=' + data
          //       }
          //     })
          //   },
          //   () => { },
          //   this,
          //   true
          // )
        }
        // if (this.articleDetail.adModule === 1) {
        //   this.getAd()
        // }
      }, function () {}, this, true);
    },
    loadMore: function loadMore() {
      if (!this.allLoaded && !this.scrollLoading) {
        this.scrollLoading = true;
        this.getCommentList();
      }
    }
  },
  components: {
    comment: _comment.default,
    card: _card.default,
    reply: _reply.default,
    // reportBox,
    replyDetail: _replyDetail.default,
    // Ad,
    audioPlayer: _audioPlayer.default,
    videoPlayer: _videoPlayer.default
  }
};var map = {
	"./Expression_1.png": 1497,
	"./Expression_10.png": 1498,
	"./Expression_100.png": 1499,
	"./Expression_101.png": 1500,
	"./Expression_102.png": 1501,
	"./Expression_103.png": 1502,
	"./Expression_104.png": 1503,
	"./Expression_105.png": 1504,
	"./Expression_11.png": 1505,
	"./Expression_12.png": 1506,
	"./Expression_13.png": 1507,
	"./Expression_14.png": 1508,
	"./Expression_15.png": 1509,
	"./Expression_16.png": 1510,
	"./Expression_17.png": 1511,
	"./Expression_18.png": 1512,
	"./Expression_19.png": 1513,
	"./Expression_2.png": 1514,
	"./Expression_20.png": 1515,
	"./Expression_21.png": 1516,
	"./Expression_22.png": 1517,
	"./Expression_23.png": 1518,
	"./Expression_24.png": 1519,
	"./Expression_25.png": 1520,
	"./Expression_26.png": 1521,
	"./Expression_27.png": 1522,
	"./Expression_28.png": 1523,
	"./Expression_29.png": 1524,
	"./Expression_3.png": 1525,
	"./Expression_30.png": 1526,
	"./Expression_31.png": 1527,
	"./Expression_32.png": 1528,
	"./Expression_33.png": 1529,
	"./Expression_34.png": 1530,
	"./Expression_35.png": 1531,
	"./Expression_36.png": 1532,
	"./Expression_37.png": 1533,
	"./Expression_38.png": 1534,
	"./Expression_39.png": 1535,
	"./Expression_4.png": 1536,
	"./Expression_40.png": 1537,
	"./Expression_41.png": 1538,
	"./Expression_42.png": 1539,
	"./Expression_43.png": 1540,
	"./Expression_44.png": 1541,
	"./Expression_45.png": 1542,
	"./Expression_46.png": 1543,
	"./Expression_47.png": 1544,
	"./Expression_48.png": 1545,
	"./Expression_49.png": 1546,
	"./Expression_5.png": 1547,
	"./Expression_50.png": 1548,
	"./Expression_51.png": 1549,
	"./Expression_52.png": 1550,
	"./Expression_53.png": 1551,
	"./Expression_54.png": 1552,
	"./Expression_55.png": 1553,
	"./Expression_56.png": 1554,
	"./Expression_57.png": 1555,
	"./Expression_58.png": 1556,
	"./Expression_59.png": 1557,
	"./Expression_6.png": 1558,
	"./Expression_60.png": 1559,
	"./Expression_61.png": 1560,
	"./Expression_62.png": 1561,
	"./Expression_63.png": 1562,
	"./Expression_64.png": 1563,
	"./Expression_65.png": 1564,
	"./Expression_66.png": 1565,
	"./Expression_67.png": 1566,
	"./Expression_68.png": 1567,
	"./Expression_69.png": 1568,
	"./Expression_7.png": 1569,
	"./Expression_70.png": 1570,
	"./Expression_71.png": 1571,
	"./Expression_72.png": 1572,
	"./Expression_73.png": 1573,
	"./Expression_74.png": 1574,
	"./Expression_75.png": 1575,
	"./Expression_76.png": 1576,
	"./Expression_77.png": 1577,
	"./Expression_78.png": 1578,
	"./Expression_79.png": 1579,
	"./Expression_8.png": 1580,
	"./Expression_80.png": 1581,
	"./Expression_81.png": 1582,
	"./Expression_82.png": 1583,
	"./Expression_83.png": 1584,
	"./Expression_84.png": 1585,
	"./Expression_85.png": 1586,
	"./Expression_86.png": 1587,
	"./Expression_87.png": 1588,
	"./Expression_88.png": 1589,
	"./Expression_89.png": 1590,
	"./Expression_9.png": 1591,
	"./Expression_90.png": 1592,
	"./Expression_91.png": 1593,
	"./Expression_92.png": 1594,
	"./Expression_93.png": 1595,
	"./Expression_94.png": 1596,
	"./Expression_95.png": 1597,
	"./Expression_96.png": 1598,
	"./Expression_97.png": 1599,
	"./Expression_98.png": 1600,
	"./Expression_99.png": 1601,
	"./delete.png": 2482
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	return __webpack_require__(id);
}
function webpackContextResolve(req) {
	if(!__webpack_require__.o(map, req)) {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return map[req];
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 2481;module.exports = __webpack_require__.p + "static/img/delete.e710f28.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer __articleDetail"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTop),expression:"showTop"}],staticClass:"toTop"},[_c('img',{staticClass:"toupImg",attrs:{"src":__webpack_require__(822)},on:{"click":function($event){return _vm.toHideTopImg()}}})]),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_c('div',{staticClass:"shareTips",style:({'right': _vm.inWxMiniApp ? '2.5rem' : '0.5rem'})},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友")])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"detail",on:{"scroll":function($event){return _vm.toggleTopImg($event)}}},[_c('div',{staticStyle:{"background-color":"#fff"}},[_c('div',{staticClass:"userInfo"},[(_vm.articleDetail.userName)?_c('img',{attrs:{"src":_vm.articleDetail.headimg || 'http://static2.51gonggui.com/headimg.png',"alt":""},on:{"click":function($event){return _vm.goUserPage(_vm.articleDetail.userId)}}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{on:{"click":function($event){return _vm.goUserPage(_vm.articleDetail.userId)}}},[_vm._v(_vm._s(_vm.articleDetail.userName))])]),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(_vm.articleDetail.createTime))])]),_vm._v(" "),(_vm.articleDetail.isAttention==1&&_vm.articleDetail.userId!=_vm.currentUserId)?_c('div',{staticClass:"followed",on:{"click":function($event){$event.stopPropagation();return _vm.userOperate(_vm.articleDetail.userId, 1)}}},[_vm._v("\n            已关注\n          ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.isAttention==0&&_vm.articleDetail.userId!=_vm.currentUserId)?_c('div',{staticClass:"follow",on:{"click":function($event){$event.stopPropagation();return _vm.userOperate(_vm.articleDetail.userId, 1)}}},[_vm._v("\n            + 关注\n          ")]):_vm._e()]),_vm._v(" "),(_vm.articleDetail.type==2)?_c('div',{staticClass:"videoTitle"},[_vm._v("\n         #"+_vm._s(_vm.articleDetail.title)+"#\n        ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==2)?_c('div',{staticClass:"community-info"},[_c('label',{staticClass:"community-label"},[_c('span',{staticStyle:{"font-weight":"800"}},[_vm._v("型号配置：")]),_vm._v(_vm._s(_vm.articleDetail.brand))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==2&&(_vm.articleDetail.errorShow||_vm.articleDetail.errorShowFileList.length>0))?_c('div',{staticClass:"community-info"},[_c('label',{staticClass:"community-label"},[_c('span',{staticStyle:{"font-weight":"800"}},[_vm._v("故障现象：")]),_vm._v(_vm._s(_vm.articleDetail.errorShow?_vm.articleDetail.errorShow :'故障现象如图'))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==2&&_vm.articleDetail.errorShowFileList.length>0)?_c('div',{staticClass:"imgList"},_vm._l((_vm.articleDetail.errorShowFileList),function(d,index){return _c('img',{key:index,attrs:{"src":d.path},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(d.path, _vm.articleDetail.errorShowFileList, index)}}})}),0):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==2&&(_vm.articleDetail.errorCode||_vm.articleDetail.errorCodeFileList.length>0))?_c('div',{staticClass:"community-info"},[_c('label',{staticClass:"community-label"},[_c('span',{staticStyle:{"font-weight":"800"}},[_vm._v("故障码：")]),_vm._v(_vm._s(_vm.articleDetail.errorCode))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==2&&_vm.articleDetail.errorCodeFileList.length>0)?_c('div',{staticClass:"imgList"},_vm._l((_vm.articleDetail.errorCodeFileList),function(d,index){return _c('img',{key:index,attrs:{"src":d.path},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(d.path, _vm.articleDetail.errorCodeFileList, index)}}})}),0):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==2)?_c('div',{staticClass:"community-info"},[_c('label',{staticClass:"community-label"},[_c('span',{staticStyle:{"font-weight":"800"}},[_vm._v("维修过程：")]),_vm._v(_vm._s(_vm.articleDetail.content))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==2)?_c('div',{staticClass:"imgList"},_vm._l((_vm.articleDetail.postImgList),function(d,index){return _c('img',{key:index,attrs:{"src":d.path},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(d.path, _vm.articleDetail.postImgList, index)}}})}),0):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==3)?_c('div',{staticClass:"community-info"},[_c('label',{staticClass:"community-label"},[_c('span',{staticStyle:{"font-weight":"800"}},[_vm._v("问题：")]),_vm._v(_vm._s(_vm.articleDetail.title))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==3)?_c('div',{staticClass:"community-info"},[_c('label',{staticClass:"community-label"},[_c('span',{staticStyle:{"font-weight":"800"}},[_vm._v("品牌：")]),_vm._v(_vm._s(_vm.articleDetail.brand))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==3)?_c('div',{staticClass:"community-info"},[_c('label',{staticClass:"community-label"},[_c('span',{staticStyle:{"font-weight":"800"}},[_vm._v("问题详情：")]),_vm._v(_vm._s(_vm.articleDetail.content))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type==3)?_c('div',{staticClass:"imgList"},_vm._l((_vm.articleDetail.postImgList),function(d,index){return _c('img',{key:index,attrs:{"src":d.path}})}),0):_vm._e(),_vm._v(" "),(_vm.articleDetail.content&&_vm.articleDetail.type==1)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.articleDetail.content)}},[_vm._v("\n          "+_vm._s(_vm.articleDetail.content)+"\n        ")]):_vm._e(),_vm._v(" "),(_vm.articleDetail.postImgList&&_vm.articleDetail.postImgList.length===1&&_vm.articleDetail.type==1)?_c('div',{staticClass:"singleImg"},[(_vm.articleDetail.postImgList[0].path.includes('watermark/3'))?_c('img',{attrs:{"src":_vm.articleDetail.postImgList[0].path,"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(_vm.articleDetail.postImgList[0].path, [])}}}):_c('img',{attrs:{"src":_vm.articleDetail.postImgList[0].path + (_vm.articleDetail.postImgList[0].path.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(_vm.articleDetail.postImgList[0].path, [])}}})]):_vm._e(),_vm._v(" "),(_vm.articleDetail.postImgList&&_vm.articleDetail.postImgList.length>1&&_vm.articleDetail.type==1)?_c('div',{staticClass:"imgList"},_vm._l((_vm.articleDetail.postImgList),function(v,i){return _c('img',{key:i,attrs:{"src":v.path.indexOf('watermark/3') > -1 ? v.path : ( v.path + (v.path.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/220/h/220'),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v.path, _vm.articleDetail.postImgList, i)}}})}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"plateNameContainer"},[_c('div',{staticClass:"report",on:{"click":function($event){$event.stopPropagation();_vm.moreDialog=true;_vm.currentCommunityId=_vm.$route.query.articleId;_vm.type=1;}}},[_c('img',{staticStyle:{"width":"1rem"},attrs:{"src":__webpack_require__(213),"alt":""}})])]),_vm._v(" "),(_vm.articleDetail.type===1&&_vm.articleDetail.advertType===2)?_c('div',{staticClass:"topicContainer"},[_c('table',[_c('tr',[(_vm.articleDetail.advertBtnOne)?_c('td',[_c('div',{staticClass:"btn",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(_vm.articleDetail.advertLinkOne)}}},[_vm._v(_vm._s(_vm.articleDetail.advertBtnOne))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.advertBtnTwo)?_c('td',[_c('div',{staticClass:"btn blue",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(_vm.articleDetail.advertLinkTwo)}}},[_vm._v(_vm._s(_vm.articleDetail.advertBtnTwo))])]):_vm._e()])])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.type===2)?_c('div',{staticClass:"topicContainer"},[_c('table',[_c('tr',[(_vm.articleDetail.enterTopicBtn)?_c('td',[_c('span',{staticClass:"btn",on:{"click":function($event){$event.stopPropagation();return _vm.goPlateDetail(_vm.articleDetail.moduleId, _vm.articleDetail.moduleName, _vm.articleDetail.moduleType)}}},[_vm._v(_vm._s(_vm.articleDetail.enterTopicBtn))])]):_vm._e(),_vm._v(" "),(_vm.articleDetail.hairTopicBtn&&_vm.articleDetail.topicStatus===1)?_c('td',[_c('span',{staticClass:"btn blue",on:{"click":function($event){$event.stopPropagation();return _vm.postMessage(_vm.articleDetail.moduleId, _vm.articleDetail.moduleName)}}},[_vm._v(_vm._s(_vm.articleDetail.hairTopicBtn))])]):_vm._e()])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"commentList"},[_c('div',{staticClass:"title"},[_vm._v("\n            全部评论"),(_vm.commentTotal>0)?_c('span',[_vm._v("（"+_vm._s(_vm.commentTotal)+"条）")]):_vm._e(),_vm._v(" "),_c('span',{class:_vm.sort==1?'activeSort':'',staticStyle:{"display":"inline-block","float":"right"},on:{"click":function($event){return _vm.changeSort(1)}}},[_c('span',{staticStyle:{"color":"#8f8f8f","line-height":"1rem","font-weight":"400","font-size":"0.7rem","font-family":"PingFangSC-Regular,PingFangSC"}},[_vm._v("最新")])]),_vm._v(" "),_c('span',{class:_vm.sort==2?'activeSort':'',staticStyle:{"display":"inline-block","float":"right"},on:{"click":function($event){return _vm.changeSort(2)}}},[_c('span',{staticStyle:{"color":"#8f8f8f","line-height":"1rem","font-weight":"400","font-size":"0.7rem","font-family":"PingFangSC-Regular,PingFangSC","margin-right":".5rem"}},[_vm._v("最热")])])]),_vm._v(" "),(_vm.commentList.length>0)?_c('ul',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"itemList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"scrollLoading","infinite-scroll-distance":"10"}},[_vm._l((_vm.commentList),function(item,index){return _c('div',{key:index},[_c('li',{staticClass:"item"},[_c('img',{attrs:{"src":item.tx || 'http://static2.51gonggui.com/headimg.png',"alt":""},on:{"click":function($event){return _vm.goUserPage(item.userId)}}}),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v("\n                    "+_vm._s(item.userName?item.userName.slice(0,9):'')+"\n")]),_vm._v(" "),(item.content)?_c('div',{staticClass:"commentDetail",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.content))}},[_vm._v(_vm._s(item.content))]):_vm._e(),_vm._v(" "),(item.fileList)?_c('div',{staticClass:"commentImgList"},_vm._l((item.fileList),function(v,i){return _c('img',{key:i,attrs:{"src":v.path,"alt":""},on:{"click":function($event){return _vm.viewImage(v.path, item.fileList, i)}}})}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"reply clearfix"},[_c('div',[_vm._v(_vm._s(item.createTime))]),_vm._v(" "),_c('div',{staticClass:"goodNum2",staticStyle:{"float":"right"},on:{"click":function($event){return _vm.likeComment(item.id, item.isLike, index)}}},[(item.isLike==0)?_c('img',{attrs:{"src":__webpack_require__(1608),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1609),"alt":""}}),_vm._v(" "),(item.isLike==0)?_c('span',[_vm._v(_vm._s(item.likes > 0?item.likes:'点赞'))]):_vm._e(),_vm._v(" "),(item.isLike!=0)?_c('span',{staticStyle:{"color":"#538cff"}},[_vm._v(_vm._s(item.likes > 0?item.likes:'点赞'))]):_vm._e()]),_vm._v(" "),_c('div',{staticStyle:{"float":"right","margin-right":".5rem","margin-top":".1rem"},on:{"click":function($event){_vm.showReply=true; _vm.commentId=item.id; _vm.commentName=item.userName;}}},[_c('img',{attrs:{"src":__webpack_require__(181),"alt":""}}),_vm._v("\n                      回复\n                    ")])]),_vm._v(" "),(item.erjiList&&item.erjiList.length>0)?_c('div',{staticClass:"replyList"},[_vm._l((item.erjiList),function(val,index){return (index <= 9)?_c('div',{key:index,staticClass:"item"},[_c('img',{attrs:{"src":val.tx || 'http://static2.51gonggui.com/headimg.png',"alt":""},on:{"click":function($event){return _vm.goUserPage(val.userId)}}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v("\n                          "+_vm._s(val.userName?val.userName.slice(0,9):'')+"\n                          ")]),_vm._v(" "),(val.content)?_c('div',{staticClass:"commentDetail",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(val.content))}},[_vm._v(_vm._s(val.content))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"reply clearfix"},[_c('div',[_vm._v(_vm._s(val.createTime))])])])]):_vm._e()}),_vm._v(" "),(item.erjiList&&item.erjiList.length>10)?_c('div',{staticClass:"showAll",on:{"click":function($event){_vm.showReplyDetail=true;_vm.commentId=_vm.val.id;}}},[_vm._v("\n                      查看全部回复\n                    ")]):_vm._e()],2):_vm._e()])]),_vm._v(" "),(index!=_vm.commentList.length-1)?_c('div',{staticStyle:{"margin":"0 .8rem","border":"1px solid #ededed"}}):_vm._e()])}),_vm._v(" "),(!_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10px","padding-bottom":"10px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.commentDataInit&&_vm.commentList.length===0)?_c('div',{staticClass:"noComments"},[_c('img',{attrs:{"src":__webpack_require__(1605),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("还没有人来评论，快来抢沙发~")]),_vm._v(" "),_c('div',{on:{"click":function($event){_vm.showCommentBox=true;}}},[_vm._v("立即评论")])]):_vm._e()])])]),_vm._v(" "),(_vm._Util.isApp() || _vm._Util.isMPaaS())?_c('div',{staticClass:"commentBox"},[_c('div',{staticClass:"input",staticStyle:{"left":".8rem","width":"12.76rem"},on:{"click":function($event){_vm.showCommentBox=true;}}},[_vm._v("发布评论")]),_vm._v(" "),(_vm.articleDetail.isPraise==0)?_c('img',{staticClass:"good",attrs:{"src":__webpack_require__(149),"alt":""},on:{"click":function($event){return _vm.likeArticle(_vm.articleDetail.isPraise)}}}):_c('img',{staticClass:"good",staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(214),"alt":""}}),_vm._v(" "),_c('img',{staticClass:"share",attrs:{"src":__webpack_require__(835),"alt":""},on:{"click":_vm.shareBtn}})]):_c('div',{staticClass:"commentBox"},[(_vm.articleDetail.userName)?_c('img',{staticClass:"home",attrs:{"src":_vm.articleDetail.headimg || 'http://static2.51gonggui.com/headimg.png',"alt":""},on:{"click":function($event){return _vm.goUserPage(_vm.articleDetail.userId)}}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"input",on:{"click":function($event){_vm.showCommentBox=true;}}},[_vm._v("发布评论")]),_vm._v(" "),(_vm.articleDetail.isLike==0)?_c('img',{staticClass:"good",attrs:{"src":__webpack_require__(1608),"alt":""},on:{"click":function($event){return _vm.likeArticle(1,1,_vm.articleDetail.isLike)}}}):_c('img',{staticClass:"good",staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(1609),"alt":""}}),_vm._v(" "),_c('span',{staticClass:"good-num",class:_vm.articleDetail.isLike==1?'blue-color':''},[_vm._v(_vm._s(_vm.articleDetail.likes))]),_vm._v(" "),(_vm.articleDetail.isCollect==0)?_c('img',{staticClass:"share",attrs:{"src":__webpack_require__(2483),"alt":""},on:{"click":function($event){return _vm.likeArticle(1,2)}}}):_c('img',{staticClass:"share",attrs:{"src":__webpack_require__(2484),"alt":""},on:{"click":function($event){return _vm.likeArticle(1,2)}}}),_vm._v(" "),_c('span',{staticClass:"good-num good-num2",class:_vm.articleDetail.isCollect==1?'blue-color':''},[_vm._v(_vm._s(_vm.articleDetail.collect))])]),_vm._v(" "),(_vm.showCommentBox)?_c('comment',{on:{"submit":_vm.refreshComment,"closeMask":function($event){_vm.showCommentBox=false;}}}):_vm._e(),_vm._v(" "),(_vm.showReply)?_c('reply',{attrs:{"comment-id":_vm.commentId,"comment-name":_vm.commentName},on:{"submit":_vm.refreshComment,"closeMask":function($event){_vm.showReply=false;_vm.commentId='';_vm.commentName='';}}}):_vm._e(),_vm._v(" "),(_vm.showReplyDetail)?_c('reply-detail',{attrs:{"comment-id":_vm.commentId},on:{"refresh":_vm.refreshComment,"closeMask":function($event){_vm.showReplyDetail=false;_vm.commentId='';}}}):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:( _vm.moreDialog || _vm.reportDialog ),expression:" moreDialog || reportDialog "}],staticClass:"dialog-mark"}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.moreDialog),expression:"moreDialog"}],staticClass:"dialog-panel"},[_c('div',{staticClass:"dialog-panel-title"},[_c('table',{staticStyle:{"width":"100%"}},[_c('tr',[_c('td',{staticStyle:{"width":"33.33%"}}),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('td',{staticStyle:{"text-align":"right","color":"rgba(23,122,250,1)","width":"33.33%"}},[_c('span',{staticClass:"cancel",on:{"click":function($event){_vm.moreDialog=false}}},[_vm._v("取消")])])])])]),_vm._v(" "),_c('div',{staticClass:"dialog-panel-content"},[_c('table',[_c('tr',[_c('td',[_c('img',{attrs:{"src":__webpack_require__(834),"alt":""},on:{"click":function($event){return _vm.shareFriends('session')}}}),_vm._v(" "),_c('span',[_vm._v("分享给好友")])])])])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.reportDialog),expression:"reportDialog"}],staticClass:"dialog-panel"},[_c('div',{staticClass:"dialog-panel-title"},[_c('table',{staticStyle:{"width":"100%"}},[_c('tr',[_c('td',{staticStyle:{"text-align":"left"}},[_c('span',{staticClass:"cancel",on:{"click":function($event){_vm.reportDialog=false}}},[_vm._v("取消")])]),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('td',{staticStyle:{"text-align":"right","color":"rgba(23,122,250,1)"}},[_c('span',{staticClass:"submit",on:{"click":_vm.submitEvent}},[_vm._v("提交")])])])])]),_vm._v(" "),_c('div',{staticClass:"dialog-panel-content"},[_c('div',_vm._l((_vm.typeList),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){_vm.chooseType=item.type}}},[(_vm.chooseType===item.type)?_c('img',{attrs:{"src":__webpack_require__(1606),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1607),"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.name))])])}),0)])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',{staticStyle:{"width":"33.33%"}},[_c('h3',[_vm._v("更多操作")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',[_c('h3',[_vm._v("举报")])])}]
module.exports = __webpack_require__.p + "static/img/good.0b80153.png";module.exports = __webpack_require__.p + "static/img/good1.b11a236.png";module.exports = __webpack_require__.p + "static/img/collect.9f3bc18.png";module.exports = __webpack_require__.p + "static/img/collect1.40dffd5.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(419);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2fc3a8e8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1020);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2485)
  __webpack_require__(2488)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2fc3a8e8"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2fc3a8e8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2fc3a8e8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2486);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("752d0e6e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-2fc3a8e8]{height:100%;overflow-y:auto;overflow-x:hidden;background-color:#f2f2f2;position:relative}.wrap .topBar[data-v-2fc3a8e8]{height:2.8rem;width:100%;background-color:#fff;position:absolute;left:0;top:0}.wrap .topBar div[data-v-2fc3a8e8]:first-of-type{left:.5rem;font-size:.9rem;font-family:PingFangSC-Medium;font-weight:700;color:#377ee1}.wrap .topBar div[data-v-2fc3a8e8]:first-of-type,.wrap .topBar div[data-v-2fc3a8e8]:first-of-type::after{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .topBar div[data-v-2fc3a8e8]:first-of-type::after{content:\"\";width:.4rem;height:.3rem;background-image:url(" + escape(__webpack_require__(2487)) + ");background-repeat:no-repeat;background-size:100%;right:-.68rem}.wrap .topBar .inviteBtn[data-v-2fc3a8e8]{right:.6rem;line-height:1.6rem;width:7.4rem;text-indent:1.9rem;border-radius:.8rem;border:1px solid #ee4545;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545}.wrap .topBar .inviteBtn[data-v-2fc3a8e8],.wrap .topBar .inviteBtn img[data-v-2fc3a8e8]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .topBar .inviteBtn img[data-v-2fc3a8e8]{width:1rem;height:1rem;left:.8rem}.wrap .main[data-v-2fc3a8e8]{margin-top:2.8rem}.wrap .main>p[data-v-2fc3a8e8]{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#000;padding:.4rem;line-height:1.13rem}.wrap .main>p span[data-v-2fc3a8e8]{line-height:.83rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1}.wrap .main>p span img[data-v-2fc3a8e8]{width:.55rem;height:.55rem;margin-left:.13rem;vertical-align:middle;position:relative;top:-1px}.wrap .main .courseList[data-v-2fc3a8e8]{padding:0 .4rem 1rem}.wrap .main .courseList .courseCard[data-v-2fc3a8e8]{height:7.35rem;background-color:#fff;border-radius:.2rem;margin-bottom:.6rem;padding:.8rem .6rem 0}.wrap .main .courseList .courseCard .top[data-v-2fc3a8e8]{height:4.3rem;border-bottom:1px solid #e6e6e6;overflow:hidden;position:relative}.wrap .main .courseList .courseCard .top img[data-v-2fc3a8e8]{float:left;width:5.45rem;height:3.5rem;border-radius:.1rem;background-color:#f0f8ff}.wrap .main .courseList .courseCard .top .rightContent[data-v-2fc3a8e8]{margin-left:6.05rem}.wrap .main .courseList .courseCard .top .rightContent .title[data-v-2fc3a8e8]{font-size:.85rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;line-height:1.2rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .main .courseList .courseCard .top .rightContent .tag[data-v-2fc3a8e8]{padding:0 .2rem;line-height:.9rem;background:rgba(233,90,39,.1);border-radius:.05rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#e8541e;position:absolute;left:6.05rem;bottom:.75rem}.wrap .main .courseList .courseCard .bottom[data-v-2fc3a8e8]{overflow:hidden}.wrap .main .courseList .courseCard .bottom>p[data-v-2fc3a8e8]{margin-top:.6rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem}.wrap .main .courseList .courseCard .bottom>p span[data-v-2fc3a8e8]:first-of-type{color:#d0d0d0;margin-left:.2rem;margin-right:.2rem}.wrap .main .courseList .courseCard .bottom>p span[data-v-2fc3a8e8]:nth-of-type(2){font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545}.wrap .main .courseList .courseCard .bottom .purchaseBtn[data-v-2fc3a8e8]{float:right;margin-top:.5rem;width:3.6rem;line-height:1.23rem;text-align:center;background:linear-gradient(218deg,#424cf7,#4292f7);border-radius:.61rem;font-size:.6rem;font-family:PingFangSC-Semibold;font-weight:700;color:#fff}.wrap .main .courseList .courseCard .bottom .purchased[data-v-2fc3a8e8]{background:#fff;border-radius:.61rem;border:1px solid #377ee1;color:#377ee1}.wrap .main .courseList .courseCard .bottom .outDate[data-v-2fc3a8e8],.wrap .main .courseList .courseCard .bottom .purchased[data-v-2fc3a8e8]{float:right;margin-top:.5rem;width:3.6rem;line-height:1.23rem;text-align:center;font-size:.6rem;font-family:PingFangSC-Semibold;font-weight:700}.wrap .main .courseList .courseCard .bottom .outDate[data-v-2fc3a8e8]{background:#c3c3c3;border-radius:.61rem;border:1px solid #c3c3c3;color:#fff}.wrap .mask[data-v-2fc3a8e8]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.6);z-index:9}.wrap .mask .popup[data-v-2fc3a8e8]{width:16rem;min-height:17.75rem;background-color:#fff;border-radius:.15rem;position:absolute;top:40%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);padding-bottom:2.45rem}.wrap .mask .popup .p_title[data-v-2fc3a8e8]{padding-top:.6rem;padding-bottom:.2rem;text-align:center;font-size:1rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.4rem}.wrap .mask .popup .p_content .p_item[data-v-2fc3a8e8]{line-height:2.35rem;position:relative}.wrap .mask .popup .p_content .p_item img[data-v-2fc3a8e8]{position:absolute;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.75rem;height:.75rem}.wrap .mask .popup .p_content .p_item .p_name[data-v-2fc3a8e8]{margin-left:1.95rem;border-bottom:1px solid #e6e6e6;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .mask .popup .p_bottom[data-v-2fc3a8e8]{line-height:2.45rem;width:100%;position:absolute;left:0;bottom:0;text-align:center;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;border-top:1px solid #e6e6e6}.wrap .mask .ruleWrap[data-v-2fc3a8e8]{background-color:#fff;position:absolute;width:80%;top:35%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:4px}.wrap .mask .ruleWrap>.title[data-v-2fc3a8e8]{width:100%;text-align:center;padding-top:16px;padding-bottom:16px}.wrap .mask .ruleWrap>.title>p[data-v-2fc3a8e8]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.wrap .mask .ruleWrap>.content[data-v-2fc3a8e8]{padding-bottom:34px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px;text-align:left;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;line-height:18px}.wrap .mask .ruleWrap>.bottom[data-v-2fc3a8e8]{overflow:hidden}.wrap .mask .ruleWrap>.bottom>div[data-v-2fc3a8e8]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#377ee1;width:100%;float:left;position:relative}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/down_arrow.4e9cc84.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2489);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("484d68d8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".classCourseList .mescroll-empty{padding-top:5.48rem!important}.classCourseList .mescroll-empty .empty-icon{width:2.33rem!important}.classCourseList .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _classCourseShare = _interopRequireDefault(__webpack_require__(1417));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    shareTips: _classCourseShare.default
  },
  data: function data() {
    return {
      ruleContent: '',
      cardList: [],
      mescroll: null,
      showMask: false,
      showShare: false,
      showRule: false,
      dataInit: false,
      classifyList: [],
      curClassify: {
        classifyId: '',
        classifyName: '全部班课'
      },
      userId: '',
      // 当前用户登陆的id
      shareText: {},
      shareContent: ''
    };
  },
  created: function created() {
    // 埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '班课分销',
      operate_page: '班课分销',
      optionType: '打开',
      param1: window.location.href
    }, this);
  },
  mounted: function mounted() {
    this.getClassifyList();
    this.getClassRule();
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getCourseList,
        auto: false,
        page: {
          num: 1,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        htmlNodata: '',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'courseList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关课程' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  methods: {
    /**
     * 显示分享页面
     */
    showSharePage: function showSharePage() {
      this.showShare = true;
      // 埋点
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '班课分销',
        operate_page: '班课分销',
        optionType: '点击',
        param1: window.location.href,
        param2: '邀请赚红包'
      }, this);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = "/v2/shopping/classCourseList?shareId=".concat(that.userId || '');
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.shareText.share_title,
                  desc: that.shareText.share_text,
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareText.share_title,
              desc: that.shareText.share_text,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareText.share_title,
              desc: that.shareText.share_text,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareText.share_title,
              desc: that.shareText.share_text,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 切换课程类别
     * @param{classifyId}: 课程类别id
     */
    changeClassify: function changeClassify(classifyId) {
      this.curClassify = classifyId;
      // this.dataInit = false;
      this.cardList = [];
      this.mescroll.resetUpScroll();
      this.showMask = false;
    },
    /**
     * 进入班课详情页
     * @param{courseId}: 班课id
     * @param{status}: 班课状态 1： 已购买
     * @param{btnName}: 按钮文案
     */
    goDetail: function goDetail(courseId, status, btnName) {
      var pathname;
      if (status === 1 && btnName === '进入学习') {
        pathname = "".concat(location.origin, "/v2/shopping/classCourse?courseId=").concat(courseId);
      } else {
        pathname = "".concat(location.origin, "/v2/shopping/courseIntro?courseId=").concat(courseId, "&shareId=").concat(this.$route.query.shareId || '');
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'courseIntro',
            url: pathname
          }
        });
      } else {
        location.href = pathname;
      }
    },
    /**
     * 获取相关课程列表
     */
    getCourseList: function getCourseList(page) {
      var _this = this;
      this._Util.post(this._Api.POST_COURSE_SPREAD_CLASS_COURSE_LIST, {
        classifyId: this.curClassify.classifyId,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        _this.dataInit = true;
        if (page.num === 1) {
          _this.cardList = [];
        }
        _this.cardList = _this.cardList.concat(data);
        _this.$nextTick(function () {
          _this.mescroll.endSuccess(data.length);
        });
      }, function () {
        _this.mescroll.endErr();
      }, this, true);
    },
    /**
     * 获取班课课程种类列表
     */
    getClassifyList: function getClassifyList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_COURSE_SPREAD_CLASSIFY_LIST, {}, /*#__PURE__*/function () {
        var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(data) {
          return _regenerator.default.wrap(function (_context) {
            while (1) switch (_context.prev = _context.next) {
              case 0:
                _this2.classifyList = [{
                  classifyId: '',
                  classifyName: '全部班课'
                }].concat(data.classifyList);
                _this2.userId = data.userId;
                _context.next = 1;
                return _this2.getShareText();
              case 1:
                _this2.shareText = _context.sent;
                _this2.share();
                _this2.getCourseList({
                  num: 1,
                  size: 10
                });
              case 2:
              case "end":
                return _context.stop();
            }
          }, _callee);
        }));
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }(), function () {}, this);
    },
    /**
     * 获取班课规则
     */
    getClassRule: function getClassRule() {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'class_course_intro',
        shareid: this.$route.query.shareId || 0,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this3.ruleContent = data.dataList[0].text;
          _this3.shareContent = data.dataList[0].share_content;
        }
      }, function () {}, this);
    },
    /**
     * 获取分享文案配置
     */
    getShareText: function getShareText() {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.post(_this4._Api.POST_SYS_REPORT_LIST_TWO, {
          code: 'class_course_share',
          class_id: 0,
          sys_uid: _this4.userId,
          pageNum: 1,
          pageSize: 10
        }, function (data) {
          if (data.dataList.length !== 0) {
            resolve(data.dataList[0]);
          }
        }, function (err) {
          reject(err);
        }, _this4);
      });
    },
    /**
     * 转换换行符
     * @params{string}: 需要转换的文本
     */
    parseHtml: function parseHtml(string) {
      return string.replace(/\n | \r\n/g, '<br/>');
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(287);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_58eba4d4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(874);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2063)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-58eba4d4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_58eba4d4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_58eba4d4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseShare_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2064);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("314dcb46", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".share_mask[data-v-58eba4d4]{height:100%;width:100%;background-color:rgba(0,0,0,.7);position:fixed;z-index:9}.share_mask img[data-v-58eba4d4]{width:16.63rem;height:10.23rem;position:absolute;top:1.2rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  model: {
    prop: 'showTips',
    event: 'change'
  },
  props: {
    showTips: {
      type: Boolean,
      required: true
    }
  },
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {
    closeMask: function closeMask() {
      this.$emit('change', false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showTips)?_c('div',{staticClass:"share_mask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.closeMask.apply(null, arguments)}}},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/kxy/member/classcourseinvite_share.png","alt":""}})]):_vm._e()])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"wrap classCourseList"},[_c('share-tips',{model:{value:(_vm.showShare),callback:function ($$v) {_vm.showShare=$$v},expression:"showShare"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMask),expression:"showMask"}],staticClass:"mask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showMask=false;}}},[_c('transition',{attrs:{"name":"fade"}},[(_vm.showMask)?_c('div',{staticClass:"popup"},[_c('div',{staticClass:"p_title"},[_vm._v("选择课程")]),_vm._v(" "),_c('div',{staticClass:"p_content"},_vm._l((_vm.classifyList),function(v,i){return _c('div',{key:i,staticClass:"p_item",on:{"click":function($event){return _vm.changeClassify(v)}}},[(_vm.curClassify.classifyName===v.classifyName)?_c('img',{attrs:{"src":__webpack_require__(1418),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(2490),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"p_name"},[_vm._v(_vm._s(v.classifyName))])])}),0),_vm._v(" "),_c('div',{staticClass:"p_bottom",on:{"click":function($event){_vm.showMask=false;}}},[_vm._v("取消")])]):_vm._e()])],1),_vm._v(" "),_c('transition',{attrs:{"name":"fade"}},[(_vm.showRule)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"ruleWrap"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("活动规则")])]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.ruleContent))}}),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){_vm.showRule=false;}}},[_vm._v("我知道了")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"topBar"},[_c('div',{on:{"click":function($event){_vm.showMask=true;}}},[_vm._v(_vm._s(_vm.curClassify.classifyName))]),_vm._v(" "),_c('div',{staticClass:"inviteBtn",on:{"click":_vm.showSharePage}},[_c('img',{attrs:{"src":__webpack_require__(1419),"alt":""}}),_vm._v("\n      邀请赚红包\n    ")])]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('p',[_vm._v("\n      "+_vm._s(_vm.shareContent)+"\n      "),_c('span',{on:{"click":function($event){_vm.showRule=true;}}},[_vm._v("什么是班课"),_c('img',{attrs:{"src":__webpack_require__(2491),"alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"courseList",attrs:{"id":"courseList"}},[(!_vm.dataInit)?_c('div',{staticStyle:{"text-align":"center","margin-top":"2rem"}},[_vm._v("数据加载中...")]):_vm._e(),_vm._v(" "),_vm._l((_vm.cardList),function(v,i){return _c('div',{key:i,staticClass:"courseCard",on:{"click":function($event){return _vm.goDetail(v.id, v.status, v.btnName)}}},[_c('div',{staticClass:"top"},[_c('img',{attrs:{"src":v.classCover,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(v.className))]),_vm._v(" "),_c('div',{staticClass:"tag"},[_vm._v(_vm._s(v.subtitle))])])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[(v.status===0)?_c('div',{staticClass:"purchaseBtn"},[_vm._v(_vm._s(v.btnName))]):(v.status===1)?_c('div',{staticClass:"purchased"},[_vm._v(_vm._s(v.btnName))]):_c('div',{staticClass:"outDate"},[_vm._v(_vm._s(v.btnName))]),_vm._v(" "),(v.status===1)?_c('p',[_vm._v("开课时间："+_vm._s(v.startTime)),_c('span',[_vm._v("|")]),_c('span',[_vm._v("已报名")])]):_c('p',[_vm._v("开课时间："+_vm._s(v.startTime))])])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/checked.31cf154.png";module.exports = __webpack_require__.p + "static/img/unchecked.b310f89.png";module.exports = __webpack_require__.p + "static/img/red_package.5492960.png";module.exports = __webpack_require__.p + "static/img/question_circle.6ad38b6.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(420);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f7338274_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1021);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2492)
  __webpack_require__(2494)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-f7338274"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f7338274_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f7338274_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseIntro_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2493);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("51efaf8a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-f7338274]{height:100%;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.wrap .topBar[data-v-f7338274]{height:2.8rem;background-color:#fff;border-bottom:.4rem solid #f2f2f2;box-sizing:content-box;position:relative}.wrap .topBar .tabs[data-v-f7338274]{padding-left:.6rem;overflow:hidden}.wrap .topBar .tabs>div[data-v-f7338274]{float:left;line-height:2.8rem;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.wrap .topBar .tabs div[data-v-f7338274]:first-of-type{margin-right:1.2rem}.wrap .topBar .tabs .active[data-v-f7338274]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#000;position:relative}.wrap .topBar .tabs .active[data-v-f7338274]:after{content:\"\";width:2.7rem;height:.15rem;background-color:#000;position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wrap .topBar .inviteBtn[data-v-f7338274]{right:.6rem;line-height:1.6rem;width:7.4rem;text-indent:1.9rem;border-radius:.8rem;border:1px solid #ee4545;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545}.wrap .topBar .inviteBtn[data-v-f7338274],.wrap .topBar .inviteBtn img[data-v-f7338274]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .topBar .inviteBtn img[data-v-f7338274]{width:1rem;height:1rem;left:.8rem}.wrap .main[data-v-f7338274]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.wrap .main .intro[data-v-f7338274]{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}.wrap .main .intro>p[data-v-f7338274]{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#000;line-height:1.13rem;background-color:#f2f2f2;padding:0 .4rem .4rem}.wrap .main .intro>div[data-v-f7338274]{padding:.6rem}.wrap .main .schedule[data-v-f7338274]{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}.wrap .main .schedule .tips[data-v-f7338274]{padding:.6rem .6rem .8rem;border-bottom:.4rem solid #f2f2f2}.wrap .main .schedule .catalog[data-v-f7338274]{font-size:0}.wrap .main .schedule .catalog>.title[data-v-f7338274]{padding:.8rem .6rem .6rem;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;position:relative}.wrap .main .schedule .catalog .catalogList[data-v-f7338274]{margin:0 .8rem;padding:.8rem 0 2.03rem;border-top:1px solid #e6e6e6}.wrap .main .schedule .catalog .catalogList .item[data-v-f7338274]{padding-right:1.95rem;font-size:0;margin-bottom:1.2rem;position:relative}.wrap .main .schedule .catalog .catalogList .item[data-v-f7338274]:last-child{margin-bottom:0}.wrap .main .schedule .catalog .catalogList .item .name[data-v-f7338274]{font-size:.85rem;font-family:PingFangSC-Medium;font-weight:700;color:#333}.wrap .main .schedule .catalog .catalogList .item .detail[data-v-f7338274]{margin-top:.28rem;font-size:0;font-family:PingFangSC-Regular;font-weight:400}.wrap .main .schedule .catalog .catalogList .item .detail .length[data-v-f7338274]{color:#999;margin-right:.4rem;font-size:.7rem}.wrap .main .schedule .catalog .catalogList .item .detail .progress[data-v-f7338274]{color:#f27941;font-size:.7rem}.wrap .main .schedule .catalog .catalogList .item .icon[data-v-f7338274]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:24px;height:24px;background-image:url(\"http://static2.kaxiuyun.com/kxy/app/class-course/classCourseIcon.png\");background-position:0 0;background-size:cover;background-repeat:no-repeat}.wrap .main .schedule .catalog .catalogList .item .play[data-v-f7338274]{background-position:-72px 0}.wrap .main .schedule .catalog .catalogList .item .lock[data-v-f7338274]{background-position:-96px 0}.wrap .main .schedule .catalog .catalogList .item .courseware[data-v-f7338274]{background-position:-48px 0}.wrap .main .schedule .catalog .catalogList .item .exam[data-v-f7338274]{background-position:0 0}.wrap .main .schedule .catalog .catalogList .item .other[data-v-f7338274]{background-position:-24px 0}.wrap .bottomBar[data-v-f7338274]{height:3rem;background-color:#fff;border-top:1px solid #e6e6e6;position:relative}.wrap .bottomBar img[data-v-f7338274]{width:2.2rem;height:1.95rem;position:absolute;left:.6rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .bottomBar .btnWrap[data-v-f7338274]{margin-left:3.6rem;width:14.55rem;line-height:2.2rem;background:#377ee1;border-radius:.1rem;text-align:center;margin-top:.4rem;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff}.wrap .bottomBar .disable[data-v-f7338274]{background:#ddd}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2495);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8d72a0f8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-msgbox-btns .mint-msgbox-cancel.cancelBtn{color:#377ee1!important}.classCourseIntro .htmlWrap img{max-width:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _classCourseShare = _interopRequireDefault(__webpack_require__(1417));
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    shareTips: _classCourseShare.default
  },
  data: function data() {
    return {
      showShare: false,
      activeTab: this.$route.query.activeTab || 0,
      // 0: 课程介绍  1：课程表
      courseDetail: '',
      shareText: {},
      shareContent: ''
    };
  },
  created: function created() {
    this.getCourseDetail();
    this.getClassRule();
  },
  methods: {
    /**
     * 显示分享页面
     */
    showSharePage: function showSharePage() {
      this.showShare = true;
      // 埋点
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '班课分销',
        operate_page: '班课分销',
        optionType: '点击',
        param1: window.location.href,
        param2: '邀请赚红包'
      }, this);
    },
    /**
     * 获取用户状态
     */
    getUserStatus: function getUserStatus() {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.post(_this._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this);
      });
    },
    /**
     * 购买逻辑
     */
    purchase: function purchase() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userData;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (!(_this2.courseDetail.isExpired === 1)) {
                _context.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '当前课程已过期',
                position: 'middle',
                duration: 1000
              });
              return _context.abrupt("return");
            case 1:
              _context.next = 2;
              return _this2.getUserStatus();
            case 2:
              userData = _context.sent;
              if (!(userData.userStatus == 0)) {
                _context.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '认证提示',
                message: '您当前还未认证， 认证享受更多功能',
                confirmButtonText: '去认证',
                showCancelButton: true,
                cancelButtonText: '暂不认证'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this2.$router.push({
                    name: 'personalCertification',
                    query: {
                      from: 'prev'
                    }
                  });
                }
              });
              return _context.abrupt("return");
            case 3:
              _this2._Util.post(_this2._Api.POST_COURSE_SPREAD_PURCHASE, {
                courseId: _this2.$route.query.courseId,
                refereeId: _this2.$route.query.shareId || ''
              }, function (data) {
                _this2._Util.wxPay(data.jsApiParameters, function () {
                  (0, _mintUi.MessageBox)({
                    title: '',
                    message: "<p style=\"text-align:center;font-size:1rem;padding: 1rem 0;\" >\u8BFE\u7A0B\u8D2D\u4E70\u6210\u529F</p>",
                    confirmButtonText: '查看更多课程',
                    showCancelButton: true,
                    cancelButtonText: '查看课程表',
                    cancelButtonClass: 'cancelBtn',
                    closeOnClickModal: false
                  }).then(function (action) {
                    if (action === 'confirm') {
                      // 点击查看更多课程
                      _this2.goCourseList();
                    } else {
                      // 点击查看课程表
                      _this2.$router.replace({
                        name: 'classCourse',
                        query: {
                          courseId: _this2.$route.query.courseId
                        }
                      });
                    }
                  });
                });
              }, function () {}, _this2);
            case 4:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 切换顶部 tab
     * @param{tab}: 0：课程介绍  1：课程表
     */
    changeTab: function changeTab(tab) {
      this.activeTab = tab;
      // 埋点
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '班课分销',
        operate_page: '班课分销',
        optionType: '点击',
        param1: window.location.href,
        param2: tab === 0 ? '课程介绍' : '课程表'
      }, this);
      // this.$router.replace({
      //   name: 'classCourseIntro',
      //   query: {
      //     courseId: this.$route.query.courseId,
      //     activeTab: tab,
      //     shareId: this.$route.query.shareId,
      //   }
      // })
      // this.share();
      // document.title = this.courseDetail.courseName;
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      var _this3 = this;
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          if (_this3.version) {
            resolve(_this3.version);
          } else {
            api.getPrefs({
              // 接收apicloud传递过来的版本号
              key: 'version'
            }, function (ret, err) {
              if (ret.value) {
                resolve(ret.value);
              } else {
                reject();
              }
            });
          }
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /**
     * 获取课时条目对应的视频url
     * @param(hourId): 课时条目的id
     * @param(hourType): 课时条目的类型
     * @param(videoHeight): 视频的高度
     * @param(videoWidth): 视频的宽度
     * @param(videoName): 课时名称
     * @param(isFree): 当前课时能否被试看
     * @param(watchLocation): 观看记录
     */
    getCourseUrl: function getCourseUrl(hourId, hourType, videoHeight, videoWidth, videoName, isFree, watchLocation) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var _version;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this4.getAppVer();
            case 1:
              _version = _context2.sent;
              if (!(isFree === 0)) {
                _context2.next = 2;
                break;
              }
              (0, _mintUi.Toast)({
                message: '请先报名购买本课程',
                position: 'middle',
                duration: 1000
              });
              return _context2.abrupt("return");
            case 2:
              _this4._Util.post(_this4._Api.POST_CLASS_COURSE_GET_COURSE_URL, {
                hourId: hourId
              }, function (data) {
                if (data.status === 0) {
                  (0, _mintUi.Toast)({
                    message: '该课程未到解锁日期',
                    position: 'middle',
                    duration: 1000
                  });
                  return;
                }
                if (hourType === 1) {
                  if (_this4._Util.isApp() && _this4.compareVersion(_version)) {
                    api.sendEvent({
                      name: 'openPlayVideo',
                      extra: {
                        title: videoName,
                        videoUrl: data.hourUrl,
                        seekTime: watchLocation,
                        hourId: hourId,
                        courseType: 'class'
                      }
                    });
                    return;
                  }
                  var currentVideoType;
                  if (videoHeight >= videoWidth) {
                    currentVideoType = 0;
                  } else {
                    currentVideoType = 1;
                  }
                  _this4.$router.push({
                    name: 'classCoursePlayer',
                    params: {
                      videoName: videoName,
                      url: data.hourUrl,
                      hourId: hourId,
                      currentVideoType: currentVideoType,
                      courseType: 'class'
                    }
                  });
                } else {
                  // window.location.href = data.hourUrl;
                  if (_this4._Util.isApp()) {
                    api.sendEvent({
                      name: 'acOpenNewFrm',
                      extra: {
                        name: 'OPenCourseUrl',
                        url: data.hourUrl
                      }
                    });
                  } else {
                    window.location.href = data.hourUrl;
                  }
                }
              }, function () {}, _this4);
            case 3:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 获取课程表详情详情
     */
    getCourseDetail: function getCourseDetail() {
      var _this5 = this;
      this._Util.post(this._Api.POST_CLASS_COURSE_GET_COURSE_DETAIL, {
        courseId: this.$route.query.courseId
      }, /*#__PURE__*/function () {
        var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(data) {
          return _regenerator.default.wrap(function (_context3) {
            while (1) switch (_context3.prev = _context3.next) {
              case 0:
                // 埋点
                _this5._Util.collectPageView2({
                  postUrl: _this5._Api.POST_COLLECT,
                  url: window.location.href,
                  moduleType: '班课分销',
                  operate_page: '班课分销',
                  optionType: '打开',
                  param1: window.location.href,
                  param2: data.courseName
                }, _this5);
                _this5.courseDetail = data;
                if (!(data.status === 1 && data.isClassBegins === 1)) {
                  _context3.next = 1;
                  break;
                }
                // 已购买并且当前课程已开始 跳转到 班课详情页
                _this5.$router.replace({
                  name: 'classCourse',
                  query: {
                    courseId: _this5.$route.query.courseId
                  }
                });
                return _context3.abrupt("return");
              case 1:
                if (!(data.status === 2)) {
                  _context3.next = 2;
                  break;
                }
                // 无权打开 进入班课列表页
                _this5.$router.replace({
                  name: 'classCourseList',
                  query: {
                    shareId: _this5.$route.query.shareId || ''
                  }
                });
                return _context3.abrupt("return");
              case 2:
                _context3.next = 3;
                return _this5.getShareText();
              case 3:
                _this5.shareText = _context3.sent;
                _this5.share();
                document.title = _this5.courseDetail.courseName;
              case 4:
              case "end":
                return _context3.stop();
            }
          }, _callee3);
        }));
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }(), function () {}, this);
    },
    /**
     * 处理课程的文案
     * @param(courseType): 当前课程条目的类型
     * @param(courseHourLength): 当前课程条目为视频时，视频的总长度
     * @param(isFree):  1: 当前课程免费试看
     * @retrun 根据课程条目返回的对应文案
     */
    handleText: function handleText(courseType, courseHourLength, isFree) {
      var ret;
      if (courseType === 1) {
        var timeLength = courseHourLength.indexOf('00:') === 0 ? courseHourLength.slice(3) : courseHourLength;
        ret = "\u89C6\u9891\u65F6\u957F\uFF1A".concat(timeLength);
      } else if (isFree === 1) {
        ret = '';
      } else {
        ret = '购买后解锁';
      }
      return ret;
    },
    /**
     * 处理课程的图标
     * @param(hourType): 单节课类型  1:视频，2:课件，3：作业，4：考试，5：其他
     * @param(isFree): 能否免费试看 0：不能试看  1：能够试看
     * @return 根据课程条目返回的对应图标
     */
    handleIcon: function handleIcon(hourType, isFree) {
      var _icon;
      if (isFree === 0) {
        return _icon = 'lock';
      }
      switch (hourType) {
        case 1:
          _icon = 'play';
          break;
        case 2:
          _icon = 'courseware';
          break;
        case 3:
          _icon = 'exam';
          break;
        case 4:
          _icon = 'exam';
          break;
        case 5:
          _icon = 'other';
          break;
      }
      return _icon;
    },
    /**
     * 班课列表
     */
    goCourseList: function goCourseList() {
      // 埋点
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '班课分销',
        operate_page: '班课分销',
        optionType: '点击',
        param1: window.location.href,
        param2: '更多课程'
      }, this);
      if (this._Util.isApp() && api.winName === 'courseIntro') {
        api.closeWin();
      } else {
        this.$router.replace({
          name: 'classCourseList',
          query: {
            shareId: this.$route.query.shareId
          }
        });
      }
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = "/v2/shopping/courseIntro?courseId=".concat(that.$route.query.courseId, "&shareId=").concat(that.courseDetail.userId || '');
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.shareText.share_title,
                  desc: that.shareText.share_text,
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareText.share_title,
              desc: that.shareText.share_text,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareText.share_title,
              desc: that.shareText.share_text,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareText.share_title,
              desc: that.shareText.share_text,
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 获取分享文案配置
     */
    getShareText: function getShareText() {
      var _this6 = this;
      return new Promise(function (resolve, reject) {
        _this6._Util.post(_this6._Api.POST_SYS_REPORT_LIST_TWO, {
          code: 'class_course_share',
          class_id: +_this6.$route.query.courseId,
          sys_uid: _this6.courseDetail.userId,
          pageNum: 1,
          pageSize: 10
        }, function (data) {
          if (data.dataList.length !== 0) {
            resolve(data.dataList[0]);
          }
        }, function (err) {
          reject(err);
        }, _this6);
      });
    },
    /**
     * 获取分享信息
     */
    getClassRule: function getClassRule() {
      var _this7 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'class_course_intro',
        shareid: this.$route.query.shareId || 0,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this7.shareContent = data.dataList[0].share_content;
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap classCourseIntro"},[_c('share-tips',{model:{value:(_vm.showShare),callback:function ($$v) {_vm.showShare=$$v},expression:"showShare"}}),_vm._v(" "),_c('div',{staticClass:"topBar"},[_c('div',{staticClass:"tabs"},[_c('div',{class:{active: _vm.activeTab==0},on:{"click":function($event){return _vm.changeTab(0)}}},[_vm._v("课程介绍")]),_vm._v(" "),_c('div',{class:{active: _vm.activeTab==1},on:{"click":function($event){return _vm.changeTab(1)}}},[_vm._v("课程表")])]),_vm._v(" "),_c('div',{staticClass:"inviteBtn",on:{"click":_vm.showSharePage}},[_c('img',{attrs:{"src":__webpack_require__(1419),"alt":""}}),_vm._v("\n      邀请赚红包\n    ")])]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeTab==0),expression:"activeTab==0"}],staticClass:"intro"},[(_vm.shareContent)?_c('p',[_vm._v(_vm._s(_vm.shareContent))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"htmlWrap",domProps:{"innerHTML":_vm._s(_vm.courseDetail.travelBrochure)}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeTab==1),expression:"activeTab==1"}],staticClass:"schedule"},[_c('div',{staticClass:"tips htmlWrap",domProps:{"innerHTML":_vm._s(_vm.courseDetail.classIntroduce )}}),_vm._v(" "),_c('div',{staticClass:"catalog"},[_c('div',{staticClass:"title"},[_vm._v("\n          课程目录\n        ")]),_vm._v(" "),_c('div',{staticClass:"catalogList"},_vm._l((_vm.courseDetail.hourList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.getCourseUrl(v.hourId, v.type, v.height, v.width, v.hourName, v.status, v.watchLocation)}}},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.hourName))]),_vm._v(" "),_c('div',{staticClass:"detail"},[(_vm.handleText(v.type, v.hourLength, v.status))?_c('span',{staticClass:"length"},[_vm._v(_vm._s(_vm.handleText(v.type, v.hourLength, v.status)))]):_vm._e(),_vm._v(" "),(v.status===1)?_c('span',{staticClass:"progress"},[_vm._v("免费试看")]):_vm._e(),_vm._v(" "),_c('div',{class:['icon', _vm.handleIcon(v.type, v.status)]})])])}),0)])])]),_vm._v(" "),_c('div',{staticClass:"bottomBar"},[_c('img',{attrs:{"src":__webpack_require__(2496),"alt":""},on:{"click":_vm.goCourseList}}),_vm._v(" "),(_vm.courseDetail.isExpired===1)?_c('div',{staticClass:"btnWrap disable",on:{"click":_vm.purchase}},[_vm._v("\n      已过期，请报名最新一期\n    ")]):(_vm.courseDetail.status===0)?_c('div',{staticClass:"btnWrap",on:{"click":_vm.purchase}},[_vm._v("\n      支付"+_vm._s(_vm.courseDetail.price)+"元报名\n    ")]):(_vm.courseDetail.status===1&&_vm.courseDetail.isClassBegins===0)?_c('div',{staticClass:"btnWrap"},[_vm._v("\n      已购买，"+_vm._s(_vm.courseDetail.startTime)+"开课\n    ")]):_vm._e()])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/more_course.9dbd437.svg";/**
 * Vue-awesome-swiper
 * @author Surmon.me
 */

var Swiper = __webpack_require__(1383)
var SwiperComponent = __webpack_require__(2070)
var SlideComponent = __webpack_require__(2071)
SwiperComponent = SwiperComponent.default || SwiperComponent
SlideComponent = SlideComponent.default || SlideComponent
if (typeof window !== 'undefined') {
  window.Swiper = Swiper
}

var swiper = {
  swiperSlide: SlideComponent,
  swiper: SwiperComponent,
  swiperPlugins: Swiper.prototype.plugins,
  install: function(Vue) {
    Vue.component(SwiperComponent.name, SwiperComponent)
    Vue.component(SlideComponent.name, SlideComponent)
  }
}

module.exports = swiper
/* WEBPACK VAR INJECTION */(function(jQuery) {/**
 * Swiper 3.4.2
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * 
 * http://www.idangero.us/swiper/
 * 
 * Copyright 2017, Vladimir Kharlampidi
 * The iDangero.us
 * http://www.idangero.us/
 * 
 * Licensed under MIT
 * 
 * Released on: March 10, 2017
 */
(function () {
    'use strict';
    var $;

    /*===========================
    Swiper
    ===========================*/
    var Swiper = function (container, params) {
        if (!(this instanceof Swiper)) return new Swiper(container, params);
    

        var defaults = {
            direction: 'horizontal',
            touchEventsTarget: 'container',
            initialSlide: 0,
            speed: 300,
            // autoplay
            autoplay: false,
            autoplayDisableOnInteraction: true,
            autoplayStopOnLast: false,
            // To support iOS's swipe-to-go-back gesture (when being used in-app, with UIWebView).
            iOSEdgeSwipeDetection: false,
            iOSEdgeSwipeThreshold: 20,
            // Free mode
            freeMode: false,
            freeModeMomentum: true,
            freeModeMomentumRatio: 1,
            freeModeMomentumBounce: true,
            freeModeMomentumBounceRatio: 1,
            freeModeMomentumVelocityRatio: 1,
            freeModeSticky: false,
            freeModeMinimumVelocity: 0.02,
            // Autoheight
            autoHeight: false,
            // Set wrapper width
            setWrapperSize: false,
            // Virtual Translate
            virtualTranslate: false,
            // Effects
            effect: 'slide', // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
            coverflow: {
                rotate: 50,
                stretch: 0,
                depth: 100,
                modifier: 1,
                slideShadows : true
            },
            flip: {
                slideShadows : true,
                limitRotation: true
            },
            cube: {
                slideShadows: true,
                shadow: true,
                shadowOffset: 20,
                shadowScale: 0.94
            },
            fade: {
                crossFade: false
            },
            // Parallax
            parallax: false,
            // Zoom
            zoom: false,
            zoomMax: 3,
            zoomMin: 1,
            zoomToggle: true,
            // Scrollbar
            scrollbar: null,
            scrollbarHide: true,
            scrollbarDraggable: false,
            scrollbarSnapOnRelease: false,
            // Keyboard Mousewheel
            keyboardControl: false,
            mousewheelControl: false,
            mousewheelReleaseOnEdges: false,
            mousewheelInvert: false,
            mousewheelForceToAxis: false,
            mousewheelSensitivity: 1,
            mousewheelEventsTarged: 'container',
            // Hash Navigation
            hashnav: false,
            hashnavWatchState: false,
            // History
            history: false,
            // Commong Nav State
            replaceState: false,
            // Breakpoints
            breakpoints: undefined,
            // Slides grid
            spaceBetween: 0,
            slidesPerView: 1,
            slidesPerColumn: 1,
            slidesPerColumnFill: 'column',
            slidesPerGroup: 1,
            centeredSlides: false,
            slidesOffsetBefore: 0, // in px
            slidesOffsetAfter: 0, // in px
            // Round length
            roundLengths: false,
            // Touches
            touchRatio: 1,
            touchAngle: 45,
            simulateTouch: true,
            shortSwipes: true,
            longSwipes: true,
            longSwipesRatio: 0.5,
            longSwipesMs: 300,
            followFinger: true,
            onlyExternal: false,
            threshold: 0,
            touchMoveStopPropagation: true,
            touchReleaseOnEdges: false,
            // Unique Navigation Elements
            uniqueNavElements: true,
            // Pagination
            pagination: null,
            paginationElement: 'span',
            paginationClickable: false,
            paginationHide: false,
            paginationBulletRender: null,
            paginationProgressRender: null,
            paginationFractionRender: null,
            paginationCustomRender: null,
            paginationType: 'bullets', // 'bullets' or 'progress' or 'fraction' or 'custom'
            // Resistance
            resistance: true,
            resistanceRatio: 0.85,
            // Next/prev buttons
            nextButton: null,
            prevButton: null,
            // Progress
            watchSlidesProgress: false,
            watchSlidesVisibility: false,
            // Cursor
            grabCursor: false,
            // Clicks
            preventClicks: true,
            preventClicksPropagation: true,
            slideToClickedSlide: false,
            // Lazy Loading
            lazyLoading: false,
            lazyLoadingInPrevNext: false,
            lazyLoadingInPrevNextAmount: 1,
            lazyLoadingOnTransitionStart: false,
            // Images
            preloadImages: true,
            updateOnImagesReady: true,
            // loop
            loop: false,
            loopAdditionalSlides: 0,
            loopedSlides: null,
            // Control
            control: undefined,
            controlInverse: false,
            controlBy: 'slide', //or 'container'
            normalizeSlideIndex: true,
            // Swiping/no swiping
            allowSwipeToPrev: true,
            allowSwipeToNext: true,
            swipeHandler: null, //'.swipe-handler',
            noSwiping: true,
            noSwipingClass: 'swiper-no-swiping',
            // Passive Listeners
            passiveListeners: true,
            // NS
            containerModifierClass: 'swiper-container-', // NEW
            slideClass: 'swiper-slide',
            slideActiveClass: 'swiper-slide-active',
            slideDuplicateActiveClass: 'swiper-slide-duplicate-active',
            slideVisibleClass: 'swiper-slide-visible',
            slideDuplicateClass: 'swiper-slide-duplicate',
            slideNextClass: 'swiper-slide-next',
            slideDuplicateNextClass: 'swiper-slide-duplicate-next',
            slidePrevClass: 'swiper-slide-prev',
            slideDuplicatePrevClass: 'swiper-slide-duplicate-prev',
            wrapperClass: 'swiper-wrapper',
            bulletClass: 'swiper-pagination-bullet',
            bulletActiveClass: 'swiper-pagination-bullet-active',
            buttonDisabledClass: 'swiper-button-disabled',
            paginationCurrentClass: 'swiper-pagination-current',
            paginationTotalClass: 'swiper-pagination-total',
            paginationHiddenClass: 'swiper-pagination-hidden',
            paginationProgressbarClass: 'swiper-pagination-progressbar',
            paginationClickableClass: 'swiper-pagination-clickable', // NEW
            paginationModifierClass: 'swiper-pagination-', // NEW
            lazyLoadingClass: 'swiper-lazy',
            lazyStatusLoadingClass: 'swiper-lazy-loading',
            lazyStatusLoadedClass: 'swiper-lazy-loaded',
            lazyPreloaderClass: 'swiper-lazy-preloader',
            notificationClass: 'swiper-notification',
            preloaderClass: 'preloader',
            zoomContainerClass: 'swiper-zoom-container',
        
            // Observer
            observer: false,
            observeParents: false,
            // Accessibility
            a11y: false,
            prevSlideMessage: 'Previous slide',
            nextSlideMessage: 'Next slide',
            firstSlideMessage: 'This is the first slide',
            lastSlideMessage: 'This is the last slide',
            paginationBulletMessage: 'Go to slide {{index}}',
            // Callbacks
            runCallbacksOnInit: true
            /*
            Callbacks:
            onInit: function (swiper)
            onDestroy: function (swiper)
            onBeforeResize: function (swiper)
            onAfterResize: function (swiper)
            onClick: function (swiper, e)
            onTap: function (swiper, e)
            onDoubleTap: function (swiper, e)
            onSliderMove: function (swiper, e)
            onSlideChangeStart: function (swiper)
            onSlideChangeEnd: function (swiper)
            onTransitionStart: function (swiper)
            onTransitionEnd: function (swiper)
            onImagesReady: function (swiper)
            onProgress: function (swiper, progress)
            onTouchStart: function (swiper, e)
            onTouchMove: function (swiper, e)
            onTouchMoveOpposite: function (swiper, e)
            onTouchEnd: function (swiper, e)
            onReachBeginning: function (swiper)
            onReachEnd: function (swiper)
            onSetTransition: function (swiper, duration)
            onSetTranslate: function (swiper, translate)
            onAutoplayStart: function (swiper)
            onAutoplayStop: function (swiper),
            onLazyImageLoad: function (swiper, slide, image)
            onLazyImageReady: function (swiper, slide, image)
            onKeyPress: function (swiper, keyCode)
            */
        
        };
        var initialVirtualTranslate = params && params.virtualTranslate;
        
        params = params || {};
        var originalParams = {};
        for (var param in params) {
            if (typeof params[param] === 'object' && params[param] !== null && !(params[param].nodeType || params[param] === window || params[param] === document || (typeof Dom7 !== 'undefined' && params[param] instanceof Dom7) || (typeof jQuery !== 'undefined' && params[param] instanceof jQuery))) {
                originalParams[param] = {};
                for (var deepParam in params[param]) {
                    originalParams[param][deepParam] = params[param][deepParam];
                }
            }
            else {
                originalParams[param] = params[param];
            }
        }
        for (var def in defaults) {
            if (typeof params[def] === 'undefined') {
                params[def] = defaults[def];
            }
            else if (typeof params[def] === 'object') {
                for (var deepDef in defaults[def]) {
                    if (typeof params[def][deepDef] === 'undefined') {
                        params[def][deepDef] = defaults[def][deepDef];
                    }
                }
            }
        }
        
        // Swiper
        var s = this;
        
        // Params
        s.params = params;
        s.originalParams = originalParams;
        
        // Classname
        s.classNames = [];
        /*=========================
          Dom Library and plugins
          ===========================*/
        if (typeof $ !== 'undefined' && typeof Dom7 !== 'undefined'){
            $ = Dom7;
        }
        if (typeof $ === 'undefined') {
            if (typeof Dom7 === 'undefined') {
                $ = window.Dom7 || window.Zepto || window.jQuery;
            }
            else {
                $ = Dom7;
            }
            if (!$) return;
        }
        // Export it to Swiper instance
        s.$ = $;
        
        /*=========================
          Breakpoints
          ===========================*/
        s.currentBreakpoint = undefined;
        s.getActiveBreakpoint = function () {
            //Get breakpoint for window width
            if (!s.params.breakpoints) return false;
            var breakpoint = false;
            var points = [], point;
            for ( point in s.params.breakpoints ) {
                if (s.params.breakpoints.hasOwnProperty(point)) {
                    points.push(point);
                }
            }
            points.sort(function (a, b) {
                return parseInt(a, 10) > parseInt(b, 10);
            });
            for (var i = 0; i < points.length; i++) {
                point = points[i];
                if (point >= window.innerWidth && !breakpoint) {
                    breakpoint = point;
                }
            }
            return breakpoint || 'max';
        };
        s.setBreakpoint = function () {
            //Set breakpoint for window width and update parameters
            var breakpoint = s.getActiveBreakpoint();
            if (breakpoint && s.currentBreakpoint !== breakpoint) {
                var breakPointsParams = breakpoint in s.params.breakpoints ? s.params.breakpoints[breakpoint] : s.originalParams;
                var needsReLoop = s.params.loop && (breakPointsParams.slidesPerView !== s.params.slidesPerView);
                for ( var param in breakPointsParams ) {
                    s.params[param] = breakPointsParams[param];
                }
                s.currentBreakpoint = breakpoint;
                if(needsReLoop && s.destroyLoop) {
                    s.reLoop(true);
                }
            }
        };
        // Set breakpoint on load
        if (s.params.breakpoints) {
            s.setBreakpoint();
        }
        
        /*=========================
          Preparation - Define Container, Wrapper and Pagination
          ===========================*/
        s.container = $(container);
        if (s.container.length === 0) return;
        if (s.container.length > 1) {
            var swipers = [];
            s.container.each(function () {
                var container = this;
                swipers.push(new Swiper(this, params));
            });
            return swipers;
        }
        
        // Save instance in container HTML Element and in data
        s.container[0].swiper = s;
        s.container.data('swiper', s);
        
        s.classNames.push(s.params.containerModifierClass + s.params.direction);
        
        if (s.params.freeMode) {
            s.classNames.push(s.params.containerModifierClass + 'free-mode');
        }
        if (!s.support.flexbox) {
            s.classNames.push(s.params.containerModifierClass + 'no-flexbox');
            s.params.slidesPerColumn = 1;
        }
        if (s.params.autoHeight) {
            s.classNames.push(s.params.containerModifierClass + 'autoheight');
        }
        // Enable slides progress when required
        if (s.params.parallax || s.params.watchSlidesVisibility) {
            s.params.watchSlidesProgress = true;
        }
        // Max resistance when touchReleaseOnEdges
        if (s.params.touchReleaseOnEdges) {
            s.params.resistanceRatio = 0;
        }
        // Coverflow / 3D
        if (['cube', 'coverflow', 'flip'].indexOf(s.params.effect) >= 0) {
            if (s.support.transforms3d) {
                s.params.watchSlidesProgress = true;
                s.classNames.push(s.params.containerModifierClass + '3d');
            }
            else {
                s.params.effect = 'slide';
            }
        }
        if (s.params.effect !== 'slide') {
            s.classNames.push(s.params.containerModifierClass + s.params.effect);
        }
        if (s.params.effect === 'cube') {
            s.params.resistanceRatio = 0;
            s.params.slidesPerView = 1;
            s.params.slidesPerColumn = 1;
            s.params.slidesPerGroup = 1;
            s.params.centeredSlides = false;
            s.params.spaceBetween = 0;
            s.params.virtualTranslate = true;
        }
        if (s.params.effect === 'fade' || s.params.effect === 'flip') {
            s.params.slidesPerView = 1;
            s.params.slidesPerColumn = 1;
            s.params.slidesPerGroup = 1;
            s.params.watchSlidesProgress = true;
            s.params.spaceBetween = 0;
            if (typeof initialVirtualTranslate === 'undefined') {
                s.params.virtualTranslate = true;
            }
        }
        
        // Grab Cursor
        if (s.params.grabCursor && s.support.touch) {
            s.params.grabCursor = false;
        }
        
        // Wrapper
        s.wrapper = s.container.children('.' + s.params.wrapperClass);
        
        // Pagination
        if (s.params.pagination) {
            s.paginationContainer = $(s.params.pagination);
            if (s.params.uniqueNavElements && typeof s.params.pagination === 'string' && s.paginationContainer.length > 1 && s.container.find(s.params.pagination).length === 1) {
                s.paginationContainer = s.container.find(s.params.pagination);
            }
        
            if (s.params.paginationType === 'bullets' && s.params.paginationClickable) {
                s.paginationContainer.addClass(s.params.paginationModifierClass + 'clickable');
            }
            else {
                s.params.paginationClickable = false;
            }
            s.paginationContainer.addClass(s.params.paginationModifierClass + s.params.paginationType);
        }
        // Next/Prev Buttons
        if (s.params.nextButton || s.params.prevButton) {
            if (s.params.nextButton) {
                s.nextButton = $(s.params.nextButton);
                if (s.params.uniqueNavElements && typeof s.params.nextButton === 'string' && s.nextButton.length > 1 && s.container.find(s.params.nextButton).length === 1) {
                    s.nextButton = s.container.find(s.params.nextButton);
                }
            }
            if (s.params.prevButton) {
                s.prevButton = $(s.params.prevButton);
                if (s.params.uniqueNavElements && typeof s.params.prevButton === 'string' && s.prevButton.length > 1 && s.container.find(s.params.prevButton).length === 1) {
                    s.prevButton = s.container.find(s.params.prevButton);
                }
            }
        }
        
        // Is Horizontal
        s.isHorizontal = function () {
            return s.params.direction === 'horizontal';
        };
        // s.isH = isH;
        
        // RTL
        s.rtl = s.isHorizontal() && (s.container[0].dir.toLowerCase() === 'rtl' || s.container.css('direction') === 'rtl');
        if (s.rtl) {
            s.classNames.push(s.params.containerModifierClass + 'rtl');
        }
        
        // Wrong RTL support
        if (s.rtl) {
            s.wrongRTL = s.wrapper.css('display') === '-webkit-box';
        }
        
        // Columns
        if (s.params.slidesPerColumn > 1) {
            s.classNames.push(s.params.containerModifierClass + 'multirow');
        }
        
        // Check for Android
        if (s.device.android) {
            s.classNames.push(s.params.containerModifierClass + 'android');
        }
        
        // Add classes
        s.container.addClass(s.classNames.join(' '));
        
        // Translate
        s.translate = 0;
        
        // Progress
        s.progress = 0;
        
        // Velocity
        s.velocity = 0;
        
        /*=========================
          Locks, unlocks
          ===========================*/
        s.lockSwipeToNext = function () {
            s.params.allowSwipeToNext = false;
            if (s.params.allowSwipeToPrev === false && s.params.grabCursor) {
                s.unsetGrabCursor();
            }
        };
        s.lockSwipeToPrev = function () {
            s.params.allowSwipeToPrev = false;
            if (s.params.allowSwipeToNext === false && s.params.grabCursor) {
                s.unsetGrabCursor();
            }
        };
        s.lockSwipes = function () {
            s.params.allowSwipeToNext = s.params.allowSwipeToPrev = false;
            if (s.params.grabCursor) s.unsetGrabCursor();
        };
        s.unlockSwipeToNext = function () {
            s.params.allowSwipeToNext = true;
            if (s.params.allowSwipeToPrev === true && s.params.grabCursor) {
                s.setGrabCursor();
            }
        };
        s.unlockSwipeToPrev = function () {
            s.params.allowSwipeToPrev = true;
            if (s.params.allowSwipeToNext === true && s.params.grabCursor) {
                s.setGrabCursor();
            }
        };
        s.unlockSwipes = function () {
            s.params.allowSwipeToNext = s.params.allowSwipeToPrev = true;
            if (s.params.grabCursor) s.setGrabCursor();
        };
        
        /*=========================
          Round helper
          ===========================*/
        function round(a) {
            return Math.floor(a);
        }
        /*=========================
          Set grab cursor
          ===========================*/
        s.setGrabCursor = function(moving) {
            s.container[0].style.cursor = 'move';
            s.container[0].style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab';
            s.container[0].style.cursor = moving ? '-moz-grabbin' : '-moz-grab';
            s.container[0].style.cursor = moving ? 'grabbing': 'grab';
        };
        s.unsetGrabCursor = function () {
            s.container[0].style.cursor = '';
        };
        if (s.params.grabCursor) {
            s.setGrabCursor();
        }
        /*=========================
          Update on Images Ready
          ===========================*/
        s.imagesToLoad = [];
        s.imagesLoaded = 0;
        
        s.loadImage = function (imgElement, src, srcset, sizes, checkForComplete, callback) {
            var image;
            function onReady () {
                if (callback) callback();
            }
            if (!imgElement.complete || !checkForComplete) {
                if (src) {
                    image = new window.Image();
                    image.onload = onReady;
                    image.onerror = onReady;
                    if (sizes) {
                        image.sizes = sizes;
                    }
                    if (srcset) {
                        image.srcset = srcset;
                    }
                    if (src) {
                        image.src = src;
                    }
                } else {
                    onReady();
                }
        
            } else {//image already loaded...
                onReady();
            }
        };
        s.preloadImages = function () {
            s.imagesToLoad = s.container.find('img');
            function _onReady() {
                if (typeof s === 'undefined' || s === null || !s) return;
                if (s.imagesLoaded !== undefined) s.imagesLoaded++;
                if (s.imagesLoaded === s.imagesToLoad.length) {
                    if (s.params.updateOnImagesReady) s.update();
                    s.emit('onImagesReady', s);
                }
            }
            for (var i = 0; i < s.imagesToLoad.length; i++) {
                s.loadImage(s.imagesToLoad[i], (s.imagesToLoad[i].currentSrc || s.imagesToLoad[i].getAttribute('src')), (s.imagesToLoad[i].srcset || s.imagesToLoad[i].getAttribute('srcset')), s.imagesToLoad[i].sizes || s.imagesToLoad[i].getAttribute('sizes'), true, _onReady);
            }
        };
        
        /*=========================
          Autoplay
          ===========================*/
        s.autoplayTimeoutId = undefined;
        s.autoplaying = false;
        s.autoplayPaused = false;
        function autoplay() {
            var autoplayDelay = s.params.autoplay;
            var activeSlide = s.slides.eq(s.activeIndex);
            if (activeSlide.attr('data-swiper-autoplay')) {
                autoplayDelay = activeSlide.attr('data-swiper-autoplay') || s.params.autoplay;
            }
            s.autoplayTimeoutId = setTimeout(function () {
                if (s.params.loop) {
                    s.fixLoop();
                    s._slideNext();
                    s.emit('onAutoplay', s);
                }
                else {
                    if (!s.isEnd) {
                        s._slideNext();
                        s.emit('onAutoplay', s);
                    }
                    else {
                        if (!params.autoplayStopOnLast) {
                            s._slideTo(0);
                            s.emit('onAutoplay', s);
                        }
                        else {
                            s.stopAutoplay();
                        }
                    }
                }
            }, autoplayDelay);
        }
        s.startAutoplay = function () {
            if (typeof s.autoplayTimeoutId !== 'undefined') return false;
            if (!s.params.autoplay) return false;
            if (s.autoplaying) return false;
            s.autoplaying = true;
            s.emit('onAutoplayStart', s);
            autoplay();
        };
        s.stopAutoplay = function (internal) {
            if (!s.autoplayTimeoutId) return;
            if (s.autoplayTimeoutId) clearTimeout(s.autoplayTimeoutId);
            s.autoplaying = false;
            s.autoplayTimeoutId = undefined;
            s.emit('onAutoplayStop', s);
        };
        s.pauseAutoplay = function (speed) {
            if (s.autoplayPaused) return;
            if (s.autoplayTimeoutId) clearTimeout(s.autoplayTimeoutId);
            s.autoplayPaused = true;
            if (speed === 0) {
                s.autoplayPaused = false;
                autoplay();
            }
            else {
                s.wrapper.transitionEnd(function () {
                    if (!s) return;
                    s.autoplayPaused = false;
                    if (!s.autoplaying) {
                        s.stopAutoplay();
                    }
                    else {
                        autoplay();
                    }
                });
            }
        };
        /*=========================
          Min/Max Translate
          ===========================*/
        s.minTranslate = function () {
            return (-s.snapGrid[0]);
        };
        s.maxTranslate = function () {
            return (-s.snapGrid[s.snapGrid.length - 1]);
        };
        /*=========================
          Slider/slides sizes
          ===========================*/
        s.updateAutoHeight = function () {
            var activeSlides = [];
            var newHeight = 0;
            var i;
        
            // Find slides currently in view
            if(s.params.slidesPerView !== 'auto' && s.params.slidesPerView > 1) {
                for (i = 0; i < Math.ceil(s.params.slidesPerView); i++) {
                    var index = s.activeIndex + i;
                    if(index > s.slides.length) break;
                    activeSlides.push(s.slides.eq(index)[0]);
                }
            } else {
                activeSlides.push(s.slides.eq(s.activeIndex)[0]);
            }
        
            // Find new height from heighest slide in view
            for (i = 0; i < activeSlides.length; i++) {
                if (typeof activeSlides[i] !== 'undefined') {
                    var height = activeSlides[i].offsetHeight;
                    newHeight = height > newHeight ? height : newHeight;
                }
            }
        
            // Update Height
            if (newHeight) s.wrapper.css('height', newHeight + 'px');
        };
        s.updateContainerSize = function () {
            var width, height;
            if (typeof s.params.width !== 'undefined') {
                width = s.params.width;
            }
            else {
                width = s.container[0].clientWidth;
            }
            if (typeof s.params.height !== 'undefined') {
                height = s.params.height;
            }
            else {
                height = s.container[0].clientHeight;
            }
            if (width === 0 && s.isHorizontal() || height === 0 && !s.isHorizontal()) {
                return;
            }
        
            //Subtract paddings
            width = width - parseInt(s.container.css('padding-left'), 10) - parseInt(s.container.css('padding-right'), 10);
            height = height - parseInt(s.container.css('padding-top'), 10) - parseInt(s.container.css('padding-bottom'), 10);
        
            // Store values
            s.width = width;
            s.height = height;
            s.size = s.isHorizontal() ? s.width : s.height;
        };
        
        s.updateSlidesSize = function () {
            s.slides = s.wrapper.children('.' + s.params.slideClass);
            s.snapGrid = [];
            s.slidesGrid = [];
            s.slidesSizesGrid = [];
        
            var spaceBetween = s.params.spaceBetween,
                slidePosition = -s.params.slidesOffsetBefore,
                i,
                prevSlideSize = 0,
                index = 0;
            if (typeof s.size === 'undefined') return;
            if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
                spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * s.size;
            }
        
            s.virtualSize = -spaceBetween;
            // reset margins
            if (s.rtl) s.slides.css({marginLeft: '', marginTop: ''});
            else s.slides.css({marginRight: '', marginBottom: ''});
        
            var slidesNumberEvenToRows;
            if (s.params.slidesPerColumn > 1) {
                if (Math.floor(s.slides.length / s.params.slidesPerColumn) === s.slides.length / s.params.slidesPerColumn) {
                    slidesNumberEvenToRows = s.slides.length;
                }
                else {
                    slidesNumberEvenToRows = Math.ceil(s.slides.length / s.params.slidesPerColumn) * s.params.slidesPerColumn;
                }
                if (s.params.slidesPerView !== 'auto' && s.params.slidesPerColumnFill === 'row') {
                    slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, s.params.slidesPerView * s.params.slidesPerColumn);
                }
            }
        
            // Calc slides
            var slideSize;
            var slidesPerColumn = s.params.slidesPerColumn;
            var slidesPerRow = slidesNumberEvenToRows / slidesPerColumn;
            var numFullColumns = slidesPerRow - (s.params.slidesPerColumn * slidesPerRow - s.slides.length);
            for (i = 0; i < s.slides.length; i++) {
                slideSize = 0;
                var slide = s.slides.eq(i);
                if (s.params.slidesPerColumn > 1) {
                    // Set slides order
                    var newSlideOrderIndex;
                    var column, row;
                    if (s.params.slidesPerColumnFill === 'column') {
                        column = Math.floor(i / slidesPerColumn);
                        row = i - column * slidesPerColumn;
                        if (column > numFullColumns || (column === numFullColumns && row === slidesPerColumn-1)) {
                            if (++row >= slidesPerColumn) {
                                row = 0;
                                column++;
                            }
                        }
                        newSlideOrderIndex = column + row * slidesNumberEvenToRows / slidesPerColumn;
                        slide
                            .css({
                                '-webkit-box-ordinal-group': newSlideOrderIndex,
                                '-moz-box-ordinal-group': newSlideOrderIndex,
                                '-ms-flex-order': newSlideOrderIndex,
                                '-webkit-order': newSlideOrderIndex,
                                'order': newSlideOrderIndex
                            });
                    }
                    else {
                        row = Math.floor(i / slidesPerRow);
                        column = i - row * slidesPerRow;
                    }
                    slide
                        .css(
                            'margin-' + (s.isHorizontal() ? 'top' : 'left'),
                            (row !== 0 && s.params.spaceBetween) && (s.params.spaceBetween + 'px')
                        )
                        .attr('data-swiper-column', column)
                        .attr('data-swiper-row', row);
        
                }
                if (slide.css('display') === 'none') continue;
                if (s.params.slidesPerView === 'auto') {
                    slideSize = s.isHorizontal() ? slide.outerWidth(true) : slide.outerHeight(true);
                    if (s.params.roundLengths) slideSize = round(slideSize);
                }
                else {
                    slideSize = (s.size - (s.params.slidesPerView - 1) * spaceBetween) / s.params.slidesPerView;
                    if (s.params.roundLengths) slideSize = round(slideSize);
        
                    if (s.isHorizontal()) {
                        s.slides[i].style.width = slideSize + 'px';
                    }
                    else {
                        s.slides[i].style.height = slideSize + 'px';
                    }
                }
                s.slides[i].swiperSlideSize = slideSize;
                s.slidesSizesGrid.push(slideSize);
        
        
                if (s.params.centeredSlides) {
                    slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;
                    if(prevSlideSize === 0 && i !== 0) slidePosition = slidePosition - s.size / 2 - spaceBetween;
                    if (i === 0) slidePosition = slidePosition - s.size / 2 - spaceBetween;
                    if (Math.abs(slidePosition) < 1 / 1000) slidePosition = 0;
                    if ((index) % s.params.slidesPerGroup === 0) s.snapGrid.push(slidePosition);
                    s.slidesGrid.push(slidePosition);
                }
                else {
                    if ((index) % s.params.slidesPerGroup === 0) s.snapGrid.push(slidePosition);
                    s.slidesGrid.push(slidePosition);
                    slidePosition = slidePosition + slideSize + spaceBetween;
                }
        
                s.virtualSize += slideSize + spaceBetween;
        
                prevSlideSize = slideSize;
        
                index ++;
            }
            s.virtualSize = Math.max(s.virtualSize, s.size) + s.params.slidesOffsetAfter;
            var newSlidesGrid;
        
            if (
                s.rtl && s.wrongRTL && (s.params.effect === 'slide' || s.params.effect === 'coverflow')) {
                s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
            }
            if (!s.support.flexbox || s.params.setWrapperSize) {
                if (s.isHorizontal()) s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
                else s.wrapper.css({height: s.virtualSize + s.params.spaceBetween + 'px'});
            }
        
            if (s.params.slidesPerColumn > 1) {
                s.virtualSize = (slideSize + s.params.spaceBetween) * slidesNumberEvenToRows;
                s.virtualSize = Math.ceil(s.virtualSize / s.params.slidesPerColumn) - s.params.spaceBetween;
                if (s.isHorizontal()) s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
                else s.wrapper.css({height: s.virtualSize + s.params.spaceBetween + 'px'});
                if (s.params.centeredSlides) {
                    newSlidesGrid = [];
                    for (i = 0; i < s.snapGrid.length; i++) {
                        if (s.snapGrid[i] < s.virtualSize + s.snapGrid[0]) newSlidesGrid.push(s.snapGrid[i]);
                    }
                    s.snapGrid = newSlidesGrid;
                }
            }
        
            // Remove last grid elements depending on width
            if (!s.params.centeredSlides) {
                newSlidesGrid = [];
                for (i = 0; i < s.snapGrid.length; i++) {
                    if (s.snapGrid[i] <= s.virtualSize - s.size) {
                        newSlidesGrid.push(s.snapGrid[i]);
                    }
                }
                s.snapGrid = newSlidesGrid;
                if (Math.floor(s.virtualSize - s.size) - Math.floor(s.snapGrid[s.snapGrid.length - 1]) > 1) {
                    s.snapGrid.push(s.virtualSize - s.size);
                }
            }
            if (s.snapGrid.length === 0) s.snapGrid = [0];
        
            if (s.params.spaceBetween !== 0) {
                if (s.isHorizontal()) {
                    if (s.rtl) s.slides.css({marginLeft: spaceBetween + 'px'});
                    else s.slides.css({marginRight: spaceBetween + 'px'});
                }
                else s.slides.css({marginBottom: spaceBetween + 'px'});
            }
            if (s.params.watchSlidesProgress) {
                s.updateSlidesOffset();
            }
        };
        s.updateSlidesOffset = function () {
            for (var i = 0; i < s.slides.length; i++) {
                s.slides[i].swiperSlideOffset = s.isHorizontal() ? s.slides[i].offsetLeft : s.slides[i].offsetTop;
            }
        };
        
        /*=========================
          Dynamic Slides Per View
          ===========================*/
        s.currentSlidesPerView = function () {
            var spv = 1, i, j;
            if (s.params.centeredSlides) {
                var size = s.slides[s.activeIndex].swiperSlideSize;
                var breakLoop;
                for (i = s.activeIndex + 1; i < s.slides.length; i++) {
                    if (s.slides[i] && !breakLoop) {
                        size += s.slides[i].swiperSlideSize;
                        spv ++;
                        if (size > s.size) breakLoop = true;
                    }
                }
                for (j = s.activeIndex - 1; j >= 0; j--) {
                    if (s.slides[j] && !breakLoop) {
                        size += s.slides[j].swiperSlideSize;
                        spv ++;
                        if (size > s.size) breakLoop = true;
                    }
                }
            }
            else {
                for (i = s.activeIndex + 1; i < s.slides.length; i++) {
                    if (s.slidesGrid[i] - s.slidesGrid[s.activeIndex] < s.size) {
                        spv++;
                    }
                }
            }
            return spv;
        };
        /*=========================
          Slider/slides progress
          ===========================*/
        s.updateSlidesProgress = function (translate) {
            if (typeof translate === 'undefined') {
                translate = s.translate || 0;
            }
            if (s.slides.length === 0) return;
            if (typeof s.slides[0].swiperSlideOffset === 'undefined') s.updateSlidesOffset();
        
            var offsetCenter = -translate;
            if (s.rtl) offsetCenter = translate;
        
            // Visible Slides
            s.slides.removeClass(s.params.slideVisibleClass);
            for (var i = 0; i < s.slides.length; i++) {
                var slide = s.slides[i];
                var slideProgress = (offsetCenter + (s.params.centeredSlides ? s.minTranslate() : 0) - slide.swiperSlideOffset) / (slide.swiperSlideSize + s.params.spaceBetween);
                if (s.params.watchSlidesVisibility) {
                    var slideBefore = -(offsetCenter - slide.swiperSlideOffset);
                    var slideAfter = slideBefore + s.slidesSizesGrid[i];
                    var isVisible =
                        (slideBefore >= 0 && slideBefore < s.size) ||
                        (slideAfter > 0 && slideAfter <= s.size) ||
                        (slideBefore <= 0 && slideAfter >= s.size);
                    if (isVisible) {
                        s.slides.eq(i).addClass(s.params.slideVisibleClass);
                    }
                }
                slide.progress = s.rtl ? -slideProgress : slideProgress;
            }
        };
        s.updateProgress = function (translate) {
            if (typeof translate === 'undefined') {
                translate = s.translate || 0;
            }
            var translatesDiff = s.maxTranslate() - s.minTranslate();
            var wasBeginning = s.isBeginning;
            var wasEnd = s.isEnd;
            if (translatesDiff === 0) {
                s.progress = 0;
                s.isBeginning = s.isEnd = true;
            }
            else {
                s.progress = (translate - s.minTranslate()) / (translatesDiff);
                s.isBeginning = s.progress <= 0;
                s.isEnd = s.progress >= 1;
            }
            if (s.isBeginning && !wasBeginning) s.emit('onReachBeginning', s);
            if (s.isEnd && !wasEnd) s.emit('onReachEnd', s);
        
            if (s.params.watchSlidesProgress) s.updateSlidesProgress(translate);
            s.emit('onProgress', s, s.progress);
        };
        s.updateActiveIndex = function () {
            var translate = s.rtl ? s.translate : -s.translate;
            var newActiveIndex, i, snapIndex;
            for (i = 0; i < s.slidesGrid.length; i ++) {
                if (typeof s.slidesGrid[i + 1] !== 'undefined') {
                    if (translate >= s.slidesGrid[i] && translate < s.slidesGrid[i + 1] - (s.slidesGrid[i + 1] - s.slidesGrid[i]) / 2) {
                        newActiveIndex = i;
                    }
                    else if (translate >= s.slidesGrid[i] && translate < s.slidesGrid[i + 1]) {
                        newActiveIndex = i + 1;
                    }
                }
                else {
                    if (translate >= s.slidesGrid[i]) {
                        newActiveIndex = i;
                    }
                }
            }
            // Normalize slideIndex
            if(s.params.normalizeSlideIndex){
                if (newActiveIndex < 0 || typeof newActiveIndex === 'undefined') newActiveIndex = 0;
            }
            // for (i = 0; i < s.slidesGrid.length; i++) {
                // if (- translate >= s.slidesGrid[i]) {
                    // newActiveIndex = i;
                // }
            // }
            snapIndex = Math.floor(newActiveIndex / s.params.slidesPerGroup);
            if (snapIndex >= s.snapGrid.length) snapIndex = s.snapGrid.length - 1;
        
            if (newActiveIndex === s.activeIndex) {
                return;
            }
            s.snapIndex = snapIndex;
            s.previousIndex = s.activeIndex;
            s.activeIndex = newActiveIndex;
            s.updateClasses();
            s.updateRealIndex();
        };
        s.updateRealIndex = function(){
            s.realIndex = parseInt(s.slides.eq(s.activeIndex).attr('data-swiper-slide-index') || s.activeIndex, 10);
        };
        
        /*=========================
          Classes
          ===========================*/
        s.updateClasses = function () {
            s.slides.removeClass(s.params.slideActiveClass + ' ' + s.params.slideNextClass + ' ' + s.params.slidePrevClass + ' ' + s.params.slideDuplicateActiveClass + ' ' + s.params.slideDuplicateNextClass + ' ' + s.params.slideDuplicatePrevClass);
            var activeSlide = s.slides.eq(s.activeIndex);
            // Active classes
            activeSlide.addClass(s.params.slideActiveClass);
            if (params.loop) {
                // Duplicate to all looped slides
                if (activeSlide.hasClass(s.params.slideDuplicateClass)) {
                    s.wrapper.children('.' + s.params.slideClass + ':not(.' + s.params.slideDuplicateClass + ')[data-swiper-slide-index="' + s.realIndex + '"]').addClass(s.params.slideDuplicateActiveClass);
                }
                else {
                    s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass + '[data-swiper-slide-index="' + s.realIndex + '"]').addClass(s.params.slideDuplicateActiveClass);
                }
            }
            // Next Slide
            var nextSlide = activeSlide.next('.' + s.params.slideClass).addClass(s.params.slideNextClass);
            if (s.params.loop && nextSlide.length === 0) {
                nextSlide = s.slides.eq(0);
                nextSlide.addClass(s.params.slideNextClass);
            }
            // Prev Slide
            var prevSlide = activeSlide.prev('.' + s.params.slideClass).addClass(s.params.slidePrevClass);
            if (s.params.loop && prevSlide.length === 0) {
                prevSlide = s.slides.eq(-1);
                prevSlide.addClass(s.params.slidePrevClass);
            }
            if (params.loop) {
                // Duplicate to all looped slides
                if (nextSlide.hasClass(s.params.slideDuplicateClass)) {
                    s.wrapper.children('.' + s.params.slideClass + ':not(.' + s.params.slideDuplicateClass + ')[data-swiper-slide-index="' + nextSlide.attr('data-swiper-slide-index') + '"]').addClass(s.params.slideDuplicateNextClass);
                }
                else {
                    s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass + '[data-swiper-slide-index="' + nextSlide.attr('data-swiper-slide-index') + '"]').addClass(s.params.slideDuplicateNextClass);
                }
                if (prevSlide.hasClass(s.params.slideDuplicateClass)) {
                    s.wrapper.children('.' + s.params.slideClass + ':not(.' + s.params.slideDuplicateClass + ')[data-swiper-slide-index="' + prevSlide.attr('data-swiper-slide-index') + '"]').addClass(s.params.slideDuplicatePrevClass);
                }
                else {
                    s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass + '[data-swiper-slide-index="' + prevSlide.attr('data-swiper-slide-index') + '"]').addClass(s.params.slideDuplicatePrevClass);
                }
            }
        
            // Pagination
            if (s.paginationContainer && s.paginationContainer.length > 0) {
                // Current/Total
                var current,
                    total = s.params.loop ? Math.ceil((s.slides.length - s.loopedSlides * 2) / s.params.slidesPerGroup) : s.snapGrid.length;
                if (s.params.loop) {
                    current = Math.ceil((s.activeIndex - s.loopedSlides)/s.params.slidesPerGroup);
                    if (current > s.slides.length - 1 - s.loopedSlides * 2) {
                        current = current - (s.slides.length - s.loopedSlides * 2);
                    }
                    if (current > total - 1) current = current - total;
                    if (current < 0 && s.params.paginationType !== 'bullets') current = total + current;
                }
                else {
                    if (typeof s.snapIndex !== 'undefined') {
                        current = s.snapIndex;
                    }
                    else {
                        current = s.activeIndex || 0;
                    }
                }
                // Types
                if (s.params.paginationType === 'bullets' && s.bullets && s.bullets.length > 0) {
                    s.bullets.removeClass(s.params.bulletActiveClass);
                    if (s.paginationContainer.length > 1) {
                        s.bullets.each(function () {
                            if ($(this).index() === current) $(this).addClass(s.params.bulletActiveClass);
                        });
                    }
                    else {
                        s.bullets.eq(current).addClass(s.params.bulletActiveClass);
                    }
                }
                if (s.params.paginationType === 'fraction') {
                    s.paginationContainer.find('.' + s.params.paginationCurrentClass).text(current + 1);
                    s.paginationContainer.find('.' + s.params.paginationTotalClass).text(total);
                }
                if (s.params.paginationType === 'progress') {
                    var scale = (current + 1) / total,
                        scaleX = scale,
                        scaleY = 1;
                    if (!s.isHorizontal()) {
                        scaleY = scale;
                        scaleX = 1;
                    }
                    s.paginationContainer.find('.' + s.params.paginationProgressbarClass).transform('translate3d(0,0,0) scaleX(' + scaleX + ') scaleY(' + scaleY + ')').transition(s.params.speed);
                }
                if (s.params.paginationType === 'custom' && s.params.paginationCustomRender) {
                    s.paginationContainer.html(s.params.paginationCustomRender(s, current + 1, total));
                    s.emit('onPaginationRendered', s, s.paginationContainer[0]);
                }
            }
        
            // Next/active buttons
            if (!s.params.loop) {
                if (s.params.prevButton && s.prevButton && s.prevButton.length > 0) {
                    if (s.isBeginning) {
                        s.prevButton.addClass(s.params.buttonDisabledClass);
                        if (s.params.a11y && s.a11y) s.a11y.disable(s.prevButton);
                    }
                    else {
                        s.prevButton.removeClass(s.params.buttonDisabledClass);
                        if (s.params.a11y && s.a11y) s.a11y.enable(s.prevButton);
                    }
                }
                if (s.params.nextButton && s.nextButton && s.nextButton.length > 0) {
                    if (s.isEnd) {
                        s.nextButton.addClass(s.params.buttonDisabledClass);
                        if (s.params.a11y && s.a11y) s.a11y.disable(s.nextButton);
                    }
                    else {
                        s.nextButton.removeClass(s.params.buttonDisabledClass);
                        if (s.params.a11y && s.a11y) s.a11y.enable(s.nextButton);
                    }
                }
            }
        };
        
        /*=========================
          Pagination
          ===========================*/
        s.updatePagination = function () {
            if (!s.params.pagination) return;
            if (s.paginationContainer && s.paginationContainer.length > 0) {
                var paginationHTML = '';
                if (s.params.paginationType === 'bullets') {
                    var numberOfBullets = s.params.loop ? Math.ceil((s.slides.length - s.loopedSlides * 2) / s.params.slidesPerGroup) : s.snapGrid.length;
                    for (var i = 0; i < numberOfBullets; i++) {
                        if (s.params.paginationBulletRender) {
                            paginationHTML += s.params.paginationBulletRender(s, i, s.params.bulletClass);
                        }
                        else {
                            paginationHTML += '<' + s.params.paginationElement+' class="' + s.params.bulletClass + '"></' + s.params.paginationElement + '>';
                        }
                    }
                    s.paginationContainer.html(paginationHTML);
                    s.bullets = s.paginationContainer.find('.' + s.params.bulletClass);
                    if (s.params.paginationClickable && s.params.a11y && s.a11y) {
                        s.a11y.initPagination();
                    }
                }
                if (s.params.paginationType === 'fraction') {
                    if (s.params.paginationFractionRender) {
                        paginationHTML = s.params.paginationFractionRender(s, s.params.paginationCurrentClass, s.params.paginationTotalClass);
                    }
                    else {
                        paginationHTML =
                            '<span class="' + s.params.paginationCurrentClass + '"></span>' +
                            ' / ' +
                            '<span class="' + s.params.paginationTotalClass+'"></span>';
                    }
                    s.paginationContainer.html(paginationHTML);
                }
                if (s.params.paginationType === 'progress') {
                    if (s.params.paginationProgressRender) {
                        paginationHTML = s.params.paginationProgressRender(s, s.params.paginationProgressbarClass);
                    }
                    else {
                        paginationHTML = '<span class="' + s.params.paginationProgressbarClass + '"></span>';
                    }
                    s.paginationContainer.html(paginationHTML);
                }
                if (s.params.paginationType !== 'custom') {
                    s.emit('onPaginationRendered', s, s.paginationContainer[0]);
                }
            }
        };
        /*=========================
          Common update method
          ===========================*/
        s.update = function (updateTranslate) {
            if (!s) return;
            s.updateContainerSize();
            s.updateSlidesSize();
            s.updateProgress();
            s.updatePagination();
            s.updateClasses();
            if (s.params.scrollbar && s.scrollbar) {
                s.scrollbar.set();
            }
            var newTranslate;
            function forceSetTranslate() {
                var translate = s.rtl ? -s.translate : s.translate;
                newTranslate = Math.min(Math.max(s.translate, s.maxTranslate()), s.minTranslate());
                s.setWrapperTranslate(newTranslate);
                s.updateActiveIndex();
                s.updateClasses();
            }
            if (updateTranslate) {
                var translated;
                if (s.controller && s.controller.spline) {
                    s.controller.spline = undefined;
                }
                if (s.params.freeMode) {
                    forceSetTranslate();
                    if (s.params.autoHeight) {
                        s.updateAutoHeight();
                    }
                }
                else {
                    if ((s.params.slidesPerView === 'auto' || s.params.slidesPerView > 1) && s.isEnd && !s.params.centeredSlides) {
                        translated = s.slideTo(s.slides.length - 1, 0, false, true);
                    }
                    else {
                        translated = s.slideTo(s.activeIndex, 0, false, true);
                    }
                    if (!translated) {
                        forceSetTranslate();
                    }
                }
            }
            else if (s.params.autoHeight) {
                s.updateAutoHeight();
            }
        };
        
        /*=========================
          Resize Handler
          ===========================*/
        s.onResize = function (forceUpdatePagination) {
            if (s.params.onBeforeResize) s.params.onBeforeResize(s);
            //Breakpoints
            if (s.params.breakpoints) {
                s.setBreakpoint();
            }
        
            // Disable locks on resize
            var allowSwipeToPrev = s.params.allowSwipeToPrev;
            var allowSwipeToNext = s.params.allowSwipeToNext;
            s.params.allowSwipeToPrev = s.params.allowSwipeToNext = true;
        
            s.updateContainerSize();
            s.updateSlidesSize();
            if (s.params.slidesPerView === 'auto' || s.params.freeMode || forceUpdatePagination) s.updatePagination();
            if (s.params.scrollbar && s.scrollbar) {
                s.scrollbar.set();
            }
            if (s.controller && s.controller.spline) {
                s.controller.spline = undefined;
            }
            var slideChangedBySlideTo = false;
            if (s.params.freeMode) {
                var newTranslate = Math.min(Math.max(s.translate, s.maxTranslate()), s.minTranslate());
                s.setWrapperTranslate(newTranslate);
                s.updateActiveIndex();
                s.updateClasses();
        
                if (s.params.autoHeight) {
                    s.updateAutoHeight();
                }
            }
            else {
                s.updateClasses();
                if ((s.params.slidesPerView === 'auto' || s.params.slidesPerView > 1) && s.isEnd && !s.params.centeredSlides) {
                    slideChangedBySlideTo = s.slideTo(s.slides.length - 1, 0, false, true);
                }
                else {
                    slideChangedBySlideTo = s.slideTo(s.activeIndex, 0, false, true);
                }
            }
            if (s.params.lazyLoading && !slideChangedBySlideTo && s.lazy) {
                s.lazy.load();
            }
            // Return locks after resize
            s.params.allowSwipeToPrev = allowSwipeToPrev;
            s.params.allowSwipeToNext = allowSwipeToNext;
            if (s.params.onAfterResize) s.params.onAfterResize(s);
        };
        
        /*=========================
          Events
          ===========================*/
        
        //Define Touch Events
        s.touchEventsDesktop = {start: 'mousedown', move: 'mousemove', end: 'mouseup'};
        if (window.navigator.pointerEnabled) s.touchEventsDesktop = {start: 'pointerdown', move: 'pointermove', end: 'pointerup'};
        else if (window.navigator.msPointerEnabled) s.touchEventsDesktop = {start: 'MSPointerDown', move: 'MSPointerMove', end: 'MSPointerUp'};
        s.touchEvents = {
            start : s.support.touch || !s.params.simulateTouch  ? 'touchstart' : s.touchEventsDesktop.start,
            move : s.support.touch || !s.params.simulateTouch ? 'touchmove' : s.touchEventsDesktop.move,
            end : s.support.touch || !s.params.simulateTouch ? 'touchend' : s.touchEventsDesktop.end
        };
        
        
        // WP8 Touch Events Fix
        if (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) {
            (s.params.touchEventsTarget === 'container' ? s.container : s.wrapper).addClass('swiper-wp8-' + s.params.direction);
        }
        
        // Attach/detach events
        s.initEvents = function (detach) {
            var actionDom = detach ? 'off' : 'on';
            var action = detach ? 'removeEventListener' : 'addEventListener';
            var touchEventsTarget = s.params.touchEventsTarget === 'container' ? s.container[0] : s.wrapper[0];
            var target = s.support.touch ? touchEventsTarget : document;
        
            var moveCapture = s.params.nested ? true : false;
        
            //Touch Events
            if (s.browser.ie) {
                touchEventsTarget[action](s.touchEvents.start, s.onTouchStart, false);
                target[action](s.touchEvents.move, s.onTouchMove, moveCapture);
                target[action](s.touchEvents.end, s.onTouchEnd, false);
            }
            else {
                if (s.support.touch) {
                    var passiveListener = s.touchEvents.start === 'touchstart' && s.support.passiveListener && s.params.passiveListeners ? {passive: true, capture: false} : false;
                    touchEventsTarget[action](s.touchEvents.start, s.onTouchStart, passiveListener);
                    touchEventsTarget[action](s.touchEvents.move, s.onTouchMove, moveCapture);
                    touchEventsTarget[action](s.touchEvents.end, s.onTouchEnd, passiveListener);
                }
                if ((params.simulateTouch && !s.device.ios && !s.device.android) || (params.simulateTouch && !s.support.touch && s.device.ios)) {
                    touchEventsTarget[action]('mousedown', s.onTouchStart, false);
                    document[action]('mousemove', s.onTouchMove, moveCapture);
                    document[action]('mouseup', s.onTouchEnd, false);
                }
            }
            window[action]('resize', s.onResize);
        
            // Next, Prev, Index
            if (s.params.nextButton && s.nextButton && s.nextButton.length > 0) {
                s.nextButton[actionDom]('click', s.onClickNext);
                if (s.params.a11y && s.a11y) s.nextButton[actionDom]('keydown', s.a11y.onEnterKey);
            }
            if (s.params.prevButton && s.prevButton && s.prevButton.length > 0) {
                s.prevButton[actionDom]('click', s.onClickPrev);
                if (s.params.a11y && s.a11y) s.prevButton[actionDom]('keydown', s.a11y.onEnterKey);
            }
            if (s.params.pagination && s.params.paginationClickable) {
                s.paginationContainer[actionDom]('click', '.' + s.params.bulletClass, s.onClickIndex);
                if (s.params.a11y && s.a11y) s.paginationContainer[actionDom]('keydown', '.' + s.params.bulletClass, s.a11y.onEnterKey);
            }
        
            // Prevent Links Clicks
            if (s.params.preventClicks || s.params.preventClicksPropagation) touchEventsTarget[action]('click', s.preventClicks, true);
        };
        s.attachEvents = function () {
            s.initEvents();
        };
        s.detachEvents = function () {
            s.initEvents(true);
        };
        
        /*=========================
          Handle Clicks
          ===========================*/
        // Prevent Clicks
        s.allowClick = true;
        s.preventClicks = function (e) {
            if (!s.allowClick) {
                if (s.params.preventClicks) e.preventDefault();
                if (s.params.preventClicksPropagation && s.animating) {
                    e.stopPropagation();
                    e.stopImmediatePropagation();
                }
            }
        };
        // Clicks
        s.onClickNext = function (e) {
            e.preventDefault();
            if (s.isEnd && !s.params.loop) return;
            s.slideNext();
        };
        s.onClickPrev = function (e) {
            e.preventDefault();
            if (s.isBeginning && !s.params.loop) return;
            s.slidePrev();
        };
        s.onClickIndex = function (e) {
            e.preventDefault();
            var index = $(this).index() * s.params.slidesPerGroup;
            if (s.params.loop) index = index + s.loopedSlides;
            s.slideTo(index);
        };
        
        /*=========================
          Handle Touches
          ===========================*/
        function findElementInEvent(e, selector) {
            var el = $(e.target);
            if (!el.is(selector)) {
                if (typeof selector === 'string') {
                    el = el.parents(selector);
                }
                else if (selector.nodeType) {
                    var found;
                    el.parents().each(function (index, _el) {
                        if (_el === selector) found = selector;
                    });
                    if (!found) return undefined;
                    else return selector;
                }
            }
            if (el.length === 0) {
                return undefined;
            }
            return el[0];
        }
        s.updateClickedSlide = function (e) {
            var slide = findElementInEvent(e, '.' + s.params.slideClass);
            var slideFound = false;
            if (slide) {
                for (var i = 0; i < s.slides.length; i++) {
                    if (s.slides[i] === slide) slideFound = true;
                }
            }
        
            if (slide && slideFound) {
                s.clickedSlide = slide;
                s.clickedIndex = $(slide).index();
            }
            else {
                s.clickedSlide = undefined;
                s.clickedIndex = undefined;
                return;
            }
            if (s.params.slideToClickedSlide && s.clickedIndex !== undefined && s.clickedIndex !== s.activeIndex) {
                var slideToIndex = s.clickedIndex,
                    realIndex,
                    duplicatedSlides,
                    slidesPerView = s.params.slidesPerView === 'auto' ? s.currentSlidesPerView() : s.params.slidesPerView;
                if (s.params.loop) {
                    if (s.animating) return;
                    realIndex = parseInt($(s.clickedSlide).attr('data-swiper-slide-index'), 10);
                    if (s.params.centeredSlides) {
                        if ((slideToIndex < s.loopedSlides - slidesPerView/2) || (slideToIndex > s.slides.length - s.loopedSlides + slidesPerView/2)) {
                            s.fixLoop();
                            slideToIndex = s.wrapper.children('.' + s.params.slideClass + '[data-swiper-slide-index="' + realIndex + '"]:not(.' + s.params.slideDuplicateClass + ')').eq(0).index();
                            setTimeout(function () {
                                s.slideTo(slideToIndex);
                            }, 0);
                        }
                        else {
                            s.slideTo(slideToIndex);
                        }
                    }
                    else {
                        if (slideToIndex > s.slides.length - slidesPerView) {
                            s.fixLoop();
                            slideToIndex = s.wrapper.children('.' + s.params.slideClass + '[data-swiper-slide-index="' + realIndex + '"]:not(.' + s.params.slideDuplicateClass + ')').eq(0).index();
                            setTimeout(function () {
                                s.slideTo(slideToIndex);
                            }, 0);
                        }
                        else {
                            s.slideTo(slideToIndex);
                        }
                    }
                }
                else {
                    s.slideTo(slideToIndex);
                }
            }
        };
        
        var isTouched,
            isMoved,
            allowTouchCallbacks,
            touchStartTime,
            isScrolling,
            currentTranslate,
            startTranslate,
            allowThresholdMove,
            // Form elements to match
            formElements = 'input, select, textarea, button, video',
            // Last click time
            lastClickTime = Date.now(), clickTimeout,
            //Velocities
            velocities = [],
            allowMomentumBounce;
        
        // Animating Flag
        s.animating = false;
        
        // Touches information
        s.touches = {
            startX: 0,
            startY: 0,
            currentX: 0,
            currentY: 0,
            diff: 0
        };
        
        // Touch handlers
        var isTouchEvent, startMoving;
        s.onTouchStart = function (e) {
            if (e.originalEvent) e = e.originalEvent;
            isTouchEvent = e.type === 'touchstart';
            if (!isTouchEvent && 'which' in e && e.which === 3) return;
            if (s.params.noSwiping && findElementInEvent(e, '.' + s.params.noSwipingClass)) {
                s.allowClick = true;
                return;
            }
            if (s.params.swipeHandler) {
                if (!findElementInEvent(e, s.params.swipeHandler)) return;
            }
        
            var startX = s.touches.currentX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
            var startY = s.touches.currentY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
        
            // Do NOT start if iOS edge swipe is detected. Otherwise iOS app (UIWebView) cannot swipe-to-go-back anymore
            if(s.device.ios && s.params.iOSEdgeSwipeDetection && startX <= s.params.iOSEdgeSwipeThreshold) {
                return;
            }
        
            isTouched = true;
            isMoved = false;
            allowTouchCallbacks = true;
            isScrolling = undefined;
            startMoving = undefined;
            s.touches.startX = startX;
            s.touches.startY = startY;
            touchStartTime = Date.now();
            s.allowClick = true;
            s.updateContainerSize();
            s.swipeDirection = undefined;
            if (s.params.threshold > 0) allowThresholdMove = false;
            if (e.type !== 'touchstart') {
                var preventDefault = true;
                if ($(e.target).is(formElements)) preventDefault = false;
                if (document.activeElement && $(document.activeElement).is(formElements)) {
                    document.activeElement.blur();
                }
                if (preventDefault) {
                    e.preventDefault();
                }
            }
            s.emit('onTouchStart', s, e);
        };
        
        s.onTouchMove = function (e) {
            if (e.originalEvent) e = e.originalEvent;
            if (isTouchEvent && e.type === 'mousemove') return;
            if (e.preventedByNestedSwiper) {
                s.touches.startX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
                s.touches.startY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
                return;
            }
            if (s.params.onlyExternal) {
                // isMoved = true;
                s.allowClick = false;
                if (isTouched) {
                    s.touches.startX = s.touches.currentX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
                    s.touches.startY = s.touches.currentY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
                    touchStartTime = Date.now();
                }
                return;
            }
            if (isTouchEvent && s.params.touchReleaseOnEdges && !s.params.loop) {
                if (!s.isHorizontal()) {
                    // Vertical
                    if (
                        (s.touches.currentY < s.touches.startY && s.translate <= s.maxTranslate()) ||
                        (s.touches.currentY > s.touches.startY && s.translate >= s.minTranslate())
                        ) {
                        return;
                    }
                }
                else {
                    if (
                        (s.touches.currentX < s.touches.startX && s.translate <= s.maxTranslate()) ||
                        (s.touches.currentX > s.touches.startX && s.translate >= s.minTranslate())
                        ) {
                        return;
                    }
                }
            }
            if (isTouchEvent && document.activeElement) {
                if (e.target === document.activeElement && $(e.target).is(formElements)) {
                    isMoved = true;
                    s.allowClick = false;
                    return;
                }
            }
            if (allowTouchCallbacks) {
                s.emit('onTouchMove', s, e);
            }
            if (e.targetTouches && e.targetTouches.length > 1) return;
        
            s.touches.currentX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
            s.touches.currentY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
        
            if (typeof isScrolling === 'undefined') {
                var touchAngle;
                if (s.isHorizontal() && s.touches.currentY === s.touches.startY || !s.isHorizontal() && s.touches.currentX === s.touches.startX) {
                    isScrolling = false;
                }
                else {
                    touchAngle = Math.atan2(Math.abs(s.touches.currentY - s.touches.startY), Math.abs(s.touches.currentX - s.touches.startX)) * 180 / Math.PI;
                    isScrolling = s.isHorizontal() ? touchAngle > s.params.touchAngle : (90 - touchAngle > s.params.touchAngle);
                }
            }
            if (isScrolling) {
                s.emit('onTouchMoveOpposite', s, e);
            }
            if (typeof startMoving === 'undefined') {
                if (s.touches.currentX !== s.touches.startX || s.touches.currentY !== s.touches.startY) {
                    startMoving = true;
                }
            }
            if (!isTouched) return;
            if (isScrolling)  {
                isTouched = false;
                return;
            }
            if (!startMoving) {
                return;
            }
            s.allowClick = false;
            s.emit('onSliderMove', s, e);
            e.preventDefault();
            if (s.params.touchMoveStopPropagation && !s.params.nested) {
                e.stopPropagation();
            }
        
            if (!isMoved) {
                if (params.loop) {
                    s.fixLoop();
                }
                startTranslate = s.getWrapperTranslate();
                s.setWrapperTransition(0);
                if (s.animating) {
                    s.wrapper.trigger('webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd');
                }
                if (s.params.autoplay && s.autoplaying) {
                    if (s.params.autoplayDisableOnInteraction) {
                        s.stopAutoplay();
                    }
                    else {
                        s.pauseAutoplay();
                    }
                }
                allowMomentumBounce = false;
                //Grab Cursor
                if (s.params.grabCursor && (s.params.allowSwipeToNext === true || s.params.allowSwipeToPrev === true)) {
                    s.setGrabCursor(true);
                }
            }
            isMoved = true;
        
            var diff = s.touches.diff = s.isHorizontal() ? s.touches.currentX - s.touches.startX : s.touches.currentY - s.touches.startY;
        
            diff = diff * s.params.touchRatio;
            if (s.rtl) diff = -diff;
        
            s.swipeDirection = diff > 0 ? 'prev' : 'next';
            currentTranslate = diff + startTranslate;
        
            var disableParentSwiper = true;
            if ((diff > 0 && currentTranslate > s.minTranslate())) {
                disableParentSwiper = false;
                if (s.params.resistance) currentTranslate = s.minTranslate() - 1 + Math.pow(-s.minTranslate() + startTranslate + diff, s.params.resistanceRatio);
            }
            else if (diff < 0 && currentTranslate < s.maxTranslate()) {
                disableParentSwiper = false;
                if (s.params.resistance) currentTranslate = s.maxTranslate() + 1 - Math.pow(s.maxTranslate() - startTranslate - diff, s.params.resistanceRatio);
            }
        
            if (disableParentSwiper) {
                e.preventedByNestedSwiper = true;
            }
        
            // Directions locks
            if (!s.params.allowSwipeToNext && s.swipeDirection === 'next' && currentTranslate < startTranslate) {
                currentTranslate = startTranslate;
            }
            if (!s.params.allowSwipeToPrev && s.swipeDirection === 'prev' && currentTranslate > startTranslate) {
                currentTranslate = startTranslate;
            }
        
        
            // Threshold
            if (s.params.threshold > 0) {
                if (Math.abs(diff) > s.params.threshold || allowThresholdMove) {
                    if (!allowThresholdMove) {
                        allowThresholdMove = true;
                        s.touches.startX = s.touches.currentX;
                        s.touches.startY = s.touches.currentY;
                        currentTranslate = startTranslate;
                        s.touches.diff = s.isHorizontal() ? s.touches.currentX - s.touches.startX : s.touches.currentY - s.touches.startY;
                        return;
                    }
                }
                else {
                    currentTranslate = startTranslate;
                    return;
                }
            }
        
            if (!s.params.followFinger) return;
        
            // Update active index in free mode
            if (s.params.freeMode || s.params.watchSlidesProgress) {
                s.updateActiveIndex();
            }
            if (s.params.freeMode) {
                //Velocity
                if (velocities.length === 0) {
                    velocities.push({
                        position: s.touches[s.isHorizontal() ? 'startX' : 'startY'],
                        time: touchStartTime
                    });
                }
                velocities.push({
                    position: s.touches[s.isHorizontal() ? 'currentX' : 'currentY'],
                    time: (new window.Date()).getTime()
                });
            }
            // Update progress
            s.updateProgress(currentTranslate);
            // Update translate
            s.setWrapperTranslate(currentTranslate);
        };
        s.onTouchEnd = function (e) {
            if (e.originalEvent) e = e.originalEvent;
            if (allowTouchCallbacks) {
                s.emit('onTouchEnd', s, e);
            }
            allowTouchCallbacks = false;
            if (!isTouched) return;
            //Return Grab Cursor
            if (s.params.grabCursor && isMoved && isTouched  && (s.params.allowSwipeToNext === true || s.params.allowSwipeToPrev === true)) {
                s.setGrabCursor(false);
            }
        
            // Time diff
            var touchEndTime = Date.now();
            var timeDiff = touchEndTime - touchStartTime;
        
            // Tap, doubleTap, Click
            if (s.allowClick) {
                s.updateClickedSlide(e);
                s.emit('onTap', s, e);
                if (timeDiff < 300 && (touchEndTime - lastClickTime) > 300) {
                    if (clickTimeout) clearTimeout(clickTimeout);
                    clickTimeout = setTimeout(function () {
                        if (!s) return;
                        if (s.params.paginationHide && s.paginationContainer.length > 0 && !$(e.target).hasClass(s.params.bulletClass)) {
                            s.paginationContainer.toggleClass(s.params.paginationHiddenClass);
                        }
                        s.emit('onClick', s, e);
                    }, 300);
        
                }
                if (timeDiff < 300 && (touchEndTime - lastClickTime) < 300) {
                    if (clickTimeout) clearTimeout(clickTimeout);
                    s.emit('onDoubleTap', s, e);
                }
            }
        
            lastClickTime = Date.now();
            setTimeout(function () {
                if (s) s.allowClick = true;
            }, 0);
        
            if (!isTouched || !isMoved || !s.swipeDirection || s.touches.diff === 0 || currentTranslate === startTranslate) {
                isTouched = isMoved = false;
                return;
            }
            isTouched = isMoved = false;
        
            var currentPos;
            if (s.params.followFinger) {
                currentPos = s.rtl ? s.translate : -s.translate;
            }
            else {
                currentPos = -currentTranslate;
            }
            if (s.params.freeMode) {
                if (currentPos < -s.minTranslate()) {
                    s.slideTo(s.activeIndex);
                    return;
                }
                else if (currentPos > -s.maxTranslate()) {
                    if (s.slides.length < s.snapGrid.length) {
                        s.slideTo(s.snapGrid.length - 1);
                    }
                    else {
                        s.slideTo(s.slides.length - 1);
                    }
                    return;
                }
        
                if (s.params.freeModeMomentum) {
                    if (velocities.length > 1) {
                        var lastMoveEvent = velocities.pop(), velocityEvent = velocities.pop();
        
                        var distance = lastMoveEvent.position - velocityEvent.position;
                        var time = lastMoveEvent.time - velocityEvent.time;
                        s.velocity = distance / time;
                        s.velocity = s.velocity / 2;
                        if (Math.abs(s.velocity) < s.params.freeModeMinimumVelocity) {
                            s.velocity = 0;
                        }
                        // this implies that the user stopped moving a finger then released.
                        // There would be no events with distance zero, so the last event is stale.
                        if (time > 150 || (new window.Date().getTime() - lastMoveEvent.time) > 300) {
                            s.velocity = 0;
                        }
                    } else {
                        s.velocity = 0;
                    }
                    s.velocity = s.velocity * s.params.freeModeMomentumVelocityRatio;
        
                    velocities.length = 0;
                    var momentumDuration = 1000 * s.params.freeModeMomentumRatio;
                    var momentumDistance = s.velocity * momentumDuration;
        
                    var newPosition = s.translate + momentumDistance;
                    if (s.rtl) newPosition = - newPosition;
                    var doBounce = false;
                    var afterBouncePosition;
                    var bounceAmount = Math.abs(s.velocity) * 20 * s.params.freeModeMomentumBounceRatio;
                    if (newPosition < s.maxTranslate()) {
                        if (s.params.freeModeMomentumBounce) {
                            if (newPosition + s.maxTranslate() < -bounceAmount) {
                                newPosition = s.maxTranslate() - bounceAmount;
                            }
                            afterBouncePosition = s.maxTranslate();
                            doBounce = true;
                            allowMomentumBounce = true;
                        }
                        else {
                            newPosition = s.maxTranslate();
                        }
                    }
                    else if (newPosition > s.minTranslate()) {
                        if (s.params.freeModeMomentumBounce) {
                            if (newPosition - s.minTranslate() > bounceAmount) {
                                newPosition = s.minTranslate() + bounceAmount;
                            }
                            afterBouncePosition = s.minTranslate();
                            doBounce = true;
                            allowMomentumBounce = true;
                        }
                        else {
                            newPosition = s.minTranslate();
                        }
                    }
                    else if (s.params.freeModeSticky) {
                        var j = 0,
                            nextSlide;
                        for (j = 0; j < s.snapGrid.length; j += 1) {
                            if (s.snapGrid[j] > -newPosition) {
                                nextSlide = j;
                                break;
                            }
        
                        }
                        if (Math.abs(s.snapGrid[nextSlide] - newPosition) < Math.abs(s.snapGrid[nextSlide - 1] - newPosition) || s.swipeDirection === 'next') {
                            newPosition = s.snapGrid[nextSlide];
                        } else {
                            newPosition = s.snapGrid[nextSlide - 1];
                        }
                        if (!s.rtl) newPosition = - newPosition;
                    }
                    //Fix duration
                    if (s.velocity !== 0) {
                        if (s.rtl) {
                            momentumDuration = Math.abs((-newPosition - s.translate) / s.velocity);
                        }
                        else {
                            momentumDuration = Math.abs((newPosition - s.translate) / s.velocity);
                        }
                    }
                    else if (s.params.freeModeSticky) {
                        s.slideReset();
                        return;
                    }
        
                    if (s.params.freeModeMomentumBounce && doBounce) {
                        s.updateProgress(afterBouncePosition);
                        s.setWrapperTransition(momentumDuration);
                        s.setWrapperTranslate(newPosition);
                        s.onTransitionStart();
                        s.animating = true;
                        s.wrapper.transitionEnd(function () {
                            if (!s || !allowMomentumBounce) return;
                            s.emit('onMomentumBounce', s);
        
                            s.setWrapperTransition(s.params.speed);
                            s.setWrapperTranslate(afterBouncePosition);
                            s.wrapper.transitionEnd(function () {
                                if (!s) return;
                                s.onTransitionEnd();
                            });
                        });
                    } else if (s.velocity) {
                        s.updateProgress(newPosition);
                        s.setWrapperTransition(momentumDuration);
                        s.setWrapperTranslate(newPosition);
                        s.onTransitionStart();
                        if (!s.animating) {
                            s.animating = true;
                            s.wrapper.transitionEnd(function () {
                                if (!s) return;
                                s.onTransitionEnd();
                            });
                        }
        
                    } else {
                        s.updateProgress(newPosition);
                    }
        
                    s.updateActiveIndex();
                }
                if (!s.params.freeModeMomentum || timeDiff >= s.params.longSwipesMs) {
                    s.updateProgress();
                    s.updateActiveIndex();
                }
                return;
            }
        
            // Find current slide
            var i, stopIndex = 0, groupSize = s.slidesSizesGrid[0];
            for (i = 0; i < s.slidesGrid.length; i += s.params.slidesPerGroup) {
                if (typeof s.slidesGrid[i + s.params.slidesPerGroup] !== 'undefined') {
                    if (currentPos >= s.slidesGrid[i] && currentPos < s.slidesGrid[i + s.params.slidesPerGroup]) {
                        stopIndex = i;
                        groupSize = s.slidesGrid[i + s.params.slidesPerGroup] - s.slidesGrid[i];
                    }
                }
                else {
                    if (currentPos >= s.slidesGrid[i]) {
                        stopIndex = i;
                        groupSize = s.slidesGrid[s.slidesGrid.length - 1] - s.slidesGrid[s.slidesGrid.length - 2];
                    }
                }
            }
        
            // Find current slide size
            var ratio = (currentPos - s.slidesGrid[stopIndex]) / groupSize;
        
            if (timeDiff > s.params.longSwipesMs) {
                // Long touches
                if (!s.params.longSwipes) {
                    s.slideTo(s.activeIndex);
                    return;
                }
                if (s.swipeDirection === 'next') {
                    if (ratio >= s.params.longSwipesRatio) s.slideTo(stopIndex + s.params.slidesPerGroup);
                    else s.slideTo(stopIndex);
        
                }
                if (s.swipeDirection === 'prev') {
                    if (ratio > (1 - s.params.longSwipesRatio)) s.slideTo(stopIndex + s.params.slidesPerGroup);
                    else s.slideTo(stopIndex);
                }
            }
            else {
                // Short swipes
                if (!s.params.shortSwipes) {
                    s.slideTo(s.activeIndex);
                    return;
                }
                if (s.swipeDirection === 'next') {
                    s.slideTo(stopIndex + s.params.slidesPerGroup);
        
                }
                if (s.swipeDirection === 'prev') {
                    s.slideTo(stopIndex);
                }
            }
        };
        /*=========================
          Transitions
          ===========================*/
        s._slideTo = function (slideIndex, speed) {
            return s.slideTo(slideIndex, speed, true, true);
        };
        s.slideTo = function (slideIndex, speed, runCallbacks, internal) {
            if (typeof runCallbacks === 'undefined') runCallbacks = true;
            if (typeof slideIndex === 'undefined') slideIndex = 0;
            if (slideIndex < 0) slideIndex = 0;
            s.snapIndex = Math.floor(slideIndex / s.params.slidesPerGroup);
            if (s.snapIndex >= s.snapGrid.length) s.snapIndex = s.snapGrid.length - 1;
        
            var translate = - s.snapGrid[s.snapIndex];
            // Stop autoplay
            if (s.params.autoplay && s.autoplaying) {
                if (internal || !s.params.autoplayDisableOnInteraction) {
                    s.pauseAutoplay(speed);
                }
                else {
                    s.stopAutoplay();
                }
            }
            // Update progress
            s.updateProgress(translate);
        
            // Normalize slideIndex
            if(s.params.normalizeSlideIndex){
                for (var i = 0; i < s.slidesGrid.length; i++) {
                    if (- Math.floor(translate * 100) >= Math.floor(s.slidesGrid[i] * 100)) {
                        slideIndex = i;
                    }
                }
            }
        
            // Directions locks
            if (!s.params.allowSwipeToNext && translate < s.translate && translate < s.minTranslate()) {
                return false;
            }
            if (!s.params.allowSwipeToPrev && translate > s.translate && translate > s.maxTranslate()) {
                if ((s.activeIndex || 0) !== slideIndex ) return false;
            }
        
            // Update Index
            if (typeof speed === 'undefined') speed = s.params.speed;
            s.previousIndex = s.activeIndex || 0;
            s.activeIndex = slideIndex;
            s.updateRealIndex();
            if ((s.rtl && -translate === s.translate) || (!s.rtl && translate === s.translate)) {
                // Update Height
                if (s.params.autoHeight) {
                    s.updateAutoHeight();
                }
                s.updateClasses();
                if (s.params.effect !== 'slide') {
                    s.setWrapperTranslate(translate);
                }
                return false;
            }
            s.updateClasses();
            s.onTransitionStart(runCallbacks);
        
            if (speed === 0 || s.browser.lteIE9) {
                s.setWrapperTranslate(translate);
                s.setWrapperTransition(0);
                s.onTransitionEnd(runCallbacks);
            }
            else {
                s.setWrapperTranslate(translate);
                s.setWrapperTransition(speed);
                if (!s.animating) {
                    s.animating = true;
                    s.wrapper.transitionEnd(function () {
                        if (!s) return;
                        s.onTransitionEnd(runCallbacks);
                    });
                }
        
            }
        
            return true;
        };
        
        s.onTransitionStart = function (runCallbacks) {
            if (typeof runCallbacks === 'undefined') runCallbacks = true;
            if (s.params.autoHeight) {
                s.updateAutoHeight();
            }
            if (s.lazy) s.lazy.onTransitionStart();
            if (runCallbacks) {
                s.emit('onTransitionStart', s);
                if (s.activeIndex !== s.previousIndex) {
                    s.emit('onSlideChangeStart', s);
                    if (s.activeIndex > s.previousIndex) {
                        s.emit('onSlideNextStart', s);
                    }
                    else {
                        s.emit('onSlidePrevStart', s);
                    }
                }
        
            }
        };
        s.onTransitionEnd = function (runCallbacks) {
            s.animating = false;
            s.setWrapperTransition(0);
            if (typeof runCallbacks === 'undefined') runCallbacks = true;
            if (s.lazy) s.lazy.onTransitionEnd();
            if (runCallbacks) {
                s.emit('onTransitionEnd', s);
                if (s.activeIndex !== s.previousIndex) {
                    s.emit('onSlideChangeEnd', s);
                    if (s.activeIndex > s.previousIndex) {
                        s.emit('onSlideNextEnd', s);
                    }
                    else {
                        s.emit('onSlidePrevEnd', s);
                    }
                }
            }
            if (s.params.history && s.history) {
                s.history.setHistory(s.params.history, s.activeIndex);
            }
            if (s.params.hashnav && s.hashnav) {
                s.hashnav.setHash();
            }
        
        };
        s.slideNext = function (runCallbacks, speed, internal) {
            if (s.params.loop) {
                if (s.animating) return false;
                s.fixLoop();
                var clientLeft = s.container[0].clientLeft;
                return s.slideTo(s.activeIndex + s.params.slidesPerGroup, speed, runCallbacks, internal);
            }
            else return s.slideTo(s.activeIndex + s.params.slidesPerGroup, speed, runCallbacks, internal);
        };
        s._slideNext = function (speed) {
            return s.slideNext(true, speed, true);
        };
        s.slidePrev = function (runCallbacks, speed, internal) {
            if (s.params.loop) {
                if (s.animating) return false;
                s.fixLoop();
                var clientLeft = s.container[0].clientLeft;
                return s.slideTo(s.activeIndex - 1, speed, runCallbacks, internal);
            }
            else return s.slideTo(s.activeIndex - 1, speed, runCallbacks, internal);
        };
        s._slidePrev = function (speed) {
            return s.slidePrev(true, speed, true);
        };
        s.slideReset = function (runCallbacks, speed, internal) {
            return s.slideTo(s.activeIndex, speed, runCallbacks);
        };
        
        s.disableTouchControl = function () {
            s.params.onlyExternal = true;
            return true;
        };
        s.enableTouchControl = function () {
            s.params.onlyExternal = false;
            return true;
        };
        
        /*=========================
          Translate/transition helpers
          ===========================*/
        s.setWrapperTransition = function (duration, byController) {
            s.wrapper.transition(duration);
            if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {
                s.effects[s.params.effect].setTransition(duration);
            }
            if (s.params.parallax && s.parallax) {
                s.parallax.setTransition(duration);
            }
            if (s.params.scrollbar && s.scrollbar) {
                s.scrollbar.setTransition(duration);
            }
            if (s.params.control && s.controller) {
                s.controller.setTransition(duration, byController);
            }
            s.emit('onSetTransition', s, duration);
        };
        s.setWrapperTranslate = function (translate, updateActiveIndex, byController) {
            var x = 0, y = 0, z = 0;
            if (s.isHorizontal()) {
                x = s.rtl ? -translate : translate;
            }
            else {
                y = translate;
            }
        
            if (s.params.roundLengths) {
                x = round(x);
                y = round(y);
            }
        
            if (!s.params.virtualTranslate) {
                if (s.support.transforms3d) s.wrapper.transform('translate3d(' + x + 'px, ' + y + 'px, ' + z + 'px)');
                else s.wrapper.transform('translate(' + x + 'px, ' + y + 'px)');
            }
        
            s.translate = s.isHorizontal() ? x : y;
        
            // Check if we need to update progress
            var progress;
            var translatesDiff = s.maxTranslate() - s.minTranslate();
            if (translatesDiff === 0) {
                progress = 0;
            }
            else {
                progress = (translate - s.minTranslate()) / (translatesDiff);
            }
            if (progress !== s.progress) {
                s.updateProgress(translate);
            }
        
            if (updateActiveIndex) s.updateActiveIndex();
            if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {
                s.effects[s.params.effect].setTranslate(s.translate);
            }
            if (s.params.parallax && s.parallax) {
                s.parallax.setTranslate(s.translate);
            }
            if (s.params.scrollbar && s.scrollbar) {
                s.scrollbar.setTranslate(s.translate);
            }
            if (s.params.control && s.controller) {
                s.controller.setTranslate(s.translate, byController);
            }
            s.emit('onSetTranslate', s, s.translate);
        };
        
        s.getTranslate = function (el, axis) {
            var matrix, curTransform, curStyle, transformMatrix;
        
            // automatic axis detection
            if (typeof axis === 'undefined') {
                axis = 'x';
            }
        
            if (s.params.virtualTranslate) {
                return s.rtl ? -s.translate : s.translate;
            }
        
            curStyle = window.getComputedStyle(el, null);
            if (window.WebKitCSSMatrix) {
                curTransform = curStyle.transform || curStyle.webkitTransform;
                if (curTransform.split(',').length > 6) {
                    curTransform = curTransform.split(', ').map(function(a){
                        return a.replace(',','.');
                    }).join(', ');
                }
                // Some old versions of Webkit choke when 'none' is passed; pass
                // empty string instead in this case
                transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
            }
            else {
                transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform  || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
                matrix = transformMatrix.toString().split(',');
            }
        
            if (axis === 'x') {
                //Latest Chrome and webkits Fix
                if (window.WebKitCSSMatrix)
                    curTransform = transformMatrix.m41;
                //Crazy IE10 Matrix
                else if (matrix.length === 16)
                    curTransform = parseFloat(matrix[12]);
                //Normal Browsers
                else
                    curTransform = parseFloat(matrix[4]);
            }
            if (axis === 'y') {
                //Latest Chrome and webkits Fix
                if (window.WebKitCSSMatrix)
                    curTransform = transformMatrix.m42;
                //Crazy IE10 Matrix
                else if (matrix.length === 16)
                    curTransform = parseFloat(matrix[13]);
                //Normal Browsers
                else
                    curTransform = parseFloat(matrix[5]);
            }
            if (s.rtl && curTransform) curTransform = -curTransform;
            return curTransform || 0;
        };
        s.getWrapperTranslate = function (axis) {
            if (typeof axis === 'undefined') {
                axis = s.isHorizontal() ? 'x' : 'y';
            }
            return s.getTranslate(s.wrapper[0], axis);
        };
        
        /*=========================
          Observer
          ===========================*/
        s.observers = [];
        function initObserver(target, options) {
            options = options || {};
            // create an observer instance
            var ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;
            var observer = new ObserverFunc(function (mutations) {
                mutations.forEach(function (mutation) {
                    s.onResize(true);
                    s.emit('onObserverUpdate', s, mutation);
                });
            });
        
            observer.observe(target, {
                attributes: typeof options.attributes === 'undefined' ? true : options.attributes,
                childList: typeof options.childList === 'undefined' ? true : options.childList,
                characterData: typeof options.characterData === 'undefined' ? true : options.characterData
            });
        
            s.observers.push(observer);
        }
        s.initObservers = function () {
            if (s.params.observeParents) {
                var containerParents = s.container.parents();
                for (var i = 0; i < containerParents.length; i++) {
                    initObserver(containerParents[i]);
                }
            }
        
            // Observe container
            initObserver(s.container[0], {childList: false});
        
            // Observe wrapper
            initObserver(s.wrapper[0], {attributes: false});
        };
        s.disconnectObservers = function () {
            for (var i = 0; i < s.observers.length; i++) {
                s.observers[i].disconnect();
            }
            s.observers = [];
        };
        /*=========================
          Loop
          ===========================*/
        // Create looped slides
        s.createLoop = function () {
            // Remove duplicated slides
            s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass).remove();
        
            var slides = s.wrapper.children('.' + s.params.slideClass);
        
            if(s.params.slidesPerView === 'auto' && !s.params.loopedSlides) s.params.loopedSlides = slides.length;
        
            s.loopedSlides = parseInt(s.params.loopedSlides || s.params.slidesPerView, 10);
            s.loopedSlides = s.loopedSlides + s.params.loopAdditionalSlides;
            if (s.loopedSlides > slides.length) {
                s.loopedSlides = slides.length;
            }
        
            var prependSlides = [], appendSlides = [], i;
            slides.each(function (index, el) {
                var slide = $(this);
                if (index < s.loopedSlides) appendSlides.push(el);
                if (index < slides.length && index >= slides.length - s.loopedSlides) prependSlides.push(el);
                slide.attr('data-swiper-slide-index', index);
            });
            for (i = 0; i < appendSlides.length; i++) {
                s.wrapper.append($(appendSlides[i].cloneNode(true)).addClass(s.params.slideDuplicateClass));
            }
            for (i = prependSlides.length - 1; i >= 0; i--) {
                s.wrapper.prepend($(prependSlides[i].cloneNode(true)).addClass(s.params.slideDuplicateClass));
            }
        };
        s.destroyLoop = function () {
            s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass).remove();
            s.slides.removeAttr('data-swiper-slide-index');
        };
        s.reLoop = function (updatePosition) {
            var oldIndex = s.activeIndex - s.loopedSlides;
            s.destroyLoop();
            s.createLoop();
            s.updateSlidesSize();
            if (updatePosition) {
                s.slideTo(oldIndex + s.loopedSlides, 0, false);
            }
        
        };
        s.fixLoop = function () {
            var newIndex;
            //Fix For Negative Oversliding
            if (s.activeIndex < s.loopedSlides) {
                newIndex = s.slides.length - s.loopedSlides * 3 + s.activeIndex;
                newIndex = newIndex + s.loopedSlides;
                s.slideTo(newIndex, 0, false, true);
            }
            //Fix For Positive Oversliding
            else if ((s.params.slidesPerView === 'auto' && s.activeIndex >= s.loopedSlides * 2) || (s.activeIndex > s.slides.length - s.params.slidesPerView * 2)) {
                newIndex = -s.slides.length + s.activeIndex + s.loopedSlides;
                newIndex = newIndex + s.loopedSlides;
                s.slideTo(newIndex, 0, false, true);
            }
        };
        /*=========================
          Append/Prepend/Remove Slides
          ===========================*/
        s.appendSlide = function (slides) {
            if (s.params.loop) {
                s.destroyLoop();
            }
            if (typeof slides === 'object' && slides.length) {
                for (var i = 0; i < slides.length; i++) {
                    if (slides[i]) s.wrapper.append(slides[i]);
                }
            }
            else {
                s.wrapper.append(slides);
            }
            if (s.params.loop) {
                s.createLoop();
            }
            if (!(s.params.observer && s.support.observer)) {
                s.update(true);
            }
        };
        s.prependSlide = function (slides) {
            if (s.params.loop) {
                s.destroyLoop();
            }
            var newActiveIndex = s.activeIndex + 1;
            if (typeof slides === 'object' && slides.length) {
                for (var i = 0; i < slides.length; i++) {
                    if (slides[i]) s.wrapper.prepend(slides[i]);
                }
                newActiveIndex = s.activeIndex + slides.length;
            }
            else {
                s.wrapper.prepend(slides);
            }
            if (s.params.loop) {
                s.createLoop();
            }
            if (!(s.params.observer && s.support.observer)) {
                s.update(true);
            }
            s.slideTo(newActiveIndex, 0, false);
        };
        s.removeSlide = function (slidesIndexes) {
            if (s.params.loop) {
                s.destroyLoop();
                s.slides = s.wrapper.children('.' + s.params.slideClass);
            }
            var newActiveIndex = s.activeIndex,
                indexToRemove;
            if (typeof slidesIndexes === 'object' && slidesIndexes.length) {
                for (var i = 0; i < slidesIndexes.length; i++) {
                    indexToRemove = slidesIndexes[i];
                    if (s.slides[indexToRemove]) s.slides.eq(indexToRemove).remove();
                    if (indexToRemove < newActiveIndex) newActiveIndex--;
                }
                newActiveIndex = Math.max(newActiveIndex, 0);
            }
            else {
                indexToRemove = slidesIndexes;
                if (s.slides[indexToRemove]) s.slides.eq(indexToRemove).remove();
                if (indexToRemove < newActiveIndex) newActiveIndex--;
                newActiveIndex = Math.max(newActiveIndex, 0);
            }
        
            if (s.params.loop) {
                s.createLoop();
            }
        
            if (!(s.params.observer && s.support.observer)) {
                s.update(true);
            }
            if (s.params.loop) {
                s.slideTo(newActiveIndex + s.loopedSlides, 0, false);
            }
            else {
                s.slideTo(newActiveIndex, 0, false);
            }
        
        };
        s.removeAllSlides = function () {
            var slidesIndexes = [];
            for (var i = 0; i < s.slides.length; i++) {
                slidesIndexes.push(i);
            }
            s.removeSlide(slidesIndexes);
        };
        

        /*=========================
          Effects
          ===========================*/
        s.effects = {
            fade: {
                setTranslate: function () {
                    for (var i = 0; i < s.slides.length; i++) {
                        var slide = s.slides.eq(i);
                        var offset = slide[0].swiperSlideOffset;
                        var tx = -offset;
                        if (!s.params.virtualTranslate) tx = tx - s.translate;
                        var ty = 0;
                        if (!s.isHorizontal()) {
                            ty = tx;
                            tx = 0;
                        }
                        var slideOpacity = s.params.fade.crossFade ?
                                Math.max(1 - Math.abs(slide[0].progress), 0) :
                                1 + Math.min(Math.max(slide[0].progress, -1), 0);
                        slide
                            .css({
                                opacity: slideOpacity
                            })
                            .transform('translate3d(' + tx + 'px, ' + ty + 'px, 0px)');
        
                    }
        
                },
                setTransition: function (duration) {
                    s.slides.transition(duration);
                    if (s.params.virtualTranslate && duration !== 0) {
                        var eventTriggered = false;
                        s.slides.transitionEnd(function () {
                            if (eventTriggered) return;
                            if (!s) return;
                            eventTriggered = true;
                            s.animating = false;
                            var triggerEvents = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'];
                            for (var i = 0; i < triggerEvents.length; i++) {
                                s.wrapper.trigger(triggerEvents[i]);
                            }
                        });
                    }
                }
            },
            flip: {
                setTranslate: function () {
                    for (var i = 0; i < s.slides.length; i++) {
                        var slide = s.slides.eq(i);
                        var progress = slide[0].progress;
                        if (s.params.flip.limitRotation) {
                            progress = Math.max(Math.min(slide[0].progress, 1), -1);
                        }
                        var offset = slide[0].swiperSlideOffset;
                        var rotate = -180 * progress,
                            rotateY = rotate,
                            rotateX = 0,
                            tx = -offset,
                            ty = 0;
                        if (!s.isHorizontal()) {
                            ty = tx;
                            tx = 0;
                            rotateX = -rotateY;
                            rotateY = 0;
                        }
                        else if (s.rtl) {
                            rotateY = -rotateY;
                        }
        
                        slide[0].style.zIndex = -Math.abs(Math.round(progress)) + s.slides.length;
        
                        if (s.params.flip.slideShadows) {
                            //Set shadows
                            var shadowBefore = s.isHorizontal() ? slide.find('.swiper-slide-shadow-left') : slide.find('.swiper-slide-shadow-top');
                            var shadowAfter = s.isHorizontal() ? slide.find('.swiper-slide-shadow-right') : slide.find('.swiper-slide-shadow-bottom');
                            if (shadowBefore.length === 0) {
                                shadowBefore = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'left' : 'top') + '"></div>');
                                slide.append(shadowBefore);
                            }
                            if (shadowAfter.length === 0) {
                                shadowAfter = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'right' : 'bottom') + '"></div>');
                                slide.append(shadowAfter);
                            }
                            if (shadowBefore.length) shadowBefore[0].style.opacity = Math.max(-progress, 0);
                            if (shadowAfter.length) shadowAfter[0].style.opacity = Math.max(progress, 0);
                        }
        
                        slide
                            .transform('translate3d(' + tx + 'px, ' + ty + 'px, 0px) rotateX(' + rotateX + 'deg) rotateY(' + rotateY + 'deg)');
                    }
                },
                setTransition: function (duration) {
                    s.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
                    if (s.params.virtualTranslate && duration !== 0) {
                        var eventTriggered = false;
                        s.slides.eq(s.activeIndex).transitionEnd(function () {
                            if (eventTriggered) return;
                            if (!s) return;
                            if (!$(this).hasClass(s.params.slideActiveClass)) return;
                            eventTriggered = true;
                            s.animating = false;
                            var triggerEvents = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'];
                            for (var i = 0; i < triggerEvents.length; i++) {
                                s.wrapper.trigger(triggerEvents[i]);
                            }
                        });
                    }
                }
            },
            cube: {
                setTranslate: function () {
                    var wrapperRotate = 0, cubeShadow;
                    if (s.params.cube.shadow) {
                        if (s.isHorizontal()) {
                            cubeShadow = s.wrapper.find('.swiper-cube-shadow');
                            if (cubeShadow.length === 0) {
                                cubeShadow = $('<div class="swiper-cube-shadow"></div>');
                                s.wrapper.append(cubeShadow);
                            }
                            cubeShadow.css({height: s.width + 'px'});
                        }
                        else {
                            cubeShadow = s.container.find('.swiper-cube-shadow');
                            if (cubeShadow.length === 0) {
                                cubeShadow = $('<div class="swiper-cube-shadow"></div>');
                                s.container.append(cubeShadow);
                            }
                        }
                    }
                    for (var i = 0; i < s.slides.length; i++) {
                        var slide = s.slides.eq(i);
                        var slideAngle = i * 90;
                        var round = Math.floor(slideAngle / 360);
                        if (s.rtl) {
                            slideAngle = -slideAngle;
                            round = Math.floor(-slideAngle / 360);
                        }
                        var progress = Math.max(Math.min(slide[0].progress, 1), -1);
                        var tx = 0, ty = 0, tz = 0;
                        if (i % 4 === 0) {
                            tx = - round * 4 * s.size;
                            tz = 0;
                        }
                        else if ((i - 1) % 4 === 0) {
                            tx = 0;
                            tz = - round * 4 * s.size;
                        }
                        else if ((i - 2) % 4 === 0) {
                            tx = s.size + round * 4 * s.size;
                            tz = s.size;
                        }
                        else if ((i - 3) % 4 === 0) {
                            tx = - s.size;
                            tz = 3 * s.size + s.size * 4 * round;
                        }
                        if (s.rtl) {
                            tx = -tx;
                        }
        
                        if (!s.isHorizontal()) {
                            ty = tx;
                            tx = 0;
                        }
        
                        var transform = 'rotateX(' + (s.isHorizontal() ? 0 : -slideAngle) + 'deg) rotateY(' + (s.isHorizontal() ? slideAngle : 0) + 'deg) translate3d(' + tx + 'px, ' + ty + 'px, ' + tz + 'px)';
                        if (progress <= 1 && progress > -1) {
                            wrapperRotate = i * 90 + progress * 90;
                            if (s.rtl) wrapperRotate = -i * 90 - progress * 90;
                        }
                        slide.transform(transform);
                        if (s.params.cube.slideShadows) {
                            //Set shadows
                            var shadowBefore = s.isHorizontal() ? slide.find('.swiper-slide-shadow-left') : slide.find('.swiper-slide-shadow-top');
                            var shadowAfter = s.isHorizontal() ? slide.find('.swiper-slide-shadow-right') : slide.find('.swiper-slide-shadow-bottom');
                            if (shadowBefore.length === 0) {
                                shadowBefore = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'left' : 'top') + '"></div>');
                                slide.append(shadowBefore);
                            }
                            if (shadowAfter.length === 0) {
                                shadowAfter = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'right' : 'bottom') + '"></div>');
                                slide.append(shadowAfter);
                            }
                            if (shadowBefore.length) shadowBefore[0].style.opacity = Math.max(-progress, 0);
                            if (shadowAfter.length) shadowAfter[0].style.opacity = Math.max(progress, 0);
                        }
                    }
                    s.wrapper.css({
                        '-webkit-transform-origin': '50% 50% -' + (s.size / 2) + 'px',
                        '-moz-transform-origin': '50% 50% -' + (s.size / 2) + 'px',
                        '-ms-transform-origin': '50% 50% -' + (s.size / 2) + 'px',
                        'transform-origin': '50% 50% -' + (s.size / 2) + 'px'
                    });
        
                    if (s.params.cube.shadow) {
                        if (s.isHorizontal()) {
                            cubeShadow.transform('translate3d(0px, ' + (s.width / 2 + s.params.cube.shadowOffset) + 'px, ' + (-s.width / 2) + 'px) rotateX(90deg) rotateZ(0deg) scale(' + (s.params.cube.shadowScale) + ')');
                        }
                        else {
                            var shadowAngle = Math.abs(wrapperRotate) - Math.floor(Math.abs(wrapperRotate) / 90) * 90;
                            var multiplier = 1.5 - (Math.sin(shadowAngle * 2 * Math.PI / 360) / 2 + Math.cos(shadowAngle * 2 * Math.PI / 360) / 2);
                            var scale1 = s.params.cube.shadowScale,
                                scale2 = s.params.cube.shadowScale / multiplier,
                                offset = s.params.cube.shadowOffset;
                            cubeShadow.transform('scale3d(' + scale1 + ', 1, ' + scale2 + ') translate3d(0px, ' + (s.height / 2 + offset) + 'px, ' + (-s.height / 2 / scale2) + 'px) rotateX(-90deg)');
                        }
                    }
                    var zFactor = (s.isSafari || s.isUiWebView) ? (-s.size / 2) : 0;
                    s.wrapper.transform('translate3d(0px,0,' + zFactor + 'px) rotateX(' + (s.isHorizontal() ? 0 : wrapperRotate) + 'deg) rotateY(' + (s.isHorizontal() ? -wrapperRotate : 0) + 'deg)');
                },
                setTransition: function (duration) {
                    s.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
                    if (s.params.cube.shadow && !s.isHorizontal()) {
                        s.container.find('.swiper-cube-shadow').transition(duration);
                    }
                }
            },
            coverflow: {
                setTranslate: function () {
                    var transform = s.translate;
                    var center = s.isHorizontal() ? -transform + s.width / 2 : -transform + s.height / 2;
                    var rotate = s.isHorizontal() ? s.params.coverflow.rotate: -s.params.coverflow.rotate;
                    var translate = s.params.coverflow.depth;
                    //Each slide offset from center
                    for (var i = 0, length = s.slides.length; i < length; i++) {
                        var slide = s.slides.eq(i);
                        var slideSize = s.slidesSizesGrid[i];
                        var slideOffset = slide[0].swiperSlideOffset;
                        var offsetMultiplier = (center - slideOffset - slideSize / 2) / slideSize * s.params.coverflow.modifier;
        
                        var rotateY = s.isHorizontal() ? rotate * offsetMultiplier : 0;
                        var rotateX = s.isHorizontal() ? 0 : rotate * offsetMultiplier;
                        // var rotateZ = 0
                        var translateZ = -translate * Math.abs(offsetMultiplier);
        
                        var translateY = s.isHorizontal() ? 0 : s.params.coverflow.stretch * (offsetMultiplier);
                        var translateX = s.isHorizontal() ? s.params.coverflow.stretch * (offsetMultiplier) : 0;
        
                        //Fix for ultra small values
                        if (Math.abs(translateX) < 0.001) translateX = 0;
                        if (Math.abs(translateY) < 0.001) translateY = 0;
                        if (Math.abs(translateZ) < 0.001) translateZ = 0;
                        if (Math.abs(rotateY) < 0.001) rotateY = 0;
                        if (Math.abs(rotateX) < 0.001) rotateX = 0;
        
                        var slideTransform = 'translate3d(' + translateX + 'px,' + translateY + 'px,' + translateZ + 'px)  rotateX(' + rotateX + 'deg) rotateY(' + rotateY + 'deg)';
        
                        slide.transform(slideTransform);
                        slide[0].style.zIndex = -Math.abs(Math.round(offsetMultiplier)) + 1;
                        if (s.params.coverflow.slideShadows) {
                            //Set shadows
                            var shadowBefore = s.isHorizontal() ? slide.find('.swiper-slide-shadow-left') : slide.find('.swiper-slide-shadow-top');
                            var shadowAfter = s.isHorizontal() ? slide.find('.swiper-slide-shadow-right') : slide.find('.swiper-slide-shadow-bottom');
                            if (shadowBefore.length === 0) {
                                shadowBefore = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'left' : 'top') + '"></div>');
                                slide.append(shadowBefore);
                            }
                            if (shadowAfter.length === 0) {
                                shadowAfter = $('<div class="swiper-slide-shadow-' + (s.isHorizontal() ? 'right' : 'bottom') + '"></div>');
                                slide.append(shadowAfter);
                            }
                            if (shadowBefore.length) shadowBefore[0].style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0;
                            if (shadowAfter.length) shadowAfter[0].style.opacity = (-offsetMultiplier) > 0 ? -offsetMultiplier : 0;
                        }
                    }
        
                    //Set correct perspective for IE10
                    if (s.browser.ie) {
                        var ws = s.wrapper[0].style;
                        ws.perspectiveOrigin = center + 'px 50%';
                    }
                },
                setTransition: function (duration) {
                    s.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
                }
            }
        };
        

        /*=========================
          Images Lazy Loading
          ===========================*/
        s.lazy = {
            initialImageLoaded: false,
            loadImageInSlide: function (index, loadInDuplicate) {
                if (typeof index === 'undefined') return;
                if (typeof loadInDuplicate === 'undefined') loadInDuplicate = true;
                if (s.slides.length === 0) return;
        
                var slide = s.slides.eq(index);
                var img = slide.find('.' + s.params.lazyLoadingClass + ':not(.' + s.params.lazyStatusLoadedClass + '):not(.' + s.params.lazyStatusLoadingClass + ')');
                if (slide.hasClass(s.params.lazyLoadingClass) && !slide.hasClass(s.params.lazyStatusLoadedClass) && !slide.hasClass(s.params.lazyStatusLoadingClass)) {
                    img = img.add(slide[0]);
                }
                if (img.length === 0) return;
        
                img.each(function () {
                    var _img = $(this);
                    _img.addClass(s.params.lazyStatusLoadingClass);
                    var background = _img.attr('data-background');
                    var src = _img.attr('data-src'),
                        srcset = _img.attr('data-srcset'),
                        sizes = _img.attr('data-sizes');
                    s.loadImage(_img[0], (src || background), srcset, sizes, false, function () {
                        if (typeof s === 'undefined' || s === null || !s) return;
                        if (background) {
                            _img.css('background-image', 'url("' + background + '")');
                            _img.removeAttr('data-background');
                        }
                        else {
                            if (srcset) {
                                _img.attr('srcset', srcset);
                                _img.removeAttr('data-srcset');
                            }
                            if (sizes) {
                                _img.attr('sizes', sizes);
                                _img.removeAttr('data-sizes');
                            }
                            if (src) {
                                _img.attr('src', src);
                                _img.removeAttr('data-src');
                            }
        
                        }
        
                        _img.addClass(s.params.lazyStatusLoadedClass).removeClass(s.params.lazyStatusLoadingClass);
                        slide.find('.' + s.params.lazyPreloaderClass + ', .' + s.params.preloaderClass).remove();
                        if (s.params.loop && loadInDuplicate) {
                            var slideOriginalIndex = slide.attr('data-swiper-slide-index');
                            if (slide.hasClass(s.params.slideDuplicateClass)) {
                                var originalSlide = s.wrapper.children('[data-swiper-slide-index="' + slideOriginalIndex + '"]:not(.' + s.params.slideDuplicateClass + ')');
                                s.lazy.loadImageInSlide(originalSlide.index(), false);
                            }
                            else {
                                var duplicatedSlide = s.wrapper.children('.' + s.params.slideDuplicateClass + '[data-swiper-slide-index="' + slideOriginalIndex + '"]');
                                s.lazy.loadImageInSlide(duplicatedSlide.index(), false);
                            }
                        }
                        s.emit('onLazyImageReady', s, slide[0], _img[0]);
                    });
        
                    s.emit('onLazyImageLoad', s, slide[0], _img[0]);
                });
        
            },
            load: function () {
                var i;
                var slidesPerView = s.params.slidesPerView;
                if (slidesPerView === 'auto') {
                    slidesPerView = 0;
                }
                if (!s.lazy.initialImageLoaded) s.lazy.initialImageLoaded = true;
                if (s.params.watchSlidesVisibility) {
                    s.wrapper.children('.' + s.params.slideVisibleClass).each(function () {
                        s.lazy.loadImageInSlide($(this).index());
                    });
                }
                else {
                    if (slidesPerView > 1) {
                        for (i = s.activeIndex; i < s.activeIndex + slidesPerView ; i++) {
                            if (s.slides[i]) s.lazy.loadImageInSlide(i);
                        }
                    }
                    else {
                        s.lazy.loadImageInSlide(s.activeIndex);
                    }
                }
                if (s.params.lazyLoadingInPrevNext) {
                    if (slidesPerView > 1 || (s.params.lazyLoadingInPrevNextAmount && s.params.lazyLoadingInPrevNextAmount > 1)) {
                        var amount = s.params.lazyLoadingInPrevNextAmount;
                        var spv = slidesPerView;
                        var maxIndex = Math.min(s.activeIndex + spv + Math.max(amount, spv), s.slides.length);
                        var minIndex = Math.max(s.activeIndex - Math.max(spv, amount), 0);
                        // Next Slides
                        for (i = s.activeIndex + slidesPerView; i < maxIndex; i++) {
                            if (s.slides[i]) s.lazy.loadImageInSlide(i);
                        }
                        // Prev Slides
                        for (i = minIndex; i < s.activeIndex ; i++) {
                            if (s.slides[i]) s.lazy.loadImageInSlide(i);
                        }
                    }
                    else {
                        var nextSlide = s.wrapper.children('.' + s.params.slideNextClass);
                        if (nextSlide.length > 0) s.lazy.loadImageInSlide(nextSlide.index());
        
                        var prevSlide = s.wrapper.children('.' + s.params.slidePrevClass);
                        if (prevSlide.length > 0) s.lazy.loadImageInSlide(prevSlide.index());
                    }
                }
            },
            onTransitionStart: function () {
                if (s.params.lazyLoading) {
                    if (s.params.lazyLoadingOnTransitionStart || (!s.params.lazyLoadingOnTransitionStart && !s.lazy.initialImageLoaded)) {
                        s.lazy.load();
                    }
                }
            },
            onTransitionEnd: function () {
                if (s.params.lazyLoading && !s.params.lazyLoadingOnTransitionStart) {
                    s.lazy.load();
                }
            }
        };
        

        /*=========================
          Scrollbar
          ===========================*/
        s.scrollbar = {
            isTouched: false,
            setDragPosition: function (e) {
                var sb = s.scrollbar;
                var x = 0, y = 0;
                var translate;
                var pointerPosition = s.isHorizontal() ?
                    ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageX : e.pageX || e.clientX) :
                    ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageY : e.pageY || e.clientY) ;
                var position = (pointerPosition) - sb.track.offset()[s.isHorizontal() ? 'left' : 'top'] - sb.dragSize / 2;
                var positionMin = -s.minTranslate() * sb.moveDivider;
                var positionMax = -s.maxTranslate() * sb.moveDivider;
                if (position < positionMin) {
                    position = positionMin;
                }
                else if (position > positionMax) {
                    position = positionMax;
                }
                position = -position / sb.moveDivider;
                s.updateProgress(position);
                s.setWrapperTranslate(position, true);
            },
            dragStart: function (e) {
                var sb = s.scrollbar;
                sb.isTouched = true;
                e.preventDefault();
                e.stopPropagation();
        
                sb.setDragPosition(e);
                clearTimeout(sb.dragTimeout);
        
                sb.track.transition(0);
                if (s.params.scrollbarHide) {
                    sb.track.css('opacity', 1);
                }
                s.wrapper.transition(100);
                sb.drag.transition(100);
                s.emit('onScrollbarDragStart', s);
            },
            dragMove: function (e) {
                var sb = s.scrollbar;
                if (!sb.isTouched) return;
                if (e.preventDefault) e.preventDefault();
                else e.returnValue = false;
                sb.setDragPosition(e);
                s.wrapper.transition(0);
                sb.track.transition(0);
                sb.drag.transition(0);
                s.emit('onScrollbarDragMove', s);
            },
            dragEnd: function (e) {
                var sb = s.scrollbar;
                if (!sb.isTouched) return;
                sb.isTouched = false;
                if (s.params.scrollbarHide) {
                    clearTimeout(sb.dragTimeout);
                    sb.dragTimeout = setTimeout(function () {
                        sb.track.css('opacity', 0);
                        sb.track.transition(400);
                    }, 1000);
        
                }
                s.emit('onScrollbarDragEnd', s);
                if (s.params.scrollbarSnapOnRelease) {
                    s.slideReset();
                }
            },
            draggableEvents: (function () {
                if ((s.params.simulateTouch === false && !s.support.touch)) return s.touchEventsDesktop;
                else return s.touchEvents;
            })(),
            enableDraggable: function () {
                var sb = s.scrollbar;
                var target = s.support.touch ? sb.track : document;
                $(sb.track).on(sb.draggableEvents.start, sb.dragStart);
                $(target).on(sb.draggableEvents.move, sb.dragMove);
                $(target).on(sb.draggableEvents.end, sb.dragEnd);
            },
            disableDraggable: function () {
                var sb = s.scrollbar;
                var target = s.support.touch ? sb.track : document;
                $(sb.track).off(sb.draggableEvents.start, sb.dragStart);
                $(target).off(sb.draggableEvents.move, sb.dragMove);
                $(target).off(sb.draggableEvents.end, sb.dragEnd);
            },
            set: function () {
                if (!s.params.scrollbar) return;
                var sb = s.scrollbar;
                sb.track = $(s.params.scrollbar);
                if (s.params.uniqueNavElements && typeof s.params.scrollbar === 'string' && sb.track.length > 1 && s.container.find(s.params.scrollbar).length === 1) {
                    sb.track = s.container.find(s.params.scrollbar);
                }
                sb.drag = sb.track.find('.swiper-scrollbar-drag');
                if (sb.drag.length === 0) {
                    sb.drag = $('<div class="swiper-scrollbar-drag"></div>');
                    sb.track.append(sb.drag);
                }
                sb.drag[0].style.width = '';
                sb.drag[0].style.height = '';
                sb.trackSize = s.isHorizontal() ? sb.track[0].offsetWidth : sb.track[0].offsetHeight;
        
                sb.divider = s.size / s.virtualSize;
                sb.moveDivider = sb.divider * (sb.trackSize / s.size);
                sb.dragSize = sb.trackSize * sb.divider;
        
                if (s.isHorizontal()) {
                    sb.drag[0].style.width = sb.dragSize + 'px';
                }
                else {
                    sb.drag[0].style.height = sb.dragSize + 'px';
                }
        
                if (sb.divider >= 1) {
                    sb.track[0].style.display = 'none';
                }
                else {
                    sb.track[0].style.display = '';
                }
                if (s.params.scrollbarHide) {
                    sb.track[0].style.opacity = 0;
                }
            },
            setTranslate: function () {
                if (!s.params.scrollbar) return;
                var diff;
                var sb = s.scrollbar;
                var translate = s.translate || 0;
                var newPos;
        
                var newSize = sb.dragSize;
                newPos = (sb.trackSize - sb.dragSize) * s.progress;
                if (s.rtl && s.isHorizontal()) {
                    newPos = -newPos;
                    if (newPos > 0) {
                        newSize = sb.dragSize - newPos;
                        newPos = 0;
                    }
                    else if (-newPos + sb.dragSize > sb.trackSize) {
                        newSize = sb.trackSize + newPos;
                    }
                }
                else {
                    if (newPos < 0) {
                        newSize = sb.dragSize + newPos;
                        newPos = 0;
                    }
                    else if (newPos + sb.dragSize > sb.trackSize) {
                        newSize = sb.trackSize - newPos;
                    }
                }
                if (s.isHorizontal()) {
                    if (s.support.transforms3d) {
                        sb.drag.transform('translate3d(' + (newPos) + 'px, 0, 0)');
                    }
                    else {
                        sb.drag.transform('translateX(' + (newPos) + 'px)');
                    }
                    sb.drag[0].style.width = newSize + 'px';
                }
                else {
                    if (s.support.transforms3d) {
                        sb.drag.transform('translate3d(0px, ' + (newPos) + 'px, 0)');
                    }
                    else {
                        sb.drag.transform('translateY(' + (newPos) + 'px)');
                    }
                    sb.drag[0].style.height = newSize + 'px';
                }
                if (s.params.scrollbarHide) {
                    clearTimeout(sb.timeout);
                    sb.track[0].style.opacity = 1;
                    sb.timeout = setTimeout(function () {
                        sb.track[0].style.opacity = 0;
                        sb.track.transition(400);
                    }, 1000);
                }
            },
            setTransition: function (duration) {
                if (!s.params.scrollbar) return;
                s.scrollbar.drag.transition(duration);
            }
        };
        

        /*=========================
          Controller
          ===========================*/
        s.controller = {
            LinearSpline: function (x, y) {
                var binarySearch = (function() {
                    var maxIndex, minIndex, guess;
                    return function(array, val) {
                        minIndex = -1;
                        maxIndex = array.length;
                        while (maxIndex - minIndex > 1)
                            if (array[guess = maxIndex + minIndex >> 1] <= val) {
                                minIndex = guess;
                            } else {
                                maxIndex = guess;
                            }
                        return maxIndex;
                    };
                })();
                this.x = x;
                this.y = y;
                this.lastIndex = x.length - 1;
                // Given an x value (x2), return the expected y2 value:
                // (x1,y1) is the known point before given value,
                // (x3,y3) is the known point after given value.
                var i1, i3;
                var l = this.x.length;
        
                this.interpolate = function (x2) {
                    if (!x2) return 0;
        
                    // Get the indexes of x1 and x3 (the array indexes before and after given x2):
                    i3 = binarySearch(this.x, x2);
                    i1 = i3 - 1;
        
                    // We have our indexes i1 & i3, so we can calculate already:
                    // y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1
                    return ((x2 - this.x[i1]) * (this.y[i3] - this.y[i1])) / (this.x[i3] - this.x[i1]) + this.y[i1];
                };
            },
            //xxx: for now i will just save one spline function to to
            getInterpolateFunction: function(c){
                if(!s.controller.spline) s.controller.spline = s.params.loop ?
                    new s.controller.LinearSpline(s.slidesGrid, c.slidesGrid) :
                    new s.controller.LinearSpline(s.snapGrid, c.snapGrid);
            },
            setTranslate: function (translate, byController) {
               var controlled = s.params.control;
               var multiplier, controlledTranslate;
               function setControlledTranslate(c) {
                    // this will create an Interpolate function based on the snapGrids
                    // x is the Grid of the scrolled scroller and y will be the controlled scroller
                    // it makes sense to create this only once and recall it for the interpolation
                    // the function does a lot of value caching for performance
                    translate = c.rtl && c.params.direction === 'horizontal' ? -s.translate : s.translate;
                    if (s.params.controlBy === 'slide') {
                        s.controller.getInterpolateFunction(c);
                        // i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid
                        // but it did not work out
                        controlledTranslate = -s.controller.spline.interpolate(-translate);
                    }
        
                    if(!controlledTranslate || s.params.controlBy === 'container'){
                        multiplier = (c.maxTranslate() - c.minTranslate()) / (s.maxTranslate() - s.minTranslate());
                        controlledTranslate = (translate - s.minTranslate()) * multiplier + c.minTranslate();
                    }
        
                    if (s.params.controlInverse) {
                        controlledTranslate = c.maxTranslate() - controlledTranslate;
                    }
                    c.updateProgress(controlledTranslate);
                    c.setWrapperTranslate(controlledTranslate, false, s);
                    c.updateActiveIndex();
               }
               if (Array.isArray(controlled)) {
                   for (var i = 0; i < controlled.length; i++) {
                       if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
                           setControlledTranslate(controlled[i]);
                       }
                   }
               }
               else if (controlled instanceof Swiper && byController !== controlled) {
        
                   setControlledTranslate(controlled);
               }
            },
            setTransition: function (duration, byController) {
                var controlled = s.params.control;
                var i;
                function setControlledTransition(c) {
                    c.setWrapperTransition(duration, s);
                    if (duration !== 0) {
                        c.onTransitionStart();
                        c.wrapper.transitionEnd(function(){
                            if (!controlled) return;
                            if (c.params.loop && s.params.controlBy === 'slide') {
                                c.fixLoop();
                            }
                            c.onTransitionEnd();
        
                        });
                    }
                }
                if (Array.isArray(controlled)) {
                    for (i = 0; i < controlled.length; i++) {
                        if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
                            setControlledTransition(controlled[i]);
                        }
                    }
                }
                else if (controlled instanceof Swiper && byController !== controlled) {
                    setControlledTransition(controlled);
                }
            }
        };
        

        /*=========================
          Hash Navigation
          ===========================*/
        s.hashnav = {
            onHashCange: function (e, a) {
                var newHash = document.location.hash.replace('#', '');
                var activeSlideHash = s.slides.eq(s.activeIndex).attr('data-hash');
                if (newHash !== activeSlideHash) {
                    s.slideTo(s.wrapper.children('.' + s.params.slideClass + '[data-hash="' + (newHash) + '"]').index());
                }
            },
            attachEvents: function (detach) {
                var action = detach ? 'off' : 'on';
                $(window)[action]('hashchange', s.hashnav.onHashCange);
            },
            setHash: function () {
                if (!s.hashnav.initialized || !s.params.hashnav) return;
                if (s.params.replaceState && window.history && window.history.replaceState) {
                    window.history.replaceState(null, null, ('#' + s.slides.eq(s.activeIndex).attr('data-hash') || false));
                } else {
                    var slide = s.slides.eq(s.activeIndex);
                    var hash = slide.attr('data-hash') || slide.attr('data-history');
                    document.location.hash = hash || '';
                }
            },
            init: function () {
                if (!s.params.hashnav || s.params.history) return;
                s.hashnav.initialized = true;
                var hash = document.location.hash.replace('#', '');
                if (hash) {
                    var speed = 0;
                    for (var i = 0, length = s.slides.length; i < length; i++) {
                        var slide = s.slides.eq(i);
                        var slideHash = slide.attr('data-hash') || slide.attr('data-history');
                        if (slideHash === hash && !slide.hasClass(s.params.slideDuplicateClass)) {
                            var index = slide.index();
                            s.slideTo(index, speed, s.params.runCallbacksOnInit, true);
                        }
                    }
                }
                if (s.params.hashnavWatchState) s.hashnav.attachEvents();
            },
            destroy: function () {
                if (s.params.hashnavWatchState) s.hashnav.attachEvents(true);
            }
        };
        

        /*=========================
          History Api with fallback to Hashnav
          ===========================*/
        s.history = {
            init: function () {
                if (!s.params.history) return;
                if (!window.history || !window.history.pushState) {
                    s.params.history = false;
                    s.params.hashnav = true;
                    return;
                }
                s.history.initialized = true;
                this.paths = this.getPathValues();
                if (!this.paths.key && !this.paths.value) return;
                this.scrollToSlide(0, this.paths.value, s.params.runCallbacksOnInit);
                if (!s.params.replaceState) {
                    window.addEventListener('popstate', this.setHistoryPopState);
                }
            },
            setHistoryPopState: function() {
                s.history.paths = s.history.getPathValues();
                s.history.scrollToSlide(s.params.speed, s.history.paths.value, false);
            },
            getPathValues: function() {
                var pathArray = window.location.pathname.slice(1).split('/');
                var total = pathArray.length;
                var key = pathArray[total - 2];
                var value = pathArray[total - 1];
                return { key: key, value: value };
            },
            setHistory: function (key, index) {
                if (!s.history.initialized || !s.params.history) return;
                var slide = s.slides.eq(index);
                var value = this.slugify(slide.attr('data-history'));
                if (!window.location.pathname.includes(key)) {
                    value = key + '/' + value;
                }
                if (s.params.replaceState) {
                    window.history.replaceState(null, null, value);
                } else {
                    window.history.pushState(null, null, value);
                }
            },
            slugify: function(text) {
                return text.toString().toLowerCase()
                    .replace(/\s+/g, '-')
                    .replace(/[^\w\-]+/g, '')
                    .replace(/\-\-+/g, '-')
                    .replace(/^-+/, '')
                    .replace(/-+$/, '');
            },
            scrollToSlide: function(speed, value, runCallbacks) {
                if (value) {
                    for (var i = 0, length = s.slides.length; i < length; i++) {
                        var slide = s.slides.eq(i);
                        var slideHistory = this.slugify(slide.attr('data-history'));
                        if (slideHistory === value && !slide.hasClass(s.params.slideDuplicateClass)) {
                            var index = slide.index();
                            s.slideTo(index, speed, runCallbacks);
                        }
                    }
                } else {
                    s.slideTo(0, speed, runCallbacks);
                }
            }
        };
        

        /*=========================
          Keyboard Control
          ===========================*/
        function handleKeyboard(e) {
            if (e.originalEvent) e = e.originalEvent; //jquery fix
            var kc = e.keyCode || e.charCode;
            // Directions locks
            if (!s.params.allowSwipeToNext && (s.isHorizontal() && kc === 39 || !s.isHorizontal() && kc === 40)) {
                return false;
            }
            if (!s.params.allowSwipeToPrev && (s.isHorizontal() && kc === 37 || !s.isHorizontal() && kc === 38)) {
                return false;
            }
            if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) {
                return;
            }
            if (document.activeElement && document.activeElement.nodeName && (document.activeElement.nodeName.toLowerCase() === 'input' || document.activeElement.nodeName.toLowerCase() === 'textarea')) {
                return;
            }
            if (kc === 37 || kc === 39 || kc === 38 || kc === 40) {
                var inView = false;
                //Check that swiper should be inside of visible area of window
                if (s.container.parents('.' + s.params.slideClass).length > 0 && s.container.parents('.' + s.params.slideActiveClass).length === 0) {
                    return;
                }
                var windowScroll = {
                    left: window.pageXOffset,
                    top: window.pageYOffset
                };
                var windowWidth = window.innerWidth;
                var windowHeight = window.innerHeight;
                var swiperOffset = s.container.offset();
                if (s.rtl) swiperOffset.left = swiperOffset.left - s.container[0].scrollLeft;
                var swiperCoord = [
                    [swiperOffset.left, swiperOffset.top],
                    [swiperOffset.left + s.width, swiperOffset.top],
                    [swiperOffset.left, swiperOffset.top + s.height],
                    [swiperOffset.left + s.width, swiperOffset.top + s.height]
                ];
                for (var i = 0; i < swiperCoord.length; i++) {
                    var point = swiperCoord[i];
                    if (
                        point[0] >= windowScroll.left && point[0] <= windowScroll.left + windowWidth &&
                        point[1] >= windowScroll.top && point[1] <= windowScroll.top + windowHeight
                    ) {
                        inView = true;
                    }
        
                }
                if (!inView) return;
            }
            if (s.isHorizontal()) {
                if (kc === 37 || kc === 39) {
                    if (e.preventDefault) e.preventDefault();
                    else e.returnValue = false;
                }
                if ((kc === 39 && !s.rtl) || (kc === 37 && s.rtl)) s.slideNext();
                if ((kc === 37 && !s.rtl) || (kc === 39 && s.rtl)) s.slidePrev();
            }
            else {
                if (kc === 38 || kc === 40) {
                    if (e.preventDefault) e.preventDefault();
                    else e.returnValue = false;
                }
                if (kc === 40) s.slideNext();
                if (kc === 38) s.slidePrev();
            }
            s.emit('onKeyPress', s, kc);
        }
        s.disableKeyboardControl = function () {
            s.params.keyboardControl = false;
            $(document).off('keydown', handleKeyboard);
        };
        s.enableKeyboardControl = function () {
            s.params.keyboardControl = true;
            $(document).on('keydown', handleKeyboard);
        };
        

        /*=========================
          Mousewheel Control
          ===========================*/
        s.mousewheel = {
            event: false,
            lastScrollTime: (new window.Date()).getTime()
        };
        function isEventSupported() {
            var eventName = 'onwheel';
            var isSupported = eventName in document;
        
            if (!isSupported) {
                var element = document.createElement('div');
                element.setAttribute(eventName, 'return;');
                isSupported = typeof element[eventName] === 'function';
            }
        
            if (!isSupported &&
                document.implementation &&
                document.implementation.hasFeature &&
                    // always returns true in newer browsers as per the standard.
                    // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
                document.implementation.hasFeature('', '') !== true ) {
                // This is the only way to test support for the `wheel` event in IE9+.
                isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
            }
        
            return isSupported;
        }
        /**
         * Mouse wheel (and 2-finger trackpad) support on the web sucks.  It is
         * complicated, thus this doc is long and (hopefully) detailed enough to answer
         * your questions.
         *
         * If you need to react to the mouse wheel in a predictable way, this code is
         * like your bestest friend. * hugs *
         *
         * As of today, there are 4 DOM event types you can listen to:
         *
         *   'wheel'                -- Chrome(31+), FF(17+), IE(9+)
         *   'mousewheel'           -- Chrome, IE(6+), Opera, Safari
         *   'MozMousePixelScroll'  -- FF(3.5 only!) (2010-2013) -- don't bother!
         *   'DOMMouseScroll'       -- FF(0.9.7+) since 2003
         *
         * So what to do?  The is the best:
         *
         *   normalizeWheel.getEventType();
         *
         * In your event callback, use this code to get sane interpretation of the
         * deltas.  This code will return an object with properties:
         *
         *   spinX   -- normalized spin speed (use for zoom) - x plane
         *   spinY   -- " - y plane
         *   pixelX  -- normalized distance (to pixels) - x plane
         *   pixelY  -- " - y plane
         *
         * Wheel values are provided by the browser assuming you are using the wheel to
         * scroll a web page by a number of lines or pixels (or pages).  Values can vary
         * significantly on different platforms and browsers, forgetting that you can
         * scroll at different speeds.  Some devices (like trackpads) emit more events
         * at smaller increments with fine granularity, and some emit massive jumps with
         * linear speed or acceleration.
         *
         * This code does its best to normalize the deltas for you:
         *
         *   - spin is trying to normalize how far the wheel was spun (or trackpad
         *     dragged).  This is super useful for zoom support where you want to
         *     throw away the chunky scroll steps on the PC and make those equal to
         *     the slow and smooth tiny steps on the Mac. Key data: This code tries to
         *     resolve a single slow step on a wheel to 1.
         *
         *   - pixel is normalizing the desired scroll delta in pixel units.  You'll
         *     get the crazy differences between browsers, but at least it'll be in
         *     pixels!
         *
         *   - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT.  This
         *     should translate to positive value zooming IN, negative zooming OUT.
         *     This matches the newer 'wheel' event.
         *
         * Why are there spinX, spinY (or pixels)?
         *
         *   - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
         *     with a mouse.  It results in side-scrolling in the browser by default.
         *
         *   - spinY is what you expect -- it's the classic axis of a mouse wheel.
         *
         *   - I dropped spinZ/pixelZ.  It is supported by the DOM 3 'wheel' event and
         *     probably is by browsers in conjunction with fancy 3D controllers .. but
         *     you know.
         *
         * Implementation info:
         *
         * Examples of 'wheel' event if you scroll slowly (down) by one step with an
         * average mouse:
         *
         *   OS X + Chrome  (mouse)     -    4   pixel delta  (wheelDelta -120)
         *   OS X + Safari  (mouse)     -  N/A   pixel delta  (wheelDelta  -12)
         *   OS X + Firefox (mouse)     -    0.1 line  delta  (wheelDelta  N/A)
         *   Win8 + Chrome  (mouse)     -  100   pixel delta  (wheelDelta -120)
         *   Win8 + Firefox (mouse)     -    3   line  delta  (wheelDelta -120)
         *
         * On the trackpad:
         *
         *   OS X + Chrome  (trackpad)  -    2   pixel delta  (wheelDelta   -6)
         *   OS X + Firefox (trackpad)  -    1   pixel delta  (wheelDelta  N/A)
         *
         * On other/older browsers.. it's more complicated as there can be multiple and
         * also missing delta values.
         *
         * The 'wheel' event is more standard:
         *
         * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
         *
         * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
         * deltaX, deltaY and deltaZ.  Some browsers provide other values to maintain
         * backward compatibility with older events.  Those other values help us
         * better normalize spin speed.  Example of what the browsers provide:
         *
         *                          | event.wheelDelta | event.detail
         *        ------------------+------------------+--------------
         *          Safari v5/OS X  |       -120       |       0
         *          Safari v5/Win7  |       -120       |       0
         *         Chrome v17/OS X  |       -120       |       0
         *         Chrome v17/Win7  |       -120       |       0
         *                IE9/Win7  |       -120       |   undefined
         *         Firefox v4/OS X  |     undefined    |       1
         *         Firefox v4/Win7  |     undefined    |       3
         *
         */
        function normalizeWheel( /*object*/ event ) /*object*/ {
            // Reasonable defaults
            var PIXEL_STEP = 10;
            var LINE_HEIGHT = 40;
            var PAGE_HEIGHT = 800;
        
            var sX = 0, sY = 0,       // spinX, spinY
                pX = 0, pY = 0;       // pixelX, pixelY
        
            // Legacy
            if( 'detail' in event ) {
                sY = event.detail;
            }
            if( 'wheelDelta' in event ) {
                sY = -event.wheelDelta / 120;
            }
            if( 'wheelDeltaY' in event ) {
                sY = -event.wheelDeltaY / 120;
            }
            if( 'wheelDeltaX' in event ) {
                sX = -event.wheelDeltaX / 120;
            }
        
            // side scrolling on FF with DOMMouseScroll
            if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
                sX = sY;
                sY = 0;
            }
        
            pX = sX * PIXEL_STEP;
            pY = sY * PIXEL_STEP;
        
            if( 'deltaY' in event ) {
                pY = event.deltaY;
            }
            if( 'deltaX' in event ) {
                pX = event.deltaX;
            }
        
            if( (pX || pY) && event.deltaMode ) {
                if( event.deltaMode === 1 ) {          // delta in LINE units
                    pX *= LINE_HEIGHT;
                    pY *= LINE_HEIGHT;
                } else {                             // delta in PAGE units
                    pX *= PAGE_HEIGHT;
                    pY *= PAGE_HEIGHT;
                }
            }
        
            // Fall-back if spin cannot be determined
            if( pX && !sX ) {
                sX = (pX < 1) ? -1 : 1;
            }
            if( pY && !sY ) {
                sY = (pY < 1) ? -1 : 1;
            }
        
            return {
                spinX: sX,
                spinY: sY,
                pixelX: pX,
                pixelY: pY
            };
        }
        if (s.params.mousewheelControl) {
            /**
             * The best combination if you prefer spinX + spinY normalization.  It favors
             * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
             * 'wheel' event, making spin speed determination impossible.
             */
            s.mousewheel.event = (navigator.userAgent.indexOf('firefox') > -1) ?
                'DOMMouseScroll' :
                isEventSupported() ?
                    'wheel' : 'mousewheel';
        }
        function handleMousewheel(e) {
            if (e.originalEvent) e = e.originalEvent; //jquery fix
            var delta = 0;
            var rtlFactor = s.rtl ? -1 : 1;
        
            var data = normalizeWheel( e );
        
            if (s.params.mousewheelForceToAxis) {
                if (s.isHorizontal()) {
                    if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) delta = data.pixelX * rtlFactor;
                    else return;
                }
                else {
                    if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) delta = data.pixelY;
                    else return;
                }
            }
            else {
                delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? - data.pixelX * rtlFactor : - data.pixelY;
            }
        
            if (delta === 0) return;
        
            if (s.params.mousewheelInvert) delta = -delta;
        
            if (!s.params.freeMode) {
                if ((new window.Date()).getTime() - s.mousewheel.lastScrollTime > 60) {
                    if (delta < 0) {
                        if ((!s.isEnd || s.params.loop) && !s.animating) {
                            s.slideNext();
                            s.emit('onScroll', s, e);
                        }
                        else if (s.params.mousewheelReleaseOnEdges) return true;
                    }
                    else {
                        if ((!s.isBeginning || s.params.loop) && !s.animating) {
                            s.slidePrev();
                            s.emit('onScroll', s, e);
                        }
                        else if (s.params.mousewheelReleaseOnEdges) return true;
                    }
                }
                s.mousewheel.lastScrollTime = (new window.Date()).getTime();
        
            }
            else {
                //Freemode or scrollContainer:
                var position = s.getWrapperTranslate() + delta * s.params.mousewheelSensitivity;
                var wasBeginning = s.isBeginning,
                    wasEnd = s.isEnd;
        
                if (position >= s.minTranslate()) position = s.minTranslate();
                if (position <= s.maxTranslate()) position = s.maxTranslate();
        
                s.setWrapperTransition(0);
                s.setWrapperTranslate(position);
                s.updateProgress();
                s.updateActiveIndex();
        
                if (!wasBeginning && s.isBeginning || !wasEnd && s.isEnd) {
                    s.updateClasses();
                }
        
                if (s.params.freeModeSticky) {
                    clearTimeout(s.mousewheel.timeout);
                    s.mousewheel.timeout = setTimeout(function () {
                        s.slideReset();
                    }, 300);
                }
                else {
                    if (s.params.lazyLoading && s.lazy) {
                        s.lazy.load();
                    }
                }
                // Emit event
                s.emit('onScroll', s, e);
        
                // Stop autoplay
                if (s.params.autoplay && s.params.autoplayDisableOnInteraction) s.stopAutoplay();
        
                // Return page scroll on edge positions
                if (position === 0 || position === s.maxTranslate()) return;
            }
        
            if (e.preventDefault) e.preventDefault();
            else e.returnValue = false;
            return false;
        }
        s.disableMousewheelControl = function () {
            if (!s.mousewheel.event) return false;
            var target = s.container;
            if (s.params.mousewheelEventsTarged !== 'container') {
                target = $(s.params.mousewheelEventsTarged);
            }
            target.off(s.mousewheel.event, handleMousewheel);
            s.params.mousewheelControl = false;
            return true;
        };
        
        s.enableMousewheelControl = function () {
            if (!s.mousewheel.event) return false;
            var target = s.container;
            if (s.params.mousewheelEventsTarged !== 'container') {
                target = $(s.params.mousewheelEventsTarged);
            }
            target.on(s.mousewheel.event, handleMousewheel);
            s.params.mousewheelControl = true;
            return true;
        };
        

        /*=========================
          Parallax
          ===========================*/
        function setParallaxTransform(el, progress) {
            el = $(el);
            var p, pX, pY;
            var rtlFactor = s.rtl ? -1 : 1;
        
            p = el.attr('data-swiper-parallax') || '0';
            pX = el.attr('data-swiper-parallax-x');
            pY = el.attr('data-swiper-parallax-y');
            if (pX || pY) {
                pX = pX || '0';
                pY = pY || '0';
            }
            else {
                if (s.isHorizontal()) {
                    pX = p;
                    pY = '0';
                }
                else {
                    pY = p;
                    pX = '0';
                }
            }
        
            if ((pX).indexOf('%') >= 0) {
                pX = parseInt(pX, 10) * progress * rtlFactor + '%';
            }
            else {
                pX = pX * progress * rtlFactor + 'px' ;
            }
            if ((pY).indexOf('%') >= 0) {
                pY = parseInt(pY, 10) * progress + '%';
            }
            else {
                pY = pY * progress + 'px' ;
            }
        
            el.transform('translate3d(' + pX + ', ' + pY + ',0px)');
        }
        s.parallax = {
            setTranslate: function () {
                s.container.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function(){
                    setParallaxTransform(this, s.progress);
        
                });
                s.slides.each(function () {
                    var slide = $(this);
                    slide.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function () {
                        var progress = Math.min(Math.max(slide[0].progress, -1), 1);
                        setParallaxTransform(this, progress);
                    });
                });
            },
            setTransition: function (duration) {
                if (typeof duration === 'undefined') duration = s.params.speed;
                s.container.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function(){
                    var el = $(this);
                    var parallaxDuration = parseInt(el.attr('data-swiper-parallax-duration'), 10) || duration;
                    if (duration === 0) parallaxDuration = 0;
                    el.transition(parallaxDuration);
                });
            }
        };
        

        /*=========================
          Zoom
          ===========================*/
        s.zoom = {
            // "Global" Props
            scale: 1,
            currentScale: 1,
            isScaling: false,
            gesture: {
                slide: undefined,
                slideWidth: undefined,
                slideHeight: undefined,
                image: undefined,
                imageWrap: undefined,
                zoomMax: s.params.zoomMax
            },
            image: {
                isTouched: undefined,
                isMoved: undefined,
                currentX: undefined,
                currentY: undefined,
                minX: undefined,
                minY: undefined,
                maxX: undefined,
                maxY: undefined,
                width: undefined,
                height: undefined,
                startX: undefined,
                startY: undefined,
                touchesStart: {},
                touchesCurrent: {}
            },
            velocity: {
                x: undefined,
                y: undefined,
                prevPositionX: undefined,
                prevPositionY: undefined,
                prevTime: undefined
            },
            // Calc Scale From Multi-touches
            getDistanceBetweenTouches: function (e) {
                if (e.targetTouches.length < 2) return 1;
                var x1 = e.targetTouches[0].pageX,
                    y1 = e.targetTouches[0].pageY,
                    x2 = e.targetTouches[1].pageX,
                    y2 = e.targetTouches[1].pageY;
                var distance = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
                return distance;
            },
            // Events
            onGestureStart: function (e) {
                var z = s.zoom;
                if (!s.support.gestures) {
                    if (e.type !== 'touchstart' || e.type === 'touchstart' && e.targetTouches.length < 2) {
                        return;
                    }
                    z.gesture.scaleStart = z.getDistanceBetweenTouches(e);
                }
                if (!z.gesture.slide || !z.gesture.slide.length) {
                    z.gesture.slide = $(this);
                    if (z.gesture.slide.length === 0) z.gesture.slide = s.slides.eq(s.activeIndex);
                    z.gesture.image = z.gesture.slide.find('img, svg, canvas');
                    z.gesture.imageWrap = z.gesture.image.parent('.' + s.params.zoomContainerClass);
                    z.gesture.zoomMax = z.gesture.imageWrap.attr('data-swiper-zoom') || s.params.zoomMax ;
                    if (z.gesture.imageWrap.length === 0) {
                        z.gesture.image = undefined;
                        return;
                    }
                }
                z.gesture.image.transition(0);
                z.isScaling = true;
            },
            onGestureChange: function (e) {
                var z = s.zoom;
                if (!s.support.gestures) {
                    if (e.type !== 'touchmove' || e.type === 'touchmove' && e.targetTouches.length < 2) {
                        return;
                    }
                    z.gesture.scaleMove = z.getDistanceBetweenTouches(e);
                }
                if (!z.gesture.image || z.gesture.image.length === 0) return;
                if (s.support.gestures) {
                    z.scale = e.scale * z.currentScale;
                }
                else {
                    z.scale = (z.gesture.scaleMove / z.gesture.scaleStart) * z.currentScale;
                }
                if (z.scale > z.gesture.zoomMax) {
                    z.scale = z.gesture.zoomMax - 1 + Math.pow((z.scale - z.gesture.zoomMax + 1), 0.5);
                }
                if (z.scale < s.params.zoomMin) {
                    z.scale =  s.params.zoomMin + 1 - Math.pow((s.params.zoomMin - z.scale + 1), 0.5);
                }
                z.gesture.image.transform('translate3d(0,0,0) scale(' + z.scale + ')');
            },
            onGestureEnd: function (e) {
                var z = s.zoom;
                if (!s.support.gestures) {
                    if (e.type !== 'touchend' || e.type === 'touchend' && e.changedTouches.length < 2) {
                        return;
                    }
                }
                if (!z.gesture.image || z.gesture.image.length === 0) return;
                z.scale = Math.max(Math.min(z.scale, z.gesture.zoomMax), s.params.zoomMin);
                z.gesture.image.transition(s.params.speed).transform('translate3d(0,0,0) scale(' + z.scale + ')');
                z.currentScale = z.scale;
                z.isScaling = false;
                if (z.scale === 1) z.gesture.slide = undefined;
            },
            onTouchStart: function (s, e) {
                var z = s.zoom;
                if (!z.gesture.image || z.gesture.image.length === 0) return;
                if (z.image.isTouched) return;
                if (s.device.os === 'android') e.preventDefault();
                z.image.isTouched = true;
                z.image.touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
                z.image.touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
            },
            onTouchMove: function (e) {
                var z = s.zoom;
                if (!z.gesture.image || z.gesture.image.length === 0) return;
                s.allowClick = false;
                if (!z.image.isTouched || !z.gesture.slide) return;
        
                if (!z.image.isMoved) {
                    z.image.width = z.gesture.image[0].offsetWidth;
                    z.image.height = z.gesture.image[0].offsetHeight;
                    z.image.startX = s.getTranslate(z.gesture.imageWrap[0], 'x') || 0;
                    z.image.startY = s.getTranslate(z.gesture.imageWrap[0], 'y') || 0;
                    z.gesture.slideWidth = z.gesture.slide[0].offsetWidth;
                    z.gesture.slideHeight = z.gesture.slide[0].offsetHeight;
                    z.gesture.imageWrap.transition(0);
                    if (s.rtl) z.image.startX = -z.image.startX;
                    if (s.rtl) z.image.startY = -z.image.startY;
                }
                // Define if we need image drag
                var scaledWidth = z.image.width * z.scale;
                var scaledHeight = z.image.height * z.scale;
        
                if (scaledWidth < z.gesture.slideWidth && scaledHeight < z.gesture.slideHeight) return;
        
                z.image.minX = Math.min((z.gesture.slideWidth / 2 - scaledWidth / 2), 0);
                z.image.maxX = -z.image.minX;
                z.image.minY = Math.min((z.gesture.slideHeight / 2 - scaledHeight / 2), 0);
                z.image.maxY = -z.image.minY;
        
                z.image.touchesCurrent.x = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
                z.image.touchesCurrent.y = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
        
                if (!z.image.isMoved && !z.isScaling) {
                    if (s.isHorizontal() &&
                        (Math.floor(z.image.minX) === Math.floor(z.image.startX) && z.image.touchesCurrent.x < z.image.touchesStart.x) ||
                        (Math.floor(z.image.maxX) === Math.floor(z.image.startX) && z.image.touchesCurrent.x > z.image.touchesStart.x)
                        ) {
                        z.image.isTouched = false;
                        return;
                    }
                    else if (!s.isHorizontal() &&
                        (Math.floor(z.image.minY) === Math.floor(z.image.startY) && z.image.touchesCurrent.y < z.image.touchesStart.y) ||
                        (Math.floor(z.image.maxY) === Math.floor(z.image.startY) && z.image.touchesCurrent.y > z.image.touchesStart.y)
                        ) {
                        z.image.isTouched = false;
                        return;
                    }
                }
                e.preventDefault();
                e.stopPropagation();
        
                z.image.isMoved = true;
                z.image.currentX = z.image.touchesCurrent.x - z.image.touchesStart.x + z.image.startX;
                z.image.currentY = z.image.touchesCurrent.y - z.image.touchesStart.y + z.image.startY;
        
                if (z.image.currentX < z.image.minX) {
                    z.image.currentX =  z.image.minX + 1 - Math.pow((z.image.minX - z.image.currentX + 1), 0.8);
                }
                if (z.image.currentX > z.image.maxX) {
                    z.image.currentX = z.image.maxX - 1 + Math.pow((z.image.currentX - z.image.maxX + 1), 0.8);
                }
        
                if (z.image.currentY < z.image.minY) {
                    z.image.currentY =  z.image.minY + 1 - Math.pow((z.image.minY - z.image.currentY + 1), 0.8);
                }
                if (z.image.currentY > z.image.maxY) {
                    z.image.currentY = z.image.maxY - 1 + Math.pow((z.image.currentY - z.image.maxY + 1), 0.8);
                }
        
                //Velocity
                if (!z.velocity.prevPositionX) z.velocity.prevPositionX = z.image.touchesCurrent.x;
                if (!z.velocity.prevPositionY) z.velocity.prevPositionY = z.image.touchesCurrent.y;
                if (!z.velocity.prevTime) z.velocity.prevTime = Date.now();
                z.velocity.x = (z.image.touchesCurrent.x - z.velocity.prevPositionX) / (Date.now() - z.velocity.prevTime) / 2;
                z.velocity.y = (z.image.touchesCurrent.y - z.velocity.prevPositionY) / (Date.now() - z.velocity.prevTime) / 2;
                if (Math.abs(z.image.touchesCurrent.x - z.velocity.prevPositionX) < 2) z.velocity.x = 0;
                if (Math.abs(z.image.touchesCurrent.y - z.velocity.prevPositionY) < 2) z.velocity.y = 0;
                z.velocity.prevPositionX = z.image.touchesCurrent.x;
                z.velocity.prevPositionY = z.image.touchesCurrent.y;
                z.velocity.prevTime = Date.now();
        
                z.gesture.imageWrap.transform('translate3d(' + z.image.currentX + 'px, ' + z.image.currentY + 'px,0)');
            },
            onTouchEnd: function (s, e) {
                var z = s.zoom;
                if (!z.gesture.image || z.gesture.image.length === 0) return;
                if (!z.image.isTouched || !z.image.isMoved) {
                    z.image.isTouched = false;
                    z.image.isMoved = false;
                    return;
                }
                z.image.isTouched = false;
                z.image.isMoved = false;
                var momentumDurationX = 300;
                var momentumDurationY = 300;
                var momentumDistanceX = z.velocity.x * momentumDurationX;
                var newPositionX = z.image.currentX + momentumDistanceX;
                var momentumDistanceY = z.velocity.y * momentumDurationY;
                var newPositionY = z.image.currentY + momentumDistanceY;
        
                //Fix duration
                if (z.velocity.x !== 0) momentumDurationX = Math.abs((newPositionX - z.image.currentX) / z.velocity.x);
                if (z.velocity.y !== 0) momentumDurationY = Math.abs((newPositionY - z.image.currentY) / z.velocity.y);
                var momentumDuration = Math.max(momentumDurationX, momentumDurationY);
        
                z.image.currentX = newPositionX;
                z.image.currentY = newPositionY;
        
                // Define if we need image drag
                var scaledWidth = z.image.width * z.scale;
                var scaledHeight = z.image.height * z.scale;
                z.image.minX = Math.min((z.gesture.slideWidth / 2 - scaledWidth / 2), 0);
                z.image.maxX = -z.image.minX;
                z.image.minY = Math.min((z.gesture.slideHeight / 2 - scaledHeight / 2), 0);
                z.image.maxY = -z.image.minY;
                z.image.currentX = Math.max(Math.min(z.image.currentX, z.image.maxX), z.image.minX);
                z.image.currentY = Math.max(Math.min(z.image.currentY, z.image.maxY), z.image.minY);
        
                z.gesture.imageWrap.transition(momentumDuration).transform('translate3d(' + z.image.currentX + 'px, ' + z.image.currentY + 'px,0)');
            },
            onTransitionEnd: function (s) {
                var z = s.zoom;
                if (z.gesture.slide && s.previousIndex !== s.activeIndex) {
                    z.gesture.image.transform('translate3d(0,0,0) scale(1)');
                    z.gesture.imageWrap.transform('translate3d(0,0,0)');
                    z.gesture.slide = z.gesture.image = z.gesture.imageWrap = undefined;
                    z.scale = z.currentScale = 1;
                }
            },
            // Toggle Zoom
            toggleZoom: function (s, e) {
                var z = s.zoom;
                if (!z.gesture.slide) {
                    z.gesture.slide = s.clickedSlide ? $(s.clickedSlide) : s.slides.eq(s.activeIndex);
                    z.gesture.image = z.gesture.slide.find('img, svg, canvas');
                    z.gesture.imageWrap = z.gesture.image.parent('.' + s.params.zoomContainerClass);
                }
                if (!z.gesture.image || z.gesture.image.length === 0) return;
        
                var touchX, touchY, offsetX, offsetY, diffX, diffY, translateX, translateY, imageWidth, imageHeight, scaledWidth, scaledHeight, translateMinX, translateMinY, translateMaxX, translateMaxY, slideWidth, slideHeight;
        
                if (typeof z.image.touchesStart.x === 'undefined' && e) {
                    touchX = e.type === 'touchend' ? e.changedTouches[0].pageX : e.pageX;
                    touchY = e.type === 'touchend' ? e.changedTouches[0].pageY : e.pageY;
                }
                else {
                    touchX = z.image.touchesStart.x;
                    touchY = z.image.touchesStart.y;
                }
        
                if (z.scale && z.scale !== 1) {
                    // Zoom Out
                    z.scale = z.currentScale = 1;
                    z.gesture.imageWrap.transition(300).transform('translate3d(0,0,0)');
                    z.gesture.image.transition(300).transform('translate3d(0,0,0) scale(1)');
                    z.gesture.slide = undefined;
                }
                else {
                    // Zoom In
                    z.scale = z.currentScale = z.gesture.imageWrap.attr('data-swiper-zoom') || s.params.zoomMax;
                    if (e) {
                        slideWidth = z.gesture.slide[0].offsetWidth;
                        slideHeight = z.gesture.slide[0].offsetHeight;
                        offsetX = z.gesture.slide.offset().left;
                        offsetY = z.gesture.slide.offset().top;
                        diffX = offsetX + slideWidth/2 - touchX;
                        diffY = offsetY + slideHeight/2 - touchY;
        
                        imageWidth = z.gesture.image[0].offsetWidth;
                        imageHeight = z.gesture.image[0].offsetHeight;
                        scaledWidth = imageWidth * z.scale;
                        scaledHeight = imageHeight * z.scale;
        
                        translateMinX = Math.min((slideWidth / 2 - scaledWidth / 2), 0);
                        translateMinY = Math.min((slideHeight / 2 - scaledHeight / 2), 0);
                        translateMaxX = -translateMinX;
                        translateMaxY = -translateMinY;
        
                        translateX = diffX * z.scale;
                        translateY = diffY * z.scale;
        
                        if (translateX < translateMinX) {
                            translateX =  translateMinX;
                        }
                        if (translateX > translateMaxX) {
                            translateX = translateMaxX;
                        }
        
                        if (translateY < translateMinY) {
                            translateY =  translateMinY;
                        }
                        if (translateY > translateMaxY) {
                            translateY = translateMaxY;
                        }
                    }
                    else {
                        translateX = 0;
                        translateY = 0;
                    }
                    z.gesture.imageWrap.transition(300).transform('translate3d(' + translateX + 'px, ' + translateY + 'px,0)');
                    z.gesture.image.transition(300).transform('translate3d(0,0,0) scale(' + z.scale + ')');
                }
            },
            // Attach/Detach Events
            attachEvents: function (detach) {
                var action = detach ? 'off' : 'on';
        
                if (s.params.zoom) {
                    var target = s.slides;
                    var passiveListener = s.touchEvents.start === 'touchstart' && s.support.passiveListener && s.params.passiveListeners ? {passive: true, capture: false} : false;
                    // Scale image
                    if (s.support.gestures) {
                        s.slides[action]('gesturestart', s.zoom.onGestureStart, passiveListener);
                        s.slides[action]('gesturechange', s.zoom.onGestureChange, passiveListener);
                        s.slides[action]('gestureend', s.zoom.onGestureEnd, passiveListener);
                    }
                    else if (s.touchEvents.start === 'touchstart') {
                        s.slides[action](s.touchEvents.start, s.zoom.onGestureStart, passiveListener);
                        s.slides[action](s.touchEvents.move, s.zoom.onGestureChange, passiveListener);
                        s.slides[action](s.touchEvents.end, s.zoom.onGestureEnd, passiveListener);
                    }
        
                    // Move image
                    s[action]('touchStart', s.zoom.onTouchStart);
                    s.slides.each(function (index, slide){
                        if ($(slide).find('.' + s.params.zoomContainerClass).length > 0) {
                            $(slide)[action](s.touchEvents.move, s.zoom.onTouchMove);
                        }
                    });
                    s[action]('touchEnd', s.zoom.onTouchEnd);
        
                    // Scale Out
                    s[action]('transitionEnd', s.zoom.onTransitionEnd);
                    if (s.params.zoomToggle) {
                        s.on('doubleTap', s.zoom.toggleZoom);
                    }
                }
            },
            init: function () {
                s.zoom.attachEvents();
            },
            destroy: function () {
                s.zoom.attachEvents(true);
            }
        };
        

        /*=========================
          Plugins API. Collect all and init all plugins
          ===========================*/
        s._plugins = [];
        for (var plugin in s.plugins) {
            var p = s.plugins[plugin](s, s.params[plugin]);
            if (p) s._plugins.push(p);
        }
        // Method to call all plugins event/method
        s.callPlugins = function (eventName) {
            for (var i = 0; i < s._plugins.length; i++) {
                if (eventName in s._plugins[i]) {
                    s._plugins[i][eventName](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
                }
            }
        };
        

        /*=========================
          Events/Callbacks/Plugins Emitter
          ===========================*/
        function normalizeEventName (eventName) {
            if (eventName.indexOf('on') !== 0) {
                if (eventName[0] !== eventName[0].toUpperCase()) {
                    eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);
                }
                else {
                    eventName = 'on' + eventName;
                }
            }
            return eventName;
        }
        s.emitterEventListeners = {
        
        };
        s.emit = function (eventName) {
            // Trigger callbacks
            if (s.params[eventName]) {
                s.params[eventName](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
            }
            var i;
            // Trigger events
            if (s.emitterEventListeners[eventName]) {
                for (i = 0; i < s.emitterEventListeners[eventName].length; i++) {
                    s.emitterEventListeners[eventName][i](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
                }
            }
            // Trigger plugins
            if (s.callPlugins) s.callPlugins(eventName, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
        };
        s.on = function (eventName, handler) {
            eventName = normalizeEventName(eventName);
            if (!s.emitterEventListeners[eventName]) s.emitterEventListeners[eventName] = [];
            s.emitterEventListeners[eventName].push(handler);
            return s;
        };
        s.off = function (eventName, handler) {
            var i;
            eventName = normalizeEventName(eventName);
            if (typeof handler === 'undefined') {
                // Remove all handlers for such event
                s.emitterEventListeners[eventName] = [];
                return s;
            }
            if (!s.emitterEventListeners[eventName] || s.emitterEventListeners[eventName].length === 0) return;
            for (i = 0; i < s.emitterEventListeners[eventName].length; i++) {
                if(s.emitterEventListeners[eventName][i] === handler) s.emitterEventListeners[eventName].splice(i, 1);
            }
            return s;
        };
        s.once = function (eventName, handler) {
            eventName = normalizeEventName(eventName);
            var _handler = function () {
                handler(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
                s.off(eventName, _handler);
            };
            s.on(eventName, _handler);
            return s;
        };
        

        // Accessibility tools
        s.a11y = {
            makeFocusable: function ($el) {
                $el.attr('tabIndex', '0');
                return $el;
            },
            addRole: function ($el, role) {
                $el.attr('role', role);
                return $el;
            },
        
            addLabel: function ($el, label) {
                $el.attr('aria-label', label);
                return $el;
            },
        
            disable: function ($el) {
                $el.attr('aria-disabled', true);
                return $el;
            },
        
            enable: function ($el) {
                $el.attr('aria-disabled', false);
                return $el;
            },
        
            onEnterKey: function (event) {
                if (event.keyCode !== 13) return;
                if ($(event.target).is(s.params.nextButton)) {
                    s.onClickNext(event);
                    if (s.isEnd) {
                        s.a11y.notify(s.params.lastSlideMessage);
                    }
                    else {
                        s.a11y.notify(s.params.nextSlideMessage);
                    }
                }
                else if ($(event.target).is(s.params.prevButton)) {
                    s.onClickPrev(event);
                    if (s.isBeginning) {
                        s.a11y.notify(s.params.firstSlideMessage);
                    }
                    else {
                        s.a11y.notify(s.params.prevSlideMessage);
                    }
                }
                if ($(event.target).is('.' + s.params.bulletClass)) {
                    $(event.target)[0].click();
                }
            },
        
            liveRegion: $('<span class="' + s.params.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>'),
        
            notify: function (message) {
                var notification = s.a11y.liveRegion;
                if (notification.length === 0) return;
                notification.html('');
                notification.html(message);
            },
            init: function () {
                // Setup accessibility
                if (s.params.nextButton && s.nextButton && s.nextButton.length > 0) {
                    s.a11y.makeFocusable(s.nextButton);
                    s.a11y.addRole(s.nextButton, 'button');
                    s.a11y.addLabel(s.nextButton, s.params.nextSlideMessage);
                }
                if (s.params.prevButton && s.prevButton && s.prevButton.length > 0) {
                    s.a11y.makeFocusable(s.prevButton);
                    s.a11y.addRole(s.prevButton, 'button');
                    s.a11y.addLabel(s.prevButton, s.params.prevSlideMessage);
                }
        
                $(s.container).append(s.a11y.liveRegion);
            },
            initPagination: function () {
                if (s.params.pagination && s.params.paginationClickable && s.bullets && s.bullets.length) {
                    s.bullets.each(function () {
                        var bullet = $(this);
                        s.a11y.makeFocusable(bullet);
                        s.a11y.addRole(bullet, 'button');
                        s.a11y.addLabel(bullet, s.params.paginationBulletMessage.replace(/{{index}}/, bullet.index() + 1));
                    });
                }
            },
            destroy: function () {
                if (s.a11y.liveRegion && s.a11y.liveRegion.length > 0) s.a11y.liveRegion.remove();
            }
        };
        

        /*=========================
          Init/Destroy
          ===========================*/
        s.init = function () {
            if (s.params.loop) s.createLoop();
            s.updateContainerSize();
            s.updateSlidesSize();
            s.updatePagination();
            if (s.params.scrollbar && s.scrollbar) {
                s.scrollbar.set();
                if (s.params.scrollbarDraggable) {
                    s.scrollbar.enableDraggable();
                }
            }
            if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {
                if (!s.params.loop) s.updateProgress();
                s.effects[s.params.effect].setTranslate();
            }
            if (s.params.loop) {
                s.slideTo(s.params.initialSlide + s.loopedSlides, 0, s.params.runCallbacksOnInit);
            }
            else {
                s.slideTo(s.params.initialSlide, 0, s.params.runCallbacksOnInit);
                if (s.params.initialSlide === 0) {
                    if (s.parallax && s.params.parallax) s.parallax.setTranslate();
                    if (s.lazy && s.params.lazyLoading) {
                        s.lazy.load();
                        s.lazy.initialImageLoaded = true;
                    }
                }
            }
            s.attachEvents();
            if (s.params.observer && s.support.observer) {
                s.initObservers();
            }
            if (s.params.preloadImages && !s.params.lazyLoading) {
                s.preloadImages();
            }
            if (s.params.zoom && s.zoom) {
                s.zoom.init();
            }
            if (s.params.autoplay) {
                s.startAutoplay();
            }
            if (s.params.keyboardControl) {
                if (s.enableKeyboardControl) s.enableKeyboardControl();
            }
            if (s.params.mousewheelControl) {
                if (s.enableMousewheelControl) s.enableMousewheelControl();
            }
            // Deprecated hashnavReplaceState changed to replaceState for use in hashnav and history
            if (s.params.hashnavReplaceState) {
                s.params.replaceState = s.params.hashnavReplaceState;
            }
            if (s.params.history) {
                if (s.history) s.history.init();
            }
            if (s.params.hashnav) {
                if (s.hashnav) s.hashnav.init();
            }
            if (s.params.a11y && s.a11y) s.a11y.init();
            s.emit('onInit', s);
        };
        
        // Cleanup dynamic styles
        s.cleanupStyles = function () {
            // Container
            s.container.removeClass(s.classNames.join(' ')).removeAttr('style');
        
            // Wrapper
            s.wrapper.removeAttr('style');
        
            // Slides
            if (s.slides && s.slides.length) {
                s.slides
                    .removeClass([
                      s.params.slideVisibleClass,
                      s.params.slideActiveClass,
                      s.params.slideNextClass,
                      s.params.slidePrevClass
                    ].join(' '))
                    .removeAttr('style')
                    .removeAttr('data-swiper-column')
                    .removeAttr('data-swiper-row');
            }
        
            // Pagination/Bullets
            if (s.paginationContainer && s.paginationContainer.length) {
                s.paginationContainer.removeClass(s.params.paginationHiddenClass);
            }
            if (s.bullets && s.bullets.length) {
                s.bullets.removeClass(s.params.bulletActiveClass);
            }
        
            // Buttons
            if (s.params.prevButton) $(s.params.prevButton).removeClass(s.params.buttonDisabledClass);
            if (s.params.nextButton) $(s.params.nextButton).removeClass(s.params.buttonDisabledClass);
        
            // Scrollbar
            if (s.params.scrollbar && s.scrollbar) {
                if (s.scrollbar.track && s.scrollbar.track.length) s.scrollbar.track.removeAttr('style');
                if (s.scrollbar.drag && s.scrollbar.drag.length) s.scrollbar.drag.removeAttr('style');
            }
        };
        
        // Destroy
        s.destroy = function (deleteInstance, cleanupStyles) {
            // Detach evebts
            s.detachEvents();
            // Stop autoplay
            s.stopAutoplay();
            // Disable draggable
            if (s.params.scrollbar && s.scrollbar) {
                if (s.params.scrollbarDraggable) {
                    s.scrollbar.disableDraggable();
                }
            }
            // Destroy loop
            if (s.params.loop) {
                s.destroyLoop();
            }
            // Cleanup styles
            if (cleanupStyles) {
                s.cleanupStyles();
            }
            // Disconnect observer
            s.disconnectObservers();
        
            // Destroy zoom
            if (s.params.zoom && s.zoom) {
                s.zoom.destroy();
            }
            // Disable keyboard/mousewheel
            if (s.params.keyboardControl) {
                if (s.disableKeyboardControl) s.disableKeyboardControl();
            }
            if (s.params.mousewheelControl) {
                if (s.disableMousewheelControl) s.disableMousewheelControl();
            }
            // Disable a11y
            if (s.params.a11y && s.a11y) s.a11y.destroy();
            // Delete history popstate
            if (s.params.history && !s.params.replaceState) {
                window.removeEventListener('popstate', s.history.setHistoryPopState);
            }
            if (s.params.hashnav && s.hashnav)  {
                s.hashnav.destroy();
            }
            // Destroy callback
            s.emit('onDestroy');
            // Delete instance
            if (deleteInstance !== false) s = null;
        };
        
        s.init();
        

    
        // Return swiper instance
        return s;
    };
    

    /*==================================================
        Prototype
    ====================================================*/
    Swiper.prototype = {
        isSafari: (function () {
            var ua = window.navigator.userAgent.toLowerCase();
            return (ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0);
        })(),
        isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),
        isArray: function (arr) {
            return Object.prototype.toString.apply(arr) === '[object Array]';
        },
        /*==================================================
        Browser
        ====================================================*/
        browser: {
            ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
            ieTouch: (window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1) || (window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1),
            lteIE9: (function() {
                // create temporary DIV
                var div = document.createElement('div');
                // add content to tmp DIV which is wrapped into the IE HTML conditional statement
                div.innerHTML = '<!--[if lte IE 9]><i></i><![endif]-->';
                // return true / false value based on what will browser render
                return div.getElementsByTagName('i').length === 1;
            })()
        },
        /*==================================================
        Devices
        ====================================================*/
        device: (function () {
            var ua = window.navigator.userAgent;
            var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
            var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
            var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
            var iphone = !ipad && ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
            return {
                ios: ipad || iphone || ipod,
                android: android
            };
        })(),
        /*==================================================
        Feature Detection
        ====================================================*/
        support: {
            touch : (window.Modernizr && Modernizr.touch === true) || (function () {
                return !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch);
            })(),
    
            transforms3d : (window.Modernizr && Modernizr.csstransforms3d === true) || (function () {
                var div = document.createElement('div').style;
                return ('webkitPerspective' in div || 'MozPerspective' in div || 'OPerspective' in div || 'MsPerspective' in div || 'perspective' in div);
            })(),
    
            flexbox: (function () {
                var div = document.createElement('div').style;
                var styles = ('alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient').split(' ');
                for (var i = 0; i < styles.length; i++) {
                    if (styles[i] in div) return true;
                }
            })(),
    
            observer: (function () {
                return ('MutationObserver' in window || 'WebkitMutationObserver' in window);
            })(),
    
            passiveListener: (function () {
                var supportsPassive = false;
                try {
                    var opts = Object.defineProperty({}, 'passive', {
                        get: function() {
                            supportsPassive = true;
                        }
                    });
                    window.addEventListener('testPassiveListener', null, opts);
                } catch (e) {}
                return supportsPassive;
            })(),
    
            gestures: (function () {
                return 'ongesturestart' in window;
            })()
        },
        /*==================================================
        Plugins
        ====================================================*/
        plugins: {}
    };
    

    /*===========================
    Dom7 Library
    ===========================*/
    var Dom7 = (function () {
        var Dom7 = function (arr) {
            var _this = this, i = 0;
            // Create array-like object
            for (i = 0; i < arr.length; i++) {
                _this[i] = arr[i];
            }
            _this.length = arr.length;
            // Return collection with methods
            return this;
        };
        var $ = function (selector, context) {
            var arr = [], i = 0;
            if (selector && !context) {
                if (selector instanceof Dom7) {
                    return selector;
                }
            }
            if (selector) {
                // String
                if (typeof selector === 'string') {
                    var els, tempParent, html = selector.trim();
                    if (html.indexOf('<') >= 0 && html.indexOf('>') >= 0) {
                        var toCreate = 'div';
                        if (html.indexOf('<li') === 0) toCreate = 'ul';
                        if (html.indexOf('<tr') === 0) toCreate = 'tbody';
                        if (html.indexOf('<td') === 0 || html.indexOf('<th') === 0) toCreate = 'tr';
                        if (html.indexOf('<tbody') === 0) toCreate = 'table';
                        if (html.indexOf('<option') === 0) toCreate = 'select';
                        tempParent = document.createElement(toCreate);
                        tempParent.innerHTML = selector;
                        for (i = 0; i < tempParent.childNodes.length; i++) {
                            arr.push(tempParent.childNodes[i]);
                        }
                    }
                    else {
                        if (!context && selector[0] === '#' && !selector.match(/[ .<>:~]/)) {
                            // Pure ID selector
                            els = [document.getElementById(selector.split('#')[1])];
                        }
                        else {
                            // Other selectors
                            els = (context || document).querySelectorAll(selector);
                        }
                        for (i = 0; i < els.length; i++) {
                            if (els[i]) arr.push(els[i]);
                        }
                    }
                }
                // Node/element
                else if (selector.nodeType || selector === window || selector === document) {
                    arr.push(selector);
                }
                //Array of elements or instance of Dom
                else if (selector.length > 0 && selector[0].nodeType) {
                    for (i = 0; i < selector.length; i++) {
                        arr.push(selector[i]);
                    }
                }
            }
            return new Dom7(arr);
        };
        Dom7.prototype = {
            // Classes and attriutes
            addClass: function (className) {
                if (typeof className === 'undefined') {
                    return this;
                }
                var classes = className.split(' ');
                for (var i = 0; i < classes.length; i++) {
                    for (var j = 0; j < this.length; j++) {
                        this[j].classList.add(classes[i]);
                    }
                }
                return this;
            },
            removeClass: function (className) {
                var classes = className.split(' ');
                for (var i = 0; i < classes.length; i++) {
                    for (var j = 0; j < this.length; j++) {
                        this[j].classList.remove(classes[i]);
                    }
                }
                return this;
            },
            hasClass: function (className) {
                if (!this[0]) return false;
                else return this[0].classList.contains(className);
            },
            toggleClass: function (className) {
                var classes = className.split(' ');
                for (var i = 0; i < classes.length; i++) {
                    for (var j = 0; j < this.length; j++) {
                        this[j].classList.toggle(classes[i]);
                    }
                }
                return this;
            },
            attr: function (attrs, value) {
                if (arguments.length === 1 && typeof attrs === 'string') {
                    // Get attr
                    if (this[0]) return this[0].getAttribute(attrs);
                    else return undefined;
                }
                else {
                    // Set attrs
                    for (var i = 0; i < this.length; i++) {
                        if (arguments.length === 2) {
                            // String
                            this[i].setAttribute(attrs, value);
                        }
                        else {
                            // Object
                            for (var attrName in attrs) {
                                this[i][attrName] = attrs[attrName];
                                this[i].setAttribute(attrName, attrs[attrName]);
                            }
                        }
                    }
                    return this;
                }
            },
            removeAttr: function (attr) {
                for (var i = 0; i < this.length; i++) {
                    this[i].removeAttribute(attr);
                }
                return this;
            },
            data: function (key, value) {
                if (typeof value === 'undefined') {
                    // Get value
                    if (this[0]) {
                        var dataKey = this[0].getAttribute('data-' + key);
                        if (dataKey) return dataKey;
                        else if (this[0].dom7ElementDataStorage && (key in this[0].dom7ElementDataStorage)) return this[0].dom7ElementDataStorage[key];
                        else return undefined;
                    }
                    else return undefined;
                }
                else {
                    // Set value
                    for (var i = 0; i < this.length; i++) {
                        var el = this[i];
                        if (!el.dom7ElementDataStorage) el.dom7ElementDataStorage = {};
                        el.dom7ElementDataStorage[key] = value;
                    }
                    return this;
                }
            },
            // Transforms
            transform : function (transform) {
                for (var i = 0; i < this.length; i++) {
                    var elStyle = this[i].style;
                    elStyle.webkitTransform = elStyle.MsTransform = elStyle.msTransform = elStyle.MozTransform = elStyle.OTransform = elStyle.transform = transform;
                }
                return this;
            },
            transition: function (duration) {
                if (typeof duration !== 'string') {
                    duration = duration + 'ms';
                }
                for (var i = 0; i < this.length; i++) {
                    var elStyle = this[i].style;
                    elStyle.webkitTransitionDuration = elStyle.MsTransitionDuration = elStyle.msTransitionDuration = elStyle.MozTransitionDuration = elStyle.OTransitionDuration = elStyle.transitionDuration = duration;
                }
                return this;
            },
            //Events
            on: function (eventName, targetSelector, listener, capture) {
                function handleLiveEvent(e) {
                    var target = e.target;
                    if ($(target).is(targetSelector)) listener.call(target, e);
                    else {
                        var parents = $(target).parents();
                        for (var k = 0; k < parents.length; k++) {
                            if ($(parents[k]).is(targetSelector)) listener.call(parents[k], e);
                        }
                    }
                }
                var events = eventName.split(' ');
                var i, j;
                for (i = 0; i < this.length; i++) {
                    if (typeof targetSelector === 'function' || targetSelector === false) {
                        // Usual events
                        if (typeof targetSelector === 'function') {
                            listener = arguments[1];
                            capture = arguments[2] || false;
                        }
                        for (j = 0; j < events.length; j++) {
                            this[i].addEventListener(events[j], listener, capture);
                        }
                    }
                    else {
                        //Live events
                        for (j = 0; j < events.length; j++) {
                            if (!this[i].dom7LiveListeners) this[i].dom7LiveListeners = [];
                            this[i].dom7LiveListeners.push({listener: listener, liveListener: handleLiveEvent});
                            this[i].addEventListener(events[j], handleLiveEvent, capture);
                        }
                    }
                }
    
                return this;
            },
            off: function (eventName, targetSelector, listener, capture) {
                var events = eventName.split(' ');
                for (var i = 0; i < events.length; i++) {
                    for (var j = 0; j < this.length; j++) {
                        if (typeof targetSelector === 'function' || targetSelector === false) {
                            // Usual events
                            if (typeof targetSelector === 'function') {
                                listener = arguments[1];
                                capture = arguments[2] || false;
                            }
                            this[j].removeEventListener(events[i], listener, capture);
                        }
                        else {
                            // Live event
                            if (this[j].dom7LiveListeners) {
                                for (var k = 0; k < this[j].dom7LiveListeners.length; k++) {
                                    if (this[j].dom7LiveListeners[k].listener === listener) {
                                        this[j].removeEventListener(events[i], this[j].dom7LiveListeners[k].liveListener, capture);
                                    }
                                }
                            }
                        }
                    }
                }
                return this;
            },
            once: function (eventName, targetSelector, listener, capture) {
                var dom = this;
                if (typeof targetSelector === 'function') {
                    targetSelector = false;
                    listener = arguments[1];
                    capture = arguments[2];
                }
                function proxy(e) {
                    listener(e);
                    dom.off(eventName, targetSelector, proxy, capture);
                }
                dom.on(eventName, targetSelector, proxy, capture);
            },
            trigger: function (eventName, eventData) {
                for (var i = 0; i < this.length; i++) {
                    var evt;
                    try {
                        evt = new window.CustomEvent(eventName, {detail: eventData, bubbles: true, cancelable: true});
                    }
                    catch (e) {
                        evt = document.createEvent('Event');
                        evt.initEvent(eventName, true, true);
                        evt.detail = eventData;
                    }
                    this[i].dispatchEvent(evt);
                }
                return this;
            },
            transitionEnd: function (callback) {
                var events = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'],
                    i, j, dom = this;
                function fireCallBack(e) {
                    /*jshint validthis:true */
                    if (e.target !== this) return;
                    callback.call(this, e);
                    for (i = 0; i < events.length; i++) {
                        dom.off(events[i], fireCallBack);
                    }
                }
                if (callback) {
                    for (i = 0; i < events.length; i++) {
                        dom.on(events[i], fireCallBack);
                    }
                }
                return this;
            },
            // Sizing/Styles
            width: function () {
                if (this[0] === window) {
                    return window.innerWidth;
                }
                else {
                    if (this.length > 0) {
                        return parseFloat(this.css('width'));
                    }
                    else {
                        return null;
                    }
                }
            },
            outerWidth: function (includeMargins) {
                if (this.length > 0) {
                    if (includeMargins)
                        return this[0].offsetWidth + parseFloat(this.css('margin-right')) + parseFloat(this.css('margin-left'));
                    else
                        return this[0].offsetWidth;
                }
                else return null;
            },
            height: function () {
                if (this[0] === window) {
                    return window.innerHeight;
                }
                else {
                    if (this.length > 0) {
                        return parseFloat(this.css('height'));
                    }
                    else {
                        return null;
                    }
                }
            },
            outerHeight: function (includeMargins) {
                if (this.length > 0) {
                    if (includeMargins)
                        return this[0].offsetHeight + parseFloat(this.css('margin-top')) + parseFloat(this.css('margin-bottom'));
                    else
                        return this[0].offsetHeight;
                }
                else return null;
            },
            offset: function () {
                if (this.length > 0) {
                    var el = this[0];
                    var box = el.getBoundingClientRect();
                    var body = document.body;
                    var clientTop  = el.clientTop  || body.clientTop  || 0;
                    var clientLeft = el.clientLeft || body.clientLeft || 0;
                    var scrollTop  = window.pageYOffset || el.scrollTop;
                    var scrollLeft = window.pageXOffset || el.scrollLeft;
                    return {
                        top: box.top  + scrollTop  - clientTop,
                        left: box.left + scrollLeft - clientLeft
                    };
                }
                else {
                    return null;
                }
            },
            css: function (props, value) {
                var i;
                if (arguments.length === 1) {
                    if (typeof props === 'string') {
                        if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(props);
                    }
                    else {
                        for (i = 0; i < this.length; i++) {
                            for (var prop in props) {
                                this[i].style[prop] = props[prop];
                            }
                        }
                        return this;
                    }
                }
                if (arguments.length === 2 && typeof props === 'string') {
                    for (i = 0; i < this.length; i++) {
                        this[i].style[props] = value;
                    }
                    return this;
                }
                return this;
            },
    
            //Dom manipulation
            each: function (callback) {
                for (var i = 0; i < this.length; i++) {
                    callback.call(this[i], i, this[i]);
                }
                return this;
            },
            html: function (html) {
                if (typeof html === 'undefined') {
                    return this[0] ? this[0].innerHTML : undefined;
                }
                else {
                    for (var i = 0; i < this.length; i++) {
                        this[i].innerHTML = html;
                    }
                    return this;
                }
            },
            text: function (text) {
                if (typeof text === 'undefined') {
                    if (this[0]) {
                        return this[0].textContent.trim();
                    }
                    else return null;
                }
                else {
                    for (var i = 0; i < this.length; i++) {
                        this[i].textContent = text;
                    }
                    return this;
                }
            },
            is: function (selector) {
                if (!this[0]) return false;
                var compareWith, i;
                if (typeof selector === 'string') {
                    var el = this[0];
                    if (el === document) return selector === document;
                    if (el === window) return selector === window;
    
                    if (el.matches) return el.matches(selector);
                    else if (el.webkitMatchesSelector) return el.webkitMatchesSelector(selector);
                    else if (el.mozMatchesSelector) return el.mozMatchesSelector(selector);
                    else if (el.msMatchesSelector) return el.msMatchesSelector(selector);
                    else {
                        compareWith = $(selector);
                        for (i = 0; i < compareWith.length; i++) {
                            if (compareWith[i] === this[0]) return true;
                        }
                        return false;
                    }
                }
                else if (selector === document) return this[0] === document;
                else if (selector === window) return this[0] === window;
                else {
                    if (selector.nodeType || selector instanceof Dom7) {
                        compareWith = selector.nodeType ? [selector] : selector;
                        for (i = 0; i < compareWith.length; i++) {
                            if (compareWith[i] === this[0]) return true;
                        }
                        return false;
                    }
                    return false;
                }
    
            },
            index: function () {
                if (this[0]) {
                    var child = this[0];
                    var i = 0;
                    while ((child = child.previousSibling) !== null) {
                        if (child.nodeType === 1) i++;
                    }
                    return i;
                }
                else return undefined;
            },
            eq: function (index) {
                if (typeof index === 'undefined') return this;
                var length = this.length;
                var returnIndex;
                if (index > length - 1) {
                    return new Dom7([]);
                }
                if (index < 0) {
                    returnIndex = length + index;
                    if (returnIndex < 0) return new Dom7([]);
                    else return new Dom7([this[returnIndex]]);
                }
                return new Dom7([this[index]]);
            },
            append: function (newChild) {
                var i, j;
                for (i = 0; i < this.length; i++) {
                    if (typeof newChild === 'string') {
                        var tempDiv = document.createElement('div');
                        tempDiv.innerHTML = newChild;
                        while (tempDiv.firstChild) {
                            this[i].appendChild(tempDiv.firstChild);
                        }
                    }
                    else if (newChild instanceof Dom7) {
                        for (j = 0; j < newChild.length; j++) {
                            this[i].appendChild(newChild[j]);
                        }
                    }
                    else {
                        this[i].appendChild(newChild);
                    }
                }
                return this;
            },
            prepend: function (newChild) {
                var i, j;
                for (i = 0; i < this.length; i++) {
                    if (typeof newChild === 'string') {
                        var tempDiv = document.createElement('div');
                        tempDiv.innerHTML = newChild;
                        for (j = tempDiv.childNodes.length - 1; j >= 0; j--) {
                            this[i].insertBefore(tempDiv.childNodes[j], this[i].childNodes[0]);
                        }
                        // this[i].insertAdjacentHTML('afterbegin', newChild);
                    }
                    else if (newChild instanceof Dom7) {
                        for (j = 0; j < newChild.length; j++) {
                            this[i].insertBefore(newChild[j], this[i].childNodes[0]);
                        }
                    }
                    else {
                        this[i].insertBefore(newChild, this[i].childNodes[0]);
                    }
                }
                return this;
            },
            insertBefore: function (selector) {
                var before = $(selector);
                for (var i = 0; i < this.length; i++) {
                    if (before.length === 1) {
                        before[0].parentNode.insertBefore(this[i], before[0]);
                    }
                    else if (before.length > 1) {
                        for (var j = 0; j < before.length; j++) {
                            before[j].parentNode.insertBefore(this[i].cloneNode(true), before[j]);
                        }
                    }
                }
            },
            insertAfter: function (selector) {
                var after = $(selector);
                for (var i = 0; i < this.length; i++) {
                    if (after.length === 1) {
                        after[0].parentNode.insertBefore(this[i], after[0].nextSibling);
                    }
                    else if (after.length > 1) {
                        for (var j = 0; j < after.length; j++) {
                            after[j].parentNode.insertBefore(this[i].cloneNode(true), after[j].nextSibling);
                        }
                    }
                }
            },
            next: function (selector) {
                if (this.length > 0) {
                    if (selector) {
                        if (this[0].nextElementSibling && $(this[0].nextElementSibling).is(selector)) return new Dom7([this[0].nextElementSibling]);
                        else return new Dom7([]);
                    }
                    else {
                        if (this[0].nextElementSibling) return new Dom7([this[0].nextElementSibling]);
                        else return new Dom7([]);
                    }
                }
                else return new Dom7([]);
            },
            nextAll: function (selector) {
                var nextEls = [];
                var el = this[0];
                if (!el) return new Dom7([]);
                while (el.nextElementSibling) {
                    var next = el.nextElementSibling;
                    if (selector) {
                        if($(next).is(selector)) nextEls.push(next);
                    }
                    else nextEls.push(next);
                    el = next;
                }
                return new Dom7(nextEls);
            },
            prev: function (selector) {
                if (this.length > 0) {
                    if (selector) {
                        if (this[0].previousElementSibling && $(this[0].previousElementSibling).is(selector)) return new Dom7([this[0].previousElementSibling]);
                        else return new Dom7([]);
                    }
                    else {
                        if (this[0].previousElementSibling) return new Dom7([this[0].previousElementSibling]);
                        else return new Dom7([]);
                    }
                }
                else return new Dom7([]);
            },
            prevAll: function (selector) {
                var prevEls = [];
                var el = this[0];
                if (!el) return new Dom7([]);
                while (el.previousElementSibling) {
                    var prev = el.previousElementSibling;
                    if (selector) {
                        if($(prev).is(selector)) prevEls.push(prev);
                    }
                    else prevEls.push(prev);
                    el = prev;
                }
                return new Dom7(prevEls);
            },
            parent: function (selector) {
                var parents = [];
                for (var i = 0; i < this.length; i++) {
                    if (selector) {
                        if ($(this[i].parentNode).is(selector)) parents.push(this[i].parentNode);
                    }
                    else {
                        parents.push(this[i].parentNode);
                    }
                }
                return $($.unique(parents));
            },
            parents: function (selector) {
                var parents = [];
                for (var i = 0; i < this.length; i++) {
                    var parent = this[i].parentNode;
                    while (parent) {
                        if (selector) {
                            if ($(parent).is(selector)) parents.push(parent);
                        }
                        else {
                            parents.push(parent);
                        }
                        parent = parent.parentNode;
                    }
                }
                return $($.unique(parents));
            },
            find : function (selector) {
                var foundElements = [];
                for (var i = 0; i < this.length; i++) {
                    var found = this[i].querySelectorAll(selector);
                    for (var j = 0; j < found.length; j++) {
                        foundElements.push(found[j]);
                    }
                }
                return new Dom7(foundElements);
            },
            children: function (selector) {
                var children = [];
                for (var i = 0; i < this.length; i++) {
                    var childNodes = this[i].childNodes;
    
                    for (var j = 0; j < childNodes.length; j++) {
                        if (!selector) {
                            if (childNodes[j].nodeType === 1) children.push(childNodes[j]);
                        }
                        else {
                            if (childNodes[j].nodeType === 1 && $(childNodes[j]).is(selector)) children.push(childNodes[j]);
                        }
                    }
                }
                return new Dom7($.unique(children));
            },
            remove: function () {
                for (var i = 0; i < this.length; i++) {
                    if (this[i].parentNode) this[i].parentNode.removeChild(this[i]);
                }
                return this;
            },
            add: function () {
                var dom = this;
                var i, j;
                for (i = 0; i < arguments.length; i++) {
                    var toAdd = $(arguments[i]);
                    for (j = 0; j < toAdd.length; j++) {
                        dom[dom.length] = toAdd[j];
                        dom.length++;
                    }
                }
                return dom;
            }
        };
        $.fn = Dom7.prototype;
        $.unique = function (arr) {
            var unique = [];
            for (var i = 0; i < arr.length; i++) {
                if (unique.indexOf(arr[i]) === -1) unique.push(arr[i]);
            }
            return unique;
        };
    
        return $;
    })();
    

    /*===========================
     Get Dom libraries
     ===========================*/
    var swiperDomPlugins = ['jQuery', 'Zepto', 'Dom7'];
    for (var i = 0; i < swiperDomPlugins.length; i++) {
    	if (window[swiperDomPlugins[i]]) {
    		addLibraryPlugin(window[swiperDomPlugins[i]]);
    	}
    }
    // Required DOM Plugins
    var domLib;
    if (typeof Dom7 === 'undefined') {
    	domLib = window.Dom7 || window.Zepto || window.jQuery;
    }
    else {
    	domLib = Dom7;
    }
    

    /*===========================
    Add .swiper plugin from Dom libraries
    ===========================*/
    function addLibraryPlugin(lib) {
        lib.fn.swiper = function (params) {
            var firstInstance;
            lib(this).each(function () {
                var s = new Swiper(this, params);
                if (!firstInstance) firstInstance = s;
            });
            return firstInstance;
        };
    }
    
    if (domLib) {
        if (!('transitionEnd' in domLib.fn)) {
            domLib.fn.transitionEnd = function (callback) {
                var events = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'],
                    i, j, dom = this;
                function fireCallBack(e) {
                    /*jshint validthis:true */
                    if (e.target !== this) return;
                    callback.call(this, e);
                    for (i = 0; i < events.length; i++) {
                        dom.off(events[i], fireCallBack);
                    }
                }
                if (callback) {
                    for (i = 0; i < events.length; i++) {
                        dom.on(events[i], fireCallBack);
                    }
                }
                return this;
            };
        }
        if (!('transform' in domLib.fn)) {
            domLib.fn.transform = function (transform) {
                for (var i = 0; i < this.length; i++) {
                    var elStyle = this[i].style;
                    elStyle.webkitTransform = elStyle.MsTransform = elStyle.msTransform = elStyle.MozTransform = elStyle.OTransform = elStyle.transform = transform;
                }
                return this;
            };
        }
        if (!('transition' in domLib.fn)) {
            domLib.fn.transition = function (duration) {
                if (typeof duration !== 'string') {
                    duration = duration + 'ms';
                }
                for (var i = 0; i < this.length; i++) {
                    var elStyle = this[i].style;
                    elStyle.webkitTransitionDuration = elStyle.MsTransitionDuration = elStyle.msTransitionDuration = elStyle.MozTransitionDuration = elStyle.OTransitionDuration = elStyle.transitionDuration = duration;
                }
                return this;
            };
        }
        if (!('outerWidth' in domLib.fn)) {
            domLib.fn.outerWidth = function (includeMargins) {
                if (this.length > 0) {
                    if (includeMargins)
                        return this[0].offsetWidth + parseFloat(this.css('margin-right')) + parseFloat(this.css('margin-left'));
                    else
                        return this[0].offsetWidth;
                }
                else return null;
            };
        }
    }
    

    window.Swiper = Swiper;
})();

/*===========================
Swiper AMD Export
===========================*/
if (true)
{
    module.exports = window.Swiper;
}
else {}

//# sourceMappingURL=maps/swiper.js.map

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(289);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_vue_loader_lib_selector_type_script_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_vue_loader_lib_selector_type_script_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_vue_loader_lib_selector_type_script_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _vue_loader_lib_template_compiler_index_id_data_v_daaebb18_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(876);
/* harmony import */ var _vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_vue_loader_lib_selector_type_script_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _vue_loader_lib_template_compiler_index_id_data_v_daaebb18_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _vue_loader_lib_template_compiler_index_id_data_v_daaebb18_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_swiper_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//

var browser = typeof window !== 'undefined';
if (browser) window.Swiper = __webpack_require__(1383);
var _default2 = exports.default = {
  name: 'swiper',
  props: {
    options: {
      type: Object,
      default: function _default() {
        return {
          autoplay: 3500
        };
      }
    },
    notNextTick: {
      type: Boolean,
      default: function _default() {
        return false;
      }
    }
  },
  data: function data() {
    return {
      defaultSwiperClasses: {
        wrapperClass: 'swiper-wrapper'
      }
    };
  },
  ready: function ready() {
    if (!this.swiper && browser) {
      this.swiper = new Swiper(this.$el, this.options);
    }
  },
  mounted: function mounted() {
    var self = this;
    var mount = function () {
      if (!self.swiper && browser) {
        delete self.options.notNextTick;
        var setClassName = false;
        for (var className in self.defaultSwiperClasses) {
          if (self.defaultSwiperClasses.hasOwnProperty(className)) {
            if (self.options[className]) {
              setClassName = true;
              self.defaultSwiperClasses[className] = self.options[className];
            }
          }
        }
        var mountInstance = function mountInstance() {
          self.swiper = new Swiper(self.$el, self.options);
        };
        setClassName ? self.$nextTick(mountInstance) : mountInstance();
      }
    }(this.options.notNextTick || this.notNextTick) ? mount() : this.$nextTick(mount);
  },
  updated: function updated() {
    if (this.swiper) {
      this.swiper.update();
    }
  },
  beforeDestroy: function beforeDestroy() {
    if (this.swiper) {
      this.swiper.destroy();
      delete this.swiper;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"swiper-container"},[_vm._t("parallax-bg"),_vm._v(" "),_c('div',{class:_vm.defaultSwiperClasses.wrapperClass},[_vm._t("default")],2),_vm._v(" "),_vm._t("pagination"),_vm._v(" "),_vm._t("button-prev"),_vm._v(" "),_vm._t("button-next"),_vm._v(" "),_vm._t("scrollbar")],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(290);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_vue_loader_lib_selector_type_script_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_vue_loader_lib_selector_type_script_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_vue_loader_lib_selector_type_script_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _vue_loader_lib_template_compiler_index_id_data_v_5e316b28_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(877);
/* harmony import */ var _vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_vue_loader_lib_selector_type_script_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _vue_loader_lib_template_compiler_index_id_data_v_5e316b28_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _vue_loader_lib_template_compiler_index_id_data_v_5e316b28_hasScoped_false_optionsId_0_buble_transforms_vue_loader_lib_selector_type_template_index_0_slide_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
var _default = exports.default = {
  name: 'swiper-slide',
  data: function data() {
    return {
      slideClass: 'swiper-slide'
    };
  },
  ready: function ready() {
    this.update();
  },
  mounted: function mounted() {
    this.update();
    if (this.$parent.options.slideClass) {
      this.slideClass = this.$parent.options.slideClass;
    }
  },
  updated: function updated() {
    this.update();
  },
  attached: function attached() {
    this.update();
  },
  methods: {
    update: function update() {
      if (this.$parent && this.$parent.swiper && this.$parent.swiper.update) {
        this.$parent.swiper.update(true);
        if (this.$parent.options.loop) {
          this.$parent.swiper.reLoop();
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.slideClass},[_vm._t("default")],2)}
var staticRenderFns = []
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2072);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3147b09e", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, "/**\n * Swiper 3.4.2\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * \n * http://www.idangero.us/swiper/\n * \n * Copyright 2017, Vladimir Kharlampidi\n * The iDangero.us\n * http://www.idangero.us/\n * \n * Licensed under MIT\n * \n * Released on: March 10, 2017\n */\n.swiper-container {\n  margin-left: auto;\n  margin-right: auto;\n  position: relative;\n  overflow: hidden;\n  /* Fix of Webkit flickering */\n  z-index: 1;\n}\n.swiper-container-no-flexbox .swiper-slide {\n  float: left;\n}\n.swiper-container-vertical > .swiper-wrapper {\n  -webkit-box-orient: vertical;\n  -moz-box-orient: vertical;\n  -ms-flex-direction: column;\n  -webkit-flex-direction: column;\n  flex-direction: column;\n}\n.swiper-wrapper {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  z-index: 1;\n  display: -webkit-box;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: -webkit-flex;\n  display: flex;\n  -webkit-transition-property: -webkit-transform;\n  -moz-transition-property: -moz-transform;\n  -o-transition-property: -o-transform;\n  -ms-transition-property: -ms-transform;\n  transition-property: transform;\n  -webkit-box-sizing: content-box;\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n}\n.swiper-container-android .swiper-slide,\n.swiper-wrapper {\n  -webkit-transform: translate3d(0px, 0, 0);\n  -moz-transform: translate3d(0px, 0, 0);\n  -o-transform: translate(0px, 0px);\n  -ms-transform: translate3d(0px, 0, 0);\n  transform: translate3d(0px, 0, 0);\n}\n.swiper-container-multirow > .swiper-wrapper {\n  -webkit-box-lines: multiple;\n  -moz-box-lines: multiple;\n  -ms-flex-wrap: wrap;\n  -webkit-flex-wrap: wrap;\n  flex-wrap: wrap;\n}\n.swiper-container-free-mode > .swiper-wrapper {\n  -webkit-transition-timing-function: ease-out;\n  -moz-transition-timing-function: ease-out;\n  -ms-transition-timing-function: ease-out;\n  -o-transition-timing-function: ease-out;\n  transition-timing-function: ease-out;\n  margin: 0 auto;\n}\n.swiper-slide {\n  -webkit-flex-shrink: 0;\n  -ms-flex: 0 0 auto;\n  flex-shrink: 0;\n  width: 100%;\n  height: 100%;\n  position: relative;\n}\n/* Auto Height */\n.swiper-container-autoheight,\n.swiper-container-autoheight .swiper-slide {\n  height: auto;\n}\n.swiper-container-autoheight .swiper-wrapper {\n  -webkit-box-align: start;\n  -ms-flex-align: start;\n  -webkit-align-items: flex-start;\n  align-items: flex-start;\n  -webkit-transition-property: -webkit-transform, height;\n  -moz-transition-property: -moz-transform;\n  -o-transition-property: -o-transform;\n  -ms-transition-property: -ms-transform;\n  transition-property: transform, height;\n}\n/* a11y */\n.swiper-container .swiper-notification {\n  position: absolute;\n  left: 0;\n  top: 0;\n  pointer-events: none;\n  opacity: 0;\n  z-index: -1000;\n}\n/* IE10 Windows Phone 8 Fixes */\n.swiper-wp8-horizontal {\n  -ms-touch-action: pan-y;\n  touch-action: pan-y;\n}\n.swiper-wp8-vertical {\n  -ms-touch-action: pan-x;\n  touch-action: pan-x;\n}\n/* Arrows */\n.swiper-button-prev,\n.swiper-button-next {\n  position: absolute;\n  top: 50%;\n  width: 27px;\n  height: 44px;\n  margin-top: -22px;\n  z-index: 10;\n  cursor: pointer;\n  -moz-background-size: 27px 44px;\n  -webkit-background-size: 27px 44px;\n  background-size: 27px 44px;\n  background-position: center;\n  background-repeat: no-repeat;\n}\n.swiper-button-prev.swiper-button-disabled,\n.swiper-button-next.swiper-button-disabled {\n  opacity: 0.35;\n  cursor: auto;\n  pointer-events: none;\n}\n.swiper-button-prev,\n.swiper-container-rtl .swiper-button-next {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");\n  left: 10px;\n  right: auto;\n}\n.swiper-button-prev.swiper-button-black,\n.swiper-container-rtl .swiper-button-next.swiper-button-black {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\");\n}\n.swiper-button-prev.swiper-button-white,\n.swiper-container-rtl .swiper-button-next.swiper-button-white {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\");\n}\n.swiper-button-next,\n.swiper-container-rtl .swiper-button-prev {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");\n  right: 10px;\n  left: auto;\n}\n.swiper-button-next.swiper-button-black,\n.swiper-container-rtl .swiper-button-prev.swiper-button-black {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\");\n}\n.swiper-button-next.swiper-button-white,\n.swiper-container-rtl .swiper-button-prev.swiper-button-white {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\");\n}\n/* Pagination Styles */\n.swiper-pagination {\n  position: absolute;\n  text-align: center;\n  -webkit-transition: 300ms;\n  -moz-transition: 300ms;\n  -o-transition: 300ms;\n  transition: 300ms;\n  -webkit-transform: translate3d(0, 0, 0);\n  -ms-transform: translate3d(0, 0, 0);\n  -o-transform: translate3d(0, 0, 0);\n  transform: translate3d(0, 0, 0);\n  z-index: 10;\n}\n.swiper-pagination.swiper-pagination-hidden {\n  opacity: 0;\n}\n/* Common Styles */\n.swiper-pagination-fraction,\n.swiper-pagination-custom,\n.swiper-container-horizontal > .swiper-pagination-bullets {\n  bottom: 10px;\n  left: 0;\n  width: 100%;\n}\n/* Bullets */\n.swiper-pagination-bullet {\n  width: 8px;\n  height: 8px;\n  display: inline-block;\n  border-radius: 100%;\n  background: #000;\n  opacity: 0.2;\n}\nbutton.swiper-pagination-bullet {\n  border: none;\n  margin: 0;\n  padding: 0;\n  box-shadow: none;\n  -moz-appearance: none;\n  -ms-appearance: none;\n  -webkit-appearance: none;\n  appearance: none;\n}\n.swiper-pagination-clickable .swiper-pagination-bullet {\n  cursor: pointer;\n}\n.swiper-pagination-white .swiper-pagination-bullet {\n  background: #fff;\n}\n.swiper-pagination-bullet-active {\n  opacity: 1;\n  background: #007aff;\n}\n.swiper-pagination-white .swiper-pagination-bullet-active {\n  background: #fff;\n}\n.swiper-pagination-black .swiper-pagination-bullet-active {\n  background: #000;\n}\n.swiper-container-vertical > .swiper-pagination-bullets {\n  right: 10px;\n  top: 50%;\n  -webkit-transform: translate3d(0px, -50%, 0);\n  -moz-transform: translate3d(0px, -50%, 0);\n  -o-transform: translate(0px, -50%);\n  -ms-transform: translate3d(0px, -50%, 0);\n  transform: translate3d(0px, -50%, 0);\n}\n.swiper-container-vertical > .swiper-pagination-bullets .swiper-pagination-bullet {\n  margin: 5px 0;\n  display: block;\n}\n.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {\n  margin: 0 5px;\n}\n/* Progress */\n.swiper-pagination-progress {\n  background: rgba(0, 0, 0, 0.25);\n  position: absolute;\n}\n.swiper-pagination-progress .swiper-pagination-progressbar {\n  background: #007aff;\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  -webkit-transform: scale(0);\n  -ms-transform: scale(0);\n  -o-transform: scale(0);\n  transform: scale(0);\n  -webkit-transform-origin: left top;\n  -moz-transform-origin: left top;\n  -ms-transform-origin: left top;\n  -o-transform-origin: left top;\n  transform-origin: left top;\n}\n.swiper-container-rtl .swiper-pagination-progress .swiper-pagination-progressbar {\n  -webkit-transform-origin: right top;\n  -moz-transform-origin: right top;\n  -ms-transform-origin: right top;\n  -o-transform-origin: right top;\n  transform-origin: right top;\n}\n.swiper-container-horizontal > .swiper-pagination-progress {\n  width: 100%;\n  height: 4px;\n  left: 0;\n  top: 0;\n}\n.swiper-container-vertical > .swiper-pagination-progress {\n  width: 4px;\n  height: 100%;\n  left: 0;\n  top: 0;\n}\n.swiper-pagination-progress.swiper-pagination-white {\n  background: rgba(255, 255, 255, 0.5);\n}\n.swiper-pagination-progress.swiper-pagination-white .swiper-pagination-progressbar {\n  background: #fff;\n}\n.swiper-pagination-progress.swiper-pagination-black .swiper-pagination-progressbar {\n  background: #000;\n}\n/* 3D Container */\n.swiper-container-3d {\n  -webkit-perspective: 1200px;\n  -moz-perspective: 1200px;\n  -o-perspective: 1200px;\n  perspective: 1200px;\n}\n.swiper-container-3d .swiper-wrapper,\n.swiper-container-3d .swiper-slide,\n.swiper-container-3d .swiper-slide-shadow-left,\n.swiper-container-3d .swiper-slide-shadow-right,\n.swiper-container-3d .swiper-slide-shadow-top,\n.swiper-container-3d .swiper-slide-shadow-bottom,\n.swiper-container-3d .swiper-cube-shadow {\n  -webkit-transform-style: preserve-3d;\n  -moz-transform-style: preserve-3d;\n  -ms-transform-style: preserve-3d;\n  transform-style: preserve-3d;\n}\n.swiper-container-3d .swiper-slide-shadow-left,\n.swiper-container-3d .swiper-slide-shadow-right,\n.swiper-container-3d .swiper-slide-shadow-top,\n.swiper-container-3d .swiper-slide-shadow-bottom {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  pointer-events: none;\n  z-index: 10;\n}\n.swiper-container-3d .swiper-slide-shadow-left {\n  background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n.swiper-container-3d .swiper-slide-shadow-right {\n  background-image: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n.swiper-container-3d .swiper-slide-shadow-top {\n  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n.swiper-container-3d .swiper-slide-shadow-bottom {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n/* Coverflow */\n.swiper-container-coverflow .swiper-wrapper,\n.swiper-container-flip .swiper-wrapper {\n  /* Windows 8 IE 10 fix */\n  -ms-perspective: 1200px;\n}\n/* Cube + Flip */\n.swiper-container-cube,\n.swiper-container-flip {\n  overflow: visible;\n}\n.swiper-container-cube .swiper-slide,\n.swiper-container-flip .swiper-slide {\n  pointer-events: none;\n  -webkit-backface-visibility: hidden;\n  -moz-backface-visibility: hidden;\n  -ms-backface-visibility: hidden;\n  backface-visibility: hidden;\n  z-index: 1;\n}\n.swiper-container-cube .swiper-slide .swiper-slide,\n.swiper-container-flip .swiper-slide .swiper-slide {\n  pointer-events: none;\n}\n.swiper-container-cube .swiper-slide-active,\n.swiper-container-flip .swiper-slide-active,\n.swiper-container-cube .swiper-slide-active .swiper-slide-active,\n.swiper-container-flip .swiper-slide-active .swiper-slide-active {\n  pointer-events: auto;\n}\n.swiper-container-cube .swiper-slide-shadow-top,\n.swiper-container-flip .swiper-slide-shadow-top,\n.swiper-container-cube .swiper-slide-shadow-bottom,\n.swiper-container-flip .swiper-slide-shadow-bottom,\n.swiper-container-cube .swiper-slide-shadow-left,\n.swiper-container-flip .swiper-slide-shadow-left,\n.swiper-container-cube .swiper-slide-shadow-right,\n.swiper-container-flip .swiper-slide-shadow-right {\n  z-index: 0;\n  -webkit-backface-visibility: hidden;\n  -moz-backface-visibility: hidden;\n  -ms-backface-visibility: hidden;\n  backface-visibility: hidden;\n}\n/* Cube */\n.swiper-container-cube .swiper-slide {\n  visibility: hidden;\n  -webkit-transform-origin: 0 0;\n  -moz-transform-origin: 0 0;\n  -ms-transform-origin: 0 0;\n  transform-origin: 0 0;\n  width: 100%;\n  height: 100%;\n}\n.swiper-container-cube.swiper-container-rtl .swiper-slide {\n  -webkit-transform-origin: 100% 0;\n  -moz-transform-origin: 100% 0;\n  -ms-transform-origin: 100% 0;\n  transform-origin: 100% 0;\n}\n.swiper-container-cube .swiper-slide-active,\n.swiper-container-cube .swiper-slide-next,\n.swiper-container-cube .swiper-slide-prev,\n.swiper-container-cube .swiper-slide-next + .swiper-slide {\n  pointer-events: auto;\n  visibility: visible;\n}\n.swiper-container-cube .swiper-cube-shadow {\n  position: absolute;\n  left: 0;\n  bottom: 0px;\n  width: 100%;\n  height: 100%;\n  background: #000;\n  opacity: 0.6;\n  -webkit-filter: blur(50px);\n  filter: blur(50px);\n  z-index: 0;\n}\n/* Fade */\n.swiper-container-fade.swiper-container-free-mode .swiper-slide {\n  -webkit-transition-timing-function: ease-out;\n  -moz-transition-timing-function: ease-out;\n  -ms-transition-timing-function: ease-out;\n  -o-transition-timing-function: ease-out;\n  transition-timing-function: ease-out;\n}\n.swiper-container-fade .swiper-slide {\n  pointer-events: none;\n  -webkit-transition-property: opacity;\n  -moz-transition-property: opacity;\n  -o-transition-property: opacity;\n  transition-property: opacity;\n}\n.swiper-container-fade .swiper-slide .swiper-slide {\n  pointer-events: none;\n}\n.swiper-container-fade .swiper-slide-active,\n.swiper-container-fade .swiper-slide-active .swiper-slide-active {\n  pointer-events: auto;\n}\n.swiper-zoom-container {\n  width: 100%;\n  height: 100%;\n  display: -webkit-box;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: -webkit-flex;\n  display: flex;\n  -webkit-box-pack: center;\n  -moz-box-pack: center;\n  -ms-flex-pack: center;\n  -webkit-justify-content: center;\n  justify-content: center;\n  -webkit-box-align: center;\n  -moz-box-align: center;\n  -ms-flex-align: center;\n  -webkit-align-items: center;\n  align-items: center;\n  text-align: center;\n}\n.swiper-zoom-container > img,\n.swiper-zoom-container > svg,\n.swiper-zoom-container > canvas {\n  max-width: 100%;\n  max-height: 100%;\n  object-fit: contain;\n}\n/* Scrollbar */\n.swiper-scrollbar {\n  border-radius: 10px;\n  position: relative;\n  -ms-touch-action: none;\n  background: rgba(0, 0, 0, 0.1);\n}\n.swiper-container-horizontal > .swiper-scrollbar {\n  position: absolute;\n  left: 1%;\n  bottom: 3px;\n  z-index: 50;\n  height: 5px;\n  width: 98%;\n}\n.swiper-container-vertical > .swiper-scrollbar {\n  position: absolute;\n  right: 3px;\n  top: 1%;\n  z-index: 50;\n  width: 5px;\n  height: 98%;\n}\n.swiper-scrollbar-drag {\n  height: 100%;\n  width: 100%;\n  position: relative;\n  background: rgba(0, 0, 0, 0.5);\n  border-radius: 10px;\n  left: 0;\n  top: 0;\n}\n.swiper-scrollbar-cursor-drag {\n  cursor: move;\n}\n/* Preloader */\n.swiper-lazy-preloader {\n  width: 42px;\n  height: 42px;\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  margin-left: -21px;\n  margin-top: -21px;\n  z-index: 10;\n  -webkit-transform-origin: 50%;\n  -moz-transform-origin: 50%;\n  transform-origin: 50%;\n  -webkit-animation: swiper-preloader-spin 1s steps(12, end) infinite;\n  -moz-animation: swiper-preloader-spin 1s steps(12, end) infinite;\n  animation: swiper-preloader-spin 1s steps(12, end) infinite;\n}\n.swiper-lazy-preloader:after {\n  display: block;\n  content: \"\";\n  width: 100%;\n  height: 100%;\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n  background-position: 50%;\n  -webkit-background-size: 100%;\n  background-size: 100%;\n  background-repeat: no-repeat;\n}\n.swiper-lazy-preloader-white:after {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n@-webkit-keyframes swiper-preloader-spin {\n  100% {\n    -webkit-transform: rotate(360deg);\n  }\n}\n@keyframes swiper-preloader-spin {\n  100% {\n    transform: rotate(360deg);\n  }\n}\n", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/swiper/dist/css/swiper.css"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH;EACE,kBAAkB;EAClB,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,8BAA8B;EAC9B,WAAW;CACZ;AACD;EACE,YAAY;CACb;AACD;EACE,6BAA6B;EAC7B,0BAA0B;EAC1B,2BAA2B;EAC3B,+BAA+B;EAC/B,uBAAuB;CACxB;AACD;EACE,mBAAmB;EACnB,YAAY;EACZ,aAAa;EACb,WAAW;EACX,qBAAqB;EACrB,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,cAAc;EACd,+CAA+C;EAC/C,yCAAyC;EACzC,qCAAqC;EACrC,uCAAuC;EACvC,+BAA+B;EAC/B,gCAAgC;EAChC,6BAA6B;EAC7B,wBAAwB;CACzB;AACD;;EAEE,0CAA0C;EAC1C,uCAAuC;EACvC,kCAAkC;EAClC,sCAAsC;EACtC,kCAAkC;CACnC;AACD;EACE,4BAA4B;EAC5B,yBAAyB;EACzB,oBAAoB;EACpB,wBAAwB;EACxB,gBAAgB;CACjB;AACD;EACE,6CAA6C;EAC7C,0CAA0C;EAC1C,yCAAyC;EACzC,wCAAwC;EACxC,qCAAqC;EACrC,eAAe;CAChB;AACD;EACE,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,aAAa;EACb,mBAAmB;CACpB;AACD,iBAAiB;AACjB;;EAEE,aAAa;CACd;AACD;EACE,yBAAyB;EACzB,sBAAsB;EACtB,gCAAgC;EAChC,wBAAwB;EACxB,uDAAuD;EACvD,yCAAyC;EACzC,qCAAqC;EACrC,uCAAuC;EACvC,uCAAuC;CACxC;AACD,UAAU;AACV;EACE,mBAAmB;EACnB,QAAQ;EACR,OAAO;EACP,qBAAqB;EACrB,WAAW;EACX,eAAe;CAChB;AACD,gCAAgC;AAChC;EACE,wBAAwB;EACxB,oBAAoB;CACrB;AACD;EACE,wBAAwB;EACxB,oBAAoB;CACrB;AACD,YAAY;AACZ;;EAEE,mBAAmB;EACnB,SAAS;EACT,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,gCAAgC;EAChC,mCAAmC;EACnC,2BAA2B;EAC3B,4BAA4B;EAC5B,6BAA6B;CAC9B;AACD;;EAEE,cAAc;EACd,aAAa;EACb,qBAAqB;CACtB;AACD;;EAEE,qRAAqR;EACrR,WAAW;EACX,YAAY;CACb;AACD;;EAEE,qRAAqR;CACtR;AACD;;EAEE,qRAAqR;CACtR;AACD;;EAEE,qRAAqR;EACrR,YAAY;EACZ,WAAW;CACZ;AACD;;EAEE,qRAAqR;CACtR;AACD;;EAEE,qRAAqR;CACtR;AACD,uBAAuB;AACvB;EACE,mBAAmB;EACnB,mBAAmB;EACnB,0BAA0B;EAC1B,uBAAuB;EACvB,qBAAqB;EACrB,kBAAkB;EAClB,wCAAwC;EACxC,oCAAoC;EACpC,mCAAmC;EACnC,gCAAgC;EAChC,YAAY;CACb;AACD;EACE,WAAW;CACZ;AACD,mBAAmB;AACnB;;;EAGE,aAAa;EACb,QAAQ;EACR,YAAY;CACb;AACD,aAAa;AACb;EACE,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,oBAAoB;EACpB,iBAAiB;EACjB,aAAa;CACd;AACD;EACE,aAAa;EACb,UAAU;EACV,WAAW;EACX,iBAAiB;EACjB,sBAAsB;EACtB,qBAAqB;EACrB,yBAAyB;EACzB,iBAAiB;CAClB;AACD;EACE,gBAAgB;CACjB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,WAAW;EACX,oBAAoB;CACrB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,YAAY;EACZ,SAAS;EACT,6CAA6C;EAC7C,0CAA0C;EAC1C,mCAAmC;EACnC,yCAAyC;EACzC,qCAAqC;CACtC;AACD;EACE,cAAc;EACd,eAAe;CAChB;AACD;EACE,cAAc;CACf;AACD,cAAc;AACd;EACE,gCAAgC;EAChC,mBAAmB;CACpB;AACD;EACE,oBAAoB;EACpB,mBAAmB;EACnB,QAAQ;EACR,OAAO;EACP,YAAY;EACZ,aAAa;EACb,4BAA4B;EAC5B,wBAAwB;EACxB,uBAAuB;EACvB,oBAAoB;EACpB,mCAAmC;EACnC,gCAAgC;EAChC,+BAA+B;EAC/B,8BAA8B;EAC9B,2BAA2B;CAC5B;AACD;EACE,oCAAoC;EACpC,iCAAiC;EACjC,gCAAgC;EAChC,+BAA+B;EAC/B,4BAA4B;CAC7B;AACD;EACE,YAAY;EACZ,YAAY;EACZ,QAAQ;EACR,OAAO;CACR;AACD;EACE,WAAW;EACX,aAAa;EACb,QAAQ;EACR,OAAO;CACR;AACD;EACE,qCAAqC;CACtC;AACD;EACE,iBAAiB;CAClB;AACD;EACE,iBAAiB;CAClB;AACD,kBAAkB;AAClB;EACE,4BAA4B;EAC5B,yBAAyB;EACzB,uBAAuB;EACvB,oBAAoB;CACrB;AACD;;;;;;;EAOE,qCAAqC;EACrC,kCAAkC;EAClC,iCAAiC;EACjC,6BAA6B;CAC9B;AACD;;;;EAIE,mBAAmB;EACnB,QAAQ;EACR,OAAO;EACP,YAAY;EACZ,aAAa;EACb,qBAAqB;EACrB,YAAY;CACb;AACD;EACE,gHAAgH;EAChH,uBAAuB;EACvB,uFAAuF;EACvF,qCAAqC;EACrC,oFAAoF;EACpF,oBAAoB;EACpB,kFAAkF;EAClF,uBAAuB;EACvB,iFAAiF;EACjF,qCAAqC;CACtC;AACD;EACE,gHAAgH;EAChH,uBAAuB;EACvB,sFAAsF;EACtF,qCAAqC;EACrC,mFAAmF;EACnF,oBAAoB;EACpB,iFAAiF;EACjF,uBAAuB;EACvB,kFAAkF;EAClF,qCAAqC;CACtC;AACD;EACE,kHAAkH;EAClH,uBAAuB;EACvB,wFAAwF;EACxF,qCAAqC;EACrC,qFAAqF;EACrF,oBAAoB;EACpB,mFAAmF;EACnF,uBAAuB;EACvB,gFAAgF;EAChF,qCAAqC;CACtC;AACD;EACE,kHAAkH;EAClH,uBAAuB;EACvB,qFAAqF;EACrF,qCAAqC;EACrC,kFAAkF;EAClF,oBAAoB;EACpB,gFAAgF;EAChF,uBAAuB;EACvB,mFAAmF;EACnF,qCAAqC;CACtC;AACD,eAAe;AACf;;EAEE,yBAAyB;EACzB,wBAAwB;CACzB;AACD,iBAAiB;AACjB;;EAEE,kBAAkB;CACnB;AACD;;EAEE,qBAAqB;EACrB,oCAAoC;EACpC,iCAAiC;EACjC,gCAAgC;EAChC,4BAA4B;EAC5B,WAAW;CACZ;AACD;;EAEE,qBAAqB;CACtB;AACD;;;;EAIE,qBAAqB;CACtB;AACD;;;;;;;;EAQE,WAAW;EACX,oCAAoC;EACpC,iCAAiC;EACjC,gCAAgC;EAChC,4BAA4B;CAC7B;AACD,UAAU;AACV;EACE,mBAAmB;EACnB,8BAA8B;EAC9B,2BAA2B;EAC3B,0BAA0B;EAC1B,sBAAsB;EACtB,YAAY;EACZ,aAAa;CACd;AACD;EACE,iCAAiC;EACjC,8BAA8B;EAC9B,6BAA6B;EAC7B,yBAAyB;CAC1B;AACD;;;;EAIE,qBAAqB;EACrB,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,QAAQ;EACR,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,iBAAiB;EACjB,aAAa;EACb,2BAA2B;EAC3B,mBAAmB;EACnB,WAAW;CACZ;AACD,UAAU;AACV;EACE,6CAA6C;EAC7C,0CAA0C;EAC1C,yCAAyC;EACzC,wCAAwC;EACxC,qCAAqC;CACtC;AACD;EACE,qBAAqB;EACrB,qCAAqC;EACrC,kCAAkC;EAClC,gCAAgC;EAChC,6BAA6B;CAC9B;AACD;EACE,qBAAqB;CACtB;AACD;;EAEE,qBAAqB;CACtB;AACD;EACE,YAAY;EACZ,aAAa;EACb,qBAAqB;EACrB,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,cAAc;EACd,yBAAyB;EACzB,sBAAsB;EACtB,sBAAsB;EACtB,gCAAgC;EAChC,wBAAwB;EACxB,0BAA0B;EAC1B,uBAAuB;EACvB,uBAAuB;EACvB,4BAA4B;EAC5B,oBAAoB;EACpB,mBAAmB;CACpB;AACD;;;EAGE,gBAAgB;EAChB,iBAAiB;EACjB,oBAAoB;CACrB;AACD,eAAe;AACf;EACE,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;EACvB,+BAA+B;CAChC;AACD;EACE,mBAAmB;EACnB,SAAS;EACT,YAAY;EACZ,YAAY;EACZ,YAAY;EACZ,WAAW;CACZ;AACD;EACE,mBAAmB;EACnB,WAAW;EACX,QAAQ;EACR,YAAY;EACZ,WAAW;EACX,YAAY;CACb;AACD;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;EACnB,+BAA+B;EAC/B,oBAAoB;EACpB,QAAQ;EACR,OAAO;CACR;AACD;EACE,aAAa;CACd;AACD,eAAe;AACf;EACE,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,UAAU;EACV,SAAS;EACT,mBAAmB;EACnB,kBAAkB;EAClB,YAAY;EACZ,8BAA8B;EAC9B,2BAA2B;EAC3B,sBAAsB;EACtB,oEAAoE;EACpE,iEAAiE;EACjE,4DAA4D;CAC7D;AACD;EACE,eAAe;EACf,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,07CAA07C;EAC17C,yBAAyB;EACzB,8BAA8B;EAC9B,sBAAsB;EACtB,6BAA6B;CAC9B;AACD;EACE,u7CAAu7C;CACx7C;AACD;EACE;IACE,kCAAkC;GACnC;CACF;AACD;EACE;IACE,0BAA0B;GAC3B;CACF","file":"swiper.css","sourcesContent":["/**\n * Swiper 3.4.2\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * \n * http://www.idangero.us/swiper/\n * \n * Copyright 2017, Vladimir Kharlampidi\n * The iDangero.us\n * http://www.idangero.us/\n * \n * Licensed under MIT\n * \n * Released on: March 10, 2017\n */\n.swiper-container {\n  margin-left: auto;\n  margin-right: auto;\n  position: relative;\n  overflow: hidden;\n  /* Fix of Webkit flickering */\n  z-index: 1;\n}\n.swiper-container-no-flexbox .swiper-slide {\n  float: left;\n}\n.swiper-container-vertical > .swiper-wrapper {\n  -webkit-box-orient: vertical;\n  -moz-box-orient: vertical;\n  -ms-flex-direction: column;\n  -webkit-flex-direction: column;\n  flex-direction: column;\n}\n.swiper-wrapper {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  z-index: 1;\n  display: -webkit-box;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: -webkit-flex;\n  display: flex;\n  -webkit-transition-property: -webkit-transform;\n  -moz-transition-property: -moz-transform;\n  -o-transition-property: -o-transform;\n  -ms-transition-property: -ms-transform;\n  transition-property: transform;\n  -webkit-box-sizing: content-box;\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n}\n.swiper-container-android .swiper-slide,\n.swiper-wrapper {\n  -webkit-transform: translate3d(0px, 0, 0);\n  -moz-transform: translate3d(0px, 0, 0);\n  -o-transform: translate(0px, 0px);\n  -ms-transform: translate3d(0px, 0, 0);\n  transform: translate3d(0px, 0, 0);\n}\n.swiper-container-multirow > .swiper-wrapper {\n  -webkit-box-lines: multiple;\n  -moz-box-lines: multiple;\n  -ms-flex-wrap: wrap;\n  -webkit-flex-wrap: wrap;\n  flex-wrap: wrap;\n}\n.swiper-container-free-mode > .swiper-wrapper {\n  -webkit-transition-timing-function: ease-out;\n  -moz-transition-timing-function: ease-out;\n  -ms-transition-timing-function: ease-out;\n  -o-transition-timing-function: ease-out;\n  transition-timing-function: ease-out;\n  margin: 0 auto;\n}\n.swiper-slide {\n  -webkit-flex-shrink: 0;\n  -ms-flex: 0 0 auto;\n  flex-shrink: 0;\n  width: 100%;\n  height: 100%;\n  position: relative;\n}\n/* Auto Height */\n.swiper-container-autoheight,\n.swiper-container-autoheight .swiper-slide {\n  height: auto;\n}\n.swiper-container-autoheight .swiper-wrapper {\n  -webkit-box-align: start;\n  -ms-flex-align: start;\n  -webkit-align-items: flex-start;\n  align-items: flex-start;\n  -webkit-transition-property: -webkit-transform, height;\n  -moz-transition-property: -moz-transform;\n  -o-transition-property: -o-transform;\n  -ms-transition-property: -ms-transform;\n  transition-property: transform, height;\n}\n/* a11y */\n.swiper-container .swiper-notification {\n  position: absolute;\n  left: 0;\n  top: 0;\n  pointer-events: none;\n  opacity: 0;\n  z-index: -1000;\n}\n/* IE10 Windows Phone 8 Fixes */\n.swiper-wp8-horizontal {\n  -ms-touch-action: pan-y;\n  touch-action: pan-y;\n}\n.swiper-wp8-vertical {\n  -ms-touch-action: pan-x;\n  touch-action: pan-x;\n}\n/* Arrows */\n.swiper-button-prev,\n.swiper-button-next {\n  position: absolute;\n  top: 50%;\n  width: 27px;\n  height: 44px;\n  margin-top: -22px;\n  z-index: 10;\n  cursor: pointer;\n  -moz-background-size: 27px 44px;\n  -webkit-background-size: 27px 44px;\n  background-size: 27px 44px;\n  background-position: center;\n  background-repeat: no-repeat;\n}\n.swiper-button-prev.swiper-button-disabled,\n.swiper-button-next.swiper-button-disabled {\n  opacity: 0.35;\n  cursor: auto;\n  pointer-events: none;\n}\n.swiper-button-prev,\n.swiper-container-rtl .swiper-button-next {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");\n  left: 10px;\n  right: auto;\n}\n.swiper-button-prev.swiper-button-black,\n.swiper-container-rtl .swiper-button-next.swiper-button-black {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\");\n}\n.swiper-button-prev.swiper-button-white,\n.swiper-container-rtl .swiper-button-next.swiper-button-white {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\");\n}\n.swiper-button-next,\n.swiper-container-rtl .swiper-button-prev {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");\n  right: 10px;\n  left: auto;\n}\n.swiper-button-next.swiper-button-black,\n.swiper-container-rtl .swiper-button-prev.swiper-button-black {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\");\n}\n.swiper-button-next.swiper-button-white,\n.swiper-container-rtl .swiper-button-prev.swiper-button-white {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\");\n}\n/* Pagination Styles */\n.swiper-pagination {\n  position: absolute;\n  text-align: center;\n  -webkit-transition: 300ms;\n  -moz-transition: 300ms;\n  -o-transition: 300ms;\n  transition: 300ms;\n  -webkit-transform: translate3d(0, 0, 0);\n  -ms-transform: translate3d(0, 0, 0);\n  -o-transform: translate3d(0, 0, 0);\n  transform: translate3d(0, 0, 0);\n  z-index: 10;\n}\n.swiper-pagination.swiper-pagination-hidden {\n  opacity: 0;\n}\n/* Common Styles */\n.swiper-pagination-fraction,\n.swiper-pagination-custom,\n.swiper-container-horizontal > .swiper-pagination-bullets {\n  bottom: 10px;\n  left: 0;\n  width: 100%;\n}\n/* Bullets */\n.swiper-pagination-bullet {\n  width: 8px;\n  height: 8px;\n  display: inline-block;\n  border-radius: 100%;\n  background: #000;\n  opacity: 0.2;\n}\nbutton.swiper-pagination-bullet {\n  border: none;\n  margin: 0;\n  padding: 0;\n  box-shadow: none;\n  -moz-appearance: none;\n  -ms-appearance: none;\n  -webkit-appearance: none;\n  appearance: none;\n}\n.swiper-pagination-clickable .swiper-pagination-bullet {\n  cursor: pointer;\n}\n.swiper-pagination-white .swiper-pagination-bullet {\n  background: #fff;\n}\n.swiper-pagination-bullet-active {\n  opacity: 1;\n  background: #007aff;\n}\n.swiper-pagination-white .swiper-pagination-bullet-active {\n  background: #fff;\n}\n.swiper-pagination-black .swiper-pagination-bullet-active {\n  background: #000;\n}\n.swiper-container-vertical > .swiper-pagination-bullets {\n  right: 10px;\n  top: 50%;\n  -webkit-transform: translate3d(0px, -50%, 0);\n  -moz-transform: translate3d(0px, -50%, 0);\n  -o-transform: translate(0px, -50%);\n  -ms-transform: translate3d(0px, -50%, 0);\n  transform: translate3d(0px, -50%, 0);\n}\n.swiper-container-vertical > .swiper-pagination-bullets .swiper-pagination-bullet {\n  margin: 5px 0;\n  display: block;\n}\n.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {\n  margin: 0 5px;\n}\n/* Progress */\n.swiper-pagination-progress {\n  background: rgba(0, 0, 0, 0.25);\n  position: absolute;\n}\n.swiper-pagination-progress .swiper-pagination-progressbar {\n  background: #007aff;\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  -webkit-transform: scale(0);\n  -ms-transform: scale(0);\n  -o-transform: scale(0);\n  transform: scale(0);\n  -webkit-transform-origin: left top;\n  -moz-transform-origin: left top;\n  -ms-transform-origin: left top;\n  -o-transform-origin: left top;\n  transform-origin: left top;\n}\n.swiper-container-rtl .swiper-pagination-progress .swiper-pagination-progressbar {\n  -webkit-transform-origin: right top;\n  -moz-transform-origin: right top;\n  -ms-transform-origin: right top;\n  -o-transform-origin: right top;\n  transform-origin: right top;\n}\n.swiper-container-horizontal > .swiper-pagination-progress {\n  width: 100%;\n  height: 4px;\n  left: 0;\n  top: 0;\n}\n.swiper-container-vertical > .swiper-pagination-progress {\n  width: 4px;\n  height: 100%;\n  left: 0;\n  top: 0;\n}\n.swiper-pagination-progress.swiper-pagination-white {\n  background: rgba(255, 255, 255, 0.5);\n}\n.swiper-pagination-progress.swiper-pagination-white .swiper-pagination-progressbar {\n  background: #fff;\n}\n.swiper-pagination-progress.swiper-pagination-black .swiper-pagination-progressbar {\n  background: #000;\n}\n/* 3D Container */\n.swiper-container-3d {\n  -webkit-perspective: 1200px;\n  -moz-perspective: 1200px;\n  -o-perspective: 1200px;\n  perspective: 1200px;\n}\n.swiper-container-3d .swiper-wrapper,\n.swiper-container-3d .swiper-slide,\n.swiper-container-3d .swiper-slide-shadow-left,\n.swiper-container-3d .swiper-slide-shadow-right,\n.swiper-container-3d .swiper-slide-shadow-top,\n.swiper-container-3d .swiper-slide-shadow-bottom,\n.swiper-container-3d .swiper-cube-shadow {\n  -webkit-transform-style: preserve-3d;\n  -moz-transform-style: preserve-3d;\n  -ms-transform-style: preserve-3d;\n  transform-style: preserve-3d;\n}\n.swiper-container-3d .swiper-slide-shadow-left,\n.swiper-container-3d .swiper-slide-shadow-right,\n.swiper-container-3d .swiper-slide-shadow-top,\n.swiper-container-3d .swiper-slide-shadow-bottom {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  pointer-events: none;\n  z-index: 10;\n}\n.swiper-container-3d .swiper-slide-shadow-left {\n  background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n.swiper-container-3d .swiper-slide-shadow-right {\n  background-image: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n.swiper-container-3d .swiper-slide-shadow-top {\n  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n.swiper-container-3d .swiper-slide-shadow-bottom {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));\n  /* Safari 4+, Chrome */\n  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Chrome 10+, Safari 5.1+, iOS 5+ */\n  background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 3.6-15 */\n  background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Opera 11.10-12.00 */\n  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  /* Firefox 16+, IE10, Opera 12.50+ */\n}\n/* Coverflow */\n.swiper-container-coverflow .swiper-wrapper,\n.swiper-container-flip .swiper-wrapper {\n  /* Windows 8 IE 10 fix */\n  -ms-perspective: 1200px;\n}\n/* Cube + Flip */\n.swiper-container-cube,\n.swiper-container-flip {\n  overflow: visible;\n}\n.swiper-container-cube .swiper-slide,\n.swiper-container-flip .swiper-slide {\n  pointer-events: none;\n  -webkit-backface-visibility: hidden;\n  -moz-backface-visibility: hidden;\n  -ms-backface-visibility: hidden;\n  backface-visibility: hidden;\n  z-index: 1;\n}\n.swiper-container-cube .swiper-slide .swiper-slide,\n.swiper-container-flip .swiper-slide .swiper-slide {\n  pointer-events: none;\n}\n.swiper-container-cube .swiper-slide-active,\n.swiper-container-flip .swiper-slide-active,\n.swiper-container-cube .swiper-slide-active .swiper-slide-active,\n.swiper-container-flip .swiper-slide-active .swiper-slide-active {\n  pointer-events: auto;\n}\n.swiper-container-cube .swiper-slide-shadow-top,\n.swiper-container-flip .swiper-slide-shadow-top,\n.swiper-container-cube .swiper-slide-shadow-bottom,\n.swiper-container-flip .swiper-slide-shadow-bottom,\n.swiper-container-cube .swiper-slide-shadow-left,\n.swiper-container-flip .swiper-slide-shadow-left,\n.swiper-container-cube .swiper-slide-shadow-right,\n.swiper-container-flip .swiper-slide-shadow-right {\n  z-index: 0;\n  -webkit-backface-visibility: hidden;\n  -moz-backface-visibility: hidden;\n  -ms-backface-visibility: hidden;\n  backface-visibility: hidden;\n}\n/* Cube */\n.swiper-container-cube .swiper-slide {\n  visibility: hidden;\n  -webkit-transform-origin: 0 0;\n  -moz-transform-origin: 0 0;\n  -ms-transform-origin: 0 0;\n  transform-origin: 0 0;\n  width: 100%;\n  height: 100%;\n}\n.swiper-container-cube.swiper-container-rtl .swiper-slide {\n  -webkit-transform-origin: 100% 0;\n  -moz-transform-origin: 100% 0;\n  -ms-transform-origin: 100% 0;\n  transform-origin: 100% 0;\n}\n.swiper-container-cube .swiper-slide-active,\n.swiper-container-cube .swiper-slide-next,\n.swiper-container-cube .swiper-slide-prev,\n.swiper-container-cube .swiper-slide-next + .swiper-slide {\n  pointer-events: auto;\n  visibility: visible;\n}\n.swiper-container-cube .swiper-cube-shadow {\n  position: absolute;\n  left: 0;\n  bottom: 0px;\n  width: 100%;\n  height: 100%;\n  background: #000;\n  opacity: 0.6;\n  -webkit-filter: blur(50px);\n  filter: blur(50px);\n  z-index: 0;\n}\n/* Fade */\n.swiper-container-fade.swiper-container-free-mode .swiper-slide {\n  -webkit-transition-timing-function: ease-out;\n  -moz-transition-timing-function: ease-out;\n  -ms-transition-timing-function: ease-out;\n  -o-transition-timing-function: ease-out;\n  transition-timing-function: ease-out;\n}\n.swiper-container-fade .swiper-slide {\n  pointer-events: none;\n  -webkit-transition-property: opacity;\n  -moz-transition-property: opacity;\n  -o-transition-property: opacity;\n  transition-property: opacity;\n}\n.swiper-container-fade .swiper-slide .swiper-slide {\n  pointer-events: none;\n}\n.swiper-container-fade .swiper-slide-active,\n.swiper-container-fade .swiper-slide-active .swiper-slide-active {\n  pointer-events: auto;\n}\n.swiper-zoom-container {\n  width: 100%;\n  height: 100%;\n  display: -webkit-box;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: -webkit-flex;\n  display: flex;\n  -webkit-box-pack: center;\n  -moz-box-pack: center;\n  -ms-flex-pack: center;\n  -webkit-justify-content: center;\n  justify-content: center;\n  -webkit-box-align: center;\n  -moz-box-align: center;\n  -ms-flex-align: center;\n  -webkit-align-items: center;\n  align-items: center;\n  text-align: center;\n}\n.swiper-zoom-container > img,\n.swiper-zoom-container > svg,\n.swiper-zoom-container > canvas {\n  max-width: 100%;\n  max-height: 100%;\n  object-fit: contain;\n}\n/* Scrollbar */\n.swiper-scrollbar {\n  border-radius: 10px;\n  position: relative;\n  -ms-touch-action: none;\n  background: rgba(0, 0, 0, 0.1);\n}\n.swiper-container-horizontal > .swiper-scrollbar {\n  position: absolute;\n  left: 1%;\n  bottom: 3px;\n  z-index: 50;\n  height: 5px;\n  width: 98%;\n}\n.swiper-container-vertical > .swiper-scrollbar {\n  position: absolute;\n  right: 3px;\n  top: 1%;\n  z-index: 50;\n  width: 5px;\n  height: 98%;\n}\n.swiper-scrollbar-drag {\n  height: 100%;\n  width: 100%;\n  position: relative;\n  background: rgba(0, 0, 0, 0.5);\n  border-radius: 10px;\n  left: 0;\n  top: 0;\n}\n.swiper-scrollbar-cursor-drag {\n  cursor: move;\n}\n/* Preloader */\n.swiper-lazy-preloader {\n  width: 42px;\n  height: 42px;\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  margin-left: -21px;\n  margin-top: -21px;\n  z-index: 10;\n  -webkit-transform-origin: 50%;\n  -moz-transform-origin: 50%;\n  transform-origin: 50%;\n  -webkit-animation: swiper-preloader-spin 1s steps(12, end) infinite;\n  -moz-animation: swiper-preloader-spin 1s steps(12, end) infinite;\n  animation: swiper-preloader-spin 1s steps(12, end) infinite;\n}\n.swiper-lazy-preloader:after {\n  display: block;\n  content: \"\";\n  width: 100%;\n  height: 100%;\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n  background-position: 50%;\n  -webkit-background-size: 100%;\n  background-size: 100%;\n  background-repeat: no-repeat;\n}\n.swiper-lazy-preloader-white:after {\n  background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n@-webkit-keyframes swiper-preloader-spin {\n  100% {\n    -webkit-transform: rotate(360deg);\n  }\n}\n@keyframes swiper-preloader-spin {\n  100% {\n    transform: rotate(360deg);\n  }\n}\n"],"sourceRoot":""}]);

// exports
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(421);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1b01acc3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1024);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2497)
  __webpack_require__(2499)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1b01acc3"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1b01acc3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1b01acc3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourse_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2498);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3681d89a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-1b01acc3]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.wrap .main[data-v-1b01acc3]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#f2f2f2}.wrap .main .tabWrap[data-v-1b01acc3]{padding-top:.6rem;padding-bottom:.6rem;text-align:center;font-size:0;background-color:#fff}.wrap .main .tabWrap>div[data-v-1b01acc3]{width:13.5rem;height:1.6rem;border-radius:.2rem;border:1px solid #333;display:inline-block;overflow:hidden}.wrap .main .tabWrap>div>span[data-v-1b01acc3]{height:1.6rem;line-height:1.6rem;width:50%;float:left;color:#333;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;-webkit-transition:all .4s ease;transition:all .4s ease}.wrap .main .tabWrap>div .active[data-v-1b01acc3]{background-color:#333;color:#fff}.wrap .main .courseTab[data-v-1b01acc3]{background-color:#fff}.wrap .main .courseTab .intro[data-v-1b01acc3]{border-bottom:.4rem solid #f2f2f2;padding:.8rem .6rem}.wrap .main .courseTab .intro>.title[data-v-1b01acc3]{font-size:.9rem;color:#333;font-weight:700;font-family:PingFangSC-Semibold}.wrap .main .courseTab .intro>.htmlWrap[data-v-1b01acc3]{margin-top:.4rem}.wrap .main .courseTab .catalog[data-v-1b01acc3]{font-size:0}.wrap .main .courseTab .catalog>.title[data-v-1b01acc3]{padding:.8rem .6rem .6rem;font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;position:relative}.wrap .main .courseTab .catalog>.title .tips[data-v-1b01acc3]{position:absolute;top:1.05rem;right:.6rem;color:#666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400}.wrap .main .courseTab .catalog .catalogList[data-v-1b01acc3]{margin:0 .8rem;padding:.8rem 0 2.03rem;border-top:1px solid #e6e6e6}.wrap .main .courseTab .catalog .catalogList .item[data-v-1b01acc3]{padding-right:1.95rem;font-size:0;margin-bottom:1.2rem;position:relative}.wrap .main .courseTab .catalog .catalogList .item[data-v-1b01acc3]:last-child{margin-bottom:0}.wrap .main .courseTab .catalog .catalogList .item .name[data-v-1b01acc3]{font-size:.85rem;font-family:PingFangSC-Medium;font-weight:700;color:#333}.wrap .main .courseTab .catalog .catalogList .item .detail[data-v-1b01acc3]{margin-top:.28rem;font-size:0;font-family:PingFangSC-Regular;font-weight:400}.wrap .main .courseTab .catalog .catalogList .item .detail .length[data-v-1b01acc3]{color:#999;margin-right:.4rem;font-size:.7rem}.wrap .main .courseTab .catalog .catalogList .item .detail .progress[data-v-1b01acc3]{color:#f27941;font-size:.7rem}.wrap .main .courseTab .catalog .catalogList .item .icon[data-v-1b01acc3]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:24px;height:24px;background-image:url(\"http://static2.kaxiuyun.com/kxy/app/class-course/classCourseIcon.png\");background-position:0 0;background-size:cover;background-repeat:no-repeat}.wrap .main .courseTab .catalog .catalogList .item .play[data-v-1b01acc3]{background-position:-72px 0}.wrap .main .courseTab .catalog .catalogList .item .lock[data-v-1b01acc3]{background-position:-96px 0}.wrap .main .courseTab .catalog .catalogList .item .courseware[data-v-1b01acc3]{background-position:-48px 0}.wrap .main .courseTab .catalog .catalogList .item .exam[data-v-1b01acc3]{background-position:0 0}.wrap .main .courseTab .catalog .catalogList .item .other[data-v-1b01acc3]{background-position:-24px 0}.wrap .bottomWrap[data-v-1b01acc3]{height:3rem;border-top:1px solid #ddd;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.4rem .6rem;text-align:center}.wrap .bottomWrap .leftBtn[data-v-1b01acc3]{width:6rem;color:#377ee1;margin-right:.8rem}.wrap .bottomWrap .leftBtn[data-v-1b01acc3],.wrap .bottomWrap .rightBtn[data-v-1b01acc3]{line-height:2.2rem;height:2.2rem;border-radius:.1rem;border:1px solid #377ee1;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400}.wrap .bottomWrap .rightBtn[data-v-1b01acc3]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#377ee1;color:#fff}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2500);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7c41e518", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".classCourse .htmlWrap img{max-width:100%!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _modulPage = _interopRequireDefault(__webpack_require__(2501));
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    modulPage: _modulPage.default
  },
  data: function data() {
    return {
      currentTab: this.$route.query.isTopics ? 'interactTab' : 'courseTab',
      courseDetail: '',
      version: ''
    };
  },
  created: function created() {
    var that = this;
    if (this._Util.isApp()) {
      api.getPrefs({
        // 接收apicloud传递过来的版本号
        key: 'version'
      }, function (ret, err) {
        if (ret.value) {
          that.version = ret.value;
        } else {
          that.version = that._Util.version;
        }
      });
    }
  },
  mounted: function mounted() {
    this.getCourseDetail();
    this.share();
  },
  methods: {
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      var _this = this;
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          if (_this.version) {
            resolve(_this.version);
          } else {
            api.getPrefs({
              // 接收apicloud传递过来的版本号
              key: 'version'
            }, function (ret, err) {
              if (ret.value) {
                resolve(ret.value);
              } else {
                reject();
              }
            });
          }
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = '/v2/shopping/onlineCourseList';
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典「犇犇课堂」',
                  desc: '海量维修教学精品课程，等你来享用',
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典「犇犇课堂」',
              desc: '海量维修教学精品课程，等你来享用',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典「犇犇课堂」',
              desc: '海量维修教学精品课程，等你来享用',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典「犇犇课堂」',
              desc: '海量维修教学精品课程，等你来享用',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 获取课时条目对应的视频url
     * @param(hourId): 课时条目的id
     * @param(hourType): 课时条目的类型
     * @param(videoHeight): 视频的高度
     * @param(videoWidth): 视频的宽度
     * @param(videoName): 课时名称
     * @param(isFree): 当前课时能否被试看
     * @param(watchLocation): 观看记录
     */
    getCourseUrl: function getCourseUrl(hourId, hourType, videoHeight, videoWidth, videoName, isFree, watchLocation) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _version;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.getAppVer();
            case 1:
              _version = _context.sent;
              if (!(_this2.courseDetail.status === 0 && isFree === 0)) {
                _context.next = 2;
                break;
              }
              (0, _mintUi.Toast)({
                message: '请先报名购买本课程',
                position: 'middle',
                duration: 1000
              });
              return _context.abrupt("return");
            case 2:
              _this2._Util.post(_this2._Api.POST_CLASS_COURSE_GET_COURSE_URL, {
                hourId: hourId
              }, function (data) {
                if (data.status === 0) {
                  (0, _mintUi.Toast)({
                    message: '该课程未到解锁日期',
                    position: 'middle',
                    duration: 1000
                  });
                  return;
                }
                if (hourType === 1) {
                  if (_this2._Util.isApp() && _this2.compareVersion(_version)) {
                    api.sendEvent({
                      name: 'openPlayVideo',
                      extra: {
                        title: videoName,
                        videoUrl: data.hourUrl,
                        seekTime: watchLocation,
                        hourId: hourId,
                        courseType: 'class'
                      }
                    });
                    return;
                  }
                  var currentVideoType;
                  if (videoHeight >= videoWidth) {
                    currentVideoType = 0;
                  } else {
                    currentVideoType = 1;
                  }
                  _this2.$router.push({
                    name: 'classCoursePlayer',
                    params: {
                      videoName: videoName,
                      url: data.hourUrl,
                      hourId: hourId,
                      currentVideoType: currentVideoType,
                      courseType: 'class'
                    }
                  });
                } else {
                  // window.location.href = data.hourUrl;
                  if (_this2._Util.isApp()) {
                    api.sendEvent({
                      name: 'acOpenNewFrm',
                      extra: {
                        name: 'OPenCourseUrl',
                        url: data.hourUrl
                      }
                    });
                  } else {
                    window.location.href = data.hourUrl;
                  }
                }
              }, function () {}, _this2);
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * moduleName: 'moviePlayer', //模块名称 aliyunVodPlayer,moviePlayer,不传默认为aliyunVodPlayer
     * title: '', //视频标题
     * videoUrl: '', //视频url
     * seekTime: , //视频需要跳转到的位置（单位：秒）
     * hourId: , //课时编号
     * courseType:, //课程类型
     */
    videoPlayer: function videoPlayer() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'openPlayVideo',
          extra: {
            // moduleName: 'moviePlayer', //aliyunVodPlayer,moviePlayer,不传默认为aliyunVodPlayer
            title: '播放视频的模块播放视频的模块播放视频的模块播放视频的模块播放视频的模块一二三四五六七⑧九十',
            videoUrl: 'http://live.playback.kaxiuyun.com/UAA-4hndfVc5V6DJX0EvslAUBBI=/FjVIC5zoRqLpvItS55zTT5mroAWl',
            seekTime: 15,
            hourId: '1',
            courseType: '1'
          }
        });
        return;
      }
    },
    /**
     * 处理课程的文案
     * @param(courseType): 当前课程条目的类型
     * @param(courseHourLength): 当前课程条目为视频时，视频的总长度
     * @retrun 根据课程条目返回的对应文案
     */
    handleText: function handleText(courseType, courseHourLength) {
      var ret;
      switch (courseType) {
        case 1:
          ret = courseHourLength.indexOf('00:') === 0 ? courseHourLength.slice(3) : courseHourLength;
          break;
        case 2:
          ret = '点击查看课件';
          break;
        case 3:
          ret = '点击提交作业';
          break;
        case 4:
          ret = '点击参加考试';
          break;
        case 5:
          ret = '点击查看';
          break;
      }
      return ret;
    },
    /**
     * 处理课程的图标
     * @param(courseStatus): 课程状态 0:课程锁定 1:课程解锁
     * @param(hourType): 单节课类型  1:视频，2:课件，3：作业，4：考试，5：其他
     * @param(isFree): 能否免费试看 0：不能试看  1：能够试看
     * @param(startStatus): 0：课时未解锁 1：课时已解锁
     * @return 根据课程条目返回的对应图标
     */
    handleIcon: function handleIcon(courseStatus, hourType, isFree, startStatus) {
      var _icon;
      if (courseStatus === 0 && isFree === 0 || isFree === 0 && startStatus === 0) {
        return _icon = 'lock';
      }
      switch (hourType) {
        case 1:
          _icon = 'play';
          break;
        case 2:
          _icon = 'courseware';
          break;
        case 3:
          _icon = 'exam';
          break;
        case 4:
          _icon = 'exam';
          break;
        case 5:
          _icon = 'other';
          break;
      }
      return _icon;
    },
    /**
     * 底部按钮逻辑
     * @param(url): 需要跳转的url
     */
    goUrl: function goUrl(url) {
      location.href = url;
    },
    /**
     * 切换顶部tab
     * @param(tab): 需求切换的tab
     */
    changeTab: function changeTab(tab) {
      if (tab === 'courseTab') {
        this.$router.replace({
          name: 'classCourse',
          query: {
            modulId: this.courseDetail.moduleId,
            modulName: this.courseDetail.moduleName,
            courseId: this.$route.query.courseId
          }
        });
        document.title = this.courseDetail.courseName;
      } else {
        this.$router.replace({
          name: 'classCourse',
          query: {
            modulId: this.courseDetail.moduleId,
            modulName: this.courseDetail.moduleName,
            courseId: this.$route.query.courseId,
            isTopics: '1'
          }
        });
      }
      this.currentTab = tab;
    },
    /**
     * 获取班课详情
     */
    getCourseDetail: function getCourseDetail() {
      var _this3 = this;
      this._Util.post(this._Api.POST_CLASS_COURSE_GET_COURSE_DETAIL, {
        courseId: this.$route.query.courseId
      }, function (data) {
        _this3.courseDetail = data;
        if (_this3.courseDetail.status == 2) {
          _this3.$router.replace({
            name: 'onlineCourseList'
          });
          return;
        }
        _this3.$router.replace({
          name: 'classCourse',
          query: {
            modulId: _this3.courseDetail.moduleId,
            modulName: _this3.courseDetail.moduleName,
            courseId: _this3.$route.query.courseId,
            isTopics: _this3.$route.query.isTopics
          }
        });
        if (_this3.currentTab == 'courseTab') {
          document.title = _this3.courseDetail.courseName;
        }
      }, function () {}, this);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(422);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a38e8aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1023);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2502)
  __webpack_require__(2504)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1a38e8aa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a38e8aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a38e8aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modulPage_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2503);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c8baa8d6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-1a38e8aa]{background:#fafafa}.outContainer .wrap[data-v-1a38e8aa]{width:100%;padding:.6rem .4rem 0;background:#fafafa;margin-bottom:.9rem}.outContainer .bannerContainer[data-v-1a38e8aa]{width:100%;height:6.5rem;position:relative;background-color:#fff;box-shadow:0 7px 12px 0 hsla(0,0%,75%,.2);border-radius:.4rem;padding:.6rem}.outContainer .bannerContainer .left[data-v-1a38e8aa]{width:5.4rem;height:5.3rem;border-radius:.2rem;border:1px solid #e6eaf4}.outContainer .bannerContainer .left>img[data-v-1a38e8aa]{width:100%;height:4.1rem;border-radius:.2rem;pointer-events:none}.outContainer .bannerContainer .left span[data-v-1a38e8aa]{width:100%;height:1.2rem;line-height:1.2rem;text-align:center;font-size:.6rem;color:#333;font-family:PingFangSC-Regular}.outContainer .bannerContainer .left span img[data-v-1a38e8aa]{width:.5rem;margin-right:.15rem;position:relative;top:.2rem}.outContainer .bannerContainer .detail[data-v-1a38e8aa]{height:100%;margin-left:5.8rem;padding-top:.2rem}.outContainer .bannerContainer .detail>p[data-v-1a38e8aa]:first-of-type{font-size:.85rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333}.outContainer .bannerContainer .detail>p[data-v-1a38e8aa]:nth-of-type(2){margin-top:.1rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.outContainer .postBtn[data-v-1a38e8aa]{position:fixed;right:12px;bottom:85px;border-radius:18px;background-color:#2b82f7;box-shadow:0 4px 8px 0 rgba(43,130,247,.5);width:80px;height:36px;line-height:36px;color:#fff;font-family:PingFangSC-Regular;font-size:16px;text-align:center}.outContainer .postBtn>img[data-v-1a38e8aa]{margin-top:9px;width:17px;height:18px;pointer-events:none}.outContainer .publishBtn[data-v-1a38e8aa]{height:44px;text-align:center;line-height:44px;color:#fff;background-color:#2b82f7;font-family:PingFangSC-Regular;font-size:18px;box-shadow:0 2px 10px 0 hsla(0,0%,77%,.6)}.outContainer .bottomPopup[data-v-1a38e8aa]{height:9.5rem;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.outContainer .bottomPopup .content[data-v-1a38e8aa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-left:1.2rem;padding-top:1.4rem}.outContainer .bottomPopup .content .item[data-v-1a38e8aa]{width:3rem;margin-right:1.5rem;float:left}.outContainer .bottomPopup .content .item[data-v-1a38e8aa]:last-of-type{margin:0}.outContainer .bottomPopup .content .item>img[data-v-1a38e8aa]{width:3rem;height:3rem;pointer-events:none}.outContainer .bottomPopup .content .item>p[data-v-1a38e8aa]{text-align:center;font-family:PingFangSC-Regular;font-size:.7rem;color:#333;margin-top:10px}.outContainer .bottomPopup .cancelBtn[data-v-1a38e8aa]{width:100%;height:2.2rem;line-height:2.2rem;background-color:#fafafa;border-top:1px solid #e0e0e0;text-align:center;font-family:PingFangSC-Regular;font-size:.9rem;color:#333}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2505);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("cfbde760", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".modultotal .tabBox{margin-top:0!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _articleList = _interopRequireDefault(__webpack_require__(2506));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    articleList: _articleList.default
  },
  data: function data() {
    return {
      showPublish: false,
      imgPath: '',
      introduce: '',
      moduleName: '',
      total: '',
      noAdoNum: 0 // 已审核未采纳答案的数量
    };
  },
  created: function created() {
    // document.title = this.$route.query.modulName || this.$route.query.modulname;
  },
  mounted: function mounted() {
    var that = this;
    that.getNoAdopt();
    // that.total = that.$route.query.moduleTotal
    // app端发布成功后关闭发布弹窗
    // if(this._Util.isApp()) {
    //     api.addEventListener({
    //       name: 'closePublish'
    //     }, function(ret, err) {
    //       //alert('检测到事件');
    //       that.showPublish = false;
    //       window.location.reload();
    //     });
    // }
  },
  methods: {
    /** 接收列表组件发出的板块图 */handleBanner: function handleBanner(data) {
      this.imgPath = data.imgPath;
      this.introduce = data.introduce;
      this.moduleName = data.moduleName;
      this.total = data.moduleTotal;
      document.title = data.moduleName || '话题板块';
    },
    /** 发帖按钮逻辑 */publishBtn: function publishBtn() {
      this.showPublish = true;
      // 点击发帖按钮
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '社区',
        operate_page: '发帖',
        optionType: '点击',
        param1: '',
        param2: '',
        param3: ''
      }, this);
    },
    /*
      * 获取 已审核且未采纳答案的问题 总数
      */
    getNoAdopt: function getNoAdopt() {
      var that = this;
      that._Util.post(that._Api.REPAIR_ASKANSWER.NO_ADOPT_NUM, {}, function (data) {
        that.noAdoNum = data;
      }, function () {}, that);
    },
    /**
       * 点击‘我要提问’弹窗被拦截
      */
    toQuesCollect: function toQuesCollect() {
      var that = this;
      that._Util.collectPageView2({
        postUrl: that._Api.POST_COLLECT,
        moduleType: '修车问答',
        operate_page: '提问拦截',
        optionType: '点击',
        param1: '',
        param2: '',
        param3: ''
      }, that);
    },
    /** 修车问答 */postExchange: function postExchange() {
      var that = this;
      that._Util.collectPageView2(
      // 埋点
      {
        postUrl: that._Api.POST_COLLECT,
        moduleType: '社区',
        operate_page: '发帖',
        optionType: '点击',
        param1: '修车问答'
      }, that);
      if (that.noAdoNum >= 3) {
        that.toQuesCollect();
        (0, _mintUi.MessageBox)({
          title: '温馨提示',
          message: '您有' + that.noAdoNum + '个问题没有采纳别人答案，先采纳别人的答案，再来提新问题吧！',
          confirmButtonText: '去采纳答案',
          showCancelButton: true,
          cancelButtonText: '关闭'
        }).then(function (action) {
          if (action === 'confirm') {
            that.showPublish = false;
            if (that._Util.isApp()) {
              var url = location.origin + '/v2/community/askAnswerIndex?tabIndex=4';
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'askAnswerIndex',
                  url: url
                }
              });
            } else {
              that.$router.push({
                name: 'askAnswerIndex',
                params: {
                  tabIndex: 4
                }
              });
            }
          }
        });
        return;
      }
      if (that._Util.isApp()) {
        var url = location.origin + '/v2/community/askAnswerPutQue';
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'askAnswerputQue2',
            url: url
          }
        });
        that.showPublish = false;
      } else {
        that.$router.push({
          name: 'askAnswerputQue'
        });
        that.showPublish = false;
      }
    },
    /** 发帖 */postMessage: function postMessage() {
      var that = this;
      that._Util.collectPageView2(
      // 埋点
      {
        postUrl: that._Api.POST_COLLECT,
        moduleType: '社区',
        operate_page: '发帖',
        optionType: '点击',
        param1: '发图文'
      }, that);
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpImg'
        });
        that.showPublish = false;
      } else {
        that.$router.push({
          name: 'communityWxpost'
        });
      }
    },
    /** 发视频 */postVideo: function postVideo() {
      var that = this;
      that._Util.collectPageView2(
      // 埋点
      {
        postUrl: that._Api.POST_COLLECT,
        moduleType: '社区',
        operate_page: '发帖',
        optionType: '点击',
        param1: '发视频'
      }, that);
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpVideo',
          extra: {
            from: "modulPage".concat(that.$route.query.modulId || that.$route.query.modulid)
          }
        });
        that.showPublish = false;
      } else {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '很抱歉，因微信功能限制，发视频需要在卡修宝典App内操作。',
          closeOnClickModal: true,
          confirmButtonText: '立即下载卡修宝典App'
        }).then(function (action) {
          if (action === 'confirm') {
            location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb';
          }
        });
      }
    },
    /* 发案例*/postCase: function postCase() {
      var that = this;
      that._Util.collectPageView2(
      // 埋点
      {
        postUrl: that._Api.POST_COLLECT,
        moduleType: '社区',
        operate_page: '发帖',
        optionType: '点击',
        param1: '发案例'
      }, that);
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'repairQuestionnaire',
            url: location.origin + '/v2/repairQuestionnaire',
            notGive: true
          }
        });
        that.showPublish = false;
      } else {
        that.$router.push({
          name: 'repairQuestionnaire'
        });
      }
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(423);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_57f318b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1022);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2507)
  __webpack_require__(2509)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-57f318b2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_57f318b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_57f318b2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2508);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("9ec24102", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".openArticle{font-family:PingFangSC-Regular;color:#177afa;font-size:.9rem}.specail .openArticle{font-size:.8rem}body.modal-open{position:fixed;width:100%}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2510);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("192d4f8c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer .tabBox[data-v-57f318b2]{padding-left:.4rem;height:1.6rem;margin-bottom:.7rem;position:relative;width:100%;top:0}.outContainer .tabBox .topic em[data-v-57f318b2]{width:2.1rem;height:.7rem;line-height:.7rem;text-align:center;font-size:.5rem;color:#fff;background:#ff3f3f;border-radius:.4rem .4rem .4rem 0;position:absolute;left:1.7rem;top:0}.outContainer .tabBox>div[data-v-57f318b2]{float:left;width:3.1rem;height:1.6rem;line-height:1.7rem;font-family:PingFangSC-Regular;font-size:.75rem;color:#999;position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;background:#fff;text-align:center;border-radius:1.2rem;box-shadow:0 .2rem .4rem 0 hsla(0,0%,75%,.2);margin-right:.6rem}.outContainer .tabBox>.activeTab[data-v-57f318b2]{font-family:PingFangSC-Semibold;background:#177afa;box-shadow:0 .2rem .4rem 0 rgba(23,122,250,.25);color:#fff;font-weight:700}.outContainer .tabBox .searchBtn[data-v-57f318b2]{width:3.2rem;padding-left:.8rem;float:right;font-size:.65rem;color:#999;font-family:PingFangSC-Regular}.outContainer .tabBox .searchBtn img[data-v-57f318b2]{width:.8rem;position:absolute;top:50%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .swiper-container[data-v-57f318b2]{height:2.25rem;background:#fff;box-shadow:0 4px 12px 0 rgba(164,171,191,.2);border-radius:.4rem;margin:0 .4rem .4rem;padding-left:.8rem}.outContainer .swiper-container>img[data-v-57f318b2]{width:.15rem;position:absolute;right:.5rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .swiper-container .swiper-slide[data-v-57f318b2]{height:100%!important;line-height:2.3rem;font-size:.75rem;color:#333;font-family:PingFangSC-Regular;font-weight:400!important}.outContainer .swiper-container .swiper-slide span[data-v-57f318b2]{font-family:PingFangSC-Semibold;font-size:.75rem;font-weight:600;margin-right:.4rem}.outContainer .itemList[data-v-57f318b2]{background-color:#fafafa}.outContainer .itemList .itemWrap[data-v-57f318b2]{margin:0 .4rem .6rem}.outContainer .itemList .item[data-v-57f318b2]{overflow-x:hidden;background-color:#fff;padding:.8rem;position:relative;border-radius:.4rem;box-shadow:0 4px 12px 0 rgba(164,171,191,.2)}.outContainer .itemList .item .follow[data-v-57f318b2]{position:absolute;top:1rem;right:.6rem;width:2.9rem;padding:.2rem 0;border:1px solid #177afa;border-radius:.7rem;text-align:center;font-family:PingFangSC-Regular;font-size:.6rem;color:#177afa}.outContainer .itemList .item .follow>img[data-v-57f318b2]{width:.4rem;margin-top:.22rem;margin-right:.1rem}.outContainer .itemList .item .followed[data-v-57f318b2]{background:#f2f2f2;border:1px solid #f2f2f2;color:#999}.outContainer .itemList .item .userInfo[data-v-57f318b2]{margin-bottom:.6rem;position:relative}.outContainer .itemList .item .userInfo>img[data-v-57f318b2]{width:1.8rem;height:1.8rem;border-radius:50%;float:left}.outContainer .itemList .item .userInfo>.crown[data-v-57f318b2]{display:inline-block;width:.65rem;height:.65rem;background:url(" + escape(__webpack_require__(285)) + ") no-repeat 0 0;background-size:100% 100%;position:absolute;left:1.15rem;bottom:0}.outContainer .itemList .item .userInfo .rightContent[data-v-57f318b2]{margin-left:2.2rem}.outContainer .itemList .item .userInfo .rightContent .uname>span[data-v-57f318b2],.outContainer .itemList .item .userInfo .rightContent .uname[data-v-57f318b2]{font-family:PingFangSC-Regular;font-size:.75rem;color:#333}.outContainer .itemList .item .userInfo .rightContent .uname .medal[data-v-57f318b2]{height:.8rem;margin-right:.2rem;position:relative;left:0;top:2px;pointer-events:none}.outContainer .itemList .item .userInfo .rightContent .uarea[data-v-57f318b2]{font-family:PingFangSC-Regular;font-size:.55rem;color:#999;width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:-.1rem}.outContainer .itemList .item .userInfo .rightContent .uarea>span[data-v-57f318b2]{font-family:PingFangSC-Regular;font-size:.55rem;color:#999}.outContainer .itemList .item .articleTitle[data-v-57f318b2]{font-family:PingFangSC-Semibold;font-weight:700;font-size:.9rem;color:#333;margin-bottom:.4rem;line-height:1.25rem}.outContainer .itemList .item .content[data-v-57f318b2]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;white-space:pre-wrap;line-height:1.25rem}.outContainer .itemList .item .singleImg[data-v-57f318b2]{margin-top:.4rem}.outContainer .itemList .item .singleImg>img[data-v-57f318b2]{width:8.3rem;height:11.2rem;object-fit:cover;object-position:50% 50%;border-radius:.2rem}.outContainer .itemList .item .imgList[data-v-57f318b2]{margin-top:.375rem;overflow:hidden}.outContainer .itemList .item .imgList>img[data-v-57f318b2]{float:left;border-radius:.2rem;margin-right:.15rem;margin-top:.15rem;width:5.35rem;height:5.35rem;object-fit:cover;object-position:50% 50%}.outContainer .itemList .item .imgList>img[data-v-57f318b2]:nth-of-type(3n){margin-right:0}.outContainer .itemList .item .ask-tit[data-v-57f318b2]{background:#f8f8f8;position:relative;border-radius:.4rem;margin-top:.6rem;font-size:.8rem;color:#333;padding:1.35rem .4rem .6rem}.outContainer .itemList .item .ask-tit b[data-v-57f318b2]{position:absolute;left:0;top:0;width:1.9rem;height:.95rem;line-height:1rem;text-align:center;background:#6a6869;border-radius:.4rem 0 .4rem 0;font-size:.55rem;color:#fff;font-family:PingFangSC-Regular}.outContainer .itemList .item .ask-tit>span[data-v-57f318b2]{font-size:.9rem;color:#333;font-family:PingFangSC-Regular;line-height:1.125rem}.outContainer .itemList .item .ask-tit .answer[data-v-57f318b2]{margin-top:.4rem}.outContainer .itemList .item .ask-tit .answer span[data-v-57f318b2]{color:#ff3f3f;font-size:.7rem}.outContainer .itemList .item .ask-tit .answer span img[data-v-57f318b2]{width:.8rem;height:.8rem;position:relative;top:.1rem}.outContainer .itemList .item .ask-tit .answer .toAns[data-v-57f318b2]{margin-top:.6rem;font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:600;color:#177afa;text-align:center;width:100%;height:1.8rem;line-height:1.8rem;background:#e6efff;border-radius:1rem}.outContainer .itemList .item .ask-tit .answer .toAns img[data-v-57f318b2]{width:1rem;margin-top:.35rem}.outContainer .itemList .item .videoFrame[data-v-57f318b2]{margin-top:.4rem;overflow:hidden}.outContainer .itemList .item .videoFrame>div[data-v-57f318b2]{position:relative;float:left}.outContainer .itemList .item .videoFrame>div img[data-v-57f318b2]{width:8.3rem;height:11.2rem;object-fit:cover;object-position:50% 50%;border-radius:.2rem;pointer-events:none}.outContainer .itemList .item .videoFrame>div[data-v-57f318b2]:after{content:\"\";width:2rem;height:2rem;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-image:url(" + escape(__webpack_require__(208)) + ");background-size:100%;background-repeat:no-repeat}.outContainer .itemList .item .plateNameContainer[data-v-57f318b2]{margin-top:.4rem}.outContainer .itemList .item .plateNameContainer .plateName[data-v-57f318b2]{font-family:PingFangSC-Regular;font-size:.6rem;color:#4c5e77;text-align:left;display:inline-block;padding:.1rem .5rem;background-color:#f3f4f9;border-radius:.5rem}.outContainer .itemList .item .plateNameContainer .plateName>img[data-v-57f318b2]{width:.6rem;height:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem;pointer-events:none}.outContainer .itemList .item .adInArticle[data-v-57f318b2]{width:100%;margin-top:.8rem;padding:0 .6rem 0 3rem;background-color:#fff}.outContainer .itemList .item .adInArticle>div[data-v-57f318b2]{min-height:3rem;padding-top:.5rem;padding-bottom:.5rem;background:#f2f2f2;border-radius:.1rem;position:relative}.outContainer .itemList .item .adInArticle>div>img[data-v-57f318b2]{position:absolute;top:50%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.2rem;height:2.2rem;pointer-events:none}.outContainer .itemList .item .adInArticle>div>p[data-v-57f318b2]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;padding-right:3.4rem;padding-left:3rem}.outContainer .itemList .item .adInArticle>div>div[data-v-57f318b2]{width:2.4rem;height:1.2rem;line-height:1.2rem;text-align:center;background:#377ee1;border-radius:.05rem;border:.03rem solid #377ee1;position:absolute;top:50%;right:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#f2f2f2}.outContainer .itemList .item .toolContainer[data-v-57f318b2]{margin-top:.8rem;position:relative}.outContainer .itemList .item .toolContainer>div[data-v-57f318b2]{margin-right:1.6rem;display:inline-block;font-family:PingFangSC-Regular;font-size:.65rem;color:#333;position:relative}.outContainer .itemList .item .toolContainer>div>img[data-v-57f318b2]{width:1rem;height:1rem;vertical-align:middle;position:relative;left:0;top:-.1rem}.outContainer .itemList .item .toolContainer>div .hotArea[data-v-57f318b2]{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:70%;height:150%;opacity:.3}.outContainer .itemList .item .toolContainer>.other[data-v-57f318b2]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:100%;width:1rem;height:1rem}.outContainer .itemList .item .toolContainer>.other>img[data-v-57f318b2]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;height:100%;pointer-events:none}.outContainer .itemList .item .toolContainer>.del[data-v-57f318b2]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1rem;height:1rem}.outContainer .itemList .item .toolContainer>.del>img[data-v-57f318b2]{position:absolute;top:48%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;height:100%;pointer-events:none}.outContainer .itemList .item .toolContainer>.share[data-v-57f318b2]{position:relative}.outContainer .itemList .item .toolContainer>.share .shareContainer[data-v-57f318b2]{z-index:13;position:absolute;bottom:130%;right:0;width:8.9rem;height:4.425rem;background-color:#fff;border-radius:2px;padding:0 .8rem}.outContainer .itemList .item .toolContainer>.share .shareContainer>div[data-v-57f318b2]{height:2.2125rem;line-height:2.2125rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .itemList .item .toolContainer>.share .shareContainer>div>img[data-v-57f318b2]{width:1rem;height:1rem;vertical-align:middle;position:relative;left:0;top:-2px;margin-right:.5rem;pointer-events:none}.outContainer .itemList .item .toolContainer>.share .shareContainer>div[data-v-57f318b2]:first-of-type{border-bottom:1px solid #e0e0e0}.outContainer .itemList .item .toolContainer>.share .shareContainer[data-v-57f318b2]:after{content:\"\";position:absolute;bottom:-.75rem;right:.5rem;width:0;height:0;border:.5rem solid transparent;border-top-color:#fff}.outContainer .itemList .item .articleOperation>div[data-v-57f318b2]{margin:.9rem 0 1.75rem;position:relative;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .itemList .item .articleOperation>div>div[data-v-57f318b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:.8rem}.outContainer .itemList .item .articleOperation>div>div>div[data-v-57f318b2]{display:inline-block;width:100%;height:2rem;line-height:2rem;text-align:center;background:#e6efff;border-radius:1rem;box-sizing:border-box;font-family:PingFangSC-Regular;font-size:.8rem;color:#177afa}.outContainer .itemList .item .articleOperation>div>div[data-v-57f318b2]:last-child{margin-right:0}.outContainer .itemList .item .articleOperation>div>div:last-child div[data-v-57f318b2]{color:#fff;background:#177afa}.outContainer .itemList .item .commentSelection[data-v-57f318b2]{margin-top:.6rem;border-top:1px solid #ededed}.outContainer .itemList .item .commentSelection>div .comments[data-v-57f318b2]{overflow:hidden;padding-top:.2rem}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment[data-v-57f318b2]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;padding-right:2rem;margin-top:.2rem;position:relative}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment>span[data-v-57f318b2]{display:inline;font-size:.7rem;font-family:PingFangSC-Regular}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment>.name[data-v-57f318b2]{font-family:PingFangSC-Semibold;color:#377ee1;font-weight:700}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment>.clickBtn[data-v-57f318b2]{position:absolute;top:50%;right:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1.6rem;height:.8rem;text-align:center;line-height:.8rem;border-radius:.05rem;border:.03rem solid #377ee1;color:#377ee1;font-size:.5rem;font-family:PingFangSC-Regular;font-weight:400}.outContainer .itemList .item .commentSelection>div .comments>p[data-v-57f318b2]{font-size:14px;font-family:PingFangSC-Regular;color:#151515;padding-right:8px;margin-top:.4rem}.outContainer .itemList .item .commentSelection>div .comments>p>span[data-v-57f318b2]{display:inline;font-size:.7rem;font-family:PingFangSC-Regular}.outContainer .itemList .item .commentSelection>div .comments>p>.name[data-v-57f318b2]{font-family:PingFangSC-Medium;font-weight:700;color:#000;font-size:.7rem}.outContainer .itemList .item .commentSelection>div .comments>p>.imgTips[data-v-57f318b2]{font-family:PingFangSC-Medium;font-size:.7rem;color:#177afa}.outContainer .itemList .item .commentSelection>div .comments>p>.imgTips>img[data-v-57f318b2]{width:.75rem;height:.7rem;vertical-align:middle;margin-top:-.1rem;pointer-events:none}.outContainer .itemList .item .commentSelection>div .comments>p[data-v-57f318b2]:first-of-type{margin-top:.4rem}.outContainer .itemList .item .commentSelection>div .showMoreComments[data-v-57f318b2]{height:1rem;line-height:1rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#999;margin-top:.6rem}.outContainer .itemList .ad[data-v-57f318b2]{width:100%;position:relative;padding:.8rem;background-color:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem}.outContainer .itemList .ad .adWrap[data-v-57f318b2]{overflow:hidden}.outContainer .itemList .ad .adWrap>img[data-v-57f318b2]{margin-right:.6rem;width:2.25rem;height:2.25rem;border-radius:.1rem;pointer-events:none;float:left}.outContainer .itemList .ad .adWrap>p[data-v-57f318b2]{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.125rem;float:left;width:13.5rem}.outContainer .itemList .ad .adWrap>div[data-v-57f318b2]{position:absolute;bottom:.8rem;right:.8rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#177afa;padding-right:.35rem}.outContainer .itemList .ad .adWrap>div img[data-v-57f318b2]{width:.25rem;position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .itemList .noSignArticle[data-v-57f318b2]{padding:.5rem 1.3rem;background-color:#fff;margin-top:.6rem;box-shadow:0 4px 12px 0 rgba(164,171,191,.2);border-radius:.4rem}.outContainer .itemList .noSignArticle>div[data-v-57f318b2]{height:2.2rem;line-height:2.2rem;text-align:center;background:#f0f4fb;border-radius:1.1rem;border:1px solid #177afa;font-size:.85rem;font-family:PingFangSC-Regular;color:#177afa}.outContainer .itemList .noSignArticle>div>img[data-v-57f318b2]{width:1.2rem;height:1.2rem;vertical-align:sub;margin-right:.25rem;pointer-events:none;position:relative;top:.1rem}.outContainer .shareMask[data-v-57f318b2]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:12}.outContainer .noSignToast[data-v-57f318b2]{width:6rem;height:6rem;position:fixed;z-index:999;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background:rgba(58,58,58,.9);text-align:center;padding-top:1.42rem}.outContainer .noSignToast>img[data-v-57f318b2]{width:1.8rem;height:1.8rem;margin-bottom:.4rem;pointer-events:none}.outContainer .noSignToast>p[data-v-57f318b2]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff}.outContainer .topicwrap[data-v-57f318b2]{height:6.7rem;padding:.8rem;position:relative;margin:.6rem .4rem;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem}.outContainer .topicwrap .leftContent>p[data-v-57f318b2]{color:#333;font-size:.85rem;font-weight:700;font-family:PingFangSC-Semibold}.outContainer .topicwrap .leftContent>p>img[data-v-57f318b2]{width:.8rem;margin-right:.3rem;position:relative;top:.2rem}.outContainer .topicwrap .leftContent>div[data-v-57f318b2]{width:10.3rem;margin-top:.4rem;color:#333;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.outContainer .topicwrap .leftContent>span[data-v-57f318b2]{color:#377ee1;font-size:.65rem;position:absolute;bottom:.8rem;left:.8rem}.outContainer .topicwrap .leftContent>span img[data-v-57f318b2]{width:.25rem;position:relative;top:.35rem}.outContainer .topicwrap>img[data-v-57f318b2]{width:5.4rem;height:4.1rem;border-radius:.2rem;pointer-events:none;position:absolute;right:.8rem;bottom:.8rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _reportBox = _interopRequireDefault(__webpack_require__(284));
var _newComment = _interopRequireDefault(__webpack_require__(1420));
var _Loading = _interopRequireDefault(__webpack_require__(174));
var _throttleDebounce = __webpack_require__(21);
var _vueAwesomeSwiper = __webpack_require__(308);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

// eslint-disable-next-line no-unused-vars

__webpack_require__(309);
var _default = exports.default = {
  components: {
    reportBox: _reportBox.default,
    commentBox: _newComment.default,
    Loading: _Loading.default
  },
  props: {
    currentUserId: [Number, String],
    // 传入的当前用户id
    modulId: [Number, String],
    // 板块id
    type: String,
    // otherPage：他人主页; homePage: 个人主页; 默认为帖子列表
    savePosition: Boolean,
    // 是否记录返回位置
    page: String,
    // 当前页面的路由名称 - 用于记录返回位置
    showHomePage: {
      // 是否显示‘我的主页’按钮
      type: Boolean,
      default: false
    },
    parentCardType: {
      // 父组件的cardtype, 如果为3,代表请求聚合贴的数据
      type: Number,
      default: 0
    }
  },
  data: function data() {
    return {
      versionMoreThan5: false,
      // app版本号大于等于5.0, 微信端则默认是true
      modulList: [],
      showMOdulList: false,
      showNosignToast: false,
      showTopicItem: false,
      topicItem: false,
      showTopicTip: false,
      noSign: false,
      // 是否看签到帖
      activeTab: (this.$route.query.moduleType || this.$route.query.moduletype) == 1 ? 'new' : 'hot',
      currentCommunityId: '',
      showReportBox: false,
      allLoaded: false,
      scrollLoading: false,
      list: [],
      idList: [],
      listDataInit: false,
      pageSize: 10,
      pageNum: 1,
      userId: '',
      showImgView: false,
      imgUrl: null,
      pinTab: false,
      bannerInfo: '',
      showCommentBox: false,
      shareContent: {},
      ModalHelper: null,
      currentShareItem: '',
      currentCommentItem: '',
      // versionOk: '',
      listCancelSource: '',
      // 帖子列表 axios cancelToken
      noticeList: [],
      timer: null
    };
  },
  computed: {
    showNosignBtn: function showNosignBtn() {
      return !this.noSign && this.activeTab === 'new' && this.$route.name === 'community';
    }
  },
  watch: {
    bannerInfo: function bannerInfo(val) {
      this.$emit('showBanner', val);
    },
    showCommentBox: function showCommentBox(val) {
      if (val) {
        this.ModalHelper.afterOpen();
        if (this._Util.isApp()) {
          api.setFrameAttr({
            name: 'commun',
            bounces: false
          });
        }
      } else {
        this.ModalHelper.beforeClose();
        if (this._Util.isApp()) {
          api.setFrameAttr({
            name: 'commun',
            bounces: true
          });
        }
      }
    }
  },
  created: function created() {
    // 读取缓存中的滚动条位置
    var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.page));
    var tab = JSON.parse(sessionStorage.getItem('_repairActiveTab_'));
    if (this.savePosition && position) {
      sessionStorage.removeItem('_dataList_' + this.page);
      this.list = position.list;
      this.idList = position.idList;
      this.pageSize = position.pageSize;
      this.pageNum = position.pageNum;
      this.allLoaded = position.allLoaded;
      this.listDataInit = true;
      this.activeTab = position.activeTab;
      this.bannerInfo = position.bannerInfo;
      this.noSign = position.isNoSign;
      this.showTopicItem = position.isShowTopic;
      this.showMOdulList = position.isShowTopic;
      this.modulList = position.modulList;
      this.userId = position.userId;
      this.$nextTick(function () {
        setTimeout(function () {
          if (document.getElementById('savePosition')) {
            document.getElementById('savePosition').scrollTo(0, position.scrollTop);
          } else {
            window.scrollTo(0, position.scrollTop);
          }
        }, 800);
      });
    } else {
      this.getArticleList();
    }
    if (tab) {
      this.activeTab = tab.activeTab;
      this.changeTab('new', true, true);
      sessionStorage.removeItem('_repairActiveTab_');
    }
    if (!this.type && this.parentCardType !== 3) {
      window.addEventListener('scroll', this.handleScroll, true);
    }
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _version;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            _this.getAnnouncementList();
            _this.topicItem = _this.$route.path == '/v2/community/modulPage';
            _this.ModalHelper = function (bodyCls) {
              var scrollTop;
              return {
                afterOpen: function afterOpen() {
                  scrollTop = document.scrollingElement.scrollTop;
                  document.body.classList.add(bodyCls);
                  document.body.style.top = -scrollTop + 'px';
                },
                beforeClose: function beforeClose() {
                  document.body.classList.remove(bodyCls);
                  // scrollTop lost after set position:fixed, restore it back.
                  document.scrollingElement.scrollTop = scrollTop;
                }
              };
            }('modal-open');
            if (!_this._Util.isApp()) {
              _context.next = 2;
              break;
            }
            // 监听发布成功的事件
            _this.callEvent();
            _this.$bus.$on('changeTab', function (data) {
              // data: new/hot
              _this.changeTab(data, true, true);
            });
            _context.next = 1;
            return _this.getAppVer();
          case 1:
            _version = _context.sent;
            _this.versionMoreThan5 = _this.compareVersion(_version);
            api.addEventListener({
              name: 'swiperStart'
            }, function (ret, err) {
              var _this2 = this;
              this.timer = setTimeout(function () {
                _this2.swiperFun();
              }, 1000);
            });
            _context.next = 3;
            break;
          case 2:
            _this.versionMoreThan5 = true;
          case 3:
            _this.timer = setTimeout(function () {
              _this.swiperFun();
            }, 1000);
            // 监控是否有新话题的事件
            window.$bus.$on('hasNewTopicStatus', function (data) {
              _this.showTopicTip = true;
              _this.listDataInit = true;
            });
          case 4:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  beforeDestroy: function beforeDestroy() {},
  destroyed: function destroyed() {
    clearTimeout(this.timer);
    if (!this.type && this.parentCardType !== 3) {
      window.removeEventListener('scroll', this.handleScroll, true);
    }
  },
  methods: {
    /**
     * 跳转公告栏页面
    */
    goNotice: function goNotice() {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        moduleType: '社区',
        operate_page: '社区首页',
        optionType: '点击',
        param1: '公告栏'
      }, this);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'communityNotice',
            url: location.origin + '/v2/community/notice'
          }
        });
      } else {
        this.$router.push({
          name: 'communityNotice'
        });
      }
    },
    /**
     * 公告轮播
    */
    swiperFun: function swiperFun() {
      // eslint-disable-next-line no-unused-vars
      var mySwiper = new Swiper('.swiper-container', {
        direction: 'vertical',
        slidesPerView: 'auto',
        autoplay: true,
        speed: 5000,
        loop: true,
        observer: true,
        observeParents: true
      });
    },
    /**
     * 跳转到个人中心
    */
    goMyPage: function goMyPage() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'myPage',
            url: location.origin + '/v2/community/myPage',
            notGive: true
          }
        });
      } else {
        this.$router.push({
          name: 'myPage'
        });
      }
    },
    /**
     * 跳转到社区搜索
    */
    goSearch: function goSearch() {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        moduleType: '社区',
        operate_page: '社区首页',
        optionType: '点击',
        param1: '社区搜索'
      }, this);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'communitySearch',
            url: location.origin + '/v2/community/search'
          }
        });
      } else {
        sessionStorage.removeItem('_searchList_');
        this.$router.push({
          name: 'communitySearch'
        });
      }
    },
    /** 新话题 */newTopic: function newTopic() {
      var _this3 = this;
      this._Util.post(this._Api.POST_COMMUNITY_NEW_TOPIC, {}, function (data) {
        _this3.showTopicTip = data;
        _this3.listDataInit = true;
      }, function () {}, this, true);
    },
    /** 不看签到帖按钮逻辑 */filterSignArticle: function filterSignArticle() {
      var _this4 = this;
      this.showNosignToast = true;
      setTimeout(function () {
        _this4.showNosignToast = false;
      }, 1200);
      this.noSign = true;
      this.changeTab(this.activeTab, true);
    },
    /** 关注、取消关注 */
    followToggle: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(userId, status, index) {
        var _this5 = this;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              this._Util.post(this._Api.POST_COMMUNITY_USER_FOLLOW_TOGGLE, {
                userId: userId,
                status: status ? '0' : '1'
              }, function (data) {
                _this5.list[index].followStatus = status ? '0' : '1';
              }, function () {}, this, true);
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x, _x2, _x3) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 获取通告列表 */getAnnouncementList: function getAnnouncementList() {
      var _this6 = this;
      this._Util.post(this._Api.POST_COMMUNITY_ANNOUNCEMENT_LIST, {}, function (data) {
        _this6.noticeList = data;
      }, function () {}, this, true);
    },
    /** 记录分享行为 */recordShare: function recordShare(articleId) {
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_RECORD_SHARE, {
        articleId: articleId
      }, function (data) {}, function () {}, this, true);
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      var _this7 = this;
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          if (_this7.version) {
            resolve(_this7.version);
          } else {
            api.getPrefs({
              // 接收apicloud传递过来的版本号
              key: 'version'
            }, function (ret, err) {
              if (ret.value) {
                resolve(ret.value);
              } else {
                reject();
              }
            });
          }
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '5.0.0';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /* 触发app端发起的关闭发布串口的事件*/callEvent: function callEvent() {
      var that = this;
      if (this._Util.isApp()) {
        api.addEventListener({
          name: 'closePublish'
        }, function (ret, err) {
          setTimeout(function () {
            that.changeTab('new', true);
          }, 800);
        });
      }
    },
    /** 评论成功的回调 */commentSuccess: function commentSuccess(data) {
      this.showCommentBox = false;
      this.currentCommentItem.commentTotal++;
      if (Array.isArray(this.currentCommentItem.articleCommentList)) {
        this.currentCommentItem.articleCommentList.push(data);
      } else {
        this.currentCommentItem.articleCommentList = [data];
      }
      this.currentCommentItem = '';
    },
    /** 获取分享信息 */getShareInfo: function getShareInfo(articleId, type) {
      var _this8 = this;
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: this.$route.name === 'modulPage' ? this.$route.query.modulName : '交流首页',
        optionType: '点击',
        param1: articleId,
        param2: type === 'session' ? '分享给好友' : '分享到朋友圈'
      }, this);
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'community_share_set',
        article_id: articleId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this8.shareContent = {
            share_img: data.dataList[0].share_img,
            share_text: data.dataList[0].share_text,
            share_title: data.dataList[0].share_title
          };
          _this8.share(articleId, type);
        }
      }, function () {}, this);
    },
    /** 分享配置 */share: function share(articleId, type) {
      var that = this;
      that.recordShare(articleId); // 分享行为记录
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: that.shareContent.share_title,
                desc: that.shareContent.share_text,
                link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
                imgLink: that.shareContent.share_img
              }
            }
          });
          this.currentShareItem.showShareContainer = false;
          this.currentShareItem = '';
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img,
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 处理页面滚动距离 */handleScroll: function handleScroll() {
      var _tabBox = document.getElementById('_tabBox');
      var scrollTop = _tabBox.getBoundingClientRect().top;
      this.pinTab = scrollTop < 0;
    },
    /** 发帖 */postMessage: function postMessage(moduleId, moduleName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpImg',
          extra: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      } else {
        this.$router.push({
          name: 'communityWxpost',
          query: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      }
    },
    /** 进入广告页面 */goAd: function goAd(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adContainer' + Date.now(),
            url: url
          }
        });
      } else {
        this.saveSessionPosition();
        location.href = url;
      }
    },
    /** 切换tab */changeTab: function changeTab(type, isForce, isCollect) {
      var _this9 = this;
      if (type === this.activeTab && !isForce) return;
      if (isCollect) {
        this._Util.collectPageView2(
        // 埋点
        {
          postUrl: this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '交流',
          operate_page: this.$route.name === 'modulPage' ? this.$route.query.modulName : '交流首页',
          optionType: '点击',
          param1: type === 'hot' ? '精选' : '最新'
        }, this);
      }
      if (this.listCancelSource) {
        // 有axiosCancelToken的时候，取消还未返回的请求
        this.cancelArticleList();
      }
      this.activeTab = type;
      this.allLoaded = false;
      this.scrollLoading = false;
      this.list = [];
      this.idList = [];
      this.listDataInit = false;
      this.pageNum = 1;
      this.pinTab = false;
      if (type == 'topic') {
        // 话题模块
        this.showMOdulList = true;
        this.showTopicItem = true;
        this.getModulList();
        this.clickNewTopic();
      } else {
        this.showTopicItem = false;
        this.getArticleList();
        if (type == 'hot') {
          this.timer = setTimeout(function () {
            _this9.swiperFun();
          }, 1000);
        }
      }
      // this.saveSessionPosition();
    },
    /** 获取板块列表 */getModulList: function getModulList() {
      var _this0 = this;
      this._Util.post(this._Api.POST_COMMUNITY_GET_MODUL_LIST, {
        status: 1
      }, function (data) {
        _this0.listDataInit = true;
        _this0.modulList = data.modulList;
      }, function () {}, this);
    },
    /* 点击新话题 */clickNewTopic: function clickNewTopic() {
      var _this1 = this;
      this._Util.post(this._Api.POST_COMMUNITY_CLICK_NEW_TOPIC, {}, function (data) {
        _this1.showTopicTip = false;
        // this.newTopic()
      }, function () {}, this);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl.includes('watermark/3') ? imgUrl : imgUrl + (imgUrl.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v.includes('watermark/3') ? v : v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /** 删除帖子 */deleteArticle: function deleteArticle(articleId) {
      var _this10 = this;
      _mintUi.MessageBox.confirm('确定删除该内容?').then(function (action) {
        if (action === 'confirm') {
          _this10._Util.post(_this10._Api.POST_COMMUNITY_DELETE_ARTICLE, {
            articleId: articleId
          }, function (data) {
            (0, _mintUi.Toast)({
              message: '删除成功',
              position: 'bottom',
              duration: 1000
            });
            _this10.list = [];
            _this10.idList = [];
            _this10.pageNum = 1;
            _this10.scrollLoading = false;
            _this10.allLoaded = false;
            _this10.getArticleList();
          }, function () {}, _this10);
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /** 保存被卷去的高度和数据 */saveSessionPosition: function saveSessionPosition() {
      // 记录滚动条位置
      if (this.savePosition) {
        var scrollTop = document.getElementById('savePosition') ? document.getElementById('savePosition').scrollTop : document.documentElement.scrollTop || document.body.scrollTop;
        var position = {
          scrollTop: scrollTop,
          pageNum: this.pageNum,
          pageSize: this.pageSize,
          allLoaded: this.allLoaded,
          list: this.list,
          idList: this.idList,
          activeTab: this.activeTab,
          bannerInfo: this.bannerInfo,
          isNoSign: this.noSign,
          isShowTopic: this.showTopicItem,
          modulList: this.modulList,
          userId: this.userId
        };
        sessionStorage.setItem('_dataList_' + this.page, JSON.stringify(position));
      }
    },
    /** 进入板块详情 */goPlateDetail: function goPlateDetail(modulId, modulName, moduleType, moduleTotal) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'modulPage' + modulId,
            url: location.origin + '/v2/community/modulPage?modulId=' + modulId + '&modulName=' + modulName + '&moduleType=' + moduleType + '&moduleTotal=' + moduleTotal
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'modulPage',
          query: {
            modulId: modulId,
            modulName: modulName,
            moduleType: moduleType,
            moduleTotal: moduleTotal
          }
        });
      }
    },
    /** 帖子点赞 */likeArticle: function likeArticle(id, index, isPraise) {
      if (isPraise == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '交流',
        operate_page: this.$route.name === 'modulPage' ? this.$route.query.modulName : '交流首页',
        optionType: '点击',
        param1: id,
        param2: '点赞'
      }, this);
      this.list[index].praiseTotal++;
      this.list[index].isPraise = 1;
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 1,
        communityId: id
      }, function (data) {
        // Toast({
        //   message: "点赞成功",
        //   position: "bottom",
        //   duration: 1000
        // });
      }, function () {
        // Toast({
        //   message: "点赞失败",
        //   position: "bottom",
        //   duration: 1000
        // });
      }, this, true);
    },
    /** 获取所有文章列表 */getArticleList: function getArticleList() {
      var that = this;
      that.listCancelSource = that.$http.CancelToken.source();
      if (this.parentCardType === 3) {
        that._Util.post(that._Api.COMMUNITY_TASKCENTER_NEW.GET_JH_MODULE_LIST, {
          pageSize: that.pageSize,
          pageNum: that.pageNum,
          moduleId: that.modulId
        }, function (data) {
          that.listDataInit = true;
          that.bannerInfo = {
            imgPath: data.imgPath,
            introduce: data.introduce,
            moduleName: data.moduleName,
            moduleTotal: data.totalArticles
          };
          that.userId = data.userId;
          data.articleList.forEach(function (v, i) {
            var uid = v.articleId || 'AD' + v.advertId;
            if (!that.idList.includes(uid)) {
              v.showTen = false;
              v.showShareContainer = false;
              that.idList.push(uid);
              that.list.push(v);
            }
          });
          that.scrollLoading = false;
          if (data.articleList.length < that.pageSize) {
            that.allLoaded = true;
          } else {
            that.pageNum++;
            // 分页埋点
            that._Util.collectPageView2({
              postUrl: that._Api.POST_COLLECT,
              url: window.location.href,
              moduleType: '交流',
              operate_page: that.$route.name === 'modulPage' ? that.$route.query.modulName : '交流首页',
              optionType: '翻页',
              param1: that.pageNum - 1
            }, that);
          }
        }, function () {}, that, true, {
          cancelToken: that.listCancelSource.token
        });
        return;
      }
      if (that.type) {
        // homePage || otherPage
        that._Util.post(that._Api.POST_COMMUNITY_GET_HOME_PAGE, {
          pageSize: that.pageSize,
          pageNum: that.pageNum,
          userId: that.$route.query.userId || that.currentUserId
        }, function (data) {
          that.listDataInit = true;
          data.articleList.forEach(function (v, i) {
            var uid = v.articleId || 'AD' + v.advertId;
            if (!that.idList.includes(uid)) {
              v.showTen = false;
              v.showShareContainer = false;
              that.idList.push(uid);
              that.list.push(v);
            }
          });
          that.scrollLoading = false;
          if (data.articleList.length < that.pageSize) {
            that.allLoaded = true;
          } else {
            that.pageNum++;
            // 分页埋点
            that._Util.collectPageView2({
              postUrl: that._Api.POST_COLLECT,
              url: window.location.href,
              moduleType: '交流',
              operate_page: that.$route.name === 'modulPage' ? that.$route.query.modulName : '交流首页',
              optionType: '翻页',
              param1: that.pageNum - 1
            }, that);
          }
        }, function () {}, that, true, {
          cancelToken: that.listCancelSource.token
        });
      } else {
        that._Util.post(that._Api.POST_COMMUNITY_GET_ARTICLE_LIST, {
          pageSize: that.pageSize,
          pageNum: that.pageNum,
          moduleId: that.modulId,
          isSelected: that.activeTab === 'hot' ? 1 : '',
          isFilter: that.noSign && that.activeTab !== 'hot' ? '0' : ''
        }, function (data) {
          that.listDataInit = true;
          that.bannerInfo = {
            imgPath: data.imgPath,
            introduce: data.introduce,
            moduleName: data.moduleName,
            moduleTotal: data.totalArticles
          };
          that.userId = data.userId;
          data.articleList.forEach(function (v, i) {
            var uid = v.articleId || 'AD' + v.advertId;
            if (!that.idList.includes(uid)) {
              v.showTen = false;
              v.showShareContainer = false;
              that.idList.push(uid);
              that.list.push(v);
            }
          });
          that.scrollLoading = false;
          if (data.articleList.length < that.pageSize) {
            that.allLoaded = true;
          } else {
            that.pageNum++;
            // 分页埋点
            that._Util.collectPageView2({
              postUrl: that._Api.POST_COLLECT,
              url: window.location.href,
              moduleType: '交流',
              operate_page: that.$route.name === 'modulPage' ? that.$route.query.modulName : '交流首页',
              optionType: '翻页',
              param1: that.pageNum - 1
            }, that);
          }
        }, function () {}, that, true, {
          cancelToken: that.listCancelSource.token
        });
      }
    },
    /** 取消正在请求的文章列表接口 */cancelArticleList: function cancelArticleList() {
      this.listCancelSource.cancel();
    },
    loadMore: function loadMore() {
      if (!this.scrollLoading && !this.allLoaded) {
        this.scrollLoading = true;
        this.getArticleList();
      }
    },
    /** 进入帖子详情 */goDetail: function goDetail(articleId, advertType, advertJumpLink, artic) {
      if (advertType === 1) {
        this.goAd(advertJumpLink);
        return;
      }
      // 打开帖子 埋点
      if (this.$route.name === 'community') {
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '交流',
          operate_page: '交流首页',
          optionType: '点击',
          param1: articleId,
          param2: this.pageNum - 1
        }, this);
      } else if (this.$route.name === 'modulPage') {
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '交流',
          operate_page: this.$route.query.modulName,
          optionType: '点击',
          param1: articleId,
          param2: this.pageNum - 1
        }, this);
      }
      if (artic.type == 3) {
        // 3->修车问答提问帖
        if (this._Util.isApp()) {
          var url = location.origin + '/v2/community/askDetailAndAnswerList?detailId=' + artic.repairCaseId;
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'toAskDetail',
              url: url
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'askDetailAndAnswerList',
            query: {
              detailId: artic.repairCaseId
            }
          });
        }
        return;
      }
      if (artic.type == 4) {
        // 4->修车问答回答帖+
        if (this._Util.isApp()) {
          var _url = "".concat(location.origin, "/v2/community/answerDetail?articleId=").concat(artic.articleId, "&detailId=").concat(artic.repairCaseId, "&sourceTag=topic");
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'answerDetail',
              url: _url
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'answerDetail',
            query: {
              articleId: artic.articleId,
              detailId: artic.repairCaseId,
              sourceTag: 'topic'
            }
          });
        }
        return;
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'articleDetail' + articleId,
            url: location.origin + '/v2/community/articleDetail?articleId=' + articleId
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'articleDetail',
          query: {
            articleId: articleId
          }
        });
      }
    },
    /** 进入用户主页 */goUserPage: function goUserPage(userId) {
      event.preventDefault();
      if (this.$route.name === 'myPage') {
        return;
      }
      if (this.userId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId,
              notGive: true
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage' + userId,
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(288);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_347bb70e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(875);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2065)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-347bb70e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_347bb70e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_347bb70e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newComment_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2066);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3627b3cf", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-347bb70e]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:1001}.outContainer .commentContainer[data-v-347bb70e]{position:fixed;bottom:0;left:0;min-height:100px;width:100%;background-color:#fff;padding:.6rem;padding-bottom:0}.outContainer .commentContainer .textarea[data-v-347bb70e]{width:100%;background-color:#f2f2f2;border:none;padding:.4rem;border-radius:2px}.outContainer .commentContainer .toolList[data-v-347bb70e]{margin:.6rem 0 .8rem;position:relative}.outContainer .commentContainer .toolList img[data-v-347bb70e]{width:1rem;height:1rem}.outContainer .commentContainer .toolList .uploadContainer[data-v-347bb70e]{display:inline-block;position:relative;margin-left:1.6rem}.outContainer .commentContainer .toolList .uploadContainer .putPhoto[data-v-347bb70e]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.outContainer .commentContainer .toolList .uploadContainer>img[data-v-347bb70e]{pointer-events:none}.outContainer .commentContainer .toolList .submit[data-v-347bb70e]{width:3.8rem;height:1.4rem;color:#fff;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:0;background-color:#377ee1;border-radius:2px}.outContainer .commentContainer .toolList .submit>span[data-v-347bb70e]{line-height:1;position:absolute;top:50%;left:0;width:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);text-align:center;font-family:PingFangSC-Regular;font-size:.7rem}.outContainer .commentContainer .toolList .forbid[data-v-347bb70e]{opacity:.35}.outContainer .commentContainer .faceBox[data-v-347bb70e]{border-top:1px solid #d9d9d9;width:100%;margin:0 auto;height:12rem;overflow-y:scroll;background-color:#fff;padding:.6rem}.outContainer .commentContainer .faceBox li[data-v-347bb70e]{float:left}.outContainer .commentContainer .faceBox li img[data-v-347bb70e]{margin-left:.14rem;margin-right:.14rem;margin-bottom:.28rem;pointer-events:none}.outContainer .commentContainer .imageList[data-v-347bb70e]{padding-top:.5rem}.outContainer .commentContainer .imageList>.item[data-v-347bb70e]{width:3.75rem;height:3.75rem;position:relative}.outContainer .commentContainer .imageList>.item>img[data-v-347bb70e]{width:100%;height:100%;object-fit:cover;object-position:50% 50%}.outContainer .commentContainer .imageList>.item>span[data-v-347bb70e]{position:absolute;width:.8rem;height:.8rem;top:-.4rem;right:-.4rem;background-image:url(" + escape(__webpack_require__(261)) + ");background-repeat:no-repeat;background-size:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    articleUserName: String,
    // 评论发帖人姓名
    articleId: [String, Number] // 评论所对应的文章内容
  },
  data: function data() {
    return {
      faceList: [{
        text: '[微笑]',
        key: 'weixiao'
      }, {
        text: '[撇嘴]',
        key: 'pizui'
      }, {
        text: '[色]',
        key: 'se'
      }, {
        text: '[发呆]',
        key: 'deyi'
      }, {
        text: '[流泪]',
        key: 'liulei'
      }, {
        text: '[害羞]',
        key: 'haixiu'
      }, {
        text: '[闭嘴]',
        key: 'bizui'
      }, {
        text: '[睡觉]',
        key: 'shuijiao'
      }, {
        text: '[大哭]',
        key: 'daku'
      }, {
        text: '[尴尬]',
        key: 'gangga'
      }, {
        text: '[大怒]',
        key: 'danu'
      }, {
        text: '[调皮]',
        key: 'tiaopi'
      }, {
        text: '[呲牙]',
        key: 'ciya'
      }, {
        text: '[惊讶]',
        key: 'jingya'
      }, {
        text: '[难过]',
        key: 'nanguo'
      }, {
        text: '[酷]',
        key: 'ku'
      }, {
        text: '[冷汗]',
        key: 'lenghan'
      }, {
        text: '[抓狂]',
        key: 'zhuakuang'
      }, {
        text: '[吐]',
        key: 'tu'
      }, {
        text: '[偷笑]',
        key: 'touxiao'
      }, {
        text: '[可爱]',
        key: 'keai'
      }, {
        text: '[白眼]',
        key: 'baiyan'
      }, {
        text: '[饥饿]',
        key: 'er'
      }, {
        text: '[困]',
        key: 'kun'
      }, {
        text: '[惊恐]',
        key: 'jingkong'
      }, {
        text: '[流汗]',
        key: 'liuhan'
      }, {
        text: '[憨笑]',
        key: 'haha'
      }, {
        text: '[大兵]',
        key: 'dabing'
      }, {
        text: '[奋斗]',
        key: 'fendou'
      }, {
        text: '[咒骂]',
        key: 'ma'
      }, {
        text: '[疑问]',
        key: 'wen'
      }, {
        text: '[嘘]',
        key: 'xu'
      }, {
        text: '[晕]',
        key: 'yun'
      }, {
        text: '[折磨]',
        key: 'zhemo'
      }, {
        text: '[衰]',
        key: 'shuai'
      }, {
        text: '[骷髅]',
        key: 'kulou'
      }, {
        text: '[敲打]',
        key: 'da'
      }, {
        text: '[擦汗]',
        key: 'cahan'
      }, {
        text: '[挖鼻]',
        key: 'wabi'
      }, {
        text: '[鼓掌]',
        key: 'guzhang'
      }, {
        text: '[糗大了]',
        key: 'qioudale'
      }, {
        text: '[坏笑]',
        key: 'huaixiao'
      }, {
        text: '[左哼哼]',
        key: 'zuohengheng'
      }, {
        text: '[右哼哼]',
        key: 'youhengheng'
      }, {
        text: '[哈欠]',
        key: 'haqian'
      }, {
        text: '[鄙视]',
        key: 'bishi'
      }, {
        text: '[委屈]',
        key: 'weiqu'
      }, {
        text: '[哭了]',
        key: 'ku'
      }, {
        text: '[快哭了]',
        key: 'kuaikule'
      }, {
        text: '[阴险]',
        key: 'yinxian'
      }, {
        text: '[亲亲]',
        key: 'qinqin'
      }, {
        text: '[亲吻]',
        key: 'kiss'
      }, {
        text: '[吓]',
        key: 'xia'
      }, {
        text: '[可怜]',
        key: 'kelian'
      }, {
        text: '[菜刀]',
        key: 'caidao'
      }, {
        text: '[西瓜]',
        key: 'xigua'
      }, {
        text: '[啤酒]',
        key: 'pijiu'
      }, {
        text: '[篮球]',
        key: 'lanqiu'
      }, {
        text: '[乒乓]',
        key: 'pingpang'
      }, {
        text: '[咖啡]',
        key: 'kafei'
      }, {
        text: '[饭]',
        key: 'fan'
      }, {
        text: '[猪头]',
        key: 'zhutou'
      }, {
        text: '[玫瑰]',
        key: 'hua'
      }, {
        text: '[凋谢]',
        key: 'diaoxie'
      }, {
        text: '[爱心]',
        key: 'love'
      }, {
        text: '[心碎]',
        key: 'xinsui'
      }, {
        text: '[蛋糕]',
        key: 'dangao'
      }, {
        text: '[闪电]',
        key: 'shandian'
      }, {
        text: '[地雷]',
        key: 'zhadan'
      }, {
        text: '[刀]',
        key: 'dao'
      }, {
        text: '[足球]',
        key: 'qiu'
      }, {
        text: '[虫]',
        key: 'chong'
      }, {
        text: '[便便]',
        key: 'dabian'
      }, {
        text: '[月亮]',
        key: 'yueliang'
      }, {
        text: '[太阳]',
        key: 'taiyang'
      }, {
        text: '[礼物]',
        key: 'liwu'
      }, {
        text: '[拥抱]',
        key: 'yongbao'
      }, {
        text: '[强]',
        key: 'qiang'
      }, {
        text: '[弱]',
        key: 'ruo'
      }, {
        text: '[握手]',
        key: 'woshou'
      }, {
        text: '[胜利]',
        key: 'shengli'
      }, {
        text: '[佩服]',
        key: 'peifu'
      }, {
        text: '[勾引]',
        key: 'gouyin'
      }, {
        text: '[拳头]',
        key: 'quantou'
      }, {
        text: '[差劲]',
        key: 'chajin'
      }, {
        text: '[干杯]',
        key: 'cheer'
      }, {
        text: '[NO]',
        key: 'no'
      }, {
        text: '[OK]',
        key: 'ok'
      }, {
        text: '[给力]',
        key: 'geili'
      }, {
        text: '[飞吻]',
        key: 'feiwen'
      }, {
        text: '[跳跳]',
        key: 'tiao'
      }, {
        text: '[发抖]',
        key: 'fadou'
      }, {
        text: '[怄火]',
        key: 'dajiao'
      }, {
        text: '[转圈]',
        key: 'zhuanquan'
      }, {
        text: '[磕头]',
        key: 'ketou'
      }, {
        text: '[回头]',
        key: 'huitou'
      }, {
        text: '[跳绳]',
        key: 'tiaosheng'
      }, {
        text: '[挥手]',
        key: 'huishou'
      }, {
        text: '[激动]',
        key: 'jidong'
      }, {
        text: '[街舞]',
        key: 'tiaowu'
      }, {
        text: '[献吻]',
        key: 'xianwen'
      }, {
        text: '[左太极]',
        key: 'youtaiji'
      }, {
        text: '[右太极]',
        key: 'zuotaiji'
      }],
      commentMessage: '',
      showFaceList: false,
      submiting: false,
      imgList: [],
      bucketUrl: '',
      userName: '',
      interval: null,
      token: ''
    };
  },
  watch: {
    commentMessage: function commentMessage() {
      if (this.commentMessage.length > 200) {
        this.commentMessage = this.commentMessage.slice(0, 200);
        this.$refs.textarea.val = this.commentMessage;
        (0, _mintUi.Toast)({
          message: '评论内容最多200字',
          position: 'middle',
          duration: 1500
        });
      }
    }
  },
  created: function created() {
    var _this = this;
    // 获取七牛云 token
    this._Util.post(this._Api.appGetQNToken, {}, function (data) {
      _this.bucketUrl = data.bucketUrl;
      _this.token = data.token;
    }, function () {}, this);

    // this.getCurrentUser();
    this.userName = this.$store.getters.getUserName;
  },
  mounted: function mounted() {
    if (!this._Util.isIOS) {
      this.$refs.textarea.$el.focus();
    }
  },
  methods: {
    onFocusTextarea: function onFocusTextarea() {
      setTimeout(function () {
        // window.scrollTo(0, document.documentElement.clientHeight);
        // document.body.scrollTop = document.body.scrollHeight
      }, 500);
      // this.interval = setInterval(function() {
      //     document.body.scrollTop = document.body.scrollHeight
      // }, 100)
    },
    onBlurTextarea: function onBlurTextarea() {
      // console.log('blur')
      // clearInterval(this.interval);
    },
    closeBox: function closeBox(e) {
      this.$emit('close');
    },
    // 点击选择表情
    showFace: function showFace() {
      event.preventDefault();
      this.showFaceList = !this.showFaceList;
    },
    /** 获取当前用户信息 */getCurrentUser: function getCurrentUser() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.userName = data.uname ? data.uname : data.nickname ? data.nickname : '用户_' + data.userId;
      }, function () {}, that);
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl) {
      this.$store.commit('openImgView', imgUrl);
    },
    upload: function upload(e) {
      var that = this;
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
        var name;
        if (userInfo.uname) {
          name = '@' + userInfo.uname;
        } else if (userInfo.userName) {
          name = '@' + userInfo.userName;
        } else {
          name = '@用户' + userInfo.userId;
        }
        that._Util.watermarkImg(e, {
          txt: name,
          direction: 'Center',
          isLogo: true,
          model: 'community'
        }, function (fileData) {
          var formData = new FormData();
          formData.append('file', fileData);
          formData.append('token', that.token);
          var url = '';
          if (that._Util.isIOS) {
            url = 'https://upload.qbox.me';
          } else {
            url = 'https://upload.qiniup.com';
          }
          _jquery.default.ajax({
            url: url,
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgList.push(res.key);
          }).fail(function () {});
        });
      }
    },
    /** 提交留言 */submitEvent: function submitEvent() {
      var _this2 = this;
      if (!this.commentMessage.trim() && this.imgList.length === 0) {
        (0, _mintUi.Toast)({
          message: '请输入有效内容',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (this.submiting) return;
      this.submiting = true;
      this._Util.post(this._Api.POST_COMMUNITY_ADD_ARTICLE_COMMENT, {
        articleId: this.articleId,
        content: this.commentMessage,
        contentPic: this.imgList.join(',')
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '提交成功',
          position: 'bottom',
          duration: 1500
        });
        _this2.$emit('submit', {
          commentContent: _this2.commentMessage,
          picList: _this2.imgList,
          userName: _this2.userName
        });
        _this2.submiting = false;
      }, function () {
        _this2.submiting = false;
      }, this);
    },
    /** 插入表情 */insertFace: function insertFace(item) {
      this.commentMessage += item.text;
      this.showFaceList = false;
    },
    /** 删除指定索引图片 */delImg: function delImg(i) {
      this.imgList.splice(i, 1);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.closeBox.apply(null, arguments)}}},[_c('div',{ref:"commentContainer",staticClass:"commentContainer"},[_c('textarea-autosize',{directives:[{name:"fixIos12Input",rawName:"v-fixIos12Input"}],ref:"textarea",staticClass:"textarea",attrs:{"placeholder":'评论「' + _vm.articleUserName.trim() + '」和他交流一下吧...',"max-height":120},nativeOn:{"click":function($event){_vm.showFaceList = false;},"blur":function($event){return _vm.onBlurTextarea.apply(null, arguments)},"focus":function($event){return _vm.onFocusTextarea.apply(null, arguments)}},model:{value:(_vm.commentMessage),callback:function ($$v) {_vm.commentMessage=$$v},expression:"commentMessage"}}),_vm._v(" "),(_vm.imgList.length>0)?_c('div',{staticClass:"imageList"},_vm._l((_vm.imgList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('img',{staticClass:"imgC",attrs:{"src":_vm.bucketUrl + item},on:{"click":function($event){return _vm.viewImage(_vm.bucketUrl + item)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(index)}}})])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"toolList"},[_c('img',{attrs:{"indexValue":"1","src":__webpack_require__(2067)},on:{"click":function($event){return _vm.showFace()}}}),_vm._v(" "),(_vm.imgList.length===0)?_c('div',{staticClass:"uploadContainer",attrs:{"id":"container2"}},[_c('img',{staticStyle:{"margin-top":"0rem","height":"1rem"},attrs:{"src":__webpack_require__(2068)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",staticStyle:{"width":"100%","height":"100%"},attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})]):_c('div',{staticClass:"uploadContainer",attrs:{"id":"container2"}},[_c('img',{staticStyle:{"margin-top":"0rem","height":"1rem"},attrs:{"src":__webpack_require__(2069)}})]),_vm._v(" "),(!_vm.commentMessage.trim()&&_vm.imgList.length===0)?_c('div',{staticClass:"submit forbid",on:{"click":_vm.submitEvent}},[_c('span',[_vm._v("提交评论")])]):_c('div',{staticClass:"submit",on:{"click":_vm.submitEvent}},[_c('span',[_vm._v("提交评论")])])]),_vm._v(" "),(_vm.showFaceList)?_c('ul',{staticClass:"faceBox"},_vm._l((_vm.faceList),function(v,i){return _c('li',{key:i,on:{"click":function($event){$event.stopPropagation();return _vm.insertFace(v)}}},[_c('img',{attrs:{"indexValue":"1","src":'https://static1.kaxiuyun.com/kxy/arclist/face/' + v.key + '.gif'}})])}),0):_vm._e()],1)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/评论表情.2c94362.png";module.exports = __webpack_require__.p + "static/img/图片.d0f0400.png";module.exports = __webpack_require__.p + "static/img/图片不可点击.0611981.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer needsclick"},[(_vm.currentShareItem.showShareContainer)?_c('div',{staticClass:"shareMask",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.currentShareItem.showShareContainer=false; _vm.currentShareItem='';}}}):_vm._e(),_vm._v(" "),_c('transition',{attrs:{"name":"fade"}},[(_vm.showNosignToast)?_c('div',{staticClass:"noSignToast"},[_c('img',{attrs:{"src":__webpack_require__(2511),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("已屏蔽签到帖")])]):_vm._e()]),_vm._v(" "),(!_vm.type && _vm.parentCardType !== 3)?_c('div',{staticClass:"tabBox",attrs:{"id":"_tabBox"}},[_c('div',{class:{activeTab: _vm.activeTab==='hot'},on:{"click":function($event){return _vm.changeTab('hot', null, true)}}},[_vm._v("\n      精选\n    ")]),_vm._v(" "),_c('div',{class:{activeTab: _vm.activeTab==='new'},on:{"click":function($event){return _vm.changeTab('new', null, true)}}},[_vm._v("\n      最新\n    ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.topicItem),expression:"!topicItem"}],class:['topic',{activeTab: _vm.activeTab==='topic'}],on:{"click":function($event){return _vm.changeTab('topic', null, true)}}},[_vm._v("\n      话题"),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTopicTip),expression:"showTopicTip"}]},[_vm._v("新话题")])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.topicItem),expression:"!topicItem"}],staticClass:"searchBtn",on:{"click":function($event){return _vm.goSearch()}}},[_c('img',{attrs:{"src":__webpack_require__(1610),"alt":""}}),_vm._v("搜索")])]):_vm._e(),_vm._v(" "),(!_vm.type && _vm.pinTab && !_vm.showCommentBox && _vm.parentCardType !== 3)?_c('div',{staticClass:"tabBox",staticStyle:{"position":"fixed","z-index":"2","padding-top":".5rem","background":"#FAFAFA","height":"2.6rem","box-shadow":"0px 4px 12px 0px rgba(164,171,191,0.2)"}},[_c('div',{class:{activeTab: _vm.activeTab==='hot'},on:{"click":function($event){return _vm.changeTab('hot', null, true)}}},[_vm._v("\n      精选\n    ")]),_vm._v(" "),_c('div',{class:{activeTab: _vm.activeTab==='new'},on:{"click":function($event){return _vm.changeTab('new', null, true)}}},[_vm._v("\n      最新\n    ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.topicItem),expression:"!topicItem"}],class:['topic',{activeTab: _vm.activeTab==='topic'}],on:{"click":function($event){return _vm.changeTab('topic', null, true)}}},[_vm._v("\n      话题\n    ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.topicItem),expression:"!topicItem"}],staticClass:"searchBtn",on:{"click":function($event){return _vm.goSearch()}}},[_c('img',{attrs:{"src":__webpack_require__(1610),"alt":""}}),_vm._v("搜索")])]):_vm._e(),_vm._v(" "),(!_vm.listDataInit)?_c('div',{staticStyle:{"text-align":"center","margin-top":"4rem","position":"relative","height":"4rem"}},[_c('Loading')],1):_c('div',[(_vm.page==='community'&&_vm.activeTab==='hot'&&_vm.noticeList.length>0)?_c('div',{staticClass:"swiper-container",on:{"click":function($event){return _vm.goNotice()}}},[_c('div',{staticClass:"swiper-wrapper swiper-no-swiping"},_vm._l((_vm.noticeList),function(val,index){return _c('div',{key:'slide-'+index,staticClass:"swiper-slide"},[_c('span',[_vm._v(_vm._s(val.label))]),_vm._v(_vm._s(val.title.length>17?val.title.slice(0,17)+'...':val.title)+"\n        ")])}),0),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(2512),"alt":""}})]):_vm._e(),_vm._v(" "),(_vm.list.length>0)?_c('ul',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"itemList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"scrollLoading","infinite-scroll-distance":"10"}},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"itemWrap"},[(item.isAdvert===1)?_c('li',{staticClass:"ad"},[_c('div',{staticClass:"adWrap",on:{"click":function($event){return _vm.goAd(item.advertUrl)}}},[_c('img',{attrs:{"src":item.advertImg,"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.advertContext.length>25?item.advertContext.length.slice(0,25)+'...':item.advertContext))]),_vm._v(" "),_vm._m(0,true)])]):_c('li',{staticClass:"item",attrs:{"id":'list'+item.articleId},on:{"click":function($event){return _vm.goDetail(item.articleId, item.advertType, item.advertJumpLink, item)}}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId)}}}),_vm._v(" "),(item.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId)}}},[_vm._v(_vm._s(item.userName.slice(0,10)))]),_vm._v(" "),_vm._l((item.medalUserList),function(val,index){return _c('img',{key:index,staticClass:"medal",attrs:{"src":val.medalIcon,"alt":""}})})],2),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(item.time)+" "+_vm._s(item.position?item.position:(item.uprovince==item.ucity?item.uprovince:item.uprovince+item.ucity)))])])]),_vm._v(" "),(item.followStatus==1&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow followed",on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId)}}},[_vm._v("\n            已关注\n          ")]):_vm._e(),_vm._v(" "),(item.followStatus==0&&item.userId!=_vm.userId)?_c('div',{staticClass:"follow",on:{"click":function($event){$event.stopPropagation();return _vm.followToggle(item.userId, item.followStatus, index)}}},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/%E5%85%B3%E6%B3%A8.png","alt":""}}),_vm._v("关注\n          ")]):_vm._e(),_vm._v(" "),(item.articleTitle && item.type != 3)?_c('div',{staticClass:"articleTitle"},[_vm._v("\n            "+_vm._s(item.articleTitle)+"\n          ")]):_vm._e(),_vm._v(" "),(item.content&&item.content.length>112 && item.type != 3)?_c('div',{class:['content',{'specail':item.articleTitle}],style:({'font-size':item.articleTitle?'.8rem':'.9rem'}),domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.content.slice(0, 112).trimRight() + '... ' + '<span class=' + 'openArticle' + '>全部</span>'))}}):_vm._e(),_vm._v(" "),(item.content&&item.content.length<=112 && item.type != 3)?_c('div',{staticClass:"content",style:({'font-size':item.articleTitle?'.8rem':'.9rem'}),domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.content))}}):_vm._e(),_vm._v(" "),(item.pictureList && item.type != 3)?_c('div',[(item.pictureList && item.pictureList.length===1)?_c('div',{staticClass:"singleImg"},[(item.pictureList[0].includes('watermark/3'))?_c('img',{attrs:{"src":item.pictureList[0],"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.pictureList[0], [])}}}):_c('img',{attrs:{"src":item.pictureList[0] + (item.pictureList[0].indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.pictureList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.pictureList && item.pictureList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.pictureList),function(v,i){return _c('img',{key:i,attrs:{"src":v.indexOf('watermark/3') > -1 ? v : ( v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/220/h/220'),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.pictureList, i)}}})}),0):_vm._e()]):(item.coverPicList && !item.videoList && item.type != 3)?_c('div',[(item.coverPicList&&item.coverPicList.length===1)?_c('div',{staticClass:"singleImg"},[(item.coverPicList[0].includes('watermark/3'))?_c('img',{attrs:{"src":item.coverPicList[0],"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.coverPicList[0], [])}}}):_c('img',{attrs:{"src":item.coverPicList[0] + (item.coverPicList[0].indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.coverPicList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.coverPicList&&item.coverPicList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.coverPicList),function(v,i){return _c('img',{key:i,attrs:{"src":v.indexOf('watermark/3') > -1 ? v : ( v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/220/h/220'),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.coverPicList, i)}}})}),0):_vm._e()]):_vm._e(),_vm._v(" "),(item.type == 4)?_c('div',{staticClass:"ask-tit"},[_c('b',[_vm._v("问题")]),_vm._v(" "),_c('span',{staticStyle:{"margin-bottom":"0.4rem","font-size":".8rem"}},[_vm._v(_vm._s(item.associationQues))])]):_vm._e(),_vm._v(" "),(item.type == 3)?_c('div',{staticClass:"ask-tit"},[_c('b',[_vm._v("问题")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.articleTitle))]),_vm._v(" "),_c('div',{staticClass:"answer"},[(item.rewardsCount)?_c('span',[_c('img',{attrs:{"src":__webpack_require__(802),"alt":""}}),_vm._v(" 悬赏"+_vm._s(item.rewardsCount)+"星豆")]):_vm._e(),_vm._v(" "),_vm._m(1,true)])]):_vm._e(),_vm._v(" "),(item.videoList && item.type != 3)?_c('div',{staticClass:"videoFrame"},[_c('div',[_c('img',{attrs:{"src":item.videoList + '?vframe/jpg/offset/1',"alt":""}})])]):_vm._e(),_vm._v(" "),(item.type != 3)?_c('div',{staticClass:"plateNameContainer"},[_c('div',{staticClass:"plateName",on:{"click":function($event){$event.stopPropagation();return _vm.goPlateDetail(item.moduleId, item.moduleName, item.moduleType,item.moduleTotal)}}},[_c('img',{attrs:{"src":__webpack_require__(210),"alt":""}}),_vm._v(_vm._s(item.moduleName)+"\n            ")]),_vm._v(" "),(item.hotStatus>0)?_c('div',{staticClass:"plateName",staticStyle:{"color":"#FF701F","background":"#FFEFEA"}},[_c('img',{attrs:{"src":__webpack_require__(1416),"alt":""}}),_vm._v("精选\n            ")]):_vm._e()]):_vm._e(),_vm._v(" "),(item.type===1&&item.advertType===2 && item.type != 3)?_c('div',{staticClass:"articleOperation"},[_c('div',[(item.advertBtnOne)?_c('div',[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.advertLinkOne)}}},[_vm._v(_vm._s(item.advertBtnOne))])]):_vm._e(),_vm._v(" "),(item.advertBtnTwo)?_c('div',[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.advertLinkTwo)}}},[_vm._v(_vm._s(item.advertBtnTwo))])]):_vm._e()])]):_vm._e(),_vm._v(" "),(item.type===2&&item.topicStatus===1 && item.type != 3)?_c('div',{staticClass:"articleOperation"},[_c('div',[(item.hairTopicBtn)?_c('div',[_c('div',{staticClass:"color",on:{"click":function($event){$event.stopPropagation();return _vm.postMessage(item.moduleId, item.moduleName)}}},[_vm._v(_vm._s(item.hairTopicBtn))])]):_vm._e()])]):_vm._e(),_vm._v(" "),(item.inPostAdvert && item.type != 3)?_c('div',{staticClass:"adInArticle"},[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.inPostAdvert.advertUrl)}}},[_c('img',{attrs:{"src":item.inPostAdvert.advertImg,"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.inPostAdvert.advertContext))]),_vm._v(" "),_c('div',[_vm._v("查看")])])]):_vm._e(),_vm._v(" "),(item.advertType!==1 && item.type != 3)?_c('div',{staticClass:"toolContainer"},[(item.isPraise==0)?_c('div',{staticClass:"like"},[_c('img',{attrs:{"src":__webpack_require__(1409),"alt":""}}),_vm._v("\n              "+_vm._s(item.praiseTotal>0 ? item.praiseTotal : '点赞')+"\n              "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();return _vm.likeArticle(item.articleId, index, item.isPraise)}}})]):_c('div',{staticClass:"like",staticStyle:{"color":"#EE4545"}},[_c('img',{staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(1410),"alt":""}}),_vm._v("\n              "+_vm._s(item.praiseTotal>0 ? item.praiseTotal : '点赞')+"\n              "),_c('div',{staticClass:"hotArea"})]),_vm._v(" "),(!_vm.type)?_c('div',{staticClass:"comment"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(181),"alt":""}}),_vm._v("\n              评论\n              "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();_vm.showCommentBox=true;_vm.currentCommentItem=item}}})]):_c('div',{staticClass:"comment"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(181),"alt":""}}),_vm._v("\n              "+_vm._s(item.commentTotal>0 ? item.commentTotal : '评论')+"\n            ")]),_vm._v(" "),(_vm._Util.isApp())?_c('div',{staticClass:"share"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(1411),"alt":""}}),_vm._v("\n              转发\n              "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();item.showShareContainer=true;_vm.currentShareItem=item;}}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(item.showShareContainer),expression:"item.showShareContainer"}],staticClass:"shareContainer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.getShareInfo(item.articleId, 'session')}}},[_c('img',{attrs:{"src":__webpack_require__(267),"alt":""}}),_vm._v("分享给好友")]),_vm._v(" "),_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.getShareInfo(item.articleId, 'timeline')}}},[_c('img',{attrs:{"src":__webpack_require__(268),"alt":""}}),_vm._v("分享到朋友圈")])])]):_vm._e(),_vm._v(" "),(_vm.type==='homePage')?_c('span',{staticClass:"del",on:{"click":function($event){$event.stopPropagation();return _vm.deleteArticle(item.articleId)}}},[_c('img',{attrs:{"src":__webpack_require__(1412),"alt":""}})]):_c('span',{staticClass:"other",on:{"click":function($event){$event.stopPropagation();_vm.showReportBox=true;_vm.currentCommunityId=item.articleId}}},[_c('img',{attrs:{"src":__webpack_require__(213),"alt":""}})])]):_vm._e(),_vm._v(" "),(((item.articleCommentList&&item.articleCommentList.length>0)||item.commentAdvert) && item.type != 3)?_c('div',{staticClass:"commentSelection"},[(item.showTen)?_c('div',[_c('div',{staticClass:"comments"},[(item.commentAdvert)?_c('p',{staticClass:"adInComment",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.commentAdvert.advertUrl)}}},[_c('span',{staticClass:"name"},[_vm._v("小轨:")]),_vm._v(" "),_c('span',{staticClass:"commentContent"},[_vm._v(_vm._s(item.commentAdvert.advertContext))]),_vm._v(" "),_c('span',{staticClass:"clickBtn"},[_vm._v("查看")])]):_vm._e(),_vm._v(" "),_vm._l((item.articleCommentList),function(v,i){return _c('p',{key:i},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(v.userName.slice(0,9))+"：")]),_vm._v(" "),(v.picList&&v.picList.length>0)?_c('span',{staticClass:"imgTips"},[_c('img',{attrs:{"src":__webpack_require__(182),"alt":""}}),_vm._v(" 图片")]):_vm._e(),_vm._v(" "),(v.commentContent)?_c('span',{staticClass:"commentContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.commentContent))}},[_vm._v(_vm._s(v.commentContent))]):_vm._e()])})],2),_vm._v(" "),_c('div',{staticClass:"showMoreComments"},[_vm._v("查看全部"+_vm._s(item.commentTotal)+"条评论")])]):_c('div',[_c('div',{staticClass:"comments"},[(item.commentAdvert)?_c('p',{staticClass:"adInComment",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.commentAdvert.advertUrl)}}},[_c('span',{staticClass:"name"},[_vm._v("小轨:")]),_vm._v(" "),_c('span',{staticClass:"commentContent"},[_vm._v(_vm._s(item.commentAdvert.advertContext))]),_vm._v(" "),_c('span',{staticClass:"clickBtn"},[_vm._v("查看")])]):_vm._e(),_vm._v(" "),_vm._l((item.articleCommentList),function(v,i){return (i<2)?_c('p',{key:i},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(v.userName.slice(0,9))+"：")]),_vm._v(" "),(v.picList&&v.picList.length>0)?_c('span',{staticClass:"imgTips"},[_c('img',{attrs:{"src":__webpack_require__(182),"alt":""}}),_vm._v(" 图片")]):_vm._e(),_vm._v(" "),(v.commentContent)?_c('span',{staticClass:"commentContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.commentContent))}},[_vm._v(_vm._s(v.commentContent))]):_vm._e()]):_vm._e()})],2),_vm._v(" "),(item.articleCommentList.length>2)?_c('div',{staticClass:"showMoreComments",on:{"click":function($event){$event.stopPropagation();item.showTen=true;}}},[_vm._v("展开更多评论")]):_vm._e()])]):_vm._e()]),_vm._v(" "),(index===2&&_vm.showNosignBtn)?_c('li',{staticClass:"noSignArticle"},[_c('div',{on:{"click":_vm.filterSignArticle}},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/nosign.png","alt":""}}),_vm._v("不看签到帖")])]):_vm._e()])}),_vm._v(" "),(!_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10px","padding-bottom":"10px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.list.length==0 && !_vm.showMOdulList)?_c('div',{staticStyle:{"text-align":"center","padding-top":"40px"}},[_vm._v("暂无帖子")]):_vm._e(),_vm._v(" "),(_vm.allLoaded&&_vm.list.length>0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"20px","padding-bottom":"20px"}},[_vm._v("到底了，你也发个帖呗~")]):_vm._e()]),_vm._v(" "),_vm._l((_vm.modulList),function(v,i){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTopicItem && _vm.listDataInit),expression:"showTopicItem && listDataInit"}],key:i,staticClass:"topicwrap",on:{"click":function($event){return _vm.goPlateDetail(v.id, v.name,null,v.total)}}},[_c('div',{staticClass:"leftContent"},[_c('p',[_c('img',{directives:[{name:"show",rawName:"v-show",value:(v.browses),expression:"v.browses"}],attrs:{"src":__webpack_require__(1421),"alt":""}}),_vm._v("# "+_vm._s(v.name))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(v.introduce))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.total)+" 帖子 "),_c('img',{attrs:{"src":__webpack_require__(1422),"alt":""}})])]),_vm._v(" "),_c('img',{attrs:{"src":v.imgPath,"alt":""}})])}),_vm._v(" "),(_vm.showReportBox)?_c('report-box',{attrs:{"type":1,"community-id":_vm.currentCommunityId},on:{"close":function($event){_vm.showReportBox=false;_vm.currentCommunityId='';}}}):_vm._e(),_vm._v(" "),(_vm.showCommentBox)?_c('comment-box',{attrs:{"article-user-name":_vm.currentCommentItem.userName,"article-id":_vm.currentCommentItem.articleId},on:{"close":function($event){_vm.showCommentBox=false;_vm.currentCommentItem=''},"submit":_vm.commentSuccess}}):_vm._e()],2)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v("查看详情"),_c('img',{attrs:{"src":__webpack_require__(1374),"alt":""}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"toAns"},[_c('img',{attrs:{"src":__webpack_require__(803),"alt":""}}),_vm._v(" 帮他解答")])}]
module.exports = __webpack_require__.p + "static/img/noSignToast.b3db169.png";module.exports = __webpack_require__.p + "static/img/搜索.5060590.png";module.exports = __webpack_require__.p + "static/img/lunbo.52c2d2a.png";module.exports = __webpack_require__.p + "static/img/新话题.6243b18.png";module.exports = __webpack_require__.p + "static/img/箭头-蓝.4c6f391.png";module.exports = __webpack_require__.p + "static/img/arrow2.f67595b.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer modultotal"},[(_vm.imgPath)?_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"bannerContainer"},[(_vm.$route.query.cardType == 3)?_c('div',{staticClass:"left"},[_c('img',{staticStyle:{"height":"100%"},attrs:{"src":_vm.imgPath,"alt":""}})]):_c('div',{staticClass:"left"},[_c('img',{attrs:{"src":_vm.imgPath,"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.total)+"帖子")])]),_vm._v(" "),_c('div',{staticClass:"detail"},[_c('p',[_vm._v(_vm._s(_vm.moduleName))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.introduce))])])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"articleContainer"},[_c('article-list',{attrs:{"save-position":true,"parent-card-type":Number(_vm.$route.query.cardType),"modul-id":_vm.$route.query.modulId || _vm.$route.query.modulid,"page":_vm.$route.query.modulName || _vm.$route.query.modulname},on:{"showBanner":_vm.handleBanner}})],1),_vm._v(" "),_c('div',{staticClass:"postBtn",on:{"click":_vm.publishBtn}},[_c('img',{attrs:{"src":__webpack_require__(2513),"alt":""}}),_vm._v(" 发帖")]),_vm._v(" "),_c('mt-popup',{staticClass:"bottomPopup",attrs:{"position":"bottom"},model:{value:(_vm.showPublish),callback:function ($$v) {_vm.showPublish=$$v},expression:"showPublish"}},[_c('div',{staticClass:"content"},[_c('div',{staticClass:"item",on:{"click":_vm.postMessage}},[_c('img',{attrs:{"src":__webpack_require__(2514),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("发图文")])]),_vm._v(" "),(!_vm._Util.isMPaaS())?_c('div',{staticClass:"item",on:{"click":_vm.postVideo}},[_c('img',{attrs:{"src":__webpack_require__(2515),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("发视频")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"item",on:{"click":_vm.postCase}},[_c('img',{attrs:{"src":__webpack_require__(2516),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("发案例")])])]),_vm._v(" "),_c('div',{staticClass:"cancelBtn",on:{"click":function($event){_vm.showPublish=false;}}},[_vm._v("取消")])])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/发帖.3fa914f.png";module.exports = __webpack_require__.p + "static/img/imgText.f66ba02.png";module.exports = __webpack_require__.p + "static/img/video.9c8a703.png";module.exports = __webpack_require__.p + "static/img/case.afe9594.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap classCourse"},[_c('div',{staticClass:"main",attrs:{"id":"savePosition"}},[(_vm.courseDetail.moduleId)?_c('div',{staticClass:"tabWrap"},[_c('div',[_c('span',{class:{active: _vm.currentTab==='courseTab'},on:{"click":function($event){return _vm.changeTab('courseTab')}}},[_vm._v("课程")]),_vm._v(" "),_c('span',{class:{active: _vm.currentTab==='interactTab'},on:{"click":function($event){return _vm.changeTab('interactTab')}}},[_vm._v("互动")])])]):_vm._e(),_vm._v(" "),(_vm.currentTab==='courseTab')?_c('div',{staticClass:"courseTab"},[(_vm.courseDetail.classIntroduce)?_c('div',{staticClass:"intro"},[_c('div',{staticClass:"title"},[_vm._v("课程介绍")]),_vm._v(" "),_c('div',{staticClass:"htmlWrap",domProps:{"innerHTML":_vm._s(_vm.courseDetail.classIntroduce)}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"catalog"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"catalogList"},_vm._l((_vm.courseDetail.hourList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.getCourseUrl(v.hourId, v.type, v.height, v.width, v.hourName, v.status, v.watchLocation)}}},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.hourName))]),_vm._v(" "),_c('div',{staticClass:"detail"},[(v.status===1||v.startStatus===1)?_c('span',{staticClass:"length"},[_vm._v(_vm._s(_vm.handleText(v.type, v.hourLength)))]):_c('span',{staticClass:"length"},[_vm._v(_vm._s(v.startTime)+"解锁")]),_vm._v(" "),(v.watchRecord)?_c('span',{staticClass:"progress"},[_vm._v(_vm._s(v.watchRecord+'%'))]):(v.status===1)?_c('span',{staticClass:"progress"},[_vm._v("免费试看")]):_vm._e(),_vm._v(" "),_c('div',{class:['icon', _vm.handleIcon(_vm.courseDetail.status, v.type, v.status, v.startStatus)]})])])}),0)])]):_vm._e(),_vm._v(" "),(_vm.currentTab==='interactTab')?_c('div',{staticClass:"interactTab"},[_c('modul-page')],1):_vm._e()]),_vm._v(" "),(_vm.courseDetail.leftName||_vm.courseDetail.rightName)?_c('div',{staticClass:"bottomWrap"},[(_vm.courseDetail.leftName)?_c('div',{staticClass:"leftBtn",on:{"click":function($event){return _vm.goUrl(_vm.courseDetail.leftUrl)}}},[_vm._v(_vm._s(_vm.courseDetail.leftName))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightBtn",on:{"click":function($event){return _vm.goUrl(_vm.courseDetail.rightUrl)}}},[_vm._v(_vm._s(_vm.courseDetail.rightName))])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_vm._v("\n          课程目录\n          "),_c('div',{staticClass:"tips"},[_vm._v("课程将在指定日期内依次解锁")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(424);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49a3154c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1025);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49a3154c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49a3154c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classCourseVideo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _videoPlayer = _interopRequireDefault(__webpack_require__(169));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Video: _videoPlayer.default
  },
  data: function data() {
    return {
      timer: null,
      url: this.$route.params.url,
      videoName: this.$route.params.videoName,
      courseType: this.$route.params.courseType,
      hourId: this.$route.params.hourId,
      currentVideoType: this.$route.params.currentVideoType
    };
  },
  created: function created() {},
  mounted: function mounted() {
    if (this.$route.query.courseType === 'single' && this.$route.query.hourId) {
      this.refreshForSingle();
    } else {
      document.title = this.videoName;
      this.toggleLandscape();
      this.share();
    }
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
    this.timer = null;
  },
  methods: {
    /**
     * 获取单课url后 重新设置数据
     */
    refreshForSingle: function refreshForSingle() {
      var _this = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var data;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this.getSecretUrlForSingle(_this.$route.query.hourId);
            case 1:
              data = _context.sent;
              _this.url = data.hourUrl;
              _this.videoName = _this.$route.query.videoName;
              _this.hourId = _this.$route.query.hourId;
              _this.currentVideoType = data.videoType;
              _this.courseType = _this.$route.query.courseType;
              document.title = _this.videoName;
              _this.toggleLandscape();
              _this.share();
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 单课获取防盗链URL */getSecretUrlForSingle: function getSecretUrlForSingle(hourId) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this2);
      });
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = '/v2/shopping/onlineCourseList';
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典「犇犇课堂」',
                  desc: '海量维修教学精品课程，等你来享用',
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典「犇犇课堂」',
              desc: '海量维修教学精品课程，等你来享用',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典「犇犇课堂」',
              desc: '海量维修教学精品课程，等你来享用',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典「犇犇课堂」',
              desc: '海量维修教学精品课程，等你来享用',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 设置全屏是否横屏
     */
    toggleLandscape: function toggleLandscape() {
      var that = this;
      // 设置app的视频全屏自动横屏
      document.addEventListener('webkitfullscreenchange', function () {
        if (that.currentVideoType == 0) {
          // 如果是竖屏视频不让手机强制横屏
          return;
        }
        var el = document.webkitFullscreenElement;
        if (that._Util.isApp()) {
          if (el) {
            api.setScreenOrientation({
              orientation: 'landscape_left'
            });
          }
        }
      });
    },
    /**
     * 播放开始 记录观看进度
     */
    startPlay: function startPlay() {
      var _this3 = this;
      this.addLog((this.$refs.videoPlayer.video.currentTime / this.$refs.videoPlayer.video.duration * 100 || 0).toFixed(0));
      clearInterval(this.timer);
      this.timer = null;
      this.timer = setInterval(function () {
        _this3.addLog((_this3.$refs.videoPlayer.video.currentTime / _this3.$refs.videoPlayer.video.duration * 100 || 0).toFixed(0));
      }, 120000);
    },
    /**
     * 播放暂停 记录观看进度
     */
    pausePlay: function pausePlay() {
      this.addLog((this.$refs.videoPlayer.video.currentTime / this.$refs.videoPlayer.video.duration * 100 || 0).toFixed(0));
      clearInterval(this.timer);
      this.timer = null;
    },
    /**
     * 增加班课课时观看记录
     * @param(hourNode): 视频播放进度百分比
     */
    addLog: function addLog(hourNode) {
      this._Util.post(this._Api.POST_ADD_HOUR_RECORD_NEW, {
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        platForm: this._Util.isIOS ? 'IOS' : 'Android',
        courseType: this.courseType,
        hourId: this.hourId,
        hourNode: hourNode,
        hourLocation: this.$refs.videoPlayer.video.currentTime
      }, function (data) {}, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.url)?_c('div',[_c('Video',{ref:"videoPlayer",attrs:{"url":_vm.url,"poster":_vm.url+'&vframe/jpg/offset/1'},on:{"play":_vm.startPlay,"pause":_vm.pausePlay}})],1):_c('div',[_c('div',{staticStyle:{"padding-top":"2rem","font-size":"1rem","text-align":"center"}},[_vm._v("\n    视频链接已过期\n  ")])])}
var staticRenderFns = []
exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-sticky--fixed{position:fixed;top:0;right:0;left:0;z-index:99}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/sticky/index.css"],"names":[],"mappings":"AAAA,mBAAmB,eAAe,MAAM,QAAQ,OAAO,UAAU,CAAC","file":"index.css","sourcesContent":[".van-sticky--fixed{position:fixed;top:0;right:0;left:0;z-index:99}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1963);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("352942c1", content, true, {});

exports.__esModule = true;
exports.default = void 0;

var _style = __webpack_require__(200);

var _unit = __webpack_require__(248);

var _utils = __webpack_require__(18);

var _scroll = __webpack_require__(89);

var _bindEvent = __webpack_require__(102);

var _createNamespace = (0, _utils.createNamespace)('sticky'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _bindEvent.BindEventMixin)(function (bind, isBind) {
    if (!this.scroller) {
      this.scroller = (0, _scroll.getScroller)(this.$el);
    }

    if (this.observer) {
      var method = isBind ? 'observe' : 'unobserve';
      this.observer[method](this.$el);
    }

    bind(this.scroller, 'scroll', this.onScroll, true);
    this.onScroll();
  })],
  props: {
    zIndex: [Number, String],
    container: null,
    offsetTop: {
      type: [Number, String],
      default: 0
    }
  },
  data: function data() {
    return {
      fixed: false,
      height: 0,
      transform: 0
    };
  },
  computed: {
    offsetTopPx: function offsetTopPx() {
      return (0, _unit.unitToPx)(this.offsetTop);
    },
    style: function style() {
      if (!this.fixed) {
        return;
      }

      var style = {};

      if ((0, _utils.isDef)(this.zIndex)) {
        style.zIndex = this.zIndex;
      }

      if (this.offsetTopPx && this.fixed) {
        style.top = this.offsetTopPx + "px";
      }

      if (this.transform) {
        style.transform = "translate3d(0, " + this.transform + "px, 0)";
      }

      return style;
    }
  },
  watch: {
    fixed: function fixed(isFixed) {
      this.$emit('change', isFixed);
    }
  },
  created: function created() {
    var _this = this;

    // compatibility: https://caniuse.com/#feat=intersectionobserver
    if (!_utils.isServer && window.IntersectionObserver) {
      this.observer = new IntersectionObserver(function (entries) {
        // trigger scroll when visibility changed
        if (entries[0].intersectionRatio > 0) {
          _this.onScroll();
        }
      }, {
        root: document.body
      });
    }
  },
  methods: {
    onScroll: function onScroll() {
      var _this2 = this;

      if ((0, _style.isHidden)(this.$el)) {
        return;
      }

      this.height = this.$el.offsetHeight;
      var container = this.container,
          offsetTopPx = this.offsetTopPx;
      var scrollTop = (0, _scroll.getScrollTop)(window);
      var topToPageTop = (0, _scroll.getElementTop)(this.$el);

      var emitScrollEvent = function emitScrollEvent() {
        _this2.$emit('scroll', {
          scrollTop: scrollTop,
          isFixed: _this2.fixed
        });
      }; // The sticky component should be kept inside the container element


      if (container) {
        var bottomToPageTop = topToPageTop + container.offsetHeight;

        if (scrollTop + offsetTopPx + this.height > bottomToPageTop) {
          var distanceToBottom = this.height + scrollTop - bottomToPageTop;

          if (distanceToBottom < this.height) {
            this.fixed = true;
            this.transform = -(distanceToBottom + offsetTopPx);
          } else {
            this.fixed = false;
          }

          emitScrollEvent();
          return;
        }
      }

      if (scrollTop + offsetTopPx > topToPageTop) {
        this.fixed = true;
        this.transform = 0;
      } else {
        this.fixed = false;
      }

      emitScrollEvent();
    }
  },
  render: function render() {
    var h = arguments[0];
    var fixed = this.fixed;
    var style = {
      height: fixed ? this.height + "px" : null
    };
    return h("div", {
      "style": style
    }, [h("div", {
      "class": bem({
        fixed: fixed
      }),
      "style": this.style
    }, [this.slots()])]);
  }
});

exports.default = _default;__webpack_require__(26);
__webpack_require__(1352);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(425);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a43dd1c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1027);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2517)
  __webpack_require__(2519)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1a43dd1c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a43dd1c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a43dd1c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2518);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2e8c2a88", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".cousre-index[data-v-1a43dd1c]{width:100%;height:100%;overflow-x:hidden;overflow-y:auto}.cousre-index .searchTop[data-v-1a43dd1c]{height:3.2rem;background-color:#fff;box-sizing:content-box;padding:0 .8rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.cousre-index .searchTop.searching>div[data-v-1a43dd1c]:first-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.cousre-index .searchTop.searching>.searchBtn[data-v-1a43dd1c]{right:.6rem}.cousre-index .searchTop>div[data-v-1a43dd1c]:first-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2rem;background-color:#f2f2f2;border-radius:.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:.6rem;line-height:2rem}.cousre-index .searchTop>div:first-child > img[data-v-1a43dd1c]{width:.7rem;height:.65rem}.cousre-index .searchTop>div:first-child > input[data-v-1a43dd1c]{padding-left:.4rem;font-size:14px;font-family:PingFangSC-Regular;font-weight:400;color:#333}.cousre-index .searchTop>div:first-child > input[data-v-1a43dd1c]::-webkit-input-placeholder{color:#666}.cousre-index .searchTop>.searchBtn[data-v-1a43dd1c]{-webkit-transform:translateX(300%);-ms-transform:translateX(300%);transform:translateX(300%);width:0;height:1.8rem;line-height:1.8rem;background:#177afa;border-radius:.4rem;color:#fff;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;text-align:center;-webkit-transition:all .5s ease;transition:all .5s ease}.cousre-index .searchTop>.searchBtn.showBtn[data-v-1a43dd1c]{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);width:3.3rem;margin-left:.4rem}.cousre-index .tab-box[data-v-1a43dd1c]{height:1.95rem;background:#fff;overflow-x:auto;overflow-y:hidden;white-space:nowrap;font-size:0;border-bottom:1px solid #eee}.cousre-index .tab-box.suctTop[data-v-1a43dd1c]{position:fixed;width:100%;left:0;top:0;z-index:100;background:#fff}.cousre-index .tab-box[data-v-1a43dd1c]::-webkit-scrollbar{display:none}.cousre-index .tab-box li[data-v-1a43dd1c]{display:inline-block;margin-left:1.2rem;height:1.95rem;position:relative;color:#999;font:16px/1.95rem PingFangSC-Regular}.cousre-index .tab-box li[data-v-1a43dd1c]:first-child{margin-left:.8rem}.cousre-index .tab-box li.active[data-v-1a43dd1c]{color:#177afa;font:700 20px/1.95rem PingFangSC-Semibold}.cousre-index .tab-box li.active[data-v-1a43dd1c]:after{content:\"\";position:absolute;width:.8rem;height:.2rem;background:#177afa;border-radius:.1rem;bottom:0;left:50%;margin-left:-.4rem}.cousre-index .main[data-v-1a43dd1c]{font-size:0}.cousre-index .main .upwarp-nodata[data-v-1a43dd1c]{padding:.5rem 0;text-align:center;color:#666;font:14px/1rem PingFangSC-Regular}.cousre-index .main .course-item[data-v-1a43dd1c]{padding:0 .8rem .8rem;background:#fff}.cousre-index .main .more-liv[data-v-1a43dd1c]{margin-top:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#177afa;font:14px/1rem PingFangSC-Regular}.cousre-index .main .more-liv img[data-v-1a43dd1c]{margin-left:.3rem;width:.3rem;height:.5rem}.cousre-index .main .myUnlimitCard[data-v-1a43dd1c]{margin-top:1.4rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.cousre-index .main .myUnlimitCard .cardIcon[data-v-1a43dd1c]{width:2.2rem;height:2.2rem;border-radius:.3rem;margin-right:.6rem}.cousre-index .main .myUnlimitCard .rightContent[data-v-1a43dd1c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.cousre-index .main .myUnlimitCard .rightContent>p[data-v-1a43dd1c]:first-of-type{color:#95763a;font:700 17px/1.2rem PingFangSC-Semibold}.cousre-index .main .myUnlimitCard .rightContent>p[data-v-1a43dd1c]:nth-of-type(2){color:#999;font:12px/.8rem PingFangSC-Regular;margin-top:.1rem}.cousre-index .main .myUnlimitCard .openCard[data-v-1a43dd1c]{width:6rem;color:#999;font:14px/1rem PingFangSC-Regular;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.cousre-index .main .myUnlimitCard .openCard img[data-v-1a43dd1c]{margin-left:.2rem;width:.3rem;height:.5rem}.cousre-index .main .myStudyRecord[data-v-1a43dd1c]{width:17.55rem;height:4rem;border-radius:.4rem;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);margin:0 auto .6rem;position:relative}.cousre-index .main .myStudyRecord>img[data-v-1a43dd1c]{width:2.4rem;height:2.4rem;position:absolute;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cousre-index .main .myStudyRecord .rightContent[data-v-1a43dd1c]{margin-left:3.6rem;padding-top:.85rem}.cousre-index .main .myStudyRecord .rightContent>div[data-v-1a43dd1c]:first-of-type{font-size:.85rem;font-family:PingFangSC;font-weight:500;color:#333;line-height:1.2rem;margin-bottom:.1rem}.cousre-index .main .myStudyRecord .rightContent>div[data-v-1a43dd1c]:nth-of-type(2){font-size:.7rem;font-family:PingFangSC;font-weight:400;color:#666;line-height:1rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:.8rem}.cousre-index .main .bigAdContainer[data-v-1a43dd1c]{margin-top:1.4rem}.cousre-index .main .bigAdContainer .ad[data-v-1a43dd1c]{height:4.5rem;width:100%;background-repeat:no-repeat;background-size:contain;background-position:50%;border-radius:.3rem}.cousre-index .main .category[data-v-1a43dd1c]{margin-top:.8rem}.cousre-index .main .category .property[data-v-1a43dd1c]{overflow:hidden}.cousre-index .main .category .property>div[data-v-1a43dd1c]{width:32%;height:2.6rem;float:left;text-align:center;margin-bottom:.4rem;margin-right:2%;border:1px solid #eee;box-shadow:0 8px 12px 0 rgba(207,210,216,.2);border-radius:.3rem}.cousre-index .main .category .property>div[data-v-1a43dd1c]:nth-child(3n){margin-right:0;text-align:right}.cousre-index .main .category .property>div .item[data-v-1a43dd1c]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:.3rem;background:#fff;position:relative;overflow:hidden}.cousre-index .main .category .property>div .item .name[data-v-1a43dd1c]{color:#333;font:700 16px/1.15rem PingFangSC-Semibold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cousre-index .main .adContainer[data-v-1a43dd1c]{margin-bottom:1.2rem}.cousre-index .main .adContainer .ad[data-v-1a43dd1c]{width:17.55rem;height:4rem;margin:0 auto .6rem;background-repeat:no-repeat;background-size:contain;background-position:50%;border-radius:.3rem;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2)}.cousre-index .main .adContainer .ad[data-v-1a43dd1c]:last-child{margin-bottom:0}.cousre-index .main .hotCourse[data-v-1a43dd1c]{margin-top:1.4rem}.cousre-index .main .hotCourse.no-margin[data-v-1a43dd1c]{margin:0}.cousre-index .main .hotCourse .title[data-v-1a43dd1c]{color:#333;font:700 18px/1.25rem PingFangSC-Semibold;position:relative}.cousre-index .main .hotCourse .title span[data-v-1a43dd1c]{position:absolute;bottom:0;right:1.07rem;font-family:PingFangSC-Regular;font-size:.75rem;color:#177afa;font-weight:400;line-height:1.05rem}.cousre-index .main .hotCourse .title span[data-v-1a43dd1c]:after{content:\"\";position:absolute;top:50%;right:-.5rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-image:url(" + escape(__webpack_require__(183)) + ");background-repeat:no-repeat;background-size:100%;height:.4rem;width:.25rem}.cousre-index .main .feedback[data-v-1a43dd1c]{font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;text-align:center;padding-top:.9rem;padding-bottom:1.2rem}.cousre-index .main .record .study-box[data-v-1a43dd1c]{padding-top:.8rem;font-size:0}.cousre-index .main .record .study-box .study-item[data-v-1a43dd1c]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:49%;height:2.4rem;background:#f5f5f5;border-radius:.3rem}.cousre-index .main .record .study-box .study-item span[data-v-1a43dd1c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:700 14px/1 PingFangSC-Semibold}.cousre-index .main .record .study-box .study-item img[data-v-1a43dd1c]:first-child{width:1rem;height:1rem;margin:0 .4rem 0 .6rem}.cousre-index .main .record .study-box .study-item img[data-v-1a43dd1c]:last-child{margin-right:.6rem;width:.25rem;height:.4rem}.cousre-index .main .record .study-box .study-item[data-v-1a43dd1c]:first-child{margin-right:2%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/courseMore.1ac63ce.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2520);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("55331c8a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "._course-vant-style .van-search{height:3rem}.popup-container{height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.popup-container.wxtip .pop-tit{height:2.3rem;background:#fff;font:700 16px/2.3rem PingFangSC-Semibold;border-bottom:1px solid #eee}.popup-container.wxtip .pop-tit i{height:2.3rem;font:14px/2.3rem PingFangSC-Regular}.popup-container.wxtip .comm-box{text-align:center}.popup-container.wxtip .comm-box .tips{margin-top:1.6rem;color:#333;font:700 20px/1.4rem PingFangSC-Semibold\\, PingFang SC;text-align:center}.popup-container.wxtip .comm-box img{width:8.6rem;height:8.6rem;margin-top:2.2rem}.popup-container.wxtip .comm-box .tips2{margin-top:.4rem;color:#333;font:14px/1rem PingFangSC-Regular\\, PingFang SC}.popup-container .pop-tit,.popup-container.van-popup--round{border-radius:.4rem .4rem 0 0}.popup-container .pop-tit{height:2.75rem;background:#f6f6f6;text-align:center;position:relative;color:#333;font:700 16px/2.75rem PingFangSC-Semibold}.popup-container .pop-tit i{position:absolute;top:0;right:0;height:2.75rem;padding:0 .8rem;color:#666;font:14px/2.75rem PingFangSC-Regular}.popup-container .comm-box,.popup-container .pop-box{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.popup-container .pop-box{position:relative}.popup-container .pop-box img{width:4rem;position:absolute;top:3rem;left:50%;margin-left:-2rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(175);
var _sticky = _interopRequireDefault(__webpack_require__(132));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _footTab = _interopRequireDefault(__webpack_require__(176));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _Loading = _interopRequireDefault(__webpack_require__(174));
var _mintUi = __webpack_require__(7);
var _header = _interopRequireDefault(__webpack_require__(93));
var _liveDatas = _interopRequireDefault(__webpack_require__(2521));
var _courseList = _interopRequireDefault(__webpack_require__(1423));
var _methods; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), "Loading", _Loading.default), "LiveData", _liveDatas.default), "headerFixed", _header.default), _sticky.default.name, _sticky.default), "footTab", _footTab.default), "courseList", _courseList.default),
  data: function data() {
    return {
      tabTop: 0,
      // tab区域距离顶部的高度
      isSuctTop: false,
      // 是否吸顶
      winH: 0,
      // 可是窗口高度
      tabData: [{
        name: '推荐',
        id: 0
      }, {
        name: '直播回放',
        id: 1
      }, {
        name: '学习记录',
        id: 2
      }],
      curIndex: 0,
      // 当前tab
      pageNum: 1,
      scrollTop: 0,
      showSearchBtn: false,
      keyword: '',
      liveData: {},
      // 推荐tab使用的直播数据
      liveData2: {},
      // 直播回放tab使用的直播数据
      courseList: [],
      playbackList: [],
      // 回放课程列表
      recordList: [],
      // 学习记录列表
      enjoyStatus: '',
      // 0:不是畅享卡  1:是畅享卡
      userStatus: '',
      // 用户状态：0：未认证，1：已认证，2：已付费
      listDataInit: false,
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      mescroll: null,
      categoryInfo: '',
      // 分类课程数据
      advertOne: '',
      // 课堂大广告
      noMoreData: false,
      // 分页加载是否有更多值
      showPopup5: false,
      isInWxMiniApp: localStorage.getItem('inWxMinapp') === '1' // 是否在小程序内打开
    };
  },
  computed: {
    isShowHotListTitle: function isShowHotListTitle() {
      // 是否显示热门课程标题
      return this.liveData.livingList && this.liveData.livingList.length || this.liveData.notStartList && this.liveData.notStartList.length || this.advertOne && this.advertOne.advertUrl;
    },
    isShowPlayBackListTitle: function isShowPlayBackListTitle() {
      // 是否显示直播回放课程标题
      return this.liveData2.livingList && this.liveData2.livingList.length || this.liveData2.notStartList && this.liveData2.notStartList.length;
    }
  },
  watch: {
    curIndex: function curIndex(val) {
      var _this = this;
      // 监控tab切换
      var _course_Index_list = JSON.parse(sessionStorage.getItem('_course_Index_list'));
      if (_course_Index_list) {
        return;
      }
      this.noMoreData = false;
      this.listDataInit = false;
      this.liveData = {};
      this.courseList = [];
      this.playbackList = [];
      this.recordList = [];
      this.refresh();
      setTimeout(function () {
        _this.mescroll.scrollTo(_this.isSuctTop ? _this.tabTop : 0, 0);
      }, 200);
      var tabArr = this.tabData.filter(function (item) {
        if (item.id === val) {
          return true;
        }
      });
      this.clickEventlog('课程列表tab', '课程-' + tabArr[0].name, '', 'li', '', '', '课程-' + tabArr[0].name, '课程', '', '课程列表');
    },
    scrollTop: function scrollTop(newval, oldval) {
      if (newval >= this.tabTop) {
        this.isSuctTop = true;
      } else {
        this.isSuctTop = false;
      }
    }
  },
  mounted: function mounted() {
    var _this2 = this;
    if (this.$route.query.curIndex) {
      this.curIndex = Number(this.$route.query.curIndex);
    }
    this.mescroll = new _mescroll.default(this.$refs.mescroll1, {
      down: {
        use: true,
        callback: this.refresh,
        auto: false
      },
      up: {
        callback: this.upFn,
        auto: false,
        isBounce: true,
        onScroll: this.getScrollTop,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'courseIndex',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无相关数据~' // 提示
        },
        warpId: 'courseLoadWrap'
      }
    });
    var _course_Index_list = JSON.parse(sessionStorage.getItem('_course_Index_list'));
    if (_course_Index_list) {
      this.listDataInit = true;
      this.curIndex = _course_Index_list.curIndex;
      if (this.curIndex === 1) {
        this.liveData2 = _course_Index_list.liveData;
        this.playbackList = _course_Index_list.list;
      } else if (this.curIndex === 2) {
        this.recordList = _course_Index_list.list;
      }
      this.noMoreData = _course_Index_list.showNoData;
      if (this.noMoreData) {
        // 如果已经加载完毕则取消滚动事件
        this.mescroll.endSuccess(0, false);
      }
      this.mescroll.setPageNum(_course_Index_list.pageNum + 1);
      setTimeout(function () {
        _this2.mescroll.scrollTo(_course_Index_list.scrollTop, 0);
        sessionStorage.removeItem('_course_Index_list');
      }, 300);
    } else {
      this.refresh();
    }
  },
  updated: function updated() {
    this.tabTop = document.getElementById('tab-box').offsetTop;
    this.winH = document.documentElement.clientHeight;
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: (_methods = {
    /**
     * 修改直播回放直播数据
    */
    changeLiveData2: function changeLiveData2(val) {
      this.liveData2 = val;
    },
    /**
     * 修改直播回放直播数据
    */
    changeLiveData: function changeLiveData(val) {
      this.liveData = val;
    },
    /**
     * 获取滚动高度
    */
    getScrollTop: function getScrollTop(mescroll, y) {
      this.scrollTop = y;
    },
    /**
     * 神策埋点点击事件封装
    */
    clickEventlog: function clickEventlog(name, cont, className, elType, targetUrl, curUrl, title, moudleType, id, operationPage) {
      this._Util.sensorsCollect('element_click', {
        $element_name: name,
        $element_content: cont,
        $element_class_name: className,
        $element_type: elType,
        $element_target_url: targetUrl,
        $url: curUrl || window.location.href,
        $title: title,
        moudle_type: moudleType,
        correlation_id: id,
        operation_page: operationPage
      });
    },
    /**
      * 动态配置mescroll组件上拉加载的函数
    */
    upFn: function upFn(page) {
      if (this.curIndex === 0) {
        this.getCourseList(page);
      } else if (this.curIndex === 1) {
        this.getPlayBackList(page);
      } else if (this.curIndex === 2) {
        this.getRecordList(page);
      }
    },
    /** 下拉刷新 */refresh: function refresh() {
      this.keyword = '';
      this.advertOne = '';
      if (this.curIndex === 0) {
        this.getRecommendLiveList();
        this.getPropertyList();
        this.getAd();
      } else if (this.curIndex === 1) {
        this.getLiveList();
      }
      this.mescroll.resetUpScroll();
    },
    /** 获取广告位 */getAd: function getAd() {
      var _this3 = this;
      this._Util.post(this._Api.POST_ADVERT_GET_SIGN_LIST, {
        signs: '20'
      }, function (data) {
        _this3.advertOne = data[0];
      }, function () {}, this, true);
    },
    /** 进入广告页面 */goAd: function goAd(url, advertId, advertUrl) {
      this._Util.sensorsCollect('click_advert', {
        $element_content: '课程首页广告位',
        operation_page: '课程列表',
        advert_type_name: '课程首页广告位',
        advert_name: this.advertOne.advertName,
        jump_url: advertUrl,
        $url: window.location.href,
        correlation_id: advertId
      });
      this._Util.publicOpenPage({
        url: url,
        appName: 'adContainer'
      });
    },
    /**
     * 获取分类接口
     */
    getPropertyList: function getPropertyList() {
      var _this4 = this;
      this._Util.post(this._Api.POST_COURSE_CLASSIFY_LIST, {
        status: 1
      }, function (data) {
        _this4.listDataInit = true;
        _this4.categoryInfo = data;
      }, function () {}, this, true);
    },
    /**
     * 课程点击埋点
     * @param {object} courseDetail 课程信息详情
     */
    courseClickPoint: function courseClickPoint(courseDetail) {
      var _this5 = this;
      return new Promise(function (resolve, reject) {
        _this5._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this5._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: '热门课程',
          optionType: '点击',
          param1: courseDetail.courseId,
          param2: courseDetail.courseName
        }, _this5, function () {
          resolve();
        });
      });
    },
    /**
     * 进入课程板块页面
     * @param(classifyId): 课程种类id
     * @param(classifyName): 课程种类名称
     * @param(classifyUrl): 跳转链接
     */
    goCoursePlateDetail: function goCoursePlateDetail(classifyId, classifyName, classifyUrl) {
      var url = location.origin + '/v2/onlineCourse/onlineCoursePlate?classifyId=' + classifyId;
      this.clickEventlog('查看课程分类', classifyName, 'item', 'div', classifyUrl || url, '', '学技术-推荐', '课程', classifyId, '课程列表');
      // 如果配置的跳转链接内容
      if (classifyUrl) {
        if (localStorage.getItem('inWxMinapp') === '1') {
          // 微信小程序
          var src = encodeURIComponent(classifyUrl);
          uni.navigateTo({
            // eslint-disable-line
            url: "/pages/webView/webView?src=".concat(src)
          });
          return;
        }
        if (this._Util.isApp() && this._Util.isAppRootWin()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'onlineCoursePlate',
              url: classifyUrl
            }
          });
        } else {
          location.href = classifyUrl;
        }
        return;
      }
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        var _src = encodeURIComponent(url);
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(_src)
        });
        return;
      }
      if (this._Util.isApp() && this._Util.isAppRootWin()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'onlineCoursePlate',
            url: url
          }
        });
      } else {
        this.$router.push({
          name: 'onlineCoursePlate',
          query: {
            classifyId: classifyId
          }
        });
      }
    },
    /**
     * 进入搜索页面
     */
    searchResult: function searchResult() {
      if (this.keyword.trim() == '') {
        (0, _mintUi.Toast)({
          message: '请输入有效内容',
          position: 'middle',
          duration: 1000
        });
        return;
      }
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '课堂',
        operate_page: '课堂首页',
        optionType: '点击',
        param1: this.keyword,
        param2: '搜索'
      }, this);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'courseSearch',
            url: location.origin + '/v2/onlineCourse/courseSearch?keyword=' + this.keyword
          }
        });
      } else {
        this.$router.push({
          name: 'courseSearch',
          query: {
            keyword: this.keyword
          }
        });
      }
    },
    /**
     * 进入学习记录页面
     */
    goStudyRecord: function goStudyRecord() {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '课堂',
        operate_page: '课堂首页',
        optionType: '点击',
        param1: window.location.origin + '/v2/onlineCourse/studyRecord',
        param2: '学习记录'
      }, this);
      if (this._Util.isApp() && this._Util.isAppRootWin()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'studyRecord',
            url: location.origin + '/v2/onlineCourse/studyRecord?viewerId=' + this.liveData.viewerId
          }
        });
      } else {
        this.$router.replace({
          name: 'studyRecord',
          query: {
            viewerId: this.liveData.viewerId
          }
        });
      }
    },
    /**
     * 进入 课堂畅享卡
     */
    goUnlimitCard: function goUnlimitCard() {
      var url = location.origin + '/v2/shopping/unlimitCard?viewerId=' + this.liveData.viewerId;
      this.clickEventlog('查看畅享卡', '查看畅享卡', 'myUnlimitCard', 'div', url, '', '学技术-推荐', '课程', '', '课程列表');
      if (this._Util.isApp() && this._Util.isAppRootWin()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'unlimitCard',
            url: url
          }
        });
      } else {
        this.$router.push({
          name: 'unlimitCard',
          query: {
            viewerId: this.liveData.viewerId
          }
        });
      }
    },
    /**
     * 获取直播回放直播相关列表
     * @param(callback): 请求的回调处理
     */
    getLiveList: function getLiveList(callback) {
      var _this6 = this;
      this._Util.post(this._Api.POST_COURSE_GET_BROADCASE_LIST, {}, function (data) {
        _this6.liveData2 = data;
        callback && callback();
      }, function () {}, this, true);
    },
    /**
     * 获取推荐tab栏直播相关列表
     * @param(callback): 请求的回调处理
     */
    getRecommendLiveList: function getRecommendLiveList(callback) {
      var _this7 = this;
      this._Util.post(this._Api.POST_COURSE_LIVE_BROADCASE_LIST, {}, function (data) {
        _this7.liveData = data;
        callback && callback();
      }, function () {}, this, true);
    }
  }, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_methods, "getRecommendLiveList", function getRecommendLiveList(callback) {
    var _this8 = this;
    this._Util.post(this._Api.POST_COURSE_LIVE_BROADCASE_LIST, {}, function (data) {
      _this8.liveData = data;
      callback && callback();
    }, function () {}, this, true);
  }), "goLivePlayback", function goLivePlayback() {
    this._Util.collectPageView2(
    // 埋点
    {
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '课堂',
      operate_page: '课堂首页',
      optionType: '点击',
      param1: window.location.origin + '/v2/shopping/livePlayback',
      param2: '直播回放'
    }, this);
    if (this._Util.isApp()) {
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'livePlayback',
          url: location.origin + '/v2/shopping/livePlayback?viewerId=' + this.liveData.viewerId
        }
      });
    } else {
      this.$router.push({
        name: 'livePlayback',
        query: {
          viewerId: this.liveData.viewerId
        }
      });
    }
  }), "goOwnedCourse", function goOwnedCourse() {
    var url = location.origin + '/v2/shopping/ownedCourse';
    this.clickEventlog('查看已购课程', '查看已购课程', 'study-item', 'div', url, '', '学技术-学习记录', '课程', '', '课程列表');
    if (localStorage.getItem('inWxMinapp') === '1') {
      // 微信小程序
      var src = encodeURIComponent(url);
      uni.navigateTo({
        // eslint-disable-line
        url: "/pages/webView/webView?src=".concat(src)
      });
      return;
    }
    if (this._Util.isApp()) {
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'ownedCourse',
          url: url
        }
      });
    } else {
      this.$refs.studyList.saveSessionPosition();
      this.$router.push({
        name: 'ownedCourse'
      });
    }
  }), "goDetail", function goDetail(courseId, courseName) {
    if (this._Util.isApp()) {
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'onlineCourseDetail',
          url: location.origin + '/v2/shopping/courseDetail?courseId=' + courseId
        }
      });
    } else {
      location.href = location.origin + '/v2/shopping/courseDetail?courseId=' + courseId;
    }
  }), "getCourseList", function getCourseList(page) {
    var _this9 = this;
    this._Util.post(this._Api.POST_COURSE_HOT_COURSE_LIST, {
      pageNum: page.num,
      pageSize: page.size
    }, function (data) {
      _this9.enjoyStatus = data.enjoyStatus;
      _this9.userStatus = data.userStatus;
      if (page.num === 1) {
        _this9.courseList = [];
      }
      _this9.courseList = data.courseList.slice(0, 5);
      document.getElementById('courseLoadWrap').style.display = 'none';
      _this9.$nextTick(function () {
        _this9.mescroll.endSuccess(5);
      });
    }, function () {
      _this9.mescroll.endErr();
    }, this);
  }), "getPlayBackList", function getPlayBackList(page) {
    var _this0 = this;
    this._Util.post(this._Api.POST_COURSE_ENJOY_COURSE_LIST, {
      pageNum: page.num,
      pageSize: page.size
    }, function (data) {
      _this0.enjoyStatus = data.enjoyStatus;
      _this0.userStatus = data.userStatus;
      if (page.num === 1) {
        _this0.playbackList = [];
      }
      _this0.pageNum = page.num;
      _this0.listDataInit = true;
      _this0.playbackList = _this0.playbackList.concat(data.courseList);
      _this0.$nextTick(function () {
        if (data.courseList.length < 10) {
          _this0.noMoreData = true;
        }
        _this0.mescroll.endSuccess(data.courseList.length);
      });
    }, function () {
      _this0.mescroll.endErr();
    }, this);
  }), "getRecordList", function getRecordList(page) {
    var _this1 = this;
    this._Util.post(this._Api.COURSE4.GET_STUDY_RECORD, {
      pageNum: page.num,
      pageSize: page.size
    }, function (data) {
      if (page.num === 1) {
        _this1.recordList = [];
      }
      _this1.listDataInit = true;
      if (data && data.dataList) {
        data.dataList.forEach(function (item) {
          _this1.$set(item, 'courseCoverImg', item.courseCover);
          _this1.$set(item, 'hourId', item.courseHourId);
        });
        _this1.recordList = _this1.recordList.concat(data.dataList);
        _this1.$nextTick(function () {
          if (data.dataList.length < 10) {
            _this1.noMoreData = true;
          }
          _this1.mescroll.endSuccess(data.dataList.length);
        });
      }
    }, function () {}, this);
  }), "highLight", function highLight(content) {
    var reg = /\d+/;
    return content.replace(reg, function (match, param) {
      return ' <span style="color: #FF3F3F; font-size: 0.7rem;" >' + match + '</span> ';
    });
  }), "toExam", function toExam() {
    var url = location.origin + '/v2/examAndClass/index?type=exam';
    this.clickEventlog('查看我的考试', '查看我的考试', 'study-item', 'div', url, '', '学技术-学习记录', '课程', '', '课程列表');
    if (localStorage.getItem('inWxMinapp') === '1') {
      // 微信小程序
      var src = encodeURIComponent(url);
      uni.navigateTo({
        // eslint-disable-line
        url: "/pages/webView/webView?src=".concat(src)
      });
      return;
    }
    if (this._Util.isApp()) {
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'examAndclass',
          url: url
        }
      });
    } else {
      this.$refs.studyList.saveSessionPosition();
      this.$router.push({
        name: 'examAndclass',
        query: {
          type: 'exam'
        }
      });
    }
  }), "goFeedback", function goFeedback() {
    var url = 'https://wx.kaxiuyun.com/v2/questionnaire/index?no=d6b465f0';
    this.clickEventlog('课堂意见反馈', '课堂意见反馈', 'more-liv', 'div', url, '', '学技术-推荐', '课程', '', '课程列表');
    this._Util.publicOpenPage({
      url: url,
      appName: 'feedbackContainer'
    });
  }), (0, _defineProperty2.default)(_methods, "toCoursePlate", function toCoursePlate() {
    var url = location.origin + '/v2/onlineCourse/onlineCoursePlate?classifyId=-1';
    this.clickEventlog('更多热门课程', '更多热门课程', 'more-liv', 'div', url, '', '学技术-推荐', '课程', '', '课程列表');
    if (localStorage.getItem('inWxMinapp') === '1') {
      // 微信小程序
      var src = encodeURIComponent(url);
      uni.navigateTo({
        // eslint-disable-line
        url: "/pages/webView/webView?src=".concat(src)
      });
      return;
    }
    if (this._Util.isApp()) {
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'onlineCoursePlate',
          url: url
        }
      });
    } else {
      this.$router.push({
        name: 'onlineCoursePlate',
        query: {
          classifyId: '-1'
        }
      });
    }
  }))
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(243);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_51d6e96d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(785);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1995)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-51d6e96d"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_51d6e96d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_51d6e96d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_footTab_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1996);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b4e93278", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".footTab[data-v-51d6e96d]{height:auto;width:100%;position:fixed;left:0;bottom:0;background:#fff;border-top:1px solid #f2f2f2;z-index:1000}.footTab.iphonex[data-v-51d6e96d]{padding-bottom:15px}.footTab ul[data-v-51d6e96d]{width:100%;height:49px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.footTab ul li[data-v-51d6e96d]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:49px}.footTab ul li.ask img[data-v-51d6e96d]{width:40px;height:40px}.footTab ul li img[data-v-51d6e96d]{display:block;width:22px;height:22px;margin:5px auto 1px;pointer-events:none}.footTab ul li img[data-v-51d6e96d]:nth-of-type(2){display:none}.footTab ul li img[data-v-51d6e96d]:first-of-type{display:block}.footTab ul li div[data-v-51d6e96d]{text-align:center;font-size:12px}.footTab ul li .msg-num[data-v-51d6e96d]{position:absolute;top:.2rem;right:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:18px;min-width:18px;text-align:center;border-radius:9px;overflow:hidden;background-color:#ff3f3f;font-size:.6rem;color:#fff;border:1px solid #fff}.footTab ul li .msg-num.dot-pd2[data-v-51d6e96d]{padding:0 .2rem}.footTab ul li.active img[data-v-51d6e96d]:first-of-type{display:none}.footTab ul li.active img[data-v-51d6e96d]:nth-of-type(2){display:block}.footTab ul li.active div[data-v-51d6e96d]{color:#ff6c37}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    activeFlag: {
      type: String,
      required: true
    }
  },
  data: function data() {
    return {
      msgNum: 0,
      origin: window.location.host,
      userInfo: JSON.parse(localStorage.getItem('userInfo')),
      isIphonex: this.$store.state.isIphoneX
    };
  },
  watch: {
    '$store.state.qaMsgNum': function $storeStateQaMsgNum(val) {
      this.msgNum = val;
    }
  },
  created: function created() {
    console.log(this.activeFlag);
    this.msgNum = this.$store.state.qaMsgNum;
  },
  mounted: function mounted() {
    // 修复被键盘顶起的问题
    this.userInfo = JSON.parse(localStorage.getItem('userInfo')) || this.$store.state.userInfo;
    this._Util.fixTabbar('_common-foot-tab');
  },
  methods: {
    /**
     * 检测当前的环境
    */
    checkEvei: function checkEvei(type) {
      var _this = this;
      if (this._Util.isMPaaS()) {
        if (type === 'shop') {
          this.goToRouter(type);
        } else {
          this._Util.mpassCheckSession('', function () {
            _this.goToRouter(type);
          }, this);
        }
      } else {
        this.goToRouter(type);
      }
    },
    goToRouter: function goToRouter(type) {
      switch (type) {
        case 'home':
          sessionStorage.setItem('tabIndex', 1);
          this.sensorsCollectFn('首页TAB', location.origin + '/repair/fms', '首页');
          this.$router.push({
            name: 'fms'
          });
          break;
        case 'online':
          window.location.replace('https://' + this.origin + '/v3/carRep/onLineQuestion/questionList');
          break;
        case 'search':
          this.$router.push({
            name: 'appSearch'
          });
          break;
        case 'shop':
          window.location.replace('https://' + this.origin + '/v4/pages/mall/mall');
          break;
        case 'my':
          this.sensorsCollectFn('我的TAB', location.origin + '/repair/member/center', '我的');
          this.$router.push({
            name: 'memberCenter'
          });
          break;
        case 'carRepair':
          this.$router.push({
            name: 'carRepair'
          });
          break;
        case 'community':
          this.$router.push({
            name: 'community'
          });
          break;
        case 'course':
          this.sensorsCollectFn('学技术TAB', location.origin + '/repair/shopping/onlineCourseList', '学技术');
          this.$router.push({
            name: 'onlineCourseList',
            query: {
              userStatus: this.userInfo ? this.userInfo.userStatus : 0
            }
          });
          break;
        case 'quesAns':
          this.sensorsCollectFn('问答TAB', location.origin + '/repair/questionsAndAnswers', '极速问答');
          this.$router.push({
            name: 'questionsOrAnswers'
          });
          break;
      }
    },
    /**
      * 记录神策埋点
      * @param {String} element_content 元素内容
      * @param {String} moudle_type 模块名称及打开页面
    */
    sensorsCollectFn: function sensorsCollectFn(element_content, element_target_url, moudle_type) {
      var curTitle = '';
      switch (this.activeFlag) {
        case 'home':
          curTitle = '卡修宝典首页';
          break;
        case 'course':
          curTitle = '学技术';
          break;
        case 'quesAns':
          curTitle = '问答';
          break;
        case 'shop':
          curTitle = '商城';
          break;
        case 'my':
          curTitle = '我的';
          break;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"footTab",class:{'iphonex': _vm.isIphonex},attrs:{"id":"_common-foot-tab"}},[_c('ul',[_c('li',{class:{active: _vm.activeFlag == 'home'},on:{"click":function($event){$event.stopPropagation();return _vm.checkEvei('home')}}},[_c('img',{attrs:{"src":__webpack_require__(1997)}}),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(1998),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("首页")])]),_vm._v(" "),_c('li',{class:{active: _vm.activeFlag == 'my'},on:{"click":function($event){$event.stopPropagation();return _vm.checkEvei('my')}}},[_c('img',{attrs:{"src":__webpack_require__(1999)}}),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(2000),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("我的")])])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/car.4129e80.svg";module.exports = __webpack_require__.p + "static/img/car2.839c69f.svg";module.exports = __webpack_require__.p + "static/img/my1.4eea315.svg";module.exports = __webpack_require__.p + "static/img/my2.cf27b17.svg";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(426);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a01d2cd2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1026);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2522)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a01d2cd2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a01d2cd2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a01d2cd2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveDatas_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2523);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("53cef83f", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".live-data[data-v-a01d2cd2]{padding-top:.4rem}.live-data .liveCard[data-v-a01d2cd2]{background-color:#fff;margin-top:.4rem;padding:.6rem;position:relative;box-shadow:0 8px 12px 0 rgba(207,210,216,.2);border-radius:.3rem;border:1px solid #eee}.live-data .liveCard .title[data-v-a01d2cd2]{color:#666;font:16px/1.1rem PingFangSC-Regular;margin-bottom:.8rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.live-data .liveCard .title>img[data-v-a01d2cd2]{width:.8rem;height:.8rem;margin-right:.3rem}.live-data .liveCard .title>span[data-v-a01d2cd2]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.live-data .liveCard .title>span>span[data-v-a01d2cd2]{color:#ff3f3f;font-size:.7rem}.live-data .liveCard .title>div[data-v-a01d2cd2]{position:absolute;right:0;bottom:0}.live-data .liveCard .title>div div[data-v-a01d2cd2]{color:#999;font:12px/.8rem PingFangSC-Regular}.live-data .liveCard .info[data-v-a01d2cd2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.live-data .liveCard .info>img[data-v-a01d2cd2]{width:5.9rem;height:4rem;border-radius:.3rem;margin-right:.6rem}.live-data .liveCard .rightContent[data-v-a01d2cd2]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.live-data .liveCard .rightContent .name[data-v-a01d2cd2]{color:#333;font:700 16px/1rem PingFangSC-Semibold;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.live-data .liveCard .rightContent .btn-box[data-v-a01d2cd2]{position:absolute;bottom:0;left:0;height:1.425rem;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.live-data .liveCard .rightContent .btn-box .lecturer[data-v-a01d2cd2]{color:#999;font:12px/1 PingFangSC-Regular;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.live-data .liveCard .rightContent .btn-box .liveBtn[data-v-a01d2cd2]{margin-left:.3rem;width:4rem;height:1.425rem;text-align:center;background:#ff3f3f;border-radius:1.25rem;color:#fff;font:700 12px/1.425rem PingFangSC-Semibold}.live-data .reserveCard[data-v-a01d2cd2]{background-color:#fff;margin-top:.4rem;padding:.6rem .6rem .8rem;position:relative;box-shadow:0 8px 12px 0 rgba(207,210,216,.2);border-radius:.3rem;border:1px solid #eee}.live-data .reserveCard .title[data-v-a01d2cd2]{color:#666;font:16px/1.1rem PingFangSC-Regular;margin-bottom:.8rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.live-data .reserveCard .title>img[data-v-a01d2cd2]{width:.8rem;height:.8rem;margin-right:.3rem}.live-data .reserveCard .title>i[data-v-a01d2cd2]{width:.1rem;height:.1rem;background:#666;border-radius:50%;margin:0 .2rem}.live-data .reserveCard .title>span[data-v-a01d2cd2]{color:#666;font:16px/1.1rem PingFangSC-Regular}.live-data .reserveCard .title>span>span[data-v-a01d2cd2]{color:#ff3f3f;font-size:.7rem}.live-data .reserveCard .title>div[data-v-a01d2cd2]{position:absolute;right:0;bottom:0}.live-data .reserveCard .title>div div[data-v-a01d2cd2]{color:#999;font:12px/.8rem PingFangSC-Regular}.live-data .reserveCard .info[data-v-a01d2cd2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.live-data .reserveCard .info>img[data-v-a01d2cd2]{width:5.9rem;height:4rem;border-radius:.3rem;margin-right:.6rem}.live-data .reserveCard .rightContent[data-v-a01d2cd2]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.live-data .reserveCard .rightContent .name[data-v-a01d2cd2]{color:#333;font:700 16px/1rem PingFangSC-Semibold;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.live-data .reserveCard .rightContent .btn-box[data-v-a01d2cd2]{position:absolute;bottom:0;left:0;height:1.425rem;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.live-data .reserveCard .rightContent .btn-box .lecturer[data-v-a01d2cd2]{color:#999;font:12px/1 PingFangSC-Regular;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.live-data .reserveCard .rightContent .btn-box .reserveBtn[data-v-a01d2cd2]{margin-left:.3rem;width:4rem;height:1.425rem;text-align:center;background:#ffe9da;border-radius:1.25rem;color:#ff712a;font:700 12px/1.425rem PingFangSC-Semibold}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    // applyStatus用户预约状态(1:优惠券预约,2:付款预约,3:退优惠券,4:退款,5:已观看直播,6已观看回放 8,畅享卡支付)
    liveData: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    parent: {
      type: String,
      default: function _default() {
        return '';
      }
    }
  },
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {
    /**
     * 点击整个卡片进入直播间
     * @param {Object} item 当前点击的直播内容
     * @param {Number} type 直播开始状态 0 正在直播 1 未开始
    */
    toliveRoom: function toliveRoom(item, type) {
      if (item.wxVisable === 3 && type === 1) {
        // wxVisable 0正式 1测试  2活动 3 培训直播
        this.showTips(item.startTime);
        return;
      }
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        if (type === 0) {
          // 如果是直播直接显示拦截弹窗
          this.$emit('showPoup5');
          return;
        }
        var src = encodeURIComponent(item.liveAddress);
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(src)
        });
        return;
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'courseLiveNew' + item.courseId,
            url: item.liveAddress
          }
        });
      } else {
        location.href = item.liveAddress;
      }
    },
    /**
     * 神策埋点点击事件封装
    */
    clickEventlog: function clickEventlog(name, cont, className, elType, targetUrl, curUrl, title, moudleType, id, operationPage) {
      this._Util.sensorsCollect('element_click', {
        $element_name: name,
        $element_content: cont,
        $element_class_name: className,
        $element_type: elType,
        $element_target_url: targetUrl,
        $url: curUrl || window.location.href,
        $title: title,
        moudle_type: moudleType,
        correlation_id: id,
        operation_page: operationPage
      });
    },
    /**
     * 直播及预约种类判断
     * @param(course): 当前课程
     * @param(type): reserve/live
     */
    reserveAndLive: function reserveAndLive(course, type) {
      if (type === 'live') {
        if (localStorage.getItem('inWxMinapp') === '1') {
          // 微信小程序
          this.$emit('showPoup5');
          return;
        }
        this.clickEventlog('进入直播', '进入直播', 'liveBtn', 'div', course.liveAddress, '', this.parent === 'recommend' ? '学技术-推荐' : '学技术-直播回放', '课程', course.courseId, '课程列表');
        if (course.wxVisable === 3) {
          // 培训直播开始时，直接进入详情页
          this.toliveRoom(course, 0);
          return;
        }
        this.checkTicket(course.courseId, 'live', course.liveAddress);
      } else {
        this.clickEventlog('预约直播', '预约直播', 'reserveBtn', 'div', course.liveAddress, '', this.parent === 'recommend' ? '学技术-推荐' : '学技术-直播回放', '课程', course.courseId, '课程列表');
        if (course.wxVisable === 3) {
          // 培训直播 0正式 1测试  2活动 3 培训直播,培训直播不可预约，不走下面的逻辑
          this.showTips(course.startTime);
          return;
        }
        this.checkTicket(course.courseId, 'reserve');
      }
    },
    /**
     * 课程已预约提示
     * @param(time): 课程的开始时间
     */
    showTips: function showTips(time) {
      (0, _mintUi.MessageBox)({
        title: '',
        message: "<div style='padding:0.8rem 0.25rem 0.5rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                    \u76F4\u64AD\u5C06\u5728".concat(time, "\u5F00\u59CB\n                  </div>"),
        closeOnClickModal: true,
        confirmButtonText: '确定'
      }).then(function (action) {});
    },
    /**
     * 获取直播相关列表
     * @param(callback): 请求的回调处理
     */
    getLiveList: function getLiveList(callback) {
      var _this = this;
      var url = '';
      if (this.parent === 'recommend') {
        url = 'POST_COURSE_LIVE_BROADCASE_LIST';
      } else if (this.parent === 'playback') {
        url = 'POST_COURSE_GET_BROADCASE_LIST';
      }
      this._Util.post(this._Api[url], {}, function (data) {
        _this.liveData = data;
        callback && callback();
      }, function () {}, this, true);
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var ticketData, src, that;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.getTicketStatus(courseId);
            case 1:
              ticketData = _context.sent;
              if (!(!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3)) {
                _context.next = 2;
                break;
              }
              // 课程已购买
              _this2.handleClick(type, url, courseId, courseName);
              _context.next = 6;
              break;
            case 2:
              if (!(ticketData.enjoyCardCanWatch == 1)) {
                _context.next = 3;
                break;
              }
              // 畅享卡
              (0, _mintUi.MessageBox)({
                title: '',
                message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                    </div>",
                closeOnClickModal: true,
                confirmButtonText: '畅享卡免费观看'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this2._Util.post(_this2._Api.POST_PAY_TICKET, {
                    courseId: courseId,
                    viewerId: _this2.liveData.viewerId
                  }, function (data) {
                    _this2.handleClick(type, url, courseId, courseName);
                  }, function () {}, _this2);
                }
              });
              _context.next = 6;
              break;
            case 3:
              if (!(ticketData.cardNumLeft > 0)) {
                _context.next = 4;
                break;
              }
              // 剩余听课券>0
              (0, _mintUi.MessageBox)({
                title: '',
                message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                    </div>",
                closeOnClickModal: true,
                confirmButtonText: '确定',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this2._Util.post(_this2._Api.POST_PAY_TICKET, {
                    courseId: courseId,
                    viewerId: _this2.liveData.viewerId
                  }, function (data) {
                    _this2.handleClick(type, url, courseId, courseName);
                  }, function () {}, _this2);
                }
              });
              _context.next = 6;
              break;
            case 4:
              if (!(localStorage.getItem('inWxMinapp') === '1')) {
                _context.next = 5;
                break;
              }
              // 微信小程序
              src = encodeURIComponent(location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this2.liveData.viewerId);
              uni.navigateTo({
                // eslint-disable-line
                url: "/pages/webView/webView?src=".concat(src)
              });
              return _context.abrupt("return");
            case 5:
              if (_this2._Util.isApp()) {
                that = _this2;
                api.addEventListener({
                  name: 'changeCourseStatus'
                }, function (ret, err) {
                  that.liveData.notStartList.forEach(function (val) {
                    if (val.courseId == ret.value.courseId) {
                      val.applyStatus = 1;
                    }
                  });
                });
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'liveContainer',
                    url: location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this2.liveData.viewerId
                  }
                });
              } else {
                location.href = location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this2.liveData.viewerId;
              }
            case 6:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 需要跳转的跳转页  playback时，url的值为课时id，需要用课时id来获取真正的url
     * @param(courseName): 课时名称
     */
    handleClick: function handleClick(type, url, courseId, courseName) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var data, _version, _t;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _t = type;
              _context2.next = _t === 'live' ? 1 : _t === 'reserve' ? 2 : _t === 'playback' ? 3 : 6;
              break;
            case 1:
              _this3.getLiveList(function () {
                if (_this3.liveData.livingList.some(function (val) {
                  return val.courseId === courseId;
                })) {
                  if (localStorage.getItem('inWxMinapp') === '1') {
                    // 微信小程序
                    var src = encodeURIComponent(url);
                    uni.navigateTo({
                      // eslint-disable-line
                      url: "/pages/webView/webView?src=".concat(src)
                    });
                    return;
                  }
                  if (_this3._Util.isApp()) {
                    api.sendEvent({
                      name: 'acOpenNewFrm',
                      extra: {
                        name: 'liveContainer',
                        url: url
                      }
                    });
                  } else {
                    location.href = url;
                  }
                } else {
                  (0, _mintUi.MessageBox)({
                    title: '',
                    message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                            \u5F53\u524D\u76F4\u64AD\u5DF2\u7ED3\u675F, \u8BF7\u5237\u65B0\u9875\u9762\n                          </div>",
                    closeOnClickModal: true,
                    confirmButtonText: '刷新页面'
                  }).then(function (action) {
                    if (action === 'confirm') {
                      location.reload();
                    }
                  });
                }
              });
              return _context2.abrupt("continue", 6);
            case 2:
              _this3.getLiveList(function () {
                if (_this3.liveData.notStartList.some(function (val) {
                  return val.courseId === courseId;
                })) {
                  _this3.liveData.notStartList.forEach(function (val) {
                    if (val.courseId == courseId) {
                      (0, _mintUi.Toast)({
                        message: '预约成功',
                        duration: 2000
                      });
                      val.applyStatus = 1;
                      _this3.$emit('chageParentLiveData', _this3.liveData);
                    }
                  });
                } else {
                  (0, _mintUi.MessageBox)({
                    title: '',
                    message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                            \u5F53\u524D\u76F4\u64AD\u9884\u7EA6\u5DF2\u7ED3\u675F, \u8BF7\u5237\u65B0\u9875\u9762\n                          </div>",
                    closeOnClickModal: true,
                    confirmButtonText: '刷新页面'
                  }).then(function (action) {
                    if (action === 'confirm') {
                      location.reload();
                    }
                  });
                }
              });
              return _context2.abrupt("continue", 6);
            case 3:
              _context2.next = 4;
              return _this3.getSecretUrl(url);
            case 4:
              data = _context2.sent;
              _context2.next = 5;
              return _this3.getAppVer();
            case 5:
              _version = _context2.sent;
              if (_this3._Util.isApp() && _this3.compareVersion(_version)) {
                api.sendEvent({
                  name: 'openPlayVideo',
                  extra: {
                    title: courseName,
                    videoUrl: data.hourUrl,
                    seekTime: 0,
                    hourId: url,
                    courseType: 'single'
                  }
                });
              } else if (_this3._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'playbackContainer',
                    url: location.origin + '/v2/shopping/classCoursePlayer?courseType=single&videoName=' + courseName + '&hourId=' + url
                  }
                });
              } else {
                _this3.$router.push({
                  name: 'classCoursePlayer',
                  params: {
                    videoName: courseName,
                    url: data.hourUrl,
                    hourId: url,
                    currentVideoType: data.videoType,
                    courseType: 'single'
                  }
                });
              }
              return _context2.abrupt("continue", 6);
            case 6:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.post(_this4._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this4);
      });
    },
    /**
     * 正则替换数字高亮
     * @param(content): 需要替换的内容
     */
    highLight: function highLight(content) {
      var reg = /\d+/;
      return content.replace(reg, function (match, param) {
        return " <span style=\"color: #FF3F3F; font-size: 16px;font-family: 'PingFangSC-Regular'\" >".concat(match, "</span> ");
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"live-data"},[_vm._l((_vm.liveData.livingList),function(v){return _c('div',{key:'live'+v.courseId,staticClass:"liveCard",on:{"click":function($event){return _vm.toliveRoom(v, 0)}}},[_c('div',{staticClass:"title"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/zzzb.gif","alt":"正在直播"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v("正在直播\n      "),_c('div',[_c('div',[_vm._v(_vm._s(v.viewNumbers)+"人正在观看")])])]),_vm._v(" "),_c('div',{staticClass:"info"},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":"直播图片"}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"btn-box"},[_c('div',{staticClass:"lecturer"},[_vm._v("\n            讲师："+_vm._s(v.anchorName)+"\n          ")]),_vm._v(" "),_c('div',{staticClass:"liveBtn",on:{"click":function($event){$event.stopPropagation();return _vm.reserveAndLive(v, 'live')}}},[_vm._v("进入直播")])])])])])}),_vm._v(" "),_vm._l((_vm.liveData.notStartList),function(v){return _c('div',{key:'reserve'+v.courseId,staticClass:"reserveCard",on:{"click":function($event){return _vm.toliveRoom(v, 1)}}},[_c('div',{staticClass:"title"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/zbyg.png","alt":"直播"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v("直播\n      "),_c('i'),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.highLight(v.countDownTime))}}),_vm._v(" "),_c('div',[(v.wxVisable === 3)?_c('div',[_vm._v("无需预约")]):_c('div',[_vm._v(_vm._s(v.viewNumbers)+"人已预约")])])]),_vm._v(" "),_c('div',{staticClass:"info"},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":"直播图片"}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"btn-box"},[_c('div',{staticClass:"lecturer"},[_vm._v("\n            讲师："+_vm._s(v.anchorName)+"\n          ")]),_vm._v(" "),((_vm.liveData.enjoyStatus==1&&v.applyStatus!=3&&v.applyStatus!=4)||_vm.liveData.enjoyStatus!=1&&v.applyStatus!=3&&v.applyStatus!=4&&v.applyStatus!=8)?_c('div',{staticClass:"reserveBtn",on:{"click":function($event){$event.stopPropagation();return _vm.showTips(v.startTime)}}},[_vm._v("\n            已预约\n          ")]):_c('div',{staticClass:"reserveBtn",on:{"click":function($event){$event.stopPropagation();return _vm.reserveAndLive(v, 'reserve')}}},[_vm._v(_vm._s(v.wxVisable === 3 ? '未开始' : '开播提醒'))])])])])])})],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(291);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b6d5152a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(878);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2073)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b6d5152a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b6d5152a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b6d5152a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2074);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6b7a1ce8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-list .card[data-v-b6d5152a]{background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.8rem 0;position:relative}.course-list .card[data-v-b6d5152a]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.course-list .card>img[data-v-b6d5152a]{width:5.9rem;height:4rem;border-radius:.3rem;margin-right:.6rem}.course-list .card .content[data-v-b6d5152a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:4rem;position:relative}.course-list .card .content .name[data-v-b6d5152a]{color:#333;font:700 16px/1rem PingFangSC-Semibold;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.course-list .card .content .courseType[data-v-b6d5152a]{color:#999;font:12px/1 PingFangSC-Regular;position:absolute;bottom:.9rem;left:0}.course-list .card .content .priceWrap[data-v-b6d5152a]{position:absolute;left:0;bottom:0}.course-list .card .content .priceWrap .purchased[data-v-b6d5152a]{color:#ff3f3f;font:700 12px/1 PingFangSC-Semibold}.course-list .card .content .priceWrap .enjoyCard[data-v-b6d5152a]{color:#999;font:12px/1 PingFangSC-Regular}.course-list .card .content .priceWrap .enjoyCard.text-through[data-v-b6d5152a]{text-decoration:line-through}.course-list .card .content .priceWrap .price[data-v-b6d5152a]{color:#ff3f3f;font:700 12px/1 PingFangSC-Semibold}.course-list .card .content .priceWrap .price.free[data-v-b6d5152a]{color:#999;font:12px/1 PingFangSC-Regular}.course-list .card .content .numAndStatus[data-v-b6d5152a]{width:55%;position:absolute;right:0;bottom:0;text-align:right}.course-list .card .content .numAndStatus .num[data-v-b6d5152a]{color:#999;font:12px/1 PingFangSC-Regular;position:absolute;bottom:0;right:0}.course-list .card .content .numAndStatus>img[data-v-b6d5152a]{position:absolute;bottom:.75rem;right:0;width:3.15rem;height:.75rem}.course-list .card .content .numAndStatus .cardForFree[data-v-b6d5152a]{background:rgba(233,90,39,.1);border-radius:.1rem;padding:0 .2rem;color:#e8541e;font:12px/.75rem PingFangSC-Regular;position:absolute;right:0;bottom:.9rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    courseList: {
      // 课程数据列表
      type: Array,
      default: function _default() {
        return [];
      }
    },
    liveData: {
      // 直播列表数据，会用到其中的畅享卡开通状态，enjoyStatus，及viewerId
      type: Object,
      default: function _default() {
        return {};
      }
    },
    parent: {
      type: String,
      default: function _default() {
        return '';
      }
    },
    pageNum: {
      // 父组件页面翻页的页数
      type: Number,
      default: function _default() {
        return 1;
      }
    },
    curIndex: {
      type: Number,
      default: function _default() {
        return 0;
      }
    },
    scrollTop: {
      type: Number,
      default: function _default() {
        return 0;
      }
    },
    showNoData: {
      type: Boolean,
      default: function _default() {
        return false;
      }
    },
    courseInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      isInIosWxMiniApp: localStorage.getItem('inWxMinapp') === '1' && this._Util.isIOS // 是否在ios微信小程序内打开
    };
  },
  mounted: function mounted() {},
  methods: {
    /**
     * 保存被卷去的高度和数据
     * */
    saveSessionPosition: function saveSessionPosition() {
      if (this.curIndex === 0) return;
      var position = {
        scrollTop: this.scrollTop || 0,
        pageNum: this.pageNum || 1,
        list: this.courseList || [],
        curIndex: this.curIndex,
        liveData: this.liveData || {},
        showNoData: this.showNoData || false
      };
      sessionStorage.setItem('_course_Index_list', JSON.stringify(position));
    },
    /**
     * 神策埋点点击事件封装
    */
    clickEventlog: function clickEventlog(name, cont, className, elType, targetUrl, curUrl, title, moudleType, id, operationPage) {
      this._Util.sensorsCollect('element_click', {
        $element_name: name,
        $element_content: cont,
        $element_class_name: className,
        $element_type: elType,
        $element_target_url: targetUrl,
        $url: curUrl || window.location.href,
        $title: title,
        moudle_type: moudleType,
        correlation_id: id,
        operation_page: operationPage
      });
    },
    /**
     * 点击热门课程
     * @param(courseDetail): 当前点击课程的详情
     */
    clickCourse: function clickCourse(courseDetail) {
      // 学习记录
      if (this.parent === 'studycode') {
        if (courseDetail.courseType === 2 || courseDetail.courseType === 1) {
          // 系列课或单课都跳转到新得详情页
          this.goDetail(courseDetail.courseId, courseDetail.courseName, courseDetail.courseType);
        } else {
          this.$router.push({
            name: 'classCourse',
            query: {
              courseId: courseDetail.courseId
            }
          });
        }
      } else {
        if (courseDetail.type === 1 || courseDetail.type === 2) {
          // 系列课或单课都跳转到新得详情页
          this.goDetail(courseDetail.courseId, courseDetail.courseName, courseDetail.type);
        } else {
          this.$router.push({
            name: 'classCourse',
            query: {
              courseId: courseDetail.courseId
            }
          });
        }
      }
    },
    /**
     * 进入系列课程详情页面
     * @param(courseId): 课程id
     * @param(courseName): 课程名称
     * @param(type): 课程类型 1 单节课 2 系列课
     */
    goDetail: function goDetail(courseId, courseName, type) {
      this.saveSessionPosition();
      if (this.parent === 'courseLive') {
        this.clickEventlog('查看热门课程', '查看热门课程', 'card', this.courseInfo.status === 1 ? '未开始' : '已结束', location.origin + '/v2/shopping/courseDetail?courseId=' + courseId, window.location.href, this.courseInfo.courseName, '直播', courseId, '直播详情');
      } else {
        var name;
        var title;
        switch (this.parent) {
          case 'recommend':
            name = '热门课程';
            break;
          case 'playback':
            name = '查看回放';
            break;
          case 'studycode':
            name = '点击观看记录';
            break;
          case 'courseLive':
            name = '查看热门课程';
            break;
        }
        switch (this.parent) {
          case 'recommend':
            title = '学技术-推荐';
            break;
          case 'playback':
            title = '学技术-直播回放';
            break;
          case 'studycode':
            title = '学技术-学习记录';
            break;
        }
        this.clickEventlog(name, name, 'card', 'div', location.origin + '/v2/shopping/courseDetail?courseId=' + courseId, '', title, '课程', courseId, '课程列表');
      }
      this._Util.publicOpenPage({
        url: location.origin + '/v2/shopping/courseDetail?courseId=' + courseId + '&courseType=' + type,
        appName: 'onlineCourseDetail'
      });
    },
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.post(_this._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this);
      });
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var ticketData, src, that;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.getTicketStatus(courseId);
            case 1:
              ticketData = _context.sent;
              if (!(!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3)) {
                _context.next = 2;
                break;
              }
              // 课程已购买
              _this2.handleClick(type, url, courseId, courseName);
              _context.next = 6;
              break;
            case 2:
              if (!(ticketData.enjoyCardCanWatch == 1)) {
                _context.next = 3;
                break;
              }
              // 已开通畅享卡
              (0, _mintUi.MessageBox)({
                title: '',
                message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                    </div>",
                closeOnClickModal: true,
                confirmButtonText: '畅享卡免费观看'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this2._Util.post(_this2._Api.POST_PAY_TICKET, {
                    courseId: courseId,
                    viewerId: _this2.liveData.viewerId
                  }, function (data) {
                    _this2.handleClick(type, url, courseId, courseName);
                  }, function () {}, _this2);
                }
              });
              _context.next = 6;
              break;
            case 3:
              if (!(ticketData.cardNumLeft > 0)) {
                _context.next = 4;
                break;
              }
              // 剩余听课券>0
              (0, _mintUi.MessageBox)({
                title: '',
                message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                    </div>",
                closeOnClickModal: true,
                confirmButtonText: '确定',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this2._Util.post(_this2._Api.POST_PAY_TICKET, {
                    courseId: courseId,
                    viewerId: _this2.liveData.viewerId
                  }, function (data) {
                    _this2.handleClick(type, url, courseId, courseName);
                  }, function () {}, _this2);
                }
              });
              _context.next = 6;
              break;
            case 4:
              if (!(localStorage.getItem('inWxMinapp') === '1')) {
                _context.next = 5;
                break;
              }
              // 微信小程序
              src = encodeURIComponent(location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this2.liveData.viewerId);
              uni.navigateTo({
                // eslint-disable-line
                url: "/pages/webView/webView?src=".concat(src)
              });
              return _context.abrupt("return");
            case 5:
              if (_this2._Util.isApp()) {
                that = _this2;
                api.addEventListener({
                  name: 'changeCourseStatus'
                }, function (ret, err) {
                  that.liveData.notStartList.forEach(function (val) {
                    if (val.courseId == ret.value.courseId) {
                      val.applyStatus = 1;
                    }
                  });
                });
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'liveContainer',
                    url: location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this2.liveData.viewerId
                  }
                });
              } else {
                _this2.saveSessionPosition();
                location.href = location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this2.liveData.viewerId;
              }
            case 6:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 需要跳转的跳转页  playback时，url的值为课时id，需要用课时id来获取真正的url
     * @param(courseName): 课时名称
     */
    handleClick: function handleClick(type, url, courseId, courseName) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var data, _version, name, title, _t, _t2, _t3;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _this3.saveSessionPosition();
              _t = type;
              _context2.next = _t === 'live' ? 1 : _t === 'reserve' ? 2 : _t === 'playback' ? 3 : 14;
              break;
            case 1:
              _this3.getLiveList(function () {
                if (_this3.liveData.livingList.some(function (val) {
                  return val.courseId === courseId;
                })) {
                  if (localStorage.getItem('inWxMinapp') === '1') {
                    // 微信小程序
                    var src = encodeURIComponent(url);
                    uni.navigateTo({
                      // eslint-disable-line
                      url: "/pages/webView/webView?src=".concat(src)
                    });
                    return;
                  }
                  if (_this3._Util.isApp()) {
                    api.sendEvent({
                      name: 'acOpenNewFrm',
                      extra: {
                        name: 'liveContainer',
                        url: url
                      }
                    });
                  } else {
                    location.href = url;
                  }
                } else {
                  (0, _mintUi.MessageBox)({
                    title: '',
                    message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                            \u5F53\u524D\u76F4\u64AD\u5DF2\u7ED3\u675F, \u8BF7\u5237\u65B0\u9875\u9762\n                          </div>",
                    closeOnClickModal: true,
                    confirmButtonText: '刷新页面'
                  }).then(function (action) {
                    if (action === 'confirm') {
                      location.reload();
                    }
                  });
                }
              });
              return _context2.abrupt("continue", 14);
            case 2:
              _this3.getLiveList(function () {
                if (_this3.liveData.notStartList.some(function (val) {
                  return val.courseId === courseId;
                })) {
                  _this3.liveData.notStartList.forEach(function (val) {
                    if (val.courseId == courseId) {
                      val.applyStatus = 1;
                    }
                  });
                } else {
                  (0, _mintUi.MessageBox)({
                    title: '',
                    message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                            \u5F53\u524D\u76F4\u64AD\u9884\u7EA6\u5DF2\u7ED3\u675F, \u8BF7\u5237\u65B0\u9875\u9762\n                          </div>",
                    closeOnClickModal: true,
                    confirmButtonText: '刷新页面'
                  }).then(function (action) {
                    if (action === 'confirm') {
                      location.reload();
                    }
                  });
                }
              });
              return _context2.abrupt("continue", 14);
            case 3:
              _context2.next = 4;
              return _this3.getSecretUrl(url);
            case 4:
              data = _context2.sent;
              _context2.next = 5;
              return _this3.getAppVer();
            case 5:
              _version = _context2.sent;
              _t2 = _this3.parent;
              _context2.next = _t2 === 'recommend' ? 6 : _t2 === 'playback' ? 7 : _t2 === 'studycode' ? 8 : 9;
              break;
            case 6:
              name = '热门课程';
              return _context2.abrupt("continue", 9);
            case 7:
              name = '查看回放';
              return _context2.abrupt("continue", 9);
            case 8:
              name = '点击观看记录';
              return _context2.abrupt("continue", 9);
            case 9:
              _t3 = _this3.parent;
              _context2.next = _t3 === 'recommend' ? 10 : _t3 === 'playback' ? 11 : _t3 === 'studycode' ? 12 : 13;
              break;
            case 10:
              title = '学技术-推荐';
              return _context2.abrupt("continue", 13);
            case 11:
              title = '学技术-直播回放';
              return _context2.abrupt("continue", 13);
            case 12:
              title = '学技术-学习记录';
              return _context2.abrupt("continue", 13);
            case 13:
              _this3.clickEventlog(name, name, 'card', 'div', data.hourUrl, '', title, '课程', courseId, '课程列表');
              if (_this3._Util.isApp() && _this3.compareVersion(_version)) {
                api.sendEvent({
                  name: 'openPlayVideo',
                  extra: {
                    title: courseName,
                    videoUrl: data.hourUrl,
                    seekTime: 0,
                    hourId: url,
                    courseType: 'single'
                  }
                });
              } else if (_this3._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'playbackContainer',
                    url: location.origin + '/v2/shopping/classCoursePlayer?courseType=single&videoName=' + courseName + '&hourId=' + url
                  }
                });
              } else {
                _this3.$router.push({
                  name: 'classCoursePlayer',
                  params: {
                    videoName: courseName,
                    url: data.hourUrl,
                    hourId: url,
                    currentVideoType: data.videoType,
                    courseType: 'single'
                  }
                });
              }
              return _context2.abrupt("continue", 14);
            case 14:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /**
     * 单课获取防盗链URL
     */
    getSecretUrl: function getSecretUrl(hourId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.post(_this4._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this4);
      });
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          api.getPrefs({
            // 接收apicloud传递过来的版本号
            key: 'version'
          }, function (ret, err) {
            if (ret.value) {
              resolve(ret.value);
            } else {
              reject();
            }
          });
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"course-list"},[_vm._l((_vm.courseList),function(v,i){return _c('div',{key:'hot'+i,staticClass:"card",on:{"click":function($event){return _vm.clickCourse(v)}}},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":"课程封面"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"courseType"},[_vm._v(_vm._s(v.classifyName && v.classifyName.split(',')[0]))]),_vm._v(" "),(!_vm.isInIosWxMiniApp)?_c('div',{staticClass:"priceWrap"},[(_vm.parent !== 'studycode')?[(v.isPurchase == 1)?_c('div',{staticClass:"purchased"},[_vm._v("\n            已购买\n          ")]):(v.enjoyCardCanWatch===1)?_c('div',{staticClass:"enjoyCard text-through"},[_vm._v("\n            "+_vm._s(v.classHour + '节 / ￥' + v.coursePrice)+"\n          ")]):_c('div',{staticClass:"price",class:{'free': v.coursePrice === 0}},[(v.coursePrice > 0)?[_vm._v("\n              "+_vm._s(v.classHour + '节 / ￥' + v.coursePrice)+"\n            ")]:[_vm._v("\n              "+_vm._s(v.classHour + '节 / 免费')+"\n            ")]],2)]:[(v.verse)?_c('div',{staticClass:"enjoyCard"},[_vm._v("\n            "+_vm._s('第' + v.verse + '节')+"\n          ")]):_vm._e()]],2):_vm._e(),_vm._v(" "),(_vm.parent !== 'studycode')?[(v.isPurchase==1)?_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))])]):(v.enjoyCardCanWatch === 1)?_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))]),_vm._v(" "),_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/coursecard-free-large-new.png","alt":"畅享卡免费"}})]):(v.enjoyCardFreeStatus === 1)?_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))]),_vm._v(" "),_c('div',{staticClass:"cardForFree"},[_vm._v("开通畅享卡免费看")])]):_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))])])]:[(v.hourNode)?_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num"},[_vm._v(_vm._s('观看至' + v.hourNode + '%'))])]):_vm._e()]],2)])}),_vm._v(" "),_c('div',{attrs:{"id":"courseLoadWrap"}})],2)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll1",staticClass:"cousre-index _course-vant-style mescroll"},[(!_vm.listDataInit)?_c('div',[_c('Loading')],1):_vm._e(),_vm._v(" "),_c('div',[(!_vm.isApp && !_vm.isInWxMiniApp)?_c('headerFixed',{attrs:{"ishome":true}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"searchTop",class:{searching: _vm.showSearchBtn}},[_c('div',[_c('img',{attrs:{"src":__webpack_require__(2524),"alt":"搜索图标"}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"placeholder":"搜课程","type":"text"},domProps:{"value":(_vm.keyword)},on:{"focus":function($event){_vm.showSearchBtn=true},"blur":[function($event){_vm.showSearchBtn=false},function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()}}})]),_vm._v(" "),_c('div',{staticClass:"searchBtn",class:{showBtn: _vm.showSearchBtn || _vm.keyword},on:{"click":_vm.searchResult}},[_vm._v("搜索")])]),_vm._v(" "),_c('ul',{staticClass:"tab-box",attrs:{"id":"tab-box"}},_vm._l((_vm.tabData),function(item){return _c('li',{key:item.id,class:{'active': _vm.curIndex === item.id},on:{"click":function($event){_vm.curIndex = item.id}}},[_vm._v("\n        "+_vm._s(item.name)+"\n      ")])}),0),_vm._v(" "),_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.isSuctTop),expression:"isSuctTop"}],staticClass:"tab-box suctTop"},_vm._l((_vm.tabData),function(item){return _c('li',{key:item.id,class:{'active': _vm.curIndex === item.id},on:{"click":function($event){_vm.curIndex = item.id}}},[_vm._v("\n        "+_vm._s(item.name)+"\n      ")])}),0),_vm._v(" "),_c('div',{staticClass:"main",style:({paddingBottom: _vm._Util.isApp()?'0':'2.5rem'}),attrs:{"id":"courseIndex"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 0),expression:"curIndex === 0"}],staticClass:"course-item recommend",style:({'minHeight': _vm.winH + 'px'})},[(!_vm.isInWxMiniApp)?_c('LiveData',{attrs:{"live-data":_vm.liveData,"parent":"recommend"},on:{"chageParentLiveData":_vm.changeLiveData,"showPoup5":function($event){_vm.showPopup5 = true}}}):_vm._e(),_vm._v(" "),(_vm.liveData.count > 2)?_c('div',{staticClass:"more-liv",on:{"click":function($event){_vm.curIndex = 1}}},[_vm._v("\n          查看更多直播"),_c('img',{attrs:{"src":__webpack_require__(183),"alt":""}})]):_vm._e(),_vm._v(" "),(_vm.advertOne && _vm.advertOne.advertId)?_c('div',{staticClass:"bigAdContainer",style:({'marginTop': _vm.liveData.count <= 2 ? '0.8rem': '1.4rem'})},[_c('img',{staticClass:"ad",attrs:{"src":_vm.advertOne.advertImg,"alt":"首页广告"},on:{"click":function($event){return _vm.goAd(_vm.advertOne.advertUrl, _vm.advertOne.advertId, _vm.advertOne.advertUrl)}}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"hotCourse",class:{'no-margin': !_vm.isShowHotListTitle}},[(_vm.isShowHotListTitle)?_c('div',{staticClass:"title"},[_vm._v("\n            热门课程\n          ")]):_vm._e(),_vm._v(" "),_c('courseList',{attrs:{"course-list":_vm.courseList,"live-data":_vm.liveData,"parent":"recommend"}}),_vm._v(" "),_c('div',{staticClass:"more-liv",on:{"click":_vm.toCoursePlate}},[_vm._v("\n            查看更多"),_c('img',{attrs:{"src":__webpack_require__(183),"alt":""}})])],1),_vm._v(" "),_c('div',{staticClass:"myUnlimitCard",on:{"click":_vm.goUnlimitCard}},[_c('img',{staticClass:"cardIcon",attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/enjoyCardnew.png","alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('p',[_vm._v("课堂畅享卡")]),_vm._v(" "),(_vm.enjoyStatus === 0)?_c('p',[_vm._v("开通可免费观看200+节课程")]):_c('p',[_vm._v(_vm._s(_vm.categoryInfo.enjoyEndTime+' 到期'))])]),_vm._v(" "),_c('div',{staticClass:"openCard",style:({'width': _vm.enjoyStatus === 0 ? '3rem': '6rem'})},[_vm._v("\n            "+_vm._s(_vm.enjoyStatus === 1 ? '去学习' : '去开通')+"\n            "),_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/study-arrow.png","alt":"箭头"}})])]),_vm._v(" "),_c('div',{staticClass:"category"},[_c('div',{staticClass:"property"},_vm._l((_vm.categoryInfo.classifyList),function(v,i){return _c('div',{key:i,on:{"click":function($event){return _vm.goCoursePlateDetail(v.classifyId, v.classifyName, v.classifyUrl)}}},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.classifyName))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"more-liv",on:{"click":_vm.goFeedback}},[_vm._v("\n          课堂意见反馈"),_c('img',{attrs:{"src":__webpack_require__(183),"alt":"箭头"}})])],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 1),expression:"curIndex === 1"}],staticClass:"course-item playback",style:({'minHeight': _vm.winH + 'px'})},[(!_vm.isInWxMiniApp)?_c('LiveData',{attrs:{"live-data":_vm.liveData2,"parent":"playback"},on:{"chageParentLiveData":_vm.changeLiveData2,"showPoup5":function($event){_vm.showPopup5 = true}}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"playback-list hotCourse",class:{'no-margin': !_vm.isShowPlayBackListTitle}},[(_vm.isShowPlayBackListTitle)?_c('div',{staticClass:"title"},[_vm._v("\n            直播回放\n          ")]):_vm._e(),_vm._v(" "),_c('courseList',{attrs:{"course-list":_vm.playbackList,"parent":"playback","page-num":_vm.pageNum,"cur-index":_vm.curIndex,"scroll-top":_vm.scrollTop,"live-data":_vm.liveData2,"show-no-data":_vm.noMoreData}})],1)],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 2),expression:"curIndex === 2"}],staticClass:"course-item record",style:({'minHeight': _vm.winH + 'px'})},[_c('div',{staticClass:"study-box"},[_c('div',{staticClass:"study-item",on:{"click":_vm.goOwnedCourse}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/kc.png","alt":"icon"}}),_vm._v(" "),_c('span',[_vm._v("已购课程")]),_vm._v(" "),_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/study-arrow.png","alt":""}})]),_vm._v(" "),_c('div',{staticClass:"study-item",on:{"click":_vm.toExam}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/ks.png","alt":"icon"}}),_vm._v(" "),_c('span',[_vm._v("考试记录")]),_vm._v(" "),_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/study-arrow.png","alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"hotCourse"},[_c('div',{staticClass:"title"},[_vm._v("\n            观看记录\n          ")]),_vm._v(" "),_c('courseList',{ref:"studyList",attrs:{"course-list":_vm.recordList,"parent":"studycode","page-num":_vm.pageNum,"cur-index":_vm.curIndex,"scroll-top":_vm.scrollTop,"live-data":_vm.liveData,"show-no-data":_vm.noMoreData}})],1)]),_vm._v(" "),((_vm.curIndex === 1 || _vm.curIndex === 2) && _vm.noMoreData)?_c('p',{staticClass:"upwarp-nodata"},[_vm._v("到底啦 ^_^")]):_vm._e()])],1),_vm._v(" "),(!_vm._Util.isApp() && !_vm._Util.isMiniApp())?_c('footTab',{attrs:{"active-flag":"course"}}):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"popup-container mescroll-touch wxtip",attrs:{"position":"bottom","round":true,"close-on-click-overlay":false},model:{value:(_vm.showPopup5),callback:function ($$v) {_vm.showPopup5=$$v},expression:"showPopup5"}},[_c('div',{staticClass:"pop-tit"},[_vm._v("\n      小程序暂不支持观看直播\n      "),_c('i',{on:{"click":function($event){_vm.showPopup5 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"comm-box"},[_c('div',{staticClass:"tips"},[_vm._v("请在APP内查看直播")]),_vm._v(" "),_c('img',{attrs:{"src":"https://static2.kaxiuyun.com/wx-app/downApp.png"}}),_vm._v(" "),_c('div',{staticClass:"tips2"},[_vm._v("截图并长按识别二维码，即可下载APP")])])])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/search.49fe330.png";function _arrayLikeToArray(r, a) {
  (null == a || a > r.length) && (a = r.length);
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  return n;
}
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;var arrayLikeToArray = __webpack_require__(1367);
function _arrayWithoutHoles(r) {
  if (Array.isArray(r)) return arrayLikeToArray(r);
}
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;function _iterableToArray(r) {
  if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
}
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;function _nonIterableSpread() {
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;var arrayWithoutHoles = __webpack_require__(2018);
var iterableToArray = __webpack_require__(2019);
var unsupportedIterableToArray = __webpack_require__(2020);
var nonIterableSpread = __webpack_require__(2021);
function _toConsumableArray(r) {
  return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();
}
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;var arrayLikeToArray = __webpack_require__(1367);
function _unsupportedIterableToArray(r, a) {
  if (r) {
    if ("string" == typeof r) return arrayLikeToArray(r, a);
    var t = {}.toString.call(r).slice(8, -1);
    return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
  }
}
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(427);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7fbced6c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1028);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2525)
  __webpack_require__(2527)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7fbced6c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7fbced6c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7fbced6c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_plateDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2526);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7707921e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-7fbced6c]{overflow-y:auto;height:100%;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.outContainer .searchTop[data-v-7fbced6c]{position:relative;z-index:2;top:0;left:0;width:100%;height:2.7rem;background-color:#fff;box-sizing:content-box;overflow:hidden}.outContainer .searchTop[data-v-7fbced6c]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.outContainer .searchTop.searching>div[data-v-7fbced6c]:first-child{width:13.85rem}.outContainer .searchTop.searching>.searchBtn[data-v-7fbced6c]{right:.6rem}.outContainer .searchTop>div[data-v-7fbced6c]:first-child{width:17.55rem;height:1.8rem;background-color:#f5f5f5;border-radius:.4rem;position:absolute;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);line-height:1.8rem;-webkit-transition:all .5s ease;transition:all .5s ease;border:2px solid #ef7549}.outContainer .searchTop>div:first-child > img[data-v-7fbced6c]{width:1rem;height:1rem;position:absolute;top:50%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .searchTop>div:first-child > input[data-v-7fbced6c]{position:absolute;top:50%;left:0;padding-left:1.7rem;padding-right:1rem;width:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.outContainer .searchTop>div:first-child > input[data-v-7fbced6c]::-webkit-input-placeholder{color:#666}.outContainer .searchTop>div:first-child > input[data-v-7fbced6c]:-moz-placeholder,.outContainer .searchTop>div:first-child > input[data-v-7fbced6c]::-moz-placeholder{color:#666}.outContainer .searchTop>div:first-child > input[data-v-7fbced6c]:-ms-input-placeholder{color:#666}.outContainer .searchTop>.searchBtn[data-v-7fbced6c]{position:absolute;top:50%;right:-10rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.3rem;height:1.8rem;line-height:1.8rem;background:#ef7549;border-radius:.2rem;color:#fff;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;text-align:center;-webkit-transition:all .5s ease;transition:all .5s ease}.outContainer .tabWrap[data-v-7fbced6c]{z-index:2;top:2.5rem;left:0;width:100%;height:3.8rem;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.outContainer .tabWrap .comm[data-v-7fbced6c]{font-size:16px;padding:0 .5rem;color:#999}.outContainer .tabWrap .comm.active[data-v-7fbced6c]{color:#333;font-weight:700;border-bottom:2px solid #ef7549}.outContainer .tabWrap .tabCont[data-v-7fbced6c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap}.outContainer .tabWrap .tabCont>div[data-v-7fbced6c]{display:inline-block;padding-left:.6rem;padding-right:.6rem}.outContainer .tabWrap .tabCont>div .rowTab[data-v-7fbced6c]{color:#999;background:#fff;line-height:1.05rem;text-align:center;display:inline-block;box-sizing:border-box;margin-right:.6rem;padding:.28rem .8rem}.outContainer .tabWrap .tabCont>div .rowTab[data-v-7fbced6c]:last-child{margin-right:0}.outContainer .tabWrap .tabCont>div .rowTab.active[data-v-7fbced6c]{font-weight:600;color:#333;border-bottom:2px solid #ef7549}.outContainer .main[data-v-7fbced6c]{background:#f5f5f5;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.outContainer .main .cardList[data-v-7fbced6c]{padding:.5rem}.outContainer .main .cardList .card[data-v-7fbced6c]{background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem;border-radius:.2rem;position:relative}.outContainer .main .cardList .card[data-v-7fbced6c]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.outContainer .main .cardList .card .imgcont[data-v-7fbced6c]{width:5.9rem;height:5rem;margin-right:.6rem;background:rgba(0,0,0,.3);border-radius:.3rem;overflow:hidden}.outContainer .main .cardList .card .imgcont img[data-v-7fbced6c]{width:5.9rem;height:4rem}.outContainer .main .cardList .card .imgcont .mask[data-v-7fbced6c]{height:1rem;color:#fff;font-size:12px;text-align:center;line-height:1rem}.outContainer .main .cardList .card .content[data-v-7fbced6c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.outContainer .main .cardList .card .content .name[data-v-7fbced6c]{color:#333;font:16px/1rem PingFangSC-Semibold;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:.5rem}.outContainer .main .cardList .card .content .courseType[data-v-7fbced6c]{color:#999;font:14px/1 PingFangSC-PingFangSC;position:absolute;bottom:.5rem;left:0}.outContainer .main .cardList .card .content .priceWrap[data-v-7fbced6c]{position:absolute;right:0;bottom:.5rem}.outContainer .main .cardList .card .content .priceWrap .purchased[data-v-7fbced6c]{color:#ef7549}.outContainer .main .cardList .card .content .priceWrap .enjoyCard[data-v-7fbced6c]{color:#999}.outContainer .main .cardList .card .content .priceWrap .price[data-v-7fbced6c]{color:#ff3f3f;font-size:14px}.outContainer .main .cardList .card .content .priceWrap .price .originPrice[data-v-7fbced6c]{text-align:right;color:#000}.outContainer .main .cardList .card .content .numAndStatus[data-v-7fbced6c]{width:55%;position:absolute;right:0;bottom:0;text-align:right}.outContainer .main .cardList .card .content .numAndStatus .num[data-v-7fbced6c]{color:#999;font:12px/1 PingFangSC-PingFangSC;position:absolute;bottom:0;right:0}.outContainer .main .cardList .card .content .numAndStatus>img[data-v-7fbced6c]{position:absolute;bottom:.75rem;right:0;width:3.15rem;height:.75rem}.outContainer .main .cardList .card .content .numAndStatus .cardForFree[data-v-7fbced6c]{background:rgba(233,90,39,.1);border-radius:.1rem;padding:0 .2rem;color:#e8541e;font:12px/.75rem PingFangSC-Regular;position:absolute;right:0;bottom:.9rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2528);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("491e98bb", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".plateDetail .mescroll-empty{padding-top:5.48rem!important}.plateDetail .mescroll-empty .empty-icon{width:4.33rem!important}.plateDetail .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}.classify-img{max-width:100px;max-height:40px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(269));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(175);
var _sticky = _interopRequireDefault(__webpack_require__(132));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _sticky.default.name, _sticky.default),
  data: function data() {
    return {
      scrollTop: null,
      isHome: true,
      currentClassifyId: '',
      // 当前选中的分类id
      tabList: [],
      keyword: '',
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      showSearchBtn: false,
      cardList: [],
      mescroll: null,
      isSuctTop: false,
      scrollTab: null,
      // better-scroll 实例
      enjoyStatus: '',
      // 0:不是畅享卡  1:是畅享卡
      userStatus: '',
      // 用户状态：0：未认证，1：已认证，2：已付费
      liveData: {
        viewerId: ''
      },
      tabTops: 0,
      isInIosWxMiniApp: false,
      // localStorage.getItem('inWxMinapp') === '1' && this._Util.isIOS // 是否在ios微信小程序内打开
      timing: '',
      time: 0,
      searchKeyNum: ''
    };
  },
  watch: {
    scrollTop: function scrollTop(newval, oldval) {
      // this.tabTops = 0
      // if (newval > 0) {
      //   if (newval > oldval) {
      //     // this.tabShow = false;
      //     this.changeTabShow(false)
      //   } else if (newval < oldval) {
      //     // this.tabShow = true;
      //     this.changeTabShow(true)
      //   }
      // }
      console.log(newval + '---' + this.tabTops);
      if (parseInt(newval) >= parseInt(this.tabTops)) {
        this.isSuctTop = true;
      } else {
        this.isSuctTop = false;
      }
    }
  },
  updated: function updated() {
    this.tabTops = document.getElementById('searchTop').offsetTop || 111;
  },
  created: function created() {
    this.currentClassifyId = +this.$route.query.classifyId || '';
    this.keyword = +this.$route.query.keyword || '';
  },
  mounted: function mounted() {
    window.vuePage = this;
    var that = this;
    this.mescroll = new _mescroll.default(this.$refs.plateMescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getCourseList,
        auto: true,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        onScroll: function onScroll(mescroll, y, isUp) {
          that.scrollTop = y;
          that.tabTops = document.getElementById('searchTop').offsetTop;
          console.log(that.scrollTop, that.tabTops, 'scrollTop');
        },
        // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'plateDetail',
          // 父布局的id (1.3.5版本支持传入dom元素)
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关课程' // 提示
        },
        warpId: 'plateLoadWrap'
      }
    });
    this.scrollTab = new _betterScroll.default('.tabCont', {
      scrollY: false,
      scrollX: true,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300
    });
    // that._Util.collectPageViewNew(
    //   {
    //     type: 1,
    //     postUrl: that._Api.POST_COLLECT_NEW,
    //     source: '',
    //     target: '',
    //     remark: '课程',
    //     searchKey: ''
    //   },
    //   that
    // )
    // that.timing = setInterval(function() { that.time++ }, 1000)
    this.getTabList();
  },
  beforeDestroy: function beforeDestroy() {
    // const that = this
    // clearInterval(that.timing)
    // if (that.time >= 5) {
    //   that._Util.collectPageViewNew(
    //     {
    //       type: 2,
    //       postUrl: that._Api.POST_COLLECT_NEW,
    //       source: '',
    //       target: '',
    //       remark: '课程,' + that.time,
    //       searchKey: ''
    //     },
    //     that
    //   )
    // }
    this.mescroll.destroy();
    this.scrollTab.destroy();
  },
  methods: {
    /**
     * 获取 顶部tab分类
     */
    getTabList: function getTabList() {
      var _this = this;
      this._Util.post(this._Api.POST_COURSE_CLASSIFY_LIST, {
        pageType: 3
      }, function (data) {
        _this.tabList = [
        // { classifyId: '', classifyName: '全部' },
        {
          classifyId: -1,
          classifyName: '热门课程'
        }].concat((0, _toConsumableArray2.default)(data.classifyList));
        setTimeout(function () {
          var id = _this.$route.query.classifyId;
          _this.scrollTab.scrollToElement('#classify' + id, 800, -10, 0);
        }, 0);
      }, function () {}, this, true);
    },
    /**
     * 进入搜索页面
     */
    searchResult: function searchResult() {
      // if (this.keyword.trim() == '') {
      //   Toast({
      //     message: '请输入有效内容',
      //     position: 'middle',
      //     duration: 1000
      //   })
      //   return
      // }
      if (this.keyword.trim() != '') {
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 11,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.keyword,
          searchKey: this.searchKeyNum
        }, this);
      }
      this.scrollTab.scrollToElement('#classify' + this.currentClassifyId, 500, -100, 0);
      this.cardList = [];
      this.mescroll.resetUpScroll();
      this.$router.replace({
        query: {
          classifyId: this.currentClassifyId,
          keyword: this.keyword
        }
      });

      // this._Util.collectPageView2( // 埋点
      //   {
      //     postUrl: this._Api.POST_COLLECT,
      //     url: window.location.href,
      //     moduleType: '课堂',
      //     operate_page: '课堂首页',
      //     optionType: '点击',
      //     param1: this.keyword,
      //     param2: '搜索'
      //   },
      //   this
      // )
      // if (this._Util.isApp()) {
      //   api.sendEvent({
      //     name: 'acOpenNewFrm',
      //     extra: {
      //       name: 'courseSearch',
      //       url: location.origin + '/v2/onlineCourse/courseSearch?keyword=' + this.keyword
      //     }
      //   })
      // } else {
      //   this.$router.push({
      //     name: 'courseSearch',
      //     query: {
      //       keyword: this.keyword
      //     }
      //   })
      // }
    },
    /**
     * 课程点击埋点
     * @param {object} courseDetail 课程信息详情
     */
    courseClickPoint: function courseClickPoint(courseDetail) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: _this2.currentClassifyId,
          optionType: '点击',
          param1: courseDetail.courseId,
          param2: courseDetail.courseName
        }, _this2, function () {
          resolve();
        });
      });
    },
    /**
     * 点击课程
     * @param {object} courseDetail 当前点击课程的详情
     */
    clickCourse: function clickCourse(courseDetail) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // await this.courseClickPoint(courseDetail)

              // if (courseDetail.type === 1) { // 单课
              //   this.checkTicket(courseDetail.courseId, 'playback', courseDetail.hourId, courseDetail.courseName)
              // } else { // 系列课
              //   this.goDetail(courseDetail.courseId, courseDetail.courseName)
              // }
              _this3.goDetail(courseDetail.courseId, courseDetail.courseName);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 判断是否拥有听课券
     * @param {number} courseId 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.post(_this4._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this4);
      });
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param {number} courseId 犇犇课堂 课程id
     * @param {string} type live(进入直播页) reserve(预约) playback(回看)
     * @param {string} url 点击之后的跳转页
     * @param {string} courseName 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var ticketData, that, _url, src;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.getTicketStatus(courseId);
            case 1:
              ticketData = _context2.sent;
              if (!(!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3)) {
                _context2.next = 2;
                break;
              }
              // 课程已购买
              _this5.handleClick(url, courseName);
              _context2.next = 7;
              break;
            case 2:
              if (!(ticketData.enjoyCardCanWatch == 1)) {
                _context2.next = 3;
                break;
              }
              // 畅享卡
              (0, _mintUi.MessageBox)({
                title: '',
                message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                      </div>",
                closeOnClickModal: true,
                confirmButtonText: '畅享卡免费观看'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this5._Util.post(_this5._Api.POST_PAY_TICKET, {
                    courseId: courseId,
                    viewerId: _this5.liveData.viewerId
                  }, function (data) {
                    _this5.handleClick(url, courseName);
                  }, function () {}, _this5);
                }
              });
              _context2.next = 7;
              break;
            case 3:
              if (!(ticketData.cardNumLeft > 0)) {
                _context2.next = 4;
                break;
              }
              // 剩余听课券>0
              (0, _mintUi.MessageBox)({
                title: '',
                message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                      </div>",
                closeOnClickModal: true,
                confirmButtonText: '确定',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this5._Util.post(_this5._Api.POST_PAY_TICKET, {
                    courseId: courseId,
                    viewerId: _this5.liveData.viewerId
                  }, function (data) {
                    _this5.cardList.forEach(function (val) {
                      // 将已请求回来的数据中对应课程的状态修改为已购买
                      if (val.courseId == courseId) {
                        val.applyStatus = 1;
                      }
                    });
                    _this5.handleClick(url, courseName);
                  }, function () {}, _this5);
                }
              });
              _context2.next = 7;
              break;
            case 4:
              if (!_this5._Util.isApp()) {
                _context2.next = 5;
                break;
              }
              that = _this5;
              api.addEventListener({
                name: 'changeCourseStatus'
              }, function (ret, err) {
                that.cardList.forEach(function (val) {
                  // 将已请求回来的数据中对应课程的状态修改为已购买
                  if (val.courseId == ret.value.courseId) {
                    val.applyStatus = 1;
                  }
                });
              });
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'liveContainer',
                  url: location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this5.liveData.viewerId
                }
              });
              _context2.next = 7;
              break;
            case 5:
              _url = location.origin + '/repair/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this5.liveData.viewerId;
              if (!(localStorage.getItem('inWxMinapp') === '1')) {
                _context2.next = 6;
                break;
              }
              // 微信小程序
              src = encodeURIComponent(_url);
              uni.navigateTo({
                // eslint-disable-line
                url: "/pages/webView/webView?src=".concat(src)
              });
              return _context2.abrupt("return");
            case 6:
              location.href = _url;
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param {string} url 需要跳转的跳转页
     * @param {string} courseName 课时名称
     */
    handleClick: function handleClick(url, courseName) {
      var _this6 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var data, _version, _url2, src;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 1;
              return _this6.getSecretUrl(url);
            case 1:
              data = _context3.sent;
              _context3.next = 2;
              return _this6.getAppVer();
            case 2:
              _version = _context3.sent;
              if (!(_this6._Util.isApp() && _this6.compareVersion(_version))) {
                _context3.next = 3;
                break;
              }
              api.sendEvent({
                name: 'openPlayVideo',
                extra: {
                  title: courseName,
                  videoUrl: data.hourUrl,
                  seekTime: 0,
                  hourId: url,
                  courseType: 'single'
                }
              });
              _context3.next = 6;
              break;
            case 3:
              if (!_this6._Util.isApp()) {
                _context3.next = 4;
                break;
              }
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'playbackContainer',
                  url: location.origin + '/repair/shopping/classCoursePlayer?courseType=single&videoName=' + courseName + '&hourId=' + url
                }
              });
              _context3.next = 6;
              break;
            case 4:
              if (!(localStorage.getItem('inWxMinapp') === '1')) {
                _context3.next = 5;
                break;
              }
              // 微信小程序
              _url2 = location.origin + '/repair/shopping/classCoursePlayer?courseType=single&videoName=' + courseName + '&hourId=' + _url2;
              src = encodeURIComponent(_url2);
              uni.navigateTo({
                // eslint-disable-line
                url: "/pages/webView/webView?src=".concat(src)
              });
              return _context3.abrupt("return");
            case 5:
              _this6.$router.push({
                name: 'classCoursePlayer',
                params: {
                  videoName: courseName,
                  url: data.hourUrl,
                  hourId: url,
                  currentVideoType: data.videoType,
                  courseType: 'single'
                }
              });
            case 6:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          api.getPrefs({
            // 接收apicloud传递过来的版本号
            key: 'version'
          }, function (ret, err) {
            if (ret.value) {
              resolve(ret.value);
            } else {
              reject();
            }
          });
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param {string} appVer app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /** 单课获取防盗链URL */getSecretUrl: function getSecretUrl(hourId) {
      var _this7 = this;
      return new Promise(function (resolve, reject) {
        _this7._Util.post(_this7._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this7);
      });
    },
    /**
     * 进入课程详情页面
     * @param {number} courseId 课程id
     * @param {string} courseName 课程名称
     */
    goDetail: function goDetail(courseId, courseName) {
      // if (this._Util.isApp()) {
      //   api.sendEvent({
      //     name: 'acOpenNewFrm',
      //     extra: {
      //       name: 'onlineCourseDetail',
      //       url:
      //         location.origin + '/repair/shopping/courseDetail?courseId=' + courseId
      //     }
      //   })
      // } else {
      var type = this._Util.getParaValueByName('type');
      var url = location.origin + '/repair/shopping/courseDetail?courseId=' + courseId + '&type=' + type + '&searchKeyNum=' + this.searchKeyNum;
      if (this._Util.isFromApp()) {
        uni.postMessage({
          data: {
            type: 'openWeb',
            appName: 'onlineCourseDetail',
            url: url
          }
        });
        return;
      }

      // if (localStorage.getItem('inWxMinapp') === '1') { // 微信小程序
      var src = encodeURIComponent(url);
      uni.navigateTo({
        // eslint-disable-line
        url: "/pages/webView/webView?src=".concat(src)
      });
      return;
      // }
      location.href = url;
      // }
    },
    /**
     * 课程分类点击埋点
     * @param {string} classifyName 分类名称
     */
    classifyClickPoint: function classifyClickPoint(classifyName) {
      var _this8 = this;
      return new Promise(function (resolve, reject) {
        _this8._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this8._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: '课堂分类',
          optionType: '点击',
          param1: classifyName
        }, _this8, function () {
          resolve();
        });
      });
    },
    /**
     * 切换tab 重置课程列表数据
     * @param {string | number} curClassifyId 当前点击的分类id
     * @param {string} curClassifyName 当前点击的分类id
     */
    changeTab: function changeTab(curClassifyId, curClassifyName, index) {
      var _this9 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
        var now, userinfo;
        return _regenerator.default.wrap(function (_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              // await this.classifyClickPoint(curClassifyName)
              now = new Date();
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              _this9.searchKeyNum = now.getTime() + '' + userinfo.userId;
              _this9._Util.collectPageViewNew({
                type: 12,
                postUrl: _this9._Api.POST_COLLECT_NEW,
                source: '',
                target: '',
                remark: curClassifyName,
                searchKey: _this9.searchKeyNum
              }, _this9);
              _this9.currentClassifyId = curClassifyId;
              _this9.scrollTab.scrollToElement('#classify' + curClassifyId, 500, -100, 0);
              _this9.cardList = [];
              _this9.mescroll.resetUpScroll();
              _this9.$router.replace({
                query: {
                  classifyId: curClassifyId
                }
              });
            case 1:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    refreshByApp: function refreshByApp() {
      console.log('refreshByApp');
      this.mescroll.resetUpScroll();
    },
    /**
     * 获取相关课程列表
     */
    getCourseList: function getCourseList(page) {
      var _this0 = this;
      this._Util.post(this._Api.POST_COURSE_LIST_BY_CLASSIFY, {
        classifyId: this.currentClassifyId,
        courseName: this.keyword,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        // this.dataInit = true

        _this0.enjoyStatus = data.enjoyStatus;
        _this0.userStatus = data.userStatus;
        _this0.liveData.viewerId = data.viewerId;

        // document.title = data.classifyName || '课堂分类'
        if (page.num === 1) {
          _this0.cardList = [];
        }
        _this0.cardList = _this0.cardList.concat(data.courseList);
        _this0.$nextTick(function () {
          _this0.mescroll.endSuccess(data.courseList.length);
        });
      }, function () {
        _this0.mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"plateMescroll",staticClass:"outContainer plateDetail",attrs:{"id":"onscrollBox"}},[_c('div',{staticStyle:{"position":"fixed","top":"0","left":"0","width":"100%","z-index":"100"}},[_c('div',{staticClass:"searchTop",class:{searching: _vm.showSearchBtn},attrs:{"id":"searchTop"}},[_c('div',[_c('img',{attrs:{"src":__webpack_require__(1424),"alt":""}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"placeholder":"搜索课程","type":"text"},domProps:{"value":(_vm.keyword)},on:{"focus":function($event){_vm.showSearchBtn=true},"blur":[function($event){_vm.showSearchBtn=false},function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()}}})]),_vm._v(" "),_c('div',{staticClass:"searchBtn",on:{"click":_vm.searchResult}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{staticClass:"tabWrap"},[_c('div',{staticClass:"comm",class:{active: _vm.currentClassifyId === ''},on:{"click":function($event){return _vm.changeTab('', '全部')}}},[_vm._m(0),_vm._v("\n          全部\n        ")]),_vm._v(" "),_c('div',{ref:"contWrapper",staticClass:"tabCont"},[_c('div',{ref:"contEl"},_vm._l((_vm.tabList),function(v,i){return _c('div',{key:i,class:['rowTab', _vm.currentClassifyId === v.classifyId ? 'active' : '' ],attrs:{"id":'classify' + v.classifyId},on:{"click":function($event){return _vm.changeTab(v.classifyId, v.classifyName, i)}}},[_c('div',{staticStyle:{"margin-bottom":"0.2rem"}},[(v.classifyId==-1)?_c('img',{staticClass:"classify-img",attrs:{"src":__webpack_require__(2529)}}):_vm._e(),_vm._v(" "),(v.classifyId!=-1&&!v.classifyImg)?_c('img',{staticClass:"classify-img",attrs:{"src":__webpack_require__(2530)}}):_vm._e(),_vm._v(" "),(v.classifyId!=-1&&v.classifyImg)?_c('img',{staticClass:"classify-img",attrs:{"src":v.classifyImg}}):_vm._e()]),_vm._v(" "),_c('div',[_vm._v("\n                "+_vm._s(v.classifyName)+"\n              ")])])}),0)])])]),_vm._v(" "),_c('div',{staticClass:"main",staticStyle:{"padding-top":"6.4rem"}},[_c('div',{staticClass:"cardList",attrs:{"id":"plateDetail"}},_vm._l((_vm.cardList),function(v,i){return _c('div',{key:i,staticClass:"card",on:{"click":function($event){return _vm.clickCourse(v)}}},[_c('div',{staticClass:"imgcont"},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":"课程封面"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"mask"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))])]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"courseType"},[_vm._v(_vm._s(v.classifyName && v.classifyName.split(',')[0]))]),_vm._v(" "),(!_vm.isInIosWxMiniApp)?_c('div',{staticClass:"priceWrap"},[(v.isPurchase==1)?_c('div',{staticClass:"purchased"},[_vm._v("\n                "+_vm._s(v.coursePrice!=0?'已购买':'已领取')+"\n              ")]):_c('div',{staticClass:"price"},[(v.memberPrice)?[(v.coursePrice!=0)?_c('div',{staticStyle:{"text-align":"right"}},[_vm._v("\n                    "+_vm._s(v.memberPrice!=0?'VIP:￥' + (v.memberPrice*1).toFixed(1) : 'VIP免费')+" "),_c('span',{staticStyle:{"margin-left":"0.3rem"}},[_vm._v(_vm._s(v.superVipPrice!=0?'SVIP:￥' + (v.superVipPrice*1).toFixed(1) : 'SVIP免费'))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"originPrice"},[_vm._v("\n                    "+_vm._s(v.coursePrice!=0?v.classHour + '节 / ￥' + (v.coursePrice*1).toFixed(1) :'免费')+"\n                  ")])]:[_vm._v("\n                    "+_vm._s(v.classHour + '节 / ￥' + (v.coursePrice*1).toFixed(1))+"\n                ")]],2)]):_vm._e()])])}),0),_vm._v(" "),_c('div',{attrs:{"id":"plateLoadWrap"}})])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-bottom":"0.2rem"}},[_c('img',{staticClass:"classify-img",attrs:{"src":__webpack_require__(2531)}})])}]
module.exports = __webpack_require__.p + "static/img/course-search.dd6154c.png";module.exports = __webpack_require__.p + "static/img/hotSelect.922234a.png";module.exports = __webpack_require__.p + "static/img/selectClassify.e98ce36.png";module.exports = __webpack_require__.p + "static/img/all.e57dbab.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(428);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f720748_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1029);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2532)
  __webpack_require__(2534)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0f720748"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f720748_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f720748_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2533);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5ddb5255", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-0f720748]{overflow-y:auto;-webkit-overflow-scrolling:touch;background-color:#f5f5f5}.outContainer .searchTop[data-v-0f720748]{position:fixed;z-index:2;top:0;left:0;height:2.95rem;width:100%;background-color:#fff;box-sizing:content-box;overflow:hidden}.outContainer .searchTop.searching>div[data-v-0f720748]:first-child{width:13.85rem}.outContainer .searchTop.searching>.searchBtn[data-v-0f720748]{right:.6rem}.outContainer .searchTop>div[data-v-0f720748]:first-child{width:17.55rem;height:1.8rem;background-color:#f5f5f5;border-radius:.4rem;position:absolute;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);line-height:1.8rem;-webkit-transition:all .5s ease;transition:all .5s ease;border:2px solid #ef7549}.outContainer .searchTop>div:first-child > img[data-v-0f720748]{width:1rem;height:1rem;position:absolute;top:50%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .searchTop>div:first-child > input[data-v-0f720748]{position:absolute;top:50%;left:0;padding-left:1.7rem;padding-right:1rem;width:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.outContainer .searchTop>div:first-child > input[data-v-0f720748]::-webkit-input-placeholder{color:#666}.outContainer .searchTop>div:first-child > input[data-v-0f720748]:-moz-placeholder,.outContainer .searchTop>div:first-child > input[data-v-0f720748]::-moz-placeholder{color:#666}.outContainer .searchTop>div:first-child > input[data-v-0f720748]:-ms-input-placeholder{color:#666}.outContainer .searchTop>.searchBtn[data-v-0f720748]{position:absolute;top:50%;right:-10rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.3rem;height:1.8rem;line-height:1.8rem;background:#ef7549;border-radius:.2rem;color:#fff;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;text-align:center;-webkit-transition:all .5s ease;transition:all .5s ease}.outContainer .cardList[data-v-0f720748]{padding-top:3.75rem}.outContainer .cardList .card[data-v-0f720748]{background:#fff;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem;border-radius:.2rem;margin:0 .5rem .5rem}.outContainer .cardList .card .imgcont[data-v-0f720748]{width:5.9rem;height:5rem;margin-right:.6rem;background:rgba(0,0,0,.3);border-radius:.3rem;overflow:hidden}.outContainer .cardList .card .imgcont img[data-v-0f720748]{width:5.9rem;height:4rem}.outContainer .cardList .card .imgcont .mask[data-v-0f720748]{height:1rem;color:#fff;font-size:12px;text-align:center;line-height:1rem}.outContainer .cardList .card .content[data-v-0f720748]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.outContainer .cardList .card .content .name[data-v-0f720748]{font-size:16px;font-family:PingFangSC-Medium,PingFangSC;color:#333;line-height:1.2rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:.5rem}.outContainer .cardList .card .content .courseType[data-v-0f720748]{font-size:14px;font-family:PingFangSC;font-weight:400;color:#999;line-height:.8rem;position:absolute;left:0;bottom:.5rem}.outContainer .cardList .card .content .priceWrap[data-v-0f720748]{position:absolute;right:0;bottom:.5rem}.outContainer .cardList .card .content .priceWrap .purchased[data-v-0f720748]{font-size:12px;font-weight:700;font-family:PingFangSC;color:#ef7549;line-height:1rem}.outContainer .cardList .card .content .priceWrap .enjoyCard[data-v-0f720748]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:1rem}.outContainer .cardList .card .content .priceWrap .price[data-v-0f720748]{color:#ff3f3f;font:700 12px/1 PingFangSC-Semibold}.outContainer .cardList .card .content .priceWrap .price .originPrice[data-v-0f720748]{color:#999;font:400 12px/1 PingFangSC-Semibold;text-decoration:line-through;margin-right:.2rem}.outContainer .cardList .card .content .numAndStatus[data-v-0f720748]{width:35%;position:absolute;right:.6rem;bottom:.9rem;text-align:right}.outContainer .cardList .card .content .numAndStatus .num[data-v-0f720748]{font-size:.6rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:.8rem;position:absolute;bottom:1.15rem;right:0}.outContainer .cardList .card .content .numAndStatus>img[data-v-0f720748]{position:absolute;bottom:0;right:0;width:3.4rem;height:.9rem}.outContainer .cardList .card .content .numAndStatus .cardForFree[data-v-0f720748]{background:rgba(233,90,39,.1);border-radius:.1rem;font-size:.6rem;font-family:PingFangSC;font-weight:400;color:#e8541e;line-height:.83rem;padding:.05rem .2rem;display:inline-block}.outContainer .noResult[data-v-0f720748]{padding-top:6.5rem;text-align:center}.outContainer .noResult>img[data-v-0f720748]{width:2.28rem;height:2.65rem}.outContainer .noResult>p[data-v-0f720748]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;margin-top:.2rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2535);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5fd6211c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".searchResult .mescroll-empty{padding-top:6.5rem!important}.searchResult .mescroll-empty .empty-icon{width:2.28rem!important}.searchResult .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      showSearchBtn: false,
      keyword: '',
      dataInit: false,
      mescroll: null,
      cardList: [],
      enjoyStatus: '',
      // 0:不是畅享卡  1:是畅享卡
      userStatus: '',
      // 用户状态：0：未认证，1：已认证，2：已付费
      liveData: {
        viewerId: ''
      }
    };
  },
  created: function created() {
    this.keyword = this.$route.query.keyword;
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getSearchList,
        auto: true,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'courseSearch',
          // 父布局的id (1.3.5版本支持传入dom元素)
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关课程' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 课程点击埋点
     * @param {object} courseDetail 课程信息详情
     */
    courseClickPoint: function courseClickPoint(courseDetail) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: '搜索结果页',
          optionType: '点击',
          param1: courseDetail.courseId,
          param2: courseDetail.courseName
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 点击课程
     * @param(courseDetail): 当前点击课程的详情
     */
    clickCourse: function clickCourse(courseDetail) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // await this.courseClickPoint(courseDetail)
              _this2.goDetail(courseDetail.courseId, courseDetail.courseName);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this3);
      });
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var ticketData, that;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this4.getTicketStatus(courseId);
            case 1:
              ticketData = _context2.sent;
              if (!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3) {
                // 课程已购买
                _this4.handleClick(url, courseName);
              } else if (ticketData.enjoyCardCanWatch == 1) {
                // 畅享卡
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '畅享卡免费观看'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this4._Util.post(_this4._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this4.liveData.viewerId
                    }, function (data) {
                      _this4.handleClick(url, courseName);
                    }, function () {}, _this4);
                  }
                });
              } else if (ticketData.cardNumLeft > 0) {
                // 剩余听课券>0
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this4._Util.post(_this4._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this4.liveData.viewerId
                    }, function (data) {
                      _this4.cardList.forEach(function (val) {
                        // 将已请求回来的数据中对应课程的状态修改为已购买
                        if (val.courseId == courseId) {
                          val.applyStatus = 1;
                        }
                      });
                      _this4.handleClick(url, courseName);
                    }, function () {}, _this4);
                  }
                });
              } else {
                // 没有听课券
                if (_this4._Util.isApp()) {
                  that = _this4;
                  api.addEventListener({
                    name: 'changeCourseStatus'
                  }, function (ret, err) {
                    that.cardList.forEach(function (val) {
                      // 将已请求回来的数据中对应课程的状态修改为已购买
                      if (val.courseId == ret.value.courseId) {
                        val.applyStatus = 1;
                      }
                    });
                  });
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'liveContainer',
                      url: location.origin + '/repair/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this4.liveData.viewerId
                    }
                  });
                } else {
                  location.href = location.origin + '/repair/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this4.liveData.viewerId;
                }
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param(url): 需要跳转的跳转页
     * @param(courseName): 课时名称
     */
    handleClick: function handleClick(url, courseName) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var data, _version;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 1;
              return _this5.getSecretUrl(url);
            case 1:
              data = _context3.sent;
              _context3.next = 2;
              return _this5.getAppVer();
            case 2:
              _version = _context3.sent;
              if (_this5._Util.isApp() && _this5.compareVersion(_version)) {
                api.sendEvent({
                  name: 'openPlayVideo',
                  extra: {
                    title: courseName,
                    videoUrl: data.hourUrl,
                    seekTime: 0,
                    hourId: url,
                    courseType: 'single'
                  }
                });
              } else if (_this5._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'playbackContainer',
                    url: location.origin + '/repair/shopping/classCoursePlayer?courseType=single&videoName=' + courseName + '&hourId=' + url
                  }
                });
              } else {
                _this5.$router.push({
                  name: 'classCoursePlayer',
                  params: {
                    videoName: courseName,
                    url: data.hourUrl,
                    hourId: url,
                    currentVideoType: data.videoType,
                    courseType: 'single'
                  }
                });
              }
            case 3:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          api.getPrefs({
            // 接收apicloud传递过来的版本号
            key: 'version'
          }, function (ret, err) {
            if (ret.value) {
              resolve(ret.value);
            } else {
              reject();
            }
          });
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /** 单课获取防盗链URL */getSecretUrl: function getSecretUrl(hourId) {
      var _this6 = this;
      return new Promise(function (resolve, reject) {
        _this6._Util.post(_this6._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this6);
      });
    },
    /**
     * 进入课程详情页面
     * @param(courseId): 课程id
     * @param(courseName): 课程名称
     */
    goDetail: function goDetail(courseId, courseName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'onlineCourseDetail',
            url: location.origin + '/repair/shopping/courseDetail?courseId=' + courseId
          }
        });
      } else {
        location.href = location.origin + '/repair/shopping/courseDetail?courseId=' + courseId;
      }
    },
    /**
     * 获取搜索列表数据
     * param(page): 分页对象
     */
    getSearchList: function getSearchList(page) {
      var _this7 = this;
      this._Util.post(this._Api.POST_COURSE_SEARCH_LIST, {
        courseName: this.keyword,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        _this7.dataInit = true;
        _this7.enjoyStatus = data.enjoyStatus;
        _this7.userStatus = data.userStatus;
        _this7.liveData.viewerId = data.viewerId;
        if (page.num === 1) {
          _this7.cardList = [];
        }
        _this7.cardList = _this7.cardList.concat(data.courseList);
        _this7.$nextTick(function () {
          _this7.mescroll.endSuccess(data.courseList.length);
        });
      }, function () {
        _this7.mescroll.endErr();
      }, this, true);
    },
    /**
     * 搜索按钮逻辑
     */
    searchResult: function searchResult() {
      if (this.keyword.trim() == '') {
        (0, _mintUi.Toast)({
          message: '请输入有效内容',
          position: 'middle',
          duration: 1000
        });
        return;
      }
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '课堂',
        operate_page: '搜索结果页',
        optionType: '点击',
        param1: this.keyword,
        param2: '搜索'
      }, this);
      this.$router.replace({
        query: {
          keyword: this.keyword
        }
      });
      this.cardList = [];
      this.mescroll.resetUpScroll();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"outContainer searchResult"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.dataInit),expression:"dataInit"}]},[_c('div',{staticClass:"searchTop",class:{searching: _vm.showSearchBtn}},[_c('div',[_c('img',{attrs:{"src":__webpack_require__(1424),"alt":""}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"placeholder":"搜课程 搜回放","type":"text"},domProps:{"value":(_vm.keyword)},on:{"focus":function($event){_vm.showSearchBtn=true},"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"searchBtn",on:{"click":_vm.searchResult}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{staticClass:"cardList",attrs:{"id":"courseSearch"}},[_vm._l((_vm.cardList),function(v,i){return _c('div',{key:i,staticClass:"card",on:{"click":function($event){return _vm.clickCourse(v)}}},[_c('div',{staticClass:"imgcont"},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":"课程封面"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"mask"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))])]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"courseType"},[_vm._v(_vm._s(v.classifyName && v.classifyName.split(',')[0]))]),_vm._v(" "),(!_vm.isInIosWxMiniApp)?_c('div',{staticClass:"priceWrap"},[(v.isPurchase==1)?_c('div',{staticClass:"purchased"},[_vm._v("\n              已购买\n            ")]):_c('div',{staticClass:"price"},[(v.memberPrice)?[_c('span',{staticClass:"originPrice"},[_vm._v("\n                  "+_vm._s('￥' + v.coursePrice)+"\n                ")]),_vm._v("\n                "+_vm._s(v.classHour + '节 / ￥' + v.memberPrice)+"\n              ")]:[_vm._v("\n                "+_vm._s(v.classHour + '节 / ￥' + v.coursePrice)+"\n              ")]],2)]):_vm._e()])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(429);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3f57f62d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1030);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2536)
  __webpack_require__(2538)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3f57f62d"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3f57f62d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3f57f62d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_studyRecord_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2537);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4b99b79c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-3f57f62d]{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;background-color:#f5f5f5}.outContainer .title[data-v-3f57f62d]{padding-top:.8rem;padding-left:.8rem;font-size:1rem;font-family:PingFangSC;font-weight:600;color:#333;line-height:1.4rem;position:relative}.outContainer .title>span[data-v-3f57f62d]{font-size:.75rem;font-family:PingFangSC;font-weight:400;color:#177afa;line-height:1.05rem;position:absolute;bottom:0;right:1.25rem}.outContainer .title>span[data-v-3f57f62d]:after{content:\"\";position:absolute;top:50%;right:-.5rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-image:url(" + escape(__webpack_require__(183)) + ");background-repeat:no-repeat;background-size:100%;height:.4rem;width:.25rem}.outContainer .cardList[data-v-3f57f62d]{padding-top:1rem}.outContainer .cardList .card[data-v-3f57f62d]{height:6.5rem;margin:0 .6rem .6rem;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem;position:relative}.outContainer .cardList .card>img[data-v-3f57f62d]{position:absolute;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.95rem;height:4.9rem;border-radius:.2rem}.outContainer .cardList .card .content[data-v-3f57f62d]{margin-left:5.15rem;padding-top:.85rem;padding-right:.6rem}.outContainer .cardList .card .content .name[data-v-3f57f62d]{font-size:.85rem;font-family:PingFangSC-Medium,PingFangSC;font-weight:600;color:#333;line-height:1.2rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.outContainer .cardList .card .content .courseType[data-v-3f57f62d]{font-size:.6rem;font-family:PingFangSC;font-weight:400;color:#999;line-height:.8rem;position:absolute;left:5.15rem;top:3.65rem}.outContainer .cardList .card .content .courseProgress[data-v-3f57f62d]{position:absolute;left:5.15rem;bottom:.85rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#333;line-height:1rem}.outContainer .cardList .card .content .courseProgress span[data-v-3f57f62d]{color:#ff3f3f;font-size:.7rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2539);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4d2b0b4a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".studyRecord .mescroll-empty{padding-top:5.48rem!important}.studyRecord .mescroll-empty .empty-icon{width:2.33rem!important}.studyRecord .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _mintUi = __webpack_require__(7);
var _header = _interopRequireDefault(__webpack_require__(93));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    headerFixed: _header.default
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      mescroll: null,
      recordList: [],
      liveData: {
        viewerId: this.$route.query.viewerId
      }
    };
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.recordMescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getRecordList,
        auto: true,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'recordList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          icon: 'http://static2.kaxiuyun.com/kxy/course/no-study-record.png',
          tip: '您还没有学习记录哦' // 提示
        },
        warpId: 'recordLoadWrap'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 获取学习记录
     */
    getRecordList: function getRecordList(page) {
      var _this = this;
      this._Util.post(this._Api.POST_COURSE_STUDY_RECORD_LIST, {
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this.recordList = [];
        }
        _this.recordList = _this.recordList.concat(data);
        _this.$nextTick(function () {
          _this.mescroll.endSuccess(data.length);
        });
      }, function () {
        _this.mescroll.endErr();
      }, this, true);
    },
    /**
     * 课程点击埋点
     * @param {object} courseDetail 课程信息详情
     */
    courseClickPoint: function courseClickPoint(courseDetail) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: '我的学习记录',
          optionType: '点击',
          param1: courseDetail.courseId,
          param2: courseDetail.courseName
        }, _this2, function () {
          resolve();
        });
      });
    },
    /**
     * 点击课程
     * @param(courseDetail): 当前点击课程的详情
     */
    clickCourse: function clickCourse(courseDetail) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this3.courseClickPoint(courseDetail);
            case 1:
              if (courseDetail.type === 1) {
                // 单课
                _this3.checkTicket(courseDetail.courseId, 'playback', courseDetail.hourId, courseDetail.courseName);
              } else if (courseDetail.type === 2) {
                // 系列课
                _this3.goDetail(courseDetail.courseId, courseDetail.courseName);
              } else {
                // 班课
                _this3.$router.push({
                  name: 'classCourse',
                  query: {
                    courseId: courseDetail.courseId
                  }
                });
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.post(_this4._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this4);
      });
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var ticketData;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.getTicketStatus(courseId);
            case 1:
              ticketData = _context2.sent;
              if (!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3) {
                // 课程已购买
                _this5.handleClick(url, courseName);
              } else if (ticketData.enjoyCardCanWatch == 1) {
                // 畅享卡
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '畅享卡免费观看'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this5._Util.post(_this5._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this5.liveData.viewerId
                    }, function (data) {
                      _this5.handleClick(url, courseName);
                    }, function () {}, _this5);
                  }
                });
              } else if (ticketData.cardNumLeft > 0) {
                // 剩余听课券>0
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this5._Util.post(_this5._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this5.liveData.viewerId
                    }, function (data) {
                      _this5.handleClick(url, courseName);
                    }, function () {}, _this5);
                  }
                });
              } else {
                // 没有听课券
                if (_this5._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'liveContainer',
                      url: location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this5.liveData.viewerId
                    }
                  });
                } else {
                  location.href = location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this5.liveData.viewerId;
                }
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param(url): 需要跳转的跳转页
     * @param(courseName): 课时名称
     */
    handleClick: function handleClick(url, courseName) {
      var _this6 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var data, _version;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 1;
              return _this6.getSecretUrl(url);
            case 1:
              data = _context3.sent;
              _context3.next = 2;
              return _this6.getAppVer();
            case 2:
              _version = _context3.sent;
              if (_this6._Util.isApp() && _this6.compareVersion(_version)) {
                api.sendEvent({
                  name: 'openPlayVideo',
                  extra: {
                    title: courseName,
                    videoUrl: data.hourUrl,
                    seekTime: 0,
                    hourId: url,
                    courseType: 'single'
                  }
                });
              } else if (_this6._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'playbackContainer',
                    url: location.origin + '/v2/shopping/classCoursePlayer?courseType=single&videoName=' + courseName + '&hourId=' + url
                  }
                });
              } else {
                _this6.$router.push({
                  name: 'classCoursePlayer',
                  params: {
                    videoName: courseName,
                    url: data.hourUrl,
                    hourId: url,
                    currentVideoType: data.videoType,
                    courseType: 'single'
                  }
                });
              }
            case 3:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          api.getPrefs({
            // 接收apicloud传递过来的版本号
            key: 'version'
          }, function (ret, err) {
            if (ret.value) {
              resolve(ret.value);
            } else {
              reject();
            }
          });
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /** 单课获取防盗链URL */getSecretUrl: function getSecretUrl(hourId) {
      var _this7 = this;
      return new Promise(function (resolve, reject) {
        _this7._Util.post(_this7._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this7);
      });
    },
    /**
     * 进入课程详情页面
     * @param(courseId): 课程id
     * @param(courseName): 课程名称
     */
    goDetail: function goDetail(courseId, courseName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'onlineCourseDetail',
            url: location.origin + '/v2/shopping/courseDetail?courseId=' + courseId
          }
        });
      } else {
        location.href = location.origin + '/v2/shopping/courseDetail?courseId=' + courseId;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"recordMescroll",staticClass:"outContainer studyRecord"},[_c('div',{staticClass:"title",style:(!_vm.isApp ? 'margin-top:2.6rem' : '')},[_vm._v("\n    学习记录\n  ")]),_vm._v(" "),_c('div',{staticClass:"cardList",attrs:{"id":"recordList"}},_vm._l((_vm.recordList),function(v,i){return _c('div',{key:i,staticClass:"card",on:{"click":function($event){return _vm.clickCourse(v)}}},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":"课程封面"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"courseType"},[_vm._v(_vm._s(v.classifyName && v.classifyName.split(',')[0]))]),_vm._v(" "),_c('div',{staticClass:"courseProgress"},[_vm._v("\n          "+_vm._s(v.classHour)+"课时 | 已学 "),_c('span',[_vm._v(_vm._s(v.type == 1 ? v.hourNode + '%' : v.verse))]),_vm._v(" "+_vm._s(v.type == 1 ? '' : '节')+"\n        ")])])])}),0),_vm._v(" "),_c('div',{attrs:{"id":"recordLoadWrap"}}),_vm._v(" "),(!_vm.isApp)?_c('headerFixed'):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(430);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_40945f08_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1031);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2540)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-40945f08"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_40945f08_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_40945f08_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_unlimitCard_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2541);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5bee4ace", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-40945f08]{background-color:#f5f5f5;overflow-x:hidden}.outContainer .wrap[data-v-40945f08]{padding:.8rem .6rem 0}.outContainer .wrap .card[data-v-40945f08]{height:8.5rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/course/enjoy-card-new.png\");background-color:#fff;background-size:100%;background-repeat:no-repeat;border-radius:2px;position:relative}.outContainer .wrap .card .top[data-v-40945f08]{padding-left:.8rem;padding-top:.8rem}.outContainer .wrap .card .top>p[data-v-40945f08]:first-of-type{font-family:PingFangSC-Semibold;font-weight:700;font-size:.9rem;color:#dec2a9}.outContainer .wrap .card .top>p[data-v-40945f08]:nth-of-type(2){margin-top:.2rem;opacity:.8;font-family:PingFangSC-Regular;font-size:.7rem;color:#dec2a9}.outContainer .wrap .card .bottom[data-v-40945f08]{width:100%;position:absolute;left:.8rem;bottom:.5rem}.outContainer .wrap .card .bottom p[data-v-40945f08]{font-family:PingFangSC-Regular;font-size:.6rem;color:#b19a85;line-height:1}.outContainer .wrap .card .bottom>p[data-v-40945f08]:nth-of-type(2){margin-top:.4rem}.outContainer .wrap .card .renewBtn[data-v-40945f08]{width:3rem;padding:.2rem 0;line-height:1rem;background-color:#dec2a9;border-radius:.7rem;text-align:center;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#36322e;position:absolute;right:.8rem;bottom:.53rem}.outContainer .nocardWrap[data-v-40945f08]{background-color:#fff;padding:.6rem}.outContainer .nocardWrap .nocard[data-v-40945f08]{padding:.4rem}.outContainer .nocardWrap .nocard .main[data-v-40945f08]{padding-top:1.5rem;padding-left:.4rem;padding-right:.4rem;text-align:center}.outContainer .nocardWrap .nocard .main>img[data-v-40945f08]{width:3.1rem;pointer-events:none}.outContainer .nocardWrap .nocard .main>p[data-v-40945f08]{margin-top:.3rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#333;padding-bottom:1rem;border-bottom:1px solid #ddd}.outContainer .nocardWrap .nocard .tips[data-v-40945f08]{padding:1rem .4rem 0}.outContainer .nocardWrap .nocard .tips>p[data-v-40945f08]:first-of-type{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .nocardWrap .nocard .tips>p[data-v-40945f08]:nth-of-type(2){margin-top:.4rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .nocardWrap .nocard .tips>p[data-v-40945f08]:nth-of-type(3){margin-top:.2rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.outContainer .nocardWrap .nocard .openBtn[data-v-40945f08]{margin-top:1.2rem;height:2.2rem;line-height:2.2rem;text-align:center;background:#377ee1;border-radius:1.1rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#fff}.outContainer .courseContainer[data-v-40945f08]{margin-top:1.2rem;padding-bottom:.4rem}.outContainer .courseContainer .top[data-v-40945f08]{margin-bottom:.2rem}.outContainer .courseContainer .top .title[data-v-40945f08]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;text-indent:.6rem;position:relative}.outContainer .courseContainer .top .title span[data-v-40945f08]{position:absolute;bottom:0;right:1.07rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#377ee1;font-weight:400}.outContainer .courseContainer .top .title span[data-v-40945f08]:after{content:\"\";position:absolute;top:50%;right:-.5rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-image:url(" + escape(__webpack_require__(183)) + ");background-repeat:no-repeat;background-size:100%;height:.4rem;width:.25rem}.outContainer .courseContainer .top .enjoy-card-tab-wrap[data-v-40945f08]{background-color:#f5f5f5;height:2.6rem;margin-top:.2rem;padding-top:.5rem;overflow:hidden;position:relative;white-space:nowrap}.outContainer .courseContainer .top .enjoy-card-tab-wrap>div[data-v-40945f08]{display:inline-block;padding-left:.6rem;padding-right:.6rem}.outContainer .courseContainer .top .enjoy-card-tab-wrap>div .rowTab[data-v-40945f08]{color:#999;background:#fff;box-shadow:0 .2rem .4rem 0 hsla(0,0%,75%,.2);border-radius:.8rem;line-height:1.05rem;text-align:center;display:inline-block;box-sizing:border-box;margin-right:.6rem;padding:.28rem .8rem}.outContainer .courseContainer .top .enjoy-card-tab-wrap>div .rowTab[data-v-40945f08]:last-child{margin-right:0}.outContainer .courseContainer .top .enjoy-card-tab-wrap>div .rowTab.active[data-v-40945f08]{font-weight:600;color:#fff;background:#177afa;box-shadow:0 .2rem .4rem 0 rgba(23,122,250,.25)}.outContainer .courseContainer .cardList .card[data-v-40945f08]{height:6.5rem;margin:0 .6rem .6rem;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem;position:relative}.outContainer .courseContainer .cardList .card>img[data-v-40945f08]{position:absolute;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.95rem;height:4.9rem;border-radius:.2rem}.outContainer .courseContainer .cardList .card .content[data-v-40945f08]{margin-left:5.15rem;padding-top:.85rem;padding-right:.6rem}.outContainer .courseContainer .cardList .card .content .name[data-v-40945f08]{font-size:.85rem;font-family:PingFangSC-Medium,PingFangSC;font-weight:600;color:#333;line-height:1.2rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.outContainer .courseContainer .cardList .card .content .courseType[data-v-40945f08]{font-size:.6rem;font-family:PingFangSC;font-weight:400;color:#999;line-height:.8rem;position:absolute;left:5.15rem;top:3.65rem}.outContainer .courseContainer .cardList .card .content .priceWrap[data-v-40945f08]{position:absolute;left:5.15rem;bottom:.85rem}.outContainer .courseContainer .cardList .card .content .priceWrap .purchased[data-v-40945f08]{font-size:.7rem;font-family:PingFangSC;font-weight:600;color:#177afa;line-height:1rem}.outContainer .courseContainer .cardList .card .content .priceWrap .enjoyCard[data-v-40945f08]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:1rem}.outContainer .courseContainer .cardList .card .content .priceWrap .price[data-v-40945f08]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:600;color:#ff3f3f;line-height:1rem}.outContainer .courseContainer .cardList .card .content .numAndStatus[data-v-40945f08]{width:35%;position:absolute;right:.6rem;bottom:.9rem;text-align:right}.outContainer .courseContainer .cardList .card .content .numAndStatus .num[data-v-40945f08]{font-size:.6rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:.8rem;position:absolute;bottom:1.15rem;right:0}.outContainer .courseContainer .cardList .card .content .numAndStatus>img[data-v-40945f08]{position:absolute;bottom:0;right:0;width:3.4rem;height:.9rem}.outContainer .courseContainer .cardList .card .content .numAndStatus .cardForFree[data-v-40945f08]{background:rgba(233,90,39,.1);border-radius:.1rem;font-size:.6rem;font-family:PingFangSC;font-weight:400;color:#e8541e;line-height:.83rem;padding:.05rem .2rem;display:inline-block}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(269));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _Loading = _interopRequireDefault(__webpack_require__(174));
var _header = _interopRequireDefault(__webpack_require__(93));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {
    handleTime: function handleTime(val) {
      if (!val) return;
      return val.split('-').join('.');
    }
  },
  components: {
    Loading: _Loading.default,
    headerFixed: _header.default
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      enjoyStatus: '',
      // 0:不是畅享卡  1:是畅享卡
      userStatus: '',
      // 用户状态：0：未认证，1：已认证，2：已付费
      curClassifyId: '',
      tabList: [],
      dataInit: false,
      ownCard: false,
      mescroll: null,
      cardList: [],
      endTime: '',
      liveData: {
        viewerId: ''
      },
      isInWxMiniApp: localStorage.getItem('inWxMinapp') === '1' // 是否在ios微信小程序内打开
    };
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.cardMescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getCourseList,
        auto: false,
        page: {
          num: 1,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'unlimitCardList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无相关课程~' // 提示
        },
        warpId: 'cardLoadWrap'
      }
    });
    this.getViewerId();
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 获取直播相关列表
     * @param(callback): 请求的回调处理
     */
    getViewerId: function getViewerId() {
      var _this = this;
      this._Util.post(this._Api.POST_COURSE_GET_BROADCASE_LIST, {}, function (data) {
        _this.liveData.viewerId = data.viewerId;
        _this.getPropertyList();
      }, function () {}, this, true);
    },
    /** 进入反馈页面 */goFeedback: function goFeedback() {
      var url = 'https://wx.kaxiuyun.com/v2/questionnaire/index?no=d6b465f0';
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedbackContainer',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 课程点击埋点
     * @param {object} courseDetail 课程信息详情
     */
    courseClickPoint: function courseClickPoint(courseDetail) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: '我的畅享卡',
          optionType: '点击',
          param1: courseDetail.courseId,
          param2: courseDetail.courseName
        }, _this2, function () {
          resolve();
        });
      });
    },
    /**
     * 点击课程
     * @param(courseDetail): 当前点击课程的详情
     */
    clickCourse: function clickCourse(courseDetail) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this3.courseClickPoint(courseDetail);
            case 1:
              if (courseDetail.type === 1) {
                // 单课
                _this3.checkTicket(courseDetail.courseId, 'playback', courseDetail.hourId, courseDetail.courseName);
              } else {
                // 系列课
                _this3.goDetail(courseDetail.courseId, courseDetail.courseName);
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.post(_this4._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this4);
      });
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var ticketData, that;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this5.getTicketStatus(courseId);
            case 1:
              ticketData = _context2.sent;
              if (!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3) {
                // 课程已购买
                _this5.handleClick(type, url, courseId, courseName);
              } else if (ticketData.enjoyCardCanWatch == 1) {
                // 畅享卡
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '畅享卡免费观看'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this5._Util.post(_this5._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this5.liveData.viewerId
                    }, function (data) {
                      _this5.handleClick(type, url, courseId, courseName);
                    }, function () {}, _this5);
                  }
                });
              } else if (ticketData.cardNumLeft > 0) {
                // 剩余听课券>0
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this5._Util.post(_this5._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this5.liveData.viewerId
                    }, function (data) {
                      _this5.cardList.forEach(function (val) {
                        if (val.courseId == courseId) {
                          val.applyStatus = 1;
                        }
                      });
                      _this5.handleClick(type, url, courseId, courseName);
                    }, function () {}, _this5);
                  }
                });
              } else {
                // 没有听课券
                if (_this5._Util.isApp()) {
                  that = _this5;
                  api.addEventListener({
                    name: 'changeCourseStatus'
                  }, function (ret, err) {
                    that.cardList.forEach(function (val) {
                      if (val.courseId == ret.value.courseId) {
                        val.applyStatus = 1;
                      }
                    });
                  });
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'liveContainer',
                      url: location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this5.liveData.viewerId
                    }
                  });
                } else {
                  location.href = location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this5.liveData.viewerId;
                }
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 需要跳转的跳转页  playback时，url的值为课时id，需要用课时id来获取真正的url
     * @param(courseName): 课时名称
     */
    handleClick: function handleClick(type, url, courseId, courseName) {
      var _this6 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var data, _version, _t;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _t = type;
              _context3.next = _t === 'live' ? 1 : _t === 'reserve' ? 2 : _t === 'playback' ? 3 : 6;
              break;
            case 1:
              return _context3.abrupt("continue", 6);
            case 2:
              return _context3.abrupt("continue", 6);
            case 3:
              _context3.next = 4;
              return _this6.getSecretUrl(url);
            case 4:
              data = _context3.sent;
              _context3.next = 5;
              return _this6.getAppVer();
            case 5:
              _version = _context3.sent;
              if (_this6._Util.isApp() && _this6.compareVersion(_version)) {
                api.sendEvent({
                  name: 'openPlayVideo',
                  extra: {
                    title: courseName,
                    videoUrl: data.hourUrl,
                    seekTime: 0,
                    hourId: url,
                    courseType: 'single'
                  }
                });
              } else if (_this6._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'playbackContainer',
                    url: location.origin + '/v2/shopping/classCoursePlayer?courseType=single&videoName=' + courseName + '&hourId=' + url
                  }
                });
              } else {
                _this6.$router.push({
                  name: 'classCoursePlayer',
                  params: {
                    videoName: courseName,
                    url: data.hourUrl,
                    hourId: url,
                    currentVideoType: data.videoType,
                    courseType: 'single'
                  }
                });
              }
              return _context3.abrupt("continue", 6);
            case 6:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          api.getPrefs({
            // 接收apicloud传递过来的版本号
            key: 'version'
          }, function (ret, err) {
            if (ret.value) {
              resolve(ret.value);
            } else {
              reject();
            }
          });
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /** 单课获取防盗链URL */getSecretUrl: function getSecretUrl(hourId) {
      var _this7 = this;
      return new Promise(function (resolve, reject) {
        _this7._Util.post(_this7._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this7);
      });
    },
    /**
     * 进入课程详情页面
     * @param(courseId): 课程id
     * @param(courseName): 课程名称
     */
    goDetail: function goDetail(courseId, courseName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'onlineCourseDetail',
            url: location.origin + '/v2/shopping/courseDetail?courseId=' + courseId
          }
        });
      } else {
        location.href = location.origin + '/v2/shopping/courseDetail?courseId=' + courseId;
      }
    },
    /**
     * 切换tab 重置课程列表数据
     */
    changeTab: function changeTab(curClassifyId) {
      this.curClassifyId = curClassifyId;
      this.cardList = [];
      this.mescroll.resetUpScroll();
    },
    /**
     * 获取指定分类的课程列表数据
     */
    getCourseList: function getCourseList() {
      var _this8 = this;
      var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
        num: 1,
        size: 10
      };
      this._Util.post(this._Api.POST_COURSE_ENJOY_COURSE_LIST, {
        classifyId: this.curClassifyId,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        _this8.enjoyStatus = data.enjoyStatus;
        _this8.userStatus = data.userStatus;
        if (page.num === 1) {
          _this8.cardList = [];
        }
        _this8.cardList = _this8.cardList.concat(data.courseList);
        _this8.$nextTick(function () {
          _this8.mescroll.endSuccess(data.courseList.length);
        });
      }, function () {
        _this8.mescroll.endErr();
      }, this, true);
    },
    /**
     * 获取分类接口
     */
    getPropertyList: function getPropertyList() {
      var _this9 = this;
      this._Util.post(this._Api.POST_COURSE_CLASSIFY_LIST, {}, function (data) {
        _this9.dataInit = true;
        _this9.ownCard = !!data.enjoyStatus;
        _this9.endTime = data.enjoyEndTime;
        _this9.tabList = [{
          classifyId: '',
          classifyName: '全部'
        }].concat((0, _toConsumableArray2.default)(data.classifyList));
        // this.curClassifyId = data.classifyList[0].classifyId;
        _this9.getCourseList();
      }, function () {}, this, true);
    },
    /** 进入会员中心 */goMemberCenter: function goMemberCenter() {
      this.$router.push({
        name: 'certificationRenewal'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"cardMescroll",staticClass:"outContainer"},[(!_vm.dataInit)?_c('div',[_c('Loading')],1):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.dataInit),expression:"dataInit"}],style:(!_vm.isApp && !_vm.isInWxMiniApp ? 'margin-top:2.6rem' : '')},[(_vm.ownCard)?_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"top"},[_c('p',[_vm._v("课堂畅享卡")]),_vm._v(" "),_c('p',[_vm._v("到期时间："+_vm._s(_vm._f("handleTime")(_vm.endTime)))])]),_vm._v(" "),_vm._m(0),_vm._v(" "),(!(_vm.isInWxMiniApp && _vm._Util.isIOS))?_c('div',{staticClass:"renewBtn",on:{"click":_vm.goMemberCenter}},[_vm._v("续费")]):_vm._e()])]):_c('div',{staticClass:"nocardWrap"},[_c('div',{staticClass:"nocard"},[_vm._m(1),_vm._v(" "),_vm._m(2),_vm._v(" "),(!(_vm.isInWxMiniApp && _vm._Util.isIOS))?_c('div',{staticClass:"openBtn",on:{"click":_vm.goMemberCenter}},[_vm._v("\n          获取畅享卡\n        ")]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"courseContainer"},[_c('div',{staticClass:"top"},[_c('div',{staticClass:"title"},[_vm._v("\n          以下课程免费畅享\n          "),_c('span',{on:{"click":_vm.goFeedback}},[_vm._v("课堂意见反馈")])]),_vm._v(" "),_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"enjoy-card-tab-wrap"},[_c('div',_vm._l((_vm.tabList),function(v,i){return (!v.classifyUrl)?_c('div',{key:i,class:['rowTab', _vm.curClassifyId === v.classifyId ? 'active' : '' ],on:{"click":function($event){return _vm.changeTab(v.classifyId)}}},[_vm._v("\n              "+_vm._s(v.classifyName)+"\n            ")]):_vm._e()}),0)])]),_vm._v(" "),_c('div',{staticClass:"cardList",attrs:{"id":"unlimitCardList"}},_vm._l((_vm.cardList),function(v,i){return _c('div',{key:i,staticClass:"card",on:{"click":function($event){return _vm.clickCourse(v)}}},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":"课程封面"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"courseType"},[_vm._v(_vm._s(v.classifyName && v.classifyName.split(',')[0]))]),_vm._v(" "),(!(_vm.isInWxMiniApp && _vm._Util.isIOS))?_c('div',{staticClass:"priceWrap"},[(v.isPurchase==1)?_c('div',{staticClass:"purchased"},[_vm._v("\n                已购买\n              ")]):(v.enjoyCardCanWatch===1)?_c('div',{staticClass:"enjoyCard"},[_vm._v("\n                "+_vm._s(v.classHour + '节 / ￥' + v.coursePrice)+"\n              ")]):_c('div',{staticClass:"price"},[_vm._v("\n                "+_vm._s(v.classHour + '节 / ￥' + v.coursePrice)+"\n              ")])]):_vm._e(),_vm._v(" "),(v.isPurchase==1)?_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num",staticStyle:{"bottom":"0"}},[_vm._v(_vm._s(v.viewNumbers + '人观看'))])]):(v.enjoyCardCanWatch===1)?_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))]),_vm._v(" "),_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/card-free-large.png","alt":"畅享卡免费"}})]):(v.enjoyCardFreeStatus===1)?_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num"},[_vm._v(_vm._s(v.viewNumbers + '人观看'))]),_vm._v(" "),_c('div',{staticClass:"cardForFree"},[_vm._v("开通畅享卡免费看")])]):_c('div',{staticClass:"numAndStatus"},[_c('div',{staticClass:"num",staticStyle:{"bottom":"0"}},[_vm._v(_vm._s(v.viewNumbers + '人观看'))])])])])}),0),_vm._v(" "),_c('div',{attrs:{"id":"cardLoadWrap"}})])]),_vm._v(" "),(!_vm.isApp && !_vm.isInWxMiniApp)?_c('headerFixed'):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bottom"},[_c('p',[_vm._v("1.每购买1次年费会员，获赠1年的课堂畅享卡")]),_vm._v(" "),_c('p',[_vm._v("2.拥有课堂畅享卡可免费观看以下课程")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"main"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/living/nocard.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("您暂未获得畅享卡")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tips"},[_c('p',[_vm._v("什么是课堂畅享卡")]),_vm._v(" "),_c('p',[_vm._v("1.每购买1次年费会员，获赠1年的课堂畅享卡")]),_vm._v(" "),_c('p',[_vm._v("2.拥有课堂畅享卡可免费观看以下课程")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(431);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f83cebd8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1032);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2542)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-f83cebd8"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f83cebd8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f83cebd8_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_livePlayback_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2543);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7ea68611", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-f83cebd8]{height:100%;overflow-y:auto}.outContainer .livebackList[data-v-f83cebd8]{font-size:0;padding-top:1.2rem}.outContainer .livebackList .item[data-v-f83cebd8]{height:4.1rem;position:relative;margin-bottom:1.4rem}.outContainer .livebackList .item>img[data-v-f83cebd8]{width:5.45rem;height:100%;border-radius:.1rem;margin-left:.6rem;background-color:#f0f8ff;float:left}.outContainer .livebackList .item .lecturer[data-v-f83cebd8]{position:absolute;left:.6rem;bottom:0;width:5.45rem;height:1rem;line-height:1rem;text-align:center;background:#f7f7f7;border-radius:0 0 .1rem .1rem;color:#4f4f4f;font-size:.55rem;font-family:PingFangSC-Regular;font-weight:400}.outContainer .livebackList .item .rightContent[data-v-f83cebd8]{margin-left:6.65rem;height:100%;position:relative}.outContainer .livebackList .item .rightContent .name[data-v-f83cebd8]{padding-right:.6rem;font-size:.8rem;font-family:PingFangSC-Medium;font-weight:700;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.outContainer .livebackList .item .rightContent .purchased[data-v-f83cebd8]{position:absolute;bottom:0;left:0;width:100%;text-align:left;font-size:.7rem;font-family:PingFangSC-Medium;font-weight:700;color:#999}.outContainer .livebackList .item .rightContent .detail[data-v-f83cebd8]{position:absolute;bottom:0;left:0;width:100%;height:100%}.outContainer .livebackList .item .rightContent .detail .curPrice[data-v-f83cebd8]{position:absolute;left:0;bottom:.43rem;font-size:.7rem;font-family:PingFangSC-Medium;font-weight:700;color:#ee4545;line-height:1}.outContainer .livebackList .item .rightContent .detail .curPrice>span[data-v-f83cebd8]{margin-left:.2rem;vertical-align:bottom;background-image:url(\"http://static2.kaxiuyun.com/kxy/app/online-course/unlimitedCard.png\");background-repeat:no-repeat;background-size:100%;width:2rem;height:.8rem}.outContainer .livebackList .item .rightContent .detail .lineThrough[data-v-f83cebd8]{font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#999;text-decoration:line-through;position:absolute;right:.6rem;bottom:.4rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      playbackList: [],
      mescroll: null,
      liveData: {
        viewerId: this.$route.query.viewerId
      },
      enjoyStatus: '',
      // 0:不是畅享卡  1:是畅享卡
      userStatus: '' // 用户状态：0：未认证，1：已认证，2：已付费
    };
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getCourseList,
        auto: true,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'playback',
          // 父布局的id (1.3.5版本支持传入dom元素)
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无直播回放' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.post(_this._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this);
      });
    },
    /**
     * 课程点击埋点
     * @param {number} courseId 课程id
     * @param {string} courseName 课程名称
     */
    courseClickPoint: function courseClickPoint(courseId, courseName) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this2._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: '直播回放',
          optionType: '点击',
          param1: courseId,
          param2: courseName
        }, _this2, function () {
          resolve();
        });
      });
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var ticketData, that;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this3.courseClickPoint(courseId, courseName);
            case 1:
              _context.next = 2;
              return _this3.getTicketStatus(courseId);
            case 2:
              ticketData = _context.sent;
              if (!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3) {
                // 课程已购买
                _this3.handleClick(url, courseName, courseId);
              } else if (ticketData.enjoyCardCanWatch == 1) {
                // 畅享卡
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '畅享卡免费观看'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this3._Util.post(_this3._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this3.liveData.viewerId
                    }, function (data) {
                      _this3.handleClick(url, courseName, courseId);
                    }, function () {}, _this3);
                  }
                });
              } else if (ticketData.cardNumLeft > 0) {
                // 剩余听课券>0
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                        \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                      </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this3._Util.post(_this3._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this3.liveData.viewerId
                    }, function (data) {
                      _this3.playbackList.forEach(function (val) {
                        // 将已请求回来的数据中对应课程的状态修改为已购买
                        if (val.courseId == courseId) {
                          val.applyStatus = 1;
                        }
                      });
                      _this3.handleClick(url, courseName, courseId);
                    }, function () {}, _this3);
                  }
                });
              } else {
                // 没有听课券
                if (_this3._Util.isApp()) {
                  that = _this3;
                  api.addEventListener({
                    name: 'changeCourseStatus'
                  }, function (ret, err) {
                    that.playbackList.forEach(function (val) {
                      // 将已请求回来的数据中对应课程的状态修改为已购买
                      if (val.courseId == ret.value.courseId) {
                        val.applyStatus = 1;
                      }
                    });
                  });
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'liveContainer',
                      url: location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this3.liveData.viewerId
                    }
                  });
                } else {
                  location.href = location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this3.liveData.viewerId;
                }
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param(url): 需要跳转的跳转页  playback时，url的值为课时id，需要用课时id来获取真正的url
     * @param(courseName): 课时名称
     * @param(courseId): 课时id
     */
    handleClick: function handleClick(url, courseName, courseId) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              // const data = await this.getSecretUrl(url)
              if (_this4._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'onlineCourseDetail',
                    url: location.origin + '/v2/shopping/courseDetail?courseId=' + courseId
                  }
                });
              } else {
                _this4.$router.push({
                  name: 'onlineCourseDetail',
                  query: {
                    courseId: courseId
                  }
                });
              }
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          api.getPrefs({
            // 接收apicloud传递过来的版本号
            key: 'version'
          }, function (ret, err) {
            if (ret.value) {
              resolve(ret.value);
            } else {
              reject();
            }
          });
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.6';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /** 单课获取防盗链URL */getSecretUrl: function getSecretUrl(hourId) {
      var _this5 = this;
      return new Promise(function (resolve, reject) {
        _this5._Util.post(_this5._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this5);
      });
    },
    /**
     * 获取直播回放课程列表
     */
    getCourseList: function getCourseList(page) {
      var _this6 = this;
      this._Util.post(this._Api.POST_COURSE_ENJOY_COURSE_LIST, {
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        _this6.enjoyStatus = data.enjoyStatus;
        _this6.userStatus = data.userStatus;
        if (page.num === 1) {
          _this6.playbackList = [];
        }
        _this6.playbackList = _this6.playbackList.concat(data.courseList);
        _this6.$nextTick(function () {
          _this6.mescroll.endSuccess(data.courseList.length);
        });
      }, function () {
        _this6.mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"outContainer",staticStyle:{"overflow":"auto"}},[_c('div',{staticClass:"livebackList",attrs:{"id":"playback"}},_vm._l((_vm.playbackList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.checkTicket(v.courseId, 'playback', v.hourId, v.courseName)}}},[_c('img',{attrs:{"src":v.courseCoverImg,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"lecturer"},[_vm._v("讲师："+_vm._s(v.anchorName))]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),(v.isPurchase==1)?_c('div',{staticClass:"purchased"},[_vm._v("已购买")]):_c('div',{staticClass:"detail"},[(v.enjoyCardCanWatch===1)?_c('div',[_c('div',{staticClass:"lineThrough"},[_vm._v("原价￥"+_vm._s(v.coursePrice))]),_vm._v(" "),_vm._m(0,true)]):(_vm.userStatus===2)?_c('div',[_c('div',{staticClass:"lineThrough"},[_vm._v(_vm._s(v.enjoyCardFreeStatus===1?'畅享卡免费':v.memberPrice?('原价￥'+v.coursePrice):''))]),_vm._v(" "),_c('div',{staticClass:"curPrice",staticStyle:{"color":"#EE4545"}},[_vm._v("￥"+_vm._s(v.price)),(v.memberPrice)?_c('span',{staticStyle:{"background-image":"url('http://static2.kaxiuyun.com/kxy/app/online-course/memberPrice.png')"}}):_vm._e()])]):_c('div',[_c('div',{staticClass:"lineThrough"},[_vm._v(_vm._s(v.enjoyCardFreeStatus===1?'畅享卡免费':v.memberPrice?'会员价￥'+v.memberPrice:''))]),_vm._v(" "),_c('div',{staticClass:"curPrice",staticStyle:{"color":"#EE4545"}},[_vm._v("￥"+_vm._s(v.price))])])])])])}),0),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"curPrice",staticStyle:{"color":"#6F4C12"}},[_vm._v("免费"),_c('span')])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(432);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_12ddfda0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1033);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2544)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-12ddfda0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_12ddfda0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_12ddfda0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shareTicket_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2545);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0b63323e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-12ddfda0]{background-color:#fff;padding-left:1rem;padding-right:1rem}.outContainer .shareMask[data-v-12ddfda0]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.outContainer .shareMask .shareTips[data-v-12ddfda0]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outContainer .shareMask .shareTips>p[data-v-12ddfda0]:first-of-type{margin-top:.85rem}.outContainer .shareMask .shareTips>p[data-v-12ddfda0]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.outContainer .tips[data-v-12ddfda0]{text-align:center;padding-top:5rem;padding-bottom:6.95rem}.outContainer .tips img[data-v-12ddfda0]{width:3.1rem;height:3rem;pointer-events:none}.outContainer .tips p[data-v-12ddfda0]{margin-top:.3rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .share[data-v-12ddfda0]{background:#fff;border-radius:1.1rem;color:#fff;color:#377ee1;border:1px solid #377ee1;margin-bottom:.8rem}.outContainer .purchase[data-v-12ddfda0],.outContainer .share[data-v-12ddfda0]{text-align:center;font-family:PingFangSC-Regular;font-size:.9rem;padding:.5rem 0}.outContainer .purchase[data-v-12ddfda0]{background:#377ee1;border-radius:1.1rem;color:#fff;position:relative}.outContainer .purchase>div[data-v-12ddfda0]{position:absolute;left:0;bottom:-1.5rem;width:100%;font-family:PingFangSC-Regular;font-size:.7rem;color:#666;letter-spacing:0;text-align:center}.outContainer .successWrap[data-v-12ddfda0]{text-align:center;padding-top:5rem}.outContainer .successWrap img[data-v-12ddfda0]{width:2.7rem;pointer-events:none}.outContainer .successWrap p[data-v-12ddfda0]{margin-top:.6rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#333}.outContainer .successWrap div[data-v-12ddfda0]{margin-top:6.9rem;height:2.2rem;line-height:2.2rem;background:#377ee1;border-radius:1.1rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#fff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      showShareBox: false,
      countData: '',
      isSuccess: false,
      method: '购买',
      getedTicketNum: ''
    };
  },
  mounted: function mounted() {
    this.getTicketDetail();
    this.share();
    this._Util.collectPageView2(
    // 埋点
    {
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '课堂',
      operate_page: '课堂拦截页',
      optionType: '打开',
      param1: window.location.href
    }, this);
  },
  methods: {
    /** 展示分享蒙层 */showShareMask: function showShareMask() {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '课堂',
        operate_page: '课堂拦截页',
        optionType: '点击',
        param1: 1,
        param2: '分享朋友圈，免费领' + this.countData.ticketCount + '张听课券'
      }, this);
      this.showShareBox = true;
    },
    /** 分享领券 */
    // getShareTicket() {
    //   this._Util.post(
    //     this._Api.POST_BROADCAST_GET_TICKET,
    //     {
    //       viewerId: this.$route.query.viewer_id  // 已弃用
    //     },
    //     data=>{
    //       this.getedTicketNum = data;
    //     },
    //     ()=>{},
    //     this
    //   )
    // },
    /** 进入课程主页 */
    goCourseList: function goCourseList() {
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = '/v2/shopping/onlineCourseList';
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '犇犇课堂-海量修车视频免费看',
                  desc: '卡修宝典全力打造，快来探索吧~',
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            // that.getShareTicket();
            // that.method = '领取';
            // that.showShareBox = false;
            // that.isSuccess = true;
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '犇犇课堂-海量修车视频免费看',
              desc: '卡修宝典全力打造，快来探索吧~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '犇犇课堂-海量修车视频免费看',
              desc: '卡修宝典全力打造，快来探索吧~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '犇犇课堂-海量修车视频免费看',
              desc: '卡修宝典全力打造，快来探索吧~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {
                // that.getShareTicket();
                // that.method = '领取';
                // that.showShareBox = false;
                // that.isSuccess = true;
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 获取领券详情
     */
    getTicketDetail: function getTicketDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_GET_TICKET_DETAIL, {
        courseId: this.$route.query.course_id
      }, function (data) {
        _this.countData = data;
      }, function () {}, this);
    },
    /** 获取用户状态 */getUserStatus: function getUserStatus() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this2);
      });
    },
    /** 支付接口 */
    payTicket: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(type) {
        var _this3 = this;
        var userData;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this._Util.collectPageView2(
              // 埋点
              {
                postUrl: this._Api.POST_COLLECT,
                url: window.location.href,
                moduleType: '课堂',
                operate_page: '课堂拦截页',
                optionType: '点击',
                param1: 2
              }, this);
              _context.next = 1;
              return this.getUserStatus();
            case 1:
              userData = _context.sent;
              if (!(userData.userStatus == 0)) {
                _context.next = 2;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '认证提示',
                message: '您当前还未认证， 认证享受更多功能',
                confirmButtonText: '去认证',
                showCancelButton: true,
                cancelButtonText: '暂不认证'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this3.$router.replace({
                    name: 'personalCertification',
                    query: {
                      from: 'shareTicket'
                    }
                  });
                }
              });
              return _context.abrupt("return");
            case 2:
              this._Util.post(this._Api.POST_COURSE_ORDER_PAY_NEW, {
                courseId: this.$route.query.course_id
              }, function (data) {
                _this3._Util.wxPay(data.jsApiParameters, function () {
                  _this3.method = '购买';
                  _this3.showShareBox = false;
                  _this3.isSuccess = true;
                  _this3.getedTicketNum = 1;
                  if (_this3._Util.isApp()) {
                    // 修改 当前课程在页面上的状态
                    api.sendEvent({
                      name: 'changeCourseStatus',
                      extra: {
                        courseId: _this3.$route.query.course_id
                      }
                    });
                  }
                  (0, _mintUi.Toast)({
                    message: '支付成功',
                    position: 'bottom',
                    duration: 1500
                  });
                });
              }, function () {}, this);
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 进入会员中心 */goMemberCenter: function goMemberCenter() {
      this._Util.collectPageView2(
      // 埋点
      {
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '课堂',
        operate_page: '课堂拦截页',
        optionType: '点击',
        param1: 3
      }, this);
      this.$router.push({
        name: 'certificationRenewal'
      });
    }
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(_vm.showShareBox)?_c('div',{staticClass:"shareMask",on:{"click":function($event){_vm.showShareBox = false;}}},[_vm._m(0)]):_vm._e(),_vm._v(" "),(_vm.isSuccess)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.getedTicketNum),expression:"getedTicketNum"}],staticClass:"successWrap"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/living/paySuccess.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("恭喜你，成功"+_vm._s(_vm.method)+_vm._s(_vm.getedTicketNum)+"张听课券")]),_vm._v(" "),_c('div',{on:{"click":_vm.goCourseList}},[_vm._v("去看课程")])]):_c('div',[_vm._m(1),_vm._v(" "),(_vm.countData.price)?_c('div',{staticClass:"share",on:{"click":_vm.payTicket}},[_vm._v("\n      支付"+_vm._s(_vm.countData.price)+"元，购买1张听课券\n    ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"purchase",on:{"click":_vm.goMemberCenter}},[_vm._v("\n      免费观看全部200+视频\n      "),_c('div',[_vm._v("开通年费会员，赠送课堂畅享卡")])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享到朋友圈")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/living/ticket.png","alt":"无听课券"}}),_vm._v(" "),_c('p',[_vm._v("您暂时没有听课券")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(433);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e8fd865_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1034);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2546)
  __webpack_require__(2548)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6e8fd865"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e8fd865_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e8fd865_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseLive_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2547);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("79820fae", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-6e8fd865]{overflow:hidden;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.outContainer .videoWrap[data-v-6e8fd865]{height:10.5rem;background-color:rgba(0,0,0,.7);position:relative}.outContainer .videoWrap .compereInfo[data-v-6e8fd865]{width:6rem;height:2.5rem;position:absolute;z-index:1;top:.5rem;left:.5rem;border-radius:2.5rem;background-color:hsla(0,0%,100%,.2)}.outContainer .videoWrap .compereInfo img[data-v-6e8fd865]{float:left;width:2.5rem;height:2.5rem;border-radius:2.5rem;background-color:#f0f8ff}.outContainer .videoWrap .compereInfo p[data-v-6e8fd865]{margin-left:2.6rem;font-size:.6rem;font-family:PingFangSC-Regular;color:#fff}.outContainer .videoWrap .compereInfo p[data-v-6e8fd865]:first-of-type{padding-top:.3rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.outContainer .videoWrap video[data-v-6e8fd865]{width:100%;height:100%}.outContainer .contentWrap[data-v-6e8fd865]{overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative}.outContainer .contentWrap .chatWrap[data-v-6e8fd865]{position:relative;top:0;left:0;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#ededed;overflow:hidden}.outContainer .contentWrap .chatWrap .noticeScrollWrap[data-v-6e8fd865]{height:2.05rem;width:100%;position:absolute;top:0;left:0;background-color:#fceee9;z-index:1}.outContainer .contentWrap .chatWrap .giftBanner[data-v-6e8fd865]{position:absolute;top:.5rem;left:0;width:50%;-webkit-transition:all .4s ease;transition:all .4s ease;z-index:1}.outContainer .contentWrap .chatWrap .messageList[data-v-6e8fd865]{position:absolute;top:0;left:0;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-bottom:1rem}.outContainer .contentWrap .chatWrap .messageList .self[data-v-6e8fd865]{text-align:right;padding:.5rem .5rem 0 0}.outContainer .contentWrap .chatWrap .messageList .self img[data-v-6e8fd865]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:right;background-color:#f0f8ff}.outContainer .contentWrap .chatWrap .messageList .self>div[data-v-6e8fd865]{margin-right:.5rem;display:inline-block}.outContainer .contentWrap .chatWrap .messageList .self>div .uname[data-v-6e8fd865]{font-size:.65rem;min-height:1rem;color:#666;font-family:PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .contentWrap .chatWrap .messageList .self>div .umessage[data-v-6e8fd865]{position:relative;display:inline-block;text-align:left;max-width:12rem;word-wrap:break-word;white-space:pre-wrap;padding:.4rem .6rem;background-color:#377ee1;border-radius:.25rem 0 .25rem .25rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fff;font-size:.8rem;line-height:1.05rem}.outContainer .contentWrap .chatWrap .messageList .opposite[data-v-6e8fd865]{text-align:left;padding:.5rem 0 0 .5rem}.outContainer .contentWrap .chatWrap .messageList .opposite img[data-v-6e8fd865]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.outContainer .contentWrap .chatWrap .messageList .opposite>div[data-v-6e8fd865]{margin-left:.5rem;display:inline-block}.outContainer .contentWrap .chatWrap .messageList .opposite>div .uname[data-v-6e8fd865]{font-size:.65rem;min-height:1rem;color:#666;font-family:PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .contentWrap .chatWrap .messageList .opposite>div .umessage[data-v-6e8fd865]{position:relative;display:inline-block;text-align:left;max-width:12rem;word-wrap:break-word;white-space:pre-wrap;padding:.4rem .6rem;background-color:#fff;border-radius:0 .25rem .25rem .25rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem}.outContainer .contentWrap .chatWrap .messageList .redPackage[data-v-6e8fd865]{text-align:left;padding:.5rem 0 0 .5rem}.outContainer .contentWrap .chatWrap .messageList .redPackage img[data-v-6e8fd865]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.outContainer .contentWrap .chatWrap .messageList .redPackage>div[data-v-6e8fd865]{margin-left:.5rem;display:inline-block}.outContainer .contentWrap .chatWrap .messageList .redPackage>div .uname[data-v-6e8fd865]{font-size:.65rem;min-height:1rem;color:#ee4545;font-family:PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .contentWrap .chatWrap .messageList .redPackage>div .package[data-v-6e8fd865]{text-align:left;width:12.75rem;padding:.5rem .5rem .8rem;background-color:#f39b41;border-radius:.25rem;overflow:hidden}.outContainer .contentWrap .chatWrap .messageList .redPackage>div .package img[data-v-6e8fd865]{background-color:#f39b41;margin-top:.2rem;width:1.75rem;height:2.25rem;float:left}.outContainer .contentWrap .chatWrap .messageList .redPackage>div .package span[data-v-6e8fd865]{float:left;color:#fff;font-size:.9rem;font-family:PingFangSC-Regular;max-width:75%;margin-left:.5rem}.outContainer .contentWrap .chatWrap .messageList .system[data-v-6e8fd865]{text-align:center;font-size:.6rem;color:#666;padding:1rem 0}.outContainer .contentWrap .notice[data-v-6e8fd865]{width:3.3rem;height:3.8rem;position:absolute;z-index:3;right:.73rem;bottom:7rem;text-align:center;padding-top:.45rem;border-radius:.2rem;background-color:rgba(0,0,0,.3)}.outContainer .contentWrap .notice img[data-v-6e8fd865]{width:2.2rem;height:1.75rem}.outContainer .contentWrap .notice p[data-v-6e8fd865]{font-size:.6rem;font-family:PingFangSC;font-weight:600;color:#fff;margin-top:.35rem}.outContainer .contentWrap .notice .dot[data-v-6e8fd865]{width:.6rem;height:.6rem;background:#ff3f3f;border:.05rem solid #fff;position:absolute;top:0;right:0;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);border-radius:50%}.outContainer .contentWrap .inputWrap[data-v-6e8fd865]{height:2.65rem;background-color:#fff;position:relative;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .contentWrap .inputWrap>input[data-v-6e8fd865]{margin-top:.43rem;margin-left:.6rem;margin-right:.6rem;height:1.8rem;line-height:1.8rem;text-indent:.6rem;border-radius:.25rem;color:#333;background-color:#f5f5f5;font-size:.7rem;font-family:PingFangSC-Regular;z-index:4;-webkit-transition:all .3s ease;transition:all .3s ease;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.outContainer .contentWrap .inputWrap .btn-wrap[data-v-6e8fd865]{height:100%;display:inline-block}.outContainer .contentWrap .inputWrap .btn-wrap .likeImgWrap[data-v-6e8fd865]{position:absolute;bottom:1rem;right:1.9rem;width:0}.outContainer .contentWrap .inputWrap .btn-wrap .likeImgWrap .likeImg[data-v-6e8fd865]{width:1rem;height:1rem;position:absolute;bottom:-50%;left:50%}.outContainer .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-6e8fd865]{width:1.6rem;height:1.6rem;display:inline-block;margin-top:.53rem;margin-right:.8rem;background-size:100%;background-repeat:no-repeat;position:relative}.outContainer .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-6e8fd865]:last-child{background-image:url(\"http://static2.kaxiuyun.com/kxy/course/live/icon-good.png\");z-index:3}.outContainer .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-6e8fd865]:nth-last-child(2){background-image:url(\"http://static2.kaxiuyun.com/kxy/course/live/icon-gift.png\")}.outContainer .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-6e8fd865]:nth-last-child(3){background-image:url(\"http://static2.kaxiuyun.com/kxy/course/live/icon-invite.png\")}.outContainer .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-6e8fd865]:last-child:active{background-image:url(\"https://static1.kaxiuyun.com/static/img/dianzan2png.png\")}.outContainer .contentWrap .inputWrap .btn-wrap .sendBtn[data-v-6e8fd865]{margin:.43rem .6rem .43rem 0;position:relative;z-index:3;width:3.1rem;height:1.8rem;border-radius:.2rem;background-color:#177afa;text-align:center;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fff;line-height:1.8rem}.outContainer .giftWrap[data-v-6e8fd865]{will-change:all;position:fixed;left:0;bottom:0;z-index:4;width:100%;height:13.5rem;background-color:#fff;overflow:hidden}.outContainer .giftWrap .giftItem[data-v-6e8fd865]{width:25%;height:6.25rem;float:left;text-align:center;padding-top:.5rem}.outContainer .giftWrap .giftItem[data-v-6e8fd865]:active{background-color:#f5f5f5}.outContainer .giftWrap .giftItem img[data-v-6e8fd865]{width:2.5rem;height:2.5rem}.outContainer .giftWrap .giftItem p[data-v-6e8fd865]:first-of-type{color:#333;font-size:.7rem;font-family:PingFangSC-Regular;margin-top:.2rem}.outContainer .giftWrap .giftItem p[data-v-6e8fd865]:nth-of-type(2){color:#666;font-size:.6rem;font-family:PingFangSC-Regular;margin-top:.1rem}.outContainer .redpackageWrap[data-v-6e8fd865]{width:16rem;height:20.8rem;overflow:hidden;background:transparent!important}.outContainer .redpackageWrap .noOpen[data-v-6e8fd865]{width:100%;height:100%;background:url(http://static1.kaxiuyun.com/kxy/broadcast/hbNoOpen.png) no-repeat;background-size:100% 100%;padding-top:5.25rem;position:relative}.outContainer .redpackageWrap .noOpen p[data-v-6e8fd865]{text-align:center;color:#fff;font-size:.8rem;font-family:PingFangSC-Regular;margin-bottom:1.4rem}.outContainer .redpackageWrap .noOpen input[data-v-6e8fd865]{width:13.3rem;height:2.2rem;line-height:2.2rem;border-radius:.2rem;font-size:.8rem;font-family:PingFangSC-Regular;background-color:#fff;color:#000;margin:0 auto 1.7rem;text-align:center;display:block}.outContainer .redpackageWrap .noOpen input[data-v-6e8fd865]::-webkit-input-placeholder{font-size:.8rem;color:#666}.outContainer .redpackageWrap .noOpen input[data-v-6e8fd865]:-ms-input-placeholder{font-size:.8rem;color:#666}.outContainer .redpackageWrap .noOpen input[data-v-6e8fd865]::placeholder{font-size:.8rem;color:#666}.outContainer .redpackageWrap .noOpen .openBtn[data-v-6e8fd865]{margin:0 auto;background-image:-webkit-gradient(linear,left top,left bottom,from(#f7de3c),to(#ff8e40));background-image:linear-gradient(#f7de3c,#ff8e40);font-size:.9rem;font-weight:600;font-family:PingFangSC-Regular;width:13.3rem;height:2.2rem;line-height:2.2rem;text-align:center;color:#fff;border-radius:.2rem}.outContainer .redpackageWrap .noOpen span.close[data-v-6e8fd865]{position:absolute;top:.4rem;right:.4rem;color:#fff;font-size:2rem;text-align:center;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);line-height:1.2rem}.outContainer .redpackageWrap .noOpen>.commandTips[data-v-6e8fd865]{margin-top:.5rem;text-align:center;color:#fff;font-size:.7rem;font-family:PingFangSC-Regular}.outContainer .redpackageWrap .opened[data-v-6e8fd865]{position:absolute;left:0;top:-2.8rem;width:100%;height:24rem;background:url(\"http://static1.kaxiuyun.com/kxy/broadcast/hbOpen.png\") no-repeat;background-size:100% 100%}.outContainer .redpackageWrap .opened span.close[data-v-6e8fd865]{position:absolute;top:3.2rem;right:.4rem;color:#fff;font-size:2rem;text-align:center;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);line-height:1.2rem}.outContainer .redpackageWrap .opened .result[data-v-6e8fd865]{padding-top:1rem;text-align:center}.outContainer .redpackageWrap .opened .result p[data-v-6e8fd865]:first-of-type{font-size:.9rem;color:#ffdce1}.outContainer .redpackageWrap .opened .result p[data-v-6e8fd865]:nth-of-type(2){font-size:1.25rem;color:#fff;font-weight:600;margin-top:.5rem}.outContainer .redpackageWrap .opened .result p[data-v-6e8fd865]:nth-of-type(3){font-size:.7rem;color:#ffdce1;margin-top:.75rem}.outContainer .redpackageWrap .opened .fail[data-v-6e8fd865]{font-size:1.2rem;color:#fff;font-weight:600;margin-top:2.5rem;padding:0 2.8rem;text-align:center}.outContainer .redpackageWrap .opened .detailBtn[data-v-6e8fd865]{width:7.1rem;height:2.1rem;color:#fff;border:1px solid #fff;border-radius:.2rem;line-height:2.1rem;font-size:.8rem;text-align:center;font-family:PingFangSC-Regular;box-sizing:content-box;position:absolute;top:12rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.outContainer .redpackageWrap .opened .detailWrap[data-v-6e8fd865]{position:absolute;top:11rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:14rem;height:11.5rem;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.outContainer .redpackageWrap .opened .detailWrap>div[data-v-6e8fd865]{height:1.4rem;line-height:1.4rem;overflow:hidden}.outContainer .redpackageWrap .opened .detailWrap>div span[data-v-6e8fd865]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff}.outContainer .redpackageWrap .opened .detailWrap>div span[data-v-6e8fd865]:first-of-type{float:left}.outContainer .redpackageWrap .opened .detailWrap>div span[data-v-6e8fd865]:nth-of-type(2){float:right}.outContainer .chatTips[data-v-6e8fd865]{width:100%;background:transparent!important;padding-top:11.1rem}.outContainer .chatTips .tips[data-v-6e8fd865]{margin:0 auto;width:16.75rem;background:#fff;border-radius:.6rem;padding-bottom:1rem;position:relative}.outContainer .chatTips .tips .tip-close[data-v-6e8fd865]{width:2.2rem;height:2.2rem;background:url(\"http://static2.kaxiuyun.com/kxy/course/live/tip-close.png\") 50% no-repeat;background-size:1rem 1rem;position:absolute;top:0;right:0}.outContainer .chatTips .tips .tip-title[data-v-6e8fd865]{font-size:1rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333;line-height:1.4rem;text-align:center;padding:1.2rem 0 0}.outContainer .chatTips .tips .tip-img[data-v-6e8fd865]{padding:1.83rem 0 1.4rem;text-indent:2.38rem}.outContainer .chatTips .tips .tip-img img[data-v-6e8fd865]{width:11.75rem}.outContainer .chatTips .tips .tip-content[data-v-6e8fd865]{padding:1rem .8rem 2rem;font-size:.85rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#505050;line-height:1.2rem}.outContainer .chatTips .tips .tip-btn[data-v-6e8fd865]{margin:0 auto;width:15.15rem;height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:#177afa;border-radius:.3rem;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fff;line-height:1.25rem}.outContainer .chatTips .tips .tip-btn2[data-v-6e8fd865]{font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;line-height:1.13rem;text-decoration:underline;text-align:center;padding-top:.6rem}.outContainer .giftMask[data-v-6e8fd865]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.outContainer .fullScreenBtn[data-v-6e8fd865]{position:fixed;top:11rem;right:0;width:1.6rem;padding:.5rem 0;z-index:1999;color:#fff;background-color:#000;border:1px solid #000;border-radius:.2rem 0 0 .2rem;font-size:.75rem;text-align:center;opacity:.5}.outContainer .slidedown-enter-active[data-v-6e8fd865],.outContainer .slidedown-leave-active[data-v-6e8fd865]{-webkit-transition:all .2s ease;transition:all .2s ease}.outContainer .slidedown-enter[data-v-6e8fd865],.outContainer .slidedown-leave-to[data-v-6e8fd865]{-webkit-transform:translateY(200px);-ms-transform:translateY(200px);transform:translateY(200px);opacity:0}.outContainer .spreadWrap[data-v-6e8fd865]{-webkit-transition:all .2s ease;transition:all .2s ease;position:absolute;background-color:#fff;bottom:0;right:0;width:100%;height:100%;z-index:2000;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.outContainer .spreadWrap .title[data-v-6e8fd865]{height:2.75rem;width:100%;background-color:#f6f6f6;line-height:2.75rem;text-align:center;position:relative;font-size:.85rem;font-family:PingFangSC;font-weight:600;color:#333}.outContainer .spreadWrap .title .leftContent[data-v-6e8fd865]{position:absolute;left:0;top:0;height:100%;line-height:2.75rem;font-size:.7rem;font-family:PingFangSC;font-weight:400;color:#177afa;padding-left:.8rem;text-indent:.55rem}.outContainer .spreadWrap .title .leftContent[data-v-6e8fd865]:before{content:\"\";width:.35rem;height:.6rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/live/live-notice-arrow.png\");background-repeat:no-repeat;background-size:100%;position:absolute;top:1.06rem;left:.8rem}.outContainer .spreadWrap .title .rightContent[data-v-6e8fd865]{position:absolute;right:0;top:0;height:100%;font-size:.7rem;font-family:PingFangSC;font-weight:400;color:#666;padding-right:.8rem}.outContainer .spreadWrap .noticeContent[data-v-6e8fd865]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.outContainer .spreadWrap .noticeContent .listWrap .list-main[data-v-6e8fd865]{padding:.6rem .8rem 0}.outContainer .spreadWrap .noticeContent .listWrap .list-main .activityDetail[data-v-6e8fd865]{font-size:.8rem;font-family:PingFangSC;font-weight:400;color:#333;line-height:1.13rem;margin-bottom:1rem}.outContainer .spreadWrap .noticeContent .listWrap .list-main .item[data-v-6e8fd865]{margin-bottom:.6rem;background:#f5f5f5;border-radius:.4rem;height:2.7rem;line-height:2.7rem;padding-left:.6rem;font-size:.8rem;font-family:PingFangSC;font-weight:400;color:#333;position:relative}.outContainer .spreadWrap .noticeContent .listWrap .list-main .item[data-v-6e8fd865]:after{content:\"\";width:.7rem;height:1rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/live/live-notice-arrow-right.png\");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;right:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .spreadWrap .noticeContent .listWrap .list-main .item .unread[data-v-6e8fd865]{position:absolute;top:50%;right:1.35rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1.55rem;height:.8rem;line-height:.8rem;background:#ff3f3f;border-radius:.1rem;color:#fff;font-size:.5rem;font-family:PingFangSC;font-weight:400;text-align:center}.outContainer .spreadWrap .noticeContent .noticeWrap[data-v-6e8fd865]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;min-height:100%}.outContainer .spreadWrap .noticeContent .noticeWrap .htmlWrap[data-v-6e8fd865]{padding-bottom:2.5rem}.outContainer .spreadWrap .noticeContent .noticeWrap #iframe[data-v-6e8fd865]{width:100%;height:100%;display:block;vertical-align:bottom}.outContainer .spreadWrap .noticeContent .noticeWrap .purchaseBtn[data-v-6e8fd865]{background-color:#fff;position:fixed;left:0;bottom:0;width:100%;height:2.2rem;text-align:center;padding-bottom:.2rem}.outContainer .spreadWrap .noticeContent .noticeWrap .purchaseBtn div[data-v-6e8fd865]{display:inline-block;width:100%;height:2.2rem;line-height:2.2rem;background:#177afa;text-align:center;font-size:.85rem;font-family:PingFangSC;font-weight:400;color:#fff}.outContainer .spread-enter-active[data-v-6e8fd865],.outContainer .spread-leave-active[data-v-6e8fd865]{-webkit-transition:all .2s ease;transition:all .2s ease}.outContainer .spread-enter[data-v-6e8fd865],.outContainer .spread-leave-to[data-v-6e8fd865]{right:.73rem;bottom:7rem;width:3rem;height:3rem;opacity:0}.outContainer .invite-detail[data-v-6e8fd865]{-webkit-transition:all .2s ease;transition:all .2s ease;position:absolute;background-color:#fff;bottom:0;right:0;width:100%;height:100%;z-index:2001;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.outContainer .invite-detail .title[data-v-6e8fd865]{position:relative;height:2.75rem;line-height:2.75rem;text-align:center;background:#f6f6f6;font-size:.85rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333}.outContainer .invite-detail .title div[data-v-6e8fd865]{position:absolute;top:0;right:0;height:100%;padding:0 .8rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666}.outContainer .invite-detail .invite-content[data-v-6e8fd865]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.outContainer .invite-detail .invite-content .people-num[data-v-6e8fd865]{margin:.6rem .8rem;height:8.25rem;background:#f5f5f5;border-radius:.4rem;text-align:center;position:relative}.outContainer .invite-detail .invite-content .people-num div[data-v-6e8fd865]:first-child{padding-top:.8rem;font-size:1.6rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333;line-height:2.25rem}.outContainer .invite-detail .invite-content .people-num div[data-v-6e8fd865]:nth-child(2){font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.outContainer .invite-detail .invite-content .people-num .share-session[data-v-6e8fd865]{position:absolute;text-align:left;bottom:1rem;left:1rem;width:7.05rem;height:2rem;background:#fff;border-radius:.3rem;border:1px solid #26bd6d;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#26bd6d;line-height:2rem;text-indent:1.88rem}.outContainer .invite-detail .invite-content .people-num .share-session img[data-v-6e8fd865]{position:absolute;width:1rem;height:1rem;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .invite-detail .invite-content .people-num .share-timeline[data-v-6e8fd865]{text-align:left;position:absolute;bottom:1rem;right:1rem;width:7.05rem;height:2rem;background:#fff;border-radius:.3rem;border:1px solid #72ace8;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#72ace8;line-height:2rem;text-indent:1.88rem}.outContainer .invite-detail .invite-content .people-num .share-timeline img[data-v-6e8fd865]{position:absolute;width:1rem;height:1rem;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .invite-detail .invite-content .invite-rule[data-v-6e8fd865]{padding:0 .8rem 1rem;border-bottom:1px solid #ededed;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem}.outContainer .invite-detail .invite-content .list-title[data-v-6e8fd865]{margin:1rem .8rem .2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.outContainer .invite-detail .invite-content .invite-people[data-v-6e8fd865]{margin:0 .8rem}.outContainer .invite-detail .invite-content .invite-people .invite-item[data-v-6e8fd865]{height:2.6rem;line-height:2.6rem;border-bottom:1px solid #ededed;position:relative}.outContainer .invite-detail .invite-content .invite-people .invite-item[data-v-6e8fd865]:last-child{border-bottom:none}.outContainer .invite-detail .invite-content .invite-people .invite-item img[data-v-6e8fd865]{width:1.4rem;height:1.4rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);border-radius:50%;background:#f0f8ff}.outContainer .invite-detail .invite-content .invite-people .invite-item>div[data-v-6e8fd865]{margin-left:2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:9rem}.outContainer .invite-detail .invite-content .invite-people span[data-v-6e8fd865]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;position:absolute;top:0;right:0}.outContainer .invite-detail .invite-content .no-invite[data-v-6e8fd865]{margin:0 .8rem;padding-top:2.5rem;text-align:center}.outContainer .invite-detail .invite-content .no-invite img[data-v-6e8fd865]{width:2.25rem;height:2.03rem}.outContainer .invite-detail .invite-content .no-invite p[data-v-6e8fd865]{margin-top:.73rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.13rem;padding-bottom:4.22rem}.outContainer .shareMAsk[data-v-6e8fd865]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:2002;background:rgba(0,0,0,.5)}.outContainer .shareMAsk .shareTips[data-v-6e8fd865]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outContainer .shareMAsk .shareTips>p[data-v-6e8fd865]:first-of-type{margin-top:.85rem}.outContainer .shareMAsk .shareTips>p[data-v-6e8fd865]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.tip[data-v-6e8fd865]{text-align:center;padding-top:5rem}.tip img[data-v-6e8fd865]{width:2.6rem;height:4rem;padding-bottom:1rem}.tip p[data-v-6e8fd865]{color:#999;font-size:.9rem}.tip p[data-v-6e8fd865]:nth-of-type(2){color:#377ee1;font-size:.7rem;margin-top:.5rem;text-decoration:underline}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2549);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3756209d", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".courseLive img.rocket{width:12.45rem;height:3.75rem;position:fixed;z-index:2;left:-100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.courseLive .likeImg{width:1rem;height:1rem;position:absolute;bottom:-50%;left:50%;z-index:2}.courseLive .giftBanner .bannerItem{will-change:all;width:100%;height:2.2rem;background:url(http://static1.kaxiuyun.com/static/img/giftBanner.png) 0 0 no-repeat;background-size:100%;overflow:hidden;margin-bottom:.5rem;opacity:0;position:relative;top:0;left:-100%}.courseLive .giftBanner .bannerItem.slideIn{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1}.courseLive .giftBanner .bannerItem.slideOut{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0}.courseLive .giftBanner .bannerItem>.avatar{width:1.6rem;height:1.6rem;float:left;margin-top:.3rem;margin-left:.4rem;border-radius:50%}.courseLive .giftBanner .bannerItem .rightContent{margin-left:2.4rem;margin-top:.15rem}.courseLive .giftBanner .bannerItem .rightContent p:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#fff}.courseLive .giftBanner .bannerItem .rightContent p:nth-of-type(2){font-family:PingFangSC-Regular;font-size:.6rem;color:#ffc83e}.courseLive .giftBanner .bannerItem>.giftImg{position:absolute;top:-.03rem;right:0;width:2.5rem;height:2.5rem}.mint-toast{z-index:3000!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _timers = __webpack_require__(222);
var _drawPriceComponent = _interopRequireDefault(__webpack_require__(804));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var messageNum = 0; // 聊天室所有信息计数（包括红包）
var giftBannerNum = 0; // 礼物横幅的计数
var rocketNum = 0; // 大火箭的计数
var likeNum = 0; // 用户点击点赞按钮的计数
var _default = exports.default = {
  data: function data() {
    return {
      contentHeight: 0,
      // 初始时，视频区域以外的高度
      currentNotice: {},
      // 当前公告
      noticeList: [],
      // 公告数组
      noticeType: 'list',
      // list: 公告列表 detail: 公告详情
      isShowNotice: false,
      courseId: this.$route.query.courseId,
      showGiftWrap: false,
      showSendBtn: false,
      showOpenRedpackage: false,
      showInviteDetail: false,
      // 是否展示 邀请详情
      showTips: false,
      // 聊天框内 弹窗提示
      showIOSShareBox: false,
      // IOS微信分享提示
      tipsType: 'invite',
      // 弹窗提示 类型  invite: 邀请弹窗  share: 分享弹窗
      assisTimer: null,
      likeTimer: null,
      logTimer: null,
      giftsList: [],
      messageList: [],
      luckerList: [],
      // 红包中奖人列表
      inviteList: [],
      // 邀请人列表
      currentPackageInfo: '',
      currentPackageIndex: '',
      // 当前红包的索引
      packageCommandValue: '',
      // 输入的红包口令
      errNum: '',
      // 输入的红包口令错误次数
      currentErrTips: '',
      // 当前的红包口令提示
      showPackageDetail: false,
      // 展现红包领取人详情
      sendMessageValue: '',
      autoScroll: true,
      // 是否自动滚动聊天记录
      appkey: '',
      // 融云appid
      courseInfo: '',
      // 课程信息
      RcUserInfo: '',
      // 融云的当前用户信息
      join: false,
      // 是否已经加入当前聊天室
      isFullscreen: false,
      // 是否全屏播放  默认false
      mescroll: null,
      mescrollUp: {
        callback: this.getInvitationList,
        page: {
          num: 1,
          size: 10
        },
        auto: false
      }
    };
  },
  watch: {
    showTips: function showTips(val) {
      var _this = this;
      // 当聊天框内 弹框提示 为false时，重置弹框类型为 invite
      if (!val) {
        (0, _timers.setTimeout)(function () {
          _this.tipsType = 'invite';
        }, 300);
      }
    },
    showInviteDetail: function showInviteDetail(val) {
      var _this2 = this;
      // 打开邀请列表的时候 刷新邀请列表中的信息。
      if (val) {
        this.$nextTick(function () {
          _this2.mescroll.resetUpScroll();
        });
      }
    },
    'courseInfo.status': function courseInfoStatus(val) {
      // 监控直播状态，如果不为0（0代表直播中），则不必记录日志
      if (val !== 0) {
        clearInterval(this.logTimer);
      }
    }
  },
  created: function created() {
    if (window.location.href.indexOf('https://wx') != -1) {
      this.appkey = 'e5t4ouvpeadqa'; // 生产
    } else {
      this.appkey = '0vnjpoad0ckgz'; // 测试
    }

    // 添加meta标签 IOS 允许全屏观看
    // let _meta = document.createElement('meta');
    // _meta.id = 'iosFullscreen';
    // _meta.name = 'apple-mobile-web-app-capable'
    // _meta.content = 'yes';
    // document.getElementsByTagName('head')[0].appendChild(_meta);

    document.addEventListener('WeixinJSBridgeReady', function () {
      document.getElementById('video').play();
    }, false);
  },
  mounted: function mounted() {
    var _this3 = this;
    this.addSensorsCollect();
    this.getRoomInfo();
    this.getGiftsList();
    this.assisTimer = (0, _timers.setTimeout)(this.randomLikeImg, 1000);
    // this.likeTimer = setInterval(this.sendLikeNum, 30000);
    this.logTimer = setInterval(function () {
      // 发送视频日志
      _this3._Util.collectPageView2({
        postUrl: _this3._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '犇犇课堂',
        operate_page: '犇犇课堂',
        optionType: '直播',
        param1: _this3.$route.query.courseId
      }, _this3);
    }, 60000);
  },
  beforeDestroy: function beforeDestroy() {
    clearTimeout(this.assisTimer);
    // clearInterval(this.likeTimer);
    clearInterval(this.logTimer);
    this.quitRoom();
    // 移除meta标签
    // document.getElementById('iosFullscreen').remove();
  },
  methods: {
    /**
     * 打开页面记录直播埋点
     */
    addSensorsCollect: function addSensorsCollect() {
      this._Util.sensorsCollect('enter_livingroom', {
        $url: window.location.href,
        $title: '犇犇课堂'
      });
    },
    /**
     * 底部邀请按钮点击逻辑
     */
    showInvitePopup: function showInvitePopup(e) {
      this._Util.sensorsHeatMap(e.target, {
        buttonName: '直播输入框邀请'
      });
      this.showInviteDetail = true;
    },
    /**
     * 分享操作
     * @param {defaultEvent} e 点击行为默认事件
     * @param {string} type session：好友 timeline：朋友圈
     */
    share: function share(e, type) {
      var that = this;
      var _buttonName = type === 'session' ? '直播邀请详情分享到群' : type === 'timeline' ? '直播邀请详情分享朋友圈' : '直播邀请公告分享';
      that._Util.sensorsHeatMap(e.target, {
        buttonName: _buttonName
      });
      if (that._Util.isApp()) {
        var _shareItem = {
          title: "".concat(that.courseInfo.userName, "\u9080\u8BF7\u4F60\u89C2\u770B\u76F4\u64AD"),
          desc: "".concat(that.courseInfo.courseName, "\u6B63\u5728\u76F4\u64AD\u4E2D"),
          link: "".concat(location.origin, "/v2/shopping/courseLive?courseId=").concat(that.$route.query.courseId, "&shareId=").concat(that.courseInfo.userId),
          imgLink: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
          imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg' // 两个方法接收的imgUrl字段名不一样
        };
        if (type === 'session' || type === 'timeline') {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: _objectSpread({
                type: type
              }, _shareItem)
            }
          });
          return;
        }
        that._Util.acSendEvent({
          name: 'showSharePage',
          extra: _shareItem
        });
      } else {
        if (that._Util.isIOS) {
          this.showTips = false;
          this.showIOSShareBox = true;
        } else {
          that.showTips = true;
          that.tipsType = 'share';
        }
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.courseInfo.userName, "\u9080\u8BF7\u4F60\u89C2\u770B\u76F4\u64AD"),
        desc: "".concat(that.courseInfo.courseName, "\u6B63\u5728\u76F4\u64AD\u4E2D"),
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg',
        link: "".concat(location.origin, "/v2/shopping/courseLive?courseId=").concat(that.$route.query.courseId, "&shareId=").concat(that.courseInfo.userId)
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * mescroll 初始化方法
     * @param {object} mescroll 实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取当前所有的邀请人
     */
    getInvitationList: function getInvitationList(page, mescroll) {
      var _this4 = this;
      this._Util.post(this._Api.POST_COURSE_LIVE_INVITATION_LIST, {
        id: this.$route.query.courseId,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        _this4.courseInfo.broadcastNoticeVo.invitationCount = data.invitationCount;
        var arr = data.userList;
        if (page.num === 1) {
          _this4.inviteList = [];
        }
        _this4.inviteList = _this4.inviteList.concat(arr);
        _this4.$nextTick(function () {
          _this4.mescroll.endSuccess(arr.length);
        });
      }, function () {
        _this4.mescroll.endErr();
      }, this, true);
    },
    /**
     * 转换换行符
     * @param {string} string 需要转换的文本
     */
    parseHtml: function parseHtml(string) {
      return string.replace(/\n/g, '<br/>');
    },
    /**
     * 打开公告栏
     */
    openNotice: function openNotice() {
      if (this.noticeList.length === 1) {
        this.isShowNotice = true;
        this.clickNotice(this.noticeList[0]);
      } else {
        this.isShowNotice = true;
      }
    },
    /**
     * 公告弹窗逻辑
     * @param {object} noticeInfo 公告信息
     */
    noticePopup: function noticePopup(noticeInfo) {
      var tempNotice = _objectSpread({
        isRead: false
      }, noticeInfo);
      if (tempNotice.force && !this.isShowNotice && !this.isFullscreen) {
        // 当前公告为强制打开 并且 当前没有打开的公告 并且没有全屏播放
        this.$refs.input.blur();
        this.isShowNotice = true;
        this.clickNotice(tempNotice);
      }
      this.noticeList.unshift(tempNotice);
    },
    /** 返回公告弹窗 */goBackNotice: function goBackNotice() {
      /** 抽奖弹窗正在抽奖的时候 禁止关闭弹窗 */
      if (this.currentNotice.popupType === 2) {
        if (this.$refs.drawPrice.isDrawing) {
          (0, _mintUi.Toast)({
            message: '正在抽奖中...',
            position: 'middle',
            duration: 800
          });
          return;
        }
      }
      this.noticeType = 'list';
      this.currentNotice = {};
    },
    /** 关闭公告弹窗 */closeNotice: function closeNotice() {
      /** 抽奖弹窗正在抽奖的时候 禁止关闭弹窗 */
      if (this.currentNotice.popupType === 2) {
        if (this.$refs.drawPrice.isDrawing) {
          (0, _mintUi.Toast)({
            message: '正在抽奖中...',
            position: 'middle',
            duration: 800
          });
          return;
        }
      }
      this.isShowNotice = false;
      this.noticeType = 'list';
      this.currentNotice = {};
    },
    /**
     * 点击指定公告
     * @param {object} noticeInfo 公告信息
     */
    clickNotice: function clickNotice(noticeInfo) {
      noticeInfo.isRead = true;
      this.currentNotice = noticeInfo;
      this.noticeType = 'detail';
    },
    /**
     * 支付逻辑
     * @param {number} id 热门活动的弹窗id
     */
    purchase: function purchase() {
      var _this5 = this;
      this._Util.post(this._Api.POST_COURSE_LIVE_PURCHASE, {
        id: this.currentNotice.id
      }, function (data) {
        _this5._Util.wxPay(data.jsApiParameters, function () {
          (0, _mintUi.MessageBox)({
            title: '',
            message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u652F\u4ED8\u6210\u529F</p>",
            confirmButtonText: '继续看直播',
            closeOnClickModal: false
          }).then(function (action) {
            if (action === 'confirm') {
              _this5.closeNotice();
            }
          });
        });
      }, function () {}, this);
    },
    /**
     * 点击用户头像 @ 对方
     * @param {string} name 用户昵称
     */
    atUser: function atUser(name) {
      this.sendMessageValue = "@".concat(name, " ");
    },
    /** 点击进入直播回放页面 */goLivePlayback: function goLivePlayback() {
      var _this6 = this;
      this._Util.post(this._Api.POST_COURSE_GET_LIVE_PLAYBACK, {
        id: this.$route.query.courseId
      }, function (data) {
        if (data.status === 0) {
          _this6.$router.push({
            name: 'playbackPlayer',
            query: {
              src: encodeURIComponent(data.targetUrl)
            }
          });
        } else if (data.status === 4) {
          location.href = "".concat(location.origin, "/v2/shopping/shareTicket?course_id=").concat(_this6.$route.query.courseId);
        }
      }, function () {}, this);
    },
    /** 获取聊天室基本信息 */getRoomInfo: function getRoomInfo() {
      var _this7 = this;
      this._Util.post(this._Api.POST_COURSE_GET_LIVE_INFO, {
        id: this.$route.query.courseId,
        shareUserId: this.$route.query.shareId
      }, function (data) {
        _this7.courseInfo = data;
        _this7.shareConfig();
        if (data.status === 0) {
          // 正常状态
          if (data.broadcastNoticeVo && data.broadcastNoticeVo.isEject === 1) {
            _this7.showTips = true;
          }
          var _noticeList = data.broadcastPresentersVos.map(function (v) {
            return _objectSpread({
              isRead: false
            }, v);
          });
          _this7.noticeList = _noticeList;
          _this7.RcUserInfo = new RongIMLib.UserInfo(data.viewerId, data.userName, data.userHeadingUrl);
          _this7.initRongCloud();
          _this7.$nextTick(function () {
            _this7.contentHeight = _this7.$refs.contentWrap.clientHeight;
            _this7.$refs.video.play();
          });
        } else if (data.status === 2 || data.status === 4) {
          var _tip = '';
          switch (data.status) {
            case 2:
              _tip = '无权参加直播';
              break;
            case 4:
              _tip = '未购买课程';
              break;
          }
          (0, _mintUi.Toast)(_tip);
          _this7.$router.replace({
            name: 'onlineCourseList'
          });
        }
      }, function () {}, this);
    },
    /** 获取打赏礼物列表 */getGiftsList: function getGiftsList() {
      var _this8 = this;
      this._Util.post(this._Api.POST_COURSE_GET_GIFT_LIST, {}, function (data) {
        _this8.giftsList = data;
      }, function () {}, this, true);
    },
    /**
     * 礼物打赏
     * @param {string} giftName 礼物名称
     * @param {number} giftCode 礼物支付code
     * @param {string} giftPrice 礼物价格
     */
    giftReward: (0, _throttleDebounce.debounce)(350, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(giftName, giftCode, giftPrice) {
        var _this9 = this;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (giftPrice == 0) {
                this.addMessage(4, this.courseInfo.userHeadingUrl, this.courseInfo.userName, "\u9001\u51FA ".concat(giftName));
              } else {
                this._Util.post(this._Api.POST_COURSE_GIVE_REWARD, {
                  code: giftCode,
                  courseId: this.$route.query.courseId
                }, function (data) {
                  _this9._Util.wxPay(data.jsApiParameters, function () {
                    _this9.addMessage(4, _this9.courseInfo.userHeadingUrl, _this9.courseInfo.userName, "\u9001\u51FA ".concat(giftName));
                    (0, _mintUi.Toast)({
                      message: '支付成功',
                      position: 'middle',
                      duration: 1500
                    });
                  });
                }, function () {}, this);
              }
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2, _x3) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 初始化融云 */initRongCloud: function initRongCloud() {
      var that = this;
      RongIMLib.RongIMClient.init(that.appkey);
      // 连接状态监听器
      RongIMClient.setConnectionStatusListener({
        onChanged: function onChanged(status) {
          switch (status) {
            case RongIMLib.ConnectionStatus.CONNECTED:
              console.log('链接成功');
              break;
            case RongIMLib.ConnectionStatus.CONNECTING:
              console.log('正在链接');
              break;
            case RongIMLib.ConnectionStatus.DOMAIN_INCORRECT:
              console.log('域名不正确');
              break;
            case RongIMLib.ConnectionStatus.KICKED_OFFLINE_BY_OTHER_CLIENT:
              console.log('其他设备登录');
              break;
            case RongIMLib.ConnectionStatus.DISCONNECTED:
              console.log('断开连接');
              break;
            case RongIMLib.ConnectionStatus.NETWORK_UNAVAILABLE:
              console.log('网络不可用');
              break;
          }
        }
      });
      // 消息监听器
      RongIMClient.setOnReceiveMessageListener({
        // 接收到的消息
        onReceived: function onReceived(message) {
          console.log(message);
          var extra = message.content.extra;
          var uname = message.content.user.name;
          var avatar = message.content.user.portraitUri;
          var msg = message.content.content;
          var userId = message.senderUserId;
          switch (message.messageType) {
            case RongIMClient.MessageType.TextMessage:
              if (extra) {
                if (extra == 'P' || extra == 'C') {
                  console.log('主播正在切换直播，请等待....');
                  this.addMessage(5, null, null, '主播正在切换直播，请等待....');
                  return;
                } else if (extra == 'START') {
                  console.log('主播已经开始直播，请退出后重新进入');
                  this.addMessage(5, null, null, '主播已经开始直播，请退出后重新进入');
                  return;
                } else if (extra == 'END') {
                  console.log('本次课程已结束');
                  this.addMessage(5, null, null, '本次课程已结束');
                  return;
                } else if (extra == 'DASHANG') {
                  var giftName = msg.split(' ')[1];
                  that.addGiftBanner(giftName, uname, avatar);
                  if (giftName !== '老铁666') {
                    var _msg = "\u611F\u8C22 <span style=\"color:#EE4545\" >".concat(uname, "</span> \u9001\u51FA <span style=\"color:#EE4545\" >").concat(giftName, "</span>");
                    that.addMessage(2, that.courseInfo.anchorHeadingUrl, that.courseInfo.anchorName, _msg, userId, 'DASHANG');
                  }
                  return;
                } else if (extra == 'NOTICE') {
                  that.noticePopup(JSON.parse(msg));
                  return;
                } else if (extra == 'TIPS') {
                  var noticeMsg = JSON.parse(msg);
                  that.courseInfo.content = '';
                  (0, _timers.setTimeout)(function () {
                    that.courseInfo.content = noticeMsg.content;
                  }, 200);
                  that.courseInfo.popupName = noticeMsg.popupName;
                  return;
                }
              }
              that.addMessage(2, avatar, uname, msg, userId);
              break;
            case RongIMClient.MessageType.VoiceMessage:
              // message.content.content => 格式为 AMR 的音频 base64
              break;
            case RongIMClient.MessageType.ImageMessage:
              that.addMessage(3, avatar, uname, message.content);
              break;
            case RongIMClient.MessageType.LocationMessage:
              // message.content.latiude => 纬度
              // message.content.longitude => 经度
              // message.content.content => 位置图片 base64
              break;
            case RongIMClient.MessageType.RichContentMessage:
              // message.content.content => 文本消息内容
              // message.content.imageUri => 图片 base64
              // message.content.url => 原图 URL
              break;
            case RongIMClient.MessageType.InformationNotificationMessage:
              break;
            case RongIMClient.MessageType.ContactNotificationMessage:
              break;
            case RongIMClient.MessageType.ProfileNotificationMessage:
              break;
            case RongIMClient.MessageType.CommandNotificationMessage:
              break;
            case RongIMClient.MessageType.CommandMessage:
              break;
            case RongIMClient.MessageType.UnknownMessage:
              break;
            default:
          }
        }
      });
      // 连接融云
      RongIMClient.connect(that.courseInfo.token, {
        onSuccess: function onSuccess(userId) {
          console.log('Connect successfully.' + userId);
          that.joinRoom(that.$route.query.courseId);
        },
        onTokenIncorrect: function onTokenIncorrect() {
          console.log('token无效');
        },
        onError: function onError(errorCode) {
          var info = '';
          switch (errorCode) {
            case RongIMLib.ErrorCode.TIMEOUT:
              info = '超时';
              break;
            case RongIMLib.ConnectionState.UNACCEPTABLE_PAROTOCOL_VERSION:
              info = '不可接受的协议版本';
              break;
            case RongIMLib.ConnectionState.IDENTIFIER_REJECTED:
              info = 'appkey不正确';
              break;
            case RongIMLib.ConnectionState.SERVER_UNAVAILABLE:
              info = '服务器不可用';
              break;
          }
          console.log(info);
          console.log(errorCode);
        }
      });
    },
    /**
     * 加入聊天室
     * @param {string} courseId 当前被课程id
     */
    joinRoom: function joinRoom(courseId) {
      RongIMClient.getInstance().joinChatRoom(courseId, -1, {
        onSuccess: function onSuccess() {
          console.log('加入聊天室成功');
          this.join = true;
        },
        onError: function onError() {
          console.log('加入聊天室失败');
          this.join = false;
        }
      });
    },
    /**
     * 退出聊天室
     */
    quitRoom: function quitRoom() {
      if (this.courseInfo.status === 0) {
        RongIMClient.getInstance().quitChatRoom(this.courseId, {
          onSuccess: function onSuccess() {
            console.log('退出聊天室成功');
          },
          onError: function onError() {
            console.log('退出聊天室失败');
          }
        });
      }
    },
    /** 发送消息 */sendMessage: function sendMessage() {
      if (this.sendMessageValue.trim() === '') {
        return (0, _mintUi.Toast)({
          message: '请输入有效信息',
          position: 'middle',
          duration: 1000
        });
      }
      this.sendMsgByApi(this.sendMessageValue);
      this.addMessage(1, this.courseInfo.userHeadingUrl, this.courseInfo.userName, this.sendMessageValue);
      this.sendMessageValue = '';
    },
    /**
     * 发送留言消息
     * @param {string} message 留言信息
     */
    sendMsgByApi: function sendMsgByApi(message) {
      this._Util.post(this._Api.POST_COURSE_SEND_MESSAGE, {
        courseId: this.$route.query.courseId,
        content: message
      }, function (data) {}, function () {}, this, true);
    },
    /**
     * 限制不同类型消息的数量
     * 当满足数量时，删除同类型消息的第一条
     * @param {string} msgType 消息类型
     * @param {number} limit 限制的数量
     */
    limitMessage: function limitMessage(msgType, limit) {
      var _msgList = this.messageList.filter(function (v) {
        return v.type === msgType;
      });
      if (_msgList.length > limit) {
        this.messageList.splice(this.messageList.findIndex(function (v) {
          return v.index === _msgList[0].index;
        }), 1);
      }
    },
    /**
     * 插入一条新的聊天记录
     * @param {number} messageType 插入的消息类型 1：我的消息  2：其他用户的消息  3：红包  4：打赏消息  5：直播相关提示信息
     * @param {string} uavatar 发布消息人的头像
     * @param {string} uname 发布消息人的姓名
     * @param {object} umessage 发布的消息  （当messageType为3时，则是红包详情信息）
     * @param {string} uId 发布消息人id (仅当messageType为2时存在)
     * @param {Boolean} isDASHANG 该条消息是否是打赏完成后自动推送的消息
     */
    addMessage: function addMessage(messageType, uavatar, uname, umessage, uId, isDASHANG) {
      if (messageType === 5) {
        this.messageList.push({
          index: messageNum++,
          message: umessage,
          type: messageType
        });
        this.limitMessage(messageType, 5);
      } else if (messageType === 4) {
        var that = this;
        var msg = new RongIMLib.TextMessage({
          content: umessage,
          user: that.RcUserInfo,
          extra: 'DASHANG'
        });
        that.showGiftWrap = false;
        that.addGiftBanner(umessage.split(' ')[1], uname, uavatar);
        RongIMClient.getInstance().sendMessage(RongIMLib.ConversationType.CHATROOM, this.$route.query.courseId, msg, {
          onSuccess: function onSuccess(message) {
            console.log('Send successfully:' + JSON.stringify(message.content));
            if (message.content.extra == 'DASHANG') {
              var _uname = message.content.user.name;
              // eslint-disable-next-line no-unused-vars
              var avatar = message.content.user.portraitUri;
              var _msg2 = message.content.content;
              var giftName = _msg2.split(' ')[1];
              var userId = message.senderUserId;

              // that.addGiftBanner(giftName, uname, avatar );

              if (giftName !== '老铁666') {
                var _msg = "\u611F\u8C22 <span style=\"color:#EE4545\" >".concat(_uname, "</span> \u9001\u51FA <span style=\"color:#EE4545\" >").concat(giftName, "</span>");
                that.addMessage(2, that.courseInfo.anchorHeadingUrl, that.courseInfo.anchorName, _msg, userId, 'DASHANG');
              }
            }
          },
          onError: function onError(errorCode, message) {
            var info = '';
            switch (errorCode) {
              case RongIMLib.ErrorCode.TIMEOUT:
                info = '超时';
                break;
              case RongIMLib.ErrorCode.UNKNOWN_ERROR:
                info = '未知错误';
                break;
              case RongIMLib.ErrorCode.REJECTED_BY_BLACKLIST:
                info = '在黑名单中，无法向对方发送消息';
                break;
              case RongIMLib.ErrorCode.NOT_IN_DISCUSSION:
                info = '不在讨论组中';
                break;
              case RongIMLib.ErrorCode.NOT_IN_GROUP:
                info = '不在群组中';
                break;
              case RongIMLib.ErrorCode.NOT_IN_CHATROOM:
                info = '不在聊天室中';
                break;
              default:
                info = '您已被禁言';
                break;
            }
            console.log('发送失败:' + info);
          }
        });
      } else if (messageType === 3) {
        this.messageList.push({
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage.content,
          bg: umessage.imageUri,
          type: messageType,
          extra: _objectSpread({
            amountFinal: '',
            status: '',
            isOpen: false
          }, JSON.parse(umessage.extra))
        });
        this.limitMessage(messageType, 5);
      } else {
        this.messageList.push({
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage,
          type: messageType,
          uId: uId,
          isDASHANG: isDASHANG === 'DASHANG'
        });
        this.limitMessage(messageType, 40);
      }
      this.scrollToBottom();
    },
    /** 大火箭飞动画 */bigRocket: function bigRocket() {
      var _num = rocketNum++;
      var _height = (0, _jquery.default)('.courseLive').height() - (0, _jquery.default)('.inputWrap').height() - (0, _jquery.default)('.videoWrap').height() - 70;
      var _randTop = Math.floor(Math.random() * _height) + 230;
      var _rocket = '<img class="rocket" style="top: ' + _randTop + 'px" id=' + 'rocket' + _num + ' src="http://static1.kaxiuyun.com/static/img/bigRocket.png" alt="">';
      (0, _jquery.default)('.courseLive').append(_rocket);
      (0, _jquery.default)('#rocket' + _num).animate({
        left: '50%'
      }, 300);
      (0, _timers.setTimeout)(function () {
        (0, _jquery.default)('#rocket' + _num).animate({
          left: '300%'
        }, 300, 'linear', function () {
          (0, _jquery.default)(this).remove();
        });
      }, 1500, _num);
    },
    /**
     * 增加一条礼物横幅
     * @param {string} giftName 礼物名称
     * @param {string} userName 打赏人姓名
     * @param {string} userAvatar 打赏人头像
     */
    addGiftBanner: function addGiftBanner(giftName, userName, userAvatar) {
      var transform = {
        '老铁666': {
          duration: 1000,
          url: '666'
        },
        '太棒了': {
          duration: 2000,
          url: 'good'
        },
        '比心': {
          duration: 2000,
          url: 'star'
        },
        '么么哒': {
          duration: 2000,
          url: 'mua'
        },
        '来一杯': {
          duration: 2000,
          url: 'beer'
        },
        '老司机': {
          duration: 4000,
          url: 'driver'
        },
        '跑车': {
          duration: 4000,
          url: 'car'
        },
        '火箭': {
          duration: 6000,
          url: 'rocket'
        }
      };
      var _num = giftBannerNum++;
      var _limit = giftName == '老铁666' || giftName == '太棒了' || giftName == '比心' ? 'limit_10' : 'limit_20';
      var _banner = "<div class=\"bannerItem ".concat(_limit, "\" id=\"").concat(_num, "\">\n          <img class=\"avatar\" src=\"").concat(userAvatar, "\" alt=\"\">\n          <div class=\"rightContent\">\n            <p>").concat(userName, "</p>\n            <p>\u9001\u51FA ").concat(giftName, "</p>\n          </div>\n          <img class=\"giftImg\" src=\"http://static1.kaxiuyun.com/static/img/").concat(transform[giftName].url, ".png\" alt=\"\">\n        </div>");
      if ((0, _jquery.default)('.' + _limit).length >= _limit.split('_')[1]) return;
      if (transform[giftName].duration < 4000) {
        (0, _jquery.default)('.giftBanner').append(_banner).children().last().animate({
          left: '0px',
          opacity: '1'
        }, 200);
      } else {
        (0, _jquery.default)('.giftBanner').prepend(_banner).children().first().animate({
          left: '0px',
          opacity: '1'
        }, 200);
      }
      if (giftName == '火箭') {
        this.bigRocket();
      }
      (0, _timers.setTimeout)(function () {
        (0, _jquery.default)('#' + _num).animate({
          left: '-100%',
          opacity: '0',
          height: '0'
        }, 300, 'linear', function () {
          (0, _jquery.default)(this).remove();
        });
      }, transform[giftName].duration || 1500, _num);
    },
    /** 开始自动生成点赞图片 */randomLikeImg: function randomLikeImg() {
      var timeCounter = (1 - Math.random() * 1) * 1800;
      this.assistImg();
      (0, _jquery.default)('.likeImgWrap img').each(function () {
        var bottom = (0, _jquery.default)(this).css('bottom');
        if (bottom == '400px') {
          (0, _jquery.default)(this).remove();
        }
      });
      this.assisTimer = (0, _timers.setTimeout)(this.randomLikeImg, timeCounter);
    },
    /**
     * 随机生成单个点赞图片
     * @param {string} source 来源为 用户点击
     */
    assistImg: function assistImg(source) {
      if (source === 'click') {
        likeNum++;
      }
      var num = Math.floor(Math.random() * 8 + 1);
      var rand = 20 - Math.floor(Math.random() * 100);
      (0, _jquery.default)('.likeImgWrap').append("<img class=\"likeImg\" src=\"https://static1.kaxiuyun.com/static/img/".concat(num, ".png\">"));
      (0, _jquery.default)('.likeImgWrap img').animate({
        bottom: '400px',
        opacity: '0',
        left: rand + 'px'
      }, (Math.random() * 3 + 3) * 1000);
    },
    /**
     * 输入框 聚焦与否 相关逻辑变化
     * @param {boolean} isShowSendBtn 是否展示发送按钮
     */
    focusOrNot: function focusOrNot(isShowSendBtn) {
      this.showSendBtn = isShowSendBtn;
      this.scrollToBottom();
    },
    /** 聊天记录自动滚动到底部 */scrollToBottom: function scrollToBottom() {
      if (this.autoScroll) {
        this.$nextTick(function () {
          (0, _jquery.default)('#messageList').animate({
            scrollTop: (0, _jquery.default)('#messageList')[0].scrollHeight
          }, 300);
        });
      }
    },
    /** 监听用户滚动聊天记录的行为 */
    listenScroll: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
      var messageDOM, _height;
      return _regenerator.default.wrap(function (_context2) {
        while (1) switch (_context2.prev = _context2.next) {
          case 0:
            messageDOM = (0, _jquery.default)('#messageList')[0];
            _height = messageDOM.scrollHeight - messageDOM.clientHeight - messageDOM.scrollTop;
            if (_height < 100) {
              this.autoScroll = true;
              console.log('开始自动滚动');
            } else {
              this.autoScroll = false;
              console.log('停止自动滚动');
            }
          case 1:
          case "end":
            return _context2.stop();
        }
      }, _callee2, this);
    }))),
    /**
     * 打开红包输入口令窗口
     * @param {number} index 当前红包的索引
     * @param {object} packageInfo 当前红包信息
     */
    openRedBox: function openRedBox(index, packageInfo) {
      this.currentPackageIndex = index;
      this.errNum = '';
      this.currentErrTips = '';
      this.packageCommandValue = '';
      this.showOpenRedpackage = true;
      this.showPackageDetail = false;
      this.currentPackageInfo = packageInfo;
    },
    /** 拆红包 按钮逻辑 */
    openRedPackage: (0, _throttleDebounce.throttle)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
      var _this0 = this;
      var _packCommandInfo;
      return _regenerator.default.wrap(function (_context3) {
        while (1) switch (_context3.prev = _context3.next) {
          case 0:
            _packCommandInfo = this.messageList.find(function (v) {
              return v.index === _this0.currentPackageIndex;
            }).extra;
            if (!(this.packageCommandValue !== _packCommandInfo.hbCommand)) {
              _context3.next = 1;
              break;
            }
            if (this.errNum < 3) {
              this.errNum === '' ? this.errNum = 1 : this.errNum++;
              this.currentErrTips = _packCommandInfo['hbTip' + this.errNum] ? _packCommandInfo['hbTip' + this.errNum] : this.currentErrTips;
            }
            return _context3.abrupt("return");
          case 1:
            this._Util.post(this._Api.POST_COURSE_OPEN_REDPACKAGE, {
              id: _packCommandInfo.id
            }, function (data) {
              _packCommandInfo.isOpen = true;
              _packCommandInfo.amountFinal = data.amountFinal;
              _packCommandInfo.status = data.status;
              _this0.currentPackageInfo = _packCommandInfo;
            }, function () {}, this);
          case 2:
          case "end":
            return _context3.stop();
        }
      }, _callee3, this);
    }))),
    /** 获取红包领取人详情列表 */getLuckerList: function getLuckerList() {
      var _this1 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        presenters_id: this.currentPackageInfo.id,
        code: 'benben_red_detail',
        pageSize: 200,
        pageNum: 1
      }, function (data) {
        _this1.showPackageDetail = true;
        _this1.luckerList = data.dataList;
      }, function () {}, this);
    },
    /** 全屏按钮 */fullScreen: function fullScreen() {
      var video = this.$refs.video;
      video.play();
      video.webkitEnterFullscreen && video.webkitEnterFullscreen(); // For Webkit
      video.mozRequestFullScreen && video.mozRequestFullScreen(); // For Firefox
    },
    /** 全屏变化的相关逻辑 */fullscreenchange: function fullscreenchange(e) {
      var el = document.webkitFullscreenElement;
      this.isFullscreen = !!el;
      if (this._Util.isApp() && el) {
        api.setScreenOrientation({
          orientation: 'landscape_left'
        });
      }
    },
    /** 定时发送点赞数量 */sendLikeNum: function sendLikeNum() {
      this._Util.post(this._Api.POST_COURSE_LIKE_COURSE, {
        courseId: this.$route.query.courseId,
        likeNum: likeNum
      }, function (data) {
        likeNum = 0;
      }, function () {}, this, true);
    }
  },
  computed: {
    hasUnreadNotice: function hasUnreadNotice() {
      return this.noticeList.some(function (v) {
        return v.isRead === false;
      });
    }
  },
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _noticeBar.default.name, _noticeBar.default), _popup.default.name, _popup.default), "MescrollVue", _mescroll.default), "drawPrice", _drawPriceComponent.default)
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(254);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_23acc5f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(836);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2037)
  __webpack_require__(2039)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-23acc5f4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_23acc5f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_23acc5f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_drawPriceComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2038);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("dcfea37e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-23acc5f4]{font-size:0;overflow-x:hidden}.outContainer .maskLayer[data-v-23acc5f4]{position:fixed;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.outContainer .maskLayer>.strategyContainer[data-v-23acc5f4]{background-color:#fff;position:absolute;width:80%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:4px}.outContainer .maskLayer>.strategyContainer>.title[data-v-23acc5f4]{width:100%;text-align:center;padding-top:16px;padding-bottom:16px}.outContainer .maskLayer>.strategyContainer>.title>p[data-v-23acc5f4]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .maskLayer>.strategyContainer>.content[data-v-23acc5f4]{padding-bottom:34px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px;text-align:left;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;line-height:18px}.outContainer .maskLayer>.strategyContainer>.bottom[data-v-23acc5f4]{overflow:hidden}.outContainer .maskLayer>.strategyContainer>.bottom>div[data-v-23acc5f4]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#377ee1;width:100%;float:left;position:relative}.outContainer .shareMAsk[data-v-23acc5f4]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.outContainer .shareMAsk .shareTips[data-v-23acc5f4]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outContainer .shareMAsk .shareTips>p[data-v-23acc5f4]:first-of-type{margin-top:.85rem}.outContainer .shareMAsk .shareTips>p[data-v-23acc5f4]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.outContainer .turnplateWrap[data-v-23acc5f4]{height:27.3rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_bg.jpg\");background-repeat:no-repeat;background-size:100%;position:relative}.outContainer .turnplateWrap .title[data-v-23acc5f4]{width:100%;display:block}.outContainer .turnplateWrap .turnplate[data-v-23acc5f4]{position:absolute;width:100%;height:22.25rem;top:4.3rem;left:0;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_turnplate_out.png\");background-repeat:no-repeat;background-size:100%}.outContainer .turnplateWrap .turnplate .plate[data-v-23acc5f4]{background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_turnplate_in.png\");background-repeat:no-repeat;background-size:100%;width:15.53rem;height:15.53rem;position:absolute;top:2.8rem;left:50%;-webkit-transform:translateX(-50%) rotate(0deg);-ms-transform:translateX(-50%) rotate(0deg);transform:translateX(-50%) rotate(0deg);-webkit-transition:all 8s;transition:all 8s}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap[data-v-23acc5f4]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:0;height:0}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap>div[data-v-23acc5f4]{position:absolute;text-align:center;width:3.5rem;font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:700;color:#d01448;line-height:1rem;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:first-of-type{-webkit-transform:translateX(-50%) translateY(-50%) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:nth-of-type(2){-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(45deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(45deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:nth-of-type(3){-webkit-transform:translateX(-50%) translateY(-50%) rotate(90deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(90deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(90deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:nth-of-type(4){-webkit-transform:translateX(-50%) translateY(-50%) rotate(135deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(135deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(135deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:nth-of-type(5){-webkit-transform:translateX(-50%) translateY(-50%) rotate(180deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(180deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(180deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:nth-of-type(6){-webkit-transform:translateX(-50%) translateY(-50%) rotate(225deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(225deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(225deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:nth-of-type(7){-webkit-transform:translateX(-50%) translateY(-50%) rotate(270deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(270deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(270deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .plate>div.priceWrap div[data-v-23acc5f4]:nth-of-type(8){-webkit-transform:translateX(-50%) translateY(-50%) rotate(315deg) translateY(-5.5rem);-ms-transform:translateX(-50%) translateY(-50%) rotate(315deg) translateY(-5.5rem);transform:translateX(-50%) translateY(-50%) rotate(315deg) translateY(-5.5rem)}.outContainer .turnplateWrap .turnplate .roll[data-v-23acc5f4]{-webkit-animation:roll-data-v-23acc5f4 4s linear;animation:roll-data-v-23acc5f4 4s linear}@-webkit-keyframes roll-data-v-23acc5f4{0%{-webkit-transform:translateX(-50%) rotate(0deg);transform:translateX(-50%) rotate(0deg)}to{-webkit-transform:translateX(-50%) rotate(1turn);transform:translateX(-50%) rotate(1turn)}}@keyframes roll-data-v-23acc5f4{0%{-webkit-transform:translateX(-50%) rotate(0deg);transform:translateX(-50%) rotate(0deg)}to{-webkit-transform:translateX(-50%) rotate(1turn);transform:translateX(-50%) rotate(1turn)}}.outContainer .turnplateWrap .turnplate .btnWrap[data-v-23acc5f4]{position:absolute;top:7.03rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:5.68rem;height:6.58rem}.outContainer .turnplateWrap .turnplate .btnWrap>img[data-v-23acc5f4]{width:100%;height:100%}.outContainer .turnplateWrap .turnplate .btnWrap .start[data-v-23acc5f4]{position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/start2.png\");background-repeat:no-repeat;background-size:100%}.outContainer .turnplateWrap .turnplate .btnWrap .nostart[data-v-23acc5f4]{position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(\"http://static2.kaxiuyun.com/kxy/activity/draw-price/start_grey2.png\");background-repeat:no-repeat;background-size:100%}.outContainer .turnplateWrap .turnplate .lotteryNum[data-v-23acc5f4]{position:absolute;left:50%;bottom:.7rem;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700;color:#fff;line-height:1}.outContainer .turnplateWrap .turnplate .lotteryNum>span[data-v-23acc5f4]{color:#ffe567;font-size:.75rem;font-family:PingFangSC-Semibold;font-weight:700}.outContainer .main[data-v-23acc5f4]{margin-top:-1px;background-color:#223de2;padding-top:.8rem}.outContainer .main .tips[data-v-23acc5f4]{margin:auto;width:10.5rem;height:1.83rem;line-height:1.83rem;background:rgba(0,0,0,.4);border-radius:.91rem;position:relative}.outContainer .main .tips[data-v-23acc5f4]:before{content:\"\";width:1px;height:.6rem;background:#fff;opacity:.5;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer .main .tips span[data-v-23acc5f4]:first-of-type{left:1.2rem}.outContainer .main .tips span[data-v-23acc5f4]:first-of-type,.outContainer .main .tips span[data-v-23acc5f4]:nth-of-type(2){color:#fff;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main .tips span[data-v-23acc5f4]:nth-of-type(2){right:1.2rem}.outContainer .main .luckListBtn[data-v-23acc5f4]{text-align:center;margin-top:1.4rem;padding-bottom:3.7rem}.outContainer .main .luckListBtn img[data-v-23acc5f4]{height:2.1rem;width:9.5rem}.outContainer .main .luckList[data-v-23acc5f4]{padding-top:1.4rem}.outContainer .main .luckList .title[data-v-23acc5f4]{text-align:center}.outContainer .main .luckList .title>div[data-v-23acc5f4]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#fff;line-height:1.25rem;position:relative;margin:0 auto;display:inline-block}.outContainer .main .luckList .title>div[data-v-23acc5f4]:before{background-image:url(" + escape(__webpack_require__(1370)) + ");left:-1.33rem}.outContainer .main .luckList .title>div[data-v-23acc5f4]:after,.outContainer .main .luckList .title>div[data-v-23acc5f4]:before{content:\"\";width:.88rem;height:.3rem;background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main .luckList .title>div[data-v-23acc5f4]:after{background-image:url(" + escape(__webpack_require__(1371)) + ");right:-1.33rem}.outContainer .main .luckList .content[data-v-23acc5f4]{margin-top:.6rem}.outContainer .main .luckList .content>img[data-v-23acc5f4]{width:17.55rem;display:block;margin:0 auto}.outContainer .main .luckList .content .scrollWrap[data-v-23acc5f4]{margin:0 auto;position:relative;top:-1.8rem;width:16.2rem;height:14.4rem;background-color:#fff;overflow:hidden}.outContainer .main .luckList .content .scrollWrap .noLucker[data-v-23acc5f4]{text-align:center;padding-top:3.2rem}.outContainer .main .luckList .content .scrollWrap .noLucker>img[data-v-23acc5f4]{width:3.1rem;height:2.25rem}.outContainer .main .luckList .content .scrollWrap .noLucker>p[data-v-23acc5f4]{font-family:PingFangSC-Regular;font-weight:400;color:#333;margin-top:.43rem}.outContainer .main .luckList .content .scrollWrap .scrollLine[data-v-23acc5f4]{-webkit-transition:all 1s;transition:all 1s;background-color:#fff;overflow:hidden}.outContainer .main .luckList .content .scrollWrap .scrollLine>span[data-v-23acc5f4]{float:left;line-height:1.8rem;height:1.8rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;text-align:center;border-top:1px solid #eee;border-bottom:1px solid #eee}.outContainer .main .luckList .content .scrollWrap .scrollLine>span[data-v-23acc5f4]:first-of-type{width:30%;border-right:1px solid #eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .main .luckList .content .scrollWrap .scrollLine>span[data-v-23acc5f4]:nth-of-type(2){width:70%}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2040);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5d08b206", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".flip-list-move{-webkit-transition:-webkit-transform 1s;transition:-webkit-transform 1s;transition:transform 1s;transition:transform 1s,-webkit-transform 1s}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    lotteryno: {
      type: String
    }
  },
  data: function data() {
    return {
      canDraw: false,
      lotteryInfo: '',
      isShowInfo: false,
      showShareBox: false,
      isDrawing: false,
      turnPlate: null,
      // 大转盘DOM对象
      minTurns: 8,
      // 最少旋转圈数
      priceIndex: 1,
      // 奖品索引
      timer: null,
      allLuckerList: [],
      showLuckerList: [],
      luckerListInited: false,
      showList: false // 是否展示中奖人名单
    };
  },
  created: function created() {
    this.getPriceAndUserInfo();
    // this.getLuckerList();
  },
  mounted: function mounted() {
    this.turnPlate = this.$refs.plate;
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
  },
  methods: {
    /**
     * 中奖名单滚动
     */
    changeLuckerList: function changeLuckerList() {
      this.showLuckerList.splice(0, 0, this.allLuckerList.shift());
      this.allLuckerList.push(this.showLuckerList.pop());
    },
    /**
     * 抽奖按钮置灰时的提示
     */
    noTimes: function noTimes() {
      if (this.isDrawing) return;
      if (this.lotteryInfo.status !== 1) {
        // 判断抽奖活动状态
        (0, _mintUi.Toast)({
          message: this.lotteryInfo.status ? '活动已结束' : '活动未开始',
          position: 'middle',
          duration: 1500
        });
      } else if (this.lotteryInfo.canDraws === 0) {
        (0, _mintUi.Toast)({
          message: '抽奖次数已用完',
          position: 'middle',
          duration: 1500
        });
      }
    },
    /**
     * 开始抽奖逻辑
     */
    startDraw: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this = this;
      var priceIndex, priceRes, deg, _t;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (!(this.lotteryInfo.canDraws <= 0)) {
              _context.next = 1;
              break;
            }
            (0, _mintUi.Toast)({
              message: '抽奖次数已用完',
              position: 'middle',
              duration: 1500
            });
            return _context.abrupt("return");
          case 1:
            if (!this.isDrawing) {
              _context.next = 2;
              break;
            }
            return _context.abrupt("return");
          case 2:
            this.isDrawing = true;
            this.lotteryInfo.canDraws--;
            _context.prev = 3;
            _context.next = 4;
            return this.getLotteryResult();
          case 4:
            priceRes = _context.sent;
            priceIndex = this.lotteryInfo.prizes.findIndex(function (val) {
              return val.id === priceRes.id;
            });
            _context.next = 6;
            break;
          case 5:
            _context.prev = 5;
            _t = _context["catch"](3);
            priceIndex = 7;
          case 6:
            console.log(priceIndex);
            deg = this.minTurns * 360 - 20 + Math.floor(Math.random() * 40) - priceIndex * 45;
            this.turnPlate.style.transform = 'translateX(-50%) rotateZ(' + deg + 'deg)';
            setTimeout(function () {
              _this.isDrawing = false;
              _this.minTurns += 8;
              if (priceRes.hasWinning) {
                (0, _mintUi.MessageBox)({
                  title: "\u606D\u559C\u60A8,\u83B7\u5F97",
                  message: "<p style=\"font-size:1rem;color:#223DE2;text-align:center;padding-top:0.5rem;padding-bottom:0.5rem;\" >".concat(priceRes.name, "</p>"),
                  confirmButtonText: '继续抽奖',
                  closeOnClickModal: true
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this.startDraw();
                  }
                });
              } else {
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u5DEE\u4E00\u70B9\u5C31\u4E2D\u5956\u4E86,\u8BF7\u518D\u63A5\u518D\u5389\u54E6!</p>",
                  confirmButtonText: '我知道了',
                  closeOnClickModal: true
                });
              }
            }, 8000);
          case 7:
          case "end":
            return _context.stop();
        }
      }, _callee, this, [[3, 5]]);
    }))),
    /**
     * 获取抽奖结果
     */
    getLotteryResult: function getLotteryResult() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_ACTIVITY_TURNPLATE_USER_DRAW_PRICE_LIVING, {
          lotteryNo: _this2.lotteryno || _this2.$route.query.lotteryno
        }, function (data) {
          resolve(data);
        }, function (err) {
          reject(err);
        }, _this2);
      });
    },
    /**
     * 展示活动说明
     */
    showTips: function showTips() {
      if (this.isDrawing) {
        (0, _mintUi.Toast)({
          message: '正在抽奖中...',
          position: 'middle',
          duration: 800
        });
        return;
      }
      (0, _mintUi.MessageBox)({
        title: '活动规则',
        message: this.lotteryInfo.remark,
        confirmButtonText: '我知道了',
        closeOnClickModal: true
      });
      // this.isShowInfo = true;
    },
    /**
     * 进入我的奖品页
     */
    goPriceList: function goPriceList() {
      if (this.isDrawing) {
        (0, _mintUi.Toast)({
          message: '正在抽奖中...',
          position: 'middle',
          duration: 800
        });
        return;
      }
      this.$router.push({
        name: 'priceList',
        query: {
          title: this.lotteryInfo.title,
          lotteryno: this.lotteryno || this.$route.query.lotteryno
        }
      });
    },
    /**
     * 获取奖品及抽奖活动基本信息
     */
    getPriceAndUserInfo: function getPriceAndUserInfo() {
      var _this3 = this;
      this._Util.post(this._Api.POST_ACTIVITY_TURNPLATE_PRICE_LIST_LIVING, {
        lotteryNo: this.lotteryno || this.$route.query.lotteryno
      }, function (data) {
        _this3.lotteryInfo = data;
        // document.title = data.title;
        // this.share();

        if (data.status !== 1) {
          // 判断抽奖活动是否开始
          (0, _mintUi.Toast)({
            message: data.status ? '活动已结束' : '活动未开始',
            position: 'middle',
            duration: 1500
          });
          _this3.canDraw = false;
          return;
        }
        if (data.pageStatus === 0) {
          // sql限定用户之外，无权限抽奖
          _this3.$router.replace({
            name: 'fms'
          });
        } else if (data.pageStatus === 1) {
          // sql限定用户之内，有权限抽奖
          _this3.canDraw = true;
        } else {
          // sql未限定 根据抽奖活动后台设定判断逻辑
          // if(data.targetUsers===0&&data.userStatus===0) {  // 判断是否限制用户类型
          //   MessageBox({
          //     title: '认证提示',
          //     message: '您当前还未认证， 认证享受更多功能',
          //     confirmButtonText: '去认证',
          //     showCancelButton: false,
          //     closeOnClickModal: false
          //   }).then(action => {
          //     if (action === 'confirm') {
          //       this.$router.replace({name:'personalCertification',query:{from: 'drawPrice'}});
          //     }
          //   })
          //   return
          // }
          if (data.targetUsers === 0 && data.userStatus === 0) {
            // 限定用户为 认证用户；但是当前用户为非认证用户
            _this3.$router.replace({
              name: 'fms'
            });
          } else if (data.targetUsers === 1 && data.userStatus !== 0) {
            // 限定用户为 非认证用户； 但是当前用户为认证用户
            _this3.$router.replace({
              name: 'fms'
            });
          } else {
            _this3.canDraw = true;
          }
        }
      }, function () {}, this);
    },
    /**
     * 获取中奖名单
     */
    getLuckerList: function getLuckerList() {
      var _this4 = this;
      this._Util.post(this._Api.POST_ACTIVITY_TURNPLATE_PRICE_RECORD_LIST_LIVING, {
        lotteryNo: this.lotteryno || this.$route.query.lotteryno
      }, function (data) {
        _this4.showList = true;
        _this4.luckerListInited = true;
        if (data.length <= 9) {
          _this4.showLuckerList = data;
        } else {
          _this4.showLuckerList = data.slice(0, 9);
          _this4.allLuckerList = data;
          _this4.allLuckerList.splice(0, 9);
          _this4.timer = setInterval(function () {
            _this4.changeLuckerList();
          }, 1000);
        }
      }, function () {}, this);
    },
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.lotteryInfo.title,
                  desc: '我在卡修宝典抽中大奖啦！快来参加吧',
                  link: "".concat(location.origin, "/v2/singlepage/drawprice?lotteryno=").concat(that.lotteryno || that.$route.query.lotteryno),
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.lotteryInfo.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: "".concat(location.origin, "/v2/singlepage/drawprice?lotteryno=").concat(that.lotteryno || that.$route.query.lotteryno),
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.lotteryInfo.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: "".concat(location.origin, "/v2/singlepage/drawprice?lotteryno=").concat(that.lotteryno || that.$route.query.lotteryno),
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.lotteryInfo.title,
              desc: '我在卡修宝典抽中大奖啦！快来参加吧',
              link: "".concat(location.origin, "/v2/singlepage/drawprice?lotteryno=").concat(that.lotteryno || that.$route.query.lotteryno),
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_vm._m(0)]):_vm._e(),_vm._v(" "),_c('transition',{attrs:{"name":"fade"}},[(_vm.isShowInfo)?_c('div',{staticClass:"maskLayer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("活动规则")])]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.lotteryInfo.remark)}}),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){_vm.isShowInfo=false;}}},[_vm._v("我知道了")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"turnplateWrap"},[_c('img',{staticClass:"title",attrs:{"src":"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_title2.png","alt":""}}),_vm._v(" "),_c('div',{staticClass:"turnplate"},[_c('div',{ref:"plate",class:['plate']},[_c('div',{staticClass:"priceWrap"},_vm._l((_vm.lotteryInfo.prizes),function(v,i){return _c('div',{key:i,domProps:{"innerHTML":_vm._s(v.name)}})}),0)]),_vm._v(" "),_c('div',{staticClass:"btnWrap"},[((!_vm.isDrawing)&&_vm.canDraw&&(_vm.lotteryInfo.canDraws>0))?_c('div',{staticClass:"start",on:{"click":_vm.startDraw}}):_c('div',{staticClass:"nostart",on:{"click":_vm.noTimes}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.lotteryInfo.status===1),expression:"lotteryInfo.status===1"}],staticClass:"lotteryNum"},[_vm._v("剩余 "),_c('span',[_vm._v(_vm._s(_vm.lotteryInfo.canDraws)+"次")]),_vm._v(" 抽奖")])])]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"tips"},[_c('span',{on:{"click":_vm.showTips}},[_vm._v("抽奖说明")]),_vm._v(" "),_c('span',{on:{"click":_vm.goPriceList}},[_vm._v("我的奖品")])]),_vm._v(" "),(!_vm.showList)?_c('div',{staticClass:"luckListBtn"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/live/drawprice/luck-list.png","alt":"中奖名单"},on:{"click":function($event){$event.preventDefault();return _vm.getLuckerList.apply(null, arguments)}}})]):_c('div',{staticClass:"luckList"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"content"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/activity/draw-price/price_list.png","alt":""}}),_vm._v(" "),_c('div',{staticClass:"scrollWrap"},[(_vm.luckerListInited&&_vm.showLuckerList.length===0)?_c('div',{staticClass:"noLucker"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/activity/draw-price/draw_price_nolucker.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("暂时没人获得奖品哦")])]):_vm._e(),_vm._v(" "),_c('transition-group',{style:({transform: _vm.allLuckerList.length>0?'translateY(-1.8rem)':'translateY(0)'}),attrs:{"tag":"div","name":"flip-list"}},_vm._l((_vm.showLuckerList),function(v){return _c('div',{key:v.winningRecordId,staticClass:"scrollLine"},[_c('span',[_vm._v(_vm._s(v.userName))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.name))])])}),0)],1)])])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('div',[_vm._v("中奖名单")])])}]
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.courseInfo.status===0)?_c('div',{staticClass:"outContainer courseLive needsclick"},[_c('div',{staticClass:"videoWrap"},[_c('div',{staticClass:"compereInfo"},[_c('img',{attrs:{"src":_vm.courseInfo.anchorHeadingUrl,"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.courseInfo.anchorName))]),_vm._v(" "),_c('p',[_vm._v("正在直播")])]),_vm._v(" "),_c('video',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showOpenRedpackage),expression:"!showOpenRedpackage"}],ref:"video",attrs:{"id":"video","controls":"","controlsList":"nodownload","autoplay":"","webkit-playsinline":"","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","src":_vm.courseInfo.hlsLiveUrl},on:{"webkitfullscreenchange":_vm.fullscreenchange}})]),_vm._v(" "),_c('div',{ref:"contentWrap",staticClass:"contentWrap"},[_c('div',{staticClass:"chatWrap"},[(_vm.courseInfo.content)?_c('div',{staticClass:"noticeScrollWrap",on:{"click":_vm.openNotice}},[_c('van-notice-bar',{staticStyle:{"height":"2.05rem"},attrs:{"background":"#FCEEE9","color":"#E8541E","text":_vm.courseInfo.content}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"giftBanner"}),_vm._v(" "),_c('div',{staticClass:"messageList",style:({paddingTop:_vm.courseInfo.content ? '2.05rem' : 0}),attrs:{"id":"messageList"},on:{"scroll":_vm.listenScroll}},_vm._l((_vm.messageList),function(v,i){return _c('div',{key:i},[(v.type===1)?_c('div',{staticClass:"self"},[_c('img',{attrs:{"src":v.avatar,"alt":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage"},[_vm._v(_vm._s(v.message))])])]):_vm._e(),_vm._v(" "),(v.type===2)?_c('div',{staticClass:"opposite"},[_c('img',{attrs:{"src":v.avatar,"alt":""},on:{"click":function($event){return _vm.atUser(v.name)}}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),(v.isDASHANG)?_c('div',{staticClass:"umessage",style:({ color: v.uId === '-30000' ? '#FF3F3F' : '' }),domProps:{"innerHTML":_vm._s(v.message)}},[_vm._v(_vm._s(v.message))]):_c('div',{staticClass:"umessage",style:({ color: v.uId === '-30000' ? '#FF3F3F' : '' })},[_vm._v(_vm._s(v.message))])])]):_vm._e(),_vm._v(" "),(v.type===3)?_c('div',{staticClass:"redPackage",on:{"click":function($event){return _vm.openRedBox(v.index, v.extra)}}},[_c('img',{attrs:{"src":v.avatar,"alt":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"package"},[_c('img',{attrs:{"src":v.bg,"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.message))])])])]):_vm._e(),_vm._v(" "),(v.type===5)?_c('div',{staticClass:"system"},[_vm._v("\n            "+_vm._s(v.message)+"\n          ")]):_vm._e()])}),0)]),_vm._v(" "),(_vm.noticeList.length>0)?_c('div',{staticClass:"notice",on:{"click":_vm.openNotice}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/live/notice.png","alt":"活动通知"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.courseInfo.popupName))]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.hasUnreadNotice),expression:"hasUnreadNotice"}],staticClass:"dot"})]):_vm._e(),_vm._v(" "),_c('transition',{attrs:{"name":"spread"}},[(_vm.isShowNotice)?_c('div',{staticClass:"spreadWrap",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"title"},[(_vm.noticeType==='detail' && _vm.noticeList.length>1)?_c('div',{staticClass:"leftContent",on:{"click":_vm.goBackNotice}},[_vm._v("返回")]):_vm._e(),_vm._v("\n          "+_vm._s(_vm.currentNotice.title || '热门活动')+"\n          "),_c('div',{staticClass:"rightContent",on:{"click":_vm.closeNotice}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"noticeContent"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.noticeType==='list'),expression:"noticeType==='list'"}],staticClass:"listWrap"},[_c('div',{staticClass:"list-main"},[(_vm.courseInfo.content)?_c('div',{staticClass:"activityDetail"},[_vm._v(_vm._s(_vm.courseInfo.content))]):_vm._e(),_vm._v(" "),_vm._l((_vm.noticeList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.clickNotice(v)}}},[_vm._v("\n                "+_vm._s(v.title)+"\n                "),(!v.isRead)?_c('div',{staticClass:"unread"},[_vm._v("NEW")]):_vm._e()])})],2)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.noticeType==='detail'),expression:"noticeType==='detail'"}],staticClass:"noticeWrap"},[(_vm.currentNotice.content&&_vm.currentNotice.popupType===1)?_c('div',{staticClass:"htmlWrap",style:({ paddingBottom: _vm.currentNotice.popupType===1?'2.2rem':'' }),domProps:{"innerHTML":_vm._s(_vm.currentNotice.content)}}):(_vm.currentNotice.popupType===2)?_c('div',[_c('draw-price',{ref:"drawPrice",attrs:{"lotteryno":_vm.currentNotice.lotteryNo}})],1):(_vm.currentNotice.popupType===3)?_c('iframe',{style:({ height: ("calc(" + _vm.contentHeight + "px - 2.75rem)")}),attrs:{"id":"iframe","scrolling":"true","marginwidth":"0","marginheight":"0","align":"center","src":_vm.currentNotice.url,"frameborder":"0"}}):_vm._e(),_vm._v(" "),(_vm.currentNotice.popupType===1)?_c('div',{staticClass:"purchaseBtn"},[_c('div',{on:{"click":_vm.purchase}},[_vm._v("支付")])]):_vm._e()])])]):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":"slidedown"}},[(_vm.showInviteDetail)?_c('div',{staticClass:"invite-detail"},[_c('div',{staticClass:"title"},[_vm._v("\n          "+_vm._s(_vm.courseInfo.broadcastNoticeVo.title)+"\n          "),_c('div',{on:{"click":function($event){_vm.showInviteDetail=false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"invite-content"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"people-num"},[_c('div',[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.invitationCount))]),_vm._v(" "),_c('div',[_vm._v("你当前邀请人数")]),_vm._v(" "),_c('div',{staticClass:"share-session",on:{"click":function($event){return _vm.share($event, 'session')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/session.png","alt":"微信群"}}),_vm._v("\n                分享到微信群\n              ")]),_vm._v(" "),_c('div',{staticClass:"share-timeline",on:{"click":function($event){return _vm.share($event, 'timeline')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/timeline.png","alt":"朋友圈"}}),_vm._v("\n                分享到朋友圈\n              ")])]),_vm._v(" "),_c('div',{staticClass:"invite-rule",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.courseInfo.broadcastNoticeVo.detailedExplain))}}),_vm._v(" "),_c('div',{staticClass:"list-title"},[_vm._v("已邀请好友：")]),_vm._v(" "),(_vm.inviteList.length > 0)?_c('div',{staticClass:"invite-people"},_vm._l((_vm.inviteList),function(v,i){return _c('div',{key:i,staticClass:"invite-item"},[_c('img',{attrs:{"src":v.headimgurl,"alt":"头像"}}),_vm._v(" "),_c('div',{domProps:{"innerHTML":_vm._s(v.userName)}}),_vm._v(" "),_c('span',[_vm._v("已进入直播间")])])}),0):_c('div',{staticClass:"no-invite"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/no-invite.png","alt":"无邀请人"}}),_vm._v(" "),_c('p',[_vm._v("你暂时还未邀请好友")])])])],1)]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"inputWrap"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.sendMessageValue),expression:"sendMessageValue",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],ref:"input",attrs:{"maxlength":"50","type":"text","placeholder":"来说点什么......"},domProps:{"value":(_vm.sendMessageValue)},on:{"focus":function($event){return _vm.focusOrNot(true);},"blur":[function($event){return _vm.focusOrNot(false);},function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.sendMessageValue=$event.target.value.trim()}}}),_vm._v(" "),_c('div',{staticClass:"btn-wrap"},[_c('div',{staticClass:"likeImgWrap"}),_vm._v(" "),(_vm.showSendBtn||_vm.sendMessageValue)?_c('div',{staticClass:"sendBtn",on:{"click":_vm.sendMessage}},[_vm._v("发送")]):_c('div',[(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('div',{staticClass:"iconBtn",on:{"click":_vm.showInvitePopup}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"iconBtn",on:{"click":function($event){_vm.showGiftWrap=true;}}}),_vm._v(" "),_c('div',{staticClass:"iconBtn",on:{"click":function($event){return _vm.assistImg('click')}}})])])])],1),_vm._v(" "),_c('div',{staticClass:"fullScreenBtn",on:{"click":_vm.fullScreen}},[_vm._v("\n    全"),_c('br'),_vm._v("屏\n  ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showGiftWrap),expression:"showGiftWrap"}],staticClass:"giftMask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showGiftWrap=false;}}}),_vm._v(" "),_c('transition',{attrs:{"name":"slidedown"}},[(_vm.showGiftWrap)?_c('div',{staticClass:"giftWrap",on:{"click":function($event){$event.stopPropagation();}}},_vm._l((_vm.giftsList),function(v,i){return _c('div',{key:i,staticClass:"giftItem",on:{"click":function($event){return _vm.giftReward(v.name, v.code, v.price)}}},[_c('img',{attrs:{"src":v.img,"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.price===0?'免费':("价值:" + (v.price) + "元")))])])}),0):_vm._e()]),_vm._v(" "),_c('van-popup',{staticClass:"redpackageWrap",model:{value:(_vm.showOpenRedpackage),callback:function ($$v) {_vm.showOpenRedpackage=$$v},expression:"showOpenRedpackage"}},[(!_vm.currentPackageInfo.isOpen)?_c('div',{staticClass:"noOpen"},[_c('p',[_vm._v("输入口令，领取红包")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.packageCommandValue),expression:"packageCommandValue",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":"请输入红包口令"},domProps:{"value":(_vm.packageCommandValue)},on:{"input":function($event){if($event.target.composing){ return; }_vm.packageCommandValue=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"openBtn",on:{"click":_vm.openRedPackage}},[_vm._v("拆红包")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showOpenRedpackage=false;}}},[_vm._v("+")]),_vm._v(" "),(_vm.currentErrTips)?_c('div',{staticClass:"commandTips"},[_vm._v("\n        口令输入错误，请重新输入，提示："+_vm._s(_vm.currentErrTips)+"\n      ")]):_vm._e()]):_c('div',{staticClass:"opened"},[_c('span',{staticClass:"close",on:{"click":function($event){_vm.showOpenRedpackage=false;}}},[_vm._v("+")]),_vm._v(" "),(_vm.currentPackageInfo.status===1)?_c('div',{staticClass:"result"},[_c('p',[_vm._v("恭喜你，抢到")]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.currentPackageInfo.amountFinal)+"元")]),_vm._v(" "),_c('p',[_vm._v("红包已存入：我的→勋章中心，提现及时到账")])]):(_vm.currentPackageInfo.status===0)?_c('div',{staticClass:"fail"},[_vm._v("\n        师傅，您来晚了，红包已经领取完毕\n      ")]):_vm._e(),_vm._v(" "),(!_vm.showPackageDetail)?_c('div',{staticClass:"detailBtn",on:{"click":_vm.getLuckerList}},[_vm._v("查看领取详情")]):_c('div',{staticClass:"detailWrap"},_vm._l((_vm.luckerList),function(v,i){return _c('div',{key:i},[_c('span',[_vm._v(_vm._s(v.uname))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.amount))])])}),0)])]),_vm._v(" "),_c('van-popup',{staticClass:"chatTips",attrs:{"position":"top"},model:{value:(_vm.showTips),callback:function ($$v) {_vm.showTips=$$v},expression:"showTips"}},[(_vm.courseInfo.broadcastNoticeVo)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tipsType === 'invite'),expression:"tipsType === 'invite'"}],staticClass:"tips"},[(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('span',{staticClass:"tip-close",on:{"click":function($event){_vm.showTips=false}}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"tip-title"},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.title))]),_vm._v(" "),_c('div',{staticClass:"tip-content",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.courseInfo.broadcastNoticeVo.explain))}}),_vm._v(" "),(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('div',[_c('div',{staticClass:"tip-btn",on:{"click":function($event){return _vm.share($event)}}},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.buttonCopy))])]):_c('div',[_c('div',{staticClass:"tip-btn",on:{"click":function($event){_vm.showTips = false}}},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.buttonCopy))])])]):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tipsType === 'share'),expression:"tipsType === 'share'"}],staticClass:"tips"},[_c('span',{staticClass:"tip-close",on:{"click":function($event){_vm.showTips=false}}}),_vm._v(" "),_c('div',{staticClass:"tip-title"},[_vm._v("点击右上角去分享")]),_vm._v(" "),_c('div',{staticClass:"tip-img"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/live-share.png","alt":"分享提示"},on:{"click":function($event){$event.preventDefault();}}})])])]),_vm._v(" "),(_vm.showIOSShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showIOSShareBox = false;}}},[_vm._m(0)]):_vm._e()],1):(_vm.courseInfo.status===1)?_c('div',{staticClass:"tip"},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/kxy/broadcast/nostart.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("直播未开始")])]):(_vm.courseInfo.status===2)?_c('div',{staticClass:"tip"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/broadcast/nopower.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("无权参与直播")])]):(_vm.courseInfo.status===3)?_c('div',{staticClass:"tip"},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/kxy/broadcast/end.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("直播已结束")])]):(_vm.courseInfo.status===5)?_c('div',{staticClass:"tip"},[_c('img',{attrs:{"src":"http://static1.kaxiuyun.com/kxy/broadcast/end.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("直播已结束")]),_vm._v(" "),_c('p',{on:{"click":_vm.goLivePlayback}},[_vm._v("查看回放")])]):_vm._e()}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(434);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56f6c89a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1039);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2550)
  __webpack_require__(2552)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-56f6c89a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56f6c89a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56f6c89a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseLiveNew_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2551);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8661660c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-live-new[data-v-56f6c89a]{overflow:hidden;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative}.course-live-new .videoWrap[data-v-56f6c89a]{height:10.5rem;background-color:rgba(0,0,0,.7);position:relative;overflow:hidden}.course-live-new .videoWrap .video-mask[data-v-56f6c89a]{position:absolute;width:100%;height:100%;background:#021334;z-index:100;left:0;top:0}.course-live-new .videoWrap .video-mask .mask-btn[data-v-56f6c89a],.course-live-new .videoWrap .video-mask[data-v-56f6c89a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.course-live-new .videoWrap .video-mask .mask-btn[data-v-56f6c89a]{width:6.8rem;height:2.3rem;background:#177afa;border-radius:1.2rem}.course-live-new .videoWrap .video-mask .mask-btn img[data-v-56f6c89a]{width:.5rem;height:.7rem;margin-right:.2rem}.course-live-new .videoWrap .video-mask .mask-btn span[data-v-56f6c89a]{color:#fff;font:16px/1 PingFangSC-Regular}.course-live-new .videoWrap video[data-v-56f6c89a]{width:100%;height:100%}.course-live-new .tab-box[data-v-56f6c89a]{height:2.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;z-index:0}.course-live-new .tab-box[data-v-56f6c89a]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.course-live-new .tab-box li[data-v-56f6c89a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#999;font:16px/1 PingFangSC-Regular;position:relative}.course-live-new .tab-box li>img[data-v-56f6c89a]{width:.8rem;height:.8rem;margin-right:.3rem}.course-live-new .tab-box li.active[data-v-56f6c89a]{color:#333;font:700 16px/1 PingFangSC-Semibold}.course-live-new .tab-box li.active[data-v-56f6c89a]:after{content:\"\";position:absolute;width:.8rem;height:3px;border-radius:2px;background:#177afa;left:50%;bottom:1px;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.course-live-new .contentWrap[data-v-56f6c89a]{overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.course-live-new .contentWrap .chatWrap[data-v-56f6c89a]{position:relative;top:0;left:0;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f4f5f6;overflow:hidden}.course-live-new .contentWrap .chatWrap .noticeScrollWrap[data-v-56f6c89a]{height:2.05rem;width:100%;position:absolute;top:0;left:0;background-color:#fceee9;z-index:1}.course-live-new .contentWrap .chatWrap .giftBanner[data-v-56f6c89a]{position:absolute;top:.5rem;left:0;width:50%;-webkit-transition:all .4s ease;transition:all .4s ease;z-index:1}.course-live-new .contentWrap .chatWrap .messageList[data-v-56f6c89a]{position:absolute;top:0;left:0;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-bottom:1rem}.course-live-new .contentWrap .chatWrap .messageList .self[data-v-56f6c89a]{text-align:right;padding:.5rem .5rem 0 0}.course-live-new .contentWrap .chatWrap .messageList .self img[data-v-56f6c89a]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:right;background-color:#f0f8ff}.course-live-new .contentWrap .chatWrap .messageList .self>div[data-v-56f6c89a]{margin-right:.5rem;display:inline-block}.course-live-new .contentWrap .chatWrap .messageList .self>div .uname[data-v-56f6c89a]{color:#666;font:13px/.925rem PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-live-new .contentWrap .chatWrap .messageList .self>div .umessage[data-v-56f6c89a]{margin-top:.2rem;position:relative;display:inline-block;text-align:left;max-width:12rem;word-wrap:break-word;white-space:pre-wrap;padding:.4rem .6rem;background-color:#377ee1;border-radius:.25rem 0 .25rem .25rem;color:#fff;font:16px/1.05rem PingFangSC-Regular}.course-live-new .contentWrap .chatWrap .messageList .opposite[data-v-56f6c89a]{text-align:left;padding:.8rem 0 0 .6rem}.course-live-new .contentWrap .chatWrap .messageList .opposite .ds-tips[data-v-56f6c89a]{text-align:center;color:#999;font:14px/1rem PingFangSC-Regular;padding:.3rem 0 .8rem;display:block;margin:0}.course-live-new .contentWrap .chatWrap .messageList .opposite img[data-v-56f6c89a]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.course-live-new .contentWrap .chatWrap .messageList .opposite>div[data-v-56f6c89a]{margin-left:.5rem;display:inline-block}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .uname[data-v-56f6c89a]{color:#666;font:13px/.925rem PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage[data-v-56f6c89a]{position:relative;display:inline-block;text-align:left;max-width:12rem;word-wrap:break-word;white-space:pre-wrap;padding:.4rem .6rem;background-color:#fff;border-radius:0 .25rem .25rem .25rem;color:#333;font:16px/1.05rem PingFangSC-Regular;margin-top:.2rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card[data-v-56f6c89a]{max-width:100%;width:15.75rem;padding:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card img[data-v-56f6c89a]{width:5rem;height:4.675rem;border-radius:.3rem;margin-right:.6rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box[data-v-56f6c89a]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.475rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box.no-img[data-v-56f6c89a]{min-height:auto}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box.no-img .btn-box[data-v-56f6c89a]{position:static;margin-top:.8rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box p[data-v-56f6c89a]{color:#333;font:700 16px/1rem PingFangSC-Medium;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box[data-v-56f6c89a]{position:absolute;right:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box.flex-end[data-v-56f6c89a]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .price[data-v-56f6c89a]{color:#ff3f3f;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .price span[data-v-56f6c89a]{margin-left:2px;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .type-btn[data-v-56f6c89a]{width:3.4rem;height:1.425rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#ff3f3f;border-radius:1.25rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .type-btn span[data-v-56f6c89a]{color:#fff;font:700 12px/1 PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .type-btn.disable[data-v-56f6c89a]{background:#ccc}.course-live-new .contentWrap .chatWrap .messageList .redPackage[data-v-56f6c89a]{text-align:left;padding:.5rem 0 0 .5rem}.course-live-new .contentWrap .chatWrap .messageList .redPackage img[data-v-56f6c89a]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div[data-v-56f6c89a]{margin-left:.5rem;display:inline-block}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .uname[data-v-56f6c89a]{color:#666;font:13px/.925rem PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .package[data-v-56f6c89a]{text-align:left;width:12.75rem;padding:.675rem .625rem;background-color:#f39b41;border-radius:.2rem;overflow:hidden;margin-top:.2rem}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .package img[data-v-56f6c89a]{background-color:#f39b41;margin-top:.2rem;width:1.75rem;height:2.25rem;float:left}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .package span[data-v-56f6c89a]{float:left;color:#fff;font:16px/1.25rem PingFangSC-Regular;max-width:75%;margin-left:.5rem}.course-live-new .contentWrap .chatWrap .messageList .system[data-v-56f6c89a]{text-align:center;font-size:.6rem;color:#666;padding:1rem 0}.course-live-new .contentWrap .chatWrap .no-wel[data-v-56f6c89a]{padding-top:2rem;text-align:center}.course-live-new .contentWrap .chatWrap .no-wel img[data-v-56f6c89a]{width:2.6rem;height:2.775rem}.course-live-new .contentWrap .chatWrap .no-wel p[data-v-56f6c89a]{margin-top:.8rem;color:#666;font:14px/1 PingFangSC-Regular}.course-live-new .contentWrap .notice[data-v-56f6c89a]{width:3.3rem;height:3.8rem;position:absolute;z-index:3;right:.73rem;bottom:7rem;text-align:center;padding-top:.45rem;border-radius:.2rem;background-color:rgba(0,0,0,.3)}.course-live-new .contentWrap .notice img[data-v-56f6c89a]{width:2.2rem;height:1.75rem}.course-live-new .contentWrap .notice p[data-v-56f6c89a]{color:#fff;font:700 12px/1 PingFangSC-Semibold;margin-top:.35rem}.course-live-new .contentWrap .notice .dot[data-v-56f6c89a]{width:.6rem;height:.6rem;background:#ff3f3f;border:.05rem solid #fff;position:absolute;top:0;right:0;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);border-radius:50%}.course-live-new .contentWrap .inputWrap[data-v-56f6c89a]{height:2.65rem;background-color:#fff;position:relative;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-live-new .contentWrap .inputWrap .new-msg-tip[data-v-56f6c89a]{position:absolute;bottom:3.05rem;left:50%;width:4.8rem;height:1.2rem;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:center;border-radius:.6rem;background:#fff;box-shadow:0 4px 12px 0 hsla(0,0%,68%,.3);color:#ff712a;font:12px/1.2rem PingFangSC-Regular}.course-live-new .contentWrap .inputWrap>input[data-v-56f6c89a]{margin-top:.43rem;margin-left:.6rem;margin-right:.6rem;height:1.8rem;text-indent:.6rem;border-radius:.25rem;color:#333;font:14px/1.8rem PingFangSC-Regular;background-color:#f5f5f5;z-index:4;-webkit-transition:all .3s ease;transition:all .3s ease;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.course-live-new .contentWrap .inputWrap .btn-wrap[data-v-56f6c89a]{height:100%;display:inline-block}.course-live-new .contentWrap .inputWrap .btn-wrap .likeImgWrap[data-v-56f6c89a]{position:absolute;bottom:1rem;right:1.9rem;width:0}.course-live-new .contentWrap .inputWrap .btn-wrap .likeImgWrap .likeImg[data-v-56f6c89a]{width:1rem;height:1rem;position:absolute;bottom:-50%;left:50%}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-56f6c89a]{width:1.6rem;height:1.6rem;display:inline-block;margin-top:.53rem;margin-right:.8rem;background-size:100%;background-repeat:no-repeat;position:relative}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-56f6c89a]:last-child{background-image:url(\"http://static2.kaxiuyun.com/kxy/course/live/icon-good.png\");z-index:3}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-56f6c89a]:nth-last-child(2){background-image:url(\"http://static2.kaxiuyun.com/kxy/course/live/icon-gift.png\")}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-56f6c89a]:nth-last-child(3){background-image:url(\"http://static2.kaxiuyun.com/kxy/course/live/icon-invite.png\")}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-56f6c89a]:last-child:active{background-image:url(\"https://static1.kaxiuyun.com/static/img/dianzan2png.png\")}.course-live-new .contentWrap .inputWrap .btn-wrap .sendBtn[data-v-56f6c89a]{margin:.43rem .6rem .43rem 0;position:relative;z-index:3;width:3.1rem;height:1.8rem;border-radius:.2rem;background-color:#177afa;text-align:center;color:#fff;font:14px/1.8rem PingFangSC-Regular}.course-live-new .giftWrap[data-v-56f6c89a]{will-change:all;position:fixed;left:0;bottom:0;z-index:104;width:100%;height:13.5rem;background-color:#fff;overflow:hidden}.course-live-new .giftWrap .giftItem[data-v-56f6c89a]{width:25%;height:6.25rem;float:left;text-align:center;padding-top:.5rem}.course-live-new .giftWrap .giftItem[data-v-56f6c89a]:active{background-color:#f5f5f5}.course-live-new .giftWrap .giftItem img[data-v-56f6c89a]{width:2.5rem;height:2.5rem}.course-live-new .giftWrap .giftItem p[data-v-56f6c89a]:first-of-type{color:#333;font-size:.7rem;font-family:PingFangSC-Regular;margin-top:.2rem}.course-live-new .giftWrap .giftItem p[data-v-56f6c89a]:nth-of-type(2){color:#666;font-size:.6rem;font-family:PingFangSC-Regular;margin-top:.1rem}.course-live-new .redpackageWrap[data-v-56f6c89a]{width:16rem;height:20.8rem;overflow:hidden;background:transparent!important}.course-live-new .redpackageWrap .noOpen[data-v-56f6c89a]{width:100%;height:100%;background:url(http://static1.kaxiuyun.com/kxy/broadcast/hbNoOpen.png) no-repeat;background-size:100% 100%;padding-top:5.25rem;position:relative}.course-live-new .redpackageWrap .noOpen p[data-v-56f6c89a]{text-align:center;color:#fff;font-size:.8rem;font-family:PingFangSC-Regular;margin-bottom:1.4rem}.course-live-new .redpackageWrap .noOpen input[data-v-56f6c89a]{width:13.3rem;height:2.2rem;line-height:2.2rem;border-radius:.2rem;font-size:.8rem;font-family:PingFangSC-Regular;background-color:#fff;color:#000;margin:0 auto 1.7rem;text-align:center;display:block}.course-live-new .redpackageWrap .noOpen input[data-v-56f6c89a]::-webkit-input-placeholder{font-size:.8rem;color:#666}.course-live-new .redpackageWrap .noOpen input[data-v-56f6c89a]:-ms-input-placeholder{font-size:.8rem;color:#666}.course-live-new .redpackageWrap .noOpen input[data-v-56f6c89a]::placeholder{font-size:.8rem;color:#666}.course-live-new .redpackageWrap .noOpen .openBtn[data-v-56f6c89a]{margin:0 auto;background-image:-webkit-gradient(linear,left top,left bottom,from(#f7de3c),to(#ff8e40));background-image:linear-gradient(#f7de3c,#ff8e40);width:13.3rem;height:2.2rem;text-align:center;color:#fff;font:700 18px/2.2rem PingFangSC-Semibold;border-radius:.2rem}.course-live-new .redpackageWrap .noOpen span.close[data-v-56f6c89a]{position:absolute;top:.4rem;right:.4rem;color:#fff;font:40px/1.2rem PingFangSC-Regular;text-align:center;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.course-live-new .redpackageWrap .noOpen>.commandTips[data-v-56f6c89a]{margin-top:.5rem;text-align:center;color:#fff;font-size:.7rem;font-family:PingFangSC-Regular}.course-live-new .redpackageWrap .opened[data-v-56f6c89a]{position:absolute;left:0;top:-2.8rem;width:100%;height:24rem;background:url(\"http://static1.kaxiuyun.com/kxy/broadcast/hbOpen.png\") no-repeat;background-size:100% 100%}.course-live-new .redpackageWrap .opened span.close[data-v-56f6c89a]{position:absolute;top:3.2rem;right:.4rem;color:#fff;font-size:2rem;text-align:center;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);line-height:1.2rem}.course-live-new .redpackageWrap .opened .result[data-v-56f6c89a]{padding-top:1rem;text-align:center}.course-live-new .redpackageWrap .opened .result p[data-v-56f6c89a]:first-of-type{font-size:.9rem;color:#ffdce1}.course-live-new .redpackageWrap .opened .result p[data-v-56f6c89a]:nth-of-type(2){font-size:1.25rem;color:#fff;font-weight:600;margin-top:.5rem}.course-live-new .redpackageWrap .opened .result p[data-v-56f6c89a]:nth-of-type(3){font-size:.7rem;color:#ffdce1;margin-top:.75rem}.course-live-new .redpackageWrap .opened .fail[data-v-56f6c89a]{font-size:1.2rem;color:#fff;font-weight:600;margin-top:2.5rem;padding:0 2.8rem;text-align:center}.course-live-new .redpackageWrap .opened .detailBtn[data-v-56f6c89a]{width:7.1rem;height:2.1rem;color:#fff;font:16px/2.1rem PingFangSC-Regular;border:1px solid #fff;border-radius:.2rem;text-align:center;box-sizing:content-box;position:absolute;top:12rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.course-live-new .redpackageWrap .opened .detailWrap[data-v-56f6c89a]{position:absolute;top:11rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:14rem;height:11.5rem;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.course-live-new .redpackageWrap .opened .detailWrap>div[data-v-56f6c89a]{height:1.4rem;line-height:1.4rem;overflow:hidden}.course-live-new .redpackageWrap .opened .detailWrap>div span[data-v-56f6c89a]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff}.course-live-new .redpackageWrap .opened .detailWrap>div span[data-v-56f6c89a]:first-of-type{float:left}.course-live-new .redpackageWrap .opened .detailWrap>div span[data-v-56f6c89a]:nth-of-type(2){float:right}.course-live-new .chatTips[data-v-56f6c89a]{width:100%;background:transparent!important;padding-top:11.1rem}.course-live-new .chatTips .tips[data-v-56f6c89a]{margin:0 auto;width:16.75rem;background:#fff;border-radius:.6rem;padding-bottom:1rem;position:relative}.course-live-new .chatTips .tips .tip-close[data-v-56f6c89a]{width:2.2rem;height:2.2rem;background:url(\"http://static2.kaxiuyun.com/kxy/course/live/tip-close.png\") 50% no-repeat;background-size:1rem 1rem;position:absolute;top:0;right:0}.course-live-new .chatTips .tips .tip-title[data-v-56f6c89a]{color:#333;font:700 20px/1.4rem PingFangSC-Semibold;text-align:center;padding:1.2rem 0 0}.course-live-new .chatTips .tips .tip-img[data-v-56f6c89a]{padding:1.83rem 0 1.4rem;text-indent:2.38rem}.course-live-new .chatTips .tips .tip-img img[data-v-56f6c89a]{width:11.75rem}.course-live-new .chatTips .tips .tip-content[data-v-56f6c89a]{padding:1rem .8rem 2rem;color:#505050;font:17px/1.2rem PingFangSC-Regular}.course-live-new .chatTips .tips .tip-btn[data-v-56f6c89a]{margin:0 auto;width:15.15rem;height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:#177afa;border-radius:.3rem;color:#fff;font:18px/1.25rem PingFangSC-Regular}.course-live-new .chatTips .tips .tip-btn2[data-v-56f6c89a]{color:#177afa;font:16px/1.13rem PingFangSC-Regular;text-decoration:underline;text-align:center;padding-top:.6rem}.course-live-new .auth-pop[data-v-56f6c89a]{width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem)}.course-live-new .auth-pop .wrap[data-v-56f6c89a]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.course-live-new .auth-pop .wrap .tit[data-v-56f6c89a]{height:2.75rem;position:relative;color:#333;font:700 17px/2.75rem PingFangSC-Semibold;text-align:center;background:#f6f6f6}.course-live-new .auth-pop .wrap .tit i[data-v-56f6c89a]{position:absolute;top:0;right:0;color:#666;font:14px/2.75rem PingFangSC-Regular;font-style:normal;padding:0 .8rem}.course-live-new .auth-pop .wrap .tit div[data-v-56f6c89a]{position:absolute;top:0;left:0;color:#666;font:400 14px/2.75rem PingFangSC-Regular;padding:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .auth-pop .wrap .tit div img[data-v-56f6c89a]{width:.35rem;height:.6rem;margin-right:.2rem;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.course-live-new .auth-pop .wrap .mid[data-v-56f6c89a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.course-live-new .auth-pop .wrap .pop-foot[data-v-56f6c89a]{position:relative;height:2.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.course-live-new .auth-pop .wrap .pop-foot[data-v-56f6c89a]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-top:1px solid #eee;pointer-events:none}.course-live-new .auth-pop .wrap .pop-foot .add-address[data-v-56f6c89a]{text-align:center;height:2.9rem;color:#177afa;font:16px/2.9rem PingFangSC-Regular}.course-live-new .auth-pop .wrap .pop-foot .save[data-v-56f6c89a]{text-align:center;width:91.5%;height:2.3rem;background:#177afa;border-radius:.3rem;color:#fff;font:16px/2.3rem PingFangSC-Regular}.course-live-new .pay-pop[data-v-56f6c89a]{width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem)}.course-live-new .pay-pop .wrap[data-v-56f6c89a]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.course-live-new .pay-pop .wrap .tit[data-v-56f6c89a]{height:2.75rem;position:relative;color:#333;font:700 17px/2.75rem PingFangSC-Semibold;text-align:center;background:#f6f6f6}.course-live-new .pay-pop .wrap .tit i[data-v-56f6c89a]{position:absolute;top:0;right:0;color:#666;font:14px/2.75rem PingFangSC-Regular;font-style:normal;padding:0 .8rem}.course-live-new .pay-pop .wrap .tit div[data-v-56f6c89a]{position:absolute;top:0;left:0;color:#666;font:400 14px/2.75rem PingFangSC-Regular;padding:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .pay-pop .wrap .tit div img[data-v-56f6c89a]{width:.35rem;height:.6rem;margin-right:.2rem;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.course-live-new .pay-pop .wrap .mid[data-v-56f6c89a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.course-live-new .pay-pop .wrap .mid .welfare-box[data-v-56f6c89a]{background:#fff;padding:0 .8rem}.course-live-new .pay-pop .wrap .mid .welfare-box li[data-v-56f6c89a]{position:relative;padding:.8rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-live-new .pay-pop .wrap .mid .welfare-box li[data-v-56f6c89a]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.course-live-new .pay-pop .wrap .mid .welfare-box li img[data-v-56f6c89a]{width:5rem;height:4.675rem;border-radius:.3rem;margin-right:.6rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box[data-v-56f6c89a]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.475rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box.no-img[data-v-56f6c89a]{min-height:auto}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box.no-img .btn-box[data-v-56f6c89a]{position:static;margin-top:.8rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box p[data-v-56f6c89a]{color:#333;font:700 16px/1rem PingFangSC-Medium;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box[data-v-56f6c89a]{position:absolute;right:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box.flex-end[data-v-56f6c89a]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .price[data-v-56f6c89a]{color:#ff3f3f;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .price span[data-v-56f6c89a]{margin-left:2px;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .type-btn[data-v-56f6c89a]{width:3.4rem;height:1.425rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#ff3f3f;border-radius:1.25rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .type-btn span[data-v-56f6c89a]{color:#fff;font:700 12px/1 PingFangSC-Semibold}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .type-btn.disable[data-v-56f6c89a]{background:#ccc}.course-live-new .pay-pop .wrap .mid .order-info[data-v-56f6c89a]{padding:0 .8rem;margin-top:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.course-live-new .pay-pop .wrap .mid .order-info[data-v-56f6c89a]:last-child{margin-top:.2rem}.course-live-new .pay-pop .wrap .mid .order-info span[data-v-56f6c89a]{color:#999;font:12px/.85rem PingFangSC-Regular}.course-live-new .pay-pop .wrap .pop-foot .address[data-v-56f6c89a]{height:2.3rem;background:#fff6eb;padding:0 .8rem;-webkit-box-align:cemter;-webkit-align-items:cemter;-ms-flex-align:cemter;align-items:cemter}.course-live-new .pay-pop .wrap .pop-foot .address .no-address[data-v-56f6c89a]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#f73;font:700 16px/1 PingFangSC-Semibold}.course-live-new .pay-pop .wrap .pop-foot .address .has-address[data-v-56f6c89a],.course-live-new .pay-pop .wrap .pop-foot .address .no-address[data-v-56f6c89a]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left[data-v-56f6c89a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left .phone[data-v-56f6c89a]{line-height:.7rem}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left .phone span[data-v-56f6c89a]{color:#333;font:14px/.7rem PingFangSC-Regular;margin-right:.4rem}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left .detail[data-v-56f6c89a]{margin-top:.2rem;color:#999;font:12px/1 PingFangSC-Regular;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .arror[data-v-56f6c89a]{width:.3rem;height:.6rem;background:url(" + escape(__webpack_require__(147)) + ") no-repeat;background-size:100% 100%}.course-live-new .pay-pop .wrap .pop-foot .pay-box[data-v-56f6c89a]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3.1rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem}.course-live-new .pay-pop .wrap .pop-foot .pay-box[data-v-56f6c89a]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-top:1px solid #eee;pointer-events:none}.course-live-new .pay-pop .wrap .pop-foot .pay-box .left[data-v-56f6c89a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.course-live-new .pay-pop .wrap .pop-foot .pay-box .left p[data-v-56f6c89a]{color:#ff3f3f;font:700 16px/1 PingFangSC-Semibold}.course-live-new .pay-pop .wrap .pop-foot .pay-box .left span[data-v-56f6c89a]{margin-top:.4rem;color:#999;font:12px/.6rem PingFangSC-Regular;margin-right:.4rem}.course-live-new .pay-pop .wrap .pop-foot .pay-box .pay-btn[data-v-56f6c89a]{height:2.3rem;text-align:center;width:6.6rem;margin-left:.4rem;border-radius:.3rem;color:#fff;font:17px/2.3rem PingFangSC-Regular;background:#177afa}.course-live-new .giftMask[data-v-56f6c89a]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;z-index:101}.course-live-new .slidedown-enter-active[data-v-56f6c89a],.course-live-new .slidedown-leave-active[data-v-56f6c89a]{-webkit-transition:all .2s ease;transition:all .2s ease}.course-live-new .slidedown-enter[data-v-56f6c89a],.course-live-new .slidedown-leave-to[data-v-56f6c89a]{-webkit-transform:translateY(200px);-ms-transform:translateY(200px);transform:translateY(200px);opacity:0}.course-live-new .spreadWrap[data-v-56f6c89a]{-webkit-transition:all .2s ease;transition:all .2s ease;position:absolute;background-color:#fff;bottom:0;right:0;width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem);z-index:2000;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.course-live-new .spreadWrap .title[data-v-56f6c89a]{height:2.75rem;width:100%;background-color:#f6f6f6;text-align:center;position:relative;color:#333;font:700 17px/2.75rem PingFangSC-Semibold}.course-live-new .spreadWrap .title .leftContent[data-v-56f6c89a]{position:absolute;left:0;top:0;height:100%;color:#177afa;font:14px/2.75rem PingFangSC-Regular;padding-left:.8rem;text-indent:.55rem}.course-live-new .spreadWrap .title .leftContent[data-v-56f6c89a]:before{content:\"\";width:.35rem;height:.6rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/live/live-notice-arrow.png\");background-repeat:no-repeat;background-size:100%;position:absolute;top:1.06rem;left:.8rem}.course-live-new .spreadWrap .title .rightContent[data-v-56f6c89a]{position:absolute;right:0;top:0;height:100%;color:#666;font:14px/2.75rem PingFangSC-Regular;padding-right:.8rem}.course-live-new .spreadWrap .noticeContent[data-v-56f6c89a]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.course-live-new .spreadWrap .noticeContent .noticeWrap[data-v-56f6c89a]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;min-height:100%}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap[data-v-56f6c89a]{padding-bottom:2.8rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .wel-img[data-v-56f6c89a]{width:100%;max-width:100%;height:auto}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap>p[data-v-56f6c89a]{padding:.8rem;color:#333;font:700 18px/1.25rem PingFangSC-Medium}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address[data-v-56f6c89a]{position:fixed;bottom:2.8rem;left:0;width:100%;height:2.3rem;background:#fff6eb;padding:0 .8rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .no-address[data-v-56f6c89a]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#f73;font:700 16px/1 PingFangSC-Semibold}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address[data-v-56f6c89a],.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .no-address[data-v-56f6c89a]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .left[data-v-56f6c89a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .left .phone span[data-v-56f6c89a]{color:#333;font:14px/.7rem PingFangSC-Regular;margin-right:.4rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .left .detail[data-v-56f6c89a]{margin-top:.2rem;color:#999;font:12px/1 PingFangSC-Regular;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .arror[data-v-56f6c89a]{width:.3rem;height:.6rem;background:url(" + escape(__webpack_require__(147)) + ") no-repeat;background-size:100% 100%}.course-live-new .spreadWrap .noticeContent .noticeWrap #iframe[data-v-56f6c89a]{width:100%;height:100%;display:block;vertical-align:bottom}.course-live-new .spreadWrap .noticeContent .noticeWrap .purchaseBtn[data-v-56f6c89a]{background-color:#fff;position:fixed;left:0;bottom:0;width:100%;padding:.3rem .8rem;text-align:center}.course-live-new .spreadWrap .noticeContent .noticeWrap .purchaseBtn div[data-v-56f6c89a]{display:inline-block;width:100%;height:2.2rem;border-radius:.3rem;background:#177afa;text-align:center;color:#fff;font:16px/2.3rem PingFangSC-Regular}.course-live-new .spread-enter-active[data-v-56f6c89a],.course-live-new .spread-leave-active[data-v-56f6c89a]{-webkit-transition:height .2s ease;transition:height .2s ease}.course-live-new .spread-enter[data-v-56f6c89a],.course-live-new .spread-leave-to[data-v-56f6c89a]{right:.73rem;bottom:7rem;width:3rem;height:3rem;opacity:0}.course-live-new .invite-detail[data-v-56f6c89a]{-webkit-transition:all .2s ease;transition:all .2s ease;position:absolute;background-color:#fff;bottom:0;right:0;width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem);z-index:2001;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.course-live-new .invite-detail .title[data-v-56f6c89a]{position:relative;height:2.75rem;line-height:2.75rem;text-align:center;background:#f6f6f6;font-size:.85rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333}.course-live-new .invite-detail .title div[data-v-56f6c89a]{position:absolute;top:0;right:0;height:100%;padding:0 .8rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666}.course-live-new .invite-detail .invite-content[data-v-56f6c89a]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.course-live-new .invite-detail .invite-content .people-num[data-v-56f6c89a]{margin:.6rem .8rem;height:8.25rem;background:#f5f5f5;border-radius:.4rem;text-align:center;position:relative}.course-live-new .invite-detail .invite-content .people-num div[data-v-56f6c89a]:first-child{padding-top:.8rem;font-size:1.6rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333;line-height:2.25rem}.course-live-new .invite-detail .invite-content .people-num div[data-v-56f6c89a]:nth-child(2){font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.course-live-new .invite-detail .invite-content .people-num .share-session[data-v-56f6c89a]{position:absolute;text-align:left;bottom:1rem;left:1rem;width:7.05rem;height:2rem;background:#fff;border-radius:.3rem;border:1px solid #26bd6d;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#26bd6d;line-height:2rem;text-indent:1.88rem}.course-live-new .invite-detail .invite-content .people-num .share-session img[data-v-56f6c89a]{position:absolute;width:1rem;height:1rem;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.course-live-new .invite-detail .invite-content .people-num .share-timeline[data-v-56f6c89a]{text-align:left;position:absolute;bottom:1rem;right:1rem;width:7.05rem;height:2rem;background:#fff;border-radius:.3rem;border:1px solid #72ace8;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#72ace8;line-height:2rem;text-indent:1.88rem}.course-live-new .invite-detail .invite-content .people-num .share-timeline img[data-v-56f6c89a]{position:absolute;width:1rem;height:1rem;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.course-live-new .invite-detail .invite-content .invite-rule[data-v-56f6c89a]{padding:0 .8rem 1rem;border-bottom:1px solid #ededed;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem}.course-live-new .invite-detail .invite-content .list-title[data-v-56f6c89a]{margin:1rem .8rem .2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.course-live-new .invite-detail .invite-content .invite-people[data-v-56f6c89a]{margin:0 .8rem}.course-live-new .invite-detail .invite-content .invite-people .invite-item[data-v-56f6c89a]{height:2.6rem;line-height:2.6rem;border-bottom:1px solid #ededed;position:relative}.course-live-new .invite-detail .invite-content .invite-people .invite-item[data-v-56f6c89a]:last-child{border-bottom:none}.course-live-new .invite-detail .invite-content .invite-people .invite-item img[data-v-56f6c89a]{width:1.4rem;height:1.4rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);border-radius:50%;background:#f0f8ff}.course-live-new .invite-detail .invite-content .invite-people .invite-item>div[data-v-56f6c89a]{margin-left:2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:9rem}.course-live-new .invite-detail .invite-content .invite-people span[data-v-56f6c89a]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;position:absolute;top:0;right:0}.course-live-new .invite-detail .invite-content .no-invite[data-v-56f6c89a]{margin:0 .8rem;padding-top:2.5rem;text-align:center}.course-live-new .invite-detail .invite-content .no-invite img[data-v-56f6c89a]{width:2.25rem;height:2.03rem}.course-live-new .invite-detail .invite-content .no-invite p[data-v-56f6c89a]{margin-top:.73rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.13rem;padding-bottom:4.22rem}.course-live-new .shareMAsk[data-v-56f6c89a]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:2002;background:rgba(0,0,0,.5)}.course-live-new .shareMAsk .shareTips[data-v-56f6c89a]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.course-live-new .shareMAsk .shareTips>p[data-v-56f6c89a]:first-of-type{margin-top:.85rem}.course-live-new .shareMAsk .shareTips>p[data-v-56f6c89a]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.tip[data-v-56f6c89a]{text-align:center;padding-top:5rem}.tip img[data-v-56f6c89a]{width:2.6rem;height:4rem;padding-bottom:1rem}.tip p[data-v-56f6c89a]{color:#999;font-size:.9rem}.tip p[data-v-56f6c89a]:nth-of-type(2){color:#377ee1;font-size:.7rem;margin-top:.5rem;text-decoration:underline}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arrow_send_method.9d436bf.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2553);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5ead91eb", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-live-new img.rocket{width:12.45rem;height:3.75rem;position:fixed;z-index:2;left:-100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.course-live-new .likeImg{width:1rem;height:1rem;position:absolute;bottom:-50%;left:50%;z-index:2}.course-live-new .giftBanner .bannerItem{will-change:all;width:100%;height:2.2rem;background:url(http://static1.kaxiuyun.com/static/img/giftBanner.png) 0 0 no-repeat;background-size:100%;overflow:hidden;margin-bottom:.5rem;opacity:0;position:relative;top:0;left:-100%}.course-live-new .giftBanner .bannerItem.slideIn{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1}.course-live-new .giftBanner .bannerItem.slideOut{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0}.course-live-new .giftBanner .bannerItem>.avatar{width:1.6rem;height:1.6rem;float:left;margin-top:.3rem;margin-left:.4rem;border-radius:50%}.course-live-new .giftBanner .bannerItem .rightContent{margin-left:2.4rem;margin-top:.15rem}.course-live-new .giftBanner .bannerItem .rightContent p:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#fff}.course-live-new .giftBanner .bannerItem .rightContent p:nth-of-type(2){font-family:PingFangSC-Regular;font-size:.6rem;color:#ffc83e}.course-live-new .giftBanner .bannerItem>.giftImg{position:absolute;top:-.03rem;right:0;width:2.5rem;height:2.5rem}.mint-toast{z-index:3000!important}.noticeScrollWrap .van-notice-bar__content{font:15px/1 PingFangSC-Regular}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _timers = __webpack_require__(222);
var _drawPriceComponent = _interopRequireDefault(__webpack_require__(804));
var _liveWelfare = _interopRequireDefault(__webpack_require__(2554));
var _liveHostMesList = _interopRequireDefault(__webpack_require__(1425));
var _liveCourseWare = _interopRequireDefault(__webpack_require__(1426));
var _course_no_start = _interopRequireDefault(__webpack_require__(2559));
var _addressList = _interopRequireDefault(__webpack_require__(2562));
var _locationEdit = _interopRequireDefault(__webpack_require__(1611));
var _phoneAuth = _interopRequireDefault(__webpack_require__(2569));
var _components; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
var messageNum = 0; // 聊天室所有信息计数（包括红包）
var giftBannerNum = 0; // 礼物横幅的计数
var rocketNum = 0; // 大火箭的计数
var likeNum = 0; // 用户点击点赞按钮的计数
var _default = exports.default = {
  components: (_components = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_components, _noticeBar.default.name, _noticeBar.default), _popup.default.name, _popup.default), "MescrollVue", _mescroll.default), "drawPrice", _drawPriceComponent.default), "welfare", _liveWelfare.default), "hostMesList", _liveHostMesList.default), "courseware", _liveCourseWare.default), "CourseNoStart", _course_no_start.default), "AddressList", _addressList.default), "EditAddress", _locationEdit.default), (0, _defineProperty2.default)(_components, "PhoneAuth", _phoneAuth.default)),
  data: function data() {
    return {
      contentHeight: 0,
      // 初始时，视频区域以外的高度
      currentNotice: {},
      // 当前公告
      noticeList: [],
      // 公告数组
      isShowNotice: false,
      courseId: this.$route.query.courseId,
      showGiftWrap: false,
      showSendBtn: false,
      showOpenRedpackage: false,
      showInviteDetail: false,
      // 是否展示 邀请详情
      showTips: false,
      // 聊天框内 弹窗提示
      showIOSShareBox: false,
      // IOS微信分享提示
      tipsType: 'invite',
      // 弹窗提示 类型  invite: 邀请弹窗  share: 分享弹窗
      assisTimer: null,
      likeTimer: null,
      logTimer: null,
      giftsList: [],
      messageList: [],
      luckerList: [],
      // 红包中奖人列表
      inviteList: [],
      // 邀请人列表
      currentPackageInfo: '',
      currentPackageIndex: '',
      // 当前红包的索引
      packageCommandValue: '',
      // 输入的红包口令
      errNum: '',
      // 输入的红包口令错误次数
      currentErrTips: '',
      // 当前的红包口令提示
      showPackageDetail: false,
      // 展现红包领取人详情
      sendMessageValue: '',
      hasNewMsg: false,
      // 是否有新消息
      autoScroll: true,
      // 是否自动滚动聊天记录
      appkey: '',
      // 融云appid
      courseInfo: {},
      // 课程信息
      RcUserInfo: '',
      // 融云的当前用户信息
      join: false,
      // 是否已经加入当前聊天室
      isFullscreen: false,
      // 是否全屏播放  默认false
      mescroll: null,
      mescrollUp: {
        callback: this.getInvitationList,
        page: {
          num: 1,
          size: 10
        },
        auto: false
      },
      curIndex: 1,
      // 当前显示tab栏索引
      tabList: [{
        name: '主持人',
        id: 1,
        show: true
      }, {
        name: '聊天室',
        id: 2,
        show: true
      }, {
        name: '课件',
        id: 3,
        show: false
      }, {
        name: '福利',
        id: 4,
        show: false
      }],
      clickMaskFlag: false,
      // 是否点击了播放按钮
      hasBenefit: 0,
      // 是否有福利列表
      hostMesList: [],
      // 主持人tab页主持人列表
      showAuthPop: false,
      // 是否展示认证和地址选择弹窗
      curPopType: 1,
      defaultAddres2: {},
      hasPhone: false,
      // 是否有手机号（认证）
      showPayPop: false,
      // 是否展示付尾款弹窗
      orderDetail: {},
      // 尾款对应的数据

      showEditAddressPop: false,
      // 显示新增编辑地址弹窗
      isFirstOpenEditPop: true,
      // 编辑地址的时候是否一开始打开的就是新增弹窗
      showPopFoot: true,
      addressListHome: []
    };
  },
  watch: {
    showTips: function showTips(val) {
      var _this2 = this;
      // 当聊天框内 弹框提示 为false时，重置弹框类型为 invite
      if (!val) {
        (0, _timers.setTimeout)(function () {
          _this2.tipsType = 'invite';
        }, 300);
      }
    },
    showInviteDetail: function showInviteDetail(val) {
      var _this3 = this;
      // 打开邀请列表的时候 刷新邀请列表中的信息。
      if (val) {
        this.$nextTick(function () {
          _this3.mescroll.resetUpScroll();
        });
      }
    },
    'courseInfo.status': function courseInfoStatus(val) {
      // 监控直播状态，如果不为0（0代表直播中），则不必记录日志
      if (val === 1) {
        document.title = '犇犇课堂 即将直播';
      } else if (val === 3 || val === 5) {
        document.title = '犇犇课堂 直播结束';
      }
      if (val !== 0) {
        clearInterval(this.logTimer);
      }
    },
    showEditAddressPop: function showEditAddressPop(val) {
      var _this4 = this;
      if (val && this.curPopType === 0) {
        // 如果新打开地址弹窗并且是是新增
        (0, _timers.setTimeout)(function () {
          _this4.$refs.edifAddress2.changeCurAddress({});
        });
      }
    }
  },
  created: function created() {
    if (window.location.href.indexOf('https://wx') != -1) {
      this.appkey = 'e5t4ouvpeadqa'; // 生产
    } else {
      this.appkey = '0vnjpoad0ckgz'; // 测试
    }

    // 添加meta标签 IOS 允许全屏观看
    // let _meta = document.createElement('meta');
    // _meta.id = 'iosFullscreen';
    // _meta.name = 'apple-mobile-web-app-capable'
    // _meta.content = 'yes';
    // document.getElementsByTagName('head')[0].appendChild(_meta);
  },
  mounted: function mounted() {
    var _this5 = this;
    this.getRoomInfo();
    this.assisTimer = (0, _timers.setTimeout)(this.randomLikeImg, 1000);
    // this.likeTimer = setInterval(this.sendLikeNum, 30000);
    this.logTimer = setInterval(function () {
      // 发送视频日志
      _this5._Util.collectPageView2({
        postUrl: _this5._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '犇犇课堂',
        operate_page: '犇犇课堂',
        optionType: '直播',
        param1: _this5.$route.query.courseId
      }, _this5);
    }, 60000);

    /**
     * 打开地址列表弹窗
     * @param {Number} type 类型 1 代表原本有地址，打开列表弹窗    0, 10 代表原本没有地址，需要打开新增弹窗  2. 打开认证内容
     * @param {Object} arrress 修改尾款地址时，需要将尾款地址传入地址修改组件便于修改
    */
    this.$bus.$on('openParentPop', function (type, address) {
      _this5.curPopType = type;
      if (type === 0) {
        // 没有地址时，直接打开新增地址弹窗
        _this5.isFirstOpenEditPop = true;
        _this5.showEditAddressPop = true;
      } else {
        _this5.showAuthPop = true;
        if (type === 1) {
          (0, _timers.setTimeout)(function () {
            _this5.$refs.addressList.getAddressList();
          }, 200);
        }
      }
    });

    // 监听新增地址弹窗的省市区选择器的开关事件，让新增地址弹窗的底部按钮显示隐藏，主要兼容ios手机
    this.$bus.$on('showAreaSelect', function (isShow) {
      _this5.showPopFoot = !isShow;
    });
  },
  beforeDestroy: function beforeDestroy() {
    clearTimeout(this.assisTimer);
    // clearInterval(this.likeTimer);
    clearInterval(this.logTimer);
    this.quitRoom();
    // 移除meta标签
    // document.getElementById('iosFullscreen').remove();
  },
  methods: {
    /**
     * 新增弹窗关闭的时候需要判断是否之前已经打开了地址列表弹窗，如果是的话，需要重新打开
    */
    closeEditpop: function closeEditpop() {
      this.isFirstOpenEditPop = false;
      this.showEditAddressPop = false;
    },
    /**
     * 打开编辑或新增地址弹窗
    */
    showEditFn: function showEditFn(addressId) {
      var _this6 = this;
      this.showEditAddressPop = true;
      if (addressId) {
        this.curPopType = 1;
        (0, _timers.setTimeout)(function () {
          _this6.$refs.edifAddress2.parentGetLocationDetail(addressId);
        }, 200);
      } else {
        this.isFirstOpenEditPop = true;
        this.$refs.edifAddress2.changeCurAddress({});
      }
    },
    /**
     * 福利组件点击尾款订单的事件
     * @param {bollean} data 尾款数据
    */
    showPayPopFn: function showPayPopFn(data) {
      this.showPayPop = true;
      this.orderDetail = data;
    },
    clickPayAddressFn: function clickPayAddressFn() {
      var _this7 = this;
      if (this.addressListHome.length) {
        this.curPopType = 1;
        this.showAuthPop = true;
        (0, _timers.setTimeout)(function () {
          _this7.$refs.addressList.getAddressList();
        }, 200);
      } else {
        this.showEditAddressPop = true;
        this.curPopType = 0;
      }
    },
    /**
     * 付尾款
    */
    payFn: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this8 = this;
      var params;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (!(this.orderDetail.isVirtual === 0 && !this.orderDetail.province)) {
              _context.next = 1;
              break;
            }
            this.showEditAddressPop = true;
            this.curPopType = 0;
            (0, _mintUi.Toast)({
              message: '请填写收货地址',
              position: 'middle',
              duration: 1500
            });
            return _context.abrupt("return");
          case 1:
            params = {
              address: this.orderDetail.address,
              attach: 'ITEMFINAL',
              balancePrice: this.orderDetail.balancePrice,
              benefitsId: this.orderDetail.benefitsId,
              city: this.orderDetail.city,
              district: this.orderDetail.district,
              mdseFortPersonPrice: this.orderDetail.paidCash,
              mdsePersonPrice: this.orderDetail.orderAmount,
              orderId: this.orderDetail.orderId,
              province: this.orderDetail.province,
              receiveName: this.orderDetail.receiveName,
              receivePhone: this.orderDetail.receivePhone
            };
            this._Util.post(this._Api.BALANCE.PAY_BENEFITS, params, function (data) {
              _this8._Util.wxPay(data.jsApiParameters, function () {
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u652F\u4ED8\u6210\u529F</p>",
                  confirmButtonText: '继续看直播',
                  closeOnClickModal: false
                }).then(function (action) {
                  if (action === 'confirm') {
                    // alert('支付尾款成功')
                    _this8.showPayPop = false;
                    _this8.$refs.welfare.getListBenefits();
                  }
                });
              });
            }, function () {}, this);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 福利组件获取是否认证的标识
     * @param {bollean} data 是否已经认证
    */
    hasPhoneCb: function hasPhoneCb(data) {
      this.hasPhone = data;
    },
    /**
     * 福利组件获取默认地址后返回给当前页面
    */
    defaultAddressCb: function defaultAddressCb(data) {
      this.defaultAddres2 = data;
      if (this.showPayPop && JSON.stringify(data) !== '{}') {
        // 如果尾款窗口是打开的,且选择的地址是有数据的，表示需要更新尾款订单
        this.orderDetail.address = data.address;
        this.orderDetail.city = data.city;
        this.orderDetail.district = data.dist;
        this.orderDetail.province = data.province;
        this.orderDetail.receiveName = data.receiptName;
        this.orderDetail.receivePhone = data.receiptPhone;
        this.$refs.welfare.chagebalanAdsress(this.orderDetail);
      }
    },
    /**
     * 福利组件获取地址列表后返回给当前页面
    */
    addressListChangeCb: function addressListChangeCb(data) {
      console.log(data);
      this.addressListHome = data;
    },
    /**
     * 地址列表组组件设置默认地址成功的回调,同时出发福列表组件的获取默认地址的方法
    */
    setDefaultAddressCb: function setDefaultAddressCb() {
      this.showAuthPop = false;
      this.$refs.welfare.getAddressList();
    },
    /**
     * 触发认证子组件的认证手机号的方法
    */
    authPhone: function authPhone() {
      this.$refs.authPhone.savaUserInfo();
    },
    /**
     * 认证子组件的认证手机号成功的回调
    */
    authPhoneSuccessCb: function authPhoneSuccessCb() {
      this.showAuthPop = false;
      this.$refs.welfare.hasPhone();
    },
    /**
     * 新增子组件保存地址成功的回调
     * @param {Object} 保存地址成功后的地址内容
    */
    childSaveAddressSuccess: function childSaveAddressSuccess(data) {
      if (this.curPopType === 0) {
        // 没有地址时关闭
        this.showEditAddressPop = false;
        this.$refs.welfare.getAddressList();
      } else if (this.curPopType === 1) {
        this.showAuthPop = false;
        this.showEditAddressPop = false;
        this.$refs.welfare.getAddressList();
      }
    },
    /**
     * 出发新增地址子组件保存地址的事件
    */
    saveAddress: function saveAddress() {
      this.$refs.edifAddress2.saveAddressDetail();
    },
    showChildPop: function showChildPop() {
      this.$refs.addressList.openPop();
    },
    /**
     * 支付详情页点击地址栏
    */
    clickPayAddress: function clickPayAddress() {
      var _this9 = this;
      if (this.defaultAddres2.id) {
        this.curPopType = 1;
        this.showAuthPop = true;
        (0, _timers.setTimeout)(function () {
          _this9.$refs.addressList.getAddressList();
        }, 200);
      } else {
        if (this.addressListHome.length) {
          this.curPopType = 1;
          this.showAuthPop = true;
          (0, _timers.setTimeout)(function () {
            _this9.$refs.addressList.getAddressList();
          }, 200);
        } else {
          this.showEditAddressPop = true;
          this.curPopType = 0;
        }
      }
    },
    /**
     * 获取主持人历史聊天记录
    */
    getPresentList: function getPresentList() {
      var _this0 = this;
      this._Util.post(this._Api.POST_COURSE_LIVE_PRESENT_LIST, {
        courseId: this.$route.query.courseId
      }, function (data) {
        if (data) {
          var tempArr = data.map(function (item, index) {
            var obj = {};
            if (item.type === 1) {
              obj = {
                uId: '-30000',
                type: 2,
                avatar: 'http://static2.kaxiuyun.com/kxy/user/201809261913027389lfh.jpg',
                name: '主持人',
                message: item.title,
                index: item.id
              };
            } else if (item.type === 2) {
              obj = {
                uId: '-30000',
                type: 3,
                avatar: 'http://static2.kaxiuyun.com/kxy/user/201809261913027389lfh.jpg',
                name: '主持人',
                bg: 'http://static1.kaxiuyun.com/kxy/broadcast/hb.png',
                index: item.id,
                message: item.title,
                extra: {
                  amountFinal: '',
                  status: '',
                  isOpen: false,
                  benefitsId: item.benefitsId,
                  hbCommand: item.hbCommand,
                  hbTip1: item.hbTip1,
                  hbTip2: item.hbTip2,
                  hbTip3: item.hbTip3,
                  title: item.title,
                  id: item.id
                }
              };
            } else {
              obj = {
                uId: '-30000',
                type: 6,
                avatar: 'http://static2.kaxiuyun.com/kxy/user/201809261913027389lfh.jpg',
                name: '主持人',
                index: item.id,
                message: {
                  benefitsId: item.benefitsId,
                  id: item.id,
                  popupType: item.mdsePersonPrice ? 1 : 2,
                  // 如果有价格嗲表示支付类型的 popupType 1。支付  2。抽奖  3.问卷
                  title: item.title,
                  mdsePersonPrice: item.mdsePersonPrice,
                  content: item.content ? item.content.split(',') : [],
                  url: item.url,
                  buyNum: item.buyNum,
                  mdseFortPersonPrice: item.mdseFortPersonPrice,
                  paymentType: item.paymentType
                }
              };
            }
            return obj;
          });
          _this0.hostMesList = tempArr;
          if (_this0.courseInfo.appShowTab === 'anchor_page') {
            _this0.$refs.hostMes.toBottom();
          }
        }
      }, function () {}, this);
    },
    /**
     * 弹起礼物弹窗
     */
    showGiftWrapFn: function showGiftWrapFn() {
      this.showGiftWrap = true;
      this._Util.sensorsCollect('element_click', {
        $element_name: '直播礼物',
        $element_content: '直播礼物',
        $element_class_name: 'iconBtn',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.$route.query.courseId,
        operation_page: '直播详情'
      });
    },
    /**
     * 点击播放视频
     */
    playVideo: function playVideo() {
      document.getElementById('video').play();
      this.clickMaskFlag = true;
    },
    /**
     * 获取福利列表
     * @param {Number} id 当前点击项的id
     */
    getBenefitsList: function getBenefitsList() {
      var _this1 = this;
      this.noticeList = [];
      this._Util.post(this._Api.POST_COURSE_LIVE_BENE_LIST, {
        courseId: this.$route.query.courseId
      }, function (data) {
        if (data) {
          // 将福利接口数据字段修改为跟融云推送的一样
          if (data.listBenefitsRespList) {
            var tempArr = data.listBenefitsRespList.map(function (item) {
              var imgUrlArr = [];
              if (item.benefitsUrl) {
                imgUrlArr = item.benefitsUrl.split(',');
              }
              return {
                title: item.benefitsName,
                popupType: item.benefitsType,
                hasStock: item.hasStock,
                mdsePersonPrice: item.mdsePersonPrice,
                mdseFortPersonPrice: item.mdseFortPersonPrice,
                benefitsId: item.benefitsId,
                content: imgUrlArr,
                lotteryNo: item.lotteryNo,
                url: item.questionnaireUrl,
                mdseCode: item.mdseCode,
                buyNum: item.buyNum,
                paymentType: item.paymentType
              };
            });
            _this1.noticeList = tempArr;
          }
        }
      }, function () {}, this);
    },
    /**
     * 获取福利详情
     * @param {Object} item 当前的福利对象
    */
    getDetailFn: function getDetailFn(item) {
      var _this10 = this;
      return new Promise(function (resolve, reject) {
        _this10._Util.post(_this10._Api.POST_COURSE_LIVE_BENE_DETAIL, {
          benefitsId: item.benefitsId
        }, function (data) {
          if (data) {
            resolve(data);
          }
        }, function () {
          reject();
        }, _this10);
      });
    },
    /**
     * 查看福利详情,打开弹窗
     * @param {Object} item 当前福利内容
     */
    toDetail: function toDetail(item) {
      var _this11 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var welData, imgUrlArr, tempData;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              if (!(item.hasStock === 0)) {
                _context2.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '您来晚了，福利已售罄',
                position: 'middle',
                duration: 1500
              });
              return _context2.abrupt("return");
            case 1:
              if (_this11.hasPhone) {
                _context2.next = 2;
                break;
              }
              (0, _mintUi.Toast)({
                message: '请先认证手机号',
                position: 'middle'
              });
              _this11.showAuthPop = true;
              _this11.curPopType = 2;
              return _context2.abrupt("return");
            case 2:
              _context2.next = 3;
              return _this11.getDetailFn(item);
            case 3:
              welData = _context2.sent;
              imgUrlArr = [];
              if (welData.benefitsUrl) {
                imgUrlArr = welData.benefitsUrl.split(',');
              }
              tempData = {
                title: welData.benefitsName,
                popupType: welData.benefitsType,
                hasStock: welData.hasStock,
                mdseFortPersonPrice: welData.mdseFortPersonPrice,
                mdsePersonPrice: welData.mdsePersonPrice,
                benefitsId: welData.benefitsId,
                content: imgUrlArr,
                lotteryNo: welData.lotteryNo,
                url: welData.questionnaireUrl,
                mdseCode: welData.mdseCode,
                buyNum: welData.buyNum,
                isVirtual: welData.isVirtual,
                // 0 实物 1 虚拟
                paymentType: welData.paymentType // 1：表示全款支付  2:表示定金+尾款
              };
              _this11.clickNotice(tempData);
              _this11.isShowNotice = true;
              if (_this11.curIndex === 2) {
                _this11._Util.sensorsCollect('element_click', {
                  $element_name: '抢直播福利-聊天室',
                  $element_content: '抢直播福利-聊天室',
                  $element_class_name: 'type-btn',
                  $element_type: 'div',
                  $element_target_url: '',
                  $url: window.location.href,
                  $title: _this11.courseInfo.courseName,
                  moudle_type: '直播',
                  correlation_id: welData.benefitsId,
                  operation_page: '直播详情'
                });
              }
            case 4:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 修改当前打开tab页
     * @param {Number} id 当前点击项的id
     */
    changeIndex: function changeIndex(id) {
      this.autoScroll = true;
      if (id === 4 && this.curIndex !== 4) {
        this.getBenefitsList();
      } else if (id === 3 && this.curIndex !== 3) {
        this.$refs.courseware.getWarelist();
      } else if (id === 1 && this.curIndex !== 1) {
        this.$refs.hostMes.toBottom();
      }
      this.curIndex = id;
      var tabName = '';
      switch (id) {
        case 1:
          tabName = '直播详情-主持人tab';
          break;
        case 2:
          tabName = '直播详情-聊天室tab';
          break;
        case 3:
          tabName = '直播详情-课件tab';
          break;
        case 4:
          tabName = '直播详情-福利tab';
          break;
      }
      this._Util.sensorsCollect('element_click', {
        $element_name: '直播详情tab',
        $element_content: tabName,
        $element_class_name: '',
        $element_type: 'li',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.courseId,
        operation_page: '直播详情'
      });
    },
    /**
     * 打开页面记录直播埋点
     * @param {Number} type 0 进行中 1 未开始 3,5 已结束
     */
    addSensorsCollect: function addSensorsCollect(type) {
      var status = '';
      switch (type) {
        case 0:
          status = '进行中';
          break;
        case 1:
          status = '未开始';
          break;
        case 3:
          status = '已结束';
          break;
        case 5:
          status = '已结束';
          break;
      }
      this._Util.sensorsCollect('enter_livingroom', {
        $url: window.location.href,
        $title: '犇犇课堂',
        $element_type: status
      });
    },
    /**
     * 底部邀请按钮点击逻辑
     */
    showInvitePopup: function showInvitePopup(e) {
      this._Util.sensorsHeatMap(e.target, {
        buttonName: '直播输入框邀请'
      });
      this.showInviteDetail = true;
      this._Util.sensorsCollect('element_click', {
        $element_name: '直播邀请',
        $element_content: '直播邀请',
        $element_class_name: 'iconBtn',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.$route.query.courseId,
        operation_page: '直播详情'
      });
    },
    /**
     * 分享操作
     * @param {defaultEvent} e 点击行为默认事件
     * @param {string} type session：好友 timeline：朋友圈
     */
    share: function share(e, type) {
      var that = this;
      var _buttonName = type === 'session' ? '直播邀请详情分享到群' : type === 'timeline' ? '直播邀请详情分享朋友圈' : '直播邀请公告分享';
      that._Util.sensorsHeatMap(e.target, {
        buttonName: _buttonName
      });
      if (that._Util.isApp()) {
        var _shareItem = {
          title: "".concat(that.courseInfo.userName, "\u9080\u8BF7\u4F60\u89C2\u770B\u76F4\u64AD"),
          desc: "".concat(that.courseInfo.courseName, "\u6B63\u5728\u76F4\u64AD\u4E2D"),
          link: "".concat(location.origin, "/v2/shopping/courseLiveNew?courseId=").concat(that.$route.query.courseId, "&shareId=").concat(that.courseInfo.userId),
          imgLink: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
          imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg' // 两个方法接收的imgUrl字段名不一样
        };
        if (type === 'session' || type === 'timeline') {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: _objectSpread({
                type: type
              }, _shareItem)
            }
          });
          return;
        }
        that._Util.acSendEvent({
          name: 'showSharePage',
          extra: _shareItem
        });
      } else if (that._Util.isMPaaS()) {
        var params = {
          title: "".concat(that.courseInfo.userName, "\u9080\u8BF7\u4F60\u89C2\u770B\u76F4\u64AD"),
          desc: "".concat(that.courseInfo.courseName, "\u6B63\u5728\u76F4\u64AD\u4E2D"),
          link: "".concat(location.origin, "/v2/shopping/courseLiveNew?courseId=").concat(that.$route.query.courseId, "&shareId=").concat(that.courseInfo.userId),
          imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
        };
        if (type === 'timeline') {
          params.isWXTL = true;
        } else if (type === 'session') {
          params.isWX = true;
        }
        this._Util.mpassShare(params, function (shareData) {
          console.log(shareData);
        });
      } else {
        if (that._Util.isIOS) {
          this.showTips = false;
          this.showIOSShareBox = true;
        } else {
          that.showTips = true;
          that.tipsType = 'share';
        }
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.courseInfo.userName, "\u9080\u8BF7\u4F60\u89C2\u770B\u76F4\u64AD"),
        desc: "".concat(that.courseInfo.courseName, "\u6B63\u5728\u76F4\u64AD\u4E2D"),
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg',
        link: "".concat(location.origin, "/v2/shopping/courseLiveNew?courseId=").concat(that.$route.query.courseId, "&shareId=").concat(that.courseInfo.userId)
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * mescroll 初始化方法
     * @param {object} mescroll 实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取当前所有的邀请人
     */
    getInvitationList: function getInvitationList(page, mescroll) {
      var _this12 = this;
      this._Util.post(this._Api.POST_COURSE_LIVE_INVITATION_LIST, {
        id: this.$route.query.courseId,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        _this12.courseInfo.broadcastNoticeVo.invitationCount = data.invitationCount;
        var arr = data.userList;
        if (page.num === 1) {
          _this12.inviteList = [];
        }
        _this12.inviteList = _this12.inviteList.concat(arr);
        _this12.$nextTick(function () {
          _this12.mescroll.endSuccess(arr.length);
        });
      }, function () {
        _this12.mescroll.endErr();
      }, this, true);
    },
    /**
     * 转换换行符
     * @param {string} string 需要转换的文本
     */
    parseHtml: function parseHtml(string) {
      return string.replace(/\n/g, '<br/>');
    },
    /**
     * 公告弹窗逻辑
     * @param {object} noticeInfo 公告信息
     * @param {String} uname, avater  发消息人的名称及头像
     */
    noticePopup: function noticePopup(noticeInfo, uname, avatar) {
      var _this13 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var tempNotice, imgUrlArr, welData, hasFlag;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              tempNotice = _objectSpread(_objectSpread({}, noticeInfo), {}, {
                buyNum: 0
              });
              if (!(tempNotice.force && !_this13.isShowNotice && !_this13.isFullscreen)) {
                _context3.next = 2;
                break;
              }
              // 当前公告为强制打开 并且 当前没有打开的公告 并且没有全屏播放
              _this13.$refs.input.blur();
              imgUrlArr = [];
              if (tempNotice.content) {
                imgUrlArr = tempNotice.content.split(',');
              }
              tempNotice.content = imgUrlArr;
              _context3.next = 1;
              return _this13.getDetailFn(tempNotice);
            case 1:
              welData = _context3.sent;
              tempNotice.paymentType = welData.paymentType;
              tempNotice.mdseFortPersonPrice = welData.mdseFortPersonPrice;
              tempNotice.mdsePersonPrice = welData.mdsePersonPrice;
              tempNotice.buyNum = welData.buyNum;

              // 如果针对当前用户还有库存且能够购买（返回值不为-1）
              if (welData.personLimitStatus === 0) {
                _this13.clickNotice(tempNotice);
                _this13.isShowNotice = true;
              }
              // 需要往聊天记录里添加一条福利卡片
              _this13.addMessage(6, avatar, uname, tempNotice);
            case 2:
              hasFlag = _this13.noticeList.filter(function (item) {
                return tempNotice.benefitsId === item.benefitsId;
              });
              if (!hasFlag.length) {
                _this13.noticeList.unshift(tempNotice);
              }
            case 3:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /** 关闭公告弹窗 */closeNotice: function closeNotice() {
      /** 抽奖弹窗正在抽奖的时候 禁止关闭弹窗 */
      if (this.currentNotice.popupType === 2) {
        if (this.$refs.drawPrice.isDrawing) {
          (0, _mintUi.Toast)({
            message: '正在抽奖中...',
            position: 'middle',
            duration: 800
          });
          return;
        }
      }
      this.isShowNotice = false;
      this.currentNotice = {};
    },
    /**
     * 点击指定公告
     * @param {object} noticeInfo 公告信息
     */
    clickNotice: function clickNotice(noticeInfo) {
      this.currentNotice = noticeInfo;
    },
    /**
     * 支付逻辑
     * @param {number} id 热门活动的弹窗id
     */
    purchase: function purchase() {
      var _this14 = this;
      // 实物商品且没有默认地址
      if (this.currentNotice.isVirtual === 0 && !this.defaultAddres2.id) {
        this.showEditAddressPop = true;
        this.curPopType = 0;
        (0, _mintUi.Toast)({
          message: '请填写收货地址',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (!this.hasPhone) {
        this.showAuthPop = true;
        this.curPopType = 2;
        return;
      }
      this._Util.sensorsCollect('element_click', {
        $element_name: '支付直播福利',
        $element_content: '支付直播福利',
        $element_class_name: '',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.currentNotice.benefitsId,
        operation_page: '直播详情'
      });
      if (this.currentNotice.mdsePersonPrice === -1) {
        (0, _mintUi.Toast)({
          message: '您已购买过该福利，请勿重复购买',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      var params = {
        address: this.defaultAddres2.address,
        attach: this.currentNotice.paymentType === 1 ? 'TOTAL' : 'ITEMDEPOSIT',
        benefitsId: this.currentNotice.benefitsId,
        city: this.defaultAddres2.city,
        district: this.defaultAddres2.dist,
        mdseFortPersonPrice: this.currentNotice.mdseFortPersonPrice,
        mdsePersonPrice: this.currentNotice.mdsePersonPrice,
        province: this.defaultAddres2.province,
        receiveName: this.defaultAddres2.receiptName,
        receivePhone: this.defaultAddres2.receiptPhone
      };
      this._Util.post(this._Api.BALANCE.PAY_BENEFITS, params, function (data) {
        _this14._Util.wxPay(data.jsApiParameters, function () {
          (0, _mintUi.MessageBox)({
            title: '',
            message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u652F\u4ED8\u6210\u529F</p>",
            confirmButtonText: '继续看直播',
            closeOnClickModal: false
          }).then(function (action) {
            if (action === 'confirm') {
              _this14.closeNotice();
              _this14.$refs.welfare.getListBenefits();
            }
          });
        });
      }, function () {}, this);
    },
    /**
     * 点击用户头像 @ 对方
     * @param {string} name 用户昵称
     */
    atUser: function atUser(name) {
      this.sendMessageValue = "@".concat(name, " ");
    },
    /** 点击进入直播回放页面 */goLivePlayback: function goLivePlayback() {
      var _this15 = this;
      this._Util.post(this._Api.POST_COURSE_GET_LIVE_PLAYBACK, {
        id: this.$route.query.courseId
      }, function (data) {
        if (data.status === 0) {
          _this15.$router.push({
            name: 'playbackPlayer',
            query: {
              src: encodeURIComponent(data.targetUrl)
            }
          });
        } else if (data.status === 4) {
          location.href = "".concat(location.origin, "/v2/shopping/shareTicket?course_id=").concat(_this15.$route.query.courseId);
        }
      }, function () {}, this);
    },
    /** 
     * 获取聊天室基本信息 
     * @param {String} type 请求的类型 type为emit时，代表子组件预约成功后触发，此时不需要调用神策埋点及分享接口
    */
    getRoomInfo: function getRoomInfo(type) {
      var _this16 = this;
      this._Util.post(this._Api.POST_COURSE_GET_LIVE_INFO, {
        id: this.$route.query.courseId,
        shareUserId: this.$route.query.shareId
      }, function (data) {
        _this16.userId = localStorage.getItem('userId') || _this16.$store.state.userInfo.userId;
        _this16.courseInfo = data;
        if (type === 'emit') return;
        _this16.addSensorsCollect(data.status);
        _this16.shareConfig();
        if (data.status === 0) {
          // 正常状态
          _this16.getPresentList(); // 正常状态才调用福利列表接口
          _this16.getGiftsList();
          _this16.tabList[3].show = !!data.benefitsNum; // 福利tab是否展示
          _this16.tabList[2].show = !!data.courseWareNum; // 课件tab是否展示
          if (data.appShowTab === 'chat_room') {
            _this16.curIndex = 2;
          }
          if (data.broadcastNoticeVo && data.broadcastNoticeVo.isEject === 1) {
            _this16.showTips = true;
          }
          _this16.noticeList = data.broadcastPresentersVos;
          _this16.RcUserInfo = new RongIMLib.UserInfo(data.viewerId, data.userName, data.userHeadingUrl);
          _this16.initRongCloud();
          _this16.$nextTick(function () {
            var _this = _this16;
            var videoEl = document.getElementById('video');
            videoEl.addEventListener('play', function () {
              _this.clickMaskFlag = true;
            });
            _this16.contentHeight = _this16.$refs.contentWrap.clientHeight;
          });
        } else if (data.status === 2 || data.status === 4) {
          var _tip = '';
          switch (data.status) {
            case 2:
              _tip = '无权参加直播';
              break;
            case 4:
              _tip = '未购买课程';
              break;
          }
          (0, _mintUi.Toast)(_tip);
          _this16.$router.replace({
            name: 'onlineCourseList'
          });
        }
      }, function () {}, this);
    },
    /**
     * 未开始子组件的预约成功事件
    */
    orderFn: function orderFn() {
      this.getRoomInfo('emit');
    },
    /** 获取打赏礼物列表 */getGiftsList: function getGiftsList() {
      var _this17 = this;
      this._Util.post(this._Api.POST_COURSE_GET_GIFT_LIST, {}, function (data) {
        _this17.giftsList = data;
      }, function () {}, this, true);
    },
    /**
     * 礼物打赏
     * @param {string} giftName 礼物名称
     * @param {number} giftCode 礼物支付code
     * @param {string} giftPrice 礼物价格
     */
    giftReward: (0, _throttleDebounce.debounce)(350, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4(giftName, giftCode, giftPrice) {
        var _this18 = this;
        return _regenerator.default.wrap(function (_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              if (giftPrice == 0) {
                this.addMessage(4, this.courseInfo.userHeadingUrl, this.courseInfo.userName, "\u9001\u51FA ".concat(giftName));
              } else {
                this._Util.post(this._Api.POST_COURSE_GIVE_REWARD, {
                  code: giftCode,
                  courseId: this.$route.query.courseId
                }, function (data) {
                  _this18._Util.wxPay(data.jsApiParameters, function () {
                    _this18.addMessage(4, _this18.courseInfo.userHeadingUrl, _this18.courseInfo.userName, "\u9001\u51FA ".concat(giftName));
                    (0, _mintUi.Toast)({
                      message: '支付成功',
                      position: 'middle',
                      duration: 1500
                    });
                  });
                }, function () {}, this);
              }
            case 1:
            case "end":
              return _context4.stop();
          }
        }, _callee4, this);
      }));
      return function (_x, _x2, _x3) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /** 初始化融云 */initRongCloud: function initRongCloud() {
      var that = this;
      RongIMLib.RongIMClient.init(that.appkey);
      // 连接状态监听器
      RongIMClient.setConnectionStatusListener({
        onChanged: function onChanged(status) {
          switch (status) {
            case RongIMLib.ConnectionStatus.CONNECTED:
              console.log('链接成功');
              break;
            case RongIMLib.ConnectionStatus.CONNECTING:
              console.log('正在链接');
              break;
            case RongIMLib.ConnectionStatus.DOMAIN_INCORRECT:
              console.log('域名不正确');
              break;
            case RongIMLib.ConnectionStatus.KICKED_OFFLINE_BY_OTHER_CLIENT:
              console.log('其他设备登录');
              break;
            case RongIMLib.ConnectionStatus.DISCONNECTED:
              console.log('断开连接');
              break;
            case RongIMLib.ConnectionStatus.NETWORK_UNAVAILABLE:
              console.log('网络不可用');
              break;
          }
        }
      });
      // 消息监听器
      RongIMClient.setOnReceiveMessageListener({
        // 接收到的消息
        onReceived: function onReceived(message) {
          console.log(message);
          var extra = message.content.extra;
          var uname = message.content.user.name;
          var avatar = message.content.user.portraitUri;
          var msg = message.content.content;
          var userId = message.senderUserId;
          switch (message.messageType) {
            case RongIMClient.MessageType.TextMessage:
              if (extra) {
                if (extra == 'P' || extra == 'C') {
                  console.log('主播正在切换直播，请等待....');
                  this.addMessage(5, null, null, '主播正在切换直播，请等待....');
                  return;
                } else if (extra == 'START') {
                  console.log('主播已经开始直播，请退出后重新进入');
                  this.addMessage(5, null, null, '主播已经开始直播，请退出后重新进入');
                  return;
                } else if (extra == 'END') {
                  console.log('本次课程已结束');
                  this.addMessage(5, null, null, '本次课程已结束');
                  return;
                } else if (extra == 'DASHANG') {
                  var giftName = msg.split(' ')[1];
                  that.addGiftBanner(giftName, uname, avatar);
                  if (giftName !== '老铁666') {
                    var _msg = "\u611F\u8C22 <span style=\"color:#FF702A\" >".concat(uname, "</span> \u9001\u51FA <span style=\"color:#FF702A\" >").concat(giftName, "</span>");
                    that.addMessage(2, that.courseInfo.anchorHeadingUrl, that.courseInfo.anchorName, _msg, userId, 'DASHANG');
                  }
                  return;
                } else if (extra == 'NOTICE') {
                  // 推送的福利内容
                  that.noticePopup(JSON.parse(msg), uname, avatar);
                  return;
                } else if (extra == 'TIPS') {
                  var noticeMsg = JSON.parse(msg);
                  that.courseInfo.content = '';
                  (0, _timers.setTimeout)(function () {
                    that.courseInfo.content = noticeMsg.content;
                  }, 200);
                  that.courseInfo.popupName = noticeMsg.popupName;
                  return;
                }
              }
              that.addMessage(2, avatar, uname, msg, userId);
              break;
            case RongIMClient.MessageType.VoiceMessage:
              // message.content.content => 格式为 AMR 的音频 base64
              break;
            case RongIMClient.MessageType.ImageMessage:
              that.addMessage(3, avatar, uname, message.content);
              break;
            case RongIMClient.MessageType.LocationMessage:
              // message.content.latiude => 纬度
              // message.content.longitude => 经度
              // message.content.content => 位置图片 base64
              break;
            case RongIMClient.MessageType.RichContentMessage:
              // message.content.content => 文本消息内容
              // message.content.imageUri => 图片 base64
              // message.content.url => 原图 URL
              break;
            case RongIMClient.MessageType.InformationNotificationMessage:
              break;
            case RongIMClient.MessageType.ContactNotificationMessage:
              break;
            case RongIMClient.MessageType.ProfileNotificationMessage:
              break;
            case RongIMClient.MessageType.CommandNotificationMessage:
              break;
            case RongIMClient.MessageType.CommandMessage:
              break;
            case RongIMClient.MessageType.UnknownMessage:
              break;
            default:
          }
        }
      });
      // 连接融云
      RongIMClient.connect(that.courseInfo.token, {
        onSuccess: function onSuccess(userId) {
          console.log('Connect successfully.' + userId);
          that.joinRoom(that.$route.query.courseId);
        },
        onTokenIncorrect: function onTokenIncorrect() {
          console.log('token无效');
        },
        onError: function onError(errorCode) {
          var info = '';
          switch (errorCode) {
            case RongIMLib.ErrorCode.TIMEOUT:
              info = '超时';
              break;
            case RongIMLib.ConnectionState.UNACCEPTABLE_PAROTOCOL_VERSION:
              info = '不可接受的协议版本';
              break;
            case RongIMLib.ConnectionState.IDENTIFIER_REJECTED:
              info = 'appkey不正确';
              break;
            case RongIMLib.ConnectionState.SERVER_UNAVAILABLE:
              info = '服务器不可用';
              break;
          }
          console.log(info);
          console.log(errorCode);
        }
      });
    },
    /**
     * 加入聊天室
     * @param {string} courseId 当前被课程id
     */
    joinRoom: function joinRoom(courseId) {
      RongIMClient.getInstance().joinChatRoom(courseId, -1, {
        onSuccess: function onSuccess() {
          console.log('加入聊天室成功');
          this.join = true;
        },
        onError: function onError() {
          console.log('加入聊天室失败');
          this.join = false;
        }
      });
    },
    /**
     * 退出聊天室
     */
    quitRoom: function quitRoom() {
      if (this.courseInfo.status === 0) {
        RongIMClient.getInstance().quitChatRoom(this.courseId, {
          onSuccess: function onSuccess() {
            console.log('退出聊天室成功');
          },
          onError: function onError() {
            console.log('退出聊天室失败');
          }
        });
      }
    },
    /** 
     * 发送消息
     */
    sendMessage: function sendMessage() {
      if (this.sendMessageValue.trim() === '') {
        return (0, _mintUi.Toast)({
          message: '请输入有效信息',
          position: 'middle',
          duration: 1000
        });
      }
      this.curIndex = 2;
      this.sendMsgByApi(this.sendMessageValue);
    },
    /**
     * 发送留言消息
     * @param {string} message 留言信息
     */
    sendMsgByApi: function sendMsgByApi(message) {
      var _this19 = this;
      this._Util.post(this._Api.POST_COURSE_SEND_MESSAGE_NEW, {
        courseId: this.$route.query.courseId,
        content: message
      }, function (data) {
        _this19.addMessage(1, _this19.courseInfo.userHeadingUrl, _this19.courseInfo.userName, _this19.sendMessageValue);
        _this19.sendMessageValue = '';
      }, function () {}, this, true);
    },
    /**
     * 限制不同类型消息的数量
     * 当满足数量时，删除同类型消息的第一条
     * @param {string} msgType 消息类型
     * @param {number} limit 限制的数量
     */
    limitMessage: function limitMessage(msgType, limit) {
      var _msgList = this.messageList.filter(function (v) {
        return v.type === msgType;
      });
      if (_msgList.length > limit) {
        this.messageList.splice(this.messageList.findIndex(function (v) {
          return v.index === _msgList[0].index;
        }), 1);
      }
    },
    /**
     * 插入一条新的聊天记录
     * @param {number} messageType 插入的消息类型 1：我的消息  2：其他用户的消息  3：红包  4：打赏消息  5：直播相关提示信息 6.福利卡片
     * @param {string} uavatar 发布消息人的头像
     * @param {string} uname 发布消息人的姓名
     * @param {object} umessage 发布的消息  （当messageType为3时，则是红包详情信息）
     * @param {string} uId 发布消息人id (仅当messageType为2时存在)
     * @param {Boolean} isDASHANG 该条消息是否是打赏完成后自动推送的消息
     */
    addMessage: function addMessage(messageType, uavatar, uname, umessage, uId, isDASHANG) {
      if (this.curIndex === 1) {
        if (uId === '-30000' && (messageType === 2 || messageType === 3 || messageType === 6)) {
          this.hasNewMsg = true;
        }
      } else if (this.curIndex === 2 && messageType !== 1) {
        this.hasNewMsg = true;
      }
      if (messageType === 5) {
        this.messageList.push({
          index: messageNum++,
          message: umessage,
          type: messageType
        });
        this.limitMessage(messageType, 5);
      } else if (messageType === 4) {
        var that = this;
        var msg = new RongIMLib.TextMessage({
          content: umessage,
          user: that.RcUserInfo,
          extra: 'DASHANG'
        });
        that.showGiftWrap = false;
        that.addGiftBanner(umessage.split(' ')[1], uname, uavatar);
        RongIMClient.getInstance().sendMessage(RongIMLib.ConversationType.CHATROOM, this.$route.query.courseId, msg, {
          onSuccess: function onSuccess(message) {
            console.log('Send successfully:' + JSON.stringify(message.content));
            that.curIndex = 2;
            if (message.content.extra == 'DASHANG') {
              var _uname = message.content.user.name;
              // eslint-disable-next-line no-unused-vars
              var avatar = message.content.user.portraitUri;
              var _msg2 = message.content.content;
              var giftName = _msg2.split(' ')[1];
              var userId = message.senderUserId;

              // that.addGiftBanner(giftName, uname, avatar );

              if (giftName !== '老铁666') {
                var _msg = "\u611F\u8C22 <span style=\"color:#EE4545\" >".concat(_uname, "</span> \u9001\u51FA <span style=\"color:#EE4545\" >").concat(giftName, "</span>");
                that.addMessage(2, that.courseInfo.anchorHeadingUrl, that.courseInfo.anchorName, _msg, userId, 'DASHANG');
              }
            }
          },
          onError: function onError(errorCode, message) {
            var info = '';
            switch (errorCode) {
              case RongIMLib.ErrorCode.TIMEOUT:
                info = '超时';
                break;
              case RongIMLib.ErrorCode.UNKNOWN_ERROR:
                info = '未知错误';
                break;
              case RongIMLib.ErrorCode.REJECTED_BY_BLACKLIST:
                info = '在黑名单中，无法向对方发送消息';
                break;
              case RongIMLib.ErrorCode.NOT_IN_DISCUSSION:
                info = '不在讨论组中';
                break;
              case RongIMLib.ErrorCode.NOT_IN_GROUP:
                info = '不在群组中';
                break;
              case RongIMLib.ErrorCode.NOT_IN_CHATROOM:
                info = '不在聊天室中';
                break;
              default:
                info = '您已被禁言';
                break;
            }
            console.log('发送失败:' + info);
          }
        });
      } else if (messageType === 3) {
        var redPack = {
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage.content,
          bg: umessage.imageUri,
          type: messageType,
          extra: _objectSpread({
            amountFinal: '',
            status: '',
            isOpen: false
          }, JSON.parse(umessage.extra))
        };
        this.messageList.push(redPack);
        this.hostMesList.push(redPack);
        this.limitMessage(messageType, 5);
      } else if (messageType === 6) {
        var _welfare = {
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage || {},
          type: messageType
        };
        this.messageList.push(_welfare);
        this.hostMesList.push(_welfare);
      } else {
        var mesObj = {
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage,
          type: messageType,
          uId: uId,
          isDASHANG: isDASHANG === 'DASHANG'
        };
        this.messageList.push(mesObj);
        if (messageType === 2) {
          this.hostMesList.push(mesObj);
        }
        this.limitMessage(messageType, 40);
      }
      this.scrollToBottom(messageType, uId);
    },
    /** 
     * 大火箭飞动画
     */
    bigRocket: function bigRocket() {
      var _num = rocketNum++;
      var _height = (0, _jquery.default)('.courseLive').height() - (0, _jquery.default)('.inputWrap').height() - (0, _jquery.default)('.videoWrap').height() - 70;
      var _randTop = Math.floor(Math.random() * _height) + 230;
      var _rocket = '<img class="rocket" style="top: ' + _randTop + 'px" id=' + 'rocket' + _num + ' src="http://static1.kaxiuyun.com/static/img/bigRocket.png" alt="">';
      (0, _jquery.default)('.courseLive').append(_rocket);
      (0, _jquery.default)('#rocket' + _num).animate({
        left: '50%'
      }, 300);
      (0, _timers.setTimeout)(function () {
        (0, _jquery.default)('#rocket' + _num).animate({
          left: '300%'
        }, 300, 'linear', function () {
          (0, _jquery.default)(this).remove();
        });
      }, 1500, _num);
    },
    /**
     * 增加一条礼物横幅
     * @param {string} giftName 礼物名称
     * @param {string} userName 打赏人姓名
     * @param {string} userAvatar 打赏人头像
     */
    addGiftBanner: function addGiftBanner(giftName, userName, userAvatar) {
      var transform = {
        '老铁666': {
          duration: 1000,
          url: '666'
        },
        '太棒了': {
          duration: 2000,
          url: 'good'
        },
        '比心': {
          duration: 2000,
          url: 'star'
        },
        '么么哒': {
          duration: 2000,
          url: 'mua'
        },
        '来一杯': {
          duration: 2000,
          url: 'beer'
        },
        '老司机': {
          duration: 4000,
          url: 'driver'
        },
        '跑车': {
          duration: 4000,
          url: 'car'
        },
        '火箭': {
          duration: 6000,
          url: 'rocket'
        }
      };
      var _num = giftBannerNum++;
      var _limit = giftName == '老铁666' || giftName == '太棒了' || giftName == '比心' ? 'limit_10' : 'limit_20';
      var _banner = "<div class=\"bannerItem ".concat(_limit, "\" id=\"").concat(_num, "\">\n          <img class=\"avatar\" src=\"").concat(userAvatar, "\" alt=\"\">\n          <div class=\"rightContent\">\n            <p>").concat(userName, "</p>\n            <p>\u9001\u51FA ").concat(giftName, "</p>\n          </div>\n          <img class=\"giftImg\" src=\"http://static1.kaxiuyun.com/static/img/").concat(transform[giftName].url, ".png\" alt=\"\">\n        </div>");
      if ((0, _jquery.default)('.' + _limit).length >= _limit.split('_')[1]) return;
      if (transform[giftName].duration < 4000) {
        (0, _jquery.default)('.giftBanner').append(_banner).children().last().animate({
          left: '0px',
          opacity: '1'
        }, 200);
      } else {
        (0, _jquery.default)('.giftBanner').prepend(_banner).children().first().animate({
          left: '0px',
          opacity: '1'
        }, 200);
      }
      if (giftName == '火箭') {
        this.bigRocket();
      }
      (0, _timers.setTimeout)(function () {
        (0, _jquery.default)('#' + _num).animate({
          left: '-100%',
          opacity: '0',
          height: '0'
        }, 300, 'linear', function () {
          (0, _jquery.default)(this).remove();
        });
      }, transform[giftName].duration || 1500, _num);
    },
    /** 
     * 开始自动生成点赞图片
     */
    randomLikeImg: function randomLikeImg() {
      var timeCounter = (1 - Math.random() * 1) * 1800;
      this.assistImg();
      (0, _jquery.default)('.likeImgWrap img').each(function () {
        var bottom = (0, _jquery.default)(this).css('bottom');
        if (bottom == '400px') {
          (0, _jquery.default)(this).remove();
        }
      });
      this.assisTimer = (0, _timers.setTimeout)(this.randomLikeImg, timeCounter);
    },
    /**
     * 随机生成单个点赞图片
     * @param {string} source 来源为 用户点击
     */
    assistImg: function assistImg(source) {
      if (source === 'click') {
        likeNum++;
        this._Util.sensorsCollect('element_click', {
          $element_name: '直播点赞',
          $element_content: '直播点赞',
          $element_class_name: 'iconBtn',
          $element_type: 'div',
          $element_target_url: '',
          $url: window.location.href,
          $title: this.courseInfo.courseName,
          moudle_type: '直播',
          correlation_id: this.$route.query.courseId,
          operation_page: '直播详情'
        });
      }
      var num = Math.floor(Math.random() * 8 + 1);
      var rand = 20 - Math.floor(Math.random() * 100);
      (0, _jquery.default)('.likeImgWrap').append("<img class=\"likeImg\" src=\"https://static1.kaxiuyun.com/static/img/".concat(num, ".png\">"));
      (0, _jquery.default)('.likeImgWrap img').animate({
        bottom: '400px',
        opacity: '0',
        left: rand + 'px'
      }, (Math.random() * 3 + 3) * 1000);
    },
    /**
     * 输入框 聚焦与否 相关逻辑变化
     * @param {boolean} isShowSendBtn 是否展示发送按钮
     */
    focusOrNot: function focusOrNot(isShowSendBtn) {
      this.showSendBtn = isShowSendBtn;
      this.scrollToBottom();
    },
    /** 
     * 聊天记录自动滚动到底部 
     * @param {String} type 触发滚动的形式， 自己发的消息成功后应该滚动到页面底部
    */
    scrollToBottom: function scrollToBottom(type, uId) {
      if (this.curIndex === 1) {
        // 主持人tab页
        if (type === 'click') {
          this.$refs.hostMes.toBottom();
          return;
        }
        if (this.autoScroll && (type === 3 || type === 6 || type === 2) && uId === '-30000') {
          this.$refs.hostMes.toBottom();
        }
      } else if (this.curIndex === 2) {
        // 聊天室tab
        if (type === 'click' || type === 1) {
          (0, _jquery.default)('#messageList').animate({
            scrollTop: 100000
          }, 300);
          return;
        }
        if (this.autoScroll) {
          this.$nextTick(function () {
            (0, _jquery.default)('#messageList').animate({
              scrollTop: 100000
            }, 300);
          });
        }
      }
    },
    /** 
     * 监听用户滚动聊天记录的行为
     */
    listenScroll: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
      var messageDOM, _height;
      return _regenerator.default.wrap(function (_context5) {
        while (1) switch (_context5.prev = _context5.next) {
          case 0:
            messageDOM = (0, _jquery.default)('#messageList')[0];
            _height = messageDOM.scrollHeight - messageDOM.clientHeight - messageDOM.scrollTop;
            if (_height < 100) {
              this.autoScroll = true;
              this.hasNewMsg = false;
              console.log('开始自动滚动');
            } else {
              this.autoScroll = false;
              console.log('停止自动滚动');
            }
          case 1:
          case "end":
            return _context5.stop();
        }
      }, _callee5, this);
    }))),
    /** 
     * 主持人列表组件传递过来的页面滚动事件
     * @param {Boolean} flag 是否能自动滚动到底部
     */
    chageAutoScrollFn: function chageAutoScrollFn(flag) {
      if (flag) {
        this.hasNewMsg = false;
      }
      this.autoScroll = flag;
    },
    /**
     * 打开红包输入口令窗口
     * @param {number} index 当前红包的索引
     * @param {object} packageInfo 当前红包信息
     */
    openRedBox: function openRedBox(index, packageInfo) {
      this.currentPackageIndex = index;
      this.errNum = '';
      this.currentErrTips = '';
      this.packageCommandValue = '';
      this.showOpenRedpackage = true;
      this.showPackageDetail = false;
      this.currentPackageInfo = packageInfo;
    },
    /** 
     * 拆红包 按钮逻辑 
    */
    openRedPackage: (0, _throttleDebounce.throttle)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
      var _this20 = this;
      var _packCommandInfo;
      return _regenerator.default.wrap(function (_context6) {
        while (1) switch (_context6.prev = _context6.next) {
          case 0:
            if (this.curIndex === 2) {
              _packCommandInfo = this.messageList.find(function (v) {
                return v.index === _this20.currentPackageIndex;
              }).extra;
            } else {
              _packCommandInfo = this.hostMesList.find(function (v) {
                return v.index === _this20.currentPackageIndex;
              }).extra;
            }
            if (!(this.packageCommandValue !== _packCommandInfo.hbCommand)) {
              _context6.next = 1;
              break;
            }
            if (this.errNum < 3) {
              this.errNum === '' ? this.errNum = 1 : this.errNum++;
              this.currentErrTips = _packCommandInfo['hbTip' + this.errNum] ? _packCommandInfo['hbTip' + this.errNum] : this.currentErrTips;
            }
            return _context6.abrupt("return");
          case 1:
            this._Util.post(this._Api.POST_COURSE_OPEN_REDPACKAGE, {
              id: _packCommandInfo.id
            }, function (data) {
              _packCommandInfo.isOpen = true;
              _packCommandInfo.amountFinal = data.amountFinal;
              _packCommandInfo.status = data.status;
              _this20.currentPackageInfo = _packCommandInfo;
            }, function () {}, this);
          case 2:
          case "end":
            return _context6.stop();
        }
      }, _callee6, this);
    }))),
    /** 
     * 获取红包领取人详情列表
     */
    getLuckerList: function getLuckerList() {
      var _this21 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        presenters_id: this.currentPackageInfo.id,
        code: 'benben_red_detail',
        pageSize: 200,
        pageNum: 1
      }, function (data) {
        _this21.showPackageDetail = true;
        _this21.luckerList = data.dataList;
      }, function () {}, this);
    },
    /** 
     * 全屏按钮 
    */
    fullScreen: function fullScreen() {
      var video = this.$refs.video;
      video.play();
      video.webkitEnterFullscreen && video.webkitEnterFullscreen(); // For Webkit
      video.mozRequestFullScreen && video.mozRequestFullScreen(); // For Firefox
    },
    /** 
     * 全屏变化的相关逻辑
     */
    fullscreenchange: function fullscreenchange(e) {
      var el = document.webkitFullscreenElement;
      this.isFullscreen = !!el;
      if (this._Util.isApp() && el) {
        api.setScreenOrientation({
          orientation: 'landscape_left'
        });
      }
    },
    /**
     * 定时发送点赞数量 
    */
    sendLikeNum: function sendLikeNum() {
      this._Util.post(this._Api.POST_COURSE_LIKE_COURSE, {
        courseId: this.$route.query.courseId,
        likeNum: likeNum
      }, function (data) {
        likeNum = 0;
      }, function () {}, this, true);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(435);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_02342a16_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1035);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2555)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-02342a16"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_02342a16_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_02342a16_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveWelfare_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2556);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5e99633b", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".judge-item[data-v-02342a16]{padding:0 .8rem;background:#fff}.judge-item [v-cloak][data-v-02342a16]{display:none}.judge-item .cont[data-v-02342a16]{padding:.6rem 0;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.judge-item .cont[data-v-02342a16]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.judge-item .cont img[data-v-02342a16]{width:.8rem;height:.8rem;margin-right:.6rem}.judge-item .cont .mid[data-v-02342a16]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.judge-item .cont .mid p[data-v-02342a16]{color:#333;font:700 14px/1rem PingFangSC-Semibold}.judge-item .cont .mid p i[data-v-02342a16]{font-style:normal;color:#999;font:11px/.75rem PingFangSC-Regular}.judge-item .cont .mid span[data-v-02342a16]{margin-top:.1rem;color:#333;font:12px/.85rem PingFangSC-Regular}.judge-item .cont .right[data-v-02342a16]{width:3.6rem;height:1.2rem;color:#fff;font:12px/1.2rem PingFangSC-Regular;border-radius:.6rem;background:#177afa;text-align:center}.judge-item .cont .arror[data-v-02342a16]{width:.25rem;height:.4rem;background:url(" + escape(__webpack_require__(147)) + ") no-repeat;background-size:100% 100%}.hr[data-v-02342a16]{height:.4rem;background:#f4f5f6}.balance[data-v-02342a16]{padding:.8rem;background:#fff;position:relative}.balance .item[data-v-02342a16]{margin-top:.4rem;border-radius:.3rem;background:#fff6eb;height:1.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .3rem 0 .6rem;position:relative}.balance .item[data-v-02342a16]:first-child{margin:0}.balance .item[data-v-02342a16]:after{content:\"\";position:absolute;left:0;top:0;border:1px solid rgba(255,122,56,.4);border-radius:.6rem;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top}.balance .item p[data-v-02342a16]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:700 14px/1rem PingFangSC-Semibold;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.balance .item .bal-btn[data-v-02342a16]{margin-left:.4rem;width:3.6rem;height:1.2rem;color:#fff;font:12px/1.2rem PingFangSC-Regular;border-radius:.6rem;background:#ff7a37;text-align:center}.balance .line[data-v-02342a16]{position:absolute;width:-webkit-calc(100% - 1.6rem);width:calc(100% - 1.6rem);bottom:0;height:1px;left:.8rem;background:#eee;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5)}.welfare-box[data-v-02342a16]{background:#fff;padding:0 .8rem}.welfare-box li[data-v-02342a16]{position:relative;padding:.8rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.welfare-box li[data-v-02342a16]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.welfare-box li img[data-v-02342a16]{width:5rem;height:4.675rem;border-radius:.3rem;margin-right:.6rem}.welfare-box li .right-box[data-v-02342a16]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.475rem}.welfare-box li .right-box.no-img[data-v-02342a16]{min-height:auto}.welfare-box li .right-box.no-img .btn-box[data-v-02342a16]{position:static;margin-top:.8rem}.welfare-box li .right-box p[data-v-02342a16]{color:#333;font:700 16px/1rem PingFangSC-Medium;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.welfare-box li .right-box .btn-box[data-v-02342a16]{position:absolute;right:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.welfare-box li .right-box .btn-box.flex-end[data-v-02342a16]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.welfare-box li .right-box .btn-box .price[data-v-02342a16]{color:#ff3f3f;font:700 14px/1rem PingFangSC-Semibold}.welfare-box li .right-box .btn-box .price span[data-v-02342a16]{margin-left:2px;font:700 14px/1rem PingFangSC-Semibold}.welfare-box li .right-box .btn-box .type-btn[data-v-02342a16]{width:3.4rem;height:1.425rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#ff3f3f;border-radius:1.25rem}.welfare-box li .right-box .btn-box .type-btn span[data-v-02342a16]{color:#fff;font:700 12px/1 PingFangSC-Semibold}.welfare-box li .right-box .btn-box .type-btn.disable[data-v-02342a16]{background:#ccc}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _toast.default.name, _toast.default),
  props: {
    noticeList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    courseInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      defaultAddress: {},
      listBenefits: [],
      hasPhoneFlag: false,
      orderDetail: {},
      addressList: [] // 地址列表
    };
  },
  watch: {
    defaultAddress: function defaultAddress(val) {
      this.$emit('defaultAddressChange', val);
    },
    addressList: function addressList(val) {
      this.$emit('addressListChange', val);
    }
  },
  mounted: function mounted() {
    this.getAddressList();
    this.getListBenefits();
    this.hasPhone();
  },
  methods: {
    /**
     * 获取地址列表,并设置默认地址数据
     */
    getAddressList: function getAddressList() {
      var _this = this;
      this._Util.post(this._Api.POST_ADDRESS_GET_LIST, {}, function (data) {
        if (data && data.length > 0) {
          _this.addressList = data;
          if (data.some(function (item) {
            return item.isDefault === 1;
          })) {
            data.forEach(function (v) {
              if (v.isDefault === 1) {
                _this.defaultAddress = v;
              }
            });
          } else {
            _this.defaultAddress = {};
          }
        } else {
          _this.addressList = [];
          _this.defaultAddress = {};
        }
      }, function () {}, this);
    },
    /**
     * 获取尾款列表
     */
    getListBenefits: function getListBenefits() {
      var _this2 = this;
      this._Util.post(this._Api.BALANCE.LIST_BENEFITS, {}, function (data) {
        // alert(JSON.stringify(data))
        if (data && data.length > 0) {
          _this2.listBenefits = data;
        } else {
          _this2.listBenefits = [];
        }
      }, function () {}, this);
    },
    /**
     * 判断是否有手机号
     */
    hasPhone: function hasPhone() {
      var _this3 = this;
      this._Util.post(this._Api.BALANCE.HAS_PHONE, {}, function (data) {
        if (data) {
          _this3.hasPhoneFlag = data;
        }
        _this3.$emit('hasPhoneFn', _this3.hasPhoneFlag);
      }, function () {}, this);
    },
    /**
     * 支付尾款
     * @param {Object} item 当前福利内容
    */
    getBalanceDetail: function getBalanceDetail(item) {
      var _this4 = this;
      this._Util.post(this._Api.BALANCE.DETAIL_BENEFIT_ORDER, {
        orderId: item.orderId
      }, function (data) {
        _this4.orderDetail = data || {};
        _this4.$emit('showPayPop', _this4.orderDetail);
      }, function () {}, this);
    },
    /**
     * 唤起父组件的todetail方法
     * @param {Object} item 当前福利内容
    */
    toDetailEmit: function toDetailEmit(item) {
      if (!this.hasPhoneFlag) {
        (0, _toast.default)({
          message: '请先认证手机号',
          position: 'middle'
        });
        this.chickAddress(2);
        return;
      }
      this.$emit('parentToDetail', item);
      this._Util.sensorsCollect('element_click', {
        $element_name: '抢直播福利-福利页',
        $element_content: '抢直播福利-福利页',
        $element_class_name: '',
        $element_type: 'li',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: item.benefitsId,
        operation_page: '直播详情'
      });
    },
    /**
     * 唤起父组件的打开收货地址的弹窗
     * @param {Number} type 1 有地址 0 没有默认地址 2. 点击了认证区域
    */
    chickAddress: function chickAddress(type) {
      if (!type) {
        type = this.defaultAddress.id ? 1 : this.addressList.length ? 1 : 0;
      }
      this.$bus.$emit('openParentPop', type);
    },
    /**
     * 唤起父组件的打开收货地址的弹窗
    */
    clickPayAddress: function clickPayAddress() {
      if (this.orderDetail.province || this.orderDetail.city) {
        this.$bus.$emit('openParentPop', 1);
      } else {
        this.$bus.$emit('openParentPop', 0);
      }
    },
    /**
     * 修改付尾款地址
     * @param {Object} addressData 父组件传递过来的修改后的数据
    */
    chagebalanAdsress: function chagebalanAdsress(addressData) {
      this._Util.post(this._Api.BALANCE.EDIT_ORDER_ADDRESS, {
        orderId: this.orderDetail.orderId,
        address: addressData.address,
        city: addressData.city,
        district: addressData.district,
        province: addressData.province,
        receiveName: addressData.receiveName,
        receivePhone: addressData.receivePhone
      }, function (data) {
        console.log('修改地址成功');
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"welfare"},[_c('div',{staticClass:"judge-item",on:{"click":function($event){return _vm.chickAddress(2)}}},[(!_vm.hasPhoneFlag)?_c('div',{staticClass:"cont"},[_c('img',{attrs:{"src":__webpack_require__(2557),"alt":"icon"}}),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"right"},[_vm._v("\n        立即认证\n      ")])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"judge-item",on:{"click":function($event){return _vm.chickAddress('')}}},[_c('div',{staticClass:"cont",staticStyle:{"border":"none"}},[_c('img',{attrs:{"src":__webpack_require__(2558),"alt":"icon"}}),_vm._v(" "),_c('div',{staticClass:"mid"},[_vm._m(1),_vm._v(" "),(_vm.defaultAddress.id)?_c('span',[_vm._v(_vm._s(_vm.defaultAddress.province + _vm.defaultAddress.city + _vm.defaultAddress.dist + _vm.defaultAddress.address))]):_c('span',[_vm._v(_vm._s(_vm.addressList.length ? '请选择收货地址' : '暂无收货地址，点击完善'))])]),_vm._v(" "),_c('div',{staticClass:"arror"})])]),_vm._v(" "),_c('div',{staticClass:"hr"}),_vm._v(" "),(_vm.listBenefits.length)?_c('div',{staticClass:"balance"},[_vm._l((_vm.listBenefits),function(item){return _c('div',{key:item.orderId,staticClass:"item",on:{"click":function($event){return _vm.getBalanceDetail(item)}}},[_c('p',[_vm._v(_vm._s(item.benefitsName))]),_vm._v(" "),_c('div',{staticClass:"bal-btn"},[_vm._v("支付尾款")])])}),_vm._v(" "),_c('div',{staticClass:"line"})],2):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"welfare-box"},_vm._l((_vm.noticeList),function(item){return _c('li',{key:item.benefitsId,style:({'padding-bottom': item.content ? '0.8rem': '0.6rem'}),on:{"click":function($event){$event.stopPropagation();return _vm.toDetailEmit(item)}}},[(item.content.length)?_c('img',{attrs:{"src":item.content[0] + '?imageView2/2/w/150',"alt":"福利图片"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !item.content.length},style:({'margin-top': item.content.length ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('div',{staticClass:"btn-box",class:{'flex-end': item.popupType !== 1 || item.mdsePersonPrice === -1}},[(item.popupType === 1 && item.mdsePersonPrice > 0)?_c('div',{staticClass:"price"},[(item.paymentType === 2)?_c('span',[_vm._v("定金:")]):_vm._e(),_vm._v("￥"),_c('span',[_vm._v(_vm._s(item.paymentType === 1 ? item.mdsePersonPrice : item.mdseFortPersonPrice))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"type-btn",class:{'disable': item.hasStock === 0 || item.mdsePersonPrice === -1 || item.buyNum}},[_c('span',[_vm._v(_vm._s((item.mdsePersonPrice === -1 || item.buyNum) ? '已购买' : '马上抢'))])])])])])}),0)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mid"},[_c('p',[_vm._v("认证手机号")]),_vm._v(" "),_c('span',[_vm._v("发放会员、星豆及其他中奖奖品联系你")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v("收货地址"),_c('i',[_vm._v("(实物商品将邮寄至下方地址)")])])}]
module.exports = __webpack_require__.p + "static/img/phone.e008236.png";module.exports = __webpack_require__.p + "static/img/address.6007e1a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(292);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_028c502d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(879);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2075)
  __webpack_require__(2077)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-028c502d"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_028c502d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_028c502d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveHostMesList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2076);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("70c908ec", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".list-enter-active,.list-leave-active{-webkit-transition:all .8s;transition:all .8s}.list-enter{opacity:0;-webkit-transform:translateY(30px);-ms-transform:translateY(30px);transform:translateY(30px)}.list-leave-to{opacity:0;-webkit-transform:translateY(-80px);-ms-transform:translateY(-80px);transform:translateY(-80px)}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2078);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("24f934ee", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".host-mes[data-v-028c502d]{background:#f4f5f6;height:100%;width:100%;overflow-y:auto;padding-bottom:.2rem;position:relative}.host-mes .other-msg[data-v-028c502d]{position:fixed;bottom:3.05rem;right:0;width:45%;text-align:right;pointer-events:none}.host-mes .other-msg li[data-v-028c502d]{margin-top:.3rem;max-width:100%;font-size:0;pointer-events:none}.host-mes .other-msg li span[data-v-028c502d]{display:inline-block;max-width:100%;height:1.2rem;padding:0 .4rem;background:rgba(0,0,0,.5);color:#fff;font:12px/1.2rem PingFangSC-Regular;border-radius:.6rem 0 0 .6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.host-mes .other-msg li span.no-bg[data-v-028c502d]{background:none}.host-mes .opposite[data-v-028c502d]{text-align:left;padding:.8rem 0 0 .6rem}.host-mes .opposite .ds-tips[data-v-028c502d]{text-align:center;color:#999;font:14px/1rem PingFangSC-Regular;padding:.3rem 0 .8rem;display:block;margin:0}.host-mes .opposite img[data-v-028c502d]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.host-mes .opposite>div[data-v-028c502d]{margin-left:.5rem;display:inline-block}.host-mes .opposite>div .uname[data-v-028c502d]{color:#ff3f3f;font:13px/.925rem PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.host-mes .opposite>div .umessage[data-v-028c502d]{position:relative;display:inline-block;text-align:left;max-width:12rem;word-wrap:break-word;white-space:pre-wrap;padding:.4rem .6rem;background-color:#fff;border-radius:0 .25rem .25rem .25rem;color:#333;font:16px/1.05rem PingFangSC-Regular;margin-top:.2rem}.host-mes .opposite>div .umessage.card[data-v-028c502d]{max-width:100%;width:15.75rem;padding:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.host-mes .opposite>div .umessage.card img[data-v-028c502d]{width:5rem;height:4.675rem;border-radius:.3rem;margin-right:.6rem}.host-mes .opposite>div .umessage.card .right-box[data-v-028c502d]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.475rem}.host-mes .opposite>div .umessage.card .right-box.no-img[data-v-028c502d]{min-height:auto}.host-mes .opposite>div .umessage.card .right-box.no-img .btn-box[data-v-028c502d]{position:static;margin-top:.8rem}.host-mes .opposite>div .umessage.card .right-box p[data-v-028c502d]{color:#333;font:700 16px/1rem PingFangSC-Medium;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.host-mes .opposite>div .umessage.card .right-box .btn-box[data-v-028c502d]{position:absolute;right:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.host-mes .opposite>div .umessage.card .right-box .btn-box.flex-end[data-v-028c502d]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.host-mes .opposite>div .umessage.card .right-box .btn-box .price[data-v-028c502d]{color:#ff3f3f;font:700 14px/1rem PingFangSC-Semibold}.host-mes .opposite>div .umessage.card .right-box .btn-box .price span[data-v-028c502d]{color:#ff3f3f;font:700 14px/1rem PingFangSC-Semibold;margin-left:2px}.host-mes .opposite>div .umessage.card .right-box .btn-box .type-btn[data-v-028c502d]{width:3.4rem;height:1.425rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#ff3f3f;border-radius:1.25rem}.host-mes .opposite>div .umessage.card .right-box .btn-box .type-btn span[data-v-028c502d]{color:#fff;font:700 12px/1 PingFangSC-Semibold}.host-mes .opposite>div .umessage.card .right-box .btn-box .type-btn.disable[data-v-028c502d]{background:#ccc}.host-mes .redPackage[data-v-028c502d]{text-align:left;padding:.5rem 0 0 .5rem}.host-mes .redPackage img[data-v-028c502d]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.host-mes .redPackage>div[data-v-028c502d]{margin-left:.5rem;display:inline-block}.host-mes .redPackage>div .uname[data-v-028c502d]{color:#666;font:13px/.925rem PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.host-mes .redPackage>div .package[data-v-028c502d]{text-align:left;width:12.75rem;padding:.675rem .625rem;background-color:#f39b41;border-radius:.2rem;overflow:hidden;margin-top:.2rem}.host-mes .redPackage>div .package img[data-v-028c502d]{background-color:#f39b41;margin-top:.2rem;width:1.75rem;height:2.25rem;float:left}.host-mes .redPackage>div .package span[data-v-028c502d]{float:left;color:#fff;font:16px/1.25rem PingFangSC-Regular;max-width:75%;margin-left:.5rem}.host-mes .system[data-v-028c502d]{text-align:center;font-size:.6rem;color:#666;padding:1rem 0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _throttleDebounce = __webpack_require__(21);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    hostMesList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    courseInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      presentList: [],
      otherMsg: [],
      // 其他用户发来的消息
      timer: null,
      timer2: null
    };
  },
  watch: {
    hostMesList: function hostMesList(val) {
      var _this = this;
      clearTimeout(this.timer);
      var tempArr = val.filter(function (item) {
        return item.uId !== '-30000';
      });
      if (tempArr && tempArr.length) {
        var tempLe = tempArr.length;
        if (tempArr[tempLe - 1]) {
          this.otherMsg.push(tempArr[tempLe - 1]);
          if (this.otherMsg.length > 5) {
            this.otherMsg.splice(0, 1);
          }
          this.timer = setTimeout(function () {
            _this.clearMsg();
          }, 5000);
        }
      }
    }
  },
  mounted: function mounted() {},
  methods: {
    /**
     * 当长时间没有人发消息时，需要将聊天数据逐条清楚
    */
    clearMsg: function clearMsg() {
      var _this2 = this;
      if (this.otherMsg.length) {
        clearTimeout(this.timer2);
        if (this.otherMsg.every(function (item) {
          return item.message === '';
        })) {
          this.otherMsg.length = [];
          return;
        }
        this.timer2 = setTimeout(function () {
          _this2.otherMsg.splice(0, 1);
          // this.otherMsg.push({
          //   message: '',
          //   type: 2,
          //   index: new Date().getTime()
          // })
          _this2.clearMsg();
        }, 1000);
      }
    },
    /**
     * 滚动到页面底部
    */
    toBottom: function toBottom() {
      (0, _jquery.default)('#scroll-box').animate({
        scrollTop: 100000
      }, 300);
    },
    /**
     * 唤起父组件提醒主持人事件
     * @param {String} name 主持人名称
    */
    atUserEmit: function atUserEmit(name) {
      this.$emit('atUserParent', name);
    },
    /**
     * 唤起父组件的todetail方法
     * @param {Object} item 当前福利内容
    */
    toDetailEmit: function toDetailEmit(item) {
      this._Util.sensorsCollect('element_click', {
        $element_name: '抢直播福利-主持人页',
        $element_content: '抢直播福利-主持人页',
        $element_class_name: 'opposite',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: item.benefitsId,
        operation_page: '直播详情'
      });
      this.$emit('parentToDetail2', item);
    },
    /**
     * 唤起父组件的打开红包方法
     * @param {Number} index 当前红包索引
     * @param {Object} boxObj 当前红包数据
    */
    openRedBoxEmit: function openRedBoxEmit(index, boxObj) {
      this.$emit('openRedBoxParent', index, boxObj);
    },
    /**
     * 唤起父组件的打开红包方法
     * @param {Number} index 当前红包索引
     * @param {Object} boxObj 当前红包数据
    */
    listenScrollEmit: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var messageDOM, _height;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            messageDOM = document.getElementById('scroll-box');
            _height = messageDOM.scrollHeight - messageDOM.clientHeight - messageDOM.scrollTop;
            if (_height < 100) {
              this.$emit('chageAutoScroll', true);
              console.log('开始自动滚动,能自动滚动到底部');
            } else {
              this.$emit('chageAutoScroll', false);
              console.log('停止自动滚动');
            }
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    })))
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"host-mes",attrs:{"id":"scroll-box"},on:{"scroll":_vm.listenScrollEmit}},[_vm._l((_vm.hostMesList),function(v){return _c('div',{key:v.index},[(v.type === 2 && v.uId === '-30000')?_c('div',{staticClass:"opposite"},[_c('img',{attrs:{"src":v.avatar,"alt":""},on:{"click":function($event){return _vm.atUserEmit(v.name)}}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage"},[_vm._v(_vm._s(v.message))])])]):_vm._e(),_vm._v(" "),(v.type === 3)?_c('div',{staticClass:"redPackage",on:{"click":function($event){return _vm.openRedBoxEmit(v.index, v.extra)}}},[_c('img',{attrs:{"src":v.avatar,"alt":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"package"},[_c('img',{attrs:{"src":v.bg,"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.message))])])])]):_vm._e(),_vm._v(" "),(v.type === 6)?_c('div',{staticClass:"opposite",on:{"click":function($event){$event.stopPropagation();return _vm.toDetailEmit(v.message)}}},[_c('img',{attrs:{"src":v.avatar,"alt":""},on:{"click":function($event){return _vm.atUser(v.name)}}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage card"},[(v.message.content.length)?_c('img',{attrs:{"src":v.message.content[0] + '?imageView2/2/w/150',"alt":"福利图片"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !v.message.content.length},style:({'margin-top': v.message.content ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(v.message.title))]),_vm._v(" "),_c('div',{staticClass:"btn-box",class:{'flex-end': v.message.popupType !== 1 || v.message.mdsePersonPrice === -1}},[(v.message.popupType === 1 && v.message.mdsePersonPrice > 0)?_c('div',{staticClass:"price"},[(v.message.paymentType === 2)?_c('span',[_vm._v("定金:")]):_vm._e(),_vm._v("￥"),_c('span',[_vm._v(_vm._s(v.message.paymentType === 1 ? v.message.mdsePersonPrice : v.message.mdseFortPersonPrice))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"type-btn",class:{'disable': (v.message.mdsePersonPrice === -1 || v.message.buyNum)}},[_c('span',[_vm._v(_vm._s((v.message.mdsePersonPrice === -1 || v.message.buyNum) ? '已购买' : '马上抢'))])])])])])])]):_vm._e()])}),_vm._v(" "),_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.otherMsg.length),expression:"otherMsg.length"}],staticClass:"other-msg"},[_c('transition-group',{attrs:{"name":"list","tag":"div"}},_vm._l((_vm.otherMsg),function(item,index){return _c('li',{key:index + item.message},[(item.type === 2 && item.uId !== '-30000')?_c('span',{class:{'no-bg': !item.message}},[_vm._v("\n          "+_vm._s(item.message)+"\n        ")]):_vm._e()])}),0)],1)],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(293);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4225fdfa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(880);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2079)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4225fdfa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4225fdfa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4225fdfa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_liveCourseWare_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2080);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6dfa3524", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-ware[data-v-4225fdfa]{background:#fff;padding:.4rem .8rem;height:100%}.course-ware ul li[data-v-4225fdfa]{margin-top:.8rem;border-radius:.3rem;overflow:hidden;position:relative}.course-ware ul li .mask[data-v-4225fdfa]{position:absolute;width:100%;height:100%;border-radius:.3rem;background:#000;top:0;left:0;z-index:10;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.course-ware ul li .mask img[data-v-4225fdfa]{width:1.6rem;height:1.6rem}.course-ware ul li[data-v-4225fdfa]:first-child{margin:0}.course-ware ul li>img[data-v-4225fdfa]{width:100%;height:auto;border-radius:.3rem}.course-ware .refresh-btn[data-v-4225fdfa]{position:fixed;bottom:3.2rem;right:.8rem;width:2.4rem;height:2.4rem;background:#fff;z-index:11;border-radius:.3rem;box-shadow:0 12px 24px 0 rgba(68,68,68,.15);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-ware .refresh-btn img[data-v-4225fdfa]{width:1.2rem;height:1.2rem}.course-ware .refresh-btn img.load[data-v-4225fdfa]{animation:mymove-data-v-4225fdfa s 1;-webkit-animation:mymove-data-v-4225fdfa .5s 1}@keyframes mymove-data-v-4225fdfa{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes mymove-data-v-4225fdfa{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    noticeList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    courseInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      wareList: [],
      refreshLoading: false
    };
  },
  mounted: function mounted() {},
  methods: {
    /** 
     * 获取课件数据并将课件列表跳转至锁定的上一张课件顶部
     */
    getWarelist: function getWarelist() {
      var _this = this;
      this.wareList = [];
      this._Util.post(this._Api.POST_COURSE_LIVE_WARE_LIST, {
        courseId: this.$route.query.courseId
      }, function (data) {
        if (data) {
          var hideIndex = 0;
          var topList = [];
          _this.wareList = data;
          for (var i = 0; i < _this.wareList.length; i++) {
            if (_this.wareList[i].wareLockingStatus) {
              hideIndex = i;
              break;
            }
          }
          _this.$nextTick(function () {
            var liEl = document.querySelectorAll('.course-ware li');
            liEl.forEach(function (item) {
              topList.push(item.offsetTop);
            });
            document.querySelector('.course-ware').scrollTop = topList[hideIndex - 1];
          });
        }
      }, function () {}, this);
    },
    /**
     * 唤起父组件的todetail方法
     * @param {Object} item 当前福利内容
    */
    toDetailEmit: function toDetailEmit(item) {
      this.$emit('parentToDetail', item);
    },
    /** 
     * 刷新课件
     */
    refreshFn: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this2 = this;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            this.refreshLoading = true;
            setTimeout(function () {
              _this2.refreshLoading = false;
            }, 500);
            this._Util.sensorsCollect('element_click', {
              $element_name: '刷新课件',
              $element_content: '刷新课件',
              $element_class_name: 'refresh-btn',
              $element_type: 'div',
              $element_target_url: '',
              $url: window.location.href,
              $title: this.courseInfo.courseName,
              moudle_type: '直播',
              correlation_id: this.$route.query.courseId,
              operation_page: '直播详情'
            });
            this.getWarelist();
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /** 
     * 浏览单张图片
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"course-ware",staticStyle:{"overflow-y":"auto"}},[_c('ul',_vm._l((_vm.wareList),function(item){return _c('li',{key:item.sort},[_c('img',{attrs:{"src":item.wareUrl,"alt":"课件"},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.wareUrl, [])}}}),_vm._v(" "),(item.wareLockingStatus)?_c('div',{staticClass:"mask"},[_c('img',{attrs:{"src":__webpack_require__(2081),"alt":""}})]):_vm._e()])}),0),_vm._v(" "),_c('div',{staticClass:"refresh-btn",on:{"click":_vm.refreshFn}},[_c('img',{class:{'load': _vm.refreshLoading},attrs:{"src":__webpack_require__(2082),"alt":"刷新"}})])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/warelock.ef2c694.png";module.exports = __webpack_require__.p + "static/img/refresh.165b185.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(436);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_63d2fe0b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1036);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2560)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-63d2fe0b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_63d2fe0b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_63d2fe0b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_course_no_start_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2561);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("79952b50", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-no-start[data-v-63d2fe0b]{height:100%}.course-no-start .up-box[data-v-63d2fe0b]{background:#fff;padding:.8rem}.course-no-start .up-box.more-pad[data-v-63d2fe0b]{padding-bottom:2.4rem}.course-no-start .up-box>p[data-v-63d2fe0b]{color:#333;font:700 22px/1.55rem PingFangSC-Semibold}.course-no-start .up-box .time[data-v-63d2fe0b]{margin-top:.2rem;color:#666;font:14px/1rem PingFangSC-Regular}.course-no-start .up-box .teachers[data-v-63d2fe0b]{margin-top:1.2rem}.course-no-start .up-box .teachers li[data-v-63d2fe0b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.8rem}.course-no-start .up-box .teachers li[data-v-63d2fe0b]:first-child{margin:0}.course-no-start .up-box .teachers li img[data-v-63d2fe0b]{width:1.8rem;height:1.8rem;border-radius:50%;margin-right:.6rem}.course-no-start .up-box .teachers li .middle[data-v-63d2fe0b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-top:.15rem}.course-no-start .up-box .teachers li .middle .name[data-v-63d2fe0b]{color:#333;font:14px/1 PingFangSC-Regular}.course-no-start .up-box .teachers li .middle>span[data-v-63d2fe0b]{margin-top:.3rem;color:#999;font:12px/1 PingFangSC-Regular}.course-no-start .up-box .teachers li .follow[data-v-63d2fe0b]{width:3.2rem;height:1.2rem;border:1px solid #999;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:.7rem;color:#999;font:12px/.8rem PingFangSC-Regular}.course-no-start .up-box .teachers li .follow.followed[data-v-63d2fe0b]{color:#ccc;border-color:#ccc}.course-no-start .up-box .end-box[data-v-63d2fe0b]{text-align:center;padding:2.65rem 0 0;font-size:0}.course-no-start .up-box .end-box .end-text[data-v-63d2fe0b]{margin-top:.4rem;color:#999;font:16px/1.25rem PingFangSC-Regular}.course-no-start .up-box .order-box[data-v-63d2fe0b]{margin-top:2.2rem}.course-no-start .up-box .order-box .order-btn[data-v-63d2fe0b]{height:2.4rem;border-radius:1.3rem;background:#177afa;box-shadow:0 4px 8px 0 rgba(23,122,250,.25);text-align:center;color:#fff;font:16px/2.4rem PingFangSC-Regular}.course-no-start .up-box .order-box .order-btn.ordered[data-v-63d2fe0b]{box-shadow:none;background:#f4f5f6;color:#177afa}.course-no-start .up-box .order-box .order-btn.ordered .van-icon[data-v-63d2fe0b]{top:.15rem;margin-right:.4rem}.course-no-start .up-box .order-box .cutdown[data-v-63d2fe0b]{margin-top:.6rem;text-align:center}.course-no-start .up-box .order-box .cutdown span[data-v-63d2fe0b]{color:#999;font:14px/1rem PingFangSC-Regular}.course-no-start .up-box .order-box .cutdown .van-count-down[data-v-63d2fe0b]{margin-left:2px;display:inline;color:#999;font:14px/1rem PingFangSC-Regular}.course-no-start .up-box .host-list[data-v-63d2fe0b]{margin-top:1.8rem}.course-no-start .up-box .host-list>p[data-v-63d2fe0b]{color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.course-no-start .up-box .host-list .host-btns[data-v-63d2fe0b]{padding:.8rem 0 0;font-size:0}.course-no-start .up-box .host-list .host-btns .btn-item[data-v-63d2fe0b]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:-webkit-calc((100% - .8rem)/3);width:calc((100% - .8rem) / 3);height:1.8rem;border:1px solid #177afa;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:1rem;color:#177afa;font:14px/1 PingFangSC-Regular;margin-left:.4rem}.course-no-start .up-box .host-list .host-btns .btn-item[data-v-63d2fe0b]:first-child{margin:0}.course-no-start .hr[data-v-63d2fe0b]{height:.4rem;background:#f4f5f6}.course-no-start .down-box[data-v-63d2fe0b]{background:#fff;padding:.8rem}.course-no-start .down-box[data-v-63d2fe0b] img,.course-no-start .down-box[data-v-63d2fe0b] table,.course-no-start .down-box[data-v-63d2fe0b] video{max-width:100%;height:auto}.course-no-start .down-box[data-v-63d2fe0b] a{text-decoration:underline;color:#177afa}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _vant = __webpack_require__(12);
var _courseList = _interopRequireDefault(__webpack_require__(1423));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _toast.default.name, _toast.default), _countDown.default.name, _countDown.default), _icon.default.name, _icon.default), "CourseList", _courseList.default),
  props: {
    courseInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      courseList: [],
      // 热门课程列表
      userInfo: JSON.parse(localStorage.getItem('userInfo')),
      enjoyStatus: 0,
      // 畅享卡是否可以使用
      userStatus: 0,
      // 当前用户状态 0 未认证 1 已认证 3 已付费
      viewerId: '',
      countDownTime: ''
    };
  },
  computed: {
    isOrder: function isOrder() {
      if (!this.courseInfo.applyStatus) {
        return false;
      } else {
        return this.enjoyStatus === 1 && this.courseInfo.applyStatus !== 3 && this.courseInfo.applyStatus !== 4 || this.enjoyStatus != 1 && this.courseInfo.applyStatus !== 3 && this.courseInfo.applyStatus !== 4 && this.courseInfo.applyStatus !== 8;
      }
    }
  },
  mounted: function mounted() {
    this.getCourseList();
    if (this.courseInfo.startTime - new Date().getTime() < 0) {
      return;
    }
    var disTime = (this.courseInfo.startTime - new Date().getTime()) / 1000 / 60 / 60;
    if (disTime > 24) {
      console.log(disTime);
      this.countDownTime = Math.floor(disTime / 24) + '天';
    } else {
      this.countDownTime = this.courseInfo.startTime - new Date().getTime();
    }
  },
  methods: {
    /** 
     * 跳转到讲师页面 
     * @param {String} userId 当前用户的userid
    */
    goUserPage: function goUserPage(userId) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'otherPage' + userId,
            url: location.origin + '/v2/community/otherPage?userId=' + userId
          }
        });
      } else {
        this.$router.push({
          name: 'otherPage',
          query: {
            userId: userId
          }
        });
      }
    },
    /** 
     * 获取热门课程列表数据 
    */
    getCourseList: function getCourseList() {
      var _this = this;
      this._Util.post(this._Api.POST_COURSE_HOT_COURSE_LIST, {
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data) {
          _this.enjoyStatus = data.enjoyStatus;
          _this.userStatus = data.userStatus;
          _this.viewerId = data.viewerId;
          _this.courseList = data.courseList.slice(0, 5);
        }
      }, function () {}, this);
    },
    /** 
     * 关注讲师
     * @param {Object} item 当前讲师对象
     */
    followToggle: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(item) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (!(item.status === 1)) {
                _context.next = 1;
                break;
              }
              return _context.abrupt("return");
            case 1:
              this._Util.sensorsCollect('element_click', {
                $element_name: '关注主播',
                $element_content: '关注主播',
                $element_class_name: 'order-btn',
                $element_type: this.courseInfo.status === 1 ? '未开始' : '已结束',
                $element_target_url: '',
                $url: window.location.href,
                $title: this.courseInfo.courseName,
                moudle_type: '直播',
                correlation_id: this.$route.query.courseId,
                operation_page: '直播详情'
              });
              this._Util.post(this._Api.POST_COMMUNITY_USER_FOLLOW_TOGGLE, {
                userId: item.userId,
                status: 1
              }, function (data) {
                (0, _toast.default)({
                  message: '关注成功',
                  duration: 2000
                });
                item.status = 1;
                item.num++;
              }, function () {}, this);
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 
     * 预约直播
    */
    order: function order() {
      this._Util.sensorsCollect('element_click', {
        $element_name: '预约直播',
        $element_content: '预约直播',
        $element_class_name: 'order-btn',
        $element_type: this.courseInfo.status === 1 ? '未开始' : '已结束',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.$route.query.courseId,
        operation_page: '直播详情'
      });
      this.checkTicket(this.$route.query.courseId, 'reserve');
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var ticketData;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 1;
              return _this2.getTicketStatus(courseId);
            case 1:
              ticketData = _context2.sent;
              if (!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3) {
                // 课程已购买
                _this2.handleClick();
              } else if (ticketData.enjoyCardCanWatch == 1) {
                // 畅享卡
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                    </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '畅享卡免费观看'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this2._Util.post(_this2._Api.POST_PAY_TICKET, {
                      courseId: _this2.courseInfo.cid,
                      viewerId: _this2.viewerId
                    }, function (data) {
                      _this2.handleClick();
                    }, function () {}, _this2);
                  }
                });
              } else if (ticketData.cardNumLeft > 0) {
                // 剩余听课券>0
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                    </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this2._Util.post(_this2._Api.POST_PAY_TICKET, {
                      courseId: _this2.courseInfo.cid,
                      viewerId: _this2.viewerId
                    }, function (data) {
                      _this2.handleClick();
                    }, function () {}, _this2);
                  }
                });
              } else {
                // 没有听课券
                if (_this2._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'liveContainer',
                      url: location.origin + '/v2/shopping/shareTicket?course_id=' + _this2.courseInfo.cid + '&viewer_id=' + _this2.viewerId
                    }
                  });
                } else {
                  location.href = location.origin + '/v2/shopping/shareTicket?course_id=' + _this2.courseInfo.cid + '&viewer_id=' + _this2.viewerId;
                }
              }
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 提示预约成功
     */
    handleClick: function handleClick() {
      this.$emit('orderSuccess');
      (0, _toast.default)({
        message: '预约成功',
        icon: 'passed'
      });
    },
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: _this3.courseInfo.cid
        }, function (data) {
          resolve(data);
        }, function () {}, _this3);
      });
    },
    /** 
     * 查看直播回放
    */
    toPlayBack: function toPlayBack() {
      var url = location.origin + '/v2/shopping/courseDetail?courseId=' + this.courseInfo.cid + '&courseType=1';
      this._Util.sensorsCollect('element_click', {
        $element_name: '点击观看直播回放',
        $element_content: '点击观看直播回放',
        $element_class_name: 'order-btn',
        $element_type: this.courseInfo.status === 1 ? '未开始' : '已结束',
        $element_target_url: url,
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.$route.query.courseId,
        operation_page: '直播详情'
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'onlineCourseDetail',
            url: url
          }
        });
      } else {
        this.$router.push({
          name: 'onlineCourseDetail',
          query: {
            courseId: this.courseInfo.cid,
            curIndex: 1
          }
        });
      }
    },
    /** 
     * 页面跳转
     * @param {Number} type 跳转的页面标识 0 课堂首页（推荐tab） 1.直播回放 2.学习记录
    */
    toPage: function toPage(type) {
      var url = location.origin + '/v2/shopping/onlineCourseList?userStatus=' + this.userInfo.userStatus + '&curIndex=' + type;
      var element_name = '';
      switch (type) {
        case 0:
          element_name = '点击课程首页';
          break;
        case 1:
          element_name = '点击更多回放';
          break;
        case 2:
          element_name = '点击学习记录';
          break;
      }
      this._Util.sensorsCollect('element_click', {
        $element_name: element_name,
        $element_content: element_name,
        $element_class_name: 'btn-item',
        $element_type: this.courseInfo.status === 1 ? '未开始' : '已结束',
        $element_target_url: url,
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.$route.query.courseId,
        operation_page: '直播详情'
      });
      if (this._Util.isApp()) {
        api && api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'toOnlineCourse',
            url: url
          }
        });
      } else {
        this.$router.push({
          name: 'onlineCourseList',
          query: {
            userStatus: this.userInfo.userStatus,
            curIndex: type
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"course-no-start"},[_c('div',{staticClass:"up-box",class:{'more-pad': !_vm.courseInfo.broadContent}},[_c('p',[_vm._v(_vm._s(_vm.courseInfo.courseName))]),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v("直播时间："+_vm._s(_vm._Util.dateFormat(_vm.courseInfo.startTime, 'yyyy.MM.dd hh:mm')))]),_vm._v(" "),(_vm.courseInfo.status === 1 && _vm.courseInfo.selectLecturerList && _vm.courseInfo.selectLecturerList.length)?_c('ul',{staticClass:"teachers"},_vm._l((_vm.courseInfo.selectLecturerList),function(item){return _c('li',{key:item.id,on:{"click":function($event){return _vm.goUserPage(item.userId)}}},[_c('img',{attrs:{"src":item.headimgurl,"alt":"讲师"}}),_vm._v(" "),_c('div',{staticClass:"middle"},[_c('p',{staticClass:"name"},[_vm._v("讲师："+_vm._s(item.anchorName))]),_vm._v(" "),(item.num)?_c('span',[_vm._v(_vm._s(item.num)+"人关注")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"follow",class:{'followed': item.status === 1},on:{"click":function($event){$event.stopPropagation();return _vm.followToggle(item)}}},[_vm._v("\n          "+_vm._s(item.status === 1 ? '已关注': '关注讲师')+"\n        ")])])}),0):_vm._e(),_vm._v(" "),(_vm.courseInfo.status === 5 || _vm.courseInfo.status === 3)?_c('div',{staticClass:"end-box"},[_c('van-icon',{attrs:{"name":"clock","color":"#C2C8D0","size":"2.7rem"}}),_vm._v(" "),_c('p',{staticClass:"end-text"},[_vm._v("直播已结束")])],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"order-box"},[(_vm.courseInfo.status === 1 && !_vm.isOrder)?_c('div',{staticClass:"order-btn",on:{"click":_vm.order}},[_vm._v("预约直播抽福利")]):_vm._e(),_vm._v(" "),(_vm.courseInfo.status === 5)?_c('div',{staticClass:"order-btn",on:{"click":_vm.toPlayBack}},[_vm._v("观看直播回放")]):_vm._e(),_vm._v(" "),(_vm.courseInfo.status === 3)?_c('div',{staticClass:"order-btn ordered"},[_vm._v("回放生成中")]):_vm._e(),_vm._v(" "),(_vm.courseInfo.status === 1 && _vm.isOrder)?_c('div',{staticClass:"order-btn ordered"},[_c('van-icon',{attrs:{"name":"passed","color":"#177AFA"}}),_vm._v("预约成功，将在开播前提醒你")],1):_vm._e(),_vm._v(" "),(_vm.courseInfo.status === 1 && _vm.countDownTime)?_c('div',{staticClass:"cutdown"},[_c('span',[_vm._v("直播倒计时")]),_vm._v(" "),(typeof(_vm.countDownTime) !== 'number')?_c('div',{staticClass:"van-count-down"},[_vm._v(_vm._s(_vm.countDownTime))]):_c('van-count-down',{attrs:{"time":_vm.countDownTime}})],1):_vm._e()]),_vm._v(" "),((_vm.courseInfo.status === 1 && _vm.isOrder) || _vm.courseInfo.status !== 1)?_c('div',{staticClass:"host-list"},[_c('p',[_vm._v("近期热门课程")]),_vm._v(" "),_c('courseList',{attrs:{"course-list":_vm.courseList,"course-info":_vm.courseInfo,"parent":"courseLive"}}),_vm._v(" "),_c('div',{staticClass:"host-btns"},[_c('div',{staticClass:"btn-item",on:{"click":function($event){return _vm.toPage(0)}}},[_vm._v("课程首页")]),_vm._v(" "),_c('div',{staticClass:"btn-item",on:{"click":function($event){return _vm.toPage(1)}}},[_vm._v("更多回放")]),_vm._v(" "),_c('div',{staticClass:"btn-item",on:{"click":function($event){return _vm.toPage(2)}}},[_vm._v("学习记录")])])],1):_vm._e()]),_vm._v(" "),(_vm.courseInfo.broadContent)?_c('div',{staticClass:"hr"}):_vm._e(),_vm._v(" "),(_vm.courseInfo.broadContent)?_c('div',{staticClass:"down-box",domProps:{"innerHTML":_vm._s(_vm.courseInfo.broadContent)}}):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(437);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ef954a6e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1037);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2563)
  __webpack_require__(2565)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ef954a6e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ef954a6e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ef954a6e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_address_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2564);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2b307ab2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".address-component{border-radius:.4rem}.address-component .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.address-component .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.address-component .van-button--default{height:2.65rem;color:#333}.address-component .van-button--default .van-button__text{font-size:.9rem}.address-component .van-dialog__confirm{color:#177afa}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2566);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("106fe524", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".address-list[data-v-ef954a6e]{min-height:100%;background:#fff;padding-bottom:.4rem}.address-list .item[data-v-ef954a6e]{background:#fff;margin-bottom:.4rem}.address-list .item[data-v-ef954a6e]:last-child{margin:0}.address-list .item .up[data-v-ef954a6e]{padding:.8rem}.address-list .item .up p[data-v-ef954a6e]{color:#333;font:700 16px/1.25rem PingFangSC-Semibold}.address-list .item .up span[data-v-ef954a6e]{margin-top:.1rem;color:#333;font:14px/1rem PingFangSC-Regular}.address-list .item .hr[data-v-ef954a6e]{height:1px;background:#eee;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);margin:0 .8rem}.address-list .item .down[data-v-ef954a6e]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .8rem;height:2.2rem}.address-list .item .down .left[data-v-ef954a6e],.address-list .item .down[data-v-ef954a6e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.address-list .item .down .left[data-v-ef954a6e]{height:1rem}.address-list .item .down .left .ctrl[data-v-ef954a6e]{margin-left:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#999;font:14px/1rem PingFangSC-Regular}.address-list .item .down .left .ctrl img[data-v-ef954a6e]{width:.8rem;height:.8rem;margin-right:.35rem}.address-list .item .down .left .ctrl[data-v-ef954a6e]:first-child{margin:0}.address-list .item .down .right[data-v-ef954a6e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border:1px solid #177afa;border-radius:.6rem;width:4.2rem;height:1.2rem;color:#177afa;font:12px/1rem PingFangSC-Regular}.address-list .item .bot-line[data-v-ef954a6e]{height:.4rem;background:#f4f5f6}.address-list .auth-pop[data-v-ef954a6e]{width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem)}.address-list .auth-pop .wrap[data-v-ef954a6e]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.address-list .auth-pop .wrap .tit[data-v-ef954a6e]{height:2.75rem;position:relative;color:#333;font:700 17px/2.75rem PingFangSC-Semibold;text-align:center;background:#f6f6f6}.address-list .auth-pop .wrap .tit i[data-v-ef954a6e]{position:absolute;top:0;right:0;color:#666;font:14px/2.75rem PingFangSC-Regular;font-style:normal;padding:0 .8rem}.address-list .auth-pop .wrap .tit div[data-v-ef954a6e]{position:absolute;top:0;left:0;color:#666;font:400 14px/2.75rem PingFangSC-Regular;padding:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.address-list .auth-pop .wrap .tit div img[data-v-ef954a6e]{width:.35rem;height:.6rem;margin-right:.2rem;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.address-list .auth-pop .wrap .mid[data-v-ef954a6e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.address-list .auth-pop .wrap .pop-foot[data-v-ef954a6e]{position:relative;height:2.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.address-list .auth-pop .wrap .pop-foot[data-v-ef954a6e]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-top:1px solid #eee;pointer-events:none}.address-list .auth-pop .wrap .pop-foot .save[data-v-ef954a6e]{text-align:center;width:91.5%;height:2.3rem;background:#177afa;border-radius:.3rem;color:#fff;font:16px/2.3rem PingFangSC-Regular}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: (0, _defineProperty2.default)({}, _dialog.default.name, _dialog.default),
  props: {
    noticeList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    courseInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      showEditPop: false,
      curAddressId: '',
      addressList: []
    };
  },
  mounted: function mounted() {},
  methods: {
    /**
     * 获取地址列表,并设置默认地址数据
     */
    getAddressList: function getAddressList() {
      var _this = this;
      this._Util.post(this._Api.POST_ADDRESS_GET_LIST, {}, function (data) {
        if (data && data.length > 0) {
          _this.addressList = data;
        }
      }, function () {}, this);
    },
    saveAddress: function saveAddress() {
      this.$refs.edifAddress.saveAddressDetail();
    },
    /**
     * 删除当前地址
     * @param {Object} item: 需要删除的地址
     * @param {Number} index: 需要删除的地址索引
     */
    delLocation: function delLocation(item, index) {
      var _this2 = this;
      _dialog.default.confirm({
        title: '',
        message: '确认删除该地址',
        confirmButtonText: '确定',
        className: 'address-component'
      }).then(function () {
        _this2._Util.post(_this2._Api.POST_ADDRESS_DEL_ITEM, {
          id: item.id
        }, function (data) {
          (0, _toast.default)({
            message: '删除成功',
            position: 'middle',
            duration: 1500
          });
          _this2.addressList.splice(index, 1);
          _this2.$emit('setDefaultAddress');
        }, function () {}, _this2);
      }).catch(function (err) {
        console.log('取消开启' + err);
      });
    },
    /**
     * 设置默认地址
     * @param{addressInfo}
     */
    setDefaultAddress: function setDefaultAddress(addressInfo) {
      var _this3 = this;
      this._Util.post(this._Api.POST_ADDRESS_SET_DEFAULT, {
        id: addressInfo.id
      }, function (data) {
        (0, _toast.default)({
          message: '保存成功',
          position: 'middle'
        });
        _this3.$emit('setDefaultAddress');
      }, function () {}, this);
    },
    /**
     * 打开编辑弹窗
     * @param {Object} item 当前点击的地址对象
    */
    openPop: function openPop(item) {
      this.showEditPop = true;
      if (item && item.id) {
        this.curAddressId = item.id;
        // setTimeout(() => {
        //   this.$refs.edifAddress.parentGetLocationDetail(item.id)
        // }, 200)
        this.$emit('showEditPop', item.id);
      }
    },
    /**
     * 子组件保存地址成功的回调
    */
    childSaveAddressOk: function childSaveAddressOk(data) {
      this.showEditPop = false;
      this.$emit('setDefaultAddress');
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"address-list"},_vm._l((_vm.addressList),function(item,index){return _c('div',{key:item.id,staticClass:"item"},[_c('div',{staticClass:"up",on:{"click":function($event){$event.stopPropagation();return _vm.setDefaultAddress(item)}}},[_c('p',[_vm._v(_vm._s(item.receiptName)+" "+_vm._s(item.receiptPhone))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.province + item.city + item.dist + item.address))])]),_vm._v(" "),_c('div',{staticClass:"hr"}),_vm._v(" "),_c('div',{staticClass:"down"},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"ctrl",on:{"click":function($event){return _vm.openPop(item)}}},[_c('img',{attrs:{"src":__webpack_require__(2567),"alt":"编辑"}}),_vm._v("编辑\n        ")]),_vm._v(" "),_c('div',{staticClass:"ctrl",on:{"click":function($event){return _vm.delLocation(item, index)}}},[_c('img',{attrs:{"src":__webpack_require__(2568),"alt":"删除"}}),_vm._v("删除\n        ")])]),_vm._v(" "),_c('div',{staticClass:"right",on:{"click":function($event){$event.stopPropagation();return _vm.setDefaultAddress(item)}}},[_vm._v("\n        使用该地址\n      ")])]),_vm._v(" "),(_vm.addressList.length > 1)?_c('div',{staticClass:"bot-line"}):_vm._e()])}),0)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/edit2.51ffea3.png";module.exports = __webpack_require__.p + "static/img/delete.f4743d1.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(294);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_27152947_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(881);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2083)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-27152947"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_27152947_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_27152947_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_locationEdit_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2084);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1af312f4", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".arress-wrap[data-v-27152947]{background-color:#f2f9fe;padding:.2rem .6rem 0}.arress-wrap .row[data-v-27152947]{height:2.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}.arress-wrap .row[data-v-27152947]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #e6e6e6;pointer-events:none}.arress-wrap .row .title[data-v-27152947]{width:4.6rem;width:5rem;color:#333;font:16px/1rem PingFangSC-Regular}.arress-wrap .row .rightContent[data-v-27152947]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.arress-wrap .row .rightContent input[data-v-27152947],.arress-wrap .row .rightContent span[data-v-27152947]{width:100%;color:#333;font:16px/1rem PingFangSC-Regular}.arress-wrap .row .rightContent input[data-v-27152947]::-webkit-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.arress-wrap .row .rightContent input[data-v-27152947]:-ms-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.arress-wrap .row .rightContent input[data-v-27152947]::placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.arress-wrap .row .arrow[data-v-27152947]{position:relative}.arress-wrap .row .arrow[data-v-27152947]:after{content:\"\";width:.3rem;height:.5rem;background-image:url(" + escape(__webpack_require__(2085)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.arress-wrap .textarea[data-v-27152947]{min-height:4.13rem;border-bottom:1px solid #e6e6e6}.arress-wrap .textarea .title[data-v-27152947]{float:left;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;padding-top:.8rem}.arress-wrap .textarea .rightContent[data-v-27152947]{margin-left:4.6rem}.arress-wrap .textarea .rightContent textarea[data-v-27152947]{border:none;padding:.8rem .2rem .2rem;width:100%;height:4.13rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.arress-wrap .textarea .rightContent textarea[data-v-27152947]::-webkit-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.arress-wrap .textarea .rightContent textarea[data-v-27152947]:-ms-input-placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.arress-wrap .textarea .rightContent textarea[data-v-27152947]::placeholder{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.arress-wrap .saveBtn[data-v-27152947]{width:17.55rem;height:2.2rem;line-height:2.2rem;text-align:center;border-radius:.2rem;background:#0f75ff;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;margin:3.18rem auto 0}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/location_edit_arrow.2ddd936.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(259);
var _switch = _interopRequireDefault(__webpack_require__(260));
var _vueArea = _interopRequireDefault(__webpack_require__(1382));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: (0, _defineProperty2.default)({
    VueArea: _vueArea.default
  }, _switch.default.name, _switch.default),
  props: {
    pos: {
      type: String,
      default: function _default() {
        return '';
      }
    },
    curPopType: {
      type: Number,
      default: function _default() {
        return 1;
      }
    },
    orderAddress: {
      type: Object,
      default: function _default() {}
    }
  },
  data: function data() {
    return {
      showArea: false,
      address: '',
      city: '',
      dist: '',
      province: '',
      receiptName: '',
      receiptPhone: '',
      addressId: '',
      // 父组件传递的编辑地址的id
      checked: !(this.$route.query.addrLength > 0),
      timing: '',
      time: 0
    };
  },
  watch: {
    showArea: function showArea(val) {
      if (this.pos === 'course') {
        this.$bus.$emit('showAreaSelect', val);
      }
    }
  },
  mounted: function mounted() {
    var that = this;
    if (this.$route.query.address_id) {
      this.getAddressDetail();
    } else {
      var userinfo = JSON.parse(localStorage.getItem('userInfo'));
      this.receiptPhone = userinfo.uphone;
    }
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: that.$route.query.address_id,
      remark: '我的收货地址',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: that.$route.query.address_id,
        remark: '我的收货地址,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    onChange: function onChange(e) {
      console.log(e);
      this.checked = e;
    },
    /**
     * 父组件直接修改默认信息
     */
    changeCurAddress: function changeCurAddress(val) {
      this.addressId = '';
      this.address = val.address;
      this.city = val.city;
      this.dist = val.dist;
      this.province = val.province;
      this.receiptName = val.receiptName;
      this.receiptPhone = val.receiptPhone;
    },
    /**
     * 获取地址选择器组件中的结果
     */
    changeLocation: function changeLocation(data) {
      this.province = data.province;
      this.city = data.city;
      this.dist = data.area;
      this.showArea = false;
    },
    /**
     * 保存地址详情结果
     */
    saveAddressDetail: function saveAddressDetail() {
      var _this = this;
      if (!this.receiptName) {
        (0, _mintUi.Toast)({
          message: '请填写收货人姓名',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (!this.receiptPhone || this.receiptPhone.length !== 11) {
        (0, _mintUi.Toast)({
          message: '请正确填写11位手机号',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (!(this.province || this.city || this.dist)) {
        (0, _mintUi.Toast)({
          message: '请选择所在地区',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (!this.address) {
        (0, _mintUi.Toast)({
          message: '请填写详细地址',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      // if (this.curPopType === 10) { // 直播页面付尾款弹窗直接修改地址，不做保存处理
      //   this.$emit('childSaveAddress', {
      //     province: this.province,
      //     city: this.city,
      //     dist: this.dist,
      //     address: this.address,
      //     receiptName: this.receiptName,
      //     receiptPhone: this.receiptPhone
      //   })
      //   return
      // }
      this._Util.post(this._Api.POST_ADDRESS_SAVE_ITEM_DETAIL, {
        id: this.$route.query.address_id || '',
        province: this.province,
        city: this.city,
        district: this.dist,
        address: this.address,
        receiveName: this.receiptName,
        receivePhone: this.receiptPhone,
        defaultValue: this.checked
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '保存成功',
          position: 'bottom',
          duration: 1500
        });
        _this.$router.go(-1);
        // if (this.pos === 'course') {
        //   this.$emit('childSaveAddress')
        // } else {
        //   if (this._Util.isMPaaS()) {
        //     // eslint-disable-next-line no-undef
        //
        //   } else if (this._Util.isMiniApp()) {
        //     // eslint-disable-next-line no-undef
        //
        //   } else {
        //     this.$router.go(-1)
        //   }
        // }
      }, function () {}, this);
    },
    /**
     * 获取地址详情
     * @param {String} addressId 地址id
     */
    getAddressDetail: function getAddressDetail(addressId) {
      var _this2 = this;
      if (addressId) {
        this.addressId = addressId;
      }
      this._Util.post(this._Api.POST_ADDRESS_GET_ITEM_DETAIL, {
        id: addressId || this.$route.query.address_id
      }, function (data) {
        console.log(data);
        _this2.province = data.province;
        _this2.city = data.city;
        _this2.dist = data.district;
        _this2.address = data.address;
        _this2.receiptPhone = data.receivePhone;
        _this2.receiptName = data.receiveName;
        _this2.checked = data.defaultValue;
      }, function () {}, this);
    },
    /**
     * 父组件换唤起获取地址详情的方法
     * @param {String} addressId 地址id
     */
    parentGetLocationDetail: function parentGetLocationDetail(addressId) {
      this.getAddressDetail(addressId);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"arress-wrap",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"title"},[_vm._v("收货人")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.receiptName),expression:"receiptName"}],staticClass:"input",attrs:{"type":"text","placeholder":"请输入收货人姓名"},domProps:{"value":(_vm.receiptName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.receiptName=$event.target.value}}})])]),_vm._v(" "),_c('div',{staticClass:"row"},[_c('div',{staticClass:"title"},[_vm._v("手机号")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.receiptPhone),expression:"receiptPhone"}],staticClass:"input",attrs:{"type":"tel","maxlength":"11","placeholder":"请输入收货人手机号"},domProps:{"value":(_vm.receiptPhone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.receiptPhone=$event.target.value}}})])]),_vm._v(" "),_c('div',{staticClass:"row"},[_c('div',{staticClass:"title"},[_vm._v("所在地区")]),_vm._v(" "),_c('div',{staticClass:"rightContent arrow",on:{"click":function($event){_vm.showArea = true}}},[(!(_vm.province || _vm.city || _vm.dist))?_c('span',{staticStyle:{"color":"#999"}},[_vm._v("请选择省市区")]):_c('span',[_vm._v(_vm._s(_vm.province + _vm.city + _vm.dist))])])]),_vm._v(" "),_c('div',{staticClass:"row"},[_c('div',{staticClass:"title"},[_vm._v("详细地址")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.address),expression:"address"}],staticClass:"input",attrs:{"type":"text","placeholder":"街道门牌号"},domProps:{"value":(_vm.address)},on:{"input":function($event){if($event.target.composing){ return; }_vm.address=$event.target.value}}})])]),_vm._v(" "),_c('div',{staticClass:"row"},[_c('div',{staticClass:"title title2"},[_vm._v("设为默认地址")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('van-switch',{staticStyle:{"float":"right"},attrs:{"size":"24px"},on:{"change":_vm.onChange},model:{value:(_vm.checked),callback:function ($$v) {_vm.checked=$$v},expression:"checked"}})],1)]),_vm._v(" "),(_vm.pos !== 'course')?_c('div',{staticClass:"saveBtn",on:{"click":_vm.saveAddressDetail}},[_vm._v("保存")]):_vm._e(),_vm._v(" "),_c('Vue-area',{attrs:{"show":_vm.showArea},on:{"areaCancel":function($event){_vm.showArea = false},"checkedCity":_vm.changeLocation}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(438);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d471742_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1038);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2570)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0d471742"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d471742_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d471742_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_phone_auth_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2571);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("655605af", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".changephone-wrap[data-v-0d471742]{height:auto!important;min-height:100%}.box[data-v-0d471742]{padding:.75rem .8rem;overflow:hidden}.border-box[data-v-0d471742]{position:relative}.border-box[data-v-0d471742]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.box span[data-v-0d471742]{font-family:PingFangSC-Regular;font-size:18px;color:#333;height:20px;line-height:20px;float:left;padding-right:20px;text-align:left;position:relative;top:3px}.box input[data-v-0d471742]{float:left;font-family:PingFangSC-Regular;height:25px;line-height:25px;font-size:16px;color:#333;padding-left:7px;width:55%}.line[data-v-0d471742]{height:.4rem;background:#f4f5f6}input[data-v-0d471742]::-webkit-input-placeholder{font-size:16px;color:#999;font-family:PingFangSC-Regular}#phoneNum span[data-v-0d471742]:after{content:\"\\2228\";position:absolute;-webkit-transform:scale(.8,.4);-ms-transform:scale(.8,.4);transform:scale(.8,.4);top:1px;right:2px}#codeNum[data-v-0d471742]{margin-top:0}#codeNum span[data-v-0d471742]{border-right:1px solid #fff}#codeNum div[data-v-0d471742]{float:right;font-family:PingFangSC-Regular;font-size:16px;color:#333;height:25px;line-height:25px}#codeNum div.addCor[data-v-0d471742]{color:#377ee1}#codeNum input[data-v-0d471742]{width:38%}#scope[data-v-0d471742]{padding:0 .8rem}#scope p[data-v-0d471742]{color:#333;font:16px/1.25rem PingFangSC-Regular;margin:1.2rem 0 .6rem}#scope span[data-v-0d471742]{width:31%;height:2.05rem;text-align:center;background:#f5f5f5;display:inline-block;color:#333;font:15px/2.05rem PingFangSC-Regular;margin-bottom:.4rem;border-radius:.2rem}#scope span[data-v-0d471742]:not(:nth-of-type(3n)){margin-right:3%}#scope span.selcted[data-v-0d471742]{color:#177afa;background:#e7f1ff}.countryMask[data-v-0d471742]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1000;background:#f2f2f2}.country-item[data-v-0d471742]{width:100%;height:45px;overflow:hidden;font-size:16px;background:#fff}.country-item .name[data-v-0d471742]{float:left;width:67%;padding-left:3%;height:100%;line-height:45px}.country-item img[data-v-0d471742]{float:right;width:18px;height:18px;margin-right:20px;margin-top:15px}.redColor[data-v-0d471742]{color:#c13434}.v-modal[data-v-0d471742]{opacity:.7}.mint-msgbox[data-v-0d471742]{width:290px}.mint-msgbox .mint-msgbox-message[data-v-0d471742],.mint-msgbox .mint-msgbox-title[data-v-0d471742]{font-family:PingFangSC-Regular;font-size:20px;color:#353535;font-weight:400}.mint-msgbox .mint-msgbox-message[data-v-0d471742]{font-family:PingFangSC-Regular;font-size:18px;color:#353535;font-weight:400;line-height:28px;text-align:center}.mint-msgbox-btns[data-v-0d471742]{height:49px;line-height:49px}.mint-msgbox-btn[data-v-0d471742]{font-family:PingFangSC-Regular;font-size:18px;color:#ee4545}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = _interopRequireDefault(__webpack_require__(22));
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      res: [],
      resLast: '',
      noClick: false,
      valueArr: [],
      valueLastArr: [],
      showLast: false,
      myValue: '',
      // 业务范围传值
      iosOrAndroid: false,
      // 解决touch ios中报错
      codeNeed: '获取验证码',
      phoneNumber: '',
      uname: '',
      codePass: '',
      phoneTest: /^1[3456789]\d{9}$/,
      countryVal: '+86',
      showCountryList: false,
      countryList: [{
        name: '中国大陆',
        val: '+86',
        check: false
      }, {
        name: '香港',
        val: '+852',
        check: false
      }, {
        name: '澳门',
        val: '+853',
        check: false
      }, {
        name: '台湾',
        val: '+886',
        check: false
      }, {
        name: 'Angola',
        val: '+244',
        check: false
      }, {
        name: 'Malaysia',
        val: '+60',
        check: false
      }, {
        name: 'India',
        val: '+91',
        check: false
      }, {
        name: 'Algeria',
        val: '+213',
        check: false
      }, {
        name: 'Brazil',
        val: '+55',
        check: false
      }, {
        name: 'Czech',
        val: '+420',
        check: false
      }, {
        name: 'Ireland',
        val: '+353',
        check: false
      }, {
        name: 'Saudi Arabia',
        val: '+966',
        check: false
      }, {
        name: 'Singapore',
        val: '+65',
        check: false
      }, {
        name: 'Thailand',
        val: '+66',
        check: false
      }, {
        name: 'United States',
        val: '+1',
        check: false
      }, {
        name: 'Vietnam',
        val: '+84',
        check: false
      }, {
        name: 'Zimbabwe',
        val: '+263',
        check: false
      }]
    };
  },
  mounted: function mounted() {
    this.selcList();
    this.iosOrAndroid = this._Util.getUserAgent().platForm == 'ios';
    // console.log(this._Util.getUserAgent().platForm)
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      moduleType: '手机号',
      operate_page: '绑定手机号',
      optionType: '打开页面',
      param1: window.location.href
    }, this);
  },
  methods: {
    getCode: function getCode() {
      var that = this;
      if (that.noClick) {
        return;
      }
      // 发送短信验证码
      if (!that.phoneNumber) {
        (0, _mintUi.Toast)({
          message: '请输入手机号',
          position: 'middle'
        });
        return;
      }
      if (that.countryVal == '+86' && !that.phoneTest.test(that.phoneNumber)) {
        (0, _mintUi.Toast)({
          message: '手机号码格式不正确，请重新输入',
          position: 'middle'
        });
        return;
      }
      var phone = '';
      if (that.countryVal == '+86') {
        phone = that.phoneNumber;
      } else {
        phone = that.countryVal + '-' + that.phoneNumber;
      }
      that.$http.post(that._Api.HOSTOLD + 'api/common-api/member/sendMsg.json', {
        phone: phone
      }).then(function (response) {
        if (response.data.status == 500) {
          (0, _mintUi.Toast)({
            message: '手机号已存在',
            position: 'middle'
          });
          return;
        } else if (response.data.status == 200) {
          that.noClick = true;
          var timeDown = 59;
          that.codeNeed = '60秒后重新发送';
          var times = setInterval(function () {
            that.codeNeed = timeDown + '秒后重新发送';
            timeDown--;
            if (timeDown == 0) {
              clearInterval(times);
              that.noClick = false;
              that.codeNeed = '获取验证码';
            }
          }, 1000);
        }
      });
    },
    showCountryListEvent: function showCountryListEvent() {
      this.showCountryList = true;
      var _iterator = _createForOfIteratorHelper(this.countryList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          if (this.countryVal == v.val) {
            v.check = true;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    },
    getChose: function getChose(item) {
      var _iterator2 = _createForOfIteratorHelper(this.countryList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          v.check = false;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      item.check = true;
      this.countryVal = item.val;
      this.showCountryList = false;
    },
    savaUserInfo: function savaUserInfo() {
      var _this = this;
      var that = this;
      if (!that.phoneNumber) {
        (0, _mintUi.Toast)({
          message: '请输入手机号',
          position: 'middle'
        });
        return;
      }
      if (that.countryVal == '+86' && !that.phoneTest.test(that.phoneNumber)) {
        (0, _mintUi.Toast)({
          message: '请手机号码格式不正确，请重新输入',
          position: 'middle'
        });
        return;
      }
      if (that.myValue == '') {
        (0, _mintUi.Toast)({
          message: '请选择业务范围！',
          position: 'middle'
        });
        return;
      }
      var phone = '';
      if (that.countryVal == '+86') {
        phone = that.phoneNumber;
      } else {
        phone = that.countryVal + '-' + that.phoneNumber;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/common-api/member/checkCode.json', {
        phone: phone,
        inputCode: that.codePass
      }, function (data) {
        that._Util.post(that._Api.POST_MEMBER_USER_PHONE, {
          // 仅修改手机号，使用专门修改手机号的接口
          uphone: phone,
          inputCode: that.codePass
        }, function (data) {
          (0, _mintUi.Toast)({
            message: '恭喜你，认证成功！',
            position: 'middle'
          });
          _this.$emit('authPhoneSuccess');
        }, function () {}, that);
      }, function () {}, that, true);
    },
    // 获取选择列表接口
    selcList: function selcList() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/user-api/storeInfo/getProject.json', {}, function (data) {
        that.resLast = data[data.length - 1];
        data.pop();
        that.res = data;
      }, function () {}, that, true);
    },
    // 点击选择标签
    selectStyle: function selectStyle(item, index) {
      var that = this;
      if (item) {
        // 有传参
        that.showLast = false;
        that.valueLastArr = [];
        if (item.active) {
          _vue.default.set(item, 'active', false);
          that.valueArr.splice(that.valueArr.indexOf(item.value), 1);
        } else {
          _vue.default.set(item, 'active', true);
          that.valueArr.push(item.value);
        }
      } else {
        // 最后一个
        that.showLast = !that.showLast;
        for (var i = 0; i < that.res.length; i++) {
          _vue.default.set(that.res[i], 'active', false);
        }
        if (that.showLast) {
          // 选中
          that.valueArr = [];
          that.valueLastArr = [that.resLast.value];
        } else {
          that.valueLastArr = [];
        }
      }
      that.myValue = that.valueArr.concat(that.valueLastArr).join(',');
      // console.log(that.myValue)
    },
    // 标签传值接口
    PostValue: function PostValue() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/user-api/storeInfo/saveStoreInfo.json', {
        projectValue: that.myValue
      }, function (data) {}, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"changephone-wrap"},[(_vm.showCountryList)?_c('div',{staticClass:"countryMask"},_vm._l((_vm.countryList),function(v){return _c('div',{key:v.val,staticClass:"country-item",on:{"click":function($event){return _vm.getChose(v)}}},[_c('div',{staticClass:"name",class:{'redColor': v.check}},[_vm._v("\n        "+_vm._s(v.name)+" "+_vm._s(v.val)+"\n      ")]),_vm._v(" "),(v.check)?_c('img',{attrs:{"src":__webpack_require__(209)}}):_vm._e()])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"box border-box",attrs:{"id":"phoneNum"}},[_c('span',{on:{"click":function($event){return _vm.showCountryListEvent()}}},[_vm._v(_vm._s(_vm.countryVal))]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phoneNumber),expression:"phoneNumber"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],attrs:{"type":"tel","maxlength":"11","placeholder":"请输入手机号"},domProps:{"value":(_vm.phoneNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phoneNumber=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"box",attrs:{"id":"codeNum"}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.codePass),expression:"codePass"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],attrs:{"type":"tel","maxlength":"6","placeholder":"请输入验证码"},domProps:{"value":(_vm.codePass)},on:{"input":function($event){if($event.target.composing){ return; }_vm.codePass=$event.target.value}}}),_vm._v(" "),_c('div',{class:{addCor:_vm.noClick},attrs:{"disabled":_vm.noClick},on:{"click":function($event){return _vm.getCode()}}},[_vm._v(_vm._s(_vm.codeNeed))])]),_vm._v(" "),_c('div',{staticClass:"line"}),_vm._v(" "),_c('div',{attrs:{"id":"scope"}},[_c('p',[_vm._v("业务范围（可多选）")]),_vm._v(" "),_vm._l((_vm.res),function(item,index){return _c('span',{key:index,class:{selcted:item.active},on:{"click":function($event){return _vm.selectStyle(item,index)}}},[_vm._v(_vm._s(item.name))])}),_vm._v(" "),_c('span',{class:{selcted:_vm.showLast},on:{"click":function($event){return _vm.selectStyle()}}},[_vm._v(_vm._s(_vm.resLast.name))])],2)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/chose.2924cf4.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.courseInfo.status===0)?_c('div',{staticClass:"outContainer course-live-new needsclick"},[_c('div',{staticClass:"videoWrap"},[(!_vm.clickMaskFlag)?_c('div',{staticClass:"video-mask"},[_c('div',{staticClass:"mask-btn",on:{"click":function($event){$event.stopPropagation();return _vm.playVideo.apply(null, arguments)}}},[_c('img',{attrs:{"src":__webpack_require__(2572),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("立即播放")])])]):_vm._e(),_vm._v(" "),_c('video',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showOpenRedpackage),expression:"!showOpenRedpackage"}],ref:"video",attrs:{"id":"video","controls":"","controlsList":"nodownload","autoplay":"","webkit-playsinline":"","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","src":_vm.courseInfo.hlsLiveUrl},on:{"webkitfullscreenchange":_vm.fullscreenchange}})]),_vm._v(" "),_c('ul',{staticClass:"tab-box"},[_vm._l((_vm.tabList),function(item){return [(item.show)?_c('li',{key:item.id,class:{'active': item.id === _vm.curIndex},on:{"click":function($event){return _vm.changeIndex(item.id)}}},[(item.id === 4)?_c('img',{attrs:{"src":__webpack_require__(2573),"alt":"福利"}}):_vm._e(),_vm._v("\n        "+_vm._s(item.name)+"\n      ")]):_vm._e()]})],2),_vm._v(" "),_c('div',{ref:"contentWrap",staticClass:"contentWrap"},[(_vm.courseInfo.content && (_vm.curIndex === 2 || _vm.curIndex === 1))?_c('div',{staticClass:"noticeScrollWrap"},[_c('van-notice-bar',{staticStyle:{"height":"2.05rem"},attrs:{"background":"#FFF5EA","color":"#FF712A","text":_vm.courseInfo.content}})],1):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 2),expression:"curIndex === 2"}],staticClass:"chatWrap"},[_c('div',{staticClass:"giftBanner"}),_vm._v(" "),_c('div',{staticClass:"messageList",attrs:{"id":"messageList"},on:{"scroll":_vm.listenScroll}},_vm._l((_vm.messageList),function(v,i){return _c('div',{key:i},[(v.type===1)?_c('div',{staticClass:"self"},[_c('img',{attrs:{"src":v.avatar,"alt":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage"},[_vm._v(_vm._s(v.message))])])]):_vm._e(),_vm._v(" "),(v.type===2)?_c('div',{staticClass:"opposite"},[(v.isDASHANG)?[_c('div',{staticClass:"ds-tips",domProps:{"innerHTML":_vm._s(v.message)}},[_vm._v(_vm._s(v.message))])]:[_c('img',{attrs:{"src":v.avatar,"alt":""},on:{"click":function($event){return _vm.atUser(v.name)}}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage",style:({ color: v.uId === '-30000' ? '#FF3F3F' : '' })},[_vm._v(_vm._s(v.message))])])]],2):_vm._e(),_vm._v(" "),(v.type===3)?_c('div',{staticClass:"redPackage",on:{"click":function($event){return _vm.openRedBox(v.index, v.extra)}}},[_c('img',{attrs:{"src":v.avatar,"alt":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"package"},[_c('img',{attrs:{"src":v.bg,"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.message))])])])]):_vm._e(),_vm._v(" "),(v.type===5)?_c('div',{staticClass:"system"},[_vm._v("\n            "+_vm._s(v.message)+"\n          ")]):_vm._e(),_vm._v(" "),(v.type === 6)?_c('div',{staticClass:"opposite",on:{"click":function($event){return _vm.toDetail(v.message)}}},[_c('img',{attrs:{"src":v.avatar,"alt":""},on:{"click":function($event){return _vm.atUser(v.name)}}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage card"},[(v.message.content.length)?_c('img',{attrs:{"src":v.message.content[0] + '?imageView2/2/w/150',"alt":"福利图片"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !v.message.content.length},style:({'margin-top': v.message.content ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(v.message.title))]),_vm._v(" "),_c('div',{staticClass:"btn-box",class:{'flex-end': v.message.popupType !== 1 || v.message.mdsePersonPrice === -1}},[(v.message.popupType === 1 && v.message.mdsePersonPrice > 0)?_c('div',{staticClass:"price"},[(v.message.paymentType === 2)?_c('span',[_vm._v("定金:")]):_vm._e(),_vm._v("￥"),_c('span',[_vm._v(_vm._s(v.message.paymentType === 1 ? v.message.mdsePersonPrice : v.message.mdseFortPersonPrice))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"type-btn",class:{'disable': (v.message.mdsePersonPrice === -1 || v.message.buyNum)}},[_c('span',[_vm._v(_vm._s((v.message.mdsePersonPrice === -1 || v.message.buyNum) ? '已购买' : '马上抢'))])])])])])])]):_vm._e()])}),0)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 4),expression:"curIndex === 4"}],staticClass:"chatWrap",staticStyle:{"overflow-y":"auto"}},[_c('welfare',{ref:"welfare",attrs:{"course-info":_vm.courseInfo,"notice-list":_vm.noticeList},on:{"parentToDetail":_vm.toDetail,"defaultAddressChange":_vm.defaultAddressCb,"addressListChange":_vm.addressListChangeCb,"hasPhoneFn":_vm.hasPhoneCb,"showPayPop":_vm.showPayPopFn}}),_vm._v(" "),(!_vm.noticeList.length)?_c('div',{staticClass:"no-wel"},[_c('img',{attrs:{"src":__webpack_require__(1427),"alt":"福利缺省"}}),_vm._v(" "),_c('p',[_vm._v("主持人还没有发放福利哦")])]):_vm._e()],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 1),expression:"curIndex === 1"}],staticClass:"chatWrap"},[_c('hostMesList',{ref:"hostMes",attrs:{"host-mes-list":_vm.hostMesList},on:{"atUserParent":_vm.atUser,"openRedBoxParent":_vm.openRedBox,"parentToDetail2":_vm.toDetail,"chageAutoScroll":_vm.chageAutoScrollFn}})],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 3),expression:"curIndex === 3"}],staticClass:"chatWrap"},[_c('courseware',{ref:"courseware",attrs:{"course-info":_vm.courseInfo}})],1),_vm._v(" "),_c('transition',{attrs:{"name":"spread"}},[(_vm.isShowNotice)?_c('div',{staticClass:"spreadWrap",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"title"},[_vm._v("\n          福利\n          "),_c('div',{staticClass:"rightContent",on:{"click":_vm.closeNotice}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"noticeContent"},[_c('div',{staticClass:"noticeWrap"},[(_vm.currentNotice.content && _vm.currentNotice.popupType === 1)?_c('div',{staticClass:"htmlWrap",style:({paddingBottom: _vm.currentNotice.popupType === 1?'5.1rem':''})},[(_vm.currentNotice.content.length)?_vm._l((_vm.currentNotice.content),function(item,index){return _c('img',{key:index,staticClass:"wel-img",attrs:{"src":item,"alt":"福利图片"}})}):_c('p',[_vm._v(_vm._s(_vm.currentNotice.title))]),_vm._v(" "),(_vm.currentNotice.isVirtual === 0)?_c('div',{staticClass:"address",on:{"click":_vm.clickPayAddress}},[(_vm.defaultAddres2.id)?_c('div',{staticClass:"has-address"},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"phone"},[_c('span',[_vm._v(_vm._s(_vm.defaultAddres2.receiptName))]),_c('span',[_vm._v(_vm._s(_vm.defaultAddres2.receiptPhone))])]),_vm._v(" "),_c('div',{staticClass:"detail"},[_vm._v("收货地址："+_vm._s(_vm.defaultAddres2.province + _vm.defaultAddres2.city + _vm.defaultAddres2.dist + _vm.defaultAddres2.address))])]),_vm._v(" "),_c('div',{staticClass:"arror"})]):_c('div',{staticClass:"no-address"},[_vm._v("+ 请填写收货地址")])]):_vm._e()],2):(_vm.currentNotice.popupType === 2)?_c('div',[_c('draw-price',{ref:"drawPrice",attrs:{"lotteryno":_vm.currentNotice.lotteryNo}})],1):(_vm.currentNotice.popupType === 3)?_c('iframe',{style:({ height: ("calc(" + _vm.contentHeight + "px - 2.75rem)")}),attrs:{"id":"iframe","scrolling":"true","marginwidth":"0","marginheight":"0","align":"center","src":_vm.currentNotice.url,"frameborder":"0"}}):_vm._e(),_vm._v(" "),(_vm.currentNotice.popupType===1)?_c('div',{staticClass:"purchaseBtn"},[_c('div',{on:{"click":_vm.purchase}},[_vm._v("立即支付")])]):_vm._e()])])]):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":"slidedown"}},[(_vm.showInviteDetail)?_c('div',{staticClass:"invite-detail"},[_c('div',{staticClass:"title"},[_vm._v("\n          "+_vm._s(_vm.courseInfo.broadcastNoticeVo.title)+"\n          "),_c('div',{on:{"click":function($event){_vm.showInviteDetail=false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"invite-content"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"people-num"},[_c('div',[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.invitationCount))]),_vm._v(" "),_c('div',[_vm._v("你当前邀请人数")]),_vm._v(" "),_c('div',{staticClass:"share-session",on:{"click":function($event){return _vm.share($event, 'session')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/session.png","alt":"微信群"}}),_vm._v("\n                分享到微信群\n              ")]),_vm._v(" "),_c('div',{staticClass:"share-timeline",on:{"click":function($event){return _vm.share($event, 'timeline')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/timeline.png","alt":"朋友圈"}}),_vm._v("\n                分享到朋友圈\n              ")])]),_vm._v(" "),_c('div',{staticClass:"invite-rule",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.courseInfo.broadcastNoticeVo.detailedExplain))}}),_vm._v(" "),_c('div',{staticClass:"list-title"},[_vm._v("已邀请好友：")]),_vm._v(" "),(_vm.inviteList.length > 0)?_c('div',{staticClass:"invite-people"},_vm._l((_vm.inviteList),function(v,i){return _c('div',{key:i,staticClass:"invite-item"},[_c('img',{attrs:{"src":v.headimgurl,"alt":"头像"}}),_vm._v(" "),_c('div',{domProps:{"innerHTML":_vm._s(v.userName)}}),_vm._v(" "),_c('span',[_vm._v("已进入直播间")])])}),0):_c('div',{staticClass:"no-invite"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/no-invite.png","alt":"无邀请人"}}),_vm._v(" "),_c('p',[_vm._v("你暂时还未邀请好友")])])])],1)]):_vm._e()]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 2 || _vm.curIndex === 1),expression:"curIndex === 2 || curIndex === 1"}],staticClass:"inputWrap"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.hasNewMsg && !_vm.autoScroll),expression:"hasNewMsg && !autoScroll"}],staticClass:"new-msg-tip",on:{"click":function($event){$event.stopPropagation();return _vm.scrollToBottom('click')}}},[_vm._v("下方有新消息")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.sendMessageValue),expression:"sendMessageValue",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],ref:"input",attrs:{"maxlength":"50","type":"text","placeholder":"来说点什么......"},domProps:{"value":(_vm.sendMessageValue)},on:{"focus":function($event){return _vm.focusOrNot(true);},"blur":[function($event){return _vm.focusOrNot(false);},function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.sendMessageValue=$event.target.value.trim()}}}),_vm._v(" "),_c('div',{staticClass:"btn-wrap"},[_c('div',{staticClass:"likeImgWrap"}),_vm._v(" "),(_vm.showSendBtn||_vm.sendMessageValue)?_c('div',{staticClass:"sendBtn",on:{"click":_vm.sendMessage}},[_vm._v("发送")]):_c('div',[(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('div',{staticClass:"iconBtn",on:{"click":_vm.showInvitePopup}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"iconBtn",on:{"click":_vm.showGiftWrapFn}}),_vm._v(" "),_c('div',{staticClass:"iconBtn",on:{"click":function($event){return _vm.assistImg('click')}}})])])])],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showGiftWrap),expression:"showGiftWrap"}],staticClass:"giftMask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showGiftWrap=false;}}}),_vm._v(" "),_c('transition',{attrs:{"name":"slidedown"}},[(_vm.showGiftWrap)?_c('div',{staticClass:"giftWrap",on:{"click":function($event){$event.stopPropagation();}}},_vm._l((_vm.giftsList),function(v,i){return _c('div',{key:i,staticClass:"giftItem",on:{"click":function($event){return _vm.giftReward(v.name, v.code, v.price)}}},[_c('img',{attrs:{"src":v.img,"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.price===0?'免费':("价值:" + (v.price) + "元")))])])}),0):_vm._e()]),_vm._v(" "),_c('van-popup',{staticClass:"redpackageWrap",model:{value:(_vm.showOpenRedpackage),callback:function ($$v) {_vm.showOpenRedpackage=$$v},expression:"showOpenRedpackage"}},[(!_vm.currentPackageInfo.isOpen)?_c('div',{staticClass:"noOpen"},[_c('p',[_vm._v("输入口令，领取红包")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.packageCommandValue),expression:"packageCommandValue",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":"请输入红包口令"},domProps:{"value":(_vm.packageCommandValue)},on:{"input":function($event){if($event.target.composing){ return; }_vm.packageCommandValue=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"openBtn",on:{"click":_vm.openRedPackage}},[_vm._v("拆红包")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showOpenRedpackage=false;}}},[_vm._v("+")]),_vm._v(" "),(_vm.currentErrTips)?_c('div',{staticClass:"commandTips"},[_vm._v("\n        口令输入错误，请重新输入，提示："+_vm._s(_vm.currentErrTips)+"\n      ")]):_vm._e()]):_c('div',{staticClass:"opened"},[_c('span',{staticClass:"close",on:{"click":function($event){_vm.showOpenRedpackage=false;}}},[_vm._v("+")]),_vm._v(" "),(_vm.currentPackageInfo.status===1)?_c('div',{staticClass:"result"},[_c('p',[_vm._v("恭喜你，抢到")]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.currentPackageInfo.amountFinal)+"元")]),_vm._v(" "),_c('p',[_vm._v("红包已存入：我的→勋章中心，提现及时到账")])]):(_vm.currentPackageInfo.status===0)?_c('div',{staticClass:"fail"},[_vm._v("\n        师傅，您来晚了，红包已经领取完毕\n      ")]):_vm._e(),_vm._v(" "),(!_vm.showPackageDetail)?_c('div',{staticClass:"detailBtn",on:{"click":_vm.getLuckerList}},[_vm._v("查看领取详情")]):_c('div',{staticClass:"detailWrap"},_vm._l((_vm.luckerList),function(v,i){return _c('div',{key:i},[_c('span',[_vm._v(_vm._s(v.uname))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.amount))])])}),0)])]),_vm._v(" "),_c('van-popup',{staticClass:"chatTips",attrs:{"position":"top"},model:{value:(_vm.showTips),callback:function ($$v) {_vm.showTips=$$v},expression:"showTips"}},[(_vm.courseInfo.broadcastNoticeVo)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tipsType === 'invite'),expression:"tipsType === 'invite'"}],staticClass:"tips"},[(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('span',{staticClass:"tip-close",on:{"click":function($event){$event.stopPropagation();_vm.showTips=false}}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"tip-title"},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.title))]),_vm._v(" "),_c('div',{staticClass:"tip-content",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.courseInfo.broadcastNoticeVo.explain))}}),_vm._v(" "),(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('div',[_c('div',{staticClass:"tip-btn",on:{"click":function($event){return _vm.share($event)}}},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.buttonCopy))])]):_c('div',[_c('div',{staticClass:"tip-btn",on:{"click":function($event){_vm.showTips = false}}},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.buttonCopy))])])]):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tipsType === 'share'),expression:"tipsType === 'share'"}],staticClass:"tips"},[_c('span',{staticClass:"tip-close",on:{"click":function($event){_vm.showTips=false}}}),_vm._v(" "),_c('div',{staticClass:"tip-title"},[_vm._v("点击右上角去分享")]),_vm._v(" "),_c('div',{staticClass:"tip-img"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/live-share.png","alt":"分享提示"},on:{"click":function($event){$event.preventDefault();}}})])])]),_vm._v(" "),_c('van-popup',{staticClass:"auth-pop",attrs:{"position":"bottom","overlay":false},model:{value:(_vm.showAuthPop),callback:function ($$v) {_vm.showAuthPop=$$v},expression:"showAuthPop"}},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"tit"},[_vm._v("\n        "+_vm._s(_vm.curPopType === 2 ? '认证手机号' : '填写收货地址')+"\n        "),_c('i',{on:{"click":function($event){$event.stopPropagation();_vm.showAuthPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"mid"},[(_vm.curPopType === 1)?_c('address-list',{ref:"addressList",on:{"setDefaultAddress":_vm.setDefaultAddressCb,"showEditPop":_vm.showEditFn}}):(_vm.curPopType === 2)?_c('phone-auth',{ref:"authPhone",on:{"authPhoneSuccess":_vm.authPhoneSuccessCb}}):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"pop-foot"},[(_vm.curPopType === 1)?_c('div',{staticClass:"add-address",on:{"click":function($event){return _vm.showEditFn('')}}},[_vm._v("\n          + 新增地址\n        ")]):(_vm.curPopType === 0 || _vm.curPopType === 10)?_c('div',{staticClass:"save",on:{"click":_vm.saveAddress}},[_vm._v("\n          保存\n        ")]):(_vm.curPopType === 2)?_c('div',{staticClass:"save",on:{"click":_vm.authPhone}},[_vm._v("\n          确认\n        ")]):_vm._e()])])]),_vm._v(" "),_c('van-popup',{staticClass:"pay-pop",attrs:{"position":"bottom","overlay":false},model:{value:(_vm.showPayPop),callback:function ($$v) {_vm.showPayPop=$$v},expression:"showPayPop"}},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"tit"},[_vm._v("\n        支付尾款\n        "),_c('i',{on:{"click":function($event){$event.stopPropagation();_vm.showPayPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"mid"},[_c('ul',{staticClass:"welfare-box"},[_c('li',{style:({'padding-bottom': _vm.orderDetail.benefitsUrl ? '0.8rem': '0.6rem'})},[(_vm.orderDetail.benefitsUrl)?_c('img',{attrs:{"src":_vm.orderDetail.benefitsUrl + '?imageView2/2/w/150',"alt":"福利图片"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !_vm.orderDetail.benefitsUrl},style:({'margin-top': _vm.orderDetail.benefitsUrl ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(_vm.orderDetail.benefitsName))]),_vm._v(" "),_c('div',{staticClass:"btn-box"},[(_vm.orderDetail.balancePrice)?_c('div',{staticClass:"price"},[_vm._v("￥"),_c('span',[_vm._v(_vm._s(_vm.orderDetail.balancePrice))])]):_vm._e()])])])]),_vm._v(" "),_c('div',{staticClass:"order-info"},[_c('span',[_vm._v("创建时间")]),_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.orderDetail.createTime,'yyyy-MM-dd hh:mm:ss')))])]),_vm._v(" "),_c('div',{staticClass:"order-info"},[_c('span',[_vm._v("订单编号")]),_c('span',[_vm._v(_vm._s(_vm.orderDetail.orderNo))])])]),_vm._v(" "),_c('div',{staticClass:"pop-foot"},[(_vm.orderDetail.isVirtual === 0)?_c('div',{staticClass:"address",on:{"click":function($event){$event.stopPropagation();return _vm.clickPayAddressFn.apply(null, arguments)}}},[(_vm.orderDetail.province || _vm.orderDetail.city || _vm.orderDetail.dist)?_c('div',{staticClass:"has-address"},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"phone"},[_c('span',[_vm._v(_vm._s(_vm.orderDetail.receiveName))]),_c('span',[_vm._v(_vm._s(_vm.orderDetail.receivePhone))])]),_vm._v(" "),_c('div',{staticClass:"detail"},[_vm._v("收货地址："+_vm._s(_vm.orderDetail.province + _vm.orderDetail.city + _vm.orderDetail.district + _vm.orderDetail.address))])]),_vm._v(" "),_c('div',{staticClass:"arror"})]):_c('div',{staticClass:"no-address"},[_vm._v("+ 请填写收货地址")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"pay-box"},[_c('div',{staticClass:"left"},[_c('p',[_vm._v("待付尾款：￥"+_vm._s(_vm.orderDetail.balancePrice || 0))]),_vm._v(" "),_c('span',[_vm._v("总价￥"+_vm._s(_vm.orderDetail.orderAmount || 0))]),_c('span',[_vm._v("已付定金￥"+_vm._s(_vm.orderDetail.paidCash || 0))])]),_vm._v(" "),_c('div',{staticClass:"pay-btn",on:{"click":function($event){$event.stopPropagation();return _vm.payFn.apply(null, arguments)}}},[_vm._v("立即支付")])])])])]),_vm._v(" "),_c('van-popup',{staticClass:"auth-pop",attrs:{"position":"bottom","overlay":false},model:{value:(_vm.showEditAddressPop),callback:function ($$v) {_vm.showEditAddressPop=$$v},expression:"showEditAddressPop"}},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"tit"},[(!_vm.isFirstOpenEditPop)?_c('div',{on:{"click":_vm.closeEditpop}},[_c('img',{attrs:{"src":__webpack_require__(1428),"alt":"返回"}}),_vm._v("返回")]):_vm._e(),_vm._v("\n        收货地址\n        "),_c('i',{on:{"click":function($event){$event.stopPropagation();return _vm.closeEditpop.apply(null, arguments)}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"mid"},[_c('edit-address',{ref:"edifAddress2",attrs:{"pos":"course","cur-pop-type":_vm.curPopType},on:{"childSaveAddress":_vm.childSaveAddressSuccess}})],1),_vm._v(" "),(_vm.showPopFoot)?_c('div',{staticClass:"pop-foot"},[_c('div',{staticClass:"save",on:{"click":_vm.saveAddress}},[_vm._v("\n          保存\n        ")])]):_vm._e()])]),_vm._v(" "),(_vm.showIOSShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showIOSShareBox = false;}}},[_vm._m(0)]):_vm._e()],1):(_vm.courseInfo.status === 1)?_c('div',[_c('course-no-start',{attrs:{"course-info":_vm.courseInfo},on:{"orderSuccess":_vm.orderFn}})],1):(_vm.courseInfo.status === 2)?_c('div',{staticClass:"tip"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/broadcast/nopower.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("无权参与直播")])]):(_vm.courseInfo.status === 3)?_c('div',[_c('course-no-start',{attrs:{"course-info":_vm.courseInfo}})],1):(_vm.courseInfo.status === 5)?_c('div',[_c('course-no-start',{attrs:{"course-info":_vm.courseInfo}})],1):_vm._e()}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
module.exports = __webpack_require__.p + "static/img/play-icon2.f97e32d.png";module.exports = __webpack_require__.p + "static/img/fuli.e088cd5.png";module.exports = __webpack_require__.p + "static/img/no-wel.9853390.png";module.exports = __webpack_require__.p + "static/img/arror_b_r.9fd5e84.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(439);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d3a003b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1040);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2574)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d3a003b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0d3a003b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_curricuIndex_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2575);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("912e0448", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".liveCurricu{overflow:hidden;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative}.liveCurricu .swipper-wrap{padding:.8rem}.liveCurricu .swipper-wrap .swiper-container{height:100%;height:6.4rem}.liveCurricu .swipper-wrap .swiper-container .swiper-slide{height:100%}.liveCurricu .swipper-wrap .swiper-container .swiper-slide img{width:100%;height:100%;border-radius:4px}.liveCurricu .swipper-wrap .swiper-container .swiper-pagination{width:100%;height:1.2rem;bottom:0}.liveCurricu .swipper-wrap .swiper-container .swiper-pagination-bullet{width:5px;height:5px;background:#fff;opacity:.6}.liveCurricu .swipper-wrap .swiper-container .swiper-pagination-bullet-active{width:16px;height:5px;border-radius:4px;background:#fff;opacity:1}.liveCurricu .swipper-wrap .swiper-container .swiper-pagination-bullets{bottom:0}.liveCurricu .tabWrap{background:#f6f7f9;padding:0 .8rem;border-radius:.6rem .6rem 0 0}.liveCurricu .tabWrap .tabCont{overflow:hidden;white-space:nowrap;height:59px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.liveCurricu .tabWrap .tabCont>div{display:inline-block;padding-right:.6rem}.liveCurricu .tabWrap .tabCont>div .rowTab{font-family:PingFangSC-Semibold;color:#666;line-height:1.05rem;text-align:center;display:inline-block;box-sizing:border-box;font-size:16px;margin-right:1rem;position:relative}.liveCurricu .tabWrap .tabCont>div .rowTab:last-child{margin-right:0}.liveCurricu .tabWrap .tabCont>div .rowTab.active{font-size:18px;font-weight:600;color:#333}.liveCurricu .tabWrap .tabCont>div .rowTab.active:after{position:absolute;content:\"\";width:1.2rem;height:.2rem;background:#fe0013;border-radius:2px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);bottom:-8px}.liveCurricu .listWrap{background:#f6f7f9;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;padding:0 .8rem}.liveCurricu .listWrap .listItem{background:#fff;margin-bottom:.6rem;border-radius:4px;padding:.8rem .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}.liveCurricu .listWrap .listItem.padBig{padding-top:1.6rem}.liveCurricu .listWrap .listItem .noStart{position:absolute;height:.9rem;left:0;top:0;background:#ffeee7;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.liveCurricu .listWrap .listItem .noStart span{font-size:10px;color:#fff;font-family:PingFangSC-Regular;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.liveCurricu .listWrap .listItem .noStart span:first-of-type{width:2.8rem;height:100%;background:#ff6c18;border-radius:4px 0 4px 0}.liveCurricu .listWrap .listItem .noStart span:nth-of-type(2){width:3.8rem;height:100%;border-radius:0 0 4px 0;color:#ff6c18}.liveCurricu .listWrap .listItem .info{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.liveCurricu .listWrap .listItem .info>p{height:2.4rem;font-family:PingFangSC-Semibold;font-weight:600;font-size:17px;color:#333;line-height:1.2rem;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.liveCurricu .listWrap .listItem .info .state{margin-top:.7rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:12px;color:#999}.liveCurricu .listWrap .listItem .info .state>img{width:.6rem;height:.6rem;margin-right:.3rem}.liveCurricu .listWrap .listItem .info .state span:first-of-type{margin-right:.4rem}.liveCurricu .listWrap .listItem .info .state span:first-of-type.playing{color:#fe0013}.liveCurricu .listWrap .listItem .info .state span:first-of-type.order{color:#ff6c18}.liveCurricu .listWrap .listItem .info .state i{margin-right:.4rem;position:relative;top:-2px}.liveCurricu .listWrap .listItem>img{margin-left:1.2rem;width:6rem;height:3.7rem;border-radius:6px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
var _vant = __webpack_require__(12);
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _vueAwesomeSwiper = __webpack_require__(308);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

// eslint-disable-line
__webpack_require__(309);
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _noticeBar.default.name, _noticeBar.default), _popup.default.name, _popup.default), _list.default.name, _list.default),
  data: function data() {
    return {
      carouselAdvert: [],
      // 广告列表
      scrollTab: null,
      currentClassifyId: 1,
      tabList: [],
      // 直播分类列表
      pageInfo: {
        pageNum: 1,
        pageSize: 10
      },
      finished: false,
      loading: true,
      liveList: [] // 直播课程列表
    };
  },
  watch: {},
  created: function created() {
    this.getAdListFn();
    this.getClassifyListFn();
  },
  mounted: function mounted() {
    this.scrollTab = new _betterScroll.default('.tabCont', {
      scrollY: false,
      scrollX: true,
      click: true,
      bounceTime: 300,
      swipeBounceTime: 300
    });
  },
  beforeDestroy: function beforeDestroy() {},
  methods: {
    // 获取广告位
    getAdListFn: function getAdListFn() {
      var _this = this;
      this._Util.post(this._Api.KAIXUYUN_LIVE.getAdList, {
        spaces: '1'
      }, function (data) {
        _this.carouselAdvert = data || [];
        if (_this.carouselAdvert.length) {
          _this.$nextTick(function () {
            new Swiper('#swiper-container', {
              pagination: '.swiper-pagination',
              spaceBetween: 10,
              autoplay: 3000,
              loop: true
            });
          });
        }
      }, function () {}, this);
    },
    // 获取直播分类
    getClassifyListFn: function getClassifyListFn() {
      var _this2 = this;
      this._Util.post(this._Api.KAIXUYUN_LIVE.getClassifyList, {}, function (data) {
        _this2.tabList = data || [];
        _this2.currentClassifyId = _this2.tabList[0].id;
        _this2.getDateList(_this2.tabList[0].id);
      }, function () {}, this);
    },
    // 切换tab
    changeTab: function changeTab(curClassifyId) {
      this.currentClassifyId = curClassifyId;
      this.pageInfo.pageNum = 1;
      this.finished = false;
      this.scrollTab.scrollToElement('#classify' + curClassifyId, 500, -100, 0);
      this.liveList = [];
      this.getDateList();
    },
    // 获取直播列表
    getDateList: function getDateList() {
      var _this3 = this;
      this.loading = true;
      this._Util.post(this._Api.KAIXUYUN_LIVE.getLiveList, {
        classifyId: this.currentClassifyId,
        pageNum: this.pageInfo.pageNum,
        pageSize: this.pageInfo.pageSize
      }, function (data) {
        var res = data || [];
        _this3.loading = false;
        _this3.liveList = _this3.liveList.concat(res);
        if (res.length < _this3.pageInfo.pageSize) {
          _this3.finished = true;
        } else {
          _this3.pageInfo.pageNum++;
        }
      }, function () {
        _this3.loading = false;
        _this3.finished = true;
      }, this);
    },
    /**
     * 打开广告
       * @param {Object}: adObj  广告内容
     */
    toAdDetail: function toAdDetail(adObj) {
      location.href = adObj.adUrl;
    },
    // 打开课程详情
    toLiveDetail: function toLiveDetail(item) {
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        var url = location.origin + '/repair/liveCurricuDetail?liveNo=' + item.liveNo;
        var src = encodeURIComponent(url);
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(src)
        });
        return;
      }
      this.$router.push({
        name: 'liveCurricuDetail',
        query: {
          liveNo: item.liveNo
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"liveCurricu needsclick"},[(_vm.carouselAdvert.length)?_c('div',{staticClass:"swipper-wrap"},[_c('div',{staticClass:"swiper-container swiper-container",attrs:{"id":"swiper-container"}},[_c('div',{staticClass:"swiper-wrapper"},_vm._l((_vm.carouselAdvert),function(item,index){return _c('div',{key:index,staticClass:"swiper-slide",on:{"click":function($event){return _vm.toAdDetail(item)}}},[_c('img',{attrs:{"src":item.adImg,"alt":item.adName}})])}),0),_vm._v(" "),_c('div',{staticClass:"swiper-pagination"})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"tabWrap"},[_c('div',{ref:"contWrapper",staticClass:"tabCont"},[_c('div',{ref:"contEl"},_vm._l((_vm.tabList),function(v,i){return _c('div',{key:i,class:['rowTab', _vm.currentClassifyId === v.id ? 'active' : '' ],attrs:{"id":'classify' + v.id},on:{"click":function($event){return _vm.changeTab(v.id, v.classifyName, i)}}},[_vm._v("\n          "+_vm._s(v.classifyName)+"\n        ")])}),0)])]),_vm._v(" "),_c('div',{staticClass:"listWrap"},[_c('van-list',{attrs:{"finished":_vm.finished,"finished-text":"到底啦 ~"},on:{"load":_vm.getDateList},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:"loading"}},_vm._l((_vm.liveList),function(item){return _c('div',{key:item.liveNo,staticClass:"listItem",class:{ 'padBig': item.liveStatus === 1 },on:{"click":function($event){return _vm.toLiveDetail(item)}}},[(item.liveStatus === 1)?_c('div',{staticClass:"noStart"},[_c('span',[_vm._v("开播时间")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm._Util.dateFormat(item.startTime, 'MM.dd hh:mm')))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',[_vm._v(_vm._s(item.liveName))]),_vm._v(" "),_c('div',{staticClass:"state"},[(item.liveStatus === 2)?[_c('img',{attrs:{"src":__webpack_require__(2576),"alt":item.liveName}}),_vm._v(" "),_c('span',{staticClass:"playing"},[_vm._v("正在直播")]),_vm._v(" "),_c('i',[_vm._v("|")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.viewNumbers || 0)+"人观看")])]:_vm._e(),_vm._v(" "),(item.liveStatus === 1)?[(item.applyStatus)?_c('img',{attrs:{"src":__webpack_require__(2577),"alt":""}}):_vm._e(),_vm._v(" "),(item.applyStatus)?_c('span',{staticClass:"order"},[_vm._v("已预约")]):_vm._e(),_vm._v(" "),(!item.applyStatus)?_c('span',[_vm._v("未预约")]):_vm._e(),_vm._v(" "),_c('i',[_vm._v("|")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.applyNumbers || 0)+"人预约")])]:_vm._e(),_vm._v(" "),(item.liveStatus === 3 || item.liveStatus === 4)?[_c('span',[_vm._v(_vm._s(item.viewNumbers || 0)+"人观看")])]:_vm._e()],2)]),_vm._v(" "),_c('img',{attrs:{"src":item.liveCoverImg,"alt":item.liveName}})])}),0)],1)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/playing2.093f8dd.png";module.exports = __webpack_require__.p + "static/img/order.71a2778.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(440);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_59a5bb81_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1041);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2578)
  __webpack_require__(2582)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-59a5bb81"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_59a5bb81_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_59a5bb81_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_curricuDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2579);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("629c4142", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-live-new[data-v-59a5bb81]{overflow:hidden;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative}.course-live-new .videoWrap[data-v-59a5bb81]{height:10.5rem;background-color:rgba(0,0,0,.7);position:relative;overflow:hidden}.course-live-new .videoWrap .video-mask[data-v-59a5bb81]{position:absolute;width:100%;height:100%;background-size:cover;z-index:100;left:0;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.course-live-new .videoWrap .video-mask img[data-v-59a5bb81]{width:3rem;height:3rem}.course-live-new .videoWrap .view-num[data-v-59a5bb81]{position:absolute;z-index:50;top:.5rem;right:.5rem;background:rgba(0,0,0,.5);border-radius:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:1rem;padding:0 .4rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font:10px/1 PingFangSC-Regular;color:#fff}.course-live-new .videoWrap .view-num img[data-v-59a5bb81]{width:.6rem;height:.6rem;margin-right:.2rem}.course-live-new .videoWrap video[data-v-59a5bb81]{width:100%;height:100%}.course-live-new .tab-box[data-v-59a5bb81]{height:2.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;z-index:0}.course-live-new .tab-box[data-v-59a5bb81]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.course-live-new .tab-box li[data-v-59a5bb81]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#999;font:16px/1 PingFangSC-Regular;position:relative}.course-live-new .tab-box li>img[data-v-59a5bb81]{width:.8rem;height:.8rem;margin-right:.3rem}.course-live-new .tab-box li.active[data-v-59a5bb81]{color:#333;font:700 16px/1 PingFangSC-Semibold}.course-live-new .tab-box li.active[data-v-59a5bb81]:after{content:\"\";position:absolute;width:1.2rem;height:4px;border-radius:2px;background:#fe0013;left:50%;bottom:1px;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.course-live-new .contentWrap[data-v-59a5bb81]{overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.course-live-new .contentWrap .chatWrap[data-v-59a5bb81]{position:relative;top:0;left:0;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f4f5f6;overflow:hidden}.course-live-new .contentWrap .chatWrap.currDetail[data-v-59a5bb81]{overflow-y:auto;padding-bottom:3.4rem}.course-live-new .contentWrap .chatWrap.currDetail.no-pad[data-v-59a5bb81]{padding-bottom:0}.course-live-new .contentWrap .chatWrap.currDetail .info[data-v-59a5bb81]{background:#fff;padding:.8rem}.course-live-new .contentWrap .chatWrap.currDetail .info>p[data-v-59a5bb81]{color:#333;font:600 20px/1.4rem PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap.currDetail .info>div[data-v-59a5bb81]{margin-top:.2rem;color:#999;font:14px/1rem PingFangSC-Regular}.course-live-new .contentWrap .chatWrap.currDetail .teacher[data-v-59a5bb81]{background:#fff;padding:.8rem;margin-top:.4rem}.course-live-new .contentWrap .chatWrap.currDetail .teacher>p[data-v-59a5bb81]{font:600 16px/23px PingFangSC-Semibold;color:#333}.course-live-new .contentWrap .chatWrap.currDetail .teacher .teacherInfo[data-v-59a5bb81]{margin-top:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-live-new .contentWrap .chatWrap.currDetail .teacher .teacherInfo img[data-v-59a5bb81]{width:3rem;height:3rem;border-radius:50%;margin-right:.6rem}.course-live-new .contentWrap .chatWrap.currDetail .teacher .teacherInfo>div[data-v-59a5bb81]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.course-live-new .contentWrap .chatWrap.currDetail .teacher .teacherInfo>div>p[data-v-59a5bb81]{font:16px/23px PingFangSC-Semibold;color:#333}.course-live-new .contentWrap .chatWrap.currDetail .teacher .teacherInfo>div span[data-v-59a5bb81]{margin-top:.4rem;font:14px/20px PingFangSC-Semibold;color:#666}.course-live-new .contentWrap .chatWrap.currDetail .riceText[data-v-59a5bb81]{margin-top:.4rem;background:#fff;padding:.8rem}.course-live-new .contentWrap .chatWrap.currDetail .riceText>p[data-v-59a5bb81]{color:#333;font:600 16px/23px PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap.currDetail .riceText .cont[data-v-59a5bb81]{margin-top:.6rem;background:#f1f3f5;padding:.5rem}.course-live-new .contentWrap .chatWrap.currDetail .riceText .cont[data-v-59a5bb81] img{max-width:100%}.course-live-new .contentWrap .chatWrap.currDetail .orderBtn[data-v-59a5bb81]{background:#fff;position:fixed;bottom:0;left:0;width:100%;padding:.3rem .8rem}.course-live-new .contentWrap .chatWrap.currDetail .orderBtn>div[data-v-59a5bb81]{color:#fff;text-align:center;height:2.4rem;font:16px/2.4rem PingFangSC-Regular;border-radius:1.2rem;background:#fe632a}.course-live-new .contentWrap .chatWrap.currDetail .orderBtn>div.orderEd[data-v-59a5bb81]{background:#ccc}.course-live-new .contentWrap .chatWrap .noticeScrollWrap[data-v-59a5bb81]{height:2.05rem;width:100%;position:absolute;top:0;left:0;background-color:#fceee9;z-index:1}.course-live-new .contentWrap .chatWrap .giftBanner[data-v-59a5bb81]{position:absolute;top:.5rem;left:0;width:50%;-webkit-transition:all .4s ease;transition:all .4s ease;z-index:1}.course-live-new .contentWrap .chatWrap .messageList[data-v-59a5bb81]{position:absolute;top:0;left:0;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-bottom:1rem}.course-live-new .contentWrap .chatWrap .messageList .self[data-v-59a5bb81]{text-align:right;padding:.5rem .5rem 0 0}.course-live-new .contentWrap .chatWrap .messageList .self img[data-v-59a5bb81]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:right;background-color:#f0f8ff}.course-live-new .contentWrap .chatWrap .messageList .self>div[data-v-59a5bb81]{margin-right:.5rem;display:inline-block}.course-live-new .contentWrap .chatWrap .messageList .self>div .uname[data-v-59a5bb81]{color:#666;font:13px/.925rem PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-live-new .contentWrap .chatWrap .messageList .self>div .umessage[data-v-59a5bb81]{margin-top:.2rem;position:relative;display:inline-block;text-align:left;max-width:12rem;word-wrap:break-word;white-space:pre-wrap;padding:.4rem .6rem;background-color:#377ee1;border-radius:.25rem 0 .25rem .25rem;color:#fff;font:16px/1.05rem PingFangSC-Regular}.course-live-new .contentWrap .chatWrap .messageList .opposite[data-v-59a5bb81]{text-align:left;padding:.8rem 0 0 .6rem}.course-live-new .contentWrap .chatWrap .messageList .opposite .ds-tips[data-v-59a5bb81]{text-align:center;color:#999;font:14px/1rem PingFangSC-Regular;padding:.3rem 0 .8rem;display:block;margin:0}.course-live-new .contentWrap .chatWrap .messageList .opposite img[data-v-59a5bb81]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.course-live-new .contentWrap .chatWrap .messageList .opposite>div[data-v-59a5bb81]{margin-left:.5rem;display:inline-block}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .uname[data-v-59a5bb81]{color:#666;font:13px/.925rem PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage[data-v-59a5bb81]{position:relative;display:inline-block;text-align:left;max-width:12rem;word-wrap:break-word;white-space:pre-wrap;padding:.4rem .6rem;background-color:#fff;border-radius:0 .25rem .25rem .25rem;color:#333;font:16px/1.05rem PingFangSC-Regular;margin-top:.2rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card[data-v-59a5bb81]{max-width:100%;width:15.75rem;padding:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card img[data-v-59a5bb81]{width:5rem;height:4.675rem;border-radius:.3rem;margin-right:.6rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box[data-v-59a5bb81]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.475rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box.no-img[data-v-59a5bb81]{min-height:auto}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box.no-img .btn-box[data-v-59a5bb81]{position:static;margin-top:.8rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box p[data-v-59a5bb81]{color:#333;font:700 16px/1rem PingFangSC-Medium;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box[data-v-59a5bb81]{position:absolute;right:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box.flex-end[data-v-59a5bb81]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .price[data-v-59a5bb81]{color:#fe632a;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .price span[data-v-59a5bb81]{margin-left:2px;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .type-btn[data-v-59a5bb81]{width:3.4rem;height:1.425rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fe632a;border-radius:1.25rem}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .type-btn span[data-v-59a5bb81]{color:#fff;font:700 12px/1 PingFangSC-Semibold}.course-live-new .contentWrap .chatWrap .messageList .opposite>div .umessage.card .right-box .btn-box .type-btn.disable[data-v-59a5bb81]{background:#ccc}.course-live-new .contentWrap .chatWrap .messageList .redPackage[data-v-59a5bb81]{text-align:left;padding:.5rem 0 0 .5rem}.course-live-new .contentWrap .chatWrap .messageList .redPackage img[data-v-59a5bb81]{width:1.4rem;height:1.4rem;border-radius:.2rem;float:left;background-color:#f0f8ff}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div[data-v-59a5bb81]{margin-left:.5rem;display:inline-block}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .uname[data-v-59a5bb81]{color:#666;font:13px/.925rem PingFangSC-Regular;width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .package[data-v-59a5bb81]{text-align:left;width:12.75rem;padding:.675rem .625rem;background-color:#f39b41;border-radius:.2rem;overflow:hidden;margin-top:.2rem}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .package img[data-v-59a5bb81]{background-color:#f39b41;margin-top:.2rem;width:1.75rem;height:2.25rem;float:left}.course-live-new .contentWrap .chatWrap .messageList .redPackage>div .package span[data-v-59a5bb81]{float:left;color:#fff;font:16px/1.25rem PingFangSC-Regular;max-width:75%;margin-left:.5rem}.course-live-new .contentWrap .chatWrap .messageList .system[data-v-59a5bb81]{text-align:center;font-size:.6rem;color:#666;padding:1rem 0}.course-live-new .contentWrap .chatWrap .no-wel[data-v-59a5bb81]{padding-top:2rem;text-align:center}.course-live-new .contentWrap .chatWrap .no-wel img[data-v-59a5bb81]{width:2.6rem;height:2.775rem}.course-live-new .contentWrap .chatWrap .no-wel p[data-v-59a5bb81]{margin-top:.8rem;color:#666;font:14px/1 PingFangSC-Regular}.course-live-new .contentWrap .notice[data-v-59a5bb81]{width:3.3rem;height:3.8rem;position:absolute;z-index:3;right:.73rem;bottom:7rem;text-align:center;padding-top:.45rem;border-radius:.2rem;background-color:rgba(0,0,0,.3)}.course-live-new .contentWrap .notice img[data-v-59a5bb81]{width:2.2rem;height:1.75rem}.course-live-new .contentWrap .notice p[data-v-59a5bb81]{color:#fff;font:700 12px/1 PingFangSC-Semibold;margin-top:.35rem}.course-live-new .contentWrap .notice .dot[data-v-59a5bb81]{width:.6rem;height:.6rem;background:#ff3f3f;border:.05rem solid #fff;position:absolute;top:0;right:0;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);border-radius:50%}.course-live-new .contentWrap .inputWrap[data-v-59a5bb81]{height:2.65rem;background-color:#fff;position:relative;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-live-new .contentWrap .inputWrap .new-msg-tip[data-v-59a5bb81]{position:absolute;bottom:3.05rem;left:50%;width:4.8rem;height:1.2rem;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:center;border-radius:.6rem;background:#fff;box-shadow:0 4px 12px 0 hsla(0,0%,68%,.3);color:#ff712a;font:12px/1.2rem PingFangSC-Regular}.course-live-new .contentWrap .inputWrap>input[data-v-59a5bb81]{margin-top:.43rem;margin-left:.8rem;margin-right:.8rem;height:1.6rem;text-indent:.6rem;border-radius:1rem;color:#333;font:14px/1.6rem PingFangSC-Regular;background-color:#f5f5f5;z-index:4;-webkit-transition:all .3s ease;transition:all .3s ease;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.course-live-new .contentWrap .inputWrap .btn-wrap[data-v-59a5bb81]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .contentWrap .inputWrap .btn-wrap .likeImgWrap[data-v-59a5bb81]{position:absolute;bottom:1rem;right:1.9rem;width:0}.course-live-new .contentWrap .inputWrap .btn-wrap .likeImgWrap .likeImg[data-v-59a5bb81]{width:1rem;height:1rem;position:absolute;bottom:-50%;left:50%}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-59a5bb81]{width:1.6rem;height:1.6rem;display:inline-block;background-size:100%;background-repeat:no-repeat;position:relative;margin-right:.8rem}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn.zan[data-v-59a5bb81]{background-image:url(" + escape(__webpack_require__(2580)) + ");z-index:3}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn.gift[data-v-59a5bb81]{background-image:url(" + escape(__webpack_require__(2581)) + ")}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-59a5bb81]:nth-last-child(3){background-image:url(\"http://static2.kaxiuyun.com/kxy/course/live/icon-invite.png\")}.course-live-new .contentWrap .inputWrap .btn-wrap .iconBtn[data-v-59a5bb81]:last-child:active{background-image:url(\"https://static1.kaxiuyun.com/static/img/dianzan2png.png\")}.course-live-new .contentWrap .inputWrap .btn-wrap .sendBtn[data-v-59a5bb81]{margin:.43rem .6rem .43rem 0;position:relative;z-index:3;width:2.6rem;height:1.6rem;border-radius:1rem;background-color:#fe632a;text-align:center;color:#fff;font:14px/1.6rem PingFangSC-Regular}.course-live-new .goods-box[data-v-59a5bb81]{position:fixed;width:6.2rem;right:.8rem;bottom:4.6rem;border-radius:6px;background:#fff;padding:.1rem;z-index:10;box-shadow:0 0 6px 0 rgba(0,0,0,.2)}.course-live-new .goods-box .close[data-v-59a5bb81]{width:1rem;height:1rem;position:absolute;top:-1.2rem;right:0;z-index:1}.course-live-new .goods-box .close img[data-v-59a5bb81]{width:100%;height:100%}.course-live-new .goods-box .img-box[data-v-59a5bb81]{width:6rem;border-radius:6px 6px 0 0;overflow:hidden;position:relative}.course-live-new .goods-box .img-box img[data-v-59a5bb81]{width:100%;height:6rem;border-radius:6px 6px 0 0}.course-live-new .goods-box .img-box .num[data-v-59a5bb81]{position:absolute;left:0;top:0;width:1.2rem;height:1.2rem;background:rgba(0,0,0,.5);border-radius:0 0 6px 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;font-size:12px}.course-live-new .goods-box .name[data-v-59a5bb81]{font-size:12px;color:#333;margin:.2rem .2rem 0;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;line-clamp:2;-webkit-line-clamp:2}.course-live-new .goods-box .btn-box[data-v-59a5bb81]{margin-top:.4rem;height:1.4rem;background:#fe632a;border-radius:6px;line-height:1.4rem;font-size:15px;font-weight:700;color:#fff;padding-left:.4rem;position:relative}.course-live-new .goods-box .btn-box>img[data-v-59a5bb81]{position:absolute;width:1.8rem;height:1.4rem;top:0;right:0;overflow:hidden}.course-live-new .giftWrap[data-v-59a5bb81]{will-change:all;position:fixed;left:0;bottom:0;z-index:104;width:100%;height:13.5rem;background-color:#fff;overflow:hidden}.course-live-new .giftWrap .giftItem[data-v-59a5bb81]{width:25%;height:6.25rem;float:left;text-align:center;padding-top:.5rem}.course-live-new .giftWrap .giftItem[data-v-59a5bb81]:active{background-color:#f5f5f5}.course-live-new .giftWrap .giftItem img[data-v-59a5bb81]{width:2.5rem;height:2.5rem}.course-live-new .giftWrap .giftItem p[data-v-59a5bb81]:first-of-type{color:#333;font-size:.7rem;font-family:PingFangSC-Regular;margin-top:.2rem}.course-live-new .giftWrap .giftItem p[data-v-59a5bb81]:nth-of-type(2){color:#666;font-size:.6rem;font-family:PingFangSC-Regular;margin-top:.1rem}.course-live-new .redpackageWrap[data-v-59a5bb81]{width:16rem;height:20.8rem;overflow:hidden;background:transparent!important}.course-live-new .redpackageWrap .noOpen[data-v-59a5bb81]{width:100%;height:100%;background:url(http://static1.kaxiuyun.com/kxy/broadcast/hbNoOpen.png) no-repeat;background-size:100% 100%;padding-top:5.25rem;position:relative}.course-live-new .redpackageWrap .noOpen p[data-v-59a5bb81]{text-align:center;color:#fff;font-size:.8rem;font-family:PingFangSC-Regular;margin-bottom:1.4rem}.course-live-new .redpackageWrap .noOpen input[data-v-59a5bb81]{width:13.3rem;height:2.2rem;line-height:2.2rem;border-radius:.2rem;font-size:.8rem;font-family:PingFangSC-Regular;background-color:#fff;color:#000;margin:0 auto 1.7rem;text-align:center;display:block}.course-live-new .redpackageWrap .noOpen input[data-v-59a5bb81]::-webkit-input-placeholder{font-size:.8rem;color:#666}.course-live-new .redpackageWrap .noOpen input[data-v-59a5bb81]:-ms-input-placeholder{font-size:.8rem;color:#666}.course-live-new .redpackageWrap .noOpen input[data-v-59a5bb81]::placeholder{font-size:.8rem;color:#666}.course-live-new .redpackageWrap .noOpen .openBtn[data-v-59a5bb81]{margin:0 auto;background-image:-webkit-gradient(linear,left top,left bottom,from(#f7de3c),to(#ff8e40));background-image:linear-gradient(#f7de3c,#ff8e40);width:13.3rem;height:2.2rem;text-align:center;color:#fff;font:700 18px/2.2rem PingFangSC-Semibold;border-radius:.2rem}.course-live-new .redpackageWrap .noOpen span.close[data-v-59a5bb81]{position:absolute;top:.4rem;right:.4rem;color:#fff;font:40px/1.2rem PingFangSC-Regular;text-align:center;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.course-live-new .redpackageWrap .noOpen>.commandTips[data-v-59a5bb81]{margin-top:.5rem;text-align:center;color:#fff;font-size:.7rem;font-family:PingFangSC-Regular}.course-live-new .redpackageWrap .opened[data-v-59a5bb81]{position:absolute;left:0;top:-2.8rem;width:100%;height:24rem;background:url(\"http://static1.kaxiuyun.com/kxy/broadcast/hbOpen.png\") no-repeat;background-size:100% 100%}.course-live-new .redpackageWrap .opened span.close[data-v-59a5bb81]{position:absolute;top:3.2rem;right:.4rem;color:#fff;font-size:2rem;text-align:center;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);line-height:1.2rem}.course-live-new .redpackageWrap .opened .result[data-v-59a5bb81]{padding-top:1rem;text-align:center}.course-live-new .redpackageWrap .opened .result p[data-v-59a5bb81]:first-of-type{font-size:.9rem;color:#ffdce1}.course-live-new .redpackageWrap .opened .result p[data-v-59a5bb81]:nth-of-type(2){font-size:1.25rem;color:#fff;font-weight:600;margin-top:.5rem}.course-live-new .redpackageWrap .opened .result p[data-v-59a5bb81]:nth-of-type(3){font-size:.7rem;color:#ffdce1;margin-top:.75rem}.course-live-new .redpackageWrap .opened .fail[data-v-59a5bb81]{font-size:1.2rem;color:#fff;font-weight:600;margin-top:2.5rem;padding:0 2.8rem;text-align:center}.course-live-new .redpackageWrap .opened .detailBtn[data-v-59a5bb81]{width:7.1rem;height:2.1rem;color:#fff;font:16px/2.1rem PingFangSC-Regular;border:1px solid #fff;border-radius:.2rem;text-align:center;box-sizing:content-box;position:absolute;top:12rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.course-live-new .redpackageWrap .opened .detailWrap[data-v-59a5bb81]{position:absolute;top:11rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:14rem;height:11.5rem;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.course-live-new .redpackageWrap .opened .detailWrap>div[data-v-59a5bb81]{height:1.4rem;line-height:1.4rem;overflow:hidden}.course-live-new .redpackageWrap .opened .detailWrap>div span[data-v-59a5bb81]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff}.course-live-new .redpackageWrap .opened .detailWrap>div span[data-v-59a5bb81]:first-of-type{float:left}.course-live-new .redpackageWrap .opened .detailWrap>div span[data-v-59a5bb81]:nth-of-type(2){float:right}.course-live-new .chatTips[data-v-59a5bb81]{width:100%;background:transparent!important;padding-top:11.1rem}.course-live-new .chatTips .tips[data-v-59a5bb81]{margin:0 auto;width:16.75rem;background:#fff;border-radius:.6rem;padding-bottom:1rem;position:relative}.course-live-new .chatTips .tips .tip-close[data-v-59a5bb81]{width:2.2rem;height:2.2rem;background:url(\"http://static2.kaxiuyun.com/kxy/course/live/tip-close.png\") 50% no-repeat;background-size:1rem 1rem;position:absolute;top:0;right:0}.course-live-new .chatTips .tips .tip-title[data-v-59a5bb81]{color:#333;font:700 20px/1.4rem PingFangSC-Semibold;text-align:center;padding:1.2rem 0 0}.course-live-new .chatTips .tips .tip-img[data-v-59a5bb81]{padding:1.83rem 0 1.4rem;text-indent:2.38rem}.course-live-new .chatTips .tips .tip-img img[data-v-59a5bb81]{width:11.75rem}.course-live-new .chatTips .tips .tip-content[data-v-59a5bb81]{padding:1rem .8rem 2rem;color:#505050;font:17px/1.2rem PingFangSC-Regular}.course-live-new .chatTips .tips .tip-btn[data-v-59a5bb81]{margin:0 auto;width:15.15rem;height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:#177afa;border-radius:.3rem;color:#fff;font:18px/1.25rem PingFangSC-Regular}.course-live-new .chatTips .tips .tip-btn2[data-v-59a5bb81]{color:#177afa;font:16px/1.13rem PingFangSC-Regular;text-decoration:underline;text-align:center;padding-top:.6rem}.course-live-new .auth-pop[data-v-59a5bb81]{width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem)}.course-live-new .auth-pop .wrap[data-v-59a5bb81]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.course-live-new .auth-pop .wrap .tit[data-v-59a5bb81]{height:2.75rem;position:relative;color:#333;font:700 17px/2.75rem PingFangSC-Semibold;text-align:center;background:#f6f6f6}.course-live-new .auth-pop .wrap .tit i[data-v-59a5bb81]{position:absolute;top:0;right:0;color:#666;font:14px/2.75rem PingFangSC-Regular;font-style:normal;padding:0 .8rem}.course-live-new .auth-pop .wrap .tit div[data-v-59a5bb81]{position:absolute;top:0;left:0;color:#666;font:400 14px/2.75rem PingFangSC-Regular;padding:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .auth-pop .wrap .tit div img[data-v-59a5bb81]{width:.35rem;height:.6rem;margin-right:.2rem;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.course-live-new .auth-pop .wrap .mid[data-v-59a5bb81]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.course-live-new .auth-pop .wrap .pop-foot[data-v-59a5bb81]{position:relative;height:2.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.course-live-new .auth-pop .wrap .pop-foot[data-v-59a5bb81]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-top:1px solid #eee;pointer-events:none}.course-live-new .auth-pop .wrap .pop-foot .add-address[data-v-59a5bb81]{text-align:center;height:2.9rem;color:#177afa;font:16px/2.9rem PingFangSC-Regular}.course-live-new .auth-pop .wrap .pop-foot .save[data-v-59a5bb81]{text-align:center;width:91.5%;height:2.3rem;background:#177afa;border-radius:.3rem;color:#fff;font:16px/2.3rem PingFangSC-Regular}.course-live-new .pay-pop[data-v-59a5bb81]{width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem)}.course-live-new .pay-pop .wrap[data-v-59a5bb81]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.course-live-new .pay-pop .wrap .tit[data-v-59a5bb81]{height:2.75rem;position:relative;color:#333;font:700 17px/2.75rem PingFangSC-Semibold;text-align:center;background:#f6f6f6}.course-live-new .pay-pop .wrap .tit i[data-v-59a5bb81]{position:absolute;top:0;right:0;color:#666;font:14px/2.75rem PingFangSC-Regular;font-style:normal;padding:0 .8rem}.course-live-new .pay-pop .wrap .tit div[data-v-59a5bb81]{position:absolute;top:0;left:0;color:#666;font:400 14px/2.75rem PingFangSC-Regular;padding:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .pay-pop .wrap .tit div img[data-v-59a5bb81]{width:.35rem;height:.6rem;margin-right:.2rem;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.course-live-new .pay-pop .wrap .mid[data-v-59a5bb81]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.course-live-new .pay-pop .wrap .mid .welfare-box[data-v-59a5bb81]{background:#fff;padding:0 .8rem}.course-live-new .pay-pop .wrap .mid .welfare-box li[data-v-59a5bb81]{position:relative;padding:.8rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-live-new .pay-pop .wrap .mid .welfare-box li[data-v-59a5bb81]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.course-live-new .pay-pop .wrap .mid .welfare-box li img[data-v-59a5bb81]{width:5rem;height:4.675rem;border-radius:.3rem;margin-right:.6rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box[data-v-59a5bb81]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.475rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box.no-img[data-v-59a5bb81]{min-height:auto}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box.no-img .btn-box[data-v-59a5bb81]{position:static;margin-top:.8rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box p[data-v-59a5bb81]{color:#333;font:700 16px/1rem PingFangSC-Medium;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box[data-v-59a5bb81]{position:absolute;right:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box.flex-end[data-v-59a5bb81]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .price[data-v-59a5bb81]{color:#fe632a;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .price span[data-v-59a5bb81]{margin-left:2px;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .type-btn[data-v-59a5bb81]{width:3.4rem;height:1.425rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fe632a;border-radius:1.25rem}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .type-btn span[data-v-59a5bb81]{color:#fff;font:700 12px/1 PingFangSC-Semibold}.course-live-new .pay-pop .wrap .mid .welfare-box li .right-box .btn-box .type-btn.disable[data-v-59a5bb81]{background:#ccc}.course-live-new .pay-pop .wrap .mid .order-info[data-v-59a5bb81]{padding:0 .8rem;margin-top:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.course-live-new .pay-pop .wrap .mid .order-info[data-v-59a5bb81]:last-child{margin-top:.2rem}.course-live-new .pay-pop .wrap .mid .order-info span[data-v-59a5bb81]{color:#999;font:12px/.85rem PingFangSC-Regular}.course-live-new .pay-pop .wrap .pop-foot .address[data-v-59a5bb81]{height:2.3rem;background:#fff6eb;padding:0 .8rem;-webkit-box-align:cemter;-webkit-align-items:cemter;-ms-flex-align:cemter;align-items:cemter}.course-live-new .pay-pop .wrap .pop-foot .address .no-address[data-v-59a5bb81]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#f73;font:700 16px/1 PingFangSC-Semibold}.course-live-new .pay-pop .wrap .pop-foot .address .has-address[data-v-59a5bb81],.course-live-new .pay-pop .wrap .pop-foot .address .no-address[data-v-59a5bb81]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left[data-v-59a5bb81]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left .phone[data-v-59a5bb81]{line-height:.7rem}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left .phone span[data-v-59a5bb81]{color:#333;font:14px/.7rem PingFangSC-Regular;margin-right:.4rem}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .left .detail[data-v-59a5bb81]{margin-top:.2rem;color:#999;font:12px/1 PingFangSC-Regular;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.course-live-new .pay-pop .wrap .pop-foot .address .has-address .arror[data-v-59a5bb81]{width:.3rem;height:.6rem;background:url(" + escape(__webpack_require__(147)) + ") no-repeat;background-size:100% 100%}.course-live-new .pay-pop .wrap .pop-foot .pay-box[data-v-59a5bb81]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3.1rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem}.course-live-new .pay-pop .wrap .pop-foot .pay-box[data-v-59a5bb81]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-top:1px solid #eee;pointer-events:none}.course-live-new .pay-pop .wrap .pop-foot .pay-box .left[data-v-59a5bb81]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.course-live-new .pay-pop .wrap .pop-foot .pay-box .left p[data-v-59a5bb81]{color:#ff3f3f;font:700 16px/1 PingFangSC-Semibold}.course-live-new .pay-pop .wrap .pop-foot .pay-box .left span[data-v-59a5bb81]{margin-top:.4rem;color:#999;font:12px/.6rem PingFangSC-Regular;margin-right:.4rem}.course-live-new .pay-pop .wrap .pop-foot .pay-box .pay-btn[data-v-59a5bb81]{height:2.3rem;text-align:center;width:6.6rem;margin-left:.4rem;border-radius:.3rem;color:#fff;font:17px/2.3rem PingFangSC-Regular;background:#177afa}.course-live-new .giftMask[data-v-59a5bb81]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;z-index:101}.course-live-new .slidedown-enter-active[data-v-59a5bb81],.course-live-new .slidedown-leave-active[data-v-59a5bb81]{-webkit-transition:all .2s ease;transition:all .2s ease}.course-live-new .slidedown-enter[data-v-59a5bb81],.course-live-new .slidedown-leave-to[data-v-59a5bb81]{-webkit-transform:translateY(200px);-ms-transform:translateY(200px);transform:translateY(200px);opacity:0}.course-live-new .spreadWrap[data-v-59a5bb81]{-webkit-transition:all .2s ease;transition:all .2s ease;position:absolute;background-color:#fff;bottom:0;right:0;width:100%;height:-webkit-calc(100% - 7.5rem);height:calc(100% - 7.5rem);z-index:2000;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border-radius:.4rem .4rem 0 0}.course-live-new .spreadWrap .title[data-v-59a5bb81]{height:2.85rem;width:100%;background-color:#fff;text-align:center;position:relative;color:#333;font:700 17px/2.75rem PingFangSC-Semibold;border-bottom:1px solid #eee}.course-live-new .spreadWrap .title .leftContent[data-v-59a5bb81]{position:absolute;left:0;top:0;height:100%;color:#177afa;font:14px/2.75rem PingFangSC-Regular;padding-left:.8rem;text-indent:.55rem}.course-live-new .spreadWrap .title .leftContent[data-v-59a5bb81]:before{content:\"\";width:.35rem;height:.6rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/live/live-notice-arrow.png\");background-repeat:no-repeat;background-size:100%;position:absolute;top:1.06rem;left:.8rem}.course-live-new .spreadWrap .title .rightContent[data-v-59a5bb81]{position:absolute;right:0;top:0;height:100%;color:#666;font:14px/2.75rem PingFangSC-Regular;padding-right:.8rem}.course-live-new .spreadWrap .noticeContent[data-v-59a5bb81]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.course-live-new .spreadWrap .noticeContent .noticeWrap[data-v-59a5bb81]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;min-height:100%}.course-live-new .spreadWrap .noticeContent .noticeWrap.goodsWrap[data-v-59a5bb81]{background:#f5f5f5;padding:.6rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap[data-v-59a5bb81]{padding-bottom:2.8rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .wel-img[data-v-59a5bb81]{width:100%;max-width:100%;height:auto}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap>p[data-v-59a5bb81]{padding:.8rem;color:#333;font:700 18px/1.25rem PingFangSC-Medium}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address[data-v-59a5bb81]{position:fixed;bottom:2.8rem;left:0;width:100%;height:2.3rem;background:#fff6eb;padding:0 .8rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .no-address[data-v-59a5bb81]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#f73;font:700 16px/1 PingFangSC-Semibold}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address[data-v-59a5bb81],.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .no-address[data-v-59a5bb81]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .left[data-v-59a5bb81]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .left .phone span[data-v-59a5bb81]{color:#333;font:14px/.7rem PingFangSC-Regular;margin-right:.4rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .left .detail[data-v-59a5bb81]{margin-top:.2rem;color:#999;font:12px/1 PingFangSC-Regular;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.course-live-new .spreadWrap .noticeContent .noticeWrap .htmlWrap .address .has-address .arror[data-v-59a5bb81]{width:.3rem;height:.6rem;background:url(" + escape(__webpack_require__(147)) + ") no-repeat;background-size:100% 100%}.course-live-new .spreadWrap .noticeContent .noticeWrap #iframe2[data-v-59a5bb81],.course-live-new .spreadWrap .noticeContent .noticeWrap #iframe[data-v-59a5bb81]{width:100%;height:100%;display:block;vertical-align:bottom}.course-live-new .spreadWrap .noticeContent .noticeWrap .purchaseBtn[data-v-59a5bb81]{background-color:#fff;position:fixed;left:0;bottom:0;width:100%;padding:.3rem .8rem;text-align:center}.course-live-new .spreadWrap .noticeContent .noticeWrap .purchaseBtn div[data-v-59a5bb81]{display:inline-block;width:100%;height:2.2rem;border-radius:.3rem;background:#177afa;text-align:center;color:#fff;font:16px/2.3rem PingFangSC-Regular}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard[data-v-59a5bb81]{background:#fff;padding:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:.4rem;margin-bottom:.6rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .img-box[data-v-59a5bb81]{width:5rem;height:4.675rem;border-radius:.3rem;margin-right:.6rem;position:relative}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .img-box img[data-v-59a5bb81]{width:100%;height:100%;border-radius:.3rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .img-box .img-tip[data-v-59a5bb81]{position:absolute;top:0;left:0;width:1.2rem;height:1.2rem;background:rgba(0,0,0,.5);border-radius:.3rem 0 .3rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;font-size:12px;font-family:PingFangSC-Regular}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box[data-v-59a5bb81]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:4.475rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box.no-img[data-v-59a5bb81]{min-height:auto}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box.no-img .btn-box[data-v-59a5bb81]{position:static;margin-top:.8rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box p[data-v-59a5bb81]{color:#333;font:700 16px/1rem PingFangSC-Medium;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box .btn-box[data-v-59a5bb81]{position:absolute;right:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box .btn-box.flex-end[data-v-59a5bb81]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box .btn-box .price[data-v-59a5bb81]{color:#fe632a;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box .btn-box .price span[data-v-59a5bb81]{margin-left:2px;font:700 14px/1rem PingFangSC-Semibold}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box .btn-box .type-btn[data-v-59a5bb81]{width:3.4rem;height:1.425rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fe632a;border-radius:1.25rem}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box .btn-box .type-btn span[data-v-59a5bb81]{color:#fff;font:700 12px/1 PingFangSC-Semibold}.course-live-new .spreadWrap .noticeContent .noticeWrap .mesCard .right-box .btn-box .type-btn.disable[data-v-59a5bb81]{background:#ccc}.course-live-new .spread-enter-active[data-v-59a5bb81],.course-live-new .spread-leave-active[data-v-59a5bb81]{-webkit-transition:height .2s ease;transition:height .2s ease}.course-live-new .spread-enter[data-v-59a5bb81],.course-live-new .spread-leave-to[data-v-59a5bb81]{right:.73rem;bottom:7rem;width:3rem;height:3rem;opacity:0}.course-live-new .invite-detail[data-v-59a5bb81]{-webkit-transition:all .2s ease;transition:all .2s ease;position:absolute;background-color:#fff;bottom:0;right:0;width:100%;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem);z-index:2001;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.course-live-new .invite-detail .title[data-v-59a5bb81]{position:relative;height:2.75rem;line-height:2.75rem;text-align:center;background:#f6f6f6;font-size:.85rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333}.course-live-new .invite-detail .title div[data-v-59a5bb81]{position:absolute;top:0;right:0;height:100%;padding:0 .8rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666}.course-live-new .invite-detail .invite-content[data-v-59a5bb81]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.course-live-new .invite-detail .invite-content .people-num[data-v-59a5bb81]{margin:.6rem .8rem;height:8.25rem;background:#f5f5f5;border-radius:.4rem;text-align:center;position:relative}.course-live-new .invite-detail .invite-content .people-num div[data-v-59a5bb81]:first-child{padding-top:.8rem;font-size:1.6rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:700;color:#333;line-height:2.25rem}.course-live-new .invite-detail .invite-content .people-num div[data-v-59a5bb81]:nth-child(2){font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.course-live-new .invite-detail .invite-content .people-num .share-session[data-v-59a5bb81]{position:absolute;text-align:left;bottom:1rem;left:1rem;width:7.05rem;height:2rem;background:#fff;border-radius:.3rem;border:1px solid #26bd6d;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#26bd6d;line-height:2rem;text-indent:1.88rem}.course-live-new .invite-detail .invite-content .people-num .share-session img[data-v-59a5bb81]{position:absolute;width:1rem;height:1rem;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.course-live-new .invite-detail .invite-content .people-num .share-timeline[data-v-59a5bb81]{text-align:left;position:absolute;bottom:1rem;right:1rem;width:7.05rem;height:2rem;background:#fff;border-radius:.3rem;border:1px solid #72ace8;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#72ace8;line-height:2rem;text-indent:1.88rem}.course-live-new .invite-detail .invite-content .people-num .share-timeline img[data-v-59a5bb81]{position:absolute;width:1rem;height:1rem;top:50%;left:.68rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.course-live-new .invite-detail .invite-content .invite-rule[data-v-59a5bb81]{padding:0 .8rem 1rem;border-bottom:1px solid #ededed;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem}.course-live-new .invite-detail .invite-content .list-title[data-v-59a5bb81]{margin:1rem .8rem .2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.course-live-new .invite-detail .invite-content .invite-people[data-v-59a5bb81]{margin:0 .8rem}.course-live-new .invite-detail .invite-content .invite-people .invite-item[data-v-59a5bb81]{height:2.6rem;line-height:2.6rem;border-bottom:1px solid #ededed;position:relative}.course-live-new .invite-detail .invite-content .invite-people .invite-item[data-v-59a5bb81]:last-child{border-bottom:none}.course-live-new .invite-detail .invite-content .invite-people .invite-item img[data-v-59a5bb81]{width:1.4rem;height:1.4rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);border-radius:50%;background:#f0f8ff}.course-live-new .invite-detail .invite-content .invite-people .invite-item>div[data-v-59a5bb81]{margin-left:2rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:9rem}.course-live-new .invite-detail .invite-content .invite-people span[data-v-59a5bb81]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;position:absolute;top:0;right:0}.course-live-new .invite-detail .invite-content .no-invite[data-v-59a5bb81]{margin:0 .8rem;padding-top:2.5rem;text-align:center}.course-live-new .invite-detail .invite-content .no-invite img[data-v-59a5bb81]{width:2.25rem;height:2.03rem}.course-live-new .invite-detail .invite-content .no-invite p[data-v-59a5bb81]{margin-top:.73rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.13rem;padding-bottom:4.22rem}.course-live-new .shareMAsk[data-v-59a5bb81]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:2002;background:rgba(0,0,0,.5)}.course-live-new .shareMAsk .shareTips[data-v-59a5bb81]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.course-live-new .shareMAsk .shareTips>p[data-v-59a5bb81]:first-of-type{margin-top:.85rem}.course-live-new .shareMAsk .shareTips>p[data-v-59a5bb81]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.tip[data-v-59a5bb81]{text-align:center;padding-top:5rem}.tip img[data-v-59a5bb81]{width:2.6rem;height:4rem;padding-bottom:1rem}.tip p[data-v-59a5bb81]{color:#999;font-size:.9rem}.tip p[data-v-59a5bb81]:nth-of-type(2){color:#377ee1;font-size:.7rem;margin-top:.5rem;text-decoration:underline}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/dianzan.a10f22e.png";module.exports = __webpack_require__.p + "static/img/gift.9c26be8.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2583);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6745832d", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-live-new img.rocket{width:12.45rem;height:3.75rem;position:fixed;z-index:2;left:-100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.course-live-new .likeImg{width:1rem;height:1rem;position:absolute;bottom:-50%;left:50%;z-index:2}.course-live-new .giftBanner .bannerItem{will-change:all;width:100%;height:2.2rem;background:url(http://static1.kaxiuyun.com/static/img/giftBanner.png) 0 0 no-repeat;background-size:100%;overflow:hidden;margin-bottom:.5rem;opacity:0;position:relative;top:0;left:-100%}.course-live-new .giftBanner .bannerItem.slideIn{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);opacity:1}.course-live-new .giftBanner .bannerItem.slideOut{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);opacity:0}.course-live-new .giftBanner .bannerItem>.avatar{width:1.6rem;height:1.6rem;float:left;margin-top:.3rem;margin-left:.4rem;border-radius:50%}.course-live-new .giftBanner .bannerItem .rightContent{margin-left:2.4rem;margin-top:.15rem}.course-live-new .giftBanner .bannerItem .rightContent p:first-of-type{font-family:PingFangSC-Regular;font-size:.7rem;color:#fff}.course-live-new .giftBanner .bannerItem .rightContent p:nth-of-type(2){font-family:PingFangSC-Regular;font-size:.6rem;color:#ffc83e}.course-live-new .giftBanner .bannerItem>.giftImg{position:absolute;top:-.03rem;right:0;width:2.5rem;height:2.5rem}.mint-toast{z-index:3000!important}.noticeScrollWrap .van-notice-bar__content{font:15px/1 PingFangSC-Regular}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _timers = __webpack_require__(222);
var _drawPriceComponent = _interopRequireDefault(__webpack_require__(804));
var _liveHostMesList = _interopRequireDefault(__webpack_require__(1425));
var _liveCourseWare = _interopRequireDefault(__webpack_require__(1426));
var _float = _interopRequireDefault(__webpack_require__(2584));
var _float2 = _interopRequireDefault(__webpack_require__(2585));
var _float3 = _interopRequireDefault(__webpack_require__(2586));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import welfare from '../components/liveWelfare.vue'
// import AddressList from '../components/address-list.vue'
// import EditAddress from '../../memberCenter/personal/newGift/locationManage/locationEdit.vue'
// import PhoneAuth from '../components/phone-auth.vue'
var messageNum = 0; // 聊天室所有信息计数（包括红包）
var giftBannerNum = 0; // 礼物横幅的计数
var rocketNum = 0; // 大火箭的计数
var likeNum = 0; // 用户点击点赞按钮的计数
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _noticeBar.default.name, _noticeBar.default), _popup.default.name, _popup.default), "MescrollVue", _mescroll.default), "drawPrice", _drawPriceComponent.default), "hostMesList", _liveHostMesList.default), "courseware", _liveCourseWare.default),
  data: function data() {
    return {
      contentHeight: 0,
      // 初始时，视频区域以外的高度
      currentNotice: {},
      // 当前公告
      noticeList: [],
      // 公告数组
      isShowNotice: false,
      liveNo: this.$route.query.liveNo,
      showGiftWrap: false,
      showSendBtn: false,
      showInviteDetail: false,
      // 是否展示 邀请详情
      showTips: false,
      // 聊天框内 弹窗提示
      showIOSShareBox: false,
      // IOS微信分享提示
      tipsType: 'invite',
      // 弹窗提示 类型  invite: 邀请弹窗  share: 分享弹窗
      assisTimer: null,
      likeTimer: null,
      logTimer: null,
      messageList: [],
      inviteList: [],
      // 邀请人列表
      sendMessageValue: '',
      hasNewMsg: false,
      // 是否有新消息
      autoScroll: true,
      // 是否自动滚动聊天记录
      appkey: '',
      // 融云appid
      courseInfo: {},
      // 课程信息
      RcUserInfo: '',
      // 融云的当前用户信息
      join: false,
      // 是否已经加入当前聊天室
      isFullscreen: false,
      // 是否全屏播放  默认false
      mescroll: null,
      mescrollUp: {
        callback: this.getInvitationList,
        page: {
          num: 1,
          size: 10
        },
        auto: false
      },
      curIndex: 0,
      // 当前显示tab栏索引
      tabList: [{
        name: '课程详情',
        id: 0,
        show: true
      },
      // { name: '主持人', id: 1, show: true },
      {
        name: '聊天室',
        id: 2,
        show: true
      }, {
        name: '课件',
        id: 3,
        show: false
      }],
      clickMaskFlag: false,
      // 是否点击了播放按钮
      hasBenefit: 0,
      // 是否有福利列表
      hostMesList: [],
      // 主持人tab页主持人列表
      showAuthPop: false,
      // 是否展示认证和地址选择弹窗
      curPopType: 1,
      defaultAddres2: {},
      hasPhone: false,
      // 是否有手机号（认证）
      showPayPop: false,
      // 是否展示付尾款弹窗
      orderDetail: {},
      // 尾款对应的数据

      showEditAddressPop: false,
      // 显示新增编辑地址弹窗
      isFirstOpenEditPop: true,
      // 编辑地址的时候是否一开始打开的就是新增弹窗
      showPopFoot: true,
      addressListHome: [],
      inWxMiniApp: localStorage.getItem('inWxMinapp') === '1',
      // 是否在微信小程序打开
      liveGoodsList: [],
      // 直播带货商品列表，
      isShowGoogList: false,
      // 是否展示直播商品列表弹窗
      showLiveGoodTip: false,
      // 是否展示直播带货提示
      curTipData: null // 当前推送的直播带货内容
    };
  },
  watch: {
    showTips: function showTips(val) {
      var _this2 = this;
      // 当聊天框内 弹框提示 为false时，重置弹框类型为 invite
      if (!val) {
        (0, _timers.setTimeout)(function () {
          _this2.tipsType = 'invite';
        }, 300);
      }
    },
    showInviteDetail: function showInviteDetail(val) {
      var _this3 = this;
      // 打开邀请列表的时候 刷新邀请列表中的信息。
      if (val) {
        this.$nextTick(function () {
          _this3.mescroll.resetUpScroll();
        });
      }
    },
    'courseInfo.status': function courseInfoStatus(val) {
      // 监控直播状态，如果不为0（0代表直播中），则不必记录日志
      if (val === 1) {
        document.title = '犇犇课堂 即将直播';
      } else if (val === 3 || val === 5) {
        document.title = '犇犇课堂 直播结束';
      }
      if (val !== 0) {
        clearInterval(this.logTimer);
      }
    },
    showEditAddressPop: function showEditAddressPop(val) {
      var _this4 = this;
      if (val && this.curPopType === 0) {
        // 如果新打开地址弹窗并且是是新增
        (0, _timers.setTimeout)(function () {
          _this4.$refs.edifAddress2.changeCurAddress({});
        });
      }
    }
  },
  created: function created() {
    if (window.location.href.indexOf('https://wx') != -1) {
      this.appkey = 'e5t4ouvpe15aa'; // 生产
    } else {
      this.appkey = 'e5t4ouvpe15aa'; // 测试
    }

    // 添加meta标签 IOS 允许全屏观看
    // let _meta = document.createElement('meta');
    // _meta.id = 'iosFullscreen';
    // _meta.name = 'apple-mobile-web-app-capable'
    // _meta.content = 'yes';
    // document.getElementsByTagName('head')[0].appendChild(_meta);
  },
  mounted: function mounted() {
    var _this5 = this;
    this.getRoomInfo();
    this.assisTimer = (0, _timers.setTimeout)(this.randomLikeImg, 1000);
    // this.likeTimer = setInterval(this.sendLikeNum, 30000);

    /**
     * 打开地址列表弹窗
     * @param {Number} type 类型 1 代表原本有地址，打开列表弹窗    0, 10 代表原本没有地址，需要打开新增弹窗  2. 打开认证内容
     * @param {Object} arrress 修改尾款地址时，需要将尾款地址传入地址修改组件便于修改
    */
    this.$bus.$on('openParentPop', function (type, address) {
      _this5.curPopType = type;
      if (type === 0) {
        // 没有地址时，直接打开新增地址弹窗
        _this5.isFirstOpenEditPop = true;
        _this5.showEditAddressPop = true;
      } else {
        _this5.showAuthPop = true;
        if (type === 1) {
          (0, _timers.setTimeout)(function () {
            _this5.$refs.addressList.getAddressList();
          }, 200);
        }
      }
    });

    // 监听新增地址弹窗的省市区选择器的开关事件，让新增地址弹窗的底部按钮显示隐藏，主要兼容ios手机
    this.$bus.$on('showAreaSelect', function (isShow) {
      _this5.showPopFoot = !isShow;
    });
    // 接收带货商品页面传递的支付成功事件
    window.addEventListener('message', function (event) {
      if (event.data.message === 'payOk') {
        _this5.isShowNotice = false;
        _this5.currentNotice = {};
      } else if (event.data.message === 'miniAPPPay') {
        _this5._Util.wxPay(event.data.payInfo);
      } else if (event.data.message === 'payFail') {
        console.log('支付失败或者取消支付');
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    clearTimeout(this.assisTimer);
    // clearInterval(this.likeTimer);
    clearInterval(this.logTimer);
    this.quitRoom();
    // 移除meta标签
    // document.getElementById('iosFullscreen').remove();
  },
  methods: {
    // 预约课程
    orderCourse: function orderCourse() {
      var _this6 = this;
      // 未预约的情况下，才进行预约
      if (this.courseInfo.applyStatus === 0) {
        this._Util.post(this._Api.KAIXUYUN_LIVE.applyCourse, {
          liveNo: this.$route.query.liveNo
        }, function (data) {
          console.log(data);
          (0, _mintUi.Toast)({
            message: '恭喜您，已成功预约',
            position: 'middle',
            duration: 1500
          });
          _this6.courseInfo.applyStatus = 1;
        }, function () {}, this, true);
      }
    },
    /**
     * 新增弹窗关闭的时候需要判断是否之前已经打开了地址列表弹窗，如果是的话，需要重新打开
    */
    closeEditpop: function closeEditpop() {
      this.isFirstOpenEditPop = false;
      this.showEditAddressPop = false;
    },
    /**
     * 打开编辑或新增地址弹窗
    */
    showEditFn: function showEditFn(addressId) {
      var _this7 = this;
      this.showEditAddressPop = true;
      if (addressId) {
        this.curPopType = 1;
        (0, _timers.setTimeout)(function () {
          _this7.$refs.edifAddress2.parentGetLocationDetail(addressId);
        }, 200);
      } else {
        this.isFirstOpenEditPop = true;
        this.$refs.edifAddress2.changeCurAddress({});
      }
    },
    /**
     * 福利组件点击尾款订单的事件
     * @param {bollean} data 尾款数据
    */
    showPayPopFn: function showPayPopFn(data) {
      this.showPayPop = true;
      this.orderDetail = data;
    },
    clickPayAddressFn: function clickPayAddressFn() {
      var _this8 = this;
      if (this.addressListHome.length) {
        this.curPopType = 1;
        this.showAuthPop = true;
        (0, _timers.setTimeout)(function () {
          _this8.$refs.addressList.getAddressList();
        }, 200);
      } else {
        this.showEditAddressPop = true;
        this.curPopType = 0;
      }
    },
    /**
     * 付尾款
    */
    payFn: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this9 = this;
      var params;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (!(this.orderDetail.isVirtual === 0 && !this.orderDetail.province)) {
              _context.next = 1;
              break;
            }
            this.showEditAddressPop = true;
            this.curPopType = 0;
            (0, _mintUi.Toast)({
              message: '请填写收货地址',
              position: 'middle',
              duration: 1500
            });
            return _context.abrupt("return");
          case 1:
            params = {
              address: this.orderDetail.address,
              attach: 'ITEMFINAL',
              balancePrice: this.orderDetail.balancePrice,
              benefitsId: this.orderDetail.benefitsId,
              city: this.orderDetail.city,
              district: this.orderDetail.district,
              mdseFortPersonPrice: this.orderDetail.paidCash,
              mdsePersonPrice: this.orderDetail.orderAmount,
              orderId: this.orderDetail.orderId,
              province: this.orderDetail.province,
              receiveName: this.orderDetail.receiveName,
              receivePhone: this.orderDetail.receivePhone
            };
            this._Util.post(this._Api.BALANCE.PAY_BENEFITS, params, function (data) {
              _this9._Util.wxPay(data.jsApiParameters, function () {
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u652F\u4ED8\u6210\u529F</p>",
                  confirmButtonText: '继续看直播',
                  closeOnClickModal: false
                }).then(function (action) {
                  if (action === 'confirm') {
                    // alert('支付尾款成功')
                    _this9.showPayPop = false;
                    _this9.$refs.welfare.getListBenefits();
                  }
                });
              });
            }, function () {}, this);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 福利组件获取是否认证的标识
     * @param {bollean} data 是否已经认证
    */
    hasPhoneCb: function hasPhoneCb(data) {
      this.hasPhone = data;
    },
    /**
     * 福利组件获取默认地址后返回给当前页面
    */
    defaultAddressCb: function defaultAddressCb(data) {
      this.defaultAddres2 = data;
      if (this.showPayPop && JSON.stringify(data) !== '{}') {
        // 如果尾款窗口是打开的,且选择的地址是有数据的，表示需要更新尾款订单
        this.orderDetail.address = data.address;
        this.orderDetail.city = data.city;
        this.orderDetail.district = data.dist;
        this.orderDetail.province = data.province;
        this.orderDetail.receiveName = data.receiptName;
        this.orderDetail.receivePhone = data.receiptPhone;
        this.$refs.welfare.chagebalanAdsress(this.orderDetail);
      }
    },
    /**
     * 福利组件获取地址列表后返回给当前页面
    */
    addressListChangeCb: function addressListChangeCb(data) {
      console.log(data);
      this.addressListHome = data;
    },
    /**
     * 地址列表组组件设置默认地址成功的回调,同时出发福列表组件的获取默认地址的方法
    */
    setDefaultAddressCb: function setDefaultAddressCb() {
      this.showAuthPop = false;
      this.$refs.welfare.getAddressList();
    },
    /**
     * 触发认证子组件的认证手机号的方法
    */
    authPhone: function authPhone() {
      this.$refs.authPhone.savaUserInfo();
    },
    /**
     * 认证子组件的认证手机号成功的回调
    */
    authPhoneSuccessCb: function authPhoneSuccessCb() {
      this.showAuthPop = false;
      this.$refs.welfare.hasPhone();
    },
    /**
     * 新增子组件保存地址成功的回调
     * @param {Object} 保存地址成功后的地址内容
    */
    childSaveAddressSuccess: function childSaveAddressSuccess(data) {
      if (this.curPopType === 0) {
        // 没有地址时关闭
        this.showEditAddressPop = false;
        this.$refs.welfare.getAddressList();
      } else if (this.curPopType === 1) {
        this.showAuthPop = false;
        this.showEditAddressPop = false;
        this.$refs.welfare.getAddressList();
      }
    },
    /**
     * 出发新增地址子组件保存地址的事件
    */
    saveAddress: function saveAddress() {
      this.$refs.edifAddress2.saveAddressDetail();
    },
    showChildPop: function showChildPop() {
      this.$refs.addressList.openPop();
    },
    /**
     * 支付详情页点击地址栏
    */
    clickPayAddress: function clickPayAddress() {
      var _this0 = this;
      if (this.defaultAddres2.id) {
        this.curPopType = 1;
        this.showAuthPop = true;
        (0, _timers.setTimeout)(function () {
          _this0.$refs.addressList.getAddressList();
        }, 200);
      } else {
        if (this.addressListHome.length) {
          this.curPopType = 1;
          this.showAuthPop = true;
          (0, _timers.setTimeout)(function () {
            _this0.$refs.addressList.getAddressList();
          }, 200);
        } else {
          this.showEditAddressPop = true;
          this.curPopType = 0;
        }
      }
    },
    /**
     * 获取主持人历史聊天记录
    */
    getPresentList: function getPresentList() {
      var _this1 = this;
      this._Util.post(this._Api.POST_COURSE_LIVE_PRESENT_LIST, {
        liveNo: this.$route.query.liveNo
      }, function (data) {
        if (data) {
          var tempArr = data.map(function (item, index) {
            var obj = {};
            if (item.type === 1) {
              obj = {
                uId: '-30000',
                type: 2,
                avatar: 'http://static2.kaxiuyun.com/kxy/user/201809261913027389lfh.jpg',
                name: '主持人',
                message: item.title,
                index: item.id
              };
            } else if (item.type === 2) {
              obj = {
                uId: '-30000',
                type: 3,
                avatar: 'http://static2.kaxiuyun.com/kxy/user/201809261913027389lfh.jpg',
                name: '主持人',
                bg: 'http://static1.kaxiuyun.com/kxy/broadcast/hb.png',
                index: item.id,
                message: item.title,
                extra: {
                  amountFinal: '',
                  status: '',
                  isOpen: false,
                  benefitsId: item.benefitsId,
                  hbCommand: item.hbCommand,
                  hbTip1: item.hbTip1,
                  hbTip2: item.hbTip2,
                  hbTip3: item.hbTip3,
                  title: item.title,
                  id: item.id
                }
              };
            } else {
              obj = {
                uId: '-30000',
                type: 6,
                avatar: 'http://static2.kaxiuyun.com/kxy/user/201809261913027389lfh.jpg',
                name: '主持人',
                index: item.id,
                message: {
                  benefitsId: item.benefitsId,
                  id: item.id,
                  popupType: item.mdsePersonPrice ? 1 : 2,
                  // 如果有价格嗲表示支付类型的 popupType 1。支付  2。抽奖  3.问卷
                  title: item.title,
                  mdsePersonPrice: item.mdsePersonPrice,
                  content: item.content ? item.content.split(',') : [],
                  url: item.url,
                  buyNum: item.buyNum,
                  mdseFortPersonPrice: item.mdseFortPersonPrice,
                  paymentType: item.paymentType
                }
              };
            }
            return obj;
          });
          _this1.hostMesList = tempArr;
          if (_this1.courseInfo.appShowTab === 'anchor_page') {
            _this1.$refs.hostMes.toBottom();
          }
        }
      }, function () {}, this);
    },
    /**
     * 弹起礼物弹窗
     */
    showGiftWrapFn: function showGiftWrapFn() {
      this.showGiftWrap = true;
      this._Util.sensorsCollect('element_click', {
        $element_name: '直播礼物',
        $element_content: '直播礼物',
        $element_class_name: 'iconBtn',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.$route.query.liveNo,
        operation_page: '直播详情'
      });
    },
    /**
     * 点击播放视频
     */
    playVideo: function playVideo() {
      if (this.courseInfo.liveStatus === 3) {
        // 直播已结束，但回放未生成
        (0, _mintUi.Toast)({
          message: '课程回放暂未生成，请稍后再试',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      document.getElementById('video').play();
      this.clickMaskFlag = true;
    },
    /**
     * 获取福利列表
     * @param {Number} id 当前点击项的id
     */
    getBenefitsList: function getBenefitsList() {
      var _this10 = this;
      this.noticeList = [];
      this._Util.post(this._Api.POST_COURSE_LIVE_BENE_LIST, {
        liveNo: this.$route.query.liveNo
      }, function (data) {
        if (data) {
          // 将福利接口数据字段修改为跟融云推送的一样
          if (data.listBenefitsRespList) {
            var tempArr = data.listBenefitsRespList.map(function (item) {
              var imgUrlArr = [];
              if (item.benefitsUrl) {
                imgUrlArr = item.benefitsUrl.split(',');
              }
              return {
                title: item.benefitsName,
                popupType: item.benefitsType,
                hasStock: item.hasStock,
                mdsePersonPrice: item.mdsePersonPrice,
                mdseFortPersonPrice: item.mdseFortPersonPrice,
                benefitsId: item.benefitsId,
                content: imgUrlArr,
                lotteryNo: item.lotteryNo,
                url: item.questionnaireUrl,
                mdseCode: item.mdseCode,
                buyNum: item.buyNum,
                paymentType: item.paymentType
              };
            });
            _this10.noticeList = tempArr;
          }
        }
      }, function () {}, this);
    },
    /**
     * 获取福利详情
     * @param {Object} item 当前的福利对象
    */
    getDetailFn: function getDetailFn(item) {
      var _this11 = this;
      return new Promise(function (resolve, reject) {
        _this11._Util.post(_this11._Api.MALL.detailCommerce, {
          id: item.benefitsId
        }, function (data) {
          if (data) {
            resolve(data);
          }
        }, function () {
          reject();
        }, _this11);
      });
    },
    /**
     * 查看福利详情,打开弹窗
     * @param {Object} item 当前福利内容
     */
    toDetail: function toDetail(item) {
      var _this12 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var welData, imgUrlArr, tempData;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              console.log(2222, item);
              if (!(item.hasStock === 0)) {
                _context2.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '您来晚了，福利已售罄',
                position: 'middle',
                duration: 1500
              });
              return _context2.abrupt("return");
            case 1:
              if (_this12.hasPhone) {
                _context2.next = 2;
                break;
              }
              (0, _mintUi.Toast)({
                message: '请先认证手机号',
                position: 'middle'
              });
              _this12.showAuthPop = true;
              _this12.curPopType = 2;
              return _context2.abrupt("return");
            case 2:
              _context2.next = 3;
              return _this12.getDetailFn(item);
            case 3:
              welData = _context2.sent;
              imgUrlArr = [];
              if (welData.benefitsUrl) {
                imgUrlArr = welData.benefitsUrl.split(',');
              }
              tempData = {
                title: welData.benefitsName,
                popupType: welData.benefitsType,
                hasStock: welData.hasStock,
                mdseFortPersonPrice: welData.mdseFortPersonPrice,
                mdsePersonPrice: welData.mdsePersonPrice,
                benefitsId: welData.benefitsId,
                content: imgUrlArr,
                lotteryNo: welData.lotteryNo,
                url: welData.questionnaireUrl,
                mdseCode: welData.mdseCode,
                buyNum: welData.buyNum,
                isVirtual: welData.isVirtual,
                // 0 实物 1 虚拟
                paymentType: welData.paymentType // 1：表示全款支付  2:表示定金+尾款
              };
              _this12.clickNotice(tempData);
              _this12.isShowNotice = true;
              if (_this12.curIndex === 2) {
                _this12._Util.sensorsCollect('element_click', {
                  $element_name: '抢直播福利-聊天室',
                  $element_content: '抢直播福利-聊天室',
                  $element_class_name: 'type-btn',
                  $element_type: 'div',
                  $element_target_url: '',
                  $url: window.location.href,
                  $title: _this12.courseInfo.courseName,
                  moudle_type: '直播',
                  correlation_id: welData.benefitsId,
                  operation_page: '直播详情'
                });
              }
            case 4:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 修改当前打开tab页
     * @param {Number} id 当前点击项的id
     */
    changeIndex: function changeIndex(id) {
      this.autoScroll = true;
      if (id === 4 && this.curIndex !== 4) {
        this.getBenefitsList();
      } else if (id === 3 && this.curIndex !== 3) {
        this.$refs.courseware.getWarelist();
      } else if (id === 1 && this.curIndex !== 1) {
        this.$refs.hostMes.toBottom();
      }
      this.curIndex = id;
      var tabName = '';
      switch (id) {
        case 1:
          tabName = '直播详情-主持人tab';
          break;
        case 2:
          tabName = '直播详情-聊天室tab';
          break;
        case 3:
          tabName = '直播详情-课件tab';
          break;
        case 4:
          tabName = '直播详情-福利tab';
          break;
      }
      this._Util.sensorsCollect('element_click', {
        $element_name: '直播详情tab',
        $element_content: tabName,
        $element_class_name: '',
        $element_type: 'li',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.liveNo,
        operation_page: '直播详情'
      });
    },
    /**
     * 打开页面记录直播埋点
     * @param {Number} type 0 进行中 1 未开始 3,5 已结束
     */
    addSensorsCollect: function addSensorsCollect(type) {
      var status = '';
      switch (type) {
        case 0:
          status = '进行中';
          break;
        case 1:
          status = '未开始';
          break;
        case 3:
          status = '已结束';
          break;
        case 5:
          status = '已结束';
          break;
      }
      this._Util.sensorsCollect('enter_livingroom', {
        $url: window.location.href,
        $title: '犇犇课堂',
        $element_type: status
      });
    },
    /**
     * 底部邀请按钮点击逻辑
     */
    showInvitePopup: function showInvitePopup(e) {
      this._Util.sensorsHeatMap(e.target, {
        buttonName: '直播输入框邀请'
      });
      this.showInviteDetail = true;
      this._Util.sensorsCollect('element_click', {
        $element_name: '直播邀请',
        $element_content: '直播邀请',
        $element_class_name: 'iconBtn',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.$route.query.liveNo,
        operation_page: '直播详情'
      });
    },
    /**
     * 分享操作
     * @param {defaultEvent} e 点击行为默认事件
     * @param {string} type session：好友 timeline：朋友圈
     */
    share: function share(e, type) {
      var that = this;
      var _buttonName = type === 'session' ? '直播邀请详情分享到群' : type === 'timeline' ? '直播邀请详情分享朋友圈' : '直播邀请公告分享';
      that._Util.sensorsHeatMap(e.target, {
        buttonName: _buttonName
      });
      if (that._Util.isApp()) {
        var _shareItem = {
          title: "".concat(that.courseInfo.userName, "\u9080\u8BF7\u4F60\u89C2\u770B\u76F4\u64AD"),
          desc: "".concat(that.courseInfo.courseName, "\u6B63\u5728\u76F4\u64AD\u4E2D"),
          link: "".concat(location.origin, "/v2/shopping/courseLiveNew?liveNo=").concat(that.$route.query.liveNo, "&shareId=").concat(that.courseInfo.userId),
          imgLink: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
          imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg' // 两个方法接收的imgUrl字段名不一样
        };
        if (type === 'session' || type === 'timeline') {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: _objectSpread({
                type: type
              }, _shareItem)
            }
          });
          return;
        }
        that._Util.acSendEvent({
          name: 'showSharePage',
          extra: _shareItem
        });
      } else if (that._Util.isMPaaS()) {
        var params = {
          title: "".concat(that.courseInfo.userName, "\u9080\u8BF7\u4F60\u89C2\u770B\u76F4\u64AD"),
          desc: "".concat(that.courseInfo.courseName, "\u6B63\u5728\u76F4\u64AD\u4E2D"),
          link: "".concat(location.origin, "/v2/shopping/courseLiveNew?liveNo=").concat(that.$route.query.liveNo, "&shareId=").concat(that.courseInfo.userId),
          imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
        };
        if (type === 'timeline') {
          params.isWXTL = true;
        } else if (type === 'session') {
          params.isWX = true;
        }
        this._Util.mpassShare(params, function (shareData) {
          console.log(shareData);
        });
      } else {
        if (that._Util.isIOS) {
          this.showTips = false;
          this.showIOSShareBox = true;
        } else {
          that.showTips = true;
          that.tipsType = 'share';
        }
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      if (that.inWxMiniApp) {
        uni.postMessage({
          // eslint-disable-line
          data: {
            type: 'updataShareCont',
            title: that.courseInfo.liveName,
            imageUrl: that.courseInfo.liveCoverImg
          }
        });
        return;
      }
      var _shareItem = {
        title: that.courseInfo.liveName,
        desc: that.courseInfo.classifyName,
        imgUrl: that.courseInfo.liveCoverImg,
        link: "".concat(location.origin, "/repair/liveCurricuDetail?liveNo=").concat(that.$route.query.liveNo)
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
            success: function success() {},
            cancel: function cancel() {}
          });
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
        });
      }, function () {}, that, true);
    },
    /**
     * mescroll 初始化方法
     * @param {object} mescroll 实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取当前所有的邀请人
     */
    getInvitationList: function getInvitationList(page, mescroll) {
      var _this13 = this;
      this._Util.post(this._Api.POST_COURSE_LIVE_INVITATION_LIST, {
        id: this.$route.query.liveNo,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        _this13.courseInfo.broadcastNoticeVo.invitationCount = data.invitationCount;
        var arr = data.userList;
        if (page.num === 1) {
          _this13.inviteList = [];
        }
        _this13.inviteList = _this13.inviteList.concat(arr);
        _this13.$nextTick(function () {
          _this13.mescroll.endSuccess(arr.length);
        });
      }, function () {
        _this13.mescroll.endErr();
      }, this, true);
    },
    /**
     * 转换换行符
     * @param {string} string 需要转换的文本
     */
    parseHtml: function parseHtml(string) {
      return string.replace(/\n/g, '<br/>');
    },
    /**
     * 公告弹窗逻辑
     * @param {object} noticeInfo 公告信息
     * @param {String} uname, avater  发消息人的名称及头像
     */
    noticePopup: function noticePopup(noticeInfo, uname, avatar) {
      var _this14 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var tempNotice, imgUrlArr, welData, hasFlag;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              tempNotice = _objectSpread(_objectSpread({}, noticeInfo), {}, {
                buyNum: 0
              });
              if (!(tempNotice.force && !_this14.isShowNotice && !_this14.isFullscreen)) {
                _context3.next = 2;
                break;
              }
              // 当前公告为强制打开 并且 当前没有打开的公告 并且没有全屏播放
              _this14.$refs.input.blur();
              imgUrlArr = [];
              if (tempNotice.content) {
                imgUrlArr = tempNotice.content.split(',');
              }
              tempNotice.content = imgUrlArr;
              _context3.next = 1;
              return _this14.getDetailFn(tempNotice);
            case 1:
              welData = _context3.sent;
              tempNotice.paymentType = welData.payType; // 带货支付类型 1：表示全款支付 2:表示定金+尾款
              tempNotice.mdseFortPersonPrice = welData.depositPrice; // 定金
              tempNotice.mdsePersonPrice = welData.fullPaymentPrice; // 全款
              tempNotice.buyNum = welData.buyNum;
              if (tempNotice.popupType === 1) {
                tempNotice.goodUrl = window.location.origin + '/repair/mall/productDetail?id=' + welData.mdCode + '&commerceId=' + tempNotice.benefitsId;
              } else if (tempNotice.popupType === 4) {
                // 优惠券
                tempNotice = _objectSpread(_objectSpread({}, tempNotice), welData);
              }

              // 卡修宝典直播不对商品可购买数量限制，但是券领过就不能领了
              // if (welData.personLimitStatus === 0) {
              _this14.clickNotice(tempNotice);
              _this14.isShowNotice = true;
              // }
              // 需要往聊天记录里添加一条福利卡片
              _this14.addMessage(6, avatar, uname, tempNotice);
            case 2:
              hasFlag = _this14.noticeList.filter(function (item) {
                return tempNotice.benefitsId === item.benefitsId;
              });
              if (!hasFlag.length) {
                _this14.noticeList.unshift(tempNotice);
              }
            case 3:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /** 关闭公告弹窗 */closeNotice: function closeNotice(type) {
      if (type === 1) {
        // 支付商品，此时需要将iframe回退
        var iframeWindow = document.getElementById('iframe2').contentWindow;
        if (iframeWindow.location.href !== this.currentNotice.goodUrl) {
          document.getElementById('iframe2').contentWindow.history.back();
        } else {
          this.isShowNotice = false;
          this.currentNotice = {};
        }
        return;
      }
      /** 抽奖弹窗正在抽奖的时候 禁止关闭弹窗 */
      if (this.currentNotice.popupType === 2) {
        if (this.$refs.drawPrice.isDrawing) {
          (0, _mintUi.Toast)({
            message: '正在抽奖中...',
            position: 'middle',
            duration: 800
          });
          return;
        }
      }
      this.isShowNotice = false;
      this.currentNotice = {};
    },
    /**
     * 点击指定公告
     * @param {object} noticeInfo 公告信息
     */
    clickNotice: function clickNotice(noticeInfo) {
      this.currentNotice = noticeInfo;
    },
    /**
     * 支付逻辑
     * @param {number} id 热门活动的弹窗id
     */
    purchase: function purchase() {
      var _this15 = this;
      // 实物商品且没有默认地址
      if (this.currentNotice.isVirtual === 0 && !this.defaultAddres2.id) {
        this.showEditAddressPop = true;
        this.curPopType = 0;
        (0, _mintUi.Toast)({
          message: '请填写收货地址',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      if (!this.hasPhone) {
        this.showAuthPop = true;
        this.curPopType = 2;
        return;
      }
      this._Util.sensorsCollect('element_click', {
        $element_name: '支付直播福利',
        $element_content: '支付直播福利',
        $element_class_name: '',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: this.courseInfo.courseName,
        moudle_type: '直播',
        correlation_id: this.currentNotice.benefitsId,
        operation_page: '直播详情'
      });
      if (this.currentNotice.mdsePersonPrice === -1) {
        (0, _mintUi.Toast)({
          message: '您已购买过该福利，请勿重复购买',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      var params = {
        address: this.defaultAddres2.address,
        attach: this.currentNotice.paymentType === 1 ? 'TOTAL' : 'ITEMDEPOSIT',
        benefitsId: this.currentNotice.benefitsId,
        city: this.defaultAddres2.city,
        district: this.defaultAddres2.dist,
        mdseFortPersonPrice: this.currentNotice.mdseFortPersonPrice,
        mdsePersonPrice: this.currentNotice.mdsePersonPrice,
        province: this.defaultAddres2.province,
        receiveName: this.defaultAddres2.receiptName,
        receivePhone: this.defaultAddres2.receiptPhone
      };
      this._Util.post(this._Api.BALANCE.PAY_BENEFITS, params, function (data) {
        _this15._Util.wxPay(data.jsApiParameters, function () {
          (0, _mintUi.MessageBox)({
            title: '',
            message: "<p style='font-size:0.85rem;padding-top:0.6rem;text-align:center;' >\u652F\u4ED8\u6210\u529F</p>",
            confirmButtonText: '继续看直播',
            closeOnClickModal: false
          }).then(function (action) {
            if (action === 'confirm') {
              _this15.closeNotice();
              _this15.$refs.welfare.getListBenefits();
            }
          });
        });
      }, function () {}, this);
    },
    /**
     * 点击用户头像 @ 对方
     * @param {string} name 用户昵称
     */
    atUser: function atUser(name) {
      this.sendMessageValue = "@".concat(name, " ");
    },
    /** 点击进入直播回放页面 */goLivePlayback: function goLivePlayback() {
      var _this16 = this;
      this._Util.post(this._Api.POST_COURSE_GET_LIVE_PLAYBACK, {
        id: this.$route.query.liveNo
      }, function (data) {
        if (data.status === 0) {
          _this16.$router.push({
            name: 'playbackPlayer',
            query: {
              src: encodeURIComponent(data.targetUrl)
            }
          });
        } else if (data.status === 4) {
          location.href = "".concat(location.origin, "/v2/shopping/shareTicket?course_id=").concat(_this16.$route.query.liveNo);
        }
      }, function () {}, this);
    },
    /**
     * 获取聊天室基本信息
     * @param {String} type 请求的类型 type为emit时，代表子组件预约成功后触发，此时不需要调用神策埋点及分享接口
    */
    getRoomInfo: function getRoomInfo(type) {
      var _this17 = this;
      this._Util.post(this._Api.KAIXUYUN_LIVE.getLiveDetail, {
        liveNo: this.$route.query.liveNo
      }, function (data) {
        _this17.userId = localStorage.getItem('userId') || _this17.$store.state.userInfo.userId;
        _this17.courseInfo = data;
        if (type === 'emit') return;
        _this17.shareConfig();
        _this17.tabList[0].show = data.liveStatus === 2;
        _this17.tabList[1].show = data.liveStatus === 2;
        _this17.RcUserInfo = new RongIMLib.UserInfo(data.viewerId, data.uname, data.headingUrl);
        _this17.initRongCloud();
        _this17.getLiveGoods();
        _this17.$nextTick(function () {
          var _this = _this17;
          var videoEl = document.getElementById('video');
          videoEl.addEventListener('play', function () {
            _this.clickMaskFlag = true;
          });
          _this17.contentHeight = _this17.$refs.contentWrap.clientHeight;
          if (_this17.courseInfo.liveStatus === 2 && !_this17.isMac()) {
            // 直播并且非mac才用hls播放
            var video = document.getElementById('video');
            var hls = new Hls(); // eslint-disable-line
            hls.loadSource(_this17.courseInfo.hlsLiveUrl);
            hls.attachMedia(video);
            hls.on(Hls.Events.MANIFEST_PARSED, function () {
              // eslint-disable-line
              video.play();
            });
          }
        });
      }, function () {}, this);
    },
    // 判断是否是mac端
    isMac: function isMac() {
      var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
      return !!isMac;
    },
    /**
     * 未开始子组件的预约成功事件
    */
    orderFn: function orderFn() {
      this.getRoomInfo('emit');
    },
    /**
     * 礼物打赏
     * @param {string} giftName 礼物名称
     * @param {number} giftCode 礼物支付code
     * @param {string} giftPrice 礼物价格
     */
    giftReward: (0, _throttleDebounce.debounce)(350, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4(giftName, giftCode, giftPrice) {
        var _this18 = this;
        return _regenerator.default.wrap(function (_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              if (giftPrice == 0) {
                this.addMessage(4, this.courseInfo.userHeadingUrl, this.courseInfo.userName, "\u9001\u51FA ".concat(giftName));
              } else {
                this._Util.post(this._Api.POST_COURSE_GIVE_REWARD, {
                  code: giftCode,
                  liveNo: this.$route.query.liveNo
                }, function (data) {
                  _this18._Util.wxPay(data.jsApiParameters, function () {
                    _this18.addMessage(4, _this18.courseInfo.userHeadingUrl, _this18.courseInfo.userName, "\u9001\u51FA ".concat(giftName));
                    (0, _mintUi.Toast)({
                      message: '支付成功',
                      position: 'middle',
                      duration: 1500
                    });
                  });
                }, function () {}, this);
              }
            case 1:
            case "end":
              return _context4.stop();
          }
        }, _callee4, this);
      }));
      return function (_x, _x2, _x3) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /** 初始化融云 */initRongCloud: function initRongCloud() {
      var that = this;
      RongIMLib.RongIMClient.init(that.appkey);
      // 连接状态监听器
      RongIMClient.setConnectionStatusListener({
        onChanged: function onChanged(status) {
          switch (status) {
            case RongIMLib.ConnectionStatus.CONNECTED:
              console.log('链接成功');
              break;
            case RongIMLib.ConnectionStatus.CONNECTING:
              console.log('正在链接');
              break;
            case RongIMLib.ConnectionStatus.DOMAIN_INCORRECT:
              console.log('域名不正确');
              break;
            case RongIMLib.ConnectionStatus.KICKED_OFFLINE_BY_OTHER_CLIENT:
              console.log('其他设备登录');
              break;
            case RongIMLib.ConnectionStatus.DISCONNECTED:
              console.log('断开连接');
              break;
            case RongIMLib.ConnectionStatus.NETWORK_UNAVAILABLE:
              console.log('网络不可用');
              break;
          }
        }
      });
      // 消息监听器
      RongIMClient.setOnReceiveMessageListener({
        // 接收到的消息
        onReceived: function onReceived(message) {
          console.log('rongyun', message);
          var extra = message.content.extra;
          var uname = message.content.user.name || '用户_' + message.content.user.userNo;
          var avatar = message.content.user.portraitUri;
          var msg = message.content.content;
          var userId = message.senderUserId;
          switch (message.messageType) {
            case RongIMClient.MessageType.TextMessage:
              if (extra) {
                if (extra == 'P' || extra == 'C') {
                  console.log('主播正在切换直播，请等待....');
                  this.addMessage(5, null, null, '主播正在切换直播，请等待....');
                  return;
                } else if (extra == 'START') {
                  console.log('主播已经开始直播，请退出后重新进入');
                  this.addMessage(5, null, null, '主播已经开始直播，请退出后重新进入');
                  return;
                } else if (extra == 'END') {
                  console.log('本次课程已结束');
                  this.addMessage(5, null, null, '本次课程已结束');
                  return;
                } else if (extra == 'DASHANG') {
                  var giftName = msg.split(' ')[1];
                  that.addGiftBanner(giftName, uname, avatar);
                  if (giftName !== '老铁666') {
                    var _msg = "\u611F\u8C22 <span style=\"color:#FF702A\" >".concat(uname, "</span> \u9001\u51FA <span style=\"color:#FF702A\" >").concat(giftName, "</span>");
                    that.addMessage(2, that.courseInfo.anchorHeadingUrl, that.courseInfo.anchorName, _msg, userId, 'DASHANG');
                  }
                  return;
                } else if (extra == 'NOTICE') {
                  // 推送的福利内容
                  // that.noticePopup(JSON.parse(msg), uname, avatar)
                  that.initTipData(JSON.parse(msg), uname, avatar);
                  that.getLiveGoods();
                  return;
                } else if (extra == 'TIPS') {
                  var noticeMsg = JSON.parse(msg);
                  that.courseInfo.content = '';
                  (0, _timers.setTimeout)(function () {
                    that.courseInfo.content = noticeMsg.content;
                  }, 200);
                  that.courseInfo.popupName = noticeMsg.popupName;
                  return;
                }
              }
              that.addMessage(2, avatar, uname, msg, userId);
              break;
            case RongIMClient.MessageType.VoiceMessage:
              // message.content.content => 格式为 AMR 的音频 base64
              break;
            case RongIMClient.MessageType.ImageMessage:
              that.addMessage(3, avatar, uname, message.content);
              break;
            case RongIMClient.MessageType.LocationMessage:
              // message.content.latiude => 纬度
              // message.content.longitude => 经度
              // message.content.content => 位置图片 base64
              break;
            case RongIMClient.MessageType.RichContentMessage:
              // message.content.content => 文本消息内容
              // message.content.imageUri => 图片 base64
              // message.content.url => 原图 URL
              break;
            case RongIMClient.MessageType.InformationNotificationMessage:
              break;
            case RongIMClient.MessageType.ContactNotificationMessage:
              break;
            case RongIMClient.MessageType.ProfileNotificationMessage:
              break;
            case RongIMClient.MessageType.CommandNotificationMessage:
              break;
            case RongIMClient.MessageType.CommandMessage:
              break;
            case RongIMClient.MessageType.UnknownMessage:
              break;
            default:
          }
        }
      });
      // 连接融云
      RongIMClient.connect(that.courseInfo.rongToken, {
        onSuccess: function onSuccess(userId) {
          console.log('Connect successfully.' + userId);
          that.joinRoom(that.$route.query.liveNo);
        },
        onTokenIncorrect: function onTokenIncorrect() {
          console.log('token无效');
        },
        onError: function onError(errorCode) {
          var info = '';
          switch (errorCode) {
            case RongIMLib.ErrorCode.TIMEOUT:
              info = '超时';
              break;
            case RongIMLib.ConnectionState.UNACCEPTABLE_PAROTOCOL_VERSION:
              info = '不可接受的协议版本';
              break;
            case RongIMLib.ConnectionState.IDENTIFIER_REJECTED:
              info = 'appkey不正确';
              break;
            case RongIMLib.ConnectionState.SERVER_UNAVAILABLE:
              info = '服务器不可用';
              break;
          }
          console.log(info);
          console.log(errorCode);
        }
      });
    },
    /**
     * 加入聊天室
     * @param {string} liveNo 当前被课程id
     */
    joinRoom: function joinRoom(liveNo) {
      RongIMClient.getInstance().joinChatRoom(liveNo, -1, {
        onSuccess: function onSuccess() {
          console.log('加入聊天室成功');
          this.join = true;
        },
        onError: function onError() {
          console.log('加入聊天室失败');
          this.join = false;
        }
      });
    },
    /**
     * 退出聊天室
     */
    quitRoom: function quitRoom() {
      if (this.courseInfo.status === 0) {
        RongIMClient.getInstance().quitChatRoom(this.liveNo, {
          onSuccess: function onSuccess() {
            console.log('退出聊天室成功');
          },
          onError: function onError() {
            console.log('退出聊天室失败');
          }
        });
      }
    },
    /**
     * 发送消息
     */
    sendMessage: function sendMessage() {
      if (this.sendMessageValue.trim() === '') {
        return (0, _mintUi.Toast)({
          message: '请输入有效信息',
          position: 'middle',
          duration: 1000
        });
      }
      this.curIndex = 2;
      this.sendMsgByApi(this.sendMessageValue);
    },
    /**
     * 发送留言消息
     * @param {string} message 留言信息
     */
    sendMsgByApi: function sendMsgByApi(message) {
      var _this19 = this;
      this._Util.post(this._Api.KAIXUYUN_LIVE.liveMessage, {
        liveNo: this.$route.query.liveNo,
        content: message
      }, function (data) {
        _this19.addMessage(1, _this19.courseInfo.headingUrl, _this19.courseInfo.uname, _this19.sendMessageValue);
        _this19.sendMessageValue = '';
      }, function () {}, this, true);
    },
    /**
     * 限制不同类型消息的数量
     * 当满足数量时，删除同类型消息的第一条
     * @param {string} msgType 消息类型
     * @param {number} limit 限制的数量
     */
    limitMessage: function limitMessage(msgType, limit) {
      var _msgList = this.messageList.filter(function (v) {
        return v.type === msgType;
      });
      if (_msgList.length > limit) {
        this.messageList.splice(this.messageList.findIndex(function (v) {
          return v.index === _msgList[0].index;
        }), 1);
      }
    },
    /**
     * 插入一条新的聊天记录
     * @param {number} messageType 插入的消息类型 1：我的消息  2：其他用户的消息  3：红包  4：打赏消息  5：直播相关提示信息 6.福利卡片
     * @param {string} uavatar 发布消息人的头像
     * @param {string} uname 发布消息人的姓名
     * @param {object} umessage 发布的消息  （当messageType为3时，则是红包详情信息）
     * @param {string} uId 发布消息人id (仅当messageType为2时存在)
     * @param {Boolean} isDASHANG 该条消息是否是打赏完成后自动推送的消息
     */
    addMessage: function addMessage(messageType, uavatar, uname, umessage, uId, isDASHANG) {
      if (this.curIndex === 1) {
        if (uId === '-30000' && (messageType === 2 || messageType === 3 || messageType === 6)) {
          this.hasNewMsg = true;
        }
      } else if (this.curIndex === 2 && messageType !== 1) {
        this.hasNewMsg = true;
      }
      if (messageType === 5) {
        this.messageList.push({
          index: messageNum++,
          message: umessage,
          type: messageType
        });
        this.limitMessage(messageType, 5);
      } else if (messageType === 4) {
        var that = this;
        var msg = new RongIMLib.TextMessage({
          content: umessage,
          user: that.RcUserInfo,
          extra: 'DASHANG'
        });
        that.showGiftWrap = false;
        that.addGiftBanner(umessage.split(' ')[1], uname, uavatar);
        RongIMClient.getInstance().sendMessage(RongIMLib.ConversationType.CHATROOM, this.$route.query.liveNo, msg, {
          onSuccess: function onSuccess(message) {
            console.log('Send successfully:' + JSON.stringify(message.content));
            that.curIndex = 2;
            if (message.content.extra == 'DASHANG') {
              var _uname = message.content.user.name;
              // eslint-disable-next-line no-unused-vars
              var avatar = message.content.user.portraitUri;
              var _msg2 = message.content.content;
              var giftName = _msg2.split(' ')[1];
              var userId = message.senderUserId;

              // that.addGiftBanner(giftName, uname, avatar );

              if (giftName !== '老铁666') {
                var _msg = "\u611F\u8C22 <span style=\"color:#EE4545\" >".concat(_uname, "</span> \u9001\u51FA <span style=\"color:#EE4545\" >").concat(giftName, "</span>");
                that.addMessage(2, that.courseInfo.anchorHeadingUrl, that.courseInfo.anchorName, _msg, userId, 'DASHANG');
              }
            }
          },
          onError: function onError(errorCode, message) {
            var info = '';
            switch (errorCode) {
              case RongIMLib.ErrorCode.TIMEOUT:
                info = '超时';
                break;
              case RongIMLib.ErrorCode.UNKNOWN_ERROR:
                info = '未知错误';
                break;
              case RongIMLib.ErrorCode.REJECTED_BY_BLACKLIST:
                info = '在黑名单中，无法向对方发送消息';
                break;
              case RongIMLib.ErrorCode.NOT_IN_DISCUSSION:
                info = '不在讨论组中';
                break;
              case RongIMLib.ErrorCode.NOT_IN_GROUP:
                info = '不在群组中';
                break;
              case RongIMLib.ErrorCode.NOT_IN_CHATROOM:
                info = '不在聊天室中';
                break;
              default:
                info = '您已被禁言';
                break;
            }
            console.log('发送失败:' + info);
          }
        });
      } else if (messageType === 3) {
        var redPack = {
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage.content,
          bg: umessage.imageUri,
          type: messageType,
          extra: _objectSpread({
            amountFinal: '',
            status: '',
            isOpen: false
          }, JSON.parse(umessage.extra))
        };
        this.messageList.push(redPack);
        this.hostMesList.push(redPack);
        this.limitMessage(messageType, 5);
      } else if (messageType === 6) {
        var welfare = {
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage || {},
          type: messageType
        };
        this.messageList.push(welfare);
        this.hostMesList.push(welfare);
      } else {
        var mesObj = {
          index: messageNum++,
          name: uname,
          avatar: uavatar,
          message: umessage,
          type: messageType,
          uId: uId,
          isDASHANG: isDASHANG === 'DASHANG'
        };
        this.messageList.push(mesObj);
        if (messageType === 2) {
          this.hostMesList.push(mesObj);
        }
        this.limitMessage(messageType, 40);
      }
      this.scrollToBottom(messageType, uId);
    },
    /**
     * 大火箭飞动画
     */
    bigRocket: function bigRocket() {
      var _num = rocketNum++;
      var _height = (0, _jquery.default)('.courseLive').height() - (0, _jquery.default)('.inputWrap').height() - (0, _jquery.default)('.videoWrap').height() - 70;
      var _randTop = Math.floor(Math.random() * _height) + 230;
      var _rocket = '<img class="rocket" style="top: ' + _randTop + 'px" id=' + 'rocket' + _num + ' src="http://static1.kaxiuyun.com/static/img/bigRocket.png" alt="">';
      (0, _jquery.default)('.courseLive').append(_rocket);
      (0, _jquery.default)('#rocket' + _num).animate({
        left: '50%'
      }, 300);
      (0, _timers.setTimeout)(function () {
        (0, _jquery.default)('#rocket' + _num).animate({
          left: '300%'
        }, 300, 'linear', function () {
          (0, _jquery.default)(this).remove();
        });
      }, 1500, _num);
    },
    /**
     * 增加一条礼物横幅
     * @param {string} giftName 礼物名称
     * @param {string} userName 打赏人姓名
     * @param {string} userAvatar 打赏人头像
     */
    addGiftBanner: function addGiftBanner(giftName, userName, userAvatar) {
      var transform = {
        '老铁666': {
          duration: 1000,
          url: '666'
        },
        '太棒了': {
          duration: 2000,
          url: 'good'
        },
        '比心': {
          duration: 2000,
          url: 'star'
        },
        '么么哒': {
          duration: 2000,
          url: 'mua'
        },
        '来一杯': {
          duration: 2000,
          url: 'beer'
        },
        '老司机': {
          duration: 4000,
          url: 'driver'
        },
        '跑车': {
          duration: 4000,
          url: 'car'
        },
        '火箭': {
          duration: 6000,
          url: 'rocket'
        }
      };
      var _num = giftBannerNum++;
      var _limit = giftName == '老铁666' || giftName == '太棒了' || giftName == '比心' ? 'limit_10' : 'limit_20';
      var _banner = "<div class=\"bannerItem ".concat(_limit, "\" id=\"").concat(_num, "\">\n          <img class=\"avatar\" src=\"").concat(userAvatar, "\" alt=\"\">\n          <div class=\"rightContent\">\n            <p>").concat(userName, "</p>\n            <p>\u9001\u51FA ").concat(giftName, "</p>\n          </div>\n          <img class=\"giftImg\" src=\"http://static1.kaxiuyun.com/static/img/").concat(transform[giftName].url, ".png\" alt=\"\">\n        </div>");
      if ((0, _jquery.default)('.' + _limit).length >= _limit.split('_')[1]) return;
      if (transform[giftName].duration < 4000) {
        (0, _jquery.default)('.giftBanner').append(_banner).children().last().animate({
          left: '0px',
          opacity: '1'
        }, 200);
      } else {
        (0, _jquery.default)('.giftBanner').prepend(_banner).children().first().animate({
          left: '0px',
          opacity: '1'
        }, 200);
      }
      if (giftName == '火箭') {
        this.bigRocket();
      }
      (0, _timers.setTimeout)(function () {
        (0, _jquery.default)('#' + _num).animate({
          left: '-100%',
          opacity: '0',
          height: '0'
        }, 300, 'linear', function () {
          (0, _jquery.default)(this).remove();
        });
      }, transform[giftName].duration || 1500, _num);
    },
    /**
     * 开始自动生成点赞图片
     */
    randomLikeImg: function randomLikeImg() {
      var timeCounter = (1 - Math.random() * 1) * 1800;
      this.assistImg();
      (0, _jquery.default)('.likeImgWrap img').each(function () {
        var bottom = (0, _jquery.default)(this).css('bottom');
        if (bottom == '400px') {
          (0, _jquery.default)(this).remove();
        }
      });
      this.assisTimer = (0, _timers.setTimeout)(this.randomLikeImg, timeCounter);
    },
    /**
     * 随机生成单个点赞图片
     * @param {string} source 来源为 用户点击
     */
    assistImg: function assistImg(source) {
      if (source === 'click') {
        likeNum++;
        this._Util.sensorsCollect('element_click', {
          $element_name: '直播点赞',
          $element_content: '直播点赞',
          $element_class_name: 'iconBtn',
          $element_type: 'div',
          $element_target_url: '',
          $url: window.location.href,
          $title: this.courseInfo.courseName,
          moudle_type: '直播',
          correlation_id: this.$route.query.liveNo,
          operation_page: '直播详情'
        });
      }
      var num = Math.floor(Math.random() * 3 + 1);
      var rand = 20 - Math.floor(Math.random() * 100);
      var arr = [_float.default, _float2.default, _float3.default];
      (0, _jquery.default)('.likeImgWrap').append("<img class=\"likeImg\" src=\"".concat(arr[num - 1], "\">"));
      (0, _jquery.default)('.likeImgWrap img').animate({
        bottom: '400px',
        opacity: '0',
        left: rand + 'px'
      }, (Math.random() * 3 + 3) * 1000);
    },
    /**
     * 输入框 聚焦与否 相关逻辑变化
     * @param {boolean} isShowSendBtn 是否展示发送按钮
     */
    focusOrNot: function focusOrNot(isShowSendBtn) {
      this.showSendBtn = isShowSendBtn;
      this.scrollToBottom();
    },
    /**
     * 聊天记录自动滚动到底部
     * @param {String} type 触发滚动的形式， 自己发的消息成功后应该滚动到页面底部
    */
    scrollToBottom: function scrollToBottom(type, uId) {
      if (this.curIndex === 1) {
        // 主持人tab页
        if (type === 'click') {
          this.$refs.hostMes.toBottom();
          return;
        }
        if (this.autoScroll && (type === 3 || type === 6 || type === 2) && uId === '-30000') {
          this.$refs.hostMes.toBottom();
        }
      } else if (this.curIndex === 2) {
        // 聊天室tab
        if (type === 'click' || type === 1) {
          (0, _jquery.default)('#messageList').animate({
            scrollTop: 100000
          }, 300);
          return;
        }
        if (this.autoScroll) {
          this.$nextTick(function () {
            (0, _jquery.default)('#messageList').animate({
              scrollTop: 100000
            }, 300);
          });
        }
      }
    },
    /**
     * 监听用户滚动聊天记录的行为
     */
    listenScroll: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
      var messageDOM, _height;
      return _regenerator.default.wrap(function (_context5) {
        while (1) switch (_context5.prev = _context5.next) {
          case 0:
            messageDOM = (0, _jquery.default)('#messageList')[0];
            _height = messageDOM.scrollHeight - messageDOM.clientHeight - messageDOM.scrollTop;
            if (_height < 100) {
              this.autoScroll = true;
              this.hasNewMsg = false;
              console.log('开始自动滚动');
            } else {
              this.autoScroll = false;
              console.log('停止自动滚动');
            }
          case 1:
          case "end":
            return _context5.stop();
        }
      }, _callee5, this);
    }))),
    /**
     * 主持人列表组件传递过来的页面滚动事件
     * @param {Boolean} flag 是否能自动滚动到底部
     */
    chageAutoScrollFn: function chageAutoScrollFn(flag) {
      if (flag) {
        this.hasNewMsg = false;
      }
      this.autoScroll = flag;
    },
    /**
     * 全屏按钮
    */
    fullScreen: function fullScreen() {
      var video = this.$refs.video;
      video.play();
      video.webkitEnterFullscreen && video.webkitEnterFullscreen(); // For Webkit
      video.mozRequestFullScreen && video.mozRequestFullScreen(); // For Firefox
    },
    /**
     * 全屏变化的相关逻辑
     */
    fullscreenchange: function fullscreenchange(e) {
      var el = document.webkitFullscreenElement;
      this.isFullscreen = !!el;
      if (this._Util.isApp() && el) {
        api.setScreenOrientation({
          orientation: 'landscape_left'
        });
      }
    },
    /**
     * 定时发送点赞数量
    */
    sendLikeNum: function sendLikeNum() {
      this._Util.post(this._Api.POST_COURSE_LIKE_COURSE, {
        liveNo: this.$route.query.liveNo,
        likeNum: likeNum
      }, function (data) {
        likeNum = 0;
      }, function () {}, this, true);
    },
    // 获取直播带货商品列表
    getLiveGoods: function getLiveGoods() {
      var _this20 = this;
      this._Util.post(this._Api.MALL.getliveGoods, {
        liveNo: this.$route.query.liveNo
      }, function (data) {
        if (data && data.length) {
          _this20.liveGoodsList = data || [];
          if (_this20.liveGoodsList.length) {
            _this20.showLiveGoodTip = true;
          }
        }
      }, function () {}, this, true);
    },
    // 点击直播商品小窗显示带货商品列表
    showGoodList: function showGoodList() {
      this.isShowGoogList = true;
    },
    closeGoodList: function closeGoodList() {
      this.isShowGoogList = false;
    },
    // 关闭直播带货提示
    closeLiveTip: function closeLiveTip() {
      this.showLiveGoodTip = false;
    },
    // 点击带货列表某一项打开详情弹窗
    toGoodDetail: function toGoodDetail(item, type) {
      var _this21 = this;
      var tempNotice = {
        popupType: item.commerceType
      };
      if (tempNotice.popupType === 1) {
        // 普通支付
        tempNotice.popupType = 1;
        tempNotice.goodUrl = window.location.origin + '/repair/mall/productDetail?id=' + item.mdCode + '&commerceId=' + item.commerceId;
        this.currentNotice = tempNotice;
        this.clickNotice(tempNotice);
        this.isShowNotice = true;
      } else if (tempNotice.popupType === 4) {
        // 优惠券
        if (type === 'liveGoodTip') {
          // 在提示弹窗里点击
          this.currentNotice = _objectSpread(_objectSpread({}, item), tempNotice);
          this.clickNotice(this.currentNotice);
          this.isShowNotice = true;
          return;
        }
        if (item.isReceive) return;
        this._Util.post(this._Api.MALL.receiveCoupon, {
          id: item.benefitsId
        }, function (data) {
          (0, _mintUi.Toast)({
            message: '恭喜您，已成功领取',
            position: 'middle',
            duration: 1500
          });
          if (type !== 'goodList') {
            // 不是点击福利列表的时候，需要将福利列表的优惠券状态改变
            _this21.liveGoodsList.forEach(function (good) {
              if (good.commerceName === item.commerceName) {
                good.isReceive = 1;
              }
            });
          }
          item.isReceive = 1;
        }, function () {}, this, true);
      }
    },
    /**
     * 公告弹窗逻辑
     * @param {object} noticeInfo 公告信息
     * @param {String} uname, avater  发消息人的名称及头像
     */
    initTipData: function initTipData(noticeInfo, uname, avatar) {
      var _this22 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
        var tempNotice, imgUrlArr, welData, hasFlag;
        return _regenerator.default.wrap(function (_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              tempNotice = _objectSpread({}, noticeInfo);
              if (!(tempNotice.force && !_this22.isShowNotice && !_this22.isFullscreen)) {
                _context6.next = 2;
                break;
              }
              // 当前公告为强制打开 并且 当前没有打开的公告 并且没有全屏播放
              _this22.$refs.input.blur();
              imgUrlArr = [];
              if (tempNotice.content) {
                imgUrlArr = tempNotice.content.split(',');
              }
              tempNotice.content = imgUrlArr;
              _context6.next = 1;
              return _this22.getDetailFn(tempNotice);
            case 1:
              welData = _context6.sent;
              tempNotice.paymentType = welData.payType; // 带货支付类型 1：表示全款支付 2:表示定金+尾款
              tempNotice.mdseFortPersonPrice = welData.depositPrice; // 定金
              tempNotice.mdsePersonPrice = welData.fullPaymentPrice; // 全款
              tempNotice.buyNum = welData.buyNum;
              tempNotice = _objectSpread(_objectSpread({}, tempNotice), welData);
              _this22.curTipData = tempNotice;
              _this22.showLiveGoodTip = true;
              // 需要往聊天记录里添加一条福利卡片
              _this22.addMessage(6, avatar, uname, tempNotice);
            case 2:
              hasFlag = _this22.noticeList.filter(function (item) {
                return tempNotice.benefitsId === item.benefitsId;
              });
              if (!hasFlag.length) {
                _this22.noticeList.unshift(tempNotice);
              }
            case 3:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    }
  }
};module.exports = __webpack_require__.p + "static/img/float1.19376aa.png";module.exports = __webpack_require__.p + "static/img/float2.f68da98.png";module.exports = __webpack_require__.p + "static/img/float3.1c1c05e.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer course-live-new needsclick"},[_c('div',{staticClass:"videoWrap"},[(!_vm.clickMaskFlag)?_c('div',{staticClass:"video-mask",style:({'background-image': _vm.courseInfo.liveCoverImg ?
        'url(' + _vm.courseInfo.liveCoverImg + ')' :
        'linear-gradient(180deg, #6CA4FF 0%, #1D72FE 100%)'})},[(_vm.courseInfo.liveStatus !== 1)?_c('div',{staticClass:"mask-btn",on:{"click":function($event){$event.stopPropagation();return _vm.playVideo.apply(null, arguments)}}},[_c('img',{attrs:{"src":__webpack_require__(2587),"alt":""}})]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.courseInfo.viewNumbers)?_c('div',{staticClass:"view-num"},[_c('img',{attrs:{"src":__webpack_require__(2588)}}),_vm._v(_vm._s(_vm.courseInfo.viewNumbers)+"人观看\n    ")]):_vm._e(),_vm._v(" "),_c('video',{ref:"video",attrs:{"id":"video","controls":"","controlsList":"nodownload","autoplay":"","webkit-playsinline":"","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","src":_vm.courseInfo.liveStatus === 2 ? _vm.courseInfo.hlsLiveUrl : _vm.courseInfo.playbackUrl},on:{"webkitfullscreenchange":_vm.fullscreenchange}})]),_vm._v(" "),(_vm.tabList.some(function (item) { return item.show; }))?_c('ul',{staticClass:"tab-box"},[_vm._l((_vm.tabList),function(item){return [(item.show)?_c('li',{key:item.id,class:{'active': item.id === _vm.curIndex},on:{"click":function($event){return _vm.changeIndex(item.id)}}},[_vm._v("\n        "+_vm._s(item.name)+"\n      ")]):_vm._e()]})],2):_vm._e(),_vm._v(" "),_c('div',{ref:"contentWrap",staticClass:"contentWrap"},[(_vm.courseInfo.content && (_vm.curIndex === 2 || _vm.curIndex === 1))?_c('div',{staticClass:"noticeScrollWrap"},[_c('van-notice-bar',{staticStyle:{"height":"2.05rem"},attrs:{"background":"#FFF5EA","color":"#FF712A","text":_vm.courseInfo.content}})],1):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 0),expression:"curIndex === 0"}],staticClass:"chatWrap currDetail",class:{'no-pad': _vm.courseInfo.liveStatus !== 1}},[_c('div',{staticClass:"info"},[_c('p',[_vm._v(_vm._s(_vm.courseInfo.liveName))]),_vm._v(" "),(_vm.courseInfo.liveStatus === 1)?_c('div',[_vm._v("开播时间："+_vm._s(_vm._Util.dateFormat(_vm.courseInfo.startTime, 'MM.dd hh:mm'))+" | "+_vm._s(_vm.courseInfo.applyNumbers)+"人预约")]):_vm._e()]),_vm._v(" "),(_vm.courseInfo.liveLecturer)?_c('div',{staticClass:"teacher"},[_c('p',[_vm._v("讲师")]),_vm._v(" "),_c('div',{staticClass:"teacherInfo"},[_c('img',{attrs:{"src":_vm.courseInfo.liveLecturer.lecturerHeadingUrl.includes('http') ?
              _vm.courseInfo.liveLecturer.lecturerHeadingUrl :
              'http://static2.kaxiuyun.com/' + _vm.courseInfo.liveLecturer.lecturerHeadingUrl,"alt":_vm.courseInfo.liveLecturer.lecturerName}}),_vm._v(" "),_c('div',[_c('p',[_vm._v(_vm._s(_vm.courseInfo.liveLecturer.lecturerName))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.courseInfo.liveLecturer.lecturerIntroduce))])])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"riceText"},[_c('p',[_vm._v("课程介绍")]),_vm._v(" "),_c('div',{staticClass:"cont",domProps:{"innerHTML":_vm._s(_vm.courseInfo.liveContent)}})]),_vm._v(" "),(_vm.courseInfo.liveStatus === 1)?_c('div',{staticClass:"orderBtn"},[_c('div',{class:{orderEd: _vm.courseInfo.applyStatus === 1},on:{"click":_vm.orderCourse}},[_vm._v("\n          "+_vm._s(_vm.courseInfo.applyStatus === 1 ? '已预约' : '立即预约')+"\n        ")])]):_vm._e()]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 2),expression:"curIndex === 2"}],staticClass:"chatWrap"},[_c('div',{staticClass:"giftBanner"}),_vm._v(" "),_c('div',{staticClass:"messageList",attrs:{"id":"messageList"},on:{"scroll":_vm.listenScroll}},_vm._l((_vm.messageList),function(v,i){return _c('div',{key:i},[(v.type===1)?_c('div',{staticClass:"self"},[_c('img',{attrs:{"src":v.avatar,"alt":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage"},[_vm._v(_vm._s(v.message))])])]):_vm._e(),_vm._v(" "),(v.type===2)?_c('div',{staticClass:"opposite"},[(v.isDASHANG)?[_c('div',{staticClass:"ds-tips",domProps:{"innerHTML":_vm._s(v.message)}},[_vm._v(_vm._s(v.message))])]:[_c('img',{attrs:{"src":v.avatar,"alt":""},on:{"click":function($event){return _vm.atUser(v.name)}}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage",style:({ color: v.uId === '-30000' ? '#FF3F3F' : '' })},[_vm._v(_vm._s(v.message))])])]],2):_vm._e(),_vm._v(" "),(v.type===5)?_c('div',{staticClass:"system"},[_vm._v("\n            "+_vm._s(v.message)+"\n          ")]):_vm._e(),_vm._v(" "),(v.type === 6)?_c('div',{staticClass:"opposite",on:{"click":function($event){return _vm.toGoodDetail(v.message, 'mesList')}}},[_c('img',{attrs:{"src":v.avatar,"alt":""},on:{"click":function($event){return _vm.atUser(v.name)}}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"umessage card"},[(v.message.content.length)?_c('img',{attrs:{"src":v.message.content[0] + '?imageView2/2/w/150',"alt":"福利图片"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !v.message.content.length},style:({'margin-top': v.message.content ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(v.message.title))]),_vm._v(" "),_c('div',{staticClass:"btn-box",class:{'flex-end': v.message.popupType !== 1 || v.message.mdsePersonPrice === -1}},[(v.message.popupType === 1 && v.message.mdsePersonPrice > 0)?_c('div',{staticClass:"price"},[(v.message.paymentType === 2)?_c('span',[_vm._v("定金:")]):_vm._e(),_vm._v("￥"),_c('span',[_vm._v(_vm._s(v.message.paymentType === 1 ? v.message.mdsePersonPrice : v.message.mdseFortPersonPrice))])]):_vm._e(),_vm._v(" "),(v.message.popupType === 1)?_c('div',{staticClass:"type-btn"},[_c('span',[_vm._v("马上抢")])]):_vm._e(),_vm._v(" "),(v.message.popupType === 4)?_c('div',{staticClass:"type-btn",class:{'disable': v.message.isReceive}},[_c('span',[_vm._v(_vm._s(v.message.isReceive ? '已领取' : '马上抢'))])]):_vm._e()])])])])]):_vm._e()])}),0)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 4),expression:"curIndex === 4"}],staticClass:"chatWrap",staticStyle:{"overflow-y":"auto"}},[(!_vm.noticeList.length)?_c('div',{staticClass:"no-wel"},[_c('img',{attrs:{"src":__webpack_require__(1427),"alt":"福利缺省"}}),_vm._v(" "),_c('p',[_vm._v("主持人还没有发放福利哦")])]):_vm._e()]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 1),expression:"curIndex === 1"}],staticClass:"chatWrap"},[_c('hostMesList',{ref:"hostMes",attrs:{"host-mes-list":_vm.hostMesList},on:{"atUserParent":_vm.atUser,"parentToDetail2":_vm.toDetail,"chageAutoScroll":_vm.chageAutoScrollFn}})],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 3),expression:"curIndex === 3"}],staticClass:"chatWrap"},[_c('courseware',{ref:"courseware",attrs:{"course-info":_vm.courseInfo}})],1),_vm._v(" "),_c('transition',{attrs:{"name":"spread"}},[(_vm.isShowGoogList)?_c('div',{staticClass:"spreadWrap",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"title"},[_vm._v("\n          商品列表\n          "),_c('div',{staticClass:"rightContent",on:{"click":_vm.closeGoodList}},[_vm._v("返回")])]),_vm._v(" "),_c('div',{staticClass:"noticeContent"},[_c('div',{staticClass:"noticeWrap goodsWrap"},_vm._l((_vm.liveGoodsList),function(item,index){return _c('div',{key:item.commerceId,staticClass:"mesCard"},[_c('div',{staticClass:"img-box"},[(item.commerceUrl)?_c('img',{attrs:{"src":item.commerceUrl + '?imageView2/2/w/150',"alt":"福利图片"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"img-tip"},[_vm._v(_vm._s(index + 1))])]),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !item.commerceUrl},style:({'margin-top': item.commerceUrl ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(item.commerceName))]),_vm._v(" "),_c('div',{staticClass:"btn-box",class:{'flex-end': item.commerceType !== 1 }},[(item.commerceType === 1)?_c('div',{staticClass:"price"},[(item.payType === 2)?_c('span',[_vm._v("定金:")]):_vm._e(),_vm._v("￥"),_c('span',[_vm._v(_vm._s(item.payType === 1 ? item.fullPaymentPrice : item.depositPrice))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"type-btn",class:{'disable': item.commerceType === 4 && item.isReceive}},[(item.commerceType === 4 && item.isReceive)?_c('span',[_vm._v("已领取")]):_c('span',{on:{"click":function($event){return _vm.toGoodDetail(item, 'goodList')}}},[_vm._v("马上抢")])])])])])}),0)])]):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":"spread"}},[(_vm.isShowNotice)?_c('div',{staticClass:"spreadWrap",on:{"click":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:"title"},[_vm._v("\n          福利\n          "),_c('div',{staticClass:"rightContent",on:{"click":function($event){return _vm.closeNotice(_vm.currentNotice.popupType)}}},[_vm._v("返回")])]),_vm._v(" "),_c('div',{staticClass:"noticeContent"},[_c('div',{staticClass:"noticeWrap"},[(_vm.currentNotice.popupType === 1)?_c('iframe',{style:({ height: ("calc(" + _vm.contentHeight + "px + 1.6rem)")}),attrs:{"id":"iframe2","scrolling":"true","marginwidth":"0","marginheight":"0","align":"center","src":_vm.currentNotice.goodUrl,"frameborder":"0"}}):(_vm.currentNotice.popupType === 2)?_c('div',[_c('draw-price',{ref:"drawPrice",attrs:{"lotteryno":_vm.currentNotice.lotteryNo}})],1):(_vm.currentNotice.popupType === 3)?_c('iframe',{style:({ height: ("calc(" + _vm.contentHeight + "px  + 1.6rem)")}),attrs:{"id":"iframe","scrolling":"true","marginwidth":"0","marginheight":"0","align":"center","src":_vm.currentNotice.url,"frameborder":"0"}}):(_vm.currentNotice.popupType === 4)?_c('div',{staticClass:"mesCard"},[(_vm.currentNotice.commerceUrl)?_c('div',{staticClass:"img-box"},[_c('img',{attrs:{"src":_vm.currentNotice.commerceUrl + '?imageView2/2/w/150',"alt":"优惠券"}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !_vm.currentNotice.commerceUrl},style:({'margin-top': _vm.currentNotice.commerceUrl ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(_vm.currentNotice.commerceName))]),_vm._v(" "),_c('div',{staticClass:"btn-box flex-end"},[_c('div',{staticClass:"type-btn",class:{'disable': _vm.currentNotice.isReceive}},[(_vm.currentNotice.isReceive)?_c('span',[_vm._v("已领取")]):_c('span',{on:{"click":function($event){return _vm.toGoodDetail(_vm.currentNotice, 'notice')}}},[_vm._v("马上抢")])])])])]):_vm._e()])])]):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":"slidedown"}},[(_vm.showInviteDetail)?_c('div',{staticClass:"invite-detail"},[_c('div',{staticClass:"title"},[_vm._v("\n          "+_vm._s(_vm.courseInfo.broadcastNoticeVo.title)+"\n          "),_c('div',{on:{"click":function($event){_vm.showInviteDetail=false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"invite-content"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"people-num"},[_c('div',[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.invitationCount))]),_vm._v(" "),_c('div',[_vm._v("你当前邀请人数")]),_vm._v(" "),_c('div',{staticClass:"share-session",on:{"click":function($event){return _vm.share($event, 'session')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/session.png","alt":"微信群"}}),_vm._v("\n                分享到微信群\n              ")]),_vm._v(" "),_c('div',{staticClass:"share-timeline",on:{"click":function($event){return _vm.share($event, 'timeline')}}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/timeline.png","alt":"朋友圈"}}),_vm._v("\n                分享到朋友圈\n              ")])]),_vm._v(" "),_c('div',{staticClass:"invite-rule",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.courseInfo.broadcastNoticeVo.detailedExplain))}}),_vm._v(" "),_c('div',{staticClass:"list-title"},[_vm._v("已邀请好友：")]),_vm._v(" "),(_vm.inviteList.length > 0)?_c('div',{staticClass:"invite-people"},_vm._l((_vm.inviteList),function(v,i){return _c('div',{key:i,staticClass:"invite-item"},[_c('img',{attrs:{"src":v.headimgurl,"alt":"头像"}}),_vm._v(" "),_c('div',{domProps:{"innerHTML":_vm._s(v.userName)}}),_vm._v(" "),_c('span',[_vm._v("已进入直播间")])])}),0):_c('div',{staticClass:"no-invite"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/no-invite.png","alt":"无邀请人"}}),_vm._v(" "),_c('p',[_vm._v("你暂时还未邀请好友")])])])],1)]):_vm._e()]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 2 || _vm.curIndex === 1),expression:"curIndex === 2 || curIndex === 1"}],staticClass:"inputWrap"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.hasNewMsg && !_vm.autoScroll),expression:"hasNewMsg && !autoScroll"}],staticClass:"new-msg-tip",on:{"click":function($event){$event.stopPropagation();return _vm.scrollToBottom('click')}}},[_vm._v("下方有新消息")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.sendMessageValue),expression:"sendMessageValue",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],ref:"input",attrs:{"maxlength":"50","type":"text","placeholder":"说点什么吧~"},domProps:{"value":(_vm.sendMessageValue)},on:{"focus":function($event){return _vm.focusOrNot(true);},"blur":[function($event){return _vm.focusOrNot(false);},function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.sendMessageValue=$event.target.value.trim()}}}),_vm._v(" "),_c('div',{staticClass:"btn-wrap"},[_c('div',{staticClass:"likeImgWrap"}),_vm._v(" "),(_vm.showSendBtn || _vm.sendMessageValue)?_c('div',{staticClass:"sendBtn",on:{"click":_vm.sendMessage}},[_vm._v("发送")]):_vm._e(),_vm._v(" "),(_vm.liveGoodsList.length)?_c('div',{staticClass:"iconBtn gift",on:{"click":_vm.showGoodList}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"iconBtn zan",on:{"click":function($event){return _vm.assistImg('click')}}})])])],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showGiftWrap),expression:"showGiftWrap"}],staticClass:"giftMask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showGiftWrap=false;}}}),_vm._v(" "),(_vm.showLiveGoodTip && _vm.curTipData)?_c('div',{staticClass:"goods-box"},[_c('div',{staticClass:"close",on:{"click":function($event){$event.stopPropagation();return _vm.closeLiveTip.apply(null, arguments)}}},[_c('img',{attrs:{"src":__webpack_require__(1429),"alt":"关闭"}})]),_vm._v(" "),_c('div',{staticClass:"img-box"},[_c('img',{attrs:{"src":_vm.curTipData.commerceUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v(_vm._s(_vm.liveGoodsList.length))])]),_vm._v(" "),_c('div',{staticClass:"name"},[_vm._v(_vm._s(_vm.curTipData.commerceName))]),_vm._v(" "),(_vm.curTipData.commerceType === 1)?_c('div',{staticClass:"btn-box",on:{"click":function($event){return _vm.toGoodDetail(_vm.curTipData)}}},[_vm._v("\n      ￥"+_vm._s(_vm.curTipData.payType === 1 ?
        _vm.curTipData.fullPaymentPrice :
        _vm.curTipData.depositPrice)+"\n      "),_c('img',{attrs:{"src":"https://static1.kaxiuyun.com/kxy/purchase/20221024215207.jpg","alt":""}})]):_c('div',{staticClass:"btn-box",on:{"click":function($event){return _vm.toGoodDetail(_vm.curTipData, 'liveGoodTip')}}},[_vm._v("马上抢")])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"chatTips",attrs:{"position":"top"},model:{value:(_vm.showTips),callback:function ($$v) {_vm.showTips=$$v},expression:"showTips"}},[(_vm.courseInfo.broadcastNoticeVo)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tipsType === 'invite'),expression:"tipsType === 'invite'"}],staticClass:"tips"},[(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('span',{staticClass:"tip-close",on:{"click":function($event){$event.stopPropagation();_vm.showTips=false}}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"tip-title"},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.title))]),_vm._v(" "),_c('div',{staticClass:"tip-content",domProps:{"innerHTML":_vm._s(_vm.parseHtml(_vm.courseInfo.broadcastNoticeVo.explain))}}),_vm._v(" "),(_vm.courseInfo.broadcastNoticeVo && _vm.courseInfo.broadcastNoticeVo.buttonOperation === 1)?_c('div',[_c('div',{staticClass:"tip-btn",on:{"click":function($event){return _vm.share($event)}}},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.buttonCopy))])]):_c('div',[_c('div',{staticClass:"tip-btn",on:{"click":function($event){_vm.showTips = false}}},[_vm._v(_vm._s(_vm.courseInfo.broadcastNoticeVo.buttonCopy))])])]):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tipsType === 'share'),expression:"tipsType === 'share'"}],staticClass:"tips"},[_c('span',{staticClass:"tip-close",on:{"click":function($event){_vm.showTips=false}}}),_vm._v(" "),_c('div',{staticClass:"tip-title"},[_vm._v("点击右上角去分享")]),_vm._v(" "),_c('div',{staticClass:"tip-img"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/live/live-share.png","alt":"分享提示"},on:{"click":function($event){$event.preventDefault();}}})])])]),_vm._v(" "),_c('van-popup',{staticClass:"auth-pop",attrs:{"position":"bottom","overlay":false},model:{value:(_vm.showAuthPop),callback:function ($$v) {_vm.showAuthPop=$$v},expression:"showAuthPop"}},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"tit"},[_vm._v("\n        "+_vm._s(_vm.curPopType === 2 ? '认证手机号' : '填写收货地址')+"\n        "),_c('i',{on:{"click":function($event){$event.stopPropagation();_vm.showAuthPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"mid"},[(_vm.curPopType === 1)?_c('address-list',{ref:"addressList",on:{"setDefaultAddress":_vm.setDefaultAddressCb,"showEditPop":_vm.showEditFn}}):(_vm.curPopType === 2)?_c('phone-auth',{ref:"authPhone",on:{"authPhoneSuccess":_vm.authPhoneSuccessCb}}):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"pop-foot"},[(_vm.curPopType === 1)?_c('div',{staticClass:"add-address",on:{"click":function($event){return _vm.showEditFn('')}}},[_vm._v("\n          + 新增地址\n        ")]):(_vm.curPopType === 0 || _vm.curPopType === 10)?_c('div',{staticClass:"save",on:{"click":_vm.saveAddress}},[_vm._v("\n          保存\n        ")]):(_vm.curPopType === 2)?_c('div',{staticClass:"save",on:{"click":_vm.authPhone}},[_vm._v("\n          确认\n        ")]):_vm._e()])])]),_vm._v(" "),_c('van-popup',{staticClass:"pay-pop",attrs:{"position":"bottom","overlay":false},model:{value:(_vm.showPayPop),callback:function ($$v) {_vm.showPayPop=$$v},expression:"showPayPop"}},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"tit"},[_vm._v("\n        支付尾款\n        "),_c('i',{on:{"click":function($event){$event.stopPropagation();_vm.showPayPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"mid"},[_c('ul',{staticClass:"welfare-box"},[_c('li',{style:({'padding-bottom': _vm.orderDetail.benefitsUrl ? '0.8rem': '0.6rem'})},[(_vm.orderDetail.benefitsUrl)?_c('img',{attrs:{"src":_vm.orderDetail.benefitsUrl + '?imageView2/2/w/150',"alt":"福利图片"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-box",class:{'no-img': !_vm.orderDetail.benefitsUrl},style:({'margin-top': _vm.orderDetail.benefitsUrl ? '0.2rem' : 0})},[_c('p',[_vm._v(_vm._s(_vm.orderDetail.benefitsName))]),_vm._v(" "),_c('div',{staticClass:"btn-box"},[(_vm.orderDetail.balancePrice)?_c('div',{staticClass:"price"},[_vm._v("￥"),_c('span',[_vm._v(_vm._s(_vm.orderDetail.balancePrice))])]):_vm._e()])])])]),_vm._v(" "),_c('div',{staticClass:"order-info"},[_c('span',[_vm._v("创建时间")]),_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.orderDetail.createTime,'yyyy-MM-dd hh:mm:ss')))])]),_vm._v(" "),_c('div',{staticClass:"order-info"},[_c('span',[_vm._v("订单编号")]),_c('span',[_vm._v(_vm._s(_vm.orderDetail.orderNo))])])]),_vm._v(" "),_c('div',{staticClass:"pop-foot"},[(_vm.orderDetail.isVirtual === 0)?_c('div',{staticClass:"address",on:{"click":function($event){$event.stopPropagation();return _vm.clickPayAddressFn.apply(null, arguments)}}},[(_vm.orderDetail.province || _vm.orderDetail.city || _vm.orderDetail.dist)?_c('div',{staticClass:"has-address"},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"phone"},[_c('span',[_vm._v(_vm._s(_vm.orderDetail.receiveName))]),_c('span',[_vm._v(_vm._s(_vm.orderDetail.receivePhone))])]),_vm._v(" "),_c('div',{staticClass:"detail"},[_vm._v("收货地址："+_vm._s(_vm.orderDetail.province + _vm.orderDetail.city + _vm.orderDetail.district + _vm.orderDetail.address))])]),_vm._v(" "),_c('div',{staticClass:"arror"})]):_c('div',{staticClass:"no-address"},[_vm._v("+ 请填写收货地址")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"pay-box"},[_c('div',{staticClass:"left"},[_c('p',[_vm._v("待付尾款：￥"+_vm._s(_vm.orderDetail.balancePrice || 0))]),_vm._v(" "),_c('span',[_vm._v("总价￥"+_vm._s(_vm.orderDetail.orderAmount || 0))]),_c('span',[_vm._v("已付定金￥"+_vm._s(_vm.orderDetail.paidCash || 0))])]),_vm._v(" "),_c('div',{staticClass:"pay-btn",on:{"click":function($event){$event.stopPropagation();return _vm.payFn.apply(null, arguments)}}},[_vm._v("立即支付")])])])])]),_vm._v(" "),_c('van-popup',{staticClass:"auth-pop",attrs:{"position":"bottom","overlay":false},model:{value:(_vm.showEditAddressPop),callback:function ($$v) {_vm.showEditAddressPop=$$v},expression:"showEditAddressPop"}},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"tit"},[(!_vm.isFirstOpenEditPop)?_c('div',{on:{"click":_vm.closeEditpop}},[_c('img',{attrs:{"src":__webpack_require__(1428),"alt":"返回"}}),_vm._v("返回")]):_vm._e(),_vm._v("\n        收货地址\n        "),_c('i',{on:{"click":function($event){$event.stopPropagation();return _vm.closeEditpop.apply(null, arguments)}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"mid"},[_c('edit-address',{ref:"edifAddress2",attrs:{"pos":"course","cur-pop-type":_vm.curPopType},on:{"childSaveAddress":_vm.childSaveAddressSuccess}})],1),_vm._v(" "),(_vm.showPopFoot)?_c('div',{staticClass:"pop-foot"},[_c('div',{staticClass:"save",on:{"click":_vm.saveAddress}},[_vm._v("\n          保存\n        ")])]):_vm._e()])]),_vm._v(" "),(_vm.showIOSShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showIOSShareBox = false;}}},[_vm._m(0)]):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
module.exports = __webpack_require__.p + "static/img/video-play.3b9f802.png";module.exports = __webpack_require__.p + "static/img/view-num.6553038.png";module.exports = __webpack_require__.p + "static/img/closeImg.46e4761.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(441);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_aef33240_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1042);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_aef33240_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_aef33240_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_playbackPlayer_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _videoPlayer = _interopRequireDefault(__webpack_require__(169));
//
//
//
//
//
var _default = exports.default = {
  components: {
    Video: _videoPlayer.default
  },
  data: function data() {
    return {
      url: decodeURIComponent(this.$route.query.src)
    };
  },
  mounted: function mounted() {},
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('Video',{ref:"videoPlayer",attrs:{"url":_vm.url,"poster":_vm.url+'&vframe/jpg/offset/1'}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(442);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5eee596a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1043);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2589)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5eee596a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5eee596a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5eee596a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ownedCourseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2590);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("25ee3544", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-5eee596a]{padding:0 .8rem;background-color:#fff;height:auto!important;min-height:100%}.outContainer .title[data-v-5eee596a]{padding-top:.8rem;font-size:1rem;font-family:PingFangSC;font-weight:600;color:#333;line-height:1.4rem}.outContainer .noCourse[data-v-5eee596a]{text-align:center;padding-top:8rem}.outContainer .noCourse img[data-v-5eee596a]{width:3.1rem;height:3rem}.outContainer .noCourse div[data-v-5eee596a]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC;font-weight:400;color:#333;line-height:1rem}.outContainer .courseList[data-v-5eee596a]{padding-bottom:1rem}.outContainer .courseList .card[data-v-5eee596a]{background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.8rem 0;position:relative}.outContainer .courseList .card[data-v-5eee596a]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.outContainer .courseList .card>img[data-v-5eee596a]{width:5.9rem;height:4rem;border-radius:.3rem;margin-right:.6rem}.outContainer .courseList .card .content[data-v-5eee596a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:4rem;position:relative}.outContainer .courseList .card .content .name[data-v-5eee596a]{color:#333;font:700 16px/1rem PingFangSC-Semibold;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.outContainer .courseList .card .content .courseType[data-v-5eee596a]{color:#999;font:12px/1 PingFangSC-PingFangSC;position:absolute;bottom:.9rem;left:0}.outContainer .courseList .card .content .courseProgress[data-v-5eee596a]{position:absolute;left:0;bottom:0;color:#999;font:12px/1 PingFangSC-PingFangSC}.outContainer .courseList .card .content .courseProgress span[data-v-5eee596a]{color:#ff3f3f;font:12px/1 PingFangSC-PingFangSC}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      courseList: [],
      listDataInit: false,
      isApp: !!this._Util.isApp(),
      timing: '',
      time: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '学习记录',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    this.getCourseList();
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '学习记录,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
       * 课程点击埋点
       * @param {number} courseId 课程id
       * @param {string} courseName 课程名称
       */
    courseClickPoint: function courseClickPoint(courseId, courseName) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '课堂',
          operate_page: '已购课程',
          optionType: '点击',
          param1: courseId,
          param2: courseName
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
       * 进入课程详情页面
       * @param(courseId): 课程id
       * @param(courseName): 课程名称
       */
    goDetail: function goDetail(courseId, courseName) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              // await this.courseClickPoint(courseId, courseName)

              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'onlineCourseDetail',
                    url: location.origin + '/v2/shopping/courseDetail?courseId=' + courseId
                  }
                });
                // api.sendEvent({
                //   name: "acOpenFrm",
                //   extra: {
                //     url: location.origin + '/v2/shopping/courseDetail?courseId=' + courseId
                //   }
                // })
              } else {
                // const url = location.origin + '/repair/shopping/courseDetail?courseId=' + courseId
                // const src = encodeURIComponent(url)
                // uni.navigateTo({ // eslint-disable-line
                //   url: `/pages/webView/webView?src=${src}`
                // })
                _this2.$router.push({
                  name: 'onlineCourseDetail',
                  query: {
                    courseId: courseId
                  }
                });
              }
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /** 获取课程列表数据 */getCourseList: function getCourseList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_COURSE_GET_LIST, {
        pageSize: 1000,
        pageNum: 1
      }, function (data) {
        _this3.courseList = data.records;
        _this3.listDataInit = true;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(!_vm.listDataInit)?_c('div',{staticStyle:{"text-align":"center","padding-top":"40px"}},[_vm._v("页面加载中...")]):_c('div',[(_vm.courseList.length==0)?_c('div',{staticClass:"noCourse"},[_c('img',{attrs:{"src":__webpack_require__(1430),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("您暂时还没有购买过课程哦")])]):_c('div',{staticClass:"courseList"},_vm._l((_vm.courseList),function(v,i){return _c('div',{key:i,staticClass:"card",on:{"click":function($event){return _vm.goDetail(v.id, v.courseName)}}},[_c('img',{attrs:{"src":v.courseCover,"alt":"课程封面"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.courseName))]),_vm._v(" "),_c('div',{staticClass:"courseType"},[_vm._v(_vm._s(v.classifyName && v.classifyName.split(',')[0]))]),_vm._v(" "),_c('div',{staticClass:"courseProgress"},[_vm._v("\n            "+_vm._s(v.hourCount)+"课时 | 已学 "),_c('span',[_vm._v(_vm._s(v.learnCount)+"课时")]),_vm._v(" | 已学 "),_c('span',[_vm._v(_vm._s(v.type == 1 ? (v.hourNode ? v.hourNode:'0') + '%' : v.verse))]),_vm._v(" "+_vm._s(v.type == 1 ? '' : '节')+"\n          ")])])])}),0)])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/noexp.7c7b3f5.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(443);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5eb30a75_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1049);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2591)
  __webpack_require__(2594)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5eb30a75"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5eb30a75_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5eb30a75_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newCourseDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2592);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5b8acb11", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".classCourse-detail[data-v-5eb30a75]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.classCourse-detail .main .video-box[data-v-5eb30a75]{position:relative;height:10.5rem}.classCourse-detail .main .video-box .video-poster[data-v-5eb30a75]{position:absolute;width:100%;height:100%;top:0;left:0;z-index:9}.classCourse-detail .main .video-box .video-poster .poster-mask[data-v-5eb30a75]{position:absolute;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.7);z-index:3}.classCourse-detail .main .video-box .video-poster .poster1[data-v-5eb30a75]{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1}.classCourse-detail .main .video-box .video-poster .poster2[data-v-5eb30a75]{position:absolute;width:100%;height:100%;top:0;left:0;z-index:2}.classCourse-detail .main .video-box .video-poster .video-btn[data-v-5eb30a75]{position:absolute;width:3.5rem;height:3.5rem;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font:16px/1 PingFangSC-Regular;z-index:100;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.classCourse-detail .main .video-box .video-poster .video-btn img[data-v-5eb30a75]{width:100%;height:100%;margin-right:.3rem}.classCourse-detail .main .video-box video[data-v-5eb30a75]{width:100%;height:100%}.classCourse-detail .main .tab-box[data-v-5eb30a75]{background:#fff;height:2.3rem;font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.classCourse-detail .main .tab-box li[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;color:#999;font:16px/2.3rem PingFangSC-Regular;position:relative}.classCourse-detail .main .tab-box li.active[data-v-5eb30a75]{color:#333;font:700 16px/2.3rem PingFangSC-Semibold}.classCourse-detail .main .tab-box li.active[data-v-5eb30a75]:after{position:absolute;content:\"\";width:.8rem;height:.15rem;background:#ef7549;border-radius:.1rem;bottom:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.classCourse-detail .main .detailCont[data-v-5eb30a75]{position:relative}.classCourse-detail .main .detailCont .title[data-v-5eb30a75]{background:#fff;padding:.8rem}.classCourse-detail .main .detailCont .title p[data-v-5eb30a75]{color:#333;font:700 20px/1.4rem PingFangSC-Semibold}.classCourse-detail .main .detailCont .title .tip[data-v-5eb30a75]{margin-top:.4rem;color:#ff3f3f;font:14px/1 PingFangSC-Regular}.classCourse-detail .main .detailCont .title .shareBtn[data-v-5eb30a75]{position:absolute;padding:0 .3rem;right:0;bottom:.5rem;background:#ef7549;border:2px solid #ef7549;border-right:0;border-radius:10px 0 0 10px;color:#fff}.classCourse-detail .tab-cont-box[data-v-5eb30a75]{position:relative}.classCourse-detail .tab-cont-box.canScroll[data-v-5eb30a75]{overflow-y:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.classCourse-detail .tab-cont-box .detail .title[data-v-5eb30a75]{background:#fff;padding:.8rem}.classCourse-detail .tab-cont-box .detail .title p[data-v-5eb30a75]{color:#333;font:700 20px/1.4rem PingFangSC-Semibold}.classCourse-detail .tab-cont-box .detail .title .tip[data-v-5eb30a75]{margin-top:.4rem;color:#ff3f3f;font:14px/1 PingFangSC-Regular}.classCourse-detail .tab-cont-box .detail .hr[data-v-5eb30a75]{height:.4rem;background:#f4f5f6}.classCourse-detail .tab-cont-box .detail .detail-cont[data-v-5eb30a75]{margin-top:.4rem;background:#fff;padding:.8rem}.classCourse-detail .tab-cont-box .detail .detail-cont[data-v-5eb30a75] img,.classCourse-detail .tab-cont-box .detail .detail-cont[data-v-5eb30a75] video{max-width:100%;height:auto}.classCourse-detail .tab-cont-box .catalog .hour-btns[data-v-5eb30a75]{background:#fff;padding:.6rem .8rem}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box[data-v-5eb30a75]{height:2.2rem;overflow-x:auto;overflow-y:hidden;white-space:nowrap;font-size:0}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box[data-v-5eb30a75]::-webkit-scrollbar{display:none}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box .iner-btn[data-v-5eb30a75]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;padding:0 .8rem;width:-webkit-calc((100% - .4rem)/2);width:calc((100% - .4rem) / 2);background:#f4f5f6;height:2.2rem;border-radius:.3rem;margin-right:.4rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box .iner-btn.one-btn[data-v-5eb30a75]{width:100%}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box .iner-btn.more-btn[data-v-5eb30a75]{width:7.2rem}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box .iner-btn span[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font:700 14px/1 PingFangSC-Semibold;color:#333}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box .iner-btn img[data-v-5eb30a75]{width:6px;height:10px}.classCourse-detail .tab-cont-box .catalog .hour-btns .iner-box .iner-btn[data-v-5eb30a75]:last-child{margin:0}.classCourse-detail .tab-cont-box .catalog .cata-hr[data-v-5eb30a75]{height:.4rem;background:#f4f5f6}.classCourse-detail .tab-cont-box .catalog ul[data-v-5eb30a75]{padding:0 .8rem}.classCourse-detail .tab-cont-box .catalog ul li[data-v-5eb30a75]{position:relative;padding:.5rem;background:#f5f5f5;margin-top:.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.classCourse-detail .tab-cont-box .catalog ul li[data-v-5eb30a75]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.classCourse-detail .tab-cont-box .catalog ul li .listWrap[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:.3rem}.classCourse-detail .tab-cont-box .catalog ul li>img[data-v-5eb30a75]{width:5rem;height:3rem;border-radius:.2rem}.classCourse-detail .tab-cont-box .catalog ul li .title[data-v-5eb30a75]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.classCourse-detail .tab-cont-box .catalog ul li .title p[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:700 14px/1.2rem PingFangSC-Semibold;margin-right:.8rem}.classCourse-detail .tab-cont-box .catalog ul li .title img[data-v-5eb30a75]{width:1rem;height:1rem;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;position:relative;top:.2rem}.classCourse-detail .tab-cont-box .catalog ul li .title .icon[data-v-5eb30a75]{width:1rem;height:1rem;border:1px solid #384658;border-radius:50%;position:relative}.classCourse-detail .tab-cont-box .catalog ul li .title .icon[data-v-5eb30a75]:after{content:\"\";position:absolute;top:50%;left:70%;width:0;height:0;border-width:.2rem .3rem;border-style:solid;border-color:transparent transparent transparent #384658;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.classCourse-detail .tab-cont-box .catalog ul li .time[data-v-5eb30a75]{margin-top:.8rem;font-size:0}.classCourse-detail .tab-cont-box .catalog ul li .time .dur[data-v-5eb30a75],.classCourse-detail .tab-cont-box .catalog ul li .time .pross[data-v-5eb30a75]{color:#999;font:12px/1rem PingFangSC-Regular;margin-right:.3rem}.classCourse-detail .tab-cont-box .catalog ul li .time .try[data-v-5eb30a75]{display:inline-block;width:2rem;height:17px;text-align:center;border-radius:.2rem;border:1px solid #ef7549;color:#ef7549;font:11px/17px PingFangSC-Regular}.classCourse-detail .tab-cont-box .catalog ul li .time img[data-v-5eb30a75]{margin-right:.3rem;width:.8rem;height:.8rem;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;position:relative;top:.1rem}.classCourse-detail .tab-cont-box .catalog ul li .task-box .task-item[data-v-5eb30a75]{margin-bottom:.4rem;font-size:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.classCourse-detail .tab-cont-box .catalog ul li .task-box .task-item.task-item3[data-v-5eb30a75]{margin:0}.classCourse-detail .tab-cont-box .catalog ul li .task-box .task-item span[data-v-5eb30a75]{font:14px/1rem PingFangSC-Regular}.classCourse-detail .tab-cont-box .catalog ul li .task-box .task-item span[data-v-5eb30a75]:first-of-type{color:#999;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.classCourse-detail .tab-cont-box .catalog ul li .task-box .task-item span[data-v-5eb30a75]:nth-of-type(2){margin:0 .8rem;color:#333;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.classCourse-detail .tab-cont-box .catalog ul li .task-box .task-item i[data-v-5eb30a75]{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;margin-left:.3rem;position:relative;top:.25rem;width:6px;height:10px;background:url(" + escape(__webpack_require__(57)) + ") no-repeat;background-size:100% 100%}.classCourse-detail .tab-cont-box .ware[data-v-5eb30a75]{padding:0 .8rem}.classCourse-detail .tab-cont-box .ware>ul li[data-v-5eb30a75]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:2.8rem;padding:.8rem 0}.classCourse-detail .tab-cont-box .ware>ul li[data-v-5eb30a75]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.classCourse-detail .tab-cont-box .ware>ul li span[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:700 17px/1.2rem PingFangSC-Semibold}.classCourse-detail .tab-cont-box .ware>ul li i[data-v-5eb30a75]{margin-left:.3rem;width:6px;height:10px;background:url(" + escape(__webpack_require__(57)) + ") no-repeat;background-size:100% 100%}.classCourse-detail .tab-cont-box .ware>ul li img[data-v-5eb30a75]{width:1rem;height:1rem}.classCourse-detail .tab-cont-box .ware>ul .no-power[data-v-5eb30a75]{padding-top:3rem;text-align:center;color:#999;font:14px/1 PingFangSC-Regular}.classCourse-detail .tab-cont-box .ware>ul>.loading[data-v-5eb30a75]{width:4rem;position:absolute;top:3rem;left:50%;margin-left:-2rem}.classCourse-detail .tab-cont-box .ask .ask-tit[data-v-5eb30a75]{height:2.15rem;padding:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.classCourse-detail .tab-cont-box .ask .ask-tit p[data-v-5eb30a75]{position:relative;top:.1rem;color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.classCourse-detail .tab-cont-box .ask .ask-tit .sort-box[data-v-5eb30a75]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative;top:.15rem}.classCourse-detail .tab-cont-box .ask .ask-tit .sort-box span[data-v-5eb30a75]{color:#999;font:12px/1rem PingFangSC-Regular}.classCourse-detail .tab-cont-box .ask .ask-tit .sort-box span.act[data-v-5eb30a75]{color:#333}.classCourse-detail .tab-cont-box .ask .ask-tit .sort-box i[data-v-5eb30a75]{height:.6rem;width:1px;margin:0 .6rem;background:#d8d8d8}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item[data-v-5eb30a75]{padding:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;position:relative}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item[data-v-5eb30a75]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee;pointer-events:none}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .user-img[data-v-5eb30a75]{width:1.8rem;height:1.8rem;margin-right:.6rem;border-radius:.2rem}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .name[data-v-5eb30a75]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .name span[data-v-5eb30a75]{color:#47628f;font:15px/1.05rem PingFangSC-Regular}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .name>img[data-v-5eb30a75]{width:.75rem;height:.7rem;margin-left:.3rem}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .name .zan[data-v-5eb30a75]{margin-left:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#999;font:12px/1 PingFangSC-Regular}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .name .zan.active[data-v-5eb30a75]{color:#ee4545}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .name .zan img[data-v-5eb30a75]{margin-left:.3rem;width:.8rem;height:.8rem}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ques[data-v-5eb30a75]{margin-top:.2rem;color:#000;font:17px/1.4rem PingFangSC-Regular}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ques-img img[data-v-5eb30a75]{width:4.4rem;height:4.4rem;border-radius:.2rem;margin:.4rem .3rem .3rem 0}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont[data-v-5eb30a75]{margin-top:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont[data-v-5eb30a75]:before{content:\"\";position:absolute;width:3px;height:.2rem;background:#fff;top:0;left:0}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont[data-v-5eb30a75]:after{content:\"\";position:absolute;width:3px;height:.4rem;background:#fff;bottom:0;left:0}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .line-col[data-v-5eb30a75]{height:auto;width:.1rem;background:#d9dce1;margin-right:.4rem}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .reply[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .reply .up[data-v-5eb30a75]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#47628f;font:15px/1.05rem PingFangSC-Regular}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .reply .up .zan[data-v-5eb30a75]{margin-left:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#999;font:12px/1 PingFangSC-Regular}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .reply .up .zan.active[data-v-5eb30a75]{color:#ee4545}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .reply .up .zan img[data-v-5eb30a75]{margin-left:.3rem;width:.8rem;height:.8rem}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .reply .down[data-v-5eb30a75]{margin-top:.2rem;color:#000;font:17px/1.4rem PingFangSC-Regular}.classCourse-detail .tab-cont-box .ask .scroll-wrap .ask-item .right .ask-cont .reply .ask-img img[data-v-5eb30a75]{width:4.4rem;height:4.4rem;border-radius:.2rem;margin:.4rem .3rem .3rem 0}.classCourse-detail .tab-cont-box .ask .list-box[data-v-5eb30a75]{width:100%}.classCourse-detail .tab-cont-box .ask .write-ask[data-v-5eb30a75]{position:fixed;width:6rem;height:1.8rem;bottom:1.6rem;left:50%;z-index:10;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);background:-webkit-gradient(linear,right top,left top,from(#4b97fa),to(#177afa));background:linear-gradient(270deg,#4b97fa,#177afa);box-shadow:0 8px 24px 0 rgba(23,122,250,.3);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#fff;font:14px/1 PingFangSC-Regular;border-radius:1.3rem}.classCourse-detail .tab-cont-box .ask .write-ask i[data-v-5eb30a75]{margin-right:.2rem;width:.8rem;height:.8rem;background:url(" + escape(__webpack_require__(2593)) + ") no-repeat;background-size:100% 100%}.classCourse-detail[data-v-5eb30a75] .upwarp-nodata{padding-bottom:3rem}.classCourse-detail #no-exp[data-v-5eb30a75]{padding-top:3rem;text-align:center;color:#666;font:14px/1rem PingFangSC-Regular}.classCourse-detail #no-exp img[data-v-5eb30a75]{display:block;width:2.5rem;height:2.92rem;margin:0 auto .6rem}.classCourse-detail .course-maq[data-v-5eb30a75]{height:2.05rem;position:fixed;width:100%;left:0;bottom:2.95rem;z-index:11}.classCourse-detail .course-maq[data-v-5eb30a75] .van-notice-bar__content{font:15px PingFangSC-Regular}.classCourse-detail .pay-box[data-v-5eb30a75]{position:fixed;bottom:0;left:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.3rem .8rem;border-top:1px solid #eee;background:#fff;z-index:100}.classCourse-detail .pay-box.no-right-box[data-v-5eb30a75]{padding:.3rem 0;background:#eee}.classCourse-detail .pay-box .no-right[data-v-5eb30a75]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background:#eee;height:2.3rem;text-align:center;color:#999;font:16px/2.3rem PingFangSC-Regular}.classCourse-detail .pay-box .share-btn[data-v-5eb30a75]{width:5.4rem;height:2.3rem;border:1px solid #e8e9eb;border-radius:.3rem;text-align:center;color:#333;font:16px/2.3rem PingFangSC-Regular;margin-right:.6rem}.classCourse-detail .pay-box .pay-btn[data-v-5eb30a75]{height:2.3rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background:#ef7549;color:#fff;font:16px/2.3rem PingFangSC-Regular;border-radius:2rem;text-align:center}.classCourse-detail .pay-box .pay-btn span[data-v-5eb30a75]{color:#fff;font:12px/2.3rem PingFangSC-Regular}.classCourse-detail .shareMAsk[data-v-5eb30a75]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:3000;background:rgba(0,0,0,.5)}.classCourse-detail .shareMAsk .shareTips[data-v-5eb30a75]{width:9.5rem;height:3.825rem;position:absolute;top:.5rem;right:.5rem}.classCourse-detail .shareMAsk .shareTips .van-icon-down[data-v-5eb30a75]{position:relative;left:4.5rem;font-size:40px;color:#fff;-webkit-transform:rotate(-148deg);-ms-transform:rotate(-148deg);transform:rotate(-148deg)}.classCourse-detail .shareMAsk .shareTips>p[data-v-5eb30a75]:first-of-type{margin-top:.85rem}.classCourse-detail .shareMAsk .shareTips>p[data-v-5eb30a75]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.classCourse-detail .uesrmaq[data-v-5eb30a75]{width:100%;height:5.4rem;position:fixed;right:.8rem;bottom:5.2rem;width:60%;z-index:100;overflow:hidden}.classCourse-detail .uesrmaq.no-text[data-v-5eb30a75]{bottom:3.1rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/edit.975ccb7.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2595);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f83b0f80", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-msgbox-wrapper .mint-msgbox{border-radius:1rem!important;-webkit-border-radius:1rem!important;background:#fff;width:16.75rem!important;height:6.725rem!important}.mint-msgbox-wrapper .mint-msgbox .mint-msgbox-content{width:100%!important;height:4.25rem!important;padding:1.6rem 0 1.4rem!important;border-bottom:none;position:relative}.mint-msgbox-wrapper .mint-msgbox .mint-msgbox-content:after{content:\"\";position:absolute;width:100%;height:1px;background-color:#ddd;bottom:0;left:0;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5)}.mint-msgbox-wrapper .mint-msgbox .mint-msgbox-content .mint-msgbox-message{width:100%;height:1.25rem!important;line-height:1.25rem!important;font-family:PingFangSC-Semibold!important;font-size:.9rem!important;color:#333!important;letter-spacing:0!important;text-align:center!important;font-weight:600!important}.mint-msgbox-wrapper .mint-msgbox .mint-msgbox-btns{width:100%!important;height:2.45rem!important}.mint-msgbox-wrapper .mint-msgbox .mint-msgbox-btns .mint-msgbox-confirm{margin:.6rem 0!important;height:1.25rem!important;line-height:1.25rem!important;font-family:PingFangSC-Regular!important;font-size:.9rem!important;color:#177afa!important;letter-spacing:0!important;text-align:center!important;font-weight:400!important}.classCourse-detail .van-overlay{z-index:1300!important;background:transparent}.classCourse-detail .popup-container{z-index:1310!important;height:-webkit-calc(100% - 10.5rem);height:calc(100% - 10.5rem);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.classCourse-detail .popup-container.wxtip .pop-tit{height:2.3rem;background:#fff;font:700 16px/2.3rem PingFangSC-Semibold;border-bottom:1px solid #eee}.classCourse-detail .popup-container.wxtip .pop-tit i{height:2.3rem;font:14px/2.3rem PingFangSC-Regular}.classCourse-detail .popup-container.wxtip .comm-box{text-align:center}.classCourse-detail .popup-container.wxtip .comm-box .tips{margin-top:1.6rem;color:#333;font:700 20px/1.4rem PingFangSC-Semibold\\, PingFang SC;text-align:center}.classCourse-detail .popup-container.wxtip .comm-box img{width:8.6rem;height:8.6rem;margin-top:2.2rem}.classCourse-detail .popup-container.wxtip .comm-box .tips2{margin-top:.4rem;color:#333;font:14px/1rem PingFangSC-Regular\\, PingFang SC}.classCourse-detail .popup-container.van-popup--round{border-radius:.4rem .4rem 0 0}.classCourse-detail .popup-container .pop-tit{height:2.75rem;background:#f6f6f6;text-align:center;position:relative;color:#333;font:700 16px/2.75rem PingFangSC-Semibold;border-radius:.4rem .4rem 0 0}.classCourse-detail .popup-container .pop-tit i{position:absolute;top:0;right:0;height:2.75rem;padding:0 .8rem;color:#666;font:14px/2.75rem PingFangSC-Regular}.classCourse-detail .popup-container .comm-box,.classCourse-detail .popup-container .pop-box{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.classCourse-detail .popup-container .pop-box{position:relative}.classCourse-detail .popup-container .pop-box img{width:4rem;position:absolute;top:3rem;left:50%;margin-left:-2rem}.van-dialog{width:16.75rem}.van-dialog.course-detail-dialog{border-radius:.4rem}.van-dialog.course-detail-dialog .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.course-detail-dialog .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.course-detail-dialog .van-button--default{height:2.65rem;color:#333}.van-dialog.course-detail-dialog .van-button--default .van-button__text{font-size:.9rem}.van-dialog.course-detail-dialog .van-dialog__confirm{color:#177afa}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(175);
var _sticky = _interopRequireDefault(__webpack_require__(132));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _throttleDebounce = __webpack_require__(21);
var _vant = __webpack_require__(12);
var _vuePdfNoSssNoWorker = _interopRequireDefault(__webpack_require__(2596));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _common = _interopRequireDefault(__webpack_require__(2608));
var _experienList = _interopRequireDefault(__webpack_require__(2612));
var _rankList = _interopRequireDefault(__webpack_require__(2619));
var _score = _interopRequireDefault(__webpack_require__(2624));
var _marquee = _interopRequireDefault(__webpack_require__(2629));
var _axios = _interopRequireDefault(__webpack_require__(744));
var _bf = _interopRequireDefault(__webpack_require__(295));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _sticky.default.name, _sticky.default), _icon.default.name, _icon.default), "MescrollVue", _mescroll.default), "Common", _common.default), "ExperienList", _experienList.default), "RankList", _rankList.default), "Score", _score.default), "Marquee", _marquee.default), _noticeBar.default.name, _noticeBar.default),
  filters: {
    courseStatus: function courseStatus(val) {
      switch (val) {
        case 1:
          return '免费课程';
        case 2:
          return '系统赠送';
        case 3:
          return '畅享卡免费';
        case 4:
          return '需要购买';
        case 5:
          return '已购买';
      }
    }
  },
  data: function data() {
    return {
      posterImg: '',
      courseDetail: {},
      // 课程索引
      courseHourList: [],
      // 课程目录列表
      courseWareList: [],
      // 课程课件列表
      courseQaList: [],
      // 课程提问列表
      courseQaListLoad: false,
      // 课程提问列表渲染完成
      qaOrderCase: 2,
      // 提问排序 1:表示根据时间  2:点赞数,  默认为2
      expOrderCase: 2,
      // 心得排序 1:表示根据时间  2:点赞数,  默认为2
      curWareItem: {
        classHourUrl: ''
      },
      pdfNumPages: 0,
      curIndex: 0,
      // 当前tab索引
      curVideoObj: {
        title: '',
        status: 0,
        // 是否免费试看
        src: '',
        curId: '',
        playStatus: false
      },
      // 当前播放的视频内容
      showVideoMask: true,
      // 是否显示视频遮罩层
      showShareBox: false,
      tabList: [
      // tab栏数据
      {
        name: '介绍',
        show: true,
        id: 0
      }, {
        name: '列表',
        show: false,
        id: 1
      }
      // { name: '课件', show: false, id: 2 },
      // { name: '提问', show: false, id: 3 },
      // { name: '心得', show: false, id: 4 }
      ],
      timer: null,
      // 视频播放进度的定时器
      startPlayTime: 0,
      // 视频开始播放的时间
      curVideOpenTimer: null,
      // 控制视频打开后总秒数的定时器
      AnNormalTime: 0,
      // 暂停时视频的播放时间
      toggleVideoFlag: false,
      expScrolltop: 0,
      // 心得列表滚动高度
      showPopup: false,
      // 显示课件弹窗
      pdfLoaded: false,
      // pdf加载完成标识
      showPopup2: false,
      // 显示写心得弹窗
      showPopup3: false,
      // 排行榜弹层
      showPopup4: false,
      // 学分弹窗
      rankId: '',
      // 排行榜id
      nowPopObj: {
        type: 1,
        text: '写提问'
      },
      // 当前打开的弹窗属于提问还是心得
      mescroll: null,
      mescrollUp: {
        auto: false,
        callback: this.getCourseQaList,
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        isBounce: false,
        page: {
          num: 1,
          size: 10
        }
      },
      fullScreen: false,
      seekStartFlag: false,
      // 是否拖动的标记，一旦拖动，1秒内后面的拖动会被禁止
      nowTime: 0,
      // 拖动进度时，当前视频的播放时间
      btnList: [],
      // 目录页按钮列表
      deviceNo: '',
      // app端获取手机的id
      userList: [],
      maqText: '',
      // 跑马灯文字
      inWxMiniApp: localStorage.getItem('inWxMinapp') === '1',
      // 是否在微信小程序打开
      showPopup5: false,
      isInIosWxMiniApp: false,
      // localStorage.getItem('inWxMinapp') === '1' && this._Util.isIOS // 是否在ios微信小程序内打开
      vipType: '',
      videoIsShow: false,
      timing: '',
      time: 0,
      lookTiming: '',
      lookTime: 0,
      searchKeyNum: this.$route.query.searchKeyNum
    };
  },
  computed: {
    // 内容区域是否可以滚动 视频播放中及在提问tab和心得tab时，视频需要固定在顶部
    canScrollFlag: function canScrollFlag() {
      return this.curVideoObj.playStatus || this.curIndex === 3 || this.curIndex === 4;
    },
    isShowMask: function isShowMask() {
      if (this.curIndex === 0 && this.courseDetail.courseDesc) {
        return false;
      } else {
        return true;
      }
    }
  },
  watch: {
    showPopup: function showPopup(val) {
      if (!val) {
        this.curWareItem.classHourUrl = '';
      }
    },
    showPopup2: function showPopup2(val) {
      if (!val) {
        this.$refs.courseComm.clearCont();
      }
    },
    'curVideoObj.playStatus': function curVideoObjPlayStatus(val) {
      var curTime = Math.round(this.$refs.videoEl.currentTime);
      if (val) {
        this.startPlayTime = curTime;
        // 正常整点上报
        this.reportOnTime();
      } else {
        if (this.toggleVideoFlag) {
          this.toggleVideoFlag = false;
        } else {
          this.AnNormalReport(curTime, 'pause');
          clearInterval(this.curVideOpenTimer);
          this.curVideOpenTimer = null;
        }
      }
    },
    'curVideoObj.curId': function curVideoObjCurId(val, oldVal) {}
  },
  created: function created() {
    var type = this._Util.getParaValueByName('type');
    if (type == 17) {
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        this.videoIsShow = false;
        this.showVideoMask = false;
      } else {
        this.videoIsShow = true;
      }
    } else {
      this.videoIsShow = true;
    }
    // this.updataScore()
    this.getCourseDetail();
    this.share();
    // this.getUserList()
  },
  mounted: function mounted() {
    window.vuePage = this;

    // gk
    var that = this;
    var courseExp = JSON.parse(sessionStorage.getItem('_courseExp_'));
    var courseHour = JSON.parse(sessionStorage.getItem('_courseHour_'));
    var vipTypeNow = JSON.parse(localStorage.getItem('userInfo')).userVipType;
    if (this._Util.isSVip(vipTypeNow)) {
      this.vipType = 2;
    } else {
      if (this._Util.isVip(vipTypeNow)) {
        this.vipType = 1;
      }
    }
    if (courseExp && courseExp.scrollTop) {
      this.toggleTab({
        id: 4
      });
      setTimeout(function () {
        document.getElementById('list-box').scrollTop = courseExp.scrollTop;
      }, 300);
      sessionStorage.removeItem('_courseExp_');
    }
    if (courseHour === 1) {
      this.toggleTab({
        id: 1
      });
      sessionStorage.removeItem('_courseHour_');
    }
    window.addEventListener('pagehide', function () {
      if (!that.showVideoMask) {
        var curTime = Math.round(that.$refs.videoEl.currentTime);
        that.AnNormalReport(curTime, 'pause');
        clearInterval(that.curVideOpenTimer);
        clearInterval(that.timer);
        clearInterval(that.timing);
      }
    });
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: that.searchKeyNum ? '搜索' : '',
      target: that.$route.query.courseId,
      remark: '课程详情',
      searchKey: that.searchKeyNum
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    window.onbeforeunload = function (e) {
      if (!that.showVideoMask) {
        var curTime = Math.round(that.$refs.videoEl.currentTime);
        that.AnNormalReport(curTime, 'pause');
        clearInterval(that.curVideOpenTimer);
        clearInterval(that.timer);
        clearInterval(that.timing);
        return false;
      }
    };
    if (!this._Util.isApp() && localStorage.getItem('inWxMinapp') !== '1') {
      if (window.history && window.history.pushState) {
        var state = {
          title: '关闭页面',
          url: ''
        };
        window.history.pushState(state, state.title, state.url);
        window.addEventListener('popstate', this.listenBack, false);
      }
    }
  },
  beforeDestroy: function beforeDestroy() {
    var curTime = Math.round(this.$refs.videoEl.currentTime);
    this.AnNormalReport(curTime, 'pause');
    clearInterval(this.curVideOpenTimer);
    clearInterval(this.timer);
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: that.$route.query.courseId,
        remark: '课程详情,' + that.time,
        searchKey: ''
      }, that);
    }
    window.removeEventListener('popstate', this.listenBack, false);
  },
  methods: {
    collectOp: function collectOp() {
      var _this = this;
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search-api/dataOperate/collection', {
        dataId: this.$route.query.courseId,
        type: 2
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        if (_this.courseDetail.isCollect == 0) {
          _this.courseDetail.isCollect = 1;
        } else {
          _this.courseDetail.isCollect = 0;
        }
      }, function () {}, that);
    },
    /**
     * 提示立即领取弹窗gk
     */
    clickGetCourse: function clickGetCourse() {
      var _this2 = this;
      var courseStatus = this.courseDetail.courseStatusByCurrentUser;
      if (courseStatus >= 1 && courseStatus <= 3) {
        _mintUi.MessageBox.alert('', {
          title: '',
          message: '您已获得该课程观看权限',
          confirmButtonText: '立即领取',
          showCancelButton: false,
          confirmButtonHighlight: true
        }).then(function (action) {
          if (action == 'confirm') {
            _this2.reciveCourse();
          }
        });
      }
    },
    /**
     * 神策埋点点击事件封装
     */
    clickEventlog: function clickEventlog(name, cont, className, elType, targetUrl, curUrl, title, moudleType, id, operationPage) {
      // this._Util.sensorsCollect('element_click', {
      //   $element_name: name,
      //   $element_content: cont,
      //   $element_class_name: className,
      //   $element_type: elType,
      //   $element_target_url: targetUrl,
      //   $url: curUrl || window.location.href,
      //   $title: title,
      //   moudle_type: moudleType,
      //   correlation_id: id,
      //   operation_page: operationPage
      // })
    },
    /**
     * 记录神策埋点
     */
    addScLog: function addScLog() {
      this._Util.sensorsCollect('enter_course_detail', {
        $url: window.location.href,
        $title: this.courseDetail.courseName,
        moudle_type: '课程',
        correlation_id: this.$route.query.courseId,
        operation_page: '课程详情页'
      });
    },
    /**
     * 监听页面返回
     */
    listenBack: function listenBack() {
      if (!this.showVideoMask) {
        var curTime = Math.round(this.$refs.videoEl.currentTime);
        this.AnNormalReport(curTime, 'pause');
        clearInterval(this.curVideOpenTimer);
        clearInterval(this.timer);
      }
      history.back(-1);
    },
    /**
     * 全屏变化的相关逻辑
    */
    fullscreenchange: function fullscreenchange(e) {
      var el = document.webkitFullscreenElement;
      this.fullScreen = !!el;
      if (el) {
        if (this._Util.isApp()) {
          setTimeout(function () {
            api.setFullScreen({
              fullScreen: true
            });
            api.setScreenOrientation({
              orientation: 'landscape_left'
            });
          }, 200);
        }
      }
    },
    /**
     * 拖拽进度条异常上报
     */
    seekStart: function seekStart() {
      var _this3 = this;
      if (this.seekStartFlag) {
        return;
      }
      this.seekStartFlag = true;
      setTimeout(function () {
        _this3.seekStartFlag = false;
      }, 1000);
      this.AnNormalReport(this.nowTime, 'seek');
    },
    /**
     * 心得显示区域滚动高度传递给子组件
     */
    expScroll: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(e) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this.expScrolltop = e.srcElement.scrollTop || e.target.scrollTop;
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 领取课程
     */
    reciveCourse: function reciveCourse() {
      var _this4 = this;
      var sourceType;
      if (this.courseDetail.coursePrice == 0) {
        sourceType = 3;
      } else if (this.courseDetail.coursePrice != 0 && this.courseDetail.memberPrice == 0 && this.vipType == 1) {
        sourceType = 4;
      } else if (this.courseDetail.coursePrice != 0 && this.courseDetail.superVipPrice == 0 && this.vipType == 2) {
        sourceType = 5;
      }
      this._Util.post(this._Api.COURSE4.RECEIVE_COURSE, {
        courseId: this.$route.query.courseId,
        sourceType: sourceType,
        referrerId: this.$route.query.shareID || ''
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '课程领取成功',
          duration: 1500
        });
        _this4.getCourseDetail('tabclick');
      }, function () {}, this, true);
      this.clickEventlog('立即领取', '获取课程', 'pay-btn', 'div', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
    },
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 视频开始播放的回调
     */
    startPlay: function startPlay() {
      var _this5 = this;
      this.curVideoObj.playStatus = true;
      this._Util.collectPageViewNew({
        type: 10,
        postUrl: this._Api.POST_COLLECT_NEW,
        source: '',
        target: this.$route.query.courseId,
        remark: '',
        searchKey: ''
      }, this);
      this.recordCourseNode();
      clearInterval(this.timer);
      this.timer = null;
      this.timer = setInterval(function () {
        _this5.recordCourseNode();
      }, 10000);
    },
    /**
     * 视频暂停
     */
    pausePlay: function pausePlay() {
      this.recordCourseNode();
      clearInterval(this.timer);
      this.timer = null;
      this.curVideoObj.playStatus = false;
      // 当视频播放的当前时间等于视频时长时，需要重新记录一次日志
      if (parseInt(this.$refs.videoEl.currentTime) === parseInt(this.$refs.videoEl.duration)) {
        this.recordCourseNode('full');
      }
    },
    /**
     * 整点上报
     */
    reportOnTime: function reportOnTime() {
      var _this6 = this;
      this.curVideOpenTimer = null;
      var curTime = Math.round(this.$refs.videoEl.currentTime);
      this.curVideOpenTimer = setInterval(function () {
        curTime = Math.round(_this6.$refs.videoEl.currentTime);
        _this6.nowTime = curTime;
        if (curTime > 0 && curTime % 60 === 0) {
          var timeStep = curTime / 60;
          timeStep = timeStep < 1 ? 1 : Math.ceil(timeStep);
          if (curTime - _this6.startPlayTime > 0) {
            _this6.recordActionLog({
              courseId: _this6.$route.query.courseId,
              courseHourId: _this6.curVideoObj.curId,
              deviceNo: _this6.deviceNo,
              startTime: timeStep - 1 + ':00',
              endTime: timeStep + ':00',
              validTime: curTime - _this6.startPlayTime,
              unusualStartTime: _this6.AnNormalTime ? _this6.AnNormalTime : '',
              unusualEndTime: ''
            });
            _this6.AnNormalTime = 0;
            _this6.startPlayTime = timeStep === 1 ? 60 : timeStep * 60;
          }
        }
      }, 1000);
    },
    /**
     * 异常上报
     * @param {String} type 异常类型 seek拖动导致的异常
     */
    AnNormalReport: (0, _throttleDebounce.debounce)(10, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(curTime, type) {
        var timeStep, deviceNo;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              this.AnNormalTime = curTime; // 当前的异常停止时间
              timeStep = curTime / 60;
              timeStep = timeStep < 1 ? 1 : Math.ceil(timeStep);
              deviceNo = this._Util.isApp() ? api.deviceId : '';
              if (curTime - this.startPlayTime > 0) {
                this.recordActionLog({
                  courseId: this.$route.query.courseId,
                  courseHourId: this.curVideoObj.curId,
                  deviceNo: deviceNo,
                  startTime: timeStep - 1 + ':00',
                  endTime: timeStep + ':00',
                  validTime: curTime - this.startPlayTime,
                  unusualStartTime: '',
                  unusualEndTime: curTime
                });
              }
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x2, _x3) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /**
     * 上传客户观看课程的详细日志
     */
    recordActionLog: function recordActionLog(param) {
      this._Util.post(this._Api.COURSE4.RECORD_ACTIONLOG, param, function (data) {}, function () {}, this, true);
    },
    /**
     * 记录观看节点
     * @param {String} isfull 是否全部播放
     */
    recordCourseNode: function recordCourseNode(isfull) {
      var progress;
      if (this.$refs.videoEl.currentTime) {
        progress = parseFloat(this.$refs.videoEl.currentTime / this.$refs.videoEl.duration).toFixed(2) * 100;
      } else {
        this.$refs.videoEl.currentTime = 0;
      }
      this._Util.post(this._Api.POST_ADD_HOUR_RECORD_NEW, {
        courseType: this.$route.query.courseType === '1' ? 'single' : 'series',
        hourId: this.curVideoObj.curId,
        hourNode: isfull ? 100 : progress || 0,
        hourLocation: this.$refs.videoEl.currentTime,
        openTime: new Date().getTime(),
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        platForm: this._Util.isIOS ? 'IOS' : 'Android'
      }, function (data) {}, function () {}, this, true);
    },
    /**
     * 切换tab
     */
    toggleTab: function toggleTab(item) {
      this.curIndex = item.id;
      this.courseQaListLoad = false;
      this.clickEventlog('课程详情tab', '课程详情-' + item.name, '', 'li', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
      if (this.curIndex === 0) {
        // 详情
        // 如果详情不为空，代表详情数据已经请求到，并且已经有观看权限，再次点击时不需要重新调用接口
        if (JSON.stringify(this.courseDetail) !== '{}' && this.courseDetail.courseStatusByCurrentUser === 5) {
          return;
        }
        this.getCourseDetail('tabclick');
      } else if (this.curIndex === 1) {
        // 目录
        if (this.courseHourList.length) {
          return;
        }
        this.getCourseHour();
      } else if (this.curIndex === 2) {
        // 课件
        if (this.courseWareList.length) {
          return;
        }
        this.getCourseWare();
      } else if (this.curIndex === 3) {
        // 提问
        this.getCourseQaList({
          num: 1,
          size: 10
        });
      } else if (this.curIndex === 4) {// 心得
      }
      this.clickEventlog('课程详情tab', '课程详情-' + item.name, '', 'li', '', '', this.courseDetail.courseName, '课程', '', '课程详情');
    },
    /**
     * 获取课程详情
     * @param type 获取详情的类型
     */
    getCourseDetail: function getCourseDetail(type) {
      var _this7 = this;
      // alert("ss")
      this._Util.post(this._Api.COURSE4.DETAIL_COURSE, {
        courseId: this.$route.query.courseId
      }, function (data) {
        if (data) {
          _this7.posterImg = data.courseCover;
          data.classHourUrl = data.classHourUrl ? data.classHourUrl : '';
          _this7.courseDetail = data;
          _this7.courseDetail.courseDesc = _this7.courseDetail.courseDesc.replace(/post/g, function (match, capture) {
            return 'poster="' + _bf.default + '"';
          });
          // alert(JSON.stringify(this.courseDetail.courseStatusByCurrentUser))
          document.title = _this7.courseDetail.courseName;
          if (type === 'tabclick') {
            return;
          }
          // this.addScLog()
          if (_this7._Util.isApp()) {
            _this7.deviceNo = api.deviceId;
          }
          _this7.curVideoObj = {
            status: 0,
            src: data.classHourUrl,
            curId: data.courseHourId,
            playStatus: false,
            title: data.courseName
          };
          if (data.courseExp === 1) {
            // 是否开启心得 0：未开启 1：开启
            _this7.flilterList('心得');
          }
          if (data.courseQa === 1) {
            // 是否开启提问 0：未开启 1：开启
            _this7.flilterList('提问');
          }
          if (data.courseHourNum > 1) {
            // 课程目录数量
            _this7.flilterList('列表');
          }
          if (data.courseWareNum > 0) {
            // 课件数量
            _this7.flilterList('课件');
          }
          // 课程针对当前用户的状态 1: 课程本身免费 2:系统赠送 3:畅享卡免费 4:需要购买 5.已购买
          // 没有详情富文本，且有目录页,默认展示目录tab
          // 有查看权限，且有目录页,默认展示目录tab
          if ((data.courseStatusByCurrentUser === 5 || !data.courseDesc) && data.courseHourNum > 1) {
            // this.curIndex = 1
            _this7.getCourseHour();
          }
          // 如果没有权限，此时需要查看第一个视频是可以试看
          if (data.courseStatusByCurrentUser !== 5 && data.courseHourNum) {
            _this7.getCourseHour('checkFreeHour');
          }
          _this7.clickGetCourse(); // 弹出弹框提示领取课程
          if (_this7.inWxMiniApp) {
            var userinfo = JSON.parse(localStorage.getItem('userInfo'));
            var url = location.origin + '/repair/shopping/courseDetail?courseId=' + _this7.$route.query.courseId + '&referee=' + userinfo.uphone;
            var src = encodeURIComponent(url);
            uni.postMessage({
              // eslint-disable-line
              data: {
                type: 'updataShareCont',
                title: data.courseName,
                imageUrl: 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/common/270031CCF86D8E643DE5C929DE01687A.png',
                link: '/pages/webView/webView?src=' + src
              }
            });
            // uni.postMessage({ // eslint-disable-line
            //   data: {
            //     type: 'updataShareCont',
            //     title: data.courseName,
            //     imageUrl: data.courseCover ? data.courseCover : 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/common/270031CCF86D8E643DE5C929DE01687A.png',
            //     link: location.origin + '/kaxiubaodian'
            //   }
            // })
          }
        }
      }, function () {}, this);
    },
    /**
     * 改变tab数据的展示
     * @param {String} name tab数据名称
     */
    flilterList: function flilterList(name) {
      this.tabList.forEach(function (item) {
        if (item.name === name) {
          item.show = true;
        }
      });
    },
    refreshByApp: function refreshByApp() {
      this.getCourseDetail();
    },
    /**
     * 获取课程目录
     * @param {String} type 没有权限查看课程是，需要判断目录里可以免费看的视频，然后赋值给当前播放视频
     */
    getCourseHour: function getCourseHour(type) {
      var _this8 = this;
      // this.getBtnsList()
      this._Util.post(this._Api.COURSE4.COURSE_HOUR_LIST, {
        courseId: this.$route.query.courseId,
        pageNum: 1,
        pageSize: 200
      }, function (data) {
        if (data) {
          // type 课时类型 1：视频，2：课件，3：作业，4：考试，5：其他
          _this8.courseHourList = data.dataList || [];
          var tempVideoArr = [];
          _this8.courseHourList.forEach(function (item) {
            item.hourLength = item.hourLength && _this8.secondToDate(item.hourLength);
            if (item.status === 1 && type === 'checkFreeHour') {
              if (item.type === 1) {
                tempVideoArr.push({
                  status: 1,
                  // 免费试看的
                  src: item.classHourUrl,
                  curId: item.courseHourId,
                  title: item.classHourName,
                  playStatus: false
                });
              }
            }
          });
          if (type === 'checkFreeHour' && tempVideoArr.length) {
            _this8.curVideoObj = tempVideoArr[0];
          }
        }
      }, function () {}, this);
    },
    /**
     * 转换秒数为时分秒
     */
    secondToDate: function secondToDate(result) {
      var h = Math.floor(result / 3600) < 10 ? '0' + Math.floor(result / 3600) : Math.floor(result / 3600);
      var m = Math.floor(result / 60 % 60) < 10 ? '0' + Math.floor(result / 60 % 60) : Math.floor(result / 60 % 60);
      var s = Math.floor(result % 60) < 10 ? '0' + Math.floor(result % 60) : Math.floor(result % 60);
      var timeResult = h > 0 ? h.toString() + ':' + m.toString() + ':' + s.toString() : m.toString() + ':' + s.toString();
      return timeResult;
    },
    /**
     * 获取学分及排行榜按钮数据
     */
    getBtnsList: function getBtnsList() {
      var _this9 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'coursedetail_enter_set',
        user_id: userId,
        course_id: this.$route.query.courseId,
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data && data.dataList) {
          _this9.btnList = data.dataList;
        }
      }, function () {}, this, true);
    },
    /**
     * 同步指定客户【所有课程】的学分流水及总分数据
     */
    updataScore: function updataScore() {
      this._Util.post(this._Api.COURSE4.UPDATA_COURSE_SCORE, {}, function (data) {}, function () {}, this, true);
    },
    /**
     * 打开弹窗
     */
    showPopupFn: function showPopupFn(item) {
      var _this0 = this;
      if (item.type === 0) {
        // 学分
        this.clickEventlog('我的学分', '我的学分', 'iner-btn', 'div', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
        this.showPopup4 = true;
        this.updataScore();
        setTimeout(function () {
          _this0.$refs.score.init();
        }, 100);
      } else if (item.type === 1) {
        // 排行榜
        this.showPopup3 = true;
        var tempArr = item.url && item.url.split('?');
        var tempArr2 = tempArr[1].split('=');
        this.rankId = tempArr2[1];
        setTimeout(function () {
          _this0.$refs.ranklist.init();
        }, 100);
      } else {
        // 其他类型
        this.clickEventlog(item.name, '课程详情-配置按钮', 'iner-btn', 'div', '', '', this.courseDetail.courseName, '课程', item.url, '课程详情');
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'toCourseUrl',
              url: item.url
            }
          });
        } else {
          location.href = item.url;
        }
      }
    },
    /**
     * 获取课件目录
     */
    getCourseWare: function getCourseWare() {
      var _this1 = this;
      this._Util.post(this._Api.COURSE4.COURSE_WARE_LIST, {
        courseId: this.$route.query.courseId,
        pageNum: 1,
        pageSize: 100
      }, function (data) {
        if (data) {
          _this1.courseWareList = data.dataList || [];
          if (_this1.courseWareList.length === 1) {
            var loadingTask = _vuePdfNoSssNoWorker.default.createLoadingTask(_this1.courseWareList[0].classHourUrl);
            _this1.curWareItem.classHourUrl = loadingTask;
            _this1.curWareItem.classHourUrl.promise.then(function (pdf) {
              _this1.pdfNumPages = pdf.numPages;
            });
          }
        }
      }, function () {}, this);
    },
    /**
     * 提问列表排序
     * @param {Number} type 1 时间排序 2 点赞排序
     */
    qaSort: function qaSort(type) {
      var name = type === 1 ? '提问-时间排序' : '提问-点赞排序';
      this.clickEventlog(name, name, '', 'span', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
      this.courseQaListLoad = false;
      this.qaOrderCase = type;
      this.getCourseQaList({
        num: 1,
        size: 10
      });
    },
    /**
     * 心得列表排序
     * @param {Number} type 1 时间排序 2 点赞排序
     */
    expSort: function expSort(type) {
      var name = type === 1 ? '心得-时间排序' : '心得-点赞排序';
      this.clickEventlog(name, name, '', 'span', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
      this.expOrderCase = type;
      this.$refs.experienList.getArticleList(type);
    },
    /**
     * 获取提问列表
     */
    getCourseQaList: function getCourseQaList(page) {
      var _this10 = this;
      if (page.num === 1) {
        this.courseQaList = [];
      }
      this._Util.post(this._Api.COURSE4.COURSE_QA_LIST, {
        courseId: this.$route.query.courseId,
        pageNum: page.num,
        pageSize: page.size,
        orderCase: this.qaOrderCase
      }, function (data) {
        _this10.courseQaListLoad = true;
        if (data) {
          var arr = data.dataList || [];
          _this10.courseQaList = _this10.courseQaList.concat(arr);
          _this10.$nextTick(function () {
            _this10.mescroll.endSuccess(arr.length);
          });
          _this10.courseQaList.forEach(function (item) {
            item.questionPicList = item.questionPic ? item.questionPic.split(',') : [];
            item.askPicList = item.askPic ? item.askPic.split(',') : [];
          });
          // 当用户没有权限并且到最后一页时，需要将到底了提示往上提，别面被遮挡
          if (_this10.courseDetail.courseStatusByCurrentUser !== 5 && arr.length < 10) {
            setTimeout(function () {
              if (document.querySelector('.upwarp-nodata')) {
                document.querySelector('.upwarp-nodata').style.paddingBottom = '4.5rem';
              }
            }, 300);
          }
        } else {
          _this10.mescroll.endSuccess(0);
        }
        if (page.num > 1) {
          _this10._Util.sensorsCollect('pageturning', {
            file_page: page.num,
            paging_num: data.dataList.length,
            operation_page: '课程详情-提问',
            correlation_id: _this10.$route.query.courseId
          });
        }
      }, function () {
        _this10.mescroll.endErr();
      }, this);
    },
    /**
     * 点击立即播放播放当前视频
     */
    playVideo: function playVideo() {
      var _this11 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var videoUrl;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              if (!(_this11.courseDetail.courseStatusByCurrentUser !== 5 && _this11.curVideoObj.status === 0)) {
                _context3.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '您还未购买该课程',
                duration: 1500
              });
              return _context3.abrupt("return");
            case 1:
              _context3.next = 2;
              return _this11.getVideoUrl(_this11.curVideoObj.curId);
            case 2:
              videoUrl = _context3.sent;
              _this11.curVideoObj.src = videoUrl;
              _this11.showVideoMask = false;
              setTimeout(function () {
                _this11.$refs.videoEl.src = _this11.curVideoObj.src;
                _this11.$refs.videoEl.play();
              }, 200);
            case 3:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /**
     * 组件内增加提问成功
     */
    addQaEnd: function addQaEnd() {
      this.showPopup2 = false;
      this.getCourseQaList({
        num: 1,
        size: 10
      });
    },
    /**
     * 提问点赞
     * @param {Object} item 提问内容
     * @param {String} type 点赞类型 1 问题 2 回答
     */
    qaLike: function qaLike(item, type) {
      if (item.courseQaPraise === 1 && type === 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          duration: 1500
        });
        return;
      }
      if (type === 2 && item.courseAskPraise === 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          duration: 1500
        });
        return;
      }
      this._Util.post(this._Api.COURSE4.COURSE_QA_LIKE, {
        courseQaId: item.courseQaId,
        likeCourseQaType: type
      }, function (data) {
        if (type === 1) {
          item.courseQaPraise = 1;
          item.questionLikesNum += 1;
        } else {
          item.courseAskPraise = 1;
          item.askLikesNum += 1;
        }
      }, function () {}, this);
    },
    /**
     * 组件内增加心得成功
     */
    addExpEnd: function addExpEnd() {
      this.showPopup2 = false;
      this.$refs.experienList.getArticleList();
    },
    /**
     * 分享给好友
     */
    shareFriends: function shareFriends(type) {
      this.clickEventlog('分享课程', '分享课程', 'share-btn', 'div', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
      var that = this;
      if (that._Util.isFromApp()) {
        uni.postMessage({
          // eslint-disable-line
          data: {
            type: 'share'
          }
        });
        return;
      }
      if (that._Util.isApp()) {
        that.isRight(function () {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: '卡修宝典「犇犇课堂」',
                desc: '海量维修教学精品课程，等你来享用',
                link: location.href,
                imgLink: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
              }
            }
          });
        });
      } else if (that._Util.isMPaaS()) {
        var params = {
          title: '卡修宝典「犇犇课堂」',
          desc: '海量维修教学精品课程，等你来享用',
          link: location.href,
          imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        };
        if (type === 'timeline') {
          params.isWXTL = true;
        } else if (type === 'session') {
          params.isWX = true;
        }
        this._Util.mpassShare(params, function (shareData) {
          console.log(shareData);
        });
      } else {
        that.showShareBox = true;
      }
    },
    /**
     * app是否有某个权限
     */
    isRight: function isRight(callBack) {
      var resultList = api.hasPermission({
        list: ['photos']
      });
      if (!resultList[0].granted) {
        _dialog.default.confirm({
          title: '“卡修宝典”想访问您的存储权限',
          message: '在使用分享功能时，需要使用存储功能，用于下载并存储分享图片',
          confirmButtonText: '同意',
          className: 'course-detail-dialog'
        }).then(function () {
          api.requestPermission({
            list: ['photos'],
            code: 100004
          }, function (ret, err) {
            if (ret.never) {
              console.log('点击了不再提醒');
            }
            if (ret.list[0].granted) {
              callBack && callBack();
            }
          });
        }).catch(function () {});
      } else {
        callBack && callBack();
      }
    },
    /**
     * 打开目录
     * @param {Object} item 当前点击视频对象
     */
    openHour: function openHour(item) {
      var _this12 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
        var curTime, videoUrl;
        return _regenerator.default.wrap(function (_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              if (!(_this12.courseDetail.courseStatusByCurrentUser !== 5 && item.status === 0)) {
                _context4.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '您还未购买该课程',
                duration: 1500
              });
              return _context4.abrupt("return");
            case 1:
              _this12.clickEventlog(item.classHourName, '课程详情-点击目录', '', 'li', '', '', _this12.courseDetail.courseName, '课程', item.courseHourId, '课程详情');
              if (!(item.type === 1)) {
                _context4.next = 4;
                break;
              }
              if (item.classHourUrl) {
                _context4.next = 2;
                break;
              }
              (0, _mintUi.Toast)({
                message: '该课程尚未开放，敬请期待',
                duration: 1500
              });
              return _context4.abrupt("return");
            case 2:
              if (!_this12.showVideoMask) {
                curTime = Math.round(_this12.$refs.videoEl.currentTime);
                _this12.AnNormalReport(curTime);
                _this12.toggleVideoFlag = true;
              }
              _context4.next = 3;
              return _this12.getVideoUrl(item.courseHourId);
            case 3:
              videoUrl = _context4.sent;
              _this12.curVideoObj = {
                title: item.classHourName,
                status: item.status,
                src: videoUrl,
                curId: item.courseHourId,
                playStatus: false
              };
              _this12.showVideoMask = false;
              setTimeout(function () {
                _this12.$refs.videoEl.src = videoUrl;
                if (_this12._Util.isIOS) {
                  var video = _this12.$refs.videoEl;
                  video.addEventListener('canplay', _this12.videoPlay(video, item));
                } else {
                  _this12.$refs.videoEl.currentTime = item.watchLocation;
                  _this12.$refs.videoEl.play();
                }
              }, 500);
              _context4.next = 6;
              break;
            case 4:
              if (item.classHourUrl) {
                _context4.next = 5;
                break;
              }
              (0, _mintUi.Toast)({
                message: item.type === 4 ? '该考试尚未开放，敬请期待' : '该作业尚未开放，敬请期待',
                duration: 1500
              });
              return _context4.abrupt("return");
            case 5:
              if (_this12._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openCard',
                    url: item.classHourUrl
                  }
                });
              } else {
                sessionStorage.setItem('_courseHour_', 1);
                window.location.href = item.classHourUrl;
              }
            case 6:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    /**
     * 实时获取视频url
     * @param {String} item 当前点击视频对象的id
     */
    getVideoUrl: function getVideoUrl(id) {
      var _this13 = this;
      return new Promise(function (resolve, reject) {
        _this13._Util.post(_this13._Api.COURSE4.GET_VIDEO_URL, {
          hourId: id
        }, function (data) {
          if (data) {
            console.log(data);
            resolve(data);
          }
        }, function (err) {
          reject(err);
        }, _this13);
      });
    },
    /**
     * ios端监控视频播放事件
     */
    videoPlay: function videoPlay(video, item) {
      video.currentTime = item.watchLocation;
      video.play();
      video.removeEventListener('canplay', this.videoPlay);
    },
    /**
     * 打开课件
     * @param {Object} item 当前点击课件对象
     */
    openWare: function openWare(item) {
      var _this14 = this;
      if (this.courseDetail.courseStatusByCurrentUser !== 5 && item.status === 0) {
        (0, _mintUi.Toast)({
          message: '您还未购买该课程',
          duration: 1500
        });
        return;
      }
      this.clickEventlog(item.classHourName, '课程详情-点击课件', '', 'li', '', '', this.courseDetail.courseName, '课程', item.courseHourId, '课程详情');
      var loadingTask = _vuePdfNoSssNoWorker.default.createLoadingTask(item.classHourUrl);
      this.curWareItem.classHourUrl = loadingTask;
      this.curWareItem.classHourUrl.promise.then(function (pdf) {
        _this14.pdfNumPages = pdf.numPages;
      });
      this.showPopup = true;
      setTimeout(function () {
        _this14.$refs.warepopBox.scrollTop = 0;
      }, 100);
    },
    /**
     * pdf加载完成的回调
     */
    pdfLoadedFn: function pdfLoadedFn() {
      this.pdfLoaded = true;
    },
    /**
     * 写心得及提问
     * @param {Number} type 1 提问 2 心得
     */
    showPopFn: function showPopFn(type) {
      var _this15 = this;
      if (this.courseDetail.courseStatusByCurrentUser !== 5) {
        (0, _mintUi.Toast)({
          message: type === 1 ? '请先购买课程，再来发起提问吧' : '请先购买课程，再来写课程心得吧',
          duration: 1500
        });
        return;
      }
      this.showPopup2 = true;
      this.nowPopObj = {
        type: type,
        text: type === 1 ? '写提问' : '写心得'
      };
      var name = type === 1 ? '写提问' : '写心得';
      this.clickEventlog(name, name, 'write-ask', 'div', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
      setTimeout(function () {
        _this15.$refs.courseComm.getQnToken();
      }, 300);
    },
    /**
     * 支付逻辑
     */
    purchaseCourse: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(type) {
        var _this16 = this;
        var useType, that;
        return _regenerator.default.wrap(function (_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              useType = this._Util.getParaValueByName('type');
              if (!(useType == 17)) {
                _context5.next = 1;
                break;
              }
              if (!(localStorage.getItem('isIphone') === '1')) {
                _context5.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '由于相关规范，iOS功能暂不可用',
                duration: 1500
              });
              return _context5.abrupt("return");
            case 1:
              this.clickEventlog('立即购买', '获取课程', 'pay-btn', 'div', '', '', this.courseDetail.courseName, '课程', this.$route.query.courseId, '课程详情');
              that = this;
              this._Util.post(this._Api.POST_ORDER_SUBMIT, {
                source: 1,
                orderType: "1",
                goodsList: [{
                  id: this.$route.query.courseId,
                  num: 1
                }]
              }, function (data) {
                console.log(JSON.stringify(data));
                _this16._Util.toPay(data, function () {
                  (0, _mintUi.Toast)({
                    message: '支付成功',
                    duration: 1500
                  });
                  setTimeout(function () {
                    that.getCourseDetail('tabclick');
                  }, 500);
                });
              }, function () {}, this);
            case 2:
            case "end":
              return _context5.stop();
          }
        }, _callee5, this);
      }));
      return function (_x4) {
        return _ref3.apply(this, arguments);
      };
    }()),
    /**
     * 浏览单张图片
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    pdfErr: function pdfErr(err) {
      console.log(err);
    },
    /**
     * 获取文字跑马灯及用户轮播数据
     */
    getUserList: function getUserList() {
      var _this17 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'course_purchase_list',
        user_id: userId,
        course_id: this.$route.query.courseId,
        pageNum: 1,
        pageSize: 500
      }, function (data) {
        if (data && data.dataList) {
          var tempArr = data.dataList;
          var marTextArr = tempArr.filter(function (item) {
            return item.type === 1;
          });
          var userArr = tempArr.filter(function (item) {
            return item.type === 2;
          });
          _this17.maqText = marTextArr[0] && marTextArr[0].text;
          _this17.userList = userArr;
        }
      }, function () {}, this, true);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
        var userName;
        if (userInfo.uname) {
          userName = userInfo.uname;
        } else if (userInfo.userName) {
          userName = userInfo.userName;
        } else {
          userName = '@用户' + userInfo.userId;
        }
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.courseDetail.courseName,
                  desc: '我是' + userName + ',发现一门好课，邀你一起来学习！',
                  link: location.href + '&shareID=' + userInfo.userId,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.courseDetail.courseName,
              desc: '我是' + userName + ',发现一门好课，邀你一起来学习！',
              link: location.href + '&shareID=' + userInfo.userId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.courseDetail.courseName,
              desc: '我是' + userName + ',发现一门好课，邀你一起来学习！',
              link: location.href + '&shareID=' + userInfo.userId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.courseDetail.courseName,
              desc: '我是' + userName + ',发现一门好课，邀你一起来学习！',
              link: location.href + '&shareID=' + userInfo.userId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_vuePdfNoSssNoWorker_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(444);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_vuePdfNoSssNoWorker_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_vue_loader_lib_selector_type_script_index_0_vuePdfNoSssNoWorker_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_vue_loader_lib_selector_type_script_index_0_vuePdfNoSssNoWorker_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_vue_loader_lib_selector_type_script_index_0_vuePdfNoSssNoWorker_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2597)
}
/* script */


/* template */
var __vue_render__, __vue_static_render_fns__
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(
  _babel_loader_vue_loader_lib_selector_type_script_index_0_vuePdfNoSssNoWorker_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  __vue_render__,
  __vue_static_render_fns__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2598);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7792ef98", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".annotationLayer{left:0;top:0;right:0;bottom:0}.annotationLayer,.annotationLayer section{position:absolute}.annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%;background:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\") 0 0 repeat}.annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;padding:0 3px;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}.annotationLayer .choiceWidgetAnnotation select:focus,.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;appearance:none}.annotationLayer .popupWrapper{position:absolute;width:20em}.annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #333;border-radius:2px;padding:.6em;margin-left:5px;cursor:pointer;word-wrap:break-word}.annotationLayer .popup h1{font-size:1em;border-bottom:1px solid #000;padding-bottom:.2em}.annotationLayer .popup p{padding-top:.2em}.annotationLayer .fileAttachmentAnnotation,.annotationLayer .highlightAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .underlineAnnotation{cursor:pointer}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _componentFactory = _interopRequireDefault(__webpack_require__(2599));
//

if (Object({"NODE_ENV":"production"}).VUE_ENV !== 'server') {
  var pdfjsWrapper = __webpack_require__(2602).default;
  var PDFJS = __webpack_require__(1612);
  var component = (0, _componentFactory.default)(pdfjsWrapper(PDFJS));
} else {
  var component = (0, _componentFactory.default)({});
}
var _default = exports.default = component;__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue_resize_sensor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1824);


/* harmony default export */ __webpack_exports__["default"] = (function(pdfjsWrapper) {

	var createLoadingTask = pdfjsWrapper.createLoadingTask;
	var PDFJSWrapper = pdfjsWrapper.PDFJSWrapper;

	return {
		createLoadingTask: createLoadingTask,
		render: function(h) {
			return h('span', {
				attrs: {
					style: 'position: relative; display: block'
				}
			}, [
				h('canvas', {
					attrs: {
						style: 'display: inline-block; width: 100%; height: 100%; vertical-align: top',
					},
					ref:'canvas'
				}),
				h('span', {
					style: 'display: inline-block; width: 100%; height: 100%',
					class: 'annotationLayer',
					ref:'annotationLayer'
				}),
				h(vue_resize_sensor__WEBPACK_IMPORTED_MODULE_0__["default"], {
					props: {
						initial: true
					},
					on: {
						resize: this.resize
					},
				})
			])
		},
		props: {
			src: {
				type: [String, Object, Uint8Array],
				default: '',
			},
			page: {
				type: Number,
				default: 1,
			},
			rotate: {
				type: Number,
			},
		},
		watch: {
			src: function() {

				this.pdf.loadDocument(this.src);
			},
			page: function() {

				this.pdf.loadPage(this.page, this.rotate);
			},
			rotate: function() {
				this.pdf.renderPage(this.rotate);
			},
		},
		methods: {
			resize: function(size) {

				// check if the element is attached to the dom tree || resizeSensor being destroyed
				if ( this.$el.parentNode === null || (size.width === 0 && size.height === 0) )
					return;

				// on IE10- canvas height must be set
				this.$refs.canvas.style.height = this.$refs.canvas.offsetWidth * (this.$refs.canvas.height / this.$refs.canvas.width) + 'px';
				// update the page when the resolution is too poor
				var resolutionScale = this.pdf.getResolutionScale();

				if ( resolutionScale < 0.85 || resolutionScale > 1.15 )
					this.pdf.renderPage(this.rotate);

				// this.$refs.annotationLayer.style.transform = 'scale('+resolutionScale+')';
			},
			print: function(dpi, pageList) {

				this.pdf.printPage(dpi, pageList);
			}
		},

		// doc: mounted hook is not called during server-side rendering.
		mounted: function() {

			this.pdf = new PDFJSWrapper(this.$refs.canvas, this.$refs.annotationLayer, this.$emit.bind(this));

			this.$on('loaded', function() {

				this.pdf.loadPage(this.page, this.rotate);
			});

			this.$on('page-size', function(width, height) {

				this.$refs.canvas.style.height = this.$refs.canvas.offsetWidth * (height / width) + 'px';
			});

			this.pdf.loadDocument(this.src);
		},

		// doc: destroyed hook is not called during server-side rendering.
		destroyed: function() {

			this.pdf.destroy();
		}
	}

});
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_resize_sensor_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(445);
/* harmony import */ var _babel_loader_vue_loader_lib_selector_type_script_index_0_resize_sensor_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_vue_loader_lib_selector_type_script_index_0_resize_sensor_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2600)
}
/* script */


/* template */
var __vue_render__, __vue_static_render_fns__
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(
  _babel_loader_vue_loader_lib_selector_type_script_index_0_resize_sensor_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  __vue_render__,
  __vue_static_render_fns__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2601);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2f89d81a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "@-webkit-keyframes resizeSensorVisibility{0%{top:0}}@keyframes resizeSensorVisibility{0%{top:0}}", ""]);

// exports
//
//
//
//
//
//



Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = exports.default = {
  // thanks to https://github.com/marcj/css-element-queries
  props: {
    initial: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      size: {
        width: -1,
        height: -1
      }
    };
  },
  methods: {
    reset: function reset() {
      var expand = this.$el.firstChild;
      var shrink = this.$el.lastChild;
      expand.scrollLeft = 100000;
      expand.scrollTop = 100000;
      shrink.scrollLeft = 100000;
      shrink.scrollTop = 100000;
    },
    update: function update() {
      this.size.width = this.$el.offsetWidth;
      this.size.height = this.$el.offsetHeight;
    }
  },
  watch: {
    size: {
      deep: true,
      handler: function handler(size) {
        this.reset();
        this.$emit('resize', {
          width: this.size.width,
          height: this.size.height
        });
      }
    }
  },
  render: function render(create) {
    var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
    var styleChild = 'position: absolute; left: 0; top: 0;';
    return create('div', {
      style: style + 'animation-name: resizeSensorVisibility;',
      on: {
        '~animationstart': this.update
      }
    }, [create('div', {
      style: style,
      on: {
        scroll: this.update
      }
    }, [create('div', {
      style: styleChild + 'width: 100000px; height: 100000px;'
    })]), create('div', {
      style: style,
      on: {
        scroll: this.update
      }
    }, [create('div', {
      style: styleChild + 'width: 200%; height: 200%;'
    })])]);
  },
  beforeDestroy: function beforeDestroy() {
    this.$emit('resize', {
      width: 0,
      height: 0
    });
    this.$emit('resizeSensorBeforeDestroy');
  },
  mounted: function mounted() {
    if (this.initial === true) this.$nextTick(this.update);
    if (this.$el.offsetParent !== this.$el.parentNode) this.$el.parentNode.style.position = 'relative';
    if ('attachEvent' in this.$el && !('AnimationEvent' in window)) {
      var onresizeHandler = function () {
        this.update();
        removeOnresizeEvent();
      }.bind(this);
      var removeOnresizeEvent = function () {
        this.$el.detachEvent('onresize', onresizeHandler);
        this.$off('resizeSensorBeforeDestroy', removeOnresizeEvent);
      }.bind(this);
      this.$el.attachEvent('onresize', onresizeHandler);
      this.$on('resizeSensorBeforeDestroy', removeOnresizeEvent);
      this.reset();
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var pdfjs_dist_es5_web_pdf_viewer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1825);
/* harmony import */ var pdfjs_dist_es5_web_pdf_viewer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(pdfjs_dist_es5_web_pdf_viewer__WEBPACK_IMPORTED_MODULE_0__);


var pendingOperation = Promise.resolve();

/* harmony default export */ __webpack_exports__["default"] = (function(PDFJS) {

	function isPDFDocumentLoadingTask(obj) {

		return typeof(obj) === 'object' && obj !== null && obj.__PDFDocumentLoadingTask === true;
		// or: return obj.constructor.name === 'PDFDocumentLoadingTask';
	}

	function createLoadingTask(src, options) {

		var source;
		if ( typeof(src) === 'string' )
			source = { url: src };
		else if ( src instanceof Uint8Array )
			source = { data: src };
		else if ( typeof(src) === 'object' && src !== null )
			source = Object.assign({}, src);
		else
			throw new TypeError('invalid src type');

		// source.verbosity = PDFJS.VerbosityLevel.INFOS;
		// source.pdfBug = true;
		// source.stopAtErrors = true;

		if ( options && options.withCredentials )
			source.withCredentials = options.withCredentials;

		var loadingTask = PDFJS.getDocument(source);
		loadingTask.__PDFDocumentLoadingTask = true; // since PDFDocumentLoadingTask is not public

		if ( options && options.onPassword )
			loadingTask.onPassword = options.onPassword;

		if ( options && options.onProgress )
			loadingTask.onProgress = options.onProgress;

		return loadingTask;
	}


	function PDFJSWrapper(canvasElt, annotationLayerElt, emitEvent) {

		var pdfDoc = null;
		var pdfPage = null;
		var pdfRender = null;
		var canceling = false;

		canvasElt.getContext('2d').save();

		function clearCanvas() {

			canvasElt.getContext('2d').clearRect(0, 0, canvasElt.width, canvasElt.height);
		}

		function clearAnnotations() {

			while ( annotationLayerElt.firstChild )
				annotationLayerElt.removeChild(annotationLayerElt.firstChild);
		}

		this.destroy = function() {

			if ( pdfDoc === null )
				return;

			// Aborts all network requests and destroys worker.
			pendingOperation = pdfDoc.destroy();
			pdfDoc = null;
		}

		this.getResolutionScale = function() {

			return canvasElt.offsetWidth / canvasElt.width;
		}

		this.printPage = function(dpi, pageNumberOnly) {

			if ( pdfPage === null )
				return;

			// 1in == 72pt
			// 1in == 96px
			var PRINT_RESOLUTION = dpi === undefined ? 150 : dpi;
			var PRINT_UNITS = PRINT_RESOLUTION / 72.0;
			var CSS_UNITS = 96.0 / 72.0;

			var iframeElt = document.createElement('iframe');

			function removeIframe() {

				iframeElt.parentNode.removeChild(iframeElt);
			}

			new Promise(function(resolve, reject) {

				iframeElt.frameBorder = '0';
				iframeElt.scrolling = 'no';
				iframeElt.width = '0px;'
				iframeElt.height = '0px;'
				iframeElt.style.cssText = 'position: absolute; top: 0; left: 0';

				iframeElt.onload = function() {

					resolve(this.contentWindow);
				}

				window.document.body.appendChild(iframeElt);
			})
			.then(function(win) {

				win.document.title = '';

				return pdfDoc.getPage(1)
				.then(function(page) {

					var viewport = page.getViewport({ scale: 1 });
					win.document.head.appendChild(win.document.createElement('style')).textContent =
						'@supports ((size:A4) and (size:1pt 1pt)) {' +
							'@page { margin: 1pt; size: ' + ((viewport.width * PRINT_UNITS) / CSS_UNITS) + 'pt ' + ((viewport.height * PRINT_UNITS) / CSS_UNITS) + 'pt; }' +
						'}' +

						'@media print {' +
							'body { margin: 0 }' +
							'canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }' +
						'}'+

						'@media screen {' +
							'body { margin: 0 }' +
						'}'+

						''
					return win;
				})
			})
			.then(function(win) {

				var allPages = [];

				for ( var pageNumber = 1; pageNumber <= pdfDoc.numPages; ++pageNumber ) {

					if ( pageNumberOnly !== undefined && pageNumberOnly.indexOf(pageNumber) === -1 )
						continue;

					allPages.push(
						pdfDoc.getPage(pageNumber)
						.then(function(page) {

							var viewport = page.getViewport({ scale: 1 });

							var printCanvasElt = win.document.body.appendChild(win.document.createElement('canvas'));
							printCanvasElt.width = (viewport.width * PRINT_UNITS);
							printCanvasElt.height = (viewport.height * PRINT_UNITS);

							return page.render({
								canvasContext: printCanvasElt.getContext('2d'),
								transform: [ // Additional transform, applied just before viewport transform.
									PRINT_UNITS, 0, 0,
									PRINT_UNITS, 0, 0
								],
								viewport: viewport,
								intent: 'print'
							}).promise;
						})
					);
				}

				Promise.all(allPages)
				.then(function() {

					win.focus(); // Required for IE
					if (win.document.queryCommandSupported('print')) {
						win.document.execCommand('print', false, null);
						} else {
						win.print();
					  }
					removeIframe();
				})
				.catch(function(err) {

					removeIframe();
					emitEvent('error', err);
				})
			})
		}

		this.renderPage = function(rotate) {
			if ( pdfRender !== null ) {

				if ( canceling )
					return;
				canceling = true;
				pdfRender.cancel().catch(function(err) {
					emitEvent('error', err);
				});
				return;
			}

			if ( pdfPage === null )
				return;

			var pageRotate = (pdfPage.rotate === undefined ? 0 : pdfPage.rotate) + (rotate === undefined ? 0 : rotate);

			var scale = canvasElt.offsetWidth / pdfPage.getViewport({ scale: 1 }).width * (window.devicePixelRatio || 1);
			var viewport = pdfPage.getViewport({ scale: scale, rotation:pageRotate });

			emitEvent('page-size', viewport.width, viewport.height, scale);

			canvasElt.width = viewport.width;
			canvasElt.height = viewport.height;

			pdfRender = pdfPage.render({
				canvasContext: canvasElt.getContext('2d'),
				viewport: viewport
			});

			annotationLayerElt.style.visibility = 'hidden';
			clearAnnotations();

			var viewer = {
				scrollPageIntoView: function(params) {
					emitEvent('link-clicked', params.pageNumber)
				},
			};

			var linkService = new pdfjs_dist_es5_web_pdf_viewer__WEBPACK_IMPORTED_MODULE_0__["PDFLinkService"]();
			linkService.setDocument(pdfDoc);
			linkService.setViewer(viewer);

			pendingOperation = pendingOperation.then(function() {

				var getAnnotationsOperation =
				pdfPage.getAnnotations({ intent: 'display' })
				.then(function(annotations) {

					PDFJS.AnnotationLayer.render({
						viewport: viewport.clone({ dontFlip: true }),
						div: annotationLayerElt,
						annotations: annotations,
						page: pdfPage,
						linkService: linkService,
						renderInteractiveForms: false
					});
				});

				var pdfRenderOperation =
				pdfRender.promise
				.then(function() {

					annotationLayerElt.style.visibility = '';
					canceling = false;
					pdfRender = null;
				})
				.catch(function(err) {

					pdfRender = null;
					if ( err instanceof PDFJS.RenderingCancelledException ) {

						canceling = false;
						this.renderPage(rotate);
						return;
					}
					emitEvent('error', err);
				}.bind(this))

				return Promise.all([getAnnotationsOperation, pdfRenderOperation]);
			}.bind(this));
		}


		this.forEachPage = function(pageCallback) {

			var numPages = pdfDoc.numPages;

			(function next(pageNum) {

				pdfDoc.getPage(pageNum)
				.then(pageCallback)
				.then(function() {

					if ( ++pageNum <= numPages )
						next(pageNum);
				})
			})(1);
		}


		this.loadPage = function(pageNumber, rotate) {

			pdfPage = null;

			if ( pdfDoc === null )
				return;

			pendingOperation = pendingOperation.then(function() {

				return pdfDoc.getPage(pageNumber);
			})
			.then(function(page) {

				pdfPage = page;
				this.renderPage(rotate);
				emitEvent('page-loaded', page.pageNumber);
			}.bind(this))
			.catch(function(err) {

				clearCanvas();
				clearAnnotations();
				emitEvent('error', err);
			});
		}

		this.loadDocument = function(src) {

			pdfDoc = null;
			pdfPage = null;

			emitEvent('num-pages', undefined);

			if ( !src ) {

				canvasElt.removeAttribute('width');
				canvasElt.removeAttribute('height');
				clearAnnotations();
				return;
			}

			// wait for pending operation ends
			pendingOperation = pendingOperation.then(function() {

				var loadingTask;
				if ( isPDFDocumentLoadingTask(src) ) {

					if ( src.destroyed ) {

						emitEvent('error', new Error('loadingTask has been destroyed'));
						return
					}

					loadingTask = src;
				} else {

					loadingTask = createLoadingTask(src, {
						onPassword: function(updatePassword, reason) {

							var reasonStr;
							switch (reason) {
								case PDFJS.PasswordResponses.NEED_PASSWORD:
									reasonStr = 'NEED_PASSWORD';
									break;
								case PDFJS.PasswordResponses.INCORRECT_PASSWORD:
									reasonStr = 'INCORRECT_PASSWORD';
									break;
							}
							emitEvent('password', updatePassword, reasonStr);
						},
						onProgress: function(status) {

							var ratio = status.loaded / status.total;
							emitEvent('progress', Math.min(ratio, 1));
						}
					});
				}

				return loadingTask.promise;
			})
			.then(function(pdf) {

				pdfDoc = pdf;
				emitEvent('num-pages', pdf.numPages);
				emitEvent('loaded');
			})
			.catch(function(err) {

				clearCanvas();
				clearAnnotations();
				emitEvent('error', err);
			})
		}

		annotationLayerElt.style.transformOrigin = '0 0';
	}

	return {
		createLoadingTask: createLoadingTask,
		PDFJSWrapper: PDFJSWrapper,
	}
});
/**
 * @licstart The following is the entire license notice for the
 * Javascript code in this page
 *
 * Copyright 2020 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * Javascript code in this page
 */

(function webpackUniversalModuleDefinition(root, factory) {
	if(true)
		module.exports = factory();
	else {}
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __w_pdfjs_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__w_pdfjs_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__w_pdfjs_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__w_pdfjs_require__.d = function(exports, name, getter) {
/******/ 		if(!__w_pdfjs_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__w_pdfjs_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__w_pdfjs_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __w_pdfjs_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__w_pdfjs_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __w_pdfjs_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__w_pdfjs_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__w_pdfjs_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__w_pdfjs_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "AnnotationLayerBuilder", {
  enumerable: true,
  get: function get() {
    return _annotation_layer_builder.AnnotationLayerBuilder;
  }
});
Object.defineProperty(exports, "DefaultAnnotationLayerFactory", {
  enumerable: true,
  get: function get() {
    return _annotation_layer_builder.DefaultAnnotationLayerFactory;
  }
});
Object.defineProperty(exports, "DefaultTextLayerFactory", {
  enumerable: true,
  get: function get() {
    return _text_layer_builder.DefaultTextLayerFactory;
  }
});
Object.defineProperty(exports, "TextLayerBuilder", {
  enumerable: true,
  get: function get() {
    return _text_layer_builder.TextLayerBuilder;
  }
});
Object.defineProperty(exports, "EventBus", {
  enumerable: true,
  get: function get() {
    return _ui_utils.EventBus;
  }
});
Object.defineProperty(exports, "NullL10n", {
  enumerable: true,
  get: function get() {
    return _ui_utils.NullL10n;
  }
});
Object.defineProperty(exports, "ProgressBar", {
  enumerable: true,
  get: function get() {
    return _ui_utils.ProgressBar;
  }
});
Object.defineProperty(exports, "PDFLinkService", {
  enumerable: true,
  get: function get() {
    return _pdf_link_service.PDFLinkService;
  }
});
Object.defineProperty(exports, "SimpleLinkService", {
  enumerable: true,
  get: function get() {
    return _pdf_link_service.SimpleLinkService;
  }
});
Object.defineProperty(exports, "DownloadManager", {
  enumerable: true,
  get: function get() {
    return _download_manager.DownloadManager;
  }
});
Object.defineProperty(exports, "GenericL10n", {
  enumerable: true,
  get: function get() {
    return _genericl10n.GenericL10n;
  }
});
Object.defineProperty(exports, "PDFFindController", {
  enumerable: true,
  get: function get() {
    return _pdf_find_controller.PDFFindController;
  }
});
Object.defineProperty(exports, "PDFHistory", {
  enumerable: true,
  get: function get() {
    return _pdf_history.PDFHistory;
  }
});
Object.defineProperty(exports, "PDFPageView", {
  enumerable: true,
  get: function get() {
    return _pdf_page_view.PDFPageView;
  }
});
Object.defineProperty(exports, "PDFSinglePageViewer", {
  enumerable: true,
  get: function get() {
    return _pdf_single_page_viewer.PDFSinglePageViewer;
  }
});
Object.defineProperty(exports, "PDFViewer", {
  enumerable: true,
  get: function get() {
    return _pdf_viewer.PDFViewer;
  }
});

var _annotation_layer_builder = __w_pdfjs_require__(1);

var _text_layer_builder = __w_pdfjs_require__(8);

var _ui_utils = __w_pdfjs_require__(3);

var _pdf_link_service = __w_pdfjs_require__(7);

var _download_manager = __w_pdfjs_require__(9);

var _genericl10n = __w_pdfjs_require__(11);

var _pdf_find_controller = __w_pdfjs_require__(13);

var _pdf_history = __w_pdfjs_require__(15);

var _pdf_page_view = __w_pdfjs_require__(16);

var _pdf_single_page_viewer = __w_pdfjs_require__(18);

var _pdf_viewer = __w_pdfjs_require__(20);

var pdfjsVersion = '2.6.347';
var pdfjsBuild = '3be9c65f';

/***/ }),
/* 1 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DefaultAnnotationLayerFactory = exports.AnnotationLayerBuilder = void 0;

var _pdfjsLib = __w_pdfjs_require__(2);

var _ui_utils = __w_pdfjs_require__(3);

var _pdf_link_service = __w_pdfjs_require__(7);

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var AnnotationLayerBuilder = /*#__PURE__*/function () {
  function AnnotationLayerBuilder(_ref) {
    var pageDiv = _ref.pageDiv,
        pdfPage = _ref.pdfPage,
        linkService = _ref.linkService,
        downloadManager = _ref.downloadManager,
        _ref$annotationStorag = _ref.annotationStorage,
        annotationStorage = _ref$annotationStorag === void 0 ? null : _ref$annotationStorag,
        _ref$imageResourcesPa = _ref.imageResourcesPath,
        imageResourcesPath = _ref$imageResourcesPa === void 0 ? "" : _ref$imageResourcesPa,
        _ref$renderInteractiv = _ref.renderInteractiveForms,
        renderInteractiveForms = _ref$renderInteractiv === void 0 ? true : _ref$renderInteractiv,
        _ref$l10n = _ref.l10n,
        l10n = _ref$l10n === void 0 ? _ui_utils.NullL10n : _ref$l10n;

    _classCallCheck(this, AnnotationLayerBuilder);

    this.pageDiv = pageDiv;
    this.pdfPage = pdfPage;
    this.linkService = linkService;
    this.downloadManager = downloadManager;
    this.imageResourcesPath = imageResourcesPath;
    this.renderInteractiveForms = renderInteractiveForms;
    this.l10n = l10n;
    this.annotationStorage = annotationStorage;
    this.div = null;
    this._cancelled = false;
  }

  _createClass(AnnotationLayerBuilder, [{
    key: "render",
    value: function render(viewport) {
      var _this = this;

      var intent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "display";
      return this.pdfPage.getAnnotations({
        intent: intent
      }).then(function (annotations) {
        if (_this._cancelled) {
          return;
        }

        if (annotations.length === 0) {
          return;
        }

        var parameters = {
          viewport: viewport.clone({
            dontFlip: true
          }),
          div: _this.div,
          annotations: annotations,
          page: _this.pdfPage,
          imageResourcesPath: _this.imageResourcesPath,
          renderInteractiveForms: _this.renderInteractiveForms,
          linkService: _this.linkService,
          downloadManager: _this.downloadManager,
          annotationStorage: _this.annotationStorage
        };

        if (_this.div) {
          _pdfjsLib.AnnotationLayer.update(parameters);
        } else {
          _this.div = document.createElement("div");
          _this.div.className = "annotationLayer";

          _this.pageDiv.appendChild(_this.div);

          parameters.div = _this.div;

          _pdfjsLib.AnnotationLayer.render(parameters);

          _this.l10n.translate(_this.div);
        }
      });
    }
  }, {
    key: "cancel",
    value: function cancel() {
      this._cancelled = true;
    }
  }, {
    key: "hide",
    value: function hide() {
      if (!this.div) {
        return;
      }

      this.div.setAttribute("hidden", "true");
    }
  }]);

  return AnnotationLayerBuilder;
}();

exports.AnnotationLayerBuilder = AnnotationLayerBuilder;

var DefaultAnnotationLayerFactory = /*#__PURE__*/function () {
  function DefaultAnnotationLayerFactory() {
    _classCallCheck(this, DefaultAnnotationLayerFactory);
  }

  _createClass(DefaultAnnotationLayerFactory, [{
    key: "createAnnotationLayerBuilder",
    value: function createAnnotationLayerBuilder(pageDiv, pdfPage) {
      var annotationStorage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
      var imageResourcesPath = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "";
      var renderInteractiveForms = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
      var l10n = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _ui_utils.NullL10n;
      return new AnnotationLayerBuilder({
        pageDiv: pageDiv,
        pdfPage: pdfPage,
        imageResourcesPath: imageResourcesPath,
        renderInteractiveForms: renderInteractiveForms,
        linkService: new _pdf_link_service.SimpleLinkService(),
        l10n: l10n,
        annotationStorage: annotationStorage
      });
    }
  }]);

  return DefaultAnnotationLayerFactory;
}();

exports.DefaultAnnotationLayerFactory = DefaultAnnotationLayerFactory;

/***/ }),
/* 2 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


var pdfjsLib;

if (typeof window !== "undefined" && window["pdfjs-dist/build/pdf"]) {
  pdfjsLib = window["pdfjs-dist/build/pdf"];
} else {
  pdfjsLib = __webpack_require__(1612);
}

module.exports = pdfjsLib;

/***/ }),
/* 3 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isValidRotation = isValidRotation;
exports.isValidScrollMode = isValidScrollMode;
exports.isValidSpreadMode = isValidSpreadMode;
exports.isPortraitOrientation = isPortraitOrientation;
exports.clamp = clamp;
exports.getPDFFileNameFromURL = getPDFFileNameFromURL;
exports.noContextMenuHandler = noContextMenuHandler;
exports.parseQueryString = parseQueryString;
exports.backtrackBeforeAllVisibleElements = backtrackBeforeAllVisibleElements;
exports.getVisibleElements = getVisibleElements;
exports.roundToDivide = roundToDivide;
exports.getPageSizeInches = getPageSizeInches;
exports.approximateFraction = approximateFraction;
exports.getOutputScale = getOutputScale;
exports.scrollIntoView = scrollIntoView;
exports.watchScroll = watchScroll;
exports.binarySearchFirstItem = binarySearchFirstItem;
exports.normalizeWheelEventDirection = normalizeWheelEventDirection;
exports.normalizeWheelEventDelta = normalizeWheelEventDelta;
exports.waitOnEventOrTimeout = waitOnEventOrTimeout;
exports.moveToEndOfArray = moveToEndOfArray;
exports.WaitOnType = exports.animationStarted = exports.ProgressBar = exports.EventBus = exports.NullL10n = exports.SpreadMode = exports.ScrollMode = exports.TextLayerMode = exports.RendererType = exports.PresentationModeState = exports.VERTICAL_PADDING = exports.SCROLLBAR_PADDING = exports.MAX_AUTO_SCALE = exports.UNKNOWN_SCALE = exports.MAX_SCALE = exports.MIN_SCALE = exports.DEFAULT_SCALE = exports.DEFAULT_SCALE_VALUE = exports.CSS_UNITS = exports.AutoPrintRegExp = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(4));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

var CSS_UNITS = 96.0 / 72.0;
exports.CSS_UNITS = CSS_UNITS;
var DEFAULT_SCALE_VALUE = "auto";
exports.DEFAULT_SCALE_VALUE = DEFAULT_SCALE_VALUE;
var DEFAULT_SCALE = 1.0;
exports.DEFAULT_SCALE = DEFAULT_SCALE;
var MIN_SCALE = 0.1;
exports.MIN_SCALE = MIN_SCALE;
var MAX_SCALE = 10.0;
exports.MAX_SCALE = MAX_SCALE;
var UNKNOWN_SCALE = 0;
exports.UNKNOWN_SCALE = UNKNOWN_SCALE;
var MAX_AUTO_SCALE = 1.25;
exports.MAX_AUTO_SCALE = MAX_AUTO_SCALE;
var SCROLLBAR_PADDING = 40;
exports.SCROLLBAR_PADDING = SCROLLBAR_PADDING;
var VERTICAL_PADDING = 5;
exports.VERTICAL_PADDING = VERTICAL_PADDING;
var PresentationModeState = {
  UNKNOWN: 0,
  NORMAL: 1,
  CHANGING: 2,
  FULLSCREEN: 3
};
exports.PresentationModeState = PresentationModeState;
var RendererType = {
  CANVAS: "canvas",
  SVG: "svg"
};
exports.RendererType = RendererType;
var TextLayerMode = {
  DISABLE: 0,
  ENABLE: 1,
  ENABLE_ENHANCE: 2
};
exports.TextLayerMode = TextLayerMode;
var ScrollMode = {
  UNKNOWN: -1,
  VERTICAL: 0,
  HORIZONTAL: 1,
  WRAPPED: 2
};
exports.ScrollMode = ScrollMode;
var SpreadMode = {
  UNKNOWN: -1,
  NONE: 0,
  ODD: 1,
  EVEN: 2
};
exports.SpreadMode = SpreadMode;
var AutoPrintRegExp = /\bprint\s*\(/;
exports.AutoPrintRegExp = AutoPrintRegExp;

function formatL10nValue(text, args) {
  if (!args) {
    return text;
  }

  return text.replace(/\{\{\s*(\w+)\s*\}\}/g, function (all, name) {
    return name in args ? args[name] : "{{" + name + "}}";
  });
}

var NullL10n = {
  getLanguage: function getLanguage() {
    return _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
      return _regenerator["default"].wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              return _context.abrupt("return", "en-us");

            case 1:
            case "end":
              return _context.stop();
          }
        }
      }, _callee);
    }))();
  },
  getDirection: function getDirection() {
    return _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
      return _regenerator["default"].wrap(function _callee2$(_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              return _context2.abrupt("return", "ltr");

            case 1:
            case "end":
              return _context2.stop();
          }
        }
      }, _callee2);
    }))();
  },
  get: function get(property, args, fallback) {
    return _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
      return _regenerator["default"].wrap(function _callee3$(_context3) {
        while (1) {
          switch (_context3.prev = _context3.next) {
            case 0:
              return _context3.abrupt("return", formatL10nValue(fallback, args));

            case 1:
            case "end":
              return _context3.stop();
          }
        }
      }, _callee3);
    }))();
  },
  translate: function translate(element) {
    return _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
      return _regenerator["default"].wrap(function _callee4$(_context4) {
        while (1) {
          switch (_context4.prev = _context4.next) {
            case 0:
            case "end":
              return _context4.stop();
          }
        }
      }, _callee4);
    }))();
  }
};
exports.NullL10n = NullL10n;

function getOutputScale(ctx) {
  var devicePixelRatio = window.devicePixelRatio || 1;
  var backingStoreRatio = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1;
  var pixelRatio = devicePixelRatio / backingStoreRatio;
  return {
    sx: pixelRatio,
    sy: pixelRatio,
    scaled: pixelRatio !== 1
  };
}

function scrollIntoView(element, spot) {
  var skipOverflowHiddenElements = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  var parent = element.offsetParent;

  if (!parent) {
    console.error("offsetParent is not set -- cannot scroll");
    return;
  }

  var offsetY = element.offsetTop + element.clientTop;
  var offsetX = element.offsetLeft + element.clientLeft;

  while (parent.clientHeight === parent.scrollHeight && parent.clientWidth === parent.scrollWidth || skipOverflowHiddenElements && getComputedStyle(parent).overflow === "hidden") {
    if (parent.dataset._scaleY) {
      offsetY /= parent.dataset._scaleY;
      offsetX /= parent.dataset._scaleX;
    }

    offsetY += parent.offsetTop;
    offsetX += parent.offsetLeft;
    parent = parent.offsetParent;

    if (!parent) {
      return;
    }
  }

  if (spot) {
    if (spot.top !== undefined) {
      offsetY += spot.top;
    }

    if (spot.left !== undefined) {
      offsetX += spot.left;
      parent.scrollLeft = offsetX;
    }
  }

  parent.scrollTop = offsetY;
}

function watchScroll(viewAreaElement, callback) {
  var debounceScroll = function debounceScroll(evt) {
    if (rAF) {
      return;
    }

    rAF = window.requestAnimationFrame(function viewAreaElementScrolled() {
      rAF = null;
      var currentX = viewAreaElement.scrollLeft;
      var lastX = state.lastX;

      if (currentX !== lastX) {
        state.right = currentX > lastX;
      }

      state.lastX = currentX;
      var currentY = viewAreaElement.scrollTop;
      var lastY = state.lastY;

      if (currentY !== lastY) {
        state.down = currentY > lastY;
      }

      state.lastY = currentY;
      callback(state);
    });
  };

  var state = {
    right: true,
    down: true,
    lastX: viewAreaElement.scrollLeft,
    lastY: viewAreaElement.scrollTop,
    _eventHandler: debounceScroll
  };
  var rAF = null;
  viewAreaElement.addEventListener("scroll", debounceScroll, true);
  return state;
}

function parseQueryString(query) {
  var parts = query.split("&");
  var params = Object.create(null);

  for (var i = 0, ii = parts.length; i < ii; ++i) {
    var param = parts[i].split("=");
    var key = param[0].toLowerCase();
    var value = param.length > 1 ? param[1] : null;
    params[decodeURIComponent(key)] = decodeURIComponent(value);
  }

  return params;
}

function binarySearchFirstItem(items, condition) {
  var minIndex = 0;
  var maxIndex = items.length - 1;

  if (maxIndex < 0 || !condition(items[maxIndex])) {
    return items.length;
  }

  if (condition(items[minIndex])) {
    return minIndex;
  }

  while (minIndex < maxIndex) {
    var currentIndex = minIndex + maxIndex >> 1;
    var currentItem = items[currentIndex];

    if (condition(currentItem)) {
      maxIndex = currentIndex;
    } else {
      minIndex = currentIndex + 1;
    }
  }

  return minIndex;
}

function approximateFraction(x) {
  if (Math.floor(x) === x) {
    return [x, 1];
  }

  var xinv = 1 / x;
  var limit = 8;

  if (xinv > limit) {
    return [1, limit];
  } else if (Math.floor(xinv) === xinv) {
    return [1, xinv];
  }

  var x_ = x > 1 ? xinv : x;
  var a = 0,
      b = 1,
      c = 1,
      d = 1;

  while (true) {
    var p = a + c,
        q = b + d;

    if (q > limit) {
      break;
    }

    if (x_ <= p / q) {
      c = p;
      d = q;
    } else {
      a = p;
      b = q;
    }
  }

  var result;

  if (x_ - a / b < c / d - x_) {
    result = x_ === x ? [a, b] : [b, a];
  } else {
    result = x_ === x ? [c, d] : [d, c];
  }

  return result;
}

function roundToDivide(x, div) {
  var r = x % div;
  return r === 0 ? x : Math.round(x - r + div);
}

function getPageSizeInches(_ref) {
  var view = _ref.view,
      userUnit = _ref.userUnit,
      rotate = _ref.rotate;

  var _view = _slicedToArray(view, 4),
      x1 = _view[0],
      y1 = _view[1],
      x2 = _view[2],
      y2 = _view[3];

  var changeOrientation = rotate % 180 !== 0;
  var width = (x2 - x1) / 72 * userUnit;
  var height = (y2 - y1) / 72 * userUnit;
  return {
    width: changeOrientation ? height : width,
    height: changeOrientation ? width : height
  };
}

function backtrackBeforeAllVisibleElements(index, views, top) {
  if (index < 2) {
    return index;
  }

  var elt = views[index].div;
  var pageTop = elt.offsetTop + elt.clientTop;

  if (pageTop >= top) {
    elt = views[index - 1].div;
    pageTop = elt.offsetTop + elt.clientTop;
  }

  for (var i = index - 2; i >= 0; --i) {
    elt = views[i].div;

    if (elt.offsetTop + elt.clientTop + elt.clientHeight <= pageTop) {
      break;
    }

    index = i;
  }

  return index;
}

function getVisibleElements(scrollEl, views) {
  var sortByVisibility = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  var horizontal = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  var top = scrollEl.scrollTop,
      bottom = top + scrollEl.clientHeight;
  var left = scrollEl.scrollLeft,
      right = left + scrollEl.clientWidth;

  function isElementBottomAfterViewTop(view) {
    var element = view.div;
    var elementBottom = element.offsetTop + element.clientTop + element.clientHeight;
    return elementBottom > top;
  }

  function isElementRightAfterViewLeft(view) {
    var element = view.div;
    var elementRight = element.offsetLeft + element.clientLeft + element.clientWidth;
    return elementRight > left;
  }

  var visible = [],
      numViews = views.length;
  var firstVisibleElementInd = numViews === 0 ? 0 : binarySearchFirstItem(views, horizontal ? isElementRightAfterViewLeft : isElementBottomAfterViewTop);

  if (firstVisibleElementInd > 0 && firstVisibleElementInd < numViews && !horizontal) {
    firstVisibleElementInd = backtrackBeforeAllVisibleElements(firstVisibleElementInd, views, top);
  }

  var lastEdge = horizontal ? right : -1;

  for (var i = firstVisibleElementInd; i < numViews; i++) {
    var view = views[i],
        element = view.div;
    var currentWidth = element.offsetLeft + element.clientLeft;
    var currentHeight = element.offsetTop + element.clientTop;
    var viewWidth = element.clientWidth,
        viewHeight = element.clientHeight;
    var viewRight = currentWidth + viewWidth;
    var viewBottom = currentHeight + viewHeight;

    if (lastEdge === -1) {
      if (viewBottom >= bottom) {
        lastEdge = viewBottom;
      }
    } else if ((horizontal ? currentWidth : currentHeight) > lastEdge) {
      break;
    }

    if (viewBottom <= top || currentHeight >= bottom || viewRight <= left || currentWidth >= right) {
      continue;
    }

    var hiddenHeight = Math.max(0, top - currentHeight) + Math.max(0, viewBottom - bottom);
    var hiddenWidth = Math.max(0, left - currentWidth) + Math.max(0, viewRight - right);
    var percent = (viewHeight - hiddenHeight) * (viewWidth - hiddenWidth) * 100 / viewHeight / viewWidth | 0;
    visible.push({
      id: view.id,
      x: currentWidth,
      y: currentHeight,
      view: view,
      percent: percent
    });
  }

  var first = visible[0],
      last = visible[visible.length - 1];

  if (sortByVisibility) {
    visible.sort(function (a, b) {
      var pc = a.percent - b.percent;

      if (Math.abs(pc) > 0.001) {
        return -pc;
      }

      return a.id - b.id;
    });
  }

  return {
    first: first,
    last: last,
    views: visible
  };
}

function noContextMenuHandler(evt) {
  evt.preventDefault();
}

function isDataSchema(url) {
  var i = 0;
  var ii = url.length;

  while (i < ii && url[i].trim() === "") {
    i++;
  }

  return url.substring(i, i + 5).toLowerCase() === "data:";
}

function getPDFFileNameFromURL(url) {
  var defaultFilename = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "document.pdf";

  if (typeof url !== "string") {
    return defaultFilename;
  }

  if (isDataSchema(url)) {
    console.warn("getPDFFileNameFromURL: " + 'ignoring "data:" URL for performance reasons.');
    return defaultFilename;
  }

  var reURI = /^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/;
  var reFilename = /[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i;
  var splitURI = reURI.exec(url);
  var suggestedFilename = reFilename.exec(splitURI[1]) || reFilename.exec(splitURI[2]) || reFilename.exec(splitURI[3]);

  if (suggestedFilename) {
    suggestedFilename = suggestedFilename[0];

    if (suggestedFilename.includes("%")) {
      try {
        suggestedFilename = reFilename.exec(decodeURIComponent(suggestedFilename))[0];
      } catch (ex) {}
    }
  }

  return suggestedFilename || defaultFilename;
}

function normalizeWheelEventDirection(evt) {
  var delta = Math.sqrt(evt.deltaX * evt.deltaX + evt.deltaY * evt.deltaY);
  var angle = Math.atan2(evt.deltaY, evt.deltaX);

  if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) {
    delta = -delta;
  }

  return delta;
}

function normalizeWheelEventDelta(evt) {
  var delta = normalizeWheelEventDirection(evt);
  var MOUSE_DOM_DELTA_PIXEL_MODE = 0;
  var MOUSE_DOM_DELTA_LINE_MODE = 1;
  var MOUSE_PIXELS_PER_LINE = 30;
  var MOUSE_LINES_PER_PAGE = 30;

  if (evt.deltaMode === MOUSE_DOM_DELTA_PIXEL_MODE) {
    delta /= MOUSE_PIXELS_PER_LINE * MOUSE_LINES_PER_PAGE;
  } else if (evt.deltaMode === MOUSE_DOM_DELTA_LINE_MODE) {
    delta /= MOUSE_LINES_PER_PAGE;
  }

  return delta;
}

function isValidRotation(angle) {
  return Number.isInteger(angle) && angle % 90 === 0;
}

function isValidScrollMode(mode) {
  return Number.isInteger(mode) && Object.values(ScrollMode).includes(mode) && mode !== ScrollMode.UNKNOWN;
}

function isValidSpreadMode(mode) {
  return Number.isInteger(mode) && Object.values(SpreadMode).includes(mode) && mode !== SpreadMode.UNKNOWN;
}

function isPortraitOrientation(size) {
  return size.width <= size.height;
}

var WaitOnType = {
  EVENT: "event",
  TIMEOUT: "timeout"
};
exports.WaitOnType = WaitOnType;

function waitOnEventOrTimeout(_ref2) {
  var target = _ref2.target,
      name = _ref2.name,
      _ref2$delay = _ref2.delay,
      delay = _ref2$delay === void 0 ? 0 : _ref2$delay;
  return new Promise(function (resolve, reject) {
    if (_typeof(target) !== "object" || !(name && typeof name === "string") || !(Number.isInteger(delay) && delay >= 0)) {
      throw new Error("waitOnEventOrTimeout - invalid parameters.");
    }

    function handler(type) {
      if (target instanceof EventBus) {
        target._off(name, eventHandler);
      } else {
        target.removeEventListener(name, eventHandler);
      }

      if (timeout) {
        clearTimeout(timeout);
      }

      resolve(type);
    }

    var eventHandler = handler.bind(null, WaitOnType.EVENT);

    if (target instanceof EventBus) {
      target._on(name, eventHandler);
    } else {
      target.addEventListener(name, eventHandler);
    }

    var timeoutHandler = handler.bind(null, WaitOnType.TIMEOUT);
    var timeout = setTimeout(timeoutHandler, delay);
  });
}

var animationStarted = new Promise(function (resolve) {
  window.requestAnimationFrame(resolve);
});
exports.animationStarted = animationStarted;

function dispatchDOMEvent(eventName) {
  var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  throw new Error("Not implemented: dispatchDOMEvent");
}

var EventBus = /*#__PURE__*/function () {
  function EventBus(options) {
    _classCallCheck(this, EventBus);

    this._listeners = Object.create(null);
  }

  _createClass(EventBus, [{
    key: "on",
    value: function on(eventName, listener) {
      this._on(eventName, listener, {
        external: true
      });
    }
  }, {
    key: "off",
    value: function off(eventName, listener) {
      this._off(eventName, listener, {
        external: true
      });
    }
  }, {
    key: "dispatch",
    value: function dispatch(eventName) {
      var eventListeners = this._listeners[eventName];

      if (!eventListeners || eventListeners.length === 0) {
        return;
      }

      var args = Array.prototype.slice.call(arguments, 1);
      var externalListeners;
      eventListeners.slice(0).forEach(function (_ref3) {
        var listener = _ref3.listener,
            external = _ref3.external;

        if (external) {
          if (!externalListeners) {
            externalListeners = [];
          }

          externalListeners.push(listener);
          return;
        }

        listener.apply(null, args);
      });

      if (externalListeners) {
        externalListeners.forEach(function (listener) {
          listener.apply(null, args);
        });
        externalListeners = null;
      }
    }
  }, {
    key: "_on",
    value: function _on(eventName, listener) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
      var eventListeners = this._listeners[eventName];

      if (!eventListeners) {
        this._listeners[eventName] = eventListeners = [];
      }

      eventListeners.push({
        listener: listener,
        external: (options && options.external) === true
      });
    }
  }, {
    key: "_off",
    value: function _off(eventName, listener) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
      var eventListeners = this._listeners[eventName];

      if (!eventListeners) {
        return;
      }

      for (var i = 0, ii = eventListeners.length; i < ii; i++) {
        if (eventListeners[i].listener === listener) {
          eventListeners.splice(i, 1);
          return;
        }
      }
    }
  }]);

  return EventBus;
}();

exports.EventBus = EventBus;

function clamp(v, min, max) {
  return Math.min(Math.max(v, min), max);
}

var ProgressBar = /*#__PURE__*/function () {
  function ProgressBar(id) {
    var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
        height = _ref4.height,
        width = _ref4.width,
        units = _ref4.units;

    _classCallCheck(this, ProgressBar);

    this.visible = true;
    this.div = document.querySelector(id + " .progress");
    this.bar = this.div.parentNode;
    this.height = height || 100;
    this.width = width || 100;
    this.units = units || "%";
    this.div.style.height = this.height + this.units;
    this.percent = 0;
  }

  _createClass(ProgressBar, [{
    key: "_updateBar",
    value: function _updateBar() {
      if (this._indeterminate) {
        this.div.classList.add("indeterminate");
        this.div.style.width = this.width + this.units;
        return;
      }

      this.div.classList.remove("indeterminate");
      var progressSize = this.width * this._percent / 100;
      this.div.style.width = progressSize + this.units;
    }
  }, {
    key: "setWidth",
    value: function setWidth(viewer) {
      if (!viewer) {
        return;
      }

      var container = viewer.parentNode;
      var scrollbarWidth = container.offsetWidth - viewer.offsetWidth;

      if (scrollbarWidth > 0) {
        this.bar.style.width = "calc(100% - ".concat(scrollbarWidth, "px)");
      }
    }
  }, {
    key: "hide",
    value: function hide() {
      if (!this.visible) {
        return;
      }

      this.visible = false;
      this.bar.classList.add("hidden");
      document.body.classList.remove("loadingInProgress");
    }
  }, {
    key: "show",
    value: function show() {
      if (this.visible) {
        return;
      }

      this.visible = true;
      document.body.classList.add("loadingInProgress");
      this.bar.classList.remove("hidden");
    }
  }, {
    key: "percent",
    get: function get() {
      return this._percent;
    },
    set: function set(val) {
      this._indeterminate = isNaN(val);
      this._percent = clamp(val, 0, 100);

      this._updateBar();
    }
  }]);

  return ProgressBar;
}();

exports.ProgressBar = ProgressBar;

function moveToEndOfArray(arr, condition) {
  var moved = [],
      len = arr.length;
  var write = 0;

  for (var read = 0; read < len; ++read) {
    if (condition(arr[read])) {
      moved.push(arr[read]);
    } else {
      arr[write] = arr[read];
      ++write;
    }
  }

  for (var _read = 0; write < len; ++_read, ++write) {
    arr[write] = moved[_read];
  }
}

/***/ }),
/* 4 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


module.exports = __w_pdfjs_require__(5);

/***/ }),
/* 5 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var runtime = function (exports) {
  "use strict";

  var Op = Object.prototype;
  var hasOwn = Op.hasOwnProperty;
  var undefined;
  var $Symbol = typeof Symbol === "function" ? Symbol : {};
  var iteratorSymbol = $Symbol.iterator || "@@iterator";
  var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";

  function define(obj, key, value) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
    return obj[key];
  }

  try {
    define({}, "");
  } catch (err) {
    define = function define(obj, key, value) {
      return obj[key] = value;
    };
  }

  function wrap(innerFn, outerFn, self, tryLocsList) {
    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
    var generator = Object.create(protoGenerator.prototype);
    var context = new Context(tryLocsList || []);
    generator._invoke = makeInvokeMethod(innerFn, self, context);
    return generator;
  }

  exports.wrap = wrap;

  function tryCatch(fn, obj, arg) {
    try {
      return {
        type: "normal",
        arg: fn.call(obj, arg)
      };
    } catch (err) {
      return {
        type: "throw",
        arg: err
      };
    }
  }

  var GenStateSuspendedStart = "suspendedStart";
  var GenStateSuspendedYield = "suspendedYield";
  var GenStateExecuting = "executing";
  var GenStateCompleted = "completed";
  var ContinueSentinel = {};

  function Generator() {}

  function GeneratorFunction() {}

  function GeneratorFunctionPrototype() {}

  var IteratorPrototype = {};

  IteratorPrototype[iteratorSymbol] = function () {
    return this;
  };

  var getProto = Object.getPrototypeOf;
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));

  if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
    IteratorPrototype = NativeIteratorPrototype;
  }

  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  GeneratorFunctionPrototype.constructor = GeneratorFunction;
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");

  function defineIteratorMethods(prototype) {
    ["next", "throw", "return"].forEach(function (method) {
      define(prototype, method, function (arg) {
        return this._invoke(method, arg);
      });
    });
  }

  exports.isGeneratorFunction = function (genFun) {
    var ctor = typeof genFun === "function" && genFun.constructor;
    return ctor ? ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction" : false;
  };

  exports.mark = function (genFun) {
    if (Object.setPrototypeOf) {
      Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
    } else {
      genFun.__proto__ = GeneratorFunctionPrototype;
      define(genFun, toStringTagSymbol, "GeneratorFunction");
    }

    genFun.prototype = Object.create(Gp);
    return genFun;
  };

  exports.awrap = function (arg) {
    return {
      __await: arg
    };
  };

  function AsyncIterator(generator, PromiseImpl) {
    function invoke(method, arg, resolve, reject) {
      var record = tryCatch(generator[method], generator, arg);

      if (record.type === "throw") {
        reject(record.arg);
      } else {
        var result = record.arg;
        var value = result.value;

        if (value && _typeof(value) === "object" && hasOwn.call(value, "__await")) {
          return PromiseImpl.resolve(value.__await).then(function (value) {
            invoke("next", value, resolve, reject);
          }, function (err) {
            invoke("throw", err, resolve, reject);
          });
        }

        return PromiseImpl.resolve(value).then(function (unwrapped) {
          result.value = unwrapped;
          resolve(result);
        }, function (error) {
          return invoke("throw", error, resolve, reject);
        });
      }
    }

    var previousPromise;

    function enqueue(method, arg) {
      function callInvokeWithMethodAndArg() {
        return new PromiseImpl(function (resolve, reject) {
          invoke(method, arg, resolve, reject);
        });
      }

      return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
    }

    this._invoke = enqueue;
  }

  defineIteratorMethods(AsyncIterator.prototype);

  AsyncIterator.prototype[asyncIteratorSymbol] = function () {
    return this;
  };

  exports.AsyncIterator = AsyncIterator;

  exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
    if (PromiseImpl === void 0) PromiseImpl = Promise;
    var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
    return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
      return result.done ? result.value : iter.next();
    });
  };

  function makeInvokeMethod(innerFn, self, context) {
    var state = GenStateSuspendedStart;
    return function invoke(method, arg) {
      if (state === GenStateExecuting) {
        throw new Error("Generator is already running");
      }

      if (state === GenStateCompleted) {
        if (method === "throw") {
          throw arg;
        }

        return doneResult();
      }

      context.method = method;
      context.arg = arg;

      while (true) {
        var delegate = context.delegate;

        if (delegate) {
          var delegateResult = maybeInvokeDelegate(delegate, context);

          if (delegateResult) {
            if (delegateResult === ContinueSentinel) continue;
            return delegateResult;
          }
        }

        if (context.method === "next") {
          context.sent = context._sent = context.arg;
        } else if (context.method === "throw") {
          if (state === GenStateSuspendedStart) {
            state = GenStateCompleted;
            throw context.arg;
          }

          context.dispatchException(context.arg);
        } else if (context.method === "return") {
          context.abrupt("return", context.arg);
        }

        state = GenStateExecuting;
        var record = tryCatch(innerFn, self, context);

        if (record.type === "normal") {
          state = context.done ? GenStateCompleted : GenStateSuspendedYield;

          if (record.arg === ContinueSentinel) {
            continue;
          }

          return {
            value: record.arg,
            done: context.done
          };
        } else if (record.type === "throw") {
          state = GenStateCompleted;
          context.method = "throw";
          context.arg = record.arg;
        }
      }
    };
  }

  function maybeInvokeDelegate(delegate, context) {
    var method = delegate.iterator[context.method];

    if (method === undefined) {
      context.delegate = null;

      if (context.method === "throw") {
        if (delegate.iterator["return"]) {
          context.method = "return";
          context.arg = undefined;
          maybeInvokeDelegate(delegate, context);

          if (context.method === "throw") {
            return ContinueSentinel;
          }
        }

        context.method = "throw";
        context.arg = new TypeError("The iterator does not provide a 'throw' method");
      }

      return ContinueSentinel;
    }

    var record = tryCatch(method, delegate.iterator, context.arg);

    if (record.type === "throw") {
      context.method = "throw";
      context.arg = record.arg;
      context.delegate = null;
      return ContinueSentinel;
    }

    var info = record.arg;

    if (!info) {
      context.method = "throw";
      context.arg = new TypeError("iterator result is not an object");
      context.delegate = null;
      return ContinueSentinel;
    }

    if (info.done) {
      context[delegate.resultName] = info.value;
      context.next = delegate.nextLoc;

      if (context.method !== "return") {
        context.method = "next";
        context.arg = undefined;
      }
    } else {
      return info;
    }

    context.delegate = null;
    return ContinueSentinel;
  }

  defineIteratorMethods(Gp);
  define(Gp, toStringTagSymbol, "Generator");

  Gp[iteratorSymbol] = function () {
    return this;
  };

  Gp.toString = function () {
    return "[object Generator]";
  };

  function pushTryEntry(locs) {
    var entry = {
      tryLoc: locs[0]
    };

    if (1 in locs) {
      entry.catchLoc = locs[1];
    }

    if (2 in locs) {
      entry.finallyLoc = locs[2];
      entry.afterLoc = locs[3];
    }

    this.tryEntries.push(entry);
  }

  function resetTryEntry(entry) {
    var record = entry.completion || {};
    record.type = "normal";
    delete record.arg;
    entry.completion = record;
  }

  function Context(tryLocsList) {
    this.tryEntries = [{
      tryLoc: "root"
    }];
    tryLocsList.forEach(pushTryEntry, this);
    this.reset(true);
  }

  exports.keys = function (object) {
    var keys = [];

    for (var key in object) {
      keys.push(key);
    }

    keys.reverse();
    return function next() {
      while (keys.length) {
        var key = keys.pop();

        if (key in object) {
          next.value = key;
          next.done = false;
          return next;
        }
      }

      next.done = true;
      return next;
    };
  };

  function values(iterable) {
    if (iterable) {
      var iteratorMethod = iterable[iteratorSymbol];

      if (iteratorMethod) {
        return iteratorMethod.call(iterable);
      }

      if (typeof iterable.next === "function") {
        return iterable;
      }

      if (!isNaN(iterable.length)) {
        var i = -1,
            next = function next() {
          while (++i < iterable.length) {
            if (hasOwn.call(iterable, i)) {
              next.value = iterable[i];
              next.done = false;
              return next;
            }
          }

          next.value = undefined;
          next.done = true;
          return next;
        };

        return next.next = next;
      }
    }

    return {
      next: doneResult
    };
  }

  exports.values = values;

  function doneResult() {
    return {
      value: undefined,
      done: true
    };
  }

  Context.prototype = {
    constructor: Context,
    reset: function reset(skipTempReset) {
      this.prev = 0;
      this.next = 0;
      this.sent = this._sent = undefined;
      this.done = false;
      this.delegate = null;
      this.method = "next";
      this.arg = undefined;
      this.tryEntries.forEach(resetTryEntry);

      if (!skipTempReset) {
        for (var name in this) {
          if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
            this[name] = undefined;
          }
        }
      }
    },
    stop: function stop() {
      this.done = true;
      var rootEntry = this.tryEntries[0];
      var rootRecord = rootEntry.completion;

      if (rootRecord.type === "throw") {
        throw rootRecord.arg;
      }

      return this.rval;
    },
    dispatchException: function dispatchException(exception) {
      if (this.done) {
        throw exception;
      }

      var context = this;

      function handle(loc, caught) {
        record.type = "throw";
        record.arg = exception;
        context.next = loc;

        if (caught) {
          context.method = "next";
          context.arg = undefined;
        }

        return !!caught;
      }

      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        var record = entry.completion;

        if (entry.tryLoc === "root") {
          return handle("end");
        }

        if (entry.tryLoc <= this.prev) {
          var hasCatch = hasOwn.call(entry, "catchLoc");
          var hasFinally = hasOwn.call(entry, "finallyLoc");

          if (hasCatch && hasFinally) {
            if (this.prev < entry.catchLoc) {
              return handle(entry.catchLoc, true);
            } else if (this.prev < entry.finallyLoc) {
              return handle(entry.finallyLoc);
            }
          } else if (hasCatch) {
            if (this.prev < entry.catchLoc) {
              return handle(entry.catchLoc, true);
            }
          } else if (hasFinally) {
            if (this.prev < entry.finallyLoc) {
              return handle(entry.finallyLoc);
            }
          } else {
            throw new Error("try statement without catch or finally");
          }
        }
      }
    },
    abrupt: function abrupt(type, arg) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];

        if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
          var finallyEntry = entry;
          break;
        }
      }

      if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
        finallyEntry = null;
      }

      var record = finallyEntry ? finallyEntry.completion : {};
      record.type = type;
      record.arg = arg;

      if (finallyEntry) {
        this.method = "next";
        this.next = finallyEntry.finallyLoc;
        return ContinueSentinel;
      }

      return this.complete(record);
    },
    complete: function complete(record, afterLoc) {
      if (record.type === "throw") {
        throw record.arg;
      }

      if (record.type === "break" || record.type === "continue") {
        this.next = record.arg;
      } else if (record.type === "return") {
        this.rval = this.arg = record.arg;
        this.method = "return";
        this.next = "end";
      } else if (record.type === "normal" && afterLoc) {
        this.next = afterLoc;
      }

      return ContinueSentinel;
    },
    finish: function finish(finallyLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];

        if (entry.finallyLoc === finallyLoc) {
          this.complete(entry.completion, entry.afterLoc);
          resetTryEntry(entry);
          return ContinueSentinel;
        }
      }
    },
    "catch": function _catch(tryLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];

        if (entry.tryLoc === tryLoc) {
          var record = entry.completion;

          if (record.type === "throw") {
            var thrown = record.arg;
            resetTryEntry(entry);
          }

          return thrown;
        }
      }

      throw new Error("illegal catch attempt");
    },
    delegateYield: function delegateYield(iterable, resultName, nextLoc) {
      this.delegate = {
        iterator: values(iterable),
        resultName: resultName,
        nextLoc: nextLoc
      };

      if (this.method === "next") {
        this.arg = undefined;
      }

      return ContinueSentinel;
    }
  };
  return exports;
}(( false ? undefined : _typeof(module)) === "object" ? module.exports : {});

try {
  regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
  Function("r", "regeneratorRuntime = r")(runtime);
}
/* WEBPACK VAR INJECTION */}.call(this, __w_pdfjs_require__(6)(module)))

/***/ }),
/* 6 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


module.exports = function (module) {
  if (!module.webpackPolyfill) {
    module.deprecate = function () {};

    module.paths = [];
    if (!module.children) module.children = [];
    Object.defineProperty(module, "loaded", {
      enumerable: true,
      get: function get() {
        return module.l;
      }
    });
    Object.defineProperty(module, "id", {
      enumerable: true,
      get: function get() {
        return module.i;
      }
    });
    module.webpackPolyfill = 1;
  }

  return module;
};

/***/ }),
/* 7 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SimpleLinkService = exports.PDFLinkService = void 0;

var _ui_utils = __w_pdfjs_require__(3);

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var PDFLinkService = /*#__PURE__*/function () {
  function PDFLinkService() {
    var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        eventBus = _ref.eventBus,
        _ref$externalLinkTarg = _ref.externalLinkTarget,
        externalLinkTarget = _ref$externalLinkTarg === void 0 ? null : _ref$externalLinkTarg,
        _ref$externalLinkRel = _ref.externalLinkRel,
        externalLinkRel = _ref$externalLinkRel === void 0 ? null : _ref$externalLinkRel,
        _ref$externalLinkEnab = _ref.externalLinkEnabled,
        externalLinkEnabled = _ref$externalLinkEnab === void 0 ? true : _ref$externalLinkEnab,
        _ref$ignoreDestinatio = _ref.ignoreDestinationZoom,
        ignoreDestinationZoom = _ref$ignoreDestinatio === void 0 ? false : _ref$ignoreDestinatio;

    _classCallCheck(this, PDFLinkService);

    this.eventBus = eventBus;
    this.externalLinkTarget = externalLinkTarget;
    this.externalLinkRel = externalLinkRel;
    this.externalLinkEnabled = externalLinkEnabled;
    this._ignoreDestinationZoom = ignoreDestinationZoom;
    this.baseUrl = null;
    this.pdfDocument = null;
    this.pdfViewer = null;
    this.pdfHistory = null;
    this._pagesRefCache = null;
  }

  _createClass(PDFLinkService, [{
    key: "setDocument",
    value: function setDocument(pdfDocument) {
      var baseUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
      this.baseUrl = baseUrl;
      this.pdfDocument = pdfDocument;
      this._pagesRefCache = Object.create(null);
    }
  }, {
    key: "setViewer",
    value: function setViewer(pdfViewer) {
      this.pdfViewer = pdfViewer;
    }
  }, {
    key: "setHistory",
    value: function setHistory(pdfHistory) {
      this.pdfHistory = pdfHistory;
    }
  }, {
    key: "navigateTo",
    value: function navigateTo(dest) {
      var _this = this;

      var goToDestination = function goToDestination(_ref2) {
        var namedDest = _ref2.namedDest,
            explicitDest = _ref2.explicitDest;
        var destRef = explicitDest[0];
        var pageNumber;

        if (destRef instanceof Object) {
          pageNumber = _this._cachedPageNumber(destRef);

          if (pageNumber === null) {
            _this.pdfDocument.getPageIndex(destRef).then(function (pageIndex) {
              _this.cachePageRef(pageIndex + 1, destRef);

              goToDestination({
                namedDest: namedDest,
                explicitDest: explicitDest
              });
            })["catch"](function () {
              console.error("PDFLinkService.navigateTo: \"".concat(destRef, "\" is not ") + "a valid page reference, for dest=\"".concat(dest, "\"."));
            });

            return;
          }
        } else if (Number.isInteger(destRef)) {
          pageNumber = destRef + 1;
        } else {
          console.error("PDFLinkService.navigateTo: \"".concat(destRef, "\" is not ") + "a valid destination reference, for dest=\"".concat(dest, "\"."));
          return;
        }

        if (!pageNumber || pageNumber < 1 || pageNumber > _this.pagesCount) {
          console.error("PDFLinkService.navigateTo: \"".concat(pageNumber, "\" is not ") + "a valid page number, for dest=\"".concat(dest, "\"."));
          return;
        }

        if (_this.pdfHistory) {
          _this.pdfHistory.pushCurrentPosition();

          _this.pdfHistory.push({
            namedDest: namedDest,
            explicitDest: explicitDest,
            pageNumber: pageNumber
          });
        }

        _this.pdfViewer.scrollPageIntoView({
          pageNumber: pageNumber,
          destArray: explicitDest,
          ignoreDestinationZoom: _this._ignoreDestinationZoom
        });
      };

      new Promise(function (resolve, reject) {
        if (typeof dest === "string") {
          _this.pdfDocument.getDestination(dest).then(function (destArray) {
            resolve({
              namedDest: dest,
              explicitDest: destArray
            });
          });

          return;
        }

        resolve({
          namedDest: "",
          explicitDest: dest
        });
      }).then(function (data) {
        if (!Array.isArray(data.explicitDest)) {
          console.error("PDFLinkService.navigateTo: \"".concat(data.explicitDest, "\" is") + " not a valid destination array, for dest=\"".concat(dest, "\"."));
          return;
        }

        goToDestination(data);
      });
    }
  }, {
    key: "getDestinationHash",
    value: function getDestinationHash(dest) {
      if (typeof dest === "string") {
        return this.getAnchorUrl("#" + escape(dest));
      }

      if (Array.isArray(dest)) {
        var str = JSON.stringify(dest);
        return this.getAnchorUrl("#" + escape(str));
      }

      return this.getAnchorUrl("");
    }
  }, {
    key: "getAnchorUrl",
    value: function getAnchorUrl(anchor) {
      return (this.baseUrl || "") + anchor;
    }
  }, {
    key: "setHash",
    value: function setHash(hash) {
      var pageNumber, dest;

      if (hash.includes("=")) {
        var params = (0, _ui_utils.parseQueryString)(hash);

        if ("search" in params) {
          this.eventBus.dispatch("findfromurlhash", {
            source: this,
            query: params.search.replace(/"/g, ""),
            phraseSearch: params.phrase === "true"
          });
        }

        if ("page" in params) {
          pageNumber = params.page | 0 || 1;
        }

        if ("zoom" in params) {
          var zoomArgs = params.zoom.split(",");
          var zoomArg = zoomArgs[0];
          var zoomArgNumber = parseFloat(zoomArg);

          if (!zoomArg.includes("Fit")) {
            dest = [null, {
              name: "XYZ"
            }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null, zoomArgs.length > 2 ? zoomArgs[2] | 0 : null, zoomArgNumber ? zoomArgNumber / 100 : zoomArg];
          } else {
            if (zoomArg === "Fit" || zoomArg === "FitB") {
              dest = [null, {
                name: zoomArg
              }];
            } else if (zoomArg === "FitH" || zoomArg === "FitBH" || zoomArg === "FitV" || zoomArg === "FitBV") {
              dest = [null, {
                name: zoomArg
              }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null];
            } else if (zoomArg === "FitR") {
              if (zoomArgs.length !== 5) {
                console.error('PDFLinkService.setHash: Not enough parameters for "FitR".');
              } else {
                dest = [null, {
                  name: zoomArg
                }, zoomArgs[1] | 0, zoomArgs[2] | 0, zoomArgs[3] | 0, zoomArgs[4] | 0];
              }
            } else {
              console.error("PDFLinkService.setHash: \"".concat(zoomArg, "\" is not ") + "a valid zoom value.");
            }
          }
        }

        if (dest) {
          this.pdfViewer.scrollPageIntoView({
            pageNumber: pageNumber || this.page,
            destArray: dest,
            allowNegativeOffset: true
          });
        } else if (pageNumber) {
          this.page = pageNumber;
        }

        if ("pagemode" in params) {
          this.eventBus.dispatch("pagemode", {
            source: this,
            mode: params.pagemode
          });
        }

        if ("nameddest" in params) {
          this.navigateTo(params.nameddest);
        }
      } else {
        dest = unescape(hash);

        try {
          dest = JSON.parse(dest);

          if (!Array.isArray(dest)) {
            dest = dest.toString();
          }
        } catch (ex) {}

        if (typeof dest === "string" || isValidExplicitDestination(dest)) {
          this.navigateTo(dest);
          return;
        }

        console.error("PDFLinkService.setHash: \"".concat(unescape(hash), "\" is not ") + "a valid destination.");
      }
    }
  }, {
    key: "executeNamedAction",
    value: function executeNamedAction(action) {
      switch (action) {
        case "GoBack":
          if (this.pdfHistory) {
            this.pdfHistory.back();
          }

          break;

        case "GoForward":
          if (this.pdfHistory) {
            this.pdfHistory.forward();
          }

          break;

        case "NextPage":
          if (this.page < this.pagesCount) {
            this.page++;
          }

          break;

        case "PrevPage":
          if (this.page > 1) {
            this.page--;
          }

          break;

        case "LastPage":
          this.page = this.pagesCount;
          break;

        case "FirstPage":
          this.page = 1;
          break;

        default:
          break;
      }

      this.eventBus.dispatch("namedaction", {
        source: this,
        action: action
      });
    }
  }, {
    key: "cachePageRef",
    value: function cachePageRef(pageNum, pageRef) {
      if (!pageRef) {
        return;
      }

      var refStr = pageRef.gen === 0 ? "".concat(pageRef.num, "R") : "".concat(pageRef.num, "R").concat(pageRef.gen);
      this._pagesRefCache[refStr] = pageNum;
    }
  }, {
    key: "_cachedPageNumber",
    value: function _cachedPageNumber(pageRef) {
      var refStr = pageRef.gen === 0 ? "".concat(pageRef.num, "R") : "".concat(pageRef.num, "R").concat(pageRef.gen);
      return this._pagesRefCache && this._pagesRefCache[refStr] || null;
    }
  }, {
    key: "isPageVisible",
    value: function isPageVisible(pageNumber) {
      return this.pdfViewer.isPageVisible(pageNumber);
    }
  }, {
    key: "pagesCount",
    get: function get() {
      return this.pdfDocument ? this.pdfDocument.numPages : 0;
    }
  }, {
    key: "page",
    get: function get() {
      return this.pdfViewer.currentPageNumber;
    },
    set: function set(value) {
      this.pdfViewer.currentPageNumber = value;
    }
  }, {
    key: "rotation",
    get: function get() {
      return this.pdfViewer.pagesRotation;
    },
    set: function set(value) {
      this.pdfViewer.pagesRotation = value;
    }
  }]);

  return PDFLinkService;
}();

exports.PDFLinkService = PDFLinkService;

function isValidExplicitDestination(dest) {
  if (!Array.isArray(dest)) {
    return false;
  }

  var destLength = dest.length;

  if (destLength < 2) {
    return false;
  }

  var page = dest[0];

  if (!(_typeof(page) === "object" && Number.isInteger(page.num) && Number.isInteger(page.gen)) && !(Number.isInteger(page) && page >= 0)) {
    return false;
  }

  var zoom = dest[1];

  if (!(_typeof(zoom) === "object" && typeof zoom.name === "string")) {
    return false;
  }

  var allowNull = true;

  switch (zoom.name) {
    case "XYZ":
      if (destLength !== 5) {
        return false;
      }

      break;

    case "Fit":
    case "FitB":
      return destLength === 2;

    case "FitH":
    case "FitBH":
    case "FitV":
    case "FitBV":
      if (destLength !== 3) {
        return false;
      }

      break;

    case "FitR":
      if (destLength !== 6) {
        return false;
      }

      allowNull = false;
      break;

    default:
      return false;
  }

  for (var i = 2; i < destLength; i++) {
    var param = dest[i];

    if (!(typeof param === "number" || allowNull && param === null)) {
      return false;
    }
  }

  return true;
}

var SimpleLinkService = /*#__PURE__*/function () {
  function SimpleLinkService() {
    _classCallCheck(this, SimpleLinkService);

    this.externalLinkTarget = null;
    this.externalLinkRel = null;
    this.externalLinkEnabled = true;
    this._ignoreDestinationZoom = false;
  }

  _createClass(SimpleLinkService, [{
    key: "navigateTo",
    value: function navigateTo(dest) {}
  }, {
    key: "getDestinationHash",
    value: function getDestinationHash(dest) {
      return "#";
    }
  }, {
    key: "getAnchorUrl",
    value: function getAnchorUrl(hash) {
      return "#";
    }
  }, {
    key: "setHash",
    value: function setHash(hash) {}
  }, {
    key: "executeNamedAction",
    value: function executeNamedAction(action) {}
  }, {
    key: "cachePageRef",
    value: function cachePageRef(pageNum, pageRef) {}
  }, {
    key: "isPageVisible",
    value: function isPageVisible(pageNumber) {
      return true;
    }
  }, {
    key: "pagesCount",
    get: function get() {
      return 0;
    }
  }, {
    key: "page",
    get: function get() {
      return 0;
    },
    set: function set(value) {}
  }, {
    key: "rotation",
    get: function get() {
      return 0;
    },
    set: function set(value) {}
  }]);

  return SimpleLinkService;
}();

exports.SimpleLinkService = SimpleLinkService;

/***/ }),
/* 8 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DefaultTextLayerFactory = exports.TextLayerBuilder = void 0;

var _pdfjsLib = __w_pdfjs_require__(2);

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var EXPAND_DIVS_TIMEOUT = 300;

var TextLayerBuilder = /*#__PURE__*/function () {
  function TextLayerBuilder(_ref) {
    var textLayerDiv = _ref.textLayerDiv,
        eventBus = _ref.eventBus,
        pageIndex = _ref.pageIndex,
        viewport = _ref.viewport,
        _ref$findController = _ref.findController,
        findController = _ref$findController === void 0 ? null : _ref$findController,
        _ref$enhanceTextSelec = _ref.enhanceTextSelection,
        enhanceTextSelection = _ref$enhanceTextSelec === void 0 ? false : _ref$enhanceTextSelec;

    _classCallCheck(this, TextLayerBuilder);

    this.textLayerDiv = textLayerDiv;
    this.eventBus = eventBus;
    this.textContent = null;
    this.textContentItemsStr = [];
    this.textContentStream = null;
    this.renderingDone = false;
    this.pageIdx = pageIndex;
    this.pageNumber = this.pageIdx + 1;
    this.matches = [];
    this.viewport = viewport;
    this.textDivs = [];
    this.findController = findController;
    this.textLayerRenderTask = null;
    this.enhanceTextSelection = enhanceTextSelection;
    this._onUpdateTextLayerMatches = null;

    this._bindMouse();
  }

  _createClass(TextLayerBuilder, [{
    key: "_finishRendering",
    value: function _finishRendering() {
      this.renderingDone = true;

      if (!this.enhanceTextSelection) {
        var endOfContent = document.createElement("div");
        endOfContent.className = "endOfContent";
        this.textLayerDiv.appendChild(endOfContent);
      }

      this.eventBus.dispatch("textlayerrendered", {
        source: this,
        pageNumber: this.pageNumber,
        numTextDivs: this.textDivs.length
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;

      if (!(this.textContent || this.textContentStream) || this.renderingDone) {
        return;
      }

      this.cancel();
      this.textDivs = [];
      var textLayerFrag = document.createDocumentFragment();
      this.textLayerRenderTask = (0, _pdfjsLib.renderTextLayer)({
        textContent: this.textContent,
        textContentStream: this.textContentStream,
        container: textLayerFrag,
        viewport: this.viewport,
        textDivs: this.textDivs,
        textContentItemsStr: this.textContentItemsStr,
        timeout: timeout,
        enhanceTextSelection: this.enhanceTextSelection
      });
      this.textLayerRenderTask.promise.then(function () {
        _this.textLayerDiv.appendChild(textLayerFrag);

        _this._finishRendering();

        _this._updateMatches();
      }, function (reason) {});

      if (!this._onUpdateTextLayerMatches) {
        this._onUpdateTextLayerMatches = function (evt) {
          if (evt.pageIndex === _this.pageIdx || evt.pageIndex === -1) {
            _this._updateMatches();
          }
        };

        this.eventBus._on("updatetextlayermatches", this._onUpdateTextLayerMatches);
      }
    }
  }, {
    key: "cancel",
    value: function cancel() {
      if (this.textLayerRenderTask) {
        this.textLayerRenderTask.cancel();
        this.textLayerRenderTask = null;
      }

      if (this._onUpdateTextLayerMatches) {
        this.eventBus._off("updatetextlayermatches", this._onUpdateTextLayerMatches);

        this._onUpdateTextLayerMatches = null;
      }
    }
  }, {
    key: "setTextContentStream",
    value: function setTextContentStream(readableStream) {
      this.cancel();
      this.textContentStream = readableStream;
    }
  }, {
    key: "setTextContent",
    value: function setTextContent(textContent) {
      this.cancel();
      this.textContent = textContent;
    }
  }, {
    key: "_convertMatches",
    value: function _convertMatches(matches, matchesLength) {
      if (!matches) {
        return [];
      }

      var findController = this.findController,
          textContentItemsStr = this.textContentItemsStr;
      var i = 0,
          iIndex = 0;
      var end = textContentItemsStr.length - 1;
      var queryLen = findController.state.query.length;
      var result = [];

      for (var m = 0, mm = matches.length; m < mm; m++) {
        var matchIdx = matches[m];

        while (i !== end && matchIdx >= iIndex + textContentItemsStr[i].length) {
          iIndex += textContentItemsStr[i].length;
          i++;
        }

        if (i === textContentItemsStr.length) {
          console.error("Could not find a matching mapping");
        }

        var match = {
          begin: {
            divIdx: i,
            offset: matchIdx - iIndex
          }
        };

        if (matchesLength) {
          matchIdx += matchesLength[m];
        } else {
          matchIdx += queryLen;
        }

        while (i !== end && matchIdx > iIndex + textContentItemsStr[i].length) {
          iIndex += textContentItemsStr[i].length;
          i++;
        }

        match.end = {
          divIdx: i,
          offset: matchIdx - iIndex
        };
        result.push(match);
      }

      return result;
    }
  }, {
    key: "_renderMatches",
    value: function _renderMatches(matches) {
      if (matches.length === 0) {
        return;
      }

      var findController = this.findController,
          pageIdx = this.pageIdx,
          textContentItemsStr = this.textContentItemsStr,
          textDivs = this.textDivs;
      var isSelectedPage = pageIdx === findController.selected.pageIdx;
      var selectedMatchIdx = findController.selected.matchIdx;
      var highlightAll = findController.state.highlightAll;
      var prevEnd = null;
      var infinity = {
        divIdx: -1,
        offset: undefined
      };

      function beginText(begin, className) {
        var divIdx = begin.divIdx;
        textDivs[divIdx].textContent = "";
        appendTextToDiv(divIdx, 0, begin.offset, className);
      }

      function appendTextToDiv(divIdx, fromOffset, toOffset, className) {
        var div = textDivs[divIdx];
        var content = textContentItemsStr[divIdx].substring(fromOffset, toOffset);
        var node = document.createTextNode(content);

        if (className) {
          var span = document.createElement("span");
          span.className = className;
          span.appendChild(node);
          div.appendChild(span);
          return;
        }

        div.appendChild(node);
      }

      var i0 = selectedMatchIdx,
          i1 = i0 + 1;

      if (highlightAll) {
        i0 = 0;
        i1 = matches.length;
      } else if (!isSelectedPage) {
        return;
      }

      for (var i = i0; i < i1; i++) {
        var match = matches[i];
        var begin = match.begin;
        var end = match.end;
        var isSelected = isSelectedPage && i === selectedMatchIdx;
        var highlightSuffix = isSelected ? " selected" : "";

        if (isSelected) {
          findController.scrollMatchIntoView({
            element: textDivs[begin.divIdx],
            pageIndex: pageIdx,
            matchIndex: selectedMatchIdx
          });
        }

        if (!prevEnd || begin.divIdx !== prevEnd.divIdx) {
          if (prevEnd !== null) {
            appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);
          }

          beginText(begin);
        } else {
          appendTextToDiv(prevEnd.divIdx, prevEnd.offset, begin.offset);
        }

        if (begin.divIdx === end.divIdx) {
          appendTextToDiv(begin.divIdx, begin.offset, end.offset, "highlight" + highlightSuffix);
        } else {
          appendTextToDiv(begin.divIdx, begin.offset, infinity.offset, "highlight begin" + highlightSuffix);

          for (var n0 = begin.divIdx + 1, n1 = end.divIdx; n0 < n1; n0++) {
            textDivs[n0].className = "highlight middle" + highlightSuffix;
          }

          beginText(end, "highlight end" + highlightSuffix);
        }

        prevEnd = end;
      }

      if (prevEnd) {
        appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);
      }
    }
  }, {
    key: "_updateMatches",
    value: function _updateMatches() {
      if (!this.renderingDone) {
        return;
      }

      var findController = this.findController,
          matches = this.matches,
          pageIdx = this.pageIdx,
          textContentItemsStr = this.textContentItemsStr,
          textDivs = this.textDivs;
      var clearedUntilDivIdx = -1;

      for (var i = 0, ii = matches.length; i < ii; i++) {
        var match = matches[i];
        var begin = Math.max(clearedUntilDivIdx, match.begin.divIdx);

        for (var n = begin, end = match.end.divIdx; n <= end; n++) {
          var div = textDivs[n];
          div.textContent = textContentItemsStr[n];
          div.className = "";
        }

        clearedUntilDivIdx = match.end.divIdx + 1;
      }

      if (!findController || !findController.highlightMatches) {
        return;
      }

      var pageMatches = findController.pageMatches[pageIdx] || null;
      var pageMatchesLength = findController.pageMatchesLength[pageIdx] || null;
      this.matches = this._convertMatches(pageMatches, pageMatchesLength);

      this._renderMatches(this.matches);
    }
  }, {
    key: "_bindMouse",
    value: function _bindMouse() {
      var _this2 = this;

      var div = this.textLayerDiv;
      var expandDivsTimer = null;
      div.addEventListener("mousedown", function (evt) {
        if (_this2.enhanceTextSelection && _this2.textLayerRenderTask) {
          _this2.textLayerRenderTask.expandTextDivs(true);

          if (expandDivsTimer) {
            clearTimeout(expandDivsTimer);
            expandDivsTimer = null;
          }

          return;
        }

        var end = div.querySelector(".endOfContent");

        if (!end) {
          return;
        }

        var adjustTop = evt.target !== div;
        adjustTop = adjustTop && window.getComputedStyle(end).getPropertyValue("-moz-user-select") !== "none";

        if (adjustTop) {
          var divBounds = div.getBoundingClientRect();
          var r = Math.max(0, (evt.pageY - divBounds.top) / divBounds.height);
          end.style.top = (r * 100).toFixed(2) + "%";
        }

        end.classList.add("active");
      });
      div.addEventListener("mouseup", function () {
        if (_this2.enhanceTextSelection && _this2.textLayerRenderTask) {
          expandDivsTimer = setTimeout(function () {
            if (_this2.textLayerRenderTask) {
              _this2.textLayerRenderTask.expandTextDivs(false);
            }

            expandDivsTimer = null;
          }, EXPAND_DIVS_TIMEOUT);
          return;
        }

        var end = div.querySelector(".endOfContent");

        if (!end) {
          return;
        }

        end.style.top = "";
        end.classList.remove("active");
      });
    }
  }]);

  return TextLayerBuilder;
}();

exports.TextLayerBuilder = TextLayerBuilder;

var DefaultTextLayerFactory = /*#__PURE__*/function () {
  function DefaultTextLayerFactory() {
    _classCallCheck(this, DefaultTextLayerFactory);
  }

  _createClass(DefaultTextLayerFactory, [{
    key: "createTextLayerBuilder",
    value: function createTextLayerBuilder(textLayerDiv, pageIndex, viewport) {
      var enhanceTextSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
      var eventBus = arguments.length > 4 ? arguments[4] : undefined;
      return new TextLayerBuilder({
        textLayerDiv: textLayerDiv,
        pageIndex: pageIndex,
        viewport: viewport,
        enhanceTextSelection: enhanceTextSelection,
        eventBus: eventBus
      });
    }
  }]);

  return DefaultTextLayerFactory;
}();

exports.DefaultTextLayerFactory = DefaultTextLayerFactory;

/***/ }),
/* 9 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DownloadManager = void 0;

var _pdfjsLib = __w_pdfjs_require__(2);

var _viewer_compatibility = __w_pdfjs_require__(10);

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

;

function _download(blobUrl, filename) {
  var a = document.createElement("a");

  if (!a.click) {
    throw new Error('DownloadManager: "a.click()" is not supported.');
  }

  a.href = blobUrl;
  a.target = "_parent";

  if ("download" in a) {
    a.download = filename;
  }

  (document.body || document.documentElement).appendChild(a);
  a.click();
  a.remove();
}

var DownloadManager = /*#__PURE__*/function () {
  function DownloadManager() {
    _classCallCheck(this, DownloadManager);
  }

  _createClass(DownloadManager, [{
    key: "downloadUrl",
    value: function downloadUrl(url, filename) {
      if (!(0, _pdfjsLib.createValidAbsoluteUrl)(url, "http://example.com")) {
        return;
      }

      _download(url + "#pdfjs.action=download", filename);
    }
  }, {
    key: "downloadData",
    value: function downloadData(data, filename, contentType) {
      if (navigator.msSaveBlob) {
        navigator.msSaveBlob(new Blob([data], {
          type: contentType
        }), filename);
        return;
      }

      var blobUrl = (0, _pdfjsLib.createObjectURL)(data, contentType, _viewer_compatibility.viewerCompatibilityParams.disableCreateObjectURL);

      _download(blobUrl, filename);
    }
  }, {
    key: "download",
    value: function download(blob, url, filename) {
      var sourceEventType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "download";

      if (navigator.msSaveBlob) {
        if (!navigator.msSaveBlob(blob, filename)) {
          this.downloadUrl(url, filename);
        }

        return;
      }

      if (_viewer_compatibility.viewerCompatibilityParams.disableCreateObjectURL) {
        this.downloadUrl(url, filename);
        return;
      }

      var blobUrl = URL.createObjectURL(blob);

      _download(blobUrl, filename);
    }
  }]);

  return DownloadManager;
}();

exports.DownloadManager = DownloadManager;

/***/ }),
/* 10 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.viewerCompatibilityParams = void 0;
var compatibilityParams = Object.create(null);
{
  var userAgent = typeof navigator !== "undefined" && navigator.userAgent || "";
  var platform = typeof navigator !== "undefined" && navigator.platform || "";
  var maxTouchPoints = typeof navigator !== "undefined" && navigator.maxTouchPoints || 1;
  var isAndroid = /Android/.test(userAgent);
  var isIE = /Trident/.test(userAgent);
  var isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent) || platform === "MacIntel" && maxTouchPoints > 1;
  var isIOSChrome = /CriOS/.test(userAgent);

  (function checkOnBlobSupport() {
    if (isIE || isIOSChrome) {
      compatibilityParams.disableCreateObjectURL = true;
    }
  })();

  (function checkCanvasSizeLimitation() {
    if (isIOS || isAndroid) {
      compatibilityParams.maxCanvasPixels = 5242880;
    }
  })();
}
var viewerCompatibilityParams = Object.freeze(compatibilityParams);
exports.viewerCompatibilityParams = viewerCompatibilityParams;

/***/ }),
/* 11 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.GenericL10n = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(4));

__w_pdfjs_require__(12);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var webL10n = document.webL10n;

var GenericL10n = /*#__PURE__*/function () {
  function GenericL10n(lang) {
    _classCallCheck(this, GenericL10n);

    this._lang = lang;
    this._ready = new Promise(function (resolve, reject) {
      webL10n.setLanguage(lang, function () {
        resolve(webL10n);
      });
    });
  }

  _createClass(GenericL10n, [{
    key: "getLanguage",
    value: function () {
      var _getLanguage = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var l10n;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return this._ready;

              case 2:
                l10n = _context.sent;
                return _context.abrupt("return", l10n.getLanguage());

              case 4:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function getLanguage() {
        return _getLanguage.apply(this, arguments);
      }

      return getLanguage;
    }()
  }, {
    key: "getDirection",
    value: function () {
      var _getDirection = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
        var l10n;
        return _regenerator["default"].wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.next = 2;
                return this._ready;

              case 2:
                l10n = _context2.sent;
                return _context2.abrupt("return", l10n.getDirection());

              case 4:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2, this);
      }));

      function getDirection() {
        return _getDirection.apply(this, arguments);
      }

      return getDirection;
    }()
  }, {
    key: "get",
    value: function () {
      var _get = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee3(property, args, fallback) {
        var l10n;
        return _regenerator["default"].wrap(function _callee3$(_context3) {
          while (1) {
            switch (_context3.prev = _context3.next) {
              case 0:
                _context3.next = 2;
                return this._ready;

              case 2:
                l10n = _context3.sent;
                return _context3.abrupt("return", l10n.get(property, args, fallback));

              case 4:
              case "end":
                return _context3.stop();
            }
          }
        }, _callee3, this);
      }));

      function get(_x, _x2, _x3) {
        return _get.apply(this, arguments);
      }

      return get;
    }()
  }, {
    key: "translate",
    value: function () {
      var _translate = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee4(element) {
        var l10n;
        return _regenerator["default"].wrap(function _callee4$(_context4) {
          while (1) {
            switch (_context4.prev = _context4.next) {
              case 0:
                _context4.next = 2;
                return this._ready;

              case 2:
                l10n = _context4.sent;
                return _context4.abrupt("return", l10n.translate(element));

              case 4:
              case "end":
                return _context4.stop();
            }
          }
        }, _callee4, this);
      }));

      function translate(_x4) {
        return _translate.apply(this, arguments);
      }

      return translate;
    }()
  }]);

  return GenericL10n;
}();

exports.GenericL10n = GenericL10n;

/***/ }),
/* 12 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


document.webL10n = function (window, document, undefined) {
  var gL10nData = {};
  var gTextData = '';
  var gTextProp = 'textContent';
  var gLanguage = '';
  var gMacros = {};
  var gReadyState = 'loading';
  var gAsyncResourceLoading = true;

  function getL10nResourceLinks() {
    return document.querySelectorAll('link[type="application/l10n"]');
  }

  function getL10nDictionary() {
    var script = document.querySelector('script[type="application/l10n"]');
    return script ? JSON.parse(script.innerHTML) : null;
  }

  function getTranslatableChildren(element) {
    return element ? element.querySelectorAll('*[data-l10n-id]') : [];
  }

  function getL10nAttributes(element) {
    if (!element) return {};
    var l10nId = element.getAttribute('data-l10n-id');
    var l10nArgs = element.getAttribute('data-l10n-args');
    var args = {};

    if (l10nArgs) {
      try {
        args = JSON.parse(l10nArgs);
      } catch (e) {
        console.warn('could not parse arguments for #' + l10nId);
      }
    }

    return {
      id: l10nId,
      args: args
    };
  }

  function xhrLoadText(url, onSuccess, onFailure) {
    onSuccess = onSuccess || function _onSuccess(data) {};

    onFailure = onFailure || function _onFailure() {};

    var xhr = new XMLHttpRequest();
    xhr.open('GET', url, gAsyncResourceLoading);

    if (xhr.overrideMimeType) {
      xhr.overrideMimeType('text/plain; charset=utf-8');
    }

    xhr.onreadystatechange = function () {
      if (xhr.readyState == 4) {
        if (xhr.status == 200 || xhr.status === 0) {
          onSuccess(xhr.responseText);
        } else {
          onFailure();
        }
      }
    };

    xhr.onerror = onFailure;
    xhr.ontimeout = onFailure;

    try {
      xhr.send(null);
    } catch (e) {
      onFailure();
    }
  }

  function parseResource(href, lang, successCallback, failureCallback) {
    var baseURL = href.replace(/[^\/]*$/, '') || './';

    function evalString(text) {
      if (text.lastIndexOf('\\') < 0) return text;
      return text.replace(/\\\\/g, '\\').replace(/\\n/g, '\n').replace(/\\r/g, '\r').replace(/\\t/g, '\t').replace(/\\b/g, '\b').replace(/\\f/g, '\f').replace(/\\{/g, '{').replace(/\\}/g, '}').replace(/\\"/g, '"').replace(/\\'/g, "'");
    }

    function parseProperties(text, parsedPropertiesCallback) {
      var dictionary = {};
      var reBlank = /^\s*|\s*$/;
      var reComment = /^\s*#|^\s*$/;
      var reSection = /^\s*\[(.*)\]\s*$/;
      var reImport = /^\s*@import\s+url\((.*)\)\s*$/i;
      var reSplit = /^([^=\s]*)\s*=\s*(.+)$/;

      function parseRawLines(rawText, extendedSyntax, parsedRawLinesCallback) {
        var entries = rawText.replace(reBlank, '').split(/[\r\n]+/);
        var currentLang = '*';
        var genericLang = lang.split('-', 1)[0];
        var skipLang = false;
        var match = '';

        function nextEntry() {
          while (true) {
            if (!entries.length) {
              parsedRawLinesCallback();
              return;
            }

            var line = entries.shift();
            if (reComment.test(line)) continue;

            if (extendedSyntax) {
              match = reSection.exec(line);

              if (match) {
                currentLang = match[1].toLowerCase();
                skipLang = currentLang !== '*' && currentLang !== lang && currentLang !== genericLang;
                continue;
              } else if (skipLang) {
                continue;
              }

              match = reImport.exec(line);

              if (match) {
                loadImport(baseURL + match[1], nextEntry);
                return;
              }
            }

            var tmp = line.match(reSplit);

            if (tmp && tmp.length == 3) {
              dictionary[tmp[1]] = evalString(tmp[2]);
            }
          }
        }

        nextEntry();
      }

      function loadImport(url, callback) {
        xhrLoadText(url, function (content) {
          parseRawLines(content, false, callback);
        }, function () {
          console.warn(url + ' not found.');
          callback();
        });
      }

      parseRawLines(text, true, function () {
        parsedPropertiesCallback(dictionary);
      });
    }

    xhrLoadText(href, function (response) {
      gTextData += response;
      parseProperties(response, function (data) {
        for (var key in data) {
          var id,
              prop,
              index = key.lastIndexOf('.');

          if (index > 0) {
            id = key.substring(0, index);
            prop = key.substring(index + 1);
          } else {
            id = key;
            prop = gTextProp;
          }

          if (!gL10nData[id]) {
            gL10nData[id] = {};
          }

          gL10nData[id][prop] = data[key];
        }

        if (successCallback) {
          successCallback();
        }
      });
    }, failureCallback);
  }

  function loadLocale(lang, callback) {
    if (lang) {
      lang = lang.toLowerCase();
    }

    callback = callback || function _callback() {};

    clear();
    gLanguage = lang;
    var langLinks = getL10nResourceLinks();
    var langCount = langLinks.length;

    if (langCount === 0) {
      var dict = getL10nDictionary();

      if (dict && dict.locales && dict.default_locale) {
        console.log('using the embedded JSON directory, early way out');
        gL10nData = dict.locales[lang];

        if (!gL10nData) {
          var defaultLocale = dict.default_locale.toLowerCase();

          for (var anyCaseLang in dict.locales) {
            anyCaseLang = anyCaseLang.toLowerCase();

            if (anyCaseLang === lang) {
              gL10nData = dict.locales[lang];
              break;
            } else if (anyCaseLang === defaultLocale) {
              gL10nData = dict.locales[defaultLocale];
            }
          }
        }

        callback();
      } else {
        console.log('no resource to load, early way out');
      }

      gReadyState = 'complete';
      return;
    }

    var onResourceLoaded = null;
    var gResourceCount = 0;

    onResourceLoaded = function onResourceLoaded() {
      gResourceCount++;

      if (gResourceCount >= langCount) {
        callback();
        gReadyState = 'complete';
      }
    };

    function L10nResourceLink(link) {
      var href = link.href;

      this.load = function (lang, callback) {
        parseResource(href, lang, callback, function () {
          console.warn(href + ' not found.');
          console.warn('"' + lang + '" resource not found');
          gLanguage = '';
          callback();
        });
      };
    }

    for (var i = 0; i < langCount; i++) {
      var resource = new L10nResourceLink(langLinks[i]);
      resource.load(lang, onResourceLoaded);
    }
  }

  function clear() {
    gL10nData = {};
    gTextData = '';
    gLanguage = '';
  }

  function getPluralRules(lang) {
    var locales2rules = {
      'af': 3,
      'ak': 4,
      'am': 4,
      'ar': 1,
      'asa': 3,
      'az': 0,
      'be': 11,
      'bem': 3,
      'bez': 3,
      'bg': 3,
      'bh': 4,
      'bm': 0,
      'bn': 3,
      'bo': 0,
      'br': 20,
      'brx': 3,
      'bs': 11,
      'ca': 3,
      'cgg': 3,
      'chr': 3,
      'cs': 12,
      'cy': 17,
      'da': 3,
      'de': 3,
      'dv': 3,
      'dz': 0,
      'ee': 3,
      'el': 3,
      'en': 3,
      'eo': 3,
      'es': 3,
      'et': 3,
      'eu': 3,
      'fa': 0,
      'ff': 5,
      'fi': 3,
      'fil': 4,
      'fo': 3,
      'fr': 5,
      'fur': 3,
      'fy': 3,
      'ga': 8,
      'gd': 24,
      'gl': 3,
      'gsw': 3,
      'gu': 3,
      'guw': 4,
      'gv': 23,
      'ha': 3,
      'haw': 3,
      'he': 2,
      'hi': 4,
      'hr': 11,
      'hu': 0,
      'id': 0,
      'ig': 0,
      'ii': 0,
      'is': 3,
      'it': 3,
      'iu': 7,
      'ja': 0,
      'jmc': 3,
      'jv': 0,
      'ka': 0,
      'kab': 5,
      'kaj': 3,
      'kcg': 3,
      'kde': 0,
      'kea': 0,
      'kk': 3,
      'kl': 3,
      'km': 0,
      'kn': 0,
      'ko': 0,
      'ksb': 3,
      'ksh': 21,
      'ku': 3,
      'kw': 7,
      'lag': 18,
      'lb': 3,
      'lg': 3,
      'ln': 4,
      'lo': 0,
      'lt': 10,
      'lv': 6,
      'mas': 3,
      'mg': 4,
      'mk': 16,
      'ml': 3,
      'mn': 3,
      'mo': 9,
      'mr': 3,
      'ms': 0,
      'mt': 15,
      'my': 0,
      'nah': 3,
      'naq': 7,
      'nb': 3,
      'nd': 3,
      'ne': 3,
      'nl': 3,
      'nn': 3,
      'no': 3,
      'nr': 3,
      'nso': 4,
      'ny': 3,
      'nyn': 3,
      'om': 3,
      'or': 3,
      'pa': 3,
      'pap': 3,
      'pl': 13,
      'ps': 3,
      'pt': 3,
      'rm': 3,
      'ro': 9,
      'rof': 3,
      'ru': 11,
      'rwk': 3,
      'sah': 0,
      'saq': 3,
      'se': 7,
      'seh': 3,
      'ses': 0,
      'sg': 0,
      'sh': 11,
      'shi': 19,
      'sk': 12,
      'sl': 14,
      'sma': 7,
      'smi': 7,
      'smj': 7,
      'smn': 7,
      'sms': 7,
      'sn': 3,
      'so': 3,
      'sq': 3,
      'sr': 11,
      'ss': 3,
      'ssy': 3,
      'st': 3,
      'sv': 3,
      'sw': 3,
      'syr': 3,
      'ta': 3,
      'te': 3,
      'teo': 3,
      'th': 0,
      'ti': 4,
      'tig': 3,
      'tk': 3,
      'tl': 4,
      'tn': 3,
      'to': 0,
      'tr': 0,
      'ts': 3,
      'tzm': 22,
      'uk': 11,
      'ur': 3,
      've': 3,
      'vi': 0,
      'vun': 3,
      'wa': 4,
      'wae': 3,
      'wo': 0,
      'xh': 3,
      'xog': 3,
      'yo': 0,
      'zh': 0,
      'zu': 3
    };

    function isIn(n, list) {
      return list.indexOf(n) !== -1;
    }

    function isBetween(n, start, end) {
      return start <= n && n <= end;
    }

    var pluralRules = {
      '0': function _(n) {
        return 'other';
      },
      '1': function _(n) {
        if (isBetween(n % 100, 3, 10)) return 'few';
        if (n === 0) return 'zero';
        if (isBetween(n % 100, 11, 99)) return 'many';
        if (n == 2) return 'two';
        if (n == 1) return 'one';
        return 'other';
      },
      '2': function _(n) {
        if (n !== 0 && n % 10 === 0) return 'many';
        if (n == 2) return 'two';
        if (n == 1) return 'one';
        return 'other';
      },
      '3': function _(n) {
        if (n == 1) return 'one';
        return 'other';
      },
      '4': function _(n) {
        if (isBetween(n, 0, 1)) return 'one';
        return 'other';
      },
      '5': function _(n) {
        if (isBetween(n, 0, 2) && n != 2) return 'one';
        return 'other';
      },
      '6': function _(n) {
        if (n === 0) return 'zero';
        if (n % 10 == 1 && n % 100 != 11) return 'one';
        return 'other';
      },
      '7': function _(n) {
        if (n == 2) return 'two';
        if (n == 1) return 'one';
        return 'other';
      },
      '8': function _(n) {
        if (isBetween(n, 3, 6)) return 'few';
        if (isBetween(n, 7, 10)) return 'many';
        if (n == 2) return 'two';
        if (n == 1) return 'one';
        return 'other';
      },
      '9': function _(n) {
        if (n === 0 || n != 1 && isBetween(n % 100, 1, 19)) return 'few';
        if (n == 1) return 'one';
        return 'other';
      },
      '10': function _(n) {
        if (isBetween(n % 10, 2, 9) && !isBetween(n % 100, 11, 19)) return 'few';
        if (n % 10 == 1 && !isBetween(n % 100, 11, 19)) return 'one';
        return 'other';
      },
      '11': function _(n) {
        if (isBetween(n % 10, 2, 4) && !isBetween(n % 100, 12, 14)) return 'few';
        if (n % 10 === 0 || isBetween(n % 10, 5, 9) || isBetween(n % 100, 11, 14)) return 'many';
        if (n % 10 == 1 && n % 100 != 11) return 'one';
        return 'other';
      },
      '12': function _(n) {
        if (isBetween(n, 2, 4)) return 'few';
        if (n == 1) return 'one';
        return 'other';
      },
      '13': function _(n) {
        if (isBetween(n % 10, 2, 4) && !isBetween(n % 100, 12, 14)) return 'few';
        if (n != 1 && isBetween(n % 10, 0, 1) || isBetween(n % 10, 5, 9) || isBetween(n % 100, 12, 14)) return 'many';
        if (n == 1) return 'one';
        return 'other';
      },
      '14': function _(n) {
        if (isBetween(n % 100, 3, 4)) return 'few';
        if (n % 100 == 2) return 'two';
        if (n % 100 == 1) return 'one';
        return 'other';
      },
      '15': function _(n) {
        if (n === 0 || isBetween(n % 100, 2, 10)) return 'few';
        if (isBetween(n % 100, 11, 19)) return 'many';
        if (n == 1) return 'one';
        return 'other';
      },
      '16': function _(n) {
        if (n % 10 == 1 && n != 11) return 'one';
        return 'other';
      },
      '17': function _(n) {
        if (n == 3) return 'few';
        if (n === 0) return 'zero';
        if (n == 6) return 'many';
        if (n == 2) return 'two';
        if (n == 1) return 'one';
        return 'other';
      },
      '18': function _(n) {
        if (n === 0) return 'zero';
        if (isBetween(n, 0, 2) && n !== 0 && n != 2) return 'one';
        return 'other';
      },
      '19': function _(n) {
        if (isBetween(n, 2, 10)) return 'few';
        if (isBetween(n, 0, 1)) return 'one';
        return 'other';
      },
      '20': function _(n) {
        if ((isBetween(n % 10, 3, 4) || n % 10 == 9) && !(isBetween(n % 100, 10, 19) || isBetween(n % 100, 70, 79) || isBetween(n % 100, 90, 99))) return 'few';
        if (n % 1000000 === 0 && n !== 0) return 'many';
        if (n % 10 == 2 && !isIn(n % 100, [12, 72, 92])) return 'two';
        if (n % 10 == 1 && !isIn(n % 100, [11, 71, 91])) return 'one';
        return 'other';
      },
      '21': function _(n) {
        if (n === 0) return 'zero';
        if (n == 1) return 'one';
        return 'other';
      },
      '22': function _(n) {
        if (isBetween(n, 0, 1) || isBetween(n, 11, 99)) return 'one';
        return 'other';
      },
      '23': function _(n) {
        if (isBetween(n % 10, 1, 2) || n % 20 === 0) return 'one';
        return 'other';
      },
      '24': function _(n) {
        if (isBetween(n, 3, 10) || isBetween(n, 13, 19)) return 'few';
        if (isIn(n, [2, 12])) return 'two';
        if (isIn(n, [1, 11])) return 'one';
        return 'other';
      }
    };
    var index = locales2rules[lang.replace(/-.*$/, '')];

    if (!(index in pluralRules)) {
      console.warn('plural form unknown for [' + lang + ']');
      return function () {
        return 'other';
      };
    }

    return pluralRules[index];
  }

  gMacros.plural = function (str, param, key, prop) {
    var n = parseFloat(param);
    if (isNaN(n)) return str;
    if (prop != gTextProp) return str;

    if (!gMacros._pluralRules) {
      gMacros._pluralRules = getPluralRules(gLanguage);
    }

    var index = '[' + gMacros._pluralRules(n) + ']';

    if (n === 0 && key + '[zero]' in gL10nData) {
      str = gL10nData[key + '[zero]'][prop];
    } else if (n == 1 && key + '[one]' in gL10nData) {
      str = gL10nData[key + '[one]'][prop];
    } else if (n == 2 && key + '[two]' in gL10nData) {
      str = gL10nData[key + '[two]'][prop];
    } else if (key + index in gL10nData) {
      str = gL10nData[key + index][prop];
    } else if (key + '[other]' in gL10nData) {
      str = gL10nData[key + '[other]'][prop];
    }

    return str;
  };

  function getL10nData(key, args, fallback) {
    var data = gL10nData[key];

    if (!data) {
      console.warn('#' + key + ' is undefined.');

      if (!fallback) {
        return null;
      }

      data = fallback;
    }

    var rv = {};

    for (var prop in data) {
      var str = data[prop];
      str = substIndexes(str, args, key, prop);
      str = substArguments(str, args, key);
      rv[prop] = str;
    }

    return rv;
  }

  function substIndexes(str, args, key, prop) {
    var reIndex = /\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/;
    var reMatch = reIndex.exec(str);
    if (!reMatch || !reMatch.length) return str;
    var macroName = reMatch[1];
    var paramName = reMatch[2];
    var param;

    if (args && paramName in args) {
      param = args[paramName];
    } else if (paramName in gL10nData) {
      param = gL10nData[paramName];
    }

    if (macroName in gMacros) {
      var macro = gMacros[macroName];
      str = macro(str, param, key, prop);
    }

    return str;
  }

  function substArguments(str, args, key) {
    var reArgs = /\{\{\s*(.+?)\s*\}\}/g;
    return str.replace(reArgs, function (matched_text, arg) {
      if (args && arg in args) {
        return args[arg];
      }

      if (arg in gL10nData) {
        return gL10nData[arg];
      }

      console.log('argument {{' + arg + '}} for #' + key + ' is undefined.');
      return matched_text;
    });
  }

  function translateElement(element) {
    var l10n = getL10nAttributes(element);
    if (!l10n.id) return;
    var data = getL10nData(l10n.id, l10n.args);

    if (!data) {
      console.warn('#' + l10n.id + ' is undefined.');
      return;
    }

    if (data[gTextProp]) {
      if (getChildElementCount(element) === 0) {
        element[gTextProp] = data[gTextProp];
      } else {
        var children = element.childNodes;
        var found = false;

        for (var i = 0, l = children.length; i < l; i++) {
          if (children[i].nodeType === 3 && /\S/.test(children[i].nodeValue)) {
            if (found) {
              children[i].nodeValue = '';
            } else {
              children[i].nodeValue = data[gTextProp];
              found = true;
            }
          }
        }

        if (!found) {
          var textNode = document.createTextNode(data[gTextProp]);
          element.insertBefore(textNode, element.firstChild);
        }
      }

      delete data[gTextProp];
    }

    for (var k in data) {
      element[k] = data[k];
    }
  }

  function getChildElementCount(element) {
    if (element.children) {
      return element.children.length;
    }

    if (typeof element.childElementCount !== 'undefined') {
      return element.childElementCount;
    }

    var count = 0;

    for (var i = 0; i < element.childNodes.length; i++) {
      count += element.nodeType === 1 ? 1 : 0;
    }

    return count;
  }

  function translateFragment(element) {
    element = element || document.documentElement;
    var children = getTranslatableChildren(element);
    var elementCount = children.length;

    for (var i = 0; i < elementCount; i++) {
      translateElement(children[i]);
    }

    translateElement(element);
  }

  return {
    get: function get(key, args, fallbackString) {
      var index = key.lastIndexOf('.');
      var prop = gTextProp;

      if (index > 0) {
        prop = key.substring(index + 1);
        key = key.substring(0, index);
      }

      var fallback;

      if (fallbackString) {
        fallback = {};
        fallback[prop] = fallbackString;
      }

      var data = getL10nData(key, args, fallback);

      if (data && prop in data) {
        return data[prop];
      }

      return '{{' + key + '}}';
    },
    getData: function getData() {
      return gL10nData;
    },
    getText: function getText() {
      return gTextData;
    },
    getLanguage: function getLanguage() {
      return gLanguage;
    },
    setLanguage: function setLanguage(lang, callback) {
      loadLocale(lang, function () {
        if (callback) callback();
      });
    },
    getDirection: function getDirection() {
      var rtlList = ['ar', 'he', 'fa', 'ps', 'ur'];
      var shortCode = gLanguage.split('-', 1)[0];
      return rtlList.indexOf(shortCode) >= 0 ? 'rtl' : 'ltr';
    },
    translate: translateFragment,
    getReadyState: function getReadyState() {
      return gReadyState;
    },
    ready: function ready(callback) {
      if (!callback) {
        return;
      } else if (gReadyState == 'complete' || gReadyState == 'interactive') {
        window.setTimeout(function () {
          callback();
        });
      } else if (document.addEventListener) {
        document.addEventListener('localized', function once() {
          document.removeEventListener('localized', once);
          callback();
        });
      }
    }
  };
}(window, document);

/***/ }),
/* 13 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFFindController = exports.FindState = void 0;

var _pdfjsLib = __w_pdfjs_require__(2);

var _pdf_find_utils = __w_pdfjs_require__(14);

var _ui_utils = __w_pdfjs_require__(3);

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var FindState = {
  FOUND: 0,
  NOT_FOUND: 1,
  WRAPPED: 2,
  PENDING: 3
};
exports.FindState = FindState;
var FIND_TIMEOUT = 250;
var MATCH_SCROLL_OFFSET_TOP = -50;
var MATCH_SCROLL_OFFSET_LEFT = -400;
var CHARACTERS_TO_NORMALIZE = {
  "\u2018": "'",
  "\u2019": "'",
  "\u201A": "'",
  "\u201B": "'",
  "\u201C": '"',
  "\u201D": '"',
  "\u201E": '"',
  "\u201F": '"',
  "\xBC": "1/4",
  "\xBD": "1/2",
  "\xBE": "3/4"
};
var normalizationRegex = null;

function normalize(text) {
  if (!normalizationRegex) {
    var replace = Object.keys(CHARACTERS_TO_NORMALIZE).join("");
    normalizationRegex = new RegExp("[".concat(replace, "]"), "g");
  }

  return text.replace(normalizationRegex, function (ch) {
    return CHARACTERS_TO_NORMALIZE[ch];
  });
}

var PDFFindController = /*#__PURE__*/function () {
  function PDFFindController(_ref) {
    var linkService = _ref.linkService,
        eventBus = _ref.eventBus;

    _classCallCheck(this, PDFFindController);

    this._linkService = linkService;
    this._eventBus = eventBus;

    this._reset();

    eventBus._on("findbarclose", this._onFindBarClose.bind(this));
  }

  _createClass(PDFFindController, [{
    key: "setDocument",
    value: function setDocument(pdfDocument) {
      if (this._pdfDocument) {
        this._reset();
      }

      if (!pdfDocument) {
        return;
      }

      this._pdfDocument = pdfDocument;

      this._firstPageCapability.resolve();
    }
  }, {
    key: "executeCommand",
    value: function executeCommand(cmd, state) {
      var _this = this;

      if (!state) {
        return;
      }

      var pdfDocument = this._pdfDocument;

      if (this._state === null || this._shouldDirtyMatch(cmd, state)) {
        this._dirtyMatch = true;
      }

      this._state = state;

      if (cmd !== "findhighlightallchange") {
        this._updateUIState(FindState.PENDING);
      }

      this._firstPageCapability.promise.then(function () {
        if (!_this._pdfDocument || pdfDocument && _this._pdfDocument !== pdfDocument) {
          return;
        }

        _this._extractText();

        var findbarClosed = !_this._highlightMatches;
        var pendingTimeout = !!_this._findTimeout;

        if (_this._findTimeout) {
          clearTimeout(_this._findTimeout);
          _this._findTimeout = null;
        }

        if (cmd === "find") {
          _this._findTimeout = setTimeout(function () {
            _this._nextMatch();

            _this._findTimeout = null;
          }, FIND_TIMEOUT);
        } else if (_this._dirtyMatch) {
          _this._nextMatch();
        } else if (cmd === "findagain") {
          _this._nextMatch();

          if (findbarClosed && _this._state.highlightAll) {
            _this._updateAllPages();
          }
        } else if (cmd === "findhighlightallchange") {
          if (pendingTimeout) {
            _this._nextMatch();
          } else {
            _this._highlightMatches = true;
          }

          _this._updateAllPages();
        } else {
          _this._nextMatch();
        }
      });
    }
  }, {
    key: "scrollMatchIntoView",
    value: function scrollMatchIntoView(_ref2) {
      var _ref2$element = _ref2.element,
          element = _ref2$element === void 0 ? null : _ref2$element,
          _ref2$pageIndex = _ref2.pageIndex,
          pageIndex = _ref2$pageIndex === void 0 ? -1 : _ref2$pageIndex,
          _ref2$matchIndex = _ref2.matchIndex,
          matchIndex = _ref2$matchIndex === void 0 ? -1 : _ref2$matchIndex;

      if (!this._scrollMatches || !element) {
        return;
      } else if (matchIndex === -1 || matchIndex !== this._selected.matchIdx) {
        return;
      } else if (pageIndex === -1 || pageIndex !== this._selected.pageIdx) {
        return;
      }

      this._scrollMatches = false;
      var spot = {
        top: MATCH_SCROLL_OFFSET_TOP,
        left: MATCH_SCROLL_OFFSET_LEFT
      };
      (0, _ui_utils.scrollIntoView)(element, spot, true);
    }
  }, {
    key: "_reset",
    value: function _reset() {
      this._highlightMatches = false;
      this._scrollMatches = false;
      this._pdfDocument = null;
      this._pageMatches = [];
      this._pageMatchesLength = [];
      this._state = null;
      this._selected = {
        pageIdx: -1,
        matchIdx: -1
      };
      this._offset = {
        pageIdx: null,
        matchIdx: null,
        wrapped: false
      };
      this._extractTextPromises = [];
      this._pageContents = [];
      this._matchesCountTotal = 0;
      this._pagesToSearch = null;
      this._pendingFindMatches = Object.create(null);
      this._resumePageIdx = null;
      this._dirtyMatch = false;
      clearTimeout(this._findTimeout);
      this._findTimeout = null;
      this._firstPageCapability = (0, _pdfjsLib.createPromiseCapability)();
    }
  }, {
    key: "_shouldDirtyMatch",
    value: function _shouldDirtyMatch(cmd, state) {
      if (state.query !== this._state.query) {
        return true;
      }

      switch (cmd) {
        case "findagain":
          var pageNumber = this._selected.pageIdx + 1;
          var linkService = this._linkService;

          if (pageNumber >= 1 && pageNumber <= linkService.pagesCount && pageNumber !== linkService.page && !linkService.isPageVisible(pageNumber)) {
            return true;
          }

          return false;

        case "findhighlightallchange":
          return false;
      }

      return true;
    }
  }, {
    key: "_prepareMatches",
    value: function _prepareMatches(matchesWithLength, matches, matchesLength) {
      function isSubTerm(currentIndex) {
        var currentElem = matchesWithLength[currentIndex];
        var nextElem = matchesWithLength[currentIndex + 1];

        if (currentIndex < matchesWithLength.length - 1 && currentElem.match === nextElem.match) {
          currentElem.skipped = true;
          return true;
        }

        for (var i = currentIndex - 1; i >= 0; i--) {
          var prevElem = matchesWithLength[i];

          if (prevElem.skipped) {
            continue;
          }

          if (prevElem.match + prevElem.matchLength < currentElem.match) {
            break;
          }

          if (prevElem.match + prevElem.matchLength >= currentElem.match + currentElem.matchLength) {
            currentElem.skipped = true;
            return true;
          }
        }

        return false;
      }

      matchesWithLength.sort(function (a, b) {
        return a.match === b.match ? a.matchLength - b.matchLength : a.match - b.match;
      });

      for (var i = 0, len = matchesWithLength.length; i < len; i++) {
        if (isSubTerm(i)) {
          continue;
        }

        matches.push(matchesWithLength[i].match);
        matchesLength.push(matchesWithLength[i].matchLength);
      }
    }
  }, {
    key: "_isEntireWord",
    value: function _isEntireWord(content, startIdx, length) {
      if (startIdx > 0) {
        var first = content.charCodeAt(startIdx);
        var limit = content.charCodeAt(startIdx - 1);

        if ((0, _pdf_find_utils.getCharacterType)(first) === (0, _pdf_find_utils.getCharacterType)(limit)) {
          return false;
        }
      }

      var endIdx = startIdx + length - 1;

      if (endIdx < content.length - 1) {
        var last = content.charCodeAt(endIdx);

        var _limit = content.charCodeAt(endIdx + 1);

        if ((0, _pdf_find_utils.getCharacterType)(last) === (0, _pdf_find_utils.getCharacterType)(_limit)) {
          return false;
        }
      }

      return true;
    }
  }, {
    key: "_calculatePhraseMatch",
    value: function _calculatePhraseMatch(query, pageIndex, pageContent, entireWord) {
      var matches = [];
      var queryLen = query.length;
      var matchIdx = -queryLen;

      while (true) {
        matchIdx = pageContent.indexOf(query, matchIdx + queryLen);

        if (matchIdx === -1) {
          break;
        }

        if (entireWord && !this._isEntireWord(pageContent, matchIdx, queryLen)) {
          continue;
        }

        matches.push(matchIdx);
      }

      this._pageMatches[pageIndex] = matches;
    }
  }, {
    key: "_calculateWordMatch",
    value: function _calculateWordMatch(query, pageIndex, pageContent, entireWord) {
      var matchesWithLength = [];
      var queryArray = query.match(/\S+/g);

      for (var i = 0, len = queryArray.length; i < len; i++) {
        var subquery = queryArray[i];
        var subqueryLen = subquery.length;
        var matchIdx = -subqueryLen;

        while (true) {
          matchIdx = pageContent.indexOf(subquery, matchIdx + subqueryLen);

          if (matchIdx === -1) {
            break;
          }

          if (entireWord && !this._isEntireWord(pageContent, matchIdx, subqueryLen)) {
            continue;
          }

          matchesWithLength.push({
            match: matchIdx,
            matchLength: subqueryLen,
            skipped: false
          });
        }
      }

      this._pageMatchesLength[pageIndex] = [];
      this._pageMatches[pageIndex] = [];

      this._prepareMatches(matchesWithLength, this._pageMatches[pageIndex], this._pageMatchesLength[pageIndex]);
    }
  }, {
    key: "_calculateMatch",
    value: function _calculateMatch(pageIndex) {
      var pageContent = this._pageContents[pageIndex];
      var query = this._query;
      var _this$_state = this._state,
          caseSensitive = _this$_state.caseSensitive,
          entireWord = _this$_state.entireWord,
          phraseSearch = _this$_state.phraseSearch;

      if (query.length === 0) {
        return;
      }

      if (!caseSensitive) {
        pageContent = pageContent.toLowerCase();
        query = query.toLowerCase();
      }

      if (phraseSearch) {
        this._calculatePhraseMatch(query, pageIndex, pageContent, entireWord);
      } else {
        this._calculateWordMatch(query, pageIndex, pageContent, entireWord);
      }

      if (this._state.highlightAll) {
        this._updatePage(pageIndex);
      }

      if (this._resumePageIdx === pageIndex) {
        this._resumePageIdx = null;

        this._nextPageMatch();
      }

      var pageMatchesCount = this._pageMatches[pageIndex].length;

      if (pageMatchesCount > 0) {
        this._matchesCountTotal += pageMatchesCount;

        this._updateUIResultsCount();
      }
    }
  }, {
    key: "_extractText",
    value: function _extractText() {
      var _this2 = this;

      if (this._extractTextPromises.length > 0) {
        return;
      }

      var promise = Promise.resolve();

      var _loop = function _loop(i, ii) {
        var extractTextCapability = (0, _pdfjsLib.createPromiseCapability)();
        _this2._extractTextPromises[i] = extractTextCapability.promise;
        promise = promise.then(function () {
          return _this2._pdfDocument.getPage(i + 1).then(function (pdfPage) {
            return pdfPage.getTextContent({
              normalizeWhitespace: true
            });
          }).then(function (textContent) {
            var textItems = textContent.items;
            var strBuf = [];

            for (var j = 0, jj = textItems.length; j < jj; j++) {
              strBuf.push(textItems[j].str);
            }

            _this2._pageContents[i] = normalize(strBuf.join(""));
            extractTextCapability.resolve(i);
          }, function (reason) {
            console.error("Unable to get text content for page ".concat(i + 1), reason);
            _this2._pageContents[i] = "";
            extractTextCapability.resolve(i);
          });
        });
      };

      for (var i = 0, ii = this._linkService.pagesCount; i < ii; i++) {
        _loop(i, ii);
      }
    }
  }, {
    key: "_updatePage",
    value: function _updatePage(index) {
      if (this._scrollMatches && this._selected.pageIdx === index) {
        this._linkService.page = index + 1;
      }

      this._eventBus.dispatch("updatetextlayermatches", {
        source: this,
        pageIndex: index
      });
    }
  }, {
    key: "_updateAllPages",
    value: function _updateAllPages() {
      this._eventBus.dispatch("updatetextlayermatches", {
        source: this,
        pageIndex: -1
      });
    }
  }, {
    key: "_nextMatch",
    value: function _nextMatch() {
      var _this3 = this;

      var previous = this._state.findPrevious;
      var currentPageIndex = this._linkService.page - 1;
      var numPages = this._linkService.pagesCount;
      this._highlightMatches = true;

      if (this._dirtyMatch) {
        this._dirtyMatch = false;
        this._selected.pageIdx = this._selected.matchIdx = -1;
        this._offset.pageIdx = currentPageIndex;
        this._offset.matchIdx = null;
        this._offset.wrapped = false;
        this._resumePageIdx = null;
        this._pageMatches.length = 0;
        this._pageMatchesLength.length = 0;
        this._matchesCountTotal = 0;

        this._updateAllPages();

        for (var i = 0; i < numPages; i++) {
          if (this._pendingFindMatches[i] === true) {
            continue;
          }

          this._pendingFindMatches[i] = true;

          this._extractTextPromises[i].then(function (pageIdx) {
            delete _this3._pendingFindMatches[pageIdx];

            _this3._calculateMatch(pageIdx);
          });
        }
      }

      if (this._query === "") {
        this._updateUIState(FindState.FOUND);

        return;
      }

      if (this._resumePageIdx) {
        return;
      }

      var offset = this._offset;
      this._pagesToSearch = numPages;

      if (offset.matchIdx !== null) {
        var numPageMatches = this._pageMatches[offset.pageIdx].length;

        if (!previous && offset.matchIdx + 1 < numPageMatches || previous && offset.matchIdx > 0) {
          offset.matchIdx = previous ? offset.matchIdx - 1 : offset.matchIdx + 1;

          this._updateMatch(true);

          return;
        }

        this._advanceOffsetPage(previous);
      }

      this._nextPageMatch();
    }
  }, {
    key: "_matchesReady",
    value: function _matchesReady(matches) {
      var offset = this._offset;
      var numMatches = matches.length;
      var previous = this._state.findPrevious;

      if (numMatches) {
        offset.matchIdx = previous ? numMatches - 1 : 0;

        this._updateMatch(true);

        return true;
      }

      this._advanceOffsetPage(previous);

      if (offset.wrapped) {
        offset.matchIdx = null;

        if (this._pagesToSearch < 0) {
          this._updateMatch(false);

          return true;
        }
      }

      return false;
    }
  }, {
    key: "_nextPageMatch",
    value: function _nextPageMatch() {
      if (this._resumePageIdx !== null) {
        console.error("There can only be one pending page.");
      }

      var matches = null;

      do {
        var pageIdx = this._offset.pageIdx;
        matches = this._pageMatches[pageIdx];

        if (!matches) {
          this._resumePageIdx = pageIdx;
          break;
        }
      } while (!this._matchesReady(matches));
    }
  }, {
    key: "_advanceOffsetPage",
    value: function _advanceOffsetPage(previous) {
      var offset = this._offset;
      var numPages = this._linkService.pagesCount;
      offset.pageIdx = previous ? offset.pageIdx - 1 : offset.pageIdx + 1;
      offset.matchIdx = null;
      this._pagesToSearch--;

      if (offset.pageIdx >= numPages || offset.pageIdx < 0) {
        offset.pageIdx = previous ? numPages - 1 : 0;
        offset.wrapped = true;
      }
    }
  }, {
    key: "_updateMatch",
    value: function _updateMatch() {
      var found = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
      var state = FindState.NOT_FOUND;
      var wrapped = this._offset.wrapped;
      this._offset.wrapped = false;

      if (found) {
        var previousPage = this._selected.pageIdx;
        this._selected.pageIdx = this._offset.pageIdx;
        this._selected.matchIdx = this._offset.matchIdx;
        state = wrapped ? FindState.WRAPPED : FindState.FOUND;

        if (previousPage !== -1 && previousPage !== this._selected.pageIdx) {
          this._updatePage(previousPage);
        }
      }

      this._updateUIState(state, this._state.findPrevious);

      if (this._selected.pageIdx !== -1) {
        this._scrollMatches = true;

        this._updatePage(this._selected.pageIdx);
      }
    }
  }, {
    key: "_onFindBarClose",
    value: function _onFindBarClose(evt) {
      var _this4 = this;

      var pdfDocument = this._pdfDocument;

      this._firstPageCapability.promise.then(function () {
        if (!_this4._pdfDocument || pdfDocument && _this4._pdfDocument !== pdfDocument) {
          return;
        }

        if (_this4._findTimeout) {
          clearTimeout(_this4._findTimeout);
          _this4._findTimeout = null;
        }

        if (_this4._resumePageIdx) {
          _this4._resumePageIdx = null;
          _this4._dirtyMatch = true;
        }

        _this4._updateUIState(FindState.FOUND);

        _this4._highlightMatches = false;

        _this4._updateAllPages();
      });
    }
  }, {
    key: "_requestMatchesCount",
    value: function _requestMatchesCount() {
      var _this$_selected = this._selected,
          pageIdx = _this$_selected.pageIdx,
          matchIdx = _this$_selected.matchIdx;
      var current = 0,
          total = this._matchesCountTotal;

      if (matchIdx !== -1) {
        for (var i = 0; i < pageIdx; i++) {
          current += this._pageMatches[i] && this._pageMatches[i].length || 0;
        }

        current += matchIdx + 1;
      }

      if (current < 1 || current > total) {
        current = total = 0;
      }

      return {
        current: current,
        total: total
      };
    }
  }, {
    key: "_updateUIResultsCount",
    value: function _updateUIResultsCount() {
      this._eventBus.dispatch("updatefindmatchescount", {
        source: this,
        matchesCount: this._requestMatchesCount()
      });
    }
  }, {
    key: "_updateUIState",
    value: function _updateUIState(state, previous) {
      this._eventBus.dispatch("updatefindcontrolstate", {
        source: this,
        state: state,
        previous: previous,
        matchesCount: this._requestMatchesCount(),
        rawQuery: this._state ? this._state.query : null
      });
    }
  }, {
    key: "highlightMatches",
    get: function get() {
      return this._highlightMatches;
    }
  }, {
    key: "pageMatches",
    get: function get() {
      return this._pageMatches;
    }
  }, {
    key: "pageMatchesLength",
    get: function get() {
      return this._pageMatchesLength;
    }
  }, {
    key: "selected",
    get: function get() {
      return this._selected;
    }
  }, {
    key: "state",
    get: function get() {
      return this._state;
    }
  }, {
    key: "_query",
    get: function get() {
      if (this._state.query !== this._rawQuery) {
        this._rawQuery = this._state.query;
        this._normalizedQuery = normalize(this._state.query);
      }

      return this._normalizedQuery;
    }
  }]);

  return PDFFindController;
}();

exports.PDFFindController = PDFFindController;

/***/ }),
/* 14 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getCharacterType = getCharacterType;
exports.CharacterType = void 0;
var CharacterType = {
  SPACE: 0,
  ALPHA_LETTER: 1,
  PUNCT: 2,
  HAN_LETTER: 3,
  KATAKANA_LETTER: 4,
  HIRAGANA_LETTER: 5,
  HALFWIDTH_KATAKANA_LETTER: 6,
  THAI_LETTER: 7
};
exports.CharacterType = CharacterType;

function isAlphabeticalScript(charCode) {
  return charCode < 0x2e80;
}

function isAscii(charCode) {
  return (charCode & 0xff80) === 0;
}

function isAsciiAlpha(charCode) {
  return charCode >= 0x61 && charCode <= 0x7a || charCode >= 0x41 && charCode <= 0x5a;
}

function isAsciiDigit(charCode) {
  return charCode >= 0x30 && charCode <= 0x39;
}

function isAsciiSpace(charCode) {
  return charCode === 0x20 || charCode === 0x09 || charCode === 0x0d || charCode === 0x0a;
}

function isHan(charCode) {
  return charCode >= 0x3400 && charCode <= 0x9fff || charCode >= 0xf900 && charCode <= 0xfaff;
}

function isKatakana(charCode) {
  return charCode >= 0x30a0 && charCode <= 0x30ff;
}

function isHiragana(charCode) {
  return charCode >= 0x3040 && charCode <= 0x309f;
}

function isHalfwidthKatakana(charCode) {
  return charCode >= 0xff60 && charCode <= 0xff9f;
}

function isThai(charCode) {
  return (charCode & 0xff80) === 0x0e00;
}

function getCharacterType(charCode) {
  if (isAlphabeticalScript(charCode)) {
    if (isAscii(charCode)) {
      if (isAsciiSpace(charCode)) {
        return CharacterType.SPACE;
      } else if (isAsciiAlpha(charCode) || isAsciiDigit(charCode) || charCode === 0x5f) {
        return CharacterType.ALPHA_LETTER;
      }

      return CharacterType.PUNCT;
    } else if (isThai(charCode)) {
      return CharacterType.THAI_LETTER;
    } else if (charCode === 0xa0) {
      return CharacterType.SPACE;
    }

    return CharacterType.ALPHA_LETTER;
  }

  if (isHan(charCode)) {
    return CharacterType.HAN_LETTER;
  } else if (isKatakana(charCode)) {
    return CharacterType.KATAKANA_LETTER;
  } else if (isHiragana(charCode)) {
    return CharacterType.HIRAGANA_LETTER;
  } else if (isHalfwidthKatakana(charCode)) {
    return CharacterType.HALFWIDTH_KATAKANA_LETTER;
  }

  return CharacterType.ALPHA_LETTER;
}

/***/ }),
/* 15 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isDestHashesEqual = isDestHashesEqual;
exports.isDestArraysEqual = isDestArraysEqual;
exports.PDFHistory = void 0;

var _ui_utils = __w_pdfjs_require__(3);

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var HASH_CHANGE_TIMEOUT = 1000;
var POSITION_UPDATED_THRESHOLD = 50;
var UPDATE_VIEWAREA_TIMEOUT = 1000;

function getCurrentHash() {
  return document.location.hash;
}

var PDFHistory = /*#__PURE__*/function () {
  function PDFHistory(_ref) {
    var _this = this;

    var linkService = _ref.linkService,
        eventBus = _ref.eventBus;

    _classCallCheck(this, PDFHistory);

    this.linkService = linkService;
    this.eventBus = eventBus;
    this._initialized = false;
    this._fingerprint = "";
    this.reset();
    this._boundEvents = null;
    this._isViewerInPresentationMode = false;

    this.eventBus._on("presentationmodechanged", function (evt) {
      _this._isViewerInPresentationMode = evt.active || evt.switchInProgress;
    });

    this.eventBus._on("pagesinit", function () {
      _this._isPagesLoaded = false;

      var onPagesLoaded = function onPagesLoaded(evt) {
        _this.eventBus._off("pagesloaded", onPagesLoaded);

        _this._isPagesLoaded = !!evt.pagesCount;
      };

      _this.eventBus._on("pagesloaded", onPagesLoaded);
    });
  }

  _createClass(PDFHistory, [{
    key: "initialize",
    value: function initialize(_ref2) {
      var fingerprint = _ref2.fingerprint,
          _ref2$resetHistory = _ref2.resetHistory,
          resetHistory = _ref2$resetHistory === void 0 ? false : _ref2$resetHistory,
          _ref2$updateUrl = _ref2.updateUrl,
          updateUrl = _ref2$updateUrl === void 0 ? false : _ref2$updateUrl;

      if (!fingerprint || typeof fingerprint !== "string") {
        console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');
        return;
      }

      if (this._initialized) {
        this.reset();
      }

      var reInitialized = this._fingerprint !== "" && this._fingerprint !== fingerprint;
      this._fingerprint = fingerprint;
      this._updateUrl = updateUrl === true;
      this._initialized = true;

      this._bindEvents();

      var state = window.history.state;
      this._popStateInProgress = false;
      this._blockHashChange = 0;
      this._currentHash = getCurrentHash();
      this._numPositionUpdates = 0;
      this._uid = this._maxUid = 0;
      this._destination = null;
      this._position = null;

      if (!this._isValidState(state, true) || resetHistory) {
        var _this$_parseCurrentHa = this._parseCurrentHash(true),
            hash = _this$_parseCurrentHa.hash,
            page = _this$_parseCurrentHa.page,
            rotation = _this$_parseCurrentHa.rotation;

        if (!hash || reInitialized || resetHistory) {
          this._pushOrReplaceState(null, true);

          return;
        }

        this._pushOrReplaceState({
          hash: hash,
          page: page,
          rotation: rotation
        }, true);

        return;
      }

      var destination = state.destination;

      this._updateInternalState(destination, state.uid, true);

      if (this._uid > this._maxUid) {
        this._maxUid = this._uid;
      }

      if (destination.rotation !== undefined) {
        this._initialRotation = destination.rotation;
      }

      if (destination.dest) {
        this._initialBookmark = JSON.stringify(destination.dest);
        this._destination.page = null;
      } else if (destination.hash) {
        this._initialBookmark = destination.hash;
      } else if (destination.page) {
        this._initialBookmark = "page=".concat(destination.page);
      }
    }
  }, {
    key: "reset",
    value: function reset() {
      if (this._initialized) {
        this._pageHide();

        this._initialized = false;

        this._unbindEvents();
      }

      if (this._updateViewareaTimeout) {
        clearTimeout(this._updateViewareaTimeout);
        this._updateViewareaTimeout = null;
      }

      this._initialBookmark = null;
      this._initialRotation = null;
    }
  }, {
    key: "push",
    value: function push(_ref3) {
      var _this2 = this;

      var _ref3$namedDest = _ref3.namedDest,
          namedDest = _ref3$namedDest === void 0 ? null : _ref3$namedDest,
          explicitDest = _ref3.explicitDest,
          pageNumber = _ref3.pageNumber;

      if (!this._initialized) {
        return;
      }

      if (namedDest && typeof namedDest !== "string") {
        console.error("PDFHistory.push: " + "\"".concat(namedDest, "\" is not a valid namedDest parameter."));
        return;
      } else if (!Array.isArray(explicitDest)) {
        console.error("PDFHistory.push: " + "\"".concat(explicitDest, "\" is not a valid explicitDest parameter."));
        return;
      } else if (!(Number.isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.linkService.pagesCount)) {
        if (pageNumber !== null || this._destination) {
          console.error("PDFHistory.push: " + "\"".concat(pageNumber, "\" is not a valid pageNumber parameter."));
          return;
        }
      }

      var hash = namedDest || JSON.stringify(explicitDest);

      if (!hash) {
        return;
      }

      var forceReplace = false;

      if (this._destination && (isDestHashesEqual(this._destination.hash, hash) || isDestArraysEqual(this._destination.dest, explicitDest))) {
        if (this._destination.page) {
          return;
        }

        forceReplace = true;
      }

      if (this._popStateInProgress && !forceReplace) {
        return;
      }

      this._pushOrReplaceState({
        dest: explicitDest,
        hash: hash,
        page: pageNumber,
        rotation: this.linkService.rotation
      }, forceReplace);

      if (!this._popStateInProgress) {
        this._popStateInProgress = true;
        Promise.resolve().then(function () {
          _this2._popStateInProgress = false;
        });
      }
    }
  }, {
    key: "pushCurrentPosition",
    value: function pushCurrentPosition() {
      if (!this._initialized || this._popStateInProgress) {
        return;
      }

      this._tryPushCurrentPosition();
    }
  }, {
    key: "back",
    value: function back() {
      if (!this._initialized || this._popStateInProgress) {
        return;
      }

      var state = window.history.state;

      if (this._isValidState(state) && state.uid > 0) {
        window.history.back();
      }
    }
  }, {
    key: "forward",
    value: function forward() {
      if (!this._initialized || this._popStateInProgress) {
        return;
      }

      var state = window.history.state;

      if (this._isValidState(state) && state.uid < this._maxUid) {
        window.history.forward();
      }
    }
  }, {
    key: "_pushOrReplaceState",
    value: function _pushOrReplaceState(destination) {
      var forceReplace = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
      var shouldReplace = forceReplace || !this._destination;
      var newState = {
        fingerprint: this._fingerprint,
        uid: shouldReplace ? this._uid : this._uid + 1,
        destination: destination
      };

      this._updateInternalState(destination, newState.uid);

      var newUrl;

      if (this._updateUrl && destination && destination.hash) {
        var baseUrl = document.location.href.split("#")[0];

        if (!baseUrl.startsWith("file://")) {
          newUrl = "".concat(baseUrl, "#").concat(destination.hash);
        }
      }

      if (shouldReplace) {
        window.history.replaceState(newState, "", newUrl);
      } else {
        this._maxUid = this._uid;
        window.history.pushState(newState, "", newUrl);
      }
    }
  }, {
    key: "_tryPushCurrentPosition",
    value: function _tryPushCurrentPosition() {
      var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

      if (!this._position) {
        return;
      }

      var position = this._position;

      if (temporary) {
        position = Object.assign(Object.create(null), this._position);
        position.temporary = true;
      }

      if (!this._destination) {
        this._pushOrReplaceState(position);

        return;
      }

      if (this._destination.temporary) {
        this._pushOrReplaceState(position, true);

        return;
      }

      if (this._destination.hash === position.hash) {
        return;
      }

      if (!this._destination.page && (POSITION_UPDATED_THRESHOLD <= 0 || this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) {
        return;
      }

      var forceReplace = false;

      if (this._destination.page >= position.first && this._destination.page <= position.page) {
        if (this._destination.dest || !this._destination.first) {
          return;
        }

        forceReplace = true;
      }

      this._pushOrReplaceState(position, forceReplace);
    }
  }, {
    key: "_isValidState",
    value: function _isValidState(state) {
      var checkReload = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

      if (!state) {
        return false;
      }

      if (state.fingerprint !== this._fingerprint) {
        if (checkReload) {
          if (typeof state.fingerprint !== "string" || state.fingerprint.length !== this._fingerprint.length) {
            return false;
          }

          var _performance$getEntri = performance.getEntriesByType("navigation"),
              _performance$getEntri2 = _slicedToArray(_performance$getEntri, 1),
              perfEntry = _performance$getEntri2[0];

          if (!perfEntry || perfEntry.type !== "reload") {
            return false;
          }
        } else {
          return false;
        }
      }

      if (!Number.isInteger(state.uid) || state.uid < 0) {
        return false;
      }

      if (state.destination === null || _typeof(state.destination) !== "object") {
        return false;
      }

      return true;
    }
  }, {
    key: "_updateInternalState",
    value: function _updateInternalState(destination, uid) {
      var removeTemporary = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

      if (this._updateViewareaTimeout) {
        clearTimeout(this._updateViewareaTimeout);
        this._updateViewareaTimeout = null;
      }

      if (removeTemporary && destination && destination.temporary) {
        delete destination.temporary;
      }

      this._destination = destination;
      this._uid = uid;
      this._numPositionUpdates = 0;
    }
  }, {
    key: "_parseCurrentHash",
    value: function _parseCurrentHash() {
      var checkNameddest = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
      var hash = unescape(getCurrentHash()).substring(1);
      var params = (0, _ui_utils.parseQueryString)(hash);
      var nameddest = params.nameddest || "";
      var page = params.page | 0;

      if (!(Number.isInteger(page) && page > 0 && page <= this.linkService.pagesCount) || checkNameddest && nameddest.length > 0) {
        page = null;
      }

      return {
        hash: hash,
        page: page,
        rotation: this.linkService.rotation
      };
    }
  }, {
    key: "_updateViewarea",
    value: function _updateViewarea(_ref4) {
      var _this3 = this;

      var location = _ref4.location;

      if (this._updateViewareaTimeout) {
        clearTimeout(this._updateViewareaTimeout);
        this._updateViewareaTimeout = null;
      }

      this._position = {
        hash: this._isViewerInPresentationMode ? "page=".concat(location.pageNumber) : location.pdfOpenParams.substring(1),
        page: this.linkService.page,
        first: location.pageNumber,
        rotation: location.rotation
      };

      if (this._popStateInProgress) {
        return;
      }

      if (POSITION_UPDATED_THRESHOLD > 0 && this._isPagesLoaded && this._destination && !this._destination.page) {
        this._numPositionUpdates++;
      }

      if (UPDATE_VIEWAREA_TIMEOUT > 0) {
        this._updateViewareaTimeout = setTimeout(function () {
          if (!_this3._popStateInProgress) {
            _this3._tryPushCurrentPosition(true);
          }

          _this3._updateViewareaTimeout = null;
        }, UPDATE_VIEWAREA_TIMEOUT);
      }
    }
  }, {
    key: "_popState",
    value: function _popState(_ref5) {
      var _this4 = this;

      var state = _ref5.state;
      var newHash = getCurrentHash(),
          hashChanged = this._currentHash !== newHash;
      this._currentHash = newHash;

      if (!state) {
        this._uid++;

        var _this$_parseCurrentHa2 = this._parseCurrentHash(),
            hash = _this$_parseCurrentHa2.hash,
            page = _this$_parseCurrentHa2.page,
            rotation = _this$_parseCurrentHa2.rotation;

        this._pushOrReplaceState({
          hash: hash,
          page: page,
          rotation: rotation
        }, true);

        return;
      }

      if (!this._isValidState(state)) {
        return;
      }

      this._popStateInProgress = true;

      if (hashChanged) {
        this._blockHashChange++;
        (0, _ui_utils.waitOnEventOrTimeout)({
          target: window,
          name: "hashchange",
          delay: HASH_CHANGE_TIMEOUT
        }).then(function () {
          _this4._blockHashChange--;
        });
      }

      var destination = state.destination;

      this._updateInternalState(destination, state.uid, true);

      if (this._uid > this._maxUid) {
        this._maxUid = this._uid;
      }

      if ((0, _ui_utils.isValidRotation)(destination.rotation)) {
        this.linkService.rotation = destination.rotation;
      }

      if (destination.dest) {
        this.linkService.navigateTo(destination.dest);
      } else if (destination.hash) {
        this.linkService.setHash(destination.hash);
      } else if (destination.page) {
        this.linkService.page = destination.page;
      }

      Promise.resolve().then(function () {
        _this4._popStateInProgress = false;
      });
    }
  }, {
    key: "_pageHide",
    value: function _pageHide() {
      if (!this._destination || this._destination.temporary) {
        this._tryPushCurrentPosition();
      }
    }
  }, {
    key: "_bindEvents",
    value: function _bindEvents() {
      if (this._boundEvents) {
        return;
      }

      this._boundEvents = {
        updateViewarea: this._updateViewarea.bind(this),
        popState: this._popState.bind(this),
        pageHide: this._pageHide.bind(this)
      };

      this.eventBus._on("updateviewarea", this._boundEvents.updateViewarea);

      window.addEventListener("popstate", this._boundEvents.popState);
      window.addEventListener("pagehide", this._boundEvents.pageHide);
    }
  }, {
    key: "_unbindEvents",
    value: function _unbindEvents() {
      if (!this._boundEvents) {
        return;
      }

      this.eventBus._off("updateviewarea", this._boundEvents.updateViewarea);

      window.removeEventListener("popstate", this._boundEvents.popState);
      window.removeEventListener("pagehide", this._boundEvents.pageHide);
      this._boundEvents = null;
    }
  }, {
    key: "popStateInProgress",
    get: function get() {
      return this._initialized && (this._popStateInProgress || this._blockHashChange > 0);
    }
  }, {
    key: "initialBookmark",
    get: function get() {
      return this._initialized ? this._initialBookmark : null;
    }
  }, {
    key: "initialRotation",
    get: function get() {
      return this._initialized ? this._initialRotation : null;
    }
  }]);

  return PDFHistory;
}();

exports.PDFHistory = PDFHistory;

function isDestHashesEqual(destHash, pushHash) {
  if (typeof destHash !== "string" || typeof pushHash !== "string") {
    return false;
  }

  if (destHash === pushHash) {
    return true;
  }

  var _parseQueryString = (0, _ui_utils.parseQueryString)(destHash),
      nameddest = _parseQueryString.nameddest;

  if (nameddest === pushHash) {
    return true;
  }

  return false;
}

function isDestArraysEqual(firstDest, secondDest) {
  function isEntryEqual(first, second) {
    if (_typeof(first) !== _typeof(second)) {
      return false;
    }

    if (Array.isArray(first) || Array.isArray(second)) {
      return false;
    }

    if (first !== null && _typeof(first) === "object" && second !== null) {
      if (Object.keys(first).length !== Object.keys(second).length) {
        return false;
      }

      for (var key in first) {
        if (!isEntryEqual(first[key], second[key])) {
          return false;
        }
      }

      return true;
    }

    return first === second || Number.isNaN(first) && Number.isNaN(second);
  }

  if (!(Array.isArray(firstDest) && Array.isArray(secondDest))) {
    return false;
  }

  if (firstDest.length !== secondDest.length) {
    return false;
  }

  for (var i = 0, ii = firstDest.length; i < ii; i++) {
    if (!isEntryEqual(firstDest[i], secondDest[i])) {
      return false;
    }
  }

  return true;
}

/***/ }),
/* 16 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFPageView = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(4));

var _ui_utils = __w_pdfjs_require__(3);

var _pdfjsLib = __w_pdfjs_require__(2);

var _pdf_rendering_queue = __w_pdfjs_require__(17);

var _viewer_compatibility = __w_pdfjs_require__(10);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var MAX_CANVAS_PIXELS = _viewer_compatibility.viewerCompatibilityParams.maxCanvasPixels || 16777216;

var PDFPageView = /*#__PURE__*/function () {
  function PDFPageView(options) {
    _classCallCheck(this, PDFPageView);

    var container = options.container;
    var defaultViewport = options.defaultViewport;
    this.id = options.id;
    this.renderingId = "page" + this.id;
    this.pdfPage = null;
    this.pageLabel = null;
    this.rotation = 0;
    this.scale = options.scale || _ui_utils.DEFAULT_SCALE;
    this.viewport = defaultViewport;
    this.pdfPageRotate = defaultViewport.rotation;
    this._annotationStorage = options.annotationStorage || null;
    this._optionalContentConfigPromise = options.optionalContentConfigPromise || null;
    this.hasRestrictedScaling = false;
    this.textLayerMode = Number.isInteger(options.textLayerMode) ? options.textLayerMode : _ui_utils.TextLayerMode.ENABLE;
    this.imageResourcesPath = options.imageResourcesPath || "";
    this.renderInteractiveForms = typeof options.renderInteractiveForms === "boolean" ? options.renderInteractiveForms : true;
    this.useOnlyCssZoom = options.useOnlyCssZoom || false;
    this.maxCanvasPixels = options.maxCanvasPixels || MAX_CANVAS_PIXELS;
    this.eventBus = options.eventBus;
    this.renderingQueue = options.renderingQueue;
    this.textLayerFactory = options.textLayerFactory;
    this.annotationLayerFactory = options.annotationLayerFactory;
    this.renderer = options.renderer || _ui_utils.RendererType.CANVAS;
    this.enableWebGL = options.enableWebGL || false;
    this.l10n = options.l10n || _ui_utils.NullL10n;
    this.paintTask = null;
    this.paintedViewportMap = new WeakMap();
    this.renderingState = _pdf_rendering_queue.RenderingStates.INITIAL;
    this.resume = null;
    this.error = null;
    this.annotationLayer = null;
    this.textLayer = null;
    this.zoomLayer = null;
    var div = document.createElement("div");
    div.className = "page";
    div.style.width = Math.floor(this.viewport.width) + "px";
    div.style.height = Math.floor(this.viewport.height) + "px";
    div.setAttribute("data-page-number", this.id);
    this.div = div;
    container.appendChild(div);
  }

  _createClass(PDFPageView, [{
    key: "setPdfPage",
    value: function setPdfPage(pdfPage) {
      this.pdfPage = pdfPage;
      this.pdfPageRotate = pdfPage.rotate;
      var totalRotation = (this.rotation + this.pdfPageRotate) % 360;
      this.viewport = pdfPage.getViewport({
        scale: this.scale * _ui_utils.CSS_UNITS,
        rotation: totalRotation
      });
      this.stats = pdfPage.stats;
      this.reset();
    }
  }, {
    key: "destroy",
    value: function destroy() {
      this.reset();

      if (this.pdfPage) {
        this.pdfPage.cleanup();
      }
    }
  }, {
    key: "_renderAnnotationLayer",
    value: function () {
      var _renderAnnotationLayer2 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var error;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                error = null;
                _context.prev = 1;
                _context.next = 4;
                return this.annotationLayer.render(this.viewport, "display");

              case 4:
                _context.next = 9;
                break;

              case 6:
                _context.prev = 6;
                _context.t0 = _context["catch"](1);
                error = _context.t0;

              case 9:
                _context.prev = 9;
                this.eventBus.dispatch("annotationlayerrendered", {
                  source: this,
                  pageNumber: this.id,
                  error: error
                });
                return _context.finish(9);

              case 12:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this, [[1, 6, 9, 12]]);
      }));

      function _renderAnnotationLayer() {
        return _renderAnnotationLayer2.apply(this, arguments);
      }

      return _renderAnnotationLayer;
    }()
  }, {
    key: "_resetZoomLayer",
    value: function _resetZoomLayer() {
      var removeFromDOM = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

      if (!this.zoomLayer) {
        return;
      }

      var zoomLayerCanvas = this.zoomLayer.firstChild;
      this.paintedViewportMap["delete"](zoomLayerCanvas);
      zoomLayerCanvas.width = 0;
      zoomLayerCanvas.height = 0;

      if (removeFromDOM) {
        this.zoomLayer.remove();
      }

      this.zoomLayer = null;
    }
  }, {
    key: "reset",
    value: function reset() {
      var keepZoomLayer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
      var keepAnnotations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
      this.cancelRendering(keepAnnotations);
      this.renderingState = _pdf_rendering_queue.RenderingStates.INITIAL;
      var div = this.div;
      div.style.width = Math.floor(this.viewport.width) + "px";
      div.style.height = Math.floor(this.viewport.height) + "px";
      var childNodes = div.childNodes;
      var currentZoomLayerNode = keepZoomLayer && this.zoomLayer || null;
      var currentAnnotationNode = keepAnnotations && this.annotationLayer && this.annotationLayer.div || null;

      for (var i = childNodes.length - 1; i >= 0; i--) {
        var node = childNodes[i];

        if (currentZoomLayerNode === node || currentAnnotationNode === node) {
          continue;
        }

        div.removeChild(node);
      }

      div.removeAttribute("data-loaded");

      if (currentAnnotationNode) {
        this.annotationLayer.hide();
      } else if (this.annotationLayer) {
        this.annotationLayer.cancel();
        this.annotationLayer = null;
      }

      if (!currentZoomLayerNode) {
        if (this.canvas) {
          this.paintedViewportMap["delete"](this.canvas);
          this.canvas.width = 0;
          this.canvas.height = 0;
          delete this.canvas;
        }

        this._resetZoomLayer();
      }

      if (this.svg) {
        this.paintedViewportMap["delete"](this.svg);
        delete this.svg;
      }

      this.loadingIconDiv = document.createElement("div");
      this.loadingIconDiv.className = "loadingIcon";
      div.appendChild(this.loadingIconDiv);
    }
  }, {
    key: "update",
    value: function update(scale, rotation) {
      var optionalContentConfigPromise = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
      this.scale = scale || this.scale;

      if (typeof rotation !== "undefined") {
        this.rotation = rotation;
      }

      if (optionalContentConfigPromise instanceof Promise) {
        this._optionalContentConfigPromise = optionalContentConfigPromise;
      }

      var totalRotation = (this.rotation + this.pdfPageRotate) % 360;
      this.viewport = this.viewport.clone({
        scale: this.scale * _ui_utils.CSS_UNITS,
        rotation: totalRotation
      });

      if (this.svg) {
        this.cssTransform(this.svg, true);
        this.eventBus.dispatch("pagerendered", {
          source: this,
          pageNumber: this.id,
          cssTransform: true,
          timestamp: performance.now()
        });
        return;
      }

      var isScalingRestricted = false;

      if (this.canvas && this.maxCanvasPixels > 0) {
        var outputScale = this.outputScale;

        if ((Math.floor(this.viewport.width) * outputScale.sx | 0) * (Math.floor(this.viewport.height) * outputScale.sy | 0) > this.maxCanvasPixels) {
          isScalingRestricted = true;
        }
      }

      if (this.canvas) {
        if (this.useOnlyCssZoom || this.hasRestrictedScaling && isScalingRestricted) {
          this.cssTransform(this.canvas, true);
          this.eventBus.dispatch("pagerendered", {
            source: this,
            pageNumber: this.id,
            cssTransform: true,
            timestamp: performance.now()
          });
          return;
        }

        if (!this.zoomLayer && !this.canvas.hasAttribute("hidden")) {
          this.zoomLayer = this.canvas.parentNode;
          this.zoomLayer.style.position = "absolute";
        }
      }

      if (this.zoomLayer) {
        this.cssTransform(this.zoomLayer.firstChild);
      }

      this.reset(true, true);
    }
  }, {
    key: "cancelRendering",
    value: function cancelRendering() {
      var keepAnnotations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

      if (this.paintTask) {
        this.paintTask.cancel();
        this.paintTask = null;
      }

      this.resume = null;

      if (this.textLayer) {
        this.textLayer.cancel();
        this.textLayer = null;
      }

      if (!keepAnnotations && this.annotationLayer) {
        this.annotationLayer.cancel();
        this.annotationLayer = null;
      }
    }
  }, {
    key: "cssTransform",
    value: function cssTransform(target) {
      var redrawAnnotations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
      var width = this.viewport.width;
      var height = this.viewport.height;
      var div = this.div;
      target.style.width = target.parentNode.style.width = div.style.width = Math.floor(width) + "px";
      target.style.height = target.parentNode.style.height = div.style.height = Math.floor(height) + "px";
      var relativeRotation = this.viewport.rotation - this.paintedViewportMap.get(target).rotation;
      var absRotation = Math.abs(relativeRotation);
      var scaleX = 1,
          scaleY = 1;

      if (absRotation === 90 || absRotation === 270) {
        scaleX = height / width;
        scaleY = width / height;
      }

      var cssTransform = "rotate(" + relativeRotation + "deg) " + "scale(" + scaleX + "," + scaleY + ")";
      target.style.transform = cssTransform;

      if (this.textLayer) {
        var textLayerViewport = this.textLayer.viewport;
        var textRelativeRotation = this.viewport.rotation - textLayerViewport.rotation;
        var textAbsRotation = Math.abs(textRelativeRotation);
        var scale = width / textLayerViewport.width;

        if (textAbsRotation === 90 || textAbsRotation === 270) {
          scale = width / textLayerViewport.height;
        }

        var textLayerDiv = this.textLayer.textLayerDiv;
        var transX, transY;

        switch (textAbsRotation) {
          case 0:
            transX = transY = 0;
            break;

          case 90:
            transX = 0;
            transY = "-" + textLayerDiv.style.height;
            break;

          case 180:
            transX = "-" + textLayerDiv.style.width;
            transY = "-" + textLayerDiv.style.height;
            break;

          case 270:
            transX = "-" + textLayerDiv.style.width;
            transY = 0;
            break;

          default:
            console.error("Bad rotation value.");
            break;
        }

        textLayerDiv.style.transform = "rotate(" + textAbsRotation + "deg) " + "scale(" + scale + ", " + scale + ") " + "translate(" + transX + ", " + transY + ")";
        textLayerDiv.style.transformOrigin = "0% 0%";
      }

      if (redrawAnnotations && this.annotationLayer) {
        this._renderAnnotationLayer();
      }
    }
  }, {
    key: "getPagePoint",
    value: function getPagePoint(x, y) {
      return this.viewport.convertToPdfPoint(x, y);
    }
  }, {
    key: "draw",
    value: function draw() {
      var _this = this;

      if (this.renderingState !== _pdf_rendering_queue.RenderingStates.INITIAL) {
        console.error("Must be in new state before drawing");
        this.reset();
      }

      var div = this.div,
          pdfPage = this.pdfPage;

      if (!pdfPage) {
        this.renderingState = _pdf_rendering_queue.RenderingStates.FINISHED;

        if (this.loadingIconDiv) {
          div.removeChild(this.loadingIconDiv);
          delete this.loadingIconDiv;
        }

        return Promise.reject(new Error("pdfPage is not loaded"));
      }

      this.renderingState = _pdf_rendering_queue.RenderingStates.RUNNING;
      var canvasWrapper = document.createElement("div");
      canvasWrapper.style.width = div.style.width;
      canvasWrapper.style.height = div.style.height;
      canvasWrapper.classList.add("canvasWrapper");

      if (this.annotationLayer && this.annotationLayer.div) {
        div.insertBefore(canvasWrapper, this.annotationLayer.div);
      } else {
        div.appendChild(canvasWrapper);
      }

      var textLayer = null;

      if (this.textLayerMode !== _ui_utils.TextLayerMode.DISABLE && this.textLayerFactory) {
        var textLayerDiv = document.createElement("div");
        textLayerDiv.className = "textLayer";
        textLayerDiv.style.width = canvasWrapper.style.width;
        textLayerDiv.style.height = canvasWrapper.style.height;

        if (this.annotationLayer && this.annotationLayer.div) {
          div.insertBefore(textLayerDiv, this.annotationLayer.div);
        } else {
          div.appendChild(textLayerDiv);
        }

        textLayer = this.textLayerFactory.createTextLayerBuilder(textLayerDiv, this.id - 1, this.viewport, this.textLayerMode === _ui_utils.TextLayerMode.ENABLE_ENHANCE, this.eventBus);
      }

      this.textLayer = textLayer;
      var renderContinueCallback = null;

      if (this.renderingQueue) {
        renderContinueCallback = function renderContinueCallback(cont) {
          if (!_this.renderingQueue.isHighestPriority(_this)) {
            _this.renderingState = _pdf_rendering_queue.RenderingStates.PAUSED;

            _this.resume = function () {
              _this.renderingState = _pdf_rendering_queue.RenderingStates.RUNNING;
              cont();
            };

            return;
          }

          cont();
        };
      }

      var finishPaintTask = /*#__PURE__*/function () {
        var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2(error) {
          return _regenerator["default"].wrap(function _callee2$(_context2) {
            while (1) {
              switch (_context2.prev = _context2.next) {
                case 0:
                  if (paintTask === _this.paintTask) {
                    _this.paintTask = null;
                  }

                  if (!(error instanceof _pdfjsLib.RenderingCancelledException)) {
                    _context2.next = 4;
                    break;
                  }

                  _this.error = null;
                  return _context2.abrupt("return");

                case 4:
                  _this.renderingState = _pdf_rendering_queue.RenderingStates.FINISHED;

                  if (_this.loadingIconDiv) {
                    div.removeChild(_this.loadingIconDiv);
                    delete _this.loadingIconDiv;
                  }

                  _this._resetZoomLayer(true);

                  _this.error = error;
                  _this.stats = pdfPage.stats;

                  _this.eventBus.dispatch("pagerendered", {
                    source: _this,
                    pageNumber: _this.id,
                    cssTransform: false,
                    timestamp: performance.now()
                  });

                  if (!error) {
                    _context2.next = 12;
                    break;
                  }

                  throw error;

                case 12:
                case "end":
                  return _context2.stop();
              }
            }
          }, _callee2);
        }));

        return function finishPaintTask(_x) {
          return _ref.apply(this, arguments);
        };
      }();

      var paintTask = this.renderer === _ui_utils.RendererType.SVG ? this.paintOnSvg(canvasWrapper) : this.paintOnCanvas(canvasWrapper);
      paintTask.onRenderContinue = renderContinueCallback;
      this.paintTask = paintTask;
      var resultPromise = paintTask.promise.then(function () {
        return finishPaintTask(null).then(function () {
          if (textLayer) {
            var readableStream = pdfPage.streamTextContent({
              normalizeWhitespace: true
            });
            textLayer.setTextContentStream(readableStream);
            textLayer.render();
          }
        });
      }, function (reason) {
        return finishPaintTask(reason);
      });

      if (this.annotationLayerFactory) {
        if (!this.annotationLayer) {
          this.annotationLayer = this.annotationLayerFactory.createAnnotationLayerBuilder(div, pdfPage, this._annotationStorage, this.imageResourcesPath, this.renderInteractiveForms, this.l10n);
        }

        this._renderAnnotationLayer();
      }

      div.setAttribute("data-loaded", true);
      this.eventBus.dispatch("pagerender", {
        source: this,
        pageNumber: this.id
      });
      return resultPromise;
    }
  }, {
    key: "paintOnCanvas",
    value: function paintOnCanvas(canvasWrapper) {
      var renderCapability = (0, _pdfjsLib.createPromiseCapability)();
      var result = {
        promise: renderCapability.promise,
        onRenderContinue: function onRenderContinue(cont) {
          cont();
        },
        cancel: function cancel() {
          renderTask.cancel();
        }
      };
      var viewport = this.viewport;
      var canvas = document.createElement("canvas");
      this.l10n.get("page_canvas", {
        page: this.id
      }, "Page {{page}}").then(function (msg) {
        canvas.setAttribute("aria-label", msg);
      });
      canvas.setAttribute("hidden", "hidden");
      var isCanvasHidden = true;

      var showCanvas = function showCanvas() {
        if (isCanvasHidden) {
          canvas.removeAttribute("hidden");
          isCanvasHidden = false;
        }
      };

      canvasWrapper.appendChild(canvas);
      this.canvas = canvas;
      canvas.mozOpaque = true;
      var ctx = canvas.getContext("2d", {
        alpha: false
      });
      var outputScale = (0, _ui_utils.getOutputScale)(ctx);
      this.outputScale = outputScale;

      if (this.useOnlyCssZoom) {
        var actualSizeViewport = viewport.clone({
          scale: _ui_utils.CSS_UNITS
        });
        outputScale.sx *= actualSizeViewport.width / viewport.width;
        outputScale.sy *= actualSizeViewport.height / viewport.height;
        outputScale.scaled = true;
      }

      if (this.maxCanvasPixels > 0) {
        var pixelsInViewport = viewport.width * viewport.height;
        var maxScale = Math.sqrt(this.maxCanvasPixels / pixelsInViewport);

        if (outputScale.sx > maxScale || outputScale.sy > maxScale) {
          outputScale.sx = maxScale;
          outputScale.sy = maxScale;
          outputScale.scaled = true;
          this.hasRestrictedScaling = true;
        } else {
          this.hasRestrictedScaling = false;
        }
      }

      var sfx = (0, _ui_utils.approximateFraction)(outputScale.sx);
      var sfy = (0, _ui_utils.approximateFraction)(outputScale.sy);
      canvas.width = (0, _ui_utils.roundToDivide)(viewport.width * outputScale.sx, sfx[0]);
      canvas.height = (0, _ui_utils.roundToDivide)(viewport.height * outputScale.sy, sfy[0]);
      canvas.style.width = (0, _ui_utils.roundToDivide)(viewport.width, sfx[1]) + "px";
      canvas.style.height = (0, _ui_utils.roundToDivide)(viewport.height, sfy[1]) + "px";
      this.paintedViewportMap.set(canvas, viewport);
      var transform = !outputScale.scaled ? null : [outputScale.sx, 0, 0, outputScale.sy, 0, 0];
      var renderContext = {
        canvasContext: ctx,
        transform: transform,
        viewport: this.viewport,
        enableWebGL: this.enableWebGL,
        renderInteractiveForms: this.renderInteractiveForms,
        optionalContentConfigPromise: this._optionalContentConfigPromise
      };
      var renderTask = this.pdfPage.render(renderContext);

      renderTask.onContinue = function (cont) {
        showCanvas();

        if (result.onRenderContinue) {
          result.onRenderContinue(cont);
        } else {
          cont();
        }
      };

      renderTask.promise.then(function () {
        showCanvas();
        renderCapability.resolve(undefined);
      }, function (error) {
        showCanvas();
        renderCapability.reject(error);
      });
      return result;
    }
  }, {
    key: "paintOnSvg",
    value: function paintOnSvg(wrapper) {
      var _this2 = this;

      var cancelled = false;

      var ensureNotCancelled = function ensureNotCancelled() {
        if (cancelled) {
          throw new _pdfjsLib.RenderingCancelledException("Rendering cancelled, page ".concat(_this2.id), "svg");
        }
      };

      var pdfPage = this.pdfPage;
      var actualSizeViewport = this.viewport.clone({
        scale: _ui_utils.CSS_UNITS
      });
      var promise = pdfPage.getOperatorList().then(function (opList) {
        ensureNotCancelled();
        var svgGfx = new _pdfjsLib.SVGGraphics(pdfPage.commonObjs, pdfPage.objs);
        return svgGfx.getSVG(opList, actualSizeViewport).then(function (svg) {
          ensureNotCancelled();
          _this2.svg = svg;

          _this2.paintedViewportMap.set(svg, actualSizeViewport);

          svg.style.width = wrapper.style.width;
          svg.style.height = wrapper.style.height;
          _this2.renderingState = _pdf_rendering_queue.RenderingStates.FINISHED;
          wrapper.appendChild(svg);
        });
      });
      return {
        promise: promise,
        onRenderContinue: function onRenderContinue(cont) {
          cont();
        },
        cancel: function cancel() {
          cancelled = true;
        }
      };
    }
  }, {
    key: "setPageLabel",
    value: function setPageLabel(label) {
      this.pageLabel = typeof label === "string" ? label : null;

      if (this.pageLabel !== null) {
        this.div.setAttribute("data-page-label", this.pageLabel);
      } else {
        this.div.removeAttribute("data-page-label");
      }
    }
  }, {
    key: "width",
    get: function get() {
      return this.viewport.width;
    }
  }, {
    key: "height",
    get: function get() {
      return this.viewport.height;
    }
  }]);

  return PDFPageView;
}();

exports.PDFPageView = PDFPageView;

/***/ }),
/* 17 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFRenderingQueue = exports.RenderingStates = void 0;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var CLEANUP_TIMEOUT = 30000;
var RenderingStates = {
  INITIAL: 0,
  RUNNING: 1,
  PAUSED: 2,
  FINISHED: 3
};
exports.RenderingStates = RenderingStates;

var PDFRenderingQueue = /*#__PURE__*/function () {
  function PDFRenderingQueue() {
    _classCallCheck(this, PDFRenderingQueue);

    this.pdfViewer = null;
    this.pdfThumbnailViewer = null;
    this.onIdle = null;
    this.highestPriorityPage = null;
    this.idleTimeout = null;
    this.printing = false;
    this.isThumbnailViewEnabled = false;
  }

  _createClass(PDFRenderingQueue, [{
    key: "setViewer",
    value: function setViewer(pdfViewer) {
      this.pdfViewer = pdfViewer;
    }
  }, {
    key: "setThumbnailViewer",
    value: function setThumbnailViewer(pdfThumbnailViewer) {
      this.pdfThumbnailViewer = pdfThumbnailViewer;
    }
  }, {
    key: "isHighestPriority",
    value: function isHighestPriority(view) {
      return this.highestPriorityPage === view.renderingId;
    }
  }, {
    key: "renderHighestPriority",
    value: function renderHighestPriority(currentlyVisiblePages) {
      if (this.idleTimeout) {
        clearTimeout(this.idleTimeout);
        this.idleTimeout = null;
      }

      if (this.pdfViewer.forceRendering(currentlyVisiblePages)) {
        return;
      }

      if (this.pdfThumbnailViewer && this.isThumbnailViewEnabled) {
        if (this.pdfThumbnailViewer.forceRendering()) {
          return;
        }
      }

      if (this.printing) {
        return;
      }

      if (this.onIdle) {
        this.idleTimeout = setTimeout(this.onIdle.bind(this), CLEANUP_TIMEOUT);
      }
    }
  }, {
    key: "getHighestPriority",
    value: function getHighestPriority(visible, views, scrolledDown) {
      var visibleViews = visible.views;
      var numVisible = visibleViews.length;

      if (numVisible === 0) {
        return null;
      }

      for (var i = 0; i < numVisible; ++i) {
        var view = visibleViews[i].view;

        if (!this.isViewFinished(view)) {
          return view;
        }
      }

      if (scrolledDown) {
        var nextPageIndex = visible.last.id;

        if (views[nextPageIndex] && !this.isViewFinished(views[nextPageIndex])) {
          return views[nextPageIndex];
        }
      } else {
        var previousPageIndex = visible.first.id - 2;

        if (views[previousPageIndex] && !this.isViewFinished(views[previousPageIndex])) {
          return views[previousPageIndex];
        }
      }

      return null;
    }
  }, {
    key: "isViewFinished",
    value: function isViewFinished(view) {
      return view.renderingState === RenderingStates.FINISHED;
    }
  }, {
    key: "renderView",
    value: function renderView(view) {
      var _this = this;

      switch (view.renderingState) {
        case RenderingStates.FINISHED:
          return false;

        case RenderingStates.PAUSED:
          this.highestPriorityPage = view.renderingId;
          view.resume();
          break;

        case RenderingStates.RUNNING:
          this.highestPriorityPage = view.renderingId;
          break;

        case RenderingStates.INITIAL:
          this.highestPriorityPage = view.renderingId;
          view.draw()["finally"](function () {
            _this.renderHighestPriority();
          })["catch"](function (reason) {
            console.error("renderView: \"".concat(reason, "\""));
          });
          break;
      }

      return true;
    }
  }]);

  return PDFRenderingQueue;
}();

exports.PDFRenderingQueue = PDFRenderingQueue;

/***/ }),
/* 18 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFSinglePageViewer = void 0;

var _base_viewer = __w_pdfjs_require__(19);

var _pdfjsLib = __w_pdfjs_require__(2);

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }

function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

var PDFSinglePageViewer = /*#__PURE__*/function (_BaseViewer) {
  _inherits(PDFSinglePageViewer, _BaseViewer);

  var _super = _createSuper(PDFSinglePageViewer);

  function PDFSinglePageViewer(options) {
    var _this;

    _classCallCheck(this, PDFSinglePageViewer);

    _this = _super.call(this, options);

    _this.eventBus._on("pagesinit", function (evt) {
      _this._ensurePageViewVisible();
    });

    return _this;
  }

  _createClass(PDFSinglePageViewer, [{
    key: "_resetView",
    value: function _resetView() {
      _get(_getPrototypeOf(PDFSinglePageViewer.prototype), "_resetView", this).call(this);

      this._previousPageNumber = 1;
      this._shadowViewer = document.createDocumentFragment();
      this._updateScrollDown = null;
    }
  }, {
    key: "_ensurePageViewVisible",
    value: function _ensurePageViewVisible() {
      var pageView = this._pages[this._currentPageNumber - 1];
      var previousPageView = this._pages[this._previousPageNumber - 1];
      var viewerNodes = this.viewer.childNodes;

      switch (viewerNodes.length) {
        case 0:
          this.viewer.appendChild(pageView.div);
          break;

        case 1:
          if (viewerNodes[0] !== previousPageView.div) {
            throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");
          }

          if (pageView === previousPageView) {
            break;
          }

          this._shadowViewer.appendChild(previousPageView.div);

          this.viewer.appendChild(pageView.div);
          this.container.scrollTop = 0;
          break;

        default:
          throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.");
      }

      this._previousPageNumber = this._currentPageNumber;
    }
  }, {
    key: "_scrollUpdate",
    value: function _scrollUpdate() {
      if (this._updateScrollDown) {
        this._updateScrollDown();
      }

      _get(_getPrototypeOf(PDFSinglePageViewer.prototype), "_scrollUpdate", this).call(this);
    }
  }, {
    key: "_scrollIntoView",
    value: function _scrollIntoView(_ref) {
      var _this2 = this;

      var pageDiv = _ref.pageDiv,
          _ref$pageSpot = _ref.pageSpot,
          pageSpot = _ref$pageSpot === void 0 ? null : _ref$pageSpot,
          _ref$pageNumber = _ref.pageNumber,
          pageNumber = _ref$pageNumber === void 0 ? null : _ref$pageNumber;

      if (pageNumber) {
        this._setCurrentPageNumber(pageNumber);
      }

      var scrolledDown = this._currentPageNumber >= this._previousPageNumber;

      this._ensurePageViewVisible();

      this.update();

      _get(_getPrototypeOf(PDFSinglePageViewer.prototype), "_scrollIntoView", this).call(this, {
        pageDiv: pageDiv,
        pageSpot: pageSpot,
        pageNumber: pageNumber
      });

      this._updateScrollDown = function () {
        _this2.scroll.down = scrolledDown;
        _this2._updateScrollDown = null;
      };
    }
  }, {
    key: "_getVisiblePages",
    value: function _getVisiblePages() {
      return this._getCurrentVisiblePage();
    }
  }, {
    key: "_updateHelper",
    value: function _updateHelper(visiblePages) {}
  }, {
    key: "_updateScrollMode",
    value: function _updateScrollMode() {}
  }, {
    key: "_updateSpreadMode",
    value: function _updateSpreadMode() {}
  }, {
    key: "_viewerElement",
    get: function get() {
      return (0, _pdfjsLib.shadow)(this, "_viewerElement", this._shadowViewer);
    }
  }, {
    key: "_isScrollModeHorizontal",
    get: function get() {
      return (0, _pdfjsLib.shadow)(this, "_isScrollModeHorizontal", false);
    }
  }]);

  return PDFSinglePageViewer;
}(_base_viewer.BaseViewer);

exports.PDFSinglePageViewer = PDFSinglePageViewer;

/***/ }),
/* 19 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BaseViewer = void 0;

var _ui_utils = __w_pdfjs_require__(3);

var _pdf_rendering_queue = __w_pdfjs_require__(17);

var _annotation_layer_builder = __w_pdfjs_require__(1);

var _pdfjsLib = __w_pdfjs_require__(2);

var _pdf_page_view = __w_pdfjs_require__(16);

var _pdf_link_service = __w_pdfjs_require__(7);

var _text_layer_builder = __w_pdfjs_require__(8);

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var DEFAULT_CACHE_SIZE = 10;

function PDFPageViewBuffer(size) {
  var data = [];

  this.push = function (view) {
    var i = data.indexOf(view);

    if (i >= 0) {
      data.splice(i, 1);
    }

    data.push(view);

    if (data.length > size) {
      data.shift().destroy();
    }
  };

  this.resize = function (newSize, pagesToKeep) {
    size = newSize;

    if (pagesToKeep) {
      var pageIdsToKeep = new Set();

      for (var i = 0, iMax = pagesToKeep.length; i < iMax; ++i) {
        pageIdsToKeep.add(pagesToKeep[i].id);
      }

      (0, _ui_utils.moveToEndOfArray)(data, function (page) {
        return pageIdsToKeep.has(page.id);
      });
    }

    while (data.length > size) {
      data.shift().destroy();
    }
  };
}

function isSameScale(oldScale, newScale) {
  if (newScale === oldScale) {
    return true;
  }

  if (Math.abs(newScale - oldScale) < 1e-15) {
    return true;
  }

  return false;
}

var BaseViewer = /*#__PURE__*/function () {
  function BaseViewer(options) {
    var _this = this;

    _classCallCheck(this, BaseViewer);

    if (this.constructor === BaseViewer) {
      throw new Error("Cannot initialize BaseViewer.");
    }

    this._name = this.constructor.name;
    this.container = options.container;
    this.viewer = options.viewer || options.container.firstElementChild;

    if (!(this.container instanceof HTMLDivElement && this.viewer instanceof HTMLDivElement)) {
      throw new Error("Invalid `container` and/or `viewer` option.");
    }

    this.eventBus = options.eventBus;
    this.linkService = options.linkService || new _pdf_link_service.SimpleLinkService();
    this.downloadManager = options.downloadManager || null;
    this.findController = options.findController || null;
    this.removePageBorders = options.removePageBorders || false;
    this.textLayerMode = Number.isInteger(options.textLayerMode) ? options.textLayerMode : _ui_utils.TextLayerMode.ENABLE;
    this.imageResourcesPath = options.imageResourcesPath || "";
    this.renderInteractiveForms = typeof options.renderInteractiveForms === "boolean" ? options.renderInteractiveForms : true;
    this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;
    this.renderer = options.renderer || _ui_utils.RendererType.CANVAS;
    this.enableWebGL = options.enableWebGL || false;
    this.useOnlyCssZoom = options.useOnlyCssZoom || false;
    this.maxCanvasPixels = options.maxCanvasPixels;
    this.l10n = options.l10n || _ui_utils.NullL10n;
    this.defaultRenderingQueue = !options.renderingQueue;

    if (this.defaultRenderingQueue) {
      this.renderingQueue = new _pdf_rendering_queue.PDFRenderingQueue();
      this.renderingQueue.setViewer(this);
    } else {
      this.renderingQueue = options.renderingQueue;
    }

    this.scroll = (0, _ui_utils.watchScroll)(this.container, this._scrollUpdate.bind(this));
    this.presentationModeState = _ui_utils.PresentationModeState.UNKNOWN;
    this._onBeforeDraw = this._onAfterDraw = null;

    this._resetView();

    if (this.removePageBorders) {
      this.viewer.classList.add("removePageBorders");
    }

    Promise.resolve().then(function () {
      _this.eventBus.dispatch("baseviewerinit", {
        source: _this
      });
    });
  }

  _createClass(BaseViewer, [{
    key: "getPageView",
    value: function getPageView(index) {
      return this._pages[index];
    }
  }, {
    key: "_setCurrentPageNumber",
    value: function _setCurrentPageNumber(val) {
      var resetCurrentPageView = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

      if (this._currentPageNumber === val) {
        if (resetCurrentPageView) {
          this._resetCurrentPageView();
        }

        return true;
      }

      if (!(0 < val && val <= this.pagesCount)) {
        return false;
      }

      this._currentPageNumber = val;
      this.eventBus.dispatch("pagechanging", {
        source: this,
        pageNumber: val,
        pageLabel: this._pageLabels && this._pageLabels[val - 1]
      });

      if (resetCurrentPageView) {
        this._resetCurrentPageView();
      }

      return true;
    }
  }, {
    key: "_onePageRenderedOrForceFetch",
    value: function _onePageRenderedOrForceFetch() {
      if (!this.container.offsetParent || this._getVisiblePages().views.length === 0) {
        return Promise.resolve();
      }

      return this._onePageRenderedCapability.promise;
    }
  }, {
    key: "setDocument",
    value: function setDocument(pdfDocument) {
      var _this2 = this;

      if (this.pdfDocument) {
        this._cancelRendering();

        this._resetView();

        if (this.findController) {
          this.findController.setDocument(null);
        }
      }

      this.pdfDocument = pdfDocument;

      if (!pdfDocument) {
        return;
      }

      var pagesCount = pdfDocument.numPages;
      var firstPagePromise = pdfDocument.getPage(1);
      var annotationStorage = pdfDocument.annotationStorage;
      var optionalContentConfigPromise = pdfDocument.getOptionalContentConfig();

      this._pagesCapability.promise.then(function () {
        _this2.eventBus.dispatch("pagesloaded", {
          source: _this2,
          pagesCount: pagesCount
        });
      });

      this._onBeforeDraw = function (evt) {
        var pageView = _this2._pages[evt.pageNumber - 1];

        if (!pageView) {
          return;
        }

        _this2._buffer.push(pageView);
      };

      this.eventBus._on("pagerender", this._onBeforeDraw);

      this._onAfterDraw = function (evt) {
        if (evt.cssTransform || _this2._onePageRenderedCapability.settled) {
          return;
        }

        _this2._onePageRenderedCapability.resolve();

        _this2.eventBus._off("pagerendered", _this2._onAfterDraw);

        _this2._onAfterDraw = null;
      };

      this.eventBus._on("pagerendered", this._onAfterDraw);

      firstPagePromise.then(function (firstPdfPage) {
        _this2._firstPageCapability.resolve(firstPdfPage);

        _this2._optionalContentConfigPromise = optionalContentConfigPromise;
        var scale = _this2.currentScale;
        var viewport = firstPdfPage.getViewport({
          scale: scale * _ui_utils.CSS_UNITS
        });
        var textLayerFactory = _this2.textLayerMode !== _ui_utils.TextLayerMode.DISABLE ? _this2 : null;

        for (var pageNum = 1; pageNum <= pagesCount; ++pageNum) {
          var pageView = new _pdf_page_view.PDFPageView({
            container: _this2._viewerElement,
            eventBus: _this2.eventBus,
            id: pageNum,
            scale: scale,
            defaultViewport: viewport.clone(),
            annotationStorage: annotationStorage,
            optionalContentConfigPromise: optionalContentConfigPromise,
            renderingQueue: _this2.renderingQueue,
            textLayerFactory: textLayerFactory,
            textLayerMode: _this2.textLayerMode,
            annotationLayerFactory: _this2,
            imageResourcesPath: _this2.imageResourcesPath,
            renderInteractiveForms: _this2.renderInteractiveForms,
            renderer: _this2.renderer,
            enableWebGL: _this2.enableWebGL,
            useOnlyCssZoom: _this2.useOnlyCssZoom,
            maxCanvasPixels: _this2.maxCanvasPixels,
            l10n: _this2.l10n
          });

          _this2._pages.push(pageView);
        }

        var firstPageView = _this2._pages[0];

        if (firstPageView) {
          firstPageView.setPdfPage(firstPdfPage);

          _this2.linkService.cachePageRef(1, firstPdfPage.ref);
        }

        if (_this2._spreadMode !== _ui_utils.SpreadMode.NONE) {
          _this2._updateSpreadMode();
        }

        _this2._onePageRenderedOrForceFetch().then(function () {
          if (_this2.findController) {
            _this2.findController.setDocument(pdfDocument);
          }

          if (pdfDocument.loadingParams.disableAutoFetch || pagesCount > 7500) {
            _this2._pagesCapability.resolve();

            return;
          }

          var getPagesLeft = pagesCount - 1;

          if (getPagesLeft <= 0) {
            _this2._pagesCapability.resolve();

            return;
          }

          var _loop = function _loop(_pageNum) {
            pdfDocument.getPage(_pageNum).then(function (pdfPage) {
              var pageView = _this2._pages[_pageNum - 1];

              if (!pageView.pdfPage) {
                pageView.setPdfPage(pdfPage);
              }

              _this2.linkService.cachePageRef(_pageNum, pdfPage.ref);

              if (--getPagesLeft === 0) {
                _this2._pagesCapability.resolve();
              }
            }, function (reason) {
              console.error("Unable to get page ".concat(_pageNum, " to initialize viewer"), reason);

              if (--getPagesLeft === 0) {
                _this2._pagesCapability.resolve();
              }
            });
          };

          for (var _pageNum = 2; _pageNum <= pagesCount; ++_pageNum) {
            _loop(_pageNum);
          }
        });

        _this2.eventBus.dispatch("pagesinit", {
          source: _this2
        });

        if (_this2.defaultRenderingQueue) {
          _this2.update();
        }
      })["catch"](function (reason) {
        console.error("Unable to initialize viewer", reason);
      });
    }
  }, {
    key: "setPageLabels",
    value: function setPageLabels(labels) {
      if (!this.pdfDocument) {
        return;
      }

      if (!labels) {
        this._pageLabels = null;
      } else if (!(Array.isArray(labels) && this.pdfDocument.numPages === labels.length)) {
        this._pageLabels = null;
        console.error("".concat(this._name, ".setPageLabels: Invalid page labels."));
      } else {
        this._pageLabels = labels;
      }

      for (var i = 0, ii = this._pages.length; i < ii; i++) {
        var pageView = this._pages[i];
        var label = this._pageLabels && this._pageLabels[i];
        pageView.setPageLabel(label);
      }
    }
  }, {
    key: "_resetView",
    value: function _resetView() {
      this._pages = [];
      this._currentPageNumber = 1;
      this._currentScale = _ui_utils.UNKNOWN_SCALE;
      this._currentScaleValue = null;
      this._pageLabels = null;
      this._buffer = new PDFPageViewBuffer(DEFAULT_CACHE_SIZE);
      this._location = null;
      this._pagesRotation = 0;
      this._optionalContentConfigPromise = null;
      this._pagesRequests = new WeakMap();
      this._firstPageCapability = (0, _pdfjsLib.createPromiseCapability)();
      this._onePageRenderedCapability = (0, _pdfjsLib.createPromiseCapability)();
      this._pagesCapability = (0, _pdfjsLib.createPromiseCapability)();
      this._scrollMode = _ui_utils.ScrollMode.VERTICAL;
      this._spreadMode = _ui_utils.SpreadMode.NONE;

      if (this._onBeforeDraw) {
        this.eventBus._off("pagerender", this._onBeforeDraw);

        this._onBeforeDraw = null;
      }

      if (this._onAfterDraw) {
        this.eventBus._off("pagerendered", this._onAfterDraw);

        this._onAfterDraw = null;
      }

      this.viewer.textContent = "";

      this._updateScrollMode();
    }
  }, {
    key: "_scrollUpdate",
    value: function _scrollUpdate() {
      if (this.pagesCount === 0) {
        return;
      }

      this.update();
    }
  }, {
    key: "_scrollIntoView",
    value: function _scrollIntoView(_ref) {
      var pageDiv = _ref.pageDiv,
          _ref$pageSpot = _ref.pageSpot,
          pageSpot = _ref$pageSpot === void 0 ? null : _ref$pageSpot,
          _ref$pageNumber = _ref.pageNumber,
          pageNumber = _ref$pageNumber === void 0 ? null : _ref$pageNumber;
      (0, _ui_utils.scrollIntoView)(pageDiv, pageSpot);
    }
  }, {
    key: "_setScaleUpdatePages",
    value: function _setScaleUpdatePages(newScale, newValue) {
      var noScroll = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
      var preset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
      this._currentScaleValue = newValue.toString();

      if (isSameScale(this._currentScale, newScale)) {
        if (preset) {
          this.eventBus.dispatch("scalechanging", {
            source: this,
            scale: newScale,
            presetValue: newValue
          });
        }

        return;
      }

      for (var i = 0, ii = this._pages.length; i < ii; i++) {
        this._pages[i].update(newScale);
      }

      this._currentScale = newScale;

      if (!noScroll) {
        var page = this._currentPageNumber,
            dest;

        if (this._location && !(this.isInPresentationMode || this.isChangingPresentationMode)) {
          page = this._location.pageNumber;
          dest = [null, {
            name: "XYZ"
          }, this._location.left, this._location.top, null];
        }

        this.scrollPageIntoView({
          pageNumber: page,
          destArray: dest,
          allowNegativeOffset: true
        });
      }

      this.eventBus.dispatch("scalechanging", {
        source: this,
        scale: newScale,
        presetValue: preset ? newValue : undefined
      });

      if (this.defaultRenderingQueue) {
        this.update();
      }
    }
  }, {
    key: "_setScale",
    value: function _setScale(value) {
      var noScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
      var scale = parseFloat(value);

      if (scale > 0) {
        this._setScaleUpdatePages(scale, value, noScroll, false);
      } else {
        var currentPage = this._pages[this._currentPageNumber - 1];

        if (!currentPage) {
          return;
        }

        var noPadding = this.isInPresentationMode || this.removePageBorders;
        var hPadding = noPadding ? 0 : _ui_utils.SCROLLBAR_PADDING;
        var vPadding = noPadding ? 0 : _ui_utils.VERTICAL_PADDING;

        if (!noPadding && this._isScrollModeHorizontal) {
          var _ref2 = [vPadding, hPadding];
          hPadding = _ref2[0];
          vPadding = _ref2[1];
        }

        var pageWidthScale = (this.container.clientWidth - hPadding) / currentPage.width * currentPage.scale;
        var pageHeightScale = (this.container.clientHeight - vPadding) / currentPage.height * currentPage.scale;

        switch (value) {
          case "page-actual":
            scale = 1;
            break;

          case "page-width":
            scale = pageWidthScale;
            break;

          case "page-height":
            scale = pageHeightScale;
            break;

          case "page-fit":
            scale = Math.min(pageWidthScale, pageHeightScale);
            break;

          case "auto":
            var horizontalScale = (0, _ui_utils.isPortraitOrientation)(currentPage) ? pageWidthScale : Math.min(pageHeightScale, pageWidthScale);
            scale = Math.min(_ui_utils.MAX_AUTO_SCALE, horizontalScale);
            break;

          default:
            console.error("".concat(this._name, "._setScale: \"").concat(value, "\" is an unknown zoom value."));
            return;
        }

        this._setScaleUpdatePages(scale, value, noScroll, true);
      }
    }
  }, {
    key: "_resetCurrentPageView",
    value: function _resetCurrentPageView() {
      if (this.isInPresentationMode) {
        this._setScale(this._currentScaleValue, true);
      }

      var pageView = this._pages[this._currentPageNumber - 1];

      this._scrollIntoView({
        pageDiv: pageView.div
      });
    }
  }, {
    key: "scrollPageIntoView",
    value: function scrollPageIntoView(_ref3) {
      var pageNumber = _ref3.pageNumber,
          _ref3$destArray = _ref3.destArray,
          destArray = _ref3$destArray === void 0 ? null : _ref3$destArray,
          _ref3$allowNegativeOf = _ref3.allowNegativeOffset,
          allowNegativeOffset = _ref3$allowNegativeOf === void 0 ? false : _ref3$allowNegativeOf,
          _ref3$ignoreDestinati = _ref3.ignoreDestinationZoom,
          ignoreDestinationZoom = _ref3$ignoreDestinati === void 0 ? false : _ref3$ignoreDestinati;

      if (!this.pdfDocument) {
        return;
      }

      var pageView = Number.isInteger(pageNumber) && this._pages[pageNumber - 1];

      if (!pageView) {
        console.error("".concat(this._name, ".scrollPageIntoView: ") + "\"".concat(pageNumber, "\" is not a valid pageNumber parameter."));
        return;
      }

      if (this.isInPresentationMode || !destArray) {
        this._setCurrentPageNumber(pageNumber, true);

        return;
      }

      var x = 0,
          y = 0;
      var width = 0,
          height = 0,
          widthScale,
          heightScale;
      var changeOrientation = pageView.rotation % 180 !== 0;
      var pageWidth = (changeOrientation ? pageView.height : pageView.width) / pageView.scale / _ui_utils.CSS_UNITS;
      var pageHeight = (changeOrientation ? pageView.width : pageView.height) / pageView.scale / _ui_utils.CSS_UNITS;
      var scale = 0;

      switch (destArray[1].name) {
        case "XYZ":
          x = destArray[2];
          y = destArray[3];
          scale = destArray[4];
          x = x !== null ? x : 0;
          y = y !== null ? y : pageHeight;
          break;

        case "Fit":
        case "FitB":
          scale = "page-fit";
          break;

        case "FitH":
        case "FitBH":
          y = destArray[2];
          scale = "page-width";

          if (y === null && this._location) {
            x = this._location.left;
            y = this._location.top;
          }

          break;

        case "FitV":
        case "FitBV":
          x = destArray[2];
          width = pageWidth;
          height = pageHeight;
          scale = "page-height";
          break;

        case "FitR":
          x = destArray[2];
          y = destArray[3];
          width = destArray[4] - x;
          height = destArray[5] - y;
          var hPadding = this.removePageBorders ? 0 : _ui_utils.SCROLLBAR_PADDING;
          var vPadding = this.removePageBorders ? 0 : _ui_utils.VERTICAL_PADDING;
          widthScale = (this.container.clientWidth - hPadding) / width / _ui_utils.CSS_UNITS;
          heightScale = (this.container.clientHeight - vPadding) / height / _ui_utils.CSS_UNITS;
          scale = Math.min(Math.abs(widthScale), Math.abs(heightScale));
          break;

        default:
          console.error("".concat(this._name, ".scrollPageIntoView: ") + "\"".concat(destArray[1].name, "\" is not a valid destination type."));
          return;
      }

      if (!ignoreDestinationZoom) {
        if (scale && scale !== this._currentScale) {
          this.currentScaleValue = scale;
        } else if (this._currentScale === _ui_utils.UNKNOWN_SCALE) {
          this.currentScaleValue = _ui_utils.DEFAULT_SCALE_VALUE;
        }
      }

      if (scale === "page-fit" && !destArray[4]) {
        this._scrollIntoView({
          pageDiv: pageView.div,
          pageNumber: pageNumber
        });

        return;
      }

      var boundingRect = [pageView.viewport.convertToViewportPoint(x, y), pageView.viewport.convertToViewportPoint(x + width, y + height)];
      var left = Math.min(boundingRect[0][0], boundingRect[1][0]);
      var top = Math.min(boundingRect[0][1], boundingRect[1][1]);

      if (!allowNegativeOffset) {
        left = Math.max(left, 0);
        top = Math.max(top, 0);
      }

      this._scrollIntoView({
        pageDiv: pageView.div,
        pageSpot: {
          left: left,
          top: top
        },
        pageNumber: pageNumber
      });
    }
  }, {
    key: "_updateLocation",
    value: function _updateLocation(firstPage) {
      var currentScale = this._currentScale;
      var currentScaleValue = this._currentScaleValue;
      var normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ? Math.round(currentScale * 10000) / 100 : currentScaleValue;
      var pageNumber = firstPage.id;
      var pdfOpenParams = "#page=" + pageNumber;
      pdfOpenParams += "&zoom=" + normalizedScaleValue;
      var currentPageView = this._pages[pageNumber - 1];
      var container = this.container;
      var topLeft = currentPageView.getPagePoint(container.scrollLeft - firstPage.x, container.scrollTop - firstPage.y);
      var intLeft = Math.round(topLeft[0]);
      var intTop = Math.round(topLeft[1]);
      pdfOpenParams += "," + intLeft + "," + intTop;
      this._location = {
        pageNumber: pageNumber,
        scale: normalizedScaleValue,
        top: intTop,
        left: intLeft,
        rotation: this._pagesRotation,
        pdfOpenParams: pdfOpenParams
      };
    }
  }, {
    key: "_updateHelper",
    value: function _updateHelper(visiblePages) {
      throw new Error("Not implemented: _updateHelper");
    }
  }, {
    key: "update",
    value: function update() {
      var visible = this._getVisiblePages();

      var visiblePages = visible.views,
          numVisiblePages = visiblePages.length;

      if (numVisiblePages === 0) {
        return;
      }

      var newCacheSize = Math.max(DEFAULT_CACHE_SIZE, 2 * numVisiblePages + 1);

      this._buffer.resize(newCacheSize, visiblePages);

      this.renderingQueue.renderHighestPriority(visible);

      this._updateHelper(visiblePages);

      this._updateLocation(visible.first);

      this.eventBus.dispatch("updateviewarea", {
        source: this,
        location: this._location
      });
    }
  }, {
    key: "containsElement",
    value: function containsElement(element) {
      return this.container.contains(element);
    }
  }, {
    key: "focus",
    value: function focus() {
      this.container.focus();
    }
  }, {
    key: "_getCurrentVisiblePage",
    value: function _getCurrentVisiblePage() {
      if (!this.pagesCount) {
        return {
          views: []
        };
      }

      var pageView = this._pages[this._currentPageNumber - 1];
      var element = pageView.div;
      var view = {
        id: pageView.id,
        x: element.offsetLeft + element.clientLeft,
        y: element.offsetTop + element.clientTop,
        view: pageView
      };
      return {
        first: view,
        last: view,
        views: [view]
      };
    }
  }, {
    key: "_getVisiblePages",
    value: function _getVisiblePages() {
      return (0, _ui_utils.getVisibleElements)(this.container, this._pages, true, this._isScrollModeHorizontal);
    }
  }, {
    key: "isPageVisible",
    value: function isPageVisible(pageNumber) {
      if (!this.pdfDocument) {
        return false;
      }

      if (pageNumber < 1 || pageNumber > this.pagesCount) {
        console.error("".concat(this._name, ".isPageVisible: \"").concat(pageNumber, "\" is out of bounds."));
        return false;
      }

      return this._getVisiblePages().views.some(function (view) {
        return view.id === pageNumber;
      });
    }
  }, {
    key: "cleanup",
    value: function cleanup() {
      for (var i = 0, ii = this._pages.length; i < ii; i++) {
        if (this._pages[i] && this._pages[i].renderingState !== _pdf_rendering_queue.RenderingStates.FINISHED) {
          this._pages[i].reset();
        }
      }
    }
  }, {
    key: "_cancelRendering",
    value: function _cancelRendering() {
      for (var i = 0, ii = this._pages.length; i < ii; i++) {
        if (this._pages[i]) {
          this._pages[i].cancelRendering();
        }
      }
    }
  }, {
    key: "_ensurePdfPageLoaded",
    value: function _ensurePdfPageLoaded(pageView) {
      var _this3 = this;

      if (pageView.pdfPage) {
        return Promise.resolve(pageView.pdfPage);
      }

      if (this._pagesRequests.has(pageView)) {
        return this._pagesRequests.get(pageView);
      }

      var promise = this.pdfDocument.getPage(pageView.id).then(function (pdfPage) {
        if (!pageView.pdfPage) {
          pageView.setPdfPage(pdfPage);
        }

        _this3._pagesRequests["delete"](pageView);

        return pdfPage;
      })["catch"](function (reason) {
        console.error("Unable to get page for page view", reason);

        _this3._pagesRequests["delete"](pageView);
      });

      this._pagesRequests.set(pageView, promise);

      return promise;
    }
  }, {
    key: "forceRendering",
    value: function forceRendering(currentlyVisiblePages) {
      var _this4 = this;

      var visiblePages = currentlyVisiblePages || this._getVisiblePages();

      var scrollAhead = this._isScrollModeHorizontal ? this.scroll.right : this.scroll.down;
      var pageView = this.renderingQueue.getHighestPriority(visiblePages, this._pages, scrollAhead);

      if (pageView) {
        this._ensurePdfPageLoaded(pageView).then(function () {
          _this4.renderingQueue.renderView(pageView);
        });

        return true;
      }

      return false;
    }
  }, {
    key: "createTextLayerBuilder",
    value: function createTextLayerBuilder(textLayerDiv, pageIndex, viewport) {
      var enhanceTextSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
      var eventBus = arguments.length > 4 ? arguments[4] : undefined;
      return new _text_layer_builder.TextLayerBuilder({
        textLayerDiv: textLayerDiv,
        eventBus: eventBus,
        pageIndex: pageIndex,
        viewport: viewport,
        findController: this.isInPresentationMode ? null : this.findController,
        enhanceTextSelection: this.isInPresentationMode ? false : enhanceTextSelection
      });
    }
  }, {
    key: "createAnnotationLayerBuilder",
    value: function createAnnotationLayerBuilder(pageDiv, pdfPage) {
      var annotationStorage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
      var imageResourcesPath = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "";
      var renderInteractiveForms = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
      var l10n = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _ui_utils.NullL10n;
      return new _annotation_layer_builder.AnnotationLayerBuilder({
        pageDiv: pageDiv,
        pdfPage: pdfPage,
        annotationStorage: annotationStorage,
        imageResourcesPath: imageResourcesPath,
        renderInteractiveForms: renderInteractiveForms,
        linkService: this.linkService,
        downloadManager: this.downloadManager,
        l10n: l10n
      });
    }
  }, {
    key: "getPagesOverview",
    value: function getPagesOverview() {
      var pagesOverview = this._pages.map(function (pageView) {
        var viewport = pageView.pdfPage.getViewport({
          scale: 1
        });
        return {
          width: viewport.width,
          height: viewport.height,
          rotation: viewport.rotation
        };
      });

      if (!this.enablePrintAutoRotate) {
        return pagesOverview;
      }

      return pagesOverview.map(function (size) {
        if ((0, _ui_utils.isPortraitOrientation)(size)) {
          return size;
        }

        return {
          width: size.height,
          height: size.width,
          rotation: (size.rotation + 90) % 360
        };
      });
    }
  }, {
    key: "_updateScrollMode",
    value: function _updateScrollMode() {
      var pageNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
      var scrollMode = this._scrollMode,
          viewer = this.viewer;
      viewer.classList.toggle("scrollHorizontal", scrollMode === _ui_utils.ScrollMode.HORIZONTAL);
      viewer.classList.toggle("scrollWrapped", scrollMode === _ui_utils.ScrollMode.WRAPPED);

      if (!this.pdfDocument || !pageNumber) {
        return;
      }

      if (this._currentScaleValue && isNaN(this._currentScaleValue)) {
        this._setScale(this._currentScaleValue, true);
      }

      this._setCurrentPageNumber(pageNumber, true);

      this.update();
    }
  }, {
    key: "_updateSpreadMode",
    value: function _updateSpreadMode() {
      var pageNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

      if (!this.pdfDocument) {
        return;
      }

      var viewer = this.viewer,
          pages = this._pages;
      viewer.textContent = "";

      if (this._spreadMode === _ui_utils.SpreadMode.NONE) {
        for (var i = 0, iMax = pages.length; i < iMax; ++i) {
          viewer.appendChild(pages[i].div);
        }
      } else {
        var parity = this._spreadMode - 1;
        var spread = null;

        for (var _i = 0, _iMax = pages.length; _i < _iMax; ++_i) {
          if (spread === null) {
            spread = document.createElement("div");
            spread.className = "spread";
            viewer.appendChild(spread);
          } else if (_i % 2 === parity) {
            spread = spread.cloneNode(false);
            viewer.appendChild(spread);
          }

          spread.appendChild(pages[_i].div);
        }
      }

      if (!pageNumber) {
        return;
      }

      this._setCurrentPageNumber(pageNumber, true);

      this.update();
    }
  }, {
    key: "pagesCount",
    get: function get() {
      return this._pages.length;
    }
  }, {
    key: "pageViewsReady",
    get: function get() {
      if (!this._pagesCapability.settled) {
        return false;
      }

      return this._pages.every(function (pageView) {
        return pageView && pageView.pdfPage;
      });
    }
  }, {
    key: "currentPageNumber",
    get: function get() {
      return this._currentPageNumber;
    },
    set: function set(val) {
      if (!Number.isInteger(val)) {
        throw new Error("Invalid page number.");
      }

      if (!this.pdfDocument) {
        return;
      }

      if (!this._setCurrentPageNumber(val, true)) {
        console.error("".concat(this._name, ".currentPageNumber: \"").concat(val, "\" is not a valid page."));
      }
    }
  }, {
    key: "currentPageLabel",
    get: function get() {
      return this._pageLabels && this._pageLabels[this._currentPageNumber - 1];
    },
    set: function set(val) {
      if (!this.pdfDocument) {
        return;
      }

      var page = val | 0;

      if (this._pageLabels) {
        var i = this._pageLabels.indexOf(val);

        if (i >= 0) {
          page = i + 1;
        }
      }

      if (!this._setCurrentPageNumber(page, true)) {
        console.error("".concat(this._name, ".currentPageLabel: \"").concat(val, "\" is not a valid page."));
      }
    }
  }, {
    key: "currentScale",
    get: function get() {
      return this._currentScale !== _ui_utils.UNKNOWN_SCALE ? this._currentScale : _ui_utils.DEFAULT_SCALE;
    },
    set: function set(val) {
      if (isNaN(val)) {
        throw new Error("Invalid numeric scale.");
      }

      if (!this.pdfDocument) {
        return;
      }

      this._setScale(val, false);
    }
  }, {
    key: "currentScaleValue",
    get: function get() {
      return this._currentScaleValue;
    },
    set: function set(val) {
      if (!this.pdfDocument) {
        return;
      }

      this._setScale(val, false);
    }
  }, {
    key: "pagesRotation",
    get: function get() {
      return this._pagesRotation;
    },
    set: function set(rotation) {
      if (!(0, _ui_utils.isValidRotation)(rotation)) {
        throw new Error("Invalid pages rotation angle.");
      }

      if (!this.pdfDocument) {
        return;
      }

      if (this._pagesRotation === rotation) {
        return;
      }

      this._pagesRotation = rotation;
      var pageNumber = this._currentPageNumber;

      for (var i = 0, ii = this._pages.length; i < ii; i++) {
        var pageView = this._pages[i];
        pageView.update(pageView.scale, rotation);
      }

      if (this._currentScaleValue) {
        this._setScale(this._currentScaleValue, true);
      }

      this.eventBus.dispatch("rotationchanging", {
        source: this,
        pagesRotation: rotation,
        pageNumber: pageNumber
      });

      if (this.defaultRenderingQueue) {
        this.update();
      }
    }
  }, {
    key: "firstPagePromise",
    get: function get() {
      return this.pdfDocument ? this._firstPageCapability.promise : null;
    }
  }, {
    key: "onePageRendered",
    get: function get() {
      return this.pdfDocument ? this._onePageRenderedCapability.promise : null;
    }
  }, {
    key: "pagesPromise",
    get: function get() {
      return this.pdfDocument ? this._pagesCapability.promise : null;
    }
  }, {
    key: "_viewerElement",
    get: function get() {
      throw new Error("Not implemented: _viewerElement");
    }
  }, {
    key: "_isScrollModeHorizontal",
    get: function get() {
      return this.isInPresentationMode ? false : this._scrollMode === _ui_utils.ScrollMode.HORIZONTAL;
    }
  }, {
    key: "isInPresentationMode",
    get: function get() {
      return this.presentationModeState === _ui_utils.PresentationModeState.FULLSCREEN;
    }
  }, {
    key: "isChangingPresentationMode",
    get: function get() {
      return this.presentationModeState === _ui_utils.PresentationModeState.CHANGING;
    }
  }, {
    key: "isHorizontalScrollbarEnabled",
    get: function get() {
      return this.isInPresentationMode ? false : this.container.scrollWidth > this.container.clientWidth;
    }
  }, {
    key: "isVerticalScrollbarEnabled",
    get: function get() {
      return this.isInPresentationMode ? false : this.container.scrollHeight > this.container.clientHeight;
    }
  }, {
    key: "hasEqualPageSizes",
    get: function get() {
      var firstPageView = this._pages[0];

      for (var i = 1, ii = this._pages.length; i < ii; ++i) {
        var pageView = this._pages[i];

        if (pageView.width !== firstPageView.width || pageView.height !== firstPageView.height) {
          return false;
        }
      }

      return true;
    }
  }, {
    key: "optionalContentConfigPromise",
    get: function get() {
      if (!this.pdfDocument) {
        return Promise.resolve(null);
      }

      if (!this._optionalContentConfigPromise) {
        return this.pdfDocument.getOptionalContentConfig();
      }

      return this._optionalContentConfigPromise;
    },
    set: function set(promise) {
      if (!(promise instanceof Promise)) {
        throw new Error("Invalid optionalContentConfigPromise: ".concat(promise));
      }

      if (!this.pdfDocument) {
        return;
      }

      if (!this._optionalContentConfigPromise) {
        return;
      }

      this._optionalContentConfigPromise = promise;

      var _iterator = _createForOfIteratorHelper(this._pages),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var pageView = _step.value;
          pageView.update(pageView.scale, pageView.rotation, promise);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.update();
      this.eventBus.dispatch("optionalcontentconfigchanged", {
        source: this,
        promise: promise
      });
    }
  }, {
    key: "scrollMode",
    get: function get() {
      return this._scrollMode;
    },
    set: function set(mode) {
      if (this._scrollMode === mode) {
        return;
      }

      if (!(0, _ui_utils.isValidScrollMode)(mode)) {
        throw new Error("Invalid scroll mode: ".concat(mode));
      }

      this._scrollMode = mode;
      this.eventBus.dispatch("scrollmodechanged", {
        source: this,
        mode: mode
      });

      this._updateScrollMode(this._currentPageNumber);
    }
  }, {
    key: "spreadMode",
    get: function get() {
      return this._spreadMode;
    },
    set: function set(mode) {
      if (this._spreadMode === mode) {
        return;
      }

      if (!(0, _ui_utils.isValidSpreadMode)(mode)) {
        throw new Error("Invalid spread mode: ".concat(mode));
      }

      this._spreadMode = mode;
      this.eventBus.dispatch("spreadmodechanged", {
        source: this,
        mode: mode
      });

      this._updateSpreadMode(this._currentPageNumber);
    }
  }]);

  return BaseViewer;
}();

exports.BaseViewer = BaseViewer;

/***/ }),
/* 20 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFViewer = void 0;

var _base_viewer = __w_pdfjs_require__(19);

var _pdfjsLib = __w_pdfjs_require__(2);

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }

function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

var PDFViewer = /*#__PURE__*/function (_BaseViewer) {
  _inherits(PDFViewer, _BaseViewer);

  var _super = _createSuper(PDFViewer);

  function PDFViewer() {
    _classCallCheck(this, PDFViewer);

    return _super.apply(this, arguments);
  }

  _createClass(PDFViewer, [{
    key: "_scrollIntoView",
    value: function _scrollIntoView(_ref) {
      var pageDiv = _ref.pageDiv,
          _ref$pageSpot = _ref.pageSpot,
          pageSpot = _ref$pageSpot === void 0 ? null : _ref$pageSpot,
          _ref$pageNumber = _ref.pageNumber,
          pageNumber = _ref$pageNumber === void 0 ? null : _ref$pageNumber;

      if (!pageSpot && !this.isInPresentationMode) {
        var left = pageDiv.offsetLeft + pageDiv.clientLeft;
        var right = left + pageDiv.clientWidth;
        var _this$container = this.container,
            scrollLeft = _this$container.scrollLeft,
            clientWidth = _this$container.clientWidth;

        if (this._isScrollModeHorizontal || left < scrollLeft || right > scrollLeft + clientWidth) {
          pageSpot = {
            left: 0,
            top: 0
          };
        }
      }

      _get(_getPrototypeOf(PDFViewer.prototype), "_scrollIntoView", this).call(this, {
        pageDiv: pageDiv,
        pageSpot: pageSpot,
        pageNumber: pageNumber
      });
    }
  }, {
    key: "_getVisiblePages",
    value: function _getVisiblePages() {
      if (this.isInPresentationMode) {
        return this._getCurrentVisiblePage();
      }

      return _get(_getPrototypeOf(PDFViewer.prototype), "_getVisiblePages", this).call(this);
    }
  }, {
    key: "_updateHelper",
    value: function _updateHelper(visiblePages) {
      if (this.isInPresentationMode) {
        return;
      }

      var currentId = this._currentPageNumber;
      var stillFullyVisible = false;

      var _iterator = _createForOfIteratorHelper(visiblePages),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var page = _step.value;

          if (page.percent < 100) {
            break;
          }

          if (page.id === currentId) {
            stillFullyVisible = true;
            break;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      if (!stillFullyVisible) {
        currentId = visiblePages[0].id;
      }

      this._setCurrentPageNumber(currentId);
    }
  }, {
    key: "_viewerElement",
    get: function get() {
      return (0, _pdfjsLib.shadow)(this, "_viewerElement", this.viewer);
    }
  }]);

  return PDFViewer;
}(_base_viewer.BaseViewer);

exports.PDFViewer = PDFViewer;

/***/ })
/******/ ]);
});
//# sourceMappingURL=pdf_viewer.js.map/* WEBPACK VAR INJECTION */(function(Buffer, process, global) {/**
 * @licstart The following is the entire license notice for the
 * Javascript code in this page
 *
 * Copyright 2020 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * Javascript code in this page
 */

(function webpackUniversalModuleDefinition(root, factory) {
	if(true)
		module.exports = factory();
	else {}
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __w_pdfjs_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__w_pdfjs_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__w_pdfjs_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__w_pdfjs_require__.d = function(exports, name, getter) {
/******/ 		if(!__w_pdfjs_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__w_pdfjs_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__w_pdfjs_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __w_pdfjs_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__w_pdfjs_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __w_pdfjs_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__w_pdfjs_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__w_pdfjs_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__w_pdfjs_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "addLinkAttributes", {
  enumerable: true,
  get: function get() {
    return _display_utils.addLinkAttributes;
  }
});
Object.defineProperty(exports, "getFilenameFromUrl", {
  enumerable: true,
  get: function get() {
    return _display_utils.getFilenameFromUrl;
  }
});
Object.defineProperty(exports, "LinkTarget", {
  enumerable: true,
  get: function get() {
    return _display_utils.LinkTarget;
  }
});
Object.defineProperty(exports, "loadScript", {
  enumerable: true,
  get: function get() {
    return _display_utils.loadScript;
  }
});
Object.defineProperty(exports, "PDFDateString", {
  enumerable: true,
  get: function get() {
    return _display_utils.PDFDateString;
  }
});
Object.defineProperty(exports, "RenderingCancelledException", {
  enumerable: true,
  get: function get() {
    return _display_utils.RenderingCancelledException;
  }
});
Object.defineProperty(exports, "build", {
  enumerable: true,
  get: function get() {
    return _api.build;
  }
});
Object.defineProperty(exports, "getDocument", {
  enumerable: true,
  get: function get() {
    return _api.getDocument;
  }
});
Object.defineProperty(exports, "LoopbackPort", {
  enumerable: true,
  get: function get() {
    return _api.LoopbackPort;
  }
});
Object.defineProperty(exports, "PDFDataRangeTransport", {
  enumerable: true,
  get: function get() {
    return _api.PDFDataRangeTransport;
  }
});
Object.defineProperty(exports, "PDFWorker", {
  enumerable: true,
  get: function get() {
    return _api.PDFWorker;
  }
});
Object.defineProperty(exports, "version", {
  enumerable: true,
  get: function get() {
    return _api.version;
  }
});
Object.defineProperty(exports, "CMapCompressionType", {
  enumerable: true,
  get: function get() {
    return _util.CMapCompressionType;
  }
});
Object.defineProperty(exports, "createObjectURL", {
  enumerable: true,
  get: function get() {
    return _util.createObjectURL;
  }
});
Object.defineProperty(exports, "createPromiseCapability", {
  enumerable: true,
  get: function get() {
    return _util.createPromiseCapability;
  }
});
Object.defineProperty(exports, "createValidAbsoluteUrl", {
  enumerable: true,
  get: function get() {
    return _util.createValidAbsoluteUrl;
  }
});
Object.defineProperty(exports, "InvalidPDFException", {
  enumerable: true,
  get: function get() {
    return _util.InvalidPDFException;
  }
});
Object.defineProperty(exports, "MissingPDFException", {
  enumerable: true,
  get: function get() {
    return _util.MissingPDFException;
  }
});
Object.defineProperty(exports, "OPS", {
  enumerable: true,
  get: function get() {
    return _util.OPS;
  }
});
Object.defineProperty(exports, "PasswordResponses", {
  enumerable: true,
  get: function get() {
    return _util.PasswordResponses;
  }
});
Object.defineProperty(exports, "PermissionFlag", {
  enumerable: true,
  get: function get() {
    return _util.PermissionFlag;
  }
});
Object.defineProperty(exports, "removeNullCharacters", {
  enumerable: true,
  get: function get() {
    return _util.removeNullCharacters;
  }
});
Object.defineProperty(exports, "shadow", {
  enumerable: true,
  get: function get() {
    return _util.shadow;
  }
});
Object.defineProperty(exports, "UnexpectedResponseException", {
  enumerable: true,
  get: function get() {
    return _util.UnexpectedResponseException;
  }
});
Object.defineProperty(exports, "UNSUPPORTED_FEATURES", {
  enumerable: true,
  get: function get() {
    return _util.UNSUPPORTED_FEATURES;
  }
});
Object.defineProperty(exports, "Util", {
  enumerable: true,
  get: function get() {
    return _util.Util;
  }
});
Object.defineProperty(exports, "VerbosityLevel", {
  enumerable: true,
  get: function get() {
    return _util.VerbosityLevel;
  }
});
Object.defineProperty(exports, "AnnotationLayer", {
  enumerable: true,
  get: function get() {
    return _annotation_layer.AnnotationLayer;
  }
});
Object.defineProperty(exports, "apiCompatibilityParams", {
  enumerable: true,
  get: function get() {
    return _api_compatibility.apiCompatibilityParams;
  }
});
Object.defineProperty(exports, "GlobalWorkerOptions", {
  enumerable: true,
  get: function get() {
    return _worker_options.GlobalWorkerOptions;
  }
});
Object.defineProperty(exports, "renderTextLayer", {
  enumerable: true,
  get: function get() {
    return _text_layer.renderTextLayer;
  }
});
Object.defineProperty(exports, "SVGGraphics", {
  enumerable: true,
  get: function get() {
    return _svg.SVGGraphics;
  }
});

var _display_utils = __w_pdfjs_require__(1);

var _api = __w_pdfjs_require__(202);

var _util = __w_pdfjs_require__(5);

var _annotation_layer = __w_pdfjs_require__(216);

var _api_compatibility = __w_pdfjs_require__(206);

var _worker_options = __w_pdfjs_require__(209);

var _text_layer = __w_pdfjs_require__(217);

var _svg = __w_pdfjs_require__(218);

var pdfjsVersion = '2.6.347';
var pdfjsBuild = '3be9c65f';
{
  var _require = __w_pdfjs_require__(7),
      isNodeJS = _require.isNodeJS;

  if (isNodeJS) {
    var PDFNodeStream = __w_pdfjs_require__(219).PDFNodeStream;

    (0, _api.setPDFNetworkStreamFactory)(function (params) {
      return new PDFNodeStream(params);
    });
  } else {
    var PDFNetworkStream = __w_pdfjs_require__(222).PDFNetworkStream;

    var PDFFetchStream;

    if ((0, _display_utils.isFetchSupported)()) {
      PDFFetchStream = __w_pdfjs_require__(223).PDFFetchStream;
    }

    (0, _api.setPDFNetworkStreamFactory)(function (params) {
      if (PDFFetchStream && (0, _display_utils.isValidFetchUrl)(params.url)) {
        return new PDFFetchStream(params);
      }

      return new PDFNetworkStream(params);
    });
  }
}

/***/ }),
/* 1 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.addLinkAttributes = addLinkAttributes;
exports.getFilenameFromUrl = getFilenameFromUrl;
exports.isFetchSupported = isFetchSupported;
exports.isValidFetchUrl = isValidFetchUrl;
exports.loadScript = loadScript;
exports.deprecated = deprecated;
exports.PDFDateString = exports.StatTimer = exports.DOMSVGFactory = exports.DOMCMapReaderFactory = exports.BaseCMapReaderFactory = exports.DOMCanvasFactory = exports.BaseCanvasFactory = exports.DEFAULT_LINK_REL = exports.LinkTarget = exports.RenderingCancelledException = exports.PageViewport = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var DEFAULT_LINK_REL = "noopener noreferrer nofollow";
exports.DEFAULT_LINK_REL = DEFAULT_LINK_REL;
var SVG_NS = "http://www.w3.org/2000/svg";

var BaseCanvasFactory = /*#__PURE__*/function () {
  function BaseCanvasFactory() {
    _classCallCheck(this, BaseCanvasFactory);

    if (this.constructor === BaseCanvasFactory) {
      (0, _util.unreachable)("Cannot initialize BaseCanvasFactory.");
    }
  }

  _createClass(BaseCanvasFactory, [{
    key: "create",
    value: function create(width, height) {
      (0, _util.unreachable)("Abstract method `create` called.");
    }
  }, {
    key: "reset",
    value: function reset(canvasAndContext, width, height) {
      if (!canvasAndContext.canvas) {
        throw new Error("Canvas is not specified");
      }

      if (width <= 0 || height <= 0) {
        throw new Error("Invalid canvas size");
      }

      canvasAndContext.canvas.width = width;
      canvasAndContext.canvas.height = height;
    }
  }, {
    key: "destroy",
    value: function destroy(canvasAndContext) {
      if (!canvasAndContext.canvas) {
        throw new Error("Canvas is not specified");
      }

      canvasAndContext.canvas.width = 0;
      canvasAndContext.canvas.height = 0;
      canvasAndContext.canvas = null;
      canvasAndContext.context = null;
    }
  }]);

  return BaseCanvasFactory;
}();

exports.BaseCanvasFactory = BaseCanvasFactory;

var DOMCanvasFactory = /*#__PURE__*/function (_BaseCanvasFactory) {
  _inherits(DOMCanvasFactory, _BaseCanvasFactory);

  var _super = _createSuper(DOMCanvasFactory);

  function DOMCanvasFactory() {
    var _this;

    var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        _ref$ownerDocument = _ref.ownerDocument,
        ownerDocument = _ref$ownerDocument === void 0 ? globalThis.document : _ref$ownerDocument;

    _classCallCheck(this, DOMCanvasFactory);

    _this = _super.call(this);
    _this._document = ownerDocument;
    return _this;
  }

  _createClass(DOMCanvasFactory, [{
    key: "create",
    value: function create(width, height) {
      if (width <= 0 || height <= 0) {
        throw new Error("Invalid canvas size");
      }

      var canvas = this._document.createElement("canvas");

      var context = canvas.getContext("2d");
      canvas.width = width;
      canvas.height = height;
      return {
        canvas: canvas,
        context: context
      };
    }
  }]);

  return DOMCanvasFactory;
}(BaseCanvasFactory);

exports.DOMCanvasFactory = DOMCanvasFactory;

var BaseCMapReaderFactory = /*#__PURE__*/function () {
  function BaseCMapReaderFactory(_ref2) {
    var _ref2$baseUrl = _ref2.baseUrl,
        baseUrl = _ref2$baseUrl === void 0 ? null : _ref2$baseUrl,
        _ref2$isCompressed = _ref2.isCompressed,
        isCompressed = _ref2$isCompressed === void 0 ? false : _ref2$isCompressed;

    _classCallCheck(this, BaseCMapReaderFactory);

    if (this.constructor === BaseCMapReaderFactory) {
      (0, _util.unreachable)("Cannot initialize BaseCMapReaderFactory.");
    }

    this.baseUrl = baseUrl;
    this.isCompressed = isCompressed;
  }

  _createClass(BaseCMapReaderFactory, [{
    key: "fetch",
    value: function () {
      var _fetch = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref3) {
        var _this2 = this;

        var name, url, compressionType;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                name = _ref3.name;

                if (this.baseUrl) {
                  _context.next = 3;
                  break;
                }

                throw new Error('The CMap "baseUrl" parameter must be specified, ensure that ' + 'the "cMapUrl" and "cMapPacked" API parameters are provided.');

              case 3:
                if (name) {
                  _context.next = 5;
                  break;
                }

                throw new Error("CMap name must be specified.");

              case 5:
                url = this.baseUrl + name + (this.isCompressed ? ".bcmap" : "");
                compressionType = this.isCompressed ? _util.CMapCompressionType.BINARY : _util.CMapCompressionType.NONE;
                return _context.abrupt("return", this._fetchData(url, compressionType)["catch"](function (reason) {
                  throw new Error("Unable to load ".concat(_this2.isCompressed ? "binary " : "", "CMap at: ").concat(url));
                }));

              case 8:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function fetch(_x) {
        return _fetch.apply(this, arguments);
      }

      return fetch;
    }()
  }, {
    key: "_fetchData",
    value: function _fetchData(url, compressionType) {
      (0, _util.unreachable)("Abstract method `_fetchData` called.");
    }
  }]);

  return BaseCMapReaderFactory;
}();

exports.BaseCMapReaderFactory = BaseCMapReaderFactory;

var DOMCMapReaderFactory = /*#__PURE__*/function (_BaseCMapReaderFactor) {
  _inherits(DOMCMapReaderFactory, _BaseCMapReaderFactor);

  var _super2 = _createSuper(DOMCMapReaderFactory);

  function DOMCMapReaderFactory() {
    _classCallCheck(this, DOMCMapReaderFactory);

    return _super2.apply(this, arguments);
  }

  _createClass(DOMCMapReaderFactory, [{
    key: "_fetchData",
    value: function _fetchData(url, compressionType) {
      var _this3 = this;

      if (isFetchSupported() && isValidFetchUrl(url, document.baseURI)) {
        return fetch(url).then( /*#__PURE__*/function () {
          var _ref4 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2(response) {
            var cMapData;
            return _regenerator["default"].wrap(function _callee2$(_context2) {
              while (1) {
                switch (_context2.prev = _context2.next) {
                  case 0:
                    if (response.ok) {
                      _context2.next = 2;
                      break;
                    }

                    throw new Error(response.statusText);

                  case 2:
                    if (!_this3.isCompressed) {
                      _context2.next = 10;
                      break;
                    }

                    _context2.t0 = Uint8Array;
                    _context2.next = 6;
                    return response.arrayBuffer();

                  case 6:
                    _context2.t1 = _context2.sent;
                    cMapData = new _context2.t0(_context2.t1);
                    _context2.next = 15;
                    break;

                  case 10:
                    _context2.t2 = _util.stringToBytes;
                    _context2.next = 13;
                    return response.text();

                  case 13:
                    _context2.t3 = _context2.sent;
                    cMapData = (0, _context2.t2)(_context2.t3);

                  case 15:
                    return _context2.abrupt("return", {
                      cMapData: cMapData,
                      compressionType: compressionType
                    });

                  case 16:
                  case "end":
                    return _context2.stop();
                }
              }
            }, _callee2);
          }));

          return function (_x2) {
            return _ref4.apply(this, arguments);
          };
        }());
      }

      return new Promise(function (resolve, reject) {
        var request = new XMLHttpRequest();
        request.open("GET", url, true);

        if (_this3.isCompressed) {
          request.responseType = "arraybuffer";
        }

        request.onreadystatechange = function () {
          if (request.readyState !== XMLHttpRequest.DONE) {
            return;
          }

          if (request.status === 200 || request.status === 0) {
            var cMapData;

            if (_this3.isCompressed && request.response) {
              cMapData = new Uint8Array(request.response);
            } else if (!_this3.isCompressed && request.responseText) {
              cMapData = (0, _util.stringToBytes)(request.responseText);
            }

            if (cMapData) {
              resolve({
                cMapData: cMapData,
                compressionType: compressionType
              });
              return;
            }
          }

          reject(new Error(request.statusText));
        };

        request.send(null);
      });
    }
  }]);

  return DOMCMapReaderFactory;
}(BaseCMapReaderFactory);

exports.DOMCMapReaderFactory = DOMCMapReaderFactory;

var DOMSVGFactory = /*#__PURE__*/function () {
  function DOMSVGFactory() {
    _classCallCheck(this, DOMSVGFactory);
  }

  _createClass(DOMSVGFactory, [{
    key: "create",
    value: function create(width, height) {
      (0, _util.assert)(width > 0 && height > 0, "Invalid SVG dimensions");
      var svg = document.createElementNS(SVG_NS, "svg:svg");
      svg.setAttribute("version", "1.1");
      svg.setAttribute("width", width + "px");
      svg.setAttribute("height", height + "px");
      svg.setAttribute("preserveAspectRatio", "none");
      svg.setAttribute("viewBox", "0 0 " + width + " " + height);
      return svg;
    }
  }, {
    key: "createElement",
    value: function createElement(type) {
      (0, _util.assert)(typeof type === "string", "Invalid SVG element type");
      return document.createElementNS(SVG_NS, type);
    }
  }]);

  return DOMSVGFactory;
}();

exports.DOMSVGFactory = DOMSVGFactory;

var PageViewport = /*#__PURE__*/function () {
  function PageViewport(_ref5) {
    var viewBox = _ref5.viewBox,
        scale = _ref5.scale,
        rotation = _ref5.rotation,
        _ref5$offsetX = _ref5.offsetX,
        offsetX = _ref5$offsetX === void 0 ? 0 : _ref5$offsetX,
        _ref5$offsetY = _ref5.offsetY,
        offsetY = _ref5$offsetY === void 0 ? 0 : _ref5$offsetY,
        _ref5$dontFlip = _ref5.dontFlip,
        dontFlip = _ref5$dontFlip === void 0 ? false : _ref5$dontFlip;

    _classCallCheck(this, PageViewport);

    this.viewBox = viewBox;
    this.scale = scale;
    this.rotation = rotation;
    this.offsetX = offsetX;
    this.offsetY = offsetY;
    var centerX = (viewBox[2] + viewBox[0]) / 2;
    var centerY = (viewBox[3] + viewBox[1]) / 2;
    var rotateA, rotateB, rotateC, rotateD;
    rotation = rotation % 360;
    rotation = rotation < 0 ? rotation + 360 : rotation;

    switch (rotation) {
      case 180:
        rotateA = -1;
        rotateB = 0;
        rotateC = 0;
        rotateD = 1;
        break;

      case 90:
        rotateA = 0;
        rotateB = 1;
        rotateC = 1;
        rotateD = 0;
        break;

      case 270:
        rotateA = 0;
        rotateB = -1;
        rotateC = -1;
        rotateD = 0;
        break;

      case 0:
        rotateA = 1;
        rotateB = 0;
        rotateC = 0;
        rotateD = -1;
        break;

      default:
        throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");
    }

    if (dontFlip) {
      rotateC = -rotateC;
      rotateD = -rotateD;
    }

    var offsetCanvasX, offsetCanvasY;
    var width, height;

    if (rotateA === 0) {
      offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
      offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
      width = Math.abs(viewBox[3] - viewBox[1]) * scale;
      height = Math.abs(viewBox[2] - viewBox[0]) * scale;
    } else {
      offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
      offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
      width = Math.abs(viewBox[2] - viewBox[0]) * scale;
      height = Math.abs(viewBox[3] - viewBox[1]) * scale;
    }

    this.transform = [rotateA * scale, rotateB * scale, rotateC * scale, rotateD * scale, offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY, offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY];
    this.width = width;
    this.height = height;
  }

  _createClass(PageViewport, [{
    key: "clone",
    value: function clone() {
      var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
          _ref6$scale = _ref6.scale,
          scale = _ref6$scale === void 0 ? this.scale : _ref6$scale,
          _ref6$rotation = _ref6.rotation,
          rotation = _ref6$rotation === void 0 ? this.rotation : _ref6$rotation,
          _ref6$offsetX = _ref6.offsetX,
          offsetX = _ref6$offsetX === void 0 ? this.offsetX : _ref6$offsetX,
          _ref6$offsetY = _ref6.offsetY,
          offsetY = _ref6$offsetY === void 0 ? this.offsetY : _ref6$offsetY,
          _ref6$dontFlip = _ref6.dontFlip,
          dontFlip = _ref6$dontFlip === void 0 ? false : _ref6$dontFlip;

      return new PageViewport({
        viewBox: this.viewBox.slice(),
        scale: scale,
        rotation: rotation,
        offsetX: offsetX,
        offsetY: offsetY,
        dontFlip: dontFlip
      });
    }
  }, {
    key: "convertToViewportPoint",
    value: function convertToViewportPoint(x, y) {
      return _util.Util.applyTransform([x, y], this.transform);
    }
  }, {
    key: "convertToViewportRectangle",
    value: function convertToViewportRectangle(rect) {
      var topLeft = _util.Util.applyTransform([rect[0], rect[1]], this.transform);

      var bottomRight = _util.Util.applyTransform([rect[2], rect[3]], this.transform);

      return [topLeft[0], topLeft[1], bottomRight[0], bottomRight[1]];
    }
  }, {
    key: "convertToPdfPoint",
    value: function convertToPdfPoint(x, y) {
      return _util.Util.applyInverseTransform([x, y], this.transform);
    }
  }]);

  return PageViewport;
}();

exports.PageViewport = PageViewport;

var RenderingCancelledException = /*#__PURE__*/function (_BaseException) {
  _inherits(RenderingCancelledException, _BaseException);

  var _super3 = _createSuper(RenderingCancelledException);

  function RenderingCancelledException(msg, type) {
    var _this4;

    _classCallCheck(this, RenderingCancelledException);

    _this4 = _super3.call(this, msg);
    _this4.type = type;
    return _this4;
  }

  return RenderingCancelledException;
}(_util.BaseException);

exports.RenderingCancelledException = RenderingCancelledException;
var LinkTarget = {
  NONE: 0,
  SELF: 1,
  BLANK: 2,
  PARENT: 3,
  TOP: 4
};
exports.LinkTarget = LinkTarget;

function addLinkAttributes(link) {
  var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
      url = _ref7.url,
      target = _ref7.target,
      rel = _ref7.rel,
      _ref7$enabled = _ref7.enabled,
      enabled = _ref7$enabled === void 0 ? true : _ref7$enabled;

  (0, _util.assert)(url && typeof url === "string", 'addLinkAttributes: A valid "url" parameter must provided.');
  var urlNullRemoved = (0, _util.removeNullCharacters)(url);

  if (enabled) {
    link.href = link.title = urlNullRemoved;
  } else {
    link.href = "";
    link.title = "Disabled: ".concat(urlNullRemoved);

    link.onclick = function () {
      return false;
    };
  }

  var targetStr = "";

  switch (target) {
    case LinkTarget.NONE:
      break;

    case LinkTarget.SELF:
      targetStr = "_self";
      break;

    case LinkTarget.BLANK:
      targetStr = "_blank";
      break;

    case LinkTarget.PARENT:
      targetStr = "_parent";
      break;

    case LinkTarget.TOP:
      targetStr = "_top";
      break;
  }

  link.target = targetStr;
  link.rel = typeof rel === "string" ? rel : DEFAULT_LINK_REL;
}

function getFilenameFromUrl(url) {
  var anchor = url.indexOf("#");
  var query = url.indexOf("?");
  var end = Math.min(anchor > 0 ? anchor : url.length, query > 0 ? query : url.length);
  return url.substring(url.lastIndexOf("/", end) + 1, end);
}

var StatTimer = /*#__PURE__*/function () {
  function StatTimer() {
    _classCallCheck(this, StatTimer);

    this.started = Object.create(null);
    this.times = [];
  }

  _createClass(StatTimer, [{
    key: "time",
    value: function time(name) {
      if (name in this.started) {
        (0, _util.warn)("Timer is already running for ".concat(name));
      }

      this.started[name] = Date.now();
    }
  }, {
    key: "timeEnd",
    value: function timeEnd(name) {
      if (!(name in this.started)) {
        (0, _util.warn)("Timer has not been started for ".concat(name));
      }

      this.times.push({
        name: name,
        start: this.started[name],
        end: Date.now()
      });
      delete this.started[name];
    }
  }, {
    key: "toString",
    value: function toString() {
      var outBuf = [];
      var longest = 0;

      var _iterator = _createForOfIteratorHelper(this.times),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var time = _step.value;
          var name = time.name;

          if (name.length > longest) {
            longest = name.length;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(this.times),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _time = _step2.value;
          var duration = _time.end - _time.start;
          outBuf.push("".concat(_time.name.padEnd(longest), " ").concat(duration, "ms\n"));
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      return outBuf.join("");
    }
  }]);

  return StatTimer;
}();

exports.StatTimer = StatTimer;

function isFetchSupported() {
  return typeof fetch !== "undefined" && typeof Response !== "undefined" && "body" in Response.prototype && typeof ReadableStream !== "undefined";
}

function isValidFetchUrl(url, baseUrl) {
  try {
    var _ref8 = baseUrl ? new URL(url, baseUrl) : new URL(url),
        protocol = _ref8.protocol;

    return protocol === "http:" || protocol === "https:";
  } catch (ex) {
    return false;
  }
}

function loadScript(src) {
  return new Promise(function (resolve, reject) {
    var script = document.createElement("script");
    script.src = src;
    script.onload = resolve;

    script.onerror = function () {
      reject(new Error("Cannot load script at: ".concat(script.src)));
    };

    (document.head || document.documentElement).appendChild(script);
  });
}

function deprecated(details) {
  console.log("Deprecated API usage: " + details);
}

var pdfDateStringRegex;

var PDFDateString = /*#__PURE__*/function () {
  function PDFDateString() {
    _classCallCheck(this, PDFDateString);
  }

  _createClass(PDFDateString, null, [{
    key: "toDateObject",
    value: function toDateObject(input) {
      if (!input || !(0, _util.isString)(input)) {
        return null;
      }

      if (!pdfDateStringRegex) {
        pdfDateStringRegex = new RegExp("^D:" + "(\\d{4})" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "([Z|+|-])?" + "(\\d{2})?" + "'?" + "(\\d{2})?" + "'?");
      }

      var matches = pdfDateStringRegex.exec(input);

      if (!matches) {
        return null;
      }

      var year = parseInt(matches[1], 10);
      var month = parseInt(matches[2], 10);
      month = month >= 1 && month <= 12 ? month - 1 : 0;
      var day = parseInt(matches[3], 10);
      day = day >= 1 && day <= 31 ? day : 1;
      var hour = parseInt(matches[4], 10);
      hour = hour >= 0 && hour <= 23 ? hour : 0;
      var minute = parseInt(matches[5], 10);
      minute = minute >= 0 && minute <= 59 ? minute : 0;
      var second = parseInt(matches[6], 10);
      second = second >= 0 && second <= 59 ? second : 0;
      var universalTimeRelation = matches[7] || "Z";
      var offsetHour = parseInt(matches[8], 10);
      offsetHour = offsetHour >= 0 && offsetHour <= 23 ? offsetHour : 0;
      var offsetMinute = parseInt(matches[9], 10) || 0;
      offsetMinute = offsetMinute >= 0 && offsetMinute <= 59 ? offsetMinute : 0;

      if (universalTimeRelation === "-") {
        hour += offsetHour;
        minute += offsetMinute;
      } else if (universalTimeRelation === "+") {
        hour -= offsetHour;
        minute -= offsetMinute;
      }

      return new Date(Date.UTC(year, month, day, hour, minute, second));
    }
  }]);

  return PDFDateString;
}();

exports.PDFDateString = PDFDateString;

/***/ }),
/* 2 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


module.exports = __w_pdfjs_require__(3);

/***/ }),
/* 3 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var runtime = function (exports) {
  "use strict";

  var Op = Object.prototype;
  var hasOwn = Op.hasOwnProperty;
  var undefined;
  var $Symbol = typeof Symbol === "function" ? Symbol : {};
  var iteratorSymbol = $Symbol.iterator || "@@iterator";
  var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";

  function define(obj, key, value) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
    return obj[key];
  }

  try {
    define({}, "");
  } catch (err) {
    define = function define(obj, key, value) {
      return obj[key] = value;
    };
  }

  function wrap(innerFn, outerFn, self, tryLocsList) {
    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
    var generator = Object.create(protoGenerator.prototype);
    var context = new Context(tryLocsList || []);
    generator._invoke = makeInvokeMethod(innerFn, self, context);
    return generator;
  }

  exports.wrap = wrap;

  function tryCatch(fn, obj, arg) {
    try {
      return {
        type: "normal",
        arg: fn.call(obj, arg)
      };
    } catch (err) {
      return {
        type: "throw",
        arg: err
      };
    }
  }

  var GenStateSuspendedStart = "suspendedStart";
  var GenStateSuspendedYield = "suspendedYield";
  var GenStateExecuting = "executing";
  var GenStateCompleted = "completed";
  var ContinueSentinel = {};

  function Generator() {}

  function GeneratorFunction() {}

  function GeneratorFunctionPrototype() {}

  var IteratorPrototype = {};

  IteratorPrototype[iteratorSymbol] = function () {
    return this;
  };

  var getProto = Object.getPrototypeOf;
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));

  if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
    IteratorPrototype = NativeIteratorPrototype;
  }

  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  GeneratorFunctionPrototype.constructor = GeneratorFunction;
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");

  function defineIteratorMethods(prototype) {
    ["next", "throw", "return"].forEach(function (method) {
      define(prototype, method, function (arg) {
        return this._invoke(method, arg);
      });
    });
  }

  exports.isGeneratorFunction = function (genFun) {
    var ctor = typeof genFun === "function" && genFun.constructor;
    return ctor ? ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction" : false;
  };

  exports.mark = function (genFun) {
    if (Object.setPrototypeOf) {
      Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
    } else {
      genFun.__proto__ = GeneratorFunctionPrototype;
      define(genFun, toStringTagSymbol, "GeneratorFunction");
    }

    genFun.prototype = Object.create(Gp);
    return genFun;
  };

  exports.awrap = function (arg) {
    return {
      __await: arg
    };
  };

  function AsyncIterator(generator, PromiseImpl) {
    function invoke(method, arg, resolve, reject) {
      var record = tryCatch(generator[method], generator, arg);

      if (record.type === "throw") {
        reject(record.arg);
      } else {
        var result = record.arg;
        var value = result.value;

        if (value && _typeof(value) === "object" && hasOwn.call(value, "__await")) {
          return PromiseImpl.resolve(value.__await).then(function (value) {
            invoke("next", value, resolve, reject);
          }, function (err) {
            invoke("throw", err, resolve, reject);
          });
        }

        return PromiseImpl.resolve(value).then(function (unwrapped) {
          result.value = unwrapped;
          resolve(result);
        }, function (error) {
          return invoke("throw", error, resolve, reject);
        });
      }
    }

    var previousPromise;

    function enqueue(method, arg) {
      function callInvokeWithMethodAndArg() {
        return new PromiseImpl(function (resolve, reject) {
          invoke(method, arg, resolve, reject);
        });
      }

      return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
    }

    this._invoke = enqueue;
  }

  defineIteratorMethods(AsyncIterator.prototype);

  AsyncIterator.prototype[asyncIteratorSymbol] = function () {
    return this;
  };

  exports.AsyncIterator = AsyncIterator;

  exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
    if (PromiseImpl === void 0) PromiseImpl = Promise;
    var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
    return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
      return result.done ? result.value : iter.next();
    });
  };

  function makeInvokeMethod(innerFn, self, context) {
    var state = GenStateSuspendedStart;
    return function invoke(method, arg) {
      if (state === GenStateExecuting) {
        throw new Error("Generator is already running");
      }

      if (state === GenStateCompleted) {
        if (method === "throw") {
          throw arg;
        }

        return doneResult();
      }

      context.method = method;
      context.arg = arg;

      while (true) {
        var delegate = context.delegate;

        if (delegate) {
          var delegateResult = maybeInvokeDelegate(delegate, context);

          if (delegateResult) {
            if (delegateResult === ContinueSentinel) continue;
            return delegateResult;
          }
        }

        if (context.method === "next") {
          context.sent = context._sent = context.arg;
        } else if (context.method === "throw") {
          if (state === GenStateSuspendedStart) {
            state = GenStateCompleted;
            throw context.arg;
          }

          context.dispatchException(context.arg);
        } else if (context.method === "return") {
          context.abrupt("return", context.arg);
        }

        state = GenStateExecuting;
        var record = tryCatch(innerFn, self, context);

        if (record.type === "normal") {
          state = context.done ? GenStateCompleted : GenStateSuspendedYield;

          if (record.arg === ContinueSentinel) {
            continue;
          }

          return {
            value: record.arg,
            done: context.done
          };
        } else if (record.type === "throw") {
          state = GenStateCompleted;
          context.method = "throw";
          context.arg = record.arg;
        }
      }
    };
  }

  function maybeInvokeDelegate(delegate, context) {
    var method = delegate.iterator[context.method];

    if (method === undefined) {
      context.delegate = null;

      if (context.method === "throw") {
        if (delegate.iterator["return"]) {
          context.method = "return";
          context.arg = undefined;
          maybeInvokeDelegate(delegate, context);

          if (context.method === "throw") {
            return ContinueSentinel;
          }
        }

        context.method = "throw";
        context.arg = new TypeError("The iterator does not provide a 'throw' method");
      }

      return ContinueSentinel;
    }

    var record = tryCatch(method, delegate.iterator, context.arg);

    if (record.type === "throw") {
      context.method = "throw";
      context.arg = record.arg;
      context.delegate = null;
      return ContinueSentinel;
    }

    var info = record.arg;

    if (!info) {
      context.method = "throw";
      context.arg = new TypeError("iterator result is not an object");
      context.delegate = null;
      return ContinueSentinel;
    }

    if (info.done) {
      context[delegate.resultName] = info.value;
      context.next = delegate.nextLoc;

      if (context.method !== "return") {
        context.method = "next";
        context.arg = undefined;
      }
    } else {
      return info;
    }

    context.delegate = null;
    return ContinueSentinel;
  }

  defineIteratorMethods(Gp);
  define(Gp, toStringTagSymbol, "Generator");

  Gp[iteratorSymbol] = function () {
    return this;
  };

  Gp.toString = function () {
    return "[object Generator]";
  };

  function pushTryEntry(locs) {
    var entry = {
      tryLoc: locs[0]
    };

    if (1 in locs) {
      entry.catchLoc = locs[1];
    }

    if (2 in locs) {
      entry.finallyLoc = locs[2];
      entry.afterLoc = locs[3];
    }

    this.tryEntries.push(entry);
  }

  function resetTryEntry(entry) {
    var record = entry.completion || {};
    record.type = "normal";
    delete record.arg;
    entry.completion = record;
  }

  function Context(tryLocsList) {
    this.tryEntries = [{
      tryLoc: "root"
    }];
    tryLocsList.forEach(pushTryEntry, this);
    this.reset(true);
  }

  exports.keys = function (object) {
    var keys = [];

    for (var key in object) {
      keys.push(key);
    }

    keys.reverse();
    return function next() {
      while (keys.length) {
        var key = keys.pop();

        if (key in object) {
          next.value = key;
          next.done = false;
          return next;
        }
      }

      next.done = true;
      return next;
    };
  };

  function values(iterable) {
    if (iterable) {
      var iteratorMethod = iterable[iteratorSymbol];

      if (iteratorMethod) {
        return iteratorMethod.call(iterable);
      }

      if (typeof iterable.next === "function") {
        return iterable;
      }

      if (!isNaN(iterable.length)) {
        var i = -1,
            next = function next() {
          while (++i < iterable.length) {
            if (hasOwn.call(iterable, i)) {
              next.value = iterable[i];
              next.done = false;
              return next;
            }
          }

          next.value = undefined;
          next.done = true;
          return next;
        };

        return next.next = next;
      }
    }

    return {
      next: doneResult
    };
  }

  exports.values = values;

  function doneResult() {
    return {
      value: undefined,
      done: true
    };
  }

  Context.prototype = {
    constructor: Context,
    reset: function reset(skipTempReset) {
      this.prev = 0;
      this.next = 0;
      this.sent = this._sent = undefined;
      this.done = false;
      this.delegate = null;
      this.method = "next";
      this.arg = undefined;
      this.tryEntries.forEach(resetTryEntry);

      if (!skipTempReset) {
        for (var name in this) {
          if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
            this[name] = undefined;
          }
        }
      }
    },
    stop: function stop() {
      this.done = true;
      var rootEntry = this.tryEntries[0];
      var rootRecord = rootEntry.completion;

      if (rootRecord.type === "throw") {
        throw rootRecord.arg;
      }

      return this.rval;
    },
    dispatchException: function dispatchException(exception) {
      if (this.done) {
        throw exception;
      }

      var context = this;

      function handle(loc, caught) {
        record.type = "throw";
        record.arg = exception;
        context.next = loc;

        if (caught) {
          context.method = "next";
          context.arg = undefined;
        }

        return !!caught;
      }

      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        var record = entry.completion;

        if (entry.tryLoc === "root") {
          return handle("end");
        }

        if (entry.tryLoc <= this.prev) {
          var hasCatch = hasOwn.call(entry, "catchLoc");
          var hasFinally = hasOwn.call(entry, "finallyLoc");

          if (hasCatch && hasFinally) {
            if (this.prev < entry.catchLoc) {
              return handle(entry.catchLoc, true);
            } else if (this.prev < entry.finallyLoc) {
              return handle(entry.finallyLoc);
            }
          } else if (hasCatch) {
            if (this.prev < entry.catchLoc) {
              return handle(entry.catchLoc, true);
            }
          } else if (hasFinally) {
            if (this.prev < entry.finallyLoc) {
              return handle(entry.finallyLoc);
            }
          } else {
            throw new Error("try statement without catch or finally");
          }
        }
      }
    },
    abrupt: function abrupt(type, arg) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];

        if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
          var finallyEntry = entry;
          break;
        }
      }

      if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
        finallyEntry = null;
      }

      var record = finallyEntry ? finallyEntry.completion : {};
      record.type = type;
      record.arg = arg;

      if (finallyEntry) {
        this.method = "next";
        this.next = finallyEntry.finallyLoc;
        return ContinueSentinel;
      }

      return this.complete(record);
    },
    complete: function complete(record, afterLoc) {
      if (record.type === "throw") {
        throw record.arg;
      }

      if (record.type === "break" || record.type === "continue") {
        this.next = record.arg;
      } else if (record.type === "return") {
        this.rval = this.arg = record.arg;
        this.method = "return";
        this.next = "end";
      } else if (record.type === "normal" && afterLoc) {
        this.next = afterLoc;
      }

      return ContinueSentinel;
    },
    finish: function finish(finallyLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];

        if (entry.finallyLoc === finallyLoc) {
          this.complete(entry.completion, entry.afterLoc);
          resetTryEntry(entry);
          return ContinueSentinel;
        }
      }
    },
    "catch": function _catch(tryLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];

        if (entry.tryLoc === tryLoc) {
          var record = entry.completion;

          if (record.type === "throw") {
            var thrown = record.arg;
            resetTryEntry(entry);
          }

          return thrown;
        }
      }

      throw new Error("illegal catch attempt");
    },
    delegateYield: function delegateYield(iterable, resultName, nextLoc) {
      this.delegate = {
        iterator: values(iterable),
        resultName: resultName,
        nextLoc: nextLoc
      };

      if (this.method === "next") {
        this.arg = undefined;
      }

      return ContinueSentinel;
    }
  };
  return exports;
}(( false ? undefined : _typeof(module)) === "object" ? module.exports : {});

try {
  regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
  Function("r", "regeneratorRuntime = r")(runtime);
}
/* WEBPACK VAR INJECTION */}.call(this, __w_pdfjs_require__(4)(module)))

/***/ }),
/* 4 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


module.exports = function (module) {
  if (!module.webpackPolyfill) {
    module.deprecate = function () {};

    module.paths = [];
    if (!module.children) module.children = [];
    Object.defineProperty(module, "loaded", {
      enumerable: true,
      get: function get() {
        return module.l;
      }
    });
    Object.defineProperty(module, "id", {
      enumerable: true,
      get: function get() {
        return module.i;
      }
    });
    module.webpackPolyfill = 1;
  }

  return module;
};

/***/ }),
/* 5 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.arrayByteLength = arrayByteLength;
exports.arraysToBytes = arraysToBytes;
exports.assert = assert;
exports.bytesToString = bytesToString;
exports.createPromiseCapability = createPromiseCapability;
exports.escapeString = escapeString;
exports.getModificationDate = getModificationDate;
exports.getVerbosityLevel = getVerbosityLevel;
exports.info = info;
exports.isArrayBuffer = isArrayBuffer;
exports.isArrayEqual = isArrayEqual;
exports.isBool = isBool;
exports.isNum = isNum;
exports.isString = isString;
exports.isSameOrigin = isSameOrigin;
exports.createValidAbsoluteUrl = createValidAbsoluteUrl;
exports.removeNullCharacters = removeNullCharacters;
exports.setVerbosityLevel = setVerbosityLevel;
exports.shadow = shadow;
exports.string32 = string32;
exports.stringToBytes = stringToBytes;
exports.stringToPDFString = stringToPDFString;
exports.stringToUTF8String = stringToUTF8String;
exports.utf8StringToString = utf8StringToString;
exports.warn = warn;
exports.unreachable = unreachable;
exports.IsEvalSupportedCached = exports.IsLittleEndianCached = exports.createObjectURL = exports.FormatError = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.MissingPDFException = exports.InvalidPDFException = exports.AbortException = exports.CMapCompressionType = exports.ImageKind = exports.FontType = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.UNSUPPORTED_FEATURES = exports.VerbosityLevel = exports.OPS = exports.IDENTITY_MATRIX = exports.FONT_IDENTITY_MATRIX = exports.BaseException = void 0;

__w_pdfjs_require__(6);

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
exports.IDENTITY_MATRIX = IDENTITY_MATRIX;
var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
exports.FONT_IDENTITY_MATRIX = FONT_IDENTITY_MATRIX;
var PermissionFlag = {
  PRINT: 0x04,
  MODIFY_CONTENTS: 0x08,
  COPY: 0x10,
  MODIFY_ANNOTATIONS: 0x20,
  FILL_INTERACTIVE_FORMS: 0x100,
  COPY_FOR_ACCESSIBILITY: 0x200,
  ASSEMBLE: 0x400,
  PRINT_HIGH_QUALITY: 0x800
};
exports.PermissionFlag = PermissionFlag;
var TextRenderingMode = {
  FILL: 0,
  STROKE: 1,
  FILL_STROKE: 2,
  INVISIBLE: 3,
  FILL_ADD_TO_PATH: 4,
  STROKE_ADD_TO_PATH: 5,
  FILL_STROKE_ADD_TO_PATH: 6,
  ADD_TO_PATH: 7,
  FILL_STROKE_MASK: 3,
  ADD_TO_PATH_FLAG: 4
};
exports.TextRenderingMode = TextRenderingMode;
var ImageKind = {
  GRAYSCALE_1BPP: 1,
  RGB_24BPP: 2,
  RGBA_32BPP: 3
};
exports.ImageKind = ImageKind;
var AnnotationType = {
  TEXT: 1,
  LINK: 2,
  FREETEXT: 3,
  LINE: 4,
  SQUARE: 5,
  CIRCLE: 6,
  POLYGON: 7,
  POLYLINE: 8,
  HIGHLIGHT: 9,
  UNDERLINE: 10,
  SQUIGGLY: 11,
  STRIKEOUT: 12,
  STAMP: 13,
  CARET: 14,
  INK: 15,
  POPUP: 16,
  FILEATTACHMENT: 17,
  SOUND: 18,
  MOVIE: 19,
  WIDGET: 20,
  SCREEN: 21,
  PRINTERMARK: 22,
  TRAPNET: 23,
  WATERMARK: 24,
  THREED: 25,
  REDACT: 26
};
exports.AnnotationType = AnnotationType;
var AnnotationStateModelType = {
  MARKED: "Marked",
  REVIEW: "Review"
};
exports.AnnotationStateModelType = AnnotationStateModelType;
var AnnotationMarkedState = {
  MARKED: "Marked",
  UNMARKED: "Unmarked"
};
exports.AnnotationMarkedState = AnnotationMarkedState;
var AnnotationReviewState = {
  ACCEPTED: "Accepted",
  REJECTED: "Rejected",
  CANCELLED: "Cancelled",
  COMPLETED: "Completed",
  NONE: "None"
};
exports.AnnotationReviewState = AnnotationReviewState;
var AnnotationReplyType = {
  GROUP: "Group",
  REPLY: "R"
};
exports.AnnotationReplyType = AnnotationReplyType;
var AnnotationFlag = {
  INVISIBLE: 0x01,
  HIDDEN: 0x02,
  PRINT: 0x04,
  NOZOOM: 0x08,
  NOROTATE: 0x10,
  NOVIEW: 0x20,
  READONLY: 0x40,
  LOCKED: 0x80,
  TOGGLENOVIEW: 0x100,
  LOCKEDCONTENTS: 0x200
};
exports.AnnotationFlag = AnnotationFlag;
var AnnotationFieldFlag = {
  READONLY: 0x0000001,
  REQUIRED: 0x0000002,
  NOEXPORT: 0x0000004,
  MULTILINE: 0x0001000,
  PASSWORD: 0x0002000,
  NOTOGGLETOOFF: 0x0004000,
  RADIO: 0x0008000,
  PUSHBUTTON: 0x0010000,
  COMBO: 0x0020000,
  EDIT: 0x0040000,
  SORT: 0x0080000,
  FILESELECT: 0x0100000,
  MULTISELECT: 0x0200000,
  DONOTSPELLCHECK: 0x0400000,
  DONOTSCROLL: 0x0800000,
  COMB: 0x1000000,
  RICHTEXT: 0x2000000,
  RADIOSINUNISON: 0x2000000,
  COMMITONSELCHANGE: 0x4000000
};
exports.AnnotationFieldFlag = AnnotationFieldFlag;
var AnnotationBorderStyleType = {
  SOLID: 1,
  DASHED: 2,
  BEVELED: 3,
  INSET: 4,
  UNDERLINE: 5
};
exports.AnnotationBorderStyleType = AnnotationBorderStyleType;
var StreamType = {
  UNKNOWN: "UNKNOWN",
  FLATE: "FLATE",
  LZW: "LZW",
  DCT: "DCT",
  JPX: "JPX",
  JBIG: "JBIG",
  A85: "A85",
  AHX: "AHX",
  CCF: "CCF",
  RLX: "RLX"
};
exports.StreamType = StreamType;
var FontType = {
  UNKNOWN: "UNKNOWN",
  TYPE1: "TYPE1",
  TYPE1C: "TYPE1C",
  CIDFONTTYPE0: "CIDFONTTYPE0",
  CIDFONTTYPE0C: "CIDFONTTYPE0C",
  TRUETYPE: "TRUETYPE",
  CIDFONTTYPE2: "CIDFONTTYPE2",
  TYPE3: "TYPE3",
  OPENTYPE: "OPENTYPE",
  TYPE0: "TYPE0",
  MMTYPE1: "MMTYPE1"
};
exports.FontType = FontType;
var VerbosityLevel = {
  ERRORS: 0,
  WARNINGS: 1,
  INFOS: 5
};
exports.VerbosityLevel = VerbosityLevel;
var CMapCompressionType = {
  NONE: 0,
  BINARY: 1,
  STREAM: 2
};
exports.CMapCompressionType = CMapCompressionType;
var OPS = {
  dependency: 1,
  setLineWidth: 2,
  setLineCap: 3,
  setLineJoin: 4,
  setMiterLimit: 5,
  setDash: 6,
  setRenderingIntent: 7,
  setFlatness: 8,
  setGState: 9,
  save: 10,
  restore: 11,
  transform: 12,
  moveTo: 13,
  lineTo: 14,
  curveTo: 15,
  curveTo2: 16,
  curveTo3: 17,
  closePath: 18,
  rectangle: 19,
  stroke: 20,
  closeStroke: 21,
  fill: 22,
  eoFill: 23,
  fillStroke: 24,
  eoFillStroke: 25,
  closeFillStroke: 26,
  closeEOFillStroke: 27,
  endPath: 28,
  clip: 29,
  eoClip: 30,
  beginText: 31,
  endText: 32,
  setCharSpacing: 33,
  setWordSpacing: 34,
  setHScale: 35,
  setLeading: 36,
  setFont: 37,
  setTextRenderingMode: 38,
  setTextRise: 39,
  moveText: 40,
  setLeadingMoveText: 41,
  setTextMatrix: 42,
  nextLine: 43,
  showText: 44,
  showSpacedText: 45,
  nextLineShowText: 46,
  nextLineSetSpacingShowText: 47,
  setCharWidth: 48,
  setCharWidthAndBounds: 49,
  setStrokeColorSpace: 50,
  setFillColorSpace: 51,
  setStrokeColor: 52,
  setStrokeColorN: 53,
  setFillColor: 54,
  setFillColorN: 55,
  setStrokeGray: 56,
  setFillGray: 57,
  setStrokeRGBColor: 58,
  setFillRGBColor: 59,
  setStrokeCMYKColor: 60,
  setFillCMYKColor: 61,
  shadingFill: 62,
  beginInlineImage: 63,
  beginImageData: 64,
  endInlineImage: 65,
  paintXObject: 66,
  markPoint: 67,
  markPointProps: 68,
  beginMarkedContent: 69,
  beginMarkedContentProps: 70,
  endMarkedContent: 71,
  beginCompat: 72,
  endCompat: 73,
  paintFormXObjectBegin: 74,
  paintFormXObjectEnd: 75,
  beginGroup: 76,
  endGroup: 77,
  beginAnnotations: 78,
  endAnnotations: 79,
  beginAnnotation: 80,
  endAnnotation: 81,
  paintJpegXObject: 82,
  paintImageMaskXObject: 83,
  paintImageMaskXObjectGroup: 84,
  paintImageXObject: 85,
  paintInlineImageXObject: 86,
  paintInlineImageXObjectGroup: 87,
  paintImageXObjectRepeat: 88,
  paintImageMaskXObjectRepeat: 89,
  paintSolidColorImageMask: 90,
  constructPath: 91
};
exports.OPS = OPS;
var UNSUPPORTED_FEATURES = {
  unknown: "unknown",
  forms: "forms",
  javaScript: "javaScript",
  smask: "smask",
  shadingPattern: "shadingPattern",
  font: "font",
  errorTilingPattern: "errorTilingPattern",
  errorExtGState: "errorExtGState",
  errorXObject: "errorXObject",
  errorFontLoadType3: "errorFontLoadType3",
  errorFontState: "errorFontState",
  errorFontMissing: "errorFontMissing",
  errorFontTranslate: "errorFontTranslate",
  errorColorSpace: "errorColorSpace",
  errorOperatorList: "errorOperatorList",
  errorFontToUnicode: "errorFontToUnicode",
  errorFontLoadNative: "errorFontLoadNative",
  errorFontGetPath: "errorFontGetPath",
  errorMarkedContent: "errorMarkedContent"
};
exports.UNSUPPORTED_FEATURES = UNSUPPORTED_FEATURES;
var PasswordResponses = {
  NEED_PASSWORD: 1,
  INCORRECT_PASSWORD: 2
};
exports.PasswordResponses = PasswordResponses;
var verbosity = VerbosityLevel.WARNINGS;

function setVerbosityLevel(level) {
  if (Number.isInteger(level)) {
    verbosity = level;
  }
}

function getVerbosityLevel() {
  return verbosity;
}

function info(msg) {
  if (verbosity >= VerbosityLevel.INFOS) {
    console.log("Info: ".concat(msg));
  }
}

function warn(msg) {
  if (verbosity >= VerbosityLevel.WARNINGS) {
    console.log("Warning: ".concat(msg));
  }
}

function unreachable(msg) {
  throw new Error(msg);
}

function assert(cond, msg) {
  if (!cond) {
    unreachable(msg);
  }
}

function isSameOrigin(baseUrl, otherUrl) {
  var base;

  try {
    base = new URL(baseUrl);

    if (!base.origin || base.origin === "null") {
      return false;
    }
  } catch (e) {
    return false;
  }

  var other = new URL(otherUrl, base);
  return base.origin === other.origin;
}

function _isValidProtocol(url) {
  if (!url) {
    return false;
  }

  switch (url.protocol) {
    case "http:":
    case "https:":
    case "ftp:":
    case "mailto:":
    case "tel:":
      return true;

    default:
      return false;
  }
}

function createValidAbsoluteUrl(url, baseUrl) {
  if (!url) {
    return null;
  }

  try {
    var absoluteUrl = baseUrl ? new URL(url, baseUrl) : new URL(url);

    if (_isValidProtocol(absoluteUrl)) {
      return absoluteUrl;
    }
  } catch (ex) {}

  return null;
}

function shadow(obj, prop, value) {
  Object.defineProperty(obj, prop, {
    value: value,
    enumerable: true,
    configurable: true,
    writable: false
  });
  return value;
}

var BaseException = function BaseExceptionClosure() {
  function BaseException(message) {
    if (this.constructor === BaseException) {
      unreachable("Cannot initialize BaseException.");
    }

    this.message = message;
    this.name = this.constructor.name;
  }

  BaseException.prototype = new Error();
  BaseException.constructor = BaseException;
  return BaseException;
}();

exports.BaseException = BaseException;

var PasswordException = /*#__PURE__*/function (_BaseException) {
  _inherits(PasswordException, _BaseException);

  var _super = _createSuper(PasswordException);

  function PasswordException(msg, code) {
    var _this;

    _classCallCheck(this, PasswordException);

    _this = _super.call(this, msg);
    _this.code = code;
    return _this;
  }

  return PasswordException;
}(BaseException);

exports.PasswordException = PasswordException;

var UnknownErrorException = /*#__PURE__*/function (_BaseException2) {
  _inherits(UnknownErrorException, _BaseException2);

  var _super2 = _createSuper(UnknownErrorException);

  function UnknownErrorException(msg, details) {
    var _this2;

    _classCallCheck(this, UnknownErrorException);

    _this2 = _super2.call(this, msg);
    _this2.details = details;
    return _this2;
  }

  return UnknownErrorException;
}(BaseException);

exports.UnknownErrorException = UnknownErrorException;

var InvalidPDFException = /*#__PURE__*/function (_BaseException3) {
  _inherits(InvalidPDFException, _BaseException3);

  var _super3 = _createSuper(InvalidPDFException);

  function InvalidPDFException() {
    _classCallCheck(this, InvalidPDFException);

    return _super3.apply(this, arguments);
  }

  return InvalidPDFException;
}(BaseException);

exports.InvalidPDFException = InvalidPDFException;

var MissingPDFException = /*#__PURE__*/function (_BaseException4) {
  _inherits(MissingPDFException, _BaseException4);

  var _super4 = _createSuper(MissingPDFException);

  function MissingPDFException() {
    _classCallCheck(this, MissingPDFException);

    return _super4.apply(this, arguments);
  }

  return MissingPDFException;
}(BaseException);

exports.MissingPDFException = MissingPDFException;

var UnexpectedResponseException = /*#__PURE__*/function (_BaseException5) {
  _inherits(UnexpectedResponseException, _BaseException5);

  var _super5 = _createSuper(UnexpectedResponseException);

  function UnexpectedResponseException(msg, status) {
    var _this3;

    _classCallCheck(this, UnexpectedResponseException);

    _this3 = _super5.call(this, msg);
    _this3.status = status;
    return _this3;
  }

  return UnexpectedResponseException;
}(BaseException);

exports.UnexpectedResponseException = UnexpectedResponseException;

var FormatError = /*#__PURE__*/function (_BaseException6) {
  _inherits(FormatError, _BaseException6);

  var _super6 = _createSuper(FormatError);

  function FormatError() {
    _classCallCheck(this, FormatError);

    return _super6.apply(this, arguments);
  }

  return FormatError;
}(BaseException);

exports.FormatError = FormatError;

var AbortException = /*#__PURE__*/function (_BaseException7) {
  _inherits(AbortException, _BaseException7);

  var _super7 = _createSuper(AbortException);

  function AbortException() {
    _classCallCheck(this, AbortException);

    return _super7.apply(this, arguments);
  }

  return AbortException;
}(BaseException);

exports.AbortException = AbortException;
var NullCharactersRegExp = /\x00/g;

function removeNullCharacters(str) {
  if (typeof str !== "string") {
    warn("The argument for removeNullCharacters must be a string.");
    return str;
  }

  return str.replace(NullCharactersRegExp, "");
}

function bytesToString(bytes) {
  assert(bytes !== null && _typeof(bytes) === "object" && bytes.length !== undefined, "Invalid argument for bytesToString");
  var length = bytes.length;
  var MAX_ARGUMENT_COUNT = 8192;

  if (length < MAX_ARGUMENT_COUNT) {
    return String.fromCharCode.apply(null, bytes);
  }

  var strBuf = [];

  for (var i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
    var chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
    var chunk = bytes.subarray(i, chunkEnd);
    strBuf.push(String.fromCharCode.apply(null, chunk));
  }

  return strBuf.join("");
}

function stringToBytes(str) {
  assert(typeof str === "string", "Invalid argument for stringToBytes");
  var length = str.length;
  var bytes = new Uint8Array(length);

  for (var i = 0; i < length; ++i) {
    bytes[i] = str.charCodeAt(i) & 0xff;
  }

  return bytes;
}

function arrayByteLength(arr) {
  if (arr.length !== undefined) {
    return arr.length;
  }

  assert(arr.byteLength !== undefined, "arrayByteLength - invalid argument.");
  return arr.byteLength;
}

function arraysToBytes(arr) {
  var length = arr.length;

  if (length === 1 && arr[0] instanceof Uint8Array) {
    return arr[0];
  }

  var resultLength = 0;

  for (var i = 0; i < length; i++) {
    resultLength += arrayByteLength(arr[i]);
  }

  var pos = 0;
  var data = new Uint8Array(resultLength);

  for (var _i = 0; _i < length; _i++) {
    var item = arr[_i];

    if (!(item instanceof Uint8Array)) {
      if (typeof item === "string") {
        item = stringToBytes(item);
      } else {
        item = new Uint8Array(item);
      }
    }

    var itemLength = item.byteLength;
    data.set(item, pos);
    pos += itemLength;
  }

  return data;
}

function string32(value) {
  return String.fromCharCode(value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff);
}

function isLittleEndian() {
  var buffer8 = new Uint8Array(4);
  buffer8[0] = 1;
  var view32 = new Uint32Array(buffer8.buffer, 0, 1);
  return view32[0] === 1;
}

var IsLittleEndianCached = {
  get value() {
    return shadow(this, "value", isLittleEndian());
  }

};
exports.IsLittleEndianCached = IsLittleEndianCached;

function isEvalSupported() {
  try {
    new Function("");
    return true;
  } catch (e) {
    return false;
  }
}

var IsEvalSupportedCached = {
  get value() {
    return shadow(this, "value", isEvalSupported());
  }

};
exports.IsEvalSupportedCached = IsEvalSupportedCached;
var rgbBuf = ["rgb(", 0, ",", 0, ",", 0, ")"];

var Util = /*#__PURE__*/function () {
  function Util() {
    _classCallCheck(this, Util);
  }

  _createClass(Util, null, [{
    key: "makeCssRgb",
    value: function makeCssRgb(r, g, b) {
      rgbBuf[1] = r;
      rgbBuf[3] = g;
      rgbBuf[5] = b;
      return rgbBuf.join("");
    }
  }, {
    key: "transform",
    value: function transform(m1, m2) {
      return [m1[0] * m2[0] + m1[2] * m2[1], m1[1] * m2[0] + m1[3] * m2[1], m1[0] * m2[2] + m1[2] * m2[3], m1[1] * m2[2] + m1[3] * m2[3], m1[0] * m2[4] + m1[2] * m2[5] + m1[4], m1[1] * m2[4] + m1[3] * m2[5] + m1[5]];
    }
  }, {
    key: "applyTransform",
    value: function applyTransform(p, m) {
      var xt = p[0] * m[0] + p[1] * m[2] + m[4];
      var yt = p[0] * m[1] + p[1] * m[3] + m[5];
      return [xt, yt];
    }
  }, {
    key: "applyInverseTransform",
    value: function applyInverseTransform(p, m) {
      var d = m[0] * m[3] - m[1] * m[2];
      var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
      var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
      return [xt, yt];
    }
  }, {
    key: "getAxialAlignedBoundingBox",
    value: function getAxialAlignedBoundingBox(r, m) {
      var p1 = Util.applyTransform(r, m);
      var p2 = Util.applyTransform(r.slice(2, 4), m);
      var p3 = Util.applyTransform([r[0], r[3]], m);
      var p4 = Util.applyTransform([r[2], r[1]], m);
      return [Math.min(p1[0], p2[0], p3[0], p4[0]), Math.min(p1[1], p2[1], p3[1], p4[1]), Math.max(p1[0], p2[0], p3[0], p4[0]), Math.max(p1[1], p2[1], p3[1], p4[1])];
    }
  }, {
    key: "inverseTransform",
    value: function inverseTransform(m) {
      var d = m[0] * m[3] - m[1] * m[2];
      return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d, (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
    }
  }, {
    key: "apply3dTransform",
    value: function apply3dTransform(m, v) {
      return [m[0] * v[0] + m[1] * v[1] + m[2] * v[2], m[3] * v[0] + m[4] * v[1] + m[5] * v[2], m[6] * v[0] + m[7] * v[1] + m[8] * v[2]];
    }
  }, {
    key: "singularValueDecompose2dScale",
    value: function singularValueDecompose2dScale(m) {
      var transpose = [m[0], m[2], m[1], m[3]];
      var a = m[0] * transpose[0] + m[1] * transpose[2];
      var b = m[0] * transpose[1] + m[1] * transpose[3];
      var c = m[2] * transpose[0] + m[3] * transpose[2];
      var d = m[2] * transpose[1] + m[3] * transpose[3];
      var first = (a + d) / 2;
      var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
      var sx = first + second || 1;
      var sy = first - second || 1;
      return [Math.sqrt(sx), Math.sqrt(sy)];
    }
  }, {
    key: "normalizeRect",
    value: function normalizeRect(rect) {
      var r = rect.slice(0);

      if (rect[0] > rect[2]) {
        r[0] = rect[2];
        r[2] = rect[0];
      }

      if (rect[1] > rect[3]) {
        r[1] = rect[3];
        r[3] = rect[1];
      }

      return r;
    }
  }, {
    key: "intersect",
    value: function intersect(rect1, rect2) {
      function compare(a, b) {
        return a - b;
      }

      var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare);
      var orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare);
      var result = [];
      rect1 = Util.normalizeRect(rect1);
      rect2 = Util.normalizeRect(rect2);

      if (orderedX[0] === rect1[0] && orderedX[1] === rect2[0] || orderedX[0] === rect2[0] && orderedX[1] === rect1[0]) {
        result[0] = orderedX[1];
        result[2] = orderedX[2];
      } else {
        return null;
      }

      if (orderedY[0] === rect1[1] && orderedY[1] === rect2[1] || orderedY[0] === rect2[1] && orderedY[1] === rect1[1]) {
        result[1] = orderedY[1];
        result[3] = orderedY[2];
      } else {
        return null;
      }

      return result;
    }
  }]);

  return Util;
}();

exports.Util = Util;
var PDFStringTranslateTable = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C, 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160, 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC];

function stringToPDFString(str) {
  var length = str.length,
      strBuf = [];

  if (str[0] === "\xFE" && str[1] === "\xFF") {
    for (var i = 2; i < length; i += 2) {
      strBuf.push(String.fromCharCode(str.charCodeAt(i) << 8 | str.charCodeAt(i + 1)));
    }
  } else if (str[0] === "\xFF" && str[1] === "\xFE") {
    for (var _i2 = 2; _i2 < length; _i2 += 2) {
      strBuf.push(String.fromCharCode(str.charCodeAt(_i2 + 1) << 8 | str.charCodeAt(_i2)));
    }
  } else {
    for (var _i3 = 0; _i3 < length; ++_i3) {
      var code = PDFStringTranslateTable[str.charCodeAt(_i3)];
      strBuf.push(code ? String.fromCharCode(code) : str.charAt(_i3));
    }
  }

  return strBuf.join("");
}

function escapeString(str) {
  return str.replace(/([\(\)\\])/g, "\\$1");
}

function stringToUTF8String(str) {
  return decodeURIComponent(escape(str));
}

function utf8StringToString(str) {
  return unescape(encodeURIComponent(str));
}

function isBool(v) {
  return typeof v === "boolean";
}

function isNum(v) {
  return typeof v === "number";
}

function isString(v) {
  return typeof v === "string";
}

function isArrayBuffer(v) {
  return _typeof(v) === "object" && v !== null && v.byteLength !== undefined;
}

function isArrayEqual(arr1, arr2) {
  if (arr1.length !== arr2.length) {
    return false;
  }

  return arr1.every(function (element, index) {
    return element === arr2[index];
  });
}

function getModificationDate() {
  var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date(Date.now());
  var buffer = [date.getUTCFullYear().toString(), (date.getUTCMonth() + 1).toString().padStart(2, "0"), (date.getUTCDate() + 1).toString().padStart(2, "0"), date.getUTCHours().toString().padStart(2, "0"), date.getUTCMinutes().toString().padStart(2, "0"), date.getUTCSeconds().toString().padStart(2, "0")];
  return buffer.join("");
}

function createPromiseCapability() {
  var capability = Object.create(null);
  var isSettled = false;
  Object.defineProperty(capability, "settled", {
    get: function get() {
      return isSettled;
    }
  });
  capability.promise = new Promise(function (resolve, reject) {
    capability.resolve = function (data) {
      isSettled = true;
      resolve(data);
    };

    capability.reject = function (reason) {
      isSettled = true;
      reject(reason);
    };
  });
  return capability;
}

var createObjectURL = function createObjectURLClosure() {
  var digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  return function createObjectURL(data, contentType) {
    var forceDataSchema = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

    if (!forceDataSchema && URL.createObjectURL) {
      var blob = new Blob([data], {
        type: contentType
      });
      return URL.createObjectURL(blob);
    }

    var buffer = "data:".concat(contentType, ";base64,");

    for (var i = 0, ii = data.length; i < ii; i += 3) {
      var b1 = data[i] & 0xff;
      var b2 = data[i + 1] & 0xff;
      var b3 = data[i + 2] & 0xff;
      var d1 = b1 >> 2,
          d2 = (b1 & 3) << 4 | b2 >> 4;
      var d3 = i + 1 < ii ? (b2 & 0xf) << 2 | b3 >> 6 : 64;
      var d4 = i + 2 < ii ? b3 & 0x3f : 64;
      buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
    }

    return buffer;
  };
}();

exports.createObjectURL = createObjectURL;

/***/ }),
/* 6 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


var _is_node = __w_pdfjs_require__(7);

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

if (typeof globalThis === "undefined" || !globalThis._pdfjsCompatibilityChecked) {
  if (typeof globalThis === "undefined" || globalThis.Math !== Math) {
    globalThis = __w_pdfjs_require__(8);
  }

  globalThis._pdfjsCompatibilityChecked = true;
  var hasDOM = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === "object";
  var userAgent = typeof navigator !== "undefined" && navigator.userAgent || "";
  var isIE = /Trident/.test(userAgent);

  (function checkNodeBtoa() {
    if (globalThis.btoa || !_is_node.isNodeJS) {
      return;
    }

    globalThis.btoa = function (chars) {
      return Buffer.from(chars, "binary").toString("base64");
    };
  })();

  (function checkNodeAtob() {
    if (globalThis.atob || !_is_node.isNodeJS) {
      return;
    }

    globalThis.atob = function (input) {
      return Buffer.from(input, "base64").toString("binary");
    };
  })();

  (function checkChildNodeRemove() {
    if (!hasDOM) {
      return;
    }

    if (typeof Element.prototype.remove !== "undefined") {
      return;
    }

    Element.prototype.remove = function () {
      if (this.parentNode) {
        this.parentNode.removeChild(this);
      }
    };
  })();

  (function checkDOMTokenListAddRemove() {
    if (!hasDOM || _is_node.isNodeJS) {
      return;
    }

    var div = document.createElement("div");
    div.classList.add("testOne", "testTwo");

    if (div.classList.contains("testOne") === true && div.classList.contains("testTwo") === true) {
      return;
    }

    var OriginalDOMTokenListAdd = DOMTokenList.prototype.add;
    var OriginalDOMTokenListRemove = DOMTokenList.prototype.remove;

    DOMTokenList.prototype.add = function () {
      for (var _len = arguments.length, tokens = new Array(_len), _key = 0; _key < _len; _key++) {
        tokens[_key] = arguments[_key];
      }

      for (var _i = 0, _tokens = tokens; _i < _tokens.length; _i++) {
        var token = _tokens[_i];
        OriginalDOMTokenListAdd.call(this, token);
      }
    };

    DOMTokenList.prototype.remove = function () {
      for (var _len2 = arguments.length, tokens = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        tokens[_key2] = arguments[_key2];
      }

      for (var _i2 = 0, _tokens2 = tokens; _i2 < _tokens2.length; _i2++) {
        var token = _tokens2[_i2];
        OriginalDOMTokenListRemove.call(this, token);
      }
    };
  })();

  (function checkDOMTokenListToggle() {
    if (!hasDOM || _is_node.isNodeJS) {
      return;
    }

    var div = document.createElement("div");

    if (div.classList.toggle("test", 0) === false) {
      return;
    }

    DOMTokenList.prototype.toggle = function (token) {
      var force = arguments.length > 1 ? !!arguments[1] : !this.contains(token);
      return this[force ? "add" : "remove"](token), force;
    };
  })();

  (function checkWindowHistoryPushStateReplaceState() {
    if (!hasDOM || !isIE) {
      return;
    }

    var OriginalPushState = window.history.pushState;
    var OriginalReplaceState = window.history.replaceState;

    window.history.pushState = function (state, title, url) {
      var args = url === undefined ? [state, title] : [state, title, url];
      OriginalPushState.apply(this, args);
    };

    window.history.replaceState = function (state, title, url) {
      var args = url === undefined ? [state, title] : [state, title, url];
      OriginalReplaceState.apply(this, args);
    };
  })();

  (function checkStringStartsWith() {
    if (String.prototype.startsWith) {
      return;
    }

    __w_pdfjs_require__(53);
  })();

  (function checkStringEndsWith() {
    if (String.prototype.endsWith) {
      return;
    }

    __w_pdfjs_require__(64);
  })();

  (function checkStringIncludes() {
    if (String.prototype.includes) {
      return;
    }

    __w_pdfjs_require__(66);
  })();

  (function checkArrayIncludes() {
    if (Array.prototype.includes) {
      return;
    }

    __w_pdfjs_require__(68);
  })();

  (function checkArrayFrom() {
    if (Array.from) {
      return;
    }

    __w_pdfjs_require__(76);
  })();

  (function checkObjectAssign() {
    if (Object.assign) {
      return;
    }

    __w_pdfjs_require__(98);
  })();

  (function checkObjectFromEntries() {
    if (Object.fromEntries) {
      return;
    }

    __w_pdfjs_require__(101);
  })();

  (function checkMathLog2() {
    if (Math.log2) {
      return;
    }

    Math.log2 = __w_pdfjs_require__(105);
  })();

  (function checkNumberIsNaN() {
    if (Number.isNaN) {
      return;
    }

    Number.isNaN = __w_pdfjs_require__(107);
  })();

  (function checkNumberIsInteger() {
    if (Number.isInteger) {
      return;
    }

    Number.isInteger = __w_pdfjs_require__(109);
  })();

  (function checkTypedArraySlice() {
    if (Uint8Array.prototype.slice) {
      return;
    }

    __w_pdfjs_require__(112);
  })();

  (function checkPromise() {
    if (globalThis.Promise && globalThis.Promise.allSettled) {
      return;
    }

    globalThis.Promise = __w_pdfjs_require__(117);
  })();

  (function checkURL() {
    globalThis.URL = __w_pdfjs_require__(138);
  })();

  (function checkReadableStream() {
    var isReadableStreamSupported = false;

    if (typeof ReadableStream !== "undefined") {
      try {
        new ReadableStream({
          start: function start(controller) {
            controller.close();
          }
        });
        isReadableStreamSupported = true;
      } catch (e) {}
    }

    if (isReadableStreamSupported) {
      return;
    }

    globalThis.ReadableStream = __w_pdfjs_require__(145).ReadableStream;
  })();

  (function checkMapEntries() {
    if (globalThis.Map && globalThis.Map.prototype.entries) {
      return;
    }

    globalThis.Map = __w_pdfjs_require__(146);
  })();

  (function checkSetEntries() {
    if (globalThis.Set && globalThis.Set.prototype.entries) {
      return;
    }

    globalThis.Set = __w_pdfjs_require__(153);
  })();

  (function checkWeakMap() {
    if (globalThis.WeakMap) {
      return;
    }

    globalThis.WeakMap = __w_pdfjs_require__(155);
  })();

  (function checkWeakSet() {
    if (globalThis.WeakSet) {
      return;
    }

    globalThis.WeakSet = __w_pdfjs_require__(161);
  })();

  (function checkStringCodePointAt() {
    if (String.prototype.codePointAt) {
      return;
    }

    __w_pdfjs_require__(163);
  })();

  (function checkStringFromCodePoint() {
    if (String.fromCodePoint) {
      return;
    }

    String.fromCodePoint = __w_pdfjs_require__(165);
  })();

  (function checkSymbol() {
    if (globalThis.Symbol) {
      return;
    }

    __w_pdfjs_require__(167);
  })();

  (function checkStringPadStart() {
    if (String.prototype.padStart) {
      return;
    }

    __w_pdfjs_require__(190);
  })();

  (function checkStringPadEnd() {
    if (String.prototype.padEnd) {
      return;
    }

    __w_pdfjs_require__(195);
  })();

  (function checkObjectValues() {
    if (Object.values) {
      return;
    }

    Object.values = __w_pdfjs_require__(197);
  })();

  (function checkObjectEntries() {
    if (Object.entries) {
      return;
    }

    Object.entries = __w_pdfjs_require__(200);
  })();
}

/***/ }),
/* 7 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isNodeJS = void 0;

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var isNodeJS = (typeof process === "undefined" ? "undefined" : _typeof(process)) === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
exports.isNodeJS = isNodeJS;

/***/ }),
/* 8 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(9);
module.exports = __w_pdfjs_require__(11);

/***/ }),
/* 9 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var global = __w_pdfjs_require__(11);
$({ global: true }, { globalThis: global });

/***/ }),
/* 10 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var getOwnPropertyDescriptor = __w_pdfjs_require__(12).f;
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var redefine = __w_pdfjs_require__(29);
var setGlobal = __w_pdfjs_require__(30);
var copyConstructorProperties = __w_pdfjs_require__(40);
var isForced = __w_pdfjs_require__(52);
module.exports = function (options, source) {
 var TARGET = options.target;
 var GLOBAL = options.global;
 var STATIC = options.stat;
 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
 if (GLOBAL) {
  target = global;
 } else if (STATIC) {
  target = global[TARGET] || setGlobal(TARGET, {});
 } else {
  target = (global[TARGET] || {}).prototype;
 }
 if (target)
  for (key in source) {
   sourceProperty = source[key];
   if (options.noTargetGet) {
    descriptor = getOwnPropertyDescriptor(target, key);
    targetProperty = descriptor && descriptor.value;
   } else
    targetProperty = target[key];
   FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
   if (!FORCED && targetProperty !== undefined) {
    if (typeof sourceProperty === typeof targetProperty)
     continue;
    copyConstructorProperties(sourceProperty, targetProperty);
   }
   if (options.sham || targetProperty && targetProperty.sham) {
    createNonEnumerableProperty(sourceProperty, 'sham', true);
   }
   redefine(target, key, sourceProperty, options);
  }
};

/***/ }),
/* 11 */
/***/ (function(module, exports) {

var check = function (it) {
 return it && it.Math == Math && it;
};
module.exports = check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || check(typeof self == 'object' && self) || check(typeof global == 'object' && global) || Function('return this')();

/***/ }),
/* 12 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var DESCRIPTORS = __w_pdfjs_require__(13);
var propertyIsEnumerableModule = __w_pdfjs_require__(15);
var createPropertyDescriptor = __w_pdfjs_require__(16);
var toIndexedObject = __w_pdfjs_require__(17);
var toPrimitive = __w_pdfjs_require__(21);
var has = __w_pdfjs_require__(23);
var IE8_DOM_DEFINE = __w_pdfjs_require__(24);
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
 O = toIndexedObject(O);
 P = toPrimitive(P, true);
 if (IE8_DOM_DEFINE)
  try {
   return nativeGetOwnPropertyDescriptor(O, P);
  } catch (error) {
  }
 if (has(O, P))
  return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
};

/***/ }),
/* 13 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
module.exports = !fails(function () {
 return Object.defineProperty({}, 1, {
  get: function () {
   return 7;
  }
 })[1] != 7;
});

/***/ }),
/* 14 */
/***/ (function(module, exports) {

module.exports = function (exec) {
 try {
  return !!exec();
 } catch (error) {
  return true;
 }
};

/***/ }),
/* 15 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
 var descriptor = getOwnPropertyDescriptor(this, V);
 return !!descriptor && descriptor.enumerable;
} : nativePropertyIsEnumerable;

/***/ }),
/* 16 */
/***/ (function(module, exports) {

module.exports = function (bitmap, value) {
 return {
  enumerable: !(bitmap & 1),
  configurable: !(bitmap & 2),
  writable: !(bitmap & 4),
  value: value
 };
};

/***/ }),
/* 17 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var IndexedObject = __w_pdfjs_require__(18);
var requireObjectCoercible = __w_pdfjs_require__(20);
module.exports = function (it) {
 return IndexedObject(requireObjectCoercible(it));
};

/***/ }),
/* 18 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
var classof = __w_pdfjs_require__(19);
var split = ''.split;
module.exports = fails(function () {
 return !Object('z').propertyIsEnumerable(0);
}) ? function (it) {
 return classof(it) == 'String' ? split.call(it, '') : Object(it);
} : Object;

/***/ }),
/* 19 */
/***/ (function(module, exports) {

var toString = {}.toString;
module.exports = function (it) {
 return toString.call(it).slice(8, -1);
};

/***/ }),
/* 20 */
/***/ (function(module, exports) {

module.exports = function (it) {
 if (it == undefined)
  throw TypeError("Can't call method on " + it);
 return it;
};

/***/ }),
/* 21 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isObject = __w_pdfjs_require__(22);
module.exports = function (input, PREFERRED_STRING) {
 if (!isObject(input))
  return input;
 var fn, val;
 if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input)))
  return val;
 if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input)))
  return val;
 if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input)))
  return val;
 throw TypeError("Can't convert object to primitive value");
};

/***/ }),
/* 22 */
/***/ (function(module, exports) {

module.exports = function (it) {
 return typeof it === 'object' ? it !== null : typeof it === 'function';
};

/***/ }),
/* 23 */
/***/ (function(module, exports) {

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
 return hasOwnProperty.call(it, key);
};

/***/ }),
/* 24 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var DESCRIPTORS = __w_pdfjs_require__(13);
var fails = __w_pdfjs_require__(14);
var createElement = __w_pdfjs_require__(25);
module.exports = !DESCRIPTORS && !fails(function () {
 return Object.defineProperty(createElement('div'), 'a', {
  get: function () {
   return 7;
  }
 }).a != 7;
});

/***/ }),
/* 25 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var isObject = __w_pdfjs_require__(22);
var document = global.document;
var EXISTS = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
 return EXISTS ? document.createElement(it) : {};
};

/***/ }),
/* 26 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var DESCRIPTORS = __w_pdfjs_require__(13);
var definePropertyModule = __w_pdfjs_require__(27);
var createPropertyDescriptor = __w_pdfjs_require__(16);
module.exports = DESCRIPTORS ? function (object, key, value) {
 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
 object[key] = value;
 return object;
};

/***/ }),
/* 27 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var DESCRIPTORS = __w_pdfjs_require__(13);
var IE8_DOM_DEFINE = __w_pdfjs_require__(24);
var anObject = __w_pdfjs_require__(28);
var toPrimitive = __w_pdfjs_require__(21);
var nativeDefineProperty = Object.defineProperty;
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
 anObject(O);
 P = toPrimitive(P, true);
 anObject(Attributes);
 if (IE8_DOM_DEFINE)
  try {
   return nativeDefineProperty(O, P, Attributes);
  } catch (error) {
  }
 if ('get' in Attributes || 'set' in Attributes)
  throw TypeError('Accessors not supported');
 if ('value' in Attributes)
  O[P] = Attributes.value;
 return O;
};

/***/ }),
/* 28 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isObject = __w_pdfjs_require__(22);
module.exports = function (it) {
 if (!isObject(it)) {
  throw TypeError(String(it) + ' is not an object');
 }
 return it;
};

/***/ }),
/* 29 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var has = __w_pdfjs_require__(23);
var setGlobal = __w_pdfjs_require__(30);
var inspectSource = __w_pdfjs_require__(31);
var InternalStateModule = __w_pdfjs_require__(33);
var getInternalState = InternalStateModule.get;
var enforceInternalState = InternalStateModule.enforce;
var TEMPLATE = String(String).split('String');
(module.exports = function (O, key, value, options) {
 var unsafe = options ? !!options.unsafe : false;
 var simple = options ? !!options.enumerable : false;
 var noTargetGet = options ? !!options.noTargetGet : false;
 if (typeof value == 'function') {
  if (typeof key == 'string' && !has(value, 'name'))
   createNonEnumerableProperty(value, 'name', key);
  enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
 }
 if (O === global) {
  if (simple)
   O[key] = value;
  else
   setGlobal(key, value);
  return;
 } else if (!unsafe) {
  delete O[key];
 } else if (!noTargetGet && O[key]) {
  simple = true;
 }
 if (simple)
  O[key] = value;
 else
  createNonEnumerableProperty(O, key, value);
})(Function.prototype, 'toString', function toString() {
 return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
});

/***/ }),
/* 30 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
module.exports = function (key, value) {
 try {
  createNonEnumerableProperty(global, key, value);
 } catch (error) {
  global[key] = value;
 }
 return value;
};

/***/ }),
/* 31 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var store = __w_pdfjs_require__(32);
var functionToString = Function.toString;
if (typeof store.inspectSource != 'function') {
 store.inspectSource = function (it) {
  return functionToString.call(it);
 };
}
module.exports = store.inspectSource;

/***/ }),
/* 32 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var setGlobal = __w_pdfjs_require__(30);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || setGlobal(SHARED, {});
module.exports = store;

/***/ }),
/* 33 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var NATIVE_WEAK_MAP = __w_pdfjs_require__(34);
var global = __w_pdfjs_require__(11);
var isObject = __w_pdfjs_require__(22);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var objectHas = __w_pdfjs_require__(23);
var sharedKey = __w_pdfjs_require__(35);
var hiddenKeys = __w_pdfjs_require__(39);
var WeakMap = global.WeakMap;
var set, get, has;
var enforce = function (it) {
 return has(it) ? get(it) : set(it, {});
};
var getterFor = function (TYPE) {
 return function (it) {
  var state;
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
   throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  }
  return state;
 };
};
if (NATIVE_WEAK_MAP) {
 var store = new WeakMap();
 var wmget = store.get;
 var wmhas = store.has;
 var wmset = store.set;
 set = function (it, metadata) {
  wmset.call(store, it, metadata);
  return metadata;
 };
 get = function (it) {
  return wmget.call(store, it) || {};
 };
 has = function (it) {
  return wmhas.call(store, it);
 };
} else {
 var STATE = sharedKey('state');
 hiddenKeys[STATE] = true;
 set = function (it, metadata) {
  createNonEnumerableProperty(it, STATE, metadata);
  return metadata;
 };
 get = function (it) {
  return objectHas(it, STATE) ? it[STATE] : {};
 };
 has = function (it) {
  return objectHas(it, STATE);
 };
}
module.exports = {
 set: set,
 get: get,
 has: has,
 enforce: enforce,
 getterFor: getterFor
};

/***/ }),
/* 34 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var inspectSource = __w_pdfjs_require__(31);
var WeakMap = global.WeakMap;
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));

/***/ }),
/* 35 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var shared = __w_pdfjs_require__(36);
var uid = __w_pdfjs_require__(38);
var keys = shared('keys');
module.exports = function (key) {
 return keys[key] || (keys[key] = uid(key));
};

/***/ }),
/* 36 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var IS_PURE = __w_pdfjs_require__(37);
var store = __w_pdfjs_require__(32);
(module.exports = function (key, value) {
 return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
 version: '3.6.5',
 mode: IS_PURE ? 'pure' : 'global',
 copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});

/***/ }),
/* 37 */
/***/ (function(module, exports) {

module.exports = false;

/***/ }),
/* 38 */
/***/ (function(module, exports) {

var id = 0;
var postfix = Math.random();
module.exports = function (key) {
 return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
};

/***/ }),
/* 39 */
/***/ (function(module, exports) {

module.exports = {};

/***/ }),
/* 40 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var has = __w_pdfjs_require__(23);
var ownKeys = __w_pdfjs_require__(41);
var getOwnPropertyDescriptorModule = __w_pdfjs_require__(12);
var definePropertyModule = __w_pdfjs_require__(27);
module.exports = function (target, source) {
 var keys = ownKeys(source);
 var defineProperty = definePropertyModule.f;
 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
 for (var i = 0; i < keys.length; i++) {
  var key = keys[i];
  if (!has(target, key))
   defineProperty(target, key, getOwnPropertyDescriptor(source, key));
 }
};

/***/ }),
/* 41 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var getBuiltIn = __w_pdfjs_require__(42);
var getOwnPropertyNamesModule = __w_pdfjs_require__(44);
var getOwnPropertySymbolsModule = __w_pdfjs_require__(51);
var anObject = __w_pdfjs_require__(28);
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
 var keys = getOwnPropertyNamesModule.f(anObject(it));
 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
 return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
};

/***/ }),
/* 42 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var path = __w_pdfjs_require__(43);
var global = __w_pdfjs_require__(11);
var aFunction = function (variable) {
 return typeof variable == 'function' ? variable : undefined;
};
module.exports = function (namespace, method) {
 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
};

/***/ }),
/* 43 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
module.exports = global;

/***/ }),
/* 44 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var internalObjectKeys = __w_pdfjs_require__(45);
var enumBugKeys = __w_pdfjs_require__(50);
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
 return internalObjectKeys(O, hiddenKeys);
};

/***/ }),
/* 45 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var has = __w_pdfjs_require__(23);
var toIndexedObject = __w_pdfjs_require__(17);
var indexOf = __w_pdfjs_require__(46).indexOf;
var hiddenKeys = __w_pdfjs_require__(39);
module.exports = function (object, names) {
 var O = toIndexedObject(object);
 var i = 0;
 var result = [];
 var key;
 for (key in O)
  !has(hiddenKeys, key) && has(O, key) && result.push(key);
 while (names.length > i)
  if (has(O, key = names[i++])) {
   ~indexOf(result, key) || result.push(key);
  }
 return result;
};

/***/ }),
/* 46 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var toIndexedObject = __w_pdfjs_require__(17);
var toLength = __w_pdfjs_require__(47);
var toAbsoluteIndex = __w_pdfjs_require__(49);
var createMethod = function (IS_INCLUDES) {
 return function ($this, el, fromIndex) {
  var O = toIndexedObject($this);
  var length = toLength(O.length);
  var index = toAbsoluteIndex(fromIndex, length);
  var value;
  if (IS_INCLUDES && el != el)
   while (length > index) {
    value = O[index++];
    if (value != value)
     return true;
   }
  else
   for (; length > index; index++) {
    if ((IS_INCLUDES || index in O) && O[index] === el)
     return IS_INCLUDES || index || 0;
   }
  return !IS_INCLUDES && -1;
 };
};
module.exports = {
 includes: createMethod(true),
 indexOf: createMethod(false)
};

/***/ }),
/* 47 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var toInteger = __w_pdfjs_require__(48);
var min = Math.min;
module.exports = function (argument) {
 return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0;
};

/***/ }),
/* 48 */
/***/ (function(module, exports) {

var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (argument) {
 return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
};

/***/ }),
/* 49 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var toInteger = __w_pdfjs_require__(48);
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
 var integer = toInteger(index);
 return integer < 0 ? max(integer + length, 0) : min(integer, length);
};

/***/ }),
/* 50 */
/***/ (function(module, exports) {

module.exports = [
 'constructor',
 'hasOwnProperty',
 'isPrototypeOf',
 'propertyIsEnumerable',
 'toLocaleString',
 'toString',
 'valueOf'
];

/***/ }),
/* 51 */
/***/ (function(module, exports) {

exports.f = Object.getOwnPropertySymbols;

/***/ }),
/* 52 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
var replacement = /#|\.prototype\./;
var isForced = function (feature, detection) {
 var value = data[normalize(feature)];
 return value == POLYFILL ? true : value == NATIVE ? false : typeof detection == 'function' ? fails(detection) : !!detection;
};
var normalize = isForced.normalize = function (string) {
 return String(string).replace(replacement, '.').toLowerCase();
};
var data = isForced.data = {};
var NATIVE = isForced.NATIVE = 'N';
var POLYFILL = isForced.POLYFILL = 'P';
module.exports = isForced;

/***/ }),
/* 53 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(54);
var entryUnbind = __w_pdfjs_require__(61);
module.exports = entryUnbind('String', 'startsWith');

/***/ }),
/* 54 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var getOwnPropertyDescriptor = __w_pdfjs_require__(12).f;
var toLength = __w_pdfjs_require__(47);
var notARegExp = __w_pdfjs_require__(55);
var requireObjectCoercible = __w_pdfjs_require__(20);
var correctIsRegExpLogic = __w_pdfjs_require__(60);
var IS_PURE = __w_pdfjs_require__(37);
var nativeStartsWith = ''.startsWith;
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
 var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
 return descriptor && !descriptor.writable;
}();
$({
 target: 'String',
 proto: true,
 forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC
}, {
 startsWith: function startsWith(searchString) {
  var that = String(requireObjectCoercible(this));
  notARegExp(searchString);
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
  var search = String(searchString);
  return nativeStartsWith ? nativeStartsWith.call(that, search, index) : that.slice(index, index + search.length) === search;
 }
});

/***/ }),
/* 55 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isRegExp = __w_pdfjs_require__(56);
module.exports = function (it) {
 if (isRegExp(it)) {
  throw TypeError("The method doesn't accept regular expressions");
 }
 return it;
};

/***/ }),
/* 56 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isObject = __w_pdfjs_require__(22);
var classof = __w_pdfjs_require__(19);
var wellKnownSymbol = __w_pdfjs_require__(57);
var MATCH = wellKnownSymbol('match');
module.exports = function (it) {
 var isRegExp;
 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
};

/***/ }),
/* 57 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var shared = __w_pdfjs_require__(36);
var has = __w_pdfjs_require__(23);
var uid = __w_pdfjs_require__(38);
var NATIVE_SYMBOL = __w_pdfjs_require__(58);
var USE_SYMBOL_AS_UID = __w_pdfjs_require__(59);
var WellKnownSymbolsStore = shared('wks');
var Symbol = global.Symbol;
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
module.exports = function (name) {
 if (!has(WellKnownSymbolsStore, name)) {
  if (NATIVE_SYMBOL && has(Symbol, name))
   WellKnownSymbolsStore[name] = Symbol[name];
  else
   WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
 }
 return WellKnownSymbolsStore[name];
};

/***/ }),
/* 58 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
 return !String(Symbol());
});

/***/ }),
/* 59 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var NATIVE_SYMBOL = __w_pdfjs_require__(58);
module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == 'symbol';

/***/ }),
/* 60 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var wellKnownSymbol = __w_pdfjs_require__(57);
var MATCH = wellKnownSymbol('match');
module.exports = function (METHOD_NAME) {
 var regexp = /./;
 try {
  '/./'[METHOD_NAME](regexp);
 } catch (e) {
  try {
   regexp[MATCH] = false;
   return '/./'[METHOD_NAME](regexp);
  } catch (f) {
  }
 }
 return false;
};

/***/ }),
/* 61 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var bind = __w_pdfjs_require__(62);
var call = Function.call;
module.exports = function (CONSTRUCTOR, METHOD, length) {
 return bind(call, global[CONSTRUCTOR].prototype[METHOD], length);
};

/***/ }),
/* 62 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var aFunction = __w_pdfjs_require__(63);
module.exports = function (fn, that, length) {
 aFunction(fn);
 if (that === undefined)
  return fn;
 switch (length) {
 case 0:
  return function () {
   return fn.call(that);
  };
 case 1:
  return function (a) {
   return fn.call(that, a);
  };
 case 2:
  return function (a, b) {
   return fn.call(that, a, b);
  };
 case 3:
  return function (a, b, c) {
   return fn.call(that, a, b, c);
  };
 }
 return function () {
  return fn.apply(that, arguments);
 };
};

/***/ }),
/* 63 */
/***/ (function(module, exports) {

module.exports = function (it) {
 if (typeof it != 'function') {
  throw TypeError(String(it) + ' is not a function');
 }
 return it;
};

/***/ }),
/* 64 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(65);
var entryUnbind = __w_pdfjs_require__(61);
module.exports = entryUnbind('String', 'endsWith');

/***/ }),
/* 65 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var getOwnPropertyDescriptor = __w_pdfjs_require__(12).f;
var toLength = __w_pdfjs_require__(47);
var notARegExp = __w_pdfjs_require__(55);
var requireObjectCoercible = __w_pdfjs_require__(20);
var correctIsRegExpLogic = __w_pdfjs_require__(60);
var IS_PURE = __w_pdfjs_require__(37);
var nativeEndsWith = ''.endsWith;
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
 var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
 return descriptor && !descriptor.writable;
}();
$({
 target: 'String',
 proto: true,
 forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC
}, {
 endsWith: function endsWith(searchString) {
  var that = String(requireObjectCoercible(this));
  notARegExp(searchString);
  var endPosition = arguments.length > 1 ? arguments[1] : undefined;
  var len = toLength(that.length);
  var end = endPosition === undefined ? len : min(toLength(endPosition), len);
  var search = String(searchString);
  return nativeEndsWith ? nativeEndsWith.call(that, search, end) : that.slice(end - search.length, end) === search;
 }
});

/***/ }),
/* 66 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(67);
var entryUnbind = __w_pdfjs_require__(61);
module.exports = entryUnbind('String', 'includes');

/***/ }),
/* 67 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var notARegExp = __w_pdfjs_require__(55);
var requireObjectCoercible = __w_pdfjs_require__(20);
var correctIsRegExpLogic = __w_pdfjs_require__(60);
$({
 target: 'String',
 proto: true,
 forced: !correctIsRegExpLogic('includes')
}, {
 includes: function includes(searchString) {
  return !!~String(requireObjectCoercible(this)).indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
 }
});

/***/ }),
/* 68 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(69);
var entryUnbind = __w_pdfjs_require__(61);
module.exports = entryUnbind('Array', 'includes');

/***/ }),
/* 69 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var $includes = __w_pdfjs_require__(46).includes;
var addToUnscopables = __w_pdfjs_require__(70);
var arrayMethodUsesToLength = __w_pdfjs_require__(75);
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', {
 ACCESSORS: true,
 1: 0
});
$({
 target: 'Array',
 proto: true,
 forced: !USES_TO_LENGTH
}, {
 includes: function includes(el) {
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
 }
});
addToUnscopables('includes');

/***/ }),
/* 70 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var wellKnownSymbol = __w_pdfjs_require__(57);
var create = __w_pdfjs_require__(71);
var definePropertyModule = __w_pdfjs_require__(27);
var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;
if (ArrayPrototype[UNSCOPABLES] == undefined) {
 definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
  configurable: true,
  value: create(null)
 });
}
module.exports = function (key) {
 ArrayPrototype[UNSCOPABLES][key] = true;
};

/***/ }),
/* 71 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var anObject = __w_pdfjs_require__(28);
var defineProperties = __w_pdfjs_require__(72);
var enumBugKeys = __w_pdfjs_require__(50);
var hiddenKeys = __w_pdfjs_require__(39);
var html = __w_pdfjs_require__(74);
var documentCreateElement = __w_pdfjs_require__(25);
var sharedKey = __w_pdfjs_require__(35);
var GT = '>';
var LT = '<';
var PROTOTYPE = 'prototype';
var SCRIPT = 'script';
var IE_PROTO = sharedKey('IE_PROTO');
var EmptyConstructor = function () {
};
var scriptTag = function (content) {
 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
};
var NullProtoObjectViaActiveX = function (activeXDocument) {
 activeXDocument.write(scriptTag(''));
 activeXDocument.close();
 var temp = activeXDocument.parentWindow.Object;
 activeXDocument = null;
 return temp;
};
var NullProtoObjectViaIFrame = function () {
 var iframe = documentCreateElement('iframe');
 var JS = 'java' + SCRIPT + ':';
 var iframeDocument;
 iframe.style.display = 'none';
 html.appendChild(iframe);
 iframe.src = String(JS);
 iframeDocument = iframe.contentWindow.document;
 iframeDocument.open();
 iframeDocument.write(scriptTag('document.F=Object'));
 iframeDocument.close();
 return iframeDocument.F;
};
var activeXDocument;
var NullProtoObject = function () {
 try {
  activeXDocument = document.domain && new ActiveXObject('htmlfile');
 } catch (error) {
 }
 NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
 var length = enumBugKeys.length;
 while (length--)
  delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
 return NullProtoObject();
};
hiddenKeys[IE_PROTO] = true;
module.exports = Object.create || function create(O, Properties) {
 var result;
 if (O !== null) {
  EmptyConstructor[PROTOTYPE] = anObject(O);
  result = new EmptyConstructor();
  EmptyConstructor[PROTOTYPE] = null;
  result[IE_PROTO] = O;
 } else
  result = NullProtoObject();
 return Properties === undefined ? result : defineProperties(result, Properties);
};

/***/ }),
/* 72 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var DESCRIPTORS = __w_pdfjs_require__(13);
var definePropertyModule = __w_pdfjs_require__(27);
var anObject = __w_pdfjs_require__(28);
var objectKeys = __w_pdfjs_require__(73);
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
 anObject(O);
 var keys = objectKeys(Properties);
 var length = keys.length;
 var index = 0;
 var key;
 while (length > index)
  definePropertyModule.f(O, key = keys[index++], Properties[key]);
 return O;
};

/***/ }),
/* 73 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var internalObjectKeys = __w_pdfjs_require__(45);
var enumBugKeys = __w_pdfjs_require__(50);
module.exports = Object.keys || function keys(O) {
 return internalObjectKeys(O, enumBugKeys);
};

/***/ }),
/* 74 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var getBuiltIn = __w_pdfjs_require__(42);
module.exports = getBuiltIn('document', 'documentElement');

/***/ }),
/* 75 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var DESCRIPTORS = __w_pdfjs_require__(13);
var fails = __w_pdfjs_require__(14);
var has = __w_pdfjs_require__(23);
var defineProperty = Object.defineProperty;
var cache = {};
var thrower = function (it) {
 throw it;
};
module.exports = function (METHOD_NAME, options) {
 if (has(cache, METHOD_NAME))
  return cache[METHOD_NAME];
 if (!options)
  options = {};
 var method = [][METHOD_NAME];
 var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
 var argument0 = has(options, 0) ? options[0] : thrower;
 var argument1 = has(options, 1) ? options[1] : undefined;
 return cache[METHOD_NAME] = !!method && !fails(function () {
  if (ACCESSORS && !DESCRIPTORS)
   return true;
  var O = { length: -1 };
  if (ACCESSORS)
   defineProperty(O, 1, {
    enumerable: true,
    get: thrower
   });
  else
   O[1] = 1;
  method.call(O, argument0, argument1);
 });
};

/***/ }),
/* 76 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(77);
__w_pdfjs_require__(89);
var path = __w_pdfjs_require__(43);
module.exports = path.Array.from;

/***/ }),
/* 77 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var charAt = __w_pdfjs_require__(78).charAt;
var InternalStateModule = __w_pdfjs_require__(33);
var defineIterator = __w_pdfjs_require__(79);
var STRING_ITERATOR = 'String Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
defineIterator(String, 'String', function (iterated) {
 setInternalState(this, {
  type: STRING_ITERATOR,
  string: String(iterated),
  index: 0
 });
}, function next() {
 var state = getInternalState(this);
 var string = state.string;
 var index = state.index;
 var point;
 if (index >= string.length)
  return {
   value: undefined,
   done: true
  };
 point = charAt(string, index);
 state.index += point.length;
 return {
  value: point,
  done: false
 };
});

/***/ }),
/* 78 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var toInteger = __w_pdfjs_require__(48);
var requireObjectCoercible = __w_pdfjs_require__(20);
var createMethod = function (CONVERT_TO_STRING) {
 return function ($this, pos) {
  var S = String(requireObjectCoercible($this));
  var position = toInteger(pos);
  var size = S.length;
  var first, second;
  if (position < 0 || position >= size)
   return CONVERT_TO_STRING ? '' : undefined;
  first = S.charCodeAt(position);
  return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? S.charAt(position) : first : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
 };
};
module.exports = {
 codeAt: createMethod(false),
 charAt: createMethod(true)
};

/***/ }),
/* 79 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var createIteratorConstructor = __w_pdfjs_require__(80);
var getPrototypeOf = __w_pdfjs_require__(82);
var setPrototypeOf = __w_pdfjs_require__(87);
var setToStringTag = __w_pdfjs_require__(85);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var redefine = __w_pdfjs_require__(29);
var wellKnownSymbol = __w_pdfjs_require__(57);
var IS_PURE = __w_pdfjs_require__(37);
var Iterators = __w_pdfjs_require__(86);
var IteratorsCore = __w_pdfjs_require__(81);
var IteratorPrototype = IteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR = wellKnownSymbol('iterator');
var KEYS = 'keys';
var VALUES = 'values';
var ENTRIES = 'entries';
var returnThis = function () {
 return this;
};
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
 createIteratorConstructor(IteratorConstructor, NAME, next);
 var getIterationMethod = function (KIND) {
  if (KIND === DEFAULT && defaultIterator)
   return defaultIterator;
  if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
   return IterablePrototype[KIND];
  switch (KIND) {
  case KEYS:
   return function keys() {
    return new IteratorConstructor(this, KIND);
   };
  case VALUES:
   return function values() {
    return new IteratorConstructor(this, KIND);
   };
  case ENTRIES:
   return function entries() {
    return new IteratorConstructor(this, KIND);
   };
  }
  return function () {
   return new IteratorConstructor(this);
  };
 };
 var TO_STRING_TAG = NAME + ' Iterator';
 var INCORRECT_VALUES_NAME = false;
 var IterablePrototype = Iterable.prototype;
 var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT];
 var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
 var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
 var CurrentIteratorPrototype, methods, KEY;
 if (anyNativeIterator) {
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
  if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
   if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
    if (setPrototypeOf) {
     setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
    } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
     createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
    }
   }
   setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
   if (IS_PURE)
    Iterators[TO_STRING_TAG] = returnThis;
  }
 }
 if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  INCORRECT_VALUES_NAME = true;
  defaultIterator = function values() {
   return nativeIterator.call(this);
  };
 }
 if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
  createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
 }
 Iterators[NAME] = defaultIterator;
 if (DEFAULT) {
  methods = {
   values: getIterationMethod(VALUES),
   keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
   entries: getIterationMethod(ENTRIES)
  };
  if (FORCED)
   for (KEY in methods) {
    if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
     redefine(IterablePrototype, KEY, methods[KEY]);
    }
   }
  else
   $({
    target: NAME,
    proto: true,
    forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME
   }, methods);
 }
 return methods;
};

/***/ }),
/* 80 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var IteratorPrototype = __w_pdfjs_require__(81).IteratorPrototype;
var create = __w_pdfjs_require__(71);
var createPropertyDescriptor = __w_pdfjs_require__(16);
var setToStringTag = __w_pdfjs_require__(85);
var Iterators = __w_pdfjs_require__(86);
var returnThis = function () {
 return this;
};
module.exports = function (IteratorConstructor, NAME, next) {
 var TO_STRING_TAG = NAME + ' Iterator';
 IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
 setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
 Iterators[TO_STRING_TAG] = returnThis;
 return IteratorConstructor;
};

/***/ }),
/* 81 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var getPrototypeOf = __w_pdfjs_require__(82);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var has = __w_pdfjs_require__(23);
var wellKnownSymbol = __w_pdfjs_require__(57);
var IS_PURE = __w_pdfjs_require__(37);
var ITERATOR = wellKnownSymbol('iterator');
var BUGGY_SAFARI_ITERATORS = false;
var returnThis = function () {
 return this;
};
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
if ([].keys) {
 arrayIterator = [].keys();
 if (!('next' in arrayIterator))
  BUGGY_SAFARI_ITERATORS = true;
 else {
  PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
  if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
   IteratorPrototype = PrototypeOfArrayIteratorPrototype;
 }
}
if (IteratorPrototype == undefined)
 IteratorPrototype = {};
if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {
 createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
}
module.exports = {
 IteratorPrototype: IteratorPrototype,
 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
};

/***/ }),
/* 82 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var has = __w_pdfjs_require__(23);
var toObject = __w_pdfjs_require__(83);
var sharedKey = __w_pdfjs_require__(35);
var CORRECT_PROTOTYPE_GETTER = __w_pdfjs_require__(84);
var IE_PROTO = sharedKey('IE_PROTO');
var ObjectPrototype = Object.prototype;
module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
 O = toObject(O);
 if (has(O, IE_PROTO))
  return O[IE_PROTO];
 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  return O.constructor.prototype;
 }
 return O instanceof Object ? ObjectPrototype : null;
};

/***/ }),
/* 83 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var requireObjectCoercible = __w_pdfjs_require__(20);
module.exports = function (argument) {
 return Object(requireObjectCoercible(argument));
};

/***/ }),
/* 84 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
module.exports = !fails(function () {
 function F() {
 }
 F.prototype.constructor = null;
 return Object.getPrototypeOf(new F()) !== F.prototype;
});

/***/ }),
/* 85 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineProperty = __w_pdfjs_require__(27).f;
var has = __w_pdfjs_require__(23);
var wellKnownSymbol = __w_pdfjs_require__(57);
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
module.exports = function (it, TAG, STATIC) {
 if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
  defineProperty(it, TO_STRING_TAG, {
   configurable: true,
   value: TAG
  });
 }
};

/***/ }),
/* 86 */
/***/ (function(module, exports) {

module.exports = {};

/***/ }),
/* 87 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var anObject = __w_pdfjs_require__(28);
var aPossiblePrototype = __w_pdfjs_require__(88);
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
 var CORRECT_SETTER = false;
 var test = {};
 var setter;
 try {
  setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
  setter.call(test, []);
  CORRECT_SETTER = test instanceof Array;
 } catch (error) {
 }
 return function setPrototypeOf(O, proto) {
  anObject(O);
  aPossiblePrototype(proto);
  if (CORRECT_SETTER)
   setter.call(O, proto);
  else
   O.__proto__ = proto;
  return O;
 };
}() : undefined);

/***/ }),
/* 88 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isObject = __w_pdfjs_require__(22);
module.exports = function (it) {
 if (!isObject(it) && it !== null) {
  throw TypeError("Can't set " + String(it) + ' as a prototype');
 }
 return it;
};

/***/ }),
/* 89 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var from = __w_pdfjs_require__(90);
var checkCorrectnessOfIteration = __w_pdfjs_require__(97);
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
 Array.from(iterable);
});
$({
 target: 'Array',
 stat: true,
 forced: INCORRECT_ITERATION
}, { from: from });

/***/ }),
/* 90 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var bind = __w_pdfjs_require__(62);
var toObject = __w_pdfjs_require__(83);
var callWithSafeIterationClosing = __w_pdfjs_require__(91);
var isArrayIteratorMethod = __w_pdfjs_require__(92);
var toLength = __w_pdfjs_require__(47);
var createProperty = __w_pdfjs_require__(93);
var getIteratorMethod = __w_pdfjs_require__(94);
module.exports = function from(arrayLike) {
 var O = toObject(arrayLike);
 var C = typeof this == 'function' ? this : Array;
 var argumentsLength = arguments.length;
 var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
 var mapping = mapfn !== undefined;
 var iteratorMethod = getIteratorMethod(O);
 var index = 0;
 var length, result, step, iterator, next, value;
 if (mapping)
  mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
 if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
  iterator = iteratorMethod.call(O);
  next = iterator.next;
  result = new C();
  for (; !(step = next.call(iterator)).done; index++) {
   value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [
    step.value,
    index
   ], true) : step.value;
   createProperty(result, index, value);
  }
 } else {
  length = toLength(O.length);
  result = new C(length);
  for (; length > index; index++) {
   value = mapping ? mapfn(O[index], index) : O[index];
   createProperty(result, index, value);
  }
 }
 result.length = index;
 return result;
};

/***/ }),
/* 91 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var anObject = __w_pdfjs_require__(28);
module.exports = function (iterator, fn, value, ENTRIES) {
 try {
  return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
 } catch (error) {
  var returnMethod = iterator['return'];
  if (returnMethod !== undefined)
   anObject(returnMethod.call(iterator));
  throw error;
 }
};

/***/ }),
/* 92 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var wellKnownSymbol = __w_pdfjs_require__(57);
var Iterators = __w_pdfjs_require__(86);
var ITERATOR = wellKnownSymbol('iterator');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
 return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
};

/***/ }),
/* 93 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var toPrimitive = __w_pdfjs_require__(21);
var definePropertyModule = __w_pdfjs_require__(27);
var createPropertyDescriptor = __w_pdfjs_require__(16);
module.exports = function (object, key, value) {
 var propertyKey = toPrimitive(key);
 if (propertyKey in object)
  definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
 else
  object[propertyKey] = value;
};

/***/ }),
/* 94 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var classof = __w_pdfjs_require__(95);
var Iterators = __w_pdfjs_require__(86);
var wellKnownSymbol = __w_pdfjs_require__(57);
var ITERATOR = wellKnownSymbol('iterator');
module.exports = function (it) {
 if (it != undefined)
  return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];
};

/***/ }),
/* 95 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var TO_STRING_TAG_SUPPORT = __w_pdfjs_require__(96);
var classofRaw = __w_pdfjs_require__(19);
var wellKnownSymbol = __w_pdfjs_require__(57);
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var CORRECT_ARGUMENTS = classofRaw(function () {
 return arguments;
}()) == 'Arguments';
var tryGet = function (it, key) {
 try {
  return it[key];
 } catch (error) {
 }
};
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
 var O, tag, result;
 return it === undefined ? 'Undefined' : it === null ? 'Null' : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
};

/***/ }),
/* 96 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var wellKnownSymbol = __w_pdfjs_require__(57);
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var test = {};
test[TO_STRING_TAG] = 'z';
module.exports = String(test) === '[object z]';

/***/ }),
/* 97 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var wellKnownSymbol = __w_pdfjs_require__(57);
var ITERATOR = wellKnownSymbol('iterator');
var SAFE_CLOSING = false;
try {
 var called = 0;
 var iteratorWithReturn = {
  next: function () {
   return { done: !!called++ };
  },
  'return': function () {
   SAFE_CLOSING = true;
  }
 };
 iteratorWithReturn[ITERATOR] = function () {
  return this;
 };
 Array.from(iteratorWithReturn, function () {
  throw 2;
 });
} catch (error) {
}
module.exports = function (exec, SKIP_CLOSING) {
 if (!SKIP_CLOSING && !SAFE_CLOSING)
  return false;
 var ITERATION_SUPPORT = false;
 try {
  var object = {};
  object[ITERATOR] = function () {
   return {
    next: function () {
     return { done: ITERATION_SUPPORT = true };
    }
   };
  };
  exec(object);
 } catch (error) {
 }
 return ITERATION_SUPPORT;
};

/***/ }),
/* 98 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(99);
var path = __w_pdfjs_require__(43);
module.exports = path.Object.assign;

/***/ }),
/* 99 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var assign = __w_pdfjs_require__(100);
$({
 target: 'Object',
 stat: true,
 forced: Object.assign !== assign
}, { assign: assign });

/***/ }),
/* 100 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var DESCRIPTORS = __w_pdfjs_require__(13);
var fails = __w_pdfjs_require__(14);
var objectKeys = __w_pdfjs_require__(73);
var getOwnPropertySymbolsModule = __w_pdfjs_require__(51);
var propertyIsEnumerableModule = __w_pdfjs_require__(15);
var toObject = __w_pdfjs_require__(83);
var IndexedObject = __w_pdfjs_require__(18);
var nativeAssign = Object.assign;
var defineProperty = Object.defineProperty;
module.exports = !nativeAssign || fails(function () {
 if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
   enumerable: true,
   get: function () {
    defineProperty(this, 'b', {
     value: 3,
     enumerable: false
    });
   }
  }), { b: 2 })).b !== 1)
  return true;
 var A = {};
 var B = {};
 var symbol = Symbol();
 var alphabet = 'abcdefghijklmnopqrst';
 A[symbol] = 7;
 alphabet.split('').forEach(function (chr) {
  B[chr] = chr;
 });
 return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
}) ? function assign(target, source) {
 var T = toObject(target);
 var argumentsLength = arguments.length;
 var index = 1;
 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
 var propertyIsEnumerable = propertyIsEnumerableModule.f;
 while (argumentsLength > index) {
  var S = IndexedObject(arguments[index++]);
  var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
  var length = keys.length;
  var j = 0;
  var key;
  while (length > j) {
   key = keys[j++];
   if (!DESCRIPTORS || propertyIsEnumerable.call(S, key))
    T[key] = S[key];
  }
 }
 return T;
} : nativeAssign;

/***/ }),
/* 101 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(102);
__w_pdfjs_require__(103);
var path = __w_pdfjs_require__(43);
module.exports = path.Object.fromEntries;

/***/ }),
/* 102 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var toIndexedObject = __w_pdfjs_require__(17);
var addToUnscopables = __w_pdfjs_require__(70);
var Iterators = __w_pdfjs_require__(86);
var InternalStateModule = __w_pdfjs_require__(33);
var defineIterator = __w_pdfjs_require__(79);
var ARRAY_ITERATOR = 'Array Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
 setInternalState(this, {
  type: ARRAY_ITERATOR,
  target: toIndexedObject(iterated),
  index: 0,
  kind: kind
 });
}, function () {
 var state = getInternalState(this);
 var target = state.target;
 var kind = state.kind;
 var index = state.index++;
 if (!target || index >= target.length) {
  state.target = undefined;
  return {
   value: undefined,
   done: true
  };
 }
 if (kind == 'keys')
  return {
   value: index,
   done: false
  };
 if (kind == 'values')
  return {
   value: target[index],
   done: false
  };
 return {
  value: [
   index,
   target[index]
  ],
  done: false
 };
}, 'values');
Iterators.Arguments = Iterators.Array;
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');

/***/ }),
/* 103 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var iterate = __w_pdfjs_require__(104);
var createProperty = __w_pdfjs_require__(93);
$({
 target: 'Object',
 stat: true
}, {
 fromEntries: function fromEntries(iterable) {
  var obj = {};
  iterate(iterable, function (k, v) {
   createProperty(obj, k, v);
  }, undefined, true);
  return obj;
 }
});

/***/ }),
/* 104 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var anObject = __w_pdfjs_require__(28);
var isArrayIteratorMethod = __w_pdfjs_require__(92);
var toLength = __w_pdfjs_require__(47);
var bind = __w_pdfjs_require__(62);
var getIteratorMethod = __w_pdfjs_require__(94);
var callWithSafeIterationClosing = __w_pdfjs_require__(91);
var Result = function (stopped, result) {
 this.stopped = stopped;
 this.result = result;
};
var iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {
 var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);
 var iterator, iterFn, index, length, result, next, step;
 if (IS_ITERATOR) {
  iterator = iterable;
 } else {
  iterFn = getIteratorMethod(iterable);
  if (typeof iterFn != 'function')
   throw TypeError('Target is not iterable');
  if (isArrayIteratorMethod(iterFn)) {
   for (index = 0, length = toLength(iterable.length); length > index; index++) {
    result = AS_ENTRIES ? boundFunction(anObject(step = iterable[index])[0], step[1]) : boundFunction(iterable[index]);
    if (result && result instanceof Result)
     return result;
   }
   return new Result(false);
  }
  iterator = iterFn.call(iterable);
 }
 next = iterator.next;
 while (!(step = next.call(iterator)).done) {
  result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);
  if (typeof result == 'object' && result && result instanceof Result)
   return result;
 }
 return new Result(false);
};
iterate.stop = function (result) {
 return new Result(true, result);
};

/***/ }),
/* 105 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(106);
var path = __w_pdfjs_require__(43);
module.exports = path.Math.log2;

/***/ }),
/* 106 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var log = Math.log;
var LN2 = Math.LN2;
$({
 target: 'Math',
 stat: true
}, {
 log2: function log2(x) {
  return log(x) / LN2;
 }
});

/***/ }),
/* 107 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(108);
var path = __w_pdfjs_require__(43);
module.exports = path.Number.isNaN;

/***/ }),
/* 108 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
$({
 target: 'Number',
 stat: true
}, {
 isNaN: function isNaN(number) {
  return number != number;
 }
});

/***/ }),
/* 109 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(110);
var path = __w_pdfjs_require__(43);
module.exports = path.Number.isInteger;

/***/ }),
/* 110 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var isInteger = __w_pdfjs_require__(111);
$({
 target: 'Number',
 stat: true
}, { isInteger: isInteger });

/***/ }),
/* 111 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isObject = __w_pdfjs_require__(22);
var floor = Math.floor;
module.exports = function isInteger(it) {
 return !isObject(it) && isFinite(it) && floor(it) === it;
};

/***/ }),
/* 112 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(113);

/***/ }),
/* 113 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var ArrayBufferViewCore = __w_pdfjs_require__(114);
var speciesConstructor = __w_pdfjs_require__(116);
var fails = __w_pdfjs_require__(14);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $slice = [].slice;
var FORCED = fails(function () {
 new Int8Array(1).slice();
});
exportTypedArrayMethod('slice', function slice(start, end) {
 var list = $slice.call(aTypedArray(this), start, end);
 var C = speciesConstructor(this, this.constructor);
 var index = 0;
 var length = list.length;
 var result = new (aTypedArrayConstructor(C))(length);
 while (length > index)
  result[index] = list[index++];
 return result;
}, FORCED);

/***/ }),
/* 114 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var NATIVE_ARRAY_BUFFER = __w_pdfjs_require__(115);
var DESCRIPTORS = __w_pdfjs_require__(13);
var global = __w_pdfjs_require__(11);
var isObject = __w_pdfjs_require__(22);
var has = __w_pdfjs_require__(23);
var classof = __w_pdfjs_require__(95);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var redefine = __w_pdfjs_require__(29);
var defineProperty = __w_pdfjs_require__(27).f;
var getPrototypeOf = __w_pdfjs_require__(82);
var setPrototypeOf = __w_pdfjs_require__(87);
var wellKnownSymbol = __w_pdfjs_require__(57);
var uid = __w_pdfjs_require__(38);
var Int8Array = global.Int8Array;
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
var Uint8ClampedArray = global.Uint8ClampedArray;
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
var ObjectPrototype = Object.prototype;
var isPrototypeOf = ObjectPrototype.isPrototypeOf;
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
var TYPED_ARRAY_TAG_REQIRED = false;
var NAME;
var TypedArrayConstructorsList = {
 Int8Array: 1,
 Uint8Array: 1,
 Uint8ClampedArray: 1,
 Int16Array: 2,
 Uint16Array: 2,
 Int32Array: 4,
 Uint32Array: 4,
 Float32Array: 4,
 Float64Array: 8
};
var isView = function isView(it) {
 var klass = classof(it);
 return klass === 'DataView' || has(TypedArrayConstructorsList, klass);
};
var isTypedArray = function (it) {
 return isObject(it) && has(TypedArrayConstructorsList, classof(it));
};
var aTypedArray = function (it) {
 if (isTypedArray(it))
  return it;
 throw TypeError('Target is not a typed array');
};
var aTypedArrayConstructor = function (C) {
 if (setPrototypeOf) {
  if (isPrototypeOf.call(TypedArray, C))
   return C;
 } else
  for (var ARRAY in TypedArrayConstructorsList)
   if (has(TypedArrayConstructorsList, NAME)) {
    var TypedArrayConstructor = global[ARRAY];
    if (TypedArrayConstructor && (C === TypedArrayConstructor || isPrototypeOf.call(TypedArrayConstructor, C))) {
     return C;
    }
   }
 throw TypeError('Target is not a typed array constructor');
};
var exportTypedArrayMethod = function (KEY, property, forced) {
 if (!DESCRIPTORS)
  return;
 if (forced)
  for (var ARRAY in TypedArrayConstructorsList) {
   var TypedArrayConstructor = global[ARRAY];
   if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) {
    delete TypedArrayConstructor.prototype[KEY];
   }
  }
 if (!TypedArrayPrototype[KEY] || forced) {
  redefine(TypedArrayPrototype, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property);
 }
};
var exportTypedArrayStaticMethod = function (KEY, property, forced) {
 var ARRAY, TypedArrayConstructor;
 if (!DESCRIPTORS)
  return;
 if (setPrototypeOf) {
  if (forced)
   for (ARRAY in TypedArrayConstructorsList) {
    TypedArrayConstructor = global[ARRAY];
    if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) {
     delete TypedArrayConstructor[KEY];
    }
   }
  if (!TypedArray[KEY] || forced) {
   try {
    return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8Array[KEY] || property);
   } catch (error) {
   }
  } else
   return;
 }
 for (ARRAY in TypedArrayConstructorsList) {
  TypedArrayConstructor = global[ARRAY];
  if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
   redefine(TypedArrayConstructor, KEY, property);
  }
 }
};
for (NAME in TypedArrayConstructorsList) {
 if (!global[NAME])
  NATIVE_ARRAY_BUFFER_VIEWS = false;
}
if (!NATIVE_ARRAY_BUFFER_VIEWS || typeof TypedArray != 'function' || TypedArray === Function.prototype) {
 TypedArray = function TypedArray() {
  throw TypeError('Incorrect invocation');
 };
 if (NATIVE_ARRAY_BUFFER_VIEWS)
  for (NAME in TypedArrayConstructorsList) {
   if (global[NAME])
    setPrototypeOf(global[NAME], TypedArray);
  }
}
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
 TypedArrayPrototype = TypedArray.prototype;
 if (NATIVE_ARRAY_BUFFER_VIEWS)
  for (NAME in TypedArrayConstructorsList) {
   if (global[NAME])
    setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);
  }
}
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
 setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
}
if (DESCRIPTORS && !has(TypedArrayPrototype, TO_STRING_TAG)) {
 TYPED_ARRAY_TAG_REQIRED = true;
 defineProperty(TypedArrayPrototype, TO_STRING_TAG, {
  get: function () {
   return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
  }
 });
 for (NAME in TypedArrayConstructorsList)
  if (global[NAME]) {
   createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);
  }
}
module.exports = {
 NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
 TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,
 aTypedArray: aTypedArray,
 aTypedArrayConstructor: aTypedArrayConstructor,
 exportTypedArrayMethod: exportTypedArrayMethod,
 exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
 isView: isView,
 isTypedArray: isTypedArray,
 TypedArray: TypedArray,
 TypedArrayPrototype: TypedArrayPrototype
};

/***/ }),
/* 115 */
/***/ (function(module, exports) {

module.exports = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';

/***/ }),
/* 116 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var anObject = __w_pdfjs_require__(28);
var aFunction = __w_pdfjs_require__(63);
var wellKnownSymbol = __w_pdfjs_require__(57);
var SPECIES = wellKnownSymbol('species');
module.exports = function (O, defaultConstructor) {
 var C = anObject(O).constructor;
 var S;
 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
};

/***/ }),
/* 117 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(118);
__w_pdfjs_require__(77);
__w_pdfjs_require__(120);
__w_pdfjs_require__(122);
__w_pdfjs_require__(136);
__w_pdfjs_require__(137);
var path = __w_pdfjs_require__(43);
module.exports = path.Promise;

/***/ }),
/* 118 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var TO_STRING_TAG_SUPPORT = __w_pdfjs_require__(96);
var redefine = __w_pdfjs_require__(29);
var toString = __w_pdfjs_require__(119);
if (!TO_STRING_TAG_SUPPORT) {
 redefine(Object.prototype, 'toString', toString, { unsafe: true });
}

/***/ }),
/* 119 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var TO_STRING_TAG_SUPPORT = __w_pdfjs_require__(96);
var classof = __w_pdfjs_require__(95);
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
 return '[object ' + classof(this) + ']';
};

/***/ }),
/* 120 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var DOMIterables = __w_pdfjs_require__(121);
var ArrayIteratorMethods = __w_pdfjs_require__(102);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var wellKnownSymbol = __w_pdfjs_require__(57);
var ITERATOR = wellKnownSymbol('iterator');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var ArrayValues = ArrayIteratorMethods.values;
for (var COLLECTION_NAME in DOMIterables) {
 var Collection = global[COLLECTION_NAME];
 var CollectionPrototype = Collection && Collection.prototype;
 if (CollectionPrototype) {
  if (CollectionPrototype[ITERATOR] !== ArrayValues)
   try {
    createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
   } catch (error) {
    CollectionPrototype[ITERATOR] = ArrayValues;
   }
  if (!CollectionPrototype[TO_STRING_TAG]) {
   createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
  }
  if (DOMIterables[COLLECTION_NAME])
   for (var METHOD_NAME in ArrayIteratorMethods) {
    if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME])
     try {
      createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
     } catch (error) {
      CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
     }
   }
 }
}

/***/ }),
/* 121 */
/***/ (function(module, exports) {

module.exports = {
 CSSRuleList: 0,
 CSSStyleDeclaration: 0,
 CSSValueList: 0,
 ClientRectList: 0,
 DOMRectList: 0,
 DOMStringList: 0,
 DOMTokenList: 1,
 DataTransferItemList: 0,
 FileList: 0,
 HTMLAllCollection: 0,
 HTMLCollection: 0,
 HTMLFormElement: 0,
 HTMLSelectElement: 0,
 MediaList: 0,
 MimeTypeArray: 0,
 NamedNodeMap: 0,
 NodeList: 1,
 PaintRequestList: 0,
 Plugin: 0,
 PluginArray: 0,
 SVGLengthList: 0,
 SVGNumberList: 0,
 SVGPathSegList: 0,
 SVGPointList: 0,
 SVGStringList: 0,
 SVGTransformList: 0,
 SourceBufferList: 0,
 StyleSheetList: 0,
 TextTrackCueList: 0,
 TextTrackList: 0,
 TouchList: 0
};

/***/ }),
/* 122 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var IS_PURE = __w_pdfjs_require__(37);
var global = __w_pdfjs_require__(11);
var getBuiltIn = __w_pdfjs_require__(42);
var NativePromise = __w_pdfjs_require__(123);
var redefine = __w_pdfjs_require__(29);
var redefineAll = __w_pdfjs_require__(124);
var setToStringTag = __w_pdfjs_require__(85);
var setSpecies = __w_pdfjs_require__(125);
var isObject = __w_pdfjs_require__(22);
var aFunction = __w_pdfjs_require__(63);
var anInstance = __w_pdfjs_require__(126);
var classof = __w_pdfjs_require__(19);
var inspectSource = __w_pdfjs_require__(31);
var iterate = __w_pdfjs_require__(104);
var checkCorrectnessOfIteration = __w_pdfjs_require__(97);
var speciesConstructor = __w_pdfjs_require__(116);
var task = __w_pdfjs_require__(127).set;
var microtask = __w_pdfjs_require__(130);
var promiseResolve = __w_pdfjs_require__(131);
var hostReportErrors = __w_pdfjs_require__(133);
var newPromiseCapabilityModule = __w_pdfjs_require__(132);
var perform = __w_pdfjs_require__(134);
var InternalStateModule = __w_pdfjs_require__(33);
var isForced = __w_pdfjs_require__(52);
var wellKnownSymbol = __w_pdfjs_require__(57);
var V8_VERSION = __w_pdfjs_require__(135);
var SPECIES = wellKnownSymbol('species');
var PROMISE = 'Promise';
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
var PromiseConstructor = NativePromise;
var TypeError = global.TypeError;
var document = global.document;
var process = global.process;
var $fetch = getBuiltIn('fetch');
var newPromiseCapability = newPromiseCapabilityModule.f;
var newGenericPromiseCapability = newPromiseCapability;
var IS_NODE = classof(process) == 'process';
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
var UNHANDLED_REJECTION = 'unhandledrejection';
var REJECTION_HANDLED = 'rejectionhandled';
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
var FORCED = isForced(PROMISE, function () {
 var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
 if (!GLOBAL_CORE_JS_PROMISE) {
  if (V8_VERSION === 66)
   return true;
  if (!IS_NODE && typeof PromiseRejectionEvent != 'function')
   return true;
 }
 if (IS_PURE && !PromiseConstructor.prototype['finally'])
  return true;
 if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor))
  return false;
 var promise = PromiseConstructor.resolve(1);
 var FakePromise = function (exec) {
  exec(function () {
  }, function () {
  });
 };
 var constructor = promise.constructor = {};
 constructor[SPECIES] = FakePromise;
 return !(promise.then(function () {
 }) instanceof FakePromise);
});
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
 PromiseConstructor.all(iterable)['catch'](function () {
 });
});
var isThenable = function (it) {
 var then;
 return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var notify = function (promise, state, isReject) {
 if (state.notified)
  return;
 state.notified = true;
 var chain = state.reactions;
 microtask(function () {
  var value = state.value;
  var ok = state.state == FULFILLED;
  var index = 0;
  while (chain.length > index) {
   var reaction = chain[index++];
   var handler = ok ? reaction.ok : reaction.fail;
   var resolve = reaction.resolve;
   var reject = reaction.reject;
   var domain = reaction.domain;
   var result, then, exited;
   try {
    if (handler) {
     if (!ok) {
      if (state.rejection === UNHANDLED)
       onHandleUnhandled(promise, state);
      state.rejection = HANDLED;
     }
     if (handler === true)
      result = value;
     else {
      if (domain)
       domain.enter();
      result = handler(value);
      if (domain) {
       domain.exit();
       exited = true;
      }
     }
     if (result === reaction.promise) {
      reject(TypeError('Promise-chain cycle'));
     } else if (then = isThenable(result)) {
      then.call(result, resolve, reject);
     } else
      resolve(result);
    } else
     reject(value);
   } catch (error) {
    if (domain && !exited)
     domain.exit();
    reject(error);
   }
  }
  state.reactions = [];
  state.notified = false;
  if (isReject && !state.rejection)
   onUnhandled(promise, state);
 });
};
var dispatchEvent = function (name, promise, reason) {
 var event, handler;
 if (DISPATCH_EVENT) {
  event = document.createEvent('Event');
  event.promise = promise;
  event.reason = reason;
  event.initEvent(name, false, true);
  global.dispatchEvent(event);
 } else
  event = {
   promise: promise,
   reason: reason
  };
 if (handler = global['on' + name])
  handler(event);
 else if (name === UNHANDLED_REJECTION)
  hostReportErrors('Unhandled promise rejection', reason);
};
var onUnhandled = function (promise, state) {
 task.call(global, function () {
  var value = state.value;
  var IS_UNHANDLED = isUnhandled(state);
  var result;
  if (IS_UNHANDLED) {
   result = perform(function () {
    if (IS_NODE) {
     process.emit('unhandledRejection', value, promise);
    } else
     dispatchEvent(UNHANDLED_REJECTION, promise, value);
   });
   state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
   if (result.error)
    throw result.value;
  }
 });
};
var isUnhandled = function (state) {
 return state.rejection !== HANDLED && !state.parent;
};
var onHandleUnhandled = function (promise, state) {
 task.call(global, function () {
  if (IS_NODE) {
   process.emit('rejectionHandled', promise);
  } else
   dispatchEvent(REJECTION_HANDLED, promise, state.value);
 });
};
var bind = function (fn, promise, state, unwrap) {
 return function (value) {
  fn(promise, state, value, unwrap);
 };
};
var internalReject = function (promise, state, value, unwrap) {
 if (state.done)
  return;
 state.done = true;
 if (unwrap)
  state = unwrap;
 state.value = value;
 state.state = REJECTED;
 notify(promise, state, true);
};
var internalResolve = function (promise, state, value, unwrap) {
 if (state.done)
  return;
 state.done = true;
 if (unwrap)
  state = unwrap;
 try {
  if (promise === value)
   throw TypeError("Promise can't be resolved itself");
  var then = isThenable(value);
  if (then) {
   microtask(function () {
    var wrapper = { done: false };
    try {
     then.call(value, bind(internalResolve, promise, wrapper, state), bind(internalReject, promise, wrapper, state));
    } catch (error) {
     internalReject(promise, wrapper, error, state);
    }
   });
  } else {
   state.value = value;
   state.state = FULFILLED;
   notify(promise, state, false);
  }
 } catch (error) {
  internalReject(promise, { done: false }, error, state);
 }
};
if (FORCED) {
 PromiseConstructor = function Promise(executor) {
  anInstance(this, PromiseConstructor, PROMISE);
  aFunction(executor);
  Internal.call(this);
  var state = getInternalState(this);
  try {
   executor(bind(internalResolve, this, state), bind(internalReject, this, state));
  } catch (error) {
   internalReject(this, state, error);
  }
 };
 Internal = function Promise(executor) {
  setInternalState(this, {
   type: PROMISE,
   done: false,
   notified: false,
   parent: false,
   reactions: [],
   rejection: false,
   state: PENDING,
   value: undefined
  });
 };
 Internal.prototype = redefineAll(PromiseConstructor.prototype, {
  then: function then(onFulfilled, onRejected) {
   var state = getInternalPromiseState(this);
   var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
   reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
   reaction.fail = typeof onRejected == 'function' && onRejected;
   reaction.domain = IS_NODE ? process.domain : undefined;
   state.parent = true;
   state.reactions.push(reaction);
   if (state.state != PENDING)
    notify(this, state, false);
   return reaction.promise;
  },
  'catch': function (onRejected) {
   return this.then(undefined, onRejected);
  }
 });
 OwnPromiseCapability = function () {
  var promise = new Internal();
  var state = getInternalState(promise);
  this.promise = promise;
  this.resolve = bind(internalResolve, promise, state);
  this.reject = bind(internalReject, promise, state);
 };
 newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
  return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C);
 };
 if (!IS_PURE && typeof NativePromise == 'function') {
  nativeThen = NativePromise.prototype.then;
  redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
   var that = this;
   return new PromiseConstructor(function (resolve, reject) {
    nativeThen.call(that, resolve, reject);
   }).then(onFulfilled, onRejected);
  }, { unsafe: true });
  if (typeof $fetch == 'function')
   $({
    global: true,
    enumerable: true,
    forced: true
   }, {
    fetch: function fetch(input) {
     return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
    }
   });
 }
}
$({
 global: true,
 wrap: true,
 forced: FORCED
}, { Promise: PromiseConstructor });
setToStringTag(PromiseConstructor, PROMISE, false, true);
setSpecies(PROMISE);
PromiseWrapper = getBuiltIn(PROMISE);
$({
 target: PROMISE,
 stat: true,
 forced: FORCED
}, {
 reject: function reject(r) {
  var capability = newPromiseCapability(this);
  capability.reject.call(undefined, r);
  return capability.promise;
 }
});
$({
 target: PROMISE,
 stat: true,
 forced: IS_PURE || FORCED
}, {
 resolve: function resolve(x) {
  return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
 }
});
$({
 target: PROMISE,
 stat: true,
 forced: INCORRECT_ITERATION
}, {
 all: function all(iterable) {
  var C = this;
  var capability = newPromiseCapability(C);
  var resolve = capability.resolve;
  var reject = capability.reject;
  var result = perform(function () {
   var $promiseResolve = aFunction(C.resolve);
   var values = [];
   var counter = 0;
   var remaining = 1;
   iterate(iterable, function (promise) {
    var index = counter++;
    var alreadyCalled = false;
    values.push(undefined);
    remaining++;
    $promiseResolve.call(C, promise).then(function (value) {
     if (alreadyCalled)
      return;
     alreadyCalled = true;
     values[index] = value;
     --remaining || resolve(values);
    }, reject);
   });
   --remaining || resolve(values);
  });
  if (result.error)
   reject(result.value);
  return capability.promise;
 },
 race: function race(iterable) {
  var C = this;
  var capability = newPromiseCapability(C);
  var reject = capability.reject;
  var result = perform(function () {
   var $promiseResolve = aFunction(C.resolve);
   iterate(iterable, function (promise) {
    $promiseResolve.call(C, promise).then(capability.resolve, reject);
   });
  });
  if (result.error)
   reject(result.value);
  return capability.promise;
 }
});

/***/ }),
/* 123 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
module.exports = global.Promise;

/***/ }),
/* 124 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var redefine = __w_pdfjs_require__(29);
module.exports = function (target, src, options) {
 for (var key in src)
  redefine(target, key, src[key], options);
 return target;
};

/***/ }),
/* 125 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var getBuiltIn = __w_pdfjs_require__(42);
var definePropertyModule = __w_pdfjs_require__(27);
var wellKnownSymbol = __w_pdfjs_require__(57);
var DESCRIPTORS = __w_pdfjs_require__(13);
var SPECIES = wellKnownSymbol('species');
module.exports = function (CONSTRUCTOR_NAME) {
 var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
 var defineProperty = definePropertyModule.f;
 if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
  defineProperty(Constructor, SPECIES, {
   configurable: true,
   get: function () {
    return this;
   }
  });
 }
};

/***/ }),
/* 126 */
/***/ (function(module, exports) {

module.exports = function (it, Constructor, name) {
 if (!(it instanceof Constructor)) {
  throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
 }
 return it;
};

/***/ }),
/* 127 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var fails = __w_pdfjs_require__(14);
var classof = __w_pdfjs_require__(19);
var bind = __w_pdfjs_require__(62);
var html = __w_pdfjs_require__(74);
var createElement = __w_pdfjs_require__(25);
var IS_IOS = __w_pdfjs_require__(128);
var location = global.location;
var set = global.setImmediate;
var clear = global.clearImmediate;
var process = global.process;
var MessageChannel = global.MessageChannel;
var Dispatch = global.Dispatch;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var defer, channel, port;
var run = function (id) {
 if (queue.hasOwnProperty(id)) {
  var fn = queue[id];
  delete queue[id];
  fn();
 }
};
var runner = function (id) {
 return function () {
  run(id);
 };
};
var listener = function (event) {
 run(event.data);
};
var post = function (id) {
 global.postMessage(id + '', location.protocol + '//' + location.host);
};
if (!set || !clear) {
 set = function setImmediate(fn) {
  var args = [];
  var i = 1;
  while (arguments.length > i)
   args.push(arguments[i++]);
  queue[++counter] = function () {
   (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
  };
  defer(counter);
  return counter;
 };
 clear = function clearImmediate(id) {
  delete queue[id];
 };
 if (classof(process) == 'process') {
  defer = function (id) {
   process.nextTick(runner(id));
  };
 } else if (Dispatch && Dispatch.now) {
  defer = function (id) {
   Dispatch.now(runner(id));
  };
 } else if (MessageChannel && !IS_IOS) {
  channel = new MessageChannel();
  port = channel.port2;
  channel.port1.onmessage = listener;
  defer = bind(port.postMessage, port, 1);
 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts && !fails(post) && location.protocol !== 'file:') {
  defer = post;
  global.addEventListener('message', listener, false);
 } else if (ONREADYSTATECHANGE in createElement('script')) {
  defer = function (id) {
   html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
    html.removeChild(this);
    run(id);
   };
  };
 } else {
  defer = function (id) {
   setTimeout(runner(id), 0);
  };
 }
}
module.exports = {
 set: set,
 clear: clear
};

/***/ }),
/* 128 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var userAgent = __w_pdfjs_require__(129);
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);

/***/ }),
/* 129 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var getBuiltIn = __w_pdfjs_require__(42);
module.exports = getBuiltIn('navigator', 'userAgent') || '';

/***/ }),
/* 130 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var getOwnPropertyDescriptor = __w_pdfjs_require__(12).f;
var classof = __w_pdfjs_require__(19);
var macrotask = __w_pdfjs_require__(127).set;
var IS_IOS = __w_pdfjs_require__(128);
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
var process = global.process;
var Promise = global.Promise;
var IS_NODE = classof(process) == 'process';
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
var flush, head, last, notify, toggle, node, promise, then;
if (!queueMicrotask) {
 flush = function () {
  var parent, fn;
  if (IS_NODE && (parent = process.domain))
   parent.exit();
  while (head) {
   fn = head.fn;
   head = head.next;
   try {
    fn();
   } catch (error) {
    if (head)
     notify();
    else
     last = undefined;
    throw error;
   }
  }
  last = undefined;
  if (parent)
   parent.enter();
 };
 if (IS_NODE) {
  notify = function () {
   process.nextTick(flush);
  };
 } else if (MutationObserver && !IS_IOS) {
  toggle = true;
  node = document.createTextNode('');
  new MutationObserver(flush).observe(node, { characterData: true });
  notify = function () {
   node.data = toggle = !toggle;
  };
 } else if (Promise && Promise.resolve) {
  promise = Promise.resolve(undefined);
  then = promise.then;
  notify = function () {
   then.call(promise, flush);
  };
 } else {
  notify = function () {
   macrotask.call(global, flush);
  };
 }
}
module.exports = queueMicrotask || function (fn) {
 var task = {
  fn: fn,
  next: undefined
 };
 if (last)
  last.next = task;
 if (!head) {
  head = task;
  notify();
 }
 last = task;
};

/***/ }),
/* 131 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var anObject = __w_pdfjs_require__(28);
var isObject = __w_pdfjs_require__(22);
var newPromiseCapability = __w_pdfjs_require__(132);
module.exports = function (C, x) {
 anObject(C);
 if (isObject(x) && x.constructor === C)
  return x;
 var promiseCapability = newPromiseCapability.f(C);
 var resolve = promiseCapability.resolve;
 resolve(x);
 return promiseCapability.promise;
};

/***/ }),
/* 132 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var aFunction = __w_pdfjs_require__(63);
var PromiseCapability = function (C) {
 var resolve, reject;
 this.promise = new C(function ($$resolve, $$reject) {
  if (resolve !== undefined || reject !== undefined)
   throw TypeError('Bad Promise constructor');
  resolve = $$resolve;
  reject = $$reject;
 });
 this.resolve = aFunction(resolve);
 this.reject = aFunction(reject);
};
module.exports.f = function (C) {
 return new PromiseCapability(C);
};

/***/ }),
/* 133 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
module.exports = function (a, b) {
 var console = global.console;
 if (console && console.error) {
  arguments.length === 1 ? console.error(a) : console.error(a, b);
 }
};

/***/ }),
/* 134 */
/***/ (function(module, exports) {

module.exports = function (exec) {
 try {
  return {
   error: false,
   value: exec()
  };
 } catch (error) {
  return {
   error: true,
   value: error
  };
 }
};

/***/ }),
/* 135 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var userAgent = __w_pdfjs_require__(129);
var process = global.process;
var versions = process && process.versions;
var v8 = versions && versions.v8;
var match, version;
if (v8) {
 match = v8.split('.');
 version = match[0] + match[1];
} else if (userAgent) {
 match = userAgent.match(/Edge\/(\d+)/);
 if (!match || match[1] >= 74) {
  match = userAgent.match(/Chrome\/(\d+)/);
  if (match)
   version = match[1];
 }
}
module.exports = version && +version;

/***/ }),
/* 136 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var aFunction = __w_pdfjs_require__(63);
var newPromiseCapabilityModule = __w_pdfjs_require__(132);
var perform = __w_pdfjs_require__(134);
var iterate = __w_pdfjs_require__(104);
$({
 target: 'Promise',
 stat: true
}, {
 allSettled: function allSettled(iterable) {
  var C = this;
  var capability = newPromiseCapabilityModule.f(C);
  var resolve = capability.resolve;
  var reject = capability.reject;
  var result = perform(function () {
   var promiseResolve = aFunction(C.resolve);
   var values = [];
   var counter = 0;
   var remaining = 1;
   iterate(iterable, function (promise) {
    var index = counter++;
    var alreadyCalled = false;
    values.push(undefined);
    remaining++;
    promiseResolve.call(C, promise).then(function (value) {
     if (alreadyCalled)
      return;
     alreadyCalled = true;
     values[index] = {
      status: 'fulfilled',
      value: value
     };
     --remaining || resolve(values);
    }, function (e) {
     if (alreadyCalled)
      return;
     alreadyCalled = true;
     values[index] = {
      status: 'rejected',
      reason: e
     };
     --remaining || resolve(values);
    });
   });
   --remaining || resolve(values);
  });
  if (result.error)
   reject(result.value);
  return capability.promise;
 }
});

/***/ }),
/* 137 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var IS_PURE = __w_pdfjs_require__(37);
var NativePromise = __w_pdfjs_require__(123);
var fails = __w_pdfjs_require__(14);
var getBuiltIn = __w_pdfjs_require__(42);
var speciesConstructor = __w_pdfjs_require__(116);
var promiseResolve = __w_pdfjs_require__(131);
var redefine = __w_pdfjs_require__(29);
var NON_GENERIC = !!NativePromise && fails(function () {
 NativePromise.prototype['finally'].call({
  then: function () {
  }
 }, function () {
 });
});
$({
 target: 'Promise',
 proto: true,
 real: true,
 forced: NON_GENERIC
}, {
 'finally': function (onFinally) {
  var C = speciesConstructor(this, getBuiltIn('Promise'));
  var isFunction = typeof onFinally == 'function';
  return this.then(isFunction ? function (x) {
   return promiseResolve(C, onFinally()).then(function () {
    return x;
   });
  } : onFinally, isFunction ? function (e) {
   return promiseResolve(C, onFinally()).then(function () {
    throw e;
   });
  } : onFinally);
 }
});
if (!IS_PURE && typeof NativePromise == 'function' && !NativePromise.prototype['finally']) {
 redefine(NativePromise.prototype, 'finally', getBuiltIn('Promise').prototype['finally']);
}

/***/ }),
/* 138 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(139);
__w_pdfjs_require__(144);
__w_pdfjs_require__(142);
var path = __w_pdfjs_require__(43);
module.exports = path.URL;

/***/ }),
/* 139 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

__w_pdfjs_require__(77);
var $ = __w_pdfjs_require__(10);
var DESCRIPTORS = __w_pdfjs_require__(13);
var USE_NATIVE_URL = __w_pdfjs_require__(140);
var global = __w_pdfjs_require__(11);
var defineProperties = __w_pdfjs_require__(72);
var redefine = __w_pdfjs_require__(29);
var anInstance = __w_pdfjs_require__(126);
var has = __w_pdfjs_require__(23);
var assign = __w_pdfjs_require__(100);
var arrayFrom = __w_pdfjs_require__(90);
var codeAt = __w_pdfjs_require__(78).codeAt;
var toASCII = __w_pdfjs_require__(141);
var setToStringTag = __w_pdfjs_require__(85);
var URLSearchParamsModule = __w_pdfjs_require__(142);
var InternalStateModule = __w_pdfjs_require__(33);
var NativeURL = global.URL;
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
var getInternalSearchParamsState = URLSearchParamsModule.getState;
var setInternalState = InternalStateModule.set;
var getInternalURLState = InternalStateModule.getterFor('URL');
var floor = Math.floor;
var pow = Math.pow;
var INVALID_AUTHORITY = 'Invalid authority';
var INVALID_SCHEME = 'Invalid scheme';
var INVALID_HOST = 'Invalid host';
var INVALID_PORT = 'Invalid port';
var ALPHA = /[A-Za-z]/;
var ALPHANUMERIC = /[\d+-.A-Za-z]/;
var DIGIT = /\d/;
var HEX_START = /^(0x|0X)/;
var OCT = /^[0-7]+$/;
var DEC = /^\d+$/;
var HEX = /^[\dA-Fa-f]+$/;
var FORBIDDEN_HOST_CODE_POINT = /[\u0000\u0009\u000A\u000D #%/:?@[\\]]/;
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\u0009\u000A\u000D #/:?@[\\]]/;
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;
var TAB_AND_NEW_LINE = /[\u0009\u000A\u000D]/g;
var EOF;
var parseHost = function (url, input) {
 var result, codePoints, index;
 if (input.charAt(0) == '[') {
  if (input.charAt(input.length - 1) != ']')
   return INVALID_HOST;
  result = parseIPv6(input.slice(1, -1));
  if (!result)
   return INVALID_HOST;
  url.host = result;
 } else if (!isSpecial(url)) {
  if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input))
   return INVALID_HOST;
  result = '';
  codePoints = arrayFrom(input);
  for (index = 0; index < codePoints.length; index++) {
   result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
  }
  url.host = result;
 } else {
  input = toASCII(input);
  if (FORBIDDEN_HOST_CODE_POINT.test(input))
   return INVALID_HOST;
  result = parseIPv4(input);
  if (result === null)
   return INVALID_HOST;
  url.host = result;
 }
};
var parseIPv4 = function (input) {
 var parts = input.split('.');
 var partsLength, numbers, index, part, radix, number, ipv4;
 if (parts.length && parts[parts.length - 1] == '') {
  parts.pop();
 }
 partsLength = parts.length;
 if (partsLength > 4)
  return input;
 numbers = [];
 for (index = 0; index < partsLength; index++) {
  part = parts[index];
  if (part == '')
   return input;
  radix = 10;
  if (part.length > 1 && part.charAt(0) == '0') {
   radix = HEX_START.test(part) ? 16 : 8;
   part = part.slice(radix == 8 ? 1 : 2);
  }
  if (part === '') {
   number = 0;
  } else {
   if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part))
    return input;
   number = parseInt(part, radix);
  }
  numbers.push(number);
 }
 for (index = 0; index < partsLength; index++) {
  number = numbers[index];
  if (index == partsLength - 1) {
   if (number >= pow(256, 5 - partsLength))
    return null;
  } else if (number > 255)
   return null;
 }
 ipv4 = numbers.pop();
 for (index = 0; index < numbers.length; index++) {
  ipv4 += numbers[index] * pow(256, 3 - index);
 }
 return ipv4;
};
var parseIPv6 = function (input) {
 var address = [
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0
 ];
 var pieceIndex = 0;
 var compress = null;
 var pointer = 0;
 var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
 var char = function () {
  return input.charAt(pointer);
 };
 if (char() == ':') {
  if (input.charAt(1) != ':')
   return;
  pointer += 2;
  pieceIndex++;
  compress = pieceIndex;
 }
 while (char()) {
  if (pieceIndex == 8)
   return;
  if (char() == ':') {
   if (compress !== null)
    return;
   pointer++;
   pieceIndex++;
   compress = pieceIndex;
   continue;
  }
  value = length = 0;
  while (length < 4 && HEX.test(char())) {
   value = value * 16 + parseInt(char(), 16);
   pointer++;
   length++;
  }
  if (char() == '.') {
   if (length == 0)
    return;
   pointer -= length;
   if (pieceIndex > 6)
    return;
   numbersSeen = 0;
   while (char()) {
    ipv4Piece = null;
    if (numbersSeen > 0) {
     if (char() == '.' && numbersSeen < 4)
      pointer++;
     else
      return;
    }
    if (!DIGIT.test(char()))
     return;
    while (DIGIT.test(char())) {
     number = parseInt(char(), 10);
     if (ipv4Piece === null)
      ipv4Piece = number;
     else if (ipv4Piece == 0)
      return;
     else
      ipv4Piece = ipv4Piece * 10 + number;
     if (ipv4Piece > 255)
      return;
     pointer++;
    }
    address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
    numbersSeen++;
    if (numbersSeen == 2 || numbersSeen == 4)
     pieceIndex++;
   }
   if (numbersSeen != 4)
    return;
   break;
  } else if (char() == ':') {
   pointer++;
   if (!char())
    return;
  } else if (char())
   return;
  address[pieceIndex++] = value;
 }
 if (compress !== null) {
  swaps = pieceIndex - compress;
  pieceIndex = 7;
  while (pieceIndex != 0 && swaps > 0) {
   swap = address[pieceIndex];
   address[pieceIndex--] = address[compress + swaps - 1];
   address[compress + --swaps] = swap;
  }
 } else if (pieceIndex != 8)
  return;
 return address;
};
var findLongestZeroSequence = function (ipv6) {
 var maxIndex = null;
 var maxLength = 1;
 var currStart = null;
 var currLength = 0;
 var index = 0;
 for (; index < 8; index++) {
  if (ipv6[index] !== 0) {
   if (currLength > maxLength) {
    maxIndex = currStart;
    maxLength = currLength;
   }
   currStart = null;
   currLength = 0;
  } else {
   if (currStart === null)
    currStart = index;
   ++currLength;
  }
 }
 if (currLength > maxLength) {
  maxIndex = currStart;
  maxLength = currLength;
 }
 return maxIndex;
};
var serializeHost = function (host) {
 var result, index, compress, ignore0;
 if (typeof host == 'number') {
  result = [];
  for (index = 0; index < 4; index++) {
   result.unshift(host % 256);
   host = floor(host / 256);
  }
  return result.join('.');
 } else if (typeof host == 'object') {
  result = '';
  compress = findLongestZeroSequence(host);
  for (index = 0; index < 8; index++) {
   if (ignore0 && host[index] === 0)
    continue;
   if (ignore0)
    ignore0 = false;
   if (compress === index) {
    result += index ? ':' : '::';
    ignore0 = true;
   } else {
    result += host[index].toString(16);
    if (index < 7)
     result += ':';
   }
  }
  return '[' + result + ']';
 }
 return host;
};
var C0ControlPercentEncodeSet = {};
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
 ' ': 1,
 '"': 1,
 '<': 1,
 '>': 1,
 '`': 1
});
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
 '#': 1,
 '?': 1,
 '{': 1,
 '}': 1
});
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
 '/': 1,
 ':': 1,
 ';': 1,
 '=': 1,
 '@': 1,
 '[': 1,
 '\\': 1,
 ']': 1,
 '^': 1,
 '|': 1
});
var percentEncode = function (char, set) {
 var code = codeAt(char, 0);
 return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);
};
var specialSchemes = {
 ftp: 21,
 file: null,
 http: 80,
 https: 443,
 ws: 80,
 wss: 443
};
var isSpecial = function (url) {
 return has(specialSchemes, url.scheme);
};
var includesCredentials = function (url) {
 return url.username != '' || url.password != '';
};
var cannotHaveUsernamePasswordPort = function (url) {
 return !url.host || url.cannotBeABaseURL || url.scheme == 'file';
};
var isWindowsDriveLetter = function (string, normalized) {
 var second;
 return string.length == 2 && ALPHA.test(string.charAt(0)) && ((second = string.charAt(1)) == ':' || !normalized && second == '|');
};
var startsWithWindowsDriveLetter = function (string) {
 var third;
 return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (string.length == 2 || ((third = string.charAt(2)) === '/' || third === '\\' || third === '?' || third === '#'));
};
var shortenURLsPath = function (url) {
 var path = url.path;
 var pathSize = path.length;
 if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
  path.pop();
 }
};
var isSingleDot = function (segment) {
 return segment === '.' || segment.toLowerCase() === '%2e';
};
var isDoubleDot = function (segment) {
 segment = segment.toLowerCase();
 return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
};
var SCHEME_START = {};
var SCHEME = {};
var NO_SCHEME = {};
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
var PATH_OR_AUTHORITY = {};
var RELATIVE = {};
var RELATIVE_SLASH = {};
var SPECIAL_AUTHORITY_SLASHES = {};
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
var AUTHORITY = {};
var HOST = {};
var HOSTNAME = {};
var PORT = {};
var FILE = {};
var FILE_SLASH = {};
var FILE_HOST = {};
var PATH_START = {};
var PATH = {};
var CANNOT_BE_A_BASE_URL_PATH = {};
var QUERY = {};
var FRAGMENT = {};
var parseURL = function (url, input, stateOverride, base) {
 var state = stateOverride || SCHEME_START;
 var pointer = 0;
 var buffer = '';
 var seenAt = false;
 var seenBracket = false;
 var seenPasswordToken = false;
 var codePoints, char, bufferCodePoints, failure;
 if (!stateOverride) {
  url.scheme = '';
  url.username = '';
  url.password = '';
  url.host = null;
  url.port = null;
  url.path = [];
  url.query = null;
  url.fragment = null;
  url.cannotBeABaseURL = false;
  input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
 }
 input = input.replace(TAB_AND_NEW_LINE, '');
 codePoints = arrayFrom(input);
 while (pointer <= codePoints.length) {
  char = codePoints[pointer];
  switch (state) {
  case SCHEME_START:
   if (char && ALPHA.test(char)) {
    buffer += char.toLowerCase();
    state = SCHEME;
   } else if (!stateOverride) {
    state = NO_SCHEME;
    continue;
   } else
    return INVALID_SCHEME;
   break;
  case SCHEME:
   if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {
    buffer += char.toLowerCase();
   } else if (char == ':') {
    if (stateOverride && (isSpecial(url) != has(specialSchemes, buffer) || buffer == 'file' && (includesCredentials(url) || url.port !== null) || url.scheme == 'file' && !url.host))
     return;
    url.scheme = buffer;
    if (stateOverride) {
     if (isSpecial(url) && specialSchemes[url.scheme] == url.port)
      url.port = null;
     return;
    }
    buffer = '';
    if (url.scheme == 'file') {
     state = FILE;
    } else if (isSpecial(url) && base && base.scheme == url.scheme) {
     state = SPECIAL_RELATIVE_OR_AUTHORITY;
    } else if (isSpecial(url)) {
     state = SPECIAL_AUTHORITY_SLASHES;
    } else if (codePoints[pointer + 1] == '/') {
     state = PATH_OR_AUTHORITY;
     pointer++;
    } else {
     url.cannotBeABaseURL = true;
     url.path.push('');
     state = CANNOT_BE_A_BASE_URL_PATH;
    }
   } else if (!stateOverride) {
    buffer = '';
    state = NO_SCHEME;
    pointer = 0;
    continue;
   } else
    return INVALID_SCHEME;
   break;
  case NO_SCHEME:
   if (!base || base.cannotBeABaseURL && char != '#')
    return INVALID_SCHEME;
   if (base.cannotBeABaseURL && char == '#') {
    url.scheme = base.scheme;
    url.path = base.path.slice();
    url.query = base.query;
    url.fragment = '';
    url.cannotBeABaseURL = true;
    state = FRAGMENT;
    break;
   }
   state = base.scheme == 'file' ? FILE : RELATIVE;
   continue;
  case SPECIAL_RELATIVE_OR_AUTHORITY:
   if (char == '/' && codePoints[pointer + 1] == '/') {
    state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
    pointer++;
   } else {
    state = RELATIVE;
    continue;
   }
   break;
  case PATH_OR_AUTHORITY:
   if (char == '/') {
    state = AUTHORITY;
    break;
   } else {
    state = PATH;
    continue;
   }
  case RELATIVE:
   url.scheme = base.scheme;
   if (char == EOF) {
    url.username = base.username;
    url.password = base.password;
    url.host = base.host;
    url.port = base.port;
    url.path = base.path.slice();
    url.query = base.query;
   } else if (char == '/' || char == '\\' && isSpecial(url)) {
    state = RELATIVE_SLASH;
   } else if (char == '?') {
    url.username = base.username;
    url.password = base.password;
    url.host = base.host;
    url.port = base.port;
    url.path = base.path.slice();
    url.query = '';
    state = QUERY;
   } else if (char == '#') {
    url.username = base.username;
    url.password = base.password;
    url.host = base.host;
    url.port = base.port;
    url.path = base.path.slice();
    url.query = base.query;
    url.fragment = '';
    state = FRAGMENT;
   } else {
    url.username = base.username;
    url.password = base.password;
    url.host = base.host;
    url.port = base.port;
    url.path = base.path.slice();
    url.path.pop();
    state = PATH;
    continue;
   }
   break;
  case RELATIVE_SLASH:
   if (isSpecial(url) && (char == '/' || char == '\\')) {
    state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
   } else if (char == '/') {
    state = AUTHORITY;
   } else {
    url.username = base.username;
    url.password = base.password;
    url.host = base.host;
    url.port = base.port;
    state = PATH;
    continue;
   }
   break;
  case SPECIAL_AUTHORITY_SLASHES:
   state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
   if (char != '/' || buffer.charAt(pointer + 1) != '/')
    continue;
   pointer++;
   break;
  case SPECIAL_AUTHORITY_IGNORE_SLASHES:
   if (char != '/' && char != '\\') {
    state = AUTHORITY;
    continue;
   }
   break;
  case AUTHORITY:
   if (char == '@') {
    if (seenAt)
     buffer = '%40' + buffer;
    seenAt = true;
    bufferCodePoints = arrayFrom(buffer);
    for (var i = 0; i < bufferCodePoints.length; i++) {
     var codePoint = bufferCodePoints[i];
     if (codePoint == ':' && !seenPasswordToken) {
      seenPasswordToken = true;
      continue;
     }
     var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
     if (seenPasswordToken)
      url.password += encodedCodePoints;
     else
      url.username += encodedCodePoints;
    }
    buffer = '';
   } else if (char == EOF || char == '/' || char == '?' || char == '#' || char == '\\' && isSpecial(url)) {
    if (seenAt && buffer == '')
     return INVALID_AUTHORITY;
    pointer -= arrayFrom(buffer).length + 1;
    buffer = '';
    state = HOST;
   } else
    buffer += char;
   break;
  case HOST:
  case HOSTNAME:
   if (stateOverride && url.scheme == 'file') {
    state = FILE_HOST;
    continue;
   } else if (char == ':' && !seenBracket) {
    if (buffer == '')
     return INVALID_HOST;
    failure = parseHost(url, buffer);
    if (failure)
     return failure;
    buffer = '';
    state = PORT;
    if (stateOverride == HOSTNAME)
     return;
   } else if (char == EOF || char == '/' || char == '?' || char == '#' || char == '\\' && isSpecial(url)) {
    if (isSpecial(url) && buffer == '')
     return INVALID_HOST;
    if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null))
     return;
    failure = parseHost(url, buffer);
    if (failure)
     return failure;
    buffer = '';
    state = PATH_START;
    if (stateOverride)
     return;
    continue;
   } else {
    if (char == '[')
     seenBracket = true;
    else if (char == ']')
     seenBracket = false;
    buffer += char;
   }
   break;
  case PORT:
   if (DIGIT.test(char)) {
    buffer += char;
   } else if (char == EOF || char == '/' || char == '?' || char == '#' || char == '\\' && isSpecial(url) || stateOverride) {
    if (buffer != '') {
     var port = parseInt(buffer, 10);
     if (port > 0xFFFF)
      return INVALID_PORT;
     url.port = isSpecial(url) && port === specialSchemes[url.scheme] ? null : port;
     buffer = '';
    }
    if (stateOverride)
     return;
    state = PATH_START;
    continue;
   } else
    return INVALID_PORT;
   break;
  case FILE:
   url.scheme = 'file';
   if (char == '/' || char == '\\')
    state = FILE_SLASH;
   else if (base && base.scheme == 'file') {
    if (char == EOF) {
     url.host = base.host;
     url.path = base.path.slice();
     url.query = base.query;
    } else if (char == '?') {
     url.host = base.host;
     url.path = base.path.slice();
     url.query = '';
     state = QUERY;
    } else if (char == '#') {
     url.host = base.host;
     url.path = base.path.slice();
     url.query = base.query;
     url.fragment = '';
     state = FRAGMENT;
    } else {
     if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
      url.host = base.host;
      url.path = base.path.slice();
      shortenURLsPath(url);
     }
     state = PATH;
     continue;
    }
   } else {
    state = PATH;
    continue;
   }
   break;
  case FILE_SLASH:
   if (char == '/' || char == '\\') {
    state = FILE_HOST;
    break;
   }
   if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
    if (isWindowsDriveLetter(base.path[0], true))
     url.path.push(base.path[0]);
    else
     url.host = base.host;
   }
   state = PATH;
   continue;
  case FILE_HOST:
   if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') {
    if (!stateOverride && isWindowsDriveLetter(buffer)) {
     state = PATH;
    } else if (buffer == '') {
     url.host = '';
     if (stateOverride)
      return;
     state = PATH_START;
    } else {
     failure = parseHost(url, buffer);
     if (failure)
      return failure;
     if (url.host == 'localhost')
      url.host = '';
     if (stateOverride)
      return;
     buffer = '';
     state = PATH_START;
    }
    continue;
   } else
    buffer += char;
   break;
  case PATH_START:
   if (isSpecial(url)) {
    state = PATH;
    if (char != '/' && char != '\\')
     continue;
   } else if (!stateOverride && char == '?') {
    url.query = '';
    state = QUERY;
   } else if (!stateOverride && char == '#') {
    url.fragment = '';
    state = FRAGMENT;
   } else if (char != EOF) {
    state = PATH;
    if (char != '/')
     continue;
   }
   break;
  case PATH:
   if (char == EOF || char == '/' || char == '\\' && isSpecial(url) || !stateOverride && (char == '?' || char == '#')) {
    if (isDoubleDot(buffer)) {
     shortenURLsPath(url);
     if (char != '/' && !(char == '\\' && isSpecial(url))) {
      url.path.push('');
     }
    } else if (isSingleDot(buffer)) {
     if (char != '/' && !(char == '\\' && isSpecial(url))) {
      url.path.push('');
     }
    } else {
     if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
      if (url.host)
       url.host = '';
      buffer = buffer.charAt(0) + ':';
     }
     url.path.push(buffer);
    }
    buffer = '';
    if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {
     while (url.path.length > 1 && url.path[0] === '') {
      url.path.shift();
     }
    }
    if (char == '?') {
     url.query = '';
     state = QUERY;
    } else if (char == '#') {
     url.fragment = '';
     state = FRAGMENT;
    }
   } else {
    buffer += percentEncode(char, pathPercentEncodeSet);
   }
   break;
  case CANNOT_BE_A_BASE_URL_PATH:
   if (char == '?') {
    url.query = '';
    state = QUERY;
   } else if (char == '#') {
    url.fragment = '';
    state = FRAGMENT;
   } else if (char != EOF) {
    url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);
   }
   break;
  case QUERY:
   if (!stateOverride && char == '#') {
    url.fragment = '';
    state = FRAGMENT;
   } else if (char != EOF) {
    if (char == "'" && isSpecial(url))
     url.query += '%27';
    else if (char == '#')
     url.query += '%23';
    else
     url.query += percentEncode(char, C0ControlPercentEncodeSet);
   }
   break;
  case FRAGMENT:
   if (char != EOF)
    url.fragment += percentEncode(char, fragmentPercentEncodeSet);
   break;
  }
  pointer++;
 }
};
var URLConstructor = function URL(url) {
 var that = anInstance(this, URLConstructor, 'URL');
 var base = arguments.length > 1 ? arguments[1] : undefined;
 var urlString = String(url);
 var state = setInternalState(that, { type: 'URL' });
 var baseState, failure;
 if (base !== undefined) {
  if (base instanceof URLConstructor)
   baseState = getInternalURLState(base);
  else {
   failure = parseURL(baseState = {}, String(base));
   if (failure)
    throw TypeError(failure);
  }
 }
 failure = parseURL(state, urlString, null, baseState);
 if (failure)
  throw TypeError(failure);
 var searchParams = state.searchParams = new URLSearchParams();
 var searchParamsState = getInternalSearchParamsState(searchParams);
 searchParamsState.updateSearchParams(state.query);
 searchParamsState.updateURL = function () {
  state.query = String(searchParams) || null;
 };
 if (!DESCRIPTORS) {
  that.href = serializeURL.call(that);
  that.origin = getOrigin.call(that);
  that.protocol = getProtocol.call(that);
  that.username = getUsername.call(that);
  that.password = getPassword.call(that);
  that.host = getHost.call(that);
  that.hostname = getHostname.call(that);
  that.port = getPort.call(that);
  that.pathname = getPathname.call(that);
  that.search = getSearch.call(that);
  that.searchParams = getSearchParams.call(that);
  that.hash = getHash.call(that);
 }
};
var URLPrototype = URLConstructor.prototype;
var serializeURL = function () {
 var url = getInternalURLState(this);
 var scheme = url.scheme;
 var username = url.username;
 var password = url.password;
 var host = url.host;
 var port = url.port;
 var path = url.path;
 var query = url.query;
 var fragment = url.fragment;
 var output = scheme + ':';
 if (host !== null) {
  output += '//';
  if (includesCredentials(url)) {
   output += username + (password ? ':' + password : '') + '@';
  }
  output += serializeHost(host);
  if (port !== null)
   output += ':' + port;
 } else if (scheme == 'file')
  output += '//';
 output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
 if (query !== null)
  output += '?' + query;
 if (fragment !== null)
  output += '#' + fragment;
 return output;
};
var getOrigin = function () {
 var url = getInternalURLState(this);
 var scheme = url.scheme;
 var port = url.port;
 if (scheme == 'blob')
  try {
   return new URL(scheme.path[0]).origin;
  } catch (error) {
   return 'null';
  }
 if (scheme == 'file' || !isSpecial(url))
  return 'null';
 return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');
};
var getProtocol = function () {
 return getInternalURLState(this).scheme + ':';
};
var getUsername = function () {
 return getInternalURLState(this).username;
};
var getPassword = function () {
 return getInternalURLState(this).password;
};
var getHost = function () {
 var url = getInternalURLState(this);
 var host = url.host;
 var port = url.port;
 return host === null ? '' : port === null ? serializeHost(host) : serializeHost(host) + ':' + port;
};
var getHostname = function () {
 var host = getInternalURLState(this).host;
 return host === null ? '' : serializeHost(host);
};
var getPort = function () {
 var port = getInternalURLState(this).port;
 return port === null ? '' : String(port);
};
var getPathname = function () {
 var url = getInternalURLState(this);
 var path = url.path;
 return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
};
var getSearch = function () {
 var query = getInternalURLState(this).query;
 return query ? '?' + query : '';
};
var getSearchParams = function () {
 return getInternalURLState(this).searchParams;
};
var getHash = function () {
 var fragment = getInternalURLState(this).fragment;
 return fragment ? '#' + fragment : '';
};
var accessorDescriptor = function (getter, setter) {
 return {
  get: getter,
  set: setter,
  configurable: true,
  enumerable: true
 };
};
if (DESCRIPTORS) {
 defineProperties(URLPrototype, {
  href: accessorDescriptor(serializeURL, function (href) {
   var url = getInternalURLState(this);
   var urlString = String(href);
   var failure = parseURL(url, urlString);
   if (failure)
    throw TypeError(failure);
   getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
  }),
  origin: accessorDescriptor(getOrigin),
  protocol: accessorDescriptor(getProtocol, function (protocol) {
   var url = getInternalURLState(this);
   parseURL(url, String(protocol) + ':', SCHEME_START);
  }),
  username: accessorDescriptor(getUsername, function (username) {
   var url = getInternalURLState(this);
   var codePoints = arrayFrom(String(username));
   if (cannotHaveUsernamePasswordPort(url))
    return;
   url.username = '';
   for (var i = 0; i < codePoints.length; i++) {
    url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
   }
  }),
  password: accessorDescriptor(getPassword, function (password) {
   var url = getInternalURLState(this);
   var codePoints = arrayFrom(String(password));
   if (cannotHaveUsernamePasswordPort(url))
    return;
   url.password = '';
   for (var i = 0; i < codePoints.length; i++) {
    url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
   }
  }),
  host: accessorDescriptor(getHost, function (host) {
   var url = getInternalURLState(this);
   if (url.cannotBeABaseURL)
    return;
   parseURL(url, String(host), HOST);
  }),
  hostname: accessorDescriptor(getHostname, function (hostname) {
   var url = getInternalURLState(this);
   if (url.cannotBeABaseURL)
    return;
   parseURL(url, String(hostname), HOSTNAME);
  }),
  port: accessorDescriptor(getPort, function (port) {
   var url = getInternalURLState(this);
   if (cannotHaveUsernamePasswordPort(url))
    return;
   port = String(port);
   if (port == '')
    url.port = null;
   else
    parseURL(url, port, PORT);
  }),
  pathname: accessorDescriptor(getPathname, function (pathname) {
   var url = getInternalURLState(this);
   if (url.cannotBeABaseURL)
    return;
   url.path = [];
   parseURL(url, pathname + '', PATH_START);
  }),
  search: accessorDescriptor(getSearch, function (search) {
   var url = getInternalURLState(this);
   search = String(search);
   if (search == '') {
    url.query = null;
   } else {
    if ('?' == search.charAt(0))
     search = search.slice(1);
    url.query = '';
    parseURL(url, search, QUERY);
   }
   getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
  }),
  searchParams: accessorDescriptor(getSearchParams),
  hash: accessorDescriptor(getHash, function (hash) {
   var url = getInternalURLState(this);
   hash = String(hash);
   if (hash == '') {
    url.fragment = null;
    return;
   }
   if ('#' == hash.charAt(0))
    hash = hash.slice(1);
   url.fragment = '';
   parseURL(url, hash, FRAGMENT);
  })
 });
}
redefine(URLPrototype, 'toJSON', function toJSON() {
 return serializeURL.call(this);
}, { enumerable: true });
redefine(URLPrototype, 'toString', function toString() {
 return serializeURL.call(this);
}, { enumerable: true });
if (NativeURL) {
 var nativeCreateObjectURL = NativeURL.createObjectURL;
 var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
 if (nativeCreateObjectURL)
  redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {
   return nativeCreateObjectURL.apply(NativeURL, arguments);
  });
 if (nativeRevokeObjectURL)
  redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {
   return nativeRevokeObjectURL.apply(NativeURL, arguments);
  });
}
setToStringTag(URLConstructor, 'URL');
$({
 global: true,
 forced: !USE_NATIVE_URL,
 sham: !DESCRIPTORS
}, { URL: URLConstructor });

/***/ }),
/* 140 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
var wellKnownSymbol = __w_pdfjs_require__(57);
var IS_PURE = __w_pdfjs_require__(37);
var ITERATOR = wellKnownSymbol('iterator');
module.exports = !fails(function () {
 var url = new URL('b?a=1&b=2&c=3', 'http://a');
 var searchParams = url.searchParams;
 var result = '';
 url.pathname = 'c%20d';
 searchParams.forEach(function (value, key) {
  searchParams['delete']('b');
  result += key + value;
 });
 return IS_PURE && !url.toJSON || !searchParams.sort || url.href !== 'http://a/c%20d?a=1&c=3' || searchParams.get('c') !== '3' || String(new URLSearchParams('?a=1')) !== 'a=1' || !searchParams[ITERATOR] || new URL('https://a@b').username !== 'a' || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' || new URL('http://тест').host !== 'xn--e1aybc' || new URL('http://a#б').hash !== '#%D0%B1' || result !== 'a1c3' || new URL('http://x', undefined).host !== 'x';
});

/***/ }),
/* 141 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var maxInt = 2147483647;
var base = 36;
var tMin = 1;
var tMax = 26;
var skew = 38;
var damp = 700;
var initialBias = 72;
var initialN = 128;
var delimiter = '-';
var regexNonASCII = /[^\0-\u007E]/;
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g;
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
var baseMinusTMin = base - tMin;
var floor = Math.floor;
var stringFromCharCode = String.fromCharCode;
var ucs2decode = function (string) {
 var output = [];
 var counter = 0;
 var length = string.length;
 while (counter < length) {
  var value = string.charCodeAt(counter++);
  if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
   var extra = string.charCodeAt(counter++);
   if ((extra & 0xFC00) == 0xDC00) {
    output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
   } else {
    output.push(value);
    counter--;
   }
  } else {
   output.push(value);
  }
 }
 return output;
};
var digitToBasic = function (digit) {
 return digit + 22 + 75 * (digit < 26);
};
var adapt = function (delta, numPoints, firstTime) {
 var k = 0;
 delta = firstTime ? floor(delta / damp) : delta >> 1;
 delta += floor(delta / numPoints);
 for (; delta > baseMinusTMin * tMax >> 1; k += base) {
  delta = floor(delta / baseMinusTMin);
 }
 return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
};
var encode = function (input) {
 var output = [];
 input = ucs2decode(input);
 var inputLength = input.length;
 var n = initialN;
 var delta = 0;
 var bias = initialBias;
 var i, currentValue;
 for (i = 0; i < input.length; i++) {
  currentValue = input[i];
  if (currentValue < 0x80) {
   output.push(stringFromCharCode(currentValue));
  }
 }
 var basicLength = output.length;
 var handledCPCount = basicLength;
 if (basicLength) {
  output.push(delimiter);
 }
 while (handledCPCount < inputLength) {
  var m = maxInt;
  for (i = 0; i < input.length; i++) {
   currentValue = input[i];
   if (currentValue >= n && currentValue < m) {
    m = currentValue;
   }
  }
  var handledCPCountPlusOne = handledCPCount + 1;
  if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
   throw RangeError(OVERFLOW_ERROR);
  }
  delta += (m - n) * handledCPCountPlusOne;
  n = m;
  for (i = 0; i < input.length; i++) {
   currentValue = input[i];
   if (currentValue < n && ++delta > maxInt) {
    throw RangeError(OVERFLOW_ERROR);
   }
   if (currentValue == n) {
    var q = delta;
    for (var k = base;; k += base) {
     var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
     if (q < t)
      break;
     var qMinusT = q - t;
     var baseMinusT = base - t;
     output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
     q = floor(qMinusT / baseMinusT);
    }
    output.push(stringFromCharCode(digitToBasic(q)));
    bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
    delta = 0;
    ++handledCPCount;
   }
  }
  ++delta;
  ++n;
 }
 return output.join('');
};
module.exports = function (input) {
 var encoded = [];
 var labels = input.toLowerCase().replace(regexSeparators, '\u002E').split('.');
 var i, label;
 for (i = 0; i < labels.length; i++) {
  label = labels[i];
  encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label);
 }
 return encoded.join('.');
};

/***/ }),
/* 142 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

__w_pdfjs_require__(102);
var $ = __w_pdfjs_require__(10);
var getBuiltIn = __w_pdfjs_require__(42);
var USE_NATIVE_URL = __w_pdfjs_require__(140);
var redefine = __w_pdfjs_require__(29);
var redefineAll = __w_pdfjs_require__(124);
var setToStringTag = __w_pdfjs_require__(85);
var createIteratorConstructor = __w_pdfjs_require__(80);
var InternalStateModule = __w_pdfjs_require__(33);
var anInstance = __w_pdfjs_require__(126);
var hasOwn = __w_pdfjs_require__(23);
var bind = __w_pdfjs_require__(62);
var classof = __w_pdfjs_require__(95);
var anObject = __w_pdfjs_require__(28);
var isObject = __w_pdfjs_require__(22);
var create = __w_pdfjs_require__(71);
var createPropertyDescriptor = __w_pdfjs_require__(16);
var getIterator = __w_pdfjs_require__(143);
var getIteratorMethod = __w_pdfjs_require__(94);
var wellKnownSymbol = __w_pdfjs_require__(57);
var $fetch = getBuiltIn('fetch');
var Headers = getBuiltIn('Headers');
var ITERATOR = wellKnownSymbol('iterator');
var URL_SEARCH_PARAMS = 'URLSearchParams';
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
var setInternalState = InternalStateModule.set;
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
var plus = /\+/g;
var sequences = Array(4);
var percentSequence = function (bytes) {
 return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
};
var percentDecode = function (sequence) {
 try {
  return decodeURIComponent(sequence);
 } catch (error) {
  return sequence;
 }
};
var deserialize = function (it) {
 var result = it.replace(plus, ' ');
 var bytes = 4;
 try {
  return decodeURIComponent(result);
 } catch (error) {
  while (bytes) {
   result = result.replace(percentSequence(bytes--), percentDecode);
  }
  return result;
 }
};
var find = /[!'()~]|%20/g;
var replace = {
 '!': '%21',
 "'": '%27',
 '(': '%28',
 ')': '%29',
 '~': '%7E',
 '%20': '+'
};
var replacer = function (match) {
 return replace[match];
};
var serialize = function (it) {
 return encodeURIComponent(it).replace(find, replacer);
};
var parseSearchParams = function (result, query) {
 if (query) {
  var attributes = query.split('&');
  var index = 0;
  var attribute, entry;
  while (index < attributes.length) {
   attribute = attributes[index++];
   if (attribute.length) {
    entry = attribute.split('=');
    result.push({
     key: deserialize(entry.shift()),
     value: deserialize(entry.join('='))
    });
   }
  }
 }
};
var updateSearchParams = function (query) {
 this.entries.length = 0;
 parseSearchParams(this.entries, query);
};
var validateArgumentsLength = function (passed, required) {
 if (passed < required)
  throw TypeError('Not enough arguments');
};
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
 setInternalState(this, {
  type: URL_SEARCH_PARAMS_ITERATOR,
  iterator: getIterator(getInternalParamsState(params).entries),
  kind: kind
 });
}, 'Iterator', function next() {
 var state = getInternalIteratorState(this);
 var kind = state.kind;
 var step = state.iterator.next();
 var entry = step.value;
 if (!step.done) {
  step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [
   entry.key,
   entry.value
  ];
 }
 return step;
});
var URLSearchParamsConstructor = function URLSearchParams() {
 anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
 var init = arguments.length > 0 ? arguments[0] : undefined;
 var that = this;
 var entries = [];
 var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;
 setInternalState(that, {
  type: URL_SEARCH_PARAMS,
  entries: entries,
  updateURL: function () {
  },
  updateSearchParams: updateSearchParams
 });
 if (init !== undefined) {
  if (isObject(init)) {
   iteratorMethod = getIteratorMethod(init);
   if (typeof iteratorMethod === 'function') {
    iterator = iteratorMethod.call(init);
    next = iterator.next;
    while (!(step = next.call(iterator)).done) {
     entryIterator = getIterator(anObject(step.value));
     entryNext = entryIterator.next;
     if ((first = entryNext.call(entryIterator)).done || (second = entryNext.call(entryIterator)).done || !entryNext.call(entryIterator).done)
      throw TypeError('Expected sequence with length 2');
     entries.push({
      key: first.value + '',
      value: second.value + ''
     });
    }
   } else
    for (key in init)
     if (hasOwn(init, key))
      entries.push({
       key: key,
       value: init[key] + ''
      });
  } else {
   parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + '');
  }
 }
};
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
redefineAll(URLSearchParamsPrototype, {
 append: function append(name, value) {
  validateArgumentsLength(arguments.length, 2);
  var state = getInternalParamsState(this);
  state.entries.push({
   key: name + '',
   value: value + ''
  });
  state.updateURL();
 },
 'delete': function (name) {
  validateArgumentsLength(arguments.length, 1);
  var state = getInternalParamsState(this);
  var entries = state.entries;
  var key = name + '';
  var index = 0;
  while (index < entries.length) {
   if (entries[index].key === key)
    entries.splice(index, 1);
   else
    index++;
  }
  state.updateURL();
 },
 get: function get(name) {
  validateArgumentsLength(arguments.length, 1);
  var entries = getInternalParamsState(this).entries;
  var key = name + '';
  var index = 0;
  for (; index < entries.length; index++) {
   if (entries[index].key === key)
    return entries[index].value;
  }
  return null;
 },
 getAll: function getAll(name) {
  validateArgumentsLength(arguments.length, 1);
  var entries = getInternalParamsState(this).entries;
  var key = name + '';
  var result = [];
  var index = 0;
  for (; index < entries.length; index++) {
   if (entries[index].key === key)
    result.push(entries[index].value);
  }
  return result;
 },
 has: function has(name) {
  validateArgumentsLength(arguments.length, 1);
  var entries = getInternalParamsState(this).entries;
  var key = name + '';
  var index = 0;
  while (index < entries.length) {
   if (entries[index++].key === key)
    return true;
  }
  return false;
 },
 set: function set(name, value) {
  validateArgumentsLength(arguments.length, 1);
  var state = getInternalParamsState(this);
  var entries = state.entries;
  var found = false;
  var key = name + '';
  var val = value + '';
  var index = 0;
  var entry;
  for (; index < entries.length; index++) {
   entry = entries[index];
   if (entry.key === key) {
    if (found)
     entries.splice(index--, 1);
    else {
     found = true;
     entry.value = val;
    }
   }
  }
  if (!found)
   entries.push({
    key: key,
    value: val
   });
  state.updateURL();
 },
 sort: function sort() {
  var state = getInternalParamsState(this);
  var entries = state.entries;
  var slice = entries.slice();
  var entry, entriesIndex, sliceIndex;
  entries.length = 0;
  for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {
   entry = slice[sliceIndex];
   for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {
    if (entries[entriesIndex].key > entry.key) {
     entries.splice(entriesIndex, 0, entry);
     break;
    }
   }
   if (entriesIndex === sliceIndex)
    entries.push(entry);
  }
  state.updateURL();
 },
 forEach: function forEach(callback) {
  var entries = getInternalParamsState(this).entries;
  var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);
  var index = 0;
  var entry;
  while (index < entries.length) {
   entry = entries[index++];
   boundFunction(entry.value, entry.key, this);
  }
 },
 keys: function keys() {
  return new URLSearchParamsIterator(this, 'keys');
 },
 values: function values() {
  return new URLSearchParamsIterator(this, 'values');
 },
 entries: function entries() {
  return new URLSearchParamsIterator(this, 'entries');
 }
}, { enumerable: true });
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);
redefine(URLSearchParamsPrototype, 'toString', function toString() {
 var entries = getInternalParamsState(this).entries;
 var result = [];
 var index = 0;
 var entry;
 while (index < entries.length) {
  entry = entries[index++];
  result.push(serialize(entry.key) + '=' + serialize(entry.value));
 }
 return result.join('&');
}, { enumerable: true });
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
$({
 global: true,
 forced: !USE_NATIVE_URL
}, { URLSearchParams: URLSearchParamsConstructor });
if (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'function') {
 $({
  global: true,
  enumerable: true,
  forced: true
 }, {
  fetch: function fetch(input) {
   var args = [input];
   var init, body, headers;
   if (arguments.length > 1) {
    init = arguments[1];
    if (isObject(init)) {
     body = init.body;
     if (classof(body) === URL_SEARCH_PARAMS) {
      headers = init.headers ? new Headers(init.headers) : new Headers();
      if (!headers.has('content-type')) {
       headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
      }
      init = create(init, {
       body: createPropertyDescriptor(0, String(body)),
       headers: createPropertyDescriptor(0, headers)
      });
     }
    }
    args.push(init);
   }
   return $fetch.apply(this, args);
  }
 });
}
module.exports = {
 URLSearchParams: URLSearchParamsConstructor,
 getState: getInternalParamsState
};

/***/ }),
/* 143 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var anObject = __w_pdfjs_require__(28);
var getIteratorMethod = __w_pdfjs_require__(94);
module.exports = function (it) {
 var iteratorMethod = getIteratorMethod(it);
 if (typeof iteratorMethod != 'function') {
  throw TypeError(String(it) + ' is not iterable');
 }
 return anObject(iteratorMethod.call(it));
};

/***/ }),
/* 144 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
$({
 target: 'URL',
 proto: true,
 enumerable: true
}, {
 toJSON: function toJSON() {
  return URL.prototype.toString.call(this);
 }
});

/***/ }),
/* 145 */
/***/ (function(module, exports, __w_pdfjs_require__) {

(function (global, factory) {
  true ? factory(exports) : undefined;
}(this, function (exports) {
 'use strict';
 var SymbolPolyfill = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol : function (description) {
  return "Symbol(" + description + ")";
 };
 function noop() {
 }
 var NumberIsNaN = Number.isNaN || function (x) {
  return x !== x;
 };
 var rethrowAssertionErrorRejection = noop;
 function typeIsObject(x) {
  return typeof x === 'object' && x !== null || typeof x === 'function';
 }
 function createArrayFromList(elements) {
  return elements.slice();
 }
 function ArrayBufferCopy(dest, destOffset, src, srcOffset, n) {
  new Uint8Array(dest).set(new Uint8Array(src, srcOffset, n), destOffset);
 }
 function IsFiniteNonNegativeNumber(v) {
  if (IsNonNegativeNumber(v) === false) {
   return false;
  }
  if (v === Infinity) {
   return false;
  }
  return true;
 }
 function IsNonNegativeNumber(v) {
  if (typeof v !== 'number') {
   return false;
  }
  if (NumberIsNaN(v)) {
   return false;
  }
  if (v < 0) {
   return false;
  }
  return true;
 }
 function Call(F, V, args) {
  if (typeof F !== 'function') {
   throw new TypeError('Argument is not a function');
  }
  return Function.prototype.apply.call(F, V, args);
 }
 function CreateAlgorithmFromUnderlyingMethod(underlyingObject, methodName, algoArgCount, extraArgs) {
  var method = underlyingObject[methodName];
  if (method !== undefined) {
   if (typeof method !== 'function') {
    throw new TypeError(method + " is not a method");
   }
   switch (algoArgCount) {
   case 0: {
     return function () {
      return PromiseCall(method, underlyingObject, extraArgs);
     };
    }
   case 1: {
     return function (arg) {
      var fullArgs = [arg].concat(extraArgs);
      return PromiseCall(method, underlyingObject, fullArgs);
     };
    }
   }
  }
  return function () {
   return promiseResolvedWith(undefined);
  };
 }
 function InvokeOrNoop(O, P, args) {
  var method = O[P];
  if (method === undefined) {
   return undefined;
  }
  return Call(method, O, args);
 }
 function PromiseCall(F, V, args) {
  try {
   return promiseResolvedWith(Call(F, V, args));
  } catch (value) {
   return promiseRejectedWith(value);
  }
 }
 function TransferArrayBuffer(O) {
  return O;
 }
 function IsDetachedBuffer(O) {
  return false;
 }
 function ValidateAndNormalizeHighWaterMark(highWaterMark) {
  highWaterMark = Number(highWaterMark);
  if (NumberIsNaN(highWaterMark) || highWaterMark < 0) {
   throw new RangeError('highWaterMark property of a queuing strategy must be non-negative and non-NaN');
  }
  return highWaterMark;
 }
 function MakeSizeAlgorithmFromSizeFunction(size) {
  if (size === undefined) {
   return function () {
    return 1;
   };
  }
  if (typeof size !== 'function') {
   throw new TypeError('size property of a queuing strategy must be a function');
  }
  return function (chunk) {
   return size(chunk);
  };
 }
 var originalPromise = Promise;
 var originalPromiseThen = Promise.prototype.then;
 var originalPromiseResolve = Promise.resolve.bind(originalPromise);
 var originalPromiseReject = Promise.reject.bind(originalPromise);
 function newPromise(executor) {
  return new originalPromise(executor);
 }
 function promiseResolvedWith(value) {
  return originalPromiseResolve(value);
 }
 function promiseRejectedWith(reason) {
  return originalPromiseReject(reason);
 }
 function PerformPromiseThen(promise, onFulfilled, onRejected) {
  return originalPromiseThen.call(promise, onFulfilled, onRejected);
 }
 function uponPromise(promise, onFulfilled, onRejected) {
  PerformPromiseThen(PerformPromiseThen(promise, onFulfilled, onRejected), undefined, rethrowAssertionErrorRejection);
 }
 function uponFulfillment(promise, onFulfilled) {
  uponPromise(promise, onFulfilled);
 }
 function uponRejection(promise, onRejected) {
  uponPromise(promise, undefined, onRejected);
 }
 function transformPromiseWith(promise, fulfillmentHandler, rejectionHandler) {
  return PerformPromiseThen(promise, fulfillmentHandler, rejectionHandler);
 }
 function setPromiseIsHandledToTrue(promise) {
  PerformPromiseThen(promise, undefined, rethrowAssertionErrorRejection);
 }
 var QUEUE_MAX_ARRAY_SIZE = 16384;
 var SimpleQueue = function () {
  function SimpleQueue() {
   this._cursor = 0;
   this._size = 0;
   this._front = {
    _elements: [],
    _next: undefined
   };
   this._back = this._front;
   this._cursor = 0;
   this._size = 0;
  }
  Object.defineProperty(SimpleQueue.prototype, "length", {
   get: function () {
    return this._size;
   },
   enumerable: true,
   configurable: true
  });
  SimpleQueue.prototype.push = function (element) {
   var oldBack = this._back;
   var newBack = oldBack;
   if (oldBack._elements.length === QUEUE_MAX_ARRAY_SIZE - 1) {
    newBack = {
     _elements: [],
     _next: undefined
    };
   }
   oldBack._elements.push(element);
   if (newBack !== oldBack) {
    this._back = newBack;
    oldBack._next = newBack;
   }
   ++this._size;
  };
  SimpleQueue.prototype.shift = function () {
   var oldFront = this._front;
   var newFront = oldFront;
   var oldCursor = this._cursor;
   var newCursor = oldCursor + 1;
   var elements = oldFront._elements;
   var element = elements[oldCursor];
   if (newCursor === QUEUE_MAX_ARRAY_SIZE) {
    newFront = oldFront._next;
    newCursor = 0;
   }
   --this._size;
   this._cursor = newCursor;
   if (oldFront !== newFront) {
    this._front = newFront;
   }
   elements[oldCursor] = undefined;
   return element;
  };
  SimpleQueue.prototype.forEach = function (callback) {
   var i = this._cursor;
   var node = this._front;
   var elements = node._elements;
   while (i !== elements.length || node._next !== undefined) {
    if (i === elements.length) {
     node = node._next;
     elements = node._elements;
     i = 0;
     if (elements.length === 0) {
      break;
     }
    }
    callback(elements[i]);
    ++i;
   }
  };
  SimpleQueue.prototype.peek = function () {
   var front = this._front;
   var cursor = this._cursor;
   return front._elements[cursor];
  };
  return SimpleQueue;
 }();
 function ReadableStreamCreateReadResult(value, done, forAuthorCode) {
  var prototype = null;
  if (forAuthorCode === true) {
   prototype = Object.prototype;
  }
  var obj = Object.create(prototype);
  obj.value = value;
  obj.done = done;
  return obj;
 }
 function ReadableStreamReaderGenericInitialize(reader, stream) {
  reader._forAuthorCode = true;
  reader._ownerReadableStream = stream;
  stream._reader = reader;
  if (stream._state === 'readable') {
   defaultReaderClosedPromiseInitialize(reader);
  } else if (stream._state === 'closed') {
   defaultReaderClosedPromiseInitializeAsResolved(reader);
  } else {
   defaultReaderClosedPromiseInitializeAsRejected(reader, stream._storedError);
  }
 }
 function ReadableStreamReaderGenericCancel(reader, reason) {
  var stream = reader._ownerReadableStream;
  return ReadableStreamCancel(stream, reason);
 }
 function ReadableStreamReaderGenericRelease(reader) {
  if (reader._ownerReadableStream._state === 'readable') {
   defaultReaderClosedPromiseReject(reader, new TypeError('Reader was released and can no longer be used to monitor the stream\'s closedness'));
  } else {
   defaultReaderClosedPromiseResetToRejected(reader, new TypeError('Reader was released and can no longer be used to monitor the stream\'s closedness'));
  }
  reader._ownerReadableStream._reader = undefined;
  reader._ownerReadableStream = undefined;
 }
 function readerLockException(name) {
  return new TypeError('Cannot ' + name + ' a stream using a released reader');
 }
 function defaultReaderClosedPromiseInitialize(reader) {
  reader._closedPromise = newPromise(function (resolve, reject) {
   reader._closedPromise_resolve = resolve;
   reader._closedPromise_reject = reject;
  });
 }
 function defaultReaderClosedPromiseInitializeAsRejected(reader, reason) {
  defaultReaderClosedPromiseInitialize(reader);
  defaultReaderClosedPromiseReject(reader, reason);
 }
 function defaultReaderClosedPromiseInitializeAsResolved(reader) {
  defaultReaderClosedPromiseInitialize(reader);
  defaultReaderClosedPromiseResolve(reader);
 }
 function defaultReaderClosedPromiseReject(reader, reason) {
  setPromiseIsHandledToTrue(reader._closedPromise);
  reader._closedPromise_reject(reason);
  reader._closedPromise_resolve = undefined;
  reader._closedPromise_reject = undefined;
 }
 function defaultReaderClosedPromiseResetToRejected(reader, reason) {
  defaultReaderClosedPromiseInitializeAsRejected(reader, reason);
 }
 function defaultReaderClosedPromiseResolve(reader) {
  reader._closedPromise_resolve(undefined);
  reader._closedPromise_resolve = undefined;
  reader._closedPromise_reject = undefined;
 }
 var CancelSteps = SymbolPolyfill('[[CancelSteps]]');
 var PullSteps = SymbolPolyfill('[[PullSteps]]');
 function AcquireReadableStreamDefaultReader(stream, forAuthorCode) {
  if (forAuthorCode === void 0) {
   forAuthorCode = false;
  }
  var reader = new ReadableStreamDefaultReader(stream);
  reader._forAuthorCode = forAuthorCode;
  return reader;
 }
 function ReadableStreamAddReadRequest(stream) {
  var promise = newPromise(function (resolve, reject) {
   var readRequest = {
    _resolve: resolve,
    _reject: reject
   };
   stream._reader._readRequests.push(readRequest);
  });
  return promise;
 }
 function ReadableStreamFulfillReadRequest(stream, chunk, done) {
  var reader = stream._reader;
  var readRequest = reader._readRequests.shift();
  readRequest._resolve(ReadableStreamCreateReadResult(chunk, done, reader._forAuthorCode));
 }
 function ReadableStreamGetNumReadRequests(stream) {
  return stream._reader._readRequests.length;
 }
 function ReadableStreamHasDefaultReader(stream) {
  var reader = stream._reader;
  if (reader === undefined) {
   return false;
  }
  if (!IsReadableStreamDefaultReader(reader)) {
   return false;
  }
  return true;
 }
 var ReadableStreamDefaultReader = function () {
  function ReadableStreamDefaultReader(stream) {
   if (IsReadableStream(stream) === false) {
    throw new TypeError('ReadableStreamDefaultReader can only be constructed with a ReadableStream instance');
   }
   if (IsReadableStreamLocked(stream) === true) {
    throw new TypeError('This stream has already been locked for exclusive reading by another reader');
   }
   ReadableStreamReaderGenericInitialize(this, stream);
   this._readRequests = new SimpleQueue();
  }
  Object.defineProperty(ReadableStreamDefaultReader.prototype, "closed", {
   get: function () {
    if (!IsReadableStreamDefaultReader(this)) {
     return promiseRejectedWith(defaultReaderBrandCheckException('closed'));
    }
    return this._closedPromise;
   },
   enumerable: true,
   configurable: true
  });
  ReadableStreamDefaultReader.prototype.cancel = function (reason) {
   if (!IsReadableStreamDefaultReader(this)) {
    return promiseRejectedWith(defaultReaderBrandCheckException('cancel'));
   }
   if (this._ownerReadableStream === undefined) {
    return promiseRejectedWith(readerLockException('cancel'));
   }
   return ReadableStreamReaderGenericCancel(this, reason);
  };
  ReadableStreamDefaultReader.prototype.read = function () {
   if (!IsReadableStreamDefaultReader(this)) {
    return promiseRejectedWith(defaultReaderBrandCheckException('read'));
   }
   if (this._ownerReadableStream === undefined) {
    return promiseRejectedWith(readerLockException('read from'));
   }
   return ReadableStreamDefaultReaderRead(this);
  };
  ReadableStreamDefaultReader.prototype.releaseLock = function () {
   if (!IsReadableStreamDefaultReader(this)) {
    throw defaultReaderBrandCheckException('releaseLock');
   }
   if (this._ownerReadableStream === undefined) {
    return;
   }
   if (this._readRequests.length > 0) {
    throw new TypeError('Tried to release a reader lock when that reader has pending read() calls un-settled');
   }
   ReadableStreamReaderGenericRelease(this);
  };
  return ReadableStreamDefaultReader;
 }();
 function IsReadableStreamDefaultReader(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_readRequests')) {
   return false;
  }
  return true;
 }
 function ReadableStreamDefaultReaderRead(reader) {
  var stream = reader._ownerReadableStream;
  stream._disturbed = true;
  if (stream._state === 'closed') {
   return promiseResolvedWith(ReadableStreamCreateReadResult(undefined, true, reader._forAuthorCode));
  }
  if (stream._state === 'errored') {
   return promiseRejectedWith(stream._storedError);
  }
  return stream._readableStreamController[PullSteps]();
 }
 function defaultReaderBrandCheckException(name) {
  return new TypeError("ReadableStreamDefaultReader.prototype." + name + " can only be used on a ReadableStreamDefaultReader");
 }
 var _a;
 var AsyncIteratorPrototype;
 if (typeof SymbolPolyfill.asyncIterator === 'symbol') {
  AsyncIteratorPrototype = (_a = {}, _a[SymbolPolyfill.asyncIterator] = function () {
   return this;
  }, _a);
  Object.defineProperty(AsyncIteratorPrototype, SymbolPolyfill.asyncIterator, { enumerable: false });
 }
 var ReadableStreamAsyncIteratorPrototype = {
  next: function () {
   if (IsReadableStreamAsyncIterator(this) === false) {
    return promiseRejectedWith(streamAsyncIteratorBrandCheckException('next'));
   }
   var reader = this._asyncIteratorReader;
   if (reader._ownerReadableStream === undefined) {
    return promiseRejectedWith(readerLockException('iterate'));
   }
   return transformPromiseWith(ReadableStreamDefaultReaderRead(reader), function (result) {
    var done = result.done;
    if (done) {
     ReadableStreamReaderGenericRelease(reader);
    }
    var value = result.value;
    return ReadableStreamCreateReadResult(value, done, true);
   });
  },
  return: function (value) {
   if (IsReadableStreamAsyncIterator(this) === false) {
    return promiseRejectedWith(streamAsyncIteratorBrandCheckException('next'));
   }
   var reader = this._asyncIteratorReader;
   if (reader._ownerReadableStream === undefined) {
    return promiseRejectedWith(readerLockException('finish iterating'));
   }
   if (reader._readRequests.length > 0) {
    return promiseRejectedWith(new TypeError('Tried to release a reader lock when that reader has pending read() calls un-settled'));
   }
   if (this._preventCancel === false) {
    var result = ReadableStreamReaderGenericCancel(reader, value);
    ReadableStreamReaderGenericRelease(reader);
    return transformPromiseWith(result, function () {
     return ReadableStreamCreateReadResult(value, true, true);
    });
   }
   ReadableStreamReaderGenericRelease(reader);
   return promiseResolvedWith(ReadableStreamCreateReadResult(value, true, true));
  }
 };
 if (AsyncIteratorPrototype !== undefined) {
  Object.setPrototypeOf(ReadableStreamAsyncIteratorPrototype, AsyncIteratorPrototype);
 }
 Object.defineProperty(ReadableStreamAsyncIteratorPrototype, 'next', { enumerable: false });
 Object.defineProperty(ReadableStreamAsyncIteratorPrototype, 'return', { enumerable: false });
 function AcquireReadableStreamAsyncIterator(stream, preventCancel) {
  if (preventCancel === void 0) {
   preventCancel = false;
  }
  var reader = AcquireReadableStreamDefaultReader(stream);
  var iterator = Object.create(ReadableStreamAsyncIteratorPrototype);
  iterator._asyncIteratorReader = reader;
  iterator._preventCancel = Boolean(preventCancel);
  return iterator;
 }
 function IsReadableStreamAsyncIterator(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_asyncIteratorReader')) {
   return false;
  }
  return true;
 }
 function streamAsyncIteratorBrandCheckException(name) {
  return new TypeError("ReadableStreamAsyncIterator." + name + " can only be used on a ReadableSteamAsyncIterator");
 }
 function DequeueValue(container) {
  var pair = container._queue.shift();
  container._queueTotalSize -= pair.size;
  if (container._queueTotalSize < 0) {
   container._queueTotalSize = 0;
  }
  return pair.value;
 }
 function EnqueueValueWithSize(container, value, size) {
  size = Number(size);
  if (!IsFiniteNonNegativeNumber(size)) {
   throw new RangeError('Size must be a finite, non-NaN, non-negative number.');
  }
  container._queue.push({
   value: value,
   size: size
  });
  container._queueTotalSize += size;
 }
 function PeekQueueValue(container) {
  var pair = container._queue.peek();
  return pair.value;
 }
 function ResetQueue(container) {
  container._queue = new SimpleQueue();
  container._queueTotalSize = 0;
 }
 var AbortSteps = SymbolPolyfill('[[AbortSteps]]');
 var ErrorSteps = SymbolPolyfill('[[ErrorSteps]]');
 var WritableStream = function () {
  function WritableStream(underlyingSink, strategy) {
   if (underlyingSink === void 0) {
    underlyingSink = {};
   }
   if (strategy === void 0) {
    strategy = {};
   }
   InitializeWritableStream(this);
   var size = strategy.size;
   var highWaterMark = strategy.highWaterMark;
   var type = underlyingSink.type;
   if (type !== undefined) {
    throw new RangeError('Invalid type is specified');
   }
   var sizeAlgorithm = MakeSizeAlgorithmFromSizeFunction(size);
   if (highWaterMark === undefined) {
    highWaterMark = 1;
   }
   highWaterMark = ValidateAndNormalizeHighWaterMark(highWaterMark);
   SetUpWritableStreamDefaultControllerFromUnderlyingSink(this, underlyingSink, highWaterMark, sizeAlgorithm);
  }
  Object.defineProperty(WritableStream.prototype, "locked", {
   get: function () {
    if (IsWritableStream(this) === false) {
     throw streamBrandCheckException('locked');
    }
    return IsWritableStreamLocked(this);
   },
   enumerable: true,
   configurable: true
  });
  WritableStream.prototype.abort = function (reason) {
   if (IsWritableStream(this) === false) {
    return promiseRejectedWith(streamBrandCheckException('abort'));
   }
   if (IsWritableStreamLocked(this) === true) {
    return promiseRejectedWith(new TypeError('Cannot abort a stream that already has a writer'));
   }
   return WritableStreamAbort(this, reason);
  };
  WritableStream.prototype.close = function () {
   if (IsWritableStream(this) === false) {
    return promiseRejectedWith(streamBrandCheckException('close'));
   }
   if (IsWritableStreamLocked(this) === true) {
    return promiseRejectedWith(new TypeError('Cannot close a stream that already has a writer'));
   }
   if (WritableStreamCloseQueuedOrInFlight(this) === true) {
    return promiseRejectedWith(new TypeError('Cannot close an already-closing stream'));
   }
   return WritableStreamClose(this);
  };
  WritableStream.prototype.getWriter = function () {
   if (IsWritableStream(this) === false) {
    throw streamBrandCheckException('getWriter');
   }
   return AcquireWritableStreamDefaultWriter(this);
  };
  return WritableStream;
 }();
 function AcquireWritableStreamDefaultWriter(stream) {
  return new WritableStreamDefaultWriter(stream);
 }
 function CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm) {
  if (highWaterMark === void 0) {
   highWaterMark = 1;
  }
  if (sizeAlgorithm === void 0) {
   sizeAlgorithm = function () {
    return 1;
   };
  }
  var stream = Object.create(WritableStream.prototype);
  InitializeWritableStream(stream);
  var controller = Object.create(WritableStreamDefaultController.prototype);
  SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm);
  return stream;
 }
 function InitializeWritableStream(stream) {
  stream._state = 'writable';
  stream._storedError = undefined;
  stream._writer = undefined;
  stream._writableStreamController = undefined;
  stream._writeRequests = new SimpleQueue();
  stream._inFlightWriteRequest = undefined;
  stream._closeRequest = undefined;
  stream._inFlightCloseRequest = undefined;
  stream._pendingAbortRequest = undefined;
  stream._backpressure = false;
 }
 function IsWritableStream(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_writableStreamController')) {
   return false;
  }
  return true;
 }
 function IsWritableStreamLocked(stream) {
  if (stream._writer === undefined) {
   return false;
  }
  return true;
 }
 function WritableStreamAbort(stream, reason) {
  var state = stream._state;
  if (state === 'closed' || state === 'errored') {
   return promiseResolvedWith(undefined);
  }
  if (stream._pendingAbortRequest !== undefined) {
   return stream._pendingAbortRequest._promise;
  }
  var wasAlreadyErroring = false;
  if (state === 'erroring') {
   wasAlreadyErroring = true;
   reason = undefined;
  }
  var promise = newPromise(function (resolve, reject) {
   stream._pendingAbortRequest = {
    _promise: undefined,
    _resolve: resolve,
    _reject: reject,
    _reason: reason,
    _wasAlreadyErroring: wasAlreadyErroring
   };
  });
  stream._pendingAbortRequest._promise = promise;
  if (wasAlreadyErroring === false) {
   WritableStreamStartErroring(stream, reason);
  }
  return promise;
 }
 function WritableStreamClose(stream) {
  var state = stream._state;
  if (state === 'closed' || state === 'errored') {
   return promiseRejectedWith(new TypeError("The stream (in " + state + " state) is not in the writable state and cannot be closed"));
  }
  var promise = newPromise(function (resolve, reject) {
   var closeRequest = {
    _resolve: resolve,
    _reject: reject
   };
   stream._closeRequest = closeRequest;
  });
  var writer = stream._writer;
  if (writer !== undefined && stream._backpressure === true && state === 'writable') {
   defaultWriterReadyPromiseResolve(writer);
  }
  WritableStreamDefaultControllerClose(stream._writableStreamController);
  return promise;
 }
 function WritableStreamAddWriteRequest(stream) {
  var promise = newPromise(function (resolve, reject) {
   var writeRequest = {
    _resolve: resolve,
    _reject: reject
   };
   stream._writeRequests.push(writeRequest);
  });
  return promise;
 }
 function WritableStreamDealWithRejection(stream, error) {
  var state = stream._state;
  if (state === 'writable') {
   WritableStreamStartErroring(stream, error);
   return;
  }
  WritableStreamFinishErroring(stream);
 }
 function WritableStreamStartErroring(stream, reason) {
  var controller = stream._writableStreamController;
  stream._state = 'erroring';
  stream._storedError = reason;
  var writer = stream._writer;
  if (writer !== undefined) {
   WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, reason);
  }
  if (WritableStreamHasOperationMarkedInFlight(stream) === false && controller._started === true) {
   WritableStreamFinishErroring(stream);
  }
 }
 function WritableStreamFinishErroring(stream) {
  stream._state = 'errored';
  stream._writableStreamController[ErrorSteps]();
  var storedError = stream._storedError;
  stream._writeRequests.forEach(function (writeRequest) {
   writeRequest._reject(storedError);
  });
  stream._writeRequests = new SimpleQueue();
  if (stream._pendingAbortRequest === undefined) {
   WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);
   return;
  }
  var abortRequest = stream._pendingAbortRequest;
  stream._pendingAbortRequest = undefined;
  if (abortRequest._wasAlreadyErroring === true) {
   abortRequest._reject(storedError);
   WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);
   return;
  }
  var promise = stream._writableStreamController[AbortSteps](abortRequest._reason);
  uponPromise(promise, function () {
   abortRequest._resolve();
   WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);
  }, function (reason) {
   abortRequest._reject(reason);
   WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);
  });
 }
 function WritableStreamFinishInFlightWrite(stream) {
  stream._inFlightWriteRequest._resolve(undefined);
  stream._inFlightWriteRequest = undefined;
 }
 function WritableStreamFinishInFlightWriteWithError(stream, error) {
  stream._inFlightWriteRequest._reject(error);
  stream._inFlightWriteRequest = undefined;
  WritableStreamDealWithRejection(stream, error);
 }
 function WritableStreamFinishInFlightClose(stream) {
  stream._inFlightCloseRequest._resolve(undefined);
  stream._inFlightCloseRequest = undefined;
  var state = stream._state;
  if (state === 'erroring') {
   stream._storedError = undefined;
   if (stream._pendingAbortRequest !== undefined) {
    stream._pendingAbortRequest._resolve();
    stream._pendingAbortRequest = undefined;
   }
  }
  stream._state = 'closed';
  var writer = stream._writer;
  if (writer !== undefined) {
   defaultWriterClosedPromiseResolve(writer);
  }
 }
 function WritableStreamFinishInFlightCloseWithError(stream, error) {
  stream._inFlightCloseRequest._reject(error);
  stream._inFlightCloseRequest = undefined;
  if (stream._pendingAbortRequest !== undefined) {
   stream._pendingAbortRequest._reject(error);
   stream._pendingAbortRequest = undefined;
  }
  WritableStreamDealWithRejection(stream, error);
 }
 function WritableStreamCloseQueuedOrInFlight(stream) {
  if (stream._closeRequest === undefined && stream._inFlightCloseRequest === undefined) {
   return false;
  }
  return true;
 }
 function WritableStreamHasOperationMarkedInFlight(stream) {
  if (stream._inFlightWriteRequest === undefined && stream._inFlightCloseRequest === undefined) {
   return false;
  }
  return true;
 }
 function WritableStreamMarkCloseRequestInFlight(stream) {
  stream._inFlightCloseRequest = stream._closeRequest;
  stream._closeRequest = undefined;
 }
 function WritableStreamMarkFirstWriteRequestInFlight(stream) {
  stream._inFlightWriteRequest = stream._writeRequests.shift();
 }
 function WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream) {
  if (stream._closeRequest !== undefined) {
   stream._closeRequest._reject(stream._storedError);
   stream._closeRequest = undefined;
  }
  var writer = stream._writer;
  if (writer !== undefined) {
   defaultWriterClosedPromiseReject(writer, stream._storedError);
  }
 }
 function WritableStreamUpdateBackpressure(stream, backpressure) {
  var writer = stream._writer;
  if (writer !== undefined && backpressure !== stream._backpressure) {
   if (backpressure === true) {
    defaultWriterReadyPromiseReset(writer);
   } else {
    defaultWriterReadyPromiseResolve(writer);
   }
  }
  stream._backpressure = backpressure;
 }
 var WritableStreamDefaultWriter = function () {
  function WritableStreamDefaultWriter(stream) {
   if (IsWritableStream(stream) === false) {
    throw new TypeError('WritableStreamDefaultWriter can only be constructed with a WritableStream instance');
   }
   if (IsWritableStreamLocked(stream) === true) {
    throw new TypeError('This stream has already been locked for exclusive writing by another writer');
   }
   this._ownerWritableStream = stream;
   stream._writer = this;
   var state = stream._state;
   if (state === 'writable') {
    if (WritableStreamCloseQueuedOrInFlight(stream) === false && stream._backpressure === true) {
     defaultWriterReadyPromiseInitialize(this);
    } else {
     defaultWriterReadyPromiseInitializeAsResolved(this);
    }
    defaultWriterClosedPromiseInitialize(this);
   } else if (state === 'erroring') {
    defaultWriterReadyPromiseInitializeAsRejected(this, stream._storedError);
    defaultWriterClosedPromiseInitialize(this);
   } else if (state === 'closed') {
    defaultWriterReadyPromiseInitializeAsResolved(this);
    defaultWriterClosedPromiseInitializeAsResolved(this);
   } else {
    var storedError = stream._storedError;
    defaultWriterReadyPromiseInitializeAsRejected(this, storedError);
    defaultWriterClosedPromiseInitializeAsRejected(this, storedError);
   }
  }
  Object.defineProperty(WritableStreamDefaultWriter.prototype, "closed", {
   get: function () {
    if (IsWritableStreamDefaultWriter(this) === false) {
     return promiseRejectedWith(defaultWriterBrandCheckException('closed'));
    }
    return this._closedPromise;
   },
   enumerable: true,
   configurable: true
  });
  Object.defineProperty(WritableStreamDefaultWriter.prototype, "desiredSize", {
   get: function () {
    if (IsWritableStreamDefaultWriter(this) === false) {
     throw defaultWriterBrandCheckException('desiredSize');
    }
    if (this._ownerWritableStream === undefined) {
     throw defaultWriterLockException('desiredSize');
    }
    return WritableStreamDefaultWriterGetDesiredSize(this);
   },
   enumerable: true,
   configurable: true
  });
  Object.defineProperty(WritableStreamDefaultWriter.prototype, "ready", {
   get: function () {
    if (IsWritableStreamDefaultWriter(this) === false) {
     return promiseRejectedWith(defaultWriterBrandCheckException('ready'));
    }
    return this._readyPromise;
   },
   enumerable: true,
   configurable: true
  });
  WritableStreamDefaultWriter.prototype.abort = function (reason) {
   if (IsWritableStreamDefaultWriter(this) === false) {
    return promiseRejectedWith(defaultWriterBrandCheckException('abort'));
   }
   if (this._ownerWritableStream === undefined) {
    return promiseRejectedWith(defaultWriterLockException('abort'));
   }
   return WritableStreamDefaultWriterAbort(this, reason);
  };
  WritableStreamDefaultWriter.prototype.close = function () {
   if (IsWritableStreamDefaultWriter(this) === false) {
    return promiseRejectedWith(defaultWriterBrandCheckException('close'));
   }
   var stream = this._ownerWritableStream;
   if (stream === undefined) {
    return promiseRejectedWith(defaultWriterLockException('close'));
   }
   if (WritableStreamCloseQueuedOrInFlight(stream) === true) {
    return promiseRejectedWith(new TypeError('Cannot close an already-closing stream'));
   }
   return WritableStreamDefaultWriterClose(this);
  };
  WritableStreamDefaultWriter.prototype.releaseLock = function () {
   if (IsWritableStreamDefaultWriter(this) === false) {
    throw defaultWriterBrandCheckException('releaseLock');
   }
   var stream = this._ownerWritableStream;
   if (stream === undefined) {
    return;
   }
   WritableStreamDefaultWriterRelease(this);
  };
  WritableStreamDefaultWriter.prototype.write = function (chunk) {
   if (IsWritableStreamDefaultWriter(this) === false) {
    return promiseRejectedWith(defaultWriterBrandCheckException('write'));
   }
   if (this._ownerWritableStream === undefined) {
    return promiseRejectedWith(defaultWriterLockException('write to'));
   }
   return WritableStreamDefaultWriterWrite(this, chunk);
  };
  return WritableStreamDefaultWriter;
 }();
 function IsWritableStreamDefaultWriter(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_ownerWritableStream')) {
   return false;
  }
  return true;
 }
 function WritableStreamDefaultWriterAbort(writer, reason) {
  var stream = writer._ownerWritableStream;
  return WritableStreamAbort(stream, reason);
 }
 function WritableStreamDefaultWriterClose(writer) {
  var stream = writer._ownerWritableStream;
  return WritableStreamClose(stream);
 }
 function WritableStreamDefaultWriterCloseWithErrorPropagation(writer) {
  var stream = writer._ownerWritableStream;
  var state = stream._state;
  if (WritableStreamCloseQueuedOrInFlight(stream) === true || state === 'closed') {
   return promiseResolvedWith(undefined);
  }
  if (state === 'errored') {
   return promiseRejectedWith(stream._storedError);
  }
  return WritableStreamDefaultWriterClose(writer);
 }
 function WritableStreamDefaultWriterEnsureClosedPromiseRejected(writer, error) {
  if (writer._closedPromiseState === 'pending') {
   defaultWriterClosedPromiseReject(writer, error);
  } else {
   defaultWriterClosedPromiseResetToRejected(writer, error);
  }
 }
 function WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, error) {
  if (writer._readyPromiseState === 'pending') {
   defaultWriterReadyPromiseReject(writer, error);
  } else {
   defaultWriterReadyPromiseResetToRejected(writer, error);
  }
 }
 function WritableStreamDefaultWriterGetDesiredSize(writer) {
  var stream = writer._ownerWritableStream;
  var state = stream._state;
  if (state === 'errored' || state === 'erroring') {
   return null;
  }
  if (state === 'closed') {
   return 0;
  }
  return WritableStreamDefaultControllerGetDesiredSize(stream._writableStreamController);
 }
 function WritableStreamDefaultWriterRelease(writer) {
  var stream = writer._ownerWritableStream;
  var releasedError = new TypeError('Writer was released and can no longer be used to monitor the stream\'s closedness');
  WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, releasedError);
  WritableStreamDefaultWriterEnsureClosedPromiseRejected(writer, releasedError);
  stream._writer = undefined;
  writer._ownerWritableStream = undefined;
 }
 function WritableStreamDefaultWriterWrite(writer, chunk) {
  var stream = writer._ownerWritableStream;
  var controller = stream._writableStreamController;
  var chunkSize = WritableStreamDefaultControllerGetChunkSize(controller, chunk);
  if (stream !== writer._ownerWritableStream) {
   return promiseRejectedWith(defaultWriterLockException('write to'));
  }
  var state = stream._state;
  if (state === 'errored') {
   return promiseRejectedWith(stream._storedError);
  }
  if (WritableStreamCloseQueuedOrInFlight(stream) === true || state === 'closed') {
   return promiseRejectedWith(new TypeError('The stream is closing or closed and cannot be written to'));
  }
  if (state === 'erroring') {
   return promiseRejectedWith(stream._storedError);
  }
  var promise = WritableStreamAddWriteRequest(stream);
  WritableStreamDefaultControllerWrite(controller, chunk, chunkSize);
  return promise;
 }
 var WritableStreamDefaultController = function () {
  function WritableStreamDefaultController() {
   throw new TypeError('WritableStreamDefaultController cannot be constructed explicitly');
  }
  WritableStreamDefaultController.prototype.error = function (e) {
   if (IsWritableStreamDefaultController(this) === false) {
    throw new TypeError('WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController');
   }
   var state = this._controlledWritableStream._state;
   if (state !== 'writable') {
    return;
   }
   WritableStreamDefaultControllerError(this, e);
  };
  WritableStreamDefaultController.prototype[AbortSteps] = function (reason) {
   var result = this._abortAlgorithm(reason);
   WritableStreamDefaultControllerClearAlgorithms(this);
   return result;
  };
  WritableStreamDefaultController.prototype[ErrorSteps] = function () {
   ResetQueue(this);
  };
  return WritableStreamDefaultController;
 }();
 function IsWritableStreamDefaultController(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_controlledWritableStream')) {
   return false;
  }
  return true;
 }
 function SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm) {
  controller._controlledWritableStream = stream;
  stream._writableStreamController = controller;
  controller._queue = undefined;
  controller._queueTotalSize = undefined;
  ResetQueue(controller);
  controller._started = false;
  controller._strategySizeAlgorithm = sizeAlgorithm;
  controller._strategyHWM = highWaterMark;
  controller._writeAlgorithm = writeAlgorithm;
  controller._closeAlgorithm = closeAlgorithm;
  controller._abortAlgorithm = abortAlgorithm;
  var backpressure = WritableStreamDefaultControllerGetBackpressure(controller);
  WritableStreamUpdateBackpressure(stream, backpressure);
  var startResult = startAlgorithm();
  var startPromise = promiseResolvedWith(startResult);
  uponPromise(startPromise, function () {
   controller._started = true;
   WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);
  }, function (r) {
   controller._started = true;
   WritableStreamDealWithRejection(stream, r);
  });
 }
 function SetUpWritableStreamDefaultControllerFromUnderlyingSink(stream, underlyingSink, highWaterMark, sizeAlgorithm) {
  var controller = Object.create(WritableStreamDefaultController.prototype);
  function startAlgorithm() {
   return InvokeOrNoop(underlyingSink, 'start', [controller]);
  }
  var writeAlgorithm = CreateAlgorithmFromUnderlyingMethod(underlyingSink, 'write', 1, [controller]);
  var closeAlgorithm = CreateAlgorithmFromUnderlyingMethod(underlyingSink, 'close', 0, []);
  var abortAlgorithm = CreateAlgorithmFromUnderlyingMethod(underlyingSink, 'abort', 1, []);
  SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm);
 }
 function WritableStreamDefaultControllerClearAlgorithms(controller) {
  controller._writeAlgorithm = undefined;
  controller._closeAlgorithm = undefined;
  controller._abortAlgorithm = undefined;
  controller._strategySizeAlgorithm = undefined;
 }
 function WritableStreamDefaultControllerClose(controller) {
  EnqueueValueWithSize(controller, 'close', 0);
  WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);
 }
 function WritableStreamDefaultControllerGetChunkSize(controller, chunk) {
  try {
   return controller._strategySizeAlgorithm(chunk);
  } catch (chunkSizeE) {
   WritableStreamDefaultControllerErrorIfNeeded(controller, chunkSizeE);
   return 1;
  }
 }
 function WritableStreamDefaultControllerGetDesiredSize(controller) {
  return controller._strategyHWM - controller._queueTotalSize;
 }
 function WritableStreamDefaultControllerWrite(controller, chunk, chunkSize) {
  var writeRecord = { chunk: chunk };
  try {
   EnqueueValueWithSize(controller, writeRecord, chunkSize);
  } catch (enqueueE) {
   WritableStreamDefaultControllerErrorIfNeeded(controller, enqueueE);
   return;
  }
  var stream = controller._controlledWritableStream;
  if (WritableStreamCloseQueuedOrInFlight(stream) === false && stream._state === 'writable') {
   var backpressure = WritableStreamDefaultControllerGetBackpressure(controller);
   WritableStreamUpdateBackpressure(stream, backpressure);
  }
  WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);
 }
 function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller) {
  var stream = controller._controlledWritableStream;
  if (controller._started === false) {
   return;
  }
  if (stream._inFlightWriteRequest !== undefined) {
   return;
  }
  var state = stream._state;
  if (state === 'erroring') {
   WritableStreamFinishErroring(stream);
   return;
  }
  if (controller._queue.length === 0) {
   return;
  }
  var writeRecord = PeekQueueValue(controller);
  if (writeRecord === 'close') {
   WritableStreamDefaultControllerProcessClose(controller);
  } else {
   WritableStreamDefaultControllerProcessWrite(controller, writeRecord.chunk);
  }
 }
 function WritableStreamDefaultControllerErrorIfNeeded(controller, error) {
  if (controller._controlledWritableStream._state === 'writable') {
   WritableStreamDefaultControllerError(controller, error);
  }
 }
 function WritableStreamDefaultControllerProcessClose(controller) {
  var stream = controller._controlledWritableStream;
  WritableStreamMarkCloseRequestInFlight(stream);
  DequeueValue(controller);
  var sinkClosePromise = controller._closeAlgorithm();
  WritableStreamDefaultControllerClearAlgorithms(controller);
  uponPromise(sinkClosePromise, function () {
   WritableStreamFinishInFlightClose(stream);
  }, function (reason) {
   WritableStreamFinishInFlightCloseWithError(stream, reason);
  });
 }
 function WritableStreamDefaultControllerProcessWrite(controller, chunk) {
  var stream = controller._controlledWritableStream;
  WritableStreamMarkFirstWriteRequestInFlight(stream);
  var sinkWritePromise = controller._writeAlgorithm(chunk);
  uponPromise(sinkWritePromise, function () {
   WritableStreamFinishInFlightWrite(stream);
   var state = stream._state;
   DequeueValue(controller);
   if (WritableStreamCloseQueuedOrInFlight(stream) === false && state === 'writable') {
    var backpressure = WritableStreamDefaultControllerGetBackpressure(controller);
    WritableStreamUpdateBackpressure(stream, backpressure);
   }
   WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);
  }, function (reason) {
   if (stream._state === 'writable') {
    WritableStreamDefaultControllerClearAlgorithms(controller);
   }
   WritableStreamFinishInFlightWriteWithError(stream, reason);
  });
 }
 function WritableStreamDefaultControllerGetBackpressure(controller) {
  var desiredSize = WritableStreamDefaultControllerGetDesiredSize(controller);
  return desiredSize <= 0;
 }
 function WritableStreamDefaultControllerError(controller, error) {
  var stream = controller._controlledWritableStream;
  WritableStreamDefaultControllerClearAlgorithms(controller);
  WritableStreamStartErroring(stream, error);
 }
 function streamBrandCheckException(name) {
  return new TypeError("WritableStream.prototype." + name + " can only be used on a WritableStream");
 }
 function defaultWriterBrandCheckException(name) {
  return new TypeError("WritableStreamDefaultWriter.prototype." + name + " can only be used on a WritableStreamDefaultWriter");
 }
 function defaultWriterLockException(name) {
  return new TypeError('Cannot ' + name + ' a stream using a released writer');
 }
 function defaultWriterClosedPromiseInitialize(writer) {
  writer._closedPromise = newPromise(function (resolve, reject) {
   writer._closedPromise_resolve = resolve;
   writer._closedPromise_reject = reject;
   writer._closedPromiseState = 'pending';
  });
 }
 function defaultWriterClosedPromiseInitializeAsRejected(writer, reason) {
  defaultWriterClosedPromiseInitialize(writer);
  defaultWriterClosedPromiseReject(writer, reason);
 }
 function defaultWriterClosedPromiseInitializeAsResolved(writer) {
  defaultWriterClosedPromiseInitialize(writer);
  defaultWriterClosedPromiseResolve(writer);
 }
 function defaultWriterClosedPromiseReject(writer, reason) {
  setPromiseIsHandledToTrue(writer._closedPromise);
  writer._closedPromise_reject(reason);
  writer._closedPromise_resolve = undefined;
  writer._closedPromise_reject = undefined;
  writer._closedPromiseState = 'rejected';
 }
 function defaultWriterClosedPromiseResetToRejected(writer, reason) {
  defaultWriterClosedPromiseInitializeAsRejected(writer, reason);
 }
 function defaultWriterClosedPromiseResolve(writer) {
  writer._closedPromise_resolve(undefined);
  writer._closedPromise_resolve = undefined;
  writer._closedPromise_reject = undefined;
  writer._closedPromiseState = 'resolved';
 }
 function defaultWriterReadyPromiseInitialize(writer) {
  writer._readyPromise = newPromise(function (resolve, reject) {
   writer._readyPromise_resolve = resolve;
   writer._readyPromise_reject = reject;
  });
  writer._readyPromiseState = 'pending';
 }
 function defaultWriterReadyPromiseInitializeAsRejected(writer, reason) {
  defaultWriterReadyPromiseInitialize(writer);
  defaultWriterReadyPromiseReject(writer, reason);
 }
 function defaultWriterReadyPromiseInitializeAsResolved(writer) {
  defaultWriterReadyPromiseInitialize(writer);
  defaultWriterReadyPromiseResolve(writer);
 }
 function defaultWriterReadyPromiseReject(writer, reason) {
  setPromiseIsHandledToTrue(writer._readyPromise);
  writer._readyPromise_reject(reason);
  writer._readyPromise_resolve = undefined;
  writer._readyPromise_reject = undefined;
  writer._readyPromiseState = 'rejected';
 }
 function defaultWriterReadyPromiseReset(writer) {
  defaultWriterReadyPromiseInitialize(writer);
 }
 function defaultWriterReadyPromiseResetToRejected(writer, reason) {
  defaultWriterReadyPromiseInitializeAsRejected(writer, reason);
 }
 function defaultWriterReadyPromiseResolve(writer) {
  writer._readyPromise_resolve(undefined);
  writer._readyPromise_resolve = undefined;
  writer._readyPromise_reject = undefined;
  writer._readyPromiseState = 'fulfilled';
 }
 function isAbortSignal(value) {
  if (typeof value !== 'object' || value === null) {
   return false;
  }
  try {
   return typeof value.aborted === 'boolean';
  } catch (_a) {
   return false;
  }
 }
 var NativeDOMException = typeof DOMException !== 'undefined' ? DOMException : undefined;
 function isDOMExceptionConstructor(ctor) {
  if (!(typeof ctor === 'function' || typeof ctor === 'object')) {
   return false;
  }
  try {
   new ctor();
   return true;
  } catch (_a) {
   return false;
  }
 }
 function createDOMExceptionPolyfill() {
  var ctor = function DOMException(message, name) {
   this.message = message || '';
   this.name = name || 'Error';
   if (Error.captureStackTrace) {
    Error.captureStackTrace(this, this.constructor);
   }
  };
  ctor.prototype = Object.create(Error.prototype);
  Object.defineProperty(ctor.prototype, 'constructor', {
   value: ctor,
   writable: true,
   configurable: true
  });
  return ctor;
 }
 var DOMException$1 = isDOMExceptionConstructor(NativeDOMException) ? NativeDOMException : createDOMExceptionPolyfill();
 function ReadableStreamPipeTo(source, dest, preventClose, preventAbort, preventCancel, signal) {
  var reader = AcquireReadableStreamDefaultReader(source);
  var writer = AcquireWritableStreamDefaultWriter(dest);
  source._disturbed = true;
  var shuttingDown = false;
  var currentWrite = promiseResolvedWith(undefined);
  return newPromise(function (resolve, reject) {
   var abortAlgorithm;
   if (signal !== undefined) {
    abortAlgorithm = function () {
     var error = new DOMException$1('Aborted', 'AbortError');
     var actions = [];
     if (preventAbort === false) {
      actions.push(function () {
       if (dest._state === 'writable') {
        return WritableStreamAbort(dest, error);
       }
       return promiseResolvedWith(undefined);
      });
     }
     if (preventCancel === false) {
      actions.push(function () {
       if (source._state === 'readable') {
        return ReadableStreamCancel(source, error);
       }
       return promiseResolvedWith(undefined);
      });
     }
     shutdownWithAction(function () {
      return Promise.all(actions.map(function (action) {
       return action();
      }));
     }, true, error);
    };
    if (signal.aborted === true) {
     abortAlgorithm();
     return;
    }
    signal.addEventListener('abort', abortAlgorithm);
   }
   function pipeLoop() {
    return newPromise(function (resolveLoop, rejectLoop) {
     function next(done) {
      if (done) {
       resolveLoop();
      } else {
       PerformPromiseThen(pipeStep(), next, rejectLoop);
      }
     }
     next(false);
    });
   }
   function pipeStep() {
    if (shuttingDown === true) {
     return promiseResolvedWith(true);
    }
    return PerformPromiseThen(writer._readyPromise, function () {
     return PerformPromiseThen(ReadableStreamDefaultReaderRead(reader), function (result) {
      if (result.done === true) {
       return true;
      }
      currentWrite = PerformPromiseThen(WritableStreamDefaultWriterWrite(writer, result.value), undefined, noop);
      return false;
     });
    });
   }
   isOrBecomesErrored(source, reader._closedPromise, function (storedError) {
    if (preventAbort === false) {
     shutdownWithAction(function () {
      return WritableStreamAbort(dest, storedError);
     }, true, storedError);
    } else {
     shutdown(true, storedError);
    }
   });
   isOrBecomesErrored(dest, writer._closedPromise, function (storedError) {
    if (preventCancel === false) {
     shutdownWithAction(function () {
      return ReadableStreamCancel(source, storedError);
     }, true, storedError);
    } else {
     shutdown(true, storedError);
    }
   });
   isOrBecomesClosed(source, reader._closedPromise, function () {
    if (preventClose === false) {
     shutdownWithAction(function () {
      return WritableStreamDefaultWriterCloseWithErrorPropagation(writer);
     });
    } else {
     shutdown();
    }
   });
   if (WritableStreamCloseQueuedOrInFlight(dest) === true || dest._state === 'closed') {
    var destClosed_1 = new TypeError('the destination writable stream closed before all data could be piped to it');
    if (preventCancel === false) {
     shutdownWithAction(function () {
      return ReadableStreamCancel(source, destClosed_1);
     }, true, destClosed_1);
    } else {
     shutdown(true, destClosed_1);
    }
   }
   setPromiseIsHandledToTrue(pipeLoop());
   function waitForWritesToFinish() {
    var oldCurrentWrite = currentWrite;
    return PerformPromiseThen(currentWrite, function () {
     return oldCurrentWrite !== currentWrite ? waitForWritesToFinish() : undefined;
    });
   }
   function isOrBecomesErrored(stream, promise, action) {
    if (stream._state === 'errored') {
     action(stream._storedError);
    } else {
     uponRejection(promise, action);
    }
   }
   function isOrBecomesClosed(stream, promise, action) {
    if (stream._state === 'closed') {
     action();
    } else {
     uponFulfillment(promise, action);
    }
   }
   function shutdownWithAction(action, originalIsError, originalError) {
    if (shuttingDown === true) {
     return;
    }
    shuttingDown = true;
    if (dest._state === 'writable' && WritableStreamCloseQueuedOrInFlight(dest) === false) {
     uponFulfillment(waitForWritesToFinish(), doTheRest);
    } else {
     doTheRest();
    }
    function doTheRest() {
     uponPromise(action(), function () {
      return finalize(originalIsError, originalError);
     }, function (newError) {
      return finalize(true, newError);
     });
    }
   }
   function shutdown(isError, error) {
    if (shuttingDown === true) {
     return;
    }
    shuttingDown = true;
    if (dest._state === 'writable' && WritableStreamCloseQueuedOrInFlight(dest) === false) {
     uponFulfillment(waitForWritesToFinish(), function () {
      return finalize(isError, error);
     });
    } else {
     finalize(isError, error);
    }
   }
   function finalize(isError, error) {
    WritableStreamDefaultWriterRelease(writer);
    ReadableStreamReaderGenericRelease(reader);
    if (signal !== undefined) {
     signal.removeEventListener('abort', abortAlgorithm);
    }
    if (isError) {
     reject(error);
    } else {
     resolve(undefined);
    }
   }
  });
 }
 var ReadableStreamDefaultController = function () {
  function ReadableStreamDefaultController() {
   throw new TypeError();
  }
  Object.defineProperty(ReadableStreamDefaultController.prototype, "desiredSize", {
   get: function () {
    if (IsReadableStreamDefaultController(this) === false) {
     throw defaultControllerBrandCheckException('desiredSize');
    }
    return ReadableStreamDefaultControllerGetDesiredSize(this);
   },
   enumerable: true,
   configurable: true
  });
  ReadableStreamDefaultController.prototype.close = function () {
   if (IsReadableStreamDefaultController(this) === false) {
    throw defaultControllerBrandCheckException('close');
   }
   if (ReadableStreamDefaultControllerCanCloseOrEnqueue(this) === false) {
    throw new TypeError('The stream is not in a state that permits close');
   }
   ReadableStreamDefaultControllerClose(this);
  };
  ReadableStreamDefaultController.prototype.enqueue = function (chunk) {
   if (IsReadableStreamDefaultController(this) === false) {
    throw defaultControllerBrandCheckException('enqueue');
   }
   if (ReadableStreamDefaultControllerCanCloseOrEnqueue(this) === false) {
    throw new TypeError('The stream is not in a state that permits enqueue');
   }
   return ReadableStreamDefaultControllerEnqueue(this, chunk);
  };
  ReadableStreamDefaultController.prototype.error = function (e) {
   if (IsReadableStreamDefaultController(this) === false) {
    throw defaultControllerBrandCheckException('error');
   }
   ReadableStreamDefaultControllerError(this, e);
  };
  ReadableStreamDefaultController.prototype[CancelSteps] = function (reason) {
   ResetQueue(this);
   var result = this._cancelAlgorithm(reason);
   ReadableStreamDefaultControllerClearAlgorithms(this);
   return result;
  };
  ReadableStreamDefaultController.prototype[PullSteps] = function () {
   var stream = this._controlledReadableStream;
   if (this._queue.length > 0) {
    var chunk = DequeueValue(this);
    if (this._closeRequested === true && this._queue.length === 0) {
     ReadableStreamDefaultControllerClearAlgorithms(this);
     ReadableStreamClose(stream);
    } else {
     ReadableStreamDefaultControllerCallPullIfNeeded(this);
    }
    return promiseResolvedWith(ReadableStreamCreateReadResult(chunk, false, stream._reader._forAuthorCode));
   }
   var pendingPromise = ReadableStreamAddReadRequest(stream);
   ReadableStreamDefaultControllerCallPullIfNeeded(this);
   return pendingPromise;
  };
  return ReadableStreamDefaultController;
 }();
 function IsReadableStreamDefaultController(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_controlledReadableStream')) {
   return false;
  }
  return true;
 }
 function ReadableStreamDefaultControllerCallPullIfNeeded(controller) {
  var shouldPull = ReadableStreamDefaultControllerShouldCallPull(controller);
  if (shouldPull === false) {
   return;
  }
  if (controller._pulling === true) {
   controller._pullAgain = true;
   return;
  }
  controller._pulling = true;
  var pullPromise = controller._pullAlgorithm();
  uponPromise(pullPromise, function () {
   controller._pulling = false;
   if (controller._pullAgain === true) {
    controller._pullAgain = false;
    ReadableStreamDefaultControllerCallPullIfNeeded(controller);
   }
  }, function (e) {
   ReadableStreamDefaultControllerError(controller, e);
  });
 }
 function ReadableStreamDefaultControllerShouldCallPull(controller) {
  var stream = controller._controlledReadableStream;
  if (ReadableStreamDefaultControllerCanCloseOrEnqueue(controller) === false) {
   return false;
  }
  if (controller._started === false) {
   return false;
  }
  if (IsReadableStreamLocked(stream) === true && ReadableStreamGetNumReadRequests(stream) > 0) {
   return true;
  }
  var desiredSize = ReadableStreamDefaultControllerGetDesiredSize(controller);
  if (desiredSize > 0) {
   return true;
  }
  return false;
 }
 function ReadableStreamDefaultControllerClearAlgorithms(controller) {
  controller._pullAlgorithm = undefined;
  controller._cancelAlgorithm = undefined;
  controller._strategySizeAlgorithm = undefined;
 }
 function ReadableStreamDefaultControllerClose(controller) {
  var stream = controller._controlledReadableStream;
  controller._closeRequested = true;
  if (controller._queue.length === 0) {
   ReadableStreamDefaultControllerClearAlgorithms(controller);
   ReadableStreamClose(stream);
  }
 }
 function ReadableStreamDefaultControllerEnqueue(controller, chunk) {
  var stream = controller._controlledReadableStream;
  if (IsReadableStreamLocked(stream) === true && ReadableStreamGetNumReadRequests(stream) > 0) {
   ReadableStreamFulfillReadRequest(stream, chunk, false);
  } else {
   var chunkSize = void 0;
   try {
    chunkSize = controller._strategySizeAlgorithm(chunk);
   } catch (chunkSizeE) {
    ReadableStreamDefaultControllerError(controller, chunkSizeE);
    throw chunkSizeE;
   }
   try {
    EnqueueValueWithSize(controller, chunk, chunkSize);
   } catch (enqueueE) {
    ReadableStreamDefaultControllerError(controller, enqueueE);
    throw enqueueE;
   }
  }
  ReadableStreamDefaultControllerCallPullIfNeeded(controller);
 }
 function ReadableStreamDefaultControllerError(controller, e) {
  var stream = controller._controlledReadableStream;
  if (stream._state !== 'readable') {
   return;
  }
  ResetQueue(controller);
  ReadableStreamDefaultControllerClearAlgorithms(controller);
  ReadableStreamError(stream, e);
 }
 function ReadableStreamDefaultControllerGetDesiredSize(controller) {
  var stream = controller._controlledReadableStream;
  var state = stream._state;
  if (state === 'errored') {
   return null;
  }
  if (state === 'closed') {
   return 0;
  }
  return controller._strategyHWM - controller._queueTotalSize;
 }
 function ReadableStreamDefaultControllerHasBackpressure(controller) {
  if (ReadableStreamDefaultControllerShouldCallPull(controller) === true) {
   return false;
  }
  return true;
 }
 function ReadableStreamDefaultControllerCanCloseOrEnqueue(controller) {
  var state = controller._controlledReadableStream._state;
  if (controller._closeRequested === false && state === 'readable') {
   return true;
  }
  return false;
 }
 function SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm) {
  controller._controlledReadableStream = stream;
  controller._queue = undefined;
  controller._queueTotalSize = undefined;
  ResetQueue(controller);
  controller._started = false;
  controller._closeRequested = false;
  controller._pullAgain = false;
  controller._pulling = false;
  controller._strategySizeAlgorithm = sizeAlgorithm;
  controller._strategyHWM = highWaterMark;
  controller._pullAlgorithm = pullAlgorithm;
  controller._cancelAlgorithm = cancelAlgorithm;
  stream._readableStreamController = controller;
  var startResult = startAlgorithm();
  uponPromise(promiseResolvedWith(startResult), function () {
   controller._started = true;
   ReadableStreamDefaultControllerCallPullIfNeeded(controller);
  }, function (r) {
   ReadableStreamDefaultControllerError(controller, r);
  });
 }
 function SetUpReadableStreamDefaultControllerFromUnderlyingSource(stream, underlyingSource, highWaterMark, sizeAlgorithm) {
  var controller = Object.create(ReadableStreamDefaultController.prototype);
  function startAlgorithm() {
   return InvokeOrNoop(underlyingSource, 'start', [controller]);
  }
  var pullAlgorithm = CreateAlgorithmFromUnderlyingMethod(underlyingSource, 'pull', 0, [controller]);
  var cancelAlgorithm = CreateAlgorithmFromUnderlyingMethod(underlyingSource, 'cancel', 1, []);
  SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm);
 }
 function defaultControllerBrandCheckException(name) {
  return new TypeError("ReadableStreamDefaultController.prototype." + name + " can only be used on a ReadableStreamDefaultController");
 }
 function ReadableStreamTee(stream, cloneForBranch2) {
  var reader = AcquireReadableStreamDefaultReader(stream);
  var reading = false;
  var canceled1 = false;
  var canceled2 = false;
  var reason1;
  var reason2;
  var branch1;
  var branch2;
  var resolveCancelPromise;
  var cancelPromise = newPromise(function (resolve) {
   resolveCancelPromise = resolve;
  });
  function pullAlgorithm() {
   if (reading === true) {
    return promiseResolvedWith(undefined);
   }
   reading = true;
   var readPromise = transformPromiseWith(ReadableStreamDefaultReaderRead(reader), function (result) {
    reading = false;
    var done = result.done;
    if (done === true) {
     if (canceled1 === false) {
      ReadableStreamDefaultControllerClose(branch1._readableStreamController);
     }
     if (canceled2 === false) {
      ReadableStreamDefaultControllerClose(branch2._readableStreamController);
     }
     return;
    }
    var value = result.value;
    var value1 = value;
    var value2 = value;
    if (canceled1 === false) {
     ReadableStreamDefaultControllerEnqueue(branch1._readableStreamController, value1);
    }
    if (canceled2 === false) {
     ReadableStreamDefaultControllerEnqueue(branch2._readableStreamController, value2);
    }
   });
   setPromiseIsHandledToTrue(readPromise);
   return promiseResolvedWith(undefined);
  }
  function cancel1Algorithm(reason) {
   canceled1 = true;
   reason1 = reason;
   if (canceled2 === true) {
    var compositeReason = createArrayFromList([
     reason1,
     reason2
    ]);
    var cancelResult = ReadableStreamCancel(stream, compositeReason);
    resolveCancelPromise(cancelResult);
   }
   return cancelPromise;
  }
  function cancel2Algorithm(reason) {
   canceled2 = true;
   reason2 = reason;
   if (canceled1 === true) {
    var compositeReason = createArrayFromList([
     reason1,
     reason2
    ]);
    var cancelResult = ReadableStreamCancel(stream, compositeReason);
    resolveCancelPromise(cancelResult);
   }
   return cancelPromise;
  }
  function startAlgorithm() {
  }
  branch1 = CreateReadableStream(startAlgorithm, pullAlgorithm, cancel1Algorithm);
  branch2 = CreateReadableStream(startAlgorithm, pullAlgorithm, cancel2Algorithm);
  uponRejection(reader._closedPromise, function (r) {
   ReadableStreamDefaultControllerError(branch1._readableStreamController, r);
   ReadableStreamDefaultControllerError(branch2._readableStreamController, r);
  });
  return [
   branch1,
   branch2
  ];
 }
 var NumberIsInteger = Number.isInteger || function (value) {
  return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
 };
 var ReadableStreamBYOBRequest = function () {
  function ReadableStreamBYOBRequest() {
   throw new TypeError('ReadableStreamBYOBRequest cannot be used directly');
  }
  Object.defineProperty(ReadableStreamBYOBRequest.prototype, "view", {
   get: function () {
    if (IsReadableStreamBYOBRequest(this) === false) {
     throw byobRequestBrandCheckException('view');
    }
    return this._view;
   },
   enumerable: true,
   configurable: true
  });
  ReadableStreamBYOBRequest.prototype.respond = function (bytesWritten) {
   if (IsReadableStreamBYOBRequest(this) === false) {
    throw byobRequestBrandCheckException('respond');
   }
   if (this._associatedReadableByteStreamController === undefined) {
    throw new TypeError('This BYOB request has been invalidated');
   }
   if (IsDetachedBuffer(this._view.buffer) === true);
   ReadableByteStreamControllerRespond(this._associatedReadableByteStreamController, bytesWritten);
  };
  ReadableStreamBYOBRequest.prototype.respondWithNewView = function (view) {
   if (IsReadableStreamBYOBRequest(this) === false) {
    throw byobRequestBrandCheckException('respond');
   }
   if (this._associatedReadableByteStreamController === undefined) {
    throw new TypeError('This BYOB request has been invalidated');
   }
   if (!ArrayBuffer.isView(view)) {
    throw new TypeError('You can only respond with array buffer views');
   }
   if (IsDetachedBuffer(view.buffer) === true);
   ReadableByteStreamControllerRespondWithNewView(this._associatedReadableByteStreamController, view);
  };
  return ReadableStreamBYOBRequest;
 }();
 var ReadableByteStreamController = function () {
  function ReadableByteStreamController() {
   throw new TypeError('ReadableByteStreamController constructor cannot be used directly');
  }
  Object.defineProperty(ReadableByteStreamController.prototype, "byobRequest", {
   get: function () {
    if (IsReadableByteStreamController(this) === false) {
     throw byteStreamControllerBrandCheckException('byobRequest');
    }
    if (this._byobRequest === undefined && this._pendingPullIntos.length > 0) {
     var firstDescriptor = this._pendingPullIntos.peek();
     var view = new Uint8Array(firstDescriptor.buffer, firstDescriptor.byteOffset + firstDescriptor.bytesFilled, firstDescriptor.byteLength - firstDescriptor.bytesFilled);
     var byobRequest = Object.create(ReadableStreamBYOBRequest.prototype);
     SetUpReadableStreamBYOBRequest(byobRequest, this, view);
     this._byobRequest = byobRequest;
    }
    return this._byobRequest;
   },
   enumerable: true,
   configurable: true
  });
  Object.defineProperty(ReadableByteStreamController.prototype, "desiredSize", {
   get: function () {
    if (IsReadableByteStreamController(this) === false) {
     throw byteStreamControllerBrandCheckException('desiredSize');
    }
    return ReadableByteStreamControllerGetDesiredSize(this);
   },
   enumerable: true,
   configurable: true
  });
  ReadableByteStreamController.prototype.close = function () {
   if (IsReadableByteStreamController(this) === false) {
    throw byteStreamControllerBrandCheckException('close');
   }
   if (this._closeRequested === true) {
    throw new TypeError('The stream has already been closed; do not close it again!');
   }
   var state = this._controlledReadableByteStream._state;
   if (state !== 'readable') {
    throw new TypeError("The stream (in " + state + " state) is not in the readable state and cannot be closed");
   }
   ReadableByteStreamControllerClose(this);
  };
  ReadableByteStreamController.prototype.enqueue = function (chunk) {
   if (IsReadableByteStreamController(this) === false) {
    throw byteStreamControllerBrandCheckException('enqueue');
   }
   if (this._closeRequested === true) {
    throw new TypeError('stream is closed or draining');
   }
   var state = this._controlledReadableByteStream._state;
   if (state !== 'readable') {
    throw new TypeError("The stream (in " + state + " state) is not in the readable state and cannot be enqueued to");
   }
   if (!ArrayBuffer.isView(chunk)) {
    throw new TypeError('You can only enqueue array buffer views when using a ReadableByteStreamController');
   }
   if (IsDetachedBuffer(chunk.buffer) === true);
   ReadableByteStreamControllerEnqueue(this, chunk);
  };
  ReadableByteStreamController.prototype.error = function (e) {
   if (IsReadableByteStreamController(this) === false) {
    throw byteStreamControllerBrandCheckException('error');
   }
   ReadableByteStreamControllerError(this, e);
  };
  ReadableByteStreamController.prototype[CancelSteps] = function (reason) {
   if (this._pendingPullIntos.length > 0) {
    var firstDescriptor = this._pendingPullIntos.peek();
    firstDescriptor.bytesFilled = 0;
   }
   ResetQueue(this);
   var result = this._cancelAlgorithm(reason);
   ReadableByteStreamControllerClearAlgorithms(this);
   return result;
  };
  ReadableByteStreamController.prototype[PullSteps] = function () {
   var stream = this._controlledReadableByteStream;
   if (this._queueTotalSize > 0) {
    var entry = this._queue.shift();
    this._queueTotalSize -= entry.byteLength;
    ReadableByteStreamControllerHandleQueueDrain(this);
    var view = void 0;
    try {
     view = new Uint8Array(entry.buffer, entry.byteOffset, entry.byteLength);
    } catch (viewE) {
     return promiseRejectedWith(viewE);
    }
    return promiseResolvedWith(ReadableStreamCreateReadResult(view, false, stream._reader._forAuthorCode));
   }
   var autoAllocateChunkSize = this._autoAllocateChunkSize;
   if (autoAllocateChunkSize !== undefined) {
    var buffer = void 0;
    try {
     buffer = new ArrayBuffer(autoAllocateChunkSize);
    } catch (bufferE) {
     return promiseRejectedWith(bufferE);
    }
    var pullIntoDescriptor = {
     buffer: buffer,
     byteOffset: 0,
     byteLength: autoAllocateChunkSize,
     bytesFilled: 0,
     elementSize: 1,
     ctor: Uint8Array,
     readerType: 'default'
    };
    this._pendingPullIntos.push(pullIntoDescriptor);
   }
   var promise = ReadableStreamAddReadRequest(stream);
   ReadableByteStreamControllerCallPullIfNeeded(this);
   return promise;
  };
  return ReadableByteStreamController;
 }();
 function IsReadableByteStreamController(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_controlledReadableByteStream')) {
   return false;
  }
  return true;
 }
 function IsReadableStreamBYOBRequest(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_associatedReadableByteStreamController')) {
   return false;
  }
  return true;
 }
 function ReadableByteStreamControllerCallPullIfNeeded(controller) {
  var shouldPull = ReadableByteStreamControllerShouldCallPull(controller);
  if (shouldPull === false) {
   return;
  }
  if (controller._pulling === true) {
   controller._pullAgain = true;
   return;
  }
  controller._pulling = true;
  var pullPromise = controller._pullAlgorithm();
  uponPromise(pullPromise, function () {
   controller._pulling = false;
   if (controller._pullAgain === true) {
    controller._pullAgain = false;
    ReadableByteStreamControllerCallPullIfNeeded(controller);
   }
  }, function (e) {
   ReadableByteStreamControllerError(controller, e);
  });
 }
 function ReadableByteStreamControllerClearPendingPullIntos(controller) {
  ReadableByteStreamControllerInvalidateBYOBRequest(controller);
  controller._pendingPullIntos = new SimpleQueue();
 }
 function ReadableByteStreamControllerCommitPullIntoDescriptor(stream, pullIntoDescriptor) {
  var done = false;
  if (stream._state === 'closed') {
   done = true;
  }
  var filledView = ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor);
  if (pullIntoDescriptor.readerType === 'default') {
   ReadableStreamFulfillReadRequest(stream, filledView, done);
  } else {
   ReadableStreamFulfillReadIntoRequest(stream, filledView, done);
  }
 }
 function ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor) {
  var bytesFilled = pullIntoDescriptor.bytesFilled;
  var elementSize = pullIntoDescriptor.elementSize;
  return new pullIntoDescriptor.ctor(pullIntoDescriptor.buffer, pullIntoDescriptor.byteOffset, bytesFilled / elementSize);
 }
 function ReadableByteStreamControllerEnqueueChunkToQueue(controller, buffer, byteOffset, byteLength) {
  controller._queue.push({
   buffer: buffer,
   byteOffset: byteOffset,
   byteLength: byteLength
  });
  controller._queueTotalSize += byteLength;
 }
 function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor) {
  var elementSize = pullIntoDescriptor.elementSize;
  var currentAlignedBytes = pullIntoDescriptor.bytesFilled - pullIntoDescriptor.bytesFilled % elementSize;
  var maxBytesToCopy = Math.min(controller._queueTotalSize, pullIntoDescriptor.byteLength - pullIntoDescriptor.bytesFilled);
  var maxBytesFilled = pullIntoDescriptor.bytesFilled + maxBytesToCopy;
  var maxAlignedBytes = maxBytesFilled - maxBytesFilled % elementSize;
  var totalBytesToCopyRemaining = maxBytesToCopy;
  var ready = false;
  if (maxAlignedBytes > currentAlignedBytes) {
   totalBytesToCopyRemaining = maxAlignedBytes - pullIntoDescriptor.bytesFilled;
   ready = true;
  }
  var queue = controller._queue;
  while (totalBytesToCopyRemaining > 0) {
   var headOfQueue = queue.peek();
   var bytesToCopy = Math.min(totalBytesToCopyRemaining, headOfQueue.byteLength);
   var destStart = pullIntoDescriptor.byteOffset + pullIntoDescriptor.bytesFilled;
   ArrayBufferCopy(pullIntoDescriptor.buffer, destStart, headOfQueue.buffer, headOfQueue.byteOffset, bytesToCopy);
   if (headOfQueue.byteLength === bytesToCopy) {
    queue.shift();
   } else {
    headOfQueue.byteOffset += bytesToCopy;
    headOfQueue.byteLength -= bytesToCopy;
   }
   controller._queueTotalSize -= bytesToCopy;
   ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, bytesToCopy, pullIntoDescriptor);
   totalBytesToCopyRemaining -= bytesToCopy;
  }
  return ready;
 }
 function ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, size, pullIntoDescriptor) {
  ReadableByteStreamControllerInvalidateBYOBRequest(controller);
  pullIntoDescriptor.bytesFilled += size;
 }
 function ReadableByteStreamControllerHandleQueueDrain(controller) {
  if (controller._queueTotalSize === 0 && controller._closeRequested === true) {
   ReadableByteStreamControllerClearAlgorithms(controller);
   ReadableStreamClose(controller._controlledReadableByteStream);
  } else {
   ReadableByteStreamControllerCallPullIfNeeded(controller);
  }
 }
 function ReadableByteStreamControllerInvalidateBYOBRequest(controller) {
  if (controller._byobRequest === undefined) {
   return;
  }
  controller._byobRequest._associatedReadableByteStreamController = undefined;
  controller._byobRequest._view = undefined;
  controller._byobRequest = undefined;
 }
 function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller) {
  while (controller._pendingPullIntos.length > 0) {
   if (controller._queueTotalSize === 0) {
    return;
   }
   var pullIntoDescriptor = controller._pendingPullIntos.peek();
   if (ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor) === true) {
    ReadableByteStreamControllerShiftPendingPullInto(controller);
    ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream, pullIntoDescriptor);
   }
  }
 }
 function ReadableByteStreamControllerPullInto(controller, view) {
  var stream = controller._controlledReadableByteStream;
  var elementSize = 1;
  if (view.constructor !== DataView) {
   elementSize = view.constructor.BYTES_PER_ELEMENT;
  }
  var ctor = view.constructor;
  var buffer = TransferArrayBuffer(view.buffer);
  var pullIntoDescriptor = {
   buffer: buffer,
   byteOffset: view.byteOffset,
   byteLength: view.byteLength,
   bytesFilled: 0,
   elementSize: elementSize,
   ctor: ctor,
   readerType: 'byob'
  };
  if (controller._pendingPullIntos.length > 0) {
   controller._pendingPullIntos.push(pullIntoDescriptor);
   return ReadableStreamAddReadIntoRequest(stream);
  }
  if (stream._state === 'closed') {
   var emptyView = new ctor(pullIntoDescriptor.buffer, pullIntoDescriptor.byteOffset, 0);
   return promiseResolvedWith(ReadableStreamCreateReadResult(emptyView, true, stream._reader._forAuthorCode));
  }
  if (controller._queueTotalSize > 0) {
   if (ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor) === true) {
    var filledView = ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor);
    ReadableByteStreamControllerHandleQueueDrain(controller);
    return promiseResolvedWith(ReadableStreamCreateReadResult(filledView, false, stream._reader._forAuthorCode));
   }
   if (controller._closeRequested === true) {
    var e = new TypeError('Insufficient bytes to fill elements in the given buffer');
    ReadableByteStreamControllerError(controller, e);
    return promiseRejectedWith(e);
   }
  }
  controller._pendingPullIntos.push(pullIntoDescriptor);
  var promise = ReadableStreamAddReadIntoRequest(stream);
  ReadableByteStreamControllerCallPullIfNeeded(controller);
  return promise;
 }
 function ReadableByteStreamControllerRespondInClosedState(controller, firstDescriptor) {
  firstDescriptor.buffer = TransferArrayBuffer(firstDescriptor.buffer);
  var stream = controller._controlledReadableByteStream;
  if (ReadableStreamHasBYOBReader(stream) === true) {
   while (ReadableStreamGetNumReadIntoRequests(stream) > 0) {
    var pullIntoDescriptor = ReadableByteStreamControllerShiftPendingPullInto(controller);
    ReadableByteStreamControllerCommitPullIntoDescriptor(stream, pullIntoDescriptor);
   }
  }
 }
 function ReadableByteStreamControllerRespondInReadableState(controller, bytesWritten, pullIntoDescriptor) {
  if (pullIntoDescriptor.bytesFilled + bytesWritten > pullIntoDescriptor.byteLength) {
   throw new RangeError('bytesWritten out of range');
  }
  ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, bytesWritten, pullIntoDescriptor);
  if (pullIntoDescriptor.bytesFilled < pullIntoDescriptor.elementSize) {
   return;
  }
  ReadableByteStreamControllerShiftPendingPullInto(controller);
  var remainderSize = pullIntoDescriptor.bytesFilled % pullIntoDescriptor.elementSize;
  if (remainderSize > 0) {
   var end = pullIntoDescriptor.byteOffset + pullIntoDescriptor.bytesFilled;
   var remainder = pullIntoDescriptor.buffer.slice(end - remainderSize, end);
   ReadableByteStreamControllerEnqueueChunkToQueue(controller, remainder, 0, remainder.byteLength);
  }
  pullIntoDescriptor.buffer = TransferArrayBuffer(pullIntoDescriptor.buffer);
  pullIntoDescriptor.bytesFilled -= remainderSize;
  ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream, pullIntoDescriptor);
  ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller);
 }
 function ReadableByteStreamControllerRespondInternal(controller, bytesWritten) {
  var firstDescriptor = controller._pendingPullIntos.peek();
  var stream = controller._controlledReadableByteStream;
  if (stream._state === 'closed') {
   if (bytesWritten !== 0) {
    throw new TypeError('bytesWritten must be 0 when calling respond() on a closed stream');
   }
   ReadableByteStreamControllerRespondInClosedState(controller, firstDescriptor);
  } else {
   ReadableByteStreamControllerRespondInReadableState(controller, bytesWritten, firstDescriptor);
  }
  ReadableByteStreamControllerCallPullIfNeeded(controller);
 }
 function ReadableByteStreamControllerShiftPendingPullInto(controller) {
  var descriptor = controller._pendingPullIntos.shift();
  ReadableByteStreamControllerInvalidateBYOBRequest(controller);
  return descriptor;
 }
 function ReadableByteStreamControllerShouldCallPull(controller) {
  var stream = controller._controlledReadableByteStream;
  if (stream._state !== 'readable') {
   return false;
  }
  if (controller._closeRequested === true) {
   return false;
  }
  if (controller._started === false) {
   return false;
  }
  if (ReadableStreamHasDefaultReader(stream) === true && ReadableStreamGetNumReadRequests(stream) > 0) {
   return true;
  }
  if (ReadableStreamHasBYOBReader(stream) === true && ReadableStreamGetNumReadIntoRequests(stream) > 0) {
   return true;
  }
  var desiredSize = ReadableByteStreamControllerGetDesiredSize(controller);
  if (desiredSize > 0) {
   return true;
  }
  return false;
 }
 function ReadableByteStreamControllerClearAlgorithms(controller) {
  controller._pullAlgorithm = undefined;
  controller._cancelAlgorithm = undefined;
 }
 function ReadableByteStreamControllerClose(controller) {
  var stream = controller._controlledReadableByteStream;
  if (controller._queueTotalSize > 0) {
   controller._closeRequested = true;
   return;
  }
  if (controller._pendingPullIntos.length > 0) {
   var firstPendingPullInto = controller._pendingPullIntos.peek();
   if (firstPendingPullInto.bytesFilled > 0) {
    var e = new TypeError('Insufficient bytes to fill elements in the given buffer');
    ReadableByteStreamControllerError(controller, e);
    throw e;
   }
  }
  ReadableByteStreamControllerClearAlgorithms(controller);
  ReadableStreamClose(stream);
 }
 function ReadableByteStreamControllerEnqueue(controller, chunk) {
  var stream = controller._controlledReadableByteStream;
  var buffer = chunk.buffer;
  var byteOffset = chunk.byteOffset;
  var byteLength = chunk.byteLength;
  var transferredBuffer = TransferArrayBuffer(buffer);
  if (ReadableStreamHasDefaultReader(stream) === true) {
   if (ReadableStreamGetNumReadRequests(stream) === 0) {
    ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);
   } else {
    var transferredView = new Uint8Array(transferredBuffer, byteOffset, byteLength);
    ReadableStreamFulfillReadRequest(stream, transferredView, false);
   }
  } else if (ReadableStreamHasBYOBReader(stream) === true) {
   ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);
   ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller);
  } else {
   ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);
  }
  ReadableByteStreamControllerCallPullIfNeeded(controller);
 }
 function ReadableByteStreamControllerError(controller, e) {
  var stream = controller._controlledReadableByteStream;
  if (stream._state !== 'readable') {
   return;
  }
  ReadableByteStreamControllerClearPendingPullIntos(controller);
  ResetQueue(controller);
  ReadableByteStreamControllerClearAlgorithms(controller);
  ReadableStreamError(stream, e);
 }
 function ReadableByteStreamControllerGetDesiredSize(controller) {
  var stream = controller._controlledReadableByteStream;
  var state = stream._state;
  if (state === 'errored') {
   return null;
  }
  if (state === 'closed') {
   return 0;
  }
  return controller._strategyHWM - controller._queueTotalSize;
 }
 function ReadableByteStreamControllerRespond(controller, bytesWritten) {
  bytesWritten = Number(bytesWritten);
  if (IsFiniteNonNegativeNumber(bytesWritten) === false) {
   throw new RangeError('bytesWritten must be a finite');
  }
  ReadableByteStreamControllerRespondInternal(controller, bytesWritten);
 }
 function ReadableByteStreamControllerRespondWithNewView(controller, view) {
  var firstDescriptor = controller._pendingPullIntos.peek();
  if (firstDescriptor.byteOffset + firstDescriptor.bytesFilled !== view.byteOffset) {
   throw new RangeError('The region specified by view does not match byobRequest');
  }
  if (firstDescriptor.byteLength !== view.byteLength) {
   throw new RangeError('The buffer of view has different capacity than byobRequest');
  }
  firstDescriptor.buffer = view.buffer;
  ReadableByteStreamControllerRespondInternal(controller, view.byteLength);
 }
 function SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize) {
  controller._controlledReadableByteStream = stream;
  controller._pullAgain = false;
  controller._pulling = false;
  controller._byobRequest = undefined;
  controller._queue = controller._queueTotalSize = undefined;
  ResetQueue(controller);
  controller._closeRequested = false;
  controller._started = false;
  controller._strategyHWM = ValidateAndNormalizeHighWaterMark(highWaterMark);
  controller._pullAlgorithm = pullAlgorithm;
  controller._cancelAlgorithm = cancelAlgorithm;
  controller._autoAllocateChunkSize = autoAllocateChunkSize;
  controller._pendingPullIntos = new SimpleQueue();
  stream._readableStreamController = controller;
  var startResult = startAlgorithm();
  uponPromise(promiseResolvedWith(startResult), function () {
   controller._started = true;
   ReadableByteStreamControllerCallPullIfNeeded(controller);
  }, function (r) {
   ReadableByteStreamControllerError(controller, r);
  });
 }
 function SetUpReadableByteStreamControllerFromUnderlyingSource(stream, underlyingByteSource, highWaterMark) {
  var controller = Object.create(ReadableByteStreamController.prototype);
  function startAlgorithm() {
   return InvokeOrNoop(underlyingByteSource, 'start', [controller]);
  }
  var pullAlgorithm = CreateAlgorithmFromUnderlyingMethod(underlyingByteSource, 'pull', 0, [controller]);
  var cancelAlgorithm = CreateAlgorithmFromUnderlyingMethod(underlyingByteSource, 'cancel', 1, []);
  var autoAllocateChunkSize = underlyingByteSource.autoAllocateChunkSize;
  if (autoAllocateChunkSize !== undefined) {
   autoAllocateChunkSize = Number(autoAllocateChunkSize);
   if (NumberIsInteger(autoAllocateChunkSize) === false || autoAllocateChunkSize <= 0) {
    throw new RangeError('autoAllocateChunkSize must be a positive integer');
   }
  }
  SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize);
 }
 function SetUpReadableStreamBYOBRequest(request, controller, view) {
  request._associatedReadableByteStreamController = controller;
  request._view = view;
 }
 function byobRequestBrandCheckException(name) {
  return new TypeError("ReadableStreamBYOBRequest.prototype." + name + " can only be used on a ReadableStreamBYOBRequest");
 }
 function byteStreamControllerBrandCheckException(name) {
  return new TypeError("ReadableByteStreamController.prototype." + name + " can only be used on a ReadableByteStreamController");
 }
 function AcquireReadableStreamBYOBReader(stream, forAuthorCode) {
  if (forAuthorCode === void 0) {
   forAuthorCode = false;
  }
  var reader = new ReadableStreamBYOBReader(stream);
  reader._forAuthorCode = forAuthorCode;
  return reader;
 }
 function ReadableStreamAddReadIntoRequest(stream) {
  var promise = newPromise(function (resolve, reject) {
   var readIntoRequest = {
    _resolve: resolve,
    _reject: reject
   };
   stream._reader._readIntoRequests.push(readIntoRequest);
  });
  return promise;
 }
 function ReadableStreamFulfillReadIntoRequest(stream, chunk, done) {
  var reader = stream._reader;
  var readIntoRequest = reader._readIntoRequests.shift();
  readIntoRequest._resolve(ReadableStreamCreateReadResult(chunk, done, reader._forAuthorCode));
 }
 function ReadableStreamGetNumReadIntoRequests(stream) {
  return stream._reader._readIntoRequests.length;
 }
 function ReadableStreamHasBYOBReader(stream) {
  var reader = stream._reader;
  if (reader === undefined) {
   return false;
  }
  if (!IsReadableStreamBYOBReader(reader)) {
   return false;
  }
  return true;
 }
 var ReadableStreamBYOBReader = function () {
  function ReadableStreamBYOBReader(stream) {
   if (!IsReadableStream(stream)) {
    throw new TypeError('ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a ' + 'byte source');
   }
   if (IsReadableByteStreamController(stream._readableStreamController) === false) {
    throw new TypeError('Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte ' + 'source');
   }
   if (IsReadableStreamLocked(stream)) {
    throw new TypeError('This stream has already been locked for exclusive reading by another reader');
   }
   ReadableStreamReaderGenericInitialize(this, stream);
   this._readIntoRequests = new SimpleQueue();
  }
  Object.defineProperty(ReadableStreamBYOBReader.prototype, "closed", {
   get: function () {
    if (!IsReadableStreamBYOBReader(this)) {
     return promiseRejectedWith(byobReaderBrandCheckException('closed'));
    }
    return this._closedPromise;
   },
   enumerable: true,
   configurable: true
  });
  ReadableStreamBYOBReader.prototype.cancel = function (reason) {
   if (!IsReadableStreamBYOBReader(this)) {
    return promiseRejectedWith(byobReaderBrandCheckException('cancel'));
   }
   if (this._ownerReadableStream === undefined) {
    return promiseRejectedWith(readerLockException('cancel'));
   }
   return ReadableStreamReaderGenericCancel(this, reason);
  };
  ReadableStreamBYOBReader.prototype.read = function (view) {
   if (!IsReadableStreamBYOBReader(this)) {
    return promiseRejectedWith(byobReaderBrandCheckException('read'));
   }
   if (this._ownerReadableStream === undefined) {
    return promiseRejectedWith(readerLockException('read from'));
   }
   if (!ArrayBuffer.isView(view)) {
    return promiseRejectedWith(new TypeError('view must be an array buffer view'));
   }
   if (IsDetachedBuffer(view.buffer) === true);
   if (view.byteLength === 0) {
    return promiseRejectedWith(new TypeError('view must have non-zero byteLength'));
   }
   return ReadableStreamBYOBReaderRead(this, view);
  };
  ReadableStreamBYOBReader.prototype.releaseLock = function () {
   if (!IsReadableStreamBYOBReader(this)) {
    throw byobReaderBrandCheckException('releaseLock');
   }
   if (this._ownerReadableStream === undefined) {
    return;
   }
   if (this._readIntoRequests.length > 0) {
    throw new TypeError('Tried to release a reader lock when that reader has pending read() calls un-settled');
   }
   ReadableStreamReaderGenericRelease(this);
  };
  return ReadableStreamBYOBReader;
 }();
 function IsReadableStreamBYOBReader(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_readIntoRequests')) {
   return false;
  }
  return true;
 }
 function ReadableStreamBYOBReaderRead(reader, view) {
  var stream = reader._ownerReadableStream;
  stream._disturbed = true;
  if (stream._state === 'errored') {
   return promiseRejectedWith(stream._storedError);
  }
  return ReadableByteStreamControllerPullInto(stream._readableStreamController, view);
 }
 function byobReaderBrandCheckException(name) {
  return new TypeError("ReadableStreamBYOBReader.prototype." + name + " can only be used on a ReadableStreamBYOBReader");
 }
 var ReadableStream = function () {
  function ReadableStream(underlyingSource, strategy) {
   if (underlyingSource === void 0) {
    underlyingSource = {};
   }
   if (strategy === void 0) {
    strategy = {};
   }
   InitializeReadableStream(this);
   var size = strategy.size;
   var highWaterMark = strategy.highWaterMark;
   var type = underlyingSource.type;
   var typeString = String(type);
   if (typeString === 'bytes') {
    if (size !== undefined) {
     throw new RangeError('The strategy for a byte stream cannot have a size function');
    }
    if (highWaterMark === undefined) {
     highWaterMark = 0;
    }
    highWaterMark = ValidateAndNormalizeHighWaterMark(highWaterMark);
    SetUpReadableByteStreamControllerFromUnderlyingSource(this, underlyingSource, highWaterMark);
   } else if (type === undefined) {
    var sizeAlgorithm = MakeSizeAlgorithmFromSizeFunction(size);
    if (highWaterMark === undefined) {
     highWaterMark = 1;
    }
    highWaterMark = ValidateAndNormalizeHighWaterMark(highWaterMark);
    SetUpReadableStreamDefaultControllerFromUnderlyingSource(this, underlyingSource, highWaterMark, sizeAlgorithm);
   } else {
    throw new RangeError('Invalid type is specified');
   }
  }
  Object.defineProperty(ReadableStream.prototype, "locked", {
   get: function () {
    if (IsReadableStream(this) === false) {
     throw streamBrandCheckException$1('locked');
    }
    return IsReadableStreamLocked(this);
   },
   enumerable: true,
   configurable: true
  });
  ReadableStream.prototype.cancel = function (reason) {
   if (IsReadableStream(this) === false) {
    return promiseRejectedWith(streamBrandCheckException$1('cancel'));
   }
   if (IsReadableStreamLocked(this) === true) {
    return promiseRejectedWith(new TypeError('Cannot cancel a stream that already has a reader'));
   }
   return ReadableStreamCancel(this, reason);
  };
  ReadableStream.prototype.getReader = function (_a) {
   var mode = (_a === void 0 ? {} : _a).mode;
   if (IsReadableStream(this) === false) {
    throw streamBrandCheckException$1('getReader');
   }
   if (mode === undefined) {
    return AcquireReadableStreamDefaultReader(this, true);
   }
   mode = String(mode);
   if (mode === 'byob') {
    return AcquireReadableStreamBYOBReader(this, true);
   }
   throw new RangeError('Invalid mode is specified');
  };
  ReadableStream.prototype.pipeThrough = function (_a, _b) {
   var writable = _a.writable, readable = _a.readable;
   var _c = _b === void 0 ? {} : _b, preventClose = _c.preventClose, preventAbort = _c.preventAbort, preventCancel = _c.preventCancel, signal = _c.signal;
   if (IsReadableStream(this) === false) {
    throw streamBrandCheckException$1('pipeThrough');
   }
   if (IsWritableStream(writable) === false) {
    throw new TypeError('writable argument to pipeThrough must be a WritableStream');
   }
   if (IsReadableStream(readable) === false) {
    throw new TypeError('readable argument to pipeThrough must be a ReadableStream');
   }
   preventClose = Boolean(preventClose);
   preventAbort = Boolean(preventAbort);
   preventCancel = Boolean(preventCancel);
   if (signal !== undefined && !isAbortSignal(signal)) {
    throw new TypeError('ReadableStream.prototype.pipeThrough\'s signal option must be an AbortSignal');
   }
   if (IsReadableStreamLocked(this) === true) {
    throw new TypeError('ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream');
   }
   if (IsWritableStreamLocked(writable) === true) {
    throw new TypeError('ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream');
   }
   var promise = ReadableStreamPipeTo(this, writable, preventClose, preventAbort, preventCancel, signal);
   setPromiseIsHandledToTrue(promise);
   return readable;
  };
  ReadableStream.prototype.pipeTo = function (dest, _a) {
   var _b = _a === void 0 ? {} : _a, preventClose = _b.preventClose, preventAbort = _b.preventAbort, preventCancel = _b.preventCancel, signal = _b.signal;
   if (IsReadableStream(this) === false) {
    return promiseRejectedWith(streamBrandCheckException$1('pipeTo'));
   }
   if (IsWritableStream(dest) === false) {
    return promiseRejectedWith(new TypeError('ReadableStream.prototype.pipeTo\'s first argument must be a WritableStream'));
   }
   preventClose = Boolean(preventClose);
   preventAbort = Boolean(preventAbort);
   preventCancel = Boolean(preventCancel);
   if (signal !== undefined && !isAbortSignal(signal)) {
    return promiseRejectedWith(new TypeError('ReadableStream.prototype.pipeTo\'s signal option must be an AbortSignal'));
   }
   if (IsReadableStreamLocked(this) === true) {
    return promiseRejectedWith(new TypeError('ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream'));
   }
   if (IsWritableStreamLocked(dest) === true) {
    return promiseRejectedWith(new TypeError('ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream'));
   }
   return ReadableStreamPipeTo(this, dest, preventClose, preventAbort, preventCancel, signal);
  };
  ReadableStream.prototype.tee = function () {
   if (IsReadableStream(this) === false) {
    throw streamBrandCheckException$1('tee');
   }
   var branches = ReadableStreamTee(this);
   return createArrayFromList(branches);
  };
  ReadableStream.prototype.getIterator = function (_a) {
   var _b = (_a === void 0 ? {} : _a).preventCancel, preventCancel = _b === void 0 ? false : _b;
   if (IsReadableStream(this) === false) {
    throw streamBrandCheckException$1('getIterator');
   }
   return AcquireReadableStreamAsyncIterator(this, preventCancel);
  };
  return ReadableStream;
 }();
 if (typeof SymbolPolyfill.asyncIterator === 'symbol') {
  Object.defineProperty(ReadableStream.prototype, SymbolPolyfill.asyncIterator, {
   value: ReadableStream.prototype.getIterator,
   enumerable: false,
   writable: true,
   configurable: true
  });
 }
 function CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm) {
  if (highWaterMark === void 0) {
   highWaterMark = 1;
  }
  if (sizeAlgorithm === void 0) {
   sizeAlgorithm = function () {
    return 1;
   };
  }
  var stream = Object.create(ReadableStream.prototype);
  InitializeReadableStream(stream);
  var controller = Object.create(ReadableStreamDefaultController.prototype);
  SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm);
  return stream;
 }
 function InitializeReadableStream(stream) {
  stream._state = 'readable';
  stream._reader = undefined;
  stream._storedError = undefined;
  stream._disturbed = false;
 }
 function IsReadableStream(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_readableStreamController')) {
   return false;
  }
  return true;
 }
 function IsReadableStreamLocked(stream) {
  if (stream._reader === undefined) {
   return false;
  }
  return true;
 }
 function ReadableStreamCancel(stream, reason) {
  stream._disturbed = true;
  if (stream._state === 'closed') {
   return promiseResolvedWith(undefined);
  }
  if (stream._state === 'errored') {
   return promiseRejectedWith(stream._storedError);
  }
  ReadableStreamClose(stream);
  var sourceCancelPromise = stream._readableStreamController[CancelSteps](reason);
  return transformPromiseWith(sourceCancelPromise, noop);
 }
 function ReadableStreamClose(stream) {
  stream._state = 'closed';
  var reader = stream._reader;
  if (reader === undefined) {
   return;
  }
  if (IsReadableStreamDefaultReader(reader)) {
   reader._readRequests.forEach(function (readRequest) {
    readRequest._resolve(ReadableStreamCreateReadResult(undefined, true, reader._forAuthorCode));
   });
   reader._readRequests = new SimpleQueue();
  }
  defaultReaderClosedPromiseResolve(reader);
 }
 function ReadableStreamError(stream, e) {
  stream._state = 'errored';
  stream._storedError = e;
  var reader = stream._reader;
  if (reader === undefined) {
   return;
  }
  if (IsReadableStreamDefaultReader(reader)) {
   reader._readRequests.forEach(function (readRequest) {
    readRequest._reject(e);
   });
   reader._readRequests = new SimpleQueue();
  } else {
   reader._readIntoRequests.forEach(function (readIntoRequest) {
    readIntoRequest._reject(e);
   });
   reader._readIntoRequests = new SimpleQueue();
  }
  defaultReaderClosedPromiseReject(reader, e);
 }
 function streamBrandCheckException$1(name) {
  return new TypeError("ReadableStream.prototype." + name + " can only be used on a ReadableStream");
 }
 var ByteLengthQueuingStrategy = function () {
  function ByteLengthQueuingStrategy(_a) {
   var highWaterMark = _a.highWaterMark;
   this.highWaterMark = highWaterMark;
  }
  ByteLengthQueuingStrategy.prototype.size = function (chunk) {
   return chunk.byteLength;
  };
  return ByteLengthQueuingStrategy;
 }();
 var CountQueuingStrategy = function () {
  function CountQueuingStrategy(_a) {
   var highWaterMark = _a.highWaterMark;
   this.highWaterMark = highWaterMark;
  }
  CountQueuingStrategy.prototype.size = function () {
   return 1;
  };
  return CountQueuingStrategy;
 }();
 var TransformStream = function () {
  function TransformStream(transformer, writableStrategy, readableStrategy) {
   if (transformer === void 0) {
    transformer = {};
   }
   if (writableStrategy === void 0) {
    writableStrategy = {};
   }
   if (readableStrategy === void 0) {
    readableStrategy = {};
   }
   var writableSizeFunction = writableStrategy.size;
   var writableHighWaterMark = writableStrategy.highWaterMark;
   var readableSizeFunction = readableStrategy.size;
   var readableHighWaterMark = readableStrategy.highWaterMark;
   var writableType = transformer.writableType;
   if (writableType !== undefined) {
    throw new RangeError('Invalid writable type specified');
   }
   var writableSizeAlgorithm = MakeSizeAlgorithmFromSizeFunction(writableSizeFunction);
   if (writableHighWaterMark === undefined) {
    writableHighWaterMark = 1;
   }
   writableHighWaterMark = ValidateAndNormalizeHighWaterMark(writableHighWaterMark);
   var readableType = transformer.readableType;
   if (readableType !== undefined) {
    throw new RangeError('Invalid readable type specified');
   }
   var readableSizeAlgorithm = MakeSizeAlgorithmFromSizeFunction(readableSizeFunction);
   if (readableHighWaterMark === undefined) {
    readableHighWaterMark = 0;
   }
   readableHighWaterMark = ValidateAndNormalizeHighWaterMark(readableHighWaterMark);
   var startPromise_resolve;
   var startPromise = newPromise(function (resolve) {
    startPromise_resolve = resolve;
   });
   InitializeTransformStream(this, startPromise, writableHighWaterMark, writableSizeAlgorithm, readableHighWaterMark, readableSizeAlgorithm);
   SetUpTransformStreamDefaultControllerFromTransformer(this, transformer);
   var startResult = InvokeOrNoop(transformer, 'start', [this._transformStreamController]);
   startPromise_resolve(startResult);
  }
  Object.defineProperty(TransformStream.prototype, "readable", {
   get: function () {
    if (IsTransformStream(this) === false) {
     throw streamBrandCheckException$2('readable');
    }
    return this._readable;
   },
   enumerable: true,
   configurable: true
  });
  Object.defineProperty(TransformStream.prototype, "writable", {
   get: function () {
    if (IsTransformStream(this) === false) {
     throw streamBrandCheckException$2('writable');
    }
    return this._writable;
   },
   enumerable: true,
   configurable: true
  });
  return TransformStream;
 }();
 function InitializeTransformStream(stream, startPromise, writableHighWaterMark, writableSizeAlgorithm, readableHighWaterMark, readableSizeAlgorithm) {
  function startAlgorithm() {
   return startPromise;
  }
  function writeAlgorithm(chunk) {
   return TransformStreamDefaultSinkWriteAlgorithm(stream, chunk);
  }
  function abortAlgorithm(reason) {
   return TransformStreamDefaultSinkAbortAlgorithm(stream, reason);
  }
  function closeAlgorithm() {
   return TransformStreamDefaultSinkCloseAlgorithm(stream);
  }
  stream._writable = CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, writableHighWaterMark, writableSizeAlgorithm);
  function pullAlgorithm() {
   return TransformStreamDefaultSourcePullAlgorithm(stream);
  }
  function cancelAlgorithm(reason) {
   TransformStreamErrorWritableAndUnblockWrite(stream, reason);
   return promiseResolvedWith(undefined);
  }
  stream._readable = CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, readableHighWaterMark, readableSizeAlgorithm);
  stream._backpressure = undefined;
  stream._backpressureChangePromise = undefined;
  stream._backpressureChangePromise_resolve = undefined;
  TransformStreamSetBackpressure(stream, true);
  stream._transformStreamController = undefined;
 }
 function IsTransformStream(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_transformStreamController')) {
   return false;
  }
  return true;
 }
 function TransformStreamError(stream, e) {
  ReadableStreamDefaultControllerError(stream._readable._readableStreamController, e);
  TransformStreamErrorWritableAndUnblockWrite(stream, e);
 }
 function TransformStreamErrorWritableAndUnblockWrite(stream, e) {
  TransformStreamDefaultControllerClearAlgorithms(stream._transformStreamController);
  WritableStreamDefaultControllerErrorIfNeeded(stream._writable._writableStreamController, e);
  if (stream._backpressure === true) {
   TransformStreamSetBackpressure(stream, false);
  }
 }
 function TransformStreamSetBackpressure(stream, backpressure) {
  if (stream._backpressureChangePromise !== undefined) {
   stream._backpressureChangePromise_resolve();
  }
  stream._backpressureChangePromise = newPromise(function (resolve) {
   stream._backpressureChangePromise_resolve = resolve;
  });
  stream._backpressure = backpressure;
 }
 var TransformStreamDefaultController = function () {
  function TransformStreamDefaultController() {
   throw new TypeError('TransformStreamDefaultController instances cannot be created directly');
  }
  Object.defineProperty(TransformStreamDefaultController.prototype, "desiredSize", {
   get: function () {
    if (IsTransformStreamDefaultController(this) === false) {
     throw defaultControllerBrandCheckException$1('desiredSize');
    }
    var readableController = this._controlledTransformStream._readable._readableStreamController;
    return ReadableStreamDefaultControllerGetDesiredSize(readableController);
   },
   enumerable: true,
   configurable: true
  });
  TransformStreamDefaultController.prototype.enqueue = function (chunk) {
   if (IsTransformStreamDefaultController(this) === false) {
    throw defaultControllerBrandCheckException$1('enqueue');
   }
   TransformStreamDefaultControllerEnqueue(this, chunk);
  };
  TransformStreamDefaultController.prototype.error = function (reason) {
   if (IsTransformStreamDefaultController(this) === false) {
    throw defaultControllerBrandCheckException$1('error');
   }
   TransformStreamDefaultControllerError(this, reason);
  };
  TransformStreamDefaultController.prototype.terminate = function () {
   if (IsTransformStreamDefaultController(this) === false) {
    throw defaultControllerBrandCheckException$1('terminate');
   }
   TransformStreamDefaultControllerTerminate(this);
  };
  return TransformStreamDefaultController;
 }();
 function IsTransformStreamDefaultController(x) {
  if (!typeIsObject(x)) {
   return false;
  }
  if (!Object.prototype.hasOwnProperty.call(x, '_controlledTransformStream')) {
   return false;
  }
  return true;
 }
 function SetUpTransformStreamDefaultController(stream, controller, transformAlgorithm, flushAlgorithm) {
  controller._controlledTransformStream = stream;
  stream._transformStreamController = controller;
  controller._transformAlgorithm = transformAlgorithm;
  controller._flushAlgorithm = flushAlgorithm;
 }
 function SetUpTransformStreamDefaultControllerFromTransformer(stream, transformer) {
  var controller = Object.create(TransformStreamDefaultController.prototype);
  var transformAlgorithm = function (chunk) {
   try {
    TransformStreamDefaultControllerEnqueue(controller, chunk);
    return promiseResolvedWith(undefined);
   } catch (transformResultE) {
    return promiseRejectedWith(transformResultE);
   }
  };
  var transformMethod = transformer.transform;
  if (transformMethod !== undefined) {
   if (typeof transformMethod !== 'function') {
    throw new TypeError('transform is not a method');
   }
   transformAlgorithm = function (chunk) {
    return PromiseCall(transformMethod, transformer, [
     chunk,
     controller
    ]);
   };
  }
  var flushAlgorithm = CreateAlgorithmFromUnderlyingMethod(transformer, 'flush', 0, [controller]);
  SetUpTransformStreamDefaultController(stream, controller, transformAlgorithm, flushAlgorithm);
 }
 function TransformStreamDefaultControllerClearAlgorithms(controller) {
  controller._transformAlgorithm = undefined;
  controller._flushAlgorithm = undefined;
 }
 function TransformStreamDefaultControllerEnqueue(controller, chunk) {
  var stream = controller._controlledTransformStream;
  var readableController = stream._readable._readableStreamController;
  if (ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController) === false) {
   throw new TypeError('Readable side is not in a state that permits enqueue');
  }
  try {
   ReadableStreamDefaultControllerEnqueue(readableController, chunk);
  } catch (e) {
   TransformStreamErrorWritableAndUnblockWrite(stream, e);
   throw stream._readable._storedError;
  }
  var backpressure = ReadableStreamDefaultControllerHasBackpressure(readableController);
  if (backpressure !== stream._backpressure) {
   TransformStreamSetBackpressure(stream, true);
  }
 }
 function TransformStreamDefaultControllerError(controller, e) {
  TransformStreamError(controller._controlledTransformStream, e);
 }
 function TransformStreamDefaultControllerPerformTransform(controller, chunk) {
  var transformPromise = controller._transformAlgorithm(chunk);
  return transformPromiseWith(transformPromise, undefined, function (r) {
   TransformStreamError(controller._controlledTransformStream, r);
   throw r;
  });
 }
 function TransformStreamDefaultControllerTerminate(controller) {
  var stream = controller._controlledTransformStream;
  var readableController = stream._readable._readableStreamController;
  if (ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController) === true) {
   ReadableStreamDefaultControllerClose(readableController);
  }
  var error = new TypeError('TransformStream terminated');
  TransformStreamErrorWritableAndUnblockWrite(stream, error);
 }
 function TransformStreamDefaultSinkWriteAlgorithm(stream, chunk) {
  var controller = stream._transformStreamController;
  if (stream._backpressure === true) {
   var backpressureChangePromise = stream._backpressureChangePromise;
   return transformPromiseWith(backpressureChangePromise, function () {
    var writable = stream._writable;
    var state = writable._state;
    if (state === 'erroring') {
     throw writable._storedError;
    }
    return TransformStreamDefaultControllerPerformTransform(controller, chunk);
   });
  }
  return TransformStreamDefaultControllerPerformTransform(controller, chunk);
 }
 function TransformStreamDefaultSinkAbortAlgorithm(stream, reason) {
  TransformStreamError(stream, reason);
  return promiseResolvedWith(undefined);
 }
 function TransformStreamDefaultSinkCloseAlgorithm(stream) {
  var readable = stream._readable;
  var controller = stream._transformStreamController;
  var flushPromise = controller._flushAlgorithm();
  TransformStreamDefaultControllerClearAlgorithms(controller);
  return transformPromiseWith(flushPromise, function () {
   if (readable._state === 'errored') {
    throw readable._storedError;
   }
   var readableController = readable._readableStreamController;
   if (ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController) === true) {
    ReadableStreamDefaultControllerClose(readableController);
   }
  }, function (r) {
   TransformStreamError(stream, r);
   throw readable._storedError;
  });
 }
 function TransformStreamDefaultSourcePullAlgorithm(stream) {
  TransformStreamSetBackpressure(stream, false);
  return stream._backpressureChangePromise;
 }
 function defaultControllerBrandCheckException$1(name) {
  return new TypeError("TransformStreamDefaultController.prototype." + name + " can only be used on a TransformStreamDefaultController");
 }
 function streamBrandCheckException$2(name) {
  return new TypeError("TransformStream.prototype." + name + " can only be used on a TransformStream");
 }
 exports.ByteLengthQueuingStrategy = ByteLengthQueuingStrategy;
 exports.CountQueuingStrategy = CountQueuingStrategy;
 exports.ReadableStream = ReadableStream;
 exports.TransformStream = TransformStream;
 exports.WritableStream = WritableStream;
 Object.defineProperty(exports, '__esModule', { value: true });
}));

/***/ }),
/* 146 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(147);
__w_pdfjs_require__(118);
__w_pdfjs_require__(77);
__w_pdfjs_require__(120);
var path = __w_pdfjs_require__(43);
module.exports = path.Map;

/***/ }),
/* 147 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var collection = __w_pdfjs_require__(148);
var collectionStrong = __w_pdfjs_require__(152);
module.exports = collection('Map', function (init) {
 return function Map() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
}, collectionStrong);

/***/ }),
/* 148 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var global = __w_pdfjs_require__(11);
var isForced = __w_pdfjs_require__(52);
var redefine = __w_pdfjs_require__(29);
var InternalMetadataModule = __w_pdfjs_require__(149);
var iterate = __w_pdfjs_require__(104);
var anInstance = __w_pdfjs_require__(126);
var isObject = __w_pdfjs_require__(22);
var fails = __w_pdfjs_require__(14);
var checkCorrectnessOfIteration = __w_pdfjs_require__(97);
var setToStringTag = __w_pdfjs_require__(85);
var inheritIfRequired = __w_pdfjs_require__(151);
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
 var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
 var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
 var ADDER = IS_MAP ? 'set' : 'add';
 var NativeConstructor = global[CONSTRUCTOR_NAME];
 var NativePrototype = NativeConstructor && NativeConstructor.prototype;
 var Constructor = NativeConstructor;
 var exported = {};
 var fixMethod = function (KEY) {
  var nativeMethod = NativePrototype[KEY];
  redefine(NativePrototype, KEY, KEY == 'add' ? function add(value) {
   nativeMethod.call(this, value === 0 ? 0 : value);
   return this;
  } : KEY == 'delete' ? function (key) {
   return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
  } : KEY == 'get' ? function get(key) {
   return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
  } : KEY == 'has' ? function has(key) {
   return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
  } : function set(key, value) {
   nativeMethod.call(this, key === 0 ? 0 : key, value);
   return this;
  });
 };
 if (isForced(CONSTRUCTOR_NAME, typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
   new NativeConstructor().entries().next();
  })))) {
  Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
  InternalMetadataModule.REQUIRED = true;
 } else if (isForced(CONSTRUCTOR_NAME, true)) {
  var instance = new Constructor();
  var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
  var THROWS_ON_PRIMITIVES = fails(function () {
   instance.has(1);
  });
  var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) {
   new NativeConstructor(iterable);
  });
  var BUGGY_ZERO = !IS_WEAK && fails(function () {
   var $instance = new NativeConstructor();
   var index = 5;
   while (index--)
    $instance[ADDER](index, index);
   return !$instance.has(-0);
  });
  if (!ACCEPT_ITERABLES) {
   Constructor = wrapper(function (dummy, iterable) {
    anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
    var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
    if (iterable != undefined)
     iterate(iterable, that[ADDER], that, IS_MAP);
    return that;
   });
   Constructor.prototype = NativePrototype;
   NativePrototype.constructor = Constructor;
  }
  if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
   fixMethod('delete');
   fixMethod('has');
   IS_MAP && fixMethod('get');
  }
  if (BUGGY_ZERO || HASNT_CHAINING)
   fixMethod(ADDER);
  if (IS_WEAK && NativePrototype.clear)
   delete NativePrototype.clear;
 }
 exported[CONSTRUCTOR_NAME] = Constructor;
 $({
  global: true,
  forced: Constructor != NativeConstructor
 }, exported);
 setToStringTag(Constructor, CONSTRUCTOR_NAME);
 if (!IS_WEAK)
  common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
 return Constructor;
};

/***/ }),
/* 149 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var hiddenKeys = __w_pdfjs_require__(39);
var isObject = __w_pdfjs_require__(22);
var has = __w_pdfjs_require__(23);
var defineProperty = __w_pdfjs_require__(27).f;
var uid = __w_pdfjs_require__(38);
var FREEZING = __w_pdfjs_require__(150);
var METADATA = uid('meta');
var id = 0;
var isExtensible = Object.isExtensible || function () {
 return true;
};
var setMetadata = function (it) {
 defineProperty(it, METADATA, {
  value: {
   objectID: 'O' + ++id,
   weakData: {}
  }
 });
};
var fastKey = function (it, create) {
 if (!isObject(it))
  return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
 if (!has(it, METADATA)) {
  if (!isExtensible(it))
   return 'F';
  if (!create)
   return 'E';
  setMetadata(it);
 }
 return it[METADATA].objectID;
};
var getWeakData = function (it, create) {
 if (!has(it, METADATA)) {
  if (!isExtensible(it))
   return true;
  if (!create)
   return false;
  setMetadata(it);
 }
 return it[METADATA].weakData;
};
var onFreeze = function (it) {
 if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA))
  setMetadata(it);
 return it;
};
var meta = module.exports = {
 REQUIRED: false,
 fastKey: fastKey,
 getWeakData: getWeakData,
 onFreeze: onFreeze
};
hiddenKeys[METADATA] = true;

/***/ }),
/* 150 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
module.exports = !fails(function () {
 return Object.isExtensible(Object.preventExtensions({}));
});

/***/ }),
/* 151 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isObject = __w_pdfjs_require__(22);
var setPrototypeOf = __w_pdfjs_require__(87);
module.exports = function ($this, dummy, Wrapper) {
 var NewTarget, NewTargetPrototype;
 if (setPrototypeOf && typeof (NewTarget = dummy.constructor) == 'function' && NewTarget !== Wrapper && isObject(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype)
  setPrototypeOf($this, NewTargetPrototype);
 return $this;
};

/***/ }),
/* 152 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var defineProperty = __w_pdfjs_require__(27).f;
var create = __w_pdfjs_require__(71);
var redefineAll = __w_pdfjs_require__(124);
var bind = __w_pdfjs_require__(62);
var anInstance = __w_pdfjs_require__(126);
var iterate = __w_pdfjs_require__(104);
var defineIterator = __w_pdfjs_require__(79);
var setSpecies = __w_pdfjs_require__(125);
var DESCRIPTORS = __w_pdfjs_require__(13);
var fastKey = __w_pdfjs_require__(149).fastKey;
var InternalStateModule = __w_pdfjs_require__(33);
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module.exports = {
 getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
  var C = wrapper(function (that, iterable) {
   anInstance(that, C, CONSTRUCTOR_NAME);
   setInternalState(that, {
    type: CONSTRUCTOR_NAME,
    index: create(null),
    first: undefined,
    last: undefined,
    size: 0
   });
   if (!DESCRIPTORS)
    that.size = 0;
   if (iterable != undefined)
    iterate(iterable, that[ADDER], that, IS_MAP);
  });
  var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
  var define = function (that, key, value) {
   var state = getInternalState(that);
   var entry = getEntry(that, key);
   var previous, index;
   if (entry) {
    entry.value = value;
   } else {
    state.last = entry = {
     index: index = fastKey(key, true),
     key: key,
     value: value,
     previous: previous = state.last,
     next: undefined,
     removed: false
    };
    if (!state.first)
     state.first = entry;
    if (previous)
     previous.next = entry;
    if (DESCRIPTORS)
     state.size++;
    else
     that.size++;
    if (index !== 'F')
     state.index[index] = entry;
   }
   return that;
  };
  var getEntry = function (that, key) {
   var state = getInternalState(that);
   var index = fastKey(key);
   var entry;
   if (index !== 'F')
    return state.index[index];
   for (entry = state.first; entry; entry = entry.next) {
    if (entry.key == key)
     return entry;
   }
  };
  redefineAll(C.prototype, {
   clear: function clear() {
    var that = this;
    var state = getInternalState(that);
    var data = state.index;
    var entry = state.first;
    while (entry) {
     entry.removed = true;
     if (entry.previous)
      entry.previous = entry.previous.next = undefined;
     delete data[entry.index];
     entry = entry.next;
    }
    state.first = state.last = undefined;
    if (DESCRIPTORS)
     state.size = 0;
    else
     that.size = 0;
   },
   'delete': function (key) {
    var that = this;
    var state = getInternalState(that);
    var entry = getEntry(that, key);
    if (entry) {
     var next = entry.next;
     var prev = entry.previous;
     delete state.index[entry.index];
     entry.removed = true;
     if (prev)
      prev.next = next;
     if (next)
      next.previous = prev;
     if (state.first == entry)
      state.first = next;
     if (state.last == entry)
      state.last = prev;
     if (DESCRIPTORS)
      state.size--;
     else
      that.size--;
    }
    return !!entry;
   },
   forEach: function forEach(callbackfn) {
    var state = getInternalState(this);
    var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
    var entry;
    while (entry = entry ? entry.next : state.first) {
     boundFunction(entry.value, entry.key, this);
     while (entry && entry.removed)
      entry = entry.previous;
    }
   },
   has: function has(key) {
    return !!getEntry(this, key);
   }
  });
  redefineAll(C.prototype, IS_MAP ? {
   get: function get(key) {
    var entry = getEntry(this, key);
    return entry && entry.value;
   },
   set: function set(key, value) {
    return define(this, key === 0 ? 0 : key, value);
   }
  } : {
   add: function add(value) {
    return define(this, value = value === 0 ? 0 : value, value);
   }
  });
  if (DESCRIPTORS)
   defineProperty(C.prototype, 'size', {
    get: function () {
     return getInternalState(this).size;
    }
   });
  return C;
 },
 setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
  var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
  var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
  var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
  defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
   setInternalState(this, {
    type: ITERATOR_NAME,
    target: iterated,
    state: getInternalCollectionState(iterated),
    kind: kind,
    last: undefined
   });
  }, function () {
   var state = getInternalIteratorState(this);
   var kind = state.kind;
   var entry = state.last;
   while (entry && entry.removed)
    entry = entry.previous;
   if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
    state.target = undefined;
    return {
     value: undefined,
     done: true
    };
   }
   if (kind == 'keys')
    return {
     value: entry.key,
     done: false
    };
   if (kind == 'values')
    return {
     value: entry.value,
     done: false
    };
   return {
    value: [
     entry.key,
     entry.value
    ],
    done: false
   };
  }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
  setSpecies(CONSTRUCTOR_NAME);
 }
};

/***/ }),
/* 153 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(154);
__w_pdfjs_require__(118);
__w_pdfjs_require__(77);
__w_pdfjs_require__(120);
var path = __w_pdfjs_require__(43);
module.exports = path.Set;

/***/ }),
/* 154 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var collection = __w_pdfjs_require__(148);
var collectionStrong = __w_pdfjs_require__(152);
module.exports = collection('Set', function (init) {
 return function Set() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
}, collectionStrong);

/***/ }),
/* 155 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(118);
__w_pdfjs_require__(156);
__w_pdfjs_require__(120);
var path = __w_pdfjs_require__(43);
module.exports = path.WeakMap;

/***/ }),
/* 156 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var global = __w_pdfjs_require__(11);
var redefineAll = __w_pdfjs_require__(124);
var InternalMetadataModule = __w_pdfjs_require__(149);
var collection = __w_pdfjs_require__(148);
var collectionWeak = __w_pdfjs_require__(157);
var isObject = __w_pdfjs_require__(22);
var enforceIternalState = __w_pdfjs_require__(33).enforce;
var NATIVE_WEAK_MAP = __w_pdfjs_require__(34);
var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
var isExtensible = Object.isExtensible;
var InternalWeakMap;
var wrapper = function (init) {
 return function WeakMap() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
};
var $WeakMap = module.exports = collection('WeakMap', wrapper, collectionWeak);
if (NATIVE_WEAK_MAP && IS_IE11) {
 InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
 InternalMetadataModule.REQUIRED = true;
 var WeakMapPrototype = $WeakMap.prototype;
 var nativeDelete = WeakMapPrototype['delete'];
 var nativeHas = WeakMapPrototype.has;
 var nativeGet = WeakMapPrototype.get;
 var nativeSet = WeakMapPrototype.set;
 redefineAll(WeakMapPrototype, {
  'delete': function (key) {
   if (isObject(key) && !isExtensible(key)) {
    var state = enforceIternalState(this);
    if (!state.frozen)
     state.frozen = new InternalWeakMap();
    return nativeDelete.call(this, key) || state.frozen['delete'](key);
   }
   return nativeDelete.call(this, key);
  },
  has: function has(key) {
   if (isObject(key) && !isExtensible(key)) {
    var state = enforceIternalState(this);
    if (!state.frozen)
     state.frozen = new InternalWeakMap();
    return nativeHas.call(this, key) || state.frozen.has(key);
   }
   return nativeHas.call(this, key);
  },
  get: function get(key) {
   if (isObject(key) && !isExtensible(key)) {
    var state = enforceIternalState(this);
    if (!state.frozen)
     state.frozen = new InternalWeakMap();
    return nativeHas.call(this, key) ? nativeGet.call(this, key) : state.frozen.get(key);
   }
   return nativeGet.call(this, key);
  },
  set: function set(key, value) {
   if (isObject(key) && !isExtensible(key)) {
    var state = enforceIternalState(this);
    if (!state.frozen)
     state.frozen = new InternalWeakMap();
    nativeHas.call(this, key) ? nativeSet.call(this, key, value) : state.frozen.set(key, value);
   } else
    nativeSet.call(this, key, value);
   return this;
  }
 });
}

/***/ }),
/* 157 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var redefineAll = __w_pdfjs_require__(124);
var getWeakData = __w_pdfjs_require__(149).getWeakData;
var anObject = __w_pdfjs_require__(28);
var isObject = __w_pdfjs_require__(22);
var anInstance = __w_pdfjs_require__(126);
var iterate = __w_pdfjs_require__(104);
var ArrayIterationModule = __w_pdfjs_require__(158);
var $has = __w_pdfjs_require__(23);
var InternalStateModule = __w_pdfjs_require__(33);
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
var find = ArrayIterationModule.find;
var findIndex = ArrayIterationModule.findIndex;
var id = 0;
var uncaughtFrozenStore = function (store) {
 return store.frozen || (store.frozen = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function () {
 this.entries = [];
};
var findUncaughtFrozen = function (store, key) {
 return find(store.entries, function (it) {
  return it[0] === key;
 });
};
UncaughtFrozenStore.prototype = {
 get: function (key) {
  var entry = findUncaughtFrozen(this, key);
  if (entry)
   return entry[1];
 },
 has: function (key) {
  return !!findUncaughtFrozen(this, key);
 },
 set: function (key, value) {
  var entry = findUncaughtFrozen(this, key);
  if (entry)
   entry[1] = value;
  else
   this.entries.push([
    key,
    value
   ]);
 },
 'delete': function (key) {
  var index = findIndex(this.entries, function (it) {
   return it[0] === key;
  });
  if (~index)
   this.entries.splice(index, 1);
  return !!~index;
 }
};
module.exports = {
 getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
  var C = wrapper(function (that, iterable) {
   anInstance(that, C, CONSTRUCTOR_NAME);
   setInternalState(that, {
    type: CONSTRUCTOR_NAME,
    id: id++,
    frozen: undefined
   });
   if (iterable != undefined)
    iterate(iterable, that[ADDER], that, IS_MAP);
  });
  var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
  var define = function (that, key, value) {
   var state = getInternalState(that);
   var data = getWeakData(anObject(key), true);
   if (data === true)
    uncaughtFrozenStore(state).set(key, value);
   else
    data[state.id] = value;
   return that;
  };
  redefineAll(C.prototype, {
   'delete': function (key) {
    var state = getInternalState(this);
    if (!isObject(key))
     return false;
    var data = getWeakData(key);
    if (data === true)
     return uncaughtFrozenStore(state)['delete'](key);
    return data && $has(data, state.id) && delete data[state.id];
   },
   has: function has(key) {
    var state = getInternalState(this);
    if (!isObject(key))
     return false;
    var data = getWeakData(key);
    if (data === true)
     return uncaughtFrozenStore(state).has(key);
    return data && $has(data, state.id);
   }
  });
  redefineAll(C.prototype, IS_MAP ? {
   get: function get(key) {
    var state = getInternalState(this);
    if (isObject(key)) {
     var data = getWeakData(key);
     if (data === true)
      return uncaughtFrozenStore(state).get(key);
     return data ? data[state.id] : undefined;
    }
   },
   set: function set(key, value) {
    return define(this, key, value);
   }
  } : {
   add: function add(value) {
    return define(this, value, true);
   }
  });
  return C;
 }
};

/***/ }),
/* 158 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var bind = __w_pdfjs_require__(62);
var IndexedObject = __w_pdfjs_require__(18);
var toObject = __w_pdfjs_require__(83);
var toLength = __w_pdfjs_require__(47);
var arraySpeciesCreate = __w_pdfjs_require__(159);
var push = [].push;
var createMethod = function (TYPE) {
 var IS_MAP = TYPE == 1;
 var IS_FILTER = TYPE == 2;
 var IS_SOME = TYPE == 3;
 var IS_EVERY = TYPE == 4;
 var IS_FIND_INDEX = TYPE == 6;
 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
 return function ($this, callbackfn, that, specificCreate) {
  var O = toObject($this);
  var self = IndexedObject(O);
  var boundFunction = bind(callbackfn, that, 3);
  var length = toLength(self.length);
  var index = 0;
  var create = specificCreate || arraySpeciesCreate;
  var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
  var value, result;
  for (; length > index; index++)
   if (NO_HOLES || index in self) {
    value = self[index];
    result = boundFunction(value, index, O);
    if (TYPE) {
     if (IS_MAP)
      target[index] = result;
     else if (result)
      switch (TYPE) {
      case 3:
       return true;
      case 5:
       return value;
      case 6:
       return index;
      case 2:
       push.call(target, value);
      }
     else if (IS_EVERY)
      return false;
    }
   }
  return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
 };
};
module.exports = {
 forEach: createMethod(0),
 map: createMethod(1),
 filter: createMethod(2),
 some: createMethod(3),
 every: createMethod(4),
 find: createMethod(5),
 findIndex: createMethod(6)
};

/***/ }),
/* 159 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var isObject = __w_pdfjs_require__(22);
var isArray = __w_pdfjs_require__(160);
var wellKnownSymbol = __w_pdfjs_require__(57);
var SPECIES = wellKnownSymbol('species');
module.exports = function (originalArray, length) {
 var C;
 if (isArray(originalArray)) {
  C = originalArray.constructor;
  if (typeof C == 'function' && (C === Array || isArray(C.prototype)))
   C = undefined;
  else if (isObject(C)) {
   C = C[SPECIES];
   if (C === null)
    C = undefined;
  }
 }
 return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
};

/***/ }),
/* 160 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var classof = __w_pdfjs_require__(19);
module.exports = Array.isArray || function isArray(arg) {
 return classof(arg) == 'Array';
};

/***/ }),
/* 161 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(118);
__w_pdfjs_require__(162);
__w_pdfjs_require__(120);
var path = __w_pdfjs_require__(43);
module.exports = path.WeakSet;

/***/ }),
/* 162 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var collection = __w_pdfjs_require__(148);
var collectionWeak = __w_pdfjs_require__(157);
collection('WeakSet', function (init) {
 return function WeakSet() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
}, collectionWeak);

/***/ }),
/* 163 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(164);
var entryUnbind = __w_pdfjs_require__(61);
module.exports = entryUnbind('String', 'codePointAt');

/***/ }),
/* 164 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var codeAt = __w_pdfjs_require__(78).codeAt;
$({
 target: 'String',
 proto: true
}, {
 codePointAt: function codePointAt(pos) {
  return codeAt(this, pos);
 }
});

/***/ }),
/* 165 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(166);
var path = __w_pdfjs_require__(43);
module.exports = path.String.fromCodePoint;

/***/ }),
/* 166 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var toAbsoluteIndex = __w_pdfjs_require__(49);
var fromCharCode = String.fromCharCode;
var nativeFromCodePoint = String.fromCodePoint;
var INCORRECT_LENGTH = !!nativeFromCodePoint && nativeFromCodePoint.length != 1;
$({
 target: 'String',
 stat: true,
 forced: INCORRECT_LENGTH
}, {
 fromCodePoint: function fromCodePoint(x) {
  var elements = [];
  var length = arguments.length;
  var i = 0;
  var code;
  while (length > i) {
   code = +arguments[i++];
   if (toAbsoluteIndex(code, 0x10FFFF) !== code)
    throw RangeError(code + ' is not a valid code point');
   elements.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00));
  }
  return elements.join('');
 }
});

/***/ }),
/* 167 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(168);
__w_pdfjs_require__(118);
__w_pdfjs_require__(170);
__w_pdfjs_require__(174);
__w_pdfjs_require__(175);
__w_pdfjs_require__(176);
__w_pdfjs_require__(177);
__w_pdfjs_require__(178);
__w_pdfjs_require__(179);
__w_pdfjs_require__(180);
__w_pdfjs_require__(181);
__w_pdfjs_require__(182);
__w_pdfjs_require__(183);
__w_pdfjs_require__(184);
__w_pdfjs_require__(185);
__w_pdfjs_require__(186);
__w_pdfjs_require__(187);
__w_pdfjs_require__(188);
__w_pdfjs_require__(189);
var path = __w_pdfjs_require__(43);
module.exports = path.Symbol;

/***/ }),
/* 168 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var fails = __w_pdfjs_require__(14);
var isArray = __w_pdfjs_require__(160);
var isObject = __w_pdfjs_require__(22);
var toObject = __w_pdfjs_require__(83);
var toLength = __w_pdfjs_require__(47);
var createProperty = __w_pdfjs_require__(93);
var arraySpeciesCreate = __w_pdfjs_require__(159);
var arrayMethodHasSpeciesSupport = __w_pdfjs_require__(169);
var wellKnownSymbol = __w_pdfjs_require__(57);
var V8_VERSION = __w_pdfjs_require__(135);
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
 var array = [];
 array[IS_CONCAT_SPREADABLE] = false;
 return array.concat()[0] !== array;
});
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
var isConcatSpreadable = function (O) {
 if (!isObject(O))
  return false;
 var spreadable = O[IS_CONCAT_SPREADABLE];
 return spreadable !== undefined ? !!spreadable : isArray(O);
};
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
$({
 target: 'Array',
 proto: true,
 forced: FORCED
}, {
 concat: function concat(arg) {
  var O = toObject(this);
  var A = arraySpeciesCreate(O, 0);
  var n = 0;
  var i, k, length, len, E;
  for (i = -1, length = arguments.length; i < length; i++) {
   E = i === -1 ? O : arguments[i];
   if (isConcatSpreadable(E)) {
    len = toLength(E.length);
    if (n + len > MAX_SAFE_INTEGER)
     throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
    for (k = 0; k < len; k++, n++)
     if (k in E)
      createProperty(A, n, E[k]);
   } else {
    if (n >= MAX_SAFE_INTEGER)
     throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
    createProperty(A, n++, E);
   }
  }
  A.length = n;
  return A;
 }
});

/***/ }),
/* 169 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var fails = __w_pdfjs_require__(14);
var wellKnownSymbol = __w_pdfjs_require__(57);
var V8_VERSION = __w_pdfjs_require__(135);
var SPECIES = wellKnownSymbol('species');
module.exports = function (METHOD_NAME) {
 return V8_VERSION >= 51 || !fails(function () {
  var array = [];
  var constructor = array.constructor = {};
  constructor[SPECIES] = function () {
   return { foo: 1 };
  };
  return array[METHOD_NAME](Boolean).foo !== 1;
 });
};

/***/ }),
/* 170 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var global = __w_pdfjs_require__(11);
var getBuiltIn = __w_pdfjs_require__(42);
var IS_PURE = __w_pdfjs_require__(37);
var DESCRIPTORS = __w_pdfjs_require__(13);
var NATIVE_SYMBOL = __w_pdfjs_require__(58);
var USE_SYMBOL_AS_UID = __w_pdfjs_require__(59);
var fails = __w_pdfjs_require__(14);
var has = __w_pdfjs_require__(23);
var isArray = __w_pdfjs_require__(160);
var isObject = __w_pdfjs_require__(22);
var anObject = __w_pdfjs_require__(28);
var toObject = __w_pdfjs_require__(83);
var toIndexedObject = __w_pdfjs_require__(17);
var toPrimitive = __w_pdfjs_require__(21);
var createPropertyDescriptor = __w_pdfjs_require__(16);
var nativeObjectCreate = __w_pdfjs_require__(71);
var objectKeys = __w_pdfjs_require__(73);
var getOwnPropertyNamesModule = __w_pdfjs_require__(44);
var getOwnPropertyNamesExternal = __w_pdfjs_require__(171);
var getOwnPropertySymbolsModule = __w_pdfjs_require__(51);
var getOwnPropertyDescriptorModule = __w_pdfjs_require__(12);
var definePropertyModule = __w_pdfjs_require__(27);
var propertyIsEnumerableModule = __w_pdfjs_require__(15);
var createNonEnumerableProperty = __w_pdfjs_require__(26);
var redefine = __w_pdfjs_require__(29);
var shared = __w_pdfjs_require__(36);
var sharedKey = __w_pdfjs_require__(35);
var hiddenKeys = __w_pdfjs_require__(39);
var uid = __w_pdfjs_require__(38);
var wellKnownSymbol = __w_pdfjs_require__(57);
var wrappedWellKnownSymbolModule = __w_pdfjs_require__(172);
var defineWellKnownSymbol = __w_pdfjs_require__(173);
var setToStringTag = __w_pdfjs_require__(85);
var InternalStateModule = __w_pdfjs_require__(33);
var $forEach = __w_pdfjs_require__(158).forEach;
var HIDDEN = sharedKey('hidden');
var SYMBOL = 'Symbol';
var PROTOTYPE = 'prototype';
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(SYMBOL);
var ObjectPrototype = Object[PROTOTYPE];
var $Symbol = global.Symbol;
var $stringify = getBuiltIn('JSON', 'stringify');
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
var AllSymbols = shared('symbols');
var ObjectPrototypeSymbols = shared('op-symbols');
var StringToSymbolRegistry = shared('string-to-symbol-registry');
var SymbolToStringRegistry = shared('symbol-to-string-registry');
var WellKnownSymbolsStore = shared('wks');
var QObject = global.QObject;
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
 return nativeObjectCreate(nativeDefineProperty({}, 'a', {
  get: function () {
   return nativeDefineProperty(this, 'a', { value: 7 }).a;
  }
 })).a != 7;
}) ? function (O, P, Attributes) {
 var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
 if (ObjectPrototypeDescriptor)
  delete ObjectPrototype[P];
 nativeDefineProperty(O, P, Attributes);
 if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
  nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
 }
} : nativeDefineProperty;
var wrap = function (tag, description) {
 var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
 setInternalState(symbol, {
  type: SYMBOL,
  tag: tag,
  description: description
 });
 if (!DESCRIPTORS)
  symbol.description = description;
 return symbol;
};
var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
 return typeof it == 'symbol';
} : function (it) {
 return Object(it) instanceof $Symbol;
};
var $defineProperty = function defineProperty(O, P, Attributes) {
 if (O === ObjectPrototype)
  $defineProperty(ObjectPrototypeSymbols, P, Attributes);
 anObject(O);
 var key = toPrimitive(P, true);
 anObject(Attributes);
 if (has(AllSymbols, key)) {
  if (!Attributes.enumerable) {
   if (!has(O, HIDDEN))
    nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
   O[HIDDEN][key] = true;
  } else {
   if (has(O, HIDDEN) && O[HIDDEN][key])
    O[HIDDEN][key] = false;
   Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
  }
  return setSymbolDescriptor(O, key, Attributes);
 }
 return nativeDefineProperty(O, key, Attributes);
};
var $defineProperties = function defineProperties(O, Properties) {
 anObject(O);
 var properties = toIndexedObject(Properties);
 var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
 $forEach(keys, function (key) {
  if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key))
   $defineProperty(O, key, properties[key]);
 });
 return O;
};
var $create = function create(O, Properties) {
 return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
};
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
 var P = toPrimitive(V, true);
 var enumerable = nativePropertyIsEnumerable.call(this, P);
 if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P))
  return false;
 return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
 var it = toIndexedObject(O);
 var key = toPrimitive(P, true);
 if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key))
  return;
 var descriptor = nativeGetOwnPropertyDescriptor(it, key);
 if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
  descriptor.enumerable = true;
 }
 return descriptor;
};
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
 var names = nativeGetOwnPropertyNames(toIndexedObject(O));
 var result = [];
 $forEach(names, function (key) {
  if (!has(AllSymbols, key) && !has(hiddenKeys, key))
   result.push(key);
 });
 return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
 var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
 var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
 var result = [];
 $forEach(names, function (key) {
  if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
   result.push(AllSymbols[key]);
  }
 });
 return result;
};
if (!NATIVE_SYMBOL) {
 $Symbol = function Symbol() {
  if (this instanceof $Symbol)
   throw TypeError('Symbol is not a constructor');
  var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
  var tag = uid(description);
  var setter = function (value) {
   if (this === ObjectPrototype)
    setter.call(ObjectPrototypeSymbols, value);
   if (has(this, HIDDEN) && has(this[HIDDEN], tag))
    this[HIDDEN][tag] = false;
   setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
  };
  if (DESCRIPTORS && USE_SETTER)
   setSymbolDescriptor(ObjectPrototype, tag, {
    configurable: true,
    set: setter
   });
  return wrap(tag, description);
 };
 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
  return getInternalState(this).tag;
 });
 redefine($Symbol, 'withoutSetter', function (description) {
  return wrap(uid(description), description);
 });
 propertyIsEnumerableModule.f = $propertyIsEnumerable;
 definePropertyModule.f = $defineProperty;
 getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
 getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
 getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
 wrappedWellKnownSymbolModule.f = function (name) {
  return wrap(wellKnownSymbol(name), name);
 };
 if (DESCRIPTORS) {
  nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
   configurable: true,
   get: function description() {
    return getInternalState(this).description;
   }
  });
  if (!IS_PURE) {
   redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
  }
 }
}
$({
 global: true,
 wrap: true,
 forced: !NATIVE_SYMBOL,
 sham: !NATIVE_SYMBOL
}, { Symbol: $Symbol });
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
 defineWellKnownSymbol(name);
});
$({
 target: SYMBOL,
 stat: true,
 forced: !NATIVE_SYMBOL
}, {
 'for': function (key) {
  var string = String(key);
  if (has(StringToSymbolRegistry, string))
   return StringToSymbolRegistry[string];
  var symbol = $Symbol(string);
  StringToSymbolRegistry[string] = symbol;
  SymbolToStringRegistry[symbol] = string;
  return symbol;
 },
 keyFor: function keyFor(sym) {
  if (!isSymbol(sym))
   throw TypeError(sym + ' is not a symbol');
  if (has(SymbolToStringRegistry, sym))
   return SymbolToStringRegistry[sym];
 },
 useSetter: function () {
  USE_SETTER = true;
 },
 useSimple: function () {
  USE_SETTER = false;
 }
});
$({
 target: 'Object',
 stat: true,
 forced: !NATIVE_SYMBOL,
 sham: !DESCRIPTORS
}, {
 create: $create,
 defineProperty: $defineProperty,
 defineProperties: $defineProperties,
 getOwnPropertyDescriptor: $getOwnPropertyDescriptor
});
$({
 target: 'Object',
 stat: true,
 forced: !NATIVE_SYMBOL
}, {
 getOwnPropertyNames: $getOwnPropertyNames,
 getOwnPropertySymbols: $getOwnPropertySymbols
});
$({
 target: 'Object',
 stat: true,
 forced: fails(function () {
  getOwnPropertySymbolsModule.f(1);
 })
}, {
 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
  return getOwnPropertySymbolsModule.f(toObject(it));
 }
});
if ($stringify) {
 var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
  var symbol = $Symbol();
  return $stringify([symbol]) != '[null]' || $stringify({ a: symbol }) != '{}' || $stringify(Object(symbol)) != '{}';
 });
 $({
  target: 'JSON',
  stat: true,
  forced: FORCED_JSON_STRINGIFY
 }, {
  stringify: function stringify(it, replacer, space) {
   var args = [it];
   var index = 1;
   var $replacer;
   while (arguments.length > index)
    args.push(arguments[index++]);
   $replacer = replacer;
   if (!isObject(replacer) && it === undefined || isSymbol(it))
    return;
   if (!isArray(replacer))
    replacer = function (key, value) {
     if (typeof $replacer == 'function')
      value = $replacer.call(this, key, value);
     if (!isSymbol(value))
      return value;
    };
   args[1] = replacer;
   return $stringify.apply(null, args);
  }
 });
}
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
 createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
}
setToStringTag($Symbol, SYMBOL);
hiddenKeys[HIDDEN] = true;

/***/ }),
/* 171 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var toIndexedObject = __w_pdfjs_require__(17);
var nativeGetOwnPropertyNames = __w_pdfjs_require__(44).f;
var toString = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function (it) {
 try {
  return nativeGetOwnPropertyNames(it);
 } catch (error) {
  return windowNames.slice();
 }
};
module.exports.f = function getOwnPropertyNames(it) {
 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : nativeGetOwnPropertyNames(toIndexedObject(it));
};

/***/ }),
/* 172 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var wellKnownSymbol = __w_pdfjs_require__(57);
exports.f = wellKnownSymbol;

/***/ }),
/* 173 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var path = __w_pdfjs_require__(43);
var has = __w_pdfjs_require__(23);
var wrappedWellKnownSymbolModule = __w_pdfjs_require__(172);
var defineProperty = __w_pdfjs_require__(27).f;
module.exports = function (NAME) {
 var Symbol = path.Symbol || (path.Symbol = {});
 if (!has(Symbol, NAME))
  defineProperty(Symbol, NAME, { value: wrappedWellKnownSymbolModule.f(NAME) });
};

/***/ }),
/* 174 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('asyncIterator');

/***/ }),
/* 175 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var DESCRIPTORS = __w_pdfjs_require__(13);
var global = __w_pdfjs_require__(11);
var has = __w_pdfjs_require__(23);
var isObject = __w_pdfjs_require__(22);
var defineProperty = __w_pdfjs_require__(27).f;
var copyConstructorProperties = __w_pdfjs_require__(40);
var NativeSymbol = global.Symbol;
if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) || NativeSymbol().description !== undefined)) {
 var EmptyStringDescriptionStore = {};
 var SymbolWrapper = function Symbol() {
  var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
  var result = this instanceof SymbolWrapper ? new NativeSymbol(description) : description === undefined ? NativeSymbol() : NativeSymbol(description);
  if (description === '')
   EmptyStringDescriptionStore[result] = true;
  return result;
 };
 copyConstructorProperties(SymbolWrapper, NativeSymbol);
 var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
 symbolPrototype.constructor = SymbolWrapper;
 var symbolToString = symbolPrototype.toString;
 var native = String(NativeSymbol('test')) == 'Symbol(test)';
 var regexp = /^Symbol\((.*)\)[^)]+$/;
 defineProperty(symbolPrototype, 'description', {
  configurable: true,
  get: function description() {
   var symbol = isObject(this) ? this.valueOf() : this;
   var string = symbolToString.call(symbol);
   if (has(EmptyStringDescriptionStore, symbol))
    return '';
   var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
   return desc === '' ? undefined : desc;
  }
 });
 $({
  global: true,
  forced: true
 }, { Symbol: SymbolWrapper });
}

/***/ }),
/* 176 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('hasInstance');

/***/ }),
/* 177 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('isConcatSpreadable');

/***/ }),
/* 178 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('iterator');

/***/ }),
/* 179 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('match');

/***/ }),
/* 180 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('matchAll');

/***/ }),
/* 181 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('replace');

/***/ }),
/* 182 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('search');

/***/ }),
/* 183 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('species');

/***/ }),
/* 184 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('split');

/***/ }),
/* 185 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('toPrimitive');

/***/ }),
/* 186 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('toStringTag');

/***/ }),
/* 187 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var defineWellKnownSymbol = __w_pdfjs_require__(173);
defineWellKnownSymbol('unscopables');

/***/ }),
/* 188 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var setToStringTag = __w_pdfjs_require__(85);
setToStringTag(Math, 'Math', true);

/***/ }),
/* 189 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var global = __w_pdfjs_require__(11);
var setToStringTag = __w_pdfjs_require__(85);
setToStringTag(global.JSON, 'JSON', true);

/***/ }),
/* 190 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(191);
var entryUnbind = __w_pdfjs_require__(61);
module.exports = entryUnbind('String', 'padStart');

/***/ }),
/* 191 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var $padStart = __w_pdfjs_require__(192).start;
var WEBKIT_BUG = __w_pdfjs_require__(194);
$({
 target: 'String',
 proto: true,
 forced: WEBKIT_BUG
}, {
 padStart: function padStart(maxLength) {
  return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
 }
});

/***/ }),
/* 192 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var toLength = __w_pdfjs_require__(47);
var repeat = __w_pdfjs_require__(193);
var requireObjectCoercible = __w_pdfjs_require__(20);
var ceil = Math.ceil;
var createMethod = function (IS_END) {
 return function ($this, maxLength, fillString) {
  var S = String(requireObjectCoercible($this));
  var stringLength = S.length;
  var fillStr = fillString === undefined ? ' ' : String(fillString);
  var intMaxLength = toLength(maxLength);
  var fillLen, stringFiller;
  if (intMaxLength <= stringLength || fillStr == '')
   return S;
  fillLen = intMaxLength - stringLength;
  stringFiller = repeat.call(fillStr, ceil(fillLen / fillStr.length));
  if (stringFiller.length > fillLen)
   stringFiller = stringFiller.slice(0, fillLen);
  return IS_END ? S + stringFiller : stringFiller + S;
 };
};
module.exports = {
 start: createMethod(false),
 end: createMethod(true)
};

/***/ }),
/* 193 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var toInteger = __w_pdfjs_require__(48);
var requireObjectCoercible = __w_pdfjs_require__(20);
module.exports = ''.repeat || function repeat(count) {
 var str = String(requireObjectCoercible(this));
 var result = '';
 var n = toInteger(count);
 if (n < 0 || n == Infinity)
  throw RangeError('Wrong number of repetitions');
 for (; n > 0; (n >>>= 1) && (str += str))
  if (n & 1)
   result += str;
 return result;
};

/***/ }),
/* 194 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var userAgent = __w_pdfjs_require__(129);
module.exports = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);

/***/ }),
/* 195 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(196);
var entryUnbind = __w_pdfjs_require__(61);
module.exports = entryUnbind('String', 'padEnd');

/***/ }),
/* 196 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";

var $ = __w_pdfjs_require__(10);
var $padEnd = __w_pdfjs_require__(192).end;
var WEBKIT_BUG = __w_pdfjs_require__(194);
$({
 target: 'String',
 proto: true,
 forced: WEBKIT_BUG
}, {
 padEnd: function padEnd(maxLength) {
  return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
 }
});

/***/ }),
/* 197 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(198);
var path = __w_pdfjs_require__(43);
module.exports = path.Object.values;

/***/ }),
/* 198 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var $values = __w_pdfjs_require__(199).values;
$({
 target: 'Object',
 stat: true
}, {
 values: function values(O) {
  return $values(O);
 }
});

/***/ }),
/* 199 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var DESCRIPTORS = __w_pdfjs_require__(13);
var objectKeys = __w_pdfjs_require__(73);
var toIndexedObject = __w_pdfjs_require__(17);
var propertyIsEnumerable = __w_pdfjs_require__(15).f;
var createMethod = function (TO_ENTRIES) {
 return function (it) {
  var O = toIndexedObject(it);
  var keys = objectKeys(O);
  var length = keys.length;
  var i = 0;
  var result = [];
  var key;
  while (length > i) {
   key = keys[i++];
   if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {
    result.push(TO_ENTRIES ? [
     key,
     O[key]
    ] : O[key]);
   }
  }
  return result;
 };
};
module.exports = {
 entries: createMethod(true),
 values: createMethod(false)
};

/***/ }),
/* 200 */
/***/ (function(module, exports, __w_pdfjs_require__) {

__w_pdfjs_require__(201);
var path = __w_pdfjs_require__(43);
module.exports = path.Object.entries;

/***/ }),
/* 201 */
/***/ (function(module, exports, __w_pdfjs_require__) {

var $ = __w_pdfjs_require__(10);
var $entries = __w_pdfjs_require__(199).entries;
$({
 target: 'Object',
 stat: true
}, {
 entries: function entries(O) {
  return $entries(O);
 }
});

/***/ }),
/* 202 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getDocument = getDocument;
exports.setPDFNetworkStreamFactory = setPDFNetworkStreamFactory;
exports.build = exports.version = exports.PDFPageProxy = exports.PDFDocumentProxy = exports.PDFWorker = exports.PDFDataRangeTransport = exports.LoopbackPort = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

var _display_utils = __w_pdfjs_require__(1);

var _font_loader = __w_pdfjs_require__(203);

var _node_utils = __w_pdfjs_require__(204);

var _annotation_storage = __w_pdfjs_require__(205);

var _api_compatibility = __w_pdfjs_require__(206);

var _canvas = __w_pdfjs_require__(207);

var _worker_options = __w_pdfjs_require__(209);

var _is_node = __w_pdfjs_require__(7);

var _message_handler = __w_pdfjs_require__(210);

var _metadata = __w_pdfjs_require__(211);

var _optional_content_config = __w_pdfjs_require__(213);

var _transport_stream = __w_pdfjs_require__(214);

var _webgl = __w_pdfjs_require__(215);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var DEFAULT_RANGE_CHUNK_SIZE = 65536;
var RENDERING_CANCELLED_TIMEOUT = 100;
var DefaultCanvasFactory = _is_node.isNodeJS ? _node_utils.NodeCanvasFactory : _display_utils.DOMCanvasFactory;
var DefaultCMapReaderFactory = _is_node.isNodeJS ? _node_utils.NodeCMapReaderFactory : _display_utils.DOMCMapReaderFactory;
var createPDFNetworkStream;

function setPDFNetworkStreamFactory(pdfNetworkStreamFactory) {
  createPDFNetworkStream = pdfNetworkStreamFactory;
}

function getDocument(src) {
  var task = new PDFDocumentLoadingTask();
  var source;

  if (typeof src === "string") {
    source = {
      url: src
    };
  } else if ((0, _util.isArrayBuffer)(src)) {
    source = {
      data: src
    };
  } else if (src instanceof PDFDataRangeTransport) {
    source = {
      range: src
    };
  } else {
    if (_typeof(src) !== "object") {
      throw new Error("Invalid parameter in getDocument, " + "need either Uint8Array, string or a parameter object");
    }

    if (!src.url && !src.data && !src.range) {
      throw new Error("Invalid parameter object: need either .data, .range or .url");
    }

    source = src;
  }

  var params = Object.create(null);
  var rangeTransport = null,
      worker = null;

  for (var key in source) {
    if (key === "url" && typeof window !== "undefined") {
      params[key] = new URL(source[key], window.location).href;
      continue;
    } else if (key === "range") {
      rangeTransport = source[key];
      continue;
    } else if (key === "worker") {
      worker = source[key];
      continue;
    } else if (key === "data" && !(source[key] instanceof Uint8Array)) {
      var pdfBytes = source[key];

      if (typeof pdfBytes === "string") {
        params[key] = (0, _util.stringToBytes)(pdfBytes);
      } else if (_typeof(pdfBytes) === "object" && pdfBytes !== null && !isNaN(pdfBytes.length)) {
        params[key] = new Uint8Array(pdfBytes);
      } else if ((0, _util.isArrayBuffer)(pdfBytes)) {
        params[key] = new Uint8Array(pdfBytes);
      } else {
        throw new Error("Invalid PDF binary data: either typed array, " + "string or array-like object is expected in the " + "data property.");
      }

      continue;
    }

    params[key] = source[key];
  }

  params.rangeChunkSize = params.rangeChunkSize || DEFAULT_RANGE_CHUNK_SIZE;
  params.CMapReaderFactory = params.CMapReaderFactory || DefaultCMapReaderFactory;
  params.ignoreErrors = params.stopAtErrors !== true;
  params.fontExtraProperties = params.fontExtraProperties === true;
  params.pdfBug = params.pdfBug === true;

  if (!Number.isInteger(params.maxImageSize)) {
    params.maxImageSize = -1;
  }

  if (typeof params.isEvalSupported !== "boolean") {
    params.isEvalSupported = true;
  }

  if (typeof params.disableFontFace !== "boolean") {
    params.disableFontFace = _api_compatibility.apiCompatibilityParams.disableFontFace || false;
  }

  if (typeof params.ownerDocument === "undefined") {
    params.ownerDocument = globalThis.document;
  }

  if (typeof params.disableRange !== "boolean") {
    params.disableRange = false;
  }

  if (typeof params.disableStream !== "boolean") {
    params.disableStream = false;
  }

  if (typeof params.disableAutoFetch !== "boolean") {
    params.disableAutoFetch = false;
  }

  (0, _util.setVerbosityLevel)(params.verbosity);

  if (!worker) {
    var workerParams = {
      verbosity: params.verbosity,
      port: _worker_options.GlobalWorkerOptions.workerPort
    };
    worker = workerParams.port ? PDFWorker.fromPort(workerParams) : new PDFWorker(workerParams);
    task._worker = worker;
  }

  var docId = task.docId;
  worker.promise.then(function () {
    if (task.destroyed) {
      throw new Error("Loading aborted");
    }

    var workerIdPromise = _fetchDocument(worker, params, rangeTransport, docId);

    var networkStreamPromise = new Promise(function (resolve) {
      var networkStream;

      if (rangeTransport) {
        networkStream = new _transport_stream.PDFDataTransportStream({
          length: params.length,
          initialData: params.initialData,
          progressiveDone: params.progressiveDone,
          disableRange: params.disableRange,
          disableStream: params.disableStream
        }, rangeTransport);
      } else if (!params.data) {
        networkStream = createPDFNetworkStream({
          url: params.url,
          length: params.length,
          httpHeaders: params.httpHeaders,
          withCredentials: params.withCredentials,
          rangeChunkSize: params.rangeChunkSize,
          disableRange: params.disableRange,
          disableStream: params.disableStream
        });
      }

      resolve(networkStream);
    });
    return Promise.all([workerIdPromise, networkStreamPromise]).then(function (_ref) {
      var _ref2 = _slicedToArray(_ref, 2),
          workerId = _ref2[0],
          networkStream = _ref2[1];

      if (task.destroyed) {
        throw new Error("Loading aborted");
      }

      var messageHandler = new _message_handler.MessageHandler(docId, workerId, worker.port);
      messageHandler.postMessageTransfers = worker.postMessageTransfers;
      var transport = new WorkerTransport(messageHandler, task, networkStream, params);
      task._transport = transport;
      messageHandler.send("Ready", null);
    });
  })["catch"](task._capability.reject);
  return task;
}

function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
  if (worker.destroyed) {
    return Promise.reject(new Error("Worker was destroyed"));
  }

  if (pdfDataRangeTransport) {
    source.length = pdfDataRangeTransport.length;
    source.initialData = pdfDataRangeTransport.initialData;
    source.progressiveDone = pdfDataRangeTransport.progressiveDone;
  }

  return worker.messageHandler.sendWithPromise("GetDocRequest", {
    docId: docId,
    apiVersion: '2.6.347',
    source: {
      data: source.data,
      url: source.url,
      password: source.password,
      disableAutoFetch: source.disableAutoFetch,
      rangeChunkSize: source.rangeChunkSize,
      length: source.length
    },
    maxImageSize: source.maxImageSize,
    disableFontFace: source.disableFontFace,
    postMessageTransfers: worker.postMessageTransfers,
    docBaseUrl: source.docBaseUrl,
    ignoreErrors: source.ignoreErrors,
    isEvalSupported: source.isEvalSupported,
    fontExtraProperties: source.fontExtraProperties
  }).then(function (workerId) {
    if (worker.destroyed) {
      throw new Error("Worker was destroyed");
    }

    return workerId;
  });
}

var PDFDocumentLoadingTask = function PDFDocumentLoadingTaskClosure() {
  var nextDocumentId = 0;

  var PDFDocumentLoadingTask = /*#__PURE__*/function () {
    function PDFDocumentLoadingTask() {
      _classCallCheck(this, PDFDocumentLoadingTask);

      this._capability = (0, _util.createPromiseCapability)();
      this._transport = null;
      this._worker = null;
      this.docId = "d" + nextDocumentId++;
      this.destroyed = false;
      this.onPassword = null;
      this.onProgress = null;
      this.onUnsupportedFeature = null;
    }

    _createClass(PDFDocumentLoadingTask, [{
      key: "destroy",
      value: function destroy() {
        var _this = this;

        this.destroyed = true;
        var transportDestroyed = !this._transport ? Promise.resolve() : this._transport.destroy();
        return transportDestroyed.then(function () {
          _this._transport = null;

          if (_this._worker) {
            _this._worker.destroy();

            _this._worker = null;
          }
        });
      }
    }, {
      key: "promise",
      get: function get() {
        return this._capability.promise;
      }
    }]);

    return PDFDocumentLoadingTask;
  }();

  return PDFDocumentLoadingTask;
}();

var PDFDataRangeTransport = /*#__PURE__*/function () {
  function PDFDataRangeTransport(length, initialData) {
    var progressiveDone = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

    _classCallCheck(this, PDFDataRangeTransport);

    this.length = length;
    this.initialData = initialData;
    this.progressiveDone = progressiveDone;
    this._rangeListeners = [];
    this._progressListeners = [];
    this._progressiveReadListeners = [];
    this._progressiveDoneListeners = [];
    this._readyCapability = (0, _util.createPromiseCapability)();
  }

  _createClass(PDFDataRangeTransport, [{
    key: "addRangeListener",
    value: function addRangeListener(listener) {
      this._rangeListeners.push(listener);
    }
  }, {
    key: "addProgressListener",
    value: function addProgressListener(listener) {
      this._progressListeners.push(listener);
    }
  }, {
    key: "addProgressiveReadListener",
    value: function addProgressiveReadListener(listener) {
      this._progressiveReadListeners.push(listener);
    }
  }, {
    key: "addProgressiveDoneListener",
    value: function addProgressiveDoneListener(listener) {
      this._progressiveDoneListeners.push(listener);
    }
  }, {
    key: "onDataRange",
    value: function onDataRange(begin, chunk) {
      var _iterator = _createForOfIteratorHelper(this._rangeListeners),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var listener = _step.value;
          listener(begin, chunk);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    }
  }, {
    key: "onDataProgress",
    value: function onDataProgress(loaded, total) {
      var _this2 = this;

      this._readyCapability.promise.then(function () {
        var _iterator2 = _createForOfIteratorHelper(_this2._progressListeners),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var listener = _step2.value;
            listener(loaded, total);
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      });
    }
  }, {
    key: "onDataProgressiveRead",
    value: function onDataProgressiveRead(chunk) {
      var _this3 = this;

      this._readyCapability.promise.then(function () {
        var _iterator3 = _createForOfIteratorHelper(_this3._progressiveReadListeners),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var listener = _step3.value;
            listener(chunk);
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      });
    }
  }, {
    key: "onDataProgressiveDone",
    value: function onDataProgressiveDone() {
      var _this4 = this;

      this._readyCapability.promise.then(function () {
        var _iterator4 = _createForOfIteratorHelper(_this4._progressiveDoneListeners),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var listener = _step4.value;
            listener();
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }
      });
    }
  }, {
    key: "transportReady",
    value: function transportReady() {
      this._readyCapability.resolve();
    }
  }, {
    key: "requestDataRange",
    value: function requestDataRange(begin, end) {
      (0, _util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange");
    }
  }, {
    key: "abort",
    value: function abort() {}
  }]);

  return PDFDataRangeTransport;
}();

exports.PDFDataRangeTransport = PDFDataRangeTransport;

var PDFDocumentProxy = /*#__PURE__*/function () {
  function PDFDocumentProxy(pdfInfo, transport) {
    _classCallCheck(this, PDFDocumentProxy);

    this._pdfInfo = pdfInfo;
    this._transport = transport;
  }

  _createClass(PDFDocumentProxy, [{
    key: "getPage",
    value: function getPage(pageNumber) {
      return this._transport.getPage(pageNumber);
    }
  }, {
    key: "getPageIndex",
    value: function getPageIndex(ref) {
      return this._transport.getPageIndex(ref);
    }
  }, {
    key: "getDestinations",
    value: function getDestinations() {
      return this._transport.getDestinations();
    }
  }, {
    key: "getDestination",
    value: function getDestination(id) {
      return this._transport.getDestination(id);
    }
  }, {
    key: "getPageLabels",
    value: function getPageLabels() {
      return this._transport.getPageLabels();
    }
  }, {
    key: "getPageLayout",
    value: function getPageLayout() {
      return this._transport.getPageLayout();
    }
  }, {
    key: "getPageMode",
    value: function getPageMode() {
      return this._transport.getPageMode();
    }
  }, {
    key: "getViewerPreferences",
    value: function getViewerPreferences() {
      return this._transport.getViewerPreferences();
    }
  }, {
    key: "getOpenAction",
    value: function getOpenAction() {
      return this._transport.getOpenAction();
    }
  }, {
    key: "getAttachments",
    value: function getAttachments() {
      return this._transport.getAttachments();
    }
  }, {
    key: "getJavaScript",
    value: function getJavaScript() {
      return this._transport.getJavaScript();
    }
  }, {
    key: "getOutline",
    value: function getOutline() {
      return this._transport.getOutline();
    }
  }, {
    key: "getOptionalContentConfig",
    value: function getOptionalContentConfig() {
      return this._transport.getOptionalContentConfig();
    }
  }, {
    key: "getPermissions",
    value: function getPermissions() {
      return this._transport.getPermissions();
    }
  }, {
    key: "getMetadata",
    value: function getMetadata() {
      return this._transport.getMetadata();
    }
  }, {
    key: "getData",
    value: function getData() {
      return this._transport.getData();
    }
  }, {
    key: "getDownloadInfo",
    value: function getDownloadInfo() {
      return this._transport.downloadInfoCapability.promise;
    }
  }, {
    key: "getStats",
    value: function getStats() {
      return this._transport.getStats();
    }
  }, {
    key: "cleanup",
    value: function cleanup() {
      return this._transport.startCleanup();
    }
  }, {
    key: "destroy",
    value: function destroy() {
      return this.loadingTask.destroy();
    }
  }, {
    key: "saveDocument",
    value: function saveDocument(annotationStorage) {
      return this._transport.saveDocument(annotationStorage);
    }
  }, {
    key: "annotationStorage",
    get: function get() {
      return (0, _util.shadow)(this, "annotationStorage", new _annotation_storage.AnnotationStorage());
    }
  }, {
    key: "numPages",
    get: function get() {
      return this._pdfInfo.numPages;
    }
  }, {
    key: "fingerprint",
    get: function get() {
      return this._pdfInfo.fingerprint;
    }
  }, {
    key: "loadingParams",
    get: function get() {
      return this._transport.loadingParams;
    }
  }, {
    key: "loadingTask",
    get: function get() {
      return this._transport.loadingTask;
    }
  }]);

  return PDFDocumentProxy;
}();

exports.PDFDocumentProxy = PDFDocumentProxy;

var PDFPageProxy = /*#__PURE__*/function () {
  function PDFPageProxy(pageIndex, pageInfo, transport, ownerDocument) {
    var pdfBug = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;

    _classCallCheck(this, PDFPageProxy);

    this._pageIndex = pageIndex;
    this._pageInfo = pageInfo;
    this._ownerDocument = ownerDocument;
    this._transport = transport;
    this._stats = pdfBug ? new _display_utils.StatTimer() : null;
    this._pdfBug = pdfBug;
    this.commonObjs = transport.commonObjs;
    this.objs = new PDFObjects();
    this.cleanupAfterRender = false;
    this.pendingCleanup = false;
    this._intentStates = new Map();
    this.destroyed = false;
  }

  _createClass(PDFPageProxy, [{
    key: "getViewport",
    value: function getViewport() {
      var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
          scale = _ref3.scale,
          _ref3$rotation = _ref3.rotation,
          rotation = _ref3$rotation === void 0 ? this.rotate : _ref3$rotation,
          _ref3$offsetX = _ref3.offsetX,
          offsetX = _ref3$offsetX === void 0 ? 0 : _ref3$offsetX,
          _ref3$offsetY = _ref3.offsetY,
          offsetY = _ref3$offsetY === void 0 ? 0 : _ref3$offsetY,
          _ref3$dontFlip = _ref3.dontFlip,
          dontFlip = _ref3$dontFlip === void 0 ? false : _ref3$dontFlip;

      return new _display_utils.PageViewport({
        viewBox: this.view,
        scale: scale,
        rotation: rotation,
        offsetX: offsetX,
        offsetY: offsetY,
        dontFlip: dontFlip
      });
    }
  }, {
    key: "getAnnotations",
    value: function getAnnotations() {
      var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
          _ref4$intent = _ref4.intent,
          intent = _ref4$intent === void 0 ? null : _ref4$intent;

      if (!this.annotationsPromise || this.annotationsIntent !== intent) {
        this.annotationsPromise = this._transport.getAnnotations(this._pageIndex, intent);
        this.annotationsIntent = intent;
      }

      return this.annotationsPromise;
    }
  }, {
    key: "render",
    value: function render(_ref5) {
      var _this5 = this;

      var canvasContext = _ref5.canvasContext,
          viewport = _ref5.viewport,
          _ref5$intent = _ref5.intent,
          intent = _ref5$intent === void 0 ? "display" : _ref5$intent,
          _ref5$enableWebGL = _ref5.enableWebGL,
          enableWebGL = _ref5$enableWebGL === void 0 ? false : _ref5$enableWebGL,
          _ref5$renderInteracti = _ref5.renderInteractiveForms,
          renderInteractiveForms = _ref5$renderInteracti === void 0 ? false : _ref5$renderInteracti,
          _ref5$transform = _ref5.transform,
          transform = _ref5$transform === void 0 ? null : _ref5$transform,
          _ref5$imageLayer = _ref5.imageLayer,
          imageLayer = _ref5$imageLayer === void 0 ? null : _ref5$imageLayer,
          _ref5$canvasFactory = _ref5.canvasFactory,
          canvasFactory = _ref5$canvasFactory === void 0 ? null : _ref5$canvasFactory,
          _ref5$background = _ref5.background,
          background = _ref5$background === void 0 ? null : _ref5$background,
          _ref5$annotationStora = _ref5.annotationStorage,
          annotationStorage = _ref5$annotationStora === void 0 ? null : _ref5$annotationStora,
          _ref5$optionalContent = _ref5.optionalContentConfigPromise,
          optionalContentConfigPromise = _ref5$optionalContent === void 0 ? null : _ref5$optionalContent;

      if (this._stats) {
        this._stats.time("Overall");
      }

      var renderingIntent = intent === "print" ? "print" : "display";
      this.pendingCleanup = false;

      if (!optionalContentConfigPromise) {
        optionalContentConfigPromise = this._transport.getOptionalContentConfig();
      }

      var intentState = this._intentStates.get(renderingIntent);

      if (!intentState) {
        intentState = Object.create(null);

        this._intentStates.set(renderingIntent, intentState);
      }

      if (intentState.streamReaderCancelTimeout) {
        clearTimeout(intentState.streamReaderCancelTimeout);
        intentState.streamReaderCancelTimeout = null;
      }

      var canvasFactoryInstance = canvasFactory || new DefaultCanvasFactory({
        ownerDocument: this._ownerDocument
      });
      var webGLContext = new _webgl.WebGLContext({
        enable: enableWebGL
      });

      if (!intentState.displayReadyCapability) {
        intentState.displayReadyCapability = (0, _util.createPromiseCapability)();
        intentState.operatorList = {
          fnArray: [],
          argsArray: [],
          lastChunk: false
        };

        if (this._stats) {
          this._stats.time("Page Request");
        }

        this._pumpOperatorList({
          pageIndex: this._pageIndex,
          intent: renderingIntent,
          renderInteractiveForms: renderInteractiveForms === true,
          annotationStorage: annotationStorage && annotationStorage.getAll() || null
        });
      }

      var complete = function complete(error) {
        var i = intentState.renderTasks.indexOf(internalRenderTask);

        if (i >= 0) {
          intentState.renderTasks.splice(i, 1);
        }

        if (_this5.cleanupAfterRender || renderingIntent === "print") {
          _this5.pendingCleanup = true;
        }

        _this5._tryCleanup();

        if (error) {
          internalRenderTask.capability.reject(error);

          _this5._abortOperatorList({
            intentState: intentState,
            reason: error
          });
        } else {
          internalRenderTask.capability.resolve();
        }

        if (_this5._stats) {
          _this5._stats.timeEnd("Rendering");

          _this5._stats.timeEnd("Overall");
        }
      };

      var internalRenderTask = new InternalRenderTask({
        callback: complete,
        params: {
          canvasContext: canvasContext,
          viewport: viewport,
          transform: transform,
          imageLayer: imageLayer,
          background: background
        },
        objs: this.objs,
        commonObjs: this.commonObjs,
        operatorList: intentState.operatorList,
        pageIndex: this._pageIndex,
        canvasFactory: canvasFactoryInstance,
        webGLContext: webGLContext,
        useRequestAnimationFrame: renderingIntent !== "print",
        pdfBug: this._pdfBug
      });

      if (!intentState.renderTasks) {
        intentState.renderTasks = [];
      }

      intentState.renderTasks.push(internalRenderTask);
      var renderTask = internalRenderTask.task;
      Promise.all([intentState.displayReadyCapability.promise, optionalContentConfigPromise]).then(function (_ref6) {
        var _ref7 = _slicedToArray(_ref6, 2),
            transparency = _ref7[0],
            optionalContentConfig = _ref7[1];

        if (_this5.pendingCleanup) {
          complete();
          return;
        }

        if (_this5._stats) {
          _this5._stats.time("Rendering");
        }

        internalRenderTask.initializeGraphics({
          transparency: transparency,
          optionalContentConfig: optionalContentConfig
        });
        internalRenderTask.operatorListChanged();
      })["catch"](complete);
      return renderTask;
    }
  }, {
    key: "getOperatorList",
    value: function getOperatorList() {
      function operatorListChanged() {
        if (intentState.operatorList.lastChunk) {
          intentState.opListReadCapability.resolve(intentState.operatorList);
          var i = intentState.renderTasks.indexOf(opListTask);

          if (i >= 0) {
            intentState.renderTasks.splice(i, 1);
          }
        }
      }

      var renderingIntent = "oplist";

      var intentState = this._intentStates.get(renderingIntent);

      if (!intentState) {
        intentState = Object.create(null);

        this._intentStates.set(renderingIntent, intentState);
      }

      var opListTask;

      if (!intentState.opListReadCapability) {
        opListTask = Object.create(null);
        opListTask.operatorListChanged = operatorListChanged;
        intentState.opListReadCapability = (0, _util.createPromiseCapability)();
        intentState.renderTasks = [];
        intentState.renderTasks.push(opListTask);
        intentState.operatorList = {
          fnArray: [],
          argsArray: [],
          lastChunk: false
        };

        if (this._stats) {
          this._stats.time("Page Request");
        }

        this._pumpOperatorList({
          pageIndex: this._pageIndex,
          intent: renderingIntent
        });
      }

      return intentState.opListReadCapability.promise;
    }
  }, {
    key: "streamTextContent",
    value: function streamTextContent() {
      var _ref8 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
          _ref8$normalizeWhites = _ref8.normalizeWhitespace,
          normalizeWhitespace = _ref8$normalizeWhites === void 0 ? false : _ref8$normalizeWhites,
          _ref8$disableCombineT = _ref8.disableCombineTextItems,
          disableCombineTextItems = _ref8$disableCombineT === void 0 ? false : _ref8$disableCombineT;

      var TEXT_CONTENT_CHUNK_SIZE = 100;
      return this._transport.messageHandler.sendWithStream("GetTextContent", {
        pageIndex: this._pageIndex,
        normalizeWhitespace: normalizeWhitespace === true,
        combineTextItems: disableCombineTextItems !== true
      }, {
        highWaterMark: TEXT_CONTENT_CHUNK_SIZE,
        size: function size(textContent) {
          return textContent.items.length;
        }
      });
    }
  }, {
    key: "getTextContent",
    value: function getTextContent() {
      var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var readableStream = this.streamTextContent(params);
      return new Promise(function (resolve, reject) {
        function pump() {
          reader.read().then(function (_ref9) {
            var _textContent$items;

            var value = _ref9.value,
                done = _ref9.done;

            if (done) {
              resolve(textContent);
              return;
            }

            Object.assign(textContent.styles, value.styles);

            (_textContent$items = textContent.items).push.apply(_textContent$items, _toConsumableArray(value.items));

            pump();
          }, reject);
        }

        var reader = readableStream.getReader();
        var textContent = {
          items: [],
          styles: Object.create(null)
        };
        pump();
      });
    }
  }, {
    key: "_destroy",
    value: function _destroy() {
      this.destroyed = true;
      this._transport.pageCache[this._pageIndex] = null;
      var waitOn = [];

      var _iterator5 = _createForOfIteratorHelper(this._intentStates),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _step5$value = _slicedToArray(_step5.value, 2),
              intent = _step5$value[0],
              intentState = _step5$value[1];

          this._abortOperatorList({
            intentState: intentState,
            reason: new Error("Page was destroyed."),
            force: true
          });

          if (intent === "oplist") {
            continue;
          }

          var _iterator6 = _createForOfIteratorHelper(intentState.renderTasks),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var internalRenderTask = _step6.value;
              waitOn.push(internalRenderTask.completed);
              internalRenderTask.cancel();
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      this.objs.clear();
      this.annotationsPromise = null;
      this.pendingCleanup = false;
      return Promise.all(waitOn);
    }
  }, {
    key: "cleanup",
    value: function cleanup() {
      var resetStats = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
      this.pendingCleanup = true;
      return this._tryCleanup(resetStats);
    }
  }, {
    key: "_tryCleanup",
    value: function _tryCleanup() {
      var resetStats = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

      if (!this.pendingCleanup) {
        return false;
      }

      var _iterator7 = _createForOfIteratorHelper(this._intentStates.values()),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var _step7$value = _step7.value,
              renderTasks = _step7$value.renderTasks,
              operatorList = _step7$value.operatorList;

          if (renderTasks.length !== 0 || !operatorList.lastChunk) {
            return false;
          }
        }
      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      this._intentStates.clear();

      this.objs.clear();
      this.annotationsPromise = null;

      if (resetStats && this._stats) {
        this._stats = new _display_utils.StatTimer();
      }

      this.pendingCleanup = false;
      return true;
    }
  }, {
    key: "_startRenderPage",
    value: function _startRenderPage(transparency, intent) {
      var intentState = this._intentStates.get(intent);

      if (!intentState) {
        return;
      }

      if (this._stats) {
        this._stats.timeEnd("Page Request");
      }

      if (intentState.displayReadyCapability) {
        intentState.displayReadyCapability.resolve(transparency);
      }
    }
  }, {
    key: "_renderPageChunk",
    value: function _renderPageChunk(operatorListChunk, intentState) {
      for (var i = 0, ii = operatorListChunk.length; i < ii; i++) {
        intentState.operatorList.fnArray.push(operatorListChunk.fnArray[i]);
        intentState.operatorList.argsArray.push(operatorListChunk.argsArray[i]);
      }

      intentState.operatorList.lastChunk = operatorListChunk.lastChunk;

      for (var _i2 = 0; _i2 < intentState.renderTasks.length; _i2++) {
        intentState.renderTasks[_i2].operatorListChanged();
      }

      if (operatorListChunk.lastChunk) {
        this._tryCleanup();
      }
    }
  }, {
    key: "_pumpOperatorList",
    value: function _pumpOperatorList(args) {
      var _this6 = this;

      (0, _util.assert)(args.intent, 'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');

      var readableStream = this._transport.messageHandler.sendWithStream("GetOperatorList", args);

      var reader = readableStream.getReader();

      var intentState = this._intentStates.get(args.intent);

      intentState.streamReader = reader;

      var pump = function pump() {
        reader.read().then(function (_ref10) {
          var value = _ref10.value,
              done = _ref10.done;

          if (done) {
            intentState.streamReader = null;
            return;
          }

          if (_this6._transport.destroyed) {
            return;
          }

          _this6._renderPageChunk(value, intentState);

          pump();
        }, function (reason) {
          intentState.streamReader = null;

          if (_this6._transport.destroyed) {
            return;
          }

          if (intentState.operatorList) {
            intentState.operatorList.lastChunk = true;

            for (var i = 0; i < intentState.renderTasks.length; i++) {
              intentState.renderTasks[i].operatorListChanged();
            }

            _this6._tryCleanup();
          }

          if (intentState.displayReadyCapability) {
            intentState.displayReadyCapability.reject(reason);
          } else if (intentState.opListReadCapability) {
            intentState.opListReadCapability.reject(reason);
          } else {
            throw reason;
          }
        });
      };

      pump();
    }
  }, {
    key: "_abortOperatorList",
    value: function _abortOperatorList(_ref11) {
      var _this7 = this;

      var intentState = _ref11.intentState,
          reason = _ref11.reason,
          _ref11$force = _ref11.force,
          force = _ref11$force === void 0 ? false : _ref11$force;
      (0, _util.assert)(reason instanceof Error || _typeof(reason) === "object" && reason !== null, 'PDFPageProxy._abortOperatorList: Expected "reason" argument.');

      if (!intentState.streamReader) {
        return;
      }

      if (!force) {
        if (intentState.renderTasks.length !== 0) {
          return;
        }

        if (reason instanceof _display_utils.RenderingCancelledException) {
          intentState.streamReaderCancelTimeout = setTimeout(function () {
            _this7._abortOperatorList({
              intentState: intentState,
              reason: reason,
              force: true
            });

            intentState.streamReaderCancelTimeout = null;
          }, RENDERING_CANCELLED_TIMEOUT);
          return;
        }
      }

      intentState.streamReader.cancel(new _util.AbortException(reason && reason.message));
      intentState.streamReader = null;

      if (this._transport.destroyed) {
        return;
      }

      var _iterator8 = _createForOfIteratorHelper(this._intentStates),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var _step8$value = _slicedToArray(_step8.value, 2),
              intent = _step8$value[0],
              curIntentState = _step8$value[1];

          if (curIntentState === intentState) {
            this._intentStates["delete"](intent);

            break;
          }
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      this.cleanup();
    }
  }, {
    key: "pageNumber",
    get: function get() {
      return this._pageIndex + 1;
    }
  }, {
    key: "rotate",
    get: function get() {
      return this._pageInfo.rotate;
    }
  }, {
    key: "ref",
    get: function get() {
      return this._pageInfo.ref;
    }
  }, {
    key: "userUnit",
    get: function get() {
      return this._pageInfo.userUnit;
    }
  }, {
    key: "view",
    get: function get() {
      return this._pageInfo.view;
    }
  }, {
    key: "stats",
    get: function get() {
      return this._stats;
    }
  }]);

  return PDFPageProxy;
}();

exports.PDFPageProxy = PDFPageProxy;

var LoopbackPort = /*#__PURE__*/function () {
  function LoopbackPort() {
    var defer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

    _classCallCheck(this, LoopbackPort);

    this._listeners = [];
    this._defer = defer;
    this._deferred = Promise.resolve(undefined);
  }

  _createClass(LoopbackPort, [{
    key: "postMessage",
    value: function postMessage(obj, transfers) {
      var _this8 = this;

      function cloneValue(value) {
        if (_typeof(value) !== "object" || value === null) {
          return value;
        }

        if (cloned.has(value)) {
          return cloned.get(value);
        }

        var buffer, result;

        if ((buffer = value.buffer) && (0, _util.isArrayBuffer)(buffer)) {
          var transferable = transfers && transfers.includes(buffer);

          if (transferable) {
            result = new value.constructor(buffer, value.byteOffset, value.byteLength);
          } else {
            result = new value.constructor(value);
          }

          cloned.set(value, result);
          return result;
        }

        result = Array.isArray(value) ? [] : {};
        cloned.set(value, result);

        for (var i in value) {
          var desc = void 0,
              p = value;

          while (!(desc = Object.getOwnPropertyDescriptor(p, i))) {
            p = Object.getPrototypeOf(p);
          }

          if (typeof desc.value === "undefined") {
            continue;
          }

          if (typeof desc.value === "function") {
            if (value.hasOwnProperty && value.hasOwnProperty(i)) {
              throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(value[i]));
            }

            continue;
          }

          result[i] = cloneValue(desc.value);
        }

        return result;
      }

      if (!this._defer) {
        this._listeners.forEach(function (listener) {
          listener.call(_this8, {
            data: obj
          });
        });

        return;
      }

      var cloned = new WeakMap();
      var e = {
        data: cloneValue(obj)
      };

      this._deferred.then(function () {
        _this8._listeners.forEach(function (listener) {
          listener.call(_this8, e);
        });
      });
    }
  }, {
    key: "addEventListener",
    value: function addEventListener(name, listener) {
      this._listeners.push(listener);
    }
  }, {
    key: "removeEventListener",
    value: function removeEventListener(name, listener) {
      var i = this._listeners.indexOf(listener);

      this._listeners.splice(i, 1);
    }
  }, {
    key: "terminate",
    value: function terminate() {
      this._listeners.length = 0;
    }
  }]);

  return LoopbackPort;
}();

exports.LoopbackPort = LoopbackPort;

var PDFWorker = function PDFWorkerClosure() {
  var pdfWorkerPorts = new WeakMap();
  var isWorkerDisabled = false;
  var fallbackWorkerSrc;
  var nextFakeWorkerId = 0;
  var fakeWorkerCapability;

  if (_is_node.isNodeJS && "function" === "function") {
    isWorkerDisabled = true;
    fallbackWorkerSrc = "./pdf.worker.js";
  } else if ((typeof document === "undefined" ? "undefined" : _typeof(document)) === "object" && "currentScript" in document) {
    var pdfjsFilePath = document.currentScript && document.currentScript.src;

    if (pdfjsFilePath) {
      fallbackWorkerSrc = pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i, ".worker$1$2");
    }
  }

  function _getWorkerSrc() {
    if (_worker_options.GlobalWorkerOptions.workerSrc) {
      return _worker_options.GlobalWorkerOptions.workerSrc;
    }

    if (typeof fallbackWorkerSrc !== "undefined") {
      if (!_is_node.isNodeJS) {
        (0, _display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.');
      }

      return fallbackWorkerSrc;
    }

    throw new Error('No "GlobalWorkerOptions.workerSrc" specified.');
  }

  function getMainThreadWorkerMessageHandler() {
    var mainWorkerMessageHandler;

    try {
      mainWorkerMessageHandler = globalThis.pdfjsWorker && globalThis.pdfjsWorker.WorkerMessageHandler;
    } catch (ex) {}

    return mainWorkerMessageHandler || null;
  }

  function setupFakeWorkerGlobal() {
    if (fakeWorkerCapability) {
      return fakeWorkerCapability.promise;
    }

    fakeWorkerCapability = (0, _util.createPromiseCapability)();

    var loader = /*#__PURE__*/function () {
      var _ref12 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var mainWorkerMessageHandler, worker;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                mainWorkerMessageHandler = getMainThreadWorkerMessageHandler();

                if (!mainWorkerMessageHandler) {
                  _context.next = 3;
                  break;
                }

                return _context.abrupt("return", mainWorkerMessageHandler);

              case 3:
                if (!(_is_node.isNodeJS && "function" === "function")) {
                  _context.next = 6;
                  break;
                }

                worker = eval("require")(_getWorkerSrc());
                return _context.abrupt("return", worker.WorkerMessageHandler);

              case 6:
                _context.next = 8;
                return (0, _display_utils.loadScript)(_getWorkerSrc());

              case 8:
                return _context.abrupt("return", window.pdfjsWorker.WorkerMessageHandler);

              case 9:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }));

      return function loader() {
        return _ref12.apply(this, arguments);
      };
    }();

    loader().then(fakeWorkerCapability.resolve, fakeWorkerCapability.reject);
    return fakeWorkerCapability.promise;
  }

  function createCDNWrapper(url) {
    var wrapper = "importScripts('" + url + "');";
    return URL.createObjectURL(new Blob([wrapper]));
  }

  var PDFWorker = /*#__PURE__*/function () {
    function PDFWorker() {
      var _ref13 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
          _ref13$name = _ref13.name,
          name = _ref13$name === void 0 ? null : _ref13$name,
          _ref13$port = _ref13.port,
          port = _ref13$port === void 0 ? null : _ref13$port,
          _ref13$verbosity = _ref13.verbosity,
          verbosity = _ref13$verbosity === void 0 ? (0, _util.getVerbosityLevel)() : _ref13$verbosity;

      _classCallCheck(this, PDFWorker);

      if (port && pdfWorkerPorts.has(port)) {
        throw new Error("Cannot use more than one PDFWorker per port");
      }

      this.name = name;
      this.destroyed = false;
      this.postMessageTransfers = true;
      this.verbosity = verbosity;
      this._readyCapability = (0, _util.createPromiseCapability)();
      this._port = null;
      this._webWorker = null;
      this._messageHandler = null;

      if (port) {
        pdfWorkerPorts.set(port, this);

        this._initializeFromPort(port);

        return;
      }

      this._initialize();
    }

    _createClass(PDFWorker, [{
      key: "_initializeFromPort",
      value: function _initializeFromPort(port) {
        this._port = port;
        this._messageHandler = new _message_handler.MessageHandler("main", "worker", port);

        this._messageHandler.on("ready", function () {});

        this._readyCapability.resolve();
      }
    }, {
      key: "_initialize",
      value: function _initialize() {
        var _this9 = this;

        if (typeof Worker !== "undefined" && !isWorkerDisabled && !getMainThreadWorkerMessageHandler()) {
          var workerSrc = _getWorkerSrc();

          try {
            if (!(0, _util.isSameOrigin)(window.location.href, workerSrc)) {
              workerSrc = createCDNWrapper(new URL(workerSrc, window.location).href);
            }

            var worker = new Worker(workerSrc);
            var messageHandler = new _message_handler.MessageHandler("main", "worker", worker);

            var terminateEarly = function terminateEarly() {
              worker.removeEventListener("error", onWorkerError);
              messageHandler.destroy();
              worker.terminate();

              if (_this9.destroyed) {
                _this9._readyCapability.reject(new Error("Worker was destroyed"));
              } else {
                _this9._setupFakeWorker();
              }
            };

            var onWorkerError = function onWorkerError() {
              if (!_this9._webWorker) {
                terminateEarly();
              }
            };

            worker.addEventListener("error", onWorkerError);
            messageHandler.on("test", function (data) {
              worker.removeEventListener("error", onWorkerError);

              if (_this9.destroyed) {
                terminateEarly();
                return;
              }

              if (data) {
                _this9._messageHandler = messageHandler;
                _this9._port = worker;
                _this9._webWorker = worker;

                if (!data.supportTransfers) {
                  _this9.postMessageTransfers = false;
                }

                _this9._readyCapability.resolve();

                messageHandler.send("configure", {
                  verbosity: _this9.verbosity
                });
              } else {
                _this9._setupFakeWorker();

                messageHandler.destroy();
                worker.terminate();
              }
            });
            messageHandler.on("ready", function (data) {
              worker.removeEventListener("error", onWorkerError);

              if (_this9.destroyed) {
                terminateEarly();
                return;
              }

              try {
                sendTest();
              } catch (e) {
                _this9._setupFakeWorker();
              }
            });

            var sendTest = function sendTest() {
              var testObj = new Uint8Array([_this9.postMessageTransfers ? 255 : 0]);

              try {
                messageHandler.send("test", testObj, [testObj.buffer]);
              } catch (ex) {
                (0, _util.warn)("Cannot use postMessage transfers.");
                testObj[0] = 0;
                messageHandler.send("test", testObj);
              }
            };

            sendTest();
            return;
          } catch (e) {
            (0, _util.info)("The worker has been disabled.");
          }
        }

        this._setupFakeWorker();
      }
    }, {
      key: "_setupFakeWorker",
      value: function _setupFakeWorker() {
        var _this10 = this;

        if (!isWorkerDisabled) {
          (0, _util.warn)("Setting up fake worker.");
          isWorkerDisabled = true;
        }

        setupFakeWorkerGlobal().then(function (WorkerMessageHandler) {
          if (_this10.destroyed) {
            _this10._readyCapability.reject(new Error("Worker was destroyed"));

            return;
          }

          var port = new LoopbackPort();
          _this10._port = port;
          var id = "fake" + nextFakeWorkerId++;
          var workerHandler = new _message_handler.MessageHandler(id + "_worker", id, port);
          WorkerMessageHandler.setup(workerHandler, port);
          var messageHandler = new _message_handler.MessageHandler(id, id + "_worker", port);
          _this10._messageHandler = messageHandler;

          _this10._readyCapability.resolve();

          messageHandler.send("configure", {
            verbosity: _this10.verbosity
          });
        })["catch"](function (reason) {
          _this10._readyCapability.reject(new Error("Setting up fake worker failed: \"".concat(reason.message, "\".")));
        });
      }
    }, {
      key: "destroy",
      value: function destroy() {
        this.destroyed = true;

        if (this._webWorker) {
          this._webWorker.terminate();

          this._webWorker = null;
        }

        pdfWorkerPorts["delete"](this._port);
        this._port = null;

        if (this._messageHandler) {
          this._messageHandler.destroy();

          this._messageHandler = null;
        }
      }
    }, {
      key: "promise",
      get: function get() {
        return this._readyCapability.promise;
      }
    }, {
      key: "port",
      get: function get() {
        return this._port;
      }
    }, {
      key: "messageHandler",
      get: function get() {
        return this._messageHandler;
      }
    }], [{
      key: "fromPort",
      value: function fromPort(params) {
        if (!params || !params.port) {
          throw new Error("PDFWorker.fromPort - invalid method signature.");
        }

        if (pdfWorkerPorts.has(params.port)) {
          return pdfWorkerPorts.get(params.port);
        }

        return new PDFWorker(params);
      }
    }, {
      key: "getWorkerSrc",
      value: function getWorkerSrc() {
        return _getWorkerSrc();
      }
    }]);

    return PDFWorker;
  }();

  return PDFWorker;
}();

exports.PDFWorker = PDFWorker;

var WorkerTransport = /*#__PURE__*/function () {
  function WorkerTransport(messageHandler, loadingTask, networkStream, params) {
    _classCallCheck(this, WorkerTransport);

    this.messageHandler = messageHandler;
    this.loadingTask = loadingTask;
    this.commonObjs = new PDFObjects();
    this.fontLoader = new _font_loader.FontLoader({
      docId: loadingTask.docId,
      onUnsupportedFeature: this._onUnsupportedFeature.bind(this),
      ownerDocument: params.ownerDocument
    });
    this._params = params;
    this.CMapReaderFactory = new params.CMapReaderFactory({
      baseUrl: params.cMapUrl,
      isCompressed: params.cMapPacked
    });
    this.destroyed = false;
    this.destroyCapability = null;
    this._passwordCapability = null;
    this._networkStream = networkStream;
    this._fullReader = null;
    this._lastProgress = null;
    this.pageCache = [];
    this.pagePromises = [];
    this.downloadInfoCapability = (0, _util.createPromiseCapability)();
    this.setupMessageHandler();
  }

  _createClass(WorkerTransport, [{
    key: "destroy",
    value: function destroy() {
      var _this11 = this;

      if (this.destroyCapability) {
        return this.destroyCapability.promise;
      }

      this.destroyed = true;
      this.destroyCapability = (0, _util.createPromiseCapability)();

      if (this._passwordCapability) {
        this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));
      }

      var waitOn = [];
      this.pageCache.forEach(function (page) {
        if (page) {
          waitOn.push(page._destroy());
        }
      });
      this.pageCache.length = 0;
      this.pagePromises.length = 0;
      var terminated = this.messageHandler.sendWithPromise("Terminate", null);
      waitOn.push(terminated);
      Promise.all(waitOn).then(function () {
        _this11.fontLoader.clear();

        if (_this11._networkStream) {
          _this11._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated."));
        }

        if (_this11.messageHandler) {
          _this11.messageHandler.destroy();

          _this11.messageHandler = null;
        }

        _this11.destroyCapability.resolve();
      }, this.destroyCapability.reject);
      return this.destroyCapability.promise;
    }
  }, {
    key: "setupMessageHandler",
    value: function setupMessageHandler() {
      var _this12 = this;

      var messageHandler = this.messageHandler,
          loadingTask = this.loadingTask;
      messageHandler.on("GetReader", function (data, sink) {
        (0, _util.assert)(_this12._networkStream, "GetReader - no `IPDFStream` instance available.");
        _this12._fullReader = _this12._networkStream.getFullReader();

        _this12._fullReader.onProgress = function (evt) {
          _this12._lastProgress = {
            loaded: evt.loaded,
            total: evt.total
          };
        };

        sink.onPull = function () {
          _this12._fullReader.read().then(function (_ref14) {
            var value = _ref14.value,
                done = _ref14.done;

            if (done) {
              sink.close();
              return;
            }

            (0, _util.assert)((0, _util.isArrayBuffer)(value), "GetReader - expected an ArrayBuffer.");
            sink.enqueue(new Uint8Array(value), 1, [value]);
          })["catch"](function (reason) {
            sink.error(reason);
          });
        };

        sink.onCancel = function (reason) {
          _this12._fullReader.cancel(reason);

          sink.ready["catch"](function (readyReason) {
            if (_this12.destroyed) {
              return;
            }

            throw readyReason;
          });
        };
      });
      messageHandler.on("ReaderHeadersReady", function (data) {
        var headersCapability = (0, _util.createPromiseCapability)();
        var fullReader = _this12._fullReader;
        fullReader.headersReady.then(function () {
          if (!fullReader.isStreamingSupported || !fullReader.isRangeSupported) {
            if (_this12._lastProgress && loadingTask.onProgress) {
              loadingTask.onProgress(_this12._lastProgress);
            }

            fullReader.onProgress = function (evt) {
              if (loadingTask.onProgress) {
                loadingTask.onProgress({
                  loaded: evt.loaded,
                  total: evt.total
                });
              }
            };
          }

          headersCapability.resolve({
            isStreamingSupported: fullReader.isStreamingSupported,
            isRangeSupported: fullReader.isRangeSupported,
            contentLength: fullReader.contentLength
          });
        }, headersCapability.reject);
        return headersCapability.promise;
      });
      messageHandler.on("GetRangeReader", function (data, sink) {
        (0, _util.assert)(_this12._networkStream, "GetRangeReader - no `IPDFStream` instance available.");

        var rangeReader = _this12._networkStream.getRangeReader(data.begin, data.end);

        if (!rangeReader) {
          sink.close();
          return;
        }

        sink.onPull = function () {
          rangeReader.read().then(function (_ref15) {
            var value = _ref15.value,
                done = _ref15.done;

            if (done) {
              sink.close();
              return;
            }

            (0, _util.assert)((0, _util.isArrayBuffer)(value), "GetRangeReader - expected an ArrayBuffer.");
            sink.enqueue(new Uint8Array(value), 1, [value]);
          })["catch"](function (reason) {
            sink.error(reason);
          });
        };

        sink.onCancel = function (reason) {
          rangeReader.cancel(reason);
          sink.ready["catch"](function (readyReason) {
            if (_this12.destroyed) {
              return;
            }

            throw readyReason;
          });
        };
      });
      messageHandler.on("GetDoc", function (_ref16) {
        var pdfInfo = _ref16.pdfInfo;
        _this12._numPages = pdfInfo.numPages;

        loadingTask._capability.resolve(new PDFDocumentProxy(pdfInfo, _this12));
      });
      messageHandler.on("DocException", function (ex) {
        var reason;

        switch (ex.name) {
          case "PasswordException":
            reason = new _util.PasswordException(ex.message, ex.code);
            break;

          case "InvalidPDFException":
            reason = new _util.InvalidPDFException(ex.message);
            break;

          case "MissingPDFException":
            reason = new _util.MissingPDFException(ex.message);
            break;

          case "UnexpectedResponseException":
            reason = new _util.UnexpectedResponseException(ex.message, ex.status);
            break;

          case "UnknownErrorException":
            reason = new _util.UnknownErrorException(ex.message, ex.details);
            break;
        }

        if (!(reason instanceof Error)) {
          var msg = "DocException - expected a valid Error.";
          (0, _util.warn)(msg);
        }

        loadingTask._capability.reject(reason);
      });
      messageHandler.on("PasswordRequest", function (exception) {
        _this12._passwordCapability = (0, _util.createPromiseCapability)();

        if (loadingTask.onPassword) {
          var updatePassword = function updatePassword(password) {
            _this12._passwordCapability.resolve({
              password: password
            });
          };

          try {
            loadingTask.onPassword(updatePassword, exception.code);
          } catch (ex) {
            _this12._passwordCapability.reject(ex);
          }
        } else {
          _this12._passwordCapability.reject(new _util.PasswordException(exception.message, exception.code));
        }

        return _this12._passwordCapability.promise;
      });
      messageHandler.on("DataLoaded", function (data) {
        if (loadingTask.onProgress) {
          loadingTask.onProgress({
            loaded: data.length,
            total: data.length
          });
        }

        _this12.downloadInfoCapability.resolve(data);
      });
      messageHandler.on("StartRenderPage", function (data) {
        if (_this12.destroyed) {
          return;
        }

        var page = _this12.pageCache[data.pageIndex];

        page._startRenderPage(data.transparency, data.intent);
      });
      messageHandler.on("commonobj", function (data) {
        if (_this12.destroyed) {
          return;
        }

        var _data = _slicedToArray(data, 3),
            id = _data[0],
            type = _data[1],
            exportedData = _data[2];

        if (_this12.commonObjs.has(id)) {
          return;
        }

        switch (type) {
          case "Font":
            var params = _this12._params;

            if ("error" in exportedData) {
              var exportedError = exportedData.error;
              (0, _util.warn)("Error during font loading: ".concat(exportedError));

              _this12.commonObjs.resolve(id, exportedError);

              break;
            }

            var fontRegistry = null;

            if (params.pdfBug && globalThis.FontInspector && globalThis.FontInspector.enabled) {
              fontRegistry = {
                registerFont: function registerFont(font, url) {
                  globalThis.FontInspector.fontAdded(font, url);
                }
              };
            }

            var font = new _font_loader.FontFaceObject(exportedData, {
              isEvalSupported: params.isEvalSupported,
              disableFontFace: params.disableFontFace,
              ignoreErrors: params.ignoreErrors,
              onUnsupportedFeature: _this12._onUnsupportedFeature.bind(_this12),
              fontRegistry: fontRegistry
            });

            _this12.fontLoader.bind(font)["catch"](function (reason) {
              return messageHandler.sendWithPromise("FontFallback", {
                id: id
              });
            })["finally"](function () {
              if (!params.fontExtraProperties && font.data) {
                font.data = null;
              }

              _this12.commonObjs.resolve(id, font);
            });

            break;

          case "FontPath":
          case "Image":
            _this12.commonObjs.resolve(id, exportedData);

            break;

          default:
            throw new Error("Got unknown common object type ".concat(type));
        }
      });
      messageHandler.on("obj", function (data) {
        if (_this12.destroyed) {
          return undefined;
        }

        var _data2 = _slicedToArray(data, 4),
            id = _data2[0],
            pageIndex = _data2[1],
            type = _data2[2],
            imageData = _data2[3];

        var pageProxy = _this12.pageCache[pageIndex];

        if (pageProxy.objs.has(id)) {
          return undefined;
        }

        switch (type) {
          case "Image":
            pageProxy.objs.resolve(id, imageData);
            var MAX_IMAGE_SIZE_TO_STORE = 8000000;

            if (imageData && "data" in imageData && imageData.data.length > MAX_IMAGE_SIZE_TO_STORE) {
              pageProxy.cleanupAfterRender = true;
            }

            break;

          default:
            throw new Error("Got unknown object type ".concat(type));
        }

        return undefined;
      });
      messageHandler.on("DocProgress", function (data) {
        if (_this12.destroyed) {
          return;
        }

        if (loadingTask.onProgress) {
          loadingTask.onProgress({
            loaded: data.loaded,
            total: data.total
          });
        }
      });
      messageHandler.on("UnsupportedFeature", this._onUnsupportedFeature.bind(this));
      messageHandler.on("FetchBuiltInCMap", function (data, sink) {
        if (_this12.destroyed) {
          sink.error(new Error("Worker was destroyed"));
          return;
        }

        var fetched = false;

        sink.onPull = function () {
          if (fetched) {
            sink.close();
            return;
          }

          fetched = true;

          _this12.CMapReaderFactory.fetch(data).then(function (builtInCMap) {
            sink.enqueue(builtInCMap, 1, [builtInCMap.cMapData.buffer]);
          })["catch"](function (reason) {
            sink.error(reason);
          });
        };
      });
    }
  }, {
    key: "_onUnsupportedFeature",
    value: function _onUnsupportedFeature(_ref17) {
      var featureId = _ref17.featureId;

      if (this.destroyed) {
        return;
      }

      if (this.loadingTask.onUnsupportedFeature) {
        this.loadingTask.onUnsupportedFeature(featureId);
      }
    }
  }, {
    key: "getData",
    value: function getData() {
      return this.messageHandler.sendWithPromise("GetData", null);
    }
  }, {
    key: "getPage",
    value: function getPage(pageNumber) {
      var _this13 = this;

      if (!Number.isInteger(pageNumber) || pageNumber <= 0 || pageNumber > this._numPages) {
        return Promise.reject(new Error("Invalid page request"));
      }

      var pageIndex = pageNumber - 1;

      if (pageIndex in this.pagePromises) {
        return this.pagePromises[pageIndex];
      }

      var promise = this.messageHandler.sendWithPromise("GetPage", {
        pageIndex: pageIndex
      }).then(function (pageInfo) {
        if (_this13.destroyed) {
          throw new Error("Transport destroyed");
        }

        var page = new PDFPageProxy(pageIndex, pageInfo, _this13, _this13._params.ownerDocument, _this13._params.pdfBug);
        _this13.pageCache[pageIndex] = page;
        return page;
      });
      this.pagePromises[pageIndex] = promise;
      return promise;
    }
  }, {
    key: "getPageIndex",
    value: function getPageIndex(ref) {
      return this.messageHandler.sendWithPromise("GetPageIndex", {
        ref: ref
      })["catch"](function (reason) {
        return Promise.reject(new Error(reason));
      });
    }
  }, {
    key: "getAnnotations",
    value: function getAnnotations(pageIndex, intent) {
      return this.messageHandler.sendWithPromise("GetAnnotations", {
        pageIndex: pageIndex,
        intent: intent
      });
    }
  }, {
    key: "saveDocument",
    value: function saveDocument(annotationStorage) {
      return this.messageHandler.sendWithPromise("SaveDocument", {
        numPages: this._numPages,
        annotationStorage: annotationStorage && annotationStorage.getAll() || null,
        filename: this._fullReader ? this._fullReader.filename : null
      })["finally"](function () {
        if (annotationStorage) {
          annotationStorage.resetModified();
        }
      });
    }
  }, {
    key: "getDestinations",
    value: function getDestinations() {
      return this.messageHandler.sendWithPromise("GetDestinations", null);
    }
  }, {
    key: "getDestination",
    value: function getDestination(id) {
      if (typeof id !== "string") {
        return Promise.reject(new Error("Invalid destination request."));
      }

      return this.messageHandler.sendWithPromise("GetDestination", {
        id: id
      });
    }
  }, {
    key: "getPageLabels",
    value: function getPageLabels() {
      return this.messageHandler.sendWithPromise("GetPageLabels", null);
    }
  }, {
    key: "getPageLayout",
    value: function getPageLayout() {
      return this.messageHandler.sendWithPromise("GetPageLayout", null);
    }
  }, {
    key: "getPageMode",
    value: function getPageMode() {
      return this.messageHandler.sendWithPromise("GetPageMode", null);
    }
  }, {
    key: "getViewerPreferences",
    value: function getViewerPreferences() {
      return this.messageHandler.sendWithPromise("GetViewerPreferences", null);
    }
  }, {
    key: "getOpenAction",
    value: function getOpenAction() {
      return this.messageHandler.sendWithPromise("GetOpenAction", null);
    }
  }, {
    key: "getAttachments",
    value: function getAttachments() {
      return this.messageHandler.sendWithPromise("GetAttachments", null);
    }
  }, {
    key: "getJavaScript",
    value: function getJavaScript() {
      return this.messageHandler.sendWithPromise("GetJavaScript", null);
    }
  }, {
    key: "getOutline",
    value: function getOutline() {
      return this.messageHandler.sendWithPromise("GetOutline", null);
    }
  }, {
    key: "getOptionalContentConfig",
    value: function getOptionalContentConfig() {
      return this.messageHandler.sendWithPromise("GetOptionalContentConfig", null).then(function (results) {
        return new _optional_content_config.OptionalContentConfig(results);
      });
    }
  }, {
    key: "getPermissions",
    value: function getPermissions() {
      return this.messageHandler.sendWithPromise("GetPermissions", null);
    }
  }, {
    key: "getMetadata",
    value: function getMetadata() {
      var _this14 = this;

      return this.messageHandler.sendWithPromise("GetMetadata", null).then(function (results) {
        return {
          info: results[0],
          metadata: results[1] ? new _metadata.Metadata(results[1]) : null,
          contentDispositionFilename: _this14._fullReader ? _this14._fullReader.filename : null
        };
      });
    }
  }, {
    key: "getStats",
    value: function getStats() {
      return this.messageHandler.sendWithPromise("GetStats", null);
    }
  }, {
    key: "startCleanup",
    value: function startCleanup() {
      var _this15 = this;

      return this.messageHandler.sendWithPromise("Cleanup", null).then(function () {
        for (var i = 0, ii = _this15.pageCache.length; i < ii; i++) {
          var page = _this15.pageCache[i];

          if (page) {
            var cleanupSuccessful = page.cleanup();

            if (!cleanupSuccessful) {
              throw new Error("startCleanup: Page ".concat(i + 1, " is currently rendering."));
            }
          }
        }

        _this15.commonObjs.clear();

        _this15.fontLoader.clear();
      });
    }
  }, {
    key: "loadingParams",
    get: function get() {
      var params = this._params;
      return (0, _util.shadow)(this, "loadingParams", {
        disableAutoFetch: params.disableAutoFetch,
        disableFontFace: params.disableFontFace
      });
    }
  }]);

  return WorkerTransport;
}();

var PDFObjects = /*#__PURE__*/function () {
  function PDFObjects() {
    _classCallCheck(this, PDFObjects);

    this._objs = Object.create(null);
  }

  _createClass(PDFObjects, [{
    key: "_ensureObj",
    value: function _ensureObj(objId) {
      if (this._objs[objId]) {
        return this._objs[objId];
      }

      return this._objs[objId] = {
        capability: (0, _util.createPromiseCapability)(),
        data: null,
        resolved: false
      };
    }
  }, {
    key: "get",
    value: function get(objId) {
      var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

      if (callback) {
        this._ensureObj(objId).capability.promise.then(callback);

        return null;
      }

      var obj = this._objs[objId];

      if (!obj || !obj.resolved) {
        throw new Error("Requesting object that isn't resolved yet ".concat(objId, "."));
      }

      return obj.data;
    }
  }, {
    key: "has",
    value: function has(objId) {
      var obj = this._objs[objId];
      return obj ? obj.resolved : false;
    }
  }, {
    key: "resolve",
    value: function resolve(objId, data) {
      var obj = this._ensureObj(objId);

      obj.resolved = true;
      obj.data = data;
      obj.capability.resolve(data);
    }
  }, {
    key: "clear",
    value: function clear() {
      this._objs = Object.create(null);
    }
  }]);

  return PDFObjects;
}();

var RenderTask = /*#__PURE__*/function () {
  function RenderTask(internalRenderTask) {
    _classCallCheck(this, RenderTask);

    this._internalRenderTask = internalRenderTask;
    this.onContinue = null;
  }

  _createClass(RenderTask, [{
    key: "cancel",
    value: function cancel() {
      this._internalRenderTask.cancel();
    }
  }, {
    key: "promise",
    get: function get() {
      return this._internalRenderTask.capability.promise;
    }
  }]);

  return RenderTask;
}();

var InternalRenderTask = function InternalRenderTaskClosure() {
  var canvasInRendering = new WeakSet();

  var InternalRenderTask = /*#__PURE__*/function () {
    function InternalRenderTask(_ref18) {
      var callback = _ref18.callback,
          params = _ref18.params,
          objs = _ref18.objs,
          commonObjs = _ref18.commonObjs,
          operatorList = _ref18.operatorList,
          pageIndex = _ref18.pageIndex,
          canvasFactory = _ref18.canvasFactory,
          webGLContext = _ref18.webGLContext,
          _ref18$useRequestAnim = _ref18.useRequestAnimationFrame,
          useRequestAnimationFrame = _ref18$useRequestAnim === void 0 ? false : _ref18$useRequestAnim,
          _ref18$pdfBug = _ref18.pdfBug,
          pdfBug = _ref18$pdfBug === void 0 ? false : _ref18$pdfBug;

      _classCallCheck(this, InternalRenderTask);

      this.callback = callback;
      this.params = params;
      this.objs = objs;
      this.commonObjs = commonObjs;
      this.operatorListIdx = null;
      this.operatorList = operatorList;
      this._pageIndex = pageIndex;
      this.canvasFactory = canvasFactory;
      this.webGLContext = webGLContext;
      this._pdfBug = pdfBug;
      this.running = false;
      this.graphicsReadyCallback = null;
      this.graphicsReady = false;
      this._useRequestAnimationFrame = useRequestAnimationFrame === true && typeof window !== "undefined";
      this.cancelled = false;
      this.capability = (0, _util.createPromiseCapability)();
      this.task = new RenderTask(this);
      this._continueBound = this._continue.bind(this);
      this._scheduleNextBound = this._scheduleNext.bind(this);
      this._nextBound = this._next.bind(this);
      this._canvas = params.canvasContext.canvas;
    }

    _createClass(InternalRenderTask, [{
      key: "initializeGraphics",
      value: function initializeGraphics(_ref19) {
        var _ref19$transparency = _ref19.transparency,
            transparency = _ref19$transparency === void 0 ? false : _ref19$transparency,
            optionalContentConfig = _ref19.optionalContentConfig;

        if (this.cancelled) {
          return;
        }

        if (this._canvas) {
          if (canvasInRendering.has(this._canvas)) {
            throw new Error("Cannot use the same canvas during multiple render() operations. " + "Use different canvas or ensure previous operations were " + "cancelled or completed.");
          }

          canvasInRendering.add(this._canvas);
        }

        if (this._pdfBug && globalThis.StepperManager && globalThis.StepperManager.enabled) {
          this.stepper = globalThis.StepperManager.create(this._pageIndex);
          this.stepper.init(this.operatorList);
          this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint();
        }

        var _this$params = this.params,
            canvasContext = _this$params.canvasContext,
            viewport = _this$params.viewport,
            transform = _this$params.transform,
            imageLayer = _this$params.imageLayer,
            background = _this$params.background;
        this.gfx = new _canvas.CanvasGraphics(canvasContext, this.commonObjs, this.objs, this.canvasFactory, this.webGLContext, imageLayer, optionalContentConfig);
        this.gfx.beginDrawing({
          transform: transform,
          viewport: viewport,
          transparency: transparency,
          background: background
        });
        this.operatorListIdx = 0;
        this.graphicsReady = true;

        if (this.graphicsReadyCallback) {
          this.graphicsReadyCallback();
        }
      }
    }, {
      key: "cancel",
      value: function cancel() {
        var error = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
        this.running = false;
        this.cancelled = true;

        if (this.gfx) {
          this.gfx.endDrawing();
        }

        if (this._canvas) {
          canvasInRendering["delete"](this._canvas);
        }

        this.callback(error || new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex + 1), "canvas"));
      }
    }, {
      key: "operatorListChanged",
      value: function operatorListChanged() {
        if (!this.graphicsReady) {
          if (!this.graphicsReadyCallback) {
            this.graphicsReadyCallback = this._continueBound;
          }

          return;
        }

        if (this.stepper) {
          this.stepper.updateOperatorList(this.operatorList);
        }

        if (this.running) {
          return;
        }

        this._continue();
      }
    }, {
      key: "_continue",
      value: function _continue() {
        this.running = true;

        if (this.cancelled) {
          return;
        }

        if (this.task.onContinue) {
          this.task.onContinue(this._scheduleNextBound);
        } else {
          this._scheduleNext();
        }
      }
    }, {
      key: "_scheduleNext",
      value: function _scheduleNext() {
        var _this16 = this;

        if (this._useRequestAnimationFrame) {
          window.requestAnimationFrame(function () {
            _this16._nextBound()["catch"](_this16.cancel.bind(_this16));
          });
        } else {
          Promise.resolve().then(this._nextBound)["catch"](this.cancel.bind(this));
        }
      }
    }, {
      key: "_next",
      value: function () {
        var _next2 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
          return _regenerator["default"].wrap(function _callee2$(_context2) {
            while (1) {
              switch (_context2.prev = _context2.next) {
                case 0:
                  if (!this.cancelled) {
                    _context2.next = 2;
                    break;
                  }

                  return _context2.abrupt("return");

                case 2:
                  this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper);

                  if (this.operatorListIdx === this.operatorList.argsArray.length) {
                    this.running = false;

                    if (this.operatorList.lastChunk) {
                      this.gfx.endDrawing();

                      if (this._canvas) {
                        canvasInRendering["delete"](this._canvas);
                      }

                      this.callback();
                    }
                  }

                case 4:
                case "end":
                  return _context2.stop();
              }
            }
          }, _callee2, this);
        }));

        function _next() {
          return _next2.apply(this, arguments);
        }

        return _next;
      }()
    }, {
      key: "completed",
      get: function get() {
        return this.capability.promise["catch"](function () {});
      }
    }]);

    return InternalRenderTask;
  }();

  return InternalRenderTask;
}();

var version = '2.6.347';
exports.version = version;
var build = '3be9c65f';
exports.build = build;

/***/ }),
/* 203 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FontLoader = exports.FontFaceObject = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var BaseFontLoader = /*#__PURE__*/function () {
  function BaseFontLoader(_ref) {
    var docId = _ref.docId,
        onUnsupportedFeature = _ref.onUnsupportedFeature,
        _ref$ownerDocument = _ref.ownerDocument,
        ownerDocument = _ref$ownerDocument === void 0 ? globalThis.document : _ref$ownerDocument;

    _classCallCheck(this, BaseFontLoader);

    if (this.constructor === BaseFontLoader) {
      (0, _util.unreachable)("Cannot initialize BaseFontLoader.");
    }

    this.docId = docId;
    this._onUnsupportedFeature = onUnsupportedFeature;
    this._document = ownerDocument;
    this.nativeFontFaces = [];
    this.styleElement = null;
  }

  _createClass(BaseFontLoader, [{
    key: "addNativeFontFace",
    value: function addNativeFontFace(nativeFontFace) {
      this.nativeFontFaces.push(nativeFontFace);

      this._document.fonts.add(nativeFontFace);
    }
  }, {
    key: "insertRule",
    value: function insertRule(rule) {
      var styleElement = this.styleElement;

      if (!styleElement) {
        styleElement = this.styleElement = this._document.createElement("style");
        styleElement.id = "PDFJS_FONT_STYLE_TAG_".concat(this.docId);

        this._document.documentElement.getElementsByTagName("head")[0].appendChild(styleElement);
      }

      var styleSheet = styleElement.sheet;
      styleSheet.insertRule(rule, styleSheet.cssRules.length);
    }
  }, {
    key: "clear",
    value: function clear() {
      var _this = this;

      this.nativeFontFaces.forEach(function (nativeFontFace) {
        _this._document.fonts["delete"](nativeFontFace);
      });
      this.nativeFontFaces.length = 0;

      if (this.styleElement) {
        this.styleElement.remove();
        this.styleElement = null;
      }
    }
  }, {
    key: "bind",
    value: function () {
      var _bind = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee(font) {
        var _this2 = this;

        var nativeFontFace, rule;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                if (!(font.attached || font.missingFile)) {
                  _context.next = 2;
                  break;
                }

                return _context.abrupt("return");

              case 2:
                font.attached = true;

                if (!this.isFontLoadingAPISupported) {
                  _context.next = 19;
                  break;
                }

                nativeFontFace = font.createNativeFontFace();

                if (!nativeFontFace) {
                  _context.next = 18;
                  break;
                }

                this.addNativeFontFace(nativeFontFace);
                _context.prev = 7;
                _context.next = 10;
                return nativeFontFace.loaded;

              case 10:
                _context.next = 18;
                break;

              case 12:
                _context.prev = 12;
                _context.t0 = _context["catch"](7);

                this._onUnsupportedFeature({
                  featureId: _util.UNSUPPORTED_FEATURES.errorFontLoadNative
                });

                (0, _util.warn)("Failed to load font '".concat(nativeFontFace.family, "': '").concat(_context.t0, "'."));
                font.disableFontFace = true;
                throw _context.t0;

              case 18:
                return _context.abrupt("return");

              case 19:
                rule = font.createFontFaceRule();

                if (!rule) {
                  _context.next = 26;
                  break;
                }

                this.insertRule(rule);

                if (!this.isSyncFontLoadingSupported) {
                  _context.next = 24;
                  break;
                }

                return _context.abrupt("return");

              case 24:
                _context.next = 26;
                return new Promise(function (resolve) {
                  var request = _this2._queueLoadingCallback(resolve);

                  _this2._prepareFontLoadEvent([rule], [font], request);
                });

              case 26:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this, [[7, 12]]);
      }));

      function bind(_x) {
        return _bind.apply(this, arguments);
      }

      return bind;
    }()
  }, {
    key: "_queueLoadingCallback",
    value: function _queueLoadingCallback(callback) {
      (0, _util.unreachable)("Abstract method `_queueLoadingCallback`.");
    }
  }, {
    key: "_prepareFontLoadEvent",
    value: function _prepareFontLoadEvent(rules, fontsToLoad, request) {
      (0, _util.unreachable)("Abstract method `_prepareFontLoadEvent`.");
    }
  }, {
    key: "isFontLoadingAPISupported",
    get: function get() {
      var supported = typeof this._document !== "undefined" && !!this._document.fonts;
      return (0, _util.shadow)(this, "isFontLoadingAPISupported", supported);
    }
  }, {
    key: "isSyncFontLoadingSupported",
    get: function get() {
      (0, _util.unreachable)("Abstract method `isSyncFontLoadingSupported`.");
    }
  }, {
    key: "_loadTestFont",
    get: function get() {
      (0, _util.unreachable)("Abstract method `_loadTestFont`.");
    }
  }]);

  return BaseFontLoader;
}();

var FontLoader;
exports.FontLoader = FontLoader;
{
  exports.FontLoader = FontLoader = /*#__PURE__*/function (_BaseFontLoader) {
    _inherits(GenericFontLoader, _BaseFontLoader);

    var _super = _createSuper(GenericFontLoader);

    function GenericFontLoader(params) {
      var _this3;

      _classCallCheck(this, GenericFontLoader);

      _this3 = _super.call(this, params);
      _this3.loadingContext = {
        requests: [],
        nextRequestId: 0
      };
      _this3.loadTestFontId = 0;
      return _this3;
    }

    _createClass(GenericFontLoader, [{
      key: "_queueLoadingCallback",
      value: function _queueLoadingCallback(callback) {
        function completeRequest() {
          (0, _util.assert)(!request.done, "completeRequest() cannot be called twice.");
          request.done = true;

          while (context.requests.length > 0 && context.requests[0].done) {
            var otherRequest = context.requests.shift();
            setTimeout(otherRequest.callback, 0);
          }
        }

        var context = this.loadingContext;
        var request = {
          id: "pdfjs-font-loading-".concat(context.nextRequestId++),
          done: false,
          complete: completeRequest,
          callback: callback
        };
        context.requests.push(request);
        return request;
      }
    }, {
      key: "_prepareFontLoadEvent",
      value: function _prepareFontLoadEvent(rules, fonts, request) {
        var _this4 = this;

        function int32(data, offset) {
          return data.charCodeAt(offset) << 24 | data.charCodeAt(offset + 1) << 16 | data.charCodeAt(offset + 2) << 8 | data.charCodeAt(offset + 3) & 0xff;
        }

        function spliceString(s, offset, remove, insert) {
          var chunk1 = s.substring(0, offset);
          var chunk2 = s.substring(offset + remove);
          return chunk1 + insert + chunk2;
        }

        var i, ii;

        var canvas = this._document.createElement("canvas");

        canvas.width = 1;
        canvas.height = 1;
        var ctx = canvas.getContext("2d");
        var called = 0;

        function isFontReady(name, callback) {
          called++;

          if (called > 30) {
            (0, _util.warn)("Load test font never loaded.");
            callback();
            return;
          }

          ctx.font = "30px " + name;
          ctx.fillText(".", 0, 20);
          var imageData = ctx.getImageData(0, 0, 1, 1);

          if (imageData.data[3] > 0) {
            callback();
            return;
          }

          setTimeout(isFontReady.bind(null, name, callback));
        }

        var loadTestFontId = "lt".concat(Date.now()).concat(this.loadTestFontId++);
        var data = this._loadTestFont;
        var COMMENT_OFFSET = 976;
        data = spliceString(data, COMMENT_OFFSET, loadTestFontId.length, loadTestFontId);
        var CFF_CHECKSUM_OFFSET = 16;
        var XXXX_VALUE = 0x58585858;
        var checksum = int32(data, CFF_CHECKSUM_OFFSET);

        for (i = 0, ii = loadTestFontId.length - 3; i < ii; i += 4) {
          checksum = checksum - XXXX_VALUE + int32(loadTestFontId, i) | 0;
        }

        if (i < loadTestFontId.length) {
          checksum = checksum - XXXX_VALUE + int32(loadTestFontId + "XXX", i) | 0;
        }

        data = spliceString(data, CFF_CHECKSUM_OFFSET, 4, (0, _util.string32)(checksum));
        var url = "url(data:font/opentype;base64,".concat(btoa(data), ");");
        var rule = "@font-face {font-family:\"".concat(loadTestFontId, "\";src:").concat(url, "}");
        this.insertRule(rule);
        var names = [];

        for (i = 0, ii = fonts.length; i < ii; i++) {
          names.push(fonts[i].loadedName);
        }

        names.push(loadTestFontId);

        var div = this._document.createElement("div");

        div.style.visibility = "hidden";
        div.style.width = div.style.height = "10px";
        div.style.position = "absolute";
        div.style.top = div.style.left = "0px";

        for (i = 0, ii = names.length; i < ii; ++i) {
          var span = this._document.createElement("span");

          span.textContent = "Hi";
          span.style.fontFamily = names[i];
          div.appendChild(span);
        }

        this._document.body.appendChild(div);

        isFontReady(loadTestFontId, function () {
          _this4._document.body.removeChild(div);

          request.complete();
        });
      }
    }, {
      key: "isSyncFontLoadingSupported",
      get: function get() {
        var supported = false;

        if (typeof navigator === "undefined") {
          supported = true;
        } else {
          var m = /Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);

          if (m && m[1] >= 14) {
            supported = true;
          }
        }

        return (0, _util.shadow)(this, "isSyncFontLoadingSupported", supported);
      }
    }, {
      key: "_loadTestFont",
      get: function get() {
        var getLoadTestFont = function getLoadTestFont() {
          return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQA" + "FQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAA" + "ALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgA" + "AAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1" + "AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD" + "6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACM" + "AooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4D" + "IP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAA" + "AAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUA" + "AQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgAB" + "AAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABY" + "AAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAA" + "AC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAA" + "AAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQAC" + "AQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3" + "Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTj" + "FQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");
        };

        return (0, _util.shadow)(this, "_loadTestFont", getLoadTestFont());
      }
    }]);

    return GenericFontLoader;
  }(BaseFontLoader);
}

var FontFaceObject = /*#__PURE__*/function () {
  function FontFaceObject(translatedData, _ref2) {
    var _ref2$isEvalSupported = _ref2.isEvalSupported,
        isEvalSupported = _ref2$isEvalSupported === void 0 ? true : _ref2$isEvalSupported,
        _ref2$disableFontFace = _ref2.disableFontFace,
        disableFontFace = _ref2$disableFontFace === void 0 ? false : _ref2$disableFontFace,
        _ref2$ignoreErrors = _ref2.ignoreErrors,
        ignoreErrors = _ref2$ignoreErrors === void 0 ? false : _ref2$ignoreErrors,
        _ref2$onUnsupportedFe = _ref2.onUnsupportedFeature,
        onUnsupportedFeature = _ref2$onUnsupportedFe === void 0 ? null : _ref2$onUnsupportedFe,
        _ref2$fontRegistry = _ref2.fontRegistry,
        fontRegistry = _ref2$fontRegistry === void 0 ? null : _ref2$fontRegistry;

    _classCallCheck(this, FontFaceObject);

    this.compiledGlyphs = Object.create(null);

    for (var i in translatedData) {
      this[i] = translatedData[i];
    }

    this.isEvalSupported = isEvalSupported !== false;
    this.disableFontFace = disableFontFace === true;
    this.ignoreErrors = ignoreErrors === true;
    this._onUnsupportedFeature = onUnsupportedFeature;
    this.fontRegistry = fontRegistry;
  }

  _createClass(FontFaceObject, [{
    key: "createNativeFontFace",
    value: function createNativeFontFace() {
      if (!this.data || this.disableFontFace) {
        return null;
      }

      var nativeFontFace = new FontFace(this.loadedName, this.data, {});

      if (this.fontRegistry) {
        this.fontRegistry.registerFont(this);
      }

      return nativeFontFace;
    }
  }, {
    key: "createFontFaceRule",
    value: function createFontFaceRule() {
      if (!this.data || this.disableFontFace) {
        return null;
      }

      var data = (0, _util.bytesToString)(new Uint8Array(this.data));
      var url = "url(data:".concat(this.mimetype, ";base64,").concat(btoa(data), ");");
      var rule = "@font-face {font-family:\"".concat(this.loadedName, "\";src:").concat(url, "}");

      if (this.fontRegistry) {
        this.fontRegistry.registerFont(this, url);
      }

      return rule;
    }
  }, {
    key: "getPathGenerator",
    value: function getPathGenerator(objs, character) {
      if (this.compiledGlyphs[character] !== undefined) {
        return this.compiledGlyphs[character];
      }

      var cmds, current;

      try {
        cmds = objs.get(this.loadedName + "_path_" + character);
      } catch (ex) {
        if (!this.ignoreErrors) {
          throw ex;
        }

        if (this._onUnsupportedFeature) {
          this._onUnsupportedFeature({
            featureId: _util.UNSUPPORTED_FEATURES.errorFontGetPath
          });
        }

        (0, _util.warn)("getPathGenerator - ignoring character: \"".concat(ex, "\"."));
        return this.compiledGlyphs[character] = function (c, size) {};
      }

      if (this.isEvalSupported && _util.IsEvalSupportedCached.value) {
        var args,
            js = "";

        for (var i = 0, ii = cmds.length; i < ii; i++) {
          current = cmds[i];

          if (current.args !== undefined) {
            args = current.args.join(",");
          } else {
            args = "";
          }

          js += "c." + current.cmd + "(" + args + ");\n";
        }

        return this.compiledGlyphs[character] = new Function("c", "size", js);
      }

      return this.compiledGlyphs[character] = function (c, size) {
        for (var _i = 0, _ii = cmds.length; _i < _ii; _i++) {
          current = cmds[_i];

          if (current.cmd === "scale") {
            current.args = [size, -size];
          }

          c[current.cmd].apply(c, current.args);
        }
      };
    }
  }]);

  return FontFaceObject;
}();

exports.FontFaceObject = FontFaceObject;

/***/ }),
/* 204 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.NodeCMapReaderFactory = exports.NodeCanvasFactory = void 0;

var _display_utils = __w_pdfjs_require__(1);

var _is_node = __w_pdfjs_require__(7);

var _util = __w_pdfjs_require__(5);

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var NodeCanvasFactory = function NodeCanvasFactory() {
  _classCallCheck(this, NodeCanvasFactory);

  (0, _util.unreachable)("Not implemented: NodeCanvasFactory");
};

exports.NodeCanvasFactory = NodeCanvasFactory;

var NodeCMapReaderFactory = function NodeCMapReaderFactory() {
  _classCallCheck(this, NodeCMapReaderFactory);

  (0, _util.unreachable)("Not implemented: NodeCMapReaderFactory");
};

exports.NodeCMapReaderFactory = NodeCMapReaderFactory;

if (_is_node.isNodeJS) {
  exports.NodeCanvasFactory = NodeCanvasFactory = /*#__PURE__*/function (_BaseCanvasFactory) {
    _inherits(NodeCanvasFactory, _BaseCanvasFactory);

    var _super = _createSuper(NodeCanvasFactory);

    function NodeCanvasFactory() {
      _classCallCheck(this, NodeCanvasFactory);

      return _super.apply(this, arguments);
    }

    _createClass(NodeCanvasFactory, [{
      key: "create",
      value: function create(width, height) {
        if (width <= 0 || height <= 0) {
          throw new Error("Invalid canvas size");
        }

        var Canvas = __webpack_require__(2603);

        var canvas = Canvas.createCanvas(width, height);
        return {
          canvas: canvas,
          context: canvas.getContext("2d")
        };
      }
    }]);

    return NodeCanvasFactory;
  }(_display_utils.BaseCanvasFactory);

  exports.NodeCMapReaderFactory = NodeCMapReaderFactory = /*#__PURE__*/function (_BaseCMapReaderFactor) {
    _inherits(NodeCMapReaderFactory, _BaseCMapReaderFactor);

    var _super2 = _createSuper(NodeCMapReaderFactory);

    function NodeCMapReaderFactory() {
      _classCallCheck(this, NodeCMapReaderFactory);

      return _super2.apply(this, arguments);
    }

    _createClass(NodeCMapReaderFactory, [{
      key: "_fetchData",
      value: function _fetchData(url, compressionType) {
        return new Promise(function (resolve, reject) {
          var fs = __webpack_require__(1613);

          fs.readFile(url, function (error, data) {
            if (error || !data) {
              reject(new Error(error));
              return;
            }

            resolve({
              cMapData: new Uint8Array(data),
              compressionType: compressionType
            });
          });
        });
      }
    }]);

    return NodeCMapReaderFactory;
  }(_display_utils.BaseCMapReaderFactory);
}

/***/ }),
/* 205 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AnnotationStorage = void 0;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var AnnotationStorage = /*#__PURE__*/function () {
  function AnnotationStorage() {
    _classCallCheck(this, AnnotationStorage);

    this._storage = new Map();
    this._modified = false;
    this.onSetModified = null;
    this.onResetModified = null;
  }

  _createClass(AnnotationStorage, [{
    key: "getOrCreateValue",
    value: function getOrCreateValue(key, defaultValue) {
      if (this._storage.has(key)) {
        return this._storage.get(key);
      }

      this._storage.set(key, defaultValue);

      return defaultValue;
    }
  }, {
    key: "setValue",
    value: function setValue(key, value) {
      if (this._storage.get(key) !== value) {
        this._setModified();
      }

      this._storage.set(key, value);
    }
  }, {
    key: "getAll",
    value: function getAll() {
      if (this._storage.size === 0) {
        return null;
      }

      return Object.fromEntries(this._storage);
    }
  }, {
    key: "_setModified",
    value: function _setModified() {
      if (!this._modified) {
        this._modified = true;

        if (typeof this.onSetModified === "function") {
          this.onSetModified();
        }
      }
    }
  }, {
    key: "resetModified",
    value: function resetModified() {
      if (this._modified) {
        this._modified = false;

        if (typeof this.onResetModified === "function") {
          this.onResetModified();
        }
      }
    }
  }, {
    key: "size",
    get: function get() {
      return this._storage.size;
    }
  }]);

  return AnnotationStorage;
}();

exports.AnnotationStorage = AnnotationStorage;

/***/ }),
/* 206 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.apiCompatibilityParams = void 0;

var _is_node = __w_pdfjs_require__(7);

var compatibilityParams = Object.create(null);
{
  (function checkFontFace() {
    if (_is_node.isNodeJS) {
      compatibilityParams.disableFontFace = true;
    }
  })();
}
var apiCompatibilityParams = Object.freeze(compatibilityParams);
exports.apiCompatibilityParams = apiCompatibilityParams;

/***/ }),
/* 207 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CanvasGraphics = void 0;

var _util = __w_pdfjs_require__(5);

var _pattern_helper = __w_pdfjs_require__(208);

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

var MIN_FONT_SIZE = 16;
var MAX_FONT_SIZE = 100;
var MAX_GROUP_SIZE = 4096;
var MIN_WIDTH_FACTOR = 0.65;
var COMPILE_TYPE3_GLYPHS = true;
var MAX_SIZE_TO_COMPILE = 1000;
var FULL_CHUNK_HEIGHT = 16;

function addContextCurrentTransform(ctx) {
  if (!ctx.mozCurrentTransform) {
    ctx._originalSave = ctx.save;
    ctx._originalRestore = ctx.restore;
    ctx._originalRotate = ctx.rotate;
    ctx._originalScale = ctx.scale;
    ctx._originalTranslate = ctx.translate;
    ctx._originalTransform = ctx.transform;
    ctx._originalSetTransform = ctx.setTransform;
    ctx._transformMatrix = ctx._transformMatrix || [1, 0, 0, 1, 0, 0];
    ctx._transformStack = [];
    Object.defineProperty(ctx, "mozCurrentTransform", {
      get: function getCurrentTransform() {
        return this._transformMatrix;
      }
    });
    Object.defineProperty(ctx, "mozCurrentTransformInverse", {
      get: function getCurrentTransformInverse() {
        var m = this._transformMatrix;
        var a = m[0],
            b = m[1],
            c = m[2],
            d = m[3],
            e = m[4],
            f = m[5];
        var ad_bc = a * d - b * c;
        var bc_ad = b * c - a * d;
        return [d / ad_bc, b / bc_ad, c / bc_ad, a / ad_bc, (d * e - c * f) / bc_ad, (b * e - a * f) / ad_bc];
      }
    });

    ctx.save = function ctxSave() {
      var old = this._transformMatrix;

      this._transformStack.push(old);

      this._transformMatrix = old.slice(0, 6);

      this._originalSave();
    };

    ctx.restore = function ctxRestore() {
      var prev = this._transformStack.pop();

      if (prev) {
        this._transformMatrix = prev;

        this._originalRestore();
      }
    };

    ctx.translate = function ctxTranslate(x, y) {
      var m = this._transformMatrix;
      m[4] = m[0] * x + m[2] * y + m[4];
      m[5] = m[1] * x + m[3] * y + m[5];

      this._originalTranslate(x, y);
    };

    ctx.scale = function ctxScale(x, y) {
      var m = this._transformMatrix;
      m[0] = m[0] * x;
      m[1] = m[1] * x;
      m[2] = m[2] * y;
      m[3] = m[3] * y;

      this._originalScale(x, y);
    };

    ctx.transform = function ctxTransform(a, b, c, d, e, f) {
      var m = this._transformMatrix;
      this._transformMatrix = [m[0] * a + m[2] * b, m[1] * a + m[3] * b, m[0] * c + m[2] * d, m[1] * c + m[3] * d, m[0] * e + m[2] * f + m[4], m[1] * e + m[3] * f + m[5]];

      ctx._originalTransform(a, b, c, d, e, f);
    };

    ctx.setTransform = function ctxSetTransform(a, b, c, d, e, f) {
      this._transformMatrix = [a, b, c, d, e, f];

      ctx._originalSetTransform(a, b, c, d, e, f);
    };

    ctx.rotate = function ctxRotate(angle) {
      var cosValue = Math.cos(angle);
      var sinValue = Math.sin(angle);
      var m = this._transformMatrix;
      this._transformMatrix = [m[0] * cosValue + m[2] * sinValue, m[1] * cosValue + m[3] * sinValue, m[0] * -sinValue + m[2] * cosValue, m[1] * -sinValue + m[3] * cosValue, m[4], m[5]];

      this._originalRotate(angle);
    };
  }
}

var CachedCanvases = function CachedCanvasesClosure() {
  function CachedCanvases(canvasFactory) {
    this.canvasFactory = canvasFactory;
    this.cache = Object.create(null);
  }

  CachedCanvases.prototype = {
    getCanvas: function CachedCanvases_getCanvas(id, width, height, trackTransform) {
      var canvasEntry;

      if (this.cache[id] !== undefined) {
        canvasEntry = this.cache[id];
        this.canvasFactory.reset(canvasEntry, width, height);
        canvasEntry.context.setTransform(1, 0, 0, 1, 0, 0);
      } else {
        canvasEntry = this.canvasFactory.create(width, height);
        this.cache[id] = canvasEntry;
      }

      if (trackTransform) {
        addContextCurrentTransform(canvasEntry.context);
      }

      return canvasEntry;
    },
    clear: function clear() {
      for (var id in this.cache) {
        var canvasEntry = this.cache[id];
        this.canvasFactory.destroy(canvasEntry);
        delete this.cache[id];
      }
    }
  };
  return CachedCanvases;
}();

function compileType3Glyph(imgData) {
  var POINT_TO_PROCESS_LIMIT = 1000;
  var width = imgData.width,
      height = imgData.height;
  var i,
      j,
      j0,
      width1 = width + 1;
  var points = new Uint8Array(width1 * (height + 1));
  var POINT_TYPES = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]);
  var lineSize = width + 7 & ~7,
      data0 = imgData.data;
  var data = new Uint8Array(lineSize * height),
      pos = 0,
      ii;

  for (i = 0, ii = data0.length; i < ii; i++) {
    var mask = 128,
        elem = data0[i];

    while (mask > 0) {
      data[pos++] = elem & mask ? 0 : 255;
      mask >>= 1;
    }
  }

  var count = 0;
  pos = 0;

  if (data[pos] !== 0) {
    points[0] = 1;
    ++count;
  }

  for (j = 1; j < width; j++) {
    if (data[pos] !== data[pos + 1]) {
      points[j] = data[pos] ? 2 : 1;
      ++count;
    }

    pos++;
  }

  if (data[pos] !== 0) {
    points[j] = 2;
    ++count;
  }

  for (i = 1; i < height; i++) {
    pos = i * lineSize;
    j0 = i * width1;

    if (data[pos - lineSize] !== data[pos]) {
      points[j0] = data[pos] ? 1 : 8;
      ++count;
    }

    var sum = (data[pos] ? 4 : 0) + (data[pos - lineSize] ? 8 : 0);

    for (j = 1; j < width; j++) {
      sum = (sum >> 2) + (data[pos + 1] ? 4 : 0) + (data[pos - lineSize + 1] ? 8 : 0);

      if (POINT_TYPES[sum]) {
        points[j0 + j] = POINT_TYPES[sum];
        ++count;
      }

      pos++;
    }

    if (data[pos - lineSize] !== data[pos]) {
      points[j0 + j] = data[pos] ? 2 : 4;
      ++count;
    }

    if (count > POINT_TO_PROCESS_LIMIT) {
      return null;
    }
  }

  pos = lineSize * (height - 1);
  j0 = i * width1;

  if (data[pos] !== 0) {
    points[j0] = 8;
    ++count;
  }

  for (j = 1; j < width; j++) {
    if (data[pos] !== data[pos + 1]) {
      points[j0 + j] = data[pos] ? 4 : 8;
      ++count;
    }

    pos++;
  }

  if (data[pos] !== 0) {
    points[j0 + j] = 4;
    ++count;
  }

  if (count > POINT_TO_PROCESS_LIMIT) {
    return null;
  }

  var steps = new Int32Array([0, width1, -1, 0, -width1, 0, 0, 0, 1]);
  var outlines = [];

  for (i = 0; count && i <= height; i++) {
    var p = i * width1;
    var end = p + width;

    while (p < end && !points[p]) {
      p++;
    }

    if (p === end) {
      continue;
    }

    var coords = [p % width1, i];
    var type = points[p],
        p0 = p,
        pp;

    do {
      var step = steps[type];

      do {
        p += step;
      } while (!points[p]);

      pp = points[p];

      if (pp !== 5 && pp !== 10) {
        type = pp;
        points[p] = 0;
      } else {
        type = pp & 0x33 * type >> 4;
        points[p] &= type >> 2 | type << 2;
      }

      coords.push(p % width1);
      coords.push(p / width1 | 0);

      if (!points[p]) {
        --count;
      }
    } while (p0 !== p);

    outlines.push(coords);
    --i;
  }

  var drawOutline = function drawOutline(c) {
    c.save();
    c.scale(1 / width, -1 / height);
    c.translate(0, -height);
    c.beginPath();

    for (var k = 0, kk = outlines.length; k < kk; k++) {
      var o = outlines[k];
      c.moveTo(o[0], o[1]);

      for (var l = 2, ll = o.length; l < ll; l += 2) {
        c.lineTo(o[l], o[l + 1]);
      }
    }

    c.fill();
    c.beginPath();
    c.restore();
  };

  return drawOutline;
}

var CanvasExtraState = function CanvasExtraStateClosure() {
  function CanvasExtraState() {
    this.alphaIsShape = false;
    this.fontSize = 0;
    this.fontSizeScale = 1;
    this.textMatrix = _util.IDENTITY_MATRIX;
    this.textMatrixScale = 1;
    this.fontMatrix = _util.FONT_IDENTITY_MATRIX;
    this.leading = 0;
    this.x = 0;
    this.y = 0;
    this.lineX = 0;
    this.lineY = 0;
    this.charSpacing = 0;
    this.wordSpacing = 0;
    this.textHScale = 1;
    this.textRenderingMode = _util.TextRenderingMode.FILL;
    this.textRise = 0;
    this.fillColor = "#000000";
    this.strokeColor = "#000000";
    this.patternFill = false;
    this.fillAlpha = 1;
    this.strokeAlpha = 1;
    this.lineWidth = 1;
    this.activeSMask = null;
    this.resumeSMaskCtx = null;
    this.transferMaps = null;
  }

  CanvasExtraState.prototype = {
    clone: function CanvasExtraState_clone() {
      return Object.create(this);
    },
    setCurrentPoint: function CanvasExtraState_setCurrentPoint(x, y) {
      this.x = x;
      this.y = y;
    }
  };
  return CanvasExtraState;
}();

var CanvasGraphics = function CanvasGraphicsClosure() {
  var EXECUTION_TIME = 15;
  var EXECUTION_STEPS = 10;

  function CanvasGraphics(canvasCtx, commonObjs, objs, canvasFactory, webGLContext, imageLayer, optionalContentConfig) {
    this.ctx = canvasCtx;
    this.current = new CanvasExtraState();
    this.stateStack = [];
    this.pendingClip = null;
    this.pendingEOFill = false;
    this.res = null;
    this.xobjs = null;
    this.commonObjs = commonObjs;
    this.objs = objs;
    this.canvasFactory = canvasFactory;
    this.webGLContext = webGLContext;
    this.imageLayer = imageLayer;
    this.groupStack = [];
    this.processingType3 = null;
    this.baseTransform = null;
    this.baseTransformStack = [];
    this.groupLevel = 0;
    this.smaskStack = [];
    this.smaskCounter = 0;
    this.tempSMask = null;
    this.contentVisible = true;
    this.markedContentStack = [];
    this.optionalContentConfig = optionalContentConfig;
    this.cachedCanvases = new CachedCanvases(this.canvasFactory);

    if (canvasCtx) {
      addContextCurrentTransform(canvasCtx);
    }

    this._cachedGetSinglePixelWidth = null;
  }

  function putBinaryImageData(ctx, imgData) {
    var transferMaps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

    if (typeof ImageData !== "undefined" && imgData instanceof ImageData) {
      ctx.putImageData(imgData, 0, 0);
      return;
    }

    var height = imgData.height,
        width = imgData.width;
    var partialChunkHeight = height % FULL_CHUNK_HEIGHT;
    var fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT;
    var totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1;
    var chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT);
    var srcPos = 0,
        destPos;
    var src = imgData.data;
    var dest = chunkImgData.data;
    var i, j, thisChunkHeight, elemsInThisChunk;
    var transferMapRed, transferMapGreen, transferMapBlue, transferMapGray;

    if (transferMaps) {
      switch (transferMaps.length) {
        case 1:
          transferMapRed = transferMaps[0];
          transferMapGreen = transferMaps[0];
          transferMapBlue = transferMaps[0];
          transferMapGray = transferMaps[0];
          break;

        case 4:
          transferMapRed = transferMaps[0];
          transferMapGreen = transferMaps[1];
          transferMapBlue = transferMaps[2];
          transferMapGray = transferMaps[3];
          break;
      }
    }

    if (imgData.kind === _util.ImageKind.GRAYSCALE_1BPP) {
      var srcLength = src.byteLength;
      var dest32 = new Uint32Array(dest.buffer, 0, dest.byteLength >> 2);
      var dest32DataLength = dest32.length;
      var fullSrcDiff = width + 7 >> 3;
      var white = 0xffffffff;
      var black = _util.IsLittleEndianCached.value ? 0xff000000 : 0x000000ff;

      if (transferMapGray) {
        if (transferMapGray[0] === 0xff && transferMapGray[0xff] === 0) {
          var _ref = [black, white];
          white = _ref[0];
          black = _ref[1];
        }
      }

      for (i = 0; i < totalChunks; i++) {
        thisChunkHeight = i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight;
        destPos = 0;

        for (j = 0; j < thisChunkHeight; j++) {
          var srcDiff = srcLength - srcPos;
          var k = 0;
          var kEnd = srcDiff > fullSrcDiff ? width : srcDiff * 8 - 7;
          var kEndUnrolled = kEnd & ~7;
          var mask = 0;
          var srcByte = 0;

          for (; k < kEndUnrolled; k += 8) {
            srcByte = src[srcPos++];
            dest32[destPos++] = srcByte & 128 ? white : black;
            dest32[destPos++] = srcByte & 64 ? white : black;
            dest32[destPos++] = srcByte & 32 ? white : black;
            dest32[destPos++] = srcByte & 16 ? white : black;
            dest32[destPos++] = srcByte & 8 ? white : black;
            dest32[destPos++] = srcByte & 4 ? white : black;
            dest32[destPos++] = srcByte & 2 ? white : black;
            dest32[destPos++] = srcByte & 1 ? white : black;
          }

          for (; k < kEnd; k++) {
            if (mask === 0) {
              srcByte = src[srcPos++];
              mask = 128;
            }

            dest32[destPos++] = srcByte & mask ? white : black;
            mask >>= 1;
          }
        }

        while (destPos < dest32DataLength) {
          dest32[destPos++] = 0;
        }

        ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT);
      }
    } else if (imgData.kind === _util.ImageKind.RGBA_32BPP) {
      var hasTransferMaps = !!(transferMapRed || transferMapGreen || transferMapBlue);
      j = 0;
      elemsInThisChunk = width * FULL_CHUNK_HEIGHT * 4;

      for (i = 0; i < fullChunks; i++) {
        dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk));
        srcPos += elemsInThisChunk;

        if (hasTransferMaps) {
          for (var _k = 0; _k < elemsInThisChunk; _k += 4) {
            if (transferMapRed) {
              dest[_k + 0] = transferMapRed[dest[_k + 0]];
            }

            if (transferMapGreen) {
              dest[_k + 1] = transferMapGreen[dest[_k + 1]];
            }

            if (transferMapBlue) {
              dest[_k + 2] = transferMapBlue[dest[_k + 2]];
            }
          }
        }

        ctx.putImageData(chunkImgData, 0, j);
        j += FULL_CHUNK_HEIGHT;
      }

      if (i < totalChunks) {
        elemsInThisChunk = width * partialChunkHeight * 4;
        dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk));

        if (hasTransferMaps) {
          for (var _k2 = 0; _k2 < elemsInThisChunk; _k2 += 4) {
            if (transferMapRed) {
              dest[_k2 + 0] = transferMapRed[dest[_k2 + 0]];
            }

            if (transferMapGreen) {
              dest[_k2 + 1] = transferMapGreen[dest[_k2 + 1]];
            }

            if (transferMapBlue) {
              dest[_k2 + 2] = transferMapBlue[dest[_k2 + 2]];
            }
          }
        }

        ctx.putImageData(chunkImgData, 0, j);
      }
    } else if (imgData.kind === _util.ImageKind.RGB_24BPP) {
      var _hasTransferMaps = !!(transferMapRed || transferMapGreen || transferMapBlue);

      thisChunkHeight = FULL_CHUNK_HEIGHT;
      elemsInThisChunk = width * thisChunkHeight;

      for (i = 0; i < totalChunks; i++) {
        if (i >= fullChunks) {
          thisChunkHeight = partialChunkHeight;
          elemsInThisChunk = width * thisChunkHeight;
        }

        destPos = 0;

        for (j = elemsInThisChunk; j--;) {
          dest[destPos++] = src[srcPos++];
          dest[destPos++] = src[srcPos++];
          dest[destPos++] = src[srcPos++];
          dest[destPos++] = 255;
        }

        if (_hasTransferMaps) {
          for (var _k3 = 0; _k3 < destPos; _k3 += 4) {
            if (transferMapRed) {
              dest[_k3 + 0] = transferMapRed[dest[_k3 + 0]];
            }

            if (transferMapGreen) {
              dest[_k3 + 1] = transferMapGreen[dest[_k3 + 1]];
            }

            if (transferMapBlue) {
              dest[_k3 + 2] = transferMapBlue[dest[_k3 + 2]];
            }
          }
        }

        ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT);
      }
    } else {
      throw new Error("bad image kind: ".concat(imgData.kind));
    }
  }

  function putBinaryImageMask(ctx, imgData) {
    var height = imgData.height,
        width = imgData.width;
    var partialChunkHeight = height % FULL_CHUNK_HEIGHT;
    var fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT;
    var totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1;
    var chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT);
    var srcPos = 0;
    var src = imgData.data;
    var dest = chunkImgData.data;

    for (var i = 0; i < totalChunks; i++) {
      var thisChunkHeight = i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight;
      var destPos = 3;

      for (var j = 0; j < thisChunkHeight; j++) {
        var mask = 0;

        for (var k = 0; k < width; k++) {
          if (!mask) {
            var elem = src[srcPos++];
            mask = 128;
          }

          dest[destPos] = elem & mask ? 0 : 255;
          destPos += 4;
          mask >>= 1;
        }
      }

      ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT);
    }
  }

  function copyCtxState(sourceCtx, destCtx) {
    var properties = ["strokeStyle", "fillStyle", "fillRule", "globalAlpha", "lineWidth", "lineCap", "lineJoin", "miterLimit", "globalCompositeOperation", "font"];

    for (var i = 0, ii = properties.length; i < ii; i++) {
      var property = properties[i];

      if (sourceCtx[property] !== undefined) {
        destCtx[property] = sourceCtx[property];
      }
    }

    if (sourceCtx.setLineDash !== undefined) {
      destCtx.setLineDash(sourceCtx.getLineDash());
      destCtx.lineDashOffset = sourceCtx.lineDashOffset;
    }
  }

  function resetCtxToDefault(ctx) {
    ctx.strokeStyle = "#000000";
    ctx.fillStyle = "#000000";
    ctx.fillRule = "nonzero";
    ctx.globalAlpha = 1;
    ctx.lineWidth = 1;
    ctx.lineCap = "butt";
    ctx.lineJoin = "miter";
    ctx.miterLimit = 10;
    ctx.globalCompositeOperation = "source-over";
    ctx.font = "10px sans-serif";

    if (ctx.setLineDash !== undefined) {
      ctx.setLineDash([]);
      ctx.lineDashOffset = 0;
    }
  }

  function composeSMaskBackdrop(bytes, r0, g0, b0) {
    var length = bytes.length;

    for (var i = 3; i < length; i += 4) {
      var alpha = bytes[i];

      if (alpha === 0) {
        bytes[i - 3] = r0;
        bytes[i - 2] = g0;
        bytes[i - 1] = b0;
      } else if (alpha < 255) {
        var alpha_ = 255 - alpha;
        bytes[i - 3] = bytes[i - 3] * alpha + r0 * alpha_ >> 8;
        bytes[i - 2] = bytes[i - 2] * alpha + g0 * alpha_ >> 8;
        bytes[i - 1] = bytes[i - 1] * alpha + b0 * alpha_ >> 8;
      }
    }
  }

  function composeSMaskAlpha(maskData, layerData, transferMap) {
    var length = maskData.length;
    var scale = 1 / 255;

    for (var i = 3; i < length; i += 4) {
      var alpha = transferMap ? transferMap[maskData[i]] : maskData[i];
      layerData[i] = layerData[i] * alpha * scale | 0;
    }
  }

  function composeSMaskLuminosity(maskData, layerData, transferMap) {
    var length = maskData.length;

    for (var i = 3; i < length; i += 4) {
      var y = maskData[i - 3] * 77 + maskData[i - 2] * 152 + maskData[i - 1] * 28;
      layerData[i] = transferMap ? layerData[i] * transferMap[y >> 8] >> 8 : layerData[i] * y >> 16;
    }
  }

  function genericComposeSMask(maskCtx, layerCtx, width, height, subtype, backdrop, transferMap) {
    var hasBackdrop = !!backdrop;
    var r0 = hasBackdrop ? backdrop[0] : 0;
    var g0 = hasBackdrop ? backdrop[1] : 0;
    var b0 = hasBackdrop ? backdrop[2] : 0;
    var composeFn;

    if (subtype === "Luminosity") {
      composeFn = composeSMaskLuminosity;
    } else {
      composeFn = composeSMaskAlpha;
    }

    var PIXELS_TO_PROCESS = 1048576;
    var chunkSize = Math.min(height, Math.ceil(PIXELS_TO_PROCESS / width));

    for (var row = 0; row < height; row += chunkSize) {
      var chunkHeight = Math.min(chunkSize, height - row);
      var maskData = maskCtx.getImageData(0, row, width, chunkHeight);
      var layerData = layerCtx.getImageData(0, row, width, chunkHeight);

      if (hasBackdrop) {
        composeSMaskBackdrop(maskData.data, r0, g0, b0);
      }

      composeFn(maskData.data, layerData.data, transferMap);
      maskCtx.putImageData(layerData, 0, row);
    }
  }

  function composeSMask(ctx, smask, layerCtx, webGLContext) {
    var mask = smask.canvas;
    var maskCtx = smask.context;
    ctx.setTransform(smask.scaleX, 0, 0, smask.scaleY, smask.offsetX, smask.offsetY);
    var backdrop = smask.backdrop || null;

    if (!smask.transferMap && webGLContext.isEnabled) {
      var composed = webGLContext.composeSMask({
        layer: layerCtx.canvas,
        mask: mask,
        properties: {
          subtype: smask.subtype,
          backdrop: backdrop
        }
      });
      ctx.setTransform(1, 0, 0, 1, 0, 0);
      ctx.drawImage(composed, smask.offsetX, smask.offsetY);
      return;
    }

    genericComposeSMask(maskCtx, layerCtx, mask.width, mask.height, smask.subtype, backdrop, smask.transferMap);
    ctx.drawImage(mask, 0, 0);
  }

  var LINE_CAP_STYLES = ["butt", "round", "square"];
  var LINE_JOIN_STYLES = ["miter", "round", "bevel"];
  var NORMAL_CLIP = {};
  var EO_CLIP = {};
  CanvasGraphics.prototype = {
    beginDrawing: function beginDrawing(_ref2) {
      var transform = _ref2.transform,
          viewport = _ref2.viewport,
          _ref2$transparency = _ref2.transparency,
          transparency = _ref2$transparency === void 0 ? false : _ref2$transparency,
          _ref2$background = _ref2.background,
          background = _ref2$background === void 0 ? null : _ref2$background;
      var width = this.ctx.canvas.width;
      var height = this.ctx.canvas.height;
      this.ctx.save();
      this.ctx.fillStyle = background || "rgb(255, 255, 255)";
      this.ctx.fillRect(0, 0, width, height);
      this.ctx.restore();

      if (transparency) {
        var transparentCanvas = this.cachedCanvases.getCanvas("transparent", width, height, true);
        this.compositeCtx = this.ctx;
        this.transparentCanvas = transparentCanvas.canvas;
        this.ctx = transparentCanvas.context;
        this.ctx.save();
        this.ctx.transform.apply(this.ctx, this.compositeCtx.mozCurrentTransform);
      }

      this.ctx.save();
      resetCtxToDefault(this.ctx);

      if (transform) {
        this.ctx.transform.apply(this.ctx, transform);
      }

      this.ctx.transform.apply(this.ctx, viewport.transform);
      this.baseTransform = this.ctx.mozCurrentTransform.slice();

      if (this.imageLayer) {
        this.imageLayer.beginLayout();
      }
    },
    executeOperatorList: function CanvasGraphics_executeOperatorList(operatorList, executionStartIdx, continueCallback, stepper) {
      var argsArray = operatorList.argsArray;
      var fnArray = operatorList.fnArray;
      var i = executionStartIdx || 0;
      var argsArrayLen = argsArray.length;

      if (argsArrayLen === i) {
        return i;
      }

      var chunkOperations = argsArrayLen - i > EXECUTION_STEPS && typeof continueCallback === "function";
      var endTime = chunkOperations ? Date.now() + EXECUTION_TIME : 0;
      var steps = 0;
      var commonObjs = this.commonObjs;
      var objs = this.objs;
      var fnId;

      while (true) {
        if (stepper !== undefined && i === stepper.nextBreakPoint) {
          stepper.breakIt(i, continueCallback);
          return i;
        }

        fnId = fnArray[i];

        if (fnId !== _util.OPS.dependency) {
          this[fnId].apply(this, argsArray[i]);
        } else {
          var _iterator = _createForOfIteratorHelper(argsArray[i]),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var depObjId = _step.value;
              var objsPool = depObjId.startsWith("g_") ? commonObjs : objs;

              if (!objsPool.has(depObjId)) {
                objsPool.get(depObjId, continueCallback);
                return i;
              }
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }

        i++;

        if (i === argsArrayLen) {
          return i;
        }

        if (chunkOperations && ++steps > EXECUTION_STEPS) {
          if (Date.now() > endTime) {
            continueCallback();
            return i;
          }

          steps = 0;
        }
      }
    },
    endDrawing: function CanvasGraphics_endDrawing() {
      if (this.current.activeSMask !== null) {
        this.endSMaskGroup();
      }

      this.ctx.restore();

      if (this.transparentCanvas) {
        this.ctx = this.compositeCtx;
        this.ctx.save();
        this.ctx.setTransform(1, 0, 0, 1, 0, 0);
        this.ctx.drawImage(this.transparentCanvas, 0, 0);
        this.ctx.restore();
        this.transparentCanvas = null;
      }

      this.cachedCanvases.clear();
      this.webGLContext.clear();

      if (this.imageLayer) {
        this.imageLayer.endLayout();
      }
    },
    setLineWidth: function CanvasGraphics_setLineWidth(width) {
      this.current.lineWidth = width;
      this.ctx.lineWidth = width;
    },
    setLineCap: function CanvasGraphics_setLineCap(style) {
      this.ctx.lineCap = LINE_CAP_STYLES[style];
    },
    setLineJoin: function CanvasGraphics_setLineJoin(style) {
      this.ctx.lineJoin = LINE_JOIN_STYLES[style];
    },
    setMiterLimit: function CanvasGraphics_setMiterLimit(limit) {
      this.ctx.miterLimit = limit;
    },
    setDash: function CanvasGraphics_setDash(dashArray, dashPhase) {
      var ctx = this.ctx;

      if (ctx.setLineDash !== undefined) {
        ctx.setLineDash(dashArray);
        ctx.lineDashOffset = dashPhase;
      }
    },
    setRenderingIntent: function setRenderingIntent(intent) {},
    setFlatness: function setFlatness(flatness) {},
    setGState: function CanvasGraphics_setGState(states) {
      for (var i = 0, ii = states.length; i < ii; i++) {
        var state = states[i];
        var key = state[0];
        var value = state[1];

        switch (key) {
          case "LW":
            this.setLineWidth(value);
            break;

          case "LC":
            this.setLineCap(value);
            break;

          case "LJ":
            this.setLineJoin(value);
            break;

          case "ML":
            this.setMiterLimit(value);
            break;

          case "D":
            this.setDash(value[0], value[1]);
            break;

          case "RI":
            this.setRenderingIntent(value);
            break;

          case "FL":
            this.setFlatness(value);
            break;

          case "Font":
            this.setFont(value[0], value[1]);
            break;

          case "CA":
            this.current.strokeAlpha = state[1];
            break;

          case "ca":
            this.current.fillAlpha = state[1];
            this.ctx.globalAlpha = state[1];
            break;

          case "BM":
            this.ctx.globalCompositeOperation = value;
            break;

          case "SMask":
            if (this.current.activeSMask) {
              if (this.stateStack.length > 0 && this.stateStack[this.stateStack.length - 1].activeSMask === this.current.activeSMask) {
                this.suspendSMaskGroup();
              } else {
                this.endSMaskGroup();
              }
            }

            this.current.activeSMask = value ? this.tempSMask : null;

            if (this.current.activeSMask) {
              this.beginSMaskGroup();
            }

            this.tempSMask = null;
            break;

          case "TR":
            this.current.transferMaps = value;
        }
      }
    },
    beginSMaskGroup: function CanvasGraphics_beginSMaskGroup() {
      var activeSMask = this.current.activeSMask;
      var drawnWidth = activeSMask.canvas.width;
      var drawnHeight = activeSMask.canvas.height;
      var cacheId = "smaskGroupAt" + this.groupLevel;
      var scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight, true);
      var currentCtx = this.ctx;
      var currentTransform = currentCtx.mozCurrentTransform;
      this.ctx.save();
      var groupCtx = scratchCanvas.context;
      groupCtx.scale(1 / activeSMask.scaleX, 1 / activeSMask.scaleY);
      groupCtx.translate(-activeSMask.offsetX, -activeSMask.offsetY);
      groupCtx.transform.apply(groupCtx, currentTransform);
      activeSMask.startTransformInverse = groupCtx.mozCurrentTransformInverse;
      copyCtxState(currentCtx, groupCtx);
      this.ctx = groupCtx;
      this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]);
      this.groupStack.push(currentCtx);
      this.groupLevel++;
    },
    suspendSMaskGroup: function CanvasGraphics_endSMaskGroup() {
      var groupCtx = this.ctx;
      this.groupLevel--;
      this.ctx = this.groupStack.pop();
      composeSMask(this.ctx, this.current.activeSMask, groupCtx, this.webGLContext);
      this.ctx.restore();
      this.ctx.save();
      copyCtxState(groupCtx, this.ctx);
      this.current.resumeSMaskCtx = groupCtx;

      var deltaTransform = _util.Util.transform(this.current.activeSMask.startTransformInverse, groupCtx.mozCurrentTransform);

      this.ctx.transform.apply(this.ctx, deltaTransform);
      groupCtx.save();
      groupCtx.setTransform(1, 0, 0, 1, 0, 0);
      groupCtx.clearRect(0, 0, groupCtx.canvas.width, groupCtx.canvas.height);
      groupCtx.restore();
    },
    resumeSMaskGroup: function CanvasGraphics_endSMaskGroup() {
      var groupCtx = this.current.resumeSMaskCtx;
      var currentCtx = this.ctx;
      this.ctx = groupCtx;
      this.groupStack.push(currentCtx);
      this.groupLevel++;
    },
    endSMaskGroup: function CanvasGraphics_endSMaskGroup() {
      var groupCtx = this.ctx;
      this.groupLevel--;
      this.ctx = this.groupStack.pop();
      composeSMask(this.ctx, this.current.activeSMask, groupCtx, this.webGLContext);
      this.ctx.restore();
      copyCtxState(groupCtx, this.ctx);

      var deltaTransform = _util.Util.transform(this.current.activeSMask.startTransformInverse, groupCtx.mozCurrentTransform);

      this.ctx.transform.apply(this.ctx, deltaTransform);
    },
    save: function CanvasGraphics_save() {
      this.ctx.save();
      var old = this.current;
      this.stateStack.push(old);
      this.current = old.clone();
      this.current.resumeSMaskCtx = null;
    },
    restore: function CanvasGraphics_restore() {
      if (this.current.resumeSMaskCtx) {
        this.resumeSMaskGroup();
      }

      if (this.current.activeSMask !== null && (this.stateStack.length === 0 || this.stateStack[this.stateStack.length - 1].activeSMask !== this.current.activeSMask)) {
        this.endSMaskGroup();
      }

      if (this.stateStack.length !== 0) {
        this.current = this.stateStack.pop();
        this.ctx.restore();
        this.pendingClip = null;
        this._cachedGetSinglePixelWidth = null;
      }
    },
    transform: function CanvasGraphics_transform(a, b, c, d, e, f) {
      this.ctx.transform(a, b, c, d, e, f);
      this._cachedGetSinglePixelWidth = null;
    },
    constructPath: function CanvasGraphics_constructPath(ops, args) {
      var ctx = this.ctx;
      var current = this.current;
      var x = current.x,
          y = current.y;

      for (var i = 0, j = 0, ii = ops.length; i < ii; i++) {
        switch (ops[i] | 0) {
          case _util.OPS.rectangle:
            x = args[j++];
            y = args[j++];
            var width = args[j++];
            var height = args[j++];

            if (width === 0 && ctx.lineWidth < this.getSinglePixelWidth()) {
              width = this.getSinglePixelWidth();
            }

            if (height === 0 && ctx.lineWidth < this.getSinglePixelWidth()) {
              height = this.getSinglePixelWidth();
            }

            var xw = x + width;
            var yh = y + height;
            ctx.moveTo(x, y);
            ctx.lineTo(xw, y);
            ctx.lineTo(xw, yh);
            ctx.lineTo(x, yh);
            ctx.lineTo(x, y);
            ctx.closePath();
            break;

          case _util.OPS.moveTo:
            x = args[j++];
            y = args[j++];
            ctx.moveTo(x, y);
            break;

          case _util.OPS.lineTo:
            x = args[j++];
            y = args[j++];
            ctx.lineTo(x, y);
            break;

          case _util.OPS.curveTo:
            x = args[j + 4];
            y = args[j + 5];
            ctx.bezierCurveTo(args[j], args[j + 1], args[j + 2], args[j + 3], x, y);
            j += 6;
            break;

          case _util.OPS.curveTo2:
            ctx.bezierCurveTo(x, y, args[j], args[j + 1], args[j + 2], args[j + 3]);
            x = args[j + 2];
            y = args[j + 3];
            j += 4;
            break;

          case _util.OPS.curveTo3:
            x = args[j + 2];
            y = args[j + 3];
            ctx.bezierCurveTo(args[j], args[j + 1], x, y, x, y);
            j += 4;
            break;

          case _util.OPS.closePath:
            ctx.closePath();
            break;
        }
      }

      current.setCurrentPoint(x, y);
    },
    closePath: function CanvasGraphics_closePath() {
      this.ctx.closePath();
    },
    stroke: function CanvasGraphics_stroke(consumePath) {
      consumePath = typeof consumePath !== "undefined" ? consumePath : true;
      var ctx = this.ctx;
      var strokeColor = this.current.strokeColor;
      ctx.globalAlpha = this.current.strokeAlpha;

      if (this.contentVisible) {
        if (strokeColor && strokeColor.hasOwnProperty("type") && strokeColor.type === "Pattern") {
          ctx.save();
          var transform = ctx.mozCurrentTransform;

          var scale = _util.Util.singularValueDecompose2dScale(transform)[0];

          ctx.strokeStyle = strokeColor.getPattern(ctx, this);
          ctx.lineWidth = Math.max(this.getSinglePixelWidth() * MIN_WIDTH_FACTOR, this.current.lineWidth * scale);
          ctx.stroke();
          ctx.restore();
        } else {
          ctx.lineWidth = Math.max(this.getSinglePixelWidth() * MIN_WIDTH_FACTOR, this.current.lineWidth);
          ctx.stroke();
        }
      }

      if (consumePath) {
        this.consumePath();
      }

      ctx.globalAlpha = this.current.fillAlpha;
    },
    closeStroke: function CanvasGraphics_closeStroke() {
      this.closePath();
      this.stroke();
    },
    fill: function CanvasGraphics_fill(consumePath) {
      consumePath = typeof consumePath !== "undefined" ? consumePath : true;
      var ctx = this.ctx;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;
      var needRestore = false;

      if (isPatternFill) {
        ctx.save();

        if (this.baseTransform) {
          ctx.setTransform.apply(ctx, this.baseTransform);
        }

        ctx.fillStyle = fillColor.getPattern(ctx, this);
        needRestore = true;
      }

      if (this.contentVisible) {
        if (this.pendingEOFill) {
          ctx.fill("evenodd");
          this.pendingEOFill = false;
        } else {
          ctx.fill();
        }
      }

      if (needRestore) {
        ctx.restore();
      }

      if (consumePath) {
        this.consumePath();
      }
    },
    eoFill: function CanvasGraphics_eoFill() {
      this.pendingEOFill = true;
      this.fill();
    },
    fillStroke: function CanvasGraphics_fillStroke() {
      this.fill(false);
      this.stroke(false);
      this.consumePath();
    },
    eoFillStroke: function CanvasGraphics_eoFillStroke() {
      this.pendingEOFill = true;
      this.fillStroke();
    },
    closeFillStroke: function CanvasGraphics_closeFillStroke() {
      this.closePath();
      this.fillStroke();
    },
    closeEOFillStroke: function CanvasGraphics_closeEOFillStroke() {
      this.pendingEOFill = true;
      this.closePath();
      this.fillStroke();
    },
    endPath: function CanvasGraphics_endPath() {
      this.consumePath();
    },
    clip: function CanvasGraphics_clip() {
      this.pendingClip = NORMAL_CLIP;
    },
    eoClip: function CanvasGraphics_eoClip() {
      this.pendingClip = EO_CLIP;
    },
    beginText: function CanvasGraphics_beginText() {
      this.current.textMatrix = _util.IDENTITY_MATRIX;
      this.current.textMatrixScale = 1;
      this.current.x = this.current.lineX = 0;
      this.current.y = this.current.lineY = 0;
    },
    endText: function CanvasGraphics_endText() {
      var paths = this.pendingTextPaths;
      var ctx = this.ctx;

      if (paths === undefined) {
        ctx.beginPath();
        return;
      }

      ctx.save();
      ctx.beginPath();

      for (var i = 0; i < paths.length; i++) {
        var path = paths[i];
        ctx.setTransform.apply(ctx, path.transform);
        ctx.translate(path.x, path.y);
        path.addToPath(ctx, path.fontSize);
      }

      ctx.restore();
      ctx.clip();
      ctx.beginPath();
      delete this.pendingTextPaths;
    },
    setCharSpacing: function CanvasGraphics_setCharSpacing(spacing) {
      this.current.charSpacing = spacing;
    },
    setWordSpacing: function CanvasGraphics_setWordSpacing(spacing) {
      this.current.wordSpacing = spacing;
    },
    setHScale: function CanvasGraphics_setHScale(scale) {
      this.current.textHScale = scale / 100;
    },
    setLeading: function CanvasGraphics_setLeading(leading) {
      this.current.leading = -leading;
    },
    setFont: function CanvasGraphics_setFont(fontRefName, size) {
      var fontObj = this.commonObjs.get(fontRefName);
      var current = this.current;

      if (!fontObj) {
        throw new Error("Can't find font for ".concat(fontRefName));
      }

      current.fontMatrix = fontObj.fontMatrix ? fontObj.fontMatrix : _util.FONT_IDENTITY_MATRIX;

      if (current.fontMatrix[0] === 0 || current.fontMatrix[3] === 0) {
        (0, _util.warn)("Invalid font matrix for font " + fontRefName);
      }

      if (size < 0) {
        size = -size;
        current.fontDirection = -1;
      } else {
        current.fontDirection = 1;
      }

      this.current.font = fontObj;
      this.current.fontSize = size;

      if (fontObj.isType3Font) {
        return;
      }

      var name = fontObj.loadedName || "sans-serif";
      var bold = "normal";

      if (fontObj.black) {
        bold = "900";
      } else if (fontObj.bold) {
        bold = "bold";
      }

      var italic = fontObj.italic ? "italic" : "normal";
      var typeface = "\"".concat(name, "\", ").concat(fontObj.fallbackName);
      var browserFontSize = size;

      if (size < MIN_FONT_SIZE) {
        browserFontSize = MIN_FONT_SIZE;
      } else if (size > MAX_FONT_SIZE) {
        browserFontSize = MAX_FONT_SIZE;
      }

      this.current.fontSizeScale = size / browserFontSize;
      this.ctx.font = "".concat(italic, " ").concat(bold, " ").concat(browserFontSize, "px ").concat(typeface);
    },
    setTextRenderingMode: function CanvasGraphics_setTextRenderingMode(mode) {
      this.current.textRenderingMode = mode;
    },
    setTextRise: function CanvasGraphics_setTextRise(rise) {
      this.current.textRise = rise;
    },
    moveText: function CanvasGraphics_moveText(x, y) {
      this.current.x = this.current.lineX += x;
      this.current.y = this.current.lineY += y;
    },
    setLeadingMoveText: function CanvasGraphics_setLeadingMoveText(x, y) {
      this.setLeading(-y);
      this.moveText(x, y);
    },
    setTextMatrix: function CanvasGraphics_setTextMatrix(a, b, c, d, e, f) {
      this.current.textMatrix = [a, b, c, d, e, f];
      this.current.textMatrixScale = Math.sqrt(a * a + b * b);
      this.current.x = this.current.lineX = 0;
      this.current.y = this.current.lineY = 0;
    },
    nextLine: function CanvasGraphics_nextLine() {
      this.moveText(0, this.current.leading);
    },
    paintChar: function paintChar(character, x, y, patternTransform) {
      var ctx = this.ctx;
      var current = this.current;
      var font = current.font;
      var textRenderingMode = current.textRenderingMode;
      var fontSize = current.fontSize / current.fontSizeScale;
      var fillStrokeMode = textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;
      var isAddToPathSet = !!(textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG);
      var patternFill = current.patternFill && !font.missingFile;
      var addToPath;

      if (font.disableFontFace || isAddToPathSet || patternFill) {
        addToPath = font.getPathGenerator(this.commonObjs, character);
      }

      if (font.disableFontFace || patternFill) {
        ctx.save();
        ctx.translate(x, y);
        ctx.beginPath();
        addToPath(ctx, fontSize);

        if (patternTransform) {
          ctx.setTransform.apply(ctx, patternTransform);
        }

        if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.fill();
        }

        if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.stroke();
        }

        ctx.restore();
      } else {
        if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.fillText(character, x, y);
        }

        if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.strokeText(character, x, y);
        }
      }

      if (isAddToPathSet) {
        var paths = this.pendingTextPaths || (this.pendingTextPaths = []);
        paths.push({
          transform: ctx.mozCurrentTransform,
          x: x,
          y: y,
          fontSize: fontSize,
          addToPath: addToPath
        });
      }
    },

    get isFontSubpixelAAEnabled() {
      var _this$cachedCanvases$ = this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled", 10, 10),
          ctx = _this$cachedCanvases$.context;

      ctx.scale(1.5, 1);
      ctx.fillText("I", 0, 10);
      var data = ctx.getImageData(0, 0, 10, 10).data;
      var enabled = false;

      for (var i = 3; i < data.length; i += 4) {
        if (data[i] > 0 && data[i] < 255) {
          enabled = true;
          break;
        }
      }

      return (0, _util.shadow)(this, "isFontSubpixelAAEnabled", enabled);
    },

    showText: function CanvasGraphics_showText(glyphs) {
      var current = this.current;
      var font = current.font;

      if (font.isType3Font) {
        return this.showType3Text(glyphs);
      }

      var fontSize = current.fontSize;

      if (fontSize === 0) {
        return undefined;
      }

      var ctx = this.ctx;
      var fontSizeScale = current.fontSizeScale;
      var charSpacing = current.charSpacing;
      var wordSpacing = current.wordSpacing;
      var fontDirection = current.fontDirection;
      var textHScale = current.textHScale * fontDirection;
      var glyphsLength = glyphs.length;
      var vertical = font.vertical;
      var spacingDir = vertical ? 1 : -1;
      var defaultVMetrics = font.defaultVMetrics;
      var widthAdvanceScale = fontSize * current.fontMatrix[0];
      var simpleFillText = current.textRenderingMode === _util.TextRenderingMode.FILL && !font.disableFontFace && !current.patternFill;
      ctx.save();
      var patternTransform;

      if (current.patternFill) {
        ctx.save();
        var pattern = current.fillColor.getPattern(ctx, this);
        patternTransform = ctx.mozCurrentTransform;
        ctx.restore();
        ctx.fillStyle = pattern;
      }

      ctx.transform.apply(ctx, current.textMatrix);
      ctx.translate(current.x, current.y + current.textRise);

      if (fontDirection > 0) {
        ctx.scale(textHScale, -1);
      } else {
        ctx.scale(textHScale, 1);
      }

      var lineWidth = current.lineWidth;
      var scale = current.textMatrixScale;

      if (scale === 0 || lineWidth === 0) {
        var fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;

        if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          this._cachedGetSinglePixelWidth = null;
          lineWidth = this.getSinglePixelWidth() * MIN_WIDTH_FACTOR;
        }
      } else {
        lineWidth /= scale;
      }

      if (fontSizeScale !== 1.0) {
        ctx.scale(fontSizeScale, fontSizeScale);
        lineWidth /= fontSizeScale;
      }

      ctx.lineWidth = lineWidth;
      var x = 0,
          i;

      for (i = 0; i < glyphsLength; ++i) {
        var glyph = glyphs[i];

        if ((0, _util.isNum)(glyph)) {
          x += spacingDir * glyph * fontSize / 1000;
          continue;
        }

        var restoreNeeded = false;
        var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;
        var character = glyph.fontChar;
        var accent = glyph.accent;
        var scaledX, scaledY, scaledAccentX, scaledAccentY;
        var width = glyph.width;

        if (vertical) {
          var vmetric, vx, vy;
          vmetric = glyph.vmetric || defaultVMetrics;
          vx = glyph.vmetric ? vmetric[1] : width * 0.5;
          vx = -vx * widthAdvanceScale;
          vy = vmetric[2] * widthAdvanceScale;
          width = vmetric ? -vmetric[0] : width;
          scaledX = vx / fontSizeScale;
          scaledY = (x + vy) / fontSizeScale;
        } else {
          scaledX = x / fontSizeScale;
          scaledY = 0;
        }

        if (font.remeasure && width > 0) {
          var measuredWidth = ctx.measureText(character).width * 1000 / fontSize * fontSizeScale;

          if (width < measuredWidth && this.isFontSubpixelAAEnabled) {
            var characterScaleX = width / measuredWidth;
            restoreNeeded = true;
            ctx.save();
            ctx.scale(characterScaleX, 1);
            scaledX /= characterScaleX;
          } else if (width !== measuredWidth) {
            scaledX += (width - measuredWidth) / 2000 * fontSize / fontSizeScale;
          }
        }

        if (this.contentVisible && (glyph.isInFont || font.missingFile)) {
          if (simpleFillText && !accent) {
            ctx.fillText(character, scaledX, scaledY);
          } else {
            this.paintChar(character, scaledX, scaledY, patternTransform);

            if (accent) {
              scaledAccentX = scaledX + fontSize * accent.offset.x / fontSizeScale;
              scaledAccentY = scaledY - fontSize * accent.offset.y / fontSizeScale;
              this.paintChar(accent.fontChar, scaledAccentX, scaledAccentY, patternTransform);
            }
          }
        }

        var charWidth;

        if (vertical) {
          charWidth = width * widthAdvanceScale - spacing * fontDirection;
        } else {
          charWidth = width * widthAdvanceScale + spacing * fontDirection;
        }

        x += charWidth;

        if (restoreNeeded) {
          ctx.restore();
        }
      }

      if (vertical) {
        current.y -= x;
      } else {
        current.x += x * textHScale;
      }

      ctx.restore();
    },
    showType3Text: function CanvasGraphics_showType3Text(glyphs) {
      var ctx = this.ctx;
      var current = this.current;
      var font = current.font;
      var fontSize = current.fontSize;
      var fontDirection = current.fontDirection;
      var spacingDir = font.vertical ? 1 : -1;
      var charSpacing = current.charSpacing;
      var wordSpacing = current.wordSpacing;
      var textHScale = current.textHScale * fontDirection;
      var fontMatrix = current.fontMatrix || _util.FONT_IDENTITY_MATRIX;
      var glyphsLength = glyphs.length;
      var isTextInvisible = current.textRenderingMode === _util.TextRenderingMode.INVISIBLE;
      var i, glyph, width, spacingLength;

      if (isTextInvisible || fontSize === 0) {
        return;
      }

      this._cachedGetSinglePixelWidth = null;
      ctx.save();
      ctx.transform.apply(ctx, current.textMatrix);
      ctx.translate(current.x, current.y);
      ctx.scale(textHScale, fontDirection);

      for (i = 0; i < glyphsLength; ++i) {
        glyph = glyphs[i];

        if ((0, _util.isNum)(glyph)) {
          spacingLength = spacingDir * glyph * fontSize / 1000;
          this.ctx.translate(spacingLength, 0);
          current.x += spacingLength * textHScale;
          continue;
        }

        var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;
        var operatorList = font.charProcOperatorList[glyph.operatorListId];

        if (!operatorList) {
          (0, _util.warn)("Type3 character \"".concat(glyph.operatorListId, "\" is not available."));
          continue;
        }

        if (this.contentVisible) {
          this.processingType3 = glyph;
          this.save();
          ctx.scale(fontSize, fontSize);
          ctx.transform.apply(ctx, fontMatrix);
          this.executeOperatorList(operatorList);
          this.restore();
        }

        var transformed = _util.Util.applyTransform([glyph.width, 0], fontMatrix);

        width = transformed[0] * fontSize + spacing;
        ctx.translate(width, 0);
        current.x += width * textHScale;
      }

      ctx.restore();
      this.processingType3 = null;
    },
    setCharWidth: function CanvasGraphics_setCharWidth(xWidth, yWidth) {},
    setCharWidthAndBounds: function CanvasGraphics_setCharWidthAndBounds(xWidth, yWidth, llx, lly, urx, ury) {
      this.ctx.rect(llx, lly, urx - llx, ury - lly);
      this.clip();
      this.endPath();
    },
    getColorN_Pattern: function CanvasGraphics_getColorN_Pattern(IR) {
      var _this = this;

      var pattern;

      if (IR[0] === "TilingPattern") {
        var color = IR[1];
        var baseTransform = this.baseTransform || this.ctx.mozCurrentTransform.slice();
        var canvasGraphicsFactory = {
          createCanvasGraphics: function createCanvasGraphics(ctx) {
            return new CanvasGraphics(ctx, _this.commonObjs, _this.objs, _this.canvasFactory, _this.webGLContext);
          }
        };
        pattern = new _pattern_helper.TilingPattern(IR, color, this.ctx, canvasGraphicsFactory, baseTransform);
      } else {
        pattern = (0, _pattern_helper.getShadingPatternFromIR)(IR);
      }

      return pattern;
    },
    setStrokeColorN: function CanvasGraphics_setStrokeColorN() {
      this.current.strokeColor = this.getColorN_Pattern(arguments);
    },
    setFillColorN: function CanvasGraphics_setFillColorN() {
      this.current.fillColor = this.getColorN_Pattern(arguments);
      this.current.patternFill = true;
    },
    setStrokeRGBColor: function CanvasGraphics_setStrokeRGBColor(r, g, b) {
      var color = _util.Util.makeCssRgb(r, g, b);

      this.ctx.strokeStyle = color;
      this.current.strokeColor = color;
    },
    setFillRGBColor: function CanvasGraphics_setFillRGBColor(r, g, b) {
      var color = _util.Util.makeCssRgb(r, g, b);

      this.ctx.fillStyle = color;
      this.current.fillColor = color;
      this.current.patternFill = false;
    },
    shadingFill: function CanvasGraphics_shadingFill(patternIR) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      this.save();
      var pattern = (0, _pattern_helper.getShadingPatternFromIR)(patternIR);
      ctx.fillStyle = pattern.getPattern(ctx, this, true);
      var inv = ctx.mozCurrentTransformInverse;

      if (inv) {
        var canvas = ctx.canvas;
        var width = canvas.width;
        var height = canvas.height;

        var bl = _util.Util.applyTransform([0, 0], inv);

        var br = _util.Util.applyTransform([0, height], inv);

        var ul = _util.Util.applyTransform([width, 0], inv);

        var ur = _util.Util.applyTransform([width, height], inv);

        var x0 = Math.min(bl[0], br[0], ul[0], ur[0]);
        var y0 = Math.min(bl[1], br[1], ul[1], ur[1]);
        var x1 = Math.max(bl[0], br[0], ul[0], ur[0]);
        var y1 = Math.max(bl[1], br[1], ul[1], ur[1]);
        this.ctx.fillRect(x0, y0, x1 - x0, y1 - y0);
      } else {
        this.ctx.fillRect(-1e10, -1e10, 2e10, 2e10);
      }

      this.restore();
    },
    beginInlineImage: function CanvasGraphics_beginInlineImage() {
      (0, _util.unreachable)("Should not call beginInlineImage");
    },
    beginImageData: function CanvasGraphics_beginImageData() {
      (0, _util.unreachable)("Should not call beginImageData");
    },
    paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) {
      if (!this.contentVisible) {
        return;
      }

      this.save();
      this.baseTransformStack.push(this.baseTransform);

      if (Array.isArray(matrix) && matrix.length === 6) {
        this.transform.apply(this, matrix);
      }

      this.baseTransform = this.ctx.mozCurrentTransform;

      if (bbox) {
        var width = bbox[2] - bbox[0];
        var height = bbox[3] - bbox[1];
        this.ctx.rect(bbox[0], bbox[1], width, height);
        this.clip();
        this.endPath();
      }
    },
    paintFormXObjectEnd: function CanvasGraphics_paintFormXObjectEnd() {
      if (!this.contentVisible) {
        return;
      }

      this.restore();
      this.baseTransform = this.baseTransformStack.pop();
    },
    beginGroup: function CanvasGraphics_beginGroup(group) {
      if (!this.contentVisible) {
        return;
      }

      this.save();
      var currentCtx = this.ctx;

      if (!group.isolated) {
        (0, _util.info)("TODO: Support non-isolated groups.");
      }

      if (group.knockout) {
        (0, _util.warn)("Knockout groups not supported.");
      }

      var currentTransform = currentCtx.mozCurrentTransform;

      if (group.matrix) {
        currentCtx.transform.apply(currentCtx, group.matrix);
      }

      if (!group.bbox) {
        throw new Error("Bounding box is required.");
      }

      var bounds = _util.Util.getAxialAlignedBoundingBox(group.bbox, currentCtx.mozCurrentTransform);

      var canvasBounds = [0, 0, currentCtx.canvas.width, currentCtx.canvas.height];
      bounds = _util.Util.intersect(bounds, canvasBounds) || [0, 0, 0, 0];
      var offsetX = Math.floor(bounds[0]);
      var offsetY = Math.floor(bounds[1]);
      var drawnWidth = Math.max(Math.ceil(bounds[2]) - offsetX, 1);
      var drawnHeight = Math.max(Math.ceil(bounds[3]) - offsetY, 1);
      var scaleX = 1,
          scaleY = 1;

      if (drawnWidth > MAX_GROUP_SIZE) {
        scaleX = drawnWidth / MAX_GROUP_SIZE;
        drawnWidth = MAX_GROUP_SIZE;
      }

      if (drawnHeight > MAX_GROUP_SIZE) {
        scaleY = drawnHeight / MAX_GROUP_SIZE;
        drawnHeight = MAX_GROUP_SIZE;
      }

      var cacheId = "groupAt" + this.groupLevel;

      if (group.smask) {
        cacheId += "_smask_" + this.smaskCounter++ % 2;
      }

      var scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight, true);
      var groupCtx = scratchCanvas.context;
      groupCtx.scale(1 / scaleX, 1 / scaleY);
      groupCtx.translate(-offsetX, -offsetY);
      groupCtx.transform.apply(groupCtx, currentTransform);

      if (group.smask) {
        this.smaskStack.push({
          canvas: scratchCanvas.canvas,
          context: groupCtx,
          offsetX: offsetX,
          offsetY: offsetY,
          scaleX: scaleX,
          scaleY: scaleY,
          subtype: group.smask.subtype,
          backdrop: group.smask.backdrop,
          transferMap: group.smask.transferMap || null,
          startTransformInverse: null
        });
      } else {
        currentCtx.setTransform(1, 0, 0, 1, 0, 0);
        currentCtx.translate(offsetX, offsetY);
        currentCtx.scale(scaleX, scaleY);
      }

      copyCtxState(currentCtx, groupCtx);
      this.ctx = groupCtx;
      this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]);
      this.groupStack.push(currentCtx);
      this.groupLevel++;
      this.current.activeSMask = null;
    },
    endGroup: function CanvasGraphics_endGroup(group) {
      if (!this.contentVisible) {
        return;
      }

      this.groupLevel--;
      var groupCtx = this.ctx;
      this.ctx = this.groupStack.pop();

      if (this.ctx.imageSmoothingEnabled !== undefined) {
        this.ctx.imageSmoothingEnabled = false;
      } else {
        this.ctx.mozImageSmoothingEnabled = false;
      }

      if (group.smask) {
        this.tempSMask = this.smaskStack.pop();
      } else {
        this.ctx.drawImage(groupCtx.canvas, 0, 0);
      }

      this.restore();
    },
    beginAnnotations: function CanvasGraphics_beginAnnotations() {
      this.save();

      if (this.baseTransform) {
        this.ctx.setTransform.apply(this.ctx, this.baseTransform);
      }
    },
    endAnnotations: function CanvasGraphics_endAnnotations() {
      this.restore();
    },
    beginAnnotation: function CanvasGraphics_beginAnnotation(rect, transform, matrix) {
      this.save();
      resetCtxToDefault(this.ctx);
      this.current = new CanvasExtraState();

      if (Array.isArray(rect) && rect.length === 4) {
        var width = rect[2] - rect[0];
        var height = rect[3] - rect[1];
        this.ctx.rect(rect[0], rect[1], width, height);
        this.clip();
        this.endPath();
      }

      this.transform.apply(this, transform);
      this.transform.apply(this, matrix);
    },
    endAnnotation: function CanvasGraphics_endAnnotation() {
      this.restore();
    },
    paintImageMaskXObject: function CanvasGraphics_paintImageMaskXObject(img) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      var width = img.width,
          height = img.height;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;
      var glyph = this.processingType3;

      if (COMPILE_TYPE3_GLYPHS && glyph && glyph.compiled === undefined) {
        if (width <= MAX_SIZE_TO_COMPILE && height <= MAX_SIZE_TO_COMPILE) {
          glyph.compiled = compileType3Glyph({
            data: img.data,
            width: width,
            height: height
          });
        } else {
          glyph.compiled = null;
        }
      }

      if (glyph && glyph.compiled) {
        glyph.compiled(ctx);
        return;
      }

      var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height);
      var maskCtx = maskCanvas.context;
      maskCtx.save();
      putBinaryImageMask(maskCtx, img);
      maskCtx.globalCompositeOperation = "source-in";
      maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor;
      maskCtx.fillRect(0, 0, width, height);
      maskCtx.restore();
      this.paintInlineImageXObject(maskCanvas.canvas);
    },
    paintImageMaskXObjectRepeat: function paintImageMaskXObjectRepeat(imgData, scaleX) {
      var skewX = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
      var skewY = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
      var scaleY = arguments.length > 4 ? arguments[4] : undefined;
      var positions = arguments.length > 5 ? arguments[5] : undefined;

      if (!this.contentVisible) {
        return;
      }

      var width = imgData.width;
      var height = imgData.height;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;
      var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height);
      var maskCtx = maskCanvas.context;
      maskCtx.save();
      putBinaryImageMask(maskCtx, imgData);
      maskCtx.globalCompositeOperation = "source-in";
      maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor;
      maskCtx.fillRect(0, 0, width, height);
      maskCtx.restore();
      var ctx = this.ctx;

      for (var i = 0, ii = positions.length; i < ii; i += 2) {
        ctx.save();
        ctx.transform(scaleX, skewX, skewY, scaleY, positions[i], positions[i + 1]);
        ctx.scale(1, -1);
        ctx.drawImage(maskCanvas.canvas, 0, 0, width, height, 0, -1, 1, 1);
        ctx.restore();
      }
    },
    paintImageMaskXObjectGroup: function CanvasGraphics_paintImageMaskXObjectGroup(images) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;

      for (var i = 0, ii = images.length; i < ii; i++) {
        var image = images[i];
        var width = image.width,
            height = image.height;
        var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height);
        var maskCtx = maskCanvas.context;
        maskCtx.save();
        putBinaryImageMask(maskCtx, image);
        maskCtx.globalCompositeOperation = "source-in";
        maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor;
        maskCtx.fillRect(0, 0, width, height);
        maskCtx.restore();
        ctx.save();
        ctx.transform.apply(ctx, image.transform);
        ctx.scale(1, -1);
        ctx.drawImage(maskCanvas.canvas, 0, 0, width, height, 0, -1, 1, 1);
        ctx.restore();
      }
    },
    paintImageXObject: function CanvasGraphics_paintImageXObject(objId) {
      if (!this.contentVisible) {
        return;
      }

      var imgData = objId.startsWith("g_") ? this.commonObjs.get(objId) : this.objs.get(objId);

      if (!imgData) {
        (0, _util.warn)("Dependent image isn't ready yet");
        return;
      }

      this.paintInlineImageXObject(imgData);
    },
    paintImageXObjectRepeat: function CanvasGraphics_paintImageXObjectRepeat(objId, scaleX, scaleY, positions) {
      if (!this.contentVisible) {
        return;
      }

      var imgData = objId.startsWith("g_") ? this.commonObjs.get(objId) : this.objs.get(objId);

      if (!imgData) {
        (0, _util.warn)("Dependent image isn't ready yet");
        return;
      }

      var width = imgData.width;
      var height = imgData.height;
      var map = [];

      for (var i = 0, ii = positions.length; i < ii; i += 2) {
        map.push({
          transform: [scaleX, 0, 0, scaleY, positions[i], positions[i + 1]],
          x: 0,
          y: 0,
          w: width,
          h: height
        });
      }

      this.paintInlineImageXObjectGroup(imgData, map);
    },
    paintInlineImageXObject: function CanvasGraphics_paintInlineImageXObject(imgData) {
      if (!this.contentVisible) {
        return;
      }

      var width = imgData.width;
      var height = imgData.height;
      var ctx = this.ctx;
      this.save();
      ctx.scale(1 / width, -1 / height);
      var currentTransform = ctx.mozCurrentTransformInverse;
      var a = currentTransform[0],
          b = currentTransform[1];
      var widthScale = Math.max(Math.sqrt(a * a + b * b), 1);
      var c = currentTransform[2],
          d = currentTransform[3];
      var heightScale = Math.max(Math.sqrt(c * c + d * d), 1);
      var imgToPaint, tmpCanvas;

      if (typeof HTMLElement === "function" && imgData instanceof HTMLElement || !imgData.data) {
        imgToPaint = imgData;
      } else {
        tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", width, height);
        var tmpCtx = tmpCanvas.context;
        putBinaryImageData(tmpCtx, imgData, this.current.transferMaps);
        imgToPaint = tmpCanvas.canvas;
      }

      var paintWidth = width,
          paintHeight = height;
      var tmpCanvasId = "prescale1";

      while (widthScale > 2 && paintWidth > 1 || heightScale > 2 && paintHeight > 1) {
        var newWidth = paintWidth,
            newHeight = paintHeight;

        if (widthScale > 2 && paintWidth > 1) {
          newWidth = Math.ceil(paintWidth / 2);
          widthScale /= paintWidth / newWidth;
        }

        if (heightScale > 2 && paintHeight > 1) {
          newHeight = Math.ceil(paintHeight / 2);
          heightScale /= paintHeight / newHeight;
        }

        tmpCanvas = this.cachedCanvases.getCanvas(tmpCanvasId, newWidth, newHeight);
        tmpCtx = tmpCanvas.context;
        tmpCtx.clearRect(0, 0, newWidth, newHeight);
        tmpCtx.drawImage(imgToPaint, 0, 0, paintWidth, paintHeight, 0, 0, newWidth, newHeight);
        imgToPaint = tmpCanvas.canvas;
        paintWidth = newWidth;
        paintHeight = newHeight;
        tmpCanvasId = tmpCanvasId === "prescale1" ? "prescale2" : "prescale1";
      }

      ctx.drawImage(imgToPaint, 0, 0, paintWidth, paintHeight, 0, -height, width, height);

      if (this.imageLayer) {
        var position = this.getCanvasPosition(0, -height);
        this.imageLayer.appendImage({
          imgData: imgData,
          left: position[0],
          top: position[1],
          width: width / currentTransform[0],
          height: height / currentTransform[3]
        });
      }

      this.restore();
    },
    paintInlineImageXObjectGroup: function CanvasGraphics_paintInlineImageXObjectGroup(imgData, map) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      var w = imgData.width;
      var h = imgData.height;
      var tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", w, h);
      var tmpCtx = tmpCanvas.context;
      putBinaryImageData(tmpCtx, imgData, this.current.transferMaps);

      for (var i = 0, ii = map.length; i < ii; i++) {
        var entry = map[i];
        ctx.save();
        ctx.transform.apply(ctx, entry.transform);
        ctx.scale(1, -1);
        ctx.drawImage(tmpCanvas.canvas, entry.x, entry.y, entry.w, entry.h, 0, -1, 1, 1);

        if (this.imageLayer) {
          var position = this.getCanvasPosition(entry.x, entry.y);
          this.imageLayer.appendImage({
            imgData: imgData,
            left: position[0],
            top: position[1],
            width: w,
            height: h
          });
        }

        ctx.restore();
      }
    },
    paintSolidColorImageMask: function CanvasGraphics_paintSolidColorImageMask() {
      if (!this.contentVisible) {
        return;
      }

      this.ctx.fillRect(0, 0, 1, 1);
    },
    markPoint: function CanvasGraphics_markPoint(tag) {},
    markPointProps: function CanvasGraphics_markPointProps(tag, properties) {},
    beginMarkedContent: function CanvasGraphics_beginMarkedContent(tag) {
      this.markedContentStack.push({
        visible: true
      });
    },
    beginMarkedContentProps: function CanvasGraphics_beginMarkedContentProps(tag, properties) {
      if (tag === "OC") {
        this.markedContentStack.push({
          visible: this.optionalContentConfig.isVisible(properties)
        });
      } else {
        this.markedContentStack.push({
          visible: true
        });
      }

      this.contentVisible = this.isContentVisible();
    },
    endMarkedContent: function CanvasGraphics_endMarkedContent() {
      this.markedContentStack.pop();
      this.contentVisible = this.isContentVisible();
    },
    beginCompat: function CanvasGraphics_beginCompat() {},
    endCompat: function CanvasGraphics_endCompat() {},
    consumePath: function CanvasGraphics_consumePath() {
      var ctx = this.ctx;

      if (this.pendingClip) {
        if (this.pendingClip === EO_CLIP) {
          ctx.clip("evenodd");
        } else {
          ctx.clip();
        }

        this.pendingClip = null;
      }

      ctx.beginPath();
    },
    getSinglePixelWidth: function getSinglePixelWidth(scale) {
      if (this._cachedGetSinglePixelWidth === null) {
        var inverse = this.ctx.mozCurrentTransformInverse;
        this._cachedGetSinglePixelWidth = Math.sqrt(Math.max(inverse[0] * inverse[0] + inverse[1] * inverse[1], inverse[2] * inverse[2] + inverse[3] * inverse[3]));
      }

      return this._cachedGetSinglePixelWidth;
    },
    getCanvasPosition: function CanvasGraphics_getCanvasPosition(x, y) {
      var transform = this.ctx.mozCurrentTransform;
      return [transform[0] * x + transform[2] * y + transform[4], transform[1] * x + transform[3] * y + transform[5]];
    },
    isContentVisible: function CanvasGraphics_isContentVisible() {
      for (var i = this.markedContentStack.length - 1; i >= 0; i--) {
        if (!this.markedContentStack[i].visible) {
          return false;
        }
      }

      return true;
    }
  };

  for (var op in _util.OPS) {
    CanvasGraphics.prototype[_util.OPS[op]] = CanvasGraphics.prototype[op];
  }

  return CanvasGraphics;
}();

exports.CanvasGraphics = CanvasGraphics;

/***/ }),
/* 208 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getShadingPatternFromIR = getShadingPatternFromIR;
exports.TilingPattern = void 0;

var _util = __w_pdfjs_require__(5);

var ShadingIRs = {};

function applyBoundingBox(ctx, bbox) {
  if (!bbox || typeof Path2D === "undefined") {
    return;
  }

  var width = bbox[2] - bbox[0];
  var height = bbox[3] - bbox[1];
  var region = new Path2D();
  region.rect(bbox[0], bbox[1], width, height);
  ctx.clip(region);
}

ShadingIRs.RadialAxial = {
  fromIR: function RadialAxial_fromIR(raw) {
    var type = raw[1];
    var bbox = raw[2];
    var colorStops = raw[3];
    var p0 = raw[4];
    var p1 = raw[5];
    var r0 = raw[6];
    var r1 = raw[7];
    return {
      type: "Pattern",
      getPattern: function RadialAxial_getPattern(ctx) {
        applyBoundingBox(ctx, bbox);
        var grad;

        if (type === "axial") {
          grad = ctx.createLinearGradient(p0[0], p0[1], p1[0], p1[1]);
        } else if (type === "radial") {
          grad = ctx.createRadialGradient(p0[0], p0[1], r0, p1[0], p1[1], r1);
        }

        for (var i = 0, ii = colorStops.length; i < ii; ++i) {
          var c = colorStops[i];
          grad.addColorStop(c[0], c[1]);
        }

        return grad;
      }
    };
  }
};

var createMeshCanvas = function createMeshCanvasClosure() {
  function drawTriangle(data, context, p1, p2, p3, c1, c2, c3) {
    var coords = context.coords,
        colors = context.colors;
    var bytes = data.data,
        rowSize = data.width * 4;
    var tmp;

    if (coords[p1 + 1] > coords[p2 + 1]) {
      tmp = p1;
      p1 = p2;
      p2 = tmp;
      tmp = c1;
      c1 = c2;
      c2 = tmp;
    }

    if (coords[p2 + 1] > coords[p3 + 1]) {
      tmp = p2;
      p2 = p3;
      p3 = tmp;
      tmp = c2;
      c2 = c3;
      c3 = tmp;
    }

    if (coords[p1 + 1] > coords[p2 + 1]) {
      tmp = p1;
      p1 = p2;
      p2 = tmp;
      tmp = c1;
      c1 = c2;
      c2 = tmp;
    }

    var x1 = (coords[p1] + context.offsetX) * context.scaleX;
    var y1 = (coords[p1 + 1] + context.offsetY) * context.scaleY;
    var x2 = (coords[p2] + context.offsetX) * context.scaleX;
    var y2 = (coords[p2 + 1] + context.offsetY) * context.scaleY;
    var x3 = (coords[p3] + context.offsetX) * context.scaleX;
    var y3 = (coords[p3 + 1] + context.offsetY) * context.scaleY;

    if (y1 >= y3) {
      return;
    }

    var c1r = colors[c1],
        c1g = colors[c1 + 1],
        c1b = colors[c1 + 2];
    var c2r = colors[c2],
        c2g = colors[c2 + 1],
        c2b = colors[c2 + 2];
    var c3r = colors[c3],
        c3g = colors[c3 + 1],
        c3b = colors[c3 + 2];
    var minY = Math.round(y1),
        maxY = Math.round(y3);
    var xa, car, cag, cab;
    var xb, cbr, cbg, cbb;

    for (var y = minY; y <= maxY; y++) {
      if (y < y2) {
        var _k = void 0;

        if (y < y1) {
          _k = 0;
        } else if (y1 === y2) {
          _k = 1;
        } else {
          _k = (y1 - y) / (y1 - y2);
        }

        xa = x1 - (x1 - x2) * _k;
        car = c1r - (c1r - c2r) * _k;
        cag = c1g - (c1g - c2g) * _k;
        cab = c1b - (c1b - c2b) * _k;
      } else {
        var _k2 = void 0;

        if (y > y3) {
          _k2 = 1;
        } else if (y2 === y3) {
          _k2 = 0;
        } else {
          _k2 = (y2 - y) / (y2 - y3);
        }

        xa = x2 - (x2 - x3) * _k2;
        car = c2r - (c2r - c3r) * _k2;
        cag = c2g - (c2g - c3g) * _k2;
        cab = c2b - (c2b - c3b) * _k2;
      }

      var k = void 0;

      if (y < y1) {
        k = 0;
      } else if (y > y3) {
        k = 1;
      } else {
        k = (y1 - y) / (y1 - y3);
      }

      xb = x1 - (x1 - x3) * k;
      cbr = c1r - (c1r - c3r) * k;
      cbg = c1g - (c1g - c3g) * k;
      cbb = c1b - (c1b - c3b) * k;
      var x1_ = Math.round(Math.min(xa, xb));
      var x2_ = Math.round(Math.max(xa, xb));
      var j = rowSize * y + x1_ * 4;

      for (var x = x1_; x <= x2_; x++) {
        k = (xa - x) / (xa - xb);

        if (k < 0) {
          k = 0;
        } else if (k > 1) {
          k = 1;
        }

        bytes[j++] = car - (car - cbr) * k | 0;
        bytes[j++] = cag - (cag - cbg) * k | 0;
        bytes[j++] = cab - (cab - cbb) * k | 0;
        bytes[j++] = 255;
      }
    }
  }

  function drawFigure(data, figure, context) {
    var ps = figure.coords;
    var cs = figure.colors;
    var i, ii;

    switch (figure.type) {
      case "lattice":
        var verticesPerRow = figure.verticesPerRow;
        var rows = Math.floor(ps.length / verticesPerRow) - 1;
        var cols = verticesPerRow - 1;

        for (i = 0; i < rows; i++) {
          var q = i * verticesPerRow;

          for (var j = 0; j < cols; j++, q++) {
            drawTriangle(data, context, ps[q], ps[q + 1], ps[q + verticesPerRow], cs[q], cs[q + 1], cs[q + verticesPerRow]);
            drawTriangle(data, context, ps[q + verticesPerRow + 1], ps[q + 1], ps[q + verticesPerRow], cs[q + verticesPerRow + 1], cs[q + 1], cs[q + verticesPerRow]);
          }
        }

        break;

      case "triangles":
        for (i = 0, ii = ps.length; i < ii; i += 3) {
          drawTriangle(data, context, ps[i], ps[i + 1], ps[i + 2], cs[i], cs[i + 1], cs[i + 2]);
        }

        break;

      default:
        throw new Error("illegal figure");
    }
  }

  function createMeshCanvas(bounds, combinesScale, coords, colors, figures, backgroundColor, cachedCanvases, webGLContext) {
    var EXPECTED_SCALE = 1.1;
    var MAX_PATTERN_SIZE = 3000;
    var BORDER_SIZE = 2;
    var offsetX = Math.floor(bounds[0]);
    var offsetY = Math.floor(bounds[1]);
    var boundsWidth = Math.ceil(bounds[2]) - offsetX;
    var boundsHeight = Math.ceil(bounds[3]) - offsetY;
    var width = Math.min(Math.ceil(Math.abs(boundsWidth * combinesScale[0] * EXPECTED_SCALE)), MAX_PATTERN_SIZE);
    var height = Math.min(Math.ceil(Math.abs(boundsHeight * combinesScale[1] * EXPECTED_SCALE)), MAX_PATTERN_SIZE);
    var scaleX = boundsWidth / width;
    var scaleY = boundsHeight / height;
    var context = {
      coords: coords,
      colors: colors,
      offsetX: -offsetX,
      offsetY: -offsetY,
      scaleX: 1 / scaleX,
      scaleY: 1 / scaleY
    };
    var paddedWidth = width + BORDER_SIZE * 2;
    var paddedHeight = height + BORDER_SIZE * 2;
    var canvas, tmpCanvas, i, ii;

    if (webGLContext.isEnabled) {
      canvas = webGLContext.drawFigures({
        width: width,
        height: height,
        backgroundColor: backgroundColor,
        figures: figures,
        context: context
      });
      tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false);
      tmpCanvas.context.drawImage(canvas, BORDER_SIZE, BORDER_SIZE);
      canvas = tmpCanvas.canvas;
    } else {
      tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false);
      var tmpCtx = tmpCanvas.context;
      var data = tmpCtx.createImageData(width, height);

      if (backgroundColor) {
        var bytes = data.data;

        for (i = 0, ii = bytes.length; i < ii; i += 4) {
          bytes[i] = backgroundColor[0];
          bytes[i + 1] = backgroundColor[1];
          bytes[i + 2] = backgroundColor[2];
          bytes[i + 3] = 255;
        }
      }

      for (i = 0; i < figures.length; i++) {
        drawFigure(data, figures[i], context);
      }

      tmpCtx.putImageData(data, BORDER_SIZE, BORDER_SIZE);
      canvas = tmpCanvas.canvas;
    }

    return {
      canvas: canvas,
      offsetX: offsetX - BORDER_SIZE * scaleX,
      offsetY: offsetY - BORDER_SIZE * scaleY,
      scaleX: scaleX,
      scaleY: scaleY
    };
  }

  return createMeshCanvas;
}();

ShadingIRs.Mesh = {
  fromIR: function Mesh_fromIR(raw) {
    var coords = raw[2];
    var colors = raw[3];
    var figures = raw[4];
    var bounds = raw[5];
    var matrix = raw[6];
    var bbox = raw[7];
    var background = raw[8];
    return {
      type: "Pattern",
      getPattern: function Mesh_getPattern(ctx, owner, shadingFill) {
        applyBoundingBox(ctx, bbox);
        var scale;

        if (shadingFill) {
          scale = _util.Util.singularValueDecompose2dScale(ctx.mozCurrentTransform);
        } else {
          scale = _util.Util.singularValueDecompose2dScale(owner.baseTransform);

          if (matrix) {
            var matrixScale = _util.Util.singularValueDecompose2dScale(matrix);

            scale = [scale[0] * matrixScale[0], scale[1] * matrixScale[1]];
          }
        }

        var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords, colors, figures, shadingFill ? null : background, owner.cachedCanvases, owner.webGLContext);

        if (!shadingFill) {
          ctx.setTransform.apply(ctx, owner.baseTransform);

          if (matrix) {
            ctx.transform.apply(ctx, matrix);
          }
        }

        ctx.translate(temporaryPatternCanvas.offsetX, temporaryPatternCanvas.offsetY);
        ctx.scale(temporaryPatternCanvas.scaleX, temporaryPatternCanvas.scaleY);
        return ctx.createPattern(temporaryPatternCanvas.canvas, "no-repeat");
      }
    };
  }
};
ShadingIRs.Dummy = {
  fromIR: function Dummy_fromIR() {
    return {
      type: "Pattern",
      getPattern: function Dummy_fromIR_getPattern() {
        return "hotpink";
      }
    };
  }
};

function getShadingPatternFromIR(raw) {
  var shadingIR = ShadingIRs[raw[0]];

  if (!shadingIR) {
    throw new Error("Unknown IR type: ".concat(raw[0]));
  }

  return shadingIR.fromIR(raw);
}

var TilingPattern = function TilingPatternClosure() {
  var PaintType = {
    COLORED: 1,
    UNCOLORED: 2
  };
  var MAX_PATTERN_SIZE = 3000;

  function TilingPattern(IR, color, ctx, canvasGraphicsFactory, baseTransform) {
    this.operatorList = IR[2];
    this.matrix = IR[3] || [1, 0, 0, 1, 0, 0];
    this.bbox = IR[4];
    this.xstep = IR[5];
    this.ystep = IR[6];
    this.paintType = IR[7];
    this.tilingType = IR[8];
    this.color = color;
    this.canvasGraphicsFactory = canvasGraphicsFactory;
    this.baseTransform = baseTransform;
    this.type = "Pattern";
    this.ctx = ctx;
  }

  TilingPattern.prototype = {
    createPatternCanvas: function TilinPattern_createPatternCanvas(owner) {
      var operatorList = this.operatorList;
      var bbox = this.bbox;
      var xstep = this.xstep;
      var ystep = this.ystep;
      var paintType = this.paintType;
      var tilingType = this.tilingType;
      var color = this.color;
      var canvasGraphicsFactory = this.canvasGraphicsFactory;
      (0, _util.info)("TilingType: " + tilingType);
      var x0 = bbox[0],
          y0 = bbox[1],
          x1 = bbox[2],
          y1 = bbox[3];

      var matrixScale = _util.Util.singularValueDecompose2dScale(this.matrix);

      var curMatrixScale = _util.Util.singularValueDecompose2dScale(this.baseTransform);

      var combinedScale = [matrixScale[0] * curMatrixScale[0], matrixScale[1] * curMatrixScale[1]];
      var dimx = this.getSizeAndScale(xstep, this.ctx.canvas.width, combinedScale[0]);
      var dimy = this.getSizeAndScale(ystep, this.ctx.canvas.height, combinedScale[1]);
      var tmpCanvas = owner.cachedCanvases.getCanvas("pattern", dimx.size, dimy.size, true);
      var tmpCtx = tmpCanvas.context;
      var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
      graphics.groupLevel = owner.groupLevel;
      this.setFillAndStrokeStyleToContext(graphics, paintType, color);
      graphics.transform(dimx.scale, 0, 0, dimy.scale, 0, 0);
      graphics.transform(1, 0, 0, 1, -x0, -y0);
      this.clipBbox(graphics, bbox, x0, y0, x1, y1);
      graphics.executeOperatorList(operatorList);
      this.ctx.transform(1, 0, 0, 1, x0, y0);
      this.ctx.scale(1 / dimx.scale, 1 / dimy.scale);
      return tmpCanvas.canvas;
    },
    getSizeAndScale: function TilingPattern_getSizeAndScale(step, realOutputSize, scale) {
      step = Math.abs(step);
      var maxSize = Math.max(MAX_PATTERN_SIZE, realOutputSize);
      var size = Math.ceil(step * scale);

      if (size >= maxSize) {
        size = maxSize;
      } else {
        scale = size / step;
      }

      return {
        scale: scale,
        size: size
      };
    },
    clipBbox: function clipBbox(graphics, bbox, x0, y0, x1, y1) {
      if (Array.isArray(bbox) && bbox.length === 4) {
        var bboxWidth = x1 - x0;
        var bboxHeight = y1 - y0;
        graphics.ctx.rect(x0, y0, bboxWidth, bboxHeight);
        graphics.clip();
        graphics.endPath();
      }
    },
    setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
      var context = graphics.ctx,
          current = graphics.current;

      switch (paintType) {
        case PaintType.COLORED:
          var ctx = this.ctx;
          context.fillStyle = ctx.fillStyle;
          context.strokeStyle = ctx.strokeStyle;
          current.fillColor = ctx.fillStyle;
          current.strokeColor = ctx.strokeStyle;
          break;

        case PaintType.UNCOLORED:
          var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);

          context.fillStyle = cssColor;
          context.strokeStyle = cssColor;
          current.fillColor = cssColor;
          current.strokeColor = cssColor;
          break;

        default:
          throw new _util.FormatError("Unsupported paint type: ".concat(paintType));
      }
    },
    getPattern: function TilingPattern_getPattern(ctx, owner) {
      ctx = this.ctx;
      ctx.setTransform.apply(ctx, this.baseTransform);
      ctx.transform.apply(ctx, this.matrix);
      var temporaryPatternCanvas = this.createPatternCanvas(owner);
      return ctx.createPattern(temporaryPatternCanvas, "repeat");
    }
  };
  return TilingPattern;
}();

exports.TilingPattern = TilingPattern;

/***/ }),
/* 209 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.GlobalWorkerOptions = void 0;
var GlobalWorkerOptions = Object.create(null);
exports.GlobalWorkerOptions = GlobalWorkerOptions;
GlobalWorkerOptions.workerPort = GlobalWorkerOptions.workerPort === undefined ? null : GlobalWorkerOptions.workerPort;
GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc;

/***/ }),
/* 210 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MessageHandler = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var CallbackKind = {
  UNKNOWN: 0,
  DATA: 1,
  ERROR: 2
};
var StreamKind = {
  UNKNOWN: 0,
  CANCEL: 1,
  CANCEL_COMPLETE: 2,
  CLOSE: 3,
  ENQUEUE: 4,
  ERROR: 5,
  PULL: 6,
  PULL_COMPLETE: 7,
  START_COMPLETE: 8
};

function wrapReason(reason) {
  if (_typeof(reason) !== "object" || reason === null) {
    return reason;
  }

  switch (reason.name) {
    case "AbortException":
      return new _util.AbortException(reason.message);

    case "MissingPDFException":
      return new _util.MissingPDFException(reason.message);

    case "UnexpectedResponseException":
      return new _util.UnexpectedResponseException(reason.message, reason.status);

    case "UnknownErrorException":
      return new _util.UnknownErrorException(reason.message, reason.details);

    default:
      return new _util.UnknownErrorException(reason.message, reason.toString());
  }
}

var MessageHandler = /*#__PURE__*/function () {
  function MessageHandler(sourceName, targetName, comObj) {
    var _this = this;

    _classCallCheck(this, MessageHandler);

    this.sourceName = sourceName;
    this.targetName = targetName;
    this.comObj = comObj;
    this.callbackId = 1;
    this.streamId = 1;
    this.postMessageTransfers = true;
    this.streamSinks = Object.create(null);
    this.streamControllers = Object.create(null);
    this.callbackCapabilities = Object.create(null);
    this.actionHandler = Object.create(null);

    this._onComObjOnMessage = function (event) {
      var data = event.data;

      if (data.targetName !== _this.sourceName) {
        return;
      }

      if (data.stream) {
        _this._processStreamMessage(data);

        return;
      }

      if (data.callback) {
        var callbackId = data.callbackId;
        var capability = _this.callbackCapabilities[callbackId];

        if (!capability) {
          throw new Error("Cannot resolve callback ".concat(callbackId));
        }

        delete _this.callbackCapabilities[callbackId];

        if (data.callback === CallbackKind.DATA) {
          capability.resolve(data.data);
        } else if (data.callback === CallbackKind.ERROR) {
          capability.reject(wrapReason(data.reason));
        } else {
          throw new Error("Unexpected callback case");
        }

        return;
      }

      var action = _this.actionHandler[data.action];

      if (!action) {
        throw new Error("Unknown action from worker: ".concat(data.action));
      }

      if (data.callbackId) {
        var cbSourceName = _this.sourceName;
        var cbTargetName = data.sourceName;
        new Promise(function (resolve) {
          resolve(action(data.data));
        }).then(function (result) {
          comObj.postMessage({
            sourceName: cbSourceName,
            targetName: cbTargetName,
            callback: CallbackKind.DATA,
            callbackId: data.callbackId,
            data: result
          });
        }, function (reason) {
          comObj.postMessage({
            sourceName: cbSourceName,
            targetName: cbTargetName,
            callback: CallbackKind.ERROR,
            callbackId: data.callbackId,
            reason: wrapReason(reason)
          });
        });
        return;
      }

      if (data.streamId) {
        _this._createStreamSink(data);

        return;
      }

      action(data.data);
    };

    comObj.addEventListener("message", this._onComObjOnMessage);
  }

  _createClass(MessageHandler, [{
    key: "on",
    value: function on(actionName, handler) {
      var ah = this.actionHandler;

      if (ah[actionName]) {
        throw new Error("There is already an actionName called \"".concat(actionName, "\""));
      }

      ah[actionName] = handler;
    }
  }, {
    key: "send",
    value: function send(actionName, data, transfers) {
      this._postMessage({
        sourceName: this.sourceName,
        targetName: this.targetName,
        action: actionName,
        data: data
      }, transfers);
    }
  }, {
    key: "sendWithPromise",
    value: function sendWithPromise(actionName, data, transfers) {
      var callbackId = this.callbackId++;
      var capability = (0, _util.createPromiseCapability)();
      this.callbackCapabilities[callbackId] = capability;

      try {
        this._postMessage({
          sourceName: this.sourceName,
          targetName: this.targetName,
          action: actionName,
          callbackId: callbackId,
          data: data
        }, transfers);
      } catch (ex) {
        capability.reject(ex);
      }

      return capability.promise;
    }
  }, {
    key: "sendWithStream",
    value: function sendWithStream(actionName, data, queueingStrategy, transfers) {
      var _this2 = this;

      var streamId = this.streamId++;
      var sourceName = this.sourceName;
      var targetName = this.targetName;
      var comObj = this.comObj;
      return new ReadableStream({
        start: function start(controller) {
          var startCapability = (0, _util.createPromiseCapability)();
          _this2.streamControllers[streamId] = {
            controller: controller,
            startCall: startCapability,
            pullCall: null,
            cancelCall: null,
            isClosed: false
          };

          _this2._postMessage({
            sourceName: sourceName,
            targetName: targetName,
            action: actionName,
            streamId: streamId,
            data: data,
            desiredSize: controller.desiredSize
          }, transfers);

          return startCapability.promise;
        },
        pull: function pull(controller) {
          var pullCapability = (0, _util.createPromiseCapability)();
          _this2.streamControllers[streamId].pullCall = pullCapability;
          comObj.postMessage({
            sourceName: sourceName,
            targetName: targetName,
            stream: StreamKind.PULL,
            streamId: streamId,
            desiredSize: controller.desiredSize
          });
          return pullCapability.promise;
        },
        cancel: function cancel(reason) {
          (0, _util.assert)(reason instanceof Error, "cancel must have a valid reason");
          var cancelCapability = (0, _util.createPromiseCapability)();
          _this2.streamControllers[streamId].cancelCall = cancelCapability;
          _this2.streamControllers[streamId].isClosed = true;
          comObj.postMessage({
            sourceName: sourceName,
            targetName: targetName,
            stream: StreamKind.CANCEL,
            streamId: streamId,
            reason: wrapReason(reason)
          });
          return cancelCapability.promise;
        }
      }, queueingStrategy);
    }
  }, {
    key: "_createStreamSink",
    value: function _createStreamSink(data) {
      var self = this;
      var action = this.actionHandler[data.action];
      var streamId = data.streamId;
      var sourceName = this.sourceName;
      var targetName = data.sourceName;
      var comObj = this.comObj;
      var streamSink = {
        enqueue: function enqueue(chunk) {
          var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
          var transfers = arguments.length > 2 ? arguments[2] : undefined;

          if (this.isCancelled) {
            return;
          }

          var lastDesiredSize = this.desiredSize;
          this.desiredSize -= size;

          if (lastDesiredSize > 0 && this.desiredSize <= 0) {
            this.sinkCapability = (0, _util.createPromiseCapability)();
            this.ready = this.sinkCapability.promise;
          }

          self._postMessage({
            sourceName: sourceName,
            targetName: targetName,
            stream: StreamKind.ENQUEUE,
            streamId: streamId,
            chunk: chunk
          }, transfers);
        },
        close: function close() {
          if (this.isCancelled) {
            return;
          }

          this.isCancelled = true;
          comObj.postMessage({
            sourceName: sourceName,
            targetName: targetName,
            stream: StreamKind.CLOSE,
            streamId: streamId
          });
          delete self.streamSinks[streamId];
        },
        error: function error(reason) {
          (0, _util.assert)(reason instanceof Error, "error must have a valid reason");

          if (this.isCancelled) {
            return;
          }

          this.isCancelled = true;
          comObj.postMessage({
            sourceName: sourceName,
            targetName: targetName,
            stream: StreamKind.ERROR,
            streamId: streamId,
            reason: wrapReason(reason)
          });
        },
        sinkCapability: (0, _util.createPromiseCapability)(),
        onPull: null,
        onCancel: null,
        isCancelled: false,
        desiredSize: data.desiredSize,
        ready: null
      };
      streamSink.sinkCapability.resolve();
      streamSink.ready = streamSink.sinkCapability.promise;
      this.streamSinks[streamId] = streamSink;
      new Promise(function (resolve) {
        resolve(action(data.data, streamSink));
      }).then(function () {
        comObj.postMessage({
          sourceName: sourceName,
          targetName: targetName,
          stream: StreamKind.START_COMPLETE,
          streamId: streamId,
          success: true
        });
      }, function (reason) {
        comObj.postMessage({
          sourceName: sourceName,
          targetName: targetName,
          stream: StreamKind.START_COMPLETE,
          streamId: streamId,
          reason: wrapReason(reason)
        });
      });
    }
  }, {
    key: "_processStreamMessage",
    value: function _processStreamMessage(data) {
      var streamId = data.streamId;
      var sourceName = this.sourceName;
      var targetName = data.sourceName;
      var comObj = this.comObj;

      switch (data.stream) {
        case StreamKind.START_COMPLETE:
          if (data.success) {
            this.streamControllers[streamId].startCall.resolve();
          } else {
            this.streamControllers[streamId].startCall.reject(wrapReason(data.reason));
          }

          break;

        case StreamKind.PULL_COMPLETE:
          if (data.success) {
            this.streamControllers[streamId].pullCall.resolve();
          } else {
            this.streamControllers[streamId].pullCall.reject(wrapReason(data.reason));
          }

          break;

        case StreamKind.PULL:
          if (!this.streamSinks[streamId]) {
            comObj.postMessage({
              sourceName: sourceName,
              targetName: targetName,
              stream: StreamKind.PULL_COMPLETE,
              streamId: streamId,
              success: true
            });
            break;
          }

          if (this.streamSinks[streamId].desiredSize <= 0 && data.desiredSize > 0) {
            this.streamSinks[streamId].sinkCapability.resolve();
          }

          this.streamSinks[streamId].desiredSize = data.desiredSize;
          var onPull = this.streamSinks[data.streamId].onPull;
          new Promise(function (resolve) {
            resolve(onPull && onPull());
          }).then(function () {
            comObj.postMessage({
              sourceName: sourceName,
              targetName: targetName,
              stream: StreamKind.PULL_COMPLETE,
              streamId: streamId,
              success: true
            });
          }, function (reason) {
            comObj.postMessage({
              sourceName: sourceName,
              targetName: targetName,
              stream: StreamKind.PULL_COMPLETE,
              streamId: streamId,
              reason: wrapReason(reason)
            });
          });
          break;

        case StreamKind.ENQUEUE:
          (0, _util.assert)(this.streamControllers[streamId], "enqueue should have stream controller");

          if (this.streamControllers[streamId].isClosed) {
            break;
          }

          this.streamControllers[streamId].controller.enqueue(data.chunk);
          break;

        case StreamKind.CLOSE:
          (0, _util.assert)(this.streamControllers[streamId], "close should have stream controller");

          if (this.streamControllers[streamId].isClosed) {
            break;
          }

          this.streamControllers[streamId].isClosed = true;
          this.streamControllers[streamId].controller.close();

          this._deleteStreamController(streamId);

          break;

        case StreamKind.ERROR:
          (0, _util.assert)(this.streamControllers[streamId], "error should have stream controller");
          this.streamControllers[streamId].controller.error(wrapReason(data.reason));

          this._deleteStreamController(streamId);

          break;

        case StreamKind.CANCEL_COMPLETE:
          if (data.success) {
            this.streamControllers[streamId].cancelCall.resolve();
          } else {
            this.streamControllers[streamId].cancelCall.reject(wrapReason(data.reason));
          }

          this._deleteStreamController(streamId);

          break;

        case StreamKind.CANCEL:
          if (!this.streamSinks[streamId]) {
            break;
          }

          var onCancel = this.streamSinks[data.streamId].onCancel;
          new Promise(function (resolve) {
            resolve(onCancel && onCancel(wrapReason(data.reason)));
          }).then(function () {
            comObj.postMessage({
              sourceName: sourceName,
              targetName: targetName,
              stream: StreamKind.CANCEL_COMPLETE,
              streamId: streamId,
              success: true
            });
          }, function (reason) {
            comObj.postMessage({
              sourceName: sourceName,
              targetName: targetName,
              stream: StreamKind.CANCEL_COMPLETE,
              streamId: streamId,
              reason: wrapReason(reason)
            });
          });
          this.streamSinks[streamId].sinkCapability.reject(wrapReason(data.reason));
          this.streamSinks[streamId].isCancelled = true;
          delete this.streamSinks[streamId];
          break;

        default:
          throw new Error("Unexpected stream case");
      }
    }
  }, {
    key: "_deleteStreamController",
    value: function () {
      var _deleteStreamController2 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee(streamId) {
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return Promise.allSettled([this.streamControllers[streamId].startCall, this.streamControllers[streamId].pullCall, this.streamControllers[streamId].cancelCall].map(function (capability) {
                  return capability && capability.promise;
                }));

              case 2:
                delete this.streamControllers[streamId];

              case 3:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function _deleteStreamController(_x) {
        return _deleteStreamController2.apply(this, arguments);
      }

      return _deleteStreamController;
    }()
  }, {
    key: "_postMessage",
    value: function _postMessage(message, transfers) {
      if (transfers && this.postMessageTransfers) {
        this.comObj.postMessage(message, transfers);
      } else {
        this.comObj.postMessage(message);
      }
    }
  }, {
    key: "destroy",
    value: function destroy() {
      this.comObj.removeEventListener("message", this._onComObjOnMessage);
    }
  }]);

  return MessageHandler;
}();

exports.MessageHandler = MessageHandler;

/***/ }),
/* 211 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Metadata = void 0;

var _util = __w_pdfjs_require__(5);

var _xml_parser = __w_pdfjs_require__(212);

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var Metadata = /*#__PURE__*/function () {
  function Metadata(data) {
    _classCallCheck(this, Metadata);

    (0, _util.assert)(typeof data === "string", "Metadata: input is not a string");
    data = this._repair(data);
    var parser = new _xml_parser.SimpleXMLParser();
    var xmlDocument = parser.parseFromString(data);
    this._metadataMap = new Map();

    if (xmlDocument) {
      this._parse(xmlDocument);
    }
  }

  _createClass(Metadata, [{
    key: "_repair",
    value: function _repair(data) {
      return data.replace(/^[^<]+/, "").replace(/>\\376\\377([^<]+)/g, function (all, codes) {
        var bytes = codes.replace(/\\([0-3])([0-7])([0-7])/g, function (code, d1, d2, d3) {
          return String.fromCharCode(d1 * 64 + d2 * 8 + d3 * 1);
        }).replace(/&(amp|apos|gt|lt|quot);/g, function (str, name) {
          switch (name) {
            case "amp":
              return "&";

            case "apos":
              return "'";

            case "gt":
              return ">";

            case "lt":
              return "<";

            case "quot":
              return '"';
          }

          throw new Error("_repair: ".concat(name, " isn't defined."));
        });
        var chars = "";

        for (var i = 0, ii = bytes.length; i < ii; i += 2) {
          var code = bytes.charCodeAt(i) * 256 + bytes.charCodeAt(i + 1);

          if (code >= 32 && code < 127 && code !== 60 && code !== 62 && code !== 38) {
            chars += String.fromCharCode(code);
          } else {
            chars += "&#x" + (0x10000 + code).toString(16).substring(1) + ";";
          }
        }

        return ">" + chars;
      });
    }
  }, {
    key: "_parse",
    value: function _parse(xmlDocument) {
      var rdf = xmlDocument.documentElement;

      if (rdf.nodeName.toLowerCase() !== "rdf:rdf") {
        rdf = rdf.firstChild;

        while (rdf && rdf.nodeName.toLowerCase() !== "rdf:rdf") {
          rdf = rdf.nextSibling;
        }
      }

      var nodeName = rdf ? rdf.nodeName.toLowerCase() : null;

      if (!rdf || nodeName !== "rdf:rdf" || !rdf.hasChildNodes()) {
        return;
      }

      var children = rdf.childNodes;

      for (var i = 0, ii = children.length; i < ii; i++) {
        var desc = children[i];

        if (desc.nodeName.toLowerCase() !== "rdf:description") {
          continue;
        }

        for (var j = 0, jj = desc.childNodes.length; j < jj; j++) {
          if (desc.childNodes[j].nodeName.toLowerCase() !== "#text") {
            var entry = desc.childNodes[j];
            var name = entry.nodeName.toLowerCase();

            this._metadataMap.set(name, entry.textContent.trim());
          }
        }
      }
    }
  }, {
    key: "get",
    value: function get(name) {
      return this._metadataMap.has(name) ? this._metadataMap.get(name) : null;
    }
  }, {
    key: "getAll",
    value: function getAll() {
      return Object.fromEntries(this._metadataMap);
    }
  }, {
    key: "has",
    value: function has(name) {
      return this._metadataMap.has(name);
    }
  }]);

  return Metadata;
}();

exports.Metadata = Metadata;

/***/ }),
/* 212 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SimpleXMLParser = void 0;

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }

function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var XMLParserErrorCode = {
  NoError: 0,
  EndOfDocument: -1,
  UnterminatedCdat: -2,
  UnterminatedXmlDeclaration: -3,
  UnterminatedDoctypeDeclaration: -4,
  UnterminatedComment: -5,
  MalformedElement: -6,
  OutOfMemory: -7,
  UnterminatedAttributeValue: -8,
  UnterminatedElement: -9,
  ElementNeverBegun: -10
};

function isWhitespace(s, index) {
  var ch = s[index];
  return ch === " " || ch === "\n" || ch === "\r" || ch === "\t";
}

function isWhitespaceString(s) {
  for (var i = 0, ii = s.length; i < ii; i++) {
    if (!isWhitespace(s, i)) {
      return false;
    }
  }

  return true;
}

var XMLParserBase = /*#__PURE__*/function () {
  function XMLParserBase() {
    _classCallCheck(this, XMLParserBase);
  }

  _createClass(XMLParserBase, [{
    key: "_resolveEntities",
    value: function _resolveEntities(s) {
      var _this = this;

      return s.replace(/&([^;]+);/g, function (all, entity) {
        if (entity.substring(0, 2) === "#x") {
          return String.fromCharCode(parseInt(entity.substring(2), 16));
        } else if (entity.substring(0, 1) === "#") {
          return String.fromCharCode(parseInt(entity.substring(1), 10));
        }

        switch (entity) {
          case "lt":
            return "<";

          case "gt":
            return ">";

          case "amp":
            return "&";

          case "quot":
            return '"';
        }

        return _this.onResolveEntity(entity);
      });
    }
  }, {
    key: "_parseContent",
    value: function _parseContent(s, start) {
      var attributes = [];
      var pos = start;

      function skipWs() {
        while (pos < s.length && isWhitespace(s, pos)) {
          ++pos;
        }
      }

      while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "/") {
        ++pos;
      }

      var name = s.substring(start, pos);
      skipWs();

      while (pos < s.length && s[pos] !== ">" && s[pos] !== "/" && s[pos] !== "?") {
        skipWs();
        var attrName = "",
            attrValue = "";

        while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== "=") {
          attrName += s[pos];
          ++pos;
        }

        skipWs();

        if (s[pos] !== "=") {
          return null;
        }

        ++pos;
        skipWs();
        var attrEndChar = s[pos];

        if (attrEndChar !== '"' && attrEndChar !== "'") {
          return null;
        }

        var attrEndIndex = s.indexOf(attrEndChar, ++pos);

        if (attrEndIndex < 0) {
          return null;
        }

        attrValue = s.substring(pos, attrEndIndex);
        attributes.push({
          name: attrName,
          value: this._resolveEntities(attrValue)
        });
        pos = attrEndIndex + 1;
        skipWs();
      }

      return {
        name: name,
        attributes: attributes,
        parsed: pos - start
      };
    }
  }, {
    key: "_parseProcessingInstruction",
    value: function _parseProcessingInstruction(s, start) {
      var pos = start;

      function skipWs() {
        while (pos < s.length && isWhitespace(s, pos)) {
          ++pos;
        }
      }

      while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "/") {
        ++pos;
      }

      var name = s.substring(start, pos);
      skipWs();
      var attrStart = pos;

      while (pos < s.length && (s[pos] !== "?" || s[pos + 1] !== ">")) {
        ++pos;
      }

      var value = s.substring(attrStart, pos);
      return {
        name: name,
        value: value,
        parsed: pos - start
      };
    }
  }, {
    key: "parseXml",
    value: function parseXml(s) {
      var i = 0;

      while (i < s.length) {
        var ch = s[i];
        var j = i;

        if (ch === "<") {
          ++j;
          var ch2 = s[j];
          var q = void 0;

          switch (ch2) {
            case "/":
              ++j;
              q = s.indexOf(">", j);

              if (q < 0) {
                this.onError(XMLParserErrorCode.UnterminatedElement);
                return;
              }

              this.onEndElement(s.substring(j, q));
              j = q + 1;
              break;

            case "?":
              ++j;

              var pi = this._parseProcessingInstruction(s, j);

              if (s.substring(j + pi.parsed, j + pi.parsed + 2) !== "?>") {
                this.onError(XMLParserErrorCode.UnterminatedXmlDeclaration);
                return;
              }

              this.onPi(pi.name, pi.value);
              j += pi.parsed + 2;
              break;

            case "!":
              if (s.substring(j + 1, j + 3) === "--") {
                q = s.indexOf("-->", j + 3);

                if (q < 0) {
                  this.onError(XMLParserErrorCode.UnterminatedComment);
                  return;
                }

                this.onComment(s.substring(j + 3, q));
                j = q + 3;
              } else if (s.substring(j + 1, j + 8) === "[CDATA[") {
                q = s.indexOf("]]>", j + 8);

                if (q < 0) {
                  this.onError(XMLParserErrorCode.UnterminatedCdat);
                  return;
                }

                this.onCdata(s.substring(j + 8, q));
                j = q + 3;
              } else if (s.substring(j + 1, j + 8) === "DOCTYPE") {
                var q2 = s.indexOf("[", j + 8);
                var complexDoctype = false;
                q = s.indexOf(">", j + 8);

                if (q < 0) {
                  this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);
                  return;
                }

                if (q2 > 0 && q > q2) {
                  q = s.indexOf("]>", j + 8);

                  if (q < 0) {
                    this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);
                    return;
                  }

                  complexDoctype = true;
                }

                var doctypeContent = s.substring(j + 8, q + (complexDoctype ? 1 : 0));
                this.onDoctype(doctypeContent);
                j = q + (complexDoctype ? 2 : 1);
              } else {
                this.onError(XMLParserErrorCode.MalformedElement);
                return;
              }

              break;

            default:
              var content = this._parseContent(s, j);

              if (content === null) {
                this.onError(XMLParserErrorCode.MalformedElement);
                return;
              }

              var isClosed = false;

              if (s.substring(j + content.parsed, j + content.parsed + 2) === "/>") {
                isClosed = true;
              } else if (s.substring(j + content.parsed, j + content.parsed + 1) !== ">") {
                this.onError(XMLParserErrorCode.UnterminatedElement);
                return;
              }

              this.onBeginElement(content.name, content.attributes, isClosed);
              j += content.parsed + (isClosed ? 2 : 1);
              break;
          }
        } else {
          while (j < s.length && s[j] !== "<") {
            j++;
          }

          var text = s.substring(i, j);
          this.onText(this._resolveEntities(text));
        }

        i = j;
      }
    }
  }, {
    key: "onResolveEntity",
    value: function onResolveEntity(name) {
      return "&".concat(name, ";");
    }
  }, {
    key: "onPi",
    value: function onPi(name, value) {}
  }, {
    key: "onComment",
    value: function onComment(text) {}
  }, {
    key: "onCdata",
    value: function onCdata(text) {}
  }, {
    key: "onDoctype",
    value: function onDoctype(doctypeContent) {}
  }, {
    key: "onText",
    value: function onText(text) {}
  }, {
    key: "onBeginElement",
    value: function onBeginElement(name, attributes, isEmpty) {}
  }, {
    key: "onEndElement",
    value: function onEndElement(name) {}
  }, {
    key: "onError",
    value: function onError(code) {}
  }]);

  return XMLParserBase;
}();

var SimpleDOMNode = /*#__PURE__*/function () {
  function SimpleDOMNode(nodeName, nodeValue) {
    _classCallCheck(this, SimpleDOMNode);

    this.nodeName = nodeName;
    this.nodeValue = nodeValue;
    Object.defineProperty(this, "parentNode", {
      value: null,
      writable: true
    });
  }

  _createClass(SimpleDOMNode, [{
    key: "hasChildNodes",
    value: function hasChildNodes() {
      return this.childNodes && this.childNodes.length > 0;
    }
  }, {
    key: "firstChild",
    get: function get() {
      return this.childNodes && this.childNodes[0];
    }
  }, {
    key: "nextSibling",
    get: function get() {
      var childNodes = this.parentNode.childNodes;

      if (!childNodes) {
        return undefined;
      }

      var index = childNodes.indexOf(this);

      if (index === -1) {
        return undefined;
      }

      return childNodes[index + 1];
    }
  }, {
    key: "textContent",
    get: function get() {
      if (!this.childNodes) {
        return this.nodeValue || "";
      }

      return this.childNodes.map(function (child) {
        return child.textContent;
      }).join("");
    }
  }]);

  return SimpleDOMNode;
}();

var SimpleXMLParser = /*#__PURE__*/function (_XMLParserBase) {
  _inherits(SimpleXMLParser, _XMLParserBase);

  var _super = _createSuper(SimpleXMLParser);

  function SimpleXMLParser() {
    var _this2;

    _classCallCheck(this, SimpleXMLParser);

    _this2 = _super.call(this);
    _this2._currentFragment = null;
    _this2._stack = null;
    _this2._errorCode = XMLParserErrorCode.NoError;
    return _this2;
  }

  _createClass(SimpleXMLParser, [{
    key: "parseFromString",
    value: function parseFromString(data) {
      this._currentFragment = [];
      this._stack = [];
      this._errorCode = XMLParserErrorCode.NoError;
      this.parseXml(data);

      if (this._errorCode !== XMLParserErrorCode.NoError) {
        return undefined;
      }

      var _this$_currentFragmen = _slicedToArray(this._currentFragment, 1),
          documentElement = _this$_currentFragmen[0];

      if (!documentElement) {
        return undefined;
      }

      return {
        documentElement: documentElement
      };
    }
  }, {
    key: "onResolveEntity",
    value: function onResolveEntity(name) {
      switch (name) {
        case "apos":
          return "'";
      }

      return _get(_getPrototypeOf(SimpleXMLParser.prototype), "onResolveEntity", this).call(this, name);
    }
  }, {
    key: "onText",
    value: function onText(text) {
      if (isWhitespaceString(text)) {
        return;
      }

      var node = new SimpleDOMNode("#text", text);

      this._currentFragment.push(node);
    }
  }, {
    key: "onCdata",
    value: function onCdata(text) {
      var node = new SimpleDOMNode("#text", text);

      this._currentFragment.push(node);
    }
  }, {
    key: "onBeginElement",
    value: function onBeginElement(name, attributes, isEmpty) {
      var node = new SimpleDOMNode(name);
      node.childNodes = [];

      this._currentFragment.push(node);

      if (isEmpty) {
        return;
      }

      this._stack.push(this._currentFragment);

      this._currentFragment = node.childNodes;
    }
  }, {
    key: "onEndElement",
    value: function onEndElement(name) {
      this._currentFragment = this._stack.pop() || [];
      var lastElement = this._currentFragment[this._currentFragment.length - 1];

      if (!lastElement) {
        return;
      }

      for (var i = 0, ii = lastElement.childNodes.length; i < ii; i++) {
        lastElement.childNodes[i].parentNode = lastElement;
      }
    }
  }, {
    key: "onError",
    value: function onError(code) {
      this._errorCode = code;
    }
  }]);

  return SimpleXMLParser;
}(XMLParserBase);

exports.SimpleXMLParser = SimpleXMLParser;

/***/ }),
/* 213 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.OptionalContentConfig = void 0;

var _util = __w_pdfjs_require__(5);

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var OptionalContentGroup = function OptionalContentGroup(name, intent) {
  _classCallCheck(this, OptionalContentGroup);

  this.visible = true;
  this.name = name;
  this.intent = intent;
};

var OptionalContentConfig = /*#__PURE__*/function () {
  function OptionalContentConfig(data) {
    _classCallCheck(this, OptionalContentConfig);

    this.name = null;
    this.creator = null;
    this._order = null;
    this._groups = new Map();

    if (data === null) {
      return;
    }

    this.name = data.name;
    this.creator = data.creator;
    this._order = data.order;

    var _iterator = _createForOfIteratorHelper(data.groups),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var _group = _step.value;

        this._groups.set(_group.id, new OptionalContentGroup(_group.name, _group.intent));
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (data.baseState === "OFF") {
      var _iterator2 = _createForOfIteratorHelper(this._groups),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var group = _step2.value;
          group.visible = false;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    }

    var _iterator3 = _createForOfIteratorHelper(data.on),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var on = _step3.value;
        this._groups.get(on).visible = true;
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    var _iterator4 = _createForOfIteratorHelper(data.off),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var off = _step4.value;
        this._groups.get(off).visible = false;
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }
  }

  _createClass(OptionalContentConfig, [{
    key: "isVisible",
    value: function isVisible(group) {
      if (group.type === "OCG") {
        if (!this._groups.has(group.id)) {
          (0, _util.warn)("Optional content group not found: ".concat(group.id));
          return true;
        }

        return this._groups.get(group.id).visible;
      } else if (group.type === "OCMD") {
        if (group.expression) {
          (0, _util.warn)("Visibility expression not supported yet.");
        }

        if (!group.policy || group.policy === "AnyOn") {
          var _iterator5 = _createForOfIteratorHelper(group.ids),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var id = _step5.value;

              if (!this._groups.has(id)) {
                (0, _util.warn)("Optional content group not found: ".concat(id));
                return true;
              }

              if (this._groups.get(id).visible) {
                return true;
              }
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          return false;
        } else if (group.policy === "AllOn") {
          var _iterator6 = _createForOfIteratorHelper(group.ids),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var _id = _step6.value;

              if (!this._groups.has(_id)) {
                (0, _util.warn)("Optional content group not found: ".concat(_id));
                return true;
              }

              if (!this._groups.get(_id).visible) {
                return false;
              }
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }

          return true;
        } else if (group.policy === "AnyOff") {
          var _iterator7 = _createForOfIteratorHelper(group.ids),
              _step7;

          try {
            for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
              var _id2 = _step7.value;

              if (!this._groups.has(_id2)) {
                (0, _util.warn)("Optional content group not found: ".concat(_id2));
                return true;
              }

              if (!this._groups.get(_id2).visible) {
                return true;
              }
            }
          } catch (err) {
            _iterator7.e(err);
          } finally {
            _iterator7.f();
          }

          return false;
        } else if (group.policy === "AllOff") {
          var _iterator8 = _createForOfIteratorHelper(group.ids),
              _step8;

          try {
            for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
              var _id3 = _step8.value;

              if (!this._groups.has(_id3)) {
                (0, _util.warn)("Optional content group not found: ".concat(_id3));
                return true;
              }

              if (this._groups.get(_id3).visible) {
                return false;
              }
            }
          } catch (err) {
            _iterator8.e(err);
          } finally {
            _iterator8.f();
          }

          return true;
        }

        (0, _util.warn)("Unknown optional content policy ".concat(group.policy, "."));
        return true;
      }

      (0, _util.warn)("Unknown group type ".concat(group.type, "."));
      return true;
    }
  }, {
    key: "setVisibility",
    value: function setVisibility(id) {
      var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

      if (!this._groups.has(id)) {
        (0, _util.warn)("Optional content group not found: ".concat(id));
        return;
      }

      this._groups.get(id).visible = !!visible;
    }
  }, {
    key: "getOrder",
    value: function getOrder() {
      if (!this._groups.size) {
        return null;
      }

      if (this._order) {
        return this._order.slice();
      }

      return Array.from(this._groups.keys());
    }
  }, {
    key: "getGroups",
    value: function getGroups() {
      if (!this._groups.size) {
        return null;
      }

      return Object.fromEntries(this._groups);
    }
  }, {
    key: "getGroup",
    value: function getGroup(id) {
      return this._groups.get(id) || null;
    }
  }]);

  return OptionalContentConfig;
}();

exports.OptionalContentConfig = OptionalContentConfig;

/***/ }),
/* 214 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFDataTransportStream = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var PDFDataTransportStream = /*#__PURE__*/function () {
  function PDFDataTransportStream(params, pdfDataRangeTransport) {
    var _this = this;

    _classCallCheck(this, PDFDataTransportStream);

    (0, _util.assert)(pdfDataRangeTransport, 'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');
    this._queuedChunks = [];
    this._progressiveDone = params.progressiveDone || false;
    var initialData = params.initialData;

    if (initialData && initialData.length > 0) {
      var buffer = new Uint8Array(initialData).buffer;

      this._queuedChunks.push(buffer);
    }

    this._pdfDataRangeTransport = pdfDataRangeTransport;
    this._isStreamingSupported = !params.disableStream;
    this._isRangeSupported = !params.disableRange;
    this._contentLength = params.length;
    this._fullRequestReader = null;
    this._rangeReaders = [];

    this._pdfDataRangeTransport.addRangeListener(function (begin, chunk) {
      _this._onReceiveData({
        begin: begin,
        chunk: chunk
      });
    });

    this._pdfDataRangeTransport.addProgressListener(function (loaded, total) {
      _this._onProgress({
        loaded: loaded,
        total: total
      });
    });

    this._pdfDataRangeTransport.addProgressiveReadListener(function (chunk) {
      _this._onReceiveData({
        chunk: chunk
      });
    });

    this._pdfDataRangeTransport.addProgressiveDoneListener(function () {
      _this._onProgressiveDone();
    });

    this._pdfDataRangeTransport.transportReady();
  }

  _createClass(PDFDataTransportStream, [{
    key: "_onReceiveData",
    value: function _onReceiveData(args) {
      var buffer = new Uint8Array(args.chunk).buffer;

      if (args.begin === undefined) {
        if (this._fullRequestReader) {
          this._fullRequestReader._enqueue(buffer);
        } else {
          this._queuedChunks.push(buffer);
        }
      } else {
        var found = this._rangeReaders.some(function (rangeReader) {
          if (rangeReader._begin !== args.begin) {
            return false;
          }

          rangeReader._enqueue(buffer);

          return true;
        });

        (0, _util.assert)(found, "_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.");
      }
    }
  }, {
    key: "_onProgress",
    value: function _onProgress(evt) {
      if (evt.total === undefined) {
        var firstReader = this._rangeReaders[0];

        if (firstReader && firstReader.onProgress) {
          firstReader.onProgress({
            loaded: evt.loaded
          });
        }
      } else {
        var fullReader = this._fullRequestReader;

        if (fullReader && fullReader.onProgress) {
          fullReader.onProgress({
            loaded: evt.loaded,
            total: evt.total
          });
        }
      }
    }
  }, {
    key: "_onProgressiveDone",
    value: function _onProgressiveDone() {
      if (this._fullRequestReader) {
        this._fullRequestReader.progressiveDone();
      }

      this._progressiveDone = true;
    }
  }, {
    key: "_removeRangeReader",
    value: function _removeRangeReader(reader) {
      var i = this._rangeReaders.indexOf(reader);

      if (i >= 0) {
        this._rangeReaders.splice(i, 1);
      }
    }
  }, {
    key: "getFullReader",
    value: function getFullReader() {
      (0, _util.assert)(!this._fullRequestReader, "PDFDataTransportStream.getFullReader can only be called once.");
      var queuedChunks = this._queuedChunks;
      this._queuedChunks = null;
      return new PDFDataTransportStreamReader(this, queuedChunks, this._progressiveDone);
    }
  }, {
    key: "getRangeReader",
    value: function getRangeReader(begin, end) {
      if (end <= this._progressiveDataLength) {
        return null;
      }

      var reader = new PDFDataTransportStreamRangeReader(this, begin, end);

      this._pdfDataRangeTransport.requestDataRange(begin, end);

      this._rangeReaders.push(reader);

      return reader;
    }
  }, {
    key: "cancelAllRequests",
    value: function cancelAllRequests(reason) {
      if (this._fullRequestReader) {
        this._fullRequestReader.cancel(reason);
      }

      var readers = this._rangeReaders.slice(0);

      readers.forEach(function (rangeReader) {
        rangeReader.cancel(reason);
      });

      this._pdfDataRangeTransport.abort();
    }
  }, {
    key: "_progressiveDataLength",
    get: function get() {
      return this._fullRequestReader ? this._fullRequestReader._loaded : 0;
    }
  }]);

  return PDFDataTransportStream;
}();

exports.PDFDataTransportStream = PDFDataTransportStream;

var PDFDataTransportStreamReader = /*#__PURE__*/function () {
  function PDFDataTransportStreamReader(stream, queuedChunks) {
    var progressiveDone = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

    _classCallCheck(this, PDFDataTransportStreamReader);

    this._stream = stream;
    this._done = progressiveDone || false;
    this._filename = null;
    this._queuedChunks = queuedChunks || [];
    this._loaded = 0;

    var _iterator = _createForOfIteratorHelper(this._queuedChunks),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var chunk = _step.value;
        this._loaded += chunk.byteLength;
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    this._requests = [];
    this._headersReady = Promise.resolve();
    stream._fullRequestReader = this;
    this.onProgress = null;
  }

  _createClass(PDFDataTransportStreamReader, [{
    key: "_enqueue",
    value: function _enqueue(chunk) {
      if (this._done) {
        return;
      }

      if (this._requests.length > 0) {
        var requestCapability = this._requests.shift();

        requestCapability.resolve({
          value: chunk,
          done: false
        });
      } else {
        this._queuedChunks.push(chunk);
      }

      this._loaded += chunk.byteLength;
    }
  }, {
    key: "read",
    value: function () {
      var _read = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var chunk, requestCapability;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                if (!(this._queuedChunks.length > 0)) {
                  _context.next = 3;
                  break;
                }

                chunk = this._queuedChunks.shift();
                return _context.abrupt("return", {
                  value: chunk,
                  done: false
                });

              case 3:
                if (!this._done) {
                  _context.next = 5;
                  break;
                }

                return _context.abrupt("return", {
                  value: undefined,
                  done: true
                });

              case 5:
                requestCapability = (0, _util.createPromiseCapability)();

                this._requests.push(requestCapability);

                return _context.abrupt("return", requestCapability.promise);

              case 8:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function read() {
        return _read.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      this._done = true;

      this._requests.forEach(function (requestCapability) {
        requestCapability.resolve({
          value: undefined,
          done: true
        });
      });

      this._requests = [];
    }
  }, {
    key: "progressiveDone",
    value: function progressiveDone() {
      if (this._done) {
        return;
      }

      this._done = true;
    }
  }, {
    key: "headersReady",
    get: function get() {
      return this._headersReady;
    }
  }, {
    key: "filename",
    get: function get() {
      return this._filename;
    }
  }, {
    key: "isRangeSupported",
    get: function get() {
      return this._stream._isRangeSupported;
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return this._stream._isStreamingSupported;
    }
  }, {
    key: "contentLength",
    get: function get() {
      return this._stream._contentLength;
    }
  }]);

  return PDFDataTransportStreamReader;
}();

var PDFDataTransportStreamRangeReader = /*#__PURE__*/function () {
  function PDFDataTransportStreamRangeReader(stream, begin, end) {
    _classCallCheck(this, PDFDataTransportStreamRangeReader);

    this._stream = stream;
    this._begin = begin;
    this._end = end;
    this._queuedChunk = null;
    this._requests = [];
    this._done = false;
    this.onProgress = null;
  }

  _createClass(PDFDataTransportStreamRangeReader, [{
    key: "_enqueue",
    value: function _enqueue(chunk) {
      if (this._done) {
        return;
      }

      if (this._requests.length === 0) {
        this._queuedChunk = chunk;
      } else {
        var requestsCapability = this._requests.shift();

        requestsCapability.resolve({
          value: chunk,
          done: false
        });

        this._requests.forEach(function (requestCapability) {
          requestCapability.resolve({
            value: undefined,
            done: true
          });
        });

        this._requests = [];
      }

      this._done = true;

      this._stream._removeRangeReader(this);
    }
  }, {
    key: "read",
    value: function () {
      var _read2 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
        var chunk, requestCapability;
        return _regenerator["default"].wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                if (!this._queuedChunk) {
                  _context2.next = 4;
                  break;
                }

                chunk = this._queuedChunk;
                this._queuedChunk = null;
                return _context2.abrupt("return", {
                  value: chunk,
                  done: false
                });

              case 4:
                if (!this._done) {
                  _context2.next = 6;
                  break;
                }

                return _context2.abrupt("return", {
                  value: undefined,
                  done: true
                });

              case 6:
                requestCapability = (0, _util.createPromiseCapability)();

                this._requests.push(requestCapability);

                return _context2.abrupt("return", requestCapability.promise);

              case 9:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2, this);
      }));

      function read() {
        return _read2.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      this._done = true;

      this._requests.forEach(function (requestCapability) {
        requestCapability.resolve({
          value: undefined,
          done: true
        });
      });

      this._requests = [];

      this._stream._removeRangeReader(this);
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return false;
    }
  }]);

  return PDFDataTransportStreamRangeReader;
}();

/***/ }),
/* 215 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.WebGLContext = void 0;

var _util = __w_pdfjs_require__(5);

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var WebGLContext = /*#__PURE__*/function () {
  function WebGLContext(_ref) {
    var _ref$enable = _ref.enable,
        enable = _ref$enable === void 0 ? false : _ref$enable;

    _classCallCheck(this, WebGLContext);

    this._enabled = enable === true;
  }

  _createClass(WebGLContext, [{
    key: "composeSMask",
    value: function composeSMask(_ref2) {
      var layer = _ref2.layer,
          mask = _ref2.mask,
          properties = _ref2.properties;
      return WebGLUtils.composeSMask(layer, mask, properties);
    }
  }, {
    key: "drawFigures",
    value: function drawFigures(_ref3) {
      var width = _ref3.width,
          height = _ref3.height,
          backgroundColor = _ref3.backgroundColor,
          figures = _ref3.figures,
          context = _ref3.context;
      return WebGLUtils.drawFigures(width, height, backgroundColor, figures, context);
    }
  }, {
    key: "clear",
    value: function clear() {
      WebGLUtils.cleanup();
    }
  }, {
    key: "isEnabled",
    get: function get() {
      var enabled = this._enabled;

      if (enabled) {
        enabled = WebGLUtils.tryInitGL();
      }

      return (0, _util.shadow)(this, "isEnabled", enabled);
    }
  }]);

  return WebGLContext;
}();

exports.WebGLContext = WebGLContext;

var WebGLUtils = function WebGLUtilsClosure() {
  function loadShader(gl, code, shaderType) {
    var shader = gl.createShader(shaderType);
    gl.shaderSource(shader, code);
    gl.compileShader(shader);
    var compiled = gl.getShaderParameter(shader, gl.COMPILE_STATUS);

    if (!compiled) {
      var errorMsg = gl.getShaderInfoLog(shader);
      throw new Error("Error during shader compilation: " + errorMsg);
    }

    return shader;
  }

  function createVertexShader(gl, code) {
    return loadShader(gl, code, gl.VERTEX_SHADER);
  }

  function createFragmentShader(gl, code) {
    return loadShader(gl, code, gl.FRAGMENT_SHADER);
  }

  function createProgram(gl, shaders) {
    var program = gl.createProgram();

    for (var i = 0, ii = shaders.length; i < ii; ++i) {
      gl.attachShader(program, shaders[i]);
    }

    gl.linkProgram(program);
    var linked = gl.getProgramParameter(program, gl.LINK_STATUS);

    if (!linked) {
      var errorMsg = gl.getProgramInfoLog(program);
      throw new Error("Error during program linking: " + errorMsg);
    }

    return program;
  }

  function createTexture(gl, image, textureId) {
    gl.activeTexture(textureId);
    var texture = gl.createTexture();
    gl.bindTexture(gl.TEXTURE_2D, texture);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);
    gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);
    return texture;
  }

  var currentGL, currentCanvas;

  function generateGL() {
    if (currentGL) {
      return;
    }

    currentCanvas = document.createElement("canvas");
    currentGL = currentCanvas.getContext("webgl", {
      premultipliedalpha: false
    });
  }

  var smaskVertexShaderCode = "\
  attribute vec2 a_position;                                    \
  attribute vec2 a_texCoord;                                    \
                                                                \
  uniform vec2 u_resolution;                                    \
                                                                \
  varying vec2 v_texCoord;                                      \
                                                                \
  void main() {                                                 \
    vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;   \
    gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);          \
                                                                \
    v_texCoord = a_texCoord;                                    \
  }                                                             ";
  var smaskFragmentShaderCode = "\
  precision mediump float;                                      \
                                                                \
  uniform vec4 u_backdrop;                                      \
  uniform int u_subtype;                                        \
  uniform sampler2D u_image;                                    \
  uniform sampler2D u_mask;                                     \
                                                                \
  varying vec2 v_texCoord;                                      \
                                                                \
  void main() {                                                 \
    vec4 imageColor = texture2D(u_image, v_texCoord);           \
    vec4 maskColor = texture2D(u_mask, v_texCoord);             \
    if (u_backdrop.a > 0.0) {                                   \
      maskColor.rgb = maskColor.rgb * maskColor.a +             \
                      u_backdrop.rgb * (1.0 - maskColor.a);     \
    }                                                           \
    float lum;                                                  \
    if (u_subtype == 0) {                                       \
      lum = maskColor.a;                                        \
    } else {                                                    \
      lum = maskColor.r * 0.3 + maskColor.g * 0.59 +            \
            maskColor.b * 0.11;                                 \
    }                                                           \
    imageColor.a *= lum;                                        \
    imageColor.rgb *= imageColor.a;                             \
    gl_FragColor = imageColor;                                  \
  }                                                             ";
  var smaskCache = null;

  function initSmaskGL() {
    var canvas, gl;
    generateGL();
    canvas = currentCanvas;
    currentCanvas = null;
    gl = currentGL;
    currentGL = null;
    var vertexShader = createVertexShader(gl, smaskVertexShaderCode);
    var fragmentShader = createFragmentShader(gl, smaskFragmentShaderCode);
    var program = createProgram(gl, [vertexShader, fragmentShader]);
    gl.useProgram(program);
    var cache = {};
    cache.gl = gl;
    cache.canvas = canvas;
    cache.resolutionLocation = gl.getUniformLocation(program, "u_resolution");
    cache.positionLocation = gl.getAttribLocation(program, "a_position");
    cache.backdropLocation = gl.getUniformLocation(program, "u_backdrop");
    cache.subtypeLocation = gl.getUniformLocation(program, "u_subtype");
    var texCoordLocation = gl.getAttribLocation(program, "a_texCoord");
    var texLayerLocation = gl.getUniformLocation(program, "u_image");
    var texMaskLocation = gl.getUniformLocation(program, "u_mask");
    var texCoordBuffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer);
    gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0]), gl.STATIC_DRAW);
    gl.enableVertexAttribArray(texCoordLocation);
    gl.vertexAttribPointer(texCoordLocation, 2, gl.FLOAT, false, 0, 0);
    gl.uniform1i(texLayerLocation, 0);
    gl.uniform1i(texMaskLocation, 1);
    smaskCache = cache;
  }

  function composeSMask(layer, mask, properties) {
    var width = layer.width,
        height = layer.height;

    if (!smaskCache) {
      initSmaskGL();
    }

    var cache = smaskCache,
        canvas = cache.canvas,
        gl = cache.gl;
    canvas.width = width;
    canvas.height = height;
    gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);
    gl.uniform2f(cache.resolutionLocation, width, height);

    if (properties.backdrop) {
      gl.uniform4f(cache.resolutionLocation, properties.backdrop[0], properties.backdrop[1], properties.backdrop[2], 1);
    } else {
      gl.uniform4f(cache.resolutionLocation, 0, 0, 0, 0);
    }

    gl.uniform1i(cache.subtypeLocation, properties.subtype === "Luminosity" ? 1 : 0);
    var texture = createTexture(gl, layer, gl.TEXTURE0);
    var maskTexture = createTexture(gl, mask, gl.TEXTURE1);
    var buffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
    gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([0, 0, width, 0, 0, height, 0, height, width, 0, width, height]), gl.STATIC_DRAW);
    gl.enableVertexAttribArray(cache.positionLocation);
    gl.vertexAttribPointer(cache.positionLocation, 2, gl.FLOAT, false, 0, 0);
    gl.clearColor(0, 0, 0, 0);
    gl.enable(gl.BLEND);
    gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
    gl.clear(gl.COLOR_BUFFER_BIT);
    gl.drawArrays(gl.TRIANGLES, 0, 6);
    gl.flush();
    gl.deleteTexture(texture);
    gl.deleteTexture(maskTexture);
    gl.deleteBuffer(buffer);
    return canvas;
  }

  var figuresVertexShaderCode = "\
  attribute vec2 a_position;                                    \
  attribute vec3 a_color;                                       \
                                                                \
  uniform vec2 u_resolution;                                    \
  uniform vec2 u_scale;                                         \
  uniform vec2 u_offset;                                        \
                                                                \
  varying vec4 v_color;                                         \
                                                                \
  void main() {                                                 \
    vec2 position = (a_position + u_offset) * u_scale;          \
    vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;     \
    gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);          \
                                                                \
    v_color = vec4(a_color / 255.0, 1.0);                       \
  }                                                             ";
  var figuresFragmentShaderCode = "\
  precision mediump float;                                      \
                                                                \
  varying vec4 v_color;                                         \
                                                                \
  void main() {                                                 \
    gl_FragColor = v_color;                                     \
  }                                                             ";
  var figuresCache = null;

  function initFiguresGL() {
    var canvas, gl;
    generateGL();
    canvas = currentCanvas;
    currentCanvas = null;
    gl = currentGL;
    currentGL = null;
    var vertexShader = createVertexShader(gl, figuresVertexShaderCode);
    var fragmentShader = createFragmentShader(gl, figuresFragmentShaderCode);
    var program = createProgram(gl, [vertexShader, fragmentShader]);
    gl.useProgram(program);
    var cache = {};
    cache.gl = gl;
    cache.canvas = canvas;
    cache.resolutionLocation = gl.getUniformLocation(program, "u_resolution");
    cache.scaleLocation = gl.getUniformLocation(program, "u_scale");
    cache.offsetLocation = gl.getUniformLocation(program, "u_offset");
    cache.positionLocation = gl.getAttribLocation(program, "a_position");
    cache.colorLocation = gl.getAttribLocation(program, "a_color");
    figuresCache = cache;
  }

  function drawFigures(width, height, backgroundColor, figures, context) {
    if (!figuresCache) {
      initFiguresGL();
    }

    var cache = figuresCache,
        canvas = cache.canvas,
        gl = cache.gl;
    canvas.width = width;
    canvas.height = height;
    gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);
    gl.uniform2f(cache.resolutionLocation, width, height);
    var count = 0;
    var i, ii, rows;

    for (i = 0, ii = figures.length; i < ii; i++) {
      switch (figures[i].type) {
        case "lattice":
          rows = figures[i].coords.length / figures[i].verticesPerRow | 0;
          count += (rows - 1) * (figures[i].verticesPerRow - 1) * 6;
          break;

        case "triangles":
          count += figures[i].coords.length;
          break;
      }
    }

    var coords = new Float32Array(count * 2);
    var colors = new Uint8Array(count * 3);
    var coordsMap = context.coords,
        colorsMap = context.colors;
    var pIndex = 0,
        cIndex = 0;

    for (i = 0, ii = figures.length; i < ii; i++) {
      var figure = figures[i],
          ps = figure.coords,
          cs = figure.colors;

      switch (figure.type) {
        case "lattice":
          var cols = figure.verticesPerRow;
          rows = ps.length / cols | 0;

          for (var row = 1; row < rows; row++) {
            var offset = row * cols + 1;

            for (var col = 1; col < cols; col++, offset++) {
              coords[pIndex] = coordsMap[ps[offset - cols - 1]];
              coords[pIndex + 1] = coordsMap[ps[offset - cols - 1] + 1];
              coords[pIndex + 2] = coordsMap[ps[offset - cols]];
              coords[pIndex + 3] = coordsMap[ps[offset - cols] + 1];
              coords[pIndex + 4] = coordsMap[ps[offset - 1]];
              coords[pIndex + 5] = coordsMap[ps[offset - 1] + 1];
              colors[cIndex] = colorsMap[cs[offset - cols - 1]];
              colors[cIndex + 1] = colorsMap[cs[offset - cols - 1] + 1];
              colors[cIndex + 2] = colorsMap[cs[offset - cols - 1] + 2];
              colors[cIndex + 3] = colorsMap[cs[offset - cols]];
              colors[cIndex + 4] = colorsMap[cs[offset - cols] + 1];
              colors[cIndex + 5] = colorsMap[cs[offset - cols] + 2];
              colors[cIndex + 6] = colorsMap[cs[offset - 1]];
              colors[cIndex + 7] = colorsMap[cs[offset - 1] + 1];
              colors[cIndex + 8] = colorsMap[cs[offset - 1] + 2];
              coords[pIndex + 6] = coords[pIndex + 2];
              coords[pIndex + 7] = coords[pIndex + 3];
              coords[pIndex + 8] = coords[pIndex + 4];
              coords[pIndex + 9] = coords[pIndex + 5];
              coords[pIndex + 10] = coordsMap[ps[offset]];
              coords[pIndex + 11] = coordsMap[ps[offset] + 1];
              colors[cIndex + 9] = colors[cIndex + 3];
              colors[cIndex + 10] = colors[cIndex + 4];
              colors[cIndex + 11] = colors[cIndex + 5];
              colors[cIndex + 12] = colors[cIndex + 6];
              colors[cIndex + 13] = colors[cIndex + 7];
              colors[cIndex + 14] = colors[cIndex + 8];
              colors[cIndex + 15] = colorsMap[cs[offset]];
              colors[cIndex + 16] = colorsMap[cs[offset] + 1];
              colors[cIndex + 17] = colorsMap[cs[offset] + 2];
              pIndex += 12;
              cIndex += 18;
            }
          }

          break;

        case "triangles":
          for (var j = 0, jj = ps.length; j < jj; j++) {
            coords[pIndex] = coordsMap[ps[j]];
            coords[pIndex + 1] = coordsMap[ps[j] + 1];
            colors[cIndex] = colorsMap[cs[j]];
            colors[cIndex + 1] = colorsMap[cs[j] + 1];
            colors[cIndex + 2] = colorsMap[cs[j] + 2];
            pIndex += 2;
            cIndex += 3;
          }

          break;
      }
    }

    if (backgroundColor) {
      gl.clearColor(backgroundColor[0] / 255, backgroundColor[1] / 255, backgroundColor[2] / 255, 1.0);
    } else {
      gl.clearColor(0, 0, 0, 0);
    }

    gl.clear(gl.COLOR_BUFFER_BIT);
    var coordsBuffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, coordsBuffer);
    gl.bufferData(gl.ARRAY_BUFFER, coords, gl.STATIC_DRAW);
    gl.enableVertexAttribArray(cache.positionLocation);
    gl.vertexAttribPointer(cache.positionLocation, 2, gl.FLOAT, false, 0, 0);
    var colorsBuffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, colorsBuffer);
    gl.bufferData(gl.ARRAY_BUFFER, colors, gl.STATIC_DRAW);
    gl.enableVertexAttribArray(cache.colorLocation);
    gl.vertexAttribPointer(cache.colorLocation, 3, gl.UNSIGNED_BYTE, false, 0, 0);
    gl.uniform2f(cache.scaleLocation, context.scaleX, context.scaleY);
    gl.uniform2f(cache.offsetLocation, context.offsetX, context.offsetY);
    gl.drawArrays(gl.TRIANGLES, 0, count);
    gl.flush();
    gl.deleteBuffer(coordsBuffer);
    gl.deleteBuffer(colorsBuffer);
    return canvas;
  }

  return {
    tryInitGL: function tryInitGL() {
      try {
        generateGL();
        return !!currentGL;
      } catch (ex) {}

      return false;
    },
    composeSMask: composeSMask,
    drawFigures: drawFigures,
    cleanup: function cleanup() {
      if (smaskCache && smaskCache.canvas) {
        smaskCache.canvas.width = 0;
        smaskCache.canvas.height = 0;
      }

      if (figuresCache && figuresCache.canvas) {
        figuresCache.canvas.width = 0;
        figuresCache.canvas.height = 0;
      }

      smaskCache = null;
      figuresCache = null;
    }
  };
}();

/***/ }),
/* 216 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AnnotationLayer = void 0;

var _display_utils = __w_pdfjs_require__(1);

var _util = __w_pdfjs_require__(5);

var _annotation_storage = __w_pdfjs_require__(205);

function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }

function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var AnnotationElementFactory = /*#__PURE__*/function () {
  function AnnotationElementFactory() {
    _classCallCheck(this, AnnotationElementFactory);
  }

  _createClass(AnnotationElementFactory, null, [{
    key: "create",
    value: function create(parameters) {
      var subtype = parameters.data.annotationType;

      switch (subtype) {
        case _util.AnnotationType.LINK:
          return new LinkAnnotationElement(parameters);

        case _util.AnnotationType.TEXT:
          return new TextAnnotationElement(parameters);

        case _util.AnnotationType.WIDGET:
          var fieldType = parameters.data.fieldType;

          switch (fieldType) {
            case "Tx":
              return new TextWidgetAnnotationElement(parameters);

            case "Btn":
              if (parameters.data.radioButton) {
                return new RadioButtonWidgetAnnotationElement(parameters);
              } else if (parameters.data.checkBox) {
                return new CheckboxWidgetAnnotationElement(parameters);
              }

              return new PushButtonWidgetAnnotationElement(parameters);

            case "Ch":
              return new ChoiceWidgetAnnotationElement(parameters);
          }

          return new WidgetAnnotationElement(parameters);

        case _util.AnnotationType.POPUP:
          return new PopupAnnotationElement(parameters);

        case _util.AnnotationType.FREETEXT:
          return new FreeTextAnnotationElement(parameters);

        case _util.AnnotationType.LINE:
          return new LineAnnotationElement(parameters);

        case _util.AnnotationType.SQUARE:
          return new SquareAnnotationElement(parameters);

        case _util.AnnotationType.CIRCLE:
          return new CircleAnnotationElement(parameters);

        case _util.AnnotationType.POLYLINE:
          return new PolylineAnnotationElement(parameters);

        case _util.AnnotationType.CARET:
          return new CaretAnnotationElement(parameters);

        case _util.AnnotationType.INK:
          return new InkAnnotationElement(parameters);

        case _util.AnnotationType.POLYGON:
          return new PolygonAnnotationElement(parameters);

        case _util.AnnotationType.HIGHLIGHT:
          return new HighlightAnnotationElement(parameters);

        case _util.AnnotationType.UNDERLINE:
          return new UnderlineAnnotationElement(parameters);

        case _util.AnnotationType.SQUIGGLY:
          return new SquigglyAnnotationElement(parameters);

        case _util.AnnotationType.STRIKEOUT:
          return new StrikeOutAnnotationElement(parameters);

        case _util.AnnotationType.STAMP:
          return new StampAnnotationElement(parameters);

        case _util.AnnotationType.FILEATTACHMENT:
          return new FileAttachmentAnnotationElement(parameters);

        default:
          return new AnnotationElement(parameters);
      }
    }
  }]);

  return AnnotationElementFactory;
}();

var AnnotationElement = /*#__PURE__*/function () {
  function AnnotationElement(parameters) {
    var isRenderable = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
    var ignoreBorder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

    _classCallCheck(this, AnnotationElement);

    this.isRenderable = isRenderable;
    this.data = parameters.data;
    this.layer = parameters.layer;
    this.page = parameters.page;
    this.viewport = parameters.viewport;
    this.linkService = parameters.linkService;
    this.downloadManager = parameters.downloadManager;
    this.imageResourcesPath = parameters.imageResourcesPath;
    this.renderInteractiveForms = parameters.renderInteractiveForms;
    this.svgFactory = parameters.svgFactory;
    this.annotationStorage = parameters.annotationStorage;

    if (isRenderable) {
      this.container = this._createContainer(ignoreBorder);
    }
  }

  _createClass(AnnotationElement, [{
    key: "_createContainer",
    value: function _createContainer() {
      var ignoreBorder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
      var data = this.data,
          page = this.page,
          viewport = this.viewport;
      var container = document.createElement("section");
      var width = data.rect[2] - data.rect[0];
      var height = data.rect[3] - data.rect[1];
      container.setAttribute("data-annotation-id", data.id);

      var rect = _util.Util.normalizeRect([data.rect[0], page.view[3] - data.rect[1] + page.view[1], data.rect[2], page.view[3] - data.rect[3] + page.view[1]]);

      container.style.transform = "matrix(".concat(viewport.transform.join(","), ")");
      container.style.transformOrigin = "-".concat(rect[0], "px -").concat(rect[1], "px");

      if (!ignoreBorder && data.borderStyle.width > 0) {
        container.style.borderWidth = "".concat(data.borderStyle.width, "px");

        if (data.borderStyle.style !== _util.AnnotationBorderStyleType.UNDERLINE) {
          width = width - 2 * data.borderStyle.width;
          height = height - 2 * data.borderStyle.width;
        }

        var horizontalRadius = data.borderStyle.horizontalCornerRadius;
        var verticalRadius = data.borderStyle.verticalCornerRadius;

        if (horizontalRadius > 0 || verticalRadius > 0) {
          var radius = "".concat(horizontalRadius, "px / ").concat(verticalRadius, "px");
          container.style.borderRadius = radius;
        }

        switch (data.borderStyle.style) {
          case _util.AnnotationBorderStyleType.SOLID:
            container.style.borderStyle = "solid";
            break;

          case _util.AnnotationBorderStyleType.DASHED:
            container.style.borderStyle = "dashed";
            break;

          case _util.AnnotationBorderStyleType.BEVELED:
            (0, _util.warn)("Unimplemented border style: beveled");
            break;

          case _util.AnnotationBorderStyleType.INSET:
            (0, _util.warn)("Unimplemented border style: inset");
            break;

          case _util.AnnotationBorderStyleType.UNDERLINE:
            container.style.borderBottomStyle = "solid";
            break;

          default:
            break;
        }

        if (data.color) {
          container.style.borderColor = _util.Util.makeCssRgb(data.color[0] | 0, data.color[1] | 0, data.color[2] | 0);
        } else {
          container.style.borderWidth = 0;
        }
      }

      container.style.left = "".concat(rect[0], "px");
      container.style.top = "".concat(rect[1], "px");
      container.style.width = "".concat(width, "px");
      container.style.height = "".concat(height, "px");
      return container;
    }
  }, {
    key: "_createPopup",
    value: function _createPopup(container, trigger, data) {
      if (!trigger) {
        trigger = document.createElement("div");
        trigger.style.height = container.style.height;
        trigger.style.width = container.style.width;
        container.appendChild(trigger);
      }

      var popupElement = new PopupElement({
        container: container,
        trigger: trigger,
        color: data.color,
        title: data.title,
        modificationDate: data.modificationDate,
        contents: data.contents,
        hideWrapper: true
      });
      var popup = popupElement.render();
      popup.style.left = container.style.width;
      container.appendChild(popup);
    }
  }, {
    key: "render",
    value: function render() {
      (0, _util.unreachable)("Abstract method `AnnotationElement.render` called");
    }
  }]);

  return AnnotationElement;
}();

var LinkAnnotationElement = /*#__PURE__*/function (_AnnotationElement) {
  _inherits(LinkAnnotationElement, _AnnotationElement);

  var _super = _createSuper(LinkAnnotationElement);

  function LinkAnnotationElement(parameters) {
    _classCallCheck(this, LinkAnnotationElement);

    var isRenderable = !!(parameters.data.url || parameters.data.dest || parameters.data.action);
    return _super.call(this, parameters, isRenderable);
  }

  _createClass(LinkAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "linkAnnotation";
      var data = this.data,
          linkService = this.linkService;
      var link = document.createElement("a");

      if (data.url) {
        (0, _display_utils.addLinkAttributes)(link, {
          url: data.url,
          target: data.newWindow ? _display_utils.LinkTarget.BLANK : linkService.externalLinkTarget,
          rel: linkService.externalLinkRel,
          enabled: linkService.externalLinkEnabled
        });
      } else if (data.action) {
        this._bindNamedAction(link, data.action);
      } else {
        this._bindLink(link, data.dest);
      }

      this.container.appendChild(link);
      return this.container;
    }
  }, {
    key: "_bindLink",
    value: function _bindLink(link, destination) {
      var _this = this;

      link.href = this.linkService.getDestinationHash(destination);

      link.onclick = function () {
        if (destination) {
          _this.linkService.navigateTo(destination);
        }

        return false;
      };

      if (destination) {
        link.className = "internalLink";
      }
    }
  }, {
    key: "_bindNamedAction",
    value: function _bindNamedAction(link, action) {
      var _this2 = this;

      link.href = this.linkService.getAnchorUrl("");

      link.onclick = function () {
        _this2.linkService.executeNamedAction(action);

        return false;
      };

      link.className = "internalLink";
    }
  }]);

  return LinkAnnotationElement;
}(AnnotationElement);

var TextAnnotationElement = /*#__PURE__*/function (_AnnotationElement2) {
  _inherits(TextAnnotationElement, _AnnotationElement2);

  var _super2 = _createSuper(TextAnnotationElement);

  function TextAnnotationElement(parameters) {
    _classCallCheck(this, TextAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super2.call(this, parameters, isRenderable);
  }

  _createClass(TextAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "textAnnotation";
      var image = document.createElement("img");
      image.style.height = this.container.style.height;
      image.style.width = this.container.style.width;
      image.src = this.imageResourcesPath + "annotation-" + this.data.name.toLowerCase() + ".svg";
      image.alt = "[{{type}} Annotation]";
      image.dataset.l10nId = "text_annotation_type";
      image.dataset.l10nArgs = JSON.stringify({
        type: this.data.name
      });

      if (!this.data.hasPopup) {
        this._createPopup(this.container, image, this.data);
      }

      this.container.appendChild(image);
      return this.container;
    }
  }]);

  return TextAnnotationElement;
}(AnnotationElement);

var WidgetAnnotationElement = /*#__PURE__*/function (_AnnotationElement3) {
  _inherits(WidgetAnnotationElement, _AnnotationElement3);

  var _super3 = _createSuper(WidgetAnnotationElement);

  function WidgetAnnotationElement() {
    _classCallCheck(this, WidgetAnnotationElement);

    return _super3.apply(this, arguments);
  }

  _createClass(WidgetAnnotationElement, [{
    key: "render",
    value: function render() {
      return this.container;
    }
  }]);

  return WidgetAnnotationElement;
}(AnnotationElement);

var TextWidgetAnnotationElement = /*#__PURE__*/function (_WidgetAnnotationElem) {
  _inherits(TextWidgetAnnotationElement, _WidgetAnnotationElem);

  var _super4 = _createSuper(TextWidgetAnnotationElement);

  function TextWidgetAnnotationElement(parameters) {
    _classCallCheck(this, TextWidgetAnnotationElement);

    var isRenderable = parameters.renderInteractiveForms || !parameters.data.hasAppearance && !!parameters.data.fieldValue;
    return _super4.call(this, parameters, isRenderable);
  }

  _createClass(TextWidgetAnnotationElement, [{
    key: "render",
    value: function render() {
      var TEXT_ALIGNMENT = ["left", "center", "right"];
      var storage = this.annotationStorage;
      var id = this.data.id;
      this.container.className = "textWidgetAnnotation";
      var element = null;

      if (this.renderInteractiveForms) {
        var textContent = storage.getOrCreateValue(id, this.data.fieldValue);

        if (this.data.multiLine) {
          element = document.createElement("textarea");
          element.textContent = textContent;
        } else {
          element = document.createElement("input");
          element.type = "text";
          element.setAttribute("value", textContent);
        }

        element.addEventListener("input", function (event) {
          storage.setValue(id, event.target.value);
        });
        element.disabled = this.data.readOnly;
        element.name = this.data.fieldName;

        if (this.data.maxLen !== null) {
          element.maxLength = this.data.maxLen;
        }

        if (this.data.comb) {
          var fieldWidth = this.data.rect[2] - this.data.rect[0];
          var combWidth = fieldWidth / this.data.maxLen;
          element.classList.add("comb");
          element.style.letterSpacing = "calc(".concat(combWidth, "px - 1ch)");
        }
      } else {
        element = document.createElement("div");
        element.textContent = this.data.fieldValue;
        element.style.verticalAlign = "middle";
        element.style.display = "table-cell";
        var font = null;

        if (this.data.fontRefName && this.page.commonObjs.has(this.data.fontRefName)) {
          font = this.page.commonObjs.get(this.data.fontRefName);
        }

        this._setTextStyle(element, font);
      }

      if (this.data.textAlignment !== null) {
        element.style.textAlign = TEXT_ALIGNMENT[this.data.textAlignment];
      }

      this.container.appendChild(element);
      return this.container;
    }
  }, {
    key: "_setTextStyle",
    value: function _setTextStyle(element, font) {
      var style = element.style;
      style.fontSize = "".concat(this.data.fontSize, "px");
      style.direction = this.data.fontDirection < 0 ? "rtl" : "ltr";

      if (!font) {
        return;
      }

      var bold = "normal";

      if (font.black) {
        bold = "900";
      } else if (font.bold) {
        bold = "bold";
      }

      style.fontWeight = bold;
      style.fontStyle = font.italic ? "italic" : "normal";
      var fontFamily = font.loadedName ? "\"".concat(font.loadedName, "\", ") : "";
      var fallbackName = font.fallbackName || "Helvetica, sans-serif";
      style.fontFamily = fontFamily + fallbackName;
    }
  }]);

  return TextWidgetAnnotationElement;
}(WidgetAnnotationElement);

var CheckboxWidgetAnnotationElement = /*#__PURE__*/function (_WidgetAnnotationElem2) {
  _inherits(CheckboxWidgetAnnotationElement, _WidgetAnnotationElem2);

  var _super5 = _createSuper(CheckboxWidgetAnnotationElement);

  function CheckboxWidgetAnnotationElement(parameters) {
    _classCallCheck(this, CheckboxWidgetAnnotationElement);

    return _super5.call(this, parameters, parameters.renderInteractiveForms);
  }

  _createClass(CheckboxWidgetAnnotationElement, [{
    key: "render",
    value: function render() {
      var storage = this.annotationStorage;
      var data = this.data;
      var id = data.id;
      var value = storage.getOrCreateValue(id, data.fieldValue && data.fieldValue !== "Off");
      this.container.className = "buttonWidgetAnnotation checkBox";
      var element = document.createElement("input");
      element.disabled = data.readOnly;
      element.type = "checkbox";
      element.name = this.data.fieldName;

      if (value) {
        element.setAttribute("checked", true);
      }

      element.addEventListener("change", function (event) {
        storage.setValue(id, event.target.checked);
      });
      this.container.appendChild(element);
      return this.container;
    }
  }]);

  return CheckboxWidgetAnnotationElement;
}(WidgetAnnotationElement);

var RadioButtonWidgetAnnotationElement = /*#__PURE__*/function (_WidgetAnnotationElem3) {
  _inherits(RadioButtonWidgetAnnotationElement, _WidgetAnnotationElem3);

  var _super6 = _createSuper(RadioButtonWidgetAnnotationElement);

  function RadioButtonWidgetAnnotationElement(parameters) {
    _classCallCheck(this, RadioButtonWidgetAnnotationElement);

    return _super6.call(this, parameters, parameters.renderInteractiveForms);
  }

  _createClass(RadioButtonWidgetAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "buttonWidgetAnnotation radioButton";
      var storage = this.annotationStorage;
      var data = this.data;
      var id = data.id;
      var value = storage.getOrCreateValue(id, data.fieldValue === data.buttonValue);
      var element = document.createElement("input");
      element.disabled = data.readOnly;
      element.type = "radio";
      element.name = data.fieldName;

      if (value) {
        element.setAttribute("checked", true);
      }

      element.addEventListener("change", function (event) {
        var name = event.target.name;

        var _iterator = _createForOfIteratorHelper(document.getElementsByName(name)),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var radio = _step.value;

            if (radio !== event.target) {
              storage.setValue(radio.parentNode.getAttribute("data-annotation-id"), false);
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        storage.setValue(id, event.target.checked);
      });
      this.container.appendChild(element);
      return this.container;
    }
  }]);

  return RadioButtonWidgetAnnotationElement;
}(WidgetAnnotationElement);

var PushButtonWidgetAnnotationElement = /*#__PURE__*/function (_LinkAnnotationElemen) {
  _inherits(PushButtonWidgetAnnotationElement, _LinkAnnotationElemen);

  var _super7 = _createSuper(PushButtonWidgetAnnotationElement);

  function PushButtonWidgetAnnotationElement() {
    _classCallCheck(this, PushButtonWidgetAnnotationElement);

    return _super7.apply(this, arguments);
  }

  _createClass(PushButtonWidgetAnnotationElement, [{
    key: "render",
    value: function render() {
      var container = _get(_getPrototypeOf(PushButtonWidgetAnnotationElement.prototype), "render", this).call(this);

      container.className = "buttonWidgetAnnotation pushButton";
      return container;
    }
  }]);

  return PushButtonWidgetAnnotationElement;
}(LinkAnnotationElement);

var ChoiceWidgetAnnotationElement = /*#__PURE__*/function (_WidgetAnnotationElem4) {
  _inherits(ChoiceWidgetAnnotationElement, _WidgetAnnotationElem4);

  var _super8 = _createSuper(ChoiceWidgetAnnotationElement);

  function ChoiceWidgetAnnotationElement(parameters) {
    _classCallCheck(this, ChoiceWidgetAnnotationElement);

    return _super8.call(this, parameters, parameters.renderInteractiveForms);
  }

  _createClass(ChoiceWidgetAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "choiceWidgetAnnotation";
      var storage = this.annotationStorage;
      var id = this.data.id;
      storage.getOrCreateValue(id, this.data.fieldValue.length > 0 ? this.data.fieldValue[0] : null);
      var selectElement = document.createElement("select");
      selectElement.disabled = this.data.readOnly;
      selectElement.name = this.data.fieldName;

      if (!this.data.combo) {
        selectElement.size = this.data.options.length;

        if (this.data.multiSelect) {
          selectElement.multiple = true;
        }
      }

      var _iterator2 = _createForOfIteratorHelper(this.data.options),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var option = _step2.value;
          var optionElement = document.createElement("option");
          optionElement.textContent = option.displayValue;
          optionElement.value = option.exportValue;

          if (this.data.fieldValue.includes(option.exportValue)) {
            optionElement.setAttribute("selected", true);
          }

          selectElement.appendChild(optionElement);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      selectElement.addEventListener("input", function (event) {
        var options = event.target.options;
        var value = options[options.selectedIndex].value;
        storage.setValue(id, value);
      });
      this.container.appendChild(selectElement);
      return this.container;
    }
  }]);

  return ChoiceWidgetAnnotationElement;
}(WidgetAnnotationElement);

var PopupAnnotationElement = /*#__PURE__*/function (_AnnotationElement4) {
  _inherits(PopupAnnotationElement, _AnnotationElement4);

  var _super9 = _createSuper(PopupAnnotationElement);

  function PopupAnnotationElement(parameters) {
    _classCallCheck(this, PopupAnnotationElement);

    var isRenderable = !!(parameters.data.title || parameters.data.contents);
    return _super9.call(this, parameters, isRenderable);
  }

  _createClass(PopupAnnotationElement, [{
    key: "render",
    value: function render() {
      var IGNORE_TYPES = ["Line", "Square", "Circle", "PolyLine", "Polygon", "Ink"];
      this.container.className = "popupAnnotation";

      if (IGNORE_TYPES.includes(this.data.parentType)) {
        return this.container;
      }

      var selector = "[data-annotation-id=\"".concat(this.data.parentId, "\"]");
      var parentElement = this.layer.querySelector(selector);

      if (!parentElement) {
        return this.container;
      }

      var popup = new PopupElement({
        container: this.container,
        trigger: parentElement,
        color: this.data.color,
        title: this.data.title,
        modificationDate: this.data.modificationDate,
        contents: this.data.contents
      });
      var parentLeft = parseFloat(parentElement.style.left);
      var parentWidth = parseFloat(parentElement.style.width);
      this.container.style.transformOrigin = "-".concat(parentLeft + parentWidth, "px -").concat(parentElement.style.top);
      this.container.style.left = "".concat(parentLeft + parentWidth, "px");
      this.container.appendChild(popup.render());
      return this.container;
    }
  }]);

  return PopupAnnotationElement;
}(AnnotationElement);

var PopupElement = /*#__PURE__*/function () {
  function PopupElement(parameters) {
    _classCallCheck(this, PopupElement);

    this.container = parameters.container;
    this.trigger = parameters.trigger;
    this.color = parameters.color;
    this.title = parameters.title;
    this.modificationDate = parameters.modificationDate;
    this.contents = parameters.contents;
    this.hideWrapper = parameters.hideWrapper || false;
    this.pinned = false;
  }

  _createClass(PopupElement, [{
    key: "render",
    value: function render() {
      var BACKGROUND_ENLIGHT = 0.7;
      var wrapper = document.createElement("div");
      wrapper.className = "popupWrapper";
      this.hideElement = this.hideWrapper ? wrapper : this.container;
      this.hideElement.setAttribute("hidden", true);
      var popup = document.createElement("div");
      popup.className = "popup";
      var color = this.color;

      if (color) {
        var r = BACKGROUND_ENLIGHT * (255 - color[0]) + color[0];
        var g = BACKGROUND_ENLIGHT * (255 - color[1]) + color[1];
        var b = BACKGROUND_ENLIGHT * (255 - color[2]) + color[2];
        popup.style.backgroundColor = _util.Util.makeCssRgb(r | 0, g | 0, b | 0);
      }

      var title = document.createElement("h1");
      title.textContent = this.title;
      popup.appendChild(title);

      var dateObject = _display_utils.PDFDateString.toDateObject(this.modificationDate);

      if (dateObject) {
        var modificationDate = document.createElement("span");
        modificationDate.textContent = "{{date}}, {{time}}";
        modificationDate.dataset.l10nId = "annotation_date_string";
        modificationDate.dataset.l10nArgs = JSON.stringify({
          date: dateObject.toLocaleDateString(),
          time: dateObject.toLocaleTimeString()
        });
        popup.appendChild(modificationDate);
      }

      var contents = this._formatContents(this.contents);

      popup.appendChild(contents);
      this.trigger.addEventListener("click", this._toggle.bind(this));
      this.trigger.addEventListener("mouseover", this._show.bind(this, false));
      this.trigger.addEventListener("mouseout", this._hide.bind(this, false));
      popup.addEventListener("click", this._hide.bind(this, true));
      wrapper.appendChild(popup);
      return wrapper;
    }
  }, {
    key: "_formatContents",
    value: function _formatContents(contents) {
      var p = document.createElement("p");
      var lines = contents.split(/(?:\r\n?|\n)/);

      for (var i = 0, ii = lines.length; i < ii; ++i) {
        var line = lines[i];
        p.appendChild(document.createTextNode(line));

        if (i < ii - 1) {
          p.appendChild(document.createElement("br"));
        }
      }

      return p;
    }
  }, {
    key: "_toggle",
    value: function _toggle() {
      if (this.pinned) {
        this._hide(true);
      } else {
        this._show(true);
      }
    }
  }, {
    key: "_show",
    value: function _show() {
      var pin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

      if (pin) {
        this.pinned = true;
      }

      if (this.hideElement.hasAttribute("hidden")) {
        this.hideElement.removeAttribute("hidden");
        this.container.style.zIndex += 1;
      }
    }
  }, {
    key: "_hide",
    value: function _hide() {
      var unpin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

      if (unpin) {
        this.pinned = false;
      }

      if (!this.hideElement.hasAttribute("hidden") && !this.pinned) {
        this.hideElement.setAttribute("hidden", true);
        this.container.style.zIndex -= 1;
      }
    }
  }]);

  return PopupElement;
}();

var FreeTextAnnotationElement = /*#__PURE__*/function (_AnnotationElement5) {
  _inherits(FreeTextAnnotationElement, _AnnotationElement5);

  var _super10 = _createSuper(FreeTextAnnotationElement);

  function FreeTextAnnotationElement(parameters) {
    _classCallCheck(this, FreeTextAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super10.call(this, parameters, isRenderable, true);
  }

  _createClass(FreeTextAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "freeTextAnnotation";

      if (!this.data.hasPopup) {
        this._createPopup(this.container, null, this.data);
      }

      return this.container;
    }
  }]);

  return FreeTextAnnotationElement;
}(AnnotationElement);

var LineAnnotationElement = /*#__PURE__*/function (_AnnotationElement6) {
  _inherits(LineAnnotationElement, _AnnotationElement6);

  var _super11 = _createSuper(LineAnnotationElement);

  function LineAnnotationElement(parameters) {
    _classCallCheck(this, LineAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super11.call(this, parameters, isRenderable, true);
  }

  _createClass(LineAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "lineAnnotation";
      var data = this.data;
      var width = data.rect[2] - data.rect[0];
      var height = data.rect[3] - data.rect[1];
      var svg = this.svgFactory.create(width, height);
      var line = this.svgFactory.createElement("svg:line");
      line.setAttribute("x1", data.rect[2] - data.lineCoordinates[0]);
      line.setAttribute("y1", data.rect[3] - data.lineCoordinates[1]);
      line.setAttribute("x2", data.rect[2] - data.lineCoordinates[2]);
      line.setAttribute("y2", data.rect[3] - data.lineCoordinates[3]);
      line.setAttribute("stroke-width", data.borderStyle.width || 1);
      line.setAttribute("stroke", "transparent");
      svg.appendChild(line);
      this.container.append(svg);

      this._createPopup(this.container, line, data);

      return this.container;
    }
  }]);

  return LineAnnotationElement;
}(AnnotationElement);

var SquareAnnotationElement = /*#__PURE__*/function (_AnnotationElement7) {
  _inherits(SquareAnnotationElement, _AnnotationElement7);

  var _super12 = _createSuper(SquareAnnotationElement);

  function SquareAnnotationElement(parameters) {
    _classCallCheck(this, SquareAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super12.call(this, parameters, isRenderable, true);
  }

  _createClass(SquareAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "squareAnnotation";
      var data = this.data;
      var width = data.rect[2] - data.rect[0];
      var height = data.rect[3] - data.rect[1];
      var svg = this.svgFactory.create(width, height);
      var borderWidth = data.borderStyle.width;
      var square = this.svgFactory.createElement("svg:rect");
      square.setAttribute("x", borderWidth / 2);
      square.setAttribute("y", borderWidth / 2);
      square.setAttribute("width", width - borderWidth);
      square.setAttribute("height", height - borderWidth);
      square.setAttribute("stroke-width", borderWidth || 1);
      square.setAttribute("stroke", "transparent");
      square.setAttribute("fill", "none");
      svg.appendChild(square);
      this.container.append(svg);

      this._createPopup(this.container, square, data);

      return this.container;
    }
  }]);

  return SquareAnnotationElement;
}(AnnotationElement);

var CircleAnnotationElement = /*#__PURE__*/function (_AnnotationElement8) {
  _inherits(CircleAnnotationElement, _AnnotationElement8);

  var _super13 = _createSuper(CircleAnnotationElement);

  function CircleAnnotationElement(parameters) {
    _classCallCheck(this, CircleAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super13.call(this, parameters, isRenderable, true);
  }

  _createClass(CircleAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "circleAnnotation";
      var data = this.data;
      var width = data.rect[2] - data.rect[0];
      var height = data.rect[3] - data.rect[1];
      var svg = this.svgFactory.create(width, height);
      var borderWidth = data.borderStyle.width;
      var circle = this.svgFactory.createElement("svg:ellipse");
      circle.setAttribute("cx", width / 2);
      circle.setAttribute("cy", height / 2);
      circle.setAttribute("rx", width / 2 - borderWidth / 2);
      circle.setAttribute("ry", height / 2 - borderWidth / 2);
      circle.setAttribute("stroke-width", borderWidth || 1);
      circle.setAttribute("stroke", "transparent");
      circle.setAttribute("fill", "none");
      svg.appendChild(circle);
      this.container.append(svg);

      this._createPopup(this.container, circle, data);

      return this.container;
    }
  }]);

  return CircleAnnotationElement;
}(AnnotationElement);

var PolylineAnnotationElement = /*#__PURE__*/function (_AnnotationElement9) {
  _inherits(PolylineAnnotationElement, _AnnotationElement9);

  var _super14 = _createSuper(PolylineAnnotationElement);

  function PolylineAnnotationElement(parameters) {
    var _this3;

    _classCallCheck(this, PolylineAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    _this3 = _super14.call(this, parameters, isRenderable, true);
    _this3.containerClassName = "polylineAnnotation";
    _this3.svgElementName = "svg:polyline";
    return _this3;
  }

  _createClass(PolylineAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = this.containerClassName;
      var data = this.data;
      var width = data.rect[2] - data.rect[0];
      var height = data.rect[3] - data.rect[1];
      var svg = this.svgFactory.create(width, height);
      var points = [];

      var _iterator3 = _createForOfIteratorHelper(data.vertices),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var coordinate = _step3.value;
          var x = coordinate.x - data.rect[0];
          var y = data.rect[3] - coordinate.y;
          points.push(x + "," + y);
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      points = points.join(" ");
      var polyline = this.svgFactory.createElement(this.svgElementName);
      polyline.setAttribute("points", points);
      polyline.setAttribute("stroke-width", data.borderStyle.width || 1);
      polyline.setAttribute("stroke", "transparent");
      polyline.setAttribute("fill", "none");
      svg.appendChild(polyline);
      this.container.append(svg);

      this._createPopup(this.container, polyline, data);

      return this.container;
    }
  }]);

  return PolylineAnnotationElement;
}(AnnotationElement);

var PolygonAnnotationElement = /*#__PURE__*/function (_PolylineAnnotationEl) {
  _inherits(PolygonAnnotationElement, _PolylineAnnotationEl);

  var _super15 = _createSuper(PolygonAnnotationElement);

  function PolygonAnnotationElement(parameters) {
    var _this4;

    _classCallCheck(this, PolygonAnnotationElement);

    _this4 = _super15.call(this, parameters);
    _this4.containerClassName = "polygonAnnotation";
    _this4.svgElementName = "svg:polygon";
    return _this4;
  }

  return PolygonAnnotationElement;
}(PolylineAnnotationElement);

var CaretAnnotationElement = /*#__PURE__*/function (_AnnotationElement10) {
  _inherits(CaretAnnotationElement, _AnnotationElement10);

  var _super16 = _createSuper(CaretAnnotationElement);

  function CaretAnnotationElement(parameters) {
    _classCallCheck(this, CaretAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super16.call(this, parameters, isRenderable, true);
  }

  _createClass(CaretAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "caretAnnotation";

      if (!this.data.hasPopup) {
        this._createPopup(this.container, null, this.data);
      }

      return this.container;
    }
  }]);

  return CaretAnnotationElement;
}(AnnotationElement);

var InkAnnotationElement = /*#__PURE__*/function (_AnnotationElement11) {
  _inherits(InkAnnotationElement, _AnnotationElement11);

  var _super17 = _createSuper(InkAnnotationElement);

  function InkAnnotationElement(parameters) {
    var _this5;

    _classCallCheck(this, InkAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    _this5 = _super17.call(this, parameters, isRenderable, true);
    _this5.containerClassName = "inkAnnotation";
    _this5.svgElementName = "svg:polyline";
    return _this5;
  }

  _createClass(InkAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = this.containerClassName;
      var data = this.data;
      var width = data.rect[2] - data.rect[0];
      var height = data.rect[3] - data.rect[1];
      var svg = this.svgFactory.create(width, height);

      var _iterator4 = _createForOfIteratorHelper(data.inkLists),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var inkList = _step4.value;
          var points = [];

          var _iterator5 = _createForOfIteratorHelper(inkList),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var coordinate = _step5.value;
              var x = coordinate.x - data.rect[0];
              var y = data.rect[3] - coordinate.y;
              points.push("".concat(x, ",").concat(y));
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          points = points.join(" ");
          var polyline = this.svgFactory.createElement(this.svgElementName);
          polyline.setAttribute("points", points);
          polyline.setAttribute("stroke-width", data.borderStyle.width || 1);
          polyline.setAttribute("stroke", "transparent");
          polyline.setAttribute("fill", "none");

          this._createPopup(this.container, polyline, data);

          svg.appendChild(polyline);
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.container.append(svg);
      return this.container;
    }
  }]);

  return InkAnnotationElement;
}(AnnotationElement);

var HighlightAnnotationElement = /*#__PURE__*/function (_AnnotationElement12) {
  _inherits(HighlightAnnotationElement, _AnnotationElement12);

  var _super18 = _createSuper(HighlightAnnotationElement);

  function HighlightAnnotationElement(parameters) {
    _classCallCheck(this, HighlightAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super18.call(this, parameters, isRenderable, true);
  }

  _createClass(HighlightAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "highlightAnnotation";

      if (!this.data.hasPopup) {
        this._createPopup(this.container, null, this.data);
      }

      return this.container;
    }
  }]);

  return HighlightAnnotationElement;
}(AnnotationElement);

var UnderlineAnnotationElement = /*#__PURE__*/function (_AnnotationElement13) {
  _inherits(UnderlineAnnotationElement, _AnnotationElement13);

  var _super19 = _createSuper(UnderlineAnnotationElement);

  function UnderlineAnnotationElement(parameters) {
    _classCallCheck(this, UnderlineAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super19.call(this, parameters, isRenderable, true);
  }

  _createClass(UnderlineAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "underlineAnnotation";

      if (!this.data.hasPopup) {
        this._createPopup(this.container, null, this.data);
      }

      return this.container;
    }
  }]);

  return UnderlineAnnotationElement;
}(AnnotationElement);

var SquigglyAnnotationElement = /*#__PURE__*/function (_AnnotationElement14) {
  _inherits(SquigglyAnnotationElement, _AnnotationElement14);

  var _super20 = _createSuper(SquigglyAnnotationElement);

  function SquigglyAnnotationElement(parameters) {
    _classCallCheck(this, SquigglyAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super20.call(this, parameters, isRenderable, true);
  }

  _createClass(SquigglyAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "squigglyAnnotation";

      if (!this.data.hasPopup) {
        this._createPopup(this.container, null, this.data);
      }

      return this.container;
    }
  }]);

  return SquigglyAnnotationElement;
}(AnnotationElement);

var StrikeOutAnnotationElement = /*#__PURE__*/function (_AnnotationElement15) {
  _inherits(StrikeOutAnnotationElement, _AnnotationElement15);

  var _super21 = _createSuper(StrikeOutAnnotationElement);

  function StrikeOutAnnotationElement(parameters) {
    _classCallCheck(this, StrikeOutAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super21.call(this, parameters, isRenderable, true);
  }

  _createClass(StrikeOutAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "strikeoutAnnotation";

      if (!this.data.hasPopup) {
        this._createPopup(this.container, null, this.data);
      }

      return this.container;
    }
  }]);

  return StrikeOutAnnotationElement;
}(AnnotationElement);

var StampAnnotationElement = /*#__PURE__*/function (_AnnotationElement16) {
  _inherits(StampAnnotationElement, _AnnotationElement16);

  var _super22 = _createSuper(StampAnnotationElement);

  function StampAnnotationElement(parameters) {
    _classCallCheck(this, StampAnnotationElement);

    var isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    return _super22.call(this, parameters, isRenderable, true);
  }

  _createClass(StampAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "stampAnnotation";

      if (!this.data.hasPopup) {
        this._createPopup(this.container, null, this.data);
      }

      return this.container;
    }
  }]);

  return StampAnnotationElement;
}(AnnotationElement);

var FileAttachmentAnnotationElement = /*#__PURE__*/function (_AnnotationElement17) {
  _inherits(FileAttachmentAnnotationElement, _AnnotationElement17);

  var _super23 = _createSuper(FileAttachmentAnnotationElement);

  function FileAttachmentAnnotationElement(parameters) {
    var _this6;

    _classCallCheck(this, FileAttachmentAnnotationElement);

    _this6 = _super23.call(this, parameters, true);
    var _this6$data$file = _this6.data.file,
        filename = _this6$data$file.filename,
        content = _this6$data$file.content;
    _this6.filename = (0, _display_utils.getFilenameFromUrl)(filename);
    _this6.content = content;

    if (_this6.linkService.eventBus) {
      _this6.linkService.eventBus.dispatch("fileattachmentannotation", {
        source: _assertThisInitialized(_this6),
        id: (0, _util.stringToPDFString)(filename),
        filename: filename,
        content: content
      });
    }

    return _this6;
  }

  _createClass(FileAttachmentAnnotationElement, [{
    key: "render",
    value: function render() {
      this.container.className = "fileAttachmentAnnotation";
      var trigger = document.createElement("div");
      trigger.style.height = this.container.style.height;
      trigger.style.width = this.container.style.width;
      trigger.addEventListener("dblclick", this._download.bind(this));

      if (!this.data.hasPopup && (this.data.title || this.data.contents)) {
        this._createPopup(this.container, trigger, this.data);
      }

      this.container.appendChild(trigger);
      return this.container;
    }
  }, {
    key: "_download",
    value: function _download() {
      if (!this.downloadManager) {
        (0, _util.warn)("Download cannot be started due to unavailable download manager");
        return;
      }

      this.downloadManager.downloadData(this.content, this.filename, "");
    }
  }]);

  return FileAttachmentAnnotationElement;
}(AnnotationElement);

var AnnotationLayer = /*#__PURE__*/function () {
  function AnnotationLayer() {
    _classCallCheck(this, AnnotationLayer);
  }

  _createClass(AnnotationLayer, null, [{
    key: "render",
    value: function render(parameters) {
      var sortedAnnotations = [],
          popupAnnotations = [];

      var _iterator6 = _createForOfIteratorHelper(parameters.annotations),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var _data = _step6.value;

          if (!_data) {
            continue;
          }

          if (_data.annotationType === _util.AnnotationType.POPUP) {
            popupAnnotations.push(_data);
            continue;
          }

          sortedAnnotations.push(_data);
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }

      if (popupAnnotations.length) {
        sortedAnnotations.push.apply(sortedAnnotations, popupAnnotations);
      }

      for (var _i = 0, _sortedAnnotations = sortedAnnotations; _i < _sortedAnnotations.length; _i++) {
        var data = _sortedAnnotations[_i];
        var element = AnnotationElementFactory.create({
          data: data,
          layer: parameters.div,
          page: parameters.page,
          viewport: parameters.viewport,
          linkService: parameters.linkService,
          downloadManager: parameters.downloadManager,
          imageResourcesPath: parameters.imageResourcesPath || "",
          renderInteractiveForms: typeof parameters.renderInteractiveForms === "boolean" ? parameters.renderInteractiveForms : true,
          svgFactory: new _display_utils.DOMSVGFactory(),
          annotationStorage: parameters.annotationStorage || new _annotation_storage.AnnotationStorage()
        });

        if (element.isRenderable) {
          parameters.div.appendChild(element.render());
        }
      }
    }
  }, {
    key: "update",
    value: function update(parameters) {
      var _iterator7 = _createForOfIteratorHelper(parameters.annotations),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var data = _step7.value;
          var element = parameters.div.querySelector("[data-annotation-id=\"".concat(data.id, "\"]"));

          if (element) {
            element.style.transform = "matrix(".concat(parameters.viewport.transform.join(","), ")");
          }
        }
      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      parameters.div.removeAttribute("hidden");
    }
  }]);

  return AnnotationLayer;
}();

exports.AnnotationLayer = AnnotationLayer;

/***/ }),
/* 217 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.renderTextLayer = void 0;

var _util = __w_pdfjs_require__(5);

var renderTextLayer = function renderTextLayerClosure() {
  var MAX_TEXT_DIVS_TO_RENDER = 100000;
  var NonWhitespaceRegexp = /\S/;

  function isAllWhitespace(str) {
    return !NonWhitespaceRegexp.test(str);
  }

  function appendText(task, geom, styles) {
    var textDiv = document.createElement("span");
    var textDivProperties = {
      angle: 0,
      canvasWidth: 0,
      isWhitespace: false,
      originalTransform: null,
      paddingBottom: 0,
      paddingLeft: 0,
      paddingRight: 0,
      paddingTop: 0,
      scale: 1
    };

    task._textDivs.push(textDiv);

    if (isAllWhitespace(geom.str)) {
      textDivProperties.isWhitespace = true;

      task._textDivProperties.set(textDiv, textDivProperties);

      return;
    }

    var tx = _util.Util.transform(task._viewport.transform, geom.transform);

    var angle = Math.atan2(tx[1], tx[0]);
    var style = styles[geom.fontName];

    if (style.vertical) {
      angle += Math.PI / 2;
    }

    var fontHeight = Math.sqrt(tx[2] * tx[2] + tx[3] * tx[3]);
    var fontAscent = fontHeight;

    if (style.ascent) {
      fontAscent = style.ascent * fontAscent;
    } else if (style.descent) {
      fontAscent = (1 + style.descent) * fontAscent;
    }

    var left, top;

    if (angle === 0) {
      left = tx[4];
      top = tx[5] - fontAscent;
    } else {
      left = tx[4] + fontAscent * Math.sin(angle);
      top = tx[5] - fontAscent * Math.cos(angle);
    }

    textDiv.style.left = "".concat(left, "px");
    textDiv.style.top = "".concat(top, "px");
    textDiv.style.fontSize = "".concat(fontHeight, "px");
    textDiv.style.fontFamily = style.fontFamily;
    textDiv.textContent = geom.str;

    if (task._fontInspectorEnabled) {
      textDiv.dataset.fontName = geom.fontName;
    }

    if (angle !== 0) {
      textDivProperties.angle = angle * (180 / Math.PI);
    }

    var shouldScaleText = false;

    if (geom.str.length > 1) {
      shouldScaleText = true;
    } else if (geom.transform[0] !== geom.transform[3]) {
      var absScaleX = Math.abs(geom.transform[0]),
          absScaleY = Math.abs(geom.transform[3]);

      if (absScaleX !== absScaleY && Math.max(absScaleX, absScaleY) / Math.min(absScaleX, absScaleY) > 1.5) {
        shouldScaleText = true;
      }
    }

    if (shouldScaleText) {
      if (style.vertical) {
        textDivProperties.canvasWidth = geom.height * task._viewport.scale;
      } else {
        textDivProperties.canvasWidth = geom.width * task._viewport.scale;
      }
    }

    task._textDivProperties.set(textDiv, textDivProperties);

    if (task._textContentStream) {
      task._layoutText(textDiv);
    }

    if (task._enhanceTextSelection) {
      var angleCos = 1,
          angleSin = 0;

      if (angle !== 0) {
        angleCos = Math.cos(angle);
        angleSin = Math.sin(angle);
      }

      var divWidth = (style.vertical ? geom.height : geom.width) * task._viewport.scale;
      var divHeight = fontHeight;
      var m, b;

      if (angle !== 0) {
        m = [angleCos, angleSin, -angleSin, angleCos, left, top];
        b = _util.Util.getAxialAlignedBoundingBox([0, 0, divWidth, divHeight], m);
      } else {
        b = [left, top, left + divWidth, top + divHeight];
      }

      task._bounds.push({
        left: b[0],
        top: b[1],
        right: b[2],
        bottom: b[3],
        div: textDiv,
        size: [divWidth, divHeight],
        m: m
      });
    }
  }

  function render(task) {
    if (task._canceled) {
      return;
    }

    var textDivs = task._textDivs;
    var capability = task._capability;
    var textDivsLength = textDivs.length;

    if (textDivsLength > MAX_TEXT_DIVS_TO_RENDER) {
      task._renderingDone = true;
      capability.resolve();
      return;
    }

    if (!task._textContentStream) {
      for (var i = 0; i < textDivsLength; i++) {
        task._layoutText(textDivs[i]);
      }
    }

    task._renderingDone = true;
    capability.resolve();
  }

  function findPositiveMin(ts, offset, count) {
    var result = 0;

    for (var i = 0; i < count; i++) {
      var t = ts[offset++];

      if (t > 0) {
        result = result ? Math.min(t, result) : t;
      }
    }

    return result;
  }

  function expand(task) {
    var bounds = task._bounds;
    var viewport = task._viewport;
    var expanded = expandBounds(viewport.width, viewport.height, bounds);

    for (var i = 0; i < expanded.length; i++) {
      var div = bounds[i].div;

      var divProperties = task._textDivProperties.get(div);

      if (divProperties.angle === 0) {
        divProperties.paddingLeft = bounds[i].left - expanded[i].left;
        divProperties.paddingTop = bounds[i].top - expanded[i].top;
        divProperties.paddingRight = expanded[i].right - bounds[i].right;
        divProperties.paddingBottom = expanded[i].bottom - bounds[i].bottom;

        task._textDivProperties.set(div, divProperties);

        continue;
      }

      var e = expanded[i],
          b = bounds[i];
      var m = b.m,
          c = m[0],
          s = m[1];
      var points = [[0, 0], [0, b.size[1]], [b.size[0], 0], b.size];
      var ts = new Float64Array(64);
      points.forEach(function (p, j) {
        var t = _util.Util.applyTransform(p, m);

        ts[j + 0] = c && (e.left - t[0]) / c;
        ts[j + 4] = s && (e.top - t[1]) / s;
        ts[j + 8] = c && (e.right - t[0]) / c;
        ts[j + 12] = s && (e.bottom - t[1]) / s;
        ts[j + 16] = s && (e.left - t[0]) / -s;
        ts[j + 20] = c && (e.top - t[1]) / c;
        ts[j + 24] = s && (e.right - t[0]) / -s;
        ts[j + 28] = c && (e.bottom - t[1]) / c;
        ts[j + 32] = c && (e.left - t[0]) / -c;
        ts[j + 36] = s && (e.top - t[1]) / -s;
        ts[j + 40] = c && (e.right - t[0]) / -c;
        ts[j + 44] = s && (e.bottom - t[1]) / -s;
        ts[j + 48] = s && (e.left - t[0]) / s;
        ts[j + 52] = c && (e.top - t[1]) / -c;
        ts[j + 56] = s && (e.right - t[0]) / s;
        ts[j + 60] = c && (e.bottom - t[1]) / -c;
      });
      var boxScale = 1 + Math.min(Math.abs(c), Math.abs(s));
      divProperties.paddingLeft = findPositiveMin(ts, 32, 16) / boxScale;
      divProperties.paddingTop = findPositiveMin(ts, 48, 16) / boxScale;
      divProperties.paddingRight = findPositiveMin(ts, 0, 16) / boxScale;
      divProperties.paddingBottom = findPositiveMin(ts, 16, 16) / boxScale;

      task._textDivProperties.set(div, divProperties);
    }
  }

  function expandBounds(width, height, boxes) {
    var bounds = boxes.map(function (box, i) {
      return {
        x1: box.left,
        y1: box.top,
        x2: box.right,
        y2: box.bottom,
        index: i,
        x1New: undefined,
        x2New: undefined
      };
    });
    expandBoundsLTR(width, bounds);
    var expanded = new Array(boxes.length);
    bounds.forEach(function (b) {
      var i = b.index;
      expanded[i] = {
        left: b.x1New,
        top: 0,
        right: b.x2New,
        bottom: 0
      };
    });
    boxes.map(function (box, i) {
      var e = expanded[i],
          b = bounds[i];
      b.x1 = box.top;
      b.y1 = width - e.right;
      b.x2 = box.bottom;
      b.y2 = width - e.left;
      b.index = i;
      b.x1New = undefined;
      b.x2New = undefined;
    });
    expandBoundsLTR(height, bounds);
    bounds.forEach(function (b) {
      var i = b.index;
      expanded[i].top = b.x1New;
      expanded[i].bottom = b.x2New;
    });
    return expanded;
  }

  function expandBoundsLTR(width, bounds) {
    bounds.sort(function (a, b) {
      return a.x1 - b.x1 || a.index - b.index;
    });
    var fakeBoundary = {
      x1: -Infinity,
      y1: -Infinity,
      x2: 0,
      y2: Infinity,
      index: -1,
      x1New: 0,
      x2New: 0
    };
    var horizon = [{
      start: -Infinity,
      end: Infinity,
      boundary: fakeBoundary
    }];
    bounds.forEach(function (boundary) {
      var i = 0;

      while (i < horizon.length && horizon[i].end <= boundary.y1) {
        i++;
      }

      var j = horizon.length - 1;

      while (j >= 0 && horizon[j].start >= boundary.y2) {
        j--;
      }

      var horizonPart, affectedBoundary;
      var q,
          k,
          maxXNew = -Infinity;

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;
        var xNew;

        if (affectedBoundary.x2 > boundary.x1) {
          xNew = affectedBoundary.index > boundary.index ? affectedBoundary.x1New : boundary.x1;
        } else if (affectedBoundary.x2New === undefined) {
          xNew = (affectedBoundary.x2 + boundary.x1) / 2;
        } else {
          xNew = affectedBoundary.x2New;
        }

        if (xNew > maxXNew) {
          maxXNew = xNew;
        }
      }

      boundary.x1New = maxXNew;

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;

        if (affectedBoundary.x2New === undefined) {
          if (affectedBoundary.x2 > boundary.x1) {
            if (affectedBoundary.index > boundary.index) {
              affectedBoundary.x2New = affectedBoundary.x2;
            }
          } else {
            affectedBoundary.x2New = maxXNew;
          }
        } else if (affectedBoundary.x2New > maxXNew) {
          affectedBoundary.x2New = Math.max(maxXNew, affectedBoundary.x2);
        }
      }

      var changedHorizon = [],
          lastBoundary = null;

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;
        var useBoundary = affectedBoundary.x2 > boundary.x2 ? affectedBoundary : boundary;

        if (lastBoundary === useBoundary) {
          changedHorizon[changedHorizon.length - 1].end = horizonPart.end;
        } else {
          changedHorizon.push({
            start: horizonPart.start,
            end: horizonPart.end,
            boundary: useBoundary
          });
          lastBoundary = useBoundary;
        }
      }

      if (horizon[i].start < boundary.y1) {
        changedHorizon[0].start = boundary.y1;
        changedHorizon.unshift({
          start: horizon[i].start,
          end: boundary.y1,
          boundary: horizon[i].boundary
        });
      }

      if (boundary.y2 < horizon[j].end) {
        changedHorizon[changedHorizon.length - 1].end = boundary.y2;
        changedHorizon.push({
          start: boundary.y2,
          end: horizon[j].end,
          boundary: horizon[j].boundary
        });
      }

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;

        if (affectedBoundary.x2New !== undefined) {
          continue;
        }

        var used = false;

        for (k = i - 1; !used && k >= 0 && horizon[k].start >= affectedBoundary.y1; k--) {
          used = horizon[k].boundary === affectedBoundary;
        }

        for (k = j + 1; !used && k < horizon.length && horizon[k].end <= affectedBoundary.y2; k++) {
          used = horizon[k].boundary === affectedBoundary;
        }

        for (k = 0; !used && k < changedHorizon.length; k++) {
          used = changedHorizon[k].boundary === affectedBoundary;
        }

        if (!used) {
          affectedBoundary.x2New = maxXNew;
        }
      }

      Array.prototype.splice.apply(horizon, [i, j - i + 1].concat(changedHorizon));
    });
    horizon.forEach(function (horizonPart) {
      var affectedBoundary = horizonPart.boundary;

      if (affectedBoundary.x2New === undefined) {
        affectedBoundary.x2New = Math.max(width, affectedBoundary.x2);
      }
    });
  }

  function TextLayerRenderTask(_ref) {
    var _this = this;

    var textContent = _ref.textContent,
        textContentStream = _ref.textContentStream,
        container = _ref.container,
        viewport = _ref.viewport,
        textDivs = _ref.textDivs,
        textContentItemsStr = _ref.textContentItemsStr,
        enhanceTextSelection = _ref.enhanceTextSelection;
    this._textContent = textContent;
    this._textContentStream = textContentStream;
    this._container = container;
    this._document = container.ownerDocument;
    this._viewport = viewport;
    this._textDivs = textDivs || [];
    this._textContentItemsStr = textContentItemsStr || [];
    this._enhanceTextSelection = !!enhanceTextSelection;
    this._fontInspectorEnabled = !!(globalThis.FontInspector && globalThis.FontInspector.enabled);
    this._reader = null;
    this._layoutTextLastFontSize = null;
    this._layoutTextLastFontFamily = null;
    this._layoutTextCtx = null;
    this._textDivProperties = new WeakMap();
    this._renderingDone = false;
    this._canceled = false;
    this._capability = (0, _util.createPromiseCapability)();
    this._renderTimer = null;
    this._bounds = [];

    this._capability.promise["finally"](function () {
      if (_this._layoutTextCtx) {
        _this._layoutTextCtx.canvas.width = 0;
        _this._layoutTextCtx.canvas.height = 0;
        _this._layoutTextCtx = null;
      }
    })["catch"](function () {});
  }

  TextLayerRenderTask.prototype = {
    get promise() {
      return this._capability.promise;
    },

    cancel: function TextLayer_cancel() {
      this._canceled = true;

      if (this._reader) {
        this._reader.cancel(new _util.AbortException("TextLayer task cancelled."));

        this._reader = null;
      }

      if (this._renderTimer !== null) {
        clearTimeout(this._renderTimer);
        this._renderTimer = null;
      }

      this._capability.reject(new Error("TextLayer task cancelled."));
    },
    _processItems: function _processItems(items, styleCache) {
      for (var i = 0, len = items.length; i < len; i++) {
        this._textContentItemsStr.push(items[i].str);

        appendText(this, items[i], styleCache);
      }
    },
    _layoutText: function _layoutText(textDiv) {
      var textDivProperties = this._textDivProperties.get(textDiv);

      if (textDivProperties.isWhitespace) {
        return;
      }

      var transform = "";

      if (textDivProperties.canvasWidth !== 0) {
        var _textDiv$style = textDiv.style,
            fontSize = _textDiv$style.fontSize,
            fontFamily = _textDiv$style.fontFamily;

        if (fontSize !== this._layoutTextLastFontSize || fontFamily !== this._layoutTextLastFontFamily) {
          this._layoutTextCtx.font = "".concat(fontSize, " ").concat(fontFamily);
          this._layoutTextLastFontSize = fontSize;
          this._layoutTextLastFontFamily = fontFamily;
        }

        var _this$_layoutTextCtx$ = this._layoutTextCtx.measureText(textDiv.textContent),
            width = _this$_layoutTextCtx$.width;

        if (width > 0) {
          textDivProperties.scale = textDivProperties.canvasWidth / width;
          transform = "scaleX(".concat(textDivProperties.scale, ")");
        }
      }

      if (textDivProperties.angle !== 0) {
        transform = "rotate(".concat(textDivProperties.angle, "deg) ").concat(transform);
      }

      if (transform.length > 0) {
        if (this._enhanceTextSelection) {
          textDivProperties.originalTransform = transform;
        }

        textDiv.style.transform = transform;
      }

      this._textDivProperties.set(textDiv, textDivProperties);

      this._container.appendChild(textDiv);
    },
    _render: function TextLayer_render(timeout) {
      var _this2 = this;

      var capability = (0, _util.createPromiseCapability)();
      var styleCache = Object.create(null);

      var canvas = this._document.createElement("canvas");

      canvas.mozOpaque = true;
      this._layoutTextCtx = canvas.getContext("2d", {
        alpha: false
      });

      if (this._textContent) {
        var textItems = this._textContent.items;
        var textStyles = this._textContent.styles;

        this._processItems(textItems, textStyles);

        capability.resolve();
      } else if (this._textContentStream) {
        var pump = function pump() {
          _this2._reader.read().then(function (_ref2) {
            var value = _ref2.value,
                done = _ref2.done;

            if (done) {
              capability.resolve();
              return;
            }

            Object.assign(styleCache, value.styles);

            _this2._processItems(value.items, styleCache);

            pump();
          }, capability.reject);
        };

        this._reader = this._textContentStream.getReader();
        pump();
      } else {
        throw new Error('Neither "textContent" nor "textContentStream"' + " parameters specified.");
      }

      capability.promise.then(function () {
        styleCache = null;

        if (!timeout) {
          render(_this2);
        } else {
          _this2._renderTimer = setTimeout(function () {
            render(_this2);
            _this2._renderTimer = null;
          }, timeout);
        }
      }, this._capability.reject);
    },
    expandTextDivs: function TextLayer_expandTextDivs(expandDivs) {
      if (!this._enhanceTextSelection || !this._renderingDone) {
        return;
      }

      if (this._bounds !== null) {
        expand(this);
        this._bounds = null;
      }

      var transformBuf = [],
          paddingBuf = [];

      for (var i = 0, ii = this._textDivs.length; i < ii; i++) {
        var div = this._textDivs[i];

        var divProps = this._textDivProperties.get(div);

        if (divProps.isWhitespace) {
          continue;
        }

        if (expandDivs) {
          transformBuf.length = 0;
          paddingBuf.length = 0;

          if (divProps.originalTransform) {
            transformBuf.push(divProps.originalTransform);
          }

          if (divProps.paddingTop > 0) {
            paddingBuf.push("".concat(divProps.paddingTop, "px"));
            transformBuf.push("translateY(".concat(-divProps.paddingTop, "px)"));
          } else {
            paddingBuf.push(0);
          }

          if (divProps.paddingRight > 0) {
            paddingBuf.push("".concat(divProps.paddingRight / divProps.scale, "px"));
          } else {
            paddingBuf.push(0);
          }

          if (divProps.paddingBottom > 0) {
            paddingBuf.push("".concat(divProps.paddingBottom, "px"));
          } else {
            paddingBuf.push(0);
          }

          if (divProps.paddingLeft > 0) {
            paddingBuf.push("".concat(divProps.paddingLeft / divProps.scale, "px"));
            transformBuf.push("translateX(".concat(-divProps.paddingLeft / divProps.scale, "px)"));
          } else {
            paddingBuf.push(0);
          }

          div.style.padding = paddingBuf.join(" ");

          if (transformBuf.length) {
            div.style.transform = transformBuf.join(" ");
          }
        } else {
          div.style.padding = null;
          div.style.transform = divProps.originalTransform;
        }
      }
    }
  };

  function renderTextLayer(renderParameters) {
    var task = new TextLayerRenderTask({
      textContent: renderParameters.textContent,
      textContentStream: renderParameters.textContentStream,
      container: renderParameters.container,
      viewport: renderParameters.viewport,
      textDivs: renderParameters.textDivs,
      textContentItemsStr: renderParameters.textContentItemsStr,
      enhanceTextSelection: renderParameters.enhanceTextSelection
    });

    task._render(renderParameters.timeout);

    return task;
  }

  return renderTextLayer;
}();

exports.renderTextLayer = renderTextLayer;

/***/ }),
/* 218 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SVGGraphics = void 0;

var _util = __w_pdfjs_require__(5);

var _display_utils = __w_pdfjs_require__(1);

var _is_node = __w_pdfjs_require__(7);

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var SVGGraphics = function SVGGraphics() {
  throw new Error("Not implemented: SVGGraphics");
};

exports.SVGGraphics = SVGGraphics;
{
  var opListToTree = function opListToTree(opList) {
    var opTree = [];
    var tmp = [];

    var _iterator = _createForOfIteratorHelper(opList),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var opListElement = _step.value;

        if (opListElement.fn === "save") {
          opTree.push({
            fnId: 92,
            fn: "group",
            items: []
          });
          tmp.push(opTree);
          opTree = opTree[opTree.length - 1].items;
          continue;
        }

        if (opListElement.fn === "restore") {
          opTree = tmp.pop();
        } else {
          opTree.push(opListElement);
        }
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    return opTree;
  };

  var pf = function pf(value) {
    if (Number.isInteger(value)) {
      return value.toString();
    }

    var s = value.toFixed(10);
    var i = s.length - 1;

    if (s[i] !== "0") {
      return s;
    }

    do {
      i--;
    } while (s[i] === "0");

    return s.substring(0, s[i] === "." ? i : i + 1);
  };

  var pm = function pm(m) {
    if (m[4] === 0 && m[5] === 0) {
      if (m[1] === 0 && m[2] === 0) {
        if (m[0] === 1 && m[3] === 1) {
          return "";
        }

        return "scale(".concat(pf(m[0]), " ").concat(pf(m[3]), ")");
      }

      if (m[0] === m[3] && m[1] === -m[2]) {
        var a = Math.acos(m[0]) * 180 / Math.PI;
        return "rotate(".concat(pf(a), ")");
      }
    } else {
      if (m[0] === 1 && m[1] === 0 && m[2] === 0 && m[3] === 1) {
        return "translate(".concat(pf(m[4]), " ").concat(pf(m[5]), ")");
      }
    }

    return "matrix(".concat(pf(m[0]), " ").concat(pf(m[1]), " ").concat(pf(m[2]), " ").concat(pf(m[3]), " ").concat(pf(m[4]), " ") + "".concat(pf(m[5]), ")");
  };

  var SVG_DEFAULTS = {
    fontStyle: "normal",
    fontWeight: "normal",
    fillColor: "#000000"
  };
  var XML_NS = "http://www.w3.org/XML/1998/namespace";
  var XLINK_NS = "http://www.w3.org/1999/xlink";
  var LINE_CAP_STYLES = ["butt", "round", "square"];
  var LINE_JOIN_STYLES = ["miter", "round", "bevel"];

  var convertImgDataToPng = function () {
    var PNG_HEADER = new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
    var CHUNK_WRAPPER_SIZE = 12;
    var crcTable = new Int32Array(256);

    for (var i = 0; i < 256; i++) {
      var c = i;

      for (var h = 0; h < 8; h++) {
        if (c & 1) {
          c = 0xedb88320 ^ c >> 1 & 0x7fffffff;
        } else {
          c = c >> 1 & 0x7fffffff;
        }
      }

      crcTable[i] = c;
    }

    function crc32(data, start, end) {
      var crc = -1;

      for (var _i = start; _i < end; _i++) {
        var a = (crc ^ data[_i]) & 0xff;
        var b = crcTable[a];
        crc = crc >>> 8 ^ b;
      }

      return crc ^ -1;
    }

    function writePngChunk(type, body, data, offset) {
      var p = offset;
      var len = body.length;
      data[p] = len >> 24 & 0xff;
      data[p + 1] = len >> 16 & 0xff;
      data[p + 2] = len >> 8 & 0xff;
      data[p + 3] = len & 0xff;
      p += 4;
      data[p] = type.charCodeAt(0) & 0xff;
      data[p + 1] = type.charCodeAt(1) & 0xff;
      data[p + 2] = type.charCodeAt(2) & 0xff;
      data[p + 3] = type.charCodeAt(3) & 0xff;
      p += 4;
      data.set(body, p);
      p += body.length;
      var crc = crc32(data, offset + 4, p);
      data[p] = crc >> 24 & 0xff;
      data[p + 1] = crc >> 16 & 0xff;
      data[p + 2] = crc >> 8 & 0xff;
      data[p + 3] = crc & 0xff;
    }

    function adler32(data, start, end) {
      var a = 1;
      var b = 0;

      for (var _i2 = start; _i2 < end; ++_i2) {
        a = (a + (data[_i2] & 0xff)) % 65521;
        b = (b + a) % 65521;
      }

      return b << 16 | a;
    }

    function deflateSync(literals) {
      if (!_is_node.isNodeJS) {
        return deflateSyncUncompressed(literals);
      }

      try {
        var input;

        if (parseInt(process.versions.node) >= 8) {
          input = literals;
        } else {
          input = Buffer.from(literals);
        }

        var output = __webpack_require__(2604).deflateSync(input, {
          level: 9
        });

        return output instanceof Uint8Array ? output : new Uint8Array(output);
      } catch (e) {
        (0, _util.warn)("Not compressing PNG because zlib.deflateSync is unavailable: " + e);
      }

      return deflateSyncUncompressed(literals);
    }

    function deflateSyncUncompressed(literals) {
      var len = literals.length;
      var maxBlockLength = 0xffff;
      var deflateBlocks = Math.ceil(len / maxBlockLength);
      var idat = new Uint8Array(2 + len + deflateBlocks * 5 + 4);
      var pi = 0;
      idat[pi++] = 0x78;
      idat[pi++] = 0x9c;
      var pos = 0;

      while (len > maxBlockLength) {
        idat[pi++] = 0x00;
        idat[pi++] = 0xff;
        idat[pi++] = 0xff;
        idat[pi++] = 0x00;
        idat[pi++] = 0x00;
        idat.set(literals.subarray(pos, pos + maxBlockLength), pi);
        pi += maxBlockLength;
        pos += maxBlockLength;
        len -= maxBlockLength;
      }

      idat[pi++] = 0x01;
      idat[pi++] = len & 0xff;
      idat[pi++] = len >> 8 & 0xff;
      idat[pi++] = ~len & 0xffff & 0xff;
      idat[pi++] = (~len & 0xffff) >> 8 & 0xff;
      idat.set(literals.subarray(pos), pi);
      pi += literals.length - pos;
      var adler = adler32(literals, 0, literals.length);
      idat[pi++] = adler >> 24 & 0xff;
      idat[pi++] = adler >> 16 & 0xff;
      idat[pi++] = adler >> 8 & 0xff;
      idat[pi++] = adler & 0xff;
      return idat;
    }

    function encode(imgData, kind, forceDataSchema, isMask) {
      var width = imgData.width;
      var height = imgData.height;
      var bitDepth, colorType, lineSize;
      var bytes = imgData.data;

      switch (kind) {
        case _util.ImageKind.GRAYSCALE_1BPP:
          colorType = 0;
          bitDepth = 1;
          lineSize = width + 7 >> 3;
          break;

        case _util.ImageKind.RGB_24BPP:
          colorType = 2;
          bitDepth = 8;
          lineSize = width * 3;
          break;

        case _util.ImageKind.RGBA_32BPP:
          colorType = 6;
          bitDepth = 8;
          lineSize = width * 4;
          break;

        default:
          throw new Error("invalid format");
      }

      var literals = new Uint8Array((1 + lineSize) * height);
      var offsetLiterals = 0,
          offsetBytes = 0;

      for (var y = 0; y < height; ++y) {
        literals[offsetLiterals++] = 0;
        literals.set(bytes.subarray(offsetBytes, offsetBytes + lineSize), offsetLiterals);
        offsetBytes += lineSize;
        offsetLiterals += lineSize;
      }

      if (kind === _util.ImageKind.GRAYSCALE_1BPP && isMask) {
        offsetLiterals = 0;

        for (var _y = 0; _y < height; _y++) {
          offsetLiterals++;

          for (var _i3 = 0; _i3 < lineSize; _i3++) {
            literals[offsetLiterals++] ^= 0xff;
          }
        }
      }

      var ihdr = new Uint8Array([width >> 24 & 0xff, width >> 16 & 0xff, width >> 8 & 0xff, width & 0xff, height >> 24 & 0xff, height >> 16 & 0xff, height >> 8 & 0xff, height & 0xff, bitDepth, colorType, 0x00, 0x00, 0x00]);
      var idat = deflateSync(literals);
      var pngLength = PNG_HEADER.length + CHUNK_WRAPPER_SIZE * 3 + ihdr.length + idat.length;
      var data = new Uint8Array(pngLength);
      var offset = 0;
      data.set(PNG_HEADER, offset);
      offset += PNG_HEADER.length;
      writePngChunk("IHDR", ihdr, data, offset);
      offset += CHUNK_WRAPPER_SIZE + ihdr.length;
      writePngChunk("IDATA", idat, data, offset);
      offset += CHUNK_WRAPPER_SIZE + idat.length;
      writePngChunk("IEND", new Uint8Array(0), data, offset);
      return (0, _util.createObjectURL)(data, "image/png", forceDataSchema);
    }

    return function convertImgDataToPng(imgData, forceDataSchema, isMask) {
      var kind = imgData.kind === undefined ? _util.ImageKind.GRAYSCALE_1BPP : imgData.kind;
      return encode(imgData, kind, forceDataSchema, isMask);
    };
  }();

  var SVGExtraState = /*#__PURE__*/function () {
    function SVGExtraState() {
      _classCallCheck(this, SVGExtraState);

      this.fontSizeScale = 1;
      this.fontWeight = SVG_DEFAULTS.fontWeight;
      this.fontSize = 0;
      this.textMatrix = _util.IDENTITY_MATRIX;
      this.fontMatrix = _util.FONT_IDENTITY_MATRIX;
      this.leading = 0;
      this.textRenderingMode = _util.TextRenderingMode.FILL;
      this.textMatrixScale = 1;
      this.x = 0;
      this.y = 0;
      this.lineX = 0;
      this.lineY = 0;
      this.charSpacing = 0;
      this.wordSpacing = 0;
      this.textHScale = 1;
      this.textRise = 0;
      this.fillColor = SVG_DEFAULTS.fillColor;
      this.strokeColor = "#000000";
      this.fillAlpha = 1;
      this.strokeAlpha = 1;
      this.lineWidth = 1;
      this.lineJoin = "";
      this.lineCap = "";
      this.miterLimit = 0;
      this.dashArray = [];
      this.dashPhase = 0;
      this.dependencies = [];
      this.activeClipUrl = null;
      this.clipGroup = null;
      this.maskId = "";
    }

    _createClass(SVGExtraState, [{
      key: "clone",
      value: function clone() {
        return Object.create(this);
      }
    }, {
      key: "setCurrentPoint",
      value: function setCurrentPoint(x, y) {
        this.x = x;
        this.y = y;
      }
    }]);

    return SVGExtraState;
  }();

  var clipCount = 0;
  var maskCount = 0;
  var shadingCount = 0;

  exports.SVGGraphics = SVGGraphics = /*#__PURE__*/function () {
    function SVGGraphics(commonObjs, objs) {
      var forceDataSchema = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

      _classCallCheck(this, SVGGraphics);

      this.svgFactory = new _display_utils.DOMSVGFactory();
      this.current = new SVGExtraState();
      this.transformMatrix = _util.IDENTITY_MATRIX;
      this.transformStack = [];
      this.extraStack = [];
      this.commonObjs = commonObjs;
      this.objs = objs;
      this.pendingClip = null;
      this.pendingEOFill = false;
      this.embedFonts = false;
      this.embeddedFonts = Object.create(null);
      this.cssStyle = null;
      this.forceDataSchema = !!forceDataSchema;
      this._operatorIdMapping = [];

      for (var op in _util.OPS) {
        this._operatorIdMapping[_util.OPS[op]] = op;
      }
    }

    _createClass(SVGGraphics, [{
      key: "save",
      value: function save() {
        this.transformStack.push(this.transformMatrix);
        var old = this.current;
        this.extraStack.push(old);
        this.current = old.clone();
      }
    }, {
      key: "restore",
      value: function restore() {
        this.transformMatrix = this.transformStack.pop();
        this.current = this.extraStack.pop();
        this.pendingClip = null;
        this.tgrp = null;
      }
    }, {
      key: "group",
      value: function group(items) {
        this.save();
        this.executeOpTree(items);
        this.restore();
      }
    }, {
      key: "loadDependencies",
      value: function loadDependencies(operatorList) {
        var _this = this;

        var fnArray = operatorList.fnArray;
        var argsArray = operatorList.argsArray;

        for (var i = 0, ii = fnArray.length; i < ii; i++) {
          if (fnArray[i] !== _util.OPS.dependency) {
            continue;
          }

          var _iterator2 = _createForOfIteratorHelper(argsArray[i]),
              _step2;

          try {
            var _loop = function _loop() {
              var obj = _step2.value;
              var objsPool = obj.startsWith("g_") ? _this.commonObjs : _this.objs;
              var promise = new Promise(function (resolve) {
                objsPool.get(obj, resolve);
              });

              _this.current.dependencies.push(promise);
            };

            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              _loop();
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }

        return Promise.all(this.current.dependencies);
      }
    }, {
      key: "transform",
      value: function transform(a, b, c, d, e, f) {
        var transformMatrix = [a, b, c, d, e, f];
        this.transformMatrix = _util.Util.transform(this.transformMatrix, transformMatrix);
        this.tgrp = null;
      }
    }, {
      key: "getSVG",
      value: function getSVG(operatorList, viewport) {
        var _this2 = this;

        this.viewport = viewport;

        var svgElement = this._initialize(viewport);

        return this.loadDependencies(operatorList).then(function () {
          _this2.transformMatrix = _util.IDENTITY_MATRIX;

          _this2.executeOpTree(_this2.convertOpList(operatorList));

          return svgElement;
        });
      }
    }, {
      key: "convertOpList",
      value: function convertOpList(operatorList) {
        var operatorIdMapping = this._operatorIdMapping;
        var argsArray = operatorList.argsArray;
        var fnArray = operatorList.fnArray;
        var opList = [];

        for (var i = 0, ii = fnArray.length; i < ii; i++) {
          var fnId = fnArray[i];
          opList.push({
            fnId: fnId,
            fn: operatorIdMapping[fnId],
            args: argsArray[i]
          });
        }

        return opListToTree(opList);
      }
    }, {
      key: "executeOpTree",
      value: function executeOpTree(opTree) {
        var _iterator3 = _createForOfIteratorHelper(opTree),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var opTreeElement = _step3.value;
            var fn = opTreeElement.fn;
            var fnId = opTreeElement.fnId;
            var args = opTreeElement.args;

            switch (fnId | 0) {
              case _util.OPS.beginText:
                this.beginText();
                break;

              case _util.OPS.dependency:
                break;

              case _util.OPS.setLeading:
                this.setLeading(args);
                break;

              case _util.OPS.setLeadingMoveText:
                this.setLeadingMoveText(args[0], args[1]);
                break;

              case _util.OPS.setFont:
                this.setFont(args);
                break;

              case _util.OPS.showText:
                this.showText(args[0]);
                break;

              case _util.OPS.showSpacedText:
                this.showText(args[0]);
                break;

              case _util.OPS.endText:
                this.endText();
                break;

              case _util.OPS.moveText:
                this.moveText(args[0], args[1]);
                break;

              case _util.OPS.setCharSpacing:
                this.setCharSpacing(args[0]);
                break;

              case _util.OPS.setWordSpacing:
                this.setWordSpacing(args[0]);
                break;

              case _util.OPS.setHScale:
                this.setHScale(args[0]);
                break;

              case _util.OPS.setTextMatrix:
                this.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
                break;

              case _util.OPS.setTextRise:
                this.setTextRise(args[0]);
                break;

              case _util.OPS.setTextRenderingMode:
                this.setTextRenderingMode(args[0]);
                break;

              case _util.OPS.setLineWidth:
                this.setLineWidth(args[0]);
                break;

              case _util.OPS.setLineJoin:
                this.setLineJoin(args[0]);
                break;

              case _util.OPS.setLineCap:
                this.setLineCap(args[0]);
                break;

              case _util.OPS.setMiterLimit:
                this.setMiterLimit(args[0]);
                break;

              case _util.OPS.setFillRGBColor:
                this.setFillRGBColor(args[0], args[1], args[2]);
                break;

              case _util.OPS.setStrokeRGBColor:
                this.setStrokeRGBColor(args[0], args[1], args[2]);
                break;

              case _util.OPS.setStrokeColorN:
                this.setStrokeColorN(args);
                break;

              case _util.OPS.setFillColorN:
                this.setFillColorN(args);
                break;

              case _util.OPS.shadingFill:
                this.shadingFill(args[0]);
                break;

              case _util.OPS.setDash:
                this.setDash(args[0], args[1]);
                break;

              case _util.OPS.setRenderingIntent:
                this.setRenderingIntent(args[0]);
                break;

              case _util.OPS.setFlatness:
                this.setFlatness(args[0]);
                break;

              case _util.OPS.setGState:
                this.setGState(args[0]);
                break;

              case _util.OPS.fill:
                this.fill();
                break;

              case _util.OPS.eoFill:
                this.eoFill();
                break;

              case _util.OPS.stroke:
                this.stroke();
                break;

              case _util.OPS.fillStroke:
                this.fillStroke();
                break;

              case _util.OPS.eoFillStroke:
                this.eoFillStroke();
                break;

              case _util.OPS.clip:
                this.clip("nonzero");
                break;

              case _util.OPS.eoClip:
                this.clip("evenodd");
                break;

              case _util.OPS.paintSolidColorImageMask:
                this.paintSolidColorImageMask();
                break;

              case _util.OPS.paintImageXObject:
                this.paintImageXObject(args[0]);
                break;

              case _util.OPS.paintInlineImageXObject:
                this.paintInlineImageXObject(args[0]);
                break;

              case _util.OPS.paintImageMaskXObject:
                this.paintImageMaskXObject(args[0]);
                break;

              case _util.OPS.paintFormXObjectBegin:
                this.paintFormXObjectBegin(args[0], args[1]);
                break;

              case _util.OPS.paintFormXObjectEnd:
                this.paintFormXObjectEnd();
                break;

              case _util.OPS.closePath:
                this.closePath();
                break;

              case _util.OPS.closeStroke:
                this.closeStroke();
                break;

              case _util.OPS.closeFillStroke:
                this.closeFillStroke();
                break;

              case _util.OPS.closeEOFillStroke:
                this.closeEOFillStroke();
                break;

              case _util.OPS.nextLine:
                this.nextLine();
                break;

              case _util.OPS.transform:
                this.transform(args[0], args[1], args[2], args[3], args[4], args[5]);
                break;

              case _util.OPS.constructPath:
                this.constructPath(args[0], args[1]);
                break;

              case _util.OPS.endPath:
                this.endPath();
                break;

              case 92:
                this.group(opTreeElement.items);
                break;

              default:
                (0, _util.warn)("Unimplemented operator ".concat(fn));
                break;
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      }
    }, {
      key: "setWordSpacing",
      value: function setWordSpacing(wordSpacing) {
        this.current.wordSpacing = wordSpacing;
      }
    }, {
      key: "setCharSpacing",
      value: function setCharSpacing(charSpacing) {
        this.current.charSpacing = charSpacing;
      }
    }, {
      key: "nextLine",
      value: function nextLine() {
        this.moveText(0, this.current.leading);
      }
    }, {
      key: "setTextMatrix",
      value: function setTextMatrix(a, b, c, d, e, f) {
        var current = this.current;
        current.textMatrix = current.lineMatrix = [a, b, c, d, e, f];
        current.textMatrixScale = Math.sqrt(a * a + b * b);
        current.x = current.lineX = 0;
        current.y = current.lineY = 0;
        current.xcoords = [];
        current.ycoords = [];
        current.tspan = this.svgFactory.createElement("svg:tspan");
        current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
        current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize), "px"));
        current.tspan.setAttributeNS(null, "y", pf(-current.y));
        current.txtElement = this.svgFactory.createElement("svg:text");
        current.txtElement.appendChild(current.tspan);
      }
    }, {
      key: "beginText",
      value: function beginText() {
        var current = this.current;
        current.x = current.lineX = 0;
        current.y = current.lineY = 0;
        current.textMatrix = _util.IDENTITY_MATRIX;
        current.lineMatrix = _util.IDENTITY_MATRIX;
        current.textMatrixScale = 1;
        current.tspan = this.svgFactory.createElement("svg:tspan");
        current.txtElement = this.svgFactory.createElement("svg:text");
        current.txtgrp = this.svgFactory.createElement("svg:g");
        current.xcoords = [];
        current.ycoords = [];
      }
    }, {
      key: "moveText",
      value: function moveText(x, y) {
        var current = this.current;
        current.x = current.lineX += x;
        current.y = current.lineY += y;
        current.xcoords = [];
        current.ycoords = [];
        current.tspan = this.svgFactory.createElement("svg:tspan");
        current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
        current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize), "px"));
        current.tspan.setAttributeNS(null, "y", pf(-current.y));
      }
    }, {
      key: "showText",
      value: function showText(glyphs) {
        var current = this.current;
        var font = current.font;
        var fontSize = current.fontSize;

        if (fontSize === 0) {
          return;
        }

        var fontSizeScale = current.fontSizeScale;
        var charSpacing = current.charSpacing;
        var wordSpacing = current.wordSpacing;
        var fontDirection = current.fontDirection;
        var textHScale = current.textHScale * fontDirection;
        var vertical = font.vertical;
        var spacingDir = vertical ? 1 : -1;
        var defaultVMetrics = font.defaultVMetrics;
        var widthAdvanceScale = fontSize * current.fontMatrix[0];
        var x = 0;

        var _iterator4 = _createForOfIteratorHelper(glyphs),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var glyph = _step4.value;

            if (glyph === null) {
              x += fontDirection * wordSpacing;
              continue;
            } else if ((0, _util.isNum)(glyph)) {
              x += spacingDir * glyph * fontSize / 1000;
              continue;
            }

            var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;
            var character = glyph.fontChar;
            var scaledX = void 0,
                scaledY = void 0;
            var width = glyph.width;

            if (vertical) {
              var vx = void 0;
              var vmetric = glyph.vmetric || defaultVMetrics;
              vx = glyph.vmetric ? vmetric[1] : width * 0.5;
              vx = -vx * widthAdvanceScale;
              var vy = vmetric[2] * widthAdvanceScale;
              width = vmetric ? -vmetric[0] : width;
              scaledX = vx / fontSizeScale;
              scaledY = (x + vy) / fontSizeScale;
            } else {
              scaledX = x / fontSizeScale;
              scaledY = 0;
            }

            if (glyph.isInFont || font.missingFile) {
              current.xcoords.push(current.x + scaledX);

              if (vertical) {
                current.ycoords.push(-current.y + scaledY);
              }

              current.tspan.textContent += character;
            } else {}

            var charWidth = void 0;

            if (vertical) {
              charWidth = width * widthAdvanceScale - spacing * fontDirection;
            } else {
              charWidth = width * widthAdvanceScale + spacing * fontDirection;
            }

            x += charWidth;
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }

        current.tspan.setAttributeNS(null, "x", current.xcoords.map(pf).join(" "));

        if (vertical) {
          current.tspan.setAttributeNS(null, "y", current.ycoords.map(pf).join(" "));
        } else {
          current.tspan.setAttributeNS(null, "y", pf(-current.y));
        }

        if (vertical) {
          current.y -= x;
        } else {
          current.x += x * textHScale;
        }

        current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
        current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize), "px"));

        if (current.fontStyle !== SVG_DEFAULTS.fontStyle) {
          current.tspan.setAttributeNS(null, "font-style", current.fontStyle);
        }

        if (current.fontWeight !== SVG_DEFAULTS.fontWeight) {
          current.tspan.setAttributeNS(null, "font-weight", current.fontWeight);
        }

        var fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;

        if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          if (current.fillColor !== SVG_DEFAULTS.fillColor) {
            current.tspan.setAttributeNS(null, "fill", current.fillColor);
          }

          if (current.fillAlpha < 1) {
            current.tspan.setAttributeNS(null, "fill-opacity", current.fillAlpha);
          }
        } else if (current.textRenderingMode === _util.TextRenderingMode.ADD_TO_PATH) {
          current.tspan.setAttributeNS(null, "fill", "transparent");
        } else {
          current.tspan.setAttributeNS(null, "fill", "none");
        }

        if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          var lineWidthScale = 1 / (current.textMatrixScale || 1);

          this._setStrokeAttributes(current.tspan, lineWidthScale);
        }

        var textMatrix = current.textMatrix;

        if (current.textRise !== 0) {
          textMatrix = textMatrix.slice();
          textMatrix[5] += current.textRise;
        }

        current.txtElement.setAttributeNS(null, "transform", "".concat(pm(textMatrix), " scale(").concat(pf(textHScale), ", -1)"));
        current.txtElement.setAttributeNS(XML_NS, "xml:space", "preserve");
        current.txtElement.appendChild(current.tspan);
        current.txtgrp.appendChild(current.txtElement);

        this._ensureTransformGroup().appendChild(current.txtElement);
      }
    }, {
      key: "setLeadingMoveText",
      value: function setLeadingMoveText(x, y) {
        this.setLeading(-y);
        this.moveText(x, y);
      }
    }, {
      key: "addFontStyle",
      value: function addFontStyle(fontObj) {
        if (!fontObj.data) {
          throw new Error("addFontStyle: No font data available, " + 'ensure that the "fontExtraProperties" API parameter is set.');
        }

        if (!this.cssStyle) {
          this.cssStyle = this.svgFactory.createElement("svg:style");
          this.cssStyle.setAttributeNS(null, "type", "text/css");
          this.defs.appendChild(this.cssStyle);
        }

        var url = (0, _util.createObjectURL)(fontObj.data, fontObj.mimetype, this.forceDataSchema);
        this.cssStyle.textContent += "@font-face { font-family: \"".concat(fontObj.loadedName, "\";") + " src: url(".concat(url, "); }\n");
      }
    }, {
      key: "setFont",
      value: function setFont(details) {
        var current = this.current;
        var fontObj = this.commonObjs.get(details[0]);
        var size = details[1];
        current.font = fontObj;

        if (this.embedFonts && !fontObj.missingFile && !this.embeddedFonts[fontObj.loadedName]) {
          this.addFontStyle(fontObj);
          this.embeddedFonts[fontObj.loadedName] = fontObj;
        }

        current.fontMatrix = fontObj.fontMatrix ? fontObj.fontMatrix : _util.FONT_IDENTITY_MATRIX;
        var bold = "normal";

        if (fontObj.black) {
          bold = "900";
        } else if (fontObj.bold) {
          bold = "bold";
        }

        var italic = fontObj.italic ? "italic" : "normal";

        if (size < 0) {
          size = -size;
          current.fontDirection = -1;
        } else {
          current.fontDirection = 1;
        }

        current.fontSize = size;
        current.fontFamily = fontObj.loadedName;
        current.fontWeight = bold;
        current.fontStyle = italic;
        current.tspan = this.svgFactory.createElement("svg:tspan");
        current.tspan.setAttributeNS(null, "y", pf(-current.y));
        current.xcoords = [];
        current.ycoords = [];
      }
    }, {
      key: "endText",
      value: function endText() {
        var current = this.current;

        if (current.textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG && current.txtElement && current.txtElement.hasChildNodes()) {
          current.element = current.txtElement;
          this.clip("nonzero");
          this.endPath();
        }
      }
    }, {
      key: "setLineWidth",
      value: function setLineWidth(width) {
        if (width > 0) {
          this.current.lineWidth = width;
        }
      }
    }, {
      key: "setLineCap",
      value: function setLineCap(style) {
        this.current.lineCap = LINE_CAP_STYLES[style];
      }
    }, {
      key: "setLineJoin",
      value: function setLineJoin(style) {
        this.current.lineJoin = LINE_JOIN_STYLES[style];
      }
    }, {
      key: "setMiterLimit",
      value: function setMiterLimit(limit) {
        this.current.miterLimit = limit;
      }
    }, {
      key: "setStrokeAlpha",
      value: function setStrokeAlpha(strokeAlpha) {
        this.current.strokeAlpha = strokeAlpha;
      }
    }, {
      key: "setStrokeRGBColor",
      value: function setStrokeRGBColor(r, g, b) {
        this.current.strokeColor = _util.Util.makeCssRgb(r, g, b);
      }
    }, {
      key: "setFillAlpha",
      value: function setFillAlpha(fillAlpha) {
        this.current.fillAlpha = fillAlpha;
      }
    }, {
      key: "setFillRGBColor",
      value: function setFillRGBColor(r, g, b) {
        this.current.fillColor = _util.Util.makeCssRgb(r, g, b);
        this.current.tspan = this.svgFactory.createElement("svg:tspan");
        this.current.xcoords = [];
        this.current.ycoords = [];
      }
    }, {
      key: "setStrokeColorN",
      value: function setStrokeColorN(args) {
        this.current.strokeColor = this._makeColorN_Pattern(args);
      }
    }, {
      key: "setFillColorN",
      value: function setFillColorN(args) {
        this.current.fillColor = this._makeColorN_Pattern(args);
      }
    }, {
      key: "shadingFill",
      value: function shadingFill(args) {
        var width = this.viewport.width;
        var height = this.viewport.height;

        var inv = _util.Util.inverseTransform(this.transformMatrix);

        var bl = _util.Util.applyTransform([0, 0], inv);

        var br = _util.Util.applyTransform([0, height], inv);

        var ul = _util.Util.applyTransform([width, 0], inv);

        var ur = _util.Util.applyTransform([width, height], inv);

        var x0 = Math.min(bl[0], br[0], ul[0], ur[0]);
        var y0 = Math.min(bl[1], br[1], ul[1], ur[1]);
        var x1 = Math.max(bl[0], br[0], ul[0], ur[0]);
        var y1 = Math.max(bl[1], br[1], ul[1], ur[1]);
        var rect = this.svgFactory.createElement("svg:rect");
        rect.setAttributeNS(null, "x", x0);
        rect.setAttributeNS(null, "y", y0);
        rect.setAttributeNS(null, "width", x1 - x0);
        rect.setAttributeNS(null, "height", y1 - y0);
        rect.setAttributeNS(null, "fill", this._makeShadingPattern(args));

        if (this.current.fillAlpha < 1) {
          rect.setAttributeNS(null, "fill-opacity", this.current.fillAlpha);
        }

        this._ensureTransformGroup().appendChild(rect);
      }
    }, {
      key: "_makeColorN_Pattern",
      value: function _makeColorN_Pattern(args) {
        if (args[0] === "TilingPattern") {
          return this._makeTilingPattern(args);
        }

        return this._makeShadingPattern(args);
      }
    }, {
      key: "_makeTilingPattern",
      value: function _makeTilingPattern(args) {
        var color = args[1];
        var operatorList = args[2];
        var matrix = args[3] || _util.IDENTITY_MATRIX;

        var _args$ = _slicedToArray(args[4], 4),
            x0 = _args$[0],
            y0 = _args$[1],
            x1 = _args$[2],
            y1 = _args$[3];

        var xstep = args[5];
        var ystep = args[6];
        var paintType = args[7];
        var tilingId = "shading".concat(shadingCount++);

        var _Util$applyTransform = _util.Util.applyTransform([x0, y0], matrix),
            _Util$applyTransform2 = _slicedToArray(_Util$applyTransform, 2),
            tx0 = _Util$applyTransform2[0],
            ty0 = _Util$applyTransform2[1];

        var _Util$applyTransform3 = _util.Util.applyTransform([x1, y1], matrix),
            _Util$applyTransform4 = _slicedToArray(_Util$applyTransform3, 2),
            tx1 = _Util$applyTransform4[0],
            ty1 = _Util$applyTransform4[1];

        var _Util$singularValueDe = _util.Util.singularValueDecompose2dScale(matrix),
            _Util$singularValueDe2 = _slicedToArray(_Util$singularValueDe, 2),
            xscale = _Util$singularValueDe2[0],
            yscale = _Util$singularValueDe2[1];

        var txstep = xstep * xscale;
        var tystep = ystep * yscale;
        var tiling = this.svgFactory.createElement("svg:pattern");
        tiling.setAttributeNS(null, "id", tilingId);
        tiling.setAttributeNS(null, "patternUnits", "userSpaceOnUse");
        tiling.setAttributeNS(null, "width", txstep);
        tiling.setAttributeNS(null, "height", tystep);
        tiling.setAttributeNS(null, "x", "".concat(tx0));
        tiling.setAttributeNS(null, "y", "".concat(ty0));
        var svg = this.svg;
        var transformMatrix = this.transformMatrix;
        var fillColor = this.current.fillColor;
        var strokeColor = this.current.strokeColor;
        var bbox = this.svgFactory.create(tx1 - tx0, ty1 - ty0);
        this.svg = bbox;
        this.transformMatrix = matrix;

        if (paintType === 2) {
          var cssColor = _util.Util.makeCssRgb.apply(_util.Util, _toConsumableArray(color));

          this.current.fillColor = cssColor;
          this.current.strokeColor = cssColor;
        }

        this.executeOpTree(this.convertOpList(operatorList));
        this.svg = svg;
        this.transformMatrix = transformMatrix;
        this.current.fillColor = fillColor;
        this.current.strokeColor = strokeColor;
        tiling.appendChild(bbox.childNodes[0]);
        this.defs.appendChild(tiling);
        return "url(#".concat(tilingId, ")");
      }
    }, {
      key: "_makeShadingPattern",
      value: function _makeShadingPattern(args) {
        switch (args[0]) {
          case "RadialAxial":
            var shadingId = "shading".concat(shadingCount++);
            var colorStops = args[3];
            var gradient;

            switch (args[1]) {
              case "axial":
                var point0 = args[4];
                var point1 = args[5];
                gradient = this.svgFactory.createElement("svg:linearGradient");
                gradient.setAttributeNS(null, "id", shadingId);
                gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse");
                gradient.setAttributeNS(null, "x1", point0[0]);
                gradient.setAttributeNS(null, "y1", point0[1]);
                gradient.setAttributeNS(null, "x2", point1[0]);
                gradient.setAttributeNS(null, "y2", point1[1]);
                break;

              case "radial":
                var focalPoint = args[4];
                var circlePoint = args[5];
                var focalRadius = args[6];
                var circleRadius = args[7];
                gradient = this.svgFactory.createElement("svg:radialGradient");
                gradient.setAttributeNS(null, "id", shadingId);
                gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse");
                gradient.setAttributeNS(null, "cx", circlePoint[0]);
                gradient.setAttributeNS(null, "cy", circlePoint[1]);
                gradient.setAttributeNS(null, "r", circleRadius);
                gradient.setAttributeNS(null, "fx", focalPoint[0]);
                gradient.setAttributeNS(null, "fy", focalPoint[1]);
                gradient.setAttributeNS(null, "fr", focalRadius);
                break;

              default:
                throw new Error("Unknown RadialAxial type: ".concat(args[1]));
            }

            var _iterator5 = _createForOfIteratorHelper(colorStops),
                _step5;

            try {
              for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
                var colorStop = _step5.value;
                var stop = this.svgFactory.createElement("svg:stop");
                stop.setAttributeNS(null, "offset", colorStop[0]);
                stop.setAttributeNS(null, "stop-color", colorStop[1]);
                gradient.appendChild(stop);
              }
            } catch (err) {
              _iterator5.e(err);
            } finally {
              _iterator5.f();
            }

            this.defs.appendChild(gradient);
            return "url(#".concat(shadingId, ")");

          case "Mesh":
            (0, _util.warn)("Unimplemented pattern Mesh");
            return null;

          case "Dummy":
            return "hotpink";

          default:
            throw new Error("Unknown IR type: ".concat(args[0]));
        }
      }
    }, {
      key: "setDash",
      value: function setDash(dashArray, dashPhase) {
        this.current.dashArray = dashArray;
        this.current.dashPhase = dashPhase;
      }
    }, {
      key: "constructPath",
      value: function constructPath(ops, args) {
        var current = this.current;
        var x = current.x,
            y = current.y;
        var d = [];
        var j = 0;

        var _iterator6 = _createForOfIteratorHelper(ops),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var op = _step6.value;

            switch (op | 0) {
              case _util.OPS.rectangle:
                x = args[j++];
                y = args[j++];
                var width = args[j++];
                var height = args[j++];
                var xw = x + width;
                var yh = y + height;
                d.push("M", pf(x), pf(y), "L", pf(xw), pf(y), "L", pf(xw), pf(yh), "L", pf(x), pf(yh), "Z");
                break;

              case _util.OPS.moveTo:
                x = args[j++];
                y = args[j++];
                d.push("M", pf(x), pf(y));
                break;

              case _util.OPS.lineTo:
                x = args[j++];
                y = args[j++];
                d.push("L", pf(x), pf(y));
                break;

              case _util.OPS.curveTo:
                x = args[j + 4];
                y = args[j + 5];
                d.push("C", pf(args[j]), pf(args[j + 1]), pf(args[j + 2]), pf(args[j + 3]), pf(x), pf(y));
                j += 6;
                break;

              case _util.OPS.curveTo2:
                d.push("C", pf(x), pf(y), pf(args[j]), pf(args[j + 1]), pf(args[j + 2]), pf(args[j + 3]));
                x = args[j + 2];
                y = args[j + 3];
                j += 4;
                break;

              case _util.OPS.curveTo3:
                x = args[j + 2];
                y = args[j + 3];
                d.push("C", pf(args[j]), pf(args[j + 1]), pf(x), pf(y), pf(x), pf(y));
                j += 4;
                break;

              case _util.OPS.closePath:
                d.push("Z");
                break;
            }
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }

        d = d.join(" ");

        if (current.path && ops.length > 0 && ops[0] !== _util.OPS.rectangle && ops[0] !== _util.OPS.moveTo) {
          d = current.path.getAttributeNS(null, "d") + d;
        } else {
          current.path = this.svgFactory.createElement("svg:path");

          this._ensureTransformGroup().appendChild(current.path);
        }

        current.path.setAttributeNS(null, "d", d);
        current.path.setAttributeNS(null, "fill", "none");
        current.element = current.path;
        current.setCurrentPoint(x, y);
      }
    }, {
      key: "endPath",
      value: function endPath() {
        var current = this.current;
        current.path = null;

        if (!this.pendingClip) {
          return;
        }

        if (!current.element) {
          this.pendingClip = null;
          return;
        }

        var clipId = "clippath".concat(clipCount++);
        var clipPath = this.svgFactory.createElement("svg:clipPath");
        clipPath.setAttributeNS(null, "id", clipId);
        clipPath.setAttributeNS(null, "transform", pm(this.transformMatrix));
        var clipElement = current.element.cloneNode(true);

        if (this.pendingClip === "evenodd") {
          clipElement.setAttributeNS(null, "clip-rule", "evenodd");
        } else {
          clipElement.setAttributeNS(null, "clip-rule", "nonzero");
        }

        this.pendingClip = null;
        clipPath.appendChild(clipElement);
        this.defs.appendChild(clipPath);

        if (current.activeClipUrl) {
          current.clipGroup = null;
          this.extraStack.forEach(function (prev) {
            prev.clipGroup = null;
          });
          clipPath.setAttributeNS(null, "clip-path", current.activeClipUrl);
        }

        current.activeClipUrl = "url(#".concat(clipId, ")");
        this.tgrp = null;
      }
    }, {
      key: "clip",
      value: function clip(type) {
        this.pendingClip = type;
      }
    }, {
      key: "closePath",
      value: function closePath() {
        var current = this.current;

        if (current.path) {
          var d = "".concat(current.path.getAttributeNS(null, "d"), "Z");
          current.path.setAttributeNS(null, "d", d);
        }
      }
    }, {
      key: "setLeading",
      value: function setLeading(leading) {
        this.current.leading = -leading;
      }
    }, {
      key: "setTextRise",
      value: function setTextRise(textRise) {
        this.current.textRise = textRise;
      }
    }, {
      key: "setTextRenderingMode",
      value: function setTextRenderingMode(textRenderingMode) {
        this.current.textRenderingMode = textRenderingMode;
      }
    }, {
      key: "setHScale",
      value: function setHScale(scale) {
        this.current.textHScale = scale / 100;
      }
    }, {
      key: "setRenderingIntent",
      value: function setRenderingIntent(intent) {}
    }, {
      key: "setFlatness",
      value: function setFlatness(flatness) {}
    }, {
      key: "setGState",
      value: function setGState(states) {
        var _iterator7 = _createForOfIteratorHelper(states),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _step7$value = _slicedToArray(_step7.value, 2),
                key = _step7$value[0],
                value = _step7$value[1];

            switch (key) {
              case "LW":
                this.setLineWidth(value);
                break;

              case "LC":
                this.setLineCap(value);
                break;

              case "LJ":
                this.setLineJoin(value);
                break;

              case "ML":
                this.setMiterLimit(value);
                break;

              case "D":
                this.setDash(value[0], value[1]);
                break;

              case "RI":
                this.setRenderingIntent(value);
                break;

              case "FL":
                this.setFlatness(value);
                break;

              case "Font":
                this.setFont(value);
                break;

              case "CA":
                this.setStrokeAlpha(value);
                break;

              case "ca":
                this.setFillAlpha(value);
                break;

              default:
                (0, _util.warn)("Unimplemented graphic state operator ".concat(key));
                break;
            }
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }
      }
    }, {
      key: "fill",
      value: function fill() {
        var current = this.current;

        if (current.element) {
          current.element.setAttributeNS(null, "fill", current.fillColor);
          current.element.setAttributeNS(null, "fill-opacity", current.fillAlpha);
          this.endPath();
        }
      }
    }, {
      key: "stroke",
      value: function stroke() {
        var current = this.current;

        if (current.element) {
          this._setStrokeAttributes(current.element);

          current.element.setAttributeNS(null, "fill", "none");
          this.endPath();
        }
      }
    }, {
      key: "_setStrokeAttributes",
      value: function _setStrokeAttributes(element) {
        var lineWidthScale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
        var current = this.current;
        var dashArray = current.dashArray;

        if (lineWidthScale !== 1 && dashArray.length > 0) {
          dashArray = dashArray.map(function (value) {
            return lineWidthScale * value;
          });
        }

        element.setAttributeNS(null, "stroke", current.strokeColor);
        element.setAttributeNS(null, "stroke-opacity", current.strokeAlpha);
        element.setAttributeNS(null, "stroke-miterlimit", pf(current.miterLimit));
        element.setAttributeNS(null, "stroke-linecap", current.lineCap);
        element.setAttributeNS(null, "stroke-linejoin", current.lineJoin);
        element.setAttributeNS(null, "stroke-width", pf(lineWidthScale * current.lineWidth) + "px");
        element.setAttributeNS(null, "stroke-dasharray", dashArray.map(pf).join(" "));
        element.setAttributeNS(null, "stroke-dashoffset", pf(lineWidthScale * current.dashPhase) + "px");
      }
    }, {
      key: "eoFill",
      value: function eoFill() {
        if (this.current.element) {
          this.current.element.setAttributeNS(null, "fill-rule", "evenodd");
        }

        this.fill();
      }
    }, {
      key: "fillStroke",
      value: function fillStroke() {
        this.stroke();
        this.fill();
      }
    }, {
      key: "eoFillStroke",
      value: function eoFillStroke() {
        if (this.current.element) {
          this.current.element.setAttributeNS(null, "fill-rule", "evenodd");
        }

        this.fillStroke();
      }
    }, {
      key: "closeStroke",
      value: function closeStroke() {
        this.closePath();
        this.stroke();
      }
    }, {
      key: "closeFillStroke",
      value: function closeFillStroke() {
        this.closePath();
        this.fillStroke();
      }
    }, {
      key: "closeEOFillStroke",
      value: function closeEOFillStroke() {
        this.closePath();
        this.eoFillStroke();
      }
    }, {
      key: "paintSolidColorImageMask",
      value: function paintSolidColorImageMask() {
        var rect = this.svgFactory.createElement("svg:rect");
        rect.setAttributeNS(null, "x", "0");
        rect.setAttributeNS(null, "y", "0");
        rect.setAttributeNS(null, "width", "1px");
        rect.setAttributeNS(null, "height", "1px");
        rect.setAttributeNS(null, "fill", this.current.fillColor);

        this._ensureTransformGroup().appendChild(rect);
      }
    }, {
      key: "paintImageXObject",
      value: function paintImageXObject(objId) {
        var imgData = objId.startsWith("g_") ? this.commonObjs.get(objId) : this.objs.get(objId);

        if (!imgData) {
          (0, _util.warn)("Dependent image with object ID ".concat(objId, " is not ready yet"));
          return;
        }

        this.paintInlineImageXObject(imgData);
      }
    }, {
      key: "paintInlineImageXObject",
      value: function paintInlineImageXObject(imgData, mask) {
        var width = imgData.width;
        var height = imgData.height;
        var imgSrc = convertImgDataToPng(imgData, this.forceDataSchema, !!mask);
        var cliprect = this.svgFactory.createElement("svg:rect");
        cliprect.setAttributeNS(null, "x", "0");
        cliprect.setAttributeNS(null, "y", "0");
        cliprect.setAttributeNS(null, "width", pf(width));
        cliprect.setAttributeNS(null, "height", pf(height));
        this.current.element = cliprect;
        this.clip("nonzero");
        var imgEl = this.svgFactory.createElement("svg:image");
        imgEl.setAttributeNS(XLINK_NS, "xlink:href", imgSrc);
        imgEl.setAttributeNS(null, "x", "0");
        imgEl.setAttributeNS(null, "y", pf(-height));
        imgEl.setAttributeNS(null, "width", pf(width) + "px");
        imgEl.setAttributeNS(null, "height", pf(height) + "px");
        imgEl.setAttributeNS(null, "transform", "scale(".concat(pf(1 / width), " ").concat(pf(-1 / height), ")"));

        if (mask) {
          mask.appendChild(imgEl);
        } else {
          this._ensureTransformGroup().appendChild(imgEl);
        }
      }
    }, {
      key: "paintImageMaskXObject",
      value: function paintImageMaskXObject(imgData) {
        var current = this.current;
        var width = imgData.width;
        var height = imgData.height;
        var fillColor = current.fillColor;
        current.maskId = "mask".concat(maskCount++);
        var mask = this.svgFactory.createElement("svg:mask");
        mask.setAttributeNS(null, "id", current.maskId);
        var rect = this.svgFactory.createElement("svg:rect");
        rect.setAttributeNS(null, "x", "0");
        rect.setAttributeNS(null, "y", "0");
        rect.setAttributeNS(null, "width", pf(width));
        rect.setAttributeNS(null, "height", pf(height));
        rect.setAttributeNS(null, "fill", fillColor);
        rect.setAttributeNS(null, "mask", "url(#".concat(current.maskId, ")"));
        this.defs.appendChild(mask);

        this._ensureTransformGroup().appendChild(rect);

        this.paintInlineImageXObject(imgData, mask);
      }
    }, {
      key: "paintFormXObjectBegin",
      value: function paintFormXObjectBegin(matrix, bbox) {
        if (Array.isArray(matrix) && matrix.length === 6) {
          this.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
        }

        if (bbox) {
          var width = bbox[2] - bbox[0];
          var height = bbox[3] - bbox[1];
          var cliprect = this.svgFactory.createElement("svg:rect");
          cliprect.setAttributeNS(null, "x", bbox[0]);
          cliprect.setAttributeNS(null, "y", bbox[1]);
          cliprect.setAttributeNS(null, "width", pf(width));
          cliprect.setAttributeNS(null, "height", pf(height));
          this.current.element = cliprect;
          this.clip("nonzero");
          this.endPath();
        }
      }
    }, {
      key: "paintFormXObjectEnd",
      value: function paintFormXObjectEnd() {}
    }, {
      key: "_initialize",
      value: function _initialize(viewport) {
        var svg = this.svgFactory.create(viewport.width, viewport.height);
        var definitions = this.svgFactory.createElement("svg:defs");
        svg.appendChild(definitions);
        this.defs = definitions;
        var rootGroup = this.svgFactory.createElement("svg:g");
        rootGroup.setAttributeNS(null, "transform", pm(viewport.transform));
        svg.appendChild(rootGroup);
        this.svg = rootGroup;
        return svg;
      }
    }, {
      key: "_ensureClipGroup",
      value: function _ensureClipGroup() {
        if (!this.current.clipGroup) {
          var clipGroup = this.svgFactory.createElement("svg:g");
          clipGroup.setAttributeNS(null, "clip-path", this.current.activeClipUrl);
          this.svg.appendChild(clipGroup);
          this.current.clipGroup = clipGroup;
        }

        return this.current.clipGroup;
      }
    }, {
      key: "_ensureTransformGroup",
      value: function _ensureTransformGroup() {
        if (!this.tgrp) {
          this.tgrp = this.svgFactory.createElement("svg:g");
          this.tgrp.setAttributeNS(null, "transform", pm(this.transformMatrix));

          if (this.current.activeClipUrl) {
            this._ensureClipGroup().appendChild(this.tgrp);
          } else {
            this.svg.appendChild(this.tgrp);
          }
        }

        return this.tgrp;
      }
    }]);

    return SVGGraphics;
  }();
}

/***/ }),
/* 219 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFNodeStream = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

var _network_utils = __w_pdfjs_require__(220);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

;

var fs = __webpack_require__(1613);

var http = __webpack_require__(2605);

var https = __webpack_require__(2606);

var url = __webpack_require__(2607);

var fileUriRegex = /^file:\/\/\/[a-zA-Z]:\//;

function parseUrl(sourceUrl) {
  var parsedUrl = url.parse(sourceUrl);

  if (parsedUrl.protocol === "file:" || parsedUrl.host) {
    return parsedUrl;
  }

  if (/^[a-z]:[/\\]/i.test(sourceUrl)) {
    return url.parse("file:///".concat(sourceUrl));
  }

  if (!parsedUrl.host) {
    parsedUrl.protocol = "file:";
  }

  return parsedUrl;
}

var PDFNodeStream = /*#__PURE__*/function () {
  function PDFNodeStream(source) {
    _classCallCheck(this, PDFNodeStream);

    this.source = source;
    this.url = parseUrl(source.url);
    this.isHttp = this.url.protocol === "http:" || this.url.protocol === "https:";
    this.isFsUrl = this.url.protocol === "file:";
    this.httpHeaders = this.isHttp && source.httpHeaders || {};
    this._fullRequestReader = null;
    this._rangeRequestReaders = [];
  }

  _createClass(PDFNodeStream, [{
    key: "getFullReader",
    value: function getFullReader() {
      (0, _util.assert)(!this._fullRequestReader, "PDFNodeStream.getFullReader can only be called once.");
      this._fullRequestReader = this.isFsUrl ? new PDFNodeStreamFsFullReader(this) : new PDFNodeStreamFullReader(this);
      return this._fullRequestReader;
    }
  }, {
    key: "getRangeReader",
    value: function getRangeReader(start, end) {
      if (end <= this._progressiveDataLength) {
        return null;
      }

      var rangeReader = this.isFsUrl ? new PDFNodeStreamFsRangeReader(this, start, end) : new PDFNodeStreamRangeReader(this, start, end);

      this._rangeRequestReaders.push(rangeReader);

      return rangeReader;
    }
  }, {
    key: "cancelAllRequests",
    value: function cancelAllRequests(reason) {
      if (this._fullRequestReader) {
        this._fullRequestReader.cancel(reason);
      }

      var readers = this._rangeRequestReaders.slice(0);

      readers.forEach(function (reader) {
        reader.cancel(reason);
      });
    }
  }, {
    key: "_progressiveDataLength",
    get: function get() {
      return this._fullRequestReader ? this._fullRequestReader._loaded : 0;
    }
  }]);

  return PDFNodeStream;
}();

exports.PDFNodeStream = PDFNodeStream;

var BaseFullReader = /*#__PURE__*/function () {
  function BaseFullReader(stream) {
    _classCallCheck(this, BaseFullReader);

    this._url = stream.url;
    this._done = false;
    this._storedError = null;
    this.onProgress = null;
    var source = stream.source;
    this._contentLength = source.length;
    this._loaded = 0;
    this._filename = null;
    this._disableRange = source.disableRange || false;
    this._rangeChunkSize = source.rangeChunkSize;

    if (!this._rangeChunkSize && !this._disableRange) {
      this._disableRange = true;
    }

    this._isStreamingSupported = !source.disableStream;
    this._isRangeSupported = !source.disableRange;
    this._readableStream = null;
    this._readCapability = (0, _util.createPromiseCapability)();
    this._headersCapability = (0, _util.createPromiseCapability)();
  }

  _createClass(BaseFullReader, [{
    key: "read",
    value: function () {
      var _read = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var chunk, buffer;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return this._readCapability.promise;

              case 2:
                if (!this._done) {
                  _context.next = 4;
                  break;
                }

                return _context.abrupt("return", {
                  value: undefined,
                  done: true
                });

              case 4:
                if (!this._storedError) {
                  _context.next = 6;
                  break;
                }

                throw this._storedError;

              case 6:
                chunk = this._readableStream.read();

                if (!(chunk === null)) {
                  _context.next = 10;
                  break;
                }

                this._readCapability = (0, _util.createPromiseCapability)();
                return _context.abrupt("return", this.read());

              case 10:
                this._loaded += chunk.length;

                if (this.onProgress) {
                  this.onProgress({
                    loaded: this._loaded,
                    total: this._contentLength
                  });
                }

                buffer = new Uint8Array(chunk).buffer;
                return _context.abrupt("return", {
                  value: buffer,
                  done: false
                });

              case 14:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function read() {
        return _read.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      if (!this._readableStream) {
        this._error(reason);

        return;
      }

      this._readableStream.destroy(reason);
    }
  }, {
    key: "_error",
    value: function _error(reason) {
      this._storedError = reason;

      this._readCapability.resolve();
    }
  }, {
    key: "_setReadableStream",
    value: function _setReadableStream(readableStream) {
      var _this = this;

      this._readableStream = readableStream;
      readableStream.on("readable", function () {
        _this._readCapability.resolve();
      });
      readableStream.on("end", function () {
        readableStream.destroy();
        _this._done = true;

        _this._readCapability.resolve();
      });
      readableStream.on("error", function (reason) {
        _this._error(reason);
      });

      if (!this._isStreamingSupported && this._isRangeSupported) {
        this._error(new _util.AbortException("streaming is disabled"));
      }

      if (this._storedError) {
        this._readableStream.destroy(this._storedError);
      }
    }
  }, {
    key: "headersReady",
    get: function get() {
      return this._headersCapability.promise;
    }
  }, {
    key: "filename",
    get: function get() {
      return this._filename;
    }
  }, {
    key: "contentLength",
    get: function get() {
      return this._contentLength;
    }
  }, {
    key: "isRangeSupported",
    get: function get() {
      return this._isRangeSupported;
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return this._isStreamingSupported;
    }
  }]);

  return BaseFullReader;
}();

var BaseRangeReader = /*#__PURE__*/function () {
  function BaseRangeReader(stream) {
    _classCallCheck(this, BaseRangeReader);

    this._url = stream.url;
    this._done = false;
    this._storedError = null;
    this.onProgress = null;
    this._loaded = 0;
    this._readableStream = null;
    this._readCapability = (0, _util.createPromiseCapability)();
    var source = stream.source;
    this._isStreamingSupported = !source.disableStream;
  }

  _createClass(BaseRangeReader, [{
    key: "read",
    value: function () {
      var _read2 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
        var chunk, buffer;
        return _regenerator["default"].wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.next = 2;
                return this._readCapability.promise;

              case 2:
                if (!this._done) {
                  _context2.next = 4;
                  break;
                }

                return _context2.abrupt("return", {
                  value: undefined,
                  done: true
                });

              case 4:
                if (!this._storedError) {
                  _context2.next = 6;
                  break;
                }

                throw this._storedError;

              case 6:
                chunk = this._readableStream.read();

                if (!(chunk === null)) {
                  _context2.next = 10;
                  break;
                }

                this._readCapability = (0, _util.createPromiseCapability)();
                return _context2.abrupt("return", this.read());

              case 10:
                this._loaded += chunk.length;

                if (this.onProgress) {
                  this.onProgress({
                    loaded: this._loaded
                  });
                }

                buffer = new Uint8Array(chunk).buffer;
                return _context2.abrupt("return", {
                  value: buffer,
                  done: false
                });

              case 14:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2, this);
      }));

      function read() {
        return _read2.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      if (!this._readableStream) {
        this._error(reason);

        return;
      }

      this._readableStream.destroy(reason);
    }
  }, {
    key: "_error",
    value: function _error(reason) {
      this._storedError = reason;

      this._readCapability.resolve();
    }
  }, {
    key: "_setReadableStream",
    value: function _setReadableStream(readableStream) {
      var _this2 = this;

      this._readableStream = readableStream;
      readableStream.on("readable", function () {
        _this2._readCapability.resolve();
      });
      readableStream.on("end", function () {
        readableStream.destroy();
        _this2._done = true;

        _this2._readCapability.resolve();
      });
      readableStream.on("error", function (reason) {
        _this2._error(reason);
      });

      if (this._storedError) {
        this._readableStream.destroy(this._storedError);
      }
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return this._isStreamingSupported;
    }
  }]);

  return BaseRangeReader;
}();

function createRequestOptions(parsedUrl, headers) {
  return {
    protocol: parsedUrl.protocol,
    auth: parsedUrl.auth,
    host: parsedUrl.hostname,
    port: parsedUrl.port,
    path: parsedUrl.path,
    method: "GET",
    headers: headers
  };
}

var PDFNodeStreamFullReader = /*#__PURE__*/function (_BaseFullReader) {
  _inherits(PDFNodeStreamFullReader, _BaseFullReader);

  var _super = _createSuper(PDFNodeStreamFullReader);

  function PDFNodeStreamFullReader(stream) {
    var _this3;

    _classCallCheck(this, PDFNodeStreamFullReader);

    _this3 = _super.call(this, stream);

    var handleResponse = function handleResponse(response) {
      if (response.statusCode === 404) {
        var error = new _util.MissingPDFException("Missing PDF \"".concat(_this3._url, "\"."));
        _this3._storedError = error;

        _this3._headersCapability.reject(error);

        return;
      }

      _this3._headersCapability.resolve();

      _this3._setReadableStream(response);

      var getResponseHeader = function getResponseHeader(name) {
        return _this3._readableStream.headers[name.toLowerCase()];
      };

      var _validateRangeRequest = (0, _network_utils.validateRangeRequestCapabilities)({
        getResponseHeader: getResponseHeader,
        isHttp: stream.isHttp,
        rangeChunkSize: _this3._rangeChunkSize,
        disableRange: _this3._disableRange
      }),
          allowRangeRequests = _validateRangeRequest.allowRangeRequests,
          suggestedLength = _validateRangeRequest.suggestedLength;

      _this3._isRangeSupported = allowRangeRequests;
      _this3._contentLength = suggestedLength || _this3._contentLength;
      _this3._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader);
    };

    _this3._request = null;

    if (_this3._url.protocol === "http:") {
      _this3._request = http.request(createRequestOptions(_this3._url, stream.httpHeaders), handleResponse);
    } else {
      _this3._request = https.request(createRequestOptions(_this3._url, stream.httpHeaders), handleResponse);
    }

    _this3._request.on("error", function (reason) {
      _this3._storedError = reason;

      _this3._headersCapability.reject(reason);
    });

    _this3._request.end();

    return _this3;
  }

  return PDFNodeStreamFullReader;
}(BaseFullReader);

var PDFNodeStreamRangeReader = /*#__PURE__*/function (_BaseRangeReader) {
  _inherits(PDFNodeStreamRangeReader, _BaseRangeReader);

  var _super2 = _createSuper(PDFNodeStreamRangeReader);

  function PDFNodeStreamRangeReader(stream, start, end) {
    var _this4;

    _classCallCheck(this, PDFNodeStreamRangeReader);

    _this4 = _super2.call(this, stream);
    _this4._httpHeaders = {};

    for (var property in stream.httpHeaders) {
      var value = stream.httpHeaders[property];

      if (typeof value === "undefined") {
        continue;
      }

      _this4._httpHeaders[property] = value;
    }

    _this4._httpHeaders.Range = "bytes=".concat(start, "-").concat(end - 1);

    var handleResponse = function handleResponse(response) {
      if (response.statusCode === 404) {
        var error = new _util.MissingPDFException("Missing PDF \"".concat(_this4._url, "\"."));
        _this4._storedError = error;
        return;
      }

      _this4._setReadableStream(response);
    };

    _this4._request = null;

    if (_this4._url.protocol === "http:") {
      _this4._request = http.request(createRequestOptions(_this4._url, _this4._httpHeaders), handleResponse);
    } else {
      _this4._request = https.request(createRequestOptions(_this4._url, _this4._httpHeaders), handleResponse);
    }

    _this4._request.on("error", function (reason) {
      _this4._storedError = reason;
    });

    _this4._request.end();

    return _this4;
  }

  return PDFNodeStreamRangeReader;
}(BaseRangeReader);

var PDFNodeStreamFsFullReader = /*#__PURE__*/function (_BaseFullReader2) {
  _inherits(PDFNodeStreamFsFullReader, _BaseFullReader2);

  var _super3 = _createSuper(PDFNodeStreamFsFullReader);

  function PDFNodeStreamFsFullReader(stream) {
    var _this5;

    _classCallCheck(this, PDFNodeStreamFsFullReader);

    _this5 = _super3.call(this, stream);
    var path = decodeURIComponent(_this5._url.path);

    if (fileUriRegex.test(_this5._url.href)) {
      path = path.replace(/^\//, "");
    }

    fs.lstat(path, function (error, stat) {
      if (error) {
        if (error.code === "ENOENT") {
          error = new _util.MissingPDFException("Missing PDF \"".concat(path, "\"."));
        }

        _this5._storedError = error;

        _this5._headersCapability.reject(error);

        return;
      }

      _this5._contentLength = stat.size;

      _this5._setReadableStream(fs.createReadStream(path));

      _this5._headersCapability.resolve();
    });
    return _this5;
  }

  return PDFNodeStreamFsFullReader;
}(BaseFullReader);

var PDFNodeStreamFsRangeReader = /*#__PURE__*/function (_BaseRangeReader2) {
  _inherits(PDFNodeStreamFsRangeReader, _BaseRangeReader2);

  var _super4 = _createSuper(PDFNodeStreamFsRangeReader);

  function PDFNodeStreamFsRangeReader(stream, start, end) {
    var _this6;

    _classCallCheck(this, PDFNodeStreamFsRangeReader);

    _this6 = _super4.call(this, stream);
    var path = decodeURIComponent(_this6._url.path);

    if (fileUriRegex.test(_this6._url.href)) {
      path = path.replace(/^\//, "");
    }

    _this6._setReadableStream(fs.createReadStream(path, {
      start: start,
      end: end - 1
    }));

    return _this6;
  }

  return PDFNodeStreamFsRangeReader;
}(BaseRangeReader);

/***/ }),
/* 220 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createResponseStatusError = createResponseStatusError;
exports.extractFilenameFromHeader = extractFilenameFromHeader;
exports.validateRangeRequestCapabilities = validateRangeRequestCapabilities;
exports.validateResponseStatus = validateResponseStatus;

var _util = __w_pdfjs_require__(5);

var _content_disposition = __w_pdfjs_require__(221);

function validateRangeRequestCapabilities(_ref) {
  var getResponseHeader = _ref.getResponseHeader,
      isHttp = _ref.isHttp,
      rangeChunkSize = _ref.rangeChunkSize,
      disableRange = _ref.disableRange;
  (0, _util.assert)(rangeChunkSize > 0, "Range chunk size must be larger than zero");
  var returnValues = {
    allowRangeRequests: false,
    suggestedLength: undefined
  };
  var length = parseInt(getResponseHeader("Content-Length"), 10);

  if (!Number.isInteger(length)) {
    return returnValues;
  }

  returnValues.suggestedLength = length;

  if (length <= 2 * rangeChunkSize) {
    return returnValues;
  }

  if (disableRange || !isHttp) {
    return returnValues;
  }

  if (getResponseHeader("Accept-Ranges") !== "bytes") {
    return returnValues;
  }

  var contentEncoding = getResponseHeader("Content-Encoding") || "identity";

  if (contentEncoding !== "identity") {
    return returnValues;
  }

  returnValues.allowRangeRequests = true;
  return returnValues;
}

function extractFilenameFromHeader(getResponseHeader) {
  var contentDisposition = getResponseHeader("Content-Disposition");

  if (contentDisposition) {
    var filename = (0, _content_disposition.getFilenameFromContentDispositionHeader)(contentDisposition);

    if (filename.includes("%")) {
      try {
        filename = decodeURIComponent(filename);
      } catch (ex) {}
    }

    if (/\.pdf$/i.test(filename)) {
      return filename;
    }
  }

  return null;
}

function createResponseStatusError(status, url) {
  if (status === 404 || status === 0 && url.startsWith("file:")) {
    return new _util.MissingPDFException('Missing PDF "' + url + '".');
  }

  return new _util.UnexpectedResponseException("Unexpected server response (" + status + ') while retrieving PDF "' + url + '".', status);
}

function validateResponseStatus(status) {
  return status === 200 || status === 206;
}

/***/ }),
/* 221 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getFilenameFromContentDispositionHeader = getFilenameFromContentDispositionHeader;

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function getFilenameFromContentDispositionHeader(contentDisposition) {
  var needsEncodingFixup = true;
  var tmp = toParamRegExp("filename\\*", "i").exec(contentDisposition);

  if (tmp) {
    tmp = tmp[1];
    var filename = rfc2616unquote(tmp);
    filename = unescape(filename);
    filename = rfc5987decode(filename);
    filename = rfc2047decode(filename);
    return fixupEncoding(filename);
  }

  tmp = rfc2231getparam(contentDisposition);

  if (tmp) {
    var _filename = rfc2047decode(tmp);

    return fixupEncoding(_filename);
  }

  tmp = toParamRegExp("filename", "i").exec(contentDisposition);

  if (tmp) {
    tmp = tmp[1];

    var _filename2 = rfc2616unquote(tmp);

    _filename2 = rfc2047decode(_filename2);
    return fixupEncoding(_filename2);
  }

  function toParamRegExp(attributePattern, flags) {
    return new RegExp("(?:^|;)\\s*" + attributePattern + "\\s*=\\s*" + "(" + '[^";\\s][^;\\s]*' + "|" + '"(?:[^"\\\\]|\\\\"?)+"?' + ")", flags);
  }

  function textdecode(encoding, value) {
    if (encoding) {
      if (!/^[\x00-\xFF]+$/.test(value)) {
        return value;
      }

      try {
        var decoder = new TextDecoder(encoding, {
          fatal: true
        });
        var bytes = Array.from(value, function (ch) {
          return ch.charCodeAt(0) & 0xff;
        });
        value = decoder.decode(new Uint8Array(bytes));
        needsEncodingFixup = false;
      } catch (e) {
        if (/^utf-?8$/i.test(encoding)) {
          try {
            value = decodeURIComponent(escape(value));
            needsEncodingFixup = false;
          } catch (err) {}
        }
      }
    }

    return value;
  }

  function fixupEncoding(value) {
    if (needsEncodingFixup && /[\x80-\xff]/.test(value)) {
      value = textdecode("utf-8", value);

      if (needsEncodingFixup) {
        value = textdecode("iso-8859-1", value);
      }
    }

    return value;
  }

  function rfc2231getparam(contentDispositionStr) {
    var matches = [];
    var match;
    var iter = toParamRegExp("filename\\*((?!0\\d)\\d+)(\\*?)", "ig");

    while ((match = iter.exec(contentDispositionStr)) !== null) {
      var _match = match,
          _match2 = _slicedToArray(_match, 4),
          n = _match2[1],
          quot = _match2[2],
          part = _match2[3];

      n = parseInt(n, 10);

      if (n in matches) {
        if (n === 0) {
          break;
        }

        continue;
      }

      matches[n] = [quot, part];
    }

    var parts = [];

    for (var _n2 = 0; _n2 < matches.length; ++_n2) {
      if (!(_n2 in matches)) {
        break;
      }

      var _matches$_n = _slicedToArray(matches[_n2], 2),
          _quot = _matches$_n[0],
          _part = _matches$_n[1];

      _part = rfc2616unquote(_part);

      if (_quot) {
        _part = unescape(_part);

        if (_n2 === 0) {
          _part = rfc5987decode(_part);
        }
      }

      parts.push(_part);
    }

    return parts.join("");
  }

  function rfc2616unquote(value) {
    if (value.startsWith('"')) {
      var parts = value.slice(1).split('\\"');

      for (var i = 0; i < parts.length; ++i) {
        var quotindex = parts[i].indexOf('"');

        if (quotindex !== -1) {
          parts[i] = parts[i].slice(0, quotindex);
          parts.length = i + 1;
        }

        parts[i] = parts[i].replace(/\\(.)/g, "$1");
      }

      value = parts.join('"');
    }

    return value;
  }

  function rfc5987decode(extvalue) {
    var encodingend = extvalue.indexOf("'");

    if (encodingend === -1) {
      return extvalue;
    }

    var encoding = extvalue.slice(0, encodingend);
    var langvalue = extvalue.slice(encodingend + 1);
    var value = langvalue.replace(/^[^']*'/, "");
    return textdecode(encoding, value);
  }

  function rfc2047decode(value) {
    if (!value.startsWith("=?") || /[\x00-\x19\x80-\xff]/.test(value)) {
      return value;
    }

    return value.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g, function (matches, charset, encoding, text) {
      if (encoding === "q" || encoding === "Q") {
        text = text.replace(/_/g, " ");
        text = text.replace(/=([0-9a-fA-F]{2})/g, function (match, hex) {
          return String.fromCharCode(parseInt(hex, 16));
        });
        return textdecode(charset, text);
      }

      try {
        text = atob(text);
      } catch (e) {}

      return textdecode(charset, text);
    });
  }

  return "";
}

/***/ }),
/* 222 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFNetworkStream = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

var _network_utils = __w_pdfjs_require__(220);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

;
var OK_RESPONSE = 200;
var PARTIAL_CONTENT_RESPONSE = 206;

function getArrayBuffer(xhr) {
  var data = xhr.response;

  if (typeof data !== "string") {
    return data;
  }

  var array = (0, _util.stringToBytes)(data);
  return array.buffer;
}

var NetworkManager = /*#__PURE__*/function () {
  function NetworkManager(url, args) {
    _classCallCheck(this, NetworkManager);

    this.url = url;
    args = args || {};
    this.isHttp = /^https?:/i.test(url);
    this.httpHeaders = this.isHttp && args.httpHeaders || {};
    this.withCredentials = args.withCredentials || false;

    this.getXhr = args.getXhr || function NetworkManager_getXhr() {
      return new XMLHttpRequest();
    };

    this.currXhrId = 0;
    this.pendingRequests = Object.create(null);
  }

  _createClass(NetworkManager, [{
    key: "requestRange",
    value: function requestRange(begin, end, listeners) {
      var args = {
        begin: begin,
        end: end
      };

      for (var prop in listeners) {
        args[prop] = listeners[prop];
      }

      return this.request(args);
    }
  }, {
    key: "requestFull",
    value: function requestFull(listeners) {
      return this.request(listeners);
    }
  }, {
    key: "request",
    value: function request(args) {
      var xhr = this.getXhr();
      var xhrId = this.currXhrId++;
      var pendingRequest = this.pendingRequests[xhrId] = {
        xhr: xhr
      };
      xhr.open("GET", this.url);
      xhr.withCredentials = this.withCredentials;

      for (var property in this.httpHeaders) {
        var value = this.httpHeaders[property];

        if (typeof value === "undefined") {
          continue;
        }

        xhr.setRequestHeader(property, value);
      }

      if (this.isHttp && "begin" in args && "end" in args) {
        xhr.setRequestHeader("Range", "bytes=".concat(args.begin, "-").concat(args.end - 1));
        pendingRequest.expectedStatus = PARTIAL_CONTENT_RESPONSE;
      } else {
        pendingRequest.expectedStatus = OK_RESPONSE;
      }

      xhr.responseType = "arraybuffer";

      if (args.onError) {
        xhr.onerror = function (evt) {
          args.onError(xhr.status);
        };
      }

      xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
      xhr.onprogress = this.onProgress.bind(this, xhrId);
      pendingRequest.onHeadersReceived = args.onHeadersReceived;
      pendingRequest.onDone = args.onDone;
      pendingRequest.onError = args.onError;
      pendingRequest.onProgress = args.onProgress;
      xhr.send(null);
      return xhrId;
    }
  }, {
    key: "onProgress",
    value: function onProgress(xhrId, evt) {
      var pendingRequest = this.pendingRequests[xhrId];

      if (!pendingRequest) {
        return;
      }

      if (pendingRequest.onProgress) {
        pendingRequest.onProgress(evt);
      }
    }
  }, {
    key: "onStateChange",
    value: function onStateChange(xhrId, evt) {
      var pendingRequest = this.pendingRequests[xhrId];

      if (!pendingRequest) {
        return;
      }

      var xhr = pendingRequest.xhr;

      if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
        pendingRequest.onHeadersReceived();
        delete pendingRequest.onHeadersReceived;
      }

      if (xhr.readyState !== 4) {
        return;
      }

      if (!(xhrId in this.pendingRequests)) {
        return;
      }

      delete this.pendingRequests[xhrId];

      if (xhr.status === 0 && this.isHttp) {
        if (pendingRequest.onError) {
          pendingRequest.onError(xhr.status);
        }

        return;
      }

      var xhrStatus = xhr.status || OK_RESPONSE;
      var ok_response_on_range_request = xhrStatus === OK_RESPONSE && pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;

      if (!ok_response_on_range_request && xhrStatus !== pendingRequest.expectedStatus) {
        if (pendingRequest.onError) {
          pendingRequest.onError(xhr.status);
        }

        return;
      }

      var chunk = getArrayBuffer(xhr);

      if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
        var rangeHeader = xhr.getResponseHeader("Content-Range");
        var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
        pendingRequest.onDone({
          begin: parseInt(matches[1], 10),
          chunk: chunk
        });
      } else if (chunk) {
        pendingRequest.onDone({
          begin: 0,
          chunk: chunk
        });
      } else if (pendingRequest.onError) {
        pendingRequest.onError(xhr.status);
      }
    }
  }, {
    key: "getRequestXhr",
    value: function getRequestXhr(xhrId) {
      return this.pendingRequests[xhrId].xhr;
    }
  }, {
    key: "isPendingRequest",
    value: function isPendingRequest(xhrId) {
      return xhrId in this.pendingRequests;
    }
  }, {
    key: "abortRequest",
    value: function abortRequest(xhrId) {
      var xhr = this.pendingRequests[xhrId].xhr;
      delete this.pendingRequests[xhrId];
      xhr.abort();
    }
  }]);

  return NetworkManager;
}();

var PDFNetworkStream = /*#__PURE__*/function () {
  function PDFNetworkStream(source) {
    _classCallCheck(this, PDFNetworkStream);

    this._source = source;
    this._manager = new NetworkManager(source.url, {
      httpHeaders: source.httpHeaders,
      withCredentials: source.withCredentials
    });
    this._rangeChunkSize = source.rangeChunkSize;
    this._fullRequestReader = null;
    this._rangeRequestReaders = [];
  }

  _createClass(PDFNetworkStream, [{
    key: "_onRangeRequestReaderClosed",
    value: function _onRangeRequestReaderClosed(reader) {
      var i = this._rangeRequestReaders.indexOf(reader);

      if (i >= 0) {
        this._rangeRequestReaders.splice(i, 1);
      }
    }
  }, {
    key: "getFullReader",
    value: function getFullReader() {
      (0, _util.assert)(!this._fullRequestReader, "PDFNetworkStream.getFullReader can only be called once.");
      this._fullRequestReader = new PDFNetworkStreamFullRequestReader(this._manager, this._source);
      return this._fullRequestReader;
    }
  }, {
    key: "getRangeReader",
    value: function getRangeReader(begin, end) {
      var reader = new PDFNetworkStreamRangeRequestReader(this._manager, begin, end);
      reader.onClosed = this._onRangeRequestReaderClosed.bind(this);

      this._rangeRequestReaders.push(reader);

      return reader;
    }
  }, {
    key: "cancelAllRequests",
    value: function cancelAllRequests(reason) {
      if (this._fullRequestReader) {
        this._fullRequestReader.cancel(reason);
      }

      var readers = this._rangeRequestReaders.slice(0);

      readers.forEach(function (reader) {
        reader.cancel(reason);
      });
    }
  }]);

  return PDFNetworkStream;
}();

exports.PDFNetworkStream = PDFNetworkStream;

var PDFNetworkStreamFullRequestReader = /*#__PURE__*/function () {
  function PDFNetworkStreamFullRequestReader(manager, source) {
    _classCallCheck(this, PDFNetworkStreamFullRequestReader);

    this._manager = manager;
    var args = {
      onHeadersReceived: this._onHeadersReceived.bind(this),
      onDone: this._onDone.bind(this),
      onError: this._onError.bind(this),
      onProgress: this._onProgress.bind(this)
    };
    this._url = source.url;
    this._fullRequestId = manager.requestFull(args);
    this._headersReceivedCapability = (0, _util.createPromiseCapability)();
    this._disableRange = source.disableRange || false;
    this._contentLength = source.length;
    this._rangeChunkSize = source.rangeChunkSize;

    if (!this._rangeChunkSize && !this._disableRange) {
      this._disableRange = true;
    }

    this._isStreamingSupported = false;
    this._isRangeSupported = false;
    this._cachedChunks = [];
    this._requests = [];
    this._done = false;
    this._storedError = undefined;
    this._filename = null;
    this.onProgress = null;
  }

  _createClass(PDFNetworkStreamFullRequestReader, [{
    key: "_onHeadersReceived",
    value: function _onHeadersReceived() {
      var fullRequestXhrId = this._fullRequestId;

      var fullRequestXhr = this._manager.getRequestXhr(fullRequestXhrId);

      var getResponseHeader = function getResponseHeader(name) {
        return fullRequestXhr.getResponseHeader(name);
      };

      var _validateRangeRequest = (0, _network_utils.validateRangeRequestCapabilities)({
        getResponseHeader: getResponseHeader,
        isHttp: this._manager.isHttp,
        rangeChunkSize: this._rangeChunkSize,
        disableRange: this._disableRange
      }),
          allowRangeRequests = _validateRangeRequest.allowRangeRequests,
          suggestedLength = _validateRangeRequest.suggestedLength;

      if (allowRangeRequests) {
        this._isRangeSupported = true;
      }

      this._contentLength = suggestedLength || this._contentLength;
      this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader);

      if (this._isRangeSupported) {
        this._manager.abortRequest(fullRequestXhrId);
      }

      this._headersReceivedCapability.resolve();
    }
  }, {
    key: "_onDone",
    value: function _onDone(args) {
      if (args) {
        if (this._requests.length > 0) {
          var requestCapability = this._requests.shift();

          requestCapability.resolve({
            value: args.chunk,
            done: false
          });
        } else {
          this._cachedChunks.push(args.chunk);
        }
      }

      this._done = true;

      if (this._cachedChunks.length > 0) {
        return;
      }

      this._requests.forEach(function (requestCapability) {
        requestCapability.resolve({
          value: undefined,
          done: true
        });
      });

      this._requests = [];
    }
  }, {
    key: "_onError",
    value: function _onError(status) {
      var url = this._url;
      var exception = (0, _network_utils.createResponseStatusError)(status, url);
      this._storedError = exception;

      this._headersReceivedCapability.reject(exception);

      this._requests.forEach(function (requestCapability) {
        requestCapability.reject(exception);
      });

      this._requests = [];
      this._cachedChunks = [];
    }
  }, {
    key: "_onProgress",
    value: function _onProgress(data) {
      if (this.onProgress) {
        this.onProgress({
          loaded: data.loaded,
          total: data.lengthComputable ? data.total : this._contentLength
        });
      }
    }
  }, {
    key: "read",
    value: function () {
      var _read = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var chunk, requestCapability;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                if (!this._storedError) {
                  _context.next = 2;
                  break;
                }

                throw this._storedError;

              case 2:
                if (!(this._cachedChunks.length > 0)) {
                  _context.next = 5;
                  break;
                }

                chunk = this._cachedChunks.shift();
                return _context.abrupt("return", {
                  value: chunk,
                  done: false
                });

              case 5:
                if (!this._done) {
                  _context.next = 7;
                  break;
                }

                return _context.abrupt("return", {
                  value: undefined,
                  done: true
                });

              case 7:
                requestCapability = (0, _util.createPromiseCapability)();

                this._requests.push(requestCapability);

                return _context.abrupt("return", requestCapability.promise);

              case 10:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function read() {
        return _read.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      this._done = true;

      this._headersReceivedCapability.reject(reason);

      this._requests.forEach(function (requestCapability) {
        requestCapability.resolve({
          value: undefined,
          done: true
        });
      });

      this._requests = [];

      if (this._manager.isPendingRequest(this._fullRequestId)) {
        this._manager.abortRequest(this._fullRequestId);
      }

      this._fullRequestReader = null;
    }
  }, {
    key: "filename",
    get: function get() {
      return this._filename;
    }
  }, {
    key: "isRangeSupported",
    get: function get() {
      return this._isRangeSupported;
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return this._isStreamingSupported;
    }
  }, {
    key: "contentLength",
    get: function get() {
      return this._contentLength;
    }
  }, {
    key: "headersReady",
    get: function get() {
      return this._headersReceivedCapability.promise;
    }
  }]);

  return PDFNetworkStreamFullRequestReader;
}();

var PDFNetworkStreamRangeRequestReader = /*#__PURE__*/function () {
  function PDFNetworkStreamRangeRequestReader(manager, begin, end) {
    _classCallCheck(this, PDFNetworkStreamRangeRequestReader);

    this._manager = manager;
    var args = {
      onDone: this._onDone.bind(this),
      onProgress: this._onProgress.bind(this)
    };
    this._requestId = manager.requestRange(begin, end, args);
    this._requests = [];
    this._queuedChunk = null;
    this._done = false;
    this.onProgress = null;
    this.onClosed = null;
  }

  _createClass(PDFNetworkStreamRangeRequestReader, [{
    key: "_close",
    value: function _close() {
      if (this.onClosed) {
        this.onClosed(this);
      }
    }
  }, {
    key: "_onDone",
    value: function _onDone(data) {
      var chunk = data.chunk;

      if (this._requests.length > 0) {
        var requestCapability = this._requests.shift();

        requestCapability.resolve({
          value: chunk,
          done: false
        });
      } else {
        this._queuedChunk = chunk;
      }

      this._done = true;

      this._requests.forEach(function (requestCapability) {
        requestCapability.resolve({
          value: undefined,
          done: true
        });
      });

      this._requests = [];

      this._close();
    }
  }, {
    key: "_onProgress",
    value: function _onProgress(evt) {
      if (!this.isStreamingSupported && this.onProgress) {
        this.onProgress({
          loaded: evt.loaded
        });
      }
    }
  }, {
    key: "read",
    value: function () {
      var _read2 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
        var chunk, requestCapability;
        return _regenerator["default"].wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                if (!(this._queuedChunk !== null)) {
                  _context2.next = 4;
                  break;
                }

                chunk = this._queuedChunk;
                this._queuedChunk = null;
                return _context2.abrupt("return", {
                  value: chunk,
                  done: false
                });

              case 4:
                if (!this._done) {
                  _context2.next = 6;
                  break;
                }

                return _context2.abrupt("return", {
                  value: undefined,
                  done: true
                });

              case 6:
                requestCapability = (0, _util.createPromiseCapability)();

                this._requests.push(requestCapability);

                return _context2.abrupt("return", requestCapability.promise);

              case 9:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2, this);
      }));

      function read() {
        return _read2.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      this._done = true;

      this._requests.forEach(function (requestCapability) {
        requestCapability.resolve({
          value: undefined,
          done: true
        });
      });

      this._requests = [];

      if (this._manager.isPendingRequest(this._requestId)) {
        this._manager.abortRequest(this._requestId);
      }

      this._close();
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return false;
    }
  }]);

  return PDFNetworkStreamRangeRequestReader;
}();

/***/ }),
/* 223 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFFetchStream = void 0;

var _regenerator = _interopRequireDefault(__w_pdfjs_require__(2));

var _util = __w_pdfjs_require__(5);

var _network_utils = __w_pdfjs_require__(220);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

;

function createFetchOptions(headers, withCredentials, abortController) {
  return {
    method: "GET",
    headers: headers,
    signal: abortController && abortController.signal,
    mode: "cors",
    credentials: withCredentials ? "include" : "same-origin",
    redirect: "follow"
  };
}

function createHeaders(httpHeaders) {
  var headers = new Headers();

  for (var property in httpHeaders) {
    var value = httpHeaders[property];

    if (typeof value === "undefined") {
      continue;
    }

    headers.append(property, value);
  }

  return headers;
}

var PDFFetchStream = /*#__PURE__*/function () {
  function PDFFetchStream(source) {
    _classCallCheck(this, PDFFetchStream);

    this.source = source;
    this.isHttp = /^https?:/i.test(source.url);
    this.httpHeaders = this.isHttp && source.httpHeaders || {};
    this._fullRequestReader = null;
    this._rangeRequestReaders = [];
  }

  _createClass(PDFFetchStream, [{
    key: "getFullReader",
    value: function getFullReader() {
      (0, _util.assert)(!this._fullRequestReader, "PDFFetchStream.getFullReader can only be called once.");
      this._fullRequestReader = new PDFFetchStreamReader(this);
      return this._fullRequestReader;
    }
  }, {
    key: "getRangeReader",
    value: function getRangeReader(begin, end) {
      if (end <= this._progressiveDataLength) {
        return null;
      }

      var reader = new PDFFetchStreamRangeReader(this, begin, end);

      this._rangeRequestReaders.push(reader);

      return reader;
    }
  }, {
    key: "cancelAllRequests",
    value: function cancelAllRequests(reason) {
      if (this._fullRequestReader) {
        this._fullRequestReader.cancel(reason);
      }

      var readers = this._rangeRequestReaders.slice(0);

      readers.forEach(function (reader) {
        reader.cancel(reason);
      });
    }
  }, {
    key: "_progressiveDataLength",
    get: function get() {
      return this._fullRequestReader ? this._fullRequestReader._loaded : 0;
    }
  }]);

  return PDFFetchStream;
}();

exports.PDFFetchStream = PDFFetchStream;

var PDFFetchStreamReader = /*#__PURE__*/function () {
  function PDFFetchStreamReader(stream) {
    var _this = this;

    _classCallCheck(this, PDFFetchStreamReader);

    this._stream = stream;
    this._reader = null;
    this._loaded = 0;
    this._filename = null;
    var source = stream.source;
    this._withCredentials = source.withCredentials || false;
    this._contentLength = source.length;
    this._headersCapability = (0, _util.createPromiseCapability)();
    this._disableRange = source.disableRange || false;
    this._rangeChunkSize = source.rangeChunkSize;

    if (!this._rangeChunkSize && !this._disableRange) {
      this._disableRange = true;
    }

    if (typeof AbortController !== "undefined") {
      this._abortController = new AbortController();
    }

    this._isStreamingSupported = !source.disableStream;
    this._isRangeSupported = !source.disableRange;
    this._headers = createHeaders(this._stream.httpHeaders);
    var url = source.url;
    fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then(function (response) {
      if (!(0, _network_utils.validateResponseStatus)(response.status)) {
        throw (0, _network_utils.createResponseStatusError)(response.status, url);
      }

      _this._reader = response.body.getReader();

      _this._headersCapability.resolve();

      var getResponseHeader = function getResponseHeader(name) {
        return response.headers.get(name);
      };

      var _validateRangeRequest = (0, _network_utils.validateRangeRequestCapabilities)({
        getResponseHeader: getResponseHeader,
        isHttp: _this._stream.isHttp,
        rangeChunkSize: _this._rangeChunkSize,
        disableRange: _this._disableRange
      }),
          allowRangeRequests = _validateRangeRequest.allowRangeRequests,
          suggestedLength = _validateRangeRequest.suggestedLength;

      _this._isRangeSupported = allowRangeRequests;
      _this._contentLength = suggestedLength || _this._contentLength;
      _this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader);

      if (!_this._isStreamingSupported && _this._isRangeSupported) {
        _this.cancel(new _util.AbortException("Streaming is disabled."));
      }
    })["catch"](this._headersCapability.reject);
    this.onProgress = null;
  }

  _createClass(PDFFetchStreamReader, [{
    key: "read",
    value: function () {
      var _read = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var _yield$this$_reader$r, value, done, buffer;

        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return this._headersCapability.promise;

              case 2:
                _context.next = 4;
                return this._reader.read();

              case 4:
                _yield$this$_reader$r = _context.sent;
                value = _yield$this$_reader$r.value;
                done = _yield$this$_reader$r.done;

                if (!done) {
                  _context.next = 9;
                  break;
                }

                return _context.abrupt("return", {
                  value: value,
                  done: done
                });

              case 9:
                this._loaded += value.byteLength;

                if (this.onProgress) {
                  this.onProgress({
                    loaded: this._loaded,
                    total: this._contentLength
                  });
                }

                buffer = new Uint8Array(value).buffer;
                return _context.abrupt("return", {
                  value: buffer,
                  done: false
                });

              case 13:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function read() {
        return _read.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      if (this._reader) {
        this._reader.cancel(reason);
      }

      if (this._abortController) {
        this._abortController.abort();
      }
    }
  }, {
    key: "headersReady",
    get: function get() {
      return this._headersCapability.promise;
    }
  }, {
    key: "filename",
    get: function get() {
      return this._filename;
    }
  }, {
    key: "contentLength",
    get: function get() {
      return this._contentLength;
    }
  }, {
    key: "isRangeSupported",
    get: function get() {
      return this._isRangeSupported;
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return this._isStreamingSupported;
    }
  }]);

  return PDFFetchStreamReader;
}();

var PDFFetchStreamRangeReader = /*#__PURE__*/function () {
  function PDFFetchStreamRangeReader(stream, begin, end) {
    var _this2 = this;

    _classCallCheck(this, PDFFetchStreamRangeReader);

    this._stream = stream;
    this._reader = null;
    this._loaded = 0;
    var source = stream.source;
    this._withCredentials = source.withCredentials || false;
    this._readCapability = (0, _util.createPromiseCapability)();
    this._isStreamingSupported = !source.disableStream;

    if (typeof AbortController !== "undefined") {
      this._abortController = new AbortController();
    }

    this._headers = createHeaders(this._stream.httpHeaders);

    this._headers.append("Range", "bytes=".concat(begin, "-").concat(end - 1));

    var url = source.url;
    fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then(function (response) {
      if (!(0, _network_utils.validateResponseStatus)(response.status)) {
        throw (0, _network_utils.createResponseStatusError)(response.status, url);
      }

      _this2._readCapability.resolve();

      _this2._reader = response.body.getReader();
    })["catch"](function (reason) {
      if (reason && reason.name === "AbortError") {
        return;
      }

      throw reason;
    });
    this.onProgress = null;
  }

  _createClass(PDFFetchStreamRangeReader, [{
    key: "read",
    value: function () {
      var _read2 = _asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
        var _yield$this$_reader$r2, value, done, buffer;

        return _regenerator["default"].wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.next = 2;
                return this._readCapability.promise;

              case 2:
                _context2.next = 4;
                return this._reader.read();

              case 4:
                _yield$this$_reader$r2 = _context2.sent;
                value = _yield$this$_reader$r2.value;
                done = _yield$this$_reader$r2.done;

                if (!done) {
                  _context2.next = 9;
                  break;
                }

                return _context2.abrupt("return", {
                  value: value,
                  done: done
                });

              case 9:
                this._loaded += value.byteLength;

                if (this.onProgress) {
                  this.onProgress({
                    loaded: this._loaded
                  });
                }

                buffer = new Uint8Array(value).buffer;
                return _context2.abrupt("return", {
                  value: buffer,
                  done: false
                });

              case 13:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2, this);
      }));

      function read() {
        return _read2.apply(this, arguments);
      }

      return read;
    }()
  }, {
    key: "cancel",
    value: function cancel(reason) {
      if (this._reader) {
        this._reader.cancel(reason);
      }

      if (this._abortController) {
        this._abortController.abort();
      }
    }
  }, {
    key: "isStreamingSupported",
    get: function get() {
      return this._isStreamingSupported;
    }
  }]);

  return PDFFetchStreamRangeReader;
}();

/***/ })
/******/ ]);
});
//# sourceMappingURL=pdf.js.map
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(77).Buffer, __webpack_require__(47), __webpack_require__(50)))/* (ignored) *//* (ignored) *//* (ignored) *//* (ignored) *//* (ignored) *//* (ignored) */__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_common_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(446);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_common_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_common_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_common_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_common_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2750b118_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_common_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1044);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2609)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2750b118"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_common_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2750b118_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_common_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2750b118_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_common_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2610);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7a82f56a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-common .wrap[data-v-2750b118]{padding:.6rem .8rem 2.9rem}.course-common .wrap .text-box textarea[data-v-2750b118]{width:100%;border:none;background:#f4f5f6;border-radius:.2rem;padding:.4rem;min-height:6rem}.course-common .wrap .upImg[data-v-2750b118]{margin-top:.6rem}.course-common .wrap .upImg .upload-box[data-v-2750b118],.course-common .wrap .upImg[data-v-2750b118]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-common .wrap .upImg .upload-box[data-v-2750b118]{position:relative;width:4rem;color:#666;font:14px/1 PingFangSC-Regular}.course-common .wrap .upImg .upload-box>img[data-v-2750b118]{width:.8rem;height:.8rem;margin-right:.4rem}.course-common .wrap .upImg .upload-box input[data-v-2750b118]{position:absolute;width:4rem;height:1rem;z-index:10;left:0;top:0;opacity:0}.course-common .wrap .upImg .sync[data-v-2750b118]{margin-left:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.course-common .wrap .upImg .sync .check[data-v-2750b118]{width:.7rem;height:.7rem;border-radius:.1rem;border:1px solid #d6d7d8;margin-right:.4rem}.course-common .wrap .upImg .sync img[data-v-2750b118]{width:.7rem;height:.7rem;border-radius:.1rem;margin-right:.4rem}.course-common .wrap .img-box[data-v-2750b118]{margin-top:1.2rem;overflow:hidden}.course-common .wrap .img-box .img-item[data-v-2750b118]{width:3.7rem;height:3.7rem;border-radius:.2rem;margin-right:.8rem;margin-bottom:.4rem;position:relative;float:left}.course-common .wrap .img-box .img-item img[data-v-2750b118]{width:100%;height:100%;border-radius:.2rem}.course-common .wrap .img-box .img-item .close[data-v-2750b118]{position:absolute;top:0;right:0;width:.8rem;height:.8rem;background:url(" + escape(__webpack_require__(801)) + ") no-repeat;background-size:100% 100%}.course-common .sub-box[data-v-2750b118]{position:fixed;bottom:0;left:0;width:100%;padding:.3rem .8rem;background:#fff;border-top:1px solid #eee}.course-common .sub-box>div[data-v-2750b118]{background:#177afa;border-radius:.3rem;text-align:center;color:#fff;font:16px/2.3rem PingFangSC-Regular}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _toast.default.name, _toast.default),
  props: {
    type: {
      type: Number,
      default: 1
    }
  },
  data: function data() {
    return {
      bucketUrl: '',
      token: '',
      imgList: [],
      des: '',
      syncToCommunity: 1
    };
  },
  created: function created() {},
  methods: {
    /*
      * 获取七牛云token
    */
    getQnToken: function getQnToken() {
      var _this = this;
      this._Util.post(this._Api.appGetQNToken, {}, function (data) {
        _this.bucketUrl = data.bucketUrl;
        _this.token = data.token;
      }, function () {}, this);
    },
    /** 
     * 当弹窗关闭清空数据 
     */
    clearCont: function clearCont() {
      this.bucketUrl = '';
      this.imgList = [];
      this.des = '';
      this.syncToCommunity = 1;
    },
    /** 
     * 删除指定索引图片 
     */
    delImg: function delImg(i) {
      this.imgList.splice(i, 1);
    },
    /** 
     * 切换同步到社区的状态 
     */
    toggleSyncToCommunity: function toggleSyncToCommunity() {
      this.syncToCommunity = this.syncToCommunity === 0 ? 1 : 0;
    },
    /** 
     * 提交提问及心得 
     */
    subCourse: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(userId, status, index) {
        var _this2 = this;
        var api, params;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (this.des.trim()) {
                _context.next = 1;
                break;
              }
              (0, _toast.default)({
                message: '请输入内容',
                duration: 1500
              });
              return _context.abrupt("return");
            case 1:
              api = '';
              params = {};
              if (this.type === 1) {
                api = 'ADD_COURSE_QA';
                params = {
                  questionContent: this.des,
                  courseId: this.$route.query.courseId,
                  questionPic: this.imgList.join(',')
                };
              } else {
                api = 'ADD_COURSE_EXP';
                params = {
                  content: this.des,
                  courseId: this.$route.query.courseId,
                  pictureUrl: this.imgList.join(','),
                  syncToCommunity: this.syncToCommunity
                };
              }
              this._Util.post(this._Api.COURSE4[api], params, function (data) {
                if (_this2.type === 1) {
                  _this2.$emit('addQaSuccess');
                } else {
                  _this2.$emit('addExpSuccess');
                }
              }, function () {}, this);
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2, _x3) {
        return _ref.apply(this, arguments);
      };
    }()),
    /** 
     * 图片上传成功
     */
    upload: function upload(e) {
      var that = this;
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        // 写提问
        if (this.type === 1) {
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          var url = '';
          if (that._Util.isIOS) {
            url = 'https://upload.qbox.me';
          } else {
            url = 'https://upload.qiniup.com';
          }
          $.ajax({
            url: url,
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgList.push(that.bucketUrl + res.key);
          }).fail(function (err) {
            console.log(err);
            _mintUi.Indicator.close();
            (0, _toast.default)({
              message: '上传失败，请重新上传',
              duration: 1000
            });
          });
          return;
        }
        var userInfo = JSON.parse(localStorage.getItem('userInfo')) || that.$store.state.userInfo;
        var name;
        if (userInfo.uname) {
          name = '@' + userInfo.uname;
        } else if (userInfo.userName) {
          name = '@' + userInfo.userName;
        } else {
          name = '@用户' + userInfo.userId;
        }
        that._Util.watermarkImg(e, {
          txt: name,
          direction: 'Center',
          isLogo: true,
          model: 'community'
        }, function (fileData) {
          var formData = new FormData();
          formData.append('file', fileData);
          formData.append('token', that.token);
          var url = '';
          if (that._Util.isIOS) {
            url = 'https://upload.qbox.me';
          } else {
            url = 'https://upload.qiniup.com';
          }
          $.ajax({
            url: url,
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgList.push(that.bucketUrl + res.key);
          }).fail(function () {
            _mintUi.Indicator.close();
            (0, _toast.default)({
              message: '上传失败，请重新上传',
              duration: 1000
            });
          });
        });
      }
    },
    /** 
     * 浏览单张图片 
    */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"course-common"},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"text-box"},[_c('textarea-autosize',{directives:[{name:"fixIos12Input",rawName:"v-fixIos12Input"}],ref:"textarea",staticClass:"textarea",attrs:{"id":"textarea","placeholder":"请输入你的问题"},model:{value:(_vm.des),callback:function ($$v) {_vm.des=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:"des"}})],1),_vm._v(" "),_c('div',{staticClass:"upImg"},[_c('div',{staticClass:"upload-box"},[_c('input',{staticStyle:{"width":"100%","height":"100%"},attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}}),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(2611),"alt":""}}),_vm._v("添加图片\n      ")]),_vm._v(" "),(_vm.type === 2)?_c('div',{staticClass:"sync",on:{"click":function($event){$event.stopPropagation();return _vm.toggleSyncToCommunity.apply(null, arguments)}}},[(_vm.syncToCommunity === 0)?_c('div',{staticClass:"check"}):_vm._e(),_vm._v(" "),(_vm.syncToCommunity === 1)?_c('img',{attrs:{"src":__webpack_require__(1418),"alt":"选中"}}):_vm._e(),_vm._v("\n        同步到社区\n      ")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"img-box"},_vm._l((_vm.imgList),function(item,index){return _c('div',{key:index,staticClass:"img-item"},[_c('div',{staticClass:"close",on:{"click":function($event){return _vm.delImg(index)}}}),_vm._v(" "),_c('img',{attrs:{"src":item,"alt":"courseImg"},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item, _vm.imgList, index)}}})])}),0)]),_vm._v(" "),_c('div',{staticClass:"sub-box",on:{"click":_vm.subCourse}},[_c('div',[_vm._v("提交")])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/msg_tool_2.cee2a7b.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(447);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1dbf94bc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1045);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2613)
  __webpack_require__(2615)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1dbf94bc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1dbf94bc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1dbf94bc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_experienList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2614);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6b443e14", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".openArticle{color:#177afa;font:17px/1.2rem PingFangSC-Regular;margin-top:.4rem}.specail .openArticle{font-size:.9rem}body.modal-open{position:fixed;width:100%}.outContainer .itemWrap .content p{font-family:PingFangSC-Regular;font-size:.9rem;color:#333;white-space:pre-wrap;line-height:1.25rem;padding:0!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2616);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6d9084e8", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-1dbf94bc]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.outContainer[data-v-1dbf94bc]{position:relative}.outContainer .tabBox[data-v-1dbf94bc]{padding-left:.4rem;height:1.6rem;margin-bottom:.7rem;position:relative;width:100%;top:0}.outContainer .tabBox .topic em[data-v-1dbf94bc]{width:2.1rem;height:.7rem;line-height:.7rem;text-align:center;font-size:.5rem;color:#fff;background:#ff3f3f;border-radius:.4rem .4rem .4rem 0;position:absolute;left:1.7rem;top:0}.outContainer .tabBox>div[data-v-1dbf94bc]{float:left;width:3.1rem;height:1.6rem;line-height:1.7rem;font-family:PingFangSC-Regular;font-size:.75rem;color:#999;position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;background:#fff;text-align:center;border-radius:1.2rem;box-shadow:0 .2rem .4rem 0 hsla(0,0%,75%,.2);margin-right:.6rem}.outContainer .tabBox>.activeTab[data-v-1dbf94bc]{font-family:PingFangSC-Semibold;background:#177afa;box-shadow:0 .2rem .4rem 0 rgba(23,122,250,.25);color:#fff;font-weight:700}.outContainer .tabBox .searchBtn[data-v-1dbf94bc]{width:3.2rem;padding-left:.8rem;float:right;font-size:.65rem;color:#999;font-family:PingFangSC-Regular}.outContainer .tabBox .searchBtn img[data-v-1dbf94bc]{width:.8rem;position:absolute;top:50%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .itemList[data-v-1dbf94bc]{background-color:#f3f4f5;margin-top:.2rem}.outContainer .itemList .itemWrap[data-v-1dbf94bc]{margin:0 0 .05rem}.outContainer .itemList .itemWrap.no-margin[data-v-1dbf94bc],.outContainer .itemList .itemWrap[data-v-1dbf94bc]:first-child{margin:0}.outContainer .itemList .item[data-v-1dbf94bc]{width:100%;overflow-x:hidden;background-color:#fff;padding:.8rem .8rem .6rem;position:relative}.outContainer .itemList .item.browse[data-v-1dbf94bc]{background-color:#f3f4f5;padding:.8rem 0 .8rem .6rem}.outContainer .itemList .item.browse .tit-card[data-v-1dbf94bc]{padding-right:.8rem}.outContainer .itemList .item.nice-creater[data-v-1dbf94bc]{background-color:#f3f4f5;padding:.8rem 0 .8rem .6rem}.outContainer .itemList .item.nice-creater .tit-card[data-v-1dbf94bc]{padding-right:.8rem}.outContainer .itemList .item.item1[data-v-1dbf94bc]{background-color:#f4f5f6;padding:.8rem}.outContainer .itemList .item .list-box1 .list-1[data-v-1dbf94bc]{float:left;width:48.8%;background:#fff;border-radius:.3rem;box-shadow:0 4px 12px 0 rgba(164,171,191,.2);padding:.55rem .5rem;margin-top:.4rem;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-right:2.4%}.outContainer .itemList .item .list-box1 .list-1[data-v-1dbf94bc]:first-of-type,.outContainer .itemList .item .list-box1 .list-1[data-v-1dbf94bc]:nth-of-type(2){margin-top:0}.outContainer .itemList .item .list-box1 .list-1[data-v-1dbf94bc]:nth-of-type(2n){margin-right:0}.outContainer .itemList .item .list-box1 .list-1 p[data-v-1dbf94bc]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:16px/1.1rem PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem}.outContainer .itemList .item .list-box1 .list-1 .icon1[data-v-1dbf94bc]{background:#fb5f5f;width:.8rem;height:.8rem;color:#fff;text-align:center;font:10px/.8rem PingFangSC-Regular;border-radius:.15rem}.outContainer .itemList .item .list-box1 .list-1 .icon2[data-v-1dbf94bc]{background:#ff8447;width:.8rem;height:.8rem;color:#fff;text-align:center;font:10px/.8rem PingFangSC-Regular;border-radius:.15rem}.outContainer .itemList .item .list-box1 .list-1.moreplat[data-v-1dbf94bc]{color:#177afa;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;-webkit-box-pack:normal;-webkit-justify-content:normal;-ms-flex-pack:normal;justify-content:normal;font:16px/1rem PingFangSC-Regular;box-shadow:0 4px 12px 0 rgba(164,171,191,.2)}.outContainer .itemList .item .list-box1 .list-1.moreplat img[data-v-1dbf94bc]{width:5px;height:8px;margin-left:4px}.outContainer .itemList .item .list-2[data-v-1dbf94bc]{overflow-x:auto;font-size:0}.outContainer .itemList .item .list-2[data-v-1dbf94bc]::-webkit-scrollbar{display:none}.outContainer .itemList .item .list-2 ul[data-v-1dbf94bc]{font-size:0;display:inline-block;white-space:nowrap}.outContainer .itemList .item .list-2 ul li[data-v-1dbf94bc]{display:inline-block;margin-right:1rem;text-align:center}.outContainer .itemList .item .list-2 ul li[data-v-1dbf94bc]:last-child{margin-right:.6rem}.outContainer .itemList .item .list-2 ul li img[data-v-1dbf94bc]{width:2.4rem;height:2.4rem;border-radius:.4rem}.outContainer .itemList .item .list-2 ul li .user-name[data-v-1dbf94bc]{margin-top:.25rem;width:2.8rem;color:#333;font:13px/1 PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .itemList .item .list3-wrap[data-v-1dbf94bc]{background:#fff;border-radius:.3rem;box-shadow:0 4px 12px 0 rgba(164,171,191,.2);padding:0 .6rem}.outContainer .itemList .item .list3-wrap .list-3[data-v-1dbf94bc]{padding:.6rem 0;color:#333;font:16px/1.1rem PingFangSC-Regular;position:relative}.outContainer .itemList .item .list3-wrap .list-3[data-v-1dbf94bc]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.outContainer .itemList .item .follow[data-v-1dbf94bc]{position:absolute;top:1.15rem;right:.8rem;width:2.5rem;height:1.1rem;border:1px solid #549efe;border-radius:.7rem;text-align:center;color:#549efe;font:12px/1rem PingFangSC-Regular}.outContainer .itemList .item .follow>img[data-v-1dbf94bc]{width:.4rem;margin-top:.33rem;margin-right:.1rem}.outContainer .itemList .item .followed[data-v-1dbf94bc]{background:#f2f2f2;border:1px solid #f2f2f2;color:#999}.outContainer .itemList .item .userInfo[data-v-1dbf94bc]{position:relative}.outContainer .itemList .item .userInfo>img[data-v-1dbf94bc]{width:1.8rem;height:1.8rem;border-radius:.2rem;float:left;position:relative}.outContainer .itemList .item .userInfo>.crown[data-v-1dbf94bc]{display:inline-block;width:.6rem;height:.6rem;background:url(" + escape(__webpack_require__(285)) + ") no-repeat 0 0;background-size:100% 100%;position:absolute;left:1rem;top:1.15rem}.outContainer .itemList .item .userInfo .rightContent[data-v-1dbf94bc]{margin-left:2.4rem}.outContainer .itemList .item .userInfo .rightContent .uname[data-v-1dbf94bc]{font-family:PingFangSC-Regular;font-size:.7rem;color:#333;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.outContainer .itemList .item .userInfo .rightContent .uname>span[data-v-1dbf94bc]{color:#47628f;font:15px/1.05rem PingFangSC-Regular}.outContainer .itemList .item .userInfo .rightContent .uname .crown[data-v-1dbf94bc]{width:.8rem;height:.8rem;margin-left:.3rem;position:relative;pointer-events:none;top:-.05rem}.outContainer .itemList .item .userInfo .rightContent .uname .medal[data-v-1dbf94bc]{height:.8rem;margin-right:.2rem;margin-left:.3rem;position:relative;pointer-events:none}.outContainer .itemList .item .userInfo .rightContent .uarea[data-v-1dbf94bc]{color:#999;font:11px/.75rem PingFangSC-Regular;width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative}.outContainer .itemList .item .userInfo .rightContent .uarea>span[data-v-1dbf94bc]{color:#999;font:11px/.75rem PingFangSC-Regular}.outContainer .itemList .item .cont-wrap[data-v-1dbf94bc]{padding-left:2.4rem;margin-top:.4rem}.outContainer .itemList .item .cont-wrap.has-tit[data-v-1dbf94bc]{margin-top:.6rem}.outContainer .itemList .item .articleTitle[data-v-1dbf94bc]{color:#000;font:700 17px/1.2rem PingFangSC-Semibold}.outContainer .itemList .item .content[data-v-1dbf94bc]{color:#000;white-space:pre-wrap;margin-top:.4rem;font:17px/1.4rem PingFangSC-Regular}.outContainer .itemList .item .singleImg[data-v-1dbf94bc]{margin-top:.4rem}.outContainer .itemList .item .singleImg>img[data-v-1dbf94bc]{width:6.75rem;height:9rem;object-fit:cover;object-position:50% 50%;border-radius:.2rem}.outContainer .itemList .item .imgList[data-v-1dbf94bc]{margin-top:.4rem;overflow:hidden}.outContainer .itemList .item .imgList>img[data-v-1dbf94bc]{float:left;border-radius:.2rem;margin-right:.3rem;margin-top:.15rem;width:4.4rem;height:4.4rem;object-fit:cover;object-position:50% 50%}.outContainer .itemList .item .imgList>img[data-v-1dbf94bc]:nth-of-type(3n){margin-right:0}.outContainer .itemList .item .ask-tit[data-v-1dbf94bc]{background:#f8f8f8;position:relative;border-radius:.4rem;margin-top:.4rem;font-size:.8rem;color:#333;padding:.6rem .5rem}.outContainer .itemList .item .ask-tit b[data-v-1dbf94bc]{position:relative;top:-.05rem;display:inline-block;margin-right:.1rem;width:.9rem;height:.9rem;text-align:center;background:#25bf93;border-radius:.1rem;color:#fff;font:11px/.9rem PingFangSC-Regular}.outContainer .itemList .item .ask-tit>span[data-v-1dbf94bc]{display:inline;color:#333;font:16px/1.1rem PingFangSC-Regular}.outContainer .itemList .item .ask-tit .answer[data-v-1dbf94bc]{margin-top:.4rem}.outContainer .itemList .item .ask-tit .answer span[data-v-1dbf94bc]{color:#ff3f3f;font:12px/.8rem PingFangSC-Regular}.outContainer .itemList .item .ask-tit .answer span img[data-v-1dbf94bc]{width:.8rem;height:.8rem;position:relative;top:.1rem}.outContainer .itemList .item .ask-tit .answer .toAns[data-v-1dbf94bc]{margin-top:.6rem;font-size:.7rem;font-family:PingFangSC-Semibold;font-weight:600;color:#177afa;text-align:center;width:100%;height:1.8rem;line-height:1.8rem;background:#e6efff;border-radius:1rem}.outContainer .itemList .item .ask-tit .answer .toAns img[data-v-1dbf94bc]{width:1rem;margin-top:.35rem}.outContainer .itemList .item .videoFrame[data-v-1dbf94bc]{margin-top:.4rem;overflow:hidden}.outContainer .itemList .item .videoFrame>div[data-v-1dbf94bc]{position:relative;float:left}.outContainer .itemList .item .videoFrame>div img[data-v-1dbf94bc]{display:block;width:6.75rem;height:9rem;object-fit:cover;object-position:50% 50%;border-radius:.2rem;pointer-events:none}.outContainer .itemList .item .videoFrame>div[data-v-1dbf94bc]:after{content:\"\";width:2rem;height:2rem;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-image:url(" + escape(__webpack_require__(208)) + ");background-size:100%;background-repeat:no-repeat}.outContainer .itemList .item .plateNameContainer[data-v-1dbf94bc]{margin-top:.4rem}.outContainer .itemList .item .plateNameContainer .plateName[data-v-1dbf94bc]{color:#72849d;font:12px/.8rem PingFangSC-Regular;text-align:left;display:inline-block;padding:0 .4rem;height:20px;line-height:20px;background-color:#f3f4f9;border-radius:.5rem}.outContainer .itemList .item .plateNameContainer .plateName>img[data-v-1dbf94bc]{width:.6rem;height:.6rem;vertical-align:middle;position:relative;left:0;top:-1px;margin-right:.2rem;pointer-events:none}.outContainer .itemList .item .plateNameContainer .plateName .hot-tip[data-v-1dbf94bc]{display:inline;margin-left:.3rem;color:#ff730e;font:12px/.8rem PingFangSC-Regular}.outContainer .itemList .item .adInArticle[data-v-1dbf94bc]{width:100%;margin-top:.8rem;background-color:#fff}.outContainer .itemList .item .adInArticle>div[data-v-1dbf94bc]{min-height:3rem;padding-top:.5rem;padding-bottom:.5rem;background:#f2f2f2;border-radius:.1rem;position:relative}.outContainer .itemList .item .adInArticle>div>img[data-v-1dbf94bc]{position:absolute;top:50%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.2rem;height:2.2rem;pointer-events:none}.outContainer .itemList .item .adInArticle>div>p[data-v-1dbf94bc]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1rem;padding-right:3.4rem;padding-left:3rem}.outContainer .itemList .item .adInArticle>div>div[data-v-1dbf94bc]{width:2.4rem;height:1.2rem;line-height:1.2rem;text-align:center;background:#377ee1;border-radius:.05rem;border:.03rem solid #377ee1;position:absolute;top:50%;right:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#f2f2f2}.outContainer .itemList .item .toolContainer[data-v-1dbf94bc]{position:relative;margin-top:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:right}.outContainer .itemList .item .toolContainer>div[data-v-1dbf94bc]{color:#999;font:13px/1 PingFangSC-Regular;position:relative}.outContainer .itemList .item .toolContainer>div.comment[data-v-1dbf94bc]{margin-left:3.6rem}.outContainer .itemList .item .toolContainer>div>img[data-v-1dbf94bc]{width:.8rem;height:.8rem;vertical-align:middle;margin-right:.3rem;position:relative;left:0}.outContainer .itemList .item .toolContainer>div .hotArea[data-v-1dbf94bc]{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:70%;height:150%;opacity:.3}.outContainer .itemList .item .toolContainer>.other[data-v-1dbf94bc]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:100%;width:1rem;height:1rem}.outContainer .itemList .item .toolContainer>.other>img[data-v-1dbf94bc]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;height:100%;pointer-events:none}.outContainer .itemList .item .toolContainer>.del[data-v-1dbf94bc]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1rem;height:1rem}.outContainer .itemList .item .toolContainer>.del>img[data-v-1dbf94bc]{position:absolute;top:48%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;height:100%;pointer-events:none}.outContainer .itemList .item .toolContainer>.share[data-v-1dbf94bc]{position:relative;margin-left:3rem}.outContainer .itemList .item .toolContainer>.share .shareContainer[data-v-1dbf94bc]{position:absolute;z-index:1401;bottom:130%;right:0;width:8.9rem;height:4.425rem;background-color:#fff;border-radius:2px;padding:0 .8rem}.outContainer .itemList .item .toolContainer>.share .shareContainer>div[data-v-1dbf94bc]{height:2.2125rem;line-height:2.2125rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .itemList .item .toolContainer>.share .shareContainer>div>img[data-v-1dbf94bc]{width:1rem;height:1rem;vertical-align:middle;position:relative;left:0;top:-2px;margin-right:.5rem;pointer-events:none}.outContainer .itemList .item .toolContainer>.share .shareContainer>div[data-v-1dbf94bc]:first-of-type{border-bottom:1px solid #e0e0e0}.outContainer .itemList .item .toolContainer>.share .shareContainer[data-v-1dbf94bc]:after{content:\"\";position:absolute;bottom:-.75rem;right:.5rem;width:0;height:0;border:.5rem solid transparent;border-top-color:#fff}.outContainer .itemList .item .articleOperation>div[data-v-1dbf94bc]{margin:.8rem 0 0;position:relative;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.outContainer .itemList .item .articleOperation>div>div[data-v-1dbf94bc]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:.8rem}.outContainer .itemList .item .articleOperation>div>div>div[data-v-1dbf94bc]{display:inline-block;width:100%;height:2rem;line-height:2rem;text-align:center;background:#e6efff;border-radius:1rem;box-sizing:border-box;font-family:PingFangSC-Regular;font-size:.8rem;color:#177afa}.outContainer .itemList .item .articleOperation>div>div[data-v-1dbf94bc]:last-child{margin-right:0}.outContainer .itemList .item .articleOperation>div>div:last-child div[data-v-1dbf94bc]{color:#fff;background:#177afa}.outContainer .itemList .item .commentSelection[data-v-1dbf94bc]{margin-top:.6rem;padding:.15rem .5rem .4rem;background:#f3f4f5;border-radius:.2rem}.outContainer .itemList .item .commentSelection>div .comments[data-v-1dbf94bc]{overflow:hidden;padding-top:.1rem}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment[data-v-1dbf94bc]{font-size:.65rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;padding-right:2rem;margin-top:.2rem;position:relative}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment>span[data-v-1dbf94bc]{display:inline;font-size:.65rem;font-family:PingFangSC-Regular}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment>.name[data-v-1dbf94bc]{font-family:PingFangSC-Semibold;color:#377ee1;font-weight:700}.outContainer .itemList .item .commentSelection>div .comments>p.adInComment>.clickBtn[data-v-1dbf94bc]{position:absolute;top:50%;right:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1.6rem;height:.8rem;text-align:center;line-height:.8rem;border-radius:.05rem;border:.03rem solid #377ee1;color:#377ee1;font-size:.5rem;font-family:PingFangSC-Regular;font-weight:400}.outContainer .itemList .item .commentSelection>div .comments>p[data-v-1dbf94bc]{color:#151515;font:13px/1 PingFangSC-Regular;padding-top:.25rem;font-size:0}.outContainer .itemList .item .commentSelection>div .comments>p>span[data-v-1dbf94bc]{display:inline;color:#151515;font:13px/1 PingFangSC-Regular}.outContainer .itemList .item .commentSelection>div .comments>p>span.name[data-v-1dbf94bc]{color:#47628f;font:700 13px/1 PingFangSC-Semibold}.outContainer .itemList .item .commentSelection>div .comments>p .hot-pl[data-v-1dbf94bc]{width:1.95rem;height:.8rem;position:relative;margin-right:.3rem;top:0}.outContainer .itemList .item .commentSelection>div .comments>p>.name[data-v-1dbf94bc]{font-family:PingFangSC-Medium;font-weight:700;color:#000;font-size:.65rem}.outContainer .itemList .item .commentSelection>div .comments>p>.imgTips[data-v-1dbf94bc]{font-family:PingFangSC-Medium;font-size:.7rem;color:#177afa}.outContainer .itemList .item .commentSelection>div .comments>p>.imgTips>img[data-v-1dbf94bc]{width:.75rem;height:.7rem;vertical-align:middle;margin-top:-.1rem;pointer-events:none}.outContainer .itemList .item .commentSelection>div .showMoreComments[data-v-1dbf94bc]{height:1rem;line-height:1rem;font-family:PingFangSC-Regular;font-size:.7rem;color:#999;margin-top:.6rem}.outContainer .itemList .ad[data-v-1dbf94bc]{width:100%;position:relative;padding:.8rem .6rem;background-color:#f4f5f6}.outContainer .itemList .ad .adWrap[data-v-1dbf94bc]{overflow:hidden}.outContainer .itemList .ad .adWrap>img[data-v-1dbf94bc]{width:100%;height:2.5rem;border-radius:.2rem}.outContainer .itemList .ad .adWrap>p[data-v-1dbf94bc]{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.125rem;float:left;width:13.5rem}.outContainer .itemList .ad .adWrap>div[data-v-1dbf94bc]{position:absolute;bottom:.8rem;right:.8rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#177afa;padding-right:.35rem}.outContainer .itemList .ad .adWrap>div img[data-v-1dbf94bc]{width:.25rem;position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .itemList .noSignArticle[data-v-1dbf94bc]{padding:.8rem}.outContainer .itemList .noSignArticle>div[data-v-1dbf94bc]{height:2.2rem;line-height:2.2rem;text-align:center;background:#f0f4fb;border-radius:1.1rem;border:1px solid #177afa;font-size:.85rem;font-family:PingFangSC-Regular;color:#177afa}.outContainer .itemList .noSignArticle>div>img[data-v-1dbf94bc]{width:1.2rem;height:1.2rem;vertical-align:sub;margin-right:.25rem;pointer-events:none;position:relative;top:.1rem}.outContainer .shareMask[data-v-1dbf94bc]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:1}.outContainer .topicwrap[data-v-1dbf94bc]{height:6.7rem;padding:.8rem;position:relative;margin:.6rem .4rem;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem}.outContainer .topicwrap .leftContent>p[data-v-1dbf94bc]{color:#333;font-size:.85rem;font-weight:700;font-family:PingFangSC-Semibold}.outContainer .topicwrap .leftContent>p>img[data-v-1dbf94bc]{width:.8rem;margin-right:.3rem;position:relative;top:.2rem}.outContainer .topicwrap .leftContent>div[data-v-1dbf94bc]{width:10.3rem;margin-top:.4rem;color:#333;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.outContainer .topicwrap .leftContent>span[data-v-1dbf94bc]{color:#377ee1;font-size:.65rem;position:absolute;bottom:.8rem;left:.8rem}.outContainer .topicwrap .leftContent>span img[data-v-1dbf94bc]{width:.25rem;position:relative;top:.35rem}.outContainer .topicwrap>img[data-v-1dbf94bc]{width:5.4rem;height:4.1rem;border-radius:.2rem;pointer-events:none;position:absolute;right:.8rem;bottom:.8rem}.outContainer .no-exp[data-v-1dbf94bc]{padding-top:3rem;text-align:center;color:#666;font:14px/1rem PingFangSC-Regular}.outContainer .no-exp img[data-v-1dbf94bc]{display:block;width:2.75rem;height:2.25rem;margin:0 auto .8rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
var _newComment = _interopRequireDefault(__webpack_require__(1420));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    commentBox: _newComment.default
  },
  props: {
    scrollTop: {
      type: Number,
      default: 0
    },
    currentUserId: {
      // 传入的当前用户id
      type: String,
      default: ''
    },
    modulId: {
      // 板块id
      type: String,
      default: ''
    },
    type: {
      // otherPage：他人主页; homePage: 个人主页; 默认为帖子列表
      type: String,
      default: ''
    },
    page: {
      // 当前页面的路由名称 - 用于记录返回位置
      type: String,
      default: ''
    },
    savePosition: Boolean // 是否记录返回位置
  },
  data: function data() {
    return {
      versionMoreThan5: false,
      // app版本号大于等于5.0, 微信端则默认是true
      modulList: [],
      showMOdulList: false,
      showTopicItem: false,
      topicItem: false,
      showTopicTip: false,
      currentCommunityId: '',
      allLoaded: false,
      scrollLoading: false,
      list: [],
      idList: [],
      listDataInit: false,
      // 帖子列表数据是否加载完毕
      pageSize: 10,
      pageNum: 1,
      userId: '',
      showCommentBox: false,
      shareContent: {},
      ModalHelper: null,
      currentShareItem: '',
      currentCommentItem: '',
      // versionOk: '',
      listCancelSource: '',
      // 帖子列表 axios cancelToken
      orderCase: 2,
      showShareContainer: false // 显示转发弹窗
    };
  },
  computed: {},
  watch: {
    showCommentBox: function showCommentBox(val) {
      if (val) {
        this.ModalHelper.afterOpen();
        if (this._Util.isApp()) {
          api.setFrameAttr({
            name: 'commun',
            bounces: false
          });
        }
      } else {
        this.ModalHelper.beforeClose();
        if (this._Util.isApp()) {
          api.setFrameAttr({
            name: 'commun',
            bounces: true
          });
        }
      }
    }
  },
  created: function created() {
    // 读取缓存中的滚动条位置
    var position = JSON.parse(sessionStorage.getItem('_courseExp_'));
    if (this.savePosition && position) {
      sessionStorage.removeItem('_courseExp_');
      this.list = position.list;
      this.idList = position.idList;
      this.pageSize = position.pageSize;
      this.pageNum = position.pageNum;
      this.allLoaded = position.allLoaded;
      this.listDataInit = true;
      this.showTopicItem = position.isShowTopic;
      this.showMOdulList = position.isShowTopic;
      this.modulList = position.modulList;
      this.userId = position.userId;
      this.browseList = position.browseList;
      this.$nextTick(function () {
        setTimeout(function () {
          if (document.getElementById('onscrollBox')) {
            document.getElementById('onscrollBox').scrollTo(0, position.scrollTop);
          } else {
            window.scrollTo(0, position.scrollTop);
          }
        }, 500);
      });
    } else {
      this.getArticleList();
    }
    if (!this.type) {
      window.addEventListener('scroll', this.handleScroll, true);
    }
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            _this.topicItem = _this.$route.path == '/v2/community/modulPage';
            _this.ModalHelper = function (bodyCls) {
              var scrollTop;
              return {
                afterOpen: function afterOpen() {
                  scrollTop = document.scrollingElement.scrollTop;
                  document.body.classList.add(bodyCls);
                  document.body.style.top = -scrollTop + 'px';
                },
                beforeClose: function beforeClose() {
                  document.body.classList.remove(bodyCls);
                  document.scrollingElement.scrollTop = scrollTop;
                }
              };
            }('modal-open');
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  beforeDestroy: function beforeDestroy() {},
  destroyed: function destroyed() {
    if (!this.type) {
      window.removeEventListener('scroll', this.handleScroll, true);
    }
  },
  methods: {
    /**
     * 跳转到个人中心
    */
    goMyPage: function goMyPage() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'myPage',
            url: location.origin + '/v2/community/myPage',
            notGive: true
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'myPage'
        });
      }
    },
    /** 新话题 */newTopic: function newTopic() {
      var _this2 = this;
      this._Util.post(this._Api.POST_COMMUNITY_NEW_TOPIC, {}, function (data) {
        _this2.showTopicTip = data;
        _this2.listDataInit = true;
      }, function () {}, this, true);
    },
    /** 记录分享行为 */recordShare: function recordShare(articleId) {
      this._Util.post(this._Api.POST_COMMUNITY_TASKCENTER_RECORD_SHARE, {
        articleId: articleId
      }, function (data) {}, function () {}, this, true);
    },
    /** 
     * 评论成功的回调 
    */
    commentSuccess: function commentSuccess(data) {
      this.showCommentBox = false;
      this.currentCommentItem.commentTotal++;
      if (Array.isArray(this.currentCommentItem.newCommentList)) {
        this.currentCommentItem.newCommentList.push(data);
      } else {
        this.currentCommentItem.newCommentList = [data];
      }
      this.currentCommentItem = '';
    },
    /** 
     * 获取分享信息 
    */
    getShareInfo: function getShareInfo(articleId, type) {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'community_share_set',
        article_id: articleId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this3.shareContent = {
            share_img: data.dataList[0].share_img,
            share_text: data.dataList[0].share_text,
            share_title: data.dataList[0].share_title
          };
          _this3.share(articleId, type);
        }
      }, function () {}, this);
    },
    /** 
     * 分享配置 
     * */
    share: function share(articleId, type) {
      var that = this;
      that.recordShare(articleId); // 分享行为记录
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: that.shareContent.share_title,
                desc: that.shareContent.share_text,
                link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
                imgLink: that.shareContent.share_img
              }
            }
          });
          this.currentShareItem.showShareContainer = false;
          this.currentShareItem = '';
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareContent.share_title,
              desc: that.shareContent.share_text,
              link: location.origin + '/v2/community/articleDetail?articleId=' + articleId + '&shareId=' + that.$store.state.userInfo.userId,
              imgUrl: that.shareContent.share_img,
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 处理页面滚动距离 */handleScroll: function handleScroll() {},
    /** 发帖 */postMessage: function postMessage(moduleId, moduleName) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpImg',
          extra: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      } else {
        this.$router.push({
          name: 'communityWxpost',
          query: {
            moduleId: moduleId,
            moduleName: moduleName
          }
        });
      }
    },
    /** 进入广告页面 */goAd: function goAd(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'adContainer' + Date.now(),
            url: url
          }
        });
      } else {
        this.saveSessionPosition();
        location.href = url;
      }
    },
    /** 获取板块列表 */getModulList: function getModulList() {
      var _this4 = this;
      this._Util.post(this._Api.POST_COMMUNITY_GET_MODUL_LIST, {
        status: 1
      }, function (data) {
        _this4.listDataInit = true;
        _this4.modulList = data.modulList;
      }, function () {}, this);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl.includes('watermark/3') ? imgUrl : imgUrl + (imgUrl.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v.includes('watermark/3') ? v : v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /** 保存被卷去的高度和数据 */saveSessionPosition: function saveSessionPosition() {
      // 记录滚动条位置
      if (this.savePosition) {
        var position = {
          scrollTop: this.scrollTop,
          pageNum: this.pageNum,
          pageSize: this.pageSize,
          allLoaded: this.allLoaded,
          list: this.list,
          idList: this.idList,
          isShowTopic: this.showTopicItem,
          modulList: this.modulList,
          userId: this.userId,
          browseList: this.browseList
        };
        sessionStorage.setItem('_courseExp_', JSON.stringify(position));
      }
    },
    /** 进入板块详情 */goPlateDetail: function goPlateDetail(modulId, modulName, moduleType, moduleTotal) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'modulPage' + modulId,
            url: location.origin + '/v2/community/modulPage?modulId=' + modulId + '&modulName=' + modulName + '&moduleType=' + moduleType + '&moduleTotal=' + moduleTotal
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'modulPage',
          query: {
            modulId: modulId,
            modulName: modulName,
            moduleType: moduleType,
            moduleTotal: moduleTotal
          }
        });
      }
    },
    /** 帖子点赞 */likeArticle: function likeArticle(id, index, isPraise) {
      if (isPraise == 1) {
        (0, _mintUi.Toast)({
          message: '您已点赞',
          position: 'bottom',
          duration: 1000
        });
        return;
      }
      this.list[index].praiseTotal++;
      this.list[index].isPraise = 1;
      this._Util.post(this._Api.POST_COMMUNITY_GIVE_PRAISE, {
        type: 1,
        communityId: id
      }, function (data) {}, function () {}, this, true);
    },
    /** 获取所有文章列表 */getArticleList: function getArticleList(type) {
      var _this5 = this;
      if (type) {
        this.orderCase = type;
        this.pageNum = 1;
        this.listDataInit = false;
      }
      var that = this;
      that.listCancelSource = that.$http.CancelToken.source();
      that._Util.post(that._Api.POST_COMMUNITY_GET_ARTICLE_LIST, {
        pageSize: that.pageSize,
        pageNum: that.pageNum,
        moduleId: that.modulId,
        isFilter: '',
        versionStatus: '5.2',
        courseId: this.$route.query.courseId,
        orderCase: this.orderCase
      }, function (data) {
        that.userId = data.userId;
        that.listDataInit = true;
        if (that.pageNum === 1) {
          that.allLoaded = false;
          that.idList = [];
          that.list = [];
        }
        data.articleList.forEach(function (v, i) {
          if (v.cardType === 0) {
            var uid = v.articleId || 'AD' + v.advertId;
            if (!that.idList.includes(uid)) {
              v.showTen = false;
              v.showShareContainer = false;
              if (v.articleCommentList && v.articleCommentList[0] && v.articleCommentList[0].praiseTotal > 5) {
                that.$set(v, 'newCommentList', v.articleCommentList.slice(0, 1));
              } else {
                that.$set(v, 'newCommentList', []);
              }
              that.idList.push(uid);
              that.list.push(v);
            }
          } else {
            that.list.push(v);
          }
        });
        that.scrollLoading = false;
        if (data.articleList.length < that.pageSize) {
          that.allLoaded = true;
        } else {
          that.pageNum++;
        }
        if (that.pageNum > 1) {
          that._Util.sensorsCollect('pageturning', {
            file_page: that.pageNum,
            paging_num: data.articleList.length,
            operation_page: '课程详情-心得',
            correlation_id: _this5.$route.query.courseId
          });
        }
      }, function () {}, that, false, {
        cancelToken: that.listCancelSource.token
      });
    },
    /** 取消正在请求的文章列表接口 */cancelArticleList: function cancelArticleList() {
      this.listCancelSource.cancel();
    },
    loadMore: function loadMore() {
      if (!this.scrollLoading && !this.allLoaded) {
        this.scrollLoading = true;
        this.getArticleList();
      }
    },
    /** 进入帖子详情 */goDetail: function goDetail(articleId, advertType, advertJumpLink, artic, index) {
      if (advertType === 1) {
        this.goAd(advertJumpLink);
        return;
      }
      if (artic.type == 3) {
        // 3->修车问答提问帖
        if (this._Util.isApp()) {
          var url = location.origin + '/v2/community/askDetailAndAnswerList?detailId=' + artic.repairCaseId;
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'toAskDetail',
              url: url
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'askDetailAndAnswerList',
            query: {
              detailId: artic.repairCaseId
            }
          });
        }
        return;
      }
      if (artic.type == 4) {
        // 4->修车问答回答帖+
        if (this._Util.isApp()) {
          var _url = "".concat(location.origin, "/v2/community/answerDetail?articleId=").concat(artic.articleId, "&detailId=").concat(artic.repairCaseId, "&sourceTag=topic");
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'answerDetail',
              url: _url
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'answerDetail',
            query: {
              articleId: artic.articleId,
              detailId: artic.repairCaseId,
              sourceTag: 'topic'
            }
          });
        }
        return;
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'articleDetail' + articleId,
            url: location.origin + '/v2/community/articleDetail?articleId=' + articleId
          }
        });
      } else {
        this.saveSessionPosition();
        this.$router.push({
          name: 'articleDetail',
          query: {
            articleId: articleId
          }
        });
      }
    },
    /** 进入用户主页 */goUserPage: function goUserPage(userId, type) {
      event.preventDefault();
      if (this.$route.name === 'myPage') {
        return;
      }
      if (this.userId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId,
              notGive: true
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage' + userId,
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.saveSessionPosition();
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer needsclick"},[(_vm.currentShareItem.showShareContainer)?_c('div',{staticClass:"shareMask",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.currentShareItem.showShareContainer=false; _vm.currentShareItem='';}}}):_vm._e(),_vm._v(" "),_c('div',[(_vm.list.length>0)?_c('ul',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"itemList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"scrollLoading","infinite-scroll-distance":"10"}},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"itemWrap",class:{'no-margin': item.cardType !== 0}},[(item.cardType === 0 || !item.cardType)?[(item.isAdvert === 1)?_c('li',{staticClass:"ad"},[_c('div',{staticClass:"adWrap",on:{"click":function($event){return _vm.goAd(item.advertUrl)}}},[_c('img',{attrs:{"src":item.advertImg,"alt":""}})])]):_c('li',{staticClass:"item",style:({'padding-bottom': (((item.articleCommentList && item.articleCommentList.length > 0 &&
              item.newCommentList.length)||
              item.commentAdvert) && item.type != 3) ? '0.5rem' : '0.6rem'}),attrs:{"id":'list'+item.articleId},on:{"click":function($event){return _vm.goDetail(item.articleId, item.advertType, item.advertJumpLink, item, index)}}},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":item.headimgurl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId, '查看用户主页')}}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.goUserPage(item.userId)}}},[_vm._v(_vm._s(item.userName.slice(0,10)))]),_vm._v(" "),(item.userId === 216205)?_vm._l((item.medalUserList),function(val,index2){return _c('img',{key:index2,staticClass:"medal",attrs:{"src":val.medalIcon,"alt":""}})}):_vm._e(),_vm._v(" "),(item.userId !== 216205 && item.userStatus === 2)?_c('img',{staticClass:"crown",attrs:{"src":__webpack_require__(282),"alt":""}}):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"uarea"},[_vm._v(_vm._s(item.time)+" "+_vm._s(item.position?item.position:(item.uprovince==item.ucity?item.uprovince:item.uprovince+item.ucity)))])])]),_vm._v(" "),_c('div',{staticClass:"cont-wrap",class:{'has-tit': item.articleTitle}},[(item.articleTitle && item.type != 3)?_c('div',{staticClass:"articleTitle"},[_vm._v("\n                "+_vm._s(item.articleTitle)+"\n              ")]):_vm._e(),_vm._v(" "),(item.content && item.content.length > 56 && item.type != 3)?_c('div',{class:['content'],domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.content.slice(0, 56).trimRight()+ '<div class=' + 'openArticle' + '>全文</div>'))}}):_vm._e(),_vm._v(" "),(item.content && item.content.length <= 56 && item.type != 3)?_c('div',{staticClass:"content",style:({'font-size':item.articleTitle?'.9rem':'.9rem'}),domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.content))}}):_vm._e(),_vm._v(" "),(item.pictureList && item.type != 3)?_c('div',[(item.pictureList && item.pictureList.length === 1)?_c('div',{staticClass:"singleImg"},[(item.pictureList[0].includes('watermark/3'))?_c('img',{attrs:{"src":item.pictureList[0],"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.pictureList[0], [])}}}):_c('img',{attrs:{"src":item.pictureList[0] + (item.pictureList[0].indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.pictureList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.pictureList && item.pictureList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.pictureList),function(v,i){return _c('img',{key:i,attrs:{"src":v.indexOf('watermark/3') > -1 ? v : ( v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/220/h/220'),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.pictureList, i)}}})}),0):_vm._e()]):(item.coverPicList && !item.videoList && item.type != 3)?_c('div',[(item.coverPicList&&item.coverPicList.length===1)?_c('div',{staticClass:"singleImg"},[(item.coverPicList[0].includes('watermark/3'))?_c('img',{attrs:{"src":item.coverPicList[0],"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.coverPicList[0], [])}}}):_c('img',{attrs:{"src":item.coverPicList[0] + (item.coverPicList[0].indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/228',"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(item.coverPicList[0], [])}}})]):_vm._e(),_vm._v(" "),(item.coverPicList&&item.coverPicList.length>1)?_c('div',{staticClass:"imgList"},_vm._l((item.coverPicList),function(v,i){return _c('img',{key:i,attrs:{"src":v.indexOf('watermark/3') > -1 ? v : ( v + (v.indexOf('?sign') > -1 ? '&' : '?') + 'imageView2/2/w/220/h/220'),"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, item.coverPicList, i)}}})}),0):_vm._e()]):_vm._e(),_vm._v(" "),(item.type == 4)?_c('div',{staticClass:"ask-tit"},[_c('b',[_vm._v("问")]),_vm._v(" "),_c('span',{staticStyle:{"margin-bottom":"0.4rem","font-size":".8rem"}},[_vm._v(_vm._s(item.associationQues))])]):_vm._e(),_vm._v(" "),(item.type == 3)?_c('div',{staticClass:"ask-tit"},[_c('b',[_vm._v("问")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.articleTitle))]),_vm._v(" "),_c('div',{staticClass:"answer"},[(item.rewardsCount)?_c('span',[_c('img',{attrs:{"src":__webpack_require__(802),"alt":""}}),_vm._v(" 悬赏"+_vm._s(item.rewardsCount)+"星豆")]):_vm._e(),_vm._v(" "),_vm._m(0,true)])]):_vm._e(),_vm._v(" "),(item.videoList && item.type != 3)?_c('div',{staticClass:"videoFrame"},[_c('div',[_c('img',{attrs:{"src":item.videoList + '?vframe/jpg/offset/1',"alt":""}})])]):_vm._e(),_vm._v(" "),(item.type != 3)?_c('div',{staticClass:"plateNameContainer"},[_c('div',{staticClass:"plateName",on:{"click":function($event){$event.stopPropagation();return _vm.goPlateDetail(item.moduleId, item.moduleName, item.moduleType,item.moduleTotal)}}},[_c('img',{attrs:{"src":__webpack_require__(2617),"alt":""}}),_vm._v(_vm._s(item.moduleName)+"\n                  "),(item.hotStatus>0)?_c('div',{staticClass:"hot-tip"},[_vm._v("\n                    精选\n                  ")]):_vm._e()])]):_vm._e(),_vm._v(" "),(item.type===1 && item.advertType===2 && item.type != 3)?_c('div',{staticClass:"articleOperation"},[_c('div',[(item.advertBtnOne)?_c('div',[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.advertLinkOne)}}},[_vm._v(_vm._s(item.advertBtnOne))])]):_vm._e(),_vm._v(" "),(item.advertBtnTwo)?_c('div',[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.advertLinkTwo)}}},[_vm._v(_vm._s(item.advertBtnTwo))])]):_vm._e()])]):_vm._e(),_vm._v(" "),(item.type===2 && item.topicStatus===1 && item.type != 3)?_c('div',{staticClass:"articleOperation"},[_c('div',[(item.hairTopicBtn)?_c('div',[_c('div',{staticClass:"color",on:{"click":function($event){$event.stopPropagation();return _vm.postMessage(item.moduleId, item.moduleName)}}},[_vm._v(_vm._s(item.hairTopicBtn))])]):_vm._e()])]):_vm._e(),_vm._v(" "),(item.advertType!==1 && item.type != 3)?_c('div',{staticClass:"toolContainer"},[(item.isPraise==0)?_c('div',{staticClass:"like"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(837),"alt":""}}),_vm._v("\n                  "+_vm._s(item.praiseTotal>0 ? item.praiseTotal : '点赞')+"\n                  "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();return _vm.likeArticle(item.articleId, index, item.isPraise)}}})]):_c('div',{staticClass:"like",staticStyle:{"color":"#EE4545"}},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(838),"alt":""}}),_vm._v("\n                  "+_vm._s(item.praiseTotal>0 ? item.praiseTotal : '点赞')+"\n                  "),_c('div',{staticClass:"hotArea"})]),_vm._v(" "),(!_vm.type)?_c('div',{staticClass:"comment"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(1614),"alt":""}}),_vm._v("\n                  评论\n                  "),_c('div',{staticClass:"hotArea",on:{"click":function($event){$event.stopPropagation();_vm.showCommentBox = true;_vm.currentCommentItem = item}}})]):_c('div',{staticClass:"comment"},[_c('img',{staticStyle:{"top":"-2px","pointer-events":"none"},attrs:{"src":__webpack_require__(1614),"alt":""}}),_vm._v("\n                  "+_vm._s(item.commentTotal>0 ? item.commentTotal : '评论')+"\n                ")]),_vm._v(" "),(false)?undefined:_vm._e()]):_vm._e(),_vm._v(" "),(item.inPostAdvert && item.type != 3)?_c('div',{staticClass:"adInArticle"},[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.inPostAdvert.advertUrl)}}},[_c('img',{attrs:{"src":item.inPostAdvert.advertImg,"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.inPostAdvert.advertContext))]),_vm._v(" "),_c('div',[_vm._v("查看")])])]):_vm._e(),_vm._v(" "),(((item.articleCommentList && item.articleCommentList.length > 0 &&
                  item.newCommentList.length)||item.commentAdvert) && item.type != 3)?_c('div',{staticClass:"commentSelection"},[(item.showTen)?_c('div',[_c('div',{staticClass:"comments"},[(item.commentAdvert)?_c('p',{staticClass:"adInComment",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.commentAdvert.advertUrl)}}},[_c('span',{staticClass:"name"},[_vm._v("小轨:")]),_vm._v(" "),_c('span',{staticClass:"commentContent"},[_vm._v(_vm._s(item.commentAdvert.advertContext))]),_vm._v(" "),_c('span',{staticClass:"clickBtn"},[_vm._v("查看")])]):_vm._e(),_vm._v(" "),_vm._l((item.articleCommentList),function(v,i){return _c('p',{key:i},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(v.userName.slice(0,9))+"：")]),_vm._v(" "),(v.picList&&v.picList.length>0)?_c('span',{staticClass:"imgTips"},[_c('img',{attrs:{"src":__webpack_require__(182),"alt":""}}),_vm._v(" 图片")]):_vm._e(),_vm._v(" "),(v.commentContent)?_c('span',{staticClass:"commentContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.commentContent))}},[_vm._v(_vm._s(v.commentContent))]):_vm._e()])})],2),_vm._v(" "),_c('div',{staticClass:"showMoreComments"},[_vm._v("查看全部"+_vm._s(item.commentTotal)+"条评论")])]):_c('div',[_c('div',{staticClass:"comments"},[(item.commentAdvert)?_c('p',{staticClass:"adInComment",on:{"click":function($event){$event.stopPropagation();return _vm.goAd(item.commentAdvert.advertUrl)}}},[_c('span',{staticClass:"name"},[_vm._v("小轨:")]),_vm._v(" "),_c('span',{staticClass:"commentContent"},[_vm._v(_vm._s(item.commentAdvert.advertContext))]),_vm._v(" "),_c('span',{staticClass:"clickBtn"},[_vm._v("查看")])]):_vm._e(),_vm._v(" "),_vm._l((item.newCommentList),function(v,i){return _c('p',{key:i},[(v.praiseTotal > 5)?_c('img',{staticClass:"hot-pl",attrs:{"src":__webpack_require__(2618),"alt":""}}):_vm._e(),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(v.userName.slice(0,9))+"：")]),_vm._v(" "),(v.picList && v.picList.length > 0)?_c('span',{staticClass:"imgTips"},[_c('img',{attrs:{"src":__webpack_require__(182),"alt":""}}),_vm._v(" 图片")]):_vm._e(),_vm._v(" "),(v.commentContent)?_c('span',{staticClass:"commentContent",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.commentContent))}},[_vm._v(_vm._s(v.commentContent))]):_vm._e()])})],2)])]):_vm._e()])])]:_vm._e()],2)}),_vm._v(" "),(!_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10px","padding-bottom":"10px"}},[_c('mt-spinner',{attrs:{"type":"fading-circle"}})],1):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.list.length == 0 && !_vm.showMOdulList && _vm.listDataInit)?_c('div',{staticClass:"no-exp"},[_c('img',{attrs:{"src":__webpack_require__(1430),"alt":""}}),_vm._v("\n      记录下你的学习心得，进步的会更快\n    ")]):_vm._e(),_vm._v(" "),(_vm.allLoaded && _vm.list.length>0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"20px","padding-bottom":"80px"}},[_vm._v("到底啦 ^_^")]):_vm._e()]),_vm._v(" "),_vm._l((_vm.modulList),function(v,i){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTopicItem && _vm.listDataInit),expression:"showTopicItem && listDataInit"}],key:i,staticClass:"topicwrap",on:{"click":function($event){return _vm.goPlateDetail(v.id, v.name,null,v.total)}}},[_c('div',{staticClass:"leftContent"},[_c('p',[_c('img',{directives:[{name:"show",rawName:"v-show",value:(v.browses),expression:"v.browses"}],attrs:{"src":__webpack_require__(1421),"alt":""}}),_vm._v("# "+_vm._s(v.name))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(v.introduce))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.total)+" 帖子 "),_c('img',{attrs:{"src":__webpack_require__(1422),"alt":""}})])]),_vm._v(" "),_c('img',{attrs:{"src":v.imgPath,"alt":""}})])}),_vm._v(" "),(_vm.showCommentBox)?_c('comment-box',{attrs:{"article-user-name":_vm.currentCommentItem.userName,"article-id":_vm.currentCommentItem.articleId},on:{"close":function($event){_vm.showCommentBox=false;_vm.currentCommentItem=''},"submit":_vm.commentSuccess}}):_vm._e()],2)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"toAns"},[_c('img',{attrs:{"src":__webpack_require__(803),"alt":""}}),_vm._v(" 帮他解答")])}]
module.exports = __webpack_require__.p + "static/img/plateName.52b8aea.svg";module.exports = __webpack_require__.p + "static/img/zan.53cfdbe.svg";module.exports = __webpack_require__.p + "static/img/zan2.6edc40c.svg";module.exports = __webpack_require__.p + "static/img/comment.f96af5b.svg";module.exports = __webpack_require__.p + "static/img/hotPl.3069ffe.svg";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(448);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1bc1a1aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1046);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2620)
  __webpack_require__(2622)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1bc1a1aa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1bc1a1aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1bc1a1aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_rankList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2621);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f6ea227a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-rank[data-v-1bc1a1aa]{height:100%;background-color:#2f4ff4;overflow-y:auto;-webkit-overflow-scrolling:touch}.course-rank .topBanner[data-v-1bc1a1aa]{height:5.75rem;background-size:100%;background-repeat:no-repeat;padding-top:.95rem;padding-left:.8rem}.course-rank .topBanner>div[data-v-1bc1a1aa]:first-of-type{font-family:PingFangSC-Semibold;font-weight:700;font-size:1rem;color:#fff;width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-rank .topBanner>div[data-v-1bc1a1aa]:nth-of-type(2){margin-top:.2rem;opacity:.8;font-family:PingFangSC-Regular;font-size:.7rem;color:#fff;width:70%}.course-rank .main .innerMain[data-v-1bc1a1aa]{width:17.55rem;margin:0 auto;background-color:#fff;border-radius:4px;padding-top:.8rem;padding-bottom:.8rem;position:relative;top:-.5rem}.course-rank .main .innerMain .item[data-v-1bc1a1aa]{height:2.4rem;line-height:2.4rem;margin-bottom:.6rem;padding-left:.7rem;overflow:hidden;position:relative}.course-rank .main .innerMain .item[data-v-1bc1a1aa]:nth-last-of-type(2){margin-bottom:0}.course-rank .main .innerMain .item>span[data-v-1bc1a1aa]:first-of-type{float:left;width:1.6rem;height:100%;position:relative}.course-rank .main .innerMain .item>span:first-of-type > span[data-v-1bc1a1aa]{font-family:PingFangSC-Regular;font-size:.7rem;color:#666}.course-rank .main .innerMain .item>span:first-of-type > img[data-v-1bc1a1aa]{width:1rem;height:1.25rem;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.course-rank .main .innerMain .item>.rightContent[data-v-1bc1a1aa]{height:100%;margin-left:1.6rem}.course-rank .main .innerMain .item>.rightContent>span[data-v-1bc1a1aa]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;width:50%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.course-rank .main .innerMain .item>.rightContent>img[data-v-1bc1a1aa]{margin-top:.3rem;width:1.8rem;height:1.8rem;border-radius:50%;margin-right:.4rem}.course-rank .main .innerMain .item>.rightContent>.likeNum[data-v-1bc1a1aa]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Medium;font-size:.9rem;color:#2f4ff4}.course-rank .main .innerMain .self[data-v-1bc1a1aa]{background-color:#fff2e6}.course-rank .main .innerMain .self>.rightContent>span[data-v-1bc1a1aa]{font-weight:700}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2623);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("d4bdaada", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".rankList .mescroll-upwarp.mescroll-hardware{min-height:0!important;padding:0!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  filters: {
    thousand: function thousand(val) {
      if (!val) return 0;
      return val >= 1000 ? (val / 1000).toFixed(1) + 'k' : val;
    }
  },
  props: {
    rankId: {
      type: String,
      default: function _default() {
        return '';
      }
    },
    courseDetail: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      rankInfo: '',
      rankList: [],
      mescroll: null,
      dataLoaded: false
    };
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getRankList,
        auto: false,
        page: {
          num: 1,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 20 // 每页数据条数,默认10
        },
        htmlNodata: '',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'rankList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无相关数据~' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 神策埋点点击事件封装
    */
    clickEventlog: function clickEventlog(name, cont, className, elType, targetUrl, curUrl, title, moudleType, id, operationPage) {
      this._Util.sensorsCollect('element_click', {
        $element_name: name,
        $element_content: cont,
        $element_class_name: className,
        $element_type: elType,
        $element_target_url: targetUrl,
        $url: curUrl || window.location.href,
        $title: title,
        moudle_type: moudleType,
        correlation_id: id,
        operation_page: operationPage
      });
    },
    /**
     * 初始化子组件
     */
    init: function init() {
      this.rankInfo = '';
      this.rankList = [];
      this.dataLoaded = false;
      this.getRank();
    },
    /**
     * 获取排行榜种类
     */
    getRank: function getRank() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'community_rank',
        rankid: this.rankId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.rankInfo = data.dataList[0];
          _this.clickEventlog(_this.rankInfo.rank_title, '课程排行榜', 'iner-btn', 'div', '', '', _this.courseDetail.courseName, '课程', _this.rankInfo.rank_data_code, '课程详情');
          document.title = data.dataList[0].rank_title;
          _this.getRankList();
        }
      }, function () {}, this);
    },
    /**
     * 获取排行榜榜单信息
     */
    getRankList: function getRankList() {
      var _this2 = this;
      var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
        num: 1,
        size: 20
      };
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: this.rankInfo.rank_data_code,
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this2.rankList = [];
        }
        if (data.dataList.length !== 0) {
          _this2.rankList = _this2.rankList.concat(data.dataList);
          _this2.$nextTick(function () {
            _this2.mescroll.endSuccess(data.dataList.length);
          });
        }
        _this2.dataLoaded = true;
      }, function () {
        _this2.mescroll.endErr();
      }, this, true);
    },
    /**
     * 进入指定用户主页
     * @param userId: 需要进入的用户主页
     */
    goUserPage: function goUserPage(userId) {
      if (this.$store.state.userInfo.userId == userId) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'myPage',
              url: location.origin + '/v2/community/myPage?userId=' + userId,
              notGive: true
            }
          });
        } else {
          this.$router.push({
            name: 'myPage',
            query: {
              userId: userId
            }
          });
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'otherPage' + userId,
              url: location.origin + '/v2/community/otherPage?userId=' + userId
            }
          });
        } else {
          this.$router.push({
            name: 'otherPage',
            query: {
              userId: userId
            }
          });
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"course-rank rankList"},[_c('div',{staticClass:"topBanner",style:({backgroundImage: 'url('+ _vm.rankInfo.rank_pic +')'})},[_c('div',[_vm._v(_vm._s(_vm.rankInfo.rank_title))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.rankInfo.rank_note))])]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"innerMain",attrs:{"id":"rankList"}},[(!_vm.dataLoaded)?_c('div',{staticStyle:{"text-align":"center","padding-top":"3rem","padding-bottom":"2rem","color":"#666","font-size":"0.7rem"}},[_vm._v("\n        数据正在计算中...\n      ")]):_vm._l((_vm.rankList),function(v,i){return _c('div',{key:i,class:{item: true, self: v.rank_userid == _vm.$store.state.userInfo.userId},on:{"click":function($event){return _vm.goUserPage(v.rank_userid)}}},[_c('span',[(i===0)?_c('img',{attrs:{"src":__webpack_require__(1404)}}):(i===1)?_c('img',{attrs:{"src":__webpack_require__(1405)}}):(i===2)?_c('img',{attrs:{"src":__webpack_require__(1406)}}):_c('span',[_vm._v(_vm._s(i+1 < 10 ? '0'+(i+1) : i+1))])]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('img',{attrs:{"src":v.rank_headimg,"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.rank_uname))]),_vm._v(" "),_c('div',{staticClass:"likeNum"},[_c('span',{staticStyle:{"color":"#666","font-size":"0.6rem"}},[_vm._v(_vm._s(v.rank_intro))]),_vm._v(" "+_vm._s(_vm._f("thousand")(v.rank_score))+" "),_c('span',{staticStyle:{"color":"#666","font-size":"0.6rem"}},[_vm._v(_vm._s(v.rank_remark))])])])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_score_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(449);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_score_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_score_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_score_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_score_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ace46726_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_score_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1047);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2625)
  __webpack_require__(2627)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ace46726"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_score_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ace46726_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_score_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ace46726_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_score_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2626);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e246fd84", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-score[data-v-ace46726]{height:100%;background-color:#fff;padding:.6rem .8rem;overflow-y:auto;-webkit-overflow-scrolling:touch}.course-score .total-score[data-v-ace46726]{background:#f4f5f6;border-radius:.3rem;height:4.85rem;text-align:center;padding-top:1rem}.course-score .total-score p[data-v-ace46726]:first-of-type{color:#333;font:700 32px/1.6rem PingFangSC-Semibold;margin-bottom:.25rem}.course-score .total-score p[data-v-ace46726]:nth-of-type(2){color:#999;font:14px/1rem PingFangSC-Regular}.course-score ul[data-v-ace46726]{margin-top:.8rem}.course-score ul li[data-v-ace46726]{margin-bottom:.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.course-score ul li span[data-v-ace46726]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:14px/1rem PingFangSC-Regular}.course-score ul li span[data-v-ace46726]:last-child{text-align:right}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2628);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("748805c7", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-score .mescroll-upwarp.mescroll-hardware{min-height:0!important;padding:0!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  filters: {
    thousand: function thousand(val) {
      if (!val) return 0;
      return val >= 1000 ? (val / 1000).toFixed(1) + 'k' : val;
    }
  },
  props: {
    rankId: {
      type: String,
      default: function _default() {
        return '';
      }
    }
  },
  data: function data() {
    return {
      totalScore: 0,
      sorceList: [],
      mescroll: null,
      dataLoaded: false
    };
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: false
      },
      up: {
        callback: this.getScore,
        auto: false,
        page: {
          num: 1,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 20 // 每页数据条数,默认10
        },
        htmlNodata: '',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'sorceList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无相关数据~' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 初始化子组件
     */
    init: function init() {
      this.totalScore = 0;
      this.sorceList = [];
      this.dataLoaded = false;
      this.getScore();
      this.getTotalScore();
    },
    /**
     * 获取排总分熟
     */
    getTotalScore: function getTotalScore() {
      var _this = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'coursedetail_enter_set',
        user_id: userId,
        course_id: this.$route.query.courseId,
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data && data.dataList) {
          _this.totalScore = data.dataList[0].credit_num;
        }
      }, function () {}, this, true);
    },
    /**
     * 获取分数记录
     */
    getScore: function getScore() {
      var _this2 = this;
      var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
        num: 1,
        size: 20
      };
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'coursedetail_credit_water',
        user_id: userId,
        course_id: this.$route.query.courseId,
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this2.sorceList = [];
        }
        if (data.dataList.length !== 0) {
          _this2.sorceList = _this2.sorceList.concat(data.dataList);
          _this2.$nextTick(function () {
            _this2.mescroll.endSuccess(data.dataList.length);
          });
        }
        _this2.dataLoaded = true;
      }, function () {
        _this2.mescroll.endErr();
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"course-score"},[_c('div',{staticClass:"total-score"},[_c('p',[_vm._v(_vm._s(_vm.totalScore))]),_vm._v(" "),_c('p',[_vm._v("当前总学分")])]),_vm._v(" "),_c('ul',{attrs:{"id":"sorceList"}},_vm._l((_vm.sorceList),function(item,index){return _c('li',{key:index},[_c('span',[_vm._v(_vm._s(item.date))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.type))]),_vm._v(" "),_c('span',[_vm._v("+"+_vm._s(item.credit_num))])])}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(450);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_74d257f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1048);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2630)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-74d257f4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_74d257f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_74d257f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marquee_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2631);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7f578463", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".course-maq-child[data-v-74d257f4]{height:100%;text-align:right;position:relative}.course-maq-child .mask[data-v-74d257f4]{position:absolute;right:0;top:0;height:1rem;width:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(hsla(0,0%,100%,0)));background-image:linear-gradient(#fff,hsla(0,0%,100%,0));z-index:100}.course-maq-child ul[data-v-74d257f4]{position:relative}.course-maq-child ul li[data-v-74d257f4]{overflow:hidden;-webkit-transition:all .2s;transition:all .2s;opacity:1}.course-maq-child ul li.active[data-v-74d257f4]{opacity:0}.course-maq-child ul li .padEl[data-v-74d257f4]{height:.3rem}.course-maq-child ul li .cont[data-v-74d257f4]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:auto;max-width:100%;background:rgba(0,0,0,.5);border-radius:.8rem;height:1.6rem;padding:0 .6rem 0 .4rem}.course-maq-child ul li .cont img[data-v-74d257f4]{width:1rem;height:1rem;border-radius:1rem;margin-right:.4rem}.course-maq-child ul li .cont span[data-v-74d257f4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#fff;font:13px PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vueSeamlessScroll = _interopRequireDefault(__webpack_require__(1431));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {
    vueSeamlessScroll: _vueSeamlessScroll.default
  },
  props: {
    userList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    showMask: {
      type: Boolean,
      default: function _default() {
        return true;
      }
    }
  },
  data: function data() {
    return {
      liHeight: 0,
      ulLeft: 0,
      prizeUlHeight: 0,
      timer: null,
      curIndex: 0
    };
  },
  computed: {
    optionSingleHeightTime: function optionSingleHeightTime() {
      return {
        // singleHeight: this.liHeight
        step: 0.5,
        openTouch: false
      };
    }
  },
  mounted: function mounted() {},
  updated: function updated() {
    this.liHeight = this.$refs.liEl[0].offsetHeight;
  },
  methods: {}
};!function(t,i){ true?module.exports=i():undefined}("undefined"!=typeof self?self:this,function(){return function(t){function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}var e={};return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},i.p="",i(i.s=1)}([function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),e(4)();var o=e(5),n=e(6);i.default={name:"vue-seamless-scroll",data:function(){return{xPos:0,yPos:0,delay:0,copyHtml:"",height:0,width:0,realBoxWidth:0}},props:{data:{type:Array,default:function(){return[]}},classOption:{type:Object,default:function(){return{}}}},computed:{leftSwitchState:function(){return this.xPos<0},rightSwitchState:function(){return Math.abs(this.xPos)<this.realBoxWidth-this.width},leftSwitchClass:function(){return this.leftSwitchState?"":this.options.switchDisabledClass},rightSwitchClass:function(){return this.rightSwitchState?"":this.options.switchDisabledClass},leftSwitch:function(){return{position:"absolute",margin:this.height/2+"px 0 0 -"+this.options.switchOffset+"px",transform:"translate(-100%,-50%)"}},rightSwitch:function(){return{position:"absolute",margin:this.height/2+"px 0 0 "+(this.width+this.options.switchOffset)+"px",transform:"translateY(-50%)"}},float:function(){return this.isHorizontal?{float:"left",overflow:"hidden"}:{overflow:"hidden"}},pos:function(){return{transform:"translate("+this.xPos+"px,"+this.yPos+"px)",transition:"all "+this.ease+" "+this.delay+"ms",overflow:"hidden"}},defaultOption:function(){return{step:1,limitMoveNum:5,hoverStop:!0,direction:1,openTouch:!0,singleHeight:0,singleWidth:0,waitTime:1e3,switchOffset:30,autoPlay:!0,navigation:!1,switchSingleStep:134,switchDelay:400,switchDisabledClass:"disabled",isSingleRemUnit:!1}},options:function(){return n({},this.defaultOption,this.classOption)},navigation:function(){return this.options.navigation},autoPlay:function(){return!this.navigation&&this.options.autoPlay},scrollSwitch:function(){return this.data.length>=this.options.limitMoveNum},hoverStopSwitch:function(){return this.options.hoverStop&&this.autoPlay&&this.scrollSwitch},canTouchScroll:function(){return this.options.openTouch},isHorizontal:function(){return this.options.direction>1},baseFontSize:function(){return this.options.isSingleRemUnit?parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1},realSingleStopWidth:function(){return this.options.singleWidth*this.baseFontSize},realSingleStopHeight:function(){return this.options.singleHeight*this.baseFontSize},step:function(){var t=this.options.step;return this.isHorizontal?this.realSingleStopWidth:this.realSingleStopHeight,t}},methods:{reset:function(){this._cancle(),this._initMove()},leftSwitchClick:function(){if(this.leftSwitchState)return Math.abs(this.xPos)<this.options.switchSingleStep?void(this.xPos=0):void(this.xPos+=this.options.switchSingleStep)},rightSwitchClick:function(){if(this.rightSwitchState)return this.realBoxWidth-this.width+this.xPos<this.options.switchSingleStep?void(this.xPos=this.width-this.realBoxWidth):void(this.xPos-=this.options.switchSingleStep)},_cancle:function(){cancelAnimationFrame(this.reqFrame||"")},touchStart:function(t){var i=this;if(this.canTouchScroll){var e=void 0,o=t.targetTouches[0],n=this.options,s=n.waitTime,r=n.singleHeight,a=n.singleWidth;this.startPos={x:o.pageX,y:o.pageY},this.startPosY=this.yPos,this.startPosX=this.xPos,r&&a?(e&&clearTimeout(e),e=setTimeout(function(){i._cancle()},s+20)):this._cancle()}},touchMove:function(t){if(!(!this.canTouchScroll||t.targetTouches.length>1||t.scale&&1!==t.scale)){var i=t.targetTouches[0],e=this.options.direction;this.endPos={x:i.pageX-this.startPos.x,y:i.pageY-this.startPos.y},event.preventDefault();var o=Math.abs(this.endPos.x)<Math.abs(this.endPos.y)?1:0;1===o&&e<2?this.yPos=this.startPosY+this.endPos.y:0===o&&e>1&&(this.xPos=this.startPosX+this.endPos.x)}},touchEnd:function(){var t=this;if(this.canTouchScroll){var i=void 0,e=this.options.direction;if(this.delay=50,1===e)this.yPos>0&&(this.yPos=0);else if(0===e){var o=this.realBoxHeight/2*-1;this.yPos<o&&(this.yPos=o)}else if(2===e)this.xPos>0&&(this.xPos=0);else if(3===e){var n=-1*this.realBoxWidth;this.xPos<n&&(this.xPos=n)}i&&clearTimeout(i),i=setTimeout(function(){t.delay=0,t._move()},this.delay)}},enter:function(){this.hoverStopSwitch&&this._stopMove()},leave:function(){this.hoverStopSwitch&&this._startMove()},_move:function(){this.isHover||(this._cancle(),this.reqFrame=requestAnimationFrame(function(){var t=this,i=this.realBoxHeight/2,e=this.realBoxWidth/2,o=this.options,n=o.direction,s=o.waitTime,r=this.step;1===n?(Math.abs(this.yPos)>=i&&(this.$emit("ScrollEnd"),this.yPos=0),this.yPos-=r):0===n?(this.yPos>=0&&(this.$emit("ScrollEnd"),this.yPos=-1*i),this.yPos+=r):2===n?(Math.abs(this.xPos)>=e&&(this.$emit("ScrollEnd"),this.xPos=0),this.xPos-=r):3===n&&(this.xPos>=0&&(this.$emit("ScrollEnd"),this.xPos=-1*e),this.xPos+=r),this.singleWaitTime&&clearTimeout(this.singleWaitTime),this.realSingleStopHeight?Math.abs(this.yPos)%this.realSingleStopHeight<r?this.singleWaitTime=setTimeout(function(){t._move()},s):this._move():this.realSingleStopWidth&&Math.abs(this.xPos)%this.realSingleStopWidth<r?this.singleWaitTime=setTimeout(function(){t._move()},s):this._move()}.bind(this)))},_initMove:function(){var t=this;this.$nextTick(function(){var i=t.options.switchDelay,e=t.autoPlay,o=t.isHorizontal;if(t._dataWarm(t.data),t.copyHtml="",o){t.height=t.$refs.wrap.offsetHeight,t.width=t.$refs.wrap.offsetWidth;var n=t.$refs.slotList.offsetWidth;e&&(n=2*n+1),t.$refs.realBox.style.width=n+"px",t.realBoxWidth=n}if(!e)return t.ease="linear",void(t.delay=i);if(t.ease="ease-in",t.delay=0,t.scrollSwitch){t.copyHtml=t.$refs.slotList.innerHTML,setTimeout(function(){t.realBoxHeight=t.$refs.realBox.offsetHeight,t._move()},0)}else t._cancle(),t.yPos=t.xPos=0})},_dataWarm:function(t){t.length},_startMove:function(){this.isHover=!1,this._move()},_stopMove:function(){this.isHover=!0,this.singleWaitTime&&clearTimeout(this.singleWaitTime),this._cancle()}},mounted:function(){this._initMove()},watch:{data:function(t,i){this._dataWarm(t),o(t,i)||this.reset()},autoPlay:function(t){t?this.reset():this._stopMove()}},beforeCreate:function(){this.reqFrame=null,this.singleWaitTime=null,this.isHover=!1,this.ease="ease-in"},beforeDestroy:function(){this._cancle(),clearTimeout(this.singleWaitTime)}}},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=e(2),n=function(t){return t&&t.__esModule?t:{default:t}}(o);n.default.install=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(i.componentName||n.default.name,n.default)},"undefined"!=typeof window&&window.Vue&&Vue.component(n.default.name,n.default),i.default=n.default},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=e(0),n=e.n(o);for(var s in o)"default"!==s&&function(t){e.d(i,t,function(){return o[t]})}(s);var r=e(7),a=e(3),h=a(n.a,r.a,!1,null,null,null);i.default=h.exports},function(t,i){t.exports=function(t,i,e,o,n,s){var r,a=t=t||{},h=typeof t.default;"object"!==h&&"function"!==h||(r=t,a=t.default);var l="function"==typeof a?a.options:a;i&&(l.render=i.render,l.staticRenderFns=i.staticRenderFns,l._compiled=!0),e&&(l.functional=!0),n&&(l._scopeId=n);var c;if(s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=o),c){var u=l.functional,f=u?l.render:l.beforeCreate;u?(l._injectStyles=c,l.render=function(t,i){return c.call(i),f(t,i)}):l.beforeCreate=f?[].concat(f,c):[c]}return{esModule:r,exports:a,options:l}}},function(t,i){var e=function(){window.cancelAnimationFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t)}}(),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}()};t.exports=e},function(t,i){var e=function(t,i){if(t===i)return!0;if(t.length!==i.length)return!1;for(var e=0;e<t.length;++e)if(t[e]!==i[e])return!1;return!0};t.exports=e},function(t,i){function e(){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t=void 0,i=void 0,n=void 0,s=void 0,r=void 0,a=void 0,h=1,l=arguments[0]||{},c=!1,u=arguments.length;if("boolean"==typeof l&&(c=l,l=arguments[1]||{},h++),"object"!==(void 0===l?"undefined":o(l))&&"function"!=typeof l&&(l={}),h===u)return l;for(;h<u;h++)if(null!=(i=arguments[h]))for(t in i)n=l[t],s=i[t],r=Array.isArray(s),c&&s&&("object"===(void 0===s?"undefined":o(s))||r)?(r?(r=!1,a=n&&Array.isArray(n)?n:[]):a=n&&"object"===(void 0===n?"undefined":o(n))?n:{},l[t]=e(c,a,s)):void 0!==s&&(l[t]=s);return l}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=e},function(t,i,e){"use strict";var o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{ref:"wrap"},[t.navigation?e("div",{class:t.leftSwitchClass,style:t.leftSwitch,on:{click:t.leftSwitchClick}},[t._t("left-switch")],2):t._e(),t._v(" "),t.navigation?e("div",{class:t.rightSwitchClass,style:t.rightSwitch,on:{click:t.rightSwitchClick}},[t._t("right-switch")],2):t._e(),t._v(" "),e("div",{ref:"realBox",style:t.pos,on:{mouseenter:t.enter,mouseleave:t.leave,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}},[e("div",{ref:"slotList",style:t.float},[t._t("default")],2),t._v(" "),e("div",{style:t.float,domProps:{innerHTML:t._s(t.copyHtml)}})])])},n=[],s={render:o,staticRenderFns:n};i.a=s}]).default});/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"course-maq-child"},[(false)?undefined:_vm._e(),_vm._v(" "),_c('vue-seamless-scroll',{staticClass:"seamless-warp",attrs:{"data":_vm.userList,"class-option":_vm.optionSingleHeightTime}},[_c('ul',_vm._l((_vm.userList),function(item,index){return _c('li',{key:index,ref:"liEl",refInFor:true},[_c('div',{staticClass:"cont"},[_c('img',{attrs:{"src":item.head_img,"alt":"头像"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.text))])]),_vm._v(" "),_c('div',{staticClass:"padEl"})])}),0)])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/bf.d753997.jpg";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"classCourse-detail"},[_c('div',{staticClass:"main needsclick"},[_c('div',{staticClass:"video-box needsclick"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showVideoMask),expression:"showVideoMask"}],staticClass:"video-poster",on:{"click":_vm.playVideo}},[_c('div',{staticClass:"poster-mask"}),_vm._v(" "),_c('img',{staticClass:"poster1",attrs:{"src":_vm.posterImg,"alt":"poster"}}),_vm._v(" "),_vm._m(0)]),_vm._v(" "),(!_vm.showVideoMask&&_vm.videoIsShow)?_c('video',{ref:"videoEl",attrs:{"webkit-playsinline":"true","playsinline":"true","x5-playsinline":"true","x-webkit-airplay":"true","controls":"","controlsList":"nodownload","src":_vm.curVideoObj.src},on:{"play":_vm.startPlay,"pause":_vm.pausePlay,"seeking":_vm.seekStart,"webkitfullscreenchange":_vm.fullscreenchange}}):_vm._e(),_vm._v(" "),(!_vm.videoIsShow)?_c('div',{staticStyle:{"text-align":"center","margin-top":"3rem","font-size":"18px"}},[_vm._v("\n          请到APP观看视频课程\n        ")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"detailCont"},[_c('div',{staticClass:"title clearfix"},[_c('p',[_vm._v(_vm._s(_vm.courseDetail.courseName))]),_vm._v(" "),_c('span',[_vm._v("共"+_vm._s(_vm.courseDetail.courseHourNum>1?_vm.courseHourList.length:_vm.courseDetail.courseHourNum)+"节")]),_vm._v(" "),(_vm.courseDetail.isCollect==0)?_c('span',{staticStyle:{"float":"right","border":"1px solid #ef7549","background-color":"#ef7549","color":"#ffffff","padding":".2rem .3rem","border-radius":"6px","margin-top":"-10px"},on:{"click":_vm.collectOp}},[_vm._v("收藏")]):_vm._e(),_vm._v(" "),(_vm.courseDetail.isCollect==1)?_c('span',{staticStyle:{"float":"right","border":"1px solid #ef7549","background-color":"#ffffff","color":"#ef7549","padding":".2rem .3rem","border-radius":"6px","margin-top":"-10px"},on:{"click":_vm.collectOp}},[_vm._v("取消收藏")]):_vm._e(),_vm._v(" "),(_vm.courseDetail.courseStatusByCurrentUser!=5||(_vm.courseDetail.courseStatusByCurrentUser==5&&_vm.courseDetail.coursePrice!=0))?_c('div',{staticClass:"tip"},[_vm._v(_vm._s(_vm._f("courseStatus")(_vm.courseDetail.courseStatusByCurrentUser)))]):_vm._e(),_vm._v(" "),(_vm.courseDetail.courseStatusByCurrentUser==5&&_vm.courseDetail.coursePrice==0)?_c('div',{staticClass:"tip"},[_vm._v("已领取")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"shareBtn",on:{"click":function($event){return _vm.shareFriends('session')}}},[_c('van-icon',{attrs:{"name":"share-o"}}),_vm._v(" 邀请")],1)])]),_vm._v(" "),_c('div',{staticStyle:{"height":"0.4rem","background":"#f5f5f5"}}),_vm._v(" "),_c('van-sticky',[_c('ul',{ref:"tabBox",staticClass:"tab-box mescroll-touch"},[_vm._l((_vm.tabList),function(tab,index){return [(tab.show)?_c('li',{key:index,class:{'active': _vm.curIndex === tab.id},on:{"click":function($event){return _vm.toggleTab(tab)}}},[_vm._v("\n              "+_vm._s(tab.name)+"\n            ")]):_vm._e()]})],2)])],1),_vm._v(" "),_c('div',{staticClass:"tab-cont-box mescroll-touch",class:{'canScroll': _vm.canScrollFlag},style:({'padding-bottom': _vm.courseDetail.courseStatusByCurrentUser !== 5 ? '3rem' : 0})},[(_vm.maqText && _vm.courseDetail.courseStatusByCurrentUser !== 5)?_c('van-notice-bar',{staticClass:"course-maq",staticStyle:{"padding":"0 0.8rem"},attrs:{"color":"#FF712A","background":"#FFF5EA"}},[_vm._v("\n        "+_vm._s(_vm.maqText)+"\n      ")]):_vm._e(),_vm._v(" "),(_vm.courseDetail.courseName&&_vm.courseDetail.courseStatusByCurrentUser !== 5)?_c('div',{staticClass:"pay-box",class:{'no-right-box': _vm.isInIosWxMiniApp}},[(!_vm.isInIosWxMiniApp)?[(_vm.courseDetail.coursePrice==0)?_c('div',{staticClass:"pay-btn",on:{"click":_vm.reciveCourse}},[_vm._v("立即领取")]):_vm._e(),_vm._v(" "),(_vm.courseDetail.coursePrice!=0&&_vm.courseDetail.memberPrice==0&&_vm.vipType==1)?_c('div',{staticClass:"pay-btn",on:{"click":_vm.reciveCourse}},[_vm._v("立即领取")]):_vm._e(),_vm._v(" "),(_vm.courseDetail.coursePrice!=0&&_vm.courseDetail.superVipPrice==0&&_vm.vipType==2)?_c('div',{staticClass:"pay-btn",on:{"click":_vm.reciveCourse}},[_vm._v("立即领取")]):_vm._e(),_vm._v(" "),((_vm.courseDetail.coursePrice!=0&&_vm.courseDetail.memberPrice!=0&&_vm.vipType==1)||(_vm.courseDetail.coursePrice!=0&&_vm.vipType==0)||(_vm.courseDetail.coursePrice!=0&&_vm.courseDetail.superVipPrice!=0&&_vm.vipType==2))?_c('div',{staticClass:"pay-btn",on:{"click":_vm.purchaseCourse}},[_vm._v("\n              立即购买 "),(_vm.courseDetail.coursePrice&&_vm.vipType==0)?_c('span',[_vm._v("(￥"+_vm._s(_vm.courseDetail.coursePrice)+")")]):_vm._e(),_vm._v(" "),(_vm.courseDetail.memberPrice&&_vm.vipType==1)?_c('span',[_vm._v("(￥"+_vm._s(_vm.courseDetail.memberPrice)+")")]):_vm._e(),_vm._v(" "),(_vm.courseDetail.superVipPrice&&_vm.vipType==2)?_c('span',[_vm._v("(￥"+_vm._s(_vm.courseDetail.superVipPrice)+")")]):_vm._e()]):_vm._e()]:[_c('div',{staticClass:"no-right"},[_vm._v("\n            由于相关规范，IOS功能暂不可用\n          ")])]],2):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 0),expression:"curIndex === 0"}],staticClass:"detail"},[_c('div',{staticClass:"detail-cont",domProps:{"innerHTML":_vm._s(_vm.courseDetail.courseDesc)}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 1),expression:"curIndex === 1"}],staticClass:"catalog"},[(_vm.btnList.length)?_c('div',{staticClass:"hour-btns"},[_c('div',{staticClass:"iner-box"},_vm._l((_vm.btnList),function(item,index){return _c('div',{key:index,staticClass:"iner-btn",class:{'one-btn': _vm.btnList.length === 1, 'more-btn': _vm.btnList.length > 2},on:{"click":function($event){return _vm.showPopupFn(item)}}},[_c('span',[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(57),"alt":"箭头"}})])}),0)]):_vm._e(),_vm._v(" "),_c('ul',_vm._l((_vm.courseHourList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.openHour(item)}}},[_c('div',{staticClass:"listWrap"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v(_vm._s(item.classHourName))])]),_vm._v(" "),_c('div',{staticClass:"time"},[((_vm.courseDetail.courseStatusByCurrentUser === 5 || item.status) && item.classHourUrl)?[(_vm.curVideoObj.curId === item.courseHourId && _vm.curVideoObj.playStatus)?_c('img',{attrs:{"src":__webpack_require__(2632),"alt":"播放"}}):_vm._e()]:_c('img',{attrs:{"src":__webpack_require__(146),"alt":"锁定"}}),_vm._v(" "),(item.hourLength)?_c('span',{staticClass:"dur"},[_vm._v(_vm._s(item.hourLength))]):_vm._e(),_vm._v(" "),(item.watchRecord)?_c('span',{staticClass:"pross"},[_vm._v("| 已观看"+_vm._s(item.watchRecord)+"%")]):_vm._e(),_vm._v(" "),(item.status)?_c('span',{staticClass:"try"},[_vm._v("试看")]):_vm._e()],2)]),_vm._v(" "),(item.type === 1)?_c('img',{attrs:{"src":item.classHourUrl + '?x-oss-process=video/snapshot,t_5000,f_jpg,w_800,h_600,m_fast',"alt":""}}):_c('img',{attrs:{"src":"https://s2.kaxiuyun.com/zl_icon.png","alt":""}})])}),0)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 2),expression:"curIndex === 2"}],staticClass:"ware"},[_c('ul',[(_vm.courseWareList.length > 1)?_vm._l((_vm.courseWareList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.openWare(item)}}},[_c('span',[_vm._v(_vm._s(item.classHourName))]),_vm._v(" "),(_vm.courseDetail.courseStatusByCurrentUser === 5 || item.status)?_c('i'):_c('img',{attrs:{"src":__webpack_require__(1615),"alt":"锁定"}})])}):_vm._e(),_vm._v(" "),(_vm.courseWareList.length === 1)?[(_vm.courseDetail.courseStatusByCurrentUser === 5 || _vm.courseWareList[0].status)?[(!_vm.pdfLoaded)?_c('img',{staticClass:"loading",attrs:{"src":"http://static2.kaxiuyun.com/kxy/common/loading.gif","alt":"loading"}}):_vm._e(),_vm._v(" "),_vm._l((_vm.pdfNumPages),function(i){return _c('pdf',{key:i,staticStyle:{"display":"inline-block","width":"100%"},attrs:{"src":_vm.curWareItem.classHourUrl,"page":i},on:{"loaded":_vm.pdfLoaded}})})]:_c('li',{on:{"click":function($event){return _vm.openWare(_vm.courseWareList[0])}}},[_c('span',[_vm._v(_vm._s(_vm.courseWareList[0].classHourName))]),_vm._v(" "),(_vm.courseDetail.courseStatusByCurrentUser === 5 || _vm.courseWareList[0].status)?_c('i'):_c('img',{attrs:{"src":__webpack_require__(1615),"alt":"锁定"}})])]:_vm._e()],2)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.curIndex === 3),expression:"curIndex === 3"}],staticClass:"ask",staticStyle:{"height":"100%"}},[(_vm.courseQaList.length)?_c('mescroll-vue',{ref:"mescroll",staticClass:"scroll-wrap",attrs:{"id":"notice-template","up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"ask-tit"},[_c('p',[_vm._v("精选提问")]),_vm._v(" "),_c('div',{staticClass:"sort-box"},[_c('span',{class:{'act': _vm.qaOrderCase === 2},on:{"click":function($event){return _vm.qaSort(2)}}},[_vm._v("点赞排序")]),_vm._v(" "),_c('i'),_vm._v(" "),_c('span',{class:{'act': _vm.qaOrderCase === 1},on:{"click":function($event){return _vm.qaSort(1)}}},[_vm._v("时间排序")])])]),_vm._v(" "),_vm._l((_vm.courseQaList),function(item,index){return _c('div',{key:index,staticClass:"ask-item"},[_c('img',{staticClass:"user-img",attrs:{"src":item.questionHeadImgUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"name"},[_c('span',[_vm._v(_vm._s(item.questionUserName))]),_vm._v(" "),(item.questionUserStatus === '2')?_c('img',{attrs:{"src":__webpack_require__(282),"alt":""}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"zan",class:{'active': item.courseQaPraise},on:{"click":function($event){$event.stopPropagation();return _vm.qaLike(item, 1)}}},[_vm._v("\n                  "+_vm._s(item.questionLikesNum)+"\n                  "),(item.courseQaPraise === 0)?_c('img',{attrs:{"src":__webpack_require__(837),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(838),"alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"ques"},[_vm._v(_vm._s(item.questionContent))]),_vm._v(" "),_c('div',{staticClass:"ques-img"},_vm._l((item.questionPicList),function(img,imgInd){return _c('img',{key:imgInd,attrs:{"src":img,"alt":"提问图片"},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(img, item.questionPicList, imgInd)}}})}),0),_vm._v(" "),(item.askContent || item.askPicList.length)?_c('div',{staticClass:"ask-cont"},[_c('div',{staticClass:"line-col"}),_vm._v(" "),_c('div',{staticClass:"reply"},[_c('div',{staticClass:"up"},[_vm._v("\n                    讲师回复\n                    "),_c('div',{staticClass:"zan",class:{'active': item.courseAskPraise},on:{"click":function($event){$event.stopPropagation();return _vm.qaLike(item, 2)}}},[_vm._v("\n                      "+_vm._s(item.askLikesNum)+"\n                      "),(item.courseAskPraise === 0)?_c('img',{attrs:{"src":__webpack_require__(837),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(838),"alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"down"},[_vm._v("\n                    "+_vm._s(item.askContent)+"\n                  ")]),_vm._v(" "),_c('div',{staticClass:"ask-img"},_vm._l((item.askPicList),function(img2,imgInd2){return _c('img',{key:imgInd2,attrs:{"src":img2,"alt":"回复图片"},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(img2, item.askPicList, imgInd2)}}})}),0)])]):_vm._e()])])})],2):_vm._e(),_vm._v(" "),(!_vm.courseQaList.length && _vm.courseQaListLoad)?_c('div',{attrs:{"id":"no-exp"}},[_c('img',{attrs:{"src":__webpack_require__(2633),"alt":""}}),_vm._v("\n          有疑问，快来问问讲师吧\n        ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"write-ask",style:({'bottom': _vm.courseDetail.courseStatusByCurrentUser !== 5 ? '3.6rem' : '1.6rem'}),on:{"click":function($event){$event.stopPropagation();return _vm.showPopFn(1)}}},[_c('i'),_vm._v("写提问\n        ")])],1),_vm._v(" "),(_vm.curIndex === 4)?_c('div',{staticClass:"ask",staticStyle:{"height":"100%"}},[_c('div',{staticClass:"ask-tit"},[_c('p',[_vm._v("精选心得")]),_vm._v(" "),_c('div',{staticClass:"sort-box"},[_c('span',{class:{'act': _vm.expOrderCase === 2},on:{"click":function($event){return _vm.expSort(2)}}},[_vm._v("点赞排序")]),_vm._v(" "),_c('i'),_vm._v(" "),_c('span',{class:{'act': _vm.expOrderCase === 1},on:{"click":function($event){return _vm.expSort(1)}}},[_vm._v("时间排序")])])]),_vm._v(" "),_c('div',{staticClass:"list-box",attrs:{"id":"list-box"},on:{"scroll":function($event){return _vm.expScroll($event)}}},[_c('ExperienList',{ref:"experienList",staticClass:"mescroll-touch",attrs:{"save-position":true,"page":"fms","tab-index":2,"scroll-top":_vm.expScrolltop}})],1),_vm._v(" "),_c('div',{staticClass:"write-ask",style:({'bottom': _vm.courseDetail.courseStatusByCurrentUser !== 5 ? '3.6rem' : '1.6rem'}),on:{"click":function($event){$event.stopPropagation();return _vm.showPopFn(2)}}},[_c('i'),_vm._v("写心得\n        ")])]):_vm._e()],1),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false}}},[_c('div',{staticClass:"shareTips"},[_c('van-icon',{attrs:{"name":"down"}}),_vm._v(" "),_c('p',[_vm._v("点击右上角分享")])],1)]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"popup-container mescroll-touch",attrs:{"position":"bottom","round":true,"close-on-click-overlay":false},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"pop-tit"},[_vm._v("\n        "+_vm._s(_vm.curWareItem.classHourName)+"\n        "),_c('i',{on:{"click":function($event){_vm.showPopup = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{ref:"warepopBox",staticClass:"pop-box"},[(!_vm.pdfLoaded)?_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/common/loading.gif","alt":"loading"}}):_vm._e(),_vm._v(" "),_vm._l((_vm.pdfNumPages),function(i){return _c('pdf',{key:i,staticStyle:{"display":"inline-block","width":"100%"},attrs:{"src":_vm.curWareItem.classHourUrl,"page":i},on:{"loaded":_vm.pdfLoaded}})})],2)]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container mescroll-touch",attrs:{"position":"bottom","round":true,"close-on-click-overlay":false},model:{value:(_vm.showPopup2),callback:function ($$v) {_vm.showPopup2=$$v},expression:"showPopup2"}},[_c('div',{staticClass:"pop-tit"},[_vm._v("\n        "+_vm._s(_vm.nowPopObj.text)+"\n        "),_c('i',{on:{"click":function($event){_vm.showPopup2 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"comm-box"},[_c('Common',{ref:"courseComm",attrs:{"type":_vm.nowPopObj.type},on:{"addQaSuccess":_vm.addQaEnd,"addExpSuccess":_vm.addExpEnd}})],1)]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container mescroll-touch",attrs:{"position":"bottom","round":true,"close-on-click-overlay":false},model:{value:(_vm.showPopup3),callback:function ($$v) {_vm.showPopup3=$$v},expression:"showPopup3"}},[_c('div',{staticClass:"pop-tit"},[_vm._v("\n        排行榜\n        "),_c('i',{on:{"click":function($event){_vm.showPopup3 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"comm-box"},[_c('RankList',{ref:"ranklist",attrs:{"rank-id":_vm.rankId,"course-detail":_vm.courseDetail}})],1)]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container mescroll-touch",attrs:{"position":"bottom","round":true,"close-on-click-overlay":false},model:{value:(_vm.showPopup4),callback:function ($$v) {_vm.showPopup4=$$v},expression:"showPopup4"}},[_c('div',{staticClass:"pop-tit"},[_vm._v("\n        我的学分\n        "),_c('i',{on:{"click":function($event){_vm.showPopup4 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"comm-box"},[_c('Score',{ref:"score",attrs:{"rank-id":"6"}})],1)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.userList.length && _vm.courseDetail.courseStatusByCurrentUser !== 5),expression:"userList.length && courseDetail.courseStatusByCurrentUser !== 5"}],staticClass:"uesrmaq",class:{'no-text': !_vm.maqText}},[_c('Marquee',{attrs:{"user-list":_vm.userList,"show-mask":_vm.isShowMask}})],1),_vm._v(" "),_c('van-popup',{staticClass:"popup-container mescroll-touch wxtip",attrs:{"position":"bottom","round":true,"close-on-click-overlay":false},model:{value:(_vm.showPopup5),callback:function ($$v) {_vm.showPopup5=$$v},expression:"showPopup5"}},[_c('div',{staticClass:"pop-tit"},[_vm._v("\n        小程序暂不支持观看课程\n        "),_c('i',{on:{"click":function($event){_vm.showPopup5 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"comm-box"},[_c('div',{staticClass:"tips"},[_vm._v("请在APP内查看直播")]),_vm._v(" "),_c('img',{attrs:{"src":"https://static2.kaxiuyun.com/wx-app/downApp.png"}}),_vm._v(" "),_c('div',{staticClass:"tips2"},[_vm._v("截图并长按识别二维码，即可下载APP")])])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"video-btn"},[_c('img',{attrs:{"src":__webpack_require__(170),"alt":""}})])}]
module.exports = __webpack_require__.p + "static/img/play2.16532af.png";module.exports = __webpack_require__.p + "static/img/lock.ae38381.png";module.exports = __webpack_require__.p + "static/img/lock.9dd2abb.png";module.exports = __webpack_require__.p + "static/img/noQa.bb3d30d.png";module.exports = __webpack_require__.p + "static/img/play.8138297.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(451);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_95f5c056_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1050);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2634)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-95f5c056"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_95f5c056_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_95f5c056_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerManage_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2635);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("821941a0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mask1[data-v-95f5c056]{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none}#imgshow[data-v-95f5c056]{position:absolute;width:100%;height:auto;top:50%;left:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}.outContainer[data-v-95f5c056]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%}.outContainer .main[data-v-95f5c056]{overflow:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f2f2f2}.outContainer .main>.stationInfo[data-v-95f5c056]{background-color:#fff}.outContainer .main>.stationInfo>.top[data-v-95f5c056]{height:94px;border-bottom:1px solid #e6e6e6;padding-top:16px;box-sizing:border-box;position:relative}.outContainer .main>.stationInfo>.top>span[data-v-95f5c056]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:27px;font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer .main>.stationInfo>.top>img[data-v-95f5c056]{width:62px;height:62px;border-radius:4px;float:left;margin-left:12px}.outContainer .main>.stationInfo>.top>div.rightContent[data-v-95f5c056]{margin-left:86px}.outContainer .main>.stationInfo>.top>div.rightContent>div[data-v-95f5c056]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333;margin-top:3px}.outContainer .main>.stationInfo>.top>div.rightContent>div[data-v-95f5c056]:nth-child(2){font-family:PingFangSC-Regular;font-size:16px;color:#666;margin-top:3px}.outContainer .main>.stationInfo>.top>div.rightContent>div:nth-child(2) span[data-v-95f5c056]{font-family:PingFangSC-Regular;font-size:16px;color:#666;line-height:1}.outContainer .main>.stationInfo>.top[data-v-95f5c056]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer .main>.stationInfo>.bottom[data-v-95f5c056]{height:65px;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}.outContainer .main>.stationInfo>.bottom>div[data-v-95f5c056]{margin-top:8px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;position:relative}.outContainer .main>.stationInfo>.bottom>div>p[data-v-95f5c056]:first-of-type{font-family:PingFangSC-Semibold;font-size:20px;color:#333}.outContainer .main>.stationInfo>.bottom>div>p[data-v-95f5c056]:nth-of-type(2){font-family:PingFangSC-Semibold;font-size:14px;color:#787878}.outContainer .main>.stationInfo>.bottom[data-v-95f5c056]:before{left:33.33%}.outContainer .main>.stationInfo>.bottom[data-v-95f5c056]:after,.outContainer .main>.stationInfo>.bottom[data-v-95f5c056]:before{content:\"\";position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:32px;width:1px;background-color:#d9d8d8}.outContainer .main>.stationInfo>.bottom[data-v-95f5c056]:after{left:66.66%}.outContainer .main>.activity[data-v-95f5c056]{margin-top:10px;background-color:#fff}.outContainer .main>.activity>.title[data-v-95f5c056]{height:46px;border-bottom:1px solid #e6e6e6;overflow:hidden;position:relative}.outContainer .main>.activity>.title>p[data-v-95f5c056]{line-height:1;margin-top:15px;padding-left:8px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:4px solid #ee4545}.outContainer .main>.activity>.content>div[data-v-95f5c056]{position:relative;height:54px;line-height:54px}.outContainer .main>.activity>.content>div img[data-v-95f5c056]{position:absolute;left:12px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main>.activity>.content>div>.rightContent[data-v-95f5c056]{margin-left:44px;font-family:PingFangSC-Regular;font-size:18px;color:#333;border-bottom:1px solid #e6e6e6;box-sizing:border-box}.outContainer .main>.activity>.content>div>.rightContent>span[data-v-95f5c056]{display:inline-block;line-height:16px;border-radius:50px;text-align:center;color:#fff;padding:1px 5px;background-image:linear-gradient(45deg,#acb3bf,#727a88);font-family:PingFangSC-Regular;font-size:10px;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:27px}.outContainer .main>.activity>.content>div>.rightContent>span.underway[data-v-95f5c056]{background-image:linear-gradient(45deg,#ff966c,#ee4545)}.outContainer .main>.activity>.content>div[data-v-95f5c056]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer .main>.activity>.content>div:last-child > .rightContent[data-v-95f5c056]{border-bottom:none}.outContainer .main>.operation[data-v-95f5c056]{margin-top:10px;background-color:#fff}.outContainer .main>.operation>.title[data-v-95f5c056]{height:46px;border-bottom:1px solid #e6e6e6;overflow:hidden;position:relative}.outContainer .main>.operation>.title>p[data-v-95f5c056]{line-height:1;margin-top:15px;padding-left:8px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:4px solid #ee4545}.outContainer .main>.operation>.title>span[data-v-95f5c056]{float:right;margin-top:13px;margin-right:22px;font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer .main>.operation>.title[data-v-95f5c056]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer .main>.operation>.itemList[data-v-95f5c056]{padding-left:12px}.outContainer .main>.operation>.itemList>div[data-v-95f5c056]{padding-top:12px;padding-bottom:12px;border-bottom:1px solid #e6e6e6;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;padding-right:8px}.outContainer .main>.operation>.itemList>div[data-v-95f5c056]:last-child{border-bottom:none}.outContainer .main>.recentInfo[data-v-95f5c056]{margin-top:10px;background-color:#fff}.outContainer .main>.recentInfo>.title[data-v-95f5c056]{height:46px;border-bottom:1px solid #e6e6e6;overflow:hidden;position:relative}.outContainer .main>.recentInfo>.title>p[data-v-95f5c056]{line-height:1;margin-top:15px;padding-left:8px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:4px solid #ee4545}.outContainer .main>.recentInfo>.title>p>span[data-v-95f5c056]:first-of-type{display:inline-block;font-family:PingFangSC-Regular;font-size:14px;color:#787878}.outContainer .main>.recentInfo>.title>p>span[data-v-95f5c056]:nth-of-type(2){position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:72px;height:28px;line-height:28px;border-radius:2px;color:#fff;font-family:PingFangSC-Regular;font-size:16px;text-align:center;background-color:#ee4545}.outContainer .main>.recentInfo .itemList>.item[data-v-95f5c056]{padding:16px 11px 20px 12px;border-bottom:1px solid #d9d9e2}.outContainer .main>.recentInfo .itemList>.item>p[data-v-95f5c056]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .main>.recentInfo .itemList>.item>.imageList[data-v-95f5c056]{width:80%;margin-top:10px}.outContainer .main>.recentInfo .itemList>.item>.imageList>img[data-v-95f5c056]{width:80px;height:80px;display:inline-block;margin-right:5px;margin-bottom:5px}.outContainer .main>.recentInfo .itemList>.item>.time[data-v-95f5c056]{font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer .main>.recentInfo .itemList>.item[data-v-95f5c056]:last-child{border-bottom:none}.outContainer .bottomBtn[data-v-95f5c056]{height:49px;line-height:49px;text-align:center;font-family:PingFangSC-Regular;font-size:20px;color:#fff;background-color:#ee4545}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/bback1.5674801.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _alloyfinger = _interopRequireDefault(__webpack_require__(121));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      stationInfo: '',
      articleList: [],
      dynamicList: [],
      pageIndex: 1,
      pageSize: 10,
      allLoaded: false,
      loading: false,
      customerNum: 0,
      fanNum: 0,
      bookCount: 0,
      isReward: '',
      isActivity: '',
      userId: ''
    };
  },
  mounted: function mounted() {
    this.getStationInfo();
    this.getArticleList();
    this.getStationDynamic();
    this.previewPicture();
  },
  methods: {
    /** 回到客户列表页面 */goBack: function goBack() {
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    /** 进入我的粉丝页面 */goFanList: function goFanList() {
      this.$router.push({
        name: 'fansList',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 进入悬赏令页面 */goRewardToken: function goRewardToken() {
      if (this.isReward == 1) {
        this.$router.push({
          name: 'rewardTokenUnderway',
          query: {
            stationId: this.$route.query.stationId
          }
        });
      } else if (this.isReward == 0) {
        this.$router.push({
          name: 'rewardToken',
          query: {
            stationId: this.$route.query.stationId
          }
        });
      }
    },
    /** 到店活动页面 */goArrivalActivity: function goArrivalActivity() {
      this.$router.push({
        name: 'arrivalActivity',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 删除当前动态 */delDynamic: function delDynamic(dynamicId) {
      var _this = this;
      _mintUi.MessageBox.confirm('确定删除?').then(function (action) {
        _this._Util.post(_this._Api.POST_CUSTOMER_DEL_DYNAMIC_SINGLE, {
          dynamicId: dynamicId
        }, function (data) {
          console.log(data);
          (0, _mintUi.Toast)({
            message: '删除成功',
            position: 'middle',
            duration: 1500
          });
          _this.pageIndex = 1;
          _this.allLoaded = false;
          _this.dynamicList = [];
          _this.getStationDynamic();
        }, function () {}, _this);
      }).catch(function (err) {
        console.log(err);
      });
    },
    /** 图片预览方法 */previewPicture: function previewPicture() {
      (0, _jquery.default)('body').delegate('.imgC', 'click', function () {
        (0, _jquery.default)('.mask1').show();
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'scale(0)';
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'translateX(-50%) translateY(-50%)';
        var src = (0, _jquery.default)(this).attr('src');
        if (src.indexOf('?imageView2') != -1) {
          src = src.replace('?imageView2/1/w/150/h/150', '');
        }
        (0, _jquery.default)('#imgshow').attr('src', src);
        //                let maskHi = ($('#imgshow').height()) / 2
        //                $('#imgshow').css('marginTop', (-maskHi))
      });
      (0, _jquery.default)('body').delegate('.mask1', 'click', function () {
        (0, _jquery.default)('.mask1').hide();
      });
      var el = document.getElementById('imgshow');
      var initScale = 1;
      var sc = 1;
      var mox, moy;
      // eslint-disable-next-line no-unused-vars
      var af = new _alloyfinger.default(el, {
        touchStart: function touchStart() {
          mox = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[4]);
          moy = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[5]);
        },
        pressMove: function pressMove(evt) {
          mox += evt.deltaX;
          moy += evt.deltaY;
          el.style.webkitTransform = 'translateX(' + mox + 'px) translateY(' + moy + 'px) scale(' + sc + ')';
          evt.preventDefault();
        },
        pinch: function pinch(evt) {
          sc = initScale * evt.zoom;
          el.style.webkitTransform = 'scale(' + sc + ')';
          //                if(sc< 0.5){
          //                  el.style.webkitTransform = 'scale(0.5)'
          //                } else{
          //                  el.style.webkitTransform = 'scale('+ sc +')'
          //                }
        },
        multipointStart: function multipointStart() {
          initScale = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[0]);
        }
      });
    },
    /** 滚动加载更多动态 */loadMore: function loadMore() {
      if (!this.allLoaded && !this.loading) {
        this.loading = true;
        this.getStationDynamic();
      }
    },
    /** 获取动态信息 */getStationDynamic: function getStationDynamic() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CUSTOMER_STATION_DYNAMIC_LIST, {
        pageIndex: this.pageIndex,
        pageSize: this.pageSize,
        stationId: this.$route.query.stationId
      }, function (data) {
        console.log(data);
        if (data) {
          if (data.sStationDynamicList.length < _this2.pageSize) {
            _this2.allLoaded = true;
          } else {
            _this2.pageIndex++;
          }
          data.sStationDynamicList.forEach(function (val) {
            _this2.dynamicList.push(val);
          });
          _this2.loading = false;
        }
      }, function () {}, this);
    },
    /** 发动态 */sendDynamic: function sendDynamic() {
      this.$router.push({
        name: 'dynamic',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 进入记账统计页面 */goBookKeeping: function goBookKeeping() {
      this.$router.push({
        name: 'bookkeeping',
        query: {
          stationId: this.$route.query.stationId,
          userId: this.userId
        }
      });
    },
    /** 获取小轨讲运营文章列表 */getArticleList: function getArticleList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_CUSTOMER_OPERATION_ARTICLE_LIST, {
        code: 'app_document_list',
        pageSize: 2,
        pageNum: 1
      }, function (data) {
        _this3.articleList = data.dataList;
      }, function () {}, this);
    },
    /** 获取店铺信息 */getStationInfo: function getStationInfo() {
      var _this4 = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_STATION_INFO, {}, function (data) {
        if (data) {
          _this4.stationInfo = data.serviceStation;
          _this4.isReward = data.isReward;
          _this4.isActivity = data.isActivity;
          _this4.userId = data.userId;
          _this4.fanNum = data.fansCount;
          _this4.bookCount = data.bookCount;
          _this4.customerNum = data.customerCount;
        }
      }, function () {}, this);
    },
    /** 进入小轨讲运营页面 */goOperationList: function goOperationList() {
      this.$router.push({
        name: 'operationList'
      });
    },
    /** 进入店铺名片 */goBusinessCard: function goBusinessCard() {
      this.$router.push({
        name: 'businessCard',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 进入营销管理页面 */goMarketing: function goMarketing() {
      this.$router.push({
        name: 'marketing',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 进入客户资料页面 */goCustomerDetail: function goCustomerDetail() {
      this.$router.push({
        name: 'customerDetail',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 打开文章详情 */openDetail: function openDetail(url) {
      var that = this;
      if (that._Util.isApp()) {
        that._Util.acSendEvent({
          name: 'acOpenFrm',
          extra: {
            url: url
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_vm._m(0),_vm._v(" "),_c('div',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"main",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"loading","infinite-scroll-distance":"10"}},[_c('div',{staticClass:"stationInfo"},[_c('div',{staticClass:"top",on:{"click":_vm.goBusinessCard}},[_c('span',[_vm._v("发名片")]),_vm._v(" "),_c('img',{attrs:{"src":_vm.stationInfo.shopHead,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(_vm.stationInfo.shopName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.stationInfo.linkman)+" "+_vm._s(_vm.stationInfo.phone))])])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":_vm.goBack}},[_c('p',[_vm._v(_vm._s(_vm.customerNum))]),_vm._v(" "),_c('p',[_vm._v("客户(人)")])]),_vm._v(" "),_c('div',{on:{"click":_vm.goFanList}},[_c('p',[_vm._v(_vm._s(_vm.fanNum))]),_vm._v(" "),_c('p',[_vm._v("粉丝(人)")])]),_vm._v(" "),_c('div',{on:{"click":_vm.goBookKeeping}},[_c('p',[_vm._v(_vm._s(_vm.bookCount))]),_vm._v(" "),_c('p',[_vm._v("记账(笔)")])])])]),_vm._v(" "),_c('div',{staticClass:"activity"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',[_c('img',{staticStyle:{"width":"20px","height":"19px"},attrs:{"src":__webpack_require__(2636),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent",on:{"click":_vm.goArrivalActivity}},[_vm._v("\n            到店活动\n            "),(_vm.isActivity===1)?_c('span',{staticClass:"underway"},[_vm._v("进行中")]):_vm._e(),_vm._v(" "),(_vm.isActivity===0)?_c('span',[_vm._v("未开启")]):_vm._e()])]),_vm._v(" "),_c('div',[_c('img',{staticStyle:{"width":"20px","height":"19px"},attrs:{"src":__webpack_require__(2637),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent",on:{"click":_vm.goRewardToken}},[_vm._v("\n            悬赏令\n            "),(_vm.isReward===1)?_c('span',{staticClass:"underway"},[_vm._v("进行中")]):_vm._e(),_vm._v(" "),(_vm.isReward===0)?_c('span',[_vm._v("未开启")]):_vm._e()])]),_vm._v(" "),(_vm.articleList[0] && _vm.articleList[0].documenturl)?_c('div',[_c('img',{staticStyle:{"width":"20px","height":"19px"},attrs:{"src":__webpack_require__(2638),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent",on:{"click":_vm.goOperationList}},[_vm._v("\n            小轨讲运营\n          ")])]):_vm._e()])]),_vm._v(" "),(_vm.articleList[0] && _vm.articleList[0].documenturl)?_c('div',{staticClass:"operation"},[_c('div',{staticClass:"title"},[_c('span',{staticClass:"more",on:{"click":_vm.goOperationList}},[_vm._v("查看更多")]),_vm._v(" "),_c('p',[_vm._v("小轨讲运营")])]),_vm._v(" "),_c('div',{staticClass:"itemList"},_vm._l((_vm.articleList),function(item,index){return _c('div',{key:index,on:{"click":function($event){return _vm.openDetail(item.documenturl)}}},[_vm._v(_vm._s(item.documenttitle))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"recentInfo"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("我的动态 "),_c('span',[_vm._v("(司机可见)")]),_vm._v(" "),_c('span',{on:{"click":_vm.sendDynamic}},[_vm._v("发动态")])])]),_vm._v(" "),(_vm.dynamicList.length !== 0)?_c('div',[_c('ul',{staticClass:"itemList"},_vm._l((_vm.dynamicList),function(item,index){return _c('li',{key:index,staticClass:"item"},[_c('p',[_vm._v(_vm._s(item.content))]),_vm._v(" "),_c('div',{staticClass:"imageList"},_vm._l((item.imageList),function(item2,index2){return _c('img',{key:index2,staticClass:"imgC",attrs:{"src":item2,"alt":""}})}),0),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v("\n              "+_vm._s(item.createTime)+" "),_c('span',{staticStyle:{"font-size":"14px","margin-left":"20px","color":"#246DF1"},on:{"click":function($event){return _vm.delDynamic(item.id)}}},[_vm._v("删除")])])])}),0),_vm._v(" "),(!_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","font-size":"14px","color":"#999","height":"50px","line-height":"50px"}},[_vm._v("加载中")]):_vm._e()]):_c('div',[(_vm.allLoaded)?_c('div',{staticStyle:{"text-align":"center","font-size":"14px","color":"#999","height":"50px","line-height":"50px"}},[_vm._v("暂无动态")]):_vm._e()])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask1"},[_c('img',{attrs:{"id":"imgshow"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('p',[_vm._v("我的活动")])])}]
module.exports = __webpack_require__.p + "static/img/到店.cfcb583.png";module.exports = __webpack_require__.p + "static/img/悬赏.e5487a5.png";module.exports = __webpack_require__.p + "static/img/运营.16532af.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(452);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4c839fbc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1051);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2639)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4c839fbc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4c839fbc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4c839fbc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myFansList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2640);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1851cfcf", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fade-enter-active[data-v-4c839fbc],.fade-leave-active[data-v-4c839fbc]{-webkit-transition:opacity .5s;transition:opacity .5s}.fade-enter[data-v-4c839fbc],.fade-leave-to[data-v-4c839fbc]{opacity:0}.outContainer[data-v-4c839fbc]{height:100%;background-color:#f2f2f2}.outContainer .maskLayer[data-v-4c839fbc]{position:fixed;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.outContainer .maskLayer>.strategyContainer[data-v-4c839fbc]{background-color:#fff;position:absolute;width:80%;top:30%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:12px}.outContainer .maskLayer>.strategyContainer>.title[data-v-4c839fbc]{width:100%;text-align:center;padding-top:16px;padding-bottom:16px}.outContainer .maskLayer>.strategyContainer>.title>p[data-v-4c839fbc]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .maskLayer>.strategyContainer>.content[data-v-4c839fbc]{padding-bottom:14px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px;text-align:left;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;line-height:18px}.outContainer .maskLayer>.strategyContainer>.content>div[data-v-4c839fbc]{font-family:PingFangSC-Regular;font-size:16px;color:#333;margin-bottom:10px}.outContainer .maskLayer>.strategyContainer>.bottom[data-v-4c839fbc]{overflow:hidden}.outContainer .maskLayer>.strategyContainer>.bottom>div[data-v-4c839fbc]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#ee4545;width:100%;float:left;position:relative}.outContainer>.title[data-v-4c839fbc]{background-color:#fff;height:48px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.title>p[data-v-4c839fbc]{left:0;line-height:1;font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:4px solid #ee4545;text-indent:8px}.outContainer>.title>div[data-v-4c839fbc],.outContainer>.title>p[data-v-4c839fbc]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer>.title>div[data-v-4c839fbc]{right:12px;width:72px;height:26px;line-height:26px;text-align:center;border:1px solid #ee4545;border-radius:50px;font-family:PingFangSC-Regular;font-size:13px;color:#ee4545}.outContainer>.fansList[data-v-4c839fbc]{background-color:#fff;padding-left:16px}.outContainer>.fansList>.item[data-v-4c839fbc]{height:69px;border-bottom:1px solid #d9d9e2;padding-top:13px}.outContainer>.fansList>.item>img[data-v-4c839fbc]{float:left;width:44px;height:44px;border-radius:4px}.outContainer>.fansList>.item>.rightContent[data-v-4c839fbc]{margin-left:56px}.outContainer>.fansList>.item>.rightContent>div[data-v-4c839fbc]:first-of-type{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.fansList>.item>.rightContent>div[data-v-4c839fbc]:nth-of-type(2){font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer>.fansList>.item[data-v-4c839fbc]:last-child{border-bottom:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Spinner: _mintUi.Spinner
  },
  data: function data() {
    return {
      tipsContent: '',
      isShowTips: false,
      pageSize: 15,
      pageIndex: 1,
      allLoaded: false,
      loading: false,
      fansList: []
    };
  },
  mounted: function mounted() {
    this.getFans();
  },
  methods: {
    /** 展示粉丝说明 */showTips: function showTips() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'fans_introduce',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.tipsContent = data.dataList[0].text;
          _this.isShowTips = true;
        }
      }, function () {}, this);
    },
    /** 滚动加载更多动态 */loadMore: function loadMore() {
      if (!this.allLoaded && !this.loading) {
        this.getFans();
      }
    },
    /** 获取粉丝列表 */getFans: function getFans() {
      var _this2 = this;
      this.loading = true;
      this._Util.post(this._Api.POST_CUSTOMER, {
        status: 1,
        stationId: this.$route.query.stationId,
        pageSize: this.pageSize,
        pageIndex: this.pageIndex
      }, function (data) {
        if (data) {
          if (data.userList.length < _this2.pageSize) {
            _this2.allLoaded = true;
          } else {
            _this2.pageIndex++;
          }
          data.userList.forEach(function (val) {
            _this2.fansList.push(val);
          });
          _this2.loading = false;
        }
      }, function () {}, this, false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('transition',{attrs:{"name":"fade"}},[(_vm.isShowTips)?_c('div',{staticClass:"maskLayer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("粉丝说明")])]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.tipsContent)}},[_c('div',[_vm._v("1.查看过名片等维修站信息的司机均会成为粉丝")]),_vm._v(" "),_c('div',[_vm._v("2.粉丝只有使用微信扫专属二维码后成为客户")])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){_vm.isShowTips=false;}}},[_vm._v("我知道了")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"title"},[_c('p',[_vm._v("粉丝与推荐人")]),_vm._v(" "),_c('div',{on:{"click":_vm.showTips}},[_vm._v("粉丝说明")])]),_vm._v(" "),_c('div',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"fansList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"loading","infinite-scroll-distance":"10"}},_vm._l((_vm.fansList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('img',{attrs:{"src":item.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(item.customerName || item.nickName))]),_vm._v(" "),_c('div',[_vm._v("推荐人："+_vm._s(item.refereeUser))])])])}),0),_vm._v(" "),(_vm.fansList.length === 0)?_c('div',{staticStyle:{"text-align":"center","font-size":"14px","margin-top":"40px","color":"#999"}},[_vm._v("暂无粉丝")]):_vm._e(),_vm._v(" "),(_vm.loading)?_c('div',{staticStyle:{"text-align":"center","padding":"10px 0"}},[_c('mt-spinner',{attrs:{"size":30,"color":"rgb(38, 162, 255)","type":"triple-bounce"}})],1):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(453);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62e25241_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1052);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2641)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-62e25241"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62e25241_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62e25241_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2642);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("26fc4a41", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-62e25241]{height:100%;background-color:#f2f2f2;overflow:auto}.outContainer>.acticleList[data-v-62e25241]{background-color:#fff;padding-left:12px}.outContainer>.acticleList>.item[data-v-62e25241]{padding-top:13px;padding-bottom:13px;border-bottom:1px solid #e6e6e6;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.acticleList>.item[data-v-62e25241]:last-child{border-bottom:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    InfiniteScroll: _mintUi.InfiniteScroll
  },
  data: function data() {
    return {
      articleList: [],
      loading: false,
      allLoaded: false,
      pageSize: 15,
      pageNum: 1
    };
  },
  mounted: function mounted() {
    this.getArticleList();
  },
  methods: {
    /** 滚动加载更多内容 */loadMore: function loadMore() {
      if (!this.allLoaded && !this.loading) {
        this.loading = true;
        this.getArticleList();
      }
    },
    /** 获取小轨讲运营文章列表 */getArticleList: function getArticleList() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_OPERATION_ARTICLE_LIST, {
        code: 'app_document_list',
        pageSize: this.pageSize,
        pageNum: this.pageNum
      }, function (data) {
        if (data.dataList.length < _this.pageSize) {
          _this.allLoaded = true;
        } else {
          _this.pageNum++;
        }
        data.dataList.forEach(function (val) {
          _this.articleList.push(val);
        });
        _this.loading = false;
      }, function () {}, this);
    },
    /** 文章详情 */
    // goDetail(url) {
    //   this.$router.push({
    //     name: 'acticleDetail',
    //     query: {
    //       url: url
    //     }
    //   })
    // },
    /** 打开文章详情 */
    openDetail: function openDetail(url) {
      var that = this;
      if (that._Util.isApp()) {
        that._Util.acSendEvent({
          name: 'acOpenFrm',
          extra: {
            url: url
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('ul',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"acticleList",attrs:{"infinite-scroll-disabled":"loading","infinite-scroll-immediate-check":true,"infinite-scroll-distance":"10"}},_vm._l((_vm.articleList),function(item,index){return _c('li',{key:index,staticClass:"item",on:{"click":function($event){return _vm.openDetail(item.documenturl)}}},[_vm._v(_vm._s(item.documenttitle))])}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(454);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e8521c5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1053);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e8521c5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e8521c5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_articleDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {};
  },
  mounted: function mounted() {
    this.getOutPage();
  },
  methods: {
    getOutPage: function getOutPage() {
      this.$http.get(this.$route.query.url).then(function (res) {
        console.log(res.data);
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v("\n  这里是小轨讲运营里面的文章的详情页\n")])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(455);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_15e05e18_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1054);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2643)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-15e05e18"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_15e05e18_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_15e05e18_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_businessCard_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2644);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("25e47588", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-15e05e18]{overflow:hidden;height:100%;background-color:#f2f2f2}.outContainer>.shopHead[data-v-15e05e18]{margin-top:10px;position:relative;height:70px;line-height:70px;padding-left:16px;background-color:#fff}.outContainer>.shopHead>p[data-v-15e05e18]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.shopHead>img[data-v-15e05e18]{float:right;margin-right:25px;margin-top:10px;width:50px;height:50px;border-radius:50%}.outContainer>.shopHead[data-v-15e05e18]:before{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer>.shopInfo[data-v-15e05e18]{margin-top:10px;background-color:#fff;padding-left:16px}.outContainer>.shopInfo>div[data-v-15e05e18]{position:relative;height:52px;line-height:52px;border-bottom:1px solid #e6e6e6}.outContainer>.shopInfo>div>.label[data-v-15e05e18]{font-family:PingFangSC-Regular;font-size:16px;color:#333;float:left}.outContainer>.shopInfo>div>.rightContent[data-v-15e05e18]{float:right;text-align:right;margin-right:25px;width:60%}.outContainer>.shopInfo>div>.rightContent>div[data-v-15e05e18]{font-family:PingFangSC-Regular;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer>.shopInfo>div>.rightContent>.content[data-v-15e05e18]{color:#333}.outContainer>.shopInfo>div[data-v-15e05e18]:last-child{border-bottom:none}.outContainer>.shopInfo>div[data-v-15e05e18]:nth-child(2):before{background-image:url(" + escape(__webpack_require__(46)) + ")}.outContainer>.shopInfo>div[data-v-15e05e18]:nth-child(2):before,.outContainer>.shopInfo>div[data-v-15e05e18]:nth-child(3):before{content:\"\";width:7px;height:12px;background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer>.shopInfo>div[data-v-15e05e18]:nth-child(3):before{background-image:url(" + escape(__webpack_require__(46)) + ")}.outContainer>.shopInfo>div[data-v-15e05e18]:nth-child(4):before{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer>.business[data-v-15e05e18]{margin-top:10px;background-color:#fff;padding-left:16px;position:relative;height:52px;line-height:52px}.outContainer>.business>.label[data-v-15e05e18]{font-family:PingFangSC-Regular;font-size:16px;color:#333;float:left}.outContainer>.business>.rightContent[data-v-15e05e18]{float:right;text-align:right;margin-right:25px;width:60%}.outContainer>.business>.rightContent>div[data-v-15e05e18]{font-family:PingFangSC-Regular;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer>.business>.rightContent>.content[data-v-15e05e18]{color:#333}.outContainer>.business[data-v-15e05e18]:before{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer>.shopImg[data-v-15e05e18]{margin-top:10px;background-color:#fff;padding-left:16px;position:relative;height:52px;line-height:52px}.outContainer>.shopImg>.label[data-v-15e05e18]{font-family:PingFangSC-Regular;font-size:16px;color:#333;float:left}.outContainer>.shopImg>.rightContent[data-v-15e05e18]{float:right;text-align:right;margin-right:25px}.outContainer>.shopImg>.rightContent>div[data-v-15e05e18]{font-family:PingFangSC-Regular;font-size:16px}.outContainer>.shopImg>.rightContent>.content[data-v-15e05e18]{color:#333}.outContainer>.shopImg[data-v-15e05e18]:before{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer>.button[data-v-15e05e18]{margin-top:10px;padding-left:12px;padding-right:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.outContainer>.button>div[data-v-15e05e18]{height:44px;line-height:44px;width:132px;border:1px solid #c9c9c9;border-radius:3px;font-family:PingFangSC-Regular;font-size:16px;color:#2d2f3c;margin-bottom:10px;text-indent:40px}.outContainer>.button>div[data-v-15e05e18]:first-of-type{background:#fff url(" + escape(__webpack_require__(1432)) + ") 10px 12px no-repeat;background-size:20px 20px}.outContainer>.button>div[data-v-15e05e18]:nth-of-type(2){background:#fff url(" + escape(__webpack_require__(1433)) + ") 10px 12px no-repeat;background-size:20px 20px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/pyq.ae1bbc8.png";module.exports = __webpack_require__.p + "static/img/wx.40f5af9.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _mintUi = __webpack_require__(7);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      stationInfo: '',
      shopUrl: '',
      sharePic: ''
    };
  },
  mounted: function mounted() {
    this.getStationInfo();
    this.getShopUrl();
  },
  methods: {
    /** 店铺名称点击提示 */showTips: function showTips() {
      (0, _mintUi.Toast)({
        message: '店铺名称暂不支持修改,有问题联系小轨',
        position: 'middle',
        duration: 1500
      });
    },
    /** 获取名片缩略图 */getShopUrl: function getShopUrl() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'app_card_share',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.shopUrl = data.dataList[0].url;
        }
      }, function () {}, this);
    },
    /** 发名片至微信群 */shareBusinessCard: function shareBusinessCard() {
      if (this.stationInfo.address.trim() == '') {
        (0, _mintUi.Toast)({
          message: '请输入店铺地址',
          position: 'middle',
          duration: 1500
        });
        return;
      } else if (this.stationInfo.linkman.trim() == '') {
        (0, _mintUi.Toast)({
          message: '请输入联系人信息',
          position: 'middle',
          duration: 1500
        });
        return;
      } else if (this.stationInfo.phone.trim() == '') {
        (0, _mintUi.Toast)({
          message: '请输入联系电话',
          position: 'middle',
          duration: 1500
        });
        return;
      } else if (this.stationInfo.shopIntroduce.trim() == '') {
        (0, _mintUi.Toast)({
          message: '请输入主营业务',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      var that = this;
      var wx = api.require('wx');
      var url = that.shopUrl;
      // "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2964894688,285851255&fm=27&gp=0.jpg";
      api.download({
        url: url,
        savePath: 'fs://stationCard.jpg',
        report: true,
        cache: false,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          // 下载成功
          wx.isInstalled(function (ret, err) {
            if (ret.installed) {
              wx.shareProgram({
                scene: 'session',
                title: that.stationInfo.shopName + '的名片',
                description: '',
                thumb: 'fs://stationCard.jpg',
                webpageUrl: 'https://test.kaxiuyun.com',
                userName: 'gh_efaff3788b28',
                path: 'pages/home/index?stationId=' + that.$route.query.stationId
              }, function (ret, err) {
                if (ret.status) {
                  (0, _mintUi.Toast)('分享成功');
                }
              });
            } else {
              (0, _mintUi.Toast)('当前设备未安装微信客户端');
            }
          });
        } else if (ret.state == 2) {
          (0, _mintUi.Toast)('服务站缩略图下载失败');
          // alert(JSON.stringify(ret));
        }
      });
    },
    /** 进入店铺头像页面 */goShopHead: function goShopHead() {
      this.$router.push({
        name: 'shopHead',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 进入店铺风采页面 */goShopImg: function goShopImg() {
      this.$router.push({
        name: 'shopImg',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 进入主营业务编辑页面 */goMainBusiness: function goMainBusiness() {
      this.$router.push({
        name: 'mainBusiness',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    },
    /** 弹出框 输入新的名片信息 */openMessageBox: function openMessageBox(msg) {
      var _this2 = this;
      var _inputValue = '';
      if (msg === '店铺地址') {
        _inputValue = this.stationInfo.address;
      } else if (msg === '联系电话') {
        _inputValue = this.stationInfo.phone;
      } else if (msg === '联系人') {
        _inputValue = this.stationInfo.linkman;
      }
      _mintUi.MessageBox.prompt(' ', msg, {
        inputPlaceholder: '请输入' + msg,
        inputValidator: function inputValidator(val) {
          return !!val;
        },
        inputValue: _inputValue,
        inputErrorMessage: '请输入' + msg
      }).then(function (_ref) {
        var value = _ref.value,
          action = _ref.action;
        console.log(value, action);
        if (msg === '店铺地址') {
          _this2.editStationInfo({
            address: value
          });
        } else if (msg === '联系电话') {
          _this2.editStationInfo({
            phone: value
          });
        } else if (msg === '联系人') {
          _this2.editStationInfo({
            linkman: value
          });
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /** 获取店铺信息 */getStationInfo: function getStationInfo() {
      var _this3 = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_STATION_INFO, {}, function (data) {
        console.log(data);
        if (data) {
          _this3.stationInfo = data.serviceStation;
          _this3.getSharePic();
        }
      }, function () {}, this);
    },
    /** 修改店铺信息 */editStationInfo: function editStationInfo(urlData) {
      var _this4 = this;
      this._Util.post(this._Api.POST_CUSTOMER_EDIT_STATION_INFO, _objectSpread({
        stationId: this.$route.query.stationId
      }, urlData), function (data) {
        console.log(data);
        if (data) {
          (0, _mintUi.Toast)({
            message: data,
            position: 'bottom',
            duration: 2000
          });
        }
        _this4.getStationInfo();
      }, function () {}, this);
    },
    // 获取维修站分享图片
    getSharePic: function getSharePic() {
      var that = this;
      this._Util.post(this._Api.POST_CUSTOMER_STATION_POSTER, {
        'stationId': that.stationInfo.stationId
      }, function (data) {
        console.log(data);
        if (data) {
          that.sharePic = data.posterUrl;
        }
      }, function () {}, this);
    },
    // 分享图片到朋友圈
    sharePics: function sharePics() {
      var that = this;
      var wx = api.require('wx');
      api.download({
        url: that.sharePic,
        savePath: 'fs://cardSharePic.jpg',
        report: true,
        cache: false,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          // 下载成功
          wx.isInstalled(function (ret, err) {
            if (ret.installed) {
              wx.shareImage({
                apiKey: '',
                scene: 'timeline',
                // thumb: 'widget://a.jpg',
                contentUrl: 'fs://cardSharePic.jpg'
              }, function (ret, err) {
                if (ret.status) {
                  (0, _mintUi.Toast)('分享成功');
                } else {
                  (0, _mintUi.Toast)('分享失败');
                }
              });
            } else {
              (0, _mintUi.Toast)('当前设备未安装微信客户端');
            }
          });
        } else if (ret.state == 2) {
          (0, _mintUi.Toast)('服务站分享海报下载失败');
          // alert(JSON.stringify(ret));
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"shopHead",on:{"click":_vm.goShopHead}},[_c('img',{attrs:{"src":_vm.stationInfo.shopHead,"alt":""}}),_vm._v(" "),_c('p',[_vm._v("店铺头像")])]),_vm._v(" "),_c('div',{staticClass:"shopInfo"},[_c('div',[_c('div',{staticClass:"label"},[_vm._v("店铺名称")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"content",staticStyle:{"font-weight":"bold"},on:{"click":_vm.showTips}},[_vm._v(_vm._s(_vm.stationInfo.shopName))])])]),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.openMessageBox('店铺地址')}}},[_c('div',{staticClass:"label"},[_vm._v("店铺地址")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(_vm.stationInfo.address ? _vm.stationInfo.address : '请输入地址'))])])]),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.openMessageBox('联系人')}}},[_c('div',{staticClass:"label"},[_vm._v("联系人")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(_vm.stationInfo.linkman ? _vm.stationInfo.linkman : '请输入联系人'))])])]),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.openMessageBox('联系电话')}}},[_c('div',{staticClass:"label"},[_vm._v("联系电话")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(_vm.stationInfo.phone ? _vm.stationInfo.phone : '请输入电话'))])])])]),_vm._v(" "),_c('div',{staticClass:"business",on:{"click":_vm.goMainBusiness}},[_c('div',{staticClass:"label"},[_vm._v("主营业务")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(_vm.stationInfo.shopIntroduce ? _vm.stationInfo.shopIntroduce : '请输入主营业务'))])])]),_vm._v(" "),_c('div',{staticClass:"shopImg",on:{"click":_vm.goShopImg}},[_c('div',{staticClass:"label"},[_vm._v("店铺风采")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(_vm.stationInfo.imageList && _vm.stationInfo.imageList.length)+"张图片")])])]),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","color":"#999","margin-top":"32px"}},[_vm._v("完善信息后，请点击以下方式发送名片")]),_vm._v(" "),_c('div',{staticClass:"button"},[_c('div',{on:{"click":_vm.sharePics}},[_vm._v("发到朋友圈")]),_vm._v(" "),_c('div',{on:{"click":_vm.shareBusinessCard}},[_vm._v("发到微信群")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(456);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_03db124b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1055);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2645)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-03db124b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_03db124b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_03db124b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mainBusiness_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2646);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("05afc910", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-03db124b]{height:100%;background-color:#f2f2f2}.outContainer>.textContainer[data-v-03db124b]{background-color:#fff;padding:16px 12px;box-sizing:border-box;margin-bottom:34px}.outContainer>.textContainer>textarea[data-v-03db124b]{width:100%;height:183px;background-color:#f2f2f2;border:1px solid #b9b9b9;border-radius:2px;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.button[data-v-03db124b]{padding-left:12px;padding-right:12px;height:49px;line-height:49px}.outContainer>.button>div[data-v-03db124b]{font-family:PingFangSC-Regular;font-size:18px;color:#fff;text-align:center;background:#ee4545;border-radius:5px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      shopIntroduce: ''
    };
  },
  mounted: function mounted() {
    this.getStationInfo();
  },
  methods: {
    /** 获取店铺信息 */getStationInfo: function getStationInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_STATION_INFO, {}, function (data) {
        console.log(data);
        if (data) {
          _this.shopIntroduce = data.serviceStation.shopIntroduce;
        }
      }, function () {}, this);
    },
    /** 修改店铺信息 */editStationInfo: function editStationInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CUSTOMER_EDIT_STATION_INFO, {
        stationId: this.$route.query.stationId,
        shopIntroduce: this.shopIntroduce
      }, function (data) {
        console.log(data);
        if (data) {
          (0, _mintUi.Toast)({
            message: '保存成功',
            position: 'bottom',
            duration: 1500
          });
        }
        _this2.getStationInfo();
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"textContainer"},[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.shopIntroduce),expression:"shopIntroduce"}],domProps:{"value":(_vm.shopIntroduce)},on:{"input":function($event){if($event.target.composing){ return; }_vm.shopIntroduce=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"button"},[_c('div',{on:{"click":_vm.editStationInfo}},[_vm._v("保存")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(457);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_313d7331_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1056);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2647)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-313d7331"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_313d7331_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_313d7331_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopImg_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2648);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ad33e706", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mask1[data-v-313d7331]{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none}#imgshow[data-v-313d7331]{position:absolute;width:100%;height:auto;top:50%;left:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}.outContainer[data-v-313d7331]{height:100%;background-color:#f2f2f2}.outContainer>.imageContainer[data-v-313d7331]{background-color:#fff;min-height:255px;padding-top:28px;padding-left:12px;overflow:hidden}.outContainer>.imageContainer>.image[data-v-313d7331]{float:left;width:70px;height:70px;position:relative;margin-right:15px;margin-bottom:15px}.outContainer>.imageContainer>.image>img[data-v-313d7331]{width:100%;height:100%}.outContainer>.imageContainer>.image>span[data-v-313d7331]{position:absolute;width:20px;height:20px;top:-10px;right:-10px;background-image:url(" + escape(__webpack_require__(805)) + ");background-size:100%;background-repeat:no-repeat}.outContainer>.imageContainer>.image[data-v-313d7331]:last-child{background-color:#f4f4f4;box-sizing:border-box;border:1px solid #cfcfd8;position:relative}.outContainer>.imageContainer>.image:last-child .a-upload[data-v-313d7331]{float:right;position:relative;cursor:pointer;overflow:hidden;width:100%;height:100%}.outContainer>.imageContainer>.image:last-child .a-upload .putPhoto[data-v-313d7331]{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0}.outContainer>.imageContainer>.image:last-child .plus[data-v-313d7331]{background-image:url(" + escape(__webpack_require__(806)) + ");background-size:100%;background-repeat:no-repeat;width:32px;height:32px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer>.button[data-v-313d7331]{margin-top:32px;padding-left:12px;padding-right:12px;height:49px;line-height:49px}.outContainer>.button>div[data-v-313d7331]{font-family:PingFangSC-Regular;font-size:18px;color:#fff;text-align:center;background:#ee4545;border-radius:5px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/del.b71eaf8.png";module.exports = __webpack_require__.p + "static/img/plus.e12c453.svg";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _alloyfinger = _interopRequireDefault(__webpack_require__(121));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      imgSrc: [],
      bucketUrl: '',
      token: ''
    };
  },
  created: function created() {
    var that = this;
    // 获取七牛云 token
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that._Util.isIOS) {
        that.upload();
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    this.getStationInfo();
    this.previewPicture();
  },
  methods: {
    /** 图片预览方法 */previewPicture: function previewPicture() {
      (0, _jquery.default)('body').delegate('.imgC', 'click', function () {
        (0, _jquery.default)('.mask1').show();
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'scale(0)';
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'translateX(-50%) translateY(-50%)';
        var src = (0, _jquery.default)(this).attr('src');
        if (src.indexOf('?imageView2') != -1) {
          src = src.replace('?imageView2/1/w/150/h/150', '');
        }
        (0, _jquery.default)('#imgshow').attr('src', src);
        //                let maskHi = ($('#imgshow').height()) / 2
        //                $('#imgshow').css('marginTop', (-maskHi))
      });
      (0, _jquery.default)('body').delegate('.mask1', 'click', function () {
        (0, _jquery.default)('.mask1').hide();
      });
      var el = document.getElementById('imgshow');
      var initScale = 1;
      var sc = 1;
      var mox, moy;
      // eslint-disable-next-line no-unused-vars
      var af = new _alloyfinger.default(el, {
        touchStart: function touchStart() {
          mox = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[4]);
          moy = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[5]);
        },
        pressMove: function pressMove(evt) {
          mox += evt.deltaX;
          moy += evt.deltaY;
          el.style.webkitTransform = 'translateX(' + mox + 'px) translateY(' + moy + 'px) scale(' + sc + ')';
          evt.preventDefault();
        },
        pinch: function pinch(evt) {
          sc = initScale * evt.zoom;
          el.style.webkitTransform = 'scale(' + sc + ')';
          //                if(sc< 0.5){
          //                  el.style.webkitTransform = 'scale(0.5)'
          //                } else{
          //                  el.style.webkitTransform = 'scale('+ sc +')'
          //                }
        },
        multipointStart: function multipointStart() {
          initScale = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[0]);
        }
      });
    },
    /** 删除指定索引图片 */delImg: function delImg(i) {
      console.log(i);
      this.imgSrc.splice(i, 1);
    },
    /** 图片上传逻辑 */upload: function upload(e) {
      var that = this;
      if (that._Util.isIOS) {
        // eslint-disable-next-line no-unused-vars
        var uploader = Qiniu.uploader({
          runtimes: 'html5,flash,html4',
          browse_button: 'upBtn2',
          //  uptoken_url: that.token,
          uptoken: that.token,
          domain: that.bucketUrl,
          get_new_uptoken: false,
          container: 'container2',
          filters: {
            max_file_size: '100mb',
            prevent_duplicates: true,
            mime_types: [{
              title: 'Image files',
              extensions: 'jpg,gif,png,jpeg'
            }]
          },
          flash_swf_url: 'js/plupload/Moxie.swf',
          max_retries: 0,
          dragdrop: true,
          drop_element: 'container2',
          chunk_size: '4mb',
          auto_start: true,
          multi_selection: false,
          init: {
            FilesAdded: function FilesAdded(up, files) {
              // eslint-disable-next-line no-undef
              plupload.each(files, function (file) {});
            },
            BeforeUpload: function BeforeUpload(up, file) {
              _mintUi.Indicator.open('上传中...');
            },
            UploadProgress: function UploadProgress(up, file) {},
            FileUploaded: function FileUploaded(up, file, info) {
              _mintUi.Indicator.close();
              that.imgSrc.push(JSON.parse(info.response).key);
            },
            Error: function Error(up, err, errTip) {
              _mintUi.MessageBox.alert(JSON.stringify(err));
            },
            UploadComplete: function UploadComplete() {},
            Key: function Key(up, file) {}
          }
        });
      } else {
        var file = e.target.files[0];
        if (file) {
          _mintUi.Indicator.open('上传中...');
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          _jquery.default.ajax({
            url: 'https://upload.qiniup.com',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgSrc.push(res.key);
          }).fail(function () {});
        }
      }
    },
    /** 获取店铺信息 */getStationInfo: function getStationInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_STATION_INFO, {}, function (data) {
        if (data) {
          _this.imgSrc = data.serviceStation.imageList;
        }
      }, function () {}, this);
    },
    /** 修改店铺信息 */editStationInfo: function editStationInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CUSTOMER_EDIT_STATION_INFO, {
        stationId: this.$route.query.stationId,
        shopPic: this.imgSrc.join(',')
      }, function (data) {
        console.log(data);
        if (data) {
          (0, _mintUi.Toast)({
            message: '保存成功',
            position: 'bottom',
            duration: 1500
          });
        }
        _this2.getStationInfo();
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"imageContainer"},[_vm._l((_vm.imgSrc),function(item,index){return _c('div',{key:index,staticClass:"image"},[_c('img',{staticClass:"imgC",attrs:{"src":_vm.bucketUrl + item + '?imageView2/1/w/140/h/140'}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(index)}}})])}),_vm._v(" "),_c('div',{staticClass:"image"},[(_vm._Util.isIOS)?_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"},attrs:{"id":"container2"}},[_c('div',{staticClass:"plus"}),_vm._v(" "),_c('button',{staticClass:"putPhoto",attrs:{"id":"upBtn2"}})]):_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"}},[_c('div',{staticClass:"plus"}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})])])],2),_vm._v(" "),_c('div',{staticClass:"button",on:{"click":_vm.editStationInfo}},[_c('div',[_vm._v("保存")])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask1"},[_c('img',{attrs:{"id":"imgshow"}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(458);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60ae34be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1057);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2649)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-60ae34be"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60ae34be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60ae34be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopHead_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2650);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4938f450", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-60ae34be]{height:100%;background-color:#f2f2f2}.outContainer>.imageContainer[data-v-60ae34be]{background-color:#fff;min-height:255px;padding-top:28px;padding-left:12px;overflow:hidden}.outContainer>.imageContainer>.image[data-v-60ae34be]{float:left;width:70px;height:70px;position:relative;margin-right:15px;margin-bottom:15px}.outContainer>.imageContainer>.image>img[data-v-60ae34be]{width:100%;height:100%}.outContainer>.imageContainer>.image>span[data-v-60ae34be]{position:absolute;width:20px;height:20px;top:-10px;right:-10px;background-image:url(" + escape(__webpack_require__(805)) + ");background-size:100%;background-repeat:no-repeat}.outContainer>.imageContainer>.image[data-v-60ae34be]:last-child{background-color:#f4f4f4;box-sizing:border-box;border:1px solid #cfcfd8;position:relative}.outContainer>.imageContainer>.image:last-child .a-upload[data-v-60ae34be]{float:right;position:relative;cursor:pointer;overflow:hidden;width:100%;height:100%}.outContainer>.imageContainer>.image:last-child .a-upload .putPhoto[data-v-60ae34be]{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0}.outContainer>.imageContainer>.image:last-child .plus[data-v-60ae34be]{background-image:url(" + escape(__webpack_require__(806)) + ");background-size:100%;background-repeat:no-repeat;width:32px;height:32px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer>.button[data-v-60ae34be]{margin-top:32px;padding-left:12px;padding-right:12px;height:49px;line-height:49px}.outContainer>.button>div[data-v-60ae34be]{font-family:PingFangSC-Regular;font-size:18px;color:#fff;text-align:center;background:#ee4545;border-radius:5px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      imgSrc: [],
      bucketUrl: '',
      token: '',
      newShopHead: ''
    };
  },
  created: function created() {
    var that = this;
    // 获取七牛云 token
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that._Util.isIOS) {
        that.upload();
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    this.getStationInfo();
  },
  methods: {
    /** 删除指定索引图片 */delImg: function delImg(i) {
      console.log(i);
      this.imgSrc.splice(i, 1);
      this.newShopHead = '';
      // 处理ios初次点击无效的问题
      if (this._Util.isIOS && this.imgSrc.length === 0) {
        this.upload();
      }
    },
    /** 图片上传逻辑 */upload: function upload(e) {
      var that = this;
      if (that._Util.isIOS) {
        // eslint-disable-next-line no-unused-vars
        var uploader = Qiniu.uploader({
          runtimes: 'html5,flash,html4',
          browse_button: 'upBtn2',
          //  uptoken_url: that.token,
          uptoken: that.token,
          domain: that.bucketUrl,
          get_new_uptoken: false,
          container: 'container2',
          filters: {
            max_file_size: '100mb',
            prevent_duplicates: true,
            mime_types: [{
              title: 'Image files',
              extensions: 'jpg,gif,png,jpeg'
            }]
          },
          flash_swf_url: 'js/plupload/Moxie.swf',
          max_retries: 0,
          dragdrop: true,
          drop_element: 'container2',
          chunk_size: '4mb',
          auto_start: true,
          multi_selection: false,
          init: {
            FilesAdded: function FilesAdded(up, files) {
              // eslint-disable-next-line no-undef
              plupload.each(files, function (file) {});
            },
            BeforeUpload: function BeforeUpload(up, file) {
              _mintUi.Indicator.open('上传中...');
            },
            UploadProgress: function UploadProgress(up, file) {},
            FileUploaded: function FileUploaded(up, file, info) {
              console.log(info);
              console.log(up);
              console.log(file);
              _mintUi.Indicator.close();
              that.imgSrc.push(that.bucketUrl + JSON.parse(info.response).key);
              that.newShopHead = JSON.parse(info.response).key;
            },
            Error: function Error(up, err, errTip) {
              _mintUi.MessageBox.alert(JSON.stringify(err));
            },
            UploadComplete: function UploadComplete() {},
            Key: function Key(up, file) {}
          }
        });
      } else {
        var file = e.target.files[0];
        if (file) {
          _mintUi.Indicator.open('上传中...');
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          _jquery.default.ajax({
            url: 'https://upload.qiniup.com',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgSrc.push(that.bucketUrl + res.key);
            that.newShopHead = res.key;
          }).fail(function () {});
        }
      }
    },
    /** 获取店铺信息 */getStationInfo: function getStationInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_STATION_INFO, {}, function (data) {
        if (data) {
          _this.imgSrc.push(data.serviceStation.shopHead);
        }
      }, function () {}, this);
    },
    /** 修改店铺信息 */editStationInfo: function editStationInfo() {
      var _this2 = this;
      if (!this.newShopHead) {
        (0, _mintUi.Toast)({
          message: '请选择图片',
          position: 'center',
          duration: 1500
        });
        return;
      }
      this._Util.post(this._Api.POST_CUSTOMER_EDIT_STATION_INFO, {
        stationId: this.$route.query.stationId,
        shopHead: this.newShopHead
      }, function (data) {
        console.log(data);
        if (data) {
          (0, _mintUi.Toast)({
            message: '保存成功',
            position: 'bottom',
            duration: 1500
          });
        }
        _this2.$router.go(-1);
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"imageContainer"},[_vm._l((_vm.imgSrc),function(item,index){return _c('div',{key:index,staticClass:"image"},[_c('img',{attrs:{"src":item + '?imageView2/1/w/140/h/140'}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(index)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.imgSrc.length < 1),expression:"imgSrc.length < 1"}],staticClass:"image"},[(_vm._Util.isIOS)?_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"},attrs:{"id":"container2"}},[_c('div',{staticClass:"plus"}),_vm._v(" "),_c('button',{staticClass:"putPhoto",attrs:{"id":"upBtn2"}})]):_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"}},[_c('div',{staticClass:"plus"}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})])])],2),_vm._v(" "),_c('div',{staticClass:"button",on:{"click":_vm.editStationInfo}},[_c('div',[_vm._v("保存")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(459);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38518770_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1058);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2651)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-38518770"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38518770_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38518770_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_arrivalActivity_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2652);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("fb341966", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-38518770]{height:100%;background-color:#f2f2f2}.outContainer .btnContainer[data-v-38518770]{overflow:hidden}.outContainer .btnContainer .topBtn[data-v-38518770]{margin:28px auto;width:351px;height:49px;line-height:49px;border-radius:5px;background-color:#ee4545;text-align:center;color:#fff;font-family:PingFangSC-Regular;font-size:18px}.outContainer .activityList[data-v-38518770]{background-color:#fff}.outContainer .activityList>.item[data-v-38518770]{height:105px;border-bottom:1px solid #e6e6e6;padding:12px;position:relative}.outContainer .activityList>.item>.top[data-v-38518770]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .activityList>.item>.bottom[data-v-38518770]{position:absolute;left:0;bottom:0;width:100%}.outContainer .activityList>.item>.bottom>div[data-v-38518770]{position:absolute;bottom:12px;font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer .activityList>.item>.bottom>div[data-v-38518770]:first-of-type{left:12px}.outContainer .activityList>.item>.bottom>div[data-v-38518770]:nth-of-type(2){right:12px}.outContainer .activityList>.item[data-v-38518770]:last-child{border-bottom:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Spinner: _mintUi.Spinner
  },
  data: function data() {
    return {
      pageSize: 10,
      pageNum: 1,
      allLoaded: false,
      loading: false,
      activityList: []
    };
  },
  mounted: function mounted() {
    this.getActivityList();
  },
  methods: {
    /** 滚动加载更多动态 */loadMore: function loadMore() {
      if (!this.allLoaded && !this.loading) {
        this.getActivityList();
      }
    },
    /** 获取到店活动列表 */getActivityList: function getActivityList() {
      var _this = this;
      this.loading = true;
      this._Util.post(this._Api.POST_CUSTOMER_ACTIVITY_LIST, {
        stationId: this.$route.query.stationId,
        pageSize: this.pageSize,
        pageNum: this.pageNum
      }, function (data) {
        if (data) {
          if (data.activityList.length < _this.pageSize) {
            _this.allLoaded = true;
          } else {
            _this.pageNum++;
          }
          data.activityList.forEach(function (val) {
            _this.activityList.push(val);
          });
          _this.loading = false;
        }
      }, function () {}, this);
    },
    /** 进入到店活动详情页面 */goActivity: function goActivity(activityId, status) {
      if (status === 2) {
        this.$router.push({
          name: 'activityUnderway',
          query: {
            activityId: activityId,
            stationId: this.$route.query.stationId
          }
        });
      } else if (status === 1) {
        this.$router.push({
          name: 'activityEnd',
          query: {
            activityId: activityId,
            stationId: this.$route.query.stationId
          }
        });
      } else if (status === 0) {
        this.$router.push({
          name: 'activityDel',
          query: {
            activityId: activityId,
            stationId: this.$route.query.stationId
          }
        });
      }
    },
    /** 进入新增到店活动页面 */newActivity: function newActivity() {
      this.$router.push({
        name: 'newActivity',
        query: {
          stationId: this.$route.query.stationId
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"btnContainer"},[_c('div',{staticClass:"topBtn",on:{"click":_vm.newActivity}},[_vm._v("\n      新增到店活动\n    ")])]),_vm._v(" "),_c('div',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"activityList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"loading","infinite-scroll-distance":"10"}},_vm._l((_vm.activityList),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.goActivity(item.activityId, item.status)}}},[_c('div',{staticClass:"top",style:({color: item.status !== 2 ? '#666' : '#333' })},[_vm._v("\n        "+_vm._s(item.content)+"\n      ")]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',[_vm._v("\n          活动时间："+_vm._s(item.startTime.split('-').join('.'))+" - "+_vm._s(item.endTime.split('-').join('.'))+"\n        ")]),_vm._v(" "),(item.status===2)?_c('div',{staticStyle:{"color":"#EE4545"}},[_vm._v("进行中")]):(item.status===1)?_c('div',[_vm._v("已结束")]):_c('div',[_vm._v("已删除")])])])}),0),_vm._v(" "),(_vm.loading)?_c('div',{staticStyle:{"text-align":"center","padding":"10px 0"}},[_c('mt-spinner',{attrs:{"size":30,"color":"rgb(38, 162, 255)","type":"triple-bounce"}})],1):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(460);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b21c4088_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1059);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2653)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b21c4088"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b21c4088_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b21c4088_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newActivity_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2654);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6f5691c0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fade-enter-active[data-v-b21c4088],.fade-leave-active[data-v-b21c4088]{-webkit-transition:opacity .5s;transition:opacity .5s}.fade-enter[data-v-b21c4088],.fade-leave-to[data-v-b21c4088]{opacity:0}.outContainer[data-v-b21c4088]{height:100%;background-color:#f2f2f2}.outContainer .maskLayer[data-v-b21c4088]{position:fixed;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.outContainer .maskLayer>.strategyContainer[data-v-b21c4088]{background-color:#fff;position:absolute;width:80%;top:30%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:12px}.outContainer .maskLayer>.strategyContainer>.title[data-v-b21c4088]{width:100%;text-align:center;padding-top:16px;padding-bottom:16px}.outContainer .maskLayer>.strategyContainer>.title>p[data-v-b21c4088]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .maskLayer>.strategyContainer>.content[data-v-b21c4088]{padding-bottom:34px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px;text-align:left;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;line-height:18px}.outContainer .maskLayer>.strategyContainer>.bottom[data-v-b21c4088]{overflow:hidden}.outContainer .maskLayer>.strategyContainer>.bottom>div[data-v-b21c4088]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#ee4545;width:100%;float:left;position:relative}.outContainer .main>.title[data-v-b21c4088]{height:46px;position:relative;background-color:#fff;border-bottom:1px solid #e6e6e6}.outContainer .main>.title>p[data-v-b21c4088]{border-left:4px solid #ee4545;padding-left:8px;line-height:1;font-family:PingFangSC-Semibold;font-size:16px;color:#333;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main>.title>p>span[data-v-b21c4088]{font-family:PingFangSC-Regular;font-size:16px;color:#2a2a2a}.outContainer .main>.title>.tips[data-v-b21c4088]{position:absolute;right:12px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);border:1px solid #ee4545;border-radius:50px;width:72px;height:21px;font-family:PingFangSC-Regular;font-size:12px;color:#ee4545;text-align:center}.outContainer .main>.textarea[data-v-b21c4088]{overflow:hidden;height:173px;width:100%;background-color:#fff;text-align:center}.outContainer .main>.textarea>textarea[data-v-b21c4088]{padding:10px 12px;display:inline-block;margin-top:16px;width:351px;height:141px;background-color:#f5f5f5;border:1px solid #e6e6e6}.outContainer .main>.days[data-v-b21c4088]{margin-top:10px;height:52px;line-height:52px;background-color:#fff;position:relative}.outContainer .main>.days>.title[data-v-b21c4088]{float:left;margin-left:12px}.outContainer .main>.days>.content[data-v-b21c4088]{float:right;margin-right:42px}.outContainer .main>.days>.content>input[data-v-b21c4088]{width:110px;margin-top:-4px;text-align:right;font-size:16px;color:#333}.outContainer .main>.days>span[data-v-b21c4088]{position:absolute;right:12px;top:0}.outContainer .main>.days>.deadline[data-v-b21c4088]{position:absolute;bottom:-20px;right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#ee4545;line-height:1}.outContainer .btnContainer[data-v-b21c4088]{margin-top:76px;overflow:hidden}.outContainer .btnContainer .button[data-v-b21c4088]{margin:0 auto;width:351px;height:49px;line-height:49px;border-radius:5px;background-color:#ee4545;text-align:center;color:#fff;font-family:PingFangSC-Regular;font-size:18px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      exampleContent: '',
      isShowExample: false,
      duration: '',
      content: ''
    };
  },
  computed: {
    deadline: function deadline() {
      var deadline = new Date(Date.now() + this.duration * 86400000);
      var year = deadline.getFullYear();
      var month = deadline.getMonth() + 1;
      var date = deadline.getDate();
      return year + '.' + month + '.' + date;
    }
  },
  watch: {
    content: function content() {
      if (this.content.length > 40) {
        this.content = this.content.slice(0, 40);
      }
    }
  },
  mounted: function mounted() {},
  methods: {
    /** 展示活动示例 */showExample: function showExample() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'activity_example',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.exampleContent = data.dataList[0].text;
          _this.isShowExample = true;
        }
      }, function () {}, this);
    },
    /** 创建到店活动 */createActivity: function createActivity() {
      var _this2 = this;
      if (this.duration < 15) {
        (0, _mintUi.Toast)({
          message: '活动持续天数不得少于15天',
          position: 'middle',
          duration: 1500
        });
      } else {
        this._Util.post(this._Api.POST_CUSTOMER_ADD_ACTIVITY, {
          stationId: this.$route.query.stationId,
          day: this.duration,
          content: this.content
        }, function (data) {
          console.log(data);
          (0, _mintUi.Toast)({
            message: '创建成功',
            position: 'bottom',
            duration: 1500
          });
          _this2.$router.replace({
            name: 'activityUnderway',
            query: {
              activityId: data,
              stationId: _this2.$route.query.stationId
            }
          });
        }, function () {}, this);
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('transition',{attrs:{"name":"fade"}},[(_vm.isShowExample)?_c('div',{staticClass:"maskLayer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("活动示例")])]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.exampleContent)}}),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){_vm.isShowExample=false;}}},[_vm._v("我知道了")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"title"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"tips",on:{"click":_vm.showExample}},[_vm._v("活动示例")])]),_vm._v(" "),_c('div',{staticClass:"textarea"},[_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.content),expression:"content",modifiers:{"trim":true}}],attrs:{"placeholder":"请输入到店活动主题，不超过40字"},domProps:{"value":(_vm.content)},on:{"input":function($event){if($event.target.composing){ return; }_vm.content=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"days"},[_c('div',{staticClass:"title"},[_vm._v("活动持续天数")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('input',{directives:[{name:"model",rawName:"v-model.number.trim",value:(_vm.duration),expression:"duration",modifiers:{"number":true,"trim":true}}],attrs:{"type":"number","placeholder":"请输入活动天数"},domProps:{"value":(_vm.duration)},on:{"input":function($event){if($event.target.composing){ return; }_vm.duration=_vm._n($event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('span',[_vm._v("天")]),_vm._v(" "),(_vm.duration>0)?_c('div',{staticClass:"deadline"},[_vm._v("到期时间："+_vm._s(_vm.deadline))]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"btnContainer"},[_c('div',{staticClass:"button",on:{"click":_vm.createActivity}},[_vm._v("确认创建")])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v("到店活动内容"),_c('span',[_vm._v("(40个字以内)")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(461);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22b3c322_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1060);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2655)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-22b3c322"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22b3c322_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22b3c322_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityUnderway_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2656);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("fa29d32e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fade-enter-active[data-v-22b3c322],.fade-leave-active[data-v-22b3c322]{-webkit-transition:opacity .5s;transition:opacity .5s}.fade-enter[data-v-22b3c322],.fade-leave-to[data-v-22b3c322]{opacity:0}.outContainer[data-v-22b3c322]{height:100%;background-color:#f2f2f2;position:relative}.outContainer .maskLayer[data-v-22b3c322]{position:fixed;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.outContainer .maskLayer>.strategyContainer[data-v-22b3c322]{background-color:#fff;position:absolute;width:80%;top:35%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:12px}.outContainer .maskLayer>.strategyContainer>.title[data-v-22b3c322]{width:100%;text-align:center;padding-bottom:16px;height:100px;line-height:100px}.outContainer .maskLayer>.strategyContainer>.title>p[data-v-22b3c322]{font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .maskLayer>.strategyContainer>.bottom[data-v-22b3c322]{overflow:hidden;border-top:1px solid #d8d8d8}.outContainer .maskLayer>.strategyContainer>.bottom>div[data-v-22b3c322]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#ee4545;width:50%;float:left;position:relative}.outContainer .maskLayer>.strategyContainer>.bottom>div[data-v-22b3c322]:first-child::after{content:\"\";position:absolute;height:49px;width:1px;top:0;right:0;background-color:#d8d8d8}.outContainer .main>.title[data-v-22b3c322]{height:46px;position:relative;background-color:#fff;border-bottom:1px solid #e6e6e6}.outContainer .main>.title>p[data-v-22b3c322]{border-left:4px solid #ee4545;padding-left:8px;line-height:1;font-family:PingFangSC-Semibold;font-size:16px;color:#333;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main>.title>p>span[data-v-22b3c322]{font-family:PingFangSC-Regular;font-size:16px;color:#2a2a2a}.outContainer .main>.textarea[data-v-22b3c322]{overflow:hidden;height:173px;width:100%;background-color:#fff;text-align:center}.outContainer .main>.textarea>textarea[data-v-22b3c322]{-webkit-text-fill-color:#333}.outContainer .main>.textarea>div[data-v-22b3c322],.outContainer .main>.textarea>textarea[data-v-22b3c322]{padding:10px 12px;display:inline-block;margin-top:16px;width:351px;height:141px;background-color:#f5f5f5;border:1px solid #e6e6e6;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer .main>.textarea>div[data-v-22b3c322]{text-align:left;-webkit-text-fill-color:#333}.outContainer .main>.days[data-v-22b3c322]{margin-top:10px;height:52px;line-height:52px;background-color:#fff;position:relative}.outContainer .main>.days>.title[data-v-22b3c322]{float:left;margin-left:12px}.outContainer .main>.days>.content[data-v-22b3c322]{float:right;margin-right:42px}.outContainer .main>.days>.content>input[data-v-22b3c322],.outContainer .main>.days>.content>span[data-v-22b3c322]{width:110px;margin-top:-3px;font-family:PingFangSC-Regular;font-size:16px;color:#333;text-align:right;-webkit-text-fill-color:#333}.outContainer .main>.days>span[data-v-22b3c322]{position:absolute;right:12px;top:0}.outContainer .main>.days>.deadline[data-v-22b3c322]{position:absolute;bottom:-20px;right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#ee4545;line-height:1}.outContainer .btnContainer[data-v-22b3c322]{margin-top:79px;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.outContainer .btnContainer>div[data-v-22b3c322]{background:#fff;border:1px solid #c9c9c9;border-radius:3px;-webkit-border-radius:3px;width:105px;height:40px;line-height:40px;font-family:PingFangSC-Regular;font-size:14px;color:#2d2f3c;text-indent:27px}.outContainer .btnContainer>div[data-v-22b3c322]:first-of-type{background:#fff url(" + escape(__webpack_require__(2657)) + ") 6px no-repeat;background-size:16px 16px;position:relative}.outContainer .btnContainer>div:first-of-type > span[data-v-22b3c322]{position:absolute;width:100%;left:0;bottom:-35px;font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer .btnContainer>div:first-of-type.disable[data-v-22b3c322]{border-color:#c9c9c9;background-color:#fff}.outContainer .btnContainer>div[data-v-22b3c322]:nth-of-type(2){background:#fff url(" + escape(__webpack_require__(1432)) + ") 8px no-repeat;background-size:16px 16px}.outContainer .btnContainer>div[data-v-22b3c322]:nth-of-type(3){background:#fff url(" + escape(__webpack_require__(1433)) + ") 8px no-repeat;background-size:16px 16px}.outContainer .bottomTips[data-v-22b3c322]{text-decoration:underline;position:absolute;bottom:69px;left:0;width:100%;text-align:center;font-family:PingFangSC-Regular;font-size:16px;color:#ee4545}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/customer.81c1204.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      activityInfo: '',
      isConfirm: false,
      //  确认删除模态框
      isInform: false,
      // 通知用户模态框
      posterUrl: '',
      // 到店活动分享缩略图
      sharePicUrl: '' // 分享图片地址
    };
  },
  mounted: function mounted() {
    this.getActivityDetail();
    this.getPosterUrl();
    this.getSharePic();
  },
  methods: {
    /** 获取活动缩略图 */getPosterUrl: function getPosterUrl() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'app_activity_share',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.posterUrl = data.dataList[0].url;
        }
      }, function () {}, this);
    },
    /** 删除活动逻辑 */deleteBtn: function deleteBtn() {
      if (this.activityInfo.isNotice) {
        (0, _mintUi.Toast)({
          message: '已通知用户，该活动无法删除',
          position: 'middle',
          duration: 1500
        });
      } else {
        this.isConfirm = true;
      }
    },
    /** 删除本次活动 */deleteActivity: function deleteActivity() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CUSTOMER_ACTIVITY_DELETE, {
        activityId: this.$route.query.activityId
      }, function (data) {
        console.log(data);
        (0, _mintUi.Toast)({
          message: '删除成功',
          position: 'middle',
          duration: 1500
        });
        _this2.$router.go('-1');
      }, function () {}, this);
    },
    /** 发名片至微信群 */shareBusinessCard: function shareBusinessCard() {
      var that = this;
      var wx = api.require('wx');
      var url = this.posterUrl;
      api.download({
        url: url,
        savePath: 'fs://stationCard.jpg',
        report: true,
        cache: false,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          // 下载成功
          wx.isInstalled(function (ret, err) {
            if (ret.installed) {
              wx.shareProgram({
                scene: 'session',
                title: that.activityInfo.content,
                description: '',
                thumb: 'fs://stationCard.jpg',
                webpageUrl: 'https://test.kaxiuyun.com',
                userName: 'gh_efaff3788b28',
                path: 'pages/home/index?stationId=' + that.$route.query.stationId
              }, function (ret, err) {
                if (ret.status) {
                  (0, _mintUi.Toast)('分享成功');
                }
              });
            } else {
              (0, _mintUi.Toast)('当前设备未安装微信客户端');
            }
          });
        } else if (ret.state == 2) {
          (0, _mintUi.Toast)('服务站缩略图下载失败');
          // alert(JSON.stringify(ret));
        }
      });
    },
    /** 通知用户按钮逻辑 */informBtn: function informBtn() {
      if (!this.activityInfo.isNotice) {
        this.isInform = true;
      }
    },
    /** 通知用户到店活动 */informCustomer: function informCustomer() {
      var _this3 = this;
      if (!this.activityInfo.isNotice) {
        this._Util.post(this._Api.POST_CUSTOMER_ADDUSERNOTICE, {
          stationId: this.$route.query.stationId,
          activityId: this.$route.query.activityId
        }, function (data) {
          console.log(data);
          (0, _mintUi.Toast)({
            message: '通知成功',
            position: 'middle',
            duration: 1500
          });
          _this3.getActivityDetail();
        }, function () {}, this);
      }
      // else {
      //   Toast({
      //     message: "每次活动只可通知一次",
      //     position: "middle",
      //     duration: 1500
      //   });
      // }
    },
    /** 获取到店活动详情 */getActivityDetail: function getActivityDetail() {
      var _this4 = this;
      this._Util.post(this._Api.POST_CUSTOMER_ACTIVITY_DETAIL, {
        activityId: this.$route.query.activityId
      }, function (data) {
        console.log(data);
        _this4.activityInfo = data.activityInfo;
      }, function () {}, this);
    },
    // 获取分享图片
    getSharePic: function getSharePic() {
      var that = this;
      this._Util.post(this._Api.POST_CUSTOMER_ACTIVITY_POSTER, {
        'activityId': that.$route.query.activityId
      }, function (data) {
        console.log(data);
        if (data) {
          that.sharePicUrl = data.posterUrl;
        }
      }, function () {}, this);
    },
    // 分享图片到朋友圈
    sharePic: function sharePic() {
      var that = this;
      var wx = api.require('wx');
      api.download({
        url: that.sharePicUrl,
        savePath: 'fs://activeSharePic.jpg',
        report: true,
        cache: false,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          // 下载成功
          wx.isInstalled(function (ret, err) {
            if (ret.installed) {
              wx.shareImage({
                apiKey: '',
                scene: 'timeline',
                // thumb: 'widget://a.jpg',
                contentUrl: 'fs://activeSharePic.jpg'
              }, function (ret, err) {
                if (ret.status) {
                  (0, _mintUi.Toast)('分享成功');
                } else {
                  (0, _mintUi.Toast)('分享失败');
                }
              });
            } else {
              (0, _mintUi.Toast)('当前设备未安装微信客户端');
            }
          });
        } else if (ret.state == 2) {
          (0, _mintUi.Toast)('服务站分享海报下载失败');
          // alert(JSON.stringify(ret));
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('transition',{attrs:{"name":"fade"}},[(_vm.isConfirm)?_c('div',{staticClass:"maskLayer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("确认删除本次活动？")])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{staticStyle:{"color":"#787878"},on:{"click":function($event){_vm.isConfirm=false;}}},[_vm._v("取消")]),_vm._v(" "),_c('div',{on:{"click":_vm.deleteActivity}},[_vm._v("删除")])])])]):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":"fade"}},[(_vm.isInform)?_c('div',{staticClass:"maskLayer",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title",staticStyle:{"height":"auto","padding-top":"20px"}},[_c('p',{staticStyle:{"line-height":"1.5","font-size":"18px"}},[_vm._v("\n            系统会将到店活动发给您的客户 "),_c('br'),_vm._v("\n            通知后活动将无法删除 "),_c('br'),_vm._v("\n            确认通知？\n          ")])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{staticStyle:{"color":"#787878"},on:{"click":function($event){_vm.isInform=false;}}},[_vm._v("取消")]),_vm._v(" "),_c('div',{on:{"click":_vm.informCustomer}},[_vm._v("通知")])])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"main"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"textarea"},[_c('div',[_vm._v(_vm._s(_vm.activityInfo.content))])]),_vm._v(" "),_c('div',{staticClass:"days"},[_c('div',{staticClass:"title"},[_vm._v("活动持续天数")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('span',[_vm._v(_vm._s(_vm.activityInfo.activityNum))])]),_vm._v(" "),_c('span',[_vm._v("天")]),_vm._v(" "),(_vm.activityInfo.endTime)?_c('div',{staticClass:"deadline"},[_vm._v("到期时间："+_vm._s(_vm.activityInfo.endTime.split('-').join('.')))]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"btnContainer"},[_c('div',{class:{disable: _vm.activityInfo.isNotice},on:{"click":_vm.informBtn}},[_vm._v("通知客户 "),(_vm.activityInfo.isNotice)?_c('span',[_vm._v("已通知")]):_vm._e()]),_vm._v(" "),_c('div',{on:{"click":_vm.sharePic}},[_vm._v("发到朋友圈")]),_vm._v(" "),_c('div',{on:{"click":_vm.shareBusinessCard}},[_vm._v("发到微信群")])]),_vm._v(" "),_c('div',{staticClass:"bottomTips",on:{"click":_vm.deleteBtn}},[_vm._v("\n    删除本次活动\n  ")])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('p',[_vm._v("到店活动内容"),_c('span',[_vm._v("(40个字以内)")])])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(462);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1815bfad_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1061);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2658)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1815bfad"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1815bfad_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1815bfad_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityEnd_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2659);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("785a1eae", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-1815bfad]{height:100%;background-color:#f2f2f2;position:relative}.outContainer .main>.status[data-v-1815bfad]{height:230px;text-align:center;padding-top:44px}.outContainer .main>.status>img[data-v-1815bfad]{height:62px;width:62px}.outContainer .main>.status>div[data-v-1815bfad]{margin-top:8px;font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .main>.title[data-v-1815bfad]{height:46px;position:relative;background-color:#fff;border-bottom:1px solid #e6e6e6}.outContainer .main>.title>p[data-v-1815bfad]{border-left:4px solid #999;padding-left:8px;line-height:1;font-family:PingFangSC-Semibold;font-size:16px;color:#999;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main>.title>p>span[data-v-1815bfad]{font-family:PingFangSC-Regular;font-size:16px;color:#999}.outContainer .main>.textarea[data-v-1815bfad]{position:relative;overflow:hidden;height:173px;width:100%;background-color:#fff;text-align:center}.outContainer .main>.textarea>textarea[data-v-1815bfad]{color:#787878}.outContainer .main>.textarea>div[data-v-1815bfad],.outContainer .main>.textarea>textarea[data-v-1815bfad]{padding:10px 12px;display:inline-block;margin-top:16px;width:351px;height:141px;background-color:#f5f5f5;border:1px solid #e6e6e6;font-family:PingFangSC-Regular;font-size:16px}.outContainer .main>.textarea>div[data-v-1815bfad]{text-align:left;color:#333;-webkit-text-fill-color:#333}.outContainer .main>.days[data-v-1815bfad]{margin-top:10px;height:52px;line-height:52px;background-color:#fff;position:relative}.outContainer .main>.days>.title[data-v-1815bfad]{float:left;margin-left:12px}.outContainer .main>.days>.content[data-v-1815bfad]{float:right;margin-right:42px}.outContainer .main>.days>.content>input[data-v-1815bfad]{width:110px;margin-top:-3px;font-family:PingFangSC-Regular;font-size:16px;color:#999;text-align:right}.outContainer .main>.days>.content>span[data-v-1815bfad]{width:110px;margin-top:-3px;font-family:PingFangSC-Regular;font-size:16px;color:#333;text-align:right;-webkit-text-fill-color:#333}.outContainer .main>.days>span[data-v-1815bfad]{position:absolute;right:12px;top:0}.outContainer .main>.days>.deadline[data-v-1815bfad]{position:absolute;bottom:-20px;right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#999;line-height:1}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      activityInfo: ''
    };
  },
  mounted: function mounted() {
    this.getActivityDetail();
  },
  methods: {
    /** 获取到店活动详情 */getActivityDetail: function getActivityDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_ACTIVITY_DETAIL, {
        activityId: this.$route.query.activityId
      }, function (data) {
        console.log(data);
        _this.activityInfo = data.activityInfo;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"main"},[_vm._m(0),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('div',{staticClass:"textarea"},[_c('div',[_vm._v(_vm._s(_vm.activityInfo.content))])]),_vm._v(" "),_c('div',{staticClass:"days"},[_c('div',{staticClass:"title"},[_vm._v("活动持续天数")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('span',[_vm._v(_vm._s(_vm.activityInfo.activityNum))])]),_vm._v(" "),_c('span',[_vm._v("天")]),_vm._v(" "),(_vm.activityInfo.endTime)?_c('div',{staticClass:"deadline"},[_vm._v("到期时间："+_vm._s(_vm.activityInfo.endTime.split('-').join('.')))]):_vm._e()])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"status"},[_c('img',{attrs:{"src":__webpack_require__(2660),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("活动已结束")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('p',[_vm._v("到店活动内容"),_c('span',[_vm._v("(40个字以内)")])])])}]
module.exports = __webpack_require__.p + "static/img/活动结束.63c37b8.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(463);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_76acfd7d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1062);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2661)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-76acfd7d"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_76acfd7d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_76acfd7d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_activityDel_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2662);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7e2e27a8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-76acfd7d]{height:100%;background-color:#f2f2f2;position:relative}.outContainer .main>.status[data-v-76acfd7d]{height:230px;text-align:center;padding-top:44px}.outContainer .main>.status>img[data-v-76acfd7d]{height:62px;width:62px}.outContainer .main>.status>div[data-v-76acfd7d]{margin-top:8px;font-family:PingFangSC-Regular;font-size:20px;color:#333}.outContainer .main>.title[data-v-76acfd7d]{height:46px;position:relative;background-color:#fff;border-bottom:1px solid #e6e6e6}.outContainer .main>.title>p[data-v-76acfd7d]{border-left:4px solid #999;padding-left:8px;line-height:1;font-family:PingFangSC-Semibold;font-size:16px;color:#999;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .main>.title>p>span[data-v-76acfd7d]{font-family:PingFangSC-Regular;font-size:16px;color:#999}.outContainer .main>.textarea[data-v-76acfd7d]{position:relative;overflow:hidden;height:173px;width:100%;background-color:#fff;text-align:center}.outContainer .main>.textarea>textarea[data-v-76acfd7d]{color:#787878}.outContainer .main>.textarea>div[data-v-76acfd7d],.outContainer .main>.textarea>textarea[data-v-76acfd7d]{padding:10px 12px;display:inline-block;margin-top:16px;width:351px;height:141px;background-color:#f5f5f5;border:1px solid #e6e6e6;font-family:PingFangSC-Regular;font-size:16px}.outContainer .main>.textarea>div[data-v-76acfd7d]{text-align:left;color:#333;-webkit-text-fill-color:#333}.outContainer .main>.days[data-v-76acfd7d]{margin-top:10px;height:52px;line-height:52px;background-color:#fff;position:relative}.outContainer .main>.days>.title[data-v-76acfd7d]{float:left;margin-left:12px}.outContainer .main>.days>.content[data-v-76acfd7d]{float:right;margin-right:42px}.outContainer .main>.days>.content>input[data-v-76acfd7d]{width:110px;margin-top:-3px;font-family:PingFangSC-Regular;font-size:16px;color:#999;text-align:right}.outContainer .main>.days>.content>span[data-v-76acfd7d]{width:110px;margin-top:-3px;font-family:PingFangSC-Regular;font-size:16px;color:#333;text-align:right;-webkit-text-fill-color:#333}.outContainer .main>.days>span[data-v-76acfd7d]{position:absolute;right:12px;top:0}.outContainer .main>.days>.deadline[data-v-76acfd7d]{position:absolute;bottom:-20px;right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#999;line-height:1}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      activityInfo: ''
    };
  },
  mounted: function mounted() {
    this.getActivityDetail();
  },
  methods: {
    /** 获取到店活动详情 */getActivityDetail: function getActivityDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_ACTIVITY_DETAIL, {
        activityId: this.$route.query.activityId
      }, function (data) {
        console.log(data);
        _this.activityInfo = data.activityInfo;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"main"},[_vm._m(0),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('div',{staticClass:"textarea"},[_c('div',[_vm._v(_vm._s(_vm.activityInfo.content))])]),_vm._v(" "),_c('div',{staticClass:"days"},[_c('div',{staticClass:"title"},[_vm._v("活动持续天数")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('span',[_vm._v(_vm._s(_vm.activityInfo.activityNum))])]),_vm._v(" "),_c('span',[_vm._v("天")]),_vm._v(" "),(_vm.activityInfo.endTime)?_c('div',{staticClass:"deadline"},[_vm._v("到期时间："+_vm._s(_vm.activityInfo.endTime.split('-').join('.')))]):_vm._e()])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"status"},[_c('img',{attrs:{"src":__webpack_require__(2663),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("活动已删除")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('p',[_vm._v("到店活动内容"),_c('span',[_vm._v("(40个字以内)")])])])}]
module.exports = __webpack_require__.p + "static/img/活动删除.25315b2.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(464);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_27ce4244_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1063);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2664)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-27ce4244"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_27ce4244_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_27ce4244_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketing_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2665);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("bb70d85a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-27ce4244]{background-color:#f2f2f2;height:100%}.outContainer>.luckDraw[data-v-27ce4244]{background-color:#fff}.outContainer>.luckDraw>.top[data-v-27ce4244]{overflow:hidden;height:47px;border-bottom:1px solid #e6e6e6}.outContainer>.luckDraw>.top>p[data-v-27ce4244]{margin-top:15px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;line-height:1;border-left:4px solid #ee4545;text-indent:8px}.outContainer>.luckDraw>.itemList[data-v-27ce4244]{padding-left:16px}.outContainer>.luckDraw>.itemList>.item[data-v-27ce4244]{height:51px;line-height:51px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.luckDraw>.itemList>.item>div[data-v-27ce4244]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.luckDraw>.itemList>.item>div[data-v-27ce4244]:nth-child(2){position:absolute;top:50%;right:25px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:16px;color:#787878}.outContainer>.luckDraw>.itemList>.item[data-v-27ce4244]:last-child{border-bottom:none}.outContainer>.luckDraw>.itemList>.item[data-v-27ce4244]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer>.button[data-v-27ce4244]{margin-top:30px;padding-left:12px;padding-right:12px}.outContainer>.button>div[data-v-27ce4244]{height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#fff;text-align:center;background-color:#ee4545;border-radius:5px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      luckDrawList: []
    };
  },
  mounted: function mounted() {
    this.getDrawList();
  },
  methods: {
    /** 获取抽奖活动列表 */getDrawList: function getDrawList() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_DRAWLIST, {
        stationId: this.$route.query.stationId
      }, function (data) {
        if (data) {
          _this.luckDrawList = data.luckDrawList;
        }
      }, function () {}, this);
    },
    /** 进入发起抽奖页面 */newLuckyDraw: function newLuckyDraw() {
      this.$router.push({
        name: 'newDraw'
      });
    },
    /** 进入抽奖详情页面 */goDetail: function goDetail(type, luckDrawId) {
      if (type == 0) {
        // 未开始的抽奖活动
        this.$router.push({
          name: 'marketingDetailNoStart',
          query: {
            luckDrawId: luckDrawId
          }
        });
      } else if (type == 1) {
        this.$router.push({
          name: 'marketingDetailGoing',
          query: {
            luckDrawId: luckDrawId
          }
        });
      } else if (type == 2) {
        this.$router.push({
          name: 'marketingDetailEnd',
          query: {
            luckDrawId: luckDrawId
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"luckDraw"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"itemList"},_vm._l((_vm.luckDrawList),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.goDetail(item.status, item.luckDrawId)}}},[_c('div',[_vm._v(_vm._s(item.createTime.split('-').join('') + '-' + item.luckDrawId))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.status == 0 ? '未开始' : item.status == 1 ? '进行中' : '已结束'))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"button"},[_c('div',{on:{"click":_vm.newLuckyDraw}},[_vm._v("发起抽奖")])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('p',[_vm._v("发起抽奖记录")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(465);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7c0206f7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1064);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2666)
  __webpack_require__(2668)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7c0206f7"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7c0206f7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7c0206f7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newDraw_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2667);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5c9da462", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-7c0206f7]{height:100%;background-color:#f2f2f2;overflow:auto}.outContainer>.drawList>.item[data-v-7c0206f7]{background-color:#fff;height:98px;margin-bottom:10px;padding-left:15px}.outContainer>.drawList>.item>div[data-v-7c0206f7]{border-bottom:1px solid #d9d9e2;height:49px;position:relative}.outContainer>.drawList>.item>div>.label[data-v-7c0206f7]{font-family:PingFangSC-Regular;font-size:16px;color:#787878;float:left;margin-top:14px}.outContainer>.drawList>.item>div>.content[data-v-7c0206f7]{height:100%;line-height:49px;margin-left:69px;position:relative}.outContainer>.drawList>.item>div>.content>input[data-v-7c0206f7]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.drawList>.item>div>.content>input[data-v-7c0206f7]::-webkit-input-placeholder{font-size:16px;color:#333}.outContainer>.drawList>.item>div>.content>input[data-v-7c0206f7]:-moz-placeholder,.outContainer>.drawList>.item>div>.content>input[data-v-7c0206f7]::-moz-placeholder{font-size:16px;color:#333}.outContainer>.drawList>.item>div>.content>input[data-v-7c0206f7]:-ms-input-placeholder{font-size:16px;color:#333}.outContainer>.drawList>.item>div>.content>div[data-v-7c0206f7]{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:26px;line-height:26px;width:110px;border:1px solid #c0c2d3;border-radius:3px;box-sizing:content-box;text-align:center}.outContainer>.drawList>.item>div>.content>div>span[data-v-7c0206f7]{float:left;text-align:center;height:100%;color:#333}.outContainer>.drawList>.item>div>.content>div>span[data-v-7c0206f7]:first-child{width:28px;line-height:24px}.outContainer>.drawList>.item>div>.content>div>span[data-v-7c0206f7]:nth-child(2){width:54px}.outContainer>.drawList>.item>div>.content>div>span[data-v-7c0206f7]:nth-child(3){width:28px;line-height:24px}.outContainer>.drawList>.item>div>.content>div[data-v-7c0206f7]:before{content:\"\";position:absolute;height:100%;width:1px;background-color:#c0c2d3;top:0;left:28px}.outContainer>.drawList>.item>div>.content>div[data-v-7c0206f7]:after{content:\"\";position:absolute;height:100%;width:1px;background-color:#c0c2d3;top:0;right:28px}.outContainer>.drawList>.item>div>.content>.del[data-v-7c0206f7]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:13px;font-family:PingFangSC-Regular;font-size:14px;color:#ee4545}.outContainer>.drawList>.item>.top[data-v-7c0206f7]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.outContainer>.drawList>.item>.bottom[data-v-7c0206f7]{border-bottom:none}.outContainer>.drawList>.addPrize[data-v-7c0206f7]{text-align:center;margin-top:32px}.outContainer>.drawList>.addPrize>div[data-v-7c0206f7]{display:inline-block;height:36px;line-height:36px;width:122px;color:#ee4545;border:1px solid #ee4545;border-radius:4px;font-family:PingFangSC-Regular;font-size:16px}.outContainer>.drawList>.addPrize>div>span[data-v-7c0206f7]{position:relative;top:-2px;font-size:18px}.outContainer>.button[data-v-7c0206f7]{margin-top:40px;padding-left:12px;padding-right:12px;text-align:center}.outContainer>.button>div[data-v-7c0206f7]{height:49px;line-height:49px;background-color:#ee4545;border-radius:5px;font-family:PingFangSC-Regular;font-size:18px;color:#fff;margin-bottom:10px}.outContainer>.popup[data-v-7c0206f7]{width:77%;border-radius:3px;background-color:#fff}.outContainer>.popup>div>.title[data-v-7c0206f7]{height:41px;line-height:41px;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.popup>div>.content[data-v-7c0206f7]{padding-left:16px}.outContainer>.popup>div>.content>.item[data-v-7c0206f7]{height:38px;line-height:38px;border-bottom:1px solid #d9d9e2;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.popup>div>.content>.item[data-v-7c0206f7]:last-child{border-bottom:none}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2669);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2bce4789", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-msgbox-input input{background-color:#f2f2f2;border:1px solid #b9b9b9;border-radius:4px}.mint-msgbox{border-radius:12px}.mint-msgbox-confirm{color:#ee4545}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Popup: _mintUi.Popup
  },
  data: function data() {
    return {
      currentPrizeIndex: '',
      // 当前正在编辑的奖品索引
      prizeVisible: false,
      defaultChoosePrizeList: [],
      // 选择奖品 提供的奖品列表
      prizeList: [{
        prizeName: '',
        num: 1,
        prizeId: ''
      }]
    };
  },
  mounted: function mounted() {
    if (this.$route.query.luckDrawId) {
      this.geDrawDetail();
    }
    this.getDefaultPrizeList();
  },
  methods: {
    /** 进入抽奖详情-未开始页面 */goNext: function goNext() {
      var _this = this;
      if (this.prizeList.some(function (val) {
        return val.prizeName.trim() == '';
      })) {
        (0, _mintUi.Toast)({
          message: '请为每一个奖项选择奖品',
          position: 'middle',
          duration: 1500
        });
      } else {
        this._Util.post(this._Api.POST_CUSTOMER_EDIT_LUCKDRAW, {
          luckDrawId: this.$route.query.luckDrawId || '',
          luckDrawPrize: JSON.stringify(this.prizeList)
        }, function (data) {
          console.log(data);
          if (data) {
            _this.$router.replace({
              name: 'marketingDetailNoStart',
              query: {
                luckDrawId: data
              }
            });
          }
        }, function () {}, this);
      }
    },
    /** 获取奖品列表 */getDefaultPrizeList: function getDefaultPrizeList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_PRIZELIST, {}, function (data) {
        if (data) {
          _this2.defaultChoosePrizeList = data.prizeMapList;
        }
      }, function () {}, this);
    },
    /** 选择奖品列表里的奖品 */choosePrize: function choosePrize(prizeName, prizeId) {
      if (prizeName == '其他') {
        this.openMessageBox();
      } else {
        this.prizeList[this.currentPrizeIndex].prizeName = prizeName;
        this.prizeList[this.currentPrizeIndex].prizeId = prizeId;
        this.prizeVisible = false;
      }
    },
    /** 打开输入窗口 */openMessageBox: function openMessageBox() {
      var _this3 = this;
      this.prizeVisible = false;
      _mintUi.MessageBox.prompt(' ', '其他奖品', {
        inputPlaceholder: '请输入其他奖品',
        inputValidator: function inputValidator(val) {
          return !!val;
        },
        inputErrorMessage: '请输入奖品名称'
      }).then(function (_ref) {
        var value = _ref.value,
          action = _ref.action;
        console.log(value, action);
        var otherIndex = _this3.defaultChoosePrizeList.findIndex(function (val) {
          return val.prizeName === '其他';
        });
        _this3.prizeList[_this3.currentPrizeIndex].prizeName = value;
        _this3.prizeList[_this3.currentPrizeIndex].prizeId = _this3.defaultChoosePrizeList[otherIndex].prizeId;
        _this3.currentPrizeIndex = '';
      }).catch(function (err) {
        console.log(err);
        _this3.prizeVisible = true;
      });
    },
    /** 删除当前索引奖品 */delPrize: function delPrize(index) {
      this.prizeList.splice(index, 1);
    },
    /** 增加新的奖品逻辑 */addPrize: function addPrize() {
      this.prizeList.push({
        prizeName: '',
        num: 1,
        prizeId: ''
      });
    },
    /** 获取抽奖详情 */geDrawDetail: function geDrawDetail() {
      var _this4 = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_DRAWDETAIL, {
        luckDrawId: this.$route.query.luckDrawId
      }, function (data) {
        if (data) {
          _this4.prizeList = data.prizeList;
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"drawList"},[_vm._l((_vm.prizeList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',{staticClass:"top"},[_c('div',{staticClass:"label"},[_vm._v("奖品"+_vm._s(index+1))]),_vm._v(" "),_c('div',{staticClass:"content",on:{"click":function($event){_vm.prizeVisible=true;_vm.currentPrizeIndex=index}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(item.prizeName),expression:"item.prizeName"}],attrs:{"disabled":"","type":"text","placeholder":"请选择奖品"},domProps:{"value":(item.prizeName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(item, "prizeName", $event.target.value)}}})])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{staticClass:"label"},[_vm._v("数量")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',[_c('span',{on:{"click":function($event){item.num>1 && item.num--;}}},[_vm._v("-")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.num))]),_vm._v(" "),_c('span',{on:{"click":function($event){item.num++}}},[_vm._v("+")])]),_vm._v(" "),(_vm.prizeList.length>1)?_c('span',{staticClass:"del",on:{"click":function($event){return _vm.delPrize(index)}}},[_vm._v("\n            删除奖品\n          ")]):_vm._e()])])])}),_vm._v(" "),(_vm.prizeList.length<5)?_c('div',{staticClass:"addPrize"},[_c('div',{on:{"click":_vm.addPrize}},[_c('span',[_vm._v("+")]),_vm._v("\n        增加奖品\n      ")])]):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"button"},[_c('div',{on:{"click":_vm.goNext}},[_vm._v("下一步")])]),_vm._v(" "),_c('mt-popup',{staticClass:"popup",attrs:{"popup-transition":"popup-fade"},model:{value:(_vm.prizeVisible),callback:function ($$v) {_vm.prizeVisible=$$v},expression:"prizeVisible"}},[_c('div',[_c('div',{staticClass:"title"},[_vm._v("请选择奖品")]),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((_vm.defaultChoosePrizeList),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.choosePrize(item.prizeName, item.prizeId)}}},[_vm._v(_vm._s(item.prizeName))])}),0)])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(466);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_796bda6c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1065);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2670)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-796bda6c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_796bda6c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_796bda6c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailNoStart_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2671);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("70fd343c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-796bda6c]{background-color:#f2f2f2;height:100%}.outContainer>.prize[data-v-796bda6c]{background-color:#fff}.outContainer>.prize>.top[data-v-796bda6c]{overflow:hidden;height:47px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.prize>.top>p[data-v-796bda6c]{margin-top:15px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;line-height:1;border-left:4px solid #ee4545;text-indent:8px}.outContainer>.prize>.top>div[data-v-796bda6c]{position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:14px;color:#333}.outContainer>.prize>.top>div>span[data-v-796bda6c]{position:relative}.outContainer>.prize>.top>div>span[data-v-796bda6c]:first-child{margin-right:38px}.outContainer>.prize>.top>div>span[data-v-796bda6c]:before{content:\"\";position:absolute;background-size:100%;background-repeat:no-repeat;width:14px;height:14px;left:-20px;top:3px}.outContainer>.prize>.top>div>span[data-v-796bda6c]:first-child::before{background-image:url(" + escape(__webpack_require__(2672)) + ")}.outContainer>.prize>.top>div>span[data-v-796bda6c]:nth-child(2):before{background-image:url(" + escape(__webpack_require__(2673)) + ")}.outContainer>.prize>.itemList[data-v-796bda6c]{padding-left:16px}.outContainer>.prize>.itemList>.item[data-v-796bda6c]{height:51px;line-height:51px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.prize>.itemList>.item>div[data-v-796bda6c]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.prize>.itemList>.item>div[data-v-796bda6c]:nth-child(2){position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:16px;color:#787878}.outContainer>.prize>.itemList>.item[data-v-796bda6c]:last-child{border-bottom:none}.outContainer>.button[data-v-796bda6c]{margin-top:30px;padding-left:28px;padding-right:28px;position:relative}.outContainer>.button>span[data-v-796bda6c]{content:\"\";position:absolute;left:24px;bottom:-23px;font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer>.button>div[data-v-796bda6c]{display:inline-block;width:40.3%;height:44px;line-height:44px;font-family:PingFangSC-Regular;font-size:18px;text-align:center;border-radius:5px;border:1px solid #ee4545;box-sizing:border-box}.outContainer>.button>div[data-v-796bda6c]:first-child{background-color:#fff;color:#ee4545}.outContainer>.button>div:first-child.disable[data-v-796bda6c]{border-color:#aaa;background-color:#aaa;color:#fff}.outContainer>.button>div[data-v-796bda6c]:nth-child(2){background-color:#ee4545;color:#fff;float:right}@media screen and (max-device-width:335px) and (-webkit-device-pixel-ratio:2){.outContainer>.button>span[data-v-796bda6c]{font-size:12px}.outContainer>.button>div[data-v-796bda6c]{font-size:14px}}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/编辑.2222c87.png";module.exports = __webpack_require__.p + "static/img/删除.786b109.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      luckDrawDetail: {}
    };
  },
  mounted: function mounted() {
    this.geDrawDetail();
  },
  methods: {
    /** 转发至微信群 */shareToWx: function shareToWx() {
      var that = this;
      var wx = api.require('wx');
      wx.isInstalled(function (ret, err) {
        if (ret.installed) {
          wx.shareProgram({
            scene: 'session',
            title: '有一份维修大礼包，快来领取',
            description: '',
            thumb: 'widget://image/userDefault.jpg',
            webpageUrl: 'https://test.kaxiuyun.com',
            userName: 'gh_efaff3788b28',
            path: 'pages/user/drawPrize/drawPrize?luckDrawId=' + that.$route.query.luckDrawId
          }, function (ret, err) {
            if (ret.status) {
              (0, _mintUi.Toast)('分享成功');
            }
          });
        } else {
          (0, _mintUi.Toast)('当前设备未安装微信客户端');
        }
      });
    },
    /** 通知用户抽奖 */informCustomer: function informCustomer() {
      var _this = this;
      if (this.luckDrawDetail.isShowNotice) {
        this._Util.post(this._Api.POST_CUSTOMER_INFORM_LUCKDRAW, {
          luckDrawId: this.$route.query.luckDrawId
        }, function (data) {
          console.log(data);
          (0, _mintUi.Toast)({
            message: '通知成功',
            position: 'middle',
            duration: 1500
          });
          _this.geDrawDetail();
        }, function () {}, this);
      } else {
        (0, _mintUi.Toast)({
          message: '每次抽奖只可通知一次',
          position: 'middle',
          duration: 1500
        });
      }
    },
    /** 获取抽奖详情 */geDrawDetail: function geDrawDetail() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_DRAWDETAIL, {
        luckDrawId: this.$route.query.luckDrawId
      }, function (data) {
        if (data) {
          _this2.luckDrawDetail = data;
        }
      }, function () {}, this);
    },
    /**
     * 编辑当前抽奖活动
     */
    editLuckDraw: function editLuckDraw() {
      this.$router.replace({
        name: 'newDraw',
        query: {
          luckDrawId: this.$route.query.luckDrawId
        }
      });
    },
    /** 确认删除当前抽奖活动 */confirmDel: function confirmDel() {
      var _this3 = this;
      (0, _mintUi.MessageBox)({
        title: '提示',
        message: '确定删除当前抽奖活动?',
        showCancelButton: true
      }).then(function (action) {
        console.log(action);
        if (action === 'confirm') {
          _this3.delLuckDraw();
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /** 执行删除请求 */delLuckDraw: function delLuckDraw() {
      var _this4 = this;
      this._Util.post(this._Api.POST_CUSTOMER_DEL_LUCKDRAW, {
        luckDrawId: this.$route.query.luckDrawId
      }, function (data) {
        if (data) {
          (0, _mintUi.Toast)({
            message: '删除成功',
            position: 'bottom',
            duration: 1500
          });
          // 回到抽奖记录列表页
          _this4.$router.go(-1);
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"prize"},[_c('div',{staticClass:"top"},[_c('p',[_vm._v("奖品")]),_vm._v(" "),_c('div',[_c('span',{on:{"click":_vm.editLuckDraw}},[_vm._v("编辑")]),_vm._v(" "),_c('span',{on:{"click":_vm.confirmDel}},[_vm._v("删除")])])]),_vm._v(" "),_c('div',{staticClass:"itemList"},_vm._l((_vm.luckDrawDetail.prizeList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',[_vm._v(_vm._s(item.prizeName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.num)+"份")])])}),0)]),_vm._v(" "),_c('div',{staticClass:"button"},[_c('div',{class:{disable: !_vm.luckDrawDetail.isShowNotice},on:{"click":_vm.informCustomer}},[_vm._v("通知客户抽奖")]),_vm._v(" "),_c('div',{on:{"click":_vm.shareToWx}},[_vm._v("转发至微信群")]),_vm._v(" "),_c('span',[_vm._v("每次抽奖只可通知一次")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(467);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ed4b3c02_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1066);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2674)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ed4b3c02"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ed4b3c02_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ed4b3c02_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailGoing_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2675);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b442b32e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-ed4b3c02]{overflow:auto;height:100%;background-color:#f2f2f2}.outContainer>.top[data-v-ed4b3c02]{background-color:#fff;height:120px;text-align:center}.outContainer>.top>img[data-v-ed4b3c02]{margin-top:5px;width:73px;height:70px;display:inline-block}.outContainer>.top>p[data-v-ed4b3c02]{margin-top:5px;font-family:PingFangSC-Regular;font-size:20px;color:#ee4545}.outContainer>.prize[data-v-ed4b3c02]{margin-top:10px;background-color:#fff}.outContainer>.prize>.top[data-v-ed4b3c02]{overflow:hidden;height:47px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.prize>.top>p[data-v-ed4b3c02]{margin-top:15px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;line-height:1;border-left:4px solid #ee4545;text-indent:8px}.outContainer>.prize>.itemList[data-v-ed4b3c02]{padding-left:16px}.outContainer>.prize>.itemList>.item[data-v-ed4b3c02]{height:51px;line-height:51px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.prize>.itemList>.item>div[data-v-ed4b3c02]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.prize>.itemList>.item>div[data-v-ed4b3c02]:nth-child(2){position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:16px;color:#787878}.outContainer>.prize>.itemList>.item[data-v-ed4b3c02]:last-child{border-bottom:none}.outContainer>.button[data-v-ed4b3c02]{margin-top:28px;padding-left:12px;padding-right:12px}.outContainer>.button>div[data-v-ed4b3c02]{height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#fff;text-align:center;background-color:#ee4545;border-radius:5px}.outContainer>.num[data-v-ed4b3c02]{margin-top:8px;text-align:center;font-family:PingFangSC-Regular;font-size:16px;color:#ee4545}.outContainer>.luckUsers[data-v-ed4b3c02]{margin-top:20px}.outContainer>.luckUsers>.title[data-v-ed4b3c02]{text-align:center;font-family:PingFangSC-Regular;font-size:16px;color:#333;position:relative}.outContainer>.luckUsers>.title[data-v-ed4b3c02]:before{right:13.9%}.outContainer>.luckUsers>.title[data-v-ed4b3c02]:after,.outContainer>.luckUsers>.title[data-v-ed4b3c02]:before{content:\"\";position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:21%;height:1px;background-color:#7c7c7c}.outContainer>.luckUsers>.title[data-v-ed4b3c02]:after{left:13.9%}.outContainer>.luckUsers>.userList[data-v-ed4b3c02]{margin-top:12px}.outContainer>.luckUsers>.userList .item[data-v-ed4b3c02]{overflow:hidden;margin-bottom:12px;padding-left:16px;padding-right:12px;height:45px;position:relative}.outContainer>.luckUsers>.userList .item>.leftContent[data-v-ed4b3c02]{float:left}.outContainer>.luckUsers>.userList .item>.leftContent>div[data-v-ed4b3c02]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.luckUsers>.userList .item>.leftContent>div[data-v-ed4b3c02]:nth-child(2){font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer>.luckUsers>.userList .item>.rightContent[data-v-ed4b3c02]{font-family:PingFangSC-Regular;font-size:16px;color:#333;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      luckDrawDetail: {}
    };
  },
  mounted: function mounted() {
    this.geDrawDetail();
  },
  methods: {
    /** 转发至微信群 */shareToWx: function shareToWx() {
      var that = this;
      var wx = api.require('wx');
      wx.isInstalled(function (ret, err) {
        if (ret.installed) {
          wx.shareProgram({
            scene: 'session',
            title: '有一份维修大礼包，快来领取',
            description: '',
            thumb: 'widget://image/userDefault.jpg',
            webpageUrl: 'https://test.kaxiuyun.com',
            userName: 'gh_efaff3788b28',
            path: 'pages/user/drawPrize/drawPrize?luckDrawId=' + that.$route.query.luckDrawId
          }, function (ret, err) {
            if (ret.status) {
              (0, _mintUi.Toast)('分享成功');
            }
          });
        } else {
          (0, _mintUi.Toast)('当前设备未安装微信客户端');
        }
      });
    },
    /**
     * 获取抽奖详情
     */
    geDrawDetail: function geDrawDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_DRAWDETAIL, {
        luckDrawId: this.$route.query.luckDrawId
      }, function (data) {
        if (data) {
          _this.luckDrawDetail = data;
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"prize"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"itemList"},_vm._l((_vm.luckDrawDetail.prizeList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',[_vm._v(_vm._s(item.prizeName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.num)+"份")])])}),0)]),_vm._v(" "),_c('div',{staticClass:"button"},[_c('div',{on:{"click":_vm.shareToWx}},[_vm._v("转发至微信群")])]),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v("\n    已参与抽奖人数："+_vm._s(_vm.luckDrawDetail.partakeCount)+"人\n  ")]),_vm._v(" "),_c('div',{staticClass:"luckUsers"},[_c('div',{staticClass:"title"},[_vm._v("\n      中奖客户\n    ")]),_vm._v(" "),_c('div',{staticClass:"userList"},_vm._l((_vm.luckDrawDetail.userPrizeMapList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',{staticClass:"leftContent"},[_c('div',[_vm._v(_vm._s(item.userName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.phone))])]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_vm._v(_vm._s(item.prizeName))])])}),0)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('img',{attrs:{"src":__webpack_require__(2676),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("抽奖进行中...")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('p',[_vm._v("奖品")])])}]
module.exports = __webpack_require__.p + "static/img/奖品.acead18.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(468);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e93b492_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1067);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2677)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2e93b492"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e93b492_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e93b492_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_marketingDetailEnd_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2678);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("036270a2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-2e93b492]{overflow:auto;height:100%;background-color:#f2f2f2}.outContainer>.top[data-v-2e93b492]{background-color:#fff;height:120px;text-align:center}.outContainer>.top>img[data-v-2e93b492]{margin-top:5px;width:73px;height:70px;display:inline-block}.outContainer>.top>p[data-v-2e93b492]{margin-top:5px;font-family:PingFangSC-Regular;font-size:20px;color:#ee4545}.outContainer>.prize[data-v-2e93b492]{margin-top:10px;background-color:#fff}.outContainer>.prize>.top[data-v-2e93b492]{overflow:hidden;height:47px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.prize>.top>p[data-v-2e93b492]{margin-top:15px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;line-height:1;border-left:4px solid #ee4545;text-indent:8px}.outContainer>.prize>.itemList[data-v-2e93b492]{padding-left:16px}.outContainer>.prize>.itemList>.item[data-v-2e93b492]{height:51px;line-height:51px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.prize>.itemList>.item>div[data-v-2e93b492]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.prize>.itemList>.item>div[data-v-2e93b492]:nth-child(2){position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:16px;color:#787878}.outContainer>.prize>.itemList>.item[data-v-2e93b492]:last-child{border-bottom:none}.outContainer>.luckyUser[data-v-2e93b492]{margin-top:10px;background-color:#fff}.outContainer>.luckyUser>.title[data-v-2e93b492]{overflow:hidden;height:47px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.luckyUser>.title>p[data-v-2e93b492]{font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:4px solid #ee4545;line-height:1;text-indent:8px;margin-top:12px}.outContainer>.luckyUser>.title>div[data-v-2e93b492]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#787878}.outContainer>.luckyUser>.userList[data-v-2e93b492]{padding-left:16px}.outContainer>.luckyUser>.userList>.item[data-v-2e93b492]{height:71px;position:relative;overflow:hidden;border-bottom:1px solid #e6e6e6}.outContainer>.luckyUser>.userList>.item>.leftContent[data-v-2e93b492]{margin-top:12px}.outContainer>.luckyUser>.userList>.item>.leftContent>div[data-v-2e93b492]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.luckyUser>.userList>.item>.leftContent>div[data-v-2e93b492]:nth-child(2){font-family:PingFangSC-Regular;font-size:14px;color:#666}.outContainer>.luckyUser>.userList>.item>.rightContent[data-v-2e93b492]{position:absolute;top:15px;right:12px;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.luckyUser>.userList>.item[data-v-2e93b492]:last-child{border-bottom:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      luckDrawDetail: {}
    };
  },
  mounted: function mounted() {
    this.geDrawDetail();
  },
  methods: {
    /**
       * 获取抽奖详情
       */
    geDrawDetail: function geDrawDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_GET_DRAWDETAIL, {
        luckDrawId: this.$route.query.luckDrawId
      }, function (data) {
        if (data) {
          _this.luckDrawDetail = data;
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"prize"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"itemList"},_vm._l((_vm.luckDrawDetail.prizeList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',[_vm._v(_vm._s(item.prizeName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.num)+"份")])])}),0)]),_vm._v(" "),_c('div',{staticClass:"luckyUser"},[_c('div',{staticClass:"title"},[_c('p',[_vm._v("中奖客户")]),_vm._v(" "),_c('div',[_vm._v("已参与抽奖："+_vm._s(_vm.luckDrawDetail.partakeCount)+"人")])]),_vm._v(" "),_c('div',{staticClass:"userList"},_vm._l((_vm.luckDrawDetail.userPrizeMapList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',{staticClass:"leftContent"},[_c('div',[_vm._v(_vm._s(item.userName))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.phone))])]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_vm._v("\n          "+_vm._s(item.prizeName)+"\n        ")])])}),0)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('img',{attrs:{"src":__webpack_require__(2679),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("抽奖已结束")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('p',[_vm._v("奖品")])])}]
module.exports = __webpack_require__.p + "static/img/奖品-1.fc68c8c.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(469);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6c834e80_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1068);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2680)
  __webpack_require__(2685)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6c834e80"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6c834e80_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6c834e80_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2681);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("80c09a48", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-6c834e80]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;background-color:#f2f2f2;overflow:scroll}.outContainer>.userInfo[data-v-6c834e80]{box-sizing:border-box;background-color:#fff;position:relative;margin-bottom:10px}.outContainer>.userInfo>img[data-v-6c834e80]{width:65px;height:65px;float:left;margin-left:12px;margin-top:12px}.outContainer>.userInfo>div.detail[data-v-6c834e80]{padding-top:12px;margin-left:89px;height:89px;position:relative}.outContainer>.userInfo>div.detail>div[data-v-6c834e80]:first-of-type{margin-top:5px;font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer>.userInfo>div.detail>div[data-v-6c834e80]:nth-of-type(2){margin-top:6px;font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.userInfo>div.detail>span[data-v-6c834e80]{right:24px;font-family:PingFangSC-Regular;font-size:14px;color:#787878}.outContainer>.userInfo>div.detail>span[data-v-6c834e80],.outContainer>.userInfo>div.detail[data-v-6c834e80]:after{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer>.userInfo>div.detail[data-v-6c834e80]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;right:12px}.outContainer>.userInfo>div.recommend[data-v-6c834e80]{height:44px;line-height:44px;position:relative;font-family:PingFangSC-Regular;font-size:16px;color:#333;padding-left:36px}.outContainer>.userInfo>div.recommend[data-v-6c834e80]:before{width:16px;height:19px;left:12px;background-image:url(" + escape(__webpack_require__(2682)) + ")}.outContainer>.userInfo>div.recommend[data-v-6c834e80]:after,.outContainer>.userInfo>div.recommend[data-v-6c834e80]:before{content:\"\";position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-size:100%;background-repeat:no-repeat}.outContainer>.userInfo>div.recommend[data-v-6c834e80]:after{width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");right:12px}.outContainer>.repairTitle[data-v-6c834e80]{height:45px;border-bottom:1px solid #e6e6e6;overflow:hidden;position:relative;background-color:#fff}.outContainer>.repairTitle>p[data-v-6c834e80]{line-height:1;margin-top:15px;padding-left:8px;font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:4px solid #ee4545}.outContainer>.repairTitle>span[data-v-6c834e80]{float:right;margin-top:13px;margin-right:22px;font-family:PingFangSC-Regular;font-size:14px;color:#ee4545}.outContainer>.main[data-v-6c834e80]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto;background-color:#fff;padding-top:15px}.outContainer>.main>.repairList[data-v-6c834e80]{position:relative;min-height:100%;padding-top:22px;box-sizing:border-box;padding-bottom:20px}.outContainer>.main>.repairList>.line[data-v-6c834e80]{position:absolute;top:0;left:85px;width:2px;height:100%;background-color:#dfdfdf}.outContainer>.main>.repairList>.line[data-v-6c834e80]:before{content:\"\";position:absolute;top:-5px;left:0;-webkit-transform:translateX(-46%);-ms-transform:translateX(-46%);transform:translateX(-46%);width:10px;height:10px;border-radius:50%;background-color:#dfdfdf}.outContainer>.main>.repairList>.item[data-v-6c834e80]{padding-left:12px;padding-right:12px;position:relative;margin-bottom:23px}.outContainer>.main>.repairList>.item>.left[data-v-6c834e80]{font-family:PingFangSC-Regular;font-size:15px;color:#333;float:left;text-align:right}.outContainer>.main>.repairList>.item>.right[data-v-6c834e80]{float:none;margin-left:94px;font-family:PingFangSC-Regular;font-size:16px;color:#333;background-color:#f0f0f5;padding:5px 10px;border-radius:4px;position:relative;top:6px}.outContainer>.main>.repairList>.item>.right>div[data-v-6c834e80]:first-child{position:relative}.outContainer>.main>.repairList>.item>.right>div[data-v-6c834e80]:first-child:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:2px}.outContainer>.main>.repairList>.item>.right[data-v-6c834e80]:before{content:\"\";position:absolute;left:-17px;top:3px;width:0;height:0;border:10px solid transparent;border-right:10px solid #f0f0f5}.outContainer>.main>.repairList>.item[data-v-6c834e80]:before{content:\"\";position:absolute;top:10px;left:78px;width:16px;height:16px;background-image:url(" + escape(__webpack_require__(2683)) + ");background-size:100%;background-repeat:no-repeat}.outContainer>.bottomBtn[data-v-6c834e80]{height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:20px;color:#fff;text-align:center;background-color:#ee4545}.outContainer>.popup[data-v-6c834e80]{width:100%;max-height:100%;overflow:auto}.outContainer>.popup>.title[data-v-6c834e80]{text-align:center;font-family:PingFangSC-Regular;font-size:18px;height:48px;line-height:48px;color:#333;border-bottom:1px solid #b9b9b9;position:relative}.outContainer>.popup>.title>.close[data-v-6c834e80]{padding:5px;width:14px;height:14px;background-image:url(" + escape(__webpack_require__(807)) + ");background-repeat:no-repeat;background-size:100%;right:16px}.outContainer>.popup>.title>.close[data-v-6c834e80],.outContainer>.popup>.title>.opacityBtn[data-v-6c834e80]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer>.popup>.title>.opacityBtn[data-v-6c834e80]{width:40px;height:40px;right:5px}.outContainer>.popup>.content[data-v-6c834e80]{padding:12px 16px 0 12px}.outContainer>.popup>.content>.label[data-v-6c834e80]{font-family:PingFangSC-Regular;font-size:14px;color:#333;margin-bottom:8px}.outContainer>.popup>.content>.inputContainer[data-v-6c834e80]{background:#f2f2f2;border:1px solid #b9b9b9;border-radius:4px;margin-bottom:24px;position:relative}.outContainer>.popup>.content>.inputContainer>div.placeholder[data-v-6c834e80]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:40px;color:#999}.outContainer>.popup>.content>.inputContainer>div.integral[data-v-6c834e80]{position:absolute;right:8px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:16px;color:#ee4545;font-family:PingFangSC-Regular}.outContainer>.popup>.content>.inputContainer>span[data-v-6c834e80]{width:11px;height:13px;background-image:url(" + escape(__webpack_require__(2684)) + ");background-size:100%;background-repeat:no-repeat;float:left;margin-top:20px;margin-left:12px}.outContainer>.popup>.content>.inputContainer>input[data-v-6c834e80]{height:100%;font-family:PingFangSC-Regular;font-size:20px;color:#333;margin-left:12px;position:relative;z-index:2}.outContainer>.popup>.content>.inputContainer>input[data-v-6c834e80]::-webkit-input-placeholder{font-size:20px}.outContainer>.popup>.content>.inputContainer>input[data-v-6c834e80]:-moz-placeholder,.outContainer>.popup>.content>.inputContainer>input[data-v-6c834e80]::-moz-placeholder{font-size:20px}.outContainer>.popup>.content>.inputContainer>input[data-v-6c834e80]:-ms-input-placeholder{font-size:20px}.outContainer>.popup>.content>.inputContainer>textarea[data-v-6c834e80]{width:100%;height:100%;font-family:PingFangSC-Regular;font-size:16px;color:#333;letter-spacing:0;text-indent:10px}.outContainer>.popup>.content>.type[data-v-6c834e80]{margin-top:8px;margin-bottom:46px}.outContainer>.popup>.content>.type span[data-v-6c834e80]{width:90px;height:32px;line-height:32px;text-align:center;border-radius:4px;background-color:#f2f2f2;color:#333;margin-right:28px}.outContainer>.popup>.content>.type span.active[data-v-6c834e80]{color:#fff;background-color:#ee4545}.outContainer>.popup>.saveBtn[data-v-6c834e80]{height:49px;line-height:49px;text-align:center;color:#fff;background-color:#ee4545}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/推荐.d9c0537.png";module.exports = __webpack_require__.p + "static/img/时间点.3888d12.png";module.exports = __webpack_require__.p + "static/img/close.9cd7436.png";module.exports = __webpack_require__.p + "static/img/rmb.6c055b6.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2686);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("76fdd34e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-toast{z-index:99999}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _mintUi = __webpack_require__(7);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {
    getDay: function getDay(val) {
      var day = val.split(' ')[0].split('-');
      return day[1] + '月' + day[2] + '日';
    },
    getTime: function getTime(val) {
      var time = val.split(' ')[1].split(':');
      return time[0] + ':' + time[1];
    }
  },
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Popup: _mintUi.Popup,
    // eslint-disable-next-line vue/no-unused-components
    InfiniteScroll: _mintUi.InfiniteScroll
  },
  data: function data() {
    return {
      newPopup: false,
      userInfo: '',
      bookKeepList: [],
      loading: false,
      pageSize: 10,
      pageNum: 1,
      allLoad: false,
      singleBookKeep: {
        money: '',
        remark: '',
        type: 2
      }
    };
  },
  watch: {
    /** 弹出层关闭时 初始化singleBookKeep */newPopup: function newPopup(newValue) {
      var _this = this;
      if (newValue === false) {
        setTimeout(function () {
          _this.initSingleBookKeep();
        }, 50);
      }
    },
    /** 控制输入的金额长度 */
    singleBookKeep: {
      deep: true,
      handler: function handler() {
        if (this.singleBookKeep.money.length > 7) {
          this.singleBookKeep.money = this.singleBookKeep.money.slice(0, 7);
        }
      }
    }
  },
  mounted: function mounted() {
    this.getUserInfo();
    this.getBookkeepList();
  },
  created: function created() {
    this.setTitle(this.$route.query.title);
  },
  methods: {
    /** 进入客户推荐列表 */goCustomerRecommend: function goCustomerRecommend() {
      this.$router.push({
        name: 'customerRecommend',
        query: {
          miniServiceId: this.$route.query.miniServiceId,
          name: this.userInfo.customerName || this.userInfo.nickName
        }
      });
    },
    /** 动态设置title */setTitle: function setTitle(title) {
      document.title = title;
      var mobile = navigator.userAgent.toLowerCase();
      if (/iphone|ipad|ipod/.test(mobile)) {
        var iframe = document.createElement('iframe');
        iframe.style.visibility = 'hidden';
        // 替换成站标favicon路径或者任意存在的较小的图片即可
        iframe.setAttribute('src', 'http://static2.kaxiuyun.com/kxy/app/iframeImg.png');
        var _iframeCallback = function iframeCallback() {
          var timer = setTimeout(function () {
            iframe.removeEventListener('load', _iframeCallback);
            document.body.removeChild(iframe);
            clearTimeout(timer);
          }, 0);
        };
        iframe.addEventListener('load', _iframeCallback);
        document.body.appendChild(iframe);
      }
    },
    /** 修改当前记账记录 */editBookKeep: function editBookKeep(bookKeepInfo) {
      this.singleBookKeep.bookKeepId = bookKeepInfo.bookKeepId;
      this.singleBookKeep.oldMoney = bookKeepInfo.money;
      this.singleBookKeep.money = bookKeepInfo.money;
      this.singleBookKeep.remark = bookKeepInfo.remark;
      this.singleBookKeep.type = bookKeepInfo.type;
      this.newPopup = true;
    },
    /** 提交记账记录 */submitBookKeep: function submitBookKeep() {
      var _this2 = this;
      if (+this.singleBookKeep.money <= 0) {
        (0, _mintUi.Toast)('请输入大于0的数');
        return;
      }
      this._Util.post(this._Api.POST_CUSTOMER_UPDATE_BOOK_KEEP, _objectSpread({
        miniServiceId: this.$route.query.miniServiceId
      }, this.singleBookKeep), function (data) {
        console.log(data);
        _this2.newPopup = false;
        _this2.bookKeepList = [];
        _this2.pageNum = 1;
        _this2.getBookkeepList();
        _this2.getUserInfo();
      }, function () {}, this);
    },
    /** 记账记录加载更多 */loadMore: function loadMore() {
      if (!this.allLoad && !this.loading) {
        this.loading = true;
        this.getBookkeepList();
      }
    },
    /** 获取客户记账列表 */getBookkeepList: function getBookkeepList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_CUSTOMER_BOOK_KEEP_LIST, {
        miniServiceId: this.$route.query.miniServiceId,
        pageSize: this.pageSize,
        pageNum: this.pageNum
      }, function (data) {
        if (data.bookKeepList.length < _this3.pageSize) {
          _this3.allLoad = true;
        } else {
          _this3.pageNum++;
        }
        data.bookKeepList.forEach(function (val) {
          _this3.bookKeepList.push(val);
        });
        _this3.loading = false;
      }, function () {}, this);
    },
    /** 初始化单条记账列表信息 */initSingleBookKeep: function initSingleBookKeep() {
      this.singleBookKeep = {
        money: '',
        remark: '',
        type: 2
      };
    },
    /** 获取用户信息 */getUserInfo: function getUserInfo() {
      var _this4 = this;
      this._Util.post(this._Api.POST_CUSTOMER_INFO, {
        miniServiceId: this.$route.query.miniServiceId
      }, function (data) {
        var _title = data.customerName || data.nickName;
        _this4.setTitle(_title);
        _this4.userInfo = data;
      }, function () {}, this);
    },
    /** 进入客户资料编辑页面 */goCustomerEdit: function goCustomerEdit() {
      this.$router.push({
        name: 'customerEdit',
        query: {
          miniServiceId: this.$route.query.miniServiceId,
          userId: this.$route.query.userId
        }
      });
    },
    /** 跳转到当前input框 */scrollToIt: function scrollToIt(e) {
      setTimeout(function () {
        e.target.scrollIntoView(true);
      }, 400);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"userInfo"},[_c('img',{attrs:{"src":_vm.userInfo.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"detail",on:{"click":_vm.goCustomerEdit}},[_c('div',[_vm._v(_vm._s(_vm.userInfo.plateNumber || '暂无')+" | "+_vm._s(_vm.userInfo.carBrand))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.userInfo.customerName ? _vm.userInfo.customerName.slice(0, 7) : _vm.userInfo.nickName ? _vm.userInfo.nickName.slice(0, 7) : '暂无')+" "+_vm._s(_vm.userInfo.phone || '暂无'))]),_vm._v(" "),_c('span',[_vm._v("写备注")])]),_vm._v(" "),_c('div',{staticStyle:{"height":"10px","background-color":"#f2f2f2"}}),_vm._v(" "),_c('div',{staticClass:"recommend",on:{"click":_vm.goCustomerRecommend}},[_vm._v("\n      他的推荐记录\n    ")])]),_vm._v(" "),_c('div',{staticClass:"repairTitle"},[_c('span',[_vm._v(_vm._s(_vm.userInfo.integral || 0)+"积分")]),_vm._v(" "),_c('p',[_vm._v("维修记录")])]),_vm._v(" "),_c('div',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"main",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"loading","infinite-scroll-distance":"10"}},[_c('div',{staticClass:"repairList"},[(_vm.bookKeepList.length !== 0)?_c('div',{staticClass:"line"}):_c('div',{staticStyle:{"text-align":"center","font-size":"18px"}},[_vm._v("暂无记账记录")]),_vm._v(" "),_vm._l((_vm.bookKeepList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('div',{staticClass:"left"},[_c('p',[_vm._v(_vm._s(_vm._f("getDay")(item.createTime)))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm._f("getTime")(item.createTime)))])]),_vm._v(" "),_c('div',{staticClass:"right"},[(item.type == 1)?_c('div',{staticStyle:{"color":"#EE4545"},on:{"click":function($event){return _vm.editBookKeep(item)}}},[_vm._v("挂账中："+_vm._s(item.money)+"元")]):_vm._e(),_vm._v(" "),(item.type == 2)?_c('div',{staticStyle:{"color":"#246DF1"},on:{"click":function($event){return _vm.editBookKeep(item)}}},[_vm._v("付现："+_vm._s(item.money)+"元")]):_vm._e(),_vm._v(" "),(item.remark)?_c('div',{staticStyle:{"margin-top":"5px"}},[_vm._v(_vm._s(item.remark))]):_vm._e()])])})],2)]),_vm._v(" "),_c('div',{staticClass:"bottomBtn",on:{"click":function($event){_vm.newPopup=true;}}},[_vm._v("\n    记一笔\n  ")]),_vm._v(" "),_c('mt-popup',{staticClass:"popup",attrs:{"position":"bottom"},model:{value:(_vm.newPopup),callback:function ($$v) {_vm.newPopup=$$v},expression:"newPopup"}},[_c('div',{staticClass:"title"},[_vm._v("记一笔\n      "),_c('span',{staticClass:"close"}),_vm._v(" "),_c('span',{staticClass:"opacityBtn",on:{"click":function($event){_vm.newPopup=false;}}})]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"label"},[_vm._v("维修金额")]),_vm._v(" "),_c('div',{staticClass:"inputContainer",staticStyle:{"height":"54px"}},[(!_vm.singleBookKeep.money)?_c('div',{staticClass:"placeholder"},[_vm._v("请输入本次维修的金额")]):_vm._e(),_vm._v(" "),_c('span'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.singleBookKeep.money),expression:"singleBookKeep.money"}],staticStyle:{"width":"80%"},attrs:{"type":"number","maxlength":"5"},domProps:{"value":(_vm.singleBookKeep.money)},on:{"focus":_vm.scrollToIt,"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.singleBookKeep, "money", $event.target.value)}}}),_vm._v(" "),(_vm.singleBookKeep.money && _vm.singleBookKeep.money > 0)?_c('div',{staticClass:"integral"},[_vm._v("加"+_vm._s(_vm.singleBookKeep.money)+"积分")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"label"},[_vm._v("备注")]),_vm._v(" "),_c('div',{staticClass:"inputContainer",staticStyle:{"height":"85px"}},[_c('textarea',{directives:[{name:"model",rawName:"v-model.number",value:(_vm.singleBookKeep.remark),expression:"singleBookKeep.remark",modifiers:{"number":true}}],attrs:{"type":"textarea","placeholder":"这是一笔什么样的维修"},domProps:{"value":(_vm.singleBookKeep.remark)},on:{"focus":_vm.scrollToIt,"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.singleBookKeep, "remark", _vm._n($event.target.value))},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"label"},[_vm._v("付款类型")]),_vm._v(" "),_c('div',{staticClass:"type"},[_c('span',{class:{active: _vm.singleBookKeep.type == 2 },on:{"click":function($event){_vm.singleBookKeep.type = 2;}}},[_vm._v("付现")]),_vm._v(" "),_c('span',{class:{active: _vm.singleBookKeep.type == 1 },on:{"click":function($event){_vm.singleBookKeep.type = 1;}}},[_vm._v("挂账")])])]),_vm._v(" "),_c('div',{staticClass:"saveBtn",on:{"click":_vm.submitBookKeep}},[_vm._v("\n      保存修改\n    ")])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(470);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1639cdae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1069);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2687)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1639cdae"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1639cdae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1639cdae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerRecommend_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2688);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5b9c1675", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-1639cdae]{height:100%;background-color:#f2f2f2}.outContainer>.title[data-v-1639cdae]{background-color:#fff;height:48px;border-bottom:1px solid #e6e6e6;position:relative}.outContainer>.title>p[data-v-1639cdae]{left:0;line-height:1;font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:4px solid #ee4545;text-indent:8px}.outContainer>.title>div[data-v-1639cdae],.outContainer>.title>p[data-v-1639cdae]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer>.title>div[data-v-1639cdae]{right:12px;width:72px;height:26px;line-height:26px;text-align:center;border:1px solid #ee4545;border-radius:50px;font-family:PingFangSC-Regular;font-size:13px;color:#ee4545}.outContainer>.fansList[data-v-1639cdae]{background-color:#fff;padding-left:16px}.outContainer>.fansList>.item[data-v-1639cdae]{height:69px;border-bottom:1px solid #d9d9e2;padding-top:13px}.outContainer>.fansList>.item>img[data-v-1639cdae]{float:left;width:44px;height:44px;border-radius:4px;background-color:skyblue}.outContainer>.fansList>.item>.rightContent[data-v-1639cdae]{margin-left:56px;position:relative}.outContainer>.fansList>.item>.rightContent>div[data-v-1639cdae]:first-of-type{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.fansList>.item>.rightContent>div[data-v-1639cdae]:nth-of-type(2){font-family:PingFangSC-Regular;font-size:14px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:60%}.outContainer>.fansList>.item>.rightContent>span[data-v-1639cdae]{font-family:PingFangSC-Regular;font-size:14px;color:#ee4545;position:absolute;top:50%;right:8px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer>.fansList>.item[data-v-1639cdae]:last-child{border-bottom:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Spinner: _mintUi.Spinner
  },
  data: function data() {
    return {
      pageSize: 25,
      pageNum: 1,
      allLoaded: false,
      loading: false,
      recommendList: []
    };
  },
  mounted: function mounted() {
    this.getRecommendList();
  },
  methods: {
    /** 滚动加载更多动态 */loadMore: function loadMore() {
      if (!this.allLoaded && !this.loading) {
        this.getRecommendList();
      }
    },
    /** 获取粉丝列表 */getRecommendList: function getRecommendList() {
      var _this = this;
      this.loading = true;
      this._Util.post(this._Api.POST_CUSTOMER_RECOMMEND_LIST, {
        miniServiceId: this.$route.query.miniServiceId,
        pageSize: this.pageSize,
        pageNum: this.pageNum
      }, function (data) {
        if (data) {
          console.log(data);
          if (data.invitationRecord.length < _this.pageSize) {
            _this.allLoaded = true;
          } else {
            _this.pageNum++;
          }
          data.invitationRecord.forEach(function (val) {
            _this.recommendList.push(val);
          });
          _this.loading = false;
        }
      }, function () {}, this, false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"fansList",attrs:{"infinite-scroll-immediate-check":true,"infinite-scroll-disabled":"loading","infinite-scroll-distance":"10"}},_vm._l((_vm.recommendList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('img',{attrs:{"src":item.headimgurl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',[_vm._v(_vm._s(item.userName))]),_vm._v(" "),_c('div',[_vm._v("推荐人："+_vm._s(_vm.$route.query.name))]),_vm._v(" "),(item.isSuccess==1)?_c('span',[_vm._v("推荐成功，可得奖励")]):_vm._e()])])}),0),_vm._v(" "),(_vm.recommendList.length === 0)?_c('div',{staticStyle:{"text-align":"center","font-size":"14px","padding-top":"40px","color":"#999"}},[_vm._v("暂无推荐")]):_vm._e(),_vm._v(" "),(_vm.loading && (_vm.recommendList.length>0))?_c('div',{staticStyle:{"text-align":"center","padding":"10px 0"}},[_c('mt-spinner',{attrs:{"size":30,"color":"rgb(38, 162, 255)","type":"triple-bounce"}})],1):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(471);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69831abc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1070);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2689)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-69831abc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69831abc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69831abc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerEdit_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2690);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2d9b1012", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-69831abc]{height:100%;background-color:#f2f2f2}.outContainer>.infoContainer[data-v-69831abc]{background-color:#fff;padding-left:12px;margin-bottom:10px}.outContainer>.infoContainer>div[data-v-69831abc]{border-bottom:1px solid #d9d9e2;height:49px;line-height:49px}.outContainer>.infoContainer>div .area[data-v-69831abc]{margin-left:16px;position:relative;padding-right:28px}.outContainer>.infoContainer>div .area[data-v-69831abc]:after{content:\"\";width:9px;height:6px;position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background-image:url(" + escape(__webpack_require__(2691)) + ");background-size:100%;background-repeat:no-repeat}.outContainer>.infoContainer>div>.left[data-v-69831abc]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.infoContainer>div>.rightContent[data-v-69831abc]{height:49px;margin-left:80px;position:relative}.outContainer>.infoContainer>div>.rightContent>a[data-v-69831abc]{font-family:PingFangSC-Regular;font-size:16px;color:#333}.outContainer>.infoContainer>div>.rightContent>input[data-v-69831abc]{position:absolute;top:49%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer>.infoContainer>div[data-v-69831abc]:last-child{border-bottom:none}.outContainer>.btnContainer[data-v-69831abc]{margin-top:32px;padding-left:12px;padding-right:12px}.outContainer>.btnContainer>.btn[data-v-69831abc]{background:#ee4545;border-radius:5px;height:49px;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#fff;display:block}.outContainer>.popup[data-v-69831abc]{width:100%;background-color:#fff;padding-top:20px;padding-bottom:4px;text-align:center}.outContainer>.popup>div[data-v-69831abc]{display:inline-block}.outContainer>.popup>div>span[data-v-69831abc]{width:32px;height:36px;line-height:36px;text-align:center;background:#f5f5f5;border:1px solid #b9b9b9;border-radius:4px;margin-bottom:16px;margin-right:6px;margin-left:6px}.outContainer>.popup>div>span.current[data-v-69831abc]{color:#ee4545;border-color:#ee4545}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/Rectangle.da02428.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Popup: _mintUi.Popup
  },
  data: function data() {
    return {
      popupArea: false,
      currentPlate: '沪',
      plates: ['京', '沪', '津', '渝', '冀', '豫', '云', '辽', '黑', '湘', '皖', '鲁', '新', '苏', '浙', '赣', '鄂', '桂', '甘', '晋', '蒙', '陕', '吉', '闽', '贵', '粤', '川', '青', '藏', '琼', '宁', '台'],
      userInfo: {
        plateNumber: '',
        carBrand: '',
        customerName: ''
      },
      nickName: '',
      phone: ''
    };
  },
  watch: {
    /** 控制输入的金额长度 */phone: function phone() {
      if (this.phone.length > 11) {
        this.phone = this.phone.slice(0, 11);
      }
    }
  },
  mounted: function mounted() {
    this.getUserInfo();
  },
  methods: {
    /** 动态设置title */setTitle: function setTitle(title) {
      document.title = title;
      // const mobile = navigator.userAgent.toLowerCase()
      // if (/iphone|ipad|ipod/.test(mobile)) {
      var iframe = document.createElement('iframe');
      iframe.style.visibility = 'hidden';
      // 替换成站标favicon路径或者任意存在的较小的图片即可
      iframe.setAttribute('src', 'http://static2.kaxiuyun.com/kxy/app/iframeImg.png');
      var _iframeCallback = function iframeCallback() {
        var timer = setTimeout(function () {
          iframe.removeEventListener('load', _iframeCallback);
          document.body.removeChild(iframe);
          clearTimeout(timer);
        }, 9);
      };
      iframe.addEventListener('load', _iframeCallback);
      document.body.appendChild(iframe);
      // }
    },
    /** 保存客户信息 */submitUserInfo: function submitUserInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_CUSTOMER_UPDATE_USERINFO, {
        miniServiceId: this.$route.query.miniServiceId,
        userId: this.$route.query.userId,
        plateNumber: this.currentPlate + this.userInfo.plateNumber,
        carBrand: this.userInfo.carBrand,
        customerName: this.userInfo.customerName,
        customerPhone: this.phone
      }, function (data) {
        console.log(data);
        (0, _mintUi.Toast)({
          message: '修改成功',
          position: 'bottom',
          duration: 1500
        });
        _this.getUserInfo();
      }, function () {}, this);
    },
    /** 选择当前地区牌照 */changePlate: function changePlate(plate) {
      this.currentPlate = plate;
    },
    /** 获取用户信息 */getUserInfo: function getUserInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_CUSTOMER_INFO, {
        miniServiceId: this.$route.query.miniServiceId
      }, function (data) {
        console.log(data);
        var _title = data.customerName || data.nickName;
        _this2.setTitle(_title);
        _this2.phone = data.phone || '';
        _this2.nickName = data.nickName || '';
        _this2.userInfo.carBrand = data.carBrand || '';
        _this2.userInfo.customerName = data.customerName || '';
        _this2.userInfo.plateNumber = data.plateNumber.slice(1);
        _this2.currentPlate = data.plateNumber.slice(0, 1);
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"infoContainer"},[_c('div',[_c('div',{staticClass:"left"},[_vm._v("\n        车牌号码\n      ")]),_vm._v(" "),_c('div',{staticClass:"area left",on:{"click":function($event){_vm.popupArea=true;}}},[_vm._v(_vm._s(_vm.currentPlate))]),_vm._v(" "),_c('div',{staticClass:"rightContent",staticStyle:{"margin-left":"127px"}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.userInfo.plateNumber),expression:"userInfo.plateNumber"}],attrs:{"maxlength":"7","placeholder":"请输入车牌号","type":"text"},domProps:{"value":(_vm.userInfo.plateNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.userInfo, "plateNumber", $event.target.value)}}})])]),_vm._v(" "),_c('div',[_c('div',{staticClass:"left"},[_vm._v("\n        车辆型号\n      ")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.userInfo.carBrand),expression:"userInfo.carBrand"}],attrs:{"maxlength":"10","placeholder":"请输入车辆品牌及型号","type":"text"},domProps:{"value":(_vm.userInfo.carBrand)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.userInfo, "carBrand", $event.target.value)}}})])])]),_vm._v(" "),_c('div',{staticClass:"infoContainer"},[_c('div',[_c('div',{staticClass:"left"},[_vm._v("\n        客户昵称\n      ")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.nickName),expression:"nickName"}],attrs:{"placeholder":"请输入客户昵称","disabled":"","type":"text"},domProps:{"value":(_vm.nickName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.nickName=$event.target.value}}})])]),_vm._v(" "),_c('div',[_c('div',{staticClass:"left"},[_vm._v("\n        客户姓名\n      ")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.userInfo.customerName),expression:"userInfo.customerName"}],attrs:{"placeholder":"请输入客户姓名","maxlength":"20","type":"text"},domProps:{"value":(_vm.userInfo.customerName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.userInfo, "customerName", $event.target.value)}}})])]),_vm._v(" "),_c('div',[_c('div',{staticClass:"left"},[_vm._v("\n        手机号码\n      ")]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phone),expression:"phone"}],attrs:{"placeholder":"请输入手机号码","type":"number"},domProps:{"value":(_vm.phone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})])])]),_vm._v(" "),_c('div',{staticClass:"btnContainer"},[_c('div',{staticClass:"btn",on:{"click":_vm.submitUserInfo}},[_vm._v("\n      保存\n    ")])]),_vm._v(" "),_c('mt-popup',{staticClass:"popup",attrs:{"position":"bottom"},model:{value:(_vm.popupArea),callback:function ($$v) {_vm.popupArea=$$v},expression:"popupArea"}},[_c('div',_vm._l((_vm.plates),function(item,index){return _c('span',{key:index,class:_vm.currentPlate === item ? 'current' : '',on:{"click":function($event){return _vm.changePlate(item)}}},[_vm._v(_vm._s(item))])}),0)])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(472);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38be9fdc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1071);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2692)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-38be9fdc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38be9fdc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38be9fdc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamic_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2693);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2dcec1eb", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".dynamic[data-v-38be9fdc]{background:#f2f2f2}.mask1[data-v-38be9fdc]{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none}#imgshow[data-v-38be9fdc]{position:absolute;width:100%;height:auto;top:50%;left:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}.text[data-v-38be9fdc]{min-height:100px;background:#fff;padding:10px 3%}.text textarea[data-v-38be9fdc]{width:100%;height:100%;border:none;font-family:PingFangSC-Regular;font-size:16px;color:#333;line-height:23px}.imgBox[data-v-38be9fdc]{width:100%;padding:9px 3% 5%;box-sizing:border-box;-webkit-box-sizing:border-box;overflow:hidden;background:#fff}.imgBox .imglist[data-v-38be9fdc]{width:70px;height:70px;margin-right:10px;margin-bottom:10px;position:relative;float:left}.imgBox .imglist .closeImg[data-v-38be9fdc]{position:absolute;width:20px;height:20px;border-radius:50%;-webkit-border-radius:50%;top:-8px;right:-8px;background-image:url(" + escape(__webpack_require__(2694)) + ");background-repeat:no-repeat;background-position:0;background-size:20px 20px}.imgBox .imglist img[data-v-38be9fdc]{width:100%;height:100%}.addImg[data-v-38be9fdc]{background:#f2f2f2;border:1px solid #cfcfd8;width:70px;height:70px;background-image:url(" + escape(__webpack_require__(266)) + ");background-repeat:no-repeat;background-position:50%;background-size:32px 32px;float:left;margin-top:3px}.putPhoto[data-v-38be9fdc]{width:100%;height:100%;opacity:0}.sendBtn[data-v-38be9fdc]{width:94%;height:49px;line-height:49px;background:#ee4545;border-radius:5px;-webkit-border-radius:5px;margin:30px auto 0;text-align:center;color:#fff;font-size:18px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/delImg.b71eaf8.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _alloyfinger = _interopRequireDefault(__webpack_require__(121));
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {},
  data: function data() {
    return {
      imgList: [],
      ios: '',
      bucketUrl: '',
      token: '',
      stationId: this.$route.query.stationId,
      content: ''
    };
  },
  created: function created() {
    var that = this;
    if (that._Util.isIOS) {
      that.ios = true;
    } else {
      that.ios = false;
    }
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that.ios) {
        that.upload();
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    this.imgToBig();
  },
  methods: {
    upload: function upload(e) {
      var that = this;
      if (that.ios) {
        // eslint-disable-next-line no-unused-vars
        var uploader = Qiniu.uploader({
          runtimes: 'html5,flash,html4',
          browse_button: 'upBtn',
          // uptoken_url: that.token,
          uptoken: that.token,
          domain: that.bucketUrl,
          get_new_uptoken: false,
          container: 'container',
          filters: {
            max_file_size: '100mb',
            prevent_duplicates: true,
            mime_types: [{
              title: 'Image files',
              extensions: 'jpg,gif,png,jpeg'
            }]
          },
          flash_swf_url: 'js/plupload/Moxie.swf',
          max_retries: 0,
          dragdrop: true,
          drop_element: 'container',
          chunk_size: '4mb',
          auto_start: true,
          multi_selection: false,
          init: {
            FilesAdded: function FilesAdded(up, files) {
              // eslint-disable-next-line no-undef
              plupload.each(files, function (file) {});
            },
            BeforeUpload: function BeforeUpload(up, file) {
              _mintUi.Indicator.open('上传中...');
            },
            UploadProgress: function UploadProgress(up, file) {},
            FileUploaded: function FileUploaded(up, file, info) {
              _mintUi.Indicator.close();
              that.imgList.push(JSON.parse(info.response).key);
            },
            Error: function Error(up, err, errTip) {
              _mintUi.MessageBox.alert(JSON.stringify(err));
            },
            UploadComplete: function UploadComplete() {},
            Key: function Key(up, file) {}
          }
        });
      } else {
        var file = e.target.files[0];
        if (file) {
          _mintUi.Indicator.open('上传中...');
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          _jquery.default.ajax({
            url: 'https://upload.qiniup.com',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgList.push(res.key);
          }).fail(function () {});
        }
      }
    },
    delImg: function delImg(i, imgs) {
      imgs = imgs.splice(i, 1);
    },
    imgToBig: function imgToBig() {
      (0, _jquery.default)('body').delegate('.imglist img', 'click', function () {
        (0, _jquery.default)('.mask1').show();
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'scale(0)';
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'translateX(-50%) translateY(-50%)';
        var src = (0, _jquery.default)(this).attr('src');
        if (src.indexOf('?imageView2') != -1) {
          src = src.replace('?imageView2/1/w/150/h/150', '');
        }
        (0, _jquery.default)('#imgshow').attr('src', src);
        //
      });
      (0, _jquery.default)('body').delegate('.mask1', 'click', function () {
        (0, _jquery.default)('.mask1').hide();
      });
      var el = document.getElementById('imgshow');
      var initScale = 1;
      var sc = 1;
      var mox, moy;
      // eslint-disable-next-line no-unused-vars
      var af = new _alloyfinger.default(el, {
        touchStart: function touchStart() {
          mox = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[4]);
          moy = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[5]);
        },
        pressMove: function pressMove(evt) {
          mox += evt.deltaX;
          moy += evt.deltaY;
          el.style.webkitTransform = 'translateX(' + mox + 'px) translateY(' + moy + 'px) scale(' + sc + ')';
          evt.preventDefault();
        },
        pinch: function pinch(evt) {
          sc = initScale * evt.zoom;
          el.style.webkitTransform = 'scale(' + sc + ')';
          el.style.transformOrigin = 'center center';
        },
        multipointStart: function multipointStart() {
          initScale = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[0]);
        }
      });
    },
    sendData: function sendData() {
      var that = this;
      if (that.content.replace(/\s+/g, '') == '' && that.imgList.length == 0) {
        (0, _mintUi.Toast)({
          message: '请先输入内容',
          duration: 1000
        });
        return;
      }
      var data = {
        stationId: that.stationId,
        content: that.content,
        imageUrls: that.imgList.join(',')
      };
      that._Util.post(that._Api.POST_DYNAMIC, data, function (data) {
        (0, _mintUi.Toast)('发布成功!');
        setTimeout(function () {
          that.$router.go(-1);
        }, 300);
      }, function () {
        (0, _mintUi.Toast)('发布失败！');
      }, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dynamic"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"text"},[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.content),expression:"content"}],attrs:{"placeholder":"此时此刻，想和大家分享点什么呢？"},domProps:{"value":(_vm.content)},on:{"input":function($event){if($event.target.composing){ return; }_vm.content=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"imgBox"},[_vm._l((_vm.imgList),function(v,i){return _c('div',{key:i,staticClass:"imglist"},[_c('div',{staticClass:"closeImg",on:{"click":function($event){$event.stopPropagation();return _vm.delImg(i,_vm.imgList)}}}),_vm._v(" "),_c('img',{attrs:{"src":_vm.bucketUrl + v + '?imageView2/1/w/150/h/150'}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.imgList.length < 9),expression:"imgList.length < 9"}],staticClass:"addImg"},[(!_vm.ios)?_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"}},[_c('input',{staticClass:"putPhoto",staticStyle:{"width":"100%","height":"100%"},attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})]):_vm._e(),_vm._v(" "),(_vm.ios)?_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"},attrs:{"id":"container"}},[_c('button',{staticClass:"putPhoto",attrs:{"id":"upBtn"}})]):_vm._e()])],2),_vm._v(" "),_c('div',{staticClass:"sendBtn",on:{"click":_vm.sendData}},[_vm._v("发布")]),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","margin-top":"20px"}},[_vm._v("发布后司机可在小程序上查看")])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask1"},[_c('img',{attrs:{"id":"imgshow"}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(473);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_138059a7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1072);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2695)
  __webpack_require__(2697)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-138059a7"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_138059a7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_138059a7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_bookkeeping_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2696);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("31985ad6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bookkeeping[data-v-138059a7],.UiBox[data-v-138059a7]{background:#f2f2f2}.item[data-v-138059a7]{height:136px;background:#fff;margin-bottom:10px}.item .sign[data-v-138059a7]{color:#333;font-weight:600;font-size:0;height:46px;line-height:46px;border-bottom:1px solid #e6e6e6;position:relative}.item .sign .titleTab[data-v-138059a7]{border:1px solid gray;border-radius:2px;font-family:PingFangSC-Regular;font-size:14px;color:#787878;width:46px;height:24px;line-height:23px;text-align:center;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.item .sign .titleTab.active[data-v-138059a7]{border:1px solid #ee4545;color:#ee4545}.item .sign .titleTab[data-v-138059a7]:first-of-type{left:12px}.item .sign .titleTab[data-v-138059a7]:nth-of-type(2){left:73px}.item .sign .summary[data-v-138059a7]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px;font-family:PingFangSC-Regular;font-size:14px;color:#333;font-weight:400}.item .sign .summary>span[data-v-138059a7]{font-family:PingFangSC-Semibold;font-size:16px;color:#ee4545;font-weight:600}.item .sign>span[data-v-138059a7]:first-of-type{background:#ee4545;width:4px;height:14px;display:inline-block;vertical-align:middle}.item .sign>span[data-v-138059a7]:nth-of-type(2){margin-left:8px;font-size:16px;display:inline-block;vertical-align:middle}.item .detail[data-v-138059a7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:90px;padding:16px 0}.item .detail li[data-v-138059a7]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.item .detail li span[data-v-138059a7]{display:block;width:100%;text-align:center}.item .detail li .num[data-v-138059a7]{height:30px;line-height:30px;font-size:20px;color:#333;font-weight:700}.item .detail li .explain[data-v-138059a7]{height:20px;line-height:20px;color:#787878}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2698);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("21347c44", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".subcardContainer[data-v-138059a7]{margin-top:20px;padding-left:12px;padding-right:12px}.subcardContainer .detail .num[data-v-138059a7],.subcardContainer .sign .summary[data-v-138059a7],.subcardContainer .sign .titleTab[data-v-138059a7]{font-weight:400!important}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {},
  data: function data() {
    return {
      isToday: true,
      isCurrentMonth: true,
      params: {
        code: 'app_bookkeep_count',
        sys_uid: this.$route.query.userId,
        stationId: this.$route.query.stationId,
        pageSize: 10,
        pageNum: 1
      },
      dataList: {}
    };
  },
  created: function created() {
    var that = this;
    that._Util.post(that._Api.POST_BOOKKEEPING, that.params, function (data) {
      if (data) {
        that.dataList = data.dataList[0];
      }
    }, function () {}, that);
  },
  mounted: function mounted() {},
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bookkeeping"},[_c('div',{staticClass:"UiBox"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"sign"},[_c('span'),_c('span',[_vm._v("累计")]),_vm._v(" "),_c('div',{staticClass:"summary"},[_vm._v("累计"+_vm._s(_vm.dataList.person_count)+"人记账，共"),_c('span',[_vm._v(_vm._s(_vm.dataList.num_count))]),_vm._v("笔")])]),_vm._v(" "),_c('ul',{staticClass:"detail"},[_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.turnover_count))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("记账金额")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.settlement_count))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中付现")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.unpaid_count))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中挂账")])])])]),_vm._v(" "),_c('div',{staticClass:"subcardContainer"},[_c('div',{staticClass:"item subcard"},[_c('div',{staticClass:"sign"},[_c('div',{staticClass:"titleTab",class:{active: _vm.isToday},on:{"click":function($event){_vm.isToday=true;}}},[_vm._v("今日")]),_vm._v(" "),_c('div',{staticClass:"titleTab",class:{active: !_vm.isToday},on:{"click":function($event){_vm.isToday=false;}}},[_vm._v("昨日")]),_vm._v(" "),(_vm.isToday)?_c('div',{staticClass:"summary"},[_vm._v("今日"+_vm._s(_vm.dataList.person_today)+"人记账，共"+_vm._s(_vm.dataList.num_today)+"笔")]):_c('div',{staticClass:"summary"},[_vm._v("昨日"+_vm._s(_vm.dataList.person_yesterday)+"人记账，共"+_vm._s(_vm.dataList.num_yesterday)+"笔")])]),_vm._v(" "),(_vm.isToday)?_c('ul',{staticClass:"detail"},[_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.turnover_today))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("记账金额")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.settlement_today))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中付现")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.unpaid_today))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中挂账")])])]):_c('ul',{staticClass:"detail"},[_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.turnover_yesterday))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("记账金额")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.settlement_yesterday))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中付现")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.unpaid_yesterday))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中挂账")])])])]),_vm._v(" "),_c('div',{staticClass:"item subcard"},[_c('div',{staticClass:"sign"},[_c('div',{staticClass:"titleTab",class:{active: _vm.isCurrentMonth},on:{"click":function($event){_vm.isCurrentMonth=true;}}},[_vm._v("本月")]),_vm._v(" "),_c('div',{staticClass:"titleTab",class:{active: !_vm.isCurrentMonth},on:{"click":function($event){_vm.isCurrentMonth=false;}}},[_vm._v("上月")]),_vm._v(" "),(_vm.isCurrentMonth)?_c('div',{staticClass:"summary"},[_vm._v("本月"+_vm._s(_vm.dataList.person_tomonth)+"人记账，共"+_vm._s(_vm.dataList.num_tomonth)+"笔")]):_c('div',{staticClass:"summary"},[_vm._v("上月"+_vm._s(_vm.dataList.person_lastmonth)+"人记账，共"+_vm._s(_vm.dataList.num_lastmonth)+"笔")])]),_vm._v(" "),(_vm.isCurrentMonth)?_c('ul',{staticClass:"detail"},[_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.turnover_tomonth))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("记账金额")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.settlement_tomonth))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中付现")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.unpaid_tomonth))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中挂账")])])]):_c('ul',{staticClass:"detail"},[_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.turnover_lastmonth))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("记账金额")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.settlement_lastmonth))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中付现")])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.dataList.unpaid_lastmonth))]),_vm._v(" "),_c('span',{staticClass:"explain"},[_vm._v("其中挂账")])])])])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(474);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_41627b2b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1073);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_41627b2b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_41627b2b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_followMe_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"text-align":"center","margin-top":"50px"}},[_c('p',{staticStyle:{"font-size":"20px"}},[_vm._v("长按二维码关注卡修宝典")]),_vm._v(" "),_c('p',[_c('img',{attrs:{"src":__webpack_require__(2699),"alt":""}})])])}]
module.exports = __webpack_require__.p + "static/img/cordWen.2235cea.jpg";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(475);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c0c78a40_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1074);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2700)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c0c78a40_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c0c78a40_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_remoteSupport_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2701);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0f156359", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".title{margin-top:25px}.desc,.title{width:85%;padding-left:15%;color:#000;font-family:microsoft yahei;font-size:16px}.desc{margin-top:7px}.applyBtn{width:70%;margin:0 auto;margin-top:35px;font-size:24px;padding:10px 0;text-align:center;background:#8bc34a;border-radius:5px;-webkit-border-radius:5px;color:#fff}.successBox{width:100%;margin-top:35px}.tip{width:85%;font-size:20px;color:#bc4149;background:#ccc;border-radius:5px;-webkit-border-radius:5px;padding:10px 0}.tellYou,.tip{margin:0 auto;text-align:center}.tellYou{width:90%;margin-top:10px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      isShow: true,
      isStatus: false,
      uPhone: ''
    };
  },
  mounted: function mounted() {},
  methods: {
    toCall: function toCall() {
      var that = this;
      that._Util.post(that._Api.POST_REMOTE_SUPPORT_STATUS, {}, function (data) {
        if (data.status == 2) {
          that._Util.showMsgBoxConfirm('系统未检测到您的设备<br/>请重新连接您的诊断能手', function (action) {
            if (action) {
              that.isStatus = true;
            }
          });
        } else {
          that.isStatus = false;
          that.uPhone = data.uphone;
          that._Util.showMsgBoxConfirm('工程师将拨打以下号码<br/>请确认可以正常接听<br/>如号码更换请联系客服<br/><span style="font-size: 18px;color: black">' + that.uPhone + '</span>', function (action) {
            if (action) {
              that._Util.post(that._Api.POST_REMOTE_SUPPORT_SUCCESS, {}, function (data) {
                that.isShow = false;
              }, function () {}, that);
              //
            }
          });
        }
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"title"},[_vm._v("远程支持步骤:")]),_vm._v(" "),_c('div',{staticClass:"desc"},[_vm._v("1.连接诊断能手")]),_vm._v(" "),_c('div',{staticClass:"desc"},[_vm._v("2.申请电话远程支持")]),_vm._v(" "),_c('div',{staticClass:"desc"},[_vm._v("3.接听电话")]),_vm._v(" "),(_vm.isStatus)?_c('div',{staticStyle:{"width":"80%","margin":"0 auto","margin-top":"25px","color":"#bc4149","font-size":"18px","text-align":"center"}},[_vm._v("请重新连接设备后申请")]):_vm._e(),_vm._v(" "),(_vm.isShow)?_c('div',{staticClass:"applyBtn",on:{"click":function($event){return _vm.toCall()}}},[_vm._v("申请电话远程支持")]):_vm._e(),_vm._v(" "),(!_vm.isShow)?_c('div',{staticClass:"successBox"},[_c('div',{staticClass:"tip"},[_vm._v("申请成功，请注意接听来电")]),_vm._v(" "),_c('div',{staticClass:"tellYou"},[_vm._v(_vm._s('卡修宝典工程师即将拨打'+_vm.uPhone))])]):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(476);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3ff52858_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1075);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2702)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3ff52858_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3ff52858_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_certification_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2703);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3a1557f3", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".becomeMember .MemberNav{overflow:hidden}.becomeMember .MemberNav ul{overflow:hidden;border-radius:5px;margin:10px;background:#d6d6d6;box-shadow:inset 0 2px 2px #aaa}.becomeMember .MemberNav ul li{float:left;width:50%;height:40px;line-height:40px;text-align:center;font-size:16px}.becomeMember .MemberNav ul li.active{background:#1766b3;color:#fff;box-shadow:0 0 10px #000}.fufeiPrice .wxPay{width:94%;height:50px;color:#fff;font-size:18px;background:#d41116;display:block;margin:0 auto;text-align:center;border-radius:5px}.fufeiPrice p{margin:5px 10px 0}.fufeiPrice p:first-child{margin:10px 10px 0}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import DialogComponent from '../../components/DialogComponent.vue'
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      userInfo: {},
      phone: '',
      phoneExp: /^1[3456789]\d{9}$/,
      disableIn: false,
      timeOut: 60,
      buttonValue: '发送验证码',
      styleColor: {
        smsColor: '#d41116'
      },
      smsYzm: '',
      uname: ''
    };
  },
  methods: {
    save: function save() {
      var msg = '';
      var that = this;
      if (that.uname == '') {
        msg = '您的姓名不能为空';
        that._Util.showMsgBox(msg);
        return;
      }
      console.log(that.phone);
      if (!that.phoneExp.test(that.phone.trim())) {
        msg = '电话号码格式不正确或者为空';
        that._Util.showMsgBox(msg);
        return;
      }
      if (!that.smsYzm) {
        msg = '请请输六位验证码';
        that._Util.showMsgBox(msg);
        return;
      }
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_CHECK_CODE, {
        inputCode: that.smsYzm,
        phone: that.phone
      }, function (data) {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
          var params = {
            nickname: data.nickname,
            sex: data.sex,
            province: data.province,
            city: data.city,
            country: data.country,
            headImgUrl: data.headImgUrl,
            uprovince: data.uprovince,
            ucity: data.ucity,
            udist: data.udist,
            uaddress: data.uaddress,
            ucompany: data.ucompany,
            uname: that.uname,
            uemail: data.uemail,
            uphone: that.phone,
            inputCode: that.smsYzm,
            openId: data.openId,
            userType: data.userType
          };
          that._Util.post(that._Api.POST_MEMBER_PERSONAL_SAVE, params, function (data) {
            //              that._Util.post(that._Api.POST_MEMBER_PERSONAL_SAVE_WXAUTH, params, function (data) {
            // that._Util.showToast('认证成功');
            that.$router.replace({
              path: that.$route.query.fullPath
            });
            //              }, () => {
            //
            //              }, that)
          }, function () {}, that);
        }, function () {}, that);
      }, function (data) {}, that);
    },
    sendSms: function sendSms() {
      var that = this;
      var msg = '';
      if (!that.phoneExp.test(that.phone)) {
        msg = '手机号码格式不正确或不能为空';
      }
      if (msg) {
        that._Util.showMsgBox(msg);
        return;
      }
      that.disableIn = true;
      that._Util.post(that._Api.POST_WXAUTH_PHONE_NOTE, {
        phone: that.phone
      }, function (data) {
        that.styleColor.smsColor = '#999999';
        var time = setInterval(function () {
          if (that.timeOut == 0) {
            that.disableIn = false;
            that.buttonValue = '发送验证码';
            that.styleColor.smsColor = '#ff0000';
            that.timeOut = 60;
            clearInterval(time);
            return;
          }
          that.buttonValue = that.timeOut-- + 's后重新发送';
        }, 1000);
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"becomeMember"},[_c('div',{staticClass:"bMember current",attrs:{"id":"fufeiMember"}},[_c('p',[_vm._v("请留下您的联系方式")]),_vm._v(" "),_c('div',{staticClass:"fufeiForm"},[_c('ul',[_c('li',{staticClass:"li2"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.uname),expression:"uname"}],attrs:{"type":"text","name":"","placeholder":"请输入您的真实姓名"},domProps:{"value":(_vm.uname)},on:{"input":function($event){if($event.target.composing){ return; }_vm.uname=$event.target.value}}})])])]),_vm._v(" "),_c('ul',[_c('li',{staticClass:"li2"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phone),expression:"phone"}],attrs:{"type":"tel","placeholder":"请输入手机号码"},domProps:{"value":(_vm.phone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})])])]),_vm._v(" "),_c('ul',[_c('li',{staticClass:"li2"},[_c('div',{staticClass:"yzm"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.smsYzm),expression:"smsYzm"}],attrs:{"maxlength":6,"type":"tel","placeholder":"请输六位验证码"},domProps:{"value":(_vm.smsYzm)},on:{"input":function($event){if($event.target.composing){ return; }_vm.smsYzm=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"yzmBtn"},[_c('button',{style:({background:_vm.styleColor.smsColor}),attrs:{"disabled":_vm.disableIn},on:{"click":function($event){return _vm.sendSms()}}},[_vm._v("\n                "+_vm._s(_vm.buttonValue)+"\n              ")])])])])]),_vm._v(" "),_c('div',{staticClass:"fufeiTime"}),_vm._v(" "),_c('div',{staticClass:"fufeiPrice"},[_c('button',{staticClass:"wxPay",on:{"click":function($event){return _vm.save()}}},[_vm._v("确定")])])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(477);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9c71de22_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1076);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2704)
  __webpack_require__(2712)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-9c71de22"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9c71de22_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9c71de22_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberCenter_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2705);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("58611372", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-9c71de22]{padding-top:.8rem;background-color:#fff;width:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.outContainer .userInfo[data-v-9c71de22]{width:17.55rem;height:4.5rem;margin:0 auto;box-shadow:0 0 .2rem 0 hsla(30,20%,62%,.34);border-radius:.2rem;position:relative;margin-bottom:1rem}.outContainer .userInfo .avatar[data-v-9c71de22]{width:2.5rem;height:2.5rem;border-radius:50%;left:.6rem;pointer-events:none}.outContainer .userInfo .avatar[data-v-9c71de22],.outContainer .userInfo .userDetail[data-v-9c71de22]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .userInfo .userDetail[data-v-9c71de22]{left:3.5rem}.outContainer .userInfo .userDetail .uname[data-v-9c71de22]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;line-height:1.25rem}.outContainer .userInfo .userDetail .uname .crown[data-v-9c71de22]{width:.85rem;height:.57rem;background-image:url(" + escape(__webpack_require__(2706)) + ");background-repeat:no-repeat;background-size:100%;margin-left:.18rem}.outContainer .userInfo .userDetail .memberDeadline[data-v-9c71de22]{margin-top:.1rem;color:#666;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;line-height:1rem}.outContainer .userInfo .link-btn[data-v-9c71de22]{position:absolute;top:.7rem;padding:.4rem .63rem;right:0;font-size:.6rem;line-height:.83rem;color:#666}.outContainer .userInfo .link-btn .icon-link-btn[data-v-9c71de22]{display:inline-block;width:.29rem;height:.5rem;margin-left:.2rem;margin-top:-.1rem;background-image:url(" + escape(__webpack_require__(57)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;vertical-align:middle}.outContainer .membershipType[data-v-9c71de22]{padding-bottom:1rem;border-bottom:.4rem solid #f2f2f2}.outContainer .membershipType .title[data-v-9c71de22]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;margin-bottom:.95rem;padding-left:.6rem}.outContainer .membershipType .typeWrap[data-v-9c71de22]{width:100%;padding-left:.8rem;padding-right:.8rem;margin-bottom:1.6rem;overflow:hidden}.outContainer .membershipType .typeWrap .item[data-v-9c71de22]{height:5.4rem;width:8.2rem;background-image:url(" + escape(__webpack_require__(2707)) + ");background-repeat:no-repeat;background-size:100%;padding-top:.53rem;padding-left:.6rem}.outContainer .membershipType .typeWrap .item>p[data-v-9c71de22]:first-of-type{font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#372a1c;text-indent:.1rem}.outContainer .membershipType .typeWrap .item>p[data-v-9c71de22]:nth-of-type(2){margin-top:.1rem;font-size:1rem;font-family:PingFangSC-Semibold;font-weight:700;color:#563d22;line-height:1.4rem}.outContainer .membershipType .typeWrap .item>p:nth-of-type(2)>span[data-v-9c71de22]{text-decoration:line-through;font-size:.55rem;font-family:PingFangSC-Regular;font-weight:400;color:#54412b;line-height:.75rem}.outContainer .membershipType .typeWrap .item>p[data-v-9c71de22]:nth-of-type(3){margin-top:.4rem;font-size:.55rem;font-family:PingFangSC-Regular;font-weight:400;color:#54412b;line-height:.75rem}.outContainer .membershipType .typeWrap .item[data-v-9c71de22]:first-of-type{float:left}.outContainer .membershipType .typeWrap .item[data-v-9c71de22]:nth-of-type(2){float:right}.outContainer .membershipType .typeWrap .active[data-v-9c71de22]{background-image:url(" + escape(__webpack_require__(2708)) + ")}.outContainer .membershipType .memberBtn[data-v-9c71de22]{width:16.75rem;height:2.2rem;line-height:2.2rem;text-align:center;border-radius:1.1rem;background:linear-gradient(137deg,#bf8c59,#e0a264);color:#fff;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;margin:0 auto}.outContainer .membershipRight[data-v-9c71de22]{padding-top:1.4rem}.outContainer .membershipRight .rightsTitle[data-v-9c71de22]{text-align:center}.outContainer .membershipRight .rightsTitle>div[data-v-9c71de22]:first-of-type{font-size:1rem;font-family:PingFangSC-Medium PingFangSC-Regular;font-weight:700;color:#333;line-height:1.4rem;position:relative;display:inline-block}.outContainer .membershipRight .rightsTitle>div[data-v-9c71de22]:first-of-type::before{background-image:url(" + escape(__webpack_require__(2709)) + ");left:-1.1rem}.outContainer .membershipRight .rightsTitle>div[data-v-9c71de22]:first-of-type::after,.outContainer .membershipRight .rightsTitle>div[data-v-9c71de22]:first-of-type::before{content:\"\";width:.88rem;height:.4rem;background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.outContainer .membershipRight .rightsTitle>div[data-v-9c71de22]:first-of-type::after{background-image:url(" + escape(__webpack_require__(2710)) + ");right:-1.1rem}.outContainer .membershipRight .rightsTitle>div[data-v-9c71de22]:nth-of-type(2){font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#6f4c12;line-height:1rem;margin-top:.15rem}.outContainer .membershipRight .requireData .main[data-v-9c71de22]{margin:.8rem .6rem 3rem;overflow:hidden}.outContainer .membershipRight .requireData .main>div[data-v-9c71de22]{margin-bottom:.38rem;float:left;width:33.33%;text-align:center}.outContainer .membershipRight .requireData .main>div[data-v-9c71de22]:nth-of-type(3n-2){text-align:left}.outContainer .membershipRight .requireData .main>div[data-v-9c71de22]:nth-of-type(3n){text-align:right}.outContainer .membershipRight .requireData .main>div>span[data-v-9c71de22]{width:5.6rem;height:1.8rem;line-height:1.8rem;text-align:center;background:#f7f2ee;border-radius:.05rem;border:.03rem solid #dca773;font-size:.7rem;font-family:PingFangSC-Medium;font-weight:700;color:#6f4c12}.outContainer .membershipRight .onlineQuestion .main[data-v-9c71de22]{margin:.8rem 0 3rem}.outContainer .membershipRight .onlineQuestion .main .lecturerWrap[data-v-9c71de22]{padding-left:.6rem;width:100%;overflow-x:auto;overflow-y:hidden;white-space:nowrap;font-size:0}.outContainer .membershipRight .onlineQuestion .main .lecturerWrap[data-v-9c71de22]::-webkit-scrollbar{display:none}.outContainer .membershipRight .onlineQuestion .main .lecturerWrap>img[data-v-9c71de22]{width:5.2rem;height:6.5rem;margin-right:.4rem}.outContainer .membershipRight .onlineQuestion .main .questionBtn[data-v-9c71de22]{width:6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:.9rem;border:.03rem solid #6f4c12;font-size:.7rem;font-family:PingFangSC-Medium;font-weight:700;color:#6f4c12;margin:.8rem auto 0}.outContainer .membershipRight .giftTicket .main[data-v-9c71de22]{margin:.8rem 0 3rem}.outContainer .membershipRight .giftTicket .main .ticketsList .ticket[data-v-9c71de22]{margin:0 auto 1rem;width:17.55rem;height:4.9rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/app/member-center/giftTicket.png\");background-repeat:no-repeat;background-size:100%;position:relative}.outContainer .membershipRight .giftTicket .main .ticketsList .ticket[data-v-9c71de22]:last-child{margin-bottom:0}.outContainer .membershipRight .giftTicket .main .ticketsList .ticket>img[data-v-9c71de22]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:.6rem;width:3.7rem;height:3.7rem;border-radius:.1rem;border:.03rem solid #f4ddc6;pointer-events:none}.outContainer .membershipRight .giftTicket .main .ticketsList .ticket .ticketName[data-v-9c71de22]{position:absolute;top:50%;left:4.9rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:6.4rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.13rem}.outContainer .membershipRight .giftTicket .main .ticketsList .ticket .takeBtn[data-v-9c71de22]{position:absolute;top:50%;right:.85rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.6rem;height:1.4rem;line-height:1.4rem;text-align:center;color:#fff;border-radius:.7rem;background:linear-gradient(38deg,#343332,#534e4a);font-size:.6rem;font-family:PingFangSC-Medium;font-weight:700}.outContainer .membershipRight .giftTicket .main .ticketsList .noticket[data-v-9c71de22]{text-align:center}.outContainer .membershipRight .giftTicket .main .ticketsList .noticket>img[data-v-9c71de22]{width:3.1rem;height:3rem;margin-top:1.2rem}.outContainer .membershipRight .giftTicket .main .ticketsList .noticket>p[data-v-9c71de22]{margin-top:.3rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.outContainer .membershipRight .giftTicket .main .checkTicketsBtn[data-v-9c71de22]{width:6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:.9rem;border:.03rem solid #6f4c12;font-size:.7rem;font-family:PingFangSC-Medium;font-weight:700;color:#6f4c12;margin:.8rem auto 0}.outContainer .membershipRight .unlimitedCard .main[data-v-9c71de22]{margin:.8rem 0 3rem}.outContainer .membershipRight .unlimitedCard .main .courseList[data-v-9c71de22]{padding-left:.8rem;padding-bottom:.2rem;width:100%;overflow-x:auto;overflow-y:hidden;white-space:nowrap;font-size:0}.outContainer .membershipRight .unlimitedCard .main .courseList[data-v-9c71de22]::-webkit-scrollbar{display:none}.outContainer .membershipRight .unlimitedCard .main .courseList .courseItem[data-v-9c71de22]{display:inline-block;width:8rem;height:7.7rem;background:#fff;box-shadow:0 0 .2rem 0 hsla(30,20%,62%,.34);border-radius:.1rem;font-size:0;margin-right:.4rem;position:relative}.outContainer .membershipRight .unlimitedCard .main .courseList .courseItem>img[data-v-9c71de22]{width:8rem;height:4.53rem;border-radius:.1rem .1rem 0 0}.outContainer .membershipRight .unlimitedCard .main .courseList .courseItem>div[data-v-9c71de22]{white-space:normal;position:absolute;top:4.53rem;left:0;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.05rem;padding:.43rem .2rem 0 .3rem;width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.outContainer .membershipRight .unlimitedCard .main .checkCourseBtn[data-v-9c71de22]{width:6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:.9rem;border:.03rem solid #6f4c12;font-size:.7rem;font-family:PingFangSC-Medium;font-weight:700;color:#6f4c12;margin:.8rem auto 0}.outContainer .membershipRight .taskCenter .main[data-v-9c71de22]{margin:.8rem 0 3rem}.outContainer .membershipRight .taskCenter .main .taskList .task[data-v-9c71de22]{margin:0 auto .8rem;width:17.55rem;height:3.4rem;background:#f7f2ee;border-radius:.1rem;border:.03rem solid #dca773;position:relative;padding-top:.68rem;padding-left:.4rem}.outContainer .membershipRight .taskCenter .main .taskList .task>div[data-v-9c71de22]:first-of-type{font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;line-height:1.13rem;width:75%}.outContainer .membershipRight .taskCenter .main .taskList .task>div:first-of-type > span[data-v-9c71de22]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545;line-height:1rem;margin-left:.4rem}.outContainer .membershipRight .taskCenter .main .taskList .task>div[data-v-9c71de22]:nth-of-type(2){margin-top:.1rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;line-height:.83rem}.outContainer .membershipRight .taskCenter .main .taskList .task>div[data-v-9c71de22]:nth-of-type(3){position:absolute;right:.4rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:3.6rem;height:1.4rem;line-height:1.4rem;text-align:center;background:linear-gradient(38deg,#343332,#534e4a);border-radius:.7rem;font-size:.6rem;font-family:PingFangSC-Medium;font-weight:700;color:#fff}.outContainer .membershipRight .taskCenter .main .checkTaskBtn[data-v-9c71de22]{width:6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:.9rem;border:.03rem solid #6f4c12;font-size:.7rem;font-family:PingFangSC-Medium;font-weight:700;color:#6f4c12;margin:.8rem auto 0}.outContainer .moreRights[data-v-9c71de22]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#999;line-height:1rem;padding-bottom:1rem;text-align:center}.outContainer .popupWrap[data-v-9c71de22]{height:22.25rem;width:100%;background-color:#fff}.outContainer .popupWrap .content[data-v-9c71de22]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.outContainer .popupWrap .content .title[data-v-9c71de22]{width:18.75rem;height:2.4rem;line-height:2.4rem;background:#fff;border-bottom:1px solid #e0e0e0;position:relative;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;text-align:center}.outContainer .popupWrap .content .title>span[data-v-9c71de22]{position:absolute;top:50%;right:.8rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.7rem;height:.7rem;background-image:url(" + escape(__webpack_require__(2711)) + ");background-repeat:no-repeat;background-size:100%}.outContainer .popupWrap .content .body[data-v-9c71de22]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/member03.948fb23.png";module.exports = __webpack_require__.p + "static/img/membership_uncheck.f9b2fcd.png";module.exports = __webpack_require__.p + "static/img/membership_checked.693c2bd.png";module.exports = __webpack_require__.p + "static/img/memberTitleLeft.bc8bc2b.png";module.exports = __webpack_require__.p + "static/img/memberTitleRight.5be995d.png";module.exports = __webpack_require__.p + "static/img/membershipClose.7648969.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2713);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6506b7cd", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".membership .popupWrap .body img{max-width:100%!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  filters: {
    parseData: function parseData(val) {
      if (!val) return;
      var date = new Date(val);
      var yy = date.getFullYear();
      var mm = date.getMonth() + 1;
      var dd = date.getDate();
      return yy + '.' + mm + '.' + dd;
    }
  },
  components: {},
  data: function data() {
    return {
      popupVisible: false,
      currentMembership: '',
      currentRepairer: '',
      repairList: [],
      taskList: [],
      membershipList: [],
      giftList: '',
      courseList: [],
      repairDataList: [],
      share_img: '',
      share_text: '',
      share_title: '',
      userInfo: '',
      showMemberRecord: false,
      isInIosWxMiniApp: localStorage.getItem('inWxMinapp') === '1' && this._Util.isIOS // 是否在ios微信小程序内打开
    };
  },
  watch: {
    /** 处理滚动穿透 */popupVisible: function popupVisible(val) {
      if (val) {
        this.fixedBody();
      } else {
        this.looseBody();
      }
    }
  },
  created: function created() {
    if (!this._Util.isApp() && !this._Util.isMPaaS()) {
      // this._Util.getKaluliAuth(this)
    }
    if (localStorage.getItem('inWxMinapp') === '1' && this.$route.query.miniappPay) {
      // 微信小程序
      this.$router.replace({
        name: 'memberRenewSuccess',
        query: {
          type: this.$route.query.type,
          fullPath: this.$route.query.fullPath,
          external: this.$route.query.external,
          name: this.$route.query.name,
          operType: 1
        }
      });
      return;
    }
    this.getUserInfo();
    // this.getMemberRecord()
  },
  mounted: function mounted() {
    this.getMembershipList();
    this.getRepairList();
    this.getGiftList();
    this.getCoursePlaybackList();
    // this.getRepairData()

    this._Util.collectPageView2(
    // 埋点
    {
      postUrl: this._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '会员中心',
      operate_page: '会员中心',
      optionType: '打开',
      param1: window.location.href,
      param2: this.$route.query.pathid,
      param3: this.$route.query.shareid
    }, this);
  },
  methods: {
    /**
     * 打开模态框前调用
     */
    fixedBody: function fixedBody() {
      var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
      document.body.style.cssText += 'position:fixed;width:100%;top:-' + scrollTop + 'px;';
    },
    /**
     * 关闭模态框后调用
     */
    looseBody: function looseBody() {
      var body = document.body;
      body.style.position = 'static';
      var top = body.style.top;
      document.body.scrollTop = document.documentElement.scrollTop = -parseInt(top);
      body.style.top = '';
    },
    // 在线问答
    currentImg: function currentImg(v) {
      event.preventDefault();
      this.currentRepairer = v;
      this.popupVisible = true;
    },
    /**
     * 获取用户信息
     */
    getUserInfo: function getUserInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        _this.userInfo = data;
        // this.getShareInfo()
        /* 添加未认证的弹窗*/
        if (_this.userInfo.userStatus == 0) {
          (0, _mintUi.MessageBox)({
            title: '认证提示',
            message: '您当前还未认证， 认证享受更多功能',
            confirmButtonText: '去认证',
            showCancelButton: true,
            cancelButtonText: '暂不认证'
          }).then(function (action) {
            if (action === 'confirm') {
              _this.$router.replace({
                name: 'personalCertification',
                query: {
                  from: 'certificationRenewal'
                }
              });
            }
          });
        }
      }, function () {}, this, true);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = '/v2/business/pay/certificationRenewal?shareid=' + that.userInfo.userId;
        if (that.$route.pathid) {
          pathName = pathName + '&pathid=' + that.$route.pathid;
        }
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.share_title || '卡修宝典会员中心',
                  desc: that.share_text || '海量福利，超值尊享',
                  link: location.origin + pathName,
                  imgUrl: that.share_img || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.share_title || '卡修宝典会员中心',
              desc: that.share_text || '海量福利，超值尊享',
              link: location.origin + pathName,
              imgUrl: that.share_img || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.share_title || '卡修宝典会员中心',
              desc: that.share_text || '海量福利，超值尊享',
              link: location.origin + pathName,
              imgUrl: that.share_img || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.share_title || '卡修宝典会员中心',
              desc: that.share_text || '海量福利，超值尊享',
              link: location.origin + pathName,
              imgUrl: that.share_img || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 获取分享内容相关
     */
    getShareInfo: function getShareInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'vip_page_share',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.share_img = data.dataList[0].share_img;
          _this2.share_title = data.dataList[0].share_title;
          _this2.share_text = data.dataList[0].share_text;
          _this2.share();
        }
      }, function () {}, this);
    },
    /**
     * 点击任务中心星豆
     */
    clickTackCenter: function clickTackCenter() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'taskCenter',
            url: location.origin + '/v2/community/taskCenter'
          }
        });
      } else {
        this.$router.push({
          name: 'taskCenter'
        });
      }
    },
    /**
     * 点击会员畅享卡
     */
    clickUnlimitedCard: function clickUnlimitedCard() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'unlimitCardWindow',
            url: location.origin + '/v2/shopping/unlimitCard'
          }
        });
      } else {
        this.$router.push({
          name: 'unlimitCard'
        });
      }
    },
    /**
     * 查看我的礼品券
     */
    goMyTicket: function goMyTicket() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'giftTicketsWindow',
            url: location.origin + '/v2/member/center/giftTickets'
          }
        });
      } else {
        this.$router.push({
          name: 'giftTickets'
        });
      }
    },
    /**
     * 点击会员礼品券
     */
    clickGiftTicket: function clickGiftTicket() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'memberGiftWindow',
            url: location.origin + '/v2/member/center/per/myGift'
          }
        });
      } else {
        this.$router.push({
          name: 'memberMyGift'
        });
      }
    },
    /**
     * 点击在线问答
     */
    clickOnlineQuestion: function clickOnlineQuestion() {
      var url = location.origin + '/v2/questionsOrAnswers';
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'externalPage2',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 点击维修资料
     */
    clickRepairData: function clickRepairData(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'repairDataWindow',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 支付按钮
     */
    payBtn: function payBtn() {
      var _this3 = this;
      /* 添加未认证的弹窗*/
      if (this.userInfo.userStatus == 0) {
        (0, _mintUi.MessageBox)({
          title: '认证提示',
          message: '您当前还未认证， 认证享受更多功能',
          confirmButtonText: '去认证',
          showCancelButton: true,
          cancelButtonText: '暂不认证'
        }).then(function (action) {
          if (action === 'confirm') {
            _this3.$router.replace({
              name: 'personalCertification',
              query: {
                from: 'certificationRenewal'
              }
            });
          }
        });
        return;
      }
      var pathid = this.$route.query.pathid || '';
      var shareid = this.$route.query.shareid || '';
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_GET_JS_PARAMETER_NEW, {
        code: this.currentMembership.code,
        remark: 'pathid=' + pathid + '&shareid=' + shareid
      }, function (data) {
        _this3._Util.wxPay(data.jsApiParameters, function () {
          _this3.$router.replace({
            name: 'memberRenewSuccess',
            query: {
              type: _this3.$route.query.type,
              fullPath: _this3.$route.query.fullPath,
              external: _this3.$route.query.external,
              name: _this3.$route.query.name,
              operType: 1
            }
          });
        });
      }, function () {}, this);
    },
    /**
     * 获取维修资料列表
     */
    getRepairData: function getRepairData() {
      var _this4 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'vip_page_material',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this4.repairDataList = data.dataList;
        }
      }, function () {}, this);
    },
    /**
     * 获取课程回放列表
     */
    getCoursePlaybackList: function getCoursePlaybackList() {
      var _this5 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GET_PLAYBACK_LIST, {}, function (data) {
        _this5.courseList = data.playBackList;
      }, function () {}, this, true);
    },
    /**
     * 获取会员套餐列表
     */
    getMembershipList: function getMembershipList() {
      var _this6 = this;
      this._Util.post(this._Api.POST_MEMBER_GETVIPPACKAGELIST, {}, function (data) {
        _this6.membershipList = data;
        _this6.currentMembership = data[0];
      }, function () {}, this);
    },
    /**
     * 获取师傅列表
     */
    getRepairList: function getRepairList() {
      var _this7 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GET_REPAIR_LIST, {
        pageNum: 1,
        pageSize: 50
      }, function (data) {
        _this7.repairList = _this7.repairList.concat(data.expertUserDetailList);
      }, function () {}, this, true);
    },
    /**
     * 获取会员礼品券
     */
    getGiftList: function getGiftList() {
      var _this8 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GET_TICKET_LIST, {}, function (data) {
        _this8.giftList = data.giftList;
      }, function () {}, this, true);
    },
    /**
     * 获取任务列表
     */
    getTaskList: function getTaskList() {
      var _this9 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GET_TASK_LIST, {}, function (data) {
        _this9.taskList = data.taskList;
      }, function () {}, this, true);
    },
    /**
     * 获取会员记录
     */
    getMemberRecord: function getMemberRecord() {
      var _this0 = this;
      this._Util.post(this._Api.QUERY_DATA_LIST, {
        code: 'member_flow_chart',
        userid: localStorage.getItem('userId')
      }, function (data) {
        _this0.showMemberRecord = data && data.dataList && data.dataList.length;
      }, function () {}, this, true);
    },
    /**
     * 打开会员记录页
     */
    openMemberRecord: function openMemberRecord() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'memberRecord',
            url: location.origin + '/v2/member/memberRecord'
          }
        });
      } else {
        this.$router.push({
          name: 'memberRecord'
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer membership"},[_c('div',{staticClass:"userInfo"},[_c('img',{staticClass:"avatar",attrs:{"src":_vm.userInfo.headImgUrl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}),_vm._v(" "),_c('div',{staticClass:"userDetail"},[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(_vm.$store.getters.getUserName)),(_vm.userInfo.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e()]),_vm._v(" "),(_vm.userInfo.userStatus===2)?_c('div',{staticClass:"memberDeadline"},[_vm._v("会员到期："+_vm._s(_vm._f("parseData")(_vm.userInfo.userDetail.feeEndTime)))]):_c('div',{staticClass:"memberDeadline"},[_vm._v("您还未开通会员")])]),_vm._v(" "),(_vm.showMemberRecord)?_c('div',{staticClass:"link-btn",on:{"click":_vm.openMemberRecord}},[_vm._v("会员记录"),_c('i',{staticClass:"icon-link-btn"})]):_vm._e()]),_vm._v(" "),(!_vm.isInIosWxMiniApp)?_c('div',{staticClass:"membershipType"},[_c('div',{staticClass:"title"},[_vm._v("选择会员套餐")]),_vm._v(" "),(_vm.membershipList&&_vm.membershipList.length>0)?_c('div',{staticClass:"typeWrap"},[_c('div',{class:['item', {active: _vm.currentMembership.code===_vm.membershipList[0].code}],on:{"click":function($event){_vm.currentMembership=_vm.membershipList[0]}}},[_c('p',[_vm._v(_vm._s(_vm.membershipList[0].title))]),_vm._v(" "),_c('p',[_vm._v("￥"+_vm._s(_vm.membershipList[0].price)+"/年 "),(_vm.membershipList[0].originalPrice)?_c('span',[_vm._v(_vm._s(_vm.membershipList[0].originalPrice)+"/年")]):_vm._e()]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.membershipList[0].tag)}})]),_vm._v(" "),_c('div',{class:['item', {active: _vm.currentMembership.code===_vm.membershipList[1].code}],on:{"click":function($event){_vm.currentMembership=_vm.membershipList[1]}}},[_c('p',[_vm._v(_vm._s(_vm.membershipList[1].title))]),_vm._v(" "),_c('p',[_vm._v("￥"+_vm._s(_vm.membershipList[1].price)+"/月 "),(_vm.membershipList[1].originalPrice)?_c('span',[_vm._v(_vm._s(_vm.membershipList[1].originalPrice)+"/月")]):_vm._e()]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.membershipList[1].tag)}})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"memberBtn",on:{"click":function($event){return _vm.payBtn()}}},[_vm._v("\n      "+_vm._s(_vm.currentMembership.buttonName || '立即开通会员')+"\n    ")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"membershipRight"}),_vm._v(" "),_c('div',{staticClass:"moreRights"},[_vm._v("更多会员权益，持续更新中...")]),_vm._v(" "),_c('mt-popup',{staticClass:"popupWrap",attrs:{"position":"bottom"},model:{value:(_vm.popupVisible),callback:function ($$v) {_vm.popupVisible=$$v},expression:"popupVisible"}},[_c('div',{staticClass:"content"},[_c('div',{staticClass:"title"},[_vm._v("\n        讲师简介\n        "),_c('span',{on:{"click":function($event){_vm.popupVisible=false;}}})]),_vm._v(" "),_c('div',{staticClass:"body",domProps:{"innerHTML":_vm._s(_vm.currentRepairer.expertIntroduction)}})])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(478);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_371c49cb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1077);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2714)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-371c49cb"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_371c49cb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_371c49cb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftTickets_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2715);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4928c3ac", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-371c49cb]{background:#f2f2f2;padding:.6rem .4rem;min-height:100%}.wrap .list[data-v-371c49cb]{width:100%}.wrap .list li[data-v-371c49cb]{background:#fff;border-radius:.2rem;height:3.2rem;padding:.6rem .6rem 2.8rem;margin-bottom:.4rem;font-family:PingFangSC-Regular}.wrap .list li p[data-v-371c49cb]:first-of-type{font-family:PingFangSC-Regular;overflow:hidden}.wrap .list li p:first-of-type span[data-v-371c49cb]:first-of-type{color:#333;font-weight:400;font-size:.8rem;float:left;font-family:PingFangSC-Regular}.wrap .list li p:first-of-type span[data-v-371c49cb]:last-of-type{color:#ee4545;font-size:.7rem;float:right;font-family:PingFangSC-Regular}.wrap .list li p[data-v-371c49cb]:last-of-type{color:#999;font-size:.65rem;margin-top:.2rem;font-family:PingFangSC-Regular}.wrap .nolist[data-v-371c49cb]{text-align:center}.wrap .nolist img[data-v-371c49cb]{width:3rem;position:absolute;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);margin-top:5rem}.wrap .nolist p[data-v-371c49cb]{width:100%;position:absolute;top:8.8rem;color:#333;font-family:PingFangSC-Regular}.wrap .loadMore[data-v-371c49cb]{margin:.5rem 0;text-align:center;font-size:.72rem;text-decoration:underline;font-family:PingFangSC-Regular}.wrapheight[data-v-371c49cb]{height:auto!important}.touch[data-v-371c49cb]{-ms-touch-action:none;touch-action:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      dataInited: false,
      giftList: null,
      // 礼品券列表
      showMore: false,
      // 加载更多
      iosOrAndroid: false,
      // 解决touch ios中报错
      params: {
        // 分页传参
        currentPage: 1,
        pageSize: 10
      }
    };
  },
  mounted: function mounted() {
    this.getGiftList();
    this.iosOrAndroid = this._Util.isIOS;
  },
  methods: {
    /**
       * 获取会员礼品券列表
       * @param(targetYear): 非必填 所请求的目标年份
       */
    getGiftList: function getGiftList() {
      var that = this;
      that._Util.post(that._Api.POST_GET_MEMBER_GIFT_LOG_LIST, that.params, function (data) {
        that.dataInited = true;
        if (that.params.currentPage > 1) {
          that.giftList = that.giftList.concat(data || []);
        } else {
          that.giftList = data || [];
        }
        if (data.length < 10) {
          that.showMore = false;
        } else {
          that.showMore = true;
        }
      }, function () {}, that);
    },
    // 加载更多
    loadMore: function loadMore() {
      this.params.currentPage++;
      this.getGiftList();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.dataInited)?_c('div',{staticStyle:{"font-size":"0.7rem","text-align":"center","padding-top":"3rem","color":"#999"}},[_vm._v("数据加载中...")]):_c('div',{staticClass:"wrap",class:[{touch:_vm.iosOrAndroid},{wrapheight:_vm.giftList.length}]},[(_vm.giftList.length)?_c('ul',{staticClass:"list"},_vm._l((_vm.giftList),function(v,i){return _c('li',{key:i},[_c('p',[_c('span',[_vm._v(_vm._s(v.text))]),_c('span',[_vm._v("+"+_vm._s(v.num)+"礼品券")])]),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.creatTime))])])}),0):_c('div',{staticClass:"nolist"},[_c('img',{attrs:{"src":__webpack_require__(2716),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("您还没得过礼品券哦～")])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMore),expression:"showMore"}],staticClass:"loadMore",on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("点击加载更多")])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/no.65690b0.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(479);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a0a9e95_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1080);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a0a9e95_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a0a9e95_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testDataQuery_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _testData = _interopRequireDefault(__webpack_require__(2717));
var _gasket = _interopRequireDefault(__webpack_require__(2720));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import NavMenuComponent from '../../../components/common/navMenuComponent.vue'
// import FooterComponent from '../../../components/common/footerComponent.vue'
var _default = exports.default = {
  name: 'TestDataQuery',
  components: {
    PokingMeComponent: _pokingMeComponent.default,
    // NavMenuComponent,
    // FooterComponent,
    TestData: _testData.default,
    Gasket: _gasket.default
  },
  data: function data() {
    return {
      checkIndex: this.$route.query.index || 1,
      contheight: this.$route.query.contHeight,
      emitKeyword: '',
      navMenus: [
      //          {
      //            title: '测试数据',
      //            url: '',
      //            className: '',
      //            active: true
      //          },
      {
        title: '垫片调整',
        url: '',
        className: '',
        active: false
      }],
      className: 'tabnav tabnav2'
    };
  },
  mounted: function mounted() {
    var that = this;
    var version = unescape(that._Util.getQueryString('version'));
    that._Util.collectPageView({
      version: that._Util.isApp() ? version : '',
      postUrl: that._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '微信菜单',
      operate_page: '打开页面',
      optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      title: window.document.title
    }, that);
    that.getKeyWord();
    if (that.$route.query.type) {
      that.checkIndex = parseInt(that.$route.query.type);
    }
    //      that.$on('getCode', (mes) => {
    // //       that.emitKeyword = msg;
    //          console.log(msg)
    //
    //     });
    that.$on('checkMenu', function (obj) {
      if (obj == 0) {
        that.emitKeyword = '';
      }
      that.checkIndex = obj;
    });
    //      that.$on('emitKeyword', (obj) => {
    //        that.emitKeyword = obj;
    //      });
  },
  methods: {
    getKeyWord: function getKeyWord(code) {
      var that = this;
      that.emitKeyword = code;
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(230);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_baa07fc0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(768);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_baa07fc0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_baa07fc0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_pokingMeComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'PokingMeComponent',
  props: {
    positionId: {
      type: Number,
      default: function _default() {
        return 0;
      }
    },
    isFromMft100: {
      type: [Boolean, String, Number],
      default: function _default() {
        return 0;
      }
    },
    adHeight: {
      // 父组件传递给广告位的高度
      type: Number,
      default: function _default() {
        return 0;
      }
    },
    sensorName: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  data: function data() {
    return {
      result: {}
    };
  },
  mounted: function mounted() {
    // gk
    // this.getResult()
    // eslint-disable-next-line no-undef
    // doucment.querySelector('imgSize').addEventListener('load', () => {
    //   this.imgload()
    // })
    // this.imgload()
  },
  methods: {
    imgload: function imgload() {
      var _this = this;
      setTimeout(function () {
        _this.$emit('emitAdImgSize', _this.$refs['imgSize'].offsetHeight);
      }, 0);
    },
    getResult: function getResult() {
      var that = this;
      that._Util.post(that._Api.POST_ADVERT_POSITION, {
        signType: that.positionId
      }, function (data) {
        if (!data) return;
        that.result = data;
      }, function () {}, that, true);
    },
    collLog: function collLog() {
      var that = this;
      if (that._Util.isApp()) {
        if (that._Util.isAppRootWin()) {
          that._Util.acSendEvent({
            name: that._Enums.AC_ENUMS_OPEN_FRM,
            extra: {
              url: that.result.advertUrl
            }
          });
        } else {
          window.top.location.href = that.result.advertUrl;
        }
      } else {
        window.location.href = that.result.advertUrl;
      }
      that._Util.sensorsCollect('click_advert', {
        $element_content: '广告位',
        operation_page: this.sensorName.length ? this.sensorName[0] : document.title,
        advert_type_name: this.sensorName.length ? this.sensorName[1] : '列表页',
        // that.result.signTypeName,
        advert_name: that.result.advertName,
        jump_url: that.result.advertUrl,
        $url: window.location.href,
        correlation_id: that.result.advertId
      });
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '广告',
        operate_page: window.location.href,
        optionType: '广告点击',
        param1: that.result.advertUrl,
        param2: '',
        param3: '',
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin":"0 auto"}},[(!_vm.isFromMft100)?_c('a',{on:{"click":function($event){return _vm.collLog()}}},[(_vm.result.advertImg)?_c('img',{ref:"imgSize",staticStyle:{"display":"block","width":"92%","margin-left":"4%","border-radius":"5px"},style:({'height': _vm.adHeight ? _vm.adHeight + 'rem' : 'auto'}),attrs:{"indexValue":"1","alt":"","src":_vm.result.advertImg || ''},on:{"load":_vm.imgload}}):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","margin-top":"10px"}},[_vm._v("©卡修宝典")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(480);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_664be4d4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1078);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2718)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_664be4d4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_664be4d4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testData_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2719);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("07d14d4c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".resultCon{width:100%;height:40px;line-height:40px;width:95%;margin:0 auto;border-bottom:1px solid #e4e4e4;position:relative}.circle{width:10px;height:10px;background:#59a0cf;position:absolute;border-radius:50%;left:3%;top:15px}.colorSpilt{width:100%;height:15px;background:#ededed}.partsName{font-size:16px;position:absolute;max-width:240px;overflow:hidden;left:10%;color:#434343}.goNext{font-size:20px;color:#ccc;position:absolute;right:3%}.colorWrite{color:#59a0cf;font-size:16px}.showNoFond{width:100%;height:30px;line-height:30px;color:gray;text-align:center;position:fixed;top:50%;margin-top:-15px}.testData .window{background:#f2f2f2;font-family:PingFangSC-Regular;padding-top:0}.testData .windowtt{height:48px;line-height:48px;color:#333;padding:0;border-bottom:1px solid #dcdcdc;text-align:center;background:#fff}.testData .windowtt span,.windowtt .window_close{font-size:18px}.col.col1{box-sizing:border-box;-webkit-box-sizing:border-box}.testData .windowtt .window_close{margin-top:0;padding:0 10px;top:0;right:0;font-size:16px;line-height:48px}.testData .result{padding-top:20px;position:relative}.testData .result .subtitle,.testData .result .tit{font-size:16px;color:#333}.testData .result .subtitle{text-indent:10px}.testData .result .con{background:none}.symask{position:absolute;top:0;left:0;width:100%;height:100%;min-height:400px;background:url(" + escape(__webpack_require__(152)) + ") 50% repeat-y;z-index:100;opacity:.6;pointer-events:none}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _codeDialogComponent = _interopRequireDefault(__webpack_require__(133));
var _collection = _interopRequireDefault(__webpack_require__(137));
var _onlineQa = _interopRequireDefault(__webpack_require__(203));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import partsTableConfig from '../partsInfo/parts.table.config.json'
var _default = exports.default = {
  name: 'TestData',
  components: {
    CodeDialogComponent: _codeDialogComponent.default,
    Collection: _collection.default,
    OnlineQa: _onlineQa.default
  },
  props: ['contheight'],
  data: function data() {
    return {
      keyword: '',
      keyCode: '',
      checkIndex: 0,
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      testResult: '',
      resultMsg: '',
      collectionCode: '',
      result: {
        list: []
      },
      showNoFond: false,
      searchFlag: false,
      dialogShow: false,
      isApp: false,
      navMenus: [{
        title: '测试数据',
        url: '',
        className: '',
        active: true
      }, {
        title: '垫片调整',
        url: '',
        className: '',
        active: false
      }],
      clineName: 'testShoucang',
      collectParams: {}
    };
  },
  watch: {
    keyword: function keyword(newVal, oldVal) {
      this.keyword = newVal.replace(/[^\w\/]/ig, '');
    }
  },
  mounted: function mounted() {
    var that = this;
    if (that._Util.isApp()) {
      that.isApp = true;
    } else {
      that.isApp = false;
    }
    if (that.$route.query.keyword) {
      that.keyword = that.$route.query.keyword;
      that.search();
    }
    if (parseInt(that.$route.query.type) == 0) {
      that.keyword = that.$route.query.keyword || '';
      that.search();
      that.$router.replace({
        query: {}
      });
    }
    that.$on('checkMenu', function (obj) {
      that.checkIndex = obj;
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.$on('verifyCodeCorrect', function () {
      that.dialogShow = false;
      that._fetchData(that);
    });
    that._Util.setLocalStorage('searchUuid', '');
  },
  methods: {
    close: function close() {
      this.searchFlag = false;
      this.toggleParentMask('close');
    },
    search: function search() {
      var that = this;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }

      //        if (that.keyword.length < 2) {
      //          that._Util.showMsgBox('请至少输入两个字符');
      //          return;
      //        }
      //        if (that.patrn.test(that.keyword)) {
      //          that._Util.showMsgBoxThen('输入内容含有特殊字符', () => {
      //            that.keyword = '';
      //          });
      //          return false;
      //        }
      localStorage.setItem('searchID', that._Util.randomChar());
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '测试数据',
        url: window.location.href,
        title: window.document.title,
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        keyword: localStorage.getItem('searchID'),
        param4: {
          'queryValue': that.keyword
        }
      }, that);
      that._Util.getUserLog(function (data) {
        that._fetchData(that);
      }, function () {
        that.dialogShow = true;
      }, that);
    },
    validInput: function validInput() {
      this.keyword = this.keyword.replace(/[^\w\.\/]/ig, '');
    },
    _fetchData: function _fetchData(self) {
      var that = self;
      that.searchFlag = false;
      that.testResult = '';
      that.resultMsg = '正在查询中...';
      that._Util.setLocalStorage('searchUuid', '');
      that._Util.post(that._Api.POST_SOSO_TEST_DATA_OPEN_SEARCH, {
        queryValue: that.keyword
      }, function (data) {
        that.result.list = [];
        if (data.list.length == 0) {
          that.showNoFond = true;
          return;
        } else {
          that.result.searchNew = data.searchNew;
          that.result.searchUuid = data.searchUuid;
          that._Util.setLocalStorage('searchUuid', data.searchUuid);
          if (data.list.length == 1) {
            that.openDetail(data.list[0].pyq || data.list[0].pump);
          } else {
            var _iterator = _createForOfIteratorHelper(data.list),
              _step;
            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var v = _step.value;
                that.result.list.push({
                  name: v.pyq ? '喷油器型号' : '油泵型号',
                  code: v.pyq || v.pump
                });
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }
          }

          //            data.text1 = JSON.parse(data.text1);
          //            that.testResult = data;
          //            that.resultMsg = '';
        }

        //          that._Util.getSlyYou(that, (key) => {
        //            let keyStr = key.des3Key;
        //            let jsonStr = that._DESUtil.DES3.decrypt(keyStr, data);
        //            if (jsonStr == 'null') {
        //              that.resultMsg = '未查到任何数据';
        //            } else {
        //              that.testResult = JSON.parse(jsonStr);
        //              that.testResult.text1 = JSON.parse(that.testResult.text1);
        //              that.resultMsg = '';
        //            }
        //          });
      }, function () {}, that);
    },
    toggleParentMask: function toggleParentMask(type) {
      var parentContentBox = window.parent.document.getElementById('contentBox1');
      var parentMask = window.parent.document.getElementById('privMask');
      if (type == 'open') {
        parentMask.style.display = 'block';
        parentContentBox.style.cssText = 'position: fixed; width: 100%;  top: 60px; left : 0; bottom: 0;z-index: 1001';
      } else if (type == 'close') {
        parentMask.style.display = 'none';
        parentContentBox.style.cssText = 'position: relative;width: 100%;overflow-y: auto;height:' + this.contheight;
      }
    },
    openDetail: function openDetail(code) {
      var that = this;
      that.toggleParentMask('open');
      that.searchFlag = true;
      that.collectionCode = code;
      that._Util.post(that._Api.POST_SOSO_TEST_DATA, {
        id: code
      }, function (data) {
        if (!data) {
          that.resultMsg = '未查到任何数据';
          return;
        } else {
          //            that.result.list = [];
          data.text1 = JSON.parse(data.text1);
          that.testResult = data;
          that.resultMsg = '';
          that.keyCode = code;
          if (code.substring(0, 4) == '0445' || code.substring(0, 5) == '09500') {
            that.$emit('getCode', that.keyCode);
          } else {
            that.$emit('getCode', '0445');
          }
        }
      }, function () {}, that);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(244);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9ca8740c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(786);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2001)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9ca8740c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9ca8740c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_codeDialogComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2002);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("03679c6e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".alert_add{overflow:hidden;z-index:9999}.alert_add,.alert_bottom{position:fixed;left:0;top:0;width:100%;height:100%}.alert_bottom{opacity:.7;background:#000;z-index:20}.alert_brove{position:fixed;left:50%;top:50%;background:#fff;z-index:22;width:300px;min-height:220px;margin-left:-150px;margin-top:-115px;border-radius:8px;overflow:hidden}.alert_brove p{font-size:20px;width:100%;text-align:center;border-bottom:1px solid #cbcbcb;color:#333;padding:10px 0;font-weight:400}.alert_close{position:absolute;top:15px;right:10px;width:20px;height:20px;background:url(" + escape(__webpack_require__(104)) + ") no-repeat 50%;background-size:14px 14px}.alert_get{margin:25px 10px}.alert_input{border:1px solid #cbcbcb;border-radius:4px;width:230px;overflow:hidden;background:#f2f2f2}.alert_input input{margin:14px 5px;font-size:18px;width:97%;border:none;outline:none;float:left}.alert_img{position:absolute;top:83px;right:10px;width:133px;height:50px}.alert_img li,.alert_img ul{overflow:hidden}.alert_img li{float:left;text-align:center}.alert_img li img{width:80px;height:40px}.alert_img li:first-child{width:80px}.alert_img li:nth-child(2){margin-left:2px;width:50px;height:50px}.alert_img li:nth-child(2) a{display:block;width:100%;height:100%;text-align:center;background:url(" + escape(__webpack_require__(2003)) + ") no-repeat 13px 0;background-size:20px 18px;padding-top:20px;color:#666;font-size:12px}.alert_button{position:absolute;bottom:20px;left:0;width:100%;overflow:hidden;padding-left:10px}.alert_button input{width:280px;text-align:center;background:#ee4545;display:inline-block;margin:0;float:left;height:45px;color:#fff;font-weight:400;font-size:18px;border:0 none;outline:none;border-radius:0;-webkit-box-sizing:border-box;-webkit-appearance:none;border-radius:2px;-webkit-border-radius:2px}.alert_button input:nth-child(2){border-left:1px solid #cd3839}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/close.506a546.png";module.exports = __webpack_require__.p + "static/img/changeCode.7976ef7.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'CodeDialogComponent',
  components: {},
  props: {
    show: {
      default: false
    }
  },
  data: function data() {
    return {
      random: Math.ceil(Math.random() * 10000),
      verifyCode: ''
    };
  },
  watch: {
    // show: function(val) {
    //   if (val) {

    //   }
    // }
  },
  mounted: function mounted() {},
  methods: {
    save: function save() {
      var _this = this;
      var that = this;
      that._Util.post(that._Api.POST_WXAUTH_CHECK_VERITY_CODE, {
        code: that.verifyCode
      }, function (data) {
        if (!data.verifyStatus) {
          that._Util.showMsgBox('验证码校验失败');
        } else {
          _this.$parent.$emit('verifyCodeCorrect');
        }
      }, function () {}, that);
    },
    cancel: function cancel() {
      this.$parent.$emit('dialogCancel');
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('div',{staticClass:"alert_add",attrs:{"id":"alert_add"}},[_c('div',{staticClass:"alert_bottom"}),_vm._v(" "),_c('div',{staticClass:"alert_brove"},[_c('span',{staticClass:"alert_close",on:{"click":function($event){return _vm.cancel()}}}),_vm._v(" "),_c('p',[_vm._v("输入图中验证码")]),_vm._v(" "),_c('div',{staticClass:"alert_get"},[_c('div',{staticClass:"alert_input"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.verifyCode),expression:"verifyCode"}],attrs:{"type":"tel","maxlength":4,"placeholder":"请输入验证码"},domProps:{"value":(_vm.verifyCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.verifyCode=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"alert_img"},[_c('ul',[_c('li',[_c('img',{attrs:{"src":_vm._Api.POST_WXAUTH_VERIFY_CODE + '?' + _vm.random},on:{"click":function($event){_vm.random = Math.random()}}})]),_vm._v(" "),_c('li',[_c('a',{attrs:{"href":"javascript:void(0);"},on:{"click":function($event){_vm.random = Math.random()}}},[_vm._v("换一个")])])])])]),_vm._v(" "),_c('div',{staticClass:"alert_button"},[_c('input',{attrs:{"type":"button","disabled":!_vm.verifyCode,"value":"确认"},on:{"click":function($event){return _vm.save()}}})])])]):_vm._e()}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(246);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c7f9107c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(789);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2011)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c7f9107c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c7f9107c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_collection_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2012);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("40982939", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".shoucangtf .newstar{background:url(" + escape(__webpack_require__(2013)) + ") 50% no-repeat}.shoucangtf.details{position:fixed;right:0;width:50%;height:50px;background:#1766b3;z-index:2002;color:#fff;text-align:center;line-height:50px;bottom:0;font-size:16px}.shoucangtf .newstar{display:inline-block;width:15px;height:15px;background:url(" + escape(__webpack_require__(778)) + ") 50% no-repeat;background-size:100% 100%;vertical-align:middle;margin-top:-5px;margin-right:0}.shoucangtf .newstar.active{display:inline-block;background:url(" + escape(__webpack_require__(2014)) + ") 50% no-repeat;background-size:100% 100%}.shoucangtf.testShoucang{position:fixed;right:0;width:50%;height:50px;background:#fff;border:2px solid #ee4545;z-index:2002;color:#fff;text-align:center;line-height:50px;bottom:0;font-size:16px;box-sizing:border-box;-webkit-box-sizing:border-box}.shoucangtf.yuncang .newstar{display:inline-block;width:15px;height:15px;background:url(" + escape(__webpack_require__(1365)) + ") 50% no-repeat;background-size:100% 100%;vertical-align:middle;margin-top:-5px;margin-right:0}.shoucangtf.yuncang .newstar.active{background:url(" + escape(__webpack_require__(1366)) + ") 50% no-repeat;background-size:100% 100%}.shoucangtf.yuncang{position:absolute;right:10px;z-index:1;color:#333;text-align:center;bottom:0;font-size:16px}.shoucangtf.yuncang.yuncangziliao{right:10px;bottom:10px}.shoucangtf.detalsTable .newstar{background:url(" + escape(__webpack_require__(778)) + ") 50% no-repeat;background-size:100% 100%}.shoucangtf.detalsTable .newstar,.shoucangtf.detalsTable .newstar.active{display:inline-block;width:20px;height:20px;vertical-align:middle;margin-top:-5px;margin-right:0}.shoucangtf.detalsTable .newstar.active{background:url(" + escape(__webpack_require__(2015)) + ") 50% no-repeat;background-size:100% 100%}.shoucangtf.detalsTable{position:absolute;right:10px;z-index:2012;color:#333;text-align:center;font-size:16px;height:44px;line-height:44px}.shoucangtf.yuncang.styleYun{right:10px;bottom:2px}.selfcollect li .con .tit2{overflow:hidden}.shoucangtf.bjxx{top:11px!important}.shoucangtf.bjxx .newstar,.shoucangtf.bjxx .newstar.active{width:14px;height:14px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/fengcangxing1.062c351.png";module.exports = __webpack_require__.p + "static/img/yuncangxing1.4c89518.png";module.exports = __webpack_require__.p + "static/img/newStar2.4c682fb.png";module.exports = __webpack_require__.p + "static/img/collectStar.5f592b6.png";module.exports = __webpack_require__.p + "static/img/collectStarActive.425e620.png";module.exports = __webpack_require__.p + "static/img/yuncangxing2.f275175.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {},
  props: {
    collectParams: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    clineName: {
      type: String,
      default: function _default() {
        return '';
      }
    },
    isCancel: {
      type: Boolean,
      default: function _default() {
        return false;
      }
    },
    priClass: {
      type: String,
      default: function _default() {
        return '';
      }
    }
  },
  data: function data() {
    return {
      collectFlag: '',
      msg: ''
    };
  },
  watch: {
    'collectParams.favId': function collectParamsFavId() {
      this.collectFlag = this.collectParams.favId;
    }
  },
  mounted: function mounted() {
    var that = this;
    that.collectFlag = that.collectParams.favId || '';
  },
  beforeUpdate: function beforeUpdate() {
    var that = this;
    that.collectFlag = that.collectParams.favId || '';
  },
  methods: {
    save: function save() {
      var that = this;
      if (that.collectFlag || that.isCancel) {
        that._Util.showMsgBoxConfirm('是否取消收藏？', function (action) {
          if (action) {
            that._Util.post(that._Api.POST_COLLECTION_CANCEL, {
              id: that.collectParams.favId
            }, function () {
              that.collectFlag = '';
              that.collectParams.favId = '';
              that._Util.showToast('取消成功');
              that.collectParams.oneList.favId = null;
              that.$parent.$emit('collectResult', {
                favId: null
              });
            }, function () {}, that, false);
          }
        }, {
          confirmButtonText: '是',
          cancelButtonText: '否'
        });
      } else {
        that._Util.getUserStatus(that, function () {
          that._Util.showMsgBoxConfirm('是否对该资料进行收藏？', function (action) {
            if (action) {
              that._Util.post(that._Api.POST_COLLECTION_SAVE, that.collectParams, function (data) {
                that.collectFlag = data.id;
                that.collectParams.favId = data.id;
                that.collectParams.oneList.favId = data.id;
                that._Util.showToast('收藏成功');
                that.$emit('replaceId', {
                  favId: data.id
                });
                that.$parent.$emit('collectResult', {
                  favId: data.id
                });
              }, function () {}, that, true);
            }
          });
        }, function () {}, {
          name: that.$route.name,
          fullPath: that.$route.fullPath
        }, that._Enums.ENUMS_USER_STATUS.VIP, true);
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shoucangtf",class:[_vm.clineName, _vm.priClass],on:{"click":function($event){$event.stopPropagation();return _vm.save()}}},[_c('span',{staticClass:"newstar",class:{active: _vm.collectFlag || _vm.isCancel}}),_vm._v(" "),_c('span',{staticStyle:{"display":"inline-block","width":"45px","text-align":"center","position":"relative","top":"-1px"},style:({'color':_vm.collectFlag? '#EE4545' : '#666'})},[_vm._v(_vm._s(_vm.isCancel ? '取消' : (_vm.collectFlag ? '已收藏' : '收藏')))])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(247);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6c60261a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(790);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2016)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6c60261a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6c60261a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_onlineQa_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2017);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8e18704e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".onlinetf.details{position:fixed;left:0;width:50%;height:50px;background:#1766b3;z-index:2002;bottom:0}.onlinetf.details span{display:block;height:46px;margin:2px;background:#fff;color:#1766b3;text-align:center;line-height:46px;font-size:16px}.onlinetf.testShoucang{position:fixed;left:0;width:50%;height:50px;background:#ee4545;z-index:2002;bottom:0}.onlinetf.testShoucang span{display:block;height:46px;margin:2px;background:#ee4545;color:#fff;text-align:center;line-height:46px;font-size:16px}.onlinetf.detalsTable{position:fixed;left:0;width:100%;height:50px;background:#1766b3;z-index:3000;bottom:0}.onlinetf.detalsTable span{display:block;height:46px;margin:2px;background:#fff;color:#1766b3;text-align:center;line-height:46px;font-size:16px}.onlinetf.bjxx{position:fixed;left:0;width:100%;height:49px;background:#ee4545;z-index:3000;bottom:0}.onlinetf.bjxx span{display:inline;color:#fff;background:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {},
  props: {
    clineName: {
      type: String,
      default: function _default() {
        return '';
      }
    },
    type: {
      type: Number,
      default: function _default() {
        return 0;
      }
    },
    question: {
      type: String,
      default: function _default() {
        return '';
      }
    },
    priClass: {
      type: String,
      default: function _default() {
        return '';
      }
    },
    skipValue: {
      type: [Object, String],
      default: function _default() {
        return null;
      }
    },
    codeText: {
      type: String,
      default: function _default() {
        return '';
      }
    }
  },
  data: function data() {
    return {
      circuitBtn: {
        float: 'left',
        color: '#fff',
        background: '#EE4545',
        width: '60%',
        margin: 0,
        'font-size': '17px',
        height: '100%'
      },
      onlineBtn: {
        float: 'left',
        color: '#EE4545',
        background: '#fff',
        width: '40%',
        margin: 0,
        'font-size': '17px',
        height: '100%'
      }
    };
  },
  mounted: function mounted() {
    // console.log('skipValue==='+ this.skipValue,'codeText====' + this.codeText)
  },
  methods: {
    // 将skipvalue作为搜索值搜索电路图
    search: function search(key) {
      var that = this;
      // alert(key)
      window.location.href = this._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResultNew?folderid=20171212&index=1&title=%E7%94%B5%E8%B7%AF%E5%9B%BE&keyword=' + key + '&searchFrom=10087&code=' + that.codeText;
    },
    toQa: function toQa() {
      var that = this;
      // if (that._Util.isApp()) {
      //   that._Util.setLocalStorage('fromV2', window.parent.location.href)
      //   window.top.location.href = location.origin + '/v3/carRep/onLineQuestion/putQuestion?title=1'
      // } else {
      //   that._Util.setLocalStorage('fromV2', window.parent.location.href)
      //   window.open(location.origin + '/v3/carRep/onLineQuestion/putQuestion', '_self')
      // }
      if (this._Util.isApp()) {
        this._Util.setLocalStorage('fromV2', window.parent.location.href);
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'questionsOrAnswers',
            url: location.origin + '/v2/questionsOrAnswers'
          }
        });
      } else if (that._Util.isMPaaS()) {
        that._Util.mPassRouter({
          fullPath: location.origin + '/v2/questionsOrAnswers'
        });
      } else {
        this._Util.setLocalStorage('fromV2', window.parent.location.href);
        this.$router.push({
          name: 'questionsOrAnswers'
        });
      }
      //        that._Util.getUserStatus(that, () => {
      //            if(that._Util.isApp()){
      //
      // //              window.top.location.href = location.origin + '/v3/carRep/onLineQuestion/putQuestion';
      //            }else{
      //              window.open(location.origin + '/v3/carRep/onLineQuestion/putQuestion')
      //            }
      // //            window.location.href = this._Api.HOSTOLD + 'wxauth/askQuestion.htm' + (that.question ? that.question + '&': that.question + '?') + 'burSource=2';
      //          }, () => {
      //
      //          }, {
      //            name: that.$route.name,
      //            fullPath: that.$route.fullPath
      //          },
      //          that._Enums.ENUMS_USER_STATUS.VIP
      //        );
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"onlinetf",class:[_vm.clineName, _vm.priClass],on:{"click":function($event){return _vm.toQa()}}},[_c('span',{style:(_vm.skipValue ? _vm.onlineBtn : null)},[_vm._v("在线问答")]),_vm._v(" "),(_vm.skipValue)?_c('span',{style:(_vm.skipValue ? _vm.circuitBtn : null),on:{"click":function($event){$event.stopPropagation();return _vm.search(_vm.skipValue)}}},[_vm._v("查看电路图")]):_vm._e()])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"testData",staticStyle:{"height":"100%","overflow-y":"auto"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.searchFlag),expression:"!searchFlag"}],staticClass:"col col1"},[_c('ul',{staticClass:"search"},[_vm._l((_vm.result.list),function(v,i){return _c('li',{key:i,staticClass:"resultCon",on:{"click":function($event){return _vm.openDetail(v.code)}}},[_c('span',{staticClass:"circle"}),_vm._v(" "),_c('div',{staticClass:"partsName"},[_vm._v(_vm._s(v.name+':')),_c('span',{staticClass:"colorWrite"},[_vm._v(_vm._s(v.code))])]),_vm._v(" "),_c('div',{staticClass:"goNext"},[_vm._v(" >")])])}),_vm._v(" "),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.showNoFond),expression:"showNoFond"}],staticClass:"showNoFond"},[_vm._v("未查询到数据")])],2)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.searchFlag),expression:"searchFlag"}],staticClass:"result"},[_c('div',{staticClass:"symask"}),_vm._v(" "),_c('div',{staticClass:"windowtt",on:{"click":function($event){$event.stopPropagation();return _vm.close.apply(null, arguments)}}},[_c('span',[_vm._v("测试数据")]),_vm._v(" "),_c('a',{staticClass:"window_close"},[_vm._v("\n        关闭\n      ")])]),_vm._v(" "),_c('p',{staticClass:"tit"},[_vm._v("查询结果")]),_vm._v(" "),_c('span',{staticClass:"subtitle"},[_vm._v(_vm._s(_vm.testResult .pyq ? "喷油器型号：" + _vm.testResult.pyq : "油泵型号："+_vm.testResult.pump))]),_vm._v(" "),(_vm.resultMsg)?_c('div',{staticClass:"con"},[_vm._v(_vm._s(_vm.resultMsg))]):_vm._e(),_vm._v(" "),(_vm.testResult)?_c('div',{staticClass:"con"},[(_vm.testResult.type == 1)?_c('div',[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-xs-12"},[_c('table',{staticClass:"table02 table-bordered",attrs:{"align":"center"}},[_vm._m(0),_vm._v(" "),_vm._m(1),_vm._v(" "),_vm._l((_vm.testResult.text1),function(o,i){return _c('tr',{key:i},[_c('td',[_vm._v(_vm._s(o.testNode))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.gy))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.jdsj))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.ybz))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.ysx))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.yxx))])])})],2)])])]):_c('div',[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-xs-12"},[_c('table',{staticClass:"table02 table-bordered",attrs:{"align":"center"}},[_vm._m(2),_vm._v(" "),_vm._l((_vm.testResult.text1),function(o,i){return _c('tr',{key:i},[_c('td',[_vm._v(_vm._s(o.testNode))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.zs))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.zmedl))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.gy_pump))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.gyl))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.hyl))])])})],2)])])]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","text-align":"center"}},[_c('Online-qa',{class:_vm.clineName,attrs:{"question":'?type=2&text2=' + _vm.keyword}}),_vm._v(" "),_c('Collection',{class:_vm.clineName,attrs:{"collect-params":{
            moduleType: 6,
            objId: _vm.testResult.sn,
            queryValue: _vm.testResult.id,
            favId: _vm.testResult.favId,
            requestValue: _vm.collectionCode
          }}})],1)]):_vm._e()]),_vm._v(" "),_c('code-dialog-component',{attrs:{"show":_vm.dialogShow}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticStyle:{"width":"20%"},attrs:{"rowspan":"2"}},[_vm._v("测试点")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"rowspan":"2"}},[_vm._v("轨压")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"rowspan":"2"}},[_vm._v("\n                  加电\n                  "),_c('br'),_vm._v("时间\n                ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"40%"},attrs:{"colspan":"3"}},[_vm._v("油量")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticStyle:{"width":"13.3%"},attrs:{"align":"center"}},[_vm._v("\n                  标准\n                  "),_c('br'),_vm._v("值\n                ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"13.3%"},attrs:{"align":"center"}},[_vm._v("\n                  建议\n                  "),_c('br'),_vm._v("上限\n                ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"13.3%"},attrs:{"align":"center"}},[_vm._v("\n                  建议\n                  "),_c('br'),_vm._v("下限\n                ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticStyle:{"width":"16%"},attrs:{"align":"center"}},[_vm._v("测试点")]),_vm._v(" "),_c('th',{staticStyle:{"width":"14%"},attrs:{"align":"center"}},[_vm._v("\n                  转速\n                  "),_c('br'),_vm._v("[转/分]\n                ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("ZME电流[A]")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("\n                  轨压\n                  "),_c('br'),_vm._v("[bar]\n                ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("\n                  供油量\n                  "),_c('br'),_vm._v("[L/h]\n                ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("\n                  回油量\n                  "),_c('br'),_vm._v("[L/h]\n                ")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(481);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25d10592_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1079);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2721)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25d10592_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25d10592_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_gasket_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2722);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7d3605fa", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".picker-item{text-align:center}.picker-items{background:#fff;position:absolute;bottom:0;width:100%}.tabnav a:first-child{margin-right:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _codeDialogComponent = _interopRequireDefault(__webpack_require__(133));
var _collection = _interopRequireDefault(__webpack_require__(137));
var _onlineQa = _interopRequireDefault(__webpack_require__(203));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'Gasket',
  components: {
    CodeDialogComponent: _codeDialogComponent.default,
    Collection: _collection.default,
    OnlineQa: _onlineQa.default
  },
  props: {
    emitKeyword: {
      type: String,
      default: function _default() {
        return '0445';
      }
    }
  },
  data: function data() {
    return {
      showMask: false,
      params: {
        supplier: '博世',
        injector: '0445',
        hyl: '正常',
        qfhd: '正常',
        pfd: '正常',
        ypd: '正常',
        ddsd: '正常'
      },
      showParamsSupplier: false,
      showParamsSupplierList: ['博世', '电装', '卡特皮勒', '卡特CR200', '康明斯XPI'],
      showParamsHyl: false,
      showParamsHylList: ['正常', '偏大', '偏小'],
      showParamsQfhd: false,
      searchFlag: false,
      showParamsPfd: false,
      showParamsYpd: false,
      showParamsDdsd: false,
      resultMsg: '',
      result: {},
      clineName: 'testShoucang',
      dialogShow: false,
      hyl: '回油量',
      qfhd: '全负荷点',
      pfd: '排放点',
      ypd: '预喷点',
      ddsd: '低怠速点'
    };
  },
  watch: {
    'params.supplier': function paramsSupplier(newVal) {
      if (newVal == '博世') {
        this.params.injector = '0445';
      } else {
        this.params.injector = '';
      }
      if (newVal == '康明斯XPI') {
        this.hyl = '怠速';
        this.qfhd = '全负荷1';
        this.pfd = '全负荷2';
        this.ypd = '部分负荷';
        this.ddsd = '预喷';
      } else {
        this.hyl = '回油量';
        this.qfhd = '全负荷点';
        this.pfd = '排放点';
        this.ypd = '预喷点';
        this.ddsd = '低怠速点';
      }
    }
  },
  mounted: function mounted() {
    var that = this;
    that.params.injector = that.emitKeyword;
    if (that.emitKeyword && that.emitKeyword.length >= 3) {
      if (that.emitKeyword.substring(0, 4) == '0445') {
        //          that.params.injector = '0445';
      } else if (that.emitKeyword.substring(0, 3) == '095') {
        that.params.supplier = '电装';
      }
    }
    if (parseInt(that.$route.query.type || 0) == 1) {
      that.params = JSON.parse(that.$route.query.keyword);
      that.search();
      that.$router.replace({
        query: {}
      });
    }
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.$on('verifyCodeCorrect', function () {
      that.dialogShow = false;
      that._search(that);
    });
  },
  methods: {
    closeMask: function closeMask() {
      var that = this;
      that.showMask = false;
    },
    choseVal: function choseVal(v, n) {
      var that = this;
      that.showMask = false;
      if (n == 1) {
        that.params.supplier = v;
      } else if (n == 2) {
        that.params.hyl = v;
      } else if (n == 3) {
        that.params.qfhd = v;
      } else if (n == 4) {
        that.params.pfd = v;
      } else if (n == 5) {
        that.params.ypd = v;
      } else {
        that.params.ddsd = v;
      }
    },
    showMaskType: function showMaskType(n) {
      var that = this;
      that.showParamsSupplier = false;
      that.showParamsHyl = false;
      that.showParamsQfhd = false;
      that.showParamsPfd = false;
      that.showParamsYpd = false;
      that.showParamsDdsd = false;
      that.showMask = true;
      switch (n) {
        case 1:
          that.showParamsSupplier = true;
          break;
        case 2:
          that.showParamsHyl = true;
          break;
        case 3:
          that.showParamsQfhd = true;
          break;
        case 4:
          that.showParamsPfd = true;
          break;
        case 5:
          that.showParamsYpd = true;
          break;
        case 6:
          that.showParamsDdsd = true;
          break;
      }
    },
    search: function search() {
      var that = this;
      that._Util.getUserLog(function (data) {
        that._search(that);
      }, function () {
        that.dialogShow = true;
      }, that);
    },
    _search: function _search(self) {
      var that = self;
      //        if (that.params.supplier == '博世' && !that.params.injector) {
      //          that._Util.showMsgBox('请填写喷油嘴型号');
      //          return;
      //        }
      if (that.params.supplier != '博世') {
        that.emitKeyword = ' ';
      }
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '测试数据',
        title: '垫片调整',
        url: window.location.href,
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        param4: {
          'queryValue': that.emitKeyword || '',
          'result': '',
          'filter': that.params.supplier || ''
        }
      }, that);
      that.searchFlag = true;
      that.result = '';
      that.resultMsg = '正在查询中...';
      that.params.supplier !== '博世' ? that.params.injector = '' : that.params.injector = that.emitKeyword;
      that._Util.post(that._Api.POST_SOSO_GASKET, that.params, function (data) {
        that._Util.getSlyYou(that, function (key) {
          if (!that._Util.isMPaaS()) {
            window.location.href = '#anchor';
          }
          // var wrap = that.$refs.wrap
          var vModel = that.$refs.vModel;
          var scrollEl = document.getElementsByTagName('body')[0];
          if (!data || data == null) {
            that.resultMsg = '未查到任何数据';
            scrollEl.scrollTop = 0;
            vModel.style.cssText = 'border: 1px solid #ee4545;border-radius: 3px;-webkit-border-radius: 3px;';
            // vModel.setAttribute("placeholder","请确认喷油器型号输入是否正确");
            (0, _mintUi.Toast)({
              message: '目前没有查到相关数据，请检查下是否喷油器型号输入正确',
              duration: 2000
            });
          } else {
            if (that.params.supplier == '博世') {
              vModel.style.cssText = 'border: 0';
            }
            that.result = data;
            that.oldSearchParams = JSON.stringify(that.params);
            that.resultMsg = '';
            console.log(that.oldSearchParams);
            //            {"supplier":"卡特皮勒","injector":"","hyl":"正常","qfhd":"正常","pfd":"正常","ypd":"正常","ddsd":"正常"}
            // that._Util.collectPageView({
            //   version: '',
            //   postUrl: that._Api.POST_COLLECT,
            //   title: window.document.title,
            //   url: that._Enums.COLLECT_OPTIONS_TYPE.OPEN_DIV,
            //   moduleType: that._Enums.COLLECT_MODULE_TYPE.GAS_ADJ,
            //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            //   keyword: (that.params.supplier || '') + '_' + (that.params.injector || '') + '_' +
            //   (that.params.hyl || '') + '_' + (that.params.qfhd || '') + '_' +
            //   (that.params.pfd || '') + '_' + (that.params.ypd || '') + '_' +(that.params.ddsd || ''),
            //   params3: that._Util.randomChar()
            // }, that);
          }
        });
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"wrap",staticClass:"form supplier"},[(_vm.showMask)?_c('div',{staticStyle:{"width":"100%","height":"100%","position":"fixed","bottom":"0","background":"rgba(0,0,0,0.5)","z-index":"2005"},on:{"click":function($event){return _vm.closeMask()}}},[_c('div',{staticStyle:{"background":"#fff","position":"absolute","bottom":"0","width":"100%"}},[_vm._l((_vm.showParamsSupplierList),function(v,i){return (_vm.showParamsSupplier)?_c('div',{key:i,staticStyle:{"padding":"15px 0","text-align":"center","border-bottom":"1px solid #ccc"},on:{"click":function($event){$event.stopPropagation();return _vm.choseVal(v,1)}}},[_vm._v(_vm._s(v))]):_vm._e()}),_vm._v(" "),_vm._l((_vm.showParamsHylList),function(v,i){return (_vm.showParamsHyl)?_c('div',{key:i,staticStyle:{"padding":"15px 0","text-align":"center","border-bottom":"1px solid #ccc"},on:{"click":function($event){$event.stopPropagation();return _vm.choseVal(v,2)}}},[_vm._v(_vm._s(v))]):_vm._e()}),_vm._v(" "),_vm._l((_vm.showParamsHylList),function(v,i){return (_vm.showParamsQfhd)?_c('div',{key:i,staticStyle:{"padding":"15px 0","text-align":"center","border-bottom":"1px solid #ccc"},on:{"click":function($event){$event.stopPropagation();return _vm.choseVal(v,3)}}},[_vm._v(_vm._s(v))]):_vm._e()}),_vm._v(" "),_vm._l((_vm.showParamsHylList),function(v,i){return (_vm.showParamsPfd)?_c('div',{key:i,staticStyle:{"padding":"15px 0","text-align":"center","border-bottom":"1px solid #ccc"},on:{"click":function($event){$event.stopPropagation();return _vm.choseVal(v,4)}}},[_vm._v(_vm._s(v))]):_vm._e()}),_vm._v(" "),_vm._l((_vm.showParamsHylList),function(v,i){return (_vm.showParamsYpd)?_c('div',{key:i,staticStyle:{"padding":"15px 0","text-align":"center","border-bottom":"1px solid #ccc"},on:{"click":function($event){$event.stopPropagation();return _vm.choseVal(v,5)}}},[_vm._v(_vm._s(v))]):_vm._e()}),_vm._v(" "),_vm._l((_vm.showParamsHylList),function(v,i){return (_vm.showParamsDdsd)?_c('div',{key:i,staticStyle:{"padding":"15px 0","text-align":"center","border-bottom":"1px solid #ccc"},on:{"click":function($event){$event.stopPropagation();return _vm.choseVal(v,6)}}},[_vm._v(_vm._s(v))]):_vm._e()})],2)]):_vm._e(),_vm._v(" "),_c('p',{staticClass:"tit"},[_vm._v("提供商")]),_vm._v(" "),_c('div',{staticClass:"select thinkmodel",staticStyle:{"width":"auto"},on:{"click":function($event){return _vm.showMaskType(1)}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.supplier),expression:"params.supplier"}],attrs:{"readonly":""},domProps:{"value":(_vm.params.supplier)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params, "supplier", $event.target.value)}}})]),_vm._v(" "),(_vm.params.supplier == '博世')?_c('div',{staticClass:"input thinkmodel"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.emitKeyword),expression:"emitKeyword",modifiers:{"trim":true}}],ref:"vModel",attrs:{"type":"text"},domProps:{"value":(_vm.emitKeyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.emitKeyword=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]):_vm._e(),_vm._v(" "),_c('p',{staticClass:"tit"},[_vm._v("油量测试结果")]),_vm._v(" "),_c('div',{staticClass:"list"},[_c('div',{staticClass:"clearfix"},[_c('div',{staticClass:"t"},[_vm._v(_vm._s(_vm.hyl))]),_vm._v(" "),_c('div',{staticClass:"s thinkmodel",on:{"click":function($event){return _vm.showMaskType(2)}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.hyl),expression:"params.hyl"}],attrs:{"readonly":""},domProps:{"value":(_vm.params.hyl)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params, "hyl", $event.target.value)}}})])]),_vm._v(" "),_c('div',{staticClass:"clearfix"},[_c('div',{staticClass:"t"},[_vm._v(_vm._s(_vm.qfhd))]),_vm._v(" "),_c('div',{staticClass:"s thinkmodel",on:{"click":function($event){return _vm.showMaskType(3)}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.qfhd),expression:"params.qfhd"}],attrs:{"readonly":""},domProps:{"value":(_vm.params.qfhd)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params, "qfhd", $event.target.value)}}})])]),_vm._v(" "),_c('div',{staticClass:"clearfix"},[_c('div',{staticClass:"t"},[_vm._v(_vm._s(_vm.pfd))]),_vm._v(" "),_c('div',{staticClass:"s thinkmodel",on:{"click":function($event){return _vm.showMaskType(4)}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.pfd),expression:"params.pfd"}],attrs:{"readonly":""},domProps:{"value":(_vm.params.pfd)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params, "pfd", $event.target.value)}}})])]),_vm._v(" "),_c('div',{staticClass:"clearfix"},[_c('div',{staticClass:"t"},[_vm._v(_vm._s(_vm.ypd))]),_vm._v(" "),_c('div',{staticClass:"s thinkmodel",on:{"click":function($event){return _vm.showMaskType(5)}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.ypd),expression:"params.ypd"}],attrs:{"readonly":""},domProps:{"value":(_vm.params.ypd)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params, "ypd", $event.target.value)}}})])]),_vm._v(" "),_c('div',{staticClass:"clearfix"},[_c('div',{staticClass:"t"},[_vm._v(_vm._s(_vm.ddsd))]),_vm._v(" "),_c('div',{staticClass:"s thinkmodel",on:{"click":function($event){return _vm.showMaskType(6)}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.ddsd),expression:"params.ddsd"}],attrs:{"readonly":""},domProps:{"value":(_vm.params.ddsd)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params, "ddsd", $event.target.value)}}})])])]),_vm._v(" "),_c('div',{staticClass:"thinkmodel2"},[_c('input',{staticClass:"btnSubmit",attrs:{"type":"button","value":"查询"},on:{"click":function($event){return _vm.search()}}})]),_vm._v(" "),(_vm.searchFlag)?_c('div',{staticClass:"result",attrs:{"id":"anchor"}},[(_vm.resultMsg)?_c('div',{staticClass:"con"},[_vm._v(_vm._s(_vm.resultMsg))]):_vm._e(),_vm._v(" "),(_vm.result)?_c('div',{staticClass:"con"},[_c('table',{staticClass:"table03"},[_vm._m(0),_vm._v(" "),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.result.failReason))])]),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.result.repairPlan))])]),_vm._v(" "),_vm._m(2),_vm._v(" "),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.result.adjustPlan))])])])]):_vm._e(),_vm._v(" "),(_vm.result)?_c('div',{staticStyle:{"width":"100%","text-align":"center"}},[_c('Online-qa',{class:_vm.clineName,attrs:{"question":'?type=2&text2=' + _vm.params.injector + '&text1=' + _vm.params.supplier}}),_vm._v(" "),_c('Collection',{class:_vm.clineName,attrs:{"collect-params":{
          moduleType: 5,
          objId: _vm.result.id,
          favId: _vm.result.favId,
          requestValue: _vm.oldSearchParams
        }}})],1):_vm._e()]):_vm._e(),_vm._v(" "),_c('code-dialog-component',{attrs:{"show":_vm.dialogShow}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',[_vm._v("可能失效原因：")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',[_vm._v("最佳维修方案：")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',[_vm._v("垫片调整方法：")])])}]
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.$route.query.index == 0)?_c('Test-data',{attrs:{"contheight":_vm.contheight},on:{"getCode":_vm.getKeyWord}}):_vm._e(),_vm._v(" "),(_vm.checkIndex == 1)?_c('Gasket',{attrs:{"emit-keyword":_vm.emitKeyword}}):_vm._e(),_vm._v(" "),(_vm.$route.query.index !=0)?_c('Poking-me-component',{attrs:{"position-id":1}}):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"height":"50px"}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(482);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_06c3bb99_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1081);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2723)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_06c3bb99_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_06c3bb99_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_certificationRenewal_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2724);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("bc6d3692", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{width:100%;height:100%}.giftTickets{padding:12px 12px 0}.giftTickets img{width:100%}.package{margin-top:20px}.package>div:first-of-type{font-family:PingFangSC-Semibold;font-size:16px;color:#333;margin-left:12px}.package>div:nth-of-type(2){margin-top:16px;padding-left:20px;padding-right:20px}.pIndex_part2{overflow:hidden;border-bottom:8px solid #f2f2f2;position:relative;background-repeat:no-repeat;border-radius:4px;height:90px}.pIndex_part2 div{float:left;line-height:22px;padding-top:5px;width:75%}.pIndex_part2 div:first-child{width:50px;height:50px;border-radius:27.5px;overflow:hidden;margin-right:8px;margin-top:17px;margin-left:12px;padding-top:0}.pIndex_part2 div:nth-child(2){margin-top:17px;padding-top:0}.pIndex_part2 div:nth-child(2)>span:first-of-type > span{font-family:PingFangSC-Semibold;font-size:18px;color:#333}.pIndex_part2 div:nth-child(2)>p span{font-family:PingFangSC-Regular;font-size:14px;color:#333}.pIndex_part2 img{width:100%;height:100%}.yearGift{background:#e8e8e8;border-radius:24px;padding:4px 10px;position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:PingFangSC-Regular;font-size:12px;color:#999}.yearGift img{height:8px;width:5px;vertical-align:middle;position:relative;top:-1px}.activeMem{background:#2b82f7;color:#fff}.pIndex_part2 .yearGiftLogo{position:absolute;width:15px;height:15px;top:50%;margin-top:-8px}.mask{width:100%;height:100%;background:rgba(0,0,0,.4);position:fixed;z-index:15}.maskBox{background:#fff;width:95%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.yearGiftList{overflow:hidden;margin-top:12px;padding-left:12px}.yearGiftList li{border-bottom:1px solid #e6e6e6;border-radius:3px;display:block;height:48px;line-height:48px;font-family:PingFangSC-Regular;font-size:16px;color:#333;position:relative}.yearGiftList li:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;right:12px}.yearGiftList li:after,.yearGiftList li span{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.yearGiftList li span{font-family:PingFangSC-Regular;font-size:14px;color:#ee4545;right:27px}.closeBtn{width:18px;height:18px;text-align:center;line-height:18px;position:absolute;right:5px;top:0}.privileges{width:100%}.privileges_title_box{border-bottom:1px solid #efefef;padding-bottom:7px}.privileges_title{padding-left:7px;border-left:3px solid #b91c24;margin-top:7px}.con{position:relative;height:30px;line-height:30px;width:60%;margin:30px auto 0;text-align:center}.con i{display:block;height:1px;background:#ccc;position:absolute;top:15px;width:100%}.con p{font-size:18px;display:inline-block;background:#fff;padding:0 15px;text-align:center;margin:0 auto;position:relative;z-index:2}.giftBox{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.giftBox1{width:100%}.gBox{width:30%}.gBox,.gBox1{margin-top:30px}.gBox1{width:25%;float:left}.gImg{width:40px;height:40px;margin:0 auto;display:block}.gTitle{text-align:center;font-size:14px}.packageList li{position:relative;background:#fff;border:1px solid #e6e6e6;border-radius:4px;height:60px;line-height:60px;margin-bottom:12px;padding-left:12px;padding-right:8px}.packageList li span{border:1px solid #ee4545;color:#ee4545;font-size:11px;border-radius:14px;padding:1px 6px;margin-left:5px;float:left;line-height:1.5;margin-top:20px}.packageList li a{float:right;font-size:16px}.next{position:absolute;color:#ccc;right:5px;height:16px;width:10px;top:50%;margin-top:-8px}.countryMask{width:100%;height:100%;position:fixed;top:0;left:0;z-index:1000;background:#f2f2f2}.selectBox{position:relative}.selectBox:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #555;content:\"\";position:absolute;width:0;top:45%}.redColor{color:#c13434}.tabBox{display:-webkit-box;overflow-x:scroll;padding:20px 0}.book-list{width:185px;height:90px;box-shadow:0 0 6px 0 hsla(0,0%,75%,.5);position:relative;margin-left:12px}.bp{position:absolute;left:10px}.monthDay{top:17px;font-size:16px;color:#333}.book-title{font-size:14px;color:#666;top:42px}.bool-title1{top:62px}.book-list img{width:55px;height:60px;position:absolute;right:10px;top:50%;margin-top:-30px}.bookMask{width:100%;height:100%;position:fixed;background:rgba(0,0,0,.5);z-index:10}.b-title{padding:15px;width:100%;background:#f5f5f5;color:#ee4545;text-align:center;font-size:18px;position:relative}.g-b{position:absolute;bottom:0;width:100%}.b-x{max-height:425px;overflow-y:scroll}.b-l,.b-x{background:#fff}.b-l{padding:10px;height:112px;border-bottom:1px solid #efecec;position:relative}.b-l img{width:80px;height:80px;top:50%;margin-top:-40px;left:10px}.b-l img,.b-t{position:absolute}.b-t{font-size:16px;color:#333;left:100px;top:15px}.b-t1{top:40px}.cl{width:20px;height:20px;position:absolute;right:10px;top:50%;margin-top:-10px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      userInfoResult: {},
      showMaskType: '',
      showMask: false,
      noClick: false,
      isShowbookMask: false,
      codeNeed: '获取验证码',
      phoneNumber: '',
      uname: '',
      codePass: '',
      phoneTest: /^1[3456789]\d{9}$/,
      reportList: {},
      giftArray: [],
      countryVal: '+86',
      showCountryList: false,
      countryList: [{
        name: '中国大陆',
        val: '+86',
        check: false
      }, {
        name: '香港',
        val: '+852',
        check: false
      }, {
        name: '澳门',
        val: '+853',
        check: false
      }, {
        name: '台湾',
        val: '+886',
        check: false
      }, {
        name: 'Angola',
        val: '+244',
        check: false
      }, {
        name: 'Malaysia',
        val: '+60',
        check: false
      }, {
        name: 'India',
        val: '+91',
        check: false
      }, {
        name: 'Algeria',
        val: '+213',
        check: false
      }, {
        name: 'Brazil',
        val: '+55',
        check: false
      }, {
        name: 'Czech',
        val: '+420',
        check: false
      }, {
        name: 'Ireland',
        val: '+353',
        check: false
      }, {
        name: 'Saudi Arabia',
        val: '+966',
        check: false
      }, {
        name: 'Singapore',
        val: '+65',
        check: false
      }, {
        name: 'Thailand',
        val: '+66',
        check: false
      }, {
        name: 'United States',
        val: '+1',
        check: false
      }, {
        name: 'Vietnam',
        val: '+84',
        check: false
      }, {
        name: 'Zimbabwe',
        val: '+263',
        check: false
      }],
      richTextContainer: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    if (!that._Util.isApp()) {
      that._Util.getKaluliAuth(that);
    }
    that.getRichText();
    that.getUserInfo();
    that.getReportList();
    setTimeout(function () {
      var memberType = that.userInfoResult.userStatus == 2 ? '会员' : '非会员';
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
        operate_page: that.$route.query.userTitle,
        optionType: '打开页面',
        title: '会员中心',
        params5: memberType
      }, that);
    }, 500);
    //      if(that._Util.isIOS){
    //        if(window.location.href.indexOf("cell")!= -1){
    //          that.pushHistory();
    //          window.addEventListener("popstate", function(e) {  //popstate监听返回按钮
    //            window.location.href = location.origin + '/v2/member/center?back=1'
    //          }, false);
    //          that.pushHistory();
    //        }
    //      }
  },
  methods: {
    goGiftTickets: function goGiftTickets() {
      this.$router.push({
        name: 'giftTickets'
      });
    },
    getRichText: function getRichText() {
      var _this = this;
      this._Util.post(this._Api.POST_MEMBER_RICH_TEXT, {}, function (data) {
        _this.richTextContainer = data.memberIntro;
      }, function () {}, this);
    },
    getChose: function getChose(item) {
      var _iterator = _createForOfIteratorHelper(this.countryList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          v.check = false;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      item.check = true;
      this.countryVal = item.val;
      this.showCountryList = false;
    },
    showBookMask: function showBookMask() {
      this.isShowbookMask = true;
    },
    showCountryListEvent: function showCountryListEvent() {
      this.showCountryList = true;
      var _iterator2 = _createForOfIteratorHelper(this.countryList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          if (this.countryVal == v.val) {
            v.check = true;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    },
    pushHistory: function pushHistory() {
      var state = {
        title: 'myCenter',
        url: ''
      };
      window.history.pushState(state, state.title, state.url);
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
          var list = [];
          if (that.userInfoResult.userDetail.giftYear.indexOf(',') != -1) {
            list = that.userInfoResult.userDetail.giftYear.split(',');
          } else {
            list.push(that.userInfoResult.userDetail.giftYear);
          }
          for (var i = 0; i < list.length; i++) {
            if (parseInt(list[i]) >= parseInt(new Date().getFullYear())) {
              that.giftArray.push(list[i]);
            } else {
              that.giftArray = [];
            }
          }
        }
      }, function () {}, that);
    },
    getYearGift: function getYearGift() {
      var that = this;
      if (!that.giftArray.length) {
        (0, _mintUi.Toast)({
          message: '购买年费会员，即可获得年费大礼包，免费领取会员礼品',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      that.showMask = true;
      that.showMaskType = 1;
    },
    getReportList: function getReportList() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_GETVIPPACKAGELIST, {}, function (data) {
        if (data) {
          that.reportList = data;
        }
      }, function () {}, that);
    },
    openFrm: function openFrm(url, isLocationHref, isOldRecourse) {
      var that = this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        api.sendEvent({
          name: 'acOpenFrm',
          extra: {
            url: isOldRecourse ? that._Api.HOSTOLD + url : that._Api.HOSTRESOURCEPATH + '/' + url
          }
        });
      } else {
        if (isLocationHref) {
          window.location.href = isOldRecourse ? that._Api.HOSTOLD + url : '/' + url;
        } else {
          that.$router.push({
            path: '/' + url
          });
        }
      }
    },
    closeEvent: function closeEvent() {
      this.showMask = false;
    },
    toPay: function toPay(item) {
      var that = this;
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        url: item.url,
        moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
        operate_page: '会员中心',
        optionType: '点击',
        title: item.price ? item.title + item.price + '元' : item.title
      }, that);
      if (that.userInfoResult.userStatus == 0) {
        that.showMaskType = 2;
        that.showMask = true;
      } else {
        if (item.url == 'weixin_pay') {
          that._Util.post(that._Api.POST_MEMBER_PERSONAL_GET_JS_PARAMETER, {
            code: item.code
          }, function (data) {
            that._Util.wxPay(data.jsApiParameters, function () {
              that.$router.replace({
                name: 'memberRenewSuccess',
                query: {
                  type: that.$route.query.type,
                  fullPath: that.$route.query.fullPath,
                  external: that.$route.query.external,
                  name: that.$route.query.name,
                  operType: 1
                }
              });
            });
          }, function () {}, that);
        } else if (item.url == 'rebates') {
          // that.$router.push({
          //   name: 'rebates'
          // })
          window.location.href = location.origin + '/v2/shopping/rebates';
        } else {
          window.location.href = item.url;
        }
      }
    },
    getCode: function getCode() {
      var that = this;
      //                发送短信验证码
      if (that.countryVal == '+86') {
        if (!that.phoneTest.test(that.phoneNumber)) {
          that._Util.showMsgBox('手机号码格式不正确，请重新输入');
          return;
        }
      }
      that.noClick = true;
      var timeDown = 59;
      that.codeNeed = '60秒后重新发送';
      var times = setInterval(function () {
        that.codeNeed = timeDown + '秒后重新发送';
        timeDown--;
        if (timeDown == 0) {
          clearInterval(times);
          that.noClick = false;
          that.codeNeed = '点击发送验证码';
        }
      }, 1000);
      var phoneNumber = '';
      if (that.countryVal == '+86') {
        phoneNumber = that.phoneNumber;
      } else {
        phoneNumber = that.countryVal + '-' + that.phoneNumber;
      }
      that._Util.post(that._Api.POST_MEMBER_SENDMESSAGE, {
        phone: phoneNumber
      }, function (data) {}, function () {}, that, true);
    },
    savaUserInfo: function savaUserInfo(type) {
      var that = this;
      var phoneNumber = '';
      if (that.countryVal == '+86') {
        phoneNumber = that.phoneNumber;
      } else {
        phoneNumber = that.countryVal + '-' + that.phoneNumber;
      }
      if (type == 1) {
        that._Util.post(that._Api.POST_MEMBER_USER_PHONE,
        // 仅修改手机号，使用专门修改手机号的接口
        {
          uphone: phoneNumber,
          inputCode: that.codePass
        }, function (data) {
          that.showMask = false;
          that.getUserInfo();
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_SAVE, {
          uname: that.uname
        }, function (data) {
          that.showMask = false;
          that.getUserInfo();
        }, function () {}, that);
      }
    },
    savaUserName: function savaUserName() {
      var that = this;
      if (that.userInfoResult.uname) {
        return;
      } else {
        that.showMaskType = 3;
        that.showMask = true;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isShowbookMask)?_c('div',{staticClass:"bookMask"},[_c('div',{staticClass:"g-b"},[_c('div',{staticClass:"b-title"},[_vm._v("年费大礼包\n        "),_c('img',{staticClass:"cl",attrs:{"src":__webpack_require__(104)},on:{"click":function($event){_vm.isShowbookMask = false}}})]),_vm._v(" "),_vm._m(0)])]):_vm._e(),_vm._v(" "),(_vm.showCountryList)?_c('div',{staticClass:"countryMask"},_vm._l((_vm.countryList),function(v,i){return _c('div',{key:i,staticStyle:{"width":"100%","height":"45px","overflow":"hidden","font-size":"16px","background":"white"},on:{"click":function($event){return _vm.getChose(v)}}},[_c('div',{class:{'redColor': v.check},staticStyle:{"float":"left","width":"67%","padding-left":"3%","height":"100%","line-height":"45px"}},[_vm._v(_vm._s(v.name)+" "+_vm._s(v.val))]),_vm._v(" "),(v.check)?_c('img',{staticStyle:{"float":"right","width":"18px","height":"18px","margin-right":"20px","margin-top":"15px"},attrs:{"src":__webpack_require__(209)}}):_vm._e()])}),0):_vm._e(),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"mask",on:{"click":function($event){return _vm.closeEvent()}}},[_c('div',{staticClass:"maskBox",staticStyle:{"overflow":"hidden","padding-bottom":"30px"},on:{"click":function($event){$event.stopPropagation();}}},[(_vm.showMaskType == 1)?_c('div',[_c('div',{staticStyle:{"text-align":"center","position":"relative","font-size":"18px","line-height":"48px","color":"#333","height":"48px","border-bottom":"1px solid #E0E0E0"}},[_vm._v("领取年费礼包\n          "),_c('div',{staticClass:"closeBtn",staticStyle:{"margin-top":"17px","margin-right":"16px"},on:{"click":function($event){return _vm.closeEvent()}}},[_c('img',{staticStyle:{"width":"14px","height":"14px"},attrs:{"src":__webpack_require__(104)}})])]),_vm._v(" "),(_vm.userInfoResult.userDetail.giftYear)?_c('div',{staticStyle:{"text-align":"left","margin-top":"8px","margin-left":"12px"}},[_vm._v("续年费会员可继续享"+_vm._s(parseInt(_vm.giftArray[_vm.giftArray.length-1])+1)+"年大礼包")]):_vm._e(),_vm._v(" "),(!_vm.userInfoResult.userDetail.giftYear)?_c('div',{staticStyle:{"text-align":"center","margin-top":"15px"}},[_vm._v("您目前暂未购买年费会员。不可领取大礼包")]):_vm._e(),_vm._v(" "),(!_vm.userInfoResult.userDetail.giftYear)?_c('div',{staticStyle:{"text-align":"center","margin-top":"15px"}},[_vm._v("购买年费会员可领取2018年大礼包")]):_vm._e(),_vm._v(" "),(_vm.userInfoResult.userDetail.giftYear)?_c('ul',{staticClass:"yearGiftList"},_vm._l((_vm.giftArray),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.openFrm('v2/member/center/per/myGift')}}},[_vm._v("\n            "+_vm._s(v)+"年大礼包\n            "),_c('span',[_vm._v("可领取")])])}),0):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.showMaskType == 2)?_c('div',[_c('div',{staticStyle:{"text-align":"center","position":"relative","font-size":"18px","margin-top":"7px"}},[_vm._v("手机认证\n          "),_c('div',{staticClass:"closeBtn",on:{"click":function($event){return _vm.closeEvent()}}},[_c('img',{staticStyle:{"width":"18px","height":"18px"},attrs:{"src":__webpack_require__(104)}})])]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"12px","text-align":"center"}},[_vm._v("为了小轨能提供更好的服务，需要您认证一下手机")]),_vm._v(" "),_c('div',{staticStyle:{"margin-top":"15px","overflow":"hidden"}},[_c('span',{staticClass:"selectBox",staticStyle:{"width":"60px","color":"black","float":"left","margin-left":"25px","margin-top":"5px","text-align":"center"},on:{"click":function($event){return _vm.showCountryListEvent()}}},[_vm._v(_vm._s(_vm.countryVal))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phoneNumber),expression:"phoneNumber"}],staticStyle:{"float":"left","margin-left":"7px","padding-left":"7px","border":"1px solid #ccc","width":"180px","height":"30px"},attrs:{"type":"tel","maxlength":"11","placeholder":"请输入手机号号码"},domProps:{"value":(_vm.phoneNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phoneNumber=$event.target.value}}})]),_vm._v(" "),_c('div',{staticStyle:{"margin-top":"15px","overflow":"hidden"}},[_c('span',{staticStyle:{"color":"black","float":"left","margin-left":"25px","margin-top":"5px"}},[_vm._v("验证码")]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.codePass),expression:"codePass"}],staticStyle:{"float":"left","margin-left":"7px","padding-left":"7px","border":"1px solid #ccc","width":"100px","height":"30px"},attrs:{"type":"tel","maxlength":"6","placeholder":"请输入验证码"},domProps:{"value":(_vm.codePass)},on:{"input":function($event){if($event.target.composing){ return; }_vm.codePass=$event.target.value}}}),_vm._v(" "),_c('div',{staticStyle:{"float":"left","border":"1px solid #ccc","border-radius":"3px","-webkit-border-radius":"3px","height":"30px","line-height":"30px","margin-left":"5px","padding":"0 10px"},attrs:{"disabled":_vm.noClick},on:{"click":function($event){return _vm.getCode()}}},[_vm._v(_vm._s(_vm.codeNeed))])]),_vm._v(" "),_c('div',{staticStyle:{"border-radius":"3px","-webkit-border-radius":"3px","font-size":"18px","padding":"5px 0","text-align":"center","color":"white","width":"90%","margin":"20px auto 0","background":"#d41116"},on:{"click":function($event){return _vm.savaUserInfo(1)}}},[_vm._v("确定")])]):_vm._e(),_vm._v(" "),(_vm.showMaskType == 3)?_c('div',[_c('div',{staticStyle:{"text-align":"center","position":"relative","font-size":"18px","margin-top":"7px"}},[_vm._v("姓名编辑\n          "),_c('div',{staticClass:"closeBtn",on:{"click":function($event){return _vm.closeEvent()}}},[_c('img',{staticStyle:{"width":"18px","height":"18px"},attrs:{"src":__webpack_require__(104)}})])]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.uname),expression:"uname"}],staticStyle:{"height":"30px","padding-left":"7px","border":"1px solid #ccc","width":"80%","display":"block","margin":"25px auto 0"},attrs:{"type":"text","placeholder":"请输入你的真实姓名"},domProps:{"value":(_vm.uname)},on:{"input":function($event){if($event.target.composing){ return; }_vm.uname=$event.target.value}}}),_vm._v(" "),_c('div',{staticStyle:{"border-radius":"3px","-webkit-border-radius":"3px","font-size":"18px","padding":"5px 0","text-align":"center","color":"white","width":"90%","margin":"20px auto 0","background":"#d41116"},on:{"click":function($event){return _vm.savaUserInfo(2)}}},[_vm._v("确定")])]):_vm._e()])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"pIndex_part2"},[_c('div',[(_vm.userInfoResult.headImgUrl)?_c('img',{attrs:{"src":_vm.userInfoResult.headImgUrl,"alt":""}}):_vm._e(),_vm._v(" "),(!_vm.userInfoResult.headImgUrl)?_c('img',{attrs:{"src":__webpack_require__(270),"alt":""}}):_vm._e()]),_vm._v(" "),_c('div',[_c('span',{on:{"click":function($event){return _vm.savaUserName()}}},[_c('span',{staticStyle:{"max-width":"120px","overflow":"hidden","white-space":"nowrap","text-overflow":"ellipsis","font-weight":"bold"}},[_vm._v(_vm._s(_vm.userInfoResult.uname ? _vm.userInfoResult.uname: '点击填写姓名'))]),_vm._v(" "),(_vm.userInfoResult.userStatus == 2)?_c('img',{staticStyle:{"width":"16px","height":"10px","position":"relative","top":"6px"},attrs:{"src":__webpack_require__(1434)}}):_vm._e(),_vm._v(" "),(_vm.userInfoResult.userStatus != 2)?_c('img',{staticStyle:{"width":"16px","height":"10px","position":"relative","top":"6px"},attrs:{"src":__webpack_require__(2725)}}):_vm._e()]),_vm._v(" "),_c('p',[(_vm.userInfoResult.userStatus == 2)?_c('span',[_vm._v("会员到期："+_vm._s(_vm._f("dateFormat")(_vm.userInfoResult.userDetail.feeEndTime,'yyyy.MM.dd')))]):_c('span',[_vm._v("您还不是会员")])])])]),_vm._v(" "),_c('div',{staticClass:"giftTickets"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/giftTickets.png","alt":""},on:{"click":_vm.goGiftTickets}})]),_vm._v(" "),_c('div',{staticClass:"package"},[_c('div',{staticStyle:{"font-size":"18px","font-weight":"bold"}},[_vm._v("会员套餐")]),_vm._v(" "),_c('div',[_c('ul',{staticClass:"packageList"},_vm._l((_vm.reportList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.toPay(v)}}},[_c('a',{staticStyle:{"float":"left"}},[_vm._v(_vm._s(v.title))]),_vm._v(" "),_vm._l((v.tag.split(';')),function(z,index){return (v.tag.length>0)?_c('span',{key:index},[_vm._v(_vm._s(z))]):_vm._e()}),_vm._v(" "),(v.originalPrice)?_c('a',{staticStyle:{"margin-left":"4px","color":"#999999","font-size":"14px","text-decoration":"line-through"}},[_vm._v("￥"+_vm._s(v.originalPrice))]):_vm._e(),_vm._v(" "),_c('a',{staticStyle:{"color":"#EE4545"}},[_vm._v("￥"+_vm._s(v.price))])],2)}),0)])]),_vm._v(" "),_c('div',{staticClass:"richText",domProps:{"innerHTML":_vm._s(_vm.richTextContainer)}})])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-x"},[_c('div',{staticClass:"b-l"},[_c('img',{attrs:{"src":__webpack_require__(2726)}}),_vm._v(" "),_c('div',{staticClass:"b-t"},[_vm._v("【3月礼品】国五、国六SCR")]),_vm._v(" "),_c('div',{staticClass:"b-t b-t1"},[_vm._v("后处理系统宝典")])]),_vm._v(" "),_c('div',{staticClass:"b-l"},[_c('img',{attrs:{"src":__webpack_require__(2727)}}),_vm._v(" "),_c('div',{staticClass:"b-t"},[_vm._v("【5月礼品】电控柴油车电路")]),_vm._v(" "),_c('div',{staticClass:"b-t b-t1"},[_vm._v("图集第二册")])]),_vm._v(" "),_c('div',{staticClass:"b-l"},[_c('img',{attrs:{"src":__webpack_require__(2728)}}),_vm._v(" "),_c('div',{staticClass:"b-t"},[_vm._v("【7月礼品】2018年电控维修")]),_vm._v(" "),_c('div',{staticClass:"b-t b-t1"},[_vm._v("技术周年特刊")])]),_vm._v(" "),_c('div',{staticClass:"b-l"},[_c('img',{attrs:{"src":__webpack_require__(2729)}}),_vm._v(" "),_c('div',{staticClass:"b-t"},[_vm._v("【9月礼品】电控柴油机控制")]),_vm._v(" "),_c('div',{staticClass:"b-t b-t1"},[_vm._v("策略解析—精华版")])]),_vm._v(" "),_c('div',{staticClass:"b-l"},[_c('img',{attrs:{"src":__webpack_require__(2730)}}),_vm._v(" "),_c('div',{staticClass:"b-t"},[_vm._v("【11月礼品】神秘礼物")])]),_vm._v(" "),_c('div',{staticClass:"b-l"},[_c('img',{attrs:{"src":__webpack_require__(2731)}}),_vm._v(" "),_c('div',{staticClass:"b-t"},[_vm._v("【12月礼品】精美扑克牌")])])])}]
module.exports = __webpack_require__.p + "static/img/userDefault.a704508.jpg";module.exports = __webpack_require__.p + "static/img/member02.1ed1ac1.png";module.exports = __webpack_require__.p + "static/img/member01.9bbf091.png";module.exports = __webpack_require__.p + "static/img/3.22a92ab.png";module.exports = __webpack_require__.p + "static/img/5.13edf10.png";module.exports = __webpack_require__.p + "static/img/7.24571b7.png";module.exports = __webpack_require__.p + "static/img/9.58613ac.png";module.exports = __webpack_require__.p + "static/img/11.f170f43.png";module.exports = __webpack_require__.p + "static/img/12.8952eff.png";exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "html{font-family:Helvetica Neue,Helvetica,sans-serif;font-size:20px}body,html{-webkit-touch-callout:none;-webkit-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;width:100%}body{line-height:1.5;font-size:.8rem;color:#212121;background-color:#f5f5f5;outline:0}a,body,center,cite,code,dd,del,div,dl,dt,em,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hr,html,img,input,label,legend,li,mark,ol,p,section,span,strong,textarea,time,ul,var{margin:0;border:0;padding:0;font-style:normal}*{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;outline:none}@media only screen and (min-width:400px){html{font-size:21.33333333px!important}}@media only screen and (min-width:414px){html{font-size:21px!important}}@media only screen and (min-width:480px){html{font-size:25.6px!important}}li,ul{list-style:none}p{font-size:.7rem;color:#757575}a{color:#0062cc;text-decoration:none;background-color:transparent}textarea{overflow:hidden;resize:none}button{overflow:visible}button,select{text-transform:none}button,input,select,textarea{font:inherit;color:inherit}.aui-ellipsis-1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.aui-ellipsis{-webkit-line-clamp:1}.aui-ellipsis,.aui-ellipsis-2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-wrap:break-word;word-break:break-all;white-space:normal!important;-webkit-box-orient:vertical}.aui-ellipsis-2{-webkit-line-clamp:2}.aui-hr{width:100%;position:relative;border-top:1px solid #ddd;height:1px}@media screen and (-webkit-min-device-pixel-ratio:1.5){.aui-hr{border:none;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0);background-size:100% 1px;background-repeat:no-repeat;background-position:top}}.aui-padded-0{padding:0!important}.aui-padded-5{padding:.25rem!important}.aui-padded-10{padding:.5rem!important}.aui-padded-15{padding:.75rem!important}.aui-padded-t-0{padding-top:0!important}.aui-padded-t-5{padding-top:.25rem!important}.aui-padded-t-10{padding-top:.5rem!important}.aui-padded-t-15{padding-top:.75rem!important}.aui-padded-b-0{padding-bottom:0!important}.aui-padded-b-5{padding-bottom:.25rem!important}.aui-padded-b-10{padding-bottom:.5rem!important}.aui-padded-b-15{padding-bottom:.75rem!important}.aui-padded-l-0{padding-left:0!important}.aui-padded-l-5{padding-left:.25rem!important}.aui-padded-l-10{padding-left:.5rem!important}.aui-padded-l-15{padding-left:.75rem!important}.aui-padded-r-0{padding-right:0!important}.aui-padded-r-5{padding-right:.25rem!important}.aui-padded-r-10{padding-right:.5rem!important}.aui-padded-r-15{padding-right:.75rem!important}.aui-margin-0{margin:0!important}.aui-margin-5{margin:.25rem!important}.aui-margin-10{margin:.5rem!important}.aui-margin-15{margin:.75rem!important}.aui-margin-t-0{margin-top:.25rem!important}.aui-margin-t-5{margin-top:0!important}.aui-margin-t-10{margin-top:.5rem!important}.aui-margin-t-15{margin-top:.75rem!important}.aui-margin-b-0{margin-bottom:0!important}.aui-margin-b-5{margin-bottom:.25rem!important}.aui-margin-b-10{margin-bottom:.5rem!important}.aui-margin-b-15{margin-bottom:.75rem!important}.aui-margin-l-0{margin-left:0!important}.aui-margin-l-5{margin-left:.25rem!important}.aui-margin-l-10{margin-left:.5rem!important}.aui-margin-l-15{margin-left:.75rem!important}.aui-margin-r-0{margin-right:0!important}.aui-margin-r-5{margin-right:.25rem!important}.aui-margin-r-10{margin-right:.5rem!important}.aui-margin-r-15{margin-right:.75rem!important}.aui-clearfix{clear:both}.aui-clearfix:before{display:table;content:\" \"}.aui-clearfix:after{clear:both}.aui-text-left{text-align:left!important}.aui-text-center{text-align:center!important}.aui-text-justify{text-align:justify!important}.aui-text-right{text-align:right!important}h1,h2,h3,h4,h5,h6{font-weight:400}h1{font-size:1.2rem}h2{font-size:1rem}h3{font-size:.8rem}h4{font-size:.7rem}h5,h6{font-size:.7rem;font-weight:400;color:#757575}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:400;line-height:1;color:#757575}h1 small,h2 small,h3 small{font-size:65%}h4 small,h5 small,h6 small{font-size:75%}img{max-width:100%;display:block}.aui-font-size-12{font-size:.6rem!important}.aui-font-size-14{font-size:.7rem!important}.aui-font-size-16{font-size:.8rem!important}.aui-font-size-18{font-size:.9rem!important}.aui-font-size-20{font-size:1rem!important}.aui-text-default{color:#212121!important}.aui-text-white{color:#fff!important}.aui-text-primary{color:#00bcd4!important}.aui-text-success{color:#009688!important}.aui-text-info{color:#03a9f4!important}.aui-text-warning{color:#ffc107!important}.aui-text-danger{color:#e51c23!important}.aui-text-pink{color:#e91e63!important}.aui-text-purple{color:#673ab7!important}.aui-text-indigo{color:#3f51b5!important}.aui-bg-default{background-color:#f5f5f5!important}.aui-bg-primary{background-color:#00bcd4!important}.aui-bg-success{background-color:#009688!important}.aui-bg-info{background-color:#03a9f4!important}.aui-bg-warning{background-color:#f1c40f!important}.aui-bg-danger{background-color:#e51c23!important}.aui-bg-pink{background-color:#e91e63!important}.aui-bg-purple{background-color:#673ab7!important}.aui-bg-indigo{background-color:#3f51b5!important}.aui-warning,.aui-warning .aui-iconfont,.aui-warning .aui-input,.aui-warning label{color:#e51c23!important}.aui-success,.aui-success .aui-iconfont,.aui-success .aui-input,.aui-success label{color:#009688!important}.aui-pull-right{float:right!important}.aui-pull-left{float:left!important}.aui-hide{display:none!important}.aui-show{display:block!important}.aui-invisible{visibility:hidden}.aui-inline{display:inline-block;vertical-align:top}.aui-mask{position:fixed;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.3);opacity:0;z-index:8;visibility:hidden;-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s}.aui-mask.aui-mask-in{visibility:visible;opacity:1}.aui-mask.aui-mask-out{opacity:0}img.aui-img-round{border-radius:50%}.aui-content{overflow-x:hidden}.aui-content,.aui-content-padded{-webkit-overflow-scrolling:touch;word-break:break-all}.aui-content-padded{margin:.75rem;position:relative}.aui-row{overflow:hidden;margin:0}.aui-row-padded{margin-left:-.125rem;margin-right:-.125rem}.aui-row-padded [class*=aui-col-xs-]{padding:.125rem}.aui-col-5,.aui-col-xs-1,.aui-col-xs-2,.aui-col-xs-3,.aui-col-xs-4,.aui-col-xs-5,.aui-col-xs-6,.aui-col-xs-7,.aui-col-xs-8,.aui-col-xs-9,.aui-col-xs-10,.aui-col-xs-11{position:relative;float:left}.aui-col-xs-12{width:100%;position:relative}.aui-col-xs-11{width:91.66666667%}.aui-col-xs-10{width:83.33333333%}.aui-col-xs-9{width:75%}.aui-col-xs-8{width:66.66666667%}.aui-col-xs-7{width:58.33333333%}.aui-col-xs-6{width:50%}.aui-col-xs-5{width:41.66666667%}.aui-col-xs-4{width:33.33333333%}.aui-col-xs-3{width:25%}.aui-col-xs-2{width:16.66666667%}.aui-col-xs-1{width:8.33333333%}.aui-col-5{width:20%}.aui-label{display:inline-block;padding:.2em .25em;font-size:.6rem;line-height:1;color:#616161;background-color:#ddd;text-align:center;white-space:nowrap;vertical-align:middle;border-radius:.15em;position:relative}.aui-label-primary{color:#fff;background-color:#00bcd4}.aui-label-success{color:#fff;background-color:#009688}.aui-label-info{color:#fff;background-color:#03a9f4}.aui-label-warning{color:#fff;background-color:#ffc107}.aui-label-danger{color:#fff;background-color:#e51c23}.aui-label-outlined{background-color:transparent;position:relative}.aui-label-outlined:after{-webkit-border-radius:2px;border-radius:2px;height:200%;content:\"\";width:200%;border:1px solid #d9d9d9;position:absolute;top:-1px;left:-1px;transform:scale(.5);-webkit-transform:scale(.5);transform-origin:0 0;-webkit-transform-origin:0 0;z-index:1}.aui-label-outlined.aui-label-primary,.aui-label-outlined.aui-label-primary:after{color:#00bcd4;border-color:#00bcd4}.aui-label-outlined.aui-label-success,.aui-label-outlined.aui-label-success:after{color:#009688;border-color:#009688}.aui-label-outlined.aui-label-info,.aui-label-outlined.aui-label-info:after{color:#03a9f4;border-color:#03a9f4}.aui-label-outlined.aui-label-warning,.aui-label-outlined.aui-label-warning:after{color:#ffc107;border-color:#ffc107}.aui-label-outlined.aui-label-danger,.aui-label-outlined.aui-label-danger:after{color:#e51c23;border-color:#e51c23}.aui-label .aui-iconfont{font-size:.6rem}.aui-badge{width:auto;text-align:center;min-width:.8rem;height:.8rem;line-height:.8rem;padding:0 .2rem;font-size:.6rem;color:#fff;background-color:#ff2600;border-radius:.4rem;top:.2rem;left:60%}.aui-badge,.aui-dot{display:inline-block;position:absolute;z-index:99}.aui-dot{width:.4rem;height:.4rem;background:#ff2600;border-radius:.5rem;top:.3rem;right:20%}.aui-btn,button{position:relative;display:inline-block;font-size:.7rem;font-weight:400;font-family:inherit;text-decoration:none;text-align:center;margin:0;background:#ddd;padding:0 .6rem;height:1.5rem;line-height:1.5rem;border-radius:.2rem;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;user-select:none}.aui-btn:active{color:#212121;background-color:#bdbdbd}.aui-btn-primary{color:#fff;background-color:#00bcd4}.aui-btn-primary.aui-active,.aui-btn-primary:active{color:#fff;background-color:#00acc1}.aui-btn-success{color:#fff;background-color:#009688}.aui-btn-success.aui-active,.aui-btn-success:active{color:#fff;background-color:#00897b}.aui-btn-info{color:#fff!important;background-color:#03a9f4!important}.aui-btn-info.aui-active,.aui-btn-info:active{color:#fff!important;background-color:#039be5!important}.aui-btn-warning{color:#fff!important;background-color:#ffc107!important}.aui-btn-warning.aui-active,.aui-btn-warning:active{color:#fff!important;background-color:#ffb300!important}.aui-btn-danger{color:#fff!important;background-color:#e51c23!important}.aui-btn-danger.aui-active,.aui-btn-danger:active{color:#fff!important;background-color:#dd191b!important}.aui-btn-block{display:block;width:100%;height:2.5rem;line-height:2.55rem;margin-bottom:0;font-size:.9rem}.aui-btn-block.aui-btn-sm{font-size:.7rem;height:1.8rem;line-height:1.85rem}.aui-btn-block .aui-iconfont,.aui-btn .aui-iconfont{margin-right:.3rem}.aui-btn-block .aui-badge,.aui-btn .aui-badge{margin-left:.3rem}.aui-btn-outlined{border:1px solid #bdbdbd}.aui-btn-outlined,.aui-btn-outlined:active{background:transparent!important}.aui-btn-default.aui-btn-outlined{color:#bdc3c7!important;border:1px solid #dcdcdc!important}.aui-btn-primary.aui-btn-outlined{color:#00bcd4!important;border:1px solid #00bcd4!important}.aui-btn-success.aui-btn-outlined{color:#009688!important;border:1px solid #009688!important}.aui-btn-info.aui-btn-outlined{color:#03a9f4!important;border:1px solid #03a9f4!important}.aui-btn-warning.aui-btn-outlined{color:#ffc107!important;border:1px solid #ffc107!important}.aui-btn-danger.aui-btn-outlined{color:#e51c23!important;border:1px solid #e51c23!important}.aui-input,input[type=date],input[type=datetime-local],input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],select,textarea{border:none;background-color:transparent;border-radius:0;box-shadow:none;display:block;padding:0;margin:0;width:100%;height:2.2rem;line-height:normal;color:#424242;font-size:.8rem;font-family:inherit;box-sizing:border-box;-webkit-user-select:text;user-select:text;-webkit-appearance:none;appearance:none}input[type=search]::-webkit-search-cancel-button{display:none}.aui-scroll-x{overflow-y:auto}.aui-scroll-x,.aui-scroll-y{position:relative;-webkit-overflow-scrolling:touch}.aui-scroll-y{width:100%;overflow-x:auto}::-webkit-scrollbar{width:0}.aui-list{position:relative;font-size:.8rem;background-color:#fff;border-top:1px solid #ddd}.aui-list .aui-content{overflow:hidden}.aui-list.aui-list-noborder{border-top:none}.aui-list .aui-list-header{background-color:#ddd;font-size:.6rem;padding:.4rem .75rem;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.aui-list .aui-list-header,.aui-list .aui-list-item{color:#212121;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.aui-list .aui-list-item{list-style:none;margin:0;padding:0;padding-left:.75rem;border-bottom:1px solid #ddd;min-height:2.2rem}.aui-list.aui-list-noborder .aui-list-item:last-child{border-bottom:0}.aui-list .aui-list-item-inner{position:relative;min-height:2.2rem;padding-right:.75rem;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.aui-list .aui-list-item:active{background-color:#f5f5f5}.aui-list .aui-list-item-text{font-size:.7rem;color:#757575;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-align-items:center;align-items:center}.aui-list .aui-list-item-title{font-size:.8rem;position:relative;max-width:100%;color:#212121}.aui-list-item-title-row em,.aui-list .aui-list-item-right{max-width:50%;position:relative;font-size:.6rem;color:#757575;margin-left:.25rem}.aui-list .aui-list-item-inner p{overflow:hidden}.aui-list .aui-list-media-list{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.aui-media-list-item-inner{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex}.aui-media-list .aui-list-item{display:block}.aui-media-list .aui-list-item-inner{display:block;padding-top:.5rem;padding-bottom:.5rem}.aui-media-list-item-inner+.aui-info{margin-right:.75rem}.aui-list .aui-list-item-media{width:4.5rem;position:relative;padding:.5rem 0;padding-right:.75rem;display:inherit;-webkit-flex-shrink:0;flex-shrink:0;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:flex-start;align-items:flex-start}.aui-list .aui-list-item-media img{width:100%;display:block}.aui-list .aui-list-item-media-list{margin-top:.25rem;padding-right:0;display:block}.aui-list [class*=aui-col-xs-] img{max-width:100%;width:100%;display:block}.aui-list-item-middle .aui-list-item-inner:after{display:block}.aui-list .aui-list-item-middle>*,.aui-list .aui-list-item-middle>.aui-list-item-inner,.aui-list .aui-list-item-middle>.aui-list-item-media{box-align:center;-webkit-box-align:center;align-items:center;-webkit-align-items:center}.aui-list .aui-list-item-center,.aui-list .aui-list-item-center>.aui-list-item-inner,.aui-list .aui-list-item-center>.aui-list-item-media{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.aui-list .aui-list-item i.aui-iconfont{-webkit-align-self:center;align-self:center;font-size:.8rem}.aui-list-item-inner.aui-list-item-arrow{overflow:hidden;padding-right:1.5rem}.aui-list-item-arrow:before{content:\"\";width:.4rem;height:.4rem;position:absolute;top:50%;right:.75rem;margin-top:-.2rem;background:transparent;border:1px solid #ddd;border-top:none;border-right:none;z-index:2;-webkit-border-radius:0;border-radius:0;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.aui-list-item.aui-list-item-arrow{padding-right:.75rem}.aui-list label{line-height:1.3rem}.aui-list.aui-form-list .aui-list-item:active{background-color:#fff}.aui-list.aui-form-list .aui-list-item-inner,.aui-list .aui-list-item-label,.aui-list .aui-list-item-label-icon{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;padding:0}.aui-list .aui-list-item-label,.aui-list .aui-list-item-label-icon{color:#212121;width:35%;min-width:1.5rem;margin:0;padding-right:.25rem;line-height:2.2rem;position:relative;overflow:hidden;white-space:nowrap;max-width:100%;-webkit-align-items:center;align-items:center}.aui-list .aui-list-item-label-icon{width:auto;padding-right:.75rem}.aui-list .aui-list-item-input{width:100%;padding:0;padding-right:.75rem;box-flex:1;-webkit-box-flex:1;-webkit-flex-shrink:1;flex-shrink:1}.aui-list.aui-select-list .aui-list-item:active{background-color:#fff}.aui-list.aui-select-list .aui-list-item-inner{display:block;padding-top:.5rem;padding-bottom:.5rem;-webkit-align-self:stretch;align-self:stretch}.aui-list.aui-select-list .aui-list-item-label{width:auto;min-width:2.2rem;padding:.5rem 0;padding-right:.75rem}.aui-list.aui-form-list .aui-list-item-btn{padding:.75rem .75rem .75rem 0}.aui-list textarea{overflow:auto;margin:.5rem 0;height:3rem;line-height:1rem;resize:none}.aui-list .aui-list-item-right .aui-badge,.aui-list .aui-list-item-right .aui-dot{display:inherit}@media screen and (-webkit-min-device-pixel-ratio:1.5){.aui-list{border:none;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background-size:100% 1px;background-repeat:no-repeat;background-position:top}.aui-list .aui-list-item{background-position:bottom;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0)}.aui-list.aui-list-in .aui-list-item,.aui-list .aui-list-item{border:none;background-size:100% 1px;background-repeat:no-repeat}.aui-list.aui-list-in .aui-list-item{background-position:.75rem bottom;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0)}.aui-list.aui-list-in .aui-list-item:last-child{background-position:bottom}.aui-list.aui-list-noborder,.aui-list.aui-list-noborder .aui-list-item:last-child{border:none;background-size:100% 0;background:none}}.aui-tab{position:relative;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-align-self:center;align-self:center}.aui-tab-item{width:100%;height:2.2rem;line-height:2.2rem;position:relative;font-size:.7rem;text-align:center;color:#212121;margin-left:-1px;-webkit-box-flex:1;box-flex:1}.aui-tab-item.aui-active{color:#039be5;border-bottom:2px solid #039be5}.aui-card-list{position:relative;margin-bottom:.75rem;background:#fff}.aui-card-list-footer,.aui-card-list-header{position:relative;min-height:2.2rem;padding:.5rem .75rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.aui-card-list-header{font-size:.8rem;color:#212121}.aui-card-list-header.aui-card-list-user{display:block}.aui-card-list-user-avatar{width:2rem;float:left;margin-right:.5rem}.aui-card-list-user-avatar img{width:100%;display:block}.aui-card-list-user-name{color:#212121;position:relative;font-size:.7rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.aui-card-list-user-name>*,.aui-card-list-user-name small{position:relative}.aui-card-list-user-name small{color:#757575}.aui-card-list-user-info{color:#757575;font-size:.6rem}.aui-card-list-content{position:relative}.aui-card-list-content-padded{position:relative;padding:.5rem .75rem}.aui-card-list-content,.aui-card-list-content-padded{word-break:break-all;font-size:.7rem;color:#212121}.aui-card-list-content-padded img,.aui-card-list-content img{width:100%;display:block}.aui-card-list-footer{font-size:.7rem;color:#757575}.aui-card-list-footer>*{position:relative}.aui-card-list-footer.aui-text-center{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;box-pack:center;-webkit-justify-content:center;justify-content:center}.aui-card-list-footer .aui-iconfont{font-size:.9rem}.aui-grid{width:100%;background-color:#fff;display:table;table-layout:fixed}.aui-grid [class*=aui-col-]{display:table-cell;position:relative;text-align:center;vertical-align:middle;padding:1rem 0}.aui-grid [class*=aui-col-xs-]:active{background-color:#f5f5f5}.aui-grid .aui-iconfont{position:relative;z-index:20;top:0;height:1.4rem;font-size:1.4rem;line-height:1.4rem}.aui-grid .aui-grid-label{display:block;font-size:.7rem;position:relative;margin-top:.25rem}.aui-grid .aui-badge{position:absolute;top:.5rem;left:60%;z-index:99}.aui-grid .aui-dot{position:absolute;top:.5rem;right:20%;z-index:99}.aui-checkbox,.aui-radio{width:1.2rem;height:1.2rem;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:.6rem;border-radius:.6rem;font-size:.8rem;margin:0;padding:0;position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-appearance:none;-webkit-user-select:none;user-select:none;-webkit-transition:background-color .1s ease;transition:background-color .1s ease}.aui-checkbox{border-radius:.1rem}.aui-checkbox.aui-checked,.aui-checkbox:checked,.aui-radio.aui-checked,.aui-radio:checked{background-color:#03a9f4;border:1px solid #03a9f4;text-align:center;background-clip:padding-box}.aui-checkbox.aui-checked:after,.aui-checkbox.aui-checked:before,.aui-checkbox:checked:after,.aui-checkbox:checked:before,.aui-radio.aui-checked:after,.aui-radio.aui-checked:before,.aui-radio:checked:after,.aui-radio:checked:before{content:\"\";width:.5rem;height:.3rem;position:absolute;top:50%;left:50%;margin-left:-.25rem;margin-top:-.25rem;background:transparent;border:1px solid #fff;border-top:none;border-right:none;z-index:2;-webkit-border-radius:0;border-radius:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.aui-checkbox.aui-disabled,.aui-checkbox:disabled,.aui-radio.aui-disabled,.aui-radio:disabled{background-color:#ddd;border:1px solid #ddd}.aui-checkbox.aui-disabled:after,.aui-checkbox.aui-disabled:before,.aui-checkbox:disabled:after,.aui-checkbox:disabled:before,.aui-radio.aui-disabled:after,.aui-radio.aui-disabled:before,.aui-radio:disabled:after,.aui-radio:disabled:before{content:\"\";width:.5rem;height:.3rem;position:absolute;top:50%;left:50%;margin-left:-.25rem;margin-top:-.25rem;background:transparent;border:1px solid #fff;border-top:none;border-right:none;z-index:2;-webkit-border-radius:0;border-radius:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.aui-switch{width:2.3rem;height:1.2rem;position:relative;vertical-align:top;border:1px solid #ddd;background-color:#ddd;border-radius:.6rem;background-clip:content-box;display:inline-block;outline:none;-webkit-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:all .2s linear;transition:all .2s linear}.aui-switch:before{width:1.1rem;height:1.1rem;position:absolute;top:0;left:0;border-radius:.6rem;background-color:#fff;content:\"\";-webkit-transition:left .2s;transition:left .2s}.aui-switch:checked{border-color:#03a9f4;background-color:#03a9f4}.aui-switch:checked:before{left:1.1rem}.aui-bar{position:relative;top:0;right:0;left:0;z-index:10;width:100%;min-height:2.25rem;font-size:.9rem;text-align:center;display:table}.aui-bar-nav{top:0;line-height:2.25rem;background-color:#03a9f4;color:#fff}.aui-title a{color:inherit}.aui-bar-nav .aui-title{min-height:2.25rem;position:absolute;margin:0;text-align:center;white-space:nowrap;right:5rem;left:5rem;width:auto;overflow:hidden;text-overflow:ellipsis;z-index:2}.aui-bar-nav a{color:#fff}.aui-bar-nav .aui-iconfont{position:relative;z-index:20;font-size:.9rem;color:#fff;font-weight:400;line-height:2.25rem}.aui-bar-nav .aui-pull-left,.aui-bar-nav .aui-pull-right{padding:0 .5rem;font-size:.8rem;font-weight:400;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.aui-bar-nav .aui-btn{position:relative;z-index:20;height:2.25rem;line-height:2.25rem;padding-top:0;padding-bottom:0;margin:0;border-radius:.1rem;border-width:0;background:transparent!important}.aui-bar-nav .aui-btn.aui-btn-outlined{position:relative;padding:0 .15rem;margin:.5rem;height:1.25rem;line-height:1.25rem;border-width:1px;background:transparent!important;border-color:#fff}.aui-bar-nav .aui-btn:active{background:none}.aui-bar-nav .aui-btn .aui-iconfont{font-size:.9rem;line-height:1.25rem;padding:0;margin:0;color:#fff}.aui-bar-light{color:#03a9f4;background-color:#fff;border-bottom:1px solid #ddd}.aui-bar-nav.aui-bar-light .aui-iconfont{color:#03a9f4}.aui-bar-nav.aui-bar-light .aui-btn-outlined{border-color:#03a9f4}@media screen and (-webkit-min-device-pixel-ratio:1.5){.aui-bar.aui-bar-light{border:none;background-size:100% 1px;background-repeat:no-repeat;background-position:bottom;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0)}}.aui-bar-tab{position:fixed;top:auto;bottom:0;table-layout:fixed;background-color:#fff;color:#757575}.aui-bar-tab .aui-bar-tab-item{display:table-cell;position:relative;width:1%;height:2.5rem;text-align:center;vertical-align:middle}.aui-bar-tab .aui-active{color:#039be5}.aui-bar-tab .aui-bar-tab-item .aui-iconfont{position:relative;z-index:20;top:.1rem;height:1.2rem;font-size:1rem;line-height:1rem}.aui-bar-tab .aui-bar-tab-label{display:block;font-size:.6rem;position:relative}.aui-bar-tab .aui-badge{position:absolute;top:.1rem;left:55%;z-index:99}.aui-bar-tab .aui-dot{position:absolute;top:.1rem;right:30%;z-index:99}.aui-bar-btn{position:relative;font-size:.7rem;display:table;white-space:nowrap;margin:0 auto;padding:0;border:none;width:100%;min-height:1.8rem}.aui-bar-btn-item{display:table-cell;position:relative;width:1%;line-height:1.6rem;text-align:center;vertical-align:middle;border-radius:0;border:1px solid #03a9f4;border-left-width:0}.aui-bar-btn .aui-input,.aui-bar-btn input,.aui-bar-btn select{padding-left:.25rem;padding-right:.25rem;height:1.8rem}.aui-bar-btn-sm{min-height:1.3rem}.aui-bar-btn.aui-bar-btn-sm .aui-input,.aui-bar-btn.aui-bar-btn-sm input,.aui-bar-btn.aui-bar-btn-sm select{height:1.2rem}.aui-bar-btn-sm .aui-bar-btn-item{line-height:1.3rem;font-size:.6rem}.aui-bar-btn-item.aui-active{background-color:#03a9f4;color:#fff}.aui-bar-btn-item:first-child{border-left-width:1px;border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.aui-bar-btn-item:last-child{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem;border-left:0}.aui-bar-btn.aui-bar-btn-full .aui-bar-btn-item:first-child{border-left-width:0;border-top-left-radius:0;border-bottom-left-radius:0}.aui-bar-btn.aui-bar-btn-full .aui-bar-btn-item:last-child{border-right-width:0;border-top-right-radius:0;border-bottom-right-radius:0}.aui-bar-btn.aui-bar-btn-round .aui-bar-btn-item:first-child{border-top-left-radius:1.5rem;border-bottom-left-radius:1.5rem}.aui-bar-btn.aui-bar-btn-round .aui-bar-btn-item:last-child{border-top-right-radius:1.5rem;border-bottom-right-radius:1.5rem}.aui-bar-nav .aui-bar-btn{margin-top:.45rem;margin-bottom:.4rem;min-height:1.3rem}.aui-bar-nav .aui-bar-btn-item{line-height:1.3rem;border-color:#fff}.aui-bar-nav .aui-bar-btn-item.aui-active{background-color:#fff;color:#03a9f4}.aui-bar-nav.aui-bar-light .aui-bar-btn-item{border-color:#03a9f4}.aui-bar-nav.aui-bar-light .aui-bar-btn-item.aui-active{background-color:#03a9f4;color:#fff}.aui-bar-nav>.aui-bar-btn{width:50%}.aui-info{position:relative;padding:.5rem 0;font-size:.7rem;color:#757575;background-color:transparent;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.aui-info,.aui-info-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.aui-info-item>*,.aui-info>*{display:inherit;position:relative}.aui-progress{width:100%;height:1rem;border-radius:.2rem;overflow:hidden;background-color:#f0f0f0}.aui-progress-bar{float:left;width:0;height:100%;font-size:.6rem;line-height:1rem;color:#fff;text-align:center;background-color:#03a9f4}.aui-progress-sm,.aui-progress.sm{height:.5rem}.aui-progress-sm,.aui-progress-sm .aui-progress-bar,.aui-progress.sm,.aui-progress.sm .aui-progress-bar{border-radius:1px}.aui-progress-xs,.aui-progress.xs{height:.35rem}.aui-progress-xs,.aui-progress-xs .progress-bar,.aui-progress.xs,.aui-progress.xs .progress-bar{border-radius:1px}.aui-progress-xxs,.aui-progress.xxs{height:.15rem}.aui-progress-xxs,.aui-progress-xxs .progress-bar,.aui-progress.xxs,.aui-progress.xxs .progress-bar{border-radius:1px}.aui-range{position:relative;display:inline-block}.aui-range input[type=range]{height:.2rem;border:0;border-radius:2px;background-color:#f0f0f0;position:relative;-webkit-appearance:none!important}.aui-range input[type=range]::-webkit-slider-thumb{width:1.2rem;height:1.2rem;border-radius:50%;border-color:#03a9f4;background-color:#03a9f4;-webkit-appearance:none!important}.aui-range .aui-range-tip{font-size:1rem;position:absolute;z-index:999;top:-1.5rem;width:2.4rem;height:1.5rem;line-height:1.5rem;text-align:center;color:#666;border:1px solid #ddd;border-radius:.3rem;background-color:#fff}.aui-input-row .aui-range input[type=range]{width:90%;margin-left:5%}.aui-searchbar{display:-webkit-box;-webkit-box-pack:center;-webkit-box-align:center;height:2.2rem;overflow:hidden;width:100%;background-color:#ebeced;color:#9e9e9e;-webkit-backface-visibility:hidden;backface-visibility:hidden}.aui-searchbar.focus{-webkit-box-pack:start}.aui-searchbar-input{margin:0 .5rem;background-color:#fff;border-radius:.25rem;height:1.4rem;line-height:1.4rem;font-size:.7rem;position:relative;padding-left:.5rem;display:-webkit-box;-webkit-box-flex:1}.aui-searchbar form{width:90%}.aui-searchbar-input input{color:#666;width:80%;padding:0;margin:0;height:1.4rem;line-height:normal;border:0;-webkit-appearance:none;font-size:.7rem}.aui-searchbar input::-webkit-input-placeholder{color:#ccc}.aui-searchbar .aui-iconfont{line-height:1.4rem;margin-right:.25rem;color:#9e9e9e!important}.aui-searchbar .aui-searchbar-btn{font-size:.7rem;color:#666;margin-right:-2.2rem;width:2.2rem;height:1.4rem;padding-right:.5rem;line-height:1.4rem;text-align:center;-webkit-transition:all .3s;transition:all .3s}.aui-searchbar-clear-btn{position:absolute;right:5px;top:3px;width:1.1rem;height:1.1rem;background:#eee;border-radius:50%;line-height:.6rem;text-align:center;display:none}.aui-searchbar-clear-btn .aui-iconfont{font-size:.6rem;margin:0 auto;position:relative;top:-2px}.aui-searchbar .aui-searchbar-btn .aui-iconfont{color:#666}.aui-tips{padding:0 .75rem;width:100%;z-index:99;height:1.9rem;line-height:1.9rem;position:relative;background-color:rgba(0,0,0,.6);color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-align-items:center;align-items:center}.aui-tips .aui-tips-title{padding:0 .5rem;font-size:.7rem;position:relative;max-width:100%}.aui-toast{background:rgba(0,0,0,.7);text-align:center;border-radius:.25rem;color:#fff;position:fixed;z-index:3;top:45%;left:50%;width:7.5em;min-height:6em;margin-left:-3.75em;margin-top:-4rem;display:none}.aui-toast .aui-iconfont{margin-top:.2rem;display:block;font-size:2.6rem}.aui-toast-content{margin:0 0 .75rem}.aui-toast-loading{border-radius:100%;margin:.75rem 0;-webkit-animation-fill-mode:both;animation-fill-mode:both;border:2px solid #fff;border-bottom-color:transparent;height:2.25rem;width:2.25rem;background:transparent;display:inline-block;-webkit-animation:rotate 1s 0s linear infinite;animation:rotate 1s 0s linear infinite}.aui-dialog{width:13.5rem;text-align:center;position:fixed;z-index:999;left:50%;margin-left:-6.75rem;margin-top:0;top:45%;border-radius:.3rem;opacity:0;background-color:#fff;-webkit-transform:translateZ(0) scale(1.2);transform:translateZ(0) scale(1.2);-webkit-transition-property:-webkit-transform,opacity;transition-property:transform,opacity}.aui-dialog-header{padding:.5rem .75rem 0;text-align:center;font-size:1em;color:#212121}.aui-dialog-body{padding:.75rem;overflow:hidden;font-size:.875em;color:#757575}.aui-dialog-body input{border:1px solid #ddd;height:1.8rem;line-height:1.8rem;min-height:1.8rem;padding-left:.25rem;padding-right:.25rem}.aui-dialog-footer{position:relative;font-size:1em;border-top:1px solid #ddd;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.aui-dialog-btn{position:relative;display:block;width:100%;padding:0 .25rem;height:2.2rem;font-size:.8rem;line-height:2.2rem;text-align:center;color:#0894ec;border-right:1px solid #ddd;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;box-flex:1}.aui-dialog-btn:last-child{border-right:none}.aui-dialog.aui-dialog-in{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}.aui-dialog.aui-dialog-in,.aui-dialog.aui-dialog-out{-webkit-transition-duration:.3s;transition-duration:.3s}.aui-dialog.aui-dialog-out{opacity:0;-webkit-transform:translateZ(0) scale(.815);transform:translateZ(0) scale(.815)}@media only screen and (-webkit-min-device-pixel-ratio:1.5){.aui-dialog-footer{border:none;background-size:100% 1px;background-repeat:no-repeat;background-position:top;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0)}.aui-dialog-btn{border:none;background:-webkit-linear-gradient(0deg,#ddd,#ddd 50%,transparent 0);background:linear-gradient(270deg,#ddd,#ddd 50%,transparent 0);background-size:1px 100%;background-repeat:no-repeat;background-position:100%}.aui-dialog-btn:last-child{border:none;background-size:0 100%}.aui-dialog-body input{border:none;background:-webkit-linear-gradient(270deg,#ddd,#ddd 50%,transparent 0),-webkit-linear-gradient(180deg,#ddd,#ddd 50%,transparent 0),-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0),-webkit-linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:linear-gradient(180deg,#ddd,#ddd 50%,transparent 0),linear-gradient(270deg,#ddd,#ddd 50%,transparent 0),linear-gradient(0deg,#ddd,#ddd 50%,transparent 0),linear-gradient(90deg,#ddd,#ddd 50%,transparent 0);background-size:100% 1px,1px 100%,100% 1px,1px 100%;background-repeat:no-repeat;background-position:top,100% 0,bottom,0 0}}.aui-popup{padding:0;margin:0;background:transparent;position:fixed;height:auto;min-width:7rem;min-height:4.5rem;z-index:999;opacity:0;-webkit-transition-property:-webkit-transform,opacity;transition-property:transform,opacity}.aui-popup.aui-popup-in{opacity:1}.aui-popup.aui-popup-in,.aui-popup.aui-popup-out{-webkit-transition-duration:.3s;transition-duration:.3s}.aui-popup.aui-popup-out{opacity:0}.aui-popup-right{right:.75rem}.aui-popup-content{background-color:#fff;border-radius:.2rem;overflow:hidden;min-height:4.5rem;height:100%}.aui-popup-top,.aui-popup-top-left,.aui-popup-top-right{top:.45rem}.aui-popup-top{left:50%;margin-left:-3.5rem}.aui-popup-top-left{left:.45rem}.aui-popup-top-right{right:.45rem}.aui-popup-arrow{position:absolute;width:10px;height:10px;-webkit-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-color:transparent;background:-webkit-linear-gradient(45deg,#fff,#fff 50%,transparent 0);background:linear-gradient(45deg,#fff,#fff 50%,transparent 0)}.aui-popup-top-left .aui-popup-arrow,.aui-popup-top-right .aui-popup-arrow,.aui-popup-top .aui-popup-arrow{top:.2rem;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.aui-popup-top .aui-popup-arrow{left:50%;margin-left:-.25rem;margin-top:-.4rem}.aui-popup-top-left .aui-popup-arrow{left:.25rem;margin-top:-.4rem}.aui-popup-top-right .aui-popup-arrow{right:.25rem;margin-top:-.4rem}.aui-popup-bottom,.aui-popup-bottom-left,.aui-popup-bottom-right{bottom:.45rem}.aui-popup-bottom{left:50%;margin-left:-3.5rem}.aui-popup-bottom-left{left:.45rem}.aui-popup-bottom-right{right:.45rem}.aui-popup-bottom-left .aui-popup-arrow,.aui-popup-bottom-right .aui-popup-arrow,.aui-popup-bottom .aui-popup-arrow{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);bottom:.2rem}.aui-popup-bottom .aui-popup-arrow{left:50%;margin-left:-.25rem;margin-bottom:-.4rem}.aui-popup-bottom-left .aui-popup-arrow{left:.25rem;margin-bottom:-.4rem}.aui-popup-bottom-right .aui-popup-arrow{right:.25rem;margin-bottom:-.4rem}.aui-popup .aui-list{background:transparent}.aui-popup-content .aui-list img{display:block;width:1rem}.aui-actionsheet{width:100%;position:fixed;bottom:0;left:0;padding:0 .5rem;z-index:999;opacity:0;-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.aui-actionsheet-btn{background-color:#fff;border-radius:6px;text-align:center;margin-bottom:.5rem}.aui-actionsheet-title{font-size:.6rem;color:#999;line-height:1.8rem}.aui-actionsheet-btn-item{height:2.2rem;line-height:2.2rem;color:#0075f0}.aui-sharebox{width:100%;position:fixed;bottom:0;left:0;z-index:999;background-color:#fff;opacity:0;-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.aui-sharebox .aui-row{padding:.5rem 0}.aui-sharebox img{display:block;width:50%;margin:0 auto}.aui-sharebox.aui-grid [class*=aui-col-]{padding:.5rem 0}.aui-sharebox.aui-grid .aui-grid-label{font-size:.6rem;color:#757575}.aui-sharebox-close-btn{width:100%;height:2.2rem;line-height:2.2rem;color:#757575;text-align:center;font-size:.7rem}.aui-collapse-header.aui-active,.aui-collapse .aui-list-item:active{background:#ececec}.aui-collapse-content{display:none}.aui-collapse-content .aui-list-item:last-child{border-bottom:0}@media screen and (-webkit-min-device-pixel-ratio:1.5){.aui-collapse-content .aui-list-item:last-child{background-position:bottom}.aui-list.aui-collapse.aui-list-noborder,.aui-list.aui-collapse.aui-list-noborder .aui-collapse-content:last-child .aui-list-item:last-child{border:none;background-size:100% 1px;background-repeat:no-repeat;background-position:0 bottom;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0)}.aui-list.aui-collapse.aui-list-noborder,.aui-list.aui-collapse.aui-list-noborder .aui-collapse-content .aui-list-item:last-child,.aui-list.aui-collapse.aui-list-noborder .aui-collapse-item:last-child .aui-list-item.aui-collapse-header,.aui-list.aui-collapse.aui-list-noborder .aui-collapse-item:last-child .aui-list-item:last-child{border:none;background-size:100% 0;background:none}}.aui-collapse-header.aui-active .aui-collapse-arrow{display:block;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.aui-chat{width:100%;padding:.5rem}.aui-chat .aui-chat-item{position:relative;width:100%;margin-bottom:15px;overflow:hidden;display:block}.aui-chat .aui-chat-header{width:100%;text-align:center;margin-bottom:.75rem;font-size:.6rem;color:#757575}.aui-chat .aui-chat-left{float:left}.aui-chat .aui-chat-right{float:right}.aui-chat .aui-chat-media{display:inline-block;max-width:2rem}.aui-chat .aui-chat-media img{width:100%;border-radius:50%}.aui-chat .aui-chat-inner{position:relative;overflow:hidden;display:inherit}.aui-chat .aui-chat-arrow{content:\"\";position:absolute;width:.6rem;height:.6rem;top:.2rem;-webkit-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-color:transparent}.aui-chat .aui-chat-left .aui-chat-arrow{background:-webkit-linear-gradient(45deg,#b3e5fc,#b3e5fc 50%,transparent 0);background:linear-gradient(45deg,#b3e5fc,#b3e5fc 50%,transparent 0);-webkit-transform:rotate(45deg);transform:rotate(45deg);left:-.25rem}.aui-chat .aui-chat-right .aui-chat-arrow{background:-webkit-linear-gradient(45deg,#fff,#fff 50%,transparent 0);background:linear-gradient(45deg,#fff,#fff 50%,transparent 0);-webkit-transform:rotate(-135deg);transform:rotate(-135deg);right:-.25rem}.aui-chat .aui-chat-content{color:#212121;font-size:.7rem;border-radius:.2rem;min-height:2rem;position:relative;padding:.5rem;max-width:80%;word-break:break-all;word-wrap:break-word}.aui-chat .aui-chat-content img{max-width:100%;display:block}.aui-chat .aui-chat-status{position:relative;width:2rem;height:2rem;line-height:2rem;text-align:center}.aui-chat .aui-chat-name{width:100%;position:relative;font-size:.6rem;color:#757575}.aui-chat .aui-chat-left .aui-chat-status{left:.5rem;float:left}.aui-chat .aui-chat-left .aui-chat-media{width:2rem;float:left}.aui-chat .aui-chat-left .aui-chat-inner{max-width:70%}.aui-chat .aui-chat-left .aui-chat-content{background-color:#fff;float:left;left:5px}.aui-chat .aui-chat-right .aui-chat-media{width:2rem;float:right}.aui-chat .aui-chat-right .aui-chat-inner{float:right;max-width:70%}.aui-chat .aui-chat-right .aui-chat-name{float:right;text-align:right}.aui-chat .aui-chat-right .aui-chat-content{background-color:#fe5d5d;right:5px;float:right;color:#fff}.aui-chat .aui-chat-right .aui-chat-status{float:right;right:.5rem}.aui-border-l{border-left:1px solid #ddd}.aui-border-r{border-right:1px solid #ddd}.aui-border-t{border-top:1px solid #ddd}.aui-border-b{border-bottom:1px solid #ddd}.aui-border{border:1px solid #ddd}@media screen and (-webkit-min-device-pixel-ratio:1.5){.aui-border-l{border:none;background:-webkit-linear-gradient(0deg,#ddd,#ddd 50%,transparent 0);background:linear-gradient(270deg,#ddd,#ddd 50%,transparent 0);background-size:1px 100%;background-repeat:no-repeat;background-position:0}.aui-border-r{border:none;background:-webkit-linear-gradient(0deg,#ddd,#ddd 50%,transparent 0);background:linear-gradient(270deg,#ddd,#ddd 50%,transparent 0);background-size:1px 100%;background-repeat:no-repeat;background-position:100%}.aui-border-t{background-position:top;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0)}.aui-border-b,.aui-border-t{border:none;background-size:100% 1px;background-repeat:no-repeat}.aui-border-b{background-position:bottom;background:linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0)}.aui-border{border:none;background:-webkit-linear-gradient(270deg,#ddd,#ddd 50%,transparent 0),-webkit-linear-gradient(180deg,#ddd,#ddd 50%,transparent 0),-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 0),-webkit-linear-gradient(0,#ddd,#ddd 50%,transparent 0);background:linear-gradient(180deg,#ddd,#ddd 50%,transparent 0),linear-gradient(270deg,#ddd,#ddd 50%,transparent 0),linear-gradient(0deg,#ddd,#ddd 50%,transparent 0),linear-gradient(90deg,#ddd,#ddd 50%,transparent 0);background-size:100% 1px,1px 100%,100% 1px,1px 100%;background-repeat:no-repeat;background-position:top,100% 0,bottom,0 0}}.aui-timeline{position:relative;padding:0;list-style:none}.aui-timeline:before{content:\"\";position:absolute;top:0;left:1.85rem;width:2px;height:100%;background:#ececec;z-index:0}.aui-timeline .aui-timeline-item{position:relative;margin-bottom:.75rem}.aui-timeline .aui-timeline-item-header{background-color:#ececec;padding:.2rem .5rem;margin:.75rem;text-align:center;display:inline-block;position:relative;z-index:1;font-size:.7rem}.aui-timeline .aui-timeline-item-label{width:2.5rem;font-size:.7em;left:.75rem}.aui-timeline .aui-timeline-item-label,.aui-timeline .aui-timeline-item-label-icon{height:1.5rem;line-height:1.5rem;background-color:#ececec;position:absolute;text-align:center;top:0}.aui-timeline .aui-timeline-item-label-icon{width:1.5rem;font-size:.7rem;border-radius:50%;left:1.15rem}.aui-timeline .aui-timeline-item-inner{margin-left:3.75rem;margin-right:.75rem;padding:0;position:relative}@keyframes rotate{0%{-webkit-transform:rotate(0deg) scale(1);transform:rotate(0deg) scale(1)}50%{-webkit-transform:rotate(180deg) scale(1);transform:rotate(180deg) scale(1)}to{-webkit-transform:rotate(1turn) scale(1);transform:rotate(1turn) scale(1)}}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0deg) scale(1);transform:rotate(0deg) scale(1)}50%{-webkit-transform:rotate(180deg) scale(1);transform:rotate(180deg) scale(1)}to{-webkit-transform:rotate(1turn) scale(1);transform:rotate(1turn) scale(1)}}@keyframes bounce{0%,to{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes bounce{0%,to{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes fadeIn{0%{opacity:.3}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:.3}to{opacity:1}}.aui-iconfont{position:relative;font-family:aui_iconfont!important;font-size:.7rem;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.aui-icon-menu:before{content:\"\\E6EB\"}.aui-icon-paper:before{content:\"\\E6EC\"}.aui-icon-info:before{content:\"\\E6ED\"}.aui-icon-question:before{content:\"\\E6EE\"}.aui-icon-left:before{content:\"\\E6F4\"}.aui-icon-right:before{content:\"\\E6F5\"}.aui-icon-top:before{content:\"\\E6F6\"}.aui-icon-down:before{content:\"\\E6F7\"}.aui-icon-share:before{content:\"\\E700\"}.aui-icon-comment:before{content:\"\\E701\"}.aui-icon-edit:before{content:\"\\E6D3\"}.aui-icon-trash:before{content:\"\\E6D4\"}.aui-icon-recovery:before{content:\"\\E6DC\"}.aui-icon-refresh:before{content:\"\\E6DD\"}.aui-icon-close:before{content:\"\\E6D8\"}.aui-icon-cart:before{content:\"\\E6DF\"}.aui-icon-star:before{content:\"\\E6E0\"}.aui-icon-plus:before{content:\"\\E6E3\"}.aui-icon-minus:before{content:\"\\E62D\"}.aui-icon-correct:before{content:\"\\E6E5\"}.aui-icon-search:before{content:\"\\E6E6\"}.aui-icon-gear:before{content:\"\\E6E8\"}.aui-icon-map:before{content:\"\\E6D2\"}.aui-icon-location:before{content:\"\\E6D1\"}.aui-icon-image:before{content:\"\\E6CE\"}.aui-icon-phone:before{content:\"\\E6C4\"}.aui-icon-camera:before{content:\"\\E6CD\"}.aui-icon-video:before{content:\"\\E6CC\"}.aui-icon-qq:before{content:\"\\E6CB\"}.aui-icon-wechat:before{content:\"\\E6C9\"}.aui-icon-weibo:before{content:\"\\E6C8\"}.aui-icon-note:before{content:\"\\E6C6\"}.aui-icon-mail:before{content:\"\\E6C5\"}.aui-icon-wechat-circle:before{content:\"\\E6CA\"}.aui-icon-home:before{content:\"\\E706\"}.aui-icon-forward:before{content:\"\\E6D9\"}.aui-icon-back:before{content:\"\\E6DA\"}.aui-icon-laud:before{content:\"\\E64B\"}.aui-icon-lock:before{content:\"\\E6EF\"}.aui-icon-unlock:before{content:\"\\E62F\"}.aui-icon-like:before{content:\"\\E62B\"}.aui-icon-my:before{content:\"\\E610\"}.aui-icon-more:before{content:\"\\E625\"}.aui-icon-mobile:before{content:\"\\E697\"}.aui-icon-calendar:before{content:\"\\E68A\"}.aui-icon-date:before{content:\"\\E68C\"}.aui-icon-display:before{content:\"\\E612\"}.aui-icon-hide:before{content:\"\\E624\"}.aui-icon-pencil:before{content:\"\\E615\"}.aui-icon-flag:before{content:\"\\E6F1\"}.aui-icon-cert:before{content:\"\\E704\"}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/choseHelp.6101c58.png";module.exports = __webpack_require__.p + "static/img/satisfiedListchose.b0afb9d.png";module.exports = __webpack_require__.p + "static/img/header_xg.99b1d22.png";module.exports = __webpack_require__.p + "static/img/voice.7fc232f.png";module.exports = __webpack_require__.p + "static/img/dashang.535b852.png";module.exports = __webpack_require__.p + "static/img/pingfen.c07ec8c.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(483);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2928ace5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1082);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2732)
  __webpack_require__(2734)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2928ace5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2928ace5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDealed_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2733);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("533433c0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports
exports.i(__webpack_require__(1616), "");

// module
exports.push([module.i, "", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2735);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("85388842", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{width:100%;height:100%}.mask,body.modal-open{position:fixed;width:100%}.mask{height:100%;background:rgba(0,0,0,.2);z-index:50}.item{width:50%;line-height:50px;text-align:center;float:left;border-top:1px solid #ccc}.rewardBox{width:100%;height:173px;background:#fff;position:absolute;bottom:0}.moneyList{width:100%;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;background:#f4f4f4}.moneyList li{width:33.33333%;text-align:center;border-radius:3px;padding-top:20px;padding-bottom:20px;-webkit-border-radius:3px;color:#ee4545;border-top:1px solid #eae5e5;border-right:1px solid #eae5e5}.moneyList .active{color:#fff;background:#ee4545}.send{float:right;position:relative;width:150px;height:35px;background:#fff;border-radius:5px;margin:0 auto}.voice-left{position:absolute;right:7px;height:20px;width:20px;top:50%;margin-top:-10px}.aui-chat .aui-chat-right .aui-chat-content{background:#377ee1}.aui-chat-left .aui-chat-content:after{-webkit-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-image:linear-gradient(45deg,#fff,#fff 50%,transparent 0);-webkit-transform:rotate(140deg);-ms-transform:rotate(140deg);transform:rotate(140deg);left:7px}.aui-chat-left .aui-chat-content:after,.aui-chat-right .aui-chat-content:after{content:\"\";position:absolute;width:10px;height:10px;top:-.2rem;background-color:transparent}.aui-chat-right .aui-chat-content:after{-webkit-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-image:linear-gradient(45deg,#377ee1,#377ee1 50%,transparent 0);-webkit-transform:rotate(-225deg);-ms-transform:rotate(-225deg);transform:rotate(-225deg);right:5px}.SatisfiedList li{padding:19px 15px;font-size:16px;color:#333;position:relative}.SatisfiedList li:first-child{border-bottom:1px solid #e4e4ec}.SatisfiedList .active{color:#ee4545}.sat-img{right:20px}.sat-img,.voice-right{width:20px;height:20px;position:absolute;top:50%;margin-top:-10px}.voice-right{left:7px;transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg)}.aui-chat .aui-chat-name{font-size:14px}.aui-chat .aui-chat-content{min-height:20px;padding:10px;position:relative}.mask1{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none}#imgshow2{position:absolute;width:100%;height:auto;top:50%;left:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}.term{color:#377ee1!important;text-decoration:underline}.que_item{width:100%;box-sizing:border-box;-webkit-box-sizing:border-box}.questionBox{background:#fff;margin-bottom:6px;border-radius:6px;-webkit-border-radius:6px;padding:0 2%}.questionBox .que_title{min-height:46px;width:100%;border-bottom:1px solid #f5f5f5;line-height:46px;color:#000;padding:8px 0;font-size:16px;display:table;box-sizing:border-box;-webkit-box-sizing:border-box}.questionBox .que_cont .verdict{font-family:PingFangSC-Regular;font-size:16px;color:#666;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.questionBox .que_title span{line-height:24px;display:table-cell;vertical-align:middle;font-size:16px}.questionBox .que_title span b{font-weight:400}.questionBox .que_title span i{font-size:14px;color:#377ee1;text-decoration:underline;padding-left:10px}.questionBox .que_cont{border-bottom:1px solid #ebebeb;padding:12px 0}.questionBox .que_cont li{min-height:32px;line-height:32px;display:table;color:#666;position:relative;overflow:hidden;padding:7px 0;box-sizing:border-box;-webkit-box-sizing:border-box;width:100%}.questionBox .que_cont li span.radioBox{width:12px;height:12px;margin-right:5px;background-image:url(" + escape(__webpack_require__(1617)) + ");background-repeat:no-repeat;background-position:0;background-size:12px 12px;float:left;position:relative;top:4px}.questionBox .que_cont li span.choseDes{line-height:22px;display:table-cell;font-size:16px;vertical-align:middle;float:left;max-width:85%}.questionBox .que_cont li span.helpIcon{width:28px;height:28px;background-image:url(" + escape(__webpack_require__(1618)) + ");background-repeat:no-repeat;background-position:100%;background-size:16px 16px;position:absolute;top:5px;right:0}.questionBox .que_cont li span.active{background-image:url(" + escape(__webpack_require__(839)) + ")}.questionBox .que_cont li span.desactive{color:#377ee1}.questionBox .que_ctrl{height:49px;line-height:49px;text-align:right}.que_ctrl span{display:inline;padding:5px 7px;font-size:14px;border:1px solid #ef4e4e;color:#ef4e4e;margin-right:11px;border-radius:2px;-webkit-border-radius:2px}.helpTitle{font-size:18px;color:#377ee1;height:49px;line-height:49px;text-align:center;background:#ececec;position:relative}.helpTitle span{width:50px;height:49px;background:url(" + escape(__webpack_require__(104)) + ") 50% no-repeat;position:absolute;top:0;right:0;background-size:16px 16px}.helpCont{padding:2%;box-sizing:border-box;-webkit-box-sizing:border-box;min-height:150px}.helpCont p{color:#333;min-height:20px;font-size:14px;line-height:20px;margin-bottom:5px}.helpCont .helpImgs{overflow:hidden}.helpCont .helpImgs img{width:95px;height:95px;float:left;margin-right:5px;margin-top:5px}.helpCont .helpUrl{line-height:20px;margin-top:5px;display:inline-block}.helpCont2{padding:2%;box-sizing:border-box;-webkit-box-sizing:border-box;min-height:150px}.helpCont2 img{max-width:100%}.helpCont2 video{width:100%;height:160px;background:#333}.helpCont2 table td{border:1px solid #999}.helpCont2 table{width:100%}.helpCont2 span{display:inline}.que_ctrl .disableBtn{border:none;background:#ccc;color:#fff;border:1px solid #ccc}.mint-msgbox-btns .mint-msgbox-btn{height:40px;line-height:40px;font-size:14px;border-radius:0;-webkit-border-radius:0}.mint-msgbox-confirm{color:#ee4545}.aui-chat{padding:2.5%}.aui-chat .xzt_time{text-align:center;margin-bottom:15px}.aui-chat .xzt_time span{height:23px;line-height:23px;display:inline-block;background:#000;opacity:.3;text-align:center;border-radius:100px;color:#f5f5f5;padding:0 10px;font-size:12px}.aui-chat .aui-chat-name{height:40px;margin-bottom:10px}.aui-chat .aui-chat-name img{width:40px;height:40px;display:block}.aui-chat .aui-chat-right .aui-chat-name .headerImg{width:40px;height:40px;float:right;margin-right:4px}.aui-chat .aui-chat-right .aui-chat-name .user{float:right;height:40px;margin-right:5px}.aui-chat .aui-chat-name .user p{height:20px;line-height:20px}.aui-chat .aui-chat-name .user p.userName{font-size:14px;color:#333}.aui-chat .aui-chat-name .user p.sendTime{font-size:12px;color:#666}.aui-chat .aui-chat-left .aui-chat-name .headerImg{width:40px;height:40px;float:left;margin-right:4px}.aui-chat .aui-chat-left .aui-chat-name .user{float:left;height:40px}.aui-chat .aui-chat-content{font-size:16px;padding:4%;min-height:36px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/satisfiedListnochose.e224380.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      objId: this.$route.query.objId || '',
      moneyList: [{
        text: '2元',
        active: false
      }, {
        text: '3元',
        active: false
      }, {
        text: '5元',
        active: false
      }, {
        text: '8元',
        active: false
      }, {
        text: '10元',
        active: false
      }, {
        text: '20元',
        active: false
      }],
      scoreList: [{
        text: '满意，完美解决了我的问题',
        active: false,
        index: 1
      }, {
        text: '不满意，未完全解决我的问题',
        active: false,
        index: 2
      }],
      userScore: '',
      showMoneyMask: false,
      showScoreMask: false,
      money: '',
      resultList: [],
      scoreResult: [],
      rewardsStatus: '',
      sectionHeight: 0,
      userScore1: '',
      choseIDs: [],
      questions: [],
      chosedatas: [],
      helpobj: null,
      helpImgs: [],
      showhelpMask: false,
      user: {},
      header_xg: __webpack_require__(1619),
      helpContHtml: '',
      helpcontMaxH: '',
      ModalHelper: null
    };
  },
  computed: {
    coquestions: function coquestions() {
      return this.questions;
    }
  },
  watch: {
    choseIDs: {
      handler: function handler(newval, oldval) {
        var that = this;
        if (newval.length > oldval.length) {
          that.chosedatas = [];
          for (var i = 0; i < newval.length; i++) {
            if (oldval[i] != newval[i]) {
              (function (i) {
                var index = newval[i]['index'];
                that._Util.post(that._Api.POST_CHOSEID, {
                  'autoReplyRefId': newval[i]['data']
                }, function (choseData) {
                  if (choseData) {
                    var obj = {};
                    obj['index'] = index;
                    obj['data'] = choseData;
                    that.chosedatas.push(obj);
                  }
                }, function () {}, that, true);
              })(i);
            }
          }
        }
        localStorage.setItem('chosedatas', JSON.stringify(that.chosedatas));
        that.questions = that.chosedatas || JSON.parse(localStorage.getItem('chosedatas'));
      },
      deep: true
    }
  },
  mounted: function mounted() {
    var that = this;
    that.getUserInfo();
    if (that._Util.isApp()) {
      // 判断是否显示提示
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          if (api.getPrefs({
            sync: true,
            key: 'toQue'
          }) == 1) {
            if (api.getPrefs({
              sync: true,
              key: 'scored'
            }) != 1) {
              setTimeout(function () {
                (0, _mintUi.Toast)({
                  message: '填写问卷后才能评分成功哦',
                  duration: 2500
                });
              }, 100);
            } else {
              that.userScore = '已评分';
              that.showScoreMask = false;
            }
            setTimeout(function () {
              api.setPrefs({
                key: 'toQue',
                value: 0
              });
              api.setPrefs({
                key: 'scored',
                value: 0
              });
            }, 100);
          }
        });
      }, 700);
    } else {
      if (localStorage.getItem('toQue') == 1) {
        if (localStorage.getItem('scored') != 1) {
          setTimeout(function () {
            (0, _mintUi.Toast)({
              message: '填写问卷后才能评分成功哦',
              duration: 2500
            });
          }, 1200);
        }
        setTimeout(function () {
          localStorage.setItem('toQue', 0);
          localStorage.setItem('scored', 0);
        }, 100);
      }
    }
    that.sectionHeight = document.body.offsetHeight - 50;
    that.helpcontMaxH = document.body.offsetHeight * 0.9 - 49 + 'px';
    document.title = '在线问答';
    /* 获取在线问答聊天列表*/
    that._Util.post(that._Api.POST_GET_GETChATLIST, {
      questionId: that.objId
    }, function (data) {
      that.resultList = data;
      (0, _mintUi.Toast)({
        message: '数据加载中...',
        duration: 1000
      });
      var choseids = [];
      for (var i = 0; i < data.length; i++) {
        if (data[i]['autoReplyRefId']) {
          var obj = {};
          obj.index = i;
          obj.data = data[i]['autoReplyRefId'];
          choseids.push(obj);
        }
      }
      that.choseIDs = choseids;
      (0, _jquery.default)('body').delegate('.imgC, .helpCont img, .helpCont2 img', 'click', function () {
        var src = (0, _jquery.default)(this).attr('src');
        if (src.indexOf('?imageView2') != -1) {
          src = src.replace('?imageView2/1/w/150/h/150', '');
        }
        that.$store.commit('openImgView', {
          imgUrl: src,
          imgList: [],
          activeIndex: 0
        });
      });
    }, function () {}, that);
    that._Util.post(that._Api.POST_GET_GETDETAIL, {
      questionId: that.objId
    }, function (data) {
      that.scoreResult = data;
      that.rewardsStatus = that.scoreResult.rewardsStatus ? '已打赏' : '我要打赏';
      that.userScore = that.scoreResult.userScore ? '已评分' : '我要评分';
    }, function () {}, that);

    /* 防止滚动穿透*/
    that.ModalHelper = function (bodyCls) {
      var scrollTop;
      return {
        afterOpen: function afterOpen() {
          scrollTop = document.scrollingElement ? document.scrollingElement.scrollTop : document.body.scrollTop;
          document.body.classList.add(bodyCls);
          document.body.style.top = -scrollTop + 'px';
        },
        beforeClose: function beforeClose() {
          document.body.classList.remove(bodyCls);
          // scrollTop lost after set position:fixed, restore it back.
          if (document.scrollingElement) {
            document.scrollingElement.scrollTop = scrollTop;
          } else {
            document.body.scrollTop = scrollTop;
          }
        }
      };
    }('modal-open');
  },
  methods: {
    /** 打开名词*/openTerm: function openTerm(item) {
      if (item.termId) {
        this.termHelp(item.termId);
      } else {
        return;
      }
    },
    /** 获取后台传过来的换行字符串 */strTrim: function strTrim(str) {
      return str.replace(/\n/g, '<br>');
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.user = data;
      }, function () {}, that);
    },
    matchEmotion: function matchEmotion(v) {
      var that = this;
      if (!v.content.text) {
        return '';
      }
      var matchArr = v.content.text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return v.content.text.replace(/\n/g, '<br>');
      }

      //	                var newArr = Util.unique(matchArr);
      //					console.log(newArr.length);

      var str = v.content.text.replace(/\n/g, '<br>');
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).name;
        str = str.replace(matchArr[i], str1 ? '<img src="../../assets/images/uiChatBox/emotion/' + str1 + '.png" width=30 height=30>' : matchArr[i]);
      }
      return str;
    },
    dateFormat: function dateFormat(timeSpan) {
      return this._Util.dateFormat(timeSpan, 'yyyy.MM.dd hh:mm:ss');
    },
    openVc: function openVc(url) {
      if (this._Util.isApp()) {
        api.download({
          url: url,
          // savePath: 'fs://',
          report: true,
          cache: true,
          allowResume: true
        }, function (ret, err) {
          if (ret.state == 1) {
            api.startPlay({
              path: ret.savePath
            }, function (ret, err) {});
          }
        });
      }
    },
    closeMask: function closeMask() {
      this.showScoreMask = false;
      this.showMoneyMask = false;
    },
    openImg: function openImg(url) {},
    // 评分提交
    confirmToOperation: function confirmToOperation(index) {
      var that = this;
      if (that.userScore) {
        if (that.userScore1 == 2) {
          // 不满意 正式：86cbab4a  测试：24124d37
          var url = that._Api.HOSTRESOURCEPATH + '/v2/questionnaire/index?no=86cbab4a&fromLink=questionDealed&questionId=' + that.objId;
          if (this._Util.isApp()) {
            api.setPrefs({
              key: 'toQue',
              value: 1
            });
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'questionnaire',
                url: url
              }
            });
          } else {
            localStorage.setItem('toQue', 1);
            window.open(url);
          }
          return;
        }
        that._Util.post(that._Api.POST_GET_SCORE, {
          questionId: that.objId,
          userScore: that.userScore1
        }, function (data) {
          that.userScore = '已评分';
          that.showScoreMask = false;
        }, function () {}, that);
      }
    },
    // 选择评分或者打赏选项
    choseOption: function choseOption(index, item, List) {
      var that = this;
      var _iterator = _createForOfIteratorHelper(List),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          v.active = false;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      item.active = true;
      if (index == 1) {
        // 打赏
        that.money = item.text;
        that._Util.post(that._Api.POST_GET_DASHANG, {
          questionId: that.objId,
          money: that.money
        }, function (data) {
          that._Util.wxPay(data.jsApiParameters, function () {
            that.rewardsStatus = '已打赏';
            that.showMoneyMask = false;
          });
        }, function () {}, that);
      } else {
        // 评分
        that.userScore1 = item.text == '满意，完美解决了我的问题' ? 1 : 2;
        that.confirmToOperation(2);
      }
    },
    rewards: function rewards(index) {
      var that = this;
      if (index == 1) {
        if (that.rewardsStatus === '已打赏') {
          return;
        } else {
          that.showMoneyMask = true;
        }
      } else {
        if (that.userScore === '已评分') {
          return;
        } else {
          that.showScoreMask = true;
        }
      }
    },
    /* 名词解释*/termHelp: function termHelp(id) {
      var that = this;
      that.helpContHtml = '';
      that.helpobj = null;
      that._Util.post(that._Api.TREMDETAIL, {
        id: id
      }, function (data) {
        if (data) {
          that.ModalHelper.afterOpen();
          that.showhelpMask = true;
          that.helpContHtml = data.content;
        }
      }, function () {}, that);
    },
    help: function help(val) {
      var that = this;
      that.helpContHtml = '';
      that.helpobj = null;
      /* 普通选择题*/
      if (val.type == 1) {
        if (val.faultCodeTerm.content) {
          that.ModalHelper.afterOpen();
          that.showhelpMask = true;
          that.helpContHtml = val.faultCodeTerm.content;
        } else {
          that._Util.post(that._Api.POST_QUESTION_HELP, {
            helpId: val.helpId
          }, function (data) {
            if (data) {
              that.showhelpMask = true;
              that.ModalHelper.afterOpen();
              that.helpobj = data;
              if (data.image) {
                that.helpImgs = data.image.split(',');
              }
            }
          }, function () {}, that);
        }
      } else {
        // 结论
        that.ModalHelper.afterOpen();
        that.showhelpMask = true;
        that.helpContHtml = val.content;
      }
    },
    closeHelp: function closeHelp() {
      this.showhelpMask = false;
      this.ModalHelper.beforeClose();
    },
    choseHelp: function choseHelp(des, url, img) {
      this.helpobj = null;
      this.helpContHtml = '';
      var obj = {
        text: des,
        url: url,
        image: img
      };
      this.showhelpMask = true;
      this.helpobj = obj;
      this.ModalHelper.afterOpen();
      if (obj.image) {
        this.helpImgs = obj.image.split(',');
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"100%"}},[_vm._m(0),_vm._v(" "),(_vm.showMoneyMask)?_c('div',{staticClass:"mask",on:{"click":function($event){return _vm.closeMask()}}},[_c('div',{staticClass:"rewardBox"},[_c('ul',{staticClass:"moneyList"},_vm._l((_vm.moneyList),function(v,i){return _c('li',{key:i,class:{active: v.active},on:{"click":function($event){$event.stopPropagation();return _vm.choseOption(1,v,_vm.moneyList)}}},[_vm._v(_vm._s(v.text))])}),0),_vm._v(" "),_c('div',{staticStyle:{"font-size":"18px","text-align":"center","height":"49px","line-height":"49px","color":"#666"}},[_vm._v("取消")])])]):_vm._e(),_vm._v(" "),(_vm.showScoreMask)?_c('div',{staticClass:"mask",on:{"click":function($event){return _vm.closeMask()}}},[_c('div',{staticClass:"rewardBox",staticStyle:{"height":"119px"}},[_c('ul',{staticClass:"SatisfiedList"},_vm._l((_vm.scoreList),function(v,i){return _c('li',{key:i,class:{active: v.active},on:{"click":function($event){$event.stopPropagation();return _vm.choseOption(2,v,_vm.scoreList)}}},[_c('div',[_vm._v(_vm._s(v.text))]),_vm._v(" "),(v.active)?_c('img',{staticClass:"sat-img",attrs:{"src":__webpack_require__(1435)}}):_c('img',{staticClass:"sat-img",attrs:{"src":__webpack_require__(1617)}})])}),0)])]):_vm._e(),_vm._v(" "),(_vm.showhelpMask)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"rewardBox",staticStyle:{"background":"white","position":"absolute","bottom":"0","width":"100%","height":"auto","max-height":"90%"}},[_c('div',{staticClass:"helpTitle"},[_vm._v("帮助文档"),_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.closeHelp()}}})]),_vm._v(" "),(_vm.helpobj)?_c('div',{staticClass:"helpCont",staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch"},style:({'max-height': _vm.helpcontMaxH})},[(_vm.helpobj.text)?_c('p',[_vm._v(_vm._s(_vm.helpobj.text))]):_vm._e(),_vm._v(" "),(_vm.helpobj.image)?_c('div',{staticClass:"helpImgs"},_vm._l((_vm.helpImgs),function(img,index){return _c('img',{key:index,staticClass:"imgC",attrs:{"src":'http://static2.kaxiuyun.com/'+img,"alt":"帮助文档图片"}})}),0):_vm._e(),_vm._v(" "),(_vm.helpobj.url)?_c('a',{staticClass:"helpUrl",attrs:{"href":_vm.helpobj.url}},[_vm._v("查看资料")]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.helpContHtml)?_c('div',{ref:"helpCont",staticClass:"helpCont2",staticStyle:{"overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},style:({'max-height': _vm.helpcontMaxH})},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.helpContHtml)}})]):_vm._e()])]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch"},style:({height: _vm.sectionHeight +'px'})},[_c('section',{staticClass:"aui-chat",staticStyle:{"overflow":"hidden"}},_vm._l((_vm.resultList),function(v,index1){return _c('div',{key:index1,staticClass:"aui-chat-item",class:{'aui-chat-right': v.senderUserId.toString().substr(0,4) != '-200','aui-chat-left': v.senderUserId.toString().substr(0,4) == '-200'},style:({'overflow':!v.autoReplyRefId ? 'hidden' :'auto' })},[_c('div',{staticClass:"aui-chat-inner",style:({'max-width' : !v.autoReplyRefId ? '70%': '100%' ,'overflow':!v.autoReplyRefId ? 'hidden' :'auto' })},[( v.content.extra.objectName != 'RC:CheckMsg' )?_c('div',{staticClass:"aui-chat-name"},[_c('div',{staticClass:"headerImg"},[_c('img',{attrs:{"src":v.senderUserId.toString().substr(0,4) != '-200'? _vm.user.headImgUrl : _vm.header_xg}})]),_vm._v(" "),_c('div',{staticClass:"user"},[_c('p',{staticClass:"userName"},[_vm._v(_vm._s(v.senderUserId.toString().substr(0,4) != '-200'?(_vm.user.uname||_vm.user.nickname||'我'):'小轨'))]),_vm._v(" "),_c('p',{staticClass:"sendTime",domProps:{"innerHTML":_vm._s(_vm.dateFormat(v.sentTime))}})])]):_c('div',{staticClass:"xzt_time"},[_c('span',{domProps:{"innerHTML":_vm._s(_vm.dateFormat(v.sentTime))}})]),_vm._v(" "),(v.content.extra.objectName == 'RC:TxtMsg' && !v.autoReplyRefId)?_c('div',{staticClass:"aui-chat-content",class:{'term' : v.termId},domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v))},on:{"click":function($event){return _vm.openTerm(v)}}}):_vm._e(),_vm._v(" "),( v.content.extra.objectName == 'RC:CheckMsg'&& v.autoReplyRefId)?_c('div',{staticClass:"que_item"},_vm._l((_vm.coquestions),function(val,index2){return (index1 == val.index)?_c('div',{key:index2,staticClass:"questionBox"},[(val.data.type == 1)?_c('div',{staticClass:"que_title"},[_c('span',[_c('b',{domProps:{"innerHTML":_vm._s(_vm.strTrim(val.data.title))}}),(val.data.helpId || val.data.faultCodeTerm.content)?_c('i',{on:{"click":function($event){$event.stopPropagation();return _vm.help(val.data)}}},[_vm._v("查看详情")]):_vm._e()])]):_vm._e(),_vm._v(" "),(val.data.type == 2)?_c('div',{staticClass:"que_title"},[_c('span',[_vm._v("问题结论"),(val.data.content)?_c('i',{on:{"click":function($event){$event.stopPropagation();return _vm.help(val.data)}}},[_vm._v("查看详情")]):_vm._e()])]):_vm._e(),_vm._v(" "),(val.data.type == 1)?_c('div',{staticClass:"que_cont"},[_c('ul',_vm._l((val.data.qaCodeIdList),function(v1,index){return _c('li',{key:index},[_c('span',{staticClass:"radioBox",class:{active: (v1.active || v1.id===v.pcodeId)}}),_vm._v(" "),_c('span',{staticClass:"choseDes",class:{desactive: (v1.active || v1.id===v.pcodeId)}},[_vm._v(_vm._s(v1.name || v1.description))]),_vm._v(" "),(v1.description || v1.helpUrl || v1.helpImage)?_c('span',{staticClass:"helpIcon",on:{"click":function($event){$event.stopPropagation();return _vm.choseHelp(v1.description,v1.helpUrl,v1.helpImage)}}}):_vm._e()])}),0)]):_vm._e(),_vm._v(" "),(val.data.type == 2)?_c('div',{staticClass:"que_cont"},[_c('div',{staticClass:"verdict",domProps:{"innerHTML":_vm._s(_vm.strTrim(val.data.title))}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"que_ctrl"})]):_vm._e()}),0):_vm._e(),_vm._v(" "),(v.content.extra.objectName == 'RC:ImgMsg')?_c('div',{staticClass:"aui-chat-content"},[_c('img',{staticClass:"imgC",attrs:{"src":v.content.text+'?imageView2/1/w/150/h/150'},on:{"click":function($event){return _vm.openImg(v.content.text)}}})]):(v.content.extra.objectName == 'RC:VcMsg')?_c('div',{on:{"click":function($event){return _vm.openVc(v.content.text)}}},[_c('div',{staticClass:"send"},[_c('img',{class:{'voice-right': v.senderUserId.toString().substr(0,4) !='-200', 'voice-left': v.senderUserId.toString().substr(0,4) =='-200'},attrs:{"src":__webpack_require__(1620)}})])]):_vm._e()])])}),0)]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","height":"50px"}},[_c('div',{staticClass:"item",on:{"click":function($event){$event.stopPropagation();return _vm.rewards(1)}}},[_c('img',{staticStyle:{"width":"18px","height":"18px","display":"inline-block","margin-top":"15px"},attrs:{"src":__webpack_require__(1621)}}),_vm._v("\n      "+_vm._s(_vm.rewardsStatus))]),_vm._v(" "),_c('div',{staticClass:"item",staticStyle:{"width":"49%","border-left":"1px solid #ccc"},on:{"click":function($event){$event.stopPropagation();return _vm.rewards(2)}}},[_c('img',{staticStyle:{"width":"18px","height":"18px","display":"inline-block","margin-top":"15px"},attrs:{"src":__webpack_require__(1622)}}),_vm._v("\n      "+_vm._s(_vm.userScore))])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask1"},[_c('img',{attrs:{"id":"imgshow2"}})])}]
module.exports = __webpack_require__.p + "static/img/satisfiedListchose.756c807.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(484);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6fc796da_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1083);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2736)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6fc796da_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6fc796da_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_noDealed_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2737);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4487df94", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports
exports.i(__webpack_require__(1616), "");

// module
exports.push([module.i, "[v-cloak]{display:none!important}body.modal-open{position:fixed;width:100%}#appcon a{color:#38f;text-decoration:underline}.leaveMessage{overflow:hidden;position:relative;box-sizing:border-box;-webkit-box-sizing:border-box;padding:2% 3% 0}.leaveMessage span{width:15%;float:left}.mask{width:100%;height:100%;background:rgba(0,0,0,.5);position:fixed;z-index:50}.leaveMessage>input{width:85%;float:left;font-size:14px;background:#fff;border-bottom:none;padding:0 5px;height:36px;border:1px solid #f5f5f5}.leaveMessage .subbtn{width:47px;height:30px;position:absolute;background:#fff;border:1px solid #fe5d5d;line-height:30px;text-align:center;color:#fe5d5d;border-radius:4px;-webkit-border-radius:4px;top:10px;right:5px}.a-upload{width:10%;float:right;margin-right:2%;position:relative;cursor:pointer;overflow:hidden;top:5px}.uploadimg{display:inline-block;width:26px;height:23px;pointer-events:none}.putPhoto{width:35px;height:35px;position:absolute;left:0;top:0;opacity:0}.option{width:100%;height:50px;line-height:50px}.option .item{width:33%;text-align:center;height:100%;float:left;box-sizing:border-box;-webkit-box-sizing:border-box}.option span{display:inline-block;width:18px;height:100%;margin-right:5px;background-repeat:no-repeat;background-position:0;background-size:18px 18px;vertical-align:bottom}.option .itembg1{background-image:url(" + escape(__webpack_require__(2738)) + ")}.option .itembg2{background-image:url(" + escape(__webpack_require__(1621)) + ")}.option .itembg3{background-image:url(" + escape(__webpack_require__(1622)) + ")}.rewardBox .cancle{height:49px;line-height:49px;font-size:36px;color:#666;text-align:center;font-size:18px}.moneyList{width:100%;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.moneyList li{width:33.3%;text-align:center;border-right:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4;height:74px;line-height:74px;background:#f4f4f4;color:#ee4545}.moneyList li:nth-of-type(3),.moneyList li:nth-of-type(6){border-right:0}.moneyList li:nth-of-type(4),.moneyList li:nth-of-type(5),.moneyList li:nth-of-type(6){border-bottom:0}.scoreList li{height:60px;padding-left:5%;box-sizing:border-box;-webkit-box-sizing:border-box;color:#ee4545;border-top:1px solid #d4d4d4;line-height:60px;position:relative}.scoreList li .sat-img{width:20px;height:20px;position:absolute;right:20px;top:50%;margin-top:-10px;pointer-events:none}.moneyList .active{color:#fff;background:#b81c25}.isred{color:#8c0c29}.mask1{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none;top:0}.voice-right{position:absolute;left:7px;height:20px;width:20px;top:50%;margin-top:-10px;transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg)}.term{color:#377ee1!important;text-decoration:underline}#appcon .aui-chat .aui-chat-right .aui-chat-content{background:#377ee1}.aui-chat-left .aui-chat-content:after{-webkit-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-image:linear-gradient(45deg,#fff,#fff 50%,transparent 0);-webkit-transform:rotate(140deg);-ms-transform:rotate(140deg);transform:rotate(140deg);left:7px}#appcon .aui-chat-right .aui-chat-content:after,.aui-chat-left .aui-chat-content:after{content:\"\";position:absolute;width:10px;height:10px;top:-.2rem;background-color:transparent}#appcon .aui-chat-right .aui-chat-content:after{-webkit-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-image:linear-gradient(45deg,#377ee1,#377ee1 50%,transparent 0);-webkit-transform:rotate(-225deg);-ms-transform:rotate(-225deg);transform:rotate(-225deg);right:5px}#bottomBox{position:fixed;bottom:0;width:100%;background:#fff}#bottomBox .imgBox{width:100%;height:149px;padding:9px 2% 3%;box-sizing:border-box;-webkit-box-sizing:border-box;overflow:hidden}#bottomBox .imgBox .imglist{width:90px;height:130px;margin-right:10px;position:relative;float:left}#bottomBox .imgBox .imglist .closeImg{position:absolute;width:16px;height:16px;border-radius:50%;-webkit-border-radius:50%;top:-8px;right:-8px;background-image:url(" + escape(__webpack_require__(1429)) + ");background-repeat:no-repeat;background-position:0;background-size:16px 16px}#bottomBox .imgBox .imglist img{width:100%;height:100%;pointer-events:none}.addImg{background:#f5f5f5;border:1px solid #cbcbcb;width:88px;height:128px;background-image:url(" + escape(__webpack_require__(266)) + ");background-repeat:no-repeat;background-position:50%;background-size:45px 45px;float:left;margin-top:3px}#container2 .moxie-shim-html5{width:90px!important;height:130px!important}.que_item{width:100%;box-sizing:border-box;-webkit-box-sizing:border-box}.questionBox{background:#fff;margin-bottom:6px;border-radius:6px;-webkit-border-radius:6px;padding:0 3%}.questionBox .que_title{min-height:46px;width:100%;border-bottom:1px solid #f5f5f5;line-height:46px;color:#000;padding:8px 0;font-size:16px;display:table;box-sizing:border-box;-webkit-box-sizing:border-box}.questionBox .que_title span{line-height:24px;display:table-cell;vertical-align:middle;font-size:16px}.questionBox .que_title span b{font-weight:400}.questionBox .que_title span i{font-size:14px;color:#377ee1;text-decoration:underline;padding-left:10px}.questionBox .que_cont{padding:12px 0}.questionBox .que_cont .newVideo{width:100%;height:7rem;margin-bottom:8px;border-radius:2px;-webkit-border-radius:2px;overflow:hidden;background:#333}.questionBox .que_cont .newVideo video{object-fit:contain;width:100%;height:100%;background:#333;object-fit:fill}.questionBox .que_cont .verdict{font-family:PingFangSC-Regular;font-size:16px;color:#666;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.questionBox .que_cont li{min-height:32px;line-height:32px;display:table;color:#666;position:relative;overflow:hidden;padding:7px 0;box-sizing:border-box;-webkit-box-sizing:border-box;width:100%}.questionBox .que_cont li span.radioBox{width:16px;height:16px;margin-right:5px;background-image:url(" + escape(__webpack_require__(1623)) + ");background-repeat:no-repeat;background-position:0;background-size:16px 16px;float:left;position:relative;top:4px}.questionBox .que_cont li span.choseDes{line-height:22px;display:table-cell;font-size:16px;vertical-align:middle;float:left;max-width:82%;min-width:50%}.questionBox .que_cont li span.helpIcon{width:28px;height:28px;background-image:url(" + escape(__webpack_require__(1618)) + ");background-repeat:no-repeat;background-position:11px;background-size:16px 16px;position:absolute;top:5px;right:0}.questionBox .que_cont li span.active{background-image:url(" + escape(__webpack_require__(839)) + ")}.questionBox .que_cont li span.desactive{color:#377ee1}.questionBox .que_ctrl{height:49px;line-height:49px;text-align:right}.que_ctrl span{display:inline;padding:5px 10px;font-size:14px;border:1px solid #377ee1;color:#377ee1;margin-right:11px;border-radius:2px;-webkit-border-radius:2px}.helpTitle{font-size:18px;color:#377ee1;height:49px;line-height:49px;text-align:center;background:#ececec;position:relative}.helpTitle span{width:50px;height:49px;background:url(" + escape(__webpack_require__(104)) + ") 50% no-repeat;position:absolute;top:0;right:0;background-size:16px 16px}.helpCont2{padding:2%;box-sizing:border-box;-webkit-box-sizing:border-box;min-height:150px;max-height:480px}.helpCont2 img{max-width:100%}.helpCont2 video{width:100%;height:160px;background:#333}.helpCont2 table td{border:1px solid #999}.helpCont2 table{width:100%}.helpCont2 span{display:inline}.helpCont{padding:2%;box-sizing:border-box;-webkit-box-sizing:border-box;min-height:150px;max-height:480px}.helpCont p{color:#333;min-height:20px;font-size:14px;line-height:20px;margin-bottom:5px}.helpCont .helpImgs{overflow:hidden}.helpCont .helpImgs img{width:95px;height:95px;float:left;margin-right:5px;margin-top:5px}.helpCont .helpUrl{line-height:20px;margin-top:5px;display:inline-block}.que_ctrl .disableBtn{border:none;background:#ccc;color:#fff;border:1px solid #ccc}.mint-msgbox-btns .mint-msgbox-btn{height:49px;line-height:49px;font-size:14px;border-radius:0;-webkit-border-radius:0}.mint-msgbox-confirm{color:#377ee1}.aui-chat{padding:2.5%}.aui-chat .xzt_time{text-align:center;margin-bottom:15px}.aui-chat .xzt_time span{height:23px;line-height:23px;display:inline-block;background:#000;opacity:.3;text-align:center;border-radius:100px;color:#f5f5f5;padding:0 10px;font-size:12px}.aui-chat .aui-chat-name{height:40px;margin-bottom:10px}.aui-chat .aui-chat-name img{width:40px;height:40px;display:block}.aui-chat .aui-chat-right .aui-chat-name .headerImg{width:40px;height:40px;float:right;margin-right:4px}.aui-chat .aui-chat-right .aui-chat-name .user{float:right;height:40px;margin-right:5px}.aui-chat .aui-chat-name .user p{height:20px;line-height:20px}.aui-chat .aui-chat-name .user p.userName{font-size:14px;color:#333}.aui-chat .aui-chat-name .user p.sendTime{font-size:12px;color:#666}.aui-chat .aui-chat-left .aui-chat-name .headerImg{width:40px;height:40px;float:left;margin-right:4px}.headerImg img{pointer-events:none}.aui-chat .aui-chat-left .aui-chat-name .user{float:left;height:40px}.aui-chat .aui-chat-content{font-size:16px;padding:4%;min-height:36px}.imgmask{position:absolute;top:3px;right:9px;width:40px;height:40px;border:1px solid transparent}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/closeonline.768dc95.png";module.exports = __webpack_require__.p + "static/img/satisfiedListnochose.e224380.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = _interopRequireDefault(__webpack_require__(22));
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      ios: '',
      objId: this.$route.query.objId,
      resultList: [],
      closeMask: false,
      leaveMessage: '',
      imgSrc: [],
      bucketUrl: '',
      token: '',
      showMoneyMask: false,
      showScoreMask: false,
      showcloseMask: false,
      showhelpMask: false,
      userScore1: '',
      userScore: '',
      rewardsStatus: '',
      scoreResult: [],
      moneyList: [{
        text: '2元',
        active: false
      }, {
        text: '3元',
        active: false
      }, {
        text: '5元',
        active: false
      }, {
        text: '8元',
        active: false
      }, {
        text: '10元',
        active: false
      }, {
        text: '20元',
        active: false
      }],
      scoreList: [{
        text: '满意，完美解决了我的问题',
        active: false,
        index: 1
      }, {
        text: '不满意，未完全解决问题',
        active: false,
        index: 2
      }],
      money: '',
      sectionHeight: 0,
      choseIDs: [],
      questions: [],
      picked: '',
      helpobj: null,
      inputIsOpen: true,
      chosedatas: [],
      helpImgs: [],
      user: {},
      header_xg: __webpack_require__(1619),
      defaultuser: __webpack_require__(270),
      helpContHtml: '',
      ModalHelper: null,
      timer: null,
      temparr: [],
      showVideo: true,
      helpcontMaxH: '' // 帮助文档最大高度
    };
  },
  computed: {
    coquestions: function coquestions() {
      return this.questions;
    },
    placeholderVal: function placeholderVal() {
      return this.inputIsOpen ? '点击进行恢复或补充信息，工程师会立刻看见的' : '请先将问题回答完毕';
    }
  },
  watch: {
    choseIDs: {
      handler: function handler(newval, oldval) {
        var that = this;
        if (newval.length > oldval.length) {
          that.chosedatas = [];
          for (var i = 0; i < newval.length; i++) {
            // if (oldval[i] != newval[i]) {
            (function (i) {
              var index = newval[i]['index'];
              that._Util.post(that._Api.POST_CHOSEID, {
                'autoReplyRefId': newval[i]['data']
              }, function (choseData) {
                if (choseData) {
                  var obj = {};
                  obj['index'] = index;
                  obj['data'] = choseData;
                  that.chosedatas.push(obj);
                }
              }, function () {}, that, true);
            })(i);
            // }
          }
          var timer2 = setInterval(function () {
            console.log(that.chosedatas.length + '---' + newval.length);
            if (that.chosedatas.length == newval.length) {
              setTimeout(function () {
                that.$nextTick(function () {
                  document.getElementsByTagName('body')[0].scrollTop = document.getElementById('appcon').scrollHeight;
                });
              }, 300);
              clearInterval(timer2);
              localStorage.setItem('chosedatas', JSON.stringify(that.chosedatas));
              that.questions = that.chosedatas || JSON.parse(localStorage.getItem('chosedatas'));
            }
          }, 200);
        }
      },
      deep: true
    },
    resultList: {
      handler: function handler(newval, oldval) {
        var that = this;
        if (newval.length > oldval.length) {
          setTimeout(function () {
            that.$nextTick(function () {
              document.getElementsByTagName('body')[0].scrollTop = document.getElementById('appcon').scrollHeight;
            });
          }, 500);
        }
      },
      deep: true
    },
    showhelpMask: function showhelpMask(nval) {
      // 监控帮助遮罩层的显示与隐藏来隐藏视频标签
      if (!this._Util.isIOS) {
        if (nval) {
          (0, _jquery.default)('.newVideo video').hide();
        } else {
          (0, _jquery.default)('.newVideo video').show();
        }
      }
    },
    showVideo: function showVideo(nval) {
      // 重答或者无法回答弹窗出现，隐藏视频（安卓web端）
      if (!this._Util.isIOS) {
        if (!nval) {
          (0, _jquery.default)('.newVideo video').hide();
        } else {
          (0, _jquery.default)('.newVideo video').show();
        }
      }
    } // showhelpMask(nval,oval){
    //     if(nval){
    //         document.getElementsByTagName("body")[0].style.overflow='hidden';
    //     }else{
    //         document.getElementsByTagName("body")[0].style.overflow='auto';
    //     }
    // }
  },
  created: function created() {
    var that = this;
    that.getUserInfo();
    if (that._Util.isIOS) {
      that.ios = true;
    } else {
      that.ios = false;
    }
    (0, _mintUi.Toast)({
      message: '数据加载中...',
      duration: 1000
    });
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that.ios) {
        that.upload();
        //
      }
    }, function () {}, that);
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that.ios) {
        that.upload2();
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    var that = this;
    if (that._Util.isApp()) {
      // 判断是否显示提示
      api.addEventListener({
        name: 'viewappear'
      }, function (ret, err) {
        if (api.getPrefs({
          sync: true,
          key: 'toQue'
        }) == 1) {
          if (api.getPrefs({
            sync: true,
            key: 'scored'
          }) != 1) {
            setTimeout(function () {
              (0, _mintUi.Toast)({
                message: '填写问卷后才能评分成功哦',
                duration: 2500
              });
            }, 100);
          }
          setTimeout(function () {
            api.setPrefs({
              key: 'toQue',
              value: 0
            });
            api.setPrefs({
              key: 'scored',
              value: 0
            });
          }, 100);
        }
      });
    } else {
      if (localStorage.getItem('toQue') == 1) {
        if (localStorage.getItem('scored') != 1) {
          setTimeout(function () {
            (0, _mintUi.Toast)({
              message: '填写问卷后才能评分成功哦',
              duration: 2500
            });
          }, 1200);
        }
        setTimeout(function () {
          localStorage.setItem('toQue', 0);
          localStorage.setItem('scored', 0);
        }, 200);
      }
    }
    that.sectionHeight = document.body.offsetHeight - 85;
    that.helpcontMaxH = document.body.offsetHeight * 0.9 - 49 + 'px';
    document.title = '在线问答';
    // document.getElementById("appcon").style.height = document.body.offsetHeight -46 + 'px';
    // var bottomBox = document.getElementById('bottomBox')
    // window.addEventListener("resize", function() {
    //     alert()
    //     if(document.activeElement.tagName=="INPUT" || document.activeElement.tagName=="TEXTAREA") {
    //         document.activeElement.scrollIntoView();
    //     }
    // })
    // 软键盘收起的事件处理,（部分ios手机不输入内容，页面不随着软键盘回到底部）
    document.body.addEventListener('focusout', function () {
      if (that.ios) {
        document.getElementsByTagName('body')[0].scrollTop = document.getElementById('appcon').scrollHeight;
      }
    });
    setTimeout(function () {
      document.getElementsByTagName('body')[0].scrollTop = document.getElementById('appcon').scrollHeight;
    }, 2000);
    that._Util.post(that._Api.POST_GET_GETDETAIL, {
      questionId: that.objId
    }, function (data) {
      that.scoreResult = data;
      if (that.scoreResult.status == 1) {
        that.$router.push({
          name: 'questionDealed',
          query: {
            objId: that.$route.query.objId
          }
        });
      }
      that.rewardsStatus = that.scoreResult.rewardsStatus ? '已打赏' : '我要打赏';
      that.userScore = that.scoreResult.userScore ? '已评分' : '我要评分';
      that.userScore1 = that.scoreResult.userScore;
    }, function () {}, that);
    that.getChartData();
    that.getcusInputBtn(that.objId);
    that.timer = setInterval(function () {
      that.getChartData();
      that.getcusInputBtn(that.objId);
    }, 5000);
    /* 防止滚动穿透*/
    that.ModalHelper = function (bodyCls) {
      var scrollTop;
      return {
        afterOpen: function afterOpen() {
          scrollTop = document.scrollingElement.scrollTop;
          document.body.classList.add(bodyCls);
          document.body.style.top = -scrollTop + 'px';
        },
        beforeClose: function beforeClose() {
          document.body.classList.remove(bodyCls);
          // scrollTop lost after set position:fixed, restore it back.
          document.scrollingElement.scrollTop = scrollTop;
        }
      };
    }('modal-open');
  },
  updated: function updated() {
    var videoW = (0, _jquery.default)('.newVideo').eq(0).width();
    (0, _jquery.default)('.newVideo').height(videoW * 0.561);
  },
  methods: {
    /** 打开名词*/openTerm: function openTerm(item) {
      if (item.termId) {
        this.termHelp(item.termId);
      } else {
        return;
      }
    },
    /** 获取后台传过来的换行字符串 */strTrim: function strTrim(str) {
      return str.replace(/\n/g, '<br>');
    },
    openImg: function openImg(url) {
      // 打开图片
      this.$store.commit('openImgView', {
        imgUrl: url,
        imgList: [],
        activeIndex: 0
      });
    },
    /* 获取除video以外的标签*/getContExceptVideo: function getContExceptVideo(val) {
      if (!val) {
        return false;
      }
      var temp = val;
      var videoStart = temp.indexOf('<video');
      var videoEnd = temp.indexOf('video>') + 6;
      var helpContHtml = temp.substring(0, videoStart) + temp.substring(videoEnd);
      // console.log('temp'+helpContHtml + '------'+ helpContHtml.length)
      if (helpContHtml.length > 7) {
        return true;
      } else {
        return false;
      }
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.user = data;
      }, function () {}, that);
    },
    preveSenImg: function preveSenImg() {
      return;
    },
    matchEmotion: function matchEmotion(v) {
      var that = this;
      if (!v.content.text) {
        return '';
      }
      var matchArr = v.content.text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return v.content.text.replace(/\n/g, '<br>');
      }

      //	                var newArr = Util.unique(matchArr);
      //					console.log(newArr.length);

      var str = v.content.text.replace(/\n/g, '<br>');
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).name;
        str = str.replace(matchArr[i], str1 ? '<img src="../../assets/images/uiChatBox/emotion/' + str1 + '.png" width=30 height=30>' : matchArr[i]);
      }
      return str;
    },
    submitData: function submitData() {
      var that = this;
      var ajaxData = {};
      ajaxData.questionId = that.objId;
      ajaxData.content = that.leaveMessage;
      ajaxData.images_url = that.imgSrc.join(',');
      console.log(ajaxData.images_url);
      that._Util.post(that._Api.POST_GET_QUESTIONING, ajaxData, function (data) {
        if (data) {
          // window.location.reload();
          that.imgSrc = [];
          that.leaveMessage = '';
        }
      }, function () {}, that);
    },
    getChartData: function getChartData() {
      var that = this;
      that._Util.post(that._Api.POST_GET_GETChATLIST, {
        questionId: that.objId
      }, function (data) {
        if (data) {
          that.resultList = data;
          // 获取客服的消息列表
          // var ggarr=that.resultList.filter(function(val,index){
          //   return val.senderUserId.toString().substr(0,4) == '-200'
          // })
          //
          // var ids = [];
          // for(var a=0;a<ggarr.length;a++){
          //     if(ggarr[a]['autoReplyRefId'] != undefined){
          //         ids.push(ggarr[a]['autoReplyRefId'])
          //     }
          // }
          // that.choseIDs=ids;
          var choseids = [];
          for (var i = 0; i < data.length; i++) {
            if (data[i]['autoReplyRefId']) {
              var obj = {};
              obj.index = i;
              obj.data = data[i]['autoReplyRefId'];
              choseids.push(obj);
            }
          }
          that.choseIDs = choseids;
          (0, _jquery.default)('body').delegate('.imgC, .helpCont img, .helpCont2 img', 'click', function () {
            event.preventDefault();
            var src = (0, _jquery.default)(this).attr('src');
            if (src.indexOf('?imageView2') != -1) {
              src = src.replace('?imageView2/1/w/150/h/150', '');
            }
            that.$store.commit('openImgView', {
              imgUrl: src,
              imgList: [],
              activeIndex: 0
            });
          });
        }
      }, function () {}, that, true);
    },
    dateFormat: function dateFormat(timeSpan) {
      return this._Util.dateFormat(timeSpan, 'yyyy.MM.dd hh:mm:ss');
    },
    selectOpt: function selectOpt(index) {
      var that = this;
      if (index == 1) {
        // 关闭问答
        that._Util.showMsgBoxConfirm1('确认关闭问答', function () {
          that.confirmToOperation(3);
        }, function () {}, {
          title: '提示'
        });
      } else if (index == 2) {
        // 打开打赏蒙层
        that.showMoneyMask = true;
      } else {
        // 打开评分蒙层
        that.showScoreMask = true;
      }
    },
    choseOption: function choseOption(index, item, List) {
      var that = this;
      var _iterator = _createForOfIteratorHelper(List),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          v.active = false;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      item.active = true;
      if (index == 1) {
        // 选择打赏金额
        that.money = item.text;
        that._Util.post(that._Api.POST_GET_DASHANG, {
          questionId: that.objId,
          money: that.money
        }, function (data) {
          that._Util.wxPay(data.jsApiParameters, function () {
            that.rewardsStatus = '已打赏';
            that.showMoneyMask = false;
          });
        }, function () {}, that);
      } else {
        // 选择满意不满意
        that.userScore1 = item.text == '满意，完美解决了我的问题' ? 1 : 2;
        that.confirmToOperation(2);
      }
    },
    // 获取输入框开关
    getcusInputBtn: function getcusInputBtn(questionId) {
      var that = this;
      that._Util.post(that._Api.POST_CUS_BTN, {
        questionId: questionId
      }, function (data) {
        if (data) {
          if (data.isCusInput !== 2) {
            // 2表示禁止输入，1或者空表示可以输入
            that.inputIsOpen = true;
          } else {
            that.inputIsOpen = false;
          }
        }
      }, function () {}, that, true);
    },
    subAnswer: function subAnswer(Ancestors, parent, e) {
      // 提交答案
      var that = this;
      // var target = e && e.target
      if (!parent.answer) {
        (0, _mintUi.Toast)('请选择答案！');
        return;
      }
      console.log(parent);
      var pcodeId = !Ancestors.pcodeId ? '' : Ancestors.pcodeId;
      that._Util.post(that._Api.POST_GET_QUESTIONING, {
        questionId: that.objId,
        autoReplyRefId: parent.answer,
        pcodeId: pcodeId
      }, function (data) {
        if (data) {
          // console.log('提交成功');
          // 把选取的选项的id传值，下一次进入后，可以获取到改id
          that._Util.post(that._Api.POST_CHECK_REPLY, {
            answerId: Ancestors.answerId,
            pcodeId: parent.answer
          }, function (data) {
            var date = that._Util.dateFormat(new Date().getTime(), 'yyyy-MM-dd hh:mm:ss');
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              title: window.document.title,
              url: window.location.href,
              moduleType: '在线问答',
              operate_page: '在线问答智能回复',
              optionType: '点击',
              param1: that.user.userId,
              param2: '题目id:' + parent.data.id,
              param3: '选项id:' + parent.answer,
              params5: date
            }, that);
            setTimeout(function () {
              that.getChartData();
            }, 50);
          }, function () {}, that, false);
          if (!parent.reanswer) {
            _vue.default.set(parent, 'reanswer', true);
          }
        }
      }, function () {}, that, false);
    },
    reAnswer: function reAnswer(Ancestors, parent, item) {
      // 重答
      var that = this;
      that.showVideo = false;
      that._Util.showMsgBoxConfirm1('错误的选项会影响小轨判断，请慎重操作', function () {
        that.showVideo = true;
        clearInterval(that.timer);
        _vue.default.set(parent, 'reanswer', false);
        // 将问题状态修改为2状态(重答状态)
        that._Util.post(that._Api.POST_UNANSWER, {
          answerId: Ancestors.answerId,
          isReply: 2
        }, function (data) {
          that._Util.post(that._Api.POST_CHECK_REPLY, {
            answerId: Ancestors.answerId,
            pcodeId: -Ancestors.pcodeId
          }, function (data) {
            setTimeout(function () {
              that.getChartData();
              that.timer = setInterval(function () {
                that.getChartData();
                that.getcusInputBtn(that.objId);
              }, 5000);
            }, 50);
          }, function () {}, that, false);
        }, function () {}, that);
        // 修改该问题的pcodeId
        _vue.default.set(parent, 'answer', '');
        _vue.default.set(parent, 'reanswer', false);
        var qaarr = parent.data.qaCodeIdList;
        for (var i = 0; i < qaarr.length; i++) {
          qaarr[i].active = false;
        }
        // that._Util.post(that._Api.POST_GET_QUESTIONING, {questionId: that.objId,autoReplyRefId:Ancestors.autoReplyRefId,pcodeId:Ancestors.pcodeId}, (data) => {
        //
        //     if(data){
        //         console.log(data)
        //     }
        // }, () => {},that);
      }, function () {
        that.showVideo = true;
        item.active = false;
      }, {
        title: '重答本题'
      });
    },
    UnableToAnswer: function UnableToAnswer(Ancestors, parent, e) {
      var that = this;
      var target = e.target;
      if (Ancestors.IsReply != 0 || Ancestors.pcodeId) {
        return;
      }
      that.showVideo = false;
      that._Util.showMsgBoxConfirm1('暂时不知道如何回答本题', function () {
        that.showVideo = true;
        var ajaxData = {};
        ajaxData.questionId = that.objId;
        ajaxData.content = '无法回答';
        // 把无法回答作为显示呈现到聊天列表
        that._Util.post(that._Api.POST_GET_QUESTIONING, ajaxData, function (data) {
          if (data) {
            target.style.display = 'none';
            // if(!parent.cantanswer){
            //     Vue.set(parent,'cantanswer',true);
            // }
            // window.location.reload();
          }
        }, function () {}, that);
        that._Util.post(that._Api.POST_UNANSWER, {
          answerId: Ancestors.answerId,
          isReply: 1
        }, function (data) {}, function () {}, that);
      }, function () {
        that.showVideo = true;
      }, {
        title: '无法回答'
      });
    },
    /* 名词解释*/termHelp: function termHelp(id) {
      var that = this;
      that.helpContHtml = '';
      that.helpobj = null;
      that._Util.post(that._Api.TREMDETAIL, {
        id: id
      }, function (data) {
        if (data) {
          that.ModalHelper.afterOpen();
          that.showhelpMask = true;
          that.helpContHtml = data.content;
        }
      }, function () {}, that);
    },
    help: function help(val) {
      var that = this;
      that.helpContHtml = '';
      that.helpobj = null;
      /* 普通选择题*/
      if (val.type == 1) {
        // if(that.getContExceptVideo(val.faultCodeTerm.content)) {  //如果有富文本，则不通过helpid查询帮助内容
        if (val.faultCodeTerm.content) {
          that.ModalHelper.afterOpen();
          that.showhelpMask = true;
          // var helpContHtml = val.faultCodeTerm.content;
          // var videoStart = helpContHtml.indexOf('<video');
          // var videoEnd = helpContHtml.indexOf('video>') + 6;
          // that.helpContHtml = helpContHtml.substring(0,videoStart) + helpContHtml.substring(videoEnd);
          // console.log(that.helpContHtml)
          that.helpContHtml = val.faultCodeTerm.content;
        } else {
          that._Util.post(that._Api.POST_QUESTION_HELP, {
            helpId: val.helpId
          }, function (data) {
            if (data) {
              that.showhelpMask = true;
              that.ModalHelper.afterOpen();
              that.helpobj = data;
              if (data.image) {
                that.helpImgs = data.image.split(',');
              }
            }
          }, function () {}, that);
        }
      } else {
        // 结论
        that.ModalHelper.afterOpen();
        that.showhelpMask = true;
        that.helpContHtml = val.content;
      }
    },
    choseHelp: function choseHelp(des, url, img) {
      this.helpobj = null;
      this.helpContHtml = '';
      var obj = {
        text: des,
        url: url,
        image: img
      };
      console.log(obj);
      this.showhelpMask = true;
      this.helpobj = obj;
      this.ModalHelper.afterOpen();
      if (obj.image) {
        this.helpImgs = obj.image.split(',');
      }
    },
    confirmToOperation: function confirmToOperation(index) {
      var that = this;
      if (index == 1) {
        //          if (that.money) {
        //
        //          }else{
        //
        //          }
      } else if (index == 2) {
        if (that.userScore1 == 2) {
          // 不满意
          var url = that._Api.HOSTRESOURCEPATH + '/v2/questionnaire/index?no=86cbab4a&fromLink=questionDealed&questionId=' + that.objId;
          if (this._Util.isApp()) {
            api.setPrefs({
              key: 'toQue',
              value: 1
            });
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'questionnaire',
                url: url
              }
            });
          } else {
            localStorage.setItem('toQue', 1);
            window.open(url);
          }
          return;
        }
        that._Util.post(that._Api.POST_GET_SCORE, {
          questionId: that.objId,
          userScore: that.userScore1
        }, function (data) {
          that.userScore = '已评分';
          that.showScoreMask = false;
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.POST_GET_CLOSE, {
          questionId: that.objId
        }, function (data) {
          window.history.go(-1);
        }, function () {}, that);
      }
    },
    upload: function upload(e) {
      var that = this;
      if (that.ios) {
        // eslint-disable-next-line no-unused-vars
        var uploader = Qiniu.uploader({
          runtimes: 'html5,flash,html4',
          browse_button: 'upBtn',
          //          uptoken_url: that.token,
          uptoken: that.token,
          domain: that.bucketUrl,
          get_new_uptoken: false,
          container: 'container',
          filters: {
            max_file_size: '100mb',
            prevent_duplicates: true,
            mime_types: [{
              title: 'Image files',
              extensions: 'jpg,gif,png,jpeg'
            }]
          },
          flash_swf_url: 'js/plupload/Moxie.swf',
          max_retries: 0,
          dragdrop: true,
          drop_element: 'container',
          chunk_size: '4mb',
          auto_start: true,
          multi_selection: false,
          init: {
            'FilesAdded': function FilesAdded(up, files) {
              // eslint-disable-next-line no-undef
              plupload.each(files, function (file) {});
            },
            'BeforeUpload': function BeforeUpload(up, file) {
              _mintUi.Indicator.open('上传中...');
            },
            'UploadProgress': function UploadProgress(up, file) {},
            'FileUploaded': function FileUploaded(up, file, info) {
              _mintUi.Indicator.close();
              that.imgSrc.push(JSON.parse(info.response).key);
            },
            'Error': function Error(up, err, errTip) {
              _mintUi.MessageBox.alert(JSON.stringify(err));
            },
            'UploadComplete': function UploadComplete() {},
            'Key': function Key(up, file) {}
          }
        });
      } else {
        var file = e.target.files[0];
        if (file) {
          _mintUi.Indicator.open('上传中...');
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          _jquery.default.ajax({
            url: 'https://upload.qiniup.com',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgSrc.push(res.key);
          }).fail(function () {});
        }
      }
    },
    upload2: function upload2(e) {
      var that = this;
      if (that.ios) {
        // eslint-disable-next-line no-unused-vars
        var uploader = Qiniu.uploader({
          runtimes: 'html5,flash,html4',
          browse_button: 'upBtn2',
          //          uptoken_url: that.token,
          uptoken: that.token,
          domain: that.bucketUrl,
          get_new_uptoken: false,
          container: 'container2',
          filters: {
            max_file_size: '100mb',
            prevent_duplicates: true,
            mime_types: [{
              title: 'Image files',
              extensions: 'jpg,gif,png,jpeg'
            }]
          },
          flash_swf_url: 'js/plupload/Moxie.swf',
          max_retries: 0,
          dragdrop: true,
          drop_element: 'container2',
          chunk_size: '4mb',
          auto_start: true,
          multi_selection: false,
          init: {
            'FilesAdded': function FilesAdded(up, files) {
              // eslint-disable-next-line no-undef
              plupload.each(files, function (file) {});
            },
            'BeforeUpload': function BeforeUpload(up, file) {
              _mintUi.Indicator.open('上传中...');
            },
            'UploadProgress': function UploadProgress(up, file) {},
            'FileUploaded': function FileUploaded(up, file, info) {
              _mintUi.Indicator.close();
              that.imgSrc.push(JSON.parse(info.response).key);
            },
            'Error': function Error(up, err, errTip) {
              _mintUi.MessageBox.alert(JSON.stringify(err));
            },
            'UploadComplete': function UploadComplete() {},
            'Key': function Key(up, file) {}
          }
        });
      } else {
        var file = e.target.files[0];
        if (file) {
          _mintUi.Indicator.open('上传中...');
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          _jquery.default.ajax({
            url: 'https://upload.qiniup.com',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            that.imgSrc.push(res.key);
          }).fail(function () {});
        }
      }
    },
    /* Ancestors:问答列表的每一项,item:选择题的每一项，parent:半自动问答的每一项*/
    // IsReply==2，Ancestors.pcodeId为负数，代表改题目目前处于重答状态
    Lichose: function Lichose(Ancestors, item, List, parent) {
      // 点击选择题
      // if(Ancestors.IsReply==0&&Ancestors.pcodeId){  //Ancestors.pcodeId有值代表改题目已经提交过了，Ancestors.IsReply==0说明没点击重答按钮
      //     return;
      // }
      // if(Ancestors.IsReply==2&&Ancestors.pcodeId>0){  //Ancestors.IsReply==2说明点击了重答按钮，Ancestors.pcodeId>0说明已经重答完毕
      //     return;
      // }
      // if(Ancestors.pcodeId){
      //     Ancestors.pcodeId=item.id;
      // }
      var that = this;
      console.log(Ancestors.pcodeId + '-- ' + item.id);
      if (Ancestors.pcodeId == item.id) {
        // 点击的这一个选择题，与上次提交的那一项做对比，是否一样,
        return;
      }
      this.$nextTick(function () {
        List.forEach(function (item1) {
          // Vue.set(item,'active',false);
          item1.active = false;
        });
        // Vue.set(item,'active',true);
        item.active = true;
        parent.answer = item.id;
        console.log(parent.answer);
        if (Ancestors.IsReply == 0 && Ancestors.pcodeId || Ancestors.IsReply == 2 && Ancestors.pcodeId > 0) {
          // 显示重答按钮，执行重答操作
          that.reAnswer(Ancestors, parent, item);
        }
        if (Ancestors.IsReply == 0 && !Ancestors.pcodeId || Ancestors.IsReply == 2 && Ancestors.pcodeId < 0) {
          // 显示提交按钮，执行提交操作
          that.subAnswer(Ancestors, parent);
        }
      });
    },
    closeHelp: function closeHelp() {
      this.showhelpMask = false;
      this.ModalHelper.beforeClose();
    },
    closeWindowMask: function closeWindowMask() {
      this.showMoneyMask = false;
      this.showScoreMask = false;
      this.showcloseMask = false;
      // this.showhelpMask =false;
    },
    delImg: function delImg(i, imgs) {
      console.log(i);
      imgs = imgs.splice(i, 1);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#EBEBEB"}},[(_vm.showMoneyMask)?_c('div',{staticClass:"mask",on:{"click":function($event){return _vm.closeWindowMask()}}},[_c('div',{staticClass:"rewardBox",staticStyle:{"background":"white","position":"absolute","bottom":"0","width":"100%"}},[_c('ul',{staticClass:"moneyList"},_vm._l((_vm.moneyList),function(v,i){return _c('li',{key:i,class:{active: v.active},on:{"click":function($event){$event.stopPropagation();return _vm.choseOption(1,v,_vm.moneyList)}}},[_vm._v(_vm._s(v.text))])}),0),_vm._v(" "),_c('div',{staticClass:"cancle"},[_vm._v("\n        取消\n      ")])])]):_vm._e(),_vm._v(" "),(_vm.showScoreMask)?_c('div',{staticClass:"mask",on:{"click":function($event){return _vm.closeWindowMask()}}},[_c('div',{staticClass:"rewardBox",staticStyle:{"height":"121px","background":"white","position":"absolute","bottom":"0","width":"100%"}},[_c('ul',{staticClass:"scoreList"},_vm._l((_vm.scoreList),function(v,i){return _c('li',{key:i,class:{active: v.active},on:{"click":function($event){$event.stopPropagation();return _vm.choseOption(2,v,_vm.scoreList)}}},[_c('div',[_vm._v(_vm._s(v.text))]),_vm._v(" "),(v.active || (_vm.userScore1 && _vm.userScore1 == v.index))?_c('img',{staticClass:"sat-img",attrs:{"src":__webpack_require__(839)}}):_c('img',{staticClass:"sat-img",attrs:{"src":__webpack_require__(1623)}})])}),0)])]):_vm._e(),_vm._v(" "),(_vm.showhelpMask)?_c('div',{staticClass:"mask",staticStyle:{"top":"0"}},[_c('div',{staticClass:"rewardBox",staticStyle:{"background":"white","position":"absolute","bottom":"0","width":"100%"}},[_c('div',{staticClass:"helpTitle"},[_vm._v("帮助文档"),_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.closeHelp()}}})]),_vm._v(" "),(_vm.helpobj)?_c('div',{staticClass:"helpCont",staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch"},style:({'max-height': _vm.helpcontMaxH})},[(_vm.helpobj.text)?_c('p',[_vm._v(_vm._s(_vm.helpobj.text))]):_vm._e(),_vm._v(" "),(_vm.helpobj.image)?_c('div',{staticClass:"helpImgs"},_vm._l((_vm.helpImgs),function(img,i){return _c('img',{key:i,staticClass:"imgC",attrs:{"src":'http://static2.kaxiuyun.com/'+img,"alt":"帮助文档图片"}})}),0):_vm._e(),_vm._v(" "),(_vm.helpobj.url)?_c('a',{staticClass:"helpUrl",attrs:{"href":_vm.helpobj.url}},[_vm._v("查看资料")]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.helpContHtml)?_c('div',{ref:"helpCont",staticClass:"helpCont2",staticStyle:{"overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},style:({'max-height': _vm.helpcontMaxH})},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.helpContHtml)}})]):_vm._e()])]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch","padding-bottom":"95px","background":"#EBEBEB","min-height":"100%"},attrs:{"id":"appcon"}},[_c('section',{staticClass:"aui-chat",staticStyle:{"background":"#EBEBEB","overflow":"hidden"}},_vm._l((_vm.resultList),function(v,index1){return _c('div',{key:index1,staticClass:"aui-chat-item",class:{'aui-chat-right': v.senderUserId.toString().substr(0,4) != '-200','aui-chat-left': v.senderUserId.toString().substr(0,4) == '-200'},style:({'overflow':!v.autoReplyRefId ? 'hidden' :'auto' })},[_c('div',{staticClass:"aui-chat-inner",style:({'max-width' : !v.autoReplyRefId ? '70%': '100%' ,'overflow':!v.autoReplyRefId ? 'hidden' :'auto' })},[( v.content.extra.objectName != 'RC:CheckMsg' )?_c('div',{staticClass:"aui-chat-name"},[_c('div',{staticClass:"headerImg"},[(_vm.user.headImgUrl)?_c('img',{attrs:{"src":v.senderUserId.toString().substr(0,4) != '-200'? _vm.user.headImgUrl : _vm.header_xg}}):_vm._e(),_vm._v(" "),(!_vm.user.headImgUrl)?_c('img',{attrs:{"src":v.senderUserId.toString().substr(0,4) != '-200'? _vm.defaultuser : _vm.header_xg}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"user"},[_c('p',{staticClass:"userName"},[_vm._v(_vm._s(v.senderUserId.toString().substr(0,4) != '-200'?(_vm.user.uname||_vm.user.nickname||'我'):'小轨'))]),_vm._v(" "),_c('p',{staticClass:"sendTime",domProps:{"innerHTML":_vm._s(_vm.dateFormat(v.sentTime))}})])]):_c('div',{staticClass:"xzt_time"},[_c('span',{domProps:{"innerHTML":_vm._s(_vm.dateFormat(v.sentTime))}})]),_vm._v(" "),(v.content.extra.objectName == 'RC:TxtMsg' && !v.autoReplyRefId )?_c('div',{staticClass:"aui-chat-content",class:{'term' : v.termId},domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v))},on:{"click":function($event){return _vm.openTerm(v)}}}):_vm._e(),_vm._v(" "),( v.content.extra.objectName == 'RC:CheckMsg'&& v.autoReplyRefId)?_c('div',{staticClass:"que_item"},_vm._l((_vm.coquestions),function(val,index2){return (index1 == val.index)?_c('div',{key:index2,staticClass:"questionBox"},[(val.data.type == 1)?_c('div',{staticClass:"que_title"},[_c('span',[_c('b',{domProps:{"innerHTML":_vm._s(_vm.strTrim(val.data.title))}}),(val.data.helpId || val.data.faultCodeTerm.content)?_c('i',{on:{"click":function($event){$event.stopPropagation();return _vm.help(val.data)}}},[_vm._v("查看详情")]):_vm._e()])]):_vm._e(),_vm._v(" "),(val.data.type == 2)?_c('div',{staticClass:"que_title"},[_c('span',[_vm._v("问题结论"),(val.data.content)?_c('i',{on:{"click":function($event){$event.stopPropagation();return _vm.help(val.data)}}},[_vm._v("查看详情")]):_vm._e()])]):_vm._e(),_vm._v(" "),(val.data.type == 1)?_c('div',{staticClass:"que_cont"},[(val.data.faultCodeTerm.videoUrl)?_c('div',{staticClass:"newVideo"},[_c('video',{attrs:{"src":val.data.faultCodeTerm.videoUrl,"webkit-playsinline":"true","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","controls":"","controlsList":"nodownload"}})]):_vm._e(),_vm._v(" "),_c('ul',_vm._l((val.data.qaCodeIdList),function(v1,i){return _c('li',{key:i},[_c('span',{staticClass:"radioBox",class:{active: (v1.active || v1.id===v.pcodeId)},on:{"click":function($event){$event.stopPropagation();return _vm.Lichose(v,v1,val.data.qaCodeIdList,val)}}}),_vm._v(" "),_c('span',{staticClass:"choseDes",class:{desactive: (v1.active || v1.id===v.pcodeId)},on:{"click":function($event){$event.stopPropagation();return _vm.Lichose(v,v1,val.data.qaCodeIdList,val)}}},[_vm._v(_vm._s(v1.name || v1.description))]),_vm._v(" "),(v1.description || v1.helpUrl || v1.helpImage)?_c('span',{staticClass:"helpIcon",on:{"click":function($event){$event.stopPropagation();return _vm.choseHelp(v1.description,v1.helpUrl,v1.helpImage)}}}):_vm._e()])}),0)]):_vm._e(),_vm._v(" "),(val.data.type == 2)?_c('div',{staticClass:"que_cont"},[_c('div',{staticClass:"verdict",domProps:{"innerHTML":_vm._s(_vm.strTrim(val.data.title))}})]):_vm._e()]):_vm._e()}),0):_vm._e(),_vm._v(" "),(v.content.extra.objectName == 'RC:ImgMsg')?_c('div',{staticClass:"aui-chat-content"},[_c('img',{staticClass:"imgC",attrs:{"src":v.content.text+'?imageView2/1/w/150/h/150'},on:{"click":function($event){return _vm.openImg(v.content.text)}}})]):(v.content.extra.objectName == 'RC:VcMsg')?_c('div',{on:{"click":function($event){return _vm.openVc(v.content.text)}}},[_c('div',{staticClass:"send"},[_c('img',{class:{'voice-right': v.senderUserId.toString().substr(0,4) !='-200', 'voice-left': v.senderUserId.toString().substr(0,4) =='-200'},staticStyle:{"pointer-events":"none"},attrs:{"src":__webpack_require__(1620)}})])]):_vm._e()])])}),0)]),_vm._v(" "),_c('div',{attrs:{"id":"bottomBox"}},[_c('div',{staticClass:"leaveMessage"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.leaveMessage),expression:"leaveMessage"}],staticStyle:{"background":"white","border":"1px solid #D1D1E0","padding-top":"3px","padding-bottom":"3px","-webkit-border-radius":"3px","border-radius":"3px"},attrs:{"type":"text","disabled":!_vm.inputIsOpen,"placeholder":_vm.placeholderVal},domProps:{"value":(_vm.leaveMessage)},on:{"input":function($event){if($event.target.composing){ return; }_vm.leaveMessage=$event.target.value}}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.leaveMessage && _vm.imgSrc.length==0),expression:"!leaveMessage && imgSrc.length==0"}],staticClass:"uploadBox"},[(!_vm.ios)?_c('div',{staticClass:"a-upload",staticStyle:{"text-align":"center","display":"inline-block","position":"relative"}},[_c('img',{staticClass:"uploadimg",attrs:{"src":__webpack_require__(1624)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})]):_vm._e(),_vm._v(" "),(_vm.ios)?_c('div',{staticClass:"a-upload",staticStyle:{"text-align":"center","display":"inline-block","position":"relative"},attrs:{"id":"container"}},[_c('img',{staticClass:"uploadimg",attrs:{"src":__webpack_require__(1624)}}),_vm._v(" "),_c('button',{staticClass:"putPhoto",attrs:{"id":"upBtn"}})]):_vm._e()]),_vm._v(" "),(_vm.leaveMessage || _vm.imgSrc.length>0)?_c('div',{staticClass:"subbtn",on:{"click":function($event){return _vm.submitData()}}},[_vm._v("发送")]):_vm._e(),_vm._v(" "),(!_vm.inputIsOpen)?_c('div',{staticClass:"imgmask",on:{"click":function($event){$event.stopPropagation();return _vm.preveSenImg.apply(null, arguments)}}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"option"},[_c('div',{staticClass:"item",on:{"click":function($event){return _vm.selectOpt(1)}}},[_c('span',{staticClass:"itembg1"}),_vm._v("关闭问答")]),_vm._v(" "),_c('div',{staticClass:"item",on:{"click":function($event){return _vm.selectOpt(2)}}},[_c('span',{staticClass:"itembg2"}),_vm._v(_vm._s(_vm.rewardsStatus))]),_vm._v(" "),_c('div',{staticClass:"item",on:{"click":function($event){return _vm.selectOpt(3)}}},[_c('span',{staticClass:"itembg3"}),_vm._v(_vm._s(_vm.userScore))])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.imgSrc.length!=0),expression:"imgSrc.length!=0"}],staticClass:"imgBox"},[_vm._l((_vm.imgSrc),function(v,i){return _c('div',{key:i,staticClass:"imglist"},[_c('div',{staticClass:"closeImg",on:{"click":function($event){$event.stopPropagation();return _vm.delImg(i,_vm.imgSrc)}}}),_vm._v(" "),_c('img',{attrs:{"src":_vm.bucketUrl + v + '?imageView2/1/w/150/h/150'}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.imgSrc.length >= 1 && _vm.imgSrc.length < 3),expression:"imgSrc.length >= 1 && imgSrc.length < 3"}],staticClass:"addImg"},[(!_vm.ios)?_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"}},[_c('input',{staticClass:"putPhoto",staticStyle:{"width":"100%","height":"100%"},attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload2($event)}}})]):_vm._e(),_vm._v(" "),(_vm.ios)?_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"},attrs:{"id":"container2"}},[_c('button',{staticClass:"putPhoto",attrs:{"id":"upBtn2"}})]):_vm._e()])],2)])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/upload.7fecd80.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(485);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5091ef0c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1084);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2739)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5091ef0c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5091ef0c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5091ef0c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vipPhoneService_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2740);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6b8b9308", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak][data-v-5091ef0c]{display:none!important}.vip-phone .wrap[data-v-5091ef0c]{position:relative;background:#f5f5f5;min-height:100%}.vip-phone .wrap .header[data-v-5091ef0c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-height:2.2rem;padding:0 .4rem}.vip-phone .wrap .header p[data-v-5091ef0c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:16px/1.1rem PingFangSC-Regular}.vip-phone .wrap .header .call-btn[data-v-5091ef0c]{margin-left:1rem;height:1.4rem;padding:0 .3rem;color:#177afa;font:14px/1.4rem PingFangSC-Regular;border-radius:.7rem;border:1px solid #177afa}.vip-phone .wrap .header.fix-header[data-v-5091ef0c]{position:fixed;top:0;left:0;width:100%;z-index:1000;background:#fff}.vip-phone .wrap .dialog-cont[data-v-5091ef0c]{padding:0 .6rem}.vip-phone .wrap .dialog-cont .item[data-v-5091ef0c]{margin-top:.9rem}.vip-phone .wrap .dialog-cont .item .info[data-v-5091ef0c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.vip-phone .wrap .dialog-cont .item .info img[data-v-5091ef0c]{width:1.6rem;height:1.6rem;border-radius:.2rem}.vip-phone .wrap .dialog-cont .item .info .box[data-v-5091ef0c]{margin-left:.3rem;width:70%}.vip-phone .wrap .dialog-cont .item .info .box .name[data-v-5091ef0c]{color:#333;font:14px/1rem PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vip-phone .wrap .dialog-cont .item .info .box .date[data-v-5091ef0c]{color:#999;font:12px/.8rem PingFangSC-Regular}.vip-phone .wrap .dialog-cont .item .item-cont[data-v-5091ef0c]{margin-top:.3rem;font-size:0}.vip-phone .wrap .dialog-cont .item .item-cont .text[data-v-5091ef0c]{display:inline-block;background:#fff;max-width:86%;border:1px solid #d1d1e0;padding:.4rem .5rem;color:#333;font:17px/1.2rem PingFangSC-Regular;border-radius:0 .2rem .2rem .2rem}.vip-phone .wrap .dialog-cont .item .item-cont img[data-v-5091ef0c]{width:10.5rem;height:6rem;border-radius:.2rem}.vip-phone .wrap .dialog-cont .item .item-cont .video-box[data-v-5091ef0c]{display:inline-block}.vip-phone .wrap .dialog-cont .item .item-cont .video-box video[data-v-5091ef0c]{width:10.5rem;height:6rem;border-radius:.2rem;background:#666}.vip-phone .wrap .dialog-cont .item .item-cont .url[data-v-5091ef0c]{display:inline-block;background:#fff;max-width:86%;border:1px solid #d1d1e0;padding:.4rem .5rem;color:#177afa;font:17px/1.2rem PingFangSC-Regular;border-radius:0 .2rem .2rem .2rem}.vip-phone .wrap .dialog-cont .item.item-right .info[data-v-5091ef0c]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vip-phone .wrap .dialog-cont .item.item-right .info .box[data-v-5091ef0c]{margin-right:.3rem;width:70%;text-align:right}.vip-phone .wrap .dialog-cont .item.item-right .item-cont[data-v-5091ef0c]{text-align:right}.vip-phone .wrap .dialog-cont .item.item-right .item-cont .text[data-v-5091ef0c],.vip-phone .wrap .dialog-cont .item.item-right .item-cont .url[data-v-5091ef0c]{border-radius:.2rem 0 .2rem .2rem}.vip-phone .wrap .bottom[data-v-5091ef0c]{background:#fff;margin-top:1.6rem;padding:.8rem 0}.vip-phone .wrap .bottom div[data-v-5091ef0c]:first-child{background:#177afa;height:2.2rem;color:#fff;font:14px/2.2rem PingFangSC-Regular;border-radius:.3rem;width:68%;margin-left:16%;text-align:center}.vip-phone .wrap .bottom div[data-v-5091ef0c]:last-child{margin-top:.6rem;color:#177afa;font:14px/1rem PingFangSC-Regular;text-align:center}.vip-phone .wrap .bottom div:last-child i[data-v-5091ef0c]{margin-left:.2rem;display:inline-block;width:5px;height:8px;background:url(" + escape(__webpack_require__(24)) + ") no-repeat;background-size:100% 100%}.vip-phone .wrap .nothing[data-v-5091ef0c]{position:absolute;width:100%;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);text-align:center}.vip-phone .wrap .nothing img[data-v-5091ef0c]{width:3.25rem}.vip-phone .wrap .nothing div[data-v-5091ef0c]{margin-top:.4rem;color:#666;font:16px/1.1rem PingFangSC-Regular}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      vipData: {
        status: 1
      },
      chartList: [],
      mescroll: null,
      page: {
        num: 1
      }
    };
  },
  created: function created() {
    this._Util.collectPageView2({
      version: this._Util.version,
      postUrl: this._Api.POST_COLLECT,
      moduleType: '在线问答',
      operate_page: '专家电话服务',
      optionType: '打开页面'
    }, this);
    var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
    if (userId === this.$route.query.askid || userId === this.$route.query.answerid) {
      this.share();
      this.getVipData();
    } else {
      location.replace(location.origin + '/v2/fms');
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.mescroll, {
      down: {
        use: true,
        auto: false,
        callback: this.getChartList
      },
      up: {
        use: false
      }
    });
  },
  methods: {
    /**
     * 时间格式转换
    */
    dateFormat: function dateFormat(timeSpan) {
      return this._Util.dateFormat(timeSpan * 1000, 'yyyy-MM-dd hh:mm:ss');
    },
    /**
     * 获取vip内容
    */
    getVipData: function getVipData() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'dialogue_msg',
        order_id: this.$route.query.orderid,
        ask_uid: this.$route.query.askid,
        answer_uid: this.$route.query.answerid,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        var temp = data.dataList ? data.dataList[0] : {};
        _this.vipData = temp;
        if (_this.vipData.content_cod) {
          _this.getChartList();
        }
      }, function () {}, this, true);
    },
    /**
     * 获取对话内容
    */
    getChartList: function getChartList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: this.vipData.content_cod,
        ask_uid: this.$route.query.askid,
        answer_uid: this.$route.query.answerid,
        order_id: this.$route.query.orderid,
        pageNum: this.page.num,
        pageSize: 10
      }, function (data) {
        if (data.totalCount === 0) {
          _this2.vipData.status = 0;
          _this2.mescroll.lockDownScroll(true);
        }
        var temp = data.dataList ? data.dataList : [];
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess();
        });
        _this2.chartList = temp.reverse().concat(_this2.chartList);
        if (_this2.page.num === 1) {
          setTimeout(function () {
            _this2.mescroll.scrollTo(10000);
          }, 200);
        }
        _this2.page.num++;
        if (temp.length < 10) {
          _this2.mescroll.lockDownScroll(true);
        }
      }, function () {
        _this2.mescroll.endErr();
      }, this);
    },
    /**
     * 点击拨打电话按钮
    */
    callPhone: function callPhone() {
      location.href = this.vipData.phone_url;
    },
    /**
     * 显示指引弹窗
    */
    showGuid: function showGuid() {},
    /**
     * 预览图片
    */
    openImg: function openImg(url) {
      event.preventDefault();
      var _imgUrl = url + '?imageView2/2/w/2000';
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: [],
        activeIndex: 0
      });
    },
    /**
     * 点击链接
    */
    clickUrl: function clickUrl(url) {
      location.href = url;
    },
    /**
     * 关闭求助
    */
    closeFn: function closeFn() {
      location.href = this.vipData.close_url;
    },
    /**
     * 分享配置
    */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典',
                  desc: '卡修宝典',
                  link: location.origin + '/v2/fms',
                  imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典',
              desc: '卡修宝典',
              link: location.origin + '/v2/fms',
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典',
              desc: '卡修宝典',
              link: location.origin + '/v2/fms',
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典',
              desc: '卡修宝典',
              link: location.origin + '/v2/fms',
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vip-phone"},[_c('div',{ref:"mescroll",staticClass:"wrap mescroll"},[(_vm.vipData.status === 1)?[_c('div',{staticClass:"header"},[_c('p',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}]},[_vm._v(_vm._s(_vm.vipData.title))]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],staticClass:"call-btn"},[_vm._v("拨打电话")])]),_vm._v(" "),_c('div',{staticClass:"header fix-header"},[(_vm.vipData.title)?_c('p',[_vm._v(_vm._s(_vm.vipData.title))]):_vm._e(),_vm._v(" "),(_vm.vipData.phone_url)?_c('div',{staticClass:"call-btn",on:{"click":_vm.callPhone}},[_vm._v("拨打电话")]):_vm._e()]),_vm._v(" "),_c('ul',{staticClass:"dialog-cont"},_vm._l((_vm.chartList),function(item,index){return _c('li',{key:index,staticClass:"item item-left",class:{'item-right': item.position === 'right'}},[_c('div',{staticClass:"info"},[(item.headimgurl)?_c('img',{attrs:{"src":item.headimgurl,"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(808),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"box"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(item.nickname))]),_vm._v(" "),_c('div',{staticClass:"date"},[_vm._v(_vm._s(_vm.dateFormat(item.time)))])])]),_vm._v(" "),_c('div',{staticClass:"item-cont"},[(item.type === 'text')?_c('div',{staticClass:"text",domProps:{"innerHTML":_vm._s(item.content)}}):_vm._e(),_vm._v(" "),(item.type === 'pic')?_c('img',{directives:[{name:"lazy",rawName:"v-lazy",value:(item.content),expression:"item.content"}],attrs:{"src":item.content,"alt":""},on:{"click":function($event){return _vm.openImg(item.content)}}}):_vm._e(),_vm._v(" "),(item.type === 'video')?_c('div',{staticClass:"video-box"},[_c('video',{attrs:{"webkit-playsinline":"true","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","controls":"","controlsList":"nodownload"}},[_c('source',{attrs:{"src":item.content,"type":"video/mp4"}})])]):_vm._e(),_vm._v(" "),(item.type === 'url')?_c('div',{staticClass:"url",on:{"click":function($event){return _vm.clickUrl(item.content)}}},[_vm._v(_vm._s(item.content))]):_vm._e()])])}),0),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){return _vm.openImg(_vm.vipData.guide_url)}}},[_vm._v(_vm._s(_vm.vipData.guide_buttom))]),_vm._v(" "),_c('div',{on:{"click":_vm.closeFn}},[_vm._v("关闭本次求助"),_c('i')])])]:_vm._e(),_vm._v(" "),(_vm.vipData.status === 0)?_c('div',{staticClass:"nothing"},[_c('img',{attrs:{"src":__webpack_require__(1413),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("暂时还没有内容")])]):_vm._e()],2)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/defaultHeader.714f223.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(486);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c358fb52_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1085);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2741)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c358fb52_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c358fb52_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2742);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("312231ca", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".downDiv{background:#4d4d4d;color:#fff;position:fixed;top:0;left:0;width:100%;z-index:1100;height:50px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      keyword: '',
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      showApp: false
    };
  },
  mounted: function mounted() {
    var that = this;
    var version = unescape(that._Util.getQueryString('version'));
    that._Util.collectPageView({
      version: that._Util.isApp() ? version : '',
      postUrl: that._Api.POST_COLLECT,
      moduleType: that._Util.isApp() ? '首页' : '微信菜单',
      operate_page: '故障代码',
      optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      title: window.document.title,
      url: window.location.href
    }, that);
    if (!this._Util.isApp()) {
      this.showApp = true;
    }
  },
  methods: {
    search: function search() {
      var that = this;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }
      //
      //        if (that.keyword.length < 2) {
      //          that._Util.showMsgBox('请至少输入两个字符');
      //          return;
      //        }

      if (that.patrn.test(that.keyword)) {
        that._Util.showMsgBoxThen('输入内容含有特殊字符', function () {
          that.keyword = '';
        });
        return;
      }
      localStorage.setItem('searchID', that._Util.randomChar());
      // that._Util.collectPageView({
      //   version: '',
      //   postUrl: that._Api.POST_COLLECT,
      //   url:window.location.href,
      //   moduleType: '微信菜单',
      //   operate_page: '故障代码查询',
      //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      //   // keyword: localStorage.getItem("searchID")
      // }, that);
      that._Util.setLocalStorage('searchUuid', '');
      that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
        if (data.userStatus == 0) {
          var fullPath = window.location.href;
          var userStatus = data.userStatus;
          that._Util.showMsgBoxConfirm1('对不起，只有认证会员才能查看！您还未认证，请您先完成认证！', function () {
            window.location.href = '/v2/member/personal/info?fullPath=' + fullPath + '&userStatus=' + userStatus + '&userTitle=' + document.title;
          }, function () {
            return;
          });
        } else {
          if (!that._Util.isApp()) {
            that.$router.push({
              name: 'appSearchResultNew',
              query: {
                keyword: that.keyword,
                title: '故障码'
              }
            });
          } else {
            that.$router.push({
              name: 'faultList',
              query: {
                keyword: that.keyword
              }
            });
          }

          //
        }
      }, function () {}, that);
    },
    downloadApp: function downloadApp() {
      window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb';
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showApp)?_c('div',{staticClass:"downDiv",on:{"click":function($event){return _vm.downloadApp()}}},[_vm._m(0),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('div',{staticStyle:{"margin-top":"7px","float":"left","width":"36%","height":"100%","text-align":"center","line-height":"21px"}},[_c('span',{staticStyle:{"background-color":"#FF6666","border-radius":"5px","font-size":"16px","padding":"7px"},attrs:{"id":"downApp"}},[_vm._v("免费下载")]),_vm._v(" "),_c('span',{on:{"click":function($event){$event.stopPropagation();_vm.showApp = false}}},[_c('img',{staticStyle:{"padding-left":"3px","height":"23px","width":"23px"},attrs:{"src":"http://static1.kaxiuyun.com/images/public/kxy-close.png"}})])])]):_vm._e(),_vm._v(" "),_c('div',{style:({marginTop: _vm.showApp ? '50px' : '0px'})},[_c('input',{attrs:{"id":"serachType","type":"hidden","name":"serachType","value":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"col col1"},[_c('ul',{staticClass:"search"},[_vm._m(2),_vm._v(" "),_c('li',{staticClass:"search_input"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],staticStyle:{"height":"50px","width":"100%","border-radius":"5px"},attrs:{"type":"text","placeholder":"请输入查询信息"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('li',{staticClass:"mt25"},[_c('a',{staticClass:"btn btn_redlight btn_large"},[_c('input',{staticClass:"inputSubmit",attrs:{"type":"button"},on:{"click":function($event){return _vm.search()}}}),_vm._v(" 搜搜\n            ")])]),_vm._v(" "),_vm._m(3)])])]),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":1}})],1)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"float":"left","width":"16%","height":"100%"}},[_c('img',{staticStyle:{"height":"46px","width":"46px","margin-top":"2px","margin-left":"5px"},attrs:{"src":"http://static1.kaxiuyun.com/images/public/kxy-app-download.png?imageView2/2/w/300/h/184"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"float":"left","width":"48%","height":"100%","margin-top":"3px"}},[_c('p',{staticStyle:{"font-size":"14px","padding-bottom":"6px"}},[_vm._v("卡修宝典App")]),_vm._v(" "),_c('p',{staticStyle:{"font-size":"12px"}},[_vm._v("邀您抢先使用")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"tc"},[_c('img',{staticClass:"serchicon",attrs:{"src":__webpack_require__(2743)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"tips"},[_c('p',{staticClass:"yuanxinl"},[_vm._v("输入正确的故障码，如P码、闪码、十六进制码等。小轨将罗列出所有相关信息，请点击相应车型系统的条目查看详细排查指南。")]),_vm._v(" "),_c('p',{staticClass:"yuanxinl"},[_vm._v("故障码为SPN码时，如SPN 523470 FMI 12请输入523470-12。")]),_vm._v(" "),_c('p',{staticClass:"yuanxinl"},[_vm._v("点击“图文指南”，小轨手把手教您排忧解难。")]),_vm._v(" "),_c('p',{staticClass:"yuanxinl"},[_vm._v("遇到任何棘手的问题，欢迎进入“在线问答”提问，小轨们实时解答。")])])}]
module.exports = __webpack_require__.p + "static/img/gzdm.0741eb4.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(487);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ce64f6f0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1087);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2744)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ce64f6f0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ce64f6f0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2745);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("68f0a5a5", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{height:100%;overflow:hidden}.carModel,.desc{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.carModel{width:100%}#resultUl li{padding-bottom:10px}#resultUl li span p{margin-bottom:5px}#resultHeight .sosoList li{padding:12px 12px 20px}.sosoList li.iconHand{background:url(" + escape(__webpack_require__(867)) + ") 15px 10px no-repeat;background-size:25px}.sosoList div.iconPicture{background:url(" + escape(__webpack_require__(870)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconQ{background:url(" + escape(__webpack_require__(868)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconArticle{background:url(" + escape(__webpack_require__(872)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconProduct{background:url(" + escape(__webpack_require__(871)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconFaltCode{background:url(" + escape(__webpack_require__(869)) + ") 0 10px no-repeat;background-size:25px}.sosoList{border-top:none;border-bottom:none;margin:0}.sosoList.Collecter li{padding:0 10px 20px}.sosoList.Collecter li p:first-child{min-height:30px;line-height:30px}.secondTag{border-top:5px solid #ece9e9}.labelList1{margin-left:4%;padding:0 7px;float:left;height:30px;line-height:30px;border:1px solid #ccc;border-radius:3px;margin-bottom:5px;text-align:center}.mask{background:rgba(0,0,0,.2);z-index:10}.mask,.windowMask{width:100%;height:100%;position:absolute;top:0}.windowMask{background:rgba(0,0,0,.4);left:0;z-index:5}.windowMaskShow{z-index:20}.contentBox{width:300px;height:280px;position:absolute;top:50%;margin-top:-190px;left:50%;margin-left:-150px;background:#fff}.a-upload{position:relative;cursor:pointer;overflow:hidden}.a-upload,.uploadimg{width:30px;height:30px}.uploadimg{display:inline-block}.putPhoto{width:30px;height:30px;opacity:0;position:absolute;left:0;top:0}.option{border-top:1px solid #ccc;width:100%;height:40px;position:absolute;bottom:0}.option li{width:50%;float:left;height:40px;text-align:center;line-height:40px;font-size:16px}.option li:nth-of-type(2){background:#b10217;color:#fff}.butCon{width:100%;height:35px;position:relative;border-top:1px solid #f2f2f2}.butCon>span{position:absolute;width:2px;height:12px;background:#b2b2b2;left:50%;margin-left:-1px;top:50%;margin-top:-6px}.butCon>div{float:left;width:50%;height:100%;font-size:16px;text-align:center;line-height:35px;background:#fff;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.butCon>div:nth-of-type(2){float:right}.butCon>div a{float:right;text-align:center;border-radius:3px;-webkit-border-radius:3px;border:1px solid #ccc;padding:5px 15px}.butCon .activeCan{background:#b10217;color:#fff}.labelList1.active{border:1px solid #ee4545;color:#ee4545}.loadMore{border:1px solid #c7c7c7;width:280px;height:44px;background:#ee4545;line-height:44px;text-align:center;color:#fff;border-radius:5px;margin-right:auto;margin-left:auto;margin-top:10px}.promptHelp1{background:#fff;border:none;width:100%;padding-top:70px;font-size:16px;text-align:center}.promptHelp1 div{display:inline-block;font-size:18px;color:#ee4545;border:1px solid #ee4545;width:145px;padding:5px 0;text-align:center;margin:15px auto 0;border-radius:5px;-webkit-border-radius:5px}@media screen and (min-width:790px) and (max-width:810px){.promptHelp1{padding-top:60px}}.faultCodeLTable{padding:0}#resultHeight .newtt{color:#151515;font-size:18px;margin-bottom:10px}#resultHeight .yuncang{bottom:5px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
var _labelComponent = _interopRequireDefault(__webpack_require__(2746));
var _codeDialogComponent = _interopRequireDefault(__webpack_require__(133));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _collection = _interopRequireDefault(__webpack_require__(137));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import ClosePageComponent from '../../../components/common/closePageComponent1.vue'
var _default = exports.default = {
  components: {
    LabelComponent: _labelComponent.default,
    // ClosePageComponent,
    PokingMeComponent: _pokingMeComponent.default,
    CodeDialogComponent: _codeDialogComponent.default,
    Collection: _collection.default,
    // eslint-disable-next-line vue/no-unused-components
    Indicator: _mintUi.Indicator
  },
  data: function data() {
    return {
      faCode: '',
      showMore: false,
      fromChildPage: false,
      showAsk: true,
      showBottom: false,
      // 小轨调查区域的显示与隐藏
      showCan: false,
      keyword: '',
      imgSrc: [],
      myAdvise: '',
      showWindowMask: '',
      ios: '',
      isShowAd: false,
      maskHeight: '',
      showSecondTag: false,
      id: '',
      reload: '',
      result: {},
      secondTag: [],
      showDetail: false,
      resource_url: this._Api.POST_FALT_CODE_LIST,
      params: {
        facet: '',
        searchUuid: this._Util.getLocalStorage('searchUuid'),
        pageModel: {
          currentPage: 1,
          pageSize: 50
        },
        firstTag: '',
        secondTag: ''
      },
      resultList: {
        bolist: [],
        pageModel: {},
        facetList: []
      },
      testUl: '',
      tableLength: 0,
      showFacetList: 0,
      rowIndex: 1,
      firstRow: true,
      secondRow: true,
      scrollPosition: 0,
      tempFacetList: [],
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      scrollFlag: true,
      dialogShow: false,
      detailId: '',
      faultTag: '',
      hlFlField: '',
      hlFl: '',
      isShowNoResult: false,
      clickItem: {},
      uploader: null,
      random: sessionStorage.getItem('randomStr') || this.$route.query.randomStr,
      filter: '',
      totalCount: '',
      userInfoResult: {},
      facetListLength: 0,
      // 老故障码一级属性标签的长度,
      moduleType: ''
    };
  },
  created: function created() {
    var that = this;
    if (that._Util.isIOS) {
      that.ios = true;
    } else {
      that.ios = false;
    }
    that.getUserState();
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that.ios) {
        that.upload();
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    var that = this;
    that.keyword = that.$route.query.keyword;
    window.parent.document.getElementById('contentBox1').style.height = this.$route.query.contHeight;

    // that.search(true);
    if (sessionStorage.getItem('gzmScrollFlag') && sessionStorage.getItem('gzmScrollFlag') == 1) {
      // that.type = sessionStorage.getItem("gzmType");
      (0, _jquery.default)('#scrollwrapper').height('100%');
      var job0 = JSON.parse(sessionStorage.getItem('gzmfacetList'));
      var job = JSON.parse(sessionStorage.getItem('gzmList'));
      for (var i = 0; i < job.length; i++) {
        job[i] = JSON.parse(job[i]);
      }
      for (var j = 0; j < job0.length; j++) {
        job0[j] = JSON.parse(job0[j]);
      }
      that.tempFacetList = job0; // 故障码标签列表
      that.resultList.bolist = job; // 故障码数据列表
      that.facetListLength = sessionStorage.getItem('facetListLength'); // 故障码第一级标签长度
      that.showBottom = sessionStorage.getItem('gzmShowBottom') == 'true';
      that.showMore = sessionStorage.getItem('gzmShowMore') == 'true';
      console.log(sessionStorage.getItem('gzmScrollTop'), sessionStorage.getItem('gzmPages'));
      that.params.pageModel.currentPage = sessionStorage.getItem('gzmPages');
      that.$route.query.facet = sessionStorage.getItem('routeFacet');
      setTimeout(function () {
        (0, _jquery.default)('#scrollwrapper').scrollTop(sessionStorage.getItem('gzmScrollTop'));
        sessionStorage.setItem('gzmScrollFlag', 0);
        sessionStorage.setItem('gzmList', '');
      }, 300);
    } else {
      that.search(true);
    }
    that.$on('checkMenu', function (data) {
      console.log(data);
      if (!data.o) {
        that.showFeactList = 0;
      }
      that.params.facet = data.o;
      if (data.index == 1) {
        that.rowIndex = 1;
      } else if (data.index == 2) {
        that.rowIndex = 2;
      }
      var query = that._Util.copyObject(that.$route.query);
      // alert(JSON.stringify(query));
      query.currentPageNum = 1;
      query.facet = data.o;
      that.$router.replace({
        query: query
      });
      //        that.getLabel(that.params.facet);
      that.clickToSearch(0, data.ind);
    });
    that.$on('MenuAll', function (data) {
      that.params.facet = '';
      var query = that._Util.copyObject(that.$route.query);
      query.currentPageNum = 1;
      query.facet = '';
      that.$router.replace({
        query: query
      });
      that.clickToSearch(1);
      //        that.getLabel();
      //        that.tempFacetList = [];
      that.secondTag = [];
    });
    that.$on('closeDetail', function () {
      that.showDetail = false;
      that.hlFlField = '';
      that.result = {};
    });
    that.$on('showFatherWindow', function (data) {
      //        that.showDetail = false;
      //        that.hlFlField = '';
      that.showWindowMask = true;
      that.fromChildPage = true;
      that.faCode = data;
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.$on('verifyCodeCorrect', function () {
      that.dialogShow = false;
      that.getDetail({
        id: that.detailId,
        moduleType: that.moduleType
      }, that);
    });
    that.$on('collectResult', function (data) {
      that.clickItem.favId = data.favId;
    });
  },
  methods: {
    getFaultCode: function getFaultCode(item) {
      // 根据hlflfield字段获取故障码
      var hlFlField = item.hlFlField;
      if (item.solrType == 'OBD') {
        if (item.code) {
          return item.code;
        }
      } else {
        switch (hlFlField) {
          case 'pcode':
            return item.pcode;
          case 'scode':
            return item.scode;
          case 'spn':
            return item.spn;
          case 'fmi':
            return item.fmi;
          case 'spn_fmi':
            return item.spn_fmi;
          case 'dtcm':
            return item.dtcm;
          case 'dtcm_10':
            return item.dtcm_10;
          case 'factory_code':
            return item.factory_code;
          case 'spn_hex':
            return item.spn_hex;
          case 'fmi_hex':
            return item.fmi_hex;
          case 'spn_fmi_hex':
            return item.spn_fmi_hex;
          case 'fmi_code':
            return item.fmi_code;
          case 'kts':
            return item.kts;
          case 'mid':
            return item.mid;
          case 'pid_sid_ppidpsid':
            return item.pid_sid_ppidpsid;
          case 'mid_x_fmi':
            return item.mid_x_fmi;
          case 'oem_1':
            return item.oem_1;
          case 'oem_2':
            return item.oem_2;
          default:
            return '';
        }
      }
    },
    // 处理pcode,如果返回的pcode为多个，就只取第一个
    handlePcode: function handlePcode(pcode) {
      var tempArr = pcode.split(',');
      if (tempArr.length == 1) {
        return pcode;
      } else if (tempArr.length > 1) {
        return tempArr[0];
      }
      // console.log(tempArr.length)
    },
    removeBr: function removeBr(str) {
      // 去除描述中的换行标签
      return str.replace(/(<br[^>]*>|\s*)/g, '');
    },
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    toNoFalCode: function toNoFalCode() {
      window.top.location.replace(location.origin + '/v2/business/pay/appSearchResultNew?index=0&title=故障码&keyword=&folderid=10086&isCloseTabList=true&isClick=true');
    },
    toadvancedSearch: function toadvancedSearch() {
      var that = this;
      var iframePel = window.parent.document.getElementById('contentBox1');
      iframePel.style.cssText = 'position: fixed;height: 100%;width: 100%;top: 0;left: 0; z-index: 10;';
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '故障码搜索空态页',
        optionType: '点击',
        param1: location.href,
        param2: that.keyword,
        param3: that._Util.randomChar(),
        param4: {
          'queryValue': that.keyword,
          'result': 0,
          'type': '故障码高级搜索',
          'filter': ''
        }
      }, that);
      this.$router.push({
        path: '/v2/faultCode/advancedSearch',
        query: {
          'keyword': this.keyword
        }
      });
    },
    canEvent: function canEvent() {
      var that = this;
      if (that.params.firstTag) {
        if (that.params.secondTag) {
          that.filter = that.params.firstTag + ';' + that.params.secondTag;
        } else {
          that.filter = that.params.firstTag;
        }
      }
      that.showCan = true;
      // const typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车'
      // const version = unescape(that._Util.getQueryString('version'))
      localStorage.setItem('searchID', that._Util.randomChar());
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '搜索结果页',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        param1: window.location.href,
        param2: '故障码',
        param3: that.random,
        param4: {
          'queryValue': that.keyword,
          'result': that.totalCount,
          'filter': that.filter,
          'type': '故障码'
        },
        params5: '能'
      }, that);
    },
    loadMore: function loadMore() {
      var that = this;
      that.params.pageModel.currentPage++;
      that._Util.post(that.resource_url, that.params, function (data) {
        if (data && data.bolist && data.bolist.length > 0) {
          that.resultList.bolist = that.resultList.bolist.concat(data.bolist);
          that.showBottom = true;
          if (that.params.pageModel.currentPage == data.pageModel.totalPage) {
            that.showMore = false;
          }
        }

        // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight  + 'px';
        that.maskHeight = document.body.offsetHeight + 'px';
      }, function () {}, that);
    },
    closeWindowMask: function closeWindowMask() {
      this.imgSrc = [];
      this.showWindowMask = false;
      this.myAdvise = '';
    },
    submitEvent: function submitEvent() {
      var that = this;
      var faultType = 0;
      var keyCode = '';
      if (that.myAdvise == '') {
        that._Util.showMsgBox('请填写相关描述');
        return;
      }
      faultType = that.fromChildPage ? 1 : 0;
      keyCode = that.fromChildPage ? that.faCode : that.keyword;
      // if(that.userInfoResult.userStatus == 2) {  //如果用户为付费会员则添加一条在线问答

      //   that._Util.post(
      //     that._Api.ADD_ONLINEQUE,
      //     {
      //       text5: that.myAdvise,
      //       type:3,
      //       images_url: that.imgSrc.join(",")
      //     },
      //     function(data) {
      //       that.showWindowMask = false;
      //       that.fromChildPage = false;
      //       that.imgSrc = [];
      //       that.myAdvise = "";
      //     },
      //     function() {},
      //     that
      //   );
      //   return;
      // }
      that._Util.post(that._Api.POST_FALT_CODE_USERFEEDBACK, {
        dataDescribe: that.myAdvise,
        dataType: 1,
        faultCodeUrl: that.imgSrc.join(','),
        faultType: faultType,
        faultCode: keyCode
      }, function (data) {
        that.showWindowMask = false;
        that.fromChildPage = false;
        that.imgSrc = [];
        that.myAdvise = '';
      }, function () {}, that);
    },
    showWindow: function showWindow(type) {
      var that = this;
      if (that.params.firstTag) {
        if (that.params.secondTag) {
          that.filter = that.params.firstTag + ';' + that.params.secondTag;
        } else {
          that.filter = that.params.firstTag;
        }
      }
      if (type == 1) {
        that.showCan = false;
        that.showWindowMask = true;
        var version = unescape(that._Util.getQueryString('version'));
        localStorage.setItem('searchID', that._Util.randomChar());
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          moduleType: '资料查询',
          operate_page: '搜索结果页',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          param1: window.location.href,
          param2: '故障码',
          param3: that.random,
          param4: {
            'queryValue': that.keyword,
            'type': '故障码',
            'result': that.resultList.pageModel.totalRecord,
            'filter': that.filter
          },
          params5: '不能'
        }, that);
      } else {
        that.showWindowMask = true;
        // const typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车'
        var _version = unescape(that._Util.getQueryString('version'));
        localStorage.setItem('searchID', that._Util.randomChar());
        that._Util.collectPageView({
          version: that._Util.isApp() ? _version : '',
          postUrl: that._Api.POST_COLLECT,
          moduleType: '资料查询',
          operate_page: '搜索结果页',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          param1: window.location.href,
          param2: '故障码',
          param3: that.random,
          param4: {
            'queryValue': that.keyword,
            'result': that.resultList.pageModel.totalRecord,
            'filter': that.filter,
            'type': '故障码'
          },
          params5: '不能'
        }, that);
      }
    },
    upload: function upload(e) {
      var that = this;
      // if(that.ios){
      //    that.uploader = Qiniu.uploader({
      //     runtimes: 'html5,flash,html4',
      //     browse_button: 'upBtn',
      //     uptoken : that.token,
      //     domain: that.bucketUrl,
      //     get_new_uptoken: false,
      //     container: 'container',
      //     filters:{
      //       max_file_size : '100mb',
      //       prevent_duplicates: true,
      //       mime_types:[{title : "Image files", extensions : "jpg,gif,png"}],
      //     },
      //     flash_swf_url: 'js/plupload/Moxie.swf',
      //     max_retries: 0,
      //     dragdrop: true,
      //     drop_element: 'container',
      //     chunk_size: '4mb',
      //     auto_start: true,
      //     multi_selection:false,
      //     init: {
      //       'FilesAdded': function(up, files) {
      //         plupload.each(files, function(file) {
      //         });
      //       },
      //       'BeforeUpload': function(up, file) {
      //         Indicator.open('上传中...');
      //       },
      //       'UploadProgress': function(up, file) {

      //       },
      //       'FileUploaded': function(up, file, info) {
      //         Indicator.close();
      //         that.imgSrc.push(JSON.parse(info.response).key);
      //       },
      //       'Error': function(up, err, errTip) {

      //       },
      //       'UploadComplete': function() {

      //       },
      //       'Key': function(up, file) {
      //       }
      //     }
      //   });
      // }else{
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var formData = new FormData();
        formData.append('file', file);
        formData.append('token', that.token);
        var url = '';
        if (that.ios) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        _jquery.default.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          that.imgSrc.push(res.key);
        }).fail(function () {});
      }
      // }
    },
    closeMask: function closeMask() {
      var that = this;
      that.showSecondTag = false;
      setTimeout(function () {
        // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight + 'px';
        that.maskHeight = document.body.offsetHeight + 'px';
      }, 200);
    },
    secondSearch: function secondSearch(v) {
      var that = this;
      that.showSecondTag = false;
      that.isShowAd = false;
      that.random = that._Util.randomChar();
      if (v) {
        that.params.secondTag = v;
        var query = that._Util.copyObject(that.$route.query);
        query.secondT = v;
        that.$router.replace({
          query: query
        });
        that._Util.post(that.resource_url, that.params, function (data) {
          if (data) {
            that.resultList = data;
            that.totalCount = data.pageModel.totalRecord;
          }
          that._Util.collectPageView2({
            version: that._Util.version,
            postUrl: that._Api.POST_COLLECT,
            moduleType: '资料查询',
            operate_page: '搜索结果页',
            optionType: '点击',
            param1: location.href,
            param2: that.keyword,
            param3: that.random,
            param4: {
              'queryValue': that.keyword,
              'result': that.resultList.pageModel.totalRecord,
              'type': '故障码',
              'filter': that.params.firstTag + ';' + that.params.secondTag
            }
          }, that);
          if (data && data.bolist) {
            if (data.bolist.length > 0) {
              that.showBottom = true;
              that.isShowNoResult = false;
              that.isShowAd = true;
            } else {
              that.isShowAd = false;
              that.showBottom = false;
              that.isShowNoResult = true;
            }
            that.resultList.bolist = data.bolist;
            if (that.params.pageModel.currentPage < data.pageModel.totalPage) {
              that.showMore = true;
            } else {
              that.showMore = false;
            }
          }

          // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight + 'px';
          that.maskHeight = document.body.offsetHeight + 'px';
        }, function () {}, that);
      } else {
        that.params.secondTag = '';
        that.$route.query.secondT = '';
        that._Util.post(that.resource_url, that.params, function (data) {
          if (data) {
            that.resultList = data;
            that.totalCount = data.pageModel.totalRecord;
          }
          that._Util.collectPageView2({
            version: that._Util.version,
            postUrl: that._Api.POST_COLLECT,
            moduleType: '资料查询',
            operate_page: '搜索结果页',
            optionType: '点击',
            param1: location.href,
            param2: that.keyword,
            param3: that.random,
            param4: {
              'queryValue': that.keyword,
              'result': that.totalCount,
              'filter': that.params.firstTag,
              'type': '故障码'
            }
          }, that);
          that.showCan = false;
          if (data && data.bolist) {
            if (data.bolist.length > 0) {
              that.showBottom = true;
              that.isShowNoResult = false;
            } else {
              that.showBottom = false;
              that.isShowNoResult = true;
            }
            that.resultList.bolist = data.bolist;
            if (that.params.pageModel.currentPage < data.pageModel.totalPage) {
              that.showMore = true;
            } else {
              that.showMore = false;
            }
          }

          // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight + 'px';
          that.maskHeight = document.body.offsetHeight + 'px';
        }, function () {}, that);
      }
    },
    search: function search(flag) {
      var that = this;
      that.isShowAd = false;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }

      //        if (that.keyword.length < 2) {
      //          that._Util.showMsgBox('请至少输入两个字符');
      //          return;
      //        }
      //
      //        if (that.patrn.test(that.keyword)) {
      //          that._Util.showMsgBoxThen('输入内容含有特殊字符', () => {
      //            that.keyword = '';
      //          });
      //          return;
      //        }
      var query = that._Util.copyObject(that.$route.query);
      if (flag) {
        that.params.searchUuid = '';
        that._Util.setLocalStorage('searchUuid', '');
        that.params.facet = '';
        that.showFacetList = 0;
        query.keyword = that.keyword;
        query.facet = '';
        query.secondT = '';
        query.currentPageNum = 1;
        query.random = Math.floor(Math.random() * 10000 + 1);
      } else {
        query.facet = that.params.facet;
        that.params.firstTag = that.params.facet;
      }
      if (query.faultType == 'spn') {
        that.params.spnFmi = that.keyword;
      } else {
        that.params.queryValue = that.keyword;
      }
      that.params.firstTag = '';
      that.params.secondTag = '';
      query.facet = that.params.facet = '';
      that.params.pageModel.currentPage = 1;
      that.$router.replace({
        query: query
      });
      that.showSecondTag = false;
      //        that.getLabel();
      that._Util.post(that.resource_url, that.params, function (data) {
        if (data) {
          that.resultList = data;
          that.totalCount = data.pageModel.totalRecord;
          if (data.newFacetList) {
            that.tempFacetList = data.facetList.concat(data.newFacetList);
          } else {
            that.tempFacetList = data.facetList;
          }
          that.facetListLength = data.facetList.length;
          // that.type = data.type;
        }
        localStorage.setItem('searchID', that._Util.randomChar());
        that._Util.collectPageView2({
          version: that._Util.version,
          postUrl: that._Api.POST_COLLECT,
          moduleType: '资料查询',
          operate_page: '搜索结果页',
          optionType: '点击',
          param1: location.href,
          param2: that.keyword,
          param3: that.random,
          param4: {
            'queryValue': that.keyword,
            'result': that.totalCount,
            'type': '故障码',
            'filter': that.params.facet || ''
          }
        }, that);
        that.showCan = false;
        if (data && data.bolist && data.bolist.length > 0) {
          that.isShowAd = true;
          that.resultList.bolist = data.bolist;
          that.showBottom = true;
          that.isShowNoResult = false;
          setTimeout(function () {
            // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight  + 'px';
            that.maskHeight = document.body.offsetHeight + 'px';
          }, 200);
        } else {
          that.showBottom = false;
          that.isShowNoResult = true;
          that.isShowAd = false;
        }
        if (that.params.pageModel.currentPage < data.pageModel.totalPage) {
          that.showMore = true;
        } else {
          that.showMore = false;
        }
        that._Util.setLocalStorage('searchUuid', data.searchUuid);
        that.params.searchUuid = data.searchUuid;
      }, function () {}, that);
    },
    clickToSearch: function clickToSearch(type, ind) {
      var that = this;
      that.isShowAd = false;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }

      //        if (that.keyword.length < 2) {
      //          that._Util.showMsgBox('请至少输入两个字符');
      //          return;
      //        }

      if (that.patrn.test(that.keyword)) {
        that._Util.showMsgBoxThen('输入内容含有特殊字符', function () {
          that.keyword = '';
        });
        return;
      }
      if (type == 1) {
        that.params.firstTag = '';
        that.params.secondTag = '';
        that.params.pageModel.currentPage = 1;
        that.params.queryValue = that.keyword;
        that.random = that._Util.randomChar();
        that._Util.post(that.resource_url, that.params, function (data) {
          if (data) {
            that.resultList = data;
            that.totalCount = data.pageModel.totalRecord;
          }
          that.secondTag = [];
          that.showCan = false;
          // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight + 'px';
          that.maskHeight = document.body.offsetHeight + 'px';
          localStorage.setItem('searchID', that._Util.randomChar());
          that._Util.collectPageView2({
            version: that._Util.version,
            postUrl: that._Api.POST_COLLECT,
            moduleType: '资料查询',
            operate_page: '搜索结果页',
            optionType: '点击',
            param1: location.href,
            param2: that.keyword,
            param3: that.random,
            param4: {
              'queryValue': that.keyword,
              'result': that.totalCount,
              'type': '故障码',
              'filter': ''
            }
          }, that);
          if (data && data.bolist) {
            if (data.bolist.length > 0) {
              that.showBottom = true;
              that.isShowNoResult = false;
            } else {
              that.showBottom = false;
              that.isShowNoResult = true;
            }
            that.showSecondTag = false;
            that.resultList.bolist = data.bolist;
            setTimeout(function () {
              // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight + 'px';
              that.maskHeight = document.body.offsetHeight + 'px';
            }, 200);
            if (that.params.pageModel.currentPage < data.pageModel.totalPage) {
              that.showMore = true;
            } else {
              that.showMore = false;
            }

            // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight + 'px'
            that.maskHeight = document.body.offsetHeight + 'px';
          }
        }, function () {}, that);
      } else {
        if (that.facetListLength > 0) {
          // 如果一级标签的长度大于0，则点击时不以0为基数计算
          if (ind > that.facetListLength - 1) {
            console.log('点击了新故障码标签');
          } else {
            console.log('点击了旧故障码标签');
          }
        } else {
          console.log('点击的是新故障码标签');
        }
        that.params.firstTag = that.params.facet;
        that.params.secondTag = '';
        that.params.pageModel.currentPage = 1;
        that.params.facet = '';
        that.params.queryValue = that.keyword;
        // console.log(222,that.params)
        that._Util.post(that.resource_url, that.params, function (data) {
          that.totalCount = data.pageModel.totalRecord;
          // that.type = data.type
          if (data && data.facetList.length > 1) {
            if (that.facetListLength > 0) {
              if (ind > that.facetListLength - 1) {
                // 点击的标签索引大于老故障码一级标签长度，则点击的为新标签
                that.secondTag = [];
                that.showSecondTag = false;
              } else {
                that.secondTag = data.facetList;
                that.showSecondTag = true;
              }
            } else {
              // 如果一级标签的长度为0，说明都是都是新故障码标签
              that.secondTag = [];
              that.showSecondTag = false;
            }
          } else {
            that.secondTag = [];
            that.showSecondTag = false;
          }
          that._Util.collectPageView2({
            version: that._Util.version,
            postUrl: that._Api.POST_COLLECT,
            moduleType: '资料查询',
            operate_page: '搜索结果页',
            optionType: '点击',
            param1: location.href,
            param2: that.keyword,
            param3: that.random,
            param4: {
              'queryValue': that.keyword,
              'type': '故障码',
              'result': that.totalCount,
              'filter': that.params.firstTag
            }
          }, that);
          that.showCan = false;
          if (data && data.bolist) {
            if (data.bolist.length > 0) {
              that.isShowAd = true;
              that.showBottom = true;
              that.isShowNoResult = false;
            } else {
              that.isShowAd = false;
              that.showBottom = false;
              that.isShowNoResult = true;
            }
            that.resultList.bolist = data.bolist;
            setTimeout(function () {
              // that.maskHeight = document.body.offsetHeight - document.getElementById("faultCodeSeach").offsetHeight  + 'px'
              that.maskHeight = document.body.offsetHeight + 'px';
            }, 200);
            if (that.params.pageModel.currentPage < data.pageModel.totalPage) {
              that.showMore = true;
            } else {
              that.showMore = false;
            }
          }
        }, function () {}, that);
      }
    },
    handleScroll: function handleScroll(e) {
      var that = this;
      var currentScrollPosition = e.srcElement.scrollTop;

      // that.calculateDivTop(currentScrollPosition > that.scrollPosition)
      that.scrollPosition = currentScrollPosition;
    },
    toDetail: function toDetail(o, self, index) {
      console.log(o);
      index = index + 1;
      //        console.log(o)
      //        return
      var that = this;
      self.srcElement.parentElement.scrollTop = index * 100;
      //        let typeStr = that._Util.getQueryString("typeStr") == 1 ? "首页" : "修车";
      //        let version = unescape(that._Util.getQueryString("version"));
      //        let os = o.applicable_car ? o.applicable_car : "";
      if (that.params.firstTag) {
        if (that.params.secondTag) {
          that.filter = that.params.firstTag + ';' + that.params.secondTag;
        } else {
          that.filter = that.params.firstTag;
        }
      }
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '搜索结果页',
        optionType: '点击',
        param1: location.href,
        param2: '',
        param3: that.random,
        param4: {
          'queryValue': that.keyword,
          'result': that.totalCount,
          'type': '故障码',
          'filter': that.filter,
          'FAULT_CODE_DETAIL_ID': o.id,
          'moduleType': o.moduleType == 20 ? '新故障码' : '旧故障码'
        },
        params5: that.params.pageModel.currentPage + ';' + index || ''
      }, that);
      that._Util.getUserLog(function (data) {
        that.detailId = o.id;
        that.hlFlField = o.hlFlField;
        that.getDetail(o, that);
      }, function () {
        that.detailId = o.id;
        that.moduleType = o.moduleType;
        that.hlFlField = o.hlFlField;
        that.hlFl = o.hlFl;
        that.dialogShow = true;
      }, that);
      sessionStorage.setItem('facetListLength', that.facetListLength);
      sessionStorage.setItem('randomStr', that.random);
      sessionStorage.setItem('gzmScrollTop', (0, _jquery.default)('#scrollwrapper').scrollTop());
      sessionStorage.setItem('gzmScrollFlag', 1);
      sessionStorage.setItem('gzmPages', that.params.pageModel.currentPage);
      sessionStorage.setItem('gzmShowMore', that.showMore);
      sessionStorage.setItem('gzmShowBottom', that.showBottom);
      var arr = []; // 故障码列表
      var _iterator = _createForOfIteratorHelper(that.resultList.bolist),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var item = _step.value;
          arr.push(JSON.stringify(item));
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      var arr1 = [];
      var _iterator2 = _createForOfIteratorHelper(that.tempFacetList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _item = _step2.value;
          arr1.push(JSON.stringify(_item));
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      sessionStorage.setItem('gzmList', JSON.stringify(arr));
      sessionStorage.setItem('gzmfacetList', JSON.stringify(arr1));
    },
    getDetail: function getDetail(item, self) {
      console.log(JSON.parse(item));
      var that = self;
      var params = {
        id: item.id
      };
      if (item.moduleType == 20) {
        params.type = 2;
      }
      // sessionStorage.setItem('gzmType', that.type);
      that._Util.post(that._Api.POST_FALT_CODE_DETAIL, params, function (data) {
        that.result = data;
        that.clickItem = item;
        // that.showDetail = true;
        // var iframePel = window.parent.document.getElementById('contentBox1');
        // iframePel.style.cssText = 'position: fixed;height: 100%;width: 100%;top: 0;left: 0; z-index: 10;';
        // const detailParms = {
        //   keyWord: that.keyword,
        //   result: that.result,
        //   showAsk: that.showAsk,
        //   filter: that.filter,
        //   randomStr: that.random,
        //   total: that.totalCount,
        //   page: that.params.pageModel.currentPage,
        //   hlFlField: that.hlFlField,
        //   moduleType: item.moduleType,
        //   question: '?type=1'
        // }
        localStorage.setItem('listhref', window.location.href);
        // localStorage.setItem("detailResult", JSON.stringify(that.result));
        // that.$router.push({name: 'appSearchDetail', query: detailParms})
        // console.log('item.hlfl=' + item.hlFl)
        // console.log('that.hlFl=' + that.hlFl)
        that.faultTag = !/,/.test(item.faultTag) ? item.faultTag : '';
        var queryStr = 'faultTag=' + that.faultTag + '&keyWord=' + that.keyword + '&detailId=' + item.id + '&showAsk=' + that.showAsk + '&showAd=true' + '&filter=' + that.filter + '&randomStr=' + that.random + '&total=' + that.totalCount + '&page=' + that.params.pageModel.currentPage + '&hlFlField=' + that.hlFlField + '&moduleType=' + item.moduleType + '&hlFl=' + (item.hlFl || that.hlFl) + '&question=?type=1';
        window.top.location.assign(that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchDetail?' + encodeURI(queryStr));
        // window.top.location.assign(that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchDetail?params='+ JSON.stringify(detailParms))
        // that.$router.push({path: '/v2/business/pay/appSearchDetail', query: detailParms})
      }, function () {}, that);
    }
  },
  beforeRouteUpdate: function beforeRouteUpdate(to, from, next) {
    next();
    this.reload = Date.parse(new Date()).toString();
  },
  beforeRouteEnter: function beforeRouteEnter(to, from, next) {
    if (from.path == '/v2/business/pay/appSearchDetail') {
      window.parent.document.getElementById('contentBox1').style.position = 'relative';
      window.parent.document.getElementsByTagName('iframe')[0].style.cssText = 'height:100%;position:absolute;top:0;left:0;right:0;bottom:0; z-index: 10;';
    }
    if (from.path == '/v2/faultCode/advancedSearch') {
      window.parent.document.getElementById('contentBox1').style.position = 'relative';
      window.parent.document.getElementsByTagName('iframe')[0].style.cssText = 'height:100%;position:absolute;top:0;left:0;right:0;bottom:0; z-index: 10;';
    }
    next(function (vm) {});
  },
  beforeRouteLeave: function beforeRouteLeave(to, from, next) {
    var phead = window.parent.document.getElementsByTagName('head')[0];
    var pel = phead.getElementsByTagName('meta');
    for (var i = 0; i < pel.length; i++) {
      if (pel[i].getAttribute('id') == 'userScale') {
        pel[i].content = 'width=device-width,user-scalable=yes';
      }
    }
    next(function (vm) {});
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(488);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e31af3f2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1086);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2747)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e31af3f2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e31af3f2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_labelComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2748);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("165e184e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".labelAll{overflow:hidden;background:#fff}.labelList{margin-left:4%;width:20%}.labelList.default{background:#1766b3;border:1px solid #1766b3}.labelList{float:left;height:30px;line-height:30px;border-radius:3px;text-align:center;width:22.5%;margin-left:2%;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:5px;margin-top:5px;background:#fff;border:1px solid #ccc}.labelList.group2{margin-top:5px;margin-bottom:0}.labelList.group1{margin-top:6px;margin-bottom:0}.labelList.active{border:1px solid #ee4545;color:#ee4545}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {},
  props: {
    labelClass: {
      default: function _default() {
        return {};
      }
    },
    labelItems: {
      type: Array,
      required: true,
      default: function _default() {
        return [];
      }
    },
    firstRow: {
      default: function _default() {
        return true;
      }
    },
    secondRow: {
      default: function _default() {
        return true;
      }
    }
  },
  data: function data() {
    return {
      seeNone: 'active',
      labelId: ''
    };
  },
  methods: {
    checked: function checked(o, index, ind) {
      // 点击每一项标签时，传入索引值，用以判断点击的是新标签还是老标签
      this.seeNone = '';
      sessionStorage.setItem('routeFacet', o);
      this.$parent.$emit('checkMenu', {
        index: index,
        o: o,
        ind: ind
      });
    },
    checkedAll: function checkedAll() {
      this.seeNone = 'active';
      sessionStorage.setItem('routeFacet', '');
      this.$parent.$emit('MenuAll');
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.labelItems)?_c('div',{staticClass:"labelAll",attrs:{"id":"labelAll"}},[(_vm.labelItems.length > 0)?_c('div',{staticClass:"labelList",class:{active: _vm.$route.query.facet == ''},attrs:{"name":"labelDiv"},on:{"click":function($event){return _vm.checkedAll()}}},[_vm._v("\n    全部资料\n  ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.labelItems),function(o,index){return (index <= 3 && _vm.firstRow)?_c('div',{key:index,staticClass:"labelList",class:{active: _vm.$route.query.facet == o},attrs:{"name":"labelDiv"},on:{"click":function($event){return _vm.checked(o,1,index)}}},[_vm._v("\n    "+_vm._s(o)+"\n  ")]):_vm._e()}),_vm._v(" "),_vm._l((_vm.labelItems),function(o,index){return (index > 3 && _vm.secondRow)?_c('div',{key:index,staticClass:"labelList",class:{active: _vm.$route.query.facet == o},attrs:{"name":"labelDiv"},on:{"click":function($event){return _vm.checked(o,2,index)}}},[_vm._v("\n    "+_vm._s(o)+"\n  ")]):_vm._e()})],2):_vm._e()}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"position":"relative","background":"#E6E6E6"}},[_c('div',{staticClass:"windowMask",class:{'windowMaskShow':_vm.showWindowMask}},[_c('div',{staticClass:"contentBox"},[_c('div',{staticStyle:{"color":"black","text-align":"center","padding-top":"7px","font-size":"16px"}},[_vm._v("资料描述")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.myAdvise),expression:"myAdvise"}],staticStyle:{"width":"90%","display":"block","height":"90px","margin":"15px auto 0"},attrs:{"placeholder":"请尽可能详细的描述你想要的资料，小轨工程师找到后第一时间通知"},domProps:{"value":(_vm.myAdvise)},on:{"input":function($event){if($event.target.composing){ return; }_vm.myAdvise=$event.target.value}}}),_vm._v(" "),_c('div',{staticStyle:{"color":"#999","font-size":"12px","width":"90%","margin":"0 auto"}},[_vm._v("可上传故障等相关图片，有助于准确找到资料")]),_vm._v(" "),_c('div',{staticStyle:{"width":"90%","margin":"7px auto 0"}},[_c('div',{staticClass:"a-upload",staticStyle:{"text-align":"center","position":"relative"}},[_c('img',{staticClass:"uploadimg",attrs:{"src":__webpack_require__(1436)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})])]),_vm._v(" "),(_vm.imgSrc.length>0)?_c('div',{staticStyle:{"width":"100%","height":"50px","overflow-y":"scroll","margin-top":"-5px"}},_vm._l((_vm.imgSrc),function(v,i){return _c('img',{key:i,staticStyle:{"width":"50px","height":"50px","margin-left":"5px"},attrs:{"src":_vm.bucketUrl + v + '?imageView2/1/w/150/h/150'}})}),0):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"option"},[_c('li',{on:{"click":function($event){return _vm.closeWindowMask()}}},[_vm._v("取消")]),_vm._v(" "),_c('li',{on:{"click":function($event){return _vm.submitEvent()}}},[_vm._v("提交")])])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetail),expression:"!showDetail"}],staticStyle:{"width":"100%","height":"100%","position":"absolute","z-index":"10","left":"0","top":"0","background":"white"}},[_c('div',{staticStyle:{"bottom":"0","position":"relative","padding-top":"0","height":"100%"},attrs:{"id":"scrollwrapper"},on:{"scroll":_vm.handleScroll}},[(_vm.scrollFlag)?_c('div',{staticClass:"faultCodeSeach",attrs:{"id":"faultCodeSeach"}},[_c('Label-component',{attrs:{"label-items":_vm.tempFacetList,"first-row":_vm.firstRow,"second-row":_vm.secondRow}}),_vm._v(" "),(_vm.showSecondTag)?_c('div',{staticClass:"secondTag"},[(_vm.params.facet != '')?_c('div',[_vm._v("请选择 "+_vm._s(_vm.params.facet)+" 分类下的型号")]):_vm._e(),_vm._v(" "),(_vm.secondTag.length>1)?_c('div',{staticClass:"labelList1",class:{active: _vm.$route.query.secondT == ''},on:{"click":function($event){return _vm.secondSearch()}}},[_vm._v("全部")]):_vm._e(),_vm._v(" "),_vm._l((_vm.secondTag),function(v,i){return _c('div',{key:i,staticClass:"labelList1",class:{active: _vm.$route.query.secondT == v},on:{"click":function($event){return _vm.secondSearch(v)}}},[_vm._v(_vm._s(v))])})],2):_vm._e()],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"faultCodeLTable"},[_c('div',{attrs:{"id":"resultHeight"}},[_c('div',{staticClass:"list2 sosoList",staticStyle:{"padding":"0 0"}},[_c('ul',{ref:"testUl",staticStyle:{"position":"relative"},attrs:{"id":"resultUl"}},[(_vm.showSecondTag)?_c('div',{staticClass:"mask",on:{"click":function($event){return _vm.closeMask()}}}):_vm._e(),_vm._v(" "),_vm._l((_vm.resultList.bolist),function(o,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toDetail(o, $event, index)}}},[_c('span',{staticStyle:{"overflow":"hidden","text-overflow":"ellipsis","margin":"10px 0 10px","width":"100%"}},[(o.hlFlField == 'desc')?_c('p',{staticClass:"tt newtt",domProps:{"innerHTML":_vm._s(o.pcode? _vm.handlePcode(o.pcode) +'&nbsp;&nbsp;'+ o.hlFl : o.hlFl)}}):_c('p',{staticClass:"tt newtt",domProps:{"innerHTML":_vm._s(o.hlFl +'&nbsp;&nbsp;'+ o.desc)}}),_vm._v(" "),_c('p',{staticClass:"gray_666"},[_vm._v(" 系统："+_vm._s(o.faultTag.replace(/,/g,' / ') || ''))]),_vm._v(" "),_c('p',{staticClass:"carModel"},[_vm._v(" 车型："+_vm._s(o.the_system || ''))])]),_vm._v(" "),_c('Collection',{staticClass:"yuncang",attrs:{"collect-params":{
                    moduleType: o.moduleType,
                    objId: o.sn,
                    queryValue: o.id,
                    favId: o.favId,
                    requestValue: o.hlFlField,
                    proId: o.proId ? o.proId : '',
                    oneList: o
                  }}})],1)}),_vm._v(" "),(_vm.showMore)?_c('div',{staticClass:"loadMore",on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("加载更多\n              ")]):_vm._e(),_vm._v(" "),(_vm.showBottom)?_c('div',{staticStyle:{"margin-top":"25px","width":"92%","padding-bottom":"7px","margin-left":"4%","overflow":"hidden"}},[_c('img',{staticStyle:{"display":"block","width":"100%","border-top-left-radius":"5px","border-top-right-radius":"5px","pointer-events":"none"},attrs:{"src":__webpack_require__(1437)}}),_vm._v(" "),_c('div',{staticClass:"butCon"},[_c('span'),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.canEvent()}}},[_vm._v("\n                    解决\n                    ")]),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.showWindow(1)}}},[_vm._v("\n                    未解决\n                    ")])]),_vm._v(" "),(_vm.showCan)?_c('div',{staticStyle:{"color":"#B10217","float":"left","padding-left":"15px"}},[_vm._v("感谢您的反馈")]):_vm._e()]):_vm._e()],2),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}})],1),_vm._v(" "),(_vm.isShowNoResult)?_c('div',{staticClass:"promptHelp1"},[_vm._m(0),_vm._v(" "),_c('div',{staticStyle:{"margin-right":"20px"},on:{"click":function($event){return _vm.toNoFalCode()}}},[_vm._v("去查故障描述")]),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.toadvancedSearch()}}},[_vm._v("使用高级搜索")])]):_vm._e()])])])]),_vm._v(" "),_c('code-dialog-component',{attrs:{"show":_vm.dialogShow}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v("\n              未查询到结果,请核对故障码输入是否有误"),_c('br'),_vm._v("您可以试试查故障描述\n            ")])}]
module.exports = __webpack_require__.p + "static/img/uploadImg.f86fb45.png";module.exports = __webpack_require__.p + "static/img/dc.6bff750.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(489);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_787ea178_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1088);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2749)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-787ea178"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_787ea178_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_787ea178_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_advancedSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2750);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4a80bf82", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".move-enter-active[data-v-787ea178],.move-leave-active[data-v-787ea178]{-webkit-transition:all .3s linear;transition:all .3s linear;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.move-enter[data-v-787ea178],.move-leave-to[data-v-787ea178]{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}.outer[data-v-787ea178]{width:100%;height:100%;overflow:hidden;background:#f2f2f2;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;font-family:PingFangSC-Regular}.outer .back[data-v-787ea178]{width:100%;height:auto;padding:20px 0}.outer .back .backBtn[data-v-787ea178]{width:230px;height:44px;border:1px solid #ee4545;color:#ee4545;font-size:18px;line-height:44px;margin:0 auto;text-align:center;border-radius:5px;-webkit-border-radius:5px}.outer .empty[data-v-787ea178]{height:100px;line-height:100px;text-align:center;color:#666;font-size:16px}.outer .listBox[data-v-787ea178]{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.outer .listBox .item[data-v-787ea178]{padding:10px;border-bottom:1px solid #f2f2f2;background:#fff}.outer .listBox .item .tit[data-v-787ea178]{font-size:18px;color:#444;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.outer .listBox .item .cont[data-v-787ea178]{font-size:16px;color:#666;margin-top:3px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.outer .mask[data-v-787ea178]{position:fixed;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.7)}.outer .mask .maskCont[data-v-787ea178]{position:absolute;bottom:0;left:0;height:auto;width:100%;background:#fff;z-index:10}.outer .mask .maskCont .maskTit[data-v-787ea178]{height:48px;line-height:48px;border-bottom:1px solid #f2f2f2;text-align:center;position:relative;color:#333}.outer .mask .maskCont .maskTit span[data-v-787ea178]:first-of-type{font-size:18px}.outer .mask .maskCont .maskTit span[data-v-787ea178]:nth-of-type(2){position:absolute;width:48px;height:48px;top:0;right:0;font-size:16px}.outer .mask .maskCont .detailTit[data-v-787ea178]{width:96%;padding:10px 0;margin-left:2%;border-bottom:1px solid #f2f2f2}.outer .mask .maskCont .detailTit p[data-v-787ea178]:first-of-type{color:#333;font-size:20px}.outer .mask .maskCont .detailTit p[data-v-787ea178]:nth-of-type(2){color:#666;font-size:16px}.outer .mask .maskCont .detailCont[data-v-787ea178]{width:96%;padding:15px 0;margin-left:2%;max-height:400px;min-height:200px;color:#333;font-size:16px;overflow-y:auto}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      showMore: false,
      list: [],
      maskShow: false,
      params: {
        queryValue: this.$route.query.keyword,
        pageModel: {
          currentPage: 1,
          pageSize: 10
        }
      },
      result: [],
      isShowEmpty: false,
      displayCode: '',
      descCn: '',
      templateContent: '',
      totalPage: 0,
      totalRecord: 0
    };
  },
  created: function created() {
    var that = this;
    that.getList();
  },
  mounted: function mounted() {},
  methods: {
    getList: function getList() {
      var that = this;
      that._Util.post(this._Api.POST_FALT_CODE_ADVANCEDSEARCH, that.params, function (data) {
        that.totalPage = data.pageModel.totalPage;
        that.totalRecord = data.pageModel.totalRecord;
        if (that.params.pageModel.currentPage >= that.totalPage) {
          that.showMore = false;
        } else {
          that.showMore = true;
        }
        that.result = that.result.concat(data.bolist);
        if (that.result.length == 0) {
          that.isShowEmpty = true;
        } else {
          that.isShowEmpty = false;
        }
      }, function () {}, that, false);
    },
    back: function back() {
      this.$router.go(-1);
    },
    loadMore: function loadMore() {
      var that = this;
      that.params.pageModel.currentPage++;
      that.getList();
    },
    toDetail: function toDetail(item) {
      var that = this;
      this.maskShow = true;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '高级搜索结果页',
        optionType: '点击',
        param1: location.href,
        param2: that.params.queryValue,
        param3: that._Util.randomChar(),
        param4: {
          'queryValue': that.params.queryValue,
          'result': that.totalRecord,
          'type': '故障码高级搜索详情',
          'filter': ''
        }
      }, that);
      this.displayCode = item.displayCode;
      this.descCn = item.descCn;
      this.templateContent = item.templateContent;
    },
    closeMask: function closeMask() {
      this.displayCode = '';
      this.descCn = '';
      this.templateContent = '';
      this.maskShow = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outer"},[_c('div',{staticClass:"back"},[_c('div',{staticClass:"backBtn",on:{"click":_vm.back}},[_vm._v("返回搜索中心")])]),_vm._v(" "),(_vm.isShowEmpty)?_c('div',{staticClass:"empty"},[_vm._v("暂无结果")]):_vm._e(),_vm._v(" "),(!_vm.isShowEmpty)?_c('ul',{staticClass:"listBox"},[_vm._l((_vm.result),function(item){return _c('li',{key:item.id,staticClass:"item",on:{"click":function($event){return _vm.toDetail(item)}}},[_c('div',{staticClass:"tit",domProps:{"innerHTML":_vm._s(item.hlFl)}}),_vm._v(" "),_c('div',{staticClass:"cont"},[_vm._v(_vm._s(item.descCn))])])}),_vm._v(" "),(_vm.showMore)?_c('div',{staticClass:"loadMore",staticStyle:{"margin-bottom":"30px"},on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("加载更多\n    ")]):_vm._e()],2):_vm._e(),_vm._v(" "),_c('transition',{attrs:{"name":"move"}},[(_vm.maskShow)?_c('div',{staticClass:"mask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.closeMask.apply(null, arguments)}}},[_c('div',{staticClass:"maskCont"},[_c('div',{staticClass:"maskTit"},[_c('span',[_vm._v("故障码")]),_vm._v(" "),_c('span',{on:{"click":_vm.closeMask}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"detailTit"},[_c('p',[_vm._v(_vm._s(_vm.displayCode))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.descCn))])]),_vm._v(" "),_c('div',{staticClass:"detailCont",domProps:{"innerHTML":_vm._s(_vm.templateContent)}})])]):_vm._e()])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(492);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_46b30ffe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1089);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2756)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-46b30ffe"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_46b30ffe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_46b30ffe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_closePageComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2757);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0bb51aba", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".newline[data-v-46b30ffe]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mint-msgbox[data-v-46b30ffe]{z-index:2500}.windowtable tr[data-v-46b30ffe]{width:100%;display:block;border-bottom:1px solid #ccc}.windowtable tr td[data-v-46b30ffe]{border-bottom:none}.firstTr[data-v-46b30ffe]{width:100%;display:block;position:relative}.shoucangtf.detalsTable[data-v-46b30ffe]{top:1px}.bg_img li div[data-v-46b30ffe]{display:inline-block;vertical-align:top;color:#000;line-height:25px}.firstTr[data-v-46b30ffe]{padding:10px 0}.window[data-v-46b30ffe]{background:#f2f2f2;font-family:PingFangSC-Regular;padding-top:0}.windowtt[data-v-46b30ffe]{height:48px;line-height:48px;color:#333;padding:0;border-bottom:1px solid #dcdcdc;text-align:center;background:#fff}.windowtt .window_close[data-v-46b30ffe],.windowtt span[data-v-46b30ffe]{font-size:18px}.windowtt .window_close[data-v-46b30ffe]{margin-top:0;padding:0 10px;top:0;right:0;font-size:16px;line-height:48px}.bg_img[data-v-46b30ffe]{background:none;position:relative;font-family:PingFangSC-Regular;box-sizing:border-box;-webkit-box-sizing:border-box}.bg_img .windowtable[data-v-46b30ffe]{padding:0 2%;background:#fff}.firstTr[data-v-46b30ffe]{border-bottom:1px solid #f1f1f1;background:none}.symask[data-v-46b30ffe]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:400px;background:url(" + escape(__webpack_require__(152)) + ") 50% repeat-y;z-index:100;opacity:.6;pointer-events:none}.f161[data-v-46b30ffe]{color:#256ad9}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _collection = _interopRequireDefault(__webpack_require__(137));
var _onlineQa = _interopRequireDefault(__webpack_require__(203));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import PokingMeComponent from '../../components/common/pokingMeComponent.vue'
var _default2 = exports.default = {
  components: {
    Collection: _collection.default,
    OnlineQa: _onlineQa.default
    // PokingMeComponent
  },
  props: {
    result: {
      type: Object,
      require: true,
      default: function _default() {}
    },
    //      showFlag:{
    //        type: Boolean,
    //        default() {
    //          return '';
    //        }
    //      },
    showCollect: {
      type: Boolean,
      require: false,
      default: function _default() {
        return true;
      }
    },
    className: {
      type: String,
      require: false,
      default: function _default() {
        return '';
      }
    },
    keyword: {
      type: String,
      require: false,
      default: function _default() {
        return '';
      }
    },
    hlFlField: {
      type: String,
      require: true,
      default: function _default() {
        return '';
      }
    },
    moduleType: {
      type: Number,
      default: function _default() {
        return 0;
      }
    },
    question: {
      type: String,
      default: function _default() {
        return '';
      }
    }
  },
  data: function data() {
    return {
      clineName: 'details',
      clineName2: 'detalsTable',
      codeText: '0'
      //        thisShight:0
    };
  },
  watch: {
    'question': function question() {
      // console.log(this.question);
    }
  },
  mounted: function mounted() {
    // console.log(this.result)
    var that = this;
    that.codeText = ''; // 此处修改后才可触发updated生命周期
    that.$on('collectResult', function (data) {
      that.$parent.$emit('collectResult', data);
    });
  },
  updated: function updated() {
    var that = this;
    that.$nextTick(function () {
      that.codeText = document.getElementById('code').innerText;
    });
  },
  methods: {
    close: function close() {
      //         this.showFlag = false;
      this.$parent.$emit('closeDetail');
      this.$emit('toggleParentMask', 'close');
    },
    showOhk: function showOhk(solrType, attrName, ohk, obj) {
      if (solrType == 'Product' && attrName == 'ohk' && ohk) {
        var that = this;
        that._Util.post(that._Api.POST_PARTS_INFO_GET, {
          refNo: ohk,
          productType: 11
        }, function (data) {
          that.result.source = data;
          // that.result.source.push(data);
          that.$parent.$emit('keywordIsChange', ohk);
        }, function () {}, that);
      }
    },
    rewriteHtml: function rewriteHtml(solrType, attrName, str) {
      if (!str) return;
      var temp = '';
      if (solrType == 'Product' && attrName == 'ohk') {
        temp = '<a class="aClass">' + str + '</a>';
      } else {
        if (this.keyword) {
          temp = str.replace(new RegExp(this.keyword, 'g'), '<font color="red">' + this.keyword + '</font>').replace(/\n/g, '<br>');
        } else {
          temp = str.replace(/\n/g, '<br>');
        }
      }
      return temp;
    },
    toGuide: function toGuide(postId) {
      var that = this;
      that._Util.post(that._Api.POST_WXAUTH_GET_APPID, {}, function (data) {
        window.location.href = that._Api.HOSTOLD + 'wxauth/kaxiuyunForumDetail.htm?postId=' + postId;
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"100%","width":"100%","position":"absolute","display":"block","top":"0","overflow-y":"hidden","-webkit-overflow-scrolling":"touch","padding-bottom":"50px","z-index":"10"}},[(_vm.moduleType != _vm._Enums.COLLECTION_MODULE.FAULT)?_c('div',{staticClass:"window",staticStyle:{"position":"relative","width":"100%","height":"100%","overflow":"hidden"}},[_c('div',{staticClass:"windowtt"},[_c('span',[_vm._v(_vm._s(_vm.result.attrItems[_vm.result.source[0].solrType][0].pageTitle))]),_vm._v(" "),_c('a',{staticClass:"window_close",on:{"click":function($event){$event.stopPropagation();return _vm.close()}}},[_vm._v("\n        关闭\n      ")])]),_vm._v(" "),_c('div',{staticClass:"bg_img",staticStyle:{"width":"100%","min-height":"300px","position":"absolute","top":"50px","bottom":"0px","overflow-y":"auto"}},[_c('div',{staticStyle:{"position":"relative"}},[_c('div',{staticClass:"symask"}),_vm._v(" "),_vm._l((_vm.result.source),function(o,index){return _c('ul',{key:index,staticClass:"windowtable",staticStyle:{"margin-top":"10px","display":"block","width":"100%"}},_vm._l((_vm.result.attrItems[o.solrType]),function(v,vIndex){return (o[v.name])?_c('li',{key:vIndex,class:{firstTr: !vIndex}},[_c('div',[_c('span',{staticClass:"f161"},[_vm._v(_vm._s(v.title)+":")])]),_vm._v(" "),_c('div',{style:({'vertical-align' : v.name == 'zcth' ? 'top' : 'middle'}),on:{"click":function($event){$event.stopPropagation();return _vm.showOhk(o.solrType, v.name, o[v.name], o)}}},[_c('span',{staticStyle:{"width":"100%"},attrs:{"id":"code"},domProps:{"innerHTML":_vm._s(_vm.rewriteHtml(o.solrType, v.name, o[v.name], o))}})]),_vm._v(" "),(!vIndex && _vm.moduleType && _vm.showCollect)?_c('Collection',{class:_vm.clineName2,attrs:{"collect-params":{
                moduleType: _vm.moduleType,
                objId: o.sn,
                queryValue: o.id,
                favId: o.favId
              },"pri-class":"bjxx"}}):_vm._e()],1):_vm._e()}),0)})],2)]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","text-align":"center"}},[_c('Online-qa',{class:_vm.clineName2,attrs:{"skip-value":_vm.result.source[0].skipValue,"question":_vm.question,"code-text":_vm.codeText,"pri-class":"bjxx"}})],1)]):_c('div',{staticClass:"window"},[_c('div',{staticClass:"windowtt"},[_c('span',{attrs:{"id":"title"}},[_vm._v(_vm._s(_vm.result.the_system))]),_vm._v(" "),_c('a',{staticClass:"window_close",on:{"click":function($event){$event.stopPropagation();return _vm.close()}}},[_vm._v(" 关闭")])]),_vm._v(" "),_c('div',{staticClass:"guzhang",attrs:{"id":"faultCodeDetail"}},[(_vm.result.solrType == 'OBD')?_c('div',[(_vm.result.code)?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.code)}})]):_vm._e(),_vm._v(" "),(_vm.result.desc)?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障描述: ")]),_vm._v(" "),_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.desc)}})]):_vm._e(),_vm._v(" "),(_vm.result.category)?_c('div',[_vm._m(0),_vm._v(" "),_c('p',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.category)}})]):_vm._e(),_vm._v(" "),(_vm.result.check)?_c('div',[_vm._m(1),_vm._v(" "),_c('p',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.check)}})]):_vm._e()]):_c('div',[(_vm.hlFlField == 'pcode')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障P码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.pcode)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'scode')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障闪码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.scode)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'spn' && 'SQFYTHY' == _vm.result.solrType)?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障代码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.spn)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'spn')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" SPN码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.spn)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'fmi')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" FMI码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.fmi)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'spn_fmi')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" SPN_FMI码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.spn_fmi)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'dtcm')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 十六进制故障码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.dtcm)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'dtcm_10')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 十进制故障码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.dtcm_10)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'factory_code')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 厂家自定义码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.factory_code)}})]):_vm._e(),_vm._v(" "),(_vm.hlFlField == 'the_system')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 所属系统:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.the_system)}})]):_vm._e(),_vm._v(" "),(_vm.result.postId)?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16",staticStyle:{"float":"left"}},[_vm._v(" 详情排查: \n          ")]),_vm._v(" "),_c('a',{staticClass:"red right",staticStyle:{"text-decoration":"underline","color":"red","float":"left"},attrs:{"href":"javascript: void(0);"},on:{"click":function($event){$event.stopPropagation();return _vm.toGuide(_vm.result.postId)}}},[_vm._v("\n            图文指南\n          ")])]):_vm._e(),_vm._v(" "),(_vm.result.pcode && _vm.hlFlField != 'pcode')?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障P码:  ")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.result.pcode)}})]):_vm._e(),_vm._v(" "),(_vm.result.desc)?_c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障描述: ")]),_vm._v(" "),_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.desc)}})]):_vm._e(),_vm._v(" "),(_vm.result.symptom && _vm.result.hlFlFidld != 'pcode')?_c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 可能症状:  ")]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.result.symptom)}})]):_vm._e(),_vm._v(" "),(_vm.result.reason)?_c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 可能原因:  ")]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.result.reason)}})]):_vm._e(),_vm._v(" "),(_vm.result.check)?_c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 排查步骤:  ")]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.result.check)}})]):_vm._e(),_vm._v(" "),(_vm.result.other)?_c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 其他提示:  ")]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.result.other)}})]):_vm._e()]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","text-align":"center"}},[_c('Online-qa',{class:_vm.clineName,attrs:{"question":_vm.question + '&text5='
            + (_vm.result.spn_fmi ? _vm.result.spn_fmi + ',' : '')
            + (_vm.result.pcode ? _vm.result.pcode + ',' : '')
            + _vm.result.desc
            + '&text3=' + _vm.result.applicable_car}}),_vm._v(" "),(_vm.moduleType && !_vm.showCollect)?_c('Collection',{class:_vm.clineName,attrs:{"collect-params":{
            moduleType: _vm.moduleType,
            objId: _vm.result.sn,
            queryValue: _vm.result.id,
            favId: _vm.result.favId
          }}}):_vm._e()],1)])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障范畴: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 排查步骤: ")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(490);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_52a2a4e4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1092);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2751)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_52a2a4e4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_52a2a4e4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2752);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2462c64c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".parseInfo .tabnav2 a:first-child span.icony{width:30px;height:30px;background:url(" + escape(__webpack_require__(1625)) + ") -1px no-repeat;background-size:180% 80%}.parseInfo .tabnav2 a:nth-child(2) span.icony{width:30px;height:30px;background:url(" + escape(__webpack_require__(1625)) + ") 100% no-repeat;background-size:240% 99%}.parseInfo .tabnav2 a:first-child.active span.icony{background:url(" + escape(__webpack_require__(1626)) + ") -1px no-repeat;background-size:180% 80%}.parseInfo .tabnav2 a:nth-child(2).active span.icony{background:url(" + escape(__webpack_require__(1626)) + ") 100% no-repeat;background-size:240% 99%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/tabletupiana2.6f2ab7b.png";module.exports = __webpack_require__.p + "static/img/tabletupiana1.ff1eaa6.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _navMenuComponent = _interopRequireDefault(__webpack_require__(1438));
var _parts = _interopRequireDefault(__webpack_require__(2753));
var _mating = _interopRequireDefault(__webpack_require__(2758));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    NavMenuComponent: _navMenuComponent.default,
    Parts: _parts.default,
    Mating: _mating.default
  },
  data: function data() {
    return {
      navMenus: [
      //          {
      //            title: '部件信息',
      //            url: '',
      //            className: '',
      //            active: true
      //          },
      {
        title: '配套信息',
        url: '',
        className: '',
        active: false
      }],
      className: 'tabnav tabnav2',
      checkIndex: this.$route.query.tab || 0,
      matingEngine: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    this.$on('checkMenu', function (obj) {
      this.checkIndex = obj;
    });
    this.$on('checkEngine', function (obj) {
      this.matingEngine = obj;
    });
    // if(that._Util.getQueryString("keyword")=="null"){
    var version = unescape(that._Util.getQueryString('version'));
    that._Util.collectPageView({
      version: that._Util.isApp() ? version : '',
      postUrl: that._Api.POST_COLLECT,
      moduleType: that._Util.isApp() ? '首页' : '微信菜单',
      operate_page: '系统部件',
      optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      title: window.document.title,
      url: window.location.href
    }, that);
    // }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(296);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b55f17c8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(882);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b55f17c8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b55f17c8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_navMenuComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'NavMenuComponent',
  props: {
    navMenus: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    checkIndex: {
      default: function _default() {
        return 0;
      }
    },
    showNumber: {
      default: ''
    }
  },
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {
    checkMenu: function checkMenu(menu, index) {
      return;
      // if (index == this.checkIndex) return;
      // this.$parent.$emit('checkMenu', index)
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"border-top":"0px solid #EDEDED","background":"white"}},_vm._l((_vm.navMenus),function(menu,index){return _c('a',{key:index,class:{active: _vm.checkIndex == index},staticStyle:{"font-weight":"bold","font-size":"16px"},on:{"click":function($event){return _vm.checkMenu(menu, index)}}},[_c('span',{staticClass:"icony"}),_vm._v(" "),_c('span',{staticClass:"word"},[_vm._v(_vm._s(menu.title)+"\n      ")])])}),0)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(491);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a68749aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1090);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2754)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a68749aa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a68749aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a68749aa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_parts_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2755);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("78ba5cd6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".dataList[data-v-a68749aa]{width:100%}.resultCon[data-v-a68749aa]{width:100%;margin:0 auto;padding:10px 0;overflow:hidden;border-bottom:1px solid #ccc;position:relative}.circle[data-v-a68749aa]{width:10px;height:10px;background:#59a0cf;position:absolute;border-radius:50%;float:left;top:50%;margin-top:-5px}.colorSpilt[data-v-a68749aa]{width:100%;height:15px}.partsName[data-v-a68749aa]{font-size:16px;max-width:240px;overflow:hidden;margin-left:12px;float:left;color:#434343}.goNext[data-v-a68749aa]{font-size:20px;color:#ccc;position:absolute;right:3%;margin-top:-15px;top:50%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _codeDialogComponent = _interopRequireDefault(__webpack_require__(133));
var _closePageComponent = _interopRequireDefault(__webpack_require__(313));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(1627));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import PokingMeComponent from '../../../components/common/pokingMeComponent.vue'
// import FooterComponent from '../../../components/common/footerComponent.vue'
var _default = exports.default = {
  components: {
    CodeDialogComponent: _codeDialogComponent.default,
    ClosePageComponent: _closePageComponent.default
    // PokingMeComponent,
    // FooterComponent
  },
  data: function data() {
    return {
      keyword: this.$route.query.keyword || '',
      oldKeyword: '',
      showDetail: false,
      detailResult: {},
      dialogShow: false,
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      question: '?type=2',
      result: {
        list: []
      },
      bool: true,
      contheight: this.$route.query.contHeight
    };
  },
  mounted: function mounted() {
    var that = this;
    setTimeout(function () {
      that.thisHeight = document.body.offsetHeight - 10 + 'px';
    }, 300);
    if (that.$route.query.keyword) {
      that.keyword = that.$route.query.keyword;
      that.search();
    }
    that.$on('closeDetail', function () {
      that.showDetail = false;
      that.detailResult = {};
      that.keyword = that.oldKeyword || that.keyword;
      that.$route.query.keyword = '';
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.$on('verifyCodeCorrect', function () {
      that.dialogShow = false;
      that._fetchData(that);
    });
    that.$on('keywordIsChange', function (data) {
      that.oldKeyword = that._Util.copyObject(that.keyword);
      that.keyword = data;
    });
    if (that.$route.query.keyword && that.keyword) {
      that.search();
    }
    that._Util.setLocalStorage('searchUuid', '');
  },
  methods: {
    search: function search() {
      var that = this;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }

      //        if (that.keyword.length < 2) {
      //          that._Util.showMsgBox('请至少输入两个字符');
      //          return;
      //        }

      //        if (that.patrn.test(that.keyword)) {
      //          that._Util.showMsgBoxThen('输入内容含有特殊字符', () => {
      //            that.keyword = '';
      //          });
      //          return;
      //        }
      that._fetchData(that);
      that.bool = true;
    },
    _fetchData: function _fetchData(self) {
      var that = self;
      that._Util.getUserLog(function () {
        that._Util.setLocalStorage('searchUuid', '');
        that._Util.post(that._Api.POST_PARTS_INFO_OPEN_SEARCH, {
          queryValue: that.keyword
        }, function (data) {
          that.result.list = [];
          if (!data.list.length) {
            that._Util.showMsgBox('小轨没有查到关键信息');
            return;
          }
          that.result.searchNew = data.searchNew;
          that.result.searchUuid = data.searchUuid;
          that._Util.setLocalStorage('searchUuid', data.searchUuid);
          var _iterator = _createForOfIteratorHelper(data.list),
            _step;
          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var o = _step.value;
              var _iterator2 = _createForOfIteratorHelper(_partsTableConfig.default[o.solrType]),
                _step2;
              try {
                for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                  var v = _step2.value;
                  if (o.key === v.name) {
                    that.result.list.push({
                      name: v.title,
                      code: o[o.key]
                    });
                  }
                }
              } catch (err) {
                _iterator2.e(err);
              } finally {
                _iterator2.f();
              }
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
          if (that.bool) {
            that.bool = false;
            localStorage.setItem('searchID', that._Util.randomChar());
            var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
            var version = unescape(that._Util.getQueryString('version'));
            that._Util.collectPageView({
              version: that._Util.isApp() ? version : '',
              postUrl: that._Api.POST_COLLECT,
              url: window.location.href,
              title: '部件信息',
              moduleType: that._Util.isApp() ? typeStr : '微信菜单',
              operate_page: '部件信息',
              optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
              keyword: localStorage.getItem('searchID'),
              param4: {
                'queryValue': that.keyword,
                'result': that.result.list.length,
                'filter': ''
              }
            }, that);
          }
          if (that.result.list.length === 1) {
            that.openDetail(data.list[0][data.list[0].key]);
          }
        }, function () {}, that);
      }, function () {
        that.dialogShow = true;
      }, that);
    },
    toggleParentMask: function toggleParentMask(type) {
      var parentContentBox = window.parent.document.getElementById('contentBox1');
      var parentMask = window.parent.document.getElementById('privMask');
      if (type == 'open') {
        parentMask.style.display = 'block';
        parentContentBox.style.cssText = 'position: fixed; width: 100%;  top: 60px; left : 0; bottom: 0;z-index: 1001';
      } else if (type == 'close') {
        parentMask.style.display = 'none';
        parentContentBox.style.cssText = 'position: relative;width: 100%;overflow-y: scroll;height:' + this.contheight;
      }
    },
    openDetail: function openDetail(code, index, name) {
      // this.toggleParentMask('open')
      //  setTimeout(()=>{
      //   $(".bg_img").scrollTop(0)
      //  },100)

      index = index + 1;
      var that = this;
      that._Util.getUserLog(function () {
        that._Util.post(that._Api.POST_PARTS_INFO_GET, {
          refNo: code
        }, function (data) {
          if (!data.length) {
            that._Util.showMsgBox('小轨没有查到关键信息');
            return;
          }
          that.detailResult = {
            source: data,
            attrItems: _partsTableConfig.default
          };
          that.question = '?type=2&text2=' + data[0].pyq;
          that.showDetail = true;
          var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
          var version = unescape(that._Util.getQueryString('version'));
          that._Util.collectPageView({
            version: that._Util.isApp() ? version : '',
            postUrl: that._Api.POST_COLLECT,
            title: name + code,
            url: window.location.href,
            moduleType: that._Util.isApp() ? typeStr : '微信菜单',
            operate_page: '系统部件',
            optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            keyword: localStorage.getItem('searchID'),
            param4: {
              'queryValue': that.keyword,
              'result': that.result.list.length,
              'filter': ''
            },
            params5: index
          }, that);
        }, function () {}, that);
      }, function () {
        that.dialogShow = true;
      }, that);
    }
  }
};module.exports = JSON.parse("{\"Pump\":[{\"title\":\"油泵型号\",\"name\":\"pmodel\",\"pageTitle\":\"油泵\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"油量计量单元\",\"name\":\"unit\"},{\"title\":\"高压组件\",\"name\":\"pressure\"},{\"title\":\"齿轮泵（叶片泵）\",\"name\":\"gear\"},{\"title\":\"溢流阀\",\"name\":\"tap\"},{\"title\":\"转速传感器\",\"name\":\"speed1\"},{\"title\":\"类型\",\"name\":\"part\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}],\"Product\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"喷油器\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"油嘴编号\",\"name\":\"yz\"},{\"title\":\"油嘴刻印号\",\"name\":\"yzsn\"},{\"title\":\"阀组件号\",\"name\":\"fz\",\"reg\":\"\"},{\"title\":\"密封球型号\",\"name\":\"mfq\"},{\"title\":\"球座型号\",\"name\":\"qz\"},{\"title\":\"电磁铁型号\",\"name\":\"dct\"},{\"title\":\"衔铁组件型号\",\"name\":\"xtzj\"},{\"title\":\"高压密封圈型号\",\"name\":\"gymfq\",\"reg\":\"\"},{\"title\":\"OHK套件型号\",\"name\":\"ohk\",\"className\":\"aClass\"},{\"title\":\"总成替换产品\",\"name\":\"zcth\",\"reg\":\"\"}],\"Rail\":[{\"title\":\"油轨型号\",\"name\":\"smodel\",\"pageTitle\":\"油轨\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"匹配系统压力\",\"name\":\"pressure\"},{\"title\":\"轨压传感器类别\",\"name\":\"ptype\"},{\"title\":\"轨压传感器型号\",\"name\":\"pmodel\",\"reg\":\"\"},{\"title\":\"泄压阀型号\",\"name\":\"xmodel\"},{\"title\":\"压力控制阀型号\",\"name\":\"pymodelyq\"}],\"Ecu\":[{\"title\":\"部件型号\",\"name\":\"ecu_no\",\"pageTitle\":\"部件\"},{\"title\":\"类型\",\"name\":\"ptype\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}],\"Delphi\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"Delphi\"},{\"title\":\"主机厂商\",\"name\":\"engineCompany\"},{\"title\":\"发动机型号及应用\",\"name\":\"engineModel\",\"reg\":\"\"},{\"title\":\"油嘴型号\",\"name\":\"yzModel\",\"reg\":\"\"},{\"title\":\"阀组件型号\",\"name\":\"fzjModel\",\"reg\":\"\"},{\"title\":\"总成替换产品\",\"name\":\"totalReplace\"},{\"title\":\"客户号\",\"name\":\"customerNo\"}],\"Dzpyq\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"电装喷油器\"},{\"title\":\"主机厂商\",\"name\":\"zj\"},{\"title\":\"发动机型号\",\"name\":\"fdj\"},{\"title\":\"应用\",\"name\":\"app\"},{\"title\":\"油嘴型号\",\"name\":\"yz\"},{\"title\":\"阀片型号\",\"name\":\"fp\"},{\"title\":\"密封圈套装\",\"name\":\"mfq\"},{\"title\":\"油嘴紧帽\",\"name\":\"jzjm\"},{\"title\":\"总成替换产品\",\"name\":\"zcth\"}],\"Ohk\":[{\"title\":\"OHK套件型号\",\"name\":\"ohk\",\"pageTitle\":\"OHK套件信息\"},{\"title\":\"阀组件型号\",\"name\":\"fzj\"},{\"title\":\"油嘴型号\",\"name\":\"yz\"},{\"title\":\"密封圈\",\"name\":\"mfq\"},{\"title\":\"支撑圈\",\"name\":\"zcq\"}],\"Sensor\":[{\"title\":\"部件型号\",\"name\":\"sensorNo\",\"pageTitle\":\"部件\"},{\"title\":\"类型\",\"name\":\"ptype\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}]}");/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',[_c('div',{staticClass:"col"},[_c('div',[(!_vm.showDetail)?_c('div',{staticClass:"col1",staticStyle:{"min-height":"500px","height":"100%","width":"100%","overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},style:({'height':_vm.contheight})},[_c('ul',{staticClass:"search",staticStyle:{"width":"100%"}},[(_vm.$route.query.tab!= 0)?_c('li',{staticStyle:{"border":"1px solid #ccc","border-radius":"5px"}},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":"请输入部件型号，如：0445025035"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]):_vm._e(),_vm._v(" "),(_vm.$route.query.tab!= 0)?_c('li',{staticClass:"mt25"},[_c('a',{staticClass:"btn btn_redlight btn_large",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.search()}}},[_vm._v("\n                搜搜\n              ")])]):_vm._e(),_vm._v(" "),_vm._l((_vm.result.list),function(v,index){return _c('li',{key:index,staticClass:"resultCon",on:{"click":function($event){return _vm.openDetail(v.code,index,v.name)}}},[_c('span',{staticClass:"circle"}),_vm._v(" "),_c('div',{staticClass:"partsName"},[_vm._v(_vm._s(v.name + ':' + v.code))]),_vm._v(" "),_c('div',{staticClass:"goNext"},[_vm._v(" >")])])}),_vm._v(" "),(_vm.$route.query.tab!= 0)?_c('li',{staticClass:"tips"},[_c('p',[_vm._v("直接输入部件号查询详细的配件信息，如：")]),_vm._v(" "),_c('p',[_vm._v("喷油器：博世（0445120078），电装（0950006222），德尔福（EJBR03301D）")]),_vm._v(" "),_c('p',[_vm._v("油   泵：0445020077")]),_vm._v(" "),_c('p',[_vm._v("油   轨：0445212001")]),_vm._v(" "),_c('p',[_vm._v("阀组件：F00RJ01657")]),_vm._v(" "),_c('p',[_vm._v("油嘴刻印号： DLLA150P1622")]),_vm._v(" "),_c('p',[_vm._v("ECU：0281020075")]),_vm._v(" "),_c('p',[_vm._v("传感器：0281006067")])]):_vm._e()],2)]):_vm._e()])])]),_vm._v(" "),_c('code-dialog-component',{attrs:{"show":_vm.dialogShow}}),_vm._v(" "),(_vm.showDetail)?_c('Close-page-component',{attrs:{"result":_vm.detailResult,"keyword":_vm.keyword,"module-type":_vm._Enums.COLLECTION_MODULE.PARTS,"question":_vm.question},on:{"toggleParentMask":_vm.toggleParentMask}}):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(493);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0e2d1274_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1091);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2759)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0e2d1274_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0e2d1274_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mating_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2760);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5586b764", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".list1 li{position:relative;padding-left:80px}.list1 li label{position:absolute;left:0;top:0;padding:10px 0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _closePageComponent = _interopRequireDefault(__webpack_require__(313));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(1627));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _codeDialogComponent = _interopRequireDefault(__webpack_require__(133));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import FooterComponent from '../../../components/common/footerComponent.vue'
var _default2 = exports.default = {
  components: {
    ClosePageComponent: _closePageComponent.default,
    PokingMeComponent: _pokingMeComponent.default,
    // FooterComponent,
    CodeDialogComponent: _codeDialogComponent.default
  },
  props: {
    matingEngine: {
      type: String,
      require: false,
      default: function _default() {
        return '';
      }
    }
  },
  data: function data() {
    return {
      keyword: '',
      engine: '',
      engineNo: '',
      engineList: [],
      engineNos: [],
      detailList: [],
      step: 0,
      styleObject: {
        color: 'red'
      },
      showDetail: false,
      result: {},
      heghtClass: {
        heightIcon: '300px',
        overflow: 'scroll'
      },
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      dialogShow: false,
      searchUuid: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that.heghtClass = {
      heightIcon: '80px',
      overflow: 'scroll'
    };
    that.$on('closeDetail', function () {
      that.showDetail = false;
      that.result = {};
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.$on('verifyCodeCorrect', function () {
      that.dialogShow = false;
      that._getDetail(that);
    });

    /* that.engineList = that._Util.getLocalStorage('GG_engineList');
       that.step = 1;
       return;*/

    that._Util.post(that._Api.POST_PARTS_INFO_ENGINE, {}, function (data) {
      that.step = 1;
      // that._Util.setLocalStorage('GG_engineList', data);
      that.engineList = data;
    }, function () {}, that);
  },
  methods: {
    search: function search() {
      var that = this;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }
      //        if (that.patrn.test(that.keyword)) {
      //          that._Util.showMsgBoxThen('输入内容含有特殊字符', () => {
      //            that.keyword = '';
      //          });
      //          return;
      //        }
    },
    getEngineNos: function getEngineNos(engine) {
      console.log(engine);
      var that = this;
      that.engine = engine;
      that.$parent.$emit('checkEngine', engine);
      that._Util.post(that._Api.POST_PARTS_INFO_ENGINENO, {
        engineCompany: engine
      }, function (data) {
        that.searchUuid = that._Util.randomChar();
        that.step = 2;
        that.engineNos = data;
        // that.collectLog(that, engine,data.length);
        localStorage.setItem('searchID', that._Util.randomChar());
        var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? typeStr : '微信菜单',
          operate_page: '配套信息',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: window.document.title,
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': '',
            'result': data.length,
            'filter': engine
          }
        }, that);
      }, function () {}, that);
    },
    getDetail: function getDetail(o, index) {
      var that = this;
      that.engineNo = o;
      that._Util.getUserLog(function (data) {
        that._getDetail(that, index);
      }, function () {
        that.dialogShow = true;
      }, that);
    },
    _getDetail: function _getDetail(self, index) {
      var that = self;
      that._Util.post(that._Api.POST_PARTS_INFO_ENGINE_RESULT, {
        engineCompany: that.engine,
        engineNo: that.engineNo
      }, function (data) {
        if (!data || data.length == 0) {
          that._Util.showMsgBox('小轨没有查到数据！');
          return;
        }
        that.detailList = data;
        that.step = 3;
        index = index + 1;
        var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? typeStr : '微信菜单',
          operate_page: '配套信息',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: window.document.title,
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': '',
            'result': '',
            'filter': that.engine + ';' + that.engineNo
          },
          params5: ''
        }, that);
      }, function () {}, that);
    },
    getNoDetail: function getNoDetail(o, index) {
      if (!o.productType || parseInt(o.productType) > 4) {
        return;
      }
      var that = this;
      that._Util.post(this._Api.POST_PARTS_INFO_GET, {
        refNo: o.refNo
      }, function (data) {
        if (!data || data.length == 0) {
          that._Util.showMsgBox('小轨没有查到数据!');
          return;
        }
        index = index + 1;
        var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? typeStr : '微信菜单',
          operate_page: '配套信息',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: o.productName + ':' + o.refNo,
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': '',
            'result': '',
            'filter': that.engine + ';' + that.engineNo
          },
          params5: ''
        }, that);
        that.result = {
          source: data,
          attrItems: _partsTableConfig.default
        };
        that.showDetail = true;
        that.collectLog(that, o.refNo);
      }, function () {}, that);
    },
    collectLog: function collectLog(self, keyword, length, index) {
      // localStorage.setItem("searchID",that._Util.randomChar())
      // let that = self;
      // that._Util.collectPageView({
      //   version: '',
      //   postUrl: that._Api.POST_COLLECT,
      //   url:window.location.href,
      //   moduleType: '微信菜单',
      //   operate_page: '配套信息',
      //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      //   title:window.document.title,
      //   keyword: localStorage.getItem("searchID"),
      //   param4: {"queryValue" : keyword,"result" : length,"filter":""},
      //   params5:index||''
      // }, that);
    },
    matchingLogo: function matchingLogo() {
      var that = this;
      if (!that.keyword) {
        return;
      }
      if (that.engineList.length > 0) {
        for (var i = 0; i < that.engineList.length; i++) {
          if (that.engineList[i].engineCompany.indexOf(that.keyword) != -1) {
            that.$refs.logoUl.scrollTop = parseInt(i / 4) * 105;
            break;
          }
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.showDetail)?_c('div',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.engine && _vm.engineNo && _vm.step == 3),expression:"engine && engineNo && step == 3"}],staticClass:"col colto"},[_c('ul',{staticClass:"list1 clearfix"},[_c('li',{staticStyle:{"padding-left":"0px"}},[_c('p',{staticClass:"select select2",attrs:{"towindow":"2"},on:{"click":function($event){_vm.step = 1}}},[_vm._v(" "+_vm._s(_vm.engine || '发动机厂商')+" ")])]),_vm._v(" "),_c('li',{staticStyle:{"padding-left":"0px"}},[_c('p',{staticClass:"select select3",attrs:{"towindow":"3"},on:{"click":function($event){_vm.step = 2}}},[_vm._v(" "+_vm._s(_vm.engineNo || '发动机型号')+" ")])])])]),_vm._v(" "),(_vm.step == 1)?_c('div',{staticStyle:{"margin-top":"10px"}},[_c('div',{ref:"logoUl",staticClass:"col col3 mt25",staticStyle:{"position":"absolute","left":"0","bottom":"5px","width":"100%"},style:({top : _vm.heghtClass.heightIcon , overflow : _vm.heghtClass.overflow})},[_c('ul',{staticClass:"blockswrap clearfix",attrs:{"selectidx":"2"}},_vm._l((_vm.engineList),function(o,i){return _c('li',{key:i},[_c('a',{attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.getEngineNos(o.engineCompany)}}},[_c('div',[_c('img',{attrs:{"src":o.engineImgUrl}})]),_vm._v(" "),_c('p',{style:({ color: (o.engineCompany.indexOf(_vm.keyword) != -1 && _vm.keyword) ? 'red' : '' })},[_vm._v("\n                "+_vm._s(o.engineCompany)+"\n              ")])])])}),0),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":1}})],1)]):_vm._e(),_vm._v(" "),(_vm.step == 2)?_c('div',[_c('div',{staticClass:"col mt25"},[_c('ul',{staticClass:"blockswrap clearfix engineModel",attrs:{"selectidx":"3"}},_vm._l((_vm.engineNos),function(o,index){return _c('li',{key:index},[_c('p',{on:{"click":function($event){return _vm.getDetail(o,index)}}},[_vm._v(_vm._s(o))])])}),0)])]):_vm._e(),_vm._v(" "),(_vm.step == 3)?_c('div',{staticClass:"result",staticStyle:{"padding-top":"0px"},attrs:{"name":"maodian"}},[(!_vm.detailList.length)?_c('p',{staticClass:"blue mt10"},[_vm._v("小轨没有查到数据！")]):_vm._e(),_vm._v(" "),(_vm.detailList.length)?_c('p',{staticClass:"blue mt10"},[_vm._v("查询结果"),_c('span',{staticClass:"f12"},[_vm._v(" （点击各项查看详细） ")])]):_vm._e(),_vm._v(" "),_c('hr'),_vm._v(" "),_c('table',{staticClass:"bg_img"},_vm._l((_vm.detailList),function(o,index){return _c('tr',{key:index,attrs:{"towindow":"4"}},[_c('td',{attrs:{"width":"40%"}},[_c('a',[_vm._v(_vm._s(o.productName))])]),_vm._v(" "),_c('td',{attrs:{"width":"60%"},on:{"click":function($event){return _vm.getNoDetail(o,index)}}},[_c('a',{class:{aClass: o.productType && o.productType <= 4}},[_vm._v(_vm._s(o.refNo))])])])}),0),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":2}})],1):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.showDetail)?_c('Close-page-component',{attrs:{"result":_vm.result}}):_vm._e(),_vm._v(" "),_c('code-dialog-component',{attrs:{"show":_vm.dialogShow}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"col tips yuandian"},[_c('p',[_vm._v(" 请选择发动机厂家和型号，小轨将为您列出详细的发动机配套信息。")]),_vm._v(" "),_c('p',{staticClass:"mt5"},[_vm._v(" 可以点击相应部件的部件号查询详细的部件信息。")]),_vm._v(" "),_c('p',{staticClass:"mt5"},[_vm._v(" 点击屏幕上方的“部件信息”可按照部件型号来查询。")])])}]
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"parseInfo"},[(_vm.$route.query.tab !=0)?_c('Nav-menu-component',{class:_vm.className,attrs:{"nav-menus":_vm.navMenus,"check-index":_vm.checkIndex}}):_vm._e()],1),_vm._v(" "),(_vm.checkIndex == 0)?_c('Parts'):_vm._e(),_vm._v(" "),(_vm.checkIndex == 1)?_c('Mating',{attrs:{"mating-engine":_vm.matingEngine}}):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(494);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6ecc8862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1093);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2761)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6ecc8862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6ecc8862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2762);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("60f9564a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".tabzldq{position:fixed;top:0;left:0;width:100%;border-bottom:1px solid #ccc;z-index:1100;height:80px}.tabzldq a{padding:10px 0;width:25%;text-align:center}.tabzldq a,.tabzldq a:first-child{margin-right:0}.tabzldq a span.icony{margin-bottom:5px}.tabzldq a:first-child.active span.icony{display:inline-block;width:25px;height:25px;background:url(" + escape(__webpack_require__(314)) + ") 0 no-repeat;background-size:530% 100%}.tabzldq a:nth-child(2).active span.icony{display:inline-block;width:30px;height:25px;background:url(" + escape(__webpack_require__(314)) + ") -74px no-repeat;background-size:455% 100%}.tabzldq a:nth-child(3).active span.icony{display:inline-block;width:25px;height:25px;background:url(" + escape(__webpack_require__(314)) + ") -38px no-repeat;background-size:530% 100%}.tabzldq a:nth-child(4).active span.icony{display:inline-block;width:27px;height:25px;background:url(" + escape(__webpack_require__(314)) + ") -117px no-repeat;background-size:530% 100%}.tabzldq a:first-child span.icony{display:inline-block;width:25px;height:25px;background:url(" + escape(__webpack_require__(315)) + ") 0 no-repeat;background-size:530% 100%}.tabzldq a:nth-child(2) span.icony{display:inline-block;width:30px;height:25px;background:url(" + escape(__webpack_require__(315)) + ") -74px no-repeat;background-size:455% 100%}.tabzldq a:nth-child(3) span.icony{display:inline-block;width:25px;height:25px;background:url(" + escape(__webpack_require__(315)) + ") -38px no-repeat;background-size:530% 100%}.tabzldq a:nth-child(4) span.icony{display:inline-block;width:27px;height:25px;background:url(" + escape(__webpack_require__(315)) + ") -117px no-repeat;background-size:530% 100%}.tabzldq a:nth-child(4).active span.word{background:url(" + escape(__webpack_require__(124)) + ") 0 no-repeat;background-size:100% 100%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/iconZL1.dcaf80d.png";module.exports = __webpack_require__.p + "static/img/iconZL2.7230231.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _navMenuComponent = _interopRequireDefault(__webpack_require__(1438));
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    NavMenuComponent: _navMenuComponent.default
  },
  data: function data() {
    return {
      transitionName: 'slide-left',
      navMenus: [{
        title: '资料搜索',
        url: '',
        className: '',
        active: true
      }, {
        title: '发动机资料',
        url: '',
        className: '',
        active: false
      }, {
        title: '整车资料',
        url: '',
        className: '',
        active: false
      }, {
        title: '系统资料',
        url: '',
        className: '',
        active: false
      }],
      className: 'tabnav tabnav2 tabzldq',
      checkIndex: 0
    };
  },
  watch: {
    '$route': function $route(to, from) {
      if (to.name == 'engine') {
        switch (parseInt(to.query.checkIndex)) {
          case 2:
            this.checkIndex = 2;
            break;
          case 3:
            this.checkIndex = 1;
            break;
          case 4:
            this.checkIndex = 3;
            break;
        }
      } else if (to.name == 'datumSearch') {
        this.checkIndex = 0;
      }
    }
  },
  beforeMount: function beforeMount() {
    if (this.$route.query.checkIndex) {
      switch (parseInt(this.$route.query.checkIndex)) {
        case 2:
          this.checkIndex = 2;
          break;
        case 3:
          this.checkIndex = 1;
          break;
        case 4:
          this.checkIndex = 3;
          break;
        default:
          this.checkIndex = 0;
          break;
      }
    }
  },
  mounted: function mounted() {
    var that = this;
    if (!that._Util.getQueryString('keyword')) {
      // let typeStr=that._Util.getQueryString("typeStr")==1?"首页":"修车";
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: that._Util.isApp() ? '首页' : '微信菜单',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: window.document.title
      }, that);
    }
    if (that.$route.query.checkIndex) {
      switch (parseInt(that.$route.query.checkIndex)) {
        case 2:
          that.checkIndex = 2;
          break;
        case 3:
          that.checkIndex = 1;
          break;
        case 4:
          that.checkIndex = 3;
          break;
        default:
          that.checkIndex = 0;
          break;
      }
    }
    that.$on('checkMenu', function (index) {
      var path = {};
      var temp = '';
      that.checkIndex = index;
      switch (index) {
        case 0:
          path = 'datumSearch';
          temp = 0;
          that.$emit('searchFlag', true);
          localStorage.setItem('title', '资料搜索');
          break;
        case 1:
          path = 'engine';
          temp = 3;
          localStorage.setItem('title', '发动机资料');
          break;
        case 2:
          path = 'engine';
          temp = 2;
          localStorage.setItem('title', '整车资料');
          break;
        case 3:
          path = 'engine';
          temp = 4;
          localStorage.setItem('title', '系统资料');
          break;
      }
      that.$router.replace({
        name: path,
        query: {
          checkIndex: temp
        }
      });
    });
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"overflow-y":"scroll"}},[_c('Nav-menu-component',{class:_vm.className,attrs:{"check-index":_vm.checkIndex,"nav-menus":_vm.navMenus}}),_vm._v(" "),_c('div',{staticStyle:{"height":"80px"}}),_vm._v(" "),_c('router-view',{staticClass:"child-view",attrs:{"class-name":_vm.className}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(495);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2d90d76e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1094);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2763)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2d90d76e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2d90d76e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_datumSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2764);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2e243b7b", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{height:100%;overflow:hidden}.zltypelist{margin:2px 0;padding-bottom:50px}.zltypelist>ul{overflow:hidden;position:relative;padding:10px;margin:0 0 10px;background:#fff}.zltypelist>ul li{float:left;line-height:20px}.zltypelist>ul li.li3{float:right;text-align:right}.zltypelist>ul li.li1{width:45px;height:60px}.zltypelist>ul li.li2{margin-left:10px;width:80%;position:relative}.zltypelist>ul li.li2>a{color:#1766b3}.zltypelist>ul li.li2>a>span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zltypelist>ul li.li1 img{width:100%;height:100%}.zltypelist>ul li.li1>a{display:inline-block;width:100%;height:100%}.zltypelist>ul li.li2 img{vertical-align:middle;width:10px;height:14px;margin-top:-2px}.zltypelist>ul li.li2 p,.zltypelist>ul li.li3 span{font-size:12px;color:gray}.zltypelist>ul li.li3 a{display:inline-block;width:85px;height:40px;line-height:40px;background:#d41116;color:#fff;border-radius:5px;text-align:center}.zlscword{margin:30px 10px}.zlscword .yuanxinl{padding-left:15px;background:url(" + escape(__webpack_require__(2765)) + ") left 7px no-repeat;background-size:8px 8px;color:#8f8f8f;line-height:20px}.zlscimg{width:100%;text-align:center}.zlscinput{margin:0 10px;overflow:hidden}.zlscinput input.text{width:99%;height:50px;line-height:50px;font-size:14px;border:1px solid #ccc;border-radius:5px;margin-bottom:10px;color:#333}.zlscinput input.button{width:100%;height:50px;text-align:center;font-size:16px;background:#d41116;color:#fff;border-radius:5px}.zlsearcher{width:100%}.zlscimg{height:90px}.zlscimg img{width:78px;height:66px;margin-top:10px}.zltypelist>ul li.li2 .textCheck{position:absolute;right:0;bottom:0;width:50px;height:40px;background:red}.zltypelist>ul li.li2 .textCheck button{text-align:center;color:#fff;width:100%;height:100%}.zltypelist>ul li.li2 .textCheck button.active{opacity:.5}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/yuandian.caf5c7a.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _codeDialogComponent = _interopRequireDefault(__webpack_require__(133));
var _paginationComponent = _interopRequireDefault(__webpack_require__(809));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import Collection from '../../../components/common/collection.vue'
var _default = exports.default = {
  components: {
    PaginationComponent: _paginationComponent.default,
    CodeDialogComponent: _codeDialogComponent.default,
    // Collection,
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      dialogShow: false,
      keyword: '',
      searchFlag: true,
      id: '',
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      reload: '',
      result: {},
      resource_url: this._Api.POST_DATAUM_LIST,
      params: {
        queryValue: this.keyword,
        searchUuid: this._Util.getLocalStorage('searchUuid'),
        pageModel: {
          currentPage: 1,
          pageSize: 10
        }
      },
      resultList: [],
      searchDisable: false
    };
  },
  mounted: function mounted() {
    var that = this;
    that.keyword = that.$route.query.keyword || '';
    that.params.queryValue = that.keyword;
    that.$parent.$on('searchFlag', function (data) {
      that.searchFlag = data;
    });
  },
  methods: {
    search: function search(flag) {
      var that = this;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }
      if (that.keyword.length < 2) {
        that._Util.showMsgBox('请至少输入两个字符');
        return;
      }
      if (that.patrn.test(that.keyword)) {
        that._Util.showMsgBoxThen('输入内容含有特殊字符', function () {
          that.keyword = '';
        });
        return;
      }
      localStorage.setItem('searchID', that._Util.randomChar());
      // let typeStr=that._Util.getQueryString("typeStr")==1?"首页":"修车";

      that.searchDisable = true;
      that.searchFlag = false;
      that.params.queryValue = that.keyword;
      var query = that._Util.copyObject(that.$route.query);
      if (flag) {
        that.params.searchUuid = '';
        that._Util.setLocalStorage('searchUuid', '');
        query.currentPageNum = 1;
        query.keyword = that.keyword;
        query.random = Math.floor(Math.random() * 10000 + 1);
      }
      that.$router.replace({
        query: query
      });
    },
    updateResource: function updateResource(data) {
      var that = this;
      that._Util.collectPageView({
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '资料大全',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: '资料搜索',
        keyword: localStorage.getItem('searchID'),
        param4: {
          'queryValue': that.keyword,
          'result': data.pageModel.totalRecord,
          'filter': ''
        }
      }, that);
      this.searchDisable = false;
      this.resultList = data;
      this.params.searchUuid = data.searchUuid;
      this._Util.setLocalStorage('searchUuid', data.searchUuid || '');
      document.getElementById('scrollwrapper').scrollTop = 0;
    },
    handleScroll: function handleScroll(e) {
      var currentScrollPosition = e.srcElement.scrollTop;
      this.scrollPosition = currentScrollPosition;
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    viewFiles: function viewFiles(item, index) {
      index = index + 1;
      var that = this;
      var url = that._Api.HOSTOLD + '/wxauth/searchDataTree/fileView.htm?fileId=' + item.id;

      // let typeStr=that._Util.getQueryString("typeStr")==1?"首页":"修车";
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '资料大全',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: '资料搜索',
        keyword: localStorage.getItem('searchID'),
        param4: {
          'queryValue': that.keyword,
          'result': localStorage.getItem('totalPage'),
          'filter': ''
        },
        params5: that.resultList.pageModel.currentPage + ';' + index
      }, that);
      that._Util.openPdf(item.sn, item.fileType.indexOf('PDF') != -1, function () {
        window.location.href = url;
      }, that);
    }
  },
  beforeRouteUpdate: function beforeRouteUpdate(to, from, next) {
    next();
    this.reload = Date.parse(new Date()).toString();
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(255);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50c8325a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(840);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2041)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50c8325a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50c8325a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2042);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4f603e7f", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".pagenana{position:relative;width:80px}.pagenana input.pageIndex{left:0}.pagenana input.pageIndex,.pagenana input.pageMax{position:absolute;width:35px;line-height:35px;text-align:center}.pagenana input.pageMax{right:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _codeDialogComponent = _interopRequireDefault(__webpack_require__(133));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {
    CodeDialogComponent: _codeDialogComponent.default
  },
  props: {
    resource_url: {
      type: String,
      required: true
    },
    reload: {
      type: String,
      required: false
    },
    styles: {},
    custom_template: {},
    options: {
      type: Object,
      required: false,
      default: function _default() {
        return {};
      }
    },
    params: {
      type: Object,
      required: true,
      default: function _default() {
        return {
          pageModel: {
            currentPage: 1,
            pageSize: 10
          }
        };
      }
    }
  },
  data: function data() {
    return {
      last_page: 0,
      pageShow: true,
      loading: false,
      dialogShow: false
    };
  },
  watch: {
    resource_url: function resource_url() {
      this.search();
    },
    reload: function reload(flag) {
      this.params.pageModel = {
        currentPage: 1,
        pageSize: 10
      };
      this.search();
    }
  },
  mounted: function mounted() {
    var that = this;
    //      that._Util.post(that._Api.POST_FALT_CODE_LIST,(data) => {
    //        alert(data)
    //      })
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.$on('verifyCodeCorrect', function () {
      that.dialogShow = false;
      that.fetchData('', that);
    });
  },
  created: function created() {
    this.search();
  },
  methods: {
    search: function search(pageUrl) {
      var that = this;
      that.params.pageModel = {
        currentPage: that.$route.query.currentPageNum || 1,
        pageSize: 10
      };
      that._Util.getUserLog(function (data) {
        that.fetchData(pageUrl, that);
      }, function () {
        that.dialogShow = true;
      }, that);
    },
    fetchData: function fetchData(pageUrl, self) {
      var that = self;
      pageUrl = pageUrl || that.resource_url;
      that.loading = true;
      that._Util.post(pageUrl, that.params, function (data) {
        that.pageShow = true;
        that.loading = false;
        that.$options.methods.handleResponseData(data, that);
      }, function () {
        that.pageShow = false;
        that.params.pageModel.currentPage = 0;
        that.loading = false;
      }, that);
    },
    handleResponseData: function handleResponseData(response, that) {
      that.makePagination(response, that);
      that.$emit('update', response);
      localStorage.setItem('totalPage', response.pageModel.totalRecord);
    },
    makePagination: function makePagination(data, that) {
      var pageModel = data.pageModel;
      that.current_page = pageModel.currentPage;
      that.last_page = pageModel.totalPage;
      that.next_page_url = that.current_page === that.last_page ? null : that.resource_url;
      that.prev_page_url = that.current_page === 1 ? null : that.resource_url;
    },
    pageUp: function pageUp() {
      if (this.params.pageModel.currentPage <= 1) {
        this._Util.showMsgBox('已经是第一页');
        return;
      }
      this.params.pageModel.currentPage--;
      // this.fetchData();
      this._setUrlPage(this);
    },
    pageDown: function pageDown() {
      if (this.params.pageModel.currentPage > this.last_page - 1) {
        this._Util.showMsgBox('已经是最后一页');
        return;
      }
      this.params.pageModel.currentPage++;
      // this.fetchData();
      this._setUrlPage(this);
    },
    _setUrlPage: function _setUrlPage(self) {
      var that = self;
      var query = that._Util.copyObject(that.$route.query);
      query.currentPageNum = that.params.pageModel.currentPage;
      localStorage.currentPage = that.params.pageModel.currentPage;
      that.$router.replace({
        query: query
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.pageShow)?_c('div',{staticClass:"pagebtn"},[_c('input',{staticClass:"pageprve",attrs:{"type":"button","disabled":_vm.loading,"value":"上一页"},on:{"click":function($event){return _vm.pageUp()}}}),_vm._v(" "),_c('div',{staticClass:"pagenana"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.pageModel.currentPage),expression:"params.pageModel.currentPage"}],staticClass:"pageIndex",attrs:{"type":"text","readonly":""},domProps:{"value":(_vm.params.pageModel.currentPage)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params.pageModel, "currentPage", $event.target.value)}}}),_vm._v("\n    /\n    "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.last_page),expression:"last_page"}],staticClass:"pageMax",attrs:{"type":"text","readonly":""},domProps:{"value":(_vm.last_page)},on:{"input":function($event){if($event.target.composing){ return; }_vm.last_page=$event.target.value}}})]),_vm._v(" "),_c('input',{staticClass:"pagenext",attrs:{"type":"button","disabled":_vm.loading,"value":"下一页"},on:{"click":function($event){return _vm.pageDown()}}}),_vm._v(" "),_c('code-dialog-component',{attrs:{"show":_vm.dialogShow}})],1):_vm._e()}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.searchFlag && !_vm.$route.query.keyword)?_c('div',[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"zlscinput"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],staticClass:"text",attrs:{"type":"text","placeholder":"请输入查询信息的关键字"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('button',{staticClass:"inputSubmit",staticStyle:{"width":"100%"},attrs:{"type":"button","disabled":_vm.searchDisable},on:{"click":function($event){return _vm.search(true)}}},[_vm._v("搜搜")])]),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":1}})],1):_vm._e(),_vm._v(" "),(!_vm.searchFlag || _vm.$route.query.keyword)?_c('div',[_c('div',{staticClass:"faultCodeSeach",staticStyle:{"margin-top":"0px"}},[_c('div',{staticClass:"sosoformSearch"},[_c('div',{staticClass:"submit"},[_c('input',{staticClass:"inputSubmit",attrs:{"type":"button","value":"搜搜"},on:{"click":function($event){return _vm.search(true)}}})]),_vm._v(" "),_c('div',{staticClass:"input"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],staticClass:"inputText",attrs:{"type":"text","placeholder":"请输入搜索关键字"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})])])]),_vm._v(" "),_c('div',{staticStyle:{"bottom":"52px","top":"152px"},attrs:{"id":"scrollwrapper"}},[_c('div',{staticClass:"faultCodeLTable",staticStyle:{"height":"100%"}},[_c('div',{staticStyle:{"height":"100%"},attrs:{"id":"resultHeight"}},[(_vm.resultList.bolist != '')?_c('div',{staticClass:"zltypelist findlist findlistheight"},[_vm._l((_vm.resultList.bolist),function(o,index){return _c('ul',{key:index,staticClass:"brand",on:{"click":function($event){return _vm.viewFiles(o,index)}}},[_c('li',{staticClass:"li1"},[_c('a',{attrs:{"href":"javascript: void(0);"}},[(o.fileType.indexOf('JPG') != -1 || o.fileType.indexOf('PNG') != -1 || o.fileType.indexOf('BMP') != -1 || o.fileType.indexOf('GIF') != -1)?_c('img',{attrs:{"src":__webpack_require__(810)}}):_vm._e(),_vm._v(" "),(o.fileType.indexOf('PDF') != -1)?_c('img',{attrs:{"src":__webpack_require__(811)}}):_vm._e(),_vm._v(" "),(o.fileType.indexOf('MP4') != -1 || o.fileType.indexOf('AVI') != -1 || o.fileType.indexOf('MPG') != -1 || o.fileType.indexOf('WMV') != -1 || o.fileType.indexOf('ASF') != -1)?_c('img',{attrs:{"src":__webpack_require__(1439)}}):_vm._e()])]),_vm._v(" "),_c('li',{staticClass:"li2"},[_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('span',{domProps:{"innerHTML":_vm._s(o.fileName)}})]),_vm._v(" "),_c('p',[_c('img',{attrs:{"src":__webpack_require__(1440)}}),_vm._v("\n                  推荐热度:"),_c('span',[_vm._v(_vm._s(o.fileDownload))])]),_vm._v(" "),_c('p',[_vm._v("\n                  文件大小: "),_c('span',{domProps:{"textContent":_vm._s(_vm.calculateFileSize(o.fileLength))}})])])])}),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}})],2):_vm._e(),_vm._v(" "),(_vm.resultList.bolist == '')?_c('p',{staticClass:"promptHelp"},[_vm._v("\n            提示：小轨绞尽脑汁也没查到您输入的故障码，请核对故障码输入是否有误。\n          ")]):_vm._e()])])]),_vm._v(" "),_c('Pagination-component',{attrs:{"resource_url":_vm.resource_url,"reload":_vm.reload,"params":_vm.params},on:{"update":_vm.updateResource}})],1):_vm._e(),_vm._v(" "),_c('code-dialog-component',{attrs:{"show":_vm.dialogShow}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"zlscimg"},[_c('img',{attrs:{"src":__webpack_require__(2766)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"zlscword"},[_c('p',{staticClass:"yuanxinl"},[_vm._v("在这里您可以检索查阅各种发动机资料，整车资料，系统部件资料。海量资料等你来查\n      ")]),_vm._v(" "),_c('p',{staticClass:"yuanxinl"},[_vm._v("请输入正确关键字“EDC7”“潍柴”“后处理”等\n      ")]),_vm._v(" "),_c('p',{staticClass:"yuanxinl"},[_vm._v("您可以直接点击文件进行查看，文件偏大的需稍等片刻\n      ")])])}]
module.exports = __webpack_require__.p + "static/img/zlphoto.de22fba.png";module.exports = __webpack_require__.p + "static/img/zlpdf.e5b68a1.png";module.exports = __webpack_require__.p + "static/img/zlvidio.30a68a8.png";module.exports = __webpack_require__.p + "static/img/zlhuo.432cade.png";module.exports = __webpack_require__.p + "static/img/zlsearcherl.24dccb4.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(496);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a5cbf140_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1096);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a5cbf140_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a5cbf140_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engine_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _brandLogoComponent = _interopRequireDefault(__webpack_require__(2767));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    BrandLogoComponent: _brandLogoComponent.default,
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      logoUrl: this._Api.POST_DATAUM_LOGO,
      params: {
        parentId: this.$route.query.checkIndex
      }
    };
  },
  mounted: function mounted() {
    var that = this;
    // var operate_page
    // if (that.$route.query.checkIndex == 0) {
    //   operate_page = '资料搜索'
    // } else if (that.$route.query.checkIndex == 3) {
    //   operate_page = '发动机资料'
    // } else if (that.$route.query.checkIndex == 2) {
    //   operate_page = '整车资料'
    // } else if (that.$route.query.checkIndex == 4) {
    //   operate_page = '系统资料'
    // }
    that.$on('checkLogo', function (obj) {
      localStorage.setItem('searchID', that._Util.randomChar());
      // alert(0)
      // that._Util.collectPageView({
      //   version: '',
      //   postUrl: that._Api.POST_COLLECT,
      //   moduleType: (that._Util.isApp() ? '首页':'微信菜单'),
      //   operate_page: operate_page,
      //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      // }, that);
      that._Util.log(obj);
      var urlParams = {
        name: 'datumList',
        query: {
          parentId: obj.parentId,
          logoId: obj.id,
          keyword: obj.treeName,
          checkIndex: that.$route.query.checkIndex
        }
      };
      that.$router.push(urlParams);
    });
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(497);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2efa6f35_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1095);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2efa6f35_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2efa6f35_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandLogoComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {},
  props: {
    title: {
      type: String,
      require: false,
      default: function _default() {
        return '';
      }
    },
    btnValue: {
      type: String,
      require: false,
      default: function _default() {
        return '搜索';
      }
    },
    params: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    logoUrl: {
      type: String,
      default: function _default() {
        return '';
      }
    }
  },
  data: function data() {
    return {
      keyword: '',
      resultList: [],
      placeholder: '请输入想要查询的系统厂家',
      heghtClass: {
        heightIcon: '300px',
        overflow: 'scroll'
      }
    };
  },
  watch: {
    '$route': function $route(to, from) {
      this.search({
        parentId: to.query.checkIndex
      });
      switch (to.query.checkIndex) {
        case 2:
          this.placeholder = '请输入想要查询的系统厂家';
          break;
        case 3:
          this.placeholder = '请输入想要查询的系统厂家';
          break;
        case 4:
          this.placeholder = '请输入想要查询的系统厂家';
          break;
      }
    },
    keyword: function keyword() {
      this.matchingLogo(false);
    }
  },
  mounted: function mounted() {
    /*
        parentId: 整车2 发动机3 系统4
       */

    //      console.log(this.heightClass.heightIcon)
    //      console.log(screen.height)
    //      this.heightClass.heightIcon = (screen.height - 180) + 'px'
    this.heghtClass = {
      heightIcon: document.documentElement.clientHeight - 155 + 'px',
      overflow: 'scroll'
    };
    this.search();
  },
  methods: {
    checkLogo: function checkLogo(o) {
      this._Util.setLocalStorage('searchUuid', '');
      this.$parent.$emit('checkLogo', o);
    },
    search: function search(params) {
      var that = this;
      that._Util.post(that._Api.POST_DATAUM_LOGO, params || that.params, function (data) {
        that.resultList = data;
      }, function () {}, that);
    },
    matchingLogo: function matchingLogo(formSearch) {
      var that = this;
      if (!that.keyword) {
        return;
      }
      var flag = false;
      if (that.resultList.length > 0) {
        for (var i = 0; i < that.resultList.length; i++) {
          if (that.resultList[i].treeName.indexOf(that.keyword) != -1) {
            that.$refs.logoUl.scrollTop = parseInt(i / 4) * 105;
            flag = true;
            break;
          }
        }
      }
      if (!flag && formSearch) {
        that._Util.showMsgBoxConfirm('未查找到您要查询的厂商，是否进入到在线问答?', function (action) {
          if (action) {
            window.location.href = that._Api.HOSTOLD + '/wxauth/onlineQA.htm?status=5';
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"col col1 mt25"},[_c('ul',{staticClass:"window_search"},[_c('li',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"type":"text","maxlength":20,"placeholder":_vm.placeholder},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('a',{staticClass:"btn btn_redlight",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.matchingLogo(true)}}},[_vm._v(_vm._s(_vm.btnValue))])])])]),_vm._v(" "),_c('div',{staticClass:"col col3 mt25"},[_c('ul',{ref:"logoUl",staticClass:"blockswrap clearfix",style:({height : _vm.heghtClass.heightIcon , overflow : _vm.heghtClass.overflow}),attrs:{"selectidx":"2"}},_vm._l((_vm.resultList),function(o,i){return _c('li',{key:i},[_c('a',{attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.checkLogo(o, $event)}}},[_c('div',[_c('img',{attrs:{"src":o.fileUrl}})]),_vm._v(" "),_c('p',{style:({ color: (o.treeName.indexOf(_vm.keyword) != -1 && _vm.keyword) ? 'red' : '' })},[_vm._v("\n            "+_vm._s(o.treeName)+"\n          ")])])])}),0)])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticStyle:{"height":"10px"}}),_vm._v(" "),_c('Brand-logo-component',{attrs:{"logo-url":_vm.logoUrl,"params":_vm.params}}),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":1}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(498);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_230e8dfe_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1097);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2768)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_230e8dfe_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_230e8dfe_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_datumList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2769);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7c2471f3", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".zltypelist{margin:2px 0;padding-bottom:50px}.zltypelist>ul{overflow:hidden;position:relative;padding:10px;margin:0 0 10px;background:#fff}.zltypelist>ul li{float:left;line-height:20px}.zltypelist>ul li.li3{float:right;text-align:right}.zltypelist>ul li.li1{width:45px;height:60px}.zltypelist>ul li.li2{margin-left:10px;width:80%;position:relative}.zltypelist>ul li.li2>a{color:#1766b3}.zltypelist>ul li.li2>a>span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zltypelist>ul li.li1 img{width:100%;height:100%}.zltypelist>ul li.li1>a{display:inline-block;width:100%;height:100%}.zltypelist>ul li.li2 img{vertical-align:middle;width:10px;height:14px;margin-top:-2px}.zltypelist>ul li.li2 p,.zltypelist>ul li.li3 span{font-size:12px;color:gray}.zltypelist>ul li.li3 a{display:inline-block;width:85px;height:40px;line-height:40px;background:#d41116;color:#fff;border-radius:5px;text-align:center}.labelList{float:left;height:30px;line-height:30px;border-radius:3px;text-align:center;width:22.5%;margin-left:2%;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:5px;margin-top:5px;border:none;background:#fff;box-shadow:inset 0 0 1px 1px #aaa}.labelList.group2{margin-top:5px;margin-bottom:0}.labelList.group1{margin-top:6px;margin-bottom:0}.labelList.active{background:#1766b3;color:#fff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _paginationComponent = _interopRequireDefault(__webpack_require__(809));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import Collection from '../../components/common/collection.vue'
var _default = exports.default = {
  components: {
    PaginationComponent: _paginationComponent.default,
    // Collection,
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      reload: '',
      resultList: [],
      resource_url: this._Api.POST_DATAUM_LIST,
      params: {
        queryValue: '',
        searchUuid: this._Util.getLocalStorage('searchUuid'),
        pageModel: {
          currentPage: 1,
          pageSize: 10
        }
      },
      parentId: '',
      logoId: '',
      labelList: [],
      labelId: '',
      showPage: false,
      checkIndex: '-1',
      brandHeight: {
        height: '300px',
        overflow: 'scroll'
      },
      tableLength: 0,
      showFlag: true,
      scrollTops: 0,
      scrollPosition: 0,
      rowIndex: 1,
      firstRow: true,
      secondRow: true,
      clineName: 'yuncang yuncangziliao',
      boolfirst: true,
      pagetotal: ''
    };
  },
  watch: {
    '$route': function $route(to, from) {
      this.labelId = this.$route.query.labelId;
      this.search();
    }
  },
  beforeMount: function beforeMount() {
    // let engineParams = this._Util.getLocalStorage('engineParams');
    this.parentId = this.$route.query.parentId;
    this.logoId = this.$route.query.logoId;
    if (parseInt(this.parentId) != -1) {
      this.params.df = 'parentId';
    }
  },
  mounted: function mounted() {
    var that = this;
    // 根据logoId查询分类
    that._Util.post(that._Api.POST_DATAUM_LOGO, {
      parentId: that.logoId
    }, function (data) {
      that.labelList = data;
      if (that.$route.query && that.$route.query.labelId) {
        that.labelId = that.$route.query.labelId;
        that.params.queryValue = that.labelId;
      } else {
        var query = that._Util.copyObject(that.$route.query);
        query.labelId = data[0].id;
        that.$router.replace({
          query: query
        });
        that.params.queryValue = data[0].id;
      }
      var indexs = localStorage.getItem('indexs') || 0;
      localStorage.setItem('filter', data[indexs].treeName);
      that.showPage = true;
      that.getScrollHeight();
    }, function () {}, that);
    that.$on('colectCheck', function (data) {
      console.log(data);
    });
  },
  methods: {
    search: function search(flag) {
      if (flag) this.params.queryValue = '';
      this.params.queryValue = this.labelId;
      this.reload = Date.parse(new Date()).toString();
    },
    updateResource: function updateResource(data) {
      var that = this;
      if (that.pagetotal) {
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? '首页' : '微信菜单',
          operate_page: '资料大全',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: localStorage.getItem('title'),
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': '',
            'result': data.pageModel.totalRecord,
            'filter': decodeURI(escape(that._Util.getQueryString('keyword'))) + ';' + localStorage.getItem('filter')
          }
        }, that);
        that.pagetotal = false;
      }
      this.resultList = data;
      this.params.searchUuid = data.searchUuid;
      this._Util.setLocalStorage('searchUuid', data.searchUuid);
      document.getElementById('scrollwrapper').scrollTop = 0;
      if (that.boolfirst) {
        that.boolfirst = false;
        localStorage.setItem('searchID', that._Util.randomChar());
        // let typeStr=that._Util.getQueryString("typeStr")==1?"首页":"修车";
        var _version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? _version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? '首页' : '微信菜单',
          operate_page: '资料大全',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: localStorage.getItem('title'),
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': '',
            'result': data.pageModel.totalRecord,
            'filter': decodeURI(escape(that._Util.getQueryString('keyword'))) + ';' + localStorage.getItem('filter')
          }
        }, that);
      }
    },
    getScrollHeight: function getScrollHeight() {
      var that = this;
      that.tableLength = that.labelList.length;
      that.tableLength = that.labelList.length;
      if (that.firstRow == false || that.secondRow == false) {
        that.brandHeight = {
          height: document.documentElement.clientHeight - 75 - 40 - 55 + 'px',
          overflow: 'scroll'
        };
        return;
      }
      that.brandHeight = {
        height: document.documentElement.clientHeight - 75 - Math.ceil(that.tableLength / 4) * 40 - 55 + 'px',
        overflow: 'scroll'
      };
    },
    checkedLabel: function checkedLabel(o, index, rowIndex) {
      var that = this;
      that.labelId = o.id;
      that.checkIndex = index;
      that.rowIndex = rowIndex;
      var query = that._Util.copyObject(that.$route.query);
      query.labelId = o.id;
      query.currentPageNum = 1;
      that.$router.replace({
        query: query
      });
      that.pagetotal = true;
      // that.search();
      localStorage.setItem('filter', o.treeName);
      localStorage.setItem('indexs', index || 0);
    },
    // checkLabelAll() {
    //   const that = this
    //   that.labelId = ''
    //   const query = that._Util.copyObject(that.$route.query)
    //   query.labelId = o.id
    //   query.currentPageNum = 1
    //   that.$router.replace({ query: query })
    //   this.search()
    // },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    viewFiles: function viewFiles(item, index) {
      index = index + 1;
      var that = this;
      var url = that._Api.HOSTOLD + 'wxauth/searchDataTree/fileView.htm?fileId=' + item.id;
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '资料大全',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: localStorage.getItem('title'),
        keyword: localStorage.getItem('searchID'),
        param4: {
          'queryValue': '',
          'result': localStorage.getItem('totalPage'),
          'filter': decodeURI(escape(that._Util.getQueryString('keyword'))) + ';' + localStorage.getItem('filter')
        },
        params5: that.resultList.pageModel.currentPage + ';' + index
      }, that);
      that._Util.getUserStatus(that, function () {
        // let typeStr=that._Util.getQueryString("typeStr")==1?"首页":"修车";

        that._Util.openPdf(item.sn, item.fileType.indexOf('PDF') != -1, function () {
          window.location.href = url;
        }, that);
      }, function () {}, {
        name: that.$route.name,
        fullPath: that.$route.fullPath
      }, that._Enums.ENUMS_USER_STATUS.VIP);
    },
    handleScroll: function handleScroll(e) {
      var that = this;
      var currentScrollPosition = e.srcElement.scrollTop;
      if (currentScrollPosition > that.scrollPosition) {
        if (that.rowIndex == 1) {
          that.firstRow = true;
          that.secondRow = false;
        } else if (that.rowIndex == 2) {
          that.firstRow = false;
          that.secondRow = true;
        }
        that.getScrollHeight();
      } else {
        that.firstRow = true;
        that.secondRow = true;
        that.getScrollHeight();
      }
      that.scrollPosition = currentScrollPosition;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showFlag)?_c('div',{staticClass:"labelAll",staticStyle:{"background":"white"}},[_vm._l((_vm.labelList),function(o,index){return (index < 4 && _vm.firstRow)?_c('div',{key:index,staticClass:"labelList group1",class:{active: _vm.$route.query.labelId == o.id},on:{"click":function($event){return _vm.checkedLabel(o, index, 1)}}},[_vm._v("\n\n      "+_vm._s(o.treeName)+"\n    ")]):_vm._e()}),_vm._v(" "),_vm._l((_vm.labelList),function(o,index){return (index >= 4 && _vm.secondRow)?_c('div',{key:index,staticClass:"labelList group2",class:{active: _vm.$route.query.labelId == o.id},on:{"click":function($event){return _vm.checkedLabel(o, index, 2)}}},[_vm._v("\n      "+_vm._s(o.treeName)+"\n    ")]):_vm._e()})],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"scrollfixed"},[_c('div',{staticClass:"zltypelist findlist findlistheight",style:({ height : _vm.brandHeight.height , overflow : _vm.brandHeight.overflow}),attrs:{"id":"scrollwrapper"},on:{"scroll":_vm.handleScroll}},[_vm._l((_vm.resultList.bolist),function(o,index){return _c('ul',{key:index,staticClass:"brand",on:{"click":function($event){return _vm.viewFiles(o,index)}}},[_c('li',{staticClass:"li1"},[_c('a',{attrs:{"href":"javascript: void(0);"}},[(o.fileType.indexOf('JPG') != -1 || o.fileType.indexOf('PNG') != -1 || o.fileType.indexOf('BMP') != -1 || o.fileType.indexOf('GIF') != -1)?_c('img',{attrs:{"src":__webpack_require__(810)}}):_vm._e(),_vm._v(" "),(o.fileType.indexOf('PDF') != -1)?_c('img',{attrs:{"src":__webpack_require__(811)}}):_vm._e(),_vm._v(" "),(o.fileType.indexOf('MP4') != -1 || o.fileType.indexOf('AVI') != -1 || o.fileType.indexOf('MPG') != -1 || o.fileType.indexOf('WMV') != -1 || o.fileType.indexOf('ASF') != -1)?_c('img',{attrs:{"src":__webpack_require__(1439)}}):_vm._e()])]),_vm._v(" "),_c('li',{staticClass:"li2"},[_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('span',{domProps:{"innerHTML":_vm._s(o.fileName)}})]),_vm._v(" "),_c('p',[_c('img',{attrs:{"src":__webpack_require__(1440)}}),_vm._v("\n            推荐热度:"),_c('span',[_vm._v(_vm._s(o.fileDownload))])]),_vm._v(" "),_c('p',[_vm._v("\n            文件大小: "),_c('span',{domProps:{"textContent":_vm._s(_vm.calculateFileSize(o.fileLength))}})])])])}),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}})],2)]),_vm._v(" "),(_vm.showPage)?_c('Pagination-component',{attrs:{"resource_url":_vm.resource_url,"reload":_vm.reload,"params":_vm.params},on:{"update":_vm.updateResource}}):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(499);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8753c5f2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1098);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8753c5f2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8753c5f2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      keyword: '',
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageView({
      postUrl: this._Api.POST_COLLECT,
      title: window.document.title,
      url: window.location.href,
      moduleType: that._Util.isApp() ? '首页' : '微信菜单',
      operate_page: '打开页面',
      optionType: this._Enums.COLLECT_OPTIONS_TYPE.CLICK
    }, this);
  },
  methods: {
    search: function search() {
      var that = this;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }
      if (that.keyword.length < 2) {
        that._Util.showMsgBox('请至少输入两个字符');
        return;
      }
      if (that.patrn.test(that.keyword)) {
        that._Util.showMsgBoxThen('输入内容含有特殊字符', function () {
          that.keyword = '';
        });
        return;
      }
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }
      that._Util.setLocalStorage('searchUuid', '');
      that._Util.post(that._Api.HOSTOLD + 'api/management/getRePortData.json', {}, function (data) {
        if (data.status == 0) {
          that.$router.push({
            name: 'universalSerList',
            query: {
              keyword: that.keyword
            }
          });
        } else {
          that.$router.push({
            name: 'appSearchResultNew',
            query: {
              keyword: that.keyword,
              title: '万能搜搜'
            }
          });
        }
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('input',{attrs:{"id":"serachType","type":"hidden","name":"serachType","value":""}}),_vm._v(" "),_c('div',[_c('div',{staticClass:"col col1"},[_c('ul',{staticClass:"search"},[_c('li',{staticClass:"tc"}),_vm._v(" "),_c('li',{staticClass:"search_input"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":"请输入关键字，如：发动机 博世"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('li',{staticClass:"mt25"},[_c('a',{staticClass:"btn btn_redlight btn_large"},[_c('input',{staticClass:"inputSubmit",attrs:{"type":"button","value":""},on:{"click":function($event){return _vm.search()}}}),_vm._v("搜搜\n          ")])]),_vm._v(" "),_vm._m(0)])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"tips"},[_c('p',{staticClass:"yuanxinl"},[_vm._v("这是一个万能的搜索功能！您可以搜索到任何维修相关的知识要点。")]),_vm._v(" "),_c('p',{staticClass:"yuanxinl"},[_vm._v("包括配套信息、电路图、学习资料、排查指南、维修诀窍等。")]),_vm._v(" "),_c('p',{staticClass:"yuanxinl"},[_vm._v("若都不到内容，请及时给小轨留言")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(500);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4ba1a4b7_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1099);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2770)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4ba1a4b7_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4ba1a4b7_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_universaSosoList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2771);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1f64d97b", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".sosoList li.iconHand{background:url(" + escape(__webpack_require__(867)) + ") 15px 5px no-repeat;background-size:20px;padding-bottom:0;padding-top:5px}.sosoList div.iconPicture{background:url(" + escape(__webpack_require__(870)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconQ{background:url(" + escape(__webpack_require__(868)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconArticle{background:url(" + escape(__webpack_require__(872)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconProduct{background:url(" + escape(__webpack_require__(871)) + ") 0 10px no-repeat;background-size:25px}.sosoList div.iconFaltCode{background:url(" + escape(__webpack_require__(869)) + ") 0 10px no-repeat;background-size:25px}.sosoList{border-top:none;margin:0}.sosoList.Collecter li{padding:0 10px 20px}.sosoList.Collecter li p:first-child{min-height:30px;line-height:30px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _paginationComponent = _interopRequireDefault(__webpack_require__(809));
var _closePageComponent = _interopRequireDefault(__webpack_require__(313));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(2772));
var _collection = _interopRequireDefault(__webpack_require__(137));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PaginationComponent: _paginationComponent.default,
    ClosePageComponent: _closePageComponent.default,
    Collection: _collection.default,
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      keyword: '',
      id: '',
      clickFlag: true,
      solrType: '',
      reload: '',
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      result: {},
      showDetail: false,
      resource_url: this._Api.POST_FALT_CODE_SOSO,
      params: {
        searchUuid: this._Util.getLocalStorage('searchUuid'),
        queryValue: this.$route.query.keyword,
        facet: '',
        pageModel: {
          currentPage: 1,
          pageSize: 10
        }
      },
      brandHeight: {
        height: '300px',
        overflow: 'scroll'
      },
      resultList: {
        guideList: [],
        bolist: []
      },
      testUl: '',
      userResults: {},
      hlFlField: '',
      moduleType: 0,
      question: '?type='
    };
  },
  created: function created() {
    var that = this;
    that.keyword = that.$route.query.keyword;
    that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
      that.userResults = data;
    }, function () {}, that, false);
    that.$on('closeDetail', function () {
      that.result = {};
      that.showDetail = false;
      that.hlFlField = '';
    });
  },
  methods: {
    search: function search(flag) {
      var that = this;
      if (!that.keyword) {
        that._Util.showMsgBox('请填写查询关键词');
        return;
      }
      if (that.patrn.test(that.keyword)) {
        that._Util.showMsgBoxThen('输入内容含有特殊字符', function () {
          that.keyword = '';
        });
        return;
      }
      that.params.queryValue = that.keyword;
      var query = that._Util.copyObject(that.$route.query);
      if (flag) {
        that.params.searchUuid = '';
        query.currentPageNum = 1;
        query.random = Math.floor(Math.random() * 10000 + 1);
      }
      query.keyword = that.keyword;
      that.$router.replace({
        query: query
      });
    },
    updateResource: function updateResource(data) {
      var that = this;
      that.resultList = data;
      that._Util.setLocalStorage('searchUuid', data.searchUuid);
      that.params.searchUuid = data.searchUuid;
      that.$refs.scrollwrapper.scrollTop = 0;
      localStorage.setItem('searchID', that._Util.randomChar());
      var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? typeStr : '微信菜单',
        operate_page: '万能搜搜',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: window.document.title,
        keyword: localStorage.getItem('searchID'),
        param4: {
          'queryValue': that.keyword,
          'result': localStorage.getItem('totalPage'),
          'filter': ''
        },
        params5: that.resultList.pageModel.currentPage || ''
      }, that);
    },
    handleScroll: function handleScroll(e) {
      var currentScrollPosition = e.srcElement.scrollTop;
      this.scrollPosition = currentScrollPosition;
    },
    toDetail: function toDetail(o) {
      var that = this;
      that._Util.post(that._Api.POST_PARTS_OHK_INFO, {
        id: o.id,
        solrType: o.solrType
      }, function (data) {
        that.result = {
          source: [data],
          attrItems: _partsTableConfig.default
        };
        that.moduleType = data.moduleType;
        that.question = '?type=' + (data.moduleType == 4 ? 2 + '&text2=' + data.pyq : 1);
        that.showDetail = true;
        that.collPageView('喷油器型号:' + o.pyq, that._Enums.COLLECT_OPTIONS_TYPE.OPEN_DIV);
      }, function () {}, that);
    },
    getFaultCodeDetail: function getFaultCodeDetail(o) {
      var that = this;
      that.hlFlField = o.hlFlField;
      that._Util.post(that._Api.POST_FALT_CODE_DETAIL, {
        id: o.id
      }, function (data) {
        that.result = data;
        that.moduleType = that._Enums.COLLECTION_MODULE.FAULT;
        that.question = that.question += '1';
        that.question = '?type=1';
        that.showDetail = true;
        that.collPageView((o.the_system || '') + '-' + (o.pcode || '') + '-' + (o.scode || ''), that._Enums.COLLECT_OPTIONS_TYPE.OPEN_DIV);
      }, function () {}, that);
    },
    viewFiles: function viewFiles(item, index) {
      var that = this;
      var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: that._Util.isApp() ? typeStr : '微信菜单',
        operate_page: '万能搜搜',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        keyword: that._Util.randomChar(),
        param4: {
          'queryValue': that.keyword,
          'result': localStorage.getItem('totalPage'),
          'filter': ''
        },
        params5: that.resultList.pageModel.currentPage + ';' + index || ''
      }, that);
      var url = that._Api.HOSTOLD + '/wxauth/searchDataTree/fileView.htm?fileId=' + item.id;
      if (that.clickFlag) {
        that.clickFlag = false;
        that._Util.getUserStatus(that, function () {
          if (that._Util.getLocalStorage('isApp') && item.sn && item.fileType.toLocaleLowerCase().indexOf('pdf') !== -1) {
            that.$http.get(that._Api.HOSTOLD + 'wxauth/searchDataTree/fileView/pdf.json?fileId=' + item.sn).then(function (res) {
              var pdfReader = api.require('pdfReader');
              pdfReader.open({
                path: res.data.data.fileUrl,
                hidden: {
                  print: false,
                  export: false,
                  bookmark: false
                }
              });
              setTimeout(function () {
                that.clickFlag = true;
              }, 1000);
            }).catch(function (error) {
              console.log(error);
            });
          } else {
            setTimeout(function () {
              that.clickFlag = true;
            }, 1000);
            window.location.href = url;
          }
        }, function () {
          that.clickFlag = true;
        }, {
          name: that.$route.name,
          fullPath: window.location.href
        }, that._Enums.ENUMS_USER_STATUS.VIP, true);
      }
      //        that.collPageView(item.fileName, url);
      //        that._Util.openPdf(item.sn, item.fileType.indexOf('PDF') != -1, () => {
      //          window.location.href = url;
      //        }, that);
    },
    viewPdf: function viewPdf(item, index) {
      index = index + 1;
      var that = this;
      var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: that._Util.isApp() ? typeStr : '微信菜单',
        operate_page: '万能搜搜',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        keyword: localStorage.getItem('searchID'),
        param4: {
          'queryValue': that.keyword,
          'result': localStorage.getItem('totalPage'),
          'filter': ''
        },
        params5: that.resultList.pageModel.currentPage + ';' + index || ''
      }, that);
      var url = that._Api.HOSTOLD + 'api/material/searchDataTree/fileView.htm?id=' + item.sn;
      if (that.clickFlag) {
        that.clickFlag = false;
        that._Util.getUserStatus(that, function () {
          if (that._Util.getLocalStorage('isApp') && item.sn && item.fileType.toLocaleLowerCase().indexOf('pdf') !== -1) {
            var pdfReader = api.require('pdfReader');
            pdfReader.open({
              path: item.fileUrl,
              hidden: {
                print: false,
                export: false,
                bookmark: false
              }
            });
            setTimeout(function () {
              that.clickFlag = true;
            }, 1000);
          } else {
            setTimeout(function () {
              that.clickFlag = true;
            }, 1000);
            window.location.href = url;
          }
        }, function () {
          that.clickFlag = true;
        }, {
          name: that.$route.name,
          fullPath: window.location.href
        }, that._Enums.ENUMS_USER_STATUS.VIP, true);
      }
    },
    article: function article(item) {
      var url = this._Api.HOSTOLD + '/wxauth/kaxiuyunForumDetail.htm?postId=' + item.sn;
      this.collPageView(item.postTitle, url);
      window.location.href = url;
    },
    toFaultCode: function toFaultCode() {
      this.collPageView('您是不是要找' + this.keyword + '的故障代码?', this._Api.HOSTRESOURCEPATH + '/v2/faultCode/list?keyword=' + this.keyword);
      this.$router.push({
        name: 'faultList',
        query: {
          keyword: this.keyword
        }
      });
    },
    toPartInfo: function toPartInfo() {
      this.$router.push({
        name: 'partsInfoIndex',
        query: {
          keyword: this.keyword
        }
      });
    },
    testData: function testData(item) {
      var queryValue = '';
      if (item.type == '1') {
        queryValue = item.id.replace('testdata_', '');
      } else {
        queryValue = item.id.replace('testdata_pump_', '');
      }
      var url = this._Api.HOSTOLD + '/wxauth/queryTestData.htm?queryValue=' + queryValue;
      this.collPageView('油泵测试数据：' + item.pump, url);
      window.location.href = url;
    },
    alertStatus: function alertStatus() {
      this._Util.showMsgBox('对不起，只有付费会员才能获取该资料！请您先完成付费！');
    },
    questionList: function questionList(o) {
      var url = this._Api.HOSTOLD + '/wxauth/sosoVipQuestionDetail.htm?questionId=' + o.sn + '&id=' + o.id;
      this.collPageView(o.typeStr, url);
      window.location.href = url;
    },
    getUrl: function getUrl(item) {
      this.collPageView(item.newsTitle, item.newsUrl);
      if (item.solrType == 'ImageText') {
        item.newsUrl = item.newsUrl + '&scene=4#wechat_redirect ';
      }
      window.location.href = item.newsUrl;
    },
    collPageView: function collPageView(fileName, url) {
      // const that = this

      // that._Util.collectPageView({
      //   version: '',
      //   postUrl: that._Api.POST_COLLECT,
      //   title: window.document.title,
      //   url: url,
      //   moduleType: that._Enums.COLLECT_MODULE_TYPE.SOSO,
      //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      //   keyword: fileName.replace(/<[^>]+>/g, ''),
      //   params3: that._Util.getLocalStorage('searchUuid'),
      //   params5: that.params.pageModel.currentPage
      // }, that);
    }
  },
  beforeRouteUpdate: function beforeRouteUpdate(to, from, next) {
    next();
    this.reload = Date.parse(new Date()).toString();
  }
};module.exports = JSON.parse("{\"Pump\":[{\"title\":\"油泵型号\",\"name\":\"pmodel\",\"pageTitle\":\"油泵\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"油量计量单元\",\"name\":\"unit\"},{\"title\":\"高压组件\",\"name\":\"pressure\"},{\"title\":\"齿轮泵（叶片泵）\",\"name\":\"gear\"},{\"title\":\"溢流阀\",\"name\":\"tap\"},{\"title\":\"转速传感器\",\"name\":\"speed1\"},{\"title\":\"类型\",\"name\":\"part\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}],\"Product\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"喷油器\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"油嘴编号\",\"name\":\"yz\"},{\"title\":\"油嘴刻印号\",\"name\":\"yzsn\"},{\"title\":\"阀组件号\",\"name\":\"fz\",\"reg\":\"\"},{\"title\":\"密封球型号\",\"name\":\"mfq\"},{\"title\":\"球座型号\",\"name\":\"qz\"},{\"title\":\"电磁铁型号\",\"name\":\"dct\"},{\"title\":\"衔铁组件型号\",\"name\":\"xtzj\"},{\"title\":\"高压密封圈型号\",\"name\":\"gymfq\",\"reg\":\"\"},{\"title\":\"OHK套件型号\",\"name\":\"ohk\",\"className\":\"aClass\"},{\"title\":\"总成替换产品\",\"name\":\"zcth\",\"reg\":\"\"}],\"Rail\":[{\"title\":\"油轨型号\",\"name\":\"smodel\",\"pageTitle\":\"油轨\"},{\"title\":\"主机厂\",\"name\":\"zjcn\"},{\"title\":\"匹配系统压力\",\"name\":\"pressure\"},{\"title\":\"轨压传感器类别\",\"name\":\"ptype\"},{\"title\":\"轨压传感器型号\",\"name\":\"pmodel\",\"reg\":\"\"},{\"title\":\"泄压阀型号\",\"name\":\"xmodel\"},{\"title\":\"压力控制阀型号\",\"name\":\"pymodelyq\"}],\"Ecu\":[{\"title\":\"ECU型号\",\"name\":\"ecu_no\",\"pageTitle\":\"ECU\"},{\"title\":\"类型\",\"name\":\"ptype\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}],\"Delphi\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"Delphi\"},{\"title\":\"主机厂商\",\"name\":\"engineCompany\"},{\"title\":\"发动机型号及应用\",\"name\":\"engineModel\",\"reg\":\"\"},{\"title\":\"油嘴型号\",\"name\":\"yzModel\",\"reg\":\"\"},{\"title\":\"阀组件型号\",\"name\":\"fzjModel\",\"reg\":\"\"},{\"title\":\"总成替换产品\",\"name\":\"totalReplace\"},{\"title\":\"客户号\",\"name\":\"customerNo\"}],\"Dzpyq\":[{\"title\":\"喷油器型号\",\"name\":\"pyq\",\"pageTitle\":\"电装喷油器\"},{\"title\":\"主机厂商\",\"name\":\"zj\"},{\"title\":\"发动机型号\",\"name\":\"fdj\"},{\"title\":\"应用\",\"name\":\"app\"},{\"title\":\"油嘴型号\",\"name\":\"yz\"},{\"title\":\"阀片型号\",\"name\":\"fp\"},{\"title\":\"密封圈套装\",\"name\":\"mfq\"},{\"title\":\"油嘴紧帽\",\"name\":\"jzjm\"},{\"title\":\"总成替换产品\",\"name\":\"zcth\"}],\"Ohk\":[{\"title\":\"OHK套件型号\",\"name\":\"ohk\",\"pageTitle\":\"OHK套件信息\"},{\"title\":\"阀组件型号\",\"name\":\"fzj\"},{\"title\":\"油嘴型号\",\"name\":\"yz\"},{\"title\":\"密封圈\",\"name\":\"mfq\"},{\"title\":\"支撑圈\",\"name\":\"zcq\"}],\"Sensor\":[{\"title\":\"传感器型号\",\"name\":\"sensorNo\",\"pageTitle\":\"传感器\"},{\"title\":\"类型\",\"name\":\"ptype\"},{\"title\":\"名称\",\"name\":\"name\"},{\"title\":\"替用件\",\"name\":\"zcth\"}]}");/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetail),expression:"!showDetail"}],staticClass:"faultCodeSeach"},[_c('input',{attrs:{"id":"serachType","type":"hidden","name":"serachType"}}),_vm._v(" "),_c('input',{attrs:{"id":"pageIndex","type":"hidden","name":"pageIndex"}}),_vm._v(" "),_c('input',{attrs:{"id":"maxPage","type":"hidden","name":"maxPage"}}),_vm._v(" "),_c('div',{staticClass:"sosoformSearch"},[_c('div',{staticClass:"submit"},[_c('input',{staticClass:"inputSubmit",attrs:{"type":"button","value":"搜搜"},on:{"click":function($event){return _vm.search(true)}}})]),_vm._v(" "),_c('div',{staticClass:"input"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyword),expression:"keyword",modifiers:{"trim":true}}],staticClass:"inputText",attrs:{"type":"text","placeholder":"请输入搜索关键字"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}})])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetail),expression:"!showDetail"}],ref:"scrollwrapper",staticStyle:{"bottom":"52px","top":"72px"},attrs:{"id":"scrollwrapper"}},[_c('div',{staticClass:"faultCodeLTable",staticStyle:{"height":"100%"}},[_c('div',{staticStyle:{"height":"100%"},attrs:{"id":"resultHeight"}},[_c('div',{staticClass:"list2 sosoList",staticStyle:{"height":"100%","padding":"0"}},[(!_vm.resultList.bolist.length)?_c('p',{staticClass:"promptHelp"},[_vm._v("\n            提示：小轨绞尽脑汁也没查到您输入的故障码，请核对故障码输入是否有误。\n          ")]):_vm._e(),_vm._v(" "),_c('ul',{ref:"testUl",on:{"scroll":_vm.handleScroll}},[(_vm.resultList.guideList.length > 0 && _vm.resultList.guideList.indexOf('FaultDiagnss') != -1)?_c('li',{staticClass:"iconHand"},[_c('div',{staticClass:"con",staticStyle:{"padding-left":"40px"}},[_c('a',{staticStyle:{"display":"block"},on:{"click":function($event){return _vm.toFaultCode()}}},[_vm._v("您是不是要找 "),_c('span',{staticStyle:{"color":"red"}},[_vm._v(_vm._s(_vm.keyword))]),_vm._v("\n                  的故障代码?")])])]):_vm._e(),_vm._v(" "),(_vm.resultList.guideList.length > 0 && _vm.resultList.guideList.indexOf('FaultDiagnss') != -1)?_c('li',{staticClass:"iconHand"},[_c('div',{staticClass:"con",staticStyle:{"padding-left":"40px"}},[_c('a',{staticStyle:{"display":"block"},on:{"click":function($event){return _vm.toPartInfo()}}},[_vm._v("您是不是要找 "),_c('span',{staticStyle:{"color":"red"}},[_vm._v(_vm._s(_vm.keyword))]),_vm._v("\n                  的系统部件?")])])]):_vm._e(),_vm._v(" "),_vm._l((_vm.resultList.bolist),function(o,index){return _c('li',{key:index,staticStyle:{"padding":"0 0 5px 0"}},[(o.solrType == 'Posts')?_c('div',{staticClass:"iconArticle",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"}},[_c('div',{staticClass:"con",on:{"click":function($event){return _vm.article(o)}}},[(o.postImg)?_c('img',{staticClass:"postImg",attrs:{"src":o.postImg}}):_vm._e(),_vm._v(" "),_c('p',{staticClass:"tit"},[_c('a',{domProps:{"innerHTML":_vm._s(o.postTitle)}})]),_vm._v(" "),_c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(o.postSummary)}})])]):_vm._e(),_vm._v(" "),(o.solrType == 'ImageText')?_c('div',{staticClass:"iconArticle",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.getUrl(o)}}},[_c('img',{staticClass:"postImg",attrs:{"src":o.newsPicUrl}}),_vm._v(" "),_c('div',{staticClass:"con"},[_c('p',{staticClass:"tit"},[_c('a',{domProps:{"innerHTML":_vm._s(o.newsTitle)}})]),_vm._v(" "),_c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(o.newsDescription)}})])]):_vm._e(),_vm._v(" "),(o.solrType == 'DataShare')?_c('div',{staticClass:"iconPicture",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.viewFiles(o,index)}}},[_c('div',{staticClass:"con"},[_c('span',{staticClass:"tit2"},[(_vm.userResults.userStatus == 2)?_c('a',{domProps:{"innerHTML":_vm._s(o.fileName)}}):_c('a',{domProps:{"innerHTML":_vm._s(o.fileName)}})]),_c('br'),_vm._v(" "),_c('span',{staticClass:"desc",staticStyle:{"display":"block"}},[_vm._v("推荐热度："+_vm._s(o.fileDownload))]),_vm._v(" "),_c('span',{staticClass:"desc",staticStyle:{"display":"block"}},[_vm._v("文件类型："+_vm._s(o.fileType)+" ")]),_vm._v(" "),_c('span',{staticClass:"desc",staticStyle:{"display":"block"}},[_vm._v("文件大小："+_vm._s(o.fileLengthKB))])])]):_vm._e(),_vm._v(" "),(o.solrType == 'Material')?_c('div',{staticClass:"iconPicture",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.viewPdf(o,index)}}},[_c('div',{staticClass:"con"},[_c('span',{staticClass:"tit2"},[(_vm.userResults.userStatus == 2)?_c('a',{domProps:{"innerHTML":_vm._s(o.title)}}):_c('a',{domProps:{"innerHTML":_vm._s(o.title)}})]),_c('br'),_vm._v(" "),_c('span',{staticClass:"desc",staticStyle:{"display":"block"}},[_vm._v("文件类型："+_vm._s(o.fileType)+" ")]),_vm._v(" "),_c('span',{staticClass:"desc",staticStyle:{"display":"block"}},[_vm._v("文件大小："+_vm._s(o.fileLengthKB))])])]):_vm._e(),_vm._v(" "),(o.solrType == 'VipQuestion')?_c('div',{staticClass:"iconQ",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.questionList(o)}}},[_c('div',{staticClass:"con"},[_c('a',[_c('span',{staticClass:"tit",staticStyle:{"display":"block"}},[_vm._v(_vm._s(o.typeStr)+"    "),_c('em',[_vm._v(_vm._s(o.createTimeStr))])]),_vm._v(" "),(o.type == 3)?_c('span',{staticClass:"desc",staticStyle:{"display":"block"},domProps:{"innerHTML":_vm._s(o.text5)}}):_vm._e(),_vm._v(" "),_c('span',{staticClass:"desc",staticStyle:{"display":"block"},domProps:{"innerHTML":_vm._s(o.text1+o.text2+o.text3)}})])])]):_vm._e(),_vm._v(" "),(o.solrType == 'Product' || o.solrType == 'Rail' || o.solrType == 'Pump' || o.solrType == 'Dzpyq')?_c('div',{staticClass:"iconProduct",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.toDetail(o);}}},[_c('div',{staticClass:"con"},[_c('a',{attrs:{"href":"javascript:void(0)"}},[_c('p',{staticClass:"tit2"},[(o.solrType == 'Rail')?_c('span',{domProps:{"innerHTML":_vm._s('油轨型号:' + o.smodel)}}):_vm._e(),_vm._v(" "),(o.solrType == 'Pump')?_c('span',{domProps:{"innerHTML":_vm._s('油泵型号:' + o.pmodel)}}):_vm._e(),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s('喷油器型号:' + o.pyq)}})]),_vm._v(" "),_c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(o.zjcn)}})])])]):_vm._e(),_vm._v(" "),(o.solrType == 'OBD')?_c('div',{staticClass:"iconFaltCode",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.getFaultCodeDetail(o)}}},[_c('div',{staticClass:"con"},[_c('a',{attrs:{"href":"javascript:void(0)"}},[_c('p',{staticClass:"tit",domProps:{"innerHTML":_vm._s((o.applicable || '') + '-' + o.code)}}),_vm._v(" "),_c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(o.desc)}})])])]):_vm._e(),_vm._v(" "),(o.solrType == 'TestData')?_c('div',{staticClass:"iconTestData",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.testData(o)}}},[_c('div',{staticClass:"con"},[_c('a',[_c('span',{staticClass:"tit2"},[(o.type == '1')?_c('span',{domProps:{"innerHTML":_vm._s('喷油器测试数据：' + o.pyq)}}):_vm._e(),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s('油泵测试数据：' + o.pump)}})])])])]):_vm._e(),_vm._v(" "),(o.solrType != 'Delphi' && o.solrType != 'OBD' && o.solrType != 'VipQuestion' && o.solrType != 'FileShare' && o.solrType != 'Posts' && o.solrType != 'Product' && o.solrType != 'Pump' && o.solrType != 'Rail' && o.solrType != 'Dzpyq'
                  && o.solrType != 'TestData' && o.solrType != 'ImageText' && o.solrType != 'DataShare' && o.solrType != 'Material' )?_c('div',{staticClass:"iconFaltCode",staticStyle:{"margin":"10px","padding":"10px 0 10px 40px"},on:{"click":function($event){return _vm.getFaultCodeDetail(o)}}},[_c('div',{staticClass:"con"},[_c('a',[_c('p',{staticClass:"tit",domProps:{"innerHTML":_vm._s((o.the_system || '') + '-' + (o.pcode || '') + '-' + (o.scode || ''))}}),_vm._v(" "),_c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(o.desc)}})])])]):_vm._e(),_vm._v(" "),(o.moduleType)?_c('Collection',{staticClass:"yuncang",attrs:{"collect-params":o.solrType != 'Material' ? {
                  moduleType: o.moduleType,
                  objId: o.sn,
                  queryValue: o.id,
                  favId: o.favId
                } : {
                  moduleType: o.moduleType,
                  favId: o.favId,
                  objId: o.sn,
                  queryValue: o.id
                }}}):_vm._e()],1)})],2),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}})],1)])])]),_vm._v(" "),_c('Pagination-component',{attrs:{"resource_url":_vm.resource_url,"reload":_vm.reload,"params":_vm.params},on:{"update":_vm.updateResource}}),_vm._v(" "),(_vm.showDetail)?_c('Close-page-component',{attrs:{"result":_vm.result,"class-name":"selectwindow2","keyword":_vm.keyword,"module-type":_vm.moduleType,"hl-fl-field":_vm.hlFlField,"question":_vm.question}}):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(501);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b317e9bc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1100);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b317e9bc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b317e9bc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {
    diankongClick: function diankongClick() {
      var that = this;
      that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
        if (data.userStatus == 0) {
          that._Util.showMsgBoxConfirm('对不起，只有认证会员才能查看！您还未认证，请您先完成认证！', function (action) {
            if (action) {
              window.location.href = '/v2/business/pay/certificationRenewal';
            }
          });
        } else {
          window.location.href = that._Api.HOSTOLD + '/wxauth/kaxiuyunForumList.htm?termId=83';
        }
      }, function () {}, that, false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#ededed","overflow":"hidden","min-height":"100%"}},[_c('div',{staticStyle:{"background":"#ededed","min-height":"100%"}},[_c('ul',{staticClass:"list_style2",staticStyle:{"margin-top":"10px"}},[_c('li',{staticClass:"benqi"},[_c('router-link',{attrs:{"to":{name: 'currentPeriodList'}}},[_vm._v("\n          本期特训\n          "),_c('span',[_vm._v("点击报名")])])],1),_vm._v(" "),_c('li',{staticClass:"wangqi"},[_c('router-link',{attrs:{"to":{name: 'share'}}},[_vm._v("\n          往期特训\n        ")])],1),_vm._v(" "),_c('li',{staticClass:"jingpin"},[_c('a',[_c('router-link',{attrs:{"to":{name: 'courseWare'}}},[_vm._v("\n            精品课件\n          ")])],1)])]),_vm._v(" "),_c('ul',{staticClass:"list_style2"},[_c('li',{staticClass:"diankong"},[_c('a',{on:{"click":function($event){return _vm.diankongClick()}}},[_vm._v("\n          电控基础\n        ")])]),_vm._v(" "),_c('li',{staticClass:"rumen"},[_c('a',[_c('router-link',{attrs:{"to":{name: 'advice'}}},[_vm._v("\n            评价建议\n          ")])],1)]),_vm._v(" "),_c('li',{staticClass:"jianyi"},[_c('a',{attrs:{"href":_vm._Api.HOSTOLD + '/wxauth/train.htm'}},[_vm._v("\n          入门培训\n        ")])])]),_vm._v(" "),_c('ul',{staticClass:"list_style2"},[_c('li',{staticClass:"ceping"},[_c('a',{attrs:{"href":_vm._Api.HOSTOLD + '/wxauth/skillAssess/start.htm'}},[_vm._v("\n          技能测评\n          "),_c('span',[_vm._v("获取卡修宝典认证技能证书")])])]),_vm._v(" "),_c('li',{staticClass:"smallGui"},[_c('a',[_c('router-link',{attrs:{"to":{name: 'dynamicCondition'}}},[_vm._v("\n            小轨动态\n          ")])],1)])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(502);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_210d9ca3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1101);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2773)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_210d9ca3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_210d9ca3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseWare_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2774);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("07558da3", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: []
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_LECTURE_ROOM_COURSEWARE, {}, function (data) {
      that.result = data;
    }, function () {}, that);
  },
  methods: {
    location: function location(o) {
      var that = this;
      //        window.location.href = that._Api.HOSTOLDWX + '/wxauth/trainingSourceDetail.htm?sourceId=' + o.id;
      //        that._Util.post(that._Api.POST_LECTURE_ROOM_COURSESTATU,{},(data) => {
      //          return;
      //          if(data.verifyStatus == true){
      //            window.location.href = that._Api.HOSTOLDWX + '/wxauth/trainingSourceDetail.htm?sourceId=' + o.id;
      //            return ;
      //          }
      //          that._Util.showMsgBox('您好您尚未报名成功或者尚未签到参加交流会~');
      //
      //
      //        },() => {
      //
      //        },that)

      that.$router.push({
        name: 'courseWareList',
        query: {
          index: o
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#ededed","overflow":"hidden","min-height":"100%"}},[_c('div',{staticStyle:{"background":"#ededed","min-height":"100%"}},[_c('ul',{staticClass:"list_style2 nopadding"},_vm._l((_vm.result),function(v,index){return _c('li',{key:index},[_c('a',{on:{"click":function($event){return _vm.location(index)}}},[_vm._v(_vm._s(v.name))])])}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(503);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_15b1bddf_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1102);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_15b1bddf_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_15b1bddf_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseWareList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      index: this.$route.query.index,
      result: {}
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_LECTURE_ROOM_COURSEWARE, {
      index: that.index
    }, function (data) {
      that.result = data.soureUrl;
    }, function () {}, that);
  },
  methods: {
    location: function location(o) {
      var that = this;
      that._Util.post(that._Api.POST_LECTURE_ROOM_COURSESTATU, {}, function (data) {
        if (data.verifyStatus == true) {
          window.location.href = o.url;
          return;
        }
        that._Util.showMsgBox('您好您尚未报名成功或者尚未签到参加交流会~');
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#ededed","overflow":"scroll","min-height":"100%"}},[_c('div',{staticStyle:{"background":"#ededed","min-height":"100%"}},[_c('ul',{staticClass:"list_style2 nopadding"},_vm._l((_vm.result),function(o,i){return _c('li',{key:i},[_c('a',{on:{"click":function($event){return _vm.location(o)}}},[_vm._v(_vm._s(o.name))])])}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(504);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_18aeff69_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1103);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2775)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_18aeff69_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_18aeff69_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_advice_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2776);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c43c2bba", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: []
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_LECTURE_ROOM_ADVICE, {}, function (data) {
      that.result = data;
    }, function () {}, that);
  },
  methods: {
    location: function location(o) {
      if (o.naireStatus) {
        this._Util.showMsgBox('已评价过该场培训');
        return;
      }
      window.location.href = this._Api.HOSTOLD + '/wxauth/questionNaire.htm?trainingAddress=' + o.addressId;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#ededed","overflow":"hidden","min-height":"100%"}},[_c('div',{staticStyle:{"background":"#ededed","min-height":"100%"}},[_c('ul',{staticClass:"list_style2 nopadding"},_vm._l((_vm.result),function(v,i){return (_vm.result.length)?_c('li',{key:i},[_c('a',{on:{"click":function($event){return _vm.location(v)}}},[_vm._v(_vm._s(v.trainAddress))])]):_vm._e()}),0),_vm._v(" "),(!_vm.result.length)?_c('div',{staticStyle:{"text-align":"center"}},[_vm._v("\n      你还未参加过任何培训\n    ")]):_vm._e()])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(505);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2c24ade6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1104);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2777)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2c24ade6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2c24ade6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_currentPeriodList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2778);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("25c5062e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".con{position:relative;height:30px;line-height:30px;width:60%;margin:60px auto 0;text-align:center}.con i{display:block;height:1px;background:#ccc;position:absolute;top:15px;width:100%}.con p{font-size:18px;display:inline-block;background:#fff;padding:0 15px;text-align:center;margin:0 auto;position:relative;z-index:2}.listMesB p{width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scoopList{overflow:hidden;border-bottom:20px solid #e6e6e6}.scoopList .listCover{position:relative}.scoopList .listMes{margin-bottom:2px;box-shadow:0 1px 2px 0 hsla(0,0%,40%,.45)}.scoopList .listCover img{width:100%}.scoopList .listCover div{position:absolute;left:20px;top:20px;z-index:5}.scoopList .listCover div p{color:#fff;font-weight:700}.scoopList .listCover div p span{font-size:14px}.scoopList .listCover div p:first-child{font-size:24px;margin-bottom:5px}.scoopList .listCover div p:first-child span{font-size:24px}.scoopList .listMes>div{overflow:hidden;margin:0 2%;padding:5px 0}.scoopList .listMes .listMesB{position:relative;padding-top:10px}.scoopList .listMesB button{position:absolute;right:0;top:8px;background:#d41116;color:#fff;width:70px;height:25px;text-align:center;border-radius:3px}.scoopList .listMesB p{font-size:16px}.scoopList .listMesT p{float:left;width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#8f8f8f}.scoopList .listMesT p.Tright{float:right;width:100px;text-align:right}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      resultList: [],
      backGround: '#d41116',
      toumingDU: 0.6,
      buttonText: '点击报名',
      showEmpty: false
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_LECTURE_ROOM_CURRENT, {}, function (data) {
      if (!data.length) {
        that.showEmpty = true;
      } else {
        that.showEmpty = false;
      }
      that.resultList = data;
    }, function () {}, that);
  },
  methods: {
    toDetail: function toDetail(o) {
      window.location.href = '/v2/lectureRoom/current/detail?id=' + o.id;
      // this.$router.push({name: 'currentPeriodDetail', query: {id: o.id}});
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.resultList.length > 0)?_c('div',_vm._l((_vm.resultList),function(o,i){return _c('ul',{key:i,staticClass:"scoopList",on:{"click":function($event){return _vm.toDetail(o)}}},[_c('li',{staticClass:"listCover"},[_c('img',{attrs:{"src":o.hotelImgUrl}})]),_vm._v(" "),_c('li',{staticClass:"listMes"},[_c('div',{staticClass:"listMesB"},[_c('p',[_vm._v(" "+_vm._s(o.title || "线下培训交流会—" + o.province +" " + o.city + '站'))]),_vm._v(" "),_c('button',{staticStyle:{"font-size":"12px"},style:({ background : o.payStatus == 'Y' ? _vm.backGround : '' , opacity : o.payStatus == 'Y' ? _vm.toumingDU : '' }),on:{"click":function($event){return _vm.toDetail(o)}}},[_vm._v(_vm._s(o.payStatus == 'N' ? '点击报名' : '已报名')+"\n          ")])]),_vm._v(" "),_c('div',{staticClass:"listMesT"},[_c('p',[_vm._v(_vm._s(o.hotelAddress))]),_vm._v(" "),_c('p',{staticClass:"Tright"},[_vm._v(_vm._s(_vm._f("dateFormat")(o.startTime,'MM月dd日'))+"开始")])])])])}),0):_vm._e(),_vm._v(" "),(_vm.showEmpty)?_c('div',{staticStyle:{"width":"100%"}},[_c('div',{staticStyle:{"color":"red","text-align":"center","font-size":"20px","margin-top":"20%"}},[_vm._v("暂无特训")]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","margin-top":"10%","font-size":"20px","text-align":"center"}},[_vm._v("小轨正在积极筹备中，即将出征")]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"20px","text-align":"center","width":"100%"}},[_vm._v("敬请期待")]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":2}})],1):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"con"},[_c('i'),_vm._v(" "),_c('p',[_vm._v("广告")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(506);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25c09624_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1105);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2779)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25c09624_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25c09624_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_cost_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2780);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7de0dd7a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".regeditMy,.regeditMy>div{overflow:hidden}.regeditMy>div{margin-top:10px;background:#fff;position:relative}.regeditMy>div p{font-size:16px;margin:7px 10px}.regeditMy>div p.cost{color:#d41116;font-weight:700}.regeditMy>div span{width:23px;height:23px;background:url(" + escape(__webpack_require__(2781)) + ") 50% no-repeat;background-size:100% 100%;position:absolute;right:10px;bottom:10px;z-index:5}.regeditMy>div span.active{background:url(" + escape(__webpack_require__(2782)) + ") 50% no-repeat;background-size:100% 100%}.regeditMy>div input{position:absolute;left:0;top:0;width:100%;height:100%;z-index:10}.regeditCost{position:fixed;bottom:10px;left:0;width:100%;height:50px}.regeditCost a{position:absolute;right:10px;bottom:0;width:130px;text-align:center;border-radius:5px;background:#d41116;color:#fff}.regeditCost a,.regeditCost p{height:50px;line-height:50px;font-size:16px}.regeditCost p{margin-left:10px}.regeditCost p span{color:#d41116;font-weight:700;font-size:16px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/20161103002.58a5d06.png";module.exports = __webpack_require__.p + "static/img/20161103003.ffc3621.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      resultList: [],
      totalMoney: 0,
      deductionMoney: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_LECTURE_ROOM_PAY_ITEMS, {
      addressId: that.$route.query.addressId
    }, function (data) {
      var list = data || [];
      if (list.length) {
        var index = 0;
        var _iterator = _createForOfIteratorHelper(list),
          _step;
        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var v = _step.value;
            //            if (v.needFlag) {
            //              v.choose = true;
            //            }
            v.choose = true;
            index++;
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
        console.log(index);
        that.resultList = list;
        that.totalMoney = that.getTotalMoney(that.resultList);
      }
    }, function () {}, that);
  },
  methods: {
    chooseItem: function chooseItem(v) {
      this.deductionMoney = 0;
      if (v.needFlag) {
        v.choose = true;
      } else {
        v.choose = !v.choose;
      }
      this.totalMoney = this.getTotalMoney(this.resultList);
    },
    getTotalMoney: function getTotalMoney(list) {
      var money = 0;
      var _iterator2 = _createForOfIteratorHelper(list),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          if (v.choose) {
            money += v.price || 0;
            this.deductionMoney += v.deduction || 0;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      return money;
    },
    save: function save() {
      var that = this;
      var merchandise = '';
      var index = 0;
      var _iterator3 = _createForOfIteratorHelper(that.resultList),
        _step3;
      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var v = _step3.value;
          if (v.choose) {
            merchandise += index ? ',' + v.id : v.id;
          }
          index++;
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }
      var couponUserId = null;
      var _iterator4 = _createForOfIteratorHelper(that.resultList),
        _step4;
      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var item = _step4.value;
          if (item.couponUserId) {
            couponUserId = item.couponUserId;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }
      that._Util.post(that._Api.POST_LECTURE_ROOM_CREATE_ORDER, {
        addressId: that.$route.query.addressId,
        merchandise: merchandise,
        isAttend: !!that.$route.query.isAttend,
        couponId: couponUserId
      }, function (data) {
        window.location.href = '/v2/business/pay/cost?orderId=' + data.order.id + '&orderNum=' + data.order.orderNum + '&description=' + data.order.description + '&signId=' + data.signId + '&proIds=' + merchandise + '&addressId=' + that.$route.query.addressId + '&tPrice=' + data.order.orderPrice + '&showAttend=' + (that.$route.query.showAttend || '') + '&isAttend=' + (that.$route.query.isAttend || '');
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"min-height":"100%"}},[_c('div',{staticStyle:{"background":"#EDEDED","min-height":"100%"}},[_c('div',{staticClass:"regeditMy"},_vm._l((_vm.resultList),function(v,index){return (_vm.resultList.length)?_c('div',{key:index,class:{'stayCost': !v.needFlag, 'roomCost': v.needFlag},on:{"click":function($event){return _vm.chooseItem(v)}}},[_c('p',[_vm._v(_vm._s(v.mdseName))]),_vm._v(" "),_c('p',{staticClass:"cost"},[_vm._v("￥"+_vm._s(v.price))]),_vm._v(" "),(!v.needFlag)?_c('span',{class:{'active': v.choose}}):_vm._e(),_vm._v(" "),(!v.needFlag)?_c('input',{attrs:{"type":"checkbox"}}):_vm._e()]):_vm._e()}),0),_vm._v(" "),(_vm.deductionMoney)?_c('div',{staticClass:"p-tb-20 bg1"},[_c('div',{staticClass:"coupon-top border-b1"},[_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('img',{staticStyle:{"width":"15px","height":"16px","float":"none","vertical-align":"middle","margin-left":"2px","margin-right":"0"},attrs:{"src":__webpack_require__(1441),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("代金券抵扣"+_vm._s(_vm.deductionMoney)+"元")])])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"regeditCost"},[_c('p',[_vm._v("共计："),_c('span',[_vm._v("￥")]),_vm._v(" "),_c('span',[_vm._v("\n          "+_vm._s(parseFloat((_vm.totalMoney - _vm.deductionMoney).toFixed(2))> 0 ? parseFloat((_vm.totalMoney - _vm.deductionMoney).toFixed(2)) : 0.01)+"\n        ")])]),_vm._v(" "),_c('a',{staticStyle:{"background":"#d41116"},attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.save()}}},[_vm._v("下一步")])])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/icon-coupon.ea8d665.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(507);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6eac0682_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1106);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2783)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6eac0682_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6eac0682_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_attend_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2784);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("16b58963", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".uploadMore{height:60px;margin:10px 10px 0}.uploadMore button{color:#fff;font-size:16px;text-align:center;width:100%;background:#ba252d;height:40px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: {}
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.getUserStatus(that, function (data) {
      that.getTrain(that);
    }, function () {}, {
      name: that.$route.name,
      fullPath: '/v2/lectureRoom/current/cost?isAttend=true&addressId=' + that.$route.query.addressId
    }, that._Enums.AUTH);
  },
  methods: {
    getTrain: function getTrain(self) {
      var that = self || this;
      that._Util.post(that._Api.POST_LECTURE_ROOM_SIGNIN, {
        addressId: that.$route.query.addressId
      }, function (data) {
        var tempData = data || {};
        if (!tempData.isSign) {
          that.$router.replace({
            name: 'currentPeriodCost',
            query: {
              addressId: that.$route.query.addressId,
              isAttend: true,
              showAttend: that.$route.query.showAttend || ''
            }
          });
        } else {
          that.result = tempData;
        }
      }, function () {}, that);
    },
    attend: function attend() {
      var that = this;
      that._Util.post(that._Api.POST_LECTURE_ROOM_ATTEND, {
        addressId: that.$route.query.addressId
      }, function (data) {
        that.getTrain(that);
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.result.id)?_c('div',[_c('div',{staticClass:"bMember"},[_c('div',[_c('div',{staticClass:"fufeiImg"},[_c('img',{attrs:{"src":__webpack_require__(2785)}}),_vm._v(" "),(!_vm.result.checkSign)?_c('p',{staticStyle:{"font-size":"20px"}},[_vm._v("\n          "+_vm._s(_vm.$route.query.showAttend == 'true' ? '报名成功' : '签到成功')+"\n        ")]):_vm._e(),_vm._v(" "),_c('p',{staticStyle:{"text-align":"center","padding":"5px"}},[(_vm.$route.query.showAttend == 'true')?_c('span',{staticStyle:{"font-size":"18px"}},[_vm._v("\n            报名成功\n          ")]):_c('span',{staticStyle:{"font-size":"18px"}},[_vm._v("\n            "+_vm._s(_vm._f("dateFormat")(_vm.result.startTime,'yyyy年MM月dd日'))+" "),_c('br'),_vm._v("\n            "+_vm._s((_vm.result.province || '') + (_vm.result.city || '') + (_vm.result.hotelName || ''))+" "),_c('br'),_vm._v("\n            小轨特训线下培训\n          ")])]),_vm._v(" "),(_vm.result.checkSign && !_vm.$route.query.showAttend)?_c('div',{staticClass:"uploadMore"},[_c('button',{on:{"click":function($event){return _vm.attend()}}},[_vm._v("签到")])]):_vm._e()])])]),_vm._v(" "),(_vm.$route.query.callbackBtnVal)?_c('div',{staticClass:"uploadMore"},[_c('button',{on:{"click":function($event){return _vm.nextStep()}}},[_vm._v(_vm._s(_vm.$route.query.callbackBtnVal))])]):_vm._e()]):_vm._e()}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/attend.345b80e.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(508);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a423ab0c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_order_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1107);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2786)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a423ab0c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_order_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a423ab0c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_order_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2787);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("06ae2255", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".regeditPay .regeditOrder{height:40px;line-height:40px;overflow:hidden}.regeditPay .regeditOrder p.regeditOrderL{float:left;margin-left:10px;color:#666}.regeditPay .regeditOrder p.regeditOrderR{float:right;margin-right:10px;color:#d41116}.regeditPay p.orderCost{height:50px;background:#fff;line-height:50px;margin-bottom:10px}.regeditPay p.orderCost span:first-child{margin-left:10px}.regeditPay .orderPrice{height:150px;text-align:center;line-height:150px}.regeditPay .orderPrice,.regeditPay .orderPrice span{font-size:35px;font-weight:700}.payingMember .wxPay,.regeditPay .wxPay{width:94%;height:50px;color:#fff;font-size:18px;background:#d41116;display:block;margin:0 auto;text-align:center;border-radius:5px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      resultList: [],
      totalMoney: 0,
      deductionMoney: 0,
      allMoney: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    if (!that._Util.isApp() && !that._Util.isMPaaS()) {
      that._Util.getKaluliAuth(that);
    }
    that._Util.post(that._Api.POST_LECTURE_ROOM_PAY_ITEMS, {
      addressId: that.$route.query.addressId
    }, function (data) {
      var list = data || [];
      var proIds = that.$route.query.proIds.split(',');
      var _iterator = _createForOfIteratorHelper(list),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          var _iterator3 = _createForOfIteratorHelper(proIds),
            _step3;
          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var proId = _step3.value;
              if (v.id == proId) {
                that.resultList.push(v);
                that.totalMoney += v.price || 0;
                that.deductionMoney += v.deduction || 0;
              }
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      var _iterator2 = _createForOfIteratorHelper(that.resultList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var item = _step2.value;
          that.allMoney += parseFloat((item.price - item.deduction).toFixed(2));
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    }, function () {}, that);
  },
  methods: {
    pay: function pay() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_ORDER_JS_PARAMETER, {
        payType: 2,
        id: that.$route.query.orderId
      }, function (data) {
        that._Util.wxPay(data.jsApiParameters, function () {
          if (that.$route.query.isAttend) {
            //              window.location.replace(that._Api.HOSTRESOURCEPATH + '/v2/lectureRoom/current/attend?addressId='
            //                + that.$route.query.addressId + '&showAttend=' + (that.$route.query.showAttend || ''));
            that.$router.replace({
              name: 'currentPeriodAttend',
              query: {
                addressId: that.$route.query.addressId,
                showAttend: that.$route.query.showAttend || ''
              }
            });
          } else {
            that.$router.replace({
              name: 'memberRenewSuccess',
              query: {
                name: 'memberMyOrder',
                operType: 3,
                isAttend: that.$route.query.isAttend,
                addressId: that.$route.query.addressId
              }
            });
          }
        });
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"regeditPay",staticStyle:{"height":"100%"}},[_c('div',{staticStyle:{"min-height":"100%","background":"#EDEDED"}},[_c('div',{staticClass:"regeditOrder"},[_c('p',{staticClass:"regeditOrderL"},[_c('span',[_vm._v("订单号")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.$route.query.orderNum))])]),_vm._v(" "),_c('p',{staticClass:"regeditOrderR"},[_vm._v("\n        待支付\n      ")])]),_vm._v(" "),_vm._l((_vm.resultList),function(v,i){return (_vm.resultList.length)?_c('p',{key:i,staticClass:"orderCost"},[_c('span',[_vm._v(_vm._s(v.mdseName))]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(v.price)+_vm._s(v.summary ? '(' + v.summary + ')' : ''))])]):_vm._e()}),_vm._v(" "),(_vm.deductionMoney)?_c('div',{staticClass:"p-tb-20 bg1"},[_c('div',{staticClass:"coupon-top border-b1"},[_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('img',{staticStyle:{"width":"15px","height":"16px","float":"none","vertical-align":"middle","margin-left":"2px","margin-right":"0"},attrs:{"src":__webpack_require__(1441),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("代金券抵扣"+_vm._s(_vm.deductionMoney)+"元")])])])]):_vm._e(),_vm._v(" "),(_vm.resultList.length)?_c('div',{staticClass:"orderPrice"},[_c('span',[_vm._v("￥")]),_c('span',[_vm._v("\n        "+_vm._s(_vm.allMoney > 0 ? _vm.allMoney : 0.01)+"\n      ")])]):_vm._e(),_vm._v(" "),_c('button',{staticClass:"wxPay",staticStyle:{"background":"#d41116"},on:{"click":function($event){return _vm.pay()}}},[_vm._v("微信支付")])],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(509);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6396c1e8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1108);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2788)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6396c1e8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6396c1e8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_siteShare_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2789);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("228164e9", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".hb-box{width:100%;min-height:100%;background:url(" + escape(__webpack_require__(2790)) + ") no-repeat;background-size:100% 100%;color:#fc0;overflow:hidden}.hb-con{position:relative;width:9.72rem;height:13.59rem;background:url(" + escape(__webpack_require__(2791)) + ") no-repeat 100%/cover;float:right;margin-top:1.4rem;text-align:center;padding:0 2.11rem 0 1.88rem}.hb-con .name{font-size:.56rem;margin-top:.8rem}.hb-con .info{width:100%;font-size:.375rem;padding:.3rem 0 .4rem;border-bottom:1px solid #f06a00}.hb-con .hb-type{font-size:.56rem;margin-top:.44rem}.hb-con .open{display:inline-block;position:absolute;width:2.5rem;height:2.5rem;border-radius:50%;left:3.48rem;top:5.58rem}.open-hb{min-height:100%;background:#fff;text-align:center;padding:.4rem;color:#cf2222}.open-hb .o-info h1{font-size:.75rem;margin-top:1.4rem}.open-hb .o-info p{font-size:.56rem;margin-top:.2rem}.hb-total{font-size:.75rem;margin-top:1.95rem}.hb-total b{font-size:1.72rem}.use-btn{display:inline-block;width:9.29rem;height:1.1rem;line-height:1.1rem;color:#fff;font-size:.44rem;background:#cf2222;border-radius:.15rem;margin-top:2.4rem}.hb-info{font-size:.38rem;color:#666;margin-top:.2rem}.share-box{width:9.26rem;height:8.48rem;background:url(" + escape(__webpack_require__(2792)) + ") no-repeat 100%/cover;float:right;margin-top:2.73rem;padding:1rem 1.88rem 0 1.13rem;color:#ff0404;text-align:center;position:relative}.share-info{font-size:.43rem}.share-btn{position:absolute;bottom:1.02rem;left:2.03rem;display:inline-block;width:4.26rem;height:1.2rem;background:url(" + escape(__webpack_require__(2793)) + ") no-repeat 100%/cover}.share-rule{color:#838282;clear:both;width:8.44rem;margin:.2rem auto;line-height:.55rem}.share-rule b{font-size:.375rem}.share-rule p{font-size:.32rem}.share-panel{position:absolute;right:10px;top:10px;z-index:1000;text-align:right;width:300px;height:210px;background-image:url(" + escape(__webpack_require__(2794)) + ");background-repeat:no-repeat;background-size:300px 210px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/hb-bg.d463c98.jpg";module.exports = __webpack_require__.p + "static/img/hb-con.263779b.png";module.exports = __webpack_require__.p + "static/img/share-con.30c8b75.png";module.exports = __webpack_require__.p + "static/img/share-btn.d6c49da.png";module.exports = __webpack_require__.p + "static/img/share.590b732.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: {},
      showShare: false
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.shoppingHtmlInit();
    that.getResult();
    that.share();
  },
  methods: {
    useRedEnvelope: function useRedEnvelope() {
      this.$router.push({
        name: 'currentPeriodList'
      });
    },
    getResult: function getResult() {
      var that = this;
      that._Util.post(that._Api.POST_LECTURE_ROOM_RED_PACK, {
        id: that.$route.query.id
      }, function (data) {
        that.result = data || {};
      }, function () {}, that);
    },
    openRedPack: function openRedPack() {
      var that = this;
      that._Util.post(that._Api.POST_LECTURE_ROOM_OEPN_RED_PACK, {
        id: that.$route.query.id
      }, function (data) {
        that._Util.showToast('领取成功');
        that.getResult();
      }, function () {}, that);
    },
    share: function share(flag) {
      var that = this;
      if (flag) {
        that.showShare = true;
      }
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = {
            title: '来自小轨的红包',
            desc: '拼手气！领取小轨特训代金券',
            link: that._Api.HOSTRESOURCEPATH + '/v2/lectureRoom/site/share?id=' + that.$route.query.id,
            imgUrl: 'http://static1.kaxiuyun.com/image/jpg/hongbao.jpg',
            success: function success() {
              that.showShare = false;
            },
            cancel: function cancel() {
              that.showShare = false;
            }
          };
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          console.log(shareContent);
        });
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.result.type)?_c('div',[(_vm.result.type == 1)?_c('div',{staticClass:"hb-box hb-share"},[_c('div',{staticClass:"share-box"},[_vm._m(0),_vm._v(" "),_c('a',{staticClass:"share-btn",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.share(true)}}})]),_vm._v(" "),_vm._m(1)]):_vm._e(),_vm._v(" "),(_vm.result.type == 2)?_c('div',{staticClass:"open-hb"},[_c('div',{staticClass:"o-info"},[_c('h1',[_vm._v("恭喜获得")]),_vm._v(" "),_c('p',[_vm._v("小轨特训专用红包")]),_vm._v(" "),_c('div',{staticClass:"hb-total"},[_c('b',[_vm._v(_vm._s(_vm.result.amount || 0))]),_vm._v("元")])]),_vm._v(" "),_c('a',{staticClass:"use-btn",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.useRedEnvelope()}}},[_vm._v("立即去使用")]),_vm._v(" "),_c('div',{staticClass:"hb-info"},[_vm._v("\n      "+_vm._s(_vm.result.msg || '')+"\n    ")])]):_vm._e(),_vm._v(" "),(_vm.result.type == 3)?_c('div',{staticClass:"hb-box"},[_c('div',{staticClass:"hb-con"},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(_vm.result.userName))]),_vm._v(" "),_c('div',{staticClass:"info"},[_vm._v("发了一个红包，金额随机")]),_vm._v(" "),_c('div',{staticClass:"hb-type"},[_vm._v("\n        小轨特训专用红包\n      ")]),_vm._v(" "),_c('a',{staticClass:"open",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.openRedPack()}}})])]):_vm._e(),_vm._v(" "),(_vm.showShare)?_c('div',{staticClass:"share-panel",on:{"click":function($event){_vm.showShare = false}}}):_vm._e()]):_vm._e()}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"share-info"},[_vm._v("\n        您有10个小轨特训专属红包"),_c('br'),_vm._v("\n        分享红包给朋友"),_c('br'),_vm._v("\n        朋友可以抵扣培训报名费"),_c('br'),_vm._v("\n        每新增一名报名成功的朋友，"),_c('br'),_vm._v("\n        您将获得100元返现,上不封顶。\n      ")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"share-rule"},[_c('b',[_vm._v("活动细则：")]),_vm._v(" "),_c('p',[_vm._v("1.分享出去的红包，金额随机，该红包仅供小轨特训报名抵扣培训费使用；")]),_vm._v(" "),_c('p',[_vm._v("2.当您的朋友使用您分享的红包完成报名并付费成功，每成功一位，您将获得100元返现奖励；")]),_vm._v(" "),_c('p',[_vm._v("3.本活动的最终解释权归卡修宝典所有。")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(510);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f116ba4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1109);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2795)
  __webpack_require__(2798)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4f116ba4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f116ba4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f116ba4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2796);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3b871b22", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-4f116ba4]{overflow-x:hidden;background-color:#f2f2f2;position:relative}.wrap.mescroll[data-v-4f116ba4]{position:fixed;top:0;bottom:49px;height:auto}.wrap .user-wrap[data-v-4f116ba4]{padding:.4rem .6rem 0;position:relative;height:6rem}.wrap .user-wrap .pad-top[data-v-4f116ba4]{position:absolute;width:100%;height:6rem;background:-webkit-gradient(linear,left top,left bottom,from(#ea1031),to(#e6998d));background:linear-gradient(#ea1031,#e6998d);top:0;left:0}.wrap .user-wrap .wrap-cont[data-v-4f116ba4]{background:#fff;position:relative;z-index:2;border-radius:.4rem;padding:.6rem}.wrap .user-wrap .u-info[data-v-4f116ba4]{height:3rem;overflow:hidden;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.wrap .user-wrap .u-info>img[data-v-4f116ba4]{width:3rem;height:3rem;float:left;border-radius:.3rem;background-color:#f0f8ff;pointer-events:none}.wrap .user-wrap .u-info .u-detail[data-v-4f116ba4]{margin-left:.6rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap .user-wrap .u-info .u-detail p[data-v-4f116ba4]:first-of-type{position:relative;margin-bottom:.2rem;height:1.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.wrap .user-wrap .u-info .u-detail p:first-of-type .name[data-v-4f116ba4]{color:#333;font:700 20px/1.4rem PingFangSC-Semibold;max-width:-webkit-calc(100% - 1rem);max-width:calc(100% - 1rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap .user-wrap .u-info .u-detail p:first-of-type .crown[data-v-4f116ba4]{margin-left:.3rem;width:.75rem;height:.7rem;background-image:url(" + escape(__webpack_require__(282)) + ");background-repeat:no-repeat;background-size:100%}.wrap .user-wrap .u-info .u-detail p[data-v-4f116ba4]:nth-of-type(2){color:#666;font:16px/1.1rem PingFangSC-Regular}.wrap .user-wrap .u-info .u-edit-btn[data-v-4f116ba4]{margin-left:.6rem;width:3.8rem;height:1.4rem;border-radius:1rem;text-align:center;color:#333;font:13px/1.4rem PingFangSC-Regular;z-index:1;background-color:hsla(0,0%,100%,.15);border:1px solid #333}.wrap .user-wrap .days[data-v-4f116ba4]{color:#333;font:12px/.8rem PingFangSC-Regular;padding:.6rem 0 .8rem}.wrap .user-wrap .u-commu-info[data-v-4f116ba4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.wrap .user-wrap .u-commu-info>div[data-v-4f116ba4]{text-align:center;color:#999;margin-left:1.6rem;font-size:0}.wrap .user-wrap .u-commu-info>div[data-v-4f116ba4]:first-child{margin:0}.wrap .user-wrap .u-commu-info>div p[data-v-4f116ba4]:first-of-type{display:inline;color:#999;font:14px/1rem PingFangSC-Regular;margin-right:.3rem}.wrap .user-wrap .u-commu-info>div p[data-v-4f116ba4]:nth-of-type(2){display:inline;color:#333;font:700 14px/1rem PingFangSC-Semibold}.wrap .ad-box[data-v-4f116ba4]{margin:.7rem .6rem 0}.wrap .ad-box img[data-v-4f116ba4]{width:100%;height:2.5rem;border-radius:.3rem}.wrap .ad-box.ad-box2[data-v-4f116ba4]{margin-bottom:.7rem}.wrap .ad-box.ad-box2 img[data-v-4f116ba4]{height:6rem}.wrap .menu-wrap[data-v-4f116ba4]{background-color:#f4f5f6;margin-top:.7rem;padding:0 .6rem .8rem}.wrap .menu-wrap .m-vip-wrap .no-member[data-v-4f116ba4]{background:#fff;border-radius:.3rem;padding:.5rem .6rem 0}.wrap .menu-wrap .m-vip-wrap .no-member>p[data-v-4f116ba4]{color:#999;font:700 14px/1rem PingFangSC-Semibold}.wrap .menu-wrap .m-vip-wrap .no-member .info[data-v-4f116ba4]{margin-top:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-bottom:.8rem;position:relative}.wrap .menu-wrap .m-vip-wrap .no-member .info[data-v-4f116ba4]:after{position:absolute;content:\"\";top:-50%;bottom:-50%;left:-50%;right:-50%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);border-bottom:1px solid #eee}.wrap .menu-wrap .m-vip-wrap .no-member .info img[data-v-4f116ba4]{width:3.9rem;height:3.9rem;margin-right:.6rem}.wrap .menu-wrap .m-vip-wrap .no-member .info .right div[data-v-4f116ba4]{color:#333;font:17px/1.2rem PingFangSC-Regular;margin-bottom:.25rem}.wrap .menu-wrap .m-vip-wrap .no-member .info .right p[data-v-4f116ba4]{color:#999;font:14px/1rem PingFangSC-Regular}.wrap .menu-wrap .m-vip-wrap .no-member .btn-box[data-v-4f116ba4]{text-align:center;height:2rem;color:#ef7549;font:14px/2rem PingFangSC-Regular}.wrap .menu-wrap .m-tab-wrap[data-v-4f116ba4]{margin-top:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.wrap .menu-wrap .m-tab-wrap>div[data-v-4f116ba4]{width:100%;height:3.3rem;background:#fff;border-radius:.3rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.wrap .menu-wrap .m-tab-wrap>div img[data-v-4f116ba4]{width:2rem;height:2rem;margin:0 .6rem;border-radius:.1rem}.wrap .menu-wrap .m-tab-wrap>div .right-cont[data-v-4f116ba4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.wrap .menu-wrap .m-tab-wrap>div p[data-v-4f116ba4]:first-of-type{color:#1c1c1c;font:700 16px/1.1rem PingFangSC-Semibold}.wrap .menu-wrap .m-tab-wrap>div p[data-v-4f116ba4]:nth-of-type(2){margin-top:.1rem;color:#999;font:12px/.8rem PingFangSC-Regular}.wrap .menu-wrap .task-center[data-v-4f116ba4]{background:#fff;border-radius:.3rem;margin-top:.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.5rem .6rem}.wrap .menu-wrap .task-center img[data-v-4f116ba4]{width:2rem;height:2rem;border-radius:.1rem;position:relative;top:.1rem}.wrap .menu-wrap .task-center p[data-v-4f116ba4]{margin-left:.6rem;color:#1c1c1c;font:700 16px/1.1rem PingFangSC-Semibold}.wrap .menu-wrap .task-center .status[data-v-4f116ba4]{padding-right:.6rem;margin-left:auto;background:url(" + escape(__webpack_require__(2797)) + ") 100% no-repeat;background-size:.3rem .5rem}.wrap .menu-wrap .task-center .sign-btn[data-v-4f116ba4]{margin-left:auto;width:3.8rem;height:1.4rem;background:#ff3f3f;color:#fff;font:13px/1.4rem PingFangSC-Regular;text-align:center;border-radius:1rem}.wrap .menu-wrap .item-box[data-v-4f116ba4]{background:#fff;border-radius:.3rem;overflow:hidden;margin-top:.7rem}.wrap .menu-wrap .item-box .item[data-v-4f116ba4]{float:left;width:100%;height:3.3rem;position:relative}.wrap .menu-wrap .item-box .item .cont[data-v-4f116ba4]{position:absolute;width:100%;height:100%;left:0;top:0;text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .5rem;border-top:1px solid #eee}.wrap .menu-wrap .item-box .item .cont img[data-v-4f116ba4]{width:1.6rem;height:1.6rem}.wrap .menu-wrap .item-box .item .cont .name[data-v-4f116ba4]{margin-left:.8rem;color:#1c1c1c;font:15px/.75rem PingFangSC-Regular}.wrap .menu-wrap .item-box .item .cont .des[data-v-4f116ba4]{color:#666;font:11px/1 PingFangSC-Regular;margin-top:.25rem}.wrap .menu-wrap .item-box .item .cont .des.news[data-v-4f116ba4]{position:absolute;margin:0;top:1rem;right:1.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:17px;min-width:17px;text-align:center;border-radius:9px;overflow:hidden;background-color:#ff3f3f;font-size:12px;color:#fff}.wrap .menu-wrap .item-box .item .cont .des.news.db-news[data-v-4f116ba4]{padding:0 .2rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arror-r.aef238a.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2799);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("fa44e4e0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".member-center .mescroll-downwarp{background:#ea1031}.member-center .mescroll-downwarp .downwarp-progress{border:1px solid #fff}.member-center .mescroll-downwarp .downwarp-tip{color:#fff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _footTab = _interopRequireDefault(__webpack_require__(176));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    footTab: _footTab.default
  },
  filters: {
    days: function days(val) {
      var now = new Date().getTime();
      if (now - val <= 0) {
        return 0;
      } else {
        return Math.floor((now - val) / 1000 / 3600 / 24);
      }
    }
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      appVer: '',
      userInfo: '',
      assetsInfo: '',
      isAudit: true,
      communityInfo: '',
      noReadNum: '',
      mescroll: null,
      topAd: {},
      // 头部广告
      bottomAd: {},
      // 底部广告
      quickListObj: {
        lastQuickClassifyList: [],
        medianQuickClassifyList: [],
        firstQuickClassifyList: []
      },
      isMiniApp: false,
      isInWxMiniApp: localStorage.getItem('inWxMinapp') === '1' // 是否在小程序内打开
    };
  },
  created: function created() {
    this.isMiniApp = this.$route.query.from === 'miniprogram';
    this.isAudit = this._Util.getLocalStorage('isAudit');
    // 埋点
    // this._Util.collectPageView2(
    //   {
    //     postUrl: this._Api.POST_COLLECT,
    //     url: window.location.href,
    //     moduleType: '我的',
    //     operate_page: '我的',
    //     optionType: '打开',
    //     param1: location.href
    //   },
    //   this
    // )
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (_this._Util.isApp()) {
              // 监听其他页面传过来的 刷新数据方法
              _this.$bus.$on('updateInfo', function () {
                // this.getCommunityInfo()
                _this.getUserInfo();
                _this.getUserAssets();
                // this.getNoReadNum()
              });
              try {
                api.addEventListener({
                  name: 'openServiceChatToWeb'
                }, function (ret, err) {});
                api.addEventListener({
                  name: 'salesUnReadNumToWeb'
                }, function (ret, err) {});
              } catch (err) {
                console.log(err);
              }
            } else {
              // 微信端监听返回按钮
              _this.pushHistory();
              window.addEventListener('popstate', _this.handleHistoryPath, false);
            }

            // 请求对应接口数据
            _this.refresh();
            _this.mescroll = new _mescroll.default(_this.$refs.memberCenter, {
              down: {
                use: true,
                auto: false,
                callback: _this.refresh,
                isBounce: true
              },
              up: {
                use: false
              }
            });
            _context.next = 1;
            return _this.getAppVer();
          case 1:
            _this.appVer = _context.sent;
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
    window.removeEventListener('popstate', this.handleHistoryPath, false);
  },
  methods: {
    /**
     * 如果url含有指定字符，那么在审核状态时不展示
    */
    urlIncludes: function urlIncludes(val) {
      if (val.includes('per/medal/wallet') || val.includes('community/myStars') || val.includes('center/per/coupon') || val.includes('member/invitation') || val.includes('skillAssess/start.htm')) {
        return true;
      } else {
        return false;
      }
    },
    /**
     * 记录神策埋点
    */
    sensorsCollectFn: function sensorsCollectFn(name, content, className, type, traget) {
      this._Util.sensorsCollect('element_click', {
        $element_name: name,
        $element_content: content,
        $element_class_name: className,
        $element_type: type,
        $element_target_url: traget,
        $url: window.location.href,
        $title: '个人中心',
        moudle_type: '个人中心',
        correlation_id: '',
        operation_page: '个人中心'
      });
    },
    /**
     * 记录神策广告埋点
     * @param {String} type top 顶部广告 null 底部广告
    */
    sensorsCollectAdFn: function sensorsCollectAdFn(obj, type) {
      this._Util.sensorsCollect('click_advert', {
        $element_content: '广告位',
        operation_page: type === 'top' ? '个人中心-个人信息下方' : '个人中心',
        advert_type_name: type === 'top' ? '个人中心顶部广告' : obj.signTypeName,
        advert_name: obj.advertName,
        jump_url: obj.advertUrl,
        $url: window.location.href,
        correlation_id: obj.advertId
      });
    },
    /**
     * 获取快捷分类
    */
    getQuickList: function getQuickList() {
      var _this2 = this;
      this._Util.post(this._Api.GET_MEMBER_CENTER_QUICK_LIST, {
        pageNum: 1,
        pageSize: 100,
        terminalType: this._Util.isApp() || this._Util.isMPaaS() ? 1 : 2,
        versionType: 1
      }, function (data) {
        if (data) {
          _this2.quickListObj.firstQuickClassifyList = data.data.firstQuickClassifyList || [];
          _this2.quickListObj.lastQuickClassifyList = data.data.lastQuickClassifyList || [];
          _this2.quickListObj.medianQuickClassifyList = data.data.medianQuickClassifyList || [];
        }
      }, function () {}, this);
    },
    /**
     * 打开快捷分类
     * @param {Object} obj 快捷分类对象
    */
    toQuickDetail: function toQuickDetail(obj) {
      if (!this._Util.isApp() && obj.resourceType === 2) {
        // 如果你不是app，但给的却是壳内页面，则给出提示
        (0, _mintUi.Toast)({
          message: '请检查路径',
          duration: 2000
        });
        return;
      }
      this.sensorsCollectFn('个人中心快捷入口', obj.name, 'item', 'div', obj.url);
      if (this._Util.isApp() && obj.resourceType === 2) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'openAppPage',
            url: obj.url
          }
        });
        return;
      }
      this.openFrame({
        url: obj.url,
        txt: obj.name
      });
    },
    /**
     * 打开广告
     * @param {Object} obj 广告对象
    */
    toAdDetail: function toAdDetail(obj, type) {
      this.sensorsCollectAdFn(obj, type);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'memberCenterAd' + obj.advertUrl,
            url: obj.advertUrl
          }
        });
      } else {
        location.href = obj.advertUrl;
      }
    },
    /**
     * 获取弹窗广告位信息
    */
    getAdInfo: function getAdInfo(type) {
      var _this3 = this;
      this._Util.post(this._Api.POST_FMS_BOTTOMAD, {
        signType: type
      }, function (data) {
        if (data) {
          if (type === 48) {
            _this3.topAd = data;
          } else {
            _this3.bottomAd = data;
          }
        }
      }, function () {}, this);
    },
    /**
     * 打开亲密度项目
     */
    openIntimacyPage: function openIntimacyPage(url) {
      this.openFrame({
        url: url,
        txt: '亲密度特权'
      });
    },
    /** 打开消息中心 */openMessage: function openMessage() {
      this.openFrame({
        url: 'v2/common/messageList',
        txt: '我的消息'
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'openMessage',
          extra: {}
        });
      }
    },
    /** 下拉刷新 */refresh: function refresh(loadingFlag) {
      if (loadingFlag !== 'viewappear') {
        this.getQuickList();
        // this.getAdInfo(48)
        // this.getAdInfo(49)
      }
      // this.getCommunityInfo(loadingFlag === 'viewappear')
      this.getUserInfo(loadingFlag === 'viewappear');
      // this.getNoReadNum(loadingFlag === 'viewappear')
      this.getUserAssets(loadingFlag === 'viewappear');
    },
    /** 下载app */download: function download() {
      window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.y1990218899.nvb&ADTAG=mobile';
    },
    /** 获取未读消息数量 */getNoReadNum: function getNoReadNum(loadingFlag) {
      var _this4 = this;
      this._Util.post(this._Api.NEWHOST + 'common-api/app/messageNum.json', {}, function (data) {
        _this4.noReadNum = data;
        if (_this4._Util.isApp()) {
          if (data == 0) {
            // 仅消息中心有消息，app‘我的’按钮显示小红点
            api.sendEvent({
              name: 'noShowBag',
              extra: {}
            });
          } else {
            api.sendEvent({
              name: 'salesUnReadNumToWeb',
              extra: {}
            });
          }
        }
      }, function () {}, this, loadingFlag);
    },
    /** 获取用户资产信息 */getUserAssets: function getUserAssets(loadingFlag) {
      var _this5 = this;
      this._Util.post(this._Api.POST_MEMBER_GET_USER_ASSETS, {}, function (data) {
        _this5.assetsInfo = data;
        _this5.mescroll.endErr();
      }, function () {
        _this5.mescroll.endErr();
      }, this, loadingFlag);
    },
    /** 获取用户信息 */getUserInfo: function getUserInfo(loadingFlag) {
      var _this6 = this;
      this._Util.post(this._Api.POST_MEMBER_GET_USER_INFO, {}, function (data) {
        _this6.userInfo = data;
        localStorage.setItem('userInfo', JSON.stringify(_this6.userInfo));
        // app端 当当前页面变为页面最上层时，触发接口请求刷新数据
        var that = _this6;
        if (_this6._Util.isApp()) {
          api.addEventListener({
            name: 'viewappear'
          }, function (ret, err) {
            that.refresh('viewappear');
          });
        }
      }, function () {}, this, loadingFlag);
    },
    /** 获取社区相关信息 */getCommunityInfo: function getCommunityInfo(loadingFlag) {
      var _this7 = this;
      this._Util.post(this._Api.POST_MEMBER_COMMUNITY_INFO, {}, function (data) {
        _this7.communityInfo = data;
      }, function () {}, this, loadingFlag);
    },
    /** 返回键处理 关闭微信浏览器 */handleHistoryPath: function handleHistoryPath() {
      _weixinJsSdk.default.closeWindow();
      WeixinJSBridge.invoke('closeWindow');
    },
    /** 微信返回键处理相关方法 */pushHistory: function pushHistory() {
      var state = {
        title: '关闭页面',
        url: ''
      };
      window.history.pushState(state, state.title, state.url);
    },
    /** 进入个人中心编辑页面 */goEditInfo: function goEditInfo() {
      // this.$
    },
    /** 获取app版本号 */getAppVer: function getAppVer() {
      var _this8 = this;
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          if (_this8.appVer) {
            resolve(_this8.appVer);
          } else {
            setTimeout(function () {
              api && api.getPrefs({
                // 接收apicloud传递过来的版本号
                key: 'version'
              }, function (ret, err) {
                if (ret.value) {
                  resolve(ret.value);
                } else {
                  reject();
                }
              });
            }, 500);
          }
        });
      }
    },
    /**
     * @param{url}: 需要跳转的url
     * @param{txt}: 埋点记录信息
     * @param{isLocationHref}: 非单页应用路由
     * @param{isOldRecourse}
     */
    openFrame: function openFrame(_ref) {
      var url = _ref.url,
        txt = _ref.txt,
        isLocationHref = _ref.isLocationHref,
        isOldRecourse = _ref.isOldRecourse;
      var that = this;
      if (url.includes('wxauth/skillAssess/start.htm')) {
        isLocationHref = true;
        isOldRecourse = true;
      } else {
        isLocationHref = false;
        isOldRecourse = false;
      }
      if (txt && !isLocationHref && !isOldRecourse) {
        // 埋点
        that._Util.collectPageView2({
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '我的',
          operate_page: '我的',
          optionType: '点击',
          param1: url,
          param2: txt
        }, that);
      }
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        var curUrl = '';
        if (url.includes('wx.kaxiuyun') || url.includes('http://') || url.includes('https://')) {
          curUrl = url;
        } else {
          curUrl = isOldRecourse ? that._Api.HOSTOLD + url : that._Api.HOSTRESOURCEPATH + '/' + url;
        }
        api.sendEvent({
          name: 'acOpenFrm',
          extra: {
            url: curUrl
          }
        });
        api.sendEvent({
          name: 'openCarRep',
          extra: {}
        });
      } else {
        if (isLocationHref) {
          if (localStorage.getItem('inWxMinapp') === '1') {
            // 微信小程序
            var src = encodeURIComponent(isOldRecourse ? that._Api.HOSTOLD + url : that._Api.HOSTRESOURCEPATH + '/' + url);
            uni.navigateTo({
              // eslint-disable-line
              url: "/pages/webView/webView?src=".concat(src)
            });
            return;
          }
          if (that._Util.isIOS) {
            window.location.replace(isOldRecourse ? that._Api.HOSTOLD + url : that._Api.HOSTRESOURCEPATH + '/' + url);
          } else {
            window.location.href = isOldRecourse ? that._Api.HOSTOLD + url : that._Api.HOSTRESOURCEPATH + '/' + url;
          }
        } else {
          if (url.includes('wx.kaxiuyun') || url.includes('http://') || url.includes('https://')) {
            if (localStorage.getItem('inWxMinapp') === '1') {
              // 微信小程序
              var _src = encodeURIComponent(url);
              uni.navigateTo({
                // eslint-disable-line
                url: "/pages/webView/webView?src=".concat(_src)
              });
              return;
            }
            location.href = url;
            // location.href = location.origin + '/v2/member/setUp'
            // that.$router.push({ name: 'setUp' })
          } else {
            that.$router.push({
              path: '/' + url
            });
          }
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{ref:"memberCenter",staticClass:"wrap mescroll member-center",style:({'bottom': _vm.isApp || _vm.isInWxMiniApp ? 0 : '49px'})},[_c('div',[_c('div',{staticClass:"user-wrap",style:({'padding-top': _vm.isApp ? 0 : '0.4rem'})},[_c('div',{staticClass:"pad-top"}),_vm._v(" "),_c('div',{staticClass:"wrap-cont"},[_c('div',{staticClass:"u-info"},[_c('img',{attrs:{"src":_vm.userInfo.headImgUrl || 'http://static2.kaxiuyun.com/headimg.png',"alt":""}}),_vm._v(" "),_c('div',{staticClass:"u-detail"},[(_vm.userInfo.userName)?_c('p',[_c('span',{staticClass:"name"},[_vm._v(_vm._s(_vm.userInfo.userName.length>9?_vm.userInfo.userName.slice(0,9):_vm.userInfo.userName))]),_vm._v(" "),(_vm.userInfo.userStatus===2)?_c('span',{staticClass:"crown"}):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.userInfo.userStatus===0)?_c('p',[_vm._v("未绑定手机号码")]):_c('p',[_vm._v(_vm._s(_vm.userInfo.uphone))])]),_vm._v(" "),_c('div',{staticClass:"u-edit-btn",on:{"click":function($event){return _vm.openFrame({url: 'repair/person/personalInfo'})}}},[_vm._v("\n              编辑\n            ")])])])]),_vm._v(" "),_c('div',{staticClass:"menu-wrap"},[(!_vm.isAudit)?_c('div',{staticClass:"m-vip-wrap"},[(_vm.userInfo.userStatus === 0)?_c('div',{staticClass:"no-member",on:{"click":function($event){return _vm.openFrame({url: 'repair/member/personalCertification'})}}},[_c('p',[_vm._v("账户安全")]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"btn-box"},[_vm._v("点击立即绑定")])]):(_vm.userInfo.isYearMember===0)?_c('div',{staticClass:"no-member",on:{"click":function($event){return _vm.openFrame({url: 'repair/business/pay/certificationRenewal?pathid=我的&openVip=1'})}}},[_c('p',[_vm._v("我的VIP会员")]),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('div',{staticClass:"btn-box"},[_vm._v("点击查看会员特权")])]):_vm._e()]):_vm._e(),_vm._v(" "),(!_vm.isAudit)?_c('div',{staticClass:"m-tab-wrap"},[_c('div',{on:{"click":function($event){return _vm.openFrame({url: 'repair/business/pay/certificationRenewal?pathid=我的&openVip=0'})}}},[_c('img',{attrs:{"src":__webpack_require__(2800),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right-cont"},[_c('p',[_vm._v("VIP会员")]),_vm._v(" "),(_vm.userInfo.isYearMember === 1 || _vm.userInfo.userStatus === 2)?_c('p',[_vm._v(_vm._s(_vm.userInfo.feeEndTime)+"到期")]):_c('p',[_vm._v("您还未开通会员")])])])]):_vm._e(),_vm._v(" "),(_vm.quickListObj.firstQuickClassifyList.length)?_c('div',{staticClass:"item-box"},[_vm._l((_vm.quickListObj.firstQuickClassifyList),function(item){return [(!(_vm.isAudit && _vm.urlIncludes(item.url)))?_c('div',{key:item.classifyId,staticClass:"item",on:{"click":function($event){return _vm.toQuickDetail(item)}}},[_c('div',{staticClass:"cont"},[_c('img',{attrs:{"src":item.imgPath,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"name"},[_vm._v(_vm._s(item.name))]),_vm._v(" "),(item.functionType && item.functionType !== 'routine')?[(item.functionType === 'wallet')?_c('div',{staticClass:"des"},[_vm._v(_vm._s(item.showCopy))]):_vm._e(),_vm._v(" "),(item.functionType === 'news' && item.showCopy > 0)?_c('div',{staticClass:"des news",class:{'db-news': item.showCopy > 9}},[_vm._v("\n                    "+_vm._s(item.showCopy)+"\n                  ")]):_vm._e(),_vm._v(" "),(item.functionType === 'invitation')?_c('div',{staticClass:"des",staticStyle:{"color":"#FF3F3F"}},[_vm._v(_vm._s('50元现金奖励'))]):_vm._e(),_vm._v(" "),(item.functionType === 'setup')?_c('div',{staticClass:"des"},[_vm._v(_vm._s(_vm.appVer?'v'+_vm.appVer:''))]):_vm._e()]:_vm._e(),_vm._v(" "),((!item.functionType || item.functionType === 'routine') && item.secondName)?_c('div',{staticClass:"des"},[_vm._v(_vm._s(item.secondName))]):_vm._e()],2)]):_vm._e()]})],2):_vm._e()]),_vm._v(" "),_c('div',{staticStyle:{"height":"15px"}})])]),_vm._v(" "),_c('footTab',{directives:[{name:"show",rawName:"v-show",value:(!_vm._Util.isApp() && !_vm.isMiniApp),expression:"!_Util.isApp() && !isMiniApp"}],attrs:{"active-flag":"my"}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"info"},[_c('img',{attrs:{"src":__webpack_require__(2801),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',[_vm._v("你尚未绑定手机号码")]),_vm._v(" "),_c('p',[_vm._v("未绑定手机可能导致帐号存在安全风险 请尽快绑定手机")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"info"},[_c('img',{attrs:{"src":__webpack_require__(2802),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',[_vm._v("你暂未开通年费会员")]),_vm._v(" "),_c('p',[_vm._v("开通会员可享受5大特权")]),_vm._v(" "),_c('p',[_vm._v("还可立即免费领取2本电路书籍")])])])}]
module.exports = __webpack_require__.p + "static/img/vip.9017d63.png";module.exports = __webpack_require__.p + "static/img/bdsj.c497bab.png";module.exports = __webpack_require__.p + "static/img/openVip.cd711e3.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(511);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_13cfc3c3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1110);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2803)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_13cfc3c3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_13cfc3c3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_setUp_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2804);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ab505112", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{background:#f2f2f2}.step-item{background:#fff}.step-item.no-border .setUpListBox{border:none}.setUpListBox{margin:0 16px;border-bottom:1px solid hsla(0,0%,95%,.7);background:#fff url(" + escape(__webpack_require__(46)) + ") 100% no-repeat;background-size:5px 8px;position:relative;height:52px;line-height:52px}.setUplist{color:#333}.setUplist .cle{background:#fff;color:#8f8f8f;font-size:14px;position:absolute;right:12px;top:50%;margin-top:-20px;height:40px;line-height:40px}.setUplist a{font-size:16px}.setUpmask{width:100%;height:100%;position:fixed;left:0;top:0;background:rgba(0,0,0,.3);z-index:99}@media screen and (min-width:790px) and (max-width:810px){#step{display:none}}.setUpbox{width:80%;background:#fff;border-radius:3px;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.setUptitle{color:#fe7b13;width:100%;text-align:center;margin-top:70px;font-size:20px}.setUpTips{margin-top:10px;font-size:16px;color:#666}.downBtn,.nextBtn{width:49%;display:inline-block;background-color:#ee4545;color:#fff;font-size:18px;text-align:center;padding-top:10px;padding-bottom:10px}.nextBtn{background:#fff;color:#ee4545}.setUpdownLoad{width:140px;height:122px;position:absolute;top:-55px;left:50%;margin-left:-70px}.mustdownBtn{width:100%;font-size:18px;text-align:center;padding-top:10px;padding-bottom:10px;background-color:#ee4545;color:#fff;margin-top:55px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      size: 0,
      version: '',
      showUpdate: false,
      result: {},
      description: '',
      getVersion: true,
      // 是否从app端获取了版本号
      showStep: true,
      showMoreStep: 0,
      // 是否显示更多设置
      isMiniApp: false
    };
  },
  created: function created() {
    var that = this;
    that.isMiniApp = this.$route.query.from === 'miniprogram';
    that.isShowMoreStepFn();
    setTimeout(function () {
      api.getCacheSize(function (ret) {
        that.size = that.bytesToSize(ret.size);
      });
      api.getPrefs({
        // 接收apicloud传递过来的版本号
        key: 'version'
      }, function (ret, err) {
        if (ret.value) {
          that.version = ret.value;
          that.getVersion = true;
        } else {
          that.getVersion = false;
          that.version = that._Util.version;
        }
        if (that.getVersion) {
          that.showStep = that.compareVersion(that.version, '1.4.0');
        } else {
          that.showStep = false;
        }
      });
    }, 500);
  },
  mounted: function mounted() {
    // alert(this.$route.query.from)
  },
  methods: {
    toMallxieyi: function toMallxieyi() {
      if (this._Util.isMPaaS()) {
        my.navigateTo({
          // eslint-disable-line
          url: '/pages/protocol/deal'
        });
      } else {
        window.location.href = location.origin + '/v4/pages/protocol/deal';
      }
    },
    /**
     * 是否显示更多设置
     */
    isShowMoreStepFn: function isShowMoreStepFn() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'app_moresetting',
        source: 'APP',
        pageNum: 1,
        pageSize: 1
      }, function (data) {
        if (data && data.dataList) {
          _this.showMoreStep = data.dataList[0].status_m;
        }
      }, function () {}, this);
    },
    /**
     * 比较版本号,如果当前app版本大于限制的最小版本，则返回true
     * @param {string} appVer app的版本号
     * @param {string} limitVer 限制的版本号
     * @return {boolean}
     */
    compareVersion: function compareVersion(appVer, limitVer) {
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = false;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    loginOut: function loginOut() {
      var that = this;
      that._Util.showMsgBoxConfirm('确认退出登录吗?', function (action) {
        if (action) {
          that._Util.post(that._Api.POST_APP_LOGIN_OUT, {}, function () {
            localStorage.setItem('app-token', '');
            if (that.isMiniApp) {
              window.AlipayJSBridge && AlipayJSBridge.call('gzCleanHTTPCookie', {
                // eslint-disable-line
                url: location.href
              });
              return;
            }
            if (that._Util.isMPaaS()) {
              if (!that.isMiniApp) {
                AlipayJSBridge.call('postNotification', {
                  // eslint-disable-line
                  name: 'MPASS_LOGOUT' // H5 发出的事件必须以 NEBULANOTIFY_ 开通进行监听
                });
              }
              window.AlipayJSBridge && AlipayJSBridge.call('popWindow'); // eslint-disable-line
              return;
            }
            api.sendEvent({
              name: 'isLogin',
              extra: {
                status: false
              }
            });
            // 清除社区角标小圆点
            api.sendEvent({
              name: 'showCommunityCircle',
              extra: {
                num: 0
              }
            });
            api.sendEvent({
              name: 'switchTab',
              extra: {
                index: 0
              }
            });
            api.closeWin();
            window.location.replace(that._Api.HOSTRESOURCEPATH + '/v2/' + (that.isAudit ? 'newLogin' : 'login'));
            //              that.$router.replace({name: that.isAudit ? 'newLogin' : 'login'});
          }, function () {}, that);
        }
      });
    },
    bytesToSize: function bytesToSize(bytes) {
      if (bytes === 0) return '0 B';
      var k = 1024;
      var sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
      var i = Math.floor(Math.log(bytes) / Math.log(k));
      return (bytes / Math.pow(k, i)).toFixed(2) + ' ' + sizes[i];
    },
    clearCache: function clearCache() {
      var that = this;
      if (that.size != 0) {
        api.clearCache(function () {
          that.size = 0;
          (0, _mintUi.Toast)('清除完成');
        });
      }
    },
    shareToFriend: function shareToFriend() {
      // eslint-disable-next-line no-unused-vars
      var that = this;
      var wx = api.require('wx');
      wx.isInstalled(function (ret, err) {
        if (ret.installed) {
          wx.shareWebpage({
            scene: 'session',
            title: '我正在使用卡修宝典APP，邀你一起体验，快来下载吧~',
            description: '',
            thumb: 'http://static1.kaxiuyun.com/kxy_log.jpg',
            contentUrl: 'http://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb&from=singlemessage'
          }, function (ret, err) {
            if (ret.status) {
              (0, _mintUi.Toast)('分享成功');
            }
          });
        } else {
          (0, _mintUi.Toast)('当前设备未安装微信客户端');
        }
      });
    },
    toKonwCrs: function toKonwCrs() {
      location.href = 'https://wx.kaxiuyun.com/v2/system/productFeedback/questionDetail?id=34';
    },
    checkVersion: function checkVersion() {
      var that = this;
      that._Util.post(that._Api.NEWHOST + 'user-api/app/version.json', {}, function (data) {
        if (!data) {
          (0, _mintUi.Toast)('已经是最新版本！');
        } else {
          that.showUpdate = true;
          that.result = data;
          that.description = that.result.description;
        }
      }, function () {}, that, true);
    },
    sayGoodBye: function sayGoodBye() {
      this.showUpdate = false;
    },
    /**
     * app是否有某个权限
    */
    isRight: function isRight(callBack) {
      var resultList = api.hasPermission({
        list: ['photos']
      });
      console.log(JSON.stringify('是否有存储的权限,设置页面----' + resultList[0].granted));
      if (!resultList[0].granted) {
        (0, _mintUi.MessageBox)({
          title: '“卡修宝典”想访问您的存储权限',
          message: '在使用分享功能时，需要使用存储功能，用于下载并存储分享图片',
          confirmButtonText: '同意',
          showCancelButton: 'true',
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action == 'confirm') {
            api.requestPermission({
              list: ['photos'],
              code: 100004
            }, function (ret, err) {
              if (ret.never) {
                console.log('点击了不再提醒');
              }
              if (ret.list[0].granted) {
                callBack && callBack();
              }
            });
          }
        });
      } else {
        callBack && callBack();
      }
    },
    downapp: function downapp() {
      var that = this;
      if (api.systemType == 'android') {
        that.isRight(function () {
          api.download({
            url: that.result.url,
            report: true
          }, function (ret, err) {
            if (ret && ret.state == 0) {
              /* 下载进度 */
              that.description = ret.percent + '%';
            }
            if (ret && ret.state == 1) {
              var savePath = ret.savePath;
              api.installApp({
                appUri: savePath
              });
            }
          });
        });
      } else if (api.systemType == 'ios') {
        api.openApp({
          iosUrl: 'https://itunes.apple.com/cn/app/卡修宝典/id1215241456?mt=8'
        });
      }
    },
    /**
     * 跳转到对应的协议
    */
    toRight: function toRight(type) {
      if (this._Util.isMPaaS()) {
        this._Util.mPassRouter({
          fullPath: location.origin + type
        });
        return;
      }
      this.readrightFn(type);
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'right' + type,
          url: location.origin + type
        }
      });
    },
    /**
     * 跳转到更多设置
    */
    toMoreSetUp: function toMoreSetUp() {
      if (this._Util.isMPaaS()) {
        this._Util.mPassRouter({
          fullPath: location.origin + '/v2/member/moreSetUp'
        });
        return;
      }
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'moreSetUp',
          url: location.origin + '/v2/member/moreSetUp'
        }
      });
    },
    /**
     * 阅读协议记录
    */
    readrightFn: function readrightFn(rightType) {
      var deviceId = api.deviceId;
      var type = 1;
      if (rightType === '/v2/deal') {
        type = 2;
      } else if (rightType === '/v2/personInfoRight') {
        type = 1;
      } else {
        type = 3;
      }
      var params = [];
      params = [{
        deviceId: deviceId,
        moudle: 1,
        type: type // 类型（1/个人信息保护政策；2/用户协议；3/论坛社区管理制度；4/免电话营销服务承诺）
      }];
      this._Util.post(this._Api.READING_PROTOCOL_RECORD, {
        readingProtocolRecordForms: params
      }, function (data) {}, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showUpdate && !_vm._Util.isMPaaS())?_c('div',{staticClass:"setUpmask"},[_c('div',{staticClass:"setUpbox"},[_c('img',{staticClass:"setUpdownLoad",attrs:{"src":__webpack_require__(2805)}}),_vm._v(" "),_c('div',{staticClass:"setUptitle"},[_vm._v("发现新版本")]),_vm._v(" "),_c('div',{staticClass:"setUpTips",domProps:{"innerHTML":_vm._s(_vm.description)}}),_vm._v(" "),(!_vm.result.forced)?_c('div',{staticStyle:{"width":"100%","background-color":"#EE4545","margin-top":"40px"}},[_c('span',{staticClass:"nextBtn",on:{"click":function($event){return _vm.sayGoodBye()}}},[_vm._v("以后再说")]),_vm._v(" "),_c('span',{staticClass:"downBtn",on:{"click":function($event){return _vm.downapp()}}},[_vm._v("立即更新")])]):_c('button',{staticClass:"mustdownBtn",on:{"click":function($event){return _vm.downapp()}}},[_vm._v("立即更新")])])]):_vm._e(),_vm._v(" "),(!_vm._Util.isMPaaS())?_c('div',{staticClass:"step-item"},[_c('div',{staticClass:"setUpListBox"},[_c('div',{staticClass:"setUplist",on:{"click":_vm.clearCache}},[_c('a',[_vm._v("\n          清除缓存\n          "),_c('span',{staticClass:"cle"},[_vm._v(_vm._s(_vm.size == 0 ? '0kb' : _vm.size))])])])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"step-item"},[_c('div',{staticClass:"setUpListBox",on:{"click":_vm.shareToFriend}},[_vm._m(0)])]),_vm._v(" "),(_vm.showStep && !_vm._Util.isMPaaS())?_c('div',{staticClass:"step-item",attrs:{"id":"step"}},[_c('div',{staticClass:"setUpListBox"},[_c('div',{staticClass:"setUplist",on:{"click":_vm.checkVersion}},[_c('a',[_vm._v("\n          软件升级\n          "),_c('span',{staticClass:"cle"},[_vm._v("当前版本："+_vm._s(_vm.version))])])])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"step-item no-border"},[_c('div',{staticClass:"setUpListBox",on:{"click":_vm.toKonwCrs}},[_vm._m(1)])]),_vm._v(" "),_c('div',{staticClass:"step-item",staticStyle:{"margin-top":"0.6rem"}},[_c('div',{staticClass:"setUpListBox",on:{"click":function($event){return _vm.toRight('/v2/deal')}}},[_vm._m(2)])]),_vm._v(" "),_c('div',{staticClass:"step-item"},[_c('div',{staticClass:"setUpListBox",on:{"click":function($event){return _vm.toRight('/v2/personInfoRight')}}},[_vm._m(3)])]),_vm._v(" "),_c('div',{staticClass:"step-item"},[_c('div',{staticClass:"setUpListBox",on:{"click":_vm.toMallxieyi}},[_vm._m(4)])]),_vm._v(" "),_c('div',{staticClass:"step-item no-border"},[_c('div',{staticClass:"setUpListBox",on:{"click":function($event){return _vm.toRight('/v2/communityRight')}}},[_vm._m(5)])]),_vm._v(" "),(_vm.showMoreStep)?_c('div',{staticClass:"step-item no-border",staticStyle:{"margin-top":"0.6rem"}},[_c('div',{staticClass:"setUpListBox",on:{"click":_vm.toMoreSetUp}},[_vm._m(6)])]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"padding":"10px 0","text-align":"center","position":"fixed","bottom":"0","width":"100%","background":"#fff","color":"#2B82F7","font-size":"18px"},on:{"click":function($event){return _vm.loginOut()}}},[_vm._v("\n    退出登录\n  ")])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("\n          推荐给朋友\n        ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("\n          关于卡修宝典\n          ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("用户协议")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("个人信息保护政策")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("商城服务协议")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("论坛社区管理制度")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("更多设置")])])}]
module.exports = __webpack_require__.p + "static/img/downLoad.dc8b99c.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(512);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_67b0f95a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1111);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2806)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_67b0f95a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_67b0f95a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_moreSetUp_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2807);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0c415bd2", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{background:#f3f4f5}.more-setup{padding-top:.6rem}.step-item{background:#fff}.step-item.no-border .setUpListBox{border:none}.setUpListBox{margin:0 16px;border-bottom:1px solid hsla(0,0%,95%,.7);background:#fff url(" + escape(__webpack_require__(46)) + ") 100% no-repeat;background-size:5px 8px;position:relative;height:52px;line-height:52px}.setUplist{color:#333}.setUplist .cle{background:#fff;color:#8f8f8f;font-size:14px;position:absolute;right:12px;top:50%;margin-top:-20px;height:40px;line-height:40px}.setUplist a{font-size:16px}.setUpmask{width:100%;height:100%;position:fixed;left:0;top:0;background:rgba(0,0,0,.3);z-index:99}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      showNoCall: 0,
      // 是否显示免电话营销设置
      showCancelAccount: 0 // 是否显示注销账户
    };
  },
  created: function created() {
    this.isShowBtnFn();
  },
  methods: {
    /**
     * 按钮显示判断
     */
    isShowBtnFn: function isShowBtnFn() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'app_moresetting',
        source: 'APP',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data && data.dataList) {
          _this.showNoCall = data.dataList[0].status_u;
          _this.showCancelAccount = data.dataList[0].status_c;
        }
      }, function () {}, this);
    },
    /**
     * 跳转到问卷页面
    */
    toQues: function toQues() {
      if (this._Util.isMPaaS()) {
        this._Util.mPassRouter({
          fullPath: location.origin + '/v2/questionnaire/index?no=e48e9a84'
        });
        return;
      }
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'ques-moreSetUp',
          url: location.origin + '/v2/questionnaire/index?no=e48e9a84'
        }
      });
    },
    /**
     * 跳转免电话营销设置页面
    */
    toNoCallSet: function toNoCallSet() {
      if (this._Util.isMPaaS()) {
        this._Util.mPassRouter({
          fullPath: location.origin + '/v2/member/noCallSet'
        });
        return;
      }
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'noCallSet',
          url: location.origin + '/v2/member/noCallSet'
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"more-setup"},[(_vm.showNoCall)?_c('div',{staticClass:"step-item no-border"},[_c('div',{staticClass:"setUpListBox",on:{"click":_vm.toNoCallSet}},[_vm._m(0)])]):_vm._e(),_vm._v(" "),(_vm.showCancelAccount)?_c('div',{staticClass:"step-item",staticStyle:{"margin-top":"0.6rem"}},[_c('div',{staticClass:"setUpListBox",on:{"click":_vm.toQues}},[_vm._m(1)])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("免电话营销设置")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"setUplist"},[_c('a',[_vm._v("注销账户")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(513);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_094c52d0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1112);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2808)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-094c52d0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_094c52d0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_094c52d0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_noCallSet_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2809);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b6ec742e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".no-call .wrap[data-v-094c52d0]{padding:.8rem 0 1.3rem;min-height:100%;background:#f3f4f5}.no-call .wrap>p[data-v-094c52d0]{padding:0 .6rem;color:#333;font:14px/1rem PingFangSC-Regular}.no-call .wrap .code-box[data-v-094c52d0]{margin-top:.4rem;background:#fff;padding-left:.6rem}.no-call .wrap .code-box .code-item[data-v-094c52d0]{height:2.7rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.no-call .wrap .code-box .code-item[data-v-094c52d0]:first-child{border-bottom:1px solid #eee}.no-call .wrap .code-box .code-item input[data-v-094c52d0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.1rem;color:#333;font:16px/1 PingFangSC-Regular}.no-call .wrap .code-box .code-item input[data-v-094c52d0]::-webkit-input-placeholder{font-size:16px}.no-call .wrap .code-box .code-item input[data-v-094c52d0]:-ms-input-placeholder{font-size:16px}.no-call .wrap .code-box .code-item input[data-v-094c52d0]::placeholder{font-size:16px}.no-call .wrap .code-box .code-item button[data-v-094c52d0]{height:100%;color:#177afa;font:16px/2.7rem PingFangSC-Regular;padding-right:.6rem}.no-call .wrap .reason[data-v-094c52d0]{margin-top:.8rem}.no-call .wrap .reason-box[data-v-094c52d0]{margin-top:.4rem;background:#fff;padding-bottom:.8rem}.no-call .wrap .reason-box .reason-item[data-v-094c52d0]{padding-left:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.no-call .wrap .reason-box .reason-item span[data-v-094c52d0]{width:1rem;height:1rem;border:1px solid #d6d7d8;background:#f4f5f6;box-sizing:border-box;border-radius:50%}.no-call .wrap .reason-box .reason-item img[data-v-094c52d0]{width:1rem;height:1rem}.no-call .wrap .reason-box .reason-item .right[data-v-094c52d0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:.8rem .6rem .8rem 0;margin-left:.6rem;color:#333;font:16px/1.1rem PingFangSC-Regular;border-bottom:1px solid #eee}.no-call .wrap .reason-box .reason-item .right.no-border[data-v-094c52d0]{border:none}.no-call .wrap .reason-box .remark[data-v-094c52d0]{padding:0 .6rem}.no-call .wrap .reason-box .remark textarea[data-v-094c52d0]{width:100%;min-height:4.5rem;background:#f5f5f5;border-radius:.2rem;border:none;padding:.6rem;color:#333;font:16px/1.1rem PingFangSC-Regular}.no-call .wrap .reason-box .remark textarea[data-v-094c52d0]::-webkit-input-placeholder{font-size:16px}.no-call .wrap .reason-box .remark textarea[data-v-094c52d0]:-ms-input-placeholder{font-size:16px}.no-call .wrap .reason-box .remark textarea[data-v-094c52d0]::placeholder{font-size:16px}.no-call .wrap .copyRight[data-v-094c52d0]{padding:0 .6rem;margin-top:.8rem;font-family:PingFangSC-Regular;font-size:14px;color:#666;letter-spacing:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.no-call .wrap .copyRight img[data-v-094c52d0]{width:.7rem;height:.7rem;border-radius:.1rem}.no-call .wrap .copyRight div[data-v-094c52d0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:.3rem}.no-call .wrap .copyRight span[data-v-094c52d0]{display:inline;color:#1b7ffb}.no-call .wrap .sub-btn[data-v-094c52d0]{margin:2.25rem .6rem 0;height:2.5rem;background:#177afa;border-radius:1.25rem;text-align:center;color:#fff;font:18px/2.5rem PingFangSC-Regular;opacity:.5}.no-call .wrap .sub-btn.active[data-v-094c52d0]{opacity:1}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      remark: '',
      isSelected: true,
      phoneNumber: '',
      telCode: '',
      // 验证码
      codeNeed: '获取验证码',
      phoneTest: /^1[3456789]\d{9}$/,
      noClick: false,
      reasonList: [{
        'isSelect': false,
        'text': '其他'
      }],
      subReasonText: '',
      time: '',
      name: ''
    };
  },
  computed: {
    btnActive: function btnActive() {
      return this.subReasonText && this.telCode && this.isSelected && this.phoneNumber;
    }
  },
  created: function created() {
    this.getNoCallReason();
  },
  methods: {
    /**
     * 获取原因列表
     */
    getNoCallReason: function getNoCallReason() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'utelemarketing_setting',
        source: 'APP',
        pageNum: 1,
        pageSize: 100
      }, function (data) {
        if (data && data.dataList) {
          var tempArr = [];
          if (data.dataList[0].text) {
            var tempArr2 = data.dataList[0].text.split(',');
            _this.time = data.dataList[0].time;
            _this.name = data.dataList[0].real_name;
            tempArr2.forEach(function (item) {
              tempArr.push({
                isSelect: false,
                text: item
              });
            });
          }
          _this.reasonList = tempArr.concat(_this.reasonList);
        }
      }, function () {}, this);
    },
    /**
     * 选择原因
     */
    selectOne: function selectOne(item) {
      this.remark = '';
      this.reasonList.forEach(function (item2) {
        item2.isSelect = false;
      });
      item.isSelect = true;
      this.subReasonText = item.text;
    },
    textInput: function textInput() {
      if (!this._Util.isIOS) {
        var textarea = document.getElementById('textarea');
        setTimeout(function () {
          textarea.scrollIntoViewIfNeeded();
        }, 100);
      }
    },
    /**
     * 手机号输入时过滤非数字
     * @param {string} 输入框输入的值
     */
    telChange: function telChange(e) {
      this.phoneNumber = e.target.value.replace(/[^\d]/g, '');
    },
    /**
     * 按钮显示判断
     */
    isShowBtnFn: function isShowBtnFn() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'app_moresetting',
        source: 'APP',
        pageNum: 1,
        pageSize: 1
      }, function (data) {
        if (data && data.dataList) {
          _this2.showNoCall = data.dataList[0].status_u;
          _this2.showCancelAccount = data.dataList[0].status_c;
        }
      }, function () {}, this);
    },
    /**
     * 获取验证码
    */
    getCode: function getCode() {
      var _this3 = this;
      if (!this.phoneNumber) {
        (0, _mintUi.Toast)({
          message: '请输入手机号码',
          duration: 2000
        });
        return;
      }
      if (!this.phoneTest.test(this.phoneNumber)) {
        (0, _mintUi.Toast)({
          message: '手机号码格式不正确，请重新输入',
          duration: 2000
        });
        return;
      }
      this.noClick = true;
      var timeDown = 59;
      this.codeNeed = '60秒';
      var times = setInterval(function () {
        _this3.codeNeed = timeDown + '秒';
        timeDown--;
        if (timeDown <= 0) {
          clearInterval(times);
          _this3.noClick = false;
          _this3.codeNeed = '点击发送验证码';
        }
      }, 1000);
      this._Util.post(this._Api.POST_APP_SEND_CODE, {
        phone: this.phoneNumber
      }, function (data) {}, function () {}, this, true);
    },
    /**
     * 提交免营销设置
    */
    subFn: (0, _throttleDebounce.debounce)(500, function () {
      var _this4 = this;
      if (!this.btnActive) {
        return;
      }
      if (this.subReasonText === '其他' && !this.remark) {
        (0, _mintUi.Toast)({
          message: '请输入其他原因',
          duration: 2000
        });
        return;
      }
      this._Util.post(this._Api.TELEMARK_RECODE, {
        uphone: this.phoneNumber,
        code: this.telCode,
        reason: this.subReasonText === '其他' ? this.remark : this.subReasonText
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '免电话营销设置成功',
          duration: 2000
        });
        _this4.readrightFn(2);
        setTimeout(function () {
          api.closeWin({});
        }, 500);
      }, function () {}, this);
    }),
    /**
     * 跳转到对应的协议
    */
    toRight: function toRight(type) {
      this.readrightFn(1);
      api.sendEvent({
        name: 'acOpenNewFrm',
        extra: {
          name: 'right' + type,
          url: location.origin + type
        }
      });
    },
    /**
     * 阅读协议记录
    */
    readrightFn: function readrightFn(moudle) {
      var deviceId = api.deviceId;
      var params = [];
      params = [{
        deviceId: deviceId,
        moudle: moudle,
        type: 4 // 类型（1/个人信息保护政策；2/用户协议；3/论坛社区管理制度；4/免电话营销服务承诺）
      }];
      this._Util.post(this._Api.READING_PROTOCOL_RECORD, {
        readingProtocolRecordForms: params
      }, function (data) {}, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"no-call"},[_c('div',{staticClass:"wrap"},[_c('p',[_vm._v("我们承诺"+_vm._s(_vm.time)+"时间内不会接到"+_vm._s(_vm.name)+"的营销电话")]),_vm._v(" "),_c('div',{staticClass:"code-box"},[_c('div',{staticClass:"code-item"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phoneNumber),expression:"phoneNumber"}],attrs:{"type":"text","maxlength":"11","placeholder":"请输入您的联系电话"},domProps:{"value":(_vm.phoneNumber)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.phoneNumber=$event.target.value},_vm.telChange]}})]),_vm._v(" "),_c('div',{staticClass:"code-item"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.telCode),expression:"telCode"}],attrs:{"type":"text","maxlength":"6","placeholder":"请输入验证码"},domProps:{"value":(_vm.telCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.telCode=$event.target.value}}}),_vm._v(" "),_c('button',{attrs:{"disabled":_vm.noClick},on:{"click":function($event){return _vm.getCode()}}},[_vm._v(_vm._s(_vm.codeNeed))])])]),_vm._v(" "),_c('p',{staticClass:"reason"},[_vm._v("请选择免电话营销设置原因：")]),_vm._v(" "),_c('div',{staticClass:"reason-box"},[_vm._l((_vm.reasonList),function(item,index){return _c('div',{key:index,staticClass:"reason-item",on:{"click":function($event){return _vm.selectOne(item)}}},[(!item.isSelect)?_c('span'):_c('img',{attrs:{"src":__webpack_require__(2810),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right",class:{'no-border': index === (_vm.reasonList.length - 1)}},[_vm._v(_vm._s(item.text))])])}),_vm._v(" "),_c('div',{staticClass:"remark"},[_c('textarea-autosize',{directives:[{name:"fixIos12Input",rawName:"v-fixIos12Input"}],ref:"textarea",staticClass:"textarea",attrs:{"id":"textarea","placeholder":"请输入其他原因","max-height":180,"disabled":_vm.subReasonText !== '其他'},nativeOn:{"click":function($event){return _vm.textInput.apply(null, arguments)}},model:{value:(_vm.remark),callback:function ($$v) {_vm.remark=$$v},expression:"remark"}})],1)],2),_vm._v(" "),_c('div',{staticClass:"copyRight"},[(_vm.isSelected)?_c('img',{attrs:{"src":__webpack_require__(2811),"alt":""},on:{"click":function($event){_vm.isSelected = false}}}):_c('img',{attrs:{"src":__webpack_require__(2812),"alt":""},on:{"click":function($event){_vm.isSelected = true}}}),_vm._v(" "),_c('div',{staticClass:"accright"},[_vm._v("勾选即表示您同意"),_c('span',{on:{"click":function($event){return _vm.toRight('/v2/noCallRight')}}},[_vm._v("《免电话营销服务承诺》")])])]),_vm._v(" "),_c('div',{staticClass:"sub-btn",class:{'active': _vm.btnActive},on:{"click":_vm.subFn}},[_vm._v("\n      确认提交\n    ")])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/selected1.31eba98.png";module.exports = __webpack_require__.p + "static/img/slected.8bace1a.png";module.exports = __webpack_require__.p + "static/img/noselect.5c606d7.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(514);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d72ae010_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1113);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2813)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d72ae010_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d72ae010_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_personalCertification_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2814);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("64bfacfa", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".changephone-wrap{height:auto!important;min-height:100%}.changephone-wrap.touch{-ms-touch-action:none;touch-action:none}#head{padding:20px 20px 0}#head h3{font-size:20px;font-weight:700;color:#333;margin-bottom:5px}#head p{font-size:15px;color:#787878}.box{width:90%;margin:10px auto 0;padding:15px 0;overflow:hidden;border-bottom:1px solid #dbdbdd}.box span{font-size:18px;height:20px;line-height:20px;padding-right:20px;text-align:left;position:relative;top:3px}.box input,.box span{font-family:PingFangSC-Regular;color:#333;float:left}.box input{height:25px;line-height:25px;font-size:16px;padding-left:7px;width:55%}input::-webkit-input-placeholder{font-size:16px;color:#999;font-family:PingFangSC-Regular}#phoneNum span:after{content:\"\\2228\";position:absolute;-webkit-transform:scale(.8,.4);-ms-transform:scale(.8,.4);transform:scale(.8,.4);top:1px;right:2px}#codeNum{margin-top:0}#codeNum span{border-right:1px solid #fff}#codeNum div{float:right;margin-right:5px;font-family:PingFangSC-Regular;font-size:16px;color:#333;height:25px;line-height:25px}#codeNum div.addCor{color:#fe632a}#codeNum input{width:38%}#scope{padding:0 1.3rem}#scope p{color:#377ee1;font-size:.9rem;margin:2.5rem 0 1rem -.3rem}#scope span{width:31%;height:1.6rem;line-height:1.6rem;text-align:center;background:#f7f7f7;border:1px solid #333;display:inline-block;color:#333;margin-bottom:.8rem}#scope span:not(:nth-of-type(3n)){margin-right:3%}#scope span.selcted{background:#e8f1ff url(" + escape(__webpack_require__(1442)) + ") no-repeat;background-size:.8rem;background-position:100% 0;border:1px solid #377ee1;color:#ef7549}#save{height:45px;line-height:45px;color:#fff;font-size:20px;text-align:center;width:90%;margin:30px auto;background:#fe632a;border-radius:4px;-webkit-border-rsdius:4px}.countryMask{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1000;background:#f2f2f2}.redColor{color:#fe632a}.v-modal{opacity:.7}.mint-msgbox{width:290px}.mint-msgbox .mint-msgbox-message,.mint-msgbox .mint-msgbox-title{font-family:PingFangSC-Regular;font-size:20px;color:#353535;font-weight:400}.mint-msgbox .mint-msgbox-message{font-family:PingFangSC-Regular;font-size:18px;color:#353535;font-weight:400;line-height:28px;text-align:center}.mint-msgbox-btns{height:49px;line-height:49px}.mint-msgbox-btn{font-family:PingFangSC-Regular;font-size:18px;color:#ee4545}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/ok.64cdfed.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
var _vue = _interopRequireDefault(__webpack_require__(22));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
var _jquery = _interopRequireDefault(__webpack_require__(16));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _icon.default.name, _icon.default),
  data: function data() {
    return {
      res: [],
      resLast: '',
      noClick: false,
      valueArr: [],
      valueLastArr: [],
      showLast: false,
      myValue: '',
      // 业务范围传值
      iosOrAndroid: false,
      // 解决touch ios中报错
      codeNeed: '获取验证码',
      originPhone: '',
      phoneNumber: '',
      uname: '',
      codePass: '',
      phoneTest: /^1[3456789]\d{9}$/,
      countryVal: '+86',
      showCountryList: false,
      countryList: [{
        name: '中国大陆',
        val: '+86',
        check: false
      }, {
        name: '香港',
        val: '+852',
        check: false
      }, {
        name: '澳门',
        val: '+853',
        check: false
      }, {
        name: '台湾',
        val: '+886',
        check: false
      }, {
        name: 'Angola',
        val: '+244',
        check: false
      }, {
        name: 'Malaysia',
        val: '+60',
        check: false
      }, {
        name: 'India',
        val: '+91',
        check: false
      }, {
        name: 'Algeria',
        val: '+213',
        check: false
      }, {
        name: 'Brazil',
        val: '+55',
        check: false
      }, {
        name: 'Czech',
        val: '+420',
        check: false
      }, {
        name: 'Ireland',
        val: '+353',
        check: false
      }, {
        name: 'Saudi Arabia',
        val: '+966',
        check: false
      }, {
        name: 'Singapore',
        val: '+65',
        check: false
      }, {
        name: 'Thailand',
        val: '+66',
        check: false
      }, {
        name: 'United States',
        val: '+1',
        check: false
      }, {
        name: 'Vietnam',
        val: '+84',
        check: false
      }, {
        name: 'Zimbabwe',
        val: '+263',
        check: false
      }]
    };
  },
  created: function created() {
    (0, _jquery.default)('html').css('cssText', 'font-size: 20px !important');
  },
  mounted: function mounted() {
    this.getUserInfo();
    // this.selcList()
    this.iosOrAndroid = this._Util.getUserAgent().platForm == 'ios';
    // console.log(this._Util.getUserAgent().platForm)
    // 记录埋点
    // this._Util.collectPageView2(
    //   {
    //     postUrl: this._Api.POST_COLLECT,
    //     moduleType: '手机号',
    //     operate_page: '绑定手机号',
    //     optionType: '打开页面',
    //     param1: window.location.href
    //   },
    //   this
    // )
  },
  methods: {
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.originPhone = data.uphone || '';
        }
      }, function () {}, that);
    },
    showTip: function showTip(tipText) {
      var that = this;
      _mintUi.MessageBox.alert(tipText, '提示', {
        'confirmButtonText': '好的',
        'closeOnClickModal': false
      }).then(function (action) {
        if (that._Util.isApp() && that._Util.isAppRootWin()) {
          that._Util.acSendEvent({
            name: that._Enums.AC_ENUMS_OPEN_FRM,
            extra: {
              url: that._Api.HOSTRESOURCEPATH + '/v2/member/center'
            }
          });
        } else {
          that.$router.push({
            name: 'memberCenter'
          });
        }
      });
    },
    getCode: function getCode() {
      var that = this;
      if (that.noClick) {
        return;
      }
      // 发送短信验证码
      if (!that.phoneNumber) {
        that._Util.showMsgBox('请输入手机号');
        return;
      }
      if (that.countryVal == '+86' && !that.phoneTest.test(that.phoneNumber)) {
        that._Util.showMsgBox('手机号码格式不正确，请重新输入');
        return;
      }
      var phone = '';
      if (that.countryVal == '+86') {
        phone = that.phoneNumber;
      } else {
        phone = that.countryVal + '-' + that.phoneNumber;
      }
      that.$http.post(that._Api.HOSTOLD + 'api/common-api/member/sendMsg.json', {
        phone: phone
      }).then(function (response) {
        if (response.data.status == 500) {
          _mintUi.MessageBox.alert('手机号已存在', '提示', {
            'confirmButtonText': '确认',
            'closeOnClickModal': false
          }).then(function (action) {});
          return;
        } else if (response.data.status == 200) {
          that.noClick = true;
          var timeDown = 59;
          that.codeNeed = '60秒后重新发送';
          var times = setInterval(function () {
            that.codeNeed = timeDown + '秒后重新发送';
            timeDown--;
            if (timeDown == 0) {
              clearInterval(times);
              that.noClick = false;
              that.codeNeed = '获取验证码';
            }
          }, 1000);
        }
      });
    },
    showCountryListEvent: function showCountryListEvent() {
      this.showCountryList = true;
      var _iterator = _createForOfIteratorHelper(this.countryList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          if (this.countryVal == v.val) {
            v.check = true;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    },
    getChose: function getChose(item) {
      var _iterator2 = _createForOfIteratorHelper(this.countryList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          v.check = false;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      item.check = true;
      this.countryVal = item.val;
      this.showCountryList = false;
    },
    savaUserInfo: function savaUserInfo() {
      var _this = this;
      var that = this;
      // if (that.phoneNumber && !that.phoneTest.test(that.phoneNumber)) {
      //   that._Util.showMsgBox('手机号码格式不正确，请重新输入');
      //   return;
      // }
      if (!that.phoneNumber) {
        that._Util.showMsgBox('请输入手机号');
        return;
      }
      if (that.countryVal == '+86' && !that.phoneTest.test(that.phoneNumber)) {
        that._Util.showMsgBox('手机号码格式不正确，请重新输入');
        return;
      }
      // if (that.myValue == '') {
      //   that._Util.showMsgBox('请选择业务范围！')
      //   return
      // }
      var phone = '';
      if (that.countryVal == '+86') {
        phone = that.phoneNumber;
      } else {
        phone = that.countryVal + '-' + that.phoneNumber;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/common-api/member/checkCode.json', {
        phone: phone,
        inputCode: that.codePass
      }, function (data) {
        that._Util.post(that._Api.POST_MEMBER_USER_PHONE, {
          // 仅修改手机号，使用专门修改手机号的接口
          uphone: phone,
          inputCode: that.codePass
        }, function (data) {
          that.PostValue();
          if (_this._Util.isApp()) {
            api.execScript({
              name: 'root',
              frameName: 'my',
              script: "window.$bus.$emit('updateInfo')"
            });
          }
          if (that.$route.query.from == 'kxyMemberCenter') {
            _this.$store.dispatch('refreshUserInfo');
            that.$router.go(-1);
            return;
          }
          if (that.$route.query.from == 'link') {
            // 如果从连接直接进来
            that.showTip('恭喜你，认证成功！');
            return;
          }
          that._Util.showMsgBoxConfirm('恭喜你，认证成功！', function (action) {
            if (action) {
              if (localStorage.getItem('inWxMinapp') === '1') {
                // 微信小程序
                uni.postMessage({
                  // eslint-disable-line
                  data: {
                    type: 'updataUrl' // 通知小程序刷新webview
                  }
                });
                uni.navigateBack(); // eslint-disable-line
                return;
              }
              that.$router.replace({
                name: 'memberCenter'
              });
            } else {
              if (that.$route.query.nextPath) {
                window.location.href = that.$route.query.nextPath;
              } else if (that.$route.query.from == 'prev') {
                that.$router.go(-1);
              } else if (that.$route.query.from && that.$route.query.from != 'link') {
                that.$router.replace({
                  name: that.$route.query.from
                });
              } else {
                if (that._Util.isApp()) {
                  api.historyBack({
                    frameName: 'extPage'
                  }, function (ret, err) {
                    if (!ret.status) {
                      api.setStatusBarStyle({
                        style: 'light',
                        color: '#397FE1'
                      });
                      api.closeWin();
                    }
                  });
                } else {
                  that.$router.go(-1);
                }
              }
            }
          }, {
            confirmButtonText: '会员中心',
            cancelButtonText: '返回',
            closeOnClickModal: false
          });
        }, function () {}, that);
      }, function () {}, that, true);
    },
    // 获取选择列表接口
    selcList: function selcList() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/user-api/storeInfo/getProject.json', {}, function (data) {
        that.resLast = data[data.length - 1];
        data.pop();
        that.res = data;
      }, function () {}, that, true);
    },
    // 点击选择标签
    selectStyle: function selectStyle(item, index) {
      var that = this;
      if (item) {
        // 有传参
        that.showLast = false;
        that.valueLastArr = [];
        if (item.active) {
          _vue.default.set(item, 'active', false);
          that.valueArr.splice(that.valueArr.indexOf(item.value), 1);
        } else {
          _vue.default.set(item, 'active', true);
          that.valueArr.push(item.value);
        }
      } else {
        // 最后一个
        that.showLast = !that.showLast;
        for (var i = 0; i < that.res.length; i++) {
          _vue.default.set(that.res[i], 'active', false);
        }
        if (that.showLast) {
          // 选中
          that.valueArr = [];
          that.valueLastArr = [that.resLast.value];
        } else {
          that.valueLastArr = [];
        }
      }
      that.myValue = that.valueArr.concat(that.valueLastArr).join(',');
      // console.log(that.myValue)
    },
    // 标签传值接口
    PostValue: function PostValue() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/user-api/storeInfo/saveStoreInfo.json', {
        projectValue: that.myValue
      }, function (data) {}, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"changephone-wrap",class:{touch:_vm.iosOrAndroid}},[(_vm.showCountryList)?_c('div',{staticClass:"countryMask"},_vm._l((_vm.countryList),function(v,i){return _c('div',{key:i,staticStyle:{"width":"100%","height":"45px","overflow":"hidden","font-size":"16px","background":"white"},on:{"click":function($event){return _vm.getChose(v)}}},[_c('div',{class:{'redColor': v.check},staticStyle:{"float":"left","width":"67%","padding-left":"3%","height":"100%","line-height":"45px"}},[_vm._v(_vm._s(v.name)+" "+_vm._s(v.val))]),_vm._v(" "),(v.check)?_c('van-icon',{staticStyle:{"float":"right","width":"18px","height":"18px","margin-right":"30px","margin-top":"15px"},attrs:{"name":"checked","color":"#FE632A"}}):_vm._e()],1)}),0):_vm._e(),_vm._v(" "),(_vm.originPhone)?_c('div',{attrs:{"id":"head"}},[_c('h3',[_vm._v("您当前的手机号："+_vm._s(_vm.originPhone))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"box",attrs:{"id":"phoneNum"}},[_c('span',{on:{"click":function($event){return _vm.showCountryListEvent()}}},[_vm._v(_vm._s(_vm.countryVal))]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phoneNumber),expression:"phoneNumber"}],attrs:{"type":"tel","maxlength":"11","placeholder":"手机号"},domProps:{"value":(_vm.phoneNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phoneNumber=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"box",attrs:{"id":"codeNum"}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.codePass),expression:"codePass"}],attrs:{"type":"tel","maxlength":"6","placeholder":"请输入6位验证码"},domProps:{"value":(_vm.codePass)},on:{"input":function($event){if($event.target.composing){ return; }_vm.codePass=$event.target.value}}}),_vm._v(" "),_c('div',{class:{addCor:_vm.noClick},attrs:{"disabled":_vm.noClick},on:{"click":function($event){return _vm.getCode()}}},[_vm._v(_vm._s(_vm.codeNeed))])]),_vm._v(" "),_c('div',{attrs:{"id":"save"},on:{"click":function($event){return _vm.savaUserInfo()}}},[_vm._v("确认")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(515);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e64edb7_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1114);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2815)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e64edb7_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e64edb7_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_phoneChange_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2816);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("de1a77ea", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".changephone-wrap{height:auto!important;min-height:100%}.changephone-wrap.touch{-ms-touch-action:none;touch-action:none}#head{padding:20px 20px 0}#head h3{font-size:22px;font-weight:700;color:#333;margin-bottom:5px}#head p{font-size:15px;color:#787878}.box{width:90%;margin:10px auto 0;padding:15px 0;overflow:hidden;border-bottom:1px solid #dbdbdd}.box span{font-size:18px;height:20px;line-height:20px;padding-right:20px;text-align:left;position:relative;top:3px}.box input,.box span{font-family:PingFangSC-Regular;color:#333;float:left}.box input{height:25px;line-height:25px;font-size:16px;padding-left:7px;width:55%}input::-webkit-input-placeholder{font-size:16px;color:#999;font-family:PingFangSC-Regular}#phoneNum span:after{content:\"\\2228\";position:absolute;-webkit-transform:scale(.8,.4);-ms-transform:scale(.8,.4);transform:scale(.8,.4);top:1px;right:2px}#codeNum{margin-top:0}#codeNum span{border-right:1px solid #fff}#codeNum div{float:right;margin-right:5px;font-family:PingFangSC-Regular;font-size:16px;color:#333;height:25px;line-height:25px}#codeNum div.addCor{color:#377ee1}#codeNum input{width:38%}#scope{padding:0 1.3rem}#scope p{color:#377ee1;font-size:.9rem;margin:2.5rem 0 1rem -.3rem}#scope span{width:4.4rem;height:1.6rem;line-height:1.6rem;text-align:center;background:#f7f7f7;border:1px solid #333;display:inline-block;color:#333;margin-bottom:.8rem}#scope span:not(:nth-of-type(3n)){margin-right:1.4rem}#scope span.selcted{background:#e8f1ff url(" + escape(__webpack_require__(1442)) + ") no-repeat;background-size:.8rem;background-position:100% 0;border:1px solid #377ee1;color:#377ee1}#save{height:45px;line-height:45px;color:#fff;font-size:20px;text-align:center;width:90%;margin:30px auto;background:#377ee1;border-radius:4px;-webkit-border-rsdius:4px}.countryMask{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1000;background:#f2f2f2}.redColor{color:#c13434}.v-modal{opacity:.7}.mint-msgbox{width:290px}.mint-msgbox .mint-msgbox-message,.mint-msgbox .mint-msgbox-title{font-family:PingFangSC-Regular;font-size:20px;color:#353535;font-weight:400}.mint-msgbox .mint-msgbox-message{font-family:PingFangSC-Regular;font-size:18px;color:#353535;font-weight:400;line-height:28px;text-align:center}.mint-msgbox-btns{height:49px;line-height:49px}.mint-msgbox-btn{font-family:PingFangSC-Regular;font-size:18px;color:#ee4545}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = _interopRequireDefault(__webpack_require__(22));
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      res: [],
      resLast: '',
      noClick: false,
      valueArr: [],
      valueLastArr: [],
      showLast: false,
      myValue: '',
      // 业务范围传值
      iosOrAndroid: false,
      // 解决touch ios中报错
      codeNeed: '获取验证码',
      phoneNumber: '',
      uphone: '',
      codePass: '',
      phoneTest: /^1[3456789]\d{9}$/,
      countryVal: '+86',
      showCountryList: false,
      countryList: [{
        name: '中国大陆',
        val: '+86',
        check: false
      }, {
        name: '香港',
        val: '+852',
        check: false
      }, {
        name: '澳门',
        val: '+853',
        check: false
      }, {
        name: '台湾',
        val: '+886',
        check: false
      }, {
        name: 'Angola',
        val: '+244',
        check: false
      }, {
        name: 'Malaysia',
        val: '+60',
        check: false
      }, {
        name: 'India',
        val: '+91',
        check: false
      }, {
        name: 'Algeria',
        val: '+213',
        check: false
      }, {
        name: 'Brazil',
        val: '+55',
        check: false
      }, {
        name: 'Czech',
        val: '+420',
        check: false
      }, {
        name: 'Ireland',
        val: '+353',
        check: false
      }, {
        name: 'Saudi Arabia',
        val: '+966',
        check: false
      }, {
        name: 'Singapore',
        val: '+65',
        check: false
      }, {
        name: 'Thailand',
        val: '+66',
        check: false
      }, {
        name: 'United States',
        val: '+1',
        check: false
      }, {
        name: 'Vietnam',
        val: '+84',
        check: false
      }, {
        name: 'Zimbabwe',
        val: '+263',
        check: false
      }]
    };
  },
  mounted: function mounted() {
    this.getUserInfo();
    this.selcList();
    this.iosOrAndroid = this._Util.getUserAgent().platForm == 'ios';
    // 记录埋点
    this._Util.collectPageView2({
      postUrl: this._Api.POST_COLLECT,
      moduleType: '手机号',
      operate_page: '修改手机号',
      optionType: '打开页面',
      param1: window.location.href
    }, this);
  },
  methods: {
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.uphone = data.uphone || '';
        }
      }, function () {}, that);
    },
    // 默认选择
    getSelcInfo: function getSelcInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORES_BUSINESS_SAVE, {}, function (data) {
        if (data) {
          if (data.length == 1 && data[0].value == 16) {
            // 以上都不是
            that.valueLastArr = [data[0].value];
            that.showLast = true;
          } else {
            for (var i = 0; i < data.length; i++) {
              that.valueArr.push(data[i].value);
              for (var j = 0; j < that.res.length; j++) {
                if (that.res[j].value == data[i].value) {
                  _vue.default.set(that.res[j], 'active', true);
                }
              }
            }
          }
        }
      }, function () {}, that);
    },
    showTip: function showTip(tipText) {
      var that = this;
      _mintUi.MessageBox.alert(tipText, '提示', {
        'confirmButtonText': '好的',
        'closeOnClickModal': false
      }).then(function (action) {
        if (that._Util.isApp() && that._Util.isAppRootWin()) {
          that._Util.acSendEvent({
            name: that._Enums.AC_ENUMS_OPEN_FRM,
            extra: {
              url: that._Api.HOSTRESOURCEPATH + '/v2/member/center'
            }
          });
        } else {
          that.$router.push({
            name: 'memberCenter'
          });
        }
      });
    },
    getCode: function getCode() {
      var that = this;
      if (that.noClick) {
        return;
      }
      // 发送短信验证码
      if (!that.phoneNumber) {
        that._Util.showMsgBox('请输入手机号');
        return;
      }
      if (that.countryVal == '+86' && !that.phoneTest.test(that.phoneNumber)) {
        that._Util.showMsgBox('手机号码格式不正确，请重新输入');
        return;
      }
      if (that.phoneNumber == that.uphone) {
        that._Util.showMsgBox('手机号相同，请重新输入');
        return;
      }
      var phone = '';
      if (that.countryVal == '+86') {
        phone = that.phoneNumber;
      } else {
        phone = that.countryVal + '-' + that.phoneNumber;
      }
      that.$http.post(that._Api.HOSTOLD + 'api/common-api/member/sendMsg.json', {
        phone: phone
      }).then(function (response) {
        if (response.data.status == 500) {
          _mintUi.MessageBox.alert('手机号已存在', '提示', {
            'confirmButtonText': '确认',
            'closeOnClickModal': false
          }).then(function (action) {});
          return;
        } else if (response.data.status == 200) {
          that.noClick = true;
          var timeDown = 59;
          that.codeNeed = '60秒后重新发送';
          var times = setInterval(function () {
            that.codeNeed = timeDown + '秒后重新发送';
            timeDown--;
            if (timeDown == 0) {
              clearInterval(times);
              that.noClick = false;
              that.codeNeed = '获取验证码';
            }
          }, 1000);
        }
      });
    },
    showCountryListEvent: function showCountryListEvent() {
      this.showCountryList = true;
      var _iterator = _createForOfIteratorHelper(this.countryList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          if (this.countryVal == v.val) {
            v.check = true;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    },
    getChose: function getChose(item) {
      var _iterator2 = _createForOfIteratorHelper(this.countryList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          v.check = false;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      item.check = true;
      this.countryVal = item.val;
      this.showCountryList = false;
    },
    savaUserInfo: function savaUserInfo() {
      var _this = this;
      var that = this;
      that.myValue = that.valueArr.concat(that.valueLastArr).join(',');
      if (!that.phoneNumber) {
        that._Util.showMsgBox('请输入手机号');
        return;
      }
      if (that.countryVal == '+86' && !that.phoneTest.test(that.phoneNumber)) {
        that._Util.showMsgBox('手机号码格式不正确，请重新输入');
        return;
      }
      if (that.phoneNumber == that.uphone) {
        that._Util.showMsgBox('手机号相同，请重新输入');
        return;
      }
      if (that.myValue == '') {
        that._Util.showMsgBox('请选择业务范围！');
        return;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/common-api/member/checkCode.json', {
        phone: that.phoneNumber,
        inputCode: that.codePass
      }, function (data) {
        that._Util.post(that._Api.POST_MEMBER_USER_PHONE, {
          // 仅修改手机号，使用专门修改手机号的接口
          uphone: that.phoneNumber,
          inputCode: that.codePass
        }, function (data) {
          that.PostValue();
          if (_this._Util.isApp()) {
            api.execScript({
              name: 'root',
              frameName: 'my',
              script: "window.$bus.$emit('updateInfo')"
            });
          }
          if (that.$route.query.from == 'link') {
            // 如果从连接直接进来
            that.showTip('恭喜你，认证成功！');
            return;
          }
          that._Util.showMsgBoxConfirm('恭喜你，认证成功！', function (action) {
            if (action) {
              that.$router.replace({
                name: 'memberCenter'
              });
            } else {
              if (that.$route.query.nextPath) {
                window.location.href = that.$route.query.nextPath;
              } else if (that.$route.query.from == 'prev') {
                that.$router.go(-1);
              } else if (that.$route.query.from && that.$route.query.from != 'link') {
                that.$router.replace({
                  name: that.$route.query.from
                });
              } else {
                if (that._Util.isApp()) {
                  api.historyBack({
                    frameName: 'extPage'
                  }, function (ret, err) {
                    if (!ret.status) {
                      api.setStatusBarStyle({
                        style: 'light',
                        color: '#397FE1'
                      });
                      api.closeWin();
                    }
                  });
                } else {
                  that.$router.go(-1);
                }
              }
            }
          }, {
            confirmButtonText: '会员中心',
            cancelButtonText: '返回',
            closeOnClickModal: false
          });
        }, function () {}, that);
      }, function () {}, that, true);
    },
    // 获取选择列表接口
    selcList: function selcList() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/user-api/storeInfo/getProject.json', {}, function (data) {
        that.resLast = data[data.length - 1];
        data.pop();
        that.res = data;
        that.getSelcInfo();
      }, function () {}, that, true);
    },
    // 点击选择标签
    selectStyle: function selectStyle(item, index) {
      var that = this;
      if (item) {
        // 有传参
        that.showLast = false;
        that.valueLastArr = [];
        if (item.active) {
          _vue.default.set(item, 'active', false);
          that.valueArr.splice(that.valueArr.indexOf(item.value), 1);
        } else {
          _vue.default.set(item, 'active', true);
          that.valueArr.push(item.value);
        }
      } else {
        // 最后一个
        that.showLast = !that.showLast;
        for (var i = 0; i < that.res.length; i++) {
          _vue.default.set(that.res[i], 'active', false);
        }
        if (that.showLast) {
          // 选中
          that.valueArr = [];
          that.valueLastArr = [that.resLast.value];
        } else {
          that.valueLastArr = [];
        }
      }
    },
    // 标签传值接口
    PostValue: function PostValue() {
      var that = this;
      // console.log(that.myValue)
      that._Util.post(that._Api.HOSTOLD + 'api/user-api/storeInfo/saveStoreInfo.json', {
        projectValue: that.myValue
      }, function (data) {}, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"changephone-wrap",class:{touch:_vm.iosOrAndroid}},[(_vm.showCountryList)?_c('div',{staticClass:"countryMask"},_vm._l((_vm.countryList),function(v,i){return _c('div',{key:i,staticStyle:{"width":"100%","height":"45px","overflow":"hidden","font-size":"16px","background":"white"},on:{"click":function($event){return _vm.getChose(v)}}},[_c('div',{class:{'redColor': v.check},staticStyle:{"float":"left","width":"67%","padding-left":"3%","height":"100%","line-height":"45px"}},[_vm._v(_vm._s(v.name)+" "+_vm._s(v.val))]),_vm._v(" "),(v.check)?_c('img',{staticStyle:{"float":"right","width":"18px","height":"18px","margin-right":"20px","margin-top":"15px"},attrs:{"src":__webpack_require__(209)}}):_vm._e()])}),0):_vm._e(),_vm._v(" "),_c('div',{attrs:{"id":"head"}},[_c('h3',[_vm._v("你的手机号："+_vm._s(_vm.uphone))]),_vm._v(" "),_c('p',[_vm._v("更换手机号后下次可使用新的手机号码登录")])]),_vm._v(" "),_c('div',{staticClass:"box",attrs:{"id":"phoneNum"}},[_c('span',{on:{"click":function($event){return _vm.showCountryListEvent()}}},[_vm._v(_vm._s(_vm.countryVal))]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phoneNumber),expression:"phoneNumber"}],attrs:{"type":"tel","maxlength":"11","placeholder":"请输入手机号"},domProps:{"value":(_vm.phoneNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phoneNumber=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"box",attrs:{"id":"codeNum"}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.codePass),expression:"codePass"}],attrs:{"type":"tel","maxlength":"6","placeholder":"请输入验证码"},domProps:{"value":(_vm.codePass)},on:{"input":function($event){if($event.target.composing){ return; }_vm.codePass=$event.target.value}}}),_vm._v(" "),_c('div',{class:{addCor:_vm.noClick},attrs:{"disabled":_vm.noClick},on:{"click":function($event){return _vm.getCode()}}},[_vm._v(_vm._s(_vm.codeNeed))])]),_vm._v(" "),_c('div',{attrs:{"id":"scope"}},[_c('p',[_vm._v("业务范围（可多选）")]),_vm._v(" "),_vm._l((_vm.res),function(item,index){return _c('span',{key:index,class:{selcted:item.active},on:{"click":function($event){return _vm.selectStyle(item,index)}}},[_vm._v(_vm._s(item.name))])}),_vm._v(" "),_c('span',{class:{selcted:_vm.showLast},on:{"click":function($event){return _vm.selectStyle()}}},[_vm._v(_vm._s(_vm.resLast.name))])],2),_vm._v(" "),_c('div',{attrs:{"id":"save"},on:{"click":function($event){return _vm.savaUserInfo()}}},[_vm._v("确认更换手机号")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(516);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b7de0e3e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1115);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2817)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b7de0e3e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b7de0e3e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2818);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3ebb214d", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".personal_detail{width:100%;height:100%;background:#f6f6f6}.personal_detail .headBox{height:165px;background:#377ee1;position:relative}.personal_detail .headBox .userBox{height:90px;width:300px;position:absolute;left:50%;top:20px;margin-left:-150px;text-align:center}.personal_detail .headBox .userBox img{width:60px;height:60px;border-radius:50%;-webkit-border-radius:50%}.personal_detail .headBox .userBox .name{height:30px;line-height:30px;color:#fff;font-family:PingFangSC-Regular;font-size:18px}.personal_detail .headBox ul{position:absolute;bottom:0;width:100%;height:44px;background:#214b87}.personal_detail .headBox ul li{float:left;width:25%;height:44px;text-align:center;opacity:.6;font-family:PingFangSC-Regular;font-size:16px;color:#fff;line-height:44px;position:relative}.personal_detail .headBox ul li:first-of-type{opacity:1}.personal_detail .headBox ul li:first-of-type:after{content:\"\";position:absolute;width:28px;height:3px;background:#fff;bottom:0;left:50%;margin-left:-14px}.personal_detail .detail_img{overflow:hidden;text-align:center}.personal_detail .detail_img img{margin:31px auto 15px;width:75px;border-radius:37.5px}.personal_detail .detail_img p{text-align:center}#header{padding:10px 0;border-bottom:10px solid #f6f6f6}#header ul{background:url(" + escape(__webpack_require__(46)) + ") 100% no-repeat;background-size:7px 14px}.personal_detail .detail_mation ul{overflow:hidden;border-bottom:1px solid #e6e6e6;margin:0 10px;background:url(" + escape(__webpack_require__(46)) + ") 100% no-repeat;background-size:7px 14px;position:relative}.personal_detail .detail_mation ul li{height:50px;line-height:50px;float:left;color:#333;font-size:16px}.personal_detail .detail_mation ul select{position:absolute;width:100%;height:100%;left:0;top:0;text-align:right;opacity:0}.personal_detail .detail_mation ul li.detail_title{float:right;margin-right:15px;color:#333;width:66%;text-align:right}.personal_detail .detail_mation ul li.detail_title a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.personal_detail .detail_btn{position:fixed;bottom:0;left:0;height:70px;width:100%;overflow:hidden;background:#fff}.personal_detail .detail_mation ul li.wanshan{color:#ee4545}.personal_detail .detail_btn button{display:block;width:92%;margin-left:4%;height:50px;margin-top:10px;background:#d41116;color:#fff;font-size:16px;text-align:center;line-height:50px;border-radius:5px}.selectBox:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #555;content:\"\";position:absolute;width:0;top:45%}.countryMask{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1000;background:#f2f2f2}.redColor{color:#c13434}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _DialogComponent = _interopRequireDefault(__webpack_require__(136));
var _index = _interopRequireDefault(__webpack_require__(1414));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    DialogComponent: _DialogComponent.default,
    DateTimePicker: _index.default
  },
  data: function data() {
    return {
      styleColor: {
        entityBgColor: '#ff0000'
      },
      showCountryList: false,
      countryList: [{
        name: '中国大陆',
        val: '+86',
        check: false
      }, {
        name: '香港',
        val: '+852',
        check: false
      }, {
        name: '澳门',
        val: '+853',
        check: false
      }, {
        name: '台湾',
        val: '+886',
        check: false
      }, {
        name: 'Angola',
        val: '+244',
        check: false
      }, {
        name: 'Malaysia',
        val: '+60',
        check: false
      }, {
        name: 'India',
        val: '+91',
        check: false
      }, {
        name: 'Algeria',
        val: '+213',
        check: false
      }, {
        name: 'Brazil',
        val: '+55',
        check: false
      }, {
        name: 'Czech',
        val: '+420',
        check: false
      }, {
        name: 'Ireland',
        val: '+353',
        check: false
      }, {
        name: 'Saudi Arabia',
        val: '+966',
        check: false
      }, {
        name: 'Singapore',
        val: '+65',
        check: false
      }, {
        name: 'Thailand',
        val: '+66',
        check: false
      }, {
        name: 'United States',
        val: '+1',
        check: false
      }, {
        name: 'Vietnam',
        val: '+84',
        check: false
      }, {
        name: 'Zimbabwe',
        val: '+263',
        check: false
      }],
      newEntityText: '发送验证码',
      result: {},
      timeOut: 60,
      countryVal: '+86',
      phoneExp: /^1[3456789]\d{9}$/,
      emailExp: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
      entity: true,
      dialogShow: false,
      popupVisible: false,
      smsFlag: false,
      addressResult: {
        province: '',
        city: '',
        dist: '',
        country: ''
      },
      dialogItem: {
        title: '',
        confirmButton: '确定',
        cancelButton: '取消',
        flag: 1
      },
      newEntity: {},
      userType: '',
      addressid: 0,
      showDateTime: false,
      birthDay: '',
      repeatFlag: ''
    };
  },
  computed: {
    memberStatus: function memberStatus() {
      var memberStatus = '';
      if (this.result.userStatus == 0) {
        memberStatus = '未认证';
      } else if (this.result.userStatus == 1) {
        memberStatus = '已认证';
      } else {
        memberStatus = '已付费';
      }
      return memberStatus;
    }
  },
  mounted: function mounted() {
    var _this = this;
    var that = this;
    that.getInfo(that);
    that.checkSign(); // 检验是否已经签到

    that.$on('dialogSave', function (data) {
      var msg = '';
      switch (that.dialogItem.flag) {
        case 1:
          msg = that.newEntity.uname ? '' : '姓名不能为空 ';
          break;
        case 3:
          msg = that.newEntity.uemail ? '' : '邮箱地址不能为空 ';
          if (!msg && !that.emailExp.test(that.newEntity.uemail)) {
            msg = '邮箱地址格式不正确';
          }
          break;
        case 2:
          msg = that.newEntity.uphone ? '' : '电话号码不能为空 ';
          if (that.countryVal == '+86' && !msg && !that.phoneExp.test(that.newEntity.uphone)) {
            msg = '手机号码格式不正确';
          }
          break;
      }
      if (msg) {
        that._Util.showMsgBox(msg);
        return;
      }
      if (that.dialogItem.flag == 2) {
        that.checkCode(function () {
          that.save();
        });
      } else {
        that.save();
      }
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.$on('checkedCity', function (data) {
      if (data.province) {
        that.birthDay = data.province + '-' + data.city + '-' + data.area;
      }
      that.showDateTime = false;
      _this.newEntity = JSON.parse(JSON.stringify(_this.result));
      that.save();
    });
    that.$on('areaCancel', function () {
      that.showDateTime = false;
    });
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS, {
      type: 2
    }, function (data) {
      if (data && data.length) {
        that.addressResult = {
          province: data[0].province || '',
          city: data[0].city || '',
          dist: data[0].dist || '',
          country: data[0].address || ''
        };
      }
    }, function () {}, that);
  },
  methods: {
    toOpinionFank: function toOpinionFank() {
      this.$router.push({
        name: 'opinionFank'
      });
    },
    reviseHeadImg: function reviseHeadImg() {
      // 跳转到修改头像页面
      this.$router.push({
        name: 'changeUserHeader'
      });
    },
    toAuth: function toAuth() {
      // 去认证
      var that = this;
      console.log(that.result.userStatus);
      if (that.result.userStatus == 0) {
        that.$router.push({
          name: 'personalCertification',
          query: {
            from: 'memberPersonalInfo'
          }
        });
      } else {
        that.showModal({
          title: '修改手机号',
          flag: 2
        });
      }
    },
    save: function save() {
      var that = this;
      that.result = that.newEntity;
      that.dialogShow = false;
      var params = {
        nickname: that.result.nickname,
        sex: that.result.sex,
        province: that.result.province,
        city: that.result.city,
        country: that.result.country,
        headImgUrl: that.result.headImgUrl,
        uprovince: that.result.uprovince,
        ucity: that.result.ucity,
        udist: that.result.udist,
        uaddress: that.result.uaddress,
        ucompany: that.result.ucompany,
        uname: that.result.uname,
        uemail: that.result.uemail,
        uphone: that.result.uphone,
        inputCode: that.result.inputCode,
        openId: that.result.openId,
        userType: that.result.userType,
        birthDayStr: that.birthDay || that.result.birthDayStr
      };
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_SAVE, params, function (data) {
        //          that._Util.post(that._Api.POST_MEMBER_PERSONAL_SAVE_WXAUTH, params, function (data) {
        that.birthDay = '';
        that.getInfo(that);
        //          }, () => {
        //
        //          }, that)
      }, function () {}, that);
    },
    showCountryListEvent: function showCountryListEvent() {
      this.showCountryList = true;
      var _iterator = _createForOfIteratorHelper(this.countryList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          if (this.countryVal == v.val) {
            v.check = true;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    },
    showModal: function showModal(obj) {
      this.dialogItem.title = obj.title;
      this.dialogItem.flag = obj.flag;
      this.newEntity = JSON.parse(JSON.stringify(this.result));
      this.dialogShow = true;
    },
    changeUserType: function changeUserType() {
      this.newEntity = JSON.parse(JSON.stringify(this.result));
      this.newEntity.userType = this.userType;
      this.save();
    },
    getInfo: function getInfo(self) {
      var that = self;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.result = data;
        if (that.result.uphone) {
          if (that.result.uphone.indexOf('-') != -1) {
            that.countryVal = that.result.uphone.split('-')[0];
            that.newEntity.uphone = that.result.uphone.split('-')[1];
          } else {
            that.newEntity.uphone = that.result.uphone;
          }
        }
      }, function () {}, that);
    },
    getChose: function getChose(item) {
      var _iterator2 = _createForOfIteratorHelper(this.countryList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          v.check = false;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      item.check = true;
      this.countryVal = item.val;
      this.showCountryList = false;
    },
    getCode: function getCode() {
      var msg = '';
      var that = this;
      msg = that.newEntity.uphone ? '' : '电话号码不能为空 ';
      if (that.countryVal == '+86') {
        if (!that.phoneExp.test(that.newEntity.uphone)) {
          msg = '手机号码格式不正确';
        }
      }
      if (msg) {
        that._Util.showMsgBox(msg);
        return;
      }
      that.entity = false;
      var phone = '';
      if (that.countryVal == '+86') {
        phone = that.newEntity.uphone;
      } else {
        phone = that.countryVal + '-' + that.newEntity.uphone;
      }
      that._Util.post(that._Api.POST_WXAUTH_PHONE_NOTE, {
        phone: phone
      }, function (data) {
        that.smsFlag = true;
        var time = setInterval(function () {
          if (that.timeOut == 1) {
            that.newEntityText = '发送验证码';
            that.timeOut = 60;
            that.smsFlag = false;
            clearInterval(time);
          } else {
            that.newEntityText = that.timeOut-- + 's后重新发送';
          }
        }, 1000);
      }, function () {}, that);
    },
    checkCode: function checkCode(callback) {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_CHECK_CODE, {
        inputCode: that.newEntity.inputCode,
        phone: that.newEntity.uphone
      }, function (data) {
        // return;
        callback && callback();
      }, function () {}, that);
    },
    toAddress: function toAddress() {
      this.$router.push({
        name: 'memberAddress',
        query: {
          type: 2
        }
      });
    },
    toStore: function toStore() {
      // 跳转到门店信息页面
      this.$router.push({
        name: 'memberStore'
      });
    },
    toCollect: function toCollect() {
      // 跳转到收藏页面
      this.$router.push({
        name: 'memberCollecter'
      });
    },
    checkSign: function checkSign() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_DAILY_SINGIN_CHECK, {}, function (data) {
        that.repeatFlag = data.repeatFlag ? '已签到' : '每日签到';
      }, function () {}, that, true);
    },
    signIn: function signIn() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_DAILY_SINGIN, {}, function (data) {
        if (data) {
          if (data.repeatFlag) {
            that._Util.showToast('已签到，明天继续呗~');
          } else {
            that.repeatFlag = '已签到';
            that._Util.showMsgBox('连续签到' + data.days + '天', '获得' + data.point + '积分');
          }
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showCountryList)?_c('div',{staticClass:"countryMask"},_vm._l((_vm.countryList),function(v,i){return _c('div',{key:i,staticStyle:{"width":"100%","height":"45px","overflow":"hidden","font-size":"16px","background":"white"},on:{"click":function($event){return _vm.getChose(v)}}},[_c('div',{class:{'redColor': v.check},staticStyle:{"float":"left","width":"67%","padding-left":"3%","height":"100%","line-height":"45px"}},[_vm._v(_vm._s(v.name)+" "+_vm._s(v.val))]),_vm._v(" "),(v.check)?_c('img',{staticStyle:{"float":"right","width":"18px","height":"18px","margin-right":"20px","margin-top":"15px"},attrs:{"src":__webpack_require__(209)}}):_vm._e()])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"personal_detail",staticStyle:{"overflow-y":"auto","position":"relative","padding-bottom":"20px","-webkit-overflow-scrolling":"touch"},attrs:{"id":"personal_detail"}},[_c('div',{staticClass:"headBox"},[_c('div',{staticClass:"userBox"},[(_vm.result.headImgUrl)?_c('img',{attrs:{"src":_vm.result.headImgUrl,"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(808),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"name"},[_vm._v(_vm._s((_vm.result.uname ? _vm.result.uname.slice(0,12) : '') || '待完善'))])]),_vm._v(" "),_c('ul',[_c('li',[_vm._v("个人信息")]),_vm._v(" "),_c('li',{on:{"click":_vm.toStore}},[_vm._v("门店信息")]),_vm._v(" "),_c('li',{on:{"click":_vm.toCollect}},[_vm._v("我的收藏")]),_vm._v(" "),_c('li',{on:{"click":_vm.signIn}},[_vm._v(_vm._s(_vm.repeatFlag))])])]),_vm._v(" "),_c('div',{staticClass:"detail_mation",staticStyle:{"background":"#fff","margin-top":"10px"}},[_c('div',{attrs:{"id":"header"},on:{"click":_vm.reviseHeadImg}},[_c('ul',{staticStyle:{"border-bottom":"none"}},[_c('li',{staticClass:"detail_key"},[_vm._v("头像")]),_vm._v(" "),_c('li',{staticClass:"detail_title"},[_c('img',{staticStyle:{"width":"50px","height":"50px","border-radius":"50%"},attrs:{"src":_vm.result.headImgUrl}})])])]),_vm._v(" "),_c('ul',{on:{"click":function($event){return _vm.showModal({title: '修改姓名', flag: 1})}}},[_c('li',{staticClass:"detail_key"},[_vm._v("姓名")]),_vm._v(" "),_c('li',{staticClass:"detail_title",class:{'wanshan':!_vm.result.uname},domProps:{"innerHTML":_vm._s(_vm.result.uname || '待完善')}})]),_vm._v(" "),_c('ul',{staticStyle:{"border":"0"},on:{"click":_vm.toAuth}},[_c('li',{staticClass:"detail_key"},[_vm._v("手机号")]),_vm._v(" "),_c('li',{staticClass:"detail_title",class:{'wanshan':!_vm.result.uphone},domProps:{"innerHTML":_vm._s(_vm.result.uphone || '点击认证')}})]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","height":"10px","background":"#f2f2f2"}}),_vm._v(" "),_c('ul',{staticStyle:{"border":"0"}},[_c('li',{staticClass:"detail_key"},[_vm._v("会员状态")]),_vm._v(" "),_c('li',{staticClass:"detail_title",domProps:{"innerHTML":_vm._s(_vm.memberStatus)}})]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","height":"10px","background":"#f2f2f2"}}),_vm._v(" "),_c('ul',{on:{"click":function($event){return _vm.showModal({title: '修改邮箱', flag: 3})}}},[_c('li',{staticClass:"detail_key"},[_vm._v("邮箱")]),_vm._v(" "),_c('li',{staticClass:"detail_title",class:{'wanshan':!_vm.result.uemail},domProps:{"innerHTML":_vm._s(_vm.result.uemail || '待完善')}})]),_vm._v(" "),_c('ul',{staticStyle:{"border":"0"},on:{"click":function($event){_vm.showDateTime = !_vm.showDateTime}}},[_c('li',{staticClass:"detail_key"},[_vm._v("生日")]),_vm._v(" "),_c('li',{staticClass:"detail_title",class:{'wanshan':!_vm.result.birthDayStr}},[_vm._v(_vm._s(_vm.result.birthDayStr || '待完善'))])]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","height":"10px","background":"#f2f2f2"}}),_vm._v(" "),_c('ul',{staticStyle:{"border":"0"},on:{"click":function($event){return _vm.toAddress()}}},[_c('li',{staticClass:"detail_key"},[_vm._v("收货地址")]),_vm._v(" "),_c('li',{staticClass:"detail_title",class:{'wanshan':!_vm.addressResult.province},domProps:{"innerHTML":_vm._s((_vm.addressResult.province + _vm.addressResult.city + _vm.addressResult.dist + _vm.addressResult.country) || '待完善')}})])])]),_vm._v(" "),(_vm.dialogShow)?_c('Dialog-component',{attrs:{"type":"confirm","title":_vm.dialogItem.title,"confirm-button":_vm.dialogItem.confirmButton,"cancel-button":_vm.dialogItem.cancelButton,"call-back":""}},[(_vm.dialogItem.flag == 1)?_c('div',{staticClass:"newForm"},[_c('span',[_vm._v("姓名")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.newEntity.uname),expression:"newEntity.uname"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"text","placeholder":"请输入姓名"},domProps:{"value":(_vm.newEntity.uname)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.newEntity, "uname", $event.target.value)}}})]):_vm._e(),_vm._v(" "),(_vm.dialogItem.flag == 2)?_c('div',{staticClass:"newForm"},[_c('span',{staticClass:"selectBox",staticStyle:{"width":"30%"},on:{"click":function($event){return _vm.showCountryListEvent()}}},[_vm._v(_vm._s(_vm.countryVal))]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.newEntity.uphone),expression:"newEntity.uphone"},{name:"focus",rawName:"v-focus"}],staticStyle:{"width":"70%"},attrs:{"type":"number","attr":{ autofocus: 'autofocus'},"placeholder":"请输入手机号码"},domProps:{"value":(_vm.newEntity.uphone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.newEntity, "uphone", $event.target.value)}}})]):_vm._e(),_vm._v(" "),(_vm.dialogItem.flag == 2)?_c('div',{staticClass:"page-part newForm"},[_c('span',[_vm._v("验证码")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.newEntity.inputCode),expression:"newEntity.inputCode"}],attrs:{"type":"tel","placeholder":"输入验证码"},domProps:{"value":(_vm.newEntity.inputCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.newEntity, "inputCode", $event.target.value)}}}),_vm._v(" "),_c('button',{attrs:{"id":"newEntity","disabled":_vm.smsFlag},on:{"click":function($event){return _vm.getCode()}}},[_vm._v(_vm._s(_vm.newEntityText))])]):_vm._e(),_vm._v(" "),(_vm.dialogItem.flag == 3)?_c('div',{staticClass:"newForm"},[_c('span',[_vm._v("邮箱")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.newEntity.uemail),expression:"newEntity.uemail"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"email","placeholder":"请输入邮箱"},domProps:{"value":(_vm.newEntity.uemail)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.newEntity, "uemail", $event.target.value)}}})]):_vm._e()]):_vm._e(),_vm._v(" "),_c('Date-time-picker',{attrs:{"show":_vm.showDateTime}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(517);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_08ee3c2e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1116);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2819)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-08ee3c2e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_08ee3c2e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_08ee3c2e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_changeUserHeader_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2820);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("53783c55", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-08ee3c2e]{height:100%;background-color:#f2f2f2}.outContainer>.imageContainer[data-v-08ee3c2e]{background-color:#fff;min-height:255px;padding-top:28px;padding-left:12px;overflow:hidden}.outContainer>.imageContainer>.image[data-v-08ee3c2e]{float:left;width:70px;height:70px;position:relative;margin-right:15px;margin-bottom:15px}.outContainer>.imageContainer>.image>img[data-v-08ee3c2e]{width:100%;height:100%;border-radius:4px}.outContainer>.imageContainer>.image>span[data-v-08ee3c2e]{position:absolute;width:20px;height:20px;top:-10px;right:-10px;background-image:url(" + escape(__webpack_require__(805)) + ");background-size:100%;background-repeat:no-repeat}.outContainer>.imageContainer>.image[data-v-08ee3c2e]:last-child{background-color:#f4f4f4;box-sizing:border-box;border:1px solid #cfcfd8;position:relative}.outContainer>.imageContainer>.image:last-child .a-upload[data-v-08ee3c2e]{float:right;position:relative;cursor:pointer;overflow:hidden;width:100%;height:100%}.outContainer>.imageContainer>.image:last-child .a-upload .putPhoto[data-v-08ee3c2e]{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0}.outContainer>.imageContainer>.image:last-child .plus[data-v-08ee3c2e]{background-image:url(" + escape(__webpack_require__(806)) + ");background-size:100%;background-repeat:no-repeat;width:32px;height:32px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.outContainer>.button[data-v-08ee3c2e]{margin-top:32px;padding-left:12px;padding-right:12px;height:49px;line-height:49px}.outContainer>.button>div[data-v-08ee3c2e]{font-family:PingFangSC-Regular;font-size:18px;color:#fff;text-align:center;background:#ff6c37;border-radius:5px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      imgSrc: [],
      bucketUrl: '',
      token: '',
      newUserHeader: '',
      userInfo: {}
    };
  },
  created: function created() {
    var that = this;
    that.getInfo();
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '个人信息',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '个人信息,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /* 获取用户信息*/getInfo: function getInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.userInfo = data;
        if (that.userInfo.userinfo.headImgUrl) {
          that.imgSrc.push(that.userInfo.userinfo.headImgUrl);
        }
      }, function () {}, that);
    },
    /** 删除指定索引图片 */delImg: function delImg(i) {
      console.log(i);
      this.imgSrc.splice(i, 1);
      this.newShopHead = '';
      this.newUserHeader = '';
      (0, _jquery.default)('#fileInput').val(''); // 清空文件输入
      // 处理ios初次点击无效的问题
      if (this._Util.isIOS && this.imgSrc.length === 0) {
        // this.upload();
      }
    },
    /** 图片上传逻辑 */upload: function upload(e) {
      var that = this;
      var file = e.target.files[0];
      console.log(file);
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var formData = new FormData();
        formData.append('file', file);
        var url = '/api/blade-resource/oss/endpoint/put-file-attach-map-notsize';
        _jquery.default.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          headers: {
            'Authorization': 'Basic c2FiZXI6ZWVBNWtjY1o1Q21tTnpfb3hvTUU=',
            'Blade-Auth': 'bearer ' + localStorage.getItem('wxMiniAppToken')
          },
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          that.imgSrc.push(res.data.link);
          that.newUserHeader = res.data.name;
        }).fail(function () {});
      }
    },
    editInfo: function editInfo() {
      // 保存用户头像
      var that = this;
      if (that.userInfo.headImgUrl && that.imgSrc[0] == that.userInfo.headImgUrl) {
        that.$router.go(-1);
        return;
      }
      if (!this.newUserHeader) {
        (0, _mintUi.Toast)({
          message: '请选择图片',
          position: 'center',
          duration: 1500
        });
        return;
      }
      var params = {
        editType: 5,
        headImgUrl: that.newUserHeader,
        country: ''
      };
      that._Util.post(this._Api.MEMBER_STORE.saveUser, params, function (data) {
        that.$store.dispatch('refreshUserInfo');
        that.$router.go(-1);
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"imageContainer"},[_vm._l((_vm.imgSrc),function(item,index){return _c('div',{key:index,staticClass:"image"},[_c('img',{attrs:{"src":item && (item.indexOf('?imageView')>-1?item:item.split('?')[0]+'?imageView2/1/w/140/h/140')}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(index)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.imgSrc.length < 1),expression:"imgSrc.length < 1"}],staticClass:"image"},[_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"}},[_c('div',{staticClass:"plus"}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"id":"fileInput","accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})])])],2),_vm._v(" "),_c('div',{staticClass:"button",on:{"click":_vm.editInfo}},[_c('div',[_vm._v("保存")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(518);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7988bf1e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1117);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2821)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7988bf1e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7988bf1e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_opinionFank_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2822);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("19992a1e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".op-div{background:#fff;width:100%;padding:15px;border-radius:5px}.op-txt{width:100%;height:165px;padding:10px;border:none;background:#f2f2f2;border-radius:5px}.o-s{padding:10px 0;background:#fe632a;color:#fff;text-align:center;border-radius:5px;font-size:18px;margin:20px auto}.report-right{position:fixed;bottom:1rem;width:100%;left:0;text-align:center;color:#666;font:14px/1 PingFangSC-Regular}.report-right span{display:inline;color:#fe632a}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      txtVal: '',
      isReport: false,
      // 是否是投诉与举报
      placeholder: '请留下您的宝贵意见，谢谢'
    };
  },
  mounted: function mounted() {
    this.isReport = this.$route.query.from === 'report';
    if (this.isReport) {
      document.title = '投诉与举报';
      this.placeholder = '请输入您的投诉或举报内容';
    }
  },
  methods: {
    sub: function sub() {
      var that = this;
      if (!that.txtVal) {
        _mintUi.MessageBox.alert('请输入您的宝贵建议');
        return;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/feedback/add.json', {
        module: 2,
        refId: 0,
        content: that.txtVal,
        feedType: that.isReport ? 2 : 1
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '提交成功',
          duration: '1000'
        });
        setTimeout(function () {
          that.$router.go(-1);
        }, 1000);
      }, function () {}, that);
    },
    /**
     * 跳转到对应的协议
    */
    toRight: function toRight(type) {
      this.readrightFn();
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'right' + type,
            url: location.origin + type
          }
        });
      } else {
        location.href = location.origin + type;
      }
    },
    /**
     * 阅读协议记录
    */
    readrightFn: function readrightFn() {
      var deviceId = '';
      if (this._Util.isApp()) {
        deviceId = api.deviceId;
      }
      var params = [];
      params = [{
        deviceId: deviceId,
        moudle: 1,
        type: 3 // 类型（1/个人信息保护政策；2/用户协议；3/论坛社区管理制度；4/免电话营销服务承诺）
      }];
      this._Util.post(this._Api.READING_PROTOCOL_RECORD, {
        readingProtocolRecordForms: params
      }, function (data) {}, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#f6f6f6","padding":"15px"}},[_c('div',{staticClass:"op-div"},[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.txtVal),expression:"txtVal"}],staticClass:"op-txt",attrs:{"placeholder":_vm.placeholder},domProps:{"value":(_vm.txtVal)},on:{"input":function($event){if($event.target.composing){ return; }_vm.txtVal=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"o-s",on:{"click":function($event){return _vm.sub()}}},[_vm._v("提交")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(519);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cc1a1320_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1118);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2823)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cc1a1320_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_cc1a1320_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_helpAndFeedBack_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2824);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4739dc11", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".more{padding:10px;color:#ee4545;font-size:16px;text-align:center;background:#fff}.list-item{position:relative;font-size:16px}.list-item:after{height:15px;display:block;content:\"\";background:url(" + escape(__webpack_require__(223)) + ") 0 0 no-repeat;background-size:8px 15px;right:16px;margin-top:-8px}.circ,.list-item:after{width:8px;position:absolute;top:50%}.circ{height:8px;background:#ee4545;border-radius:50%;margin-top:-4px;right:32px}.view-item{border-radius:5px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: [],
      isShowMore: false,
      pageNum: 1,
      isNoread: this._Util.getLocalStorage('isNoread')
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getList();
    if (that._Util.isApp()) {
      api.addEventListener({
        name: 'salesUnReadNumToWeb'
      }, function (ret, err) {
        that.isNoread = true;
        localStorage.setItem('isNoread', true);
      });
    }
  },
  methods: {
    getList: function getList() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'common_question',
        pageNum: that.pageNum,
        pageSize: 5
      }, function (data) {
        if (data) {
          //              that.result = data;
          if (that.pageNum > 1) {
            that.result = that.result.concat(data.dataList || []);
          } else {
            that.result = data.dataList || [];
          }
          that.isShowMore = that.pageNum * 5 < data.totalCount;
        }
      }, function () {}, that);
    },
    loadMore: function loadMore() {
      var that = this;
      that.pageNum++;
      that.getList();
    },
    toOpinionFank: function toOpinionFank(type) {
      if (type) {
        this.$router.push({
          name: 'opinionFank',
          query: {
            from: 'report'
          }
        });
      } else {
        this.$router.push({
          name: 'opinionFank'
        });
      }
    },
    toUrl: function toUrl(item) {
      window.open(item.url);
    },
    openService: function openService() {
      var that = this;
      localStorage.setItem('isNoread', false);
      that.isNoread = false;
      api.sendEvent({
        name: 'openServiceChat',
        extra: {}
      });
      that._Util.post(that._Api.NEWHOST + 'common-api/app/messageNum.json', {}, function (data) {
        if (data == 0) {
          api.sendEvent({
            name: 'noShowBag',
            extra: {}
          });
        }
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#f6f6f6","padding":"10px 10px 0"}},[(_vm.result.length>0)?_c('div',{staticStyle:{"width":"100%"}},[_c('div',{staticStyle:{"padding":"10px 16px","font-size":"16px","color":"#666"}},[_vm._v("常见问题")]),_vm._v(" "),_vm._l((_vm.result),function(v,i){return _c('div',{key:i,staticStyle:{"color":"#333","padding-left":"16px","background":"white"},on:{"click":function($event){return _vm.toUrl(v)}}},[_c('div',{staticClass:"list-item",staticStyle:{"border-bottom":"1px solid rgba(241,241,241,1)","padding":"10px 16px 10px 0"}},[_vm._v("\n        "+_vm._s(v.title)+"\n      ")])])}),_vm._v(" "),(_vm.isShowMore)?_c('div',{staticClass:"more",on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("加载更多")]):_vm._e()],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"view-item",staticStyle:{"padding-left":"16px","background":"white","overflow":"hidden"},on:{"click":function($event){return _vm.toOpinionFank()}}},[_vm._m(0)]),_vm._v(" "),_c('div',{staticClass:"view-item",staticStyle:{"padding-left":"16px","margin-top":"10px","background":"white","overflow":"hidden"},on:{"click":function($event){return _vm.toOpinionFank(2)}}},[_vm._m(1)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"list-item",staticStyle:{"border-bottom":"1px solid rgba(241,241,241,1)","padding":"10px 16px 10px 0","overflow":"hidden"}},[_c('span',{staticStyle:{"float":"left","color":"#333","font-size":"16px"}},[_vm._v("意见反馈")]),_vm._v(" "),_c('span',{staticStyle:{"float":"right","margin-right":"10px","font-size":"14px","color":"#999"}},[_vm._v("请留下您的宝贵意见，谢谢")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"list-item",staticStyle:{"border-bottom":"1px solid rgba(241,241,241,1)","padding":"10px 16px 10px 0","overflow":"hidden"}},[_c('span',{staticStyle:{"float":"left","color":"#333","font-size":"16px"}},[_vm._v("投诉与举报")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(520);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f7b9ba2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1119);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2825)
  __webpack_require__(2827)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4f7b9ba2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f7b9ba2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4f7b9ba2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2826);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f158a2d8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".kxy-order-list .van-list__finished-text{background:#f6f7f9}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2828);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1c7c97ee", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".scroll-box[data-v-4f7b9ba2]{background:#f6f7f9;padding-top:1.2rem}.nav[data-v-4f7b9ba2]{width:100%;overflow:hidden;background:#fff;position:fixed;left:0;top:0;z-index:1000}.nav>div[data-v-4f7b9ba2]{float:left;width:20%;padding:.3rem 0;font-size:16px;text-align:center;color:#999}.nav .rn[data-v-4f7b9ba2]{color:#333;font-weight:700;position:relative}.nav .rn[data-v-4f7b9ba2]:after{position:absolute;content:\"\";width:.6rem;height:.1rem;background:#fe0013;border-radius:.05rem;bottom:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.my-order[data-v-4f7b9ba2]{margin:0 .3rem .4rem;border-radius:.2rem;padding:.3rem;border:none}.order-info-rig[data-v-4f7b9ba2]{line-height:.5rem;color:#333;font-size:14px}.order-info .order-info-lef[data-v-4f7b9ba2]{line-height:.5rem}.img-list[data-v-4f7b9ba2]{margin-top:.4rem}.img-list .mut[data-v-4f7b9ba2]{white-space:nowrap;overflow-x:auto}.img-list .mut img[data-v-4f7b9ba2]{width:2rem;height:2rem;margin-right:.2rem;border-radius:.2rem}.img-list .sign[data-v-4f7b9ba2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.img-list .sign>img[data-v-4f7b9ba2]{width:2rem;height:2rem;margin-right:.2rem;border-radius:.2rem}.img-list .sign .info p[data-v-4f7b9ba2]{color:#333;font-size:16px;line-height:.55rem;font-weight:700;display:-webkit-box;word-break:break-all;text-overflow:ellipsis;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.img-list .sign .info span[data-v-4f7b9ba2]{color:#333;font-size:12px;line-height:16px;margin-top:.2rem}.price-box[data-v-4f7b9ba2]{margin-top:.4rem;color:#333;font-size:14px;line-height:.5rem;text-align:right}.price-box span[data-v-4f7b9ba2]{font-weight:700}.btn-box[data-v-4f7b9ba2]{margin-top:.35rem;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.btn-box .btn1[data-v-4f7b9ba2],.btn-box[data-v-4f7b9ba2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.btn-box .btn1[data-v-4f7b9ba2]{height:.75rem;width:2.25rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#333;font-size:14px;border-radius:.6rem;border:1px solid #b5b5b5;margin-left:.2rem}.btn-box .btn1.btn2[data-v-4f7b9ba2]{color:#fe632a;border:1px solid #fe632a}.comm-list>div[data-v-4f7b9ba2]{background:#f6f6f6;border-bottom:none;margin-top:7px}.comm-list>div[data-v-4f7b9ba2]:first-of-type{margin-top:0}.order-info[data-v-4f7b9ba2]{border-bottom:none}.daizhifu[data-v-4f7b9ba2]{background:#e23030;color:#fff;border-radius:3px;margin-left:10px}.daizhifu1[data-v-4f7b9ba2],.daizhifu[data-v-4f7b9ba2]{font-size:14px;padding:3px 5px;-webkit-border-radius:3px}.daizhifu1[data-v-4f7b9ba2]{border-radius:3px;border:1px solid #333}.daizhifu2[data-v-4f7b9ba2]{padding:3px 5px;border-radius:3px;-webkit-border-radius:3px;font-size:14px;border:1px solid #ca2d2d;color:#e23030}.da[data-v-4f7b9ba2]{color:#fe632a}.loadMoreBox[data-v-4f7b9ba2]{padding:10px 0;text-align:center}.loadMoreBox .loadMore[data-v-4f7b9ba2]{width:147px;height:30px;font-size:14px;line-height:30px;text-align:center;background:#ee4545;border-radius:5px;margin-right:auto;margin-left:auto;color:#fff}.mask[data-v-4f7b9ba2]{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.4);top:0;left:0;z-index:10;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mask .cont[data-v-4f7b9ba2]{width:88%;background:#fff;border-radius:.2rem}.mask .cont .top[data-v-4f7b9ba2]{padding:.4rem .5rem .5rem}.mask .cont .top p[data-v-4f7b9ba2]{color:#333;font:700 18px/.62rem PingFangSC-SNaNpxibold}.mask .cont .top .no[data-v-4f7b9ba2]{margin-top:.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mask .cont .top .no span[data-v-4f7b9ba2]{color:#333;font:18px/.62rem PingFangSC-Regular}.mask .cont .top .no b[data-v-4f7b9ba2]{color:#fe632a;font:18px/.62rem PingFangSC-Regular}.mask .cont .bott[data-v-4f7b9ba2]{height:1.22rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#999;font:18px/1 PingFangSC-Regular;border-top:1px solid #eee}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _icon.default.name, _icon.default), _list.default.name, _list.default),
  data: function data() {
    return {
      resultList: [],
      loading: false,
      userInfoResult: {},
      params: {
        pageSize: 20,
        pageNum: 1,
        type: this.$route.query.dis ? 'topay' : 'all'
      },
      finished: false,
      checkIndex: this.$route.query.dis || 0,
      showNo: false,
      curItem: {} // 当前查看的订单信息
    };
  },
  mounted: function mounted() {
    var _this = this;
    var that = this;
    setTimeout(function () {
      that._Util.shoppingHtmlInit();
    }, 500);
    that.getUserState();
    that.getOrderList();
    (0, _jquery.default)('#wrapperDiv').removeAttr('style', '');
    document.addEventListener('visibilitychange', function () {
      if (!document.hidden) {
        if (_this.curItem.orderId) {
          setTimeout(function () {
            _this.checkPayStatusFn();
          }, 200);
        }
      }
    });
  },
  destroyed: function destroyed() {
    var docEl = document.documentElement;
    var fontEl = document.getElementById('_shoppingHtmlInit');
    docEl.firstElementChild.removeChild(fontEl);
  },
  methods: {
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    changeIndex: function changeIndex(i) {
      var that = this;
      this.checkIndex = i;
      switch (that.checkIndex) {
        case 0:
          that.params.type = 'all';
          break;
        case 1:
          that.params.type = 'topay';
          break;
        case 2:
          that.params.type = 'toreceived';
          break;
        case 3:
          that.params.type = 'tocompleted';
          break;
        case 4:
          that.params.type = 'completed';
          break;
      }
      this.resultList = [];
      that.params.pageNum = 1;
      this.getOrderList();
    },
    getOrderList: function getOrderList() {
      var _this2 = this;
      this.loading = true;
      var that = this;
      that._Util.post(that._Api.MALL.orderList, that.params, function (data) {
        _this2.loading = false;
        if (data.orderVoList) {
          if (data.orderVoList.length) {
            _this2.params.pageNum++;
            if (data.orderVoList.length < _this2.params.pageSize) {
              _this2.finished = true;
            }
            _this2.resultList = _this2.resultList.concat(data.orderVoList);
          } else {
            _this2.finished = true;
          }
        } else {
          _this2.finished = true;
        }
      }, function () {
        _this2.loading = false;
      }, that);
    },
    // 去支付
    payFn: function payFn(v) {
      var _this3 = this;
      this.curItem = v;
      this._Util.post(this._Api.MALL.payOrder, {
        id: v.orderId,
        payType: 2 // 1 定金 2 全款
      }, function (res) {
        _this3._Util.wxPay(res.jsApiParameters);
      }, function () {}, this);
    },
    toOrderDetail: function toOrderDetail(item) {
      this.$router.push({
        name: 'newOrderDetail',
        query: {
          orderId: item.orderId
        }
      });
    },
    // 取消订单
    cancleOrder: function cancleOrder(item) {
      var _this4 = this;
      this._Util.post(this._Api.MALL.cancleOrder, {
        id: item.orderId
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '订单取消成功',
          duration: 1500
        });
        _this4.changeIndex(_this4.checkIndex);
      }, function () {}, this);
    },
    // 显示物流单号
    showNoFn: function showNoFn(v) {
      var _this5 = this;
      this._Util.post(this._Api.MALL.queryLogistics, {
        id: v.orderId
      }, function (data) {
        _this5.$set(_this5.curItem, 'queryLogistics', data || []);
        _this5.showNo = true;
      }, function () {}, this, true);
    },
    // 关闭物料弹窗
    hideNoFn: function hideNoFn() {
      this.curItem = {};
      this.showNo = false;
    },
    // 检测小程序端的支付状态
    checkPayStatusFn: function checkPayStatusFn() {
      var _this6 = this;
      this._Util.post(this._Api.MALL.checkPayStatus, {
        id: this.curItem.orderId
      }, function (res) {
        if (res) {
          (0, _mintUi.Toast)({
            message: '支付成功，祝您步步高升',
            position: 'middle',
            duration: 1500
          });
          _this6.resultList.forEach(function (item) {
            if (_this6.curItem.orderId === item.orderId) {
              item.orderStatus = 5;
            }
          });
        } else {
          (0, _mintUi.Toast)({
            message: '未成功支付',
            position: 'middle',
            duration: 1500
          });
        }
        _this6.curItem = {};
      }, function (err) {
        console.log(err);
        _this6.curItem = {};
      }, this);
    },
    // 确认收货
    orderConfirm: function orderConfirm(v) {
      var _this7 = this;
      this._Util.post(this._Api.MALL.orderConfirm, {
        id: v.orderId
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '已确认收货',
          duration: 1500
        });
        _this7.detailData.orderStatus = 7;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper pt-20 kxy-order-list",staticStyle:{"padding":"0"},attrs:{"id":"wrapperDiv"}},[_c('van-list',{attrs:{"finished":_vm.finished,"finished-text":_vm.resultList.length ? '到底了~' : (_vm.loading ? '' : '暂无相关订单~')},on:{"load":_vm.getOrderList},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:"loading"}},[_c('div',{staticClass:"scroll-box"},[_c('div',{staticClass:"nav"},[_c('div',{class:{'rn':_vm.checkIndex== 0},on:{"click":function($event){return _vm.changeIndex(0)}}},[_vm._v("全部")]),_vm._v(" "),_c('div',{class:{'rn':_vm.checkIndex== 1},on:{"click":function($event){return _vm.changeIndex(1)}}},[_vm._v("待付款")]),_vm._v(" "),_c('div',{class:{'rn':_vm.checkIndex== 2},on:{"click":function($event){return _vm.changeIndex(2)}}},[_vm._v("待发货")]),_vm._v(" "),_c('div',{class:{'rn':_vm.checkIndex== 3},on:{"click":function($event){return _vm.changeIndex(3)}}},[_vm._v("待收货")]),_vm._v(" "),_c('div',{class:{'rn':_vm.checkIndex== 4},on:{"click":function($event){return _vm.changeIndex(4)}}},[_vm._v("已完成")])]),_vm._v(" "),_vm._l((_vm.resultList),function(v,index){return _c('div',{key:index,staticClass:"my-order"},[_c('div',{staticClass:"order-info border-b1 clearfix"},[_c('div',{staticClass:"order-info-lef fl"},[_c('p',[_vm._v("订单号: "+_vm._s(v.orderNo))])]),_vm._v(" "),_c('div',{staticClass:"order-info-rig fr",class:{'da':v.orderStatus === 1}},[_vm._v("\n            "+_vm._s(v.orderStatusStr || '')+"\n          ")])]),_vm._v(" "),_c('div',{staticClass:"img-list"},[(v.orderItems && v.orderItems.length > 1)?_c('div',{staticClass:"mut"},[_c('img',{attrs:{"src":"https://s2.kaxiuyun.com/FuVHJ3zkIzD-C3PHwRjjNfdmy7vM","alt":""}}),_vm._v(" "),_c('img',{attrs:{"src":"https://s2.kaxiuyun.com/FuVHJ3zkIzD-C3PHwRjjNfdmy7vM","alt":""}}),_vm._v(" "),_c('img',{attrs:{"src":"https://s2.kaxiuyun.com/FuVHJ3zkIzD-C3PHwRjjNfdmy7vM","alt":""}}),_vm._v(" "),_c('img',{attrs:{"src":"https://s2.kaxiuyun.com/FuVHJ3zkIzD-C3PHwRjjNfdmy7vM","alt":""}}),_vm._v(" "),_c('img',{attrs:{"src":"https://s2.kaxiuyun.com/FuVHJ3zkIzD-C3PHwRjjNfdmy7vM","alt":""}})]):_vm._e(),_vm._v(" "),(v.orderItems && v.orderItems.length === 1)?_c('div',{staticClass:"sign"},[_c('img',{attrs:{"src":v.orderItems[0].picUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',[_vm._v(_vm._s(v.orderItems[0].mdseName))])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"price-box"},[_vm._v("\n          共 "+_vm._s(v.orderItems.length)+" 件，实付："),_c('span',[_vm._v("￥"+_vm._s(v.toPayAmount))])]),_vm._v(" "),_c('div',{staticClass:"btn-box"},[(v.orderStatus === 6)?_c('div',{staticClass:"btn1",on:{"click":function($event){return _vm.showNoFn(v)}}},[_vm._v("物流查询")]):_vm._e(),_vm._v(" "),(v.orderStatus === 1)?_c('div',{staticClass:"btn1",on:{"click":function($event){return _vm.cancleOrder(v)}}},[_vm._v("取消订单")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"btn1",on:{"click":function($event){return _vm.toOrderDetail(v)}}},[_vm._v("订单详情")]),_vm._v(" "),(v.orderStatus === 1)?_c('div',{staticClass:"btn2 btn1",on:{"click":function($event){return _vm.payFn(v)}}},[_vm._v("去支付")]):_vm._e(),_vm._v(" "),(v.orderStatus === 6)?_c('div',{staticClass:"btn2 btn1",on:{"click":function($event){return _vm.orderConfirm(v)}}},[_vm._v("确认收货")]):_vm._e()])])})],2)]),_vm._v(" "),(_vm.showNo)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"cont"},[_c('div',{staticClass:"top"},[_c('p',[_vm._v("物流单号")]),_vm._v(" "),_vm._l((_vm.curItem.queryLogistics),function(item){return _c('div',{key:item.expressNo,staticClass:"no"},[_c('span',[_vm._v(_vm._s(item.expressNo))]),_c('b',{on:{"click":function($event){return _vm.copyNo(item)}}},[_vm._v("复制")])])})],2),_vm._v(" "),_c('div',{staticClass:"bott",on:{"click":_vm.hideNoFn}},[_vm._v("我知道了")])])]):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(521);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28437b72_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1120);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2829)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28437b72_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28437b72_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2830);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5b642534", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".kxy-order-detail{background:#f6f7f9;padding:.6rem .6rem 3.6rem}.kxy-order-detail.no-footer{padding-bottom:.6rem}.kxy-order-detail .completed{height:3.6rem;border:1px solid red;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font:700 1rem/1 PingFangSC-SNaNpxibold;color:#fe632a}.kxy-order-detail .completed span{width:1rem;height:1rem;border:1px solid red;border-radius:50%;margin-right:.4rem}.kxy-order-detail .status{border-radius:.4rem;padding:.6rem;background:#fff}.kxy-order-detail .status .name-box{position:relative}.kxy-order-detail .status .name-box:after{content:\"\";position:absolute;height:100%;left:.28rem;top:.3rem;width:1px;background:#fe632a}.kxy-order-detail .status .name-box .name{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font:700 .8rem/1.12rem PingFangSC-SNaNpxibold;color:#fe632a}.kxy-order-detail .status .name-box .name span{width:.6rem;height:.6rem;border-radius:50%;background:#fe632a;margin-right:.6rem}.kxy-order-detail .status .name-box .cutdown{text-indent:1.2rem;margin-top:.2rem;font:.7rem/1rem PingFangSC-SNaNpxibold;color:#fe632a}.kxy-order-detail .status .name-box .cutdown .van-count-down{display:inline-block;text-indent:0;font:.7rem/1rem PingFangSC-SNaNpxibold;color:#fe632a}.kxy-order-detail .status .user-box{padding-top:1.05rem;position:relative}.kxy-order-detail .status .user-box:after{content:\"\";position:absolute;height:1.3rem;left:.28rem;top:0;width:1px;background:#fe632a}.kxy-order-detail .status .user-box .name{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font:700 .8rem/1.12rem PingFangSC-SNaNpxibold;color:#333}.kxy-order-detail .status .user-box .name span{width:.6rem;height:.6rem;border-radius:50%;border:1px solid #fe632a;margin-right:.6rem}.kxy-order-detail .status .user-box .address{padding-left:1.2rem;margin-top:.2rem;font:.7rem/1rem PingFangSC-SNaNpxibold;color:#999}.kxy-order-detail .model-box{margin-top:.6rem;border-radius:.4rem;background:#fff;padding:.6rem}.kxy-order-detail .model-box .list .item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.6rem 0;border-bottom:1px solid #eee}.kxy-order-detail .model-box .list .item:first-child{padding-top:0}.kxy-order-detail .model-box .list .item:last-child{border:none}.kxy-order-detail .model-box .list .item img{width:4rem;height:4rem;border-radius:.2rem;margin-right:.6rem}.kxy-order-detail .model-box .list .item .right{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;position:relative}.kxy-order-detail .model-box .list .item .right p{width:100%;font:700 .8rem/1.12rem PingFangSC-SNaNpxibold;color:#333;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.kxy-order-detail .model-box .list .item .right>div{position:absolute;width:100%;left:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-order-detail .model-box .list .item .right>div span{font:700 .8rem/1.12rem PingFangSC-SNaNpxibold;color:#fe0013}.kxy-order-detail .model-box .list .item .right>div b{font:.7rem/1 PingFangSC-Regular;color:#333}.kxy-order-detail .model-box .info{margin-top:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font:.7rem/1rem PingFangSC-SNaNpxibold;color:#333}.kxy-order-detail .model-box .info .no{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-order-detail .model-box .info .no span{padding:0 .3rem}.kxy-order-detail .model-box .info .no div{color:#fe632a}.kxy-order-detail .fotter{position:fixed;left:0;bottom:0;width:100%;background:#fff;height:3rem;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;padding:0 .6rem}.kxy-order-detail .fotter,.kxy-order-detail .fotter .btn1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-order-detail .fotter .btn1{height:2.25rem;width:5.2rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#333;font-size:16px;border-radius:1.2rem;border:1px solid #b5b5b5;margin-left:.6rem}.kxy-order-detail .fotter .btn1.btn2{color:#fff;background:#fe632a;border:none}.kxy-order-detail .mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.4);top:0;left:0;z-index:10;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-order-detail .mask .cont{width:88%;background:#fff;border-radius:.4rem}.kxy-order-detail .mask .cont .top{padding:.8rem 1rem 1rem}.kxy-order-detail .mask .cont .top p{color:#333;font:700 18px/1.25rem PingFangSC-SNaNpxibold}.kxy-order-detail .mask .cont .top .no{margin-top:.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-order-detail .mask .cont .top .no span{color:#333;font:18px/1.25rem PingFangSC-Regular}.kxy-order-detail .mask .cont .top .no b{color:#fe632a;font:18px/1.25rem PingFangSC-Regular}.kxy-order-detail .mask .cont .bott{height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#999;font:18px/1 PingFangSC-Regular;border-top:1px solid #eee}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    'van-count-down': _countDown.default
  },
  data: function data() {
    return {
      detailData: {},
      statusMap: {
        1: '待支付',
        5: '待发货',
        6: '待收货',
        7: '已完成'
      },
      showNo: false,
      isPaying: false
    };
  },
  mounted: function mounted() {
    var _this = this;
    this.getOrderDetail();
    document.addEventListener('visibilitychange', function () {
      if (!document.hidden) {
        setTimeout(function () {
          if (_this.isPaying) {
            _this.checkPayStatusFn();
          }
        }, 200);
      }
    });
  },
  destroyed: function destroyed() {},
  methods: {
    getOrderDetail: function getOrderDetail() {
      var _this2 = this;
      this._Util.post(this._Api.MALL.orderDetail, {
        id: this.$route.query.orderId
      }, function (data) {
        _this2.detailData = data || {};
        var nowTime = new Date().getTime();
        var disTime = 24 * 60 * 60 * 1000 - (nowTime - _this2.detailData.createTime);
        // 代付款并且距下单时间不超过24小时
        if (_this2.detailData.orderStatus === 1 && disTime <= 24 * 60 * 60 * 1000) {
          _this2.detailData.disTime = disTime;
        }
      }, function () {}, this);
    },
    // 复制订单号
    toCopy: function toCopy() {
      this.$copyText(this.detailData.orderNo).then(function () {
        (0, _mintUi.Toast)({
          message: '复制订单号成功',
          duration: 1500
        });
      });
    },
    // 复制物流单号
    copyNo: function copyNo(item) {
      this.$copyText(item.expressNo).then(function () {
        (0, _mintUi.Toast)({
          message: '复制物流单号成功',
          duration: 1500
        });
      });
    },
    // 显示物流单号
    showNoFn: function showNoFn() {
      this.showNo = true;
    },
    // 取消订单
    cancleOrder: function cancleOrder() {
      var _this3 = this;
      this._Util.post(this._Api.MALL.cancleOrder, {
        id: this.$route.query.orderId
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '订单取消成功',
          duration: 1500
        });
        setTimeout(function () {
          _this3.$router.go(-1);
        }, 300);
      }, function () {}, this);
    },
    // 确认收货
    orderConfirm: function orderConfirm() {
      var _this4 = this;
      this._Util.post(this._Api.MALL.orderConfirm, {
        id: this.$route.query.orderId
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '已确认收货',
          duration: 1500
        });
        _this4.detailData.orderStatus = 7;
      }, function () {}, this);
    },
    toPay: function toPay() {
      var _this5 = this;
      this._Util.post(this._Api.MALL.payOrder, {
        id: this.$route.query.orderId,
        payType: 2 // 1 定金 2 全款
      }, function (res) {
        _this5.isPaying = true;
        _this5._Util.wxPay(res.jsApiParameters);
      }, function () {}, this);
    },
    // 检测小程序端的支付状态
    checkPayStatusFn: function checkPayStatusFn() {
      var _this6 = this;
      this._Util.post(this._Api.MALL.checkPayStatus, {
        id: this.$route.query.orderId
      }, function (res) {
        if (res) {
          (0, _mintUi.Toast)({
            message: '支付成功，祝您步步高升',
            position: 'middle',
            duration: 1500
          });
          _this6.detailData.orderStatus = 5;
        } else {
          (0, _mintUi.Toast)({
            message: '未成功支付',
            position: 'middle',
            duration: 1500
          });
        }
        _this6.isPaying = false;
      }, function (err) {
        console.log(err);
        _this6.isPaying = false;
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kxy-order-detail",class:{'no-footer': _vm.detailData.orderStatus !== 1 && _vm.detailData.orderStatus !== 6}},[(_vm.detailData.orderStatus === 7)?_c('div',{staticClass:"completed"},[_c('span'),_vm._v("已完成")]):_c('div',{staticClass:"status"},[_c('div',{staticClass:"name-box"},[_c('div',{staticClass:"name"},[_c('span'),_vm._v(_vm._s(_vm.statusMap[_vm.detailData.orderStatus])+"\n      ")]),_vm._v(" "),(_vm.detailData.orderStatus === 1 && _vm.detailData.disTime)?_c('div',{staticClass:"cutdown"},[_vm._v("\n        剩余时间: "),_c('van-count-down',{attrs:{"time":_vm.detailData.disTime,"format":"HH小时mm分ss秒"}})],1):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"user-box"},[_c('div',{staticClass:"name"},[_c('span'),_vm._v(_vm._s(_vm.detailData.consigneeName)+" "+_vm._s(_vm.detailData.consigneePhone)+"\n      ")]),_vm._v(" "),_c('div',{staticClass:"address"},[_vm._v("\n        "+_vm._s(_vm.detailData.consigneeProvince || '')+_vm._s(_vm.detailData.consigneeCity || '')+_vm._s(_vm.detailData.consigneeDist || '')+"\n      ")])])]),_vm._v(" "),_c('div',{staticClass:"model-box"},[_c('div',{staticClass:"list"},_vm._l((_vm.detailData.itemVos),function(item){return _c('div',{key:item.id,staticClass:"item"},[_c('img',{attrs:{"src":item.picUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right"},[_c('p',[_vm._v(_vm._s(item.mdseName))]),_vm._v(" "),_c('div',[_c('span',[_vm._v("￥"+_vm._s(item.price))]),_vm._v(" "),_c('b',[_vm._v("x "+_vm._s(item.num))])])])])}),0),_vm._v(" "),_c('div',{staticClass:"info"},[_c('span',[_vm._v("总金额")]),_c('p',[_vm._v("￥"+_vm._s(_vm.detailData.orderAmount))])]),_vm._v(" "),_c('div',{staticClass:"info"},[_c('span',[_vm._v("优惠券")]),_c('p',[_vm._v("-￥"+_vm._s(_vm.detailData.discountAmount))])]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"info"},[_c('span',[_vm._v("实付金额")]),_c('p',[_vm._v("￥"+_vm._s(_vm.detailData.paidAmount))])])]),_vm._v(" "),_c('div',{staticClass:"model-box"},[_c('div',{staticClass:"info",staticStyle:{"margin-top":"0"}},[_c('span',[_vm._v("订单编号")]),_vm._v(" "),_c('div',{staticClass:"no"},[_vm._v("\n        "+_vm._s(_vm.detailData.orderNo)),_c('span',[_vm._v("|")]),_c('div',{on:{"click":_vm.toCopy}},[_vm._v("复制")])])]),_vm._v(" "),_c('div',{staticClass:"info"},[_c('span',[_vm._v("创建时间")]),_c('p',[_vm._v(_vm._s(_vm._Util.dateFormat(_vm.detailData.createTime,'yyyy-MM-dd hh:mm:ss')))])]),_vm._v(" "),(_vm.detailData.payTime)?_c('div',{staticClass:"info"},[_c('span',[_vm._v("付款时间")]),_c('p',[_vm._v("-￥"+_vm._s(_vm._Util.dateFormat(_vm.detailData.payTime,'yyyy-MM-dd hh:mm:ss')))])]):_vm._e()]),_vm._v(" "),(_vm.detailData.orderStatus === 1 || _vm.detailData.orderStatus === 6)?_c('div',{staticClass:"fotter"},[(_vm.detailData.orderStatus === 1)?_c('div',{staticClass:"btn1",on:{"click":_vm.cancleOrder}},[_vm._v("取消订单")]):_vm._e(),_vm._v(" "),(_vm.detailData.orderStatus === 1)?_c('div',{staticClass:"btn1 btn2",on:{"click":_vm.toPay}},[_vm._v("立即支付")]):_vm._e(),_vm._v(" "),(_vm.detailData.orderStatus === 6 && _vm.detailData.logisticsInfoVoList && _vm.detailData.logisticsInfoVoList.length)?_c('div',{staticClass:"btn1",on:{"click":_vm.showNoFn}},[_vm._v("\n      查看物流\n    ")]):_vm._e(),_vm._v(" "),(_vm.detailData.orderStatus === 6)?_c('div',{staticClass:"btn1 btn2",on:{"click":_vm.orderConfirm}},[_vm._v("确认收货")]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.showNo)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"cont"},[_c('div',{staticClass:"top"},[_c('p',[_vm._v("物流单号")]),_vm._v(" "),_vm._l((_vm.detailData.logisticsInfoVoList),function(item){return _c('div',{key:item.expressNo,staticClass:"no"},[_c('span',[_vm._v(_vm._s(item.expressNo))]),_c('b',{on:{"click":function($event){return _vm.copyNo(item)}}},[_vm._v("复制")])])})],2),_vm._v(" "),_c('div',{staticClass:"bott",on:{"click":function($event){_vm.showNo = false}}},[_vm._v("我知道了")])])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"info"},[_c('span',[_vm._v("运费")]),_c('p',[_vm._v("快递包邮")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(522);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b61f6d46_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1121);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2831)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b61f6d46"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b61f6d46_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b61f6d46_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftOrderDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2832);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("427694a2", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".giftOrder[data-v-b61f6d46]{background:#f2f2f2;padding-bottom:49px;position:relative}.gitCountDown[data-v-b61f6d46],.gitNum[data-v-b61f6d46],.gitState[data-v-b61f6d46]{overflow:hidden;height:49px;line-height:49px;text-indent:20px}.gitCountDown span[data-v-b61f6d46],.gitNum span[data-v-b61f6d46],.gitState span[data-v-b61f6d46]{display:inline-block;font-family:PingFangSC-Regular;font-size:16px;color:#333}.gitNum[data-v-b61f6d46]{background:#fff url(" + escape(__webpack_require__(2833)) + ") no-repeat 12px;background-size:20px 19px;margin-bottom:2px}.gitState[data-v-b61f6d46]{background:#fff url(" + escape(__webpack_require__(2834)) + ") no-repeat 12px;background-size:20px 20px;margin-bottom:2px}.gitCountDown[data-v-b61f6d46]{background:#fff url(" + escape(__webpack_require__(2835)) + ") no-repeat 12px;background-size:19px 20px;margin-bottom:1px}.notice[data-v-b61f6d46]{background:#fff;color:#ee4545;padding:5px 10px;line-height:22px;margin-bottom:10px}.item[data-v-b61f6d46]{margin-bottom:10px;background:#fff;font-family:PingFangSC-Semibold}.item .title[data-v-b61f6d46]{height:49px;line-height:49px;border-bottom:2px solid #f2f2f2;font-size:18px;color:#000;font-weight:600;text-indent:10px}.item .itemCont[data-v-b61f6d46]{box-sizing:border-box;-webkit-box-sizing:border-box;padding:5px 10px 10px}.item .itemPart[data-v-b61f6d46]{height:36px;line-height:36px}.item .itemPart span[data-v-b61f6d46]{color:#333;font-size:16px}.item .applyCause[data-v-b61f6d46]{background:#eaeaea;border-radius:4px;-webkit-border-radius:4px;padding:5px}.item .total[data-v-b61f6d46]{height:49px;line-height:49px;border-top:1px solid #f2f2f2;font-size:16px;color:#000;padding:0 10px;box-sizing:border-box;-webkit-box-sizing:border-box}.item .total span[data-v-b61f6d46]{font-size:16px}.giftInfo .itemPart span[data-v-b61f6d46]{color:#666}.giftInfo li span[data-v-b61f6d46]:first-of-type{width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.giftDetail .total span[data-v-b61f6d46]:first-of-type{width:60%}.giftDetail .itemCont[data-v-b61f6d46]{padding:0 10px}.recordTitle[data-v-b61f6d46]{height:46px;line-height:46px;width:80%;margin:0 auto;position:relative;text-align:center}.recordTitle .line1[data-v-b61f6d46]{position:absolute;top:22px;left:0;width:100%;height:0;border-top:2px solid #dedede}.recordTitle .text[data-v-b61f6d46]{position:absolute;top:0;left:50%;margin-left:-55px;width:110px;text-align:center;height:100%;background:#fff;color:#333;font-size:16px}.recordList[data-v-b61f6d46]{padding-bottom:10px}.recordList li[data-v-b61f6d46]{line-height:26px;padding:0 10px}.recordList li span[data-v-b61f6d46]{font-size:16px;color:#333}.recordList li .right[data-v-b61f6d46]{width:60%;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.giftBtn[data-v-b61f6d46]{position:fixed;bottom:0;left:0;width:100%;height:49px;line-height:49px;text-align:center;color:#fff;font-size:16px;background:#ee4545}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/giftNum.1f892cc.png";module.exports = __webpack_require__.p + "static/img/giftState.693b8a3.png";module.exports = __webpack_require__.p + "static/img/gitTime.d49d0f5.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {
    format: function format(value) {
      return '￥' + Number(value).toFixed(2);
    }
  },
  data: function data() {
    return {
      giftResult: {},
      totalNum: 0,
      giftType: 1,
      id: this.$route.query.id,
      recordList: [],
      CountDown: ''
    };
  },
  created: function created() {
    this.getOrder();
    // this.leftTime('25313439');
  },
  methods: {
    applyConfirm: function applyConfirm() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_APPLYGIFTORDER, {
        id: that.id
      }, function (data) {
        that.getOrder();
        (0, _mintUi.Toast)({
          message: '申请成功',
          duration: 1000
        });
      }, function () {}, that, false);
    },
    getOrder: function getOrder() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_GIFT_ORDER_DETAIL, {
        id: that.id
      }, function (data) {
        if (data) {
          that.giftResult = data;
          that.totalNum = that.giftResult.giftMdseNum;
          that.leftTime(that.giftResult.countDown);
          that.getRecord();
        }
      }, function () {}, that, false);
    },
    getRecord: function getRecord() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        'code': 'gift_order_remark',
        'tid': that.id,
        'pageNum': 1,
        'pageSize': 10
      }, function (data) {
        if (data.totalCount > 0) {
          that.recordList = data.dataList;
        }
      }, function () {}, that, true);
    },
    leftTime: function leftTime(currTime) {
      var that = this;
      var time;
      var timeBack;
      var timer = '';
      time = (currTime / 1000).toFixed(0);
      timer = setInterval(function () {
        time--;
        if (time == 0) {
          clearInterval(timer);
        }
        timeBack = that.secondToDate(time);
        var h1 = timeBack.split('')[0];
        var h2 = timeBack.split('')[1];
        var m1 = timeBack.split('')[2];
        var m2 = timeBack.split('')[3];
        var s1 = timeBack.split('')[4];
        var s2 = timeBack.split('')[5];
        that.CountDown = h1 + h2 + ':' + m1 + m2 + ':' + s1 + s2;
      }, 1000);
    },
    secondToDate: function secondToDate(result) {
      var h = Math.floor(result / 3600) < 10 ? '0' + Math.floor(result / 3600) : Math.floor(result / 3600);
      var m = Math.floor(result / 60 % 60) < 10 ? '0' + Math.floor(result / 60 % 60) : Math.floor(result / 60 % 60);
      var s = Math.floor(result % 60) < 10 ? '0' + Math.floor(result % 60) : Math.floor(result % 60);
      var operateTime = h.toString() + m.toString() + s.toString();
      return operateTime;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"giftOrder",style:({'paddingBottom': _vm.giftResult.status==0 ? '49px': 0 })},[_c('div',{staticClass:"gitNum"},[_c('span',{staticClass:"numCont"},[_vm._v("赠品单号："+_vm._s(_vm.giftResult.giftOrder))])]),_vm._v(" "),_c('div',{staticClass:"gitState"},[_c('span',[_vm._v("赠品状态：")]),_c('span',{staticClass:"stateCont",staticStyle:{"text-indent":"0"},style:({'color':(_vm.giftResult.status== 2||_vm.giftResult.status== 4||_vm.giftResult.status== 7)?'#EE4545':'#333' })},[_vm._v(_vm._s(_vm.giftResult.giftStaus))])]),_vm._v(" "),(_vm.giftResult.countDown)?_c('div',{staticClass:"gitCountDown"},[_c('span',{staticClass:"numCont"},[_vm._v("倒计时：")]),_c('span',{staticStyle:{"text-indent":"0","font-size":"18px"}},[_vm._v(_vm._s(_vm.CountDown))])]):_vm._e(),_vm._v(" "),(_vm.CountDown != '' )?_c('div',{staticClass:"notice"},[_vm._v("计时结束时,赠品订单如果不是待发货状态，将会被取消。")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"applyInfo item"},[_c('div',{staticClass:"title"},[_vm._v("申请信息")]),_vm._v(" "),_c('div',{staticClass:"apply itemCont"},[_c('div',{staticClass:"itemPart"},[_c('span',{staticClass:"left"},[_vm._v("赠品申请人")]),_c('span',{staticClass:"right",staticStyle:{"font-weight":"blod"}},[_vm._v(_vm._s(_vm.giftResult.applicant))])]),_vm._v(" "),_c('div',{staticClass:"itemPart"},[_c('span',{staticClass:"left"},[_vm._v("申请金额")]),_c('span',{staticClass:"right"},[_vm._v(_vm._s(_vm._f("format")(_vm.giftResult.giftOrderAmount)))])]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"applyCause"},[_c('div',[_vm._v(_vm._s(_vm.giftResult.createUser)+":")]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.giftResult.applyCause))])])])]),_vm._v(" "),_c('div',{staticClass:"giftDetail item"},[_c('div',{staticClass:"title"},[_vm._v("赠品明细")]),_vm._v(" "),_c('div',{staticClass:"giftInfo itemCont"},[_c('ul',_vm._l((_vm.giftResult.orderItemList),function(v,i){return _c('li',{key:i,staticClass:"itemPart"},[_c('span',{staticClass:"left"},[_vm._v(_vm._s(v.mdseName))]),_c('span',{staticClass:"left"},[_vm._v("×"+_vm._s(v.num))]),_c('span',{staticClass:"right"},[_vm._v(_vm._s(_vm._f("format")(v.price)))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"total"},[_c('span',{staticClass:"left"},[_vm._v("合计")]),_c('span',{staticClass:"left"},[_vm._v("  "+_vm._s(_vm.totalNum))]),_c('span',{staticClass:"right"},[_vm._v(_vm._s(_vm._f("format")(_vm.giftResult.giftOrderAmount)))])])]),_vm._v(" "),(_vm.giftResult.giftType == 1 && (_vm.giftResult.orderUserId == _vm.giftResult.giftUserId))?_c('div',{staticClass:"RelevantOrder item"},[_c('div',{staticClass:"title"},[_vm._v("关联销售订单")]),_vm._v(" "),_c('div',{staticClass:"apply itemCont"},[_c('div',{staticClass:"itemPart"},[_c('span',{staticClass:"left"},[_vm._v("订单编号")]),_c('span',{staticClass:"right"},[_vm._v(_vm._s(_vm.giftResult.orderNo))])]),_vm._v(" "),_c('div',{staticClass:"itemPart"},[_c('span',{staticClass:"left"},[_vm._v("应付金额")]),_c('span',{staticClass:"right"},[_vm._v(_vm._s(_vm._f("format")(_vm.giftResult.orderAmount)))])]),_vm._v(" "),_c('div',{staticClass:"itemPart"},[_c('span',{staticClass:"left"},[_vm._v("已付金额")]),_c('span',{staticClass:"right"},[_vm._v(_vm._s(_vm._f("format")(_vm.giftResult.paidCash)))])]),_vm._v(" "),_vm._m(1)])]):_vm._e(),_vm._v(" "),(_vm.recordList.length > 0)?_c('div',{staticClass:"item"},[_vm._m(2),_vm._v(" "),_c('ul',{staticClass:"recordList"},_vm._l((_vm.recordList),function(item,index){return _c('li',{key:index},[_c('span',{attrs:{"calss":"left"}},[_vm._v(_vm._s(item.time))]),_c('span',{staticClass:"right"},[_vm._v(_vm._s(item.text))])])}),0)]):_vm._e(),_vm._v(" "),(_vm.giftResult.status == 0)?_c('div',{staticClass:"giftBtn",on:{"click":function($event){$event.stopPropagation();return _vm.applyConfirm.apply(null, arguments)}}},[_vm._v("确认申请")]):_vm._e()])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"itemPart"},[_c('span',{staticClass:"left"},[_vm._v("赠品实付")]),_c('span',{staticClass:"right",staticStyle:{"color":"#EE4545"}},[_vm._v("¥0.00")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"itemPart"},[_c('span',{staticClass:"right",staticStyle:{"color":"#EE4545"}},[_vm._v("注：赠品将随关联销售订单一同发货")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"recordTitle"},[_c('span',{staticClass:"line1"}),_vm._v(" "),_c('span',{staticClass:"text"},[_vm._v("赠品申请记录")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(523);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0eeaeb96_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1122);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2836)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0eeaeb96_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0eeaeb96_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderReviewCancel_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2837);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("489507c9", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline]:after{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e2e4ea}.order-review-page{padding-bottom:50px;overflow-y:auto}.cell-group{padding:0 16px;color:#353535}.cell-item{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:12px 0}.cell-item.clear-flex{display:block}.cell-item:after{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.cell-item .cell-title{display:inline-block;width:120px}.cell-item .cell-cont{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}.cell-item.clear-flex .cell-cont{margin-top:10px;text-align:left}.cell-item .cell-cont textarea{display:block;box-sizing:border-box;width:100%;padding:5px 10px;color:#323233;text-align:left;background-color:transparent;border:1px solid #e2e4ea;resize:none;font-size:14px;border-radius:4px}.table-ul{width:100%}.table-ul .table-li td,.table-ul .table-li th{position:relative;padding:6px 10px;border:1px solid #e2e4ea}.table-ul .table-li.table-head{background-color:#f2f2f2;text-align:center}.table-ul .table-li td.w-100{width:100px;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}.table-ul .text-left{text-align:left}.table-ul .text-center{text-align:center}.fixed{position:fixed;width:100%;left:0;bottom:0}.btn-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:50px;line-height:1;text-align:center;background-color:#fff}.btn-bar:after{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.btn-bar .btn{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:transparent}.btn-bar .btn:after{top:0;bottom:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.btn.btn-confrim{color:#409eff}.btn.btn-cancel{color:#ff0808}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      orderBack: {},
      mdseList: []
    };
  },
  created: function created() {
    this.getOrderDetail();
  },
  mounted: function mounted() {
    if (!this._Util.isIOS) {
      // 软键盘弹起，输入框自动出现在可视区域
      this.timer = setInterval(function () {
        if (document.activeElement.className.indexOf('inputcontent') >= 0) {
          document.activeElement.scrollIntoViewIfNeeded();
        }
      }, 300);
    }
  },
  methods: {
    /**
     * 回退订单详情
     */
    getOrderDetail: function getOrderDetail() {
      var _this = this;
      var params = {
        id: this.$route.query.id
      };
      this._Util.post(this._Api.POST_ORDER_BACK_DETAIL, params, function (data) {
        _this.orderBack = data.orderBack;
        _this.mdseList = data.mdseList;
      }, function () {}, this, false);
    },
    /**
     * 回退订单审核
     */
    reviewConfirm: function reviewConfirm(type) {
      var _this2 = this;
      if (this.orderBack.status !== 0) {
        return;
      }
      if (type === 2 && (!this.orderBack.actualContent || this.orderBack.actualContent == '')) {
        (0, _mintUi.Toast)({
          message: '审核意见不能为空',
          duration: 1500
        });
        return;
      }
      var params = {
        id: this.orderBack.id,
        status: type,
        actualContent: this.orderBack.actualContent
      };
      this._Util.post(this._Api.POST_ORDER_BACK_UPDATE, params, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        _this2.getOrderDetail();
      }, function () {}, this, false);
    },
    scroll: function scroll() {
      setTimeout(function () {
        var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
        window.scrollTo(0, Math.max(scrollHeight - 1, 0));
      }, 100);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"order-review-page"},[_c('div',{staticClass:"cell-group"},[_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("订单号")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm.orderBack.orderNo))])]),_vm._v(" "),_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("订单待发货时间")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.orderBack.readyTime,'yyyy-MM-dd hh:mm')))])]),_vm._v(" "),_c('div',{staticClass:"cell-item clear-flex"},[_c('span',{staticClass:"cell-title"},[_vm._v("订单商品")]),_vm._v(" "),_c('div',{staticClass:"cell-cont"},[_c('table',{staticClass:"table-ul"},[_vm._m(0),_vm._v(" "),_c('tbody',_vm._l((_vm.mdseList),function(mdse,index){return _c('tr',{key:index,staticClass:"table-li"},[_c('td',[_vm._v(_vm._s(mdse.mdseName))]),_vm._v(" "),_c('td',{staticClass:"w-100 text-center"},[_vm._v(_vm._s(mdse.num))])])}),0)])])]),_vm._v(" "),_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("申请人")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm.orderBack.createUserName))])]),_vm._v(" "),_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("申请事由")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm.orderBack.remark))])]),_vm._v(" "),_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("申请时间")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.orderBack.createTime,'yyyy-MM-dd hh:mm')))])]),_vm._v(" "),(_vm.orderBack.status === 0)?_c('div',{staticClass:"cell-item clear-flex"},[_c('span',{staticClass:"cell-title"},[_vm._v("审核意见")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.orderBack.actualContent),expression:"orderBack.actualContent",modifiers:{"trim":true}}],staticClass:"inputcontent",attrs:{"name":"reson","rows":"3","placeholder":"请输入审核意见"},domProps:{"value":(_vm.orderBack.actualContent)},on:{"blur":[function($event){return _vm.scroll()},function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.orderBack, "actualContent", $event.target.value.trim())}}})])]):_vm._e(),_vm._v(" "),(_vm.orderBack.status !== 0)?_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("审批人")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm.orderBack.actualAuditorName))])]):_vm._e(),_vm._v(" "),(_vm.orderBack.status !== 0)?_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("审批意见")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm.orderBack.actualContent))])]):_vm._e(),_vm._v(" "),(_vm.orderBack.status !== 0)?_c('div',{staticClass:"cell-item hairline"},[_c('span',{staticClass:"cell-title"},[_vm._v("审批时间")]),_vm._v(" "),_c('p',{staticClass:"cell-cont"},[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.orderBack.auditingTime,'yyyy-MM-dd hh:mm')))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"btn-bar fixed hairline"},[(_vm.orderBack.status === 1)?_c('span',{staticClass:"btn btn-confrim hairline"},[_vm._v("已通过")]):_vm._e(),_vm._v(" "),(_vm.orderBack.status === 0)?_c('span',{staticClass:"btn btn-confrim hairline",on:{"click":function($event){return _vm.reviewConfirm(1)}}},[_vm._v("通 过")]):_vm._e(),_vm._v(" "),(_vm.orderBack.status === 0 || _vm.orderBack.status === 2)?_c('span',{staticClass:"btn btn-cancel",on:{"click":function($event){return _vm.reviewConfirm(2)}}},[_vm._v("驳 回")]):_vm._e()])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',{staticClass:"table-li table-head"},[_c('th',{staticClass:"text-center"},[_vm._v("商品名称")]),_vm._v(" "),_c('th',{staticClass:"w-100 text-center"},[_vm._v("数量")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(524);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1e6ebda3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1123);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2838)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1e6ebda3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1e6ebda3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_payMoney_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2839);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("58f3f56d", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{background:#fff}.mask{width:100%;height:100%;background:rgba(0,0,0,.4);z-index:15}.mask,.maskBox{position:absolute}.maskBox{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background:#fff;width:85%;border-radius:3px;-webkit-border-radius:3px}.maskBox .title{font-size:18px;color:#333;line-height:48px;text-align:center}.maskBox textarea{display:block;width:85%;margin:15px auto 20px;padding-left:7px;background:#f8f8f8;border:1px solid #e0e0e0;margin-bottom:20px}.maskBox .ctrl{height:48px;width:100%;border-top:1px solid #d8d8d8}.maskBox .ctrl .ctrlBtn{float:left;width:50%;height:48px;line-height:48px;color:#666;font-size:18px;text-align:center}.maskBox .ctrl .closeBtn{border-right:1px solid #d8d8d8}.maskBox .ctrl .saveBtn{color:#377ee1}.maskBox .recode{height:58px;line-height:58px;border-top:1px solid #e0e0e0;min-width:265px;margin:0 auto;padding:0 10px}.maskBox .recode span:first-child{float:left;width:60%;text-align:right}.maskBox .recode span:first-child,.maskBox .recode span:last-child{font-size:16px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.maskBox .recode span:last-child{float:right;width:40%}.maskBox .payinput{padding-left:7px;border:1px solid #e0e0e0;margin:10px auto 20px;border-radius:2px;-webkit-border-radius:2px}.maskBox .payinput,.maskBox .payPhoneBox{height:44px;line-height:44px;background:#f8f8f8;width:85%;display:block}.maskBox .payPhoneBox{border:1px solid #e0e0e0;margin:10px auto 0}.maskBox .payPhoneBox .selectBox{position:relative;color:#333;float:left;width:60px;text-align:center;height:42px;line-height:42px}.maskBox .payPhoneBox input{height:42px;line-height:42px;padding-left:7px;float:left;margin-left:7px;width:-webkit-calc(100% - 70px);width:calc(100% - 70px);font-size:16px}.maskBox .payCodeBox{height:44px;line-height:44px;background:#f8f8f8;border:1px solid #e0e0e0;width:85%;display:block;margin:10px auto 20px;position:relative}.maskBox .payCodeBox input{position:absolute;top:0;left:0;height:44px;line-height:44px;width:100%;padding-left:7px;font-size:16px}.maskBox .payCodeBox>div{position:absolute;right:0;top:0;padding:0 10px;line-height:42px;font-size:16px;color:#377ee1}.nameBox{width:100%;font-size:18px;padding-top:20px;color:#333;line-height:25px}.nameBox,.phoneBox{text-align:center;font-family:PingFangSC-Regular}.phoneBox{margin-top:4px;line-height:22px;font-size:16px;color:#666}.payBox{background-color:#fff;width:100%;margin-top:32px}.mr{padding:0 12px}.moneyNumber{width:98%;height:45px;line-height:45px;-webkit-border-radius:3px;margin-top:8px;overflow:hidden;white-space:nowrap}.moneyNumber::-webkit-input-placeholder{color:#000;font-size:16px}.payRemark{color:#377ee1;font-size:14px;margin-top:7px;border-top:1px solid #e0e0e0;padding:12px}.payBtn{margin:30px 16px 0;background:#c8c8c8;color:#fff;text-align:center;font-size:18px;line-height:44px;border-radius:4px}.zfbBtn{background:#fff;color:#377ee1}.canPay{background:#377ee1}.zfbCanPay{border:1px solid #377ee1}.numberBox{background:#fff;position:fixed;bottom:0}.numberBox,.numberBox ul{width:100%;overflow:hidden}.numberBox ul{border-top:1px solid #ccc}.numberBox ul li{float:left;padding:5px 0;text-align:center;font-size:26px;border-bottom:1px solid #ccc;border-right:1px solid #ccc}.numberBox ul li:nth-of-type(3n){border-right:none}.countryMask{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1000;background:#f2f2f2}.numberBox ul li:nth-of-type(10),.numberBox ul li:nth-of-type(11),.numberBox ul li:nth-of-type(12){border-bottom:none}.numberBox ul li:nth-of-type(10),.numberBox ul li:nth-of-type(12){background:#d1d5db}.numberBox ul .active{background:#ccc}.numberBox ul li:nth-of-type(10).active1,.numberBox ul li:nth-of-type(12).active1{background:#fff}.selectBox:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #555;content:\"\";position:absolute;width:0;top:45%}.ai{background:#377ee1;width:2px;height:32px;color:transparent;-webkit-animation:myani 1s infinite;animation:myani 1s infinite}@-webkit-keyframes myani{0%{opacity:1}50%{opacity:0}to{opacity:1}}@keyframes myani{0%{opacity:1}50%{opacity:0}to{opacity:1}}.symbol{font-size:32px;font-family:PingFangSC-Regular;color:#333}.mooey{font-size:14px;color:#666;line-height:20px}.moneyNumberFont{font-size:32px;font-weight:bolder;color:#000}@media screen and (min-height:540px) and (max-height:569px){.numberBox ul li{font-size:22px;padding:px 0}.payBtn{margin-top:15px}}@media screen and (max-height:540px){.numberBox ul li{font-size:20px;padding:4px 0}.payBtn{margin-top:10px}}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      liWidth: '',
      showCursor: false,
      id: this.$route.query.id,
      saleid: this.$route.query.saleid,
      disableEdit: false,
      // 是否禁止编辑金额
      userInfoResult: {},
      showMaskType: '',
      showMask: false,
      codeNeed: '获取验证码',
      phoneNumber: '',
      uname: '',
      codePass: '',
      moneyNumber: '',
      phoneTest: /^1[3456789]\d{9}$/,
      moneyTest: /^([1-9]\d{0,9}|0)([.]?|(\.\d{1,2})?)$/,
      remarks: true,
      remarkTxt: '',
      payRecord: {},
      buttonList: [{
        text: '1',
        check: false,
        check1: false,
        index: 0
      }, {
        text: '2',
        check: false,
        check1: false,
        index: 1
      }, {
        text: '3',
        check: false,
        check1: false,
        index: 2
      }, {
        text: '4',
        check: false,
        check1: false,
        index: 3
      }, {
        text: '5',
        check: false,
        check1: false,
        index: 4
      }, {
        text: '6',
        check: false,
        check1: false,
        index: 5
      }, {
        text: '7',
        check: false,
        check1: false,
        index: 6
      }, {
        text: '8',
        check: false,
        check1: false,
        index: 7
      }, {
        text: '9',
        check: false,
        check1: false,
        index: 8
      }, {
        text: '.',
        check: false,
        check1: false,
        index: 9
      }, {
        text: '0',
        check: false,
        check1: false,
        index: 10
      }, {
        text: '←',
        check: false,
        check1: false,
        index: 11
      }],
      showCountryList: false,
      countryList: [{
        name: '中国大陆',
        val: '+86',
        check: false
      }, {
        name: '香港',
        val: '+852',
        check: false
      }, {
        name: '澳门',
        val: '+853',
        check: false
      }, {
        name: '台湾',
        val: '+886',
        check: false
      }, {
        name: 'Angola',
        val: '+244',
        check: false
      }, {
        name: 'Malaysia',
        val: '+60',
        check: false
      }, {
        name: 'India',
        val: '+91',
        check: false
      }, {
        name: 'Algeria',
        val: '+213',
        check: false
      }, {
        name: 'Brazil',
        val: '+55',
        check: false
      }, {
        name: 'Czech',
        val: '+420',
        check: false
      }, {
        name: 'Ireland',
        val: '+353',
        check: false
      }, {
        name: 'Saudi Arabia',
        val: '+966',
        check: false
      }, {
        name: 'Singapore',
        val: '+65',
        check: false
      }, {
        name: 'Thailand',
        val: '+66',
        check: false
      }, {
        name: 'United States',
        val: '+1',
        check: false
      }, {
        name: 'Vietnam',
        val: '+84',
        check: false
      }, {
        name: 'Zimbabwe',
        val: '+263',
        check: false
      }],
      countryVal: '+86',
      noClick: false,
      alipayflag: true,
      // 支付宝支付开关,
      showAlipayBtn: true // 是否显示支付宝按钮
    };
  },
  watch: {
    moneyNumber: function moneyNumber(val, oldVal) {
      if (val.length < 1) {
        this.showCursor = false;
      }
    }
  },
  created: function created() {
    if (this.$route.query.pay) {
      // 如果url中带有pay参数，则直接将pay参数的内容设置为付款金额
      this.moneyNumber = this.$route.query.pay;
    }
    if (this.$route.query.cash) {
      // 如果url中带有参数cash，则将cash参数的内容设置为付款金额的同时，禁止用户编辑金额
      this.disableEdit = true;
      this.moneyNumber = this.$route.query.cash;
    }
  },
  mounted: function mounted() {
    var that = this;
    if (!that._Util.isApp() && !that._Util.isMPaaS()) {
      that._Util.getKaluliAuth(that);
    }
    that.getLiWidth();
    that.getUserInfo();
    if (that._Util.isMPaaS()) {
      // mpass上暂不显示支付宝
      that.showAlipayBtn = false;
    }
    /* 判断app版本*/
    setTimeout(function () {
      if (that._Util.isApp()) {
        var version = localStorage.getItem('newVersion');
        if (that.compareVersion(version)) {
          that.showAlipayBtn = true;
        } else {
          that.showAlipayBtn = false;
        }
      }
    }, 500);
  },
  methods: {
    /** 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true */compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.4'; // 1.4.4开始app上才添加了支付宝支付
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /* 发送链接给app*/sendUrlToApp: function sendUrlToApp() {
      // const that = this
      // that._Util.post(that._Api.ALIPAYAPP.SENDURLTOAPP, {
      //   alipayPayUrl: 'https://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb',
      //   userId: that.userInfoResult.userId
      // }, (data) => {

      //     Toast({
      //       message: "发送成功,快去app消息中心查看",
      //       position: "middle",
      //       duration: 5000
      //     });

      // }, () => {}, that);
      window.location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb';
    },
    getLiWidth: function getLiWidth() {
      var that = this;
      var screenWidth = document.body.offsetWidth;
      that.liWidth = screenWidth / 3 + 'px';
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    savaUserNameAndPhone: function savaUserNameAndPhone(type) {
      var that = this;
      if (type == 1) {
        if (that.userInfoResult.uname) {
          return;
        } else {
          that.showMaskType = 2;
          that.showMask = true;
        }
      } else if (type == 2) {
        if (that.userInfoResult.uphone) {
          return;
        } else {
          that.showMaskType = 1;
          that.showMask = true;
        }
      } else if (type == 3) {
        that.showMaskType = 3;
        that.showMask = true;
      } else {
        that.showMaskType = 4;
        that.showMask = true;
        that._Util.post(that._Api.POST_GET_GETUSERPAYRECORD, {}, function (data) {
          if (data) {
            that.payRecord = data;
          }
        }, function () {}, that);
      }
    },
    closeEvent: function closeEvent() {
      this.showMask = false;
    },
    getCode: function getCode() {
      var that = this;
      //                发送短信验证码
      if (that.countryVal == '+86' && !that.phoneTest.test(that.phoneNumber)) {
        that._Util.showMsgBox('手机号码格式不正确，请重新输入');
        return;
      }
      if (that.noClick) {
        return;
      }
      that.noClick = true;
      var timeDown = 59;
      that.codeNeed = '60秒后重新发送';
      var times = setInterval(function () {
        that.codeNeed = timeDown + '秒后重新发送';
        timeDown--;
        if (timeDown == 0) {
          clearInterval(times);
          that.noClick = false;
          that.codeNeed = '获取验证码';
        }
      }, 1000);
      var phone = '';
      if (that.countryVal == '+86') {
        phone = that.phoneNumber;
      } else {
        phone = that.countryVal + '-' + that.phoneNumber;
      }
      that._Util.post(that._Api.POST_MEMBER_SENDMESSAGE, {
        phone: phone
      }, function (data) {}, function () {}, that, true);
    },
    getChose: function getChose(item) {
      var _iterator = _createForOfIteratorHelper(this.countryList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          v.check = false;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      item.check = true;
      this.countryVal = item.val;
      this.showCountryList = false;
    },
    savaUserInfo: function savaUserInfo(type) {
      var that = this;
      if (type == 1) {
        that._Util.post(that._Api.POST_MEMBER_USER_PHONE, {
          // 仅修改手机号，使用专门修改手机号的接口
          uphone: that.phoneNumber,
          inputCode: that.codePass
        }, function (data) {
          that.showMask = false;
          that.getUserInfo();
        }, function () {}, that);
      } else if (type == 2) {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_SAVE, {
          uname: that.uname
        }, function (data) {
          that.showMask = false;
          that.getUserInfo();
        }, function () {}, that);
      } else {
        that.showMask = false;
        if (that.remarkTxt.length > 0) {
          that.remarks = false;
        }
      }
    },
    toPay: function toPay() {
      var that = this;
      var flag = true;
      if (that.moneyNumber.length > 0) {
        if (!that.moneyTest.test(that.moneyNumber)) {
          that._Util.showMsgBox('请输入正确金额');
          return;
        }
        if (parseFloat(that.moneyNumber) <= 0) {
          that._Util.showMsgBox('请输入正确金额');
          return;
        }
        if (that.userInfoResult.userStatus == 0) {
          that.showMask = true;
          that.showMaskType = 1;
          return;
        }
        if (flag) {
          flag = false;
          var prma = {
            id: that.id,
            price: that.moneyNumber,
            remark: that.remarkTxt + 'saleid=' + that.saleid,
            attachId: ''
          };
          if (that.saleid) {
            prma.saleid = that.saleid;
          }
          if (that.$route.query.buyGroupId) {
            prma.attachId = '小轨拼团_' + that.$route.query.buyGroupId;
          }
          that._Util.post(that._Api.POST_GET_QUICKACTIVITYPAY, prma, function (data) {
            if (data) {
              that._Util.wxPay(data.jsApiParameters, function () {
                if (that.$route.query.type && that.$route.query.type == 'xiaogui') {
                  setTimeout(function () {
                    that.$router.replace({
                      name: 'buyGroups',
                      query: {
                        id: that.$route.query.buyGroupId
                      }
                    });
                  }, 500);
                } else {
                  flag = true;
                }
              });
            }
          }, function () {}, that);
        }
      } else {
        return;
      }
    },
    /* 点击支付宝付款按钮*/zfbToPay: function zfbToPay() {
      var that = this;
      if (!that._Util.isApp()) {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '无法在微信内使用支付宝付款。<br><br>打开卡修宝典 App，点击「我的」→「钱包」，输入钱包口令即可付款。<br><br>具体口令可询问销售经理。',
          confirmButtonText: '下载APP',
          showCancelButton: true
        }).then(function (action) {
          if (action == 'confirm') {
            that.sendUrlToApp();
          } else {
            console.log('取消');
          }
        });
        $('.mint-msgbox').css({
          'cssText': 'width:85% !important'
        });
      } else {
        /* 唤起支付宝支付*/
        if (that.moneyNumber.length > 0) {
          if (!that.moneyTest.test(that.moneyNumber)) {
            that._Util.showMsgBox('请输入正确金额');
            return;
          }
          if (parseFloat(that.moneyNumber) <= 0) {
            that._Util.showMsgBox('请输入正确金额');
            return;
          }
          if (that.userInfoResult.userStatus == 0) {
            that.showMask = true;
            that.showMaskType = 1;
            return;
          }
          if (that.alipayflag) {
            that.alipayflag = false;
            var prma = {
              id: that.id,
              price: that.moneyNumber,
              remark: that.remarkTxt + 'saleid=' + that.saleid,
              attachId: ''
            };
            if (that.saleid) {
              prma.saleid = that.saleid;
            }
            if (that.$route.query.buyGroupId) {
              prma.attachId = '小轨拼团_' + that.$route.query.buyGroupId;
            }
            that._Util.post(that._Api.ALIPAYAPP.GETALIPAYCOMMON, prma, function (data) {
              if (data.jsApiParameters) {
                that.alipayflag = true;
                api.sendEvent({
                  name: 'alipayPayApp',
                  extra: data.jsApiParameters
                });
              }
            }, function () {
              that.alipayflag = true;
            }, that);
          }
        } else {
          return;
        }
      }
    },
    showCountryListEvent: function showCountryListEvent() {
      this.showCountryList = true;
      var _iterator2 = _createForOfIteratorHelper(this.countryList),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          if (this.countryVal == v.val) {
            v.check = true;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    },
    checkButton: function checkButton(item) {
      var that = this;
      var timer = '';
      if (item.text == '.' || item.index == 11) {
        item.check1 = true;
      } else {
        item.check = true;
      }
      timer = setTimeout(function () {
        item.check = false;
        item.check1 = false;
        clearTimeout(timer);
      }, 200);
      if (item.index != 11) {
        that.moneyNumber += item.text;
        if (Number(that.moneyNumber) < 1000000) {
          // eslint-disable-next-line no-self-assign
          that.moneyNumber = that.moneyNumber;
        } else {
          that.moneyNumber = that.moneyNumber.substr(0, that.moneyNumber.length - 1);
        }
      } else {
        that.moneyNumber = that.moneyNumber.substr(0, that.moneyNumber.length - 1);
      }
    },
    checkCursor: function checkCursor() {
      var that = this;
      if (that.disableEdit) return;
      if (that.moneyNumber.length > 0) {
        that.showCursor = true;
      }
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"payMoney"},[(_vm.showCountryList)?_c('div',{staticClass:"countryMask"},_vm._l((_vm.countryList),function(v,i){return _c('div',{key:i,staticStyle:{"width":"100%","height":"45px","overflow":"hidden","font-size":"16px","background":"white"},on:{"click":function($event){return _vm.getChose(v)}}},[_c('div',{class:{'redColor': v.check},staticStyle:{"float":"left","width":"67%","padding-left":"3%","height":"100%","line-height":"45px"}},[_vm._v(_vm._s(v.name)+" "+_vm._s(v.val))]),_vm._v(" "),(v.check)?_c('img',{staticStyle:{"float":"right","width":"18px","height":"18px","margin-right":"20px","margin-top":"15px"},attrs:{"src":__webpack_require__(209)}}):_vm._e()])}),0):_vm._e(),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"maskBox",staticStyle:{"overflow":"hidden"}},[(_vm.showMaskType == 1)?_c('div',[_c('div',{staticClass:"title"},[_vm._v("手机认证")]),_vm._v(" "),_c('div',{staticClass:"payPhoneBox"},[_c('span',{staticClass:"selectBox",on:{"click":function($event){return _vm.showCountryListEvent()}}},[_vm._v(_vm._s(_vm.countryVal))]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phoneNumber),expression:"phoneNumber"}],attrs:{"type":"tel","maxlength":"11","placeholder":"请输入手机号号码"},domProps:{"value":(_vm.phoneNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phoneNumber=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"payCodeBox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.codePass),expression:"codePass"}],attrs:{"type":"tel","maxlength":"6","placeholder":"请输入验证码"},domProps:{"value":(_vm.codePass)},on:{"input":function($event){if($event.target.composing){ return; }_vm.codePass=$event.target.value}}}),_vm._v(" "),_c('div',{attrs:{"disabled":_vm.noClick},on:{"click":function($event){return _vm.getCode()}}},[_vm._v(_vm._s(_vm.codeNeed))])]),_vm._v(" "),_c('div',{staticClass:"ctrl"},[_c('div',{staticClass:"closeBtn ctrlBtn",on:{"click":function($event){return _vm.closeEvent()}}},[_vm._v("取消")]),_vm._v(" "),_c('div',{staticClass:"saveBtn ctrlBtn",on:{"click":function($event){return _vm.savaUserInfo(1)}}},[_vm._v("确定")])])]):_vm._e(),_vm._v(" "),(_vm.showMaskType == 2)?_c('div',[_c('div',{staticClass:"title"},[_vm._v("编辑姓名")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.uname),expression:"uname"}],staticClass:"payInput",attrs:{"type":"text","placeholder":"请输入你的真实姓名"},domProps:{"value":(_vm.uname)},on:{"input":function($event){if($event.target.composing){ return; }_vm.uname=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"ctrl"},[_c('div',{staticClass:"closeBtn ctrlBtn",on:{"click":function($event){return _vm.closeEvent()}}},[_vm._v("取消")]),_vm._v(" "),_c('div',{staticClass:"saveBtn ctrlBtn",on:{"click":function($event){return _vm.savaUserInfo(2)}}},[_vm._v("确定")])])]):_vm._e(),_vm._v(" "),(_vm.showMaskType == 3)?_c('div',[_c('div',{staticClass:"title"},[_vm._v("添加备注")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.remarkTxt),expression:"remarkTxt"}],attrs:{"placeholder":"请输入付款备注","maxlength":"100"},domProps:{"value":(_vm.remarkTxt)},on:{"input":function($event){if($event.target.composing){ return; }_vm.remarkTxt=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"ctrl"},[_c('div',{staticClass:"closeBtn ctrlBtn",on:{"click":function($event){return _vm.closeEvent()}}},[_vm._v("取消")]),_vm._v(" "),_c('div',{staticClass:"saveBtn ctrlBtn",on:{"click":function($event){return _vm.savaUserInfo(3)}}},[_vm._v("确定")])])]):_vm._e(),_vm._v(" "),(_vm.showMaskType == 4)?_c('div',[_c('div',{staticClass:"title"},[_vm._v("最近付款")]),_vm._v(" "),(_vm.payRecord.length>0)?_c('div',{staticStyle:{"margin":"0 0 10px"}},_vm._l((_vm.payRecord),function(v,i){return _c('div',{key:i,staticClass:"recode"},[_c('span',{},[_vm._v(_vm._s(v.payTime))]),_vm._v(" "),_c('span',{},[_vm._v(_vm._s('金额' + v.totalFee + '元'))])])}),0):_c('div',{staticStyle:{"text-align":"center","font-size":"18px","margin-top":"25px","color":"#ccc"}},[_vm._v("暂无付款记录")]),_vm._v(" "),_c('div',{staticClass:"ctrl"},[_c('div',{staticClass:"saveBtn ctrlBtn",staticStyle:{"width":"100%"},on:{"click":function($event){return _vm.savaUserInfo(4)}}},[_vm._v("确定")])])]):_vm._e()])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"nameBox",on:{"click":function($event){return _vm.savaUserNameAndPhone(1)}}},[_vm._v(_vm._s(_vm.userInfoResult.uname ? _vm.userInfoResult.uname : '点击填写姓名')+"\n  ")]),_vm._v(" "),_c('div',{staticClass:"phoneBox",on:{"click":function($event){return _vm.savaUserNameAndPhone(2)}}},[_vm._v("\n    "+_vm._s(_vm.userInfoResult.uphone ? _vm.userInfoResult.uphone : '点击进行电话认证')+"\n  ")]),_vm._v(" "),_c('div',{staticClass:"payBox"},[_c('div',{staticClass:"mr mooey",staticStyle:{"position":"relative"}},[_vm._v("付款金额\n      "),_c('div',{staticClass:"mr",staticStyle:{"font-size":"14px","color":"#377EE1","position":"absolute","right":"0","top":"0","text-align":"right"},on:{"click":function($event){return _vm.savaUserNameAndPhone(4)}}},[_vm._v("最近付款\n      ")])]),_vm._v(" "),_c('div',{staticClass:"mr",staticStyle:{"padding":"0 4px 0"}},[_c('div',{staticClass:"moneyNumber",attrs:{"id":"moneyNumber"},on:{"click":function($event){return _vm.checkCursor()}}},[_c('i',{staticClass:"symbol"},[_vm._v("￥")]),_vm._v(" "),(!_vm.moneyNumber)?_c('span',{staticClass:"ai"},[_vm._v("|")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"moneyNumberFont"},[_vm._v(_vm._s(_vm.moneyNumber))]),_vm._v(" "),(_vm.showCursor)?_c('span',{staticClass:"ai"},[_vm._v("|")]):_vm._e()])]),_vm._v(" "),(_vm.remarks)?_c('div',{staticClass:"payRemark"},[_c('span',{on:{"click":function($event){return _vm.savaUserNameAndPhone(3)}}},[_vm._v("添加备注")])]):_vm._e(),_vm._v(" "),(!_vm.remarks)?_c('div',{staticClass:"mr",staticStyle:{"border-top":"1px solid #E0E0E0","padding":"12px"}},[_c('span',{staticStyle:{"max-width":"80%","overflow":"hidden","white-space":"nowrap","text-overflow":"ellipsis","font-size":"16px"}},[_vm._v(_vm._s(_vm.remarkTxt))]),_vm._v(" "),_c('span',{staticStyle:{"color":"#377EE1","font-size":"16px","overflow":"hidden","margin-left":"5px"},on:{"click":function($event){return _vm.savaUserNameAndPhone(3)}}},[_vm._v("修改")])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"payBtn",class:{'canPay':_vm.moneyNumber.length>0},on:{"click":function($event){return _vm.toPay()}}},[_vm._v("微信付款")]),_vm._v(" "),(_vm.showAlipayBtn)?_c('div',{staticClass:"payBtn zfbBtn",class:{'zfbCanPay':_vm.moneyNumber.length>0 && _vm._Util.isApp()},staticStyle:{"margin-top":"16px"},on:{"click":function($event){return _vm.zfbToPay()}}},[_vm._v("支付宝付款")]):_vm._e(),_vm._v(" "),(!_vm.disableEdit)?_c('div',{staticClass:"numberBox"},[_c('ul',_vm._l((_vm.buttonList),function(v,i){return (_vm.buttonList.length>0)?_c('li',{key:i,class:{'active':v.check, 'active1': v.check1},style:({ width : _vm.liWidth}),on:{"click":function($event){return _vm.checkButton(v)}}},[_vm._v(_vm._s(v.text)+"\n      ")]):_vm._e()}),0)]):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(525);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d0ae29c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1124);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2840)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d0ae29c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d0ae29c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_newOrderListPhone_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2841);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("23f4e38d", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".headPart{width:100%;overflow:hidden}.userNameBox{margin-top:15px}.box{color:#000;width:93%;margin-left:auto;margin-right:auto}.box,.box span{font-size:16px}.phoneNumber{color:#37a8ff}.order-info{padding:5px 0;border-bottom:2px solid #ededed;border-top:2px solid #ededed;width:93%;margin-left:auto;margin-right:auto}.order-info-lef p{margin-top:2px}.order-info-rig{margin-top:10px;font-size:14px;color:#efcd92}.order-address{line-height:25px;height:25px}.comm-list>div,.order-address{width:93%;margin-left:auto;margin-right:auto}.comm-list>div{height:auto;padding:15px 0}.comm-num{position:relative}.fr{float:right}.comm-list .comm-img{width:20%;height:50px}.comm-list .comm-info{width:70%;height:50px;position:relative}.comm-num{width:100%;left:0;bottom:0;position:absolute}.pay{width:93%;padding:0;margin:0;margin-left:auto;margin-right:auto;padding-top:7px;padding-bottom:5px;border-bottom:10px solid #ededed}.right-arrow{height:100%}.order-address a{font-size:14px}.p-lr-20{padding-left:0}.right-arrow:after{background:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      resultList: [],
      name: '',
      type: '',
      phone: '',
      callTime: '',
      isEmpty: false,
      loading: false,
      showMore: false,
      showUser: false,
      params: {
        customerNumber: ''
      },
      totalCount: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    that.params.customerNumber = that.$route.query.customerNumber;
    that.callTime = that.$route.query.callTime;
    that.getData();
  },
  methods: {
    getData: function getData() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_ORDER_LIST_Phone, that.params, function (data) {
        that.name = data.name;
        data.type ? that.type = '(' + data.type + ')' : that.type = '';
        that.phone = data.phone;
        that.showUser = true;
        that.resultList = that.resultList.concat(data.orderList || []);
        if (!that.resultList.length) {
          that.isEmpty = true;
        }
      }, function () {}, that);
    },
    toCall: function toCall() {
      var that = this;
      var instance = (0, _mintUi.Toast)({
        message: '正在呼叫...',
        duration: 1000 * 8
      });
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_ORDER_LIST_Phone_To_Call, that.params, function (data) {
        // instance.close();
      }, function () {
        instance.close();
      }, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[( _vm.showUser )?_c('div',{staticClass:"headPart"},[_c('div',{staticClass:"userNameBox box"},[_vm._v("姓名 ： "),_c('span',[_vm._v(_vm._s(_vm.name || '非注册用户'))]),_c('span',[_vm._v(_vm._s(_vm.type))])]),_vm._v(" "),_c('div',{staticClass:"phoneBox box"},[_vm._v("电话 ："),_c('span',{staticClass:"phoneNumber",on:{"click":function($event){return _vm.toCall()}}},[_vm._v(_vm._s(_vm.phone))])]),_vm._v(" "),_c('div',{staticClass:"coneTimeBox box"},[_vm._v("来电时间 ： "),_c('span',[_vm._v(_vm._s(_vm.callTime))])]),_vm._v(" "),_c('div',{staticClass:"box"},[_vm._v("待付款订单：")])]):_vm._e(),_vm._v(" "),_vm._l((_vm.resultList),function(v,index){return (!_vm.isEmpty)?_c('div',{key:index,staticClass:"my-order"},[_c('div',{staticClass:"order-info border-b1 p-lr-20 clearfix"},[_c('div',{staticClass:"order-info-lef fl"},[_c('p',[_vm._v("订单号："+_vm._s(v.orderNo || ''))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm._f("dateFormat")(v.submitTime,'yyyy年MM月dd日 hh:mm')))])]),_vm._v(" "),_c('div',{staticClass:"order-info-rig fr"},[_vm._v("\n        "+_vm._s(v.orderStatusStr || '')+"\n      ")])]),_vm._v(" "),_c('div',{staticClass:"order-address border-b1 p-lr-20"},[_c('a',{class:{'right-arrow': !v.receiveAddress, 'right-arrow-list': v.receiveAddress},attrs:{"href":"javascript: void(0);"}},[_vm._v("\n        "+_vm._s(v.receiveAddress || '收货地址未填写，去填写')+"\n      ")])]),_vm._v(" "),_c('div',{staticClass:"order-list comm-list"},_vm._l((v.orderItems),function(o,i){return _c('div',{key:i,staticClass:"comm-type1 clearfix"},[_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-img"},[_c('img',{attrs:{"src":o.picUrl,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n              "+_vm._s(o.mdseName)+"\n            ")]),_vm._v(" "),_c('div',{staticClass:"comm-num"},[_c('span',[_vm._v("x"+_vm._s(o.num))]),_vm._v(" "),(o.expressNo && !o.receiveStatus)?_c('span',{staticClass:"fr"},[_vm._v("物流单号："+_vm._s(o.expressNo || ''))]):_vm._e(),_vm._v(" "),(o.receiveStatusStr)?_c('span',{staticClass:"fr"},[_vm._v(_vm._s(o.receiveStatusStr || ''))]):_vm._e()])])])])}),0),_vm._v(" "),(v.orderStatus == 1 || v.orderStatus == 3)?_c('div',{staticClass:"pay p20"},[_c('a',{staticClass:"right-arrow",attrs:{"href":"javascript: void(0);"}},[_vm._v("待支付金额：￥"+_vm._s(v.toPayAmount || 0))])]):_vm._e()]):_vm._e()})],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(526);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3cc80bc3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1125);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2842)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3cc80bc3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3cc80bc3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressManager_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2843);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6babbb63", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".addressMy .myAddressList{border-bottom:1px solid #ccc;padding:10px 0;margin:0 10px}.addressMy .myAddressList div{overflow:hidden}.addressMy .myAddressList div.listEdit{height:50px;line-height:50px;overflow:hidden}.addressMy .myAddressList div p{float:right}.addressMy .myAddressList div p:first-child{float:left}.addressMy .myAddressList div p button{text-align:right;margin-left:10px;color:#8f8f8f}.addressMy .myAddressList div p:first-child span{margin-right:10px;display:inline-block}.addressMy .myAddressList div p button:first-child{width:50px;height:30px;background:url(" + escape(__webpack_require__(2844)) + ") 0 no-repeat;background-size:15px 15px}.addressMy .myAddressList div p button{width:50px;height:30px;background:url(" + escape(__webpack_require__(2845)) + ") 0 no-repeat;background-size:15px 15px}.addressMy .myAddressList p.listAddress{color:#8f8f8f}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/20161111001.ee9260f.png";module.exports = __webpack_require__.p + "static/img/20161111002.efbfebc.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      display: false,
      editFlag: false,
      id: 1,
      address: {},
      addressNew: {},
      resultList: [],
      show: false,
      result: {
        province: {},
        city: {},
        area: {}
      },
      phoneExp: /^1[3456789]\d{9}$/
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getList();
    that.$on('checkedCity', function (data) {
      that._Util.log(data);
      that.show = false;
      that.addressNew.province = data.province;
      that.addressNew.city = data.city;
      that.addressNew.dist = data.area;
      that.display = true;
    });
    that.$on('areaCancel', function () {
      that.show = false;
    });
  },
  methods: {
    getList: function getList() {
      var that = this;
      if (that.$route.query.type == '1') {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE_ADDRESS, {}, function (data) {
          if (data) {
            data.type = 1;
            that.resultList = [data];
          } else {
            that.resultList = [{
              addFlag: true,
              type: that.$route.query.type
            }];
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS, {
          type: that.$route.query.type
        }, function (data) {
          if (!data.length) {
            that.resultList = [{
              addFlag: true,
              type: parseInt(that.$route.query.type)
            }];
            return;
          } else {
            var flag = false;
            for (var i = 0; i < data.length; i++) {
              if (parseInt(that.$route.query.type) == data[i].type) {
                flag = true;
                break;
              }
            }
            if (!flag) {
              that.resultList = [{
                addFlag: true,
                type: that.$route.query.type
              }];
              return;
            }
          }
          that.resultList = data.filter(function (v) {
            if (v.type == parseInt(that.$route.query.type)) {
              return v;
            }
          });
        }, function (data) {}, that);
      }
    },
    showSave: function showSave(o) {
      var that = this;
      that.$router.replace({
        name: 'memberAddressChange',
        query: {
          id: o.id,
          type: that.$route.query.type
        }
      });
    },
    deleteAdd: function deleteAdd(o) {
      var that = this;
      that._Util.showMsgBoxConfirm(o.type == 1 ? '确认清空您的门店地址？' : '确认清空您的收货地址？', function (action) {
        if (action) {
          that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS_DEL, {
            id: o.id
          }, function () {
            that.getList();
          }, function () {}, that);
        }
      });
    },
    editAddress: function editAddress(o) {
      var that = this;
      that.$router.replace({
        name: 'memberAddressChange',
        query: {
          id: o.id,
          type: that.$route.query.type,
          fullPath: that.$route.query.fullPath,
          orderId: that.$route.query.orderId
        }
      });
    },
    phoneBlur: function phoneBlur() {
      var msg = '';
      var that = this;
      if (!that.phoneExp.test(that.addressNew.phone)) {
        msg = '手机号码格式不正确或不能为空';
      }
      if (msg) {
        that._Util.showMsgBox(msg);
        return;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.editFlag)?_c('div',{staticClass:"addressMy"},_vm._l((_vm.resultList),function(o,index){return _c('div',{key:index,staticClass:"myAddressList"},[_c('p',[_vm._v(_vm._s(o.type == 1 ? '门店地址' : '收货地址'))]),_vm._v(" "),(o.addFlag)?_c('div',{staticStyle:{"text-align":"center"}},[_vm._v("\n        "+_vm._s(o.type == 1 ? '门店地址' : '收货地址')+"为空"),_c('br'),_vm._v(" "),_c('span',{staticStyle:{"color":"#127BDC"},on:{"click":function($event){return _vm.showSave(index,o)}}},[_vm._v("点击添加地址"+_vm._s(o.type == 1 ? '门店地址' : '收货地址'))])]):_c('div',{staticClass:"listEdit"},[_c('p',[_c('span',[_vm._v(_vm._s(o.name))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(o.phone))])]),_vm._v(" "),_c('p',{staticClass:"listEditRight"},[_c('button',{on:{"click":function($event){return _vm.editAddress(o)}}},[_vm._v("编辑")])])]),_vm._v(" "),(o.province)?_c('p',{staticClass:"listAddress"},[_vm._v("\n        "+_vm._s((o.province || '') + (o.city || '') + (o.dist || '') + (o.address || ''))+"\n      ")]):_vm._e()])}),0):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(527);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60d0e3aa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1126);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2846)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60d0e3aa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_60d0e3aa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressManagerChange_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2847);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("d80981ba", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".addAddress div.address,.addAddress div.country,.addAddress div.name,.addAddress div.tel{height:50px;line-height:50px;border-bottom:1px solid #ccc;margin:0 10px}.addAddress div.addBTn{border:0;margin:150px 10px 0;height:70px;text-align:center;margin-top:70%}.addAddress div input{width:70%}.addAddress div.name span{letter-spacing:5px}.addAddress div.addBTn button{width:100%;height:50px;color:#fff;background:#d41116;border-radius:5px;font-size:16px;margin-top:10px}.addAddress div.country{background:url(" + escape(__webpack_require__(1443)) + ") 100% no-repeat;background-size:15px 20px;overflow:hidden}.addAddress div.country p{float:left;margin-left:10px}.addAddress div.country span{float:left}.addAddress div.country span.pleaseCheck{position:absolute;right:20px;top:0;color:#8f8f8f}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/20161111003.96ffbdf.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vueArea = _interopRequireDefault(__webpack_require__(812));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    VueArea: _vueArea.default
  },
  data: function data() {
    return {
      test: '',
      addIndex: 0,
      address: {},
      addressNew: {
        name: null,
        phone: null,
        address: ''
      },
      resultList: [],
      id: this.$route.query.id,
      show: false,
      result: {
        province: {},
        city: {},
        area: {}
      },
      addressLength: 0,
      phoneExp: /^1[3456789]\d{9}$/
    };
  },
  watch: {
    'addressNew.address': function addressNewAddress() {
      // this.addressLength = this._Util.getByteLen(this.addressNew.address);
      this.addressLength = this.addressNew.address.length;
    }
  },
  mounted: function mounted() {
    var that = this;
    if (that.$route.query.type == '1') {
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE_ADDRESS, {}, function (data) {
        if (data) {
          that.addressNew = data;
          that.getAddLen();
        }
      }, function () {}, that);
    } else {
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS_detail, {
        id: that.id
      }, function (data) {
        if (!data) {
          return;
        }
        that.addressNew = data;
        that.getAddLen();
      }, function () {}, that);
    }
    that.$on('checkedCity', function (data) {
      that._Util.log(data);
      that.show = false;
      if (!data.province) {
        that.addressNew.province = '';
      } else {
        that.addressNew.province = data.province;
      }
      if (!data.city) {
        that.addressNew.city = '';
      } else {
        that.addressNew.city = data.city;
      }
      if (!data.area) {
        that.addressNew.dist = '';
      } else {
        that.addressNew.dist = data.area;
      }

      //        that.addressNew.province = data.province.name;
      //        that.addressNew.city = data.city.name;
      //        that.addressNew.dist = data.area.name;
    });
    that.$on('areaCancel', function () {
      that.show = false;
    });
    that.addressLength = 0;
  },
  methods: {
    save: function save() {
      var that = this;
      if (!that.addressNew.id) {
        that.addressNew.type = that.$route.query.type;
      }
      if (!that.addressNew.name && that.$route.query.type == '2') {
        that._Util.showMsgBox('联系人不能为空');
        return;
      }
      if (!that.addressNew.phone && that.$route.query.type == '2') {
        that._Util.showMsgBox('手机号不能为空');
        return;
      }
      if (!that.phoneExp.test(that.addressNew.phone) && that.$route.query.type == '2') {
        that._Util.showMsgBox('手机号码格式不正确');
        return;
      }
      if (!that.addressNew.province) {
        that._Util.showMsgBox('请选择所在地区');
        return;
      }
      if (that.addressLength < 5) {
        that._Util.showMsgBox('详细地址至少需要输入5个字');
        return;
      }
      if (that.addressLength > 60) {
        that._Util.showMsgBox('详细地址最多可以输入60个字');
        return;
      }
      that._Util.showMsgBoxConfirm('是否确认保存信息', function (action) {
        if (action) {
          that._Util.post(that.addressNew.type == 1 ? that._Api.POST_MEMBER_PERSONAL_STORE_ADDRESS_SAVE : that._Api.POST_MEMBER_PERSONAL_ADDRESS_ADD, that.addressNew, function () {
            //              that.$router.replace({name: 'memberAddress', query: {type: that.$route.query.type}});
            that.$store.dispatch('refreshUserInfo');
            if (that.$route.query.fullPath) {
              if (that.$route.query.orderId) {
                that.updateOrderAddress(that, function () {
                  window.location.href = that.$route.query.fullPath;
                });
              } else {
                window.location.href = that.$route.query.fullPath;
              }
            } else if (that.$route.query.from === 'community') {
              that.$router.go(-1);
            } else {
              if (that.$route.query.type == 1) {
                that.$router.replace({
                  name: 'memberStore'
                });
              } else {
                that.$router.replace({
                  name: 'memberPersonalInfo'
                });
              }
            }
          }, function () {}, that);
        }
      });
    },
    updateOrderAddress: function updateOrderAddress(self, callback) {
      var that = self || this;
      that._Util.post(that._Api.POST_SHOPPING_ORDER_UPDATE_ADDRESS, {
        id: that.$route.query.orderId
      }, function () {
        callback && callback();
      }, function () {}, that);
    },
    phoneBlur: function phoneBlur() {
      var msg = '';
      var that = this;
      if (!that.phoneExp.test(that.addressNew.phone)) {
        msg = '手机号码格式不正确或不能为空';
      }
      if (msg) {
        that._Util.showMsgBox(msg);
      }
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(256);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_393a979e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(841);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2043)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_393a979e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_393a979e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vue_area_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2044);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("732eae60", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ProvCityBoxBg{background:rgba(0,0,0,.7);z-index:200;position:absolute;top:0;bottom:0;left:0;right:0}.ProvCityBox{position:fixed;z-index:300;background:#fff;bottom:0;left:0;right:0}.ProvCityHeader{background-color:#eee;height:44px;line-height:44px;overflow:hidden;text-align:center;font-size:16px!important}.ProvCityHeaderCancle{float:left}.ProvCityHeaderCancle,.ProvCityHeaderConfirm{padding:0 20px;color:#ff5657;font-size:16px!important}.ProvCityHeaderConfirm{float:right}.ProvCityContent{width:100%;margin:0 auto;background:#fff;height:245px;overflow:hidden}.ProvCityContentList{float:left;width:33.333333%;text-align:center}.ProvCityContentList ul{-webkit-transition:all .3s ease;transition:all .3s ease}.ProvCityContentList ul.area_dragging,.ProvCityContentList ul.city_dragging,.ProvCityContentList ul.province_dragging{-webkit-transition:none;transition:none}.ProvCityContentList li{line-height:35px;height:35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px!important}.ProvCityContentList li.current{font-size:16px!important;font-weight:700}.ProvCityContentList li.node1{font-size:15px!important;opacity:.7}.ProvCityContentList li.node2{font-size:14px!important;opacity:.5}.ProvCityContentList li.node3{font-size:12px!important;opacity:.3}.ProvCitySelectedTop{bottom:105px}.ProvCitySelectedBottom,.ProvCitySelectedTop{width:100%;border:none;border-top:1px solid #eee;position:absolute;margin:0;height:0}.ProvCitySelectedBottom{bottom:140px}.expand-select-enter-active,.expand-select-leave-active{-webkit-transition:all .4s ease;transition:all .4s ease;bottom:0}.expand-select-enter,.expand-select-leave-active{-webkit-transform:translateY(289px);-ms-transform:translateY(289px);transform:translateY(289px)}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _city = _interopRequireDefault(__webpack_require__(1368));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    'result': {
      type: Object,
      default: null
    },
    'show': Boolean,
    'title': {
      type: String,
      default: '请选择'
    },
    'confirm': {
      type: String,
      default: '确定'
    },
    'cancel': {
      type: String,
      default: '取消'
    }
  },
  data: function data() {
    return {
      target: '',
      provinceState: {
        data: null,
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      cityState: {
        data: null,
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      areaState: {
        data: null,
        selectedId: null,
        index: 0,
        startPos: null,
        translateY: 0,
        startTranslateY: 0,
        dragging: false
      },
      delta: 0,
      slideEls: null,
      p: '',
      c: '',
      a: '',
      provinces: _city.default.citylist,
      areas: '',
      cities: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that.beforeCreate();
    that._onTouchMove = that._onTouchMove.bind(that);
    that._onTouchEnd = that._onTouchEnd.bind(that);
  },
  methods: {
    beforeCreate: function beforeCreate() {
      this.setProvince('北京');
      this.setCity('东城区');
      this.provinceState.data = this.provinces;
      this.provinceState.selectedId = 110000; // 北京市  省
      this.cityState.selectedId = 110100; // 市辖区  市
      this.areaState.selectedId = 110101; // 东城区  区
    },
    setProvince: function setProvince(p) {
      this.p = p;
      this.c = '';
      this.a = '';
      this.areas = [];
      // 根据选中的 p(省份) 值更新 cities(城市列表)
      var result = this.provinces.filter(function (v) {
        return v.p === p;
      });
      this.cityState.data = result[0].c || [];
      this.cityState.translateY = 0;
      this.cityState.index = 0;
    },
    setCity: function setCity(c) {
      this.c = c;
      this.a = '';
      var result = this.cityState.data.filter(function (v) {
        return v.n === c;
      });
      if (result.length) {
        this.areaState.data = result[0].a || [];
      } else {
        this.areaState.data = [];
      }
      this.areaState.translateY = 0;
      this.areaState.index = 0;
    },
    setArea: function setArea(a) {
      this.a = a;
    },
    submit: function submit() {
      var obj = {
        'province': this.provinceState.data[this.provinceState.index].p,
        'city': this.cityState.data.length ? this.cityState.data[this.cityState.index].n : '',
        'area': this.areaState.data.length ? this.areaState.data[this.areaState.index].s : ''
      };
      this.$parent.$emit('checkedCity', obj);
    },
    getSelectedData: function getSelectedData(index) {
      var target = this.target;
      var thisData = this[target + 'State'];
      thisData.selectedId = thisData.data[index].code;
      if (target === 'province') {
        this.setProvince(thisData.data[index].p);
        if (thisData.data[index].c) {
          this.setCity(thisData.data[index].c[0].n);
        } else {
          this.setCity();
        }
      }
      if (target === 'city') {
        this.setCity(thisData.data[index].n);
      }
    },
    setPage: function setPage() {
      var target = this.target;
      var thisData = this[target + 'State'];
      if (!thisData.data.length) {
        return;
      }
      var clientHeight = this.slideEls[0]['clientHeight'];
      var total = thisData.data.length;
      var goPage = Math.round((thisData.translateY / clientHeight).toFixed(1));
      if (goPage > 0) {
        goPage = 0;
      }
      goPage = total - 1 >= Math.abs(goPage) ? goPage : -(total - 1);
      var index = Math.abs(goPage);
      thisData.index = index;
      this.getSelectedData(index);
      thisData.translateY = goPage * clientHeight;
    },
    cityCancel: function cityCancel() {
      this.$parent.$emit('areaCancel');
    },
    _getTouchPos: function _getTouchPos(e) {
      return e.changedTouches ? e.changedTouches[0]['pageY'] : e['pageY'];
    },
    _getElem: function _getElem(e) {
      return Array.from(e.currentTarget.children).slice(3, -3);
    },
    _onTouchStart: function _onTouchStart(target, e) {
      var thisData = this[target + 'State'];
      this.target = target;
      this.slideEls = this._getElem(e);
      this.delta = 0;
      thisData.startPos = this._getTouchPos(e);
      thisData.startTranslateY = thisData.translateY;
      thisData.dragging = true;
      document.addEventListener('touchmove', this._onTouchMove, false);
      document.addEventListener('touchend', this._onTouchEnd, false);
      document.addEventListener('mousemove', this._onTouchMove, false);
      document.addEventListener('mouseup', this._onTouchEnd, false);
    },
    _onTouchMove: function _onTouchMove(e) {
      var target = this.target;
      var thisData = this[target + 'State'];
      e.delta = this._getTouchPos(e) - thisData.startPos;
      thisData.translateY = thisData.startTranslateY + e.delta;
      if (Math.abs(e.delta) > 0) {
        e.preventDefault();
      }
    },
    _onTouchEnd: function _onTouchEnd(e) {
      var target = this.target;
      var thisData = this[target + 'State'];
      thisData.dragging = false;
      this.setPage();
      document.removeEventListener('touchmove', this._onTouchMove);
      document.removeEventListener('touchend', this._onTouchEnd);
      document.removeEventListener('mousemove', this._onTouchMove);
      document.removeEventListener('mouseup', this._onTouchEnd);
    },
    _stopDef: function _stopDef(e) {
      e.preventDefault();
    } // getCode(itemList, str, parentId) {
    //   for (let i = 0; i < itemList.length; i++) {
    //     if (!parentId && itemList[i].name == str) {
    //     }
    //   }
    // }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ProvCityBoxWarp"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"ProvCityBoxBg",on:{"click":function($event){return _vm.cityCancel()},"touchmove":_vm._stopDef,"mousewheel":_vm._stopDef}}),_vm._v(" "),_c('transition',{attrs:{"name":"expand-select"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"ProvCityBox",on:{"mousewheel":_vm._stopDef}},[_c('div',{staticClass:"ProvCityHeader"},[_c('div',{staticClass:"ProvCityHeaderCancle",on:{"click":function($event){return _vm.cityCancel()}}},[_vm._v(_vm._s(_vm.cancel))]),_vm._v("\n        "+_vm._s(_vm.title)+"\n        "),_c('div',{staticClass:"ProvCityHeaderConfirm",on:{"click":function($event){return _vm.submit()}}},[_vm._v(_vm._s(_vm.confirm))])]),_vm._v(" "),_c('div',{staticClass:"ProvCityContent"},[_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"provinceList",class:{'province_dragging': _vm.provinceState.dragging},style:({'transform' : 'translate3d(0,' + _vm.provinceState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('province', $event)},"mousedown":function($event){return _vm._onTouchStart('province', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.provinceState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.provinceState.selectedId,
                'node1': Math.abs(index - _vm.provinceState.index) == 1,
                'node2': Math.abs(index - _vm.provinceState.index) == 2,
                'node3': Math.abs(index - _vm.provinceState.index) >= 3
              }},[_vm._v(_vm._s(item.p)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)]),_vm._v(" "),_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"cityList",class:{'city_dragging': _vm.cityState.dragging},style:({'transform' : 'translate3d(0,' + _vm.cityState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('city', $event)},"mousedown":function($event){return _vm._onTouchStart('city', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.cityState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.cityState.selectedId,
                'node1': Math.abs(index - _vm.cityState.index) == 1,
                'node2': Math.abs(index - _vm.cityState.index) == 2,
                'node3': Math.abs(index - _vm.cityState.index) >= 3
              }},[_vm._v(_vm._s(item.n)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)]),_vm._v(" "),_c('div',{staticClass:"ProvCityContentList"},[_c('ul',{ref:"areaList",class:{'area_dragging': _vm.areaState.dragging},style:({'transform' : 'translate3d(0,' + _vm.areaState.translateY + 'px, 0)'}),on:{"touchstart":function($event){return _vm._onTouchStart('area', $event)},"mousedown":function($event){return _vm._onTouchStart('area', $event)}}},[_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_vm._l((_vm.areaState.data),function(item,index){return _c('li',{key:index,class:{
                'current': item.code === _vm.areaState.selectedId,
                'node1': Math.abs(index - _vm.areaState.index) == 1,
                'node2': Math.abs(index - _vm.areaState.index) == 2,
                'node3': Math.abs(index - _vm.areaState.index) >= 3
              }},[_vm._v(_vm._s(item.s)+"\n            ")])}),_vm._v(" "),_c('li'),_vm._v(" "),_c('li'),_vm._v(" "),_c('li')],2)])]),_vm._v(" "),_c('hr',{staticClass:"ProvCitySelectedTop"}),_vm._v(" "),_c('hr',{staticClass:"ProvCitySelectedBottom"})])])],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"addAddress"},[(_vm.$route.query.type == '2')?_c('div',{staticClass:"name"},[_c('span',[_vm._v("联系人：")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.addressNew.name),expression:"addressNew.name"}],attrs:{"type":"text"},domProps:{"value":(_vm.addressNew.name)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.addressNew, "name", $event.target.value)}}})]):_vm._e(),_vm._v(" "),(_vm.$route.query.type == '2')?_c('div',{staticClass:"tel"},[_c('span',[_vm._v("手机号码：")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.addressNew.phone),expression:"addressNew.phone"}],attrs:{"type":"number"},domProps:{"value":(_vm.addressNew.phone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.addressNew, "phone", $event.target.value)}}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"country",staticStyle:{"position":"relative"},on:{"click":function($event){_vm.show = !_vm.show}}},[_c('span',[_vm._v("所在地区：")]),_vm._v(" "),_c('p',{staticClass:"area"},[_vm._v(_vm._s((_vm.addressNew.province || '') + (_vm.addressNew.city || '') + (_vm.addressNew.dist || '')))]),_vm._v(" "),(!_vm.addressNew.province)?_c('span',{staticClass:"pleaseCheck"},[_vm._v("请选择")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"address"},[_c('span',[_vm._v("详细街道：")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.addressNew.address),expression:"addressNew.address"}],attrs:{"type":"text","placeholder":"街道、楼牌号等"},domProps:{"value":(_vm.addressNew.address)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.addressNew, "address", $event.target.value)}}}),_vm._v(" "),_c('div',{staticStyle:{"color":"red"}},[(_vm.addressNew.address && _vm.addressLength < 5)?_c('span',[_vm._v("详细地址至少需要输入5个字")]):_vm._e(),_vm._v(" "),(_vm.addressNew.address && _vm.addressLength > 60)?_c('span',[_vm._v("详细地址最多可以输入60个字")]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"addBTn",staticStyle:{"margin-top":"0","position":"absolute","bottom":"0","width":"96%","left":"2%","margin":"0"}},[_c('button',{on:{"click":function($event){return _vm.save()}}},[_vm._v("保存")])]),_vm._v(" "),_c('Vue-area',{attrs:{"show":_vm.show,"result":_vm.result}})],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(528);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_03c1bd62_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1127);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2848)
  __webpack_require__(2851)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-03c1bd62"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_03c1bd62_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_03c1bd62_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2849);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ce40796a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-03c1bd62]{background-color:#fff;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:.6rem;padding-left:.6rem;padding-right:.6rem}.wrap .topCard[data-v-03c1bd62]{overflow:hidden}.wrap .topCard .leftNum[data-v-03c1bd62]{width:9.6rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/gift/gift_ticket.png\");float:left}.wrap .topCard .gotNum[data-v-03c1bd62],.wrap .topCard .leftNum[data-v-03c1bd62]{height:4.2rem;background-repeat:no-repeat;background-size:100%;border-radius:.2rem}.wrap .topCard .gotNum[data-v-03c1bd62]{width:7.75rem;background-image:url(\"http://static2.kaxiuyun.com/kxy/gift/gift.png\");float:right}.wrap .topCard .card[data-v-03c1bd62]{position:relative}.wrap .topCard .card .title[data-v-03c1bd62]{font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;line-height:.83rem;position:absolute;top:.6rem;left:.6rem}.wrap .topCard .card .ticketNum[data-v-03c1bd62]{font-size:1.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;position:absolute;left:.6rem;bottom:.23rem}.wrap .topCard .card .ticketNum span[data-v-03c1bd62]{font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;margin-left:.2rem}.wrap .topCard .card .arrow[data-v-03c1bd62]{font-size:.55rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;position:absolute;top:.6rem;right:.9rem}.wrap .topCard .card .arrow[data-v-03c1bd62]:after{content:\"\";width:.15rem;height:.21rem;background-image:url(" + escape(__webpack_require__(2850)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;right:-.3rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .imgWrap[data-v-03c1bd62]{margin-top:1rem;height:10.45rem;background-color:#f0f8ff}.wrap .imgWrap img[data-v-03c1bd62]{width:100%;height:100%}.wrap .giftWrap[data-v-03c1bd62]{margin-top:1rem}.wrap .giftWrap .giftTitle[data-v-03c1bd62]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;margin-bottom:1rem}.wrap .giftWrap .giftList .item[data-v-03c1bd62]{margin-top:1rem;padding-bottom:1rem;border-bottom:1px solid #eee;height:5rem;box-sizing:content-box}.wrap .giftWrap .giftList .item img[data-v-03c1bd62]{float:left;width:5rem;height:5rem;background-color:#f0f8ff;object-fit:cover}.wrap .giftWrap .giftList .item .rightContent[data-v-03c1bd62]{margin-left:5.6rem;height:100%;position:relative}.wrap .giftWrap .giftList .item .rightContent .title[data-v-03c1bd62]{font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .giftWrap .giftList .item .rightContent .detail[data-v-03c1bd62]{position:absolute;left:0;bottom:.25rem}.wrap .giftWrap .giftList .item .rightContent .detail .year[data-v-03c1bd62]{background:rgba(233,90,39,.1);border-radius:.05rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#e8541e;padding-left:.2rem;padding-right:.2rem;display:inline-block}.wrap .giftWrap .giftList .item .rightContent .detail .giftNum[data-v-03c1bd62]{font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#999;margin-top:.2rem}.wrap .giftWrap .giftList .item .rightContent .giftBtn[data-v-03c1bd62]{width:3.6rem;padding:.2rem;background:#377ee1;border-radius:.61rem;text-align:center;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;position:absolute;right:0;bottom:.25rem}.wrap .giftWrap .giftList .item .rightContent .giftBtn.disable[data-v-03c1bd62]{background-color:#c3c3c3}.wrap .giftWrap .giftList .more[data-v-03c1bd62]{padding-top:1.38rem;padding-bottom:1.38rem;text-align:center;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/gift_arrow.422921e.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2852);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6963c83b", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".plateDetail .mescroll-empty{padding-top:5.48rem!important}.plateDetail .mescroll-empty .empty-icon{width:2.33rem!important}.plateDetail .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      mescroll: null,
      giftList: [],
      allLoaded: false,
      giftsInfo: ''
    };
  },
  mounted: function mounted() {
    this.getGiftsInfo();
    this.share();
    this.mescroll = new _mescroll.default(this.$refs.giftIndex, {
      down: {
        use: false
      },
      up: {
        callback: this.getGiftList,
        auto: true,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        htmlNodata: '',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'giftpage',
          // 父布局的id (1.3.5版本支持传入dom元素)
          icon: 'https://img01.yzcdn.cn/vant/empty-image-default.png',
          tip: '暂无相关礼品' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 进入已购礼品页面
     */
    goTicketsGot: function goTicketsGot() {
      this.$router.push({
        name: 'ticketsGot'
      });
    },
    /**
     * 进入我的礼品券页面
     */
    goMyTickets: function goMyTickets() {
      this.$router.push({
        name: 'myLeftGift'
      });
    },
    /**
     * 进入会员礼品券
     */
    goGiftDetail: function goGiftDetail(id) {
      this.$router.push({
        name: 'giftDetail',
        query: {
          giftid: id
        }
      });
    },
    /**
     * 获取会员礼品统计信息
     */
    getGiftsInfo: function getGiftsInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GIFTS_GET_INFO, {}, function (data) {
        _this.giftsInfo = data;
      }, function () {}, this);
    },
    /**
     * 获取礼品集合
     */
    getGiftList: function getGiftList(page) {
      var _this2 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GIFTS_GET_LIST, {
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this2.giftList = [];
        }
        if (data.length < page.size) {
          _this2.allLoaded = true;
        }
        _this2.giftList = _this2.giftList.concat(data);
        _this2.$nextTick(function () {
          // this.mescroll.endSuccess(data.length);
          _this2.mescroll.endSuccess(9); // 滚动加载只请求一次
        });
      }, function () {
        _this2.mescroll.endErr();
      }, this, true);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = location.pathname;
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典海量会员礼品，赶紧来领取~',
                  desc: '卡修宝典海量会员礼品，赶紧来领取~',
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"giftIndex",staticClass:"wrap giftpage"},[_c('div',{staticClass:"topCard"},[_c('div',{staticClass:"leftNum card",on:{"click":_vm.goMyTickets}},[_c('div',{staticClass:"title"},[_vm._v("我的礼品券")]),_vm._v(" "),_c('div',{staticClass:"arrow"},[_vm._v("获得更多")]),_vm._v(" "),(_vm.giftsInfo)?_c('div',{staticClass:"ticketNum"},[_vm._v("\n        "+_vm._s(_vm.giftsInfo.couponCount)),_c('span',[_vm._v("张")])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"gotNum card",on:{"click":_vm.goTicketsGot}},[_c('div',{staticClass:"title"},[_vm._v("已领礼品")]),_vm._v(" "),_c('div',{staticClass:"arrow"},[_vm._v("查看物流")]),_vm._v(" "),(_vm.giftsInfo)?_c('div',{staticClass:"ticketNum"},[_vm._v("\n        "+_vm._s(_vm.giftsInfo.receiveCount)),_c('span',[_vm._v("份")])]):_vm._e()])]),_vm._v(" "),(_vm.giftsInfo.imgPath)?_c('div',{staticClass:"imgWrap"},[_c('img',{attrs:{"src":_vm.giftsInfo.imgPath,"alt":""}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"giftWrap"},[_c('div',{staticClass:"giftTitle"},[_vm._v("礼品列表")]),_vm._v(" "),_c('div',{staticClass:"giftList"},[_vm._l((_vm.giftList),function(v,i){return _c('div',{key:i,staticClass:"item",on:{"click":function($event){return _vm.goGiftDetail(v.id)}}},[_c('img',{attrs:{"src":v.imgPath,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(v.giftName))]),_vm._v(" "),_c('div',{staticClass:"detail"},[(v.subtitle)?_c('div',{staticClass:"year"},[_vm._v(_vm._s(v.subtitle))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"giftNum"},[_vm._v("剩余"+_vm._s(v.giftNum)+"份")])]),_vm._v(" "),(v.status===200)?_c('div',{staticClass:"giftBtn"},[_vm._v("\n            免费领取\n          ")]):(v.status===1)?_c('div',{staticClass:"giftBtn disable"},[_vm._v("\n            已领取\n          ")]):_c('div',{staticClass:"giftBtn disable"},[_vm._v("\n            派发完毕\n          ")])])])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.allLoaded),expression:"!allLoaded"}],attrs:{"id":"loadWarp"}}),_vm._v(" "),(_vm.allLoaded)?_c('div',{staticClass:"more"},[_vm._v("更多礼品，敬请期待~")]):_vm._e()],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(529);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7e739166_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1128);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2853)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7e739166"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7e739166_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7e739166_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myTickets_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2854);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2dc5081c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-7e739166]{height:100%;background-color:#f2f2f2;position:relative}.wrap .cardwrap[data-v-7e739166]{background:#fff;padding:.8rem .6rem}.wrap .card[data-v-7e739166]{background:-webkit-gradient(linear,left top,left bottom,from(#377ee1),to(#3a67f7));background:linear-gradient(180deg,#377ee1,#3a67f7);overflow:hidden;border-radius:.2rem}.wrap .card div[data-v-7e739166]:first-of-type{padding:0 .6rem 0 .8rem;font-size:.6rem;font-family:PingFangSC-Regular;color:#c3d7f6;margin-top:1rem}.wrap .card div:first-of-type a[data-v-7e739166]{width:4.4rem;height:1.4rem;line-height:1.4rem;text-align:center;float:right;color:#3778e6;font-size:.6rem;background:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,.77)),to(hsla(0,0%,100%,.87))) #fff;background:linear-gradient(180deg,hsla(0,0%,100%,.77),hsla(0,0%,100%,.87)) #fff;border-radius:.7rem;position:relative;top:.8rem}.wrap .card div[data-v-7e739166]:nth-of-type(2){padding:0 .8rem;font-size:1.6rem;font-family:PingFangSC-Semibold;font-weight:700;color:#fff}.wrap .card div:nth-of-type(2) i[data-v-7e739166]{font-size:.7rem;font-weight:400}.wrap .card .total[data-v-7e739166]{padding:0 .8rem;height:1.8rem;line-height:1.8rem;color:#c3d7f6;font-size:.7rem}.wrap .methodWrap[data-v-7e739166]{padding:0 .6rem}.wrap .methodWrap .title[data-v-7e739166]{font-size:.7rem;font-family:PingFangSC-Semibold;color:#666;position:relative;margin-top:1.2rem;margin-bottom:.8rem}.wrap .methodWrap .title>div[data-v-7e739166]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;position:absolute;right:.68rem;bottom:0}.wrap .methodWrap .title>div[data-v-7e739166]:after{content:\"\";width:.25rem;height:.4rem;background-image:url(" + escape(__webpack_require__(813)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;right:-.45rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .methodWrap .content .item[data-v-7e739166]{height:3.4rem;line-height:3.4rem;background:#fff;border-radius:.2rem;font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;padding-left:.6rem;position:relative;margin-bottom:.6rem}.wrap .methodWrap .content .item .openBtn[data-v-7e739166]{width:3.7rem;height:1.4rem;line-height:1.4rem;text-align:center;background:-webkit-gradient(linear,left top,right top,from(#377ee1),to(#3a67f7));background:linear-gradient(90deg,#377ee1,#3a67f7);border-radius:.7rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .more[data-v-7e739166]{width:100%;position:absolute;left:0;bottom:1.4rem;text-align:center;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/left_ticket_arrow.0352894.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      giftsInfo: '',
      methodsList: []
    };
  },
  mounted: function mounted() {
    this.share();
    this.getGiftsInfo();
    this.getMethodList();
  },
  methods: {
    /**
     * 跳转到对应的url链接
     */
    openUrl: function openUrl(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'ticketContainer',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 获取会员礼品统计信息
     */
    getGiftsInfo: function getGiftsInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GIFTS_GET_INFO, {
        type: 1
      }, function (data) {
        _this.giftsInfo = data;
      }, function () {}, this);
    },
    /**
     * 进入获券记录页面
     */
    goTicketRecord: function goTicketRecord() {
      this.$router.push({
        name: 'giftTickets'
      });
    },
    /**
     * 获取礼品券方式列表
     */
    getMethodList: function getMethodList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'get_gift_way',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.methodsList = data.dataList;
        }
      }, function () {}, this);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = location.pathname;
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典海量会员礼品，赶紧来领取~',
                  desc: '卡修宝典海量会员礼品，赶紧来领取~',
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"cardwrap"},[_c('div',{staticClass:"card"},[_c('div',[_vm._v("剩余礼品券"),_c('a',{on:{"click":_vm.goTicketRecord}},[_vm._v("获券记录")])]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.giftsInfo.couponCount)),_c('i',[_vm._v(" 张")])]),_vm._v(" "),_c('div',{staticClass:"total"},[_vm._v("累计获得"+_vm._s(_vm.giftsInfo.couponTotalCount)+"张，已使用"+_vm._s(_vm.giftsInfo.couponUseCount)+"张")])])]),_vm._v(" "),_c('div',{staticClass:"methodWrap"},[_c('div',{staticClass:"title"},[_vm._v("\n      获取礼品券方式：\n      ")]),_vm._v(" "),_c('div',{staticClass:"content"},_vm._l((_vm.methodsList),function(v,i){return _c('div',{key:i,staticClass:"item"},[_vm._v("\n        "+_vm._s(v.way_name)+"\n        "),_c('div',{staticClass:"openBtn",on:{"click":function($event){return _vm.openUrl(v.url)}}},[_vm._v(_vm._s(v.button_name))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"more"},[_vm._v("\n    更多礼品券获取方式，敬请期待~\n  ")])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(530);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fcd287dc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1129);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2855)
  __webpack_require__(2857)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-fcd287dc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fcd287dc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fcd287dc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ticketsGot_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2856);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f6a4571e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-fcd287dc]{background-color:#f2f2f2;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:.6rem .4rem 1rem}.wrap .giftList .giftCard[data-v-fcd287dc]{height:7.55rem;background-color:#fff;border-radius:.2rem;margin-bottom:.6rem;padding:.63rem .6rem 0;position:relative}.wrap .giftList .giftCard .top[data-v-fcd287dc]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;padding-bottom:.6rem;border-bottom:1px solid #e6e6e6}.wrap .giftList .giftCard .bottom[data-v-fcd287dc]{margin-top:.8rem}.wrap .giftList .giftCard .bottom>img[data-v-fcd287dc]{float:left;width:3.7rem;height:3.7rem;border-radius:.1rem;background-color:#f0f8ff}.wrap .giftList .giftCard .bottom .rightContent[data-v-fcd287dc]{margin-left:4.3rem}.wrap .giftList .giftCard .bottom .rightContent>p[data-v-fcd287dc]{font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .giftList .giftCard .bottom .rightContent>div[data-v-fcd287dc]{padding:.05rem .2rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#e8541e;background:rgba(233,90,39,.1);border-radius:1px;position:absolute;bottom:.8rem;left:4.9rem}.wrap .giftList .giftCard .logisticsBtn[data-v-fcd287dc]{width:3.6rem;border-radius:.8rem;border:1px solid #377ee1;color:#377ee1;padding:.2rem 0;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;position:absolute;top:.5rem;right:.6rem;text-align:center}.wrap .logisticsPopup[data-v-fcd287dc]{width:100%;background-color:#fff;height:20.2rem}.wrap .logisticsPopup .title[data-v-fcd287dc]{height:2.4rem;line-height:2.4rem;text-align:center;background-color:#fff;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;border-bottom:1px solid #e0e0e0}.wrap .logisticsPopup .body .tips[data-v-fcd287dc]{height:1.6rem;line-height:1.6rem;width:100%;background-color:#fceee9;color:#e8541e;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;text-align:center}.wrap .logisticsPopup .body .detail[data-v-fcd287dc]{padding:0 .6rem}.wrap .logisticsPopup .body .detail .row[data-v-fcd287dc]{height:2.58rem;line-height:2.58rem;overflow:hidden;border-bottom:1px solid #e6e6e6;position:relative}.wrap .logisticsPopup .body .detail .row>div[data-v-fcd287dc]:first-of-type{font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;float:left}.wrap .logisticsPopup .body .detail .row>div[data-v-fcd287dc]:nth-of-type(2){margin-left:4.6rem;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .logisticsPopup .body .detail .row .copy[data-v-fcd287dc]{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.35rem;border-radius:.61rem;border:1px solid #377ee1;text-align:center;padding:.15rem 0 .13rem;font-size:.55rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;line-height:1.5;box-sizing:content-box}.wrap .logisticsPopup .bottom[data-v-fcd287dc]{position:absolute;bottom:0;left:0;width:100%;height:2.45rem;line-height:2.45rem;text-align:center;background-color:#377ee1;font-size:.9rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2858);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("77e88e1b", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-toast{z-index:30000}.ticketsGot .mescroll-empty{padding-top:3.48rem!important}.ticketsGot .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#666!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      logisticsNum: '',
      logisticsChannel: '',
      showLogistics: false,
      mescroll: null,
      giftList: []
    };
  },
  watch: {
    showLogistics: function showLogistics(val) {
      if (!val) {
        this.logisticsNum = '';
        this.logisticsChannel = '';
      }
    }
  },
  mounted: function mounted() {
    this.share();
    this.mescroll = new _mescroll.default(this.$refs.ticketsGot, {
      down: {
        use: false
      },
      up: {
        callback: this.getGiftList,
        auto: true,
        page: {
          num: 0,
          // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
          size: 10 // 每页数据条数,默认10
        },
        htmlNodata: '',
        noMoreSize: 5,
        // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
        empty: {
          // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
          warpId: 'giftList',
          // 父布局的id (1.3.5版本支持传入dom元素)
          tip: '暂无已领礼品记录' // 提示
        },
        warpId: 'loadWarp'
      }
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  methods: {
    /**
     * 查看物流
     * @param{giftInfo}: 当前礼品的物流信息
     */
    clickLogistics: function clickLogistics(giftInfo) {
      if (!giftInfo.expressNo) {
        (0, _mintUi.MessageBox)({
          title: ' ',
          message: "<p style=\"text-align:center;font-size: 0.9rem;color: #333;\">\u5305\u88F9\u592A\u591A\u4E86\uFF0C\u5C0F\u8F68\u6B63\u5728\u52A0\u6025\u8054\u7CFB\u5FEB\u9012\u5458\u4E0A\u4F20\u5FEB\u9012\u5355\u53F7</p>",
          showConfirmButton: true,
          confirmButtonText: '我知道了',
          confirmButtonClass: 'confirmBtn',
          closeOnClickModal: false
        });
      } else {
        this.logisticsChannel = giftInfo.expressChannel;
        this.logisticsNum = giftInfo.expressNo;
        this.showLogistics = true;
      }
    },
    /**
     * 复制快递单号
     */
    onCopy: function onCopy(e) {
      (0, _mintUi.Toast)({
        message: '复制成功',
        position: 'middle',
        duration: 1500
      });
    },
    /**
     * 复制失败的回调
     */
    onError: function onError(e) {
      (0, _mintUi.Toast)({
        message: '复制失败',
        position: 'middle',
        duration: 1500
      });
    },
    /**
     * 获取相关礼品列表
     */
    getGiftList: function getGiftList(page) {
      var _this = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GIFT_RECEIVE_LIST, {
        pageNum: page.num,
        pageSize: page.size
      }, function (data) {
        if (page.num === 1) {
          _this.giftList = [];
        }
        _this.giftList = _this.giftList.concat(data);
        _this.$nextTick(function () {
          _this.mescroll.endSuccess(data.length);
        });
      }, function () {
        _this.mescroll.endErr();
      }, this, true);
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = location.pathname;
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典海量会员礼品，赶紧来领取~',
                  desc: '卡修宝典海量会员礼品，赶紧来领取~',
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"ticketsGot",staticClass:"wrap ticketsGot"},[_c('div',{staticClass:"giftList",attrs:{"id":"giftList"}},[_vm._l((_vm.giftList),function(v,i){return _c('div',{key:i,staticClass:"giftCard"},[_c('div',{staticClass:"top"},[_vm._v("\n        "+_vm._s(v.createTime)+"\n      ")]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('img',{attrs:{"src":v.imgPath,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('p',[_vm._v(_vm._s(v.giftName))]),_vm._v(" "),(v.subtitle)?_c('div',[_vm._v(_vm._s(v.subtitle))]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"logisticsBtn",on:{"click":function($event){return _vm.clickLogistics(v)}}},[_vm._v("查看物流")])])}),_vm._v(" "),_c('div',{attrs:{"id":"loadWarp"}})],2),_vm._v(" "),_c('mt-popup',{staticClass:"logisticsPopup",attrs:{"position":"bottom"},model:{value:(_vm.showLogistics),callback:function ($$v) {_vm.showLogistics=$$v},expression:"showLogistics"}},[_c('div',{staticClass:"title"},[_vm._v("物流信息")]),_vm._v(" "),_c('div',{staticClass:"body"},[_c('div',{staticClass:"tips"},[_vm._v("小轨暂不支持直接显示物流进度，还请谅解")]),_vm._v(" "),_c('div',{staticClass:"detail"},[_c('div',{staticClass:"row"},[_c('div',[_vm._v("状态")]),_vm._v(" "),_c('div',[_vm._v("已发货")])]),_vm._v(" "),_c('div',{staticClass:"row"},[_c('div',[_vm._v("承运公司")]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.logisticsChannel))])]),_vm._v(" "),_c('div',{staticClass:"row"},[_c('div',[_vm._v("快递单号")]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.logisticsNum))]),_vm._v(" "),_c('div',{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:(_vm.logisticsNum),expression:"logisticsNum",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:(_vm.onCopy),expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:(_vm.onError),expression:"onError",arg:"error"}],staticClass:"copy"},[_vm._v("复制")])])])]),_vm._v(" "),_c('div',{staticClass:"bottom",on:{"click":function($event){_vm.showLogistics=false}}},[_vm._v("\n      确认\n    ")])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(531);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6fb88b58_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1130);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2859)
  __webpack_require__(2861)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6fb88b58"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6fb88b58_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6fb88b58_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2860);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("884d8d3a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-6fb88b58]{overflow-x:hidden;background-color:#fff;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.wrap .main[data-v-6fb88b58]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.wrap .main .topInfo[data-v-6fb88b58]{height:16.98rem}.wrap .main .topInfo .giftImg[data-v-6fb88b58]{height:10rem;background-color:#fff}.wrap .main .topInfo .giftImg img[data-v-6fb88b58]{width:100%;height:100%}.wrap .main .topInfo .giftDetail[data-v-6fb88b58]{padding:.8rem .6rem;position:relative}.wrap .main .topInfo .giftDetail .title[data-v-6fb88b58]{font-size:1.05rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333}.wrap .main .topInfo .giftDetail .subTitle[data-v-6fb88b58]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;margin-top:.1rem}.wrap .main .topInfo .giftDetail .price[data-v-6fb88b58]{margin-top:.8rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#999}.wrap .main .topInfo .giftDetail .noCost[data-v-6fb88b58]{background:#d7e6f9;color:#377ee1}.wrap .main .topInfo .giftDetail .cost[data-v-6fb88b58],.wrap .main .topInfo .giftDetail .noCost[data-v-6fb88b58]{height:1.1rem;padding-left:.4rem;padding-right:.4rem;border-radius:.05rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;position:absolute;bottom:.8rem;right:.6rem}.wrap .main .topInfo .giftDetail .cost[data-v-6fb88b58]{background:#fceee9;color:#e8541e}.wrap .main .giftIntro[data-v-6fb88b58]{border-top:.4rem solid #f2f2f2;padding:1.2rem .6rem 3.5rem}.wrap .main .giftIntro .title[data-v-6fb88b58]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333}.wrap .main .giftIntro .htmlWrap[data-v-6fb88b58]{margin-top:.6rem}.wrap .bottomWrap[data-v-6fb88b58]{height:3rem;background-color:#fff;border-top:1px solid #ddd;position:relative}.wrap .bottomWrap .leftBtn[data-v-6fb88b58]{left:.6rem;width:32%;background-color:#fff;color:#377ee1}.wrap .bottomWrap .leftBtn[data-v-6fb88b58],.wrap .bottomWrap .rightBtn[data-v-6fb88b58]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);height:2.2rem;line-height:2.2rem;box-sizing:content-box;text-align:center;border-radius:.1rem;border:.05rem solid #377ee1;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400}.wrap .bottomWrap .rightBtn[data-v-6fb88b58]{right:.6rem;width:57%;background:#377ee1;color:#fff}.wrap .bottomWrap .disable[data-v-6fb88b58]{background-color:#c3c3c3;color:#fff;border-color:#c3c3c3}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2862);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("683e7417", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".giftDetail .giftIntro .htmlWrap img{max-width:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      giftDetail: ''
    };
  },
  mounted: function mounted() {
    this.getGiftDetail();
  },
  methods: {
    /**
     * 加入礼品篮
     */
    addToTrolley: function addToTrolley() {
      var _this = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GIFT_ADD_TROLLEY, {
        id: this.giftDetail.id
      }, function (data) {
        if (data === 200) {
          (0, _mintUi.Toast)({
            message: '成功加入礼品篮',
            position: 'middle',
            duration: 1500
          });
        } else if (data === 1) {
          (0, _mintUi.Toast)({
            message: '您已领取该礼品',
            position: 'middle',
            duration: 1500
          });
          _this.getGiftDetail();
        } else if (data === 2) {
          (0, _mintUi.Toast)({
            message: '该礼品暂无库存',
            position: 'middle',
            duration: 1500
          });
          _this.getGiftDetail();
        } else if (data === 3) {
          (0, _mintUi.Toast)({
            message: '该礼品已加入过礼品篮',
            position: 'middle',
            duration: 1500
          });
          _this.getGiftDetail();
        }
      }, function () {}, this);
    },
    /**
     * 获取礼品基本信息
     */
    getGiftDetail: function getGiftDetail() {
      var _this2 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GIFT_GET_DETAIL, {
        id: this.$route.query.giftid
      }, function (data) {
        if (data.status === 0) {
          _this2.$router.replace({
            name: 'memberMyGift'
          });
        }
        _this2.giftDetail = data;
        _this2.share();
      }, function () {}, this);
    },
    /**
     * 进入我的礼品篮
     */
    goTrolley: function goTrolley() {
      // this.$router.push({
      //   name: 'ticketBasket'
      // })

      location.href = location.origin + '/v2/shopping/ticketBasket';
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = "/v2/member/center/per/giftDetail?giftid=".concat(that.$route.query.giftid);
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: "\u6211\u9886\u53D6\u4E86".concat(that.giftDetail.giftName),
                  desc: '卡修宝典海量会员礼品，赶紧来领取~',
                  link: location.origin + pathName,
                  imgUrl: that.giftDetail.imgPath || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: "\u6211\u9886\u53D6\u4E86".concat(that.giftDetail.giftName),
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: that.giftDetail.imgPath || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: "\u6211\u9886\u53D6\u4E86".concat(that.giftDetail.giftName),
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: that.giftDetail.imgPath || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: "\u6211\u9886\u53D6\u4E86".concat(that.giftDetail.giftName),
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: that.giftDetail.imgPath || 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap giftDetail"},[_c('div',{staticClass:"main"},[_c('div',{staticClass:"topInfo"},[_c('div',{staticClass:"giftImg"},[_c('img',{attrs:{"src":_vm.giftDetail.imgPath,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"giftDetail"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.giftDetail.giftName))]),_vm._v(" "),(_vm.giftDetail.subtitle)?_c('div',{staticClass:"subTitle"},[_vm._v("\n          "+_vm._s(_vm.giftDetail.subtitle)+"\n        ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"price"},[_vm._v("原价：￥"+_vm._s(_vm.giftDetail.price))]),_vm._v(" "),(_vm.giftDetail.isCoupon===0)?_c('div',{staticClass:"noCost"},[_vm._v("不消耗礼品券")]):_c('div',{staticClass:"cost"},[_vm._v("消耗礼品券 1 张")])])]),_vm._v(" "),(_vm.giftDetail.details)?_c('div',{staticClass:"giftIntro"},[_c('div',{staticClass:"title"},[_vm._v("\n        礼品简介\n      ")]),_vm._v(" "),_c('div',{staticClass:"htmlWrap",domProps:{"innerHTML":_vm._s(_vm.giftDetail.details)}})]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"bottomWrap"},[_c('div',{staticClass:"leftBtn",on:{"click":_vm.goTrolley}},[_vm._v("我的礼品篮")]),_vm._v(" "),(_vm.giftDetail.status===200)?_c('div',{staticClass:"rightBtn",on:{"click":_vm.addToTrolley}},[_vm._v("加入礼品篮")]):(_vm.giftDetail.status===1)?_c('div',{staticClass:"rightBtn disable"},[_vm._v("本礼品您已领取")]):(_vm.giftDetail.status===2)?_c('div',{staticClass:"rightBtn disable"},[_vm._v("本礼品暂无库存")]):_vm._e()])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(532);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3239fb26_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1131);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2863)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3239fb26"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3239fb26_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3239fb26_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ticketBasket_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2864);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7ce19322", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-3239fb26]{height:100%;background-color:#f2f2f2;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:.6rem;padding-left:.4rem;padding-right:.4rem}.wrap .giftCard[data-v-3239fb26]{background-color:#fff;border-radius:.2rem;padding:.8rem .6rem 1rem;margin-bottom:.6rem}.wrap .giftCard .title[data-v-3239fb26]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333}.wrap .giftCard .giftList .item[data-v-3239fb26]{height:7rem;padding-top:1rem;position:relative;overflow:hidden;border-bottom:1px solid #eee}.wrap .giftCard .giftList .item>img[data-v-3239fb26]{float:left;width:5rem;height:5rem;background-color:#f0f8ff;object-fit:cover}.wrap .giftCard .giftList .item .rightContent[data-v-3239fb26]{margin-left:5.6rem}.wrap .giftCard .giftList .item .rightContent>p[data-v-3239fb26]{color:#333;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.wrap .giftCard .giftList .item .rightContent .cost[data-v-3239fb26]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545;position:absolute;bottom:1.2rem;left:5.6rem}.wrap .giftCard .giftList .item .rightContent .remove[data-v-3239fb26]{position:absolute;right:.6rem;bottom:1.1rem;width:3.6rem;border-radius:.7rem;border:1px solid #ee4545;color:#ee4545;padding:.2rem 0;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;text-align:center}.wrap .giftCard .ticketDetail[data-v-3239fb26]{padding-top:1rem}.wrap .giftCard .ticketDetail>div[data-v-3239fb26]{overflow:hidden}.wrap .giftCard .ticketDetail>div .name[data-v-3239fb26]{float:left;font-size:.8rem;font-family:P ingFangSC-Regular;font-weight:400;color:#666}.wrap .giftCard .ticketDetail>div .num[data-v-3239fb26]{float:right;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.wrap .giftCard .ticketDetail .costTickets[data-v-3239fb26]{margin-bottom:.6rem}.wrap .giftCard .ticketDetail .costTickets>div[data-v-3239fb26]{color:#ee4545}.wrap .userCard[data-v-3239fb26]{background-color:#fff;border-radius:.2rem;padding:.8rem .6rem 1rem;margin-bottom:.6rem}.wrap .userCard .title[data-v-3239fb26]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;position:relative}.wrap .userCard .title>span[data-v-3239fb26]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1;position:absolute;bottom:0;right:.4rem;line-height:1}.wrap .userCard .title>span[data-v-3239fb26]:after{content:\"\";width:.25rem;height:.4rem;background-image:url(" + escape(__webpack_require__(813)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:50%;right:-.45rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .userCard .info[data-v-3239fb26]{margin-top:1rem}.wrap .userCard .info .userName[data-v-3239fb26]{font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;margin-bottom:.2rem}.wrap .userCard .info .city[data-v-3239fb26],.wrap .userCard .info .street[data-v-3239fb26]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.wrap .sendMethod[data-v-3239fb26]{background-color:#fff;border-radius:.2rem;padding:.8rem .6rem 1rem;margin-bottom:.6rem}.wrap .sendMethod .title[data-v-3239fb26]{font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;position:relative}.wrap .sendMethod .title>span[data-v-3239fb26]{right:.5rem;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.wrap .sendMethod .title>span.arrow[data-v-3239fb26]:after,.wrap .sendMethod .title>span[data-v-3239fb26]{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .sendMethod .title>span.arrow[data-v-3239fb26]:after{content:\"\";width:.25rem;height:.4rem;background-image:url(" + escape(__webpack_require__(147)) + ");background-repeat:no-repeat;background-size:100%;right:-.45rem}.wrap .sendMethod .main[data-v-3239fb26]{margin-top:.8rem;margin-bottom:1rem;border-top:1px solid #eee;height:4rem;position:relative;overflow:hidden}.wrap .sendMethod .main>div[data-v-3239fb26]:first-of-type{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:0}.wrap .sendMethod .main>div:first-of-type > p[data-v-3239fb26]:nth-of-type(1){font-size:.8rem;font-family:P ingFangSC-Regular;font-weight:400;color:#ee4545}.wrap .sendMethod .main>div:first-of-type > p[data-v-3239fb26]:nth-of-type(2){margin-top:.1rem;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.wrap .sendMethod .main>div[data-v-3239fb26]:nth-of-type(2){position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:0;font-size:.6rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545}.wrap .sendMethod .main>div:nth-of-type(2) span[data-v-3239fb26]{font-size:1.4rem;font-family:PingFangSC-Semibold;font-weight:600;margin-right:.3rem}.wrap .sendMethod .getBtn[data-v-3239fb26]{width:15.95rem;height:2.2rem;text-align:center;line-height:2.2rem;border-radius:.1rem;background-color:#377ee1;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;margin:0 auto .6rem}.wrap .sendMethod .disable[data-v-3239fb26]{background-color:#999}.wrap .sendMethod .tips p[data-v-3239fb26]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;text-align:center}.wrap .giftExplain[data-v-3239fb26]{background-color:#fff;border-radius:.2rem;padding:.8rem .6rem 1rem;margin-bottom:.6rem}.wrap .giftExplain .title[data-v-3239fb26]{font-size:.9rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333}.wrap .giftExplain .htmlWrap[data-v-3239fb26]{margin-top:1rem}.wrap .expressMethodPopup[data-v-3239fb26]{width:65%;min-height:4rem;padding:.8rem .5rem 1.5rem;border-radius:.2rem}.wrap .expressMethodPopup .title[data-v-3239fb26]{color:#333;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;text-align:center;margin-bottom:1.2rem}.wrap .expressMethodPopup .content[data-v-3239fb26]{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.wrap .expressMethodPopup .content>div[data-v-3239fb26]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font-size:.7rem;font-family:PingFangSC-Regular;color:#333}.wrap .expressMethodPopup .content>div>img[data-v-3239fb26]{width:1rem;height:1rem;margin-right:.5rem}.loading[data-v-3239fb26]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;text-align:center;padding-top:4rem}.success[data-v-3239fb26]{text-align:center;padding-top:6rem}.success img[data-v-3239fb26]{width:2.53rem;height:2.53rem;margin-bottom:.45rem}.success p[data-v-3239fb26]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#ee4545}.noGifts[data-v-3239fb26]{text-align:center;padding-top:6.45rem}.noGifts img[data-v-3239fb26]{width:3.1rem;height:2.25rem;margin-bottom:.28rem}.noGifts p[data-v-3239fb26]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333}.noGifts div[data-v-3239fb26]{margin:2.65rem auto 0;width:8.2rem;height:2rem;line-height:2rem;text-align:center;border-radius:1.1rem;border:1px solid #377ee1;font-size:.8rem;font-family:PingFangSC-Regular;font-weight:400;color:#377ee1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  data: function data() {
    return {
      showExpressType: false,
      dataInit: false,
      isSuccess: false,
      htmlContent: '这里是礼品领取说明',
      trolleyDetail: '',
      expressType: 1 // 1: 寄付  2：到付
    };
  },
  mounted: function mounted() {
    this.share();
    this.getTrolleyDetail();
  },
  methods: {
    /** 获取用户状态 */getUserStatus: function getUserStatus() {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.post(_this._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this);
      });
    },
    /** 支付接口 */
    submitOrder: (0, _throttleDebounce.throttle)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(type) {
        var _this2 = this;
        var userData;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (this.trolleyDetail.receiptAddress) {
                _context.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '请先选择地址',
                position: 'middle',
                duration: 1500
              });
              return _context.abrupt("return");
            case 1:
              _context.next = 2;
              return this.getUserStatus();
            case 2:
              userData = _context.sent;
              if (!(userData.userStatus == 0)) {
                _context.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '认证提示',
                message: '您当前还未认证， 认证享受更多功能',
                confirmButtonText: '去认证',
                showCancelButton: true,
                cancelButtonText: '暂不认证'
              }).then(function (action) {
                if (action === 'confirm') {
                  _this2.$router.replace({
                    name: 'personalCertification',
                    query: {
                      from: 'ticketBasket'
                    }
                  });
                }
              });
              return _context.abrupt("return");
            case 3:
              this._Util.post(this._Api.POST_MEMBERSHIP_GIFT_SUBMIT_ORDER, {
                expressType: this.expressType
              }, function (data) {
                if (data.status === 500) {
                  (0, _mintUi.MessageBox)({
                    title: '提示',
                    message: data.msg
                  });
                  _this2.getTrolleyDetail();
                  return;
                }
                if (data.jsApiParameters) {
                  _this2._Util.wxPay(data.jsApiParameters, function () {
                    _this2.isSuccess = true;
                    (0, _mintUi.Toast)({
                      message: '支付成功',
                      position: 'bottom',
                      duration: 1500
                    });
                  });
                } else {
                  _this2.isSuccess = true;
                  (0, _mintUi.Toast)({
                    message: '领取成功',
                    position: 'bottom',
                    duration: 1500
                  });
                }
              }, function () {}, this);
            case 4:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 打开邮寄方式选择框
     */
    openExpressBox: function openExpressBox() {
      if (this.trolleyDetail.isPackageMail === 1) return;
      this.showExpressType = true;
    },
    /**
     * 改变运送方式
     * @param{type}: 1:寄付  2:到付
     */
    changeExpressType: function changeExpressType(type) {
      this.expressType = type;
      this.showExpressType = false;
    },
    /**
     * 移除礼品
     * @param{giftInfo}: 礼品信息
     */
    removeGift: function removeGift(giftInfo) {
      var _this3 = this;
      (0, _mintUi.MessageBox)({
        title: '删除',
        message: '确定执行此操作?',
        showCancelButton: true
      }).then(function (action) {
        if (action === 'confirm') {
          _this3._Util.post(_this3._Api.POST_MEMBERSHIP_GIFT_REMOVE_TROLLEY, {
            id: giftInfo.id
          }, function (data) {
            (0, _mintUi.Toast)({
              message: '移除成功',
              position: 'middle',
              duration: 1500
            });
            _this3.getTrolleyDetail();
          }, function () {}, _this3);
        }
      });
    },
    /**
     * 进入礼品列表页
     */
    goGiftList: function goGiftList() {
      this.$router.replace({
        name: 'memberMyGift'
      });
    },
    /**
     * 获取礼品篮详情
     */
    getTrolleyDetail: function getTrolleyDetail() {
      var _this4 = this;
      this._Util.post(this._Api.POST_MEMBERSHIP_GIFT_TROLLEY_DETAIL, {}, function (data) {
        // 页面显示时， 默认邮寄方式的判断
        // 后续用户的切换判断 会在具体的点击事件中进行
        if (data.isPackageMail === 1) {
          // 包邮
          _this4.expressType = 1;
        } else if (data.depositPrice === -1) {
          // 不支持 寄付
          _this4.expressType = 2;
        }
        _this4.dataInit = true;
        _this4.trolleyDetail = data;
      }, function () {}, this);
    },
    /**
     * 进入我的收货地址
     */
    goLocationList: function goLocationList() {
      this.$router.push({
        name: 'locationList'
      });
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        var pathName = location.pathname;
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典海量会员礼品，赶紧来领取~',
                  desc: '卡修宝典海量会员礼品，赶紧来领取~',
                  link: location.origin + pathName,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典海量会员礼品，赶紧来领取~',
              desc: '卡修宝典海量会员礼品，赶紧来领取~',
              link: location.origin + pathName,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  },
  components: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.dataInit)?_c('div',{staticClass:"loading"},[_vm._v("\n  数据加载中...\n")]):(_vm.isSuccess)?_c('div',{staticClass:"success"},[_c('img',{attrs:{"src":__webpack_require__(2865),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("领取礼品成功")])]):(_vm.trolleyDetail.giftVoList.length>0)?_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"giftCard"},[_c('div',{staticClass:"title"},[_vm._v("礼品列表")]),_vm._v(" "),(_vm.trolleyDetail.giftVoList)?_c('div',{staticClass:"giftList"},_vm._l((_vm.trolleyDetail.giftVoList),function(v,i){return _c('div',{key:i,staticClass:"item"},[_c('img',{attrs:{"src":v.imgPath,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('p',[_vm._v(_vm._s(v.giftName))]),_vm._v(" "),_c('div',{staticClass:"cost"},[_vm._v(_vm._s(v.isCoupon===1?'消耗礼品券 1 张':'不消耗礼品券'))]),_vm._v(" "),_c('div',{staticClass:"remove",on:{"click":function($event){return _vm.removeGift(v)}}},[_vm._v("移除")])])])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"ticketDetail"},[_c('div',{staticClass:"costTickets"},[_c('div',{staticClass:"name"},[_vm._v("消耗礼品券")]),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v(_vm._s(_vm.trolleyDetail.consumeCount)+"张")])]),_vm._v(" "),_c('div',{staticClass:"leftTickets"},[_c('div',{staticClass:"name"},[_vm._v("当前剩余礼品券")]),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v(_vm._s(_vm.trolleyDetail.couponCount)+"张")])])])]),_vm._v(" "),_c('div',{staticClass:"userCard"},[_c('div',{staticClass:"title"},[_vm._v("\n      收货地址\n      "),_c('span',{on:{"click":_vm.goLocationList}},[_vm._v("更换收货地址")])]),_vm._v(" "),(_vm.trolleyDetail.receiptAddress)?_c('div',{staticClass:"info"},[_c('div',{staticClass:"userName"},[_vm._v(_vm._s(_vm.trolleyDetail.receiptAddress.receiptName + ' ' + _vm.trolleyDetail.receiptAddress.receiptPhone))]),_vm._v(" "),_c('div',{staticClass:"city"},[_vm._v(_vm._s(_vm.trolleyDetail.receiptAddress.province)+" "+_vm._s(_vm.trolleyDetail.receiptAddress.city)+" "+_vm._s(_vm.trolleyDetail.receiptAddress.dist))]),_vm._v(" "),_c('div',{staticClass:"street"},[_vm._v(_vm._s(_vm.trolleyDetail.receiptAddress.address))])]):_c('div',{staticClass:"info"},[_vm._v("请选择收货地址")])]),_vm._v(" "),(_vm.expressType===1)?_c('div',{staticClass:"sendMethod"},[_c('div',{staticClass:"title"},[_vm._v("\n      邮寄方式\n      "),_c('span',{class:{'arrow': _vm.trolleyDetail.isPackageMail===0},on:{"click":_vm.openExpressBox}},[_vm._v("寄付")])]),_vm._v(" "),_c('div',{staticClass:"main"},[_vm._m(0),_vm._v(" "),_c('div',[_c('span',[_vm._v(_vm._s(_vm.trolleyDetail.depositPrice))]),_vm._v("元\n      ")])]),_vm._v(" "),(_vm.trolleyDetail.receiptAddress)?_c('div',{staticClass:"getBtn",on:{"click":_vm.submitOrder}},[_vm._v("确认领取（支付"+_vm._s(_vm.trolleyDetail.depositPrice)+"元运费）")]):_c('div',{staticClass:"getBtn disable",on:{"click":_vm.submitOrder}},[_vm._v("确认领取")]),_vm._v(" "),_c('div',{staticClass:"tips"},[_c('p',[_vm._v(_vm._s(_vm.trolleyDetail.depositRemarks))])])]):_vm._e(),_vm._v(" "),(_vm.expressType===2)?_c('div',{staticClass:"sendMethod"},[_c('div',{staticClass:"title"},[_vm._v("\n      邮寄方式\n      "),_c('span',{staticClass:"arrow",on:{"click":_vm.openExpressBox}},[_vm._v("到付")])]),_vm._v(" "),_c('div',{staticClass:"main"},[_vm._m(1),_vm._v(" "),_c('div',[_c('span',[_vm._v(_vm._s(_vm.trolleyDetail.collectPrice))]),_vm._v("元\n      ")])]),_vm._v(" "),(_vm.trolleyDetail.receiptAddress)?_c('div',{staticClass:"getBtn",on:{"click":_vm.submitOrder}},[_vm._v("确认领取")]):_c('div',{staticClass:"getBtn disable",on:{"click":_vm.submitOrder}},[_vm._v("确认领取")]),_vm._v(" "),_c('div',{staticClass:"tips"},[_c('p',[_vm._v(_vm._s(_vm.trolleyDetail.collectRemarks))])])]):_vm._e(),_vm._v(" "),(_vm.trolleyDetail.giftExplain)?_c('div',{staticClass:"giftExplain"},[_c('div',{staticClass:"title"},[_vm._v("礼品领取说明")]),_vm._v(" "),_c('div',{staticClass:"htmlWrap",domProps:{"innerHTML":_vm._s(_vm.trolleyDetail.giftExplain)}})]):_vm._e(),_vm._v(" "),_c('mt-popup',{staticClass:"expressMethodPopup",attrs:{"popup-transition":"popup-fade"},model:{value:(_vm.showExpressType),callback:function ($$v) {_vm.showExpressType=$$v},expression:"showExpressType"}},[_c('div',{staticClass:"title"},[_vm._v("\n      选择邮寄方式\n    ")]),_vm._v(" "),_c('div',{staticClass:"content"},[(_vm.trolleyDetail.depositPrice!==-1)?_c('div',{on:{"click":function($event){return _vm.changeExpressType(1)}}},[(_vm.expressType===1)?_c('img',{attrs:{"src":__webpack_require__(1628),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(823),"alt":""}}),_vm._v("\n        寄付\n      ")]):_vm._e(),_vm._v(" "),(_vm.trolleyDetail.collectPrice!==-1)?_c('div',{on:{"click":function($event){return _vm.changeExpressType(2)}}},[(_vm.expressType===1)?_c('img',{attrs:{"src":__webpack_require__(823),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(1628),"alt":""}}),_vm._v("\n        到付\n      ")]):_vm._e()])])],1):_c('div',{staticClass:"noGifts"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/gift/no_gift.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("您还没有添加礼品")]),_vm._v(" "),_c('div',{on:{"click":_vm.goGiftList}},[_vm._v("添加礼品")])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('p',[_vm._v("应付邮费")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('p',[_vm._v("应付邮费")]),_vm._v(" "),_c('p',[_vm._v("收到快递时支付给快递员")])])}]
module.exports = __webpack_require__.p + "static/img/gift_receive_success.59ebc9d.png";module.exports = __webpack_require__.p + "static/img/location_checked.baeda93.png";module.exports = __webpack_require__.p + "static/img/location_uncheck.3e4c1d4.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(533);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1382657d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1132);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2866)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1382657d"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1382657d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1382657d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_locationList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2867);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2d76084e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-1382657d]{height:100%;background-color:#edf6fe;overflow:auto;-webkit-overflow-scrolling:touch;padding:.6rem .4rem 3rem}.wrap .locationList .card[data-v-1382657d]{background-color:#fff;border:1px solid #fff;border-radius:.3rem;margin-bottom:.6rem;padding:0 .8rem}.wrap .locationList .card .detail[data-v-1382657d]{border-bottom:1px solid #eee;position:relative;padding:.8rem 0}.wrap .locationList .card .detail img[data-v-1382657d]{width:1rem;height:1rem;position:absolute;left:.2rem;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wrap .locationList .card .detail .rightContent[data-v-1382657d]{margin-left:1.8rem}.wrap .locationList .card .detail .rightContent>p[data-v-1382657d]:first-of-type{font-size:.8rem;font-family:PingFangSC-Semibold;font-weight:700;color:#333;margin-bottom:.2rem}.wrap .locationList .card .detail .rightContent>p[data-v-1382657d]:nth-of-type(2),.wrap .locationList .card .detail .rightContent>p[data-v-1382657d]:nth-of-type(3){font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666}.wrap .locationList .card .bottom[data-v-1382657d]{height:1.8rem;overflow:hidden;position:relative}.wrap .locationList .card .bottom[data-v-1382657d]:after{content:\"\";width:1px;height:1rem;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#eee}.wrap .locationList .card .bottom>div[data-v-1382657d]{width:50%;text-align:center;float:left;font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#666;line-height:1.8rem}.wrap .locationList .card .bottom>div img[data-v-1382657d]{width:.65rem;height:.65rem;margin-right:.28rem;vertical-align:baseline;position:relative;top:1px}.wrap .locationList .active[data-v-1382657d]{border-color:#0f75ff}.wrap .addLocation[data-v-1382657d]{position:fixed;left:5%;bottom:10px;width:90%;background-color:#fff;border-top:1px solid #ddd}.wrap .addLocation div[data-v-1382657d]{border-radius:.2rem;text-align:center;height:2.2rem;line-height:2.2rem;font-size:.85rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;background-color:#0f75ff}.input-box[data-v-1382657d]{position:relative;margin-bottom:10px}.input-box i[data-v-1382657d]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:.58rem;left:.5rem}.input-box input[data-v-1382657d]{background:#fff;height:2rem;border-radius:20px;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;-webkit-transition:.3s;transition:.3s}.input-box input.input-animate[data-v-1382657d]{width:-webkit-calc(100% - 4.2rem);width:calc(100% - 4.2rem)}.input-box input[data-v-1382657d]::-webkit-input-placeholder{color:#999;font-size:15px}.input-box button[data-v-1382657d]{margin-left:.6rem;width:3.6rem;height:2rem;line-height:2rem;color:#fff;background:#177afa;border-radius:4px;font:15px PingFangSC-Regular;position:absolute;top:0;right:-300px;-webkit-transition:all .3s ease;transition:all .3s ease}.input-box button.animate[data-v-1382657d]{right:0}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/search.5df257e.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      addressList: [],
      dataInit: false,
      current: 1,
      size: 10,
      type: '',
      keyWord: '',
      isFocus: false
    };
  },
  mounted: function mounted() {
    var that = this;
    this.type = this._Util.getParaValueByName('type');
    this.getAddressList();
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '我的收货地址',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '我的收货地址,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
     * 输入框失去焦点
     */
    inputBlur: function inputBlur() {
      var _this = this;
      this.$nextTick(function () {
        _this.isFocus = false;
      });
    },
    /**
     * 设置默认地址
     * @param{addressInfo}
     */
    setDefaultAddress: function setDefaultAddress(addressInfo) {
      var _this2 = this;
      if (addressInfo.isDefault === 1) {
        return;
      }
      this.addressList.forEach(function (val) {
        val.isDefault = 0;
      });
      addressInfo.isDefault = 1;
      this._Util.post(this._Api.POST_ADDRESS_SAVE_ITEM_DETAIL, {
        id: addressInfo.id,
        defaultValue: true
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '保存成功',
          position: 'bottom',
          duration: 1500
        });
        _this2.getAddressList();
        // if (this._Util.isMPaaS()) {
        //   // eslint-disable-next-line no-undef
        //   my.navigateBack({
        //     delta: 1
        //   })
        // } else if (this._Util.isMiniApp()) {
        //   // eslint-disable-next-line no-undef
        //   uni.navigateBack({
        //     delta: 1
        //   })
        // } else {
        //   // this.$router.go(-1)
        //   history.go(-1)
        // }
      }, function () {}, this);
    },
    chooseAddr: function chooseAddr(addr) {
      uni.postMessage({
        data: {
          type: 'updataAddr',
          id: addr.id
        }
      });
      uni.navigateBack({
        delta: 1
      });
    },
    /**
     * 获取地址列表
     */
    getAddressList: function getAddressList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_ADDRESS_GET_LIST, {
        current: this.current,
        size: this.size,
        keyWord: this.keyWord
      }, function (data) {
        _this3.addressList = data;
        _this3.dataInit = true;
      }, function () {}, this);
    },
    /**
     * 编辑我的收货地址
     * @param{addressId}: 需要删除的地址id
     */
    editLocation: function editLocation(addressId) {
      this.$router.push({
        name: 'locationEdit',
        query: {
          address_id: addressId || ''
        }
      });
    },
    /** 新增地址 */newLocation: function newLocation() {
      this.$router.push({
        name: 'locationEdit',
        query: {
          addrLength: this.addressList.length
        }
      });
    },
    /**
     * 删除当前地址
     * @param{addressId}: 需要删除的地址id
     */
    delLocation: function delLocation(addressId) {
      var _this4 = this;
      if (this.addressList.length == 1) {
        (0, _mintUi.Toast)({
          message: '无法删除最后一个地址！',
          position: 'center',
          duration: 1500
        });
        return;
      }
      (0, _mintUi.MessageBox)({
        title: ' ',
        message: "<p style=\"text-align:center;padding:0.4rem 0 0.7rem;font-size:1rem;\" >\u786E\u8BA4\u5220\u9664\u8BE5\u5730\u5740?</p>",
        confirmButtonText: '确定',
        showCancelButton: true,
        cancelButtonText: '取消'
      }).then(function (action) {
        if (action === 'confirm') {
          _this4._Util.post(_this4._Api.POST_ADDRESS_DEL_ITEM, {
            ids: addressId
          }, function (data) {
            (0, _mintUi.Toast)({
              message: '删除成功',
              position: 'middle',
              duration: 1500
            });
            _this4.getAddressList();
          }, function () {}, _this4);
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"input-box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyWord),expression:"keyWord",modifiers:{"trim":true}}],class:{'input-animate': _vm.isFocus || _vm.keyWord},attrs:{"type":"text","placeholder":"请输入收货人姓名,手机号或地址进行搜索"},domProps:{"value":(_vm.keyWord)},on:{"focus":function($event){_vm.isFocus = true},"blur":[_vm.inputBlur,function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value.trim()}}}),_vm._v(" "),_c('button',{class:{'animate': _vm.isFocus || _vm.keyWord},on:{"click":function($event){return _vm.getAddressList()}}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{staticClass:"locationList"},[_vm._l((_vm.addressList),function(v,i){return _c('div',{key:i,staticClass:"card",class:{active: v.isDefault===1},on:{"click":function($event){_vm.type==1?_vm.chooseAddr(v):_vm.setDefaultAddress(v)}}},[_c('div',{staticClass:"detail"},[(v.defaultValue===true)?_c('img',{attrs:{"src":__webpack_require__(824),"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(823),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('p',[_vm._v(_vm._s(v.receiveName)+" "+_vm._s(v.receivePhone)+" "),(v.defaultValue===true)?_c('span',{staticStyle:{"font-size":"12px","border":"1px solid #0f75ff","color":"#0f75ff","border-radius":"6px","padding":"0.06rem .1rem","margin-left":".2rem"}},[_vm._v("默认")]):_vm._e()]),_vm._v(" "),_c('p',[_vm._v(_vm._s(v.province)+" "+_vm._s(v.city)+" "+_vm._s(v.district)+" "+_vm._s(v.address))])])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.delLocation(v.id)}}},[_c('img',{attrs:{"src":__webpack_require__(2868),"alt":""}}),_vm._v("\n          删除\n        ")]),_vm._v(" "),_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.editLocation(v.id)}}},[_c('img',{attrs:{"src":__webpack_require__(2869),"alt":""}}),_vm._v("\n          编辑\n        ")])])])}),_vm._v(" "),(_vm.dataInit&&_vm.addressList.length===0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"3rem"}},[_vm._v("\n      还没有收货地址，快去添加一个^_^\n    ")]):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"addLocation"},[_c('div',{on:{"click":_vm.newLocation}},[_vm._v("新增地址")])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/selected1.31eba98.png";module.exports = __webpack_require__.p + "static/img/location_del.4ea7913.png";module.exports = __webpack_require__.p + "static/img/location_edit.c1b8c9a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(534);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_718dbb8a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1133);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2870)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-718dbb8a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_718dbb8a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_718dbb8a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftOrderAudit_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2871);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4e69f065", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak][data-v-718dbb8a]{display:none!important}.gift-order[data-v-718dbb8a]{background:#f2f2f2}.gift-order .gift-order-wrap[data-v-718dbb8a]{background:#f2f2f2;padding:0 .6rem}.gift-order .gift-order-wrap .title[data-v-718dbb8a]{text-align:center;padding:.5rem 0;font:600 18px PingFangSC-Regular;color:#333}.gift-order .gift-order-wrap .item[data-v-718dbb8a]{border-bottom:1px solid #d8d8d8;padding:.8rem 0}.gift-order .gift-order-wrap .item li[data-v-718dbb8a]{padding:.3rem 0;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.gift-order .gift-order-wrap .item li span[data-v-718dbb8a]{font:16px PingFangSC-Regular;color:#666}.gift-order .gift-order-wrap .btn-box[data-v-718dbb8a]{padding:1rem .5rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.gift-order .gift-order-wrap .btn-box span[data-v-718dbb8a]{width:6rem;height:2rem;text-align:center;background:#fff;border-radius:.2rem;color:#97d297;font:16px/2rem PingFangSC-Regular}.gift-order .gift-order-wrap .btn-box span[data-v-718dbb8a]:last-child{color:#ff4242}.gift-order .gift-order-wrap .btn-box div[data-v-718dbb8a]{width:100%;font:16px/2rem PingFangSC-Regular;color:#333;text-align:center}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      id: this.$route.query.orderId,
      detailData: {
        status: 3
      } // status； 0 待审核 1.已驳回 2.已通过 3.不需要审核
    };
  },
  watch: {},
  created: function created() {
    this.getOrderDetail();
  },
  mounted: function mounted() {},
  methods: {
    /**
       * 获取赠品订单详情
       */
    getOrderDetail: function getOrderDetail() {
      var that = this;
      that._Util.post(that._Api.POST_GETGIFT_ORDER_DETAIL, {
        id: that.id
      }, function (data) {
        that.detailData = data;
      }, function () {}, that);
    },
    /**
       * 对赠品订单审核
       * @param {Number} type 审核状态
       */
    auditOrder: function auditOrder(type) {
      var that = this;
      that._Util.post(that._Api.POST_AUDITGIFTORDER, {
        id: that.id,
        status: type // （1通过/2驳回）
      }, function (data) {
        if (type == 1) {
          that.detailData.status = 2;
        } else if (type == 2) {
          that.detailData.status = 1;
        }
      }, function () {}, that);
    },
    /**
       * 算百分比
       * @param {Number} type 审核状态
       */
    perFilter: function perFilter(val) {
      if (val) {
        if (this.detailData.totalQuota) {
          return "(".concat(Math.round(Number(val) / Number(this.detailData.totalQuota) * 10000) / 100.00, "%)");
        } else {
          return '';
        }
      } else {
        return '';
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gift-order"},[_c('div',{staticClass:"gift-order-wrap"},[_c('p',{staticClass:"title"},[_vm._v("赠品订单额度审核")]),_vm._v(" "),_c('ul',{staticClass:"item"},[_c('li',[_c('span',[_vm._v("赠品订单号：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.giftOrderNo || '--'))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("创建时间：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.createTime ? _vm._Util.dateFormat(_vm.detailData.createTime, 'yyyy-MM-dd hh:mm:ss') : '--'))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("消耗总额度：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.totalQuota || '--'))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("客户：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.userName ? (_vm.detailData.userName.length > 10 ? _vm.detailData.userName.substr(0,10) + '...' : _vm.detailData.userName) : '--'))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("手机号：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.uphone || '--'))])])]),_vm._v(" "),_c('ul',{staticClass:"item"},[_c('li',[_c('span',[_vm._v("赠品订单创建人：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.createUser || '--'))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("扣额度销售：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.giftSaleName || '--'))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("金额：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.giftQuota || 0)+_vm._s(_vm.perFilter(_vm.detailData.giftQuota)))])])]),_vm._v(" "),_c('ul',{staticClass:"item"},[_c('li',[_c('span',[_vm._v("共同承担销售：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.commonGiftSaleName || '--'))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("金额：")]),_c('span',[_vm._v(_vm._s(_vm.detailData.commontGiftQuota || 0)+_vm._s(_vm.perFilter(_vm.detailData.commontGiftQuota)))])])]),_vm._v(" "),(_vm.detailData.status != 3)?_c('div',{staticClass:"btn-box"},[(_vm.detailData.status == 0)?[_c('span',{on:{"click":function($event){return _vm.auditOrder(1)}}},[_vm._v("通过")]),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.auditOrder(2)}}},[_vm._v("驳回")])]:_c('div',[_vm._v(_vm._s(_vm.detailData.status == 1 ? '已驳回' : '已通过'))])],2):_vm._e()])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(535);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e8e4e6d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1134);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2872)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e8e4e6d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e8e4e6d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_giftConfirm_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2873);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2dddacbc", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ProvCityBoxBg{z-index:2000000!important;position:fixed!important}.ProvCityBox{z-index:2000001!important}.giftConfirm .note{position:fixed;top:0;bottom:0;left:0;right:0;background:#fff;z-index:1000;text-align:center}.giftConfirm .note p{width:80%;margin:50px auto 30px;font-size:16px;color:#333;text-align:left}.giftConfirm .note div{display:inline-block;width:70%;height:44px;line-height:44px;text-align:center;color:#fff;font-size:16px;margin:0 auto;background:#ee4545;border-radius:4px;-webkit-border-radius:4px}.giftConfirm .banner{height:152px;background:#fff;border-bottom:10px solid #f2f2f2}.giftConfirm .banner img{width:100%;height:142px}.giftConfirm .model{background:#fff;border-top:10px solid #f2f2f2}.giftConfirm .model .tit{height:52px;line-height:52px;position:relative;border-bottom:1px solid #f2f2f2}.giftConfirm .model .tit i{position:absolute;width:4px;height:16px;left:0;top:18px;background:#ee4545}.giftConfirm .model .tit span{display:inline;font-family:PingFangSC-Semibold;font-size:16px;color:#333;padding-left:10px;font-weight:600}.giftConfirm .model .gitList{background:#fff}.giftConfirm .model .gitList li{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;padding:17px 10px}.giftConfirm .model .gitList li i{width:16px;height:16px;border-radius:50%;-webkit-border-radius:50%;background:#e2e2e2;border:1px solid #979797;box-sizing:border-box;-webkit-box-sizing:border-box}.giftConfirm .model .gitList li i.selected{background:url(" + escape(__webpack_require__(1435)) + ") 50% no-repeat;background-size:16px 16px;border:none}.giftConfirm .model .gitList li img{width:80px;height:80px;margin:0 10px}.giftConfirm .model .gitList li div{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;min-height:80px;font-family:PingFangSC-Regular;font-size:18px;color:#333}.giftConfirm .model .gitList .ticketsNum{padding-bottom:.6rem}.giftConfirm .model .gitList .ticketsNum>p:first-of-type{font-family:PingFangSC-Regular;font-size:.8rem;color:#ee4545;text-align:center}.giftConfirm .model .gitList .ticketsNum>p:nth-of-type(2){font-family:PingFangSC-Regular;font-size:.7rem;color:#666;text-align:center;margin-top:.1rem}.giftConfirm .model .userList{padding:0 10px 0 15px}.giftConfirm .model .userList li{border-bottom:1px solid #f2f2f2;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;height:52px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;-webkit-align-items:center}.giftConfirm .model .userList li span{width:70px;font-family:PingFangSC-Regular;font-size:16px;color:#333}.giftConfirm .model .userList li input{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:30px;line-height:30px;font-family:PingFangSC-Regular;font-size:16px;color:#333;text-align:right;overflow:hidden}.giftConfirm .model .userList li.special{position:relative}.giftConfirm .model .userList li.special input{background:url(" + escape(__webpack_require__(814)) + ") 100% no-repeat;background-size:8px 14px;padding-right:13px;text-overflow:ellipsis;white-space:nowrap}.giftConfirm .model .userList li.special .mask{position:absolute;width:100%;height:52px;background:transparent;top:0;left:0;z-index:100}.giftConfirm .model .userList li.address{height:90px;padding:15px 0;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-align-items:flex-start}.giftConfirm .model .userList li.address textarea{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:none;text-align:left;line-height:22px;height:65px}.giftConfirm .model .userList li.address .warning{position:absolute;bottom:2px;left:0;color:#ee4545}.giftConfirm .model .postage{height:40px;line-height:40px;font-family:PingFangSC-Regular;font-size:18px;color:#ee4545;text-align:right;padding-right:10px}.giftConfirm .model .remarks{margin-top:10px;padding:0 10px 0 15px;font-family:PingFangSC-Regular;font-size:16px;color:#333}.giftConfirm .model .getConfirm{background:#ee4545;border-radius:4px;width:94%;height:44px;line-height:44px;text-align:center;color:#fff;font-family:PingFangSC-Regular;font-size:17px;margin:40px auto 30px}.giftConfirm .model .giftinfo{padding:15px;font-family:PingFangSC-Regular;font-size:16px;color:#333}.mint-msgbox{width:80%}.mint-msgbox .mint-msgbox-message,.mint-msgbox .mint-msgbox-title{font-family:PingFangSC-Regular;font-size:20px;color:#353535;font-weight:400}.mint-msgbox .mint-msgbox-message{font-family:PingFangSC-Regular;font-size:18px;color:#353535;font-weight:400;line-height:28px;text-align:center}.mint-msgbox-btns{height:49px;line-height:49px}.mint-msgbox-btn{font-family:PingFangSC-Regular;font-size:18px;color:#ee4545}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arrow_r.ae95c7f.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _vueArea = _interopRequireDefault(__webpack_require__(812));
var _address = _interopRequireDefault(__webpack_require__(2874));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  components: {
    'mt-picker': _mintUi.Picker,
    VueArea: _vueArea.default
  },
  data: function data() {
    return {
      giftType: '',
      // 0: 其他礼品  1: 年费大礼包礼品
      giftCouponCount: 0,
      addressProvince: '',
      addressCity: '',
      addressCounty: '',
      pickershow1: false,
      pickershow2: false,
      giftId: this.$route.query.giftId,
      myAddressSlots: [],
      // showNote: false,  // 显示去续费提示的弹窗
      // noteText: '',
      provinceList: [],
      giftList: [],
      // 囎品列表
      userDetail: {},
      // 用户详细信息
      shippingMethodSlots: [],
      // 邮寄方式picker数据
      note: '',
      // 备注信息
      giftInfo: '',
      // 礼品领取说明
      result: {
        province: {},
        city: {},
        area: {}
      },
      address1Len: 0,
      sendFreight_SF: {},
      // 顺丰寄付规则
      sendFreight_ST: {},
      // 申通寄付规则
      receiveFreight_SF: {},
      // 顺丰到付规则
      receiveFreight_ST: {},
      // 申通到付规则
      freeSendFreight: {},
      freeReceiveFreight: {},
      SF_sendObj: {},
      ST_sendObj: {},
      SF_receiveObj: {},
      ST_receiveObj: {},
      free_sendObj: {},
      free_receiveObj: {},
      isOne: false,
      // 是否只有一个商品选中
      noGift: false,
      // 选中的商品数量是否为0
      oneObj: {},
      // 只有一个商品选中时的那个商品
      sendtype: 1,
      // 邮寄方式，默认寄付
      sendtypeFlag: false,
      addressFlag: false,
      shareTitle: '',
      shareImg: '',
      phoneTest: /^1[3456789]\d{9}$/,
      userName: '',
      // 姓名
      userphone: '',
      // 电话
      addressDetail: '',
      // 详细地址
      addressDetailnew: '',
      userProjectResult: '',
      // 业务范围
      natureResult: '',
      // 门店性质
      shippingMethodsResult: '寄付',
      // 邮寄方式
      price: NaN,
      // 运费总计
      totallWeight: NaN,
      // 赠品重量总计
      show: false
    };
  },
  computed: {
    address1: function address1() {
      return this.addressProvince + this.addressCity + this.addressCounty;
    },
    selectGifts: function selectGifts() {
      var giftIds = [];
      this.giftList.forEach(function (item, index) {
        if (item.flag) {
          giftIds.push(item.id);
        }
      });
      return giftIds.length;
    }
  },
  watch: {
    totallWeight: function totallWeight(nval, oval) {
      var that = this;
      // console.log(nval)
      var province = that.addressFlag ? that.addressProvince : that.userDetail.province || that.addressProvince;
      that.comprice(that.totallWeight, province, that.sendtype, that.isOne);
    },
    shippingMethodsResult: function shippingMethodsResult(nval, oval) {
      var that = this;
      var province = that.addressFlag ? that.addressProvince : that.userDetail.province || that.addressProvince;
      that.noteChange();
      if (nval == '寄付') {
        that.sendtype = 1;
        that.comprice(that.totallWeight, province, 1, that.isOne);
        // that.note = that.send.remark;
      } else {
        that.sendtype = 2;
        that.comprice(that.totallWeight, province, 2, that.isOne);
        // that.note = that.receive.remark;
      }
    },
    addressProvince: function addressProvince(nval, oval) {
      var that = this;
      if (that.addressFlag) {
        that.comprice(that.totallWeight, that.addressProvince, that.sendtype, that.isOne);
      }
    },
    price: function price(nval, oval) {
      if (nval == 0) {
        if (this.sendtype == 1) {
          this.price = 0.01;
        }
      }
    },
    show: function show(nval, oval) {
      if (nval) {
        document.body.style.cssText = 'overflow: hidden;position:fixed;width:100%;height:100%;';
      } else {
        document.body.style.cssText = 'overflow: auto;position:static;width:100%;height:auto;';
      }
    },
    address1: function address1(nval, oval) {
      console.log(nval.length);
      this.address1Len = nval.length;
      // document.title = this.address1Len;
      if (this.addressFlag) {
        this.addressDetailnew = nval;
      }
    }
  },
  created: function created() {
    this.provinceList = ['北京', '上海', '天津', '河北', '山西', '内蒙古', '辽宁', '吉林', '黑龙江', '江苏', '浙江', '安徽', '福建', '江西', '山东', '河南', '湖北', '湖南', '广东', '广西', '海南', '重庆', '四川', '贵州', '云南', '西藏', '陕西', '甘肃', '青海', '宁夏', '新疆', '香港', '澳门', '台湾', '国外'];
    this.getAd(); // 获取广告位
    this.getGiftInfo();
    // this.setAddressPicker();  //设置地址选择picker的数据
    this.setshippingMethodPicker(); // 设置邮寄方式picker的数据
  },
  mounted: function mounted() {
    var that = this;
    that.$on('checkedCity', function (data) {
      that._Util.log(data);
      console.log(data);
      that.show = false;
      if (!data.province) {
        that.addressProvince = '';
      } else {
        that.addressProvince = data.province;
      }
      if (!data.city) {
        that.addressCity = '';
      } else {
        that.addressCity = data.city;
      }
      if (!data.area) {
        that.addressCounty = '';
      } else {
        that.addressCounty = data.area;
      }
    });
    that.$on('areaCancel', function () {
      that.show = false;
    });
  },
  methods: {
    toAd: function toAd() {
      var that = this;
      if (that._Util.isApp()) {
        if (that._Util.isAppRootWin()) {
          that._Util.acSendEvent({
            name: that._Enums.AC_ENUMS_OPEN_FRM,
            extra: {
              url: that.result.advertUrl
            }
          });
        } else {
          window.top.location.href = that.result.advertUrl;
        }
      } else {
        if (that._Util.isIOS) {
          window.open(that.result.advertUrl);
        } else {
          location.href = that.result.advertUrl;
        }
      }
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '广告',
        operate_page: window.location.href,
        optionType: '广告点击',
        param1: that.result.advertUrl,
        param2: '',
        param3: '',
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
    },
    showNote: function showNote(data) {
      // 去续费
      var that = this;
      if (data.status != 4) {
        _mintUi.MessageBox.alert(data.msg, '提示', {
          'confirmButtonText': '好的',
          'closeOnClickModal': false
        }).then(function (action) {
          that.$router.go(-1);
        });
      } else {
        _mintUi.MessageBox.alert(data.msg, '提示', {
          'confirmButtonText': '去付费',
          'closeOnClickModal': false
        }).then(function (action) {
          that.$router.push({
            name: 'certificationRenewal'
          });
        });
      }
    },
    noteChange: function noteChange() {
      // 改变底部注释
      var that = this;
      var selectNum = 0;
      that.giftList.forEach(function (item) {
        if (item.flag) {
          selectNum += 1;
        }
      });
      console.log('sel数量' + selectNum);
      if (that.totallWeight == 0) {
        if (that.sendtype == 1) {
          that.price = 0.01;
        } else {
          that.price = 0;
        }
      }
      if (selectNum == 1) {
        that.isOne = true;
        that.noGift = false;
        that.giftList.forEach(function (item) {
          if (item.flag) {
            that.oneObj = item;
            // console.log(JSON.stringify(that.oneObj))
          }
        });
      } else if (selectNum == 0) {
        that.noGift = true;
        that.isOne = false;
      } else {
        that.isOne = false;
        that.noGift = false;
      }
      if (selectNum >= 2) {
        that.note = that.ST_sendObj.remark;
      } else {
        if (that.oneObj.weight == 0) {
          that.note = that.free_sendObj.remark;
        } else {
          if (that.oneObj.sendPayTemplate == 'SF' && that.shippingMethodsResult == '寄付') {
            that.note = that.SF_sendObj.remark;
          }
          if (that.oneObj.receivePayTemplate == 'SF' && that.shippingMethodsResult == '到付') {
            that.note = that.SF_receiveObj.remark;
          }
          if (that.oneObj.sendPayTemplate == 'ST' && that.shippingMethodsResult == '寄付') {
            that.note = that.ST_sendObj.remark;
          }
          if (that.oneObj.receivePayTemplate == 'ST' && that.shippingMethodsResult == '到付') {
            that.note = that.ST_receiveObj.remark;
          }
        }
      }
    },
    getAd: function getAd() {
      var that = this;
      that._Util.post(that._Api.POST_ADVERT_POSITION, {
        signType: 2
      }, function (data) {
        if (data.advertId) {
          that.result = data;
        }
      }, function () {}, that);
    },
    getGiftInfo: function getGiftInfo() {
      // 获取礼品相关信息
      var that = this;
      // that._Api.MEMBER_GIFT_CONFIRM
      that._Util.post(that._Api.MEMBER_GIFT_CONFIRM, {
        giftId: that.giftId
      }, function (data) {
        if (data.vos) {
          that.giftType = data.giftType; // 礼品类型
          that.giftCouponCount = data.giftCouponCount; // 拥有的会员礼品券
          that.giftList = data.vos; // 赠品列表
          that.userDetail = data.shippingAddress;
          that.send = data.send;
          that.receive = data.receive;
          that.userName = sessionStorage.getItem('giftName') || that.userDetail.name || '';
          that.userphone = sessionStorage.getItem('giftPhone') || that.userDetail.phone || '';
          that.addressDetail = that.userDetail.address || '';
          that.giftInfo = data.giftInfo;
          that.userProjectResult = data.userProjectText;
          that.natureResult = data.natureText;
          // that.sendFreight = JSON.parse(that.send.freightJson);
          // that.receiveFreight = JSON.parse(that.receive.freightJson);
          // that.note = that.send.remark;
          that.shareTitle = data.shareTitle;
          that.shareImg = data.img;
          data.sends.forEach(function (item, index) {
            if (item.giftTemplate == 'SF') {
              // 顺丰寄付规则
              that.SF_sendObj = item;
              that.sendFreight_SF = JSON.parse(item.freightJson);
            } else if (item.giftTemplate == 'ST') {
              // 申通寄付规则
              that.ST_sendObj = item;
              that.sendFreight_ST = JSON.parse(item.freightJson);
            } else if (item.giftTemplate == 'ZT_FREE') {
              that.free_sendObj = item;
              that.freeSendFreight = JSON.parse(item.freightJson);
            }
          });
          data.receives.forEach(function (item, index) {
            if (item.giftTemplate == 'SF') {
              // 顺丰到付规则
              that.SF_receiveObj = item;
              that.receiveFreight_SF = JSON.parse(item.freightJson);
            } else if (item.giftTemplate == 'ST') {
              // 申通到付规则
              that.ST_receiveObj = item;
              that.receiveFreight_ST = JSON.parse(item.freightJson);
            } else if (item.giftTemplate == 'ZT_FREE') {
              that.free_receiveObj = item;
              that.freeReceiveFreight = JSON.parse(item.freightJson);
            }
          });
          if (sessionStorage.getItem('addressCity')) {
            // that.address1 = sessionStorage.getItem('giftaddress')
            that.addressFlag = true;
            that.addressProvince = sessionStorage.getItem('addressProvince');
            that.addressCity = sessionStorage.getItem('addressCity');
            that.addressCounty = sessionStorage.getItem('addressCounty');
            that.addressDetailnew = sessionStorage.getItem('giftaddressDetail');
          } else {
            if (that.userDetail.province) {
              // that.provinceList.forEach(function(item,index) {
              //     if(item == that.userDetail.province.substr(0,2)) {  //设置默认省份

              //         //that.myAddressSlots[0].defaultIndex = index
              //     }
              // });
              that.addressProvince = that.userDetail.province;
              that.addressCity = that.userDetail.city || '';
              that.addressCounty = that.userDetail.dist || '';
              that.addressDetailnew = that.addressProvince + that.addressCity + that.addressCounty + that.addressDetail;
            } else {

              // setTimeout(function() {
              //     that.myAddressSlots[0].defaultIndex = 0
              // },700)
            }
          }
          that.comWeight(that.giftList);
          that.share(); // 微信分享相关

          that.noteChange();
          setTimeout(function () {
            sessionStorage.setItem('giftName', '');
            sessionStorage.setItem('giftPhone', '');
            sessionStorage.setItem('addressProvince', '');
            sessionStorage.setItem('addressCity', '');
            sessionStorage.setItem('addressCounty', '');
            sessionStorage.setItem('giftaddressDetail', '');
          }, 500);
        } else {
          that.showNote(data);
          that.myAddressSlots[0].defaultIndex = 0;
        }
      }, function () {}, that);
    },
    setAddressPicker: function setAddressPicker() {
      this.myAddressSlots = [{
        flex: 1,
        defaultIndex: 25,
        values: Object.keys(_address.default),
        // 省份数组
        className: 'slot1',
        textAlign: 'center'
      }, {
        divider: true,
        content: '-',
        className: 'slot2'
      }, {
        flex: 1,
        values: [],
        className: 'slot3',
        textAlign: 'center'
      }, {
        divider: true,
        content: '-',
        className: 'slot4'
      }, {
        flex: 1,
        values: [],
        className: 'slot5',
        textAlign: 'center'
      }];
    },
    setshippingMethodPicker: function setshippingMethodPicker() {
      this.shippingMethodSlots = [{
        flex: 1,
        defaultIndex: 0,
        values: ['寄付', '到付'],
        className: 'slot1',
        textAlign: 'center'
      }];
    },
    toggleSelect: function toggleSelect(item) {
      // 切换礼品选中状态
      item.flag = !item.flag;
      this.noteChange();
      this.comWeight(this.giftList);
    },
    showPicker1: function showPicker1() {
      // 打开省市选择picker
      // this.pickershow1 = true;
      // if(this.addressFlag) {
      //     this.myAddressSlots[0].defaultIndex = 0
      // }
      this.show = true;
      this.addressFlag = true;
    },
    showPicker2: function showPicker2() {
      // 打开邮寄方式picker
      this.pickershow2 = true;
      this.sendtypeFlag = true;
    },
    // onMyAddressChange(picker, values) {
    //   let that = this;
    //   if(address[values[0]]){
    //     picker.setSlotValues(1,Object.keys(address[values[0]]));
    //     picker.setSlotValues(2,address[values[0]][values[1]]);
    //     that.addressProvince = values[0];
    //     that.addressCity = values[1];
    //     that.addressCounty = values[2];
    //   }
    // },
    onshippingMethodChange: function onshippingMethodChange(picker, values) {
      var that = this;
      if (that.sendtypeFlag) {
        that.shippingMethodsResult = values;
      }
    },
    tomemberStoreNature: function tomemberStoreNature() {
      // 跳转到门店性质选择页面
      this.setDate();
      this.$router.push({
        name: 'memberStoreNature',
        query: {
          fullPath: 'fullPath'
        }
      });
    },
    tomemberBusinessScope: function tomemberBusinessScope() {
      // 跳转到业务范围选择页面
      this.setDate();
      this.$router.push({
        name: 'memberBusinessScope',
        query: {
          fullPath: 'fullPath'
        }
      });
    },
    comWeight: function comWeight(list) {
      var that = this;
      that.totallWeight = 0;
      list.forEach(function (item, index) {
        // 计算礼品的重量
        if (item.flag && item.weight) {
          that.totallWeight += item.weight;
        }
      });
    },
    comprice: function comprice(weight, province, sendtype, isOne) {
      // 计算总邮费
      var that = this;
      console.log('只有一个商品' + isOne + '--没有商品' + that.noGift);
      if (weight <= 0 && that.noGift) {
        (0, _mintUi.Toast)({
          message: '请选择礼品',
          position: 'middle',
          duration: 2000
        });
        that.price = 0;
        return;
      }
      // debugger
      // let prov = province.substr(0,2);
      var prov = province;
      if (sendtype == 1) {
        // 寄付
        console.log('重量' + weight + '--' + province + '--' + sendtype);
        if (isOne) {
          if (that.oneObj.weight == 0) {
            // 包邮
            console.log('单个寄付包邮');
            that.formula(weight, prov, that.freeSendFreight);
          } else {
            if (that.oneObj.sendPayTemplate == 'SF') {
              console.log('单个寄付顺丰');
              that.formula(weight, prov, that.sendFreight_SF);
            } else if (that.oneObj.sendPayTemplate == 'ST') {
              console.log('单个寄付申通');
              that.formula(weight, prov, that.sendFreight_ST);
            }
          }
        } else {
          console.log('多个默认申通寄付');
          that.formula(weight, prov, that.sendFreight_ST);
        }
      } else {
        console.log(weight + '--' + province + '--' + sendtype);
        if (isOne) {
          if (that.oneObj.weight == 0) {
            // 到付包邮
            console.log('单个到付包邮');
            that.formula(weight, prov, that.freeReceiveFreight);
          } else {
            if (that.oneObj.receivePayTemplate == 'SF') {
              console.log('单个到付顺丰');
              that.formula(weight, prov, that.receiveFreight_SF);
            } else if (that.oneObj.receivePayTemplate == 'ST') {
              console.log('单个到付申通');
              that.formula(weight, prov, that.receiveFreight_ST);
            }
          }
        } else {
          console.log('多个默认申通到付');
          that.formula(weight, prov, that.receiveFreight_ST);
        }
      }
    },
    formula: function formula(weight, prov, Freight) {
      // 邮费计算公式
      var that = this;
      console.log(JSON.stringify(Freight));
      // debugger
      for (var item in Freight) {
        if (prov == item) {
          var pricearr = Freight[item].split(',');
          var base = Number(pricearr[0]);
          var add = Number(pricearr[1]);
          console.log('基数' + base + '续重--' + add);
          if (weight == 0) {
            if (that.sendtype == 1) {
              that.price = 0.01;
            } else {
              that.price = 0;
            }
            return;
          }
          if (base < 0) {
            that.price = -1;
            return;
          }
          that.price = weight > 1 ? base + (weight - 1) * add : base;
        }
      }
    },
    share: function share() {
      var that = this;
      var shareObj = {
        title: that.shareTitle,
        desc: that.shareTitle,
        link: location.href,
        thumb: 'http://static2.kaxiuyun.com/' + that.shareImg
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: shareObj.title,
                  desc: shareObj.desc,
                  link: shareObj.link,
                  imgUrl: shareObj.thumb
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: shareObj.title,
              desc: shareObj.desc,
              link: shareObj.link,
              imgUrl: shareObj.thumb
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: shareObj.title,
              desc: shareObj.desc,
              link: shareObj.link,
              imgUrl: shareObj.thumb
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: shareObj.title,
              desc: shareObj.desc,
              link: shareObj.link,
              imgUrl: shareObj.thumb,
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    setDate: function setDate() {
      sessionStorage.setItem('giftName', this.userName);
      sessionStorage.setItem('giftPhone', this.userphone);
      sessionStorage.setItem('addressProvince', this.addressProvince);
      sessionStorage.setItem('addressCity', this.addressCity);
      sessionStorage.setItem('addressCounty', this.addressCounty);
      sessionStorage.setItem('giftaddressDetail', this.addressDetailnew);
    },
    payGift: function payGift() {
      // MEMBER_PAY_FOR_GIFT
      // 'http://192.168.90.15:9901/api/mall-api/order/quickActivityPayForGift.json'
      var that = this;
      if (this.giftCouponCount < this.selectGifts && this.giftType == 1) {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '您的会员礼品券不足，请确认后领取。',
          closeOnClickModal: true,
          confirmButtonText: '查看我的会员礼品券'
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.replace({
              name: 'certificationRenewal'
            });
          }
        });
        return;
      }
      if (!that.addressProvince) {
        (0, _mintUi.Toast)({
          message: '请填写地址',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      if (!that.userName) {
        (0, _mintUi.Toast)({
          message: '姓名不能为空',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      if (that.price < 0) {
        (0, _mintUi.Toast)({
          message: '抱歉，该地区暂不支持邮寄',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      if (isNaN(that.price)) {
        (0, _mintUi.Toast)({
          message: '请重新选择所在省市区',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      if (!that.userphone) {
        (0, _mintUi.Toast)({
          message: '手机号不能为空',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      if (!that.phoneTest.test(that.userphone)) {
        (0, _mintUi.Toast)({
          message: '电话格式不正确',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      if (!that.addressDetailnew) {
        (0, _mintUi.Toast)({
          message: '详细地址不能为空',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      if (that.totallWeight == 0 && that.noGift) {
        (0, _mintUi.Toast)({
          message: '请选择礼品',
          position: 'middle',
          duration: 2000
        });
        return;
      }
      var giftIds = [];
      // that.giftList.forEach
      that.giftList.forEach(function (item, index) {
        if (item.flag) {
          giftIds.push(item.id);
        }
      });
      console.log(giftIds + '');
      var address = '';
      if (that.addressDetailnew.substr(0, that.address1Len) == that.address1) {
        address = that.addressDetailnew.substr(that.address1Len);
        if (address.length < 5) {
          (0, _mintUi.Toast)({
            message: '请输入不少于5个字的街道或门牌信息',
            position: 'middle',
            duration: 2000
          });
          return;
        }
      } else {
        _mintUi.MessageBox.alert('详细地址省市区与所选省市区不一致，请重新填写', '提示', {
          'confirmButtonText': '好的',
          'closeOnClickModal': false
        }).then(function (action) {
          that.addressDetailnew = that.address1;
        });
        return;
      }
      var params = {
        giftId: giftIds + '',
        price: that.price,
        expressType: that.sendtype,
        name: that.userName,
        phone: that.userphone,
        province: that.addressProvince,
        city: that.addressCity,
        dist: that.addressCounty,
        address: address
      };
      // that._Api.MEMBER_PAY_FOR_GIFT
      that._Util.post(that._Api.MEMBER_PAY_FOR_GIFT, params, function (data) {
        if (data.jsApiParameters) {
          that.toPay(data.jsApiParameters);
          return;
        } else {
          window.location.replace(that._Api.HOSTRESOURCEPATH + '/kaxiuyun/wxauth/memberGift/success.htm?giftId=' + that.giftId);
        }
      }, function () {}, that);
    },
    toPay: function toPay(jsApiParameters) {
      var that = this;
      // if(that._Util.isApp()){
      //     var wxPay = api.require('wxPay');
      //     wxPay.config({}, function (ret, err) {
      //         if (ret.status) {
      //             wxPay.pay(JSON.parse(jsApiParameters || ''), function (ret, err) {
      //                 if (ret.status) {
      //                     window.location.href = that._Api.hostResourcePath + "/kaxiuyun/wxauth/memberGift/success.htm?giftId=" + that.giftId;
      //                 }
      //             });
      //         }
      //     });
      // }else {

      //     wx.chooseWXPay({
      //         timestamp: jsApiParameters.timeStamp, // 支付签名时间戳，注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
      //         nonceStr: jsApiParameters.nonceStr, // 支付签名随机串，不长于 32 位
      //         package: jsApiParameters.package, // 统一支付接口返回的prepay_id参数值，提交格式如：prepay_id=\*\*\*）
      //         signType: jsApiParameters.signType, // 签名方式，默认为'SHA1'，使用新版支付需传入'MD5'
      //         paySign: jsApiParameters.paySign, // 支付签名
      //         success: function (res) {
      //         // 支付成功后的回调函数
      //             window.location.href = that._Api.hostResourcePath + "/kaxiuyun/wxauth/memberGift/success.htm?giftId=" + that.giftId;
      //         }
      //     });
      // }
      that._Util.wxPay(jsApiParameters, function () {
        setTimeout(function () {
          window.location.replace(that._Api.HOSTRESOURCEPATH + '/kaxiuyun/wxauth/memberGift/success.htm?giftId=' + that.giftId);
        }, 1000);
      });
    }
  }
};module.exports = JSON.parse("{\"北京市\":{\"\":[\"东城区\",\"西城区\",\"朝阳区\",\"丰台区\",\"石景山区\",\"海淀区\",\"门头沟区\",\"房山区\",\"通州区\",\"顺义区\",\"昌平区\",\"大兴区\",\"怀柔区\",\"平谷区\",\"密云区\",\"延庆区\"]},\"上海市\":{\"市辖区\":[\"黄浦区\",\"徐汇区\",\"长宁区\",\"静安区\",\"普陀区\",\"虹口区\",\"杨浦区\",\"闵行区\",\"宝山区\",\"嘉定区\",\"浦东新区\",\"金山区\",\"松江区\",\"青浦区\",\"奉贤区\",\"崇明区\"]},\"天津市\":{\"市辖区\":[\"和平区\",\"河东区\",\"河西区\",\"南开区\",\"河北区\",\"红桥区\",\"东丽区\",\"西青区\",\"津南区\",\"北辰区\",\"武清区\",\"宝坻区\",\"滨海新区\",\"宁河区\",\"静海区\",\"蓟州区\"]},\"河北省\":{\"石家庄市\":[\"长安区\",\"桥西区\",\"新华区\",\"井陉矿区\",\"裕华区\",\"藁城区\",\"鹿泉区\",\"栾城区\",\"井陉县\",\"正定县\",\"行唐县\",\"灵寿县\",\"高邑县\",\"深泽县\",\"赞皇县\",\"无极县\",\"平山县\",\"元氏县\",\"赵县\",\"石家庄高新技术产业开发区\",\"石家庄循环化工园区\",\"辛集市\",\"晋州市\",\"新乐市\"],\"唐山市\":[\"路南区\",\"路北区\",\"古冶区\",\"开平区\",\"丰南区\",\"丰润区\",\"曹妃甸区\",\"滦县\",\"滦南县\",\"乐亭县\",\"迁西县\",\"玉田县\",\"唐山市芦台经济技术开发区\",\"唐山市汉沽管理区\",\"唐山高新技术产业开发区\",\"河北唐山海港经济开发区\",\"遵化市\",\"迁安市\"],\"秦皇岛市\":[\"海港区\",\"山海关区\",\"北戴河区\",\"抚宁区\",\"青龙满族自治县\",\"昌黎县\",\"卢龙县\",\"秦皇岛市经济技术开发区\",\"北戴河新区\"],\"邯郸市\":[\"邯山区\",\"丛台区\",\"复兴区\",\"峰峰矿区\",\"肥乡区\",\"永年区\",\"临漳县\",\"成安县\",\"大名县\",\"涉县\",\"磁县\",\"邱县\",\"鸡泽县\",\"广平县\",\"馆陶县\",\"魏县\",\"曲周县\",\"邯郸经济技术开发区\",\"邯郸冀南新区\",\"武安市\"],\"邢台市\":[\"桥东区\",\"桥西区\",\"邢台县\",\"临城县\",\"内丘县\",\"柏乡县\",\"隆尧县\",\"任县\",\"南和县\",\"宁晋县\",\"巨鹿县\",\"新河县\",\"广宗县\",\"平乡县\",\"威县\",\"清河县\",\"临西县\",\"河北邢台经济开发区\",\"南宫市\",\"沙河市\"],\"保定市\":[\"竞秀区\",\"莲池区\",\"满城区\",\"清苑区\",\"徐水区\",\"涞水县\",\"阜平县\",\"定兴县\",\"唐县\",\"高阳县\",\"容城县\",\"涞源县\",\"望都县\",\"安新县\",\"易县\",\"曲阳县\",\"蠡县\",\"顺平县\",\"博野县\",\"雄县\",\"保定高新技术产业开发区\",\"保定白沟新城\",\"涿州市\",\"定州市\",\"安国市\",\"高碑店市\"],\"张家口市\":[\"桥东区\",\"桥西区\",\"宣化区\",\"下花园区\",\"万全区\",\"崇礼区\",\"张北县\",\"康保县\",\"沽源县\",\"尚义县\",\"蔚县\",\"阳原县\",\"怀安县\",\"怀来县\",\"涿鹿县\",\"赤城县\",\"张家口市高新技术产业开发区\",\"张家口市察北管理区\",\"张家口市塞北管理区\"],\"承德市\":[\"双桥区\",\"双滦区\",\"鹰手营子矿区\",\"承德县\",\"兴隆县\",\"滦平县\",\"隆化县\",\"丰宁满族自治县\",\"宽城满族自治县\",\"围场满族蒙古族自治县\",\"承德高新技术产业开发区\",\"平泉市\"],\"沧州市\":[\"新华区\",\"运河区\",\"沧县\",\"青县\",\"东光县\",\"海兴县\",\"盐山县\",\"肃宁县\",\"南皮县\",\"吴桥县\",\"献县\",\"孟村回族自治县\",\"河北沧州经济开发区\",\"沧州高新技术产业开发区\",\"沧州渤海新区\",\"泊头市\",\"任丘市\",\"黄骅市\",\"河间市\"],\"廊坊市\":[\"安次区\",\"广阳区\",\"固安县\",\"永清县\",\"香河县\",\"大城县\",\"文安县\",\"大厂回族自治县\",\"廊坊经济技术开发区\",\"霸州市\",\"三河市\"],\"衡水市\":[\"桃城区\",\"冀州区\",\"枣强县\",\"武邑县\",\"武强县\",\"饶阳县\",\"安平县\",\"故城县\",\"景县\",\"阜城县\",\"河北衡水经济开发区\",\"衡水滨湖新区\",\"深州市\"]},\"山西省\":{\"太原市\":[\"小店区\",\"迎泽区\",\"杏花岭区\",\"尖草坪区\",\"万柏林区\",\"晋源区\",\"清徐县\",\"阳曲县\",\"娄烦县\",\"山西转型综合改革示范区\",\"古交市\"],\"大同市\":[\"城区\",\"矿区\",\"南郊区\",\"新荣区\",\"阳高县\",\"天镇县\",\"广灵县\",\"灵丘县\",\"浑源县\",\"左云县\",\"大同县\",\"山西大同经济开发区\"],\"阳泉市\":[\"城区\",\"矿区\",\"郊区\",\"平定县\",\"盂县\",\"山西阳泉经济开发区\"],\"长治市\":[\"城区\",\"郊区\",\"长治县\",\"襄垣县\",\"屯留县\",\"平顺县\",\"黎城县\",\"壶关县\",\"长子县\",\"武乡县\",\"沁县\",\"沁源县\",\"山西长治高新技术产业园区\",\"潞城市\"],\"晋城市\":[\"城区\",\"沁水县\",\"阳城县\",\"陵川县\",\"泽州县\",\"高平市\"],\"朔州市\":[\"朔城区\",\"平鲁区\",\"山阴县\",\"应县\",\"右玉县\",\"怀仁县\",\"山西朔州经济开发区\"],\"晋中市\":[\"榆次区\",\"榆社县\",\"左权县\",\"和顺县\",\"昔阳县\",\"寿阳县\",\"太谷县\",\"祁县\",\"平遥县\",\"灵石县\",\"介休市\"],\"运城市\":[\"盐湖区\",\"临猗县\",\"万荣县\",\"闻喜县\",\"稷山县\",\"新绛县\",\"绛县\",\"垣曲县\",\"夏县\",\"平陆县\",\"芮城县\",\"永济市\",\"河津市\"],\"忻州市\":[\"忻府区\",\"定襄县\",\"五台县\",\"代县\",\"繁峙县\",\"宁武县\",\"静乐县\",\"神池县\",\"五寨县\",\"岢岚县\",\"河曲县\",\"保德县\",\"偏关县\",\"五台山风景名胜区\",\"原平市\"],\"临汾市\":[\"尧都区\",\"曲沃县\",\"翼城县\",\"襄汾县\",\"洪洞县\",\"古县\",\"安泽县\",\"浮山县\",\"吉县\",\"乡宁县\",\"大宁县\",\"隰县\",\"永和县\",\"蒲县\",\"汾西县\",\"侯马市\",\"霍州市\"],\"吕梁市\":[\"离石区\",\"文水县\",\"交城县\",\"兴县\",\"临县\",\"柳林县\",\"石楼县\",\"岚县\",\"方山县\",\"中阳县\",\"交口县\",\"孝义市\",\"汾阳市\"]},\"内蒙古自治区\":{\"呼和浩特市\":[\"新城区\",\"回民区\",\"玉泉区\",\"赛罕区\",\"土默特左旗\",\"托克托县\",\"和林格尔县\",\"清水河县\",\"武川县\",\"呼和浩特金海工业园区\",\"呼和浩特经济技术开发区\"],\"包头市\":[\"东河区\",\"昆都仑区\",\"青山区\",\"石拐区\",\"白云鄂博矿区\",\"九原区\",\"土默特右旗\",\"固阳县\",\"达尔罕茂明安联合旗\",\"包头稀土高新技术产业开发区\"],\"乌海市\":[\"海勃湾区\",\"海南区\",\"乌达区\"],\"赤峰市\":[\"红山区\",\"元宝山区\",\"松山区\",\"阿鲁科尔沁旗\",\"巴林左旗\",\"巴林右旗\",\"林西县\",\"克什克腾旗\",\"翁牛特旗\",\"喀喇沁旗\",\"宁城县\",\"敖汉旗\"],\"通辽市\":[\"科尔沁区\",\"科尔沁左翼中旗\",\"科尔沁左翼后旗\",\"开鲁县\",\"库伦旗\",\"奈曼旗\",\"扎鲁特旗\",\"通辽经济技术开发区\",\"霍林郭勒市\"],\"鄂尔多斯市\":[\"东胜区\",\"康巴什区\",\"达拉特旗\",\"准格尔旗\",\"鄂托克前旗\",\"鄂托克旗\",\"杭锦旗\",\"乌审旗\",\"伊金霍洛旗\"],\"呼伦贝尔市\":[\"海拉尔区\",\"扎赉诺尔区\",\"阿荣旗\",\"莫力达瓦达斡尔族自治旗\",\"鄂伦春自治旗\",\"鄂温克族自治旗\",\"陈巴尔虎旗\",\"新巴尔虎左旗\",\"新巴尔虎右旗\",\"满洲里市\",\"牙克石市\",\"扎兰屯市\",\"额尔古纳市\",\"根河市\"],\"巴彦淖尔市\":[\"临河区\",\"五原县\",\"磴口县\",\"乌拉特前旗\",\"乌拉特中旗\",\"乌拉特后旗\",\"杭锦后旗\"],\"乌兰察布市\":[\"集宁区\",\"卓资县\",\"化德县\",\"商都县\",\"兴和县\",\"凉城县\",\"察哈尔右翼前旗\",\"察哈尔右翼中旗\",\"察哈尔右翼后旗\",\"四子王旗\",\"丰镇市\"],\"兴安盟\":[\"乌兰浩特市\",\"阿尔山市\",\"科尔沁右翼前旗\",\"科尔沁右翼中旗\",\"扎赉特旗\",\"突泉县\"],\"锡林郭勒盟\":[\"二连浩特市\",\"锡林浩特市\",\"阿巴嘎旗\",\"苏尼特左旗\",\"苏尼特右旗\",\"东乌珠穆沁旗\",\"西乌珠穆沁旗\",\"太仆寺旗\",\"镶黄旗\",\"正镶白旗\",\"正蓝旗\",\"多伦县\",\"乌拉盖管委会\"],\"阿拉善盟\":[\"阿拉善左旗\",\"阿拉善右旗\",\"额济纳旗\",\"内蒙古阿拉善经济开发区\"]},\"辽宁省\":{\"沈阳市\":[\"和平区\",\"沈河区\",\"大东区\",\"皇姑区\",\"铁西区\",\"苏家屯区\",\"浑南区\",\"沈北新区\",\"于洪区\",\"辽中区\",\"康平县\",\"法库县\",\"新民市\"],\"大连市\":[\"中山区\",\"西岗区\",\"沙河口区\",\"甘井子区\",\"旅顺口区\",\"金州区\",\"普兰店区\",\"长海县\",\"瓦房店市\",\"庄河市\"],\"鞍山市\":[\"铁东区\",\"铁西区\",\"立山区\",\"千山区\",\"台安县\",\"岫岩满族自治县\",\"海城市\"],\"抚顺市\":[\"新抚区\",\"东洲区\",\"望花区\",\"顺城区\",\"抚顺县\",\"新宾满族自治县\",\"清原满族自治县\"],\"本溪市\":[\"平山区\",\"溪湖区\",\"明山区\",\"南芬区\",\"本溪满族自治县\",\"桓仁满族自治县\"],\"丹东市\":[\"元宝区\",\"振兴区\",\"振安区\",\"宽甸满族自治县\",\"东港市\",\"凤城市\"],\"锦州市\":[\"古塔区\",\"凌河区\",\"太和区\",\"黑山县\",\"义县\",\"凌海市\",\"北镇市\"],\"营口市\":[\"站前区\",\"西市区\",\"鲅鱼圈区\",\"老边区\",\"盖州市\",\"大石桥市\"],\"阜新市\":[\"海州区\",\"新邱区\",\"太平区\",\"清河门区\",\"细河区\",\"阜新蒙古族自治县\",\"彰武县\"],\"辽阳市\":[\"白塔区\",\"文圣区\",\"宏伟区\",\"弓长岭区\",\"太子河区\",\"辽阳县\",\"灯塔市\"],\"盘锦市\":[\"双台子区\",\"兴隆台区\",\"大洼区\",\"盘山县\"],\"铁岭市\":[\"银州区\",\"清河区\",\"铁岭县\",\"西丰县\",\"昌图县\",\"调兵山市\",\"开原市\"],\"朝阳市\":[\"双塔区\",\"龙城区\",\"朝阳县\",\"建平县\",\"喀喇沁左翼蒙古族自治县\",\"北票市\",\"凌源市\"],\"葫芦岛市\":[\"连山区\",\"龙港区\",\"南票区\",\"绥中县\",\"建昌县\",\"兴城市\"]},\"吉林省\":{\"长春市\":[\"南关区\",\"宽城区\",\"朝阳区\",\"二道区\",\"绿园区\",\"双阳区\",\"九台区\",\"农安县\",\"长春经济技术开发区\",\"长春净月高新技术产业开发区\",\"长春高新技术产业开发区\",\"长春汽车经济技术开发区\",\"榆树市\",\"德惠市\"],\"吉林市\":[\"昌邑区\",\"龙潭区\",\"船营区\",\"丰满区\",\"永吉县\",\"吉林经济开发区\",\"吉林高新技术产业开发区\",\"吉林中国新加坡食品区\",\"蛟河市\",\"桦甸市\",\"舒兰市\",\"磐石市\"],\"四平市\":[\"铁西区\",\"铁东区\",\"梨树县\",\"伊通满族自治县\",\"公主岭市\",\"双辽市\"],\"辽源市\":[\"龙山区\",\"西安区\",\"东丰县\",\"东辽县\"],\"通化市\":[\"东昌区\",\"二道江区\",\"通化县\",\"辉南县\",\"柳河县\",\"梅河口市\",\"集安市\"],\"白山市\":[\"浑江区\",\"江源区\",\"抚松县\",\"靖宇县\",\"长白朝鲜族自治县\",\"临江市\"],\"松原市\":[\"宁江区\",\"前郭尔罗斯蒙古族自治县\",\"长岭县\",\"乾安县\",\"吉林松原经济开发区\",\"扶余市\"],\"白城市\":[\"洮北区\",\"镇赉县\",\"通榆县\",\"吉林白城经济开发区\",\"洮南市\",\"大安市\"],\"延边朝鲜族自治州\":[\"延吉市\",\"图们市\",\"敦化市\",\"珲春市\",\"龙井市\",\"和龙市\",\"汪清县\",\"安图县\"]},\"黑龙江省\":{\"哈尔滨市\":[\"道里区\",\"南岗区\",\"道外区\",\"平房区\",\"松北区\",\"香坊区\",\"呼兰区\",\"阿城区\",\"双城区\",\"依兰县\",\"方正县\",\"宾县\",\"巴彦县\",\"木兰县\",\"通河县\",\"延寿县\",\"尚志市\",\"五常市\"],\"齐齐哈尔市\":[\"龙沙区\",\"建华区\",\"铁锋区\",\"昂昂溪区\",\"富拉尔基区\",\"碾子山区\",\"梅里斯达斡尔族区\",\"龙江县\",\"依安县\",\"泰来县\",\"甘南县\",\"富裕县\",\"克山县\",\"克东县\",\"拜泉县\",\"讷河市\"],\"鸡西市\":[\"鸡冠区\",\"恒山区\",\"滴道区\",\"梨树区\",\"城子河区\",\"麻山区\",\"鸡东县\",\"虎林市\",\"密山市\"],\"鹤岗市\":[\"向阳区\",\"工农区\",\"南山区\",\"兴安区\",\"东山区\",\"兴山区\",\"萝北县\",\"绥滨县\"],\"双鸭山市\":[\"尖山区\",\"岭东区\",\"四方台区\",\"宝山区\",\"集贤县\",\"友谊县\",\"宝清县\",\"饶河县\"],\"大庆市\":[\"萨尔图区\",\"龙凤区\",\"让胡路区\",\"红岗区\",\"大同区\",\"肇州县\",\"肇源县\",\"林甸县\",\"杜尔伯特蒙古族自治县\",\"大庆高新技术产业开发区\"],\"伊春市\":[\"伊春区\",\"南岔区\",\"友好区\",\"西林区\",\"翠峦区\",\"新青区\",\"美溪区\",\"金山屯区\",\"五营区\",\"乌马河区\",\"汤旺河区\",\"带岭区\",\"乌伊岭区\",\"红星区\",\"上甘岭区\",\"嘉荫县\",\"铁力市\"],\"佳木斯市\":[\"向阳区\",\"前进区\",\"东风区\",\"郊区\",\"桦南县\",\"桦川县\",\"汤原县\",\"同江市\",\"富锦市\",\"抚远市\"],\"七台河市\":[\"新兴区\",\"桃山区\",\"茄子河区\",\"勃利县\"],\"牡丹江市\":[\"东安区\",\"阳明区\",\"爱民区\",\"西安区\",\"林口县\",\"牡丹江经济技术开发区\",\"绥芬河市\",\"海林市\",\"宁安市\",\"穆棱市\",\"东宁市\"],\"黑河市\":[\"爱辉区\",\"嫩江县\",\"逊克县\",\"孙吴县\",\"北安市\",\"五大连池市\"],\"绥化市\":[\"北林区\",\"望奎县\",\"兰西县\",\"青冈县\",\"庆安县\",\"明水县\",\"绥棱县\",\"安达市\",\"肇东市\",\"海伦市\"],\"大兴安岭地区\":[\"加格达奇区\",\"松岭区\",\"新林区\",\"呼中区\",\"呼玛县\",\"塔河县\",\"漠河县\"]},\"江苏省\":{\"南京市\":[\"玄武区\",\"秦淮区\",\"建邺区\",\"鼓楼区\",\"浦口区\",\"栖霞区\",\"雨花台区\",\"江宁区\",\"六合区\",\"溧水区\",\"高淳区\"],\"无锡市\":[\"锡山区\",\"惠山区\",\"滨湖区\",\"梁溪区\",\"新吴区\",\"江阴市\",\"宜兴市\"],\"徐州市\":[\"鼓楼区\",\"云龙区\",\"贾汪区\",\"泉山区\",\"铜山区\",\"丰县\",\"沛县\",\"睢宁县\",\"徐州经济技术开发区\",\"新沂市\",\"邳州市\"],\"常州市\":[\"天宁区\",\"钟楼区\",\"新北区\",\"武进区\",\"金坛区\",\"溧阳市\"],\"苏州市\":[\"虎丘区\",\"吴中区\",\"相城区\",\"姑苏区\",\"吴江区\",\"苏州工业园区\",\"常熟市\",\"张家港市\",\"昆山市\",\"太仓市\"],\"南通市\":[\"崇川区\",\"港闸区\",\"通州区\",\"海安县\",\"如东县\",\"南通经济技术开发区\",\"启东市\",\"如皋市\",\"海门市\"],\"连云港市\":[\"连云区\",\"海州区\",\"赣榆区\",\"东海县\",\"灌云县\",\"灌南县\",\"连云港经济技术开发区\",\"连云港高新技术产业开发区\"],\"淮安市\":[\"淮安区\",\"淮阴区\",\"清江浦区\",\"洪泽区\",\"涟水县\",\"盱眙县\",\"金湖县\",\"淮安经济技术开发区\"],\"盐城市\":[\"亭湖区\",\"盐都区\",\"大丰区\",\"响水县\",\"滨海县\",\"阜宁县\",\"射阳县\",\"建湖县\",\"盐城经济技术开发区\",\"东台市\"],\"扬州市\":[\"广陵区\",\"邗江区\",\"江都区\",\"宝应县\",\"扬州经济技术开发区\",\"仪征市\",\"高邮市\"],\"镇江市\":[\"京口区\",\"润州区\",\"丹徒区\",\"镇江新区\",\"丹阳市\",\"扬中市\",\"句容市\"],\"泰州市\":[\"海陵区\",\"高港区\",\"姜堰区\",\"泰州医药高新技术产业开发区\",\"兴化市\",\"靖江市\",\"泰兴市\"],\"宿迁市\":[\"宿城区\",\"宿豫区\",\"沭阳县\",\"泗阳县\",\"泗洪县\",\"宿迁经济技术开发区\"]},\"浙江省\":{\"杭州市\":[\"上城区\",\"下城区\",\"江干区\",\"拱墅区\",\"西湖区\",\"滨江区\",\"萧山区\",\"余杭区\",\"富阳区\",\"临安区\",\"桐庐县\",\"淳安县\",\"建德市\"],\"宁波市\":[\"海曙区\",\"江北区\",\"北仑区\",\"镇海区\",\"鄞州区\",\"奉化区\",\"象山县\",\"宁海县\",\"余姚市\",\"慈溪市\"],\"温州市\":[\"鹿城区\",\"龙湾区\",\"瓯海区\",\"洞头区\",\"永嘉县\",\"平阳县\",\"苍南县\",\"文成县\",\"泰顺县\",\"温州经济技术开发区\",\"瑞安市\",\"乐清市\"],\"嘉兴市\":[\"南湖区\",\"秀洲区\",\"嘉善县\",\"海盐县\",\"海宁市\",\"平湖市\",\"桐乡市\"],\"湖州市\":[\"吴兴区\",\"南浔区\",\"德清县\",\"长兴县\",\"安吉县\"],\"绍兴市\":[\"越城区\",\"柯桥区\",\"上虞区\",\"新昌县\",\"诸暨市\",\"嵊州市\"],\"金华市\":[\"婺城区\",\"金东区\",\"武义县\",\"浦江县\",\"磐安县\",\"兰溪市\",\"义乌市\",\"东阳市\",\"永康市\"],\"衢州市\":[\"柯城区\",\"衢江区\",\"常山县\",\"开化县\",\"龙游县\",\"江山市\"],\"舟山市\":[\"定海区\",\"普陀区\",\"岱山县\",\"嵊泗县\"],\"台州市\":[\"椒江区\",\"黄岩区\",\"路桥区\",\"三门县\",\"天台县\",\"仙居县\",\"温岭市\",\"临海市\",\"玉环市\"],\"丽水市\":[\"莲都区\",\"青田县\",\"缙云县\",\"遂昌县\",\"松阳县\",\"云和县\",\"庆元县\",\"景宁畲族自治县\",\"龙泉市\"]},\"安徽省\":{\"合肥市\":[\"瑶海区\",\"庐阳区\",\"蜀山区\",\"包河区\",\"长丰县\",\"肥东县\",\"肥西县\",\"庐江县\",\"合肥高新技术产业开发区\",\"合肥经济技术开发区\",\"合肥新站高新技术产业开发区\",\"巢湖市\"],\"芜湖市\":[\"镜湖区\",\"弋江区\",\"鸠江区\",\"三山区\",\"芜湖县\",\"繁昌县\",\"南陵县\",\"无为县\",\"芜湖经济技术开发区\",\"安徽芜湖长江大桥经济开发区\"],\"蚌埠市\":[\"龙子湖区\",\"蚌山区\",\"禹会区\",\"淮上区\",\"怀远县\",\"五河县\",\"固镇县\",\"蚌埠市高新技术开发区\",\"蚌埠市经济开发区\"],\"淮南市\":[\"大通区\",\"田家庵区\",\"谢家集区\",\"八公山区\",\"潘集区\",\"凤台县\",\"寿县\"],\"马鞍山市\":[\"花山区\",\"雨山区\",\"博望区\",\"当涂县\",\"含山县\",\"和县\"],\"淮北市\":[\"杜集区\",\"相山区\",\"烈山区\",\"濉溪县\"],\"铜陵市\":[\"铜官区\",\"义安区\",\"郊区\",\"枞阳县\"],\"安庆市\":[\"迎江区\",\"大观区\",\"宜秀区\",\"怀宁县\",\"潜山县\",\"太湖县\",\"宿松县\",\"望江县\",\"岳西县\",\"安徽安庆经济开发区\",\"桐城市\"],\"黄山市\":[\"屯溪区\",\"黄山区\",\"徽州区\",\"歙县\",\"休宁县\",\"黟县\",\"祁门县\"],\"滁州市\":[\"琅琊区\",\"南谯区\",\"来安县\",\"全椒县\",\"定远县\",\"凤阳县\",\"苏滁现代产业园\",\"滁州经济技术开发区\",\"天长市\",\"明光市\"],\"阜阳市\":[\"颍州区\",\"颍东区\",\"颍泉区\",\"临泉县\",\"太和县\",\"阜南县\",\"颍上县\",\"阜阳合肥现代产业园区\",\"阜阳经济技术开发区\",\"界首市\"],\"宿州市\":[\"埇桥区\",\"砀山县\",\"萧县\",\"灵璧县\",\"泗县\",\"宿州马鞍山现代产业园区\",\"宿州经济技术开发区\"],\"六安市\":[\"金安区\",\"裕安区\",\"叶集区\",\"霍邱县\",\"舒城县\",\"金寨县\",\"霍山县\"],\"亳州市\":[\"谯城区\",\"涡阳县\",\"蒙城县\",\"利辛县\"],\"池州市\":[\"贵池区\",\"东至县\",\"石台县\",\"青阳县\"],\"宣城市\":[\"宣州区\",\"郎溪县\",\"广德县\",\"泾县\",\"绩溪县\",\"旌德县\",\"宣城市经济开发区\",\"宁国市\"]},\"福建省\":{\"福州市\":[\"鼓楼区\",\"台江区\",\"仓山区\",\"马尾区\",\"晋安区\",\"闽侯县\",\"连江县\",\"罗源县\",\"闽清县\",\"永泰县\",\"平潭县\",\"福清市\",\"长乐市\"],\"厦门市\":[\"思明区\",\"海沧区\",\"湖里区\",\"集美区\",\"同安区\",\"翔安区\"],\"莆田市\":[\"城厢区\",\"涵江区\",\"荔城区\",\"秀屿区\",\"仙游县\"],\"三明市\":[\"梅列区\",\"三元区\",\"明溪县\",\"清流县\",\"宁化县\",\"大田县\",\"尤溪县\",\"沙县\",\"将乐县\",\"泰宁县\",\"建宁县\",\"永安市\"],\"泉州市\":[\"鲤城区\",\"丰泽区\",\"洛江区\",\"泉港区\",\"惠安县\",\"安溪县\",\"永春县\",\"德化县\",\"金门县\",\"石狮市\",\"晋江市\",\"南安市\"],\"漳州市\":[\"芗城区\",\"龙文区\",\"云霄县\",\"漳浦县\",\"诏安县\",\"长泰县\",\"东山县\",\"南靖县\",\"平和县\",\"华安县\",\"龙海市\"],\"南平市\":[\"延平区\",\"建阳区\",\"顺昌县\",\"浦城县\",\"光泽县\",\"松溪县\",\"政和县\",\"邵武市\",\"武夷山市\",\"建瓯市\"],\"龙岩市\":[\"新罗区\",\"永定区\",\"长汀县\",\"上杭县\",\"武平县\",\"连城县\",\"漳平市\"],\"宁德市\":[\"蕉城区\",\"霞浦县\",\"古田县\",\"屏南县\",\"寿宁县\",\"周宁县\",\"柘荣县\",\"福安市\",\"福鼎市\"]},\"江西省\":{\"南昌市\":[\"东湖区\",\"西湖区\",\"青云谱区\",\"湾里区\",\"青山湖区\",\"新建区\",\"南昌县\",\"安义县\",\"进贤县\"],\"景德镇市\":[\"昌江区\",\"珠山区\",\"浮梁县\",\"乐平市\"],\"萍乡市\":[\"安源区\",\"湘东区\",\"莲花县\",\"上栗县\",\"芦溪县\"],\"九江市\":[\"濂溪区\",\"浔阳区\",\"柴桑区\",\"武宁县\",\"修水县\",\"永修县\",\"德安县\",\"都昌县\",\"湖口县\",\"彭泽县\",\"瑞昌市\",\"共青城市\",\"庐山市\"],\"新余市\":[\"渝水区\",\"分宜县\"],\"鹰潭市\":[\"月湖区\",\"余江县\",\"贵溪市\"],\"赣州市\":[\"章贡区\",\"南康区\",\"赣县区\",\"信丰县\",\"大余县\",\"上犹县\",\"崇义县\",\"安远县\",\"龙南县\",\"定南县\",\"全南县\",\"宁都县\",\"于都县\",\"兴国县\",\"会昌县\",\"寻乌县\",\"石城县\",\"瑞金市\"],\"吉安市\":[\"吉州区\",\"青原区\",\"吉安县\",\"吉水县\",\"峡江县\",\"新干县\",\"永丰县\",\"泰和县\",\"遂川县\",\"万安县\",\"安福县\",\"永新县\",\"井冈山市\"],\"宜春市\":[\"袁州区\",\"奉新县\",\"万载县\",\"上高县\",\"宜丰县\",\"靖安县\",\"铜鼓县\",\"丰城市\",\"樟树市\",\"高安市\"],\"抚州市\":[\"临川区\",\"东乡区\",\"南城县\",\"黎川县\",\"南丰县\",\"崇仁县\",\"乐安县\",\"宜黄县\",\"金溪县\",\"资溪县\",\"广昌县\"],\"上饶市\":[\"信州区\",\"广丰区\",\"上饶县\",\"玉山县\",\"铅山县\",\"横峰县\",\"弋阳县\",\"余干县\",\"鄱阳县\",\"万年县\",\"婺源县\",\"德兴市\"]},\"山东省\":{\"济南市\":[\"历下区\",\"市中区\",\"槐荫区\",\"天桥区\",\"历城区\",\"长清区\",\"章丘区\",\"平阴县\",\"济阳县\",\"商河县\",\"济南高新技术产业开发区\"],\"青岛市\":[\"市南区\",\"市北区\",\"黄岛区\",\"崂山区\",\"李沧区\",\"城阳区\",\"即墨区\",\"青岛高新技术产业开发区\",\"胶州市\",\"平度市\",\"莱西市\"],\"淄博市\":[\"淄川区\",\"张店区\",\"博山区\",\"临淄区\",\"周村区\",\"桓台县\",\"高青县\",\"沂源县\"],\"枣庄市\":[\"市中区\",\"薛城区\",\"峄城区\",\"台儿庄区\",\"山亭区\",\"滕州市\"],\"东营市\":[\"东营区\",\"河口区\",\"垦利区\",\"利津县\",\"广饶县\",\"东营经济技术开发区\",\"东营港经济开发区\"],\"烟台市\":[\"芝罘区\",\"福山区\",\"牟平区\",\"莱山区\",\"长岛县\",\"烟台高新技术产业开发区\",\"烟台经济技术开发区\",\"龙口市\",\"莱阳市\",\"莱州市\",\"蓬莱市\",\"招远市\",\"栖霞市\",\"海阳市\"],\"潍坊市\":[\"潍城区\",\"寒亭区\",\"坊子区\",\"奎文区\",\"临朐县\",\"昌乐县\",\"潍坊滨海经济技术开发区\",\"青州市\",\"诸城市\",\"寿光市\",\"安丘市\",\"高密市\",\"昌邑市\"],\"济宁市\":[\"任城区\",\"兖州区\",\"微山县\",\"鱼台县\",\"金乡县\",\"嘉祥县\",\"汶上县\",\"泗水县\",\"梁山县\",\"济宁高新技术产业开发区\",\"曲阜市\",\"邹城市\"],\"泰安市\":[\"泰山区\",\"岱岳区\",\"宁阳县\",\"东平县\",\"新泰市\",\"肥城市\"],\"威海市\":[\"环翠区\",\"文登区\",\"威海火炬高技术产业开发区\",\"威海经济技术开发区\",\"威海临港经济技术开发区\",\"荣成市\",\"乳山市\"],\"日照市\":[\"东港区\",\"岚山区\",\"五莲县\",\"莒县\",\"日照经济技术开发区\",\"日照国际海洋城\"],\"莱芜市\":[\"莱城区\",\"钢城区\"],\"临沂市\":[\"兰山区\",\"罗庄区\",\"河东区\",\"沂南县\",\"郯城县\",\"沂水县\",\"兰陵县\",\"费县\",\"平邑县\",\"莒南县\",\"蒙阴县\",\"临沭县\",\"临沂高新技术产业开发区\",\"临沂经济技术开发区\",\"临沂临港经济开发区\"],\"德州市\":[\"德城区\",\"陵城区\",\"宁津县\",\"庆云县\",\"临邑县\",\"齐河县\",\"平原县\",\"夏津县\",\"武城县\",\"德州经济技术开发区\",\"德州运河经济开发区\",\"乐陵市\",\"禹城市\"],\"聊城市\":[\"东昌府区\",\"阳谷县\",\"莘县\",\"茌平县\",\"东阿县\",\"冠县\",\"高唐县\",\"临清市\"],\"滨州市\":[\"滨城区\",\"沾化区\",\"惠民县\",\"阳信县\",\"无棣县\",\"博兴县\",\"邹平县\"],\"菏泽市\":[\"牡丹区\",\"定陶区\",\"曹县\",\"单县\",\"成武县\",\"巨野县\",\"郓城县\",\"鄄城县\",\"东明县\",\"菏泽经济技术开发区\",\"菏泽高新技术开发区\"]},\"河南省\":{\"郑州市\":[\"中原区\",\"二七区\",\"管城回族区\",\"金水区\",\"上街区\",\"惠济区\",\"中牟县\",\"郑州经济技术开发区\",\"郑州高新技术产业开发区\",\"郑州航空港经济综合实验区\",\"巩义市\",\"荥阳市\",\"新密市\",\"新郑市\",\"登封市\"],\"开封市\":[\"龙亭区\",\"顺河回族区\",\"鼓楼区\",\"禹王台区\",\"祥符区\",\"杞县\",\"通许县\",\"尉氏县\",\"兰考县\"],\"洛阳市\":[\"老城区\",\"西工区\",\"瀍河回族区\",\"涧西区\",\"吉利区\",\"洛龙区\",\"孟津县\",\"新安县\",\"栾川县\",\"嵩县\",\"汝阳县\",\"宜阳县\",\"洛宁县\",\"伊川县\",\"洛阳高新技术产业开发区\",\"偃师市\"],\"平顶山市\":[\"新华区\",\"卫东区\",\"石龙区\",\"湛河区\",\"宝丰县\",\"叶县\",\"鲁山县\",\"郏县\",\"平顶山高新技术产业开发区\",\"平顶山市新城区\",\"舞钢市\",\"汝州市\"],\"安阳市\":[\"文峰区\",\"北关区\",\"殷都区\",\"龙安区\",\"安阳县\",\"汤阴县\",\"滑县\",\"内黄县\",\"安阳高新技术产业开发区\",\"林州市\"],\"鹤壁市\":[\"鹤山区\",\"山城区\",\"淇滨区\",\"浚县\",\"淇县\",\"鹤壁经济技术开发区\"],\"新乡市\":[\"红旗区\",\"卫滨区\",\"凤泉区\",\"牧野区\",\"新乡县\",\"获嘉县\",\"原阳县\",\"延津县\",\"封丘县\",\"长垣县\",\"新乡高新技术产业开发区\",\"新乡经济技术开发区\",\"新乡市平原城乡一体化示范区\",\"卫辉市\",\"辉县市\"],\"焦作市\":[\"解放区\",\"中站区\",\"马村区\",\"山阳区\",\"修武县\",\"博爱县\",\"武陟县\",\"温县\",\"焦作城乡一体化示范区\",\"沁阳市\",\"孟州市\"],\"濮阳市\":[\"华龙区\",\"清丰县\",\"南乐县\",\"范县\",\"台前县\",\"濮阳县\",\"河南濮阳工业园区\",\"濮阳经济技术开发区\"],\"许昌市\":[\"魏都区\",\"建安区\",\"鄢陵县\",\"襄城县\",\"许昌经济技术开发区\",\"禹州市\",\"长葛市\"],\"漯河市\":[\"源汇区\",\"郾城区\",\"召陵区\",\"舞阳县\",\"临颍县\",\"漯河经济技术开发区\"],\"三门峡市\":[\"湖滨区\",\"陕州区\",\"渑池县\",\"卢氏县\",\"河南三门峡经济开发区\",\"义马市\",\"灵宝市\"],\"南阳市\":[\"宛城区\",\"卧龙区\",\"南召县\",\"方城县\",\"西峡县\",\"镇平县\",\"内乡县\",\"淅川县\",\"社旗县\",\"唐河县\",\"新野县\",\"桐柏县\",\"南阳高新技术产业开发区\",\"南阳市城乡一体化示范区\",\"邓州市\"],\"商丘市\":[\"梁园区\",\"睢阳区\",\"民权县\",\"睢县\",\"宁陵县\",\"柘城县\",\"虞城县\",\"夏邑县\",\"豫东综合物流产业聚集区\",\"河南商丘经济开发区\",\"永城市\"],\"信阳市\":[\"浉河区\",\"平桥区\",\"罗山县\",\"光山县\",\"新县\",\"商城县\",\"固始县\",\"潢川县\",\"淮滨县\",\"息县\",\"信阳高新技术产业开发区\"],\"周口市\":[\"川汇区\",\"扶沟县\",\"西华县\",\"商水县\",\"沈丘县\",\"郸城县\",\"淮阳县\",\"太康县\",\"鹿邑县\",\"河南周口经济开发区\",\"项城市\"],\"驻马店市\":[\"驿城区\",\"西平县\",\"上蔡县\",\"平舆县\",\"正阳县\",\"确山县\",\"泌阳县\",\"汝南县\",\"遂平县\",\"新蔡县\",\"河南驻马店经济开发区\"],\"省直辖县级行政区划\":[\"济源市\"]},\"湖北省\":{\"武汉市\":[\"江岸区\",\"江汉区\",\"硚口区\",\"汉阳区\",\"武昌区\",\"青山区\",\"洪山区\",\"东西湖区\",\"汉南区\",\"蔡甸区\",\"江夏区\",\"黄陂区\",\"新洲区\"],\"黄石市\":[\"黄石港区\",\"西塞山区\",\"下陆区\",\"铁山区\",\"阳新县\",\"大冶市\"],\"十堰市\":[\"茅箭区\",\"张湾区\",\"郧阳区\",\"郧西县\",\"竹山县\",\"竹溪县\",\"房县\",\"丹江口市\"],\"宜昌市\":[\"西陵区\",\"伍家岗区\",\"点军区\",\"猇亭区\",\"夷陵区\",\"远安县\",\"兴山县\",\"秭归县\",\"长阳土家族自治县\",\"五峰土家族自治县\",\"宜都市\",\"当阳市\",\"枝江市\"],\"襄阳市\":[\"襄城区\",\"樊城区\",\"襄州区\",\"南漳县\",\"谷城县\",\"保康县\",\"老河口市\",\"枣阳市\",\"宜城市\"],\"鄂州市\":[\"梁子湖区\",\"华容区\",\"鄂城区\"],\"荆门市\":[\"东宝区\",\"掇刀区\",\"京山县\",\"沙洋县\",\"钟祥市\"],\"孝感市\":[\"孝南区\",\"孝昌县\",\"大悟县\",\"云梦县\",\"应城市\",\"安陆市\",\"汉川市\"],\"荆州市\":[\"沙市区\",\"荆州区\",\"公安县\",\"监利县\",\"江陵县\",\"荆州经济技术开发区\",\"石首市\",\"洪湖市\",\"松滋市\"],\"黄冈市\":[\"黄州区\",\"团风县\",\"红安县\",\"罗田县\",\"英山县\",\"浠水县\",\"蕲春县\",\"黄梅县\",\"龙感湖管理区\",\"麻城市\",\"武穴市\"],\"咸宁市\":[\"咸安区\",\"嘉鱼县\",\"通城县\",\"崇阳县\",\"通山县\",\"赤壁市\"],\"随州市\":[\"曾都区\",\"随县\",\"广水市\"],\"恩施土家族苗族自治州\":[\"恩施市\",\"利川市\",\"建始县\",\"巴东县\",\"宣恩县\",\"咸丰县\",\"来凤县\",\"鹤峰县\"],\"省直辖县级行政区划\":[\"仙桃市\",\"潜江市\",\"天门市\",\"神农架林区\"]},\"湖南省\":{\"长沙市\":[\"芙蓉区\",\"天心区\",\"岳麓区\",\"开福区\",\"雨花区\",\"望城区\",\"长沙县\",\"浏阳市\",\"宁乡市\"],\"株洲市\":[\"荷塘区\",\"芦淞区\",\"石峰区\",\"天元区\",\"株洲县\",\"攸县\",\"茶陵县\",\"炎陵县\",\"云龙示范区\",\"醴陵市\"],\"湘潭市\":[\"雨湖区\",\"岳塘区\",\"湘潭县\",\"湖南湘潭高新技术产业园区\",\"湘潭昭山示范区\",\"湘潭九华示范区\",\"湘乡市\",\"韶山市\"],\"衡阳市\":[\"珠晖区\",\"雁峰区\",\"石鼓区\",\"蒸湘区\",\"南岳区\",\"衡阳县\",\"衡南县\",\"衡山县\",\"衡东县\",\"祁东县\",\"衡阳综合保税区\",\"湖南衡阳高新技术产业园区\",\"湖南衡阳松木经济开发区\",\"耒阳市\",\"常宁市\"],\"邵阳市\":[\"双清区\",\"大祥区\",\"北塔区\",\"邵东县\",\"新邵县\",\"邵阳县\",\"隆回县\",\"洞口县\",\"绥宁县\",\"新宁县\",\"城步苗族自治县\",\"武冈市\"],\"岳阳市\":[\"岳阳楼区\",\"云溪区\",\"君山区\",\"岳阳县\",\"华容县\",\"湘阴县\",\"平江县\",\"岳阳市屈原管理区\",\"汨罗市\",\"临湘市\"],\"常德市\":[\"武陵区\",\"鼎城区\",\"安乡县\",\"汉寿县\",\"澧县\",\"临澧县\",\"桃源县\",\"石门县\",\"常德市西洞庭管理区\",\"津市市\"],\"张家界市\":[\"永定区\",\"武陵源区\",\"慈利县\",\"桑植县\"],\"益阳市\":[\"资阳区\",\"赫山区\",\"南县\",\"桃江县\",\"安化县\",\"益阳市大通湖管理区\",\"湖南益阳高新技术产业园区\",\"沅江市\"],\"郴州市\":[\"北湖区\",\"苏仙区\",\"桂阳县\",\"宜章县\",\"永兴县\",\"嘉禾县\",\"临武县\",\"汝城县\",\"桂东县\",\"安仁县\",\"资兴市\"],\"永州市\":[\"零陵区\",\"冷水滩区\",\"祁阳县\",\"东安县\",\"双牌县\",\"道县\",\"江永县\",\"宁远县\",\"蓝山县\",\"新田县\",\"江华瑶族自治县\",\"永州经济技术开发区\",\"永州市金洞管理区\",\"永州市回龙圩管理区\"],\"怀化市\":[\"鹤城区\",\"中方县\",\"沅陵县\",\"辰溪县\",\"溆浦县\",\"会同县\",\"麻阳苗族自治县\",\"新晃侗族自治县\",\"芷江侗族自治县\",\"靖州苗族侗族自治县\",\"通道侗族自治县\",\"怀化市洪江管理区\",\"洪江市\"],\"娄底市\":[\"娄星区\",\"双峰县\",\"新化县\",\"冷水江市\",\"涟源市\"],\"湘西土家族苗族自治州\":[\"吉首市\",\"泸溪县\",\"凤凰县\",\"花垣县\",\"保靖县\",\"古丈县\",\"永顺县\",\"龙山县\",\"湖南吉首经济开发区\",\"湖南永顺经济开发区\"]},\"广东省\":{\"广州市\":[\"荔湾区\",\"越秀区\",\"海珠区\",\"天河区\",\"白云区\",\"黄埔区\",\"番禺区\",\"花都区\",\"南沙区\",\"从化区\",\"增城区\"],\"韶关市\":[\"武江区\",\"浈江区\",\"曲江区\",\"始兴县\",\"仁化县\",\"翁源县\",\"乳源瑶族自治县\",\"新丰县\",\"乐昌市\",\"南雄市\"],\"深圳市\":[\"罗湖区\",\"福田区\",\"南山区\",\"宝安区\",\"龙岗区\",\"盐田区\",\"龙华区\",\"坪山区\"],\"珠海市\":[\"香洲区\",\"斗门区\",\"金湾区\"],\"汕头市\":[\"龙湖区\",\"金平区\",\"濠江区\",\"潮阳区\",\"潮南区\",\"澄海区\",\"南澳县\"],\"佛山市\":[\"禅城区\",\"南海区\",\"顺德区\",\"三水区\",\"高明区\"],\"江门市\":[\"蓬江区\",\"江海区\",\"新会区\",\"台山市\",\"开平市\",\"鹤山市\",\"恩平市\"],\"湛江市\":[\"赤坎区\",\"霞山区\",\"坡头区\",\"麻章区\",\"遂溪县\",\"徐闻县\",\"廉江市\",\"雷州市\",\"吴川市\"],\"茂名市\":[\"茂南区\",\"电白区\",\"高州市\",\"化州市\",\"信宜市\"],\"肇庆市\":[\"端州区\",\"鼎湖区\",\"高要区\",\"广宁县\",\"怀集县\",\"封开县\",\"德庆县\",\"四会市\"],\"惠州市\":[\"惠城区\",\"惠阳区\",\"博罗县\",\"惠东县\",\"龙门县\"],\"梅州市\":[\"梅江区\",\"梅县区\",\"大埔县\",\"丰顺县\",\"五华县\",\"平远县\",\"蕉岭县\",\"兴宁市\"],\"汕尾市\":[\"城区\",\"海丰县\",\"陆河县\",\"陆丰市\"],\"河源市\":[\"源城区\",\"紫金县\",\"龙川县\",\"连平县\",\"和平县\",\"东源县\"],\"阳江市\":[\"江城区\",\"阳东区\",\"阳西县\",\"阳春市\"],\"清远市\":[\"清城区\",\"清新区\",\"佛冈县\",\"阳山县\",\"连山壮族瑶族自治县\",\"连南瑶族自治县\",\"英德市\",\"连州市\"],\"东莞市\":[\"东城街道\",\"南城街道\",\"万江街道\",\"莞城街道\",\"石碣镇\",\"石龙镇\",\"茶山镇\",\"石排镇\",\"企石镇\",\"横沥镇\",\"桥头镇\",\"谢岗镇\",\"东坑镇\",\"常平镇\",\"寮步镇\",\"樟木头镇\",\"大朗镇\",\"黄江镇\",\"清溪镇\",\"塘厦镇\",\"凤岗镇\",\"大岭山镇\",\"长安镇\",\"虎门镇\",\"厚街镇\",\"沙田镇\",\"道滘镇\",\"洪梅镇\",\"麻涌镇\",\"望牛墩镇\",\"中堂镇\",\"高埗镇\",\"松山湖管委会\",\"东莞港\",\"东莞生态园\"],\"中山市\":[\"石岐区街道\",\"东区街道\",\"火炬开发区街道\",\"西区街道\",\"南区街道\",\"五桂山街道\",\"小榄镇\",\"黄圃镇\",\"民众镇\",\"东凤镇\",\"东升镇\",\"古镇镇\",\"沙溪镇\",\"坦洲镇\",\"港口镇\",\"三角镇\",\"横栏镇\",\"南头镇\",\"阜沙镇\",\"南朗镇\",\"三乡镇\",\"板芙镇\",\"大涌镇\",\"神湾镇\"],\"潮州市\":[\"湘桥区\",\"潮安区\",\"饶平县\"],\"揭阳市\":[\"榕城区\",\"揭东区\",\"揭西县\",\"惠来县\",\"普宁市\"],\"云浮市\":[\"云城区\",\"云安区\",\"新兴县\",\"郁南县\",\"罗定市\"]},\"广西壮族自治区\":{\"南宁市\":[\"兴宁区\",\"青秀区\",\"江南区\",\"西乡塘区\",\"良庆区\",\"邕宁区\",\"武鸣区\",\"隆安县\",\"马山县\",\"上林县\",\"宾阳县\",\"横县\"],\"柳州市\":[\"城中区\",\"鱼峰区\",\"柳南区\",\"柳北区\",\"柳江区\",\"柳城县\",\"鹿寨县\",\"融安县\",\"融水苗族自治县\",\"三江侗族自治县\"],\"桂林市\":[\"秀峰区\",\"叠彩区\",\"象山区\",\"七星区\",\"雁山区\",\"临桂区\",\"阳朔县\",\"灵川县\",\"全州县\",\"兴安县\",\"永福县\",\"灌阳县\",\"龙胜各族自治县\",\"资源县\",\"平乐县\",\"荔浦县\",\"恭城瑶族自治县\"],\"梧州市\":[\"万秀区\",\"长洲区\",\"龙圩区\",\"苍梧县\",\"藤县\",\"蒙山县\",\"岑溪市\"],\"北海市\":[\"海城区\",\"银海区\",\"铁山港区\",\"合浦县\"],\"防城港市\":[\"港口区\",\"防城区\",\"上思县\",\"东兴市\"],\"钦州市\":[\"钦南区\",\"钦北区\",\"灵山县\",\"浦北县\"],\"贵港市\":[\"港北区\",\"港南区\",\"覃塘区\",\"平南县\",\"桂平市\"],\"玉林市\":[\"玉州区\",\"福绵区\",\"容县\",\"陆川县\",\"博白县\",\"兴业县\",\"北流市\"],\"百色市\":[\"右江区\",\"田阳县\",\"田东县\",\"平果县\",\"德保县\",\"那坡县\",\"凌云县\",\"乐业县\",\"田林县\",\"西林县\",\"隆林各族自治县\",\"靖西市\"],\"贺州市\":[\"八步区\",\"平桂区\",\"昭平县\",\"钟山县\",\"富川瑶族自治县\"],\"河池市\":[\"金城江区\",\"宜州区\",\"南丹县\",\"天峨县\",\"凤山县\",\"东兰县\",\"罗城仫佬族自治县\",\"环江毛南族自治县\",\"巴马瑶族自治县\",\"都安瑶族自治县\",\"大化瑶族自治县\"],\"来宾市\":[\"兴宾区\",\"忻城县\",\"象州县\",\"武宣县\",\"金秀瑶族自治县\",\"合山市\"],\"崇左市\":[\"江州区\",\"扶绥县\",\"宁明县\",\"龙州县\",\"大新县\",\"天等县\",\"凭祥市\"]},\"海南省\":{\"海口市\":[\"秀英区\",\"龙华区\",\"琼山区\",\"美兰区\"],\"三亚市\":[\"海棠区\",\"吉阳区\",\"天涯区\",\"崖州区\"],\"三沙市\":[\"西沙群岛\",\"南沙群岛\",\"中沙群岛的岛礁及其海域\"],\"儋州市\":[\"那大镇\",\"和庆镇\",\"南丰镇\",\"大成镇\",\"雅星镇\",\"兰洋镇\",\"光村镇\",\"木棠镇\",\"海头镇\",\"峨蔓镇\",\"王五镇\",\"白马井镇\",\"中和镇\",\"排浦镇\",\"东成镇\",\"新州镇\",\"洋浦经济开发区\",\"华南热作学院\"],\"省直辖县级行政区划\":[\"五指山市\",\"琼海市\",\"文昌市\",\"万宁市\",\"东方市\",\"定安县\",\"屯昌县\",\"澄迈县\",\"临高县\",\"白沙黎族自治县\",\"昌江黎族自治县\",\"乐东黎族自治县\",\"陵水黎族自治县\",\"保亭黎族苗族自治县\",\"琼中黎族苗族自治县\"]},\"重庆市\":{\"市辖区\":[\"万州区\",\"涪陵区\",\"渝中区\",\"大渡口区\",\"江北区\",\"沙坪坝区\",\"九龙坡区\",\"南岸区\",\"北碚区\",\"綦江区\",\"大足区\",\"渝北区\",\"巴南区\",\"黔江区\",\"长寿区\",\"江津区\",\"合川区\",\"永川区\",\"南川区\",\"璧山区\",\"铜梁区\",\"潼南区\",\"荣昌区\",\"开州区\",\"梁平区\",\"武隆区\"],\"县\":[\"城口县\",\"丰都县\",\"垫江县\",\"忠县\",\"云阳县\",\"奉节县\",\"巫山县\",\"巫溪县\",\"石柱土家族自治县\",\"秀山土家族苗族自治县\",\"酉阳土家族苗族自治县\",\"彭水苗族土家族自治县\"]},\"四川省\":{\"成都市\":[\"锦江区\",\"青羊区\",\"金牛区\",\"武侯区\",\"成华区\",\"龙泉驿区\",\"青白江区\",\"新都区\",\"温江区\",\"双流区\",\"郫都区\",\"金堂县\",\"大邑县\",\"蒲江县\",\"新津县\",\"都江堰市\",\"彭州市\",\"邛崃市\",\"崇州市\",\"简阳市\"],\"自贡市\":[\"自流井区\",\"贡井区\",\"大安区\",\"沿滩区\",\"荣县\",\"富顺县\"],\"攀枝花市\":[\"东区\",\"西区\",\"仁和区\",\"米易县\",\"盐边县\"],\"泸州市\":[\"江阳区\",\"纳溪区\",\"龙马潭区\",\"泸县\",\"合江县\",\"叙永县\",\"古蔺县\"],\"德阳市\":[\"旌阳区\",\"罗江区\",\"中江县\",\"广汉市\",\"什邡市\",\"绵竹市\"],\"绵阳市\":[\"涪城区\",\"游仙区\",\"安州区\",\"三台县\",\"盐亭县\",\"梓潼县\",\"北川羌族自治县\",\"平武县\",\"江油市\"],\"广元市\":[\"利州区\",\"昭化区\",\"朝天区\",\"旺苍县\",\"青川县\",\"剑阁县\",\"苍溪县\"],\"遂宁市\":[\"船山区\",\"安居区\",\"蓬溪县\",\"射洪县\",\"大英县\"],\"内江市\":[\"市中区\",\"东兴区\",\"威远县\",\"资中县\",\"内江经济开发区\",\"隆昌市\"],\"乐山市\":[\"市中区\",\"沙湾区\",\"五通桥区\",\"金口河区\",\"犍为县\",\"井研县\",\"夹江县\",\"沐川县\",\"峨边彝族自治县\",\"马边彝族自治县\",\"峨眉山市\"],\"南充市\":[\"顺庆区\",\"高坪区\",\"嘉陵区\",\"南部县\",\"营山县\",\"蓬安县\",\"仪陇县\",\"西充县\",\"阆中市\"],\"眉山市\":[\"东坡区\",\"彭山区\",\"仁寿县\",\"洪雅县\",\"丹棱县\",\"青神县\"],\"宜宾市\":[\"翠屏区\",\"南溪区\",\"宜宾县\",\"江安县\",\"长宁县\",\"高县\",\"珙县\",\"筠连县\",\"兴文县\",\"屏山县\"],\"广安市\":[\"广安区\",\"前锋区\",\"岳池县\",\"武胜县\",\"邻水县\",\"华蓥市\"],\"达州市\":[\"通川区\",\"达川区\",\"宣汉县\",\"开江县\",\"大竹县\",\"渠县\",\"达州经济开发区\",\"万源市\"],\"雅安市\":[\"雨城区\",\"名山区\",\"荥经县\",\"汉源县\",\"石棉县\",\"天全县\",\"芦山县\",\"宝兴县\"],\"巴中市\":[\"巴州区\",\"恩阳区\",\"通江县\",\"南江县\",\"平昌县\",\"巴中经济开发区\"],\"资阳市\":[\"雁江区\",\"安岳县\",\"乐至县\"],\"阿坝藏族羌族自治州\":[\"马尔康市\",\"汶川县\",\"理县\",\"茂县\",\"松潘县\",\"九寨沟县\",\"金川县\",\"小金县\",\"黑水县\",\"壤塘县\",\"阿坝县\",\"若尔盖县\",\"红原县\"],\"甘孜藏族自治州\":[\"康定市\",\"泸定县\",\"丹巴县\",\"九龙县\",\"雅江县\",\"道孚县\",\"炉霍县\",\"甘孜县\",\"新龙县\",\"德格县\",\"白玉县\",\"石渠县\",\"色达县\",\"理塘县\",\"巴塘县\",\"乡城县\",\"稻城县\",\"得荣县\"],\"凉山彝族自治州\":[\"西昌市\",\"木里藏族自治县\",\"盐源县\",\"德昌县\",\"会理县\",\"会东县\",\"宁南县\",\"普格县\",\"布拖县\",\"金阳县\",\"昭觉县\",\"喜德县\",\"冕宁县\",\"越西县\",\"甘洛县\",\"美姑县\",\"雷波县\"]},\"贵州省\":{\"贵阳市\":[\"南明区\",\"云岩区\",\"花溪区\",\"乌当区\",\"白云区\",\"观山湖区\",\"开阳县\",\"息烽县\",\"修文县\",\"清镇市\"],\"六盘水市\":[\"钟山区\",\"六枝特区\",\"水城县\",\"盘州市\"],\"遵义市\":[\"红花岗区\",\"汇川区\",\"播州区\",\"桐梓县\",\"绥阳县\",\"正安县\",\"道真仡佬族苗族自治县\",\"务川仡佬族苗族自治县\",\"凤冈县\",\"湄潭县\",\"余庆县\",\"习水县\",\"赤水市\",\"仁怀市\"],\"安顺市\":[\"西秀区\",\"平坝区\",\"普定县\",\"镇宁布依族苗族自治县\",\"关岭布依族苗族自治县\",\"紫云苗族布依族自治县\"],\"毕节市\":[\"七星关区\",\"大方县\",\"黔西县\",\"金沙县\",\"织金县\",\"纳雍县\",\"威宁彝族回族苗族自治县\",\"赫章县\"],\"铜仁市\":[\"碧江区\",\"万山区\",\"江口县\",\"玉屏侗族自治县\",\"石阡县\",\"思南县\",\"印江土家族苗族自治县\",\"德江县\",\"沿河土家族自治县\",\"松桃苗族自治县\"],\"黔西南布依族苗族自治州\":[\"兴义市\",\"兴仁县\",\"普安县\",\"晴隆县\",\"贞丰县\",\"望谟县\",\"册亨县\",\"安龙县\"],\"黔东南苗族侗族自治州\":[\"凯里市\",\"黄平县\",\"施秉县\",\"三穗县\",\"镇远县\",\"岑巩县\",\"天柱县\",\"锦屏县\",\"剑河县\",\"台江县\",\"黎平县\",\"榕江县\",\"从江县\",\"雷山县\",\"麻江县\",\"丹寨县\"],\"黔南布依族苗族自治州\":[\"都匀市\",\"福泉市\",\"荔波县\",\"贵定县\",\"瓮安县\",\"独山县\",\"平塘县\",\"罗甸县\",\"长顺县\",\"龙里县\",\"惠水县\",\"三都水族自治县\"]},\"云南省\":{\"昆明市\":[\"五华区\",\"盘龙区\",\"官渡区\",\"西山区\",\"东川区\",\"呈贡区\",\"晋宁区\",\"富民县\",\"宜良县\",\"石林彝族自治县\",\"嵩明县\",\"禄劝彝族苗族自治县\",\"寻甸回族彝族自治县\",\"安宁市\"],\"曲靖市\":[\"麒麟区\",\"沾益区\",\"马龙县\",\"陆良县\",\"师宗县\",\"罗平县\",\"富源县\",\"会泽县\",\"宣威市\"],\"玉溪市\":[\"红塔区\",\"江川区\",\"澄江县\",\"通海县\",\"华宁县\",\"易门县\",\"峨山彝族自治县\",\"新平彝族傣族自治县\",\"元江哈尼族彝族傣族自治县\"],\"保山市\":[\"隆阳区\",\"施甸县\",\"龙陵县\",\"昌宁县\",\"腾冲市\"],\"昭通市\":[\"昭阳区\",\"鲁甸县\",\"巧家县\",\"盐津县\",\"大关县\",\"永善县\",\"绥江县\",\"镇雄县\",\"彝良县\",\"威信县\",\"水富县\"],\"丽江市\":[\"古城区\",\"玉龙纳西族自治县\",\"永胜县\",\"华坪县\",\"宁蒗彝族自治县\"],\"普洱市\":[\"思茅区\",\"宁洱哈尼族彝族自治县\",\"墨江哈尼族自治县\",\"景东彝族自治县\",\"景谷傣族彝族自治县\",\"镇沅彝族哈尼族拉祜族自治县\",\"江城哈尼族彝族自治县\",\"孟连傣族拉祜族佤族自治县\",\"澜沧拉祜族自治县\",\"西盟佤族自治县\"],\"临沧市\":[\"临翔区\",\"凤庆县\",\"云县\",\"永德县\",\"镇康县\",\"双江拉祜族佤族布朗族傣族自治县\",\"耿马傣族佤族自治县\",\"沧源佤族自治县\"],\"楚雄彝族自治州\":[\"楚雄市\",\"双柏县\",\"牟定县\",\"南华县\",\"姚安县\",\"大姚县\",\"永仁县\",\"元谋县\",\"武定县\",\"禄丰县\"],\"红河哈尼族彝族自治州\":[\"个旧市\",\"开远市\",\"蒙自市\",\"弥勒市\",\"屏边苗族自治县\",\"建水县\",\"石屏县\",\"泸西县\",\"元阳县\",\"红河县\",\"金平苗族瑶族傣族自治县\",\"绿春县\",\"河口瑶族自治县\"],\"文山壮族苗族自治州\":[\"文山市\",\"砚山县\",\"西畴县\",\"麻栗坡县\",\"马关县\",\"丘北县\",\"广南县\",\"富宁县\"],\"西双版纳傣族自治州\":[\"景洪市\",\"勐海县\",\"勐腊县\"],\"大理白族自治州\":[\"大理市\",\"漾濞彝族自治县\",\"祥云县\",\"宾川县\",\"弥渡县\",\"南涧彝族自治县\",\"巍山彝族回族自治县\",\"永平县\",\"云龙县\",\"洱源县\",\"剑川县\",\"鹤庆县\"],\"德宏傣族景颇族自治州\":[\"瑞丽市\",\"芒市\",\"梁河县\",\"盈江县\",\"陇川县\"],\"怒江傈僳族自治州\":[\"泸水市\",\"福贡县\",\"贡山独龙族怒族自治县\",\"兰坪白族普米族自治县\"],\"迪庆藏族自治州\":[\"香格里拉市\",\"德钦县\",\"维西傈僳族自治县\"]},\"西藏自治区\":{\"拉萨市\":[\"城关区\",\"堆龙德庆区\",\"林周县\",\"当雄县\",\"尼木县\",\"曲水县\",\"达孜县\",\"墨竹工卡县\",\"格尔木藏青工业园区\",\"拉萨经济技术开发区\",\"西藏文化旅游创意园区\",\"达孜工业园区\"],\"日喀则市\":[\"桑珠孜区\",\"南木林县\",\"江孜县\",\"定日县\",\"萨迦县\",\"拉孜县\",\"昂仁县\",\"谢通门县\",\"白朗县\",\"仁布县\",\"康马县\",\"定结县\",\"仲巴县\",\"亚东县\",\"吉隆县\",\"聂拉木县\",\"萨嘎县\",\"岗巴县\"],\"昌都市\":[\"卡若区\",\"江达县\",\"贡觉县\",\"类乌齐县\",\"丁青县\",\"察雅县\",\"八宿县\",\"左贡县\",\"芒康县\",\"洛隆县\",\"边坝县\"],\"林芝市\":[\"巴宜区\",\"工布江达县\",\"米林县\",\"墨脱县\",\"波密县\",\"察隅县\",\"朗县\"],\"山南市\":[\"乃东区\",\"扎囊县\",\"贡嘎县\",\"桑日县\",\"琼结县\",\"曲松县\",\"措美县\",\"洛扎县\",\"加查县\",\"隆子县\",\"错那县\",\"浪卡子县\"],\"那曲地区\":[\"那曲县\",\"嘉黎县\",\"比如县\",\"聂荣县\",\"安多县\",\"申扎县\",\"索县\",\"班戈县\",\"巴青县\",\"尼玛县\",\"双湖县\"],\"阿里地区\":[\"普兰县\",\"札达县\",\"噶尔县\",\"日土县\",\"革吉县\",\"改则县\",\"措勤县\"]},\"陕西省\":{\"西安市\":[\"新城区\",\"碑林区\",\"莲湖区\",\"灞桥区\",\"未央区\",\"雁塔区\",\"阎良区\",\"临潼区\",\"长安区\",\"高陵区\",\"鄠邑区\",\"蓝田县\",\"周至县\"],\"铜川市\":[\"王益区\",\"印台区\",\"耀州区\",\"宜君县\"],\"宝鸡市\":[\"渭滨区\",\"金台区\",\"陈仓区\",\"凤翔县\",\"岐山县\",\"扶风县\",\"眉县\",\"陇县\",\"千阳县\",\"麟游县\",\"凤县\",\"太白县\"],\"咸阳市\":[\"秦都区\",\"杨陵区\",\"渭城区\",\"三原县\",\"泾阳县\",\"乾县\",\"礼泉县\",\"永寿县\",\"彬县\",\"长武县\",\"旬邑县\",\"淳化县\",\"武功县\",\"兴平市\"],\"渭南市\":[\"临渭区\",\"华州区\",\"潼关县\",\"大荔县\",\"合阳县\",\"澄城县\",\"蒲城县\",\"白水县\",\"富平县\",\"韩城市\",\"华阴市\"],\"延安市\":[\"宝塔区\",\"安塞区\",\"延长县\",\"延川县\",\"子长县\",\"志丹县\",\"吴起县\",\"甘泉县\",\"富县\",\"洛川县\",\"宜川县\",\"黄龙县\",\"黄陵县\"],\"汉中市\":[\"汉台区\",\"南郑区\",\"城固县\",\"洋县\",\"西乡县\",\"勉县\",\"宁强县\",\"略阳县\",\"镇巴县\",\"留坝县\",\"佛坪县\"],\"榆林市\":[\"榆阳区\",\"横山区\",\"府谷县\",\"靖边县\",\"定边县\",\"绥德县\",\"米脂县\",\"佳县\",\"吴堡县\",\"清涧县\",\"子洲县\",\"神木市\"],\"安康市\":[\"汉滨区\",\"汉阴县\",\"石泉县\",\"宁陕县\",\"紫阳县\",\"岚皋县\",\"平利县\",\"镇坪县\",\"旬阳县\",\"白河县\"],\"商洛市\":[\"商州区\",\"洛南县\",\"丹凤县\",\"商南县\",\"山阳县\",\"镇安县\",\"柞水县\"]},\"甘肃省\":{\"兰州市\":[\"城关区\",\"七里河区\",\"西固区\",\"安宁区\",\"红古区\",\"永登县\",\"皋兰县\",\"榆中县\",\"兰州新区\"],\"嘉峪关市\":[\"新城镇\",\"峪泉镇\",\"文殊镇\",\"雄关区\",\"镜铁区\",\"长城区\"],\"金昌市\":[\"金川区\",\"永昌县\"],\"白银市\":[\"白银区\",\"平川区\",\"靖远县\",\"会宁县\",\"景泰县\"],\"天水市\":[\"秦州区\",\"麦积区\",\"清水县\",\"秦安县\",\"甘谷县\",\"武山县\",\"张家川回族自治县\"],\"武威市\":[\"凉州区\",\"民勤县\",\"古浪县\",\"天祝藏族自治县\"],\"张掖市\":[\"甘州区\",\"肃南裕固族自治县\",\"民乐县\",\"临泽县\",\"高台县\",\"山丹县\"],\"平凉市\":[\"崆峒区\",\"泾川县\",\"灵台县\",\"崇信县\",\"华亭县\",\"庄浪县\",\"静宁县\",\"平凉工业园区\"],\"酒泉市\":[\"肃州区\",\"金塔县\",\"瓜州县\",\"肃北蒙古族自治县\",\"阿克塞哈萨克族自治县\",\"玉门市\",\"敦煌市\"],\"庆阳市\":[\"西峰区\",\"庆城县\",\"环县\",\"华池县\",\"合水县\",\"正宁县\",\"宁县\",\"镇原县\"],\"定西市\":[\"安定区\",\"通渭县\",\"陇西县\",\"渭源县\",\"临洮县\",\"漳县\",\"岷县\"],\"陇南市\":[\"武都区\",\"成县\",\"文县\",\"宕昌县\",\"康县\",\"西和县\",\"礼县\",\"徽县\",\"两当县\"],\"临夏回族自治州\":[\"临夏市\",\"临夏县\",\"康乐县\",\"永靖县\",\"广河县\",\"和政县\",\"东乡族自治县\",\"积石山保安族东乡族撒拉族自治县\"],\"甘南藏族自治州\":[\"合作市\",\"临潭县\",\"卓尼县\",\"舟曲县\",\"迭部县\",\"玛曲县\",\"碌曲县\",\"夏河县\"]},\"青海省\":{\"西宁市\":[\"城东区\",\"城中区\",\"城西区\",\"城北区\",\"大通回族土族自治县\",\"湟中县\",\"湟源县\"],\"海东市\":[\"乐都区\",\"平安区\",\"民和回族土族自治县\",\"互助土族自治县\",\"化隆回族自治县\",\"循化撒拉族自治县\"],\"海北藏族自治州\":[\"门源回族自治县\",\"祁连县\",\"海晏县\",\"刚察县\"],\"黄南藏族自治州\":[\"同仁县\",\"尖扎县\",\"泽库县\",\"河南蒙古族自治县\"],\"海南藏族自治州\":[\"共和县\",\"同德县\",\"贵德县\",\"兴海县\",\"贵南县\"],\"果洛藏族自治州\":[\"玛沁县\",\"班玛县\",\"甘德县\",\"达日县\",\"久治县\",\"玛多县\"],\"玉树藏族自治州\":[\"玉树市\",\"杂多县\",\"称多县\",\"治多县\",\"囊谦县\",\"曲麻莱县\"],\"海西蒙古族藏族自治州\":[\"格尔木市\",\"德令哈市\",\"乌兰县\",\"都兰县\",\"天峻县\",\"大柴旦行政委员会\",\"冷湖行政委员会\",\"茫崖行政委员会\"]},\"宁夏回族自治区\":{\"银川市\":[\"兴庆区\",\"西夏区\",\"金凤区\",\"永宁县\",\"贺兰县\",\"灵武市\"],\"石嘴山市\":[\"大武口区\",\"惠农区\",\"平罗县\"],\"吴忠市\":[\"利通区\",\"红寺堡区\",\"盐池县\",\"同心县\",\"青铜峡市\"],\"固原市\":[\"原州区\",\"西吉县\",\"隆德县\",\"泾源县\",\"彭阳县\"],\"中卫市\":[\"沙坡头区\",\"中宁县\",\"海原县\"]},\"新疆维吾尔自治区\":{\"乌鲁木齐市\":[\"天山区\",\"沙依巴克区\",\"新市区\",\"水磨沟区\",\"头屯河区\",\"达坂城区\",\"米东区\",\"乌鲁木齐县\",\"乌鲁木齐经济技术开发区\",\"乌鲁木齐高新技术产业开发区\"],\"克拉玛依市\":[\"独山子区\",\"克拉玛依区\",\"白碱滩区\",\"乌尔禾区\"],\"吐鲁番市\":[\"高昌区\",\"鄯善县\",\"托克逊县\"],\"哈密市\":[\"伊州区\",\"巴里坤哈萨克自治县\",\"伊吾县\"],\"昌吉回族自治州\":[\"昌吉市\",\"阜康市\",\"呼图壁县\",\"玛纳斯县\",\"奇台县\",\"吉木萨尔县\",\"木垒哈萨克自治县\"],\"博尔塔拉蒙古自治州\":[\"博乐市\",\"阿拉山口市\",\"精河县\",\"温泉县\"],\"巴音郭楞蒙古自治州\":[\"库尔勒市\",\"轮台县\",\"尉犁县\",\"若羌县\",\"且末县\",\"焉耆回族自治县\",\"和静县\",\"和硕县\",\"博湖县\",\"库尔勒经济技术开发区\"],\"阿克苏地区\":[\"阿克苏市\",\"温宿县\",\"库车县\",\"沙雅县\",\"新和县\",\"拜城县\",\"乌什县\",\"阿瓦提县\",\"柯坪县\"],\"克孜勒苏柯尔克孜自治州\":[\"阿图什市\",\"阿克陶县\",\"阿合奇县\",\"乌恰县\"],\"喀什地区\":[\"喀什市\",\"疏附县\",\"疏勒县\",\"英吉沙县\",\"泽普县\",\"莎车县\",\"叶城县\",\"麦盖提县\",\"岳普湖县\",\"伽师县\",\"巴楚县\",\"塔什库尔干塔吉克自治县\"],\"和田地区\":[\"和田市\",\"和田县\",\"墨玉县\",\"皮山县\",\"洛浦县\",\"策勒县\",\"于田县\",\"民丰县\"],\"伊犁哈萨克自治州\":[\"伊宁市\",\"奎屯市\",\"霍尔果斯市\",\"伊宁县\",\"察布查尔锡伯自治县\",\"霍城县\",\"巩留县\",\"新源县\",\"昭苏县\",\"特克斯县\",\"尼勒克县\"],\"塔城地区\":[\"塔城市\",\"乌苏市\",\"额敏县\",\"沙湾县\",\"托里县\",\"裕民县\",\"和布克赛尔蒙古自治县\"],\"阿勒泰地区\":[\"阿勒泰市\",\"布尔津县\",\"富蕴县\",\"福海县\",\"哈巴河县\",\"青河县\",\"吉木乃县\"],\"自治区直辖县级行政区划\":[\"石河子市\",\"阿拉尔市\",\"图木舒克市\",\"五家渠市\",\"铁门关市\"]},\"香港\":{\"市辖区\":[\"中西区\",\"东区\",\"九龙城区\",\"南区\",\"深水区\",\"湾仔区\",\"黄大仙区\",\"油尖旺区\",\"离岛区\",\"葵青区\",\"北区\",\"西贡区\",\"沙田区\",\"屯门区\",\"大埔区\",\"荃湾区\",\"元朗区\"]},\"澳门\":{\"市辖区\":[\"花地玛堂区\",\"圣安多尼堂区\",\"大堂区\",\"望德堂区\",\"风顺堂区\",\"嘉模堂区\",\"圣方济各堂区\"]},\"台湾\":{\"省辖区\":[\"台北市\",\"高雄市\",\"基隆市\",\"台中市\",\"台南市\",\"新竹市\",\"嘉义市\",\"台北县\",\"宜兰县\",\"新竹县\",\"桃园县\",\"苗栗县\",\"台中县\",\"彰化县\",\"南投县\",\"嘉义县\",\"云林县\",\"台南县\",\"高雄县\",\"屏东县\",\"台东县\",\"花莲县\",\"澎湖县\"]},\"国外\":{\"\":[\"\"]}}");/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"giftConfirm"},[(_vm.result.advertImg)?_c('div',{staticClass:"banner",on:{"click":_vm.toAd}},[_c('img',{attrs:{"src":_vm.result.advertImg,"alt":"赠品图片"}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"model",staticStyle:{"border":"0"}},[_vm._m(0),_vm._v(" "),_c('ul',{staticClass:"gitList"},[_vm._l((_vm.giftList),function(item){return _c('li',{key:item.id,on:{"click":function($event){return _vm.toggleSelect(item)}}},[_c('i',{class:{selected: item.flag}}),_vm._v(" "),_c('img',{attrs:{"src":'http://static2.kaxiuyun.com/' + item.img,"alt":""}}),_vm._v(" "),_c('div',[_vm._v("\n          "+_vm._s(item.name)+"\n        ")])])}),_vm._v(" "),(_vm.giftType==1)?_c('div',{staticClass:"ticketsNum"},[_c('p',[_vm._v("本次领取消耗"+_vm._s(_vm.selectGifts)+"张会员礼品券")]),_vm._v(" "),_c('p',[_vm._v("您当前剩余"+_vm._s(_vm.giftCouponCount)+"张礼品券")])]):_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"model"},[_vm._m(1),_vm._v(" "),_c('ul',{staticClass:"userList"},[_c('li',[_c('span',[_vm._v("姓名")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.userName),expression:"userName"}],attrs:{"type":"text","placeholder":"请输入收货人姓名"},domProps:{"value":(_vm.userName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.userName=$event.target.value}}})]),_vm._v(" "),_c('li',[_c('span',[_vm._v("电话")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.userphone),expression:"userphone"}],attrs:{"type":"text","placeholder":"请输入收货人电话","maxlength":"11"},domProps:{"value":(_vm.userphone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.userphone=$event.target.value}}})]),_vm._v(" "),_c('li',{staticClass:"special"},[_c('span',[_vm._v("所在地区")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.address1),expression:"address1"}],attrs:{"type":"text","placeholder":"请选择收货地址","readonly":""},domProps:{"value":(_vm.address1)},on:{"input":function($event){if($event.target.composing){ return; }_vm.address1=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"mask",on:{"click":_vm.showPicker1}})]),_vm._v(" "),_c('li',{staticClass:"address"},[_c('span',[_vm._v("详细地址")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.addressDetailnew),expression:"addressDetailnew"}],attrs:{"placeholder":"街道、门牌号"},domProps:{"value":(_vm.addressDetailnew)},on:{"input":function($event){if($event.target.composing){ return; }_vm.addressDetailnew=$event.target.value}}})]),_vm._v(" "),_c('li',{staticClass:"special"},[_c('span',[_vm._v("门店性质")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.natureResult),expression:"natureResult"}],attrs:{"type":"text","placeholder":"请选择","readonly":""},domProps:{"value":(_vm.natureResult)},on:{"input":function($event){if($event.target.composing){ return; }_vm.natureResult=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"mask",on:{"click":_vm.tomemberStoreNature}})]),_vm._v(" "),_c('li',{staticClass:"special"},[_c('span',[_vm._v("业务范围")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.userProjectResult),expression:"userProjectResult"}],attrs:{"type":"text","placeholder":"请选择","readonly":""},domProps:{"value":(_vm.userProjectResult)},on:{"input":function($event){if($event.target.composing){ return; }_vm.userProjectResult=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"mask",on:{"click":_vm.tomemberBusinessScope}})]),_vm._v(" "),_c('li',{staticClass:"special"},[_c('span',[_vm._v("邮寄方式")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.shippingMethodsResult),expression:"shippingMethodsResult"}],attrs:{"type":"text","placeholder":"请选择","readonly":""},domProps:{"value":(_vm.shippingMethodsResult)},on:{"input":function($event){if($event.target.composing){ return; }_vm.shippingMethodsResult=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"mask",on:{"click":_vm.showPicker2}})])]),_vm._v(" "),(_vm.addressProvince && _vm.price >= 0)?_c('div',{staticClass:"postage"},[_vm._v("\n      应付邮费："+_vm._s(_vm.price)+"元\n    ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"remarks"},[_vm._v("\n      "+_vm._s(_vm.note)+"\n    ")]),_vm._v(" "),_c('div',{staticClass:"getConfirm",on:{"click":_vm.payGift}},[_vm._v("确认领取")])]),_vm._v(" "),_c('div',{staticClass:"model"},[_vm._m(2),_vm._v(" "),_c('div',{staticClass:"giftinfo",domProps:{"innerHTML":_vm._s(_vm.giftInfo)}})]),_vm._v(" "),_c('Vue-area',{attrs:{"show":_vm.show,"result":_vm.result}}),_vm._v(" "),_c('mt-popup',{staticStyle:{"width":"100%","height":"30%"},attrs:{"position":"bottom"},model:{value:(_vm.pickershow2),callback:function ($$v) {_vm.pickershow2=$$v},expression:"pickershow2"}},[_c('mt-picker',{attrs:{"slots":_vm.shippingMethodSlots},on:{"change":_vm.onshippingMethodChange}})],1)],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('i'),_vm._v(" "),_c('span',[_vm._v("可领取礼品")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('i'),_vm._v(" "),_c('span',[_vm._v("填写收货信息")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('i'),_vm._v(" "),_c('span',[_vm._v("礼品领取说明")])])}]
var convert = __webpack_require__(2882),
    func = convert('merge', __webpack_require__(3001));

func.placeholder = __webpack_require__(1630);
module.exports = func;
var baseConvert = __webpack_require__(2883),
    util = __webpack_require__(2885);

/**
 * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
 * version with conversion `options` applied. If `name` is an object its methods
 * will be converted.
 *
 * @param {string} name The name of the function to wrap.
 * @param {Function} [func] The function to wrap.
 * @param {Object} [options] The options object. See `baseConvert` for more details.
 * @returns {Function|Object} Returns the converted function or object.
 */
function convert(name, func, options) {
  return baseConvert(util, name, func, options);
}

module.exports = convert;
var mapping = __webpack_require__(2884),
    fallbackHolder = __webpack_require__(1630);

/** Built-in value reference. */
var push = Array.prototype.push;

/**
 * Creates a function, with an arity of `n`, that invokes `func` with the
 * arguments it receives.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} n The arity of the new function.
 * @returns {Function} Returns the new function.
 */
function baseArity(func, n) {
  return n == 2
    ? function(a, b) { return func.apply(undefined, arguments); }
    : function(a) { return func.apply(undefined, arguments); };
}

/**
 * Creates a function that invokes `func`, with up to `n` arguments, ignoring
 * any additional arguments.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @param {number} n The arity cap.
 * @returns {Function} Returns the new function.
 */
function baseAry(func, n) {
  return n == 2
    ? function(a, b) { return func(a, b); }
    : function(a) { return func(a); };
}

/**
 * Creates a clone of `array`.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the cloned array.
 */
function cloneArray(array) {
  var length = array ? array.length : 0,
      result = Array(length);

  while (length--) {
    result[length] = array[length];
  }
  return result;
}

/**
 * Creates a function that clones a given object using the assignment `func`.
 *
 * @private
 * @param {Function} func The assignment function.
 * @returns {Function} Returns the new cloner function.
 */
function createCloner(func) {
  return function(object) {
    return func({}, object);
  };
}

/**
 * A specialized version of `_.spread` which flattens the spread array into
 * the arguments of the invoked `func`.
 *
 * @private
 * @param {Function} func The function to spread arguments over.
 * @param {number} start The start position of the spread.
 * @returns {Function} Returns the new function.
 */
function flatSpread(func, start) {
  return function() {
    var length = arguments.length,
        lastIndex = length - 1,
        args = Array(length);

    while (length--) {
      args[length] = arguments[length];
    }
    var array = args[start],
        otherArgs = args.slice(0, start);

    if (array) {
      push.apply(otherArgs, array);
    }
    if (start != lastIndex) {
      push.apply(otherArgs, args.slice(start + 1));
    }
    return func.apply(this, otherArgs);
  };
}

/**
 * Creates a function that wraps `func` and uses `cloner` to clone the first
 * argument it receives.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} cloner The function to clone arguments.
 * @returns {Function} Returns the new immutable function.
 */
function wrapImmutable(func, cloner) {
  return function() {
    var length = arguments.length;
    if (!length) {
      return;
    }
    var args = Array(length);
    while (length--) {
      args[length] = arguments[length];
    }
    var result = args[0] = cloner.apply(undefined, args);
    func.apply(undefined, args);
    return result;
  };
}

/**
 * The base implementation of `convert` which accepts a `util` object of methods
 * required to perform conversions.
 *
 * @param {Object} util The util object.
 * @param {string} name The name of the function to convert.
 * @param {Function} func The function to convert.
 * @param {Object} [options] The options object.
 * @param {boolean} [options.cap=true] Specify capping iteratee arguments.
 * @param {boolean} [options.curry=true] Specify currying.
 * @param {boolean} [options.fixed=true] Specify fixed arity.
 * @param {boolean} [options.immutable=true] Specify immutable operations.
 * @param {boolean} [options.rearg=true] Specify rearranging arguments.
 * @returns {Function|Object} Returns the converted function or object.
 */
function baseConvert(util, name, func, options) {
  var isLib = typeof name == 'function',
      isObj = name === Object(name);

  if (isObj) {
    options = func;
    func = name;
    name = undefined;
  }
  if (func == null) {
    throw new TypeError;
  }
  options || (options = {});

  var config = {
    'cap': 'cap' in options ? options.cap : true,
    'curry': 'curry' in options ? options.curry : true,
    'fixed': 'fixed' in options ? options.fixed : true,
    'immutable': 'immutable' in options ? options.immutable : true,
    'rearg': 'rearg' in options ? options.rearg : true
  };

  var defaultHolder = isLib ? func : fallbackHolder,
      forceCurry = ('curry' in options) && options.curry,
      forceFixed = ('fixed' in options) && options.fixed,
      forceRearg = ('rearg' in options) && options.rearg,
      pristine = isLib ? func.runInContext() : undefined;

  var helpers = isLib ? func : {
    'ary': util.ary,
    'assign': util.assign,
    'clone': util.clone,
    'curry': util.curry,
    'forEach': util.forEach,
    'isArray': util.isArray,
    'isError': util.isError,
    'isFunction': util.isFunction,
    'isWeakMap': util.isWeakMap,
    'iteratee': util.iteratee,
    'keys': util.keys,
    'rearg': util.rearg,
    'toInteger': util.toInteger,
    'toPath': util.toPath
  };

  var ary = helpers.ary,
      assign = helpers.assign,
      clone = helpers.clone,
      curry = helpers.curry,
      each = helpers.forEach,
      isArray = helpers.isArray,
      isError = helpers.isError,
      isFunction = helpers.isFunction,
      isWeakMap = helpers.isWeakMap,
      keys = helpers.keys,
      rearg = helpers.rearg,
      toInteger = helpers.toInteger,
      toPath = helpers.toPath;

  var aryMethodKeys = keys(mapping.aryMethod);

  var wrappers = {
    'castArray': function(castArray) {
      return function() {
        var value = arguments[0];
        return isArray(value)
          ? castArray(cloneArray(value))
          : castArray.apply(undefined, arguments);
      };
    },
    'iteratee': function(iteratee) {
      return function() {
        var func = arguments[0],
            arity = arguments[1],
            result = iteratee(func, arity),
            length = result.length;

        if (config.cap && typeof arity == 'number') {
          arity = arity > 2 ? (arity - 2) : 1;
          return (length && length <= arity) ? result : baseAry(result, arity);
        }
        return result;
      };
    },
    'mixin': function(mixin) {
      return function(source) {
        var func = this;
        if (!isFunction(func)) {
          return mixin(func, Object(source));
        }
        var pairs = [];
        each(keys(source), function(key) {
          if (isFunction(source[key])) {
            pairs.push([key, func.prototype[key]]);
          }
        });

        mixin(func, Object(source));

        each(pairs, function(pair) {
          var value = pair[1];
          if (isFunction(value)) {
            func.prototype[pair[0]] = value;
          } else {
            delete func.prototype[pair[0]];
          }
        });
        return func;
      };
    },
    'nthArg': function(nthArg) {
      return function(n) {
        var arity = n < 0 ? 1 : (toInteger(n) + 1);
        return curry(nthArg(n), arity);
      };
    },
    'rearg': function(rearg) {
      return function(func, indexes) {
        var arity = indexes ? indexes.length : 0;
        return curry(rearg(func, indexes), arity);
      };
    },
    'runInContext': function(runInContext) {
      return function(context) {
        return baseConvert(util, runInContext(context), options);
      };
    }
  };

  /*--------------------------------------------------------------------------*/

  /**
   * Casts `func` to a function with an arity capped iteratee if needed.
   *
   * @private
   * @param {string} name The name of the function to inspect.
   * @param {Function} func The function to inspect.
   * @returns {Function} Returns the cast function.
   */
  function castCap(name, func) {
    if (config.cap) {
      var indexes = mapping.iterateeRearg[name];
      if (indexes) {
        return iterateeRearg(func, indexes);
      }
      var n = !isLib && mapping.iterateeAry[name];
      if (n) {
        return iterateeAry(func, n);
      }
    }
    return func;
  }

  /**
   * Casts `func` to a curried function if needed.
   *
   * @private
   * @param {string} name The name of the function to inspect.
   * @param {Function} func The function to inspect.
   * @param {number} n The arity of `func`.
   * @returns {Function} Returns the cast function.
   */
  function castCurry(name, func, n) {
    return (forceCurry || (config.curry && n > 1))
      ? curry(func, n)
      : func;
  }

  /**
   * Casts `func` to a fixed arity function if needed.
   *
   * @private
   * @param {string} name The name of the function to inspect.
   * @param {Function} func The function to inspect.
   * @param {number} n The arity cap.
   * @returns {Function} Returns the cast function.
   */
  function castFixed(name, func, n) {
    if (config.fixed && (forceFixed || !mapping.skipFixed[name])) {
      var data = mapping.methodSpread[name],
          start = data && data.start;

      return start  === undefined ? ary(func, n) : flatSpread(func, start);
    }
    return func;
  }

  /**
   * Casts `func` to an rearged function if needed.
   *
   * @private
   * @param {string} name The name of the function to inspect.
   * @param {Function} func The function to inspect.
   * @param {number} n The arity of `func`.
   * @returns {Function} Returns the cast function.
   */
  function castRearg(name, func, n) {
    return (config.rearg && n > 1 && (forceRearg || !mapping.skipRearg[name]))
      ? rearg(func, mapping.methodRearg[name] || mapping.aryRearg[n])
      : func;
  }

  /**
   * Creates a clone of `object` by `path`.
   *
   * @private
   * @param {Object} object The object to clone.
   * @param {Array|string} path The path to clone by.
   * @returns {Object} Returns the cloned object.
   */
  function cloneByPath(object, path) {
    path = toPath(path);

    var index = -1,
        length = path.length,
        lastIndex = length - 1,
        result = clone(Object(object)),
        nested = result;

    while (nested != null && ++index < length) {
      var key = path[index],
          value = nested[key];

      if (value != null &&
          !(isFunction(value) || isError(value) || isWeakMap(value))) {
        nested[key] = clone(index == lastIndex ? value : Object(value));
      }
      nested = nested[key];
    }
    return result;
  }

  /**
   * Converts `lodash` to an immutable auto-curried iteratee-first data-last
   * version with conversion `options` applied.
   *
   * @param {Object} [options] The options object. See `baseConvert` for more details.
   * @returns {Function} Returns the converted `lodash`.
   */
  function convertLib(options) {
    return _.runInContext.convert(options)(undefined);
  }

  /**
   * Create a converter function for `func` of `name`.
   *
   * @param {string} name The name of the function to convert.
   * @param {Function} func The function to convert.
   * @returns {Function} Returns the new converter function.
   */
  function createConverter(name, func) {
    var realName = mapping.aliasToReal[name] || name,
        methodName = mapping.remap[realName] || realName,
        oldOptions = options;

    return function(options) {
      var newUtil = isLib ? pristine : helpers,
          newFunc = isLib ? pristine[methodName] : func,
          newOptions = assign(assign({}, oldOptions), options);

      return baseConvert(newUtil, realName, newFunc, newOptions);
    };
  }

  /**
   * Creates a function that wraps `func` to invoke its iteratee, with up to `n`
   * arguments, ignoring any additional arguments.
   *
   * @private
   * @param {Function} func The function to cap iteratee arguments for.
   * @param {number} n The arity cap.
   * @returns {Function} Returns the new function.
   */
  function iterateeAry(func, n) {
    return overArg(func, function(func) {
      return typeof func == 'function' ? baseAry(func, n) : func;
    });
  }

  /**
   * Creates a function that wraps `func` to invoke its iteratee with arguments
   * arranged according to the specified `indexes` where the argument value at
   * the first index is provided as the first argument, the argument value at
   * the second index is provided as the second argument, and so on.
   *
   * @private
   * @param {Function} func The function to rearrange iteratee arguments for.
   * @param {number[]} indexes The arranged argument indexes.
   * @returns {Function} Returns the new function.
   */
  function iterateeRearg(func, indexes) {
    return overArg(func, function(func) {
      var n = indexes.length;
      return baseArity(rearg(baseAry(func, n), indexes), n);
    });
  }

  /**
   * Creates a function that invokes `func` with its first argument transformed.
   *
   * @private
   * @param {Function} func The function to wrap.
   * @param {Function} transform The argument transform.
   * @returns {Function} Returns the new function.
   */
  function overArg(func, transform) {
    return function() {
      var length = arguments.length;
      if (!length) {
        return func();
      }
      var args = Array(length);
      while (length--) {
        args[length] = arguments[length];
      }
      var index = config.rearg ? 0 : (length - 1);
      args[index] = transform(args[index]);
      return func.apply(undefined, args);
    };
  }

  /**
   * Creates a function that wraps `func` and applys the conversions
   * rules by `name`.
   *
   * @private
   * @param {string} name The name of the function to wrap.
   * @param {Function} func The function to wrap.
   * @returns {Function} Returns the converted function.
   */
  function wrap(name, func, placeholder) {
    var result,
        realName = mapping.aliasToReal[name] || name,
        wrapped = func,
        wrapper = wrappers[realName];

    if (wrapper) {
      wrapped = wrapper(func);
    }
    else if (config.immutable) {
      if (mapping.mutate.array[realName]) {
        wrapped = wrapImmutable(func, cloneArray);
      }
      else if (mapping.mutate.object[realName]) {
        wrapped = wrapImmutable(func, createCloner(func));
      }
      else if (mapping.mutate.set[realName]) {
        wrapped = wrapImmutable(func, cloneByPath);
      }
    }
    each(aryMethodKeys, function(aryKey) {
      each(mapping.aryMethod[aryKey], function(otherName) {
        if (realName == otherName) {
          var data = mapping.methodSpread[realName],
              afterRearg = data && data.afterRearg;

          result = afterRearg
            ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey)
            : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey);

          result = castCap(realName, result);
          result = castCurry(realName, result, aryKey);
          return false;
        }
      });
      return !result;
    });

    result || (result = wrapped);
    if (result == func) {
      result = forceCurry ? curry(result, 1) : function() {
        return func.apply(this, arguments);
      };
    }
    result.convert = createConverter(realName, func);
    result.placeholder = func.placeholder = placeholder;

    return result;
  }

  /*--------------------------------------------------------------------------*/

  if (!isObj) {
    return wrap(name, func, defaultHolder);
  }
  var _ = func;

  // Convert methods by ary cap.
  var pairs = [];
  each(aryMethodKeys, function(aryKey) {
    each(mapping.aryMethod[aryKey], function(key) {
      var func = _[mapping.remap[key] || key];
      if (func) {
        pairs.push([key, wrap(key, func, _)]);
      }
    });
  });

  // Convert remaining methods.
  each(keys(_), function(key) {
    var func = _[key];
    if (typeof func == 'function') {
      var length = pairs.length;
      while (length--) {
        if (pairs[length][0] == key) {
          return;
        }
      }
      func.convert = createConverter(key, func);
      pairs.push([key, func]);
    }
  });

  // Assign to `_` leaving `_.prototype` unchanged to allow chaining.
  each(pairs, function(pair) {
    _[pair[0]] = pair[1];
  });

  _.convert = convertLib;
  _.placeholder = _;

  // Assign aliases.
  each(keys(_), function(key) {
    each(mapping.realToAlias[key] || [], function(alias) {
      _[alias] = _[key];
    });
  });

  return _;
}

module.exports = baseConvert;
/** Used to map aliases to their real names. */
exports.aliasToReal = {

  // Lodash aliases.
  'each': 'forEach',
  'eachRight': 'forEachRight',
  'entries': 'toPairs',
  'entriesIn': 'toPairsIn',
  'extend': 'assignIn',
  'extendAll': 'assignInAll',
  'extendAllWith': 'assignInAllWith',
  'extendWith': 'assignInWith',
  'first': 'head',

  // Methods that are curried variants of others.
  'conforms': 'conformsTo',
  'matches': 'isMatch',
  'property': 'get',

  // Ramda aliases.
  '__': 'placeholder',
  'F': 'stubFalse',
  'T': 'stubTrue',
  'all': 'every',
  'allPass': 'overEvery',
  'always': 'constant',
  'any': 'some',
  'anyPass': 'overSome',
  'apply': 'spread',
  'assoc': 'set',
  'assocPath': 'set',
  'complement': 'negate',
  'compose': 'flowRight',
  'contains': 'includes',
  'dissoc': 'unset',
  'dissocPath': 'unset',
  'dropLast': 'dropRight',
  'dropLastWhile': 'dropRightWhile',
  'equals': 'isEqual',
  'identical': 'eq',
  'indexBy': 'keyBy',
  'init': 'initial',
  'invertObj': 'invert',
  'juxt': 'over',
  'omitAll': 'omit',
  'nAry': 'ary',
  'path': 'get',
  'pathEq': 'matchesProperty',
  'pathOr': 'getOr',
  'paths': 'at',
  'pickAll': 'pick',
  'pipe': 'flow',
  'pluck': 'map',
  'prop': 'get',
  'propEq': 'matchesProperty',
  'propOr': 'getOr',
  'props': 'at',
  'symmetricDifference': 'xor',
  'symmetricDifferenceBy': 'xorBy',
  'symmetricDifferenceWith': 'xorWith',
  'takeLast': 'takeRight',
  'takeLastWhile': 'takeRightWhile',
  'unapply': 'rest',
  'unnest': 'flatten',
  'useWith': 'overArgs',
  'where': 'conformsTo',
  'whereEq': 'isMatch',
  'zipObj': 'zipObject'
};

/** Used to map ary to method names. */
exports.aryMethod = {
  '1': [
    'assignAll', 'assignInAll', 'attempt', 'castArray', 'ceil', 'create',
    'curry', 'curryRight', 'defaultsAll', 'defaultsDeepAll', 'floor', 'flow',
    'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method', 'mergeAll',
    'methodOf', 'mixin', 'nthArg', 'over', 'overEvery', 'overSome','rest', 'reverse',
    'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
    'uniqueId', 'words', 'zipAll'
  ],
  '2': [
    'add', 'after', 'ary', 'assign', 'assignAllWith', 'assignIn', 'assignInAllWith',
    'at', 'before', 'bind', 'bindAll', 'bindKey', 'chunk', 'cloneDeepWith',
    'cloneWith', 'concat', 'conformsTo', 'countBy', 'curryN', 'curryRightN',
    'debounce', 'defaults', 'defaultsDeep', 'defaultTo', 'delay', 'difference',
    'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq',
    'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex',
    'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth', 'forEach',
    'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get',
    'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection',
    'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy',
    'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty',
    'maxBy', 'meanBy', 'merge', 'mergeAllWith', 'minBy', 'multiply', 'nth', 'omit',
    'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial',
    'partialRight', 'partition', 'pick', 'pickBy', 'propertyOf', 'pull', 'pullAll',
    'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
    'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
    'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
    'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
    'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
    'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
    'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
    'zipObjectDeep'
  ],
  '3': [
    'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
    'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
    'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
    'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
    'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
    'padCharsStart', 'pullAllBy', 'pullAllWith', 'rangeStep', 'rangeStepRight',
    'reduce', 'reduceRight', 'replace', 'set', 'slice', 'sortedIndexBy',
    'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith', 'update', 'xorBy',
    'xorWith', 'zipWith'
  ],
  '4': [
    'fill', 'setWith', 'updateWith'
  ]
};

/** Used to map ary to rearg configs. */
exports.aryRearg = {
  '2': [1, 0],
  '3': [2, 0, 1],
  '4': [3, 2, 0, 1]
};

/** Used to map method names to their iteratee ary. */
exports.iterateeAry = {
  'dropRightWhile': 1,
  'dropWhile': 1,
  'every': 1,
  'filter': 1,
  'find': 1,
  'findFrom': 1,
  'findIndex': 1,
  'findIndexFrom': 1,
  'findKey': 1,
  'findLast': 1,
  'findLastFrom': 1,
  'findLastIndex': 1,
  'findLastIndexFrom': 1,
  'findLastKey': 1,
  'flatMap': 1,
  'flatMapDeep': 1,
  'flatMapDepth': 1,
  'forEach': 1,
  'forEachRight': 1,
  'forIn': 1,
  'forInRight': 1,
  'forOwn': 1,
  'forOwnRight': 1,
  'map': 1,
  'mapKeys': 1,
  'mapValues': 1,
  'partition': 1,
  'reduce': 2,
  'reduceRight': 2,
  'reject': 1,
  'remove': 1,
  'some': 1,
  'takeRightWhile': 1,
  'takeWhile': 1,
  'times': 1,
  'transform': 2
};

/** Used to map method names to iteratee rearg configs. */
exports.iterateeRearg = {
  'mapKeys': [1],
  'reduceRight': [1, 0]
};

/** Used to map method names to rearg configs. */
exports.methodRearg = {
  'assignInAllWith': [1, 0],
  'assignInWith': [1, 2, 0],
  'assignAllWith': [1, 0],
  'assignWith': [1, 2, 0],
  'differenceBy': [1, 2, 0],
  'differenceWith': [1, 2, 0],
  'getOr': [2, 1, 0],
  'intersectionBy': [1, 2, 0],
  'intersectionWith': [1, 2, 0],
  'isEqualWith': [1, 2, 0],
  'isMatchWith': [2, 1, 0],
  'mergeAllWith': [1, 0],
  'mergeWith': [1, 2, 0],
  'padChars': [2, 1, 0],
  'padCharsEnd': [2, 1, 0],
  'padCharsStart': [2, 1, 0],
  'pullAllBy': [2, 1, 0],
  'pullAllWith': [2, 1, 0],
  'rangeStep': [1, 2, 0],
  'rangeStepRight': [1, 2, 0],
  'setWith': [3, 1, 2, 0],
  'sortedIndexBy': [2, 1, 0],
  'sortedLastIndexBy': [2, 1, 0],
  'unionBy': [1, 2, 0],
  'unionWith': [1, 2, 0],
  'updateWith': [3, 1, 2, 0],
  'xorBy': [1, 2, 0],
  'xorWith': [1, 2, 0],
  'zipWith': [1, 2, 0]
};

/** Used to map method names to spread configs. */
exports.methodSpread = {
  'assignAll': { 'start': 0 },
  'assignAllWith': { 'start': 0 },
  'assignInAll': { 'start': 0 },
  'assignInAllWith': { 'start': 0 },
  'defaultsAll': { 'start': 0 },
  'defaultsDeepAll': { 'start': 0 },
  'invokeArgs': { 'start': 2 },
  'invokeArgsMap': { 'start': 2 },
  'mergeAll': { 'start': 0 },
  'mergeAllWith': { 'start': 0 },
  'partial': { 'start': 1 },
  'partialRight': { 'start': 1 },
  'without': { 'start': 1 },
  'zipAll': { 'start': 0 }
};

/** Used to identify methods which mutate arrays or objects. */
exports.mutate = {
  'array': {
    'fill': true,
    'pull': true,
    'pullAll': true,
    'pullAllBy': true,
    'pullAllWith': true,
    'pullAt': true,
    'remove': true,
    'reverse': true
  },
  'object': {
    'assign': true,
    'assignAll': true,
    'assignAllWith': true,
    'assignIn': true,
    'assignInAll': true,
    'assignInAllWith': true,
    'assignInWith': true,
    'assignWith': true,
    'defaults': true,
    'defaultsAll': true,
    'defaultsDeep': true,
    'defaultsDeepAll': true,
    'merge': true,
    'mergeAll': true,
    'mergeAllWith': true,
    'mergeWith': true,
  },
  'set': {
    'set': true,
    'setWith': true,
    'unset': true,
    'update': true,
    'updateWith': true
  }
};

/** Used to map real names to their aliases. */
exports.realToAlias = (function() {
  var hasOwnProperty = Object.prototype.hasOwnProperty,
      object = exports.aliasToReal,
      result = {};

  for (var key in object) {
    var value = object[key];
    if (hasOwnProperty.call(result, value)) {
      result[value].push(key);
    } else {
      result[value] = [key];
    }
  }
  return result;
}());

/** Used to map method names to other names. */
exports.remap = {
  'assignAll': 'assign',
  'assignAllWith': 'assignWith',
  'assignInAll': 'assignIn',
  'assignInAllWith': 'assignInWith',
  'curryN': 'curry',
  'curryRightN': 'curryRight',
  'defaultsAll': 'defaults',
  'defaultsDeepAll': 'defaultsDeep',
  'findFrom': 'find',
  'findIndexFrom': 'findIndex',
  'findLastFrom': 'findLast',
  'findLastIndexFrom': 'findLastIndex',
  'getOr': 'get',
  'includesFrom': 'includes',
  'indexOfFrom': 'indexOf',
  'invokeArgs': 'invoke',
  'invokeArgsMap': 'invokeMap',
  'lastIndexOfFrom': 'lastIndexOf',
  'mergeAll': 'merge',
  'mergeAllWith': 'mergeWith',
  'padChars': 'pad',
  'padCharsEnd': 'padEnd',
  'padCharsStart': 'padStart',
  'propertyOf': 'get',
  'rangeStep': 'range',
  'rangeStepRight': 'rangeRight',
  'restFrom': 'rest',
  'spreadFrom': 'spread',
  'trimChars': 'trim',
  'trimCharsEnd': 'trimEnd',
  'trimCharsStart': 'trimStart',
  'zipAll': 'zip'
};

/** Used to track methods that skip fixing their arity. */
exports.skipFixed = {
  'castArray': true,
  'flow': true,
  'flowRight': true,
  'iteratee': true,
  'mixin': true,
  'rearg': true,
  'runInContext': true
};

/** Used to track methods that skip rearranging arguments. */
exports.skipRearg = {
  'add': true,
  'assign': true,
  'assignIn': true,
  'bind': true,
  'bindKey': true,
  'concat': true,
  'difference': true,
  'divide': true,
  'eq': true,
  'gt': true,
  'gte': true,
  'isEqual': true,
  'lt': true,
  'lte': true,
  'matchesProperty': true,
  'merge': true,
  'multiply': true,
  'overArgs': true,
  'partial': true,
  'partialRight': true,
  'propertyOf': true,
  'random': true,
  'range': true,
  'rangeRight': true,
  'subtract': true,
  'zip': true,
  'zipObject': true,
  'zipObjectDeep': true
};
/**
 * The default argument placeholder value for methods.
 *
 * @type {Object}
 */
module.exports = {};
module.exports = {
  'ary': __webpack_require__(2886),
  'assign': __webpack_require__(1648),
  'clone': __webpack_require__(2924),
  'curry': __webpack_require__(2966),
  'forEach': __webpack_require__(847),
  'isArray': __webpack_require__(64),
  'isError': __webpack_require__(2967),
  'isFunction': __webpack_require__(317),
  'isWeakMap': __webpack_require__(2968),
  'iteratee': __webpack_require__(2969),
  'keys': __webpack_require__(1651),
  'rearg': __webpack_require__(2995),
  'toInteger': __webpack_require__(1647),
  'toPath': __webpack_require__(3000)
};
var createWrap = __webpack_require__(842);

/** Used to compose bitmasks for function metadata. */
var WRAP_ARY_FLAG = 128;

/**
 * Creates a function that invokes `func`, with up to `n` arguments,
 * ignoring any additional arguments.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} func The function to cap arguments for.
 * @param {number} [n=func.length] The arity cap.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Function} Returns the new capped function.
 * @example
 *
 * _.map(['6', '8', '10'], _.ary(parseInt, 1));
 * // => [6, 8, 10]
 */
function ary(func, n, guard) {
  n = guard ? undefined : n;
  n = (func && n == null) ? func.length : n;
  return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
}

module.exports = ary;
var baseSetData = __webpack_require__(1631),
    createBind = __webpack_require__(2893),
    createCurry = __webpack_require__(2894),
    createHybrid = __webpack_require__(1636),
    createPartial = __webpack_require__(2913),
    getData = __webpack_require__(1640),
    mergeData = __webpack_require__(2914),
    setData = __webpack_require__(1642),
    setWrapToString = __webpack_require__(1644),
    toInteger = __webpack_require__(1647);

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1,
    WRAP_BIND_KEY_FLAG = 2,
    WRAP_CURRY_FLAG = 8,
    WRAP_CURRY_RIGHT_FLAG = 16,
    WRAP_PARTIAL_FLAG = 32,
    WRAP_PARTIAL_RIGHT_FLAG = 64;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * Creates a function that either curries or invokes `func` with optional
 * `this` binding and partially applied arguments.
 *
 * @private
 * @param {Function|string} func The function or method name to wrap.
 * @param {number} bitmask The bitmask flags.
 *    1 - `_.bind`
 *    2 - `_.bindKey`
 *    4 - `_.curry` or `_.curryRight` of a bound function
 *    8 - `_.curry`
 *   16 - `_.curryRight`
 *   32 - `_.partial`
 *   64 - `_.partialRight`
 *  128 - `_.rearg`
 *  256 - `_.ary`
 *  512 - `_.flip`
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to be partially applied.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */
function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  if (!isBindKey && typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var length = partials ? partials.length : 0;
  if (!length) {
    bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
    partials = holders = undefined;
  }
  ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  arity = arity === undefined ? arity : toInteger(arity);
  length -= holders ? holders.length : 0;

  if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
    var partialsRight = partials,
        holdersRight = holders;

    partials = holders = undefined;
  }
  var data = isBindKey ? undefined : getData(func);

  var newData = [
    func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
    argPos, ary, arity
  ];

  if (data) {
    mergeData(newData, data);
  }
  func = newData[0];
  bitmask = newData[1];
  thisArg = newData[2];
  partials = newData[3];
  holders = newData[4];
  arity = newData[9] = newData[9] === undefined
    ? (isBindKey ? 0 : func.length)
    : nativeMax(newData[9] - length, 0);

  if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
    bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  }
  if (!bitmask || bitmask == WRAP_BIND_FLAG) {
    var result = createBind(func, bitmask, thisArg);
  } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
    result = createCurry(func, bitmask, arity);
  } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
    result = createPartial(func, bitmask, thisArg, partials);
  } else {
    result = createHybrid.apply(undefined, newData);
  }
  var setter = data ? baseSetData : setData;
  return setWrapToString(setter(result, newData), func, bitmask);
}

module.exports = createWrap;
var identity = __webpack_require__(316),
    metaMap = __webpack_require__(1632);

/**
 * The base implementation of `setData` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to associate metadata with.
 * @param {*} data The metadata.
 * @returns {Function} Returns `func`.
 */
var baseSetData = !metaMap ? identity : function(func, data) {
  metaMap.set(func, data);
  return func;
};

module.exports = baseSetData;
/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}

module.exports = identity;
var WeakMap = __webpack_require__(1633);

/** Used to store function metadata. */
var metaMap = WeakMap && new WeakMap;

module.exports = metaMap;
var getNative = __webpack_require__(150),
    root = __webpack_require__(63);

/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');

module.exports = WeakMap;
var baseIsNative = __webpack_require__(2887),
    getValue = __webpack_require__(2892);

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
function getNative(object, key) {
  var value = getValue(object, key);
  return baseIsNative(value) ? value : undefined;
}

module.exports = getNative;
var isFunction = __webpack_require__(317),
    isMasked = __webpack_require__(2890),
    isObject = __webpack_require__(87),
    toSource = __webpack_require__(1635);

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;

/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function baseIsNative(value) {
  if (!isObject(value) || isMasked(value)) {
    return false;
  }
  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  return pattern.test(toSource(value));
}

module.exports = baseIsNative;
var baseGetTag = __webpack_require__(151),
    isObject = __webpack_require__(87);

/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    proxyTag = '[object Proxy]';

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  if (!isObject(value)) {
    return false;
  }
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
  var tag = baseGetTag(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}

module.exports = isFunction;
var Symbol = __webpack_require__(184),
    getRawTag = __webpack_require__(2888),
    objectToString = __webpack_require__(2889);

/** `Object#toString` result references. */
var nullTag = '[object Null]',
    undefinedTag = '[object Undefined]';

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return (symToStringTag && symToStringTag in Object(value))
    ? getRawTag(value)
    : objectToString(value);
}

module.exports = baseGetTag;
var root = __webpack_require__(63);

/** Built-in value references. */
var Symbol = root.Symbol;

module.exports = Symbol;
var freeGlobal = __webpack_require__(1634);

/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();

module.exports = root;
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

module.exports = freeGlobal;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(50)))var Symbol = __webpack_require__(184);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function getRawTag(value) {
  var isOwn = hasOwnProperty.call(value, symToStringTag),
      tag = value[symToStringTag];

  try {
    value[symToStringTag] = undefined;
    var unmasked = true;
  } catch (e) {}

  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}

module.exports = getRawTag;
/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function objectToString(value) {
  return nativeObjectToString.call(value);
}

module.exports = objectToString;
/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return value != null && (type == 'object' || type == 'function');
}

module.exports = isObject;
var coreJsData = __webpack_require__(2891);

/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  return uid ? ('Symbol(src)_1.' + uid) : '';
}());

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function isMasked(func) {
  return !!maskSrcKey && (maskSrcKey in func);
}

module.exports = isMasked;
var root = __webpack_require__(63);

/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];

module.exports = coreJsData;
/** Used for built-in method references. */
var funcProto = Function.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {}
    try {
      return (func + '');
    } catch (e) {}
  }
  return '';
}

module.exports = toSource;
/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function getValue(object, key) {
  return object == null ? undefined : object[key];
}

module.exports = getValue;
var createCtor = __webpack_require__(318),
    root = __webpack_require__(63);

/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1;

/**
 * Creates a function that wraps `func` to invoke it with the optional `this`
 * binding of `thisArg`.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @returns {Function} Returns the new wrapped function.
 */
function createBind(func, bitmask, thisArg) {
  var isBind = bitmask & WRAP_BIND_FLAG,
      Ctor = createCtor(func);

  function wrapper() {
    var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
    return fn.apply(isBind ? thisArg : this, arguments);
  }
  return wrapper;
}

module.exports = createBind;
var baseCreate = __webpack_require__(319),
    isObject = __webpack_require__(87);

/**
 * Creates a function that produces an instance of `Ctor` regardless of
 * whether it was invoked as part of a `new` expression or by `call` or `apply`.
 *
 * @private
 * @param {Function} Ctor The constructor to wrap.
 * @returns {Function} Returns the new wrapped function.
 */
function createCtor(Ctor) {
  return function() {
    // Use a `switch` statement to work with class constructors. See
    // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
    // for more details.
    var args = arguments;
    switch (args.length) {
      case 0: return new Ctor;
      case 1: return new Ctor(args[0]);
      case 2: return new Ctor(args[0], args[1]);
      case 3: return new Ctor(args[0], args[1], args[2]);
      case 4: return new Ctor(args[0], args[1], args[2], args[3]);
      case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
      case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
      case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
    }
    var thisBinding = baseCreate(Ctor.prototype),
        result = Ctor.apply(thisBinding, args);

    // Mimic the constructor's `return` behavior.
    // See https://es5.github.io/#x13.2.2 for more details.
    return isObject(result) ? result : thisBinding;
  };
}

module.exports = createCtor;
var isObject = __webpack_require__(87);

/** Built-in value references. */
var objectCreate = Object.create;

/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} proto The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var baseCreate = (function() {
  function object() {}
  return function(proto) {
    if (!isObject(proto)) {
      return {};
    }
    if (objectCreate) {
      return objectCreate(proto);
    }
    object.prototype = proto;
    var result = new object;
    object.prototype = undefined;
    return result;
  };
}());

module.exports = baseCreate;
var apply = __webpack_require__(843),
    createCtor = __webpack_require__(318),
    createHybrid = __webpack_require__(1636),
    createRecurry = __webpack_require__(1639),
    getHolder = __webpack_require__(1646),
    replaceHolders = __webpack_require__(848),
    root = __webpack_require__(63);

/**
 * Creates a function that wraps `func` to enable currying.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {number} arity The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */
function createCurry(func, bitmask, arity) {
  var Ctor = createCtor(func);

  function wrapper() {
    var length = arguments.length,
        args = Array(length),
        index = length,
        placeholder = getHolder(wrapper);

    while (index--) {
      args[index] = arguments[index];
    }
    var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
      ? []
      : replaceHolders(args, placeholder);

    length -= holders.length;
    if (length < arity) {
      return createRecurry(
        func, bitmask, createHybrid, wrapper.placeholder, undefined,
        args, holders, undefined, undefined, arity - length);
    }
    var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
    return apply(fn, this, args);
  }
  return wrapper;
}

module.exports = createCurry;
/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function apply(func, thisArg, args) {
  switch (args.length) {
    case 0: return func.call(thisArg);
    case 1: return func.call(thisArg, args[0]);
    case 2: return func.call(thisArg, args[0], args[1]);
    case 3: return func.call(thisArg, args[0], args[1], args[2]);
  }
  return func.apply(thisArg, args);
}

module.exports = apply;
var composeArgs = __webpack_require__(1637),
    composeArgsRight = __webpack_require__(1638),
    countHolders = __webpack_require__(2895),
    createCtor = __webpack_require__(318),
    createRecurry = __webpack_require__(1639),
    getHolder = __webpack_require__(1646),
    reorder = __webpack_require__(2912),
    replaceHolders = __webpack_require__(848),
    root = __webpack_require__(63);

/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1,
    WRAP_BIND_KEY_FLAG = 2,
    WRAP_CURRY_FLAG = 8,
    WRAP_CURRY_RIGHT_FLAG = 16,
    WRAP_ARY_FLAG = 128,
    WRAP_FLIP_FLAG = 512;

/**
 * Creates a function that wraps `func` to invoke it with optional `this`
 * binding of `thisArg`, partial application, and currying.
 *
 * @private
 * @param {Function|string} func The function or method name to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to prepend to those provided to
 *  the new function.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [partialsRight] The arguments to append to those provided
 *  to the new function.
 * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  var isAry = bitmask & WRAP_ARY_FLAG,
      isBind = bitmask & WRAP_BIND_FLAG,
      isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
      isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
      isFlip = bitmask & WRAP_FLIP_FLAG,
      Ctor = isBindKey ? undefined : createCtor(func);

  function wrapper() {
    var length = arguments.length,
        args = Array(length),
        index = length;

    while (index--) {
      args[index] = arguments[index];
    }
    if (isCurried) {
      var placeholder = getHolder(wrapper),
          holdersCount = countHolders(args, placeholder);
    }
    if (partials) {
      args = composeArgs(args, partials, holders, isCurried);
    }
    if (partialsRight) {
      args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
    }
    length -= holdersCount;
    if (isCurried && length < arity) {
      var newHolders = replaceHolders(args, placeholder);
      return createRecurry(
        func, bitmask, createHybrid, wrapper.placeholder, thisArg,
        args, newHolders, argPos, ary, arity - length
      );
    }
    var thisBinding = isBind ? thisArg : this,
        fn = isBindKey ? thisBinding[func] : func;

    length = args.length;
    if (argPos) {
      args = reorder(args, argPos);
    } else if (isFlip && length > 1) {
      args.reverse();
    }
    if (isAry && ary < length) {
      args.length = ary;
    }
    if (this && this !== root && this instanceof wrapper) {
      fn = Ctor || createCtor(fn);
    }
    return fn.apply(thisBinding, args);
  }
  return wrapper;
}

module.exports = createHybrid;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * Creates an array that is the composition of partially applied arguments,
 * placeholders, and provided arguments into a single array of arguments.
 *
 * @private
 * @param {Array} args The provided arguments.
 * @param {Array} partials The arguments to prepend to those provided.
 * @param {Array} holders The `partials` placeholder indexes.
 * @params {boolean} [isCurried] Specify composing for a curried function.
 * @returns {Array} Returns the new array of composed arguments.
 */
function composeArgs(args, partials, holders, isCurried) {
  var argsIndex = -1,
      argsLength = args.length,
      holdersLength = holders.length,
      leftIndex = -1,
      leftLength = partials.length,
      rangeLength = nativeMax(argsLength - holdersLength, 0),
      result = Array(leftLength + rangeLength),
      isUncurried = !isCurried;

  while (++leftIndex < leftLength) {
    result[leftIndex] = partials[leftIndex];
  }
  while (++argsIndex < holdersLength) {
    if (isUncurried || argsIndex < argsLength) {
      result[holders[argsIndex]] = args[argsIndex];
    }
  }
  while (rangeLength--) {
    result[leftIndex++] = args[argsIndex++];
  }
  return result;
}

module.exports = composeArgs;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * This function is like `composeArgs` except that the arguments composition
 * is tailored for `_.partialRight`.
 *
 * @private
 * @param {Array} args The provided arguments.
 * @param {Array} partials The arguments to append to those provided.
 * @param {Array} holders The `partials` placeholder indexes.
 * @params {boolean} [isCurried] Specify composing for a curried function.
 * @returns {Array} Returns the new array of composed arguments.
 */
function composeArgsRight(args, partials, holders, isCurried) {
  var argsIndex = -1,
      argsLength = args.length,
      holdersIndex = -1,
      holdersLength = holders.length,
      rightIndex = -1,
      rightLength = partials.length,
      rangeLength = nativeMax(argsLength - holdersLength, 0),
      result = Array(rangeLength + rightLength),
      isUncurried = !isCurried;

  while (++argsIndex < rangeLength) {
    result[argsIndex] = args[argsIndex];
  }
  var offset = argsIndex;
  while (++rightIndex < rightLength) {
    result[offset + rightIndex] = partials[rightIndex];
  }
  while (++holdersIndex < holdersLength) {
    if (isUncurried || argsIndex < argsLength) {
      result[offset + holders[holdersIndex]] = args[argsIndex++];
    }
  }
  return result;
}

module.exports = composeArgsRight;
/**
 * Gets the number of `placeholder` occurrences in `array`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} placeholder The placeholder to search for.
 * @returns {number} Returns the placeholder count.
 */
function countHolders(array, placeholder) {
  var length = array.length,
      result = 0;

  while (length--) {
    if (array[length] === placeholder) {
      ++result;
    }
  }
  return result;
}

module.exports = countHolders;
var isLaziable = __webpack_require__(2896),
    setData = __webpack_require__(1642),
    setWrapToString = __webpack_require__(1644);

/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1,
    WRAP_BIND_KEY_FLAG = 2,
    WRAP_CURRY_BOUND_FLAG = 4,
    WRAP_CURRY_FLAG = 8,
    WRAP_PARTIAL_FLAG = 32,
    WRAP_PARTIAL_RIGHT_FLAG = 64;

/**
 * Creates a function that wraps `func` to continue currying.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {Function} wrapFunc The function to create the `func` wrapper.
 * @param {*} placeholder The placeholder value.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to prepend to those provided to
 *  the new function.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */
function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  var isCurry = bitmask & WRAP_CURRY_FLAG,
      newHolders = isCurry ? holders : undefined,
      newHoldersRight = isCurry ? undefined : holders,
      newPartials = isCurry ? partials : undefined,
      newPartialsRight = isCurry ? undefined : partials;

  bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);

  if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
    bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  }
  var newData = [
    func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
    newHoldersRight, argPos, ary, arity
  ];

  var result = wrapFunc.apply(undefined, newData);
  if (isLaziable(func)) {
    setData(result, newData);
  }
  result.placeholder = placeholder;
  return setWrapToString(result, func, bitmask);
}

module.exports = createRecurry;
var LazyWrapper = __webpack_require__(844),
    getData = __webpack_require__(1640),
    getFuncName = __webpack_require__(2898),
    lodash = __webpack_require__(2900);

/**
 * Checks if `func` has a lazy counterpart.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
 *  else `false`.
 */
function isLaziable(func) {
  var funcName = getFuncName(func),
      other = lodash[funcName];

  if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
    return false;
  }
  if (func === other) {
    return true;
  }
  var data = getData(other);
  return !!data && func === data[0];
}

module.exports = isLaziable;
var baseCreate = __webpack_require__(319),
    baseLodash = __webpack_require__(845);

/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295;

/**
 * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
 *
 * @private
 * @constructor
 * @param {*} value The value to wrap.
 */
function LazyWrapper(value) {
  this.__wrapped__ = value;
  this.__actions__ = [];
  this.__dir__ = 1;
  this.__filtered__ = false;
  this.__iteratees__ = [];
  this.__takeCount__ = MAX_ARRAY_LENGTH;
  this.__views__ = [];
}

// Ensure `LazyWrapper` is an instance of `baseLodash`.
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
LazyWrapper.prototype.constructor = LazyWrapper;

module.exports = LazyWrapper;
/**
 * The function whose prototype chain sequence wrappers inherit from.
 *
 * @private
 */
function baseLodash() {
  // No operation performed.
}

module.exports = baseLodash;
var metaMap = __webpack_require__(1632),
    noop = __webpack_require__(2897);

/**
 * Gets metadata for `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {*} Returns the metadata for `func`.
 */
var getData = !metaMap ? noop : function(func) {
  return metaMap.get(func);
};

module.exports = getData;
/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */
function noop() {
  // No operation performed.
}

module.exports = noop;
var realNames = __webpack_require__(2899);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the name of `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {string} Returns the function name.
 */
function getFuncName(func) {
  var result = (func.name + ''),
      array = realNames[result],
      length = hasOwnProperty.call(realNames, result) ? array.length : 0;

  while (length--) {
    var data = array[length],
        otherFunc = data.func;
    if (otherFunc == null || otherFunc == func) {
      return data.name;
    }
  }
  return result;
}

module.exports = getFuncName;
/** Used to lookup unminified function names. */
var realNames = {};

module.exports = realNames;
var LazyWrapper = __webpack_require__(844),
    LodashWrapper = __webpack_require__(1641),
    baseLodash = __webpack_require__(845),
    isArray = __webpack_require__(64),
    isObjectLike = __webpack_require__(76),
    wrapperClone = __webpack_require__(2901);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates a `lodash` object which wraps `value` to enable implicit method
 * chain sequences. Methods that operate on and return arrays, collections,
 * and functions can be chained together. Methods that retrieve a single value
 * or may return a primitive value will automatically end the chain sequence
 * and return the unwrapped value. Otherwise, the value must be unwrapped
 * with `_#value`.
 *
 * Explicit chain sequences, which must be unwrapped with `_#value`, may be
 * enabled using `_.chain`.
 *
 * The execution of chained methods is lazy, that is, it's deferred until
 * `_#value` is implicitly or explicitly called.
 *
 * Lazy evaluation allows several methods to support shortcut fusion.
 * Shortcut fusion is an optimization to merge iteratee calls; this avoids
 * the creation of intermediate arrays and can greatly reduce the number of
 * iteratee executions. Sections of a chain sequence qualify for shortcut
 * fusion if the section is applied to an array and iteratees accept only
 * one argument. The heuristic for whether a section qualifies for shortcut
 * fusion is subject to change.
 *
 * Chaining is supported in custom builds as long as the `_#value` method is
 * directly or indirectly included in the build.
 *
 * In addition to lodash methods, wrappers have `Array` and `String` methods.
 *
 * The wrapper `Array` methods are:
 * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
 *
 * The wrapper `String` methods are:
 * `replace` and `split`
 *
 * The wrapper methods that support shortcut fusion are:
 * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
 * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
 * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
 *
 * The chainable wrapper methods are:
 * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
 * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
 * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
 * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
 * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
 * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
 * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
 * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
 * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
 * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
 * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
 * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
 * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
 * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
 * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
 * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
 * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
 * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
 * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
 * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
 * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
 * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
 * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
 * `zipObject`, `zipObjectDeep`, and `zipWith`
 *
 * The wrapper methods that are **not** chainable by default are:
 * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
 * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
 * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
 * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
 * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
 * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
 * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
 * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
 * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
 * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
 * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
 * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
 * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
 * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
 * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
 * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
 * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
 * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
 * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
 * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
 * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
 * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
 * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
 * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
 * `upperFirst`, `value`, and `words`
 *
 * @name _
 * @constructor
 * @category Seq
 * @param {*} value The value to wrap in a `lodash` instance.
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var wrapped = _([1, 2, 3]);
 *
 * // Returns an unwrapped value.
 * wrapped.reduce(_.add);
 * // => 6
 *
 * // Returns a wrapped value.
 * var squares = wrapped.map(square);
 *
 * _.isArray(squares);
 * // => false
 *
 * _.isArray(squares.value());
 * // => true
 */
function lodash(value) {
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
    if (value instanceof LodashWrapper) {
      return value;
    }
    if (hasOwnProperty.call(value, '__wrapped__')) {
      return wrapperClone(value);
    }
  }
  return new LodashWrapper(value);
}

// Ensure wrappers are instances of `baseLodash`.
lodash.prototype = baseLodash.prototype;
lodash.prototype.constructor = lodash;

module.exports = lodash;
var baseCreate = __webpack_require__(319),
    baseLodash = __webpack_require__(845);

/**
 * The base constructor for creating `lodash` wrapper objects.
 *
 * @private
 * @param {*} value The value to wrap.
 * @param {boolean} [chainAll] Enable explicit method chain sequences.
 */
function LodashWrapper(value, chainAll) {
  this.__wrapped__ = value;
  this.__actions__ = [];
  this.__chain__ = !!chainAll;
  this.__index__ = 0;
  this.__values__ = undefined;
}

LodashWrapper.prototype = baseCreate(baseLodash.prototype);
LodashWrapper.prototype.constructor = LodashWrapper;

module.exports = LodashWrapper;
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;

module.exports = isArray;
/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return value != null && typeof value == 'object';
}

module.exports = isObjectLike;
var LazyWrapper = __webpack_require__(844),
    LodashWrapper = __webpack_require__(1641),
    copyArray = __webpack_require__(215);

/**
 * Creates a clone of `wrapper`.
 *
 * @private
 * @param {Object} wrapper The wrapper to clone.
 * @returns {Object} Returns the cloned wrapper.
 */
function wrapperClone(wrapper) {
  if (wrapper instanceof LazyWrapper) {
    return wrapper.clone();
  }
  var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  result.__actions__ = copyArray(wrapper.__actions__);
  result.__index__  = wrapper.__index__;
  result.__values__ = wrapper.__values__;
  return result;
}

module.exports = wrapperClone;
/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
      length = source.length;

  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}

module.exports = copyArray;
var baseSetData = __webpack_require__(1631),
    shortOut = __webpack_require__(1643);

/**
 * Sets metadata for `func`.
 *
 * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
 * period of time, it will trip its breaker and transition to an identity
 * function to avoid garbage collection pauses in V8. See
 * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
 * for more details.
 *
 * @private
 * @param {Function} func The function to associate metadata with.
 * @param {*} data The metadata.
 * @returns {Function} Returns `func`.
 */
var setData = shortOut(baseSetData);

module.exports = setData;
/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
    HOT_SPAN = 16;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function shortOut(func) {
  var count = 0,
      lastCalled = 0;

  return function() {
    var stamp = nativeNow(),
        remaining = HOT_SPAN - (stamp - lastCalled);

    lastCalled = stamp;
    if (remaining > 0) {
      if (++count >= HOT_COUNT) {
        return arguments[0];
      }
    } else {
      count = 0;
    }
    return func.apply(undefined, arguments);
  };
}

module.exports = shortOut;
var getWrapDetails = __webpack_require__(2902),
    insertWrapDetails = __webpack_require__(2903),
    setToString = __webpack_require__(846),
    updateWrapDetails = __webpack_require__(2906);

/**
 * Sets the `toString` method of `wrapper` to mimic the source of `reference`
 * with wrapper details in a comment at the top of the source body.
 *
 * @private
 * @param {Function} wrapper The function to modify.
 * @param {Function} reference The reference function.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @returns {Function} Returns `wrapper`.
 */
function setWrapToString(wrapper, reference, bitmask) {
  var source = (reference + '');
  return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
}

module.exports = setWrapToString;
/** Used to match wrap detail comments. */
var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
    reSplitDetails = /,? & /;

/**
 * Extracts wrapper details from the `source` body comment.
 *
 * @private
 * @param {string} source The source to inspect.
 * @returns {Array} Returns the wrapper details.
 */
function getWrapDetails(source) {
  var match = source.match(reWrapDetails);
  return match ? match[1].split(reSplitDetails) : [];
}

module.exports = getWrapDetails;
/** Used to match wrap detail comments. */
var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;

/**
 * Inserts wrapper `details` in a comment at the top of the `source` body.
 *
 * @private
 * @param {string} source The source to modify.
 * @returns {Array} details The details to insert.
 * @returns {string} Returns the modified source.
 */
function insertWrapDetails(source, details) {
  var length = details.length;
  if (!length) {
    return source;
  }
  var lastIndex = length - 1;
  details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  details = details.join(length > 2 ? ', ' : ' ');
  return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
}

module.exports = insertWrapDetails;
var baseSetToString = __webpack_require__(2904),
    shortOut = __webpack_require__(1643);

/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var setToString = shortOut(baseSetToString);

module.exports = setToString;
var constant = __webpack_require__(2905),
    defineProperty = __webpack_require__(1645),
    identity = __webpack_require__(316);

/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var baseSetToString = !defineProperty ? identity : function(func, string) {
  return defineProperty(func, 'toString', {
    'configurable': true,
    'enumerable': false,
    'value': constant(string),
    'writable': true
  });
};

module.exports = baseSetToString;
/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
function constant(value) {
  return function() {
    return value;
  };
}

module.exports = constant;
var getNative = __webpack_require__(150);

var defineProperty = (function() {
  try {
    var func = getNative(Object, 'defineProperty');
    func({}, '', {});
    return func;
  } catch (e) {}
}());

module.exports = defineProperty;
var arrayEach = __webpack_require__(847),
    arrayIncludes = __webpack_require__(2907);

/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1,
    WRAP_BIND_KEY_FLAG = 2,
    WRAP_CURRY_FLAG = 8,
    WRAP_CURRY_RIGHT_FLAG = 16,
    WRAP_PARTIAL_FLAG = 32,
    WRAP_PARTIAL_RIGHT_FLAG = 64,
    WRAP_ARY_FLAG = 128,
    WRAP_REARG_FLAG = 256,
    WRAP_FLIP_FLAG = 512;

/** Used to associate wrap methods with their bit flags. */
var wrapFlags = [
  ['ary', WRAP_ARY_FLAG],
  ['bind', WRAP_BIND_FLAG],
  ['bindKey', WRAP_BIND_KEY_FLAG],
  ['curry', WRAP_CURRY_FLAG],
  ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  ['flip', WRAP_FLIP_FLAG],
  ['partial', WRAP_PARTIAL_FLAG],
  ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  ['rearg', WRAP_REARG_FLAG]
];

/**
 * Updates wrapper `details` based on `bitmask` flags.
 *
 * @private
 * @returns {Array} details The details to modify.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @returns {Array} Returns `details`.
 */
function updateWrapDetails(details, bitmask) {
  arrayEach(wrapFlags, function(pair) {
    var value = '_.' + pair[0];
    if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
      details.push(value);
    }
  });
  return details.sort();
}

module.exports = updateWrapDetails;
/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function arrayEach(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (iteratee(array[index], index, array) === false) {
      break;
    }
  }
  return array;
}

module.exports = arrayEach;
var baseIndexOf = __webpack_require__(2908);

/**
 * A specialized version of `_.includes` for arrays without support for
 * specifying an index to search from.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
function arrayIncludes(array, value) {
  var length = array == null ? 0 : array.length;
  return !!length && baseIndexOf(array, value, 0) > -1;
}

module.exports = arrayIncludes;
var baseFindIndex = __webpack_require__(2909),
    baseIsNaN = __webpack_require__(2910),
    strictIndexOf = __webpack_require__(2911);

/**
 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseIndexOf(array, value, fromIndex) {
  return value === value
    ? strictIndexOf(array, value, fromIndex)
    : baseFindIndex(array, baseIsNaN, fromIndex);
}

module.exports = baseIndexOf;
/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseFindIndex(array, predicate, fromIndex, fromRight) {
  var length = array.length,
      index = fromIndex + (fromRight ? 1 : -1);

  while ((fromRight ? index-- : ++index < length)) {
    if (predicate(array[index], index, array)) {
      return index;
    }
  }
  return -1;
}

module.exports = baseFindIndex;
/**
 * The base implementation of `_.isNaN` without support for number objects.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */
function baseIsNaN(value) {
  return value !== value;
}

module.exports = baseIsNaN;
/**
 * A specialized version of `_.indexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function strictIndexOf(array, value, fromIndex) {
  var index = fromIndex - 1,
      length = array.length;

  while (++index < length) {
    if (array[index] === value) {
      return index;
    }
  }
  return -1;
}

module.exports = strictIndexOf;
/**
 * Gets the argument placeholder value for `func`.
 *
 * @private
 * @param {Function} func The function to inspect.
 * @returns {*} Returns the placeholder value.
 */
function getHolder(func) {
  var object = func;
  return object.placeholder;
}

module.exports = getHolder;
var copyArray = __webpack_require__(215),
    isIndex = __webpack_require__(320);

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMin = Math.min;

/**
 * Reorder `array` according to the specified indexes where the element at
 * the first index is assigned as the first element, the element at
 * the second index is assigned as the second element, and so on.
 *
 * @private
 * @param {Array} array The array to reorder.
 * @param {Array} indexes The arranged array indexes.
 * @returns {Array} Returns `array`.
 */
function reorder(array, indexes) {
  var arrLength = array.length,
      length = nativeMin(indexes.length, arrLength),
      oldArray = copyArray(array);

  while (length--) {
    var index = indexes[length];
    array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  }
  return array;
}

module.exports = reorder;
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;

  return !!length &&
    (type == 'number' ||
      (type != 'symbol' && reIsUint.test(value))) &&
        (value > -1 && value % 1 == 0 && value < length);
}

module.exports = isIndex;
/** Used as the internal argument placeholder. */
var PLACEHOLDER = '__lodash_placeholder__';

/**
 * Replaces all `placeholder` elements in `array` with an internal placeholder
 * and returns an array of their indexes.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {*} placeholder The placeholder to replace.
 * @returns {Array} Returns the new array of placeholder indexes.
 */
function replaceHolders(array, placeholder) {
  var index = -1,
      length = array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index];
    if (value === placeholder || value === PLACEHOLDER) {
      array[index] = PLACEHOLDER;
      result[resIndex++] = index;
    }
  }
  return result;
}

module.exports = replaceHolders;
var apply = __webpack_require__(843),
    createCtor = __webpack_require__(318),
    root = __webpack_require__(63);

/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1;

/**
 * Creates a function that wraps `func` to invoke it with the `this` binding
 * of `thisArg` and `partials` prepended to the arguments it receives.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} partials The arguments to prepend to those provided to
 *  the new function.
 * @returns {Function} Returns the new wrapped function.
 */
function createPartial(func, bitmask, thisArg, partials) {
  var isBind = bitmask & WRAP_BIND_FLAG,
      Ctor = createCtor(func);

  function wrapper() {
    var argsIndex = -1,
        argsLength = arguments.length,
        leftIndex = -1,
        leftLength = partials.length,
        args = Array(leftLength + argsLength),
        fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;

    while (++leftIndex < leftLength) {
      args[leftIndex] = partials[leftIndex];
    }
    while (argsLength--) {
      args[leftIndex++] = arguments[++argsIndex];
    }
    return apply(fn, isBind ? thisArg : this, args);
  }
  return wrapper;
}

module.exports = createPartial;
var composeArgs = __webpack_require__(1637),
    composeArgsRight = __webpack_require__(1638),
    replaceHolders = __webpack_require__(848);

/** Used as the internal argument placeholder. */
var PLACEHOLDER = '__lodash_placeholder__';

/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1,
    WRAP_BIND_KEY_FLAG = 2,
    WRAP_CURRY_BOUND_FLAG = 4,
    WRAP_CURRY_FLAG = 8,
    WRAP_ARY_FLAG = 128,
    WRAP_REARG_FLAG = 256;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMin = Math.min;

/**
 * Merges the function metadata of `source` into `data`.
 *
 * Merging metadata reduces the number of wrappers used to invoke a function.
 * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
 * may be applied regardless of execution order. Methods like `_.ary` and
 * `_.rearg` modify function arguments, making the order in which they are
 * executed important, preventing the merging of metadata. However, we make
 * an exception for a safe combined case where curried functions have `_.ary`
 * and or `_.rearg` applied.
 *
 * @private
 * @param {Array} data The destination metadata.
 * @param {Array} source The source metadata.
 * @returns {Array} Returns `data`.
 */
function mergeData(data, source) {
  var bitmask = data[1],
      srcBitmask = source[1],
      newBitmask = bitmask | srcBitmask,
      isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);

  var isCombo =
    ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
    ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
    ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));

  // Exit early if metadata can't be merged.
  if (!(isCommon || isCombo)) {
    return data;
  }
  // Use source `thisArg` if available.
  if (srcBitmask & WRAP_BIND_FLAG) {
    data[2] = source[2];
    // Set when currying a bound function.
    newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  }
  // Compose partial arguments.
  var value = source[3];
  if (value) {
    var partials = data[3];
    data[3] = partials ? composeArgs(partials, value, source[4]) : value;
    data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  }
  // Compose partial right arguments.
  value = source[5];
  if (value) {
    partials = data[5];
    data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
    data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  }
  // Use source `argPos` if available.
  value = source[7];
  if (value) {
    data[7] = value;
  }
  // Use source `ary` if it's smaller.
  if (srcBitmask & WRAP_ARY_FLAG) {
    data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  }
  // Use source `arity` if one is not provided.
  if (data[9] == null) {
    data[9] = source[9];
  }
  // Use source `func` and merge bitmasks.
  data[0] = source[0];
  data[1] = newBitmask;

  return data;
}

module.exports = mergeData;
var toFinite = __webpack_require__(2915);

/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */
function toInteger(value) {
  var result = toFinite(value),
      remainder = result % 1;

  return result === result ? (remainder ? result - remainder : result) : 0;
}

module.exports = toInteger;
var toNumber = __webpack_require__(2916);

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
    MAX_INTEGER = 1.7976931348623157e+308;

/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */
function toFinite(value) {
  if (!value) {
    return value === 0 ? value : 0;
  }
  value = toNumber(value);
  if (value === INFINITY || value === -INFINITY) {
    var sign = (value < 0 ? -1 : 1);
    return sign * MAX_INTEGER;
  }
  return value === value ? value : 0;
}

module.exports = toFinite;
var baseTrim = __webpack_require__(2917),
    isObject = __webpack_require__(87),
    isSymbol = __webpack_require__(216);

/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (isSymbol(value)) {
    return NAN;
  }
  if (isObject(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = isObject(other) ? (other + '') : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = baseTrim(value);
  var isBinary = reIsBinary.test(value);
  return (isBinary || reIsOctal.test(value))
    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
    : (reIsBadHex.test(value) ? NAN : +value);
}

module.exports = toNumber;
var trimmedEndIndex = __webpack_require__(2918);

/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function baseTrim(string) {
  return string
    ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
    : string;
}

module.exports = baseTrim;
/** Used to match a single whitespace character. */
var reWhitespace = /\s/;

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */
function trimmedEndIndex(string) {
  var index = string.length;

  while (index-- && reWhitespace.test(string.charAt(index))) {}
  return index;
}

module.exports = trimmedEndIndex;
var baseGetTag = __webpack_require__(151),
    isObjectLike = __webpack_require__(76);

/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (isObjectLike(value) && baseGetTag(value) == symbolTag);
}

module.exports = isSymbol;
var copyObject = __webpack_require__(217),
    keys = __webpack_require__(321);

/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssign(object, source) {
  return object && copyObject(source, keys(source), object);
}

module.exports = baseAssign;
var assignValue = __webpack_require__(1649),
    baseAssignValue = __webpack_require__(849);

/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function copyObject(source, props, object, customizer) {
  var isNew = !object;
  object || (object = {});

  var index = -1,
      length = props.length;

  while (++index < length) {
    var key = props[index];

    var newValue = customizer
      ? customizer(object[key], source[key], key, object, source)
      : undefined;

    if (newValue === undefined) {
      newValue = source[key];
    }
    if (isNew) {
      baseAssignValue(object, key, newValue);
    } else {
      assignValue(object, key, newValue);
    }
  }
  return object;
}

module.exports = copyObject;
var baseAssignValue = __webpack_require__(849),
    eq = __webpack_require__(218);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignValue(object, key, value) {
  var objValue = object[key];
  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignValue;
var defineProperty = __webpack_require__(1645);

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function baseAssignValue(object, key, value) {
  if (key == '__proto__' && defineProperty) {
    defineProperty(object, key, {
      'configurable': true,
      'enumerable': true,
      'value': value,
      'writable': true
    });
  } else {
    object[key] = value;
  }
}

module.exports = baseAssignValue;
/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

module.exports = eq;
var arrayLikeKeys = __webpack_require__(1650),
    baseKeys = __webpack_require__(1651),
    isArrayLike = __webpack_require__(324);

/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function keys(object) {
  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
}

module.exports = keys;
var baseTimes = __webpack_require__(2919),
    isArguments = __webpack_require__(322),
    isArray = __webpack_require__(64),
    isBuffer = __webpack_require__(323),
    isIndex = __webpack_require__(320),
    isTypedArray = __webpack_require__(850);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function arrayLikeKeys(value, inherited) {
  var isArr = isArray(value),
      isArg = !isArr && isArguments(value),
      isBuff = !isArr && !isArg && isBuffer(value),
      isType = !isArr && !isArg && !isBuff && isTypedArray(value),
      skipIndexes = isArr || isArg || isBuff || isType,
      result = skipIndexes ? baseTimes(value.length, String) : [],
      length = result.length;

  for (var key in value) {
    if ((inherited || hasOwnProperty.call(value, key)) &&
        !(skipIndexes && (
           // Safari 9 has enumerable `arguments.length` in strict mode.
           key == 'length' ||
           // Node.js 0.10 has enumerable non-index properties on buffers.
           (isBuff && (key == 'offset' || key == 'parent')) ||
           // PhantomJS 2 has enumerable non-index properties on typed arrays.
           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
           // Skip index properties.
           isIndex(key, length)
        ))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = arrayLikeKeys;
/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function baseTimes(n, iteratee) {
  var index = -1,
      result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}

module.exports = baseTimes;
var baseIsArguments = __webpack_require__(2920),
    isObjectLike = __webpack_require__(76);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
    !propertyIsEnumerable.call(value, 'callee');
};

module.exports = isArguments;
var baseGetTag = __webpack_require__(151),
    isObjectLike = __webpack_require__(76);

/** `Object#toString` result references. */
var argsTag = '[object Arguments]';

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function baseIsArguments(value) {
  return isObjectLike(value) && baseGetTag(value) == argsTag;
}

module.exports = baseIsArguments;
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(63),
    stubFalse = __webpack_require__(2921);

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;

/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */
var isBuffer = nativeIsBuffer || stubFalse;

module.exports = isBuffer;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(185)(module)))/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function stubFalse() {
  return false;
}

module.exports = stubFalse;
var baseIsTypedArray = __webpack_require__(2922),
    baseUnary = __webpack_require__(852),
    nodeUtil = __webpack_require__(853);

/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

module.exports = isTypedArray;
var baseGetTag = __webpack_require__(151),
    isLength = __webpack_require__(851),
    isObjectLike = __webpack_require__(76);

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function baseIsTypedArray(value) {
  return isObjectLike(value) &&
    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
}

module.exports = baseIsTypedArray;
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' &&
    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}

module.exports = isLength;
/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function baseUnary(func) {
  return function(value) {
    return func(value);
  };
}

module.exports = baseUnary;
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(1634);

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && freeGlobal.process;

/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
  try {
    // Use `util.types` for Node.js 10+.
    var types = freeModule && freeModule.require && freeModule.require('util').types;

    if (types) {
      return types;
    }

    // Legacy `process.binding('util')` for Node.js < 10.
    return freeProcess && freeProcess.binding && freeProcess.binding('util');
  } catch (e) {}
}());

module.exports = nodeUtil;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(185)(module)))var isPrototype = __webpack_require__(854),
    nativeKeys = __webpack_require__(2923);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeys(object) {
  if (!isPrototype(object)) {
    return nativeKeys(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (hasOwnProperty.call(object, key) && key != 'constructor') {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeys;
/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
function isPrototype(value) {
  var Ctor = value && value.constructor,
      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

  return value === proto;
}

module.exports = isPrototype;
var overArg = __webpack_require__(1652);

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = overArg(Object.keys, Object);

module.exports = nativeKeys;
/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}

module.exports = overArg;
var isFunction = __webpack_require__(317),
    isLength = __webpack_require__(851);

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && isLength(value.length) && !isFunction(value);
}

module.exports = isArrayLike;
var baseClone = __webpack_require__(1653);

/** Used to compose bitmasks for cloning. */
var CLONE_SYMBOLS_FLAG = 4;

/**
 * Creates a shallow clone of `value`.
 *
 * **Note:** This method is loosely based on the
 * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
 * and supports cloning arrays, array buffers, booleans, date objects, maps,
 * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
 * arrays. The own enumerable properties of `arguments` objects are cloned
 * as plain objects. An empty object is returned for uncloneable values such
 * as error objects, functions, DOM nodes, and WeakMaps.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to clone.
 * @returns {*} Returns the cloned value.
 * @see _.cloneDeep
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var shallow = _.clone(objects);
 * console.log(shallow[0] === objects[0]);
 * // => true
 */
function clone(value) {
  return baseClone(value, CLONE_SYMBOLS_FLAG);
}

module.exports = clone;
var Stack = __webpack_require__(325),
    arrayEach = __webpack_require__(847),
    assignValue = __webpack_require__(1649),
    baseAssign = __webpack_require__(1648),
    baseAssignIn = __webpack_require__(2947),
    cloneBuffer = __webpack_require__(1654),
    copyArray = __webpack_require__(215),
    copySymbols = __webpack_require__(2950),
    copySymbolsIn = __webpack_require__(2952),
    getAllKeys = __webpack_require__(1657),
    getAllKeysIn = __webpack_require__(2953),
    getTag = __webpack_require__(220),
    initCloneArray = __webpack_require__(2957),
    initCloneByTag = __webpack_require__(2958),
    initCloneObject = __webpack_require__(1661),
    isArray = __webpack_require__(64),
    isBuffer = __webpack_require__(323),
    isMap = __webpack_require__(2962),
    isObject = __webpack_require__(87),
    isSet = __webpack_require__(2964),
    keys = __webpack_require__(321),
    keysIn = __webpack_require__(219);

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_FLAT_FLAG = 2,
    CLONE_SYMBOLS_FLAG = 4;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
cloneableTags[boolTag] = cloneableTags[dateTag] =
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
cloneableTags[int32Tag] = cloneableTags[mapTag] =
cloneableTags[numberTag] = cloneableTags[objectTag] =
cloneableTags[regexpTag] = cloneableTags[setTag] =
cloneableTags[stringTag] = cloneableTags[symbolTag] =
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function baseClone(value, bitmask, customizer, key, object, stack) {
  var result,
      isDeep = bitmask & CLONE_DEEP_FLAG,
      isFlat = bitmask & CLONE_FLAT_FLAG,
      isFull = bitmask & CLONE_SYMBOLS_FLAG;

  if (customizer) {
    result = object ? customizer(value, key, object, stack) : customizer(value);
  }
  if (result !== undefined) {
    return result;
  }
  if (!isObject(value)) {
    return value;
  }
  var isArr = isArray(value);
  if (isArr) {
    result = initCloneArray(value);
    if (!isDeep) {
      return copyArray(value, result);
    }
  } else {
    var tag = getTag(value),
        isFunc = tag == funcTag || tag == genTag;

    if (isBuffer(value)) {
      return cloneBuffer(value, isDeep);
    }
    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
      result = (isFlat || isFunc) ? {} : initCloneObject(value);
      if (!isDeep) {
        return isFlat
          ? copySymbolsIn(value, baseAssignIn(result, value))
          : copySymbols(value, baseAssign(result, value));
      }
    } else {
      if (!cloneableTags[tag]) {
        return object ? value : {};
      }
      result = initCloneByTag(value, tag, isDeep);
    }
  }
  // Check for circular references and return its corresponding clone.
  stack || (stack = new Stack);
  var stacked = stack.get(value);
  if (stacked) {
    return stacked;
  }
  stack.set(value, result);

  if (isSet(value)) {
    value.forEach(function(subValue) {
      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
    });
  } else if (isMap(value)) {
    value.forEach(function(subValue, key) {
      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
    });
  }

  var keysFunc = isFull
    ? (isFlat ? getAllKeysIn : getAllKeys)
    : (isFlat ? keysIn : keys);

  var props = isArr ? undefined : keysFunc(value);
  arrayEach(props || value, function(subValue, key) {
    if (props) {
      key = subValue;
      subValue = value[key];
    }
    // Recursively populate clone (susceptible to call stack limits).
    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  });
  return result;
}

module.exports = baseClone;
var ListCache = __webpack_require__(326),
    stackClear = __webpack_require__(2930),
    stackDelete = __webpack_require__(2931),
    stackGet = __webpack_require__(2932),
    stackHas = __webpack_require__(2933),
    stackSet = __webpack_require__(2934);

/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Stack(entries) {
  var data = this.__data__ = new ListCache(entries);
  this.size = data.size;
}

// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;

module.exports = Stack;
var listCacheClear = __webpack_require__(2925),
    listCacheDelete = __webpack_require__(2926),
    listCacheGet = __webpack_require__(2927),
    listCacheHas = __webpack_require__(2928),
    listCacheSet = __webpack_require__(2929);

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ListCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;

module.exports = ListCache;
/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}

module.exports = listCacheClear;
var assocIndexOf = __webpack_require__(327);

/** Used for built-in method references. */
var arrayProto = Array.prototype;

/** Built-in value references. */
var splice = arrayProto.splice;

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function listCacheDelete(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    return false;
  }
  var lastIndex = data.length - 1;
  if (index == lastIndex) {
    data.pop();
  } else {
    splice.call(data, index, 1);
  }
  --this.size;
  return true;
}

module.exports = listCacheDelete;
var eq = __webpack_require__(218);

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if (eq(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}

module.exports = assocIndexOf;
var assocIndexOf = __webpack_require__(327);

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function listCacheGet(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  return index < 0 ? undefined : data[index][1];
}

module.exports = listCacheGet;
var assocIndexOf = __webpack_require__(327);

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function listCacheHas(key) {
  return assocIndexOf(this.__data__, key) > -1;
}

module.exports = listCacheHas;
var assocIndexOf = __webpack_require__(327);

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
function listCacheSet(key, value) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    ++this.size;
    data.push([key, value]);
  } else {
    data[index][1] = value;
  }
  return this;
}

module.exports = listCacheSet;
var ListCache = __webpack_require__(326);

/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
function stackClear() {
  this.__data__ = new ListCache;
  this.size = 0;
}

module.exports = stackClear;
/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function stackDelete(key) {
  var data = this.__data__,
      result = data['delete'](key);

  this.size = data.size;
  return result;
}

module.exports = stackDelete;
/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function stackGet(key) {
  return this.__data__.get(key);
}

module.exports = stackGet;
/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function stackHas(key) {
  return this.__data__.has(key);
}

module.exports = stackHas;
var ListCache = __webpack_require__(326),
    Map = __webpack_require__(855),
    MapCache = __webpack_require__(856);

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function stackSet(key, value) {
  var data = this.__data__;
  if (data instanceof ListCache) {
    var pairs = data.__data__;
    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
      pairs.push([key, value]);
      this.size = ++data.size;
      return this;
    }
    data = this.__data__ = new MapCache(pairs);
  }
  data.set(key, value);
  this.size = data.size;
  return this;
}

module.exports = stackSet;
var getNative = __webpack_require__(150),
    root = __webpack_require__(63);

/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');

module.exports = Map;
var mapCacheClear = __webpack_require__(2935),
    mapCacheDelete = __webpack_require__(2942),
    mapCacheGet = __webpack_require__(2944),
    mapCacheHas = __webpack_require__(2945),
    mapCacheSet = __webpack_require__(2946);

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function MapCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;

module.exports = MapCache;
var Hash = __webpack_require__(2936),
    ListCache = __webpack_require__(326),
    Map = __webpack_require__(855);

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new Hash,
    'map': new (Map || ListCache),
    'string': new Hash
  };
}

module.exports = mapCacheClear;
var hashClear = __webpack_require__(2937),
    hashDelete = __webpack_require__(2938),
    hashGet = __webpack_require__(2939),
    hashHas = __webpack_require__(2940),
    hashSet = __webpack_require__(2941);

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Hash(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;

module.exports = Hash;
var nativeCreate = __webpack_require__(328);

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function hashClear() {
  this.__data__ = nativeCreate ? nativeCreate(null) : {};
  this.size = 0;
}

module.exports = hashClear;
var getNative = __webpack_require__(150);

/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');

module.exports = nativeCreate;
/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = hashDelete;
var nativeCreate = __webpack_require__(328);

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function hashGet(key) {
  var data = this.__data__;
  if (nativeCreate) {
    var result = data[key];
    return result === HASH_UNDEFINED ? undefined : result;
  }
  return hasOwnProperty.call(data, key) ? data[key] : undefined;
}

module.exports = hashGet;
var nativeCreate = __webpack_require__(328);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function hashHas(key) {
  var data = this.__data__;
  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}

module.exports = hashHas;
var nativeCreate = __webpack_require__(328);

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function hashSet(key, value) {
  var data = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  return this;
}

module.exports = hashSet;
var getMapData = __webpack_require__(329);

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function mapCacheDelete(key) {
  var result = getMapData(this, key)['delete'](key);
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = mapCacheDelete;
var isKeyable = __webpack_require__(2943);

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
function getMapData(map, key) {
  var data = map.__data__;
  return isKeyable(key)
    ? data[typeof key == 'string' ? 'string' : 'hash']
    : data.map;
}

module.exports = getMapData;
/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function isKeyable(value) {
  var type = typeof value;
  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
    ? (value !== '__proto__')
    : (value === null);
}

module.exports = isKeyable;
var getMapData = __webpack_require__(329);

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function mapCacheGet(key) {
  return getMapData(this, key).get(key);
}

module.exports = mapCacheGet;
var getMapData = __webpack_require__(329);

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return getMapData(this, key).has(key);
}

module.exports = mapCacheHas;
var getMapData = __webpack_require__(329);

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
function mapCacheSet(key, value) {
  var data = getMapData(this, key),
      size = data.size;

  data.set(key, value);
  this.size += data.size == size ? 0 : 1;
  return this;
}

module.exports = mapCacheSet;
var copyObject = __webpack_require__(217),
    keysIn = __webpack_require__(219);

/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssignIn(object, source) {
  return object && copyObject(source, keysIn(source), object);
}

module.exports = baseAssignIn;
var arrayLikeKeys = __webpack_require__(1650),
    baseKeysIn = __webpack_require__(2948),
    isArrayLike = __webpack_require__(324);

/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function keysIn(object) {
  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
}

module.exports = keysIn;
var isObject = __webpack_require__(87),
    isPrototype = __webpack_require__(854),
    nativeKeysIn = __webpack_require__(2949);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeysIn(object) {
  if (!isObject(object)) {
    return nativeKeysIn(object);
  }
  var isProto = isPrototype(object),
      result = [];

  for (var key in object) {
    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeysIn;
/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function nativeKeysIn(object) {
  var result = [];
  if (object != null) {
    for (var key in Object(object)) {
      result.push(key);
    }
  }
  return result;
}

module.exports = nativeKeysIn;
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(63);

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined,
    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function cloneBuffer(buffer, isDeep) {
  if (isDeep) {
    return buffer.slice();
  }
  var length = buffer.length,
      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

  buffer.copy(result);
  return result;
}

module.exports = cloneBuffer;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(185)(module)))var copyObject = __webpack_require__(217),
    getSymbols = __webpack_require__(857);

/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbols(source, object) {
  return copyObject(source, getSymbols(source), object);
}

module.exports = copySymbols;
var arrayFilter = __webpack_require__(2951),
    stubArray = __webpack_require__(1655);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  if (object == null) {
    return [];
  }
  object = Object(object);
  return arrayFilter(nativeGetSymbols(object), function(symbol) {
    return propertyIsEnumerable.call(object, symbol);
  });
};

module.exports = getSymbols;
/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function arrayFilter(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}

module.exports = arrayFilter;
/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function stubArray() {
  return [];
}

module.exports = stubArray;
var copyObject = __webpack_require__(217),
    getSymbolsIn = __webpack_require__(1656);

/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbolsIn(source, object) {
  return copyObject(source, getSymbolsIn(source), object);
}

module.exports = copySymbolsIn;
var arrayPush = __webpack_require__(858),
    getPrototype = __webpack_require__(859),
    getSymbols = __webpack_require__(857),
    stubArray = __webpack_require__(1655);

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own and inherited enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  var result = [];
  while (object) {
    arrayPush(result, getSymbols(object));
    object = getPrototype(object);
  }
  return result;
};

module.exports = getSymbolsIn;
/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function arrayPush(array, values) {
  var index = -1,
      length = values.length,
      offset = array.length;

  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}

module.exports = arrayPush;
var overArg = __webpack_require__(1652);

/** Built-in value references. */
var getPrototype = overArg(Object.getPrototypeOf, Object);

module.exports = getPrototype;
var baseGetAllKeys = __webpack_require__(1658),
    getSymbols = __webpack_require__(857),
    keys = __webpack_require__(321);

/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeys(object) {
  return baseGetAllKeys(object, keys, getSymbols);
}

module.exports = getAllKeys;
var arrayPush = __webpack_require__(858),
    isArray = __webpack_require__(64);

/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}

module.exports = baseGetAllKeys;
var baseGetAllKeys = __webpack_require__(1658),
    getSymbolsIn = __webpack_require__(1656),
    keysIn = __webpack_require__(219);

/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeysIn(object) {
  return baseGetAllKeys(object, keysIn, getSymbolsIn);
}

module.exports = getAllKeysIn;
var DataView = __webpack_require__(2954),
    Map = __webpack_require__(855),
    Promise = __webpack_require__(2955),
    Set = __webpack_require__(2956),
    WeakMap = __webpack_require__(1633),
    baseGetTag = __webpack_require__(151),
    toSource = __webpack_require__(1635);

/** `Object#toString` result references. */
var mapTag = '[object Map]',
    objectTag = '[object Object]',
    promiseTag = '[object Promise]',
    setTag = '[object Set]',
    weakMapTag = '[object WeakMap]';

var dataViewTag = '[object DataView]';

/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
    mapCtorString = toSource(Map),
    promiseCtorString = toSource(Promise),
    setCtorString = toSource(Set),
    weakMapCtorString = toSource(WeakMap);

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
var getTag = baseGetTag;

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
    (Map && getTag(new Map) != mapTag) ||
    (Promise && getTag(Promise.resolve()) != promiseTag) ||
    (Set && getTag(new Set) != setTag) ||
    (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  getTag = function(value) {
    var result = baseGetTag(value),
        Ctor = result == objectTag ? value.constructor : undefined,
        ctorString = Ctor ? toSource(Ctor) : '';

    if (ctorString) {
      switch (ctorString) {
        case dataViewCtorString: return dataViewTag;
        case mapCtorString: return mapTag;
        case promiseCtorString: return promiseTag;
        case setCtorString: return setTag;
        case weakMapCtorString: return weakMapTag;
      }
    }
    return result;
  };
}

module.exports = getTag;
var getNative = __webpack_require__(150),
    root = __webpack_require__(63);

/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView');

module.exports = DataView;
var getNative = __webpack_require__(150),
    root = __webpack_require__(63);

/* Built-in method references that are verified to be native. */
var Promise = getNative(root, 'Promise');

module.exports = Promise;
var getNative = __webpack_require__(150),
    root = __webpack_require__(63);

/* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');

module.exports = Set;
/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function initCloneArray(array) {
  var length = array.length,
      result = new array.constructor(length);

  // Add properties assigned by `RegExp#exec`.
  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
    result.index = array.index;
    result.input = array.input;
  }
  return result;
}

module.exports = initCloneArray;
var cloneArrayBuffer = __webpack_require__(860),
    cloneDataView = __webpack_require__(2959),
    cloneRegExp = __webpack_require__(2960),
    cloneSymbol = __webpack_require__(2961),
    cloneTypedArray = __webpack_require__(1660);

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneByTag(object, tag, isDeep) {
  var Ctor = object.constructor;
  switch (tag) {
    case arrayBufferTag:
      return cloneArrayBuffer(object);

    case boolTag:
    case dateTag:
      return new Ctor(+object);

    case dataViewTag:
      return cloneDataView(object, isDeep);

    case float32Tag: case float64Tag:
    case int8Tag: case int16Tag: case int32Tag:
    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
      return cloneTypedArray(object, isDeep);

    case mapTag:
      return new Ctor;

    case numberTag:
    case stringTag:
      return new Ctor(object);

    case regexpTag:
      return cloneRegExp(object);

    case setTag:
      return new Ctor;

    case symbolTag:
      return cloneSymbol(object);
  }
}

module.exports = initCloneByTag;
var Uint8Array = __webpack_require__(1659);

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  return result;
}

module.exports = cloneArrayBuffer;
var root = __webpack_require__(63);

/** Built-in value references. */
var Uint8Array = root.Uint8Array;

module.exports = Uint8Array;
var cloneArrayBuffer = __webpack_require__(860);

/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
function cloneDataView(dataView, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}

module.exports = cloneDataView;
/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */
function cloneRegExp(regexp) {
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  result.lastIndex = regexp.lastIndex;
  return result;
}

module.exports = cloneRegExp;
var Symbol = __webpack_require__(184);

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function cloneSymbol(symbol) {
  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}

module.exports = cloneSymbol;
var cloneArrayBuffer = __webpack_require__(860);

/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
function cloneTypedArray(typedArray, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}

module.exports = cloneTypedArray;
var baseCreate = __webpack_require__(319),
    getPrototype = __webpack_require__(859),
    isPrototype = __webpack_require__(854);

/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneObject(object) {
  return (typeof object.constructor == 'function' && !isPrototype(object))
    ? baseCreate(getPrototype(object))
    : {};
}

module.exports = initCloneObject;
var baseIsMap = __webpack_require__(2963),
    baseUnary = __webpack_require__(852),
    nodeUtil = __webpack_require__(853);

/* Node.js helper references. */
var nodeIsMap = nodeUtil && nodeUtil.isMap;

/**
 * Checks if `value` is classified as a `Map` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 * @example
 *
 * _.isMap(new Map);
 * // => true
 *
 * _.isMap(new WeakMap);
 * // => false
 */
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

module.exports = isMap;
var getTag = __webpack_require__(220),
    isObjectLike = __webpack_require__(76);

/** `Object#toString` result references. */
var mapTag = '[object Map]';

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function baseIsMap(value) {
  return isObjectLike(value) && getTag(value) == mapTag;
}

module.exports = baseIsMap;
var baseIsSet = __webpack_require__(2965),
    baseUnary = __webpack_require__(852),
    nodeUtil = __webpack_require__(853);

/* Node.js helper references. */
var nodeIsSet = nodeUtil && nodeUtil.isSet;

/**
 * Checks if `value` is classified as a `Set` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 * @example
 *
 * _.isSet(new Set);
 * // => true
 *
 * _.isSet(new WeakSet);
 * // => false
 */
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

module.exports = isSet;
var getTag = __webpack_require__(220),
    isObjectLike = __webpack_require__(76);

/** `Object#toString` result references. */
var setTag = '[object Set]';

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function baseIsSet(value) {
  return isObjectLike(value) && getTag(value) == setTag;
}

module.exports = baseIsSet;
var createWrap = __webpack_require__(842);

/** Used to compose bitmasks for function metadata. */
var WRAP_CURRY_FLAG = 8;

/**
 * Creates a function that accepts arguments of `func` and either invokes
 * `func` returning its result, if at least `arity` number of arguments have
 * been provided, or returns a function that accepts the remaining `func`
 * arguments, and so on. The arity of `func` may be specified if `func.length`
 * is not sufficient.
 *
 * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
 * may be used as a placeholder for provided arguments.
 *
 * **Note:** This method doesn't set the "length" property of curried functions.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Function
 * @param {Function} func The function to curry.
 * @param {number} [arity=func.length] The arity of `func`.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Function} Returns the new curried function.
 * @example
 *
 * var abc = function(a, b, c) {
 *   return [a, b, c];
 * };
 *
 * var curried = _.curry(abc);
 *
 * curried(1)(2)(3);
 * // => [1, 2, 3]
 *
 * curried(1, 2)(3);
 * // => [1, 2, 3]
 *
 * curried(1, 2, 3);
 * // => [1, 2, 3]
 *
 * // Curried with placeholders.
 * curried(1)(_, 3)(2);
 * // => [1, 2, 3]
 */
function curry(func, arity, guard) {
  arity = guard ? undefined : arity;
  var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  result.placeholder = curry.placeholder;
  return result;
}

// Assign default placeholders.
curry.placeholder = {};

module.exports = curry;
var baseGetTag = __webpack_require__(151),
    isObjectLike = __webpack_require__(76),
    isPlainObject = __webpack_require__(1662);

/** `Object#toString` result references. */
var domExcTag = '[object DOMException]',
    errorTag = '[object Error]';

/**
 * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
 * `SyntaxError`, `TypeError`, or `URIError` object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
 * @example
 *
 * _.isError(new Error);
 * // => true
 *
 * _.isError(Error);
 * // => false
 */
function isError(value) {
  if (!isObjectLike(value)) {
    return false;
  }
  var tag = baseGetTag(value);
  return tag == errorTag || tag == domExcTag ||
    (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
}

module.exports = isError;
var baseGetTag = __webpack_require__(151),
    getPrototype = __webpack_require__(859),
    isObjectLike = __webpack_require__(76);

/** `Object#toString` result references. */
var objectTag = '[object Object]';

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function isPlainObject(value) {
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
    return false;
  }
  var proto = getPrototype(value);
  if (proto === null) {
    return true;
  }
  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
    funcToString.call(Ctor) == objectCtorString;
}

module.exports = isPlainObject;
var getTag = __webpack_require__(220),
    isObjectLike = __webpack_require__(76);

/** `Object#toString` result references. */
var weakMapTag = '[object WeakMap]';

/**
 * Checks if `value` is classified as a `WeakMap` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
 * @example
 *
 * _.isWeakMap(new WeakMap);
 * // => true
 *
 * _.isWeakMap(new Map);
 * // => false
 */
function isWeakMap(value) {
  return isObjectLike(value) && getTag(value) == weakMapTag;
}

module.exports = isWeakMap;
var baseClone = __webpack_require__(1653),
    baseIteratee = __webpack_require__(2970);

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1;

/**
 * Creates a function that invokes `func` with the arguments of the created
 * function. If `func` is a property name, the created function returns the
 * property value for a given element. If `func` is an array or object, the
 * created function returns `true` for elements that contain the equivalent
 * source properties, otherwise it returns `false`.
 *
 * @static
 * @since 4.0.0
 * @memberOf _
 * @category Util
 * @param {*} [func=_.identity] The value to convert to a callback.
 * @returns {Function} Returns the callback.
 * @example
 *
 * var users = [
 *   { 'user': 'barney', 'age': 36, 'active': true },
 *   { 'user': 'fred',   'age': 40, 'active': false }
 * ];
 *
 * // The `_.matches` iteratee shorthand.
 * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
 * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.filter(users, _.iteratee(['user', 'fred']));
 * // => [{ 'user': 'fred', 'age': 40 }]
 *
 * // The `_.property` iteratee shorthand.
 * _.map(users, _.iteratee('user'));
 * // => ['barney', 'fred']
 *
 * // Create custom iteratee shorthands.
 * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
 *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
 *     return func.test(string);
 *   };
 * });
 *
 * _.filter(['abc', 'def'], /ef/);
 * // => ['def']
 */
function iteratee(func) {
  return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
}

module.exports = iteratee;
var baseMatches = __webpack_require__(2971),
    baseMatchesProperty = __webpack_require__(2984),
    identity = __webpack_require__(316),
    isArray = __webpack_require__(64),
    property = __webpack_require__(2992);

/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
function baseIteratee(value) {
  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  if (typeof value == 'function') {
    return value;
  }
  if (value == null) {
    return identity;
  }
  if (typeof value == 'object') {
    return isArray(value)
      ? baseMatchesProperty(value[0], value[1])
      : baseMatches(value);
  }
  return property(value);
}

module.exports = baseIteratee;
var baseIsMatch = __webpack_require__(2972),
    getMatchData = __webpack_require__(2983),
    matchesStrictComparable = __webpack_require__(1666);

/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatches(source) {
  var matchData = getMatchData(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  }
  return function(object) {
    return object === source || baseIsMatch(object, source, matchData);
  };
}

module.exports = baseMatches;
var Stack = __webpack_require__(325),
    baseIsEqual = __webpack_require__(1663);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function baseIsMatch(object, source, matchData, customizer) {
  var index = matchData.length,
      length = index,
      noCustomizer = !customizer;

  if (object == null) {
    return !length;
  }
  object = Object(object);
  while (index--) {
    var data = matchData[index];
    if ((noCustomizer && data[2])
          ? data[1] !== object[data[0]]
          : !(data[0] in object)
        ) {
      return false;
    }
  }
  while (++index < length) {
    data = matchData[index];
    var key = data[0],
        objValue = object[key],
        srcValue = data[1];

    if (noCustomizer && data[2]) {
      if (objValue === undefined && !(key in object)) {
        return false;
      }
    } else {
      var stack = new Stack;
      if (customizer) {
        var result = customizer(objValue, srcValue, key, object, source, stack);
      }
      if (!(result === undefined
            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
            : result
          )) {
        return false;
      }
    }
  }
  return true;
}

module.exports = baseIsMatch;
var baseIsEqualDeep = __webpack_require__(2973),
    isObjectLike = __webpack_require__(76);

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
    return value !== value && other !== other;
  }
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
}

module.exports = baseIsEqual;
var Stack = __webpack_require__(325),
    equalArrays = __webpack_require__(1664),
    equalByTag = __webpack_require__(2979),
    equalObjects = __webpack_require__(2982),
    getTag = __webpack_require__(220),
    isArray = __webpack_require__(64),
    isBuffer = __webpack_require__(323),
    isTypedArray = __webpack_require__(850);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    objectTag = '[object Object]';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = isArray(object),
      othIsArr = isArray(other),
      objTag = objIsArr ? arrayTag : getTag(object),
      othTag = othIsArr ? arrayTag : getTag(other);

  objTag = objTag == argsTag ? objectTag : objTag;
  othTag = othTag == argsTag ? objectTag : othTag;

  var objIsObj = objTag == objectTag,
      othIsObj = othTag == objectTag,
      isSameTag = objTag == othTag;

  if (isSameTag && isBuffer(object)) {
    if (!isBuffer(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new Stack);
    return (objIsArr || isTypedArray(object))
      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object,
          othUnwrapped = othIsWrapped ? other.value() : other;

      stack || (stack = new Stack);
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new Stack);
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
}

module.exports = baseIsEqualDeep;
var SetCache = __webpack_require__(2974),
    arraySome = __webpack_require__(2977),
    cacheHas = __webpack_require__(2978);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      arrLength = array.length,
      othLength = other.length;

  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  // Check that cyclic values are equal.
  var arrStacked = stack.get(array);
  var othStacked = stack.get(other);
  if (arrStacked && othStacked) {
    return arrStacked == other && othStacked == array;
  }
  var index = -1,
      result = true,
      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;

  stack.set(array, other);
  stack.set(other, array);

  // Ignore non-index properties.
  while (++index < arrLength) {
    var arrValue = array[index],
        othValue = other[index];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, arrValue, index, other, array, stack)
        : customizer(arrValue, othValue, index, array, other, stack);
    }
    if (compared !== undefined) {
      if (compared) {
        continue;
      }
      result = false;
      break;
    }
    // Recursively compare arrays (susceptible to call stack limits).
    if (seen) {
      if (!arraySome(other, function(othValue, othIndex) {
            if (!cacheHas(seen, othIndex) &&
                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
              return seen.push(othIndex);
            }
          })) {
        result = false;
        break;
      }
    } else if (!(
          arrValue === othValue ||
            equalFunc(arrValue, othValue, bitmask, customizer, stack)
        )) {
      result = false;
      break;
    }
  }
  stack['delete'](array);
  stack['delete'](other);
  return result;
}

module.exports = equalArrays;
var MapCache = __webpack_require__(856),
    setCacheAdd = __webpack_require__(2975),
    setCacheHas = __webpack_require__(2976);

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
      length = values == null ? 0 : values.length;

  this.__data__ = new MapCache;
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;

module.exports = SetCache;
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED);
  return this;
}

module.exports = setCacheAdd;
/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function setCacheHas(value) {
  return this.__data__.has(value);
}

module.exports = setCacheHas;
/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function arraySome(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}

module.exports = arraySome;
/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function cacheHas(cache, key) {
  return cache.has(key);
}

module.exports = cacheHas;
var Symbol = __webpack_require__(184),
    Uint8Array = __webpack_require__(1659),
    eq = __webpack_require__(218),
    equalArrays = __webpack_require__(1664),
    mapToArray = __webpack_require__(2980),
    setToArray = __webpack_require__(2981);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]';

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag:
      if ((object.byteLength != other.byteLength) ||
          (object.byteOffset != other.byteOffset)) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;

    case arrayBufferTag:
      if ((object.byteLength != other.byteLength) ||
          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
        return false;
      }
      return true;

    case boolTag:
    case dateTag:
    case numberTag:
      // Coerce booleans to `1` or `0` and dates to milliseconds.
      // Invalid dates are coerced to `NaN`.
      return eq(+object, +other);

    case errorTag:
      return object.name == other.name && object.message == other.message;

    case regexpTag:
    case stringTag:
      // Coerce regexes to strings and treat strings, primitives and objects,
      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
      // for more details.
      return object == (other + '');

    case mapTag:
      var convert = mapToArray;

    case setTag:
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
      convert || (convert = setToArray);

      if (object.size != other.size && !isPartial) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= COMPARE_UNORDERED_FLAG;

      // Recursively compare objects (susceptible to call stack limits).
      stack.set(object, other);
      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack['delete'](object);
      return result;

    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}

module.exports = equalByTag;
/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function mapToArray(map) {
  var index = -1,
      result = Array(map.size);

  map.forEach(function(value, key) {
    result[++index] = [key, value];
  });
  return result;
}

module.exports = mapToArray;
/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function setToArray(set) {
  var index = -1,
      result = Array(set.size);

  set.forEach(function(value) {
    result[++index] = value;
  });
  return result;
}

module.exports = setToArray;
var getAllKeys = __webpack_require__(1657);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      objProps = getAllKeys(object),
      objLength = objProps.length,
      othProps = getAllKeys(other),
      othLength = othProps.length;

  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
      return false;
    }
  }
  // Check that cyclic values are equal.
  var objStacked = stack.get(object);
  var othStacked = stack.get(other);
  if (objStacked && othStacked) {
    return objStacked == other && othStacked == object;
  }
  var result = true;
  stack.set(object, other);
  stack.set(other, object);

  var skipCtor = isPartial;
  while (++index < objLength) {
    key = objProps[index];
    var objValue = object[key],
        othValue = other[key];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, objValue, key, other, object, stack)
        : customizer(objValue, othValue, key, object, other, stack);
    }
    // Recursively compare objects (susceptible to call stack limits).
    if (!(compared === undefined
          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
          : compared
        )) {
      result = false;
      break;
    }
    skipCtor || (skipCtor = key == 'constructor');
  }
  if (result && !skipCtor) {
    var objCtor = object.constructor,
        othCtor = other.constructor;

    // Non `Object` object instances with different constructors are not equal.
    if (objCtor != othCtor &&
        ('constructor' in object && 'constructor' in other) &&
        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
          typeof othCtor == 'function' && othCtor instanceof othCtor)) {
      result = false;
    }
  }
  stack['delete'](object);
  stack['delete'](other);
  return result;
}

module.exports = equalObjects;
var isStrictComparable = __webpack_require__(1665),
    keys = __webpack_require__(321);

/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
function getMatchData(object) {
  var result = keys(object),
      length = result.length;

  while (length--) {
    var key = result[length],
        value = object[key];

    result[length] = [key, value, isStrictComparable(value)];
  }
  return result;
}

module.exports = getMatchData;
var isObject = __webpack_require__(87);

/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function isStrictComparable(value) {
  return value === value && !isObject(value);
}

module.exports = isStrictComparable;
/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function(object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue &&
      (srcValue !== undefined || (key in Object(object)));
  };
}

module.exports = matchesStrictComparable;
var baseIsEqual = __webpack_require__(1663),
    get = __webpack_require__(2985),
    hasIn = __webpack_require__(2989),
    isKey = __webpack_require__(861),
    isStrictComparable = __webpack_require__(1665),
    matchesStrictComparable = __webpack_require__(1666),
    toKey = __webpack_require__(221);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatchesProperty(path, srcValue) {
  if (isKey(path) && isStrictComparable(srcValue)) {
    return matchesStrictComparable(toKey(path), srcValue);
  }
  return function(object) {
    var objValue = get(object, path);
    return (objValue === undefined && objValue === srcValue)
      ? hasIn(object, path)
      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  };
}

module.exports = baseMatchesProperty;
var baseGet = __webpack_require__(1667);

/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
function get(object, path, defaultValue) {
  var result = object == null ? undefined : baseGet(object, path);
  return result === undefined ? defaultValue : result;
}

module.exports = get;
var castPath = __webpack_require__(1668),
    toKey = __webpack_require__(221);

/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
function baseGet(object, path) {
  path = castPath(path, object);

  var index = 0,
      length = path.length;

  while (object != null && index < length) {
    object = object[toKey(path[index++])];
  }
  return (index && index == length) ? object : undefined;
}

module.exports = baseGet;
var isArray = __webpack_require__(64),
    isKey = __webpack_require__(861),
    stringToPath = __webpack_require__(1669),
    toString = __webpack_require__(1670);

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}

module.exports = castPath;
var isArray = __webpack_require__(64),
    isSymbol = __webpack_require__(216);

/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
    reIsPlainProp = /^\w*$/;

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function isKey(value, object) {
  if (isArray(value)) {
    return false;
  }
  var type = typeof value;
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
      value == null || isSymbol(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
    (object != null && value in Object(object));
}

module.exports = isKey;
var memoizeCapped = __webpack_require__(2986);

/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */
var stringToPath = memoizeCapped(function(string) {
  var result = [];
  if (string.charCodeAt(0) === 46 /* . */) {
    result.push('');
  }
  string.replace(rePropName, function(match, number, quote, subString) {
    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  });
  return result;
});

module.exports = stringToPath;
var memoize = __webpack_require__(2987);

/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function memoizeCapped(func) {
  var result = memoize(func, function(key) {
    if (cache.size === MAX_MEMOIZE_SIZE) {
      cache.clear();
    }
    return key;
  });

  var cache = result.cache;
  return result;
}

module.exports = memoizeCapped;
var MapCache = __webpack_require__(856);

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function memoize(func, resolver) {
  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var memoized = function() {
    var args = arguments,
        key = resolver ? resolver.apply(this, args) : args[0],
        cache = memoized.cache;

    if (cache.has(key)) {
      return cache.get(key);
    }
    var result = func.apply(this, args);
    memoized.cache = cache.set(key, result) || cache;
    return result;
  };
  memoized.cache = new (memoize.Cache || MapCache);
  return memoized;
}

// Expose `MapCache`.
memoize.Cache = MapCache;

module.exports = memoize;
var baseToString = __webpack_require__(2988);

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
function toString(value) {
  return value == null ? '' : baseToString(value);
}

module.exports = toString;
var Symbol = __webpack_require__(184),
    arrayMap = __webpack_require__(1671),
    isArray = __webpack_require__(64),
    isSymbol = __webpack_require__(216);

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolToString = symbolProto ? symbolProto.toString : undefined;

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function baseToString(value) {
  // Exit early for strings to avoid a performance hit in some environments.
  if (typeof value == 'string') {
    return value;
  }
  if (isArray(value)) {
    // Recursively convert values (susceptible to call stack limits).
    return arrayMap(value, baseToString) + '';
  }
  if (isSymbol(value)) {
    return symbolToString ? symbolToString.call(value) : '';
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = baseToString;
/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length,
      result = Array(length);

  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}

module.exports = arrayMap;
var isSymbol = __webpack_require__(216);

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function toKey(value) {
  if (typeof value == 'string' || isSymbol(value)) {
    return value;
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = toKey;
var baseHasIn = __webpack_require__(2990),
    hasPath = __webpack_require__(2991);

/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
function hasIn(object, path) {
  return object != null && hasPath(object, path, baseHasIn);
}

module.exports = hasIn;
/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHasIn(object, key) {
  return object != null && key in Object(object);
}

module.exports = baseHasIn;
var castPath = __webpack_require__(1668),
    isArguments = __webpack_require__(322),
    isArray = __webpack_require__(64),
    isIndex = __webpack_require__(320),
    isLength = __webpack_require__(851),
    toKey = __webpack_require__(221);

/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function hasPath(object, path, hasFunc) {
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      result = false;

  while (++index < length) {
    var key = toKey(path[index]);
    if (!(result = object != null && hasFunc(object, key))) {
      break;
    }
    object = object[key];
  }
  if (result || ++index != length) {
    return result;
  }
  length = object == null ? 0 : object.length;
  return !!length && isLength(length) && isIndex(key, length) &&
    (isArray(object) || isArguments(object));
}

module.exports = hasPath;
var baseProperty = __webpack_require__(2993),
    basePropertyDeep = __webpack_require__(2994),
    isKey = __webpack_require__(861),
    toKey = __webpack_require__(221);

/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
function property(path) {
  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}

module.exports = property;
/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

module.exports = baseProperty;
var baseGet = __webpack_require__(1667);

/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function basePropertyDeep(path) {
  return function(object) {
    return baseGet(object, path);
  };
}

module.exports = basePropertyDeep;
var createWrap = __webpack_require__(842),
    flatRest = __webpack_require__(2996);

/** Used to compose bitmasks for function metadata. */
var WRAP_REARG_FLAG = 256;

/**
 * Creates a function that invokes `func` with arguments arranged according
 * to the specified `indexes` where the argument value at the first index is
 * provided as the first argument, the argument value at the second index is
 * provided as the second argument, and so on.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} func The function to rearrange arguments for.
 * @param {...(number|number[])} indexes The arranged argument indexes.
 * @returns {Function} Returns the new function.
 * @example
 *
 * var rearged = _.rearg(function(a, b, c) {
 *   return [a, b, c];
 * }, [2, 0, 1]);
 *
 * rearged('b', 'c', 'a')
 * // => ['a', 'b', 'c']
 */
var rearg = flatRest(function(func, indexes) {
  return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
});

module.exports = rearg;
var flatten = __webpack_require__(2997),
    overRest = __webpack_require__(1672),
    setToString = __webpack_require__(846);

/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */
function flatRest(func) {
  return setToString(overRest(func, undefined, flatten), func + '');
}

module.exports = flatRest;
var baseFlatten = __webpack_require__(2998);

/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */
function flatten(array) {
  var length = array == null ? 0 : array.length;
  return length ? baseFlatten(array, 1) : [];
}

module.exports = flatten;
var arrayPush = __webpack_require__(858),
    isFlattenable = __webpack_require__(2999);

/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */
function baseFlatten(array, depth, predicate, isStrict, result) {
  var index = -1,
      length = array.length;

  predicate || (predicate = isFlattenable);
  result || (result = []);

  while (++index < length) {
    var value = array[index];
    if (depth > 0 && predicate(value)) {
      if (depth > 1) {
        // Recursively flatten arrays (susceptible to call stack limits).
        baseFlatten(value, depth - 1, predicate, isStrict, result);
      } else {
        arrayPush(result, value);
      }
    } else if (!isStrict) {
      result[result.length] = value;
    }
  }
  return result;
}

module.exports = baseFlatten;
var Symbol = __webpack_require__(184),
    isArguments = __webpack_require__(322),
    isArray = __webpack_require__(64);

/** Built-in value references. */
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;

/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */
function isFlattenable(value) {
  return isArray(value) || isArguments(value) ||
    !!(spreadableSymbol && value && value[spreadableSymbol]);
}

module.exports = isFlattenable;
var apply = __webpack_require__(843);

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function overRest(func, start, transform) {
  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  return function() {
    var args = arguments,
        index = -1,
        length = nativeMax(args.length - start, 0),
        array = Array(length);

    while (++index < length) {
      array[index] = args[start + index];
    }
    index = -1;
    var otherArgs = Array(start + 1);
    while (++index < start) {
      otherArgs[index] = args[index];
    }
    otherArgs[start] = transform(array);
    return apply(func, this, otherArgs);
  };
}

module.exports = overRest;
var arrayMap = __webpack_require__(1671),
    copyArray = __webpack_require__(215),
    isArray = __webpack_require__(64),
    isSymbol = __webpack_require__(216),
    stringToPath = __webpack_require__(1669),
    toKey = __webpack_require__(221),
    toString = __webpack_require__(1670);

/**
 * Converts `value` to a property path array.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Util
 * @param {*} value The value to convert.
 * @returns {Array} Returns the new property path array.
 * @example
 *
 * _.toPath('a.b.c');
 * // => ['a', 'b', 'c']
 *
 * _.toPath('a[0].b.c');
 * // => ['a', '0', 'b', 'c']
 */
function toPath(value) {
  if (isArray(value)) {
    return arrayMap(value, toKey);
  }
  return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
}

module.exports = toPath;
var baseMerge = __webpack_require__(3002),
    createAssigner = __webpack_require__(3008);

/**
 * This method is like `_.assign` except that it recursively merges own and
 * inherited enumerable string keyed properties of source objects into the
 * destination object. Source properties that resolve to `undefined` are
 * skipped if a destination value exists. Array and plain object properties
 * are merged recursively. Other objects and value types are overridden by
 * assignment. Source objects are applied from left to right. Subsequent
 * sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {
 *   'a': [{ 'b': 2 }, { 'd': 4 }]
 * };
 *
 * var other = {
 *   'a': [{ 'c': 3 }, { 'e': 5 }]
 * };
 *
 * _.merge(object, other);
 * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
 */
var merge = createAssigner(function(object, source, srcIndex) {
  baseMerge(object, source, srcIndex);
});

module.exports = merge;
var Stack = __webpack_require__(325),
    assignMergeValue = __webpack_require__(1673),
    baseFor = __webpack_require__(3003),
    baseMergeDeep = __webpack_require__(3005),
    isObject = __webpack_require__(87),
    keysIn = __webpack_require__(219),
    safeGet = __webpack_require__(1674);

/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMerge(object, source, srcIndex, customizer, stack) {
  if (object === source) {
    return;
  }
  baseFor(source, function(srcValue, key) {
    stack || (stack = new Stack);
    if (isObject(srcValue)) {
      baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
    }
    else {
      var newValue = customizer
        ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
        : undefined;

      if (newValue === undefined) {
        newValue = srcValue;
      }
      assignMergeValue(object, key, newValue);
    }
  }, keysIn);
}

module.exports = baseMerge;
var baseAssignValue = __webpack_require__(849),
    eq = __webpack_require__(218);

/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignMergeValue(object, key, value) {
  if ((value !== undefined && !eq(object[key], value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignMergeValue;
var createBaseFor = __webpack_require__(3004);

/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
var baseFor = createBaseFor();

module.exports = baseFor;
/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseFor(fromRight) {
  return function(object, iteratee, keysFunc) {
    var index = -1,
        iterable = Object(object),
        props = keysFunc(object),
        length = props.length;

    while (length--) {
      var key = props[fromRight ? length : ++index];
      if (iteratee(iterable[key], key, iterable) === false) {
        break;
      }
    }
    return object;
  };
}

module.exports = createBaseFor;
var assignMergeValue = __webpack_require__(1673),
    cloneBuffer = __webpack_require__(1654),
    cloneTypedArray = __webpack_require__(1660),
    copyArray = __webpack_require__(215),
    initCloneObject = __webpack_require__(1661),
    isArguments = __webpack_require__(322),
    isArray = __webpack_require__(64),
    isArrayLikeObject = __webpack_require__(3006),
    isBuffer = __webpack_require__(323),
    isFunction = __webpack_require__(317),
    isObject = __webpack_require__(87),
    isPlainObject = __webpack_require__(1662),
    isTypedArray = __webpack_require__(850),
    safeGet = __webpack_require__(1674),
    toPlainObject = __webpack_require__(3007);

/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  var objValue = safeGet(object, key),
      srcValue = safeGet(source, key),
      stacked = stack.get(srcValue);

  if (stacked) {
    assignMergeValue(object, key, stacked);
    return;
  }
  var newValue = customizer
    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
    : undefined;

  var isCommon = newValue === undefined;

  if (isCommon) {
    var isArr = isArray(srcValue),
        isBuff = !isArr && isBuffer(srcValue),
        isTyped = !isArr && !isBuff && isTypedArray(srcValue);

    newValue = srcValue;
    if (isArr || isBuff || isTyped) {
      if (isArray(objValue)) {
        newValue = objValue;
      }
      else if (isArrayLikeObject(objValue)) {
        newValue = copyArray(objValue);
      }
      else if (isBuff) {
        isCommon = false;
        newValue = cloneBuffer(srcValue, true);
      }
      else if (isTyped) {
        isCommon = false;
        newValue = cloneTypedArray(srcValue, true);
      }
      else {
        newValue = [];
      }
    }
    else if (isPlainObject(srcValue) || isArguments(srcValue)) {
      newValue = objValue;
      if (isArguments(objValue)) {
        newValue = toPlainObject(objValue);
      }
      else if (!isObject(objValue) || isFunction(objValue)) {
        newValue = initCloneObject(srcValue);
      }
    }
    else {
      isCommon = false;
    }
  }
  if (isCommon) {
    // Recursively merge objects and arrays (susceptible to call stack limits).
    stack.set(srcValue, newValue);
    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
    stack['delete'](srcValue);
  }
  assignMergeValue(object, key, newValue);
}

module.exports = baseMergeDeep;
var isArrayLike = __webpack_require__(324),
    isObjectLike = __webpack_require__(76);

/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
function isArrayLikeObject(value) {
  return isObjectLike(value) && isArrayLike(value);
}

module.exports = isArrayLikeObject;
/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function safeGet(object, key) {
  if (key === 'constructor' && typeof object[key] === 'function') {
    return;
  }

  if (key == '__proto__') {
    return;
  }

  return object[key];
}

module.exports = safeGet;
var copyObject = __webpack_require__(217),
    keysIn = __webpack_require__(219);

/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */
function toPlainObject(value) {
  return copyObject(value, keysIn(value));
}

module.exports = toPlainObject;
var baseRest = __webpack_require__(3009),
    isIterateeCall = __webpack_require__(3010);

/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */
function createAssigner(assigner) {
  return baseRest(function(object, sources) {
    var index = -1,
        length = sources.length,
        customizer = length > 1 ? sources[length - 1] : undefined,
        guard = length > 2 ? sources[2] : undefined;

    customizer = (assigner.length > 3 && typeof customizer == 'function')
      ? (length--, customizer)
      : undefined;

    if (guard && isIterateeCall(sources[0], sources[1], guard)) {
      customizer = length < 3 ? undefined : customizer;
      length = 1;
    }
    object = Object(object);
    while (++index < length) {
      var source = sources[index];
      if (source) {
        assigner(object, source, index, customizer);
      }
    }
    return object;
  });
}

module.exports = createAssigner;
var identity = __webpack_require__(316),
    overRest = __webpack_require__(1672),
    setToString = __webpack_require__(846);

/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */
function baseRest(func, start) {
  return setToString(overRest(func, start, identity), func + '');
}

module.exports = baseRest;
var eq = __webpack_require__(218),
    isArrayLike = __webpack_require__(324),
    isIndex = __webpack_require__(320),
    isObject = __webpack_require__(87);

/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
function isIterateeCall(value, index, object) {
  if (!isObject(object)) {
    return false;
  }
  var type = typeof index;
  if (type == 'number'
        ? (isArrayLike(object) && isIndex(index, object.length))
        : (type == 'string' && index in object)
      ) {
    return eq(object[index], value);
  }
  return false;
}

module.exports = isIterateeCall;
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(536);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22a957a3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1135);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2875)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22a957a3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22a957a3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2876);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4535ece5", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".growBackground .growLife{background:-webkit-gradient(linear,left top,right top,from(#1766b3),color-stop(#5aa3ec),to(#1766b3));background:linear-gradient(90deg,#1766b3,#5aa3ec,#1766b3);min-height:100%;padding-bottom:20px}.growLife{overflow:hidden}.growLife .growLifeImg{padding:27px 0;text-align:center}.growLife .growLifeImg>img{height:70px;border-radius:40px;border:5px solid #97c2eb;pointer-events:none}.growLife .growLifeImg>p{color:#fff;font-size:16px;height:30px;line-height:30px;text-align:center}.growLife .growLifeImg ul{overflow:hidden}.growLife .growLifeImg li{float:left;width:20%;text-align:center;margin-left:20%}.growLife .growLifeImg li span:first-child{width:53px;height:50px;display:inline-block;opacity:.7}.growLife .growLifeImg li p{color:#9bc7f2;text-align:center;margin-bottom:5px;margin-top:5px}.growLife .growLifeImg li span{font-size:20px;font-weight:700;color:#fff}.growLife .growLifeImg>ul{margin-top:27px}.growLife .growLifeImg li:first-child span:first-child{background:url(" + escape(__webpack_require__(1629)) + ") 0 no-repeat;background-size:197% 100%}.growLife .growLifeImg li:last-child span:first-child{background:url(" + escape(__webpack_require__(1629)) + ") 100% no-repeat;background-size:197% 100%}.growLife .growInfo{min-height:200px;width:96%;margin-left:2%;margin-top:10px;background:#fff;border-radius:10px;position:relative}.growLife .growInfo span.tip{position:absolute;width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:15px solid #fff;top:-15px;left:50%;margin-left:-15px}.growLife .growInfo .growStyle{overflow:hidden}.growLife .growInfo .growStyle ul{overflow:hidden;margin:10px;position:relative}.growLife .growInfo .growStyle ul li{float:left;width:20%;text-align:center;vertical-align:bottom}.growLife .growInfo .growStyle ul li.chartArc{min-height:160px;width:55%;margin-left:5%;text-align:center}.growLife .growInfo .growStyle ul li span{font-size:12px}.growLife .growInfo .growStyle ul li span:first-child{width:70%;height:10px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/20141109003.94db804.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _DoughnutPlotly = _interopRequireDefault(__webpack_require__(2877));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  prop: {
    Num: {
      default: function _default() {
        return 20;
      }
    }
  },
  components: {
    DoughnutPlotly: _DoughnutPlotly.default
  },
  data: function data() {
    return {
      user: {},
      result: {},
      doughnut: [],
      labels: ['万能搜搜', '电路资料', '故障代码', '系统部件', '测试数据', '在线问答', '故障排查'],
      styleColor: {
        sosoBgColor: '#4bbba7',
        dianluziliaoBgColor: '#a6232d',
        guzhangmaBgColor: '#c4e0fc',
        xitongbujianBgColor: '#1b5186',
        ceshishujuBgColor: '#042546',
        zaixianwendaBgColor: '#34802c',
        guzhangpaichaBgColor: '#c45f05'
      },
      totalCount: 0
    };
  },
  computed: {},
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_USE_COUNT, {}, function (data) {
      that.result = data;
      that.doughnut.push(that.result.soso);
      that.doughnut.push(that.result.dianluziliao);
      that.doughnut.push(that.result.guzhangma);
      that.doughnut.push(that.result.xitongbujian);
      that.doughnut.push(that.result.ceshishuju);
      that.doughnut.push(that.result.zaixianwenda);
      that.doughnut.push(that.result.guzhangpaicha);
      var _iterator = _createForOfIteratorHelper(that.doughnut),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var count = _step.value;
          that.totalCount += count;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    }, function () {}, that);
    this.getUserInfo();
  },
  methods: {
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.user = data;
      }, function () {}, that);
    }
  }
};

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _Doughnut = _interopRequireDefault(__webpack_require__(2878));
var _default = exports.default = _Doughnut.default.extend({
  props: ['data', 'labels'],
  // mounted () {
  //   this.renderChart(this.data, this.options)
  // }
  mounted: function mounted() {
    this.renderChart({
      // labels: this.labels,
      datasets: [{
        backgroundColor: ['#4bbba7', '#a6232d', '#c4e0fc', '#1b5186', '#042546', '#34802c', '#c45f05'],
        data: this.data
      }]
    });
  }
});

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = _interopRequireDefault(__webpack_require__(22));
var _Chart = _interopRequireDefault(__webpack_require__(2879));
var _options = __webpack_require__(2880);
var _default = exports.default = _vue.default.extend({
  props: {
    chartId: {
      default: 'doughnut-chart',
      type: String
    },
    width: {
      default: 400,
      type: Number
    },
    height: {
      default: 400,
      type: Number
    }
  },
  data: function data() {
    return {
      defaultOptions: {}
    };
  },
  beforeDestroy: function beforeDestroy() {
    this._chart.destroy();
  },
  methods: {
    renderChart: function renderChart(data, options) {
      var chartOptions = (0, _options.mergeOptions)(this.defaultOptions, options);
      this._chart = new _Chart.default(this.$refs.canvas.getContext('2d'), {
        type: 'doughnut',
        data: data,
        options: chartOptions
      });
      this._chart.generateLegend();
    }
  },
  template: "\n    <div>\n      <canvas :id=\"chartId\" :width=\"width\" :height=\"height\" ref=\"canvas\"></canvas>\n    </div>\n  "
});var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var require;var require;

var _interopRequireDefault = __webpack_require__(4);
var _typeof2 = _interopRequireDefault(__webpack_require__(69));
/* eslint-disable */
/*!
 * Chart.js
 * http://chartjs.org/
 * Version: 2.4.0
 *
 * Copyright 2016 Nick Downie
 * Released under the MIT license
 * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
 */
!function (t) {
  if ("object" == ( false ? undefined : (0, _typeof2.default)(exports)) && "undefined" != typeof module) module.exports = t();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else { var e; }
}(function () {
  return function t(e, a, i) {
    function n(r, l) {
      if (!a[r]) {
        if (!e[r]) {
          var s = "function" == typeof require && require;
          if (!l && s) return require(r, !0);
          if (o) return o(r, !0);
          var d = new Error("Cannot find module '" + r + "'");
          throw d.code = "MODULE_NOT_FOUND", d;
        }
        var u = a[r] = {
          exports: {}
        };
        e[r][0].call(u.exports, function (t) {
          var a = e[r][1][t];
          return n(a ? a : t);
        }, u, u.exports, t, e, a, i);
      }
      return a[r].exports;
    }
    for (var o = "function" == typeof require && require, r = 0; r < i.length; r++) n(i[r]);
    return n;
  }({
    1: [function (t, e, a) {}, {}],
    2: [function (t, e, a) {
      function i(t) {
        if (t) {
          var e = /^#([a-fA-F0-9]{3})$/,
            a = /^#([a-fA-F0-9]{6})$/,
            i = /^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,
            n = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,
            o = /(\w+)/,
            r = [0, 0, 0],
            l = 1,
            s = t.match(e);
          if (s) {
            s = s[1];
            for (var d = 0; d < r.length; d++) r[d] = parseInt(s[d] + s[d], 16);
          } else if (s = t.match(a)) {
            s = s[1];
            for (var d = 0; d < r.length; d++) r[d] = parseInt(s.slice(2 * d, 2 * d + 2), 16);
          } else if (s = t.match(i)) {
            for (var d = 0; d < r.length; d++) r[d] = parseInt(s[d + 1]);
            l = parseFloat(s[4]);
          } else if (s = t.match(n)) {
            for (var d = 0; d < r.length; d++) r[d] = Math.round(2.55 * parseFloat(s[d + 1]));
            l = parseFloat(s[4]);
          } else if (s = t.match(o)) {
            if ("transparent" == s[1]) return [0, 0, 0, 0];
            if (r = y[s[1]], !r) return;
          }
          for (var d = 0; d < r.length; d++) r[d] = v(r[d], 0, 255);
          return l = l || 0 == l ? v(l, 0, 1) : 1, r[3] = l, r;
        }
      }
      function n(t) {
        if (t) {
          var e = /^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,
            a = t.match(e);
          if (a) {
            var i = parseFloat(a[4]),
              n = v(parseInt(a[1]), 0, 360),
              o = v(parseFloat(a[2]), 0, 100),
              r = v(parseFloat(a[3]), 0, 100),
              l = v(isNaN(i) ? 1 : i, 0, 1);
            return [n, o, r, l];
          }
        }
      }
      function o(t) {
        if (t) {
          var e = /^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,
            a = t.match(e);
          if (a) {
            var i = parseFloat(a[4]),
              n = v(parseInt(a[1]), 0, 360),
              o = v(parseFloat(a[2]), 0, 100),
              r = v(parseFloat(a[3]), 0, 100),
              l = v(isNaN(i) ? 1 : i, 0, 1);
            return [n, o, r, l];
          }
        }
      }
      function r(t) {
        var e = i(t);
        return e && e.slice(0, 3);
      }
      function l(t) {
        var e = n(t);
        return e && e.slice(0, 3);
      }
      function s(t) {
        var e = i(t);
        return e ? e[3] : (e = n(t)) ? e[3] : (e = o(t)) ? e[3] : void 0;
      }
      function d(t) {
        return "#" + x(t[0]) + x(t[1]) + x(t[2]);
      }
      function u(t, e) {
        return 1 > e || t[3] && t[3] < 1 ? c(t, e) : "rgb(" + t[0] + ", " + t[1] + ", " + t[2] + ")";
      }
      function c(t, e) {
        return void 0 === e && (e = void 0 !== t[3] ? t[3] : 1), "rgba(" + t[0] + ", " + t[1] + ", " + t[2] + ", " + e + ")";
      }
      function h(t, e) {
        if (1 > e || t[3] && t[3] < 1) return f(t, e);
        var a = Math.round(t[0] / 255 * 100),
          i = Math.round(t[1] / 255 * 100),
          n = Math.round(t[2] / 255 * 100);
        return "rgb(" + a + "%, " + i + "%, " + n + "%)";
      }
      function f(t, e) {
        var a = Math.round(t[0] / 255 * 100),
          i = Math.round(t[1] / 255 * 100),
          n = Math.round(t[2] / 255 * 100);
        return "rgba(" + a + "%, " + i + "%, " + n + "%, " + (e || t[3] || 1) + ")";
      }
      function g(t, e) {
        return 1 > e || t[3] && t[3] < 1 ? p(t, e) : "hsl(" + t[0] + ", " + t[1] + "%, " + t[2] + "%)";
      }
      function p(t, e) {
        return void 0 === e && (e = void 0 !== t[3] ? t[3] : 1), "hsla(" + t[0] + ", " + t[1] + "%, " + t[2] + "%, " + e + ")";
      }
      function m(t, e) {
        return void 0 === e && (e = void 0 !== t[3] ? t[3] : 1), "hwb(" + t[0] + ", " + t[1] + "%, " + t[2] + "%" + (void 0 !== e && 1 !== e ? ", " + e : "") + ")";
      }
      function b(t) {
        return k[t.slice(0, 3)];
      }
      function v(t, e, a) {
        return Math.min(Math.max(e, t), a);
      }
      function x(t) {
        var e = t.toString(16).toUpperCase();
        return e.length < 2 ? "0" + e : e;
      }
      var y = t(6);
      e.exports = {
        getRgba: i,
        getHsla: n,
        getRgb: r,
        getHsl: l,
        getHwb: o,
        getAlpha: s,
        hexString: d,
        rgbString: u,
        rgbaString: c,
        percentString: h,
        percentaString: f,
        hslString: g,
        hslaString: p,
        hwbString: m,
        keyword: b
      };
      var k = {};
      for (var S in y) k[y[S]] = S;
    }, {
      6: 6
    }],
    3: [function (t, e, a) {
      var i = t(5),
        n = t(2),
        _o = function o(t) {
          if (t instanceof _o) return t;
          if (!(this instanceof _o)) return new _o(t);
          this.values = {
            rgb: [0, 0, 0],
            hsl: [0, 0, 0],
            hsv: [0, 0, 0],
            hwb: [0, 0, 0],
            cmyk: [0, 0, 0, 0],
            alpha: 1
          };
          var e;
          if ("string" == typeof t) {
            if (e = n.getRgba(t)) this.setValues("rgb", e);else if (e = n.getHsla(t)) this.setValues("hsl", e);else {
              if (!(e = n.getHwb(t))) throw new Error('Unable to parse color from string "' + t + '"');
              this.setValues("hwb", e);
            }
          } else if ("object" == (0, _typeof2.default)(t)) if (e = t, void 0 !== e.r || void 0 !== e.red) this.setValues("rgb", e);else if (void 0 !== e.l || void 0 !== e.lightness) this.setValues("hsl", e);else if (void 0 !== e.v || void 0 !== e.value) this.setValues("hsv", e);else if (void 0 !== e.w || void 0 !== e.whiteness) this.setValues("hwb", e);else {
            if (void 0 === e.c && void 0 === e.cyan) throw new Error("Unable to parse color from object " + JSON.stringify(t));
            this.setValues("cmyk", e);
          }
        };
      _o.prototype = {
        rgb: function rgb() {
          return this.setSpace("rgb", arguments);
        },
        hsl: function hsl() {
          return this.setSpace("hsl", arguments);
        },
        hsv: function hsv() {
          return this.setSpace("hsv", arguments);
        },
        hwb: function hwb() {
          return this.setSpace("hwb", arguments);
        },
        cmyk: function cmyk() {
          return this.setSpace("cmyk", arguments);
        },
        rgbArray: function rgbArray() {
          return this.values.rgb;
        },
        hslArray: function hslArray() {
          return this.values.hsl;
        },
        hsvArray: function hsvArray() {
          return this.values.hsv;
        },
        hwbArray: function hwbArray() {
          var t = this.values;
          return 1 !== t.alpha ? t.hwb.concat([t.alpha]) : t.hwb;
        },
        cmykArray: function cmykArray() {
          return this.values.cmyk;
        },
        rgbaArray: function rgbaArray() {
          var t = this.values;
          return t.rgb.concat([t.alpha]);
        },
        hslaArray: function hslaArray() {
          var t = this.values;
          return t.hsl.concat([t.alpha]);
        },
        alpha: function alpha(t) {
          return void 0 === t ? this.values.alpha : (this.setValues("alpha", t), this);
        },
        red: function red(t) {
          return this.setChannel("rgb", 0, t);
        },
        green: function green(t) {
          return this.setChannel("rgb", 1, t);
        },
        blue: function blue(t) {
          return this.setChannel("rgb", 2, t);
        },
        hue: function hue(t) {
          return t && (t %= 360, t = 0 > t ? 360 + t : t), this.setChannel("hsl", 0, t);
        },
        saturation: function saturation(t) {
          return this.setChannel("hsl", 1, t);
        },
        lightness: function lightness(t) {
          return this.setChannel("hsl", 2, t);
        },
        saturationv: function saturationv(t) {
          return this.setChannel("hsv", 1, t);
        },
        whiteness: function whiteness(t) {
          return this.setChannel("hwb", 1, t);
        },
        blackness: function blackness(t) {
          return this.setChannel("hwb", 2, t);
        },
        value: function value(t) {
          return this.setChannel("hsv", 2, t);
        },
        cyan: function cyan(t) {
          return this.setChannel("cmyk", 0, t);
        },
        magenta: function magenta(t) {
          return this.setChannel("cmyk", 1, t);
        },
        yellow: function yellow(t) {
          return this.setChannel("cmyk", 2, t);
        },
        black: function black(t) {
          return this.setChannel("cmyk", 3, t);
        },
        hexString: function hexString() {
          return n.hexString(this.values.rgb);
        },
        rgbString: function rgbString() {
          return n.rgbString(this.values.rgb, this.values.alpha);
        },
        rgbaString: function rgbaString() {
          return n.rgbaString(this.values.rgb, this.values.alpha);
        },
        percentString: function percentString() {
          return n.percentString(this.values.rgb, this.values.alpha);
        },
        hslString: function hslString() {
          return n.hslString(this.values.hsl, this.values.alpha);
        },
        hslaString: function hslaString() {
          return n.hslaString(this.values.hsl, this.values.alpha);
        },
        hwbString: function hwbString() {
          return n.hwbString(this.values.hwb, this.values.alpha);
        },
        keyword: function keyword() {
          return n.keyword(this.values.rgb, this.values.alpha);
        },
        rgbNumber: function rgbNumber() {
          var t = this.values.rgb;
          return t[0] << 16 | t[1] << 8 | t[2];
        },
        luminosity: function luminosity() {
          for (var t = this.values.rgb, e = [], a = 0; a < t.length; a++) {
            var i = t[a] / 255;
            e[a] = .03928 >= i ? i / 12.92 : Math.pow((i + .055) / 1.055, 2.4);
          }
          return .2126 * e[0] + .7152 * e[1] + .0722 * e[2];
        },
        contrast: function contrast(t) {
          var e = this.luminosity(),
            a = t.luminosity();
          return e > a ? (e + .05) / (a + .05) : (a + .05) / (e + .05);
        },
        level: function level(t) {
          var e = this.contrast(t);
          return e >= 7.1 ? "AAA" : e >= 4.5 ? "AA" : "";
        },
        dark: function dark() {
          var t = this.values.rgb,
            e = (299 * t[0] + 587 * t[1] + 114 * t[2]) / 1e3;
          return 128 > e;
        },
        light: function light() {
          return !this.dark();
        },
        negate: function negate() {
          for (var t = [], e = 0; 3 > e; e++) t[e] = 255 - this.values.rgb[e];
          return this.setValues("rgb", t), this;
        },
        lighten: function lighten(t) {
          var e = this.values.hsl;
          return e[2] += e[2] * t, this.setValues("hsl", e), this;
        },
        darken: function darken(t) {
          var e = this.values.hsl;
          return e[2] -= e[2] * t, this.setValues("hsl", e), this;
        },
        saturate: function saturate(t) {
          var e = this.values.hsl;
          return e[1] += e[1] * t, this.setValues("hsl", e), this;
        },
        desaturate: function desaturate(t) {
          var e = this.values.hsl;
          return e[1] -= e[1] * t, this.setValues("hsl", e), this;
        },
        whiten: function whiten(t) {
          var e = this.values.hwb;
          return e[1] += e[1] * t, this.setValues("hwb", e), this;
        },
        blacken: function blacken(t) {
          var e = this.values.hwb;
          return e[2] += e[2] * t, this.setValues("hwb", e), this;
        },
        greyscale: function greyscale() {
          var t = this.values.rgb,
            e = .3 * t[0] + .59 * t[1] + .11 * t[2];
          return this.setValues("rgb", [e, e, e]), this;
        },
        clearer: function clearer(t) {
          var e = this.values.alpha;
          return this.setValues("alpha", e - e * t), this;
        },
        opaquer: function opaquer(t) {
          var e = this.values.alpha;
          return this.setValues("alpha", e + e * t), this;
        },
        rotate: function rotate(t) {
          var e = this.values.hsl,
            a = (e[0] + t) % 360;
          return e[0] = 0 > a ? 360 + a : a, this.setValues("hsl", e), this;
        },
        mix: function mix(t, e) {
          var a = this,
            i = t,
            n = void 0 === e ? .5 : e,
            o = 2 * n - 1,
            r = a.alpha() - i.alpha(),
            l = ((o * r === -1 ? o : (o + r) / (1 + o * r)) + 1) / 2,
            s = 1 - l;
          return this.rgb(l * a.red() + s * i.red(), l * a.green() + s * i.green(), l * a.blue() + s * i.blue()).alpha(a.alpha() * n + i.alpha() * (1 - n));
        },
        toJSON: function toJSON() {
          return this.rgb();
        },
        clone: function clone() {
          var t,
            e,
            a = new _o(),
            i = this.values,
            n = a.values;
          for (var r in i) i.hasOwnProperty(r) && (t = i[r], e = {}.toString.call(t), "[object Array]" === e ? n[r] = t.slice(0) : "[object Number]" === e ? n[r] = t : console.error("unexpected color value:", t));
          return a;
        }
      }, _o.prototype.spaces = {
        rgb: ["red", "green", "blue"],
        hsl: ["hue", "saturation", "lightness"],
        hsv: ["hue", "saturation", "value"],
        hwb: ["hue", "whiteness", "blackness"],
        cmyk: ["cyan", "magenta", "yellow", "black"]
      }, _o.prototype.maxes = {
        rgb: [255, 255, 255],
        hsl: [360, 100, 100],
        hsv: [360, 100, 100],
        hwb: [360, 100, 100],
        cmyk: [100, 100, 100, 100]
      }, _o.prototype.getValues = function (t) {
        for (var e = this.values, a = {}, i = 0; i < t.length; i++) a[t.charAt(i)] = e[t][i];
        return 1 !== e.alpha && (a.a = e.alpha), a;
      }, _o.prototype.setValues = function (t, e) {
        var a,
          n = this.values,
          o = this.spaces,
          r = this.maxes,
          l = 1;
        if ("alpha" === t) l = e;else if (e.length) n[t] = e.slice(0, t.length), l = e[t.length];else if (void 0 !== e[t.charAt(0)]) {
          for (a = 0; a < t.length; a++) n[t][a] = e[t.charAt(a)];
          l = e.a;
        } else if (void 0 !== e[o[t][0]]) {
          var s = o[t];
          for (a = 0; a < t.length; a++) n[t][a] = e[s[a]];
          l = e.alpha;
        }
        if (n.alpha = Math.max(0, Math.min(1, void 0 === l ? n.alpha : l)), "alpha" === t) return !1;
        var d;
        for (a = 0; a < t.length; a++) d = Math.max(0, Math.min(r[t][a], n[t][a])), n[t][a] = Math.round(d);
        for (var u in o) u !== t && (n[u] = i[t][u](n[t]));
        return !0;
      }, _o.prototype.setSpace = function (t, e) {
        var a = e[0];
        return void 0 === a ? this.getValues(t) : ("number" == typeof a && (a = Array.prototype.slice.call(e)), this.setValues(t, a), this);
      }, _o.prototype.setChannel = function (t, e, a) {
        var i = this.values[t];
        return void 0 === a ? i[e] : a === i[e] ? this : (i[e] = a, this.setValues(t, i), this);
      }, "undefined" != typeof window && (window.Color = _o), e.exports = _o;
    }, {
      2: 2,
      5: 5
    }],
    4: [function (t, e, a) {
      function i(t) {
        var e,
          a,
          i,
          n = t[0] / 255,
          o = t[1] / 255,
          r = t[2] / 255,
          l = Math.min(n, o, r),
          s = Math.max(n, o, r),
          d = s - l;
        return s == l ? e = 0 : n == s ? e = (o - r) / d : o == s ? e = 2 + (r - n) / d : r == s && (e = 4 + (n - o) / d), e = Math.min(60 * e, 360), 0 > e && (e += 360), i = (l + s) / 2, a = s == l ? 0 : .5 >= i ? d / (s + l) : d / (2 - s - l), [e, 100 * a, 100 * i];
      }
      function n(t) {
        var e,
          a,
          i,
          n = t[0],
          o = t[1],
          r = t[2],
          l = Math.min(n, o, r),
          s = Math.max(n, o, r),
          d = s - l;
        return a = 0 == s ? 0 : d / s * 1e3 / 10, s == l ? e = 0 : n == s ? e = (o - r) / d : o == s ? e = 2 + (r - n) / d : r == s && (e = 4 + (n - o) / d), e = Math.min(60 * e, 360), 0 > e && (e += 360), i = s / 255 * 1e3 / 10, [e, a, i];
      }
      function o(t) {
        var e = t[0],
          a = t[1],
          n = t[2],
          o = i(t)[0],
          r = 1 / 255 * Math.min(e, Math.min(a, n)),
          n = 1 - 1 / 255 * Math.max(e, Math.max(a, n));
        return [o, 100 * r, 100 * n];
      }
      function l(t) {
        var e,
          a,
          i,
          n,
          o = t[0] / 255,
          r = t[1] / 255,
          l = t[2] / 255;
        return n = Math.min(1 - o, 1 - r, 1 - l), e = (1 - o - n) / (1 - n) || 0, a = (1 - r - n) / (1 - n) || 0, i = (1 - l - n) / (1 - n) || 0, [100 * e, 100 * a, 100 * i, 100 * n];
      }
      function s(t) {
        return G[JSON.stringify(t)];
      }
      function d(t) {
        var e = t[0] / 255,
          a = t[1] / 255,
          i = t[2] / 255;
        e = e > .04045 ? Math.pow((e + .055) / 1.055, 2.4) : e / 12.92, a = a > .04045 ? Math.pow((a + .055) / 1.055, 2.4) : a / 12.92, i = i > .04045 ? Math.pow((i + .055) / 1.055, 2.4) : i / 12.92;
        var n = .4124 * e + .3576 * a + .1805 * i,
          o = .2126 * e + .7152 * a + .0722 * i,
          r = .0193 * e + .1192 * a + .9505 * i;
        return [100 * n, 100 * o, 100 * r];
      }
      function u(t) {
        var e,
          a,
          i,
          n = d(t),
          o = n[0],
          r = n[1],
          l = n[2];
        return o /= 95.047, r /= 100, l /= 108.883, o = o > .008856 ? Math.pow(o, 1 / 3) : 7.787 * o + 16 / 116, r = r > .008856 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116, l = l > .008856 ? Math.pow(l, 1 / 3) : 7.787 * l + 16 / 116, e = 116 * r - 16, a = 500 * (o - r), i = 200 * (r - l), [e, a, i];
      }
      function c(t) {
        return W(u(t));
      }
      function h(t) {
        var e,
          a,
          i,
          n,
          o,
          r = t[0] / 360,
          l = t[1] / 100,
          s = t[2] / 100;
        if (0 == l) return o = 255 * s, [o, o, o];
        a = .5 > s ? s * (1 + l) : s + l - s * l, e = 2 * s - a, n = [0, 0, 0];
        for (var d = 0; 3 > d; d++) i = r + 1 / 3 * -(d - 1), 0 > i && i++, i > 1 && i--, o = 1 > 6 * i ? e + 6 * (a - e) * i : 1 > 2 * i ? a : 2 > 3 * i ? e + (a - e) * (2 / 3 - i) * 6 : e, n[d] = 255 * o;
        return n;
      }
      function f(t) {
        var e,
          a,
          i = t[0],
          n = t[1] / 100,
          o = t[2] / 100;
        return 0 === o ? [0, 0, 0] : (o *= 2, n *= 1 >= o ? o : 2 - o, a = (o + n) / 2, e = 2 * n / (o + n), [i, 100 * e, 100 * a]);
      }
      function p(t) {
        return o(h(t));
      }
      function m(t) {
        return l(h(t));
      }
      function v(t) {
        return s(h(t));
      }
      function x(t) {
        var e = t[0] / 60,
          a = t[1] / 100,
          i = t[2] / 100,
          n = Math.floor(e) % 6,
          o = e - Math.floor(e),
          r = 255 * i * (1 - a),
          l = 255 * i * (1 - a * o),
          s = 255 * i * (1 - a * (1 - o)),
          i = 255 * i;
        switch (n) {
          case 0:
            return [i, s, r];
          case 1:
            return [l, i, r];
          case 2:
            return [r, i, s];
          case 3:
            return [r, l, i];
          case 4:
            return [s, r, i];
          case 5:
            return [i, r, l];
        }
      }
      function y(t) {
        var e,
          a,
          i = t[0],
          n = t[1] / 100,
          o = t[2] / 100;
        return a = (2 - n) * o, e = n * o, e /= 1 >= a ? a : 2 - a, e = e || 0, a /= 2, [i, 100 * e, 100 * a];
      }
      function k(t) {
        return o(x(t));
      }
      function S(t) {
        return l(x(t));
      }
      function w(t) {
        return s(x(t));
      }
      function M(t) {
        var e,
          a,
          i,
          n,
          o = t[0] / 360,
          l = t[1] / 100,
          s = t[2] / 100,
          d = l + s;
        switch (d > 1 && (l /= d, s /= d), e = Math.floor(6 * o), a = 1 - s, i = 6 * o - e, 0 != (1 & e) && (i = 1 - i), n = l + i * (a - l), e) {
          default:
          case 6:
          case 0:
            r = a, g = n, b = l;
            break;
          case 1:
            r = n, g = a, b = l;
            break;
          case 2:
            r = l, g = a, b = n;
            break;
          case 3:
            r = l, g = n, b = a;
            break;
          case 4:
            r = n, g = l, b = a;
            break;
          case 5:
            r = a, g = l, b = n;
        }
        return [255 * r, 255 * g, 255 * b];
      }
      function C(t) {
        return i(M(t));
      }
      function D(t) {
        return n(M(t));
      }
      function I(t) {
        return l(M(t));
      }
      function A(t) {
        return s(M(t));
      }
      function T(t) {
        var e,
          a,
          i,
          n = t[0] / 100,
          o = t[1] / 100,
          r = t[2] / 100,
          l = t[3] / 100;
        return e = 1 - Math.min(1, n * (1 - l) + l), a = 1 - Math.min(1, o * (1 - l) + l), i = 1 - Math.min(1, r * (1 - l) + l), [255 * e, 255 * a, 255 * i];
      }
      function P(t) {
        return i(T(t));
      }
      function F(t) {
        return n(T(t));
      }
      function _(t) {
        return o(T(t));
      }
      function R(t) {
        return s(T(t));
      }
      function V(t) {
        var e,
          a,
          i,
          n = t[0] / 100,
          o = t[1] / 100,
          r = t[2] / 100;
        return e = 3.2406 * n + -1.5372 * o + r * -.4986, a = n * -.9689 + 1.8758 * o + .0415 * r, i = .0557 * n + o * -.204 + 1.057 * r, e = e > .0031308 ? 1.055 * Math.pow(e, 1 / 2.4) - .055 : e = 12.92 * e, a = a > .0031308 ? 1.055 * Math.pow(a, 1 / 2.4) - .055 : a = 12.92 * a, i = i > .0031308 ? 1.055 * Math.pow(i, 1 / 2.4) - .055 : i = 12.92 * i, e = Math.min(Math.max(0, e), 1), a = Math.min(Math.max(0, a), 1), i = Math.min(Math.max(0, i), 1), [255 * e, 255 * a, 255 * i];
      }
      function L(t) {
        var e,
          a,
          i,
          n = t[0],
          o = t[1],
          r = t[2];
        return n /= 95.047, o /= 100, r /= 108.883, n = n > .008856 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116, o = o > .008856 ? Math.pow(o, 1 / 3) : 7.787 * o + 16 / 116, r = r > .008856 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116, e = 116 * o - 16, a = 500 * (n - o), i = 200 * (o - r), [e, a, i];
      }
      function O(t) {
        return W(L(t));
      }
      function B(t) {
        var e,
          a,
          i,
          n,
          o = t[0],
          r = t[1],
          l = t[2];
        return 8 >= o ? (a = 100 * o / 903.3, n = 7.787 * (a / 100) + 16 / 116) : (a = 100 * Math.pow((o + 16) / 116, 3), n = Math.pow(a / 100, 1 / 3)), e = .008856 >= e / 95.047 ? e = 95.047 * (r / 500 + n - 16 / 116) / 7.787 : 95.047 * Math.pow(r / 500 + n, 3), i = .008859 >= i / 108.883 ? i = 108.883 * (n - l / 200 - 16 / 116) / 7.787 : 108.883 * Math.pow(n - l / 200, 3), [e, a, i];
      }
      function W(t) {
        var e,
          a,
          i,
          n = t[0],
          o = t[1],
          r = t[2];
        return e = Math.atan2(r, o), a = 360 * e / 2 / Math.PI, 0 > a && (a += 360), i = Math.sqrt(o * o + r * r), [n, i, a];
      }
      function z(t) {
        return V(B(t));
      }
      function N(t) {
        var e,
          a,
          i,
          n = t[0],
          o = t[1],
          r = t[2];
        return i = r / 360 * 2 * Math.PI, e = o * Math.cos(i), a = o * Math.sin(i), [n, e, a];
      }
      function E(t) {
        return B(N(t));
      }
      function H(t) {
        return z(N(t));
      }
      function U(t) {
        return Z[t];
      }
      function j(t) {
        return i(U(t));
      }
      function q(t) {
        return n(U(t));
      }
      function Y(t) {
        return o(U(t));
      }
      function X(t) {
        return l(U(t));
      }
      function K(t) {
        return u(U(t));
      }
      function J(t) {
        return d(U(t));
      }
      e.exports = {
        rgb2hsl: i,
        rgb2hsv: n,
        rgb2hwb: o,
        rgb2cmyk: l,
        rgb2keyword: s,
        rgb2xyz: d,
        rgb2lab: u,
        rgb2lch: c,
        hsl2rgb: h,
        hsl2hsv: f,
        hsl2hwb: p,
        hsl2cmyk: m,
        hsl2keyword: v,
        hsv2rgb: x,
        hsv2hsl: y,
        hsv2hwb: k,
        hsv2cmyk: S,
        hsv2keyword: w,
        hwb2rgb: M,
        hwb2hsl: C,
        hwb2hsv: D,
        hwb2cmyk: I,
        hwb2keyword: A,
        cmyk2rgb: T,
        cmyk2hsl: P,
        cmyk2hsv: F,
        cmyk2hwb: _,
        cmyk2keyword: R,
        keyword2rgb: U,
        keyword2hsl: j,
        keyword2hsv: q,
        keyword2hwb: Y,
        keyword2cmyk: X,
        keyword2lab: K,
        keyword2xyz: J,
        xyz2rgb: V,
        xyz2lab: L,
        xyz2lch: O,
        lab2xyz: B,
        lab2rgb: z,
        lab2lch: W,
        lch2lab: N,
        lch2xyz: E,
        lch2rgb: H
      };
      var Z = {
          aliceblue: [240, 248, 255],
          antiquewhite: [250, 235, 215],
          aqua: [0, 255, 255],
          aquamarine: [127, 255, 212],
          azure: [240, 255, 255],
          beige: [245, 245, 220],
          bisque: [255, 228, 196],
          black: [0, 0, 0],
          blanchedalmond: [255, 235, 205],
          blue: [0, 0, 255],
          blueviolet: [138, 43, 226],
          brown: [165, 42, 42],
          burlywood: [222, 184, 135],
          cadetblue: [95, 158, 160],
          chartreuse: [127, 255, 0],
          chocolate: [210, 105, 30],
          coral: [255, 127, 80],
          cornflowerblue: [100, 149, 237],
          cornsilk: [255, 248, 220],
          crimson: [220, 20, 60],
          cyan: [0, 255, 255],
          darkblue: [0, 0, 139],
          darkcyan: [0, 139, 139],
          darkgoldenrod: [184, 134, 11],
          darkgray: [169, 169, 169],
          darkgreen: [0, 100, 0],
          darkgrey: [169, 169, 169],
          darkkhaki: [189, 183, 107],
          darkmagenta: [139, 0, 139],
          darkolivegreen: [85, 107, 47],
          darkorange: [255, 140, 0],
          darkorchid: [153, 50, 204],
          darkred: [139, 0, 0],
          darksalmon: [233, 150, 122],
          darkseagreen: [143, 188, 143],
          darkslateblue: [72, 61, 139],
          darkslategray: [47, 79, 79],
          darkslategrey: [47, 79, 79],
          darkturquoise: [0, 206, 209],
          darkviolet: [148, 0, 211],
          deeppink: [255, 20, 147],
          deepskyblue: [0, 191, 255],
          dimgray: [105, 105, 105],
          dimgrey: [105, 105, 105],
          dodgerblue: [30, 144, 255],
          firebrick: [178, 34, 34],
          floralwhite: [255, 250, 240],
          forestgreen: [34, 139, 34],
          fuchsia: [255, 0, 255],
          gainsboro: [220, 220, 220],
          ghostwhite: [248, 248, 255],
          gold: [255, 215, 0],
          goldenrod: [218, 165, 32],
          gray: [128, 128, 128],
          green: [0, 128, 0],
          greenyellow: [173, 255, 47],
          grey: [128, 128, 128],
          honeydew: [240, 255, 240],
          hotpink: [255, 105, 180],
          indianred: [205, 92, 92],
          indigo: [75, 0, 130],
          ivory: [255, 255, 240],
          khaki: [240, 230, 140],
          lavender: [230, 230, 250],
          lavenderblush: [255, 240, 245],
          lawngreen: [124, 252, 0],
          lemonchiffon: [255, 250, 205],
          lightblue: [173, 216, 230],
          lightcoral: [240, 128, 128],
          lightcyan: [224, 255, 255],
          lightgoldenrodyellow: [250, 250, 210],
          lightgray: [211, 211, 211],
          lightgreen: [144, 238, 144],
          lightgrey: [211, 211, 211],
          lightpink: [255, 182, 193],
          lightsalmon: [255, 160, 122],
          lightseagreen: [32, 178, 170],
          lightskyblue: [135, 206, 250],
          lightslategray: [119, 136, 153],
          lightslategrey: [119, 136, 153],
          lightsteelblue: [176, 196, 222],
          lightyellow: [255, 255, 224],
          lime: [0, 255, 0],
          limegreen: [50, 205, 50],
          linen: [250, 240, 230],
          magenta: [255, 0, 255],
          maroon: [128, 0, 0],
          mediumaquamarine: [102, 205, 170],
          mediumblue: [0, 0, 205],
          mediumorchid: [186, 85, 211],
          mediumpurple: [147, 112, 219],
          mediumseagreen: [60, 179, 113],
          mediumslateblue: [123, 104, 238],
          mediumspringgreen: [0, 250, 154],
          mediumturquoise: [72, 209, 204],
          mediumvioletred: [199, 21, 133],
          midnightblue: [25, 25, 112],
          mintcream: [245, 255, 250],
          mistyrose: [255, 228, 225],
          moccasin: [255, 228, 181],
          navajowhite: [255, 222, 173],
          navy: [0, 0, 128],
          oldlace: [253, 245, 230],
          olive: [128, 128, 0],
          olivedrab: [107, 142, 35],
          orange: [255, 165, 0],
          orangered: [255, 69, 0],
          orchid: [218, 112, 214],
          palegoldenrod: [238, 232, 170],
          palegreen: [152, 251, 152],
          paleturquoise: [175, 238, 238],
          palevioletred: [219, 112, 147],
          papayawhip: [255, 239, 213],
          peachpuff: [255, 218, 185],
          peru: [205, 133, 63],
          pink: [255, 192, 203],
          plum: [221, 160, 221],
          powderblue: [176, 224, 230],
          purple: [128, 0, 128],
          rebeccapurple: [102, 51, 153],
          red: [255, 0, 0],
          rosybrown: [188, 143, 143],
          royalblue: [65, 105, 225],
          saddlebrown: [139, 69, 19],
          salmon: [250, 128, 114],
          sandybrown: [244, 164, 96],
          seagreen: [46, 139, 87],
          seashell: [255, 245, 238],
          sienna: [160, 82, 45],
          silver: [192, 192, 192],
          skyblue: [135, 206, 235],
          slateblue: [106, 90, 205],
          slategray: [112, 128, 144],
          slategrey: [112, 128, 144],
          snow: [255, 250, 250],
          springgreen: [0, 255, 127],
          steelblue: [70, 130, 180],
          tan: [210, 180, 140],
          teal: [0, 128, 128],
          thistle: [216, 191, 216],
          tomato: [255, 99, 71],
          turquoise: [64, 224, 208],
          violet: [238, 130, 238],
          wheat: [245, 222, 179],
          white: [255, 255, 255],
          whitesmoke: [245, 245, 245],
          yellow: [255, 255, 0],
          yellowgreen: [154, 205, 50]
        },
        G = {};
      for (var Q in Z) G[JSON.stringify(Z[Q])] = Q;
    }, {}],
    5: [function (t, e, a) {
      var i = t(4),
        n = function n() {
          return new d();
        };
      for (var o in i) {
        n[o + "Raw"] = function (t) {
          return function (e) {
            return "number" == typeof e && (e = Array.prototype.slice.call(arguments)), i[t](e);
          };
        }(o);
        var r = /(\w+)2(\w+)/.exec(o),
          l = r[1],
          s = r[2];
        n[l] = n[l] || {}, n[l][s] = n[o] = function (t) {
          return function (e) {
            "number" == typeof e && (e = Array.prototype.slice.call(arguments));
            var a = i[t](e);
            if ("string" == typeof a || void 0 === a) return a;
            for (var n = 0; n < a.length; n++) a[n] = Math.round(a[n]);
            return a;
          };
        }(o);
      }
      var d = function d() {
        this.convs = {};
      };
      d.prototype.routeSpace = function (t, e) {
        var a = e[0];
        return void 0 === a ? this.getValues(t) : ("number" == typeof a && (a = Array.prototype.slice.call(e)), this.setValues(t, a));
      }, d.prototype.setValues = function (t, e) {
        return this.space = t, this.convs = {}, this.convs[t] = e, this;
      }, d.prototype.getValues = function (t) {
        var e = this.convs[t];
        if (!e) {
          var a = this.space,
            i = this.convs[a];
          e = n[a][t](i), this.convs[t] = e;
        }
        return e;
      }, ["rgb", "hsl", "hsv", "cmyk", "keyword"].forEach(function (t) {
        d.prototype[t] = function (e) {
          return this.routeSpace(t, arguments);
        };
      }), e.exports = n;
    }, {
      4: 4
    }],
    6: [function (t, e, a) {
      e.exports = {
        aliceblue: [240, 248, 255],
        antiquewhite: [250, 235, 215],
        aqua: [0, 255, 255],
        aquamarine: [127, 255, 212],
        azure: [240, 255, 255],
        beige: [245, 245, 220],
        bisque: [255, 228, 196],
        black: [0, 0, 0],
        blanchedalmond: [255, 235, 205],
        blue: [0, 0, 255],
        blueviolet: [138, 43, 226],
        brown: [165, 42, 42],
        burlywood: [222, 184, 135],
        cadetblue: [95, 158, 160],
        chartreuse: [127, 255, 0],
        chocolate: [210, 105, 30],
        coral: [255, 127, 80],
        cornflowerblue: [100, 149, 237],
        cornsilk: [255, 248, 220],
        crimson: [220, 20, 60],
        cyan: [0, 255, 255],
        darkblue: [0, 0, 139],
        darkcyan: [0, 139, 139],
        darkgoldenrod: [184, 134, 11],
        darkgray: [169, 169, 169],
        darkgreen: [0, 100, 0],
        darkgrey: [169, 169, 169],
        darkkhaki: [189, 183, 107],
        darkmagenta: [139, 0, 139],
        darkolivegreen: [85, 107, 47],
        darkorange: [255, 140, 0],
        darkorchid: [153, 50, 204],
        darkred: [139, 0, 0],
        darksalmon: [233, 150, 122],
        darkseagreen: [143, 188, 143],
        darkslateblue: [72, 61, 139],
        darkslategray: [47, 79, 79],
        darkslategrey: [47, 79, 79],
        darkturquoise: [0, 206, 209],
        darkviolet: [148, 0, 211],
        deeppink: [255, 20, 147],
        deepskyblue: [0, 191, 255],
        dimgray: [105, 105, 105],
        dimgrey: [105, 105, 105],
        dodgerblue: [30, 144, 255],
        firebrick: [178, 34, 34],
        floralwhite: [255, 250, 240],
        forestgreen: [34, 139, 34],
        fuchsia: [255, 0, 255],
        gainsboro: [220, 220, 220],
        ghostwhite: [248, 248, 255],
        gold: [255, 215, 0],
        goldenrod: [218, 165, 32],
        gray: [128, 128, 128],
        green: [0, 128, 0],
        greenyellow: [173, 255, 47],
        grey: [128, 128, 128],
        honeydew: [240, 255, 240],
        hotpink: [255, 105, 180],
        indianred: [205, 92, 92],
        indigo: [75, 0, 130],
        ivory: [255, 255, 240],
        khaki: [240, 230, 140],
        lavender: [230, 230, 250],
        lavenderblush: [255, 240, 245],
        lawngreen: [124, 252, 0],
        lemonchiffon: [255, 250, 205],
        lightblue: [173, 216, 230],
        lightcoral: [240, 128, 128],
        lightcyan: [224, 255, 255],
        lightgoldenrodyellow: [250, 250, 210],
        lightgray: [211, 211, 211],
        lightgreen: [144, 238, 144],
        lightgrey: [211, 211, 211],
        lightpink: [255, 182, 193],
        lightsalmon: [255, 160, 122],
        lightseagreen: [32, 178, 170],
        lightskyblue: [135, 206, 250],
        lightslategray: [119, 136, 153],
        lightslategrey: [119, 136, 153],
        lightsteelblue: [176, 196, 222],
        lightyellow: [255, 255, 224],
        lime: [0, 255, 0],
        limegreen: [50, 205, 50],
        linen: [250, 240, 230],
        magenta: [255, 0, 255],
        maroon: [128, 0, 0],
        mediumaquamarine: [102, 205, 170],
        mediumblue: [0, 0, 205],
        mediumorchid: [186, 85, 211],
        mediumpurple: [147, 112, 219],
        mediumseagreen: [60, 179, 113],
        mediumslateblue: [123, 104, 238],
        mediumspringgreen: [0, 250, 154],
        mediumturquoise: [72, 209, 204],
        mediumvioletred: [199, 21, 133],
        midnightblue: [25, 25, 112],
        mintcream: [245, 255, 250],
        mistyrose: [255, 228, 225],
        moccasin: [255, 228, 181],
        navajowhite: [255, 222, 173],
        navy: [0, 0, 128],
        oldlace: [253, 245, 230],
        olive: [128, 128, 0],
        olivedrab: [107, 142, 35],
        orange: [255, 165, 0],
        orangered: [255, 69, 0],
        orchid: [218, 112, 214],
        palegoldenrod: [238, 232, 170],
        palegreen: [152, 251, 152],
        paleturquoise: [175, 238, 238],
        palevioletred: [219, 112, 147],
        papayawhip: [255, 239, 213],
        peachpuff: [255, 218, 185],
        peru: [205, 133, 63],
        pink: [255, 192, 203],
        plum: [221, 160, 221],
        powderblue: [176, 224, 230],
        purple: [128, 0, 128],
        rebeccapurple: [102, 51, 153],
        red: [255, 0, 0],
        rosybrown: [188, 143, 143],
        royalblue: [65, 105, 225],
        saddlebrown: [139, 69, 19],
        salmon: [250, 128, 114],
        sandybrown: [244, 164, 96],
        seagreen: [46, 139, 87],
        seashell: [255, 245, 238],
        sienna: [160, 82, 45],
        silver: [192, 192, 192],
        skyblue: [135, 206, 235],
        slateblue: [106, 90, 205],
        slategray: [112, 128, 144],
        slategrey: [112, 128, 144],
        snow: [255, 250, 250],
        springgreen: [0, 255, 127],
        steelblue: [70, 130, 180],
        tan: [210, 180, 140],
        teal: [0, 128, 128],
        thistle: [216, 191, 216],
        tomato: [255, 99, 71],
        turquoise: [64, 224, 208],
        violet: [238, 130, 238],
        wheat: [245, 222, 179],
        white: [255, 255, 255],
        whitesmoke: [245, 245, 245],
        yellow: [255, 255, 0],
        yellowgreen: [154, 205, 50]
      };
    }, {}],
    7: [function (t, e, a) {
      var i = t(28)();
      t(26)(i), t(22)(i), t(25)(i), t(21)(i), t(23)(i), t(24)(i), t(29)(i), t(33)(i), t(31)(i), t(34)(i), t(32)(i), t(35)(i), t(30)(i), t(27)(i), t(36)(i), t(37)(i), t(38)(i), t(39)(i), t(40)(i), t(43)(i), t(41)(i), t(42)(i), t(44)(i), t(45)(i), t(46)(i), t(15)(i), t(16)(i), t(17)(i), t(18)(i), t(19)(i), t(20)(i), t(8)(i), t(9)(i), t(10)(i), t(11)(i), t(12)(i), t(13)(i), t(14)(i), window.Chart = e.exports = i;
    }, {
      10: 10,
      11: 11,
      12: 12,
      13: 13,
      14: 14,
      15: 15,
      16: 16,
      17: 17,
      18: 18,
      19: 19,
      20: 20,
      21: 21,
      22: 22,
      23: 23,
      24: 24,
      25: 25,
      26: 26,
      27: 27,
      28: 28,
      29: 29,
      30: 30,
      31: 31,
      32: 32,
      33: 33,
      34: 34,
      35: 35,
      36: 36,
      37: 37,
      38: 38,
      39: 39,
      40: 40,
      41: 41,
      42: 42,
      43: 43,
      44: 44,
      45: 45,
      46: 46,
      8: 8,
      9: 9
    }],
    8: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        t.Bar = function (e, a) {
          return a.type = "bar", new t(e, a);
        };
      };
    }, {}],
    9: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        t.Bubble = function (e, a) {
          return a.type = "bubble", new t(e, a);
        };
      };
    }, {}],
    10: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        t.Doughnut = function (e, a) {
          return a.type = "doughnut", new t(e, a);
        };
      };
    }, {}],
    11: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        t.Line = function (e, a) {
          return a.type = "line", new t(e, a);
        };
      };
    }, {}],
    12: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        t.PolarArea = function (e, a) {
          return a.type = "polarArea", new t(e, a);
        };
      };
    }, {}],
    13: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        t.Radar = function (e, a) {
          return a.type = "radar", new t(e, a);
        };
      };
    }, {}],
    14: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = {
          hover: {
            mode: "single"
          },
          scales: {
            xAxes: [{
              type: "linear",
              position: "bottom",
              id: "x-axis-1"
            }],
            yAxes: [{
              type: "linear",
              position: "left",
              id: "y-axis-1"
            }]
          },
          tooltips: {
            callbacks: {
              title: function title() {
                return "";
              },
              label: function label(t) {
                return "(" + t.xLabel + ", " + t.yLabel + ")";
              }
            }
          }
        };
        t.defaults.scatter = e, t.controllers.scatter = t.controllers.line, t.Scatter = function (e, a) {
          return a.type = "scatter", new t(e, a);
        };
      };
    }, {}],
    15: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.defaults.bar = {
          hover: {
            mode: "label"
          },
          scales: {
            xAxes: [{
              type: "category",
              categoryPercentage: .8,
              barPercentage: .9,
              gridLines: {
                offsetGridLines: !0
              }
            }],
            yAxes: [{
              type: "linear"
            }]
          }
        }, t.controllers.bar = t.DatasetController.extend({
          dataElementType: t.elements.Rectangle,
          initialize: function initialize(e, a) {
            t.DatasetController.prototype.initialize.call(this, e, a), this.getMeta().bar = !0;
          },
          getBarCount: function getBarCount() {
            var t = this,
              a = 0;
            return e.each(t.chart.data.datasets, function (e, i) {
              var n = t.chart.getDatasetMeta(i);
              n.bar && t.chart.isDatasetVisible(i) && ++a;
            }, t), a;
          },
          update: function update(t) {
            var a = this;
            e.each(a.getMeta().data, function (e, i) {
              a.updateElement(e, i, t);
            }, a);
          },
          updateElement: function updateElement(t, a, i) {
            var n = this,
              o = n.getMeta(),
              r = n.getScaleForId(o.xAxisID),
              l = n.getScaleForId(o.yAxisID),
              s = l.getBasePixel(),
              d = n.chart.options.elements.rectangle,
              u = t.custom || {},
              c = n.getDataset();
            t._xScale = r, t._yScale = l, t._datasetIndex = n.index, t._index = a;
            var h = n.getRuler(a);
            t._model = {
              x: n.calculateBarX(a, n.index, h),
              y: i ? s : n.calculateBarY(a, n.index),
              label: n.chart.data.labels[a],
              datasetLabel: c.label,
              base: i ? s : n.calculateBarBase(n.index, a),
              width: n.calculateBarWidth(h),
              backgroundColor: u.backgroundColor ? u.backgroundColor : e.getValueAtIndexOrDefault(c.backgroundColor, a, d.backgroundColor),
              borderSkipped: u.borderSkipped ? u.borderSkipped : d.borderSkipped,
              borderColor: u.borderColor ? u.borderColor : e.getValueAtIndexOrDefault(c.borderColor, a, d.borderColor),
              borderWidth: u.borderWidth ? u.borderWidth : e.getValueAtIndexOrDefault(c.borderWidth, a, d.borderWidth)
            }, t.pivot();
          },
          calculateBarBase: function calculateBarBase(t, e) {
            var a = this,
              i = a.getMeta(),
              n = a.getScaleForId(i.yAxisID),
              o = 0;
            if (n.options.stacked) {
              for (var r = a.chart, l = r.data.datasets, s = Number(l[t].data[e]), d = 0; t > d; d++) {
                var u = l[d],
                  c = r.getDatasetMeta(d);
                if (c.bar && c.yAxisID === n.id && r.isDatasetVisible(d)) {
                  var h = Number(u.data[e]);
                  o += 0 > s ? Math.min(h, 0) : Math.max(h, 0);
                }
              }
              return n.getPixelForValue(o);
            }
            return n.getBasePixel();
          },
          getRuler: function getRuler(t) {
            var e,
              a = this,
              i = a.getMeta(),
              n = a.getScaleForId(i.xAxisID),
              o = a.getBarCount();
            e = "category" === n.options.type ? n.getPixelForTick(t + 1) - n.getPixelForTick(t) : n.width / n.ticks.length;
            var r = e * n.options.categoryPercentage,
              l = (e - e * n.options.categoryPercentage) / 2,
              s = r / o;
            if (n.ticks.length !== a.chart.data.labels.length) {
              var d = n.ticks.length / a.chart.data.labels.length;
              s *= d;
            }
            var u = s * n.options.barPercentage,
              c = s - s * n.options.barPercentage;
            return {
              datasetCount: o,
              tickWidth: e,
              categoryWidth: r,
              categorySpacing: l,
              fullBarWidth: s,
              barWidth: u,
              barSpacing: c
            };
          },
          calculateBarWidth: function calculateBarWidth(t) {
            var e = this.getScaleForId(this.getMeta().xAxisID);
            return e.options.barThickness ? e.options.barThickness : e.options.stacked ? t.categoryWidth : t.barWidth;
          },
          getBarIndex: function getBarIndex(t) {
            var e,
              a,
              i = 0;
            for (a = 0; t > a; ++a) e = this.chart.getDatasetMeta(a), e.bar && this.chart.isDatasetVisible(a) && ++i;
            return i;
          },
          calculateBarX: function calculateBarX(t, e, a) {
            var i = this,
              n = i.getMeta(),
              o = i.getScaleForId(n.xAxisID),
              r = i.getBarIndex(e),
              l = o.getPixelForValue(null, t, e, i.chart.isCombo);
            return l -= i.chart.isCombo ? a.tickWidth / 2 : 0, o.options.stacked ? l + a.categoryWidth / 2 + a.categorySpacing : l + a.barWidth / 2 + a.categorySpacing + a.barWidth * r + a.barSpacing / 2 + a.barSpacing * r;
          },
          calculateBarY: function calculateBarY(t, e) {
            var a = this,
              i = a.getMeta(),
              n = a.getScaleForId(i.yAxisID),
              o = Number(a.getDataset().data[t]);
            if (n.options.stacked) {
              for (var r = 0, l = 0, s = 0; e > s; s++) {
                var d = a.chart.data.datasets[s],
                  u = a.chart.getDatasetMeta(s);
                if (u.bar && u.yAxisID === n.id && a.chart.isDatasetVisible(s)) {
                  var c = Number(d.data[t]);
                  0 > c ? l += c || 0 : r += c || 0;
                }
              }
              return 0 > o ? n.getPixelForValue(l + o) : n.getPixelForValue(r + o);
            }
            return n.getPixelForValue(o);
          },
          draw: function draw(t) {
            var e,
              a,
              i = this,
              n = t || 1,
              o = i.getMeta().data,
              r = i.getDataset();
            for (e = 0, a = o.length; a > e; ++e) {
              var l = r.data[e];
              null === l || void 0 === l || isNaN(l) || o[e].transition(n).draw();
            }
          },
          setHoverStyle: function setHoverStyle(t) {
            var a = this.chart.data.datasets[t._datasetIndex],
              i = t._index,
              n = t.custom || {},
              o = t._model;
            o.backgroundColor = n.hoverBackgroundColor ? n.hoverBackgroundColor : e.getValueAtIndexOrDefault(a.hoverBackgroundColor, i, e.getHoverColor(o.backgroundColor)), o.borderColor = n.hoverBorderColor ? n.hoverBorderColor : e.getValueAtIndexOrDefault(a.hoverBorderColor, i, e.getHoverColor(o.borderColor)), o.borderWidth = n.hoverBorderWidth ? n.hoverBorderWidth : e.getValueAtIndexOrDefault(a.hoverBorderWidth, i, o.borderWidth);
          },
          removeHoverStyle: function removeHoverStyle(t) {
            var a = this.chart.data.datasets[t._datasetIndex],
              i = t._index,
              n = t.custom || {},
              o = t._model,
              r = this.chart.options.elements.rectangle;
            o.backgroundColor = n.backgroundColor ? n.backgroundColor : e.getValueAtIndexOrDefault(a.backgroundColor, i, r.backgroundColor), o.borderColor = n.borderColor ? n.borderColor : e.getValueAtIndexOrDefault(a.borderColor, i, r.borderColor), o.borderWidth = n.borderWidth ? n.borderWidth : e.getValueAtIndexOrDefault(a.borderWidth, i, r.borderWidth);
          }
        }), t.defaults.horizontalBar = {
          hover: {
            mode: "label"
          },
          scales: {
            xAxes: [{
              type: "linear",
              position: "bottom"
            }],
            yAxes: [{
              position: "left",
              type: "category",
              categoryPercentage: .8,
              barPercentage: .9,
              gridLines: {
                offsetGridLines: !0
              }
            }]
          },
          elements: {
            rectangle: {
              borderSkipped: "left"
            }
          },
          tooltips: {
            callbacks: {
              title: function title(t, e) {
                var a = "";
                return t.length > 0 && (t[0].yLabel ? a = t[0].yLabel : e.labels.length > 0 && t[0].index < e.labels.length && (a = e.labels[t[0].index])), a;
              },
              label: function label(t, e) {
                var a = e.datasets[t.datasetIndex].label || "";
                return a + ": " + t.xLabel;
              }
            }
          }
        }, t.controllers.horizontalBar = t.controllers.bar.extend({
          updateElement: function updateElement(t, a, i) {
            var n = this,
              o = n.getMeta(),
              r = n.getScaleForId(o.xAxisID),
              l = n.getScaleForId(o.yAxisID),
              s = r.getBasePixel(),
              d = t.custom || {},
              u = n.getDataset(),
              c = n.chart.options.elements.rectangle;
            t._xScale = r, t._yScale = l, t._datasetIndex = n.index, t._index = a;
            var h = n.getRuler(a);
            t._model = {
              x: i ? s : n.calculateBarX(a, n.index),
              y: n.calculateBarY(a, n.index, h),
              label: n.chart.data.labels[a],
              datasetLabel: u.label,
              base: i ? s : n.calculateBarBase(n.index, a),
              height: n.calculateBarHeight(h),
              backgroundColor: d.backgroundColor ? d.backgroundColor : e.getValueAtIndexOrDefault(u.backgroundColor, a, c.backgroundColor),
              borderSkipped: d.borderSkipped ? d.borderSkipped : c.borderSkipped,
              borderColor: d.borderColor ? d.borderColor : e.getValueAtIndexOrDefault(u.borderColor, a, c.borderColor),
              borderWidth: d.borderWidth ? d.borderWidth : e.getValueAtIndexOrDefault(u.borderWidth, a, c.borderWidth)
            }, t.draw = function () {
              function t(t) {
                return s[(u + t) % 4];
              }
              var e = this._chart.ctx,
                a = this._view,
                i = a.height / 2,
                n = a.y - i,
                o = a.y + i,
                r = a.base - (a.base - a.x),
                l = a.borderWidth / 2;
              a.borderWidth && (n += l, o -= l, r += l), e.beginPath(), e.fillStyle = a.backgroundColor, e.strokeStyle = a.borderColor, e.lineWidth = a.borderWidth;
              var s = [[a.base, o], [a.base, n], [r, n], [r, o]],
                d = ["bottom", "left", "top", "right"],
                u = d.indexOf(a.borderSkipped, 0);
              -1 === u && (u = 0), e.moveTo.apply(e, t(0));
              for (var c = 1; 4 > c; c++) e.lineTo.apply(e, t(c));
              e.fill(), a.borderWidth && e.stroke();
            }, t.pivot();
          },
          calculateBarBase: function calculateBarBase(t, e) {
            var a = this,
              i = a.getMeta(),
              n = a.getScaleForId(i.xAxisID),
              o = 0;
            if (n.options.stacked) {
              for (var r = a.chart, l = r.data.datasets, s = Number(l[t].data[e]), d = 0; t > d; d++) {
                var u = l[d],
                  c = r.getDatasetMeta(d);
                if (c.bar && c.xAxisID === n.id && r.isDatasetVisible(d)) {
                  var h = Number(u.data[e]);
                  o += 0 > s ? Math.min(h, 0) : Math.max(h, 0);
                }
              }
              return n.getPixelForValue(o);
            }
            return n.getBasePixel();
          },
          getRuler: function getRuler(t) {
            var e,
              a = this,
              i = a.getMeta(),
              n = a.getScaleForId(i.yAxisID),
              o = a.getBarCount();
            e = "category" === n.options.type ? n.getPixelForTick(t + 1) - n.getPixelForTick(t) : n.width / n.ticks.length;
            var r = e * n.options.categoryPercentage,
              l = (e - e * n.options.categoryPercentage) / 2,
              s = r / o;
            if (n.ticks.length !== a.chart.data.labels.length) {
              var d = n.ticks.length / a.chart.data.labels.length;
              s *= d;
            }
            var u = s * n.options.barPercentage,
              c = s - s * n.options.barPercentage;
            return {
              datasetCount: o,
              tickHeight: e,
              categoryHeight: r,
              categorySpacing: l,
              fullBarHeight: s,
              barHeight: u,
              barSpacing: c
            };
          },
          calculateBarHeight: function calculateBarHeight(t) {
            var e = this,
              a = e.getScaleForId(e.getMeta().yAxisID);
            return a.options.barThickness ? a.options.barThickness : a.options.stacked ? t.categoryHeight : t.barHeight;
          },
          calculateBarX: function calculateBarX(t, e) {
            var a = this,
              i = a.getMeta(),
              n = a.getScaleForId(i.xAxisID),
              o = Number(a.getDataset().data[t]);
            if (n.options.stacked) {
              for (var r = 0, l = 0, s = 0; e > s; s++) {
                var d = a.chart.data.datasets[s],
                  u = a.chart.getDatasetMeta(s);
                if (u.bar && u.xAxisID === n.id && a.chart.isDatasetVisible(s)) {
                  var c = Number(d.data[t]);
                  0 > c ? l += c || 0 : r += c || 0;
                }
              }
              return 0 > o ? n.getPixelForValue(l + o) : n.getPixelForValue(r + o);
            }
            return n.getPixelForValue(o);
          },
          calculateBarY: function calculateBarY(t, e, a) {
            var i = this,
              n = i.getMeta(),
              o = i.getScaleForId(n.yAxisID),
              r = i.getBarIndex(e),
              l = o.getPixelForValue(null, t, e, i.chart.isCombo);
            return l -= i.chart.isCombo ? a.tickHeight / 2 : 0, o.options.stacked ? l + a.categoryHeight / 2 + a.categorySpacing : l + a.barHeight / 2 + a.categorySpacing + a.barHeight * r + a.barSpacing / 2 + a.barSpacing * r;
          }
        });
      };
    }, {}],
    16: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.defaults.bubble = {
          hover: {
            mode: "single"
          },
          scales: {
            xAxes: [{
              type: "linear",
              position: "bottom",
              id: "x-axis-0"
            }],
            yAxes: [{
              type: "linear",
              position: "left",
              id: "y-axis-0"
            }]
          },
          tooltips: {
            callbacks: {
              title: function title() {
                return "";
              },
              label: function label(t, e) {
                var a = e.datasets[t.datasetIndex].label || "",
                  i = e.datasets[t.datasetIndex].data[t.index];
                return a + ": (" + t.xLabel + ", " + t.yLabel + ", " + i.r + ")";
              }
            }
          }
        }, t.controllers.bubble = t.DatasetController.extend({
          dataElementType: t.elements.Point,
          update: function update(t) {
            var a = this,
              i = a.getMeta(),
              n = i.data;
            e.each(n, function (e, i) {
              a.updateElement(e, i, t);
            });
          },
          updateElement: function updateElement(a, i, n) {
            var o = this,
              r = o.getMeta(),
              l = o.getScaleForId(r.xAxisID),
              s = o.getScaleForId(r.yAxisID),
              d = a.custom || {},
              u = o.getDataset(),
              c = u.data[i],
              h = o.chart.options.elements.point,
              f = o.index;
            e.extend(a, {
              _xScale: l,
              _yScale: s,
              _datasetIndex: f,
              _index: i,
              _model: {
                x: n ? l.getPixelForDecimal(.5) : l.getPixelForValue("object" == (0, _typeof2.default)(c) ? c : NaN, i, f, o.chart.isCombo),
                y: n ? s.getBasePixel() : s.getPixelForValue(c, i, f),
                radius: n ? 0 : d.radius ? d.radius : o.getRadius(c),
                hitRadius: d.hitRadius ? d.hitRadius : e.getValueAtIndexOrDefault(u.hitRadius, i, h.hitRadius)
              }
            }), t.DatasetController.prototype.removeHoverStyle.call(o, a, h);
            var g = a._model;
            g.skip = d.skip ? d.skip : isNaN(g.x) || isNaN(g.y), a.pivot();
          },
          getRadius: function getRadius(t) {
            return t.r || this.chart.options.elements.point.radius;
          },
          setHoverStyle: function setHoverStyle(a) {
            var i = this;
            t.DatasetController.prototype.setHoverStyle.call(i, a);
            var n = i.chart.data.datasets[a._datasetIndex],
              o = a._index,
              r = a.custom || {},
              l = a._model;
            l.radius = r.hoverRadius ? r.hoverRadius : e.getValueAtIndexOrDefault(n.hoverRadius, o, i.chart.options.elements.point.hoverRadius) + i.getRadius(n.data[o]);
          },
          removeHoverStyle: function removeHoverStyle(e) {
            var a = this;
            t.DatasetController.prototype.removeHoverStyle.call(a, e, a.chart.options.elements.point);
            var i = a.chart.data.datasets[e._datasetIndex].data[e._index],
              n = e.custom || {},
              o = e._model;
            o.radius = n.radius ? n.radius : a.getRadius(i);
          }
        });
      };
    }, {}],
    17: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = t.defaults;
        a.doughnut = {
          animation: {
            animateRotate: !0,
            animateScale: !1
          },
          aspectRatio: 1,
          hover: {
            mode: "single"
          },
          legendCallback: function legendCallback(t) {
            var e = [];
            e.push('<ul class="' + t.id + '-legend">');
            var a = t.data,
              i = a.datasets,
              n = a.labels;
            if (i.length) for (var o = 0; o < i[0].data.length; ++o) e.push('<li><span style="background-color:' + i[0].backgroundColor[o] + '"></span>'), n[o] && e.push(n[o]), e.push("</li>");
            return e.push("</ul>"), e.join("");
          },
          legend: {
            labels: {
              generateLabels: function generateLabels(t) {
                var a = t.data;
                return a.labels.length && a.datasets.length ? a.labels.map(function (i, n) {
                  var o = t.getDatasetMeta(0),
                    r = a.datasets[0],
                    l = o.data[n],
                    s = l && l.custom || {},
                    d = e.getValueAtIndexOrDefault,
                    u = t.options.elements.arc,
                    c = s.backgroundColor ? s.backgroundColor : d(r.backgroundColor, n, u.backgroundColor),
                    h = s.borderColor ? s.borderColor : d(r.borderColor, n, u.borderColor),
                    f = s.borderWidth ? s.borderWidth : d(r.borderWidth, n, u.borderWidth);
                  return {
                    text: i,
                    fillStyle: c,
                    strokeStyle: h,
                    lineWidth: f,
                    hidden: isNaN(r.data[n]) || o.data[n].hidden,
                    index: n
                  };
                }) : [];
              }
            },
            onClick: function onClick(t, e) {
              var a,
                i,
                n,
                o = e.index,
                r = this.chart;
              for (a = 0, i = (r.data.datasets || []).length; i > a; ++a) n = r.getDatasetMeta(a), n.data[o] && (n.data[o].hidden = !n.data[o].hidden);
              r.update();
            }
          },
          cutoutPercentage: 50,
          rotation: Math.PI * -.5,
          circumference: 2 * Math.PI,
          tooltips: {
            callbacks: {
              title: function title() {
                return "";
              },
              label: function label(t, a) {
                var i = a.labels[t.index],
                  n = ": " + a.datasets[t.datasetIndex].data[t.index];
                return e.isArray(i) ? (i = i.slice(), i[0] += n) : i += n, i;
              }
            }
          }
        }, a.pie = e.clone(a.doughnut), e.extend(a.pie, {
          cutoutPercentage: 0
        }), t.controllers.doughnut = t.controllers.pie = t.DatasetController.extend({
          dataElementType: t.elements.Arc,
          linkScales: e.noop,
          getRingIndex: function getRingIndex(t) {
            for (var e = 0, a = 0; t > a; ++a) this.chart.isDatasetVisible(a) && ++e;
            return e;
          },
          update: function update(t) {
            var a = this,
              i = a.chart,
              n = i.chartArea,
              o = i.options,
              r = o.elements.arc,
              l = n.right - n.left - r.borderWidth,
              s = n.bottom - n.top - r.borderWidth,
              d = Math.min(l, s),
              u = {
                x: 0,
                y: 0
              },
              c = a.getMeta(),
              h = o.cutoutPercentage,
              f = o.circumference;
            if (f < 2 * Math.PI) {
              var g = o.rotation % (2 * Math.PI);
              g += 2 * Math.PI * (g >= Math.PI ? -1 : g < -Math.PI ? 1 : 0);
              var p = g + f,
                m = {
                  x: Math.cos(g),
                  y: Math.sin(g)
                },
                b = {
                  x: Math.cos(p),
                  y: Math.sin(p)
                },
                v = 0 >= g && p >= 0 || g <= 2 * Math.PI && 2 * Math.PI <= p,
                x = g <= .5 * Math.PI && .5 * Math.PI <= p || g <= 2.5 * Math.PI && 2.5 * Math.PI <= p,
                y = g <= -Math.PI && -Math.PI <= p || g <= Math.PI && Math.PI <= p,
                k = g <= .5 * -Math.PI && .5 * -Math.PI <= p || g <= 1.5 * Math.PI && 1.5 * Math.PI <= p,
                S = h / 100,
                w = {
                  x: y ? -1 : Math.min(m.x * (m.x < 0 ? 1 : S), b.x * (b.x < 0 ? 1 : S)),
                  y: k ? -1 : Math.min(m.y * (m.y < 0 ? 1 : S), b.y * (b.y < 0 ? 1 : S))
                },
                M = {
                  x: v ? 1 : Math.max(m.x * (m.x > 0 ? 1 : S), b.x * (b.x > 0 ? 1 : S)),
                  y: x ? 1 : Math.max(m.y * (m.y > 0 ? 1 : S), b.y * (b.y > 0 ? 1 : S))
                },
                C = {
                  width: .5 * (M.x - w.x),
                  height: .5 * (M.y - w.y)
                };
              d = Math.min(l / C.width, s / C.height), u = {
                x: (M.x + w.x) * -.5,
                y: (M.y + w.y) * -.5
              };
            }
            i.borderWidth = a.getMaxBorderWidth(c.data), i.outerRadius = Math.max((d - i.borderWidth) / 2, 0), i.innerRadius = Math.max(h ? i.outerRadius / 100 * h : 1, 0), i.radiusLength = (i.outerRadius - i.innerRadius) / i.getVisibleDatasetCount(), i.offsetX = u.x * i.outerRadius, i.offsetY = u.y * i.outerRadius, c.total = a.calculateTotal(), a.outerRadius = i.outerRadius - i.radiusLength * a.getRingIndex(a.index), a.innerRadius = a.outerRadius - i.radiusLength, e.each(c.data, function (e, i) {
              a.updateElement(e, i, t);
            });
          },
          updateElement: function updateElement(t, a, i) {
            var n = this,
              o = n.chart,
              r = o.chartArea,
              l = o.options,
              s = l.animation,
              d = (r.left + r.right) / 2,
              u = (r.top + r.bottom) / 2,
              c = l.rotation,
              h = l.rotation,
              f = n.getDataset(),
              g = i && s.animateRotate ? 0 : t.hidden ? 0 : n.calculateCircumference(f.data[a]) * (l.circumference / (2 * Math.PI)),
              p = i && s.animateScale ? 0 : n.innerRadius,
              m = i && s.animateScale ? 0 : n.outerRadius,
              b = e.getValueAtIndexOrDefault;
            e.extend(t, {
              _datasetIndex: n.index,
              _index: a,
              _model: {
                x: d + o.offsetX,
                y: u + o.offsetY,
                startAngle: c,
                endAngle: h,
                circumference: g,
                outerRadius: m,
                innerRadius: p,
                label: b(f.label, a, o.data.labels[a])
              }
            });
            var v = t._model;
            this.removeHoverStyle(t), i && s.animateRotate || (0 === a ? v.startAngle = l.rotation : v.startAngle = n.getMeta().data[a - 1]._model.endAngle, v.endAngle = v.startAngle + v.circumference), t.pivot();
          },
          removeHoverStyle: function removeHoverStyle(e) {
            t.DatasetController.prototype.removeHoverStyle.call(this, e, this.chart.options.elements.arc);
          },
          calculateTotal: function calculateTotal() {
            var t,
              a = this.getDataset(),
              i = this.getMeta(),
              n = 0;
            return e.each(i.data, function (e, i) {
              t = a.data[i], isNaN(t) || e.hidden || (n += Math.abs(t));
            }), n;
          },
          calculateCircumference: function calculateCircumference(t) {
            var e = this.getMeta().total;
            return e > 0 && !isNaN(t) ? 2 * Math.PI * (t / e) : 0;
          },
          getMaxBorderWidth: function getMaxBorderWidth(t) {
            for (var e, a, i = 0, n = this.index, o = t.length, r = 0; o > r; r++) e = t[r]._model ? t[r]._model.borderWidth : 0, a = t[r]._chart ? t[r]._chart.config.data.datasets[n].hoverBorderWidth : 0, i = e > i ? e : i, i = a > i ? a : i;
            return i;
          }
        });
      };
    }, {}],
    18: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t, e) {
          return a.getValueOrDefault(t.showLine, e.showLines);
        }
        var a = t.helpers;
        t.defaults.line = {
          showLines: !0,
          spanGaps: !1,
          hover: {
            mode: "label"
          },
          scales: {
            xAxes: [{
              type: "category",
              id: "x-axis-0"
            }],
            yAxes: [{
              type: "linear",
              id: "y-axis-0"
            }]
          }
        }, t.controllers.line = t.DatasetController.extend({
          datasetElementType: t.elements.Line,
          dataElementType: t.elements.Point,
          update: function update(t) {
            var i,
              n,
              o,
              r = this,
              l = r.getMeta(),
              s = l.dataset,
              d = l.data || [],
              u = r.chart.options,
              c = u.elements.line,
              h = r.getScaleForId(l.yAxisID),
              f = r.getDataset(),
              g = e(f, u);
            for (g && (o = s.custom || {}, void 0 !== f.tension && void 0 === f.lineTension && (f.lineTension = f.tension), s._scale = h, s._datasetIndex = r.index, s._children = d, s._model = {
              spanGaps: f.spanGaps ? f.spanGaps : u.spanGaps,
              tension: o.tension ? o.tension : a.getValueOrDefault(f.lineTension, c.tension),
              backgroundColor: o.backgroundColor ? o.backgroundColor : f.backgroundColor || c.backgroundColor,
              borderWidth: o.borderWidth ? o.borderWidth : f.borderWidth || c.borderWidth,
              borderColor: o.borderColor ? o.borderColor : f.borderColor || c.borderColor,
              borderCapStyle: o.borderCapStyle ? o.borderCapStyle : f.borderCapStyle || c.borderCapStyle,
              borderDash: o.borderDash ? o.borderDash : f.borderDash || c.borderDash,
              borderDashOffset: o.borderDashOffset ? o.borderDashOffset : f.borderDashOffset || c.borderDashOffset,
              borderJoinStyle: o.borderJoinStyle ? o.borderJoinStyle : f.borderJoinStyle || c.borderJoinStyle,
              fill: o.fill ? o.fill : void 0 !== f.fill ? f.fill : c.fill,
              steppedLine: o.steppedLine ? o.steppedLine : a.getValueOrDefault(f.steppedLine, c.stepped),
              cubicInterpolationMode: o.cubicInterpolationMode ? o.cubicInterpolationMode : a.getValueOrDefault(f.cubicInterpolationMode, c.cubicInterpolationMode),
              scaleTop: h.top,
              scaleBottom: h.bottom,
              scaleZero: h.getBasePixel()
            }, s.pivot()), i = 0, n = d.length; n > i; ++i) r.updateElement(d[i], i, t);
            for (g && 0 !== s._model.tension && r.updateBezierControlPoints(), i = 0, n = d.length; n > i; ++i) d[i].pivot();
          },
          getPointBackgroundColor: function getPointBackgroundColor(t, e) {
            var i = this.chart.options.elements.point.backgroundColor,
              n = this.getDataset(),
              o = t.custom || {};
            return o.backgroundColor ? i = o.backgroundColor : n.pointBackgroundColor ? i = a.getValueAtIndexOrDefault(n.pointBackgroundColor, e, i) : n.backgroundColor && (i = n.backgroundColor), i;
          },
          getPointBorderColor: function getPointBorderColor(t, e) {
            var i = this.chart.options.elements.point.borderColor,
              n = this.getDataset(),
              o = t.custom || {};
            return o.borderColor ? i = o.borderColor : n.pointBorderColor ? i = a.getValueAtIndexOrDefault(n.pointBorderColor, e, i) : n.borderColor && (i = n.borderColor), i;
          },
          getPointBorderWidth: function getPointBorderWidth(t, e) {
            var i = this.chart.options.elements.point.borderWidth,
              n = this.getDataset(),
              o = t.custom || {};
            return o.borderWidth ? i = o.borderWidth : n.pointBorderWidth ? i = a.getValueAtIndexOrDefault(n.pointBorderWidth, e, i) : n.borderWidth && (i = n.borderWidth), i;
          },
          updateElement: function updateElement(t, e, i) {
            var n,
              o,
              r = this,
              l = r.getMeta(),
              s = t.custom || {},
              d = r.getDataset(),
              u = r.index,
              c = d.data[e],
              h = r.getScaleForId(l.yAxisID),
              f = r.getScaleForId(l.xAxisID),
              g = r.chart.options.elements.point,
              p = r.chart.data.labels || [],
              m = 1 === p.length || 1 === d.data.length || r.chart.isCombo;
            void 0 !== d.radius && void 0 === d.pointRadius && (d.pointRadius = d.radius), void 0 !== d.hitRadius && void 0 === d.pointHitRadius && (d.pointHitRadius = d.hitRadius), n = f.getPixelForValue("object" == (0, _typeof2.default)(c) ? c : NaN, e, u, m), o = i ? h.getBasePixel() : r.calculatePointY(c, e, u), t._xScale = f, t._yScale = h, t._datasetIndex = u, t._index = e, t._model = {
              x: n,
              y: o,
              skip: s.skip || isNaN(n) || isNaN(o),
              radius: s.radius || a.getValueAtIndexOrDefault(d.pointRadius, e, g.radius),
              pointStyle: s.pointStyle || a.getValueAtIndexOrDefault(d.pointStyle, e, g.pointStyle),
              backgroundColor: r.getPointBackgroundColor(t, e),
              borderColor: r.getPointBorderColor(t, e),
              borderWidth: r.getPointBorderWidth(t, e),
              tension: l.dataset._model ? l.dataset._model.tension : 0,
              steppedLine: l.dataset._model ? l.dataset._model.steppedLine : !1,
              hitRadius: s.hitRadius || a.getValueAtIndexOrDefault(d.pointHitRadius, e, g.hitRadius)
            };
          },
          calculatePointY: function calculatePointY(t, e, a) {
            var i,
              n,
              o,
              r = this,
              l = r.chart,
              s = r.getMeta(),
              d = r.getScaleForId(s.yAxisID),
              u = 0,
              c = 0;
            if (d.options.stacked) {
              for (i = 0; a > i; i++) if (n = l.data.datasets[i], o = l.getDatasetMeta(i), "line" === o.type && o.yAxisID === d.id && l.isDatasetVisible(i)) {
                var h = Number(d.getRightValue(n.data[e]));
                0 > h ? c += h || 0 : u += h || 0;
              }
              var f = Number(d.getRightValue(t));
              return 0 > f ? d.getPixelForValue(c + f) : d.getPixelForValue(u + f);
            }
            return d.getPixelForValue(t);
          },
          updateBezierControlPoints: function updateBezierControlPoints() {
            function t(t, e, a) {
              return Math.max(Math.min(t, a), e);
            }
            var e,
              i,
              n,
              o,
              r,
              l = this,
              s = l.getMeta(),
              d = l.chart.chartArea,
              u = s.data || [];
            if (s.dataset._model.spanGaps && (u = u.filter(function (t) {
              return !t._model.skip;
            })), "monotone" === s.dataset._model.cubicInterpolationMode) a.splineCurveMonotone(u);else for (e = 0, i = u.length; i > e; ++e) n = u[e], o = n._model, r = a.splineCurve(a.previousItem(u, e)._model, o, a.nextItem(u, e)._model, s.dataset._model.tension), o.controlPointPreviousX = r.previous.x, o.controlPointPreviousY = r.previous.y, o.controlPointNextX = r.next.x, o.controlPointNextY = r.next.y;
            if (l.chart.options.elements.line.capBezierPoints) for (e = 0, i = u.length; i > e; ++e) o = u[e]._model, o.controlPointPreviousX = t(o.controlPointPreviousX, d.left, d.right), o.controlPointPreviousY = t(o.controlPointPreviousY, d.top, d.bottom), o.controlPointNextX = t(o.controlPointNextX, d.left, d.right), o.controlPointNextY = t(o.controlPointNextY, d.top, d.bottom);
          },
          draw: function draw(t) {
            var a,
              i,
              n = this,
              o = n.getMeta(),
              r = o.data || [],
              l = t || 1;
            for (a = 0, i = r.length; i > a; ++a) r[a].transition(l);
            for (e(n.getDataset(), n.chart.options) && o.dataset.transition(l).draw(), a = 0, i = r.length; i > a; ++a) r[a].draw();
          },
          setHoverStyle: function setHoverStyle(t) {
            var e = this.chart.data.datasets[t._datasetIndex],
              i = t._index,
              n = t.custom || {},
              o = t._model;
            o.radius = n.hoverRadius || a.getValueAtIndexOrDefault(e.pointHoverRadius, i, this.chart.options.elements.point.hoverRadius), o.backgroundColor = n.hoverBackgroundColor || a.getValueAtIndexOrDefault(e.pointHoverBackgroundColor, i, a.getHoverColor(o.backgroundColor)), o.borderColor = n.hoverBorderColor || a.getValueAtIndexOrDefault(e.pointHoverBorderColor, i, a.getHoverColor(o.borderColor)), o.borderWidth = n.hoverBorderWidth || a.getValueAtIndexOrDefault(e.pointHoverBorderWidth, i, o.borderWidth);
          },
          removeHoverStyle: function removeHoverStyle(t) {
            var e = this,
              i = e.chart.data.datasets[t._datasetIndex],
              n = t._index,
              o = t.custom || {},
              r = t._model;
            void 0 !== i.radius && void 0 === i.pointRadius && (i.pointRadius = i.radius), r.radius = o.radius || a.getValueAtIndexOrDefault(i.pointRadius, n, e.chart.options.elements.point.radius), r.backgroundColor = e.getPointBackgroundColor(t, n), r.borderColor = e.getPointBorderColor(t, n), r.borderWidth = e.getPointBorderWidth(t, n);
          }
        });
      };
    }, {}],
    19: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.defaults.polarArea = {
          scale: {
            type: "radialLinear",
            lineArc: !0,
            ticks: {
              beginAtZero: !0
            }
          },
          animation: {
            animateRotate: !0,
            animateScale: !0
          },
          startAngle: -.5 * Math.PI,
          aspectRatio: 1,
          legendCallback: function legendCallback(t) {
            var e = [];
            e.push('<ul class="' + t.id + '-legend">');
            var a = t.data,
              i = a.datasets,
              n = a.labels;
            if (i.length) for (var o = 0; o < i[0].data.length; ++o) e.push('<li><span style="background-color:' + i[0].backgroundColor[o] + '"></span>'), n[o] && e.push(n[o]), e.push("</li>");
            return e.push("</ul>"), e.join("");
          },
          legend: {
            labels: {
              generateLabels: function generateLabels(t) {
                var a = t.data;
                return a.labels.length && a.datasets.length ? a.labels.map(function (i, n) {
                  var o = t.getDatasetMeta(0),
                    r = a.datasets[0],
                    l = o.data[n],
                    s = l.custom || {},
                    d = e.getValueAtIndexOrDefault,
                    u = t.options.elements.arc,
                    c = s.backgroundColor ? s.backgroundColor : d(r.backgroundColor, n, u.backgroundColor),
                    h = s.borderColor ? s.borderColor : d(r.borderColor, n, u.borderColor),
                    f = s.borderWidth ? s.borderWidth : d(r.borderWidth, n, u.borderWidth);
                  return {
                    text: i,
                    fillStyle: c,
                    strokeStyle: h,
                    lineWidth: f,
                    hidden: isNaN(r.data[n]) || o.data[n].hidden,
                    index: n
                  };
                }) : [];
              }
            },
            onClick: function onClick(t, e) {
              var a,
                i,
                n,
                o = e.index,
                r = this.chart;
              for (a = 0, i = (r.data.datasets || []).length; i > a; ++a) n = r.getDatasetMeta(a), n.data[o].hidden = !n.data[o].hidden;
              r.update();
            }
          },
          tooltips: {
            callbacks: {
              title: function title() {
                return "";
              },
              label: function label(t, e) {
                return e.labels[t.index] + ": " + t.yLabel;
              }
            }
          }
        }, t.controllers.polarArea = t.DatasetController.extend({
          dataElementType: t.elements.Arc,
          linkScales: e.noop,
          update: function update(t) {
            var a = this,
              i = a.chart,
              n = i.chartArea,
              o = a.getMeta(),
              r = i.options,
              l = r.elements.arc,
              s = Math.min(n.right - n.left, n.bottom - n.top);
            i.outerRadius = Math.max((s - l.borderWidth / 2) / 2, 0), i.innerRadius = Math.max(r.cutoutPercentage ? i.outerRadius / 100 * r.cutoutPercentage : 1, 0), i.radiusLength = (i.outerRadius - i.innerRadius) / i.getVisibleDatasetCount(), a.outerRadius = i.outerRadius - i.radiusLength * a.index, a.innerRadius = a.outerRadius - i.radiusLength, o.count = a.countVisibleElements(), e.each(o.data, function (e, i) {
              a.updateElement(e, i, t);
            });
          },
          updateElement: function updateElement(t, a, i) {
            for (var n = this, o = n.chart, r = n.getDataset(), l = o.options, s = l.animation, d = o.scale, u = e.getValueAtIndexOrDefault, c = o.data.labels, h = n.calculateCircumference(r.data[a]), f = d.xCenter, g = d.yCenter, p = 0, m = n.getMeta(), b = 0; a > b; ++b) isNaN(r.data[b]) || m.data[b].hidden || ++p;
            var v = l.startAngle,
              x = t.hidden ? 0 : d.getDistanceFromCenterForValue(r.data[a]),
              y = v + h * p,
              k = y + (t.hidden ? 0 : h),
              S = s.animateScale ? 0 : d.getDistanceFromCenterForValue(r.data[a]);
            e.extend(t, {
              _datasetIndex: n.index,
              _index: a,
              _scale: d,
              _model: {
                x: f,
                y: g,
                innerRadius: 0,
                outerRadius: i ? S : x,
                startAngle: i && s.animateRotate ? v : y,
                endAngle: i && s.animateRotate ? v : k,
                label: u(c, a, c[a])
              }
            }), n.removeHoverStyle(t), t.pivot();
          },
          removeHoverStyle: function removeHoverStyle(e) {
            t.DatasetController.prototype.removeHoverStyle.call(this, e, this.chart.options.elements.arc);
          },
          countVisibleElements: function countVisibleElements() {
            var t = this.getDataset(),
              a = this.getMeta(),
              i = 0;
            return e.each(a.data, function (e, a) {
              isNaN(t.data[a]) || e.hidden || i++;
            }), i;
          },
          calculateCircumference: function calculateCircumference(t) {
            var e = this.getMeta().count;
            return e > 0 && !isNaN(t) ? 2 * Math.PI / e : 0;
          }
        });
      };
    }, {}],
    20: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.defaults.radar = {
          aspectRatio: 1,
          scale: {
            type: "radialLinear"
          },
          elements: {
            line: {
              tension: 0
            }
          }
        }, t.controllers.radar = t.DatasetController.extend({
          datasetElementType: t.elements.Line,
          dataElementType: t.elements.Point,
          linkScales: e.noop,
          update: function update(t) {
            var a = this,
              i = a.getMeta(),
              n = i.dataset,
              o = i.data,
              r = n.custom || {},
              l = a.getDataset(),
              s = a.chart.options.elements.line,
              d = a.chart.scale;
            void 0 !== l.tension && void 0 === l.lineTension && (l.lineTension = l.tension), e.extend(i.dataset, {
              _datasetIndex: a.index,
              _children: o,
              _loop: !0,
              _model: {
                tension: r.tension ? r.tension : e.getValueOrDefault(l.lineTension, s.tension),
                backgroundColor: r.backgroundColor ? r.backgroundColor : l.backgroundColor || s.backgroundColor,
                borderWidth: r.borderWidth ? r.borderWidth : l.borderWidth || s.borderWidth,
                borderColor: r.borderColor ? r.borderColor : l.borderColor || s.borderColor,
                fill: r.fill ? r.fill : void 0 !== l.fill ? l.fill : s.fill,
                borderCapStyle: r.borderCapStyle ? r.borderCapStyle : l.borderCapStyle || s.borderCapStyle,
                borderDash: r.borderDash ? r.borderDash : l.borderDash || s.borderDash,
                borderDashOffset: r.borderDashOffset ? r.borderDashOffset : l.borderDashOffset || s.borderDashOffset,
                borderJoinStyle: r.borderJoinStyle ? r.borderJoinStyle : l.borderJoinStyle || s.borderJoinStyle,
                scaleTop: d.top,
                scaleBottom: d.bottom,
                scaleZero: d.getBasePosition()
              }
            }), i.dataset.pivot(), e.each(o, function (e, i) {
              a.updateElement(e, i, t);
            }, a), a.updateBezierControlPoints();
          },
          updateElement: function updateElement(t, a, i) {
            var n = this,
              o = t.custom || {},
              r = n.getDataset(),
              l = n.chart.scale,
              s = n.chart.options.elements.point,
              d = l.getPointPositionForValue(a, r.data[a]);
            e.extend(t, {
              _datasetIndex: n.index,
              _index: a,
              _scale: l,
              _model: {
                x: i ? l.xCenter : d.x,
                y: i ? l.yCenter : d.y,
                tension: o.tension ? o.tension : e.getValueOrDefault(r.tension, n.chart.options.elements.line.tension),
                radius: o.radius ? o.radius : e.getValueAtIndexOrDefault(r.pointRadius, a, s.radius),
                backgroundColor: o.backgroundColor ? o.backgroundColor : e.getValueAtIndexOrDefault(r.pointBackgroundColor, a, s.backgroundColor),
                borderColor: o.borderColor ? o.borderColor : e.getValueAtIndexOrDefault(r.pointBorderColor, a, s.borderColor),
                borderWidth: o.borderWidth ? o.borderWidth : e.getValueAtIndexOrDefault(r.pointBorderWidth, a, s.borderWidth),
                pointStyle: o.pointStyle ? o.pointStyle : e.getValueAtIndexOrDefault(r.pointStyle, a, s.pointStyle),
                hitRadius: o.hitRadius ? o.hitRadius : e.getValueAtIndexOrDefault(r.hitRadius, a, s.hitRadius)
              }
            }), t._model.skip = o.skip ? o.skip : isNaN(t._model.x) || isNaN(t._model.y);
          },
          updateBezierControlPoints: function updateBezierControlPoints() {
            var t = this.chart.chartArea,
              a = this.getMeta();
            e.each(a.data, function (i, n) {
              var o = i._model,
                r = e.splineCurve(e.previousItem(a.data, n, !0)._model, o, e.nextItem(a.data, n, !0)._model, o.tension);
              o.controlPointPreviousX = Math.max(Math.min(r.previous.x, t.right), t.left), o.controlPointPreviousY = Math.max(Math.min(r.previous.y, t.bottom), t.top), o.controlPointNextX = Math.max(Math.min(r.next.x, t.right), t.left), o.controlPointNextY = Math.max(Math.min(r.next.y, t.bottom), t.top), i.pivot();
            });
          },
          draw: function draw(t) {
            var a = this.getMeta(),
              i = t || 1;
            e.each(a.data, function (t) {
              t.transition(i);
            }), a.dataset.transition(i).draw(), e.each(a.data, function (t) {
              t.draw();
            });
          },
          setHoverStyle: function setHoverStyle(t) {
            var a = this.chart.data.datasets[t._datasetIndex],
              i = t.custom || {},
              n = t._index,
              o = t._model;
            o.radius = i.hoverRadius ? i.hoverRadius : e.getValueAtIndexOrDefault(a.pointHoverRadius, n, this.chart.options.elements.point.hoverRadius), o.backgroundColor = i.hoverBackgroundColor ? i.hoverBackgroundColor : e.getValueAtIndexOrDefault(a.pointHoverBackgroundColor, n, e.getHoverColor(o.backgroundColor)), o.borderColor = i.hoverBorderColor ? i.hoverBorderColor : e.getValueAtIndexOrDefault(a.pointHoverBorderColor, n, e.getHoverColor(o.borderColor)), o.borderWidth = i.hoverBorderWidth ? i.hoverBorderWidth : e.getValueAtIndexOrDefault(a.pointHoverBorderWidth, n, o.borderWidth);
          },
          removeHoverStyle: function removeHoverStyle(t) {
            var a = this.chart.data.datasets[t._datasetIndex],
              i = t.custom || {},
              n = t._index,
              o = t._model,
              r = this.chart.options.elements.point;
            o.radius = i.radius ? i.radius : e.getValueAtIndexOrDefault(a.radius, n, r.radius), o.backgroundColor = i.backgroundColor ? i.backgroundColor : e.getValueAtIndexOrDefault(a.pointBackgroundColor, n, r.backgroundColor), o.borderColor = i.borderColor ? i.borderColor : e.getValueAtIndexOrDefault(a.pointBorderColor, n, r.borderColor), o.borderWidth = i.borderWidth ? i.borderWidth : e.getValueAtIndexOrDefault(a.pointBorderWidth, n, r.borderWidth);
          }
        });
      };
    }, {}],
    21: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.defaults.global.animation = {
          duration: 1e3,
          easing: "easeOutQuart",
          onProgress: e.noop,
          onComplete: e.noop
        }, t.Animation = t.Element.extend({
          currentStep: null,
          numSteps: 60,
          easing: "",
          render: null,
          onAnimationProgress: null,
          onAnimationComplete: null
        }), t.animationService = {
          frameDuration: 17,
          animations: [],
          dropFrames: 0,
          request: null,
          addAnimation: function addAnimation(t, e, a, i) {
            var n = this;
            i || (t.animating = !0);
            for (var o = 0; o < n.animations.length; ++o) if (n.animations[o].chartInstance === t) return void (n.animations[o].animationObject = e);
            n.animations.push({
              chartInstance: t,
              animationObject: e
            }), 1 === n.animations.length && n.requestAnimationFrame();
          },
          cancelAnimation: function cancelAnimation(t) {
            var a = e.findIndex(this.animations, function (e) {
              return e.chartInstance === t;
            });
            -1 !== a && (this.animations.splice(a, 1), t.animating = !1);
          },
          requestAnimationFrame: function requestAnimationFrame() {
            var t = this;
            null === t.request && (t.request = e.requestAnimFrame.call(window, function () {
              t.request = null, t.startDigest();
            }));
          },
          startDigest: function startDigest() {
            var t = this,
              e = Date.now(),
              a = 0;
            t.dropFrames > 1 && (a = Math.floor(t.dropFrames), t.dropFrames = t.dropFrames % 1);
            for (var i = 0; i < t.animations.length;) null === t.animations[i].animationObject.currentStep && (t.animations[i].animationObject.currentStep = 0), t.animations[i].animationObject.currentStep += 1 + a, t.animations[i].animationObject.currentStep > t.animations[i].animationObject.numSteps && (t.animations[i].animationObject.currentStep = t.animations[i].animationObject.numSteps), t.animations[i].animationObject.render(t.animations[i].chartInstance, t.animations[i].animationObject), t.animations[i].animationObject.onAnimationProgress && t.animations[i].animationObject.onAnimationProgress.call && t.animations[i].animationObject.onAnimationProgress.call(t.animations[i].chartInstance, t.animations[i]), t.animations[i].animationObject.currentStep === t.animations[i].animationObject.numSteps ? (t.animations[i].animationObject.onAnimationComplete && t.animations[i].animationObject.onAnimationComplete.call && t.animations[i].animationObject.onAnimationComplete.call(t.animations[i].chartInstance, t.animations[i]), t.animations[i].chartInstance.animating = !1, t.animations.splice(i, 1)) : ++i;
            var n = Date.now(),
              o = (n - e) / t.frameDuration;
            t.dropFrames += o, t.animations.length > 0 && t.requestAnimationFrame();
          }
        };
      };
    }, {}],
    22: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.canvasHelpers = {};
        e.drawPoint = function (t, e, a, i, n) {
          var o, r, l, s, d, u;
          if ("object" == (0, _typeof2.default)(e) && (o = e.toString(), "[object HTMLImageElement]" === o || "[object HTMLCanvasElement]" === o)) return void t.drawImage(e, i - e.width / 2, n - e.height / 2);
          if (!(isNaN(a) || 0 >= a)) {
            switch (e) {
              default:
                t.beginPath(), t.arc(i, n, a, 0, 2 * Math.PI), t.closePath(), t.fill();
                break;
              case "triangle":
                t.beginPath(), r = 3 * a / Math.sqrt(3), d = r * Math.sqrt(3) / 2, t.moveTo(i - r / 2, n + d / 3), t.lineTo(i + r / 2, n + d / 3), t.lineTo(i, n - 2 * d / 3), t.closePath(), t.fill();
                break;
              case "rect":
                u = 1 / Math.SQRT2 * a, t.beginPath(), t.fillRect(i - u, n - u, 2 * u, 2 * u), t.strokeRect(i - u, n - u, 2 * u, 2 * u);
                break;
              case "rectRot":
                u = 1 / Math.SQRT2 * a, t.beginPath(), t.moveTo(i - u, n), t.lineTo(i, n + u), t.lineTo(i + u, n), t.lineTo(i, n - u), t.closePath(), t.fill();
                break;
              case "cross":
                t.beginPath(), t.moveTo(i, n + a), t.lineTo(i, n - a), t.moveTo(i - a, n), t.lineTo(i + a, n), t.closePath();
                break;
              case "crossRot":
                t.beginPath(), l = Math.cos(Math.PI / 4) * a, s = Math.sin(Math.PI / 4) * a, t.moveTo(i - l, n - s), t.lineTo(i + l, n + s), t.moveTo(i - l, n + s), t.lineTo(i + l, n - s), t.closePath();
                break;
              case "star":
                t.beginPath(), t.moveTo(i, n + a), t.lineTo(i, n - a), t.moveTo(i - a, n), t.lineTo(i + a, n), l = Math.cos(Math.PI / 4) * a, s = Math.sin(Math.PI / 4) * a, t.moveTo(i - l, n - s), t.lineTo(i + l, n + s), t.moveTo(i - l, n + s), t.lineTo(i + l, n - s), t.closePath();
                break;
              case "line":
                t.beginPath(), t.moveTo(i - a, n), t.lineTo(i + a, n), t.closePath();
                break;
              case "dash":
                t.beginPath(), t.moveTo(i, n), t.lineTo(i + a, n), t.closePath();
            }
            t.stroke();
          }
        };
      };
    }, {}],
    23: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t, e) {
          var a = r.getStyle(t, e),
            i = a && a.match(/(\d+)px/);
          return i ? Number(i[1]) : void 0;
        }
        function a(t, a) {
          var i = t.style,
            n = t.getAttribute("height"),
            o = t.getAttribute("width");
          if (t._chartjs = {
            initial: {
              height: n,
              width: o,
              style: {
                display: i.display,
                height: i.height,
                width: i.width
              }
            }
          }, i.display = i.display || "block", null === o || "" === o) {
            var r = e(t, "width");
            void 0 !== r && (t.width = r);
          }
          if (null === n || "" === n) if ("" === t.style.height) t.height = t.width / (a.options.aspectRatio || 2);else {
            var l = e(t, "height");
            void 0 !== r && (t.height = l);
          }
          return t;
        }
        function i(t) {
          if (t._chartjs) {
            var e = t._chartjs.initial;
            ["height", "width"].forEach(function (a) {
              var i = e[a];
              void 0 === i || null === i ? t.removeAttribute(a) : t.setAttribute(a, i);
            }), r.each(e.style || {}, function (e, a) {
              t.style[a] = e;
            }), t.width = t.width, delete t._chartjs;
          }
        }
        function n(t, e) {
          if ("string" == typeof t ? t = document.getElementById(t) : t.length && (t = t[0]), t && t.canvas && (t = t.canvas), t instanceof HTMLCanvasElement) {
            var i = t.getContext && t.getContext("2d");
            if (i instanceof CanvasRenderingContext2D) return a(t, e), i;
          }
          return null;
        }
        function o(e) {
          e = e || {};
          var a = e.data = e.data || {};
          return a.datasets = a.datasets || [], a.labels = a.labels || [], e.options = r.configMerge(t.defaults.global, t.defaults[e.type], e.options || {}), e;
        }
        var r = t.helpers;
        t.types = {}, t.instances = {}, t.controllers = {}, t.Controller = function (e, a, i) {
          var l = this;
          a = o(a);
          var s = n(e, a),
            d = s && s.canvas,
            u = d && d.height,
            c = d && d.width;
          return i.ctx = s, i.canvas = d, i.config = a, i.width = c, i.height = u, i.aspectRatio = u ? c / u : null, l.id = r.uid(), l.chart = i, l.config = a, l.options = a.options, l._bufferedRender = !1, t.instances[l.id] = l, Object.defineProperty(l, "data", {
            get: function get() {
              return l.config.data;
            }
          }), s && d ? (r.retinaScale(i), l.options.responsive && (r.addResizeListener(d.parentNode, function () {
            l.resize();
          }), l.resize(!0)), l.initialize(), l) : (console.error("Failed to create chart: can't acquire context from the given item"), l);
        }, r.extend(t.Controller.prototype, {
          initialize: function initialize() {
            var e = this;
            return t.plugins.notify("beforeInit", [e]), e.bindEvents(), e.ensureScalesHaveIDs(), e.buildOrUpdateControllers(), e.buildScales(), e.updateLayout(), e.resetElements(), e.initToolTip(), e.update(), t.plugins.notify("afterInit", [e]), e;
          },
          clear: function clear() {
            return r.clear(this.chart), this;
          },
          stop: function stop() {
            return t.animationService.cancelAnimation(this), this;
          },
          resize: function resize(e) {
            var a = this,
              i = a.chart,
              n = a.options,
              o = i.canvas,
              l = n.maintainAspectRatio && i.aspectRatio || null,
              s = Math.floor(r.getMaximumWidth(o)),
              d = Math.floor(l ? s / l : r.getMaximumHeight(o));
            if (i.width !== s || i.height !== d) {
              o.width = i.width = s, o.height = i.height = d, o.style.width = s + "px", o.style.height = d + "px", r.retinaScale(i);
              var u = {
                width: s,
                height: d
              };
              t.plugins.notify("resize", [a, u]), a.options.onResize && a.options.onResize(a, u), e || (a.stop(), a.update(a.options.responsiveAnimationDuration));
            }
          },
          ensureScalesHaveIDs: function ensureScalesHaveIDs() {
            var t = this.options,
              e = t.scales || {},
              a = t.scale;
            r.each(e.xAxes, function (t, e) {
              t.id = t.id || "x-axis-" + e;
            }), r.each(e.yAxes, function (t, e) {
              t.id = t.id || "y-axis-" + e;
            }), a && (a.id = a.id || "scale");
          },
          buildScales: function buildScales() {
            var e = this,
              a = e.options,
              i = e.scales = {},
              n = [];
            a.scales && (n = n.concat((a.scales.xAxes || []).map(function (t) {
              return {
                options: t,
                dtype: "category"
              };
            }), (a.scales.yAxes || []).map(function (t) {
              return {
                options: t,
                dtype: "linear"
              };
            }))), a.scale && n.push({
              options: a.scale,
              dtype: "radialLinear",
              isDefault: !0
            }), r.each(n, function (a) {
              var n = a.options,
                o = r.getValueOrDefault(n.type, a.dtype),
                l = t.scaleService.getScaleConstructor(o);
              if (l) {
                var s = new l({
                  id: n.id,
                  options: n,
                  ctx: e.chart.ctx,
                  chart: e
                });
                i[s.id] = s, a.isDefault && (e.scale = s);
              }
            }), t.scaleService.addScalesToLayout(this);
          },
          updateLayout: function updateLayout() {
            t.layoutService.update(this, this.chart.width, this.chart.height);
          },
          buildOrUpdateControllers: function buildOrUpdateControllers() {
            var e = this,
              a = [],
              i = [];
            if (r.each(e.data.datasets, function (n, o) {
              var r = e.getDatasetMeta(o);
              r.type || (r.type = n.type || e.config.type), a.push(r.type), r.controller ? r.controller.updateIndex(o) : (r.controller = new t.controllers[r.type](e, o), i.push(r.controller));
            }, e), a.length > 1) for (var n = 1; n < a.length; n++) if (a[n] !== a[n - 1]) {
              e.isCombo = !0;
              break;
            }
            return i;
          },
          resetElements: function resetElements() {
            var t = this;
            r.each(t.data.datasets, function (e, a) {
              t.getDatasetMeta(a).controller.reset();
            }, t);
          },
          reset: function reset() {
            this.resetElements(), this.tooltip.initialize();
          },
          update: function update(e, a) {
            var i = this;
            t.plugins.notify("beforeUpdate", [i]), i.tooltip._data = i.data;
            var n = i.buildOrUpdateControllers();
            r.each(i.data.datasets, function (t, e) {
              i.getDatasetMeta(e).controller.buildOrUpdateElements();
            }, i), t.layoutService.update(i, i.chart.width, i.chart.height), t.plugins.notify("afterScaleUpdate", [i]), r.each(n, function (t) {
              t.reset();
            }), i.updateDatasets(), t.plugins.notify("afterUpdate", [i]), i._bufferedRender ? i._bufferedRequest = {
              lazy: a,
              duration: e
            } : i.render(e, a);
          },
          updateDatasets: function updateDatasets() {
            var e,
              a,
              i = this;
            if (t.plugins.notify("beforeDatasetsUpdate", [i])) {
              for (e = 0, a = i.data.datasets.length; a > e; ++e) i.getDatasetMeta(e).controller.update();
              t.plugins.notify("afterDatasetsUpdate", [i]);
            }
          },
          render: function render(e, a) {
            var i = this;
            t.plugins.notify("beforeRender", [i]);
            var n = i.options.animation;
            if (n && ("undefined" != typeof e && 0 !== e || "undefined" == typeof e && 0 !== n.duration)) {
              var o = new t.Animation();
              o.numSteps = (e || n.duration) / 16.66, o.easing = n.easing, o.render = function (t, e) {
                var a = r.easingEffects[e.easing],
                  i = e.currentStep / e.numSteps,
                  n = a(i);
                t.draw(n, i, e.currentStep);
              }, o.onAnimationProgress = n.onProgress, o.onAnimationComplete = n.onComplete, t.animationService.addAnimation(i, o, e, a);
            } else i.draw(), n && n.onComplete && n.onComplete.call && n.onComplete.call(i);
            return i;
          },
          draw: function draw(e) {
            var a = this,
              i = e || 1;
            a.clear(), t.plugins.notify("beforeDraw", [a, i]), r.each(a.boxes, function (t) {
              t.draw(a.chartArea);
            }, a), a.scale && a.scale.draw(), t.plugins.notify("beforeDatasetsDraw", [a, i]), r.each(a.data.datasets, function (t, i) {
              a.isDatasetVisible(i) && a.getDatasetMeta(i).controller.draw(e);
            }, a, !0), t.plugins.notify("afterDatasetsDraw", [a, i]), a.tooltip.transition(i).draw(), t.plugins.notify("afterDraw", [a, i]);
          },
          getElementAtEvent: function getElementAtEvent(e) {
            return t.Interaction.modes.single(this, e);
          },
          getElementsAtEvent: function getElementsAtEvent(e) {
            return t.Interaction.modes.label(this, e, {
              intersect: !0
            });
          },
          getElementsAtXAxis: function getElementsAtXAxis(e) {
            return t.Interaction.modes["x-axis"](this, e, {
              intersect: !0
            });
          },
          getElementsAtEventForMode: function getElementsAtEventForMode(e, a, i) {
            var n = t.Interaction.modes[a];
            return "function" == typeof n ? n(this, e, i) : [];
          },
          getDatasetAtEvent: function getDatasetAtEvent(e) {
            return t.Interaction.modes.dataset(this, e);
          },
          getDatasetMeta: function getDatasetMeta(t) {
            var e = this,
              a = e.data.datasets[t];
            a._meta || (a._meta = {});
            var i = a._meta[e.id];
            return i || (i = a._meta[e.id] = {
              type: null,
              data: [],
              dataset: null,
              controller: null,
              hidden: null,
              xAxisID: null,
              yAxisID: null
            }), i;
          },
          getVisibleDatasetCount: function getVisibleDatasetCount() {
            for (var t = 0, e = 0, a = this.data.datasets.length; a > e; ++e) this.isDatasetVisible(e) && t++;
            return t;
          },
          isDatasetVisible: function isDatasetVisible(t) {
            var e = this.getDatasetMeta(t);
            return "boolean" == typeof e.hidden ? !e.hidden : !this.data.datasets[t].hidden;
          },
          generateLegend: function generateLegend() {
            return this.options.legendCallback(this);
          },
          destroy: function destroy() {
            var e,
              a,
              n,
              o = this,
              l = o.chart.canvas;
            for (o.stop(), a = 0, n = o.data.datasets.length; n > a; ++a) e = o.getDatasetMeta(a), e.controller && (e.controller.destroy(), e.controller = null);
            l && (r.unbindEvents(o, o.events), r.removeResizeListener(l.parentNode), r.clear(o.chart), i(l), o.chart.canvas = null, o.chart.ctx = null), t.plugins.notify("destroy", [o]), delete t.instances[o.id];
          },
          toBase64Image: function toBase64Image() {
            return this.chart.canvas.toDataURL.apply(this.chart.canvas, arguments);
          },
          initToolTip: function initToolTip() {
            var e = this;
            e.tooltip = new t.Tooltip({
              _chart: e.chart,
              _chartInstance: e,
              _data: e.data,
              _options: e.options.tooltips
            }, e), e.tooltip.initialize();
          },
          bindEvents: function bindEvents() {
            var t = this;
            r.bindEvents(t, t.options.events, function (e) {
              t.eventHandler(e);
            });
          },
          updateHoverStyle: function updateHoverStyle(t, e, a) {
            var i,
              n,
              o,
              r = a ? "setHoverStyle" : "removeHoverStyle";
            for (n = 0, o = t.length; o > n; ++n) i = t[n], i && this.getDatasetMeta(i._datasetIndex).controller[r](i);
          },
          eventHandler: function eventHandler(t) {
            var e = this,
              a = e.legend,
              i = e.tooltip,
              n = e.options.hover;
            e._bufferedRender = !0, e._bufferedRequest = null;
            var o = e.handleEvent(t);
            o |= a && a.handleEvent(t), o |= i && i.handleEvent(t);
            var r = e._bufferedRequest;
            return r ? e.render(r.duration, r.lazy) : o && !e.animating && (e.stop(), e.render(n.animationDuration, !0)), e._bufferedRender = !1, e._bufferedRequest = null, e;
          },
          handleEvent: function handleEvent(t) {
            var e = this,
              a = e.options || {},
              i = a.hover,
              n = !1;
            return e.lastActive = e.lastActive || [], "mouseout" === t.type ? e.active = [] : e.active = e.getElementsAtEventForMode(t, i.mode, i), i.onHover && i.onHover.call(e, e.active), ("mouseup" === t.type || "click" === t.type) && a.onClick && a.onClick.call(e, t, e.active), e.lastActive.length && e.updateHoverStyle(e.lastActive, i.mode, !1), e.active.length && i.mode && e.updateHoverStyle(e.active, i.mode, !0), n = !r.arrayEquals(e.active, e.lastActive), e.lastActive = e.active, n;
          }
        });
      };
    }, {}],
    24: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t, e) {
          return t._chartjs ? void t._chartjs.listeners.push(e) : (Object.defineProperty(t, "_chartjs", {
            configurable: !0,
            enumerable: !1,
            value: {
              listeners: [e]
            }
          }), void n.forEach(function (e) {
            var a = "onData" + e.charAt(0).toUpperCase() + e.slice(1),
              n = t[e];
            Object.defineProperty(t, e, {
              configurable: !0,
              enumerable: !1,
              value: function value() {
                var e = Array.prototype.slice.call(arguments),
                  o = n.apply(this, e);
                return i.each(t._chartjs.listeners, function (t) {
                  "function" == typeof t[a] && t[a].apply(t, e);
                }), o;
              }
            });
          }));
        }
        function a(t, e) {
          var a = t._chartjs;
          if (a) {
            var i = a.listeners,
              o = i.indexOf(e);
            -1 !== o && i.splice(o, 1), i.length > 0 || (n.forEach(function (e) {
              delete t[e];
            }), delete t._chartjs);
          }
        }
        var i = t.helpers,
          n = ["push", "pop", "shift", "splice", "unshift"];
        t.DatasetController = function (t, e) {
          this.initialize(t, e);
        }, i.extend(t.DatasetController.prototype, {
          datasetElementType: null,
          dataElementType: null,
          initialize: function initialize(t, e) {
            var a = this;
            a.chart = t, a.index = e, a.linkScales(), a.addElements();
          },
          updateIndex: function updateIndex(t) {
            this.index = t;
          },
          linkScales: function linkScales() {
            var t = this,
              e = t.getMeta(),
              a = t.getDataset();
            null === e.xAxisID && (e.xAxisID = a.xAxisID || t.chart.options.scales.xAxes[0].id), null === e.yAxisID && (e.yAxisID = a.yAxisID || t.chart.options.scales.yAxes[0].id);
          },
          getDataset: function getDataset() {
            return this.chart.data.datasets[this.index];
          },
          getMeta: function getMeta() {
            return this.chart.getDatasetMeta(this.index);
          },
          getScaleForId: function getScaleForId(t) {
            return this.chart.scales[t];
          },
          reset: function reset() {
            this.update(!0);
          },
          destroy: function destroy() {
            this._data && a(this._data, this);
          },
          createMetaDataset: function createMetaDataset() {
            var t = this,
              e = t.datasetElementType;
            return e && new e({
              _chart: t.chart.chart,
              _datasetIndex: t.index
            });
          },
          createMetaData: function createMetaData(t) {
            var e = this,
              a = e.dataElementType;
            return a && new a({
              _chart: e.chart.chart,
              _datasetIndex: e.index,
              _index: t
            });
          },
          addElements: function addElements() {
            var t,
              e,
              a = this,
              i = a.getMeta(),
              n = a.getDataset().data || [],
              o = i.data;
            for (t = 0, e = n.length; e > t; ++t) o[t] = o[t] || a.createMetaData(t);
            i.dataset = i.dataset || a.createMetaDataset();
          },
          addElementAndReset: function addElementAndReset(t) {
            var e = this.createMetaData(t);
            this.getMeta().data.splice(t, 0, e), this.updateElement(e, t, !0);
          },
          buildOrUpdateElements: function buildOrUpdateElements() {
            var t = this,
              i = t.getDataset(),
              n = i.data || (i.data = []);
            t._data !== n && (t._data && a(t._data, t), e(n, t), t._data = n), t.resyncElements();
          },
          update: i.noop,
          draw: function draw(t) {
            var e,
              a,
              i = t || 1,
              n = this.getMeta().data;
            for (e = 0, a = n.length; a > e; ++e) n[e].transition(i).draw();
          },
          removeHoverStyle: function removeHoverStyle(t, e) {
            var a = this.chart.data.datasets[t._datasetIndex],
              n = t._index,
              o = t.custom || {},
              r = i.getValueAtIndexOrDefault,
              l = t._model;
            l.backgroundColor = o.backgroundColor ? o.backgroundColor : r(a.backgroundColor, n, e.backgroundColor), l.borderColor = o.borderColor ? o.borderColor : r(a.borderColor, n, e.borderColor), l.borderWidth = o.borderWidth ? o.borderWidth : r(a.borderWidth, n, e.borderWidth);
          },
          setHoverStyle: function setHoverStyle(t) {
            var e = this.chart.data.datasets[t._datasetIndex],
              a = t._index,
              n = t.custom || {},
              o = i.getValueAtIndexOrDefault,
              r = i.getHoverColor,
              l = t._model;
            l.backgroundColor = n.hoverBackgroundColor ? n.hoverBackgroundColor : o(e.hoverBackgroundColor, a, r(l.backgroundColor)), l.borderColor = n.hoverBorderColor ? n.hoverBorderColor : o(e.hoverBorderColor, a, r(l.borderColor)), l.borderWidth = n.hoverBorderWidth ? n.hoverBorderWidth : o(e.hoverBorderWidth, a, l.borderWidth);
          },
          resyncElements: function resyncElements() {
            var t = this,
              e = t.getMeta(),
              a = t.getDataset().data,
              i = e.data.length,
              n = a.length;
            i > n ? e.data.splice(n, i - n) : n > i && t.insertElements(i, n - i);
          },
          insertElements: function insertElements(t, e) {
            for (var a = 0; e > a; ++a) this.addElementAndReset(t + a);
          },
          onDataPush: function onDataPush() {
            this.insertElements(this.getDataset().data.length - 1, arguments.length);
          },
          onDataPop: function onDataPop() {
            this.getMeta().data.pop();
          },
          onDataShift: function onDataShift() {
            this.getMeta().data.shift();
          },
          onDataSplice: function onDataSplice(t, e) {
            this.getMeta().data.splice(t, e), this.insertElements(t, arguments.length - 2);
          },
          onDataUnshift: function onDataUnshift() {
            this.insertElements(0, arguments.length);
          }
        }), t.DatasetController.extend = i.inherits;
      };
    }, {}],
    25: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.elements = {}, t.Element = function (t) {
          e.extend(this, t), this.initialize.apply(this, arguments);
        }, e.extend(t.Element.prototype, {
          initialize: function initialize() {
            this.hidden = !1;
          },
          pivot: function pivot() {
            var t = this;
            return t._view || (t._view = e.clone(t._model)), t._start = e.clone(t._view), t;
          },
          transition: function transition(t) {
            var a = this;
            return a._view || (a._view = e.clone(a._model)), 1 === t ? (a._view = a._model, a._start = null, a) : (a._start || a.pivot(), e.each(a._model, function (i, n) {
              if ("_" === n[0]) ;else if (a._view.hasOwnProperty(n)) {
                if (i === a._view[n]) ;else if ("string" == typeof i) try {
                  var o = e.color(a._model[n]).mix(e.color(a._start[n]), t);
                  a._view[n] = o.rgbString();
                } catch (r) {
                  a._view[n] = i;
                } else if ("number" == typeof i) {
                  var l = void 0 !== a._start[n] && isNaN(a._start[n]) === !1 ? a._start[n] : 0;
                  a._view[n] = (a._model[n] - l) * t + l;
                } else a._view[n] = i;
              } else "number" != typeof i || isNaN(a._view[n]) ? a._view[n] = i : a._view[n] = i * t;
            }, a), a);
          },
          tooltipPosition: function tooltipPosition() {
            return {
              x: this._model.x,
              y: this._model.y
            };
          },
          hasValue: function hasValue() {
            return e.isNumber(this._model.x) && e.isNumber(this._model.y);
          }
        }), t.Element.extend = e.inherits;
      };
    }, {}],
    26: [function (t, e, a) {
      "use strict";

      var i = t(3);
      e.exports = function (t) {
        function e(t, e, a) {
          var i;
          return "string" == typeof t ? (i = parseInt(t, 10), -1 !== t.indexOf("%") && (i = i / 100 * e.parentNode[a])) : i = t, i;
        }
        function a(t) {
          return void 0 !== t && null !== t && "none" !== t;
        }
        function n(t, i, n) {
          var o = document.defaultView,
            r = t.parentNode,
            l = o.getComputedStyle(t)[i],
            s = o.getComputedStyle(r)[i],
            d = a(l),
            u = a(s),
            c = Number.POSITIVE_INFINITY;
          return d || u ? Math.min(d ? e(l, t, n) : c, u ? e(s, r, n) : c) : "none";
        }
        var o = t.helpers = {};
        o.each = function (t, e, a, i) {
          var n, r;
          if (o.isArray(t)) {
            if (r = t.length, i) for (n = r - 1; n >= 0; n--) e.call(a, t[n], n);else for (n = 0; r > n; n++) e.call(a, t[n], n);
          } else if ("object" == (0, _typeof2.default)(t)) {
            var l = Object.keys(t);
            for (r = l.length, n = 0; r > n; n++) e.call(a, t[l[n]], l[n]);
          }
        }, o.clone = function (t) {
          var e = {};
          return o.each(t, function (t, a) {
            o.isArray(t) ? e[a] = t.slice(0) : "object" == (0, _typeof2.default)(t) && null !== t ? e[a] = o.clone(t) : e[a] = t;
          }), e;
        }, o.extend = function (t) {
          for (var e = function e(_e, a) {
              t[a] = _e;
            }, a = 1, i = arguments.length; i > a; a++) o.each(arguments[a], e);
          return t;
        }, o.configMerge = function (e) {
          var a = o.clone(e);
          return o.each(Array.prototype.slice.call(arguments, 1), function (e) {
            o.each(e, function (e, i) {
              var n = a.hasOwnProperty(i),
                r = n ? a[i] : {};
              "scales" === i ? a[i] = o.scaleMerge(r, e) : "scale" === i ? a[i] = o.configMerge(r, t.scaleService.getScaleDefaults(e.type), e) : !n || "object" != (0, _typeof2.default)(r) || o.isArray(r) || null === r || "object" != (0, _typeof2.default)(e) || o.isArray(e) ? a[i] = e : a[i] = o.configMerge(r, e);
            });
          }), a;
        }, o.scaleMerge = function (e, a) {
          var i = o.clone(e);
          return o.each(a, function (e, a) {
            "xAxes" === a || "yAxes" === a ? i.hasOwnProperty(a) ? o.each(e, function (e, n) {
              var r = o.getValueOrDefault(e.type, "xAxes" === a ? "category" : "linear"),
                l = t.scaleService.getScaleDefaults(r);
              n >= i[a].length || !i[a][n].type ? i[a].push(o.configMerge(l, e)) : e.type && e.type !== i[a][n].type ? i[a][n] = o.configMerge(i[a][n], l, e) : i[a][n] = o.configMerge(i[a][n], e);
            }) : (i[a] = [], o.each(e, function (e) {
              var n = o.getValueOrDefault(e.type, "xAxes" === a ? "category" : "linear");
              i[a].push(o.configMerge(t.scaleService.getScaleDefaults(n), e));
            })) : i.hasOwnProperty(a) && "object" == (0, _typeof2.default)(i[a]) && null !== i[a] && "object" == (0, _typeof2.default)(e) ? i[a] = o.configMerge(i[a], e) : i[a] = e;
          }), i;
        }, o.getValueAtIndexOrDefault = function (t, e, a) {
          return void 0 === t || null === t ? a : o.isArray(t) ? e < t.length ? t[e] : a : t;
        }, o.getValueOrDefault = function (t, e) {
          return void 0 === t ? e : t;
        }, o.indexOf = Array.prototype.indexOf ? function (t, e) {
          return t.indexOf(e);
        } : function (t, e) {
          for (var a = 0, i = t.length; i > a; ++a) if (t[a] === e) return a;
          return -1;
        }, o.where = function (t, e) {
          if (o.isArray(t) && Array.prototype.filter) return t.filter(e);
          var a = [];
          return o.each(t, function (t) {
            e(t) && a.push(t);
          }), a;
        }, o.findIndex = Array.prototype.findIndex ? function (t, e, a) {
          return t.findIndex(e, a);
        } : function (t, e, a) {
          a = void 0 === a ? t : a;
          for (var i = 0, n = t.length; n > i; ++i) if (e.call(a, t[i], i, t)) return i;
          return -1;
        }, o.findNextWhere = function (t, e, a) {
          (void 0 === a || null === a) && (a = -1);
          for (var i = a + 1; i < t.length; i++) {
            var n = t[i];
            if (e(n)) return n;
          }
        }, o.findPreviousWhere = function (t, e, a) {
          (void 0 === a || null === a) && (a = t.length);
          for (var i = a - 1; i >= 0; i--) {
            var n = t[i];
            if (e(n)) return n;
          }
        }, o.inherits = function (t) {
          var e = this,
            a = t && t.hasOwnProperty("constructor") ? t.constructor : function () {
              return e.apply(this, arguments);
            },
            i = function i() {
              this.constructor = a;
            };
          return i.prototype = e.prototype, a.prototype = new i(), a.extend = o.inherits, t && o.extend(a.prototype, t), a.__super__ = e.prototype, a;
        }, o.noop = function () {}, o.uid = function () {
          var t = 0;
          return function () {
            return t++;
          };
        }(), o.isNumber = function (t) {
          return !isNaN(parseFloat(t)) && isFinite(t);
        }, o.almostEquals = function (t, e, a) {
          return Math.abs(t - e) < a;
        }, o.max = function (t) {
          return t.reduce(function (t, e) {
            return isNaN(e) ? t : Math.max(t, e);
          }, Number.NEGATIVE_INFINITY);
        }, o.min = function (t) {
          return t.reduce(function (t, e) {
            return isNaN(e) ? t : Math.min(t, e);
          }, Number.POSITIVE_INFINITY);
        }, o.sign = Math.sign ? function (t) {
          return Math.sign(t);
        } : function (t) {
          return t = +t, 0 === t || isNaN(t) ? t : t > 0 ? 1 : -1;
        }, o.log10 = Math.log10 ? function (t) {
          return Math.log10(t);
        } : function (t) {
          return Math.log(t) / Math.LN10;
        }, o.toRadians = function (t) {
          return t * (Math.PI / 180);
        }, o.toDegrees = function (t) {
          return t * (180 / Math.PI);
        }, o.getAngleFromPoint = function (t, e) {
          var a = e.x - t.x,
            i = e.y - t.y,
            n = Math.sqrt(a * a + i * i),
            o = Math.atan2(i, a);
          return o < -.5 * Math.PI && (o += 2 * Math.PI), {
            angle: o,
            distance: n
          };
        }, o.distanceBetweenPoints = function (t, e) {
          return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
        }, o.aliasPixel = function (t) {
          return t % 2 === 0 ? 0 : .5;
        }, o.splineCurve = function (t, e, a, i) {
          var n = t.skip ? e : t,
            o = e,
            r = a.skip ? e : a,
            l = Math.sqrt(Math.pow(o.x - n.x, 2) + Math.pow(o.y - n.y, 2)),
            s = Math.sqrt(Math.pow(r.x - o.x, 2) + Math.pow(r.y - o.y, 2)),
            d = l / (l + s),
            u = s / (l + s);
          d = isNaN(d) ? 0 : d, u = isNaN(u) ? 0 : u;
          var c = i * d,
            h = i * u;
          return {
            previous: {
              x: o.x - c * (r.x - n.x),
              y: o.y - c * (r.y - n.y)
            },
            next: {
              x: o.x + h * (r.x - n.x),
              y: o.y + h * (r.y - n.y)
            }
          };
        }, o.EPSILON = Number.EPSILON || 1e-14, o.splineCurveMonotone = function (t) {
          var e,
            a,
            i,
            n,
            r = (t || []).map(function (t) {
              return {
                model: t._model,
                deltaK: 0,
                mK: 0
              };
            }),
            l = r.length;
          for (e = 0; l > e; ++e) i = r[e], i.model.skip || (a = e > 0 ? r[e - 1] : null, n = l - 1 > e ? r[e + 1] : null, n && !n.model.skip && (i.deltaK = (n.model.y - i.model.y) / (n.model.x - i.model.x)), !a || a.model.skip ? i.mK = i.deltaK : !n || n.model.skip ? i.mK = a.deltaK : this.sign(a.deltaK) !== this.sign(i.deltaK) ? i.mK = 0 : i.mK = (a.deltaK + i.deltaK) / 2);
          var s, d, u, c;
          for (e = 0; l - 1 > e; ++e) i = r[e], n = r[e + 1], i.model.skip || n.model.skip || (o.almostEquals(i.deltaK, 0, this.EPSILON) ? i.mK = n.mK = 0 : (s = i.mK / i.deltaK, d = n.mK / i.deltaK, c = Math.pow(s, 2) + Math.pow(d, 2), 9 >= c || (u = 3 / Math.sqrt(c), i.mK = s * u * i.deltaK, n.mK = d * u * i.deltaK)));
          var h;
          for (e = 0; l > e; ++e) i = r[e], i.model.skip || (a = e > 0 ? r[e - 1] : null, n = l - 1 > e ? r[e + 1] : null, a && !a.model.skip && (h = (i.model.x - a.model.x) / 3, i.model.controlPointPreviousX = i.model.x - h, i.model.controlPointPreviousY = i.model.y - h * i.mK), n && !n.model.skip && (h = (n.model.x - i.model.x) / 3, i.model.controlPointNextX = i.model.x + h, i.model.controlPointNextY = i.model.y + h * i.mK));
        }, o.nextItem = function (t, e, a) {
          return a ? e >= t.length - 1 ? t[0] : t[e + 1] : e >= t.length - 1 ? t[t.length - 1] : t[e + 1];
        }, o.previousItem = function (t, e, a) {
          return a ? 0 >= e ? t[t.length - 1] : t[e - 1] : 0 >= e ? t[0] : t[e - 1];
        }, o.niceNum = function (t, e) {
          var a,
            i = Math.floor(o.log10(t)),
            n = t / Math.pow(10, i);
          return a = e ? 1.5 > n ? 1 : 3 > n ? 2 : 7 > n ? 5 : 10 : 1 >= n ? 1 : 2 >= n ? 2 : 5 >= n ? 5 : 10, a * Math.pow(10, i);
        };
        var r = o.easingEffects = {
          linear: function linear(t) {
            return t;
          },
          easeInQuad: function easeInQuad(t) {
            return t * t;
          },
          easeOutQuad: function easeOutQuad(t) {
            return -1 * t * (t - 2);
          },
          easeInOutQuad: function easeInOutQuad(t) {
            return (t /= .5) < 1 ? .5 * t * t : -0.5 * (--t * (t - 2) - 1);
          },
          easeInCubic: function easeInCubic(t) {
            return t * t * t;
          },
          easeOutCubic: function easeOutCubic(t) {
            return 1 * ((t = t / 1 - 1) * t * t + 1);
          },
          easeInOutCubic: function easeInOutCubic(t) {
            return (t /= .5) < 1 ? .5 * t * t * t : .5 * ((t -= 2) * t * t + 2);
          },
          easeInQuart: function easeInQuart(t) {
            return t * t * t * t;
          },
          easeOutQuart: function easeOutQuart(t) {
            return -1 * ((t = t / 1 - 1) * t * t * t - 1);
          },
          easeInOutQuart: function easeInOutQuart(t) {
            return (t /= .5) < 1 ? .5 * t * t * t * t : -0.5 * ((t -= 2) * t * t * t - 2);
          },
          easeInQuint: function easeInQuint(t) {
            return 1 * (t /= 1) * t * t * t * t;
          },
          easeOutQuint: function easeOutQuint(t) {
            return 1 * ((t = t / 1 - 1) * t * t * t * t + 1);
          },
          easeInOutQuint: function easeInOutQuint(t) {
            return (t /= .5) < 1 ? .5 * t * t * t * t * t : .5 * ((t -= 2) * t * t * t * t + 2);
          },
          easeInSine: function easeInSine(t) {
            return -1 * Math.cos(t / 1 * (Math.PI / 2)) + 1;
          },
          easeOutSine: function easeOutSine(t) {
            return 1 * Math.sin(t / 1 * (Math.PI / 2));
          },
          easeInOutSine: function easeInOutSine(t) {
            return -0.5 * (Math.cos(Math.PI * t / 1) - 1);
          },
          easeInExpo: function easeInExpo(t) {
            return 0 === t ? 1 : 1 * Math.pow(2, 10 * (t / 1 - 1));
          },
          easeOutExpo: function easeOutExpo(t) {
            return 1 === t ? 1 : 1 * (-Math.pow(2, -10 * t / 1) + 1);
          },
          easeInOutExpo: function easeInOutExpo(t) {
            return 0 === t ? 0 : 1 === t ? 1 : (t /= .5) < 1 ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (-Math.pow(2, -10 * --t) + 2);
          },
          easeInCirc: function easeInCirc(t) {
            return t >= 1 ? t : -1 * (Math.sqrt(1 - (t /= 1) * t) - 1);
          },
          easeOutCirc: function easeOutCirc(t) {
            return 1 * Math.sqrt(1 - (t = t / 1 - 1) * t);
          },
          easeInOutCirc: function easeInOutCirc(t) {
            return (t /= .5) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
          },
          easeInElastic: function easeInElastic(t) {
            var e = 1.70158,
              a = 0,
              i = 1;
            return 0 === t ? 0 : 1 === (t /= 1) ? 1 : (a || (a = .3), i < Math.abs(1) ? (i = 1, e = a / 4) : e = a / (2 * Math.PI) * Math.asin(1 / i), -(i * Math.pow(2, 10 * (t -= 1)) * Math.sin((1 * t - e) * (2 * Math.PI) / a)));
          },
          easeOutElastic: function easeOutElastic(t) {
            var e = 1.70158,
              a = 0,
              i = 1;
            return 0 === t ? 0 : 1 === (t /= 1) ? 1 : (a || (a = .3), i < Math.abs(1) ? (i = 1, e = a / 4) : e = a / (2 * Math.PI) * Math.asin(1 / i), i * Math.pow(2, -10 * t) * Math.sin((1 * t - e) * (2 * Math.PI) / a) + 1);
          },
          easeInOutElastic: function easeInOutElastic(t) {
            var e = 1.70158,
              a = 0,
              i = 1;
            return 0 === t ? 0 : 2 === (t /= .5) ? 1 : (a || (a = 1 * (.3 * 1.5)), i < Math.abs(1) ? (i = 1, e = a / 4) : e = a / (2 * Math.PI) * Math.asin(1 / i), 1 > t ? -.5 * (i * Math.pow(2, 10 * (t -= 1)) * Math.sin((1 * t - e) * (2 * Math.PI) / a)) : i * Math.pow(2, -10 * (t -= 1)) * Math.sin((1 * t - e) * (2 * Math.PI) / a) * .5 + 1);
          },
          easeInBack: function easeInBack(t) {
            var e = 1.70158;
            return 1 * (t /= 1) * t * ((e + 1) * t - e);
          },
          easeOutBack: function easeOutBack(t) {
            var e = 1.70158;
            return 1 * ((t = t / 1 - 1) * t * ((e + 1) * t + e) + 1);
          },
          easeInOutBack: function easeInOutBack(t) {
            var e = 1.70158;
            return (t /= .5) < 1 ? .5 * (t * t * (((e *= 1.525) + 1) * t - e)) : .5 * ((t -= 2) * t * (((e *= 1.525) + 1) * t + e) + 2);
          },
          easeInBounce: function easeInBounce(t) {
            return 1 - r.easeOutBounce(1 - t);
          },
          easeOutBounce: function easeOutBounce(t) {
            return (t /= 1) < 1 / 2.75 ? 1 * (7.5625 * t * t) : 2 / 2.75 > t ? 1 * (7.5625 * (t -= 1.5 / 2.75) * t + .75) : 2.5 / 2.75 > t ? 1 * (7.5625 * (t -= 2.25 / 2.75) * t + .9375) : 1 * (7.5625 * (t -= 2.625 / 2.75) * t + .984375);
          },
          easeInOutBounce: function easeInOutBounce(t) {
            return .5 > t ? .5 * r.easeInBounce(2 * t) : .5 * r.easeOutBounce(2 * t - 1) + .5;
          }
        };
        o.requestAnimFrame = function () {
          return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (t) {
            return window.setTimeout(t, 1e3 / 60);
          };
        }(), o.cancelAnimFrame = function () {
          return window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame || function (t) {
            return window.clearTimeout(t, 1e3 / 60);
          };
        }(), o.getRelativePosition = function (t, e) {
          var a,
            i,
            n = t.originalEvent || t,
            r = t.currentTarget || t.srcElement,
            l = r.getBoundingClientRect(),
            s = n.touches;
          s && s.length > 0 ? (a = s[0].clientX, i = s[0].clientY) : (a = n.clientX, i = n.clientY);
          var d = parseFloat(o.getStyle(r, "padding-left")),
            u = parseFloat(o.getStyle(r, "padding-top")),
            c = parseFloat(o.getStyle(r, "padding-right")),
            h = parseFloat(o.getStyle(r, "padding-bottom")),
            f = l.right - l.left - d - c,
            g = l.bottom - l.top - u - h;
          return a = Math.round((a - l.left - d) / f * r.width / e.currentDevicePixelRatio), i = Math.round((i - l.top - u) / g * r.height / e.currentDevicePixelRatio), {
            x: a,
            y: i
          };
        }, o.addEvent = function (t, e, a) {
          t.addEventListener ? t.addEventListener(e, a) : t.attachEvent ? t.attachEvent("on" + e, a) : t["on" + e] = a;
        }, o.removeEvent = function (t, e, a) {
          t.removeEventListener ? t.removeEventListener(e, a, !1) : t.detachEvent ? t.detachEvent("on" + e, a) : t["on" + e] = o.noop;
        }, o.bindEvents = function (t, e, a) {
          var i = t.events = t.events || {};
          o.each(e, function (e) {
            i[e] = function () {
              a.apply(t, arguments);
            }, o.addEvent(t.chart.canvas, e, i[e]);
          });
        }, o.unbindEvents = function (t, e) {
          var a = t.chart.canvas;
          o.each(e, function (t, e) {
            o.removeEvent(a, e, t);
          });
        }, o.getConstraintWidth = function (t) {
          return n(t, "max-width", "clientWidth");
        }, o.getConstraintHeight = function (t) {
          return n(t, "max-height", "clientHeight");
        }, o.getMaximumWidth = function (t) {
          var e = t.parentNode,
            a = parseInt(o.getStyle(e, "padding-left"), 10),
            i = parseInt(o.getStyle(e, "padding-right"), 10),
            n = e.clientWidth - a - i,
            r = o.getConstraintWidth(t);
          return isNaN(r) ? n : Math.min(n, r);
        }, o.getMaximumHeight = function (t) {
          var e = t.parentNode,
            a = parseInt(o.getStyle(e, "padding-top"), 10),
            i = parseInt(o.getStyle(e, "padding-bottom"), 10),
            n = e.clientHeight - a - i,
            r = o.getConstraintHeight(t);
          return isNaN(r) ? n : Math.min(n, r);
        }, o.getStyle = function (t, e) {
          return t.currentStyle ? t.currentStyle[e] : document.defaultView.getComputedStyle(t, null).getPropertyValue(e);
        }, o.retinaScale = function (t) {
          var e = t.currentDevicePixelRatio = window.devicePixelRatio || 1;
          if (1 !== e) {
            var a = t.canvas,
              i = t.height,
              n = t.width;
            a.height = i * e, a.width = n * e, t.ctx.scale(e, e), a.style.height = i + "px", a.style.width = n + "px";
          }
        }, o.clear = function (t) {
          t.ctx.clearRect(0, 0, t.width, t.height);
        }, o.fontString = function (t, e, a) {
          return e + " " + t + "px " + a;
        }, o.longestText = function (t, e, a, i) {
          i = i || {};
          var n = i.data = i.data || {},
            r = i.garbageCollect = i.garbageCollect || [];
          i.font !== e && (n = i.data = {}, r = i.garbageCollect = [], i.font = e), t.font = e;
          var l = 0;
          o.each(a, function (e) {
            void 0 !== e && null !== e && o.isArray(e) !== !0 ? l = o.measureText(t, n, r, l, e) : o.isArray(e) && o.each(e, function (e) {
              void 0 === e || null === e || o.isArray(e) || (l = o.measureText(t, n, r, l, e));
            });
          });
          var s = r.length / 2;
          if (s > a.length) {
            for (var d = 0; s > d; d++) delete n[r[d]];
            r.splice(0, s);
          }
          return l;
        }, o.measureText = function (t, e, a, i, n) {
          var o = e[n];
          return o || (o = e[n] = t.measureText(n).width, a.push(n)), o > i && (i = o), i;
        }, o.numberOfLabelLines = function (t) {
          var e = 1;
          return o.each(t, function (t) {
            o.isArray(t) && t.length > e && (e = t.length);
          }), e;
        }, o.drawRoundedRectangle = function (t, e, a, i, n, o) {
          t.beginPath(), t.moveTo(e + o, a), t.lineTo(e + i - o, a), t.quadraticCurveTo(e + i, a, e + i, a + o), t.lineTo(e + i, a + n - o), t.quadraticCurveTo(e + i, a + n, e + i - o, a + n), t.lineTo(e + o, a + n), t.quadraticCurveTo(e, a + n, e, a + n - o), t.lineTo(e, a + o), t.quadraticCurveTo(e, a, e + o, a), t.closePath();
        }, o.color = function (e) {
          return i ? i(e instanceof CanvasGradient ? t.defaults.global.defaultColor : e) : (console.error("Color.js not found!"), e);
        }, o.addResizeListener = function (t, e) {
          var a = document.createElement("iframe");
          a.className = "chartjs-hidden-iframe", a.style.cssText = "display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;", a.tabIndex = -1;
          var i = t._chartjs = {
              resizer: a,
              ticking: !1
            },
            n = function n() {
              i.ticking || (i.ticking = !0, o.requestAnimFrame.call(window, function () {
                return i.resizer ? (i.ticking = !1, e()) : void 0;
              }));
            };
          o.addEvent(a, "load", function () {
            o.addEvent(a.contentWindow || a, "resize", n), n();
          }), t.insertBefore(a, t.firstChild);
        }, o.removeResizeListener = function (t) {
          if (t && t._chartjs) {
            var e = t._chartjs.resizer;
            e && (e.parentNode.removeChild(e), t._chartjs.resizer = null), delete t._chartjs;
          }
        }, o.isArray = Array.isArray ? function (t) {
          return Array.isArray(t);
        } : function (t) {
          return "[object Array]" === Object.prototype.toString.call(t);
        }, o.arrayEquals = function (t, e) {
          var a, i, n, r;
          if (!t || !e || t.length !== e.length) return !1;
          for (a = 0, i = t.length; i > a; ++a) if (n = t[a], r = e[a], n instanceof Array && r instanceof Array) {
            if (!o.arrayEquals(n, r)) return !1;
          } else if (n !== r) return !1;
          return !0;
        }, o.callCallback = function (t, e, a) {
          t && "function" == typeof t.call && t.apply(a, e);
        }, o.getHoverColor = function (t) {
          return t instanceof CanvasPattern ? t : o.color(t).saturate(.5).darken(.1).rgbString();
        };
      };
    }, {
      3: 3
    }],
    27: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t, e) {
          var a,
            i,
            n,
            o,
            r,
            l = t.data.datasets;
          for (i = 0, o = l.length; o > i; ++i) if (t.isDatasetVisible(i)) for (a = t.getDatasetMeta(i), n = 0, r = a.data.length; r > n; ++n) {
            var s = a.data[n];
            s._view.skip || e(s);
          }
        }
        function a(t, a) {
          var i = [];
          return e(t, function (t) {
            t.inRange(a.x, a.y) && i.push(t);
          }), i;
        }
        function i(t, a, i, n) {
          var r = Number.POSITIVE_INFINITY,
            l = [];
          return n || (n = o.distanceBetweenPoints), e(t, function (t) {
            if (!i || t.inRange(a.x, a.y)) {
              var e = t.getCenterPoint(),
                o = n(a, e);
              r > o ? (l = [t], r = o) : o === r && l.push(t);
            }
          }), l;
        }
        function n(t, e, n) {
          var r = o.getRelativePosition(e, t.chart),
            l = function l(t, e) {
              return Math.abs(t.x - e.x);
            },
            s = n.intersect ? a(t, r) : i(t, r, !1, l),
            d = [];
          return s.length ? (t.data.datasets.forEach(function (e, a) {
            if (t.isDatasetVisible(a)) {
              var i = t.getDatasetMeta(a),
                n = i.data[s[0]._index];
              n && !n._view.skip && d.push(n);
            }
          }), d) : [];
        }
        var o = t.helpers;
        t.Interaction = {
          modes: {
            single: function single(t, a) {
              var i = o.getRelativePosition(a, t.chart),
                n = [];
              return e(t, function (t) {
                return t.inRange(i.x, i.y) ? (n.push(t), n) : void 0;
              }), n.slice(0, 1);
            },
            label: n,
            index: n,
            dataset: function dataset(t, e, n) {
              var r = o.getRelativePosition(e, t.chart),
                l = n.intersect ? a(t, r) : i(t, r, !1);
              return l.length > 0 && (l = t.getDatasetMeta(l[0]._datasetIndex).data), l;
            },
            "x-axis": function xAxis(t, e) {
              return n(t, e, !0);
            },
            point: function point(t, e) {
              var i = o.getRelativePosition(e, t.chart);
              return a(t, i);
            },
            nearest: function nearest(t, e, a) {
              var n = o.getRelativePosition(e, t.chart),
                r = i(t, n, a.intersect);
              return r.length > 1 && r.sort(function (t, e) {
                var a = t.getArea(),
                  i = e.getArea(),
                  n = a - i;
                return 0 === n && (n = t._datasetIndex - e._datasetIndex), n;
              }), r.slice(0, 1);
            },
            x: function x(t, a, i) {
              var n = o.getRelativePosition(a, t.chart),
                r = [],
                l = !1;
              return e(t, function (t) {
                t.inXRange(n.x) && r.push(t), t.inRange(n.x, n.y) && (l = !0);
              }), i.intersect && !l && (r = []), r;
            },
            y: function y(t, a, i) {
              var n = o.getRelativePosition(a, t.chart),
                r = [],
                l = !1;
              return e(t, function (t) {
                t.inYRange(n.y) && r.push(t), t.inRange(n.x, n.y) && (l = !0);
              }), i.intersect && !l && (r = []), r;
            }
          }
        };
      };
    }, {}],
    28: [function (t, e, a) {
      "use strict";

      e.exports = function () {
        var _t = function t(e, a) {
          return this.controller = new _t.Controller(e, a, this), this.controller;
        };
        return _t.defaults = {
          global: {
            responsive: !0,
            responsiveAnimationDuration: 0,
            maintainAspectRatio: !0,
            events: ["mousemove", "mouseout", "click", "touchstart", "touchmove"],
            hover: {
              onHover: null,
              mode: "nearest",
              intersect: !0,
              animationDuration: 400
            },
            onClick: null,
            defaultColor: "rgba(0,0,0,0.1)",
            defaultFontColor: "#666",
            defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
            defaultFontSize: 12,
            defaultFontStyle: "normal",
            showLines: !0,
            elements: {},
            legendCallback: function legendCallback(t) {
              var e = [];
              e.push('<ul class="' + t.id + '-legend">');
              for (var a = 0; a < t.data.datasets.length; a++) e.push('<li><span style="background-color:' + t.data.datasets[a].backgroundColor + '"></span>'), t.data.datasets[a].label && e.push(t.data.datasets[a].label), e.push("</li>");
              return e.push("</ul>"), e.join("");
            }
          }
        }, _t.Chart = _t, _t;
      };
    }, {}],
    29: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.layoutService = {
          defaults: {},
          addBox: function addBox(t, e) {
            t.boxes || (t.boxes = []), t.boxes.push(e);
          },
          removeBox: function removeBox(t, e) {
            t.boxes && t.boxes.splice(t.boxes.indexOf(e), 1);
          },
          update: function update(t, a, i) {
            function n(t) {
              var e,
                a = t.isHorizontal();
              a ? (e = t.update(t.options.fullWidth ? x : C, M), D -= e.height) : (e = t.update(w, S), C -= e.width), I.push({
                horizontal: a,
                minSize: e,
                box: t
              });
            }
            function o(t) {
              var a = e.findNextWhere(I, function (e) {
                return e.box === t;
              });
              if (a) if (t.isHorizontal()) {
                var i = {
                  left: A,
                  right: T,
                  top: 0,
                  bottom: 0
                };
                t.update(t.options.fullWidth ? x : C, y / 2, i);
              } else t.update(a.minSize.width, D);
            }
            function r(t) {
              var a = e.findNextWhere(I, function (e) {
                  return e.box === t;
                }),
                i = {
                  left: 0,
                  right: 0,
                  top: P,
                  bottom: F
                };
              a && t.update(a.minSize.width, D, i);
            }
            function l(t) {
              t.isHorizontal() ? (t.left = t.options.fullWidth ? u : A, t.right = t.options.fullWidth ? a - c : A + C, t.top = L, t.bottom = L + t.height, L = t.bottom) : (t.left = V, t.right = V + t.width, t.top = P, t.bottom = P + D, V = t.right);
            }
            if (t) {
              var s = t.options.layout,
                d = s ? s.padding : null,
                u = 0,
                c = 0,
                h = 0,
                f = 0;
              isNaN(d) ? (u = d.left || 0, c = d.right || 0, h = d.top || 0, f = d.bottom || 0) : (u = d, c = d, h = d, f = d);
              var g = e.where(t.boxes, function (t) {
                  return "left" === t.options.position;
                }),
                p = e.where(t.boxes, function (t) {
                  return "right" === t.options.position;
                }),
                m = e.where(t.boxes, function (t) {
                  return "top" === t.options.position;
                }),
                b = e.where(t.boxes, function (t) {
                  return "bottom" === t.options.position;
                }),
                v = e.where(t.boxes, function (t) {
                  return "chartArea" === t.options.position;
                });
              m.sort(function (t, e) {
                return (e.options.fullWidth ? 1 : 0) - (t.options.fullWidth ? 1 : 0);
              }), b.sort(function (t, e) {
                return (t.options.fullWidth ? 1 : 0) - (e.options.fullWidth ? 1 : 0);
              });
              var x = a - u - c,
                y = i - h - f,
                k = x / 2,
                S = y / 2,
                w = (a - k) / (g.length + p.length),
                M = (i - S) / (m.length + b.length),
                C = x,
                D = y,
                I = [];
              e.each(g.concat(p, m, b), n);
              var A = u,
                T = c,
                P = h,
                F = f;
              e.each(g.concat(p), o), e.each(g, function (t) {
                A += t.width;
              }), e.each(p, function (t) {
                T += t.width;
              }), e.each(m.concat(b), o), e.each(m, function (t) {
                P += t.height;
              }), e.each(b, function (t) {
                F += t.height;
              }), e.each(g.concat(p), r), A = u, T = c, P = h, F = f, e.each(g, function (t) {
                A += t.width;
              }), e.each(p, function (t) {
                T += t.width;
              }), e.each(m, function (t) {
                P += t.height;
              }), e.each(b, function (t) {
                F += t.height;
              });
              var _ = i - P - F,
                R = a - A - T;
              (R !== C || _ !== D) && (e.each(g, function (t) {
                t.height = _;
              }), e.each(p, function (t) {
                t.height = _;
              }), e.each(m, function (t) {
                t.options.fullWidth || (t.width = R);
              }), e.each(b, function (t) {
                t.options.fullWidth || (t.width = R);
              }), D = _, C = R);
              var V = u,
                L = h;
              e.each(g.concat(m), l), V += C, L += D, e.each(p, l), e.each(b, l), t.chartArea = {
                left: A,
                top: P,
                right: A + C,
                bottom: P + D
              }, e.each(v, function (e) {
                e.left = t.chartArea.left, e.top = t.chartArea.top, e.right = t.chartArea.right, e.bottom = t.chartArea.bottom, e.update(C, D);
              });
            }
          }
        };
      };
    }, {}],
    30: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t, e) {
          return t.usePointStyle ? e * Math.SQRT2 : t.boxWidth;
        }
        var a = t.helpers,
          i = a.noop;
        t.defaults.global.legend = {
          display: !0,
          position: "top",
          fullWidth: !0,
          reverse: !1,
          onClick: function onClick(t, e) {
            var a = e.datasetIndex,
              i = this.chart,
              n = i.getDatasetMeta(a);
            n.hidden = null === n.hidden ? !i.data.datasets[a].hidden : null, i.update();
          },
          onHover: null,
          labels: {
            boxWidth: 40,
            padding: 10,
            generateLabels: function generateLabels(t) {
              var e = t.data;
              return a.isArray(e.datasets) ? e.datasets.map(function (e, i) {
                return {
                  text: e.label,
                  fillStyle: a.isArray(e.backgroundColor) ? e.backgroundColor[0] : e.backgroundColor,
                  hidden: !t.isDatasetVisible(i),
                  lineCap: e.borderCapStyle,
                  lineDash: e.borderDash,
                  lineDashOffset: e.borderDashOffset,
                  lineJoin: e.borderJoinStyle,
                  lineWidth: e.borderWidth,
                  strokeStyle: e.borderColor,
                  pointStyle: e.pointStyle,
                  datasetIndex: i
                };
              }, this) : [];
            }
          }
        }, t.Legend = t.Element.extend({
          initialize: function initialize(t) {
            a.extend(this, t), this.legendHitBoxes = [], this.doughnutMode = !1;
          },
          beforeUpdate: i,
          update: function update(t, e, a) {
            var i = this;
            return i.beforeUpdate(), i.maxWidth = t, i.maxHeight = e, i.margins = a, i.beforeSetDimensions(), i.setDimensions(), i.afterSetDimensions(), i.beforeBuildLabels(), i.buildLabels(), i.afterBuildLabels(), i.beforeFit(), i.fit(), i.afterFit(), i.afterUpdate(), i.minSize;
          },
          afterUpdate: i,
          beforeSetDimensions: i,
          setDimensions: function setDimensions() {
            var t = this;
            t.isHorizontal() ? (t.width = t.maxWidth, t.left = 0, t.right = t.width) : (t.height = t.maxHeight, t.top = 0, t.bottom = t.height), t.paddingLeft = 0, t.paddingTop = 0, t.paddingRight = 0, t.paddingBottom = 0, t.minSize = {
              width: 0,
              height: 0
            };
          },
          afterSetDimensions: i,
          beforeBuildLabels: i,
          buildLabels: function buildLabels() {
            var t = this;
            t.legendItems = t.options.labels.generateLabels.call(t, t.chart), t.options.reverse && t.legendItems.reverse();
          },
          afterBuildLabels: i,
          beforeFit: i,
          fit: function fit() {
            var i = this,
              n = i.options,
              o = n.labels,
              r = n.display,
              l = i.ctx,
              s = t.defaults.global,
              d = a.getValueOrDefault,
              u = d(o.fontSize, s.defaultFontSize),
              c = d(o.fontStyle, s.defaultFontStyle),
              h = d(o.fontFamily, s.defaultFontFamily),
              f = a.fontString(u, c, h),
              g = i.legendHitBoxes = [],
              p = i.minSize,
              m = i.isHorizontal();
            if (m ? (p.width = i.maxWidth, p.height = r ? 10 : 0) : (p.width = r ? 10 : 0, p.height = i.maxHeight), r) if (l.font = f, m) {
              var b = i.lineWidths = [0],
                v = i.legendItems.length ? u + o.padding : 0;
              l.textAlign = "left", l.textBaseline = "top", a.each(i.legendItems, function (t, a) {
                var n = e(o, u),
                  r = n + u / 2 + l.measureText(t.text).width;
                b[b.length - 1] + r + o.padding >= i.width && (v += u + o.padding, b[b.length] = i.left), g[a] = {
                  left: 0,
                  top: 0,
                  width: r,
                  height: u
                }, b[b.length - 1] += r + o.padding;
              }), p.height += v;
            } else {
              var x = o.padding,
                y = i.columnWidths = [],
                k = o.padding,
                S = 0,
                w = 0,
                M = u + x;
              a.each(i.legendItems, function (t, a) {
                var i = e(o, u),
                  n = i + u / 2 + l.measureText(t.text).width;
                w + M > p.height && (k += S + o.padding, y.push(S), S = 0, w = 0), S = Math.max(S, n), w += M, g[a] = {
                  left: 0,
                  top: 0,
                  width: n,
                  height: u
                };
              }), k += S, y.push(S), p.width += k;
            }
            i.width = p.width, i.height = p.height;
          },
          afterFit: i,
          isHorizontal: function isHorizontal() {
            return "top" === this.options.position || "bottom" === this.options.position;
          },
          draw: function draw() {
            var i = this,
              n = i.options,
              o = n.labels,
              r = t.defaults.global,
              l = r.elements.line,
              s = i.width,
              d = i.lineWidths;
            if (n.display) {
              var u,
                c = i.ctx,
                h = a.getValueOrDefault,
                f = h(o.fontColor, r.defaultFontColor),
                g = h(o.fontSize, r.defaultFontSize),
                p = h(o.fontStyle, r.defaultFontStyle),
                m = h(o.fontFamily, r.defaultFontFamily),
                b = a.fontString(g, p, m);
              c.textAlign = "left", c.textBaseline = "top", c.lineWidth = .5, c.strokeStyle = f, c.fillStyle = f, c.font = b;
              var v = e(o, g),
                x = i.legendHitBoxes,
                y = function y(e, a, i) {
                  if (!(isNaN(v) || 0 >= v)) {
                    c.save(), c.fillStyle = h(i.fillStyle, r.defaultColor), c.lineCap = h(i.lineCap, l.borderCapStyle), c.lineDashOffset = h(i.lineDashOffset, l.borderDashOffset), c.lineJoin = h(i.lineJoin, l.borderJoinStyle), c.lineWidth = h(i.lineWidth, l.borderWidth), c.strokeStyle = h(i.strokeStyle, r.defaultColor);
                    var o = 0 === h(i.lineWidth, l.borderWidth);
                    if (c.setLineDash && c.setLineDash(h(i.lineDash, l.borderDash)), n.labels && n.labels.usePointStyle) {
                      var s = g * Math.SQRT2 / 2,
                        d = s / Math.SQRT2,
                        u = e + d,
                        f = a + d;
                      t.canvasHelpers.drawPoint(c, i.pointStyle, s, u, f);
                    } else o || c.strokeRect(e, a, v, g), c.fillRect(e, a, v, g);
                    c.restore();
                  }
                },
                k = function k(t, e, a, i) {
                  c.fillText(a.text, v + g / 2 + t, e), a.hidden && (c.beginPath(), c.lineWidth = 2, c.moveTo(v + g / 2 + t, e + g / 2), c.lineTo(v + g / 2 + t + i, e + g / 2), c.stroke());
                },
                S = i.isHorizontal();
              u = S ? {
                x: i.left + (s - d[0]) / 2,
                y: i.top + o.padding,
                line: 0
              } : {
                x: i.left + o.padding,
                y: i.top + o.padding,
                line: 0
              };
              var w = g + o.padding;
              a.each(i.legendItems, function (t, e) {
                var a = c.measureText(t.text).width,
                  n = v + g / 2 + a,
                  r = u.x,
                  l = u.y;
                S ? r + n >= s && (l = u.y += w, u.line++, r = u.x = i.left + (s - d[u.line]) / 2) : l + w > i.bottom && (r = u.x = r + i.columnWidths[u.line] + o.padding, l = u.y = i.top, u.line++), y(r, l, t), x[e].left = r, x[e].top = l, k(r, l, t, a), S ? u.x += n + o.padding : u.y += w;
              });
            }
          },
          handleEvent: function handleEvent(t) {
            var e = this,
              i = e.options,
              n = "mouseup" === t.type ? "click" : t.type,
              o = !1;
            if ("mousemove" === n) {
              if (!i.onHover) return;
            } else {
              if ("click" !== n) return;
              if (!i.onClick) return;
            }
            var r = a.getRelativePosition(t, e.chart.chart),
              l = r.x,
              s = r.y;
            if (l >= e.left && l <= e.right && s >= e.top && s <= e.bottom) for (var d = e.legendHitBoxes, u = 0; u < d.length; ++u) {
              var c = d[u];
              if (l >= c.left && l <= c.left + c.width && s >= c.top && s <= c.top + c.height) {
                if ("click" === n) {
                  i.onClick.call(e, t, e.legendItems[u]), o = !0;
                  break;
                }
                if ("mousemove" === n) {
                  i.onHover.call(e, t, e.legendItems[u]), o = !0;
                  break;
                }
              }
            }
            return o;
          }
        }), t.plugins.register({
          beforeInit: function beforeInit(e) {
            var a = e.options,
              i = a.legend;
            i && (e.legend = new t.Legend({
              ctx: e.chart.ctx,
              options: i,
              chart: e
            }), t.layoutService.addBox(e, e.legend));
          }
        });
      };
    }, {}],
    31: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers.noop;
        t.plugins = {
          _plugins: [],
          register: function register(t) {
            var e = this._plugins;
            [].concat(t).forEach(function (t) {
              -1 === e.indexOf(t) && e.push(t);
            });
          },
          unregister: function unregister(t) {
            var e = this._plugins;
            [].concat(t).forEach(function (t) {
              var a = e.indexOf(t);
              -1 !== a && e.splice(a, 1);
            });
          },
          clear: function clear() {
            this._plugins = [];
          },
          count: function count() {
            return this._plugins.length;
          },
          getAll: function getAll() {
            return this._plugins;
          },
          notify: function notify(t, e) {
            var a,
              i,
              n = this._plugins,
              o = n.length;
            for (a = 0; o > a; ++a) if (i = n[a], "function" == typeof i[t] && i[t].apply(i, e || []) === !1) return !1;
            return !0;
          }
        }, t.PluginBase = t.Element.extend({
          beforeInit: e,
          afterInit: e,
          beforeUpdate: e,
          afterUpdate: e,
          beforeDraw: e,
          afterDraw: e,
          destroy: e
        }), t.pluginService = t.plugins;
      };
    }, {}],
    32: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.defaults.scale = {
          display: !0,
          position: "left",
          gridLines: {
            display: !0,
            color: "rgba(0, 0, 0, 0.1)",
            lineWidth: 1,
            drawBorder: !0,
            drawOnChartArea: !0,
            drawTicks: !0,
            tickMarkLength: 10,
            zeroLineWidth: 1,
            zeroLineColor: "rgba(0,0,0,0.25)",
            offsetGridLines: !1,
            borderDash: [],
            borderDashOffset: 0
          },
          scaleLabel: {
            labelString: "",
            display: !1
          },
          ticks: {
            beginAtZero: !1,
            minRotation: 0,
            maxRotation: 50,
            mirror: !1,
            padding: 10,
            reverse: !1,
            display: !0,
            autoSkip: !0,
            autoSkipPadding: 0,
            labelOffset: 0,
            callback: t.Ticks.formatters.values
          }
        }, t.Scale = t.Element.extend({
          beforeUpdate: function beforeUpdate() {
            e.callCallback(this.options.beforeUpdate, [this]);
          },
          update: function update(t, a, i) {
            var n = this;
            return n.beforeUpdate(), n.maxWidth = t, n.maxHeight = a, n.margins = e.extend({
              left: 0,
              right: 0,
              top: 0,
              bottom: 0
            }, i), n.beforeSetDimensions(), n.setDimensions(), n.afterSetDimensions(), n.beforeDataLimits(), n.determineDataLimits(), n.afterDataLimits(), n.beforeBuildTicks(), n.buildTicks(), n.afterBuildTicks(), n.beforeTickToLabelConversion(), n.convertTicksToLabels(), n.afterTickToLabelConversion(), n.beforeCalculateTickRotation(), n.calculateTickRotation(), n.afterCalculateTickRotation(), n.beforeFit(), n.fit(), n.afterFit(), n.afterUpdate(), n.minSize;
          },
          afterUpdate: function afterUpdate() {
            e.callCallback(this.options.afterUpdate, [this]);
          },
          beforeSetDimensions: function beforeSetDimensions() {
            e.callCallback(this.options.beforeSetDimensions, [this]);
          },
          setDimensions: function setDimensions() {
            var t = this;
            t.isHorizontal() ? (t.width = t.maxWidth, t.left = 0, t.right = t.width) : (t.height = t.maxHeight, t.top = 0, t.bottom = t.height), t.paddingLeft = 0, t.paddingTop = 0, t.paddingRight = 0, t.paddingBottom = 0;
          },
          afterSetDimensions: function afterSetDimensions() {
            e.callCallback(this.options.afterSetDimensions, [this]);
          },
          beforeDataLimits: function beforeDataLimits() {
            e.callCallback(this.options.beforeDataLimits, [this]);
          },
          determineDataLimits: e.noop,
          afterDataLimits: function afterDataLimits() {
            e.callCallback(this.options.afterDataLimits, [this]);
          },
          beforeBuildTicks: function beforeBuildTicks() {
            e.callCallback(this.options.beforeBuildTicks, [this]);
          },
          buildTicks: e.noop,
          afterBuildTicks: function afterBuildTicks() {
            e.callCallback(this.options.afterBuildTicks, [this]);
          },
          beforeTickToLabelConversion: function beforeTickToLabelConversion() {
            e.callCallback(this.options.beforeTickToLabelConversion, [this]);
          },
          convertTicksToLabels: function convertTicksToLabels() {
            var t = this,
              e = t.options.ticks;
            t.ticks = t.ticks.map(e.userCallback || e.callback);
          },
          afterTickToLabelConversion: function afterTickToLabelConversion() {
            e.callCallback(this.options.afterTickToLabelConversion, [this]);
          },
          beforeCalculateTickRotation: function beforeCalculateTickRotation() {
            e.callCallback(this.options.beforeCalculateTickRotation, [this]);
          },
          calculateTickRotation: function calculateTickRotation() {
            var a = this,
              i = a.ctx,
              n = t.defaults.global,
              o = a.options.ticks,
              r = e.getValueOrDefault(o.fontSize, n.defaultFontSize),
              l = e.getValueOrDefault(o.fontStyle, n.defaultFontStyle),
              s = e.getValueOrDefault(o.fontFamily, n.defaultFontFamily),
              d = e.fontString(r, l, s);
            i.font = d;
            var u,
              c = i.measureText(a.ticks[0]).width,
              h = i.measureText(a.ticks[a.ticks.length - 1]).width;
            if (a.labelRotation = o.minRotation || 0, a.paddingRight = 0, a.paddingLeft = 0, a.options.display && a.isHorizontal()) {
              a.paddingRight = h / 2 + 3, a.paddingLeft = c / 2 + 3, a.longestTextCache || (a.longestTextCache = {});
              for (var f, g, p = e.longestText(i, d, a.ticks, a.longestTextCache), m = p, b = a.getPixelForTick(1) - a.getPixelForTick(0) - 6; m > b && a.labelRotation < o.maxRotation;) {
                if (f = Math.cos(e.toRadians(a.labelRotation)), g = Math.sin(e.toRadians(a.labelRotation)), u = f * c, u + r / 2 > a.yLabelWidth && (a.paddingLeft = u + r / 2), a.paddingRight = r / 2, g * p > a.maxHeight) {
                  a.labelRotation--;
                  break;
                }
                a.labelRotation++, m = f * p;
              }
            }
            a.margins && (a.paddingLeft = Math.max(a.paddingLeft - a.margins.left, 0), a.paddingRight = Math.max(a.paddingRight - a.margins.right, 0));
          },
          afterCalculateTickRotation: function afterCalculateTickRotation() {
            e.callCallback(this.options.afterCalculateTickRotation, [this]);
          },
          beforeFit: function beforeFit() {
            e.callCallback(this.options.beforeFit, [this]);
          },
          fit: function fit() {
            var a = this,
              i = a.minSize = {
                width: 0,
                height: 0
              },
              n = a.options,
              o = t.defaults.global,
              r = n.ticks,
              l = n.scaleLabel,
              s = n.gridLines,
              d = n.display,
              u = a.isHorizontal(),
              c = e.getValueOrDefault(r.fontSize, o.defaultFontSize),
              h = e.getValueOrDefault(r.fontStyle, o.defaultFontStyle),
              f = e.getValueOrDefault(r.fontFamily, o.defaultFontFamily),
              g = e.fontString(c, h, f),
              p = e.getValueOrDefault(l.fontSize, o.defaultFontSize),
              m = n.gridLines.tickMarkLength;
            if (u ? i.width = a.isFullWidth() ? a.maxWidth - a.margins.left - a.margins.right : a.maxWidth : i.width = d && s.drawTicks ? m : 0, u ? i.height = d && s.drawTicks ? m : 0 : i.height = a.maxHeight, l.display && d && (u ? i.height += 1.5 * p : i.width += 1.5 * p), r.display && d) {
              a.longestTextCache || (a.longestTextCache = {});
              var b = e.longestText(a.ctx, g, a.ticks, a.longestTextCache),
                v = e.numberOfLabelLines(a.ticks),
                x = .5 * c;
              if (u) {
                a.longestLabelWidth = b;
                var y = Math.sin(e.toRadians(a.labelRotation)) * a.longestLabelWidth + c * v + x * v;
                i.height = Math.min(a.maxHeight, i.height + y), a.ctx.font = g;
                var k = a.ctx.measureText(a.ticks[0]).width,
                  S = a.ctx.measureText(a.ticks[a.ticks.length - 1]).width,
                  w = Math.cos(e.toRadians(a.labelRotation)),
                  M = Math.sin(e.toRadians(a.labelRotation));
                a.paddingLeft = 0 !== a.labelRotation ? w * k + 3 : k / 2 + 3, a.paddingRight = 0 !== a.labelRotation ? M * (c / 2) + 3 : S / 2 + 3;
              } else {
                var C = a.maxWidth - i.width,
                  D = r.mirror;
                D ? b = 0 : b += a.options.ticks.padding, C > b ? i.width += b : i.width = a.maxWidth, a.paddingTop = c / 2, a.paddingBottom = c / 2;
              }
            }
            a.margins && (a.paddingLeft = Math.max(a.paddingLeft - a.margins.left, 0), a.paddingTop = Math.max(a.paddingTop - a.margins.top, 0), a.paddingRight = Math.max(a.paddingRight - a.margins.right, 0), a.paddingBottom = Math.max(a.paddingBottom - a.margins.bottom, 0)), a.width = i.width, a.height = i.height;
          },
          afterFit: function afterFit() {
            e.callCallback(this.options.afterFit, [this]);
          },
          isHorizontal: function isHorizontal() {
            return "top" === this.options.position || "bottom" === this.options.position;
          },
          isFullWidth: function isFullWidth() {
            return this.options.fullWidth;
          },
          getRightValue: function getRightValue(t) {
            return null === t || "undefined" == typeof t ? NaN : "number" != typeof t || isFinite(t) ? "object" == (0, _typeof2.default)(t) ? t instanceof Date || t.isValid ? t : this.getRightValue(this.isHorizontal() ? t.x : t.y) : t : NaN;
          },
          getLabelForIndex: e.noop,
          getPixelForValue: e.noop,
          getValueForPixel: e.noop,
          getPixelForTick: function getPixelForTick(t, e) {
            var a = this;
            if (a.isHorizontal()) {
              var i = a.width - (a.paddingLeft + a.paddingRight),
                n = i / Math.max(a.ticks.length - (a.options.gridLines.offsetGridLines ? 0 : 1), 1),
                o = n * t + a.paddingLeft;
              e && (o += n / 2);
              var r = a.left + Math.round(o);
              return r += a.isFullWidth() ? a.margins.left : 0;
            }
            var l = a.height - (a.paddingTop + a.paddingBottom);
            return a.top + t * (l / (a.ticks.length - 1));
          },
          getPixelForDecimal: function getPixelForDecimal(t) {
            var e = this;
            if (e.isHorizontal()) {
              var a = e.width - (e.paddingLeft + e.paddingRight),
                i = a * t + e.paddingLeft,
                n = e.left + Math.round(i);
              return n += e.isFullWidth() ? e.margins.left : 0;
            }
            return e.top + t * e.height;
          },
          getBasePixel: function getBasePixel() {
            var t = this,
              e = t.min,
              a = t.max;
            return t.getPixelForValue(t.beginAtZero ? 0 : 0 > e && 0 > a ? a : e > 0 && a > 0 ? e : 0);
          },
          draw: function draw(a) {
            var i = this,
              n = i.options;
            if (n.display) {
              var o,
                r,
                l = i.ctx,
                s = t.defaults.global,
                d = n.ticks,
                u = n.gridLines,
                c = n.scaleLabel,
                h = 0 !== i.labelRotation,
                f = d.autoSkip,
                g = i.isHorizontal();
              d.maxTicksLimit && (r = d.maxTicksLimit);
              var p = e.getValueOrDefault(d.fontColor, s.defaultFontColor),
                m = e.getValueOrDefault(d.fontSize, s.defaultFontSize),
                b = e.getValueOrDefault(d.fontStyle, s.defaultFontStyle),
                v = e.getValueOrDefault(d.fontFamily, s.defaultFontFamily),
                x = e.fontString(m, b, v),
                y = u.tickMarkLength,
                k = e.getValueOrDefault(u.borderDash, s.borderDash),
                S = e.getValueOrDefault(u.borderDashOffset, s.borderDashOffset),
                w = e.getValueOrDefault(c.fontColor, s.defaultFontColor),
                M = e.getValueOrDefault(c.fontSize, s.defaultFontSize),
                C = e.getValueOrDefault(c.fontStyle, s.defaultFontStyle),
                D = e.getValueOrDefault(c.fontFamily, s.defaultFontFamily),
                I = e.fontString(M, C, D),
                A = e.toRadians(i.labelRotation),
                T = Math.cos(A),
                P = i.longestLabelWidth * T;
              l.fillStyle = p;
              var F = [];
              if (g) {
                if (o = !1, h && (P /= 2), (P + d.autoSkipPadding) * i.ticks.length > i.width - (i.paddingLeft + i.paddingRight) && (o = 1 + Math.floor((P + d.autoSkipPadding) * i.ticks.length / (i.width - (i.paddingLeft + i.paddingRight)))), r && i.ticks.length > r) for (; !o || i.ticks.length / (o || 1) > r;) o || (o = 1), o += 1;
                f || (o = !1);
              }
              var _ = "right" === n.position ? i.left : i.right - y,
                R = "right" === n.position ? i.left + y : i.right,
                V = "bottom" === n.position ? i.top : i.bottom - y,
                L = "bottom" === n.position ? i.top + y : i.bottom;
              if (e.each(i.ticks, function (t, r) {
                if (void 0 !== t && null !== t) {
                  var l = i.ticks.length === r + 1,
                    s = o > 1 && r % o > 0 || r % o === 0 && r + o >= i.ticks.length;
                  if ((!s || l) && void 0 !== t && null !== t) {
                    var c, f;
                    r === ("undefined" != typeof i.zeroLineIndex ? i.zeroLineIndex : 0) ? (c = u.zeroLineWidth, f = u.zeroLineColor) : (c = e.getValueAtIndexOrDefault(u.lineWidth, r), f = e.getValueAtIndexOrDefault(u.color, r));
                    var p,
                      m,
                      b,
                      v,
                      x,
                      w,
                      M,
                      C,
                      D,
                      I,
                      T = "middle",
                      P = "middle";
                    if (g) {
                      h || (P = "top" === n.position ? "bottom" : "top"), T = h ? "right" : "center";
                      var O = i.getPixelForTick(r) + e.aliasPixel(c);
                      D = i.getPixelForTick(r, u.offsetGridLines) + d.labelOffset, I = h ? i.top + 12 : "top" === n.position ? i.bottom - y : i.top + y, p = b = x = M = O, m = V, v = L, w = a.top, C = a.bottom;
                    } else {
                      "left" === n.position ? d.mirror ? (D = i.right + d.padding, T = "left") : (D = i.right - d.padding, T = "right") : d.mirror ? (D = i.left - d.padding, T = "right") : (D = i.left + d.padding, T = "left");
                      var B = i.getPixelForTick(r);
                      B += e.aliasPixel(c), I = i.getPixelForTick(r, u.offsetGridLines), p = _, b = R, x = a.left, M = a.right, m = v = w = C = B;
                    }
                    F.push({
                      tx1: p,
                      ty1: m,
                      tx2: b,
                      ty2: v,
                      x1: x,
                      y1: w,
                      x2: M,
                      y2: C,
                      labelX: D,
                      labelY: I,
                      glWidth: c,
                      glColor: f,
                      glBorderDash: k,
                      glBorderDashOffset: S,
                      rotation: -1 * A,
                      label: t,
                      textBaseline: P,
                      textAlign: T
                    });
                  }
                }
              }), e.each(F, function (t) {
                if (u.display && (l.save(), l.lineWidth = t.glWidth, l.strokeStyle = t.glColor, l.setLineDash && (l.setLineDash(t.glBorderDash), l.lineDashOffset = t.glBorderDashOffset), l.beginPath(), u.drawTicks && (l.moveTo(t.tx1, t.ty1), l.lineTo(t.tx2, t.ty2)), u.drawOnChartArea && (l.moveTo(t.x1, t.y1), l.lineTo(t.x2, t.y2)), l.stroke(), l.restore()), d.display) {
                  l.save(), l.translate(t.labelX, t.labelY), l.rotate(t.rotation), l.font = x, l.textBaseline = t.textBaseline, l.textAlign = t.textAlign;
                  var a = t.label;
                  if (e.isArray(a)) for (var i = 0, n = -(a.length - 1) * m * .75; i < a.length; ++i) l.fillText("" + a[i], 0, n), n += 1.5 * m;else l.fillText(a, 0, 0);
                  l.restore();
                }
              }), c.display) {
                var O,
                  B,
                  W = 0;
                if (g) O = i.left + (i.right - i.left) / 2, B = "bottom" === n.position ? i.bottom - M / 2 : i.top + M / 2;else {
                  var z = "left" === n.position;
                  O = z ? i.left + M / 2 : i.right - M / 2, B = i.top + (i.bottom - i.top) / 2, W = z ? -.5 * Math.PI : .5 * Math.PI;
                }
                l.save(), l.translate(O, B), l.rotate(W), l.textAlign = "center", l.textBaseline = "middle", l.fillStyle = w, l.font = I, l.fillText(c.labelString, 0, 0), l.restore();
              }
              if (u.drawBorder) {
                l.lineWidth = e.getValueAtIndexOrDefault(u.lineWidth, 0), l.strokeStyle = e.getValueAtIndexOrDefault(u.color, 0);
                var N = i.left,
                  E = i.right,
                  H = i.top,
                  U = i.bottom,
                  j = e.aliasPixel(l.lineWidth);
                g ? (H = U = "top" === n.position ? i.bottom : i.top, H += j, U += j) : (N = E = "left" === n.position ? i.right : i.left, N += j, E += j), l.beginPath(), l.moveTo(N, H), l.lineTo(E, U), l.stroke();
              }
            }
          }
        });
      };
    }, {}],
    33: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.scaleService = {
          constructors: {},
          defaults: {},
          registerScaleType: function registerScaleType(t, a, i) {
            this.constructors[t] = a, this.defaults[t] = e.clone(i);
          },
          getScaleConstructor: function getScaleConstructor(t) {
            return this.constructors.hasOwnProperty(t) ? this.constructors[t] : void 0;
          },
          getScaleDefaults: function getScaleDefaults(a) {
            return this.defaults.hasOwnProperty(a) ? e.scaleMerge(t.defaults.scale, this.defaults[a]) : {};
          },
          updateScaleDefaults: function updateScaleDefaults(t, a) {
            var i = this.defaults;
            i.hasOwnProperty(t) && (i[t] = e.extend(i[t], a));
          },
          addScalesToLayout: function addScalesToLayout(a) {
            e.each(a.scales, function (e) {
              t.layoutService.addBox(a, e);
            });
          }
        };
      };
    }, {}],
    34: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.Ticks = {
          generators: {
            linear: function linear(t, a) {
              var i,
                n = [];
              if (t.stepSize && t.stepSize > 0) i = t.stepSize;else {
                var o = e.niceNum(a.max - a.min, !1);
                i = e.niceNum(o / (t.maxTicks - 1), !0);
              }
              var r = Math.floor(a.min / i) * i,
                l = Math.ceil(a.max / i) * i;
              if (t.min && t.max && t.stepSize) {
                var s = (t.max - t.min) % t.stepSize === 0;
                s && (r = t.min, l = t.max);
              }
              var d = (l - r) / i;
              d = e.almostEquals(d, Math.round(d), i / 1e3) ? Math.round(d) : Math.ceil(d), n.push(void 0 !== t.min ? t.min : r);
              for (var u = 1; d > u; ++u) n.push(r + u * i);
              return n.push(void 0 !== t.max ? t.max : l), n;
            },
            logarithmic: function logarithmic(t, a) {
              for (var i = [], n = e.getValueOrDefault, o = n(t.min, Math.pow(10, Math.floor(e.log10(a.min)))); o < a.max;) {
                i.push(o);
                var r, l;
                0 === o ? (r = Math.floor(e.log10(a.minNotZero)), l = Math.round(a.minNotZero / Math.pow(10, r))) : (r = Math.floor(e.log10(o)), l = Math.floor(o / Math.pow(10, r)) + 1), 10 === l && (l = 1, ++r), o = l * Math.pow(10, r);
              }
              var s = n(t.max, o);
              return i.push(s), i;
            }
          },
          formatters: {
            values: function values(t) {
              return e.isArray(t) ? t : "" + t;
            },
            linear: function linear(t, a, i) {
              var n = i.length > 3 ? i[2] - i[1] : i[1] - i[0];
              Math.abs(n) > 1 && t !== Math.floor(t) && (n = t - Math.floor(t));
              var o = e.log10(Math.abs(n)),
                r = "";
              if (0 !== t) {
                var l = -1 * Math.floor(o);
                l = Math.max(Math.min(l, 20), 0), r = t.toFixed(l);
              } else r = "0";
              return r;
            },
            logarithmic: function logarithmic(t, a, i) {
              var n = t / Math.pow(10, Math.floor(e.log10(t)));
              return 0 === t ? "0" : 1 === n || 2 === n || 5 === n || 0 === a || a === i.length - 1 ? t.toExponential() : "";
            }
          }
        };
      };
    }, {}],
    35: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers;
        t.defaults.global.title = {
          display: !1,
          position: "top",
          fullWidth: !0,
          fontStyle: "bold",
          padding: 10,
          text: ""
        };
        var a = e.noop;
        t.Title = t.Element.extend({
          initialize: function initialize(a) {
            var i = this;
            e.extend(i, a), i.options = e.configMerge(t.defaults.global.title, a.options), i.legendHitBoxes = [];
          },
          beforeUpdate: function beforeUpdate() {
            var a = this.chart.options;
            a && a.title && (this.options = e.configMerge(t.defaults.global.title, a.title));
          },
          update: function update(t, e, a) {
            var i = this;
            return i.beforeUpdate(), i.maxWidth = t, i.maxHeight = e, i.margins = a, i.beforeSetDimensions(), i.setDimensions(), i.afterSetDimensions(), i.beforeBuildLabels(), i.buildLabels(), i.afterBuildLabels(), i.beforeFit(), i.fit(), i.afterFit(), i.afterUpdate(), i.minSize;
          },
          afterUpdate: a,
          beforeSetDimensions: a,
          setDimensions: function setDimensions() {
            var t = this;
            t.isHorizontal() ? (t.width = t.maxWidth, t.left = 0, t.right = t.width) : (t.height = t.maxHeight, t.top = 0, t.bottom = t.height), t.paddingLeft = 0, t.paddingTop = 0, t.paddingRight = 0, t.paddingBottom = 0, t.minSize = {
              width: 0,
              height: 0
            };
          },
          afterSetDimensions: a,
          beforeBuildLabels: a,
          buildLabels: a,
          afterBuildLabels: a,
          beforeFit: a,
          fit: function fit() {
            var a = this,
              i = e.getValueOrDefault,
              n = a.options,
              o = t.defaults.global,
              r = n.display,
              l = i(n.fontSize, o.defaultFontSize),
              s = a.minSize;
            a.isHorizontal() ? (s.width = a.maxWidth, s.height = r ? l + 2 * n.padding : 0) : (s.width = r ? l + 2 * n.padding : 0, s.height = a.maxHeight), a.width = s.width, a.height = s.height;
          },
          afterFit: a,
          isHorizontal: function isHorizontal() {
            var t = this.options.position;
            return "top" === t || "bottom" === t;
          },
          draw: function draw() {
            var a = this,
              i = a.ctx,
              n = e.getValueOrDefault,
              o = a.options,
              r = t.defaults.global;
            if (o.display) {
              var l,
                s,
                d,
                u = n(o.fontSize, r.defaultFontSize),
                c = n(o.fontStyle, r.defaultFontStyle),
                h = n(o.fontFamily, r.defaultFontFamily),
                f = e.fontString(u, c, h),
                g = 0,
                p = a.top,
                m = a.left,
                b = a.bottom,
                v = a.right;
              i.fillStyle = n(o.fontColor, r.defaultFontColor), i.font = f, a.isHorizontal() ? (l = m + (v - m) / 2, s = p + (b - p) / 2, d = v - m) : (l = "left" === o.position ? m + u / 2 : v - u / 2, s = p + (b - p) / 2, d = b - p, g = Math.PI * ("left" === o.position ? -.5 : .5)), i.save(), i.translate(l, s), i.rotate(g), i.textAlign = "center", i.textBaseline = "middle", i.fillText(o.text, 0, 0, d), i.restore();
            }
          }
        }), t.plugins.register({
          beforeInit: function beforeInit(e) {
            var a = e.options,
              i = a.title;
            i && (e.titleBlock = new t.Title({
              ctx: e.chart.ctx,
              options: i,
              chart: e
            }), t.layoutService.addBox(e, e.titleBlock));
          }
        });
      };
    }, {}],
    36: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t, e) {
          var a = s.color(t);
          return a.alpha(e * a.alpha()).rgbaString();
        }
        function a(t, e) {
          return e && (s.isArray(e) ? Array.prototype.push.apply(t, e) : t.push(e)), t;
        }
        function i(t) {
          var e = t._xScale,
            a = t._yScale || t._scale,
            i = t._index,
            n = t._datasetIndex;
          return {
            xLabel: e ? e.getLabelForIndex(i, n) : "",
            yLabel: a ? a.getLabelForIndex(i, n) : "",
            index: i,
            datasetIndex: n,
            x: t._model.x,
            y: t._model.y
          };
        }
        function n(e) {
          var a = t.defaults.global,
            i = s.getValueOrDefault;
          return {
            xPadding: e.xPadding,
            yPadding: e.yPadding,
            xAlign: e.xAlign,
            yAlign: e.yAlign,
            bodyFontColor: e.bodyFontColor,
            _bodyFontFamily: i(e.bodyFontFamily, a.defaultFontFamily),
            _bodyFontStyle: i(e.bodyFontStyle, a.defaultFontStyle),
            _bodyAlign: e.bodyAlign,
            bodyFontSize: i(e.bodyFontSize, a.defaultFontSize),
            bodySpacing: e.bodySpacing,
            titleFontColor: e.titleFontColor,
            _titleFontFamily: i(e.titleFontFamily, a.defaultFontFamily),
            _titleFontStyle: i(e.titleFontStyle, a.defaultFontStyle),
            titleFontSize: i(e.titleFontSize, a.defaultFontSize),
            _titleAlign: e.titleAlign,
            titleSpacing: e.titleSpacing,
            titleMarginBottom: e.titleMarginBottom,
            footerFontColor: e.footerFontColor,
            _footerFontFamily: i(e.footerFontFamily, a.defaultFontFamily),
            _footerFontStyle: i(e.footerFontStyle, a.defaultFontStyle),
            footerFontSize: i(e.footerFontSize, a.defaultFontSize),
            _footerAlign: e.footerAlign,
            footerSpacing: e.footerSpacing,
            footerMarginTop: e.footerMarginTop,
            caretSize: e.caretSize,
            cornerRadius: e.cornerRadius,
            backgroundColor: e.backgroundColor,
            opacity: 0,
            legendColorBackground: e.multiKeyBackground,
            displayColors: e.displayColors
          };
        }
        function o(t, e) {
          var a = t._chart.ctx,
            i = 2 * e.yPadding,
            n = 0,
            o = e.body,
            r = o.reduce(function (t, e) {
              return t + e.before.length + e.lines.length + e.after.length;
            }, 0);
          r += e.beforeBody.length + e.afterBody.length;
          var l = e.title.length,
            d = e.footer.length,
            u = e.titleFontSize,
            c = e.bodyFontSize,
            h = e.footerFontSize;
          i += l * u, i += l ? (l - 1) * e.titleSpacing : 0, i += l ? e.titleMarginBottom : 0, i += r * c, i += r ? (r - 1) * e.bodySpacing : 0, i += d ? e.footerMarginTop : 0, i += d * h, i += d ? (d - 1) * e.footerSpacing : 0;
          var f = 0,
            g = function g(t) {
              n = Math.max(n, a.measureText(t).width + f);
            };
          return a.font = s.fontString(u, e._titleFontStyle, e._titleFontFamily), s.each(e.title, g), a.font = s.fontString(c, e._bodyFontStyle, e._bodyFontFamily), s.each(e.beforeBody.concat(e.afterBody), g), f = e.displayColors ? c + 2 : 0, s.each(o, function (t) {
            s.each(t.before, g), s.each(t.lines, g), s.each(t.after, g);
          }), f = 0, a.font = s.fontString(h, e._footerFontStyle, e._footerFontFamily), s.each(e.footer, g), n += 2 * e.xPadding, {
            width: n,
            height: i
          };
        }
        function r(t, e) {
          var a = t._model,
            i = t._chart,
            n = t._chartInstance.chartArea,
            o = "center",
            r = "center";
          a.y < e.height ? r = "top" : a.y > i.height - e.height && (r = "bottom");
          var l,
            s,
            d,
            u,
            c,
            h = (n.left + n.right) / 2,
            f = (n.top + n.bottom) / 2;
          "center" === r ? (l = function l(t) {
            return h >= t;
          }, s = function s(t) {
            return t > h;
          }) : (l = function l(t) {
            return t <= e.width / 2;
          }, s = function s(t) {
            return t >= i.width - e.width / 2;
          }), d = function d(t) {
            return t + e.width > i.width;
          }, u = function u(t) {
            return t - e.width < 0;
          }, c = function c(t) {
            return f >= t ? "top" : "bottom";
          }, l(a.x) ? (o = "left", d(a.x) && (o = "center", r = c(a.y))) : s(a.x) && (o = "right", u(a.x) && (o = "center", r = c(a.y)));
          var g = t._options;
          return {
            xAlign: g.xAlign ? g.xAlign : o,
            yAlign: g.yAlign ? g.yAlign : r
          };
        }
        function l(t, e, a) {
          var i = t.x,
            n = t.y,
            o = t.caretSize,
            r = t.caretPadding,
            l = t.cornerRadius,
            s = a.xAlign,
            d = a.yAlign,
            u = o + r,
            c = l + r;
          return "right" === s ? i -= e.width : "center" === s && (i -= e.width / 2), "top" === d ? n += u : n -= "bottom" === d ? e.height + u : e.height / 2, "center" === d ? "left" === s ? i += u : "right" === s && (i -= u) : "left" === s ? i -= c : "right" === s && (i += c), {
            x: i,
            y: n
          };
        }
        var s = t.helpers;
        t.defaults.global.tooltips = {
          enabled: !0,
          custom: null,
          mode: "nearest",
          position: "average",
          intersect: !0,
          backgroundColor: "rgba(0,0,0,0.8)",
          titleFontStyle: "bold",
          titleSpacing: 2,
          titleMarginBottom: 6,
          titleFontColor: "#fff",
          titleAlign: "left",
          bodySpacing: 2,
          bodyFontColor: "#fff",
          bodyAlign: "left",
          footerFontStyle: "bold",
          footerSpacing: 2,
          footerMarginTop: 6,
          footerFontColor: "#fff",
          footerAlign: "left",
          yPadding: 6,
          xPadding: 6,
          caretSize: 5,
          cornerRadius: 6,
          multiKeyBackground: "#fff",
          displayColors: !0,
          callbacks: {
            beforeTitle: s.noop,
            title: function title(t, e) {
              var a = "",
                i = e.labels,
                n = i ? i.length : 0;
              if (t.length > 0) {
                var o = t[0];
                o.xLabel ? a = o.xLabel : n > 0 && o.index < n && (a = i[o.index]);
              }
              return a;
            },
            afterTitle: s.noop,
            beforeBody: s.noop,
            beforeLabel: s.noop,
            label: function label(t, e) {
              var a = e.datasets[t.datasetIndex].label || "";
              return a + ": " + t.yLabel;
            },
            labelColor: function labelColor(t, e) {
              var a = e.getDatasetMeta(t.datasetIndex),
                i = a.data[t.index],
                n = i._view;
              return {
                borderColor: n.borderColor,
                backgroundColor: n.backgroundColor
              };
            },
            afterLabel: s.noop,
            afterBody: s.noop,
            beforeFooter: s.noop,
            footer: s.noop,
            afterFooter: s.noop
          }
        }, t.Tooltip = t.Element.extend({
          initialize: function initialize() {
            this._model = n(this._options);
          },
          getTitle: function getTitle() {
            var t = this,
              e = t._options,
              i = e.callbacks,
              n = i.beforeTitle.apply(t, arguments),
              o = i.title.apply(t, arguments),
              r = i.afterTitle.apply(t, arguments),
              l = [];
            return l = a(l, n), l = a(l, o), l = a(l, r);
          },
          getBeforeBody: function getBeforeBody() {
            var t = this._options.callbacks.beforeBody.apply(this, arguments);
            return s.isArray(t) ? t : void 0 !== t ? [t] : [];
          },
          getBody: function getBody(t, e) {
            var i = this,
              n = i._options.callbacks,
              o = [];
            return s.each(t, function (t) {
              var r = {
                before: [],
                lines: [],
                after: []
              };
              a(r.before, n.beforeLabel.call(i, t, e)), a(r.lines, n.label.call(i, t, e)), a(r.after, n.afterLabel.call(i, t, e)), o.push(r);
            }), o;
          },
          getAfterBody: function getAfterBody() {
            var t = this._options.callbacks.afterBody.apply(this, arguments);
            return s.isArray(t) ? t : void 0 !== t ? [t] : [];
          },
          getFooter: function getFooter() {
            var t = this,
              e = t._options.callbacks,
              i = e.beforeFooter.apply(t, arguments),
              n = e.footer.apply(t, arguments),
              o = e.afterFooter.apply(t, arguments),
              r = [];
            return r = a(r, i), r = a(r, n), r = a(r, o);
          },
          update: function update(e) {
            var a,
              d,
              u = this,
              c = u._options,
              h = u._model,
              f = u._model = n(c),
              g = u._active,
              p = u._data,
              m = u._chartInstance,
              b = {
                xAlign: h.xAlign,
                yAlign: h.yAlign
              },
              v = {
                x: h.x,
                y: h.y
              },
              x = {
                width: h.width,
                height: h.height
              },
              y = {
                x: h.caretX,
                y: h.caretY
              };
            if (g.length) {
              f.opacity = 1;
              var k = [];
              y = t.Tooltip.positioners[c.position](g, u._eventPosition);
              var S = [];
              for (a = 0, d = g.length; d > a; ++a) S.push(i(g[a]));
              c.filter && (S = S.filter(function (t) {
                return c.filter(t, p);
              })), c.itemSort && (S = S.sort(function (t, e) {
                return c.itemSort(t, e, p);
              })), s.each(S, function (t) {
                k.push(c.callbacks.labelColor.call(u, t, m));
              }), f.title = u.getTitle(S, p), f.beforeBody = u.getBeforeBody(S, p), f.body = u.getBody(S, p), f.afterBody = u.getAfterBody(S, p), f.footer = u.getFooter(S, p), f.x = Math.round(y.x), f.y = Math.round(y.y), f.caretPadding = s.getValueOrDefault(y.padding, 2), f.labelColors = k, f.dataPoints = S, x = o(this, f), b = r(this, x), v = l(f, x, b);
            } else f.opacity = 0;
            return f.xAlign = b.xAlign, f.yAlign = b.yAlign, f.x = v.x, f.y = v.y, f.width = x.width, f.height = x.height, f.caretX = y.x, f.caretY = y.y, u._model = f, e && c.custom && c.custom.call(u, f), u;
          },
          drawCaret: function drawCaret(t, a, i) {
            var n,
              o,
              r,
              l,
              s,
              d,
              u = this._view,
              c = this._chart.ctx,
              h = u.caretSize,
              f = u.cornerRadius,
              g = u.xAlign,
              p = u.yAlign,
              m = t.x,
              b = t.y,
              v = a.width,
              x = a.height;
            "center" === p ? ("left" === g ? (n = m, o = n - h, r = n) : (n = m + v, o = n + h, r = n), s = b + x / 2, l = s - h, d = s + h) : ("left" === g ? (n = m + f, o = n + h, r = o + h) : "right" === g ? (n = m + v - f, o = n - h, r = o - h) : (o = m + v / 2, n = o - h, r = o + h), "top" === p ? (l = b, s = l - h, d = l) : (l = b + x, s = l + h, d = l)), c.fillStyle = e(u.backgroundColor, i), c.beginPath(), c.moveTo(n, l), c.lineTo(o, s), c.lineTo(r, d), c.closePath(), c.fill();
          },
          drawTitle: function drawTitle(t, a, i, n) {
            var o = a.title;
            if (o.length) {
              i.textAlign = a._titleAlign, i.textBaseline = "top";
              var r = a.titleFontSize,
                l = a.titleSpacing;
              i.fillStyle = e(a.titleFontColor, n), i.font = s.fontString(r, a._titleFontStyle, a._titleFontFamily);
              var d, u;
              for (d = 0, u = o.length; u > d; ++d) i.fillText(o[d], t.x, t.y), t.y += r + l, d + 1 === o.length && (t.y += a.titleMarginBottom - l);
            }
          },
          drawBody: function drawBody(t, a, i, n) {
            var o = a.bodyFontSize,
              r = a.bodySpacing,
              l = a.body;
            i.textAlign = a._bodyAlign, i.textBaseline = "top";
            var d = e(a.bodyFontColor, n);
            i.fillStyle = d, i.font = s.fontString(o, a._bodyFontStyle, a._bodyFontFamily);
            var u = 0,
              c = function c(e) {
                i.fillText(e, t.x + u, t.y), t.y += o + r;
              };
            s.each(a.beforeBody, c);
            var h = a.displayColors;
            u = h ? o + 2 : 0, s.each(l, function (r, l) {
              s.each(r.before, c), s.each(r.lines, function (r) {
                h && (i.fillStyle = e(a.legendColorBackground, n), i.fillRect(t.x, t.y, o, o), i.strokeStyle = e(a.labelColors[l].borderColor, n), i.strokeRect(t.x, t.y, o, o), i.fillStyle = e(a.labelColors[l].backgroundColor, n), i.fillRect(t.x + 1, t.y + 1, o - 2, o - 2), i.fillStyle = d), c(r);
              }), s.each(r.after, c);
            }), u = 0, s.each(a.afterBody, c), t.y -= r;
          },
          drawFooter: function drawFooter(t, a, i, n) {
            var o = a.footer;
            o.length && (t.y += a.footerMarginTop, i.textAlign = a._footerAlign, i.textBaseline = "top", i.fillStyle = e(a.footerFontColor, n), i.font = s.fontString(a.footerFontSize, a._footerFontStyle, a._footerFontFamily), s.each(o, function (e) {
              i.fillText(e, t.x, t.y), t.y += a.footerFontSize + a.footerSpacing;
            }));
          },
          drawBackground: function drawBackground(t, a, i, n, o) {
            i.fillStyle = e(a.backgroundColor, o), s.drawRoundedRectangle(i, t.x, t.y, n.width, n.height, a.cornerRadius), i.fill();
          },
          draw: function draw() {
            var t = this._chart.ctx,
              e = this._view;
            if (0 !== e.opacity) {
              var a = {
                  width: e.width,
                  height: e.height
                },
                i = {
                  x: e.x,
                  y: e.y
                },
                n = Math.abs(e.opacity < .001) ? 0 : e.opacity;
              this._options.enabled && (this.drawBackground(i, e, t, a, n), this.drawCaret(i, a, n), i.x += e.xPadding, i.y += e.yPadding, this.drawTitle(i, e, t, n), this.drawBody(i, e, t, n), this.drawFooter(i, e, t, n));
            }
          },
          handleEvent: function handleEvent(t) {
            var e = this,
              a = e._options,
              i = !1;
            if (e._lastActive = e._lastActive || [], "mouseout" === t.type ? e._active = [] : e._active = e._chartInstance.getElementsAtEventForMode(t, a.mode, a), i = !s.arrayEquals(e._active, e._lastActive), e._lastActive = e._active, a.enabled || a.custom) {
              e._eventPosition = s.getRelativePosition(t, e._chart);
              var n = e._model;
              e.update(!0), e.pivot(), i |= n.x !== e._model.x || n.y !== e._model.y;
            }
            return i;
          }
        }), t.Tooltip.positioners = {
          average: function average(t) {
            if (!t.length) return !1;
            var e,
              a,
              i = 0,
              n = 0,
              o = 0;
            for (e = 0, a = t.length; a > e; ++e) {
              var r = t[e];
              if (r && r.hasValue()) {
                var l = r.tooltipPosition();
                i += l.x, n += l.y, ++o;
              }
            }
            return {
              x: Math.round(i / o),
              y: Math.round(n / o)
            };
          },
          nearest: function nearest(t, e) {
            var a,
              i,
              n,
              o = e.x,
              r = e.y,
              l = Number.POSITIVE_INFINITY;
            for (i = 0, n = t.length; n > i; ++i) {
              var d = t[i];
              if (d && d.hasValue()) {
                var u = d.getCenterPoint(),
                  c = s.distanceBetweenPoints(e, u);
                l > c && (l = c, a = d);
              }
            }
            if (a) {
              var h = a.tooltipPosition();
              o = h.x, r = h.y;
            }
            return {
              x: o,
              y: r
            };
          }
        };
      };
    }, {}],
    37: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = t.defaults.global;
        a.elements.arc = {
          backgroundColor: a.defaultColor,
          borderColor: "#fff",
          borderWidth: 2
        }, t.elements.Arc = t.Element.extend({
          inLabelRange: function inLabelRange(t) {
            var e = this._view;
            return e ? Math.pow(t - e.x, 2) < Math.pow(e.radius + e.hoverRadius, 2) : !1;
          },
          inRange: function inRange(t, a) {
            var i = this._view;
            if (i) {
              for (var n = e.getAngleFromPoint(i, {
                  x: t,
                  y: a
                }), o = n.angle, r = n.distance, l = i.startAngle, s = i.endAngle; l > s;) s += 2 * Math.PI;
              for (; o > s;) o -= 2 * Math.PI;
              for (; l > o;) o += 2 * Math.PI;
              var d = o >= l && s >= o,
                u = r >= i.innerRadius && r <= i.outerRadius;
              return d && u;
            }
            return !1;
          },
          getCenterPoint: function getCenterPoint() {
            var t = this._view,
              e = (t.startAngle + t.endAngle) / 2,
              a = (t.innerRadius + t.outerRadius) / 2;
            return {
              x: t.x + Math.cos(e) * a,
              y: t.y + Math.sin(e) * a
            };
          },
          getArea: function getArea() {
            var t = this._view;
            return Math.PI * ((t.endAngle - t.startAngle) / (2 * Math.PI)) * (Math.pow(t.outerRadius, 2) - Math.pow(t.innerRadius, 2));
          },
          tooltipPosition: function tooltipPosition() {
            var t = this._view,
              e = t.startAngle + (t.endAngle - t.startAngle) / 2,
              a = (t.outerRadius - t.innerRadius) / 2 + t.innerRadius;
            return {
              x: t.x + Math.cos(e) * a,
              y: t.y + Math.sin(e) * a
            };
          },
          draw: function draw() {
            var t = this._chart.ctx,
              e = this._view,
              a = e.startAngle,
              i = e.endAngle;
            t.beginPath(), t.arc(e.x, e.y, e.outerRadius, a, i), t.arc(e.x, e.y, e.innerRadius, i, a, !0), t.closePath(), t.strokeStyle = e.borderColor, t.lineWidth = e.borderWidth, t.fillStyle = e.backgroundColor, t.fill(), t.lineJoin = "bevel", e.borderWidth && t.stroke();
          }
        });
      };
    }, {}],
    38: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = t.defaults.global;
        t.defaults.global.elements.line = {
          tension: .4,
          backgroundColor: a.defaultColor,
          borderWidth: 3,
          borderColor: a.defaultColor,
          borderCapStyle: "butt",
          borderDash: [],
          borderDashOffset: 0,
          borderJoinStyle: "miter",
          capBezierPoints: !0,
          fill: !0
        }, t.elements.Line = t.Element.extend({
          draw: function draw() {
            function t(t, e) {
              var a = e._view;
              e._view.steppedLine === !0 ? (s.lineTo(a.x, t._view.y), s.lineTo(a.x, a.y)) : 0 === e._view.tension ? s.lineTo(a.x, a.y) : s.bezierCurveTo(t._view.controlPointNextX, t._view.controlPointNextY, a.controlPointPreviousX, a.controlPointPreviousY, a.x, a.y);
            }
            var i = this,
              n = i._view,
              o = n.spanGaps,
              r = n.scaleZero,
              l = i._loop;
            l || ("top" === n.fill ? r = n.scaleTop : "bottom" === n.fill && (r = n.scaleBottom));
            var s = i._chart.ctx;
            s.save();
            var d = i._children.slice(),
              u = -1;
            l && d.length && d.push(d[0]);
            var c, h, f, g;
            if (d.length && n.fill) {
              for (s.beginPath(), c = 0; c < d.length; ++c) h = d[c], f = e.previousItem(d, c), g = h._view, 0 === c ? (l ? s.moveTo(r.x, r.y) : s.moveTo(g.x, r), g.skip || (u = c, s.lineTo(g.x, g.y))) : (f = -1 === u ? f : d[u], g.skip ? o || u !== c - 1 || (l ? s.lineTo(r.x, r.y) : s.lineTo(f._view.x, r)) : (u !== c - 1 ? o && -1 !== u ? t(f, h) : l ? s.lineTo(g.x, g.y) : (s.lineTo(g.x, r), s.lineTo(g.x, g.y)) : t(f, h), u = c));
              l || -1 === u || s.lineTo(d[u]._view.x, r), s.fillStyle = n.backgroundColor || a.defaultColor, s.closePath(), s.fill();
            }
            var p = a.elements.line;
            for (s.lineCap = n.borderCapStyle || p.borderCapStyle, s.setLineDash && s.setLineDash(n.borderDash || p.borderDash), s.lineDashOffset = n.borderDashOffset || p.borderDashOffset, s.lineJoin = n.borderJoinStyle || p.borderJoinStyle, s.lineWidth = n.borderWidth || p.borderWidth, s.strokeStyle = n.borderColor || a.defaultColor, s.beginPath(), u = -1, c = 0; c < d.length; ++c) h = d[c], f = e.previousItem(d, c), g = h._view, 0 === c ? g.skip || (s.moveTo(g.x, g.y), u = c) : (f = -1 === u ? f : d[u], g.skip || (u !== c - 1 && !o || -1 === u ? s.moveTo(g.x, g.y) : t(f, h), u = c));
            s.stroke(), s.restore();
          }
        });
      };
    }, {}],
    39: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t) {
          var e = this._view;
          return e ? Math.pow(t - e.x, 2) < Math.pow(e.radius + e.hitRadius, 2) : !1;
        }
        function a(t) {
          var e = this._view;
          return e ? Math.pow(t - e.y, 2) < Math.pow(e.radius + e.hitRadius, 2) : !1;
        }
        var i = t.helpers,
          n = t.defaults.global,
          o = n.defaultColor;
        n.elements.point = {
          radius: 3,
          pointStyle: "circle",
          backgroundColor: o,
          borderWidth: 1,
          borderColor: o,
          hitRadius: 1,
          hoverRadius: 4,
          hoverBorderWidth: 1
        }, t.elements.Point = t.Element.extend({
          inRange: function inRange(t, e) {
            var a = this._view;
            return a ? Math.pow(t - a.x, 2) + Math.pow(e - a.y, 2) < Math.pow(a.hitRadius + a.radius, 2) : !1;
          },
          inLabelRange: e,
          inXRange: e,
          inYRange: a,
          getCenterPoint: function getCenterPoint() {
            var t = this._view;
            return {
              x: t.x,
              y: t.y
            };
          },
          getArea: function getArea() {
            return Math.PI * Math.pow(this._view.radius, 2);
          },
          tooltipPosition: function tooltipPosition() {
            var t = this._view;
            return {
              x: t.x,
              y: t.y,
              padding: t.radius + t.borderWidth
            };
          },
          draw: function draw() {
            var e = this._view,
              a = this._chart.ctx,
              r = e.pointStyle,
              l = e.radius,
              s = e.x,
              d = e.y;
            e.skip || (a.strokeStyle = e.borderColor || o, a.lineWidth = i.getValueOrDefault(e.borderWidth, n.elements.point.borderWidth), a.fillStyle = e.backgroundColor || o, t.canvasHelpers.drawPoint(a, r, l, s, d));
          }
        });
      };
    }, {}],
    40: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        function e(t) {
          return void 0 !== t._view.width;
        }
        function a(t) {
          var a,
            i,
            n,
            o,
            r = t._view;
          if (e(t)) {
            var l = r.width / 2;
            a = r.x - l, i = r.x + l, n = Math.min(r.y, r.base), o = Math.max(r.y, r.base);
          } else {
            var s = r.height / 2;
            a = Math.min(r.x, r.base), i = Math.max(r.x, r.base), n = r.y - s, o = r.y + s;
          }
          return {
            left: a,
            top: n,
            right: i,
            bottom: o
          };
        }
        var i = t.defaults.global;
        i.elements.rectangle = {
          backgroundColor: i.defaultColor,
          borderWidth: 0,
          borderColor: i.defaultColor,
          borderSkipped: "bottom"
        }, t.elements.Rectangle = t.Element.extend({
          draw: function draw() {
            function t(t) {
              return s[(u + t) % 4];
            }
            var e = this._chart.ctx,
              a = this._view,
              i = a.width / 2,
              n = a.x - i,
              o = a.x + i,
              r = a.base - (a.base - a.y),
              l = a.borderWidth / 2;
            a.borderWidth && (n += l, o -= l, r += l), e.beginPath(), e.fillStyle = a.backgroundColor, e.strokeStyle = a.borderColor, e.lineWidth = a.borderWidth;
            var s = [[n, a.base], [n, r], [o, r], [o, a.base]],
              d = ["bottom", "left", "top", "right"],
              u = d.indexOf(a.borderSkipped, 0);
            -1 === u && (u = 0);
            var c = t(0);
            e.moveTo(c[0], c[1]);
            for (var h = 1; 4 > h; h++) c = t(h), e.lineTo(c[0], c[1]);
            e.fill(), a.borderWidth && e.stroke();
          },
          height: function height() {
            var t = this._view;
            return t.base - t.y;
          },
          inRange: function inRange(t, e) {
            var i = !1;
            if (this._view) {
              var n = a(this);
              i = t >= n.left && t <= n.right && e >= n.top && e <= n.bottom;
            }
            return i;
          },
          inLabelRange: function inLabelRange(t, i) {
            var n = this;
            if (!n._view) return !1;
            var o = !1,
              r = a(n);
            return o = e(n) ? t >= r.left && t <= r.right : i >= r.top && i <= r.bottom;
          },
          inXRange: function inXRange(t) {
            var e = a(this);
            return t >= e.left && t <= e.right;
          },
          inYRange: function inYRange(t) {
            var e = a(this);
            return t >= e.top && t <= e.bottom;
          },
          getCenterPoint: function getCenterPoint() {
            var t,
              a,
              i = this._view;
            return e(this) ? (t = i.x, a = (i.y + i.base) / 2) : (t = (i.x + i.base) / 2, a = i.y), {
              x: t,
              y: a
            };
          },
          getArea: function getArea() {
            var t = this._view;
            return t.width * Math.abs(t.y - t.base);
          },
          tooltipPosition: function tooltipPosition() {
            var t = this._view;
            return {
              x: t.x,
              y: t.y
            };
          }
        });
      };
    }, {}],
    41: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = {
            position: "bottom"
          },
          i = t.Scale.extend({
            getLabels: function getLabels() {
              var t = this.chart.data;
              return (this.isHorizontal() ? t.xLabels : t.yLabels) || t.labels;
            },
            determineDataLimits: function determineDataLimits() {
              var t = this,
                a = t.getLabels();
              t.minIndex = 0, t.maxIndex = a.length - 1;
              var i;
              void 0 !== t.options.ticks.min && (i = e.indexOf(a, t.options.ticks.min), t.minIndex = -1 !== i ? i : t.minIndex), void 0 !== t.options.ticks.max && (i = e.indexOf(a, t.options.ticks.max), t.maxIndex = -1 !== i ? i : t.maxIndex), t.min = a[t.minIndex], t.max = a[t.maxIndex];
            },
            buildTicks: function buildTicks() {
              var t = this,
                e = t.getLabels();
              t.ticks = 0 === t.minIndex && t.maxIndex === e.length - 1 ? e : e.slice(t.minIndex, t.maxIndex + 1);
            },
            getLabelForIndex: function getLabelForIndex(t, e) {
              var a = this,
                i = a.chart.data,
                n = a.isHorizontal();
              return i.xLabels && n || i.yLabels && !n ? a.getRightValue(i.datasets[e].data[t]) : a.ticks[t];
            },
            getPixelForValue: function getPixelForValue(t, e, a, i) {
              var n = this,
                o = Math.max(n.maxIndex + 1 - n.minIndex - (n.options.gridLines.offsetGridLines ? 0 : 1), 1);
              if (void 0 !== t && isNaN(e)) {
                var r = n.getLabels(),
                  l = r.indexOf(t);
                e = -1 !== l ? l : e;
              }
              if (n.isHorizontal()) {
                var s = n.width - (n.paddingLeft + n.paddingRight),
                  d = s / o,
                  u = d * (e - n.minIndex) + n.paddingLeft;
                return (n.options.gridLines.offsetGridLines && i || n.maxIndex === n.minIndex && i) && (u += d / 2), n.left + Math.round(u);
              }
              var c = n.height - (n.paddingTop + n.paddingBottom),
                h = c / o,
                f = h * (e - n.minIndex) + n.paddingTop;
              return n.options.gridLines.offsetGridLines && i && (f += h / 2), n.top + Math.round(f);
            },
            getPixelForTick: function getPixelForTick(t, e) {
              return this.getPixelForValue(this.ticks[t], t + this.minIndex, null, e);
            },
            getValueForPixel: function getValueForPixel(t) {
              var e,
                a = this,
                i = Math.max(a.ticks.length - (a.options.gridLines.offsetGridLines ? 0 : 1), 1),
                n = a.isHorizontal(),
                o = n ? a.width - (a.paddingLeft + a.paddingRight) : a.height - (a.paddingTop + a.paddingBottom),
                r = o / i;
              return t -= n ? a.left : a.top, a.options.gridLines.offsetGridLines && (t -= r / 2), t -= n ? a.paddingLeft : a.paddingTop, e = 0 >= t ? 0 : Math.round(t / r);
            },
            getBasePixel: function getBasePixel() {
              return this.bottom;
            }
          });
        t.scaleService.registerScaleType("category", i, a);
      };
    }, {}],
    42: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = {
            position: "left",
            ticks: {
              callback: t.Ticks.formatters.linear
            }
          },
          i = t.LinearScaleBase.extend({
            determineDataLimits: function determineDataLimits() {
              function t(t) {
                return l ? t.xAxisID === a.id : t.yAxisID === a.id;
              }
              var a = this,
                i = a.options,
                n = a.chart,
                o = n.data,
                r = o.datasets,
                l = a.isHorizontal();
              if (a.min = null, a.max = null, i.stacked) {
                var s = {};
                e.each(r, function (o, r) {
                  var l = n.getDatasetMeta(r);
                  void 0 === s[l.type] && (s[l.type] = {
                    positiveValues: [],
                    negativeValues: []
                  });
                  var d = s[l.type].positiveValues,
                    u = s[l.type].negativeValues;
                  n.isDatasetVisible(r) && t(l) && e.each(o.data, function (t, e) {
                    var n = +a.getRightValue(t);
                    isNaN(n) || l.data[e].hidden || (d[e] = d[e] || 0, u[e] = u[e] || 0, i.relativePoints ? d[e] = 100 : 0 > n ? u[e] += n : d[e] += n);
                  });
                }), e.each(s, function (t) {
                  var i = t.positiveValues.concat(t.negativeValues),
                    n = e.min(i),
                    o = e.max(i);
                  a.min = null === a.min ? n : Math.min(a.min, n), a.max = null === a.max ? o : Math.max(a.max, o);
                });
              } else e.each(r, function (i, o) {
                var r = n.getDatasetMeta(o);
                n.isDatasetVisible(o) && t(r) && e.each(i.data, function (t, e) {
                  var i = +a.getRightValue(t);
                  isNaN(i) || r.data[e].hidden || (null === a.min ? a.min = i : i < a.min && (a.min = i), null === a.max ? a.max = i : i > a.max && (a.max = i));
                });
              });
              this.handleTickRangeOptions();
            },
            getTickLimit: function getTickLimit() {
              var a,
                i = this,
                n = i.options.ticks;
              if (i.isHorizontal()) a = Math.min(n.maxTicksLimit ? n.maxTicksLimit : 11, Math.ceil(i.width / 50));else {
                var o = e.getValueOrDefault(n.fontSize, t.defaults.global.defaultFontSize);
                a = Math.min(n.maxTicksLimit ? n.maxTicksLimit : 11, Math.ceil(i.height / (2 * o)));
              }
              return a;
            },
            handleDirectionalChanges: function handleDirectionalChanges() {
              this.isHorizontal() || this.ticks.reverse();
            },
            getLabelForIndex: function getLabelForIndex(t, e) {
              return +this.getRightValue(this.chart.data.datasets[e].data[t]);
            },
            getPixelForValue: function getPixelForValue(t) {
              var e,
                a,
                i = this,
                n = i.paddingLeft,
                o = i.paddingBottom,
                r = i.start,
                l = +i.getRightValue(t),
                s = i.end - r;
              return i.isHorizontal() ? (a = i.width - (n + i.paddingRight), e = i.left + a / s * (l - r), Math.round(e + n)) : (a = i.height - (i.paddingTop + o), e = i.bottom - o - a / s * (l - r), Math.round(e));
            },
            getValueForPixel: function getValueForPixel(t) {
              var e = this,
                a = e.isHorizontal(),
                i = e.paddingLeft,
                n = e.paddingBottom,
                o = a ? e.width - (i + e.paddingRight) : e.height - (e.paddingTop + n),
                r = (a ? t - e.left - i : e.bottom - n - t) / o;
              return e.start + (e.end - e.start) * r;
            },
            getPixelForTick: function getPixelForTick(t) {
              return this.getPixelForValue(this.ticksAsNumbers[t]);
            }
          });
        t.scaleService.registerScaleType("linear", i, a);
      };
    }, {}],
    43: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = e.noop;
        t.LinearScaleBase = t.Scale.extend({
          handleTickRangeOptions: function handleTickRangeOptions() {
            var t = this,
              a = t.options,
              i = a.ticks;
            if (i.beginAtZero) {
              var n = e.sign(t.min),
                o = e.sign(t.max);
              0 > n && 0 > o ? t.max = 0 : n > 0 && o > 0 && (t.min = 0);
            }
            void 0 !== i.min ? t.min = i.min : void 0 !== i.suggestedMin && (t.min = Math.min(t.min, i.suggestedMin)), void 0 !== i.max ? t.max = i.max : void 0 !== i.suggestedMax && (t.max = Math.max(t.max, i.suggestedMax)), t.min === t.max && (t.max++, i.beginAtZero || t.min--);
          },
          getTickLimit: a,
          handleDirectionalChanges: a,
          buildTicks: function buildTicks() {
            var a = this,
              i = a.options,
              n = i.ticks,
              o = a.getTickLimit();
            o = Math.max(2, o);
            var r = {
                maxTicks: o,
                min: n.min,
                max: n.max,
                stepSize: e.getValueOrDefault(n.fixedStepSize, n.stepSize)
              },
              l = a.ticks = t.Ticks.generators.linear(r, a);
            a.handleDirectionalChanges(), a.max = e.max(l), a.min = e.min(l), n.reverse ? (l.reverse(), a.start = a.max, a.end = a.min) : (a.start = a.min, a.end = a.max);
          },
          convertTicksToLabels: function convertTicksToLabels() {
            var e = this;
            e.ticksAsNumbers = e.ticks.slice(), e.zeroLineIndex = e.ticks.indexOf(0), t.Scale.prototype.convertTicksToLabels.call(e);
          }
        });
      };
    }, {}],
    44: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = {
            position: "left",
            ticks: {
              callback: t.Ticks.formatters.logarithmic
            }
          },
          i = t.Scale.extend({
            determineDataLimits: function determineDataLimits() {
              function t(t) {
                return d ? t.xAxisID === a.id : t.yAxisID === a.id;
              }
              var a = this,
                i = a.options,
                n = i.ticks,
                o = a.chart,
                r = o.data,
                l = r.datasets,
                s = e.getValueOrDefault,
                d = a.isHorizontal();
              if (a.min = null, a.max = null, a.minNotZero = null, i.stacked) {
                var u = {};
                e.each(l, function (n, r) {
                  var l = o.getDatasetMeta(r);
                  o.isDatasetVisible(r) && t(l) && (void 0 === u[l.type] && (u[l.type] = []), e.each(n.data, function (t, e) {
                    var n = u[l.type],
                      o = +a.getRightValue(t);
                    isNaN(o) || l.data[e].hidden || (n[e] = n[e] || 0, i.relativePoints ? n[e] = 100 : n[e] += o);
                  }));
                }), e.each(u, function (t) {
                  var i = e.min(t),
                    n = e.max(t);
                  a.min = null === a.min ? i : Math.min(a.min, i), a.max = null === a.max ? n : Math.max(a.max, n);
                });
              } else e.each(l, function (i, n) {
                var r = o.getDatasetMeta(n);
                o.isDatasetVisible(n) && t(r) && e.each(i.data, function (t, e) {
                  var i = +a.getRightValue(t);
                  isNaN(i) || r.data[e].hidden || (null === a.min ? a.min = i : i < a.min && (a.min = i), null === a.max ? a.max = i : i > a.max && (a.max = i), 0 !== i && (null === a.minNotZero || i < a.minNotZero) && (a.minNotZero = i));
                });
              });
              a.min = s(n.min, a.min), a.max = s(n.max, a.max), a.min === a.max && (0 !== a.min && null !== a.min ? (a.min = Math.pow(10, Math.floor(e.log10(a.min)) - 1), a.max = Math.pow(10, Math.floor(e.log10(a.max)) + 1)) : (a.min = 1, a.max = 10));
            },
            buildTicks: function buildTicks() {
              var a = this,
                i = a.options,
                n = i.ticks,
                o = {
                  min: n.min,
                  max: n.max
                },
                r = a.ticks = t.Ticks.generators.logarithmic(o, a);
              a.isHorizontal() || r.reverse(), a.max = e.max(r), a.min = e.min(r), n.reverse ? (r.reverse(), a.start = a.max, a.end = a.min) : (a.start = a.min, a.end = a.max);
            },
            convertTicksToLabels: function convertTicksToLabels() {
              this.tickValues = this.ticks.slice(), t.Scale.prototype.convertTicksToLabels.call(this);
            },
            getLabelForIndex: function getLabelForIndex(t, e) {
              return +this.getRightValue(this.chart.data.datasets[e].data[t]);
            },
            getPixelForTick: function getPixelForTick(t) {
              return this.getPixelForValue(this.tickValues[t]);
            },
            getPixelForValue: function getPixelForValue(t) {
              var a,
                i,
                n,
                o = this,
                r = o.start,
                l = +o.getRightValue(t),
                s = o.paddingTop,
                d = o.paddingBottom,
                u = o.paddingLeft,
                c = o.options,
                h = c.ticks;
              return o.isHorizontal() ? (n = e.log10(o.end) - e.log10(r), 0 === l ? i = o.left + u : (a = o.width - (u + o.paddingRight), i = o.left + a / n * (e.log10(l) - e.log10(r)), i += u)) : (a = o.height - (s + d), 0 !== r || h.reverse ? 0 === o.end && h.reverse ? (n = e.log10(o.start) - e.log10(o.minNotZero), i = l === o.end ? o.top + s : l === o.minNotZero ? o.top + s + .02 * a : o.top + s + .02 * a + .98 * a / n * (e.log10(l) - e.log10(o.minNotZero))) : (n = e.log10(o.end) - e.log10(r), a = o.height - (s + d), i = o.bottom - d - a / n * (e.log10(l) - e.log10(r))) : (n = e.log10(o.end) - e.log10(o.minNotZero), i = l === r ? o.bottom - d : l === o.minNotZero ? o.bottom - d - .02 * a : o.bottom - d - .02 * a - .98 * a / n * (e.log10(l) - e.log10(o.minNotZero)))), i;
            },
            getValueForPixel: function getValueForPixel(t) {
              var a,
                i,
                n = this,
                o = e.log10(n.end) - e.log10(n.start);
              return n.isHorizontal() ? (i = n.width - (n.paddingLeft + n.paddingRight), a = n.start * Math.pow(10, (t - n.left - n.paddingLeft) * o / i)) : (i = n.height - (n.paddingTop + n.paddingBottom), a = Math.pow(10, (n.bottom - n.paddingBottom - t) * o / i) / n.start), a;
            }
          });
        t.scaleService.registerScaleType("logarithmic", i, a);
      };
    }, {}],
    45: [function (t, e, a) {
      "use strict";

      e.exports = function (t) {
        var e = t.helpers,
          a = t.defaults.global,
          i = {
            display: !0,
            animate: !0,
            lineArc: !1,
            position: "chartArea",
            angleLines: {
              display: !0,
              color: "rgba(0, 0, 0, 0.1)",
              lineWidth: 1
            },
            ticks: {
              showLabelBackdrop: !0,
              backdropColor: "rgba(255,255,255,0.75)",
              backdropPaddingY: 2,
              backdropPaddingX: 2,
              callback: t.Ticks.formatters.linear
            },
            pointLabels: {
              fontSize: 10,
              callback: function callback(t) {
                return t;
              }
            }
          },
          n = t.LinearScaleBase.extend({
            getValueCount: function getValueCount() {
              return this.chart.data.labels.length;
            },
            setDimensions: function setDimensions() {
              var t = this,
                i = t.options,
                n = i.ticks;
              t.width = t.maxWidth, t.height = t.maxHeight, t.xCenter = Math.round(t.width / 2), t.yCenter = Math.round(t.height / 2);
              var o = e.min([t.height, t.width]),
                r = e.getValueOrDefault(n.fontSize, a.defaultFontSize);
              t.drawingArea = i.display ? o / 2 - (r / 2 + n.backdropPaddingY) : o / 2;
            },
            determineDataLimits: function determineDataLimits() {
              var t = this,
                a = t.chart;
              t.min = null, t.max = null, e.each(a.data.datasets, function (i, n) {
                if (a.isDatasetVisible(n)) {
                  var o = a.getDatasetMeta(n);
                  e.each(i.data, function (e, a) {
                    var i = +t.getRightValue(e);
                    isNaN(i) || o.data[a].hidden || (null === t.min ? t.min = i : i < t.min && (t.min = i), null === t.max ? t.max = i : i > t.max && (t.max = i));
                  });
                }
              }), t.handleTickRangeOptions();
            },
            getTickLimit: function getTickLimit() {
              var t = this.options.ticks,
                i = e.getValueOrDefault(t.fontSize, a.defaultFontSize);
              return Math.min(t.maxTicksLimit ? t.maxTicksLimit : 11, Math.ceil(this.drawingArea / (1.5 * i)));
            },
            convertTicksToLabels: function convertTicksToLabels() {
              var e = this;
              t.LinearScaleBase.prototype.convertTicksToLabels.call(e), e.pointLabels = e.chart.data.labels.map(e.options.pointLabels.callback, e);
            },
            getLabelForIndex: function getLabelForIndex(t, e) {
              return +this.getRightValue(this.chart.data.datasets[e].data[t]);
            },
            fit: function fit() {
              var t,
                i,
                n,
                o,
                r,
                l,
                s,
                d,
                u,
                c,
                h,
                f,
                g = this.options.pointLabels,
                p = e.getValueOrDefault(g.fontSize, a.defaultFontSize),
                m = e.getValueOrDefault(g.fontStyle, a.defaultFontStyle),
                b = e.getValueOrDefault(g.fontFamily, a.defaultFontFamily),
                v = e.fontString(p, m, b),
                x = e.min([this.height / 2 - p - 5, this.width / 2]),
                y = this.width,
                k = 0;
              for (this.ctx.font = v, i = 0; i < this.getValueCount(); i++) {
                t = this.getPointPosition(i, x), n = this.ctx.measureText(this.pointLabels[i] ? this.pointLabels[i] : "").width + 5;
                var S = this.getIndexAngle(i) + Math.PI / 2,
                  w = 360 * S / (2 * Math.PI) % 360;
                0 === w || 180 === w ? (o = n / 2, t.x + o > y && (y = t.x + o, r = i), t.x - o < k && (k = t.x - o, s = i)) : 180 > w ? t.x + n > y && (y = t.x + n, r = i) : t.x - n < k && (k = t.x - n, s = i);
              }
              u = k, c = Math.ceil(y - this.width), l = this.getIndexAngle(r), d = this.getIndexAngle(s), h = c / Math.sin(l + Math.PI / 2), f = u / Math.sin(d + Math.PI / 2), h = e.isNumber(h) ? h : 0, f = e.isNumber(f) ? f : 0, this.drawingArea = Math.round(x - (f + h) / 2), this.setCenterPoint(f, h);
            },
            setCenterPoint: function setCenterPoint(t, e) {
              var a = this,
                i = a.width - e - a.drawingArea,
                n = t + a.drawingArea;
              a.xCenter = Math.round((n + i) / 2 + a.left), a.yCenter = Math.round(a.height / 2 + a.top);
            },
            getIndexAngle: function getIndexAngle(t) {
              var e = 2 * Math.PI / this.getValueCount(),
                a = this.chart.options && this.chart.options.startAngle ? this.chart.options.startAngle : 0,
                i = a * Math.PI * 2 / 360;
              return t * e - Math.PI / 2 + i;
            },
            getDistanceFromCenterForValue: function getDistanceFromCenterForValue(t) {
              var e = this;
              if (null === t) return 0;
              var a = e.drawingArea / (e.max - e.min);
              return e.options.reverse ? (e.max - t) * a : (t - e.min) * a;
            },
            getPointPosition: function getPointPosition(t, e) {
              var a = this,
                i = a.getIndexAngle(t);
              return {
                x: Math.round(Math.cos(i) * e) + a.xCenter,
                y: Math.round(Math.sin(i) * e) + a.yCenter
              };
            },
            getPointPositionForValue: function getPointPositionForValue(t, e) {
              return this.getPointPosition(t, this.getDistanceFromCenterForValue(e));
            },
            getBasePosition: function getBasePosition() {
              var t = this,
                e = t.min,
                a = t.max;
              return t.getPointPositionForValue(0, t.beginAtZero ? 0 : 0 > e && 0 > a ? a : e > 0 && a > 0 ? e : 0);
            },
            draw: function draw() {
              var t = this,
                i = t.options,
                n = i.gridLines,
                o = i.ticks,
                r = i.angleLines,
                l = i.pointLabels,
                s = e.getValueOrDefault;
              if (i.display) {
                var d = t.ctx,
                  u = s(o.fontSize, a.defaultFontSize),
                  c = s(o.fontStyle, a.defaultFontStyle),
                  h = s(o.fontFamily, a.defaultFontFamily),
                  f = e.fontString(u, c, h);
                if (e.each(t.ticks, function (r, l) {
                  if (l > 0 || i.reverse) {
                    var c = t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),
                      h = t.yCenter - c;
                    if (n.display && 0 !== l) if (d.strokeStyle = e.getValueAtIndexOrDefault(n.color, l - 1), d.lineWidth = e.getValueAtIndexOrDefault(n.lineWidth, l - 1), i.lineArc) d.beginPath(), d.arc(t.xCenter, t.yCenter, c, 0, 2 * Math.PI), d.closePath(), d.stroke();else {
                      d.beginPath();
                      for (var g = 0; g < t.getValueCount(); g++) {
                        var p = t.getPointPosition(g, c);
                        0 === g ? d.moveTo(p.x, p.y) : d.lineTo(p.x, p.y);
                      }
                      d.closePath(), d.stroke();
                    }
                    if (o.display) {
                      var m = s(o.fontColor, a.defaultFontColor);
                      if (d.font = f, o.showLabelBackdrop) {
                        var b = d.measureText(r).width;
                        d.fillStyle = o.backdropColor, d.fillRect(t.xCenter - b / 2 - o.backdropPaddingX, h - u / 2 - o.backdropPaddingY, b + 2 * o.backdropPaddingX, u + 2 * o.backdropPaddingY);
                      }
                      d.textAlign = "center", d.textBaseline = "middle", d.fillStyle = m, d.fillText(r, t.xCenter, h);
                    }
                  }
                }), !i.lineArc) {
                  d.lineWidth = r.lineWidth, d.strokeStyle = r.color;
                  for (var g = t.getDistanceFromCenterForValue(i.reverse ? t.min : t.max), p = s(l.fontSize, a.defaultFontSize), m = s(l.fontStyle, a.defaultFontStyle), b = s(l.fontFamily, a.defaultFontFamily), v = e.fontString(p, m, b), x = t.getValueCount() - 1; x >= 0; x--) {
                    if (r.display) {
                      var y = t.getPointPosition(x, g);
                      d.beginPath(), d.moveTo(t.xCenter, t.yCenter), d.lineTo(y.x, y.y), d.stroke(), d.closePath();
                    }
                    var k = t.getPointPosition(x, g + 5),
                      S = s(l.fontColor, a.defaultFontColor);
                    d.font = v, d.fillStyle = S;
                    var w = t.pointLabels,
                      M = this.getIndexAngle(x) + Math.PI / 2,
                      C = 360 * M / (2 * Math.PI) % 360;
                    0 === C || 180 === C ? d.textAlign = "center" : 180 > C ? d.textAlign = "left" : d.textAlign = "right", 90 === C || 270 === C ? d.textBaseline = "middle" : C > 270 || 90 > C ? d.textBaseline = "bottom" : d.textBaseline = "top", d.fillText(w[x] ? w[x] : "", k.x, k.y);
                  }
                }
              }
            }
          });
        t.scaleService.registerScaleType("radialLinear", n, i);
      };
    }, {}],
    46: [function (t, e, a) {
      "use strict";

      var i = t(1);
      i = "function" == typeof i ? i : window.moment, e.exports = function (t) {
        var e = t.helpers,
          a = {
            units: [{
              name: "millisecond",
              steps: [1, 2, 5, 10, 20, 50, 100, 250, 500]
            }, {
              name: "second",
              steps: [1, 2, 5, 10, 30]
            }, {
              name: "minute",
              steps: [1, 2, 5, 10, 30]
            }, {
              name: "hour",
              steps: [1, 2, 3, 6, 12]
            }, {
              name: "day",
              steps: [1, 2, 5]
            }, {
              name: "week",
              maxStep: 4
            }, {
              name: "month",
              maxStep: 3
            }, {
              name: "quarter",
              maxStep: 4
            }, {
              name: "year",
              maxStep: !1
            }]
          },
          n = {
            position: "bottom",
            time: {
              parser: !1,
              format: !1,
              unit: !1,
              round: !1,
              displayFormat: !1,
              isoWeekday: !1,
              minUnit: "millisecond",
              displayFormats: {
                millisecond: "h:mm:ss.SSS a",
                second: "h:mm:ss a",
                minute: "h:mm:ss a",
                hour: "MMM D, hA",
                day: "ll",
                week: "ll",
                month: "MMM YYYY",
                quarter: "[Q]Q - YYYY",
                year: "YYYY"
              }
            },
            ticks: {
              autoSkip: !1
            }
          },
          o = t.Scale.extend({
            initialize: function initialize() {
              if (!i) throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");
              t.Scale.prototype.initialize.call(this);
            },
            getLabelMoment: function getLabelMoment(t, e) {
              return null === t || null === e ? null : "undefined" != typeof this.labelMoments[t] ? this.labelMoments[t][e] : null;
            },
            getLabelDiff: function getLabelDiff(t, e) {
              var a = this;
              return null === t || null === e ? null : (void 0 === a.labelDiffs && a.buildLabelDiffs(), "undefined" != typeof a.labelDiffs[t] ? a.labelDiffs[t][e] : null);
            },
            getMomentStartOf: function getMomentStartOf(t) {
              var e = this;
              return "week" === e.options.time.unit && e.options.time.isoWeekday !== !1 ? t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday) : t.clone().startOf(e.tickUnit);
            },
            determineDataLimits: function determineDataLimits() {
              var t = this;
              t.labelMoments = [];
              var a = [];
              t.chart.data.labels && t.chart.data.labels.length > 0 ? (e.each(t.chart.data.labels, function (e) {
                var i = t.parseTime(e);
                i.isValid() && (t.options.time.round && i.startOf(t.options.time.round), a.push(i));
              }, t), t.firstTick = i.min.call(t, a), t.lastTick = i.max.call(t, a)) : (t.firstTick = null, t.lastTick = null), e.each(t.chart.data.datasets, function (n, o) {
                var r = [],
                  l = t.chart.isDatasetVisible(o);
                "object" == (0, _typeof2.default)(n.data[0]) && null !== n.data[0] ? e.each(n.data, function (e) {
                  var a = t.parseTime(t.getRightValue(e));
                  a.isValid() && (t.options.time.round && a.startOf(t.options.time.round), r.push(a), l && (t.firstTick = null !== t.firstTick ? i.min(t.firstTick, a) : a, t.lastTick = null !== t.lastTick ? i.max(t.lastTick, a) : a));
                }, t) : r = a, t.labelMoments.push(r);
              }, t), t.options.time.min && (t.firstTick = t.parseTime(t.options.time.min)), t.options.time.max && (t.lastTick = t.parseTime(t.options.time.max)), t.firstTick = (t.firstTick || i()).clone(), t.lastTick = (t.lastTick || i()).clone();
            },
            buildLabelDiffs: function buildLabelDiffs() {
              var t = this;
              t.labelDiffs = [];
              var a = [];
              t.chart.data.labels && t.chart.data.labels.length > 0 && e.each(t.chart.data.labels, function (e) {
                var i = t.parseTime(e);
                i.isValid() && (t.options.time.round && i.startOf(t.options.time.round), a.push(i.diff(t.firstTick, t.tickUnit, !0)));
              }, t), e.each(t.chart.data.datasets, function (i) {
                var n = [];
                "object" == (0, _typeof2.default)(i.data[0]) && null !== i.data[0] ? e.each(i.data, function (e) {
                  var a = t.parseTime(t.getRightValue(e));
                  a.isValid() && (t.options.time.round && a.startOf(t.options.time.round), n.push(a.diff(t.firstTick, t.tickUnit, !0)));
                }, t) : n = a, t.labelDiffs.push(n);
              }, t);
            },
            buildTicks: function buildTicks() {
              var i = this;
              i.ctx.save();
              var n = e.getValueOrDefault(i.options.ticks.fontSize, t.defaults.global.defaultFontSize),
                o = e.getValueOrDefault(i.options.ticks.fontStyle, t.defaults.global.defaultFontStyle),
                r = e.getValueOrDefault(i.options.ticks.fontFamily, t.defaults.global.defaultFontFamily),
                l = e.fontString(n, o, r);
              if (i.ctx.font = l, i.ticks = [], i.unitScale = 1, i.scaleSizeInUnits = 0, i.options.time.unit) i.tickUnit = i.options.time.unit || "day", i.displayFormat = i.options.time.displayFormats[i.tickUnit], i.scaleSizeInUnits = i.lastTick.diff(i.firstTick, i.tickUnit, !0), i.unitScale = e.getValueOrDefault(i.options.time.unitStepSize, 1);else {
                var s = i.isHorizontal() ? i.width - (i.paddingLeft + i.paddingRight) : i.height - (i.paddingTop + i.paddingBottom),
                  d = i.tickFormatFunction(i.firstTick, 0, []),
                  u = i.ctx.measureText(d).width,
                  c = Math.cos(e.toRadians(i.options.ticks.maxRotation)),
                  h = Math.sin(e.toRadians(i.options.ticks.maxRotation));
                u = u * c + n * h;
                var f = s / u;
                i.tickUnit = i.options.time.minUnit, i.scaleSizeInUnits = i.lastTick.diff(i.firstTick, i.tickUnit, !0), i.displayFormat = i.options.time.displayFormats[i.tickUnit];
                for (var g = 0, p = a.units[g]; g < a.units.length;) {
                  if (i.unitScale = 1, e.isArray(p.steps) && Math.ceil(i.scaleSizeInUnits / f) < e.max(p.steps)) {
                    for (var m = 0; m < p.steps.length; ++m) if (p.steps[m] >= Math.ceil(i.scaleSizeInUnits / f)) {
                      i.unitScale = e.getValueOrDefault(i.options.time.unitStepSize, p.steps[m]);
                      break;
                    }
                    break;
                  }
                  if (p.maxStep === !1 || Math.ceil(i.scaleSizeInUnits / f) < p.maxStep) {
                    i.unitScale = e.getValueOrDefault(i.options.time.unitStepSize, Math.ceil(i.scaleSizeInUnits / f));
                    break;
                  }
                  ++g, p = a.units[g], i.tickUnit = p.name;
                  var b = i.firstTick.diff(i.getMomentStartOf(i.firstTick), i.tickUnit, !0),
                    v = i.getMomentStartOf(i.lastTick.clone().add(1, i.tickUnit)).diff(i.lastTick, i.tickUnit, !0);
                  i.scaleSizeInUnits = i.lastTick.diff(i.firstTick, i.tickUnit, !0) + b + v, i.displayFormat = i.options.time.displayFormats[p.name];
                }
              }
              var x;
              if (i.options.time.min ? x = i.getMomentStartOf(i.firstTick) : (i.firstTick = i.getMomentStartOf(i.firstTick), x = i.firstTick), !i.options.time.max) {
                var y = i.getMomentStartOf(i.lastTick),
                  k = y.diff(i.lastTick, i.tickUnit, !0);
                0 > k ? i.lastTick = i.getMomentStartOf(i.lastTick.add(1, i.tickUnit)) : k >= 0 && (i.lastTick = y), i.scaleSizeInUnits = i.lastTick.diff(i.firstTick, i.tickUnit, !0);
              }
              i.options.time.displayFormat && (i.displayFormat = i.options.time.displayFormat), i.ticks.push(i.firstTick.clone());
              for (var S = 1; S <= i.scaleSizeInUnits; ++S) {
                var w = x.clone().add(S, i.tickUnit);
                if (i.options.time.max && w.diff(i.lastTick, i.tickUnit, !0) >= 0) break;
                S % i.unitScale === 0 && i.ticks.push(w);
              }
              var M = i.ticks[i.ticks.length - 1].diff(i.lastTick, i.tickUnit);
              (0 !== M || 0 === i.scaleSizeInUnits) && (i.options.time.max ? (i.ticks.push(i.lastTick.clone()), i.scaleSizeInUnits = i.lastTick.diff(i.ticks[0], i.tickUnit, !0)) : (i.ticks.push(i.lastTick.clone()), i.scaleSizeInUnits = i.lastTick.diff(i.firstTick, i.tickUnit, !0))), i.ctx.restore(), i.labelDiffs = void 0;
            },
            getLabelForIndex: function getLabelForIndex(t, e) {
              var a = this,
                i = a.chart.data.labels && t < a.chart.data.labels.length ? a.chart.data.labels[t] : "";
              return "object" == (0, _typeof2.default)(a.chart.data.datasets[e].data[0]) && (i = a.getRightValue(a.chart.data.datasets[e].data[t])), a.options.time.tooltipFormat && (i = a.parseTime(i).format(a.options.time.tooltipFormat)), i;
            },
            tickFormatFunction: function tickFormatFunction(t, a, i) {
              var n = t.format(this.displayFormat),
                o = this.options.ticks,
                r = e.getValueOrDefault(o.callback, o.userCallback);
              return r ? r(n, a, i) : n;
            },
            convertTicksToLabels: function convertTicksToLabels() {
              var t = this;
              t.tickMoments = t.ticks, t.ticks = t.ticks.map(t.tickFormatFunction, t);
            },
            getPixelForValue: function getPixelForValue(t, e, a) {
              var i = this,
                n = null;
              if (void 0 !== e && void 0 !== a && (n = i.getLabelDiff(a, e)), null === n && (t && t.isValid || (t = i.parseTime(i.getRightValue(t))), t && t.isValid && t.isValid() && (n = t.diff(i.firstTick, i.tickUnit, !0))), null !== n) {
                var o = 0 !== n ? n / i.scaleSizeInUnits : n;
                if (i.isHorizontal()) {
                  var r = i.width - (i.paddingLeft + i.paddingRight),
                    l = r * o + i.paddingLeft;
                  return i.left + Math.round(l);
                }
                var s = i.height - (i.paddingTop + i.paddingBottom),
                  d = s * o + i.paddingTop;
                return i.top + Math.round(d);
              }
            },
            getPixelForTick: function getPixelForTick(t) {
              return this.getPixelForValue(this.tickMoments[t], null, null);
            },
            getValueForPixel: function getValueForPixel(t) {
              var e = this,
                a = e.isHorizontal() ? e.width - (e.paddingLeft + e.paddingRight) : e.height - (e.paddingTop + e.paddingBottom),
                n = (t - (e.isHorizontal() ? e.left + e.paddingLeft : e.top + e.paddingTop)) / a;
              return n *= e.scaleSizeInUnits, e.firstTick.clone().add(i.duration(n, e.tickUnit).asSeconds(), "seconds");
            },
            parseTime: function parseTime(t) {
              var e = this;
              return "string" == typeof e.options.time.parser ? i(t, e.options.time.parser) : "function" == typeof e.options.time.parser ? e.options.time.parser(t) : "function" == typeof t.getMonth || "number" == typeof t ? i(t) : t.isValid && t.isValid() ? t : "string" != typeof e.options.time.format && e.options.time.format.call ? (console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"), e.options.time.format(t)) : i(t, e.options.time.format);
            }
          });
        t.scaleService.registerScaleType("time", o, n);
      };
    }, {
      1: 1
    }]
  }, {}, [7])(7);
});

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.mergeOptions = mergeOptions;
var _merge = _interopRequireDefault(__webpack_require__(2881));
function mergeOptions(obj, src) {
  return (0, _merge.default)(obj, src);
}/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"growBackground"},[_c('div',{staticClass:"growLife",staticStyle:{"min-height":"100%"}},[_c('div',{staticClass:"growLifeImg"},[(_vm.user.headImgUrl)?_c('img',{attrs:{"src":_vm.user.headImgUrl,"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(270),"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.user.uname))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm._f("dateFormat")(((_vm.user.userDetail && _vm.user.userDetail.createTime) || ''),'yyyy-MM-dd'))+" 至今")]),_vm._v(" "),_c('ul',[_c('li',{staticClass:"rztimes"},[_c('span',{staticClass:"rzTime"}),_vm._v(" "),_c('p',[_vm._v("关注时长")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.gjDay>365? Math.floor(_vm.result.gjDay/365)+"年" : (_vm.result.gjDay || 0)+"天" || false))])]),_vm._v(" "),_c('li',{staticClass:"fftimes"},[_c('span',{staticClass:"ffTime"}),_vm._v(" "),_c('p',[_vm._v("付费时长")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.feeDay>365? Math.floor(_vm.result.feeDay/365)+"年" : (_vm.result.feeDay || 0)+"天" || false)+" ")])])])]),_vm._v(" "),_c('div',{staticClass:"growInfo"},[_c('span',{staticClass:"tip"}),_vm._v(" "),_c('div',{staticClass:"growStyle"},[_c('ul',[_c('li',{staticClass:"clickNum"},[_vm._v("\n            功能使用次数 "),_c('br'),_c('span',{staticStyle:{"color":"red","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.totalCount || 0)+" ")]),_vm._v(" 次\n          ")]),_vm._v(" "),_c('li',{staticStyle:{"height":"158px"}},[_c('span',{staticStyle:{"margin-top":"100px"},style:({background : _vm.styleColor.sosoBgColor})}),_c('br'),_vm._v(" "),_c('span',[_vm._v("万能搜搜")]),_c('br'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.soso || 0)+"次")])]),_vm._v(" "),_c('li',{staticStyle:{"height":"158px"}},[_c('span',{staticStyle:{"margin-top":"100px"},style:({background : _vm.styleColor.dianluziliaoBgColor})}),_c('br'),_vm._v(" "),_c('span',[_vm._v("电路资料")]),_c('br'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.dianluziliao || 0)+"次")])]),_vm._v(" "),_c('li',{staticClass:"chartArc"},[_c('div',{staticStyle:{"position":"absolute","left":"0","top":"0","z-index":"1000","width":"100%","height":"100%"}}),_vm._v(" "),(_vm.doughnut.length)?_c('doughnut-plotly',{attrs:{"data":_vm.doughnut,"labels":_vm.labels}}):_vm._e()],1),_vm._v(" "),_c('li',[_c('span',{style:({background : _vm.styleColor.guzhangmaBgColor})}),_c('br'),_vm._v(" "),_c('span',[_vm._v("故障代码")]),_c('br'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.guzhangma || 0)+"次")])]),_vm._v(" "),_c('li',[_c('span',{style:({background : _vm.styleColor.xitongbujianBgColor})}),_c('br'),_vm._v(" "),_c('span',[_vm._v("系统部件")]),_c('br'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.xitongbujian || 0)+"次")])]),_vm._v(" "),_c('li',[_c('span',{style:({background : _vm.styleColor.ceshishujuBgColor})}),_c('br'),_vm._v(" "),_c('span',[_vm._v("测试数据")]),_c('br'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.ceshishuju || 0)+"次")])]),_vm._v(" "),_c('li',[_c('span',{style:({background : _vm.styleColor.zaixianwendaBgColor})}),_c('br'),_vm._v(" "),_c('span',[_vm._v("在线问答")]),_c('br'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.zaixianwenda || 0)+"次")])]),_vm._v(" "),_c('li',[_c('span',{style:({background : _vm.styleColor.guzhangpaichaBgColor})}),_c('br'),_vm._v(" "),_c('span',[_vm._v("故障排查")]),_c('br'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.result.guzhangpaicha || 0)+"次")])])])]),_vm._v(" "),_vm._m(0)])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tile is-parent is-4"},[_c('article',{staticClass:"tile is-child box"})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(537);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b291fc16_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1136);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3011)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b291fc16_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b291fc16_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_storeInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3012);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("9e20380c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports
exports.i(__webpack_require__(1444), "");

// module
exports.push([module.i, ".mendian .newForm input{margin-left:10px;width:50%;float:left;text-align:center}.mendian .newForm span{width:40%;float:right}.personal_detail{width:100%;height:100%}.personal_detail .detail_img{overflow:hidden;text-align:center}.personal_detail .detail_img img{margin:31px auto 15px;width:75px;border-radius:37.5px}.personal_detail .detail_img p{text-align:center}.personal_detail .detail_mation{margin-top:50px}.personal_detail .detail_mation ul{overflow:hidden;border-bottom:1px solid #ccc;margin:0 10px;background:url(" + escape(__webpack_require__(223)) + ") 100% no-repeat;background-size:8px 13px;position:relative}.personal_detail .detail_mation ul li{height:50px;line-height:50px;float:left;color:#8f8f8f}.personal_detail .detail_mation ul select{position:absolute;width:100%;height:100%;left:0;top:0;text-align:right;opacity:0}.personal_detail .detail_mation ul li.detail_title{float:right;margin-right:15px;color:#333;width:66%;text-align:right}.personal_detail .detail_mation ul li.detail_title a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.personal_detail .detail_btn{position:fixed;bottom:0;left:0;height:70px;width:100%;overflow:hidden;background:#fff}.personal_detail .detail_btn button{display:block;width:92%;margin-left:4%;height:50px;margin-top:10px;background:#d41116;color:#fff;font-size:16px;text-align:center;line-height:50px;border-radius:5px}", ""]);

// exports
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "@font-face{font-weight:400;font-style:normal;font-family:weui;src:url(\"data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJAKEx+AAABfAAAAFZjbWFw65cFHQAAAhwAAAJQZ2x5ZvCRR/EAAASUAAAKtGhlYWQMPROtAAAA4AAAADZoaGVhCCwD+gAAALwAAAAkaG10eEJo//8AAAHUAAAASGxvY2EYqhW4AAAEbAAAACZtYXhwASEAVQAAARgAAAAgbmFtZeNcHtgAAA9IAAAB5nBvc3T6bLhLAAARMAAAAOYAAQAAA+gAAABaA+j/////A+kAAQAAAAAAAAAAAAAAAAAAABIAAQAAAAEAACbZbxtfDzz1AAsD6AAAAADUm2dvAAAAANSbZ2///wAAA+kD6gAAAAgAAgAAAAAAAAABAAAAEgBJAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQOwAZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6gHqEQPoAAAAWgPqAAAAAAABAAAAAAAAAAAAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+j//wPoAAAD6AAAAAAABQAAAAMAAAAsAAAABAAAAXQAAQAAAAAAbgADAAEAAAAsAAMACgAAAXQABABCAAAABAAEAAEAAOoR//8AAOoB//8AAAABAAQAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAANwAAAAAAAAAEQAA6gEAAOoBAAAAAQAA6gIAAOoCAAAAAgAA6gMAAOoDAAAAAwAA6gQAAOoEAAAABAAA6gUAAOoFAAAABQAA6gYAAOoGAAAABgAA6gcAAOoHAAAABwAA6ggAAOoIAAAACAAA6gkAAOoJAAAACQAA6goAAOoKAAAACgAA6gsAAOoLAAAACwAA6gwAAOoMAAAADAAA6g0AAOoNAAAADQAA6g4AAOoOAAAADgAA6g8AAOoPAAAADwAA6hAAAOoQAAAAEAAA6hEAAOoRAAAAEQAAAAAARgCMANIBJAF4AcQCMgJgAqgC/ANIA6YD/gROBKAE9AVaAAAAAgAAAAADrwOtABQAKQAAASIHBgcGFBcWFxYyNzY3NjQnJicmAyInJicmNDc2NzYyFxYXFhQHBgcGAfV4Z2Q7PDw7ZGfwZmQ7PDw7ZGZ4bl5bNjc3Nlte215bNjc3NlteA608O2Rn8GdjOzw8O2Nn8GdkOzz8rzc1W17bXlw1Nzc1XF7bXls1NwAAAAACAAAAAAOzA7MAFwAtAAABIgcGBwYVFBcWFxYzMjc2NzY1NCcmJyYTBwYiLwEmNjsBETQ2OwEyFhURMzIWAe52Z2Q7PT07ZGd2fGpmOz4+O2ZpIXYOKA52Dg0XXQsHJgcLXRcNA7M+O2ZqfHZnZDs9PTtkZ3Z9aWY7Pv3wmhISmhIaARcICwsI/ukaAAMAAAAAA+UD5QAXACMALAAAASIHBgcGFRQXFhcWMzI3Njc2NTQnJicmAxQrASI1AzQ7ATIHJyImNDYyFhQGAe6Ecm9BRERBb3KEiXZxQkREQnF1aQIxAwgCQgMBIxIZGSQZGQPkREJxdomEcm9BRERBb3KEinVxQkT9HQICAWICAjEZIxkZIxkAAAAAAgAAAAADsQPkABkALgAAAQYHBgc2BREUFxYXFhc2NzY3NjURJBcmJyYTAQYvASY/ATYyHwEWNjclNjIfARYB9VVVQk+v/tFHPmxebGxdbT1I/tGvT0JVo/7VBASKAwMSAQUBcQEFAgESAgUBEQQD4xMYEhk3YP6sjnVlSD8cHD9IZXWOAVRgNxkSGP62/tkDA48EBBkCAVYCAQHlAQIQBAAAAAADAAAAAAOxA+QAGwAqADMAAAEGBwYHBgcGNxEUFxYXFhc2NzY3NjURJBcmJyYHMzIWFQMUBisBIicDNDYTIiY0NjIWFAYB9UFBODssO38gRz5sXmxsXW09SP7YqFBBVW80BAYMAwImBQELBh4PFhYeFRUD5A8SDhIOEikK/q2PdWRJPh0dPklkdY8BU141GRIY/AYE/sYCAwUBOgQG/kAVHxUVHxUAAAACAAAAAAPkA+QAFwAtAAABIgcGBwYVFBcWFxYzMjc2NzY1NCcmJyYTAQYiLwEmPwE2Mh8BFjI3ATYyHwEWAe6Ecm9BQ0NCbnODiXVxQkREQnF1kf6gAQUBowMDFgEFAYUCBQEBQwIFARUEA+NEQnF1iYNzbkJDQ0FvcoSJdXFCRP6j/qUBAagEBR4CAWYBAQENAgIVBAAAAAQAAAAAA68DrQAUACkAPwBDAAABIgcGBwYUFxYXFjI3Njc2NCcmJyYDIicmJyY0NzY3NjIXFhcWFAcGBwYTBQ4BLwEmBg8BBhYfARYyNwE+ASYiFzAfAQH1eGdkOzw8O2Rn8GZkOzw8O2RmeG5eWzY3NzZbXtteWzY3NzZbXmn+9gYSBmAGDwUDBQEGfQUQBgElBQELEBUBAQOtPDtkZ/BnYzs8PDtjZ/BnZDs8/K83NVte215cNTc3NVxe215bNTcCJt0FAQVJBQIGBAcRBoAGBQEhBQ8LBAEBAAABAAAAAAO7AzoAFwAAEy4BPwE+AR8BFjY3ATYWFycWFAcBBiInPQoGBwUHGgzLDCELAh0LHwsNCgr9uQoeCgGzCyEOCw0HCZMJAQoBvgkCCg0LHQv9sQsKAAAAAAIAAAAAA+UD5gAXACwAAAEiBwYHBhUUFxYXFjMyNzY3NjU0JyYnJhMHBi8BJicmNRM0NjsBMhYVExceAQHvhHJvQUNDQm5zg4l1cUJEREJxdVcQAwT6AwIEEAMCKwIDDsUCAQPlREJxdYmDc25CQ0NBb3KEiXVxQkT9VhwEAncCAgMGAXoCAwMC/q2FAgQAAAQAAAAAA68DrQADABgALQAzAAABMB8BAyIHBgcGFBcWFxYyNzY3NjQnJicmAyInJicmNDc2NzYyFxYXFhQHBgcGAyMVMzUjAuUBAfJ4Z2Q7PDw7ZGfwZmQ7PDw7ZGZ4bl5bNjc3Nlte215bNjc3NltemyT92QKDAQEBLDw7ZGfwZ2M7PDw7Y2fwZ2Q7PPyvNzVbXtteXDU3NzVcXtteWzU3AjH9JAAAAAMAAAAAA+QD5AAXACcAMAAAASIHBgcGFRQXFhcWMzI3Njc2NTQnJicmAzMyFhUDFAYrASImNQM0NhMiJjQ2MhYUBgHuhHJvQUNDQm5zg4l1cUJEREJxdZ42BAYMAwInAwMMBh8PFhYeFhYD40RCcXWJg3NuQkNDQW9yhIl1cUJE/vYGBf7AAgMDAgFABQb+NhYfFhYfFgAABAAAAAADwAPAAAgAEgAoAD0AAAEyNjQmIgYUFhcjFTMRIxUzNSMDIgcGBwYVFBYXFjMyNzY3NjU0Jy4BAyInJicmNDc2NzYyFxYXFhQHBgcGAfQYISEwISFRjzk5yTorhG5rPT99am+DdmhlPD4+PMyFbV5bNTc3NVte2l5bNTc3NVteAqAiLyIiLyI5Hf7EHBwCsT89a26Ed8w8Pj48ZWh2g29qffyjNzVbXtpeWzU3NzVbXtpeWzU3AAADAAAAAAOoA6gACwAgADUAAAEHJwcXBxc3FzcnNwMiBwYHBhQXFhcWMjc2NzY0JyYnJgMiJyYnJjQ3Njc2MhcWFxYUBwYHBgKOmpocmpocmpocmpq2dmZiOjs7OmJm7GZiOjs7OmJmdmtdWTQ2NjRZXdZdWTQ2NjRZXQKqmpocmpocmpocmpoBGTs6YmbsZmI6Ozs6YmbsZmI6O/zCNjRZXdZdWTQ2NjRZXdZdWTQ2AAMAAAAAA+kD6gAaAC8AMAAAAQYHBiMiJyYnJjQ3Njc2MhcWFxYVFAcGBwEHATI3Njc2NCcmJyYiBwYHBhQXFhcWMwKONUBCR21dWjU3NzVaXdpdWzU2GBcrASM5/eBXS0grKysrSEuuSkkqLCwqSUpXASMrFxg2NVtd2l1aNTc3NVpdbUdCQDX+3jkBGSsrSEuuSkkqLCwqSUquS0grKwAC//8AAAPoA+gAFAAwAAABIgcGBwYQFxYXFiA3Njc2ECcmJyYTFg4BIi8BBwYuATQ/AScmPgEWHwE3Nh4BBg8BAfSIdHFDRERDcXQBEHRxQ0REQ3F0SQoBFBsKoqgKGxMKqKIKARQbCqKoChsUAQqoA+hEQ3F0/vB0cUNERENxdAEQdHFDRP1jChsTCqiiCgEUGwqiqAobFAEKqKIKARQbCqIAAAIAAAAAA+QD5AAXADQAAAEiBwYHBhUUFxYXFjMyNzY3NjU0JyYnJhMUBiMFFxYUDwEGLwEuAT8BNh8BFhQPAQUyFh0BAe6Ecm9BQ0NCbnODiXVxQkREQnF1fwQC/pGDAQEVAwTsAgEC7AQEFAIBhAFwAgMD40RCcXWJg3NuQkNDQW9yhIl1cUJE/fYCAwuVAgQCFAQE0AIFAtEEBBQCBQGVCwMDJwAAAAUAAAAAA9QD0wAjACcANwBHAEgAAAERFAYjISImNREjIiY9ATQ2MyE1NDYzITIWHQEhMhYdARQGIyERIREHIgYVERQWOwEyNjURNCYjISIGFREUFjsBMjY1ETQmKwEDeyYb/XYbJkMJDQ0JAQYZEgEvExkBBgkNDQn9CQJc0QkNDQktCQ0NCf7sCQ0NCS0JDQ0JLQMi/TQbJiYbAswMCiwJDS4SGRkSLg0JLAoM/UwCtGsNCf5NCQ0NCQGzCQ0NCf5NCQ0NCQGzCQ0AAAAAEADGAAEAAAAAAAEABAAAAAEAAAAAAAIABwAEAAEAAAAAAAMABAALAAEAAAAAAAQABAAPAAEAAAAAAAUACwATAAEAAAAAAAYABAAeAAEAAAAAAAoAKwAiAAEAAAAAAAsAEwBNAAMAAQQJAAEACABgAAMAAQQJAAIADgBoAAMAAQQJAAMACAB2AAMAAQQJAAQACAB+AAMAAQQJAAUAFgCGAAMAAQQJAAYACACcAAMAAQQJAAoAVgCkAAMAAQQJAAsAJgD6d2V1aVJlZ3VsYXJ3ZXVpd2V1aVZlcnNpb24gMS4wd2V1aUdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAHcAZQB1AGkAUgBlAGcAdQBsAGEAcgB3AGUAdQBpAHcAZQB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwAHcAZQB1AGkARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETAAZjaXJjbGUIZG93bmxvYWQEaW5mbwxzYWZlX3N1Y2Nlc3MJc2FmZV93YXJuB3N1Y2Nlc3MOc3VjY2Vzcy1jaXJjbGURc3VjY2Vzcy1uby1jaXJjbGUHd2FpdGluZw53YWl0aW5nLWNpcmNsZQR3YXJuC2luZm8tY2lyY2xlBmNhbmNlbAZzZWFyY2gFY2xlYXIEYmFjawZkZWxldGUAAAAA\") format(\"truetype\")}[class*=\" weui-icon-\"],[class^=weui-icon-]{display:inline-block;vertical-align:middle;font:normal normal normal 14px/1 weui;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}[class*=\" weui-icon-\"]:before,[class^=weui-icon-]:before{display:inline-block;margin-left:.2em;margin-right:.2em}.weui-cells{margin-top:1.17647059em;background-color:#fff;line-height:1.41176471;font-size:17px;overflow:hidden;position:relative}.weui-cells:before{top:0;border-top:1px solid #ccc;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-cells:after,.weui-cells:before{content:\" \";position:absolute;left:0;right:0;height:1px;color:#ccc;margin:0 10px}.weui-cells:after{bottom:0;-webkit-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-cells__title{margin-top:.77em;margin-bottom:.3em;padding-left:15px;padding-right:15px;color:#999;font-size:14px}.weui-cells__title+.weui-cells{margin-top:0}.weui-cells__tips{margin-top:.3em;color:#999;padding-left:15px;padding-right:15px;font-size:14px}.weui-cells_form .weui-cell__ft{font-size:0}.weui-cells_form .weui-icon-warn{display:none}.weui-cells_form input,.weui-cells_form label[for],.weui-cells_form textarea{-webkit-tap-highlight-color:rgba(0,0,0,0)}.weui-cell{padding:10px 15px;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-cell:before{content:\" \";position:absolute;top:0;right:0;height:1px;border-top:1px solid #d9d9d9;color:#d9d9d9;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5);left:15px}.weui-cell:first-child:before{display:none}.weui-cell_primary{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.weui-cell__ft{text-align:right;color:#999}.weui-cell_access{-webkit-tap-highlight-color:rgba(0,0,0,0);color:inherit}.weui-cell_access:active{background-color:#ececec}.weui-cell_access .weui-cell__ft{padding-right:13px;position:relative}.weui-cell_access .weui-cell__ft:after{content:\" \";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:absolute;top:50%;margin-top:-4px;right:2px}.weui-cell_link{color:#586c94;font-size:14px}.weui-cell_link:first-child:before{display:block}.weui-cell_warn,.weui-cell_warn .weui-textarea-counter{color:#e64340}.weui-cell_warn .weui-icon-warn{display:inline-block}.weui-cell_select{padding:0}.weui-cell_select .weui-select{padding-right:30px}.weui-cell_select .weui-cell__bd:after{content:\" \";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:absolute;top:50%;right:15px;margin-top:-4px}.weui-cell_select-before{padding-right:15px}.weui-cell_select-before .weui-select{width:105px;box-sizing:border-box}.weui-cell_select-before .weui-cell__hd{position:relative}.weui-cell_select-before .weui-cell__hd:after{content:\" \";position:absolute;right:0;top:0;width:1px;bottom:0;border-right:1px solid #d9d9d9;color:#d9d9d9;-webkit-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-cell_select-before .weui-cell__hd:before{content:\" \";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:absolute;top:50%;right:15px;margin-top:-4px}.weui-cell_select-before .weui-cell__bd{padding-left:15px}.weui-cell_select-before .weui-cell__bd:after{display:none}.weui-cell_select-after{padding-left:15px}.weui-cell_select-after .weui-select{padding-left:0}.weui-cell_vcode{padding-top:0;padding-right:0;padding-bottom:0}.weui-cell_switch{padding-top:6px;padding-bottom:6px}.weui-cell__bd{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-uploader__hd{display:-webkit-box;display:-webkit-flex;display:flex;padding-bottom:10px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-uploader__title{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-uploader__info{color:#b2b2b2}.weui-uploader__bd{margin-bottom:-4px;margin-right:-9px;overflow:hidden}.weui-uploader__files{list-style:none}.weui-uploader__file{float:left;margin-right:9px;margin-bottom:9px;width:79px;height:79px;background:no-repeat 50%;background-size:cover}.weui-uploader__file_status{position:relative}.weui-uploader__file_status:before{content:\" \";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5)}.weui-uploader__file_status .weui-uploader__file-content{display:block}.weui-uploader__file-content{display:none;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff}.weui-uploader__file-content .weui-icon-warn{display:inline-block}.weui-uploader__input-box{float:left;position:relative;margin-right:9px;margin-bottom:9px;width:77px;height:77px;border:1px solid #d9d9d9}.weui-uploader__input-box:after,.weui-uploader__input-box:before{content:\" \";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#d9d9d9}.weui-uploader__input-box:before{width:2px;height:39.5px}.weui-uploader__input-box:after{width:39.5px;height:2px}.weui-uploader__input-box:active{border-color:#999}.weui-uploader__input-box:active:after,.weui-uploader__input-box:active:before{background-color:#999}.weui-uploader__input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.weui-gallery{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;z-index:1000}.weui-gallery__img{position:absolute;top:0;right:0;bottom:60px;left:0;background:50% no-repeat;background-size:contain}.weui-gallery__opr{position:absolute;right:0;bottom:0;left:0;background-color:#0d0d0d;color:#fff;line-height:60px;text-align:center}.weui-gallery__del{display:block}.weui-icon-delete:before{content:\"\\EA11\"}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(269));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _DialogComponent = _interopRequireDefault(__webpack_require__(136));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import MemberShip from '../../../../components/common/memberShip.vue'
var _default = exports.default = {
  components: {
    DialogComponent: _DialogComponent.default
  },
  data: function data() {
    return {
      styleColor: {
        entityBgColor: '#ff0000'
      },
      result: {},
      dialogShow: false,
      dialogItem: {
        title: '',
        confirmButton: '确定',
        cancelButton: '取消',
        flag: 1
      },
      newEntity: {},
      tags: this.$route.query.tags,
      showAddress: false,
      imgResult: {},
      addressResult: {
        province: '',
        city: '',
        dist: '',
        country: ''
      },
      display: false,
      addressSlots: [{
        flex: 1,
        values: ['选择身份', '老板', '维修师傅'],
        className: 'slot',
        textAlign: 'center'
      }],
      card: '',
      previewImgUrl: '',
      isStoreImg: false,
      delImgIndex: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getStoreInfo();
    that.$on('dialogSave', function (data) {
      var msg = '';
      switch (that.dialogItem.flag) {
        case 1:
          msg = that.newEntity.technicianCount ? '' : '员工人数不能为空';
          break;
        case 2:
          msg = that.newEntity.storeArea ? '' : '门店面积不能为空';
          break;
      }
      if (msg) {
        that._Util.showMsgBox(msg);
        return;
      }
      that.save(that, that.newEntity);
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that.getStoreImg();

    //      地址列表
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE_ADDRESS, {}, function (data) {
      if (data) {
        that.addressResult = {
          province: data.province || '',
          city: data.city || '',
          dist: data.dist || '',
          country: data.address || ''
        };
      }
    }, function () {}, that);
  },
  methods: {
    getStoreInfo: function getStoreInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORES, {}, function (data) {
        that.result = data;
      }, function () {}, that);
    },
    getStoreImg: function getStoreImg() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORES_IMG, {}, function (data) {
        if (!data) return;
        that.imgResult = data;
      }, function () {}, that);
    },
    onAddressChange: function onAddressChange(picker, values) {
      var that = this;
      that.card = values[0];
    },
    _stopDef: function _stopDef(e) {
      e.preventDefault();
    },
    _cancel: function _cancel() {
      this.display = false;
    },
    _ensure: function _ensure() {
      var that = this;
      if (that.card == '老板') {
        that.result.resign = 1;
      } else if (that.card == '维修师傅') {
        that.result.resign = 2;
      } else {
        that.result.resign = 0;
      }
      that.save(that);
      that.display = false;
    },
    closeSelect: function closeSelect() {
      this.display = false;
    },
    _comeIn: function _comeIn() {
      this.display = true;
    },
    changeResign: function changeResign() {
      var that = this;
      that.save(that);
    },
    save: function save(self, item) {
      self._Util.post(self._Api.POST_MEMBER_PERSONAL_STORES_SAVE, item || self.result, function (data) {
        self.dialogShow = false;
        self.showAddress = false;
        // self._Util.showToast('保存成功');
        self.getStoreInfo();
      }, function () {}, self);
    },
    showModal: function showModal(obj) {
      this.dialogItem.title = obj.title;
      this.dialogItem.flag = obj.flag;
      this.newEntity = JSON.parse(JSON.stringify(this.result));
      this.dialogShow = true;
    },
    toAddress: function toAddress() {
      this.$router.push({
        name: 'memberAddress',
        query: {
          type: 1
        }
      });
    },
    toBusinessScope: function toBusinessScope() {
      this.$router.push({
        name: 'memberBusinessScope'
      });
    },
    toStoreNature: function toStoreNature() {
      this.$router.push({
        name: 'memberStoreNature'
      });
    },
    previewImg: function previewImg(prefixUrl, index, flag) {
      this.previewImgUrl = prefixUrl;
      this.delImgIndex = index;
      this.isStoreImg = flag;
    },
    deleteImg: function deleteImg() {
      var that = this;
      (0, _jquery.default)('#storePic').val('');
      (0, _jquery.default)('#storeDevicePic').val('');
      var imgType = '';
      if (that.isStoreImg) {
        that.imgResult.storePic.splice(that.delImgIndex, 1);
        imgType = 'storePic';
      } else {
        imgType = 'storeDevicePic';
        that.imgResult.storeDevicePic.splice(that.delImgIndex, 1);
      }
      that._Util.showMsgBoxConfirm('确认删除照片吗?', function (action) {
        if (action) {
          that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORES_IMG_SAVE_NEW, (0, _defineProperty2.default)({}, imgType, that.imgResult[imgType]), function (data) {
            that.previewImgUrl = '';
            that.getStoreImg();
          }, function () {}, that);
        }
      });
    },
    /**
     * 获取七牛云上传token
     */
    getQiniuToken: function getQiniuToken() {
      return this.$http({
        url: this._Api.appGetQNToken,
        method: 'post',
        data: {}
      });
    },
    /**
     * 七牛图片上传
     */
    qiNiuUploadImg: function qiNiuUploadImg(fileData, filename) {
      var _this = this;
      return new Promise(/*#__PURE__*/function () {
        var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(resolve, reject) {
          var qiniuRes, qiniuObj, url, param, type, imageName;
          return _regenerator.default.wrap(function (_context) {
            while (1) switch (_context.prev = _context.next) {
              case 0:
                _context.next = 1;
                return _this.getQiniuToken();
              case 1:
                qiniuRes = _context.sent;
                qiniuObj = qiniuRes.data.data;
                url = '';
                if (_this._Util.isIOS) {
                  url = 'https://upload.qbox.me';
                } else {
                  url = 'https://upload.qiniup.com';
                }
                param = new FormData();
                param.append('file', fileData);
                param.append('token', qiniuObj.token);
                type = fileData.type.split('/')[1];
                imageName = filename ? "kxy/user/member/".concat(filename, ".").concat(type) : "kxy/user/member/".concat(_this._Util.parseTime(new Date().getTime(), '{y}{m}{d}{h}{i}{s}'), ".").concat(type);
                param.append('key', imageName);
                _this.$http({
                  url: url,
                  withCredentials: false,
                  method: 'post',
                  dataType: 'json',
                  data: param
                }).then(function (res) {
                  if (res.status === 200) {
                    // resolve(qiniuObj.bucketUrl + res.data.key)
                    resolve(res.data.key);
                  }
                }).catch(function (err) {
                  reject(err);
                });
              case 2:
              case "end":
                return _context.stop();
            }
          }, _callee);
        }));
        return function (_x, _x2) {
          return _ref.apply(this, arguments);
        };
      }());
    },
    /** 上传图片 */uploadImg: function uploadImg(e, flag) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var that, inputName, imgType, imgArr, imgTotalSize, i, imgUrl;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              that = _this2;
              inputName = '';
              imgType = '';
              if (flag === true) {
                inputName = 'storeImgInp';
              } else {
                inputName = 'storeDeviceImgInp';
              }
              imgArr = (0, _jquery.default)('#' + inputName).get(0).files;
              imgTotalSize = 0;
              for (i = 0; i < imgArr.length; i++) {
                imgTotalSize += imgArr[i].size;
              }
              if (!(imgTotalSize / 1024 / 1024 > 8)) {
                _context2.next = 1;
                break;
              }
              that._Util.showMsgBox('图片单次上传最大8M,请分批上传吧~');
              return _context2.abrupt("return");
            case 1:
              if (!(flag === true)) {
                _context2.next = 3;
                break;
              }
              imgType = 'storePic';
              if (!((0, _jquery.default)('#' + inputName).get(0).files.length > 9 || that.imgResult && that.imgResult.storePic && (0, _jquery.default)('#' + inputName).get(0).files.length > 9 - that.imgResult.storePic.length)) {
                _context2.next = 2;
                break;
              }
              that._Util.showMsgBox('门店照片最多上传9张');
              return _context2.abrupt("return");
            case 2:
              _context2.next = 4;
              break;
            case 3:
              imgType = 'storeDevicePic';
              if (!((0, _jquery.default)('#' + inputName).get(0).files.length > 15 || that.imgResult && that.imgResult.storeDevicePic && (0, _jquery.default)('#' + inputName).get(0).files.length > 15 - that.imgResult.storeDevicePic.length)) {
                _context2.next = 4;
                break;
              }
              that._Util.showMsgBox('设备设施最多上传15张');
              return _context2.abrupt("return");
            case 4:
              _mintUi.Indicator.open({
                spinnerType: 'fading-circle'
              });
              _context2.next = 5;
              return _this2.qiNiuUploadImg(e.target.files[0]);
            case 5:
              imgUrl = _context2.sent;
              _this2._Util.post(_this2._Api.POST_MEMBER_PERSONAL_STORES_IMG_SAVE_NEW, (0, _defineProperty2.default)({}, imgType, _this2.imgResult[imgType] ? [].concat((0, _toConsumableArray2.default)(_this2.imgResult[imgType]), [imgUrl]) : [imgUrl]), function (data) {
                that.getStoreImg();
              }, function () {}, _this2);
            case 6:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mendian"},[_c('div',{staticClass:"personal_detail",attrs:{"id":"personal_detail"}},[_c('div',{staticClass:"detail_mation",staticStyle:{"margin-top":"0"}},[_c('ul',[_c('li',{staticClass:"detail_key"},[_vm._v("身份")]),_vm._v(" "),_c('li',{staticClass:"detail_title",on:{"click":function($event){return _vm._comeIn()}}},[_vm._v("\n          "+_vm._s(_vm.result.resign == 1 ? '老板' : ( _vm.result.resign == 2 ? '维修师傅' : '请选择身份'))+"\n        ")])]),_vm._v(" "),_c('ul',{on:{"click":function($event){return _vm.toAddress()}}},[_c('li',{staticClass:"detail_key"},[_vm._v("门店地址")]),_vm._v(" "),_c('li',{staticClass:"detail_title"},[_vm._v("\n          "+_vm._s((_vm.addressResult.province + _vm.addressResult.city + _vm.addressResult.dist + _vm.addressResult.country) || '')+"\n        ")])]),_vm._v(" "),_c('ul',{on:{"click":function($event){return _vm.toStoreNature()}}},[_c('li',{staticClass:"detail_key"},[_vm._v("门店性质")]),_vm._v(" "),_c('li',{staticClass:"detail_title"},[_c('span',{staticClass:"text-overflow-ellipsis"},[_vm._v("\n            "+_vm._s(_vm.result.natureText)+"\n          ")])])]),_vm._v(" "),_c('ul',{on:{"click":function($event){return _vm.toBusinessScope()}}},[_c('li',{staticClass:"detail_key"},[_vm._v("业务范围")]),_vm._v(" "),_c('li',{staticClass:"detail_title"},[_c('span',{staticClass:"text-overflow-ellipsis"},[_vm._v(_vm._s(_vm.result.projectText))])])]),_vm._v(" "),_c('ul',{on:{"click":function($event){return _vm.showModal({title: '员工人数', flag: 1})}}},[_c('li',{staticClass:"detail_key"},[_vm._v("员工人数")]),_vm._v(" "),_c('li',{staticClass:"detail_title"},[_vm._v(_vm._s(_vm.result.technicianCount || 0)+"人")])]),_vm._v(" "),_c('ul',{on:{"click":function($event){return _vm.showModal({title: '门店面积', flag: 2})}}},[_c('li',{staticClass:"detail_key"},[_vm._v("门店面积")]),_vm._v(" "),_c('li',{staticClass:"detail_title"},[_vm._v(_vm._s(_vm.result.storeArea || 0)+"平方米左右")])])]),_vm._v(" "),_c('div',{staticClass:"weui-cells weui-cells_form",staticStyle:{"margin-top":"auto","position":"static"}},[_c('div',{staticClass:"weui-cell"},[_c('div',{staticClass:"weui-cell__bd"},[_c('div',{staticClass:"weui-uploader"},[_c('div',{staticClass:"weui-uploader__hd"},[_c('p',{staticClass:"weui-uploader__title",staticStyle:{"margin-left":"-5px","color":"#8f8f8f"}},[_vm._v("门店照片")]),_vm._v(" "),_c('div',{staticClass:"weui-uploader__info"},[_vm._v(_vm._s((_vm.imgResult.storePic && _vm.imgResult.storePic.length) || 0)+"/9")])]),_vm._v(" "),_c('div',{staticClass:"weui-uploader__bd"},[_c('ul',{staticClass:"weui-uploader__files",attrs:{"id":"uploaderFiles"}},_vm._l((_vm.imgResult.storePic),function(v,index){return _c('li',{key:index,staticClass:"weui_uploader__file",staticStyle:{"float":"left","margin-right":"9px","margin-bottom":"9px","width":"79px","height":"79px","background":"no-repeat 50%","background-size":"cover"},style:({ backgroundImage: 'url(' + (_vm.imgResult.prefixUrl + v) + '?imageView2/1/w/150/h/150)' }),on:{"click":function($event){return _vm.previewImg(_vm.imgResult.prefixUrl + v, index, true)}}})}),0),_vm._v(" "),_c('div',{staticClass:"weui-uploader__input-box"},[_c('form',{attrs:{"id":"storePicFrm","method":"post","enctype":"multipart/form-data"}},[_c('input',{staticClass:"weui-uploader__input",attrs:{"id":"storeImgInp","name":"storeImg","type":"file","accept":"image/*","multiple":""},on:{"change":function($event){return _vm.uploadImg($event, true)}}})])])])])])])]),_vm._v(" "),_c('div',{staticClass:"weui-cells weui-cells_form",staticStyle:{"margin-top":"auto"}},[_c('div',{staticClass:"weui-cell"},[_c('div',{staticClass:"weui-cell__bd"},[_c('div',{staticClass:"weui-uploader"},[_c('div',{staticClass:"weui-uploader__hd"},[_c('p',{staticClass:"weui-uploader__title",staticStyle:{"margin-left":"-5px","color":"#8f8f8f"}},[_vm._v("设备设施")]),_vm._v(" "),_c('div',{staticClass:"weui-uploader__info"},[_vm._v(_vm._s((_vm.imgResult.storeDevicePic && _vm.imgResult.storeDevicePic.length) || 0)+"/15")])]),_vm._v(" "),_c('div',{staticClass:"weui-uploader__bd"},[_c('ul',{staticClass:"weui-uploader__files"},_vm._l((_vm.imgResult.storeDevicePic),function(v,index){return _c('li',{key:index,staticClass:"weui_uploader__file",staticStyle:{"float":"left","margin-right":"9px","margin-bottom":"9px","width":"79px","height":"79px","background":"no-repeat 50%","background-size":"cover"},style:({ backgroundImage: 'url(' + (_vm.imgResult.prefixUrl + v) + '?imageView2/1/w/150/h/150)' }),on:{"click":function($event){return _vm.previewImg(_vm.imgResult.prefixUrl + v, index, false)}}})}),0),_vm._v(" "),_c('div',{staticClass:"weui-uploader__input-box"},[_c('form',{attrs:{"id":"storeDevPicFrm","method":"post","enctype":"multipart/form-data"}},[_c('input',{staticClass:"weui-uploader__input",attrs:{"id":"storeDeviceImgInp","name":"storeDeviceImg","type":"file","accept":"image/*","multiple":""},on:{"change":function($event){return _vm.uploadImg($event)}}})])])])])])])]),_vm._v(" "),_vm._m(0),_vm._v(" "),(_vm.previewImgUrl)?_c('div',{staticClass:"weui-gallery",staticStyle:{"display":"block"},on:{"click":function($event){_vm.previewImgUrl = ''}}},[_c('span',{staticClass:"weui-gallery__img",style:({ backgroundImage: 'url(' + _vm.previewImgUrl + '?imageView2/1)' })}),_vm._v(" "),_c('div',{staticClass:"weui-gallery__opr"},[_c('a',{staticClass:"weui-gallery__del",attrs:{"href":"javascript:"}},[_c('i',{staticClass:"weui-icon-delete weui-icon_gallery-delete",on:{"click":function($event){$event.stopPropagation();return _vm.deleteImg()}}})])])]):_vm._e()]),_vm._v(" "),(_vm.display)?_c('div',{staticStyle:{"position":"absolute","z-index":"200","left":"0","top":"0","bottom":"0","right":"0","background":"#000000","opacity":"0.7"},on:{"click":_vm.closeSelect,"touchmove":_vm._stopDef,"mousewheel":_vm._stopDef}}):_vm._e(),_vm._v(" "),(_vm.display)?_c('div',{staticClass:"uregTime",staticStyle:{"right":"0","left":"0","bottom":"0"}},[_c('button',{staticClass:"cancel",on:{"click":function($event){return _vm._cancel()}}},[_vm._v("取消")]),_vm._v(" "),_c('span',[_vm._v("请选择")]),_vm._v(" "),_c('button',{staticClass:"ensure",on:{"click":function($event){return _vm._ensure()}}},[_vm._v("确认")]),_vm._v(" "),_c('div',{staticStyle:{"position":"absolute","left":"0","top":"0","background":"#eee","z-index":"-20","height":"50px","width":"100%"}}),_vm._v(" "),_c('mt-picker',{attrs:{"slots":_vm.addressSlots,"visible-item-count":5},on:{"change":_vm.onAddressChange}})],1):_vm._e(),_vm._v(" "),(_vm.dialogShow)?_c('Dialog-component',{attrs:{"type":"confirm","title":_vm.dialogItem.title,"confirm-button":_vm.dialogItem.confirmButton,"cancel-button":_vm.dialogItem.cancelButton,"call-back":""}},[(_vm.dialogItem.flag == 1)?_c('div',{staticClass:"newForm"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.newEntity.technicianCount),expression:"newEntity.technicianCount"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"number","onkeyup":"this.value=this.value.replace(/\\D/g,'')","onafterpaste":"this.value=this.value.replace(/\\D/g,'')","placeholder":"请输入员工人数"},domProps:{"value":(_vm.newEntity.technicianCount)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.newEntity, "technicianCount", $event.target.value)}}}),_vm._v(" "),_c('span',[_vm._v("人")])]):_vm._e(),_vm._v(" "),(_vm.dialogItem.flag == 2)?_c('div',{staticClass:"newForm"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.newEntity.storeArea),expression:"newEntity.storeArea"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"number","onkeyup":"this.value=this.value.replace(/\\D/g,'')","onafterpaste":"this.value=this.value.replace(/\\D/g,'')","placeholder":"请输入门店面积"},domProps:{"value":(_vm.newEntity.storeArea)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.newEntity, "storeArea", $event.target.value)}}}),_vm._v(" "),_c('span',[_vm._v("平方米左右")])]):_vm._e()]):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',{attrs:{"id":"delFrm","method":"post","enctype":"multipart/form-data"}},[_c('input',{staticStyle:{"display":"none"},attrs:{"id":"storePic","name":"storePic"}}),_vm._v(" "),_c('input',{staticStyle:{"display":"none"},attrs:{"id":"storeDevicePic","name":"storeDevicePic"}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(538);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_463b412d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1137);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3013)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_463b412d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_463b412d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_nature_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3014);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2ab25554", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".natureCheck{overflow:hidden}.natureCheck>div{float:left}.natureCheck>div.natureTab{width:40%;background:#ededed}.natureCheck>div.natureList{width:60%}.natureCheck>div.natureTab li{height:40px;line-height:40px;margin:0 5px;border-bottom:1px solid #fff;text-indent:10px;position:relative}.natureCheck>div.natureTab li span:first-child{width:5px;position:absolute;left:-5px;top:0;height:40px;background:#1766b3;display:none}.natureCheck>div.natureTab li span:last-child{width:5px;position:absolute;right:-5px;top:0;height:40px;background:#fff;display:none}.natureCheck>div.natureTab li.active span:first-child,.natureCheck>div.natureTab li.active span:last-child{display:block}.natureCheck>div.natureTab li.active{background:#fff}.natureCheck>div.natureList li{text-align:center;height:40px;line-height:40px}.natureCheck>div.natureList li.others{line-height:20px}.natureIndex div.saveBtn{margin:20px 25px}.natureIndex div.saveBtn button{background:#b71c24;color:#fff;font-size:16px;border-radius:5px;text-align:center;width:100%;height:40px}.natureIndex{background:#fff}.natureIndex .vuetagger-tag{padding:0;background:#fff}.natureIndex .vuetagger{padding:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(__webpack_require__(1445));
var _DialogComponent = _interopRequireDefault(__webpack_require__(136));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Tags: _index.default,
    DialogComponent: _DialogComponent.default
  },
  data: function data() {
    return {
      tags: [],
      intId: 0,
      pageShow: false,
      dialogItem: {
        title: '其他主机服务站',
        confirmButton: '确定',
        cancelButton: '取消'
      },
      keyword: '',
      dialogShow: false,
      storeResults: [],
      storeResultChild: [],
      tableIndex: 0,
      resultList: [],
      saveList: {
        natureId: 0,
        natureChildId: 0,
        natureValue: '',
        natureChildName: ''
      },
      pressList: {
        natureId: 0,
        natureChildId: 0,
        natureValue: '',
        natureChildName: ''
      }
    };
  },
  mounted: function mounted() {
    var that = this;
    that.$on('dialogSave', function () {
      if (that.keyword.length > 7) {
        that._Util.showMsgBox('字数不能超过七个');
        return false;
      }
      that.pressList = {
        natureId: that.intId,
        natureChildId: '',
        natureValue: that.keyword,
        natureChildName: that.keyword
      };
      that.tags.push(that.pressList);
      that.dialogShow = false;
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE, {}, function (data) {
      that.storeResults = data;
      that.storeResultChild = data[0].storeNatureChild;
      that.intId = that.storeResultChild.id;
      that.pageShow = true;
    }, function () {}, that);
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE_USER, {}, function (data) {
      that.tags = data;
    }, function () {}, that);
  },
  methods: {
    updateTags: function updateTags(tags) {},
    getNew: function getNew() {
      var that = this;
      that.dialogShow = true;
    },
    getStoreChild: function getStoreChild(o, index) {
      var that = this;
      that.storeResultChild = o.storeNatureChild;
      that.tableIndex = index;
      that.intId = o.id;
      that.dialogItem.title = o.treeName;
    },
    addStore: function addStore(v) {
      var that = this;
      if (that.tags.length > 3) {
        that._Util.showMsgBox('最多可添加4个关键词');
        return;
      }
      that.saveList = {
        natureId: v.parentId,
        natureChildId: v.id,
        natureValue: '',
        natureChildName: v.treeName
      };
      that.tags.push(that.saveList);
    },
    save: function save() {
      var _this = this;
      var that = this;
      that._Util.showMsgBoxConfirm('确认保存信息吗', function (action) {
        if (action) {
          that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE_SAVE, {
            data: that.tags
          }, function () {
            if (that.$route.query.fullPath) {
              // let urlParams = '&uaddress=' + that.$route.query.uaddress
              //   + '&ucity=' + that.$route.query.ucity
              //   + '&udist=' + that.$route.query.udist
              //   + '&uprovince=' + that.$route.query.uprovince;
              // window.location.href = that.$route.query.fullPath + urlParams;
              _this.$router.go(-1);
            } else {
              _this.$router.push({
                name: 'memberStore'
              });
            }
          }, function () {}, that);
        }
      });
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(297);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4c6f5980_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(883);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2086)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4c6f5980"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4c6f5980_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4c6f5980_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2087);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c1ad3c7e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".vuetagger-list[data-v-4c6f5980]{background:#1766b3;padding-bottom:10px;border-bottom:20px solid #ededed}.vuetagger-list .vuetagger-tag[data-v-4c6f5980]{width:28%;height:34px;border-radius:7px;text-align:center;line-height:34px;margin:10px 2.66% 0;padding:0;position:relative;background:#fff;white-space:nowrap;text-overflow:ellipsis}.vuetagger-tag .vuetagger-tag-remover[data-v-4c6f5980]{position:absolute;right:-10px;top:-5px;width:24px;height:24px;color:#fff;background:#ddd;border-radius:12px;line-height:24px;text-align:center;font-size:20px;padding:0;margin-left:0}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    values: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  data: function data() {
    return {
      newTag: ''
    };
  },
  mounted: function mounted() {},
  methods: {
    /**
       * Remove the selected tag
       * @param {string} tag  Tag name
       */
    remove: function remove(tag) {
      var index = this.values.indexOf(tag);
      this.values.splice(index, 1);
      this.$emit('change', this.values);
    },
    /**
       * Remove the last tag
       */
    removeLastTag: function removeLastTag() {
      if (this.newTag === '' && this.values.length > 0) {
        this.values.pop();
        this.$emit('change', this.values);
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"vuetagger"},[_c('div',{staticClass:"vuetagger-list"},_vm._l((_vm.values),function(tag,i){return _c('span',{key:i,staticClass:"vuetagger-tag"},[_vm._v("\n        "+_vm._s(tag.natureChildName? tag.natureChildName : tag.name)+" "),_c('span',{staticClass:"vuetagger-tag-remover",on:{"click":function($event){return _vm.remove(tag)}}},[_vm._v("×")])])}),0)])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"natureIndex"},[(_vm.tags.length > 0)?_c('Tags',{attrs:{"values":_vm.tags},on:{"change":_vm.updateTags}}):_vm._e(),_vm._v(" "),(_vm.pageShow)?_c('div',{staticClass:"natureCheck"},[_c('div',{staticClass:"natureTab"},[_c('ul',_vm._l((_vm.storeResults),function(o,index){return _c('li',{key:index,class:{ active: index == _vm.tableIndex },on:{"click":function($event){return _vm.getStoreChild(o,index)}}},[_c('span'),_vm._v(_vm._s(o.treeName)),_c('span')])}),0)]),_vm._v(" "),_c('div',{staticClass:"natureList"},[_c('ul',[_vm._l((_vm.storeResultChild),function(v,index){return _c('li',{key:index,on:{"click":function($event){return _vm.addStore(v,index)}}},[_vm._v(_vm._s(v.treeName))])}),_vm._v(" "),_c('li',{staticClass:"others",on:{"click":function($event){return _vm.getNew()}}},[_vm._v("\n          其他\n          "),_c('br'),_vm._v("(点击进行自定义添加)\n        ")])],2)])]):_vm._e(),_vm._v(" "),(_vm.dialogShow)?_c('Dialog-component',{attrs:{"type":"confirm","title":_vm.dialogItem.title,"confirm-button":_vm.dialogItem.confirmButton,"cancel-button":_vm.dialogItem.cancelButton,"call-back":""}},[_c('div',{staticClass:"newForm news"},[_c('span',[_vm._v(_vm._s(_vm.dialogItem.title == '品牌维修店'? '品牌' : (_vm.dialogItem.title == '自营维修站' ? '自营' : _vm.dialogItem.title)))]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"text","placeholder":"请输入名称"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"saveBtn"},[_c('button',{on:{"click":_vm.save}},[_vm._v("保存")])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(539);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_87e4d706_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1138);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3015)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_87e4d706_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_87e4d706_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_businessScope_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3016);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("37b684c4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".businessStat.natureIndex div.saveBtn{position:absolute;bottom:0;width:80%;left:10%;margin-left:0}.natureIndex div.saveBtn{margin:20px 25px}.natureIndex div.saveBtn button{background:#b71c24;color:#fff;font-size:16px;border-radius:5px;text-align:center;width:100%;height:40px}.natureIndex{background:#fff}.natureIndex .vuetagger-tag{padding:0;background:#fff}.natureIndex .vuetagger{padding:0}.businessS{overflow:hidden}.businessS ul{margin:10px}.businessStat{background:#ededed}.businessS li{float:left;width:30%;background:#fff;height:35px;line-height:35px;text-align:center;margin-bottom:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-radius:5px}.businessS li:nth-child(3n-1){margin:0 5% 10px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(__webpack_require__(1445));
var _DialogComponent = _interopRequireDefault(__webpack_require__(136));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Tags: _index.default,
    DialogComponent: _DialogComponent.default
  },
  data: function data() {
    return {
      tags: [],
      businessResults: [],
      businessList: {
        name: '',
        value: 0,
        natureChildName: ''
      },
      businessSaved: [],
      list: '',
      listText: '',
      dialogItem: {
        title: '其他业务范围',
        confirmButton: '确定',
        cancelButton: '取消'
      },
      keyword: '',
      newsKeyWord: '',
      dialogShow: false
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORES_BUSINESS, {}, function (data) {
      that.businessResults = data || [];
      var _iterator = _createForOfIteratorHelper(that.businessResults),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          v.checked = false;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    }, function () {}, that);
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORES_BUSINESS_SAVE, {}, function (data) {
      that.tags = data || [];
    }, function () {}, that);
    that.$on('dialogSave', function () {
      if (that.newsKeyWord.length > 7) {
        that._Util.showMsgBox('字数不能超过七个');
        return false;
      }
      var flag = false;
      for (var i = 0; i < that.tags.length; i++) {
        if (that.tags[i].name == that.newsKeyWord) {
          flag = true;
          break;
        }
      }
      if (!flag) {
        that.businessList = {
          name: that.newsKeyWord,
          value: null
        };
        that.tags.push(that.businessList);
      }
      that.dialogShow = false;
    });
    that.$on('dialogCancel', function () {
      that.dialogShow = false;
    });
  },
  methods: {
    getNew: function getNew() {
      var that = this;
      if (that.tags.length > 3) {
        that._Util.showMsgBox('最多可添加4个关键字');
        return;
      }
      that.dialogShow = true;
    },
    updateTags: function updateTags(tags) {
      this._Util.log(tags);
      if (!tags.length) {
        var _iterator2 = _createForOfIteratorHelper(this.businessResults),
          _step2;
        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var v = _step2.value;
            v.checked = false;
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      } else {
        var _iterator3 = _createForOfIteratorHelper(tags),
          _step3;
        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var o = _step3.value;
            var _iterator4 = _createForOfIteratorHelper(this.businessResults),
              _step4;
            try {
              for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
                var _v = _step4.value;
                _v.checked = _v.name == o.name;
              }
            } catch (err) {
              _iterator4.e(err);
            } finally {
              _iterator4.f();
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      }
    },
    getBusiness: function getBusiness(o) {
      var that = this;
      if (that.tags.length > 3) {
        that._Util.showMsgBox('最多可添加4个关键字');
        return;
      }
      if (!o.checked) {
        that.businessList = {
          name: o.name,
          value: o.value
        };
        that.tags.push(that.businessList);
        o.checked = true;
      }
    },
    save: function save() {
      var _this = this;
      var that = this;
      that._Util.showMsgBoxConfirm('确认保存信息吗', function (action) {
        if (action) {
          var tlength = that.tags.length;
          for (var i = 0; i < tlength; i++) {
            if (that.tags[i].value) {
              that.list += that.tags[i].value + ',';
            } else {
              that.listText += that.tags[i].name + ',';
            }
          }
          that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORES_SAVE, {
            projectValue: that.list.substring(0, that.list.length - 1),
            projectValueText: that.listText.substring(0, that.listText.length - 1)
          }, function () {
            if (that.$route.query.fullPath) {
              // let urlParams = '&uaddress=' + that.$route.query.uaddress
              //   + '&ucity=' + that.$route.query.ucity
              //   + '&udist=' + that.$route.query.udist
              //   + '&uprovince=' + that.$route.query.uprovince;
              // window.location.href = that.$route.query.fullPath + urlParams;
              _this.$router.go(-1);
            } else {
              that.$router.push({
                name: 'memberStore'
              });
            }
          }, function () {}, that);
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"businessStat natureIndex"},[(_vm.tags.length)?_c('Tags',{attrs:{"values":_vm.tags},on:{"change":_vm.updateTags}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"businessS"},[_c('ul',[_vm._l((_vm.businessResults),function(o,index){return (index < 10)?_c('li',{key:index,on:{"click":function($event){return _vm.getBusiness(o)}}},[_vm._v(_vm._s(o.name))]):_vm._e()}),_vm._v(" "),(_vm.businessResults.length > 0)?_c('li',{on:{"click":function($event){return _vm.getNew()}}},[_vm._v("其他")]):_vm._e(),_vm._v(" "),_c('li',{staticStyle:{"clear":"both","display":"none"}})],2)]),_vm._v(" "),(_vm.dialogShow)?_c('Dialog-component',{attrs:{"type":"confirm","title":_vm.dialogItem.title,"confirm-button":_vm.dialogItem.confirmButton,"cancel-button":_vm.dialogItem.cancelButton,"call-back":""}},[_c('div',{staticClass:"newForm"},[_c('span',[_vm._v("业务")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.newsKeyWord),expression:"newsKeyWord"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"text","placeholder":"请输入业务名称"},domProps:{"value":(_vm.newsKeyWord)},on:{"input":function($event){if($event.target.composing){ return; }_vm.newsKeyWord=$event.target.value}}})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"saveBtn"},[_c('button',{on:{"click":_vm.save}},[_vm._v("保存")])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(540);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8bc9a064_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1139);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3017)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-8bc9a064"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8bc9a064_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8bc9a064_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_couponer_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3018);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("926bb886", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".couponIndex[data-v-8bc9a064]{background:#f6f7f9;padding:.8rem}.couponIndex .item[data-v-8bc9a064]{height:4.9rem;background-size:100% 100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.6rem}.couponIndex .item.disable .left .rule[data-v-8bc9a064],.couponIndex .item.disable .left .time[data-v-8bc9a064],.couponIndex .item.disable .left .title[data-v-8bc9a064],.couponIndex .item.disable .right .price[data-v-8bc9a064],.couponIndex .item.disable .right .tip[data-v-8bc9a064]{color:#ccc}.couponIndex .item.disable .right .take[data-v-8bc9a064]{background:#d8d8d8;color:#fff}.couponIndex .item .left[data-v-8bc9a064]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;padding:.6rem .6rem .5rem}.couponIndex .item .left .title[data-v-8bc9a064]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#333;font:700 16px/1.12rem PingFangSC-SNaNpxibold}.couponIndex .item .left .time[data-v-8bc9a064]{margin-top:.2rem;color:#333;font:12px/.82rem PingFangSC-Regular}.couponIndex .item .left .rule[data-v-8bc9a064]{margin-top:.95rem;color:#999;font:10px/1 PingFangSC-Regular;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.couponIndex .item .left .rule img[data-v-8bc9a064]{width:.6rem;height:.6rem;margin-left:.2rem}.couponIndex .item .right[data-v-8bc9a064]{width:4.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}.couponIndex .item .right .price[data-v-8bc9a064]{color:#fe632a;font:700 20px/1.4rem PingFangSC-SNaNpxibold}.couponIndex .item .right .price span[data-v-8bc9a064]{font-size:16px}.couponIndex .item .right .tip[data-v-8bc9a064]{color:#fe632a;font:10px/.7rem PingFangSC-Regular}.couponIndex .item .right>img[data-v-8bc9a064]{position:absolute;width:3.2rem;height:3.2rem;right:0;top:0}.couponIndex .nodata[data-v-8bc9a064]{padding-top:2rem;text-align:center;font-size:14px;color:#999}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      disabLeBg: 'https://static1.kaxiuyun.com/kxy/purchase/20221111212242.jpg',
      couponBg: 'https://static1.kaxiuyun.com/kxy/purchase/20221111212251.jpg',
      timeEndIcon: 'https://static1.kaxiuyun.com/kxy/purchase/20221111212411.jpg',
      disableIcon: 'https://static1.kaxiuyun.com/kxy/purchase/20221111212324.jpg',
      dataList: [],
      loaded: false
    };
  },
  mounted: function mounted() {
    this.getCouponListFn();
  },
  methods: {
    /**
     * 获取券列表
     * */
    getCouponListFn: function getCouponListFn() {
      var _this = this;
      this._Util.post(this._Api.MALL.userCouponList, {
        pageNum: 1,
        pageSize: 100
      }, function (res) {
        _this.loaded = true;
        if (res && res.couponList) {
          _this.dataList = res.couponList || [];
        }
      }, function () {
        _this.loaded = true;
      }, this);
    },
    showRule: function showRule(item) {
      if (item.description) {
        (0, _dialog.default)({
          className: 'coupon-tip',
          title: '使用规则',
          confirmButtonText: '我知道了',
          message: item.description
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"couponIndex"},[_vm._l((_vm.dataList),function(item){return _c('div',{key:item.couponId,staticClass:"item",class:{disable: item.status === 3 || item.status === 4},style:({backgroundImage: 'url(' + (item.status === 3 || item.status === 4 ? _vm.disabLeBg : _vm.couponBg) +')'})},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.couponName))]),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.parseTime(item.startTime, '{y}.{m}.{d}'))+" - "+_vm._s(_vm._Util.parseTime(item.endTime, '{y}.{m}.{d}')))]),_vm._v(" "),_c('div',{staticClass:"rule",on:{"click":function($event){return _vm.showRule(item)}}},[_vm._v("\n        使用规则\n        "),_c('img',{attrs:{"src":"https://static1.kaxiuyun.com/kxy/purchase/20221109223213.jpg","alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"price"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(item.deductionAmount || 0))]),_vm._v(" "),_c('div',{staticClass:"tip"},[_vm._v("满"+_vm._s(item.orderAmount || 0)+"元可用")]),_vm._v(" "),(item.status === 4)?_c('img',{attrs:{"src":_vm.timeEndIcon,"alt":""}}):_vm._e(),_vm._v(" "),(item.status === 3)?_c('img',{attrs:{"src":_vm.disableIcon,"alt":""}}):_vm._e()])])}),_vm._v(" "),(!_vm.dataList.length && _vm.loaded)?_c('div',{staticClass:"nodata"},[_vm._v("暂无优惠券~")]):_vm._e()],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(541);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a575ab6a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1140);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3019)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a575ab6a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a575ab6a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a575ab6a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_medalCenter_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3020);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3e0cd88a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".gesture-enter-active[data-v-a575ab6a],.gesture-leave-active[data-v-a575ab6a]{-webkit-transition:all .4s;transition:all .4s}.gesture-enter[data-v-a575ab6a],.gesture-leave-to[data-v-a575ab6a]{opacity:0;margin-top:40px}.shareGesture[data-v-a575ab6a]{display:inline-block;width:160px;height:30%;background-image:url(" + escape(__webpack_require__(1446)) + ");background-repeat:no-repeat;background-size:100%;position:fixed;top:10px;right:32px;z-index:99999}.shareGesture[data-v-a575ab6a]:after{content:\"\\5206\\4EAB\\5230\\5FAE\\4FE1\\7FA4\\3001\\670B\\53CB\\5708\";width:100%;color:#fff;display:inline-block;position:fixed;left:0;top:32%;text-align:center;font-size:20px}.popup[data-v-a575ab6a]{width:100%;height:60%;background-color:#fff;border-radius:8px 8px 1px 1px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.popup .title[data-v-a575ab6a]{height:134px;border-bottom:1px solid #e5e5e5;padding:24px 16px 0;position:relative}.popup .title .close[data-v-a575ab6a]{position:absolute;width:14px;height:14px;box-sizing:content-box;background-origin:content-box;padding:8px;background-image:url(" + escape(__webpack_require__(807)) + ");background-repeat:no-repeat;background-size:100%;right:16px;top:24px}.popup .title .leftContent[data-v-a575ab6a]{float:left;height:90px;width:90px;position:relative;background:#fafafa;border:1px solid #c9c9c9;border-radius:4px}.popup .title .leftContent img[data-v-a575ab6a]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.popup .title .rightContent[data-v-a575ab6a]{float:left;margin-left:12px}.popup .title .rightContent p[data-v-a575ab6a]:first-child{font-family:PingFangSC-Regular;font-size:18px;color:#333}.popup .title .rightContent p[data-v-a575ab6a]:nth-child(2){margin-top:16px;font-family:PingFangSC-Regular;font-size:16px;color:#ee4545}.popup .container[data-v-a575ab6a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-top:20px;overflow-y:auto}.popup .container>.top[data-v-a575ab6a]{font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:5px solid #2d2c29;padding-left:11px;margin-bottom:12px}.popup .container>.detail[data-v-a575ab6a]{margin-left:16px;margin-right:16px;padding-bottom:10px;font-family:PingFangSC-Regular;font-size:16px;color:#333}.popup .container>.declaration>p[data-v-a575ab6a]{margin-left:16px;margin-right:26px;font-family:PingFangSC-Regular;font-size:18px;color:#333;text-indent:2em}.popup .container>.declaration[data-v-a575ab6a]:before{content:\"\";display:block;background-image:url(" + escape(__webpack_require__(3021)) + ");background-size:100%;background-repeat:no-repeat;height:13px;width:15px;margin-left:20px}.popup .container>.declaration[data-v-a575ab6a]:after{content:\"\";display:block;background-image:url(" + escape(__webpack_require__(3022)) + ");background-size:100%;background-repeat:no-repeat;height:13px;width:15px;margin-left:90%;margin-bottom:20px}.popup .bottom[data-v-a575ab6a]{height:49px;line-height:49px;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#fff;letter-spacing:0;background-color:#ee4545}.medalCenter[data-v-a575ab6a]{position:relative;height:100%;background-color:#f2f2f2}.summary[data-v-a575ab6a]{height:95px;background-size:100%;background-repeat:no-repeat;position:relative}.summary .totalMedal[data-v-a575ab6a]{position:absolute;top:20px;left:20px;display:inline-block;text-align:center}.summary .totalMoney[data-v-a575ab6a]{position:absolute;top:20px;left:146px;display:inline-block;text-align:center}.summary .detail[data-v-a575ab6a]{position:absolute;bottom:22px;right:21px;font-family:PingFangSC-Regular;font-size:14px;color:#fff}.summary .detail[data-v-a575ab6a]:after{content:\"\";display:inline-block;background-image:url(" + escape(__webpack_require__(57)) + ");background-size:100%;background-repeat:no-repeat;width:7px;height:12px;position:absolute;top:50%;right:-10px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.summary .top[data-v-a575ab6a]{font-family:PingFangSC-Regular;font-size:14px;color:#fff;text-align:center}.summary .bottom[data-v-a575ab6a]{font-family:PingFangSC-Semibold;font-size:28px;color:#ebc072}.mainContainer>div[data-v-a575ab6a]{margin-top:10px;background-color:#fff;overflow:hidden;padding-top:18px}.mainContainer .title[data-v-a575ab6a]{font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:5px solid #000;padding-left:11px;margin-bottom:11px}.mainContainer ul[data-v-a575ab6a]{overflow:hidden}.mainContainer ul li[data-v-a575ab6a]{float:left;height:93px;text-align:center;width:25%;position:relative;border-bottom:1px solid #dedede}.mainContainer ul li:nth-child(4n+1):nth-last-child(-n+4)~li[data-v-a575ab6a],.mainContainer ul li[data-v-a575ab6a]:nth-child(4n+1):nth-last-child(-n+4){border-bottom:none}.mainContainer ul li.hot[data-v-a575ab6a]:before{content:\"\";position:absolute;z-index:9;width:10px;height:10px;border-radius:50%;top:12px;right:22px;background-color:#ee4545}.mainContainer ul li[data-v-a575ab6a]:after{content:\"\";position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:25px;background-color:#dedede}.mainContainer ul li[data-v-a575ab6a]:nth-child(4n):after{display:none}.mainContainer ul li img[data-v-a575ab6a]{width:36px;height:40px;position:absolute;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);bottom:38px;pointer-events:none}.mainContainer ul li>div[data-v-a575ab6a]{position:absolute;bottom:13px;width:100%;left:0;text-align:center;font-family:PingFangSC-Regular;font-size:14px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mainContainer ul li.aglow>div[data-v-a575ab6a]{color:#333}.mainContainer ul li.hot>div[data-v-a575ab6a]{color:#ee4545}.bottomTips[data-v-a575ab6a]{margin-top:12px;overflow:hidden;height:150px;background-color:#fff}.bottomTips .title[data-v-a575ab6a]{font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:5px solid #000;padding-left:11px;margin-bottom:10px;margin-top:18px}.bottomTips .detail[data-v-a575ab6a]{font-family:PingFangSC-Regular;font-size:15px;color:#333;letter-spacing:.28px;margin-left:16px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/shareGesture.9208b96.png";module.exports = __webpack_require__.p + "static/img/upQuotation.40edd95.png";module.exports = __webpack_require__.p + "static/img/downQuotation.f536f89.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Popup: _mintUi.Popup
  },
  data: function data() {
    return {
      showGesture: false,
      showMedalDetail: false,
      medalCount: 0,
      medalRewardTotal: 0,
      courseMedalList: [],
      productMedalList: [],
      shareTitle: '',
      medalDetail: '' // 单个勋章的详情信息
    };
  },
  mounted: function mounted() {
    var _this = this;
    // const that = this
    // 获取勋章列表及信息
    this._Util.post(this._Api.POST_MEMBER_PERSONAL_GET_MEDAL, {}, function (data) {
      _this.medalCount = data.medalCount;
      _this.medalRewardTotal = data.medalRewardTotal;
      _this.courseMedalList = data.courseMedalList;
      _this.productMedalList = data.productMedalList;
    }, function () {}, this);
    // 监听微信返回键
    // if (!that._Util.isApp()) {
    //   that.pushHistory();
    //   window.addEventListener('popstate', this.handleHistoryPath, false);
    // }
  },
  destroyed: function destroyed() {
    // 移除微信返回按键的监听
    if (!this._Util.isApp()) {
      window.removeEventListener('popstate', this.handleHistoryPath, false);
    }
  },
  methods: {
    /** 打开分享点赞的提示 */openMessageBox: function openMessageBox() {
      var that = this;
      (0, _mintUi.MessageBox)({
        title: '通知',
        message: '<p style="text-align:center;color:#353535;line-height:25px;font-weight:400;font-size:18px;font-family:PingFangSC-Regular" >勋章福利已下线<br/> 更多福利请持续关注社区</p>',
        showConfirmButton: true,
        confirmButtonText: '去社区看看',
        showCancelButton: true,
        cancelButtonText: '取消'
      }).then(function (action) {
        if (action === 'confirm') {
          that.$router.push({
            name: 'community'
          });
        }
      });
    },
    /** 返回键处理相关 指定历史路径 */handleHistoryPath: function handleHistoryPath(e) {
      console.log(e.state);
      location.href = location.origin + '/v2/member/center';
      // window.location.replace(location.origin + '/v2/member/center');
    },
    /** 微信返回键处理相关方法 */pushHistory: function pushHistory() {
      var state = {
        title: 'shopping',
        url: ''
      };
      window.history.pushState(state, state.title, state.url);
    },
    /** 获取转发标题 */getShareTitle: function getShareTitle() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'medal_share_title',
        medal_no: this.medalDetail.medalNo,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.shareTitle = data.dataList[0].title;
        }
        _this2.share();
      }, function () {
        _this2.share();
      }, this);
    },
    /** 分享逻辑 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
                  desc: '快来点赞，手慢无',
                  link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.medalDetail.medalNo + '&medalTextId=' + that.medalDetail.medalTextId,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
              desc: '快来点赞，手慢无',
              link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.medalDetail.medalNo + '&medalTextId=' + that.medalDetail.medalTextId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
              desc: '快来点赞，手慢无',
              link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.medalDetail.medalNo + '&medalTextId=' + that.medalDetail.medalTextId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
              desc: '快来点赞，手慢无',
              link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.medalDetail.medalNo + '&medalTextId=' + that.medalDetail.medalTextId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 勋章查看详情页面 */goDetail: function goDetail(url, medalId, medalName) {
      // 埋点
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '我的',
        operate_page: '勋章中心',
        optionType: '点击',
        param1: medalId,
        param2: medalName,
        param3: url
      }, this);
      window.location.href = url;
    },
    /** 获取勋章详情 */getMedalDetail: function getMedalDetail(medalId, medalName) {
      var _this3 = this;
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_GET_MEDAL_DETAIL, {
        id: medalId
      }, function (data) {
        _this3.medalDetail = data;
        _this3.showMedalDetail = true;
        // this.getShareTitle();
      }, function () {}, this);
      // 埋点
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: '我的',
        operate_page: '勋章中心',
        optionType: '点击',
        param1: medalId,
        param2: medalName
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"medalCenter",style:({ 'overflow-y': _vm.showMedalDetail ? 'hidden' : 'auto' })},[_c('div',{staticClass:"mainContainer"},[_c('div',{staticClass:"productMedal",staticStyle:{"margin":"0"}},[_c('div',{staticClass:"title"},[_vm._v("产品勋章")]),_vm._v(" "),_c('ul',_vm._l((_vm.productMedalList),function(item,index){return _c('li',{key:index,class:{aglow: item.isAglow, hot: item.redDot},on:{"click":function($event){return _vm.getMedalDetail(item.id, item.medalName)}}},[_c('img',{attrs:{"src":item.medalPic,"alt":""}}),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.medalName))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"processMedal"},[_c('div',{staticClass:"title"},[_vm._v("历程勋章")]),_vm._v(" "),_c('ul',_vm._l((_vm.courseMedalList),function(item,index){return _c('li',{key:index,class:{aglow: item.isAglow, hot: item.redDot},on:{"click":function($event){return _vm.getMedalDetail(item.id, item.medalName)}}},[_c('img',{attrs:{"src":item.medalPic,"alt":""}}),_vm._v(" "),_c('div',[_vm._v(_vm._s(item.medalName))])])}),0)])]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('transition',{attrs:{"name":"gesture"}},[(_vm.showGesture)?_c('div',{staticClass:"shareGesture"}):_vm._e()]),_vm._v(" "),_c('mt-popup',{staticClass:"popup",attrs:{"close-on-click-modal":false,"position":"bottom"},model:{value:(_vm.showMedalDetail),callback:function ($$v) {_vm.showMedalDetail=$$v},expression:"showMedalDetail"}},[_c('div',{staticClass:"title"},[_c('span',{staticClass:"close",on:{"click":function($event){_vm.showMedalDetail=false; _vm.showGesture=false;}}}),_vm._v(" "),_c('div',{staticClass:"leftContent"},[_c('img',{staticStyle:{"width":"65px","height":"72px"},attrs:{"src":_vm.medalDetail.medalPic,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('p',[_vm._v(_vm._s(_vm.medalDetail.medalName))]),_vm._v(" "),(_vm.medalDetail.isAglow === 1)?_c('p',[_vm._v("获得集赞奖励："+_vm._s(_vm.medalDetail.medalReward)+"元")]):_c('p',[_vm._v("暂未获得本勋章")])])]),_vm._v(" "),(_vm.medalDetail.isAglow === 1)?_c('div',{staticClass:"container"},[_c('div',{staticClass:"top"},[_vm._v("集赞宣言")]),_vm._v(" "),_c('div',{staticClass:"declaration"},[_c('p',[_vm._v(_vm._s(_vm.medalDetail.medalText))])])]):_c('div',{staticClass:"container"},[_c('div',{staticClass:"top"},[_vm._v("获取条件")]),_vm._v(" "),_c('div',{staticClass:"detail"},[_c('p',{domProps:{"innerHTML":_vm._s(_vm.medalDetail.medalGetRules)}})])]),_vm._v(" "),(_vm.medalDetail.isAglow === 1)?_c('div',{staticClass:"bottom",on:{"click":_vm.openMessageBox}},[_vm._v(_vm._s(_vm.medalDetail.medalReward > 0 ? '分享给好友' : '分享给好友'))]):_c('div',{staticClass:"bottom",on:{"click":function($event){return _vm.goDetail(_vm.medalDetail.jumpUrl, _vm.medalDetail.id, _vm.medalDetail.medalName)}}},[_vm._v(_vm._s(_vm.medalDetail.buttonText))])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bottomTips"},[_c('div',{staticClass:"title"},[_vm._v("\n      勋章说明\n    ")]),_vm._v(" "),_c('div',{staticClass:"detail"},[_c('p',[_vm._v("1、满足条件即可获得勋章；")]),_vm._v(" "),_c('p',[_vm._v("2、已获得勋章可邀请好友点赞；")]),_vm._v(" "),_c('p',[_vm._v("3、每次点赞你与好友都可得到奖励；")]),_vm._v(" "),_c('p',[_vm._v("4、金额累计满1元可直接提现至微信。")])])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(542);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_565ed92a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1141);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3023)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-565ed92a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_565ed92a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_565ed92a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_wallet_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3024);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("78e631e0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wallet .medal[data-v-565ed92a]{padding:.6rem .6rem 0;box-sizing:border-box;background:#fff}.wallet .medal .bonus[data-v-565ed92a]{width:100%;height:5.4rem;background:url(" + escape(__webpack_require__(3025)) + ") no-repeat;background-size:100% 100%;padding:0 .8rem;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-betwee;font-family:PingFangSC-Regular}.wallet .medal .bonus>div[data-v-565ed92a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center}.wallet .medal .bonus .bonusNum span[data-v-565ed92a]{color:#dec2a9;font-size:14px;line-height:20px}.wallet .medal .bonus .bonusNum p[data-v-565ed92a]{font-size:32px;font-family:PingFangSC-Semibold;font-weight:500;line-height:45px;color:#dec2a9}.wallet .medal .bonus .takeCash[data-v-565ed92a]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-align-items:flex-end}.wallet .medal .bonus .takeCash .takeBtn[data-v-565ed92a]{width:3rem;height:28px;line-height:28px;border-radius:.7rem;font-weight:400;color:#36322e;font-size:14px;background:#dec2a9;text-align:center}.wallet .medal .medalCenter[data-v-565ed92a]{height:2.4rem;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;margin-top:.6rem}.wallet .medal .medalCenter div[data-v-565ed92a]{width:1rem;height:1rem;background:url(" + escape(__webpack_require__(3026)) + ") no-repeat;background-size:100% 100%}.wallet .medal .medalCenter span[data-v-565ed92a]{margin-left:.6rem;font-size:18px;color:#333}.wallet .medal .medalCenter i[data-v-565ed92a]{width:7px;height:12px;background:url(" + escape(__webpack_require__(1447)) + ") no-repeat;background-size:100% 100%;margin-left:auto}.wallet .hr[data-v-565ed92a]{height:.8rem;background:#f2f2f2}.wallet .payCont[data-v-565ed92a]{padding:1rem .6rem 0;box-sizing:border-box}.wallet .payCont .cont[data-v-565ed92a]{min-height:18rem;box-shadow:0 0 12px 0 rgba(204,215,230,.79);border-radius:2px;padding:.8rem .6rem 0;box-sizing:border-box}.wallet .payCont .cont .title[data-v-565ed92a]{font-size:18px;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:25px}.wallet .payCont .cont .title .des[data-v-565ed92a]{font-size:14px;color:#666;line-height:20px;font-weight:400;margin-top:2px}.wallet .payCont .cont .inputCont[data-v-565ed92a]{width:100%;height:2.4rem;border-radius:2px;border:1px solid #377ee1;position:relative;margin-top:1rem}.wallet .payCont .cont .inputCont input[data-v-565ed92a]{height:100%;width:-webkit-calc(100% - 3.7rem);width:calc(100% - 3.7rem);padding-left:.3rem;line-height:2.4rem;color:#333;font-size:16px;font-weight:500}.wallet .payCont .cont .inputCont button[data-v-565ed92a]{width:3.4rem;height:1.9rem;background:#377ee1;border-radius:1px;line-height:1.9rem;text-align:center;color:#fff;position:absolute;top:.2rem;right:.25rem;font-size:16px}.wallet .payCont .cont .matchResult[data-v-565ed92a]{text-align:center;font-family:PingFangSC-Regular}.wallet .payCont .cont .matchResult .success .txt[data-v-565ed92a]{font-size:16px;color:#666;line-height:23px;margin-top:1rem}.wallet .payCont .cont .matchResult .success .matchKeyWord[data-v-565ed92a]{color:#ee4545;font-size:24px;line-height:34px;margin-top:.8rem}.wallet .payCont .cont .matchResult .success .payBtn[data-v-565ed92a]{height:44px;line-height:44px;background:#377ee1;border-radius:22px;color:#fff;font-size:18px;margin-top:1.5rem}.wallet .payCont .cont .matchResult .fail[data-v-565ed92a]{text-align:center;font-family:PingFangSC-Regular}.wallet .payCont .cont .matchResult .fail i[data-v-565ed92a]{display:inline-block;width:2.25rem;height:2.6rem;background:url(" + escape(__webpack_require__(3027)) + ") no-repeat;background-size:100% 100%;margin-top:3.3rem}.wallet .payCont .cont .matchResult .fail div[data-v-565ed92a]{color:#666;font-size:16px;margin-top:.6rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/bonus.98a0a63.png";module.exports = __webpack_require__.p + "static/img/medalCenter.aa40ade.png";module.exports = __webpack_require__.p + "static/img/adress.8deaaf9.png";module.exports = __webpack_require__.p + "static/img/fail.1d370f2.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _header = _interopRequireDefault(__webpack_require__(93));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {},
  components: {
    // VueArea,
    headerFixed: _header.default
  },
  data: function data() {
    return {
      keyWord: '',
      // 搜索关键字
      matchKeyWord: '',
      // 匹配口令
      clickFlag: false,
      // 是否点击过查询按钮
      medalRewardTotal: 0,
      // 奖金总额
      resultUrl: '',
      btnText: '',
      // 按钮文字内容
      isApp: !!this._Util.isApp() || this._Util.isMPaaS()
    };
  },
  computed: {},
  watch: {},
  created: function created() {},
  mounted: function mounted() {
    var that = this;
    that.getRewardTotal();
  },
  methods: {
    // 获取总奖励金额
    getRewardTotal: function getRewardTotal() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_GET_MEDAL, {}, function (data) {
        that.medalRewardTotal = data.medalRewardTotal;
      }, function () {}, that);
    },
    // 点击查询按钮
    query: function query() {
      var that = this;
      if (!that.keyWord) {
        (0, _mintUi.Toast)('请输入钱包口令');
        that.matchKeyWord = '';
        return;
      }
      that._Util.collectPageView2({
        postUrl: that._Api.POST_COLLECT,
        moduleType: '钱包',
        operate_page: window.location.href,
        optionType: '点击',
        param1: that.keyWord,
        param2: '',
        param3: '',
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'wallet_key_search',
        key: that.keyWord,
        source: this.isApp ? 'app' : 'weixin',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        that.clickFlag = true;
        if (data.dataList && data.dataList[0].button_name) {
          that.matchKeyWord = data.dataList[0].key_content;
          that.resultUrl = data.dataList[0].button_url;
          that.btnText = data.dataList[0].button_name;
        } else {
          that.matchKeyWord = '';
        }
      }, function () {}, that);
    },
    // 跳转到参与活动领红包
    toRedPackage: function toRedPackage() {
      var that = this;
      var url = that._Api.HOSTRESOURCEPATH + '/v2/community/receiveRedPacket';
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'redPackage',
            url: url
          }
        });
      } else {
        window.location.href = url;
      }
    },
    // 跳转到勋章中心
    toMedalCenter: function toMedalCenter() {
      var that = this;
      var url = that._Api.HOSTRESOURCEPATH + '/v2/member/center/per/medal/medalCenter';
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'medalCenter',
            url: url
          }
        });
      } else {
        window.location.href = url;
      }
    },
    //
    toPay: function toPay() {
      var that = this;
      var url = that.resultUrl;
      that._Util.collectPageView2({
        postUrl: that._Api.POST_COLLECT,
        moduleType: '钱包',
        operate_page: window.location.href,
        optionType: '点击',
        param1: that.btnText,
        param2: url,
        param3: '',
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'payMoney',
            url: url
          }
        });
      } else {
        window.location.href = url;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wallet",style:(!_vm.isApp ? 'margin-top:2.6rem' : '')},[_c('div',{staticClass:"medal"},[_c('div',{staticClass:"bonus"},[_c('div',{staticClass:"bonusNum"},[_c('span',[_vm._v("奖金总额（元）")]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.medalRewardTotal))])]),_vm._v(" "),_c('div',{staticClass:"takeCash"},[_c('div',{staticClass:"takeBtn",on:{"click":function($event){$event.stopPropagation();return _vm.$router.push({path: '/v2/member/center/per/medal/reward'})}}},[_vm._v("提现")])])]),_vm._v(" "),_c('div',{staticClass:"medalCenter",staticStyle:{"border-bottom":"1px solid #E6E6E6"},on:{"click":function($event){$event.stopPropagation();return _vm.toRedPackage.apply(null, arguments)}}},[_c('div',{staticStyle:{"background-image":"url('http://static2.kaxiuyun.com/kxy/member/wallet/receive_red_packet.png')"}}),_vm._v(" "),_c('span',[_vm._v("参与活动领红包")]),_vm._v(" "),_c('i')]),_vm._v(" "),_c('div',{staticClass:"medalCenter",staticStyle:{"margin-top":"0"},on:{"click":function($event){$event.stopPropagation();return _vm.toMedalCenter.apply(null, arguments)}}},[_c('div'),_vm._v(" "),_c('span',[_vm._v("勋章中心")]),_vm._v(" "),_c('i')])]),_vm._v(" "),_c('div',{staticClass:"hr"}),_vm._v(" "),_c('div',{staticClass:"payCont"},[_c('div',{staticClass:"cont"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"inputCont"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyWord),expression:"keyWord"}],attrs:{"type":"text","placeholder":"请输入钱包口令"},domProps:{"value":(_vm.keyWord)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value}}}),_vm._v(" "),_c('button',{on:{"click":_vm.query}},[_vm._v("查询")])]),_vm._v(" "),_c('div',{staticClass:"matchResult"},[(_vm.clickFlag && _vm.matchKeyWord)?_c('div',{staticClass:"success"},[_c('div',{staticClass:"txt"},[_vm._v("匹配口令")]),_vm._v(" "),_c('div',{staticClass:"matchKeyWord"},[_vm._v(_vm._s(_vm.matchKeyWord))]),_vm._v(" "),_c('div',{staticClass:"payBtn",on:{"click":function($event){$event.stopPropagation();return _vm.toPay.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.btnText))])]):_vm._e(),_vm._v(" "),(_vm.clickFlag && !_vm.matchKeyWord)?_c('div',{staticClass:"fail"},[_c('i'),_vm._v(" "),_c('div',[_vm._v("小轨未查到该口令，请重新输入")])]):_vm._e()])])]),_vm._v(" "),(!_vm.isApp)?_c('headerFixed'):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_vm._v("\n        钱包口令\n        "),_c('div',{staticClass:"des"},[_vm._v("\n          输入钱包口令可进入指定页面\n        ")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(543);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0048be40_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1142);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3028)
  __webpack_require__(3030)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0048be40"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0048be40_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0048be40_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reward_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3029);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4efc9f90", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".showDetail[data-v-0048be40]{text-align:center;font-size:14px;width:120px;margin:0 auto;margin-top:120px;color:#ee4545;text-decoration:underline}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3031);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f81871b4", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fade-enter-active[data-v-0048be40],.fade-leave-active[data-v-0048be40]{-webkit-transition:opacity .5s;transition:opacity .5s}.fade-enter[data-v-0048be40],.fade-leave-to[data-v-0048be40]{opacity:0}.popup[data-v-0048be40]{background-color:#fff;width:100%;height:419px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.popup>div:first-child > span.close[data-v-0048be40]{position:absolute;width:14px;height:14px;box-sizing:content-box;background-origin:content-box;padding:8px;background-image:url(" + escape(__webpack_require__(807)) + ");background-repeat:no-repeat;background-size:100%;right:16px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.popup>div[data-v-0048be40]:first-child{height:48px;line-height:48px;text-align:center;border-bottom:1px solid #b9b9b9;font-family:PingFangSC-Regular;font-size:18px;color:#333;position:relative}.popup>div[data-v-0048be40]:nth-child(2){text-align:center;position:relative;height:371px}.popup>div:nth-child(2)>.totalMoney[data-v-0048be40]{font-family:PingFangSC-Regular;margin-top:44px}.popup>div:nth-child(2)>.totalMoney .money1[data-v-0048be40]{color:#ee4545;font-size:24px}.popup>div:nth-child(2)>.totalMoney .money2[data-v-0048be40]{margin-top:8px;color:#666;font-size:16px}.popup>div:nth-child(2)>.tips[data-v-0048be40]{margin-top:3px;text-align:left;overflow:scroll}.popup>div:nth-child(2)>.tips>.top[data-v-0048be40]{font-family:PingFangSC-Semibold;font-size:16px;color:#333;border-left:5px solid #2d2c29;padding-left:11px}.popup>div:nth-child(2)>.tips>div[data-v-0048be40]:nth-child(2){margin-top:8px;margin-left:16px;font-family:PingFangSC-Regular;font-size:16px;color:#333;padding-right:11px;overflow-y:scroll;height:165px;text-overflow:ellipsis}.popup>div:nth-child(2)>.submitBtn[data-v-0048be40]{height:49px;width:100%;text-align:center;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#fff;background-color:#ee4545;position:absolute;bottom:0;left:0}.popup>div:nth-child(2)>img[data-v-0048be40]{margin-top:61px;width:144px;height:143px;margin-bottom:20px}.popup>div:nth-child(2)>p[data-v-0048be40]{font-family:PingFangSC-Regular;font-size:18px;color:#333}.reward[data-v-0048be40]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative}.reward>.maskLayer[data-v-0048be40]{position:absolute;z-index:999;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.5)}.reward>.maskLayer>.strategyContainer[data-v-0048be40]{background-color:#fff;position:absolute;width:85%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:12px}.reward>.maskLayer>.strategyContainer>.title[data-v-0048be40]{width:100%;text-align:center;font-family:PingFangSC-Regular;font-size:20px;color:#333;padding-top:16px;padding-bottom:16px}.reward>.maskLayer>.strategyContainer>.content[data-v-0048be40]{font-family:PingFangSC-Regular;font-size:16px;color:#333;padding-bottom:28px;border-bottom:1px solid #d8d8d8;padding-left:12px;padding-right:12px}.reward>.maskLayer>.strategyContainer>.bottom[data-v-0048be40]{text-align:center;height:49px;line-height:49px;font-family:PingFangSC-Regular;font-size:18px;color:#ee4545}.summary[data-v-0048be40]{width:100%;height:95px;background-size:100%;background-repeat:no-repeat;position:relative;overflow:hidden}.summary>div[data-v-0048be40]{width:50%;float:left;text-align:center}.summary>div>div[data-v-0048be40]:first-child{margin-top:20px;font-family:PingFangSC-Regular;font-size:14px;color:#fff}.summary>div>div[data-v-0048be40]:first-child::after{content:\"\";display:inline-block;width:1px;height:24px;background-color:#ebc072;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.summary>div>div[data-v-0048be40]:nth-child(2){font-family:PingFangSC-Semibold;font-size:28px;color:#ebc072}.mainContainer[data-v-0048be40]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.mainContainer>.title[data-v-0048be40]{height:51px;line-height:51px;background-color:#f2f2f2;font-family:PingFangSC-Regular;font-size:16px;color:#666;text-indent:16px}.mainContainer>.title .strategy[data-v-0048be40]{font-size:14px;color:#ee4545;font-family:PingFangSC-Regular;position:relative;margin-right:28px}.mainContainer>.title .strategy[data-v-0048be40]:after{content:\"\";color:#000;display:inline-block;width:14px;height:14px;border-radius:50%;background-image:url(" + escape(__webpack_require__(825)) + ");background-size:100%;position:absolute;top:49%;right:-16px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.mainContainer>ul.rewardList[data-v-0048be40]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;padding-left:16px}.mainContainer>ul.rewardList>li[data-v-0048be40]{height:69px;border-bottom:1px solid #d1d1d1;overflow:hidden;position:relative}ul.rewardList>li div[data-v-0048be40]:first-child{margin-top:12px;font-size:0}ul.rewardList>li div:first-child p[data-v-0048be40]:nth-child(1){font-family:PingFangSC-Regular;font-size:16px;color:#333}ul.rewardList>li div:first-child p[data-v-0048be40]:nth-child(2){font-family:PingFangSC-Regular;font-size:14px;color:#666}ul.rewardList>li>div[data-v-0048be40]:nth-child(2){position:absolute;top:12px;right:16px;text-align:right}ul.rewardList>li div:nth-child(2) p[data-v-0048be40]:first-child{font-family:PingFangSC-Regular;font-size:18px}ul.rewardList>li div:nth-child(2) p[data-v-0048be40]:nth-child(2){font-family:PingFangSC-Regular;font-size:12px;color:#333}.withdraw[data-v-0048be40]{background-color:#ee4545;height:49px;line-height:49px;text-align:center;color:#fff;font-family:PingFangSC-Regular;font-size:18px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/question.c472f5a.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    // eslint-disable-next-line vue/no-unused-components
    Popup: _mintUi.Popup,
    // eslint-disable-next-line vue/no-unused-components
    InfiniteScroll: _mintUi.InfiniteScroll
  }, _dialog.default.name, _dialog.default),
  data: function data() {
    return {
      showDetail: false,
      withdrawing: false,
      verifying: false,
      showRewardDetail: false,
      rewardTotal: 0,
      // 奖金总额
      notPutForward: 0,
      // 未提现金额
      thisTimePutForward: 0,
      // 本次可提现金额
      pageNum: 1,
      pageSize: 10,
      detailList: [],
      loading: false,
      // 滚动加载 正在加载中
      allLoaded: false,
      // 所有列表数据加载完毕
      isShowStrategy: false,
      // 是否展示高奖励攻略
      strategyContent: '' // 高奖励攻略内容
    };
  },
  mounted: function mounted() {
    this.getReward();
    // this.getRewardDetail();
  },
  methods: {
    /** 查看奖励详情 */openRewardList: function openRewardList() {
      this.showDetail = true;
      this.getRewardDetail();
    },
    /** 展示 高奖励攻略 模态框 */showStrategy: function showStrategy() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'medal_strategy',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.strategyContent = data.dataList[0].text;
          _this.isShowStrategy = true;
        }
      }, function () {}, this);
    },
    /** 判断当前用户是否关注公众号，并且认证 */getUserInfo: function getUserInfo() {
      var that = this;
      if (that.verifying) return;
      that.verifying = true;

      // 实名认证通过
      if (that.$store.state.userInfo.isRealName === 1) {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
          if (data) {
            if (data.userStatus == 0) {
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '您尚未认证，请先认证',
                showConfirmButton: true,
                confirmButtonText: '认证',
                confirmButtonClass: 'confirmBtn',
                closeOnClickModal: false
              }).then(function (action) {
                if (action === 'confirm') {
                  that.$router.push({
                    name: 'personalCertification',
                    query: {
                      nextPath: window.location.href
                    }
                  });
                }
              });
            } else {
              that.submitWithdraw();
            }
            that.verifying = false;
          }
        }, function () {
          that.verifying = false;
        }, that);
      } else {
        _dialog.default.confirm({
          message: '请先进行实名认证',
          confirmButtonText: '去认证'
        }).then(function () {
          if (that._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'realNameProof',
                url: "".concat(location.origin, "/v2/common/realNameProof")
              }
            });
          } else {
            that.$router.push({
              name: 'realNameProof'
            });
          }
        }).catch(function () {
          that.verifying = false;
          console.log('取消');
        });
      }
    },
    /** 确认提现按钮 */submitWithdraw: function submitWithdraw() {
      var _this2 = this;
      _mintUi.Indicator.open();
      // 判断是否正在请求数据
      if (this.withdrawing) return;
      this.withdrawing = true;
      this.showRewardDetail = false;
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_MEDAL_REWARD_WITHDRAW, {}, function (data) {
        // Indicator.close();
        (0, _mintUi.Toast)('提现成功');
        // 申请成功 刷新数据
        _this2.getReward();
        _this2.pageNum = 1;
        _this2.getRewardDetail();
        _this2.withdrawing = false;
      }, function () {
        _this2.withdrawing = false;
      }, this);
    },
    /** 滚动加载更多奖励明细 */loadMore: function loadMore() {
      if (!this.allLoaded && !this.loading) {
        this.loading = true;
        this.getRewardDetail();
      }
    },
    /** 获取勋章奖励信息 */getReward: function getReward() {
      var _this3 = this;
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_GET_MEDAL_REWARD, {}, function (data) {
        _this3.rewardTotal = data.rewardTotal;
        _this3.notPutForward = data.notPutForward;
        _this3.thisTimePutForward = data.thisTimePutForward;
      }, function () {}, this);
    },
    /** 获取勋章奖励详情 */getRewardDetail: function getRewardDetail() {
      var _this4 = this;
      if (this.pageNum === 1) {
        this.detailList = [];
      }
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_GET_REWARD_DETAIL, {
        pageNum: this.pageNum,
        pageSize: this.pageSize
      }, function (data) {
        // let _temp = [];
        // _temp = this.detailList.concat(data.dataList);
        // this.detailList = _temp;
        if (data.dataList) {
          data.dataList.forEach(function (val) {
            _this4.detailList.push(val);
          });
        }
        if (data.dataList.length < _this4.pageSize) {
          _this4.allLoaded = true;
        } else {
          _this4.pageNum++;
        }
        _this4.loading = false;
      }, function () {}, this);
    },
    handleType: function handleType(type) {
      var _type = '';
      switch (type) {
        case 1:
          _type = '点赞';
          break;
        case 2:
          _type = '赏金';
          break;
        case 3:
          _type = '提现中';
          break;
        case 4:
          _type = '提现成功';
          break;
        case 5:
          _type = '提现失败';
          break;
      }
      return _type;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"reward"},[_c('transition',{attrs:{"name":"fade"}},[(_vm.isShowStrategy)?_c('div',{staticClass:"maskLayer"},[_c('div',{staticClass:"strategyContainer"},[_c('div',{staticClass:"title"},[_vm._v("高奖励攻略")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.strategyContent)}}),_vm._v(" "),_c('div',{staticClass:"bottom",on:{"click":function($event){_vm.isShowStrategy=false;}}},[_vm._v("\n          我知道了\n        ")])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"summary"},[_c('div',[_c('div',[_vm._v("奖金总额(元)")]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.rewardTotal))])]),_vm._v(" "),_c('div',[_c('div',[_vm._v("未提现(元)")]),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.notPutForward))])])]),_vm._v(" "),_c('div',{staticClass:"mainContainer"},[_c('div',{staticClass:"title"},[_vm._v("\n      奖励及提现明细\n      "),_c('span',{staticClass:"strategy",staticStyle:{"float":"right"},on:{"click":_vm.showStrategy}},[_vm._v("高奖励攻略")])]),_vm._v(" "),(!_vm.showDetail)?_c('ul',{staticClass:"rewardList",staticStyle:{"padding-left":"0px"}},[_c('div',{staticClass:"showDetail",on:{"click":_vm.openRewardList}},[_vm._v("查看明细")])]):(_vm.detailList.length>0)?_c('ul',{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:(_vm.loadMore),expression:"loadMore"}],staticClass:"rewardList",attrs:{"infinite-scroll-immediate-check":"false","infinite-scroll-disabled":_vm.loading,"infinite-scroll-distance":"10"}},_vm._l((_vm.detailList),function(item,index){return _c('li',{key:index},[_c('div',[_c('p',[_vm._v(_vm._s(item.medalName ? item.medalName : '提现'))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.createTime))])]),_vm._v(" "),_c('div',[_c('p',{style:({color: item.isPlus == 0 ? '#EE4545' : '#333'})},[_vm._v("\n            "+_vm._s(item.isPlus == 0 ? '-' : '+')+_vm._s(item.amount)+"元\n          ")]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.handleType(item.type)))])])])}),0):_c('p',{staticStyle:{"text-align":"center","font-size":"18px","color":"#999","margin-top":"30px"}},[_vm._v("暂无数据")])]),_vm._v(" "),_c('div',{staticClass:"withdraw",on:{"click":function($event){_vm.showRewardDetail=true;}}},[_vm._v("\n    立即提现\n  ")]),_vm._v(" "),_c('mt-popup',{staticClass:"popup",attrs:{"close-on-click-modal":false,"position":"bottom"},model:{value:(_vm.showRewardDetail),callback:function ($$v) {_vm.showRewardDetail=$$v},expression:"showRewardDetail"}},[_c('div',[_vm._v("\n      奖励提现\n      "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showRewardDetail=false;}}})]),_vm._v(" "),(_vm._Util.isApp())?_c('div',[_c('img',{attrs:{"src":__webpack_require__(3032),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("请至卡修宝典微信公众号")]),_vm._v(" "),_c('p',[_vm._v("进行提现操作，即时到账")])]):_c('div',[_c('div',{staticClass:"totalMoney"},[_c('p',{staticClass:"money1"},[_vm._v("本月可提现金额："+_vm._s(_vm.thisTimePutForward)+"元")]),_vm._v(" "),_c('p',{staticClass:"money2"},[_vm._v("可提现总金额："+_vm._s(_vm.notPutForward)+"元")])]),_vm._v(" "),_c('div',{staticClass:"tips"},[_c('div',{staticClass:"top"},[_vm._v("\n          提现说明\n        ")]),_vm._v(" "),_c('div',[_c('p',[_vm._v("1、提现需实名认证；")]),_vm._v(" "),_c('p',[_vm._v("2、每位用户每月累计提现金额不可超过800元；")]),_vm._v(" "),_c('p',[_vm._v("3、满1元可提现，每日可提3次；")]),_vm._v(" "),_c('p',[_vm._v("4、提现金额通过「卡修宝典」微信号发红包方式提取；")]),_vm._v(" "),_c('p',[_vm._v("5、如未绑定微信，请先关注「卡修宝典」。")]),_vm._v(" "),_c('p',[_vm._v("6、卡修宝典将根据《个人所得税法》第六条规定，为您申报个人所得税，对于每月不超过800元的稿酬、财产租赁、劳务报酬等所得，"),_c('strong',[_c('u',[_vm._v("免征个人所得税")])]),_vm._v("。")])])]),_vm._v(" "),_c('div',{staticClass:"submitBtn",on:{"click":_vm.getUserInfo}},[_vm._v("\n        确认提现\n      ")])])])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/k_code.7b19106.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(544);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28595701_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1143);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3033)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-28595701"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28595701_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28595701_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_medalInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3034);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4b96b2aa", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".container[data-v-28595701]{height:100%;background-color:#fff;position:relative}.container>.mask[data-v-28595701]{position:absolute;width:100%;height:100%;top:0;left:0;background-color:rgba(0,0,0,.5);z-index:999}.container>.mask>img[data-v-28595701]{width:50%;position:absolute;right:5%;top:5%}.container>.mask>div[data-v-28595701]{position:absolute;top:42%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center;font-size:24px;color:#fff;width:100%}.card[data-v-28595701]{background-color:#fff;position:relative}.card>img[data-v-28595701]{width:100%}.card>.content[data-v-28595701]{position:absolute;width:100%;height:100%;color:#fff}.card>.content .left-content[data-v-28595701]{position:absolute;left:9%;top:24%}.card>.content .left-content>p[data-v-28595701]{font-family:PingFangSC-Regular;font-size:20px;color:#ebc072}.card>.content .right-content[data-v-28595701]{position:absolute;right:10%;top:23%;width:16%}.card>.content .right-content>img[data-v-28595701]{width:100%}.declaration[data-v-28595701]{background-color:#fff;padding-top:18px}.declaration>p[data-v-28595701]{font-family:PingFangSC-Semibold;font-size:16px;line-height:1;color:#333;border-left:5px solid #2d2c29;text-indent:11px}.declaration>.content[data-v-28595701]{margin-top:16px;padding-left:16px;padding-right:16px}.declaration>.content .medalText[data-v-28595701]{background:#eaeaea;border:1px solid #c2c2c2;border-radius:4px;padding:12px;min-height:93px}.declaration>.content .shareBtn[data-v-28595701]{margin-top:24px;background:#ee4545;border:1px solid rgba(0,0,0,.1);border-radius:4px;font-family:PingFangSC-Regular;font-size:17px;color:#fff;text-align:center;height:44px;line-height:44px}.declaration>.content .tips[data-v-28595701]{margin-top:27px}.declaration>.content .tips>p[data-v-28595701]{font-family:PingFangSC-Regular;font-size:16px;color:#333;line-height:26px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      medalInfo: '',
      showMask: false,
      shareTitle: ''
    };
  },
  mounted: function mounted() {
    this.getMedalInfo();
    this.getShareTitle();
  },
  methods: {
    /** 获取转发标题 */getShareTitle: function getShareTitle() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'medal_share_title',
        medal_no: this.$route.query.medalNo,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this.shareTitle = data.dataList[0].title;
        }
        _this.share();
      }, function () {
        _this.share();
      }, this);
    },
    /** 获取勋章信息 */getMedalInfo: function getMedalInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_MEMBER_PERSONAL_GET_GATHER_PRAISE, {
        medalNo: this.$route.query.medalNo,
        medalTextId: this.$route.query.medalTextId
      }, function (data) {
        _this2.medalInfo = data;
      }, function () {}, this);
    },
    /** 分享逻辑 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
                  desc: '快来点赞，手慢无',
                  link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.$route.query.medalNo + '&medalTextId=' + that.$route.query.medalTextId,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
              desc: '快来点赞，手慢无',
              link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.$route.query.medalNo + '&medalTextId=' + that.$route.query.medalTextId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
              desc: '快来点赞，手慢无',
              link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.$route.query.medalNo + '&medalTextId=' + that.$route.query.medalTextId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.shareTitle || '围观我的卡修宝典勋章，点赞得奖励，可直接提现哦~',
              desc: '快来点赞，手慢无',
              link: location.origin + '/v2/member/center/per/medal/shareAndLike?medalNo=' + that.$route.query.medalNo + '&medalTextId=' + that.$route.query.medalTextId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container"},[_c('div',{staticStyle:{"height":"14px","background-color":"#fff"}}),_vm._v(" "),_c('div',{staticClass:"card"},[_c('div',{staticClass:"content"},[(_vm.medalInfo !== '')?_c('div',{staticClass:"left-content"},[_c('p',[_vm._v(_vm._s(_vm.medalInfo.userName.substr(0, 6))+"，恭喜你")]),_vm._v(" "),_c('p',[_vm._v("获得「"+_vm._s(_vm.medalInfo.medalName)+"」勋章")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right-content"},[_c('img',{attrs:{"src":_vm.medalInfo.medalPic,"alt":""}})])]),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(3035),"alt":""}})]),_vm._v(" "),_c('div',{staticStyle:{"height":"18px","background-color":"#f2f2f2"}}),_vm._v(" "),_c('div',{staticClass:"declaration"},[_c('p',[_vm._v("集赞宣言")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"medalText"},[_vm._v("\n        "+_vm._s(_vm.medalInfo.medalText)+"\n      ")]),_vm._v(" "),_c('div',{staticClass:"shareBtn",on:{"click":function($event){_vm.showMask = true;}}},[_vm._v("\n        转发集赞，得现金奖励(直接提现)\n      ")]),_vm._v(" "),_vm._m(0)])]),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"mask",on:{"click":function($event){_vm.showMask = false;}}},[_c('img',{attrs:{"src":__webpack_require__(1446),"alt":""}}),_vm._v(" "),_c('div',[_vm._v("转发到微信群、朋友圈")])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tips"},[_c('p',[_vm._v("1、每次点赞你与好友都可得到奖励；")]),_vm._v(" "),_c('p',[_vm._v("2、金额累计满1元可直接提现至微信。")])])}]
module.exports = __webpack_require__.p + "static/img/card.72f08ac.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(545);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_799a8006_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1144);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3036)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_799a8006_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_799a8006_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3037);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8cf226a8", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".renewal .renewal_img{text-align:center;padding:40px 0}.renewal .renewal_img img{height:110px;margin-bottom:10px}.renewal .renewal_img p{font-size:18px;font-weight:700;text-align:center}.renewal>p{padding-left:10px}.renewal>p,.renewal>p span{font-size:16px;font-weight:700}.renewal>p span{color:#d41116}.renewal .renwval_btn{position:fixed;bottom:0;left:0;height:70px;background:#ededed;text-align:center;width:100%}.renewal .renwval_btn button{width:96%;margin-top:10px;height:50px;text-align:center;color:#fff;font-size:16px;background:#d41116;border-radius:5px}.renewal .uerTime{overflow:hidden;height:40px;line-height:40px;border:1px solid #ccc;margin-bottom:10px}.renewal .uerTime span.uerYear{float:left;margin-left:10px;font-size:16px}.renewal .uerTime span.uerYearTime{float:right;margin-right:20px;padding-right:20px;font-size:16px;background:url(" + escape(__webpack_require__(223)) + ") 100% no-repeat;background-size:8px 15px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

//  import VueArea from '../../../../components/vue-area/vue-area.vue'
var address = {
  '年费会员': ['1年', '2年', '3年'],
  '月费会员': ['1个月', '2个月', '3个月', '4个月', '5个月', '6个月', '7个月', '8个月', '9个月', '10个月', '11个月']
};
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      display: false,
      mdseId: 1,
      quantity: 1,
      memScope: {
        styleList: '年费会员',
        numList: '1'
      },
      addressSlots: [{
        flex: 1,
        values: Object.keys(address),
        className: 'slot1',
        textAlign: 'center'
      }, {
        divider: true,
        content: '-',
        className: 'slot2'
      }, {
        flex: 1,
        values: ['1年', '2年', '3年'],
        className: 'slot3',
        textAlign: 'center'
      }],
      result: {}
    };
  },
  watch: {},
  mounted: function mounted() {
    // this.buttonBottom = this.$refs.button.$el.getBoundingClientRect().bottom;
  },
  methods: {
    onYearChange: function onYearChange(picker, values) {
      this.year = values[0];
    },
    onDateChange: function onDateChange(picker, values) {
      if (values[0] > values[1]) {
        picker.setSlotValue(1, values[0]);
      }
      this.dateStart = values[0];
      this.dateEnd = values[1];
    },
    onAddressChange: function onAddressChange(picker, values) {
      var that = this;
      picker.setSlotValues(1, address[values[0]]);
      that.addressProvince = values[0];
      setTimeout(function () {
        that.memScope = {
          styleList: values[0],
          numList: values[1].replace(/[^0-9]/ig, '')
        };
        that.quantity = that.memScope.numList;
      }, 300);
    },
    _comeIn: function _comeIn() {
      this.display = true;
    },
    _cancel: function _cancel() {
      var that = this;
      that.display = false;
      that.memScope = {
        styleList: '年费会员',
        numList: 1
      };
    },
    _ensure: function _ensure() {
      this.display = false;
    },
    renewPy: function renewPy() {
      var that = this;
      console.log();
      if (that.memScope.styleList == '年费会员') {
        that.mdseId = 1;
      } else {
        that.mdseId = 2;
      }
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_GET_JS_PARAMETER, {
        mdseId: that.mdseId,
        quantity: that.quantity
      }, function (data) {
        WeixinJSBridge.invoke('getBrandWCPayRequest', JSON.parse(data.jsApiParameters), function (res) {
          WeixinJSBridge.log(res.err_msg);
        });
      }, function () {}, that, true);
    },
    closeSelect: function closeSelect() {
      this.display = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"renewal"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"uerTime",on:{"click":function($event){return _vm._comeIn()}}},[_c('span',{staticClass:"uerYear"},[_vm._v(_vm._s(_vm.memScope.styleList))]),_vm._v(" "),_c('span',{staticClass:"uerYearTime"},[_vm._v(_vm._s(_vm.memScope.styleList == '年费会员' ? _vm.memScope.numList+'年' : _vm.memScope.numList+'月'))])]),_vm._v(" "),(_vm.display)?_c('div',{staticStyle:{"position":"fixed","width":"100%","height":"100%","z-index":"888","left":"0","top":"0","background":"#000000","opacity":"0.4"},on:{"click":_vm.closeSelect}}):_vm._e(),_vm._v(" "),(_vm.display)?_c('div',{staticClass:"uregTime"},[_c('button',{staticClass:"cancel",on:{"click":function($event){return _vm._cancel()}}},[_vm._v("取消")]),_vm._v(" "),_c('span',[_vm._v("请选择")]),_vm._v(" "),_c('button',{staticClass:"ensure",on:{"click":function($event){return _vm._ensure()}}},[_vm._v("确认")]),_vm._v(" "),_c('div',{staticStyle:{"position":"absolute","left":"0","top":"0","background":"#eee","z-index":"-20","height":"50px","width":"100%"}}),_vm._v(" "),_c('mt-picker',{attrs:{"slots":_vm.addressSlots,"visible-item-count":5},on:{"change":_vm.onAddressChange}})],1):_vm._e(),_vm._v(" "),_c('p',[_vm._v("您需要支付："),_c('span',[_vm._v("￥")]),_c('span',[_vm._v(_vm._s(_vm.memScope.styleList == '年费会员' ? _vm.memScope.numList*300+'.00' : _vm.memScope.numList*40+'.00'))])]),_vm._v(" "),_c('div',{staticClass:"renwval_btn"},[_c('button',{on:{"click":function($event){return _vm.renewPy()}}},[_vm._v("支付")])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"renewal_img"},[_c('img',{attrs:{"src":__webpack_require__(3038)}}),_vm._v(" "),_c('p',[_vm._v("会员续费")])])}]
module.exports = __webpack_require__.p + "static/img/20161103004.604ed10.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(546);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9c096c84_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1145);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3039)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9c096c84_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_9c096c84_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberIntegral_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3040);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("08c7b86d", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".intergalRules>div{background:#fff;margin-bottom:10px;border-bottom:1px solid #ccc}.intergalRules>div>p:first-child{font-size:18px;color:#000;height:50px;line-height:50px;text-indent:15px;font-weight:700;border-bottom:1px solid #ccc;background:url(" + escape(__webpack_require__(3041)) + ") 0 no-repeat;background-size:5px 20px}.intergalRules>div p{font-family:\\\\5FAE\\8F6F\\96C5\\9ED1,serif;font-size:14px;color:#333}.intergalRules>div>p:nth-child(2){padding:10px 0 20px}.intergalRules>div>p{margin:0 10px}.intergalRules>div ul{position:relative;margin:10px 10px 20px;border-top:1px solid #e6e6e6}.intergalRules>div ul:nth-child(2){border-top:none}.intergalRules>div li p{margin-bottom:7px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/cutLeft.c90165a.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {};
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"intergalRules",staticStyle:{"background":"#EDEDED"}},[_c('div',[_c('p',[_vm._v("卡修宝典的积分能做什么？")]),_vm._v(" "),_c('p',[_vm._v("您可以使用积分在平台兑换相应的会员权限和实物奖励，同时卡修宝典会定期对积分排名靠前的会员，发放超值奖励！不过具体的兑换奖励细则，嘿，恕小轨卖个关子，请师傅关注卡修宝典的动态哦。")])]),_vm._v(" "),_c('div',[_c('p',[_vm._v("我使用了功能为什么积分不增加？")]),_vm._v(" "),_c('p',[_vm._v("各位会员的积分会在每天零点统一更新。")])]),_vm._v(" "),_c('div',[_c('p',[_vm._v("获取积分规则")]),_vm._v(" "),_c('ul',[_c('li',[_vm._v("成为会员:")]),_vm._v(" "),_c('li',[_c('p',[_vm._v("年费会员—每次充值获得1500积分（可重复计算）")]),_vm._v(" "),_c('p',[_vm._v("月费会员—每次充值获得100积分（可重复计算）")])])]),_vm._v(" "),_c('ul',[_c('li',{staticStyle:{"padding-top":"10px"}},[_vm._v("线下培训:")]),_vm._v(" "),_c('li',[_c('p',[_vm._v("小轨特训—报名参加小轨特训并成功签到，可获得1500积分（可重复计算）")])])]),_vm._v(" "),_c('ul',[_c('li',{staticStyle:{"padding-top":"10px"}},[_vm._v("信息完善:")]),_vm._v(" "),_c('li',[_c('p',[_vm._v("个人信息—完善收货地址可获得100积分")]),_vm._v(" "),_c('p',[_vm._v("个人信息—完善邮箱可获得30积分")]),_vm._v(" "),_c('p',[_vm._v("门店信息—完善身份可获得30积分")]),_vm._v(" "),_c('p',[_vm._v("门店信息—完善门店地址可获得100积分")]),_vm._v(" "),_c('p',[_vm._v("门店信息—完善门店性质可获得100积分")]),_vm._v(" "),_c('p',[_vm._v("门店信息—完善员工人数可获得100积分")]),_vm._v(" "),_c('p',[_vm._v("门店信息—完善门店面积可获得100积分")]),_vm._v(" "),_c('p',[_vm._v("门店信息—完善门店照片可获得100积分")]),_vm._v(" "),_c('p',[_vm._v("门店信息—完善设备设施可获得100积分")])])]),_vm._v(" "),_c('ul',[_c('li',{staticStyle:{"padding-top":"10px"}},[_vm._v("功能使用:")]),_vm._v(" "),_c('li',[_c('p',[_vm._v("犇犇课堂—使用听课券收看课程每次可获得20积分（可重复计算）")]),_vm._v(" "),_c('p',[_vm._v("犇犇课堂—使用微信支付收看课程每次可获得50积分（可重复计算）")]),_vm._v(" "),_c('p',[_vm._v("犇犇课堂—观看视频教程每次可获得10积分（同一视频不做重复计算，每日最多累计获得10次积分）")]),_vm._v(" "),_c('p',[_vm._v("购买商品—在卡修宝典平台上购买商品可获得商品价值10%左右的积分（如购买价值8500元的诊断能手，则赠送850积分）")])])]),_vm._v(" "),_c('ul',[_c('li',{staticStyle:{"padding-top":"10px"}},[_vm._v("技能测评:")]),_vm._v(" "),_c('li',[_c('p',[_vm._v("1、超能金牌技师—可获得1500积分（提高称号时，补\n          足差价）")]),_vm._v(" "),_c('p',[_vm._v("2、全能金牌技师—可获得1200积分（提高称号时，补\n          足差价）")]),_vm._v(" "),_c('p',[_vm._v("3、高能金牌技师—可获得1000积分（提高称号时，补\n          足差价）")]),_vm._v(" "),_c('p',[_vm._v("4、全能技师—可获得800积分（提高称号时，补足差价）")]),_vm._v(" "),_c('p',[_vm._v("5、精修能手、电路能手、诊断能手、后处理能手、天然气能手—可获得500积分（提高称号时，补足差价）")]),_vm._v(" "),_c('p',[_vm._v("6、校泵小鲜肉—可获得100积分（提高称号时，补足差价）")])])]),_vm._v(" "),_c('ul',[_c('li',{staticStyle:{"padding-top":"10px"}},[_vm._v("每日签到:")]),_vm._v(" "),_c('li',[_c('p',[_vm._v("1、连续签到1天-获得5积分")]),_vm._v(" "),_c('p',[_vm._v("2、连续签到2天-获得10积分（以此类推，每次增加5积分，签到中断则重新计算）")]),_vm._v(" "),_c('p',[_vm._v("3、7天循环，即第8天签到获得5积分")])])])])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(547);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5570a3e5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1146);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3042)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5570a3e5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5570a3e5_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_addressExclusiveManager_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3043);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("71ee7c75", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-popup-3{width:100%;height:100%;background-color:#fff}.mint-popup-3 .mint-button{position:absolute;width:90%;top:50%;left:5%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.addAddress div.address,.addAddress div.country,.addAddress div.name,.addAddress div.tel{height:50px;line-height:50px;border-bottom:1px solid #ccc;margin:0 10px}.addAddress div.addBTn{border:0;margin:150px 10px 0;height:70px;text-align:center;margin-top:70%}.addAddress div input{width:70%}.addAddress div.name span{letter-spacing:5px}.addAddress div.addBTn button{width:100%;height:50px;color:#fff;background:#d41116;border-radius:5px;font-size:16px;margin-top:10px}.addAddress div.country{background:url(" + escape(__webpack_require__(1443)) + ") 100% no-repeat;background-size:15px 20px;overflow:hidden}.addAddress div.country p{float:left;margin-left:10px}.addAddress div.country span{float:left}.addAddress div.country span.pleaseCheck{position:absolute;right:20px;top:0;color:#8f8f8f}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import { Checklist, Popup } from 'mint-ui'
// import VueArea from '../../../../components/vue-area/vue-area.vue'
// import DialogComponent from '../../../../components/DialogComponent.vue'
var _default = exports.default = {
  components: {
    // Popup,
    // Checklist,
    // VueArea
  },
  data: function data() {
    return {
      user: {},
      addIndex: 0,
      address: {},
      addressNew: {
        name: '',
        phone: '',
        address: ''
      },
      resultList: [],
      id: this.$route.query.id,
      show: false,
      result: {
        province: {},
        city: {},
        area: {}
      },
      addressLength: 0,
      syncFlag: true,
      storeAddFlag: false,
      saveTitle: '获取专属客服',
      exclusive: {},
      popupVisible: false,
      province: '',
      shipAddId: ''
    };
  },
  watch: {
    'addressNew.address': function addressNewAddress() {
      this.addressLength = this._Util.getByteLen(this.addressNew.address);
    }
  },
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
      that.user = data;
    }, function () {}, that);
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE_ADDRESS, {}, function (data) {
      if (data) {
        that.storeAddFlag = false;
        that.province = data.province;
        that.saveTitle = '获取专属客服';
      } else {
        that.storeAddFlag = true;
        that.saveTitle = '保存并获取专属客服';
      }
    }, function () {}, that);
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS, {
      type: 2
    }, function (data) {
      // data = [];
      if (data && data.length) {
        that.shipAddId = data[0].id;
      }
    }, function () {}, that);
    that.$on('checkedCity', function (data) {
      that._Util.log(data);
      that.show = false;
      if (!data.province) {
        that.addressNew.province = '';
      } else {
        that.addressNew.province = data.province;
      }
      if (!data.city) {
        that.addressNew.city = '';
      } else {
        that.addressNew.city = data.city;
      }
      if (!data.area) {
        that.addressNew.dist = '';
      } else {
        that.addressNew.dist = data.area;
      }

      //        that.addressNew.province = data.province.name;
      //        that.addressNew.city = data.city.name;
      //        that.addressNew.dist = data.area.name;
    });
    that.$on('areaCancel', function () {
      that.show = false;
    });
    that.addressLength = 0;
  },
  methods: {
    save: function save() {
      var that = this;
      if (!that.storeAddFlag) {
        that.getExclusive(that);
        return;
      }

      //        if (!that.addressNew.id) {
      //          that.addressNew.type = 1;
      //        }

      if (!that.addressNew.province) {
        that._Util.showMsgBox('请选择所在地区');
        return;
      }
      if (that.addressLength < 5) {
        that._Util.showMsgBox('详细地址至少需要输入5个汉字');
        return;
      }
      if (that.addressLength > 60) {
        that._Util.showMsgBox('详细地址最多可以输入60个汉字');
        return;
      }
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_STORE_ADDRESS_SAVE, that.addressNew, function (data) {
        that.province = that._Util.copyObject(that.addressNew).province;
        if (that.syncFlag) {
          that.saveShip(that);
        } else {
          that.getExclusive(that);
        }
      }, function () {}, that);
    },
    saveShip: function saveShip(self) {
      var that = self;
      that.addressNew.type = 2;
      if (that.shipAddId) {
        that.addressNew.id = that.shipAddId;
      }
      that.addressNew.name = that.user.uname;
      that.addressNew.phone = that.user.uphone;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS_ADD, that.addressNew, function () {
        that.getExclusive(that);
      }, function () {}, that);
    },
    getExclusive: function getExclusive(self) {
      var that = self;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_EXCLUSIVE, {
        province: that.province || '上海'
      }, function (data) {
        that.exclusive = data;
        that.popupVisible = true;
      }, function () {}, that);
    },
    toCenter: function toCenter() {
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        uni.switchTab({
          // eslint-disable-line
          url: "/pages/mine/mine"
        });
        return;
      }
      this.$router.replace('memberCenter');
    },
    nextTime: function nextTime() {
      var that = this;
      if (that.$route.query.isAttend) {
        that.$router.replace({
          name: 'currentPeriodAttend',
          query: {
            addressId: that.$route.query.addressId
          }
        });
      } else {
        if (that.$route.query.name) {
          that.$router.replace({
            name: that.$route.query.name,
            path: that.$route.query.fullPath
          });
        } else {
          if (that.$route.query.external || that.$route.query.fullPath) {
            window.location.href = that.$route.query.fullPath;
          } else {
            if (that._Util.isApp()) {
              api.closeWin();
              setTimeout(function () {
                that._Util.acSendEvent({
                  name: 'needReload'
                });
              }, 300);
            } else {
              that.$router.replace({
                name: 'memberCenter'
              });
            }
          }
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"bMember"},[_c('div',[_c('div',{staticClass:"fufeiImg"},[_c('img',{attrs:{"src":__webpack_require__(3044)}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.$route.query.operType == '3' ? '报名成功' : (_vm.$route.query.operType == '1' ? '续费成功' : '认证成功')))])])])]),_vm._v(" "),_c('div',{staticClass:"addAddress"},[_c('div',{staticClass:"addBTn",staticStyle:{"margin-top":"0","position":"absolute","width":"96%","left":"2%","margin":"0"}},[_c('button',{staticStyle:{"background":"white","color":"#d41116","border":"1px solid #d41116"},on:{"click":function($event){return _vm.toCenter()}}},[_vm._v("返回")])])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/20161103003.10c7290.jpg";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(548);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4fb3e402_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1147);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3045)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4fb3e402_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4fb3e402_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3046);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e4823202", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".cycList{padding-top:10px;position:relative}.cycList ul:first-child{position:absolute;width:123px;min-height:300px;background:#b71c24}.cycList ul:first-child li{height:45px;border:3px solid #b71c24;border-right:none;color:#fff;line-height:17px;border-bottom:1px solid #97181e;display:table;padding:0 5px;width:110px}.cycList ul:first-child li span{margin:0 5px;display:table-cell;vertical-align:middle;font-weight:700}.cycList ul:first-child li.active{background:#fff;color:#97181e}.cycList ul:last-child{margin:0 0 0 133px;padding-right:10px}.cycList ul:last-child li{height:48px;border-bottom:1px solid #e6e6e6;overflow:hidden}.cycList ul:last-child li p{width:100%;height:100%;display:table;margin:0 5px}.cycList ul:last-child li span{display:table-cell;vertical-align:middle}.cycSearch{overflow:hidden;position:relative;z-index:300;background:#fff}.cycSearch.result{padding:0}.cycSearch{border-bottom:10px solid #e6e6e6}.cycSearch>div{margin:10px 3%;border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList{border:none}.cycSearch input{height:40px;text-indent:10px;width:70%}.cycSearch button.active{color:#fff;background:#b71c24}.cycSearch button,.cycSearch button.active{position:absolute;width:80px;height:40px;right:0;top:0}.cycSearch button{background:#b71c24 url(" + escape(__webpack_require__(271)) + ") 50% no-repeat;background-size:25px 25px}.cycSearch>div.resultMation{border:none;margin:0;height:30px}.cycSearch>div.resultTabMation{border:none;margin:0 10px;height:50px}.cycSearch>div.resultTabMation p{color:#b71c24;font-size:16px}.cycSearch>div.resultTabMation span{color:#8f8f8f}.clearHistory{height:35px;background:#ededed}.clearHistory button{width:100%;height:100%;text-align:center;color:#fff}.cycSearch *{-webkit-box-sizing:initial;-moz-box-sizing:inherit}.cycSearch .clearHistory button{background:#ccc;color:#fff;width:50px;height:25px;text-align:center;right:10px;top:5px}.cycSearch .clearHistory button.close{right:70px}.cycSearch .clearHistory span{position:absolute;left:10px;top:5px;height:25px;line-height:25px;color:#8f8f8f}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/cycSearch.ad74596.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  //    beforeRouteUpdate(to, from, next) {
  //      next();
  //      this.reload = (Date.parse(new Date())).toString();
  //    },
  components: {},
  data: function data() {
    return {
      listLeftHeight: 0,
      secondId: 0,
      firstMenu: [],
      secondMenu: [],
      keyword: '',
      checkIndex: 0,
      showTabList: false,
      searchHistory: [],
      hisBottm: 0,
      cancal: '',
      firstMenuId: parseInt(this.$route.query.firstId || 0)
    };
  },
  watch: {
    keyword: function keyword() {
      this.getTabList();
    }
  },
  mounted: function mounted() {
    var that = this;
    that.searchHistory = that._Util.getLocalStorage('searchTabListValue') || [];
    that.listLeftHeight = document.body.offsetHeight - 82 + 'px';
    that._Util.post(that._Api.POST_ELECT_ARTICLE_CATALOGUELIST, {
      parentId: 0
    }, function (data) {
      that.firstMenu = data;
      that.getSecondMenu(data[that.firstMenuId]);
    }, function () {}, that);
  },
  methods: {
    getSecondMenu: function getSecondMenu(v) {
      var that = this;
      localStorage.setItem('upperStr', v.title);
      that._Util.post(that._Api.POST_ELECT_ARTICLE_CATALOGUELIST, {
        parentId: v.id
      }, function (data) {
        that.secondMenu = data;
        // let typeStr=that._Util.getQueryString("typeStr")==1?"首页":"修车";
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? '首页' : '微信菜单',
          operate_page: that._Util.isApp() ? '首页' : '微信菜单',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: window.document.title
        }, that);
      }, function () {}, that);
    },
    firstMenuCheck: function firstMenuCheck(v, index) {
      //          记载回退是左侧点击的历史记录，，卖点取消
      //        this.$router.replace({ query :{firstId: index}})
      this.firstMenuId = index;
      this.checkIndex = index;
      this.getSecondMenu(v);
    },
    secondMenuCheck: function secondMenuCheck(o) {
      var that = this;
      that._Util.setLocalStorage('secondTitle', o.title);
      localStorage.setItem('searchID', that._Util.randomChar());
      // that._Util.collectPageView({
      //   version: '',
      //   postUrl: that._Api.POST_COLLECT,
      //   title: window.document.title,
      //   moduleType: that._Util.isApp()?"首页":"微信菜单",
      //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      //   operate_page: '电喷百科',
      //   keyword: localStorage.getItem("searchID"),
      // }, that);
      that.$router.push({
        name: 'cyclopeResult',
        query: {
          checkId: o.id,
          firstId: this.firstMenuId,
          pageSize: 10,
          type: this.$route.query.type
        }
      });
    },
    search: function search() {
      // const that = this
      if (this.cancal == '取消') {
        this.showTabList = false;
        this.cancal = '';
        return;
      }
      if (this.keyword.length < 2) {
        this._Util.showMsgBox('请至少输入两个字符');
        return;
      }
      if (!this.keyword) {
        this._Util.showMsgBox('搜索内容不能为空');
        return;
      }
      if (this.searchHistory.indexOf(this.keyword) == -1) {
        this.searchHistory.unshift(this.keyword);
        this._Util.setLocalStorage('searchTabListValue', this.searchHistory);
      }
      //   alert(1)
      //   that._Util.collectPageView({
      //     version: '',
      //     postUrl: that._Api.POST_COLLECT,
      //     title: window.document.title,
      //     moduleType: that._Util.isApp()?"首页":"微信菜单",
      //     optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      //     operate_page: '电喷百科',
      //     keyword: that.keyword
      //
      // }, that);
      this.showTabList = false;
      this.$router.push({
        name: 'cyclopeResult',
        query: {
          keyword: this.keyword,
          checkId: -1,
          pageSize: 10,
          type: this.$route.query.type
        }
      });
      this.keyword = '';
    },
    getTabList: function getTabList() {
      if (this.searchHistory.length > 0) {
        console.log(1);
        this.showTabList = true;
        if (!this.keyword) {
          this.cancal = '取消';
        } else {
          this.cancal = '';
        }
      }
    },
    searchListValue: function searchListValue(o) {
      this.showTabList = false;
      this.keyword = o;
      this.$router.push({
        name: 'cyclopeResult',
        query: {
          keyword: this.keyword,
          checkId: -1,
          pageSize: 10,
          type: this.$route.query.type
        }
      });
    },
    removeSearchHistory: function removeSearchHistory() {
      var _this = this;
      this._Util.showMsgBoxConfirm('是否确定清空历史记录', function (action) {
        if (action) {
          _this._Util.removeLocalStroageByKey('searchTabListValue');
          _this.searchHistory = _this._Util.getLocalStorage('searchTabListValue') || [];
          _this.showTabList = false;
          _this.cancal = '';
        }
      });
    },
    closeHistory: function closeHistory() {
      this.showTabList = false;
    },
    _stopDef: function _stopDef(e) {
      e.preventDefault();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"cycSearch"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"id":"keyword","type":"text","placeholder":"请输入想要搜索的文章"},domProps:{"value":(_vm.keyword)},on:{"click":function($event){return _vm.getTabList()},"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('button',{class:{ active: _vm.keyword == '' && _vm.showTabList},on:{"click":function($event){return _vm.search(_vm.keyword)}}},[_vm._v(_vm._s(_vm.cancal))])]),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"clearHistory"},[_c('span',[_vm._v("历史记录")]),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.removeSearchHistory()}}},[_vm._v("清空")])]):_vm._e(),_vm._v(" "),(_vm.showTabList)?_c('div',{staticClass:"searchTabList"},[_c('div',[_c('ul',_vm._l((_vm.searchHistory),function(o,i){return (_vm.searchHistory.length > 0)?_c('li',{key:i,on:{"click":function($event){return _vm.searchListValue(o)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o))])])]):_vm._e()}),0)])]):_vm._e()]),_vm._v(" "),(!_vm.showTabList)?_c('div',{staticClass:"cycList"},[_c('div',[_c('ul',{style:({ height : _vm.listLeftHeight})},_vm._l((_vm.firstMenu),function(v,index){return _c('li',{key:index,class:{active: index == _vm.firstMenuId},on:{"click":function($event){return _vm.firstMenuCheck(v,index)}}},[_c('span',[_vm._v(_vm._s(v.title))])])}),0),_vm._v(" "),_c('ul',{staticStyle:{"overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},style:({ height : _vm.listLeftHeight})},_vm._l((_vm.secondMenu),function(o,i){return _c('li',{key:i,on:{"click":function($event){return _vm.secondMenuCheck(o)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o.title))])])])}),0)])]):_vm._e(),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"noMation"}):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(549);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e3e3c5c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1148);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3047)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e3e3c5c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e3e3c5c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3048);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3a0ddddf", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".cycList{padding-top:10px;position:relative}.cycList ul:first-child{position:absolute;width:113px;min-height:300px;background:#b71c24}.cycList ul:first-child li{height:45px;border:3px solid #b71c24;border-right:none;color:#fff;line-height:17px;border-bottom:1px solid #97181e;display:table;padding:0 5px;width:100px}.cycList ul:first-child li span{margin:0 5px;display:table-cell;vertical-align:middle;font-weight:700}.cycList ul:first-child li.active{background:#fff;color:#97181e}.cycList ul:last-child{margin:0 0 0 123px;padding-right:10px}.cycList ul:last-child li{border-bottom:1px solid #e6e6e6;overflow:hidden;padding-bottom:5px;position:relative}.cycList ul:last-child li p{width:80%;height:100%;display:table;margin:0 5px;position:relative}.cycList ul:last-child li span{display:block;width:90%;overflow:hidden;margin-top:7px}.cycSearch{overflow:hidden;position:relative;background:#fff}.cycSearch.result{padding:0}.cycSearch{border-bottom:10px solid #e6e6e6}.cycSearch>div{margin:10px 3%;border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList{border:none}.shoucangtf.yuncang{position:absolute;right:10px;color:#333;z-index:1;text-align:center;bottom:0;font-size:16px}.cycSearch input{height:40px;text-indent:10px;width:70%}.cycSearch button.active{color:#fff;background:#b71c24}.cycSearch button,.cycSearch button.active{position:absolute;width:80px;height:40px;right:0;top:0}.cycSearch button{background:#b71c24 url(" + escape(__webpack_require__(271)) + ") 50% no-repeat;background-size:25px 25px}.cycSearch>div.resultMation{border:none;margin:0;height:30px}.cycSearch>div.resultTabMation{border:none;margin:0 10px;height:50px}.cycSearch>div.resultTabMation p{color:#b71c24;font-size:16px}.cycSearch>div.resultTabMation span{color:#8f8f8f}.clearHistory{height:35px;background:#ededed}.clearHistory button{width:100%;height:100%;text-align:center;color:#fff}.cycSearch *{-webkit-box-sizing:initial;-moz-box-sizing:inherit}.cycSearch .clearHistory button{background:#ccc;color:#fff;width:50px;height:25px;text-align:center;right:10px;top:5px}.cycSearch .clearHistory button.close{right:70px}.cycSearch .clearHistory span{position:absolute;left:10px;top:5px;height:25px;line-height:25px;color:#8f8f8f}.collectBox{height:36px;width:52px;position:absolute;bottom:0;right:0;text-align:center;padding-left:3px;border-left:1px solid #e4e4e4;top:50%;margin-top:-18px}.concert{width:15px;height:15px;display:block;margin:0 auto}.sendMessage{width:52px;text-align:center;color:#9c9b9b;font-size:14px}@media screen and (max-width:340px){.collectBox{width:36px}.sendMessage{width:36px;text-align:center;color:#9c9b9b;font-size:12px}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _DialogComponent = _interopRequireDefault(__webpack_require__(136));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import Collection from '../../../components/common/collection.vue'
var _default = exports.default = {
  components: {
    DialogComponent: _DialogComponent.default
    // Collection
  },
  data: function data() {
    return {
      emailExp: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
      listLeftHeight: 0,
      messageClickFlag: true,
      uemail: '',
      clickFlag: true,
      firstMenu: [],
      secondMenu: [],
      keyword: '',
      //        checkIndex: 0,
      showTabList: false,
      IsArticle: false,
      searchHistory: [],
      dialogShow: false,
      cancal: '',
      dialogItem: {
        title: '邮箱',
        confirmButton: '确定',
        cancelButton: '取消',
        flag: 1
      },
      firstMenuId: parseInt(this.$route.query.firstId || 0)
    };
  },
  watch: {
    keyword: function keyword() {
      this.getTabList();
    }
  },
  mounted: function mounted() {
    var that = this;
    that.searchHistory = that._Util.getLocalStorage('searchTabListValue') || [];
    that.listLeftHeight = document.body.offsetHeight - 82 + 'px';
    that.initData();
    that.$on('dialogCancel', function () {
      that.uemail = '';
      that.dialogShow = false;
    });
    localStorage.setItem('searchID', that._Util.randomChar());
    localStorage.setItem('fileTitle', '整车电路');
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
      that.uemail = data.uemail;
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '打开页面',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: window.document.title,
        keyword: localStorage.getItem('searchID')
      }, that);
    }, function () {}, that);
  },
  methods: {
    initData: function initData() {
      var that = this;
      that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETCATALOGUELIST, {
        parentId: 0
      }, function (data) {
        that.firstMenu = data;
        that.getSecondMenu(data[that.firstMenuId]);
      }, function () {}, that);
    },
    getSecondMenu: function getSecondMenu(v, index) {
      var that = this;
      if (v.childType === 1) {
        that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETCATALOGUELIST, {
          parentId: v.id
        }, function (data) {
          that.IsArticle = false;
          that.secondMenu = data;
          if (index) {
            index = index + 1;
            localStorage.setItem('fileTitle', v.title);
            localStorage.setItem('searchID', that._Util.randomChar());
            var version = unescape(that._Util.getQueryString('version'));
            that._Util.collectPageView({
              version: that._Util.isApp() ? version : '',
              postUrl: that._Api.POST_COLLECT,
              url: window.location.href,
              moduleType: that._Util.isApp() ? '首页' : '微信菜单',
              operate_page: '电路资料',
              optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
              title: window.document.title,
              keyword: localStorage.getItem('searchID'),
              param4: {
                'queryValue': v.title,
                'result': that.secondMenu.length,
                'filter': ''
              },
              params5: index
            }, that);
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST, {
          catalogueId: v.id,
          pageSize: 20,
          pageNum: 1
        }, function (data) {
          that.IsArticle = true;
          that.secondMenu = data.list;
        }, function () {}, that);
      }
    },
    firstMenuCheck: function firstMenuCheck(v, index) {
      var that = this;
      that.$router.replace({
        query: {
          firstId: index
        }
      });
      that.firstMenuId = index;
      this.checkIndex = index;
      this.getSecondMenu(v, index);
    },
    secondMenuCheck: function secondMenuCheck(o, index) {
      this._Util.setLocalStorage('secondTitle', o.title);
      var parms = {
        checkId: o.id,
        firstId: this.firstMenuId,
        pageSize: 20,
        type: this.$route.query.type
      };
      this.toUrl(parms);
    },
    viewFiles: function viewFiles(item, index) {
      var that = this;
      var url = that._Api.HOSTOLD + 'api/material/searchDataTree/fileView.htm?id=' + item.id;
      if (that.clickFlag) {
        that.clickFlag = false;
        that._Util.getUserStatus(that, function () {
          if (that._Util.getLocalStorage('isApp') && item.id && item.fileType.toLocaleLowerCase().indexOf('pdf') !== -1) {
            var pdfReader = api.require('pdfReader');
            pdfReader.open({
              path: api.systemType == 'ios' ? item.url : encodeURI(item.url),
              hidden: {
                print: false,
                export: false,
                bookmark: false,
                email: false
              }
            });
            setTimeout(function () {
              that.clickFlag = true;
            }, 1000);
          } else {
            setTimeout(function () {
              that.clickFlag = true;
            }, 1000);
            window.location.href = url;
          }
        }, function () {
          that.clickFlag = true;
        }, {
          name: that.$route.name,
          fullPath: window.location.href
        }, that._Enums.ENUMS_USER_STATUS.VIP, true);
      }
    },
    search: function search() {
      if (this.cancal === '取消') {
        this.showTabList = false;
        this.cancal = '';
        return;
      }
      if (!this.keyword.length) {
        this._Util.showMsgBox('请至少输入两个字符');
        return;
      }
      if (this.searchHistory.indexOf(this.keyword) === -1) {
        this.searchHistory.unshift(this.keyword);
        this._Util.setLocalStorage('searchTabListValue', this.searchHistory);
      }
      this.showTabList = false;
      var parms = {
        keyword: this.keyword,
        checkId: -1,
        pageSize: 10,
        type: this.$route.query.type
      };
      this.toUrl(parms);
      this.keyword = '';
    },
    getTabList: function getTabList() {
      if (this.searchHistory.length > 0) {
        this.showTabList = true;
        this.cancal = !this.keyword ? '取消' : '';
      }
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    searchListValue: function searchListValue(o) {
      this.showTabList = false;
      this.keyword = o;
      var parms = {
        keyword: this.keyword,
        checkId: -1,
        pageSize: 10,
        type: this.$route.query.type
      };
      this.toUrl(parms);
    },
    removeSearchHistory: function removeSearchHistory() {
      var _this = this;
      this._Util.showMsgBoxConfirm('是否清空历史记录', function (action) {
        if (action) {
          _this._Util.removeLocalStroageByKey('searchTabListValue');
          _this.searchHistory = _this._Util.getLocalStorage('searchTabListValue') || [];
          _this.showTabList = false;
          _this.cancal = '';
        }
      });
    },
    toUrl: function toUrl(parms) {
      this.$router.push({
        name: 'circuitResult',
        query: parms
      });
    },
    sendMessage: function sendMessage(item) {
      var that = this;
      that._Util.getUserStatus(that, function () {
        if (that.uemail) {
          if (that.messageClickFlag) {
            that.messageClickFlag = false;
            that._Util.showMsgBoxConfirm('是否花20积分获取资料?', function (action) {
              setTimeout(function () {
                that.messageClickFlag = true;
              }, 1000);
              if (action) {
                that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_SENDEMAIL, {
                  id: item.id
                }, function (data) {}, function () {}, that);
              }
            });
          }
        } else {
          that.dialogShow = true;
          that.$on('dialogSave', function (data) {
            var msg = '';
            msg = that.uemail ? '' : '邮箱地址不能为空 ';
            if (!msg && !that.emailExp.test(that.uemail)) {
              msg = '邮箱地址格式不正确';
            }
            if (msg) {
              that._Util.showMsgBox(msg);
              return;
            }
            that.dialogShow = false;
            that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_REMEMBER_EMAIL, {
              email: that.uemail
            }, function (data) {
              that._Util.showMsgBoxConfirm('确认发送' + item.title + '至' + that.uemail, function (action) {
                if (action) {
                  that._Util.showMsgBoxConfirm('是否花20积分获取资料?', function (action) {
                    if (action) {
                      that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_SENDEMAIL, {
                        id: item.id
                      }, function (data) {}, function () {}, that);
                    }
                  });
                }
              });
            }, function () {}, that);
          });
        }
      }, function () {}, {
        name: that.$route.name,
        fullPath: window.location.href
      }, that._Enums.ENUMS_USER_STATUS.VIP, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"cycSearch"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"id":"keyword","type":"text","placeholder":"请输入想搜索的资料"},domProps:{"value":(_vm.keyword)},on:{"click":function($event){return _vm.getTabList()},"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('button',{class:{ active: _vm.keyword == '' && _vm.showTabList},on:{"click":function($event){return _vm.search(_vm.keyword)}}},[_vm._v(_vm._s(_vm.cancal))])]),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"clearHistory"},[_c('span',[_vm._v("历史记录")]),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.removeSearchHistory()}}},[_vm._v("清空")])]):_vm._e(),_vm._v(" "),(_vm.showTabList)?_c('div',{staticClass:"searchTabList"},[_c('div',[_c('ul',_vm._l((_vm.searchHistory),function(o,i){return (_vm.searchHistory.length > 0)?_c('li',{key:i,on:{"click":function($event){return _vm.searchListValue(o)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o))])])]):_vm._e()}),0)])]):_vm._e()]),_vm._v(" "),(!_vm.showTabList)?_c('div',{staticClass:"cycList"},[_c('div',[_c('ul',{staticStyle:{"overflow-y":"scroll"},style:({ height : _vm.listLeftHeight})},_vm._l((_vm.firstMenu),function(v,index){return _c('li',{key:index,class:{active: index == _vm.firstMenuId},on:{"click":function($event){return _vm.firstMenuCheck(v,index)}}},[_c('span',[_vm._v(_vm._s(v.title))])])}),0),_vm._v(" "),(_vm.IsArticle)?_c('ul',{staticStyle:{"overflow-y":"scroll"},style:({ height : _vm.listLeftHeight})},_vm._l((_vm.secondMenu),function(o,index){return _c('li',{key:index,on:{"click":function($event){return _vm.viewFiles(o,index)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o.title))]),_vm._v(" "),_c('span',{domProps:{"textContent":_vm._s('文件大小：'+ _vm.calculateFileSize(o.fileLength))}})]),_vm._v(" "),(o.operate === 1)?_c('div',{staticClass:"shoucangtf yuncang yuncangziliao",staticStyle:{"bottom":"0"}},[_c('span',{staticStyle:{"display":"inline-block","width":"45px","text-align":"center"},on:{"click":function($event){$event.stopPropagation();return _vm.sendMessage(o)}}},[_vm._v("发送到邮箱")])]):_vm._e()])}),0):_vm._e(),_vm._v(" "),(!_vm.IsArticle)?_c('ul',{staticStyle:{"overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},style:({ height : _vm.listLeftHeight})},_vm._l((_vm.secondMenu),function(o,index){return _c('li',{key:index,staticStyle:{"padding-bottom":"10px","padding-top":"10px"},on:{"click":function($event){return _vm.secondMenuCheck(o,index)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o.title))])])])}),0):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"noMation"}):_vm._e(),_vm._v(" "),(_vm.dialogShow)?_c('Dialog-component',{attrs:{"type":"confirm","title":_vm.dialogItem.title,"confirm-button":_vm.dialogItem.confirmButton,"cancel-button":_vm.dialogItem.cancelButton}},[_c('div',{staticClass:"newForm"},[_c('span',[_vm._v("邮箱")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.uemail),expression:"uemail"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"email","placeholder":"请输入邮箱"},domProps:{"value":(_vm.uemail)},on:{"input":function($event){if($event.target.composing){ return; }_vm.uemail=$event.target.value}}})])]):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(550);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d5cc6f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1149);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3049)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d5cc6f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d5cc6f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3050);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8446f2c2", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".resultTabList{border-bottom:1px solid #e6e6e6;overflow:hidden;position:relative;padding:10px;margin:0 0 10px;background:#fff}.resultTabList div p.Mation{color:#8f8f8f;margin-bottom:10px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:4;display:-webkit-box;-webkit-box-orient:vertical;max-height:85px}.resultTabList div p.Mation img{max-width:100%}.resultTabList div.keyAndrule{position:relative;min-height:20px}.resultTabList div.keyAndrule div.key{margin-right:80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.resultTabList div.keyAndrule div.key span{padding:2px 3px;background:#e5e5e5;color:#939393;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.resultTabList div.keyAndrule div.rule{position:absolute;right:0;top:0}.resultTabList div.keyAndrule div.rule img{vertical-align:middle;width:18px;margin-top:-2px}.resultTabList div.keyAndrule div.rule span{color:#8f8f8f}.searchTabList{margin:0 3%;width:94%}.searchTabList>div{background:#fff}.searchTabList>div ul{border-top:none}.searchTabList>div ul li{margin:0 10px;height:40px;border-bottom:1px solid #e6e6e6}.searchTabList>div ul li p{display:table;width:100%;height:100%}.searchTabList>div ul li p span{display:table-cell;vertical-align:middle}.cycSearch{overflow:hidden;position:relative;background:#fff}.cycSearch.result{padding:0}.cycSearch{border-bottom:10px solid #e6e6e6}.cycSearch>div{margin:10px 3%;border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList{border:none}.cycSearch input{height:40px;text-indent:10px;width:70%}.cycSearch button.active{color:#fff;background:#b71c24}.cycSearch button,.cycSearch button.active{position:absolute;width:80px;height:40px;right:0;top:0}.cycSearch button{background:#b71c24 url(" + escape(__webpack_require__(271)) + ") 50% no-repeat;background-size:25px 25px}.cycSearch>div.resultMation{border:none;margin:0;height:30px}.cycSearch>div.resultTabMation{border:none;margin:0 10px;height:50px}.cycSearch>div.resultTabMation p{color:#b71c24;font-size:16px}.cycSearch>div.resultTabMation span{color:#8f8f8f}.clearHistory{height:35px;background:#ededed}.clearHistory button{width:100%;height:100%;text-align:center;color:#fff}.cycSearch *{-webkit-box-sizing:initial;-moz-box-sizing:inherit}.cycSearch .clearHistory button{background:#ccc;color:#fff;width:50px;height:25px;text-align:center;right:10px;top:5px}.cycSearch .clearHistory button.close{right:70px}.cycSearch .clearHistory span{position:absolute;left:10px;top:5px;height:25px;line-height:25px;color:#8f8f8f}.imgBox{width:45px;height:60px;float:left}.imgBox img{width:100%}.rightBox{margin-left:10px;width:80%;position:relative;float:left}.Title{display:block;overflow:hidden;height:42px;width:80%}.shoucangtf.yuncang{position:absolute;right:10px;color:#333;text-align:center;bottom:0;font-size:16px}.shoucangtf.yuncang.yuncangziliao{right:10px;bottom:10px}.shoucangtf.yuncang .newstar{display:inline-block;width:15px;height:15px;background:url(" + escape(__webpack_require__(778)) + ") 50% no-repeat;background-size:100% 100%;vertical-align:middle;margin-top:-5px;margin-right:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _DialogComponent = _interopRequireDefault(__webpack_require__(136));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import Collection from '../../../components/common/collection.vue'
var _default = exports.default = {
  components: {
    // Collection,
    DialogComponent: _DialogComponent.default,
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      emailExp: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
      secondId: parseInt(this.$route.query.checkId) || '',
      resultTabMationTitle: '',
      resource_url: this._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST,
      loadingShow: false,
      showMore: false,
      isEmpty: false,
      dialogShow: false,
      resultList: [],
      params2: {
        pageSize: 20,
        pageNum: 1,
        catalogueId: parseInt(this.$route.query.checkId)
      },
      params1: {
        pageSize: 20,
        pageNum: 1,
        keyword: ''
      },
      showArticl: false,
      clickFlag: true,
      keyUpdata: '',
      messageClickFlag: true,
      keyword: this.$route.query.keyword || this.keyword || '',
      pageNum: 1,
      pageSize: parseInt(this.$route.query.pageSize) || 20,
      showTabList: false,
      dialogItem: {
        title: '邮箱',
        confirmButton: '确定',
        cancelButton: '取消',
        flag: 1
      },
      searchHistory: [],
      historyHeight: '0',
      showSearch: true,
      listTop: 0,
      scrollHiehgt: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    that.listTop = document.body.offsetHeight - 132 + 'px';
    that.resultTabMationTitle = that._Util.getLocalStorage('secondTitle');
    that.searchHistory = that._Util.getLocalStorage('searchTabListValue') || [];
    that.isSeach();
    if (that.$route.query.checkId === -1 || that.$route.query.keyword || !that.$route.query.checkId) {
      that.resource_url = that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST;
      that.search(that.keyword, 'noKeyword', false);
    } else {
      that.resource_url = that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST;
      that.getMoreResult();
    }
    that.$on('dialogCancel', function () {
      that.uemail = '';
      that.dialogShow = false;
    });
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
      that.uemail = data.uemail;
    }, function () {}, that);
  },
  methods: {
    toArticle: function toArticle(v, url, payType, payStyle) {
      var that = this;
      if (v.postId) {
        that._Util.setLocalStorage('anchor', v.postId);
      } else if (v.id) {
        that._Util.setLocalStorage('anchor', v.id);
      }
      that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
        if (data.userStatus == 0) {
          that._Util.showMsgBoxConfirm('对不起，只有认证会员才能查看！您还未认证，请您先完成认证！', function (action) {
            if (action) {
              // 开通会员
              window.location.href = '/v2/business/pay/openMember?fullPath=' + that.$route.fullPath + '&userStatus=' + data.userStatus;
              // self.$router.replace({name: 'openMember', query: nextParams});
            }
          });
        } else {
          if (payType == false) {
            //          window.location.href = url;
            if (payStyle && payStyle == 'Posts') {
              window.location.href = that._Api.HOSTOLD + 'wxauth/kaxiuyunForumDetail.htm?postId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
            } else if (payStyle && payStyle == 'FineCourse') {
              window.location.href = that._Api.HOSTOLD + 'wxauth/trainingSourceDetail.htm?sourceId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
            } else {
              window.location.href = url + '&_=' + new Date().getTime() + '#wechat_redirect';
            }
          } else {
            that._Util.getUserStatus(that, function () {
              console.log(that._Enums.ENUMS_USER_STATUS.VIP);
              if (payStyle && payStyle == 'Posts') {
                window.location.href = that._Api.HOSTOLD + 'wxauth/kaxiuyunForumDetail.htm?postId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
              } else if (payStyle && payStyle == 'FineCourse') {
                window.location.href = that._Api.HOSTOLD + 'wxauth/trainingSourceDetail.htm?sourceId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
              } else {
                window.location.href = url + '&_=' + new Date().getTime() + '#wechat_redirect';
              }
            }, function () {}, {
              name: that.$route.name,
              fullPath: window.location.href
            }, that._Enums.ENUMS_USER_STATUS.VIP);
          }
        }
      }, function () {}, that);
    },
    getMoreList: function getMoreList() {
      if (this.keyword) {
        this.params1.pageNum++;
      } else {
        this.params2.pageNum++;
      }
      this.getOrderList();
    },
    getOrderList: function getOrderList() {
      var that = this;
      if (that.keyword) {
        that.params1.keyword = that.keyword;
        that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST, that.params1, function (data) {
          if (that.params1.pageNum > 1) {
            that.resultList.list = that.resultList.list.concat(data.list || []);
          } else {
            that.resultList = data || [];
          }
          that.showMore = that.params1.pageNum * 20 < data.totalCount;
          if (!that.resultList.length) {
            that.isEmpty = true;
          }
          // that._Util.collectPageView({
          //   version: '',
          //   postUrl: that._Api.POST_COLLECT,
          //   url:window.location.href,
          //   moduleType: '微信菜单',
          //   operate_page: '电路资料',
          //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          //   title:window.document.title,
          //   keyword: localStorage.getItem("searchID"),
          //   param4: {"queryValue": that.keyword,"result":that.resultList.list.length ,"filter":""},
          // }, that);
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST, that.params2, function (data) {
          if (that.params2.pageNum > 1) {
            that.resultList.list = that.resultList.list.concat(data.list || []);
          } else {
            that.resultList = data || [];
          }
          that.showMore = that.params2.pageNum * 20 < data.totalCount;
          if (!that.resultList.length) {
            that.isEmpty = true;
          }
          // that._Util.collectPageView({
          //   version: '',
          //   postUrl: that._Api.POST_COLLECT,
          //   url:window.location.href,
          //   moduleType: '微信菜单',
          //   operate_page: '电路资料',
          //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          //   title:window.document.title,
          //   keyword: localStorage.getItem("searchID"),
          //   param4: {"queryValue": that.keyword,"result":that.resultList.list.length ,"filter":""},
          // }, that);
        }, function () {}, that);
      }
    },
    getMoreResult: function getMoreResult() {
      var that = this;
      that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST, {
        catalogueId: that.secondId,
        pageNum: 1,
        pageSize: parseInt(that.$route.query.pageSize) || 20
      }, function (data) {
        that.resultList = data;
        that.showMore = that.params2.pageNum * 20 < data.totalCount;
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? '首页' : '微信菜单',
          operate_page: '电路资料',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: window.document.title,
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': '',
            'result': that.resultList.totalCount,
            'filter': localStorage.getItem('fileTitle') + ';' + that.resultTabMationTitle
          }
        }, that);
        //          返回三级菜单添加锚点

        if (that._Util.getLocalStorage('anchor')) {
          setTimeout(function () {
            window.location.replace('#' + that._Util.getLocalStorage('anchor'));
            setTimeout(function () {
              that._Util.removeLocalStroageByKey('anchor');
            }, 500);
          }, 0);
        }
        that.isShowLoading();
      }, function () {}, that);
    },
    search: function search(keyword, isKeyword, flag, index) {
      var that = this;

      //        if (isKeyword != 'noKeyword') {
      if (!that.keyword) {
        that._Util.showMsgBox('搜索内容不能为空');
        return;
      }
      if (keyword.length < 2) {
        that._Util.showMsgBox('请至少输入两个字符');
        return;
      }
      //        }
      if (that._Util.getLocalStorage('anchor')) {
        that.pageNum = 1;
        that.pageSize = parseInt(this.$route.query.pageSize) || 20;
        that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST, {
          keyword: keyword || that.keyword,
          pageNum: 1,
          pageSize: parseInt(that.$route.query.pageSize) || that.pageSize
        }, function (data) {
          //            that.keyword = keyword || that.keyword;
          that.resultList = data;
          that.showMore = that.params1.pageNum * 20 < data.totalCount;
          //          返回三级菜单添加锚点
          if (that._Util.getLocalStorage('anchor')) {
            setTimeout(function () {
              window.location.replace('#' + that._Util.getLocalStorage('anchor'));
              setTimeout(function () {
                that._Util.removeLocalStroageByKey('anchor');
              }, 500);
            }, 0);
          }
          if (flag && that.searchHistory.indexOf(that.keyword) === -1) {
            //              if () {
            that.searchHistory.unshift(that.keyword);
            that._Util.setLocalStorage('searchTabListValue', that.searchHistory);
            //              }
          }
          that.showTabList = false;
          that.showArticl = true;
          that.isShowLoading();
          that.$router.replace({
            query: {
              keyword: keyword || that.keyword,
              checkId: '-1',
              pageSize: that.$route.query.pageSize || 20,
              type: that.$route.query.type
            }
          });
          that.secondId = parseInt(that.$route.query.checkId);
          that.keyUpdata = keyword || that.keyword;
          that.resource_url = that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST;
          //          that.getListTop()
          var version = unescape(that._Util.getQueryString('version'));
          that._Util.collectPageView({
            version: that._Util.isApp() ? version : '',
            postUrl: that._Api.POST_COLLECT,
            url: window.location.href,
            moduleType: that._Util.isApp() ? '首页' : '微信菜单',
            operate_page: '电路资料',
            optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            title: window.document.title,
            keyword: localStorage.getItem('searchID'),
            param4: {
              'queryValue': keyword,
              'result': that.resultList.list.length,
              'filter': ''
            }
          }, that);
        }, function () {}, that);
      } else {
        that.pageNum = 1;
        that.pageSize = 20;
        that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST, {
          keyword: keyword || that.keyword,
          pageNum: 1,
          pageSize: 20
        }, function (data) {
          that.resultList = data;
          that.showMore = that.params1.pageNum * 20 < data.totalCount;
          //          返回三级菜单添加锚点
          if (that._Util.getLocalStorage('anchor')) {
            setTimeout(function () {
              window.location.replace('#' + that._Util.getLocalStorage('anchor'));
              setTimeout(function () {
                that._Util.removeLocalStroageByKey('anchor');
              }, 500);
            }, 0);
          }
          if (flag && that.searchHistory.indexOf(that.keyword) === -1) {
            //              if () {
            that.searchHistory.unshift(that.keyword);
            that._Util.setLocalStorage('searchTabListValue', that.searchHistory);
            //              }
          }
          that.showTabList = false;
          that.showArticl = true;
          that.isShowLoading();
          that.$router.replace({
            query: {
              keyword: keyword || that.keyword,
              checkId: '-1',
              pageSize: 20,
              type: that.$route.query.type
            }
          });
          that.secondId = parseInt(that.$route.query.checkId);
          that.keyUpdata = keyword || that.keyword;
          that.resource_url = that._Api.POST_SOSO_CIRCUIT_DATA_GETMATERIALLIST;
          //          that.getListTop()
          localStorage.setItem('searchID', that._Util.randomChar());
          var version = unescape(that._Util.getQueryString('version'));
          that._Util.collectPageView({
            version: that._Util.isApp() ? version : '',
            postUrl: that._Api.POST_COLLECT,
            url: window.location.href,
            moduleType: that._Util.isApp() ? '首页' : '微信菜单',
            operate_page: '电路资料',
            optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            title: window.document.title,
            keyword: localStorage.getItem('searchID'),
            param4: {
              'queryValue': keyword,
              'result': that.resultList.totalCount,
              'filter': ''
            }
          }, that);
        }, function () {}, that);
      }
    },
    isSeach: function isSeach() {
      var that = this;
      that.showArticl = that.$route.query.checkId === -1;
    },
    isShowLoading: function isShowLoading() {
      var that = this;
      var listResult = that.resultList.totalCount || 0;
      if (listResult == 0) {
        that.loadingShow = false;
        return;
      }
      that.loadingShow = !(that.resultList.list.length === listResult || listResult < 20);
    },
    updateResource: function updateResource(data) {
      var that = this;
      that.resultList = data;
      that.isShowLoading();
      if (that.$route.query.checkId === -1 || '') {
        that.$router.replace({
          query: {
            keyword: that.$route.query.keyword || that.keyword,
            checkId: '-1',
            pageSize: parseInt(that.$route.query.pageSize) + 20,
            type: that.$route.query.type
          }
        });
      } else {
        that.$router.replace({
          query: {
            checkId: that.$route.query.checkId,
            firstId: that.$route.query.firstId,
            pageSize: parseInt(that.$route.query.pageSize) + 20,
            type: that.$route.query.type
          }
        });
      }
    },
    searchListValue: function searchListValue(o, index) {
      index = index + 1;
      var that = this;
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        keyword: that._Util.randomChar(),
        param4: {
          'queryValue': that.keyword || '',
          'result': that.resultList.totalCount || '',
          'filter': ''
        },
        params5: index || ''
      }, that);
      this.showTabList = false;
      this.keyword = o;
      this.search(o, 'noKeyword', false, index);
    },
    removeSearchHistory: function removeSearchHistory() {
      this._Util.removeLocalStroageByKey('searchTabListValue');
      this.searchHistory = this._Util.getLocalStorage('searchTabListValue') || [];
      this.showTabList = false;
    },
    closeHistory: function closeHistory() {
      this.showTabList = false;
    },
    handleScroll: function handleScroll(e) {
      var that = this;
      var currentScrollPosition = e.srcElement.scrollTop;
      if (currentScrollPosition > that.scrollPosition) {
        if (that.rowIndex === 1) {
          that.firstRow = true;
          that.secondRow = false;
        } else if (that.rowIndex === 2) {
          that.firstRow = false;
          that.secondRow = true;
        }
        that.getScrollHeight();
      } else {
        that.firstRow = true;
        that.secondRow = true;
        that.getScrollHeight();
      }
      that.scrollPosition = currentScrollPosition;
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    sendMessage: function sendMessage(item) {
      var that = this;
      that._Util.getUserStatus(that, function () {
        if (that.uemail) {
          if (that.messageClickFlag) {
            that.messageClickFlag = false;
            that._Util.showMsgBoxConfirm('是否花20积分获取资料?', function (action) {
              setTimeout(function () {
                that.messageClickFlag = true;
              }, 1000);
              if (action) {
                that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_SENDEMAIL, {
                  id: item.id
                }, function (data) {}, function () {}, that);
              }
            });
          }
        } else {
          that.dialogShow = true;
          that.$on('dialogSave', function (data) {
            var msg = '';
            msg = that.uemail ? '' : '邮箱地址不能为空 ';
            if (!msg && !that.emailExp.test(that.uemail)) {
              msg = '邮箱地址格式不正确';
            }
            if (msg) {
              that._Util.showMsgBox(msg);
              return;
            }
            that.dialogShow = false;
            that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_REMEMBER_EMAIL, {
              email: that.uemail
            }, function (data) {
              that._Util.showMsgBoxConfirm('确认发送' + item.title + '至' + that.uemail, function (action) {
                if (action) {
                  that._Util.showMsgBoxConfirm('是否花20积分获取资料?', function (action) {
                    if (action) {
                      that._Util.post(that._Api.POST_SOSO_CIRCUIT_DATA_SENDEMAIL, {
                        id: item.id
                      }, function (data) {}, function () {}, that);
                    }
                  });
                }
              });
            }, function () {}, that);
          });
        }
      }, function () {}, {
        name: that.$route.name,
        fullPath: window.location.href
      }, that._Enums.ENUMS_USER_STATUS.VIP, true);
    },
    viewFiles: function viewFiles(item, index) {
      index = index + 1;
      var that = this;
      if (!that.$route.query.keyword) {
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? '首页' : '微信菜单',
          operate_page: '电路资料',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: window.document.title,
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': ' ',
            'result': that.resultList.totalCount,
            'filter': localStorage.getItem('fileTitle') + ';' + that.resultTabMationTitle
          },
          params5: index
        }, that);
      } else {
        var _version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? _version : '',
          postUrl: that._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: that._Util.isApp() ? '首页' : '微信菜单',
          operate_page: '电路资料',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          title: window.document.title,
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': that.$route.query.keyword,
            'result': that.resultList.totalCount,
            'filter': ''
          },
          params5: index
        }, that);
        localStorage.setItem('searchID', that._Util.randomChar());
      }
      var url = that._Api.HOSTOLD + 'api/material/searchDataTree/fileView.htm?id=' + item.id;
      if (that.clickFlag) {
        that.clickFlag = false;
        that._Util.getUserStatus(that, function () {
          if (that._Util.getLocalStorage('isApp') && item.id && item.fileType.toLocaleLowerCase().indexOf('pdf') !== -1) {
            var pdfReader = api.require('pdfReader');
            pdfReader.open({
              path: api.systemType == 'ios' ? item.url : encodeURI(item.url),
              hidden: {
                print: false,
                export: false,
                bookmark: false,
                email: false
              }
            });
            setTimeout(function () {
              that.clickFlag = true;
            }, 1000);
          } else {
            setTimeout(function () {
              that.clickFlag = true;
            }, 1000);
            window.location.href = url;
          }
        }, function () {
          that.clickFlag = true;
        }, {
          name: that.$route.name,
          fullPath: window.location.href
        }, that._Enums.ENUMS_USER_STATUS.VIP, true);
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"scroll":_vm.handleScroll}},[(_vm.showSearch)?_c('div',{staticClass:"cycSearch result"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"id":"keyword","type":"text","placeholder":"请输入想要搜索的资料"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.search(_vm.keyword,'',true)}}})]),_vm._v(" "),(_vm.showArticl && !_vm.showTabList)?_c('div',{staticClass:"resultMation"},[_c('p',[_vm._v("得到"+_vm._s(_vm.resultList.totalCount || 0)+"个搜索结果")])]):_vm._e(),_vm._v(" "),(!_vm.showArticl && !_vm.showTabList)?_c('div',{staticClass:"resultTabMation"},[_c('p',[_vm._v(_vm._s(_vm.resultTabMationTitle))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.resultList.totalCount || 0)+" 个资料")])]):_vm._e(),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"clearHistory"},[_c('span',[_vm._v("历史记录")]),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.removeSearchHistory()}}},[_vm._v("清空")])]):_vm._e(),_vm._v(" "),(_vm.showTabList)?_c('div',{staticClass:"searchTabList"},[_c('div',[_c('ul',_vm._l((_vm.searchHistory),function(o,index){return (_vm.searchHistory.length > 0)?_c('li',{key:index,on:{"click":function($event){return _vm.searchListValue(o,index)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o))])])]):_vm._e()}),0)])]):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"background":"white"}},[_vm._l((_vm.resultList.list),function(v,index){return (!_vm.showTabList)?_c('div',{key:index,staticClass:"resultTabList",attrs:{"id":v.id ? v.id : v.postId},on:{"click":function($event){return _vm.viewFiles(v,index)}}},[_c('div',{staticClass:"imgBox"},[(v.fileType.toLocaleLowerCase().indexOf('pdf') != -1)?_c('img',{attrs:{"src":__webpack_require__(811)}}):(v.fileType.toLocaleLowerCase().indexOf('image') != -1)?_c('img',{attrs:{"src":__webpack_require__(810)}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"rightBox"},[_c('span',{staticClass:"Title",domProps:{"innerHTML":_vm._s(v.title)}}),_vm._v(" "),_c('p',{staticClass:"fileSize"},[_vm._v("\n          文件大小: "),_c('span',{domProps:{"textContent":_vm._s(_vm.calculateFileSize(v.fileLength))}})])]),_vm._v(" "),(v.operate === 1)?_c('div',{staticClass:"shoucangtf yuncang yuncangziliao"},[_c('span',{staticStyle:{"display":"inline-block","width":"45px","text-align":"center"},on:{"click":function($event){$event.stopPropagation();return _vm.sendMessage(v)}}},[_vm._v("发送到邮箱")])]):_vm._e()]):_vm._e()}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMore),expression:"showMore"}],staticClass:"uploadMore"},[_c('button',{on:{"click":function($event){return _vm.getMoreList()}}},[_vm._v("点击加载更多")])]),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}}),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"noMation",on:{"click":function($event){return _vm.closeHistory()}}}):_vm._e(),_vm._v(" "),(_vm.dialogShow)?_c('Dialog-component',{attrs:{"type":"confirm","title":_vm.dialogItem.title,"confirm-button":_vm.dialogItem.confirmButton,"cancel-button":_vm.dialogItem.cancelButton}},[_c('div',{staticClass:"newForm"},[_c('span',[_vm._v("邮箱")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.uemail),expression:"uemail"},{name:"focus",rawName:"v-focus"}],attrs:{"type":"email","placeholder":"请输入邮箱"},domProps:{"value":(_vm.uemail)},on:{"input":function($event){if($event.target.composing){ return; }_vm.uemail=$event.target.value}}})])]):_vm._e()],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(551);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1db73ecf_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1151);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3051)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1db73ecf_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1db73ecf_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3052);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("48de8836", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".resultTabList{border-bottom:1px solid #e6e6e6}.resultTabList>div{margin:10px}.resultTabList div p.Title{font-size:16px;margin-bottom:10px}.resultTabList div p.Mation{color:#8f8f8f;margin-bottom:10px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:4;display:-webkit-box;-webkit-box-orient:vertical;max-height:85px}.resultTabList div p.Mation img{max-width:100%}.resultTabList div.keyAndrule{position:relative;min-height:20px}.resultTabList div.keyAndrule div.key{margin-right:80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.resultTabList div.keyAndrule div.key span{padding:2px 3px;background:#e5e5e5;color:#939393;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.resultTabList div.keyAndrule div.rule{position:absolute;right:0;top:0}.resultTabList div.keyAndrule div.rule img{vertical-align:middle;width:18px;margin-top:-2px}.resultTabList div.keyAndrule div.rule span{color:#8f8f8f}.searchTabList{margin:0 3%;width:94%}.searchTabList>div{background:#fff}.searchTabList>div ul{border-top:none}.searchTabList>div ul li{margin:0 10px;height:40px;border-bottom:1px solid #e6e6e6}.searchTabList>div ul li p{display:table;width:100%;height:100%}.searchTabList>div ul li p span{display:table-cell;vertical-align:middle}.cycSearch{overflow:hidden;position:relative;z-index:300;background:#fff}.cycSearch.result{padding:0}.cycSearch{border-bottom:10px solid #e6e6e6}.cycSearch>div{margin:10px 3%;border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList{border:none}.cycSearch input{height:40px;text-indent:10px;width:70%}.cycSearch button.active{color:#fff;background:#b71c24}.cycSearch button,.cycSearch button.active{position:absolute;width:80px;height:40px;right:0;top:0}.cycSearch button{background:#b71c24 url(" + escape(__webpack_require__(271)) + ") 50% no-repeat;background-size:25px 25px}.cycSearch>div.resultMation{border:none;margin:0;height:30px}.cycSearch>div.resultTabMation{border:none;margin:0 10px;height:50px}.cycSearch>div.resultTabMation p{color:#b71c24;font-size:16px}.cycSearch>div.resultTabMation span{color:#8f8f8f}.clearHistory{height:35px;background:#ededed}.clearHistory button{width:100%;height:100%;text-align:center;color:#fff}.cycSearch *{-webkit-box-sizing:initial;-moz-box-sizing:inherit}.cycSearch .clearHistory button{background:#ccc;color:#fff;width:50px;height:25px;text-align:center;right:10px;top:5px}.cycSearch .clearHistory button.close{right:70px}.cycSearch .clearHistory span{position:absolute;left:10px;top:5px;height:25px;line-height:25px;color:#8f8f8f}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _paginationComponent = _interopRequireDefault(__webpack_require__(3053));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PaginationComponent: _paginationComponent.default,
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      secondId: parseInt(this.$route.query.checkId) || '',
      resultTabMationTitle: '',
      resource_url: this._Api.POST_ELECT_ARTICLE_LIST,
      loadingShow: false,
      keyword: this.$route.query.keyword || '',
      pageNum: 1,
      pageSize: parseInt(this.$route.query.pageSize) || 10,
      resultList: [],
      showArticl: false,
      keyUpdata: '',
      params2: {
        vlue: {
          catalogueId: parseInt(this.$route.query.checkId),
          pageNum: 1,
          pageSize: parseInt(this.$route.query.pageSize) || 10
        }
      },
      params1: {
        queryValue: this.$route.query.keyword || this.keyword || '',
        pageModel: {
          currentPage: 1,
          pageSize: parseInt(this.$route.query.pageSize) || 10
        }
      },
      showTabList: false,
      searchHistory: [],
      historyHeight: '0',
      showSearch: true,
      listTop: 0,
      scrollHiehgt: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    //      that.getListTop();
    that.resultTabMationTitle = that._Util.getLocalStorage('secondTitle');
    that.searchHistory = that._Util.getLocalStorage('searchTabListValue') || [];
    that.isSeach();
    if (that.$route.query.checkId == -1 || that.$route.query.keyword || !that.$route.query.checkId) {
      that.resource_url = that._Api.POST_ELECT_ARTICLE_SEARCHLIST;
      that.search(that.keyword, 'noKeyword', false);
    } else {
      that.resource_url = that._Api.POST_ELECT_ARTICLE_LIST;
      that.getMoreResult();
    }
    // that._Util.collectPageView({
    //   version: '',
    //   postUrl: that._Api.POST_COLLECT,
    //   title: window.document.title,
    //   moduleType: that._Util.isApp()?"首页":"微信菜单",
    //   optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
    //   operate_page: '电喷百科',
    //   keyword: localStorage.getItem("searchID"),
    //   param4: {"queryValue" : "","result" :  that.resultList.totalCount,"filter":that.resultTabMationTitle}
    // }, that);
  },
  methods: {
    toArticle: function toArticle(v, url, payType, payStyle, index) {
      index = index + 1;
      var that = this;
      var version = unescape(that._Util.getQueryString('version'));
      that._Util.collectPageView({
        version: that._Util.isApp() ? version : '',
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        operate_page: '电喷百科',
        keyword: localStorage.getItem('searchID'),
        param4: {
          'queryValue': that.keyword,
          'result': that.resultList.totalCount,
          'filter': ''
        },
        params5: index
      }, that);
      if (v.postId) {
        that._Util.setLocalStorage('anchor', v.postId);
      } else if (v.id) {
        that._Util.setLocalStorage('anchor', v.id);
      }
      that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
        if (data.userStatus == 0) {
          that._Util.showMsgBoxConfirm('对不起，只有认证会员才能查看！您还未认证，请您先完成认证！', function (action) {
            if (action) {
              // 开通会员
              window.location.href = '/v2/business/pay/openMember?fullPath=' + that.$route.fullPath + '&userStatus=' + data.userStatus;
              // self.$router.replace({name: 'openMember', query: nextParams});
            }
          });
        } else {
          if (payType == false) {
            //          window.location.href = url;
            if (payStyle && payStyle == 'Posts') {
              window.location.href = that._Api.HOSTOLD + 'wxauth/kaxiuyunForumDetail.htm?postId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
            } else if (payStyle && payStyle == 'FineCourse') {
              window.location.href = that._Api.HOSTOLD + 'wxauth/trainingSourceDetail.htm?sourceId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
            } else {
              window.location.href = url + '&_=' + new Date().getTime() + '#wechat_redirect';
            }
          } else {
            that._Util.getUserStatus(that, function () {
              console.log(that._Enums.ENUMS_USER_STATUS.VIP);
              if (payStyle && payStyle == 'Posts') {
                window.location.href = that._Api.HOSTOLD + 'wxauth/kaxiuyunForumDetail.htm?postId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
              } else if (payStyle && payStyle == 'FineCourse') {
                window.location.href = that._Api.HOSTOLD + 'wxauth/trainingSourceDetail.htm?sourceId=' + v.postId + '&_=' + new Date().getTime() + '#wechat_redirect';
              } else {
                window.location.href = url + '&_=' + new Date().getTime() + '#wechat_redirect';
              }
            }, function () {}, {
              name: that.$route.name,
              fullPath: window.location.href
            }, that._Enums.ENUMS_USER_STATUS.VIP);
          }
        }
      }, function () {}, that);
    },
    getMoreResult: function getMoreResult() {
      var that = this;
      that._Util.post(that._Api.POST_ELECT_ARTICLE_LIST, {
        catalogueId: that.secondId,
        pageNum: 1,
        pageSize: parseInt(that.$route.query.pageSize) || 10
      }, function (data) {
        that.resultList = data;
        var version = unescape(that._Util.getQueryString('version'));
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          title: window.document.title,
          moduleType: that._Util.isApp() ? '首页' : '微信菜单',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          operate_page: '电喷百科',
          keyword: localStorage.getItem('searchID'),
          param4: {
            'queryValue': '',
            'result': that.resultList.totalCount,
            'filter': localStorage.getItem('upperStr') + ';' + that.resultTabMationTitle
          }
        }, that);
        //          返回三级菜单添加锚点
        if (that._Util.getLocalStorage('anchor')) {
          setTimeout(function () {
            window.location.replace('#' + that._Util.getLocalStorage('anchor'));
            setTimeout(function () {
              that._Util.removeLocalStroageByKey('anchor');
            }, 500);
          }, 0);
        }
        that.isShowLoading();
      }, function () {}, that);
    },
    search: function search(keyword, isKeyword, flag) {
      var that = this;
      if (isKeyword != 'noKeyword') {
        if (!that.keyword) {
          that._Util.showMsgBox('搜索内容不能为空');
          return;
        }
        if (keyword.length < 2) {
          that._Util.showMsgBox('请至少输入两个字符');
          return;
        }
      }
      if (that._Util.getLocalStorage('anchor')) {
        that.params1.pageModel = {
          currentPage: 1,
          pageSize: parseInt(this.$route.query.pageSize) || 10
        };
        that._Util.post(that._Api.POST_ELECT_ARTICLE_SEARCHLIST, {
          queryValue: keyword || that.keyword,
          pageModel: {
            currentPage: 1,
            pageSize: parseInt(that.$route.query.pageSize) || that.pageSize
          }
        }, function (data) {
          localStorage.setItem('searchID', that._Util.randomChar());
          var version = unescape(that._Util.getQueryString('version'));
          that._Util.collectPageView({
            version: that._Util.isApp() ? version : '',
            postUrl: that._Api.POST_COLLECT,
            url: window.location.href,
            title: '电喷百科',
            moduleType: that._Util.isApp() ? '首页' : '微信菜单',
            operate_page: '电喷百科',
            optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            keyword: localStorage.getItem('searchID'),
            param4: {
              'queryValue': that.keyword,
              'result': data.list ? data.list.length : '',
              'filter': ''
            }
          }, that);
          that.params1.queryValue = keyword || that.keyword;
          that.resultList = data;
          //          返回三级菜单添加锚点
          if (that._Util.getLocalStorage('anchor')) {
            setTimeout(function () {
              window.location.replace('#' + that._Util.getLocalStorage('anchor'));
              setTimeout(function () {
                that._Util.removeLocalStroageByKey('anchor');
              }, 500);
            }, 0);
          }
          if (flag) {
            if (that.searchHistory.indexOf(that.keyword) == -1) {
              that.searchHistory.unshift(that.keyword);
              that._Util.setLocalStorage('searchTabListValue', that.searchHistory);
            }
          }
          that.showTabList = false;
          that.showArticl = true;
          that.isShowLoading();
          that.$router.replace({
            query: {
              keyword: keyword || that.keyword,
              checkId: '-1',
              pageSize: that.$route.query.pageSize || 10,
              type: that.$route.query.type
            }
          });
          that.secondId = parseInt(that.$route.query.checkId);
          that.keyUpdata = keyword || that.keyword;
          that.resource_url = that._Api.POST_ELECT_ARTICLE_SEARCHLIST;
          //          that.getListTop()
        }, function () {}, that);
      } else {
        that.params1.pageModel = {
          currentPage: 1,
          pageSize: 10
        };
        that._Util.post(that._Api.POST_ELECT_ARTICLE_SEARCHLIST, {
          queryValue: keyword || that.keyword,
          pageModel: {
            currentPage: 1,
            pageSize: 10
          }
        }, function (data) {
          that.params1.queryValue = keyword || that.keyword;
          that.resultList = data;
          localStorage.setItem('searchID', that._Util.randomChar());
          var version = unescape(that._Util.getQueryString('version'));
          that._Util.collectPageView({
            version: that._Util.isApp() ? version : '',
            postUrl: that._Api.POST_COLLECT,
            url: window.location.href,
            title: '电喷百科',
            moduleType: that._Util.isApp() ? '首页' : '微信菜单',
            operate_page: '电喷百科',
            optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            keyword: localStorage.getItem('searchID'),
            param4: {
              'queryValue': that.keyword,
              'result': that.resultList.totalCount,
              'filter': ''
            }
          }, that);

          //          返回三级菜单添加锚点
          if (that._Util.getLocalStorage('anchor')) {
            setTimeout(function () {
              window.location.replace('#' + that._Util.getLocalStorage('anchor'));
              setTimeout(function () {
                that._Util.removeLocalStroageByKey('anchor');
              }, 500);
            }, 0);
          }
          if (flag) {
            if (that.searchHistory.indexOf(that.keyword) == -1) {
              that.searchHistory.unshift(that.keyword);
              that._Util.setLocalStorage('searchTabListValue', that.searchHistory);
            }
          }
          that.showTabList = false;
          that.showArticl = true;
          that.isShowLoading();
          that.$router.replace({
            query: {
              keyword: keyword || that.keyword,
              checkId: '-1',
              pageSize: 10,
              type: that.$route.query.type
            }
          });
          that.secondId = parseInt(that.$route.query.checkId);
          that.keyUpdata = keyword || that.keyword;
          that.resource_url = that._Api.POST_ELECT_ARTICLE_SEARCHLIST;
          //          that.getListTop()
        }, function () {}, that);
      }
    },
    isSeach: function isSeach() {
      var that = this;
      if (that.$route.query.checkId == -1) {
        that.showArticl = true;
      } else {
        that.showArticl = false;
      }
    },
    isShowLoading: function isShowLoading() {
      var that = this;
      var listResult = that.resultList.totalCount || 0;
      if (listResult == 0) {
        that.loadingShow = false;
        return;
      }
      if (that.resultList.list.length == listResult || listResult < 10) {
        that.loadingShow = false;
      } else {
        that.loadingShow = true;
      }
    },
    updateResource: function updateResource(data) {
      var that = this;
      that.resultList = data;
      that.isShowLoading();
      if (that.$route.query.checkId == -1 || '') {
        that.$router.replace({
          query: {
            keyword: that.$route.query.keyword || that.keyword,
            checkId: '-1',
            pageSize: parseInt(that.$route.query.pageSize) + 10,
            type: that.$route.query.type
          }
        });
      } else {
        that.$router.replace({
          query: {
            checkId: that.$route.query.checkId,
            firstId: that.$route.query.firstId,
            pageSize: parseInt(that.$route.query.pageSize) + 10,
            type: that.$route.query.type
          }
        });
      }
    },
    searchListValue: function searchListValue(o) {
      this.showTabList = false;
      this.keyword = o;
      this.search(o, 'noKeyword', false);
    },
    removeSearchHistory: function removeSearchHistory() {
      this._Util.removeLocalStroageByKey('searchTabListValue');
      this.searchHistory = this._Util.getLocalStorage('searchTabListValue') || [];
      this.showTabList = false;
    },
    closeHistory: function closeHistory() {
      this.showTabList = false;
    },
    handleScroll: function handleScroll(e) {
      var that = this;
      var currentScrollPosition = e.srcElement.scrollTop;
      console.log(currentScrollPosition);
      if (currentScrollPosition > that.scrollPosition) {
        console.log(1);
        if (that.rowIndex == 1) {
          that.firstRow = true;
          that.secondRow = false;
        } else if (that.rowIndex == 2) {
          that.firstRow = false;
          that.secondRow = true;
        }
        that.getScrollHeight();
      } else {
        that.firstRow = true;
        that.secondRow = true;
        that.getScrollHeight();
      }
      that.scrollPosition = currentScrollPosition;
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(552);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0528408b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1150);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0528408b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0528408b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_paginationComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    resource_url: {
      type: String,
      required: true
    },
    checkId: {
      type: Number,
      required: true
    },
    keyUpdata: {
      type: String,
      required: true
    },
    params2: {
      type: Object,
      required: true,
      default: function _default() {
        return {
          vlue: {
            catalogueId: this.checkId,
            pageNum: 1,
            pageSize: 10
          }
        };
      }
    },
    params1: {
      type: Object,
      required: true,
      default: function _default() {
        return {
          queryValue: this.keyUpdata,
          pageModel: {
            currentPage: 1,
            pageSize: 10
          }
        };
      }
    }
  },
  data: function data() {
    return {
      loadingShow: false,
      loading: false
    };
  },
  methods: {
    search: function search() {
      var that = this;
      if (that.checkId == -1 || !that.checkId) {
        that._Util.post(that.resource_url, that.params1, function (data) {
          that.$options.methods.handleResponseData(data, that);
        }, function () {}, that);
      } else {
        that._Util.post(that.resource_url, that.params2.vlue, function (data) {
          that.$options.methods.handleResponseData(data, that);
        }, function () {}, that);
      }
    },
    handleResponseData: function handleResponseData(response, that) {
      that.$emit('update', response);
    },
    getMoreList: function getMoreList() {
      if (this.checkId == -1 || !this.checkId) {
        this.params1.pageModel.pageSize += 10;
        this.search();
      } else {
        this.params2.vlue.pageSize += 10;
        this.search();
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"uploadMore"},[_c('button',{on:{"click":function($event){return _vm.getMoreList()}}},[_vm._v("点击加载更多")])])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"scroll":_vm.handleScroll}},[(_vm.showSearch)?_c('div',{staticClass:"cycSearch result"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"id":"keyword","type":"text","placeholder":"请输入想要搜索的文章"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.search(_vm.keyword,'',true)}}})]),_vm._v(" "),(_vm.showArticl && !_vm.showTabList)?_c('div',{staticClass:"resultMation"},[_c('p',[_vm._v("得到"+_vm._s(_vm.resultList.totalCount || 0)+"个搜索结果")])]):_vm._e(),_vm._v(" "),(!_vm.showArticl && !_vm.showTabList)?_c('div',{staticClass:"resultTabMation"},[_c('p',[_vm._v(_vm._s(_vm.resultTabMationTitle))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.resultList.totalCount || 0)+" 篇文章")])]):_vm._e(),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"clearHistory"},[_c('span',[_vm._v("历史记录")]),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.removeSearchHistory()}}},[_vm._v("清空")])]):_vm._e(),_vm._v(" "),(_vm.showTabList)?_c('div',{staticClass:"searchTabList"},[_c('div',[_c('ul',_vm._l((_vm.searchHistory),function(o,i){return (_vm.searchHistory.length > 0)?_c('li',{key:i,on:{"click":function($event){return _vm.searchListValue(o)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o))])])]):_vm._e()}),0)])]):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"background":"white"},style:({ top : _vm.listTop})},_vm._l((_vm.resultList.list),function(v,index){return (!_vm.showTabList)?_c('div',{key:index,staticClass:"resultTabList",attrs:{"id":v.id ? v.id : v.postId},on:{"click":function($event){return _vm.toArticle(v,v.url,v.pay,v.type,index)}}},[_c('div',[(!v.keyword || !v.pay)?_c('p',{staticStyle:{"height":"5px"}}):_vm._e(),_vm._v(" "),_c('p',{staticClass:"Title",domProps:{"innerHTML":_vm._s(v.title)}}),_vm._v(" "),(_vm.showArticl)?_c('p',{staticClass:"Mation",domProps:{"innerHTML":_vm._s(v.content)}}):_vm._e(),_vm._v(" "),(v.keyword || v.pay)?_c('div',{staticClass:"keyAndrule"},[(v.keyword)?_c('div',{staticClass:"key"},[_c('span',{domProps:{"innerHTML":_vm._s(v.keyword)}})]):_vm._e(),_vm._v(" "),(v.pay)?_c('div',{staticClass:"rule"},[_c('img',{attrs:{"src":__webpack_require__(3054),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("付费权限")])]):_vm._e()]):_vm._e(),_vm._v(" "),(!v.keyword || !v.pay)?_c('p',{staticStyle:{"height":"5px"}}):_vm._e()])]):_vm._e()}),0),_vm._v(" "),(_vm.loadingShow && !_vm.showTabList)?_c('Pagination-Component',{attrs:{"resource_url":_vm.resource_url,"params1":_vm.params1,"params2":_vm.params2,"check-id":_vm.secondId,"key-updata":_vm.keyUpdata},on:{"update":_vm.updateResource}}):_vm._e(),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"noMation",on:{"click":function($event){return _vm.closeHistory()}}}):_vm._e(),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/ruleIcon.c1f979a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(553);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_65c0d0db_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1152);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3055)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_65c0d0db_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_65c0d0db_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderPriceAdjustment_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3056);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6ea31e6a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".patr_four,.patr_one,.patr_six,.patr_three,.patr_two{padding:5px 0;width:100%;border-bottom:1px solid #e8e8e8;background:#fff}.patr_four{border-bottom:1px solid #e8e8e8}.patr_four,.patr_six,.patr_three,.patr_two{margin-top:10px;border-top:1px solid #e8e8e8}.patr_four>div,.patr_one>div,.patr_six>div,.patr_three>div,.patr_two>div{width:95%;margin:3px auto;font-size:16px}.patr_two .orderBox{overflow:hidden;margin-top:8px;margin-bottom:8px}.orderBox div{font-size:16px;margin:0 auto;width:130px;text-align:center}.oderBox1 div,.orderBox div{background-size:contain}.box,.listBox{border:1px solid #cfcfcf;border-radius:3px}.listBox .orderDetail{width:100%;padding:7px 2px;border-bottom:1px solid #e8e8e8;overflow:hidden}.listBox>div:nth-of-type(odd){background:#f2f2f2}.orderDetail>div{float:left;padding-bottom:5px}.first_o{width:50%;font-size:16px}.second_o,.third_o{width:25%;text-align:center;font-size:16px}.priceDetail{width:100%;padding:7px 2px;border-bottom:1px solid #e8e8e8;overflow:hidden}.priceDetail>div{float:left}.first_p{width:38%;font-size:16px}.second_p{width:62%;font-size:16px}.second_p>span{display:block}.applyPerson{overflow:hidden}.applyPerson>div{float:left;width:50%}.note{overflow:hidden;margin-top:5px;margin-bottom:10px}.noteBox{margin-top:7px;background:#f2f2f2;padding:5px;display:block;width:100%;border-radius:5px}.patr_five{width:100%;height:50px;overflow:hidden}.patr_five>div{float:left;width:50%;color:#fff;font-size:16px;height:50px;text-align:center;line-height:50px}.patr_five>div:nth-of-type(2){float:right}.priceDetail:nth-of-type(odd){background:#f2f2f2}.patr_six .orderDetail{padding:0}.patr_six .orderDetail:first-of-type>div{width:33.33%;text-align:center;border-right:1px solid #cfcfcf;padding:7px 2px}.patr_six .orderDetail>td{width:33.33%;text-align:left;border-right:1px solid #cfcfcf;padding:7px 2px}.patr_six .orderDetail:nth-of-type(2n){background:#f2f2f2}.patr_six .orderDetail>td:last-of-type{border-right:0}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      id: this.$route.query.id,
      detailResult: {
        renewReceiveInfo: {}
      },
      textVal: '',
      stat: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getDetail();
  },
  methods: {
    getDetail: function getDetail() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/orderAdjust/getOrderAdjustDetails.json', {
        id: that.id
      }, function (data) {
        if (data) {
          that.detailResult = data;
          switch (that.detailResult.status) {
            case 1:
              that.stat = '待审核';
              break;
            case 2:
              that.stat = '已通过';
              break;
            case 3:
              that.stat = '已驳回';
              break;
            case 4:
              that.stat = '系统通过';
              break;
            case 5:
              that.stat = '已作废';
              break;
            default:
              that.stat = '';
          }
        }
      }, function () {}, that);
    },
    postData: function postData(type) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/orderAdjust/auditOrderAdjust.json', {
        id: that.id.trim(),
        status: type,
        remarks: that.textVal
      }, function (data) {
        if (type == 3) {
          _mintUi.MessageBox.alert('驳回成功！');
        } else {
          _mintUi.MessageBox.alert('调价成功！');
        }
        that.getDetail();
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"100%","overflow-y":"scroll","background":"#f8f8f8","color":"black","font-size":"16px","-webkit-overflow-scrolling":"touch"}},[_c('div',{staticClass:"patr_one"},[_c('div',[_vm._v("调价编号："+_vm._s(_vm.detailResult.id || '')+"  "),_c('span',{staticStyle:{"color":"#dc1c25","font-size":"16px","display":"inline-block","padding-left":"15px"}},[_vm._v(_vm._s(_vm.stat))])]),_vm._v(" "),_c('div',[_vm._v("订单编号："+_vm._s(_vm.detailResult.orderNo || ''))]),_vm._v(" "),_c('div',[_vm._v("订单客户："+_vm._s(_vm.detailResult.uname || '')+"  "+_vm._s(_vm.detailResult.uphone || ''))]),_vm._v(" "),_c('div',[_vm._v("收货地址："+_vm._s(_vm.detailResult.address))])]),_vm._v(" "),_c('div',{staticClass:"patr_two"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"listBox"},[_vm._l((_vm.detailResult.itemList),function(v,i){return _c('div',{key:i,staticClass:"orderDetail"},[_c('div',{staticClass:"first_o"},[_vm._v(_vm._s(v.mdseName || ''))]),_vm._v(" "),_c('div',{staticClass:"second_o"},[_vm._v("￥"+_vm._s(v.price || 0))]),_vm._v(" "),_c('div',{staticClass:"third_o"},[_vm._v(_vm._s(v.num || ''))])])}),_vm._v(" "),_c('div',{staticStyle:{"padding":"5px 5px","text-align":"left","font-size":"16px","font-weight":"bolder"}},[_vm._v("订单总计：￥"+_vm._s(_vm.detailResult.orderAmount))])],2)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.detailResult.renewReceiveInfo.renewStatus),expression:"detailResult.renewReceiveInfo.renewStatus"}],staticClass:"patr_six"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"listBox"},[_vm._m(2),_vm._v(" "),_c('table',{staticStyle:{"width":"100%"}},_vm._l((_vm.detailResult.renewReceiveInfo.applyMaps),function(v,i){return _c('tr',{key:i,staticClass:"orderDetail"},[_c('td',{staticClass:"first_o"},[_vm._v(_vm._s(v.mdseName || ''))]),_vm._v(" "),_c('td',{staticClass:"second_o"},[_vm._v(_vm._s(v.realMdseName || ''))]),_vm._v(" "),_c('td',{staticClass:"third_o"},[_c('em',{directives:[{name:"show",rawName:"v-show",value:(v.amount),expression:"v.amount"}]},[_vm._v("￥")]),_vm._v(_vm._s(v.amount || ''))])])}),0),_vm._v(" "),_c('div',{staticStyle:{"padding":"5px 5px","text-align":"left","font-size":"16px","font-weight":"bolder"}},[_vm._v("\n        抵扣金额总计：￥"+_vm._s(_vm.detailResult.renewReceiveInfo.applySlowAmount)+"\n      ")])])]),_vm._v(" "),_c('div',{staticClass:"patr_three"},[_vm._m(3),_vm._v(" "),_c('div',{staticClass:"box",staticStyle:{"margin-top":"5px"}},[_c('div',{staticClass:"priceDetail"},[_c('div',{staticClass:"first_p"},[_vm._v("代金券：")]),_vm._v(" "),_c('div',{staticClass:"second_p"},[_vm._v(_vm._s(_vm.detailResult.couponPrice || 0)+"（"+_vm._s(_vm.detailResult.couponPercent || 0)+"%）")])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.detailResult.couponList && _vm.detailResult.couponList.length>0),expression:"detailResult.couponList && detailResult.couponList.length>0"}],staticClass:"priceDetail"},[_c('div',{staticClass:"first_p"},[_vm._v("代金券明细：")]),_vm._v(" "),_c('div',{staticClass:"second_p"},_vm._l((_vm.detailResult.couponList),function(item,index){return _c('span',{key:index},[_vm._v(_vm._s(item.couponName)+"："+_vm._s(item.couponPrice)+"元")])}),0)]),_vm._v(" "),_c('div',{staticClass:"priceDetail"},[_c('div',{staticClass:"first_p"},[_vm._v("已调价：")]),_vm._v(" "),_c('div',{staticClass:"second_p"},[_vm._v(_vm._s(_vm.detailResult.alreadyDetractFee || 0)+"（"+_vm._s(_vm.detailResult.alreadyDetractFeePercent || 0)+"%）")])]),_vm._v(" "),_c('div',{staticClass:"priceDetail"},[_c('div',{staticClass:"first_p",staticStyle:{"color":"#dc1c25"}},[_vm._v("系统审核说明：")]),_vm._v(" "),_c('div',{staticClass:"second_p",staticStyle:{"color":"#dc1c25"}},[_vm._v(_vm._s(_vm.detailResult.sysRemarks || ''))])]),_vm._v(" "),_c('div',{staticClass:"priceDetail"},[_c('div',{staticClass:"first_p",staticStyle:{"color":"#dc1c25"}},[_vm._v("调价方案：")]),_vm._v(" "),_c('div',{staticClass:"second_p",staticStyle:{"color":"#dc1c25"}},[_vm._v(_vm._s(_vm.detailResult.reportName || ''))])]),_vm._v(" "),_c('div',{staticClass:"priceDetail"},[_c('div',{staticClass:"first_p",staticStyle:{"color":"#dc1c25"}},[_vm._v("本次调价：")]),_vm._v(" "),_c('div',{staticClass:"second_p",staticStyle:{"color":"#dc1c25"}},[_vm._v(_vm._s(_vm.detailResult.detractFee || 0)+"（"+_vm._s(_vm.detailResult.detractFeePercent || 0)+"%）")])])]),_vm._v(" "),_c('div',{staticStyle:{"overflow":"hidden","text-align":"left","font-size":"16px"}},[_c('div',{staticStyle:{"float":"left","width":"30%","font-size":"16px"}},[_vm._v("\n        累计优惠：\n      ")]),_vm._v(" "),_c('div',{staticStyle:{"float":"left","width":"70%","font-size":"16px"}},[_vm._v("\n        "+_vm._s(_vm.detailResult.grandTotal || 0)+"（"+_vm._s(_vm.detailResult.grandTotalPercent || 0)+"%）\n      ")])]),_vm._v(" "),_c('div',{staticStyle:{"text-align":"left","font-size":"16px","font-weight":"bolder","overflow":"hidden"}},[_c('div',{staticStyle:{"float":"left","width":"30%","font-size":"16px"}},[_vm._v("客户应付：")]),_vm._v(" "),_c('div',{staticStyle:{"float":"left","width":"70%","font-size":"16px"}},[_vm._v(_vm._s((_vm.detailResult.orderAmount - _vm.detailResult.grandTotal).toFixed(2) || 0)+"\n\n      ")])])]),_vm._v(" "),_c('div',{staticClass:"patr_four"},[_c('div',[_c('div',{staticClass:"applyPerson"},[_c('div',{staticStyle:{"font-size":"16px"}},[_vm._v("申请调价："+_vm._s(_vm.detailResult.createUser || ''))]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"16px"}},[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.detailResult.createTime,'yyyy-MM-dd hh:mm')))])]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"16px"}},[_vm._v("调价备注："+_vm._s(_vm.detailResult.remarks || ''))]),_vm._v(" "),_c('div',[_c('div',{staticClass:"note"},[(_vm.detailResult.status == 1)?_c('div',{staticStyle:{"font-size":"16px"}},[_vm._v("审核备注：")]):_vm._e(),_vm._v(" "),_c('div',[(_vm.detailResult.status == 1)?_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.textVal),expression:"textVal"}],staticClass:"noteBox",attrs:{"placeholder":"非必填"},domProps:{"value":(_vm.textVal)},on:{"input":function($event){if($event.target.composing){ return; }_vm.textVal=$event.target.value}}}):_vm._e()])])])])]),_vm._v(" "),(_vm.detailResult.status == 1)?_c('div',{staticClass:"patr_five"},[_c('div',{staticStyle:{"background":"#d8d8d8","color":"black"},on:{"click":function($event){return _vm.postData(3)}}},[_vm._v("驳回")]),_vm._v(" "),_c('div',{staticStyle:{"background":"#dc1c25"},on:{"click":function($event){return _vm.postData(2)}}},[_vm._v("同意")])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"orderBox"},[_c('div',[_vm._v("订单详情")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"orderBox"},[_c('div',[_vm._v("以旧换新详情")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"orderDetail"},[_c('div',{staticClass:"first_o"},[_vm._v("寄回商品")]),_vm._v(" "),_c('div',{staticClass:"second_o"},[_vm._v("仓库收到商品")]),_vm._v(" "),_c('div',{staticClass:"third_o",staticStyle:{"border-right":"0"}},[_vm._v("实际抵扣金额")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"orderBox oderBox1"},[_c('div',[_vm._v("优惠详情")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(554);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e6d86fda_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1153);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3057)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e6d86fda_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e6d86fda_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_feed_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3058);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("704bc47e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".index_table{background:#fff;overflow:hidden}.index_table>div{padding:10px 0 0}.index_table>div ul{overflow:hidden}.index_table>div li{float:left;width:25%;text-align:center}.index_table>div li p{width:42px;height:42px;border-radius:21px;overflow:hidden;text-align:center;line-height:42px;margin:0 auto;display:block}.index_table ul.tableListMore{height:0;overflow:hidden}.index_table>div li p img{vertical-align:middle}.index_table>div li span{display:inline-block;height:30px;font-family:PingFangSC-Semibold;font-size:14px}.index_table>div li:nth-child(4n-3) p{background:#1464b0}.index_table>div li:nth-child(4n-2) p{background:#e96d40}.index_table>div li:nth-child(4n-1) p{background:#25ac24}.index_table>div li:nth-child(4n) p{background:#b81c25}.index_table>div.getMoreTable{padding:0;text-align:center}.index_table>div.getMoreTable p{color:#666;height:15px}.index_table>div.getMoreTable img{display:inline-block;width:15px;transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-webkit-transform:rotate(90deg);-o-transform:rotate(90deg)}.index_table>div.getMoreTable img.active{transform:rotate(270deg);-ms-transform:rotate(270deg);-moz-transform:rotate(270deg);-webkit-transform:rotate(270deg);-o-transform:rotate(270deg)}.articleList{background:#fff}.articleList>div:first-child{padding-top:15px}.articleList>div{margin:0 10px;border-bottom:1px solid #e6e6e6;position:relative;padding-bottom:20px}.articleList>div.gzh p{margin-right:117px}.articleList>div.gzh img{width:95px;height:75px;position:absolute;right:0;top:20px}.articleList>div p.title{font-size:18px;font-weight:500}.articleList>div p.time{font-size:14px;color:#999;margin-top:2px;margin-bottom:12px}.articleList>div p.time span:last-child{margin-left:12px;font-family:PingFangSC-Regular}.articleList>div p.time span{font-size:14px;font-family:PingFangSC-Regular}.articleList>div p.title{line-height:20px;color:#333;font-family:PingFangSC-Semibold}.articleList>div.gzh{min-height:80px;padding-bottom:10px;overflow:hidden}.articleList>div.gzh p.title{height:48px;margin-bottom:8px;margin-top:6px;line-height:25px;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;padding-bottom:0}.articleList>div.gzh p.time{vertical-align:bottom;margin-top:0}.articleList>div.jdwd ul{overflow:hidden}.articleList>div.jdwd li{margin-left:2%;float:left;width:32%;text-align:center}.articleList>div.jdwd li:nth-child(3n-2){margin-left:0}.articleList>div.jdwd li img{max-height:100%;max-width:100%;vertical-align:middle}.articleList>div.dkjc div{width:100%;height:108px;text-align:center;line-height:108px;overflow:hidden;position:relative}img{border-radius:4px}.articleList>div.dkjc div img{width:100%;max-height:108px;max-width:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      fmsList: [],
      curPage: 0,
      scrollIng: false
    };
  },
  mounted: function mounted() {
    var that = this;
    document.title = that.$route.query.head || '';
    if (localStorage.getItem('onFeedScrollFlag') && localStorage.getItem('onFeedScrollFlag') == 1) {
      var job = JSON.parse(localStorage.getItem('feedList'));
      if (localStorage.getItem('scrollIng')) {
        that.scrollIng = true;
      }
      for (var i = 0; i < job.length; i++) {
        job[i] = JSON.parse(job[i]);
      }
      that.fmsList = job;
      that.curPage = localStorage.getItem('feedPages');
      setTimeout(function () {
        (0, _jquery.default)('#onscrollBox1').scrollTop(localStorage.getItem('onFeedScroll'));
        localStorage.setItem('onFeedScroll', 0);
        localStorage.setItem('onFeedScrollFlag', 0);
        localStorage.setItem('feedList', '');
      }, 200);
    } else {
      that.getFmList();
    }
    (0, _jquery.default)('#onscrollBox1').scroll(function () {
      var nDivHight = (0, _jquery.default)('#onscrollBox1').height();
      var nScrollHight = (0, _jquery.default)(this)[0].scrollHeight;
      var nScrollTop = (0, _jquery.default)(this)[0].scrollTop;
      // document.title = nScrollTop + '--'+ nDivHight + '--' + nScrollHight
      if (nScrollTop + nDivHight >= nScrollHight - 20) {
        if (that.scrollIng) {
          that.curPage++;
          that.getFmList();
        }
      }
    });
    //        window.onscroll = function () {
    //        if(that.getScrollTop() + that.getWindowHeight() == that.getScrollHeight()){
    //          if(that.scrollIng){
    //            that.curPage++;
    //            that.getFmList();
    //          }
    //        }
    //      };
  },
  methods: {
    getScrollTop: function getScrollTop() {
      var scrollTop = 0;
      var bodyScrollTop = 0;
      var documentScrollTop = 0;
      if (document.body) {
        bodyScrollTop = document.body.scrollTop;
      }
      if (document.documentElement) {
        documentScrollTop = document.documentElement.scrollTop;
      }
      scrollTop = bodyScrollTop - documentScrollTop > 0 ? bodyScrollTop : documentScrollTop;
      return scrollTop;
    },
    getScrollHeight: function getScrollHeight() {
      var scrollHeight = 0;
      var bodyScrollHeight = 0;
      var documentScrollHeight = 0;
      if (document.body) {
        bodyScrollHeight = document.body.scrollHeight;
      }
      if (document.documentElement) {
        documentScrollHeight = document.documentElement.scrollHeight;
      }
      scrollHeight = bodyScrollHeight - documentScrollHeight > 0 ? bodyScrollHeight : documentScrollHeight;
      return scrollHeight;
    },
    getWindowHeight: function getWindowHeight() {
      var windowHeight = 0;
      if (document.compatMode == 'CSS1Compat') {
        windowHeight = document.documentElement.clientHeight;
      } else {
        windowHeight = document.body.clientHeight;
      }
      return windowHeight;
    },
    getFmList: function getFmList() {
      var that = this;
      that.scrollIng = false;
      that._Util.post(that._Api.NEWHOST + 'common-api/app/queryFms.json', {
        curPage: that.curPage,
        title: that.$route.query.title || '',
        type: that.$route.query.type || '',
        source: that.$route.query.source || '',
        sys_source: that.$route.query.sys_source || '',
        time: that.$route.query.time || '',
        url: that.$route.query.url || ''
      }, function (data) {
        if (data.length > 0) {
          that.fmsList = that.fmsList.concat(data);
          that.scrollIng = true;
        } else {
          that.scrollIng = false;
        }
      }, function () {}, that, true);
    },
    articleGo: function articleGo(v) {
      var that = this;
      localStorage.setItem('onFeedScroll', document.getElementById('onscrollBox1').scrollTop);
      localStorage.setItem('onFeedScrollFlag', 1);
      localStorage.setItem('feedPages', that.curPage);
      localStorage.setItem('scrollIng', that.scrollIng);
      var arr = [];
      var _iterator = _createForOfIteratorHelper(that.fmsList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var item = _step.value;
          arr.push(JSON.stringify(item));
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      localStorage.setItem('feedList', JSON.stringify(arr));
      location.href = v.url;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%","height":"100%","overflow":"hidden"}},[_c('div',{staticStyle:{"width":"100%","height":"100%","overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},attrs:{"id":"onscrollBox1"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.fmsList.length > 0),expression:"fmsList.length > 0"}]},_vm._l((_vm.fmsList),function(o,i){return _c('div',{key:i,staticClass:"articleList",on:{"click":function($event){return _vm.articleGo(o)}}},[(o.type == 1)?_c('div',{staticClass:"gzh"},[_c('p',{staticClass:"title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('p',{staticClass:"time"},[_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})]),_vm._v(" "),_c('img',{attrs:{"src":o.imgPaths + '?imageView2/1/w/300/h/160',"alt":""}})]):_vm._e(),_vm._v(" "),(o.type == 3)?_c('div',{staticClass:"jdwd"},[_c('p',{staticClass:"title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('p',{staticClass:"time"},[_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})]),_vm._v(" "),_c('ul',_vm._l((o.imgPathList),function(v,i){return _c('li',{key:i},[_c('img',{attrs:{"src":v + '?imageView2/1/w/300/h/160',"alt":""}})])}),0)]):_vm._e(),_vm._v(" "),(o.type ==2)?_c('div',{staticClass:"dkjc"},[_c('p',{staticClass:"title",staticStyle:{"margin-top":"5px"},domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('p',{staticClass:"time"},[_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})]),_vm._v(" "),_c('div',[_c('img',{attrs:{"src":o.imgPaths + '?imageslim',"alt":""}})])]):_vm._e()])}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(555);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_502114b0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1154);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3059)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_502114b0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_502114b0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_customerBoard_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3060);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("94ee4964", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{background:#f8faff}.card{width:82%;height:440px;overflow:hidden;position:absolute;background:#fff;border-radius:4px;-webkit-border-radius:4px;box-shadow:0 4px 16px 0 #e1e1e1;-webkit-box-shadow:0 4px 16px 0 #e1e1e1;margin:auto}.card2{left:93%;top:50px}.card1{left:9%}.card0{left:0;top:50px;left:-75%}.optionButton{width:36px;height:36px;position:absolute}.op1,.op2{top:50%;margin-top:-18px}.op2{right:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      rules0: [],
      rules1: [],
      rules2: [],
      activeIndex: 1
      //              swiperOption: {
      // //                autoplay: 3500,
      //                setWrapperSize :true,
      //                paginationClickable :true,
      //                mousewheelControl : true,
      //                observeParents:true,
      //                effect : 'coverflow',
      //                slidesPerView: 1,
      //                coverflowEffect: {
      //                  rotate: 30,
      //                  stretch: 10,
      //                  depth: 60,
      //                  modifier: 2,
      //                  slideShadows : true
      //                },
      //              },
      //              swiperSlides: [1, 2,3]
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getDefault();

    //          let startX,startY
    //          $("body").on("touchstart", function(e) {
    //            if (e.cancelable) {
    //              if (!e.defaultPrevented) {
    //                e.preventDefault();
    //              }
    //            }
    //            startX = e.originalEvent.changedTouches[0].pageX;
    //            startY = e.originalEvent.changedTouches[0].pageY;
    //          });
    //          $("body").on("touchend", function(e) {
    //            if (e.cancelable) {
    //              if (!e.defaultPrevented) {
    //                e.preventDefault();
    //              }
    //            }
    //           let moveEndX = e.originalEvent.changedTouches[0].pageX;
    //           let moveEndY = e.originalEvent.changedTouches[0].pageY;
    //           let  X = moveEndX - startX;
    //           let  Y = moveEndY - startY;
    //            //左滑
    //            if ( X > 0 ) {
    //              that.slide("right");
    //            }
    //            //右滑
    //            else if ( X < 0 ) {
    //              that.slide("left");
    //
    //            }
    //          });
  },
  methods: {
    getDefault: function getDefault() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'weikefu',
        pageNum: 1,
        pageSize: 3
      }, function (data) {
        that.rules0 = data.dataList[0];
        that.rules1 = data.dataList[1];
        that.rules2 = data.dataList[2];
      }, function () {}, that);
    },
    slide: function slide(type) {
      if (type == 'left') {
        if (this.activeIndex == 1) {
          (0, _jquery.default)('.card2').animate({
            left: '9%',
            top: '0px'
          }, 200);
          (0, _jquery.default)('.card1').animate({
            left: '-75%',
            top: '50px'
          }, 300);
          this.activeIndex = 2;
        }
        if (this.activeIndex == 3) {
          (0, _jquery.default)('.card0').animate({
            left: '-75%',
            top: '50px'
          }, 200);
          (0, _jquery.default)('.card1').animate({
            left: '9%',
            top: '0px'
          }, 300);
          this.activeIndex = 1;
        }
        if (this.activeIndex == 2) {
          (0, _jquery.default)('.opp1').hide();
        }
        if (this.activeIndex == 1) {
          (0, _jquery.default)('.opp2').show();
        }
      } else {
        //                      alert(this.activeIndex)
        if (this.activeIndex == 2) {
          (0, _jquery.default)('.opp1').show();
        }
        if (this.activeIndex == 1) {
          (0, _jquery.default)('.opp2').hide();
        }
        if (this.activeIndex == 1) {
          (0, _jquery.default)('.card0').animate({
            left: '9%',
            top: '0px'
          }, 200);
          (0, _jquery.default)('.card1').animate({
            left: '93%',
            top: '50px'
          }, 300);
          this.activeIndex = 3;
        }
        if (this.activeIndex == 2) {
          (0, _jquery.default)('.card2').animate({
            left: '93%',
            top: '50px'
          }, 200);
          (0, _jquery.default)('.card1').animate({
            left: '9%',
            top: '0px'
          }, 300);
          this.activeIndex = 1;
        }
      }
      //                this.activeIndex
    } //            goPage(){
    //                let that = this;
    //              that._Util.post(that._Api.HOSTOLD + 'api/treeShare/customerBoard.json', {}, (data) => {
    //                that.$router.push({"name": 'questionDetail',query:{id:data || 207,flag: 'customer'}})
    //              }, () => {
    //              }, that)
    //            }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","height":"480px","position":"relative","overflow":"hidden","margin-top":"-35px"}},[_c('div',{staticClass:"opp1",staticStyle:{"width":"50px","height":"100px","position":"absolute","z-index":"15","left":"15px","top":"50%","margin-top":"-50px"},on:{"click":function($event){return _vm.slide('left')}}},[_c('img',{staticClass:"optionButton op1",attrs:{"src":__webpack_require__(3061)}})]),_vm._v(" "),_c('div',{staticClass:"opp2",staticStyle:{"width":"50px","height":"100px","position":"absolute","z-index":"15","right":"15px","top":"50%","margin-top":"-50px"},on:{"click":function($event){return _vm.slide('right')}}},[_c('img',{staticClass:"optionButton op2",attrs:{"src":__webpack_require__(3062)}})]),_vm._v(" "),_c('div',{staticClass:"card card0"},[_c('div',{staticStyle:{"height":"85px","border-bottom":"1px solid #E5E5E5"}},[_vm._m(1),_vm._v(" "),_c('div',[(!_vm.rules1.img_url)?_c('div',{staticStyle:{"font-size":"20px","text-align":"center","margin-top":"55px","color":"#666"}},[_vm._v("敬请期待")]):_vm._e(),_vm._v(" "),(_vm.rules1.img_url)?_c('img',{staticStyle:{"width":"130px","height":"130px","display":"block","margin":"0 auto","margin-top":"4px"},attrs:{"src":_vm.rules1.img_url}}):_vm._e(),_vm._v(" "),(_vm.rules1.img_url)?_c('div',{staticStyle:{"font-size":"14px","color":"#666","text-align":"center","margin-top":"10px"}},[_vm._v("长按识别二维码，添加好友")]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"padding":"0 15px","margin-top":"20px"},domProps:{"innerHTML":_vm._s(_vm.rules1.text || '')}})])])]),_vm._v(" "),_c('div',{staticClass:"card card1"},[_vm._m(2),_vm._v(" "),_c('div',[(!_vm.rules0.img_url)?_c('div',{staticStyle:{"font-size":"20px","text-align":"center","margin-top":"55px","color":"#666"}},[_vm._v("敬请期待")]):_vm._e(),_vm._v(" "),(_vm.rules0.img_url)?_c('img',{staticStyle:{"width":"130px","height":"130px","display":"block","margin":"0 auto","margin-top":"4px"},attrs:{"src":_vm.rules0.img_url}}):_vm._e(),_vm._v(" "),(_vm.rules0.img_url)?_c('div',{staticStyle:{"font-size":"14px","color":"#666","text-align":"center","margin-top":"10px"}},[_vm._v("长按识别二维码，添加好友")]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"padding":"0 15px","margin-top":"20px"},domProps:{"innerHTML":_vm._s(_vm.rules0.text||'')}})])]),_vm._v(" "),_c('div',{staticClass:"card card2"},[_vm._m(3),_vm._v(" "),_c('div',[(!_vm.rules2.img_url)?_c('div',{staticStyle:{"font-size":"20px","text-align":"center","margin-top":"55px","color":"#666"}},[_vm._v("敬请期待")]):_vm._e(),_vm._v(" "),(_vm.rules2.img_url)?_c('img',{staticStyle:{"width":"130px","height":"130px","display":"block","margin":"0 auto","margin-top":"4px"},attrs:{"src":_vm.rules2.img_url}}):_vm._e(),_vm._v(" "),(_vm.rules2.img_url)?_c('div',{staticStyle:{"font-size":"14px","color":"#666","text-align":"center","margin-top":"10px"}},[_vm._v("长按识别二维码，添加好友")]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"padding":"0 15px","margin-top":"20px"},domProps:{"innerHTML":_vm._s(_vm.rules2.text||'')}})])])]),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('img',{staticStyle:{"width":"100%","height":"150px","pointer-events":"none"},attrs:{"src":__webpack_require__(3063)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"85px","border-bottom":"1px solid #E5E5E5"}},[_c('img',{staticStyle:{"width":"45px","height":"45px","float":"left","margin-top":"18px","margin-left":"17px","pointer-events":"none"},attrs:{"src":__webpack_require__(3064)}}),_vm._v(" "),_c('div',{staticStyle:{"font-size":"20px","color":"#333","float":"left","margin-top":"25px","margin-left":"12px"}},[_vm._v("设备销售")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"85px","border-bottom":"1px solid #E5E5E5"}},[_c('img',{staticStyle:{"width":"45px","height":"45px","float":"left","margin-top":"18px","margin-left":"17px","pointer-events":"none"},attrs:{"src":__webpack_require__(3065)}}),_vm._v(" "),_c('div',{staticStyle:{"font-size":"20px","color":"#333","float":"left","margin-top":"25px","margin-left":"12px"}},[_vm._v("客服咨询")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"85px","border-bottom":"1px solid #E5E5E5"}},[_c('img',{staticStyle:{"width":"45px","height":"45px","float":"left","margin-top":"18px","margin-left":"17px","pointer-events":"none"},attrs:{"src":__webpack_require__(3066)}}),_vm._v(" "),_c('div',{staticStyle:{"font-size":"20px","color":"#333","float":"left","margin-top":"25px","margin-left":"12px"}},[_vm._v("配件销售")])])}]
module.exports = __webpack_require__.p + "static/img/left.e0ca9a1.png";module.exports = __webpack_require__.p + "static/img/right.cfc7d30.png";module.exports = __webpack_require__.p + "static/img/banner.5a41a4a.png";module.exports = __webpack_require__.p + "static/img/3.1191a97.png";module.exports = __webpack_require__.p + "static/img/1.8c6534b.png";module.exports = __webpack_require__.p + "static/img/2.726df85.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(556);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3147cc23_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1155);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3067)
  __webpack_require__(3069)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3147cc23"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3147cc23_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3147cc23_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3068);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("19ed04bd", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".message-box-wrap[data-v-3147cc23]{background-color:#f5f5f5}.message-box-wrap .message-box[data-v-3147cc23]{height:4rem;margin:.6rem;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem;position:relative}.message-box-wrap .message-box>img[data-v-3147cc23]{position:absolute;top:50%;left:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:2.4rem;height:2.4rem;border-radius:.3rem}.message-box-wrap .message-box .content[data-v-3147cc23]{padding-top:.8rem;margin-left:3.6rem}.message-box-wrap .message-box .content .type-name[data-v-3147cc23]{font-size:.85rem;font-family:PingFangSC;font-weight:600;color:#333;line-height:1.2rem;margin-bottom:.2rem}.message-box-wrap .message-box .content .message-title[data-v-3147cc23]{font-size:.7rem;font-family:PingFangSC;font-weight:400;color:#666;line-height:1rem;padding-right:2.05rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.message-box-wrap .message-box .content .message-time[data-v-3147cc23]{position:absolute;top:.9rem;right:.6rem;font-size:.6rem;font-family:PingFangSC;font-weight:400;color:#666;line-height:.83rem}.message-box-wrap .message-box .content .unread-num[data-v-3147cc23]{position:absolute;right:.53rem;bottom:.9rem;color:#fff;font-size:.55rem;font-family:PingFangSC;font-weight:400;line-height:.75rem;background-color:#ff3f3f;border-radius:.5rem;border:.05rem solid #fff;padding:.08rem .33rem}.mescroll[data-v-3147cc23]{position:fixed;top:0;bottom:0;height:auto}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3070);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("85c35d80", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".message-box-wrap .mescroll-empty{padding-top:11.05rem!important}.message-box-wrap .mescroll-empty .empty-icon{width:3rem!important;pointer-events:none}.message-box-wrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _header = _interopRequireDefault(__webpack_require__(93));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    headerFixed: _header.default,
    MescrollVue: _mescroll.default // 注册mescroll组件
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      mescrollUp: {
        callback: this.getBoxList,
        auto: true,
        empty: {
          warpId: 'message-box',
          icon: 'http://static2.kaxiuyun.com/kxy/app/noComment.png',
          tip: '还没有收到消息'
        }
      },
      boxList: [] // 列表数据
    };
  },
  mounted: function mounted() {},
  methods: {
    /**
     * mescroll 组件的初始化方法
     * @param {object} mescroll mescroll 组件实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      if (this._Util.isApp()) {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          mescroll.resetUpScroll(false);
        });
      }
    },
    /**
     * 消息盒子点击埋点
     * @param {string} boxName 消息盒子名称
     */
    messageBoxClickPoint: function messageBoxClickPoint(boxName) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '消息中心',
          operate_page: '消息中心',
          optionType: '点击',
          param1: boxName
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 进入对应消息列表
     * @param {number} boxId 消息盒子id
     * @param {number} boxType 消息盒子类型
     * @param {string} boxName 消息盒子名称
     */
    goMessageList: function goMessageList(boxId, boxType, boxName) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var obj;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.messageBoxClickPoint(boxName);
            case 1:
              obj = {
                1: {
                  name: 'messageArticleList',
                  url: "".concat(location.origin, "/v2/message/articleList?boxId=").concat(boxId, "&boxName=").concat(boxName)
                },
                2: {
                  name: 'messageArticleList',
                  url: "".concat(location.origin, "/v2/message/articleList?boxId=").concat(boxId, "&boxName=").concat(boxName)
                },
                3: {
                  name: 'messageNoticeList',
                  url: "".concat(location.origin, "/v2/message/noticeList?boxId=").concat(boxId, "&boxName=").concat(boxName)
                },
                4: {
                  name: 'messageHelperList',
                  url: "".concat(location.origin, "/v2/message/helperList?boxId=").concat(boxId, "&boxName=").concat(boxName)
                }
              };
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: obj[boxType].name,
                    url: obj[boxType].url,
                    notGive: true
                  }
                });
              } else {
                _this2.$router.push({
                  name: obj[boxType].name,
                  query: {
                    boxId: boxId,
                    boxName: boxName
                  }
                });
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 获取消息盒子列表
     * @param {object} page page.size 每页数量 page.num 页码  // 当前页面 暂不分页
     * @param {object} mescroll mescroll 实例对象
     */
    getBoxList: function getBoxList(page, mescroll) {
      var _this3 = this;
      this._Util.post(this._Api.MESSAGEBOX.GET_BOX_LIST, {}, function (data) {
        var arr = data;
        if (page.num === 1) _this3.boxList = [];
        _this3.boxList = _this3.boxList.concat(arr);
        _this3.$nextTick(function () {
          mescroll.endSuccess(arr.length);
        });
      }, function () {
        mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"message-box-wrap"},[_c('mescroll-vue',{ref:"mescroll",style:(!_vm.isApp ? 'top:2.6rem' : ''),attrs:{"id":"message-box","up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},_vm._l((_vm.boxList),function(v,i){return _c('div',{key:i,staticClass:"message-box",on:{"click":function($event){return _vm.goMessageList(v.id, v.type, v.name)}}},[_c('img',{attrs:{"src":v.iconPath ||'http://static2.kaxiuyun.com/kxy/message-box/message-box-default.png',"alt":"消息盒子图标"}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"type-name"},[_vm._v(_vm._s(v.name))]),_vm._v(" "),_c('div',{staticClass:"message-title"},[_vm._v(_vm._s(v.title ? v.title : '暂时还没有收到消息'))]),_vm._v(" "),_c('div',{staticClass:"message-time"},[_vm._v(_vm._s(v.time))]),_vm._v(" "),(v.messageNum)?_c('div',{staticClass:"unread-num"},[_vm._v(_vm._s(v.messageNum))]):_vm._e()])])}),0),_vm._v(" "),(!_vm.isApp)?_c('headerFixed'):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_article_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(557);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_article_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_article_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_article_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_article_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1580edd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_article_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1156);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3071)
  __webpack_require__(3073)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1580edd0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_article_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1580edd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_article_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1580edd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_article_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3072);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4c719c89", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".article-template-wrap[data-v-1580edd0]{background-color:#f5f5f5}.article-template-wrap .scroll-wrap[data-v-1580edd0]{padding-top:.2rem}.article-template-wrap .scroll-wrap .article-template .time[data-v-1580edd0]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#666;line-height:1rem;padding-top:.8rem;padding-bottom:.6rem;text-align:center}.article-template-wrap .scroll-wrap .article-template .card[data-v-1580edd0]{background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem;width:17.55rem;margin:0 auto;padding:.8rem 0;position:relative}.article-template-wrap .scroll-wrap .article-template .card>img[data-v-1580edd0]{width:1.8rem;height:1.8rem;border-radius:50%;position:absolute;top:.8rem;left:.6rem}.article-template-wrap .scroll-wrap .article-template .card .content[data-v-1580edd0]{margin-left:3rem}.article-template-wrap .scroll-wrap .article-template .card .content .title[data-v-1580edd0],.article-template-wrap .scroll-wrap .article-template .card .content .title span[data-v-1580edd0]{font-size:.75rem;font-family:PingFangSC-Medium,PingFangSC;font-weight:400;color:#666;line-height:1.05rem}.article-template-wrap .scroll-wrap .article-template .card .content .title span[data-v-1580edd0]{vertical-align:bottom}.article-template-wrap .scroll-wrap .article-template .card .content .title strong[data-v-1580edd0]{font-weight:400;color:#177afa}.article-template-wrap .scroll-wrap .article-template .card .content .title .limit-name[data-v-1580edd0]{max-width:4.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.article-template-wrap .scroll-wrap .article-template .card .content .text[data-v-1580edd0]{margin-top:.38rem;font-size:.8rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:500;color:#333;line-height:1.1rem;padding-right:.6rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.mescroll[data-v-1580edd0]{position:fixed;top:0;bottom:0;height:auto}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3074);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5cf0dbe1", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".article-template-wrap .mescroll-empty{padding-top:11.05rem!important}.article-template-wrap .mescroll-empty .empty-icon{width:3rem!important;pointer-events:none}.article-template-wrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    MescrollVue: _mescroll.default
  },
  data: function data() {
    return {
      mescrollUp: {
        callback: this.getMessageList,
        auto: true,
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        empty: {
          warpId: 'article-template',
          icon: 'http://static2.kaxiuyun.com/kxy/app/noComment.png',
          tip: '还没有收到消息'
        }
      },
      messageList: [],
      articleType: '' // 1：评论 消息模板 2. 点赞 消息模板
    };
  },
  mounted: function mounted() {},
  methods: {
    /**
     * mescroll 组件的初始化方法
     * @param {object} mescroll mescroll 组件实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      if (this._Util.isApp()) {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          mescroll.resetUpScroll(false);
        });
      }
    },
    /**
     * 消息点击埋点
     * @param {string} messageTitle 消息名称
     */
    messageClickPoint: function messageClickPoint(messageTitle) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '消息中心',
          operate_page: _this.$route.query.boxName,
          optionType: '点击',
          param1: messageTitle
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 进入 对应的帖子详情页
     * @param {number} articleId 帖子id
     * @param {number} messageId 消息id
     * @param {number} index 当前消息列表的索引
     * @param {string} text 当前点赞 或 评论 的内容
     */
    goArticleDetail: function goArticleDetail(articleId, messageId, index, text) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.messageClickPoint(text);
            case 1:
              _context.next = 2;
              return _this2.setReadStatus(messageId, index);
            case 2:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'articleDetail' + articleId,
                    url: "".concat(location.origin, "/v2/community/articleDetail?articleId=").concat(articleId)
                  }
                });
              } else {
                _this2.$router.push({
                  name: 'articleDetail',
                  query: {
                    articleId: articleId
                  }
                });
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 标记当前信息为已读 并 移除当前信息
     * @param {number} messageId 消息id
     * @param {number} index 当前消息列表的索引
     * @return {object} 当前方法的Promise对象
     */
    setReadStatus: function setReadStatus(messageId, index) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.MESSAGEBOX.SET_MESSAGE_READ_STATUS, {
          id: messageId
        }, function (data) {
          // 在消息列表中 删除当前消息
          // this.messageList.splice(index, 1);
          resolve();
        }, function () {
          reject();
        }, _this3, true);
      });
    },
    /**
     * 获取 信息列表
     * @param {object} page page.size 每页数量 page.num 页码
     * @param {object} mescroll mescroll 实例对象
     */
    getMessageList: function getMessageList(page, mescroll) {
      var _this4 = this;
      this._Util.post(this._Api.MESSAGEBOX.GET_MESSAGE_LIST, {
        boxId: this.$route.query.boxId,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        var arr = data.messageUserVos;
        if (page.num === 1) {
          _this4.messageList = [];
          _this4.articleType = data.type;
          document.title = _this4.articleType === 1 ? '评论' : '点赞';
        }
        _this4.messageList = _this4.messageList.concat(arr);
        _this4.$nextTick(function () {
          mescroll.endSuccess(arr.length);
        });
      }, function () {
        mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"article-template-wrap"},[_c('mescroll-vue',{ref:"mescroll",staticClass:"scroll-wrap",attrs:{"id":"article-template","up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},_vm._l((_vm.messageList),function(v,i){return _c('div',{key:i,staticClass:"article-template"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(v.createTimeStr)+_vm._s(_vm._Util.isToday(v.createTime) ? '（今天）' : ''))]),_vm._v(" "),_c('div',{staticClass:"card",on:{"click":function($event){return _vm.goArticleDetail(v.articleId, v.id, i, v.title)}}},[_c('img',{attrs:{"src":v.headimgurl,"alt":"头像"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"title"},[_c('span',{staticClass:"limit-name"},[_vm._v(_vm._s(v.userName))]),_vm._v(" "),(v.num>1)?_c('span',[_vm._v("等 "),_c('strong',[_vm._v(_vm._s(v.num)+"人")])]):_vm._e(),_vm._v("\n            "+_vm._s(_vm.articleType===1?'评论':'赞')+"了你的帖子\n          ")]),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v(_vm._s(v.title))])])])])}),0)],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(558);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49ff67bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1157);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3075)
  __webpack_require__(3077)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-49ff67bd"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49ff67bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49ff67bd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notice_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3076);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("74944dac", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".notice-template-wrap[data-v-49ff67bd]{background-color:#f5f5f5}.notice-template-wrap .scroll-wrap[data-v-49ff67bd]{padding-top:.2rem}.notice-template-wrap .scroll-wrap .article-template .time[data-v-49ff67bd]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#666;line-height:1rem;padding-top:.8rem;padding-bottom:.6rem;text-align:center}.notice-template-wrap .scroll-wrap .article-template .card[data-v-49ff67bd]{width:17.55rem;margin:0 auto;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem;overflow:hidden;position:relative}.notice-template-wrap .scroll-wrap .article-template .card>img[data-v-49ff67bd]{position:absolute;width:100%;height:5rem;top:0;left:0}.notice-template-wrap .scroll-wrap .article-template .card .content[data-v-49ff67bd]{padding:5.6rem .8rem .8rem}.notice-template-wrap .scroll-wrap .article-template .card .content .title[data-v-49ff67bd]{font-size:.95rem;font-family:PingFangSC-Medium,PingFangSC;font-weight:500;color:#333;line-height:1.33rem;margin-bottom:.4rem}.notice-template-wrap .scroll-wrap .article-template .card .content .title .dot[data-v-49ff67bd]{display:inline-block;width:.8rem;height:1.33rem;vertical-align:bottom;position:relative}.notice-template-wrap .scroll-wrap .article-template .card .content .title .dot span[data-v-49ff67bd]{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.4rem;height:.4rem;background:#ff3f3f;border-radius:.5rem}.notice-template-wrap .scroll-wrap .article-template .card .content .text[data-v-49ff67bd]{font-size:.8rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#484848;line-height:1.3rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.mescroll[data-v-49ff67bd]{position:fixed;top:0;bottom:0;height:auto}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3078);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("33b8a041", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".notice-template-wrap .mescroll-empty{padding-top:11.05rem!important}.notice-template-wrap .mescroll-empty .empty-icon{width:3rem!important;pointer-events:none}.notice-template-wrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    MescrollVue: _mescroll.default
  },
  data: function data() {
    return {
      mescrollUp: {
        callback: this.getMessageList,
        auto: true,
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        empty: {
          warpId: 'notice-template',
          icon: 'http://static2.kaxiuyun.com/kxy/app/noComment.png',
          tip: '还没有收到消息'
        }
      },
      messageList: []
    };
  },
  created: function created() {
    document.title = this.$route.query.boxName;
  },
  methods: {
    /**
     * mescroll 组件的初始化方法
     * @param {object} mescroll mescroll 组件实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      if (this._Util.isApp()) {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          mescroll.resetUpScroll(false);
        });
      }
    },
    /**
     * 消息点击埋点
     * @param {string} messageTitle 消息名称
     */
    messageClickPoint: function messageClickPoint(messageTitle) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '消息中心',
          operate_page: _this.$route.query.boxName,
          optionType: '点击',
          param1: messageTitle
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 进入 对应的帖子详情页
     * @param {number} url 配置的内容跳转链接
     * @param {number} messageId 消息id
     * @param {number} index 消息在消息列表中的索引
     * @param {string} text 当前消息标题
     */
    goArticleDetail: function goArticleDetail(url, messageId, index, text) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.messageClickPoint(text);
            case 1:
              _context.next = 2;
              return _this2.setReadStatus(messageId, index);
            case 2:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'noticeDetail' + messageId,
                    url: url
                  }
                });
              } else {
                location.href = url;
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 标记当前信息为已读
     * @param {number} messageId 消息id
     * @param {number} index 消息在消息列表中的索引
     * @return {object} 当前方法的Promise对象
     */
    setReadStatus: function setReadStatus(messageId, index) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.MESSAGEBOX.SET_MESSAGE_READ_STATUS, {
          id: messageId
        }, function (data) {
          // 点击之后 手动 移除 通告未读状态
          // this.messageList.forEach((v, i) => {
          //   if (i === index) {
          //     v.readStatus = 1;
          //   }
          // })
          resolve();
        }, function () {
          reject();
        }, _this3, true);
      });
    },
    /**
     * 获取 信息列表
     * @param {object} page page.size 每页数量 page.num 页码
     * @param {object} mescroll mescroll 实例对象
     */
    getMessageList: function getMessageList(page, mescroll) {
      var _this4 = this;
      this._Util.post(this._Api.MESSAGEBOX.GET_MESSAGE_LIST, {
        boxId: this.$route.query.boxId,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        var arr = data.messageUserVos;
        if (page.num === 1) {
          _this4.messageList = [];
        }
        _this4.messageList = _this4.messageList.concat(arr);
        _this4.$nextTick(function () {
          mescroll.endSuccess(arr.length);
        });
      }, function () {
        mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"notice-template-wrap"},[_c('mescroll-vue',{ref:"mescroll",staticClass:"scroll-wrap",attrs:{"id":"notice-template","up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},_vm._l((_vm.messageList),function(v,i){return _c('div',{key:i,staticClass:"article-template"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(v.createTimeStr)+_vm._s(_vm._Util.isToday(v.createTime) ? '（今天）' : ''))]),_vm._v(" "),_c('div',{staticClass:"card",on:{"click":function($event){return _vm.goArticleDetail(v.url, v.id, i, v.title)}}},[_c('img',{attrs:{"src":v.picUrl,"alt":"活动图片"},on:{"click":function($event){$event.preventDefault();}}}),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',{staticClass:"title"},[(v.readStatus===0)?_c('div',{staticClass:"dot"},[_c('span')]):_vm._e(),_vm._v(_vm._s(v.title))]),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v(_vm._s(v.text))])])])])}),0)],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(559);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_13167670_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1158);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3079)
  __webpack_require__(3081)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-13167670"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_13167670_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_13167670_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_helper_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3080);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("160896be", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".helper-template-wrap[data-v-13167670]{background-color:#f5f5f5}.helper-template-wrap .scroll-wrap[data-v-13167670]{padding-top:.2rem}.helper-template-wrap .scroll-wrap .article-template .time[data-v-13167670]{font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#666;line-height:1rem;padding-top:.8rem;padding-bottom:.6rem;text-align:center}.helper-template-wrap .scroll-wrap .article-template .card[data-v-13167670]{width:17.55rem;margin:0 auto;background:#fff;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2);border-radius:.4rem;overflow:hidden;position:relative}.helper-template-wrap .scroll-wrap .article-template .card .content[data-v-13167670]{padding:.6rem .8rem}.helper-template-wrap .scroll-wrap .article-template .card .content .title[data-v-13167670]{font-size:.95rem;font-family:PingFangSC-Medium,PingFangSC;font-weight:500;color:#333;line-height:1.33rem;margin-bottom:.4rem}.helper-template-wrap .scroll-wrap .article-template .card .content .title .dot[data-v-13167670]{display:inline-block;width:.8rem;height:1.33rem;vertical-align:bottom;position:relative}.helper-template-wrap .scroll-wrap .article-template .card .content .title .dot span[data-v-13167670]{position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.4rem;height:.4rem;background:#ff3f3f;border-radius:.5rem}.helper-template-wrap .scroll-wrap .article-template .card .content .text[data-v-13167670]{font-size:.8rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#484848;line-height:1.3rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.helper-template-wrap .scroll-wrap .article-template .card .showDetail[data-v-13167670]{margin-left:.8rem;margin-right:.8rem;padding-top:.5rem;padding-bottom:.5rem;border-top:1px solid #ededed;font-size:.7rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;color:#999;line-height:1rem}.arrow[data-v-13167670]{position:relative}.arrow[data-v-13167670]:after{content:\"\";background-image:url(\"http://static2.kaxiuyun.com/kxy/course/study-arrow.png\");background-repeat:no-repeat;background-size:100%;width:.25rem;height:.4rem;position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.mescroll[data-v-13167670]{position:fixed;top:0;bottom:0;height:auto}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3082);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0f489501", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".helper-template-wrap .mescroll-empty{padding-top:11.05rem!important}.helper-template-wrap .mescroll-empty .empty-icon{width:3rem!important;pointer-events:none}.helper-template-wrap .mescroll-empty .empty-tip{font-family:PingFangSC-Regular!important;font-size:.7rem!important;color:#333!important}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    MescrollVue: _mescroll.default
  },
  data: function data() {
    return {
      mescrollUp: {
        callback: this.getMessageList,
        auto: true,
        htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
        empty: {
          warpId: 'helper-template',
          icon: 'https://static1.kaxiuyun.com/kxy/purchase/20221112194602.jpg',
          tip: '还没有收到消息'
        }
      },
      messageList: []
    };
  },
  created: function created() {
    document.title = this.$route.query.boxName || '消息中心';
  },
  methods: {
    /**
     * mescroll 组件的初始化方法
     * @param {object} mescroll mescroll 组件实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      if (this._Util.isApp()) {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          mescroll.resetUpScroll(false);
        });
      }
    },
    /**
     * 消息点击埋点
     * @param {string} messageTitle 消息名称
     */
    messageClickPoint: function messageClickPoint(messageTitle) {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.collectPageView3(
        // 埋点
        {
          postUrl: _this._Api.POST_COLLECT,
          url: window.location.href,
          moduleType: '消息中心',
          operate_page: _this.$route.query.boxName,
          optionType: '点击',
          param1: messageTitle
        }, _this, function () {
          resolve();
        });
      });
    },
    /**
     * 进入 对应的帖子详情页
     * @param {number} url 配置的内容跳转链接
     * @param {number} messageId 消息id
     * @param {number} index 消息在消息列表中的索引
     * @param {string} text 当前消息标题
     */
    goArticleDetail: function goArticleDetail(url, messageId, index, text) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2.messageClickPoint(text);
            case 1:
              _context.next = 2;
              return _this2.setReadStatus(messageId, index);
            case 2:
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'noticeDetail' + messageId,
                    url: url
                  }
                });
              } else {
                location.href = url;
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 标记当前信息为已读
     * @param {number} messageId 消息id
     * @param {number} index 消息在消息列表中的索引
     * @return {object} 当前方法的Promise对象
     */
    setReadStatus: function setReadStatus(messageId, index) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.MESSAGEBOX.SET_MESSAGE_READ_STATUS, {
          id: messageId
        }, function (data) {
          // 点击之后 手动 移除 通告未读状态
          // this.messageList.forEach((v, i) => {
          //   if (i === index) {
          //     v.readStatus = 1;
          //   }
          // })
          resolve();
        }, function () {
          reject();
        }, _this3, true);
      });
    },
    /**
     * 获取 信息列表
     * @param {object} page page.size 每页数量 page.num 页码
     * @param {object} mescroll mescroll 实例对象
     */
    getMessageList: function getMessageList(page, mescroll) {
      var _this4 = this;
      this._Util.post(this._Api.MESSAGEBOX.GET_MESSAGE_LIST, {
        boxId: this.$route.query.boxId,
        pageSize: page.size,
        pageNum: page.num
      }, function (data) {
        var arr = data.messageUserVos || [];
        if (page.num === 1) {
          _this4.messageList = [];
        }
        _this4.messageList = _this4.messageList.concat(arr);
        _this4.$nextTick(function () {
          mescroll.endSuccess(arr.length);
        });
      }, function () {
        mescroll.endErr();
      }, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"helper-template-wrap"},[_c('mescroll-vue',{ref:"mescroll",staticClass:"scroll-wrap",attrs:{"id":"helper-template","up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},_vm._l((_vm.messageList),function(v,i){return _c('div',{key:i,staticClass:"article-template"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(v.createTimeStr)+_vm._s(_vm._Util.isToday(v.createTime) ? '（今天）' : ''))]),_vm._v(" "),_c('div',{staticClass:"card",on:{"click":function($event){return _vm.goArticleDetail(v.url, v.id, i, v.title)}}},[_c('div',{staticClass:"content"},[_c('div',{staticClass:"title"},[(v.readStatus===0)?_c('div',{staticClass:"dot"},[_c('span')]):_vm._e(),_vm._v(_vm._s(v.title))]),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v(_vm._s(v.text))])]),_vm._v(" "),_c('div',{staticClass:"showDetail arrow"},[_vm._v("\n          查看详情\n        ")])])])}),0)],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(560);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d1530aaa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1159);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3083)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d1530aaa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d1530aaa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3084);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7aefda20", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-msgbox{width:290px}.mint-msgbox .mint-msgbox-message,.mint-msgbox .mint-msgbox-title{font-family:PingFangSC-Regular;font-size:20px;color:#353535;font-weight:400}.mint-msgbox .mint-msgbox-message{font-family:PingFangSC-Regular;font-size:18px;color:#353535;font-weight:400;line-height:28px;text-align:left}.mint-msgbox-btns{height:49px;line-height:49px}.mint-msgbox-btn{font-family:PingFangSC-Regular;font-size:18px;color:#ee4545}.shopIndex .display1{display:inherit;font-size:16px;-webkit-line-clamp:2;overflow:hidden;font-family:PingFangSC-Regular}.shopIndex .comm-list .comm-info{width:60%;font-size:14px}.shopIndex .comm-list .comm-type3 .comm-price{bottom:0;font-family:PingFangSC-Regular}.shopIndex .comm-list>div{height:auto}.shopIndex .comm-list .comm-price{position:absolute;left:3px;margin-top:7px}.shopIndex .comm-list .comm-price span{font-size:18px;font-family:PingFangSC-Regular}.mint-swipe-item img{width:100%;height:100%}.shopIndex .diffTypeBox{width:100%;padding-bottom:5px;border-bottom:8px solid #f2f2f2;padding-top:5px;border-top:5px solid #f2f2f2;overflow:hidden}.shopIndex .flexItem{float:left;width:25%;text-align:center}.shopIndex .flexItem span{display:block}.shopIndex .flexItem img{width:50px;height:50px;border-radius:50%}.shopIndex .searchBox{width:100%;height:45px;background:#ededed;overflow:hidden}.shopIndex .searchContainer{width:95%;height:35px;margin:0 auto;border-radius:5px;background:#fff;position:relative;margin-top:5px}.shopIndex .searchContainer img{width:15px;height:15px;float:left;margin-top:10px;margin-left:10px}.shopIndex .searchContainer input{float:left;width:100%;height:100%;text-align:center}.shopIndex .comm-info{height:auto;position:relative}.shopIndex .goCart{width:65px;height:65px;position:fixed;z-index:999;right:15px;bottom:60px}@media screen and (min-width:790px) and (max-width:810px){.coupon-top{font-size:16px}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _footTab = _interopRequireDefault(__webpack_require__(176));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Swipe: _mintUi.Swipe,
    // eslint-disable-next-line vue/no-unused-components
    SwipeItem: _mintUi.SwipeItem,
    footTab: _footTab.default
  },
  data: function data() {
    return {
      tips: {},
      result: {},
      categoryList: {},
      topicList: {},
      isEmpty: false,
      flexWidth: '',
      userInfoResult: {},
      isApp: !!this._Util.isApp(),
      scrollTop: 0,
      tabShow: true
    };
  },
  watch: {
    scrollTop: function scrollTop(newval, oldval) {
      // document.title = newval+'---'+oldval;
      if (newval > 0) {
        if (newval > oldval) {
          this.tabShow = false;
        } else {
          this.tabShow = true;
        }
      }
    }
  },
  created: function created() {
    // const that = this
    // if(that._Util.isApp() && that._Util.isAppRootWin()) {
    // alert('是app')

    // }
    // MessageBox.alert('卡修宝典商城全新升级！界面更易懂，操作更便捷','商城升级',{
    //   'confirmButtonText' : '前往新版商城',
    //   'closeOnClickModal' : true
    // }).then(action => {

    //   if (that._Util.isApp() && that._Util.isAppRootWin()) {
    //     that._Util.acSendEvent({
    //       name: that._Enums.AC_ENUMS_OPEN_FRM,
    //       extra: {
    //         url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/newIndex'
    //       }
    //     });
    //   } else {
    //     that.$router.push({ name: 'newShopping' });
    //   }
    // });
  },
  mounted: function mounted() {
    var that = this;
    alert();
    that._Util.shoppingHtmlInit();
    that.getTipsText();
    that.getDefaultList();
    that.getUserState();
    if (window.location.href.indexOf('back==1') != -1) {
      that.pushHistory();
      window.addEventListener('popstate', function (e) {
        _weixinJsSdk.default.closeWindow();
      }, false);
    }
    var body = document.getElementsByTagName('body')[0];
    if (sessionStorage.getItem('shopScrollFlag') && sessionStorage.getItem('shopScrollFlag') == 1) {
      that.result = JSON.parse(sessionStorage.getItem('shopList'));
      setTimeout(function () {
        (0, _jquery.default)('body').scrollTop(sessionStorage.getItem('shopScrollTop'));
        sessionStorage.setItem('shopScrollFlag', 0);
        sessionStorage.setItem('shopList', '');
      }, 200);
    } else {
      that.getProductList();
    }
    window.onscroll = function () {
      that.scrollTop = body.scrollTop;
    };
  },
  methods: {
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    pushHistory: function pushHistory() {
      var state = {
        title: 'shopping',
        url: ''
      };
      window.history.pushState(state, state.title, state.url);
    },
    toTopicList: function toTopicList(item) {
      var that = this;
      that._Util.collectPageView({
        version: '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '商城-专题',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK
      }, that);
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/topicDetail?id=' + item.topicId
          }
        });
      } else {
        that.$router.push({
          name: 'topicDetail',
          query: {
            id: item.topicId
          }
        });
      }
    },
    getDefaultList: function getDefaultList() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_PRODUCT_GETCATEGORYLIST, {}, function (data) {
        if (data) {
          that.categoryList = data.categoryList;
          if (data.categoryList.length < data.columnCnt) {
            that.flexWidth = 1 / data.categoryList.length * 100 + '%';
          } else {
            that.flexWidth = 1 / data.columnCnt * 100 + '%';
          }
        }
      }, function () {}, that);
      that._Util.post(that._Api.POST_SHOPPING_PRODUCT_GETTOPICLIST, {}, function (data) {
        if (data) {
          that.topicList = data;
        }
      }, function () {}, that);
    },
    getProductList: function getProductList() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_INDEX_PRODUCT_LIST, {
        type: 1
      }, function (data) {
        if (data) {
          that.result = data;
          if (!data.productList.length) {
            that.isEmpty = true;
          }
        }
      }, function () {}, that);
    },
    toSearch: function toSearch() {
      var that = this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/search'
          }
        });
      } else {
        that.$router.push({
          name: 'shoppingSearch'
        });
      }
    },
    getTipsText: function getTipsText() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_INDEX_TIPS_TEXT, {}, function (data) {
        that.tips = data;
      }, function () {}, that);
    },
    addComb: function addComb(v) {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_CART_ADD, {
        id: v.id,
        buyType: 2,
        num: 1
      }, function (data) {
        that.toCart(that);
      }, function () {}, that);
    },
    toCart: function toCart() {
      var that = this;
      if (that.userInfoResult.userStatus == 0) {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '您尚未认证，请先认证',
          showConfirmButton: true,
          confirmButtonText: '去认证',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.push({
              name: 'personalCertification',
              query: {
                nextPath: window.location.href
              }
            });
          }
        });
        return;
      }
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        api.sendEvent({
          name: 'acOpenFrm',
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/cart'
          }
        });
        //          that._Util.acSendEvent({
        //            name: that._Enums.AC_ENUMS_OPEN_FRM,
        //            extra: {
        //              url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/cart'
        //            }
        //          });
      } else {
        that.$router.push({
          name: 'shoppingCart'
        });
      }
    },
    toDetail: function toDetail(v) {
      var that = this;
      sessionStorage.setItem('shopScrollTop', that.scrollTop);
      sessionStorage.setItem('shopScrollFlag', 1);
      sessionStorage.setItem('shopList', JSON.stringify(that.result));
      that._Util.collectPageView({
        version: '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '商城',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: v.title
      }, that);
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/detail?id=' + v.id
          }
        });
      } else {
        location.href = location.origin + '/v2/shopping/detail?id=' + v.id + '&cell=1';
        //          that.$router.replace({name: 'productDetail', query: {id: v.id}});
      }
    },
    toClassification: function toClassification(item) {
      var that = this;
      that._Util.collectPageView({
        version: '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '商城-分类',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: item.categoryName
      }, that);
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/SpecialDetail?id=' + item.categoryId + '&title=' + item.categoryName
          }
        });
      } else {
        that.$router.push({
          'name': 'specialDetail',
          query: {
            id: item.categoryId,
            title: item.categoryName
          }
        });
      }
    },
    toCouponOrOrder: function toCouponOrOrder(type) {
      var that = this;
      if (type == 'order') {
        if (that._Util.isApp()) {
          var url = '/v2/business/pay/orderList?dis=1';
          that._Util.acSendEvent({
            name: that._Enums.AC_ENUMS_OPEN_FRM,
            extra: {
              url: that._Api.HOSTRESOURCEPATH + url
            }
          });
        } else {
          window.location.href = location.origin + '/v2/business/pay/orderList?dis=1';
        }
      } else {
        if (that._Util.isApp()) {
          var _url = '/v2/member/center/per/coupon';
          that._Util.acSendEvent({
            name: that._Enums.AC_ENUMS_OPEN_FRM,
            extra: {
              url: that._Api.HOSTRESOURCEPATH + _url
            }
          });
        } else {
          window.location.href = location.origin + '/v2/member/center/per/coupon';
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper shopIndex",staticStyle:{"background":"#fff"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isEmpty),expression:"isEmpty"}],staticStyle:{"margin-top":"50px","text-align":"center"}},[_vm._v("\n    暂无商品哦\n  ")]),_vm._v(" "),_c('img',{staticClass:"goCart",attrs:{"src":__webpack_require__(3085)},on:{"click":function($event){return _vm.toCart()}}}),_vm._v(" "),_c('div',{staticClass:"searchBox",on:{"click":function($event){return _vm.toSearch()}}},[_vm._m(0)]),_vm._v(" "),(_vm.topicList.length)?_c('div',{staticStyle:{"width":"95%","height":"20%","margin":"0 auto"}},[_c('mt-swipe',{attrs:{"auto":5000}},_vm._l((_vm.topicList),function(v,i){return _c('mt-swipe-item',{key:i},[_c('img',{attrs:{"src":v.picUrl},on:{"click":function($event){return _vm.toTopicList(v)}}})])}),1)],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"diffTypeBox"},_vm._l((_vm.categoryList),function(v,i){return _c('div',{key:i,staticClass:"flexItem",style:({width: _vm.flexWidth}),attrs:{"id":v.categoryId},on:{"click":function($event){return _vm.toClassification(v)}}},[_c('img',{attrs:{"src":v.picUrl}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.categoryName))])])}),0),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isEmpty),expression:"!isEmpty"}],staticClass:"mall pb-95"},[_c('div',{staticClass:"comm-list"},_vm._l((_vm.result.productList),function(v,index){return _c('div',{key:index,staticClass:"clearfix",class:{
          'comm-type1': (!v.originalPrice && v.type == 1),
          'comm-type2': (v.originalPrice && v.type == 1),
          'comm-type3': (v.type == 2),
        },on:{"click":function($event){v.type != 2 ? _vm.toDetail(v) : _vm.addComb(v)}}},[(v.type != 2)?_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-img"},[_c('img',{attrs:{"src":v.picUrl + '?imageView2/1/w/150/h/150',"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n              "+_vm._s(v.title)+"\n            ")]),_vm._v(" "),(v.discountMsg)?_c('span',{staticClass:"yh-cue"},[_vm._v(_vm._s(v.discountMsg))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"comm-price"},[(_vm.userInfoResult.userStatus != 0)?_c('span',[_c('i',{staticStyle:{"font-size":"14px"}},[_vm._v("￥")]),_vm._v(_vm._s(v.price))]):_vm._e(),_vm._v(" "),(v.preferential && _vm.userInfoResult.userStatus != 0)?_c('span',{staticClass:"original"},[_vm._v("￥"+_vm._s(v.originalPrice))]):_vm._e()])])]):_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n              "+_vm._s((v.discountMsg ? '【' + v.discountMsg + '】' : '') + v.title)+"\n            ")]),_vm._v(" "),_c('div',{staticClass:"comm-price"},[(_vm.userInfoResult.userStatus != 0)?_c('span',[_vm._v("￥"+_vm._s(v.price))]):_vm._e(),_vm._v(" "),(v.originalPrice && _vm.userInfoResult.userStatus != 0)?_c('span',{staticClass:"original"},[_vm._v("￥"+_vm._s(v.originalPrice))]):_vm._e()])])])])}),0)]),_vm._v(" "),_c('footTab',{directives:[{name:"show",rawName:"v-show",value:(_vm.tabShow && !_vm._Util.isApp() && !_vm._Util.isMiniApp()),expression:"tabShow && !_Util.isApp() && !_Util.isMiniApp()"}],attrs:{"active-flag":"shop"}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"searchContainer"},[_c('input',{attrs:{"type":"text","readonly":"","placeholder":"搜索商品"}})])}]
module.exports = __webpack_require__.p + "static/img/gocart.78dc0bb.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(561);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_46e8d43e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1160);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3086)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_46e8d43e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_46e8d43e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_yhqSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3087);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c75d0d20", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".display1{display:inherit;font-size:16px;-webkit-line-clamp:2;overflow:hidden}.comm-list .comm-info{width:60%}.comm-list .comm-type3 .comm-price{bottom:0}.comm-list>div{height:auto;border-bottom:1px solid #e2e2e2}.comm-list .comm-price{position:inherit;margin-top:7px}.mint-swipe-item img{width:100%;height:100%}.diffTypeBox{width:100%;padding-bottom:5px;border-bottom:8px solid #f2f2f2;padding-top:5px;border-top:5px solid #f2f2f2;overflow:hidden}.flexItem{float:left;width:25%;text-align:center}.flexItem span{display:block}.flexItem img{width:50px;height:50px;border-radius:50%}.searchBox{width:100%;height:45px;background:#ededed;overflow:hidden;position:relative}.searchContainer{width:95%;height:33px;margin:0 auto;-webkit-border-radius:3px;boorder-radius:3px;background:#fff;position:relative;margin-top:5px}.searchFlag{width:20px;height:20px;float:left;margin-top:8px;margin-left:10px}.searchContainer input{float:left;width:75%;height:100%;text-align:center}.goHome{width:65px;height:65px;position:fixed;z-index:999;right:25px;bottom:100px}.cart{position:absolute;width:20px;height:20px;right:10px;bottom:10px}.animation1{width:75%;margin-left:10px}.search_btn{position:absolute;width:18%;height:33px;right:5px;top:50%;margin-top:-16.5px;font-size:14px;background:#b71c24;color:#fff;transform:translateX(100px);-ms-transform:translateX(100px);-webkit-transform:translateX(100px);-o-transform:translateX(100px);-moz-transform:translateX(100px);-webkit-transition:all .6s;transition:all .6s;border-radius:3px}.animation{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}.close333{width:20px;height:20px;float:right;margin-right:5px;margin-top:8px}.searchBox .animation2{text-align:left;text-indent:16px}.comm-price span{font-size:18px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import wx from 'weixin-js-sdk'
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      tips: {},
      result: {},
      categoryList: {},
      topicList: {},
      isEmpty: false,
      flexWidth: '',
      userInfoResult: {},
      showSearchBtn: false,
      keyword: '',
      amount: '',
      lastMsg: '',
      msg: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.shoppingHtmlInit();
    that.getProductList();
    that.getUserState();
    //      if(window.location.href.indexOf("back==1")!= -1){
    //        that.pushHistory();
    //        window.addEventListener("popstate", function(e) {
    //          wx.closeWindow();
    //        }, false);
    //      }
  },
  methods: {
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    pushHistory: function pushHistory() {
      var state = {
        title: 'shopping',
        url: ''
      };
      window.history.pushState(state, state.title, state.url);
    },
    getProductList: function getProductList() {
      var that = this;
      if (that.$route.query.money) {
        that.msg = '以下商品满' + that.$route.query.money + '减' + that.$route.query.little;
      } else {
        that.msg = '购买以下商品可减' + that.$route.query.little;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/mall-api/coupon/getCouponMerchandiseList.json', {
        keyword: that.keyword,
        couponId: that.$route.query.id
      }, function (data) {
        if (data) {
          that.result = data;
        }
      }, function () {}, that);
      that._Util.post(that._Api.HOSTOLD + 'api/mall-api/coupon/getCouponAmountSubtotal.json', {
        couponId: that.$route.query.id
      }, function (data) {
        if (data) {
          that.amount = data.amount;
          if (that.$route.query.money - that.amount > 0) {
            that.lastMsg = '还差' + (that.$route.query.money - that.amount).toFixed(2) + '元';
          } else {
            that.lastMsg = '已满足优惠条件，立减' + that.$route.query.little;
          }
        }
      }, function () {}, that);
    },
    addCart: function addCart(v) {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_CART_ADD, {
        id: v.mdseId,
        buyType: 1,
        num: 1
      }, function (data) {
        (0, _mintUi.Toast)('加入购物车成功！');
        that.getProductList();
      }, function () {}, that);
    },
    clearKeyword: function clearKeyword() {
      var that = this;
      that.keyword = '';
      that.getProductList();
    },
    search: function search() {
      this.getProductList();
    },
    toHome: function toHome() {
      var that = this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/newIndex'
          }
        });
      } else {
        that.$router.push({
          name: 'newShopping'
        });
      }
    },
    toCart: function toCart(self) {
      var that = self || this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/newCart'
          }
        });
      } else {
        that.$router.push({
          name: 'newShoppingCart'
        });
      }
    },
    toDetail: function toDetail(v) {
      var that = this;
      that._Util.collectPageView({
        version: '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: that._Util.isApp() ? '首页' : '微信菜单',
        operate_page: '商城',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        title: v.title
      }, that);
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/newDetail?id=' + v.mdseId
          }
        });
      } else {
        location.href = location.origin + '/v2/shopping/newDetail?id=' + v.mdseId;
        //          that.$router.replace({name: 'productDetail', query: {id: v.id}});
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper",staticStyle:{"background":"#fff"}},[_c('img',{staticClass:"goHome",attrs:{"src":__webpack_require__(1448)},on:{"click":function($event){return _vm.toHome()}}}),_vm._v(" "),_c('div',{staticClass:"searchBox"},[_c('div',{staticClass:"searchContainer",class:{'animation1' :_vm.showSearchBtn}},[(!_vm.showSearchBtn)?_c('img',{staticClass:"searchFlag",attrs:{"src":__webpack_require__(272)}}):_vm._e(),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],class:{'animation2' :_vm.showSearchBtn},attrs:{"type":"text","placeholder":"搜索商品"},domProps:{"value":(_vm.keyword)},on:{"~click":function($event){_vm.showSearchBtn = true},"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),(_vm.keyword.length>0)?_c('img',{staticClass:"close333",attrs:{"src":__webpack_require__(3088)},on:{"click":function($event){return _vm.clearKeyword()}}}):_vm._e()]),_vm._v(" "),_c('button',{staticClass:"search_btn",class:{'animation' :_vm.showSearchBtn},on:{"click":function($event){return _vm.search()}}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"14px","color":"#666","background":"#f2f2f2","padding":"7px 5px"}},[_vm._v(_vm._s(_vm.msg))]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isEmpty),expression:"!isEmpty"}],staticClass:"mall pb-95"},[_c('div',{staticClass:"comm-list"},_vm._l((_vm.result.mdseList),function(v,index){return _c('div',{key:index,staticClass:"clearfix",on:{"click":function($event){$event.stopPropagation();return _vm.toDetail(v)}}},[_c('img',{staticClass:"cart",attrs:{"src":__webpack_require__(3089)},on:{"click":function($event){$event.stopPropagation();return _vm.addCart(v)}}}),_vm._v(" "),_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-img"},[_c('img',{attrs:{"src":v.picUrl + '?imageView2/1/w/150/h/150',"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n              "+_vm._s(v.mdseName)+"\n            ")]),_vm._v(" "),_c('div',{staticClass:"comm-price"},[_c('span',[_c('i',{staticStyle:{"font-size":"14px"}},[_vm._v("￥")]),_vm._v(_vm._s(v.price))])])])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"mall-bottom clearfix",staticStyle:{"height":"auto"}},[_c('div',{staticClass:"mall-bottom-left"},[_c('p',{staticStyle:{"font-size":"16px"}},[_vm._v("小计 "),_c('b',{staticClass:"price"},[_vm._v("￥"+_vm._s(_vm.amount))])]),_vm._v(" "),_c('span',{staticStyle:{"font-size":"12px"}},[_vm._v(_vm._s(_vm.lastMsg))])]),_vm._v(" "),_c('div',{staticClass:"mall-bottom-rig",on:{"click":function($event){return _vm.toCart()}}},[_c('a',{staticClass:"go-buy",attrs:{"href":"javascript: void(0);"}},[_vm._v("去结算")])])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/Group6.bbaec7c.png";module.exports = __webpack_require__.p + "static/img/iconSearch.fa13529.png";module.exports = __webpack_require__.p + "static/img/close333.cb78bc6.png";module.exports = __webpack_require__.p + "static/img/cart.46faf1a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(562);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0360b786_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1161);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3090)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0360b786_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0360b786_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_topicDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3091);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2152ca20", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".box{font-size:16px}.box img{width:100%;height:auto}.mask{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none}#imgshow{position:absolute;width:100%;height:auto;top:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _alloyfinger = _interopRequireDefault(__webpack_require__(121));
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: ''
    };
  },
  mounted: function mounted() {
    this.getDetail();
  },
  methods: {
    getDetail: function getDetail() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_PRODUCT_GETTOPICINFO, {
        id: that.$route.query.id
      }, function (data) {
        if (data) {
          document.title = data.topicName;
          that.result = data.content;
          (0, _jquery.default)('body').delegate('img', 'click', function () {
            (0, _jquery.default)('.mask').show();
            (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'scale(0)';
            (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'translateX(0px) translateY(0px)';
            (0, _jquery.default)('#imgshow').attr('src', (0, _jquery.default)(this).attr('src'));
            var maskHi = (0, _jquery.default)('#imgshow').height() / 2;
            (0, _jquery.default)('#imgshow').css('marginTop', -maskHi);
          });
          (0, _jquery.default)('body').delegate('.mask', 'click', function () {
            (0, _jquery.default)('.mask').hide();
          });
          var el = document.getElementById('imgshow');
          var initScale = 1;
          var sc = 1;
          var mox, moy;
          // eslint-disable-next-line no-unused-vars
          var af = new _alloyfinger.default(el, {
            touchStart: function touchStart() {
              mox = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[4]);
              moy = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[5]);
            },
            pressMove: function pressMove(evt) {
              mox += evt.deltaX;
              moy += evt.deltaY;
              el.style.webkitTransform = 'translateX(' + mox + 'px) translateY(' + moy + 'px) scale(' + sc + ')';
              evt.preventDefault();
            },
            pinch: function pinch(evt) {
              sc = initScale * evt.zoom;
              el.style.webkitTransform = 'scale(' + sc + ')';
            },
            multipointStart: function multipointStart() {
              initScale = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[0]);
            }
          });
        }
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"box",staticStyle:{"padding":"0 5px"},domProps:{"innerHTML":_vm._s(_vm.result)}})])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask"},[_c('img',{attrs:{"id":"imgshow"}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(563);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_44018d4b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1162);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3092)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_44018d4b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_44018d4b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shopsearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3093);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1ead244c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "html{font-size:32px!important}.clearHistory{height:35px}.clearHistory button{width:100%;height:100%;text-align:center;color:#fff}.cycSearch *{-webkit-box-sizing:initial;-moz-box-sizing:inherit}.cycSearch .clearHistory button.close{right:70px}.peopleSearch{padding:3px 7px;color:#666;font-size:14px;text-align:center;float:left;margin-left:10px;border:1px solid #8d8d8d;border-radius:2px;-webkit-border-radius:2px;margin-top:5px}.comm-list .comm-type3 .comm-price{bottom:0}.comm-price span{font-size:18px}.comm-list>div{height:auto}.comm-list .comm-price{position:inherit;margin-top:10px}.historyList{padding:3px 7px;color:#000;font-size:14px;text-align:center;background:#e6e6e6;float:left;margin-left:10px;border-radius:5px;margin-top:5px}.cycSearch .searchBox{width:100%;height:45px;background:#ededed;overflow:hidden;position:relative;padding:0;margin:0}.searchContainer{width:95%;height:33px;margin:0 auto;-webkit-border-radius:3px;boorder-radius:3px;background:#fff;position:relative;margin-top:5px}.searchFlag{width:15px;height:15px;float:left;margin-top:10px;margin-left:10px}.searchContainer input{float:left;width:75%;height:100%;text-align:left;padding-left:3px}.animation1{width:75%;margin-left:10px}.search_btn{position:absolute;width:18%;height:33px;right:5px;top:50%;margin-top:-16.5px;font-size:16px;background:#d72d2d;color:#fff;transform:translateX(100px);-ms-transform:translateX(100px);-webkit-transform:translateX(100px);-o-transform:translateX(100px);-moz-transform:translateX(100px);-webkit-transition:all .6s;transition:all .6s;border-radius:3px}.animation{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}@media screen and (min-width:790px) and (max-width:810px){.search_btn{right:10px;transform:translateX(165px);-ms-transform:translateX(165px);-webkit-transform:translateX(165px);-o-transform:translateX(165px);-moz-transform:translateX(165px)}.animation1{width:78%}.animation{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}}.cycSearch{overflow:hidden;position:relative;z-index:300;background:#fff}.cycSearch .clearHistory span{position:absolute;left:10px;top:5px;height:25px;line-height:25px;color:#8f8f8f}.cycSearch>div{margin:10px 3%;border:1px solid #e6e6e6;position:relative}.cycSearch .clearHistory button{background:#ccc;position:absolute;color:#fff;width:50px;height:25px;text-align:center;right:10px;top:5px}.allSearch{background:url(" + escape(__webpack_require__(3094)) + ") 0 0 no-repeat;background-size:12px 17px;padding-left:17px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/fire.de20330.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      showTabList: true,
      cancal: '',
      showPeopleCare: false,
      searchHistory: [],
      keyword: '',
      result: {},
      peopleCare: '',
      peopleCareArr: [],
      showNoSearch: false,
      showSearchBtn: false
    };
  },
  watch: {},
  mounted: function mounted() {
    var that = this;
    that.searchHistory = that._Util.getLocalStorage('searchValue') || [];
    if (!that.getCookie('peopleCare')) {
      that._Util.post(that._Api.POST_SHOPPING_PRODUCT_GETKEYWORDLIST, {
        pageSize: 5
      }, function (data) {
        if (data.length > 0) {
          for (var i = 0; i < data.length; i++) {
            that.peopleCareArr.push(data[i]);
          }
          that.showPeopleCare = true;
          that.peopleCare = that.peopleCareArr.join('-');
          that.setCookie('peopleCare', that.peopleCare, 'd1');
        }
      }, function () {}, that);
    } else {
      that.showPeopleCare = true;
      that.peopleCareArr = that.getCookie('peopleCare').split('-');
    }
  },
  methods: {
    getTabList: function getTabList() {
      document.getElementById('keyword').focus();
      this.result = {};
      this.showPeopleCare = true;
      this.showNoSearch = false;
      if (this.searchHistory.length > 0) {
        this.showTabList = true;
        //          if (!this.keyword) {
        //            this.cancal = '取消'
        //          } else {
        //            this.cancal = ''
        //          }
      }
    },
    searchListValue: function searchListValue(o) {
      var _this = this;
      var that = this;
      that.keyword = o;
      that._Util.post(that._Api.POST_SHOPPING_INDEX_PRODUCT_LIST, {
        keyword: that.keyword
      }, function (data) {
        if (data && data.productList.length > 0) {
          that._Util.collectPageView({
            version: '',
            postUrl: that._Api.POST_COLLECT,
            moduleType: that._Util.isApp() ? '首页' : '微信菜单',
            operate_page: '商城搜索',
            optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            param4: {
              'queryValue': that.keyword
            }
          }, that);
          that.result = data;
          that.showTabList = false;
          that.showPeopleCare = false;
        } else {
          that.result = {};
          that.showTabList = false;
          that.showPeopleCare = false;
          _this.showNoSearch = true;
        }
      }, function () {}, that);
    },
    removeSearchHistory: function removeSearchHistory() {
      var _this2 = this;
      this._Util.showMsgBoxConfirm('是否确定清空历史记录', function (action) {
        if (action) {
          _this2._Util.removeLocalStroageByKey('searchValue');
          _this2.searchHistory = _this2._Util.getLocalStorage('searchValue') || [];
          _this2.showTabList = false;
          _this2.cancal = '';
        }
      });
    },
    search: function search() {
      var that = this;
      //        if (that.cancal == '取消') {
      //          that.showTabList = false;
      //          that.showPeopleCare = false;
      //          that.cancal = '';
      //          return;
      //        }
      if (!that.keyword) {
        that._Util.showMsgBox('搜索内容不能为空');
        return;
      }
      if (that.searchHistory.indexOf(that.keyword) == -1) {
        if (that.searchHistory.length < 4) {
          that.searchHistory.unshift(that.keyword);
          that._Util.setLocalStorage('searchValue', this.searchHistory);
        } else {
          that.searchHistory.pop();
          that.searchHistory.unshift(that.keyword);
          that._Util.setLocalStorage('searchValue', this.searchHistory);
        }
      }
      that.showTabList = false;
      that._Util.post(that._Api.POST_SHOPPING_INDEX_PRODUCT_LIST, {
        keyword: that.keyword
      }, function (data) {
        if (data && data.productList.length > 0) {
          that._Util.collectPageView({
            version: '',
            postUrl: that._Api.POST_COLLECT,
            moduleType: that._Util.isApp() ? '首页' : '微信菜单',
            operate_page: '商城搜索',
            optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
            param4: {
              queryValue: that.keyword
            }
          }, that);
          that.result = data;
          that.showPeopleCare = false;
        } else {
          that.result = {};
          that.showPeopleCare = false;
          that.showNoSearch = true;
        }
      }, function () {}, that);
    },
    toDetail: function toDetail(v) {
      var that = this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/detail?id=' + v.id
          }
        });
      } else {
        that.$router.push({
          name: 'productDetail',
          query: {
            id: v.id
          }
        });
      }
    },
    addComb: function addComb(v) {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_CART_ADD, {
        id: v.id,
        buyType: 2,
        num: 1
      }, function (data) {
        that.toCart(that);
      }, function () {}, that);
    },
    toCart: function toCart(self) {
      var that = self || this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/cart'
          }
        });
      } else {
        that.$router.push({
          name: 'shoppingCart'
        });
      }
    },
    getCookie: function getCookie(name) {
      var arr;
      var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)');
      // eslint-disable-next-line no-cond-assign
      if (arr = document.cookie.match(reg)) {
        return unescape(arr[2]);
      } else {
        return null;
      }
    },
    setCookie: function setCookie(name, value, time) {
      var that = this;
      var strsec = that.getsec(time);
      var exp = new Date();
      exp.setTime(exp.getTime() + strsec * 1);
      document.cookie = name + '=' + escape(value) + ';expires=' + exp.toGMTString();
    },
    getsec: function getsec(str) {
      var str1 = str.substring(1, str.length) * 1;
      var str2 = str.substring(0, 1);
      if (str2 == 's') {
        return str1 * 1000;
      } else if (str2 == 'h') {
        return str1 * 60 * 60 * 1000;
      } else if (str2 == 'd') {
        return str1 * 24 * 60 * 60 * 1000;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"cycSearch"},[_c('div',{staticClass:"searchBox"},[_c('div',{staticClass:"searchContainer",class:{'animation1' :_vm.showSearchBtn}},[(!_vm.showSearchBtn)?_c('img',{staticClass:"searchFlag",attrs:{"src":__webpack_require__(272)}}):_vm._e(),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],class:{'animation2' :_vm.showSearchBtn},attrs:{"type":"text","placeholder":"搜索商品"},domProps:{"value":(_vm.keyword)},on:{"~click":function($event){_vm.showSearchBtn = true},"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}})]),_vm._v(" "),_c('button',{staticClass:"search_btn",class:{'animation' :_vm.showSearchBtn},on:{"click":function($event){return _vm.search()}}},[_vm._v("搜索")])]),_vm._v(" "),(_vm.showPeopleCare)?_c('div',{staticStyle:{"width":"95%","margin":"0 auto","border":"none"}},[_c('div',{staticClass:"allSearch",staticStyle:{"margin-top":"10px"}},[_vm._v("大家都在搜")]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","overflow":"hidden","margin-top":"10px"}},_vm._l((_vm.peopleCareArr),function(v,i){return _c('div',{key:i,staticClass:"peopleSearch",on:{"click":function($event){return _vm.searchListValue(v)}}},[_vm._v(_vm._s(v))])}),0)]):_vm._e(),_vm._v(" "),(_vm.showTabList && _vm.searchHistory.length > 0)?_c('div',{staticClass:"clearHistory",staticStyle:{"border":"none"}},[_c('span',[_vm._v("最近搜索")]),_vm._v(" "),_c('button',{staticStyle:{"background":"white","color":"#788FF9"},on:{"click":function($event){return _vm.removeSearchHistory()}}},[_vm._v("清空")])]):_vm._e(),_vm._v(" "),(_vm.showTabList)?_c('div',{staticClass:"searchTabList",staticStyle:{"border":"none"}},[_c('div',[_c('ul',_vm._l((_vm.searchHistory),function(o,i){return (_vm.searchHistory.length > 0)?_c('li',{key:i,staticClass:"historyList",on:{"click":function($event){return _vm.searchListValue(o)}}},[_c('p',[_c('span',[_vm._v(_vm._s(o))])])]):_vm._e()}),0)])]):_vm._e()]),_vm._v(" "),(_vm.showNoSearch)?_c('div',{staticStyle:{"text-align":"center","margin-top":"15px","color":"#ccc"}},[_vm._v("暂无合适的搜索结果")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"comm-list",staticStyle:{"margin-top":"7px"}},_vm._l((_vm.result.productList),function(v,index){return _c('div',{key:index,staticClass:"clearfix",class:{
        'comm-type1': (!v.originalPrice && v.type == 1),
        'comm-type2': (v.originalPrice && v.type == 1),
        'comm-type3': (v.type == 2),
      },on:{"click":function($event){v.type != 2 ? _vm.toDetail(v) : _vm.addComb(v)}}},[(v.type != 2)?_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-img"},[_c('img',{attrs:{"src":v.picUrl + '?imageView2/1/w/150/h/150',"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n            "+_vm._s(v.title)+"\n          ")]),_vm._v(" "),(v.discountMsg)?_c('span',{staticClass:"yh-cue"},[_vm._v(_vm._s(v.discountMsg))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"comm-price"},[_c('span',[_c('i',{staticStyle:{"font-size":"14px"}},[_vm._v("￥")]),_vm._v(_vm._s(v.price))]),_vm._v(" "),(v.preferential)?_c('span',{staticClass:"original"},[_vm._v("￥"+_vm._s(v.originalPrice))]):_vm._e()])])]):_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n            "+_vm._s((v.discountMsg ? '【' + v.discountMsg + '】' : '') + v.title)+"\n          ")]),_vm._v(" "),_c('div',{staticClass:"comm-price"},[_c('span',[_vm._v("￥"+_vm._s(v.price))]),_vm._v(" "),(v.originalPrice)?_c('span',{staticClass:"original"},[_vm._v("￥"+_vm._s(v.originalPrice))]):_vm._e()])])])])}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(564);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_580690a0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1163);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3095)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_580690a0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_580690a0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_SpecialDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3096);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6030fb70", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".display1{overflow:inherit;display:inherit}.comm-list .comm-type3 .comm-price{bottom:0}.comm-list>div{height:auto}.comm-list .comm-price{position:inherit;margin-top:10px}.searchBox{width:100%;height:45px;background:#ededed;overflow:hidden}.searchContainer{width:95%;height:35px;margin:0 auto;-webkit-border-radius:5px;boorder-radius:5px;background:#fff;position:relative;margin-top:5px}.searchContainer img{width:15px;height:15px;float:left;margin-top:10px;margin-left:10px}.searchContainer input{float:left;width:80%;height:100%;text-align:center}@media screen and (min-width:790px) and (max-width:810px){.mall-bottom-left{font-size:16px;width:-webkit-calc(100% - 200px);width:calc(100% - 200px);padding:0 10px 10px 20px}.mall-bottom-left .price{font-size:16px}.mall-bottom-rig a{width:200px;height:100%;line-height:48px;text-align:center}}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      tips: {},
      result: {},
      isEmpty: false,
      userInfoResult: {}
    };
  },
  mounted: function mounted() {
    var that = this;
    document.title = that.$route.query.title;
    that._Util.shoppingHtmlInit();
    that.getProductList();
    that.getTipsText();
    that.getUserState();
  },
  methods: {
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    getProductList: function getProductList() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_INDEX_PRODUCT_LIST, {
        categoryId: that.$route.query.id || ''
      }, function (data) {
        if (data) {
          that.result = data;
          if (!data.productList.length) {
            that.isEmpty = true;
          }
        }
      }, function () {}, that);
    },
    toSearch: function toSearch() {
      this.$router.push({
        name: 'shoppingSearch'
      });
    },
    getTipsText: function getTipsText() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_INDEX_TIPS_TEXT, {}, function (data) {
        that.tips = data;
      }, function () {}, that);
    },
    addComb: function addComb(v) {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_CART_ADD, {
        id: v.id,
        buyType: 2,
        num: 1
      }, function (data) {
        that.toCart(that);
      }, function () {}, that);
    },
    toCart: function toCart(self) {
      var that = self || this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/cart'
          }
        });
      } else {
        that.$router.push({
          name: 'shoppingCart'
        });
      }
    },
    toDetail: function toDetail(v) {
      var that = this;
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/shopping/detail?id=' + v.id
          }
        });
      } else {
        location.href = location.origin + '/v2/shopping/detail?id=' + v.id;
        //          that.$router.push({name: 'productDetail', query: {id: v.id}});
      }
    },
    toCouponOrOrder: function toCouponOrOrder(type) {
      var that = this;
      if (that._Util.isApp()) {
        var url = '';
        switch (type) {
          case 'order':
            url = '/v2/business/pay/orderList';
            break;
          case 'coupon':
            url = '/v2/member/center/per/coupon';
            break;
        }
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + url
          }
        });
      } else {
        switch (type) {
          case 'order':
            window.location.href = that._Api.HOSTRESOURCEPATH + '/v2/business/pay/orderList';
            break;
          case 'coupon':
            this.$router.push({
              name: 'memberCoupon'
            });
            break;
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper",staticStyle:{"background":"#fff"}},[_c('div',{staticClass:"searchBox",on:{"click":function($event){return _vm.toSearch()}}},[_vm._m(0)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isEmpty),expression:"!isEmpty"}],staticClass:"mall pb-95"},[_c('div',{staticClass:"comm-list"},_vm._l((_vm.result.productList),function(v,index){return _c('div',{key:index,staticClass:"clearfix",class:{
          'comm-type1': (!v.originalPrice && v.type == 1),
          'comm-type2': (v.originalPrice && v.type == 1),
          'comm-type3': (v.type == 2),
        },on:{"click":function($event){v.type != 2 ? _vm.toDetail(v) : _vm.addComb(v)}}},[(v.type != 2)?_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-img"},[_c('img',{attrs:{"src":v.picUrl + '?imageView2/1/w/150/h/150',"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n              "+_vm._s(v.title)+"\n            ")]),_vm._v(" "),(v.discountMsg)?_c('span',{staticClass:"yh-cue"},[_vm._v(_vm._s(v.discountMsg))]):_vm._e(),_vm._v(" "),(_vm.userInfoResult.userStatus != 0)?_c('div',{staticClass:"comm-price"},[_c('span',[_vm._v("￥"+_vm._s(v.price))]),_vm._v(" "),(v.preferential)?_c('span',{staticClass:"original"},[_vm._v("￥"+_vm._s(v.originalPrice))]):_vm._e()]):_vm._e()])]):_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n              "+_vm._s((v.discountMsg ? '【' + v.discountMsg + '】' : '') + v.title)+"\n            ")]),_vm._v(" "),(_vm.userInfoResult.userStatus != 0)?_c('div',{staticClass:"comm-price"},[_c('span',[_vm._v("￥"+_vm._s(v.price))]),_vm._v(" "),(v.originalPrice)?_c('span',{staticClass:"original"},[_vm._v("￥"+_vm._s(v.originalPrice))]):_vm._e()]):_vm._e()])])])}),0)]),_vm._v(" "),(_vm.result.totalNum)?_c('div',{staticClass:"mall-bottom clearfix"},[_c('div',{staticClass:"mall-bottom-left"},[_c('p',[_vm._v("合计 "),_c('b',{staticClass:"price"},[_vm._v("￥"+_vm._s(_vm.result.totalAmount))])]),_vm._v(" "),_c('span',[_vm._v("已节省 ￥"+_vm._s(_vm.result.reduceAmount))])]),_vm._v(" "),_c('div',{staticClass:"mall-bottom-rig",on:{"click":function($event){return _vm.toCart()}}},[_c('a',{staticClass:"go-buy",attrs:{"href":"javascript: void(0);"}},[_vm._v("去结算（"+_vm._s(_vm.result.totalNum)+"）")])])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"searchContainer"},[_c('img',{attrs:{"src":__webpack_require__(272)}}),_vm._v(" "),_c('input',{attrs:{"type":"text","readonly":"","placeholder":"搜商品"}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(565);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_573ea188_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1164);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3097)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_573ea188_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_573ea188_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_proDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3098);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f312da20", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".proDetail #moveBox img{max-width:100%}.proDetail #moveBox{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg)}.proDetail .comm-details .banner{height:6.94rem}.proDetail .comm-details .pagination{position:absolute;z-index:20;bottom:.28rem;width:100%;text-align:right;padding-right:.55rem}.proDetail .comm-details .swiper-pagination-bullet{width:.16rem;height:.16rem;opacity:1;background:rgba(0,0,0,.3)}.proDetail .comm-details .swiper-pagination-bullet-active{background:#b81c25}.proDetail .comm-details .banner img{width:100%}.proDetail .mask{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none}.proDetail video{z-index:1;object-fit:fill}.proDetail #imgshow{position:absolute;width:100%;height:auto;top:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}.proDetail .halfWidth{width:65%}.proDetail .phoneCall{height:1.25rem;line-height:1.25rem;width:35%;display:inline-block;float:left;font-size:.47rem;text-align:center;color:#b81c25;background:url(" + escape(__webpack_require__(1675)) + ") 0 0 no-repeat #f4f4f4;background-size:15px 15px;background-position:12px;position:relative}.proDetail .gowucar{float:left;width:49%;height:100%;border-left:1px solid #ccc}.proDetail .gowucar1{width:100%;border-left:none}.proDetail .goCart{width:65px;height:65px;position:fixed;z-index:99;right:15px;bottom:60px;background:url(" + escape(__webpack_require__(1448)) + ") 0 0 no-repeat;background-size:65px 65px}.proDetail .gouwuchePic{background:url(" + escape(__webpack_require__(3099)) + ") 0 0 no-repeat;background-size:20px 20px}.proDetail .gouwuchePic,.proDetail .gouwuchePic1{width:20px;height:20px;margin-top:5px;margin-bottom:-3px}.proDetail .gouwuchePic1{background:url(" + escape(__webpack_require__(1675)) + ") 0 0 no-repeat;background-size:20px 20px}.proDetail .sm{width:100%;height:100%;background:rgba(0,0,0,.3);position:fixed;z-index:1000}.proDetail .smBox{width:100%;height:350px;background:#fff;position:absolute;bottom:0}.proDetail .goodPic{width:90px;height:90px;box-shadow:0 -2px 6px 0 rgba(79,79,79,.6);-webkit-box-shadow:0 -2px 6px 0 rgba(79,79,79,.6);display:inline-block;margin-top:-25px;margin-left:15px;border-radius:3px;-webkit-border-radius:3px}.proDetail .xinggao{background:#f0f0f0;border-radius:2px;-webkit-border-radius:2px;font-size:14px;padding:5px 8px;margin-left:15px;margin-top:15px;color:#333;border:1px solid #f0f0f0}.proDetail .ac{color:#e03030;border:1px solid #e03030}.proDetail .confirmAdd{font-size:18px;color:#fff;text-align:center;position:absolute;width:100%;background:#e03030;padding:10px 0;bottom:0}.proDetail .close{width:15px;height:15px;background:url(" + escape(__webpack_require__(104)) + ") 0 0 no-repeat;background-size:15px 15px;float:right;margin-top:10px;margin-right:10px}.proDetail .dinfo{padding-left:.3rem;padding-right:.3rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/phoneCall.4ab70e6.png";module.exports = __webpack_require__.p + "static/img/gouwuCar.1ad28df.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _alloyfinger = _interopRequireDefault(__webpack_require__(121));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: {},
      localUrl: location.origin + "/v2/shopping/detail?id=" + this.$route.query.id,
      userInfoResult: {},
      showFlg: false,
      list: [],
      txt: '加入购物车'
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.shoppingHtmlInit();
    that.getDetail();
    that.share();
    that.getUserState();
    if (that._Util.isIOS) {
      if (window.location.href.indexOf('cell') != -1) {
        that.pushHistory();
        window.addEventListener('popstate', function (e) {
          // popstate监听返回按钮
          window.location.href = location.origin + '/v2/shopping/index?back=1';
        }, false);
        that.pushHistory();
      }
    }
    //      if(that._Util.isIOS){
    //        if(window.location.href.indexOf("cell")!= -1){
    //          that.pushHistory();
    //          window.addEventListener("popstate", function(e) {  //popstate监听返回按钮
    //            if(location.href.indexOf("cell") != -1){
    //              window.location.href = location.origin + '/v2/shopping/index?back=1'
    //            }
    //            that.pushHistory();
    //          }, false);
    //        }
    //      }
  },
  methods: {
    goLinkV4Mall: function goLinkV4Mall() {
      if (this._Util.isMPaaS()) {
        my.switchTab({
          // eslint-disable-line
          url: '/pages/mall/mall'
        });
      } else {
        window.location.href = location.origin + '/v4/pages/mall/mall';
      }
    },
    pushHistory: function pushHistory() {
      var state = {
        title: 'shoppingIndex',
        url: ''
      };
      window.history.pushState(state, state.title, state.url);
    },
    closeMaxk: function closeMaxk() {
      var that = this;
      that.showFlg = false;
      var _iterator = _createForOfIteratorHelper(that.list),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          v.checked = false;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      that.txt = '选择型号';
    },
    togowucar: function togowucar() {
      var that = this;
      if (that.userInfoResult.userStatus == 0) {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '您尚未认证，请先认证',
          showConfirmButton: true,
          confirmButtonText: '去认证',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.push({
              name: 'personalCertification',
              query: {
                nextPath: window.location.href
              }
            });
          }
        });
        return;
      }
      if (that._Util.isApp() && that._Util.isAppRootWin()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: location.origin + '/v2/shopping/cart'
          }
        });
      } else {
        that.$router.push({
          name: 'shoppingCart'
        });
      }
    },
    changeCheck: function changeCheck(item) {
      var _iterator2 = _createForOfIteratorHelper(this.list),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          v.checked = false;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      item.checked = !item.checked;
      this.txt = '加入购物车';
    },
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    // pushHistory() {
    //   const state = {
    //     title: 'shopping',
    //     url: ''
    //   }
    //   window.history.pushState(state, state.title, state.url)
    // },
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that.localUrl
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = {
            title: that.result.mdseName,
            desc: '',
            link: that.localUrl,
            imgUrl: that.result.picUrl,
            success: function success() {},
            cancel: function cancel() {}
          };
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
        });
      }, function () {}, that, true);
    },
    getDetail: function getDetail() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_PRODUCT_DETAIL, {
        id: that.$route.query.id
      }, function (data) {
        if (data) {
          that.result = data;
          if (that.result.saleType == 2) {
            that.txt = '选择型号';
            that._Util.post(that._Api.HOSTOLD + '/api/mall-api/product/queryPartsList.json', {
              id: that.$route.query.id
            }, function (data) {
              var _iterator3 = _createForOfIteratorHelper(data.partsList),
                _step3;
              try {
                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                  var v = _step3.value;
                  v.checked = false;
                }
              } catch (err) {
                _iterator3.e(err);
              } finally {
                _iterator3.f();
              }
              that.list = data.partsList;
            }, function () {}, that);
          }
          (0, _jquery.default)('body').click(function () {
            (0, _jquery.default)('video').attr('x5-video-player-type', 'h5');
          });
          (0, _jquery.default)('body').delegate('img', 'click', function () {
            (0, _jquery.default)('.mask').show();
            (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'scale(0)';
            (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'translateX(0px) translateY(0px)';
            (0, _jquery.default)('#imgshow').attr('src', (0, _jquery.default)(this).attr('src'));
            var maskHi = (0, _jquery.default)('#imgshow').height() / 2;
            (0, _jquery.default)('#imgshow').css('marginTop', -maskHi);
          });
          (0, _jquery.default)('body').delegate('.mask', 'click', function () {
            (0, _jquery.default)('.mask').hide();
          });
          var el = document.getElementById('imgshow');
          var initScale = 1;
          var sc = 1;
          var mox, moy;
          // eslint-disable-next-line no-unused-vars
          var af = new _alloyfinger.default(el, {
            touchStart: function touchStart() {
              mox = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[4]);
              moy = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[5]);
            },
            pressMove: function pressMove(evt) {
              mox += evt.deltaX;
              moy += evt.deltaY;
              el.style.webkitTransform = 'translateX(' + mox + 'px) translateY(' + moy + 'px) scale(' + sc + ')';
              evt.preventDefault();
            },
            pinch: function pinch(evt) {
              sc = initScale * evt.zoom;
              el.style.webkitTransform = 'scale(' + sc + ')';
              //                if(sc< 0.5){
              //                  el.style.webkitTransform = 'scale(0.5)'
              //                } else{
              //                  el.style.webkitTransform = 'scale('+ sc +')'
              //                }
            },
            multipointStart: function multipointStart() {
              initScale = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[0]);
            }
          });

          //            document.addEventListener("DOMContentLoaded", function(event) {
          //              ImagesZoom.init({
          //                "elem": ".view"
          //              });
          //            }, false);
        }
      }, function () {}, that);
    },
    confirmAdd: function confirmAdd() {
      var that = this;
      var flag = false;
      if (that.txt != '加入购物车') {
        return;
      }
      var _iterator4 = _createForOfIteratorHelper(that.list),
        _step4;
      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var v = _step4.value;
          if (v.checked) {
            flag = true;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }
      if (!flag && !that.showFlg) {
        _mintUi.MessageBox.alert('请选择商品型号！');
        return;
      }
      var _iterator5 = _createForOfIteratorHelper(that.list),
        _step5;
      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _v = _step5.value;
          if (_v.checked) {
            that._Util.post(that._Api.POST_SHOPPING_CART_ADD, {
              id: _v.mdseId,
              buyType: 1,
              num: 1
            }, function (data) {
              (0, _mintUi.Toast)('加入购物车成功！');
              that.txt = '选择型号';
              var _iterator6 = _createForOfIteratorHelper(that.list),
                _step6;
              try {
                for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
                  var _v2 = _step6.value;
                  _v2.checked = false;
                }
              } catch (err) {
                _iterator6.e(err);
              } finally {
                _iterator6.f();
              }
              that.showFlg = false;
            }, function () {}, that);
          }
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }
    },
    addCart: function addCart() {
      var that = this;
      if (that.result.quickPay) {
        if (that.userInfoResult.userStatus == 0) {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '您尚未认证，请先认证',
            confirmButtonText: '去认证',
            showCancelButton: true,
            cancelButtonText: '取消'
          }).then(function (action) {
            if (action === 'confirm') {
              that.$router.replace({
                name: 'personalCertification',
                query: {
                  nextPath: window.location.href
                }
              });
            }
          });
          return;
        }
        that._Util.post(that._Api.POST_SHOPPING_ORDER_QUICKPAY, {
          id: that.$route.query.id
        }, function (data) {
          that._Util.wxPay(data.jsApiParameters, function () {});
        }, function () {}, that);
      } else {
        if (that.userInfoResult.userStatus == 0) {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '您尚未认证，请先认证',
            confirmButtonText: '去认证',
            showCancelButton: true,
            cancelButtonText: '取消'
          }).then(function (action) {
            if (action === 'confirm') {
              that.$router.replace({
                name: 'personalCertification',
                query: {
                  nextPath: window.location.href
                }
              });
            }
          });
          return;
        }
        if (that.result.saleType == 2) {
          that.showFlg = true;
          that.confirmAdd();
        } else {
          that._Util.post(that._Api.POST_SHOPPING_CART_ADD, {
            id: that.$route.query.id,
            buyType: 1,
            num: 1
          }, function (data) {
            (0, _mintUi.Toast)('加入购物车成功！');
          }, function () {}, that);
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"proDetail"},[(!_vm.result.quickPay)?_c('div',{staticClass:"goCart",on:{"click":_vm.goLinkV4Mall}}):_vm._e(),_vm._v(" "),(_vm.showFlg)?_c('div',{staticClass:"sm"},[_c('div',{staticClass:"smBox"},[_c('div',{staticClass:"close",on:{"click":function($event){return _vm.closeMaxk()}}}),_vm._v(" "),_vm._l((_vm.list),function(v,i){return (v.checked)?_c('div',{key:i,staticStyle:{"height":"60px","width":"100%"}},[_c('img',{staticClass:"goodPic",attrs:{"src":v.picUrl}}),_vm._v(" "),_c('span',{staticStyle:{"color":"#E03030","font-size":"18px","margin-left":"7px","margin-top":"35px"}},[_vm._v("￥"+_vm._s(v.price))])]):_vm._e()}),_vm._v(" "),_c('div',{staticStyle:{"font-size":"16px","color":"#666","padding-left":"10px","margin-top":"15px"}},[_vm._v("选择型号")]),_vm._v(" "),_c('div',{staticStyle:{"padding":"10px 0 10px 0","max-height":"190px","overflow-y":"scroll"}},_vm._l((_vm.list),function(v,i){return _c('span',{key:i,staticClass:"xinggao",class:{'ac':v.checked},on:{"click":function($event){return _vm.changeCheck(v)}}},[_vm._v(_vm._s(v.mdseName))])}),0)],2),_vm._v(" "),_c('div',{staticClass:"confirmAdd",on:{"click":function($event){return _vm.confirmAdd()}}},[_vm._v("加入购物车")])]):_vm._e(),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"comm-details pb-80"},[_c('div',{staticClass:"swiper-container banner"},[_c('div',{staticClass:"swiper-wrapper",staticStyle:{"height":"100%"}},[_c('div',{staticClass:"swiper-slide",staticStyle:{"height":"100%"}},[_c('img',{staticClass:"swiper-image view",staticStyle:{"height":"100%"},attrs:{"src":_vm.result.picUrl,"alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"pagination"})]),_vm._v(" "),_c('div',{staticClass:"border-b1 p20"},[_c('div',{staticClass:"comm-d-name",domProps:{"innerHTML":_vm._s(_vm.result.mdseName)}}),_vm._v(" "),(_vm.result.mdseType == 17)?_c('div',{class:{'comm-d-name': !_vm.result.mdseName}},[_vm._v("\n        "+_vm._s(_vm.result.htBrand + _vm.result.htFactoryNo)+"\n\n      ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"comm-d-p1 m-tb-20 clearfix"},[(_vm.result.saleType == 2 && _vm.userInfoResult.userStatus != 0)?_c('span',{staticClass:"comm-d-price",staticStyle:{"font-size":"18px","color":"#E23030"}},[_vm._v("￥ "+_vm._s(_vm.result.maxPrice))]):(_vm.result.saleType != 2 && _vm.userInfoResult.userStatus != 0)?_c('span',{staticClass:"comm-d-price",staticStyle:{"font-size":"18px","color":"#E23030"},domProps:{"innerHTML":_vm._s('￥' + (_vm.result.price))}}):_vm._e(),_vm._v(" "),(_vm.result.saleType != 2 && _vm.result.preferential)?_c('span',{staticClass:"original",staticStyle:{"text-decoration":"line-through","color":"#969696"}},[_vm._v("￥"+_vm._s(_vm.result.originalPrice))]):_vm._e()])]),_vm._v(" "),(_vm.result.mdseType == 17)?_c('div',{staticClass:"dinfo"},[(_vm.result.specifications)?_c('div',[_vm._v("商品规格："+_vm._s(_vm.result.specifications))]):_vm._e(),_vm._v(" "),(_vm.result.htApplyModel)?_c('div',[_vm._v("适用范围："+_vm._s(_vm.result.htApplyModel))]):_vm._e(),_vm._v(" "),(_vm.result.htSalesPolicy)?_c('div',[_vm._v("售后政策："+_vm._s(_vm.result.htSalesPolicy))]):_vm._e(),_vm._v(" "),(_vm.result.htPackNum)?_c('div',[_vm._v("包装数："+_vm._s(_vm.result.htPackNum))]):_vm._e(),_vm._v(" "),(_vm.result.htIncasementNum)?_c('div',[_vm._v("装箱数："+_vm._s(_vm.result.htIncasementNum))]):_vm._e(),_vm._v(" "),(_vm.result.htProductNo)?_c('div',[_vm._v("产品编码："+_vm._s(_vm.result.htProductNo))]):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"padding":"0.3rem"},attrs:{"id":"moveBox"},domProps:{"innerHTML":_vm._s(_vm.result.summary)}})]),_vm._v(" "),_c('div',{staticClass:"comm-details-btm",staticStyle:{"z-index":"10000 !important"}},[(_vm.result.quickPay)?_c('button',{staticClass:"buy",staticStyle:{"z-index":"99999 !important","display":"inline-block","float":"left"},attrs:{"disabled":!_vm.result.mdseId},on:{"click":function($event){return _vm.addCart(_vm.result)}}},[_vm._v("立即付款\n    ")]):_vm._e(),_vm._v(" "),(!_vm.result.quickPay)?_c('div',{staticStyle:{"height":"45px","background":"#f2f2f2"}},[_c('div',{staticStyle:{"width":"50%","float":"left","height":"100%"}},[(_vm.result.hotline)?_c('div',{staticStyle:{"float":"left","width":"50%","height":"100%"}},[_c('a',{staticStyle:{"display":"block","width":"100%","height":"100%","font-size":"12px","text-align":"center"},attrs:{"href":'tel:' + _vm.result.hotline}},[_c('span',{staticClass:"gouwuchePic1"}),_vm._v(" "),_c('br'),_vm._v("\n            电话咨询")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gowucar",class:{'gowucar1':!_vm.result.hotline},on:{"click":function($event){return _vm.togowucar()}}},[_vm._m(1)])]),_vm._v(" "),_c('div',{staticStyle:{"width":"50%","height":"100%","line-height":"45px","background":"#E23030","float":"left","color":"white","text-align":"center","font-size":"18px"},on:{"click":function($event){return _vm.addCart()}}},[_vm._v(_vm._s(_vm.txt))])]):_vm._e()])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask"},[_c('img',{attrs:{"id":"imgshow"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%","height":"100%","font-size":"12px","text-align":"center"}},[_c('span',{staticClass:"gouwuchePic"}),_vm._v(" "),_c('br'),_vm._v("\n            购物车")])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(566);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a83eb89_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1165);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3100)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a83eb89_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a83eb89_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notfound_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3101);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f50ea1c4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%","height":"100%","background":"#f2f2f2","overflow":"hidden"}},[_c('div',{staticStyle:{"width":"100%"}},[_c('img',{staticStyle:{"width":"50%","display":"block","margin":"100px auto 0 auto"},attrs:{"src":__webpack_require__(3102)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","text-align":"center","font-size":"16px","color":"#666","margin-top":"15px"}},[_vm._v("不好意思，您访问的页面找不到了...")])])])}]
module.exports = __webpack_require__.p + "static/img/notfound.2771a5d.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(567);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25c7fc97_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1166);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3103)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-25c7fc97"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25c7fc97_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_25c7fc97_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_cart_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3104);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2105eeea", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".shopcart .comm-price[data-v-25c7fc97]{font-weight:100;bottom:20px}.shopcart-cue[data-v-25c7fc97]{font-size:.38rem;color:#969696;background:#fff}.shopcart-cue[data-v-25c7fc97]:before{content:\"\";display:inline-block;width:.38rem;height:.38rem;background:url(" + escape(__webpack_require__(3105)) + ") no-repeat 100%/cover;margin-right:.2rem}.buy-more[data-v-25c7fc97]{white-space:nowrap;display:block;width:230px;height:43px;line-height:43px;text-align:center;font-size:16px;border:1px solid #e23030;border-radius:3px;-webkit-border-radius:3px;color:#e23030;margin-left:auto;margin-right:auto;margin-top:33px}.shopcart-dialog[data-v-25c7fc97]{position:fixed;width:100%;background:#fff;color:#666;z-index:2;bottom:45px;box-shadow:0 -4px 12px 0 hsla(0,0%,72%,.45)}.shopcart-dialog>div[data-v-25c7fc97]{padding:7px}.r1[data-v-25c7fc97]:after{background:none;position:absolute;width:0;height:0}.mask[data-v-25c7fc97]{width:100%;height:100%;position:fixed;z-index:100;background:rgba(0,0,0,.4)}.conBox[data-v-25c7fc97]{width:100%;height:400px;background:#fff;position:absolute;bottom:0}.close[data-v-25c7fc97]{width:15px;height:15px;background:url(" + escape(__webpack_require__(104)) + ") 0 0 no-repeat;background-size:15px 15px;position:absolute;top:50%;margin-top:-8px;right:16px}.couponCash[data-v-25c7fc97]{margin-top:10px;height:100px}.couponCash .couponB[data-v-25c7fc97]{height:100%}.couponB[data-v-25c7fc97]{margin:10px 10px 0;position:relative}.touse[data-v-25c7fc97]{border:1px solid #e23030;color:#e23030;font-size:12px;position:absolute;right:5px;bottom:5px;border-radius:3px;-webkit-border-radius:3px;padding:2px;z-index:10}.filterImg[data-v-25c7fc97]{position:absolute;right:0;top:0;width:40px;height:40px;z-index:10}.bgImg[data-v-25c7fc97]{width:100%;height:100px;position:absolute;left:0;top:0}.couponB>div[data-v-25c7fc97]{position:relative}.couponBleft[data-v-25c7fc97]{width:33%;height:100px;float:left}.leftTitle1[data-v-25c7fc97],.leftTitle[data-v-25c7fc97]{font-size:18px;text-align:center;color:#fff;width:100%}.leftTitle1[data-v-25c7fc97]{margin-top:22px}.couponB .couponBright[data-v-25c7fc97]{width:65%;float:right;height:100%}.title[data-v-25c7fc97]{font-size:16px;width:95%;margin:0 auto;margin-top:10px;height:50px;overflow:hidden}.time[data-v-25c7fc97]{position:absolute;bottom:5px;font-size:12px}.noUse[data-v-25c7fc97]{width:100%;overflow:hidden;padding:10px 0}.noUse>div[data-v-25c7fc97]{float:left;width:18%;height:1px;margin-top:10px}.noUse>span[data-v-25c7fc97]{width:64%;text-align:center;font-size:14px;color:#666;float:left}.noUse div a[data-v-25c7fc97]{width:70%;float:right;height:1px;background:#979797}.noUse div:nth-of-type(2) a[data-v-25c7fc97]{float:left}.ae[data-v-25c7fc97]{color:#e23030}.st[data-v-25c7fc97]{color:#999}@media screen and (min-width:790px) and (max-width:810px){.coupon-top[data-v-25c7fc97]{font-size:16px}.number[data-v-25c7fc97]{width:95px;height:26px;line-height:26px}}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/icon-cue.8626769.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: {},
      thisheight: 0,
      showFlg: false,
      cashCoupon: [],
      couponId: '',
      tip: '未选择',
      count: 0,
      flag: false,
      reCount: 0,
      userInfoResult: {}
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.shoppingHtmlInit();
    that.getUserState();
    that.getProductList();
  },
  methods: {
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    dealTime: function dealTime(timeSpan, format) {
      if (!timeSpan) return;
      var date = new Date(timeSpan);
      var o = {
        'M+': date.getMonth() + 1,
        // month
        'd+': date.getDate(),
        // day
        'h+': date.getHours(),
        // hour
        'm+': date.getMinutes(),
        // minute
        's+': date.getSeconds(),
        // second
        'q+': Math.floor((date.getMonth() + 3) / 3),
        // quarter
        'S': date.getMilliseconds() // millisecond
      };
      if (/(y+)/.test(format)) {
        format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
      }
      for (var k in o) {
        if (new RegExp('(' + k + ')').test(format)) {
          format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
        }
      }
      return format;
    },
    filterTime: function filterTime(timeSpan, format) {
      var d1 = new Date(this.dealTime(timeSpan, format)).getTime();
      var d2 = new Date().getTime();
      var flag = '';
      if (Math.floor((d1 - d2) / (24 * 3600 * 1000)) + 1 <= 3) {
        flag = true;
      } else {
        flag = false;
      }
      return flag;
    },
    getProductList: function getProductList() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_CART_LIST, {}, function (data) {
        if (!data) {
          return;
        }
        that.result = data;
        that.count = that.result.totalAmount;
        that.reCount = that.result.reduceAmount;
        if (that.result.couponType == 1) {
          that.flag = true;
          setTimeout(function () {
            that.thisheight = document.body.offsetHeight - 190 + 'px';
            document.getElementById('mall').style.top = 45 + 'px';
          }, 300);
        } else {
          that.flag = false;
          that.tip = '无可用优惠券';
          setTimeout(function () {
            that.thisheight = document.body.offsetHeight - 190 + 'px';
            document.getElementById('mall').style.top = 45 + 'px';
          }, 300);
        }
      }, function () {}, that);
    },
    deleteProduct: function deleteProduct(v) {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_CART_DEL, {
        id: v.carId
      }, function (data) {
        that._Util.showToast('删除成功');
        that.getProductList();
        that.tip = '未选择';
      }, function () {}, that);
    },
    changeNum: function changeNum(v, type) {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_CART_UPDATE_NUM, {
        id: v.carId,
        num: type ? v.num + 1 : v.num - 1
      }, function (data) {
        that.getProductList();
        that.tip = '未选择';
      }, function () {}, that);
    },
    toPay: function toPay() {
      var that = this;
      if (!that.result.mdseList) {
        (0, _mintUi.Toast)('请先添加商品');
        return;
      }
      if (that.result.couponType == 1 && that.tip == '未选择') {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: "\u60A8\u6709\u53EF\u4F7F\u7528\u7684\u4F18\u60E0\u5238",
          confirmButtonText: '暂不使用',
          showCancelButton: true,
          cancelButtonText: '去选择'
        }).then(function (action) {
          if (action === 'confirm') {
            that._Util.post(that._Api.POST_SHOPPING_CART_SUBMIT, {
              couponId: that.couponId
            }, function (data) {
              if (data) {
                window.location.replace(location.origin + '/v2/business/pay/shoppingPay?id=' + data.orderId + '&type=1&userId=' + that.userInfoResult.userId);
              }
            }, function () {}, that);
          } else {
            that.showCurpon();
          }
        });
      } else {
        that._Util.post(that._Api.POST_SHOPPING_CART_SUBMIT, {
          couponId: that.couponId
        }, function (data) {
          if (data) {
            window.location.replace(location.origin + '/v2/business/pay/shoppingPay?id=' + data.orderId + '&type=1&userId=' + that.userInfoResult.userId);
          }
        }, function () {}, that);
      }
    },
    goLinkV4Mall: function goLinkV4Mall() {
      if (this._Util.isMPaaS()) {
        my.switchTab({
          // eslint-disable-line
          url: '/pages/mall/mall'
        });
      } else {
        window.location.href = location.origin + '/v4/pages/mall/mall';
      }
    },
    toIndex: function toIndex() {
      var that = this;
      if (that._Util.isApp()) {
        api.closeWin();
        setTimeout(function () {
          api.sendEvent({
            name: 'openShopTab',
            extra: {}
          });
          //            that._Util.acSendEvent({
          //              name: 'needReload'
          //            });
        }, 300);
      } else {
        that.$router.push({
          name: 'shopping'
        });
      }
    },
    showCurpon: function showCurpon() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/mall-api/coupon/getShoppingCarCouponList.json', {}, function (data) {
        if (data) {
          that.showFlg = true;
          that.cashCoupon = data;
        }
      }, function () {}, that);
    },
    choseCurpon: function choseCurpon(item) {
      var that = this;
      that.showFlg = false;
      that.couponId = item.id;
      that.tip = '-￥' + item.amount;
      that.result.reduceAmount = (Number(that.reCount) + Number(item.amount)).toFixed(2);
      that.result.totalAmount = (that.count - item.amount).toFixed(2);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper shopcart"},[(!_vm.result.mdseList)?_c('div',{staticStyle:{"width":"100%","height":"100%","background":"#f2f2f2","overflow":"hidden"}},[_c('img',{staticStyle:{"width":"140px","height":"111px","display":"block","margin-left":"auto","margin-right":"auto","margin-top":"45px"},attrs:{"src":__webpack_require__(3106)}}),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","font-size":"16px","color":"#999","margin-top":"15px"}},[_vm._v("您的购物车是空的，快去添加商品吧！")]),_vm._v(" "),_c('a',{staticClass:"buy-more",staticStyle:{"margin-top":"35px"},attrs:{"href":"javascript: void(0);"},on:{"click":function($event){$event.stopPropagation();return _vm.goLinkV4Mall()}}},[_vm._v("添加商品")])]):_vm._e(),_vm._v(" "),(_vm.showFlg)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"conBox"},[_c('div',{staticStyle:{"background":"#F4F4F4","text-align":"center","height":"45px","line-height":"45px","font-size":"18px","position":"relative"}},[_vm._v("选择优惠券\n        "),_c('div',{staticClass:"close",on:{"click":function($event){_vm.showFlg =false}}})]),_vm._v(" "),_c('div',{staticStyle:{"height":"355px","width":"100%","overflow-y":"scroll"}},[_vm._l((_vm.cashCoupon),function(h,i){return (h.type==1)?_c('div',{key:i,staticClass:"couponCash",on:{"click":function($event){return _vm.choseCurpon(h)}}},[_c('div',{staticClass:"couponB"},[( _vm.filterTime(h.outTime,'yyyy-MM-dd') )?_c('img',{staticClass:"filterImg",attrs:{"src":__webpack_require__(3107)}}):_vm._e(),_vm._v(" "),_c('img',{staticClass:"bgImg",attrs:{"src":__webpack_require__(3108),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"couponBleft"},[_c('div',{staticClass:"leftTitle1"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(h.amount))]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"12px","color":"white","text-align":"center"}},[_vm._v("满"+_vm._s(h.orderAmount)+"元可用")])]),_vm._v(" "),_c('div',{staticClass:"couponBright"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(h.couponName))]),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm._f("dateFormat")(h.effectTime,'yyyy.MM.dd'))+"-"+_vm._s(_vm._f("dateFormat")(h.outTime,'yyyy.MM.dd')))])])])]):_vm._e()}),_vm._v(" "),_vm._m(0),_vm._v(" "),_vm._l((_vm.cashCoupon),function(h,i){return (h.type==0)?_c('div',{key:i,staticClass:"couponCash"},[_c('div',{staticClass:"couponB"},[_c('img',{staticClass:"bgImg",attrs:{"src":__webpack_require__(3109),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"couponBleft"},[_c('div',{staticClass:"leftTitle1"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(h.amount))]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"12px","color":"white","text-align":"center"}},[_vm._v("满"+_vm._s(h.orderAmount)+"元可用")])]),_vm._v(" "),_c('div',{staticClass:"couponBright"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(h.couponName))]),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm._f("dateFormat")(h.effectTime,'yyyy.MM.dd'))+"-"+_vm._s(_vm._f("dateFormat")(h.outTime,'yyyy.MM.dd')))])])])]):_vm._e()})],2)])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bg1",staticStyle:{"padding-bottom":"5px","position":"fixed","z-index":"99","width":"100%"},on:{"click":function($event){return _vm.showCurpon()}}},[_c('div',{staticClass:"coupon-top right-arrow r1 border-b1",staticStyle:{"padding":"10px 5px","position":"relative"}},[_c('img',{staticStyle:{"width":"7px","height":"14px","position":"absolute","right":"0","top":"50%","margin-top":"-7px"},attrs:{"src":__webpack_require__(211)}}),_vm._v(" "),_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('img',{staticStyle:{"width":"20px","height":"18px","margin-right":"8px","margin-left":"12px","margin-top":"1px"},attrs:{"src":__webpack_require__(3110),"alt":""}}),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('span',{staticClass:"ae",class:{'st': _vm.result.couponType == 0},staticStyle:{"position":"absolute","right":"20px","top":"12px","font-size":"14px","font-family":"'PingFangSC-Regular'"}},[_vm._v(_vm._s(_vm.tip))])])])]),_vm._v(" "),(_vm.result.mdseList)?_c('div',{staticClass:"mall pb-95",staticStyle:{"width":"100%","position":"fixed","top":"45px","overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},style:({'height':_vm.thisheight}),attrs:{"id":"mall"}},[_c('div',{staticClass:"comm-list"},_vm._l((_vm.result.mdseList),function(v,index){return _c('div',{key:index,staticClass:"comm-type1 clearfix"},[_c('div',{staticClass:"comm-img",on:{"click":function($event){return _vm.$router.push({name: 'productDetail', query: {id: v.mdseId}})}}},[_c('img',{attrs:{"src":v.picUrl,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display5",staticStyle:{"font-size":"16px"}},[_vm._v("\n            "+_vm._s(v.mdseName)),_c('br'),_vm._v(" "),_c('span',{staticStyle:{"color":"rgb(226, 48, 48)","font-size":"18px"}},[_vm._v("￥"+_vm._s(v.price))])]),_vm._v(" "),_c('div',{staticClass:"comm-price"},[_c('div',{staticClass:"number clearfix"},[_c('span',{staticClass:"minus",on:{"click":function($event){$event.stopPropagation();return _vm.changeNum(v)}}},[_vm._v("-")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.num))]),_vm._v(" "),_c('span',{staticClass:"add",on:{"click":function($event){$event.stopPropagation();return _vm.changeNum(v, true)}}},[_vm._v("+")])])]),_vm._v(" "),_c('a',{staticClass:"delete",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteProduct(v)}}})])])}),0),_vm._v(" "),_c('a',{staticClass:"buy-more",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.goLinkV4Mall()}}},[_vm._v("继续添加商品")])]):_vm._e(),_vm._v(" "),(_vm.result.mdseList)?_c('div',{staticClass:"shopcart-dialog border-1"},[_c('div',{staticClass:"yh1 border-b1 clearfix"},[_c('span',{staticClass:"fl"},[_vm._v("商品总价")]),_vm._v(" "),_c('span',{staticClass:"fr"},[_vm._v("￥"+_vm._s(_vm.result.mdseTotalAmount || 0))])]),_vm._v(" "),_c('div',{staticClass:"yh2 clearfix"},[_c('span',{staticClass:"fl"},[_vm._v("优惠金额")]),_vm._v(" "),_c('span',{staticClass:"fr"},[_vm._v("￥"+_vm._s(_vm.result.reduceAmount || 0))])]),_vm._v(" "),_c('div',{staticStyle:{"background":"#f6f6f6","width":"100%","padding":"10px 7px","overflow":"hidden"}},[_c('span',{staticClass:"fl",staticStyle:{"font-size":"16px"}},[_vm._v("应付金额")]),_vm._v(" "),_c('span',{staticClass:"fr",staticStyle:{"color":"rgb(226, 48, 48)","font-size":"16px"}},[_vm._v("￥"+_vm._s(_vm.result.totalAmount> 0 ? _vm.result.totalAmount:0.01))])])]):_vm._e(),_vm._v(" "),(_vm.result.mdseList)?_c('div',{staticClass:"mall-bottom clearfix",staticStyle:{"background":"#fff"}},[_c('div',{staticClass:"mall-bottom-rig",staticStyle:{"width":"100%"}},[_c('button',{staticClass:"go-buy",staticStyle:{"width":"100%","height":"48px","line-height":"48px"},attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.toPay()}}},[_vm._v("提交订单")])])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"noUse"},[_c('div',[_c('a',{attrs:{"href":"#"}})]),_vm._v(" "),_c('span',[_vm._v("以下优惠券不满足使用条件")]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":"#"}})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticStyle:{"font-size":"14px","color":"#333"}},[_vm._v("优惠券"),_c('i',{staticStyle:{"margin-left":"3px","font-size":"12px","color":"#999999"}},[_vm._v("一单可使用一张")])])}]
module.exports = __webpack_require__.p + "static/img/emptyCar.3758cc8.png";module.exports = __webpack_require__.p + "static/img/filterTime.7c2b2fe.png";module.exports = __webpack_require__.p + "static/img/youhuiqu1.f7a1568.png";module.exports = __webpack_require__.p + "static/img/youhuiqu2.e33ad5a.png";module.exports = __webpack_require__.p + "static/img/gonext.c231323.png";module.exports = __webpack_require__.p + "static/img/yhq.fcbfe2c.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(568);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_20ba2890_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1167);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3111)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-20ba2890"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_20ba2890_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_20ba2890_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderPay_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3112);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1c98c5d4", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".head[data-v-20ba2890]{width:100%;height:90px;background:#fff;position:relative}.headNav[data-v-20ba2890]{float:left;height:100%}.headNav[data-v-20ba2890]:first-of-type,.headNav[data-v-20ba2890]:nth-of-type(3){width:10%;position:relative}.headNav[data-v-20ba2890]:nth-of-type(2){width:80%}.headNav:first-of-type img[data-v-20ba2890]{width:18px;height:24px;position:absolute;top:50%;left:50%;margin-left:-8px;margin-top:-12px}.headNav:nth-of-type(3) img[data-v-20ba2890]{width:12px;height:20px;position:absolute;top:50%;left:50%;margin-left:-8px;margin-top:-10px}.bottom[data-v-20ba2890],.top[data-v-20ba2890]{width:100%;overflow:hidden;background:#fff}.bottom[data-v-20ba2890]{height:70px}.leftPic[data-v-20ba2890]{width:15%;height:70px;float:left;position:relative}.rightContent[data-v-20ba2890]{width:85%;height:100%;float:left;padding:3px 0;border-bottom:1px solid #e2e2e2}.leftPic img[data-v-20ba2890]{width:24px;height:24px;position:absolute;top:50%;left:50%;margin-left:-12px;margin-top:-12px}.wiliu-top span[data-v-20ba2890]{font-size:16px}.wiliu-top span[data-v-20ba2890]:nth-of-type(2){float:right;margin-right:7px;font-size:14px;margin-top:3px;color:#e23030}.wiliu-bottom input[data-v-20ba2890]{float:left;width:auto;color:#333}.wiliu-bottom .copyOrder[data-v-20ba2890]{font-size:12px;border:1px solid #666;color:#666;padding:2px 5px;border-radius:3px;-webkit-border-radius:3px;float:right;margin-right:7px}.moneyInfoBox[data-v-20ba2890]{background:#fff}.singleBox[data-v-20ba2890]{padding:5px 10px;overflow:hidden}.singleBox span[data-v-20ba2890]{float:left;font-size:16px}.singleBox span[data-v-20ba2890]:nth-of-type(2){float:right}.singleBox:nth-of-type(3) span[data-v-20ba2890]{color:#e23030}.cash[data-v-20ba2890]{padding:10px;border-bottom:1px solid #e2e2e2}.cash span[data-v-20ba2890]{font-size:16px;display:inline-block;margin-left:5px}.cash img[data-v-20ba2890]{display:inline-block;width:24px;height:21px}.cash:nth-of-type(3) img[data-v-20ba2890]{width:24px;height:18px}.cash img[data-v-20ba2890]:nth-of-type(2){width:9px;height:14px;float:right;margin-top:5px}.comm-list .comm-type1[data-v-20ba2890]{margin-top:8px;border-bottom:none}.moneyBox[data-v-20ba2890]{background:#fff;padding:5px 10px}.moneyBox span[data-v-20ba2890]{font-size:14px;color:#FF666666}.moneyBox span[data-v-20ba2890]:nth-of-type(2){float:right}.moneyBox[data-v-20ba2890]:nth-of-type(3){padding:10px;background:#f2f2f2;border-bottom:10px solid #fff}.moneyBox:nth-of-type(3) span[data-v-20ba2890]{font-size:16px}.toConfirm[data-v-20ba2890]{width:70%;padding:10px 0;text-align:center;display:block;margin:0 auto;color:#e23030;font-size:16px;border:1px solid #e23030;border-radius:3px;-webkit-border-radius:3px}.mask[data-v-20ba2890]{width:100%;height:100%;background:rgba(0,0,0,.3);position:fixed;left:0;top:0;z-index:999}.tipBox[data-v-20ba2890]{width:300px;height:180px;background:#fff;position:absolute;left:50%;margin-left:-150px;top:50%;margin-top:-90px;text-align:center;border-radius:5px;-webkit-border-radius:5px}.title[data-v-20ba2890]{font-size:16px;color:#030303;font-family:microsoft yahei;padding-top:7px}.desc[data-v-20ba2890]{font-size:14px;margin-top:5px;width:200px;margin-left:auto;margin-right:auto;text-align:left;color:#333}#inputVal[data-v-20ba2890]{display:block;margin:0 auto;border:1px solid #979797;width:200px;padding:3px 0;margin-top:10px;background:#f2f2f2;-webkit-border-radius:5px}.choseList[data-v-20ba2890]{overflow:hidden;position:absolute;width:100%;height:40px;line-height:40px;border-top:1px solid #d8d8d8;bottom:0}.choseList li[data-v-20ba2890]{float:left;width:49%;text-align:center;font-size:16px}.choseList li[data-v-20ba2890]:first-of-type{border-right:1px solid #d8d8d8}.adressBox[data-v-20ba2890]{background:#fff;height:300px;width:100%;position:absolute;bottom:0;overflow:hidden}.adressB[data-v-20ba2890]{background:#f4f4f4;overflow:hidden}.adressB span[data-v-20ba2890]{float:left;width:20%;font-size:16px;text-align:center;padding:10px 0}.adressB span[data-v-20ba2890]:nth-of-type(2){font-size:18px;width:60%}.listBox[data-v-20ba2890]{overflow:hidden;padding:10px 3px;border-bottom:1px solid #e2e2e2}.listBox span[data-v-20ba2890]{width:22%;height:100%;float:left;text-align:center;font-size:16px}.listBox input[data-v-20ba2890]{width:70%;height:100%;float:right;font-size:16px}.adressChange[data-v-20ba2890]{width:70%;float:right;font-size:16px;color:#000;padding-right:15px;background:url(" + escape(__webpack_require__(211)) + ") 0 0 no-repeat;background-size:8px 13px;background-position:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _vueArea = _interopRequireDefault(__webpack_require__(812));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    VueArea: _vueArea.default
  },
  data: function data() {
    return {
      infoResult: {},
      userInfoResult: {},
      order: 12345,
      phoneExp: /^1[3456789]\d{9}$/,
      showMask: false,
      inputVal: '',
      tip: '',
      maskType: '',
      phone: '',
      name: '',
      adress: '',
      diqu: '',
      show: false,
      result: {
        province: {},
        city: {},
        area: {}
      },
      saveAdressId: '',
      addressNew: {
        name: null,
        phone: null,
        address: ''
      },
      falg: false,
      alipayflag: true,
      // 支付宝支付开关，防止多次提交
      payType: this.$route.query.type,
      showAlipayBtn: true
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getUserState();
    that.getdefalutInfo();
    that.$on('checkedCity', function (data) {
      that.show = false;
      that.showMask = true;
      if (!data.province) {
        that.addressNew.province = '';
      } else {
        that.addressNew.province = data.province;
      }
      if (!data.city) {
        that.addressNew.city = '';
      } else {
        that.addressNew.city = data.city;
      }
      if (!data.area) {
        that.addressNew.dist = '';
      } else {
        that.addressNew.dist = data.area;
      }
      that.diqu = that.addressNew.province + that.addressNew.city + that.addressNew.dist;
    });
    that.$on('areaCancel', function () {
      that.show = false;
      that.showMask = true;
    });
    setTimeout(function () {
      if (that._Util.isApp()) {
        var version = localStorage.getItem('newVersion');
        if (that.compareVersion(version)) {
          that.showAlipayBtn = true;
        } else {
          that.showAlipayBtn = false;
        }
      }
    }, 500);
  },
  methods: {
    /** 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true */compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.4'; // 1.4.4开始app上才添加了支付宝支付
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
          if (that.$route.query.userId != that.userInfoResult.userId) {
            that.$router.push({
              name: 'memberMyOrder'
            });
          }
        }
      }, function () {}, that);
    },
    filetrState: function filetrState(t) {
      var state = '';
      switch (t) {
        case 1:
          state = '代付款';
          break;
        case 3:
          state = '部分付款';
          break;
        case 4:
          state = '支付失败';
          break;
        case 5:
          state = '代发货';
          break;
        case 6:
          state = '已发货';
          break;
        case 7:
          state = '已收货';
          break;
        case 8:
          state = '已退款';
          break;
        case 9:
          state = '已失效';
          break;
      }
      return state;
    },
    getdefalutInfo: function getdefalutInfo() {
      var that = this;
      if (that.payType == 1) {
        that._Util.post(that._Api.POST_SHOPPING_ORDER_DETAIL, {
          id: that.$route.query.id
        }, function (data) {
          if (data) {
            that.infoResult = data;
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/details.json', {
          id: that.$route.query.id
        }, function (data) {
          if (data) {
            that.infoResult = data;
          }
        }, function () {}, that);
      }
    },
    copyOrder: function copyOrder() {
      var e = document.getElementById('cp');
      e.select();
      document.execCommand('Copy');
    },
    confirm: function confirm(type) {
      var that = this;
      if (type == 1) {
        that._Util.post(that._Api.HOSTOLD + '/api/mall-api/order/confirmReceipt.json', {
          id: that.$route.query.id
        }, function (data) {
          (0, _mintUi.Toast)('已确认收货');
          that.getdefalutInfo();
        }, function () {}, that);
      } else {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '是否取消订单',
          showConfirmButton: true,
          confirmButtonText: '确定',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that._Util.post(that._Api.POST_MEMBER_PERSONAL_CANCEL_ORDER, {
              id: that.$route.query.id
            }, function (data) {
              (0, _mintUi.Toast)('订单取消成功');
              that.$router.push({
                name: 'memberMyOrder'
              });
            }, function () {}, that);
          }
        });
      }
    },
    toPay: function toPay(type) {
      var that = this;
      switch (type) {
        case 2:
          that._Util.post(that._Api.POST_SHOPPING_ORDER_JS_PARAMETER, {
            id: that.$route.query.id,
            payType: 2
          }, function (data) {
            that._Util.wxPay(data.jsApiParameters, function () {
              that.getdefalutInfo();
            });
          }, function () {}, that);
          break;
      }
    },
    define: function define() {
      var that = this;
      if (that.inputVal < that.infoResult.deposit) {
        that.tip = '不可低于最低定金';
        return;
      }
      if (that.inputVal > that.infoResult.residueAmount) {
        that.tip = '不可高于订单应付金额';
        return;
      }
      that.showMask = false;
      that.tip = '';
      that._Util.post(that._Api.POST_SHOPPING_ORDER_JS_PARAMETER, {
        payType: 1,
        id: that.$route.query.id,
        deposit: that.inputVal
      }, function (data) {
        that._Util.wxPay(data.jsApiParameters, function () {
          that.getdefalutInfo();
        });
        //          that.inputVal = that.result.deposit;
        //          that._Util.wxPay(data.jsApiParameters, function () {
        //            that.$router.replace({name: 'memberMyOrder'});
        //          });
      }, function () {}, that);
    },
    cancel: function cancel() {
      this.showMask = false;
      this.tip = '';
      //        this.inputVal = this.result.deposit;
    },
    save: function save() {
      var that = this;
      if (!that.name) {
        that._Util.showMsgBox('联系人不能为空');
        return;
      }
      if (!that.phone) {
        that._Util.showMsgBox('手机号不能为空');
        return;
      }
      if (!that.phoneExp.test(that.phone)) {
        that._Util.showMsgBox('手机号码格式不正确');
        return;
      }
      if (!that.diqu) {
        that._Util.showMsgBox('请选择所在地区');
        return;
      }
      if (!that.adress) {
        that._Util.showMsgBox('请填写详细地址');
        return;
      }
      if (that.addressLength < 5) {
        that._Util.showMsgBox('详细地址至少需要输入5个汉字');
        return;
      }
      if (that.addressLength > 60) {
        that._Util.showMsgBox('详细地址最多可以输入60个汉字');
        return;
      }
      if (!that.falg) {
        that._Util.post(that._Api.POST_SHOPPING_ORDER_UPDATE_ADDRESS, {
          name: that.name,
          phone: that.phone,
          province: that.addressNew.province,
          city: that.addressNew.city,
          dist: that.addressNew.dist,
          address: that.adress,
          id: that.$route.query.id
        }, function (data) {
          that.showMask = false;
          that.getdefalutInfo();
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS_ADD, {
          name: that.name,
          phone: that.phone,
          province: that.addressNew.province,
          city: that.addressNew.city,
          dist: that.addressNew.dist,
          address: that.adress,
          id: that.saveAdressId,
          type: 2
        }, function () {
          that._Util.post(that._Api.POST_SHOPPING_ORDER_UPDATE_ADDRESS, {
            id: that.$route.query.id,
            name: that.name,
            phone: that.phone,
            province: that.addressNew.province,
            city: that.addressNew.city,
            dist: that.addressNew.dist,
            address: that.adress
          }, function (data) {
            that.showMask = false;
            that.getdefalutInfo();
          }, function () {}, that);
        }, function () {}, that);
      }
    },
    changeAdress: function changeAdress() {
      var that = this;
      that.showMask = true;
      that.maskType = 2;
      if (that.infoResult.address) {
        that.phone = that.infoResult.receivePhone;
        that.name = that.infoResult.receiveName;
        that.infoResult.province = that.infoResult.province ? that.infoResult.province : '';
        that.infoResult.city = that.infoResult.city ? that.infoResult.city : '';
        that.infoResult.dist = that.infoResult.dist ? that.infoResult.dist : '';
        that.diqu = that.infoResult.province + that.infoResult.city + that.infoResult.dist;
        that.adress = that.infoResult.address;
      } else {
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_ADDRESS, {
          type: 2
        }, function (data) {
          if (data.length) {
            that.phone = data[0].phone || '';
            that.name = data[0].name || '';
            data[0].province = data[0].province ? data[0].province : '';
            data[0].city = data[0].city ? data[0].city : '';
            data[0].dist = data[0].dist ? data[0].dist : '';
            that.diqu = data[0].province + data[0].city + data[0].dist;
            that.adress = data[0].address;
            that.saveAdressId = data[0].id;
          } else {
            that.falg = true;
          }
        }, function () {}, that);
      }
    },
    changAdress: function changAdress() {
      this.showMask = false;
      this.show = true;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper",staticStyle:{"background":"#f2f2f2"}},[_c('div',{staticStyle:{"margin-top":"10px"}},[(_vm.infoResult.orderStatus== 1)?_c('div',{staticClass:"moneyInfoBox"},[_c('div',{staticClass:"singleBox"},[_c('span',[_vm._v("商品金额")]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(_vm.infoResult.mdseTotalAmount || 0))])]),_vm._v(" "),_c('div',{staticClass:"singleBox"},[_c('span',[_vm._v("优惠金额")]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(_vm.infoResult.discountAmount || 0))])]),_vm._v(" "),_c('div',{staticClass:"singleBox"},[_c('span',[_vm._v("应付金额")]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(_vm.infoResult.residueAmount || 0))])])]):_vm._e(),_vm._v(" "),(_vm.infoResult.orderStatus== 3)?_c('div',{staticClass:"moneyInfoBox"},[_c('div',{staticClass:"singleBox"},[_c('span',[_vm._v("应付金额")]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(_vm.infoResult.orderAmount || 0))])]),_vm._v(" "),_c('div',{staticClass:"singleBox"},[_c('span',[_vm._v("已付金额")]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(_vm.infoResult.paidAmount || 0))])]),_vm._v(" "),_c('div',{staticClass:"singleBox"},[_c('span',[_vm._v("剩余待付")]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(_vm.infoResult.residueAmount || 0))])])]):_vm._e(),_vm._v(" "),(_vm.infoResult.orderStatus== 3 || _vm.infoResult.orderStatus== 1)?_c('div',{staticStyle:{"margin-top":"10px","background":"#fff"}},[_c('div',{staticClass:"cash",on:{"click":function($event){return _vm.toPay(2)}}},[_c('img',{attrs:{"src":__webpack_require__(3113)}}),_vm._v(" "),_c('span',[_vm._v("微信支付")]),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(211)}})])]):_vm._e()]),_vm._v(" "),(_vm.$route.query.type==2)?_c('div',{staticStyle:{"margin-top":"10px"}},[_c('div',{staticClass:"order-list comm-list",staticStyle:{"background":"#fff","padding":"5px 0"}},_vm._l((_vm.infoResult.itemList),function(v,i){return _c('div',{key:i,staticClass:"comm-type1 clearfix",staticStyle:{"background":"#F6F6F6"}},[_c('div',{staticClass:"comm-num"},[_c('span',[_vm._v("￥"+_vm._s(v.price)),_c('br'),_vm._v("x"+_vm._s(v.num))])]),_vm._v(" "),_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-img"},[_c('img',{attrs:{"src":v.picUrl,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n                "+_vm._s(v.mdseName)+"\n              ")])])])])}),0)]):_vm._e(),_vm._v(" "),(_vm.$route.query.type==1)?_c('div',{staticStyle:{"margin-top":"10px"}},[_c('div',{staticClass:"order-list comm-list",staticStyle:{"background":"#fff","padding":"10px 0"}},_vm._l((_vm.infoResult.orderItemVoList),function(v,i){return _c('div',{key:i,staticClass:"comm-type1 clearfix",staticStyle:{"background":"#F6F6F6"}},[_c('div',{staticClass:"comm-num"},[_c('span',[_vm._v("￥"+_vm._s(v.price)),_c('br'),_vm._v("x"+_vm._s(v.num))])]),_vm._v(" "),_c('a',{attrs:{"href":"javascript: void(0);"}},[_c('div',{staticClass:"comm-img"},[_c('img',{attrs:{"src":v.picUrl,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"comm-info"},[_c('div',{staticClass:"comm-name display1"},[_vm._v("\n                "+_vm._s(v.mdseName)+"\n              ")])])])])}),0)]):_vm._e(),_vm._v(" "),(_vm.infoResult.orderStatus== 7 ||_vm.infoResult.orderStatus== 6 || _vm.infoResult.orderStatus== 5 )?_c('div',[_c('div',{staticClass:"moneyBox"},[_c('span',[_vm._v("商品总价")]),_vm._v(" "),_c('span',[_vm._v("￥"+_vm._s(_vm.infoResult.mdseTotalAmount || 0))])]),_vm._v(" "),_c('div',{staticClass:"moneyBox"},[_c('span',[_vm._v("优惠金额")]),_vm._v(" "),_c('span',[_vm._v("-￥"+_vm._s(_vm.infoResult.discountAmount || 0))])]),_vm._v(" "),_c('div',{staticClass:"moneyBox"},[_c('span',[_vm._v("实付金额")]),_vm._v(" "),_c('span',{staticStyle:{"color":"#E23030"}},[_vm._v("￥"+_vm._s(_vm.infoResult.paidCash))])])]):_vm._e(),_vm._v(" "),_c('Vue-area',{attrs:{"show":_vm.show,"result":_vm.result}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/weiixn-zhifu.999261b.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(569);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_beb24c34_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1168);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3114)
  __webpack_require__(3116)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_beb24c34_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_beb24c34_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_bankTransfer_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3115);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("73f82da8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports
exports.i(__webpack_require__(1444), "");

// module
exports.push([module.i, "", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3117);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5a4258cb", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "._selectTrue{-webkit-user-select:all;-o-user-select:all;-ms-user-select:all;user-select:all}.pay-tab{background:#fff}.pay-tab .tabs{overflow:hidden;width:100%;font-size:.38rem;border-bottom:2px solid #dcdcdc}.pay-tab .tabs li{width:50%;height:1.13rem;line-height:1.13rem;float:left;text-align:center}.pay-tab .tabs li:first-child:after{content:\"\";display:block;float:right;width:1px;height:.78rem;background:#dcdcdc;margin-top:.175rem}.pay-tab .tabs a{display:inline-block;width:90%;height:100%;margin-left:1%}.pay-tab .tabs .current{border-bottom:.14rem solid #c41919}.pay-bank-tab .tabs li{width:33.3%}.pay-bank-tab .tabs li:nth-child(2):after{content:\"\";display:block;float:right;width:1px;height:.78rem;background:#dcdcdc;margin-top:.175rem}.pay-bank-price{background:#fff;text-align:center}.pay-bank-price b{font-size:.47rem}.pay-bank-tab .content{font-size:.38rem}.pay-bank-tab .content p{line-height:.6rem}.my-bank-info{height:3.53rem;background:#eee}.pay-bank-tab .prompt{font-size:.32rem;color:#666;margin-bottom:.3rem}.pay-bank-tab .prompt span{color:#c52626}.pl{width:95%;padding:10px 0;overflow:hidden;border-top:1px solid #e2e2e2;margin:0 auto}.pl:first-of-type{width:100%;padding-left:12px}.pl span{font-size:16px;float:left}.pl span:first-of-type{font-size:14px;color:#666;width:25%}.pl span:nth-of-type(2){color:#333;width:70%;text-align:right}.sty{background:url(" + escape(__webpack_require__(211)) + ") 0 0 no-repeat;background-size:8px 14px;background-position:100%;padding-right:15px}.file{background:#e33a3d;border-radius:3px;-webkit-border-radius:3px;font-size:18px}.defindedBox{overflow:hidden;width:100%;background:#f5f5f5}.defindedBox span{float:left;width:20%;text-align:center;color:#666;padding:5px 0;font-size:16px}.defindedBox span:nth-of-type(2){width:60%;font-size:18px;color:#333}.picker-item{font-size:18px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      imgResult: [],
      previewImgUrl: '',
      checkIndex: 0,
      val: '',
      checkList: [],
      showpick: false,
      slots: [{
        flex: 1,
        values: ['支付宝', '农业银行', '邮政储蓄银行'],
        className: 'slot1',
        textAlign: 'center'
      }]
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.shoppingHtmlInit();
    that.getImgList();
  },
  methods: {
    onValuesChange: function onValuesChange(picker, values) {
      var that = this;
      that.val = values;
    },
    confirmType: function confirmType() {
      var that = this;
      if (that.val == '支付宝') {
        that.checkIndex = 0;
      } else if (that.val == '农业银行') {
        that.checkIndex = 1;
      } else {
        that.checkIndex = 2;
      }
      this.showpick = false;
    },
    del: function del(item) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/deletePaymentReceipt.json', {
        id: item.id
      }, function (data) {
        that.getImgList();
      }, function () {}, that);
    },
    getImgList: function getImgList() {
      var that = this;
      that._Util.post(that._Api.POST_SHOPPING_ORDER_GET_IMG, {
        id: that.$route.query.id
      }, function (data) {
        if (data) {
          that.imgResult = data || [];
        }
      }, function () {}, that);
    },
    /**
     * 获取七牛云上传token
     */
    getQiniuToken: function getQiniuToken() {
      return this.$http({
        url: this._Api.appGetQNToken,
        method: 'post',
        data: {}
      });
    },
    /**
     * 七牛图片上传
     */
    qiNiuUploadImg: function qiNiuUploadImg(fileData, filename) {
      var _this = this;
      return new Promise(/*#__PURE__*/function () {
        var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(resolve, reject) {
          var qiniuRes, qiniuObj, url, param, type, imageName;
          return _regenerator.default.wrap(function (_context) {
            while (1) switch (_context.prev = _context.next) {
              case 0:
                _context.next = 1;
                return _this.getQiniuToken();
              case 1:
                qiniuRes = _context.sent;
                qiniuObj = qiniuRes.data.data;
                url = '';
                if (_this._Util.isIOS) {
                  url = 'https://upload.qbox.me';
                } else {
                  url = 'https://upload.qiniup.com';
                }
                param = new FormData();
                param.append('file', fileData);
                param.append('token', qiniuObj.token);
                type = fileData.type.split('/')[1];
                imageName = filename ? "kxy/user/order/".concat(filename, ".").concat(type) : "kxy/user/order/".concat(_this._Util.parseTime(new Date().getTime(), '{y}{m}{d}{h}{i}{s}'), ".").concat(type);
                param.append('key', imageName);
                _this.$http({
                  url: url,
                  withCredentials: false,
                  method: 'post',
                  dataType: 'json',
                  data: param
                }).then(function (res) {
                  if (res.status === 200) {
                    // resolve(qiniuObj.bucketUrl + res.data.key)
                    resolve(res.data.key);
                  }
                }).catch(function (err) {
                  reject(err);
                });
              case 2:
              case "end":
                return _context.stop();
            }
          }, _callee);
        }));
        return function (_x, _x2) {
          return _ref.apply(this, arguments);
        };
      }());
    },
    uploadImg: function uploadImg(e) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var that, imgArr, imgTotalSize, i, imgUrl;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              that = _this2;
              imgArr = (0, _jquery.default)('#imgInp').get(0).files;
              imgTotalSize = 0;
              for (i = 0; i < imgArr.length; i++) {
                imgTotalSize += imgArr[i].size;
              }
              if (imgTotalSize) {
                _context2.next = 1;
                break;
              }
              return _context2.abrupt("return");
            case 1:
              if (!(imgTotalSize / 1024 / 1024 > 8)) {
                _context2.next = 2;
                break;
              }
              that._Util.showMsgBox('图片单次上传最大8M,请分批上传吧~');
              return _context2.abrupt("return");
            case 2:
              (0, _jquery.default)('#oId').val(that.$route.query.orderId);
              _mintUi.Indicator.open({
                spinnerType: 'fading-circle'
              });
              _context2.next = 3;
              return _this2.qiNiuUploadImg(e.target.files[0]);
            case 3:
              imgUrl = _context2.sent;
              _this2._Util.post(_this2._Api.POST_SHOPPING_ORDER_IMG_UPLOAD, {
                id: _this2.$route.query.id,
                receiptImgs: imgUrl
              }, function (data) {
                _mintUi.Indicator.close();
                that.getImgList();
              }, function () {}, _this2);
            case 4:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    uploadClk: function uploadClk() {
      var that = this;
      if (that.imgResult.length) {
        that._Util.showMsgBoxConfirm('确认上传?', function (action) {
          if (action) {
            that.$router.push({
              name: 'operationSuccess',
              query: {
                msg: '付款凭证上传成功，我们会在1个工作日内完成确认。',
                callbackBtnVal: '返回',
                routeName: 'shoppingOrderPay',
                orderId: that.$route.query.orderId,
                type: 1
              }
            });
          }
        });
      } else {
        (0, _jquery.default)('#imgInp').click();
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper"},[_c('div',{staticClass:"pay-bank-price p20"},[_c('div',{staticStyle:{"font-size":"16px","color":"#666","margin-top":"36px"}},[_vm._v("转账金额")]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"30px","color":"#151515"}},[_vm._v("￥"+_vm._s(_vm.$route.query.money))]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"12px","color":"#999","margin-top":"15px"}},[_vm._v("支持：邮政储蓄银行转账")])]),_vm._v(" "),_vm._l((_vm.checkList),function(v,index){return (index == _vm.checkIndex)?_c('div',{key:index,staticStyle:{"background":"#fff"}},[_c('div',{staticClass:"pl"},[_c('span',[_vm._v(_vm._s(v.styleTitle))]),_vm._v(" "),_c('span',{staticClass:"sty",on:{"click":function($event){_vm.showpick= true}}},[_vm._v(_vm._s(v.style))])]),_vm._v(" "),_c('div',{staticClass:"pl"},[_c('span',[_vm._v(_vm._s(v.accountTitle))]),_vm._v(" "),_c('span',{staticClass:"_selectTrue"},[_vm._v(_vm._s(v.account))])]),_vm._v(" "),_c('div',{staticClass:"pl"},[_c('span',[_vm._v(_vm._s(v.nameTitle))]),_vm._v(" "),_c('span',{staticClass:"_selectTrue"},[_vm._v(_vm._s(v.name))])]),_vm._v(" "),_c('div',{staticClass:"pl"},[_c('span',[_vm._v(_vm._s(v.markTitle))]),_vm._v(" "),_c('span',{staticClass:"_selectTrue"},[_vm._v(_vm._s(v.mark + _vm.$route.query.orderId))])])]):_vm._e()}),_vm._v(" "),_c('div',{staticClass:"pay-bank-tab pay-tab",staticStyle:{"margin-top":"15px"}},[_c('div',{staticStyle:{"font-size":"16px","color":"#333","padding":"10px 0 0 15px"}},[_vm._v("添加付款凭证")]),_vm._v(" "),_c('div',{staticClass:"content p20 border-b1"},[_c('section',{staticClass:"tab2_1"},[_c('div',{staticClass:"weui-cells weui-cells_form",staticStyle:{"margin-top":"auto","position":"static","padding":"0"}},[_c('div',{staticClass:"weui-cell",staticStyle:{"padding":"18px 15px"}},[_c('div',{staticClass:"weui-cell__bd"},[_c('div',{staticClass:"weui-uploader"},[_c('div',{staticClass:"weui-uploader__bd",staticStyle:{"overflow":"visible"}},[_c('ul',{staticClass:"weui-uploader__files",attrs:{"id":"uploaderFiles"}},_vm._l((_vm.imgResult),function(v,index){return _c('li',{key:index,staticClass:"weui_uploader__file",staticStyle:{"float":"left","margin-right":"9px","margin-bottom":"9px","width":"79px","height":"79px","background":"no-repeat 50%","background-size":"cover","position":"relative"},style:({ backgroundImage: 'url(' + v.picUrl + '?imageView2/1/w/150/h/150)' }),on:{"click":function($event){$event.stopPropagation();_vm.previewImgUrl = v.picUrl}}},[_c('img',{staticStyle:{"position":"absolute","width":"20px","height":"20px","right":"-8px","top":"-7px"},attrs:{"src":__webpack_require__(3118)},on:{"click":function($event){$event.stopPropagation();return _vm.del(v)}}})])}),0),_vm._v(" "),_c('div',{staticClass:"weui-uploader__input-box"},[_c('form',{attrs:{"id":"picFrm","method":"post","enctype":"multipart/form-data"}},[_c('input',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],attrs:{"id":"oId","name":"id","type":"text"}}),_vm._v(" "),_c('input',{staticClass:"weui-uploader__input",attrs:{"id":"imgInp","name":"receiptImgs","type":"file","accept":"image/*"},on:{"change":function($event){return _vm.uploadImg($event)}}})])])])])])])]),_vm._v(" "),(_vm.previewImgUrl)?_c('div',{staticClass:"weui-gallery",staticStyle:{"display":"block"},on:{"click":function($event){_vm.previewImgUrl = ''}}},[_c('span',{staticClass:"weui-gallery__img",style:({ backgroundImage: 'url(' + _vm.previewImgUrl + '?imageView2/1)' })}),_vm._v(" "),_c('div',{staticClass:"weui-gallery__opr"})]):_vm._e()])])]),_vm._v(" "),_c('div',{staticStyle:{"background":"#f2f2f2","width":"100%","margin-top":"15px"}},[_c('button',{staticClass:"file",attrs:{"href":"javascript: void(0);"},on:{"click":function($event){return _vm.uploadClk()}}},[_vm._v("\n      确认上传")])]),_vm._v(" "),(_vm.showpick)?_c('div',{staticStyle:{"position":"fixed","bottom":"0","width":"100%","height":"100%","background":"rgba(0,0,0,0.4)"}},[_c('div',{staticStyle:{"background":"white","position":"absolute","bottom":"0","width":"100%","height":"200px"}},[_c('div',{staticClass:"defindedBox"},[_c('span',{on:{"click":function($event){_vm.showpick=false}}},[_vm._v("取消")]),_vm._v(" "),_c('span',[_vm._v("转账方式")]),_vm._v(" "),_c('span',{staticStyle:{"color":"#E4454A"},on:{"click":function($event){return _vm.confirmType()}}},[_vm._v("确定")])]),_vm._v(" "),_c('mt-picker',{attrs:{"slots":_vm.slots,"visible-item-count":3},on:{"change":_vm.onValuesChange}})],1)]):_vm._e()],2)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/del.b71eaf8.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(570);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2471f1c7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1169);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3119)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2471f1c7"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2471f1c7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2471f1c7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationSuccess_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3120);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("fef56314", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".uploadMore[data-v-2471f1c7]{height:60px;margin:10px 10px 0}.uploadMore button[data-v-2471f1c7]{color:#fff;font-size:16px;text-align:center;width:100%;background:#ba252d;height:40px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {};
  },
  mounted: function mounted() {},
  methods: {
    nextStep: function nextStep() {
      this.$router.go(-1);
      //          if(this.$route.query.type ==1){
      //            window.location.href = location.origin + '/v2/business/pay/shoppingPay?id=' + this.$route.query.orderId+'&type=2';
      //          }else{
      //            this.$router.replace({name: this.$route.query.routeName})
      //          }
      //
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"bMember"},[_c('div',[_c('div',{staticClass:"fufeiImg"},[_c('img',{attrs:{"src":__webpack_require__(3121)}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.$route.query.msg))])])])]),_vm._v(" "),(_vm.$route.query.callbackBtnVal)?_c('div',{staticClass:"uploadMore"},[_c('button',{on:{"click":function($event){return _vm.nextStep()}}},[_vm._v(_vm._s(_vm.$route.query.callbackBtnVal))])]):_vm._e()])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/201611030031.0c900be.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(571);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1826348e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1170);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3122)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1826348e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1826348e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1826348e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_instalment_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3123);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("551e9f16", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".border-bottom-1px[data-v-1826348e]{position:relative}.border-bottom-1px[data-v-1826348e]:before{content:\"\";position:absolute;left:0;top:0;width:200%;border-bottom:2px solid #f2f2f2;color:#f2f2f2;height:200%;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);pointer-events:none;box-sizing:border-box}@media (-webkit-min-device-pixel-ratio:3),screen and (min-device-pixel-ratio:3){.border-bottom-1px[data-v-1826348e]:before{width:300%;height:300%;-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}}.outContainer[data-v-1826348e]{background:#f2f2f2;padding-top:.4rem}.outContainer .formContainer[data-v-1826348e]{background-color:#fff;padding-left:.6rem}.outContainer .formContainer .item[data-v-1826348e]{height:2.4rem;padding-top:.65rem;position:relative;overflow:hidden}.outContainer .formContainer .item .title[data-v-1826348e]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333}.outContainer .formContainer .item>input[data-v-1826348e]{font-family:PingFangSC-Regular;font-size:.8rem;color:#333;position:absolute;top:.65rem;left:4.6rem;width:13.5rem}.outContainer .formContainer .item input.disabled[data-v-1826348e],.outContainer .formContainer .item input[data-v-1826348e]:disabled,.outContainer .formContainer .item input[disabled][data-v-1826348e]{color:#333;-webkit-text-fill-color:#333;-webkit-opacity:1;opacity:1}.outContainer .formContainer .item>input[data-v-1826348e]::-webkit-input-placeholder{font-family:PingFangSC-Regular;font-size:.8rem;color:#999}.outContainer .formContainer .item>input[data-v-1826348e]:-moz-placeholder,.outContainer .formContainer .item>input[data-v-1826348e]::-moz-placeholder{font-family:PingFangSC-Regular;font-size:.8rem;color:#999}.outContainer .formContainer .item>input[data-v-1826348e]:-ms-input-placeholder{font-family:PingFangSC-Regular;font-size:.8rem;color:#999}.outContainer .btnContainer[data-v-1826348e]{margin-top:2.4rem;padding-bottom:2rem;text-align:center}.outContainer .btnContainer .btn[data-v-1826348e]{display:inline-block;width:17.05rem;padding-top:.5rem;padding-bottom:.5rem;font-family:PingFangSC-Regular;font-size:.9rem;color:#fff;background-color:#377ee1;border-radius:.2rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      orderAmount: '',
      name: '',
      cardNo: '',
      creditNo: '',
      phone: ''
    };
  },
  mounted: function mounted() {
    this.getPurchaseInfo();
  },
  methods: {
    /** 获取支付信息 */getPurchaseInfo: function getPurchaseInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_SHOPPING_ORDER_ONLINE_STAG, {
        orderId: this.$route.query.orderId
      }, function (data) {
        _this.orderAmount = data.newOrder.orderAmount;
      }, function () {}, this);
    },
    /** 确认提交在线分期 */submitInstalment: function submitInstalment() {
      var formItems = {
        orderAmount: '支付金额',
        name: '姓名',
        cardNo: '身份证号',
        creditNo: '信用卡号',
        phone: '手机号码'
      };
      for (var k in formItems) {
        if (!this[k]) {
          (0, _mintUi.Toast)({
            message: '请填写' + formItems[k],
            position: 'bottom',
            duration: 1500
          });
          return;
        }
      }
      this.$http.post(this._Api.POST_WXAUTH_ONLINE_STAGING, {
        orderId: this.$route.query.orderId,
        name: this.name,
        cardNo: this.cardNo.toUpperCase(),
        creditNo: this.creditNo,
        phone: this.phone
      }).then(function (res) {
        document.write(res.data);
      }).catch(function (err) {
        console.log(err);
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"formContainer"},[_c('div',{staticClass:"item border-bottom-1px"},[_c('div',{staticClass:"title"},[_vm._v("分期金额")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.orderAmount),expression:"orderAmount"}],attrs:{"type":"number","disabled":"","placeholder":"请输入分期金额"},domProps:{"value":(_vm.orderAmount)},on:{"input":function($event){if($event.target.composing){ return; }_vm.orderAmount=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"item border-bottom-1px"},[_c('div',{staticClass:"title"},[_vm._v("姓名")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.name),expression:"name"}],attrs:{"type":"text","placeholder":"请输入姓名"},domProps:{"value":(_vm.name)},on:{"input":function($event){if($event.target.composing){ return; }_vm.name=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"item border-bottom-1px"},[_c('div',{staticClass:"title"},[_vm._v("身份证号")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.cardNo),expression:"cardNo"}],attrs:{"type":"text","placeholder":"请输入身份证号"},domProps:{"value":(_vm.cardNo)},on:{"input":function($event){if($event.target.composing){ return; }_vm.cardNo=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"item border-bottom-1px"},[_c('div',{staticClass:"title"},[_vm._v("信用卡号")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.creditNo),expression:"creditNo"}],attrs:{"type":"number","placeholder":"请输入信用卡号"},domProps:{"value":(_vm.creditNo)},on:{"input":function($event){if($event.target.composing){ return; }_vm.creditNo=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"item border-bottom-1px"},[_c('div',{staticClass:"title"},[_vm._v("手机号码")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.phone),expression:"phone"}],attrs:{"type":"tel","maxlength":"11","placeholder":"请输入手机号码"},domProps:{"value":(_vm.phone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})])]),_vm._v(" "),_c('div',{staticClass:"btnContainer"},[_c('div',{staticClass:"btn",on:{"click":_vm.submitInstalment}},[_vm._v("确认支付")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(572);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d1fc633_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1171);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3124)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d1fc633_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d1fc633_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productFeedback_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3125);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5215e437", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{background:#f2f2f2;overflow:auto}.searchbox{margin:10px 3%;border:1px solid #e6e6e6;position:relative;background:#fff}input[type=text].searchInput{height:40px;text-indent:10px;width:70%;background:#fff;font-size:16px;-webkit-box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px;vertical-align:middle;outline:0 none}.searchbox *{-webkit-box-sizing:initial}.seachBtn{position:absolute;width:80px;height:40px;right:0;top:0;background:#b71c24 url(/static/img/cycSearch.ad74596.png) 50% no-repeat;background-size:25px 25px}.maginAuto{margin-left:0;margin-right:0}.content{margin:10px 3%}.contentbox{width:100%;height:auto;background:#fff}.hotTitle{height:48px;line-height:48px;font-size:16px;color:#9e9e9e;border-bottom:1px solid #e5e5e5}.doubtImg{width:20px;height:20px;margin-top:14px;margin-left:7px}.resultBox>li{border-bottom:1px solid #e5e5e5;font-size:16px;color:#000;padding-bottom:15px;padding-top:15px;position:relative}.goNext{font-size:20px;color:#ccc;position:absolute;right:0;height:30px;top:50%;margin-top:-15px}.moreQuestion{color:#2891ce;font-size:16px;text-align:center;height:50px;line-height:50px}.moreQuestion>span{font-size:20px}.adviseBox{background:#fff}.advise .fankui{font-size:16px;color:#8c8c8c;height:50px;line-height:50px;border-bottom:1px solid #e5e5e5}.adviseDetail{color:#000;font-size:16px;position:relative}.adviseWod{width:90%;float:left;margin-top:15px;padding-bottom:10px}.next{font-size:20px;position:absolute;right:0;top:50%;height:30px;margin-top:-15px}.adviseDetail:after{content:\"\";display:block;height:0;clear:both;visibility:hidden}.hotlineBox{font-size:14px;color:#979797;text-align:center;margin-top:25px}.hotlineBox a{color:#979797;text-decoration:underline}.fixBox{font-size:16px;height:44px;text-align:center;position:fixed;top:50%;margin-top:-22px;width:280px;left:50%;margin-left:-140px}.fixBox a{color:#357fcb}.resultBox span{width:80%;display:block}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      user: {},
      showSearchResult: true,
      weaherHaveResult: true,
      Params: {
        hot: true,
        pageSize: 10,
        keyword: '',
        pagaNum: 1,
        type: this.$route.query.type || 1
      },
      resultList: [],
      searchResultList: []
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getUserData();
    that.getData();
    that.share();
  },
  methods: {
    show: function show(ev) {
      var that = this;
      if (ev.keyCode === 13) {
        that.search();
      }
    },
    getData: function getData() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_PRODUCT_HELP_ADN_FEEDBACK, that.Params, function (data) {
        if (!data) {
          return;
        }
        that.resultList = data.list;
      }, function () {}, that);
    },
    getUserData: function getUserData() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, that.Params, function (data) {
        if (!data) {
          return;
        }
        that.user = data;
      }, function () {}, that);
    },
    search: function search() {
      var that = this;
      that.Params.hot = false;
      that.Params.pagaNum = 1;
      that.Params.pageSize = 20;
      if (!that.Params.keyword) {
        that._Util.showToast('请输入搜索内容！');
        return;
      }
      that._Util.collectPageView({
        version: '',
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        moduleType: that._Enums.COLLECT_MODULE_TYPE.PROFEEDBACK,
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        keyword: that.Params.keyword
      }, that);
      that._Util.post(that._Api.POST_SYS_PRODUCT_HELP_ADN_FEEDBACK, that.Params, function (data) {
        that.showSearchResult = false;
        if (!data.list) {
          that.weaherHaveResult = false;
        } else {
          that.weaherHaveResult = true;
          that.searchResultList = data.list;
          var _iterator = _createForOfIteratorHelper(that.searchResultList),
            _step;
          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var o = _step.value;
              o.title += '<div class="goNext"> > </div>';
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }
      }, function () {}, that);
    },
    goMoreQuestion: function goMoreQuestion() {
      this.$router.push({
        name: 'moreQuestion',
        query: {
          type: this.Params.type
        }
      });
    },
    cacel: function cacel() {
      return;
    },
    openDetail: function openDetail(n) {
      var that = this;
      that._Util.collectPageView({
        version: '',
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        moduleType: that._Enums.COLLECT_MODULE_TYPE.PROFEEDBACK,
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        keyword: n.title
      }, that);
      window.location.href = '/v2/system/productFeedback/questionDetail?id=' + n.id;
    },
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = {
            title: '卡修宝典产品帮助中心',
            desc: '常见问题及解决方案集锦',
            link: that._Api.HOSTRESOURCEPATH + '/v2/system/productFeedback/productFeedback',
            imgUrl: 'https://static1.kaxiuyun.com/static/img/producefeed.jpg',
            success: function success() {},
            cancel: function cancel() {}
          };
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
        });
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch"}},[_c('div',{staticClass:"searchbox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.Params.keyword),expression:"Params.keyword"}],staticClass:"searchInput",attrs:{"type":"text","placeholder":"请输入搜索内容"},domProps:{"value":(_vm.Params.keyword)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&$event.keyCode!==13){ return null; }return _vm.show($event)},"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.Params, "keyword", $event.target.value)}}}),_vm._v(" "),_c('button',{staticClass:"seachBtn",on:{"click":function($event){return _vm.search()}}})]),_vm._v(" "),(_vm.showSearchResult)?_c('div',[_c('div',{staticClass:"contentbox"},[_c('div',{staticClass:"content"},[_c('div',{staticClass:"hotTitle maginAuto",on:{"click":function($event){return _vm.cacel()}}},[_vm._v("诊断能手热点问题\n          ")]),_vm._v(" "),_c('ul',{staticClass:"resultBox"},_vm._l((_vm.resultList),function(v,i){return _c('li',{key:i,attrs:{"id":v.id},on:{"click":function($event){return _vm.openDetail(v)}}},[_vm._v("\n            "+_vm._s(v.title)+"\n            "),_vm._v(" "),_c('a',{staticClass:"goNext"},[_vm._v(" > ")])])}),0)])]),_vm._v(" "),_c('div',{staticClass:"moreQuestion",on:{"click":function($event){return _vm.goMoreQuestion()}}},[_vm._v("更多问题"),_c('span',[_vm._v(" >> ")])]),_vm._v(" "),_c('div',{staticClass:"adviseBox"},[_c('div',{staticClass:"advise content"},[_c('div',{staticClass:"fankui",on:{"click":function($event){return _vm.cacel()}}},[_vm._v("意见反馈")]),_vm._v(" "),_c('div',{staticClass:"adviseDetail"},[_c('a',{attrs:{"href":'https://www.sojump.hk/jq/14026524.aspx?sojumpparm='+ _vm.user.userId + '_' + _vm.user.uphone + '_'+ _vm.user.uname}},[_c('div',{staticClass:"adviseWod"},[_vm._v("\n                                                                                                                               您在使用产品过程中，有什么问题可以在此留言告诉小轨，小轨会火速联系老师们前来解决\n                                                                                                                             ")]),_vm._v(" "),_c('span',{staticClass:"next"},[_vm._v(" > ")])])])])]),_vm._v(" "),_vm._m(0)]):_vm._e(),_vm._v(" "),(!_vm.showSearchResult)?_c('div',{staticClass:"content"},[(_vm.weaherHaveResult)?_c('div',[_c('div',{staticClass:"hotTitle maginAuto"},[_vm._v("相关问题\n        ")]),_vm._v(" "),_c('ul',{staticClass:"resultBox"},_vm._l((_vm.searchResultList),function(o,i){return _c('li',{key:i,attrs:{"id":o.id},domProps:{"innerHTML":_vm._s(o.title)},on:{"click":function($event){return _vm.openDetail(o)}}})}),0)]):_vm._e(),_vm._v(" "),(!_vm.weaherHaveResult)?_c('div',{staticClass:"fixBox"},[_c('div',[_vm._v("暂无相关问题，请重新搜索或")]),_vm._v(" "),_c('div',[_c('a',{attrs:{"href":'https://www.sojump.hk/jq/14026524.aspx?sojumpparm='+ _vm.user.userId + '_' + _vm.user.uphone + '_'+ _vm.user.uname}},[_vm._v("提交问题反馈")])])]):_vm._e()]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"hotlineBox"},[_c('div',[_vm._v("售后热线 ："),_c('a',{attrs:{"href":"tel:4006111828"}},[_vm._v("4006111828")])]),_vm._v(" "),_c('div',[_vm._v("©卡修宝典")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(573);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f06bda4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1172);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3126)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f06bda4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f06bda4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_oldFriend_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3127);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("61223881", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{width:100%;height:100%;background:url(" + escape(__webpack_require__(1449)) + ") 0 0 no-repeat}.o-top{width:100%;background:url(" + escape(__webpack_require__(1450)) + ") 0 0 no-repeat}.o-text{padding:7px 20px;font-size:14px;color:#fefefe}.o-imgBox{padding:0 20px;position:relative}.o-oldFriend{width:100%}.o-a1{width:95%;position:absolute;bottom:0;left:50%;-webkit-transform:translatex(-50%);-ms-transform:translatex(-50%);transform:translatex(-50%)}.o-bottom-box{width:100%;background:url(" + escape(__webpack_require__(1451)) + ") 0 0 no-repeat;background-size:100% 100%}.o-bottom{width:100%;overflow:hidden}.o-text-desc-ul li{padding:0 20px;font-size:18px;color:#54463c;margin-top:20px}.o-text-desc-ul li:last-child{margin-top:7px}.o-text-desc-ul li span{display:inline-block;width:5px;height:5px;background:#54463c;border-radius:50%;margin-right:5px}.o-send{width:80%;display:block;margin:10px auto 0}.o-flex-box{width:85%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 auto}.flex-item{width:20%;text-align:center;margin-top:10px}.flex-img{width:42px;height:42px;border-radius:50%}.flex-txt{font-size:12px;color:#575753;margin-top:10px}.o-name{display:inline-block;padding:1px 22px;background:#3a3839;color:#fff;-webkit-transform:skew(-30deg);-ms-transform:skew(-30deg);transform:skew(-30deg);z-index:1;left:15px;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.o-last,.o-name{position:absolute;top:3px}.o-last{right:15px}.o-mask{width:100%;height:100%;position:fixed;background:rgba(0,0,0,.5);z-index:10}.shareMan{width:60%;position:absolute;top:25px;right:10px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/bg.62ad402.jpg";module.exports = __webpack_require__.p + "static/img/small-bg.e2fe373.png";module.exports = __webpack_require__.p + "static/img/a22.755ba65.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      shareuserID: this.$route.query.shareuserID || '',
      userInfo: {},
      num: '',
      uname: '',
      isShowMask: false,
      friendList: []
    };
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageView2({
      postUrl: that._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: '活动',
      operate_page: '老友卡',
      optionType: '打开页面'
    }, that);
    that.getUserInfo();
  },
  methods: {
    showMask: function showMask() {
      this.isShowMask = true;
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.userInfo = data;
        if (that.userInfo.userId == that.shareuserID) {
          that.getNum();
          that.getFriends();
        } else {
          that.$router.replace({
            name: 'oldFriendSecond',
            query: {
              shareuserID: that.shareuserID
            }
          });
        }
        setTimeout(function () {
          that.share();
        }, 500);
      }, function () {}, that);
    },
    getNum: function getNum() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'old_friend',
        'pageSize': 10,
        'pageNum': 1,
        shareuserid: that.shareuserID
      }, function (data) {
        that.num = data.dataList[0].num;
        that.uname = data.dataList[0].uname;
      }, function () {}, that);
    },
    getFriends: function getFriends() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'old_friend_num ',
        'pageSize': 10,
        'pageNum': 1,
        shareuserid: that.shareuserID
      }, function (data) {
        that.friendList = data.dataList;
      }, function () {}, that);
    },
    share: function share() {
      var that = this;
      var title = '';
      if (that.uname) {
        title = '我是' + that.uname + ',送你一张卡修宝典老友卡，持卡买设备直降1000元';
      } else {
        title = '我是卡修宝典会员,送你一张卡修宝典老友卡，持卡买设备直降1000元';
      }
      var url = location.origin + '/v2/system/single/oldFriend?shareuserID=' + that.userInfo.userId;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = {
            title: title,
            desc: '快来激活吧',
            link: url,
            imgUrl: 'http://static1.kaxiuyun.com/kxy_lyk.jpg',
            success: function success() {
              that.isShowMask = false;
            },
            cancel: function cancel() {}
          };
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
        });
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isShowMask)?_c('div',{staticClass:"o-mask",on:{"click":function($event){_vm.isShowMask = false}}},[_c('img',{staticClass:"shareMan",attrs:{"src":__webpack_require__(3128)}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"o-top"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"o-imgBox"},[_c('img',{staticClass:"o-a1",attrs:{"src":__webpack_require__(1452)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","position":"relative"}},[(_vm.uname)?_c('div',{staticClass:"o-name"},[_vm._v(_vm._s(_vm.uname)+"专属")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"o-last"},[_vm._v("剩余\n          "),_c('span',{staticStyle:{"color":"#c44726"}},[_vm._v(_vm._s(_vm.num || 0))]),_vm._v("\n          张")]),_vm._v(" "),_c('img',{staticClass:"o-oldFriend",attrs:{"src":__webpack_require__(1453)}})])])]),_vm._v(" "),_c('div',{staticClass:"o-bottom-box"},[_c('div',{staticClass:"o-bottom"},[_vm._m(1),_vm._v(" "),_c('img',{staticClass:"o-send",attrs:{"src":__webpack_require__(3129)},on:{"click":function($event){return _vm.showMask()}}}),_vm._v(" "),_c('img',{staticStyle:{"display":"block","width":"80%","margin":"10px auto"},attrs:{"src":__webpack_require__(3130)}}),_vm._v(" "),(_vm.friendList && _vm.friendList.length >0)?_c('div',{staticClass:"o-flex-box"},_vm._l((_vm.friendList),function(v,i){return _c('div',{key:i,staticClass:"flex-item"},[_c('img',{staticClass:"flex-img",attrs:{"src":v.headimg}}),_vm._v(" "),_c('div',{staticClass:"flex-txt"},[_vm._v(_vm._s(v.uname))])])}),0):_vm._e()])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"o-text"},[_c('div',[_vm._v("亲爱的老朋友")]),_vm._v(" "),_c('div',{staticStyle:{"text-indent":"28px"}},[_vm._v("小轨送您几张老友卡，请分享给您的朋友")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"o-text-desc-ul"},[_c('li',[_c('span'),_vm._v("您可将老友卡赠送好友，好友激活后，您可获得100元书籍代金券。")]),_vm._v(" "),_c('li',[_c('span'),_vm._v("拥有老友卡的好友，购买MFT100系列产品，每台在现价基础上直降1000元。")])])}]
module.exports = __webpack_require__.p + "static/img/shareMan.8a671f6.png";module.exports = __webpack_require__.p + "static/img/a1.5357d35.png";module.exports = __webpack_require__.p + "static/img/oldFriend.2f725db.png";module.exports = __webpack_require__.p + "static/img/send.38fa624.png";module.exports = __webpack_require__.p + "static/img/t11.08b584a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(574);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f1eadfb0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1173);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3131)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f1eadfb0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f1eadfb0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_oldFriendSecond_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3132);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0c4061a9", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{width:100%;height:100%;background:url(" + escape(__webpack_require__(1449)) + ") 0 0 no-repeat}.o-top{width:100%;background:url(" + escape(__webpack_require__(1450)) + ") 0 0 no-repeat}.o-text{padding:7px 20px;font-size:14px;color:#fefefe}.o-imgBox{padding:0 20px;position:relative}.o-oldFriend{width:100%}.o-a1{width:95%;position:absolute;bottom:0;left:50%;-webkit-transform:translatex(-50%);-ms-transform:translatex(-50%);transform:translatex(-50%)}.o-bottom,.o-bottom-box{width:100%}.o-bottom{background:url(" + escape(__webpack_require__(1451)) + ") 0 0 no-repeat;background-size:100% 100%;overflow:hidden}.o-text-desc-ul li{padding:0 20px;font-size:30px;text-align:center;color:#54463c;margin-top:20px}.o-text-desc-ul li:last-child{margin-top:7px}.o-text-desc-ul li span{display:inline-block;width:5px;height:5px;background:#54463c;border-radius:50%;margin-right:5px}.o-send{width:80%;display:block;margin:10px auto 0}.o-flex-box{width:85%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin:0 auto}.flex-item{width:20%;text-align:center}.flex-img{width:42px;height:42px;border-radius:50%}.flex-txt{font-size:12px;color:#575753;margin-top:10px}.o-name{display:inline-block;padding:1px 22px;background:#3a3839;color:#fff;-webkit-transform:skew(-30deg);-ms-transform:skew(-30deg);transform:skew(-30deg);position:absolute;z-index:1;top:3px;left:15px;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      shareuserID: this.$route.query.shareuserID || '',
      userInfo: {},
      reg: '',
      uname: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getUserInfo();
  },
  methods: {
    getNum: function getNum() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'old_friend',
        'pageSize': 10,
        'pageNum': 1,
        shareuserid: that.shareuserID
      }, function (data) {
        that.uname = data.dataList[0].uname;
        that.share();
      }, function () {}, that);
    },
    activation: function activation() {
      var that = this;
      if (that.userInfo.userStatus == 0) {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '您尚未认证，请先认证',
          showConfirmButton: true,
          showCancelButton: true,
          confirmButtonText: '认证',
          cancelButtonText: '取消',
          closeOnClickModal: false
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.push({
              name: 'personalCertification',
              query: {
                nextPath: window.location.href
              }
            });
          }
        });
      } else {
        that.getIsClick();
      }
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.userInfo = data;
        that.getNum();
      }, function () {}, that);
    },
    getIsClick: function getIsClick() {
      var that = this;
      var id = that.userInfo.userId + '_' + that.shareuserID;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'old_friend_reg ',
        'pageSize': 10,
        'pageNum': 1
      }, function (data) {
        that.reg = data.dataList[0].reg;
        if (that.reg == 0) {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '已绑定老友卡',
            showConfirmButton: true,
            showCancelButton: false,
            confirmButtonText: '确定',
            closeOnClickModal: false
          }).then(function (action) {});
        } else {
          if (that._Util.isIOS) {
            window.location.replace('https://kaxiuyun.wjx.cn/jq/21475086.aspx?sojumpparm=' + id);
          } else {
            location.href = 'https://kaxiuyun.wjx.cn/jq/21475086.aspx?sojumpparm=' + id;
          }
          //
        }
      }, function () {}, that);
    },
    share: function share() {
      var that = this;
      var title = '';
      if (that.uname) {
        title = '我是' + that.uname + ',送你一张卡修宝典老友卡，持卡买设备直降1000元';
      } else {
        title = '我是卡修宝典会员,送你一张卡修宝典老友卡，持卡买设备直降1000元';
      }
      var url = location.origin + '/v2/system/single/oldFriend?shareuserID=' + that.userInfo.userId;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = {
            title: title,
            desc: '快来激活吧',
            link: url,
            imgUrl: 'http://static1.kaxiuyun.com/kxy_lyk.jpg',
            success: function success() {},
            cancel: function cancel() {}
          };
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
        });
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"o-top"},[_c('div',{staticClass:"o-imgBox"},[_c('img',{staticClass:"o-a1",attrs:{"src":__webpack_require__(1452)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","position":"relative"}},[(_vm.uname)?_c('div',{staticClass:"o-name"},[_vm._v(_vm._s(_vm.uname)+"专属")]):_vm._e(),_vm._v(" "),_c('img',{staticClass:"o-oldFriend",attrs:{"src":__webpack_require__(1453)}})])])]),_vm._v(" "),_c('div',{staticClass:"o-bottom-box"},[_c('div',{staticClass:"o-bottom"},[_c('img',{staticClass:"o-send",staticStyle:{"margin-top":"30px"},attrs:{"src":__webpack_require__(3133)},on:{"click":function($event){return _vm.activation()}}}),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('img',{staticStyle:{"display":"block","width":"80%","margin":"20px auto"},attrs:{"src":__webpack_require__(3134)}})])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"o-text-desc-ul"},[_c('li',[_vm._v("\n          激活老友卡")]),_vm._v(" "),_c('li',[_vm._v("买设备直降1000元")])])}]
module.exports = __webpack_require__.p + "static/img/but.b54f633.png";module.exports = __webpack_require__.p + "static/img/t22.f73bd6a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(575);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_746bc67e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1174);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3135)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-746bc67e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_746bc67e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_746bc67e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productFeedbackDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3136);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5e6e6283", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".imgList[data-v-746bc67e]{overflow-x:scroll;margin-top:16px;border-bottom:10px solid #e9e9e9;padding-bottom:15px}.imgList li[data-v-746bc67e]{width:90px;height:90px;margin-left:20px;float:left}.imgList li img[data-v-746bc67e]{width:100%;height:100%}.title[data-v-746bc67e]{font-size:16px;border-left:4px solid #ee4545;padding-left:16px;color:#666;background:#fff}.content[data-v-746bc67e]{padding-left:20px;margin-top:12px;background:#fff}.content>div[data-v-746bc67e]{color:#333;font-size:16px;border-bottom:1px solid #dddde4;padding-bottom:13px}.xiaogui[data-v-746bc67e]{height:56px;position:relative}.logo[data-v-746bc67e]{width:36px;height:36px;position:absolute;top:12px;left:0;margin-left:0}.rp[data-v-746bc67e]{position:absolute;left:44px;font-size:16px;color:#ee4545;top:19px}.content1[data-v-746bc67e]{padding-left:20px}.mask[data-v-746bc67e]{width:100%;height:100%;background:rgba(0,0,0,.2);position:fixed;z-index:1000;display:none}#imgshow[data-v-746bc67e]{position:absolute;width:100%;height:auto;top:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _alloyfinger = _interopRequireDefault(__webpack_require__(121));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default
  },
  data: function data() {
    return {
      result: {}
    };
  },
  created: function created() {
    var that = this;
    that.getResult();
  },
  mounted: function mounted() {
    (0, _jquery.default)('body').delegate('.mask', 'click', function () {
      (0, _jquery.default)('.mask').hide();
    });
    var el = document.getElementById('imgshow');
    var initScale = 1;
    var sc = 1;
    var mox, moy;
    // eslint-disable-next-line no-unused-vars
    var af = new _alloyfinger.default(el, {
      touchStart: function touchStart() {
        mox = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[4]);
        moy = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[5]);
      },
      pressMove: function pressMove(evt) {
        mox += evt.deltaX;
        moy += evt.deltaY;
        el.style.webkitTransform = 'translateX(' + mox + 'px) translateY(' + moy + 'px) scale(' + sc + ')';
        evt.preventDefault();
      },
      pinch: function pinch(evt) {
        sc = initScale * evt.zoom;
        el.style.webkitTransform = 'scale(' + sc + ')';
        //                if(sc< 0.5){
        //                  el.style.webkitTransform = 'scale(0.5)'
        //                } else{
        //                  el.style.webkitTransform = 'scale('+ sc +')'
        //                }
      },
      multipointStart: function multipointStart() {
        initScale = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[0]);
      }
    });
  },
  methods: {
    getResult: function getResult() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/faultFeedback/detail.json', {
        id: that.$route.query.id
      }, function (data) {
        that.result = data;
        if (that.result.faultCodeUrls !== null && that.result.faultCodeUrls.length > 0) {
          that.result.faultCodeUrls = that.result.faultCodeUrls.split(',');
        }
        //          alert(JSON.stringify(that.result))
      }, function () {}, that);
    },
    openImg: function openImg(text) {
      var that = this;
      if (that._Util.isApp()) {
        var imageBrowser = api.require('imageBrowser');
        imageBrowser.openImages({
          imageUrls: [text]
        });
      } else {
        (0, _jquery.default)('.mask').show();
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'scale(0)';
        (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'translateX(0px) translateY(0px)';
        (0, _jquery.default)('#imgshow').attr('src', text);
        var maskHi = (0, _jquery.default)('#imgshow').height() / 2;
        (0, _jquery.default)('#imgshow').css('marginTop', -maskHi);
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"title",staticStyle:{"margin-top":"16px"}},[_vm._v("资料类型")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',[_vm._v(_vm._s(_vm.result.dataTypeStr || ''))])]),_vm._v(" "),_c('div',{staticClass:"title",staticStyle:{"margin-top":"16px"}},[_vm._v("关键字")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',[_vm._v(_vm._s(_vm.result.faultCode || ''))])]),_vm._v(" "),_c('div',{staticClass:"title",staticStyle:{"margin-top":"16px"}},[_vm._v("资料描述")]),_vm._v(" "),_c('div',{staticClass:"content"},[_c('div',[_vm._v(_vm._s(_vm.result.dataDescribe || ''))])]),_vm._v(" "),_c('div',{staticClass:"title",staticStyle:{"margin-top":"16px"}},[_vm._v("相关图片")]),_vm._v(" "),_c('ul',{staticClass:"imgList"},_vm._l((_vm.result.faultCodeUrls),function(v,i){return _c('li',{key:i},[_c('img',{attrs:{"src":v},on:{"click":function($event){return _vm.openImg(v)}}})])}),0),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('div',{staticStyle:{"padding-left":"20px"}},[_c('div',{staticStyle:{"font-size":"16px","padding-bottom":"20px"}},[_vm._v(_vm._s(_vm.result.revertContent || ''))])]),_vm._v(" "),_c('Poking-me-component',{attrs:{"position-id":4}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask"},[_c('img',{attrs:{"id":"imgshow"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"content1"},[_c('div',{staticClass:"xiaogui"},[_c('div',{staticClass:"rp"},[_vm._v("小轨回复")])])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(576);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62c97938_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1175);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3137)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62c97938_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62c97938_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3138);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6a6fdefb", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body,html{width:100%;height:100%}.resulyBox{position:relative}.sy-img{position:absolute;top:0;left:0;z-index:99;width:100%;height:100%;background:url(" + escape(__webpack_require__(3139)) + ") repeat-y;background-size:100% auto;pointer-events:none}.title{margin:0 auto;width:94%;padding:20px 0 4px;font-size:20px;color:#333;font-family:PingFangSC-Semibold;font-weight:bolder}.special{color:#ee4545;background:#fff;border:1px solid #ee4545;border-radius:3px;-webkit-border-radius:3px;padding:0 5px;height:20px;line-height:20px;font-size:12px;position:absolute;top:0;right:0}.nolikeCon{text-align:center;color:#333}.resulyBox{width:94%;margin:0 auto}.writeMessage{width:100%;text-align:right;position:fixed;bottom:0;left:0;color:#51719a;font-size:16px;margin:0 auto;overflow:hidden;background:#fff;height:49px;border-top:1px solid #eee;z-index:99}.writeMessage1{float:left;width:55%;padding-left:5px;height:32px;line-height:32px;margin-top:8px;margin-left:16px;background:#f1f1f1;border-radius:4px}.resulyBox img{max-width:100%;height:auto}.resulyBox .noSave{pointer-events:none}.resulyBox section{max-width:100%;height:auto}.resulyBox p{font-size:16px}.resulyBox #contBox>section{overflow:hidden}.resulyBox #contBox>*{max-width:100%!important}li{list-style:inherit}#audioPlayer{margin-top:24px;margin-bottom:20px}.redcolor{color:#ee4545}.db{display:block}.weixinAudio{line-height:1.5;width:92%;margin:0 auto}.audio_area{display:inline-block;width:100%;vertical-align:top;margin:0 1px 0 0;font-size:0;position:relative;font-weight:400;text-decoration:none;text-size-adjust:none}.audio_wrp{border:1px solid #ebebeb;background-color:#fcfcfc;overflow:hidden;padding:12px 20px 12px 12px}.audio_play_area{float:left;margin:9px 22px 10px 5px;font-size:0;width:18px;height:25px}.playing .audio_play_area .icon_audio_default{display:block}.audio_play_area .icon_audio_default{background:transparent url(" + escape(__webpack_require__(1676)) + ") no-repeat 0 0;width:18px;height:25px;vertical-align:middle;display:inline-block;background-size:54px 25px;background-position:-36px}.audio_play_area .icon_audio_playing{background:transparent url(" + escape(__webpack_require__(1676)) + ") no-repeat 0 0;width:18px;height:25px;vertical-align:middle;background-size:54px 25px;-webkit-animation:audio_playing 1s infinite;background-position:0;display:none}.audio_area .pic_audio_default{display:none;width:18px}.tips_global{color:#8c8c8c}.audio_area .audio_length{float:right;font-size:14px;margin-left:1em;line-height:44px}.audio_info_area{overflow:hidden}.audio_area .audio_title{font-weight:400;font-size:17px;margin-top:-2px;margin-bottom:-3px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.audio_area .audio_source{font-size:14px}.audio_area .progress_bar{position:absolute;left:0;bottom:0;background-color:#0cbb08;height:2px}.playing .audio_play_area .icon_audio_default{display:none}.playing .audio_play_area .icon_audio_playing{display:inline-block}#videobox{width:100%;height:200px}#videobox #video{width:100%;height:100%;background:#000}@-webkit-keyframes audio_playing{30%{background-position:0}31%{background-position:-18px}61%{background-position:-18px}61.5%{background-position:-36px}to{background-position:-36px}}.mask{background:rgba(0,0,0,.5);z-index:99999}.mask,.mask1{width:100%;height:100%;position:fixed}.mask1{background:rgba(0,0,0,.2);z-index:1000;display:none}#imgshow{position:absolute;width:100%;height:auto;top:50%;-webkit-transform:rotate(0deg);transform:rotate(0deg);-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg)}.fdBox{width:100%;margin:25px 0;display:-webkit-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.fdBox>div{width:28%;width:100px;height:32px;border:1px solid #a6a6a6;border-radius:50px}.fdBox>div>div{overflow:hidden}.fdBox>div:first-of-type>div img{float:left;margin:5px 10px 0 25px}.fdBox>div:first-of-type>div .nolikeCon{float:left;margin-top:5px}.fdBox>div>div img{pointer-events:none}.fdBox>div:nth-of-type(2)>div img{float:left;margin:5px 10px 0}.fdBox>div:nth-of-type(2)>div .nolikeCon{float:left;margin-top:5px}.fdBox>div.active{border:1px solid #ee4545}.noLikeBox{width:90%;margin:0 auto;border-radius:4px;-webkit-border-radius:4px;background:#fff;margin-top:45px}.inputArea,.inputBox{width:95%;height:200px;margin:0 auto;display:block;margin-top:12px;padding-left:7px;border:none;font-size:16px;color:#666}.controlBox{width:100%;margin-top:14px;overflow:hidden;border-top:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding:10px 0}.controlBox span{font-size:18px;color:#666;width:50%;text-align:center}.controlBox span:nth-of-type(2){color:#ee4545;border-left:1px solid #b9b9b9}.faceBox{width:90%;margin:0 auto;height:150px;overflow-y:scroll}.faceBox li{float:left}.faceBox img{pointer-events:none}.Recommend{margin-top:20px;border-top:1px solid hsla(0,0%,95%,.8)}.leaveMessageBox{width:100%;margin:0 auto;border-top:20px solid #f5f5f5;padding-top:5px;margin-bottom:50px}.con{font-weight:bolder;position:relative;height:30px;line-height:30px;width:92%;margin:20px auto 0;font-size:18px;color:#333}.mssageBox{width:92%;margin:0 auto;padding-bottom:35px}.mssageBox li{overflow:hidden;margin-top:40px}.leftSide,.rightSide{float:left;width:85%}.leftSide{width:15%}.leftSide>div img{pointer-events:none}.content img{vertical-align:middle}.name{font-size:16px}.time,.time span{font-size:12px;color:#666}.name1{margin-top:12px;color:#ee4545}.content{font-size:16px;margin-top:11px;color:#333}.writeMessage img{width:20px;height:20px;float:left}.writeFlex{width:40%;float:right;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-top:16px;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.writeFlex .conPic1{pointer-events:none}.conPic2,.conPic3{margin-top:-2px}.errorCollect{bottom:28%}.errorCollect,.toupImg{width:44px;height:44px;position:fixed;z-index:999;right:16px}.toupImg{bottom:14%}.shareMAsk{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.3)}.shareMAsk img{width:50%;position:absolute;right:10px;top:10px;pointer-events:none}textarea::-webkit-input-placeholder{color:#666;font-size:16px}textarea:-moz-placeholder,textarea::-moz-placeholder{color:#666;font-size:16px}textarea:-ms-input-placeholder{color:#666;font-size:16px}.br-left{width:2px;height:14px;background:#ee4545;position:absolute;top:50%;margin-top:-7px}.put-question-btn{position:fixed;right:16px;bottom:21%;z-index:999;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:2.1rem;height:2.1rem;background:-webkit-gradient(linear,left top,left bottom,from(#5fa4fd),to(#177afa));background:linear-gradient(180deg,#5fa4fd,#177afa);box-shadow:0 .05rem .1rem 0 rgba(33,128,251,.3);border-radius:100%;overflow:hidden;text-shadow:0 0 0 #2b65af;font-weight:600;font-size:10px;color:#fff}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/bg-2.e94ac27.png";module.exports = __webpack_require__.p + "static/img/iconloop.1605f05.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _alloyfinger = _interopRequireDefault(__webpack_require__(121));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _fmsComponent = _interopRequireDefault(__webpack_require__(1454));
var _mintUi = __webpack_require__(7);
var _DataTips = _interopRequireDefault(__webpack_require__(787));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default,
    fmsComponent: _fmsComponent.default,
    DataTips: _DataTips.default
  },
  data: function data() {
    return {
      result: '',
      title: '',
      width: null,
      messageList: {},
      userInfoResult: {},
      url: null,
      source: null,
      duration: null,
      type: '',
      noLikeMessage: '',
      showMask: false,
      faceList: [{
        text: '[微笑]',
        key: 'weixiao'
      }, {
        text: '[撇嘴]',
        key: 'pizui'
      }, {
        text: '[色]',
        key: 'se'
      }, {
        text: '[发呆]',
        key: 'deyi'
      }, {
        text: '[流泪]',
        key: 'liulei'
      }, {
        text: '[害羞]',
        key: 'haixiu'
      }, {
        text: '[闭嘴]',
        key: 'bizui'
      }, {
        text: '[睡觉]',
        key: 'shuijiao'
      }, {
        text: '[大哭]',
        key: 'daku'
      }, {
        text: '[尴尬]',
        key: 'gangga'
      }, {
        text: '[大怒]',
        key: 'danu'
      }, {
        text: '[调皮]',
        key: 'tiaopi'
      }, {
        text: '[呲牙]',
        key: 'ciya'
      }, {
        text: '[惊讶]',
        key: 'jingya'
      }, {
        text: '[难过]',
        key: 'nanguo'
      }, {
        text: '[酷]',
        key: 'ku'
      }, {
        text: '[冷汗]',
        key: 'lenghan'
      }, {
        text: '[抓狂]',
        key: 'zhuakuang'
      }, {
        text: '[吐]',
        key: 'tu'
      }, {
        text: '[偷笑]',
        key: 'touxiao'
      }, {
        text: '[可爱]',
        key: 'keai'
      }, {
        text: '[白眼]',
        key: 'baiyan'
      }, {
        text: '[饥饿]',
        key: 'er'
      }, {
        text: '[困]',
        key: 'kun'
      }, {
        text: '[惊恐]',
        key: 'jingkong'
      }, {
        text: '[流汗]',
        key: 'liuhan'
      }, {
        text: '[憨笑]',
        key: 'haha'
      }, {
        text: '[大兵]',
        key: 'dabing'
      }, {
        text: '[奋斗]',
        key: 'fendou'
      }, {
        text: '[咒骂]',
        key: 'ma'
      }, {
        text: '[疑问]',
        key: 'wen'
      }, {
        text: '[嘘]',
        key: 'xu'
      }, {
        text: '[晕]',
        key: 'yun'
      }, {
        text: '[折磨]',
        key: 'zhemo'
      }, {
        text: '[衰]',
        key: 'shuai'
      }, {
        text: '[骷髅]',
        key: 'kulou'
      }, {
        text: '[敲打]',
        key: 'da'
      }, {
        text: '[擦汗]',
        key: 'cahan'
      }, {
        text: '[挖鼻]',
        key: 'wabi'
      }, {
        text: '[鼓掌]',
        key: 'guzhang'
      }, {
        text: '[糗大了]',
        key: 'qioudale'
      }, {
        text: '[坏笑]',
        key: 'huaixiao'
      }, {
        text: '[左哼哼]',
        key: 'zuohengheng'
      }, {
        text: '[右哼哼]',
        key: 'youhengheng'
      }, {
        text: '[哈欠]',
        key: 'haqian'
      }, {
        text: '[鄙视]',
        key: 'bishi'
      }, {
        text: '[委屈]',
        key: 'weiqu'
      }, {
        text: '[哭了]',
        key: 'ku'
      }, {
        text: '[快哭了]',
        key: 'kuaikule'
      }, {
        text: '[阴险]',
        key: 'yinxian'
      }, {
        text: '[亲亲]',
        key: 'qinqin'
      }, {
        text: '[亲吻]',
        key: 'kiss'
      }, {
        text: '[吓]',
        key: 'xia'
      }, {
        text: '[可怜]',
        key: 'kelian'
      }, {
        text: '[菜刀]',
        key: 'caidao'
      }, {
        text: '[西瓜]',
        key: 'xigua'
      }, {
        text: '[啤酒]',
        key: 'pijiu'
      }, {
        text: '[篮球]',
        key: 'lanqiu'
      }, {
        text: '[乒乓]',
        key: 'pingpang'
      }, {
        text: '[咖啡]',
        key: 'kafei'
      }, {
        text: '[饭]',
        key: 'fan'
      }, {
        text: '[猪头]',
        key: 'zhutou'
      }, {
        text: '[玫瑰]',
        key: 'hua'
      }, {
        text: '[凋谢]',
        key: 'diaoxie'
      }, {
        text: '[爱心]',
        key: 'love'
      }, {
        text: '[心碎]',
        key: 'xinsui'
      }, {
        text: '[蛋糕]',
        key: 'dangao'
      }, {
        text: '[闪电]',
        key: 'shandian'
      }, {
        text: '[地雷]',
        key: 'zhadan'
      }, {
        text: '[刀]',
        key: 'dao'
      }, {
        text: '[足球]',
        key: 'qiu'
      }, {
        text: '[虫]',
        key: 'chong'
      }, {
        text: '[便便]',
        key: 'dabian'
      }, {
        text: '[月亮]',
        key: 'yueliang'
      }, {
        text: '[太阳]',
        key: 'taiyang'
      }, {
        text: '[礼物]',
        key: 'liwu'
      }, {
        text: '[拥抱]',
        key: 'yongbao'
      }, {
        text: '[强]',
        key: 'qiang'
      }, {
        text: '[弱]',
        key: 'ruo'
      }, {
        text: '[握手]',
        key: 'woshou'
      }, {
        text: '[胜利]',
        key: 'shengli'
      }, {
        text: '[佩服]',
        key: 'peifu'
      }, {
        text: '[勾引]',
        key: 'gouyin'
      }, {
        text: '[拳头]',
        key: 'quantou'
      }, {
        text: '[差劲]',
        key: 'chajin'
      }, {
        text: '[干杯]',
        key: 'cheer'
      }, {
        text: '[NO]',
        key: 'no'
      }, {
        text: '[OK]',
        key: 'ok'
      }, {
        text: '[给力]',
        key: 'geili'
      }, {
        text: '[飞吻]',
        key: 'feiwen'
      }, {
        text: '[跳跳]',
        key: 'tiao'
      }, {
        text: '[发抖]',
        key: 'fadou'
      }, {
        text: '[怄火]',
        key: 'dajiao'
      }, {
        text: '[转圈]',
        key: 'zhuanquan'
      }, {
        text: '[磕头]',
        key: 'ketou'
      }, {
        text: '[回头]',
        key: 'huitou'
      }, {
        text: '[跳绳]',
        key: 'tiaosheng'
      }, {
        text: '[挥手]',
        key: 'huishou'
      }, {
        text: '[激动]',
        key: 'jidong'
      }, {
        text: '[街舞]',
        key: 'tiaowu'
      }, {
        text: '[献吻]',
        key: 'xianwen'
      }, {
        text: '[左太极]',
        key: 'youtaiji'
      }, {
        text: '[右太极]',
        key: 'zuotaiji'
      }],
      noLikeFlag: true,
      leaveMessage: '',
      showFaceList: false,
      flag: this.$route.query.flag || '',
      showTop: false,
      showShareBox: false,
      canInput: true,
      appShowSpecial: false,
      recommendFms: [],
      // subject: this.$route.query.subject + ''
      subject: '',
      // 专题号由从url获取改为从详情接口获取
      videoUrl: '',
      id: this.$route.query.id,
      // 获取运营文档id
      subjectTitle: '',
      videoType: 0,
      // 视频的类型： 0或者'' 横屏  1 竖屏,
      inWxMiniApp: localStorage.getItem('inWxMinapp') === '1' // 是否在微信小程序打开
    };
  },
  watch: {
    appShowSpecial: function appShowSpecial(newval, olaval) {
      if (newval) {
        this._Util.acSendEvent({
          name: 'chageHeader',
          extra: {
            showSpacial: true,
            subject: this.subject,
            title: this.subjectTitle
          }
        });
      } else {
        this._Util.acSendEvent({
          name: 'chageHeader',
          extra: {
            showSpacial: false
          }
        });
      }
    },
    '$route': function $route(to, from) {
      this.$router.go(0);
    }
  },
  created: function created() {
    var that = this;
    that.getData();
    that.getDuration();
    that.getMessage();
    //      that.getUserInfo();
    that.share();
    that._Util.collectPageView({
      version: that._Util.version,
      postUrl: that._Api.POST_COLLECT,
      url: window.location.href,
      moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
      operate_page: that._Util.isApp() ? 'APP' : '微信菜单',
      optionType: '打开页面'
    }, that);
  },
  destroyed: function destroyed() {
    var el = document.getElementById('userScale');
    var str = 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no';
    el.content = str;
  },
  mounted: function mounted() {
    var that = this;
    (0, _jquery.default)('#scoBox').scroll(function () {
      var BodyHight = (0, _jquery.default)('body').height() / 2;
      var nScrollTop = (0, _jquery.default)(this)[0].scrollTop;
      // const navH = $(this).offset().top
      if (nScrollTop > BodyHight && !that.showTop) {
        that.showTop = true;
      }
      if (nScrollTop <= 30) {
        that.showTop = false;
      }
      if (that.subject) {
        if (that._Util.isApp() && (0, _jquery.default)('.special').offset().top <= -21) {
          that.appShowSpecial = true;
        } else {
          that.appShowSpecial = false;
        }
      }
    });
    // 设置app的视频全屏自动横屏
    document.addEventListener('webkitfullscreenchange', function () {
      console.log(that.videoType);
      if (that.videoType == 1) {
        // 如果是竖屏视频不让手机强制横屏
        return;
      }
      var el = document.webkitFullscreenElement;
      if (that._Util.isApp()) {
        if (el) {
          api.setScreenOrientation({
            orientation: 'landscape_left'
          });
        } else {
          // api.setScreenOrientation({
          //       orientation: 'portrait_up'
          // });
        }
      }
    });
    if (that._Util.isApp()) {
      // 解决部分ios机型返回后视频仍然播放的问题
      setTimeout(function () {
        var video1 = document.getElementById('video');
        if (video1) {
          video1.onplay = function () {
            api.addEventListener({
              name: 'closeVideo'
            }, function (ret, err) {
              video1.pause();
            });
          };
        }
      }, 1000);
    }
  },
  methods: {
    /** 资料纠错 */submitError: function submitError() {
      var url = location.origin + '/v2/questionnaire/index?no=703a370a&data=' + this.$route.query.id;
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    getrecommendFms: function getrecommendFms() {
      // 获取推荐fms
      var that = this;
      that._Util.post(that._Api.GET_RECOMMEND_FMS_LIST, {
        recommendCodes: that.result.recommendCodes,
        id: that.id
      }, function (data) {
        if (data) {
          that.recommendFms = data.fmsList;
        }
      }, function () {}, that);
    },
    showFace: function showFace() {
      event.preventDefault();
      this.showFaceList = !this.showFaceList;
    },
    goSpecial: function goSpecial() {
      // 向app传递打开专题的事件
      var that = this;
      // if(that._Util.isApp()){
      //   // that._Util.acSendEvent({
      //   //   name: 'toSpecial',
      //   //   extra: {
      //   //     subject: that.subject,

      //   //   }
      //   // })
      //     //window.top.location.replace(that._Api.HOSTRESOURCEPATH + `/v2/system/productFeedback/fmsSpecial?subject=${that.subject}&title=${that.subjectTitle}`);
      // }else{
      localStorage.setItem('onScroll', 0);
      localStorage.setItem('onScrollFlag', 0);
      localStorage.setItem('fmsList', '');
      that.$router.push({
        name: 'fmsSpecial',
        query: {
          subject: that.subject,
          title: that.subjectTitle
        }
      });
      // }
    },
    showShare: function showShare() {
      event.preventDefault();
      var that = this;
      if (that._Util.isApp()) {
        that._Util.acSendEvent({
          name: 'showSharePage',
          extra: {
            title: that.result.title,
            link: window.location.href,
            imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
          }
        });
      } else {
        that.showShareBox = true;
      }
    },
    save: function save() {
      event.preventDefault();
      var that = this;
      that.$http.post(that._Api.POST_COLLECTION_SAVE, {
        sourceType: null,
        moduleType: 11,
        queryValue: window.location.href,
        requestValue: that.result.title
      }).then(function (res) {
        (0, _mintUi.Toast)(res.data.msg);
      }).catch(function (error) {
        console.log(error);
      });
    },
    toHideTopImg: function toHideTopImg() {
      event.preventDefault();
      var that = this;
      (0, _jquery.default)('#scoBox').animate({
        scrollTop: 0
      }, 100);
      setTimeout(function () {
        that.showTop = false;
      }, 300);
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.result.title,
                  desc: '',
                  link: window.location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              url: window.location.href,
              moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
              operate_page: that._Util.isApp() ? 'APP' : '微信菜单',
              optionType: '分享'
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.result.title,
              desc: '',
              link: window.location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                url: window.location.href,
                moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
                operate_page: that._Util.isApp() ? 'APP' : '微信菜单',
                optionType: '分享'
              }, that);
            });
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.result.title,
              desc: '',
              link: window.location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                url: window.location.href,
                moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
                operate_page: that._Util.isApp() ? 'APP' : '微信菜单',
                optionType: '分享'
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.result.title,
              desc: '',
              link: window.location.href,
              imgUrl: '',
              success: function success() {
                that._Util.collectPageView({
                  version: that._Util.version,
                  postUrl: that._Api.POST_COLLECT,
                  url: window.location.href,
                  moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
                  operate_page: that._Util.isApp() ? 'APP' : '微信菜单',
                  optionType: '分享'
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    toUrl: function toUrl(url) {
      window.location.replace(url);
    },
    getData: function getData() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_PRODUCT_HELP_ADN_FEEDBACK_DETAIL, {
        id: that.$route.query.id
      }, function (data) {
        if (data.contentShape == 2 && data.jumpUrl) {
          // 如果该篇文章是跳转链接，则直接跳转
          window.location.replace(data.jumpUrl);
          return;
        }
        that.url = data.audioUrl;
        that.videoUrl = data.videoUrl;
        that.videoType = data.videoType;
        that.source = data.audioSource || '卡修宝典';
        that.audioTitle = data.audioTitle || '卡修宝典音频';
        that.subjectTitle = data.source;
        that.subject = data.subject;
        that.result = data;
        if ((that.result.type == 3 || that.result.type == 2) && !that._Util.isApp()) {
          var _el = document.getElementById('userScale');
          var str = 'width=device-width,  user-scalable=yes';
          _el.content = str;
        }
        that.title = data.title;
        document.title = data.title;
        if (data.recommendCodes) {
          that.getrecommendFms();
        }
        //         setTimeout(function () {
        //              $("section").css("background-color",'transparent');
        //          },300)
        (0, _jquery.default)('.resulyBox').delegate('img', 'click', function () {
          if (!(0, _jquery.default)(this).attr('indexValue') && !(0, _jquery.default)(this).parent('a')) {
            (0, _jquery.default)('.mask1').show();
            (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'scale(0)';
            (0, _jquery.default)('#imgshow')[0].style.webkitTransform = 'translateX(0px) translateY(0px)';
            (0, _jquery.default)('#imgshow').attr('src', (0, _jquery.default)(this).attr('src'));
            var maskHi = (0, _jquery.default)('#imgshow').height() / 2;
            (0, _jquery.default)('#imgshow').css('marginTop', -maskHi);
          }
        });
        (0, _jquery.default)('body').delegate('.mask1', 'click', function () {
          (0, _jquery.default)('.mask1').hide();
        });
        var el = document.getElementById('imgshow');
        var initScale = 1;
        var sc = 1;
        var mox, moy;
        // eslint-disable-next-line no-unused-vars
        var af = new _alloyfinger.default(el, {
          touchStart: function touchStart() {
            mox = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[4]);
            moy = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[5]);
          },
          pressMove: function pressMove(evt) {
            mox += evt.deltaX;
            moy += evt.deltaY;
            el.style.webkitTransform = 'translateX(' + mox + 'px) translateY(' + moy + 'px) scale(' + sc + ')';
            evt.preventDefault();
          },
          pinch: function pinch(evt) {
            sc = initScale * evt.zoom;
            el.style.webkitTransform = 'scale(' + sc + ')';
          },
          multipointStart: function multipointStart() {
            initScale = parseFloat(document.defaultView.getComputedStyle(el, null).transform.substring(7).split(',')[0]);
          }
        });
        setTimeout(function () {
          if (that.result.type == 3) {
            (0, _jquery.default)('.resulyBox img').addClass('noSave');
          }
        }, 500);
      }, function () {}, that);
    },
    getDuration: function getDuration() {
      var that = this;
      var _audio = (0, _jquery.default)('#audio');
      _audio.on('loadedmetadata', function () {
        var time = that.formatTime(_audio[0].duration);
        that.duration = '00:00 / ' + time;
      });
    },
    play: function play() {
      var _audio = (0, _jquery.default)('#audio');
      var that = this;
      if (_audio.hasClass('active')) {
        _audio.trigger('pause').removeClass('active');
      } else {
        _audio.trigger('play').addClass('active').on('timeupdate', function () {
          var pos = _audio[0].currentTime;
          var dora = _audio[0].duration;
          that.duration = that.formatTime(pos) + ' / ' + that.formatTime(dora);
          if (isFinite(dora) && dora > 0) {
            that.width = pos / dora * 100;
          }
        });
      }
    },
    formatTime: function formatTime(duration) {
      var minute = Math.floor(duration / 60);
      var second = Math.round(duration % 60);
      minute = minute > 9 ? minute : '0' + minute;
      second = second > 9 ? second : '0' + second;
      return minute + ':' + second;
    },
    addNumber: function addNumber() {
      var that = this;
      var zan = '';
      if (that.result.praiseStatus) {
        that.result.praiseNum--;
        that.result.praiseStatus = false;
        zan = '取消赞';
      } else {
        that.result.praiseNum++;
        that.result.praiseStatus = true;
        zan = '赞';
      }
      that._Util.collectPageView({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
        operate_page: that._Util.isApp() ? '首页' : '详情页',
        optionType: '点击',
        title: that.result.title,
        params5: zan
      }, that);
      that._Util.post(that._Api.POST_SYS_PRODUC_PARISE, {
        documentId: that.$route.query.id
      }, function (data) {}, function () {}, that);
    },
    cancelEvent: function cancelEvent() {
      this.showMask = false;
    },
    showMaskEvent: function showMaskEvent() {
      var that = this;
      that.type = 1;
      that.showMask = true;
      that._Util.collectPageView({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        title: that.result.title,
        moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
        operate_page: that._Util.isApp() ? '首页' : '详情页',
        optionType: '点击',
        params5: '不喜欢'
      }, that);
    },
    insertFace: function insertFace(item) {
      this.leaveMessage += item.text;
      this.showFaceList = false;
    },
    getMessage: function getMessage() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_PRODUC_GETDOCUMENTCOMMENTBYDOCUMENTId, {
        id: that.$route.query.id
      }, function (data) {
        if (data && data.length > 0) {
          that.messageList = data;
        }
      }, function () {}, that);
    },
    writeMessage: function writeMessage() {
      this.showMask = true;
      this.type = 2;
    },
    submitEvent: function submitEvent(type) {
      var that = this;
      if (type == 1) {
        if (that.noLikeMessage == '') {
          _mintUi.MessageBox.alert('请输入留言内容！');
          return;
        }
        that._Util.post(that._Api.POST_SYS_PRODUC_FEEDBACK_ADD, {
          module: 1,
          refId: that.$route.query.id,
          content: that.noLikeMessage,
          imgUrl: '',
          type: 1
        }, function (data) {
          that.noLikeFlag = false;
          that.noLikeMessage = '';
          that.showMask = false;
        }, function () {}, that);
      } else {
        if (that.leaveMessage == '') {
          _mintUi.MessageBox.alert('请输入留言内容！');
          return;
        }
        if (that.canInput) {
          that.canInput = false;
          that._Util.post(that._Api.POST_SYS_PRODUC_FEEDBACK_ADDCOMMENT, {
            documentId: that.$route.query.id,
            content: that.leaveMessage
          }, function (data) {
            that.leaveMessage = '';
            that.canInput = true;
            that.showMask = false;
            _mintUi.MessageBox.alert('留言成功！');
          }, function () {}, that);
        }
      }
    },
    matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=30 height=30 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    adrecode: function adrecode() {
      var that = this;
      that._Util.collectPageView({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        url: window.location.href,
        title: that.result.title,
        moduleType: that._Util.isApp() ? 'APP' : '微信菜单',
        operate_page: '详情页',
        optionType: '点击',
        params5: that.result.advertId + ';' + that.result.advertUrl
      }, that);
    },
    toMember: function toMember() {
      event.preventDefault();
      window.location.replace(location.origin + '/v2/business/pay/certificationRenewal');
    },
    /**
     * 跳转极速问答提问页
     */
    toPutQuestion: function toPutQuestion() {
      localStorage.setItem('qa_data', JSON.stringify({
        sourceType: 1,
        sourceNo: this.$route.query.id,
        sourceUrl: window.location.href
      }));
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'putQuestion',
            url: "".concat(location.origin, "/v2/shopping/putQuestion")
          }
        });
      } else {
        location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
      }
    }
  },
  destroy: function destroy() {
    console.log('销毁');
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(298);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_54e11f5a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(884);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2088)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-54e11f5a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_54e11f5a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_54e11f5a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fmsComponent_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2089);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("748e0827", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".articleList[data-v-54e11f5a]{background:#fff}.articleList>div[data-v-54e11f5a]:first-child{padding-top:15px}.articleList>div[data-v-54e11f5a]{margin:0 13px;border-bottom:1px solid hsla(0,0%,95%,.8);position:relative;padding-bottom:12px}.articleList>div.gzh p[data-v-54e11f5a],.articleList>div.smallVideo p[data-v-54e11f5a]{margin-right:117px}.articleList>div.gzh img[data-v-54e11f5a],.articleList>div.smallVideo .imgBox[data-v-54e11f5a]{width:112px;height:75px;position:absolute;right:0;top:16px}.articleList>div p.fms-title[data-v-54e11f5a]{font-size:19px;color:#222;line-height:26px;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;font-family:PingFangSC-Regular}.articleList>div p.time[data-v-54e11f5a]{font-size:14px;color:#999;margin-top:5px;overflow:hidden}.articleList>div p.time span[data-v-54e11f5a]{font-size:13px;font-family:PingFangSC-Regular;height:20px;line-height:20px;float:left;color:#666;margin-right:5px;margin-bottom:3px}.articleList>div.gzh[data-v-54e11f5a],.articleList>div.smallVideo[data-v-54e11f5a]{min-height:108px;padding-bottom:12px;overflow:hidden}.articleList>div.gzh p.fms-title[data-v-54e11f5a],.articleList>div.smallVideo p.fms-title[data-v-54e11f5a]{min-height:52px}.articleList>div.jdwd ul[data-v-54e11f5a]{overflow:hidden;margin-top:5px}.articleList>div.jdwd li[data-v-54e11f5a]{margin-left:2%;float:left;width:32%;height:74px;text-align:center}.articleList>div.jdwd li[data-v-54e11f5a]:nth-child(3n-2){margin-left:0}.articleList>div.jdwd li img[data-v-54e11f5a]{height:100%;max-width:100%;vertical-align:middle}.articleList>div>div[data-v-54e11f5a]{margin-top:5px}.articleList>div.bigVideo div[data-v-54e11f5a],.articleList>div.dkjc div[data-v-54e11f5a]{width:100%;height:160px;text-align:center;line-height:160px;overflow:hidden;position:relative}.articleList>div.bigVideo div img[data-v-54e11f5a],.articleList>div.dkjc div img[data-v-54e11f5a]{width:100%;height:160px;max-height:100%;max-width:100%}.articleList>div.bigVideo div img.play[data-v-54e11f5a]{position:absolute;width:68px;height:68px;left:50%;top:50%;margin:-34px 0 0 -34px}.articleList>div p.time .tags[data-v-54e11f5a]{border:1px solid #ee4545;height:18px;line-height:18px;padding:0 5px;margin-right:5px;color:#ee4545;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;border-radius:2px}.articleList>div.smallVideo .imgBox img[data-v-54e11f5a]:first-of-type{width:100%;height:100%}.articleList>div.smallVideo .imgBox img[data-v-54e11f5a]:nth-of-type(2){width:35px;height:35px;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    fmsList: {
      type: Array,
      required: true
    },
    moduleType: {
      type: String,
      require: false
    },
    isScroll: {
      type: Boolean,
      require: true
    },
    parentScrollTop: {
      type: Number,
      require: false
    },
    pages: {
      type: [Number, String],
      require: false
    },
    loadMore: {
      type: Boolean,
      require: false
    }
  },
  data: function data() {
    return {};
  },
  watch: {
    pages: function pages(newval, oldval) {
      this.pages = newval;
    },
    parentScrollTop: function parentScrollTop(newval, oldval) {
      this.parentScrollTop = newval;
    },
    loadMore: function loadMore(newval, oldval) {
      this.loadMore = newval;
    }
  },
  created: function created() {
    // document.title = this.parentScrollTop +'--' + this.pages+ '-- '+this.loadMore
  },
  methods: {
    articleGo: function articleGo(index, item) {
      var that = this;
      // eslint-disable-next-line no-unused-vars
      var url = '';
      // if(item.url.indexOf("mp.weixin.qq.com") != -1 && item.url.indexOf("&scene=4#wechat_redirect") == -1){
      //  if(item.url.indexOf("?") != -1){
      //    url = item.url + '&scene=4#wechat_redirect';
      //  }else{
      //    url = item.url + '?id=a&scene=4#wechat_redirect';
      //  }

      // }else{
      //     url = item.url+`&recommendCodes=${item.recommendCodes}&subject=${item.subject}`;
      // }
      url = that._Api.HOSTRESOURCEPATH + "/v2/system/productFeedback/questionDetail?id=".concat(item.id, "&subject=").concat(item.subject);
      index = index + 1;
      var v = null;
      var page = null;
      v = index / 20;
      var p = parseInt(v);
      if (v > p) {
        page = p + 1;
      } else {
        page = p;
      }
      var num = index > 20 ? index % 20 : index;
      that._Util.collectPageView2({
        postUrl: that._Api.POST_COLLECT,
        moduleType: that.moduleType,
        operate_page: 'FMS',
        optionType: '点击',
        param1: item.url,
        param2: item.title,
        param3: item.source,
        params5: page + ';' + num
      }, that);
      if (that.isScroll) {
        localStorage.setItem('onScroll', that.parentScrollTop);
        localStorage.setItem('onScrollFlag', 1);
        localStorage.setItem('fmsPages', that.pages);
        localStorage.setItem('loadMore', that.loadMore);
        var arr = [];
        var _iterator = _createForOfIteratorHelper(that.fmsList),
          _step;
        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var _item = _step.value;
            arr.push(JSON.stringify(_item));
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
        localStorage.setItem('fmsList', JSON.stringify(arr));
      }
      // if(that._Util.isApp()){
      //     // that._Util.acSendEvent({
      //     //     name: 'toFmsDetail',
      //     //     extra: {
      //     //         url:  url,
      //     //         subject: item.subject,
      //     //         title: item.title
      //     //     }
      //     // });
      //     window.top.location.replace(url);
      //     return;
      // }
      // location.href = url;

      if (that._Util.isApp()) {
        that._Util.acSendEvent({
          name: 'chageHeader',
          extra: {
            showSpacial: false
          }
        });
        that._Util.acSendEvent({
          name: 'toFmsDetail',
          extra: {
            subject: item.subject,
            title: item.source
          }
        });
      }

      // that.$router.replace({name: 'questionDetail', query:{id: item.id, subject: item.subject} })
      that.$router.push({
        name: 'questionDetail',
        query: {
          id: item.id,
          subject: item.subject
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.fmsList.length > 0),expression:"fmsList.length > 0"}]},_vm._l((_vm.fmsList),function(o,index){return _c('div',{key:index,staticClass:"articleList",on:{"click":function($event){return _vm.articleGo(index,o)}}},[(o.type == 1 && o.contentShape != 1)?_c('div',{staticClass:"gzh"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labelList),function(tag,i){return (o.labelList.length>0)?_c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))]):_vm._e()}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2),_vm._v(" "),_c('img',{attrs:{"src":o.imgPaths + '?imageView2/1/w/300/h/160',"alt":""}})]):_vm._e(),_vm._v(" "),(o.type == 1 && o.contentShape == 1)?_c('div',{staticClass:"smallVideo"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labelList),function(tag,i){return (o.labelList.length>0)?_c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))]):_vm._e()}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2),_vm._v(" "),_c('div',{staticClass:"imgBox"},[_c('img',{attrs:{"src":o.imgPaths + '?imageView2/1/w/300/h/160',"alt":""}}),_vm._v(" "),_c('img',{staticClass:"play",attrs:{"src":__webpack_require__(170),"alt":""}})])]):_vm._e(),_vm._v(" "),(o.type == 3)?_c('div',{staticClass:"jdwd"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('ul',_vm._l((o.imgPathList),function(v,i){return _c('li',{key:i},[_c('img',{attrs:{"src":v + '?imageView2/1/w/300/h/160',"alt":""}})])}),0),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labelList),function(tag,i){return (o.labelList.length>0)?_c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))]):_vm._e()}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2)]):_vm._e(),_vm._v(" "),(o.type ==2 && o.contentShape != 1)?_c('div',{staticClass:"dkjc"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('div',[_c('img',{attrs:{"src":o.imgPaths + '?imageslim',"alt":""}})]),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labelList),function(tag,i){return (o.labelList.length>0)?_c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))]):_vm._e()}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2)]):_vm._e(),_vm._v(" "),(o.type ==2 && o.contentShape == 1)?_c('div',{staticClass:"bigVideo"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('div',[_c('img',{attrs:{"src":o.imgPaths + '?imageslim',"alt":""}}),_vm._v(" "),_c('img',{staticClass:"play",attrs:{"src":__webpack_require__(170),"alt":""}})]),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labelList),function(tag,i){return (o.labelList.length>0)?_c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))]):_vm._e()}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2)]):_vm._e(),_vm._v(" "),(!o.type)?_c('div',{staticClass:"dkjc"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),(o.imgPathList && o.imgPathList[0])?_c('div',{staticStyle:{"border-radius":"4px"}},[_c('img',{attrs:{"src":o.imgPathList[0] + '?imageView2/0/w/350',"alt":""}})]):_vm._e(),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labelList),function(tag,i){return (o.labelList.length>0)?_c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))]):_vm._e()}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2)]):_vm._e()])}),0)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(249);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50247fcc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(815);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2022)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-50247fcc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50247fcc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50247fcc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DataTips_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2023);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4406f5b2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".tips-wrap[data-v-50247fcc]{padding:.4rem .6rem}.tips-wrap.isBgF5[data-v-50247fcc]{background-color:#f5f5f5}.tips-wrap p[data-v-50247fcc]{height:2.4rem;font-size:.6rem;font-weight:400;color:#999;line-height:.8rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
var _default = exports.default = {
  name: 'DataTips',
  props: {
    isBg: {
      type: Boolean,
      default: false
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tips-wrap",class:{'isBgF5':_vm.isBg}},[_c('p',[_vm._v("本平台为独立的第三方平台,根据《汽车维修技术信息公开目录》，此资料信息为车辆制造商对外公开的车辆维修技术信息，仅作为学习参考，不得用于其他商业用途。")])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%","height":"100%","-webkit-overflow-scrolling":"touch","overflow":"scroll","position":"relative"},attrs:{"id":"scoBox"}},[(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_c('img',{style:({'right': _vm.inWxMiniApp ? '2.5rem' : '10px'}),attrs:{"indexvalue":"1","src":__webpack_require__(816)}})]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"min-height":"101%"}},[_c('div',[(_vm.showTop)?_c('img',{staticClass:"toupImg",attrs:{"indexvalue":"1","src":__webpack_require__(822)},on:{"click":function($event){return _vm.toHideTopImg()}}}):_vm._e(),_vm._v(" "),_c('img',{staticClass:"errorCollect",attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalibrary/error-collect.png","alt":"资料纠错"},on:{"click":function($event){$event.preventDefault();return _vm.submitError.apply(null, arguments)}}}),_vm._v(" "),_c('span',{staticClass:"put-question-btn",on:{"click":_vm.toPutQuestion}},[_vm._v("去提问")])]),_vm._v(" "),_vm._m(0),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"mask"},[(_vm.type == 1)?_c('div',[_c('div',{staticClass:"noLikeBox"},[_c('div',{staticStyle:{"font-size":"18px","color":"#333","padding":"14px 0 14px 16px","border-bottom":"1px solid #eee"}},[_vm._v("告诉小轨你想知道的内容")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.noLikeMessage),expression:"noLikeMessage"}],staticClass:"inputArea",attrs:{"placeholder":"告诉小轨为什么不喜欢这篇内容，小轨会认真听取意见后改进的..."},domProps:{"value":(_vm.noLikeMessage)},on:{"input":function($event){if($event.target.composing){ return; }_vm.noLikeMessage=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"controlBox"},[_c('span',{on:{"click":function($event){return _vm.cancelEvent()}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.submitEvent(1)}}},[_vm._v("提交")])])])]):_vm._e(),_vm._v(" "),(_vm.type == 2)?_c('div',[_c('div',{staticClass:"noLikeBox"},[_c('div',{staticStyle:{"font-size":"18px","color":"#333","padding":"14px 0 14px 16px","border-bottom":"1px solid #eee"}},[_vm._v("有啥高见，来说说")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.leaveMessage),expression:"leaveMessage"}],staticClass:"inputBox",attrs:{"id":"infocus","autofocus":"","placeholder":"有什么想法和大家交流一下吧..."},domProps:{"value":(_vm.leaveMessage)},on:{"input":function($event){if($event.target.composing){ return; }_vm.leaveMessage=$event.target.value}}}),_vm._v(" "),_c('div',{staticStyle:{"padding":"3px 16px","margin":"0 auto"}},[_c('img',{staticStyle:{"width":"25px","height":"25px"},attrs:{"indexValue":"1","src":__webpack_require__(3140)},on:{"click":function($event){return _vm.showFace()}}})]),_vm._v(" "),(_vm.showFaceList)?_c('ul',{staticClass:"faceBox"},_vm._l((_vm.faceList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.insertFace(v)}}},[_c('img',{attrs:{"indexValue":"1","src":'https://static1.kaxiuyun.com/kxy/arclist/face/' + v.key + '.gif'}})])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"controlBox"},[_c('span',{on:{"click":function($event){return _vm.cancelEvent()}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.submitEvent(2)}}},[_vm._v("提交留言")])])])]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.videoUrl)?_c('div',{class:{appClass: _vm._Util.isApp()},attrs:{"id":"videobox"}},[_c('video',{style:({ 'object-fit' : _vm.videoType == 1 ? 'contain' : 'fill'}),attrs:{"id":"video","webkit-playsinline":"","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","controls":"","poster":_vm.result.imageUrl,"controlsList":"nodownload"}},[_c('source',{attrs:{"src":_vm.videoUrl,"type":"video/mp4"}})])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"title",attrs:{"id":"toptop"}},[_vm._v(_vm._s(_vm.result.title))]),_vm._v(" "),_c('div',{staticStyle:{"width":"94%","margin":"0 auto","font-size":"14px","color":"#666","position":"relative"}},[_vm._v("\n      "+_vm._s(_vm.result.subject? _vm.result.source : '卡修宝典')+"   "+_vm._s(_vm.result.showTime || _vm.result.createTime)+"\n      "),_vm._v(" "),(_vm.subject)?_c('span',{staticClass:"special",on:{"click":function($event){$event.stopPropagation();return _vm.goSpecial.apply(null, arguments)}}},[_vm._v("进入专题")]):_vm._e()]),_vm._v(" "),(_vm.url && !_vm.videoUrl)?_c('div',{attrs:{"id":"audioPlayer"},on:{"click":_vm.play}},[_c('p',{staticClass:"weixinAudio"},[_c('audio',{attrs:{"id":"audio","src":_vm.url,"preload":"auto"}},[_c('source',{attrs:{"src":_vm.url,"type":"audio/mpeg"}})]),_vm._v(" "),_c('span',{staticClass:"db audio_area",attrs:{"id":"audio_area"}},[_c('span',{staticClass:"audio_wrp db"},[_vm._m(1),_vm._v(" "),_c('span',{staticClass:"audio_length tips_global",attrs:{"id":"audio_length"}},[_vm._v(_vm._s(_vm.duration))]),_vm._v(" "),_c('span',{staticClass:"db audio_info_area"},[_c('strong',{staticClass:"db audio_title"},[_vm._v(_vm._s(_vm.audioTitle))]),_vm._v(" "),_c('span',{staticClass:"audio_source tips_global"},[_vm._v("来自"+_vm._s(_vm.source))])]),_vm._v(" "),_c('span',{staticClass:"progress_bar",style:({width:_vm.width+'%'}),attrs:{"id":"audio_progress"}})])])])]):_vm._e(),_vm._v(" "),(!_vm.videoUrl)?_c('div',{staticClass:"resulyBox",staticStyle:{"margin-bottom":"20px"}},[_c('div',{staticClass:"sy-img"}),_vm._v(" "),_c('div',{staticStyle:{"white-space":"pre-wrap"},attrs:{"id":"contBox"},domProps:{"innerHTML":_vm._s(_vm.result.content)}})]):_vm._e(),_vm._v(" "),(_vm.result.feedbackStatus == 2)?_c('div',{staticClass:"fdBox"},[_c('div',{class:{'active': _vm.result.praiseStatus}},[_c('div',{on:{"click":function($event){return _vm.addNumber()}}},[(!_vm.result.praiseStatus)?_c('img',{staticStyle:{"width":"20px","height":"19px","display":"block"},attrs:{"indexValue":"1","src":__webpack_require__(3141)}}):_c('img',{staticStyle:{"width":"20px","height":"19px","display":"block"},attrs:{"indexValue":"1","src":__webpack_require__(3142)}}),_vm._v(" "),_c('div',{staticClass:"nolikeCon",class:{'redcolor': _vm.result.praiseStatus}},[_vm._v(_vm._s(_vm.result.praiseNum || '赞'))])])]),_vm._v(" "),_c('div',[_c('div',{on:{"click":function($event){return _vm.showMaskEvent()}}},[(_vm.noLikeFlag)?_c('img',{staticStyle:{"width":"23px","height":"20px","display":"block"},attrs:{"indexValue":"1","src":__webpack_require__(1677)}}):_c('img',{staticStyle:{"width":"23px","height":"20px","display":"block"},attrs:{"indexValue":"1","src":__webpack_require__(1677)}}),_vm._v(" "),_c('div',{staticClass:"nolikeCon"},[_vm._v("不喜欢")])])])]):_vm._e(),_vm._v(" "),(_vm.result.advertPositionStatus == 1)?_c('Poking-me-component',{attrs:{"position-id":3}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"Recommend",staticStyle:{"margin-top":"20px"}},[_c('fmsComponent',{attrs:{"fms-list":_vm.recommendFms,"module-type":"运营文档详情","is-scroll":false}})],1),_vm._v(" "),_c('DataTips',{attrs:{"is-bg":""}}),_vm._v(" "),(_vm.result.commentStatus == 2)?_c('div',{staticClass:"leaveMessageBox",attrs:{"id":"leaveMessageBox"}},[_c('div',{staticClass:"con"},[_vm._v("\n        精选留言\n      ")]),_vm._v(" "),_c('div',{staticClass:"writeMessage"},[_c('input',{staticClass:"writeMessage1",attrs:{"readonly":"","placeholder":"有啥高见，来说说..."},on:{"click":function($event){return _vm.writeMessage()}}}),_vm._v(" "),_c('div',{staticClass:"writeFlex"},[_vm._m(2),_vm._v(" "),_c('img',{staticClass:"conPic2",attrs:{"indexvalue":"1","src":__webpack_require__(3143)},on:{"click":function($event){return _vm.save()}}}),_vm._v(" "),_c('img',{staticClass:"conPic3",attrs:{"indexvalue":"1","src":__webpack_require__(3144)},on:{"click":function($event){return _vm.showShare()}}})])]),_vm._v(" "),_c('ul',{staticClass:"mssageBox"},_vm._l((_vm.messageList),function(v,index){return _c('li',{key:index},[_c('div',{staticClass:"leftSide"},[_c('div',{staticStyle:{"width":"12%","float":"left","font-size":"16px","text-align":"center","margin-top":"10px"}}),_vm._v(" "),_c('div',{staticStyle:{"width":"75%","float":"left"}},[(v.headImgUrl)?_c('img',{staticStyle:{"width":"100%","height":"100%"},attrs:{"indexValue":"1","src":v.headImgUrl}}):_c('img',{staticStyle:{"width":"100%","height":"100%"},attrs:{"indexValue":"1","src":__webpack_require__(270)}})]),_vm._v(" "),_c('div',{staticStyle:{"width":"12%","float":"left","font-size":"16px","text-align":"center","margin-top":"10px"}})]),_vm._v(" "),_c('div',{staticClass:"rightSide"},[_c('div',{staticStyle:{"padding-bottom":"16px"}},[_c('div',{staticClass:"name",class:{'redcolor': v.userStatus == 2}},[_vm._v(_vm._s(v.uname)+"\n                "),(v.userStatus == 2)?_c('img',{staticStyle:{"width":"20px","height":"13px","margin-top":"5px"},attrs:{"indexValue":"1","src":__webpack_require__(1434)},on:{"click":function($event){return _vm.toMember()}}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"time"},[(v.uprovince && v.ucity)?_c('span',[_vm._v(_vm._s(v.uprovince + v.ucity))]):_c('span',[_vm._v("未知地点")]),_vm._v("\n                "+_vm._s(v.showTime))]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.commentContent))}})]),_vm._v(" "),(v.replyContent)?_c('div',{staticClass:"returnMessageBox",staticStyle:{"border-top":"1px solid #E3E3E3"}},[_vm._m(3,true),_vm._v(" "),_c('div',{staticClass:"content",staticStyle:{"margin-top":"4px"},domProps:{"innerHTML":_vm._s(_vm.matchEmotion(v.replyContent) || '')}})]):_vm._e()])])}),0)]):_vm._e()],1)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask1"},[_c('img',{staticStyle:{"pointer-events":"none"},attrs:{"id":"imgshow"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"audio_play_area"},[_c('i',{staticClass:"icon_audio_default"}),_vm._v(" "),_c('i',{staticClass:"icon_audio_playing"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{attrs:{"href":"#leaveMessageBox"}},[_c('img',{staticClass:"conPic1",attrs:{"indexvalue":"1","src":__webpack_require__(3145)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"name name1",staticStyle:{"position":"relative","text-indent":"8px"}},[_c('div',{staticClass:"br-left"}),_vm._v("\n                小轨回复")])}]
module.exports = __webpack_require__.p + "static/img/arrow.eb1ecf0.png";module.exports = __webpack_require__.p + "static/img/face.31d5d65.png";module.exports = __webpack_require__.p + "static/img/zan1.eb7d5de.png";module.exports = __webpack_require__.p + "static/img/zan2.9f3acf2.png";module.exports = __webpack_require__.p + "static/img/nolike.9f12459.png";module.exports = __webpack_require__.p + "static/img/collect.5fcb2d4.png";module.exports = __webpack_require__.p + "static/img/share.c39cf36.png";module.exports = __webpack_require__.p + "static/img/leveMessage.559d51a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(577);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_011c2ce6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1176);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3146)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-011c2ce6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_011c2ce6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_011c2ce6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fmsSpecial_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3147);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c60aaf84", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".articleList[data-v-011c2ce6]{background:#fff}.articleList>div[data-v-011c2ce6]:first-child{padding-top:15px}.articleList>div[data-v-011c2ce6]{margin:0 10px;border-bottom:1px solid hsla(0,0%,95%,.8);position:relative;padding-bottom:20px}.articleList>div.gzh p[data-v-011c2ce6]{margin-right:117px}.articleList>div.gzh img[data-v-011c2ce6]{width:95px;height:75px;position:absolute;right:0;top:20px;border-radius:4px}.articleList>div p.fms-title[data-v-011c2ce6]{font-size:18px;font-weight:500;color:#333}.articleList>div p.time[data-v-011c2ce6]{font-size:14px;color:#999;margin-top:2px;margin-bottom:12px}.articleList>div p.time span[data-v-011c2ce6]:last-child{margin-left:12px;font-family:PingFangSC-Regular}.articleList>div p.time span[data-v-011c2ce6]{font-size:14px;font-family:PingFangSC-Regular}.articleList>div p.title[data-v-011c2ce6]{line-height:20px;color:#333;font-family:PingFangSC-Semibold}.articleList>div.gzh[data-v-011c2ce6]{min-height:80px;padding-bottom:10px;overflow:hidden}.articleList>div.gzh p.title[data-v-011c2ce6]{height:48px;margin-bottom:8px;margin-top:6px;line-height:25px;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;padding-bottom:0}.articleList>div.gzh p.time[data-v-011c2ce6]{vertical-align:bottom;margin-top:0}.articleList>div.jdwd ul[data-v-011c2ce6]{overflow:hidden}.articleList>div.jdwd li[data-v-011c2ce6]{margin-left:2%;float:left;width:32%;text-align:center}.articleList>div.jdwd li[data-v-011c2ce6]:nth-child(3n-2){margin-left:0}.articleList>div.jdwd li img[data-v-011c2ce6]{max-height:100%;max-width:100%;vertical-align:middle;border-radius:4px}.articleList>div.dkjc div[data-v-011c2ce6]{width:100%;height:108px;text-align:center;line-height:108px;overflow:hidden;position:relative}.articleList>div.dkjc div img[data-v-011c2ce6]{width:100%;max-height:108px;max-width:100%;border-radius:4px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _fmsComponent = _interopRequireDefault(__webpack_require__(1454));
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    fmsComponent: _fmsComponent.default
  },
  data: function data() {
    return {
      pages: 0,
      fmsList: [],
      loadMore: false,
      isApp: !!this._Util.isApp(),
      scrollTop: 0,
      subject: this.$route.query.subject,
      title: this.$route.query.title
    };
  },
  mounted: function mounted() {
    var that = this;
    document.title = that.title;
    if (localStorage.getItem('onScrollFlag') && localStorage.getItem('onScrollFlag') == 1) {
      var job = JSON.parse(localStorage.getItem('fmsList'));
      if (localStorage.getItem('loadMore')) {
        that.loadMore = true;
      }
      for (var i = 0; i < job.length; i++) {
        job[i] = JSON.parse(job[i]);
      }
      that.fmsList = job;
      that.pages = localStorage.getItem('fmsPages');
      setTimeout(function () {
        (0, _jquery.default)('#onscrollBox').scrollTop(localStorage.getItem('onScroll'));
        localStorage.setItem('onScroll', 0);
        localStorage.setItem('onScrollFlag', 0);
        localStorage.setItem('fmsList', '');
      }, 200);
    } else {
      that.getFmsList();
    }

    //      that.getFmsList();
    that._Util.collectPageView2({
      version: that._Util.version,
      postUrl: that._Api.POST_COLLECT,
      moduleType: '微信fms专题页',
      operate_page: 'FMS',
      optionType: '打开页面'
    }, that);
    that.share();
    (0, _jquery.default)('#onscrollBox').scroll(function () {
      that.scrollTop = (0, _jquery.default)(this).scrollTop();
      var nDivHight = (0, _jquery.default)('#onscrollBox').height();
      var nScrollHight = (0, _jquery.default)(this)[0].scrollHeight;
      var nScrollTop = (0, _jquery.default)(this)[0].scrollTop;
      if (nScrollTop + nDivHight >= nScrollHight) {
        if (that.loadMore) {
          that.pages++;
          that._Util.collectPageView2({
            postUrl: that._Api.POST_COLLECT,
            moduleType: '微信fms专题页',
            operate_page: 'FMS',
            optionType: 'FMS专题加载',
            params5: that.pages
          }, that);
          that.getFmsList();
        }
      }
    });
  },
  methods: {
    getFmsList: function getFmsList() {
      var that = this;
      that._Util.post(that._Api.GET_SUBJECT_LIST, {
        curPage: that.pages,
        subject: that.subject
      }, function (data) {
        if (data && data.documentList.length > 0) {
          that.loadMore = true;
          that.fmsList = that.fmsList.concat(data.documentList);
        } else {
          that.loadMore = false;
        }
      }, function () {}, that);
    },
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = {
            title: '卡修宝典资讯中心',
            desc: '丰富的商用车前沿行业资讯及视频',
            link: location.origin + '/v2/fms',
            imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg',
            success: function success() {},
            cancel: function cancel() {}
          };
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
        });
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%","height":"100%","overflow":"hidden"}},[_c('div',{staticStyle:{"width":"100%","height":"100%","overflow-y":"scroll","-webkit-overflow-scrolling":"touch"},attrs:{"id":"onscrollBox"}},[_c('fmsComponent',{attrs:{"fms-list":_vm.fmsList,"module-type":"fms专题页","parent-scroll-top":_vm.scrollTop,"is-scroll":true,"load-more":_vm.loadMore,"pages":_vm.pages}})],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(578);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0bd57584_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1177);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3148)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0bd57584_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0bd57584_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3149);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0510fc94", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{overflow:hidden;font-family:Microsoft YaHei}.title{font-size:24px;width:60%;margin:0 auto;margin-top:40px;color:#000;text-align:center}.content{margin:0 auto;font-size:16px;color:#888;margin-top:20px}._btn,.content{width:80%;text-align:center}._btn{background:#09bb07;color:#fff;font-size:18px;border:none;padding-top:9px;padding-bottom:7px;border-radius:5px;display:block;margin:0 auto;margin-top:100px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: {},
      code: this.$route.query.numberCode || this.$route.query.numbercode || this.$route.query.number
    };
  },
  watch: {},
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_ACTIVITY_SIGN, {
      code: that.code
    }, function (data) {
      that.result = data;
      document.title = data.activityTitle;
    }, function () {}, that);
  },
  methods: {
    toSign: function toSign(n) {
      this.$router.push({
        name: 'activeSignResult',
        query: {
          id: n
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.result.status === 1)?_c('div',{staticClass:"title"},[_vm._v("\n    "+_vm._s(_vm.result.activityTitle)+"\n  ")]):_vm._e(),_vm._v(" "),(_vm.result.status === 2)?_c('div',{staticClass:"title"},[_vm._v("该活动已过期")]):_vm._e(),_vm._v(" "),(_vm.result.status === 1)?_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.result.activityContext)}}):_vm._e(),_vm._v(" "),(_vm.result.status === 1)?_c('button',{staticClass:"_btn",on:{"click":function($event){return _vm.toSign(_vm.result.id)}}},[_vm._v(_vm._s(_vm.result.btnText))]):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(579);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_612c5315_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1178);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3150)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_612c5315_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_612c5315_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3151);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ae3831ec", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{overflow:hidden;font-family:Microsoft YaHei}.title{font-size:24px;width:60%;margin:0 auto;margin-top:15px;color:#000;text-align:center}.content{margin:0 auto;font-size:16px;color:#888;margin-top:20px}._btn,.content{width:80%;text-align:center}._btn{background:#09bb07;color:#fff;font-size:18px;border:none;padding-top:9px;padding-bottom:7px;border-radius:5px}._btn,.imgPic{display:block;margin:0 auto;margin-top:30px}.imgPic{width:30%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: {}
    };
  },
  watch: {},
  mounted: function mounted() {
    var that = this;
    that._Util.post(that._Api.POST_MEMBER_PERSONAL_ACTIVITY_RESULT, {
      id: that.$route.query.id
    }, function (data) {
      that.result = data;
      document.title = data.resultTitle;
    }, function () {}, that);
  },
  methods: {
    closeHandle: function closeHandle() {
      var that = this;
      if (that._Util.isApp()) {
        api.closeWin();
      } else {
        _weixinJsSdk.default.closeWindow();
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.result.resultCode < 0)?_c('img',{staticClass:"imgPic",attrs:{"src":__webpack_require__(3152)}}):(_vm.result.resultCode >0 )?_c('img',{staticClass:"imgPic",attrs:{"src":__webpack_require__(3153)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.result.resultTitle))]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.result.resultContext)}}),_vm._v(" "),_c('button',{staticClass:"_btn",on:{"click":function($event){return _vm.closeHandle()}}},[_vm._v("关闭")])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/redalert.164368c.png";module.exports = __webpack_require__.p + "static/img/greenalert.80d5129.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(580);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38ac07b9_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1179);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3154)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38ac07b9_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38ac07b9_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_moreQuestion_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3155);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6d7f1583", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{background:#f2f2f2;overflow:auto}.searchbox *{-webkit-box-sizing:initial}.maginAuto{margin-left:0;margin-right:0}.content{margin:10px 3%}.contentbox{width:100%;height:auto;background:#fff}.hotTitle{height:48px;line-height:48px;font-size:16px;color:#9e9e9e;border-bottom:1px solid #e5e5e5}.doubtImg{width:20px;height:20px;margin-top:12px;margin-left:7px}.resultBox>li{border-bottom:1px solid #e5e5e5;font-size:16px;color:#000;padding-bottom:15px;padding-top:15px;position:relative}.goNext{font-size:20px;color:#ccc;position:absolute;right:0;height:30px;top:50%;margin-top:-15px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      Params: {
        hot: false,
        pageSize: 30,
        keyword: '',
        pagaNum: 1,
        type: this.$route.query.type || 1
      },
      resultList: []
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getData();
  },
  methods: {
    getData: function getData() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_PRODUCT_HELP_ADN_FEEDBACK, that.Params, function (data) {
        if (!data) {
          return;
        }
        that.resultList = data.list;
      }, function () {}, that);
    },
    openDetail: function openDetail(n) {
      window.location.href = '/v2/system/productFeedback/questionDetail?id=' + n;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch"}},[_c('div',{staticClass:"contentbox"},[_c('div',{staticClass:"content"},[_c('div',{staticClass:"hotTitle maginAuto"},[_vm._v("诊断能手常见问题\n        ")]),_vm._v(" "),_c('ul',{staticClass:"resultBox"},_vm._l((_vm.resultList),function(v,i){return _c('li',{key:i,attrs:{"id":v.id},on:{"click":function($event){return _vm.openDetail(v.id)}}},[_vm._v("\n          "+_vm._s(v.title)+"\n          "),_c('div',{staticClass:"goNext"},[_vm._v(" > ")])])}),0)])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(581);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_646ac44d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1180);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3156)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_646ac44d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_646ac44d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3157);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3844c3c7", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mainBody,.rightChose{width:100%}.leftWidth{width:97%;margin-left:auto;margin-right:auto;padding-left:2%}.headTitle{background:#eee;text-align:center;width:99%;height:54px;font-size:18px;line-height:54px;color:#897777;border:1px solid #ddd;-moz-border-top-left-radius:7px;border-top-left-radius:7px;-moz-border-top-right-radius:7px;border-top-right-radius:7px}.orderList{position:relative;border-radius:5px;border:1px solid #ddd;height:40px;margin-top:5px;line-height:40px;font-size:14px;color:#000}.orderList span{position:absolute;font-size:12px;text-align:center;line-height:15px;color:#fff;width:15px;height:15px;border-radius:50%;right:3%;top:12px;background:#777}.active{background:#337ab7;color:#fff}.orderList .activeNow{background:#fff;color:#337ac6;width:20px;border-radius:15px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      resultList: []
    };
  },
  mounted: function mounted() {
    this.getResult();
  },
  methods: {
    getResult: function getResult() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_FOLDER, {}, function (data) {
        that.resultList = data || [];
      }, function () {}, that);
    },
    toList: function toList(v) {
      this.$router.push({
        name: 'folderList',
        query: {
          id: v.id
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mainBody"},[_c('div',{staticClass:"rightChose"},[_c('div',{staticClass:"headTitle leftWidth"},[_vm._v("报表文件夹")]),_vm._v(" "),(_vm.resultList.length)?_c('div',_vm._l((_vm.resultList),function(v,index){return _c('div',{key:index,staticClass:"orderList leftWidth active",on:{"click":function($event){return _vm.toList(v)}}},[_vm._v("\n        "+_vm._s(v.name)+"\n        "),_c('span',{staticClass:"activeNow"},[_vm._v(_vm._s(v.reportCnt))])])}),0):_vm._e()])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(582);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f998e4a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1181);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3158)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f998e4a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f998e4a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_folderList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3159);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6df1f20e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{margin:0}.mainbody{width:100%;height:auto;margin-top:0}.tableLine{margin-top:5px;overflow:hidden}.tableLine span,.titleBox span{display:block;width:97%;background:#337ab7;color:#fff;text-align:center;padding:10px 0;border-radius:3px;margin-left:auto;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mainbody .title{width:100%;overflow:hidden;margin:0 auto}.title .titleLine{font-size:18px;float:left;width:100%;padding:7px 0;text-align:center;background:#fff;color:#000}.title{border-bottom:1px solid #000}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      resultList: []
    };
  },
  mounted: function mounted() {
    this.getResult();
  },
  methods: {
    getResult: function getResult() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_FOLDER_LIST, {
        id: that.$route.query.id
      }, function (data) {
        that.resultList = data || [];
      }, function () {}, that);
    },
    toDetail: function toDetail(v) {
      this.$router.push({
        name: 'reportResult',
        query: {
          id: v.id
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.resultList.length)?_c('div',{staticClass:"mainbody"},[_vm._m(0),_vm._v(" "),_vm._l((_vm.resultList),function(v,index){return _c('div',{key:index,staticClass:"tableLine",on:{"click":function($event){return _vm.toDetail(v)}}},[_c('span',[_vm._v(_vm._s(v.name))])])})],2):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('div',{staticClass:"titleLine"},[_vm._v("名称")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(583);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5f6e2506_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1184);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3160)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5f6e2506_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5f6e2506_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reportResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3161);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("bf7b04ce", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mainBody{width:100%;position:relative}.runTable{color:#fff;margin:0 auto;margin-top:15px;margin-bottom:15px;display:block;padding:8px 0;width:65%;background:#00b037;border-radius:5px}table{color:#000}thead th{background:#f4f4f4}tbody tr td,thead th{padding:5px 0;text-align:center}.mint-cell{background-position:0 0;background-size:0 0}tbody tr:nth-of-type(2n){background:#f4f4f4}.view input.mint-field-core{border:2px solid #d3d3d3;border-radius:5px}.choseOption{padding:10px;padding-left:10px}.choseOption>div{padding-left:20px;background:url(" + escape(__webpack_require__(3162)) + ") 0 0 no-repeat;display:inline-block}.choseOption .now{background-image:url(" + escape(__webpack_require__(3163)) + ")}.loadMore{margin-top:5px;position:relative;padding-top:5px;padding-bottom:5px;background:#b61b21;color:#fff;text-align:center;width:100px;border-radius:3px;left:50%;margin-left:-42px;font-size:12px}.report-page a{color:#7b9ef4}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/2.58df26e.png";module.exports = __webpack_require__.p + "static/img/1.dc5be23.png";/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _vueTable = _interopRequireDefault(__webpack_require__(3164));
var _card = _interopRequireDefault(__webpack_require__(3167));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  //    directives: {// 自定义指令
  //      scroll: {
  //        bind: function (el, binding){
  //          window.addEventListener('scroll', function () {
  //            if(document.body.scrollTop +  window.innerHeight > el.clientHeight) {
  //              var fnc = binding.value;
  //              console.log(fnc);
  //              fnc();
  //            }
  //          })
  //        }
  //      }
  //    },
  components: {
    // eslint-disable-next-line vue/no-unused-components
    Field: _mintUi.Field,
    Card: _card.default,
    VueTable: _vueTable.default
  },
  data: function data() {
    return {
      queryParams: {},
      tableShow: false,
      clickFlag: false,
      active: false,
      showMore: false,
      loadMore: false,
      msg: '加载更多',
      pageMax: '',
      customParams: {
        id: this.$route.query.id,
        pageSize: 50,
        pageNum: 1
      },
      result: {},
      reload: '',
      reloadFlag: false
    };
  },
  mounted: function mounted() {
    var that = this;
    this.getQueryParams();
    this.tableShow = false;
    this.$on('load', function (data) {
      //    		if (data.load && !this.reloadFlag) {
      //          this.customParams.pageNum++;
      //          this.search();
      //        }
    });
    $(document).on('click', '.report-page .scropBox a', function (e) {
      if (that._Util.isApp()) {
        e.preventDefault();
        var url = $(this).attr('href');
        if (url) {
          api.sendEvent({
            name: 'openNewFrm',
            extra: {
              name: 'reportLink',
              url: url,
              title: ''
            }
          });
        } else {
          api.toast({
            msg: '链接为空',
            duration: 1500,
            location: 'middle'
          });
        }
      }
    });
  },
  methods: {
    getQueryParams: function getQueryParams() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_QUERY_PARAMS, {
        id: that.$route.query.id
      }, function (data) {
        if (!data) {
          return;
        }
        // eslint-disable-next-line no-unused-vars
        var index = 0;
        var _iterator = _createForOfIteratorHelper(data.paramList),
          _step;
        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var o = _step.value;
            that.customParams[o.paramName] = !that.$route.query[o.paramName] ? o.paramValue || '' : that.$route.query[o.paramName] || '';
            if (o.paramType === 'date') {
              var nowTime = that._Util.dateFormat(new Date().getTime(), 'yyyy-MM-dd');
              that.customParams[o.paramName] = !that.$route.query[o.paramName] ? o.paramValue || nowTime : that.$route.query[o.paramName] || '';
            }
            index++;
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
        that.queryParams = data;
        if (data.initQuery) {
          that.search();
        }
      }, function () {}, that);
    },
    chosetable: function chosetable(n) {
      var that = this;
      that.msg = '加载更多';
      that.customParams.pageNum = 1;
      if (that.clickFlag) {
        that.search();
      }
      n == 1 ? that.tableShow = true : that.tableShow = false;
      n == 1 ? that.active = false : that.active = true;
      n == 1 ? that.loadMore = true : that.loadMore = false;
    },
    toList: function toList(v) {
      this.$router.replace({
        name: 'folderList',
        query: {
          id: v.id
        }
      });
    },
    search: function search() {
      var that = this;
      that.clickFlag = true;
      that.reloadFlag = true;
      that.customParams.pageNum = 1;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST, that.customParams, function (data) {
        if (!data) {
          return;
        }
        that.result = data;
        that.reloadFlag = false;
        that.pageMax = Math.ceil(that.result.count / 50);
        if (that.result.count > 50) {
          that.showMore = true;
        }
        that.$emit('loadFalse');
      }, function () {}, that);
    },
    getMore: function getMore() {
      var that = this;
      that.customParams.pageNum++;
      if (that.customParams.pageNum < that.pageMax + 1) {
        that._Util.post(that._Api.POST_SYS_REPORT_LIST, that.customParams, function (data) {
          if (!data) {
            return;
          }
          //           that.result =  that.result.concat(data);
          that.result.dataList = that.result.dataList.concat(data.dataList);
          //            that.result.columns = that.result.columns.concat(data.columns);
        }, function () {}, that);
      } else {
        that.showMore = false;
      }
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(584);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_35ec6ab6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1182);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3165)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_35ec6ab6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_35ec6ab6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3166);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("76670d6b", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "td,th{min-width:200px;height:30px}#sTable{margin:0}.fixedCol{left:0}#fHeader,.fixedCol{z-index:1}#fHeader,.fixedA1,.fixedCol{position:fixed;background:#add8e6}.fixedA1{top:0;left:0;z-index:2}[v-cloak]{display:none}.colorWord{text-decoration:underline;color:#337ab7}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import { InfiniteScroll } from 'mint-ui'
var _default2 = exports.default = {
  components: {
    // InfiniteScroll
  },
  props: {
    data: {
      type: Object,
      required: true,
      default: function _default() {
        return {};
      }
    },
    reload: {
      type: String,
      required: false
    }
  },
  data: function data() {
    return {
      fixedCol: false,
      fixedHeader: false,
      fixedA1: false,
      hLeft: 0,
      hHeight: 0,
      result: {},
      loading: false
    };
  },
  watch: {},
  mounted: function mounted() {
    var _this = this;
    this.hLeft = document.getElementById('sTable').offsetLeft;
    this.hHeight = document.getElementById('tableDiv').offsetTop;
    this.$parent.$on('loadFalse', function () {
      _this.loading = false;
    });
    //      this.fetchData();
    // this.monitor()
  },
  methods: {
    fetchData: function fetchData() {
      this.loading = true;
      if (this.data.resultList.length) {
        this.$parent.$emit('load', {
          load: true
        });
      }
    },
    // 监控表头、列头位置
    monitor: function monitor(e) {
      //      	console.log(e.srcElement.scrollTop);
      this.setPosition(e);
      // 当滚动条达到左偏移值的时候，出现固定列头
      // this.fixedCol = e.srcElement.scrollLeft > this.hLeft;

      // 当滚动条达到上偏移值的时候，出现固定表头
      this.fixedHeader = e.srcElement.scrollTop > this.hHeight;

      // 当表格移到左上角时，出现固定的A1表格
      this.fixedA1 = e.srcElement.scrollLeft > this.hLeft && e.srcElement.scrollTop > this.hHeight;
    },
    // 使固定表头与列头的偏差与当前表格的偏移值相等
    setPosition: function setPosition(e) {
      document.getElementById('fHeader').style.left = this.hLeft - e.srcElement.scrollLeft + 'px';
      document.getElementsByClassName('fixedCol')[0].style.top = this.hHeight - document.getElementById('tableDiv').scrollTop + 'px';
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"tableDiv"}},[_c('table',{directives:[{name:"show",rawName:"v-show",value:(_vm.fixedCol),expression:"fixedCol"}],staticClass:"fixedCol",attrs:{"border":"1","cellspacing":"0"}},[_c('thead',[_c('tr',_vm._l((_vm.data.columns),function(v,index){return (!index)?_c('th',{key:index},[_vm._v(_vm._s(v))]):_vm._e()}),0)]),_vm._v(" "),_c('tbody',_vm._l((_vm.data.resultList),function(v,i){return _c('tr',{key:i},_vm._l((_vm.data.columns),function(c,index){return (index==0)?_c('td',{key:index,domProps:{"innerHTML":_vm._s(v[c])}}):_vm._e()}),0)}),0)]),_vm._v(" "),_c('table',{directives:[{name:"show",rawName:"v-show",value:(_vm.fixedHeader),expression:"fixedHeader"}],attrs:{"id":"fHeader","border":"1","cellspacing":"0"}},[_c('thead',[_c('tr',_vm._l((_vm.data.columns),function(v,index){return _c('th',{key:index},[_vm._v(_vm._s(v))])}),0)])]),_vm._v(" "),_c('table',{ref:"refTable",attrs:{"id":"sTable","border":"1","cellspacing":"0"}},[_c('thead',[_c('tr',_vm._l((_vm.data.columns),function(v,index){return _c('th',{key:index},[_vm._v(_vm._s(v))])}),0)]),_vm._v(" "),_c('tbody',_vm._l((_vm.data.resultList),function(v,i){return _c('tr',{key:i},_vm._l((_vm.data.columns),function(c,index){return _c('td',{key:index,class:{'colorWord': v[c] && v[c].toString().indexOf('href') !== -1},domProps:{"innerHTML":_vm._s(v[c])}})}),0)}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(585);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2b29ba58_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_card_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1183);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3168)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_card_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2b29ba58_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_card_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2b29ba58_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_card_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3169);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7bcacb79", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".candBox{color:#323232;margin:0 auto;font-size:14px;width:99%;border:2px solid #c4c4c4;margin-top:5px}.candBox .examine{color:#757497}.candBox div{border-bottom:2px solid #ededed;padding:8px 0}.candBox span:first-of-type{padding-left:15px}.candBox span:nth-of-type(2){float:right;padding-right:12px}.colorWord{text-decoration:underline;color:#00e}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {},
  props: {
    v: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  munted: function munted() {},
  data: function data() {
    return {
      loading: false,
      result: {}
    };
  },
  watch: {},
  mounted: function mounted() {
    var _this = this;
    this.$parent.$on('loadFalse', function () {
      console.log(123123123213);
      _this.loading = false;
    });
    //      this.fetchData();
    // this.monitor()
  },
  methods: {
    fetchData: function fetchData() {
      this.loading = true;
      if (this.data.resultList.length) {
        this.$parent.$emit('load', {
          load: true
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"scropBox",attrs:{"id":"scropBox"}},_vm._l((_vm.v.resultList),function(o,index){return _c('div',{key:index,staticClass:"candBox"},_vm._l((_vm.v.columns),function(z,i){return _c('div',{key:i},[_c('span',[_vm._v(_vm._s(z))]),_vm._v(" "),_c('span',{class:{'colorWord': o[z] && o[z].toString().indexOf('href') !== -1},domProps:{"innerHTML":_vm._s(o[z])}})])}),0)}),0)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mainBody report-page"},[_c('div',{staticClass:"choseOption",attrs:{"id":"choseOption"}},[_c('div',{class:{now:_vm.tableShow},on:{"click":function($event){return _vm.chosetable(1)}}},[_vm._v("列表式")]),_vm._v(" "),_c('div',{class:{now:_vm.active},on:{"click":function($event){return _vm.chosetable(2)}}},[_vm._v("卡片式")])]),_vm._v(" "),_vm._l((_vm.queryParams.paramList),function(v,index){return (_vm.queryParams.paramList && _vm.queryParams.paramList.length)?_c('div',{key:index},[(v.paramType == 'string')?_c('mt-field',{attrs:{"label":v.paramName},model:{value:(_vm.customParams[v.paramName]),callback:function ($$v) {_vm.$set(_vm.customParams, v.paramName, $$v)},expression:"customParams[v.paramName]"}}):_vm._e(),_vm._v(" "),(v.paramType == 'date')?_c('mt-field',{attrs:{"label":v.paramName,"type":"date"},model:{value:(_vm.customParams[v.paramName]),callback:function ($$v) {_vm.$set(_vm.customParams, v.paramName, $$v)},expression:"customParams[v.paramName]"}}):_vm._e()],1):_vm._e()}),_vm._v(" "),_c('button',{staticClass:"runTable",on:{"click":function($event){return _vm.search()}}},[_vm._v("运行报表")]),_vm._v(" "),(_vm.tableShow)?_c('Vue-table',{attrs:{"data":{resultList: _vm.result.dataList || [], columns: _vm.result.columns, count: _vm.result.count},"reload":_vm.reload}}):_vm._e(),_vm._v(" "),(!_vm.tableShow )?_c('Card',{attrs:{"v":{resultList: _vm.result.dataList || [], columns: _vm.result.columns, count: _vm.result.count}}}):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMore),expression:"showMore"}],staticClass:"loadMore",class:{laodNow:_vm.loadMore},on:{"click":function($event){return _vm.getMore()}}},[_vm._v(_vm._s(_vm.msg))])],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(586);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79272bed_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1185);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3170)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-79272bed"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79272bed_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79272bed_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3171);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("af4e4010", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bgf[data-v-79272bed]{background-color:#e6e6e6}.cycSearch[data-v-79272bed]{padding:10px}.cycSearch>div[data-v-79272bed]{border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList[data-v-79272bed]{border:none}.cycSearch input[data-v-79272bed]{height:33px;text-indent:10px;width:100%;text-align:center;-webkit-transition:all .6s;transition:all .6s;background:#fff;border-radius:3px}.cycSearch .animation1[data-v-79272bed]{text-align:left;width:75%}.cycSearch button[data-v-79272bed]{position:absolute;width:20%;height:33px;right:0;top:0;font-size:14px;background:#b71c24;color:#fff;transform:translateX(50px);-ms-transform:translateX(100px);-webkit-transform:translateX(100px);-o-transform:translateX(100px);-moz-transform:translateX(100px);-webkit-transition:all .6s;transition:all .6s;border-radius:3px}.cycSearch .animation[data-v-79272bed]{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}.munu_list[data-v-79272bed],.results[data-v-79272bed]{line-height:40px;box-sizing:border-box;padding:0 10px;border-bottom:1px solid #eee;color:#333;font-size:20px;height:40px;background-color:#fff;margin-top:-10px;display:none}.munu_list.active[data-v-79272bed]{display:block;margin-top:0}.results.active[data-v-79272bed]{display:block;text-align:center;margin-top:0}.munu_list>span[data-v-79272bed]{float:left}@media screen and (max-width:320px){.munu_list>span[data-v-79272bed]:first-child{max-width:230px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}@media screen and (min-width:321px) and (max-width:375px){.munu_list>span[data-v-79272bed]:first-child{max-width:270px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.munu_list>span[data-v-79272bed]:nth-child(2){float:right}.bgf .ul_list[data-v-79272bed]{background-color:#fff}.bgf .ul_list[data-v-79272bed]:after{display:block;clear:both;content:\"\"}.bgf .ul_list>li[data-v-79272bed]{box-sizing:border-box;padding:10px 15px 10px 10px;line-height:50px;border-top:1px solid #e2e2e2;font-size:16px;position:relative;width:100%;display:table}.bgf .ul_list>.inforfile[data-v-79272bed]{padding-left:40px;background:url(" + escape(__webpack_require__(273)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>.inforfile1[data-v-79272bed]{padding-left:40px;background:url(" + escape(__webpack_require__(148)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>.inforfileImg[data-v-79272bed]{padding-left:40px;background:url(" + escape(__webpack_require__(148)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>.inforfile>div>div[data-v-79272bed],.bgf .ul_list>.inforfileImg>div>div[data-v-79272bed]{float:left}.bgf .ul_list .inforgo[data-v-79272bed]{float:right;position:absolute;right:7px;top:50%;margin-top:-4px;transform:rotate(90deg);-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);-o-transform:rotate(90deg);-moz-transform:rotate(90deg)}.bgf .ul_list>li.inforimg[data-v-79272bed]{height:60px;line-height:20px;padding-left:40px;background:url(" + escape(__webpack_require__(148)) + ") no-repeat 10px;background-size:21px 23px}.inforimg[data-v-79272bed]:after{clear:both;display:block;content:\"\"}.bgf .ul_list>li.inforimg .filesize[data-v-79272bed]{font-size:12px}.ints .details[data-v-79272bed]{width:80%;line-height:24px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.bgf span[data-v-79272bed]{display:inline}.bgf .ul_list>li.inforimg.inforvideo[data-v-79272bed]{background:url(" + escape(__webpack_require__(274)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>li.inforimg.inforpdf[data-v-79272bed]{background:url(" + escape(__webpack_require__(275)) + ") no-repeat 10px;background-size:21px 23px}.fileInfo[data-v-79272bed]{float:left;width:85%}.fileStatus[data-v-79272bed]{float:right;margin-top:22px;text-indent:0}.fileStatus>span[data-v-79272bed]{color:#b2171c;float:right}.context[data-v-79272bed]{text-align:left}.bold[data-v-79272bed]{font-weight:700;color:#111;width:100%;text-align:center}.fade-enter-active[data-v-79272bed],.fade-leave-active[data-v-79272bed]{-webkit-transition:opacity .5s;transition:opacity .5s}.fade-enter[data-v-79272bed]{opacity:0}.fade-leave-to[data-v-79272bed]{opacity:1}.inforgo1[data-v-79272bed]{float:right;margin-top:21px}.bgf .ul_list>.inforfile1[data-v-79272bed]{text-indent:0;background:none}.bgf .ul_list>.inforfile1>div>div[data-v-79272bed]{float:left}.secondLi[data-v-79272bed]{width:100%;height:100%}.arrowDown[data-v-79272bed]{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg)}.arrlist[data-v-79272bed]{background:#fff;overflow:hidden}.detailTreeName[data-v-79272bed]{width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left;text-indent:10px}.detailImg[data-v-79272bed]{float:right;margin-top:9px;margin-right:15px}.secondList[data-v-79272bed]{border-bottom:1px solid #e2e2e2;width:90%;margin-left:10%}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/inforfile.4a8d867.png";module.exports = __webpack_require__.p + "static/img/inforimg.8ff7bcc.png";module.exports = __webpack_require__.p + "static/img/inforvideo.3b0288c.png";module.exports = __webpack_require__.p + "static/img/inforpdf.2efa224.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      searchDate: '',
      clickFlag: true,
      resultList: [],
      clicktitle: '',
      pageid: '',
      text: 'all',
      pagelist: '',
      pagetitle: '',
      fileNo: 'e49e2b06781d11e789bc000c295f0820',
      shareurl: '',
      treeId: null,
      id: null,
      gratis: '',
      price: '',
      firstTreeId: '',
      isPromote: '',
      showTreeList: false,
      ListArray: {},
      thisHeight: '',
      showSearchBtn: false,
      secondResult: {}
    };
  },
  computed: {
    texts: function texts() {
      return this.pagetitle.split(',').reverse().splice(0, this.pagetitle.split(',').length).join('>');
    }
  },
  watch: {
    '$route': function $route() {
      this.post();
    }
  },
  mounted: function mounted() {
    var that = this;
    //      let head = document.getElementsByTagName('head')[0];
    //      let str = 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'
    //      let oMeta = document.createElement('meta');
    //      oMeta.id = 'userScale';
    //      oMeta.content = str;
    //      oMeta.name = 'viewport';
    //      head.appendChild(oMeta)
    if (!that._Util.isApp() && !that._Util.isMPaaS() && localStorage.getItem('inWxMinapp') !== '1') {
      // that.getKaluliAuth()
    }
    that.post();
    that.thisHeight = document.body.offsetHeight - 95 + 'px';
  },
  methods: {
    clickFile: function clickFile(item) {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '万能搜搜',
        operate_page: that.$route.query.folderName || '课程页面',
        optionType: '点击',
        param1: item.fileNo,
        param2: item.fileName,
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      this.fileNo = item.fileNo;
      if (item.atlas == 1) {
        that.$http.post(that._Api.HOSTOLD + 'api/treeShare/getAtlasList.json', {
          keyword: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }).then(function (res) {
          var list = JSON.stringify(res.data.data.list);
          localStorage.setItem('list', list);
          that.$router.push({
            name: 'picList',
            query: {
              isScale: 1,
              title: res.data.data.atlasName,
              count: res.data.data.totalCount,
              pageNum: 1,
              pageSize: 3,
              type: 2,
              fileNo: item.fileNo
            }
          });
        }).catch(function (error) {
          console.log(error);
        });
      } else {
        this.$router.push({
          name: 'inforindex',
          query: {
            fileNo: item.fileNo,
            folderid: this.$route.query.folderid || ''
          }
        });
      }
    },
    getKaluliAuth: function getKaluliAuth() {
      var that = this;
      if (!that._Util.getLocalStorage('kllOpenId')) {
        if (window.location.href.indexOf('kaluli') == -1) {
          that._Util.post(that._Api.POST_GET_GETKALULIAPPID, {}, function (data) {
            if (data) {
              var hr = window.location.href.substr(0, window.location.href.indexOf('code=') - 1) || window.location.href;
              window.location.replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + data.appId + '&redirect_uri=' + escape(hr) + '&action=viewtest&response_type=code&scope=snsapi_base&state=kaluli#wechat_redirect');
            }
          }, function () {}, that);
        } else {
          var reg = new RegExp('(^|&)code=([^&]*)(&|$)');
          var r = location.search.substr(1).match(reg);
          var code = r == null ? null : decodeURI(r[2]);
          that._Util.post(that._Api.POST_GET_GETKLLOPENIDBYCODE, {
            code: code
          }, function (data) {}, function () {}, that);
        }
      }
    },
    post: function post() {
      this.fileNo = this._Util.getQueryString('fileNo');
      var that = this;
      this.$http.post(that._Api.HOSTOLD + 'api/treeShare/getTreeShareList.json', {
        fileNo: that.fileNo
      }).then(function (res) {
        if (res.data.status == 401 || res.data.status == 4001) {
          that.$router.push({
            name: 'followMe'
          });
          return;
        }
        if (res.data.status == 500 || res.data.status == 501) {
          _mintUi.MessageBox.alert('网络错误，请刷新！');
          return;
        }
        if (res.data.data.isPromote == 0) {
          that.$router.replace({
            name: 'inforindex1',
            query: {
              fileNo: that.fileNo
            }
          });
        }
        if (res.data.data.tree) {
          that.pagetitle = res.data.data.tree;
          document.querySelector('title').innerHTML = that.pagetitle.split(',')[0];
        }
        if (res.data.data.treeShareList) {
          that.pagelist = res.data.data.treeShareList.length;
        }
        that.resultList = res.data.data.treeShareList;
        that.treeId = res.data.data.firstTreeId;
        that.id = res.data.data.treeShare.id;
        that.gratis = res.data.data.gratis;
        that.price = res.data.data.price;
        that.firstTreeId = res.data.data.firstTreeId;
        that.isPromote = res.data.data.isPromote;
      }).catch(function (error) {
        console.log(error);
      });
    },
    search: function search() {
      if (!this.searchDate.trim()) {
        _mintUi.MessageBox.alert('请输入搜索内容！');
        return;
      }
      if (this.$route.query.folderid) {
        if (!this._Util.isApp()) {
          this.$router.push({
            name: 'appSearchResultNew',
            query: {
              keyword: this.searchDate,
              title: this.$route.query.folderName,
              folderid: this.$route.query.folderid,
              isClick: false
            }
          });
        } else {
          this.$router.push({
            name: 'inforResult',
            params: {
              id: this.searchDate,
              fileNo: this.fileNo,
              hei: this.thisHeight
            }
          });
        }
      } else {
        this.$router.push({
          name: 'inforResult',
          params: {
            id: this.searchDate,
            fileNo: this.fileNo,
            hei: this.thisHeight
          }
        });
      }
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '万能搜搜',
        operate_page: that.$route.query.folderName || '课程页面',
        optionType: '点击',
        param1: item.fileNo,
        param2: item.fileName,
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      if (filetype.toUpperCase() == 'PDF') {
        var backurl = that._Api.HOSTOLD + 'api/treeShare/filePDFView.json?fileNo=' + fileNo + '&treeId=' + that.id;
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          if (res.data.data.shareUrl) {
            if (that.clickFlag) {
              that.clickFlag = false;
              if (that._Util.getLocalStorage('isApp')) {
                var pdfReader = api.require('pdfReader');
                pdfReader.open({
                  path: res.data.data.shareUrl[0].fileUrl,
                  hidden: {
                    print: false,
                    export: false,
                    bookmark: false,
                    email: false
                  }
                });
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
              } else {
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
                window.location.href = backurl;
              }
            }
          }
        }).catch(function (error) {
          console.log(error);
        });
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          var share = '';
          if (res.data.data.shareUrl) {
            share = res.data.data.shareUrl[0].fileUrl;
            that.$router.push({
              name: 'video',
              query: {
                share: share
              }
            });
            //                that.video()
            // console.log(that.share);
          }
        }).catch(function (error) {
          console.log(error);
        });

        //          this.$router.push({name: 'video', query: {fileNo: fileNo, fileType: filetype, treeId: this.id}})
      } else {
        this.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          //            res.data.data.shareUrl ? location.href = res.data.data.shareUrl : null
          if (filetype.toUpperCase() != 'JPG') {
            location.href = res.data.data.shareUrl[0].fileUrl;
          } else {
            // let list = JSON.stringify([{fileUrl : res.data.data.shareUrl }]);
            var list = JSON.stringify(res.data.data.shareUrl);
            localStorage.setItem('list', list);
            that.$router.push({
              name: 'picList',
              query: {
                isScale: 1,
                title: item.fileName,
                count: 1,
                pageNum: 1,
                pageSize: 3,
                type: 2,
                treeId: that.id,
                fileNo: fileNo,
                filetype: filetype.toUpperCase()
              }
            });
          }
        }).catch(function (error) {
          console.log(error);
        });
      }
    },
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.fileStatus) {
        case 2:
          if (that.gratis == 0) {
            (0, _mintUi.MessageBox)({
              title: '您当前无法查看',
              message: "<span class=\"bold\">\u8BF7\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u83B7\u53D6\u6743\u9650</span>",
              confirmButtonText: '立即购买',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that.getCourse();
              }
            });
          } else {
            (0, _mintUi.MessageBox)({
              title: '您当前无法查看',
              message: "<span class=\"bold\">\u8BF7\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u83B7\u53D6\u6743\u9650</span>",
              showConfirmButton: true,
              confirmButtonText: '立即购买',
              showCancelButton: true,
              cancelButtonText: '免费获取'
            }).then(function (action) {
              switch (action) {
                case 'cancel':
                  (0, _mintUi.MessageBox)({
                    title: '免费获取课程',
                    message: "\u8BF7\u6253\u5F00\u5361\u4FEE\u5B9D\u5178\u5FAE\u4FE1\u53F7<br>\n                    \u53D1\u9001\u6570\u5B57\uFF1A<span style=\"color:#AB2632\">".concat(that.treeId, "</span>"),
                    showConfirmButton: false,
                    showCancelButton: true,
                    cancelButtonText: '关闭'
                  });
                  break;
                case 'confirm':
                  that.getCourse();
                  break;
              }
            });
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.fileType);
          break;
      }
    },
    getCourse: function getCourse() {
      var that = this;
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getPurchaseCourse.json?treeId=' + that.treeId).then(function (res) {
        var data = res.data.data;
        var mes = '';
        if (!data.video) {
          mes = "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(that.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A\n                         <div>").concat(data.pdf, "\u4E2APDF\u6587\u4EF6</div>\n                        <div>").concat(data.picture, "\u4E2A\u56FE\u7247\u6587\u4EF6</div></div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(that.price, "\u5143</span>");
        }
        if (!data.pdf) {
          mes = "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(that.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A\n                         <div>").concat(data.video, "\u4E2A\u89C6\u9891\u6587\u4EF6</div>\n                        <div>").concat(data.picture, "\u4E2A\u56FE\u7247\u6587\u4EF6</div></div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(that.price, "\u5143</span>");
        }
        if (!data.picture) {
          mes = "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(that.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A\n                         <div>").concat(data.video, "\u4E2A\u89C6\u9891\u6587\u4EF6</div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(that.price, "\u5143</span>");
        }
        if (!data.pdf && !data.video) {
          mes = "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(that.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A\n                        <div>").concat(data.picture, "\u4E2A\u56FE\u7247\u6587\u4EF6</div></div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(that.price, "\u5143</span>");
        }
        if (!data.picture && !data.video) {
          mes = "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(that.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A\n                         <div>").concat(data.pdf, "\u4E2APDF\u6587\u4EF6</div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(that.price, "\u5143</span>");
        }
        if (!data.picture && !data.pdf) {
          mes = "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(that.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A\n                           <div>").concat(data.video, "\u4E2A\u89C6\u9891\u6587\u4EF6</div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(that.price, "\u5143</span>");
        }
        (0, _mintUi.MessageBox)({
          title: '购买课程',
          message: mes,
          showConfirmButton: true,
          confirmButtonText: '立即支付',
          showCancelButton: true,
          cancelButtonText: '关闭'
        }).then(function (action) {
          if (action === 'confirm') {
            that.pay();
          }
        });
      });
    },
    spread: function spread() {
      var that = this;
      _mintUi.Indicator.open({
        text: "\u53D1\u9001\u4E2D\uFF0E\uFF0E\uFF0E",
        spinnerType: 'triple-bounce'
      });
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/userPromotion.json?treeId=' + that.treeId).then(function (res) {
        _mintUi.Indicator.close();
        res.data.status === 401 || res.data.status === 4001 ? that.$router.push({
          name: 'followMe'
        }) : _mintUi.MessageBox.alert("\u8D44\u6599\u53D1\u9001\u6210\u529F<br>\u8BF7\u6253\u5F00\u5361\u4FEE\u5B9D\u5178\u5FAE\u4FE1\u53F7\u67E5\u770B");
      });
    },
    pay: function pay() {
      var that = this;
      if (that.price <= 0) {
        _mintUi.MessageBox.alert('课程设置有误，请联系小轨！');
        return;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
        price: that.price,
        itemCode: 'KC0001'
      }, function (data) {
        that._Util.wxPay(data.jsApiParameters, function () {
          that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
            // fileNo: file.fileNo,
            treeId: that.firstTreeId,
            isPromote: that.isPromote
          }, function (data) {
            that.post();
          }, function () {}, that);
        });
      }, function () {}, that);
    },
    closeTreeList: function closeTreeList() {
      this.showTreeList = false;
    },
    openTreeList: function openTreeList() {
      var that = this;
      if (!that.firstTreeId) {
        return;
      }
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
        params: {
          'treeId': that.firstTreeId
        }
      }).then(function (res) {
        if (res.data.data) {
          that.showTreeList = true;
          that.ListArray = res.data.data;
          var _iterator = _createForOfIteratorHelper(that.ListArray),
            _step;
          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var v = _step.value;
              v.check = false;
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    openSecond: function openSecond(file, index) {
      var that = this;
      var _iterator2 = _createForOfIteratorHelper(that.ListArray),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          if (v.treeName != file.treeName) {
            v.check = false;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      file.check = !file.check;
      if (file.check) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
          params: {
            'treeId': file.id
          }
        }).then(function (res) {
          if (res.data.data) {
            that.secondResult = res.data.data;
          }
        }).catch(function (err) {
          console.log(err);
        });
      } else {
        that.secondResult = {};
      }
    },
    toDetail: function toDetail(file) {
      var that = this;
      that.showTreeList = false;
      that.fileNo = file.treeNo;
      if (file.atlas == 1) {
        that.$http.post(that._Api.HOSTOLD + 'api/treeShare/getAtlasList.json', {
          keyword: file.treeNo,
          pageNum: 1,
          pageSize: 3
        }).then(function (res) {
          var list = JSON.stringify(res.data.data.list);
          localStorage.setItem('list', list);
          that.$router.push({
            name: 'picList',
            query: {
              isScale: 1,
              title: res.data.data.atlasName,
              count: res.data.data.totalCount,
              pageNum: 1,
              pageSize: 3,
              type: 2,
              fileNo: file.treeNo
            }
          });
        }).catch(function (error) {
          console.log(error);
        });
      } else {
        this.$http.post(that._Api.HOSTOLD + 'api/treeShare/getTreeShareList.json', {
          fileNo: that.fileNo
        }).then(function (res) {
          if (res.data.status == 401 || res.data.status == 4001) {
            that.$router.push({
              name: 'followMe'
            });
            return;
          }
          if (res.data.status == 500 || res.data.status == 501) {
            _mintUi.MessageBox.alert('网络错误，请刷新！');
            return;
          }
          if (res.data.data.isPromote == 0) {
            that.$router.replace({
              name: 'inforindex1',
              query: {
                fileNo: that.fileNo
              }
            });
          }
          if (res.data.data.tree) {
            that.pagetitle = res.data.data.tree;
            document.querySelector('title').innerHTML = that.pagetitle.split(',')[0];
          }
          if (res.data.data.treeShareList) {
            that.pagelist = res.data.data.treeShareList.length;
          }
          that.resultList = res.data.data.treeShareList;
          that.treeId = res.data.data.firstTreeId;
          that.id = res.data.data.treeShare.id;
          that.gratis = res.data.data.gratis;
          that.price = res.data.data.price;
          that.firstTreeId = res.data.data.firstTreeId;
          that.isPromote = res.data.data.isPromote;
        }).catch(function (error) {
          console.log(error);
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bgf",staticStyle:{"overflow":"hidden"}},[_c('transition',{attrs:{"name":"fade"}},[(_vm.showTreeList)?_c('div',{staticStyle:{"height":"100%","overflow":"scroll","-webkit-overflow-scrolling":"touch"}},[_c('div',{staticStyle:{"font-size":"20px","color":"#333","background":"white","border-bottom":"1px solid #E2E2E2","padding":"10px 0","text-indent":"10px"}},[_vm._v("目录：")]),_vm._v(" "),_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"60px","height":"60px"},attrs:{"src":__webpack_require__(276)},on:{"click":function($event){return _vm.closeTreeList()}}})]),_vm._v(" "),_c('ul',_vm._l((_vm.ListArray),function(v,inde){return _c('li',{key:inde,staticClass:"arrlist",on:{"click":function($event){return _vm.openSecond(v,inde)}}},[_c('div',{staticStyle:{"overflow":"hidden","border-bottom":"1px solid #E2E2E2","padding":"10px 0","width":"95%","margin-left":"5%"}},[_c('div',{staticClass:"detailTreeName",staticStyle:{"font-size":"16px","color":"#333"}},[_vm._v(_vm._s(v.treeName))]),_vm._v(" "),_c('img',{staticClass:"detailImg",class:{'arrowDown' : v.check},attrs:{"src":__webpack_require__(277),"width":"12","height":"7"}})]),_vm._v(" "),_c('div',{staticClass:"secondLiBox"},_vm._l((_vm.secondResult),function(z,i){return (v.check)?_c('div',{key:i,staticClass:"secondLi"},[_c('div',[_c('div',{staticClass:"secondList",staticStyle:{"font-size":"14px","color":"#666","text-indent":"15px","padding":"10px 0"},on:{"click":function($event){$event.stopPropagation();return _vm.toDetail(z)}}},[_vm._v(_vm._s(z.treeName))])])]):_vm._e()}),0)])}),0)]):_vm._e()]),_vm._v(" "),(!_vm.showTreeList)?_c('div',[_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"60px","height":"60px"},attrs:{"src":__webpack_require__(278)},on:{"click":function($event){return _vm.openTreeList()}}})]),_vm._v(" "),_c('div',{staticClass:"cycSearch"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.searchDate),expression:"searchDate",modifiers:{"trim":true}}],class:{'animation1' :_vm.showSearchBtn},attrs:{"id":"keyword","type":"text","placeholder":"请输入想要搜索的资料"},domProps:{"value":(_vm.searchDate)},on:{"~click":function($event){_vm.showSearchBtn = true},"input":function($event){if($event.target.composing){ return; }_vm.searchDate=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('button',{class:{'animation' :_vm.showSearchBtn},on:{"click":_vm.search}},[_vm._v("搜索")])])]),_vm._v(" "),_c('div',{staticClass:"munu_list clearfix active"},[_c('span',{staticStyle:{"width":"70%","overflow":"hidden","text-overflow":"ellipsis","white-space":"nowrap"},domProps:{"textContent":_vm._s(_vm.texts)}}),_vm._v(" "),_c('span',{staticStyle:{"font-size":"14px"}},[_vm._v("共"+_vm._s(_vm.pagelist)+"项")])]),_vm._v(" "),_c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch","padding-bottom":"20px"},style:({height: _vm.thisHeight})},_vm._l((_vm.resultList),function(v,index){return _c('ul',{key:index,staticClass:"ul_list"},[(v.type!=999 && v.atlas ==0)?_c('li',{staticClass:"inforfile ints",on:{"click":function($event){return _vm.clickFile(v)}}},[_c('div',[_c('div',{staticClass:"details",staticStyle:{"font-size":"16px"}},[_vm._v(_vm._s(v.fileName))]),_vm._v(" "),_c('img',{staticClass:"inforgo",attrs:{"src":__webpack_require__(299),"width":"12","height":"7"}})])]):(v.type!=999 && v.atlas ==1)?_c('li',{staticClass:"inforfileImg ints",on:{"click":function($event){return _vm.clickFile(v)}}},[_c('div',[_c('div',{staticClass:"details",staticStyle:{"font-size":"16px"}},[_vm._v(_vm._s(v.fileName))]),_vm._v(" "),_c('img',{staticClass:"inforgo",attrs:{"src":__webpack_require__(299),"width":"12","height":"7"}})])]):_c('li',{staticClass:"inforimg",class:{'inforpdf':v.fileType.toUpperCase()=='PDF','inforvideo':new RegExp(v.fileType).test('MP4AVIBMPDBMPGWMVOGG')},on:{"click":function($event){return _vm.checkStatus(v)}}},[_c('div',{staticClass:"fileInfo"},[_c('div',{staticClass:"details"},[_vm._v("\n              "+_vm._s(v.fileName)+"\n            ")]),_vm._v(" "),(_vm.calculateFileSize(v.fileSize) != '0KB')?_c('div',{staticClass:"filesize"},[_vm._v("\n              文件大小："),_c('span',[_vm._v(_vm._s(_vm.calculateFileSize(v.fileSize)))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"fileStatus"},[(v.fileStatus===1)?_c('span',[_vm._v("可试看")]):_vm._e(),_vm._v(" "),(v.fileStatus===2)?_c('img',{attrs:{"src":__webpack_require__(146),"alt":"付费查看","width":"20"}}):_vm._e()])])])}),0)]):_vm._e()],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/close1.69f9cb2.png";module.exports = __webpack_require__.p + "static/img/arrowUp.65cc88d.png";module.exports = __webpack_require__.p + "static/img/open.c650e05.png";module.exports = __webpack_require__.p + "static/img/inforgo.65cc88d.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(587);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_43783a06_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1186);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3172)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-43783a06"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_43783a06_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_43783a06_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3173);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0ac1bc6c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bg[data-v-43783a06]{background:#6497fa;padding-bottom:65px}.ov[data-v-43783a06]{height:100%;overflow:hidden}.logo1[data-v-43783a06]{width:100%;height:auto}.centerBox[data-v-43783a06]{padding:0 10px;padding-top:25px}.centerBG[data-v-43783a06]{width:100%;background:-webkit-linear-gradient(bottom,#5c45dc,#7c50de);background-size:cover;border-radius:10px;position:relative}.el[data-v-43783a06]{position:absolute;width:50px;left:-3px}.el2[data-v-43783a06]{position:absolute;width:50px;right:0;-ms-transform:rotate(50deg);transform:rotate(50deg);-webkit-transform:rotate(50deg);top:-3px}.headerImg[data-v-43783a06]{width:75px;height:75px;border-radius:50%;-webkit-border-radius:50%;position:relative;left:50%;margin-left:-37.5px;top:-30px}.username[data-v-43783a06]{text-align:center;color:#fff;font-size:16px;margin-top:-22px}.votingBox[data-v-43783a06]{width:100%;height:60px;background:rgba(0,0,0,.4);margin-top:10px}.votingBox>div[data-v-43783a06]{width:33%;text-align:center;float:left;color:#fff;font-size:18px}.votingBox>div span[data-v-43783a06]{font-size:12px}.btnGroup[data-v-43783a06]{width:95%;height:60px;margin:0 auto;margin-top:30px}.btnGroup1[data-v-43783a06]{width:95%;margin:0 auto;height:20px;margin-top:-18px}.btnGroup button[data-v-43783a06]{width:45%;text-align:center;float:left;background:-webkit-linear-gradient(left,#fc9d73,#f94b40);padding:7px 0;border-radius:20px;-webkit-border-radius:20px;color:#fff;font-size:16px}.btnGroup .yt[data-v-43783a06]{background:#bcbcbc}.btnGroup1 div[data-v-43783a06]:nth-of-type(2),.btnGroup button[data-v-43783a06]:nth-of-type(2){float:right}.btnGroup1>div[data-v-43783a06]{color:#fff;float:left;width:45%;text-align:center;font-size:12px}.titleBox[data-v-43783a06]{width:100%;height:40px;position:relative;margin-top:35px}.wenan[data-v-43783a06]{padding:5px;background:rgba(0,0,0,.2);color:#fff;font-size:14px;width:100px;text-align:center;position:absolute;left:50%;margin-left:-50px;border-radius:7px}.disLine[data-v-43783a06]{left:-75px;margin-top:-.5px}.disLine1[data-v-43783a06],.disLine[data-v-43783a06]{width:60px;height:1px;background:rgba(0,0,0,.3);position:absolute;top:50%}.disLine1[data-v-43783a06]{right:-75px}.guize[data-v-43783a06]{width:95%;margin:0 auto;color:#fff;font-size:12px;margin-top:10px}.fixBox[data-v-43783a06]{position:fixed;width:100%;bottom:0;z-index:10}.taili[data-v-43783a06],.watch[data-v-43783a06]{text-align:center;font-size:18px}.taili[data-v-43783a06]{color:#f94b40;background:#fff;width:40%;float:left;padding:10px 0}.watch[data-v-43783a06]{width:60%;float:left}.taili2[data-v-43783a06],.watch[data-v-43783a06]{background:-webkit-linear-gradient(left,#fc9d73,#f94b40);color:#fff;padding:10px 0}.taili2[data-v-43783a06]{width:100%;text-align:center;font-size:18px}.maskBox[data-v-43783a06]{height:100%;position:absolute;left:0;top:0;z-index:99;width:100%;background:rgba(0,0,0,.3)}.toBottom[data-v-43783a06]{width:100%;height:380px;background:#e3eaff;position:absolute;bottom:0}.toBottom1[data-v-43783a06]{width:100%;height:280px;background:#fff;position:absolute;top:50%;margin-top:-140px}.tlsyBox[data-v-43783a06]{position:absolute;width:300px;left:50%;margin-left:-150px;top:-25px}.tlsyBox img[data-v-43783a06]{width:70%;display:block;margin:0 auto}.tlsyBox span[data-v-43783a06]{width:100%;position:absolute;text-align:center;font-size:18px;color:#fff;top:50%;margin-top:-15px}.swiperBox[data-v-43783a06]{width:98%;height:300px;margin:0 auto;margin-top:25px}.swiperBox>div[data-v-43783a06]{float:left;height:100%}.next[data-v-43783a06]{width:10%;height:100%;position:relative}.next img[data-v-43783a06]{position:absolute;width:30px;height:60px;top:50%;left:50%;margin-left:-15px;margin-top:-30px}.next .nextbg1[data-v-43783a06]{-ms-transform:rotate(180deg);transform:rotate(180deg);-webkit-transform:rotate(180deg)}.swiperItem[data-v-43783a06]{width:80%;height:100%;position:relative}.swiperItem img[data-v-43783a06]{position:absolute;width:270px;height:206px;left:50%;margin-left:-122px;top:50%;margin-top:-103px}.tpBtn[data-v-43783a06]{width:70%;margin:0 auto;margin-top:40px;border:3px solid #fc5b5c;overflow:hidden;border-radius:5px}.tpBtn button[data-v-43783a06]{float:left;width:50%;text-align:center;padding:10px 0;font-size:18px;color:#fc5b5c}.tpBtn .ac[data-v-43783a06]{background:#fc5b5c;color:#fff}.listBox[data-v-43783a06]{width:100%;height:263px;margin-top:25px;background:#fff;position:relative}.til[data-v-43783a06]{width:100%;overflow:hidden;padding-top:15px}.til>div[data-v-43783a06]{float:left;width:50%;font-size:16px;text-align:center;color:#fc5b5c}.listArr[data-v-43783a06]{width:100%;height:215px;margin-top:11px;overflow-y:scroll}.lineB[data-v-43783a06]{width:100%;overflow:hidden}.lineB>div[data-v-43783a06]{float:left;width:50%;font-size:16px;text-align:center;height:25px;line-height:25px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _vueAwesomeSwiper = __webpack_require__(308);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

__webpack_require__(309);
var _default = exports.default = {
  components: {
    swiper: _vueAwesomeSwiper.swiper,
    swiperSlide: _vueAwesomeSwiper.swiperSlide
  },
  data: function data() {
    return {
      id: '',
      userResult: {},
      selfFlag: false,
      showMask: false,
      showType: 1,
      showT1: true,
      voteResult: {},
      getNow: true,
      voteLog: [],
      index: 1,
      swiperOption: {
        notNextTick: true,
        effect: 'coverflow',
        direction: 'horizontal',
        grabCursor: true,
        setWrapperSize: true,
        pagination: '.swiper-pagination',
        paginationClickable: true,
        mousewheelControl: true,
        observeParents: true
      }
    };
  },
  watch: {
    '$route': function $route() {
      this.getUserInfo();
    }
  },
  mounted: function mounted() {
    var that = this;
    if (!that._Util.isApp() && !that._Util.isMPaaS() && localStorage.getItem('inWxMinapp') !== '1') {
      that.getKaluliAuth();
    }
    that.getUserInfo();
    that.share();
  },
  methods: {
    getKaluliAuth: function getKaluliAuth() {
      var that = this;
      if (!that._Util.getLocalStorage('kllOpenId')) {
        if (window.location.href.indexOf('kaluli') == -1) {
          that._Util.post(that._Api.POST_GET_GETKALULIAPPID, {}, function (data) {
            if (data) {
              var hr = window.location.href.substr(0, window.location.href.indexOf('code=') - 1) || window.location.href;
              window.location.replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + data.appId + '&redirect_uri=' + escape(hr) + '&action=viewtest&response_type=code&scope=snsapi_base&state=kaluli#wechat_redirect');
            }
          }, function () {}, that);
        } else {
          var reg = new RegExp('(^|&)code=([^&]*)(&|$)');
          var r = location.search.substr(1).match(reg);
          var code = r == null ? null : decodeURI(r[2]);
          that._Util.post(that._Api.POST_GET_GETKLLOPENIDBYCODE, {
            code: code
          }, function (data) {}, function () {}, that);
        }
      }
    },
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '助力上卡修宝典台历，投我一票，你也可以抽奖哦',
                  desc: '我是' + that.voteResult.uname + ',快来投我一票',
                  link: window.location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '助力上卡修宝典台历，投我一票，你也可以抽奖哦',
              desc: '我是' + that.voteResult.uname + ',快来投我一票',
              link: window.location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '助力上卡修宝典台历，投我一票，你也可以抽奖哦',
              desc: '我是' + that.voteResult.uname + ',快来投我一票',
              link: window.location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '助力上卡修宝典台历，投我一票，你也可以抽奖哦',
              desc: '我是' + that.voteResult.uname + ',快来投我一票',
              link: window.location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userResult = data;
          if (that.userResult.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: '您尚未认证，请先认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              closeOnClickModal: false
            }).then(function (action) {
              if (action === 'confirm') {
                that.$router.push({
                  name: 'personalCertification',
                  query: {
                    nextPath: window.location.href
                  }
                });
              }
            });
          } else {
            that.getDataBase();
          }
        }
      }, function () {}, that);
    },
    getDataBase: function getDataBase() {
      var that = this;
      that.id = that._Util.getQueryString('id');
      if (!that.id) {
        window.location.replace(location.origin + '/v2/business/pay/activeVoting?id=' + that.userResult.userId);
        return;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/vote/getUserVote.json', {
        userId: that.id
      }, function (data) {
        if (data) {
          that.voteResult = data;
          that.selfFlag = that.id == that.userResult.userId;
        }
      }, function () {}, that);
    },
    showTaili: function showTaili() {
      var that = this;
      that.showMask = true;
      that.showType = 1;
    },
    showResk: function showResk() {
      var that = this;
      that.showMask = true;
      that.showType = 2;
      that._Util.post(that._Api.HOSTOLD + 'api/vote/getVoteLog.json', {
        userId: that.id
      }, function (data) {
        if (data) {
          that.voteLog = data;
        }
      }, function () {}, that);
    },
    goTaili: function goTaili() {
      var _this = this;
      (0, _mintUi.MessageBox)({
        title: '参与活动',
        message: '确定参与 [助力上卡修宝典台历] 投票活动',
        showConfirmButton: true,
        confirmButtonText: '确定',
        confirmButtonClass: 'confirmBtn',
        showCancelButton: true,
        cancelButtonText: '取消'
      }).then(function (action) {
        if (action === 'confirm') {
          window.location.replace(location.origin + '/v2/business/pay/activeVoting?id=' + _this.userResult.userId);
        }
      });
    },
    vote: function vote() {
      // const that = this
      _mintUi.MessageBox.alert('活动已结束,感谢您的参与！');
      return;
      // if (that.voteResult.isVote == 1) {
      //   MessageBox.alert('今日已投，请明日再来！')
      //   return
      // }
      // that._Util.post(that._Api.HOSTOLD + 'api/vote/addVote.json', {
      //   userId: that.id
      // }, (data) => {
      //   that.getUserInfo()
      //   MessageBox({
      //     title: '投票成功',
      //     message: '感谢你的助力，快去抽奖吧',
      //     showConfirmButton: true,
      //     confirmButtonText: '去抽奖',
      //     confirmButtonClass: 'confirmBtn',
      //     showCancelButton: true,
      //     cancelButtonText: '取消'
      //   }).then(action => {
      //     if (action === 'confirm') {
      //       window.location.href = location.origin + '/v2/system/activeSign/index?numberCode=vote_draw'
      //     }
      //   })
      // }, () => {
      // }, that)
    },
    voteThree: function voteThree() {
      // const that = this
      _mintUi.MessageBox.alert('活动已结束,感谢您的参与！');
      return;
      //  MessageBox({
      //   title: '买设备投300票',
      //   message: '本页面支付定金后购买MFT100-诊断能手、MFT100-精修大师、卡修宝典便携王，均可投300票，会有业务经理与您联系。',
      //   showConfirmButton: true,
      //   confirmButtonText: '付定金',
      //   confirmButtonClass:'confirmBtn',
      //   showCancelButton: true,
      //   cancelButtonText: '取消'
      // }).then(action => {
      //   if (action === 'confirm') {
      //     that._Util.post(that._Api.POST_GET_QUICKACTIVITYPAY, {
      //       id:  that.voteResult.mdseId,
      //       price: 500,
      //       remark: that.id || that.userResult.userId
      //     }, (data) => {
      //       if (data) {
      //         that._Util.wxPay(data.jsApiParameters, function () {
      //           MessageBox.alert("定金支付成功！")
      //         });
      //       }
      //     }, () => {
      //     }, that);
      //   }
      // })
    },
    getNext: function getNext() {
      this.showT1 = !this.showT1;
    },
    closeMask: function closeMask() {
      this.showMask = false;
    },
    changeTab: function changeTab() {
      this.getNow = !this.getNow;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showMask)?_c('div',{staticClass:"maskBox"},[(_vm.showType == 1)?_c('div',{staticClass:"toBottom1"},[_c('img',{staticStyle:{"position":"absolute","bottom":"-65px","width":"45px","height":"45px","left":"50%","margin-left":"-22.5px"},attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/close.png"},on:{"click":function($event){return _vm.closeMask()}}}),_vm._v(" "),_c('swiper',{ref:"mySwiper",staticStyle:{"height":"100%"},attrs:{"options":_vm.swiperOption}},[_c('swiper-slide',[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/t1.jpg"}})]),_vm._v(" "),_c('swiper-slide',[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/t2.jpg"}})]),_vm._v(" "),_c('swiper-slide',[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/t3.jpg"}})]),_vm._v(" "),_c('swiper-slide',[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/t4.jpg"}})]),_vm._v(" "),_c('div',{staticClass:"swiper-pagination",attrs:{"slot":"pagination"},slot:"pagination"})],1)],1):_vm._e(),_vm._v(" "),(_vm.showType == 2)?_c('div',{staticClass:"toBottom",staticStyle:{"background":"#fff6f6"}},[_c('img',{staticStyle:{"position":"absolute","right":"10px","bottom":"400px","width":"45px","height":"45px"},attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/close.png"},on:{"click":function($event){return _vm.closeMask()}}}),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"tpBtn"},[_c('button',{class:{'ac': _vm.getNow},on:{"click":function($event){return _vm.changeTab()}}},[_vm._v("投票好友")]),_vm._v(" "),_c('button',{class:{'ac': !_vm.getNow},on:{"click":function($event){return _vm.changeTab()}}},[_vm._v("买设备投票")])]),_vm._v(" "),_c('div',{staticClass:"listBox"},[_vm._m(1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.getNow),expression:"getNow"}],staticClass:"listArr"},_vm._l((_vm.voteLog.freeVoteList),function(v,i){return _c('div',{key:i,staticClass:"lineB"},[_c('div',[_vm._v(_vm._s(v.uname || ''))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(v.voteNum)+"票")])])}),0),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.getNow),expression:"!getNow"}],staticClass:"listArr"},_vm._l((_vm.voteLog.purchaseVoteList),function(v,i){return _c('div',{key:i,staticClass:"lineB"},[_c('div',[_vm._v(_vm._s(v.uname || ''))]),_vm._v(" "),_c('div',[_vm._v(_vm._s(v.voteNum)+"票")])])}),0)])]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.selfFlag)?_c('div',{staticClass:"fixBox"},[_c('div',{staticClass:"taili",on:{"click":function($event){return _vm.showTaili()}}},[_vm._v("台历样式")]),_vm._v(" "),_c('div',{staticClass:"watch",on:{"click":function($event){return _vm.showResk()}}},[_vm._v("查看投票记录")])]):_vm._e(),_vm._v(" "),(!_vm.selfFlag)?_c('div',{staticClass:"fixBox"},[_c('div',{staticClass:"taili2",on:{"click":function($event){return _vm.goTaili()}}},[_vm._v("我也要上台历")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bg",class:{'ov': _vm.showMask}},[_c('img',{staticClass:"logo1",attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/logo1.png"}}),_vm._v(" "),_c('div',{staticClass:"centerBox"},[_c('div',{staticClass:"centerBG"},[_c('img',{staticClass:"el",attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/el.png?imageView2/2/w/320"}}),_vm._v(" "),_c('img',{staticClass:"el2",attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/el.png?imageView2/2/w/320"}}),_vm._v(" "),(_vm.voteResult.headimgurl)?_c('img',{staticClass:"headerImg",attrs:{"src":_vm.voteResult.headimgurl}}):_vm._e(),_vm._v(" "),(!_vm.voteResult.headimgurl)?_c('img',{staticClass:"headerImg",attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/head.png"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"username"},[_vm._v(_vm._s(_vm.voteResult.uname))]),_vm._v(" "),_c('div',{staticClass:"votingBox"},[_c('div',[_c('span',[_vm._v("当前票数")]),_c('br'),_vm._v(_vm._s(_vm.voteResult.voteNum)+"票\n            ")]),_vm._v(" "),_c('div',[_c('span',[_vm._v("当前排名")]),_c('br'),_vm._v("第"+_vm._s(_vm.voteResult.rank)+"名")]),_vm._v(" "),_c('div',[_c('span',[_vm._v("距上一名还差")]),_c('br'),_vm._v(_vm._s(_vm.voteResult.subtract || 0)+"票")])]),_vm._v(" "),_c('div',{staticClass:"btnGroup"},[_c('button',{class:{'yt': _vm.voteResult.isVote == 1},on:{"click":function($event){return _vm.vote()}}},[_vm._v("投TA一票")]),_vm._v(" "),_c('button',{on:{"click":function($event){return _vm.voteThree()}}},[_vm._v("投TA300票")])]),_vm._v(" "),_vm._m(2),_vm._v(" "),_vm._m(3),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            1，\t卡修宝典2018新年知识台历即将发行，台历将于今年底派送给数万名卡修宝典会员；\n          ")]),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            2，\t本着共享、共赢的理念，特通过票选招募12位会员菁英作为台历的月度封面人物，票数前12位用户将有权利登上各月度封面。投票周期一个月；\n          ")]),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            3，\t活动参与对象：全体卡修宝典用户；\n          ")]),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            4，\t每人每天可给多人投1票，每次投票后可获抽奖机会一次；\n          ")]),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            5，\t买MFT100系列任意一款设备可不限次数投300票，每个符合加票规则的订单均可增加300票；\n          ")]),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            6，\t投300票流程：支付500元定金→联系业务经理→购买指定设备→发货的同时增加300票；\n          ")]),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            7，\t若投300票订单在2017-12-16前发生退货则300票取消，若投票截止，被投票人名次变化则候补下一名用户；\n          ")]),_vm._v(" "),_vm._m(4),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            9，\t投票截止时间：2017-12-01 23:59:59；\n          ")]),_vm._v(" "),_c('div',{staticClass:"guize"},[_vm._v("\n            10，本次活动最终解释权归©卡修宝典所有。\n          ")]),_vm._v(" "),_c('img',{staticStyle:{"width":"100%","margin-top":"25px"},attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/bl.png?imageView2/2/w/320"}})])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tlsyBox"},[_c('span',[_vm._v("投票记录")]),_vm._v(" "),_c('img',{staticClass:"tlsy",attrs:{"src":"http://static1.kaxiuyun.com/kxy/static/tl/title.png?imageView2/2/w/320"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"til"},[_c('div',[_vm._v("姓名")]),_vm._v(" "),_c('div',[_vm._v("已投票数")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"btnGroup1"},[_c('div',[_vm._v("(投票后可抢红包)")]),_vm._v(" "),_c('div',[_vm._v("(买设备可投)")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"titleBox"},[_c('div',{staticClass:"wenan"},[_vm._v("活动规则\n              "),_c('div',{staticClass:"disLine"}),_vm._v(" "),_c('div',{staticClass:"disLine1"})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"guize"},[_vm._v("\n            8，\t本着公开透明原则，每一票据均记录在册，可查可计。对于恶意刷票行为，卡修宝典有权取消其投票资格。如对票数有疑问可查看投票记录或联系小轨客服，联系电话："),_c('a',{staticStyle:{"color":"white"},attrs:{"href":"tel:4006-111-828"}},[_vm._v("4006-111-828")]),_vm._v("转3；\n          ")])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(588);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d7a4f4a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1187);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3174)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3d7a4f4a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d7a4f4a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d7a4f4a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3175);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3902115a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n/*!*padding: 15px 10px;*!*/.cycSearch .searchBox[data-v-3d7a4f4a]{width:100%;height:55px;background:#ededed;overflow:hidden;position:relative;padding:0;margin:0}.searchContainer[data-v-3d7a4f4a]{width:95%;height:40px;margin:0 auto;border-radius:3px;background:#fff;position:relative;margin-top:5px}.searchFlag[data-v-3d7a4f4a]{width:15px;height:15px;float:left;margin-top:14px;margin-left:10px}.searchContainer input[data-v-3d7a4f4a]{float:left;width:80%;height:100%;text-align:left;padding-left:10px}.animation1[data-v-3d7a4f4a]{width:75%;margin-left:10px}.search_btn[data-v-3d7a4f4a]{position:absolute;width:18%;height:40px;right:5px;top:50%;margin-top:-22px;font-size:16px;background:#ee4545;color:#fff;transform:translateX(100px);-ms-transform:translateX(100px);-webkit-transform:translateX(100px);-o-transform:translateX(100px);-moz-transform:translateX(100px);-webkit-transition:all .6s;transition:all .6s;border-radius:3px}.animation[data-v-3d7a4f4a]{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}@media screen and (min-width:790px) and (max-width:810px){.search_btn[data-v-3d7a4f4a]{right:10px;transform:translateX(165px);-ms-transform:translateX(165px);-webkit-transform:translateX(165px);-o-transform:translateX(165px);-moz-transform:translateX(165px)}.animation1[data-v-3d7a4f4a]{width:78%}.animation[data-v-3d7a4f4a]{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}}.cycSearch[data-v-3d7a4f4a]{overflow:hidden;position:relative;z-index:300;background:#fff}.cycSearch .clearHistory span[data-v-3d7a4f4a]{position:absolute;left:10px;top:5px;height:25px;line-height:25px;color:#8f8f8f}.cycSearch>div[data-v-3d7a4f4a]{margin:10px 3%;border:1px solid #e6e6e6;position:relative}.flexBox[data-v-3d7a4f4a]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.flexBox>div[data-v-3d7a4f4a]{width:25%;text-align:center;margin-top:10px}.flexBox>div img[data-v-3d7a4f4a]{width:50px;height:50px}.flexBox span[data-v-3d7a4f4a]{font-size:14px;color:#333;margin-top:5px}.guild[data-v-3d7a4f4a]{height:auto;margin-top:10px}.guild img[data-v-3d7a4f4a]{display:block;width:100%}.toOnline[data-v-3d7a4f4a]{height:32px;line-height:32px;background:#fff9ea;color:#ee4545;font-size:14px;text-indent:10px;position:relative}.toOnline .icon[data-v-3d7a4f4a]{float:right;margin-right:10px;-ms-transform:scaleY(1.5);transform:scaleY(1.5);-webkit-transform:scaleY(1.5)}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import footTab from '../../components/common/footTab.vue'
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default
    // footTab
  },
  data: function data() {
    return {
      result: {},
      searchDate: '',
      showSearchBtn: false,
      showGuild: false,
      guildSrc: '',
      isApp: false,
      showToOnline: false
    };
  },
  created: function created() {
    this.getAppVersion();
  },
  mounted: function mounted() {
    var that = this;
    that.isApp = !!this._Util.isApp();
    console.log(that.isApp);
    var isPageHide = false;
    window.addEventListener('pageshow', function () {
      if (isPageHide) {
        window.location.reload();
      }
    });
    // that._Util.post(   多余的请求广告方法
    //   that._Api.POST_ADVERT_POSITION,
    //   { signType: 1 },
    //   data => {
    //     if (data && data.advertImg) {
    //       that.showGuild = false;
    //     } else {
    //       that.showGuild = true;
    //       that._Util.post(
    //         that._Api.POST_SYS_REPORT_LIST_TWO,
    //         { code: "soso_guide", pageNum: 1, pageSize: 1 },
    //         data => {
    //           that.guildSrc = data.dataList[0].url;
    //         },
    //         () => {},
    //         that
    //       );
    //     }
    //   },
    //   () => {},
    //   that,
    //   true
    // );
    window.addEventListener('pagehide', function () {
      isPageHide = true;
    });
    that._Util.collectPageView2({
      version: that._Util.version,
      postUrl: that._Api.POST_COLLECT,
      moduleType: '万能搜搜',
      operate_page: '搜索中心',
      optionType: '打开页面',
      param1: window.location.href
    }, that);
    that.getList();
  },
  methods: {
    getAppVersion: function getAppVersion() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'log_version_newest',
        pageSize: 1,
        pageNum: 10
      }, function (data) {
        if (data.dataList.length > 0) {
          var version = data.dataList[0].version;
          var versionNum = Number(version.split('.').join(''));
          console.log(versionNum);
          if (versionNum < 127) {
            that.showToOnline = false;
          } else {
            that.showToOnline = true;
          }
        }

        // if(){}
      }, function () {}, that, true);
    },
    toOnline: function toOnline() {
      if (this._Util.isApp() && this._Util.isAppRootWin()) {
        api.sendEvent({
          name: 'toOnlineFromWeb',
          extra: {}
        });
      }
    },
    getList: function getList() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search/portal/list.json', {}, function (data) {
        that.result = data;
        //              that.result.sort(function (a, b) {
        //                return a.sortingValue - b.sortingValue;
        //              });
      }, function () {}, that);
    },
    toSearch: function toSearch() {
      var that = this;
      localStorage.setItem('resultScrollTop', 0);
      localStorage.setItem('resultScrollFlag', 0);
      localStorage.setItem('resultList', '');
      localStorage.setItem('resultPages', 1);
      sessionStorage.setItem('randomStr', '');
      if (!that.searchDate) {
        setTimeout(function () {
          (0, _mintUi.Toast)('请输入关键字');
        }, 300);
        return;
      }
      if (that._Util.isApp()) {
        that._Util.acSendEvent({
          name: that._Enums.AC_ENUMS_OPEN_FRM,
          extra: {
            url: that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResultNew?index=0&title=全部&folderid=0&keyword=' + that.searchDate + '&isOnPageCenter=true'
          }
        });
        //              location.replace(that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResult?index=0&title=全部&folderid=0&keyword='+that.searchDate+'isOnPageCenter=true')
        //              this.$router.push({name:'appSearchResult',query:{index:0,title:'全部',folderid:0,keyword:that.searchDate,isOnPageCenter:true }})
      } else {
        this.$router.push({
          name: 'appSearchResult',
          query: {
            index: 0,
            title: '全部',
            folderid: 0,
            keyword: that.searchDate,
            isOnPageCenter: true
          }
        });
      }
    },
    goDetail: function goDetail(item, index) {
      var that = this;
      localStorage.setItem('resultScrollTop', 0);
      localStorage.setItem('resultScrollFlag', 0);
      localStorage.setItem('resultList', '');
      localStorage.setItem('resultPages', 1);
      sessionStorage.setItem('InforScrollTop', 0); // 页面滚动高度
      sessionStorage.setItem('InforScrollFlag', 0);
      sessionStorage.setItem('InforList', '');
      item.targetLinking = item.targetLinking.trim();
      if (that._Util.isApp()) {
        if (!item.folderId && item.targetLinking) {
          that._Util.acSendEvent({
            name: that._Enums.AC_ENUMS_OPEN_FRM,
            extra: {
              url: item.targetLinking
            }
          });
          //                window.open(item.targetLinking);
          //                location.href = item.targetLinking;
        }
        if (!item.folderId && !item.targetLinking) {
          return;
        }
        if (item.folderId && !item.targetLinking) {
          if (that.searchDate) {
            that._Util.acSendEvent({
              name: that._Enums.AC_ENUMS_OPEN_FRM,
              extra: {
                url: that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResultNew?index=' + index + '&title=' + item.title + '&folderid=' + item.folderId + '&keyword=' + that.searchDate + '&isOnPageCenter=true'
              }
            });
            //                  window.open(that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResult?index='+index+'&title='+item.title+'&folderid='+item.folderId+'&keyword='+that.searchDate+'&isOnPageCenter=true')
            //                  that.$router.push({name:'appSearchResult',query:{index:index,title:item.title,keyword:that.searchDate,folderid:item.folderId,isOnPageCenter:true}})
          } else {
            that._Util.acSendEvent({
              name: that._Enums.AC_ENUMS_OPEN_FRM,
              extra: {
                url: that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResultNew?index=' + index + '&title=' + item.title + '&folderid=' + item.folderId + '&keyword=' + that.searchDate + '&isCloseTabList=true&isClick=true'
              }
            });
            //                  window.open(that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResult?index='+index+'&title='+item.title+'&folderid='+item.folderId+'&keyword='+that.searchDate+'&isCloseTabList=true&isClick=true')
            //                  that.$router.push({name:'appSearchResult',query:{index:index,title:item.title,keyword:'',folderid:item.folderId ,isCloseTabList: true,isClick:true}})
          }
        }
        if (item.folderId && item.targetLinking) {
          if (that.searchDate) {
            that._Util.acSendEvent({
              name: that._Enums.AC_ENUMS_OPEN_FRM,
              extra: {
                url: that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResultNew?index=' + index + '&title=' + item.title + '&folderid=' + item.folderId + '&keyword=' + that.searchDate + '&isOnPageCenter=true'
              }
            });
            //                 window.open(that._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResult?index='+index+'&title='+item.title+'&folderid='+item.folderId+'&keyword='+that.searchDate+'&isOnPageCenter=true')
            //                  that.$router.push({name:'appSearchResult',query:{index:index,title:item.title,keyword:that.searchDate,folderid:item.folderId,isOnPageCenter:true}})
          } else {
            that._Util.acSendEvent({
              name: that._Enums.AC_ENUMS_OPEN_FRM,
              extra: {
                url: item.targetLinking
              }
            });
            //                  window.open(item.targetLinking);
          }
        }
      } else {
        if (!item.folderId && item.targetLinking) {
          that._Util.collectPageView2({
            version: that._Util.version,
            postUrl: that._Api.POST_COLLECT,
            moduleType: '万能搜搜',
            operate_page: '搜索中心',
            optionType: '点击',
            param1: item.targetLinking,
            param2: item.title,
            param4: {
              queryValue: '',
              result: '',
              filter: ''
            }
          }, that);
          window.open(item.targetLinking);
          //                location.href = item.targetLinking;
        }
        if (!item.folderId && !item.targetLinking) {
          return;
        }
        if (item.folderId && !item.targetLinking) {
          if (that.searchDate) {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '万能搜搜',
              operate_page: '搜索中心',
              optionType: '点击',
              param1: location.origin + '/v2/business/pay/appSearchResultNew',
              param2: item.title,
              param3: that._Util.randomChar(),
              param4: {
                queryValue: '',
                result: '',
                filter: ''
              }
            }, that);
            that.$router.push({
              name: 'appSearchResultNew',
              query: {
                index: index,
                title: item.title,
                keyword: that.searchDate,
                folderid: item.folderId,
                isOnPageCenter: true
              }
            });
          } else {
            that.$router.push({
              name: 'appSearchResultNew',
              query: {
                index: index,
                title: item.title,
                keyword: '',
                folderid: item.folderId,
                isCloseTabList: true,
                isClick: true
              }
            });
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '万能搜搜',
              operate_page: '搜索中心',
              optionType: '点击',
              param1: location.origin + '/v2/business/pay/appSearchResultNew',
              param2: item.title,
              param3: '',
              param4: {
                queryValue: '',
                result: '',
                filter: ''
              }
            }, that);
          }
        }
        if (item.folderId && item.targetLinking) {
          if (that.searchDate) {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '万能搜搜',
              operate_page: item.title,
              optionType: '点击',
              param1: item.folderId,
              param2: item.title,
              param3: that._Util.randomChar(),
              param4: {
                queryValue: '',
                result: '',
                filter: ''
              }
            }, that);
            that.$router.push({
              name: 'appSearchResultNew',
              query: {
                index: index,
                title: item.title,
                keyword: that.searchDate,
                folderid: item.folderId,
                isOnPageCenter: true
              }
            });
          } else {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '万能搜搜',
              operate_page: '搜索中心',
              optionType: '点击',
              param1: item.folderId,
              param2: item.title,
              param3: '',
              param4: {
                queryValue: '',
                result: '',
                filter: ''
              }
            }, that);
            window.open(item.targetLinking);
          }
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{}},[_c('div',{staticStyle:{}},[_c('div',{staticClass:"cycSearch"},[_c('div',{staticClass:"searchBox"},[_c('div',{staticClass:"searchContainer",class:{'animation1' :_vm.showSearchBtn}},[(!_vm.showSearchBtn)?_c('img',{staticClass:"searchFlag",attrs:{"src":__webpack_require__(272)}}):_vm._e(),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchDate),expression:"searchDate"}],class:{'animation2' :_vm.showSearchBtn},attrs:{"type":"text","placeholder":"不知道分类？点这里随便搜"},domProps:{"value":(_vm.searchDate)},on:{"~click":function($event){_vm.showSearchBtn = true},"input":function($event){if($event.target.composing){ return; }_vm.searchDate=$event.target.value}}})]),_vm._v(" "),_c('button',{staticClass:"search_btn",class:{'animation' :_vm.showSearchBtn},on:{"click":function($event){return _vm.toSearch()}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.isApp && _vm.showToOnline)?_c('div',{staticClass:"toOnline",on:{"click":_vm.toOnline}},[_vm._v("\n      找不到资料？点这里进入在线问答"),_c('span',{staticClass:"icon"},[_vm._v(">")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"flexBox"},_vm._l((_vm.result),function(v,index){return (v.isListDisplay == 1)?_c('div',{key:index,on:{"click":function($event){return _vm.goDetail(v,index)}}},[_c('div',[_c('img',{attrs:{"src":v.icon}})]),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.title))])]):_vm._e()}),0)]),_vm._v(" "),(_vm.showGuild)?_c('div',{staticClass:"guild"},[_c('img',{attrs:{"src":_vm.guildSrc,"alt":"新手指引"}})]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","margin-top":"20px","padding-bottom":"10px"}},[_c('Poking-me-component',{attrs:{"position-id":1}})],1),_vm._v(" "),(!_vm.isApp)?_c('div',{staticStyle:{"height":"49px","width":"100%"}}):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(589);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8b0e1cbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1188);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3176)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-8b0e1cbe"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8b0e1cbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8b0e1cbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3177);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("85803e0e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-8b0e1cbe]{-webkit-touch-callout:none}[data-v-8b0e1cbe],img[data-v-8b0e1cbe]{-webkit-user-select:none;-ms-user-select:none;user-select:none}img[data-v-8b0e1cbe]{width:100%;display:block;pointer-events:none}img[data-v-8b0e1cbe]:last-of-type{margin-bottom:35px}.loadMoreBox[data-v-8b0e1cbe]{padding:10px 0;background:#f9f9f9}.loadMore[data-v-8b0e1cbe]{border:1px solid #ee4545;width:147px;height:30px;line-height:30px;text-align:center;color:#fff;background:#ee4545;border-radius:5px;margin-right:auto;margin-left:auto}.loadMsg[data-v-8b0e1cbe]{height:30px;line-height:30px;text-align:center;color:#666}.isCollect[data-v-8b0e1cbe]{text-align:right;padding:0 1rem;margin-bottom:.5rem}.isCollect .collect-btn[data-v-8b0e1cbe]{display:inline-block;width:4rem;text-align:center;line-height:1.8rem;color:#fff;background-color:#0a79ff;border-radius:6px;border:1px solid #0a79ff}.isCollect .collect-btn2[data-v-8b0e1cbe]{color:#0a79ff;background-color:#fff}.zoomContainer[data-v-8b0e1cbe]{-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}#zoomContainer[data-v-8b0e1cbe]{cursor:-webkit-grab;cursor:grab;overflow:auto;width:100%;height:100%}#zoomContainer[data-v-8b0e1cbe]:active{cursor:-webkit-grabbing;cursor:grabbing}.picBox[data-v-8b0e1cbe]{-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import DataTips from '../../components/common/DataTips'
// import CorrectionsAndProblemsTools from '../common/correctionsAndProblemsTools'
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default
    // DataTips
    // CorrectionsAndProblemsTools
  },
  data: function data() {
    return {
      list: [],
      title: this.$route.query.title || '',
      pageNum: this.$route.query.pageNum,
      pageSize: this.$route.query.pageSize,
      count: this.$route.query.count,
      showLoadMore: true,
      type: this.$route.query.type,
      fileNo: this.$route.query.fileNo,
      fileId: this.$route.query.fileId,
      treeId: this.$route.query.treeId,
      filetype: this.$route.query.filetype,
      navigationId: this.$route.query.navigationId,
      dataloaded: false,
      canGet: false,
      timer: null,
      material: {
        data: this.$route.query.fileNo,
        no: '703a370a',
        sourceType: 0,
        // 类型
        sourceNo: this.$route.query.fileNo
      },
      // 电路图跳转问答参数
      isFromMft100: false,
      userVipType: '',
      isCollect: '',
      timing: '',
      time: 0,
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      isShow: false,
      scale: 1 // 初始缩放级别
    };
  },
  watch: {
    scale: function scale(newScale) {
      this.$refs.zoomContainer.style.transform = "scale(".concat(newScale, ")"); // 应用缩放效果
    }
  },
  created: function created() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var el, str, userData;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            // if (this.$route.query.title) {
            //   document.title = this.$route.query.title
            // }
            _this.isAdminPass = _this.$route.query.isAdminPass;
            _this.isAccessControl = _this.$route.query.isAccessControl;
            _this.isVip = _this.$route.query.isVip;
            _this.isSvip = _this.$route.query.isSvip;
            _this.isAccess = _this.$route.query.isAccess;
            // 修改视口标签 允许用户缩放
            el = document.getElementById('userScale');
            str = 'width=device-width, maximum-scale=20.0, user-scalable=yes';
            el.content = str;
            _this.isFromMft100 = localStorage.getItem('isFromMft100') === '1';
            _context.next = 1;
            return _this.getUserStatus();
          case 1:
            userData = _context.sent;
            _this.userVipType = userData.userVipType;
            // if (this.isAdminPass == 0) {
            if (!(_this.isAccessControl == 1)) {
              _context.next = 9;
              break;
            }
            if (_this._Util.isSVip(_this.userVipType)) {
              _context.next = 7;
              break;
            }
            if (!(_this.isSvip == 1 && _this.isAccess != 1)) {
              _context.next = 2;
              break;
            }
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: '资料SVIP专享,请您先开通SVIP再查看资料！',
              confirmButtonText: '确认',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                uni.navigateTo({
                  url: '/pages/mine/vip/index?type=1&vipType=1'
                });
                _this.clickFlag = true;
              } else {
                _this.clickFlag = true;
              }
            });
            return _context.abrupt("return");
          case 2:
            if (_this._Util.isVip(_this.userVipType)) {
              _context.next = 5;
              break;
            }
            if (!(_this.isVip == 1 && _this.isAccess != 1)) {
              _context.next = 3;
              break;
            }
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: '资料VIP专享,请您先开通VIP再查看资料！',
              confirmButtonText: '确认',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                uni.navigateTo({
                  url: '/pages/mine/vip/index?type=1&vipType=2'
                });
                _this.clickFlag = true;
              } else {
                _this.clickFlag = true;
              }
            });
            return _context.abrupt("return");
          case 3:
            _this.isShow = true;
            _this.getPicList();
          case 4:
            _context.next = 6;
            break;
          case 5:
            _this.isShow = true;
            _this.getPicList();
          case 6:
            _context.next = 8;
            break;
          case 7:
            _this.isShow = true;
            _this.getPicList();
          case 8:
            _context.next = 10;
            break;
          case 9:
            _this.isShow = true;
            _this.getPicList();
          case 10:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  destroyed: function destroyed() {
    // 回复视口标签 禁止缩放
    var el = document.getElementById('userScale');
    var str = 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no';
    el.content = str;
    clearInterval(this.timer);
  },
  mounted: function mounted() {
    var that = this;
    var isDragging = false;
    var startY = 0;
    var scrollTop = 0;
    var startX = 0;
    var scrollLeft = 0;
    var webview = document.getElementById('zoomContainer');
    console.log(webview);
    webview.addEventListener('mousedown', function (e) {
      isDragging = true;
      startY = e.clientY;
      scrollTop = webview.scrollTop;
      startX = e.clientX;
      scrollLeft = webview.scrollLeft;
      webview.style.cursor = 'grabbing';
      e.preventDefault();
    });
    document.addEventListener('mousemove', function (e) {
      if (!isDragging) return;
      console.log(e);
      console.log(webview.scrollLeft);
      var y = e.clientY;
      var x = e.clientX;
      var walk = (y - startY) * 2; // 乘以2可以增加滚动速度
      var walkX = (x - startX) * 2; // 乘以2可以增加滚动速度
      webview.scrollTop = scrollTop - walk;
      webview.scrollLeft = scrollLeft - walkX;
      console.log(e);
      console.log(webview.scrollLeft);
    });
    document.addEventListener('mouseup', function () {
      isDragging = false;
      webview.style.cursor = 'grab';
    });
    document.addEventListener('mouseleave', function () {
      isDragging = false;
      webview.style.cursor = 'grab';
    });
    that.shareConfig();
    if (that.pageNum * that.pageSize >= that.count) {
      that.showLoadMore = false;
      that.dataloaded = true;
      that.canGet = false;
    } else {
      that.showLoadMore = true;
      that.dataloaded = false;
      that.canGet = true;
    }
    // if (this.userVipType == 1) {
    //   that.timer = setTimeout(function() {
    //     if ($('.picBox').height() < $(window).height() && that.canGet) {
    //       that.loadMoreEvent()
    //     } else {
    //       clearInterval(that.timer)
    //     }
    //   }, 2000)
    // }
    var winH = (0, _jquery.default)(window).height();
    (0, _jquery.default)('#zoomContainer').scroll(function () {
      var docH = (0, _jquery.default)(document).height();
      var scrT = (0, _jquery.default)(this).scrollTop();
      // document.title = scrT+'--'+ docH +'--'+winH;
      if (winH + scrT >= docH - 140) {
        if (that.canGet) {
          that.loadMoreEvent();
        }
      }
    });
    // that._Util.collectPageViewNew(
    //   {
    //     type: 1,
    //     postUrl: that._Api.POST_COLLECT_NEW,
    //     source: '',
    //     target: that.fileId,
    //     remark: '资料图集',
    //     searchKey: ''
    //   },
    //   that
    // )
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: that.fileId,
        remark: '资料图集,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    downLoadFile: function downLoadFile() {
      var that = this;
      that.$http.post(that._Api.HOSTOLD + 'user-api/app/document/download/auth?id=' + that.fileId, {}).then(function (res) {
        if (res.data.status == 200) {
          var token = res.data.data;
          var allAddr = location.origin + '/downloadFile/downloadFile?token=' + token;
          setTimeout(function () {
            document.getElementById('addr').value = allAddr;
            var copyCon = document.getElementById('addr');
            copyCon.select(); // 选择对象
            document.execCommand('Copy'); // 执行浏览器复制命令
            (0, _mintUi.Toast)({
              message: '链接已复制，请打开浏览器粘贴下载资料',
              duration: 1500
            });
          }, 100);
        } else {
          (0, _mintUi.Toast)({
            message: res.data.msg,
            duration: 1500
          });
        }
      }).catch(function (error) {
        console.log(error);
      });
    },
    handleWheel: function handleWheel(event) {
      if (event.ctrlKey) {
        event.preventDefault(); // 阻止默认滚动行为
        var zoomFactor = 0.1; // 缩放因子
        var direction = event.deltaY < 0 ? 1 : -1; // 根据滚轮方向决定放大还是缩小
        this.scale += zoomFactor * direction; // 更新缩放级别
        this.scale = Math.min(Math.max(0.5, this.scale), 3); // 限制缩放范围
      }
    },
    collectOp: function collectOp() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search-api/dataOperate/collection', {
        dataId: that.fileId,
        type: 1,
        nationId: that.navigationId,
        level: this.$route.query.level == 1 ? 1 : 0
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        if (that.isCollect === '1') {
          that.isCollect = '0';
        } else {
          that.isCollect = '1';
        }
      }, function () {}, that);
    },
    /* 获取电路图数据*/getUserStatus: function getUserStatus() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this2);
      });
    },
    getPicList: function getPicList() {
      var that = this;
      /* 从搜索结果页进入图集*/
      if (that.$route.query.fromPage == 'soso') {
        that._Util.post(that._Api.HOSTOLD + 'search-api/product/getDataDetails', {
          dataNo: that.fileNo,
          navigationId: that.navigationId,
          pageNum: that.pageNum,
          pageSize: that.pageSize
        }, function (data) {
          that.isCollect = data.isCollect;
          document.title = data.atlasName;
          that.list = data.list;
          if (that.pageNum * that.pageSize >= data.reCount) {
            that.canGet = false;
            that.showLoadMore = false;
            that.dataloaded = true;
          } else {
            that.canGet = true;
            that.showLoadMore = true;
            that.dataloaded = false;
            setTimeout(function () {
              if ((0, _jquery.default)('.picBox').height() < (0, _jquery.default)(window).height() && that.canGet) {
                that.loadMoreEvent();
              }
            }, 1000);
          }
        }, function () {}, that);
        return;
      }
      /* 从资料页面进入*/
      if (that.treeId) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + that.fileNo + '&treeId=' + that.treeId).then(function (res) {
          console.log(res.data.data.shareUrl);
          if (that.filetype && that.filetype != 'JPG') {
            // location.href = res.data.data.shareUrl[0].fileUrl;
          } else {
            that.list = res.data.data.shareUrl;
          }
        }).catch(function (error) {
          console.log(error);
        });
      } else {
        /* query里面无title,count需要得到结果后赋值*/
        that._Util.post(that._Api.HOSTOLD + 'api/treeShare/getAtlasList.json', {
          keyword: that.fileNo,
          pageNum: that.pageNum,
          pageSize: that.pageSize
        }, function (data) {
          console.log(data);
          that.list = data.list;
          that.title = data.atlasName;
          that.count = data.totalCount;
          if (that.pageNum * that.pageSize < that.count) {
            // 如果页数乘以每一页的数量小于总数据数量 ，证明还有数据可以分页请求到
            that.canGet = true;
            that.showLoadMore = true;
            that.dataloaded = false;
          } else {
            that.canGet = false;
            that.showLoadMore = false;
            that.dataloaded = true;
          }
        }, function () {}, that);
      }
    },
    loadMoreEvent: function loadMoreEvent() {
      var that = this;
      that.canGet = false;
      that.pageNum++;
      if (that.type == 1) {
        that._Util.post(that._Api.HOSTOLD + 'search-api/product/getDataDetails', {
          dataNo: that.fileNo,
          pageNum: that.pageNum,
          pageSize: that.pageSize
        }, function (data) {
          if (data.list && data.list.length > 0) {
            var _iterator = _createForOfIteratorHelper(data.list),
              _step;
            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var v = _step.value;
                that.list.push(v);
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }
          }
          that.count = data.reCount;
          if (that.pageNum * that.pageSize >= that.count) {
            that.canGet = false;
            that.showLoadMore = false;
            that.dataloaded = true;
          } else {
            that.canGet = true;
            that.showLoadMore = true;
            that.dataloaded = false;
            setTimeout(function () {
              if ((0, _jquery.default)('.picBox').height() < (0, _jquery.default)(window).height() && that.canGet) {
                that.loadMoreEvent();
              }
            }, 1000);
          }
        }, function () {}, that);
      } else {
        that.$http.post(that._Api.HOSTOLD + 'api/treeShare/getAtlasList.json', {
          keyword: that.fileNo,
          pageNum: that.pageNum,
          pageSize: that.pageSize
        }).then(function (res) {
          if (res.data.data.list && res.data.data.list.length > 0) {
            var _iterator2 = _createForOfIteratorHelper(res.data.data.list),
              _step2;
            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var v = _step2.value;
                that.list.push(v);
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }
          }
          that.count = res.data.data.totalCount;
          if (that.pageNum * that.pageSize >= that.count) {
            that.canGet = false;
            that.showLoadMore = false;
            that.dataloaded = true;
          } else {
            that.canGet = true;
            that.showLoadMore = true;
            that.dataloaded = false;
          }
        }).catch(function (error) {
          console.log(error);
        });
      }
    },
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: document.title,
        desc: '',
        link: location.href,
        // imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        imgUrl: 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/common/270031CCF86D8E643DE5C929DE01687A.png'
      };
      var userinfo = JSON.parse(localStorage.getItem('userInfo'));
      if (this._Util.isFromApp()) {
        var src = encodeURIComponent(location.href + (location.href.includes('?') ? '&' : '?') + 'referee=' + userinfo.uphone);
        uni.postMessage({
          // eslint-disable-line
          data: {
            type: 'updataShareCont',
            title: _shareItem.title,
            imageUrl: _shareItem.imgUrl,
            link: '/pages/webView/webView?src=' + src
          }
        });
        // document.addEventListener('UniAppJSBridgeReady', function() {
        // const url = location.origin + '/repair/business/pay/picList?isScale=1&pageNum=1&pageSize=3&type=1&fileNo=' + that.fileNo + '&navigationId=' + that.navigationId + '&fileId=' + that.fileId + '&fromPage=soso&title=' + that.title
        // uni.postMessage({
        //   data: {
        //     type: 'updataShareCont',
        //     title: _shareItem.title,
        //     link: _shareItem.link,
        //     imageUrl: _shareItem.imgUrl
        //   }
        // })
        // })
      }
      // that._Util.post(
      //   that._Api.POST_COMMON_WXSDK_CONFIG,
      //   { url: that._Util.isIOS ? that.$store.state.firstUrl : location.href },
      //   function(data) {
      //     if (that._Util.isApp()) {
      //       api.sendEvent({
      //         name: 'shareToAcFlag',
      //         extra: {
      //           needShare: true
      //         }
      //       })
      //       api.addEventListener(
      //         {
      //           name: 'shareToWeb'
      //         },
      //         function(ret, err) {
      //           api.sendEvent({
      //             name: 'shareToAc',
      //             extra: {
      //               shareItem: _shareItem
      //             }
      //           })
      //         }
      //       )
      //       api.addEventListener(
      //         {
      //           name: 'shareToWebCallback'
      //         },
      //         function(ret, err) {}
      //       )
      //     } else if (that._Util.isMPaaS()) {
      //       document.addEventListener('optionMenu', (e) => {
      //         const params = { ..._shareItem }
      //         that._Util.mpassShare(params, () => {
      //         })
      //       }, false)
      //       document.addEventListener('gzOptionMenu', (e) => {
      //         const params = { ..._shareItem }
      //         that._Util.mpassShare(params, () => {
      //         })
      //       }, false)
      //     } else {
      //       wx.config({
      //         debug: false,
      //         appId: data.appId,
      //         timestamp: data.timestamp,
      //         nonceStr: data.nonceStr,
      //         signature: data.signature,
      //         jsApiList: [
      //           'onMenuShareTimeline',
      //           'onMenuShareAppMessage',
      //           'onMenuShareQQ',
      //           'onMenuShareWeibo',
      //           'onMenuShareQZone'
      //         ]
      //       })
      //       wx.ready(function() {
      //         const shareContent = {
      //           ..._shareItem,
      //           success() {},
      //           cancel() {}
      //         }
      //
      //         wx.onMenuShareTimeline(shareContent)
      //         wx.onMenuShareAppMessage(shareContent)
      //         wx.onMenuShareQQ(shareContent)
      //         wx.onMenuShareWeibo(shareContent)
      //       })
      //     }
      //   },
      //   function() {},
      //   that,
      //   true
      // )
    }
  }
  // beforeRouteEnter(to, from, next) {
  //   if (this._Util.isMPaaS()) {
  //     next()
  //     return
  //   }
  //   if (from.fullPath != '/') {
  //     location.assign(to.fullPath)
  //   }
  //   next()
  // }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"zoomContainer",attrs:{"id":"zoomContainer"},on:{"wheel":function($event){return _vm.handleWheel($event)}}},[(_vm.isShow)?_c('div',{ref:"zoomContainer",staticClass:"picBox",style:({paddingBottom: (!_vm.isFromMft100 ? '2.9rem' : '')})},[_c('div',{staticStyle:{"padding":"20px 10px","text-align":"center","font-size":"18px","font-weight":"bolder"},domProps:{"innerHTML":_vm._s(_vm.title)}}),_vm._v(" "),_c('div',{staticClass:"isCollect"},[_c('div',{staticClass:"collect-btn collect-btn2",staticStyle:{"margin-right":".2rem"},on:{"click":function($event){return _vm.downLoadFile()}}},[_vm._v("下载资料")]),_vm._v(" "),_c('input',{staticStyle:{"position":"fixed","bottom":"-10000px"},attrs:{"readonly":"","type":"text","id":"addr","value":""}}),_vm._v(" "),(_vm.isCollect==='0')?_c('div',{staticClass:"collect-btn",on:{"click":function($event){return _vm.collectOp()}}},[_vm._v("收藏")]):_vm._e(),_vm._v(" "),(_vm.isCollect==='1')?_c('div',{staticClass:"collect-btn collect-btn2",on:{"click":function($event){return _vm.collectOp()}}},[_vm._v("取消收藏")]):_vm._e()]),_vm._v(" "),_vm._l((_vm.list),function(v){return _c('img',{key:v.shareId,attrs:{"src":v.fileUrl}})}),_vm._v(" "),(_vm.showLoadMore)?_c('div',{staticClass:"loadMsg"},[_vm._v("加载中")]):_vm._e(),_vm._v(" "),(_vm.dataloaded)?_c('div',{staticClass:"loadMsg"},[_vm._v("没有更多了")]):_vm._e(),_vm._v(" "),_c('Poking-me-component',{attrs:{"sensor-name":['资料详情', '列表页'],"is-from-mft100":_vm.isFromMft100,"position-id":4,"ad-height":4.5}})],2):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(590);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ffb9a30e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1189);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3178)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ffb9a30e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ffb9a30e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ffb9a30e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picListAssist_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3179);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2d0c03d6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-ffb9a30e]{-webkit-touch-callout:none}[data-v-ffb9a30e],img[data-v-ffb9a30e]{-webkit-user-select:none;-ms-user-select:none;user-select:none}img[data-v-ffb9a30e]{width:100%;display:block;pointer-events:none}img[data-v-ffb9a30e]:last-of-type{margin-bottom:35px}.loadMoreBox[data-v-ffb9a30e]{padding:10px 0;background:#f9f9f9}.loadMore[data-v-ffb9a30e]{border:1px solid #ee4545;width:147px;height:30px;line-height:30px;text-align:center;color:#fff;background:#ee4545;border-radius:5px;margin-right:auto;margin-left:auto}.loadMsg[data-v-ffb9a30e]{height:30px;line-height:30px;text-align:center;color:#666}.isCollect[data-v-ffb9a30e]{text-align:right;padding:0 1rem}.isCollect .collect-btn[data-v-ffb9a30e]{display:inline-block;width:4rem;text-align:center;line-height:1.8rem;color:#fff;background-color:#0a79ff;border-radius:6px;border:1px solid #0a79ff}.isCollect .collect-btn2[data-v-ffb9a30e]{color:#0a79ff;background-color:#fff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import DataTips from '../../components/common/DataTips'
// import CorrectionsAndProblemsTools from '../common/correctionsAndProblemsTools'
var _default = exports.default = {
  components: {
    PokingMeComponent: _pokingMeComponent.default
    // DataTips
    // CorrectionsAndProblemsTools
  },
  data: function data() {
    return {
      list: [],
      title: this.$route.query.title || '',
      pageNum: this.$route.query.pageNum,
      pageSize: this.$route.query.pageSize,
      count: this.$route.query.count,
      showLoadMore: true,
      type: this.$route.query.type,
      fileNo: this.$route.query.fileNo,
      fileId: this.$route.query.fileId,
      treeId: this.$route.query.treeId,
      filetype: this.$route.query.filetype,
      navigationId: this.$route.query.navigationId,
      dataloaded: false,
      canGet: false,
      timer: null,
      material: {
        data: this.$route.query.fileNo,
        no: '703a370a',
        sourceType: 0,
        // 类型
        sourceNo: this.$route.query.fileNo
      },
      // 电路图跳转问答参数
      isFromMft100: false,
      userVipType: '',
      isCollect: '',
      timing: '',
      time: 0,
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      isShow: false,
      data: {}
    };
  },
  created: function created() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var el, str;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            // this.isAdminPass = this.$route.query.isAdminPass
            // this.isAccessControl = this.$route.query.isAccessControl
            // this.isVip = this.$route.query.isVip
            // this.isSvip = this.$route.query.isSvip
            // this.isAccess = this.$route.query.isAccess
            // 修改视口标签 允许用户缩放
            el = document.getElementById('userScale');
            str = 'width=device-width, maximum-scale=20.0, user-scalable=yes';
            el.content = str;
            // this.isFromMft100 = localStorage.getItem('isFromMft100') === '1'
            _this.isShow = true;
            _this.getPicList();
            // const userData = await this.getUserStatus()
            // this.userVipType = userData.userVipType
            // if (this.isAccessControl == 1) {
            //   if (!this._Util.isSVip(this.userVipType)) {
            //     if (this.isSvip == 1 && this.isAccess != 1) {
            //       MessageBox({
            //         title: '提示',
            //         message: '资料SVIP专享,请您先开通SVIP再查看资料！',
            //         confirmButtonText: '确认',
            //         showCancelButton: true,
            //         cancelButtonText: '取消'
            //       }).then(action => {
            //         if (action === 'confirm') {
            //           uni.navigateTo({
            //             url: '/pages/mine/vip/index?type=1&vipType=1'
            //           })
            //           this.clickFlag = true
            //         } else {
            //           this.clickFlag = true
            //         }
            //       })
            //       return
            //     } else {
            //       if (!this._Util.isVip(this.userVipType)) {
            //         if (this.isVip == 1 && this.isAccess != 1) {
            //           MessageBox({
            //             title: '提示',
            //             message: '资料VIP专享,请您先开通VIP再查看资料！',
            //             confirmButtonText: '确认',
            //             showCancelButton: true,
            //             cancelButtonText: '取消'
            //           }).then(action => {
            //             if (action === 'confirm') {
            //               uni.navigateTo({
            //                 url: '/pages/mine/vip/index?type=1&vipType=2'
            //               })
            //               this.clickFlag = true
            //             } else {
            //               this.clickFlag = true
            //             }
            //           })
            //           return
            //         } else {
            //           this.isShow = true
            //           this.getPicList()
            //         }
            //       } else {
            //         this.isShow = true
            //         this.getPicList()
            //       }
            //     }
            //   } else {
            //     this.isShow = true
            //     this.getPicList()
            //   }
            // } else {
            //   this.isShow = true
            //   this.getPicList()
            // }
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  destroyed: function destroyed() {
    // 回复视口标签 禁止缩放
    var el = document.getElementById('userScale');
    var str = 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no';
    el.content = str;
    clearInterval(this.timer);
  },
  mounted: function mounted() {
    var that = this;
    // that.shareConfig()
    // if (that.pageNum * that.pageSize >= that.count) {
    //   that.showLoadMore = false
    //   that.dataloaded = true
    //   that.canGet = false
    // } else {
    //   that.showLoadMore = true
    //   that.dataloaded = false
    //   that.canGet = true
    // }
    // if (this.userVipType == 1) {
    //   that.timer = setInterval(function() {
    //     if ($('.picBox').height() < $(window).height() && that.canGet) {
    //       that.loadMoreEvent()
    //     } else {
    //       clearInterval(that.timer)
    //     }
    //   }, 2000)
    // }
    // const winH = $(window).height()
    // $(window).scroll(function() {
    //   const docH = $(document).height()
    //   const scrT = $(this).scrollTop()
    //   // document.title = scrT+'--'+ docH +'--'+winH;
    //   if (winH + scrT >= docH - 140) {
    //     if (that.canGet) {
    //       that.loadMoreEvent()
    //     }
    //   }
    // })
    // that._Util.collectPageViewNew(
    //   {
    //     type: 1,
    //     postUrl: that._Api.POST_COLLECT_NEW,
    //     source: '',
    //     target: that.fileId,
    //     remark: '资料图集',
    //     searchKey: ''
    //   },
    //   that
    // )
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: that.fileId,
        remark: '资料图集,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    collectOp: function collectOp() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search-api/dataOperate/collection', {
        dataId: that.fileId,
        type: 1,
        nationId: that.navigationId,
        level: 0
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        if (that.isCollect === '1') {
          that.isCollect = '0';
        } else {
          that.isCollect = '1';
        }
      }, function () {}, that);
    },
    /* 获取电路图数据*/getUserStatus: function getUserStatus() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this2);
      });
    },
    getPicList: function getPicList() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search-api/assistActivities/info', {
        huodongId: this.$route.query.huodongId,
        zhuliId: null,
        source: 1
      }, function (data) {
        that.data = data;
        that.list.push(data.dataUrl);
      }, function () {}, that);
    },
    loadMoreEvent: function loadMoreEvent() {
      var that = this;
      that.canGet = false;
      that.pageNum++;
      if (that.type == 1) {
        that._Util.post(that._Api.HOSTOLD + 'search-api/product/getDataDetails', {
          dataNo: that.fileNo,
          pageNum: that.pageNum,
          pageSize: that.pageSize
        }, function (data) {
          if (data.list && data.list.length > 0) {
            var _iterator = _createForOfIteratorHelper(data.list),
              _step;
            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var v = _step.value;
                that.list.push(v);
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }
          }
          that.count = data.reCount;
          if (that.pageNum * that.pageSize >= that.count) {
            that.canGet = false;
            that.showLoadMore = false;
            that.dataloaded = true;
          } else {
            that.canGet = true;
            that.showLoadMore = true;
            that.dataloaded = false;
          }
        }, function () {}, that);
      } else {
        that.$http.post(that._Api.HOSTOLD + 'api/treeShare/getAtlasList.json', {
          keyword: that.fileNo,
          pageNum: that.pageNum,
          pageSize: that.pageSize
        }).then(function (res) {
          if (res.data.data.list && res.data.data.list.length > 0) {
            var _iterator2 = _createForOfIteratorHelper(res.data.data.list),
              _step2;
            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var v = _step2.value;
                that.list.push(v);
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }
          }
          that.count = res.data.data.totalCount;
          if (that.pageNum * that.pageSize >= that.count) {
            that.canGet = false;
            that.showLoadMore = false;
            that.dataloaded = true;
          } else {
            that.canGet = true;
            that.showLoadMore = true;
            that.dataloaded = false;
          }
        }).catch(function (error) {
          console.log(error);
        });
      }
    },
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: document.title,
        desc: '',
        link: location.href,
        // imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        imgUrl: 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/common/270031CCF86D8E643DE5C929DE01687A.png'
      };
      var userinfo = JSON.parse(localStorage.getItem('userInfo'));
      if (this._Util.isFromApp()) {
        var src = encodeURIComponent(location.href + (location.href.includes('?') ? '&' : '?') + 'referee=' + userinfo.uphone);
        uni.postMessage({
          // eslint-disable-line
          data: {
            type: 'updataShareCont',
            title: _shareItem.title,
            imageUrl: _shareItem.imgUrl,
            link: '/pages/webView/webView?src=' + src
          }
        });
        // document.addEventListener('UniAppJSBridgeReady', function() {
        // const url = location.origin + '/repair/business/pay/picList?isScale=1&pageNum=1&pageSize=3&type=1&fileNo=' + that.fileNo + '&navigationId=' + that.navigationId + '&fileId=' + that.fileId + '&fromPage=soso&title=' + that.title
        // uni.postMessage({
        //   data: {
        //     type: 'updataShareCont',
        //     title: _shareItem.title,
        //     link: _shareItem.link,
        //     imageUrl: _shareItem.imgUrl
        //   }
        // })
        // })
      }
      // that._Util.post(
      //   that._Api.POST_COMMON_WXSDK_CONFIG,
      //   { url: that._Util.isIOS ? that.$store.state.firstUrl : location.href },
      //   function(data) {
      //     if (that._Util.isApp()) {
      //       api.sendEvent({
      //         name: 'shareToAcFlag',
      //         extra: {
      //           needShare: true
      //         }
      //       })
      //       api.addEventListener(
      //         {
      //           name: 'shareToWeb'
      //         },
      //         function(ret, err) {
      //           api.sendEvent({
      //             name: 'shareToAc',
      //             extra: {
      //               shareItem: _shareItem
      //             }
      //           })
      //         }
      //       )
      //       api.addEventListener(
      //         {
      //           name: 'shareToWebCallback'
      //         },
      //         function(ret, err) {}
      //       )
      //     } else if (that._Util.isMPaaS()) {
      //       document.addEventListener('optionMenu', (e) => {
      //         const params = { ..._shareItem }
      //         that._Util.mpassShare(params, () => {
      //         })
      //       }, false)
      //       document.addEventListener('gzOptionMenu', (e) => {
      //         const params = { ..._shareItem }
      //         that._Util.mpassShare(params, () => {
      //         })
      //       }, false)
      //     } else {
      //       wx.config({
      //         debug: false,
      //         appId: data.appId,
      //         timestamp: data.timestamp,
      //         nonceStr: data.nonceStr,
      //         signature: data.signature,
      //         jsApiList: [
      //           'onMenuShareTimeline',
      //           'onMenuShareAppMessage',
      //           'onMenuShareQQ',
      //           'onMenuShareWeibo',
      //           'onMenuShareQZone'
      //         ]
      //       })
      //       wx.ready(function() {
      //         const shareContent = {
      //           ..._shareItem,
      //           success() {},
      //           cancel() {}
      //         }
      //
      //         wx.onMenuShareTimeline(shareContent)
      //         wx.onMenuShareAppMessage(shareContent)
      //         wx.onMenuShareQQ(shareContent)
      //         wx.onMenuShareWeibo(shareContent)
      //       })
      //     }
      //   },
      //   function() {},
      //   that,
      //   true
      // )
    }
  }
  // beforeRouteEnter(to, from, next) {
  //   if (this._Util.isMPaaS()) {
  //     next()
  //     return
  //   }
  //   if (from.fullPath != '/') {
  //     location.assign(to.fullPath)
  //   }
  //   next()
  // }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isShow)?_c('div',{staticClass:"picBox",style:({paddingBottom: (!_vm.isFromMft100 ? '2.9rem' : '')})},[_c('div',{staticStyle:{"padding":"20px 10px","text-align":"center","font-size":"18px","font-weight":"bolder"},domProps:{"innerHTML":_vm._s(_vm.data.name)}}),_vm._v(" "),_vm._l((_vm.list),function(v,index){return _c('img',{key:index,attrs:{"src":v}})})],2):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(591);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ae6dc8c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1190);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3180)
  __webpack_require__(3182)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0ae6dc8c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ae6dc8c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ae6dc8c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3181);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("03a489ed", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".touch[data-v-0ae6dc8c]{-ms-touch-action:none;touch-action:none}.outContainer[data-v-0ae6dc8c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;overflow:hidden}.scrollBox[data-v-0ae6dc8c]{-webkit-box-flex:1!important;-webkit-flex:1!important;-ms-flex:1!important;flex:1!important}.popupStyle[data-v-0ae6dc8c]{position:fixed;width:100%;height:-webkit-calc(100% - 60px);height:calc(100% - 60px)}.cycSearch[data-v-0ae6dc8c]{padding:10px;box-sizing:content-box;background:#fff;position:relative;z-index:9}.cycSearch.topSearch[data-v-0ae6dc8c]{overflow:auto;height:40px}.cycSearch>div[data-v-0ae6dc8c]{position:relative}.cycSearch>div.searchTabList[data-v-0ae6dc8c]{border:none}.cycSearch input[data-v-0ae6dc8c]{height:40px;text-indent:10px;width:100%;float:left;-webkit-transition:all .6s;transition:all .6s;border-radius:4px;background:#e9e9e9}.cycSearch .animation1[data-v-0ae6dc8c]{text-align:left;width:78%}.cycSearch button[data-v-0ae6dc8c]{position:absolute;width:20%;height:40px;right:0;top:0;font-size:16px;background:#ee4545;color:#fff;-webkit-transition:all .6s;transition:all .6s;border-radius:4px;transform:translateX(188px);-ms-transform:translateX(188px);-webkit-transform:translateX(188px);-o-transform:translateX(188px);-moz-transform:translateX(188px)}.cycSearch .animation[data-v-0ae6dc8c]{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}.tabBox[data-v-0ae6dc8c]{border-bottom:1px solid #e6e6e6;border-top:1px solid #e6e6e6;background:#fff;width:100%;position:relative;z-index:8;box-shadow:0 0 10px 0 hsla(0,0%,77%,.6)}.tabBox[data-v-0ae6dc8c]::-webkit-scrollbar{display:none}.removeBottom1[data-v-0ae6dc8c]{border-bottom:none}.cycSearch input.specail[data-v-0ae6dc8c]{outline:none;color:transparent;caret-color:transparent;position:absolute;z-index:1;background:none;margin-left:-100%;text-indent:-999em;height:1px}.keyspan[data-v-0ae6dc8c]{background:#fff;width:80%;height:49px;line-height:49px;border:1px solid #a6a6a6;border-radius:4px;border-right:none;font-size:16px;border-top-right-radius:0;border-bottom-right-radius:0;text-indent:10px;color:#333;overflow:hidden;position:relative;z-index:2}.keyspan i[data-v-0ae6dc8c]{color:#3476eb;font-size:22px;font-weight:700;-webkit-animation:keyfade 1s infinite linear;animation:keyfade 1s infinite linear}.keyspan[data-v-0ae6dc8c]:focus:before{content:none;font-size:12px}.tabBox>div[data-v-0ae6dc8c]{height:40px;line-height:40px;width:20%;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#666;float:left;position:relative}.tabBox>div.ac[data-v-0ae6dc8c]{color:#ee4545}.tabBox>div.dropArrow>span[data-v-0ae6dc8c]{width:10px;height:5px;background-image:url(" + escape(__webpack_require__(745)) + ");background-repeat:no-repeat;background-size:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);margin-left:2px}.tabBox>div.ac[data-v-0ae6dc8c]:after{content:\"\";color:#ee4545;border:1px;font-family:PingFangSC-Regular;position:absolute;height:3px;width:28px;background-color:#ee4545;bottom:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.moreTab[data-v-0ae6dc8c]{background-color:#fafafa;overflow:hidden;padding-top:12px;margin-bottom:10px}.moreTab .tabWrap[data-v-0ae6dc8c]{width:25%;float:left;text-align:center;margin-bottom:12px}.moreTab .smallTab[data-v-0ae6dc8c]{font-family:PingFangSC-Regular;font-size:16px;color:#666;border:1px solid #cdcdcd;text-align:center;width:76px;height:28px;line-height:26px;display:inline-block}.moreTab .smallTab.active[data-v-0ae6dc8c]{color:#ee4545;border:1px solid #ee4545;border-radius:2px}.listCon[data-v-0ae6dc8c]{padding:16px 12px 15px 0;margin-left:12px;background:#fff;position:relative;border-bottom:1px solid #e6e6e6}.ListInfo[data-v-0ae6dc8c]{margin-top:4px;font-size:14px;color:#666}.toBottom[data-v-0ae6dc8c]{position:absolute;bottom:0;left:0}.tagsBox[data-v-0ae6dc8c]{margin-top:3px}.tagsBox ul[data-v-0ae6dc8c]{overflow:hidden}.tagsBox ul li[data-v-0ae6dc8c]{float:left;background:#e9eef7;color:#3476eb;height:22px;line-height:22px;padding:0 7px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:15px;margin-top:5px;font-family:PingFangSC-Regular;font-size:12px}.leftCon[data-v-0ae6dc8c]{width:95%;font-size:18px;max-height:105px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;color:#444;line-height:26px}.rightCon[data-v-0ae6dc8c]{position:absolute;width:79px;height:26px;bottom:15px;right:0}.loadMore[data-v-0ae6dc8c]{width:280px;height:44px;line-height:44px;text-align:center;background:#ee4545;border-radius:5px;margin-right:auto;margin-left:auto;color:#fff}.butCon[data-v-0ae6dc8c]{width:92%;height:35px;margin:0 auto;position:relative;border-top:1px solid #f2f2f2}.butCon>span[data-v-0ae6dc8c]{position:absolute;width:2px;height:12px;background:#b2b2b2;left:50%;margin-left:-1px;top:50%;margin-top:-6px}.butCon>div[data-v-0ae6dc8c]{float:left;width:50%;height:100%;font-size:16px;text-align:center;line-height:35px;background:#fff}.butCon>div[data-v-0ae6dc8c]:nth-of-type(2){float:right}.windowMask[data-v-0ae6dc8c]{z-index:-1;opacity:0}#privMask[data-v-0ae6dc8c],.windowMask[data-v-0ae6dc8c]{width:100%;height:100%;background:rgba(0,0,0,.4);position:absolute;top:0;left:0}#privMask[data-v-0ae6dc8c]{z-index:1000;opacity:.5;display:none}.windowMaskShow[data-v-0ae6dc8c]{z-index:10;opacity:1}.contentBox[data-v-0ae6dc8c]{width:300px;height:280px;position:absolute;top:50%;margin-top:-190px;left:50%;margin-left:-150px;background:#fff}.a-upload[data-v-0ae6dc8c]{width:30px;height:30px;position:relative;cursor:pointer;overflow:hidden}.uploadimg[data-v-0ae6dc8c]{display:inline-block;width:30px;height:30px}.putPhoto[data-v-0ae6dc8c]{width:30px;height:30px;opacity:0;position:absolute;left:0;top:0}.option[data-v-0ae6dc8c]{border-top:1px solid #ccc;width:100%;height:40px;position:absolute;bottom:0}.option li[data-v-0ae6dc8c]{width:50%;float:left;height:40px;text-align:center;line-height:40px;font-size:16px}.option li[data-v-0ae6dc8c]:nth-of-type(2){background:#b10217;color:#fff}.dc[data-v-0ae6dc8c]{width:92%;height:100px;margin:0 auto;background:#fff;position:relative;border-top-left-radius:5px;border-top-right-radius:5px}.imgB[data-v-0ae6dc8c]{width:67px;height:63px;position:absolute;top:50%;margin-top:-32px;left:25px}.cbox[data-v-0ae6dc8c]{position:absolute;left:100px;height:50px;top:50%;margin-top:-25px}.tips[data-v-0ae6dc8c]{padding:0 10px;font-size:14px;line-height:20px;margin-top:15px}.tips .yuanxinl[data-v-0ae6dc8c]{margin-top:3px;list-style:square;padding-left:15px;position:relative}.circle[data-v-0ae6dc8c]{position:absolute;width:5px;height:5px;background:#000;top:7px;border-radius:50%;-webkit-border-radius:50%;left:0}.falCodeBox[data-v-0ae6dc8c]{font-size:16px;padding:9px 12px;color:#666;border-bottom:1px solid #f2f2f2;background:#fff;position:relative}div.falCodeBox[data-v-0ae6dc8c]:nth-last-of-type(2){border-bottom:10px solid #f2f2f2}.result-go-next[data-v-0ae6dc8c]{position:absolute;right:12px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3183);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("26981a39", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".partInfo[data-v-0ae6dc8c]{background-color:#fff}.partInfo .item[data-v-0ae6dc8c]{line-height:45px;font-family:PingFangSC-Regular;font-size:18px;color:#333;position:relative;margin-left:12px;border-bottom:1px solid #e2e2e2;overflow:hidden}.partInfo .item[data-v-0ae6dc8c]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.testData[data-v-0ae6dc8c]{background-color:#fff}.testData .item[data-v-0ae6dc8c]{line-height:45px;font-family:PingFangSC-Regular;font-size:18px;color:#333;position:relative;margin-left:12px;border-bottom:1px solid #e2e2e2;overflow:hidden}.testData .item[data-v-0ae6dc8c]:after{content:\"\";width:7px;height:12px;background-image:url(" + escape(__webpack_require__(46)) + ");background-size:100%;background-repeat:no-repeat;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.iqa[data-v-0ae6dc8c]{height:44px;line-height:44px;background:#fff;margin-top:50px}.iqa img[data-v-0ae6dc8c]{width:20px;height:20px;margin-top:12px}.iqa img[data-v-0ae6dc8c],.iqa span[data-v-0ae6dc8c]{float:left;margin-left:10px}.iqa i[data-v-0ae6dc8c]{float:right;width:10px;height:100%;background:url(" + escape(__webpack_require__(211)) + ") 50% no-repeat;background-size:8px 15px;margin-right:10px}.keyboard[data-v-0ae6dc8c]{position:fixed;bottom:-600px;width:100%;z-index:100;background:#d0d3da}.keyboard table[data-v-0ae6dc8c]{border-collapse:inherit;border-spacing:.6rem .5rem}.keyboard table tr td[data-v-0ae6dc8c]{width:3.35rem;height:2rem;line-height:2rem;text-align:center;background:#a7afbc;border-radius:.2rem;font-size:1.1rem;color:#0c0c0c;box-shadow:0 1px 0 0 #8c959c;position:relative}.keyboard table tr td img[data-v-0ae6dc8c]{width:1.3rem;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);pointer-events:none}.keyboard table tr td.press[data-v-0ae6dc8c]{background:#fafafa}.keyboard table tr td.pressWhite[data-v-0ae6dc8c]{background:#a7afbc}.keyboard table tr .white[data-v-0ae6dc8c]{background:#fafafa;box-shadow:0 1px 0 0 #888c8f}.keyboard table tr:last-of-type td[data-v-0ae6dc8c]:last-of-type{background:#096cff;color:#fff;font-size:.9rem}.keyboard.show[data-v-0ae6dc8c]{-webkit-animation:mymove-data-v-0ae6dc8c .5s 1 forwards;animation:mymove-data-v-0ae6dc8c .5s 1 forwards}@keyframes mymove-data-v-0ae6dc8c{0%{bottom:-600px}to{bottom:0}}@-webkit-keyframes mymove-data-v-0ae6dc8c{0%{bottom:-600px}to{bottom:0}}@keyframes keyfade-data-v-0ae6dc8c{0%{opacity:1}to{opacity:0}}@-webkit-keyframes keyfade-data-v-0ae6dc8c{0%{opacity:1}to{opacity:0}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = _interopRequireDefault(__webpack_require__(22));
var _collection = _interopRequireDefault(__webpack_require__(137));
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _mintUi = __webpack_require__(7);
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _closePageComponent = _interopRequireDefault(__webpack_require__(313));
var _testDataDetail = _interopRequireDefault(__webpack_require__(279));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(172));
var _reasult = _interopRequireDefault(__webpack_require__(1678));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-line
var _default = exports.default = {
  components: {
    Collection: _collection.default,
    PokingMeComponent: _pokingMeComponent.default,
    ClosePageComponent: _closePageComponent.default,
    TestDataDetail: _testDataDetail.default,
    newFaultCode: _reasult.default
  },
  data: function data() {
    return {
      isReplaceNew: true,
      isNewFaultCode: null,
      searchDate: this.$route.query.keyword.trim() || '',
      // 搜索关键字
      searchDate1: '',
      searchDate2: '',
      placeholderCon: '请输入想要搜索的资料',
      isCloseTabList: this.$route.query.isCloseTabList,
      TabList: [{
        id: 0,
        title: '全部',
        isShow: 1,
        folderId: 0
      }],
      subtabList: [],
      showSearchBtn: false,
      showCan: false,
      showFaltcode: false,
      showTab: false,
      removeBottom: false,
      showWindowMask: false,
      showLoadMore: false,
      showDC: false,
      ios: false,
      showNoResult: false,
      searchParms: {
        parentClassId: this.$route.query.folderid || 0,
        dataName: '',
        pageNum: 1,
        pageSize: 50
      },
      parms: {
        folderid: this.$route.query.folderid || 0
      },
      imgSrc: [],
      result: [],
      thisheight: 0,
      iframHeight: '',
      title: this.$route.query.title || '',
      showIfram: false,
      flatResultCodeSrc: location.origin + '/v2/faultCode/list?keyword=undefined',
      myAdvise: '',
      userInfoResult: {},
      totalCount: '',
      randomStr: '',
      falCodeNumber: '',
      ShowNoResult: false,
      showPart: false,
      showDataTest: false,
      contScrollTop: 0,
      showDetail: false,
      // 点击tablist是否显示对应的详细信息
      question: '',
      detailResult: {},
      testCode: '',
      iosOrAndroid: false,
      // 解决touch ios中报错
      canopenpdf: false,
      // app版本大于等于1.4.1才为true
      showKeyboard: false,
      // 滑出键盘
      showCursor: false,
      // 光标展示
      text: '输入代码查询',
      timer: null,
      keyList: [
      // 键盘数据
      [{
        mes: 'A'
      }, {
        mes: 1,
        class: 'white'
      }, {
        mes: 2,
        class: 'white'
      }, {
        mes: 3,
        class: 'white'
      }, {
        mes: 'delete',
        src: __webpack_require__(264)
      }], [{
        mes: 'B'
      }, {
        mes: 4,
        class: 'white'
      }, {
        mes: 5,
        class: 'white'
      }, {
        mes: 6,
        class: 'white'
      }, {
        mes: 'D'
      }], [{
        mes: 'C'
      }, {
        mes: 7,
        class: 'white'
      }, {
        mes: 8,
        class: 'white'
      }, {
        mes: 9,
        class: 'white'
      }, {
        mes: 'E'
      }], [{
        mes: 'U',
        rowspan: '2'
      }, {
        mes: 0,
        class: 'white'
      }, {
        mes: '-',
        class: 'white',
        colspan: '2'
      }, {
        mes: 'F'
      }], [{}, {
        mes: 'P',
        colspan: '2'
      }, {}, {
        mes: 'key',
        src: __webpack_require__(265)
      }, {
        mes: '搜索'
      }]]
    };
  },
  watch: {
    // '$route': function () {
    //     if(this.parms.folderid == 10087 || this.parms.folderid == 10088){
    //       this.$router.go(0);
    //     }else{
    //       this.tosearch();
    //     }
    // }
  },
  created: function created() {
    var that = this;
    document.title = '资料查询';
    if (that._Util.isIOS) {
      that.ios = true;
    } else {
      that.ios = false;
    }
    that.getUserState();
    if (that.$route.query.title) {
      that.placeholderCon = that.$route.query.title;
    }
    // 获取tab分类列表
    that.getList();
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that.ios) {
        // that.upload();
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    var that = this;
    that.iosOrAndroid = that._Util.getUserAgent().platForm == 'ios';
    /* 判断app版本*/
    setTimeout(function () {
      if (that._Util.isApp()) {
        var version = localStorage.getItem('newVersion');
        if (that.compareVersion(version)) {
          that.canopenpdf = true;
        }
      }
    }, 500);

    // 监听ClosePageComponent组件内的closeDetail事件，对数据进行恢复
    that.$on('closeDetail', function () {
      that.showDetail = false;
      that.detailResult = {};
      // that.keyword = that.oldKeyword || that.keyword;
      // that.$route.query.keyword = '';
    });
    (0, _jquery.default)('#contentBox1').scroll(function () {
      // document.title = $(this).scrollTop() + '--' + $(this).height();
      if ((0, _jquery.default)('#contentBox1').scrollTop() == 0) {
        that.removeBottom = false;
      } else {
        that.removeBottom = true;
      }
    });
    if (localStorage.getItem('resultScrollFlag') && localStorage.getItem('resultScrollFlag') == 1) {
      var job = JSON.parse(localStorage.getItem('resultList'));
      for (var i = 0; i < job.length; i++) {
        job[i] = JSON.parse(job[i]);
      }
      that.result = job;
      that.searchParms.pageNum = localStorage.getItem('resultPages');
      that.tosearch(true);
      var resultScrollTop = localStorage.getItem('resultScrollTop');
      setTimeout(function () {
        (0, _jquery.default)('#contentBox1').scrollTop(resultScrollTop);
        localStorage.setItem('resultScrollTop', 0);
        localStorage.setItem('resultScrollFlag', 0);
        localStorage.setItem('resultList', '');
        localStorage.setItem('resultPages', 1);
      }, 700);
    } else {
      if (that.$route.query.keyword) {
        that.isReplaceNewSoso(function () {
          that.tosearch();
        });
      }
    }
    // that.pushHistory();
    // window.addEventListener("popstate", function(e) {
    //       window.location.replace(location.origin + '/v2/business/pay/appSearch')
    //       that.pushHistory();
    // }, false);
    var iframe1 = document.getElementsByTagName('iframe')[0];
    if (iframe1) {
      that.$nextTick(function () {
        if (that.parms.folderid == 10086 && !that.isCloseTabList) {
          iframe1.style.cssText = 'height:100%;position:absolute;top:0;left:0;right:0;bottom:0;';
        }
      });
    }
  },
  updated: function updated() {
    var lists = (0, _jquery.default)('.listCon');
    var listLen = lists.length;
    for (var i = 0; i < listLen; i++) {
      if (lists.eq(i).height() <= 95 && lists.eq(i).find('.tagsBox').length == 0 && lists.eq(i).find('.leftCon').height() < 30) {
        lists.eq(i).find('.ListInfo').addClass('toBottom');
      }
    }
  },
  destroyed: function destroyed() {
    clearInterval(this.timer);
  },
  methods: {
    /**
     * 是否跳转到新soso的页面
    */
    isReplaceNewSoso: function isReplaceNewSoso(callBack) {
      var _this = this;
      this._Util.post(this._Api.POST_IS_REPLACE_TO_NEWSOSO, {}, function (data) {
        if (data.status === 1) {
          _this.isReplaceNew = true;
          location.replace(location.origin + '/v2/business/pay/appSearchResultNew' + location.search);
        } else {
          _this.isReplaceNew = false;
          callBack && callBack();
        }
      }, function () {}, this);
    },
    /* 滑出自定义键盘 */slideBoard: function slideBoard() {
      var that = this;
      (0, _jquery.default)('.specail').blur();
      that.showCursor = true;
      for (var i = 0; i < that.keyList.length; i++) {
        var key2 = that.keyList[i];
        for (var j = 0; j < key2.length; j++) {
          _vue.default.set(key2[j], 'active', false);
          _vue.default.set(key2[j], 'activeWhite', false);
        }
      }
      if (that.text == '输入代码查询') {
        that.text = '';
      } else {
        that.text = that.searchDate1 ? that.text + that.searchDate1 : that.text;
        that.text = that.text.replace(/\s*/g, '');
      }
      that.searchDate1 = '';
      that.showKeyboard = !that.showKeyboard;
      if (!that.showKeyboard) {
        that.showCursor = false;
      }
    },
    /* 点击键盘获取值 */getKeyValue: function getKeyValue(param) {
      var that = this;
      for (var i = 0; i < that.keyList.length; i++) {
        var key2 = that.keyList[i];
        for (var j = 0; j < key2.length; j++) {
          _vue.default.set(key2[j], 'active', false);
          _vue.default.set(key2[j], 'activeWhite', false);
        }
      }
      if (typeof param.mes === 'number' || param.mes == '-') {
        _vue.default.set(param, 'activeWhite', true);
        setTimeout(function () {
          _vue.default.set(param, 'activeWhite', false);
        }, 200);
      } else {
        _vue.default.set(param, 'active', true);
        setTimeout(function () {
          _vue.default.set(param, 'active', false);
        }, 200);
      }
      if (param.mes == 'key') {
        // 弹出默认键盘
        that.showKeyboard = false;
        that.searchDate1 = that.text.replace(/\s*/g, '');
        // that.$nextTick(()=> {
        //   //DOM 更新了
        //   // that.$refs.inputVal.focus()
        //   $('.specail').focus()
        // })
        (0, _jquery.default)('.specail').focus();
        that.text = '';
      } else if (param.mes == 'delete') {
        // 退格删除
        that.text = that.text.substring(0, that.text.length - 1);
      } else if (param.mes == '搜索') {
        that.searchBtnPress(1);
      } else {
        that.text += param.mes;
      }
    },
    /*
      页面滚动到视野内
    */
    scrollIntoView: function scrollIntoView() {
      this.showCursor = false;
      this.showKeyboard = false;
      if (!this._Util.isIOS) {
        // 软键盘弹起，输入框自动出现在可视区域
        this.timer = setInterval(function () {
          if (document.activeElement.className.indexOf('inputcontent') >= 0) {
            document.activeElement.scrollIntoViewIfNeeded();
          }
        }, 300);
      }
    },
    /** 关闭测试数据模态框 */closeTestData: function closeTestData() {
      this.showDetail = false;
      this.testCode = '';
    },
    /** 测试数据点击详情 */openTestDataDetail: function openTestDataDetail(code) {
      this.testCode = code;
      this.showDetail = true;
    },
    /** 监听ClosePageComponent组件内关闭事件 */toggleParentMask: function toggleParentMask(type) {
      if (type === 'close') {
        this.showDetail = false;
      }
    },
    /** 部件信息点击详情 */openPartInfoDetail: function openPartInfoDetail(code, item, index) {
      var that = this;
      that._Util.post(that._Api.POST_PARTS_INFO_GET, {
        refNo: code
      }, function (data) {
        if (!data.length) {
          that._Util.showMsgBox('小轨没有查到关键信息');
          return;
        }
        that.detailResult = {
          source: data,
          attrItems: _partsTableConfig.default
        };
        // console.log(that.detailResult)
        that.question = '?type=2&text2=' + data[0].pyq;
        that.showDetail = true;
        var typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车';
        var version = unescape(that._Util.getQueryString('version'));
        var date = that._Util.dateFormat(new Date().getTime(), 'yyyy-MM-dd hh:mm:ss');
        that._Util.collectPageView({
          version: that._Util.isApp() ? version : '',
          postUrl: that._Api.POST_COLLECT,
          title: item.name + code,
          url: window.location.href,
          moduleType: that._Util.isApp() ? typeStr : '微信菜单',
          operate_page: '系统部件',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          keyword: localStorage.getItem('searchID'),
          param4: {
            queryValue: that.keyword,
            result: that.result.length,
            filter: '',
            refNo: code,
            isShowElectricBtn: !!that.detailResult.source[0].skipValue,
            date: date
          },
          params5: index
        }, that);
      }, function () {}, that);
    },
    /** tab按钮‘更多’ 点击逻辑 */moreTab: function moreTab() {
      var _this2 = this;
      if (this.subtabList.find(function (v) {
        return v.folderId == _this2.$route.query.folderid;
      })) {
        this.$refs.scrollBox.scrollTop = 0;
      } else {
        this.searchDetail(this.subtabList[0], 4);
      }
    },
    drawTags: function drawTags(val) {
      if (val) {
        var newarrs = [];
        var tagarr = val.split(' ');
        tagarr.forEach(function (val) {
          if (val) {
            newarrs.push(val);
          }
        });
        return newarrs;
      }
    },
    reId: function reId(v, val) {
      v.favId = val.favId;
    },
    pushHistory: function pushHistory() {
      var state = {
        title: 'title',
        url: '#'
      };
      window.history.pushState(state, state.title, state.url);
    },
    getRandomChar: function getRandomChar() {
      var that = this;
      var chars = 'abcdefghijklmnopqrstuvwxyz123456789';
      var maxPos = chars.length;
      var pwd = '';
      for (var i = 0; i < 32; i++) {
        pwd += chars.charAt(Math.floor(Math.random() * maxPos));
      }
      that.randomStr = pwd;
      return that.randomStr;
    },
    getUserState: function getUserState() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
        }
      }, function () {}, that);
    },
    cal: function cal(id) {
      var str = '';
      var _iterator = _createForOfIteratorHelper(this.TabList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          if (v.folderId == id) {
            str = v.title;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      return str;
    },
    tosearch: function tosearch(flag) {
      var that = this;
      that.showPart = false;
      that.showDataTest = false;
      that.falCodeNumber = 0;
      // that.result = [];
      that.flatResultCodeSrc = '';
      that.showNoResult = false;
      that.searchParms.dataName = that.searchDate;
      if (that.parms.folderid == 10087) {
        // 部件信息
        if (/[\u4E00-\u9FA5]/g.test(that.searchDate)) {
          _mintUi.MessageBox.alert('请输入数字');
          return;
        }
        // 部件信息添加埋点
        that._Util.collectPageView2({
          version: that._Util.version,
          postUrl: that._Api.POST_COLLECT,
          moduleType: '资料查询',
          operate_page: that.$route.query.isOnPageCenter ? '搜索中心' : '搜索结果页',
          optionType: that.$route.query.isClick ? '点击' : '搜索',
          param1: location.href,
          param2: that.$route.query.title,
          param3: that.searchParms.pageNum === 1 ? that.getRandomChar() : that.randomStr,
          param4: {
            queryValue: that.searchDate,
            type: that.$route.query.title,
            filter: ''
          }
        }, that);
        that._Util.post(that._Api.POST_PARTS_INFO_GET_NEW, {
          queryValue: that.searchDate
        }, function (data) {
          // that.result.list = [];
          if (!data.list.length) {
            // that._Util.showMsgBox("小轨没有查到关键信息");
            that.showNoResult = true;
            return;
          }
          var _iterator2 = _createForOfIteratorHelper(data.list),
            _step2;
          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var o = _step2.value;
              var _iterator3 = _createForOfIteratorHelper(_partsTableConfig.default[o.solrType]),
                _step3;
              try {
                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                  var v = _step3.value;
                  if (o.key === v.name) {
                    that.result.push({
                      name: v.title,
                      code: o[o.key]
                    });
                  }
                }
              } catch (err) {
                _iterator3.e(err);
              } finally {
                _iterator3.f();
              }
            }
            // 只有一条内容时，自动打开详情页面
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
          if (that.result.length === 1) {
            that.openPartInfoDetail(that.result[0].code, that.result, '0');
          }
        }, function () {}, that);
        // setTimeout(function() {
        //   that.thisheight = document.body.offsetHeight - 110 + "px";
        //   that.flatResultCodeSrc =
        //     location.origin +
        //     "/v2/partsInfo/index?tab=0&keyword=" +
        //     that.searchDate +
        //     "&contHeight=" +
        //     that.thisheight;
        // }, 10);
      } else if (that.parms.folderid == 10088) {
        // 测试数据
        if (/[\u4E00-\u9FA5]/g.test(that.searchDate)) {
          _mintUi.MessageBox.alert('请输入数字');
          return;
        }
        // 部件信息添加埋点
        that._Util.collectPageView2({
          version: that._Util.version,
          postUrl: that._Api.POST_COLLECT,
          moduleType: '资料查询',
          operate_page: that.$route.query.isOnPageCenter ? '搜索中心' : '搜索结果页',
          optionType: that.$route.query.isClick ? '点击' : '搜索',
          param1: location.href,
          param2: that.$route.query.title,
          param3: that.searchParms.pageNum === 1 ? that.getRandomChar() : that.randomStr,
          param4: {
            queryValue: that.searchDate,
            type: that.$route.query.title,
            filter: ''
          }
        }, that);
        that._Util.post(that._Api.POST_SOSO_TEST_DATA_NEW, {
          queryValue: that.searchDate
        }, function (data) {
          // that.result.list = [];
          if (!data.list.length) {
            // that._Util.showMsgBox("小轨没有查到关键信息");
            that.showNoResult = true;
            return;
          }
          console.log(data);
          var _iterator4 = _createForOfIteratorHelper(data.list),
            _step4;
          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var v = _step4.value;
              that.result.push({
                name: v.pyq ? '喷油器型号' : '油泵型号',
                code: v.pyq || v.pump
              });
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }
        }, function () {}, that);

        // setTimeout(function() {
        //   that.thisheight = document.body.offsetHeight - 110 + "px";
        //   that.flatResultCodeSrc =
        //     location.origin +
        //     "/v2/soso/testDataQuery?index=0&keyword=" +
        //     that.searchDate +
        //     "&contHeight=" +
        //     that.thisheight;
        // }, 10);
      } else if (that.parms.folderid == 10086) {
        // 故障码
        that.getRandomChar();
        setTimeout(function () {
          that.thisheight = document.body.offsetHeight - 110 + 'px';
          if (that.$route.query.faultType == 'spn') {
            that.flatResultCodeSrc = location.origin + '/v2/faultCode/list?keyword=' + that.searchDate + '&faultType=spn' + '&randomStr=' + that.randomStr + '&contHeight=' + that.thisheight;
          } else {
            that.flatResultCodeSrc = location.origin + '/v2/faultCode/list?keyword=' + that.searchDate + '&randomStr=' + that.randomStr + '&contHeight=' + that.thisheight;
          }
        }, 300);
        // that.showFaltcode = true;
      } else {
        setTimeout(function () {
          that.thisheight = document.body.offsetHeight - 110 + 'px';
        }, 300);
        if (that.parms.folderid == 0) {
          if (!/[\u4E00-\u9FA5]/g.test(that.searchDate)) {
            if (that.searchDate.length >= 3) {
              that._Util.post(that._Api.POST_PARTS_INFO_GET_NEW, {
                queryValue: that.searchDate,
                favoriteStatus: 0,
                pageSize: 1,
                pageNum: 1
              }, function (data) {
                // that.result.list = [];
                if (data.list.length) {
                  that.showPart = true;
                }
              }, function () {}, that);
              that._Util.post(that._Api.POST_SOSO_TEST_DATA_NEW, {
                queryValue: that.searchDate,
                favoriteStatus: 0,
                pageSize: 1,
                pageNum: 1
              }, function (data) {
                // that.result.list = [];
                if (data.list.length) {
                  that.showDataTest = true;
                }
              }, function () {}, that);
            }
          }
          that._Util.post(that._Api.POST_FALT_CODE_LIST, {
            facet: '',
            firstTag: '',
            pageModel: {
              currentPage: 1,
              pageSize: 50
            },
            queryValue: that.searchDate,
            searchUuid: '',
            secondTag: ''
          }, function (data) {
            that.falCodeNumber = data.pageModel.totalRecord;
            if (that.falCodeNumber) {
              setTimeout(function () {
                that.thisheight = document.body.offsetHeight - 113 + 'px';
              }, 300);
            } else {
              setTimeout(function () {
                that.thisheight = document.body.offsetHeight - 110 + 'px';
              }, 300);
            }
          }, function () {}, that);
        }
        // that.showFaltcode = false;
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansList.json', that.searchParms, function (data) {
          that.totalCount = data.totalCount;
          if (that.$route.query.searchFrom == '10087') {
            // 该参数为10087证明是从部件信息跳转过来的
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '资料查询',
              operate_page: that.$route.query.isOnPageCenter ? '搜索中心' : '搜索结果页',
              optionType: that.$route.query.searchFrom == '10087' ? '部件信息跳转' : '手动搜索',
              param1: location.href,
              param2: that.$route.query.title,
              param3: that.searchParms.pageNum === 1 ? that.getRandomChar() : that.randomStr,
              param4: {
                queryValue: that.searchDate,
                result: data.totalCount,
                type: that.$route.query.title,
                filter: '',
                partNum: that.$route.query.code
              }
            }, that);
          } else {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '资料查询',
              operate_page: that.$route.query.isOnPageCenter ? '搜索中心' : '搜索结果页',
              optionType: that.$route.query.isClick ? '点击' : '搜索',
              param1: location.href,
              param2: that.$route.query.title,
              param3: that.searchParms.pageNum === 1 ? that.getRandomChar() : that.randomStr,
              param4: {
                queryValue: that.searchDate,
                result: data.totalCount,
                type: that.$route.query.title,
                filter: ''
              }
            }, that);
          }
          if (data.dataList.length) {
            that.totalCount = data.totalCount;
            that.showNoResult = false;
            if (!flag) {
              that.result = that.result.concat(data.dataList);
            }
            that.showDC = true;
            // that.showNoResult = false;
            if (that.searchParms.pageNum * that.searchParms.pageSize < data.totalCount) {
              that.showLoadMore = true;
            } else {
              that.showLoadMore = false;
            }
          } else {
            if (that.parms.folderid == 0) {
              setTimeout(function () {
                that.showNoResult = true;
              }, 6000);
            } else {
              that.showNoResult = true;
            }
          }
        }, function () {}, that);
      }
    },
    loadMore: function loadMore() {
      var that = this;
      that.searchParms.pageNum++;
      that.tosearch();
    },
    searchBtnPress: function searchBtnPress(type) {
      var _this3 = this;
      this.showKeyboard = false;
      sessionStorage.setItem('randomStr', '');
      var that = this;
      if (type && type == 1) {
        // 查故障码
        that.searchDate = that.text + that.searchDate1;
        // console.log(that.text+that.searchDate1)
      }
      if (type && type == 2) {
        // 查故障描述
        that.searchDate = that.searchDate2;
      }
      if (this.parms.folderid == 10086 && !this.isCloseTabList && this.isNewFaultCode) {
        // 如果是新版故障码
        this.$refs['newFaultCode'].search(this.searchDate, 1);
        return;
      }
      that._Util.setLocalStorage('isSearch', false);
      that.searchParms.pageNum = 1;
      that.result = [];
      that.showLoadMore = false;
      that.showDC = false;
      that.showCan = false;
      //            that.showTab = true;
      if (!that.searchDate.trim()) {
        _mintUi.MessageBox.alert('请输入搜索内容！');
        return;
      }
      that.parms.keyword = that.searchDate;
      that.parms.title = that.$route.query.title;
      that.parms.index = that.$route.query.index;
      that.parms.folderid = that.$route.query.folderid;
      that.parms.isClick = false;
      // that.$router.push({name:'appSearchResult',query: this.parms});
      that.$router.replace({
        query: that.parms
      });
      this._Util.post(this._Api.POST_IS_REPLACE_TO_NEWSOSO, {}, function (data) {
        if (data.status === 1) {
          _this3.isReplaceNew = true;
          location.replace("".concat(location.origin, "/v2/business/pay/appSearchResultNew?folderid=").concat(that.parms.folderid, "&keyword=").concat(that.searchDate, "&title=").concat(that.parms.title, "&searchTyps=").concat(that.$route.query.searchTyps));
        } else {
          _this3.isReplaceNew = false;
          that.isCloseTabList = false;
          that.tosearch();
        }
      }, function () {}, this);
      // if (this.isReplaceNew) {
      //   // alert(location.search)
      //   location.replace(location.origin + '/v2/business/pay/appSearchResultNew' + location.search)
      // } else {
      //   that.isCloseTabList = false
      //   that.tosearch()
      // }
      // that.pushHistory();
    },
    getList: function getList() {
      var _this4 = this;
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search/portal/list.json', {}, function (data) {
        that.TabList = that.TabList.concat(data);
        that.subtabList = that.TabList.filter(function (v) {
          if (v.folderId === 10086) {
            // 如果是故障码 并且 isNew 为 1 的时候，说明是新版故障码
            _this4.isNewFaultCode = v.isNew === 1;
          }
          return v.folderId !== 0 && v.folderId !== 10086 && v.folderId !== 20171212 && v.folderId !== 20171202;
        });
      }, function () {}, that);
    },
    searchDetail: function searchDetail(item, index) {
      console.log(item, index);
      sessionStorage.setItem('randomStr', '');
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: '资料查询',
        operate_page: '搜索结果页',
        optionType: '切换Tab',
        param1: location.href,
        param2: item.title,
        param3: that.randomStr,
        param4: {
          queryValue: that.searchDate,
          result: that.totalCount,
          type: item.title,
          filter: ''
        }
      }, that);
      that.falCodeNumber = 0;
      that.showNoResult = false;
      that._Util.setLocalStorage('isSearch', false);
      that.parms.index = index == 0 ? 0 : index - 1;
      // this.searchType =item.folderId;
      that.result = [];
      that.parms.title = item.title;
      that.showDC = false;
      that.showLoadMore = false;
      that.parms.keyword = that.searchDate;
      that.parms.isClick = true;
      that.parms.folderid = item.folderId;
      that.searchParms.parentClassId = item.folderId;
      that.searchParms.pageNum = 1;
      that.title = item.subTitle;
      that.$router.replace({
        query: that.parms
      });
      if (that.searchDate) {
        that.tosearch();
      }

      // if(that.parms.folderid == 10087 || that.parms.folderid == 10088){
      //   that.$router.push({name:'appSearchResult',query: that.parms});
      //   that.$router.replace({query: that.parms});
      //   that.$router.go(0);
      // }else{
      //   that.tosearch();
      // }

      // that.$router.push({name:'appSearchResult',query: this.parms});
    },
    canEvent: function canEvent() {
      var that = this;
      that.showCan = true;
      that._Util.collectPageView2({
        version: that._Util.isApp() ? that._Util.version : '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '搜索结果页',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        param1: window.location.href,
        param2: that.$route.query.title,
        param3: that.randomStr,
        param4: {
          queryValue: that.searchDate,
          type: that.$route.query.title,
          result: that.totalCount,
          filter: ''
        },
        params5: '能'
      }, that);
    },
    showWindow: function showWindow(type) {
      var that = this;
      if (type == 1) {
        that.showCan = false;
        that.showWindowMask = true;
        that._Util.collectPageView2({
          version: that._Util.isApp() ? that._Util.version : '',
          postUrl: that._Api.POST_COLLECT,
          moduleType: '资料查询',
          operate_page: '搜索结果页',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          param1: window.location.href,
          param2: that.$route.query.title,
          param3: that.randomStr,
          param4: {
            queryValue: that.searchDate,
            type: that.$route.query.title,
            result: that.totalCount,
            filter: ''
          },
          params5: '不能'
        }, that);
      } else {
        that.showWindowMask = true;
        that._Util.collectPageView2({
          version: that._Util.isApp() ? that._Util.version : '',
          postUrl: that._Api.POST_COLLECT,
          moduleType: '资料查询',
          operate_page: '搜索结果页',
          optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
          param1: window.location.href,
          param2: that.$route.query.title,
          param3: that.randomStr,
          param4: {
            queryValue: that.searchDate,
            type: that.$route.query.title,
            result: that.totalCount,
            filter: ''
          },
          params5: '不能'
        }, that);
      }
    },
    upload: function upload(e) {
      var that = this;
      // if (that.ios) {
      //   that.uploader = Qiniu.uploader({
      //     runtimes: "html5,flash,html4",
      //     browse_button: "upBtn",
      //     uptoken: that.token,
      //     domain: that.bucketUrl,
      //     get_new_uptoken: false,
      //     container: "container",
      //     filters: {
      //       max_file_size: "100mb",
      //       prevent_duplicates: true,
      //       mime_types: [{ title: "Image files", extensions: "jpg,gif,png" }]
      //     },
      //     flash_swf_url: "js/plupload/Moxie.swf",
      //     max_retries: 0,
      //     dragdrop: true,
      //     drop_element: "container",
      //     chunk_size: "4mb",
      //     auto_start: true,
      //     multi_selection: false,
      //     init: {
      //       FilesAdded: function(up, files) {
      //         plupload.each(files, function(file) {});
      //       },
      //       BeforeUpload: function(up, file) {
      //         Indicator.open("上传中...");
      //       },
      //       UploadProgress: function(up, file) {},
      //       FileUploaded: function(up, file, info) {
      //         Indicator.close();
      //         that.imgSrc.push(JSON.parse(info.response).key);
      //       },
      //       Error: function(up, err, errTip) {},
      //       UploadComplete: function() {},
      //       Key: function(up, file) {}
      //     }
      //   });
      // } else {
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var formData = new FormData();
        formData.append('file', file);
        formData.append('token', that.token);
        var url = '';
        if (that.ios) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        _jquery.default.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          that.imgSrc.push(res.key);
        });
      }
      // }
    },
    closeWindowMask: function closeWindowMask() {
      this.imgSrc = [];
      this.showWindowMask = false;
      this.myAdvise = '';
    },
    submitEvent: function submitEvent() {
      var that = this;
      if (that.myAdvise == '') {
        that._Util.showMsgBox('请填写相关描述');
        return;
      }
      // if(that.userInfoResult.userStatus == 2) {

      //   that._Util.post(
      //     that._Api.ADD_ONLINEQUE,
      //     {
      //       text5: that.myAdvise,
      //       type:3,
      //       images_url: that.imgSrc.join(",")
      //     },
      //     function(data) {
      //       that.showWindowMask = false;
      //       that.fromChildPage = false;
      //       that.imgSrc = [];
      //       that.myAdvise = "";
      //     },
      //     function() {},
      //     that
      //   );
      //   return;
      // }
      that._Util.post(that._Api.POST_FALT_CODE_USERFEEDBACK, {
        dataDescribe: that.myAdvise,
        dataType: 2,
        faultCodeUrl: that.imgSrc.join(','),
        faultType: 0,
        faultCode: that.searchDate
      }, function (data) {
        that.showWindowMask = false;
        that.fromChildPage = false;
        that.imgSrc = [];
        that.myAdvise = '';
      }, function () {}, that);
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    toFalCode: function toFalCode(n) {
      var that = this;
      switch (n) {
        case 1:
          that.parms.title = '故障码';
          that.parms.folderid = '10086';
          break;
        case 2:
          that.parms.title = '部件信息';
          that.parms.folderid = '10087';
          break;
        case 3:
          that.parms.title = '测试数据';
          that.parms.folderid = '10088';
          break;
      }
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: '资料查询',
        operate_page: '搜索结果页',
        optionType: '切换Tab',
        param1: location.href,
        param2: that.parms.title,
        param3: that.randomStr,
        param4: {
          queryValue: that.searchDate,
          result: that.totalCount,
          type: that.parms.title,
          filter: ''
        }
      }, that);
      // that._Util.collectPageView2({
      //   version: that._Util.version,
      //   postUrl: that._Api.POST_COLLECT,
      //   moduleType: "万能搜搜",
      //   operate_page:'搜索结果页',
      //   optionType: '点击',
      //   param1: that.parms.title,
      //   param2:that.$route.query.keyword,
      //   param4: {"queryValue" : '',"result": '',"filter":""}
      // }, that);
      that.result = [];
      that.showLoadMore = false;
      that.showDC = false;
      that.parms.keyword = that.searchDate;
      that.$router.replace({
        query: that.parms
      });
      that.tosearch();
    },
    openFile: function openFile(item, index) {
      var that = this;
      var _pageSize = that.searchParms.pageSize;
      index = index > _pageSize ? index % _pageSize : index;
      index = index + 1;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: '资料查询',
        operate_page: '搜索结果页',
        optionType: '点击',
        param1: location.href,
        param2: item.dataName,
        param3: that.randomStr,
        param4: {
          queryValue: that.searchDate,
          result: that.totalCount,
          type: that.$route.query.title,
          filter: '',
          fileNo: item.fileNo
        },
        params5: that.searchParms.pageNum + ';' + index + ';' + _pageSize
      }, that);
      switch (that.userInfoResult.userStatus) {
        case 0:
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '认证用户可见，请先认证',
            confirmButtonText: '去认证',
            showCancelButton: true,
            cancelButtonText: '取消'
          }).then(function (action) {
            if (action === 'confirm') {
              that.$router.replace({
                name: 'personalCertification',
                query: {
                  nextPath: window.location.href
                }
              });
            }
          });
          break;
        case 1:
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '付费用户可见，请先付费',
            confirmButtonText: '去付费',
            showCancelButton: true,
            cancelButtonText: '取消'
          }).then(function (action) {
            if (action === 'confirm') {
              window.location.replace(location.origin + '/v2/business/pay/certificationRenewal?pathid=' + that.title);
            }
          });
          break;
        case 2:
          /* 如果是app，判断有无pdf的url，有的话就打开pdf*/
          // if(that._Util.isApp() && that.canopenpdf) {
          //     if(item.pdfUrl) {
          //         api.sendEvent({
          //           name: 'openPdf2',
          //           extra: {
          //             pdfUrl: item.pdfUrl
          //           }
          //         });
          //         return;
          //     }
          // }
          if (item.fileType.toUpperCase() == 'PDF') {
            if (that._Util.isApp()) {
              var appToken = localStorage.getItem('app-token') || '';
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'pdf' + item.fileNo,
                  url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
                }
              });
            } else {
              window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
            }
            // window.location.href =
            //   that._Api.HOSTOLD +
            //   "api/management/filePDFView.htm?fileNo=" +
            //   item.fileNo;
          } else if (new RegExp(item.fileType.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
            that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
              fileNo: item.fileNo
            }, function (data) {
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }, function () {}, that);
          } else {
            that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
              fileNo: item.fileNo,
              pageNum: 1,
              pageSize: 3
            }, function (data) {
              if (data.displayType == 1) {
                if (item.fileType.toUpperCase() == 'JPG') {
                  // let list = JSON.stringify([{ fileUrl: data.fileUrl }]);
                  // localStorage.setItem("list", list);
                  that.$router.push({
                    name: 'picList',
                    query: {
                      isScale: 1,
                      title: item.dataName.replace(/red/g, '#666'),
                      count: 1,
                      pageNum: 1,
                      pageSize: 3,
                      type: 1,
                      fromPage: 'soso',
                      fileNo: item.fileNo
                    }
                  });
                } else {
                  if (item.fileType == '微信图文') {
                    // data.fileUrl = data.fileUrl
                    // if(data.fileUrl.indexOf('?')!= -1){
                    //   data.fileUrl = data.fileUrl + '&scene=4#wechat_redirect'
                    // }else{
                    //   data.fileUrl = data.fileUrl + '?scene=4#wechat_redirect'
                    // }
                    location.href = data.fileUrl + '?/';
                  } else {
                    location.href = data.fileUrl;
                  }
                }
              } else {
                // let list = JSON.stringify(data.list);
                // localStorage.setItem("list", list);
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: data.atlasName,
                    count: data.reCount,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fileNo: item.fileNo,
                    fromPage: 'soso'
                  }
                });
              }
            }, function () {}, that);
          }
          localStorage.setItem('resultScrollTop', (0, _jquery.default)('#contentBox1').scrollTop());
          localStorage.setItem('resultScrollFlag', 1);
          localStorage.setItem('resultPages', that.searchParms.pageNum);
          var arr = [];
          var _iterator5 = _createForOfIteratorHelper(that.result),
            _step5;
          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var _item = _step5.value;
              arr.push(JSON.stringify(_item));
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }
          localStorage.setItem('resultList', JSON.stringify(arr));
      }
      //  if(that.userInfoResult.userStatus)
    },
    /** 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true */compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.1'; // 1.4.1开始app上才添加了openpdf的方法
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    },
    /* 跳转到iqa计算*/toIqa: function toIqa() {
      window.location.href = 'http://wx.kaxiuyun.com/kaxiuyun/iqa.htm?';
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(257);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1732a824_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(862);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2045)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1732a824_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1732a824_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_testDataDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2046);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b12d966c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".resultCon{height:40px;line-height:40px;width:95%;margin:0 auto;border-bottom:1px solid #e4e4e4;position:relative}.circle{width:10px;height:10px;background:#59a0cf;position:absolute;border-radius:50%;left:3%;top:15px}.colorSpilt{width:100%;height:15px;background:#ededed}.partsName{font-size:16px;position:absolute;max-width:240px;overflow:hidden;left:10%;color:#434343}.goNext{font-size:20px;color:#ccc;position:absolute;right:3%}.colorWrite{color:#59a0cf;font-size:16px}.showNoFond{width:100%;height:30px;line-height:30px;color:gray;text-align:center;position:fixed;top:50%;margin-top:-15px}.testData .window{background:#f2f2f2;font-family:PingFangSC-Regular;padding-top:0}.testData .windowtt{height:2.75rem;color:#333;padding:0;border-bottom:1px solid #dcdcdc;text-align:center;background:#f6f6f6;position:relative}.testData .windowtt span{font:700 16px/2.75rem PingFangSC-Semibold}.windowtt .window_close{position:absolute;padding:0 .8rem;height:2.75rem;top:0;right:0;font-size:16px;color:#666;margin:0;font:14px/2.75rem PingFangSC-Regular}.col.col1{box-sizing:border-box;-webkit-box-sizing:border-box}.testData .result{padding:0;height:100%}.testData .result .subtitle,.testData .result .tit{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:16px/1.1rem PingFangSC-Regular}.testData .result .con{background:none;position:relative;height:-webkit-calc(100% - 5.95rem);height:calc(100% - 5.95rem);overflow-y:auto;padding:0}.testData .result .con .innerBox{position:relative;margin:.8rem .6rem}.testData .result .con .innerBox .symask{position:absolute;top:0;left:0;width:100%;height:100%;background:url(" + escape(__webpack_require__(1375)) + ") 50% repeat;z-index:100;opacity:.6;pointer-events:none}.testData{position:relative;border-radius:.6rem .6rem 0 0;width:100%}.testData.border-no{border-radius:0}.testData .cont-tit{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.testData .cont-tit .collect2{margin-left:.25rem;width:1.4rem;height:1.7rem;border-radius:.2rem;background:url(" + escape(__webpack_require__(204)) + ") no-repeat;background-size:100% 100%}.testData .cont-tit .collect2.collected2{background:url(" + escape(__webpack_require__(205)) + ") no-repeat}.testData .online-que{border-top:1px solid #eee;height:1.8rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.testData .online-que span{color:#999;font:14px/1rem PingFangSC-Regular}.testData .online-que i{margin-left:.4rem;width:.3rem;height:.5rem;background:url(" + escape(__webpack_require__(57)) + ") no-repeat;background-size:100% 100%}.testData .que-collect{border-top:1px solid #eee;position:absolute;width:100%;padding:.35rem .8rem;bottom:0;left:0}.testData .que-collect,.testData .que-collect .collect{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.testData .que-collect .collect{height:2.5rem;width:6rem;margin-right:.8rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:#f5f5f5;border-radius:.3rem}.testData .que-collect .collect i{margin-right:.4rem;width:.8rem;height:.8rem;background:url(" + escape(__webpack_require__(1376)) + ") no-repeat;background-size:100% 100%}.testData .que-collect .collect.collected{color:#ff6c1a}.testData .que-collect .collect.collected i{background:url(" + escape(__webpack_require__(1377)) + ") no-repeat;background-size:100% 100%}.testData .que-collect span{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.5rem;background:#177afa;color:#fff;border-radius:.3rem;font:18px/2.5rem PingFangSC-Regular;text-align:center}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/water_new.c88180d.png";module.exports = __webpack_require__.p + "static/img/collect-no.07452c7.svg";module.exports = __webpack_require__.p + "static/img/collect-yes.ec98dbd.svg";module.exports = __webpack_require__.p + "static/img/collect_new.88467e2.png";module.exports = __webpack_require__.p + "static/img/collected_new.181493a.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _collection = _interopRequireDefault(__webpack_require__(137));
var _onlineQa = _interopRequireDefault(__webpack_require__(203));
var _DataTips = _interopRequireDefault(__webpack_require__(787));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import partsTableConfig from './parts.table.config.json'
var _default2 = exports.default = {
  name: 'TestData',
  components: {
    Collection: _collection.default,
    OnlineQa: _onlineQa.default,
    DataTips: _DataTips.default
  },
  props: {
    isNewGray: {
      type: Number,
      default: 0
    },
    testData: {
      default: function _default() {
        return {};
      },
      require: true,
      type: Object
    },
    testCode: {
      default: function _default() {
        return '';
      },
      require: true,
      type: String
    },
    testInd: {
      default: function _default() {
        return 0;
      },
      require: true,
      type: Number
    },
    isPop: {
      // 是否是以弹窗显示 1，是  0，否
      default: function _default() {
        return 0;
      },
      require: true,
      type: Number
    },
    parent: {
      // 组件出现在哪个父级
      default: function _default() {
        return '';
      },
      require: true,
      type: String
    },
    randomNum: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      keyword: '',
      keyCode: '',
      checkIndex: 0,
      patrn: /[`~!@#\$%\^\&\*\(\)\+<>\?:"\{\},\\\\/;'\[\]]/im,
      testResult: '',
      resultMsg: '',
      collectionCode: '',
      result: {
        list: []
      },
      showNoFond: false,
      isApp: false,
      navMenus: [{
        title: '测试数据',
        url: '',
        className: '',
        active: true
      }, {
        title: '垫片调整',
        url: '',
        className: '',
        active: false
      }],
      clineName: 'testShoucang',
      collectParams: {}
    };
  },
  watch: {
    keyword: function keyword(newVal, oldVal) {
      this.keyword = newVal.replace(/[^\w\/]/gi, '');
    }
  },
  mounted: function mounted() {
    var that = this;
    if (that._Util.isApp()) {
      that.isApp = true;
    } else {
      that.isApp = false;
    }
    this.openDetail(this.testCode);
    that.$on('checkMenu', function (obj) {
      that.checkIndex = obj;
    });
    that._Util.setLocalStorage('searchUuid', '');
  },
  methods: {
    closeTestData: function closeTestData() {
      this.$emit('close');
    },
    openDetail: function openDetail(code) {
      var that = this;
      that.collectionCode = code;
      that.resultMsg = '正在查询中...';
      var url = this.isNewGray === 1 ? 'POST_SOSO_TEST_DATA_DETAIL_OPEN_SEARCH' : 'POST_SOSO_TEST_DATA';
      that._Util.post(that._Api[url], {
        id: code
      }, function (data) {
        console.log(data);
        if (!data) {
          that.resultMsg = '未查到任何数据';
          return;
        } else {
          // that.result.list = [];
          data.text1 = JSON.parse(data.text1);
          that.testResult = data;
          that.resultMsg = '';
          that.keyCode = code;
          if (code.substring(0, 4) == '0445' || code.substring(0, 5) == '09500') {
            that.$emit('getCode', that.keyCode);
          } else {
            that.$emit('getCode', '0445');
          }
        }
      }, function () {}, that);
    },
    /**
      * 收藏事件
      * @param {Object} item 收藏的具体数据
    */
    collectFn: function collectFn(item) {
      item.testCode = this.collectionCode;
      this._Util.sensorsCollect('collect_file', {
        operation_page: '资料查询',
        filter_type: this.$route.query.title,
        filter_name: this.$route.query.title,
        file_type: this.$route.query.title,
        file_id: item.shareId,
        file_name: this.testResult.pyq ? '喷油器型号：' + this.testResult.pyq : '油泵型号：' + this.testResult.pump,
        file_sort: this.testInd,
        file_page: 1,
        file_page_sort: (this.testInd + 1) % 1000,
        search_id: this.randomNum
      });
      this.$emit('parentCollect', item);
    },
    /**
     * 获取用户状态
     */
    getUserStatus: function getUserStatus() {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.post(_this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this);
      });
    },
    /**
     * 跳转极速问答提问页
     */
    toVipQue: function toVipQue() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _url, _keyword, prefix;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _url = window.location.href;
              _keyword = _this2.$route.query.keyword;
              prefix = 'keyword=';
              _url = _url.replace(prefix + _keyword, prefix + _this2.testCode);
              localStorage.setItem('qa_data', JSON.stringify({
                sourceType: 4,
                sourceNo: "".concat(_this2.testCode, ",Product:pyq"),
                sourceUrl: _url
              }));
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'putQuestion',
                    url: "".concat(location.origin, "/v2/shopping/putQuestion")
                  }
                });
              } else {
                location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
              }
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
      * 获取在线问答列表(status: 5未解决)
    */
    getConList: function getConList(type) {
      var that = this;
      return new Promise(function (resolve, reject) {
        that._Util.post(that._Api.CARREPAIR.POST_GET_NEW_SEARCHPAGE, {
          status: 5
        }, function (res) {
          if (res) {
            var noDealedList = res.bolist;
            noDealedList.sort(function (a, b) {
              return a.createTime > b.createTime ? -1 : 1;
            });
            resolve(noDealedList);
          }
        }, function () {
          reject();
        }, that);
      });
    },
    /**
      * 获取已解决问题列表
    */
    getDealed: function getDealed() {
      var that = this;
      return new Promise(function (resolve, reject) {
        that._Util.post(that._Api.CARREPAIR.POST_GET_SEARCHPAGE, {
          status: 1,
          pageModel: {
            currentPage: 1,
            pageSize: 20
          }
        }, function (data) {
          if (data && data.bolist) {
            var dealedList = data.bolist;
            resolve(dealedList);
          }
        }, function () {
          reject();
        }, that);
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"testData",class:{'border-no': _vm.parent != 10088},staticStyle:{"height":"100%","overflow-y":"auto"}},[_c('div',{staticClass:"result"},[(_vm.parent != 10088)?_c('div',{staticClass:"windowtt",on:{"click":function($event){$event.stopPropagation();return _vm.closeTestData.apply(null, arguments)}}},[_c('span',[_vm._v("测试数据")]),_vm._v(" "),_c('a',{staticClass:"window_close"},[_vm._v("\n        关闭\n      ")])]):_vm._e(),_vm._v(" "),(_vm.parent == 10088 && _vm.isPop === 1)?_c('div',{staticClass:"windowtt",on:{"click":function($event){$event.stopPropagation();return _vm.closeTestData.apply(null, arguments)}}},[_c('span',[_vm._v("测试数据")]),_vm._v(" "),_c('a',{staticClass:"window_close"},[_vm._v("\n        关闭\n      ")])]):_vm._e(),_vm._v(" "),(_vm.testResult)?_c('div',{staticClass:"con mescroll-touch"},[_c('div',{staticStyle:{"min-height":"calc(100% - 5rem)"}},[_c('div',{staticClass:"innerBox"},[_c('div',{staticClass:"symask"}),_vm._v(" "),_c('div',{staticClass:"cont-tit"},[_c('span',{staticClass:"subtitle"},[_vm._v(_vm._s(_vm.testResult .pyq ? "喷油器型号：" + _vm.testResult.pyq : "油泵型号："+_vm.testResult.pump))])]),_vm._v(" "),(_vm.testResult.type === 1)?_c('div',[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-xs-12"},[_c('table',{staticClass:"table02 table-bordered",attrs:{"align":"center"}},[_vm._m(0),_vm._v(" "),_vm._m(1),_vm._v(" "),_vm._l((_vm.testResult.text1),function(o,i){return _c('tr',{key:i},[_c('td',[_vm._v(_vm._s(o.testNode))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.gy))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.jdsj))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.ybz))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.ysx))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.yxx))])])})],2)])])]):_c('div',[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-xs-12"},[_c('table',{staticClass:"table02 table-bordered",attrs:{"align":"center"}},[_vm._m(2),_vm._v(" "),_vm._l((_vm.testResult.text1),function(o,i){return _c('tr',{key:i},[_c('td',[_vm._v(_vm._s(o.testNode))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.zs))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.zmedl))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.gy_pump))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.gyl))]),_vm._v(" "),_c('td',[_vm._v(_vm._s(o.hyl))])])})],2)])])]),_vm._v(" "),(_vm.parent != 10088)?_c('div',{staticStyle:{"width":"100%","text-align":"center"}},[_c('Online-qa',{class:_vm.clineName,attrs:{"question":'?type=2&text2=' + _vm.keyword}}),_vm._v(" "),_c('Collection',{class:_vm.clineName,attrs:{"collect-params":{
                moduleType: 6,
                objId: _vm.testResult.sn,
                queryValue: _vm.testResult.id,
                favId: _vm.testResult.favId,
                requestValue: _vm.collectionCode
              }}})],1):_vm._e()])]),_vm._v(" "),_c('DataTips',{attrs:{"is-bg":""}})],1):_vm._e(),_vm._v(" "),(_vm.isPop === 0 && _vm.parent === '10088')?_c('div',{staticClass:"online-que",on:{"click":_vm.toVipQue}},[_c('span',[_vm._v("去提问")]),_c('i')]):_vm._e(),_vm._v(" "),(_vm.isPop === 1 && _vm.parent === '10088')?_c('div',{staticClass:"que-collect"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.toVipQue.apply(null, arguments)}}},[_vm._v("去提问")])]):_vm._e()])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticStyle:{"width":"20%"},attrs:{"rowspan":"2"}},[_vm._v("测试点")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"rowspan":"2"}},[_vm._v("轨压")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"rowspan":"2"}},[_vm._v("\n                      加电\n                      "),_c('br'),_vm._v("时间\n                    ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"40%"},attrs:{"colspan":"3"}},[_vm._v("油量")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticStyle:{"width":"13.3%"},attrs:{"align":"center"}},[_vm._v("\n                      标准\n                      "),_c('br'),_vm._v("值\n                    ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"13.3%"},attrs:{"align":"center"}},[_vm._v("\n                      建议\n                      "),_c('br'),_vm._v("上限\n                    ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"13.3%"},attrs:{"align":"center"}},[_vm._v("\n                      建议\n                      "),_c('br'),_vm._v("下限\n                    ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticStyle:{"width":"16%"},attrs:{"align":"center"}},[_vm._v("测试点")]),_vm._v(" "),_c('th',{staticStyle:{"width":"14%"},attrs:{"align":"center"}},[_vm._v("\n                      转速\n                      "),_c('br'),_vm._v("[转/分]\n                    ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("ZME电流[A]")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("\n                      轨压\n                      "),_c('br'),_vm._v("[bar]\n                    ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("\n                      供油量\n                      "),_c('br'),_vm._v("[L/h]\n                    ")]),_vm._v(" "),_c('th',{staticStyle:{"width":"15%"},attrs:{"align":"center"}},[_vm._v("\n                      回油量\n                      "),_c('br'),_vm._v("[L/h]\n                    ")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(300);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e7022e0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(885);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2090)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3e7022e0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e7022e0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e7022e0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reasult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2091);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("573c8ff0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-3e7022e0]{height:auto!important;min-height:100%;background-color:#f5f5f5;overflow:hidden}.mescroll[data-v-3e7022e0]{position:fixed;top:3.2rem;bottom:0;height:auto}.search[data-v-3e7022e0]{padding:.6rem;background-color:#fff}.search-bar[data-v-3e7022e0]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2rem}.search-bar img[data-v-3e7022e0]{width:1rem;height:1rem;position:absolute;top:51%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.search-bar input[data-v-3e7022e0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2rem;background-color:#f5f5f5;border-radius:.2rem;padding:0 .4rem 0 1.4rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}.search-bar .search-btn[data-v-3e7022e0]{width:3.6rem;height:2rem;line-height:2rem;margin-left:.6rem;color:#fff;background-color:#177afa;border-radius:.2rem;font-size:.75rem;font-weight:400;text-align:center}.search-top[data-v-3e7022e0]{margin-top:.4rem;padding:.4rem .6rem;background-color:#fff;font-size:.7rem;line-height:1.2rem;border-bottom:.03rem solid #eee;font-family:PingFangSC-Regular,PingFang SC;color:#333}.search-top span[data-v-3e7022e0]{font-size:.7rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.search-top .keyword[data-v-3e7022e0]{color:#177afa}.filter-box[data-v-3e7022e0]{padding:.6rem .6rem 1.2rem;background-color:#fff}.filter-box .filter-btn[data-v-3e7022e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2rem;background:#fff6f6;border-radius:1rem;border:.03rem solid #ff3f3f;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#ff3f3f}.reasult-container[data-v-3e7022e0]{margin-top:-.6rem;padding:0 .5rem;background:#f5f5f5;border-radius:.6rem .6rem 0 0;overflow:hidden}.reasult-container .reasult-tip[data-v-3e7022e0]{margin-top:.8rem;margin-bottom:.6rem;height:1rem;font-size:.7rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1rem}.reasult-container .reasult-item[data-v-3e7022e0]{width:100%;padding:0 .6rem;margin-bottom:.5rem;border-radius:.4rem;background-color:#fff;overflow:hidden}.reasult-container .reasult-item .item-inner[data-v-3e7022e0]{padding-bottom:.8rem;border-bottom:.03rem solid #eee}.reasult-container .reasult-item .item-inner.have-read p[data-v-3e7022e0]{color:#999}.reasult-container .reasult-item .item-inner p[data-v-3e7022e0]{margin:.8rem 0 .2rem;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.25rem}.reasult-container .reasult-item .item-inner .meta[data-v-3e7022e0]{height:1.05rem;margin-right:.2rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:1.05rem;white-space:nowrap}.reasult-container .reasult-item .item-list[data-v-3e7022e0]{-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out}.reasult-container .reasult-item .item-bottom[data-v-3e7022e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.63rem}.reasult-container .reasult-item .item-bottom .lf[data-v-3e7022e0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.6rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.reasult-container .reasult-item .item-bottom .arrow-bottom[data-v-3e7022e0]{width:.5rem;height:.5rem;margin-left:.8rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.link-box[data-v-3e7022e0]{margin:1.4rem 0 1.2rem;text-align:center;overflow:hidden}.link-box span[data-v-3e7022e0]{height:1.05rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;line-height:1.05rem}.pop-container[data-v-3e7022e0]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-3e7022e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-3e7022e0]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-3e7022e0]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-3e7022e0]{height:80.5%;margin-bottom:6rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-3e7022e0]{padding:.8rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-3e7022e0]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-3e7022e0]{float:left;width:33.3334%;margin-bottom:.4rem;padding:0 .22rem;overflow:hidden}.pop-container .content-container .content-list li span[data-v-3e7022e0]{width:100%;height:2.2rem;line-height:2.2rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.75rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;text-align:center;vertical-align:top}.pop-container .content-container .content-list li span.active[data-v-3e7022e0]{background-color:#e7f1ff;color:#177afa}.pop-container .foot-bar[data-v-3e7022e0]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .btn[data-v-3e7022e0]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}.reasult-null[data-v-3e7022e0]{margin-top:5.78rem}.reasult-null .null-inner[data-v-3e7022e0]{text-align:center}.reasult-null .null-inner img[data-v-3e7022e0]{display:inline-block;width:3.7rem}.reasult-null .null-inner p[data-v-3e7022e0]{margin-top:.6rem;padding:0 .6rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  props: {
    isComponent: {
      // 作为组件 放在通用搜索落地页 故障码部分
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      keyword: this.$route.query.keyword,
      oldKeyword: this.$route.query.keyword,
      searchSecond: '',
      type: 1,
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getFaultList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      currentIndex: null,
      reasultList: [],
      totalCount: 0,
      showNullTip: false,
      show: false,
      brandTemp: null,
      filterOptions: {
        brandName: '',
        typeName: ''
      },
      brandList: [],
      typeList: [],
      typeTemp: null,
      haveReadId: [],
      searchKeyNum: ''
    };
  },
  watch: {
    currentIndex: function currentIndex(val) {
      this.$nextTick(function () {});
    }
  },
  mounted: function mounted() {
    // document.title = '新故障码查询'
    this.getDataAndPosition();
    this.shareConfig();
  },
  methods: {
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    search: function search(keyword, type) {
      this.filterOptions.brandName = '';
      this.filterOptions.typeName = '';
      this.type = type;
      if (type === 1) {
        this.keyword = keyword;
      }

      // 关键词搜索
      var now = new Date();
      var userinfo = JSON.parse(localStorage.getItem('userInfo'));
      this.searchKeyNum = now.getTime() + '' + userinfo.userId;
      this._Util.collectPageViewNew({
        type: 14,
        postUrl: this._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: keyword,
        searchKey: this.searchKeyNum
      }, this);
      this.$router.replace({
        query: _objectSpread(_objectSpread({}, this.$route.query), {}, {
          searchType: this.$route.query.searchType,
          keyword: keyword
        })
      });
      this.mescroll.optUp.page.num = 1;
      this.getFaultList({
        num: 1,
        size: 10,
        firstFilter: true
      });
    },
    openPopup: function openPopup() {
      this.show = true;
    },
    /**
     * 选择品牌
     */
    selectBrand: function selectBrand(item) {
      var _this = this;
      this.brandTemp = this.brandTemp === item.name ? null : item.name;
      this.typeTemp = null;
      if (this.brandTemp) {
        var params = {
          keyword: this.keyword,
          system: this.brandTemp,
          property: this.typeTemp,
          type: this.type,
          pageNum: 1,
          pageSize: 10
        };
        this._Util.post(this._Api.POST_FAULT_SEARCH_NEW, params, function (data) {
          _this.typeList = data.modelVos;
          _this.typeList.unshift({
            name: '全部'
          });
        }, function () {}, this);
      }
    },
    /**
     * 选择型号
     */
    selectType: function selectType(item) {
      this.typeTemp = this.typeTemp === item.name ? null : item.name;
    },
    /**
     * 搜索品牌型号
     */
    confrimSelect: function confrimSelect() {
      this.show = false;
      this.filterOptions = {
        brandName: this.brandTemp,
        typeName: this.typeTemp
      };
      console.log('品牌=' + this.filterOptions.brandName + ' 型号=' + this.filterOptions.typeName);
      this.mescroll.optUp.page.num = 1;
      this.getFaultList({
        num: 1,
        size: 10
      });
    },
    /**
     * 展开合并项
     */
    expand: function expand(item, index) {
      this.currentIndex = index;
      // 点击故障码
      this._Util.sensorsCollect('click_faultcode', {
        operation_page: '新故障码查询',
        keywords: this.keyword,
        filter_name: "".concat(this.filterOptions.brandName, "/").concat(this.filterOptions.typeName),
        fault_code: item.pcode,
        fault_descruibe: item.descCn,
        crid: item.sn,
        fcsId: item.fcsId,
        fault_descruibe_id: item.fcsId,
        faultcode_operatetype: '展开',
        faultcode_similarnumber: item.num,
        faultcode_sort: (this.mescroll.optUp.page.num - 1) * 10 + index + 1,
        faultcode_page: this.mescroll.optUp.page.num,
        faultcode_page_sort: index + 1
      });
    },
    /**
     * 打开故障码详情
     * @param {Object} item 故障码信息
     * @param {Object} prantItem 故障码信息
     * @param {Number} pIndex 合并项列表索引
     * @param {Number} index 合并项的故障码列表索引
     */
    openFaultCodeDesc: function openFaultCodeDesc(item, prantItem, pIndex, index) {
      if (this.haveReadId.indexOf(item.fcsId) === -1) {
        this.haveReadId.push(item.fcsId);
        this.$set(item, 'haveRead', true);
      }
      this.saveDataAndPosition();

      // 点击故障码
      var num = 0;
      if (item.num || item.num === 0) {
        num = item.num;
      } else {
        num = prantItem.num;
      }
      this._Util.sensorsCollect('click_faultcode', {
        operation_page: '新故障码查询',
        keywords: this.keyword,
        filter_name: "".concat(this.filterOptions.brandName, "/").concat(this.filterOptions.typeName),
        fault_code: item.pcode,
        fault_descruibe: item.descCn,
        fault_descruibe_id: item.fcsId,
        crid: item.sn,
        fcsId: item.fcsId,
        faultcode_operatetype: '查看详情',
        faultcode_similarnumber: num,
        faultcode_sort: (this.mescroll.optUp.page.num - 1) * 10 + pIndex,
        faultcode_page: this.mescroll.optUp.page.num,
        faultcode_page_sort: "".concat(pIndex, ":").concat(index)
      });
      if (item.isNew === 0) {
        var queryStr = 'faultTag=' + item.property + '&keyWord=' + this.keyword + '&detailId=' + item.sn + '&showAd=true' + '&filter=' + '&randomStr=' + this.$parent.randomStr + '&total=' + this.totalCount + '&page=' + this.mescroll.optUp.page.num + '&hlFlField=' + '&moduleType=20' + '&hlFl=';
        var _url = this._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchDetail?' + encodeURI(queryStr);
        if (this._Util.isApp()) {
          this.removeEvent();
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'faultCodeDesc',
              notGive: 1,
              url: _url
            }
          });
        } else {
          window.top.location.assign(_url);
        }
      } else {
        if (this._Util.isApp()) {
          this.removeEvent();
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'faultCodeDesc',
              notGive: 1,
              url: "".concat(location.origin, "/v2/library/faultCode2/faultCodeDesc?fcsId=").concat(item.fcsId, "&sn=").concat(item.sn, "&pode=").concat(item.pcode, "&keyword=").concat(this.keyword)
            }
          });
        } else {
          this.$router.push({
            name: 'faultCodeDesc',
            query: {
              fcsId: item.fcsId,
              sn: item.sn,
              pode: item.pcode,
              keyword: this.keyword
            }
          });
        }
      }
    },
    /**
     * 获取故障码查询结果
     */
    getFaultList: function getFaultList(page) {
      var _this2 = this;
      var params = {
        system: this.filterOptions.brandName,
        property: this.filterOptions.typeName === '全部' ? '' : this.filterOptions.typeName,
        type: this.type,
        pageNum: page.num,
        pageSize: page.size
      };
      if (this.$route.query.searchType === 'CR_FAULT_SPN_FMI') {
        params.spnFmi = this.keyword.trim();
      } else {
        params.keyword = this.keyword.trim();
      }
      if (page.num === 1) {
        this.reasultList = [];
      }
      this.oldKeyword = this.keyword;
      this._Util.post(this._Api.POST_FAULT_SEARCH, params, function (data) {
        if (page.firstFilter) {
          _this2.brandList = data.modelVos;
          _this2.brandTemp = null;
          _this2.typeTemp = null;
        }
        if (page.num === 1) {
          _this2.totalCount = data.pageVo.totalCount;
          _this2.searchSecond = data.searchSecond;
        }
        var dataList = data.pageVo.dataList;
        _this2.reasultList = _this2.reasultList.concat(dataList);
        if (_this2.reasultList.length === 0) {
          _this2.showNullTip = true;
        } else {
          _this2.showNullTip = false;
        }
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(dataList.length);
        });

        // 结果页筛选
        _this2._Util.sensorsCollect('filter_libraryresult', {
          operation_page: '新故障码查询',
          vehicledictionary_path: '空',
          filter_type: '空',
          filter_name: "".concat(_this2.filterOptions.brandName, "/").concat(_this2.filterOptions.typeName),
          libraryfile_amount: data.pageVo.totalCount
        });
      }, function () {}, this);
    },
    getDataAndPosition: function getDataAndPosition() {
      var _this3 = this;
      var position = JSON.parse(sessionStorage.getItem('pageParams'));
      if (position) {
        sessionStorage.removeItem('pageParams');
        this.reasultList = position.reasultList;
        this.currentIndex = position.currentIndex;
        this.filterOptions = position.filterOptions;
        this.haveReadId = position.haveReadId;
        this.brandList = position.brandList;
        this.searchSecond = position.searchSecond;
        this.mescrollUp.page.num = position.pageNum;
        this.$nextTick(function () {
          _this3.mescroll.scrollTo(position.scrollTop, 0);
        });
      } else {
        this.getFaultList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        reasultList: this.reasultList,
        currentIndex: this.currentIndex,
        filterOptions: this.filterOptions,
        haveReadId: this.haveReadId,
        brandList: this.brandList,
        searchSecond: this.searchSecond,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('pageParams', JSON.stringify(position));
    },
    /**
     * 故障码查询意见反馈
     */
    feedBack: function feedBack() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=11e80dba&data=\u65B0\u6545\u969C\u7801\u67E5\u8BE2\u7ED3\u679C_").concat(this.keyword);

      // 点击反馈链接
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: '新故障码查询',
        feedbacklink_content: '故障码查询意见反馈',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '故障码查询',
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 移除app端对分享事件的监听，防止分享时，出发多次分享配置
     */
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"reasult-page"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isComponent),expression:"!isComponent"}],staticClass:"search"},[_c('div',{staticClass:"search-bar"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/course-search.png","alt":"搜索图标"}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"type":"text"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"search-btn",on:{"click":function($event){return _vm.search(_vm.keyword, 1)}}},[_vm._v("搜索")])])]),_vm._v(" "),_c('mescroll-vue',{ref:"mescroll",style:({top: _vm.isComponent ? '102px': '3.2rem'}),attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[(!_vm.showNullTip)?_c('div',{staticClass:"search-top"},[_c('p',[_vm._v("已显示“"),_c('span',[_vm._v(_vm._s(_vm.oldKeyword))]),_vm._v("”的搜索结果。 "),(_vm.searchSecond)?_c('span',[_vm._v("仍然搜索："),_c('span',{staticClass:"keyword",on:{"click":function($event){return _vm.search(_vm.searchSecond, 2)}}},[_vm._v(_vm._s(_vm.searchSecond))])]):_vm._e()])]):_vm._e(),_vm._v(" "),(!_vm.showNullTip)?_c('div',{staticClass:"filter-box"},[_c('div',{staticClass:"filter-btn",on:{"click":function($event){return _vm.openPopup()}}},[_vm._v(_vm._s(_vm.filterOptions.typeName || '点击选择 ECU 型号'))])]):_vm._e(),_vm._v(" "),(!_vm.showNullTip)?_c('div',{staticClass:"reasult-container"},[(_vm.filterOptions.brandName)?_c('div',{staticClass:"reasult-tip"},[_vm._v(_vm._s(_vm.filterOptions.brandName)+" "+_vm._s(_vm.filterOptions.typeName)+" 故障码：")]):_c('div',{staticClass:"reasult-tip"},[_vm._v("请点击上方按钮 选择ECU型号：")]),_vm._v(" "),_vm._l((_vm.reasultList),function(item,index){return _c('div',{key:index,staticClass:"reasult-item"},[_c('div',[_c('div',{staticClass:"item-inner",class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFaultCodeDesc(item, null, index + 1, index + 1)}}},[_c('p',{domProps:{"innerHTML":_vm._s(item.pcode + ' ' + item.descCn)}}),_vm._v(" "),_c('span',{staticClass:"meta"},[_vm._v(_vm._s(item.system))]),_c('span',{staticClass:"meta"},[_vm._v(_vm._s(item.property))])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentIndex === index && item.num > 0),expression:"currentIndex === index && item.num > 0"}],staticClass:"item-list"},_vm._l((item.searchFaultCodeVos),function(r,i){return _c('div',{key:i},[_c('div',{staticClass:"item-inner",class:{'have-read': r.haveRead},on:{"click":function($event){return _vm.openFaultCodeDesc(r, item, index + 1, i + 2)}}},[_c('p',{domProps:{"innerHTML":_vm._s(r.pcode + ' ' + r.descCn)}}),_vm._v(" "),_c('span',{staticClass:"meta"},[_vm._v(_vm._s(r.system))]),_c('span',{staticClass:"meta"},[_vm._v(_vm._s(r.property))])])])}),0),_vm._v(" "),(_vm.currentIndex !== index && item.num > 0)?_c('div',{staticClass:"item-bottom",on:{"click":function($event){return _vm.expand(item, index)}}},[_c('span',{staticClass:"lf"},[_vm._v("展开 "+_vm._s(item.num)+" 条合并项")]),_vm._v(" "),_c('span',{staticClass:"arrow-bottom"})]):_vm._e()])})],2):_vm._e(),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"reasult-null"},[_c('div',{staticClass:"null-inner"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":""}}),_vm._v(" "),_c('p',[_vm._v("暂时没有搜索到 "),_c('span',[_vm._v(_vm._s(_vm.oldKeyword))]),_vm._v(" 相关的结果")])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"link-box"},[_c('span',{on:{"click":function($event){return _vm.feedBack()}}},[_vm._v("故障码查询意见反馈")])])])],1),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","get-container":"body","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[_c('div',{staticClass:"content-title"},[_vm._v("ECU品牌")]),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.brandList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectBrand(item)}}},[_c('span',{class:{'active': _vm.brandTemp === item.name}},[_vm._v(_vm._s(item.name))])])}),0),_vm._v(" "),(_vm.brandTemp)?_c('div',{staticClass:"content-title"},[_vm._v("型号")]):_vm._e(),_vm._v(" "),(_vm.brandTemp)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.typeList),function(t,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(t)}}},[_c('span',{class:{'active': _vm.typeTemp === t.name}},[_vm._v(_vm._s(t.name))])])}),0):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn",on:{"click":function($event){return _vm.confrimSelect()}}},[_vm._v("确定")])])])],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer",class:{touch:_vm.iosOrAndroid},staticStyle:{"font-family":"PingFangSC-Regular","background":"#f2f2f2"}},[_c('div',{attrs:{"id":"privMask"}}),_vm._v(" "),_c('div',{staticClass:"windowMask",class:{'windowMaskShow':_vm.showWindowMask}},[_c('div',{staticClass:"contentBox"},[_c('div',{staticStyle:{"color":"black","text-align":"center","padding-top":"7px","font-size":"16px"}},[_vm._v("资料描述")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.myAdvise),expression:"myAdvise"}],staticStyle:{"width":"90%","display":"block","height":"90px","margin":"15px auto 0"},attrs:{"placeholder":"请尽可能详细的描述你想要的资料，小轨工程师找到后第一时间通知"},domProps:{"value":(_vm.myAdvise)},on:{"input":function($event){if($event.target.composing){ return; }_vm.myAdvise=$event.target.value}}}),_vm._v(" "),_c('div',{staticStyle:{"color":"#999","font-size":"12px","width":"90%","margin":"0 auto"}},[_vm._v("可上传故障等相关图片，有助于准确找到资料")]),_vm._v(" "),_c('div',{staticStyle:{"width":"90%","margin":"7px auto 0"}},[_c('div',{staticClass:"a-upload",staticStyle:{"text-align":"center","position":"relative"}},[_c('img',{staticClass:"uploadimg",attrs:{"src":__webpack_require__(1436)}}),_vm._v(" "),_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})])]),_vm._v(" "),(_vm.imgSrc.length>0)?_c('div',{staticStyle:{"width":"100%","height":"50px","overflow-y":"scroll","margin-top":"-5px"}},_vm._l((_vm.imgSrc),function(v,i){return _c('img',{key:i,staticStyle:{"width":"50px","height":"50px","margin-left":"5px"},attrs:{"src":_vm.bucketUrl + v + '?imageView2/1/w/150/h/150'}})}),0):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"option"},[_c('li',{on:{"click":function($event){return _vm.closeWindowMask()}}},[_vm._v("取消")]),_vm._v(" "),_c('li',{on:{"click":function($event){return _vm.submitEvent()}}},[_vm._v("提交")])])])]),_vm._v(" "),(!_vm.isCloseTabList || _vm.parms.folderid != 10086)?_c('div',{staticClass:"cycSearch topSearch"},[_c('div',{staticStyle:{"overflow":"hidden"}},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.searchDate),expression:"searchDate",modifiers:{"trim":true}}],class:{'animation1' :_vm.showSearchBtn},attrs:{"id":"keyword","type":"text","placeholder":_vm.placeholderCon},domProps:{"value":(_vm.searchDate)},on:{"~click":function($event){_vm.showSearchBtn = true},"input":function($event){if($event.target.composing){ return; }_vm.searchDate=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('button',{class:{'animation' :_vm.showSearchBtn},on:{"click":function($event){return _vm.searchBtnPress()}}},[_vm._v("搜索")])])]):_vm._e(),_vm._v(" "),(_vm.isCloseTabList && _vm.parms.folderid == 10086)?_c('div',{staticClass:"cycSearch"},[_vm._m(0),_vm._v(" "),_c('div',{staticStyle:{"height":"50px"}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchDate1),expression:"searchDate1"}],staticClass:"specail",attrs:{"type":"text"},domProps:{"value":(_vm.searchDate1)},on:{"blur":function($event){_vm.showCursor = false},"input":function($event){if($event.target.composing){ return; }_vm.searchDate1=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"keyspan",on:{"click":function($event){return _vm.slideBoard()}}},[_vm._v(_vm._s(_vm.text||_vm.searchDate1)),_c('i',{directives:[{name:"show",rawName:"v-show",value:(_vm.showCursor),expression:"showCursor"}]},[_vm._v("|")])]),_vm._v(" "),_c('button',{staticStyle:{"height":"50px","border-top-left-radius":"0","border-bottom-left-radius":"0","top":"-1px","transform":"translateX(0)","-ms-transform":"translateX(0px)","-webkit-transform":"translateX(0px)","-o-transform":"translateX(0px)","-moz-transform":"translateX(0px)"},on:{"click":function($event){return _vm.searchBtnPress(1)}}},[_vm._v("搜索")])])]):_vm._e(),_vm._v(" "),(_vm.isCloseTabList && _vm.parms.folderid == 10086 )?_c('ul',{staticClass:"tips",staticStyle:{"margin-top":"3px"}},[_vm._m(1),_vm._v(" "),_vm._m(2),_vm._v(" "),_vm._m(3)]):_vm._e(),_vm._v(" "),(_vm.isCloseTabList && _vm.parms.folderid == 10086)?_c('div',{staticStyle:{"width":"95%","height":"1px","background":"#E9E9E9","margin":"0 auto","margin-top":"25px"}}):_vm._e(),_vm._v(" "),(_vm.isCloseTabList && _vm.parms.folderid == 10086)?_c('div',{staticClass:"cycSearch",staticStyle:{"margin-top":"15px"}},[_vm._m(4),_vm._v(" "),_c('div',{staticStyle:{"height":"50px"}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchDate2),expression:"searchDate2"}],staticClass:"inputcontent",staticStyle:{"background":"#fff","width":"80%","height":"49px","border":"1px solid #A6A6A6","border-right":"none","font-size":"16px","border-top-right-radius":"0","border-bottom-right-radius":"0"},attrs:{"type":"text","placeholder":"输入中文描述查询"},domProps:{"value":(_vm.searchDate2)},on:{"click":function($event){return _vm.scrollIntoView()},"input":function($event){if($event.target.composing){ return; }_vm.searchDate2=$event.target.value}}}),_vm._v(" "),_c('button',{staticStyle:{"height":"50px","border-top-left-radius":"0","border-bottom-left-radius":"0","top":"-1px","transform":"translateX(0)","-ms-transform":"translateX(0px)","-webkit-transform":"translateX(0px)","-o-transform":"translateX(0px)","-moz-transform":"translateX(0px)"},on:{"click":function($event){return _vm.searchBtnPress(2)}}},[_vm._v("搜索")])])]):_vm._e(),_vm._v(" "),(_vm.isCloseTabList && _vm.parms.folderid == 10086 )?_c('ul',{staticClass:"tips",staticStyle:{"margin-top":"3px"}},[_vm._m(5)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"keyboard",class:{show:_vm.showKeyboard}},[_c('table',_vm._l((_vm.keyList),function(item,index){return _c('tr',{key:index},_vm._l((item),function(v,i){return (v.mes || v.mes == 0 || v.src)?_c('td',{key:i,class:[v.class,{press:v.active,pressWhite:v.activeWhite}],attrs:{"colspan":v.colspan,"rowspan":v.rowspan},on:{"click":function($event){return _vm.getKeyValue(v)}}},[_vm._v("\n          "+_vm._s(v.src?'':v.mes)),(v.src)?_c('img',{attrs:{"src":v.src,"alt":""}}):_vm._e()]):_vm._e()}),0)}),0)]),_vm._v(" "),(_vm.isCloseTabList && _vm.parms.folderid == 10087 )?_c('ul',{staticClass:"tips"},[_vm._m(6),_vm._v(" "),_vm._m(7),_vm._v(" "),_vm._m(8),_vm._v(" "),_vm._m(9),_vm._v(" "),_vm._m(10),_vm._v(" "),_vm._m(11),_vm._v(" "),_vm._m(12),_vm._v(" "),_vm._m(13)]):_vm._e(),_vm._v(" "),(_vm.isCloseTabList && _vm.parms.folderid == 10088 )?_c('ul',{staticClass:"tips"},[_vm._m(14),_vm._v(" "),_vm._m(15),_vm._v(" "),_vm._m(16),_vm._v(" "),(_vm.$route.query.showIQA != 'false')?_c('div',{staticClass:"iqa",on:{"click":_vm.toIqa}},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/app/quickClassify/20180315155413460pxyu.png","alt":"iqa"}}),_vm._v(" "),_c('span',[_vm._v("IQA 计算")]),_vm._v(" "),_c('i')]):_vm._e()]):_vm._e(),_vm._v(" "),(!_vm.isCloseTabList)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isReplaceNew),expression:"!isReplaceNew"}],staticClass:"tabBox",class:{'removeBottom1' : _vm.removeBottom}},[_vm._l((_vm.TabList),function(v,index){return ((v.isShow ==1 && v.folderId || v.folderId===0) && (v.folderId===0||v.folderId===10086||v.folderId===20171212||v.folderId===20171202))?_c('div',{key:index,class:{ac:v.folderId == _vm.$route.query.folderid},on:{"click":function($event){return _vm.searchDetail(v,index)}}},[_vm._v(_vm._s(v.title)+"\n    ")]):_vm._e()}),_vm._v(" "),_c('div',{class:{ac: _vm.subtabList.find(function (v) { return v.folderId == _vm.$route.query.folderid; }), dropArrow: !_vm.subtabList.find(function (v) { return v.folderId == _vm.$route.query.folderid; })},on:{"click":_vm.moreTab}},[_vm._v("更多"),_c('span')])],2):_vm._e(),_vm._v(" "),(!_vm.isCloseTabList)?_c('div',{ref:"scrollBox",staticClass:"scrollBox",staticStyle:{"overflow-y":"auto","-webkit-overflow-scrolling":"touch","position":"relative"},style:({'height':_vm.thisheight}),attrs:{"id":"contentBox1"}},[(_vm.subtabList.find(function (v) { return v.folderId == _vm.$route.query.folderid; }))?_c('div',{staticClass:"moreTab"},_vm._l((_vm.subtabList),function(val,index){return (val.isShow ==1 && val.folderId || val.folderId===0)?_c('div',{key:index,staticClass:"tabWrap"},[_c('div',{class:{smallTab: true, active: val.folderId == _vm.$route.query.folderid},on:{"click":function($event){return _vm.searchDetail(val,index+4)}}},[_vm._v("\n          "+_vm._s(val.title)+"\n        ")])]):_vm._e()}),0):_vm._e(),_vm._v(" "),(_vm.parms.folderid ==0 && _vm.falCodeNumber)?_c('div',{staticClass:"falCodeBox",on:{"click":function($event){return _vm.toFalCode(1)}}},[_c('img',{staticStyle:{"width":"50px","height":"50px"},attrs:{"src":__webpack_require__(3184)}}),_vm._v(" "),_c('div',{staticStyle:{"display":"inline-block"}},[_c('div',{staticStyle:{"font-size":"18px","color":"#333"}},[_vm._v("故障码")]),_vm._v("\n        查看\n        "),_c('span',{staticStyle:{"color":"#EE4545","font-size":"16px"}},[_vm._v(_vm._s(_vm.$route.query.keyword))]),_vm._v(" 的故障码\n      ")]),_vm._v(" "),_vm._m(17)]):_vm._e(),_vm._v(" "),(_vm.parms.folderid ==0 && _vm.showPart)?_c('div',{staticClass:"falCodeBox",on:{"click":function($event){return _vm.toFalCode(2)}}},[_c('img',{staticStyle:{"width":"50px","height":"50px"},attrs:{"src":__webpack_require__(3185)}}),_vm._v(" "),_c('div',{staticStyle:{"display":"inline-block"}},[_c('div',{staticStyle:{"font-size":"18px","color":"#333"}},[_vm._v("部件信息")]),_vm._v("\n        查看\n        "),_c('span',{staticStyle:{"color":"#EE4545","font-size":"16px"}},[_vm._v(_vm._s(_vm.$route.query.keyword))]),_vm._v(" 的部件信息\n\n      ")]),_vm._v(" "),_vm._m(18)]):_vm._e(),_vm._v(" "),(_vm.parms.folderid ==0 && _vm.showDataTest)?_c('div',{staticClass:"falCodeBox",on:{"click":function($event){return _vm.toFalCode(3)}}},[_c('img',{staticStyle:{"width":"50px","height":"50px"},attrs:{"src":__webpack_require__(3186)}}),_vm._v(" "),_c('div',{staticStyle:{"display":"inline-block"}},[_c('div',{staticStyle:{"font-size":"18px","color":"#333"}},[_vm._v("测试数据")]),_vm._v("\n        查看\n        "),_c('span',{staticStyle:{"color":"#EE4545","font-size":"16px"}},[_vm._v(_vm._s(_vm.$route.query.keyword))]),_vm._v(" 的测试数据\n\n      ")]),_vm._v(" "),_vm._m(19)]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"background-color":"#fff","position":"relative"}},[_vm._l((_vm.result),function(v,index){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.parms.folderid != 10086 && _vm.parms.folderid != 10087 && _vm.parms.folderid != 10088),expression:"parms.folderid != 10086 && parms.folderid != 10087 && parms.folderid != 10088"}],key:index,staticClass:"listCon",staticStyle:{"overflow":"hidden"},on:{"click":function($event){return _vm.openFile(v,index)}}},[_c('div',{staticStyle:{"width":"72%","float":"left","margin-left":"5px","min-height":"66px","position":"relative"},style:({'width': v.iconUrl ? '72%' : '100%','min-height':v.iconUrl ? '95px' : '65px'})},[_c('div',{staticClass:"leftCon",domProps:{"innerHTML":_vm._s(v.dataName)}}),_vm._v(" "),_c('div',{staticClass:"ListInfo"},[_vm._v(_vm._s(_vm.cal(v.parentClassId))+" "+_vm._s(_vm._Util.isApp() && _vm.canopenpdf ? (v.pdfUrl ? 'pdf' : v.fileType) : v.fileType)+" "+_vm._s(_vm.calculateFileSize(v.fileLength)))]),_vm._v(" "),(v.keywordName)?_c('div',{staticClass:"tagsBox"},[_c('ul',_vm._l((_vm.drawTags(v.keywordName)),function(tag,index){return _c('li',{key:index},[_vm._v(_vm._s(tag))])}),0)]):_vm._e()]),_vm._v(" "),(v.iconUrl)?_c('img',{staticStyle:{"width":"26%","height":"66px","float":"right"},attrs:{"src":'http://static2.kaxiuyun.com/' + v.iconUrl}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"rightCon"},[_c('Collection',{staticClass:"yuncang",attrs:{"collect-params":{
              moduleType: v.moduleType,
              objId: v.shareId,
              queryValue: v.id,
              favId: v.favId,
              sourceType:v.parentClassId
            }},on:{"replaceId":function($event){return _vm.reId(v,$event)}}})],1)])}),_vm._v(" "),(_vm.showLoadMore && _vm.parms.folderid != 10086 && _vm.parms.folderid != 10087 && _vm.parms.folderid != 10088)?_c('div',{staticStyle:{"padding":"10px 0","background":"#fff","margin-bottom":"20px"},on:{"click":function($event){return _vm.loadMore()}}},[_c('div',{staticClass:"loadMore"},[_vm._v("查看更多")])]):_vm._e(),_vm._v(" "),(_vm.showDC && _vm.parms.folderid != 10086 && _vm.parms.folderid != 10087 && _vm.parms.folderid != 10088)?_c('div',{staticStyle:{"width":"100%","height":"90px"}},[_vm._m(20),_vm._v(" "),_c('div',{staticStyle:{"background":"#f2f2f2"}},[_c('div',{staticClass:"butCon"},[_c('span'),_vm._v(" "),_c('div',{staticStyle:{"border-bottom-left-radius":"5px"},on:{"click":function($event){return _vm.canEvent()}}},[_vm._v("\n              解决\n              ")]),_vm._v(" "),_c('div',{staticStyle:{"border-bottom-right-radius":"5px"},on:{"click":function($event){return _vm.showWindow(1)}}},[_vm._v("\n              未解决\n              ")])])]),_vm._v(" "),(_vm.showCan)?_c('div',{staticStyle:{"color":"#B10217","float":"left","padding-left":"15px"}},[_vm._v("感谢您的反馈")]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","height":"10px","background":"#f2f2f2"}}),_vm._v(" "),_c('div',{staticStyle:{"background":"#f2f2f2","padding-bottom":"5px"}},[_c('Poking-me-component',{attrs:{"position-id":4}})],1)]):_vm._e(),_vm._v(" "),(_vm.showNoResult && !_vm.isCloseTabList && _vm.parms.folderid != 10087 && _vm.parms.folderid != 10088 && _vm.parms.folderid != 10086 && _vm.falCodeNumber == 0)?_c('div',{staticStyle:{"position":"absolute","height":"30px","line-height":"30px","color":"#999","font-size":"16px","text-align":"center","width":"100%","top":"120px"}},[_vm._v("未查询到结果\n      ")]):_vm._e()],2),_vm._v(" "),(_vm.parms.folderid == 10087)?_c('div',{staticClass:"partInfo",staticStyle:{"position":"relative"}},[_vm._l((_vm.result),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.openPartInfoDetail(item.code,item,index)}}},[_c('span',{staticStyle:{"float":"left"}},[_vm._v(_vm._s(item.name)+"：")]),_c('pre',{staticStyle:{"color":"#59a0cf","font-size":"18px","float":"left","line-height":"45px"},domProps:{"innerHTML":_vm._s(item.code)}})])}),_vm._v(" "),(_vm.result.length===0&&_vm.showNoResult)?_c('div',{staticStyle:{"position":"absolute","height":"30px","line-height":"30px","color":"#999","font-size":"16px","text-align":"center","width":"100%","top":"120px"}},[_vm._v("未查询到结果\n      ")]):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.parms.folderid == 10088)?_c('div',{staticClass:"testData",staticStyle:{"position":"relative"}},[_vm._l((_vm.result),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.openTestDataDetail(item.code)}}},[_c('span',{staticStyle:{"float":"left"}},[_vm._v(_vm._s(item.name)+"：")]),_c('pre',{staticStyle:{"color":"#59a0cf","font-size":"18px","float":"left","line-height":"45px"},domProps:{"innerHTML":_vm._s(item.code)}})])}),_vm._v(" "),(_vm.result.length===0&&_vm.showNoResult)?_c('div',{staticStyle:{"position":"absolute","height":"30px","line-height":"30px","color":"#999","font-size":"16px","text-align":"center","width":"100%","top":"120px"}},[_vm._v("未查询到结果\n      ")]):_vm._e()],2):_vm._e(),_vm._v(" "),((_vm.parms.folderid == 10086 && !_vm.isCloseTabList) && _vm.isNewFaultCode !== null)?[(_vm.isNewFaultCode === true)?_c('new-fault-code',{ref:"newFaultCode",attrs:{"is-component":true}}):_c('iframe',{staticStyle:{"height":"100%","position":"absolute","top":"0","left":"0","right":"0","bottom":"0"},attrs:{"width":"100%","height":"100%","src":_vm.flatResultCodeSrc,"frameborder":"0","scrolling":"no"}})]:_vm._e()],2):_vm._e(),_vm._v(" "),_c('mt-popup',{staticClass:"popupStyle",attrs:{"position":"bottom"},model:{value:(_vm.showDetail),callback:function ($$v) {_vm.showDetail=$$v},expression:"showDetail"}},[(_vm.showDetail&&_vm.$route.query.folderid==10087)?_c('Close-page-component',{attrs:{"result":_vm.detailResult,"keyword":_vm.$route.query.keyword,"module-type":_vm._Enums.COLLECTION_MODULE.PARTS,"question":_vm.question},on:{"toggleParentMask":_vm.toggleParentMask}}):_vm._e(),_vm._v(" "),(_vm.showDetail&&_vm.$route.query.folderid==10088)?_c('Test-data-detail',{attrs:{"test-code":_vm.testCode},on:{"close":_vm.closeTestData}}):_vm._e()],1)],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-bottom":"10px","margin-top":"20px"}},[_c('img',{staticStyle:{"width":"24px","height":"14px","display":"inline-block","margin-top":"3px","pointer-events":"none"},attrs:{"src":__webpack_require__(3187)}}),_vm._v(" "),_c('span',{staticStyle:{"font-size":"18px","color":"#333","padding-left":"5px","display":"inline-block","margin-top":"-3px"}},[_vm._v("查故障码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle",staticStyle:{"color":"#666666"}}),_vm._v("\n      输入正确的故障码，如P码、闪码、十六进制码等。小轨将罗列出所有相关信息，请点击相应车型系统的条目查看详细排查指南。")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle",staticStyle:{"color":"#666666"}}),_vm._v("\n      故障码为SPN码时，如SPN 523470 FMI 12请输入523470-12。")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle",staticStyle:{"color":"#666666"}}),_vm._v("\n      遇到任何棘手的问题，欢迎进入“在线问答”提问，小轨们实时解答。")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-bottom":"10px"}},[_c('img',{staticStyle:{"width":"20px","height":"20px","pointer-events":"none"},attrs:{"src":__webpack_require__(3188)}}),_vm._v(" "),_c('span',{staticStyle:{"font-size":"18px","color":"#333","padding-left":"10px","display":"inline-block","margin-top":"-3px"}},[_vm._v("查故障描述")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle",staticStyle:{"color":"#666666"}}),_vm._v("\n      请输入故障描述\n      如：轨压传感器信号电压超上限，尿素压力低")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      直接输入部件号查询详细的配件信息，如：")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      喷油器：博世（0445120078），电装（0950006222），德尔福（EJBR03301D）")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      油   泵：0445020077")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      油   轨：0445212001")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      阀组件：F00RJ01657")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      油嘴刻印号： DLLA150P1622")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      ECU：0281020075")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      传感器：0281006067")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      包含喷油器和油泵的测试数据。")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      请正确输入型号，如0445120397、0445120078、0950006222、EJBR03301D。")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"yuanxinl"},[_c('div',{staticClass:"circle"}),_vm._v("\n      测试数据持续更新中。")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"result-go-next",staticStyle:{"color":"#666666","font-size":"14px"}},[_c('i',{staticStyle:{"color":"#D0D0D0"}},[_vm._v(" > ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"result-go-next",staticStyle:{"color":"#666666","font-size":"14px"}},[_c('i',{staticStyle:{"color":"#D0D0D0"}},[_vm._v(" > ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"result-go-next",staticStyle:{"color":"#666666","font-size":"14px"}},[_c('i',{staticStyle:{"color":"#D0D0D0"}},[_vm._v(" > ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#f2f2f2","padding-top":"10px"}},[_c('div',{staticClass:"dc"},[_c('div',{staticClass:"imgB"}),_vm._v(" "),_c('div',{staticClass:"cbox"},[_c('div',{staticStyle:{"font-size":"20px","font-weight":"bolder"}},[_vm._v("小轨调查")]),_vm._v(" "),_c('div',[_vm._v("以上搜索结果能否解决您的问题？")])])])])}]
module.exports = __webpack_require__.p + "static/img/appSearch2.e466396.png";module.exports = __webpack_require__.p + "static/img/appSearch.7c847e0.png";module.exports = __webpack_require__.p + "static/img/appSearch3.1367b6b.png";module.exports = __webpack_require__.p + "static/img/falcode.e0a69ed.png";module.exports = __webpack_require__.p + "static/img/faldesc.f795070.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(592);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6b29f9de_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1191);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3189)
  __webpack_require__(3191)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6b29f9de"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6b29f9de_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6b29f9de_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultNew_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3190);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3e8dc8e4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-toast{z-index:3000}.soso-new .mescroll-upwarp{padding:0}.soso-new .result-box .ad-info{margin-top:.3rem}.soso-new .result-box .ad-info img{width:100%!important;margin-left:0!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3192);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("79a3630e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".soso-new[data-v-6b29f9de]{-ms-touch-action:pan-y;touch-action:pan-y;background:#f5f5f5;min-height:100%;overflow-x:hidden}.soso-new .popupStyle[data-v-6b29f9de]{position:fixed;width:100%;height:-webkit-calc(100% - 60px);height:calc(100% - 60px);border-radius:.6rem .6rem 0 0}.soso-new .pop-container[data-v-6b29f9de]{width:100%;height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.soso-new .pop-container .head[data-v-6b29f9de]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.soso-new .pop-container .head .title[data-v-6b29f9de]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.soso-new .pop-container .head .close[data-v-6b29f9de]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.soso-new .pop-container .content-container[data-v-6b29f9de]{height:80.5%;padding-bottom:1rem;overflow-y:auto}.soso-new .pop-container .content-container .content-title[data-v-6b29f9de]{padding:.8rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.soso-new .pop-container .content-container .content-list[data-v-6b29f9de]{padding:0 .5rem;overflow:hidden}.soso-new .pop-container .content-container .content-list li[data-v-6b29f9de]{float:left;width:33.3334%;margin-bottom:.4rem;padding:0 .22rem;overflow:hidden}.soso-new .pop-container .content-container .content-list li span[data-v-6b29f9de]{width:100%;height:2.2rem;line-height:2.2rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.75rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;text-align:center;vertical-align:top}.soso-new .pop-container .content-container .content-list li span.active[data-v-6b29f9de]{background-color:#e7f1ff;color:#ff6c37}.soso-new .pop-container .foot-bar[data-v-6b29f9de]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.soso-new .pop-container .foot-bar .btn[data-v-6b29f9de]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#ff6c37;border-radius:.3rem}.soso-new .window-mask[data-v-6b29f9de]{width:100%;height:100%;background:rgba(0,0,0,.4);position:absolute;top:0;left:0;z-index:100}.soso-new .window-mask .content-box[data-v-6b29f9de]{border-radius:.4rem;background:#fff;width:88%;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:6%;padding:.6rem .6rem 0}.soso-new .window-mask .content-box .mask-tit[data-v-6b29f9de]{color:#333;font:16px/1rem PingFangSC-Regular;text-align:center}.soso-new .window-mask .content-box textarea[data-v-6b29f9de]{width:100%;height:4rem;border:1px solid #eee;padding:.3rem;margin-top:.4rem;border-radius:.2rem}.soso-new .window-mask .content-box .mask-tip[data-v-6b29f9de]{color:#666;font:14px/1rem PingFangSC-Regular;margin-top:.2rem}.soso-new .window-mask .content-box .upload-box[data-v-6b29f9de]{margin-top:.4rem}.soso-new .window-mask .content-box .upload-box .a-upload[data-v-6b29f9de]{width:1.5rem;height:1.5rem;position:relative;overflow:hidden}.soso-new .window-mask .content-box .upload-box .a-upload img[data-v-6b29f9de]{display:inline-block;width:100%;height:100%}.soso-new .window-mask .content-box .upload-box .a-upload .putPhoto[data-v-6b29f9de]{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:199}.soso-new .window-mask .content-box .img-box[data-v-6b29f9de]{max-height:5rem;overflow-y:auto}.soso-new .window-mask .content-box .img-box img[data-v-6b29f9de]{width:2rem;height:2rem;margin-right:.4rem;margin-top:.4rem}.soso-new .window-mask .content-box .option[data-v-6b29f9de]{border-top:1px solid #eee;margin-top:.4rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .window-mask .content-box .option span[data-v-6b29f9de]{height:.7rem;width:1px;background:#eee}.soso-new .window-mask .content-box .option li[data-v-6b29f9de]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font:16px/2rem PingFangSC-Regular;color:#666}.soso-new .tab-pan[data-v-6b29f9de]{position:absolute;top:3.15rem;left:0;bottom:0;right:0;background:rgba(0,0,0,.45);z-index:10}.soso-new .tab-pan .list-box[data-v-6b29f9de]{border-top:1px solid #eee;padding:.8rem .6rem 1rem;background:#fff}.soso-new .tab-pan .list-box p[data-v-6b29f9de]{color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.soso-new .tab-pan .list-box ul[data-v-6b29f9de]{margin-top:.4rem}.soso-new .tab-pan .list-box ul li[data-v-6b29f9de]{float:left;width:32%;height:2.05rem;color:#333;font:16px/2.05rem PingFangSC-Regular;margin-top:.4rem;margin-right:2%;background:#f5f5f5;border-radius:4px;text-align:center}.soso-new .tab-pan .list-box ul li[data-v-6b29f9de]:nth-of-type(3n){margin-right:0}.soso-new .tab-pan .list-box ul li.selected[data-v-6b29f9de]{background:#e7f1ff;color:#ff6c37}.soso-new .input_box[data-v-6b29f9de]{background:#fff;padding:.6rem .6rem 0;position:relative}.soso-new .input_box i[data-v-6b29f9de]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:1.15rem;left:1rem}.soso-new .input_box input[data-v-6b29f9de]{background:#f5f5f5;height:2rem;border-radius:1rem;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;padding-right:4rem;-webkit-transition:.3s;transition:.3s}.soso-new .input_box button[data-v-6b29f9de]{margin-left:.6rem;width:3.6rem;height:1.8rem;line-height:2rem;color:#fff;background:#ff6c37;border-radius:1rem;font:15px PingFangSC-Regular;position:absolute;top:.7rem;right:-300px;-webkit-transition:all .3s ease;transition:all .3s ease}.soso-new .input_box button.animate[data-v-6b29f9de]{right:.7rem}.soso-new .tab-wrap[data-v-6b29f9de]{height:2.5rem;background:#fff;padding-left:.6rem;position:relative}.soso-new .tab-wrap>div[data-v-6b29f9de]{height:100%}.soso-new .tab-wrap .left[data-v-6b29f9de]{width:-webkit-calc(100% - 2.15rem);width:calc(100% - 2.15rem)}.soso-new .tab-wrap .right[data-v-6b29f9de]{width:2.15rem;background:#fff;position:relative}.soso-new .tab-wrap .right .bg[data-v-6b29f9de]{position:absolute;width:100%;height:100%;z-index:2;top:0;left:0;background:#fff url(" + escape(__webpack_require__(53)) + ") 50% no-repeat;background-size:14px 8px}.soso-new .tab-wrap .right .icon[data-v-6b29f9de]{position:absolute;z-index:1;top:.45rem;left:0;width:1px;height:1.6rem;box-shadow:-2px 0 6px 0 hsla(228,2%,51%,.62)}.soso-new .tab-wrap #tab-box[data-v-6b29f9de]{overflow:hidden}.soso-new .tab-wrap #tab-box ul[data-v-6b29f9de]{font-size:0;display:inline-block;white-space:nowrap;height:2.5rem}.soso-new .tab-wrap #tab-box ul li[data-v-6b29f9de]{display:inline-block;margin-right:1rem;color:#666;font:16px/2.5rem PingFangSC-Regular}.soso-new .tab-wrap #tab-box ul li[data-v-6b29f9de]:last-child{margin:0}.soso-new .tab-wrap #tab-box ul li.active[data-v-6b29f9de]{color:#ff6c37;font-weight:700;position:relative}.soso-new .tab-wrap #tab-box ul li.active[data-v-6b29f9de]:after{content:\"\";position:absolute;height:3px;width:.8rem;background:#ff6c37;left:50%;bottom:1px;margin-left:-.4rem}.soso-new .radius-box[data-v-6b29f9de]{background:#fff}.soso-new .radius-box .radiu[data-v-6b29f9de]{height:.6rem;background:#f5f5f5;border-radius:.6rem .6rem 0 0}.soso-new .result-box[data-v-6b29f9de]{height:-webkit-calc(100% - 2.8rem);height:calc(100% - 2.8rem);padding:0 .5rem;background:#f5f5f5}.soso-new .result-box.fault-result-box[data-v-6b29f9de]{padding:0}.soso-new .result-box.fault-result-box .accurate[data-v-6b29f9de]{padding:0 .5rem}.soso-new .result-box .accurate[data-v-6b29f9de]{color:#333;font:14px/1rem PingFangSC-Regular;margin-bottom:.5rem}.soso-new .result-box .accurate i[data-v-6b29f9de]{font-style:normal;color:#ff6c37}.soso-new .result-box .dictionary[data-v-6b29f9de]{margin-top:.5rem;border-radius:.4rem;background:#fff;padding:.6rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .result-box .dictionary img[data-v-6b29f9de]{width:1.6rem;height:1.6rem;border-radius:.1rem;border:1px solid #e6e6e6;margin-right:.4rem}.soso-new .result-box .dictionary .text[data-v-6b29f9de]{color:#333;font:18px/1.25rem PingFangSC-Regular;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.soso-new .result-box .dictionary i.arror[data-v-6b29f9de]{margin-left:.4rem;width:.3rem;height:.5rem;background:url(" + escape(__webpack_require__(57)) + ") no-repeat;background-size:100% 100%}.soso-new .result-box .crad-box[data-v-6b29f9de]{margin-top:.5rem}.soso-new .result-box .meansList-box .meansList[data-v-6b29f9de]{margin-top:.5rem;border-radius:.4rem;background:#fff;padding:.6rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.soso-new .result-box .meansList-box .meansList.meanDetail[data-v-6b29f9de]{padding:0;display:block}.soso-new .result-box .meansList-box .meansList[data-v-6b29f9de]:first-child{margin:0}.soso-new .result-box .meansList-box .meansList .text[data-v-6b29f9de]{color:#333;font:18px/1.25rem PingFangSC-Regular;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.soso-new .result-box .meansList-box .meansList .collect[data-v-6b29f9de]{width:1.4rem;height:1.7rem;border-radius:.2rem;background:url(" + escape(__webpack_require__(204)) + ") no-repeat;background-size:100% 100%}.soso-new .result-box .meansList-box .meansList .collect.collected[data-v-6b29f9de]{background:url(" + escape(__webpack_require__(205)) + ") no-repeat}.soso-new .result-box .fault-code .page[data-v-6b29f9de]{height:auto!important;min-height:100%;background-color:#f5f5f5;overflow:hidden}.soso-new .result-box .fault-code .search[data-v-6b29f9de]{padding:.6rem;background-color:#fff}.soso-new .result-box .fault-code .search-bar[data-v-6b29f9de]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2rem}.soso-new .result-box .fault-code .search-bar img[data-v-6b29f9de]{width:1rem;height:1rem;position:absolute;top:51%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.soso-new .result-box .fault-code .search-bar input[data-v-6b29f9de]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2rem;background-color:#f5f5f5;border-radius:.2rem;padding:0 .4rem 0 1.4rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}.soso-new .result-box .fault-code .search-bar .search-btn[data-v-6b29f9de]{width:3.6rem;height:2rem;line-height:2rem;margin-left:.6rem;color:#fff;background-color:#ff6c37;border-radius:.2rem;font-size:.75rem;font-weight:400;text-align:center}.soso-new .result-box .fault-code .search-top[data-v-6b29f9de]{margin-top:.4rem;padding:.4rem .6rem;background-color:#fff;font-size:.7rem;line-height:1.2rem;border-bottom:.03rem solid #eee;font-family:PingFangSC-Regular,PingFang SC;color:#333}.soso-new .result-box .fault-code .search-top span[data-v-6b29f9de]{font-size:.7rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.soso-new .result-box .fault-code .search-top .keyword[data-v-6b29f9de]{color:#ff6c37}.soso-new .result-box .fault-code .filter-box[data-v-6b29f9de]{padding:.6rem .6rem 1.2rem;background-color:#fff}.soso-new .result-box .fault-code .filter-box .filter-btn[data-v-6b29f9de]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2rem;background:#fff6f6;border-radius:1rem;border:.03rem solid #ff3f3f;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#ff3f3f}.soso-new .result-box .fault-code .reasult-container[data-v-6b29f9de]{margin-top:-.6rem;padding:0 .5rem;background:#f5f5f5;border-radius:.6rem .6rem 0 0;overflow:hidden}.soso-new .result-box .fault-code .reasult-container .reasult-tip[data-v-6b29f9de]{margin-top:.8rem;margin-bottom:.6rem;height:1rem;font-size:.7rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1rem}.soso-new .result-box .fault-code .reasult-container .reasult-item[data-v-6b29f9de]{width:100%;padding:0 .6rem;margin-bottom:.5rem;border-radius:.4rem;background-color:#fff;overflow:hidden}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner[data-v-6b29f9de]{padding-bottom:.8rem;border-bottom:.03rem solid #eee}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner.have-read p[data-v-6b29f9de]{color:#999}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner p[data-v-6b29f9de]{margin:.8rem 0 .2rem;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.25rem}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner .meta[data-v-6b29f9de]{height:1.05rem;margin-right:.2rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:1.05rem;white-space:nowrap}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-list[data-v-6b29f9de]{-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-bottom[data-v-6b29f9de]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.63rem}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-bottom .lf[data-v-6b29f9de]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.6rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#ff6c37}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-bottom .arrow-bottom[data-v-6b29f9de]{width:.5rem;height:.5rem;margin-left:.8rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.soso-new .result-box .fault-code .reasult-null[data-v-6b29f9de]{margin-top:5.78rem}.soso-new .result-box .fault-code .reasult-null .null-inner[data-v-6b29f9de]{text-align:center}.soso-new .result-box .fault-code .reasult-null .null-inner img[data-v-6b29f9de]{display:inline-block;width:3.7rem}.soso-new .result-box .fault-code .reasult-null .null-inner p[data-v-6b29f9de]{margin-top:.6rem;padding:0 .6rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem}.soso-new .result-box .feedback[data-v-6b29f9de]{width:100%;height:auto;background:#fff;border-radius:.4rem;margin-top:.5rem}.soso-new .result-box .feedback .feed-wrap[data-v-6b29f9de]{padding:.8rem}.soso-new .result-box .feedback .feed-wrap .dc[data-v-6b29f9de]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .result-box .feedback .feed-wrap .dc img[data-v-6b29f9de]{margin-right:.6rem}.soso-new .result-box .feedback .feed-wrap .dc .cbox[data-v-6b29f9de]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.soso-new .result-box .feedback .feed-wrap .dc .cbox div[data-v-6b29f9de]:first-of-type{color:#333;font:18px/1.2rem PingFangSC-Regular}.soso-new .result-box .feedback .feed-wrap .dc .cbox div[data-v-6b29f9de]:nth-of-type(2){color:#666;margin-top:.3rem;font:14px/1.2rem PingFangSC-Regular}.soso-new .result-box .feedback .feed-btn[data-v-6b29f9de]{border-top:1px solid #eee;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .result-box .feedback .feed-btn span[data-v-6b29f9de]{height:.7rem;width:1px;background:#eee}.soso-new .result-box .feedback .feed-btn div[data-v-6b29f9de]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font:16px/1.6rem PingFangSC-Regular;color:#666}.soso-new .footBox .link-box[data-v-6b29f9de]{margin:1.4rem 0 1.2rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .footBox .link-box>div[data-v-6b29f9de]{text-align:center;height:1.05rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC,serif;font-weight:400;color:#177afa;line-height:1.05rem}.soso-new .footBox .link-box .icon[data-v-6b29f9de]{width:.3rem;height:.5rem;margin-left:.3rem;background:url(" + escape(__webpack_require__(1455)) + ") 0 0/cover no-repeat}.soso-new .collect-box[data-v-6b29f9de]{z-index:1000000}.soso-new .collect-box .collect-cont[data-v-6b29f9de]{border-radius:.2rem;background:#fff;position:absolute;top:50%;width:80%;left:10%;z-index:100;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.soso-new .collect-box .collect-cont .collect-tit[data-v-6b29f9de]{padding:.6rem;color:#333;font:16px/1 PingFangSC-Regular;text-align:center}.soso-new .collect-box .collect-cont .collect-text[data-v-6b29f9de]{padding:.3rem .6rem .6rem;color:#666;font:16px/1rem PingFangSC-Regular}.soso-new .collect-box .collect-cont .collect-btns[data-v-6b29f9de]{border-top:1px solid #eee;height:2.2rem;font-size:0;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;overflow:hidden}.soso-new .collect-box .collect-cont .collect-btns span[data-v-6b29f9de]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.2rem;font:16px/2.2rem PingFangSC-Regular;text-align:center}.soso-new .collect-box .collect-cont .collect-btns span[data-v-6b29f9de]:first-of-type{color:#333;border-right:1px solid #eee}.soso-new .collect-box .collect-cont .collect-btns span[data-v-6b29f9de]:nth-of-type(2){color:#ff6c37}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/Rectangle2.9ae1b6b.png";module.exports = __webpack_require__.p + "static/img/arrow_r_1.792d31b.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(1456);
var _image = _interopRequireDefault(__webpack_require__(245));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _resultCrad = _interopRequireDefault(__webpack_require__(1457));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(172));
var _testDataDetail = _interopRequireDefault(__webpack_require__(279));
var _partDetail = _interopRequireDefault(__webpack_require__(817));
var _intelligentMatch = _interopRequireDefault(__webpack_require__(1458));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    IntelligentMatch: _intelligentMatch.default,
    ResultCrad: _resultCrad.default,
    TestDataDetail: _testDataDetail.default,
    PartDetail: _partDetail.default,
    PokingMeComponent: _pokingMeComponent.default
  }, _mintUi.Popup.name, _mintUi.Popup), _image.default.name, _image.default), _imagePreview.default.name, _imagePreview.default),
  data: function data() {
    return {
      isNewGray: 0,
      minHeight: 'min-height:24rem',
      faultDescFlag: -1,
      // 故障码字段
      appVer: '',
      mescroll: null,
      keyWord: decodeURIComponent(this.$route.query.keyword),
      copyKeyWord: '',
      // 用来展示精准搜索的值
      isFocus: false,
      showtabPan: false,
      // 是否显示下拉菜单
      tabList: [],
      nowFolderId: this.$route.query.folderid,
      // 当前点击的tab id
      dictionaryList: [],
      // 节点类型模块列表
      searchParms: {
        // 搜索时的参数
        parentClassId: this.$route.query.folderid || 0,
        dataName: '',
        pageNum: 1,
        pageSize: 20
      },
      meansList: [],
      // 全部资料列表
      meansTotal: 0,
      // 得到的资料总数
      cardList: [],
      // 卡片集合列表
      partInfoList: [],
      // 部件信息数据
      partCardInfo: {},
      // 部件信息的卡片信息
      testList: [],
      // 测试数据
      testCradInfo: {},
      // 测试数据的卡片信息
      showDetailNew: false,
      // 是否显示部件信息的详情弹窗
      showDetailNew2: false,
      // 是否显示测试数据的详情弹窗
      question: '',
      detailResult: {},
      // 部件信息详情数据
      testCode: '',
      // 当前需要打开详情的测试数据code
      testIndex: 0,
      showWindowMask: false,
      myAdvise: '',
      // 我的建议
      imgSrc: [],
      // 上传的建议图片
      token: '',
      // 七牛云token
      bucketUrl: '',
      // 获得七牛云前缀
      randomStr: '',
      randomNum: null,
      searchType: '',
      // 搜索类型（点击或者搜索）
      userStatus: 0,
      isAccurateSearch: false,
      // 是否进行了精确搜索
      isSpnFmi: this.$route.query.faultType === 'spn',
      // 第一次的搜索是否是从spn-fmi搜索条件过来的
      collectObj: {
        // 收藏的对象
        show: false,
        data: {},
        params: {}
      },
      collectTip: '',
      // 收藏提示
      // 故障码数据
      faultKeyword: this.$route.query.keyword,
      firstFilter: false,
      // 是否是新的一次请求故障码，是的话需要清除原来的筛选条件
      searchSecond: '',
      type: 1,
      currentIndex: null,
      reasultList: [],
      // 故障码数据列表
      faultCardInfo: {},
      // 故障码在首页显示卡片的信息
      totalCount: 0,
      // 故障码总数
      logTotal: 0,
      // 记录埋点时的数据总数
      showNullTip: false,
      showPop: false,
      // 是否显示故障码ecu筛选弹窗
      brandTemp: null,
      filterOptions: {
        // ecu的筛选条件
        classificationName: '',
        brandName: '',
        typeName: ''
      },
      filterFromAllTab: false,
      // 搜索故障码列表是否是从‘全部’tab里面的ecu弹窗唤起的
      classificationList: [],
      // 分类集合
      classificationTemp: null,
      brandList: [],
      typeList: [],
      typeTemp: null,
      haveReadId: [],
      intelligentRecommend: null,
      // 新智能推荐
      refNo: '',
      queryKey: '',
      greyVersion: false,
      // 是否是灰度版本
      search_history_sort: decodeURIComponent(this.$route.query.search_history_sort),
      timing: '',
      time: 0
    };
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '故障码,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that, position, tempObj, tempObj2;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            that = _this;
            _this.mescroll = new _mescroll.default(_this.$refs.mescroll, {
              down: {
                use: false
              },
              up: {
                callback: _this.upFn,
                auto: false,
                page: {
                  num: 0,
                  size: 20
                },
                offset: 400,
                htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
                // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
                noMoreSize: 1,
                isBounce: false,
                empty: {
                  warpId: 'listContainer',
                  tip: '暂无相关数据'
                }
              }
            });
            _this.sosoMinHeight();
            console.log(_this.$refs);
            // await this.getGray()
            _this.loadCarTabInfo(_this.search_history_sort);
            // this.getTabList()
            debugger;
            position = JSON.parse(sessionStorage.getItem('new_pageParams'));
            if (position) {
              sessionStorage.removeItem('new_pageParams');
              _this.userStatus = position.userStatus;
              _this.randomNum = position.randomNum;
              _this.intelligentRecommend = position.intelligentRecommend;
              _this.typeList = position.typeList;
              _this.brandList = position.brandList;
              _this.classificationList = position.classificationList;
              _this.greyVersion = position.greyVersion;
              if (_this.nowFolderId == 10086) {
                _this.reasultList = position.reasultList;
                _this.currentIndex = position.currentIndex;
                _this.filterOptions = position.filterOptions || {};
                _this.haveReadId = position.haveReadId;
                _this.searchSecond = position.searchSecond;
                _this.copyKeyWord = position.copyKeyWord;
              } else if (_this.nowFolderId != 10087 && _this.nowFolderId != 10088) {
                if (_this.nowFolderId == 0) {
                  _this.testList = position.testList;
                  _this.testList.forEach(function (item) {
                    if (item.code == _this.keyWord && _this.userStatus === 2) {
                      item.isShowDetail = true;
                      _this.openPartTestDetail(item, 1);
                    }
                  });
                  tempObj = {
                    classifyName: '测试数据',
                    parentClassId: 10088,
                    totalCount: _this.testList.length,
                    shareBos: []
                  };
                  _this.testList.forEach(function (item, index) {
                    tempObj.shareBos.push({
                      dataName: item.name + ': ' + item.code,
                      id: 'test' + index,
                      parentClassId: 10087,
                      code: item.code,
                      isShowDetail: item.isShowDetail
                    });
                  });
                  _this.testCradInfo = tempObj;

                  // 处理部件信息的展示
                  _this.partInfoList = position.partInfoList;
                  _this.partInfoList.forEach(function (item) {
                    if (item.code == _this.keyWord && _this.userStatus === 2) {
                      item.isShowDetail = true;
                      _this.openPartTestDetail(item, 1);
                    }
                  });
                  tempObj2 = {
                    classifyName: '部件信息',
                    parentClassId: 10087,
                    totalCount: _this.partInfoList.length,
                    shareBos: []
                  };
                  _this.partInfoList.forEach(function (item, index) {
                    tempObj2.shareBos.push({
                      dataName: item.name + ': ' + item.code,
                      id: 'part' + index,
                      parentClassId: 10087,
                      code: item.code,
                      isShowDetail: item.isShowDetail,
                      detailResult: item.code == _this.keyWord ? {} : null
                    });
                  });
                  _this.partCardInfo = tempObj2;
                  _this.faultCardInfo = position.faultCardInfo;
                  _this.cardList = position.cardList;
                }
                _this.copyKeyWord = position.copyKeyWord;
                _this.meansTotal = position.meansTotal;
                _this.totalCount = position.totalCount;
                _this.meansList = position.meansList;
                _this.dictionaryList = position.dictionaryList;
              }
              setTimeout(function () {
                _this.mescroll.optUp.page.num = Number(position.pageNum);
                _this.$nextTick(function () {
                  _this.mescroll.scrollTo(position.scrollTop, 0);
                });
              }, 200);
            } else {
              _this.searchFn(_this.$route.query.searchTypes && _this.$route.query.searchTypes === '1' ? 'log' : 'btn');
            }
            that._Util.collectPageViewNew({
              type: 1,
              postUrl: that._Api.POST_COLLECT_NEW,
              source: '',
              target: '',
              remark: '故障码',
              searchKey: ''
            }, that);
            that.timing = setInterval(function () {
              that.time++;
            }, 1000);
            // this._Util.post(this._Api.appGetQNToken, {}, data => {
            //   this.token = data.token
            //   this.bucketUrl = data.bucketUrl
            // }, () => {}, this)
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  beforeMount: function beforeMount() {
    // 创建MeScroll对象
  },
  methods: {
    /**
     * 获取CR故障码跳转Tab--opensearch版
     */
    loadCarTabInfo: function loadCarTabInfo(search_history_sort) {
      this._Util.post(this._Api.POST_GET_CAR_TAB_INFO, {
        keyword: this.keyWord
      }, function (data) {
        if (data.popupType === 0) return;
        if (localStorage.getItem('SET_FAULTCODE_ALERT') === 'false') return;
        localStorage.setItem('SET_FAULTCODE_ALERT', 'false');
        // MessageBox({
        //   title: '',
        //   message: '你是否想要搜索故障码',
        //   showCancelButton: true,
        //   confirmButtonText: '是的',
        //   cancelButtonText: '不是'
        // }).then(action => {
        //   if (action === 'confirm') {
        //     const url = location.origin + `/v4/faultCode-subpackage/pages/search?searchType=${data.searchType}&keyword=${data.keyword}`
        //     this._Util.publicOpenPage({
        //       url,
        //       appName: 'faultCodeSearch'
        //     })
        //   }
        // })
      }, function () {}, this);
    },
    /**
     * 获取大搜新就接口配置
     */
    // getGray() {
    //   return new Promise(resolve => {
    //     this._Util.post(this._Api.GET_GRAY, {}, data => {
    //       this.isNewGray = data
    //       resolve()
    //     }, () => {}, this)
    //   })
    // },
    upDateAdImgSize: function upDateAdImgSize() {
      this.sosoMinHeight();
    },
    /**
       * 搜搜首页搜索结果最小高度计算
       * */
    sosoMinHeight: function sosoMinHeight() {
      var _this2 = this;
      setTimeout(function () {
        var height = _this2.$refs.mescroll.offsetHeight - 0;
        _this2.minHeight = "min-height:".concat(height - 40, "px");
      }, 200);
    },
    /**
       * 获取随机字符串，以便记录埋点时使用（每一项的第一页需要重新获取字符串，第二页时，则使用第一页的字符串）
       */
    getRandomChar: function getRandomChar() {
      var that = this;
      var chars = 'abcdefghijklmnopqrstuvwxyz123456789';
      var maxPos = chars.length;
      var pwd = '';
      var randomNum = '';
      for (var i = 0; i < 32; i++) {
        pwd += chars.charAt(Math.floor(Math.random() * maxPos));
        randomNum += Math.floor(Math.random() * 10);
      }
      that.randomStr = pwd;
      return [that.randomStr, randomNum];
    },
    /**
       * 动态配置mescroll组件上拉加载的函数
       */
    upFn: function upFn(page) {
      debugger;
      // if (this.nowFolderId == 0) {
      //   this.getMeansList(page)
      // } else if (this.nowFolderId == 10086) {
      this.getFaultList(page);
      // } else if (this.nowFolderId == 10087) {
      //   this.getPartInfo(page)
      // } else if (this.nowFolderId == 10088) {
      //   this.getTestInfo(page)
      // } else {
      //   this.getMeansList(page)
      // }
    },
    /**
       * 输入框失去焦点
       */
    inputBlur: function inputBlur() {
      var _this3 = this;
      this.$nextTick(function () {
        _this3.isFocus = false;
      });
    },
    /**
       * 获取tab切换列表
       */
    getTabList: function getTabList() {
      var _this4 = this;
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search/portal/list', {}, function (data) {
        that.tabList = [{
          title: '全部',
          id: 0,
          folderId: 0,
          isShow: 1
        }].concat(data);
        var curIndex = 0;
        that.tabList.forEach(function (item, index) {
          if (_this4.nowFolderId == item.folderId) {
            curIndex = index;
          }
        });
        that.$nextTick(function () {
          // 初始化按钮滚动区域
          that.tabScroll = new _betterScroll.default('#tab-box', {
            scrollX: true,
            scrollY: false,
            click: true,
            bounceTime: 300,
            swipeBounceTime: 300
          });
          setTimeout(function () {
            that.tabScroll.scrollToElement(document.getElementById('tab' + curIndex), 300);
          }, 300);
        });
      }, function () {}, that);
    },
    /**
       * 执行搜索的逻辑
       * @param {String} type btn代表点击了搜索按钮， tab代表点击了搜索项
       * @param {Object} item 点击的每一条tab
       */
    searchFn: function searchFn(type, item, point) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var title, queryParam, curIndex, result, _result, _result2, _result3;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              debugger;
              if (!(type === 'tab' && item.folderId === 10086)) {
                _context2.next = 1;
                break;
              }
              _this5._Util.post(_this5._Api.POST_GET_CAR_TAB_INFO, {
                keyword: _this5.copyKeyWord
              }, function (data) {
                var url = location.origin + "/v4/faultCode-subpackage/pages/search?searchType=".concat(data.searchType, "&keyword=").concat(data.keyword);
                _this5._Util.publicOpenPage({
                  url: url,
                  appName: 'faultCodeSearch'
                });
              }, function () {}, _this5);
              return _context2.abrupt("return");
            case 1:
              if (_this5.keyWord.trim()) {
                _context2.next = 2;
                break;
              }
              _mintUi.MessageBox.alert('请输入搜索关键字');
              return _context2.abrupt("return");
            case 2:
              if (!(_this5.keyWord.trim() == 'p' || _this5.keyWord.trim() == 'P')) {
                _context2.next = 3;
                break;
              }
              _mintUi.MessageBox.alert('输入内容有误，请修改后再搜索');
              return _context2.abrupt("return");
            case 3:
              _this5.meansList = [];
              _this5.partInfoList = [];
              _this5.testList = [];
              _this5.cardList = [];
              _this5.faultCardInfo = {};
              _this5.partCardInfo = {};
              _this5.testCradInfo = {};
              _this5.meansTotal = 0;
              _this5.totalCount = 0;
              _this5.showtabPan = false;
              title = '';
              _this5.$nextTick(function () {
                _this5.mescroll.scrollTo(0, 0);
                _this5.sosoMinHeight();
              });
              if (sessionStorage.getItem('search_link_jump') === '1') {
                sessionStorage.removeItem('search_link_jump');
              } else {
                // this.searchKeyWordList()
              }
              if (type === 'btn' || type === 'log') {
                _this5.searchType = '搜索';
                _this5.randomStr = _this5.getRandomChar()[0];
                _this5.randomNum = _this5.getRandomChar()[1];
              } else if (type === 'tab') {
                _this5.searchType = '点击';
              } else {
                _this5.searchType = '精确搜索';
              }
              if (type === 'tab') {
                _this5.nowFolderId = item.folderId;
                title = item.title;
              }
              if (type === 'accurate') {
                _this5.isAccurateSearch = true;
                if (_this5.nowFolderId != 10086 && _this5.nowFolderId != 10087 && _this5.nowFolderId != 10088) {
                  _this5.searchParms.type = 2; // 精确搜索只针对资料
                }
              } else {
                delete _this5.searchParms.type;
                _this5.isAccurateSearch = false;
              }
              queryParam = {
                folderid: _this5.nowFolderId,
                keyword: _this5.keyWord,
                title: title || _this5.$route.query.title
              };
              if (_this5.isSpnFmi && _this5.nowFolderId == 10086) {
                _this5.isSpnFmi = false;
                queryParam.faultType = 'spn';
              }
              _this5.$router.replace({
                query: queryParam
              });
              _this5.copyKeyWord = _this5.keyWord;
              _this5.searchTabType = type;
              _this5.searchTabName = title;
              if (point === 'tabpan') {
                // 点击了折叠菜单，把tab切换为当前点击项
                curIndex = 0;
                _this5.tabList.forEach(function (item, index) {
                  if (_this5.nowFolderId == item.folderId) {
                    curIndex = index;
                  }
                });
                setTimeout(function () {
                  _this5.tabScroll.scrollToElement(document.getElementById('tab' + curIndex), 300);
                }, 300);
              }
              if (!(_this5.nowFolderId == 0)) {
                _context2.next = 5;
                break;
              }
              _this5.filterOptions = {
                classificationName: '',
                brandName: '',
                typeName: ''
              };
              _context2.next = 4;
              return _this5._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 4:
              result = _context2.sent;
              _this5.userStatus = result.userStatus;
              // this.getDicionList()
              _this5.getAllDataList();
              _context2.next = 12;
              break;
            case 5:
              if (!(_this5.nowFolderId == 10086)) {
                _context2.next = 6;
                break;
              }
              // 故障码
              // const result = await this._Util.judgePower({
              //   dataType: 'FAULT_CODE', // 对故障码进行权限判断
              //   params: {
              //     eventType: 'SEARCH_DATA'
              //   }
              // }, this)
              // this.userStatus = result.userStatus
              if (_this5.filterFromAllTab) {
                _this5.filterFromAllTab = false;
              } else {
                _this5.filterOptions = {
                  classificationName: '',
                  brandName: '',
                  typeName: ''
                };
                _this5.firstFilter = true;
              }
              _this5.dictionaryList = [];
              console.log(_this5.mescroll);
              _this5.mescroll.resetUpScroll();
              _context2.next = 12;
              break;
            case 6:
              if (!(_this5.nowFolderId == 10087)) {
                _context2.next = 8;
                break;
              }
              // 部件信息
              _this5.partInfoList = [];
              _context2.next = 7;
              return _this5._Util.judgePower({
                dataType: 'PARTS_INFO',
                // 对部件信息进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 7:
              _result = _context2.sent;
              _this5.userStatus = _result.userStatus;
              _this5.dictionaryList = [];
              _this5.mescroll.resetUpScroll();
              _context2.next = 12;
              break;
            case 8:
              if (!(_this5.nowFolderId == 10088)) {
                _context2.next = 10;
                break;
              }
              // 测试数据
              _this5.testList = [];
              _context2.next = 9;
              return _this5._Util.judgePower({
                dataType: 'TEST_DATA',
                // 对测试数据进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 9:
              _result2 = _context2.sent;
              _this5.userStatus = _result2.userStatus;
              _this5.dictionaryList = [];
              _this5.mescroll.resetUpScroll();
              _context2.next = 12;
              break;
            case 10:
              _context2.next = 11;
              return _this5._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 11:
              _result3 = _context2.sent;
              _this5.userStatus = _result3.userStatus;
              _this5.mescroll.resetUpScroll();
            case 12:
              _this5.dictionaryList = [];
            case 13:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
       * 点击全部的时候执行的搜索
       */
    getAllDataList: function getAllDataList() {
      this.getDicionList();
      this.mescroll.resetUpScroll();
      this.getPartInfo({
        num: 1
      });
      this.getTestInfo({
        num: 1
      });
      this.firstFilter = true;
      this.getFaultList({
        num: 1
      });
    },
    /**
       * 获取部件信息
       */
    getPartInfo: function getPartInfo(page) {
      var _this6 = this;
      var params = {
        queryValue: this.keyWord
      };
      if (this.nowFolderId == 10087) {
        // 点击了部件信息tab
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord)) {
          _mintUi.MessageBox.alert('请输入数字');
          this.mescroll.endSuccess(0, false);
          return;
        }
        if (!/[\u4E00-\u9FA5]/g.test(this.keyWord) && this.keyWord.length < 3) {
          _mintUi.MessageBox.alert('请至少输入后三位查询');
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      if (this.nowFolderId == 0) {
        // 点击了全部tab
        // 如果搜索关键字是文字或者长度小于3时，不进行搜索
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord) || this.keyWord.length < 3) {
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      var url = this.isNewGray === 1 ? 'POST_PARTS_INFO_OPEN_SEARCH' : 'POST_PARTS_INFO_GET_NEW';
      this._Util.post(this._Api[url], params, function (data) {
        if (page.num === 1) {
          _this6.partInfoList = [];
        }
        _this6.$nextTick(function () {
          _this6.mescroll.endSuccess(data.list.length, false);
        });
        if (!data.list.length) {
          return;
        }
        var pratArr = [];
        var _iterator = _createForOfIteratorHelper(data.list),
          _step;
        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var o = _step.value;
            var _iterator2 = _createForOfIteratorHelper(_partsTableConfig.default[o.solrType]),
              _step2;
            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var v = _step2.value;
                if (o.key === v.name) {
                  pratArr.push({
                    name: v.title,
                    code: o[o.key],
                    solrTypeAndKey: "".concat(o.solrType, ":").concat(o.key),
                    parentClassId: 10087
                  });
                }
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
        _this6.partInfoList = pratArr;
        _this6.logTotal = _this6.partInfoList.length;
        _this6.partInfoList.forEach(function (item) {
          if (item.code === _this6.keyWord && _this6.userStatus === 2) {
            item.isShowDetail = true;
            _this6.openPartTestDetail(item, 1);
          }
        });
        if (_this6.nowFolderId == 0) {
          var tempObj = {
            classifyName: '部件信息',
            parentClassId: 10087,
            totalCount: _this6.partInfoList.length,
            shareBos: []
          };
          _this6.partInfoList.forEach(function (item, index) {
            tempObj.shareBos.push({
              dataName: item.name + ': ' + item.code,
              name: item.name,
              id: 'part' + index,
              parentClassId: 10087,
              code: item.code,
              isShowDetail: item.isShowDetail,
              solrTypeAndKey: item.solrTypeAndKey,
              detailResult: item.code === _this6.keyWord ? {} : null
            });
          });
          _this6.partCardInfo = tempObj;
        }
        _this6.searchKeywords2(page);
        _this6.searchKeywords1();
      }, function () {
        _this6.mescroll.endErr();
      }, this);
    },
    /**
       * 获取测试数据信息
       */
    getTestInfo: function getTestInfo(page) {
      var _this7 = this;
      var params = {
        queryValue: this.keyWord
      };
      if (this.nowFolderId == 10088) {
        // 点击了部件信息tab
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord)) {
          _mintUi.MessageBox.alert('请输入数字');
          this.mescroll.endSuccess(0, false);
          return;
        }
        if (!/[\u4E00-\u9FA5]/g.test(this.keyWord) && this.keyWord.length < 3) {
          _mintUi.MessageBox.alert('请至少输入后三位查询');
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      if (this.nowFolderId == 0) {
        // 点击了全部tab
        // 如果搜索关键字是文字或者长度小于3时，不搜索测试数据
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord) || this.keyWord.length < 3) {
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      var url = this.isNewGray === 1 ? 'POST_SOSO_TEST_DATA_OPEN_SEARCH' : 'POST_SOSO_TEST_DATA_NEW';
      this._Util.post(this._Api[url], params, function (data) {
        if (page.num === 1) {
          _this7.testList = [];
        }
        _this7.$nextTick(function () {
          _this7.mescroll.endSuccess(data.list.length, false);
        });
        if (!data.list.length) {
          return;
        }
        var testArr = [];
        var _iterator3 = _createForOfIteratorHelper(data.list),
          _step3;
        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var v = _step3.value;
            testArr.push({
              name: v.pyq ? '喷油器型号' : '油泵型号',
              code: v.pyq || v.pump,
              parentClassId: 10088
            });
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
        _this7.testList = testArr;
        _this7.logTotal = _this7.testList.length;
        _this7.testList.forEach(function (item) {
          if (item.code == _this7.keyWord && _this7.userStatus === 2) {
            item.isShowDetail = true;
            _this7.openPartTestDetail(item, 1);
          }
        });
        if (_this7.nowFolderId == 0) {
          var tempObj = {
            classifyName: '测试数据',
            parentClassId: 10088,
            totalCount: _this7.testList.length,
            shareBos: []
          };
          _this7.testList.forEach(function (item, index) {
            tempObj.shareBos.push({
              dataName: item.name + ': ' + item.code,
              name: item.name,
              id: 'test' + index,
              parentClassId: 10088,
              code: item.code,
              isShowDetail: item.isShowDetail
            });
          });
          _this7.testCradInfo = tempObj;
        }
        _this7.searchKeywords2(page);
        _this7.searchKeywords1();
      }, function () {
        _this7.mescroll.endErr();
      }, this);
    },
    /**
       * 获取节点模块列表
       */
    getDicionList: function getDicionList() {
      var _this8 = this;
      this._Util.post(this._Api.POST_SEARCH_PATH_LIST, {
        keyword: this.keyWord
      }, function (data) {
        if (data) {
          _this8.dictionaryList = data;
        }
      }, function () {}, this);
    },
    /**
       * 获取全部资料列表
       */
    getMeansList: function getMeansList(page) {
      var _this9 = this;
      this.searchParms.pageNum = page.num;
      this.searchParms.dataName = this.keyWord;
      this.searchParms.parentClassId = this.nowFolderId;
      if (page.num === 1) {
        this.meansList = [];
      }
      var url = this.isNewGray === 1 ? 'api/management/listMeans.json' : 'api/management/getMeansList.json';
      this._Util.post(this._Api.HOSTOLD + url, this.searchParms, function (data) {
        if (data) {
          if (page.num === 1) {
            _this9.cardList = data.classifyShareList;
          }
          _this9.meansTotal = data.totalCount;
          _this9.logTotal = data.totalCount;
          _this9.meansList = _this9.meansList.concat(data.dataList);
          var currentPageLen = data.dataList.length ? _this9.mescroll.optUp.page.size : 0;
          _this9.$nextTick(function () {
            _this9.mescroll.endBySize(currentPageLen, data.totalCount);
          });
          _this9.searchKeywords2(page);
          _this9.searchKeywords1();
        }
      }, function () {
        _this9.mescroll.endErr();
      }, this);
    },
    /**
       * 跳转到节点详情页
       * @param {Object} item 点击的每一条节点信息
       */
    toDicDetail: function toDicDetail(item, index) {
      var _this0 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var result;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 1;
              return _this0._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this0);
            case 1:
              result = _context3.sent;
              console.log(result);
              if (_this0._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'toMyredPack',
                    url: item.pathUrl
                  }
                });
              } else {
                _this0.saveDataAndPosition({
                  meansList: _this0.meansList,
                  cardList: _this0.cardList,
                  testList: _this0.testList,
                  partInfoList: _this0.partInfoList,
                  faultCardInfo: _this0.faultCardInfo,
                  dictionaryList: _this0.dictionaryList,
                  copyKeyWord: _this0.copyKeyWord,
                  meansTotal: _this0.meansTotal,
                  totalCount: _this0.totalCount,
                  userStatus: _this0.userStatus,
                  pageNum: _this0.mescroll.optUp.page.num,
                  randomNum: _this0.randomNum,
                  intelligentRecommend: _this0.intelligentRecommend,
                  typeList: _this0.typeList,
                  brandList: _this0.brandList,
                  classificationList: _this0.classificationList,
                  greyVersion: _this0.greyVersion
                });
                location.href = item.pathUrl;
              }
            case 2:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /**
       * 获取用户状态
       */
    getUserStatus: function getUserStatus() {
      var _this1 = this;
      return new Promise(function (resolve, reject) {
        _this1._Util.post(_this1._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this1);
      });
    },
    /**
       * 收藏的方法
       * @param {Object} item 点击的每一条需要收藏的数据
       */
    collectFn: function collectFn(item, index) {
      var _this10 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
        var userData, collectParams;
        return _regenerator.default.wrap(function (_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _context4.next = 1;
              return _this10.getUserStatus();
            case 1:
              userData = _context4.sent;
              if (!(userData.userStatus !== 2)) {
                _context4.next = 2;
                break;
              }
              _this10._Util.showMsgBoxConfirm('对不起，只有付费会员才能查看。您还未付费，请您先完成付费', function (action) {
                if (action) {
                  window.location.href = '/v2/business/pay/certificationRenewal?fullPath=' + _this10.$route.fullPath;
                }
              });
              return _context4.abrupt("return");
            case 2:
              if (!item.favId) {
                collectParams = {
                  favId: item.favId,
                  moduleType: item.moduleType,
                  queryValue: item.id
                };
                if (item.shareId && item.parentClassId) {
                  collectParams.objId = item.shareId;
                }
                if (item.parentClassId) {
                  // 只有资料才有parentClassId
                  collectParams.sourceType = item.parentClassId;
                }
                if (item.sn && !item.parentClassId) {
                  // 部件信息和测试信息收藏时的参数
                  collectParams.objId = item.sn;
                }
                if (item.testCode) {
                  // 测试信息收藏时还需要带入code
                  collectParams.requestValue = item.testCode;
                }
                // this._Util.showMsgBoxConfirm('是否对该资料进行收藏？', (action) => {
                //   if (action) {
                //     this._Util.post(this._Api.POST_COLLECTION_SAVE, collectParams, (data) => {
                //       Toast({
                //         message: '收藏成功',
                //         duration: 1500
                //       })
                //       item.favId = data.id
                //     }, () => {}, this, true)
                //   }
                // })
                _this10.collectObj = {
                  show: true,
                  data: item,
                  params: collectParams
                };
                _this10.collectTip = '是否对该资料进行收藏？';
              } else {
                _this10.collectObj = {
                  show: true,
                  data: item,
                  params: {
                    id: item.favId
                  }
                };
                _this10.collectTip = '是否取消收藏？';
                // this._Util.showMsgBoxConfirm('是否取消收藏？', (action) => {
                //   if (action) {
                //     this._Util.post(this._Api.POST_COLLECTION_CANCEL, {
                //       id: item.favId
                //     }, () => {
                //       item.favId = null
                //       Toast({
                //         message: '取消成功',
                //         duration: 1500
                //       })
                //     }, () => {}, this, false)
                //   }
                // }, {
                //   confirmButtonText: '是',
                //   cancelButtonText: '否'
                // })
              }
            case 3:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    /**
       * 关闭收藏确认弹窗
       */
    collectCancle: function collectCancle() {
      this.collectObj = {
        show: false,
        data: {},
        params: {}
      };
    },
    /**
       * 收藏确认或取消
       */
    collectOk: function collectOk() {
      var _this11 = this;
      if (this.collectObj.data.favId) {
        this._Util.post(this._Api.POST_COLLECTION_CANCEL, this.collectObj.params, function () {
          _this11.collectObj.data.favId = null;
          (0, _mintUi.Toast)({
            message: '取消成功',
            duration: 1500
          });
          _this11.collectObj.show = false;
        }, function () {}, this, false);
      } else {
        this._Util.post(this._Api.POST_COLLECTION_SAVE, this.collectObj.params, function (data) {
          (0, _mintUi.Toast)({
            message: '收藏成功',
            duration: 1500
          });
          _this11.collectObj.data.favId = data.id;
          _this11.collectObj.show = false;
        }, function () {}, this, true);
      }
    },
    /**
     * 点击资料查看详情
     * @param {Object} item 点击的每一条资料
     * @param index 索引
     */
    toMeansDetail: function toMeansDetail(item, index) {
      var _this12 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
        var result, indexNew, appToken;
        return _regenerator.default.wrap(function (_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              _context5.next = 1;
              return _this12._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this12);
            case 1:
              result = _context5.sent;
              indexNew = item.indexNum ? item.indexNum : index;
              if (!_this12._Util.isApp()) {
                _this12.saveDataAndPosition({
                  meansList: _this12.meansList,
                  cardList: _this12.cardList,
                  testList: _this12.testList,
                  partInfoList: _this12.partInfoList,
                  faultCardInfo: _this12.faultCardInfo,
                  dictionaryList: _this12.dictionaryList,
                  copyKeyWord: _this12.copyKeyWord,
                  meansTotal: _this12.meansTotal,
                  totalCount: _this12.totalCount,
                  userStatus: _this12.userStatus,
                  pageNum: _this12.mescroll.optUp.page.num,
                  randomNum: _this12.randomNum,
                  intelligentRecommend: _this12.intelligentRecommend,
                  typeList: _this12.typeList,
                  brandList: _this12.brandList,
                  classificationList: _this12.classificationList,
                  greyVersion: _this12.greyVersion
                });
              }
              if (!(item.fileType.toUpperCase() == 'PDF')) {
                _context5.next = 5;
                break;
              }
              if (!_this12._Util.isApp()) {
                _context5.next = 2;
                break;
              }
              appToken = localStorage.getItem('app-token') || '';
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'pdf' + item.fileNo,
                  url: _this12._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
                }
              });
              _context5.next = 4;
              break;
            case 2:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context5.next = 3;
                break;
              }
              _this12._Util.AddEventFmt100Url(_this12._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
              return _context5.abrupt("return");
            case 3:
              window.location.href = _this12._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
            case 4:
              _context5.next = 6;
              break;
            case 5:
              if (new RegExp(item.fileType.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
                _this12._Util.post(_this12._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo
                }, function (data) {
                  // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                  if (localStorage.getItem('isFromMft100') === '1') {
                    _this12._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                    return;
                  }
                  _this12.$router.push({
                    name: 'video',
                    query: {
                      share: data.fileUrl
                    }
                  });
                }, function () {}, _this12);
              } else {
                _this12._Util.post(_this12._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo,
                  pageNum: 1,
                  pageSize: 3
                }, function (data) {
                  if (data.displayType == 1) {
                    if (item.fileType.toUpperCase() == 'JPG' || item.fileType.toUpperCase() == 'PNG') {
                      var url = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(item.dataName, "&count=1&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                      if (_this12._Util.isApp()) {
                        api.sendEvent({
                          name: 'acOpenNewFrm',
                          extra: {
                            name: 'picList',
                            url: url
                          }
                        });
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this12._Util.AddEventFmt100Url(url);
                          return;
                        }
                        _this12.$router.push({
                          name: 'picList',
                          query: {
                            isScale: 1,
                            title: item.dataName.replace(/red/g, '#666'),
                            count: 1,
                            pageNum: 1,
                            pageSize: 3,
                            type: 1,
                            fromPage: 'soso',
                            fileNo: item.fileNo
                          }
                        });
                      }
                    } else {
                      if (item.fileType == '微信图文') {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this12._Util.AddEventFmt100Url(data.fileUrl + '?/');
                          return;
                        }
                        location.href = data.fileUrl + '?/';
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this12._Util.AddEventFmt100Url(data.fileUrl);
                          return;
                        }
                        location.href = data.fileUrl;
                      }
                    }
                  } else {
                    var _url2 = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(data.atlasName, "&count=").concat(data.reCount, "&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                    if (_this12._Util.isApp()) {
                      api.sendEvent({
                        name: 'acOpenNewFrm',
                        extra: {
                          name: 'picList',
                          url: _url2
                        }
                      });
                    } else {
                      // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                      if (localStorage.getItem('isFromMft100') === '1') {
                        _this12._Util.AddEventFmt100Url(_url2);
                        return;
                      }
                      _this12.$router.push({
                        name: 'picList',
                        query: {
                          isScale: 1,
                          title: data.atlasName,
                          count: data.reCount,
                          pageNum: 1,
                          pageSize: 3,
                          type: 1,
                          fileNo: item.fileNo,
                          fromPage: 'soso'
                        }
                      });
                    }
                  }
                }, function () {}, _this12);
              }
            case 6:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    /**
       * 子组件触发的事件，可能是打开资料，也可能是打开部件信息和测试数据
       * @param {Object} item 点击的每一项数据
       */
    parentFn: function parentFn(item) {
      if (item.parentClassId == 10087 || item.parentClassId == 10088) {
        this.openPartTestDetail(item);
      } else if (item.parentClassId == 10086) {
        this.openFaultCodeDesc(item, null, item.indexNum * 1 + 1, item.indexNum * 1 + 1);
      } else {
        this.toMeansDetail(item);
      }
    },
    /**
       * 查看部件信息或者测试数据的详情
       * @param {Object} item 点击的每一条
       */
    openPartTestDetail: function openPartTestDetail(item, index) {
      var _this13 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
        var result, url;
        return _regenerator.default.wrap(function (_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              _this13.refNo = item.code;
              _this13.queryKey = item.solrTypeAndKey;
              _context6.next = 1;
              return _this13._Util.judgePower({
                dataType: item.parentClassId == 10087 ? 'PARTS_INFO' : 'TEST_DATA',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this13);
            case 1:
              result = _context6.sent;
              if (item.parentClassId == 10087) {
                url = _this13.isNewGray === 1 ? 'POST_PARTS_INFO_DETAIL_OPEN_SEARCH' : 'POST_PARTS_INFO_GET';
                _this13._Util.post(_this13._Api[url], {
                  refNo: item.code
                }, function (data) {
                  if (!data.length && _this13.nowFolderId != 0) {
                    _this13._Util.showMsgBox('小轨没有查到关键信息');
                    return;
                  }
                  _this13.detailResult = {
                    source: data,
                    attrItems: _partsTableConfig.default
                  };
                  _this13.question = '?type=2&text2=' + data[0].pyq;
                  if (!item.isShowDetail) {
                    _this13.showDetailNew = true;
                  }
                }, function () {}, _this13);
              } else {
                _this13.testCode = item.code;
                _this13.testIndex = index;
                if (!item.isShowDetail) {
                  // 有了isShowDetail说明是自动匹配到的，不是点击打开的
                  _this13.showDetailNew2 = true;
                }
              }
            case 2:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    /**
       * 关闭测试数据模态框
       */
    closeTestData: function closeTestData() {
      this.showDetailNew2 = false;
      this.testCode = '';
    },
    callSearch: function callSearch(val) {
      var _this14 = this;
      if (val.classifyName && val.classifyName === '故障码') {
        this._Util.post(this._Api.POST_GET_CAR_TAB_INFO, {
          keyword: this.copyKeyWord
        }, function (data) {
          var url = location.origin + "/v4/faultCode-subpackage/pages/search?searchType=".concat(data.searchType, "&keyword=").concat(data.keyword);
          _this14._Util.publicOpenPage({
            url: url,
            appName: 'faultCodeSearch'
          });
        }, function () {}, this);
        return;
      }
      var curIndex = 0;
      val.folderId = val.parentClassId;
      this.nowFolderId = val.parentClassId;
      this.tabList.forEach(function (item, index) {
        if (_this14.nowFolderId == item.folderId) {
          curIndex = index;
        }
      });
      setTimeout(function () {
        _this14.tabScroll.scrollToElement(document.getElementById('tab' + curIndex), 300);
      }, 300);
      this.searchFn('tab', val);
    },
    /**
       * 点击小轨调查的解决按钮
       */
    canEvent: function canEvent() {
      var that = this;
      that.showCan = true;
      (0, _mintUi.Toast)({
        message: '感谢您的反馈',
        duration: 1500
      });
    },
    /*
        * 打开建议弹窗
      */
    showWindow: function showWindow() {
      this.showWindowMask = true;
    },
    /*
        * 关闭建议弹窗
      */
    closeWindowMask: function closeWindowMask() {
      this.showWindowMask = false;
      this.imgSrc = [];
      this.myAdvise = '';
    },
    /*
        * 提交建议
      */
    submitEvent: function submitEvent() {
      var that = this;
      if (that.myAdvise == '') {
        that._Util.showMsgBox('请填写相关描述');
        return;
      }
      that._Util.post(that._Api.POST_FALT_CODE_USERFEEDBACK, {
        dataDescribe: that.myAdvise,
        dataType: 2,
        faultCodeUrl: that.imgSrc.join(','),
        faultType: 0,
        faultCode: that.keyWord
      }, function (data) {
        that.showWindowMask = false;
        that.imgSrc = [];
        that.myAdvise = '';
      }, function () {}, that);
    },
    /*
        * 图片上传
      */
    upload: function upload(e) {
      var that = this;
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var formData = new FormData();
        formData.append('file', file);
        formData.append('token', that.token);
        var url = '';
        if (that._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        _jquery.default.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          that.imgSrc.push(res.key);
        });
      }
    },
    /**
       * 浏览单张图片
       */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      var _this15 = this;
      event.preventDefault();
      var _imgUrl = this.bucketUrl + imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return _this15.bucketUrl + v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
       * 打开ecu弹窗
       */
    openPopup: function openPopup() {
      this.showPop = true;
    },
    /**
     * 选择分类或品牌
     */
    selectClassOrBrand: function selectClassOrBrand(name, type, index) {
      var _this16 = this;
      var animationFlag = false;
      this.typeList = [];
      if (type === 'class') {
        this.classificationTemp = this.classificationTemp === name ? null : name;
        this.brandTemp = null;
        animationFlag = !this.classificationTemp;
      } else if (type === 'brand') {
        this.brandTemp = this.brandTemp === name ? null : name;
        animationFlag = !this.brandTemp;
      }
      this.typeTemp = null;
      if (this.classificationTemp || !this.greyVersion) {
        var params = {
          keyword: this.faultKeyword,
          system: this.brandTemp === '全部' ? '' : this.brandTemp,
          property: this.typeTemp,
          moduleNames: this.classificationTemp,
          vehiDirTopNames: this.brandTemp,
          vehiDirBottomNames: this.typeTemp,
          type: this.type,
          pageNum: 1,
          pageSize: 10
        };
        this._Util.post(this._Api.POST_FAULT_SEARCH_NEW, params, function (data) {
          if (_this16.greyVersion) {
            if (type === 'class') {
              _this16.brandList = data.vehicelList || [];
              _this16.brandList.unshift('全部');
            } else if (type === 'brand') {
              _this16.typeList = data.vehicelList || [];
              _this16.typeList.unshift('全部');
            }
          } else {
            console.log(111);
            if (type === 'class') {
              _this16.brandList = [];
              if (data.modelVos && data.modelVos.length) {
                data.modelVos.forEach(function (item) {
                  _this16.brandList.push(item.name);
                });
                _this16.brandList.unshift('全部');
              }
            } else if (type === 'brand') {
              _this16.typeList = [];
              if (data.modelVos && data.modelVos.length) {
                data.modelVos.forEach(function (item) {
                  _this16.typeList.push(item.name);
                });
                _this16.typeList.unshift('全部');
              }
            }
          }
        }, function () {}, this);
      }
      // 选择分类和品牌，定位节点位置
      if (animationFlag) return;
      setTimeout(function () {
        var filterContainer = _this16.$refs.filterContainer;
        var titles = filterContainer.getElementsByClassName('content-title');
        var lists = filterContainer.getElementsByClassName('content-list');
        var eleHeight = titles[index].offsetTop + lists[index].offsetHeight;
        filterContainer.scrollTop = eleHeight - 40;
      }, 300);
    },
    /**
       * 选择型号
       */
    selectType: function selectType(name) {
      this.typeTemp = this.typeTemp === name ? null : name;
    },
    /**
       * 搜索品牌型号
       */
    confrimSelect: function confrimSelect() {
      if (!this.brandTemp && this.greyVersion) {
        (0, _mintUi.Toast)({
          message: '请选择ECU品牌',
          duration: 1500
        });
        return;
      }
      this.showPop = false;
      this.filterOptions = {
        classificationName: this.classificationTemp,
        brandName: this.brandTemp,
        typeName: this.typeTemp
      };
      if (this.nowFolderId == 10086) {
        this.mescroll.resetUpScroll();
      } else {
        this.filterFromAllTab = true;
        this.callSearch({
          parentClassId: 10086
        });
      }
    },
    /**
       * 展开合并项
       */
    expand: function expand(item, index) {
      this.currentIndex = index;
    },
    /**
       * 打开故障码详情
       * @param {Object} item 故障码信息
       * @param {Object} prantItem 故障码信息
       * @param {Number} pIndex 合并项列表索引
       * @param {Number} index 合并项的故障码列表索引
       */
    openFaultCodeDesc: function openFaultCodeDesc(item, prantItem, pIndex, index) {
      var _this17 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
        var num, queryStr, _url;
        return _regenerator.default.wrap(function (_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              // const result = await this._Util.judgePower({
              //   dataType: 'FAULT_CODE', // 对资料进行权限判断
              //   params: {
              //     eventType: 'DETAILS_DATA'
              //   }
              // }, this)
              // console.log('result: ', result)
              if (_this17.haveReadId && _this17.haveReadId.indexOf(item.fcsId) === -1) {
                _this17.haveReadId.push(item.fcsId);
                _this17.$set(item, 'haveRead', true);
              }
              if (_this17.nowFolderId == 10086) {
                _this17.saveDataAndPosition({
                  reasultList: _this17.reasultList,
                  currentIndex: _this17.currentIndex,
                  filterOptions: _this17.filterOptions,
                  haveReadId: _this17.haveReadId,
                  brandList: _this17.brandList,
                  searchSecond: _this17.searchSecond,
                  copyKeyWord: _this17.copyKeyWord,
                  meansTotal: _this17.meansTotal,
                  totalCount: _this17.totalCount,
                  userStatus: _this17.userStatus,
                  pageNum: _this17.mescroll.optUp.page.num,
                  randomNum: _this17.randomNum,
                  intelligentRecommend: _this17.intelligentRecommend,
                  typeList: _this17.typeList,
                  classificationList: _this17.classificationList,
                  greyVersion: _this17.greyVersion
                });
              } else {
                _this17.saveDataAndPosition({
                  meansList: _this17.meansList,
                  cardList: _this17.cardList,
                  testList: _this17.testList,
                  partInfoList: _this17.partInfoList,
                  faultCardInfo: _this17.faultCardInfo,
                  dictionaryList: _this17.dictionaryList,
                  brandList: _this17.brandList,
                  copyKeyWord: _this17.copyKeyWord,
                  meansTotal: _this17.meansTotal,
                  totalCount: _this17.totalCount,
                  userStatus: _this17.userStatus,
                  pageNum: _this17.mescroll.optUp.page.num,
                  randomNum: _this17.randomNum,
                  intelligentRecommend: _this17.intelligentRecommend,
                  typeList: _this17.typeList,
                  classificationList: _this17.classificationList,
                  greyVersion: _this17.greyVersion
                });
              }
              // 点击故障码
              num = 0;
              if (item.num || item.num === 0) {
                num = item.num;
              } else {
                num = prantItem && (prantItem.num || 0);
              }
              if (!(item.isNew === 0)) {
                _context7.next = 4;
                break;
              }
              queryStr = 'faultTag=' + item.property + '&keyWord=' + _this17.faultKeyword + '&detailId=' + item.sn + '&showAd=true' + '&filter=' + '&randomStr=' + _this17.randomStr + '&total=' + _this17.totalCount + '&page=' + _this17.mescroll.optUp.page.num + '&hlFlField=' + '&moduleType=20' + '&hlFl=';
              _url = location.origin + '/v2/business/pay/appSearchDetail?' + encodeURI(queryStr);
              if (!_this17._Util.isApp()) {
                _context7.next = 1;
                break;
              }
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'faultCodeDesc',
                  notGive: 1,
                  url: _url
                }
              });
              _context7.next = 3;
              break;
            case 1:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context7.next = 2;
                break;
              }
              _this17._Util.AddEventFmt100Url(_url);
              return _context7.abrupt("return");
            case 2:
              window.top.location.assign(_url);
            case 3:
              _context7.next = 7;
              break;
            case 4:
              sessionStorage.removeItem('visitTimes');
              sessionStorage.removeItem('ureaId');
              if (!_this17._Util.isApp()) {
                _context7.next = 5;
                break;
              }
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'faultCodeDesc',
                  notGive: 1,
                  url: "".concat(location.origin, "/v2/library/faultCode2/faultCodeDesc?fcsId=").concat(item.fcsId, "&sn=").concat(item.sn, "&pode=").concat(item.pcode, "&keyword=").concat(_this17.faultKeyword, "&vehiDirId=").concat(item.vehiDirId, "&from=newFaultSearch")
                }
              });
              _context7.next = 7;
              break;
            case 5:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context7.next = 6;
                break;
              }
              _this17._Util.AddEventFmt100Url("".concat(location.origin, "/v2/library/faultCode2/faultCodeDesc?fcsId=").concat(item.fcsId, "&sn=").concat(item.sn, "&pode=").concat(item.pcode, "&keyword=").concat(_this17.faultKeyword, "&vehiDirId=").concat(item.vehiDirId, "&from=newFaultSearch"));
              return _context7.abrupt("return");
            case 6:
              _this17.$router.push({
                name: 'faultCodeDesc',
                query: {
                  fcsId: item.fcsId,
                  sn: item.sn,
                  pode: item.pcode,
                  keyword: _this17.faultKeyword,
                  vehiDirId: item.vehiDirId,
                  from: 'newFaultSearch'
                }
              });
            case 7:
            case "end":
              return _context7.stop();
          }
        }, _callee7);
      }))();
    },
    /**
       * 获取故障码查询结果
       */
    getFaultList: function getFaultList(page) {
      var _this18 = this;
      this.searchParms.pageNum = page.num;
      var params = {
        system: this.filterOptions.brandName === '全部' ? '' : this.filterOptions.brandName,
        property: this.filterOptions.typeName === '全部' ? '' : this.filterOptions.typeName,
        moduleNames: this.filterOptions.classificationName,
        vehiDirTopNames: this.filterOptions.brandName,
        vehiDirBottomNames: this.filterOptions.typeName,
        type: this.type,
        pageNum: page.num,
        pageSize: page.size
      };
      if (this.$route.query.faultType === 'spn') {
        params.spnFmi = this.keyWord.trim();
      } else {
        params.keyword = this.keyWord.trim();
      }
      if (page.num === 1) {
        this.reasultList = [];
      }
      this.faultKeyword = this.copyKeyWord;
      this.oldKeyword = this.faultKeyword;
      this._Util.post(this._Api.POST_FAULT_SEARCH_NEW, params, function (data) {
        if (_this18.firstFilter) {
          // this.greyVersion = data.faultDescFlag + '' === 'null'
          _this18.greyVersion = false; //灰度这个字段先强制设为false，以后再看他这里是怎么确定灰度的
          if (_this18.greyVersion) {
            _this18.classificationList = data.vehicelList;
          } else {
            _this18.brandList = [];
            if (data.modelVos && data.modelVos.length) {
              data.modelVos.forEach(function (item) {
                _this18.brandList.push(item.name);
              });
            }
          }
          _this18.classificationTemp = null;
          _this18.brandTemp = null;
          _this18.typeTemp = null;
          _this18.firstFilter = false;
        }
        if (page.num === 1) {
          _this18.totalCount = data.pageVo.totalCount;
          _this18.logTotal = data.pageVo.totalCount;
          _this18.searchSecond = data.searchSecond;
        }
        var dataList = data.pageVo.dataList;
        _this18.reasultList = _this18.reasultList.concat(dataList);
        if (_this18.nowFolderId == 0) {
          var tempObj = {
            classifyName: '故障码',
            parentClassId: 10086,
            totalCount: data.pageVo.totalCount,
            modelVos: _this18.classificationList,
            shareBos: [],
            faultDescFlag: data.faultDescFlag
          };
          dataList.forEach(function (item, index) {
            tempObj.shareBos.push(_objectSpread({
              dataName: (item.pcode || '') + ' ' + (item.descCn || ''),
              id: 'fault' + index,
              parentClassId: 10086
            }, item));
          });
          _this18.faultCardInfo = tempObj;
        }
        if (_this18.reasultList.length === 0) {
          _this18.showNullTip = true;
        } else {
          _this18.showNullTip = false;
        }
        _this18.$nextTick(function () {
          _this18.mescroll.endSuccess(dataList.length);
        });
        _this18.searchKeywords2(page);
        _this18.searchKeywords1();
      }, function () {}, this);
    },
    /**
       * 记录数据和位置
       */
    saveDataAndPosition: function saveDataAndPosition(params) {
      var scrollTop = this.mescroll.getScrollTop();
      params.scrollTop = scrollTop;
      var position = params;
      sessionStorage.setItem('new_pageParams', JSON.stringify(position));
    },
    /**
       * 故障码查询意见反馈
       */
    feedBack: function feedBack() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=11e80dba&data=\u65B0\u6545\u969C\u7801\u67E5\u8BE2\u7ED3\u679C_").concat(this.faultKeyword);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
       * 智能推荐列表
       */
    searchKeyWordList: function searchKeyWordList() {
      var _this19 = this;
      this.intelligentRecommend = null;
      this._Util.post(this._Api.POST_SEARCH_KEYWORD_DETAIL, {
        keyword: this.keyWord
      }, function (data) {
        var sosoKeyWordImgTextVoList = data.sosoKeyWordImgTextVoList || [];
        var materialList = sosoKeyWordImgTextVoList.filter(function (item) {
          return item.type === 2;
        });
        var pathList = sosoKeyWordImgTextVoList.filter(function (item) {
          return item.type === 3;
        });
        var itemObj = sosoKeyWordImgTextVoList.find(function (item) {
          return item.type === 4;
        }) || {
          explanation: '',
          textContent: ''
        };
        var explanation = itemObj.explanation || '';
        var brArr = explanation.split('<br>');
        var textArr = brArr.filter(function (item) {
          return !item.includes('<img') && !item.includes('<video');
        }).map(function (item) {
          return item.replace(/<div>/g, '').replace(/<\/div>/g, '').replace(/<br>/g, '');
        }) || [];
        var explanationText = textArr.find(function (item) {
          return item.length > 0;
        }) || '';
        var imgUrl = '';
        if (explanation.indexOf('<img') !== -1) {
          var imgStr = explanation.match(/<img(.+?)>/g).toString();
          imgStr.match(/src="(.+?)"/g);
          imgUrl = RegExp.$1;
        }
        var list = materialList.concat(pathList);
        var isHavedDetail = itemObj.textContent || itemObj.explanation;
        if (explanationText.length === 0 && list.length === 0 && imgUrl.length === 0) return;
        _this19.intelligentRecommend = {
          isHavedDetail: isHavedDetail,
          title: _this19.keyWord,
          explanationText: explanationText,
          imgUrl: imgUrl,
          list: list
        };
      }, function () {}, this);
    },
    /**
       * 推荐图片预览
       */
    imagePreview: function imagePreview(img) {
      (0, _imagePreview.default)({
        images: [img]
      });
    },
    /**
       * 查看推荐详情
       */
    openUrl: function openUrl(item) {
      if (item.linkUrl && item.linkUrl !== '') {
        window.location.href = item.linkUrl;
      }
    },
    /**
       * 搜索结果翻页埋点
       */
    searchKeywords2: function searchKeywords2(page) {
      if (page.num > 1) {
        // this._Util.sensorsCollect('search_pageturning', {
        //   operation_page: '资料查询',
        //   keywords: this.keyWord,
        //   search_type: this.$route.query.title,
        //   libraryfile_amount: this.logTotal,
        //   search_id: this.randomNum,
        //   file_page: page.num,
        //   paging_num: page.size
        // })
      }
    },
    searchKeywords1: function searchKeywords1() {
      this.search_history_sort = '';
    }
  }
};__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(770);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(301);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49b0efd6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(887);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2092)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-49b0efd6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49b0efd6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_49b0efd6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultCrad_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2093);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e40079d6", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".result-crad[data-v-49b0efd6]{border-radius:.4rem}.result-crad .bdb[data-v-49b0efd6]{border-bottom:1px solid #eee}.result-crad .tit[data-v-49b0efd6]{padding:.6rem;color:#333;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.result-crad .tit .left[data-v-49b0efd6]{font:700 18px/1.25rem PingFangSC-Semibold}.result-crad>ul li[data-v-49b0efd6]{padding:1rem .6rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff;margin-top:.4rem;border-radius:.4rem}.result-crad>ul li.detail-item[data-v-49b0efd6]{padding:0}.result-crad>ul li[data-v-49b0efd6]:first-child{border:none;margin:0}.result-crad>ul li .text[data-v-49b0efd6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.result-crad>ul li .text>span[data-v-49b0efd6]{color:#333;font:18px/1.25rem PingFangSC-Regular;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.result-crad>ul li .fault-des[data-v-49b0efd6]{margin-top:.2rem;color:#999;font:15px/1rem PingFangSC-Regular}.result-crad>ul li .collect[data-v-49b0efd6]{width:1.4rem;height:1.7rem;border-radius:.2rem;background:url(" + escape(__webpack_require__(204)) + ") no-repeat;background-size:100% 100%}.result-crad>ul li .collect.collected[data-v-49b0efd6]{background:url(" + escape(__webpack_require__(205)) + ") no-repeat}.result-crad .more[data-v-49b0efd6]{margin-top:.2rem;height:1.8rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#ff6c37;font:14px/1rem PingFangSC-Regular}.result-crad .more i[data-v-49b0efd6]{margin-left:.4rem;width:.3rem;height:.5rem;background:url(" + escape(__webpack_require__(57)) + ") no-repeat;background-size:100% 100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
var _partDetail = _interopRequireDefault(__webpack_require__(817));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(172));
var _testDataDetail = _interopRequireDefault(__webpack_require__(279));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  components: {
    PartDetail: _partDetail.default,
    TestDataDetail: _testDataDetail.default
  },
  props: {
    isNewGray: {
      type: Number,
      default: 0
    },
    cardObj: {
      default: function _default() {
        return {};
      },
      require: true,
      type: Object
    },
    randomNum: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp(),
      getCardcontent: null,
      isProps: JSON.stringify(this.cardcontent) !== '{}'
    };
  },
  watch: {
    cardObj: function cardObj(nval, oval) {
      this.getDetailFn(nval);
    }
  },
  mounted: function mounted() {
    this.getDetailFn(this.cardObj);
  },
  methods: {
    /**
      * 获取部件信息或者测试数据详情的方法
      * @param {Object} item 点击的每一条需要收藏的数据
    */
    getDetailFn: function getDetailFn(item) {
      var _this = this;
      if (item.parentClassId === 10087) {
        var tempArr = item.shareBos.slice(0, 3);
        console.log('this.isNewGray', this.isNewGray);
        var url = this.isNewGray === 1 ? 'POST_PARTS_INFO_DETAIL_OPEN_SEARCH' : 'POST_PARTS_INFO_GET';
        tempArr.forEach(function (_item) {
          if (_item.isShowDetail) {
            _this._Util.post(_this._Api[url], {
              refNo: _item.code
            }, function (data) {
              if (!data.length) {
                _this._Util.showMsgBox('小轨没有查到关键信息');
                return;
              }
              _item.detailResult = {
                source: data,
                attrItems: _partsTableConfig.default
              };
            }, function () {}, _this);
          }
        });
      }
    },
    /**
      * 唤起父组件打开资料详情的方法
      * @param {Object} item 点击的每一条需要收藏的数据
    */
    emitMeansDetail: function emitMeansDetail(item, index) {
      if (item.isShowDetail) {
        return;
      }
      this.$set(item, 'indexNum', index + '');
      this.$emit('callMeansFn', item);
    },
    /**
      * 查看更多，跳转到对应的tab
      * @param {Object} item 点击的每一条需要收藏的数据
    */
    clickMore: function clickMore() {
      this.$emit('parentSearch', this.cardObj);
    },
    /**
     * 获取用户状态
     */
    getUserStatus: function getUserStatus() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this2);
      });
    },
    /**
      * 收藏的方法
      * @param {Object} item 点击的每一条需要收藏的数据
    */
    collectFn: function collectFn(item, index) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userData, collectParams;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this3.getUserStatus();
            case 1:
              userData = _context.sent;
              if (!(userData.userStatus !== 2)) {
                _context.next = 2;
                break;
              }
              _this3._Util.showMsgBoxConfirm('对不起，只有付费会员才能查看。您还未付费，请您先完成付费', function (action) {
                if (action) {
                  window.location.href = '/v2/business/pay/certificationRenewal?fullPath=' + _this3.$route.fullPath;
                }
              });
              return _context.abrupt("return");
            case 2:
              if (!item.favId) {
                collectParams = {
                  favId: item.favId,
                  moduleType: item.moduleType,
                  queryValue: item.id
                };
                if (item.shareId && item.parentClassId) {
                  collectParams.objId = item.shareId;
                }
                if (item.parentClassId) {
                  // 只有资料才有parentClassId
                  collectParams.sourceType = item.parentClassId;
                }
                if (item.sn && !item.parentClassId) {
                  // 部件信息和测试信息收藏时的参数
                  collectParams.objId = item.sn;
                }
                if (item.testCode) {
                  // 测试信息收藏时还需要带入code
                  collectParams.requestValue = item.testCode;
                }
                _this3._Util.showMsgBoxConfirm('是否对该资料进行收藏？', function (action) {
                  if (action) {
                    _this3._Util.post(_this3._Api.POST_COLLECTION_SAVE, collectParams, function (data) {
                      (0, _mintUi.Toast)({
                        message: '收藏成功',
                        duration: 1500
                      });
                      item.favId = data.id;
                    }, function () {}, _this3, true);
                  }
                });
              } else {
                _this3._Util.showMsgBoxConfirm('是否取消收藏？', function (action) {
                  if (action) {
                    _this3._Util.post(_this3._Api.POST_COLLECTION_CANCEL, {
                      id: item.favId
                    }, function () {
                      item.favId = null;
                      (0, _mintUi.Toast)({
                        message: '取消成功',
                        duration: 1500
                      });
                    }, function () {}, _this3, false);
                  }
                }, {
                  confirmButtonText: '是',
                  cancelButtonText: '否'
                });
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(302);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1f013886_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(886);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2094)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1f013886"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1f013886_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1f013886_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_partDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2095);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e240b1b0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".part-detail[data-v-1f013886]{height:100%;width:100%;position:relative;z-index:9}.part-detail .title[data-v-1f013886]{background:#f6f6f6;height:2.75rem;color:#333;font:16px/2.75rem PingFangSC-Regular;text-align:center;border-radius:.6rem .6rem 0 0;border-bottom:1px solid #eee;position:relative}.part-detail .title b[data-v-1f013886]{font-family:PingFangSC-Semibold}.part-detail .title span[data-v-1f013886]{position:absolute;top:0;right:0;height:100%;font-size:14px;color:#666;padding:0 .6rem;font-family:PingFangSC-Regular}.part-detail .wrap-detail[data-v-1f013886]{-ms-touch-action:auto;touch-action:auto;height:-webkit-calc(100% - 5.95rem);height:calc(100% - 5.95rem);overflow-y:scroll;box-sizing:border-box;-webkit-box-sizing:border-box}.part-detail .wrap-detail.one-more[data-v-1f013886]{background:#f5f5f5}.part-detail .wrap-detail .innerBox[data-v-1f013886]{position:relative;margin:.8rem .6rem}.part-detail .wrap-detail .symask-new[data-v-1f013886]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:auto!important;background:url(" + escape(__webpack_require__(1375)) + ") 50% repeat;z-index:999;opacity:.6;pointer-events:none}.part-detail .wrap-detail ul[data-v-1f013886]{background:#fff;-ms-touch-action:auto;touch-action:auto;margin-top:.4rem}.part-detail .wrap-detail ul.ul-more[data-v-1f013886]{border-radius:.4rem;padding:.4rem}.part-detail .wrap-detail ul .part-item:first-child>div[data-v-1f013886]{margin-top:0!important}.part-detail .wrap-detail ul .part-item>div[data-v-1f013886]{position:relative;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.part-detail .wrap-detail ul .part-item>div.first-child[data-v-1f013886]{padding:0 0 .6rem;border-bottom:1px solid #eee}.part-detail .wrap-detail ul .part-item>div.first-child .name[data-v-1f013886]{color:#333;font-weight:700}.part-detail .wrap-detail ul .part-item>div.first-child .code[data-v-1f013886]{font-weight:700}.part-detail .wrap-detail ul .part-item>div .name[data-v-1f013886]{width:35%;margin-right:2%;color:#666;font:16px/1.1rem PingFangSC-Regular}.part-detail .wrap-detail ul .part-item>div .code[data-v-1f013886]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:16px/1.1rem PingFangSC-Regular}.part-detail .wrap-detail ul .part-item>div .collect2[data-v-1f013886]{position:absolute;top:0;right:0;width:1.4rem;height:1.6rem;border-radius:.2rem;background:url(" + escape(__webpack_require__(204)) + ") no-repeat;background-size:100% 100%}.part-detail .wrap-detail ul .part-item>div .collect2.collected2[data-v-1f013886]{background:url(" + escape(__webpack_require__(205)) + ") no-repeat}.part-detail .wrap-detail ul .ul-bottom[data-v-1f013886]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:1.8rem;margin-bottom:-.4rem;font-size:.7rem;color:#177afa;border-top:1px solid #eee}.part-detail .wrap-detail ul .ul-bottom .link-icon[data-v-1f013886]{display:inline-block;width:.3rem;height:.5rem;margin-left:.2rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.part-detail .online-que[data-v-1f013886]{border-top:1px solid #eee;height:1.8rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.part-detail .online-que span[data-v-1f013886]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:inherit;line-height:1.8rem;color:#999;border-right:1px solid #eee;font:14px/1rem PingFangSC-Regular}.part-detail .online-que span[data-v-1f013886]:last-child{border:none}.part-detail .online-que i[data-v-1f013886]{margin-left:.4rem;width:.3rem;height:.5rem;background:url(" + escape(__webpack_require__(57)) + ") no-repeat;background-size:100% 100%}.part-detail .que-collect[data-v-1f013886]{border-top:1px solid #eee;position:absolute;width:100%;padding:.35rem .8rem;bottom:0;left:0;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.part-detail .que-collect .collect[data-v-1f013886]{height:2.5rem;width:6rem;margin-right:.8rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:#f5f5f5;border-radius:.3rem}.part-detail .que-collect .collect i[data-v-1f013886]{margin-right:.4rem;width:.8rem;height:.8rem;background:url(" + escape(__webpack_require__(1376)) + ") no-repeat;background-size:100% 100%}.part-detail .que-collect .collect.collected[data-v-1f013886]{color:#ff6c1a}.part-detail .que-collect .collect.collected i[data-v-1f013886]{background:url(" + escape(__webpack_require__(1377)) + ") no-repeat;background-size:100% 100%}.part-detail .que-collect span[data-v-1f013886]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.5rem;background:#177afa;color:#fff;border-radius:.3rem;font:18px/2.5rem PingFangSC-Regular;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
__webpack_require__(29);
var _DataTips = _interopRequireDefault(__webpack_require__(787));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import { Toast } from 'mint-ui'
// import PokingMeComponent from "../../../components/common/pokingMeComponent"
// import fmsComponent from "../../../components/common/fmsComponent"
var _default2 = exports.default = {
  components: {
    DataTips: _DataTips.default
  },
  props: {
    result: {
      default: function _default() {
        return {};
      },
      require: true,
      type: Object
    },
    parent: {
      // 组件出现在哪个父级
      default: function _default() {
        return '';
      },
      require: true,
      type: String
    },
    isPop: {
      // 是否是以弹窗显示 1，是  0，否
      default: function _default() {
        return 0;
      },
      require: true,
      type: Number
    },
    randomNum: {
      type: String,
      default: ''
    },
    refNo: {
      type: String,
      default: ''
    },
    queryKey: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      mescroll: null
    };
  },
  mounted: function mounted() {},
  methods: {
    /**
      * 关闭详情弹窗
    */
    closeCompent: function closeCompent() {
      this.$emit('closeFn');
    },
    rewriteHtml: function rewriteHtml(solrType, attrName, str) {
      if (!str) return;
      var temp = '';
      if (solrType == 'Product' && attrName == 'ohk') {
        temp = '<a class="aClass">' + str + '</a>';
      } else {
        if (this.keyword) {
          temp = str.replace(new RegExp(this.keyword, 'g'), '<font color="red">' + this.keyword + '</font>').replace(/\n/g, '<br>');
        } else {
          temp = str.replace(/\n/g, '<br>');
        }
      }
      return temp;
    },
    /**
      * 收藏事件
      * @param {Object} item 收藏的具体数据
    */
    collectFn: function collectFn(item, index) {
      // console.log(item)
      this._Util.sensorsCollect('collect_file', {
        operation_page: '资料查询',
        filter_type: this.$route.query.title,
        filter_name: this.$route.query.title,
        file_type: this.$route.query.title,
        file_id: item.shareId,
        file_name: this.result.attrItems[this.result.source[0].solrType][0].pageTitle,
        file_sort: index,
        file_page: 1,
        file_page_sort: (index + 1) % 1000,
        search_id: this.randomNum
      });
      this.$emit('parentCollect', item);
    },
    /**
     * 获取用户状态
     */
    getUserStatus: function getUserStatus() {
      var _this = this;
      return new Promise(function (resolve, reject) {
        _this._Util.post(_this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this);
      });
    },
    /**
     * 跳转极速问答提问页
     */
    toVipQue: function toVipQue() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var _url, _keyword, prefix;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _url = window.location.href;
              _keyword = _this2.$route.query.keyword;
              prefix = 'keyword=';
              _url = _url.replace(prefix + _keyword, prefix + _this2.refNo);
              localStorage.setItem('qa_data', JSON.stringify({
                sourceType: 3,
                sourceNo: "".concat(_this2.refNo, ",").concat(_this2.queryKey),
                sourceUrl: _url
              }));
              if (_this2._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'putQuestion',
                    url: "".concat(location.origin, "/v2/shopping/putQuestion")
                  }
                });
              } else {
                location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
              }
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
      * 获取在线问答列表(status: 5未解决)
    */
    getConList: function getConList(type) {
      var that = this;
      return new Promise(function (resolve, reject) {
        that._Util.post(that._Api.CARREPAIR.POST_GET_NEW_SEARCHPAGE, {
          status: 5
        }, function (res) {
          if (res) {
            var noDealedList = res.bolist;
            noDealedList.sort(function (a, b) {
              return a.createTime > b.createTime ? -1 : 1;
            });
            resolve(noDealedList);
          }
        }, function () {
          reject();
        }, that);
      });
    },
    /**
      * 获取已解决问题列表
    */
    getDealed: function getDealed() {
      var that = this;
      return new Promise(function (resolve, reject) {
        that._Util.post(that._Api.CARREPAIR.POST_GET_SEARCHPAGE, {
          status: 1,
          pageModel: {
            currentPage: 1,
            pageSize: 20
          }
        }, function (data) {
          if (data && data.bolist) {
            var dealedList = data.bolist;
            resolve(dealedList);
          }
        }, function () {
          reject();
        }, that);
      });
    },
    searchEc: function searchEc(skipValue) {
      window.location.href = this._Api.HOSTRESOURCEPATH + '/v2/business/pay/appSearchResultNew?folderid=20171212&index=1&title=%E7%94%B5%E8%B7%AF%E5%9B%BE&keyword=' + skipValue + '&searchFrom=10087';
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"part-detail"},[(_vm.isPop === 1)?_c('div',{staticClass:"title",style:({'background': (_vm.result.source && _vm.result.source.length) > 1 ? '#fff': 'f6f6f6'})},[_c('b',[_vm._v(_vm._s(_vm.result.attrItems[_vm.result.source[0].solrType][0].pageTitle))]),_vm._v(" "),_c('span',{on:{"click":_vm.closeCompent}},[_vm._v("关闭")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"wrap-detail mescroll-touch",class:{'one-more': (_vm.result.source && _vm.result.source.length) > 1}},[_c('div',{staticStyle:{"min-height":"calc(100% - 5rem)"}},[_c('div',{staticClass:"innerBox"},[_c('div',{staticClass:"symask-new"}),_vm._v(" "),_vm._l((_vm.result.source),function(o,index){return _c('ul',{key:index,class:{'ul-more': (_vm.result.source && _vm.result.source.length) > 1},style:({'margin-top': index === 0 ? 0 : '0.4rem'})},[_vm._l((_vm.result.attrItems[o.solrType]),function(v,vIndex){return _c('li',{key:vIndex,staticClass:"part-item"},[(o[v.name])?_c('div',{class:{'first-child': vIndex === 0 && ((_vm.result.source && _vm.result.source.length) > 1)},style:({'margin-top': o[v.name] ? '0.4rem': 0})},[_c('div',{staticClass:"name"},[_vm._v(_vm._s(v.title)+":")]),_vm._v(" "),_c('div',{staticClass:"code",domProps:{"innerHTML":_vm._s(_vm.rewriteHtml(o.solrType, v.name, o[v.name], o))}})]):_vm._e()])}),_vm._v(" "),(o.skipValue && _vm.isPop === 1)?_c('li',{staticClass:"ul-bottom",on:{"click":function($event){return _vm.searchEc(o.skipValue)}}},[_vm._v("查看电路图"),_c('i',{staticClass:"link-icon"})]):_vm._e()],2)})],2)]),_vm._v(" "),_c('DataTips',{attrs:{"is-bg":_vm.isPop === 1}})],1),_vm._v(" "),(_vm.isPop === 0)?_c('div',{staticClass:"online-que"},[_c('span',{on:{"click":_vm.toVipQue}},[_vm._v("去提问"),_c('i')]),(_vm.result.source && _vm.result.source.length === 1 && _vm.result.source[0].skipValue)?_c('span',{on:{"click":function($event){return _vm.searchEc(_vm.result.source[0].skipValue)}}},[_vm._v("查看电路图"),_c('i')]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.isPop === 1)?_c('div',{staticClass:"que-collect",on:{"click":_vm.toVipQue}},[_c('span',[_vm._v("去提问")])]):_vm._e()])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"result-crad"},[_c('div',{staticClass:"tit",class:{'bdb': _vm.cardObj.faultDescFlag !== 1 || !_vm.cardObj.faultDescFlag}},[_c('div',{staticClass:"left"},[_vm._v(_vm._s(_vm.cardObj.classifyName))]),_vm._v(" "),(_vm.cardObj.faultDescFlag === 1)?_c('div',{staticClass:"more",on:{"click":function($event){$event.stopPropagation();return _vm.clickMore.apply(null, arguments)}}},[_vm._v("有 "+_vm._s(_vm.cardObj.totalCount)+" 条相关"+_vm._s(_vm.cardObj.classifyName)),_c('i')]):_vm._e()]),_vm._v(" "),_c('ul',_vm._l((_vm.cardObj.shareBos.slice(0, 3)),function(item1,index){return (_vm.cardObj.faultDescFlag !== 1 || !_vm.cardObj.faultDescFlag)?_c('li',{key:item1.id,class:{'detail-item': item1.isShowDetail},on:{"click":function($event){return _vm.emitMeansDetail(item1, index)}}},[(!item1.isShowDetail)?_c('div',{staticClass:"text"},[_c('span',{domProps:{"innerHTML":_vm._s(item1.dataName)}}),_vm._v(" "),(_vm.cardObj.parentClassId == 10086)?_c('div',{staticClass:"fault-des"},[_c('span',[_vm._v(_vm._s(item1.system))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item1.property))])]):_vm._e()]):_vm._e(),_vm._v(" "),(item1.isShowDetail && _vm.cardObj.parentClassId == 10087)?_c('Part-detail',{attrs:{"result":item1.detailResult,"parent":"10087","is-pop":0,"random-num":_vm.randomNum},on:{"parentCollect":_vm.collectFn}}):_vm._e(),_vm._v(" "),(item1.isShowDetail && _vm.cardObj.parentClassId == 10088)?_c('Test-data-detail',{attrs:{"test-code":item1.code,"random-num":_vm.randomNum,"is-pop":0,"parent":"10088","is-new-gray":_vm.isNewGray},on:{"parentCollect":_vm.collectFn}}):_vm._e()],1):_vm._e()}),0),_vm._v(" "),(_vm.cardObj.totalCount > 3 && (_vm.cardObj.faultDescFlag !== 1 || !_vm.cardObj.faultDescFlag))?_c('div',{staticClass:"more bdt",on:{"click":function($event){$event.stopPropagation();return _vm.clickMore.apply(null, arguments)}}},[_vm._v("\n    点击查看更多"),_c('i')]):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(303);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7889202c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(888);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2096)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7889202c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7889202c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7889202c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_intelligent_match_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2097);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5b1fc550", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".intelligent-view[data-v-7889202c]{width:100%;background:#fff9f7;border-radius:.4rem;border:1px solid #ff6c1a;overflow:hidden;padding:.8rem .6rem}.intelligent-view .top-view[data-v-7889202c]{height:3rem;width:100%;border-bottom:1px solid #eee}.intelligent-view .top-view .title-view[data-v-7889202c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.intelligent-view .top-view .title-view .tit[data-v-7889202c]{height:1.4rem;font-size:1rem;font-weight:600;color:#333;line-height:1.4rem}.intelligent-view .top-view .title-view .detail[data-v-7889202c]{font-size:.7rem;font-weight:400;color:#999}.intelligent-view .top-view .title-view .detail .link-icon[data-v-7889202c]{display:inline-block;width:.3rem;height:.5rem;margin-left:.2rem;background-image:url(" + escape(__webpack_require__(57)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.intelligent-view .top-view .sub-title[data-v-7889202c]{margin-top:.2rem;height:.825rem;font-size:.6rem;font-weight:400;color:#999;line-height:.825rem}.intelligent-view .cover-img[data-v-7889202c]{width:100%;height:auto;border-radius:.4rem;margin-bottom:.6rem}.intelligent-view .cont[data-v-7889202c]{font-size:.8rem;font-weight:400;color:#333;line-height:1.125rem}.intelligent-view .cell[data-v-7889202c]{width:100%;min-height:2.2rem;background-color:#f5f5f5;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.7rem;color:#333;border-radius:.4rem;padding:.6rem;margin-bottom:.4rem}.intelligent-view .first-cell[data-v-7889202c]{margin-top:1rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'IntelligentMatch',
  components: {},
  props: {
    randomNum: {
      type: [String, Number],
      default: ''
    },
    intelligentRecommend: {
      type: Object,
      default: function _default() {
        return {
          isHavedDetail: true,
          title: '',
          explanationText: '',
          imgUrl: '',
          list: []
        };
      }
    }
  },
  data: function data() {
    return {};
  },
  computed: {
    contText: function contText() {
      var explanationText = this.intelligentRecommend.explanationText;
      if (!explanationText) return '';
      if (explanationText.length > 100) return explanationText.substring(0, 100) + '...';
      return explanationText;
    }
  },
  watch: {},
  created: function created() {},
  mounted: function mounted() {},
  methods: {
    /**
     * 去智能推荐详情
     */
    goToDetail: function goToDetail() {
      if (!this.intelligentRecommend.isHavedDetail) return;
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'faultCodeDesc',
            notGive: 1,
            url: "".concat(location.origin, "/v2/business/pay/intelligentMatchDetail?keyword=").concat(this.intelligentRecommend.title, "&randomNum=").concat(this.randomNum)
          }
        });
        return;
      }
      var vehicledictionary_path = location.origin + "/v2/business/pay/intelligentMatchDetail?keyword=".concat(this.intelligentRecommend.title, "&randomNum=").concat(this.randomNum);
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: '资料查询-全部',
        vehicledictionary_path: vehicledictionary_path,
        filter_type: '智能匹配卡片查看详情',
        filter_name: this.intelligentRecommend.title,
        file_id: '',
        file_name: '',
        file_sort: '',
        file_page: 1,
        file_page_sort: '',
        search_id: this.randomNum
      });
      this.$router.push({
        name: 'intelligentMatchDetail',
        query: {
          keyword: this.intelligentRecommend.title,
          randomNum: this.randomNum
        }
      });
    },
    /**
     * 打开页面
     */
    openFile: function openFile(item, idx) {
      var url = item.linkUrl;
      if (!url) {
        this.toMeansDetail(item, idx);
        return;
      }
      this.sensorsCollect(item, idx, url, '智能匹配卡片路径');
      this._Util.publicOpenPage({
        url: url,
        appName: 'intelligentMatch'
      });
    },
    /**
     * 神策埋点
     */
    sensorsCollect: function sensorsCollect(item, indexNew, url) {
      var filter_type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '智能匹配卡片资料';
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: '资料查询-全部',
        vehicledictionary_path: url,
        filter_type: filter_type,
        filter_name: this.intelligentRecommend.title,
        file_id: item.dataId,
        file_name: item.dataName,
        file_sort: indexNew,
        file_page: 1,
        file_page_sort: (indexNew + 1) % 20,
        search_id: this.randomNum
      });
    },
    /**
     * 打开资料
     */
    toMeansDetail: function toMeansDetail(item, indexNew) {
      var _this = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var result, appToken;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this);
            case 1:
              result = _context.sent;
              console.log(result);
              if (!(item.fileType.toUpperCase() == 'PDF')) {
                _context.next = 5;
                break;
              }
              _this.sensorsCollect(item, indexNew, _this._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
              if (!_this._Util.isApp()) {
                _context.next = 2;
                break;
              }
              appToken = localStorage.getItem('app-token') || '';
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'pdf' + item.fileNo,
                  url: _this._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
                }
              });
              _context.next = 4;
              break;
            case 2:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context.next = 3;
                break;
              }
              _this._Util.AddEventFmt100Url(_this._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
              return _context.abrupt("return");
            case 3:
              window.location.href = _this._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
            case 4:
              _context.next = 6;
              break;
            case 5:
              if (new RegExp(item.fileType.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
                _this._Util.post(_this._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo
                }, function (data) {
                  _this.sensorsCollect(item, indexNew, data.fileUrl);

                  // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                  if (localStorage.getItem('isFromMft100') === '1') {
                    _this._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                    return;
                  }
                  _this.$router.push({
                    name: 'video',
                    query: {
                      share: data.fileUrl
                    }
                  });
                }, function () {}, _this);
              } else {
                _this._Util.post(_this._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo,
                  pageNum: 1,
                  pageSize: 3
                }, function (data) {
                  if (data.displayType == 1) {
                    if (item.fileType.toUpperCase() == 'JPG' || item.fileType.toUpperCase() == 'PNG') {
                      var url = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(item.dataName, "&count=1&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                      _this.sensorsCollect(item, indexNew, url);
                      if (_this._Util.isApp()) {
                        api.sendEvent({
                          name: 'acOpenNewFrm',
                          extra: {
                            name: 'picList',
                            url: url
                          }
                        });
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this._Util.AddEventFmt100Url(url);
                          return;
                        }
                        _this.$router.push({
                          name: 'picList',
                          query: {
                            isScale: 1,
                            title: item.dataName.replace(/red/g, '#666'),
                            count: 1,
                            pageNum: 1,
                            pageSize: 3,
                            type: 1,
                            fromPage: 'soso',
                            fileNo: item.fileNo
                          }
                        });
                      }
                    } else {
                      _this.sensorsCollect(item, indexNew, item.fileType == '微信图文' ? data.fileUrl + '?/' : data.fileUrl);
                      if (item.fileType == '微信图文') {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this._Util.AddEventFmt100Url(data.fileUrl + '?/');
                          return;
                        }
                        location.href = data.fileUrl + '?/';
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this._Util.AddEventFmt100Url(data.fileUrl);
                          return;
                        }
                        location.href = data.fileUrl;
                      }
                    }
                  } else {
                    var _url = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(data.atlasName, "&count=").concat(data.reCount, "&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                    _this.sensorsCollect(item, indexNew, _url);
                    if (_this._Util.isApp()) {
                      api.sendEvent({
                        name: 'acOpenNewFrm',
                        extra: {
                          name: 'picList',
                          url: _url
                        }
                      });
                    } else {
                      // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                      if (localStorage.getItem('isFromMft100') === '1') {
                        _this._Util.AddEventFmt100Url(_url);
                        return;
                      }
                      _this.$router.push({
                        name: 'picList',
                        query: {
                          isScale: 1,
                          title: data.atlasName,
                          count: data.reCount,
                          pageNum: 1,
                          pageSize: 3,
                          type: 1,
                          fileNo: item.fileNo,
                          fromPage: 'soso'
                        }
                      });
                    }
                  }
                }, function () {}, _this);
              }
            case 6:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"intelligent-view"},[_c('div',{on:{"click":_vm.goToDetail}},[_c('div',{staticClass:"top-view"},[_c('div',{staticClass:"title-view"},[_c('span',{staticClass:"tit"},[_vm._v(_vm._s(_vm.intelligentRecommend.title))]),_vm._v(" "),(_vm.intelligentRecommend.explanationText.length > 100)?_c('span',{staticClass:"detail"},[_vm._v("\n          查看详情\n          "),_c('i',{staticClass:"link-icon"})]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"sub-title"},[_vm._v("通过智能算法为您推荐")])]),_vm._v(" "),(_vm.intelligentRecommend.imgUrl)?_c('img',{staticClass:"cover-img",attrs:{"src":_vm.intelligentRecommend.imgUrl}}):_vm._e(),_vm._v(" "),(_vm.contText)?_c('div',{staticClass:"cont"},[_vm._v(_vm._s(_vm.contText))]):_vm._e()]),_vm._v(" "),_vm._l((_vm.intelligentRecommend.list),function(item,idx){return _c('div',{key:item.linkUrl,class:['cell', { 'first-cell': idx === 0 }],on:{"click":function($event){return _vm.openFile(item, idx)}}},[_vm._v("\n    "+_vm._s(item.dataName)+"\n  ")])})],2)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"soso-new"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showtabPan),expression:"showtabPan"}],staticClass:"tab-pan",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showtabPan = false}}},[_c('div',{staticClass:"list-box"},[_c('p',[_vm._v("请选择资料类型")]),_vm._v(" "),_c('ul',{staticClass:"clearfix"},[_vm._l((_vm.tabList),function(item){return [(item.isShow)?_c('li',{key:item.id,class:{'selected': _vm.nowFolderId == item.folderId},on:{"click":function($event){return _vm.searchFn('tab', item, 'tabpan')}}},[_vm._v(_vm._s(item.title))]):_vm._e()]})],2)])]),_vm._v(" "),_c('div',{staticClass:"input_box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyWord),expression:"keyWord",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],class:{'input-animate': _vm.isFocus || _vm.keyWord},attrs:{"type":"text","placeholder":"请输入搜索内容"},domProps:{"value":(_vm.keyWord)},on:{"focus":function($event){_vm.isFocus = true},"blur":[_vm.inputBlur,function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value.trim()}}}),_vm._v(" "),_c('button',{class:{'animate': _vm.isFocus || _vm.keyWord},on:{"click":function($event){return _vm.searchFn('btn')}}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{ref:"mescroll",staticClass:"result-box mescroll",class:{'fault-result-box': _vm.nowFolderId == 10086}},[_c('div',{staticClass:"searchInBox",style:(_vm.minHeight)},[(_vm.nowFolderId == 0 && _vm.intelligentRecommend)?_c('intelligent-match',{attrs:{"intelligent-recommend":_vm.intelligentRecommend,"random-num":_vm.randomNum}}):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 0)?_vm._l((_vm.dictionaryList),function(item,ind){return _c('div',{key:ind + 10000,staticClass:"dictionary",style:({'margin-bottom': ind === _vm.dictionaryList.length - 1 ? '0.5rem' : '0'}),on:{"click":function($event){return _vm.toDicDetail(item, ind)}}},[_c('img',{attrs:{"src":item.imgUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v(_vm._s(item.pathName))]),_vm._v(" "),_c('i',{staticClass:"arror"})])}):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 0)?[(_vm.faultCardInfo.shareBos && _vm.faultCardInfo.shareBos.length)?_c('div',{staticClass:"crad-box"},[_c('Result-crad',{attrs:{"random-num":_vm.randomNum,"card-obj":_vm.faultCardInfo,"is-new-gray":_vm.isNewGray},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1):_vm._e(),_vm._v(" "),(_vm.faultCardInfo.modelVos && _vm.faultCardInfo.modelVos.length && _vm.faultCardInfo.faultDescFlag === 0)?_c('div',{staticClass:"dictionary",on:{"click":_vm.openPopup}},[_c('img',{attrs:{"src":__webpack_require__(1459),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v("按ECU型号查询故障码")]),_vm._v(" "),_c('i',{staticClass:"arror"})]):_vm._e(),_vm._v(" "),(_vm.partCardInfo.shareBos && _vm.partCardInfo.shareBos.length)?_c('div',{staticClass:"crad-box"},[_c('Result-crad',{attrs:{"is-new-gray":_vm.isNewGray,"random-num":_vm.randomNum,"card-obj":_vm.partCardInfo},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1):_vm._e(),_vm._v(" "),(_vm.testCradInfo.shareBos && _vm.testCradInfo.shareBos.length)?_c('div',{staticClass:"crad-box"},[_c('Result-crad',{attrs:{"is-new-gray":_vm.isNewGray,"random-num":_vm.randomNum,"card-obj":_vm.testCradInfo},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1):_vm._e(),_vm._v(" "),_vm._l((_vm.cardList),function(item,index){return _c('div',{key:index,staticClass:"crad-box"},[_c('Result-crad',{attrs:{"is-new-gray":_vm.isNewGray,"random-num":_vm.randomNum,"card-obj":item},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1)})]:_vm._e(),_vm._v(" "),(_vm.nowFolderId != 10087 && _vm.nowFolderId != 10088)?_c('ul',{staticClass:"meansList-box",style:({'margin-top': _vm.nowFolderId == 0 ? '0.5rem' : 0}),attrs:{"id":"listContainer"}},_vm._l((_vm.meansList),function(item,index){return _c('li',{key:item.id,staticClass:"meansList",on:{"click":function($event){return _vm.toMeansDetail(item, index)}}},[_c('div',{staticClass:"text",domProps:{"innerHTML":_vm._s(item.dataName)}},[_vm._v(_vm._s(item.dataName))])])}),0):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10087 || _vm.nowFolderId == 10088)?_c('ul',{staticClass:"meansList-box",attrs:{"id":"listContainer"}},_vm._l(((_vm.nowFolderId == 10087 ? _vm.partInfoList: _vm.testList)),function(item,index){return _c('li',{key:index,staticClass:"meansList",class:{'meanDetail': item.isShowDetail}},[(!item.isShowDetail)?_c('div',{staticClass:"text",on:{"click":function($event){return _vm.openPartTestDetail(item, index)}}},[_vm._v(_vm._s(item.name)+": "+_vm._s(item.code))]):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10087 && item.isShowDetail)?_c('div',{staticClass:"detail"},[(item.isShowDetail)?_c('Part-detail',{attrs:{"result":_vm.detailResult,"random-num":_vm.randomNum,"module-type":_vm._Enums.COLLECTION_MODULE.PARTS,"parent":"10087","is-pop":0,"ref-no":_vm.refNo,"query-key":_vm.queryKey},on:{"parentCollect":_vm.collectFn}}):_vm._e()],1):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10088 && item.isShowDetail)?_c('div',{staticClass:"detail"},[(true)?_c('Test-data-detail',{attrs:{"test-code":item.code,"is-pop":0,"parent":"10088","index":index,"is-new-gray":_vm.isNewGray},on:{"parentCollect":_vm.collectFn}}):undefined],1):_vm._e()])}),0):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10086)?_c('div',{staticClass:"fault-code"},[_c('div',{staticClass:"page"},[_c('div',{staticClass:"reasult-page"},[(!_vm.showNullTip)?_c('div',{staticClass:"filter-box"},[_c('div',{staticClass:"filter-btn",on:{"click":function($event){return _vm.openPopup()}}},[_vm._v(_vm._s(_vm.filterOptions.typeName || '点击选择 ECU 型号'))])]):_vm._e(),_vm._v(" "),(!_vm.showNullTip)?_c('div',{staticClass:"reasult-container"},[(_vm.filterOptions.brandName)?_c('div',{staticClass:"reasult-tip"},[_vm._v(_vm._s(_vm.filterOptions.classificationName)+" "+_vm._s(_vm.filterOptions.brandName)+" "+_vm._s(_vm.filterOptions.typeName)+" 故障码：")]):_c('div',{staticClass:"reasult-tip"},[_vm._v("请点击上方按钮 选择ECU型号：")]),_vm._v(" "),_vm._l((_vm.reasultList),function(item,index){return _c('div',{key:index,staticClass:"reasult-item"},[_c('div',[_c('div',{staticClass:"item-inner",class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFaultCodeDesc(item, null, index + 1, index + 1)}}},[_c('p',{domProps:{"innerHTML":_vm._s((item.pcode || '') + ' ' + (item.descCn || ''))}}),_vm._v(" "),(item.vehiDirParentName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(item.vehiDirParentName))]):_vm._e(),(item.vehiDirName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(item.vehiDirName))]):_vm._e()])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentIndex === index && item.num > 0),expression:"currentIndex === index && item.num > 0"}],staticClass:"item-list"},_vm._l((item.searchFaultCodeVos),function(r,i){return _c('div',{key:i},[_c('div',{staticClass:"item-inner",class:{'have-read': r.haveRead},on:{"click":function($event){return _vm.openFaultCodeDesc(r, item, index + 1, i + 2)}}},[_c('p',{domProps:{"innerHTML":_vm._s(r.pcode + ' ' + r.descCn)}}),_vm._v(" "),(r.vehiDirParentName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(r.vehiDirParentName))]):_vm._e(),(r.vehiDirName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(r.vehiDirName))]):_vm._e()])])}),0),_vm._v(" "),(_vm.currentIndex !== index && item.num > 0)?_c('div',{staticClass:"item-bottom",on:{"click":function($event){return _vm.expand(item, index)}}},[_c('span',{staticClass:"lf"},[_vm._v("展开 "+_vm._s(item.num)+" 条合并项")]),_vm._v(" "),_c('span',{staticClass:"arrow-bottom"})]):_vm._e()])})],2):_vm._e()])])]):_vm._e()],2)]),_vm._v(" "),_c('mt-popup',{staticClass:"popupStyle",attrs:{"position":"bottom"},model:{value:(_vm.showDetailNew),callback:function ($$v) {_vm.showDetailNew=$$v},expression:"showDetailNew"}},[(_vm.showDetailNew)?_c('Part-detail',{attrs:{"result":_vm.detailResult,"random-num":_vm.randomNum,"module-type":_vm._Enums.COLLECTION_MODULE.PARTS,"parent":"10087","is-pop":1,"ref-no":_vm.refNo,"query-key":_vm.queryKey},on:{"closeFn":function($event){_vm.showDetailNew = false},"parentCollect":_vm.collectFn}}):_vm._e()],1),_vm._v(" "),_c('mt-popup',{staticClass:"popupStyle",attrs:{"position":"bottom"},model:{value:(_vm.showDetailNew2),callback:function ($$v) {_vm.showDetailNew2=$$v},expression:"showDetailNew2"}},[(_vm.showDetailNew2)?_c('Test-data-detail',{attrs:{"test-code":_vm.testCode,"is-pop":1,"parent":"10088","random-num":_vm.randomNum,"test-ind":_vm.testIndex,"is-new-gray":_vm.isNewGray},on:{"close":_vm.closeTestData,"parentCollect":_vm.collectFn}}):_vm._e()],1),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container",attrs:{"position":"bottom"},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{ref:"filterContainer",staticClass:"content-container mescroll-touch"},[_c('div',[(_vm.greyVersion)?_c('div',{staticClass:"content-title"},[_vm._v("分类")]):_vm._e(),_vm._v(" "),(_vm.greyVersion)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.classificationList),function(name,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectClassOrBrand(name, 'class', 0)}}},[_c('span',{class:{'active': _vm.classificationTemp === name}},[_vm._v(_vm._s(name))])])}),0):_vm._e(),_vm._v(" "),(_vm.classificationTemp || !_vm.greyVersion)?_c('div',{staticClass:"content-title"},[_vm._v("ECU品牌")]):_vm._e(),_vm._v(" "),(_vm.classificationTemp || !_vm.greyVersion)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.brandList),function(name,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectClassOrBrand(name, 'brand', 1)}}},[_c('span',{class:{'active': _vm.brandTemp === name}},[_vm._v(_vm._s(name))])])}),0):_vm._e(),_vm._v(" "),(_vm.brandTemp)?_c('div',{staticClass:"content-title"},[_vm._v("型号")]):_vm._e(),_vm._v(" "),(_vm.brandTemp)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.typeList),function(t,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(t)}}},[_c('span',{class:{'active': _vm.typeTemp === t}},[_vm._v(_vm._s(t))])])}),0):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn",on:{"click":function($event){return _vm.confrimSelect()}}},[_vm._v("确定")])])]),_vm._v(" "),(_vm.collectObj.show)?_c('div',{staticClass:"collect-box window-mask"},[_c('div',{staticClass:"collect-cont"},[_c('div',{staticClass:"collect-tit"},[_vm._v("提示")]),_vm._v(" "),_c('div',{staticClass:"collect-text"},[_vm._v(_vm._s(_vm.collectTip))]),_vm._v(" "),_c('div',{staticClass:"collect-btns"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.collectCancle.apply(null, arguments)}}},[_vm._v("取消")]),_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.collectOk.apply(null, arguments)}}},[_vm._v("确定")])])])]):_vm._e()],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/ecu.95e751e.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(593);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_30454a15_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1192);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3193)
  __webpack_require__(3195)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-30454a15"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_30454a15_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_30454a15_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_resultNewXny_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3194);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("575ec9ac", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mint-toast{z-index:3000}.soso-new .mescroll-upwarp{padding:0}.soso-new .result-box .ad-info{margin-top:.3rem}.soso-new .result-box .ad-info img{width:100%!important;margin-left:0!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3196);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e2907608", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".soso-new[data-v-30454a15]{-ms-touch-action:pan-y;touch-action:pan-y;background:#f5f5f5;min-height:100%;overflow-x:hidden}.soso-new .popupStyle[data-v-30454a15]{position:fixed;width:100%;height:-webkit-calc(100% - 60px);height:calc(100% - 60px);border-radius:.6rem .6rem 0 0}.soso-new .pop-container[data-v-30454a15]{width:100%;height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.soso-new .pop-container .head[data-v-30454a15]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.soso-new .pop-container .head .title[data-v-30454a15]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.soso-new .pop-container .head .close[data-v-30454a15]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.soso-new .pop-container .content-container[data-v-30454a15]{height:80.5%;padding-bottom:1rem;overflow-y:auto}.soso-new .pop-container .content-container .content-title[data-v-30454a15]{padding:.8rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.soso-new .pop-container .content-container .content-list[data-v-30454a15]{padding:0 .5rem;overflow:hidden}.soso-new .pop-container .content-container .content-list li[data-v-30454a15]{float:left;width:33.3334%;margin-bottom:.4rem;padding:0 .22rem;overflow:hidden}.soso-new .pop-container .content-container .content-list li span[data-v-30454a15]{width:100%;height:2.2rem;line-height:2.2rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.75rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;text-align:center;vertical-align:top}.soso-new .pop-container .content-container .content-list li span.active[data-v-30454a15]{background-color:#e7f1ff;color:#ff6c37}.soso-new .pop-container .foot-bar[data-v-30454a15]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.soso-new .pop-container .foot-bar .btn[data-v-30454a15]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#ff6c37;border-radius:.3rem}.soso-new .window-mask[data-v-30454a15]{width:100%;height:100%;background:rgba(0,0,0,.4);position:absolute;top:0;left:0;z-index:100}.soso-new .window-mask .content-box[data-v-30454a15]{border-radius:.4rem;background:#fff;width:88%;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:6%;padding:.6rem .6rem 0}.soso-new .window-mask .content-box .mask-tit[data-v-30454a15]{color:#333;font:16px/1rem PingFangSC-Regular;text-align:center}.soso-new .window-mask .content-box textarea[data-v-30454a15]{width:100%;height:4rem;border:1px solid #eee;padding:.3rem;margin-top:.4rem;border-radius:.2rem}.soso-new .window-mask .content-box .mask-tip[data-v-30454a15]{color:#666;font:14px/1rem PingFangSC-Regular;margin-top:.2rem}.soso-new .window-mask .content-box .upload-box[data-v-30454a15]{margin-top:.4rem}.soso-new .window-mask .content-box .upload-box .a-upload[data-v-30454a15]{width:1.5rem;height:1.5rem;position:relative;overflow:hidden}.soso-new .window-mask .content-box .upload-box .a-upload img[data-v-30454a15]{display:inline-block;width:100%;height:100%}.soso-new .window-mask .content-box .upload-box .a-upload .putPhoto[data-v-30454a15]{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:199}.soso-new .window-mask .content-box .img-box[data-v-30454a15]{max-height:5rem;overflow-y:auto}.soso-new .window-mask .content-box .img-box img[data-v-30454a15]{width:2rem;height:2rem;margin-right:.4rem;margin-top:.4rem}.soso-new .window-mask .content-box .option[data-v-30454a15]{border-top:1px solid #eee;margin-top:.4rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .window-mask .content-box .option span[data-v-30454a15]{height:.7rem;width:1px;background:#eee}.soso-new .window-mask .content-box .option li[data-v-30454a15]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font:16px/2rem PingFangSC-Regular;color:#666}.soso-new .tab-pan[data-v-30454a15]{position:absolute;top:3.15rem;left:0;bottom:0;right:0;background:rgba(0,0,0,.45);z-index:10}.soso-new .tab-pan .list-box[data-v-30454a15]{border-top:1px solid #eee;padding:.8rem .6rem 1rem;background:#fff}.soso-new .tab-pan .list-box p[data-v-30454a15]{color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.soso-new .tab-pan .list-box ul[data-v-30454a15]{margin-top:.4rem}.soso-new .tab-pan .list-box ul li[data-v-30454a15]{float:left;width:32%;height:2.05rem;color:#333;font:16px/2.05rem PingFangSC-Regular;margin-top:.4rem;margin-right:2%;background:#f5f5f5;border-radius:4px;text-align:center}.soso-new .tab-pan .list-box ul li[data-v-30454a15]:nth-of-type(3n){margin-right:0}.soso-new .tab-pan .list-box ul li.selected[data-v-30454a15]{background:#e7f1ff;color:#ff6c37}.soso-new .input_box[data-v-30454a15]{background:#fff;padding:.6rem .6rem 0;position:relative}.soso-new .input_box i[data-v-30454a15]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:1.15rem;left:1rem}.soso-new .input_box input[data-v-30454a15]{background:#f5f5f5;height:2rem;border-radius:1rem;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;padding-right:4rem;-webkit-transition:.3s;transition:.3s}.soso-new .input_box button[data-v-30454a15]{margin-left:.6rem;width:3.6rem;height:1.8rem;line-height:2rem;color:#fff;background:#ff6c37;border-radius:1rem;font:15px PingFangSC-Regular;position:absolute;top:.7rem;right:-300px;-webkit-transition:all .3s ease;transition:all .3s ease}.soso-new .input_box button.animate[data-v-30454a15]{right:.7rem}.soso-new .tab-wrap[data-v-30454a15]{height:2.5rem;background:#fff;padding-left:.6rem;position:relative}.soso-new .tab-wrap>div[data-v-30454a15]{height:100%}.soso-new .tab-wrap .left[data-v-30454a15]{width:-webkit-calc(100% - 2.15rem);width:calc(100% - 2.15rem)}.soso-new .tab-wrap .right[data-v-30454a15]{width:2.15rem;background:#fff;position:relative}.soso-new .tab-wrap .right .bg[data-v-30454a15]{position:absolute;width:100%;height:100%;z-index:2;top:0;left:0;background:#fff url(" + escape(__webpack_require__(53)) + ") 50% no-repeat;background-size:14px 8px}.soso-new .tab-wrap .right .icon[data-v-30454a15]{position:absolute;z-index:1;top:.45rem;left:0;width:1px;height:1.6rem;box-shadow:-2px 0 6px 0 hsla(228,2%,51%,.62)}.soso-new .tab-wrap #tab-box[data-v-30454a15]{overflow:hidden}.soso-new .tab-wrap #tab-box ul[data-v-30454a15]{font-size:0;display:inline-block;white-space:nowrap;height:2.5rem}.soso-new .tab-wrap #tab-box ul li[data-v-30454a15]{display:inline-block;margin-right:1rem;color:#666;font:16px/2.5rem PingFangSC-Regular}.soso-new .tab-wrap #tab-box ul li[data-v-30454a15]:last-child{margin:0}.soso-new .tab-wrap #tab-box ul li.active[data-v-30454a15]{color:#ff6c37;font-weight:700;position:relative}.soso-new .tab-wrap #tab-box ul li.active[data-v-30454a15]:after{content:\"\";position:absolute;height:3px;width:.8rem;background:#ff6c37;left:50%;bottom:1px;margin-left:-.4rem}.soso-new .radius-box[data-v-30454a15]{background:#fff}.soso-new .radius-box .radiu[data-v-30454a15]{height:.6rem;background:#f5f5f5;border-radius:.6rem .6rem 0 0}.soso-new .result-box[data-v-30454a15]{height:-webkit-calc(100% - 2.8rem);height:calc(100% - 2.8rem);padding:0 .5rem;background:#f5f5f5}.soso-new .result-box.fault-result-box[data-v-30454a15]{padding:0}.soso-new .result-box.fault-result-box .accurate[data-v-30454a15]{padding:0 .5rem}.soso-new .result-box .accurate[data-v-30454a15]{color:#333;font:14px/1rem PingFangSC-Regular;margin-bottom:.5rem}.soso-new .result-box .accurate i[data-v-30454a15]{font-style:normal;color:#ff6c37}.soso-new .result-box .dictionary[data-v-30454a15]{margin-top:.5rem;border-radius:.4rem;background:#fff;padding:.6rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .result-box .dictionary img[data-v-30454a15]{width:1.6rem;height:1.6rem;border-radius:.1rem;border:1px solid #e6e6e6;margin-right:.4rem}.soso-new .result-box .dictionary .text[data-v-30454a15]{color:#333;font:18px/1.25rem PingFangSC-Regular;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.soso-new .result-box .dictionary i.arror[data-v-30454a15]{margin-left:.4rem;width:.3rem;height:.5rem;background:url(" + escape(__webpack_require__(57)) + ") no-repeat;background-size:100% 100%}.soso-new .result-box .crad-box[data-v-30454a15]{margin-top:.5rem}.soso-new .result-box .meansList-box .meansList[data-v-30454a15]{margin-top:.5rem;border-radius:.4rem;background:#fff;padding:.6rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex}.soso-new .result-box .meansList-box .meansList.meanDetail[data-v-30454a15]{padding:0;display:block}.soso-new .result-box .meansList-box .meansList[data-v-30454a15]:first-child{margin:0}.soso-new .result-box .meansList-box .meansList .text[data-v-30454a15]{color:#333;font:18px/1.25rem PingFangSC-Regular;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.soso-new .result-box .meansList-box .meansList .collect[data-v-30454a15]{width:1.4rem;height:1.7rem;border-radius:.2rem;background:url(" + escape(__webpack_require__(204)) + ") no-repeat;background-size:100% 100%}.soso-new .result-box .meansList-box .meansList .collect.collected[data-v-30454a15]{background:url(" + escape(__webpack_require__(205)) + ") no-repeat}.soso-new .result-box .fault-code .page[data-v-30454a15]{height:auto!important;min-height:100%;background-color:#f5f5f5;overflow:hidden}.soso-new .result-box .fault-code .search[data-v-30454a15]{padding:.6rem;background-color:#fff}.soso-new .result-box .fault-code .search-bar[data-v-30454a15]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2rem}.soso-new .result-box .fault-code .search-bar img[data-v-30454a15]{width:1rem;height:1rem;position:absolute;top:51%;left:.4rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.soso-new .result-box .fault-code .search-bar input[data-v-30454a15]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2rem;background-color:#f5f5f5;border-radius:.2rem;padding:0 .4rem 0 1.4rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}.soso-new .result-box .fault-code .search-bar .search-btn[data-v-30454a15]{width:3.6rem;height:2rem;line-height:2rem;margin-left:.6rem;color:#fff;background-color:#ff6c37;border-radius:.2rem;font-size:.75rem;font-weight:400;text-align:center}.soso-new .result-box .fault-code .search-top[data-v-30454a15]{margin-top:.4rem;padding:.4rem .6rem;background-color:#fff;font-size:.7rem;line-height:1.2rem;border-bottom:.03rem solid #eee;font-family:PingFangSC-Regular,PingFang SC;color:#333}.soso-new .result-box .fault-code .search-top span[data-v-30454a15]{font-size:.7rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.soso-new .result-box .fault-code .search-top .keyword[data-v-30454a15]{color:#ff6c37}.soso-new .result-box .fault-code .filter-box[data-v-30454a15]{padding:.6rem .6rem 1.2rem;background-color:#fff}.soso-new .result-box .fault-code .filter-box .filter-btn[data-v-30454a15]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2rem;background:#fff6f6;border-radius:1rem;border:.03rem solid #ff3f3f;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#ff3f3f}.soso-new .result-box .fault-code .reasult-container[data-v-30454a15]{margin-top:-.6rem;padding:0 .5rem;background:#f5f5f5;border-radius:.6rem .6rem 0 0;overflow:hidden}.soso-new .result-box .fault-code .reasult-container .reasult-tip[data-v-30454a15]{margin-top:.8rem;margin-bottom:.6rem;height:1rem;font-size:.7rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1rem}.soso-new .result-box .fault-code .reasult-container .reasult-item[data-v-30454a15]{width:100%;padding:0 .6rem;margin-bottom:.5rem;border-radius:.4rem;background-color:#fff;overflow:hidden}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner[data-v-30454a15]{padding-bottom:.8rem;border-bottom:.03rem solid #eee}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner.have-read p[data-v-30454a15]{color:#999}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner p[data-v-30454a15]{margin:.8rem 0 .2rem;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.25rem}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-inner .meta[data-v-30454a15]{height:1.05rem;margin-right:.2rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:1.05rem;white-space:nowrap}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-list[data-v-30454a15]{-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-bottom[data-v-30454a15]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.63rem}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-bottom .lf[data-v-30454a15]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.6rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#ff6c37}.soso-new .result-box .fault-code .reasult-container .reasult-item .item-bottom .arrow-bottom[data-v-30454a15]{width:.5rem;height:.5rem;margin-left:.8rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.soso-new .result-box .fault-code .reasult-null[data-v-30454a15]{margin-top:5.78rem}.soso-new .result-box .fault-code .reasult-null .null-inner[data-v-30454a15]{text-align:center}.soso-new .result-box .fault-code .reasult-null .null-inner img[data-v-30454a15]{display:inline-block;width:3.7rem}.soso-new .result-box .fault-code .reasult-null .null-inner p[data-v-30454a15]{margin-top:.6rem;padding:0 .6rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem}.soso-new .result-box .feedback[data-v-30454a15]{width:100%;height:auto;background:#fff;border-radius:.4rem;margin-top:.5rem}.soso-new .result-box .feedback .feed-wrap[data-v-30454a15]{padding:.8rem}.soso-new .result-box .feedback .feed-wrap .dc[data-v-30454a15]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .result-box .feedback .feed-wrap .dc img[data-v-30454a15]{margin-right:.6rem}.soso-new .result-box .feedback .feed-wrap .dc .cbox[data-v-30454a15]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.soso-new .result-box .feedback .feed-wrap .dc .cbox div[data-v-30454a15]:first-of-type{color:#333;font:18px/1.2rem PingFangSC-Regular}.soso-new .result-box .feedback .feed-wrap .dc .cbox div[data-v-30454a15]:nth-of-type(2){color:#666;margin-top:.3rem;font:14px/1.2rem PingFangSC-Regular}.soso-new .result-box .feedback .feed-btn[data-v-30454a15]{border-top:1px solid #eee;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .result-box .feedback .feed-btn span[data-v-30454a15]{height:.7rem;width:1px;background:#eee}.soso-new .result-box .feedback .feed-btn div[data-v-30454a15]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font:16px/1.6rem PingFangSC-Regular;color:#666}.soso-new .footBox .link-box[data-v-30454a15]{margin:1.4rem 0 1.2rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.soso-new .footBox .link-box>div[data-v-30454a15]{text-align:center;height:1.05rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC,serif;font-weight:400;color:#177afa;line-height:1.05rem}.soso-new .footBox .link-box .icon[data-v-30454a15]{width:.3rem;height:.5rem;margin-left:.3rem;background:url(" + escape(__webpack_require__(1455)) + ") 0 0/cover no-repeat}.soso-new .collect-box[data-v-30454a15]{z-index:1000000}.soso-new .collect-box .collect-cont[data-v-30454a15]{border-radius:.2rem;background:#fff;position:absolute;top:50%;width:80%;left:10%;z-index:100;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.soso-new .collect-box .collect-cont .collect-tit[data-v-30454a15]{padding:.6rem;color:#333;font:16px/1 PingFangSC-Regular;text-align:center}.soso-new .collect-box .collect-cont .collect-text[data-v-30454a15]{padding:.3rem .6rem .6rem;color:#666;font:16px/1rem PingFangSC-Regular}.soso-new .collect-box .collect-cont .collect-btns[data-v-30454a15]{border-top:1px solid #eee;height:2.2rem;font-size:0;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;overflow:hidden}.soso-new .collect-box .collect-cont .collect-btns span[data-v-30454a15]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.2rem;font:16px/2.2rem PingFangSC-Regular;text-align:center}.soso-new .collect-box .collect-cont .collect-btns span[data-v-30454a15]:first-of-type{color:#333;border-right:1px solid #eee}.soso-new .collect-box .collect-cont .collect-btns span[data-v-30454a15]:nth-of-type(2){color:#ff6c37}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(1456);
var _image = _interopRequireDefault(__webpack_require__(245));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _resultCrad = _interopRequireDefault(__webpack_require__(1457));
var _partsTableConfig = _interopRequireDefault(__webpack_require__(172));
var _testDataDetail = _interopRequireDefault(__webpack_require__(279));
var _partDetail = _interopRequireDefault(__webpack_require__(817));
var _intelligentMatch = _interopRequireDefault(__webpack_require__(1458));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    IntelligentMatch: _intelligentMatch.default,
    ResultCrad: _resultCrad.default,
    TestDataDetail: _testDataDetail.default,
    PartDetail: _partDetail.default,
    PokingMeComponent: _pokingMeComponent.default
  }, _mintUi.Popup.name, _mintUi.Popup), _image.default.name, _image.default), _imagePreview.default.name, _imagePreview.default),
  data: function data() {
    return {
      isNewGray: 0,
      minHeight: 'min-height:24rem',
      faultDescFlag: -1,
      // 故障码字段
      appVer: '',
      mescroll: null,
      keyWord: decodeURIComponent(this.$route.query.keyword),
      copyKeyWord: '',
      // 用来展示精准搜索的值
      isFocus: false,
      showtabPan: false,
      // 是否显示下拉菜单
      tabList: [],
      nowFolderId: this.$route.query.folderid,
      // 当前点击的tab id
      dictionaryList: [],
      // 节点类型模块列表
      searchParms: {
        // 搜索时的参数
        parentClassId: this.$route.query.folderid || 0,
        dataName: '',
        pageNum: 1,
        pageSize: 20
      },
      meansList: [],
      // 全部资料列表
      meansTotal: 0,
      // 得到的资料总数
      cardList: [],
      // 卡片集合列表
      partInfoList: [],
      // 部件信息数据
      partCardInfo: {},
      // 部件信息的卡片信息
      testList: [],
      // 测试数据
      testCradInfo: {},
      // 测试数据的卡片信息
      showDetailNew: false,
      // 是否显示部件信息的详情弹窗
      showDetailNew2: false,
      // 是否显示测试数据的详情弹窗
      question: '',
      detailResult: {},
      // 部件信息详情数据
      testCode: '',
      // 当前需要打开详情的测试数据code
      testIndex: 0,
      showWindowMask: false,
      myAdvise: '',
      // 我的建议
      imgSrc: [],
      // 上传的建议图片
      token: '',
      // 七牛云token
      bucketUrl: '',
      // 获得七牛云前缀
      randomStr: '',
      randomNum: null,
      searchType: '',
      // 搜索类型（点击或者搜索）
      userStatus: 0,
      isAccurateSearch: false,
      // 是否进行了精确搜索
      isSpnFmi: this.$route.query.faultType === 'spn',
      // 第一次的搜索是否是从spn-fmi搜索条件过来的
      collectObj: {
        // 收藏的对象
        show: false,
        data: {},
        params: {}
      },
      collectTip: '',
      // 收藏提示
      // 故障码数据
      faultKeyword: this.$route.query.keyword,
      firstFilter: false,
      // 是否是新的一次请求故障码，是的话需要清除原来的筛选条件
      searchSecond: '',
      type: 1,
      currentIndex: null,
      reasultList: [],
      // 故障码数据列表
      faultCardInfo: {},
      // 故障码在首页显示卡片的信息
      totalCount: 0,
      // 故障码总数
      logTotal: 0,
      // 记录埋点时的数据总数
      showNullTip: false,
      showPop: false,
      // 是否显示故障码ecu筛选弹窗
      brandTemp: null,
      filterOptions: {
        // ecu的筛选条件
        classificationName: '',
        brandName: '',
        typeName: ''
      },
      filterFromAllTab: false,
      // 搜索故障码列表是否是从‘全部’tab里面的ecu弹窗唤起的
      classificationList: [],
      // 分类集合
      classificationTemp: null,
      brandList: [],
      typeList: [],
      typeTemp: null,
      haveReadId: [],
      intelligentRecommend: null,
      // 新智能推荐
      refNo: '',
      queryKey: '',
      greyVersion: false,
      // 是否是灰度版本
      search_history_sort: decodeURIComponent(this.$route.query.search_history_sort),
      timing: '',
      time: 0
    };
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '新能源故障码,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that, position, tempObj, tempObj2;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            that = _this;
            _this.mescroll = new _mescroll.default(_this.$refs.mescroll, {
              down: {
                use: false
              },
              up: {
                callback: _this.upFn,
                auto: false,
                page: {
                  num: 0,
                  size: 20
                },
                offset: 400,
                htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
                // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
                noMoreSize: 1,
                isBounce: false,
                empty: {
                  warpId: 'listContainer',
                  tip: '暂无相关数据'
                }
              }
            });
            _this.sosoMinHeight();
            console.log(_this.$refs);
            // await this.getGray()
            // this.loadCarTabInfo(this.search_history_sort)
            // this.getTabList()
            debugger;
            position = JSON.parse(sessionStorage.getItem('new_pageParams'));
            if (position) {
              sessionStorage.removeItem('new_pageParams');
              _this.userStatus = position.userStatus;
              _this.randomNum = position.randomNum;
              _this.intelligentRecommend = position.intelligentRecommend;
              _this.typeList = position.typeList;
              _this.brandList = position.brandList;
              _this.classificationList = position.classificationList;
              _this.greyVersion = position.greyVersion;
              if (_this.nowFolderId == 10086) {
                _this.reasultList = position.reasultList;
                _this.currentIndex = position.currentIndex;
                _this.filterOptions = position.filterOptions || {};
                _this.haveReadId = position.haveReadId;
                _this.searchSecond = position.searchSecond;
                _this.copyKeyWord = position.copyKeyWord;
              } else if (_this.nowFolderId != 10087 && _this.nowFolderId != 10088) {
                if (_this.nowFolderId == 0) {
                  _this.testList = position.testList;
                  _this.testList.forEach(function (item) {
                    if (item.code == _this.keyWord && _this.userStatus === 2) {
                      item.isShowDetail = true;
                      _this.openPartTestDetail(item, 1);
                    }
                  });
                  tempObj = {
                    classifyName: '测试数据',
                    parentClassId: 10088,
                    totalCount: _this.testList.length,
                    shareBos: []
                  };
                  _this.testList.forEach(function (item, index) {
                    tempObj.shareBos.push({
                      dataName: item.name + ': ' + item.code,
                      id: 'test' + index,
                      parentClassId: 10087,
                      code: item.code,
                      isShowDetail: item.isShowDetail
                    });
                  });
                  _this.testCradInfo = tempObj;

                  // 处理部件信息的展示
                  _this.partInfoList = position.partInfoList;
                  _this.partInfoList.forEach(function (item) {
                    if (item.code == _this.keyWord && _this.userStatus === 2) {
                      item.isShowDetail = true;
                      _this.openPartTestDetail(item, 1);
                    }
                  });
                  tempObj2 = {
                    classifyName: '部件信息',
                    parentClassId: 10087,
                    totalCount: _this.partInfoList.length,
                    shareBos: []
                  };
                  _this.partInfoList.forEach(function (item, index) {
                    tempObj2.shareBos.push({
                      dataName: item.name + ': ' + item.code,
                      id: 'part' + index,
                      parentClassId: 10087,
                      code: item.code,
                      isShowDetail: item.isShowDetail,
                      detailResult: item.code == _this.keyWord ? {} : null
                    });
                  });
                  _this.partCardInfo = tempObj2;
                  _this.faultCardInfo = position.faultCardInfo;
                  _this.cardList = position.cardList;
                }
                _this.copyKeyWord = position.copyKeyWord;
                _this.meansTotal = position.meansTotal;
                _this.totalCount = position.totalCount;
                _this.meansList = position.meansList;
                _this.dictionaryList = position.dictionaryList;
              }
              setTimeout(function () {
                _this.mescroll.optUp.page.num = Number(position.pageNum);
                _this.$nextTick(function () {
                  _this.mescroll.scrollTo(position.scrollTop, 0);
                });
              }, 200);
            } else {
              _this.searchFn(_this.$route.query.searchTypes && _this.$route.query.searchTypes === '1' ? 'log' : 'btn');
            }
            that._Util.collectPageViewNew({
              type: 1,
              postUrl: that._Api.POST_COLLECT_NEW,
              source: '',
              target: '',
              remark: '新能源故障码',
              searchKey: ''
            }, that);
            that.timing = setInterval(function () {
              that.time++;
            }, 1000);
            // this._Util.post(this._Api.appGetQNToken, {}, data => {
            //   this.token = data.token
            //   this.bucketUrl = data.bucketUrl
            // }, () => {}, this)
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  beforeMount: function beforeMount() {
    // 创建MeScroll对象
  },
  methods: {
    /**
     * 获取CR故障码跳转Tab--opensearch版
     */
    loadCarTabInfo: function loadCarTabInfo(search_history_sort) {
      this._Util.post(this._Api.POST_GET_CAR_TAB_INFO, {
        keyword: this.keyWord
      }, function (data) {
        if (data.popupType === 0) return;
        if (localStorage.getItem('SET_FAULTCODE_ALERT') === 'false') return;
        localStorage.setItem('SET_FAULTCODE_ALERT', 'false');
        // MessageBox({
        //   title: '',
        //   message: '你是否想要搜索故障码',
        //   showCancelButton: true,
        //   confirmButtonText: '是的',
        //   cancelButtonText: '不是'
        // }).then(action => {
        //   if (action === 'confirm') {
        //     const url = location.origin + `/v4/faultCode-subpackage/pages/search?searchType=${data.searchType}&keyword=${data.keyword}`
        //     this._Util.publicOpenPage({
        //       url,
        //       appName: 'faultCodeSearch'
        //     })
        //   }
        // })
      }, function () {}, this);
    },
    /**
     * 获取大搜新就接口配置
     */
    // getGray() {
    //   return new Promise(resolve => {
    //     this._Util.post(this._Api.GET_GRAY, {}, data => {
    //       this.isNewGray = data
    //       resolve()
    //     }, () => {}, this)
    //   })
    // },
    upDateAdImgSize: function upDateAdImgSize() {
      this.sosoMinHeight();
    },
    /**
       * 搜搜首页搜索结果最小高度计算
       * */
    sosoMinHeight: function sosoMinHeight() {
      var _this2 = this;
      setTimeout(function () {
        var height = _this2.$refs.mescroll.offsetHeight - 0;
        _this2.minHeight = "min-height:".concat(height - 40, "px");
      }, 200);
    },
    /**
       * 获取随机字符串，以便记录埋点时使用（每一项的第一页需要重新获取字符串，第二页时，则使用第一页的字符串）
       */
    getRandomChar: function getRandomChar() {
      var that = this;
      var chars = 'abcdefghijklmnopqrstuvwxyz123456789';
      var maxPos = chars.length;
      var pwd = '';
      var randomNum = '';
      for (var i = 0; i < 32; i++) {
        pwd += chars.charAt(Math.floor(Math.random() * maxPos));
        randomNum += Math.floor(Math.random() * 10);
      }
      that.randomStr = pwd;
      return [that.randomStr, randomNum];
    },
    /**
       * 动态配置mescroll组件上拉加载的函数
       */
    upFn: function upFn(page) {
      debugger;
      // if (this.nowFolderId == 0) {
      //   this.getMeansList(page)
      // } else if (this.nowFolderId == 10086) {
      this.getFaultList(page);
      // } else if (this.nowFolderId == 10087) {
      //   this.getPartInfo(page)
      // } else if (this.nowFolderId == 10088) {
      //   this.getTestInfo(page)
      // } else {
      //   this.getMeansList(page)
      // }
    },
    /**
       * 输入框失去焦点
       */
    inputBlur: function inputBlur() {
      var _this3 = this;
      this.$nextTick(function () {
        _this3.isFocus = false;
      });
    },
    /**
       * 获取tab切换列表
       */
    getTabList: function getTabList() {
      var _this4 = this;
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search/portal/list', {}, function (data) {
        that.tabList = [{
          title: '全部',
          id: 0,
          folderId: 0,
          isShow: 1
        }].concat(data);
        var curIndex = 0;
        that.tabList.forEach(function (item, index) {
          if (_this4.nowFolderId == item.folderId) {
            curIndex = index;
          }
        });
        that.$nextTick(function () {
          // 初始化按钮滚动区域
          that.tabScroll = new _betterScroll.default('#tab-box', {
            scrollX: true,
            scrollY: false,
            click: true,
            bounceTime: 300,
            swipeBounceTime: 300
          });
          setTimeout(function () {
            that.tabScroll.scrollToElement(document.getElementById('tab' + curIndex), 300);
          }, 300);
        });
      }, function () {}, that);
    },
    /**
       * 执行搜索的逻辑
       * @param {String} type btn代表点击了搜索按钮， tab代表点击了搜索项
       * @param {Object} item 点击的每一条tab
       */
    searchFn: function searchFn(type, item, point) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var title, queryParam, curIndex, result, _result, _result2, _result3;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              debugger;
              if (!(type === 'tab' && item.folderId === 10086)) {
                _context2.next = 1;
                break;
              }
              _this5._Util.post(_this5._Api.POST_GET_CAR_TAB_INFO, {
                keyword: _this5.copyKeyWord
              }, function (data) {
                var url = location.origin + "/v4/faultCode-subpackage/pages/search?searchType=".concat(data.searchType, "&keyword=").concat(data.keyword);
                _this5._Util.publicOpenPage({
                  url: url,
                  appName: 'faultCodeSearch'
                });
              }, function () {}, _this5);
              return _context2.abrupt("return");
            case 1:
              if (_this5.keyWord.trim()) {
                _context2.next = 2;
                break;
              }
              _mintUi.MessageBox.alert('请输入搜索关键字');
              return _context2.abrupt("return");
            case 2:
              if (!(_this5.keyWord.trim() == 'p' || _this5.keyWord.trim() == 'P')) {
                _context2.next = 3;
                break;
              }
              _mintUi.MessageBox.alert('输入内容有误，请修改后再搜索');
              return _context2.abrupt("return");
            case 3:
              _this5.meansList = [];
              _this5.partInfoList = [];
              _this5.testList = [];
              _this5.cardList = [];
              _this5.faultCardInfo = {};
              _this5.partCardInfo = {};
              _this5.testCradInfo = {};
              _this5.meansTotal = 0;
              _this5.totalCount = 0;
              _this5.showtabPan = false;
              title = '';
              _this5.$nextTick(function () {
                _this5.mescroll.scrollTo(0, 0);
                _this5.sosoMinHeight();
              });
              if (sessionStorage.getItem('search_link_jump') === '1') {
                sessionStorage.removeItem('search_link_jump');
              } else {
                // this.searchKeyWordList()
              }
              if (type === 'btn' || type === 'log') {
                _this5.searchType = '搜索';
                _this5.randomStr = _this5.getRandomChar()[0];
                _this5.randomNum = _this5.getRandomChar()[1];
              } else if (type === 'tab') {
                _this5.searchType = '点击';
              } else {
                _this5.searchType = '精确搜索';
              }
              if (type === 'tab') {
                _this5.nowFolderId = item.folderId;
                title = item.title;
              }
              if (type === 'accurate') {
                _this5.isAccurateSearch = true;
                if (_this5.nowFolderId != 10086 && _this5.nowFolderId != 10087 && _this5.nowFolderId != 10088) {
                  _this5.searchParms.type = 2; // 精确搜索只针对资料
                }
              } else {
                delete _this5.searchParms.type;
                _this5.isAccurateSearch = false;
              }
              queryParam = {
                folderid: _this5.nowFolderId,
                keyword: _this5.keyWord,
                title: title || _this5.$route.query.title
              };
              if (_this5.isSpnFmi && _this5.nowFolderId == 10086) {
                _this5.isSpnFmi = false;
                queryParam.faultType = 'spn';
              }
              _this5.$router.replace({
                query: queryParam
              });
              _this5.copyKeyWord = _this5.keyWord;
              _this5.searchTabType = type;
              _this5.searchTabName = title;
              if (point === 'tabpan') {
                // 点击了折叠菜单，把tab切换为当前点击项
                curIndex = 0;
                _this5.tabList.forEach(function (item, index) {
                  if (_this5.nowFolderId == item.folderId) {
                    curIndex = index;
                  }
                });
                setTimeout(function () {
                  _this5.tabScroll.scrollToElement(document.getElementById('tab' + curIndex), 300);
                }, 300);
              }
              if (!(_this5.nowFolderId == 0)) {
                _context2.next = 5;
                break;
              }
              _this5.filterOptions = {
                classificationName: '',
                brandName: '',
                typeName: ''
              };
              _context2.next = 4;
              return _this5._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 4:
              result = _context2.sent;
              _this5.userStatus = result.userStatus;
              // this.getDicionList()
              _this5.getAllDataList();
              _context2.next = 12;
              break;
            case 5:
              if (!(_this5.nowFolderId == 10086)) {
                _context2.next = 6;
                break;
              }
              // 故障码
              // const result = await this._Util.judgePower({
              //   dataType: 'FAULT_CODE', // 对故障码进行权限判断
              //   params: {
              //     eventType: 'SEARCH_DATA'
              //   }
              // }, this)
              // this.userStatus = result.userStatus
              if (_this5.filterFromAllTab) {
                _this5.filterFromAllTab = false;
              } else {
                _this5.filterOptions = {
                  classificationName: '',
                  brandName: '',
                  typeName: ''
                };
                _this5.firstFilter = true;
              }
              _this5.dictionaryList = [];
              console.log(_this5.mescroll);
              _this5.mescroll.resetUpScroll();
              _context2.next = 12;
              break;
            case 6:
              if (!(_this5.nowFolderId == 10087)) {
                _context2.next = 8;
                break;
              }
              // 部件信息
              _this5.partInfoList = [];
              _context2.next = 7;
              return _this5._Util.judgePower({
                dataType: 'PARTS_INFO',
                // 对部件信息进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 7:
              _result = _context2.sent;
              _this5.userStatus = _result.userStatus;
              _this5.dictionaryList = [];
              _this5.mescroll.resetUpScroll();
              _context2.next = 12;
              break;
            case 8:
              if (!(_this5.nowFolderId == 10088)) {
                _context2.next = 10;
                break;
              }
              // 测试数据
              _this5.testList = [];
              _context2.next = 9;
              return _this5._Util.judgePower({
                dataType: 'TEST_DATA',
                // 对测试数据进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 9:
              _result2 = _context2.sent;
              _this5.userStatus = _result2.userStatus;
              _this5.dictionaryList = [];
              _this5.mescroll.resetUpScroll();
              _context2.next = 12;
              break;
            case 10:
              _context2.next = 11;
              return _this5._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'SEARCH_DATA'
                }
              }, _this5);
            case 11:
              _result3 = _context2.sent;
              _this5.userStatus = _result3.userStatus;
              _this5.mescroll.resetUpScroll();
            case 12:
              _this5.dictionaryList = [];
            case 13:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
       * 点击全部的时候执行的搜索
       */
    getAllDataList: function getAllDataList() {
      this.getDicionList();
      this.mescroll.resetUpScroll();
      this.getPartInfo({
        num: 1
      });
      this.getTestInfo({
        num: 1
      });
      this.firstFilter = true;
      this.getFaultList({
        num: 1
      });
    },
    /**
       * 获取部件信息
       */
    getPartInfo: function getPartInfo(page) {
      var _this6 = this;
      var params = {
        queryValue: this.keyWord
      };
      if (this.nowFolderId == 10087) {
        // 点击了部件信息tab
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord)) {
          _mintUi.MessageBox.alert('请输入数字');
          this.mescroll.endSuccess(0, false);
          return;
        }
        if (!/[\u4E00-\u9FA5]/g.test(this.keyWord) && this.keyWord.length < 3) {
          _mintUi.MessageBox.alert('请至少输入后三位查询');
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      if (this.nowFolderId == 0) {
        // 点击了全部tab
        // 如果搜索关键字是文字或者长度小于3时，不进行搜索
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord) || this.keyWord.length < 3) {
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      var url = this.isNewGray === 1 ? 'POST_PARTS_INFO_OPEN_SEARCH' : 'POST_PARTS_INFO_GET_NEW';
      this._Util.post(this._Api[url], params, function (data) {
        if (page.num === 1) {
          _this6.partInfoList = [];
        }
        _this6.$nextTick(function () {
          _this6.mescroll.endSuccess(data.list.length, false);
        });
        if (!data.list.length) {
          return;
        }
        var pratArr = [];
        var _iterator = _createForOfIteratorHelper(data.list),
          _step;
        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var o = _step.value;
            var _iterator2 = _createForOfIteratorHelper(_partsTableConfig.default[o.solrType]),
              _step2;
            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var v = _step2.value;
                if (o.key === v.name) {
                  pratArr.push({
                    name: v.title,
                    code: o[o.key],
                    solrTypeAndKey: "".concat(o.solrType, ":").concat(o.key),
                    parentClassId: 10087
                  });
                }
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
        _this6.partInfoList = pratArr;
        _this6.logTotal = _this6.partInfoList.length;
        _this6.partInfoList.forEach(function (item) {
          if (item.code === _this6.keyWord && _this6.userStatus === 2) {
            item.isShowDetail = true;
            _this6.openPartTestDetail(item, 1);
          }
        });
        if (_this6.nowFolderId == 0) {
          var tempObj = {
            classifyName: '部件信息',
            parentClassId: 10087,
            totalCount: _this6.partInfoList.length,
            shareBos: []
          };
          _this6.partInfoList.forEach(function (item, index) {
            tempObj.shareBos.push({
              dataName: item.name + ': ' + item.code,
              name: item.name,
              id: 'part' + index,
              parentClassId: 10087,
              code: item.code,
              isShowDetail: item.isShowDetail,
              solrTypeAndKey: item.solrTypeAndKey,
              detailResult: item.code === _this6.keyWord ? {} : null
            });
          });
          _this6.partCardInfo = tempObj;
        }
        _this6.searchKeywords2(page);
        _this6.searchKeywords1();
      }, function () {
        _this6.mescroll.endErr();
      }, this);
    },
    /**
       * 获取测试数据信息
       */
    getTestInfo: function getTestInfo(page) {
      var _this7 = this;
      var params = {
        queryValue: this.keyWord
      };
      if (this.nowFolderId == 10088) {
        // 点击了部件信息tab
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord)) {
          _mintUi.MessageBox.alert('请输入数字');
          this.mescroll.endSuccess(0, false);
          return;
        }
        if (!/[\u4E00-\u9FA5]/g.test(this.keyWord) && this.keyWord.length < 3) {
          _mintUi.MessageBox.alert('请至少输入后三位查询');
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      if (this.nowFolderId == 0) {
        // 点击了全部tab
        // 如果搜索关键字是文字或者长度小于3时，不搜索测试数据
        if (/[\u4E00-\u9FA5]/g.test(this.keyWord) || this.keyWord.length < 3) {
          this.mescroll.endSuccess(0, false);
          return;
        }
      }
      var url = this.isNewGray === 1 ? 'POST_SOSO_TEST_DATA_OPEN_SEARCH' : 'POST_SOSO_TEST_DATA_NEW';
      this._Util.post(this._Api[url], params, function (data) {
        if (page.num === 1) {
          _this7.testList = [];
        }
        _this7.$nextTick(function () {
          _this7.mescroll.endSuccess(data.list.length, false);
        });
        if (!data.list.length) {
          return;
        }
        var testArr = [];
        var _iterator3 = _createForOfIteratorHelper(data.list),
          _step3;
        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var v = _step3.value;
            testArr.push({
              name: v.pyq ? '喷油器型号' : '油泵型号',
              code: v.pyq || v.pump,
              parentClassId: 10088
            });
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
        _this7.testList = testArr;
        _this7.logTotal = _this7.testList.length;
        _this7.testList.forEach(function (item) {
          if (item.code == _this7.keyWord && _this7.userStatus === 2) {
            item.isShowDetail = true;
            _this7.openPartTestDetail(item, 1);
          }
        });
        if (_this7.nowFolderId == 0) {
          var tempObj = {
            classifyName: '测试数据',
            parentClassId: 10088,
            totalCount: _this7.testList.length,
            shareBos: []
          };
          _this7.testList.forEach(function (item, index) {
            tempObj.shareBos.push({
              dataName: item.name + ': ' + item.code,
              name: item.name,
              id: 'test' + index,
              parentClassId: 10088,
              code: item.code,
              isShowDetail: item.isShowDetail
            });
          });
          _this7.testCradInfo = tempObj;
        }
        _this7.searchKeywords2(page);
        _this7.searchKeywords1();
      }, function () {
        _this7.mescroll.endErr();
      }, this);
    },
    /**
       * 获取节点模块列表
       */
    getDicionList: function getDicionList() {
      var _this8 = this;
      this._Util.post(this._Api.POST_SEARCH_PATH_LIST, {
        keyword: this.keyWord
      }, function (data) {
        if (data) {
          _this8.dictionaryList = data;
        }
      }, function () {}, this);
    },
    /**
       * 获取全部资料列表
       */
    getMeansList: function getMeansList(page) {
      var _this9 = this;
      this.searchParms.pageNum = page.num;
      this.searchParms.dataName = this.keyWord;
      this.searchParms.parentClassId = this.nowFolderId;
      if (page.num === 1) {
        this.meansList = [];
      }
      var url = this.isNewGray === 1 ? 'api/management/listMeans.json' : 'api/management/getMeansList.json';
      this._Util.post(this._Api.HOSTOLD + url, this.searchParms, function (data) {
        if (data) {
          if (page.num === 1) {
            _this9.cardList = data.classifyShareList;
          }
          _this9.meansTotal = data.totalCount;
          _this9.logTotal = data.totalCount;
          _this9.meansList = _this9.meansList.concat(data.dataList);
          var currentPageLen = data.dataList.length ? _this9.mescroll.optUp.page.size : 0;
          _this9.$nextTick(function () {
            _this9.mescroll.endBySize(currentPageLen, data.totalCount);
          });
          _this9.searchKeywords2(page);
          _this9.searchKeywords1();
        }
      }, function () {
        _this9.mescroll.endErr();
      }, this);
    },
    /**
       * 跳转到节点详情页
       * @param {Object} item 点击的每一条节点信息
       */
    toDicDetail: function toDicDetail(item, index) {
      var _this0 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var result;
        return _regenerator.default.wrap(function (_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 1;
              return _this0._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this0);
            case 1:
              result = _context3.sent;
              console.log(result);
              if (_this0._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'toMyredPack',
                    url: item.pathUrl
                  }
                });
              } else {
                _this0.saveDataAndPosition({
                  meansList: _this0.meansList,
                  cardList: _this0.cardList,
                  testList: _this0.testList,
                  partInfoList: _this0.partInfoList,
                  faultCardInfo: _this0.faultCardInfo,
                  dictionaryList: _this0.dictionaryList,
                  copyKeyWord: _this0.copyKeyWord,
                  meansTotal: _this0.meansTotal,
                  totalCount: _this0.totalCount,
                  userStatus: _this0.userStatus,
                  pageNum: _this0.mescroll.optUp.page.num,
                  randomNum: _this0.randomNum,
                  intelligentRecommend: _this0.intelligentRecommend,
                  typeList: _this0.typeList,
                  brandList: _this0.brandList,
                  classificationList: _this0.classificationList,
                  greyVersion: _this0.greyVersion
                });
                location.href = item.pathUrl;
              }
            case 2:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    /**
       * 获取用户状态
       */
    getUserStatus: function getUserStatus() {
      var _this1 = this;
      return new Promise(function (resolve, reject) {
        _this1._Util.post(_this1._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this1);
      });
    },
    /**
       * 收藏的方法
       * @param {Object} item 点击的每一条需要收藏的数据
       */
    collectFn: function collectFn(item, index) {
      var _this10 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
        var userData, collectParams;
        return _regenerator.default.wrap(function (_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _context4.next = 1;
              return _this10.getUserStatus();
            case 1:
              userData = _context4.sent;
              if (!(userData.userStatus !== 2)) {
                _context4.next = 2;
                break;
              }
              _this10._Util.showMsgBoxConfirm('对不起，只有付费会员才能查看。您还未付费，请您先完成付费', function (action) {
                if (action) {
                  window.location.href = '/v2/business/pay/certificationRenewal?fullPath=' + _this10.$route.fullPath;
                }
              });
              return _context4.abrupt("return");
            case 2:
              if (!item.favId) {
                collectParams = {
                  favId: item.favId,
                  moduleType: item.moduleType,
                  queryValue: item.id
                };
                if (item.shareId && item.parentClassId) {
                  collectParams.objId = item.shareId;
                }
                if (item.parentClassId) {
                  // 只有资料才有parentClassId
                  collectParams.sourceType = item.parentClassId;
                }
                if (item.sn && !item.parentClassId) {
                  // 部件信息和测试信息收藏时的参数
                  collectParams.objId = item.sn;
                }
                if (item.testCode) {
                  // 测试信息收藏时还需要带入code
                  collectParams.requestValue = item.testCode;
                }
                // this._Util.showMsgBoxConfirm('是否对该资料进行收藏？', (action) => {
                //   if (action) {
                //     this._Util.post(this._Api.POST_COLLECTION_SAVE, collectParams, (data) => {
                //       Toast({
                //         message: '收藏成功',
                //         duration: 1500
                //       })
                //       item.favId = data.id
                //     }, () => {}, this, true)
                //   }
                // })
                _this10.collectObj = {
                  show: true,
                  data: item,
                  params: collectParams
                };
                _this10.collectTip = '是否对该资料进行收藏？';
              } else {
                _this10.collectObj = {
                  show: true,
                  data: item,
                  params: {
                    id: item.favId
                  }
                };
                _this10.collectTip = '是否取消收藏？';
                // this._Util.showMsgBoxConfirm('是否取消收藏？', (action) => {
                //   if (action) {
                //     this._Util.post(this._Api.POST_COLLECTION_CANCEL, {
                //       id: item.favId
                //     }, () => {
                //       item.favId = null
                //       Toast({
                //         message: '取消成功',
                //         duration: 1500
                //       })
                //     }, () => {}, this, false)
                //   }
                // }, {
                //   confirmButtonText: '是',
                //   cancelButtonText: '否'
                // })
              }
            case 3:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    /**
       * 关闭收藏确认弹窗
       */
    collectCancle: function collectCancle() {
      this.collectObj = {
        show: false,
        data: {},
        params: {}
      };
    },
    /**
       * 收藏确认或取消
       */
    collectOk: function collectOk() {
      var _this11 = this;
      if (this.collectObj.data.favId) {
        this._Util.post(this._Api.POST_COLLECTION_CANCEL, this.collectObj.params, function () {
          _this11.collectObj.data.favId = null;
          (0, _mintUi.Toast)({
            message: '取消成功',
            duration: 1500
          });
          _this11.collectObj.show = false;
        }, function () {}, this, false);
      } else {
        this._Util.post(this._Api.POST_COLLECTION_SAVE, this.collectObj.params, function (data) {
          (0, _mintUi.Toast)({
            message: '收藏成功',
            duration: 1500
          });
          _this11.collectObj.data.favId = data.id;
          _this11.collectObj.show = false;
        }, function () {}, this, true);
      }
    },
    /**
     * 点击资料查看详情
     * @param {Object} item 点击的每一条资料
     * @param index 索引
     */
    toMeansDetail: function toMeansDetail(item, index) {
      var _this12 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
        var result, indexNew, appToken;
        return _regenerator.default.wrap(function (_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              _context5.next = 1;
              return _this12._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this12);
            case 1:
              result = _context5.sent;
              indexNew = item.indexNum ? item.indexNum : index;
              if (!_this12._Util.isApp()) {
                _this12.saveDataAndPosition({
                  meansList: _this12.meansList,
                  cardList: _this12.cardList,
                  testList: _this12.testList,
                  partInfoList: _this12.partInfoList,
                  faultCardInfo: _this12.faultCardInfo,
                  dictionaryList: _this12.dictionaryList,
                  copyKeyWord: _this12.copyKeyWord,
                  meansTotal: _this12.meansTotal,
                  totalCount: _this12.totalCount,
                  userStatus: _this12.userStatus,
                  pageNum: _this12.mescroll.optUp.page.num,
                  randomNum: _this12.randomNum,
                  intelligentRecommend: _this12.intelligentRecommend,
                  typeList: _this12.typeList,
                  brandList: _this12.brandList,
                  classificationList: _this12.classificationList,
                  greyVersion: _this12.greyVersion
                });
              }
              if (!(item.fileType.toUpperCase() == 'PDF')) {
                _context5.next = 5;
                break;
              }
              if (!_this12._Util.isApp()) {
                _context5.next = 2;
                break;
              }
              appToken = localStorage.getItem('app-token') || '';
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'pdf' + item.fileNo,
                  url: _this12._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
                }
              });
              _context5.next = 4;
              break;
            case 2:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context5.next = 3;
                break;
              }
              _this12._Util.AddEventFmt100Url(_this12._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
              return _context5.abrupt("return");
            case 3:
              window.location.href = _this12._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
            case 4:
              _context5.next = 6;
              break;
            case 5:
              if (new RegExp(item.fileType.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
                _this12._Util.post(_this12._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo
                }, function (data) {
                  // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                  if (localStorage.getItem('isFromMft100') === '1') {
                    _this12._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                    return;
                  }
                  _this12.$router.push({
                    name: 'video',
                    query: {
                      share: data.fileUrl
                    }
                  });
                }, function () {}, _this12);
              } else {
                _this12._Util.post(_this12._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo,
                  pageNum: 1,
                  pageSize: 3
                }, function (data) {
                  if (data.displayType == 1) {
                    if (item.fileType.toUpperCase() == 'JPG' || item.fileType.toUpperCase() == 'PNG') {
                      var url = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(item.dataName, "&count=1&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                      if (_this12._Util.isApp()) {
                        api.sendEvent({
                          name: 'acOpenNewFrm',
                          extra: {
                            name: 'picList',
                            url: url
                          }
                        });
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this12._Util.AddEventFmt100Url(url);
                          return;
                        }
                        _this12.$router.push({
                          name: 'picList',
                          query: {
                            isScale: 1,
                            title: item.dataName.replace(/red/g, '#666'),
                            count: 1,
                            pageNum: 1,
                            pageSize: 3,
                            type: 1,
                            fromPage: 'soso',
                            fileNo: item.fileNo
                          }
                        });
                      }
                    } else {
                      if (item.fileType == '微信图文') {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this12._Util.AddEventFmt100Url(data.fileUrl + '?/');
                          return;
                        }
                        location.href = data.fileUrl + '?/';
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this12._Util.AddEventFmt100Url(data.fileUrl);
                          return;
                        }
                        location.href = data.fileUrl;
                      }
                    }
                  } else {
                    var _url2 = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(data.atlasName, "&count=").concat(data.reCount, "&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                    if (_this12._Util.isApp()) {
                      api.sendEvent({
                        name: 'acOpenNewFrm',
                        extra: {
                          name: 'picList',
                          url: _url2
                        }
                      });
                    } else {
                      // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                      if (localStorage.getItem('isFromMft100') === '1') {
                        _this12._Util.AddEventFmt100Url(_url2);
                        return;
                      }
                      _this12.$router.push({
                        name: 'picList',
                        query: {
                          isScale: 1,
                          title: data.atlasName,
                          count: data.reCount,
                          pageNum: 1,
                          pageSize: 3,
                          type: 1,
                          fileNo: item.fileNo,
                          fromPage: 'soso'
                        }
                      });
                    }
                  }
                }, function () {}, _this12);
              }
            case 6:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    /**
       * 子组件触发的事件，可能是打开资料，也可能是打开部件信息和测试数据
       * @param {Object} item 点击的每一项数据
       */
    parentFn: function parentFn(item) {
      if (item.parentClassId == 10087 || item.parentClassId == 10088) {
        this.openPartTestDetail(item);
      } else if (item.parentClassId == 10086) {
        this.openFaultCodeDesc(item, null, item.indexNum * 1 + 1, item.indexNum * 1 + 1);
      } else {
        this.toMeansDetail(item);
      }
    },
    /**
       * 查看部件信息或者测试数据的详情
       * @param {Object} item 点击的每一条
       */
    openPartTestDetail: function openPartTestDetail(item, index) {
      var _this13 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
        var result, url;
        return _regenerator.default.wrap(function (_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              _this13.refNo = item.code;
              _this13.queryKey = item.solrTypeAndKey;
              _context6.next = 1;
              return _this13._Util.judgePower({
                dataType: item.parentClassId == 10087 ? 'PARTS_INFO' : 'TEST_DATA',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this13);
            case 1:
              result = _context6.sent;
              if (item.parentClassId == 10087) {
                url = _this13.isNewGray === 1 ? 'POST_PARTS_INFO_DETAIL_OPEN_SEARCH' : 'POST_PARTS_INFO_GET';
                _this13._Util.post(_this13._Api[url], {
                  refNo: item.code
                }, function (data) {
                  if (!data.length && _this13.nowFolderId != 0) {
                    _this13._Util.showMsgBox('小轨没有查到关键信息');
                    return;
                  }
                  _this13.detailResult = {
                    source: data,
                    attrItems: _partsTableConfig.default
                  };
                  _this13.question = '?type=2&text2=' + data[0].pyq;
                  if (!item.isShowDetail) {
                    _this13.showDetailNew = true;
                  }
                }, function () {}, _this13);
              } else {
                _this13.testCode = item.code;
                _this13.testIndex = index;
                if (!item.isShowDetail) {
                  // 有了isShowDetail说明是自动匹配到的，不是点击打开的
                  _this13.showDetailNew2 = true;
                }
              }
            case 2:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    /**
       * 关闭测试数据模态框
       */
    closeTestData: function closeTestData() {
      this.showDetailNew2 = false;
      this.testCode = '';
    },
    callSearch: function callSearch(val) {
      var _this14 = this;
      if (val.classifyName && val.classifyName === '故障码') {
        this._Util.post(this._Api.POST_GET_CAR_TAB_INFO, {
          keyword: this.copyKeyWord
        }, function (data) {
          var url = location.origin + "/v4/faultCode-subpackage/pages/search?searchType=".concat(data.searchType, "&keyword=").concat(data.keyword);
          _this14._Util.publicOpenPage({
            url: url,
            appName: 'faultCodeSearch'
          });
        }, function () {}, this);
        return;
      }
      var curIndex = 0;
      val.folderId = val.parentClassId;
      this.nowFolderId = val.parentClassId;
      this.tabList.forEach(function (item, index) {
        if (_this14.nowFolderId == item.folderId) {
          curIndex = index;
        }
      });
      setTimeout(function () {
        _this14.tabScroll.scrollToElement(document.getElementById('tab' + curIndex), 300);
      }, 300);
      this.searchFn('tab', val);
    },
    /**
       * 点击小轨调查的解决按钮
       */
    canEvent: function canEvent() {
      var that = this;
      that.showCan = true;
      (0, _mintUi.Toast)({
        message: '感谢您的反馈',
        duration: 1500
      });
    },
    /*
        * 打开建议弹窗
      */
    showWindow: function showWindow() {
      this.showWindowMask = true;
    },
    /*
        * 关闭建议弹窗
      */
    closeWindowMask: function closeWindowMask() {
      this.showWindowMask = false;
      this.imgSrc = [];
      this.myAdvise = '';
    },
    /*
        * 提交建议
      */
    submitEvent: function submitEvent() {
      var that = this;
      if (that.myAdvise == '') {
        that._Util.showMsgBox('请填写相关描述');
        return;
      }
      that._Util.post(that._Api.POST_FALT_CODE_USERFEEDBACK, {
        dataDescribe: that.myAdvise,
        dataType: 2,
        faultCodeUrl: that.imgSrc.join(','),
        faultType: 0,
        faultCode: that.keyWord
      }, function (data) {
        that.showWindowMask = false;
        that.imgSrc = [];
        that.myAdvise = '';
      }, function () {}, that);
    },
    /*
        * 图片上传
      */
    upload: function upload(e) {
      var that = this;
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        var formData = new FormData();
        formData.append('file', file);
        formData.append('token', that.token);
        var url = '';
        if (that._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        _jquery.default.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          that.imgSrc.push(res.key);
        });
      }
    },
    /**
       * 浏览单张图片
       */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      var _this15 = this;
      event.preventDefault();
      var _imgUrl = this.bucketUrl + imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return _this15.bucketUrl + v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
       * 打开ecu弹窗
       */
    openPopup: function openPopup() {
      this.showPop = true;
    },
    /**
     * 选择分类或品牌
     */
    selectClassOrBrand: function selectClassOrBrand(name, type, index) {
      var _this16 = this;
      var animationFlag = false;
      this.typeList = [];
      if (type === 'class') {
        this.classificationTemp = this.classificationTemp === name ? null : name;
        this.brandTemp = null;
        animationFlag = !this.classificationTemp;
      } else if (type === 'brand') {
        this.brandTemp = this.brandTemp === name ? null : name;
        animationFlag = !this.brandTemp;
      }
      this.typeTemp = null;
      if (this.classificationTemp || !this.greyVersion) {
        var params = {
          keyword: this.faultKeyword,
          system: this.brandTemp === '全部' ? '' : this.brandTemp,
          property: this.typeTemp,
          moduleNames: this.classificationTemp,
          vehiDirTopNames: this.brandTemp,
          vehiDirBottomNames: this.typeTemp,
          type: this.type,
          pageNum: 1,
          pageSize: 10
        };
        this._Util.post(this._Api.XNY_POST_FAULT_SEARCH_NEW, params, function (data) {
          if (_this16.greyVersion) {
            if (type === 'class') {
              _this16.brandList = data.vehicelList || [];
              _this16.brandList.unshift('全部');
            } else if (type === 'brand') {
              _this16.typeList = data.vehicelList || [];
              _this16.typeList.unshift('全部');
            }
          } else {
            console.log(111);
            if (type === 'class') {
              _this16.brandList = [];
              if (data.modelVos && data.modelVos.length) {
                data.modelVos.forEach(function (item) {
                  _this16.brandList.push(item.name);
                });
                _this16.brandList.unshift('全部');
              }
            } else if (type === 'brand') {
              _this16.typeList = [];
              if (data.modelVos && data.modelVos.length) {
                data.modelVos.forEach(function (item) {
                  _this16.typeList.push(item.name);
                });
                _this16.typeList.unshift('全部');
              }
            }
          }
        }, function () {}, this);
      }
      // 选择分类和品牌，定位节点位置
      if (animationFlag) return;
      setTimeout(function () {
        var filterContainer = _this16.$refs.filterContainer;
        var titles = filterContainer.getElementsByClassName('content-title');
        var lists = filterContainer.getElementsByClassName('content-list');
        var eleHeight = titles[index].offsetTop + lists[index].offsetHeight;
        filterContainer.scrollTop = eleHeight - 40;
      }, 300);
    },
    /**
       * 选择型号
       */
    selectType: function selectType(name) {
      this.typeTemp = this.typeTemp === name ? null : name;
    },
    /**
       * 搜索品牌型号
       */
    confrimSelect: function confrimSelect() {
      if (!this.brandTemp && this.greyVersion) {
        (0, _mintUi.Toast)({
          message: '请选择品牌部件',
          duration: 1500
        });
        return;
      }
      this.showPop = false;
      this.filterOptions = {
        classificationName: this.classificationTemp,
        brandName: this.brandTemp,
        typeName: this.typeTemp
      };
      if (this.nowFolderId == 10086) {
        this.mescroll.resetUpScroll();
      } else {
        this.filterFromAllTab = true;
        this.callSearch({
          parentClassId: 10086
        });
      }
    },
    /**
       * 展开合并项
       */
    expand: function expand(item, index) {
      this.currentIndex = index;
    },
    /**
       * 打开故障码详情
       * @param {Object} item 故障码信息
       * @param {Object} prantItem 故障码信息
       * @param {Number} pIndex 合并项列表索引
       * @param {Number} index 合并项的故障码列表索引
       */
    openFaultCodeDesc: function openFaultCodeDesc(item, prantItem, pIndex, index) {
      var _this17 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
        var num, queryStr, _url;
        return _regenerator.default.wrap(function (_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              // const result = await this._Util.judgePower({
              //   dataType: 'FAULT_CODE', // 对资料进行权限判断
              //   params: {
              //     eventType: 'DETAILS_DATA'
              //   }
              // }, this)
              // console.log('result: ', result)
              if (_this17.haveReadId && _this17.haveReadId.indexOf(item.fcsId) === -1) {
                _this17.haveReadId.push(item.fcsId);
                _this17.$set(item, 'haveRead', true);
              }
              if (_this17.nowFolderId == 10086) {
                _this17.saveDataAndPosition({
                  reasultList: _this17.reasultList,
                  currentIndex: _this17.currentIndex,
                  filterOptions: _this17.filterOptions,
                  haveReadId: _this17.haveReadId,
                  brandList: _this17.brandList,
                  searchSecond: _this17.searchSecond,
                  copyKeyWord: _this17.copyKeyWord,
                  meansTotal: _this17.meansTotal,
                  totalCount: _this17.totalCount,
                  userStatus: _this17.userStatus,
                  pageNum: _this17.mescroll.optUp.page.num,
                  randomNum: _this17.randomNum,
                  intelligentRecommend: _this17.intelligentRecommend,
                  typeList: _this17.typeList,
                  classificationList: _this17.classificationList,
                  greyVersion: _this17.greyVersion
                });
              } else {
                _this17.saveDataAndPosition({
                  meansList: _this17.meansList,
                  cardList: _this17.cardList,
                  testList: _this17.testList,
                  partInfoList: _this17.partInfoList,
                  faultCardInfo: _this17.faultCardInfo,
                  dictionaryList: _this17.dictionaryList,
                  brandList: _this17.brandList,
                  copyKeyWord: _this17.copyKeyWord,
                  meansTotal: _this17.meansTotal,
                  totalCount: _this17.totalCount,
                  userStatus: _this17.userStatus,
                  pageNum: _this17.mescroll.optUp.page.num,
                  randomNum: _this17.randomNum,
                  intelligentRecommend: _this17.intelligentRecommend,
                  typeList: _this17.typeList,
                  classificationList: _this17.classificationList,
                  greyVersion: _this17.greyVersion
                });
              }
              // 点击故障码
              num = 0;
              if (item.num || item.num === 0) {
                num = item.num;
              } else {
                num = prantItem && (prantItem.num || 0);
              }
              if (!(item.isNew === 0)) {
                _context7.next = 4;
                break;
              }
              queryStr = 'faultTag=' + item.property + '&keyWord=' + _this17.faultKeyword + '&detailId=' + item.sn + '&showAd=true' + '&filter=' + '&randomStr=' + _this17.randomStr + '&total=' + _this17.totalCount + '&page=' + _this17.mescroll.optUp.page.num + '&hlFlField=' + '&moduleType=20' + '&hlFl=';
              _url = location.origin + '/v2/business/pay/appSearchDetail?' + encodeURI(queryStr);
              if (!_this17._Util.isApp()) {
                _context7.next = 1;
                break;
              }
              api.sendEvent({
                name: 'faultCodeDescXny',
                extra: {
                  name: 'faultCodeDesc',
                  notGive: 1,
                  url: _url
                }
              });
              _context7.next = 3;
              break;
            case 1:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context7.next = 2;
                break;
              }
              _this17._Util.AddEventFmt100Url(_url);
              return _context7.abrupt("return");
            case 2:
              window.top.location.assign(_url);
            case 3:
              _context7.next = 7;
              break;
            case 4:
              sessionStorage.removeItem('visitTimes');
              sessionStorage.removeItem('ureaId');
              if (!_this17._Util.isApp()) {
                _context7.next = 5;
                break;
              }
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'faultCodeDesc',
                  notGive: 1,
                  url: "".concat(location.origin, "/v2/library/faultCode2/faultCodeDesc?fcsId=").concat(item.fcsId, "&sn=").concat(item.sn, "&pode=").concat(item.pcode, "&keyword=").concat(_this17.faultKeyword, "&vehiDirId=").concat(item.vehiDirId, "&from=newFaultSearch")
                }
              });
              _context7.next = 7;
              break;
            case 5:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context7.next = 6;
                break;
              }
              _this17._Util.AddEventFmt100Url("".concat(location.origin, "/v2/library/faultCode2/faultCodeDesc?fcsId=").concat(item.fcsId, "&sn=").concat(item.sn, "&pode=").concat(item.pcode, "&keyword=").concat(_this17.faultKeyword, "&vehiDirId=").concat(item.vehiDirId, "&from=newFaultSearch"));
              return _context7.abrupt("return");
            case 6:
              _this17.$router.push({
                name: 'faultCodeDescXny',
                query: {
                  fcsId: item.fcsId,
                  sn: item.sn,
                  pode: item.pcode,
                  keyword: _this17.faultKeyword,
                  vehiDirId: item.bujianId,
                  from: 'newFaultSearch'
                }
              });
            case 7:
            case "end":
              return _context7.stop();
          }
        }, _callee7);
      }))();
    },
    /**
       * 获取故障码查询结果
       */
    getFaultList: function getFaultList(page) {
      var _this18 = this;
      this.searchParms.pageNum = page.num;
      var params = {
        system: this.filterOptions.brandName === '全部' ? '' : this.filterOptions.brandName,
        property: this.filterOptions.typeName === '全部' ? '' : this.filterOptions.typeName,
        moduleNames: this.filterOptions.classificationName,
        vehiDirTopNames: this.filterOptions.brandName,
        vehiDirBottomNames: this.filterOptions.typeName,
        type: this.type,
        pageNum: page.num,
        pageSize: page.size
      };
      if (this.$route.query.faultType === 'spn') {
        params.spnFmi = this.keyWord.trim();
      } else {
        params.keyword = this.keyWord.trim();
      }
      if (page.num === 1) {
        this.reasultList = [];
      }
      this.faultKeyword = this.copyKeyWord;
      this.oldKeyword = this.faultKeyword;
      this._Util.post(this._Api.XNY_POST_FAULT_SEARCH_NEW, params, function (data) {
        if (_this18.firstFilter) {
          // this.greyVersion = data.faultDescFlag + '' === 'null'
          _this18.greyVersion = false; //灰度这个字段先强制设为false，以后再看他这里是怎么确定灰度的
          if (_this18.greyVersion) {
            _this18.classificationList = data.vehicelList;
          } else {
            _this18.brandList = [];
            if (data.modelVos && data.modelVos.length) {
              data.modelVos.forEach(function (item) {
                _this18.brandList.push(item.name);
              });
            }
          }
          _this18.classificationTemp = null;
          _this18.brandTemp = null;
          _this18.typeTemp = null;
          _this18.firstFilter = false;
        }
        if (page.num === 1) {
          _this18.totalCount = data.pageVo.totalCount;
          _this18.logTotal = data.pageVo.totalCount;
          _this18.searchSecond = data.searchSecond;
        }
        var dataList = data.pageVo.dataList;
        _this18.reasultList = _this18.reasultList.concat(dataList);
        if (_this18.nowFolderId == 0) {
          var tempObj = {
            classifyName: '故障码',
            parentClassId: 10086,
            totalCount: data.pageVo.totalCount,
            modelVos: _this18.classificationList,
            shareBos: [],
            faultDescFlag: data.faultDescFlag
          };
          dataList.forEach(function (item, index) {
            tempObj.shareBos.push(_objectSpread({
              dataName: (item.pcode || '') + ' ' + (item.descCn || ''),
              id: 'fault' + index,
              parentClassId: 10086
            }, item));
          });
          _this18.faultCardInfo = tempObj;
        }
        if (_this18.reasultList.length === 0) {
          _this18.showNullTip = true;
        } else {
          _this18.showNullTip = false;
        }
        _this18.$nextTick(function () {
          _this18.mescroll.endSuccess(dataList.length);
        });
        _this18.searchKeywords2(page);
        _this18.searchKeywords1();
      }, function () {}, this);
    },
    /**
       * 记录数据和位置
       */
    saveDataAndPosition: function saveDataAndPosition(params) {
      var scrollTop = this.mescroll.getScrollTop();
      params.scrollTop = scrollTop;
      var position = params;
      sessionStorage.setItem('new_pageParams', JSON.stringify(position));
    },
    /**
       * 故障码查询意见反馈
       */
    feedBack: function feedBack() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=11e80dba&data=\u65B0\u6545\u969C\u7801\u67E5\u8BE2\u7ED3\u679C_").concat(this.faultKeyword);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
       * 智能推荐列表
       */
    searchKeyWordList: function searchKeyWordList() {
      var _this19 = this;
      this.intelligentRecommend = null;
      this._Util.post(this._Api.POST_SEARCH_KEYWORD_DETAIL, {
        keyword: this.keyWord
      }, function (data) {
        var sosoKeyWordImgTextVoList = data.sosoKeyWordImgTextVoList || [];
        var materialList = sosoKeyWordImgTextVoList.filter(function (item) {
          return item.type === 2;
        });
        var pathList = sosoKeyWordImgTextVoList.filter(function (item) {
          return item.type === 3;
        });
        var itemObj = sosoKeyWordImgTextVoList.find(function (item) {
          return item.type === 4;
        }) || {
          explanation: '',
          textContent: ''
        };
        var explanation = itemObj.explanation || '';
        var brArr = explanation.split('<br>');
        var textArr = brArr.filter(function (item) {
          return !item.includes('<img') && !item.includes('<video');
        }).map(function (item) {
          return item.replace(/<div>/g, '').replace(/<\/div>/g, '').replace(/<br>/g, '');
        }) || [];
        var explanationText = textArr.find(function (item) {
          return item.length > 0;
        }) || '';
        var imgUrl = '';
        if (explanation.indexOf('<img') !== -1) {
          var imgStr = explanation.match(/<img(.+?)>/g).toString();
          imgStr.match(/src="(.+?)"/g);
          imgUrl = RegExp.$1;
        }
        var list = materialList.concat(pathList);
        var isHavedDetail = itemObj.textContent || itemObj.explanation;
        if (explanationText.length === 0 && list.length === 0 && imgUrl.length === 0) return;
        _this19.intelligentRecommend = {
          isHavedDetail: isHavedDetail,
          title: _this19.keyWord,
          explanationText: explanationText,
          imgUrl: imgUrl,
          list: list
        };
      }, function () {}, this);
    },
    /**
       * 推荐图片预览
       */
    imagePreview: function imagePreview(img) {
      (0, _imagePreview.default)({
        images: [img]
      });
    },
    /**
       * 查看推荐详情
       */
    openUrl: function openUrl(item) {
      if (item.linkUrl && item.linkUrl !== '') {
        window.location.href = item.linkUrl;
      }
    },
    /**
       * 搜索结果翻页埋点
       */
    searchKeywords2: function searchKeywords2(page) {
      if (page.num > 1) {
        // this._Util.sensorsCollect('search_pageturning', {
        //   operation_page: '资料查询',
        //   keywords: this.keyWord,
        //   search_type: this.$route.query.title,
        //   libraryfile_amount: this.logTotal,
        //   search_id: this.randomNum,
        //   file_page: page.num,
        //   paging_num: page.size
        // })
      }
    },
    searchKeywords1: function searchKeywords1() {
      this.search_history_sort = '';
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"soso-new"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showtabPan),expression:"showtabPan"}],staticClass:"tab-pan",on:{"touchmove":function($event){$event.preventDefault();},"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showtabPan = false}}},[_c('div',{staticClass:"list-box"},[_c('p',[_vm._v("请选择资料类型")]),_vm._v(" "),_c('ul',{staticClass:"clearfix"},[_vm._l((_vm.tabList),function(item){return [(item.isShow)?_c('li',{key:item.id,class:{'selected': _vm.nowFolderId == item.folderId},on:{"click":function($event){return _vm.searchFn('tab', item, 'tabpan')}}},[_vm._v(_vm._s(item.title))]):_vm._e()]})],2)])]),_vm._v(" "),_c('div',{staticClass:"input_box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyWord),expression:"keyWord",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],class:{'input-animate': _vm.isFocus || _vm.keyWord},attrs:{"type":"text","placeholder":"请输入搜索内容"},domProps:{"value":(_vm.keyWord)},on:{"focus":function($event){_vm.isFocus = true},"blur":[_vm.inputBlur,function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value.trim()}}}),_vm._v(" "),_c('button',{class:{'animate': _vm.isFocus || _vm.keyWord},on:{"click":function($event){return _vm.searchFn('btn')}}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{ref:"mescroll",staticClass:"result-box mescroll",class:{'fault-result-box': _vm.nowFolderId == 10086}},[_c('div',{staticClass:"searchInBox",style:(_vm.minHeight)},[(_vm.nowFolderId == 0 && _vm.intelligentRecommend)?_c('intelligent-match',{attrs:{"intelligent-recommend":_vm.intelligentRecommend,"random-num":_vm.randomNum}}):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 0)?_vm._l((_vm.dictionaryList),function(item,ind){return _c('div',{key:ind + 10000,staticClass:"dictionary",style:({'margin-bottom': ind === _vm.dictionaryList.length - 1 ? '0.5rem' : '0'}),on:{"click":function($event){return _vm.toDicDetail(item, ind)}}},[_c('img',{attrs:{"src":item.imgUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v(_vm._s(item.pathName))]),_vm._v(" "),_c('i',{staticClass:"arror"})])}):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 0)?[(_vm.faultCardInfo.shareBos && _vm.faultCardInfo.shareBos.length)?_c('div',{staticClass:"crad-box"},[_c('Result-crad',{attrs:{"random-num":_vm.randomNum,"card-obj":_vm.faultCardInfo,"is-new-gray":_vm.isNewGray},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1):_vm._e(),_vm._v(" "),(_vm.faultCardInfo.modelVos && _vm.faultCardInfo.modelVos.length && _vm.faultCardInfo.faultDescFlag === 0)?_c('div',{staticClass:"dictionary",on:{"click":_vm.openPopup}},[_c('img',{attrs:{"src":__webpack_require__(1459),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v("按ECU型号查询故障码")]),_vm._v(" "),_c('i',{staticClass:"arror"})]):_vm._e(),_vm._v(" "),(_vm.partCardInfo.shareBos && _vm.partCardInfo.shareBos.length)?_c('div',{staticClass:"crad-box"},[_c('Result-crad',{attrs:{"is-new-gray":_vm.isNewGray,"random-num":_vm.randomNum,"card-obj":_vm.partCardInfo},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1):_vm._e(),_vm._v(" "),(_vm.testCradInfo.shareBos && _vm.testCradInfo.shareBos.length)?_c('div',{staticClass:"crad-box"},[_c('Result-crad',{attrs:{"is-new-gray":_vm.isNewGray,"random-num":_vm.randomNum,"card-obj":_vm.testCradInfo},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1):_vm._e(),_vm._v(" "),_vm._l((_vm.cardList),function(item,index){return _c('div',{key:index,staticClass:"crad-box"},[_c('Result-crad',{attrs:{"is-new-gray":_vm.isNewGray,"random-num":_vm.randomNum,"card-obj":item},on:{"callMeansFn":_vm.parentFn,"parentSearch":_vm.callSearch}})],1)})]:_vm._e(),_vm._v(" "),(_vm.nowFolderId != 10087 && _vm.nowFolderId != 10088)?_c('ul',{staticClass:"meansList-box",style:({'margin-top': _vm.nowFolderId == 0 ? '0.5rem' : 0}),attrs:{"id":"listContainer"}},_vm._l((_vm.meansList),function(item,index){return _c('li',{key:item.id,staticClass:"meansList",on:{"click":function($event){return _vm.toMeansDetail(item, index)}}},[_c('div',{staticClass:"text",domProps:{"innerHTML":_vm._s(item.dataName)}},[_vm._v(_vm._s(item.dataName))])])}),0):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10087 || _vm.nowFolderId == 10088)?_c('ul',{staticClass:"meansList-box",attrs:{"id":"listContainer"}},_vm._l(((_vm.nowFolderId == 10087 ? _vm.partInfoList: _vm.testList)),function(item,index){return _c('li',{key:index,staticClass:"meansList",class:{'meanDetail': item.isShowDetail}},[(!item.isShowDetail)?_c('div',{staticClass:"text",on:{"click":function($event){return _vm.openPartTestDetail(item, index)}}},[_vm._v(_vm._s(item.name)+": "+_vm._s(item.code))]):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10087 && item.isShowDetail)?_c('div',{staticClass:"detail"},[(item.isShowDetail)?_c('Part-detail',{attrs:{"result":_vm.detailResult,"random-num":_vm.randomNum,"module-type":_vm._Enums.COLLECTION_MODULE.PARTS,"parent":"10087","is-pop":0,"ref-no":_vm.refNo,"query-key":_vm.queryKey},on:{"parentCollect":_vm.collectFn}}):_vm._e()],1):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10088 && item.isShowDetail)?_c('div',{staticClass:"detail"},[(true)?_c('Test-data-detail',{attrs:{"test-code":item.code,"is-pop":0,"parent":"10088","index":index,"is-new-gray":_vm.isNewGray},on:{"parentCollect":_vm.collectFn}}):undefined],1):_vm._e()])}),0):_vm._e(),_vm._v(" "),(_vm.nowFolderId == 10086)?_c('div',{staticClass:"fault-code"},[_c('div',{staticClass:"page"},[_c('div',{staticClass:"reasult-page"},[(!_vm.showNullTip)?_c('div',{staticClass:"filter-box"},[_c('div',{staticClass:"filter-btn",on:{"click":function($event){return _vm.openPopup()}}},[_vm._v(_vm._s(_vm.filterOptions.typeName || '点击选择 品牌部件'))])]):_vm._e(),_vm._v(" "),(!_vm.showNullTip)?_c('div',{staticClass:"reasult-container"},[(_vm.filterOptions.brandName)?_c('div',{staticClass:"reasult-tip"},[_vm._v(_vm._s(_vm.filterOptions.classificationName)+" "+_vm._s(_vm.filterOptions.brandName)+" "+_vm._s(_vm.filterOptions.typeName)+" 故障码：")]):_c('div',{staticClass:"reasult-tip"},[_vm._v("请点击上方按钮 选择品牌部件：")]),_vm._v(" "),_vm._l((_vm.reasultList),function(item,index){return _c('div',{key:index,staticClass:"reasult-item"},[_c('div',[_c('div',{staticClass:"item-inner",class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFaultCodeDesc(item, null, index + 1, index + 1)}}},[_c('p',{domProps:{"innerHTML":_vm._s((item.pcode || '') + ' ' + (item.descCn || ''))}}),_vm._v(" "),(item.vehiDirParentName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(item.vehiDirParentName))]):_vm._e(),(item.vehiDirName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(item.vehiDirName))]):_vm._e()])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentIndex === index && item.num > 0),expression:"currentIndex === index && item.num > 0"}],staticClass:"item-list"},_vm._l((item.searchFaultCodeVos),function(r,i){return _c('div',{key:i},[_c('div',{staticClass:"item-inner",class:{'have-read': r.haveRead},on:{"click":function($event){return _vm.openFaultCodeDesc(r, item, index + 1, i + 2)}}},[_c('p',{domProps:{"innerHTML":_vm._s(r.pcode + ' ' + r.descCn)}}),_vm._v(" "),(r.vehiDirParentName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(r.vehiDirParentName))]):_vm._e(),(r.vehiDirName)?_c('span',{staticClass:"meta"},[_vm._v(_vm._s(r.vehiDirName))]):_vm._e()])])}),0),_vm._v(" "),(_vm.currentIndex !== index && item.num > 0)?_c('div',{staticClass:"item-bottom",on:{"click":function($event){return _vm.expand(item, index)}}},[_c('span',{staticClass:"lf"},[_vm._v("展开 "+_vm._s(item.num)+" 条合并项")]),_vm._v(" "),_c('span',{staticClass:"arrow-bottom"})]):_vm._e()])})],2):_vm._e()])])]):_vm._e()],2)]),_vm._v(" "),_c('mt-popup',{staticClass:"popupStyle",attrs:{"position":"bottom"},model:{value:(_vm.showDetailNew),callback:function ($$v) {_vm.showDetailNew=$$v},expression:"showDetailNew"}},[(_vm.showDetailNew)?_c('Part-detail',{attrs:{"result":_vm.detailResult,"random-num":_vm.randomNum,"module-type":_vm._Enums.COLLECTION_MODULE.PARTS,"parent":"10087","is-pop":1,"ref-no":_vm.refNo,"query-key":_vm.queryKey},on:{"closeFn":function($event){_vm.showDetailNew = false},"parentCollect":_vm.collectFn}}):_vm._e()],1),_vm._v(" "),_c('mt-popup',{staticClass:"popupStyle",attrs:{"position":"bottom"},model:{value:(_vm.showDetailNew2),callback:function ($$v) {_vm.showDetailNew2=$$v},expression:"showDetailNew2"}},[(_vm.showDetailNew2)?_c('Test-data-detail',{attrs:{"test-code":_vm.testCode,"is-pop":1,"parent":"10088","random-num":_vm.randomNum,"test-ind":_vm.testIndex,"is-new-gray":_vm.isNewGray},on:{"close":_vm.closeTestData,"parentCollect":_vm.collectFn}}):_vm._e()],1),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container",attrs:{"position":"bottom"},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{ref:"filterContainer",staticClass:"content-container mescroll-touch"},[_c('div',[(_vm.greyVersion)?_c('div',{staticClass:"content-title"},[_vm._v("分类")]):_vm._e(),_vm._v(" "),(_vm.greyVersion)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.classificationList),function(name,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectClassOrBrand(name, 'class', 0)}}},[_c('span',{class:{'active': _vm.classificationTemp === name}},[_vm._v(_vm._s(name))])])}),0):_vm._e(),_vm._v(" "),(_vm.classificationTemp || !_vm.greyVersion)?_c('div',{staticClass:"content-title"},[_vm._v("品牌名称")]):_vm._e(),_vm._v(" "),(_vm.classificationTemp || !_vm.greyVersion)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.brandList),function(name,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectClassOrBrand(name, 'brand', 1)}}},[_c('span',{class:{'active': _vm.brandTemp === name}},[_vm._v(_vm._s(name))])])}),0):_vm._e(),_vm._v(" "),(_vm.brandTemp)?_c('div',{staticClass:"content-title"},[_vm._v("部件名称")]):_vm._e(),_vm._v(" "),(_vm.brandTemp)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.typeList),function(t,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(t)}}},[_c('span',{class:{'active': _vm.typeTemp === t}},[_vm._v(_vm._s(t))])])}),0):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn",on:{"click":function($event){return _vm.confrimSelect()}}},[_vm._v("确定")])])]),_vm._v(" "),(_vm.collectObj.show)?_c('div',{staticClass:"collect-box window-mask"},[_c('div',{staticClass:"collect-cont"},[_c('div',{staticClass:"collect-tit"},[_vm._v("提示")]),_vm._v(" "),_c('div',{staticClass:"collect-text"},[_vm._v(_vm._s(_vm.collectTip))]),_vm._v(" "),_c('div',{staticClass:"collect-btns"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.collectCancle.apply(null, arguments)}}},[_vm._v("取消")]),_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.collectOk.apply(null, arguments)}}},[_vm._v("确定")])])])]):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(594);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4247e891_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1195);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3197)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4247e891_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4247e891_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3198);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4f02453f", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak]{display:none!important}.detail .newline{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.detail .window{background:#f2f2f2;padding-bottom:30px}.detail .symask{position:fixed;top:0;left:0;width:100%;height:100%;background:#000;z-index:100;opacity:.4;z-index:1}.sytip{width:13.9rem;position:fixed;z-index:101;border-radius:8px;background:#fff;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#333;opacity:1;text-align:center;padding:1rem 0;font-size:.9rem}.detail .guzhang{padding:0}.detail .item{width:96%;margin-left:2%;margin-bottom:6px;padding:0 10px;position:relative;background:#fff;border-radius:4px}.detail .tt{margin-top:0;width:100%;border-bottom:1px solid #f5f5f5;min-height:40px;line-height:40px;color:#333;padding:8px 0;display:table;box-sizing:border-box;-webkit-box-sizing:border-box}.detail .tt .f16{display:table-cell;line-height:20px;vertical-align:middle;font-size:16px;font-weight:700;color:#377ee1}.detail .item .des{padding:2% 0;box-sizing:border-box;-webkit-box-sizing:border-box}.detail .item .des .mt5{font-size:16px;color:#333;line-height:25px;width:100%}.detail .item .des.space{white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.detail .item .des .mt5 .open-term{padding-right:3px;font-style:italic}.detail .item .des .mt5 .open-term:after{content:\"?\";font-size:14px;display:inline-block;margin-left:5px;width:19px;height:19px;border:1px solid #0070c0;border-radius:50%;-webkit-border-radius:50%;text-align:center;line-height:19px;font-style:normal}.detail .item .des .mt5 a{text-decoration:underline;color:#1766b3}.detail .item .des .mt5 span{font-size:100%;display:inline}.detail .item .des .mt5 p{text-indent:0!important}.detail .item .des .mt5 img{max-width:100%!important}.detail .item .des .mt5 video{max-width:100%;background:#000;height:auto}.detail .item:first-of-type{width:100%;border-radius:0;margin-left:0}.detail .item:first-of-type .tt{height:50px;line-height:50px}.detail .item1{margin-bottom:10px;color:#333;background:#fff;top:50px}.detail .fixed{position:fixed;z-index:2;width:100%;top:0;background:#ebf3ff}.detail .item1 .left{min-height:51px;line-height:51px;font-size:18px;padding-left:10px}.detail .item1 .right{float:right}.right .arrow{width:6px;position:absolute;right:20px;top:48%;-ms-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translateY(-50%);-webkit-transition:all .3s;transition:all .3s}.right .up{-ms-transform:rotate(-180deg);transform:rotate(-180deg);-webkit-transform:rotate(-180deg)}.detail .item1 .f16{color:#000;padding:11px 0 8px;line-height:22px;box-sizing:border-box;-webkit-box-sizing:border-box;width:-webkit-calc(100% - 93px);width:calc(100% - 93px)}.detail .item1 .selc{width:100%;padding:0 15px;min-height:30px}.detail .toTop{position:fixed;bottom:72px;right:8px;width:44px;height:44px;background:url(" + escape(__webpack_require__(3199)) + ") no-repeat 50%;background-size:44px 44px}.detail .windowMask{width:100%;height:100%;background:rgba(0,0,0,.4);position:fixed;bottom:0;left:0;z-index:-1;display:none}.detail .windowMaskShow{display:block;z-index:200}.contentBox{width:300px;height:280px;position:absolute;top:50%;margin-top:-190px;left:50%;margin-left:-150px;background:#fff}.a-upload{position:relative;cursor:pointer;overflow:hidden}.a-upload,.uploadimg{width:30px;height:30px}.uploadimg{display:inline-block}.putPhoto{width:30px;height:30px;opacity:0;position:absolute;left:0;top:0}.option{border-top:1px solid #ccc;width:100%;height:40px;position:absolute;bottom:0}.option li{width:50%;float:left;height:40px;text-align:center;line-height:40px;font-size:16px}.option li:nth-of-type(2){background:#b10217;color:#fff}.detail .guzhang{background:#f2f2f2}.butCon{width:100%;height:35px;position:relative;border-top:1px solid #f2f2f2}.butCon>span{position:absolute;width:2px;height:12px;background:#b2b2b2;left:50%;margin-left:-1px;top:50%;margin-top:-6px}.butCon>div{float:left;width:50%;height:100%;font-size:16px;text-align:center;line-height:35px;background:#fff;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.butCon>div:nth-of-type(2){float:right}.butCon>div a{float:right;text-align:center;border-radius:3px;-webkit-border-radius:3px;border:1px solid #ccc;padding:5px 15px}.imgbox img{width:100%!important}.the_system{width:30%;height:30px;line-height:30px;background:#ebf3ff;border-radius:2px;-webkit-border-radius:2px;margin-bottom:8px;font-size:14px;text-align:center}.the_system:not(:nth-of-type(3n)){margin-right:15px}.the_system.active{background:linear-gradient(218deg,#424cf7,#4292f7);color:#fff}.append>div>p>span:first-of-type{height:auto!important}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/toTop.6a5f6b2.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _onlineQa = _interopRequireDefault(__webpack_require__(203));
var _pokingMeComponent = _interopRequireDefault(__webpack_require__(45));
var _comment = _interopRequireDefault(__webpack_require__(3200));
var _correctionsAndProblemsTools = _interopRequireDefault(__webpack_require__(1460));
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    OnlineQa: _onlineQa.default,
    PokingMeComponent: _pokingMeComponent.default,
    comment: _comment.default,
    CorrectionsAndProblemsTools: _correctionsAndProblemsTools.default
  },
  data: function data() {
    return {
      clineName: 'details',
      clineName2: 'detalsTable',
      showCan: false,
      myCode: '',
      index: '',
      result: {},
      total: this.$route.query.total,
      randomStr: this.$route.query.randomStr,
      keyword: this.$route.query.keyWord,
      filter: this.$route.query.filter,
      hlFlField: this.$route.query.hlFlField,
      hlFl: this.$route.query.hlFl,
      moduleType: this.$route.query.moduleType,
      question: this.$route.query.question,
      page: this.$route.query.page,
      className: '',
      showCollect: this.$route.query.showAsk == 'true',
      showAd: this.$route.query.showAd == 'true',
      showWindowMask: '',
      imgSrc: [],
      myAdvise: '',
      ios: '',
      scrolltop: 0,
      checkSrc: '',
      userSta: null,
      imgText: null,
      token: '',
      bucketUrl: '',
      version: '',
      detailId: this.$route.query.detailId,
      firstTag: this.$route.query.firstTag,
      faultTag: this.$route.query.faultTag,
      upOrdown: false,
      // 更多系统点击
      showMask: false,
      // 更多系统浮层
      showTip: false,
      oneTags: [],
      // 选择系统数组
      systemArr: [],
      // 适用车型数组
      isHidden: true,
      // 默认展示省略号
      proId: null,
      // 排查步骤富文本接口
      topHeight: 0,
      // 固定定位的高度
      // timer: null,
      showCommentBox: false,
      checkContent: null,
      // 排查步骤内容
      isSelc: false,
      tabIndex: null,
      selectdSysTag: '',
      // 选中的系统内容
      _html: '',
      // eslint-disable-line
      _text: '',
      // eslint-disable-line
      ishref: 0,
      _name: '',
      // eslint-disable-line
      material: {
        no: '8fa35187',
        sourceType: 2,
        // 类型
        sourceNo: this.$route.query.detailId
      } // 故障码（旧）跳转问答参数
    };
  },
  watch: {
    'question': function question() {
      console.log(this.question);
    },
    result: function result(val) {
      // console.log(val)
      if (val && val.postId) {
        var that = this;
        that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
          that.userSta = data.userStatus;
          if (that.userSta == 2) {
            that._Util.post(that._Api.POST_WXAUTH_GET_APPID, {}, function (data) {
              // that.checkSrc = that._Api.HOSTOLD + 'wxauth/kaxiuyunForumDetail.htm?postId=' + that.result.postId;
              that.getImgTex(val.postId);
            }, function () {}, that);
          }
        }, function () {}, that);
      }
    }
  },
  created: function created() {
    var that = this;
    that.getDetail();
    if (that._Util.isIOS) {
      that.ios = true;
    } else {
      that.ios = false;
    }
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that.ios) {
        // that.upload();
      }
    }, function () {}, that);

    // 获取用户会员状态
    that.getStatus();
  },
  // computed: {
  //     hrefFlag: function() {
  //         return (this.userSta == 2 && this.checkSrc) ? true : false;
  //     }
  // },
  mounted: function mounted() {
    var that = this;
    var scrollbox = document.getElementById('scrollbox');
    scrollbox.onscroll = function () {
      that.scrolltop = scrollbox.scrollTop;
    };
    (0, _jquery.default)(document).on('touchend', function (e) {
      // 使用车型点击添加激活样式
      var target = e.target;
      if ((0, _jquery.default)(target).attr('class') == 'the_system') {
        (0, _jquery.default)(target).addClass('active').siblings().removeClass('active');
      }
    });

    // a链接阻止默认事件，控制跳转到电路图(付费会员)
    (0, _jquery.default)(document).on('click', '.detail .item .des .mt5 a', function (event) {
      event.preventDefault();
      if (that.userSta != 2) {
        // 非付费会员
        (0, _mintUi.MessageBox)({
          title: ' ',
          message: '很抱歉，详细内容只有付费会员可以查看哦～',
          confirmButtonText: '了解付费会员',
          showCancelButton: true
        }).then(function (action) {
          if (action == 'confirm') {
            window.open(location.origin + '/v2/business/pay/certificationRenewal?pathid=故障码&fullPath=' + window.location.href + '&userStatus=' + that.userSta + '&userTitle=' + document.title);
          } else {
            console.log('取消');
          }
        });
        return;
      }
      localStorage.setItem('gzmCheckStepScroll', that.scrolltop);
      // 添加点击系统的名称及index,以便在返回时，记录上一次选择的系统
      var selectSysTagObj = {
        tagName: that.selectdSysTag,
        tabIndex: that.tabIndex
      };
      localStorage.setItem('selectSysTagObj', JSON.stringify(selectSysTagObj));
      var src = (0, _jquery.default)(this).attr('href');
      // var parentDiv = $(this).parents('.des')
      window.top.open(src);
    });

    // 点击名字库，显示相应的排查步骤(付费会员)
    (0, _jquery.default)(document).on('click', '.detail .item .des .mt5 .clickItem', function (event) {
      that._html = (0, _jquery.default)(this).parent();
      that._text = (0, _jquery.default)(this).text();
      that.ishref = 0;
      if (!that._html.find('.append').length) {
        that._html.append("<div class='append'></div>");
      }
      if (that.userSta != 2) {
        // 非付费会员
        (0, _mintUi.MessageBox)({
          title: ' ',
          message: '很抱歉，详细内容只有付费会员可以查看哦～',
          confirmButtonText: '了解付费会员',
          showCancelButton: true
        }).then(function (action) {
          if (action == 'confirm') {
            window.open(location.origin + '/v2/business/pay/certificationRenewal?pathid=故障码&fullPath=' + window.location.href + '&userStatus=' + that.userSta + '&userTitle=' + document.title);
          } else {
            console.log('取消');
          }
        });
        return;
      }
      if (that.result.proId) {
        var id = (0, _jquery.default)(this).attr('data');
        var ele = (0, _jquery.default)('#' + id);
        if (ele.css('display') == 'none') {
          ele.css({
            'display': 'block',
            'padding': '10px',
            'border': '2px solid #999'
          });
        } else {
          ele.hide();
        }
      } else {
        if (!that.proId && that.result.secondOneTag) {
          // 未选择系统
          that.isSelc = true;
          that.showMask = true;
          that.selc();
        } else {
          var _append = that._html.find('.append');
          _append.css({
            'padding': '10px',
            'border': '2px solid #999'
          });
          if (_append.css('display') == 'none') {
            _append.show();
            //  _append.css({'display':'block','padding': '10px','border': '2px solid #999'});
          } else {
            if (_append.find('p').length > 0) {
              _append.hide();
              _append.css({
                'padding': '0',
                'border': '0'
              });
              return;
            }
            that._Util.post(that._Api.POST_FALT_CODE_GETCONTENT, {
              name: that._text,
              proId: that.proId
            }, function (data) {
              if (data) {
                _append.append(data);
              } else {
                that.showMask = true;
                that.showTip = true;
                _append.css({
                  'padding': '0',
                  'border': '0'
                });
              }
            }, function () {}, that);
          }
        }
      }
    });
    // 点击跳转到富文本详情页
    (0, _jquery.default)(document).on('click', '.detail .item .des .mt5 .open-term', function (event) {
      localStorage.setItem('gzmCheckStepScroll', that.scrolltop);
      that._name = (0, _jquery.default)(this).text();
      // var proId = that.result.proId;
      if (!that._name) {
        return;
      }
      if (!that.proId) {
        that.isSelc = true;
        that.showMask = true;
        that.selc();
        that.ishref = 1;
        return;
      }
      var params = {
        name: that._name,
        proId: that.proId
      };
      // 添加点击系统的名称及index,以便在返回时，记录上一次选择的系统
      var selectSysTagObj = {
        tagName: that.selectdSysTag,
        tabIndex: that.tabIndex
      };
      localStorage.setItem('selectSysTagObj', JSON.stringify(selectSysTagObj));
      that.$router.push({
        name: 'checkStep',
        query: params
      });
    });
    switch (this.hlFlField) {
      case 'pcode':
        that.index = this.result.pcode;
        break;
      case 'scode':
        that.index = this.result.scode;
        break;
      case 'code':
        that.index = this.result.code;
        break;
      case 'spn':
        that.index = this.result.spn;
        break;
      case 'fmi':
        that.index = this.result.fmi;
        break;
      case 'spn_fmi':
        that.index = this.result.spn_fmi;
        break;
      case 'dtcm':
        that.index = this.result.dtcm;
        break;
      case 'dtcm_10':
        that.index = this.result.dtcm_10;
        break;
      case 'factory_code':
        that.index = this.result.factory_code;
        break;
      case 'spn_hex':
        that.index = this.result.spn_hex;
        break;
      case 'fmi_hex':
        that.index = this.result.fmi_hex;
        break;
      case 'spn_fmi_hex':
        that.index = this.result.spn_fmi_hex;
        break;
      case 'fmi_code':
        that.index = this.result.fmi_code;
        break;
      case 'kts':
        that.index = this.result.kts;
        break;
      case 'mid':
        that.index = this.result.mid;
        break;
      case 'pid_sid_ppidpsid':
        that.index = this.result.pid_sid_ppidpsid;
        break;
      case 'mid_x_fmi':
        that.index = this.result.mid_x_fmi;
        break;
      case 'oem_1':
        that.index = this.result.oem_1;
        break;
      case 'oem_2':
        that.index = this.result.oem_2;
        break;
    }
  },
  destroyed: function destroyed() {
    (0, _jquery.default)(document).off('click');
    // clearTimeout(this.timer)
    var phead = window.parent.document.getElementsByTagName('head')[0];
    var pel = phead.getElementsByTagName('meta');
    for (var i = 0; i < pel.length; i++) {
      if (pel[i].getAttribute('id') == 'userScale') {
        pel[i].content = 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no';
      }
    }
  },
  methods: {
    // 获取用户会员状态
    getStatus: function getStatus() {
      var that = this;
      that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
        that.userSta = data.userStatus;
      }, function () {}, that);
    },
    getDetail: function getDetail() {
      // 获取详情页的数据
      var that = this;
      var queryTag = that.$route.query.faultTag;
      var params = {
        id: that.detailId,
        firstTag: queryTag
      };
      if (that.$route.query.from === 'newFaultSearch') {
        // 从新的故障码列表页面跳转而来
        params.searchType = 1;
      }
      if (that.moduleType == 20) {
        params.type = 2;
      }
      if (that.firstTag) {
        params.type = 3;
        params.firstTag = that.firstTag;
      }
      that._Util.post(that._Api.POST_FALT_CODE_DETAIL, params, function (data) {
        that.result = data;
        that.proId = that.result.proId;
        that.systemArr = that.result.the_system.split('、');
        that.oneTags = that.result.secondOneTag.split(',').length > 3 ? that.result.secondOneTag.split(',').slice(0, 3) : that.result.secondOneTag.split(',');
        console.log(that.result.secondOneTag.split(','));
        console.log(that.oneTags);
        that.material.data = "sn_".concat(that.result.sn);
        // that.timer = setTimeout(() => {
        //   that.topHeight = $('.fixed').height() + 5
        //   if (localStorage.getItem('selectSysTagObj')) {
        //     const selectSysTagObj = JSON.parse(localStorage.getItem('selectSysTagObj'))
        //     that.$nextTick(function() {
        //       that.collect(selectSysTagObj.tagName, selectSysTagObj.tabIndex)
        //       localStorage.removeItem('selectSysTagObj')
        //     })
        //   }
        // }, 500)
        that.$nextTick(function () {
          that.topHeight = (0, _jquery.default)('.fixed').height() + 5;
          if (localStorage.getItem('selectSysTagObj')) {
            var selectSysTagObj = JSON.parse(localStorage.getItem('selectSysTagObj'));
            that.collect(selectSysTagObj.tagName, selectSysTagObj.tabIndex);
            localStorage.removeItem('selectSysTagObj');
          }
        });
        if (localStorage.getItem('gzmCheckStepScroll') > 0) {
          var scrollTop = Number(localStorage.getItem('gzmCheckStepScroll'));
          setTimeout(function () {
            (0, _jquery.default)('#scrollbox').scrollTop(scrollTop);
            localStorage.setItem('gzmCheckStepScroll', 0);
          });
        }
      }, function () {}, that);
    },
    IsInArray: function IsInArray(arr, val) {
      var testStr = ',' + arr.join(',') + ',';
      return testStr.indexOf(',' + val + ',') != -1;
    },
    collect: function collect(v, i) {
      // 故障码适用车型添加日志记录
      var that = this;
      if (that.oneTags && that.oneTags.length <= 1) return;
      if (that.result.proObj) {
        // console.log(v)
        // console.log(that.result.proObj)
        that.systemArr = that.result.proObj[v].the_system.split('、');
        that.proId = that.result.proObj[v].proId;
      }
      (0, _jquery.default)('.proClick').each(function (i, v) {
        var arr = (0, _jquery.default)(this).attr('proid').split(',');
        if (!that.IsInArray(arr, that.proId)) {
          // $(this).unbind("click",that.sameFunc);
          (0, _jquery.default)(this).removeClass('clickItem');
          (0, _jquery.default)(this).removeAttr('style');
        } else {
          // $(this).bind("click",that.sameFunc);
          (0, _jquery.default)(this).addClass('clickItem');
          (0, _jquery.default)(this).css({
            'text-decoration': 'underline',
            'color': ' #0070C0'
          });
        }
      });
      if (that.showMask && (0, _jquery.default)('.append').length > 0) {
        var _append = that._html.find('.append');
        _append.css({
          'padding': '10px',
          'border': '2px solid #999'
        });
        if (_append.css('display') == 'none') {
          _append.show();
          //  _append.css({'display':'block','padding': '10px','border': '2px solid #999'});
        } else {
          if (_append.find('p').length > 0) {
            _append.hide();
            _append.css({
              'padding': '0',
              'border': '0'
            });
            return;
          }
          if (!that.result.checkContent) {
            that.showMask = true;
            that.showTip = true;
            _append.css({
              'padding': '0',
              'border': '0'
            });
            return;
          }
          that._Util.post(that._Api.POST_FALT_CODE_GETCONTENT, {
            name: that._text,
            proId: that.proId
          }, function (data) {
            if (data) {
              _append.append(data);
            } else {
              that.showMask = true;
              that.showTip = true;
              _append.css({
                'padding': '0',
                'border': '0'
              });
            }
          }, function () {}, that);
        }
      }
      that.tabIndex = i;
      that.selectdSysTag = v;
      if (that.ishref && that.showMask) {
        var params = {
          name: that._name,
          proId: that.proId
        };
        // 添加点击系统的名称及index,以便在返回时，记录上一次选择的系统
        var selectSysTagObj = {
          tagName: that.selectdSysTag,
          tabIndex: that.tabIndex
        };
        localStorage.setItem('selectSysTagObj', JSON.stringify(selectSysTagObj));
        that.$router.push({
          name: 'checkStep',
          query: params
        });
      }
      that.isHidden = false;
      that.showMask = false;
      that.showTip = false;
      that.isSelc = false;
      that.selc();
      if ((0, _jquery.default)('.append').length > 0 && (0, _jquery.default)('.append').find('p').length > 0) {
        (0, _jquery.default)('.append').empty();
        // $('.append').css();
        (0, _jquery.default)('.append').css({
          'display': 'block',
          'padding': '0',
          'border': '0'
        });
      }
      that._Util.collectPageView2({
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '故障代码详情页',
        optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
        param1: window.location.href,
        param2: that.result.id,
        param3: that.randomStr,
        param4: {
          'queryValue': that.keyword,
          'type': '故障码',
          'result': that.total,
          'filter': that.filter
        },
        params5: v
      }, that);
      if (!that.result.checkContent) {
        var _append2 = that._html.find('.append');
        that.showMask = true;
        that.showTip = true;
        _append2.css({
          'padding': '0',
          'border': '0'
        });
        return;
      }
      that._Util.post(that._Api.POST_FALT_CODE_GETCONTENT, {
        name: that.result.checkContent,
        proId: that.proId
      }, function (data) {
        if (data) {
          that.checkContent = data;
        }
      }, function () {}, that);
    },
    getImgTex: function getImgTex(postId) {
      var that = this;
      that._Util.post(that._Api.POST_GET_IMGTEXT, {
        'postId': postId
      }, function (data) {
        if (data.postContent) {
          that.imgText = data.postContent.replace(/\n/g, '<br>');
        }
      }, function () {}, that);
    },
    canEvent: function canEvent() {
      var that = this;
      that.showCan = true;
      // const typeStr = that._Util.getQueryString('typeStr') == 1 ? '首页' : '修车'
      localStorage.setItem('searchID', that._Util.randomChar());
      that._Util.collectPageView2({
        version: that._Util.isApp() ? that.version : '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '故障代码详情页',
        optionType: '点击',
        param1: location.href,
        param2: that.index,
        param3: that.randomStr,
        param4: {
          'queryValue': that.keyWord,
          'type': '故障码',
          'result': that.total,
          'filter': that.filter
        },
        params5: '能'
      }, that);
    },
    close: function close() {
      this.$parent.$emit('closeDetail');
    },
    showFatherWindow: function showFatherWindow() {
      var that = this;
      that.showCan = false;
      localStorage.setItem('searchID', that._Util.randomChar());
      that._Util.collectPageView2({
        version: that._Util.isApp() ? that.version : '',
        postUrl: that._Api.POST_COLLECT,
        moduleType: '资料查询',
        operate_page: '故障代码详情页',
        optionType: '点击',
        param1: location.href,
        param2: that.index,
        param3: that.randomStr,
        param4: {
          'queryValue': that.keyWord,
          'type': '故障码',
          'result': that.total,
          'filter': that.filter
        },
        params5: '不能'
      }, that);
      this.$parent.$emit('showFatherWindow', that.index);
    },
    showOhk: function showOhk(solrType, attrName, ohk, obj) {
      if (solrType == 'Product' && attrName == 'ohk' && ohk) {
        var that = this;
        that._Util.post(that._Api.POST_PARTS_INFO_GET, {
          refNo: ohk,
          productType: 11
        }, function (data) {
          that.result.source = data;
          // that.result.source.push(data);
          that.$parent.$emit('keywordIsChange', ohk);
        }, function () {}, that);
      }
    },
    rewriteHtml: function rewriteHtml(solrType, attrName, str) {
      if (!str) return;
      var temp = '';
      if (solrType == 'Product' && attrName == 'ohk') {
        temp = '<a class="aClass">' + str + '</a>';
      } else {
        if (this.keyword) {
          temp = str.replace(new RegExp(this.keyword, 'g'), '<font color="red">' + this.keyword + '</font>').replace(/\n/g, '<br>');
        } else {
          temp = str.replace(/\n/g, '<br>');
        }
      }
      return temp;
    },
    /* 点击页面滚动到图文指南位置*/toGuide: function toGuide(postId) {
      var that = this;
      if (that.userSta == 2 && that.imgText) {
        var imgText = document.getElementById('ImageText');
        var scrollbox = document.getElementById('scrollbox');
        var imgTextTop = imgText.getBoundingClientRect().top;
        scrollbox.scrollTop = imgTextTop - 150;
        return;
      } else {
        that._Util.getUserStatus(that, function () {
          that._Util.post(that._Api.POST_WXAUTH_GET_APPID, {}, function (data) {

            // that.checkSrc = that._Api.HOSTOLD + 'wxauth/kaxiuyunForumDetail.htm?postId=' + postId;
          }, function () {}, that);
        }, function () {}, {
          name: that.$route.name,
          fullPath: window.location.href
        }, that._Enums.ENUMS_USER_STATUS.VIP, true);
      }
    },
    toTop: function toTop() {
      var that = this;
      var scrollEl = document.querySelector('.windowwrap');
      that.scrolltop = scrollEl.scrollTop;
      var scrollToTop = setInterval(function () {
        if (that.scrolltop > 0) {
          that.scrolltop -= 100;
          scrollEl.scrollTop -= 100;
        } else {
          clearInterval(scrollToTop);
        }
      }, 16);
    },
    // closeWindowMask(){
    //   this.imgSrc = [];
    //   this.showWindowMask = false;
    //   this.myAdvise = '';
    // },
    // submitEvent(){
    //   let that = this;
    //   let faultType = 0;
    //   let keyCode = '';
    //   if (that.myAdvise == '') {
    //     that._Util.showMsgBox('请填写相关描述');
    //     return;
    //   }
    //   faultType = that.fromChildPage ? 1 : 0;
    //   keyCode = that.fromChildPage ? that.faCode : that.keyword;
    //   that._Util.post(that._Api.POST_FALT_CODE_USERFEEDBACK, {
    //     dataDescribe: that.myAdvise,
    //     dataType:1,
    //     faultCodeUrl: (that.imgSrc).join(","),
    //     faultType: faultType,
    //     faultCode: keyCode
    //   }, function (data) {
    //     that.showWindowMask = false;
    //     that.fromChildPage = false;
    //     that.imgSrc = [];
    //     that.myAdvise = '';
    //   }, function () {
    //   }, that);
    // },
    // upload(e){
    //   var that = this;
    //   if(that.ios){
    //      that.uploader = Qiniu.uploader({
    //       runtimes: 'html5,flash,html4',
    //       browse_button: 'upBtn',
    //       uptoken : that.token,
    //       domain: that.bucketUrl,
    //       get_new_uptoken: false,
    //       container: 'container',
    //       filters:{
    //         max_file_size : '100mb',
    //         prevent_duplicates: true,
    //         mime_types:[{title : "Image files", extensions : "jpg,gif,png"}],
    //       },
    //       flash_swf_url: 'js/plupload/Moxie.swf',
    //       max_retries: 0,
    //       dragdrop: true,
    //       drop_element: 'container',
    //       chunk_size: '4mb',
    //       auto_start: true,
    //       multi_selection:false,
    //       init: {
    //         'FilesAdded': function(up, files) {
    //           plupload.each(files, function(file) {
    //           });
    //         },
    //         'BeforeUpload': function(up, file) {
    //           Indicator.open('上传中...');
    //         },
    //         'UploadProgress': function(up, file) {
    //         },
    //         'FileUploaded': function(up, file, info) {
    //           Indicator.close();
    //           that.imgSrc.push(JSON.parse(info.response).key);
    //         },
    //         'Error': function(up, err, errTip) {
    //         },
    //         'UploadComplete': function() {
    //         },
    //         'Key': function(up, file) {
    //         }
    //       }
    //     });
    //   }else{
    //     var file = e.target.files[0];
    //     if (file) {
    //       Indicator.open("上传中...");
    //       var formData = new FormData();
    //       formData.append("file", file);
    //       formData.append("token", that.token);
    //       var url = '';
    //       if (that.ios) {
    //           url = 'https://upload.qbox.me';
    //       }else {
    //           url = 'https://upload.qiniup.com';
    //       }
    //       $.ajax({
    //         url: url,
    //         type: "POST",
    //         dataType: "json",
    //         cache: false,
    //         data: formData,
    //         processData: false,
    //         contentType: false
    //       })
    //         .done(res => {
    //           Indicator.close();
    //           that.imgSrc.push(res.key);
    //         })
    //         .fail(function(err) {});
    //     }
    //   }
    // },
    // showWindow(type){
    //   let that = this;
    //   if (type == 1) {
    //     that.showCommentBox = true;
    //     var wmask = document.querySelector('.windowMask');
    //     wmask.style.top = document.querySelector('.windowwrap').scrollTop;
    //     localStorage.setItem("searchID", that._Util.randomChar())
    //     let version = that.version ? that.version : that._Util.version;
    //     that._Util.collectPageView({
    //       version: that._Util.isApp() ? version : "",
    //       postUrl: that._Api.POST_COLLECT,
    //       moduleType: '资料查询',
    //       operate_page: '搜索结果页',
    //       optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
    //       param1:  window.location.href,
    //       param2:  '故障码',
    //       param3:that.random,
    //       param4: {
    //         "queryValue": that.keyword,
    //         'type': '故障码',
    //         "result": that.total,
    //         "filter": that.filter
    //       },
    //       params5: "不能"
    //     }, that);
    //   }else{
    //     that.showWindowMask = true;
    //     let typeStr = that._Util.getQueryString("typeStr") == 1 ? "首页" : "修车";
    //     let version = that.version ? that.version : that._Util.version;
    //     localStorage.setItem("searchID", that._Util.randomChar())
    //     that._Util.collectPageView({
    //       version: that._Util.isApp() ? version : "",
    //       postUrl: that._Api.POST_COLLECT,
    //       moduleType: '资料查询',
    //       operate_page: '搜索结果页',
    //       optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
    //       param1:  window.location.href,
    //       param2:  '故障码',
    //       param3:that.random,
    //       param4: {
    //         "queryValue": that.keyword,
    //         "result": that.total,
    //         "filter": that.filter,
    //         'type': '故障码'
    //       },
    //       params5: "不能"
    //     }, that);
    //   }
    // },
    // 点击更多系统
    selc: function selc() {
      var that = this;
      if (that.result.secondOneTag && that.result.secondOneTag.split(',').length > 3) {
        if (that.upOrdown) {
          that.oneTags = that.result.secondOneTag.split(',').slice(0, 3);
        } else {
          that.oneTags = that.result.secondOneTag.split(',');
        }
        that.upOrdown = !that.upOrdown;
        // that.showMask = !that.showMask
      } else {
        return;
      }
    }
  },
  beforeRouteEnter: function beforeRouteEnter(to, from, next) {
    var phead = window.parent.document.getElementsByTagName('head')[0];
    var pel = phead.getElementsByTagName('meta');
    for (var i = 0; i < pel.length; i++) {
      if (pel[i].getAttribute('id') == 'userScale') {
        pel[i].content = 'width=device-width,user-scalable=yes';
      }
    }

    // var head = document.getElementsByTagName('head')[0];

    // var metas=head.getElementsByTagName('meta');

    // for(var i = 0;i < metas.length;i++){
    //   var vp = metas[i].getAttribute('name');
    //   if(metas[i].getAttribute('name') == 'viewport'){
    //     head.removeChild(metas[i])
    //     //console.log(metas[i])
    //   }
    // }
    // let str = 'width=device-width,user-scalable=yes';
    // let oMeta = document.createElement('meta');
    // oMeta.content = str;
    // oMeta.name = 'viewport';
    // head.appendChild(oMeta)

    // let el = document.getElementById('userScale');
    // el.content = str
    var listhref = localStorage.getItem('listhref');
    next(function (vm) {
      var parent = window.parent.document.getElementById('contentBox1');
      if (from.path == '/' && listhref && parent) {
        parent.style.position = 'relative';
        window.location.href = listhref;
        localStorage.removeItem('listhref');
      }
    });
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(595);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_21deac64_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1194);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3201)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-21deac64"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_21deac64_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_21deac64_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_comment_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3202);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("28d4fb9e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mask[data-v-21deac64]{top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);position:fixed;z-index:999;-ms-touch-action:pan-y;touch-action:pan-y}.mask .commentBox[data-v-21deac64]{-webkit-transition:all .3s ease;transition:all .3s ease;width:100%;background:#fff;margin:0 auto;position:absolute;bottom:0;left:0}.mask .commentBox .title[data-v-21deac64]{height:2.4rem;line-height:2.4rem;background-color:#f5f5f5;position:relative}.mask .commentBox .title>.center[data-v-21deac64]{text-align:center;font-family:PingFangSC-Regular;font-size:.9rem;color:#333}.mask .commentBox .title>span[data-v-21deac64]{position:absolute;top:0;height:100%;line-height:2.4rem;font-family:PingFangSC-Regular;font-size:.8rem;color:#666}.mask .commentBox .title .cancel[data-v-21deac64]{left:0;padding-left:.8rem}.mask .commentBox .title .submit[data-v-21deac64]{color:#2b82f7;right:0;padding-right:.8rem}.mask .commentBox .toolList[data-v-21deac64]{padding:.3rem .8rem .725rem;border-bottom:1px solid #d9d9d9;position:relative}.mask .commentBox .toolList img[data-v-21deac64]{width:1.3rem;height:1.3rem}.mask .commentBox .toolList>p[data-v-21deac64]{margin-bottom:1rem}.mask .commentBox .toolList .uploadContainer[data-v-21deac64]{display:inline-block;position:relative}.mask .commentBox .toolList .uploadContainer .imgUpload[data-v-21deac64]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.mask .commentBox .toolList .faceBox[data-v-21deac64]{position:absolute;z-index:2;top:100%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:100%;margin:0 auto;height:150px;overflow-y:scroll;background-color:#fff;padding:.6rem}.mask .commentBox .toolList .faceBox li[data-v-21deac64]{float:left}.mask .commentBox .toolList .faceBox li img[data-v-21deac64]{margin-right:.28rem;margin-bottom:.28rem}.mask .commentBox .inputArea[data-v-21deac64],.mask .commentBox .inputBox[data-v-21deac64]{width:94%;height:8rem;margin:0 auto;display:block;margin-top:14px;border:0 none;border-radius:2px;font-size:16px;color:#333;background:#f5f5f5;padding:.4rem}.mask .commentBox .controlBox[data-v-21deac64]{width:100%;margin-top:14px;border-top:1px solid #eee;height:56px;position:relative}.mask .commentBox .controlBox[data-v-21deac64]:after{content:\"\";width:1px;height:27px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#b9b9b9}.mask .commentBox .controlBox span[data-v-21deac64]{font-size:18px;color:#666;width:50%;text-align:center;line-height:56px;height:100px;float:left}.mask .commentBox .controlBox span[data-v-21deac64]:nth-of-type(2){color:#2b82f7}.mask .commentBox .imageList[data-v-21deac64]{padding-top:1rem;padding-left:.8rem}.mask .commentBox .imageList>.item[data-v-21deac64]{width:3.75rem;height:3.75rem;margin-right:.4rem;position:relative}.mask .commentBox .imageList>.item>img[data-v-21deac64]{width:100%;height:100%}.mask .commentBox .imageList>.item>span[data-v-21deac64]{position:absolute;width:.8rem;height:.8rem;top:-.4rem;right:-.4rem;background-image:url(" + escape(__webpack_require__(261)) + ");background-repeat:no-repeat;background-size:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _imgUpload = _interopRequireDefault(__webpack_require__(3203));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    imgUpload: _imgUpload.default
  },
  data: function data() {
    return {
      boxHeight: 0,
      commentMessage: '',
      submiting: false,
      imgList: [],
      myAdvise: '',
      bucketUrl: '',
      fromChildPage: false,
      keyword: this.$route.query.keyWord
    };
  },
  watch: {
    myAdvise: function myAdvise() {
      if (this.myAdvise.length > 200) {
        this.myAdvise = this.myAdvise.slice(0, 200);
        (0, _mintUi.Toast)({
          message: '评论内容最多200字',
          position: 'middle',
          duration: 1500
        });
      }
    }
  },
  created: function created() {
    var _this = this;
    // 获取七牛云 token
    this._Util.post(this._Api.appGetQNToken, {}, function (data) {
      _this.bucketUrl = data.bucketUrl;
    }, function () {}, this);
  },
  mounted: function mounted() {
    var _this2 = this;
    this.$nextTick(function () {
      setTimeout(function () {
        _this2.boxHeight = '100%';
      }, 50);
    });
  },
  methods: {
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl) {
      this.$store.commit('openImgView', imgUrl);
    },
    /** 图片上传成功 */uploaded: function uploaded(img) {
      this.imgList.push(img);
    },
    /** 提交留言 */
    // submitEvent() {
    //   if(!this.commentMessage.trim()&&this.imgList.length===0) {
    //     Toast({
    //       message: '请输入有效内容',
    //       position: 'middle',
    //       duration: 1500
    //     });
    //     return;
    //   }
    //   if(this.submiting) return;
    //   this.submiting = true;
    //   this._Util.post(
    //     this._Api.POST_COMMUNITY_ADD_ARTICLE_COMMENT,
    //     {
    //       articleId: this.$route.query.articleId,
    //       content: this.commentMessage,
    //       contentPic: this.imgList.join(',')
    //     },
    //     data=>{
    //       this.boxHeight = '0';
    //       Toast({
    //         message: '提交成功',
    //         position: 'bottom',
    //         duration: 1500
    //       });
    //       setTimeout(()=>{
    //         this.$emit('submit');
    //       }, 300);
    //       this.submiting = false;
    //     },
    //     ()=>{
    //       this.submiting = false;
    //     },
    //     this
    //   )
    // },
    submitEvent: function submitEvent() {
      var that = this;
      var faultType = 0;
      var keyCode = '';
      if (that.myAdvise == '') {
        that._Util.showMsgBox('请填写相关描述');
        return;
      }
      // console.log(that.faCode)
      faultType = that.fromChildPage ? 1 : 0;
      keyCode = that.fromChildPage ? that.faCode : that.keyword;
      that._Util.post(that._Api.POST_FALT_CODE_USERFEEDBACK, {
        dataDescribe: that.myAdvise,
        dataType: 1,
        faultCodeUrl: that.imgList.join(','),
        faultType: faultType,
        faultCode: keyCode
      }, function (data) {
        that.fromChildPage = false;
        that.imgList = [];
        that.myAdvise = '';
        that.closeEvent();
      }, function () {}, that);
    },
    /** 关闭评论框 */closeEvent: function closeEvent() {
      var _this3 = this;
      // this.boxHeight = '0';
      this.imgList = [];
      this.myAdvise = '';
      setTimeout(function () {
        _this3.$emit('closeMask');
      }, 300);
    },
    /** 删除指定索引图片 */delImg: function delImg(i) {
      this.imgList.splice(i, 1);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(596);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f5d74d3a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1193);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3204)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-f5d74d3a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f5d74d3a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f5d74d3a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_imgUpload_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3205);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7a2d46db", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "._uploadContainer[data-v-f5d74d3a]{position:relative;left:0;top:0;width:100%;height:100%}._uploadContainer>.putPhoto[data-v-f5d74d3a]{width:100%;height:100%}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  props: {
    urltype: String // '' 或 fullpath   fullpath: 返回完整图片路径
  },
  data: function data() {
    return {
      // imgSrc: [],
      bucketUrl: '',
      token: '',
      btnId: ''
    };
  },
  created: function created() {
    var _this = this;
    this.btnId = Math.round(Math.random() * 100);
    // 获取七牛云 token
    this._Util.post(this._Api.appGetQNToken, {}, function (data) {
      _this.token = data.token;
      _this.bucketUrl = data.bucketUrl;
      if (_this._Util.isIOS) {
        _this.upload();
      }
    }, function () {}, this);
  },
  mounted: function mounted() {},
  methods: {
    /** 图片上传逻辑 */upload: function upload(e) {
      var that = this;
      if (that._Util.isIOS) {
        // eslint-disable-next-line no-unused-vars
        var uploader = Qiniu.uploader({
          runtimes: 'html5,flash,html4',
          browse_button: that.btnId.toString(),
          //  uptoken_url: that.token,
          uptoken: that.token,
          domain: that.bucketUrl,
          get_new_uptoken: false,
          container: 'uploadContainer',
          filters: {
            max_file_size: '100mb',
            prevent_duplicates: true,
            mime_types: [{
              title: 'Image files',
              extensions: 'jpg,gif,png,jpeg'
            }]
          },
          flash_swf_url: 'js/plupload/Moxie.swf',
          max_retries: 0,
          dragdrop: true,
          drop_element: 'uploadContainer',
          chunk_size: '4mb',
          auto_start: true,
          multi_selection: false,
          init: {
            FilesAdded: function FilesAdded(up, files) {
              // eslint-disable-next-line no-undef
              plupload.each(files, function (file) {});
            },
            BeforeUpload: function BeforeUpload(up, file) {
              _mintUi.Indicator.open('上传中...');
            },
            UploadProgress: function UploadProgress(up, file) {},
            FileUploaded: function FileUploaded(up, file, info) {
              _mintUi.Indicator.close();
              // that.imgSrc.push(JSON.parse(info.response).key);
              if (that.urltype === 'fullpath') {
                that.$emit('uploaded', that.bucketUrl + JSON.parse(info.response).key + '?imageView2/1/w/140/h/140');
              } else {
                that.$emit('uploaded', JSON.parse(info.response).key);
              }
            },
            Error: function Error(up, err, errTip) {
              _mintUi.MessageBox.alert(JSON.stringify(err));
            },
            UploadComplete: function UploadComplete() {},
            Key: function Key(up, file) {}
          }
        });
      } else {
        var file = e.target.files[0];
        if (file) {
          _mintUi.Indicator.open('上传中...');
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          $.ajax({
            url: 'https://upload.qiniup.com',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            // that.imgSrc.push(res.key);
            if (that.urltype === 'fullpath') {
              that.$emit('uploaded', that.bucketUrl + res.key + '?imageView2/1/w/140/h/140');
            } else {
              that.$emit('uploaded', res.key);
            }
          }).fail(function () {});
        }
      }
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"_uploadContainer",attrs:{"id":"uploadContainer"}},[(_vm._Util.isIOS)?_c('button',{staticClass:"putPhoto",attrs:{"id":_vm.btnId}},[_vm._v("上传")]):_c('input',{staticClass:"putPhoto",attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event)}}})])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mask"},[_c('div',{staticClass:"commentBox",style:({'height': _vm.boxHeight})},[_c('div',{staticClass:"title"},[_c('div',{staticClass:"center"},[_vm._v("资料描述")]),_vm._v(" "),_c('span',{staticClass:"cancel",on:{"click":_vm.closeEvent}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"submit",on:{"click":_vm.submitEvent}},[_vm._v("提交")])]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.myAdvise),expression:"myAdvise",modifiers:{"trim":true}},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],staticClass:"inputBox",attrs:{"id":"infocus","autofocus":"","placeholder":"请尽可能详细的描述你想要的资料，小轨工程师找到后第一时间通知"},domProps:{"value":(_vm.myAdvise)},on:{"input":function($event){if($event.target.composing){ return; }_vm.myAdvise=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('div',{staticClass:"toolList"},[_c('p',[_vm._v("可上传故障相关图片，有助于准确找到资料")]),_vm._v(" "),_c('div',{staticClass:"uploadContainer",attrs:{"id":"container2"}},[_c('img',{staticStyle:{"margin-top":"0.025rem","height":"1.2rem"},attrs:{"src":__webpack_require__(1415)}}),_vm._v(" "),_c('img-upload',{staticClass:"imgUpload",on:{"uploaded":_vm.uploaded}})],1)]),_vm._v(" "),_c('div',{staticClass:"imageList"},_vm._l((_vm.imgList),function(item,index){return _c('div',{key:index,staticClass:"item",staticStyle:{"float":"left"}},[_c('img',{staticClass:"imgC",attrs:{"src":_vm.bucketUrl + item},on:{"click":function($event){return _vm.viewImage(_vm.bucketUrl + item)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.delImg(index)}}})])}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(304);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f58ead0e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(889);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2098)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f58ead0e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f58ead0e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_correctionsAndProblemsTools_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2099);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("62a0cbb0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.corrections-and-problems-tools{position:fixed;width:100%;height:2.9rem;left:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem;background-color:#fff}.corrections-and-problems-tools:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.corrections-and-problems-tools .error-btn{width:5.4rem;border:1px solid #177afa;border-radius:.3rem;color:#177afa}.corrections-and-problems-tools .error-btn,.corrections-and-problems-tools .put-question-btn{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:2.2rem;font-size:.8rem}.corrections-and-problems-tools .put-question-btn{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.6rem;border-radius:.3rem;background-color:#177afa;color:#fff}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'CorrectionsAndProblemsTools',
  // 资料详情页和故障码详情页底部:纠错和提问入口
  props: {
    material: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {};
  },
  created: function created() {
    console.log(this.material);
  },
  methods: {
    /**
     * 资料纠错
     */
    submitError: function submitError() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=").concat(this.material.no, "&data=").concat(this.material.data);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 跳转极速问答提问页
     */
    toPutQuestion: function toPutQuestion() {
      this.material.sourceUrl = window.location.href;
      localStorage.setItem('qa_data', JSON.stringify(this.material));
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'putQuestion',
            url: "".concat(location.origin, "/v2/shopping/putQuestion")
          }
        });
      } else {
        location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"corrections-and-problems-tools hairline"},[_c('div',{staticClass:"error-btn",on:{"click":function($event){$event.preventDefault();return _vm.submitError.apply(null, arguments)}}},[_vm._v("资料纠错")]),_vm._v(" "),_c('div',{staticClass:"put-question-btn",on:{"click":function($event){$event.preventDefault();return _vm.toPutQuestion.apply(null, arguments)}}},[_vm._v("去提问")])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"windowwrap selectwindow detail",class:_vm.className,staticStyle:{"touch-action":"pan-y","height":"100%","z-index":"15","display":"block","overflow-y":"scroll","overflow-x":"hidden","background":"#F2F2F2","-webkit-overflow-scrolling":"touch","border":"1px solid transparent","-webkit-box-sizing":"border-box","box-sizing":"border-box"},attrs:{"id":"scrollbox"}},[(_vm.moduleType == _vm._Enums.COLLECTION_MODULE.FAULT || _vm.moduleType == 20)?_c('div',{staticClass:"window",staticStyle:{"padding-top":"0"}},[_c('div',{staticClass:"guzhang",staticStyle:{"position":"relative"},attrs:{"id":"faultCodeDetail"}},[(_vm.result.solrType == 'OBD')?_c('div',[(_vm.result.code)?_c('div',{staticClass:"item fixed"},[_c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16",staticStyle:{"color":"#333","font-weight":"bold"}},[_vm._v(" 故障码: "),_c('span',{staticStyle:{"color":"#333","font-weight":"bold"}},[_vm._v(_vm._s(_vm.result.code)+"P1000 ")])])])]):_vm._e(),_vm._v(" "),(_vm.result.desc)?_c('div',{staticClass:"item",staticStyle:{"margin-top":"52px"}},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.desc)}})])]):_vm._e(),_vm._v(" "),(_vm.result.category)?_c('div',{staticClass:"item"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.category)}})])]):_vm._e(),_vm._v(" "),(_vm.result.check)?_c('div',{staticClass:"item"},[_vm._m(2),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.check)}})])]):_vm._e()]):_c('div',[_c('div',{staticClass:"fixed"},[(_vm.hlFlField != 'desc' && _vm.hlFl)?_c('div',{staticClass:"item",staticStyle:{"margin-bottom":"0"}},[_c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16",staticStyle:{"color":"#333","font-weight":"bold"}},[_vm._v(" 故障码: "),_c('span',{staticStyle:{"font-size":"18px","color":"#333"},domProps:{"innerHTML":_vm._s(_vm.hlFl)}})])])]):_vm._e(),_vm._v(" "),(_vm.result.secondOneTag)?_c('div',{staticClass:"item1",staticStyle:{"margin-bottom":"0","box-shadow":"0px 2px 2px 0px rgba(190,212,242,0.33)"}},[_c('div',{staticClass:"clearfix"},[_c('span',{staticClass:"left",staticStyle:{"font-size":"14px","color":"#333","font-weight":"bold","min-height":"40px","line-height":"40px"}},[_vm._v(" 选择系统:  ")]),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.result.secondOneTag.split(',').length>3),expression:"result.secondOneTag.split(',').length>3"}],staticClass:"left right",staticStyle:{"font-size":"12px","color":"#377EE1","position":"relative","padding-right":"20px"},on:{"click":function($event){$event.stopPropagation();return _vm.selc()}}},[_vm._v(" "+_vm._s(!_vm.upOrdown?'更多系统':'收起')+"   \n                "),_c('img',{staticClass:"arrow",class:{up:_vm.upOrdown},attrs:{"src":__webpack_require__(3206),"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"f16 left selc"},[_vm._l((_vm.oneTags),function(item,i){return _c('span',{key:i,class:['the_system',{'active':_vm.oneTags.length == 1 || i==_vm.tabIndex}],on:{"click":function($event){return _vm.collect(item,i)}}},[_vm._v(_vm._s(item))])}),_vm._v(" "),_c('p',{directives:[{name:"show",rawName:"v-show",value:(_vm.oneTags.length>1 && _vm.isSelc),expression:"oneTags.length>1 && isSelc"}],staticStyle:{"color":"#EE4545","text-align":"center","font-size":"16px"}},[_vm._v("请先选择系统")])],2)])]):_vm._e()]),_vm._v(" "),_c('div',{style:({marginTop: _vm.topHeight + 'px'})},[(_vm.result.the_system)?_c('div',{staticClass:"item"},[_vm._m(3),_vm._v(" "),_c('div',{staticClass:"des",class:{space:_vm.isHidden&&!_vm.result.proId}},_vm._l((_vm.systemArr),function(item,i){return _c('span',{key:i,staticClass:"mt5",staticStyle:{"width":"auto","display":"inline"}},[_vm._v("\n                "+_vm._s(item)+" "+_vm._s(i+1==_vm.systemArr.length?'等':'|')+" ")])}),0)]):_vm._e(),_vm._v(" "),(_vm.result.postId)?_c('div',{staticClass:"item"},[_c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 详情排查: \n                "),_c('a',{staticStyle:{"text-decoration":"underline","color":"#EE4545","font-size":"18px"},attrs:{"href":"javascript: void(0)"},on:{"click":function($event){$event.stopPropagation();return _vm.toGuide(_vm.result.postId)}}},[_vm._v("\n                  图文指南\n                ")])])])]):_vm._e(),_vm._v(" "),(_vm.result.desc)?_c('div',{staticClass:"item"},[_vm._m(4),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.desc)}})])]):_vm._e(),_vm._v(" "),(_vm.result.symptom && _vm.result.hlFlFidld != 'pcode')?_c('div',{staticClass:"item"},[_vm._m(5),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.symptom)}})])]):_vm._e(),_vm._v(" "),(_vm.result.reason)?_c('div',{staticClass:"item"},[_vm._m(6),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.reason)}})])]):_vm._e(),_vm._v(" "),(_vm.result.check)?_c('div',{staticClass:"item"},[_vm._m(7),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.check)}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.checkContent),expression:"checkContent"}],staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.checkContent)}})])]):_vm._e(),_vm._v(" "),(_vm.result.other)?_c('div',{staticClass:"item"},[_vm._m(8),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',{staticClass:"mt5",domProps:{"innerHTML":_vm._s(_vm.result.other)}})])]):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.result.postId),expression:"result.postId"}],staticClass:"item",staticStyle:{"padding-left":"0"},attrs:{"id":"ImageText"}},[_vm._m(9),_vm._v(" "),_c('div',{staticClass:"des",staticStyle:{"position":"relative","padding":"0 2%"}},[(_vm.imgText)?_c('div',{staticClass:"imgbox",domProps:{"innerHTML":_vm._s(_vm.imgText)}}):_vm._e(),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.imgText),expression:"!imgText"}],staticStyle:{"text-indent":"10px","font-size":"18px","position":"absolute","top":"7px","color":"#EE4545"}},[_vm._v("图文加载中，请稍后...")])])])])]),_vm._v(" "),_c('div',{staticStyle:{"height":"60px"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMask),expression:"showMask"}],staticClass:"symask",on:{"click":function($event){_vm.showMask = false;_vm.showTip = false}}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTip),expression:"showTip"}],staticClass:"sytip",on:{"click":function($event){_vm.showMask = false;_vm.showTip = false}}},[_vm._v("暂无资料"),_c('br'),_vm._v("该系统资料正在完善中...")])]),_vm._v(" "),(_vm.showCollect)?_c('div',{staticStyle:{"text-align":"center","width":"92%","padding-bottom":"7px","margin-left":"4%"}},[_c('img',{staticStyle:{"display":"block","width":"100%","border-top-left-radius":"5px","border-top-right-radius":"5px","pointer-events":"none"},attrs:{"src":__webpack_require__(1437)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","padding-bottom":"7px","overflow":"hidden"}},[_c('div',{staticClass:"butCon"},[_c('span'),_vm._v(" "),_c('div',{on:{"click":function($event){return _vm.canEvent()}}},[_vm._v("\n            解决\n            ")]),_vm._v(" "),_c('div',{on:{"click":function($event){_vm.showCommentBox=true}}},[_vm._v("\n            未解决\n            ")])]),_vm._v(" "),(_vm.showCan)?_c('div',{staticStyle:{"color":"#B10217","float":"left","padding-left":"15px"}},[_vm._v("感谢您的反馈")]):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.showAd)?_c('Poking-me-component',{attrs:{"position-id":1}}):_vm._e()],1):_c('div',{staticClass:"window"},[_c('div',{staticClass:"bg_img"},_vm._l((_vm.result.source),function(o,index){return _c('table',{key:index,staticClass:"windowtable",staticStyle:{"margin-top":"0px"}},_vm._l((_vm.result.attrItems[o.solrType]),function(v,vIndex){return _c('tr',{key:vIndex,class:{firstTr: !vIndex}},[_c('td',{style:({width: !index ? '40%' : ''})},[_c('span',{staticClass:"f161"},[_vm._v(_vm._s(v.title)+":")])]),_vm._v(" "),_c('td',{style:({width: !vIndex ? '60%' : ''}),on:{"click":function($event){$event.stopPropagation();return _vm.showOhk(o.solrType, v.name, o[v.name], o)}}},[_c('span',{staticStyle:{"width":"100%"},domProps:{"innerHTML":_vm._s(_vm.rewriteHtml(o.solrType, v.name, o[v.name], o))}})]),_vm._v(" "),(!vIndex && _vm.moduleType)?_c('Collection',{class:_vm.clineName2,attrs:{"collect-params":{
              moduleType: _vm.moduleType,
              objId: o.sn,
              queryValue: o.id,
              favId: o.favId
            }}}):_vm._e()],1)}),0)}),0),_vm._v(" "),_c('div',{staticStyle:{"height":"60px"}}),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","text-align":"center"}},[_c('Online-qa',{class:_vm.clineName2,attrs:{"question":_vm.question}})],1)]),_vm._v(" "),_c('div',{staticStyle:{"height":"35px"}}),_vm._v(" "),(_vm.scrolltop>=50)?_c('div',{staticClass:"toTop",on:{"click":function($event){$event.stopPropagation();return _vm.toTop.apply(null, arguments)}}}):_vm._e(),_vm._v(" "),_c('corrections-and-problems-tools',{attrs:{"material":_vm.material}}),_vm._v(" "),(_vm.showCommentBox)?_c('comment',{on:{"submit":function($event){return _vm.submitEvent()},"closeMask":function($event){_vm.showCommentBox=false;}}}):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障描述: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障范畴: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 排查步骤: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 适用车型:")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 故障描述: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 可能症状: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 可能原因: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 排查步骤: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt"},[_c('span',{staticClass:"f16"},[_vm._v(" 其他提示: ")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clearfix tt",staticStyle:{"padding-left":"10px"}},[_c('span',{staticClass:"f16"},[_vm._v("图文指南: ")])])}]
module.exports = __webpack_require__.p + "static/img/arrow.f55f76b.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(597);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_244558ff_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1196);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3207)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-244558ff"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_244558ff_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_244558ff_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_intelligentMatchDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3208);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2ece565c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-244558ff] img,[data-v-244558ff] video{width:100%!important;height:auto;border-radius:.4rem}[data-v-244558ff] .tit{height:1.25rem;line-height:1.25rem;font-size:.9rem;font-weight:600;color:#333;margin-bottom:.4rem;margin-top:1.2rem}.tit-top[data-v-244558ff]{margin-top:0}.intelligent-view[data-v-244558ff]{width:100%;height:100%;background-color:#f4f5f6}.intelligent-view .cont-view[data-v-244558ff],.intelligent-view .explain-view[data-v-244558ff]{padding:.8rem;width:100%;margin-bottom:.4rem;background-color:#fff}.intelligent-view .file-view[data-v-244558ff]{padding:.8rem;width:100%;background-color:#fff;margin-bottom:2.9rem}.intelligent-view .file-view .cell[data-v-244558ff]{width:100%;min-height:2.2rem;background-color:#f5f5f5;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.7rem;color:#333;border-radius:.4rem;padding:.6rem;margin-bottom:.4rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _correctionsAndProblemsTools = _interopRequireDefault(__webpack_require__(1460));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    CorrectionsAndProblemsTools: _correctionsAndProblemsTools.default
  },
  data: function data() {
    return {
      randomNum: Number(this.$route.query.randomNum),
      materialList: [],
      // 资料
      pathList: [],
      // 路径
      keyWord: decodeURIComponent(this.$route.query.keyword),
      explanation: '',
      // 名字解释
      textContent: '',
      // 正文
      material: {
        data: '',
        no: '8ce04358 '
      }
    };
  },
  computed: {},
  watch: {},
  created: function created() {
    this.searchKeyWordDetail();
  },
  mounted: function mounted() {},
  methods: {
    searchKeyWordDetail: function searchKeyWordDetail() {
      var _this = this;
      this._Util.post(this._Api.POST_SEARCH_KEYWORD_DETAIL, {
        keyword: this.keyWord
      }, function (data) {
        var sosoKeyWordImgTextVoList = data.sosoKeyWordImgTextVoList || [];
        _this.materialList = sosoKeyWordImgTextVoList.filter(function (item) {
          return item.type === 2;
        });
        _this.pathList = sosoKeyWordImgTextVoList.filter(function (item) {
          return item.type === 3;
        });
        var itemObj = sosoKeyWordImgTextVoList.find(function (item) {
          return item.type === 4;
        }) || {
          explanation: '',
          textContent: ''
        };
        var explanation = itemObj.explanation.replace(/<div>/g, '').replace(/<\/div>/g, '').replace(/<br>/g, '').replace(/#(.+?)#/g, '<div class="tit">$1</div>').replace(/<video/g, '<video controls="controls" controlslist="nodownload"');
        var textContent = itemObj.textContent.replace(/<div>/g, '').replace(/<\/div>/g, '').replace(/<br>/g, '').replace(/#(.+?)#/g, '<div class="tit">$1</div>').replace(/<video/g, '<video controls="controls" controlslist="nodownload"');
        _this.explanation = explanation;
        _this.textContent = textContent;
      }, function () {}, this);
    },
    /**
     * 浏览单张图片
     */
    viewImage: function viewImage(event) {
      if (event.target.nodeName !== 'IMG') return;
      var imgUrl = event.target.currentSrc + '?imageView2/2/w/2000';
      this.$store.commit('openImgView', {
        imgUrl: imgUrl,
        imgList: [imgUrl],
        activeIndex: 0
      });
    },
    /**
     * 打开页面
     */
    openFile: function openFile(item, idx) {
      var url = item.linkUrl;
      if (!url) {
        this.toMeansDetail(item, idx);
        return;
      }
      this.sensorsCollect(item, idx, url, '智能匹配详情路径');
      this._Util.publicOpenPage({
        url: url,
        appName: 'intelligentMatch'
      });
    },
    /**
     * 神策埋点
     */
    sensorsCollect: function sensorsCollect(item, indexNew, url) {
      var filter_type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '智能匹配详情资料';
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: '资料查询-全部',
        vehicledictionary_path: url,
        filter_type: filter_type,
        filter_name: this.keyWord,
        file_id: item.dataId,
        file_name: item.dataName,
        file_sort: indexNew,
        file_page: 1,
        file_page_sort: (indexNew + 1) % 20,
        search_id: this.randomNum
      });
    },
    /**
     * 打开资料
     */
    toMeansDetail: function toMeansDetail(item, indexNew) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var result, appToken;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2._Util.judgePower({
                dataType: 'DATA_DAQO',
                // 对资料进行权限判断
                params: {
                  eventType: 'DETAILS_DATA'
                }
              }, _this2);
            case 1:
              result = _context.sent;
              console.log(result);
              if (!(item.fileType.toUpperCase() == 'PDF')) {
                _context.next = 5;
                break;
              }
              _this2.sensorsCollect(item, indexNew, _this2._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
              if (!_this2._Util.isApp()) {
                _context.next = 2;
                break;
              }
              appToken = localStorage.getItem('app-token') || '';
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'pdf' + item.fileNo,
                  url: _this2._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
                }
              });
              _context.next = 4;
              break;
            case 2:
              if (!(localStorage.getItem('isFromMft100') === '1')) {
                _context.next = 3;
                break;
              }
              _this2._Util.AddEventFmt100Url(_this2._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
              return _context.abrupt("return");
            case 3:
              window.location.href = _this2._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
            case 4:
              _context.next = 6;
              break;
            case 5:
              if (new RegExp(item.fileType.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
                _this2._Util.post(_this2._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo
                }, function (data) {
                  _this2.sensorsCollect(item, indexNew, data.fileUrl);

                  // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                  if (localStorage.getItem('isFromMft100') === '1') {
                    _this2._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                    return;
                  }
                  _this2.$router.push({
                    name: 'video',
                    query: {
                      share: data.fileUrl
                    }
                  });
                }, function () {}, _this2);
              } else {
                _this2._Util.post(_this2._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
                  fileNo: item.fileNo,
                  pageNum: 1,
                  pageSize: 3
                }, function (data) {
                  if (data.displayType == 1) {
                    if (item.fileType.toUpperCase() == 'JPG' || item.fileType.toUpperCase() == 'PNG') {
                      var url = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(item.dataName, "&count=1&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                      _this2.sensorsCollect(item, indexNew, url);
                      if (_this2._Util.isApp()) {
                        api.sendEvent({
                          name: 'acOpenNewFrm',
                          extra: {
                            name: 'picList',
                            url: url
                          }
                        });
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this2._Util.AddEventFmt100Url(url);
                          return;
                        }
                        _this2.$router.push({
                          name: 'picList',
                          query: {
                            isScale: 1,
                            title: item.dataName.replace(/red/g, '#666'),
                            count: 1,
                            pageNum: 1,
                            pageSize: 3,
                            type: 1,
                            fromPage: 'soso',
                            fileNo: item.fileNo
                          }
                        });
                      }
                    } else {
                      _this2.sensorsCollect(item, indexNew, item.fileType == '微信图文' ? data.fileUrl + '?/' : data.fileUrl);
                      if (item.fileType == '微信图文') {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this2._Util.AddEventFmt100Url(data.fileUrl + '?/');
                          return;
                        }
                        location.href = data.fileUrl + '?/';
                      } else {
                        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                        if (localStorage.getItem('isFromMft100') === '1') {
                          _this2._Util.AddEventFmt100Url(data.fileUrl);
                          return;
                        }
                        location.href = data.fileUrl;
                      }
                    }
                  } else {
                    var _url = "".concat(location.origin, "/v2/business/pay/picList?isScale=1&title=").concat(data.atlasName, "&count=").concat(data.reCount, "&pageNum=1&pageSize=3&type=1&fileNo=").concat(item.fileNo, "&fromPage=soso");
                    _this2.sensorsCollect(item, indexNew, _url);
                    if (_this2._Util.isApp()) {
                      api.sendEvent({
                        name: 'acOpenNewFrm',
                        extra: {
                          name: 'picList',
                          url: _url
                        }
                      });
                    } else {
                      // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                      if (localStorage.getItem('isFromMft100') === '1') {
                        _this2._Util.AddEventFmt100Url(_url);
                        return;
                      }
                      _this2.$router.push({
                        name: 'picList',
                        query: {
                          isScale: 1,
                          title: data.atlasName,
                          count: data.reCount,
                          pageNum: 1,
                          pageSize: 3,
                          type: 1,
                          fileNo: item.fileNo,
                          fromPage: 'soso'
                        }
                      });
                    }
                  }
                }, function () {}, _this2);
              }
            case 6:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"intelligent-view"},[_c('div',{staticClass:"explain-view"},[_c('div',{staticClass:"tit tit-top"},[_vm._v(_vm._s(_vm.keyWord))]),_vm._v(" "),(_vm.explanation.length > 0)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.explanation)},on:{"click":function($event){return _vm.viewImage($event)}}}):_vm._e()]),_vm._v(" "),(_vm.textContent.length > 0)?_c('div',{staticClass:"cont-view",domProps:{"innerHTML":_vm._s(_vm.textContent)},on:{"click":function($event){return _vm.viewImage($event)}}}):_vm._e(),_vm._v(" "),(_vm.materialList.length > 0 || _vm.pathList.length > 0)?_c('div',{staticClass:"file-view"},[_c('div',{staticClass:"tit tit-top"},[_vm._v("相关资料")]),_vm._v(" "),_vm._l((_vm.materialList),function(item,idx){return _c('div',{key:item.linkUrl,staticClass:"cell",on:{"click":function($event){return _vm.openFile(item, idx)}}},[_vm._v("\n      "+_vm._s(item.dataName)+"\n    ")])}),_vm._v(" "),_vm._l((_vm.pathList),function(item,idx){return _c('div',{key:item.linkUrl,staticClass:"cell",on:{"click":function($event){return _vm.openFile(item, idx)}}},[_vm._v("\n      "+_vm._s(item.dataName)+"\n    ")])})],2):_vm._e(),_vm._v(" "),_c('corrections-and-problems-tools',{attrs:{"material":_vm.material}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(598);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_29e9b316_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1197);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3209)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-29e9b316"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_29e9b316_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_29e9b316_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3210);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6204ef1b", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".banner[data-v-29e9b316],.banner img[data-v-29e9b316]{width:100%}.box[data-v-29e9b316]{width:100%;background:#da384b;margin-top:-1px;overflow:hidden}.top-img-box>div[data-v-29e9b316]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:20px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.t-img[data-v-29e9b316]{position:relative}.t-img img[data-v-29e9b316]{width:85px;height:85px;display:block;border-radius:50%;border:2px solid #fdebbf}.t-name[data-v-29e9b316]{margin-top:10px;font-size:16px;color:#fff9f5;text-align:center}.t-tip[data-v-29e9b316]{width:54px;padding:2px 0;text-align:center;background:#fdebbf;color:#da384b;font-size:12px;border-radius:15px;left:50%;position:absolute;margin-left:-10px;top:-5px}.timeLeave-box[data-v-29e9b316]{margin-top:20px}.con[data-v-29e9b316]{position:relative;height:30px;line-height:30px;width:60%;margin:30px auto 0;text-align:center}.con i[data-v-29e9b316]{display:block;height:1px;background:#ccc;position:absolute;top:15px;width:100%}.con p[data-v-29e9b316]{color:#fff;font-size:18px;display:inline-block;background:#da384b;padding:0 15px;text-align:center;margin:0 auto;position:relative;z-index:2}.time-list[data-v-29e9b316]{text-align:center;margin-top:7px;color:#fff;font-size:16px}.time-list span[data-v-29e9b316]{padding:3px 5px;background:#0c1a21;border-radius:5px}.c-button[data-v-29e9b316]{position:relative;width:60%;text-align:center;padding:10px 0;background:#ffce57;font-size:18px;color:#da384b;margin:20px auto 0;border-bottom:3px solid #d3ab48;border-radius:7px}.b-t[data-v-29e9b316]{color:#fff;font-size:16px;text-align:center;width:100%;margin-top:10px}.f1[data-v-29e9b316]{display:block;width:60%;margin:20px auto 0}.f2[data-v-29e9b316]{display:block;width:100%;margin:20px auto 50px}.b-list[data-v-29e9b316]{width:100%;background:#fff;margin-top:8px;border-radius:5px;overflow:hidden}.b-list[data-v-29e9b316]:first-child{margin-top:0}.b-list img[data-v-29e9b316]{width:30%;float:left}.d-info[data-v-29e9b316]{font-size:14px;color:#333;margin-left:10px}.d-title[data-v-29e9b316]{font-size:18px;color:#333;margin-left:10px;margin-top:5px;font-weight:bolder}.mask1[data-v-29e9b316]{position:fixed;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7)}.groups-input-box[data-v-29e9b316],.rqcode-list-box[data-v-29e9b316]{width:95%;border-radius:5px;background:#fff;height:230px;margin:150px auto 0;overflow:hidden}.rqcode-list-box[data-v-29e9b316]{margin:100px auto 0;height:200px}.groups-input-title[data-v-29e9b316]{color:#da384b;font-size:20px;text-align:center;margin-top:20px}.groups-input-title1[data-v-29e9b316]{font-size:18px;text-align:center}.c-code[data-v-29e9b316]{display:block;background:#f6f6f6;width:90%;padding:12px 5px;margin:15px auto 0;border:2px solid #d2d2d2}.option-list-box[data-v-29e9b316]{width:100%;border-top:1px solid #d2d2d2;margin-top:35px;overflow:hidden;height:54px}.option-list-box li[data-v-29e9b316]{width:50%;text-align:center;float:left;font-size:18px;height:100%;line-height:54px;color:#666}.option-list-box li[data-v-29e9b316]:last-child{color:#da384b;width:49%;border-left:1px solid #d2d2d2}.pay-record[data-v-29e9b316]{width:25px;padding:10px 0;position:fixed;z-index:7;background:rgba(0,0,0,.5);text-align:center;color:#fff;font-size:14px;left:0;top:50px;border-top-right-radius:5px;border-bottom-right-radius:5px}.recode-list[data-v-29e9b316]{width:95%;margin:0 auto;padding:7px 0;background:#f6f6f6;overflow:hidden}.recode-list span[data-v-29e9b316]{font-size:16px;float:left;margin-left:7px}.recode-list span[data-v-29e9b316]:last-child{float:right;margin-right:7px}@media screen and (max-width:320px){.d-info[data-v-29e9b316]{font-size:12px}.d-title[data-v-29e9b316]{font-size:16px;color:#333}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import PokingMeComponent from '../../components/common/pokingMeComponent.vue'
var _default = exports.default = {
  // components: {
  //   PokingMeComponent
  // },
  data: function data() {
    return {
      id: this.$route.query.id || '',
      showMask: false,
      maskType: 0,
      collageCode: '',
      userInfoResult: {},
      result: {},
      h1: '',
      h2: '',
      m1: '',
      m2: '',
      s1: '',
      s2: '',
      NoTime: false,
      getMyFightGroupList: {},
      showGetFightGroupList: false
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getUserInfo();
    that.getMyFightGroup();
    that.share();
    if (!that._Util.isApp() && !that._Util.isMPaaS()) {
      that._Util.getKaluliAuth(that);
    }
    that._Util.collectPageView2({
      version: that._Util.version,
      postUrl: that._Api.POST_COLLECT,
      moduleType: '团购',
      operate_page: '团购首页',
      optionType: '页面打开',
      param1: location.href,
      param2: '',
      param4: {
        'queryValue': '',
        'result': '',
        'filter': ''
      }
    }, that);
    if (that.id) {
      that.getDetail();
    }
  },
  methods: {
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userInfoResult = data;
          if (that.userInfoResult.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: '您尚未认证，请先认证',
              showConfirmButton: true,
              closeOnClickModal: false,
              confirmButtonClass: 'ciofirmred',
              confirmButtonText: '去认证',
              showCancelButton: false,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that.$router.push({
                  name: 'personalCertification',
                  query: {
                    nextPath: window.location.href
                  }
                });
              }
            });
          }
        }
      }, function () {}, that);
    },
    buttonEvent: function buttonEvent(type) {
      var that = this;
      switch (type) {
        case 0:
          that._Util.post(that._Api.HOSTOLD + 'api/fightGroup/createFightGroup.json', {}, function (res) {
            that._Util.post(that._Api.POST_GET_QUICKACTIVITYPAY, {
              id: 565,
              price: 99,
              attachId: '小轨拼团_' + res
            }, function (data) {
              if (data) {
                that._Util.wxPay(data.jsApiParameters, function () {
                  setTimeout(function () {
                    window.location.replace(location.origin + '/v2/business/pay/buyGroups?id=' + res);
                  }, 1000);
                });
              }
            }, function () {}, that);
          }, function () {}, that);
          break;
        case 1:
          if (that.result.launchUserId != that.userInfoResult.userId) {
            that._Util.post(that._Api.POST_GET_QUICKACTIVITYPAY, {
              id: 565,
              price: 99,
              attachId: '小轨拼团_' + that.id
            }, function (data) {
              if (data) {
                that._Util.wxPay(data.jsApiParameters, function () {
                  setTimeout(function () {
                    window.location.replace(location.origin + '/v2/business/pay/buyGroups?id=' + that.id);
                  }, 1000);
                });
              }
            }, function () {}, that);
          } else {
            that.showMask = true;
            that.maskType = 3;
          }
          break;
        case 2:
          that.$router.replace({
            name: 'payMoney',
            query: {
              id: 566,
              buyGroupId: that.id,
              type: 'xiaogui'
            }
          });
      }
    },
    getDetail: function getDetail() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/fightGroup/getFightGroupDetails.json', {
        id: that.id
      }, function (data) {
        that.result = data;
        that.leftTime();
      }, function () {}, that);
    },
    payRecode: function payRecode(type) {
      this.showMask = true;
      if (type == 1) {
        this.maskType = 1;
      } else {
        this.maskType = 4;
      }
    },
    leftTime: function leftTime() {
      var that = this;
      var time;
      var timeBack;
      var timer = '';
      time = (that.result.surplusTime / 1000).toFixed(0);
      //        timeBack = that.secondToDate(time)
      //        console.log(timeBack)
      timer = setInterval(function () {
        time--;
        if (time == 0) {
          clearInterval(timer);
          that.NoTime = true;
        }
        timeBack = that.secondToDate(time);
        that.h1 = timeBack.split('')[0];
        that.h2 = timeBack.split('')[1];
        that.m1 = timeBack.split('')[2];
        that.m2 = timeBack.split('')[3];
        that.s1 = timeBack.split('')[4];
        that.s2 = timeBack.split('')[5];
      }, 1000);
    },
    secondToDate: function secondToDate(result) {
      var h = Math.floor(result / 3600) < 10 ? '0' + Math.floor(result / 3600) : Math.floor(result / 3600);
      var m = Math.floor(result / 60 % 60) < 10 ? '0' + Math.floor(result / 60 % 60) : Math.floor(result / 60 % 60);
      var s = Math.floor(result % 60) < 10 ? '0' + Math.floor(result % 60) : Math.floor(result % 60);
      result = h.toString() + m.toString() + s.toString();
      return result;
    },
    toPinTuan: function toPinTuan(type) {
      if (type == 0) {
        this.showMask = true;
        this.maskType = 0;
      } else {
        window.location.replace(location.origin + '/v2/business/pay/buyGroups');
      }
    },
    hasfriendCode: function hasfriendCode() {
      var that = this;
      if (!that.collageCode) {
        _mintUi.MessageBox.alert('拼团码不为空！');
        return;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/fightGroup/getFightGroupByCode.json', {
        sharingCode: that.collageCode
      }, function (data) {
        window.location.replace(location.origin + '/v2/business/pay/buyGroups?id=' + data);
      }, function () {}, that);
    },
    closeMask: function closeMask() {
      if (this.maskType == 3) {
        this.showMask = false;
      }
    },
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '我在卡修宝典发起了拼团，快来加入吧',
                  desc: '',
                  link: location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '我在卡修宝典发起了拼团，快来加入吧',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '我在卡修宝典发起了拼团，快来加入吧',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '我在卡修宝典发起了拼团，快来加入吧',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    toRefresh: function toRefresh(item) {
      window.location.replace(location.origin + '/v2/business/pay/buyGroups?id=' + item.id);
    },
    getMyFightGroup: function getMyFightGroup() {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/fightGroup/getMyFightGroup.json', {}, function (data) {
        that.getMyFightGroupList = data;
        if (that.getMyFightGroupList && that.getMyFightGroupList.length > 0) {
          that.showGetFightGroupList = true;
        } else {
          that.showGetFightGroupList = false;
        }
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.result.launchPayList || _vm.result.partakePayList)?_c('div',{staticClass:"pay-record",on:{"click":function($event){return _vm.payRecode(1)}}},[_vm._v("付款记录")]):_vm._e(),_vm._v(" "),(_vm.showGetFightGroupList)?_c('div',{staticClass:"pay-record",staticStyle:{"top":"180px"},on:{"click":function($event){return _vm.payRecode(2)}}},[_vm._v("我的拼团")]):_vm._e(),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"mask1",on:{"click":function($event){return _vm.closeMask()}}},[(_vm.maskType == 0)?_c('div',{staticClass:"groups-input-box"},[_c('div',{staticClass:"groups-input-title"},[_vm._v("拼团码组团")]),_vm._v(" "),_c('div',{staticClass:"groups-input-title1"},[_vm._v("输入好友的拼团码，参与拼团")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.collageCode),expression:"collageCode"}],staticClass:"c-code",attrs:{"type":"text"},domProps:{"value":(_vm.collageCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.collageCode=$event.target.value}}}),_vm._v(" "),_c('ul',{staticClass:"option-list-box"},[_c('li',{on:{"click":function($event){_vm.showMask = false;}}},[_vm._v("取消")]),_vm._v(" "),_c('li',{on:{"click":function($event){return _vm.hasfriendCode()}}},[_vm._v("确定")])])]):_vm._e(),_vm._v(" "),(_vm.maskType == 1)?_c('div',{staticClass:"rqcode-list-box"},[_c('div',{staticClass:"groups-input-title",staticStyle:{"margin-bottom":"10px"}},[_vm._v("付款记录")]),_vm._v(" "),(_vm.result.launchPayList && _vm.result.launchPayList.length>0)?_c('div',{staticStyle:{"height":"76px","overflow-y":"scroll","-webkit-overflow-scrolling":"touch"}},_vm._l((_vm.result.launchPayList),function(v,i){return _c('div',{key:i,staticClass:"recode-list"},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(v.payTime,'yyyy.MM.dd hh:mm'))+" ("+_vm._s(v.type)+")")]),_vm._v(" "),_c('span',{staticStyle:{"color":"#da384b"}},[_vm._v(_vm._s(v.totalFee)+"元")])])}),0):_vm._e(),_vm._v(" "),(_vm.result.partakePayList && _vm.result.partakePayList.length>0)?_c('div',{staticStyle:{"height":"76px","overflow-y":"scroll","-webkit-overflow-scrolling":"touch"}},_vm._l((_vm.result.partakePayList),function(v,i){return _c('div',{key:i,staticClass:"recode-list"},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(v.payTime,'yyyy.MM.dd hh:mm'))+" ("+_vm._s(v.type || '')+")")]),_vm._v(" "),_c('span',{staticStyle:{"color":"#da384b"}},[_vm._v(_vm._s(v.totalFee || 0)+"元")])])}),0):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"border-top":"1px solid #d2d2d2","text-align":"center","font-size":"18px","margin-top":"22px","padding-top":"7px"},on:{"click":function($event){_vm.showMask = false;}}},[_vm._v("关闭\n      ")])]):_vm._e(),_vm._v(" "),(_vm.maskType ==3)?_c('img',{staticStyle:{"width":"50%","position":"absolute","right":"2px"},attrs:{"src":__webpack_require__(3211)}}):_vm._e(),_vm._v(" "),(_vm.maskType ==4)?_c('div',{staticStyle:{"width":"95%","background":"#fff","border-radius":"5px","margin":"20px auto 0 auto","padding-top":"15px"}},[_c('div',{staticStyle:{"width":"100%","background":"#fff"}},[_c('div',{staticClass:"groups-input-title",staticStyle:{"margin-top":"0px"}},[_vm._v("我的拼团")]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","text-align":"center","font-size":"16px","margin-bottom":"10px"}},[_vm._v("点击进入对应拼团")]),_vm._v(" "),_vm._l((_vm.getMyFightGroupList),function(v,i){return _c('div',{key:i,staticClass:"recode-list",on:{"click":function($event){return _vm.toRefresh(v)}}},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(v.time,'yyyy.MM.dd hh:mm')))]),_vm._v(" "),_c('span',{staticStyle:{"color":"#da384b"}},[_c('i',{staticStyle:{"color":"#666"}},[_vm._v("拼团码：")]),_vm._v(_vm._s(v.sharingCode))])])})],2),_vm._v(" "),_c('div',{staticStyle:{"border-top":"1px solid #d2d2d2","text-align":"center","font-size":"18px","padding-top":"7px","padding-bottom":"7px"},on:{"click":function($event){_vm.showMask = false;}}},[_vm._v("关闭\n      ")])]):_vm._e()]):_vm._e(),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"box"},[(_vm.id && _vm.result.status ==1 && !_vm.NoTime)?_c('div',{staticClass:"timeLeave-box"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"time-list"},[_c('span',[_vm._v(_vm._s(_vm.h1))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.h2))]),_vm._v("\n        时\n        "),_c('span',[_vm._v(_vm._s(_vm.m1))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.m2))]),_vm._v("\n        分\n        "),_c('span',[_vm._v(_vm._s(_vm.s1))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.s2))]),_vm._v("\n        秒\n      ")])]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status ==2 && (_vm.userInfoResult.userId == _vm.result.launchUserId || _vm.userInfoResult.userId == _vm.result.partakeUserId))?_c('div',{staticStyle:{"font-size":"16px","color":"white","text-align":"center","margin-top":"25px","line-height":"30px"}},[_c('img',{staticStyle:{"width":"30px","height":"30px"},attrs:{"src":__webpack_require__(3212)}}),_vm._v(" "),_c('span',[_vm._v(" 恭喜您拼团成功！")])]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status ==1 && _vm.NoTime)?_c('div',{staticStyle:{"text-align":"center","font-size":"20px","color":"white"}},[_vm._v("本次拼团已失效\n    ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"top-img-box"},[(!_vm.id)?_c('div',{staticClass:"t-b"},[_c('div',[_c('div',{staticClass:"t-img"},[_c('div',{staticClass:"t-tip"},[_vm._v("待发起")]),_vm._v(" "),_c('img',{attrs:{"src":_vm.userInfoResult.headImgUrl}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.userInfoResult.uname || _vm.userInfoResult.nickname))])]),_vm._v(" "),_c('div',[_c('div',{staticClass:"t-img"},[(false)?undefined:_vm._e(),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(863)}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.result.partakeUserId ? _vm.result.partakeName : '虚位以待'))])])]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status ==1)?_c('div',{staticClass:"t-b"},[_c('div',[_c('div',{staticClass:"t-img"},[_c('div',{staticClass:"t-tip"},[_vm._v("已付定金")]),_vm._v(" "),_c('img',{attrs:{"src":_vm.result.launchImgUrl}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.result.launchName || ''))])]),_vm._v(" "),_c('div',[_c('div',{staticClass:"t-img"},[(_vm.result.launchUserId != _vm.userInfoResult.userId)?_c('div',{staticClass:"t-tip"},[_vm._v("\n              "+_vm._s(_vm.result.launchUserId != _vm.userInfoResult.userId ? '待参团' : '')+"\n            ")]):_vm._e(),_vm._v(" "),(_vm.result.launchUserId != _vm.userInfoResult.userId)?_c('img',{attrs:{"src":_vm.userInfoResult.headImgUrl}}):_c('img',{attrs:{"src":__webpack_require__(863)}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.result.launchUserId != _vm.userInfoResult.userId ? _vm.userInfoResult.uname : '虚位以待'))])])]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status ==2)?_c('div',{staticClass:"t-b"},[_c('div',[_c('div',{staticClass:"t-img"},[_c('div',{staticClass:"t-tip"},[_vm._v("已付定金")]),_vm._v(" "),_c('img',{attrs:{"src":_vm.result.launchImgUrl}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.result.launchName || ''))])]),_vm._v(" "),_c('div',[_c('div',{staticClass:"t-img"},[_c('div',{staticClass:"t-tip"},[_vm._v("已付定金")]),_vm._v(" "),_c('img',{attrs:{"src":_vm.result.partakeImgUrl}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.result.partakeName))])])]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status ==3)?_c('div',{staticClass:"t-b"},[_c('div',[_c('div',{staticClass:"t-img"},[_c('div',{staticClass:"t-tip"},[_vm._v("已付定金")]),_vm._v(" "),_c('img',{attrs:{"src":_vm.result.launchImgUrl}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.result.launchName || ''))])]),_vm._v(" "),_c('div',[_c('div',{staticClass:"t-img"},[(_vm.result.partakeUserId)?_c('div',{staticClass:"t-tip"},[_vm._v("已付定金")]):_vm._e(),_vm._v(" "),(_vm.result.partakeImgUrl)?_c('img',{attrs:{"src":_vm.result.partakeImgUrl}}):_c('img',{attrs:{"src":__webpack_require__(863)}})]),_vm._v(" "),_c('div',{staticClass:"t-name"},[_vm._v(_vm._s(_vm.result.partakeName))])])]):_vm._e()]),_vm._v(" "),(!_vm.id)?_c('div',{staticClass:"c-button",on:{"click":function($event){return _vm.buttonEvent(0)}}},[_vm._v("发起拼团（99定金）")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==1)?_c('div',{staticClass:"c-button",on:{"click":function($event){return _vm.buttonEvent(1)}}},[_vm._v("\n      "+_vm._s(_vm.result.launchUserId != _vm.userInfoResult.userId ? '参与拼团，支付定金' : '转发邀请好友参与')+"\n    ")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==2 && _vm.result.partakeTotal )?_c('div',{staticClass:"c-button",domProps:{"innerHTML":_vm._s(_vm.result.partakeTotal > 99 ? '累计支付' + _vm.result.partakeTotal + '元,<br/>点击继续付款' : '支付尾款')},on:{"click":function($event){return _vm.buttonEvent(2)}}}):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==2 && _vm.result.launchTotal )?_c('div',{staticClass:"c-button",domProps:{"innerHTML":_vm._s(_vm.result.launchTotal > 99 ? '累计支付' + _vm.result.launchTotal + '元,<br/>点击继续付款' : '支付尾款')},on:{"click":function($event){return _vm.buttonEvent(2)}}}):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==2 && _vm.userInfoResult.userId != _vm.result.launchUserId && _vm.userInfoResult.userId != _vm.result.partakeUserId)?_c('div',{staticClass:"c-button",staticStyle:{"background":"#a0a1a3","color":"#333","border":"none"}},[_vm._v("\n      本团名额已满\n    ")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==3)?_c('div',{staticClass:"c-button",staticStyle:{"background":"#a0a1a3","color":"#333","border":"none"}},[_vm._v("\n      拼团失败\n    ")]):_vm._e(),_vm._v(" "),(!_vm.id)?_c('div',{staticClass:"b-t",on:{"click":function($event){return _vm.toPinTuan(0)}}},[_vm._v("我有好友的拼团码>")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status == 1 && _vm.result.launchUserId == _vm.userInfoResult.userId)?_c('div',{staticClass:"b-t",staticStyle:{"background":"#e6e6e6","width":"40%","font-size":"16px","color":"black","padding":"7px 0","margin-left":"auto","margin-right":"auto"}},[_vm._v("我的拼团码  "+_vm._s(_vm.result.sharingCode)+"\n    ")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==3)?_c('div',{staticClass:"b-t",on:{"click":function($event){return _vm.toPinTuan(1)}}},[_vm._v("发起我的拼团>")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==2 && _vm.userInfoResult.userId != _vm.result.launchUserId && _vm.userInfoResult.userId != _vm.result.partakeUserId)?_c('div',{staticClass:"b-t",on:{"click":function($event){return _vm.toPinTuan(1)}}},[_vm._v("\n      发起我的拼团>\n    ")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==2 && _vm.result.partakeTotal )?_c('div',{staticClass:"b-t",on:{"click":function($event){return _vm.toPinTuan(1)}}},[_vm._v("发起新的拼团>")]):_vm._e(),_vm._v(" "),(_vm.id && _vm.result.status==2 && _vm.result.launchTotal )?_c('div',{staticClass:"b-t",on:{"click":function($event){return _vm.toPinTuan(1)}}},[_vm._v("发起新的拼团>")]):_vm._e(),_vm._v(" "),_c('img',{staticClass:"f1",attrs:{"src":__webpack_require__(3213)}}),_vm._v(" "),_c('div',{staticStyle:{"font-size":"14px","text-align":"center","color":"#fdebbf","margin":"10px 0"}},[_vm._v("以下任意一款设备均可参与团购，可多次参团")]),_vm._v(" "),_vm._m(2),_vm._v(" "),_c('img',{staticClass:"f1",attrs:{"src":__webpack_require__(3214)}}),_vm._v(" "),_vm._m(3)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"banner"},[_c('img',{attrs:{"src":__webpack_require__(3215)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"con"},[_c('i'),_vm._v(" "),_c('p',[_vm._v("距本团失效")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-list-box",staticStyle:{"padding":"0 15px"}},[_c('div',{staticClass:"b-list"},[_c('img',{attrs:{"src":__webpack_require__(3216)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"70%","float":"left"}},[_c('div',{staticClass:"d-title"},[_vm._v("诊断能手")]),_vm._v(" "),_c('div',{staticClass:"d-info"},[_vm._v("\n            本产品技术方案主要用于柴油发动机电控系统售后诊断，产品覆盖国际主流汽车系统供应商的产品\n          ")])])]),_vm._v(" "),_c('div',{staticClass:"b-list"},[_c('img',{attrs:{"src":__webpack_require__(3217)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"70%","float":"left"}},[_c('div',{staticClass:"d-title"},[_vm._v("便携王")]),_vm._v(" "),_c('div',{staticClass:"d-info"},[_vm._v("\n            独创故障模式下部件诊断，泵有故障也不怕，快速测试，旧泵里面找新件。完整控制逻辑...\n          ")])])]),_vm._v(" "),_c('div',{staticClass:"b-list"},[_c('img',{attrs:{"src":__webpack_require__(3218)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"70%","float":"left"}},[_c('div',{staticClass:"d-title"},[_vm._v("精修大师")]),_vm._v(" "),_c('div',{staticClass:"d-info"},[_vm._v("\n            10分钟完成喷油器完全装配与测量，3分钟完成阀组件更换测量，高精度千分表大位移量...\n          ")])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"padding":"0 15px"}},[_c('img',{staticClass:"f2",attrs:{"src":__webpack_require__(3219)}})])}]
module.exports = __webpack_require__.p + "static/img/share.61d6343.png";module.exports = __webpack_require__.p + "static/img/success.6bbde89.png";module.exports = __webpack_require__.p + "static/img/default.fbcd23b.png";module.exports = __webpack_require__.p + "static/img/f1.0de9d4e.png";module.exports = __webpack_require__.p + "static/img/f2.f867fde.png";module.exports = __webpack_require__.p + "static/img/banner.e9a1c8e.png";module.exports = __webpack_require__.p + "static/img/a1.2f758f2.png";module.exports = __webpack_require__.p + "static/img/a2.a3306b8.png";module.exports = __webpack_require__.p + "static/img/a3.15acde6.png";module.exports = __webpack_require__.p + "static/img/s1.a61481e.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(599);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56720a33_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1198);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3220)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-56720a33"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56720a33_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56720a33_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_indx_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3221);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4043e6c0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bgf[data-v-56720a33]{background-color:#e6e6e6}.cycSearch[data-v-56720a33]{padding:10px}.cycSearch>div[data-v-56720a33]{border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList[data-v-56720a33]{border:none}.cycSearch input[data-v-56720a33]{height:33px;text-indent:10px;width:100%;text-align:center;-webkit-transition:all .6s;transition:all .6s;background:#fff;border-radius:3px}.cycSearch .animation1[data-v-56720a33]{text-align:left;width:75%}.cycSearch button[data-v-56720a33]{position:absolute;width:20%;height:33px;right:0;top:0;font-size:14px;background:#b71c24;color:#fff;transform:translateX(500px);-ms-transform:translateX(500px);-webkit-transform:translateX(500px);-o-transform:translateX(500px);-moz-transform:translateX(500px);-webkit-transition:all .6s;transition:all .6s;border-radius:3px}.cycSearch .animation[data-v-56720a33]{-ms-transform:translateX(0);transform:translateX(0);-moz-transform:translateX(0);-webkit-transform:translateX(0);-o-transform:translateX(0)}@media screen and (min-width:790px) and (max-width:810px){.cycSearch button[data-v-56720a33]{transform:translateX(192px);-ms-transform:translateX(192px);-webkit-transform:translateX(192px);-o-transform:translateX(192px);-moz-transform:translateX(192px)}.cycSearch .animation1[data-v-56720a33]{width:78%}}.munu_list[data-v-56720a33],.results[data-v-56720a33]{line-height:40px;box-sizing:border-box;padding:0 10px;border-bottom:1px solid #eee;color:#999;height:40px;background-color:#fff;margin-top:-10px;display:none}.munu_list.active1[data-v-56720a33]{display:block;margin-top:0}.results.active1[data-v-56720a33]{display:block;text-align:center;margin-top:0}.munu_list>span[data-v-56720a33]{float:left}@media screen and (max-width:320px){.munu_list>span[data-v-56720a33]:first-child{max-width:230px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}@media screen and (min-width:321px) and (max-width:375px){.munu_list>span[data-v-56720a33]:first-child{max-width:270px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.munu_list>span[data-v-56720a33]:nth-child(2){float:right}.bgf .ul_list[data-v-56720a33]{background-color:#fff}.bgf .ul_list[data-v-56720a33]:after{display:block;clear:both;content:\"\"}.bgf .ul_list>li[data-v-56720a33]{box-sizing:border-box;padding:10px 15px 10px 10px;line-height:50px;border-top:1px solid #e6e6e6;font-size:16px;position:relative;width:100%;display:table}.bgf .ul_list>.inforfile[data-v-56720a33]{padding-left:40px;background:url(" + escape(__webpack_require__(273)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>.inforfile1[data-v-56720a33]{padding-left:40px;background:url(" + escape(__webpack_require__(148)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>.inforfile1>div>div[data-v-56720a33],.bgf .ul_list>.inforfile>div>div[data-v-56720a33]{float:left}.bgf .ul_list .inforgo[data-v-56720a33]{margin-top:7px}.bgf .ul_list>li.inforimg[data-v-56720a33]{line-height:24px;padding-left:40px;background:url(" + escape(__webpack_require__(148)) + ") no-repeat 10px;background-size:21px 23px}.inforimg[data-v-56720a33]:after{clear:both;display:block;content:\"\"}.bgf .ul_list>li.inforimg .filesize[data-v-56720a33]{font-size:12px}.ints .details[data-v-56720a33]{line-height:24px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.bgf span[data-v-56720a33]{display:inline}.bgf .ul_list>li.inforimg.inforvideo[data-v-56720a33]{background:url(" + escape(__webpack_require__(274)) + ") no-repeat 10px;background-size:30px 36px}.bgf .ul_list>li.inforimg.inforpdf[data-v-56720a33]{background:url(" + escape(__webpack_require__(275)) + ") no-repeat 10px;background-size:21px 23px}.fileInfo[data-v-56720a33]{float:left}.fileStatus[data-v-56720a33]{float:right;margin-top:22px;text-indent:0}.fileStatus>span[data-v-56720a33]{color:#b2171c;float:right}.context[data-v-56720a33]{text-align:left}.bold[data-v-56720a33]{font-weight:700;color:#111}.confirmBtn[data-v-56720a33]{background:#ba1a2b;color:#fff}.bgf .ul_list .inforgo[data-v-56720a33]{float:right;position:absolute;right:7px;top:50%;margin-top:-4px;transform:rotate(90deg);-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);-o-transform:rotate(90deg);-moz-transform:rotate(90deg)}.secondLi[data-v-56720a33]{width:100%;height:100%}.arrowDown[data-v-56720a33]{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg)}.arrlist[data-v-56720a33]{background:#fff;overflow:hidden}.detailTreeName[data-v-56720a33]{width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left;text-indent:10px}.detailImg[data-v-56720a33]{float:right;margin-top:9px;margin-right:15px}.secondList[data-v-56720a33]{border-bottom:1px solid #e2e2e2;width:90%;margin-left:10%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      searchDate: '',
      clickFlag: true,
      resultList: [],
      clicktitle: '',
      pageid: '',
      text: 'all',
      pagelist: '',
      pagetitle: '',
      showSearchBtn: false,
      fileNo: 'e49e2b06781d11e789bc000c295f0820',
      shareurl: '',
      treeId: null,
      id: null,
      userResult: '',
      firstTreeId: '',
      isPromote: '',
      thisHeight: '',
      showTreeList: false,
      secondResult: {},
      scrollTop: 0,
      canopenpdf: false,
      randomStr: ''
    };
  },
  computed: {
    texts: function texts() {
      return this.pagetitle.split(',').reverse().splice(0, this.pagetitle.split(',').length).join('>');
    }
  },
  watch: {
    $route: function $route(nval, oval) {
      // alert(nval.query.fileNo)
      this.post();
      setTimeout(function () {
        var scrollTop1 = sessionStorage.getItem('InforFileNo' + nval.query.fileNo);
        if (scrollTop1) {
          (0, _jquery.default)('#scrollBox').scrollTop(scrollTop1);
          sessionStorage.setItem('InforFileNo' + nval.query.fileNo, 0);
        }
      }, 300);
    }
  },
  mounted: function mounted() {
    var that = this;
    if (!that._Util.isApp() && !that._Util.isMPaaS() && localStorage.getItem('inWxMinapp') !== '1') {
      that.getKaluliAuth();
    }
    //      let head = document.getElementsByTagName('head')[0];
    //      let str = 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'
    //      let oMeta = document.createElement('meta');
    //      oMeta.id = 'userScale';
    //      oMeta.content = str;
    //      oMeta.name = 'viewport';
    //      head.appendChild(oMeta)
    that.getUserInfo();
    that.getRandomChar();
    (0, _jquery.default)('#scrollBox').scroll(function () {
      that.scrollTop = (0, _jquery.default)(this).scrollTop();
    });
    if (sessionStorage.getItem('InforScrollFlag') && sessionStorage.getItem('InforScrollFlag') == 1) {
      that.resultList = JSON.parse(sessionStorage.getItem('InforList'));
      that.pagelist = that.resultList.length;
      that.pagetitle = sessionStorage.getItem('InforTitle');
      that.treeId = sessionStorage.getItem('InfortreeId');
      that.id = sessionStorage.getItem('InforId');
      that.firstTreeId = sessionStorage.getItem('InforFirstTreeId');
      that.isPromote = sessionStorage.getItem('InforIsPromote');
      setTimeout(function () {
        (0, _jquery.default)('#scrollBox').scrollTop(sessionStorage.getItem('InforScrollTop'));
        sessionStorage.setItem('InforScrollTop', 0); // 页面滚动高度
        sessionStorage.setItem('InforScrollFlag', 0);
        sessionStorage.setItem('InforList', '');
      }, 600);
    } else {
      that.post();
    }
    setTimeout(function () {
      if (document.getElementsByClassName('munu_list')[0]) {
        that.thisHeight = document.body.offsetHeight - document.getElementsByClassName('cycSearch')[0].offsetHeight - document.getElementsByClassName('munu_list')[0].offsetHeight + 'px';
      } else {
        that.thisHeight = document.body.offsetHeight - document.getElementsByClassName('cycSearch')[0].offsetHeight + 'px';
      }
    }, 500);
    /* 判断app版本*/
    setTimeout(function () {
      if (that._Util.isApp()) {
        var version = localStorage.getItem('newVersion');
        if (that.compareVersion(version)) {
          that.canopenpdf = true;
        }
      }
    }, 500);
  },
  methods: {
    getKaluliAuth: function getKaluliAuth() {
      var that = this;
      if (!that._Util.getLocalStorage('kllOpenId')) {
        if (window.location.href.indexOf('kaluli') == -1) {
          that._Util.post(that._Api.POST_GET_GETKALULIAPPID, {}, function (data) {
            if (data) {
              // const hr =
              //   window.location.href.substr(
              //     0,
              //     window.location.href.indexOf('code=') - 1
              //   ) || window.location.href
              // window.location.replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ data.appId +'&redirect_uri=' + escape(hr) + '&action=viewtest&response_type=code&scope=snsapi_base&state=kaluli#wechat_redirect');
            }
          }, function () {}, that);
        } else {
          var reg = new RegExp('(^|&)code=([^&]*)(&|$)');
          var r = location.search.substr(1).match(reg);
          var code = r == null ? null : decodeURI(r[2]);
          that._Util.post(that._Api.POST_GET_GETKLLOPENIDBYCODE, {
            code: code
          }, function (data) {}, function () {}, that);
        }
      }
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userResult = data;
        }
      }, function () {}, that);
    },
    sendEmile: function sendEmile(file) {
      var that = this;
      if (that.userResult.uemail) {
        (0, _mintUi.MessageBox)({
          title: '文档发邮件',
          message: "\u60A8\u7684\u90AE\u7BB1\uFF1A".concat(that.userResult.uemail),
          showConfirmButton: true,
          confirmButtonText: '确认发送',
          confirmButtonClass: 'confirmBtn',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.spread(file.fileNo);
          }
        });
      } else {
        (0, _mintUi.MessageBox)({
          title: '文档发邮件',
          message: "\u60A8\u7684\u90AE\u7BB1\uFF1A\u6682\u65E0",
          showConfirmButton: true,
          confirmButtonText: '填写邮箱',
          confirmButtonClass: 'confirmBtn',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.push({
              name: 'memberPersonalInfo'
            });
          }
        });
      }
    },
    clickFile: function clickFile(item) {
      var that = this;
      /* 增加返回定位*/
      sessionStorage.setItem('InforFileNo' + that.fileNo, that.scrollTop);
      sessionStorage.setItem('InforScrollTop', that.scrollTop); // 页面滚动高度
      sessionStorage.setItem('InforScrollFlag', 1);
      sessionStorage.setItem('InforList', JSON.stringify(that.resultList));
      sessionStorage.setItem('InforTitle', that.pagetitle);
      sessionStorage.setItem('InforId', that.id);
      sessionStorage.setItem('InfortreeId', that.treeId);
      sessionStorage.setItem('InforFirstTreeId', that.firstTreeId);
      sessionStorage.setItem('InforIsPromote', that.isPromote);
      if (item.viewMode == 2 && (that.userResult.userStatus == 0 || that.userResult.userStatus == 1)) {
        that.checkStatus(item);
        return;
      }
      var pagetitleArr = that.pagetitle.split(',');
      var pageType = pagetitleArr[pagetitleArr.length - 1];
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '万能搜搜',
        operate_page: that.$route.query.folderName || '资料页面',
        optionType: '点击',
        param1: item.fileNo,
        param2: item.fileName,
        param3: that.randomStr,
        param4: {
          queryValue: '',
          result: '',
          filter: '',
          type: pageType
        }
      }, that);
      this.fileNo = item.fileNo;

      /* 如果是app，判断有无pdf的url，有的话就打开pdf*/
      // if(that._Util.isApp() && that.canopenpdf) {
      //     if(item.pdfUrl) {
      //         api.sendEvent({
      //           name: 'openPdf2',
      //           extra: {
      //             pdfUrl: item.pdfUrl
      //           }
      //         });
      //         return;
      //     }
      // }

      if (item.atlas == 1) {
        // that.$http
        //   .post(that._Api.HOSTOLD + "api/treeShare/getAtlasList.json", {
        //     keyword: item.fileNo,
        //     pageNum: 1,
        //     pageSize: 3
        //   })
        //   .then(function(res) {
        //     let list = JSON.stringify(res.data.data.list);
        //     localStorage.setItem("list", list);
        //     that.$router.push({
        //       name: "picList",
        //       query: {
        //         isScale: 1,
        //         title: res.data.data.atlasName,
        //         count: res.data.data.totalCount,
        //         pageNum: 1,
        //         pageSize: 3,
        //         type: 2,
        //         fileNo: item.fileNo
        //       }
        //     });
        //   })
        //   .catch(function(error) {
        //     console.log(error);
        //   });
        that.$router.push({
          name: 'picList',
          query: {
            isScale: 1,
            pageNum: 1,
            pageSize: 3,
            type: 2,
            fileNo: item.fileNo
          }
        });
      } else {
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderid: this.$route.query.folderid,
            folderName: that.$route.query.folderName
          }
        });
      }
    },
    post: function post() {
      this.fileNo = this._Util.getQueryString('fileNo');
      var that = this;
      this.$http.post(that._Api.HOSTOLD + 'api/treeShare/getTreeShareList.json', {
        fileNo: that.fileNo
      }).then(function (res) {
        if (res.data.status == 401 || res.data.status == 4001) {
          if (localStorage.getItem('inUniApp') === '1') {
            // 在uniapp打包的app内
            uni.reLaunch({
              // eslint-disable-line
              url: '/pages/loginApp/login'
            });
            return;
          }
          that.$router.push({
            name: 'followMe'
          });
          return;
        }
        if (res.data.status == 500 || res.data.status == 501) {
          _mintUi.MessageBox.alert('网络错误，请刷新！');
          return;
        }
        if (res.data.data.isPromote == 1) {
          that.$router.replace({
            name: 'inforindex',
            query: {
              fileNo: that.fileNo
            }
          });
        }
        if (res.data.data.tree) {
          that.pagetitle = res.data.data.tree;
          document.querySelector('title').innerHTML = that.pagetitle.split(',')[0];
        }
        if (res.data.data.treeShareList) {
          that.pagelist = res.data.data.treeShareList.length;
        }
        that.resultList = res.data.data.treeShareList;
        var _iterator = _createForOfIteratorHelper(that.resultList),
          _step;
        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var o = _step.value;
            switch (o.viewMode) {
              case 1:
                if (that.userResult.userStatus == 0) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
              case 2:
                if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
              case 3:
                if (o.paymentStatus == 0) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
              case 4:
                if (o.paymentStatus == 0) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
            }
            if (!o.lock) {
              switch (o.mailCapture) {
                case 0:
                  o.emile = false;
                  break;
                case 1:
                  if (that.userResult.userStatus == 0) {
                    o.emile = false;
                  } else {
                    o.emile = true;
                  }
                  break;
                case 2:
                  if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
                    o.emile = false;
                  } else {
                    o.emile = true;
                  }
                  break;
                case 3:
                  o.emile = true;
              }
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
        that.treeId = res.data.data.firstTreeId;
        that.id = res.data.data.treeShare.id;
        that.firstTreeId = res.data.data.firstTreeId;
        that.isPromote = res.data.data.isPromote;
      }).catch(function (error) {
        console.log(error);
      });
    },
    /** 获取随机数，用于统计埋点记录的次数*/getRandomChar: function getRandomChar() {
      var that = this;
      var chars = 'abcdefghijklmnopqrstuvwxyz123456789';
      var maxPos = chars.length;
      var pwd = '';
      for (var i = 0; i < 32; i++) {
        pwd += chars.charAt(Math.floor(Math.random() * maxPos));
      }
      that.randomStr = pwd;
      return that.randomStr;
    },
    /** 点击搜索按钮 */search: function search() {
      if (!this.searchDate.trim()) {
        _mintUi.MessageBox.alert('请输入搜索内容！');
        return;
      }
      var pagetitleArr = this.pagetitle.split(',');
      var pageType = pagetitleArr[pagetitleArr.length - 1];
      if (this.$route.query.folderid) {
        if (!this._Util.isApp()) {
          this.$router.push({
            name: 'appSearchResultNew',
            query: {
              keyword: this.searchDate,
              title: this.$route.query.folderName || pageType,
              folderid: this.$route.query.folderid,
              isClick: false
            }
          });
        } else {
          this.$router.push({
            name: 'appSearchResultNew',
            query: {
              keyword: this.searchDate,
              title: this.$route.query.folderName || pageType,
              folderid: this.$route.query.folderid,
              isClick: false
            }
          });
          // this.$router.push({
          //   name: "inforResult1",
          //   params: {
          //     id: this.searchDate,
          //     fileNo: this.fileNo,
          //     hei: this.thisHeight
          //   }
          // });
        }
      } else {
        this.$router.push({
          name: 'inforResult1',
          params: {
            id: this.searchDate,
            fileNo: this.fileNo,
            hei: this.thisHeight
          }
        });
      }
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      var pagetitleArr = that.pagetitle.split(',');
      var pageType = pagetitleArr[pagetitleArr.length - 1];
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '万能搜搜',
        operate_page: that.$route.query.folderName || '资料页面',
        optionType: '点击',
        param1: item.fileNo,
        param2: item.fileName,
        param3: that.randomStr,
        param4: {
          queryValue: '',
          result: '',
          filter: '',
          type: pageType
        }
      }, that);
      if (filetype.toUpperCase() == 'PDF') {
        var backurl = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + fileNo + '&treeId=' + that.id;
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          if (res.data.data.shareUrl) {
            if (that.clickFlag) {
              that.clickFlag = false;
              if (that._Util.getLocalStorage('isApp')) {
                var pdfReader = api.require('pdfReader');
                pdfReader.open({
                  path: res.data.data.shareUrl[0].fileUrl,
                  hidden: {
                    print: false,
                    export: false,
                    bookmark: false,
                    email: false
                  }
                });
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
              } else {
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                that._Util.AddEventFmt100Url(backurl);
                window.location.href = backurl;
              }
            }
          }
        }).catch(function (error) {
          console.log(error);
        });
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          var share = '';
          if (res.data.data.shareUrl) {
            share = res.data.data.shareUrl[0].fileUrl;
            // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
            that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(share));
            that.$router.push({
              name: 'video',
              query: {
                share: share
              }
            });
            //                that.video()
            // console.log(that.share);
          }
        }).catch(function (error) {
          console.log(error);
        });
      } else {
        if (filetype.toUpperCase() != 'JPG') {
          this.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
            // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
            that._Util.AddEventFmt100Url(res.data.data.shareUrl[0].fileUrl);
            location.href = res.data.data.shareUrl[0].fileUrl;
          }).catch(function (error) {
            console.log(error);
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=2&title=' + item.fileName + '&pageNum=1&pageSize=3&&&fileNo=' + fileNo + '&filetype=' + filetype.toUpperCase());
          that.$router.push({
            name: 'picList',
            query: {
              isScale: 1,
              title: item.fileName,
              count: 1,
              pageNum: 1,
              pageSize: 3,
              type: 2,
              treeId: that.id,
              fileNo: fileNo,
              filetype: filetype.toUpperCase()
            }
          });
        }
      }
    },
    checkStatus: function checkStatus(file) {
      var that = this;
      /* 增加返回定位*/
      sessionStorage.setItem('InforFileNo' + that.fileNo, that.scrollTop);
      sessionStorage.setItem('InforScrollTop', that.scrollTop); // 页面滚动高度
      sessionStorage.setItem('InforScrollFlag', 1);
      sessionStorage.setItem('InforList', JSON.stringify(that.resultList));
      sessionStorage.setItem('InforTitle', that.pagetitle);
      sessionStorage.setItem('InforId', that.id);
      sessionStorage.setItem('InfortreeId', that.treeId);
      sessionStorage.setItem('InforFirstTreeId', that.firstTreeId);
      sessionStorage.setItem('InforIsPromote', that.isPromote);
      console.log(file);
      if (file.lock) {
        switch (file.viewMode) {
          case 1:
            if (that.userResult.userStatus == 0) {
              (0, _mintUi.MessageBox)({
                title: '该文档需认证后可见',
                message: '请点击下方按钮认证',
                showConfirmButton: true,
                confirmButtonText: '认证',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              });
            } else {
              that.openresource(file, file.fileNo, file.fileType);
            }
            break;
          case 2:
            if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
              (0, _mintUi.MessageBox)({
                title: '该文档为付费会员可见',
                message: '请进入会员中心开通会员',
                showConfirmButton: true,
                confirmButtonText: '会员中心',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              });
            } else {
              that.openresource(file, file.fileNo, file.fileType);
            }
            break;
          case 3:
            if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
              (0, _mintUi.MessageBox)({
                title: '该文档需购买后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
                showConfirmButton: true,
                confirmButtonText: '购买',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                    price: file.viewCostAuthen,
                    itemCode: 'ZL0001'
                  }, function (data) {
                    that._Util.wxPay(data.jsApiParameters, function () {
                      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                        fileNo: file.fileNo,
                        treeId: that.firstTreeId,
                        isPromote: that.isPromote
                      }, function (data) {
                        that.post();
                      }, function () {}, that);
                    });
                  }, function () {}, that);
                }
              });
            } else {
              (0, _mintUi.MessageBox)({
                title: '该文档需购买后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostPay, "</div>"),
                showConfirmButton: true,
                confirmButtonText: '购买',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                    price: file.viewCostPay,
                    itemCode: 'ZL0001'
                  }, function (data) {
                    that._Util.wxPay(data.jsApiParameters, function () {
                      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                        fileNo: file.fileNo,
                        treeId: that.firstTreeId,
                        isPromote: that.isPromote
                      }, function (data) {
                        that.post();
                      }, function () {}, that);
                    });
                  }, function () {}, that);
                }
              });
            }
            break;
          case 4:
            if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
              (0, _mintUi.MessageBox)({
                title: '该文档需积分兑换后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
                showConfirmButton: true,
                confirmButtonText: '积分兑换',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.postPoint(file, file.fileNo, file.viewCostAuthen);
                }
              });
            } else {
              (0, _mintUi.MessageBox)({
                title: '该文档需积分兑换后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostPay, "\u79EF\u5206</div>"),
                showConfirmButton: true,
                confirmButtonText: '积分兑换',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.postPoint(file.fileNo, file.viewCostPay);
                }
              });
            }
            break;
        }
      } else {
        that.openresource(file, file.fileNo, file.fileType);
      }
    },
    getCourse: function getCourse() {
      var that = this;
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getPurchaseCourse.json?treeId=' + that.treeId).then(function (res) {
        var data = res.data.data;
        (0, _mintUi.MessageBox)({
          title: '免费获取课程',
          message: "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(data.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A<br>\n                         1\uFF0C").concat(data.video, "\u4E2A\u89C6\u9891\u6587\u4EF6<br>\n                         2\uFF0C").concat(data.pdf, "\u4E2APDF\u6587\u4EF6<br>\n                         3\uFF0C").concat(data.picture, "\u4E2A\u56FE\u7247\u6587\u4EF6<br></div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(data.price, "\u5143</span>"),
          showConfirmButton: true,
          confirmButtonText: '去付款',
          showCancelButton: true,
          cancelButtonText: '关闭'
        }).then(function (action) {
          if (action === 'confirm') {
            that.pay(data.merchandiseId);
          }
        });
      });
    },
    spread: function spread(id) {
      var that = this;
      //        Indicator.open({text: `发送中．．．`, spinnerType: 'triple-bounce'})
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/sendEmail.json', {
        fileNo: id
      }, function (data) {
        //          if(data){
        //            Indicator.close();
        //          }
      }, function () {}, that);
    },
    pay: function pay(id) {
      window.location.href = this._Api.HOSTRESOURCEPATH + '/v2/shopping/detail?id=' + id;
    },
    postPoint: function postPoint(id, point) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        that.post();
      }, function () {}, that);
    },
    openTreeList: function openTreeList() {
      var that = this;
      if (!that.firstTreeId) {
        return;
      }
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
        params: {
          treeId: that.firstTreeId
        }
      }).then(function (res) {
        if (res.data.data) {
          that.showTreeList = true;
          that.ListArray = res.data.data;
          var _iterator2 = _createForOfIteratorHelper(that.ListArray),
            _step2;
          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var v = _step2.value;
              v.check = false;
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    openSecond: function openSecond(file, index) {
      var that = this;
      var _iterator3 = _createForOfIteratorHelper(that.ListArray),
        _step3;
      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var v = _step3.value;
          if (v.treeName != file.treeName) {
            v.check = false;
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }
      file.check = !file.check;
      if (file.check) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
          params: {
            treeId: file.id
          }
        }).then(function (res) {
          if (res.data.data) {
            that.secondResult = res.data.data;
          }
        }).catch(function (err) {
          console.log(err);
        });
      } else {
        that.secondResult = {};
      }
    },
    closeTreeList: function closeTreeList() {
      this.showTreeList = false;
    },
    toDetail: function toDetail(file) {
      var that = this;
      that.showTreeList = false;
      that.fileNo = file.treeNo;
      if (file.atlas == 1) {
        // that.$http
        //   .post(that._Api.HOSTOLD + "api/treeShare/getAtlasList.json", {
        //     keyword: file.treeNo,
        //     pageNum: 1,
        //     pageSize: 3
        //   })
        //   .then(function(res) {
        //     let list = JSON.stringify(res.data.data.list);
        //     localStorage.setItem("list", list);
        //     that.$router.push({
        //       name: "picList",
        //       query: {
        //         isScale: 1,
        //         title: res.data.data.atlasName,
        //         count: res.data.data.totalCount,
        //         pageNum: 1,
        //         pageSize: 3,
        //         type: 2,
        //         fileNo: file.treeNo
        //       }
        //     });
        //   })
        //   .catch(function(error) {
        //     console.log(error);
        //   });
        that.$router.push({
          name: 'picList',
          query: {
            isScale: 1,
            pageNum: 1,
            pageSize: 3,
            type: 2,
            fileNo: file.treeNo
          }
        });
      } else {
        this.$http.post(that._Api.HOSTOLD + 'api/treeShare/getTreeShareList.json', {
          fileNo: that.fileNo
        }).then(function (res) {
          if (res.data.status == 401 || res.data.status == 4001) {
            that.$router.push({
              name: 'followMe'
            });
            return;
          }
          if (res.data.status == 500 || res.data.status == 501) {
            _mintUi.MessageBox.alert('网络错误，请刷新！');
            return;
          }
          if (res.data.data.isPromote == 0) {
            that.$router.replace({
              name: 'inforindex1',
              query: {
                fileNo: that.fileNo
              }
            });
          }
          if (res.data.data.tree) {
            that.pagetitle = res.data.data.tree;
            document.querySelector('title').innerHTML = that.pagetitle.split(',')[0];
          }
          if (res.data.data.treeShareList) {
            that.pagelist = res.data.data.treeShareList.length;
          }
          that.resultList = res.data.data.treeShareList;
          var _iterator4 = _createForOfIteratorHelper(that.resultList),
            _step4;
          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var o = _step4.value;
              // 从树形列表进入后，重新判断是否需要加锁
              switch (o.viewMode) {
                case 1:
                  if (that.userResult.userStatus == 0) {
                    o.lock = true;
                  } else {
                    o.lock = false;
                  }
                  break;
                case 2:
                  if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
                    o.lock = true;
                  } else {
                    o.lock = false;
                  }
                  break;
                case 3:
                  if (o.paymentStatus == 0) {
                    o.lock = true;
                  } else {
                    o.lock = false;
                  }
                  break;
                case 4:
                  if (o.paymentStatus == 0) {
                    o.lock = true;
                  } else {
                    o.lock = false;
                  }
                  break;
              }
              if (!o.lock) {
                switch (o.mailCapture) {
                  case 0:
                    o.emile = false;
                    break;
                  case 1:
                    if (that.userResult.userStatus == 0) {
                      o.emile = false;
                    } else {
                      o.emile = true;
                    }
                    break;
                  case 2:
                    if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
                      o.emile = false;
                    } else {
                      o.emile = true;
                    }
                    break;
                  case 3:
                    o.emile = true;
                }
              }
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }
          that.treeId = res.data.data.firstTreeId;
          that.id = res.data.data.treeShare.id;
          that.gratis = res.data.data.gratis;
          that.price = res.data.data.price;
          that.firstTreeId = res.data.data.firstTreeId;
          that.isPromote = res.data.data.isPromote;
        }).catch(function (error) {
          console.log(error);
        });
      }
    },
    /** 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true */compareVersion: function compareVersion(appVer) {
      var limitVer = '1.4.1'; // 1.4.1开始app上才添加了openpdf的方法
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bgf",staticStyle:{"overflow":"hidden"}},[_c('transition',{attrs:{"name":"fade"}},[(_vm.showTreeList)?_c('div',{staticStyle:{"height":"100%","overflow":"scroll","-webkit-overflow-scrolling":"touch"}},[_c('div',{staticStyle:{"font-size":"20px","color":"#333","background":"white","border-bottom":"1px solid #E2E2E2","padding":"10px 0","text-indent":"10px"}},[_vm._v("目录：")]),_vm._v(" "),_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"60px","height":"60px"},attrs:{"src":__webpack_require__(276)},on:{"click":function($event){return _vm.closeTreeList()}}})]),_vm._v(" "),_c('ul',_vm._l((_vm.ListArray),function(v,inde){return _c('li',{key:inde,staticClass:"arrlist",on:{"click":function($event){return _vm.openSecond(v,inde)}}},[_c('div',{staticStyle:{"overflow":"hidden","border-bottom":"1px solid #E2E2E2","padding":"10px 0","width":"95%","margin-left":"5%"}},[_c('div',{staticClass:"detailTreeName",staticStyle:{"font-size":"16px","color":"#333"}},[_vm._v(_vm._s(v.treeName))]),_vm._v(" "),_c('img',{staticClass:"detailImg",class:{'arrowDown' : v.check},attrs:{"src":__webpack_require__(277),"width":"12","height":"7"}})]),_vm._v(" "),_c('div',{staticClass:"secondLiBox"},_vm._l((_vm.secondResult),function(z,i){return (v.check)?_c('div',{key:i,staticClass:"secondLi"},[_c('div',[_c('div',{staticClass:"secondList",staticStyle:{"font-size":"14px","color":"#666","text-indent":"15px","padding":"10px 0"},on:{"click":function($event){$event.stopPropagation();return _vm.toDetail(z)}}},[_vm._v(_vm._s(z.treeName))])])]):_vm._e()}),0)])}),0)]):_vm._e()]),_vm._v(" "),(!_vm.showTreeList)?_c('div',[_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"60px","height":"60px"},attrs:{"src":__webpack_require__(278)},on:{"click":function($event){return _vm.openTreeList()}}})]),_vm._v(" "),_c('div',{staticClass:"cycSearch"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.searchDate),expression:"searchDate",modifiers:{"trim":true}}],class:{'animation1' :_vm.showSearchBtn},attrs:{"id":"keyword","type":"text","placeholder":"请输入想要搜索的资料"},domProps:{"value":(_vm.searchDate)},on:{"~click":function($event){_vm.showSearchBtn = true},"input":function($event){if($event.target.composing){ return; }_vm.searchDate=$event.target.value.trim()},"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),_c('button',{class:{'animation' :_vm.showSearchBtn},on:{"click":_vm.search}},[_vm._v("搜索")])])]),_vm._v(" "),(!_vm.$route.query.folderid)?_c('div',{staticClass:"munu_list clearfix active1"},[_c('span',{staticStyle:{"width":"70%","overflow":"hidden","text-overflow":"ellipsis","white-space":"nowrap"},domProps:{"textContent":_vm._s(_vm.texts)}}),_vm._v(" "),_c('span',[_vm._v("共"+_vm._s(_vm.pagelist)+"项")])]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch","padding-bottom":"20px"},style:({height: _vm.thisHeight}),attrs:{"id":"scrollBox"}},_vm._l((_vm.resultList),function(v,index){return _c('ul',{key:index,staticClass:"ul_list"},[(v.type!=999 && v.atlas ==0)?_c('li',{staticClass:"inforfile ints",on:{"click":function($event){return _vm.clickFile(v)}}},[_c('div',[_c('div',{staticClass:"details"},[_vm._v(_vm._s(v.fileName))])]),_vm._v(" "),_c('div',{staticClass:"fileStatus"},[(v.emile)?_c('img',{attrs:{"src":__webpack_require__(310),"alt":"付费查看","width":"20"},on:{"click":function($event){$event.stopPropagation();return _vm.sendEmile(v)}}}):_vm._e(),_vm._v(" "),(v.lock)?_c('img',{attrs:{"src":__webpack_require__(146),"alt":"付费查看","width":"20"}}):_vm._e()])]):(v.type!= 999 && v.atlas ==1)?_c('li',{staticClass:"inforfile1 ints",on:{"click":function($event){return _vm.clickFile(v)}}},[_c('div',[_c('div',{staticClass:"details"},[_vm._v(_vm._s(v.fileName))])]),_vm._v(" "),_c('div',{staticClass:"fileStatus"},[(v.emile)?_c('img',{attrs:{"src":__webpack_require__(310),"alt":"付费查看","width":"20"},on:{"click":function($event){$event.stopPropagation();return _vm.sendEmile(v)}}}):_vm._e(),_vm._v(" "),(v.lock)?_c('img',{attrs:{"src":__webpack_require__(146),"alt":"付费查看","width":"20"}}):_vm._e()])]):_c('li',{staticClass:"inforimg",class:{'inforpdf':v.fileType.toUpperCase()=='PDF','inforvideo':new RegExp(v.fileType).test('MP4AVIBMPDBMPGWMVOGG')},on:{"click":function($event){return _vm.checkStatus(v)}}},[_c('div',{staticClass:"fileInfo"},[_c('div',{staticClass:"details"},[_vm._v("\n              "+_vm._s(v.fileName)+"\n            ")]),_vm._v(" "),(_vm.calculateFileSize(v.fileSize) != '0KB')?_c('div',{staticClass:"filesize"},[_vm._v("\n              文件大小："),_c('span',[_vm._v(_vm._s(_vm.calculateFileSize(v.fileSize)))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"fileStatus"},[(v.emile)?_c('img',{attrs:{"src":__webpack_require__(310),"alt":"付费查看","width":"20"},on:{"click":function($event){$event.stopPropagation();return _vm.sendEmile(v)}}}):_vm._e(),_vm._v(" "),(v.lock)?_c('img',{attrs:{"src":__webpack_require__(146),"alt":"付费查看","width":"20"}}):_vm._e()])])])}),0)]):_vm._e()],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/emile.00bf9ed.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(600);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_09946f37_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1199);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3222)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-09946f37"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_09946f37_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_09946f37_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3223);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("163c9882", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bgf[data-v-09946f37]{background-color:#e6e6e6}.cycSearch[data-v-09946f37]{padding:10px}.cycSearch>div[data-v-09946f37]{border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList[data-v-09946f37]{border:none}.cycSearch input[data-v-09946f37]{height:33px;text-indent:10px;text-align:center;-webkit-transition:all .6s;transition:all .6s;background:#fff;width:75%;border-radius:3px}.cycSearch .searchBtn[data-v-09946f37]{position:absolute;width:20%;height:33px;right:0;top:0;font-size:14px;background:#b71c24;color:#fff;border-radius:3px}.munu_list[data-v-09946f37],.results[data-v-09946f37]{line-height:40px;box-sizing:border-box;padding:0 10px;border-bottom:1px solid #eee;color:#999;height:40px;background-color:#fff;margin-top:-10px;display:none}.fileInfo[data-v-09946f37]{max-width:250px;float:left}.munu_list.active[data-v-09946f37]{display:block}.results.active[data-v-09946f37]{display:block;text-align:center;margin-top:0}.munu_list>span[data-v-09946f37]{float:left}.munu_list>span[data-v-09946f37]:nth-child(2){float:right}.bgf .ul_list[data-v-09946f37]{background-color:#fff}.bgf .ul_list[data-v-09946f37]:after{display:block;clear:both;content:\"\"}.bgf .ul_list>li[data-v-09946f37]{box-sizing:border-box;padding:0 15px 0 10px;line-height:50px;border-top:1px solid #e6e6e6;font-size:16px;height:50px}.bgf .ul_list>.inforfile[data-v-09946f37]{text-indent:30px;background:url(" + escape(__webpack_require__(273)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list .inforgo[data-v-09946f37]{float:right;margin-top:14px}.bgf .ul_list>li.inforimg[data-v-09946f37]{height:60px;line-height:20px;text-indent:30px;background:url(" + escape(__webpack_require__(148)) + ") no-repeat 10px;background-size:21px 23px}.inforimg[data-v-09946f37]:after{clear:both;display:block;content:\"\"}.bgf .ul_list>li.inforimg .filesize[data-v-09946f37]{font-size:12px}.bgf .ul_list>li.inforimg .details[data-v-09946f37]{margin-top:11px;max-width:290px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bgf span[data-v-09946f37]{display:inline}.bgf .ul_list>li.inforimg.inforvideo[data-v-09946f37]{background:url(" + escape(__webpack_require__(274)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>li.inforimg.inforpdf[data-v-09946f37]{background:url(" + escape(__webpack_require__(275)) + ") no-repeat 10px;background-size:21px 23px}.fileStatus[data-v-09946f37]{float:right;margin-top:22px;text-indent:0}.fileStatus>span[data-v-09946f37]{color:#b2171c;float:right}.secondLi[data-v-09946f37]{width:100%;height:100%}.arrowDown[data-v-09946f37]{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg)}.arrlist[data-v-09946f37]{background:#fff;overflow:hidden}.detailTreeName[data-v-09946f37]{width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left;text-indent:10px}.detailImg[data-v-09946f37]{float:right;margin-top:9px;margin-right:15px}.secondList[data-v-09946f37]{border-bottom:1px solid #e2e2e2;width:90%;margin-left:10%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      sea: '',
      fileNo: '',
      resultList: [],
      clickFlag: true,
      num: 0,
      id: '',
      gratis: '',
      price: '',
      firstTreeId: '',
      isPromote: '',
      treeId: '',
      showTreeList: false,
      thisHeight: this.$route.params.hei,
      secondResult: {}
    };
  },
  mounted: function mounted() {
    if (!this._Util.isApp() && !this._Util.isMPaaS() && localStorage.getItem('inWxMinapp') !== '1') {
      this.getKaluliAuth();
    }
    if (this.$route.params.id) {
      localStorage.setItem('search', this.$route.params.id);
      localStorage.setItem('fileNo', this.$route.params.fileNo);
      this.fileNo = this.$route.params.fileNo;
      this.sea = this.$route.params.id;
      this.search();
      return;
    }
  },
  methods: {
    getKaluliAuth: function getKaluliAuth() {
      var that = this;
      if (!that._Util.getLocalStorage('kllOpenId')) {
        if (window.location.href.indexOf('kaluli') == -1) {
          that._Util.post(that._Api.POST_GET_GETKALULIAPPID, {}, function (data) {
            if (data) {
              var hr = window.location.href.substr(0, window.location.href.indexOf('code=') - 1) || window.location.href;
              window.location.replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + data.appId + '&redirect_uri=' + escape(hr) + '&action=viewtest&response_type=code&scope=snsapi_base&state=kaluli#wechat_redirect');
            }
          }, function () {}, that);
        } else {
          var reg = new RegExp('(^|&)code=([^&]*)(&|$)');
          var r = location.search.substr(1).match(reg);
          var code = r == null ? null : decodeURI(r[2]);
          that._Util.post(that._Api.POST_GET_GETKLLOPENIDBYCODE, {
            code: code
          }, function (data) {}, function () {}, that);
        }
      }
    },
    openresource: function openresource(fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        var backurl = that._Api.HOSTOLD + 'api/treeShare/filePDFView.json?fileNo=' + fileNo + '&treeId=' + that.id;
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          if (res.data.data.shareUrl) {
            if (that.clickFlag) {
              that.clickFlag = false;
              if (that._Util.getLocalStorage('isApp')) {
                var pdfReader = api.require('pdfReader');
                pdfReader.open({
                  path: res.data.data.shareUrl,
                  hidden: {
                    print: false,
                    export: false,
                    bookmark: false,
                    email: false
                  }
                });
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
              } else {
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
                window.location.href = backurl;
              }
            }
          }
        }).catch(function (error) {
          console.log(error);
        });
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          var share = '';
          if (res.data.data.shareUrl) {
            share = res.data.data.shareUrl;
            that.$router.push({
              name: 'video',
              query: {
                share: share
              }
            });
          }
        }).catch(function (error) {
          console.log(error);
        });
        //          this.$router.push({name: 'video', query: {fileNo: fileNo, fileType: filetype, treeId: this.id}})
      } else {
        this.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          res.data.data.shareUrl ? location.href = res.data.data.shareUrl : null;
        }).catch(function (error) {
          console.log(error);
        });
      }
    },
    search: function search(a) {
      var that = this;
      this.$http.post(that._Api.HOSTOLD + 'api/treeShare/getTreeShareList.json', {
        'keyword': this.sea,
        'search': '1',
        'fileNo': this.fileNo
      }).then(function (res) {
        if (res.data.data.treeShareList) {
          that.num = res.data.data.treeShareList.length;
        }
        that.resultList = res.data.data.treeShareList;
        that.id = res.data.data.treeShare.id;
        that.gratis = res.data.data.gratis;
        that.treeId = res.data.data.firstTreeId;
        that.price = res.data.data.price;
        that.firstTreeId = res.data.data.firstTreeId;
        that.isPromote = res.data.data.isPromote;
      }).catch(function (error) {
        console.log(error);
      });
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.fileStatus) {
        case 2:
          if (that.gratis == 0) {
            (0, _mintUi.MessageBox)({
              title: '您当前无法查看',
              message: "<span class=\"bold\">\u8BF7\u4EFB\u9009\u4EE5\u4E0B\u65B9\u5F0F\u83B7\u53D6\u6743\u9650</span>",
              confirmButtonText: '立即购买',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that.getCourse();
              }
            });
          } else {
            (0, _mintUi.MessageBox)({
              title: '您当前无法查看',
              message: "<span class=\"bold\">\u8BF7\u4EFB\u9009\u4EE5\u4E0B\u65B9\u5F0F\u83B7\u53D6\u6743\u9650</span>",
              showConfirmButton: true,
              confirmButtonText: '立即购买',
              showCancelButton: true,
              cancelButtonText: '免费获取'
            }).then(function (action) {
              switch (action) {
                case 'cancel':
                  (0, _mintUi.MessageBox)({
                    title: '免费获取课程',
                    message: "\u8BF7\u6253\u5F00\u5361\u4FEE\u5B9D\u5178\u5FAE\u4FE1\u53F7<br>\n                    \u53D1\u9001\u6570\u5B57\uFF1A<span style=\"color:#AB2632\">".concat(that.treeId, "</span>"),
                    showConfirmButton: false,
                    showCancelButton: true,
                    cancelButtonText: '关闭'
                  });
                  break;
                case 'confirm':
                  that.getCourse();
                  break;
              }
            });
          }
          break;
        default:
          that.openresource(file.fileNo, file.fileType);
          break;
      }
    },
    getCourse: function getCourse() {
      var that = this;
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getPurchaseCourse.json?treeId=' + that.treeId).then(function (res) {
        var data = res.data.data;
        (0, _mintUi.MessageBox)({
          title: '免费获取课程',
          message: "<div class=\"context\">\u672C\u5957\u8BFE\u7A0B\u603B\u4EF7".concat(that.price, "\u5143\u5305\u542B\u5982\u4E0B\u5185\u5BB9\uFF1A<br>\n                         1\uFF0C").concat(data.video, "\u4E2A\u89C6\u9891\u6587\u4EF6<br>\n                         2\uFF0C").concat(data.pdf, "\u4E2APDF\u6587\u4EF6<br>\n                         3\uFF0C").concat(data.picture, "\u4E2A\u56FE\u7247\u6587\u4EF6<br></div>\n                         <span class=\"bold\">\u60A8\u9700\u652F\u4ED8").concat(that.price, "\u5143</span>"),
          showConfirmButton: true,
          confirmButtonText: '立即支付',
          showCancelButton: true,
          cancelButtonText: '关闭'
        }).then(function (action) {
          if (action === 'confirm') {
            that.pay();
          }
        });
      });
    },
    pay: function pay() {
      var that = this;
      if (that.price <= 0) {
        _mintUi.MessageBox.alert('课程设置有误，请联系小轨！');
        return;
      }
      that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
        price: that.price,
        itemCode: 'KC0001'
      }, function (data) {
        that._Util.wxPay(data.jsApiParameters, function () {
          that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
            // fileNo: file.fileNo,
            treeId: that.firstTreeId,
            isPromote: that.isPromote
          }, function (data) {
            that.post();
          }, function () {}, that);
        });
      }, function () {}, that);
    },
    openTreeList: function openTreeList() {
      var that = this;
      if (!that.firstTreeId) {
        return;
      }
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
        params: {
          'treeId': that.firstTreeId
        }
      }).then(function (res) {
        if (res.data.data) {
          that.showTreeList = true;
          that.ListArray = res.data.data;
          var _iterator = _createForOfIteratorHelper(that.ListArray),
            _step;
          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var v = _step.value;
              v.check = false;
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    openSecond: function openSecond(file, index) {
      var that = this;
      var _iterator2 = _createForOfIteratorHelper(that.ListArray),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var v = _step2.value;
          if (v.treeName != file.treeName) {
            v.check = false;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      file.check = !file.check;
      if (file.check) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
          params: {
            'treeId': file.id
          }
        }).then(function (res) {
          if (res.data.data) {
            that.secondResult = res.data.data;
          }
        }).catch(function (err) {
          console.log(err);
        });
      } else {
        that.secondResult = {};
      }
    },
    toDetail: function toDetail(file) {
      this.$router.replace({
        name: 'inforindex',
        query: {
          fileNo: file.treeNo
        }
      });
    },
    closeTreeList: function closeTreeList() {
      this.showTreeList = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bgf",staticStyle:{"overflow":"hidden"}},[_c('transition',{attrs:{"name":"fade"}},[(_vm.showTreeList)?_c('div',{staticStyle:{"height":"100%","overflow":"scroll","-webkit-overflow-scrolling":"touch"}},[_c('div',{staticStyle:{"font-size":"20px","color":"#333","background":"white","border-bottom":"1px solid #E2E2E2","padding":"10px 0","text-indent":"10px"}},[_vm._v("目录：")]),_vm._v(" "),_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"60px","height":"60px"},attrs:{"src":__webpack_require__(276)},on:{"click":function($event){return _vm.closeTreeList()}}})]),_vm._v(" "),_c('ul',_vm._l((_vm.ListArray),function(v,inde){return _c('li',{key:inde,staticClass:"arrlist",on:{"click":function($event){return _vm.openSecond(v,inde)}}},[_c('div',{staticStyle:{"overflow":"hidden","border-bottom":"1px solid #E2E2E2","padding":"10px 0","width":"95%","margin-left":"5%"}},[_c('div',{staticClass:"detailTreeName",staticStyle:{"font-size":"16px","color":"#333"}},[_vm._v(_vm._s(v.treeName))]),_vm._v(" "),_c('img',{staticClass:"detailImg",class:{'arrowDown' : v.check},attrs:{"src":__webpack_require__(277),"width":"12","height":"7"}})]),_vm._v(" "),_c('div',{staticClass:"secondLiBox"},_vm._l((_vm.secondResult),function(z,i){return (v.check)?_c('div',{key:i,staticClass:"secondLi"},[_c('div',[_c('div',{staticClass:"secondList",staticStyle:{"font-size":"14px","color":"#666","text-indent":"15px","padding":"10px 0"},on:{"click":function($event){$event.stopPropagation();return _vm.toDetail(z)}}},[_vm._v(_vm._s(z.treeName))])])]):_vm._e()}),0)])}),0)]):_vm._e()]),_vm._v(" "),(!_vm.showTreeList)?_c('div',[_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"60px","height":"60px"},attrs:{"src":__webpack_require__(278)},on:{"click":function($event){return _vm.openTreeList()}}})]),_vm._v(" "),_c('div',{staticClass:"cycSearch"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.sea),expression:"sea"}],attrs:{"id":"keyword","type":"text","placeholder":"请输入想要搜索的资料"},domProps:{"value":(_vm.sea)},on:{"input":function($event){if($event.target.composing){ return; }_vm.sea=$event.target.value}}}),_vm._v(" "),_c('button',{staticClass:"searchBtn",on:{"click":_vm.search}},[_vm._v("搜索")])])]),_vm._v(" "),_c('div',{staticClass:"results active"},[_vm._v("\n      得到"),_c('span',{domProps:{"textContent":_vm._s(_vm.num)}}),_vm._v("搜索结果\n    ")]),_vm._v(" "),_c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch"},style:({height: _vm.thisHeight})},_vm._l((_vm.resultList),function(v){return _c('ul',{key:v.fileName,staticClass:"ul_list"},[(v.type!=5)?_c('li',{staticClass:"inforfile ints",on:{"click":function($event){return _vm.clickFile(v.fileNo)}}},[_c('div',{staticStyle:{"float":"left"}},[_c('div',{staticClass:"details"},[_vm._v(_vm._s(v.fileName))]),_vm._v(" "),_c('img',{staticClass:"inforgo",attrs:{"src":__webpack_require__(299),"width":"20","height":"20"}})])]):_c('li',{staticClass:"inforimg",class:{'inforpdf':v.fileType.toUpperCase()=='PDF','inforvideo':new RegExp(v.fileType).test('MP4AVIBMPDBMPGWMVOGG')},on:{"click":function($event){return _vm.checkStatus(v)}}},[_c('div',{staticClass:"fileInfo"},[_c('div',{staticClass:"details"},[_vm._v("\n              "+_vm._s(v.fileName)+"\n            ")]),_vm._v(" "),(_vm.calculateFileSize(v.fileSize) != '0KB')?_c('div',{staticClass:"filesize"},[_vm._v("\n              文件大小："),_c('span',[_vm._v(_vm._s(_vm.calculateFileSize(v.fileSize)))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"fileStatus"},[(v.fileStatus===1)?_c('span',[_vm._v("可试看")]):_vm._e(),_vm._v(" "),(v.fileStatus===2)?_c('img',{attrs:{"src":__webpack_require__(146),"alt":"付费查看","width":"20"}}):_vm._e()])])])}),0)]):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b56cc550_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1200);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3224)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b56cc550"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_result_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b56cc550_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b56cc550_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_result_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3225);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0ce9f480", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".bgf[data-v-b56cc550]{background-color:#e6e6e6}.cycSearch[data-v-b56cc550]{padding:10px}.cycSearch>div[data-v-b56cc550]{border:1px solid #e6e6e6;position:relative}.cycSearch>div.searchTabList[data-v-b56cc550]{border:none}.cycSearch input[data-v-b56cc550]{height:33px;text-indent:10px;text-align:center;-webkit-transition:all .6s;transition:all .6s;background:#fff;width:75%;border-radius:3px}.cycSearch button[data-v-b56cc550]{position:absolute;width:20%;height:33px;right:0;top:0;font-size:14px;background:#b71c24;color:#fff;border-radius:3px}.munu_list[data-v-b56cc550],.results[data-v-b56cc550]{line-height:40px;box-sizing:border-box;padding:0 10px;border-bottom:1px solid #eee;color:#999;height:40px;background-color:#fff;margin-top:-10px;display:none}.munu_list.active[data-v-b56cc550]{display:block}.results.active[data-v-b56cc550]{display:block;text-align:center;margin-top:0}.munu_list>span[data-v-b56cc550]{float:left}.munu_list>span[data-v-b56cc550]:nth-child(2){float:right}.bgf .ul_list[data-v-b56cc550]{background-color:#fff}.bgf .ul_list[data-v-b56cc550]:after{display:block;clear:both;content:\"\"}.bgf .ul_list[data-v-b56cc550]:first-of-type{margin-top:10px}.bgf .ul_list>li[data-v-b56cc550]{box-sizing:border-box;padding:0 15px 0 10px;line-height:50px;border-top:1px solid #e6e6e6;font-size:16px;height:50px}.bgf .ul_list>.inforfile[data-v-b56cc550]{text-indent:30px;background:url(" + escape(__webpack_require__(273)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>.inforfile>div[data-v-b56cc550]{float:left}.bgf .ul_list .inforgo[data-v-b56cc550]{margin-top:14px}.bgf .ul_list>li.inforimg[data-v-b56cc550]{height:60px;line-height:20px;text-indent:30px;background:url(" + escape(__webpack_require__(148)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>li.inforimg .filesize[data-v-b56cc550]{font-size:12px}.bgf .ul_list>li.inforimg .details[data-v-b56cc550]{margin-top:11px;max-width:290px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bgf span[data-v-b56cc550]{display:inline}.bgf .ul_list>li.inforimg.inforvideo[data-v-b56cc550]{background:url(" + escape(__webpack_require__(274)) + ") no-repeat 10px;background-size:21px 23px}.bgf .ul_list>li.inforimg.inforpdf[data-v-b56cc550]{background:url(" + escape(__webpack_require__(275)) + ") no-repeat 10px;background-size:21px 23px}.fileInfo[data-v-b56cc550]{max-width:250px;float:left}.fileStatus[data-v-b56cc550]{float:right;margin-top:22px;text-indent:0}.fileStatus>span[data-v-b56cc550]{color:#b2171c;float:right}.context[data-v-b56cc550]{text-align:left}.bold[data-v-b56cc550]{font-weight:700;color:#111}.confirmBtn[data-v-b56cc550]{background:#ba1a2b;color:#fff}.bgf .ul_list .inforgo[data-v-b56cc550]{float:right;margin-top:22px;transform:rotate(90deg);-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);-o-transform:rotate(90deg);-moz-transform:rotate(90deg)}.arrlist[data-v-b56cc550]{background:#fff;overflow:hidden}.detailTreeName[data-v-b56cc550]{width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left;text-indent:10px}.detailImg[data-v-b56cc550]{float:right;margin-top:9px;margin-right:15px}.secondList[data-v-b56cc550]{border-bottom:1px solid #e2e2e2;width:90%;margin-left:10%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      sea: '',
      fileNo: '',
      resultList: [],
      clickFlag: true,
      num: 0,
      id: '',
      pagelist: '',
      firstTreeId: '',
      isPromote: '',
      treeId: '',
      showTreeList: false,
      thiHeight: this.$route.params.hei,
      secondResult: {},
      userResult: {}
    };
  },
  mounted: function mounted() {
    if (!this._Util.isApp() && !this._Util.isMPaaS() && localStorage.getItem('inWxMinapp') !== '1') {
      this.getKaluliAuth();
    }
    if (this.$route.params.id) {
      localStorage.setItem('search', this.$route.params.id);
      localStorage.setItem('fileNo', this.$route.params.fileNo);
      this.fileNo = this.$route.params.fileNo;
      this.sea = this.$route.params.id;
      this.getUserInfo();
      this.search();
      return;
    }
  },
  methods: {
    getKaluliAuth: function getKaluliAuth() {
      var that = this;
      if (!that._Util.getLocalStorage('kllOpenId')) {
        if (window.location.href.indexOf('kaluli') == -1) {
          that._Util.post(that._Api.POST_GET_GETKALULIAPPID, {}, function (data) {
            if (data) {
              var hr = window.location.href.substr(0, window.location.href.indexOf('code=') - 1) || window.location.href;
              window.location.replace('https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + data.appId + '&redirect_uri=' + escape(hr) + '&action=viewtest&response_type=code&scope=snsapi_base&state=kaluli#wechat_redirect');
            }
          }, function () {}, that);
        } else {
          var reg = new RegExp('(^|&)code=([^&]*)(&|$)');
          var r = location.search.substr(1).match(reg);
          var code = r == null ? null : decodeURI(r[2]);
          that._Util.post(that._Api.POST_GET_GETKLLOPENIDBYCODE, {
            code: code
          }, function (data) {}, function () {}, that);
        }
      }
    },
    closeTreeList: function closeTreeList() {
      this.showTreeList = false;
    },
    clickFile: function clickFile(filename) {
      this.fileNo = filename;
      this.$router.push({
        name: 'inforindex',
        query: {
          fileNo: filename
        }
      });
    },
    openSecond: function openSecond(file, index) {
      var that = this;
      var _iterator = _createForOfIteratorHelper(that.ListArray),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var v = _step.value;
          if (v.treeName != file.treeName) {
            v.check = false;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      file.check = !file.check;
      if (file.check) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
          params: {
            'treeId': file.id
          }
        }).then(function (res) {
          if (res.data.data) {
            that.secondResult = res.data.data;
          }
        }).catch(function (err) {
          console.log(err);
        });
      } else {
        that.secondResult = {};
      }
    },
    sendEmile: function sendEmile(file) {
      var that = this;
      if (that.userResult.uemail) {
        (0, _mintUi.MessageBox)({
          title: '文档发邮件',
          message: "\u60A8\u7684\u90AE\u7BB1\uFF1A".concat(that.userResult.uemail),
          showConfirmButton: true,
          confirmButtonText: '确认发送',
          confirmButtonClass: 'confirmBtn',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.spread(file.fileNo);
          }
        });
      } else {
        (0, _mintUi.MessageBox)({
          title: '文档发邮件',
          message: "\u60A8\u7684\u90AE\u7BB1\uFF1A\u6682\u65E0",
          showConfirmButton: true,
          confirmButtonText: '填写邮箱',
          confirmButtonClass: 'confirmBtn',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.push({
              name: 'memberPersonalInfo'
            });
          }
        });
      }
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userResult = data;
        }
      }, function () {}, that);
    },
    openTreeList: function openTreeList() {
      var that = this;
      if (!that.firstTreeId) {
        return;
      }
      that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getTreeList.json', {
        params: {
          'treeId': that.firstTreeId
        }
      }).then(function (res) {
        if (res.data.data) {
          that.showTreeList = true;
          that.ListArray = res.data.data;
          var _iterator2 = _createForOfIteratorHelper(that.ListArray),
            _step2;
          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var v = _step2.value;
              v.check = false;
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    toDetail: function toDetail(file) {
      this.$router.replace({
        name: 'inforindex1',
        query: {
          fileNo: file.treeNo
        }
      });
    },
    openresource: function openresource(fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        var backurl = that._Api.HOSTOLD + 'api/treeShare/filePDFView.json?fileNo=' + fileNo + '&treeId=' + that.id;
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          if (res.data.data.shareUrl) {
            if (that.clickFlag) {
              that.clickFlag = false;
              if (that._Util.getLocalStorage('isApp')) {
                var pdfReader = api.require('pdfReader');
                pdfReader.open({
                  path: res.data.data.shareUrl,
                  hidden: {
                    print: false,
                    export: false,
                    bookmark: false,
                    email: false
                  }
                });
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
              } else {
                setTimeout(function () {
                  that.clickFlag = true;
                }, 1000);
                window.location.href = backurl;
              }
            }
          }
        }).catch(function (error) {
          console.log(error);
        });
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          var share = '';
          if (res.data.data.shareUrl) {
            share = res.data.data.shareUrl;
            that.$router.push({
              name: 'video',
              query: {
                share: share
              }
            });
          }
        }).catch(function (error) {
          console.log(error);
        });
      } else {
        this.$http.get(that._Api.HOSTOLD + 'api/treeShare/getShareDetails.json?fileNo=' + fileNo + '&treeId=' + that.id).then(function (res) {
          res.data.data.shareUrl ? location.href = res.data.data.shareUrl : null;
        }).catch(function (error) {
          console.log(error);
        });
      }
    },
    search: function search() {
      var that = this;
      this.$http.post(that._Api.HOSTOLD + 'api/treeShare/getTreeShareList.json', {
        'keyword': that.sea,
        'search': '1',
        'fileNo': that.fileNo
      }).then(function (res) {
        if (res.data.data.treeShareList) {
          that.pagelist = res.data.data.treeShareList.length;
        }
        that.resultList = res.data.data.treeShareList;
        var _iterator3 = _createForOfIteratorHelper(that.resultList),
          _step3;
        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var o = _step3.value;
            switch (o.viewMode) {
              case 1:
                if (that.userResult.userStatus == 0) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
              case 2:
                if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
              case 3:
                if (o.paymentStatus == 0) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
              case 4:
                if (o.paymentStatus == 0) {
                  o.lock = true;
                } else {
                  o.lock = false;
                }
                break;
            }
            if (!o.lock) {
              switch (o.mailCapture) {
                case 0:
                  o.emile = false;
                  break;
                case 1:
                  if (that.userResult.userStatus == 0) {
                    o.emile = false;
                  } else {
                    o.emile = true;
                  }
                  break;
                case 2:
                  if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
                    o.emile = false;
                  } else {
                    o.emile = true;
                  }
                  break;
                case 3:
                  o.emile = true;
              }
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
        that.treeId = res.data.data.firstTreeId;
        that.id = res.data.data.treeShare.id;
        that.firstTreeId = res.data.data.firstTreeId;
        that.isPromote = res.data.data.isPromote;
      }).catch(function (error) {
        console.log(error);
      });
    },
    calculateFileSize: function calculateFileSize(fileLength) {
      var len = '0KB';
      if (fileLength) {
        len = fileLength / 1024;
        if (len < 1024) {
          len = parseInt(len) + 'KB';
        } else {
          len = parseInt(len / 1024) + 'MB';
        }
      }
      return len;
    },
    checkStatus: function checkStatus(file) {
      var that = this;
      if (file.lock) {
        switch (file.viewMode) {
          case 1:
            if (that.userResult.userStatus == 0) {
              (0, _mintUi.MessageBox)({
                title: '该文档需认证后可见',
                message: '请点击下方按钮认证',
                showConfirmButton: true,
                confirmButtonText: '认证',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              });
            } else {
              that.openresource(file.fileNo, file.fileType);
            }
            break;
          case 2:
            if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
              (0, _mintUi.MessageBox)({
                title: '该文档为付费会员可见',
                message: '请进入会员中心开通会员',
                showConfirmButton: true,
                confirmButtonText: '会员中心',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              });
            } else {
              that.openresource(file.fileNo, file.fileType);
            }
            break;
          case 3:
            if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
              (0, _mintUi.MessageBox)({
                title: '该文档需购买后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
                showConfirmButton: true,
                confirmButtonText: '购买',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                    price: file.viewCostAuthen,
                    itemCode: 'ZL0001'
                  }, function (data) {
                    that._Util.wxPay(data.jsApiParameters, function () {
                      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                        fileNo: file.fileNo,
                        treeId: that.firstTreeId,
                        isPromote: that.isPromote
                      }, function (data) {
                        that.post();
                      }, function () {}, that);
                    });
                  }, function () {}, that);
                }
              });
            } else {
              (0, _mintUi.MessageBox)({
                title: '该文档需购买后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostPay, "</div>"),
                showConfirmButton: true,
                confirmButtonText: '购买',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                    price: file.viewCostPay,
                    itemCode: 'ZL0001'
                  }, function (data) {
                    that._Util.wxPay(data.jsApiParameters, function () {
                      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                        fileNo: file.fileNo,
                        treeId: that.firstTreeId,
                        isPromote: that.isPromote
                      }, function (data) {
                        that.post();
                      }, function () {}, that);
                    });
                  }, function () {}, that);
                }
              });
            }
            break;
          case 4:
            if (that.userResult.userStatus == 0 || that.userResult.userStatus == 1) {
              (0, _mintUi.MessageBox)({
                title: '该文档需积分兑换后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
                showConfirmButton: true,
                confirmButtonText: '积分兑换',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.postPoint(file, file.fileNo, file.viewCostAuthen);
                }
              });
            } else {
              (0, _mintUi.MessageBox)({
                title: '该文档需积分兑换后查看',
                message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostPay, "\u79EF\u5206</div>"),
                showConfirmButton: true,
                confirmButtonText: '积分兑换',
                confirmButtonClass: 'confirmBtn',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  that.postPoint(file.fileNo, file.viewCostPay);
                }
              });
            }
            break;
        }
      } else {
        that.openresource(file.fileNo, file.fileType);
      }
    },
    spread: function spread(id) {
      var that = this;
      //        Indicator.open({text: `发送中．．．`, spinnerType: 'triple-bounce'})
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/sendEmail.json', {
        fileNo: id
      }, function (data) {
        //          if(data){
        //            Indicator.close();
        //          }
      }, function () {}, that);
    },
    pay: function pay(id) {
      window.location.href = this._Api.HOSTRESOURCEPATH + '/v2/shopping/detail?id=' + id;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bgf",staticStyle:{"overflow":"hidden"}},[_c('transition',{attrs:{"name":"fade"}},[(_vm.showTreeList)?_c('div',{staticStyle:{"height":"100%","overflow":"scroll","-webkit-overflow-scrolling":"touch"}},[_c('div',{staticStyle:{"font-size":"20px","color":"#333","background":"white","border-bottom":"1px solid #E2E2E2","padding":"10px 0","text-indent":"10px"}},[_vm._v("目录：")]),_vm._v(" "),_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"60px","height":"60px"},attrs:{"src":__webpack_require__(276)},on:{"click":function($event){return _vm.closeTreeList()}}})]),_vm._v(" "),_c('ul',_vm._l((_vm.ListArray),function(v,inde){return _c('li',{key:inde,staticClass:"arrlist",on:{"click":function($event){return _vm.openSecond(v,inde)}}},[_c('div',{staticStyle:{"overflow":"hidden","border-bottom":"1px solid #E2E2E2","padding":"10px 0","width":"95%","margin-left":"5%"}},[_c('div',{staticClass:"detailTreeName",staticStyle:{"font-size":"16px","color":"#333"}},[_vm._v(_vm._s(v.treeName))]),_vm._v(" "),_c('img',{staticClass:"detailImg",class:{'arrowDown' : v.check},attrs:{"src":__webpack_require__(277),"width":"12","height":"7"}})]),_vm._v(" "),_c('div',{staticClass:"secondLiBox"},_vm._l((_vm.secondResult),function(z,i){return (v.check)?_c('div',{key:i,staticClass:"secondLi"},[_c('div',[_c('div',{staticClass:"secondList",staticStyle:{"font-size":"14px","color":"#666","text-indent":"15px","padding":"10px 0"},on:{"click":function($event){$event.stopPropagation();return _vm.toDetail(z)}}},[_vm._v(_vm._s(z.treeName))])])]):_vm._e()}),0)])}),0)]):_vm._e()]),_vm._v(" "),(!_vm.showTreeList)?_c('div',[_c('div',{staticStyle:{"position":"fixed","z-index":"999","bottom":"43px","right":"27px"}},[_c('img',{staticStyle:{"width":"55px","height":"55px"},attrs:{"src":__webpack_require__(278)},on:{"click":function($event){return _vm.openTreeList()}}})]),_vm._v(" "),_c('div',{staticClass:"cycSearch"},[_c('div',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.sea),expression:"sea"}],attrs:{"id":"keyword","type":"text","placeholder":"请输入想要搜索的资料"},domProps:{"value":(_vm.sea)},on:{"input":function($event){if($event.target.composing){ return; }_vm.sea=$event.target.value}}}),_vm._v(" "),_c('button',{on:{"click":_vm.search}},[_vm._v("搜索")])])]),_vm._v(" "),_c('div',{staticClass:"munu_list clearfix active1",staticStyle:{"display":"block","margin-top":"10px","text-align":"center"}},[_vm._v("\n\n      得到"+_vm._s(_vm.pagelist || 0)+"搜索结果\n    ")]),_vm._v(" "),_c('div',{staticStyle:{"overflow":"scroll","-webkit-overflow-scrolling":"touch"},style:({height: _vm.thiHeight})},_vm._l((_vm.resultList),function(v){return _c('ul',{key:v.fileName,staticClass:"ul_list"},[(v.type!=5)?_c('li',{staticClass:"inforfile ints",on:{"click":function($event){return _vm.clickFile(v.fileNo)}}},[_c('div',[_c('div',{staticClass:"details"},[_vm._v(_vm._s(v.fileName))]),_vm._v(" "),_c('img',{staticClass:"inforgo",attrs:{"src":__webpack_require__(299),"width":"10","height":"12"}})])]):_c('li',{staticClass:"inforimg",class:{'inforpdf':v.fileType.toUpperCase()=='PDF','inforvideo':new RegExp(v.fileType).test('MP4AVIBMPDBMPGWMVOGG')},on:{"click":function($event){return _vm.checkStatus(v)}}},[_c('div',{staticClass:"fileInfo"},[_c('div',{staticClass:"details"},[_vm._v("\n              "+_vm._s(v.fileName)+"\n            ")]),_vm._v(" "),(_vm.calculateFileSize(v.fileSize) != '0KB')?_c('div',{staticClass:"filesize"},[_vm._v("\n              文件大小："),_c('span',[_vm._v(_vm._s(_vm.calculateFileSize(v.fileSize)))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"fileStatus"},[(v.emile)?_c('img',{attrs:{"src":__webpack_require__(310),"alt":"付费查看","width":"20"},on:{"click":function($event){$event.stopPropagation();return _vm.sendEmile(v)}}}):_vm._e(),_vm._v(" "),(v.lock)?_c('img',{attrs:{"src":__webpack_require__(146),"alt":"付费查看","width":"20"}}):_vm._e()])])])}),0)]):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_video_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(602);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_video_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_video_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_video_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_video_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_aa0b48c4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_video_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1201);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3226)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_video_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_aa0b48c4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_video_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_aa0b48c4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_video_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3227);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b2552ee6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports
exports.i(__webpack_require__(3228), "");

// module
exports.push([module.i, ".my-player-dimensions,.video-js{width:100%;position:absolute;top:50%;margin-top:-150px;height:300px}", ""]);

// exports
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAA54AAoAAAAAFmgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAD4AAABWUZFeBWNtYXAAAAE0AAAAOgAAAUriMBC2Z2x5ZgAAAXAAAAouAAAPUFvx6AdoZWFkAAALoAAAACsAAAA2DIPpX2hoZWEAAAvMAAAAGAAAACQOogcgaG10eAAAC+QAAAAPAAAAfNkAAABsb2NhAAAL9AAAAEAAAABAMMg06m1heHAAAAw0AAAAHwAAACABMAB5bmFtZQAADFQAAAElAAACCtXH9aBwb3N0AAANfAAAAPwAAAGBZkSN43icY2BkZ2CcwMDKwMFSyPKMgYHhF4RmjmEIZzzHwMDEwMrMgBUEpLmmMDh8ZPwoxw7iLmSHCDOCCADvEAo+AAB4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGD7K/f8PUvCREUTzM0DVAwEjG8OIBwCPdwbVAAB4nI1Xe1CU1xX/zv1eLItLln0JwrIfC7sJGET2hRJ2N1GUoBJE8AESQEEhmBHjaB7UuBMTO4GMaSu7aY3RNlOdRPNqO2pqRmuTaSZtR6JJILUZk00a/4imjpmiecB303O/XUgMJOPufvd+99xzzz33nN855y4HHH7EfrGfIxwHRiANvF/sH71I9BzHszmpW+rGOQOXxXE6YhI4PoMT8zkT4cDFuf1cwMrZJI5cglM0HKVv0MaUFDgIFfg9mJJCG+kbKn1JkqBOVaFOkuhLpARq8fu0Nnc9/zdvfY9PxXW4PdH0C6N+PCejhorxFjAqRjgFRXSINEARbBGsoxcFK7IJmr4OycFJnInL59zIXwxui80fkGRbEHyosMWaATJKUfCskmwJQsAWANkmnIGOhlf514h7U8HNIv3owoHB0WMt0Eb3sx0guLi5pq/8Ny1q6969fKR9X9GBV6dPv6dp04K99SOwtmyPl47ApRa6n4ZpP1yjr5fn7MmYP/vXLUJs715UguklHBaHOZHZmG1N9FAIW2mf0MqWCIdo/8RZ1yGfxKUldDcGIbFA7ICO+vqOMSPTh/ZrSqgHi/bB/O8E8Mnzp+M+acxfpsTShBwej26TiGxBn7m4eEIO+Rueu6Hj+IFBnh88cAEUEQ//nVLx5C7kf+yIR47QEe+eMlhz9SqsGbe3hh2R03NGzoY6O42Kz8l7fB6fAk6LYnTyFo/FYyT6GGyNx2Jx2sdH4rA1Fo/HyCXaFyOp8dhYBCfJb2NIn1ImE6CYNGmgSTb52DawJR6jfXEmDU4xyTEmpgHHOIStoxfjSGdkbsK2w2jbdMQG4sgAstEONgURYCwGHhEhhscioQaAhhCf7McifEQc0l6+mxj9nI+gmSdiQ0Zbm7gZnIO7GSMEXG6UDAVocxAV8GcEXCKg1a02RcTtwANWRGIAyElor6n/+ZU2yOB3+T77Hb1MLqhn4KHVnQBjJnqe9QZSon6Kc5DxAD2vMdPL/BXSmQGwspa67z9wLUjdi9TN7QC7lyyBr9rpt7uXVC1CMpyjKRoXnGPHTuiaPLsNdc2dbAFQLAooPkXEh33FodHl4XpC6sPCIa0ftUIhHSYXVSu5iME+DIXsbZJ51BeidCgajcai43jU9nVzoSn2dPqcFvSoxSzJzgRKAx47WMRxOrIj3Wf0+hndxhJTiOkSEqxar3b3RKM9hY64oxBA64ieURLvCfpkDb8siBdUJ1bgT+urJ5PGfewQrmm5R5+0HmfyIPySD7OYkT0WxRePah8oEiyjlxIP74thVoRTURpmL6QhGuWS+QDjdANXjIM8SQa/1w128ODx0Qp4aLMNg9+JL3joUn8AMxW+aLNiuKjarn4uyyTdXjOzZTsh21uwldUvJoYza+zELALfu3p1L8/3krtyZ0Ag058J3hxHghvbGZn0dHZy6Mim/7Blre4lpHd1c28yVqRViO153F2oIWoXCIKbL4Z0cM1iaQn9mI5KuV2SzEvWXJDMNtkANpMdQoDDhIdD4A/YrP6Aye9ysxyE+uOEAcTDorgvVZJjcua043PnZ/PmdDqcbibZlXOOT8uSo7Kof0YUn9GL+Jo17ficymxiTofC6znUso0DhAxs1Fo+kF+d36vLmgZ8mk5cdGv2mwYj5k3Dm9m3LhJ1aVRNm6HrTbLgYAoWXDhDd/u4PGy5CT+xGMdiaBovewUCF/1BiWNljI9MLn7jeScpg+WyH6mfU62eVDql7hsrmvx1ezp/YldE2LhjbkiDnAn8tGy/MW3IXRMYJduvq9HpmIcKuFt+JCtgdGEGKAcF6UacVwIYbVPGfw/+YuNBS4cx/CUHcnyfc+wRDMtTr72mMSBjT/yn/GKSdeDWQUCH6Xoqq5R10RE60gV6erUL0iCti16d0hZjxut4QI/rEpgSh6WjnJXdBXRg1GKCucGJPtFqM27aD1tOqqKonsQ2KsFSSmEpmvRlsR+TcD9OFwrqXxIclL4sJTnGMSuG8KpkZvKdeVIOKDyWSyPLV16/p1QMPbP8NihwUzr47bdnXtwtjdCvqqpO0H+pOvIl3Pzv46e5CT/tQjklXCXXym1AaWY7bzHLkuDMc7ldKCvgxzLn8wYkJLBhEDyK7MT8bTbwbkxbfp+3mKAGsmTBpabSIEECzMIcQlzOPAMKsxMs7uhsnxPLuofPDTc1hkuq6MX9j16YU7CqegcYHbmWYuvAP6tCS97tgWf7dlQvnl25YPavXLVZvrzQPeHCpZmzzEUVq/xzu5sChnSTPTW7oOYmh69z4zL/gk3b+O6hoa733uviP82vnFcbqWlc9tDmZa23LVzaV1yXURi+JX+28NeBuj3+O8IrQ080Vm1eWB4OKjPmrJu7c1udWynvKF6/vs479lSW9+5gZkn+dKfellNGDPllzeULustz+A0bPvhgw7lkvEUwn/N4Ty7U7nhGsEpFkOfy+kutbOh1JQxhVDJumoW11hnkPThznh6FFlhfT+ra1x9sF56kx5YuDzVY9PQYAYA7iblw4frQ4TPCk2MK/xGU3rlmze62trHz6lsko+v+So/do74PT8KVkpJfOErKcv8znrMGsHTNxoEkWy1mYgDB6XBbPaWsuiS6CryGaL6zCjaXBgvtkuyXBua1wOKnh+k7L9AvPnYWffxK18FcJbuosGf3/Jo7amY+CE1vppzY+UTrva0FXc1i55pKQ/YjVL187N5fCn1kW5uot/1hi+DiZ+5atnJR9E+prvydJ9ZZ5mwOpU5gM4KYysMBQ71UzPuMTl9QQOyUo5nwioeYCPjFklrbK6s6X+ypUZ6rum9+CZYzWRiBJfSP0xzzSmrg7f86g0DKVj/wwFzieD9rRfPGFbeKMl05pn5j9/rsQJJ2iEgRrpohlyBo3f4QK7Kl+EcAYZgAoNVmZWXK704YAa3FwBxgSGUOs5htvGRz4Sgj3yFkSJFBuv/sxu5yk998T8WDJzvv/2RX19HtTUW1S+wpKRKRjJ6zzz/1/OPdFdWGlAKbvzS4PHOtURikg9AGz0LbIB85S/cPOpoXvuue8/iV2H1vPTy3ddvOeZ37HGmO3OmSzVzR+NS53+84dHlFhXPLqtzSO+5ruHM2vXtBdxP87LOzKAD359j/INYIbyPabIi3Cq6Wa+SaGe78diIzu7qcblcAa6/fJRvNopXFJnO+U9KKM5bqH5LM0iQSVmpPCPDu7ZT4Aoubz3709EBTyrTDjyx8MQXgUH1nqm7TWng4TzE4i4AsKskBITXfSyC4Fkl5MxnJDiKSIDSJAsGvd1y+/eNDp2e+A+5d8HeiiunrTkT6TqWLIs+/QRoWr98s0qj8uuzLuS22Ytufg3rdTaHn1m46sfgGKHXt0MGnLaRHdnwN37tvHcWKo2V6lnPxL4UvUQcRdOzmZSQs8X5CH5OxXMXpkATuDz8Et0SH4uyCRR+TjmBDP1GvsVrWEGVzEj33YVQ9jAtIKpqsl/s/0xrocwAAeJxjYGRgYADig3cEzsTz23xl4GZnAIHLRucNkWl2BrA4BwMTiAIAF4IITwB4nGNgZGBgZwCChWASxGZkQAXyABOUANh4nGNnYGBgHyAMADa8ANoAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqHicY2BkYGCQZ8hlYGcAASYg5gJCBob/YD4DABbVAaoAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2P2XLCMAxFfYFspGUp3Te+IB9lHJF4cOzUS2n/voaEGR6qB+lKo+WITdhga/a/bRnDBFPMkCBFhhwF5ihxg1sssMQKa9xhg3s84BFPeMYLXvGGd3zgE9tZr/hveXKVkFYoSnoeHJXfRoWOqi54mo9ameNFdrK+dLSyaVf7oJQTlkhXpD3Z5XXhR/rUfQVuKXO91Jps4cLOS6/I5YL3XhodRRsVWZe4NnZOhWnSAWgxhMoEr6SmzZieF43Mk7ZOBdeCVGrp9Eu+54J2xhySplfB5XHwQLXUmT9KH6+kPnQ7ZYuIEzNyfs1DLU1VU4SWZ6LkXGHsD1ZKbMw=) format(\"woff\"),url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMlGRXgUAAAEoAAAAVmNtYXDiMBC2AAAB/AAAAUpnbHlmW/HoBwAAA4gAAA9QaGVhZAyD6V8AAADQAAAANmhoZWEOogcgAAAArAAAACRobXR42QAAAAAAAYAAAAB8bG9jYTDINOoAAANIAAAAQG1heHABMAB5AAABCAAAACBuYW1l1cf1oAAAEtgAAAIKcG9zdGZEjeMAABTkAAABgQABAAAHAAAAAKEHAAAAAAAHAAABAAAAAAAAAAAAAAAAAAAAHwABAAAAAQAAwdxheF8PPPUACwcAAAAAANMyzzEAAAAA0zLPMQAAAAAHAAcAAAAACAACAAAAAAAAAAEAAAAfAG0ABwAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQcAAZAABQAIBHEE5gAAAPoEcQTmAAADXABXAc4AAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA8QHxHgcAAAAAoQcAAAAAAAABAAAAAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAAAAAMAAAADAAAAHAABAAAAAABEAAMAAQAAABwABAAoAAAABgAEAAEAAgAA8R7//wAAAADxAf//AAAPAAABAAAAAAAAAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqAABAAAAAAWLBYsAAgAAAREBAlUDNgWL++oCCwAAAwAAAAAGawZrAAIADgAaAAAJAhMEAAMSAAUkABMCAAEmACc2ADcWABcGAALrAcD+QJX+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgIwAVABUAGbCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAAAAgAAAAAFQAWLAAMABwAAASERKQERIREBwAEr/tUCVQErAXUEFvvqBBYAAAAEAAAAAAYgBiAABgATACQAJwAAAS4BJxUXNjcGBxc+ATUmACcVFhIBBwEhESEBEQEGBxU+ATcXNwEHFwTQAWVVuAO7AidxJSgF/t/lpc77t18BYf6fASsBdQE+TF1OijuZX/1gnJwDgGSeK6W4GBhqW3FGnFT0AWM4mjT+9AHrX/6f/kD+iwH2/sI7HZoSRDGYXwSWnJwAAAEAAAAABKsF1gAFAAABESEBEQECCwEqAXb+igRg/kD+iwSq/osAAAACAAAAAAVmBdYABgAMAAABLgEnET4BAREhAREBBWUBZVRUZfwRASsBdf6LA4Bkniv9piueAUT+QP6LBKr+iwAAAwAAAAAGIAYPAAUADAAaAAATESEBEQEFLgEnET4BAxUWEhcGAgcVNgA3JgDgASsBdf6LAsUBZVVVZbqlzgMDzqXlASEFBf7fBGD+QP6LBKr+i+Bkniv9piueAvOaNP70tbX+9DSaOAFi9fUBYgAAAAQAAAAABYsFiwAFAAsAEQAXAAABIxEhNSMDMzUzNSEBIxUhESMDFTMVMxECC5YBduCWluD+igOA4AF2luDglgLr/oqWAgrglvyAlgF2AqCW4AF2AAQAAAAABYsFiwAFAAsAEQAXAAABMxUzESETIxUhESMBMzUzNSETNSMRITUBdeCW/org4AF2lgHAluD+ipaWAXYCVeABdgHAlgF2++rglgHA4P6KlgAAAAACAAAAAAXWBdYADwATAAABIQ4BBxEeARchPgE3ES4BAyERIQVA/IA/VQEBVT8DgD9VAQFVP/yAA4AF1QFVP/yAP1UBAVU/A4A/VfvsA4AAAAYAAAAABmsGawAHAAwAEwAbACAAKAAACQEmJw4BBwElLgEnAQUhATYSNyYFAQYCBxYXIQUeARcBMwEWFz4BNwECvgFkTlSH8GEBEgOONemh/u4C5f3QAXpcaAEB/BP+3VxoAQEOAjD95DXpoQESeP7dTlSH8GH+7gPwAmgSAQFYUP4nd6X2Pv4nS/1zZAEBk01NAfhk/v+TTUhLpfY+Adn+CBIBAVhQAdkAAAAFAAAAAAZrBdYADwATABcAGwAfAAABIQ4BBxEeARchPgE3ES4BASEVIQEhNSEFITUhNSE1IQXV+1ZAVAICVEAEqkBUAgJU+xYBKv7WAur9FgLqAcD+1gEq/RYC6gXVAVU//IA/VQEBVT8DgD9V/ayV/tWVlZWWlQADAAAAAAYgBdYADwAnAD8AAAEhDgEHER4BFyE+ATcRLgEBIzUjFTM1MxUUBgcjLgEnET4BNzMeARUFIzUjFTM1MxUOAQcjLgE1ETQ2NzMeARcFi/vqP1QCAlQ/BBY/VAICVP1rcJWVcCog4CAqAQEqIOAgKgILcJWVcAEqIOAgKiog4CAqAQXVAVU//IA/VQEBVT8DgD9V/fcl4CVKICoBASogASogKgEBKiBKJeAlSiAqAQEqIAEqICoBASogAAAGAAAAAAYgBPYAAwAHAAsADwATABcAABMzNSMRMzUjETM1IwEhNSERITUhERUhNeCVlZWVlZUBKwQV++sEFfvrBBUDNZb+QJUBwJX+QJb+QJUCVZWVAAAAAQAAAAAGIAZsAC4AAAEiBgcBNjQnAR4BMz4BNy4BJw4BBxQXAS4BIw4BBx4BFzI2NwEGBx4BFz4BNy4BBUArSh797AcHAg8eTixffwICf19ffwIH/fEeTixffwICf18sTh4CFAUBA3tcXHsDA3sCTx8bATcZNhkBNB0gAn9fX38CAn9fGxn+zRwgAn9fX38CIBz+yhcaXHsCAntcXXsAAAIAAAAABlkGawBDAE8AAAE2NCc3PgEnAy4BDwEmLwEuASchDgEPAQYHJyYGBwMGFh8BBhQXBw4BFxMeAT8BFh8BHgEXIT4BPwE2NxcWNjcTNiYnBS4BJz4BNx4BFw4BBasFBZ4KBgeWBxkNujpEHAMUD/7WDxQCHEU5ug0aB5UHBQudBQWdCwUHlQcaDbo5RRwCFA8BKg8UAhxFOboNGgeVBwUL/ThvlAIClG9vlAIClAM3JEokewkaDQEDDAkFSy0cxg4RAQERDsYcLUsFCQz+/QwbCXskSiR7CRoN/v0MCQVLLRzGDhEBAREOxhwtSwUJDAEDDBsJQQKUb2+UAgKUb2+UAAAAAAEAAAAABmsGawALAAATEgAFJAATAgAlBACVCAGmAT0BPQGmCAj+Wv7D/sP+WgOA/sP+WggIAaYBPQE9AaYICP5aAAAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAASYAJzYANxYAFwYAA4D+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgZrCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAADAAAAAAZrBmsACwAXACMAAAEEAAMSAAUkABMCAAEmACc2ADcWABcGAAMOAQcuASc+ATceAQOA/sP+WggIAaYBPQE9AaYICP5a/sP9/q4GBgFS/f0BUgYG/q4dAn9fX38CAn9fX38Gawj+Wv7D/sP+WggIAaYBPQE9Aab6yAYBUv39AVIGBv6u/f3+rgJPX38CAn9fX38CAn8AAAAEAAAAAAYgBiAADwAbACUAKQAAASEOAQcRHgEXIT4BNxEuAQEjNSMVIxEzFTM1OwEhHgEXEQ4BByE3MzUjBYv76j9UAgJUPwQWP1QCAlT9a3CVcHCVcJYBKiAqAQEqIP7WcJWVBiACVD/76j9UAgJUPwQWP1T8gpWVAcC7uwEqIP7WICoBcOAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAEwcJAScJATcJARcBA4D+w/5aCAgBpgE9AT0BpggI/lo4af70/vRpAQv+9WkBDAEMaf71BmsI/lr+w/7D/loICAGmAT0BPQGm/BFpAQv+9WkBDAEMaf71AQtp/vQAAQAAAAAF1ga2ABYAAAERCQERHgEXDgEHLgEnIxYAFzYANyYAA4D+iwF1vv0FBf2+vv0FlQYBUf7+AVEGBv6vBYsBKv6L/osBKgT9v779BQX9vv7+rwYGAVH+/gFRAAAAAQAAAAAFPwcAABQAAAERIyIGHQEhAyMRIREjETM1NDYzMgU/nVY8ASUn/v7O///QrZMG9P74SEi9/tj9CQL3ASjaus0AAAAABAAAAAAGjgcAADAARQBgAGwAAAEUHgMVFAcGBCMiJicmNTQ2NzYlLgE1NDcGIyImNTQ2Nz4BMyEHIx4BFRQOAycyNjc2NTQuAiMiBgcGFRQeAxMyPgI1NC4BLwEmLwImIyIOAxUUHgIBMxUjFSM1IzUzNTMDH0BbWkAwSP7qn4TlOSVZSoMBESAfFS4WlMtIP03TcAGiioNKTDFFRjGSJlAaNSI/akAqURkvFCs9WTY6a1s3Dg8THgocJU4QIDVob1M2RnF9A2vV1WnU1GkD5CRFQ1CATlpTenNTYDxHUYouUhIqQCkkMQTBlFKaNkJAWD+MWkhzRztAPiEbOWY6hn1SJyE7ZS5nZ1I0/JcaNF4+GTAkGCMLFx04Ag4kOF07Rms7HQNsbNvbbNkAAwAAAAAGgAZsAAMADgAqAAABESERARYGKwEiJjQ2MhYBESERNCYjIgYHBhURIRIQLwEhFSM+AzMyFgHd/rYBXwFnVAJSZGemZASP/rdRVj9VFQv+twIBAQFJAhQqR2c/q9AEj/whA98BMkliYpNhYfzd/cgCEml3RTMeM/3XAY8B8DAwkCAwOB/jAAABAAAAAAaUBgAAMQAAAQYHFhUUAg4BBCMgJxYzMjcuAScWMzI3LgE9ARYXLgE1NDcWBBcmNTQ2MzIXNjcGBzYGlENfAUyb1v7SrP7x4SMr4bBpph8hHCsqcJNETkJOLHkBW8YIvYaMYG1gJWldBWhiRQ4cgv797rdtkQSKAn1hBQsXsXUEJgMsjlNYS5WzCiYkhr1mFTlzPwoAAAABAAAAAAWABwAAIgAAARcOAQcGLgM1ESM1PgQ3PgE7AREhFSERFB4CNzYFMFAXsFlorXBOIahIckQwFAUBBwT0AU3+sg0gQzBOAc/tIz4BAjhceHg6AiDXGlddb1ctBQf+WPz9+h40NR4BAgABAAAAAAaABoAASgAAARQCBCMiJzY/AR4BMzI+ATU0LgEjIg4DFRQWFxY/ATY3NicmNTQ2MzIWFRQGIyImNz4CNTQmIyIGFRQXAwYXJgI1NBIkIAQSBoDO/p/Rb2s7EzYUaj15vmh34o5ptn9bK1BNHggIBgIGETPRqZepiWs9Sg4IJRc2Mj5WGWMRBM7+zgFhAaIBYc4DgNH+n84gXUfTJzmJ8JZyyH46YH2GQ2ieIAwgHxgGFxQ9WpfZpIOq7lc9I3VZHzJCclVJMf5eRmtbAXzp0QFhzs7+nwAABwAAAAAHAATPAA4AFwAqAD0AUABaAF0AAAERNh4CBw4BBwYmIycmNxY2NzYmBxEUBRY2Nz4BNy4BJyMGHwEeARcOARcWNjc+ATcuAScjBh8BHgEXFAYXFjY3PgE3LgEnIwYfAR4BFw4BBTM/ARUzESMGAyUVJwMchM2UWwgNq4JHrQgBAapUaAoJcWMBfiIhDiMrAQJLMB0BBAokNAIBPmMiIQ4iLAECSzAeAQUKJDQBP2MiIQ4iLAECSzAeAQUKJDQBAT75g+5B4arNLNIBJ44ByQL9BQ9mvYCKwA8FBQMDwwJVTGdzBf6VB8IHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvVJkAWUDDEf+tYP5AQAAAAEAAAAABiAGtgAbAAABBAADER4BFzMRITU2ADcWABcVIREzPgE3EQIAA4D+4v6FBwJ/X+D+1QYBJ97eAScG/tXgX38CB/6FBrUH/oX+4v32X38CAlWV3gEnBgb+2d6V/asCf18CCgEeAXsAAAAAEADGAAEAAAAAAAEABwAAAAEAAAAAAAIABwAHAAEAAAAAAAMABwAOAAEAAAAAAAQABwAVAAEAAAAAAAUACwAcAAEAAAAAAAYABwAnAAEAAAAAAAoAKwAuAAEAAAAAAAsAEwBZAAMAAQQJAAEADgBsAAMAAQQJAAIADgB6AAMAAQQJAAMADgCIAAMAAQQJAAQADgCWAAMAAQQJAAUAFgCkAAMAAQQJAAYADgC6AAMAAQQJAAoAVgDIAAMAAQQJAAsAJgEeVmlkZW9KU1JlZ3VsYXJWaWRlb0pTVmlkZW9KU1ZlcnNpb24gMS4wVmlkZW9KU0dlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfAAABAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMBFAEVARYBFwEYARkBGgEbARwBHQEeAR8EcGxheQtwbGF5LWNpcmNsZQVwYXVzZQt2b2x1bWUtbXV0ZQp2b2x1bWUtbG93CnZvbHVtZS1taWQLdm9sdW1lLWhpZ2gQZnVsbHNjcmVlbi1lbnRlcg9mdWxsc2NyZWVuLWV4aXQGc3F1YXJlB3NwaW5uZXIJc3VidGl0bGVzCGNhcHRpb25zCGNoYXB0ZXJzBXNoYXJlA2NvZwZjaXJjbGUOY2lyY2xlLW91dGxpbmUTY2lyY2xlLWlubmVyLWNpcmNsZQJoZAZjYW5jZWwGcmVwbGF5CGZhY2Vib29rBWdwbHVzCGxpbmtlZGluB3R3aXR0ZXIGdHVtYmxyCXBpbnRlcmVzdBFhdWRpby1kZXNjcmlwdGlvbgVhdWRpbwAAAAAA) format(\"truetype\");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:\"\\F101\"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:\"\\F102\"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:\"\\F103\"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:\"\\F104\"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:\"\\F105\"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:\"\\F106\"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:\"\\F107\"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:\"\\F108\"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:\"\\F109\"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:\"\\F10A\"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:\"\\F10B\"}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:\"\\F10C\"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:\"\\F10D\"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:\"\\F10E\"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:\"\\F10F\"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:\"\\F110\"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before{content:\"\\F111\"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:\"\\F112\"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:\"\\F113\"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:\"\\F114\"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:\"\\F115\"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:\"\\F116\"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:\"\\F117\"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:\"\\F118\"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:\"\\F119\"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:\"\\F11A\"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:\"\\F11B\"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:\"\\F11C\"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:\"\\F11D\"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:\"\\F11E\"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex=\"-1\"]{outline:none}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-4-3,.video-js.vjs-16-9,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill,.video-js .vjs-tech{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.5em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.75em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);-webkit-transition:all 0s;-moz-transition:all 0s;-ms-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:none;border:none;color:inherit;display:inline-block;overflow:visible;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:-webkit-linear-gradient(-90deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto;box-sizing:content-box}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto;box-sizing:content-box}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-ms-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-width:4em}.vjs-live .vjs-progress-control{display:none}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;-o-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666666666667em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0;left:0;top:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.333333333333333em;z-index:1}.video-js .vjs-load-progress{background:#bfc7d3;background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:#fff;background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:relative;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;padding-left:2em;padding-right:2em;padding-bottom:3em}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical,.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical .vjs-volume-bar,.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical .vjs-volume-level{-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)\"}.video-js .vjs-volume-panel{-webkit-transition:width 1s;-moz-transition:width 1s;-ms-transition:width 1s;-o-transition:width 1s;transition:width 1s}.video-js .vjs-volume-panel .vjs-mute-control:active~.vjs-volume-control,.video-js .vjs-volume-panel .vjs-mute-control:focus~.vjs-volume-control,.video-js .vjs-volume-panel .vjs-mute-control:hover~.vjs-volume-control,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel .vjs-volume-control:focus,.video-js .vjs-volume-panel .vjs-volume-control:hover,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control,.video-js .vjs-volume-panel:hover .vjs-volume-control{visibility:visible;opacity:1;position:relative;-webkit-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-moz-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-ms-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-o-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-mute-control:active~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:focus.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:hover.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:hover .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em}.video-js .vjs-volume-panel .vjs-mute-control:active~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-mute-control:active~.vjs-volume-control.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel .vjs-mute-control:active~.vjs-volume-control.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel .vjs-volume-control:focus.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:focus.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel .vjs-volume-control:focus.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel .vjs-volume-control:hover.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:hover.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel .vjs-volume-control:hover.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical .vjs-volume-level,.video-js .vjs-volume-panel:hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:hover .vjs-volume-control.vjs-volume-vertical .vjs-volume-bar,.video-js .vjs-volume-panel:hover .vjs-volume-control.vjs-volume-vertical .vjs-volume-level{-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)\"}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:focus,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:9em;-webkit-transition:width .1s;-moz-transition:width .1s;-ms-transition:width .1s;-o-transition:width .1s;transition:width .1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3.5em;-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-moz-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-ms-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-o-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-moz-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-ms-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-o-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-poster,.vjs-poster img{vertical-align:middle;padding:0}.vjs-poster img{display:block;margin:0 auto;max-height:100%;width:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js .vjs-time-control{-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time{display:none}.vjs-no-flex .vjs-remaining-time.vjs-time-control.vjs-control{width:0!important;white-space:nowrap}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control .vjs-icon-placeholder{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:rgba(0,0,0,.5)}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-moz-transform:translateY(-3em);-ms-transform:translateY(-3em);-o-transform:translateY(-3em);-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-moz-transform:translateY(-1.5em);-ms-transform:translateY(-1.5em);-o-transform:translateY(-1.5em);-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:\"X\";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:\"\";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-spin{to{transform:rotate(1turn)}}@-webkit-keyframes vjs-spinner-spin{to{-webkit-transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{position:absolute}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:\"\\F10D\";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button .vjs-audio-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-audio-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-audio-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block;margin-left:5px}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}@media \\0screen{.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:\"\"}}@media \\0screen{.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:hidden}}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
// import videojs from '../assets/js/video.min.js'
var _default = exports.default = {
  data: function data() {
    return {
      share: this.$route.query.share || ''
    };
  },
  created: function created() {
    //    this.openresource()
  },
  methods: {
    openresource: function openresource() {
      var that = this;
      that.video();
      //      that.$http.get(that._Api.HOSTOLD+'api/treeShare/getShareDetails.json?fileNo='+that.fileNo+'&treeId='+that.id).then(
      //        function(res){
      //          if(res.data.data.shareUrl){
      //            that.share=res.data.data.shareUrl
      //            that.video()
      //            // console.log(that.share);
      //          }
      //        }
      //      ).catch(
      //        function(error){
      //          console.log(error)
      //        }
      //      )
    },
    video: function video() {
      // const that = this
      //      $('video').attr('src',that.share)
      //      $('source').attr('src',that.share)
      //      var s = videojs(document.querySelector('.video-js'))
      //      s.play();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"m"},[_c('video',{staticClass:"video-js vjs-big-play-centered",attrs:{"id":"my-player","src":_vm.share,"controls":"","autoplay":"","preload":"auto"}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(603);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5cb3b859_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1202);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3229)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5cb3b859"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5cb3b859_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5cb3b859_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_failureCollect_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3230);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("11583cee", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".failure[data-v-5cb3b859]{padding:20px 10px;background-color:#f9f9f9;height:auto!important}.failure>div[data-v-5cb3b859]{margin-bottom:15px}.failure>div[data-v-5cb3b859]:after{display:block;content:\"\";clear:both}.failure>div>label[data-v-5cb3b859]{float:left;width:29%;font-size:.85rem;margin-right:3%;text-align:right;color:#000!important;margin-top:15px}.failure>div>input[data-v-5cb3b859]{float:left;width:65%;font-size:.7rem;border:1px solid #eaeaea;box-sizing:border-box;text-indent:13px;line-height:50px}.upload[data-v-5cb3b859]{float:left;width:65%}.icon[data-v-5cb3b859]{cursor:pointer;height:40px;width:40px;background:url(" + escape(__webpack_require__(3231)) + ") no-repeat 50%/70% 70%;border:1px solid #999;margin-top:7px;float:left}.failure>div>label>span[data-v-5cb3b859]{color:red;margin-right:3px;font-weight:700}.viewimg[data-v-5cb3b859]:after{display:block;clear:both;content:\"\"}.viewimg>img[data-v-5cb3b859]{margin-top:10px;margin-right:10px;float:left}.viewimg[data-v-5cb3b859]{float:left;width:100%}.viewimg>img[data-v-5cb3b859]:last-child{margin-right:0}.row>.textarea[data-v-5cb3b859]{float:left;width:65%;text-indent:13px}.pointer[data-v-5cb3b859]{cursor:pointer}.submit[data-v-5cb3b859]{line-height:40px;color:#fff;width:80%;margin:30px auto 0;background-color:#259b24;text-align:center;border-radius:3px;font-size:.8rem}.models[data-v-5cb3b859]{position:fixed;top:0;bottom:0;width:100%;background-color:#333;margin-left:0;margin-bottom:0!important;left:0}.models .img[data-v-5cb3b859]{position:absolute;top:45%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-height:80%}.models .delete[data-v-5cb3b859]{position:absolute;bottom:20px;left:50%;-webkit-transform:translate(-50%);-ms-transform:translate(-50%);transform:translate(-50%);width:50px}.clearfix[data-v-5cb3b859]:after,.failure[data-v-5cb3b859]:after{display:block;clear:both;content:\"\"}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/add.1310e2f.png";/* WEBPACK VAR INJECTION */(function($) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      request: {
        caseName: '',
        carName: '',
        carImg: '',
        engineName: '',
        engineImg: '',
        carConfig: '',
        failure: '',
        failureCode: '',
        failureImg: '',
        resolve: '',
        resolveImg: '',
        finalReason: ''
      },
      token: '',
      bucketUrl: '',
      arras: {
        carImg: [],
        engineImg: [],
        failureImg: [],
        resolveImg: []
      },
      index: 0,
      show: false,
      currentArra: ''
    };
  },
  created: function created() {
    var that = this;
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
      if (that._Util.isIOS) {
        that.upload('container', 'upBtn', 'carImg');
        that.upload('containerb', 'upBtnb', 'engineImg');
        that.upload('containerc', 'upBtnc', 'failureImg');
        that.upload('containerd', 'upBtnd', 'resolveImg');
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    // 记录日志
    var that = this;
    that._Util.collectPageView({
      version: that._Util.isApp() ? '首页' : '微信菜单',
      postUrl: that._Api.POST_COLLECT,
      moduleType: that._Util.isApp() ? '首页' : '微信菜单',
      operate_page: '打开的页面',
      optionType: that._Enums.COLLECT_OPTIONS_TYPE.CLICK,
      title: window.document.title,
      url: window.location.href
    }, that);
  },
  methods: {
    hidden: function hidden(e) {
      if (e.target.className == 'delete') return;
      this.show = false;
    },
    del: function del() {
      var _this = this;
      _mintUi.MessageBox.confirm('确定删除图片').then(function (action) {
        _this.show = false;
        _this.arras[_this.currentArra].splice(_this.index, 1);
      });
    },
    bigImg: function bigImg(e, index, arra) {
      this.index = index;
      $('.models .img').attr('src', $(e.target).attr('src'));
      this.show = true;
      this.currentArra = arra;
    },
    join: function join() {
      var that = this;
      that.request.carImg = that.arras.carImg.join(',');
      that.request.engineImg = that.arras.engineImg.join(',');
      that.request.failureImg = that.arras.failureImg.join(',');
      that.request.resolveImg = that.arras.resolveImg.join(',');
    },
    submit: function submit() {
      var that = this;
      that.join();
      // 判断必填项
      if (!(that.request.caseName && that.request.carName && that.request.engineName && that.request.resolve && that.request.finalReason)) {
        if (!that.request.caseName) {
          (0, _mintUi.Toast)({
            message: '请输入案例名称',
            duration: 2000
          });
          return;
        }
        if (!that.request.carName) {
          (0, _mintUi.Toast)({
            message: '请输入整车品牌',
            duration: 2000
          });
          return;
        }
        if (!that.request.engineName) {
          (0, _mintUi.Toast)({
            message: '请输入发动机品牌',
            duration: 2000
          });
          return;
        }
        if (!that.request.resolve) {
          (0, _mintUi.Toast)({
            message: '请输入排查过程',
            duration: 2000
          });
          return;
        }
        if (!that.request.finalReason) {
          (0, _mintUi.Toast)({
            message: '请输入最终原因',
            duration: 2000
          });
          return;
        }
      }
      that.$http({
        url: that._Api.HOSTOLD + 'api/caseCollect/add.json',
        data: JSON.stringify(that.request),
        method: 'post',
        headers: {
          'Content-Type': 'application/json'
        }
      }).then(function (res) {
        (0, _mintUi.Toast)(res.data.msg);
        setTimeout(function () {
          window.location.reload();
        }, 1000);
      }).catch(function () {
        (0, _mintUi.Toast)('新增失败！');
      });
    },
    upload: function upload(container, upBtn, arra, e) {
      var that = this;
      if (that._Util.isIOS) {
        // eslint-disable-next-line no-unused-vars
        var uploader = Qiniu.uploader({
          runtimes: 'html5,flash,html4',
          browse_button: upBtn,
          //          uptoken_url: that.token,
          uptoken: that.token,
          domain: that.bucketUrl,
          get_new_uptoken: false,
          container: container,
          filters: {
            max_file_size: '100mb',
            prevent_duplicates: true,
            mime_types: [{
              title: 'Image files',
              extensions: 'jpg,gif,png'
            }]
          },
          flash_swf_url: 'js/plupload/Moxie.swf',
          max_retries: 0,
          dragdrop: true,
          drop_element: 'container',
          chunk_size: '4mb',
          auto_start: true,
          multi_selection: false,
          init: {
            'FilesAdded': function FilesAdded(up, files) {
              // eslint-disable-next-line no-undef
              plupload.each(files, function (file) {});
            },
            'BeforeUpload': function BeforeUpload(up, file) {
              if (!file.type.match('image')) {
                (0, _mintUi.Toast)('请选择图片上传');
                return false;
              }
              _mintUi.Indicator.open('上传中...');
            },
            'UploadProgress': function UploadProgress(up, file) {},
            'FileUploaded': function FileUploaded(up, file, info) {
              _mintUi.Indicator.close();
              if (that.arras[arra].length > 8) return;
              that.arras[arra].push(JSON.parse(info.response).key);
            },
            'Error': function Error(up, err, errTip) {},
            'UploadComplete': function UploadComplete() {},
            'Key': function Key(up, file) {}
          }
        });
      } else {
        var file = e.target.files[0];
        if (file) {
          if (!file.type.match('image')) {
            (0, _mintUi.Toast)('请选择图片上传！');
            return false;
          }
          _mintUi.Indicator.open('上传中...');
          var formData = new FormData();
          formData.append('file', file);
          formData.append('token', that.token);
          $.ajax({
            url: 'https://upload.qiniup.com',
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            if (that.arras[arra].length > 8) return;
            that.arras[arra].push(res.key);
          }).fail(function () {});
        }
      }
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"failure"},[_c('div',{staticClass:"clearfix row"},[_vm._m(0),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.caseName),expression:"request.caseName",modifiers:{"trim":true}}],attrs:{"type":"text","name":"","value":"","placeholder":"请输入案例名称"},domProps:{"value":(_vm.request.caseName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "caseName", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row",attrs:{"id":"upload"}},[_vm._m(1),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.carName),expression:"request.carName",modifiers:{"trim":true}}],attrs:{"type":"text","name":"","value":"","placeholder":"请输入整车品牌"},domProps:{"value":(_vm.request.carName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "carName", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_c('label',{attrs:{"for":""}},[_vm._v("整车图片")]),_vm._v(" "),_c('div',{staticClass:"upload",attrs:{"id":"container"}},[_c('label',{staticClass:"icon pointer",attrs:{"id":"upBtn","for":"upimg"}}),_c('span',{staticStyle:{"float":"left","margin-top":"16px","margin-left":"5px"}},[_vm._v("最多上传9张图片")]),_vm._v(" "),_c('input',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],attrs:{"id":"upimg","type":"file"},on:{"change":function($event){return _vm.upload('','','carImg',$event)}}}),_vm._v(" "),_c('div',{staticClass:"viewimg"},_vm._l((_vm.arras.carImg),function(v,index){return _c('img',{key:index,attrs:{"src":_vm.bucketUrl + v + '?imageView2/2/w/320',"alt":"","width":"50px","height":"50px"},on:{"click":function($event){return _vm.bigImg($event,index,'carImg')}}})}),0)])]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_vm._m(2),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.engineName),expression:"request.engineName",modifiers:{"trim":true}}],attrs:{"type":"text","name":"","value":"","placeholder":"请输入发动机品牌"},domProps:{"value":(_vm.request.engineName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "engineName", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_c('label',{attrs:{"for":""}},[_vm._v("发动机图片")]),_vm._v(" "),_c('div',{staticClass:"upload",attrs:{"id":"containerb"}},[_c('label',{staticClass:"icon pointer",attrs:{"id":"upBtnb","for":"upimg2"}}),_c('span',{staticStyle:{"float":"left","margin-top":"16px","margin-left":"5px"}},[_vm._v("最多上传9张图片")]),_vm._v(" "),_c('input',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],attrs:{"id":"upimg2","type":"file"},on:{"change":function($event){return _vm.upload('','','engineImg',$event)}}}),_vm._v(" "),_c('div',{staticClass:"viewimg"},_vm._l((_vm.arras.engineImg),function(v,index){return _c('img',{key:index,attrs:{"src":_vm.bucketUrl + v + '?imageView2/2/w/320',"alt":"","width":"50px","height":"50px"},on:{"click":function($event){return _vm.bigImg($event,index,'engineImg')}}})}),0)])]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_c('label',{attrs:{"for":""}},[_vm._v("配置")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.carConfig),expression:"request.carConfig",modifiers:{"trim":true}}],attrs:{"type":"text","name":"","value":"","placeholder":"请输入整车品牌"},domProps:{"value":(_vm.request.carConfig)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "carConfig", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_c('label',{attrs:{"for":""}},[_vm._v("故障现象")]),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.failure),expression:"request.failure",modifiers:{"trim":true}}],staticClass:"textarea",attrs:{"name":"name","rows":"5","cols":"80","placeholder":"请详细描述故障现象"},domProps:{"value":(_vm.request.failure)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "failure", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_c('label',{attrs:{"for":""}},[_vm._v("故障码")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.failureCode),expression:"request.failureCode",modifiers:{"trim":true}}],attrs:{"type":"text","name":"","value":"","placeholder":"如：P1011、P1012"},domProps:{"value":(_vm.request.failureCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "failureCode", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_c('label',{attrs:{"for":""}},[_vm._v("故障码图片")]),_vm._v(" "),_c('div',{staticClass:"upload",attrs:{"id":"containerc"}},[_c('label',{staticClass:"icon pointer",attrs:{"id":"upBtnc","for":"upimg3"}}),_c('span',{staticStyle:{"float":"left","margin-top":"16px","margin-left":"5px"}},[_vm._v("最多上传9张图片")]),_vm._v(" "),_c('input',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],attrs:{"id":"upimg3","type":"file"},on:{"change":function($event){return _vm.upload('','','failureImg',$event)}}}),_vm._v(" "),_c('div',{staticClass:"viewimg"},_vm._l((_vm.arras.failureImg),function(v,index){return _c('img',{key:index,attrs:{"src":_vm.bucketUrl + v + '?imageView2/2/w/320',"alt":"","width":"50px","height":"50px"},on:{"click":function($event){return _vm.bigImg($event,index,'failureImg')}}})}),0)])]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_vm._m(3),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.resolve),expression:"request.resolve",modifiers:{"trim":true}}],staticClass:"textarea",attrs:{"name":"name","rows":"5","cols":"80","placeholder":"请详细描述排查过程"},domProps:{"value":(_vm.request.resolve)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "resolve", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_c('label',{attrs:{"for":""}},[_vm._v("排查图片")]),_vm._v(" "),_c('div',{staticClass:"upload",attrs:{"id":"containerd"}},[_c('label',{staticClass:"icon pointer",attrs:{"id":"upBtnd","for":"upimg4"}}),_vm._v(" "),_c('span',{staticStyle:{"float":"left","margin-top":"16px","margin-left":"5px"}},[_vm._v("最多上传9张图片")]),_vm._v(" "),_c('input',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],attrs:{"id":"upimg4","type":"file"},on:{"change":function($event){return _vm.upload('','','resolveImg',$event)}}}),_vm._v(" "),_c('div',{staticClass:"viewimg"},_vm._l((_vm.arras.resolveImg),function(v,index){return _c('img',{key:index,attrs:{"src":_vm.bucketUrl + v + '?imageView2/2/w/320',"alt":"","width":"50px","height":"50px"},on:{"click":function($event){return _vm.bigImg($event,index,'resolveImg')}}})}),0)])]),_vm._v(" "),_c('div',{staticClass:"clearfix row"},[_vm._m(4),_vm._v(" "),_c('textarea',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.request.finalReason),expression:"request.finalReason",modifiers:{"trim":true}}],staticClass:"textarea",attrs:{"name":"name","rows":"5","cols":"80","placeholder":"请描述最终原因"},domProps:{"value":(_vm.request.finalReason)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, "finalReason", $event.target.value.trim())},"blur":function($event){return _vm.$forceUpdate()}}})]),_vm._v(" "),_c('div',{staticClass:"clearfix row",staticStyle:{"color":"#999","margin-left":"10%"}},[_vm._v("\n    注：尽可能详细的填写各项信息，有助于小轨录用及同行学习。\n  ")]),_vm._v(" "),_c('div',{staticClass:"pointer submit",on:{"click":_vm.submit}},[_vm._v("\n    提交\n  ")]),_vm._v(" "),_c('transition',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"models",on:{"click":function($event){return _vm.hidden($event)}}},[_c('img',{staticClass:"img",attrs:{"src":__webpack_require__(1679),"alt":""}}),_vm._v(" "),_c('img',{staticClass:"delete",attrs:{"src":__webpack_require__(1679),"alt":"删除"},on:{"click":_vm.del}})])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{"for":""}},[_c('span',[_vm._v("*")]),_vm._v("案例名称")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{"for":""}},[_c('span',[_vm._v("*")]),_vm._v("整车品牌")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{"for":""}},[_c('span',[_vm._v("*")]),_vm._v("发动机品牌")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{"for":""}},[_c('span',[_vm._v("*")]),_vm._v("排查过程")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{"for":""}},[_c('span',[_vm._v("*")]),_vm._v("最终原因")])}]
module.exports = __webpack_require__.p + "static/img/delete.1cfc449.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(604);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69660b9e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1203);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3232)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69660b9e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_69660b9e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3233);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("468edc25", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mask{width:100%;height:100%;background:rgba(0,0,0,.4);position:fixed;z-index:999}.box{width:100%;background:url(" + escape(__webpack_require__(3234)) + ") 0 0 no-repeat;background-size:100% 100%;overflow:hidden}.red-box{width:95%;position:relative;margin:0 auto;margin-top:30px}.redGift{width:100%;display:inline-block;margin-top:-20%;position:relative;z-index:1}.topic-box{width:86%;background:#fff9f2;padding-top:10px;padding-bottom:10px;border-top-left-radius:5px;-webkit-border-top-left-radius:5px;border-top-right-radius:5px;-webkit-border-top-right-radius:5px;margin:0 auto;position:relative;z-index:2;min-height:106px}.question-title{font-size:16px;padding:0 15px;color:#333;margin-bottom:15px;font-weight:bolder}.rules{position:absolute;right:0;width:24px;text-align:center;background:rgba(0,0,0,.5);padding:5px 0;color:#fff;line-height:16px;border-top-left-radius:4px;-webkit-border-top-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-bottom-left-radius:4px;top:15px}.check-item .nocheck{width:13px;height:13px;border-radius:50%;-webkit-border-radius:50%;border:1px solid #a4a4a4;display:inline-block;position:relative;float:left;margin-top:4px}.check-item .hcircle{width:8px;height:8px;border-radius:50%;-webkit-border-radius:50%;background:#e6463e;position:absolute;left:50%;top:50%;margin-left:-4px;margin-top:-4px;display:none}.check-box{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 7%}.check-item{width:100%;margin-bottom:7px}.check-box span{display:inline-block;float:left;width:90%;margin-left:5px;font-size:14px;color:#333}.activeNow .nocheck{border:1px solid #e6463e}.activeNow span{color:#e6463e}.activeNow .hcircle{display:block}.giftMan{position:absolute;top:-48px;width:85px;right:-22px}.submitBtn{color:#fff;width:40%;padding:5px 0;border:2px solid #fff;border-radius:5px;-webkit-border-radius:5px;bottom:33%;font-size:16px;left:0;right:0;margin:auto}.lookgift,.submitBtn{text-align:center;position:absolute;z-index:8}.lookgift{color:#f6ff00;font-size:14px;bottom:17%;width:96px;left:50%;margin-left:-48px}.sucai-box{width:95%;background:#fff9f2;margin:0 auto;padding-top:10px;padding-bottom:5px;border-radius:5px;-webkit-border-radius:5px}.con{position:relative;height:30px;line-height:30px;width:60%;margin:5px auto 0;text-align:center}.con i{display:block;height:2px;background:#fc4b67;position:absolute;top:15px;width:100%}.con p{font-size:18px;display:inline-block;background:#fff9f2;padding:0 15px;text-align:center;margin:0 auto;position:relative;z-index:2;color:#fb2044}.content-box img,.content-box video{width:90%;display:block;margin:0 auto;margin-top:15px;border-radius:5px;-webkit-border-radius:5px}.content-box video{max-height:180px}.text-con{width:90%;margin:15px auto 0;color:#fb2044;font-size:16px}.rulesBox{background:#fff;border-radius:5px;width:90%;margin:50px auto 0;-webkit-border-radius:5px;padding-top:15px;padding-bottom:30px;position:relative}.closeBtn{width:30px;height:30px;position:absolute;right:-12px;top:-12px}.ciofirmred{color:#fb2044}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/bg-bottom.9e9730f.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      result: {},
      answerList: {},
      isRight: false,
      questionMatList: {},
      index: 100,
      showRules: false,
      showSuicai: false,
      showDownload: false,
      rules: '',
      adresult: {},
      hasChoose: false,
      userInfoResult: {}
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
      code: 'million_app',
      pageNum: 1,
      pageSize: 1
    }, function (data) {
      if (data.dataList[0].status == 0) {
        that.showDownload = true;
      } else {
        that.showDownload = false;
      }
    }, function () {}, that);
  },
  mounted: function mounted() {
    var that = this;
    that.getUserInfo();
    that._Util.collectPageView2({
      version: that._Util.version,
      postUrl: that._Api.POST_COLLECT,
      moduleType: '瓜分100w',
      operate_page: '首页',
      optionType: '打开页面',
      param1: window.location.href,
      param2: '',
      param4: {
        'queryValue': '',
        'result': '',
        'filter': ''
      }
    }, that);
    //      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO,{code:'million_guide',pageNum:1,pageSize:1}, (data) => {
    //        that.rules = data.dataList[0].text
    //      }, () => {
    //      }, that);
    //      that._Util.post(that._Api.POST_ADVERT_POSITION,{signType:4}, (data) => {
    //        that.adresult = data;
    //      }, () => {
    //      }, that);
  },
  methods: {
    getQuestion: function getQuestion(n) {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'million_question',
        pageNum: 1,
        pageSize: 1,
        shareid: that.$route.query.userid || 0
      }, function (data) {
        that.result = data.dataList[0];
        if (n == 1) {
          //              that.share();
        }
        that.answerList = data.dataList[0].question_opt.split('##');
        if (data.dataList[0].question_mat && data.dataList[0].question_mat.length > 1) {
          that.showSuicai = true;
          that.questionMatList = data.dataList[0].question_mat.split('##');
        } else {
          that.showSuicai = false;
          that.questionMatList = {};
        }
      }, function () {}, that);
    },
    choseAnswer: function choseAnswer(i) {
      var that = this;
      if (that.userInfoResult.userStatus == 0) {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '您尚未认证，请先认证',
          showConfirmButton: true,
          confirmButtonClass: 'ciofirmred',
          confirmButtonText: '去认证',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.push({
              name: 'personalCertification',
              query: {
                nextPath: window.location.href
              }
            });
          }
        });
        return;
      }
      that.hasChoose = true;
      that.index = i;
    },
    showRulesDetail: function showRulesDetail() {
      this.showRules = true;
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        //          that.getQuestion(1);
        if (data) {
          that.userInfoResult = data;
          if (that.$route.query.userid) {
            if (that.userInfoResult.userId == that.$route.query.userid) {
              that.goSecondPage();
            }
          }
        }
      }, function () {}, that);
    },
    collectLog: function collectLog() {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '瓜分100w',
        operate_page: '首页',
        optionType: '广告点点击',
        param1: window.location.href,
        param2: that.adresult.advertUrl,
        param3: '',
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      window.open(that.adresult.advertUrl);
    },
    toIndex: function toIndex() {
      this.$router.replace({
        name: 'redFinal',
        query: {
          userId: this.$route.query.userId
        }
      });
    },
    submitEvent: function submitEvent() {
      var _this = this;
      var that = this;
      if (that.result.today == 0) {
        if (that.hasChoose) {
          if (that.index == that.result.question_ans) {
            that._Util.post(that._Api.HOST + 'qrCode/addRedPacketRewardRecord.json', {
              questionNo: that.result.question_no,
              answerMoney: that.result.money_h,
              shareUserId: that.$route.query.userid || 0,
              shareMoney: that.result.money_s
            }, function (data) {
              that.isRight = true;
              //                  that.share();
              if (that.result.money_h == 0.01) {
                (0, _mintUi.MessageBox)({
                  title: '提示',
                  message: '100万赏金已经瓜分完毕，感谢你对卡修宝典的支持。快去使用赏金吧~',
                  showConfirmButton: true,
                  confirmButtonClass: 'ciofirmred',
                  confirmButtonText: '去赚赏金',
                  showCancelButton: true,
                  cancelButtonText: that.result.question_text || '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    that.goSecondPage();
                  } else {
                    if (that.result.question_url) {
                      window.open(that.result.question_url);
                    }
                  }
                });
              } else {
                (0, _mintUi.MessageBox)({
                  title: '回答正确',
                  message: '恭喜您本次获得答题红包' + that.result.money_h + '元',
                  showConfirmButton: true,
                  confirmButtonClass: 'ciofirmred',
                  confirmButtonText: '去赚赏金',
                  showCancelButton: true,
                  cancelButtonText: that.result.question_text || '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    that.goSecondPage();
                  } else {
                    if (that.result.question_url) {
                      window.open(that.result.question_url);
                    } else {
                      that.getQuestion(2);
                    }
                  }
                });
              }
            }, function () {}, that);
          } else {
            (0, _mintUi.MessageBox)({
              title: '回答错误',
              message: '请重新选择答案',
              showConfirmButton: true,
              confirmButtonClass: 'ciofirmred',
              confirmButtonText: '重新答题',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that.index = 100;
                _this.hasChoose = false;
              }
            });
          }
        } else {
          (0, _mintUi.Toast)('请先选择答案！');
        }
      } else {
        that.$router.replace({
          name: 'redEnvelopesSecond',
          query: {
            userId: that.userInfoResult.userId,
            money: that.result.money_h
          }
        });
      }
    },
    goSecondPage: function goSecondPage() {
      var that = this;
      if (that.userInfoResult.userStatus == 0) {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '您尚未认证，请先认证',
          showConfirmButton: true,
          confirmButtonClass: 'ciofirmred',
          confirmButtonText: '去认证',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            that.$router.push({
              name: 'personalCertification',
              query: {
                nextPath: window.location.href
              }
            });
          }
        });
        return;
      }
      if (that.result.today == 0) {
        if (that.isRight) {
          that.$router.replace({
            name: 'redEnvelopesSecond',
            query: {
              userId: that.userInfoResult.userId,
              money: that.result.money_h
            }
          });
        } else {
          that.$router.replace({
            name: 'redEnvelopesSecond',
            query: {
              userId: that.userInfoResult.userId,
              money: 0
            }
          });
        }
      } else {
        that.$router.replace({
          name: 'redEnvelopesSecond',
          query: {
            userId: that.userInfoResult.userId,
            money: that.result.money_h
          }
        });
      }
    },
    share: function share() {
      var that = this;
      var title = '';
      if (that.result.today == 0) {
        if (that.isRight) {
          title = '这道题我答对了，获得' + that.result.money_h + '元，我想考考你，快来卡修宝典试一试吧~';
        } else {
          title = '我在卡修宝典答题瓜分100万，快来试一试吧~';
        }
      } else {
        title = '这道题我答对了，获得' + that.result.money_h + '元，我想考考你，快来卡修宝典试一试吧~';
      }
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: title,
                  desc: '快跟我一起来卡修宝典瓜分100万',
                  link: location.origin + '/v2/redEnvelopes/index?userid=' + that.userInfoResult.userId,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '瓜分100w',
              operate_page: '答题页',
              optionType: '分享',
              param1: window.location.href,
              param2: '',
              param4: {
                'queryValue': '',
                'result': '',
                'filter': ''
              }
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: title,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.userInfoResult.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '瓜分100w',
                operate_page: '答题页',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: title,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.userInfoResult.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '瓜分100w',
                operate_page: '答题页',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: title,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.userInfoResult.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg',
              success: function success() {
                that._Util.collectPageView2({
                  version: that._Util.version,
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '瓜分100w',
                  operate_page: '答题页',
                  optionType: '分享',
                  param1: window.location.href,
                  param2: '',
                  param4: {
                    'queryValue': '',
                    'result': '',
                    'filter': ''
                  }
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showRules)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"rulesBox"},[_c('img',{staticClass:"closeBtn",attrs:{"src":__webpack_require__(826)},on:{"click":function($event){_vm.showRules = false}}}),_vm._v(" "),_c('div',{staticStyle:{"font-size":"16px","color":"#000","text-align":"center"}},[_vm._v("活动规则")]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"14px","color":"#333","text-align":"justify","width":"90%","margin":"0 auto","margin-top":"10px","max-height":"300px","overflow":"scroll"},domProps:{"innerHTML":_vm._s(_vm.rules)}})])]):_vm._e(),_vm._v(" "),(_vm.showDownload)?_c('div',{staticClass:"mask",staticStyle:{"background":"rgba(0,0,0,0.7)"}},[_c('div',{staticStyle:{"width":"100%","margin":"0 auto","position":"absolute","top":"65px"}},[_c('img',{staticStyle:{"width":"30px","height":"30px","position":"absolute","right":"5px","top":"-20px"},attrs:{"src":__webpack_require__(3235)},on:{"click":function($event){_vm.showDownload = false;}}}),_vm._v(" "),_vm._m(0)])]):_vm._e(),_vm._v(" "),_c('img',{staticStyle:{"width":"100%","display":"block"},attrs:{"src":__webpack_require__(3236)}}),_vm._v(" "),_c('div',{staticClass:"box"},[_c('div',{staticStyle:{"font-size":"16px","text-align":"center","color":"#fff"}},[_vm._v("红包可累积，用于购买年费会员")]),_vm._v(" "),_c('div',{staticClass:"red-box"},[_c('div',{staticClass:"topic-box"},[_c('img',{staticClass:"giftMan",attrs:{"src":__webpack_require__(3237)}}),_vm._v(" "),_vm._m(1),_vm._v(" "),(_vm.result.today ==0)?_c('div',{staticClass:"question-title"},[_vm._v(_vm._s(_vm.result.question_ste))]):_vm._e(),_vm._v(" "),(_vm.result.today ==0)?_c('div',{staticClass:"check-box"},_vm._l((_vm.answerList),function(v,i){return _c('div',{key:i,staticClass:"check-item",class:{'activeNow': _vm.index == i },on:{"click":function($event){return _vm.choseAnswer(i)}}},[_vm._m(2,true),_vm._v(" "),_c('span',[_vm._v(_vm._s(v))])])}),0):_vm._e()]),_vm._v(" "),_c('div',{staticStyle:{"position":"relative"}},[_c('div',{staticClass:"submitBtn",on:{"click":function($event){return _vm.toIndex()}}},[_vm._v("去使用")]),_vm._v(" "),_c('img',{staticClass:"redGift",attrs:{"src":__webpack_require__(3238)}})])])]),_vm._v(" "),(_vm.showSuicai && _vm.result.today== 0 )?_c('div',{staticStyle:{"width":"100%","background":"#ff533b"}},[_c('div',{staticClass:"sucai-box"},[_vm._m(3),_vm._v(" "),_vm._l((_vm.questionMatList),function(v,i){return _c('div',{key:i,staticClass:"content-box"},[(v.indexOf('.jpg') == -1 && v.indexOf('.png') == -1 && v.indexOf('.mp4') == -1)?_c('div',{staticClass:"text-con"},[_vm._v(_vm._s(v))]):_vm._e()])}),_vm._v(" "),_vm._l((_vm.questionMatList),function(v,i){return _c('div',{key:i,staticClass:"content-box"},[(v.indexOf('.jpg') != -1 || v.indexOf('.png') != -1)?_c('img',{attrs:{"src":v}}):_vm._e()])}),_vm._v(" "),_vm._l((_vm.questionMatList),function(v,i){return _c('div',{key:i,staticClass:"content-box"},[(v.indexOf('.mp4') != -1)?_c('video',{attrs:{"src":v,"preload":"","controls":"","poster":"http://static1.kaxiuyun.com/kxy/gf100/datifengmian.png"}}):_vm._e()])})],2)]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","background":"#ff533b","padding-top":"15px"}},[_c('div',{staticStyle:{"width":"95%","margin":"0 auto"}},[_c('a',{on:{"click":function($event){return _vm.collectLog()}}},[_c('img',{attrs:{"alt":"","src":_vm.adresult.advertImg || '',"width":"100%"}})]),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","margin-top":"10px","color":"#fff"}},[_vm._v("©卡修宝典")])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{attrs:{"href":"http://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb&from=singlemessage","target":"_blank"}},[_c('img',{staticStyle:{"width":"95%","display":"block","margin":"0 auto"},attrs:{"src":__webpack_require__(3239)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"font-size":"16px","color":"#fb2044","text-align":"center"}},[_c('div',{staticStyle:{"margin-top":"25px","font-size":"20px"}},[_vm._v("100万已瓜分完毕")]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"20px"}},[_vm._v("快去使用吧")]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"20px"}},[_vm._v("红包+赏金将于2018-02-28失效")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nocheck"},[_c('div',{staticClass:"hcircle"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"con"},[_c('i'),_vm._v(" "),_c('p',[_vm._v("题目参考")])])}]
module.exports = __webpack_require__.p + "static/img/close.245ac83.png";module.exports = __webpack_require__.p + "static/img/close2.b6f5185.png";module.exports = __webpack_require__.p + "static/img/bg-top.16722e2.png";module.exports = __webpack_require__.p + "static/img/giftMan.a281eb1.png";module.exports = __webpack_require__.p + "static/img/red11.95eb471.png";module.exports = __webpack_require__.p + "static/img/pppp.07fe5d3.png";/*! iNoBounce - v0.2.0
* https://github.com/lazd/iNoBounce/
* Copyright (c) 2013 Larry Davis <lazdnet@gmail.com>; Licensed BSD */
(function(global) {
	// Stores the Y position where the touch started
	var startY = 0;

	// Store enabled status
	var enabled = false;

	var supportsPassiveOption = false;
	try {
		var opts = Object.defineProperty({}, 'passive', {
			get: function() {
				supportsPassiveOption = true;
			}
		});
		window.addEventListener('test', null, opts);
	} catch (e) {}

	var handleTouchmove = function(evt) {
		// Get the element that was scrolled upon
		var el = evt.target;

		// Allow zooming
		var zoom = window.innerWidth / window.document.documentElement.clientWidth;
		if (evt.touches.length > 1 || zoom !== 1) {
			return;
		}

		// Check all parent elements for scrollability
		while (el !== document.body && el !== document) {
			// Get some style properties
			var style = window.getComputedStyle(el);

			if (!style) {
				// If we've encountered an element we can't compute the style for, get out
				break;
			}

			// Ignore range input element
			if (el.nodeName === 'INPUT' && el.getAttribute('type') === 'range') {
				return;
			}

			var scrolling = style.getPropertyValue('-webkit-overflow-scrolling');
			var overflowY = style.getPropertyValue('overflow-y');
			var height = parseInt(style.getPropertyValue('height'), 10);

			// Determine if the element should scroll
			var isScrollable = scrolling === 'touch' && (overflowY === 'auto' || overflowY === 'scroll');
			var canScroll = el.scrollHeight > el.offsetHeight;

			if (isScrollable && canScroll) {
				// Get the current Y position of the touch
				var curY = evt.touches ? evt.touches[0].screenY : evt.screenY;

				// Determine if the user is trying to scroll past the top or bottom
				// In this case, the window will bounce, so we have to prevent scrolling completely
				var isAtTop = (startY <= curY && el.scrollTop === 0);
				var isAtBottom = (startY >= curY && el.scrollHeight - el.scrollTop === height);

				// Stop a bounce bug when at the bottom or top of the scrollable element
				if (isAtTop || isAtBottom) {
					evt.preventDefault();
				}

				// No need to continue up the DOM, we've done our job
				return;
			}

			// Test the next parent
			el = el.parentNode;
		}

		// Stop the bouncing -- no parents are scrollable
		evt.preventDefault();
	};

	var handleTouchstart = function(evt) {
		// Store the first Y position of the touch
		startY = evt.touches ? evt.touches[0].screenY : evt.screenY;
	};

	var enable = function() {
		// Listen to a couple key touch events
		window.addEventListener('touchstart', handleTouchstart, supportsPassiveOption ? { passive : false } : false);
		window.addEventListener('touchmove', handleTouchmove, supportsPassiveOption ? { passive : false } : false);
		enabled = true;
	};

	var disable = function() {
		// Stop listening
		window.removeEventListener('touchstart', handleTouchstart, false);
		window.removeEventListener('touchmove', handleTouchmove, false);
		enabled = false;
	};

	var isEnabled = function() {
		return enabled;
	};

	// Enable by default if the browser supports -webkit-overflow-scrolling
	// Test this by setting the property with JavaScript on an element that exists in the DOM
	// Then, see if the property is reflected in the computed style
	var testDiv = document.createElement('div');
	document.documentElement.appendChild(testDiv);
	testDiv.style.WebkitOverflowScrolling = 'touch';
	var isScrollSupported = 'getComputedStyle' in window && window.getComputedStyle(testDiv)['-webkit-overflow-scrolling'] === 'touch';
	document.documentElement.removeChild(testDiv);

	if (isScrollSupported) {
		enable();
	}

	// A module to support enabling/disabling iNoBounce
	var iNoBounce = {
		enable: enable,
		disable: disable,
		isEnabled: isEnabled,
		isScrollSupported: isScrollSupported
	};

	if ( true && module.exports) {
		// Node.js Support
		module.exports = iNoBounce;
	}
	if (typeof global.define === 'function') {
		// AMD Support
		(function(define) {
			define('iNoBounce', [], function() { return iNoBounce; });
		}(global.define));
	}
	else {
		// Browser support
		global.iNoBounce = iNoBounce;
	}
}(this));
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(605);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_517c5df6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1204);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3240)
  __webpack_require__(3242)
  __webpack_require__(3245)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-517c5df6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_517c5df6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_517c5df6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fms_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3241);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("199641f7", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body.modal-open{position:fixed;width:100%}.van-overlay{background-color:rgba(0,0,0,.5)}.home .swiper-pagination-bullet{width:6px;height:6px;background:#fff;opacity:.6}.home .swiper-pagination-bullet-active{width:16px;height:6px;border-radius:4px;background:#fff;opacity:1}.home .swiper-container .swiper-pagination-bullets{bottom:0}.home .van-notice-bar{padding:0;width:100%;height:1rem;line-height:1rem}.home .van-notice-bar .van-notice-bar__content{font-size:13px}.home .middlePopup.mint-popup-bottom{width:100%!important;height:auto;padding-bottom:.5rem}.home .middlePopup.mint-popup-bottom .content{padding:0;width:100%;height:100%;display:block!important}.home .middlePopup.mint-popup-bottom .content .live-title{height:2.75rem;background:#f6f6f6;border-radius:.4rem .4rem 0 0;text-align:center;color:#333;font:700 16px/2.75rem PingFangSC-Semibold;position:relative}.home .middlePopup.mint-popup-bottom .content .live-wrap{min-height:16rem;max-height:20rem;overflow-y:auto}.home .middlePopup.mint-popup-bottom .content .live-title span{position:absolute;top:0;right:0;height:2.75rem;padding:0 .8rem;color:#666;font:14px/2.75rem PingFangSC-Regular}.home .ad-Popup{width:14rem;height:16.6rem;border-radius:.5rem;background:none}.home .ad-Popup .close{padding:.25rem;position:absolute;top:-2.4rem;right:-1.05rem;margin-left:-26px}.home .ad-Popup .close img{width:1.6rem;height:1.6rem}.home .ad-Popup .pop-ad{width:100%;height:100%}.home .ad-Popup .pop-ad>img{width:100%;height:100%;border-radius:.5rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3243);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1bf1e862", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-517c5df6]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.quickBox[data-v-517c5df6]{padding:1rem 1rem .5rem;overflow-y:auto}.quickBox>p[data-v-517c5df6]{color:#333;font:24px/1.2rem PingFangSC-Regular}.quickBox .popBox .quick-item[data-v-517c5df6]{background:#fff;padding:.8rem 0;border-radius:8px 8px 0 0;font-size:0;border-bottom:1px solid #eee}.quickBox .popBox .quick-item.only-one[data-v-517c5df6]{border-radius:8px!important;border:none}.quickBox .popBox .quick-item.quick-item2[data-v-517c5df6]{border:none;border-radius:0 0 8px 8px}.quickBox .popBox .quick-item li[data-v-517c5df6]{display:inline-block;vertical-align:top;width:25%;margin-top:1.2rem;box-sizing:border-box;text-align:center;clear:left}.quickBox .popBox .quick-item li.limt-four[data-v-517c5df6]{margin-top:0}.quickBox .popBox .quick-item li img[data-v-517c5df6]{display:inline-block;width:2.4rem;height:2.4rem;border:1px solid #e6e6e6;border-radius:8px;overflow:hidden}.quickBox .popBox .quick-item li p[data-v-517c5df6]{display:inline-block;margin-top:.25rem;width:3.5rem;color:#1c1c1c;height:1rem;font:16px/1rem PingFangSC-Regular}.loaddown[data-v-517c5df6]{position:absolute;left:50%;top:20%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:120px}.quickEnter[data-v-517c5df6]{position:relative;padding:1rem 0 0;min-height:14rem}.quickEnter .bg[data-v-517c5df6]{position:absolute;top:0;left:0;width:100%;height:11rem;background:-webkit-gradient(linear,left top,left bottom,from(#ff6c37),to(#dcc39e));background:linear-gradient(#ff6c37,#dcc39e);z-index:0;padding:.6rem .8rem}.quickEnter .inputBox[data-v-517c5df6]{position:relative;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem}.quickEnter .inputBox>span[data-v-517c5df6]{color:#fff;font:700 16px/1 PingFangSC-Regular;margin-right:.5rem}.quickEnter .name[data-v-517c5df6]{position:relative;z-index:2;color:#fff;padding-left:.8rem;margin-top:.4rem}.quickEnter .search-box[data-v-517c5df6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;z-index:2;background:#f2f2f2;border-radius:1rem;height:1.8rem;display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.quickEnter .search-box img[data-v-517c5df6]{height:.8rem;margin:0 .4rem 0 .8rem}.quickEnter .search-box input[data-v-517c5df6]{margin-left:.7rem;color:#666;font:14px/1 PingFangSC-Regular}.quickEnter .big-enter[data-v-517c5df6]{margin:.8rem .8rem 0;overflow:hidden;position:relative;z-index:3}.quickEnter .big-enter .big-item[data-v-517c5df6]{float:left;width:31%;border-radius:.3rem;box-sizing:border-box;margin-right:3.5%;background-repeat:no-repeat;background-size:100% 100%}.quickEnter .big-enter .big-item img[data-v-517c5df6]{width:100%;height:3.2rem}.quickEnter .big-enter .big-item p[data-v-517c5df6]{text-align:center;margin-top:.4rem;color:#fff;font:15px/1 PingFangSC-Regular}.quickEnter .big-enter .big-item span[data-v-517c5df6]{color:#fff;font:700 16px/1.1rem PingFangSC-Semibold;margin:.2rem 0 0 .5rem}.quickEnter .big-enter .big-item[data-v-517c5df6]:last-child{margin:0}.quickEnter .small-enter[data-v-517c5df6]{position:relative;z-index:1;margin:0 .4rem;overflow:hidden;background:#fff;margin-top:.6rem;border-radius:.2rem;padding-bottom:.2rem;box-shadow:0 1px 10px rgba(0,0,0,.2)}.quickEnter .small-enter .small-item[data-v-517c5df6]{width:20%;float:left;box-sizing:border-box;margin-top:.8rem;text-align:center}.quickEnter .small-enter .small-item img[data-v-517c5df6]{width:1.6rem;height:1.6rem}.quickEnter .small-enter .small-item .text[data-v-517c5df6]{margin-top:.2rem;font:13px/.9rem PingFangSC-Regular;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quickEnter .small-enter .small-item .text span[data-v-517c5df6]{display:inline-block;font:13px/.9rem PingFangSC-Regular;color:#333;max-width:94%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index_table>div[data-v-517c5df6]{padding:0}.liveBroad[data-v-517c5df6]{margin:.5rem .6rem 0;padding:.6rem;background:#f3f4f5;border-radius:.3rem}.liveBroad .tit[data-v-517c5df6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.liveBroad .tit i[data-v-517c5df6]{width:1rem;height:1rem;background:url(" + escape(__webpack_require__(1461)) + ") no-repeat;background-size:100% 100%}.liveBroad .tit span[data-v-517c5df6]{color:#333;font:700 16px/1.1rem PingFangSC-Regular;margin-left:3px}.liveBroad .tit p[data-v-517c5df6]{color:#666;font:12px/.8rem PingFangSC-Regular;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;margin-left:auto}.liveBroad .liveInfo[data-v-517c5df6]{margin-top:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.liveBroad .liveInfo img[data-v-517c5df6]{width:3.8rem;height:4.7rem;border-radius:.2rem;margin-right:.6rem}.liveBroad .liveInfo .right[data-v-517c5df6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.liveInfo .right p[data-v-517c5df6]{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333;font:700 17px/1.2rem PingFangSC-Regular;min-height:.4ren;margin-bottom:.8rem;margin-top:1px}.liveInfo .right div[data-v-517c5df6]{position:absolute;width:100%;height:1.6rem;left:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:space-between;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.liveInfo .right div span[data-v-517c5df6]:first-child{font:500 14px/1rem PingFangSC-Regular;color:#333}.liveInfo .right div span[data-v-517c5df6]:last-child{height:1.6rem;width:4.4rem;text-align:center;font:700 14px/1.6rem PingFangSC-Regular;color:#fff;background:#ff3f3f;border-radius:16px}.mes-wrap[data-v-517c5df6]{background:#fff;padding:.3rem .6rem}.mesBox[data-v-517c5df6]{position:relative;padding:.4rem .5rem;min-height:62px;background:#f3f4f5;border-radius:.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:space-between;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mesBox img.mes_bitmap[data-v-517c5df6]{position:absolute;top:0;left:0;width:100%;height:62px}.mesBox img.message[data-v-517c5df6]{width:2.2rem;height:auto;margin-right:14px}.mesBox ul[data-v-517c5df6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mesBox ul li[data-v-517c5df6]{color:#000;font:14px/20px PingFangSC-Regular;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:3px}.mesBox ul li[data-v-517c5df6]:first-child{margin:0}.mesBox ul li i[data-v-517c5df6]{display:inline-block;width:3px;height:3px;border-radius:50%;background:#333;position:relative;top:-4px;margin-right:3px}.mesBox div[data-v-517c5df6]{width:40px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mesBox div>span[data-v-517c5df6]{min-width:18px;height:18px;background:#ff3f3f;border-radius:18px;color:#fff;font:11px PingFangSC-Regular;line-height:18px;text-align:center;margin-left:auto}.mesBox div>span.big[data-v-517c5df6]{padding:0 5px}.swiper-box[data-v-517c5df6]{padding:0 .8rem;background:#fff}.swiper-one[data-v-517c5df6]{height:auto}.swiper-one img[data-v-517c5df6]{width:100%;height:4.5rem;border-radius:.3rem}.swiper-box .swiper-container[data-v-517c5df6]{border-radius:.3rem}.swiper-slide img[data-v-517c5df6]{width:100%;height:4.5rem}.ad-box[data-v-517c5df6]{padding:.4rem .8rem .6rem;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.ad-box .ad-item[data-v-517c5df6]{height:2.8rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:1px solid #dbdfe3;border-radius:.3rem;background:#fff;margin-right:.375rem;box-shadow:0 6px 6px 0 rgba(207,210,216,.32)}.ad-box .ad-item[data-v-517c5df6]:last-child{margin:0}.ad-box .ad-item img[data-v-517c5df6]{width:100%;height:100%;border-radius:.3rem}.chest[data-v-517c5df6]{position:fixed;width:7rem;height:2.1rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);bottom:66px;z-index:100}.chest img[data-v-517c5df6]{width:100%;height:100%;border-radius:1.4rem}.community-box[data-v-517c5df6]{height:2.2rem;background:#fff;margin-top:.4rem;position:relative}.community-box[data-v-517c5df6]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.community-box img[data-v-517c5df6]{float:left;width:4.4rem;height:2.2rem}.community-box .task-box[data-v-517c5df6]{float:right;margin-right:.6rem;height:1.4rem;width:4.7rem;border:1px solid #ff8447;margin-top:.4rem;box-sizing:border-box;border-radius:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.community-box .task-box img[data-v-517c5df6]{width:.8rem;height:.8rem;margin-right:.15rem}.community-box .task-box span[data-v-517c5df6]{color:#ff8447;font:700 13px/.9rem PingFangSC-Semibold}.tabBox[data-v-517c5df6]{position:relative;padding:0 .5rem;border-radius:.2rem}.tabBox .tit[data-v-517c5df6]{margin-top:.5rem;background:#fff;color:#ff6c37;font:16px/20px PingFangSC-Semibold;padding:.5rem .8rem .2rem}.tabBox>ul[data-v-517c5df6]{background:#fff;height:2.4rem;box-sizing:border-box;position:relative}.tabBox>ul[data-v-517c5df6]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.tabBox>ul.suctTop[data-v-517c5df6]{position:fixed;width:100%;left:0;top:0;z-index:1111}.tabBox>ul li[data-v-517c5df6]{float:left;margin-left:1.4rem;position:relative}.tabBox>ul li[data-v-517c5df6]:first-child{margin-left:.8rem}.tabBox>ul li span[data-v-517c5df6]{font:18px/2.4rem PingFangSC-Regular;color:#999}.tabBox>ul li.active span[data-v-517c5df6]{color:#177afa;font:700 22px/2.4rem PingFangSC-Regular}.tabBox>ul li.active[data-v-517c5df6]:after{position:absolute;content:\"\";width:.8rem;height:.2rem;border-radius:.1rem;background:#177afa;bottom:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.tabBox>ul .postBtn[data-v-517c5df6]{float:right;position:absolute;width:3.75rem;height:1.4rem;background:#f0f4fb;text-align:center;border-radius:.8rem;color:#177afa;font:600 14px/1.4rem PingFangSC-Semibold;right:.6rem;top:.5rem}.tabBox>ul .postBtn img[data-v-517c5df6]{margin-top:.2rem;width:1rem;height:1rem}.articleList[data-v-517c5df6]{padding:0 .8rem;background:#fff;position:relative}.articleList[data-v-517c5df6]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.articleList>div[data-v-517c5df6]:first-child{padding-top:.8rem}.articleList>div[data-v-517c5df6]{position:relative;padding-bottom:.8rem}.articleList>div.gzh p[data-v-517c5df6],.articleList>div.smallVideo p[data-v-517c5df6]{margin-right:5.95rem}.articleList>div.gzh img[data-v-517c5df6],.articleList>div.smallVideo .imgBox[data-v-517c5df6]{width:5.65rem;height:4.45rem;position:absolute;right:0;top:16px;border-radius:3px;-webkit-border-radius:3px}.articleList>div p.fms-title[data-v-517c5df6]{font-size:19px;color:#000;line-height:26px;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;font-family:PingFangSC-Regular}.articleList>div p.time[data-v-517c5df6]{font-size:12px;color:#999;margin-top:8px;line-height:16px;overflow:hidden}.articleList>div.gzh p.time[data-v-517c5df6]{margin-top:.75rem}.articleList>div p.time span[data-v-517c5df6]{font-size:12px;font-family:PingFangSC-Regular;line-height:16px;float:left;color:#999;margin-right:5px;margin-bottom:3px}.articleList>div.gzh[data-v-517c5df6],.articleList>div.smallVideo[data-v-517c5df6]{min-height:6.05rem;padding-bottom:12px;overflow:hidden}.articleList>div.gzh p.fms-title[data-v-517c5df6],.articleList>div.smallVideo p.fms-title[data-v-517c5df6]{min-height:2.65rem}.articleList>div.jdwd ul[data-v-517c5df6]{overflow:hidden;margin-top:.4rem;height:4.45rem}.articleList>div.jdwd li[data-v-517c5df6]{margin-left:1%;float:left;width:32.5%;height:4.45rem;text-align:center;border-radius:4px;-webkit-border-radius:4px}.articleList>div.jdwd li[data-v-517c5df6]:nth-child(3n-2){margin-left:0}.articleList>div.jdwd li img[data-v-517c5df6]{height:100%;max-width:100%;vertical-align:middle;border-radius:4px}.articleList>div>div[data-v-517c5df6]{margin-top:.4rem}.articleList>div.bigVideo div[data-v-517c5df6],.articleList>div.dkjc div[data-v-517c5df6]{width:100%;height:166px;text-align:center;line-height:120px;overflow:hidden;position:relative;border-radius:4px;-webkit-border-radius:4px}.articleList>div.bigVideo div img[data-v-517c5df6],.articleList>div.dkjc div img[data-v-517c5df6]{width:100%;height:166px;max-height:100%;max-width:100%}.articleList>div.bigVideo div img.play[data-v-517c5df6]{position:absolute;width:68px;height:68px;left:50%;top:50%;margin:-34px 0 0 -34px}.articleList>div p.time .tags[data-v-517c5df6]{border:1px solid #ff3f3f;height:14px;line-height:15px;padding:0 5px;margin-right:5px;color:#ff3f3f;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;border-radius:3px;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.articleList>div.smallVideo .imgBox img[data-v-517c5df6]:first-of-type{width:100%;height:100%}.articleList>div.smallVideo .imgBox img[data-v-517c5df6]:nth-of-type(2){width:35px;height:35px;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px}.live-box[data-v-517c5df6]{position:fixed;z-index:1000;background:-webkit-gradient(linear,left top,left bottom,from(#33b2fd),to(#177afa));background:linear-gradient(180deg,#33b2fd,#177afa);box-shadow:0 12px 24px 0 rgba(197,218,245,.33);bottom:6.3rem;right:.5rem;width:8.1rem;height:2.6rem;border-radius:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-transition:all .5s;transition:all .5s}.live-box.hide-live[data-v-517c5df6]{right:-1000px}.live-box img[data-v-517c5df6]{margin-left:.2rem;width:2.2rem;height:2.2rem;border-radius:100%}.live-box .right[data-v-517c5df6]{margin:0 .25rem 0 .4rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.live-box .right p[data-v-517c5df6]{display:inline-block;position:relative;color:#fff;font:700 15px/1.1rem PingFangSC-Semibold}.live-box .right p[data-v-517c5df6]:after{content:\"\";position:absolute;top:.2rem;right:-.9rem;width:.7rem;height:.7rem;background:url(" + escape(__webpack_require__(3244)) + ");background-size:100% 100%}.live-box .right .name[data-v-517c5df6]{color:#fff;font:13px/.65rem PingFangSC-Regular}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/liveBroad.900750d.gif";module.exports = __webpack_require__.p + "static/img/live-arr.9af7eef.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3246);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("23571d81", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".home[data-v-517c5df6]{width:100%;height:100%;overflow:hidden}.home #onscrollBox[data-v-517c5df6]{width:100%;height:100%;overflow-y:scroll;background:#f3f4f5;-webkit-overflow-scrolling:touch}@-webkit-keyframes roll-data-v-517c5df6{0%{-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}25%{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}50%{-webkit-transform:rotateY(1turn);transform:rotateY(1turn)}75%{-webkit-transform:rotateY(540deg);transform:rotateY(540deg)}to{-webkit-transform:rotateY(2turn);transform:rotateY(2turn)}}@keyframes roll-data-v-517c5df6{0%{-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}25%{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}50%{-webkit-transform:rotateY(1turn);transform:rotateY(1turn)}75%{-webkit-transform:rotateY(540deg);transform:rotateY(540deg)}to{-webkit-transform:rotateY(2turn);transform:rotateY(2turn)}}.bottomAdContainer[data-v-517c5df6]{width:2.6rem;height:2.6rem;position:fixed;z-index:999;right:.6rem;bottom:6.3rem;background-repeat:no-repeat;background-size:100%;text-align:center}.bottomAdContainer img[data-v-517c5df6]{width:2.6rem;height:2.6rem;-webkit-animation:roll-data-v-517c5df6 4s linear 1.5s 1;animation:roll-data-v-517c5df6 4s linear 1.5s 1}.bottomAdContainer .close[data-v-517c5df6]{width:19px;height:19px;background-image:url(" + escape(__webpack_require__(3247)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:-10px;right:-10px}.topAdContainer[data-v-517c5df6]{height:64px;background-color:#fff;border-bottom:5px solid #f2f2f2;box-sizing:content-box;position:relative}.topAdContainer .close[data-v-517c5df6]{width:12px;height:12px;background-image:url(" + escape(__webpack_require__(3248)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;left:12px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.topAdContainer .info[data-v-517c5df6]{height:100%;margin-left:35px;position:relative;overflow:hidden}.topAdContainer .info img[data-v-517c5df6]{width:44px;height:44px;position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.topAdContainer .info>div[data-v-517c5df6]{margin-left:56px}.topAdContainer .info>div p[data-v-517c5df6]:first-of-type{margin-top:8px;font-family:PingFangSC-Regular;font-size:18px;color:#353535}.topAdContainer .info>div p[data-v-517c5df6]:nth-of-type(2){font-family:PingFangSC-Regular;font-size:14px;color:#000}.topAdContainer .downloadBtn[data-v-517c5df6]{position:absolute;top:18px;right:12px;width:82px;height:28px;line-height:28px;background:#ee4545;border-radius:3px;font-family:PingFangSC-Regular;font-size:32rpx;color:#fff;letter-spacing:0;text-align:center}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/悬浮-关闭.1e946d7.png";module.exports = __webpack_require__.p + "static/img/关闭2.aaf38fe.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(115);
var _noticeBar = _interopRequireDefault(__webpack_require__(116));
var _vant = __webpack_require__(12);
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _footTab = _interopRequireDefault(__webpack_require__(176));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _inobounce = _interopRequireDefault(__webpack_require__(3249));
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import { swiper, swiperSlide } from 'vue-awesome-swiper'
// require('swiper/dist/css/swiper.css')
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    footTab: _footTab.default
  }, _noticeBar.default.name, _noticeBar.default), _popup.default.name, _popup.default),
  data: function data() {
    return {
      showModal: '',
      // 弹窗是否展开
      isHome: true,
      showMore: true,
      quickList: [],
      coreQuickList: [],
      pages: 1,
      fmsList: [],
      loadMore: false,
      homePageInfo_course: [],
      // 直播课程
      homePageInfo_course_text: '',
      homePageInfo_mesList: [],
      // 首页消息列表
      homePageInfo_mesNum: 0,
      // 首页消息数
      reserveFlag: false,
      // tab栏是否显示预约角标
      tabIndex: 1,
      tabTop: 0,
      // tab区域距离顶部距离
      isSuctTop: false,
      // tab是否吸顶
      adSwiper: null,
      cardAdvert: [],
      // 卡片广告区域
      carouselAdvert: [],
      // 轮播广告区域
      chestData: {
        falg: true
      },
      // 宝箱数据
      popAdInfo: {},
      // 弹窗广告数据
      showPopAd: false,
      // 是否显示弹窗广告
      userStatus: 0,
      // 用户状态
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      scrollTop: 0,
      topAdInfo: '',
      // 顶部广告模块内容
      bottomAdInfo: null,
      showBottomAd: true,
      showTopAd: true,
      isClosePopAd: sessionStorage.getItem('isClosePopAd'),
      // 是否关闭了首页弹窗
      mescroll: null,
      fedrequestMode: 1,
      // 请求方式 1：首次打开 2：下拉刷新 3：翻页 ,
      topModal: false,
      // 顶部modal
      showPublish: false,
      // 发帖的弹窗
      versionMoreThan5: false,
      // app版本号大于等于5.0, 微信端则默认是true
      hideLiveInfo: false,
      // 是否隐藏直播悬浮框
      scrollEnd: true,
      timer: null,
      showLivePop: false,
      // 多个直播时显示弹窗,
      showPop: false,
      queickList: [],
      userInfo: JSON.parse(localStorage.getItem('userInfo')),
      keyWord: ''
    };
  },
  watch: {
    scrollTop: function scrollTop(newval, oldval) {
      // console.log(newval + '---' +  this.tabTop)
      if (newval >= this.tabTop) {
        this.isSuctTop = true;
      } else {
        this.isSuctTop = false;
      }
    },
    showLivePop: function showLivePop(val) {
      if (val) {
        if (this._Util.isIOS) {
          _inobounce.default.enable();
        }
      } else {
        _inobounce.default.disable();
      }
    },
    scrollEnd: function scrollEnd(val) {
      this.updateLive(val);
    },
    showPop: function showPop(nval) {
      if (nval) {
        this.ModalHelper.afterOpen();
      } else {
        this.ModalHelper.beforeClose();
      }
    }
  },
  beforeDestroy: function beforeDestroy() {
    (0, _jquery.default)('#swiperCss').remove();
    (0, _jquery.default)('#swiperJs').remove();
    this.mescroll.destroy();
    _inobounce.default.disable();
  },
  created: function created() {
    // 从哪个tab跳转到详情页再返回后需要记住tab的索引
    var tabIndex = sessionStorage.getItem('tabIndex') || 1;
    this.tabIndex = Number(tabIndex) || 1;
    // if (sessionStorage.getItem('tabIndex')) {
    //   sessionStorage.removeItem('tabIndex')
    // }
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that, showTopAd, showBottomAd, _version, job, i, client_h;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            that = _this;
            _this.getQueickList();
            // const windowH = $(window).height()
            // $('.tabCont').css({ // 设置各个tab区域的最小高度，防止点击切换时页面跳动
            //   'min-height': windowH
            // })
            // 添加swiper
            // const headDom = $('head')
            // const bodyDom = $('body')
            // headDom.append('<link id="swiperCss" rel="stylesheet" href="https://static1.kaxiuyun.com/swiper3/swiper.min.css">')
            // bodyDom.append('<script id="swiperJs" src="https://static1.kaxiuyun.com/swiper3/swiper.min.js"><\/script>')
            // 监控页面跳转事件
            window.onbeforeunload = function () {
              setTimeout(function () {
                _inobounce.default.disable();
                (0, _jquery.default)('#swiperCss').remove();
                (0, _jquery.default)('#swiperJs').remove();
              });
            };
            _this.mescroll = new _mescroll.default(_this.$refs.mescroll1, {
              down: {
                use: true,
                callback: _this.refresh,
                auto: false
              },
              up: {
                callback: _this.upFn,
                auto: false,
                isBounce: false,
                page: {
                  num: 0,
                  // 当前页 默认0,回调之前会加1; 即callback(page)会从1开始
                  size: 10 // 每页数据条数,默认10
                },
                onScroll: function onScroll(mescroll, y, isUp) {
                  that.scrollTop = y;
                  that.scrollEnd = false;
                  that.timer = setTimeout(that.scrollEndFn, 500);
                },
                // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
                htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
                noMoreSize: 5,
                // 如果列表已无数据,可设置列表的总数量要大于5才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
                empty: {
                  // 列表第一页无任何数据时,显示的空提示布局; 需配置warpId才显示
                  warpId: 'hostList',
                  // 父布局的id (1.3.5版本支持传入dom元素)
                  tip: '暂无相关数据~' // 提示
                }
              }
            });
            // 防止滚动穿透
            that.ModalHelper = function (bodyCls) {
              var scrollTop;
              return {
                afterOpen: function afterOpen() {
                  scrollTop = document.scrollingElement ? document.scrollingElement.scrollTop : document.body.scrollTop;
                  document.body.classList.add(bodyCls);
                  document.body.style.top = -scrollTop + 'px';
                },
                beforeClose: function beforeClose() {
                  document.body.classList.remove(bodyCls);
                  // scrollTop lost after set position:fixed, restore it back.
                  if (document.scrollingElement) {
                    document.scrollingElement.scrollTop = scrollTop;
                  } else {
                    document.body.scrollTop = scrollTop;
                  }
                }
              };
            }('modal-open');
            // 从 sessionStorage中判断 用户是否关闭了顶部广告
            showTopAd = sessionStorage.getItem('showTopAd');
            if (showTopAd === 'close') _this.showTopAd = false;
            // 从 sessionStorage中判断 用户是否关闭了底部广告
            showBottomAd = sessionStorage.getItem('showBottomAd');
            if (showBottomAd === 'close') _this.showBottomAd = false;

            // this.getAdInfo();
            // this.getBottomAd()
            // this.getPopAdInfo()
            setTimeout(function () {
              that.isApp = !!_this._Util.isApp() || _this._Util.isMPaaS();
            }, 200);
            if (!_this._Util.isApp()) {
              _context.next = 2;
              break;
            }
            _context.next = 1;
            return _this.getAppVer();
          case 1:
            _version = _context.sent;
            _this.versionMoreThan5 = _this.compareVersion(_version);
          case 2:
            // 返回定位页面滚动位置
            if (localStorage.getItem('onScrollFlag') && localStorage.getItem('onScrollFlag') == 1) {
              job = JSON.parse(localStorage.getItem('fmsList'));
              if (localStorage.getItem('loadMore')) {
                that.loadMore = true;
              }
              for (i = 0; i < job.length; i++) {
                job[i] = JSON.parse(job[i]);
              }
              that.fmsList = job;
              that.pages = localStorage.getItem('fmsPages');
              setTimeout(function () {
                (0, _jquery.default)('#onscrollBox').scrollTop(localStorage.getItem('onScroll'));
                localStorage.setItem('onScroll', 0);
                localStorage.setItem('onScrollFlag', 0);
                localStorage.setItem('fmsList', '');
              }, 200);
            } else {
              // setTimeout(() => {
              //   this.getHomePageInfo('onload', () => {
              //     this.mescroll.resetUpScroll()
              //   })
              // }, 300)
              _this.mescroll.resetUpScroll();
            }
            that.getQuickList();
            // that.share()
            // this.getHomePageAdList()
            // this.getChestData()
            /* 解决安卓手机搜索框获取焦点时底部导航栏浮在键盘上方的问题*/
            if (!that._Util.isIOS) {
              client_h = document.documentElement.clientHeight;
              window.onresize = function () {
                var body_h = document.body.scrollHeight;
                if (body_h < client_h) {
                  (0, _jquery.default)('.footTab').css('position', 'static');
                } else {
                  (0, _jquery.default)('.footTab').css('position', 'fixed');
                }
              };
            }
          case 3:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  updated: function updated() {
    this.tabTop = document.getElementById('tabBox').offsetTop;
  },
  methods: {
    /**
      * 获取快捷查找入口列表
    */
    getQueickList: function getQueickList() {
      var _this2 = this;
      this._Util.post(this._Api.CORPUS.GET_QUICK_LIST, {
        terminalType: '2'
      }, function (data) {
        if (data.quickClassifyList) {
          _this2.queickList = data.quickClassifyList;
        }
      }, function () {}, this);
    },
    /**
      * 防止直播弹窗在ios上出现抖动
      * @param {Bollean} flag
    */
    updateLive: (0, _throttleDebounce.debounce)(200, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(val) {
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              this.hideLiveInfo = !val;
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    closePopAd: function closePopAd() {
      this.showPopAd = false;
      sessionStorage.setItem('isClosePopAd', 1);
    },
    /**
      * 页面滚动完毕
    */
    scrollEndFn: function scrollEndFn() {
      var scrollTop = document.getElementById('onscrollBox').scrollTop;
      clearTimeout(this.timer);
      if (scrollTop === this.scrollTop) {
        // this.hideLiveInfo = false
        this.scrollEnd = true;
        this.timer = null;
      }
    },
    /**
      * 动态配置mescroll组件上拉加载的函数
    */
    upFn: function upFn(page) {
      if (this.tabIndex === 1) {
        this.getFmsList(page);
      } else if (this.tabIndex === 2) {
        if (sessionStorage.getItem('tabIndex')) {
          sessionStorage.removeItem('tabIndex');
          return;
        }
        this.$refs.articleList.changeTab('hot', true, true);
      } else {
        if (sessionStorage.getItem('tabIndex')) {
          sessionStorage.removeItem('tabIndex');
          return;
        }
        this.$refs.articleList.changeTab('new', true, true);
      }
    },
    /**
      * 下拉刷新回调
    */
    refresh: function refresh() {
      var _this3 = this;
      this.getHomePageInfo('refresh');
      if (this.tabIndex === 1) {
        this.mescroll.resetUpScroll();
        this.fedrequestMode = 2;
      } else if (this.tabIndex === 2) {
        this.$refs.articleList.changeTab('hot', true, true);
        setTimeout(function () {
          _this3.mescroll.endSuccess(10);
        }, 300);
      } else {
        this.$refs.articleList.changeTab('new', true, true);
        setTimeout(function () {
          _this3.mescroll.endSuccess(10);
        }, 300);
      }
    },
    /**
      * 获取首页信息 (直播，消息，模块，角标)
    */
    getHomePageInfo: function getHomePageInfo(type, callBack) {
      var _this4 = this;
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.POST_GET_HOME_PAGE_INFO, {
        versionType: 1
      }, function (data) {
        that.homePageInfo_course = data.courseList || [];
        if (that.homePageInfo_course.length) {
          var tempArr = [];
          tempArr = that.homePageInfo_course.map(function (item) {
            return item.courseName;
          });
          _this4.homePageInfo_course_text = tempArr.join(', ');
        }
        that.homePageInfo_mesList = data.messageList ? data.messageList : [];
        that.homePageInfo_mesNum = data.messageNum || 0;
        var tab = JSON.parse(sessionStorage.getItem('_repairActiveTab_')); // 发帖之后返回该页面定位到最新你tab
        if (tab && tab.activeTab === 'new') {
          _this4.tabIndex = 3;
          sessionStorage.removeItem('_repairActiveTab_');
          _this4.$refs.articleList.changeTab('new', null, true);
          return;
        }
        // 如果子组件缓存了数据，那么不需要再请求数据
        if (sessionStorage.getItem('fmsChildSaveFlag')) {
          sessionStorage.removeItem('fmsChildSaveFlag');
          return;
        }
        if (that._Util.isMPaaS && !localStorage.getItem('app-token')) {
          // mapss下打开页面默认打开最热tab
          that.tabIndex = 1;
        } else {
          if (type !== 'refresh' && !sessionStorage.getItem('tabIndex')) {
            that.tabIndex = data.moduleType !== null ? data.moduleType + 1 : 1;
          }
        }
        callBack && callBack();
      }, function () {}, that, true);
    },
    /**
      * 获取首页广告位数据（轮播，及二分之一广告）
    */
    getHomePageAdList: function getHomePageAdList() {
      var _this5 = this;
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.POST_GET_HOME_PAGE_AD_LIST, {}, function (data) {
        if (data) {
          _this5.cardAdvert = data.data.cardAdvertPostionList || [];
          _this5.carouselAdvert = data.data.carouselAdvertPostionList || [];
          if (_this5.carouselAdvert.length > 1) {
            setTimeout(function () {
              if (_this5.adSwiper) {
                _this5.adSwiper.destroy(true);
                return;
              }
              _this5.adSwiper = new Swiper('#swiper-container1', {
                pagination: {
                  el: '#swiper-container1 .swiper-pagination'
                },
                spaceBetween: 10,
                autoplay: {
                  delay: 3000,
                  stopOnLastSlide: false,
                  disableOnInteraction: false
                },
                loop: true,
                observer: true,
                observeParents: true
                // disableOnInteraction: false
              });
            }, 1000);
          }
        }
      }, function () {}, that, true);
    },
    /**
      * 获取宝箱数据
    */
    getChestData: function getChestData() {
      var _this6 = this;
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.GET_CHEST_DATA, {}, function (data) {
        if (data) {
          _this6.chestData = data;
        }
      }, function () {}, that, true);
    },
    /**
      * 点击开宝箱
    */
    openChest: function openChest() {
      this.toTaskCenter();
    },
    /**
      * 点击任务中心
    */
    toTaskCenterFn: function toTaskCenterFn() {
      this.toTaskCenter();
    },
    /**
      * 点击快捷分类
    */
    openQuickEnter: function openQuickEnter(item, type, index, type1) {
      // 进入快捷入口
      sessionStorage.setItem('tabIndex', this.tabIndex);
      localStorage.setItem('onFeedScrollFlag', 0);
      if (item.name === '资料大全') {
        this.showPop = true;
        return;
      }
      location.href = item.url;
    },
    /**
     * 点击搜索框跳转到资料大全页
    */
    goSearchPage: function goSearchPage() {
      if (!this.keyWord.trim()) {
        (0, _mintUi.Toast)({
          message: '请输入搜索内容'
        });
        return;
      }
      sessionStorage.setItem('tabIndex', this.tabIndex);
      localStorage.setItem('resultScrollTop', 0);
      localStorage.setItem('resultScrollFlag', 0);
      localStorage.setItem('resultList', '');
      localStorage.setItem('resultPages', 1);
      this.$router.push({
        name: 'appSearchResultNew',
        query: {
          folderid: 0,
          keyword: this.keyWord,
          title: '全部'
        }
      });
    },
    /**
      * 前往消息中心
    */
    toMesCenter: function toMesCenter() {
      sessionStorage.setItem('tabIndex', this.tabIndex);
      location.href = location.origin + '/repair/common/messageList';
    },
    /**
     * 点击顶部广告链接跳转到广告页面
    */
    goTopUrl: function goTopUrl(url) {
      sessionStorage.setItem('tabIndex', this.tabIndex);
      window.location.href = url;
    },
    /**
     * 点击底部广告链接跳转到广告页面
    */
    goBottomUrl: function goBottomUrl(url, adObj) {
      sessionStorage.setItem('tabIndex', this.tabIndex);
      window.location.href = url;
    },
    /**
     * 关闭底部广告位
    */
    closeBottomAd: function closeBottomAd() {
      this.showBottomAd = false;
      sessionStorage.setItem('showBottomAd', 'close');
    },
    /**
     * 关闭顶部广告位
    */
    closeTopAd: function closeTopAd() {
      this.showTopAd = false;
      sessionStorage.setItem('showTopAd', 'close');
    },
    /**
     * 获取底部广告位信息
    */
    getBottomAd: function getBottomAd() {
      var _this7 = this;
      this._Util.post(this._Api.POST_FMS_BOTTOMAD, {
        signType: 6
      }, function (data) {
        _this7.bottomAdInfo = data;
      }, function () {}, this);
    },
    /**
     * 获取快捷分类
     */
    getQuickList: function getQuickList() {
      var that = this;
      that._Util.post(that._Api.NEWHOST + 'common-api/app/getHomePageQuickList.json', {
        terminalType: '2',
        versionType: 5.2
      }, function (data) {
        if (data) {
          var _data = data;
          that.coreQuickList = _data.coreQuickClassifyList || [];
          that.quickList = _data.routineQuickClassifyList || [];
        }
      }, function () {}, that, true);
    },
    /**
     * 获取fms数据集合
     * @param {Object} page mescroll对象回调返回的页码对象
     */
    getFmsList: function getFmsList(page) {
      var that = this;
      if (page.num > 1) {
        that.fedrequestMode = 3;
      }
      that.pages = page.num;
      var params = {
        pageSize: 20,
        pageNum: page.num,
        platform: that._Util.isIOS ? 'ios' : 'android',
        requestMode: that.fedrequestMode
      };
      that._Util.post(that._Api.NEWHOST + 'common-api/feeds.json', params, function (data) {
        if (data && data.length > 0) {
          that.loadMore = true;
          if (page.num === 1) {
            that.fmsList = [];
          }
          that.fmsList = that.fmsList.concat(data);
          that.$nextTick(function () {
            that.mescroll.endSuccess(data.length);
          });
        }
      }, function () {
        that.mescroll.endErr();
      }, that, true);
    },
    /**
     * 获取fed流url
    */
    getFedUrl: function getFedUrl(fedIndex, fedItem) {
      var that = this;
      that._Util.post(that._Api.HOST + 'common-api/fmsContent/getFmsUrl.json', {
        fmsId: fedItem.fmsId,
        platform: that._Util.isIOS ? 'ios' : 'android',
        pageNum: that.pages,
        arithmeticModel: fedItem.arithmeticModel
      }, function (data) {
        console.log(data);
        that.articleGo(fedIndex, fedItem, data.url);
      }, function () {}, that, true);
    },
    /**
      * 获取直播预约列表
    */
    getBroadcastList: function getBroadcastList(callBack) {
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.POST_GET_BROAD_LIST, {}, function (data) {
        if (data) {
          that.notStartList = data.notStartList ? data.notStartList : [];
          that.enjoyStatus = data.enjoyStatus;
          that.viewerId = data.viewerId;
          callBack && callBack();
        }
      }, function () {}, that);
    },
    /**
     * 打开广告
       * @param {Object}: adObj  广告内容
       * @param {Number}: type  广告类型
     */
    toAdDetail: function toAdDetail(adObj, type) {
      sessionStorage.setItem('tabIndex', this.tabIndex);
      location.href = adObj.advertUrl;
    },
    /**
     * 配置分享信息
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        _weixinJsSdk.default.config({
          debug: false,
          appId: data.appId,
          timestamp: data.timestamp,
          nonceStr: data.nonceStr,
          signature: data.signature,
          jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        _weixinJsSdk.default.ready(function () {
          var shareContent = {
            title: '卡修宝典资讯中心',
            desc: '丰富的商用车前沿行业资讯及视频',
            link: location.origin + '/v2/fms',
            imgUrl: 'http://static1.kaxiuyun.com/kxy_log.jpg',
            success: function success() {},
            cancel: function cancel() {}
          };
          _weixinJsSdk.default.onMenuShareTimeline(shareContent);
          _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
          _weixinJsSdk.default.onMenuShareQQ(shareContent);
          _weixinJsSdk.default.onMenuShareWeibo(shareContent);
        });
      }, function () {}, that, true);
    },
    /**
     * 点击fed流跳转
     */
    articleGo: function articleGo(index, item, fmsUrl) {
      var that = this;
      sessionStorage.setItem('tabIndex', this.tabIndex);
      // that.$router.replace({name:'fms',query:{onScroll:that.getScrollTop(),page:that.pages}});
      var url = '';
      if (fmsUrl.indexOf('mp.weixin.qq.com') != -1 && fmsUrl.indexOf('&scene=4#wechat_redirect') == -1) {
        if (fmsUrl.indexOf('?') != -1) {
          url = fmsUrl + '&scene=4#wechat_redirect';
        } else {
          url = fmsUrl + '?id=a&scene=4#wechat_redirect';
        }
      } else {
        if (item.subject) {
          url = fmsUrl + '&subject=' + item.subject;
        } else {
          url = fmsUrl;
        }
      }
      index = index + 1;
      var v = null;
      var page = null;
      v = index / 20;
      var p = parseInt(v);
      if (v > p) {
        page = p + 1;
      } else {
        page = p;
      }
      var num = index > 20 ? index % 20 : index;
      localStorage.setItem('onScroll', document.getElementById('onscrollBox').scrollTop);
      localStorage.setItem('onScrollFlag', 1);
      localStorage.setItem('fmsPages', that.pages);
      localStorage.setItem('loadMore', that.loadMore);
      var arr = [];
      var _iterator = _createForOfIteratorHelper(that.fmsList),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var _item = _step.value;
          arr.push(JSON.stringify(_item));
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      localStorage.setItem('fmsList', JSON.stringify(arr));
      location.href = url;
    },
    /**
     * 监控弹窗关闭打开
     */
    homeModal: function homeModal(res) {
      this.showModal = res;
      if (res === 'open') {
        document.querySelector('#onscrollBox').style.position = 'fixed';
        document.querySelector('#onscrollBox').style.overflowY = 'hidden';
        this.mescroll.lockDownScroll(true);
      } else {
        document.querySelector('#onscrollBox').style.position = 'relative';
        document.querySelector('#onscrollBox').style.overflowY = 'auto';
        this.mescroll.lockDownScroll(false);
      }
    },
    /**
     * 正则替换数字高亮
     * @param(content): 需要替换的内容
     */
    highLight: function highLight(content) {
      var reg = /\d+/;
      return content.replace(reg, function (match, param) {
        return ' <span style="color: #EE4545;font-size: 14px;" >' + match + '</span> ';
      });
    },
    /**
     * 前往社区任务中心
     */
    toTaskCenter: function toTaskCenter() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'taskCenter',
            url: location.origin + '/v2/community/taskCenter'
          }
        });
      } else {
        this.$router.push({
          name: 'taskCenter'
        });
      }
    },
    /** 发帖按钮逻辑 */publishBtn: function publishBtn() {
      this.showPublish = true;
    },
    /** 发帖 */postMessage: function postMessage() {
      var that = this;
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpImg'
        });
      } else {
        that.$router.push({
          name: 'communityWxpost'
        });
      }
      that.showPublish = false;
    },
    /** 发视频 */postVideo: function postVideo() {
      var that = this;
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenUpVideo'
        });
        that.showPublish = false;
      } else {
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: '很抱歉，因微信功能限制，发视频需要在卡修宝典App内操作。',
          closeOnClickModal: true,
          confirmButtonText: '立即下载卡修宝典App'
        }).then(function (action) {
          if (action === 'confirm') {
            location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.y1990218899.nvb';
          }
        });
      }
    },
    /* 发案例*/postCase: function postCase() {
      var that = this;
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'repairQuestionnaire',
            url: location.origin + '/v2/repairQuestionnaire',
            notGive: true
          }
        });
      } else {
        that.$router.push({
          name: 'repairQuestionnaire'
        });
      }
      that.showPublish = false;
    },
    /**
     * 获取app版本号
     */
    getAppVer: function getAppVer() {
      var _this8 = this;
      if (this._Util.isApp()) {
        return new Promise(function (resolve, reject) {
          if (_this8.version) {
            resolve(_this8.version);
          } else {
            api.getPrefs({
              // 接收apicloud传递过来的版本号
              key: 'version'
            }, function (ret, err) {
              if (ret.value) {
                resolve(ret.value);
              } else {
                reject();
              }
            });
          }
        });
      }
    },
    /**
     * 比较版本号,如果当前app版本大于等于预期的最小版本，则返回true
     * @param{appVer}: app的版本号
     */
    compareVersion: function compareVersion(appVer) {
      var limitVer = '5.0.0';
      var appVerArr = appVer.split('.');
      var limitVerArr = limitVer.split('.');
      var loopLength = Math.min(appVerArr.length, limitVerArr.length);
      var result = null;
      for (var i = 0; i < loopLength; i++) {
        if (appVerArr[i] < limitVerArr[i]) {
          result = false;
          break;
        } else if (appVerArr[i] == limitVerArr[i]) {
          result = true;
          continue;
        } else {
          result = true;
          break;
        }
      }
      return result;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"home"},[_c('div',{ref:"mescroll1",staticClass:"mescroll",attrs:{"id":"onscrollBox"}},[_c('div',{staticClass:"quickEnter"},[_c('div',{staticClass:"bg"}),_vm._v(" "),_c('div',{staticClass:"inputBox"},[_c('span',[_vm._v("卡修宝典")]),_vm._v(" "),_c('div',{staticClass:"search-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyWord),expression:"keyWord"}],attrs:{"type":"text","placeholder":"海量资料，一键查询"},domProps:{"value":(_vm.keyWord)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value}}}),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(1408),"alt":""},on:{"click":function($event){return _vm.goSearchPage(true)}}})])]),_vm._v(" "),(_vm.userInfo && _vm.userInfo.uname)?_c('p',{staticClass:"name"},[_vm._v("Hi!, "+_vm._s(_vm.userInfo.uname))]):_vm._e(),_vm._v(" "),(_vm.quickList.length)?_c('div',{staticClass:"big-enter"},_vm._l((_vm.coreQuickList),function(item,index){return _c('div',{key:index,staticClass:"big-item",on:{"click":function($event){return _vm.openQuickEnter(item, 'quickEnterance', index, 'big')}}},[_c('img',{attrs:{"src":item.imgPath,"alt":""}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name))])])}),0):_vm._e(),_vm._v(" "),(_vm.quickList.length)?_c('div',{staticClass:"small-enter"},_vm._l((_vm.quickList.slice(0, 10)),function(item,index){return _c('div',{key:index,staticClass:"small-item",on:{"click":function($event){return _vm.openQuickEnter(item, 'quickEnterance', index, 'samll')}}},[_c('img',{attrs:{"src":item.imgPath,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"text"},[_c('span',[_vm._v(_vm._s(item.name))])])])}),0):_vm._e()]),_vm._v(" "),(_vm.carouselAdvert.length && _vm.carouselAdvert.length > 1)?_c('div',{staticClass:"swiper-box"},[_c('div',{staticClass:"swiper-container swiper-container1",attrs:{"id":"swiper-container1"}},[_c('div',{staticClass:"swiper-wrapper"},_vm._l((_vm.carouselAdvert),function(item,index){return _c('div',{key:index,staticClass:"swiper-slide",on:{"click":function($event){return _vm.toAdDetail(item, '首页轮播')}}},[_c('img',{attrs:{"src":item.advertImg,"alt":""}})])}),0),_vm._v(" "),(_vm.carouselAdvert.length > 1)?_c('div',{staticClass:"swiper-pagination"}):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.carouselAdvert.length && _vm.carouselAdvert.length === 1)?_c('div',{staticClass:"swiper-box swiper-one",on:{"click":function($event){return _vm.toAdDetail(_vm.carouselAdvert[0], '首页轮播')}}},[_c('img',{attrs:{"src":_vm.carouselAdvert[0].advertImg,"alt":""}})]):_vm._e(),_vm._v(" "),(_vm.cardAdvert.length)?_c('div',{staticClass:"ad-box"},_vm._l((_vm.cardAdvert),function(item,index){return _c('div',{key:index,staticClass:"ad-item",on:{"click":function($event){return _vm.toAdDetail(item, '首页 二分式')}}},[_c('img',{attrs:{"src":item.advertImg,"alt":""}})])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"tabBox",attrs:{"id":"tabBox"}},[_c('p',{staticClass:"tit"},[_vm._v("精选案例")]),_vm._v(" "),(_vm.tabIndex === 1)?_c('div',{staticClass:"fmsBox tabCont"},[(_vm.fmsList.length > 0)?_c('div',_vm._l((_vm.fmsList),function(o,index){return _c('div',{key:o.fmsId,staticClass:"articleList hairline",on:{"click":function($event){return _vm.getFedUrl(index,o)}}},[(o.type === 1 && o.contentShape !== 1)?_c('div',{staticClass:"gzh"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labels),function(tag,i){return _c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))])}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2),_vm._v(" "),_c('img',{attrs:{"src":o.imgPaths + '?imageView2/1/w/300/h/160',"alt":""}})]):_vm._e(),_vm._v(" "),(o.type === 1 && o.contentShape === 1)?_c('div',{staticClass:"smallVideo"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labels),function(tag,i){return _c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))])}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2),_vm._v(" "),_c('div',{staticClass:"imgBox"},[_c('img',{attrs:{"src":o.imgPaths + '?imageView2/1/w/300/h/160',"alt":""}}),_vm._v(" "),_c('img',{staticClass:"play",attrs:{"src":__webpack_require__(170),"alt":""}})])]):_vm._e(),_vm._v(" "),(o.type === 3)?_c('div',{staticClass:"jdwd"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('ul',_vm._l((o.imgPaths),function(v,index2){return _c('li',{key:index2},[_c('img',{attrs:{"src":v + '?imageView2/1/w/300/h/160',"alt":""}})])}),0),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labels),function(tag,i){return _c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))])}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2)]):_vm._e(),_vm._v(" "),(o.type === 2 && o.contentShape !== 1)?_c('div',{staticClass:"dkjc"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('div',[_c('img',{attrs:{"src":o.imgPaths + '?imageslim',"alt":""}})]),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labels),function(tag,i){return _c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))])}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2)]):_vm._e(),_vm._v(" "),(o.type === 2 && o.contentShape === 1)?_c('div',{staticClass:"bigVideo"},[_c('p',{staticClass:"fms-title",domProps:{"innerHTML":_vm._s(o.title)}}),_vm._v(" "),_c('div',[_c('img',{attrs:{"src":o.imgPaths + '?imageslim',"alt":""}}),_vm._v(" "),_c('img',{staticClass:"play",attrs:{"src":__webpack_require__(170),"alt":""}})]),_vm._v(" "),_c('p',{staticClass:"time"},[_vm._l((o.labels),function(tag,i){return _c('span',{key:i,staticClass:"tags"},[_vm._v(_vm._s(tag))])}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.source)}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(o.showTime)}})],2)]):_vm._e()])}),0):_vm._e()]):_vm._e()]),_vm._v(" "),_c('footTab',{attrs:{"active-flag":"home"}})],1),_vm._v(" "),_c('van-popup',{staticClass:"quickBox mescroll-touch",style:({ height: '100%', width: '90%' }),attrs:{"position":"left"},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('p',[_vm._v("快捷查找")]),_vm._v(" "),_c('div',{staticClass:"popBox"},[_c('ul',{staticClass:"quick-item clearfix only-one"},_vm._l((_vm.queickList),function(item,index){return _c('li',{key:item.classifyId,class:{'limt-four': index < 4},on:{"click":function($event){return _vm.openItem(item, index, 'top')}}},[_c('img',{attrs:{"src":item.imgPath,"alt":"item.name"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name))])])}),0)])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_second_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(606);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_second_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_second_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_second_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_second_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e508bac_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_second_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1205);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3250)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2e508bac"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_second_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e508bac_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_second_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e508bac_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_second_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3251);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b4ac9742", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".getitNow[data-v-2e508bac]{width:50%;padding:10px 0;border-radius:5px;-webkit-border-radius:5px;background:#fb2044;color:#fff;margin:0 auto;text-align:center;font-size:18px;margin-top:20px}.slide-wrap[data-v-2e508bac]{width:100%;height:35px;line-height:35px;color:#fb2044;position:relative;overflow:hidden;margin-top:10px}.linear[data-v-2e508bac]{background-image:-webkit-gradient(linear,left top,left bottom,from(#fff9f3),to(#fff));background-image:linear-gradient(180deg,#fff9f3,#fff)}.slide-box[data-v-2e508bac]{position:absolute;width:100%;text-align:center;top:0}.slide-box>div[data-v-2e508bac]{width:100%;height:100%;font-size:16px;text-align:center}.nextBox[data-v-2e508bac]{background:url(" + escape(__webpack_require__(3252)) + ") 0 0 no-repeat;background-size:12px 17px;background-position:95%}.mask[data-v-2e508bac]{width:100%;height:100%;z-index:10;position:fixed;left:0;top:0;background:rgba(0,0,0,.6)}.redBox[data-v-2e508bac]{background:#fff;border-radius:5px;-webkit-border-radius:5px;width:95%;padding-top:20px;padding-bottom:10px;margin:0 auto;margin-top:50px;position:relative}.option-box[data-v-2e508bac]{width:90%;margin:0 auto;overflow:hidden}.option-box li[data-v-2e508bac]{width:49%;padding:7px 0;float:left;color:#666;font-size:16px;text-align:center;border:2px solid #ddd}.option-box li[data-v-2e508bac]:first-of-type{border-right:none;border-top-left-radius:4px;-webkit-border-top-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-bottom-left-radius:4px}.option-box li[data-v-2e508bac]:nth-of-type(2){border-left:none;border-top-right-radius:4px;-webkit-border-top-right-radius:4px;border-bottom-right-radius:4px;-webkit-border-bottom-right-radius:4px}.option-box .active[data-v-2e508bac]{background:#fb2044;color:#fff;border:2px solid #fb2044}.c-box[data-v-2e508bac]{background:#f6f6f6;max-height:300px;overflow:scroll;width:90%;margin:10px auto 0;padding-bottom:15px}.closeB[data-v-2e508bac]{width:30px;height:30px;position:absolute;right:-12px;top:-12px}#drawing[data-v-2e508bac]{width:90%;height:200px}.rules[data-v-2e508bac]{position:absolute;right:0;width:24px;text-align:center;background:rgba(0,0,0,.5);padding:5px 0;color:#fff;line-height:16px;border-top-left-radius:4px;-webkit-border-top-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-bottom-left-radius:4px;top:10px;z-index:8}.rulesBox[data-v-2e508bac]{background:#fff;border-radius:5px;width:90%;margin:50px auto 0;-webkit-border-radius:5px;padding-top:15px;padding-bottom:30px;position:relative}.saveImg[data-v-2e508bac]{width:50%;padding:10px 0;color:#fff;border:2px solid #fff;margin:0 auto;font-size:18px;text-align:center;border-radius:5px;-webkit-border-radius:5px}.rankBox[data-v-2e508bac]{width:90%;margin:0 auto;margin-top:7px}.rankList[data-v-2e508bac]{padding:5px 0;overflow:hidden}.rankList span[data-v-2e508bac]{float:left;font-size:16px;color:#333}.f1 span[data-v-2e508bac],.f2 span[data-v-2e508bac],.f3 span[data-v-2e508bac]{font-size:18px}.rankList span[data-v-2e508bac]:nth-of-type(2){float:right;margin-right:7px}.f1 span[data-v-2e508bac]:first-of-type{padding-left:25px;background:url(" + escape(__webpack_require__(3253)) + ") 0 0 no-repeat;background-size:17px 24px;background-position:0}.f2 span[data-v-2e508bac]:first-of-type{padding-left:25px;background:url(" + escape(__webpack_require__(3254)) + ") 0 0 no-repeat;background-size:17px 24px;background-position:0}.f3 span[data-v-2e508bac]:first-of-type{padding-left:25px;background:url(" + escape(__webpack_require__(3255)) + ") 0 0 no-repeat;background-size:17px 24px;background-position:0}.rankList .redC[data-v-2e508bac]{color:#fb2044}@media screen and (max-width:320px){.goWhere[data-v-2e508bac]{font-size:12px}}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/next.10330a1.png";module.exports = __webpack_require__.p + "static/img/f1.cd79628.png";module.exports = __webpack_require__.p + "static/img/f2.2c22c6f.png";module.exports = __webpack_require__.p + "static/img/f3.b023d3b.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      moneyResult: {},
      newMoneyResult: {},
      nextTipResult: {},
      showMask: false,
      showRed: false,
      showCode: false,
      showRules: false,
      showMore: false,
      index: 0,
      rankIndex: 0,
      dataBaseResult: {},
      rules: '',
      imgSrc: '',
      isApp: '',
      adresult: {},
      rankList: [],
      parms: {
        pageNum: 1,
        pageSize: 10
      }
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    //      that.imgSrc = 'http://static2.kaxiuyun.com/kxy/qrccOde/'+ that.$route.query.userId + 'test2.png'
    that.imgSrc = 'http://static1.kaxiuyun.com/kxy/gggf100w/' + that.$route.query.userId + '.png';
    that._Util.collectPageView2({
      version: that._Util.version,
      postUrl: that._Api.POST_COLLECT,
      moduleType: '瓜分100w',
      operate_page: '详情页',
      optionType: '打开页面',
      param1: window.location.href,
      param2: '',
      param4: {
        'queryValue': '',
        'result': '',
        'filter': ''
      }
    }, that);
  },
  mounted: function mounted() {
    var that = this;
    //      that.share();
    that.choseRank(0);
    that._Util.post(that._Api.HOST + 'qrCode/redPacketStatistics.json', {}, function (data) {
      that.moneyResult = data;
    }, function () {}, that);
    that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
      code: 'hb_sj_acq_remaind',
      pageNum: 1,
      pageSize: 1
    }, function (data) {
      that.newMoneyResult = data.dataList[0];
    }, function () {}, that);
    that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
      code: 'million_guide',
      pageNum: 1,
      pageSize: 1
    }, function (data) {
      that.rules = data.dataList[0].text;
    }, function () {}, that);
    that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
      code: 'million_ad',
      pageNum: 1,
      pageSize: 1
    }, function (data) {
      that.nextTipResult = data.dataList[0];
    }, function () {}, that);
    that._Util.post(that._Api.POST_ADVERT_POSITION, {
      signType: 4
    }, function (data) {
      that.adresult = data;
    }, function () {}, that);
  },
  methods: {
    choseOption: function choseOption(n) {
      var that = this;
      that.index = n;
      that.getDataBase(n);
    },
    collectLog: function collectLog() {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '瓜分100w',
        operate_page: '首页',
        optionType: '广告点点击',
        param1: window.location.href,
        param2: that.adresult.advertUrl,
        param3: '',
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      window.open(that.adresult.advertUrl);
    },
    toShowMask: function toShowMask() {
      var that = this;
      that.showMask = true;
      that.showRed = true;
      that.showCode = false;
      that.choseOption(0);
    },
    getDataBase: function getDataBase(n) {
      var that = this;
      var url = '';
      url = n == 0 ? that._Api.HOST + 'qrCode/getRedEnvelopes.json' : that._Api.HOST + 'qrCode/getAppreciation.json';
      that._Util.post(url, {}, function (data) {
        that.dataBaseResult = data;
      }, function () {}, that);
    },
    closeMask: function closeMask() {
      this.showMask = false;
      this.showRed = false;
      this.showRules = false;
      this.showCode = false;
      this.index = 0;
    },
    savePic: function savePic() {
      var that = this;
      api.download({
        url: that.imgSrc,
        savePath: 'fs://test.png',
        report: true,
        cache: true,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          api.saveMediaToAlbum({
            path: 'fs://test.png'
          }, function (ret, err) {
            if (ret && ret.status) {
              api.toast({
                msg: '保存成功'
              });
            } else {
              api.toast({
                msg: '保存失败'
              });
            }
          });
        }
      });
    },
    toMakeMoney: function toMakeMoney() {
      this.$router.replace({
        name: 'redFinal',
        query: {
          userId: this.$route.query.userId,
          money: this.$route.query.money
        }
      });
    },
    draeImg: function draeImg() {
      var that = this;
      that.showMask = true;
      that.showCode = true;
      that.isApp = !!that._Util.isApp();
      //        that.imgSrc = 'http://static2.kaxiuyun.com/kxy/qrccOde/'+ that.$route.query.userId + 'test2.png'
      //        let imguRL = 'http://static1.kaxiuyun.com/kxy/gf100/hb.png';
      //        let c= document.getElementById("drawing");
      //        let ctx= c.getContext("2d");
      //        let img = new Image();
      //        let _width = document.body.offsetWidth * 0.9;
      //        img.onload = function(){
      //          ctx.drawImage(img,0,0,200,300);
      //        };
      //        img.src= imguRL;
    },
    showRulesDetail: function showRulesDetail() {
      this.showMask = true;
      this.showRules = true;
    },
    share: function share() {
      var that = this;
      var shareTitle = '';
      if (that.$route.query.money) {
        shareTitle = '这道题我答对了，获得' + that.$route.query.money + '元，我想考考你，快来卡修宝典试一试吧~';
      } else {
        shareTitle = '我在卡修宝典答题瓜分100万，快来试一试吧~';
      }
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: shareTitle,
                  desc: '快跟我一起来卡修宝典瓜分100万',
                  link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '瓜分100w',
              operate_page: '赏金页',
              optionType: '分享',
              param1: window.location.href,
              param2: '',
              param4: {
                'queryValue': '',
                'result': '',
                'filter': ''
              }
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: shareTitle,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '瓜分100w',
                operate_page: '赏金页',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: shareTitle,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '瓜分100w',
                operate_page: '赏金页',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: shareTitle,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg',
              success: function success() {
                that._Util.collectPageView2({
                  version: that._Util.version,
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '瓜分100w',
                  operate_page: '赏金页',
                  optionType: '分享',
                  param1: window.location.href,
                  param2: '',
                  param4: {
                    'queryValue': '',
                    'result': '',
                    'filter': ''
                  }
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    gOwhere: function gOwhere(url) {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '瓜分100w',
        operate_page: '详情页',
        optionType: '点击',
        param1: window.location.href,
        param2: url,
        param3: that.nextTipResult.question_text,
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      window.open(url);
    },
    choseRank: function choseRank(n) {
      var that = this;
      that.rankIndex = n;
      that.parms.pageNum = 1;
      var code = '';
      code = n == 0 ? 'answer_money_rank' : 'share_money_rank';
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        code: code,
        pageNum: 1,
        pageSize: 200
      }, function (data) {
        that.rankList = data;
        //            if(that.rankList.count>(that.parms.pageNum * that.parms.pageSize)){
        //              that.showMore = true;
        //            }else{
        //              that.showMore = false;
        //            }
      }, function () {}, that);
      //          that._Util.post(randUrl,that.parms, (data) => {
      //            that.rankList = data;
      //            if(that.rankList.count>(that.parms.pageNum * that.parms.pageSize)){
      //                  that.showMore = true;
      //            }else{
      //              that.showMore = false;
      //            }
      //          }, () => {
      //          }, that);
    } // 加载更多
    //      loadMore(){
    //        let that = this;
    //        that.parms.pageNum ++;
    //        let code = '';
    //        code = n ==0?'answer_money_rank':'share_money_rank';
    //        randUrl =that.rankIndex==0?that._Api.HOST+ 'qrCode/getRedEnvelopesList.json':that._Api.HOST+ 'qrCode/getShareEnvelopesList.json';
    //        that._Util.post(randUrl,that.parms, (data) => {
    //         for(let v of data.list){
    //             that.rankList.dataList.push(v)
    //         }
    //          if(that.rankList.totalCount>(that.parms.pageNum * that.parms.pageSize)){
    //            that.showMore = true;
    //          }else{
    //            that.showMore = false;
    //          }
    //        }, () => {
    //        }, that);
    //      }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMask),expression:"showMask"}],staticClass:"mask",on:{"click":function($event){return _vm.closeMask()}}},[(_vm.showRed)?_c('div',{staticClass:"redBox"},[_c('img',{staticClass:"closeB",attrs:{"src":__webpack_require__(826)},on:{"click":function($event){return _vm.closeMask()}}}),_vm._v(" "),_c('ul',{staticClass:"option-box"},[_c('li',{class:{'active': _vm.index === 0},on:{"click":function($event){$event.stopPropagation();return _vm.choseOption(0)}}},[_vm._v("红包")]),_vm._v(" "),_c('li',{class:{'active': _vm.index === 1},on:{"click":function($event){$event.stopPropagation();return _vm.choseOption(1)}}},[_vm._v("赏金")])]),_vm._v(" "),(_vm.index === 0)?_c('div',{staticStyle:{"font-size":"18px","color":"#fb2044","text-align":"center","margin-top":"15px"}},[_vm._v("红包累计："+_vm._s(_vm.dataBaseResult.totalAnswerMoney || 0)+"元")]):_vm._e(),_vm._v(" "),(_vm.index === 1)?_c('div',{staticStyle:{"font-size":"18px","color":"#fb2044","text-align":"center","margin-top":"15px"}},[_vm._v("赏金累计："+_vm._s(_vm.dataBaseResult.totalShareMoney || 0)+"元")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"c-box"},[_vm._l((_vm.dataBaseResult.redEnvelopes),function(v,i){return (_vm.index === 0)?_c('div',{key:i,staticStyle:{"width":"90%","margin":"0 auto","overflow":"hidden","margin-top":"10px"}},[_c('span',{staticStyle:{"font-size":"14px","color":"#333","float":"left"}},[_vm._v(_vm._s(_vm._f("dateFormat")(v.answerTime,'MM.dd hh:mm')))]),_vm._v(" "),_c('span',{staticStyle:{"font-size":"14px","color":"#fb2044","float":"right"}},[_vm._v(_vm._s(v.answerMoney))])]):_vm._e()}),_vm._v(" "),_vm._l((_vm.dataBaseResult.appreciation),function(v,i){return (_vm.index === 1)?_c('div',{key:i,staticStyle:{"width":"90%","margin":"0 auto","overflow":"hidden","margin-top":"10px"}},[_c('span',{staticStyle:{"font-size":"14px","color":"#333","float":"left"}},[_vm._v(_vm._s(_vm._f("dateFormat")(v.answerTime,'MM.dd hh:mm'))),_c('br'),_vm._v(_vm._s(v.userName || (v.userPhone?v.userPhone.substr(v.userPhone.length-4): '' ))+" 答题，获得赏金")]),_vm._v(" "),(_vm.index === 0)?_c('span',{staticStyle:{"font-size":"14px","color":"#fb2044","float":"right"}},[_vm._v(_vm._s(v.answerMoney))]):_vm._e(),_vm._v(" "),(_vm.index === 1)?_c('span',{staticStyle:{"font-size":"14px","color":"#fb2044","float":"right"}},[_vm._v(_vm._s(v.shareMoney))]):_vm._e()]):_vm._e()})],2),_vm._v(" "),_c('div',{staticStyle:{"width":"50%","margin":"20px auto","color":"#fb2044","border":"2px solid #fb2044","padding":"10px 0","text-align":"center","font-size":"16px","border-radius":"5px","-webkit-border-radius":"5px"},on:{"click":function($event){$event.stopPropagation();return _vm.toMakeMoney()}}},[_vm._v("使用赏金+红包")])]):_vm._e(),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showCode),expression:"showCode"}],staticStyle:{"position":"relative","width":"90%","margin":"35px auto 0 auto"}},[_c('img',{staticStyle:{"width":"50%","position":"absolute","right":"10px","top":"-10px"},attrs:{"src":__webpack_require__(816)}})]),_vm._v(" "),(_vm.showRules)?_c('div',{staticClass:"rulesBox"},[_c('img',{staticClass:"closeB",attrs:{"src":__webpack_require__(826)},on:{"click":function($event){return _vm.closeMask()}}}),_vm._v(" "),_c('div',{staticStyle:{"font-size":"16px","color":"#000","text-align":"center"}},[_vm._v("活动规则")]),_vm._v(" "),_c('div',{staticStyle:{"font-size":"14px","color":"#333","text-align":"justify","width":"90%","margin":"0 auto","margin-top":"10px","max-height":"300px","overflow":"scroll"},domProps:{"innerHTML":_vm._s(_vm.rules)}})]):_vm._e()]),_vm._v(" "),_c('div',{staticStyle:{"position":"relative"}},[_c('div',{staticClass:"rules",on:{"click":function($event){return _vm.showRulesDetail()}}},[_vm._v("活动规则")]),_vm._v(" "),_c('div',{staticStyle:{"color":"#fff","font-size":"24px","text-align":"center","position":"absolute","width":"100%","top":"25%"}},[_vm._v("奖池剩余")]),_vm._v(" "),_c('div',{staticStyle:{"color":"#fff","font-size":"24px","text-align":"center","position":"absolute","width":"100%","top":"45%"}},[_vm._v(_vm._s(_vm.newMoneyResult.remaind))]),_vm._v(" "),_c('img',{staticStyle:{"width":"100%"},attrs:{"src":__webpack_require__(1462)}})]),_vm._v(" "),_c('div',{staticClass:"linear",staticStyle:{"width":"100%","height":"50px","color":"#333"}},[_c('div',{staticStyle:{"width":"49.5%","height":"100%","float":"left","text-align":"center"}},[_c('span',{staticStyle:{"font-size":"14px"}},[_vm._v("已发红包")]),_c('br'),_c('span',{staticStyle:{"font-size":"18px"}},[_vm._v(_vm._s((_vm.newMoneyResult.hb|| 0 ) + '元'))])]),_vm._v(" "),_c('div',{staticStyle:{"width":"1px","height":"25px","float":"left","background":"#aaaaaa","margin-top":"13px"}}),_vm._v(" "),_c('div',{staticStyle:{"width":"49.5%","height":"100%","float":"left","text-align":"center"}},[_c('span',{staticStyle:{"font-size":"14px"}},[_vm._v("已发赏金 ")]),_c('br'),_c('span',{staticStyle:{"font-size":"18px"}},[_vm._v(_vm._s((_vm.newMoneyResult.sj || 0) + '元'))])]),_vm._v("``\n  ")]),_vm._v(" "),_c('div',{staticStyle:{"width":"90%","color":"#666666","font-size":"16px","margin":"30px auto 0 auto"}},[_vm._v("\n    邀请好友答题领红包，好友每次领取红包，你都可以获得赏金，每天发邀请，每天得赏金\n  ")]),_vm._v(" "),_c('div',{staticClass:"getitNow",on:{"click":function($event){return _vm.toMakeMoney()}}},[_vm._v("去使用")]),_vm._v(" "),_c('div',{staticClass:"nextBox",staticStyle:{"border-top":"10px solid #f6f6f6","margin-top":"15px","padding":"0 0 0 5%"},on:{"click":function($event){return _vm.toShowMask()}}},[_c('div',{staticStyle:{"padding":"10px 0","color":"#333","font-size":"16px","border-bottom":"1px solid #eee"}},[_c('span',{staticStyle:{"color":"#fb2044","font-size":"16px"}},[_vm._v(_vm._s(_vm.moneyResult.totalIncome ? _vm.moneyResult.totalIncome + '元' : '0元'))]),_vm._v("赏金+红包已到手"),_c('br'),_vm._v(" "),_c('span',{staticStyle:{"color":"#666","font-size":"14px"}},[_vm._v("赏金+红包已到手～")])])]),_vm._v(" "),(_vm.nextTipResult.question_text)?_c('div',{staticClass:"nextBox",staticStyle:{"padding":"0 0 0 5%"}},[_c('div',{staticClass:"goWhere",staticStyle:{"padding":"15px 0","color":"#666"},on:{"click":function($event){return _vm.gOwhere(_vm.nextTipResult.question_url)}}},[_vm._v(_vm._s(_vm.nextTipResult.question_text))])]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"border-top":"10px solid #f6f6f6","width":"100%","padding-top":"15px"}},[_c('ul',{staticClass:"option-box"},[_c('li',{class:{'active': _vm.rankIndex === 0},staticStyle:{"padding":"5px 0"},on:{"click":function($event){return _vm.choseRank(0)}}},[_vm._v("红包榜")]),_vm._v(" "),_c('li',{class:{'active': _vm.rankIndex === 1},staticStyle:{"padding":"5px 0"},on:{"click":function($event){return _vm.choseRank(1)}}},[_vm._v("赏金榜")])]),_vm._v(" "),_c('div',{staticClass:"rankBox"},_vm._l((_vm.rankList.dataList),function(v,index){return _c('div',{key:index,staticClass:"rankList",class:{'f1': index===0,'f2':index===1,'f3': index=== 2 }},[_c('span',{class:{'redC':_vm.$route.query.userId == v.shareuserid},domProps:{"innerHTML":_vm._s(v.username || v.nickname || (v.userphone?v.userphone.substr(v.userphone.length-4): '' ))}}),_vm._v(" "),(v.money)?_c('span',{class:{'redC':_vm.$route.query.userId == v.shareUserId}},[_vm._v(_vm._s(v.money + '元'))]):_vm._e()])}),0),_vm._v(" "),(_vm.showMore)?_c('div',{staticStyle:{"background":"#f6f6f6","font-size":"16px","color":"#333","text-align":"center","padding":"7px 0"},on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("点击查看更多")]):_vm._e()]),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","background":"#fff","padding-top":"15px"}},[_c('div',{staticStyle:{"width":"95%","margin":"0 auto"}},[_c('a',{on:{"click":function($event){return _vm.collectLog()}}},[_c('img',{attrs:{"alt":"","src":_vm.adresult.advertImg || '',"width":"100%"}})]),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","margin-top":"10px","color":"#333"}},[_vm._v("©卡修宝典")])])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/bg-2.eacf63f.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(607);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_532a237f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1206);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3256)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-532a237f"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_532a237f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_532a237f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_redFinal_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3257);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6e1488dc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".goumai[data-v-532a237f]{width:50%;padding:13px 0;background:#fb2044;color:#fff;font-size:18px;border-radius:5px;-webkit-border-radius:5px;text-align:center;margin:40px auto 0}.adP[data-v-532a237f]{margin-top:25px}@media screen and (max-width:320px){.adP[data-v-532a237f]{position:relative}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      isClick: true,
      adresult: {},
      a1: '',
      a2: '',
      a3: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    if (!that._Util.isApp() && !that._Util.isMPaaS()) {
      that._Util.getKaluliAuth(that);
    }
    //          that.share();
    that._Util.collectPageView2({
      version: that._Util.version,
      postUrl: that._Api.POST_COLLECT,
      moduleType: '瓜分100w',
      operate_page: '支付页',
      optionType: '打开页面',
      param1: window.location.href,
      param2: '',
      param4: {
        'queryValue': '',
        'result': '',
        'filter': ''
      }
    }, that);
    that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
      code: 'million_cus_detail',
      pageNum: 1,
      pageSize: 1
    }, function (data) {
      that.a1 = data.dataList[0].total_money;
      that.a2 = data.dataList[0].user_used;
      that.a3 = data.dataList[0].user_left;
      (0, _jquery.default)('.a1').text(data.dataList[0].total_money + '元');
      (0, _jquery.default)('.a2').text(data.dataList[0].user_used + '元');
      (0, _jquery.default)('.a3').text(data.dataList[0].user_left + '元');
      //            that.getUserInfo()
    }, function () {}, that);
    //            that.share();
    //            that._Util.post(that._Api.HOST + 'qrCode/getPurchasePage.json',{}, (data) => {
    // //                that
    // //                data.accumulativeAmount = data.accumulativeAmount || 0
    // //                data.orderUserMoney = data.orderUserMoney || 0
    // //                that.resultInfo = data;
    //
    //            }, () => {
    //            }, that);
    that._Util.post(that._Api.POST_ADVERT_POSITION, {
      signType: 4
    }, function (data) {
      that.adresult = data;
    }, function () {}, that);
  },
  methods: {
    goSecond: function goSecond() {
      this.$router.push({
        name: 'redEnvelopesSecond'
      });
    },
    toBuy: function toBuy() {
      var that = this;
      if (that.isClick) {
        that.isClick = false;
        that._Util.post(that._Api.POST_MEMBER_PERSONAL_GET_JS_PARAMETER, {
          code: 'million_vip'
        }, function (data) {
          that._Util.wxPay(data.jsApiParameters, function () {
            that.isClick = true;
          });
        }, function () {}, that);
      }
    },
    getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {}, function () {}, that);
    },
    share: function share() {
      var that = this;
      var shareTitle = '';
      if (that.$route.query.money) {
        shareTitle = '这道题我答对了，获得' + that.$route.query.money + '元，我想考考你，快来卡修宝典试一试吧~';
      } else {
        shareTitle = '我在卡修宝典答题瓜分100万，快来试一试吧~';
      }
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: shareTitle,
                  desc: '快跟我一起来卡修宝典瓜分100万',
                  link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
                  imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {
            that._Util.collectPageView2({
              version: that._Util.version,
              postUrl: that._Api.POST_COLLECT,
              moduleType: '瓜分100w',
              operate_page: '支付页',
              optionType: '分享',
              param1: window.location.href,
              param2: '',
              param4: {
                'queryValue': '',
                'result': '',
                'filter': ''
              }
            }, that);
          });
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: shareTitle,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '瓜分100w',
                operate_page: '支付页',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: shareTitle,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg'
            };
            that._Util.mpassShare(params, function () {
              that._Util.collectPageView2({
                version: that._Util.version,
                postUrl: that._Api.POST_COLLECT,
                moduleType: '瓜分100w',
                operate_page: '支付页',
                optionType: '分享',
                param1: window.location.href,
                param2: '',
                param4: {
                  'queryValue': '',
                  'result': '',
                  'filter': ''
                }
              }, that);
            });
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: shareTitle,
              desc: '快跟我一起来卡修宝典瓜分100万',
              link: location.origin + '/v2/redEnvelopes/index?userid=' + that.$route.query.userId,
              imgUrl: 'http://static1.kaxiuyun.com/kxy/gf100/fx.jpg',
              success: function success() {
                that._Util.collectPageView2({
                  version: that._Util.version,
                  postUrl: that._Api.POST_COLLECT,
                  moduleType: '瓜分100w',
                  operate_page: '支付页',
                  optionType: '分享',
                  param1: window.location.href,
                  param2: '',
                  param4: {
                    'queryValue': '',
                    'result': '',
                    'filter': ''
                  }
                }, that);
              },
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    collectLog: function collectLog() {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: '瓜分100w',
        operate_page: '首页',
        optionType: '广告点点击',
        param1: window.location.href,
        param2: that.adresult.advertUrl,
        param3: '',
        param4: {
          'queryValue': '',
          'result': '',
          'filter': ''
        }
      }, that);
      window.open(that.adresult.advertUrl);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"background":"#f5f5f5"}},[_vm._m(0),_vm._v(" "),_vm._m(1),_vm._v(" "),_vm._m(2),_vm._v(" "),_vm._m(3),_vm._v(" "),_c('div',{staticStyle:{"padding-right":"10px","text-align":"right","margin-top":"10px"}},[_vm._v("瓜分金额仅限于购买年费会员")]),_vm._v(" "),_c('div',{staticClass:"goumai",on:{"click":function($event){return _vm.toBuy()}}},[_vm._v("购买年费会员")]),_vm._v(" "),_c('div',{staticClass:"adP",staticStyle:{"width":"100%","background":"#f5f5f5","padding-top":"15px"}},[_c('div',{staticStyle:{"width":"95%","margin":"0 auto"}},[_c('a',{on:{"click":function($event){return _vm.collectLog()}}},[_c('img',{attrs:{"alt":"","src":_vm.adresult.advertImg || '',"width":"100%"}})]),_vm._v(" "),_c('div',{staticStyle:{"text-align":"center","margin-top":"10px","color":"#333"}},[_vm._v("©卡修宝典")])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"position":"relative"}},[_c('div',{staticStyle:{"color":"#fff","font-size":"24px","text-align":"center","position":"absolute","width":"100%","top":"25%"}},[_vm._v("100万已全部瓜分完毕")]),_vm._v(" "),_c('img',{staticStyle:{"width":"100%"},attrs:{"src":__webpack_require__(1462)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"padding-left":"5%","background":"#fff"}},[_c('div',{staticStyle:{"border-bottom":"1px solid #E4E4EC","padding-top":"15px","padding-bottom":"15px","padding-right":"10px","overflow":"hidden"}},[_c('span',{staticStyle:{"float":"left","color":"#fb2044","font-size":"16px"}},[_vm._v("累计瓜分（红包+赏金）")]),_vm._v(" "),_c('span',{staticClass:"a1",staticStyle:{"float":"right","color":"#fb2044","font-size":"16px"}})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"padding-left":"5%","background":"#fff"}},[_c('div',{staticStyle:{"border-bottom":"1px solid #E4E4EC","padding-top":"15px","padding-bottom":"15px","padding-right":"10px","overflow":"hidden"}},[_c('span',{staticStyle:{"float":"left","font-size":"16px"}},[_vm._v("已用金额")]),_vm._v(" "),_c('span',{staticClass:"a2",staticStyle:{"float":"right","font-size":"16px"}})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"padding-left":"5%","background":"#fff"}},[_c('div',{staticStyle:{"border-bottom":"1px solid #E4E4EC","padding-top":"15px","padding-bottom":"15px","padding-right":"10px","overflow":"hidden"}},[_c('span',{staticStyle:{"float":"left","font-size":"16px"}},[_vm._v("可用金额")]),_vm._v(" "),_c('span',{staticClass:"a3",staticStyle:{"float":"right","font-size":"16px"}})])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(608);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c85841f_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1207);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3258)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c85841f_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c85841f_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_operationPage_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3259);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1cef64ff", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "img{max-width:100%!important}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      htmlContent: ''
    };
  },
  mounted: function mounted() {
    this.getArticleContent();
  },
  methods: {
    /** 获取文章内容接口 */getArticleContent: function getArticleContent() {
      var _this = this;
      this._Util.post(this._Api.HOST + 'document//getHelpDocumentDetails.json', {
        helpDocumentId: this.$route.params.documentId
      }, function (data) {
        console.log(data);
        if (data) {
          _this.htmlContent = data.content;
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{domProps:{"innerHTML":_vm._s(_vm.htmlContent)}})}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(609);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5761a87a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1208);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3260)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5761a87a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5761a87a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5761a87a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appointment_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3261);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("42dff30e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-5761a87a]{padding-top:10px}.outContainer .appointmentDetail[data-v-5761a87a]{margin:0 auto;width:350px;overflow:hidden;background:#fff;border-radius:4px}.outContainer .appointmentDetail .image[data-v-5761a87a]{text-align:center;height:380px}.outContainer .appointmentDetail .image>img[data-v-5761a87a]{max-width:100%;height:100%}.outContainer .appointmentDetail .invitation[data-v-5761a87a]{border:1px solid #c7c7c7;padding:10px 12px 12px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.outContainer .appointmentDetail .invitation>img[data-v-5761a87a]{float:left;width:44px;height:44px;border-radius:50%}.outContainer .appointmentDetail .invitation .rightContent[data-v-5761a87a]{margin-left:56px}.outContainer .appointmentDetail .invitation .rightContent .uname[data-v-5761a87a]{font-family:PingFangSC-Regular;font-size:16px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .appointmentDetail .invitation .rightContent .detail[data-v-5761a87a]{margin-top:5px;font-family:PingFangSC-Regular;font-size:18px;color:#333}.outContainer .btnContainer[data-v-5761a87a]{margin-top:50px;padding-bottom:40px}.outContainer .btnContainer .button[data-v-5761a87a]{margin:0 auto;width:351px;height:44px;line-height:44px;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#fff;background-color:#ee4545;border-radius:4px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      userId: '',
      appointmentInfo: {}
    };
  },
  mounted: function mounted() {
    this.getUserInfo();
  },
  methods: {
    /** 立即预约相关逻辑 */immediateInvite: function immediateInvite() {
      var _this = this;
      this._Util.post(this._Api.POST_ADD_ACTIVITY_RESERVATION, {
        shareUserId: this.$route.query.share_uid,
        moduleType: this.$route.query.module_type
      }, function (data) {
        console.log(data);
        if (data === 0) {
          (0, _mintUi.Toast)({
            message: '您已预约',
            position: 'bottom',
            duration: 1500
          });
        } else {
          (0, _mintUi.Toast)({
            message: '预约成功',
            position: 'bottom',
            duration: 1500
          });
        }
        setTimeout(function () {
          location.href = location.origin + '/v2/appointedPage?module_type=' + _this.$route.query.module_type + '&share_uid=' + _this.$route.query.share_uid;
          // this.$router.push({
          //   name: "appointedPage",
          //   query: {
          //     module_type: this.$route.query.module_type,
          //     share_uid: this.$route.query.share_uid,
          //   }
          // });
        }, 1000);
      }, function () {}, this);
    },
    /** 获取用户信息 */getUserInfo: function getUserInfo() {
      var _this2 = this;
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        /* 添加未认证的弹窗*/
        // var userStatus = data.userStatus;
        // if (userStatus == 0) {
        //   MessageBox({
        //     title: "认证提示",
        //     message: "您当前还未认证， 认证享受更多功能",
        //     confirmButtonText: "去认证",
        //     showCancelButton: true,
        //     cancelButtonText: "暂不认证"
        //   }).then(action => {
        //     console.log(action);
        //     if (action === "confirm"||action==='cancel') {
        //       //that.$router.replace({name: 'personalCertification', query: {nextPath: window.location.href}})
        //       that.$router.push({
        //         name: "personalCertification",
        //         query: { from: "appointedPage" }
        //       });
        //     }
        //   });
        // }
        that.userId = data.userId;
        if (that.userId == that.$route.query.share_uid) {
          location.href = location.origin + '/v2/appointedPage?module_type=' + _this2.$route.query.module_type + '&share_uid=' + _this2.$route.query.share_uid;
        } else {
          that.getAppointmentInfo();
        }
      }, function () {}, that);
    },
    /** 获取预约信息 */getAppointmentInfo: function getAppointmentInfo() {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'activity_invite',
        module_type: this.$route.query.module_type,
        share_uid: this.$route.query.share_uid,
        sys_uid: this.userId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          console.log(data);
          _this3.appointmentInfo = data.dataList[0];
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"appointmentDetail"},[_c('div',{staticClass:"image"},[_c('img',{attrs:{"src":_vm.appointmentInfo.invite_img,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"invitation"},[_c('img',{attrs:{"src":_vm.appointmentInfo.share_uid_img,"alt":"头像.png"}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"uname"},[_vm._v(_vm._s(_vm.appointmentInfo.share_uid_name))]),_vm._v(" "),_c('div',{staticClass:"detail"},[_vm._v("\n          "+_vm._s(_vm.appointmentInfo.invite_text)+"\n        ")])])])]),_vm._v(" "),_c('div',{staticClass:"btnContainer"},[_c('div',{staticClass:"button",on:{"click":_vm.immediateInvite}},[_vm._v("立即预约")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(610);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_82b61374_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1209);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3262)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-82b61374"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_82b61374_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_82b61374_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appointed_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3263);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("39640c42", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-82b61374]{padding-top:10px}.outContainer .bImg[data-v-82b61374]{margin:0 auto;width:351px;height:380px;margin-bottom:10px}.outContainer .bImg>img[data-v-82b61374]{width:100%;height:100%;border-radius:4px}.outContainer .sImg[data-v-82b61374]{margin:0 auto;width:351px;height:120px;background-color:skyblue}.outContainer .sImg>img[data-v-82b61374]{width:100%;height:100%;border-radius:4px}.outContainer .btnContainer[data-v-82b61374]{padding-top:19px;padding-bottom:19px}.outContainer .btnContainer .button[data-v-82b61374]{margin:0 auto;width:351px;height:44px;line-height:44px;text-align:center;font-family:PingFangSC-Regular;font-size:18px;color:#fff;background-color:#ee4545;border-radius:4px}.outContainer .shareMAsk[data-v-82b61374]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.outContainer .shareMAsk>div[data-v-82b61374]{position:absolute;top:45%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font-size:20px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      showShareBox: false,
      userId: '',
      appointmentInfo: {}
    };
  },
  mounted: function mounted() {
    this.getUserInfo();
  },
  methods: {
    /** 分享逻辑 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.appointmentInfo.share_title,
                  desc: that.appointmentInfo.share_subtitle,
                  link: location.origin + '/v2/appointmentPage?module_type=' + that.$route.query.module_type + '&share_uid=' + that.userId,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/course/hour.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.appointmentInfo.share_title,
              desc: that.appointmentInfo.share_subtitle,
              link: location.origin + '/v2/appointmentPage?module_type=' + that.$route.query.module_type + '&share_uid=' + that.userId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/course/hour.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.appointmentInfo.share_title,
              desc: that.appointmentInfo.share_subtitle,
              link: location.origin + '/v2/appointmentPage?module_type=' + that.$route.query.module_type + '&share_uid=' + that.userId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/course/hour.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.appointmentInfo.share_title,
              desc: that.appointmentInfo.share_subtitle,
              link: location.origin + '/v2/appointmentPage?module_type=' + that.$route.query.module_type + '&share_uid=' + that.userId,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/course/hour.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /** 获取用户信息 */getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        that.userId = data.userId;
        that.getAppointmentInfo();
        /* 添加未认证的弹窗*/
        // var userStatus = data.userStatus;
        // if (userStatus == 0) {
        //   MessageBox({
        //     title: "认证提示",
        //     message: "您当前还未认证， 认证享受更多功能",
        //     confirmButtonText: "去认证",
        //     showCancelButton: true,
        //     cancelButtonText: "暂不认证"
        //   }).then(action => {
        //     console.log(action);
        //     if (action === "confirm" || action === "cancel") {
        //       //that.$router.replace({name: 'personalCertification', query: {nextPath: window.location.href}})
        //       that.$router.push({
        //         name: "personalCertification",
        //         query: { from: "appointedPage" }
        //       });
        //     }
        //   });
        // }
      }, function () {}, that);
    },
    /** 获取预约信息 */getAppointmentInfo: function getAppointmentInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'activity_invite',
        module_type: this.$route.query.module_type,
        share_uid: this.$route.query.share_uid,
        sys_uid: this.userId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList.length !== 0) {
          console.log(data);
          _this.appointmentInfo = data.dataList[0];
          _this.share();
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_c('img',{staticStyle:{"width":"50%","position":"absolute","right":"10px","top":"10px"},attrs:{"indexvalue":"1","src":__webpack_require__(816)}}),_vm._v(" "),_vm._m(0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bImg"},[_c('img',{attrs:{"src":_vm.appointmentInfo.success_img,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"btnContainer"},[_c('div',{staticClass:"button",on:{"click":function($event){_vm.showShareBox=true;}}},[_vm._v("发起我的邀请")])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v("发送到微信群 "),_c('br'),_vm._v(" 分享到朋友圈 ")])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(611);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_75447b8e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1210);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3264)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-75447b8e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_75447b8e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_75447b8e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseRecommend_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3265);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7c3ddafc", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-75447b8e]{height:100%;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.outContainer .courseTitle[data-v-75447b8e]{width:100%;height:107px;background-image:url(" + escape(__webpack_require__(3266)) + ");background-repeat:no-repeat;background-size:100%;position:relative}.outContainer .courseTitle>div[data-v-75447b8e]{position:absolute;font-family:PingFangSC-Semibold;font-size:17px;color:#fff;width:60%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);top:50%;left:13px}.outContainer .recommendContainer[data-v-75447b8e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.outContainer .recommendContainer .recommendTitle[data-v-75447b8e]{font-family:PingFangSC-Regular;font-size:18px;color:#333;margin-top:16px;margin-left:16px;padding-bottom:8px}.outContainer .recommendContainer .recommendList[data-v-75447b8e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.outContainer .recommendContainer .recommendList .item[data-v-75447b8e]{padding:12px 16px 0}.outContainer .recommendContainer .recommendList .item>img[data-v-75447b8e]{width:32px;height:32px;background-color:#f0f8ff;float:left}.outContainer .recommendContainer .recommendList .item .rightContent[data-v-75447b8e]{margin-left:44px;padding-bottom:12px;border-bottom:1px solid #e3e3e3}.outContainer .recommendContainer .recommendList .item .rightContent .top[data-v-75447b8e]{height:32px;line-height:32px;font-family:PingFangSC-Regular;font-size:16px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outContainer .recommendContainer .recommendList .item .rightContent .bottom[data-v-75447b8e]{margin-top:8px;font-family:PingFangSC-Regular;font-size:16px;color:#333}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/courseBanner.fee8345.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      commentList: [],
      courseName: '',
      token: '',
      appkey: ''
    };
  },
  created: function created() {
    if (window.location.href.indexOf('https://wx') != -1) {
      // 生产
      this.appkey = 'e5t4ouvpeadqa';
    } else {
      // 测试
      this.appkey = '0vnjpoad0ckgz';
    }
  },
  mounted: function mounted() {
    this.getToken();
  },
  methods: {
    /** 获取聊天室信息 */getToken: function getToken() {
      var _this = this;
      this._Util.post(this._Api.POST_BROADCAST_ANCHOR_CHAT, {
        courseId: this.$route.query.courseId
      }, function (data) {
        _this.courseName = data.courseName;
        _this.token = data.token;
        _this.initRongCloud();
      }, function () {}, this);
    },
    /** 初始化融云 */initRongCloud: function initRongCloud() {
      var that = this;
      RongIMLib.RongIMClient.init(that.appkey);
      // 连接状态监听器
      RongIMClient.setConnectionStatusListener({
        onChanged: function onChanged(status) {
          switch (status) {
            case RongIMLib.ConnectionStatus.CONNECTED:
              console.log('链接成功');
              break;
            case RongIMLib.ConnectionStatus.CONNECTING:
              console.log('正在链接');
              break;
            case RongIMLib.ConnectionStatus.DISCONNECTED:
              console.log('断开连接');
              break;
            case RongIMLib.ConnectionStatus.KICKED_OFFLINE_BY_OTHER_CLIENT:
              console.log('其他设备登录');
              break;
            case RongIMLib.ConnectionStatus.DOMAIN_INCORRECT:
              console.log('域名不正确');
              break;
            case RongIMLib.ConnectionStatus.NETWORK_UNAVAILABLE:
              console.log('网络不可用');
              break;
          }
        }
      });
      // 消息监听器
      RongIMClient.setOnReceiveMessageListener({
        // 接收到的消息
        onReceived: function onReceived(message) {
          // 判断消息类型
          var obj = _objectSpread({
            content: message.content.content
          }, message.content.user);
          that.commentList.unshift(obj);
        }
      });
      // 连接融云
      RongIMClient.connect(that.token, {
        onSuccess: function onSuccess(userId) {
          console.log('Connect successfully.' + userId);
        },
        onTokenIncorrect: function onTokenIncorrect() {
          console.log('token无效');
        },
        onError: function onError(errorCode) {
          var info = '';
          switch (errorCode) {
            case RongIMLib.ErrorCode.TIMEOUT:
              info = '超时';
              break;
            case RongIMLib.ConnectionState.UNACCEPTABLE_PAROTOCOL_VERSION:
              info = '不可接受的协议版本';
              break;
            case RongIMLib.ConnectionState.IDENTIFIER_REJECTED:
              info = 'appkey不正确';
              break;
            case RongIMLib.ConnectionState.SERVER_UNAVAILABLE:
              info = '服务器不可用';
              break;
          }
          console.log(info);
          console.log(errorCode);
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_c('div',{staticClass:"courseTitle"},[_c('div',[_vm._v("\n      "+_vm._s(_vm.courseName)+"\n    ")])]),_vm._v(" "),_c('div',{staticStyle:{"height":"10px","background-color":"#f2f2f2"}}),_vm._v(" "),_c('div',{staticClass:"recommendContainer"},[_c('div',{staticClass:"recommendTitle"},[_vm._v("课程评价")]),_vm._v(" "),_c('div',{staticClass:"recommendList"},[_vm._l((_vm.commentList),function(item,index){return _c('div',{key:index,staticClass:"item"},[_c('img',{attrs:{"src":item.portraitUri || '../../assets/images/默认头像.png',"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_c('div',{staticClass:"top"},[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_vm._v("\n            "+_vm._s(item.content)+"\n          ")])])])}),_vm._v(" "),(_vm.commentList.length===0)?_c('div',{staticStyle:{"text-align":"center","font-size":"16px","padding-top":"48px"}},[_vm._v("暂无评价")]):_vm._e()],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(612);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_752bd9c3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1211);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3267)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-752bd9c3"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_752bd9c3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_752bd9c3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_courseList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3268);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("47985ce1", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outContainer[data-v-752bd9c3]{height:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.outContainer .item[data-v-752bd9c3]{padding:15px 0;border-bottom:1px solid #e3e3e3;overflow:hidden}.outContainer .item>img[data-v-752bd9c3]{width:44px;height:44px;background-color:#f0f8ff;float:left}.outContainer .item .rightContent[data-v-752bd9c3]{margin-left:52px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      courseList: []
    };
  },
  mounted: function mounted() {
    this.getCourseList();
  },
  methods: {
    /** 获取直播课程列表 */getCourseList: function getCourseList() {
      var _this = this;
      this._Util.post(this._Api.POST_BROADCAST_COURSE_LIVING, {}, function (data) {
        _this.courseList = data;
      }, function () {}, this);
    },
    /** 进入课程详情页 */goDetail: function goDetail(courseId) {
      this.$router.push({
        name: 'courseRecommend',
        query: {
          courseId: courseId
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outContainer"},[_vm._l((_vm.courseList),function(val,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.goDetail(val.courseId)}}},[_c('img',{attrs:{"src":val.courseImg,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"rightContent"},[_vm._v("\n      "+_vm._s(val.courseName)+"\n    ")])])}),_vm._v(" "),(_vm.commentList.length===0)?_c('div',{staticStyle:{"text-align":"center","font-size":"16px","padding-top":"48px"}},[_vm._v("暂无直播课程")]):_vm._e()],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(613);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42d1afec_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1212);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3269)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-42d1afec"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42d1afec_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42d1afec_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_upload_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3270);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2caa8aec", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "input[data-v-42d1afec]{margin:50px auto;display:block}span[data-v-42d1afec]{display:block;width:100px;height:30px;line-height:30px;text-align:center;border:1px solid #ccc;margin:0 auto}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
var _default = exports.default = {
  filters: {},
  data: function data() {
    return {
      token: '',
      bucketUrl: '',
      change: false
    };
  },
  created: function created() {
    var that = this;
    that._Util.post(that._Api.appGetQNToken, {}, function (data) {
      that.token = data.token;
      that.bucketUrl = data.bucketUrl;
    }, function () {}, that);
  },
  methods: {
    upload: function upload(e) {
      var that = this;
      var file = e.target.files[0];
      if (file) {
        that.change = true;
        _mintUi.Indicator.open('上传中...');
        var formData = new FormData();
        formData.append('file', file);
        formData.append('key', 'kxy/wj/' + file.name);
        formData.append('token', that.token);
        $.ajax({
          url: 'https://upload.qiniup.com',
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          console.log(that.bucketUrl + res.key);
        }).fail(function () {});
      }
    },
    send: function send() {
      if (this.change) {
        (0, _mintUi.Toast)({
          message: '提交成功',
          duration: 1000
        });
        this.change = false;
      }
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"upload"},[_c('input',{attrs:{"type":"file"},on:{"change":function($event){return _vm.upload($event)}}}),_vm._v(" "),_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.send.apply(null, arguments)}}},[_vm._v("提交")])])}
var staticRenderFns = []
/* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com

;(function (global, factory) {
     true ? module.exports = factory() :
    undefined
}(this, (function () { 'use strict';

    var hookCallback;

    function hooks() {
        return hookCallback.apply(null, arguments);
    }

    // This is done to register the method called with moment()
    // without creating circular dependencies.
    function setHookCallback(callback) {
        hookCallback = callback;
    }

    function isArray(input) {
        return (
            input instanceof Array ||
            Object.prototype.toString.call(input) === '[object Array]'
        );
    }

    function isObject(input) {
        // IE8 will treat undefined and null as object if it wasn't for
        // input != null
        return (
            input != null &&
            Object.prototype.toString.call(input) === '[object Object]'
        );
    }

    function hasOwnProp(a, b) {
        return Object.prototype.hasOwnProperty.call(a, b);
    }

    function isObjectEmpty(obj) {
        if (Object.getOwnPropertyNames) {
            return Object.getOwnPropertyNames(obj).length === 0;
        } else {
            var k;
            for (k in obj) {
                if (hasOwnProp(obj, k)) {
                    return false;
                }
            }
            return true;
        }
    }

    function isUndefined(input) {
        return input === void 0;
    }

    function isNumber(input) {
        return (
            typeof input === 'number' ||
            Object.prototype.toString.call(input) === '[object Number]'
        );
    }

    function isDate(input) {
        return (
            input instanceof Date ||
            Object.prototype.toString.call(input) === '[object Date]'
        );
    }

    function map(arr, fn) {
        var res = [],
            i,
            arrLen = arr.length;
        for (i = 0; i < arrLen; ++i) {
            res.push(fn(arr[i], i));
        }
        return res;
    }

    function extend(a, b) {
        for (var i in b) {
            if (hasOwnProp(b, i)) {
                a[i] = b[i];
            }
        }

        if (hasOwnProp(b, 'toString')) {
            a.toString = b.toString;
        }

        if (hasOwnProp(b, 'valueOf')) {
            a.valueOf = b.valueOf;
        }

        return a;
    }

    function createUTC(input, format, locale, strict) {
        return createLocalOrUTC(input, format, locale, strict, true).utc();
    }

    function defaultParsingFlags() {
        // We need to deep clone this object.
        return {
            empty: false,
            unusedTokens: [],
            unusedInput: [],
            overflow: -2,
            charsLeftOver: 0,
            nullInput: false,
            invalidEra: null,
            invalidMonth: null,
            invalidFormat: false,
            userInvalidated: false,
            iso: false,
            parsedDateParts: [],
            era: null,
            meridiem: null,
            rfc2822: false,
            weekdayMismatch: false,
        };
    }

    function getParsingFlags(m) {
        if (m._pf == null) {
            m._pf = defaultParsingFlags();
        }
        return m._pf;
    }

    var some;
    if (Array.prototype.some) {
        some = Array.prototype.some;
    } else {
        some = function (fun) {
            var t = Object(this),
                len = t.length >>> 0,
                i;

            for (i = 0; i < len; i++) {
                if (i in t && fun.call(this, t[i], i, t)) {
                    return true;
                }
            }

            return false;
        };
    }

    function isValid(m) {
        var flags = null,
            parsedParts = false,
            isNowValid = m._d && !isNaN(m._d.getTime());
        if (isNowValid) {
            flags = getParsingFlags(m);
            parsedParts = some.call(flags.parsedDateParts, function (i) {
                return i != null;
            });
            isNowValid =
                flags.overflow < 0 &&
                !flags.empty &&
                !flags.invalidEra &&
                !flags.invalidMonth &&
                !flags.invalidWeekday &&
                !flags.weekdayMismatch &&
                !flags.nullInput &&
                !flags.invalidFormat &&
                !flags.userInvalidated &&
                (!flags.meridiem || (flags.meridiem && parsedParts));
            if (m._strict) {
                isNowValid =
                    isNowValid &&
                    flags.charsLeftOver === 0 &&
                    flags.unusedTokens.length === 0 &&
                    flags.bigHour === undefined;
            }
        }
        if (Object.isFrozen == null || !Object.isFrozen(m)) {
            m._isValid = isNowValid;
        } else {
            return isNowValid;
        }
        return m._isValid;
    }

    function createInvalid(flags) {
        var m = createUTC(NaN);
        if (flags != null) {
            extend(getParsingFlags(m), flags);
        } else {
            getParsingFlags(m).userInvalidated = true;
        }

        return m;
    }

    // Plugins that add properties should also add the key here (null value),
    // so we can properly clone ourselves.
    var momentProperties = (hooks.momentProperties = []),
        updateInProgress = false;

    function copyConfig(to, from) {
        var i,
            prop,
            val,
            momentPropertiesLen = momentProperties.length;

        if (!isUndefined(from._isAMomentObject)) {
            to._isAMomentObject = from._isAMomentObject;
        }
        if (!isUndefined(from._i)) {
            to._i = from._i;
        }
        if (!isUndefined(from._f)) {
            to._f = from._f;
        }
        if (!isUndefined(from._l)) {
            to._l = from._l;
        }
        if (!isUndefined(from._strict)) {
            to._strict = from._strict;
        }
        if (!isUndefined(from._tzm)) {
            to._tzm = from._tzm;
        }
        if (!isUndefined(from._isUTC)) {
            to._isUTC = from._isUTC;
        }
        if (!isUndefined(from._offset)) {
            to._offset = from._offset;
        }
        if (!isUndefined(from._pf)) {
            to._pf = getParsingFlags(from);
        }
        if (!isUndefined(from._locale)) {
            to._locale = from._locale;
        }

        if (momentPropertiesLen > 0) {
            for (i = 0; i < momentPropertiesLen; i++) {
                prop = momentProperties[i];
                val = from[prop];
                if (!isUndefined(val)) {
                    to[prop] = val;
                }
            }
        }

        return to;
    }

    // Moment prototype object
    function Moment(config) {
        copyConfig(this, config);
        this._d = new Date(config._d != null ? config._d.getTime() : NaN);
        if (!this.isValid()) {
            this._d = new Date(NaN);
        }
        // Prevent infinite loop in case updateOffset creates new moment
        // objects.
        if (updateInProgress === false) {
            updateInProgress = true;
            hooks.updateOffset(this);
            updateInProgress = false;
        }
    }

    function isMoment(obj) {
        return (
            obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
        );
    }

    function warn(msg) {
        if (
            hooks.suppressDeprecationWarnings === false &&
            typeof console !== 'undefined' &&
            console.warn
        ) {
            console.warn('Deprecation warning: ' + msg);
        }
    }

    function deprecate(msg, fn) {
        var firstTime = true;

        return extend(function () {
            if (hooks.deprecationHandler != null) {
                hooks.deprecationHandler(null, msg);
            }
            if (firstTime) {
                var args = [],
                    arg,
                    i,
                    key,
                    argLen = arguments.length;
                for (i = 0; i < argLen; i++) {
                    arg = '';
                    if (typeof arguments[i] === 'object') {
                        arg += '\n[' + i + '] ';
                        for (key in arguments[0]) {
                            if (hasOwnProp(arguments[0], key)) {
                                arg += key + ': ' + arguments[0][key] + ', ';
                            }
                        }
                        arg = arg.slice(0, -2); // Remove trailing comma and space
                    } else {
                        arg = arguments[i];
                    }
                    args.push(arg);
                }
                warn(
                    msg +
                        '\nArguments: ' +
                        Array.prototype.slice.call(args).join('') +
                        '\n' +
                        new Error().stack
                );
                firstTime = false;
            }
            return fn.apply(this, arguments);
        }, fn);
    }

    var deprecations = {};

    function deprecateSimple(name, msg) {
        if (hooks.deprecationHandler != null) {
            hooks.deprecationHandler(name, msg);
        }
        if (!deprecations[name]) {
            warn(msg);
            deprecations[name] = true;
        }
    }

    hooks.suppressDeprecationWarnings = false;
    hooks.deprecationHandler = null;

    function isFunction(input) {
        return (
            (typeof Function !== 'undefined' && input instanceof Function) ||
            Object.prototype.toString.call(input) === '[object Function]'
        );
    }

    function set(config) {
        var prop, i;
        for (i in config) {
            if (hasOwnProp(config, i)) {
                prop = config[i];
                if (isFunction(prop)) {
                    this[i] = prop;
                } else {
                    this['_' + i] = prop;
                }
            }
        }
        this._config = config;
        // Lenient ordinal parsing accepts just a number in addition to
        // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
        // TODO: Remove "ordinalParse" fallback in next major release.
        this._dayOfMonthOrdinalParseLenient = new RegExp(
            (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
                '|' +
                /\d{1,2}/.source
        );
    }

    function mergeConfigs(parentConfig, childConfig) {
        var res = extend({}, parentConfig),
            prop;
        for (prop in childConfig) {
            if (hasOwnProp(childConfig, prop)) {
                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
                    res[prop] = {};
                    extend(res[prop], parentConfig[prop]);
                    extend(res[prop], childConfig[prop]);
                } else if (childConfig[prop] != null) {
                    res[prop] = childConfig[prop];
                } else {
                    delete res[prop];
                }
            }
        }
        for (prop in parentConfig) {
            if (
                hasOwnProp(parentConfig, prop) &&
                !hasOwnProp(childConfig, prop) &&
                isObject(parentConfig[prop])
            ) {
                // make sure changes to properties don't modify parent config
                res[prop] = extend({}, res[prop]);
            }
        }
        return res;
    }

    function Locale(config) {
        if (config != null) {
            this.set(config);
        }
    }

    var keys;

    if (Object.keys) {
        keys = Object.keys;
    } else {
        keys = function (obj) {
            var i,
                res = [];
            for (i in obj) {
                if (hasOwnProp(obj, i)) {
                    res.push(i);
                }
            }
            return res;
        };
    }

    var defaultCalendar = {
        sameDay: '[Today at] LT',
        nextDay: '[Tomorrow at] LT',
        nextWeek: 'dddd [at] LT',
        lastDay: '[Yesterday at] LT',
        lastWeek: '[Last] dddd [at] LT',
        sameElse: 'L',
    };

    function calendar(key, mom, now) {
        var output = this._calendar[key] || this._calendar['sameElse'];
        return isFunction(output) ? output.call(mom, now) : output;
    }

    function zeroFill(number, targetLength, forceSign) {
        var absNumber = '' + Math.abs(number),
            zerosToFill = targetLength - absNumber.length,
            sign = number >= 0;
        return (
            (sign ? (forceSign ? '+' : '') : '-') +
            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
            absNumber
        );
    }

    var formattingTokens =
            /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
        localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
        formatFunctions = {},
        formatTokenFunctions = {};

    // token:    'M'
    // padded:   ['MM', 2]
    // ordinal:  'Mo'
    // callback: function () { this.month() + 1 }
    function addFormatToken(token, padded, ordinal, callback) {
        var func = callback;
        if (typeof callback === 'string') {
            func = function () {
                return this[callback]();
            };
        }
        if (token) {
            formatTokenFunctions[token] = func;
        }
        if (padded) {
            formatTokenFunctions[padded[0]] = function () {
                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
            };
        }
        if (ordinal) {
            formatTokenFunctions[ordinal] = function () {
                return this.localeData().ordinal(
                    func.apply(this, arguments),
                    token
                );
            };
        }
    }

    function removeFormattingTokens(input) {
        if (input.match(/\[[\s\S]/)) {
            return input.replace(/^\[|\]$/g, '');
        }
        return input.replace(/\\/g, '');
    }

    function makeFormatFunction(format) {
        var array = format.match(formattingTokens),
            i,
            length;

        for (i = 0, length = array.length; i < length; i++) {
            if (formatTokenFunctions[array[i]]) {
                array[i] = formatTokenFunctions[array[i]];
            } else {
                array[i] = removeFormattingTokens(array[i]);
            }
        }

        return function (mom) {
            var output = '',
                i;
            for (i = 0; i < length; i++) {
                output += isFunction(array[i])
                    ? array[i].call(mom, format)
                    : array[i];
            }
            return output;
        };
    }

    // format date using native date object
    function formatMoment(m, format) {
        if (!m.isValid()) {
            return m.localeData().invalidDate();
        }

        format = expandFormat(format, m.localeData());
        formatFunctions[format] =
            formatFunctions[format] || makeFormatFunction(format);

        return formatFunctions[format](m);
    }

    function expandFormat(format, locale) {
        var i = 5;

        function replaceLongDateFormatTokens(input) {
            return locale.longDateFormat(input) || input;
        }

        localFormattingTokens.lastIndex = 0;
        while (i >= 0 && localFormattingTokens.test(format)) {
            format = format.replace(
                localFormattingTokens,
                replaceLongDateFormatTokens
            );
            localFormattingTokens.lastIndex = 0;
            i -= 1;
        }

        return format;
    }

    var defaultLongDateFormat = {
        LTS: 'h:mm:ss A',
        LT: 'h:mm A',
        L: 'MM/DD/YYYY',
        LL: 'MMMM D, YYYY',
        LLL: 'MMMM D, YYYY h:mm A',
        LLLL: 'dddd, MMMM D, YYYY h:mm A',
    };

    function longDateFormat(key) {
        var format = this._longDateFormat[key],
            formatUpper = this._longDateFormat[key.toUpperCase()];

        if (format || !formatUpper) {
            return format;
        }

        this._longDateFormat[key] = formatUpper
            .match(formattingTokens)
            .map(function (tok) {
                if (
                    tok === 'MMMM' ||
                    tok === 'MM' ||
                    tok === 'DD' ||
                    tok === 'dddd'
                ) {
                    return tok.slice(1);
                }
                return tok;
            })
            .join('');

        return this._longDateFormat[key];
    }

    var defaultInvalidDate = 'Invalid date';

    function invalidDate() {
        return this._invalidDate;
    }

    var defaultOrdinal = '%d',
        defaultDayOfMonthOrdinalParse = /\d{1,2}/;

    function ordinal(number) {
        return this._ordinal.replace('%d', number);
    }

    var defaultRelativeTime = {
        future: 'in %s',
        past: '%s ago',
        s: 'a few seconds',
        ss: '%d seconds',
        m: 'a minute',
        mm: '%d minutes',
        h: 'an hour',
        hh: '%d hours',
        d: 'a day',
        dd: '%d days',
        w: 'a week',
        ww: '%d weeks',
        M: 'a month',
        MM: '%d months',
        y: 'a year',
        yy: '%d years',
    };

    function relativeTime(number, withoutSuffix, string, isFuture) {
        var output = this._relativeTime[string];
        return isFunction(output)
            ? output(number, withoutSuffix, string, isFuture)
            : output.replace(/%d/i, number);
    }

    function pastFuture(diff, output) {
        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
        return isFunction(format) ? format(output) : format.replace(/%s/i, output);
    }

    var aliases = {
        D: 'date',
        dates: 'date',
        date: 'date',
        d: 'day',
        days: 'day',
        day: 'day',
        e: 'weekday',
        weekdays: 'weekday',
        weekday: 'weekday',
        E: 'isoWeekday',
        isoweekdays: 'isoWeekday',
        isoweekday: 'isoWeekday',
        DDD: 'dayOfYear',
        dayofyears: 'dayOfYear',
        dayofyear: 'dayOfYear',
        h: 'hour',
        hours: 'hour',
        hour: 'hour',
        ms: 'millisecond',
        milliseconds: 'millisecond',
        millisecond: 'millisecond',
        m: 'minute',
        minutes: 'minute',
        minute: 'minute',
        M: 'month',
        months: 'month',
        month: 'month',
        Q: 'quarter',
        quarters: 'quarter',
        quarter: 'quarter',
        s: 'second',
        seconds: 'second',
        second: 'second',
        gg: 'weekYear',
        weekyears: 'weekYear',
        weekyear: 'weekYear',
        GG: 'isoWeekYear',
        isoweekyears: 'isoWeekYear',
        isoweekyear: 'isoWeekYear',
        w: 'week',
        weeks: 'week',
        week: 'week',
        W: 'isoWeek',
        isoweeks: 'isoWeek',
        isoweek: 'isoWeek',
        y: 'year',
        years: 'year',
        year: 'year',
    };

    function normalizeUnits(units) {
        return typeof units === 'string'
            ? aliases[units] || aliases[units.toLowerCase()]
            : undefined;
    }

    function normalizeObjectUnits(inputObject) {
        var normalizedInput = {},
            normalizedProp,
            prop;

        for (prop in inputObject) {
            if (hasOwnProp(inputObject, prop)) {
                normalizedProp = normalizeUnits(prop);
                if (normalizedProp) {
                    normalizedInput[normalizedProp] = inputObject[prop];
                }
            }
        }

        return normalizedInput;
    }

    var priorities = {
        date: 9,
        day: 11,
        weekday: 11,
        isoWeekday: 11,
        dayOfYear: 4,
        hour: 13,
        millisecond: 16,
        minute: 14,
        month: 8,
        quarter: 7,
        second: 15,
        weekYear: 1,
        isoWeekYear: 1,
        week: 5,
        isoWeek: 5,
        year: 1,
    };

    function getPrioritizedUnits(unitsObj) {
        var units = [],
            u;
        for (u in unitsObj) {
            if (hasOwnProp(unitsObj, u)) {
                units.push({ unit: u, priority: priorities[u] });
            }
        }
        units.sort(function (a, b) {
            return a.priority - b.priority;
        });
        return units;
    }

    var match1 = /\d/, //       0 - 9
        match2 = /\d\d/, //      00 - 99
        match3 = /\d{3}/, //     000 - 999
        match4 = /\d{4}/, //    0000 - 9999
        match6 = /[+-]?\d{6}/, // -999999 - 999999
        match1to2 = /\d\d?/, //       0 - 99
        match3to4 = /\d\d\d\d?/, //     999 - 9999
        match5to6 = /\d\d\d\d\d\d?/, //   99999 - 999999
        match1to3 = /\d{1,3}/, //       0 - 999
        match1to4 = /\d{1,4}/, //       0 - 9999
        match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
        matchUnsigned = /\d+/, //       0 - inf
        matchSigned = /[+-]?\d+/, //    -inf - inf
        matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
        matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
        matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
        // any word (or two) characters or numbers including two/three word month in arabic.
        // includes scottish gaelic two word and hyphenated months
        matchWord =
            /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
        match1to2NoLeadingZero = /^[1-9]\d?/, //         1-99
        match1to2HasZero = /^([1-9]\d|\d)/, //           0-99
        regexes;

    regexes = {};

    function addRegexToken(token, regex, strictRegex) {
        regexes[token] = isFunction(regex)
            ? regex
            : function (isStrict, localeData) {
                  return isStrict && strictRegex ? strictRegex : regex;
              };
    }

    function getParseRegexForToken(token, config) {
        if (!hasOwnProp(regexes, token)) {
            return new RegExp(unescapeFormat(token));
        }

        return regexes[token](config._strict, config._locale);
    }

    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
    function unescapeFormat(s) {
        return regexEscape(
            s
                .replace('\\', '')
                .replace(
                    /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
                    function (matched, p1, p2, p3, p4) {
                        return p1 || p2 || p3 || p4;
                    }
                )
        );
    }

    function regexEscape(s) {
        return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
    }

    function absFloor(number) {
        if (number < 0) {
            // -0 -> 0
            return Math.ceil(number) || 0;
        } else {
            return Math.floor(number);
        }
    }

    function toInt(argumentForCoercion) {
        var coercedNumber = +argumentForCoercion,
            value = 0;

        if (coercedNumber !== 0 && isFinite(coercedNumber)) {
            value = absFloor(coercedNumber);
        }

        return value;
    }

    var tokens = {};

    function addParseToken(token, callback) {
        var i,
            func = callback,
            tokenLen;
        if (typeof token === 'string') {
            token = [token];
        }
        if (isNumber(callback)) {
            func = function (input, array) {
                array[callback] = toInt(input);
            };
        }
        tokenLen = token.length;
        for (i = 0; i < tokenLen; i++) {
            tokens[token[i]] = func;
        }
    }

    function addWeekParseToken(token, callback) {
        addParseToken(token, function (input, array, config, token) {
            config._w = config._w || {};
            callback(input, config._w, config, token);
        });
    }

    function addTimeToArrayFromToken(token, input, config) {
        if (input != null && hasOwnProp(tokens, token)) {
            tokens[token](input, config._a, config, token);
        }
    }

    function isLeapYear(year) {
        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
    }

    var YEAR = 0,
        MONTH = 1,
        DATE = 2,
        HOUR = 3,
        MINUTE = 4,
        SECOND = 5,
        MILLISECOND = 6,
        WEEK = 7,
        WEEKDAY = 8;

    // FORMATTING

    addFormatToken('Y', 0, 0, function () {
        var y = this.year();
        return y <= 9999 ? zeroFill(y, 4) : '+' + y;
    });

    addFormatToken(0, ['YY', 2], 0, function () {
        return this.year() % 100;
    });

    addFormatToken(0, ['YYYY', 4], 0, 'year');
    addFormatToken(0, ['YYYYY', 5], 0, 'year');
    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');

    // PARSING

    addRegexToken('Y', matchSigned);
    addRegexToken('YY', match1to2, match2);
    addRegexToken('YYYY', match1to4, match4);
    addRegexToken('YYYYY', match1to6, match6);
    addRegexToken('YYYYYY', match1to6, match6);

    addParseToken(['YYYYY', 'YYYYYY'], YEAR);
    addParseToken('YYYY', function (input, array) {
        array[YEAR] =
            input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
    });
    addParseToken('YY', function (input, array) {
        array[YEAR] = hooks.parseTwoDigitYear(input);
    });
    addParseToken('Y', function (input, array) {
        array[YEAR] = parseInt(input, 10);
    });

    // HELPERS

    function daysInYear(year) {
        return isLeapYear(year) ? 366 : 365;
    }

    // HOOKS

    hooks.parseTwoDigitYear = function (input) {
        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
    };

    // MOMENTS

    var getSetYear = makeGetSet('FullYear', true);

    function getIsLeapYear() {
        return isLeapYear(this.year());
    }

    function makeGetSet(unit, keepTime) {
        return function (value) {
            if (value != null) {
                set$1(this, unit, value);
                hooks.updateOffset(this, keepTime);
                return this;
            } else {
                return get(this, unit);
            }
        };
    }

    function get(mom, unit) {
        if (!mom.isValid()) {
            return NaN;
        }

        var d = mom._d,
            isUTC = mom._isUTC;

        switch (unit) {
            case 'Milliseconds':
                return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
            case 'Seconds':
                return isUTC ? d.getUTCSeconds() : d.getSeconds();
            case 'Minutes':
                return isUTC ? d.getUTCMinutes() : d.getMinutes();
            case 'Hours':
                return isUTC ? d.getUTCHours() : d.getHours();
            case 'Date':
                return isUTC ? d.getUTCDate() : d.getDate();
            case 'Day':
                return isUTC ? d.getUTCDay() : d.getDay();
            case 'Month':
                return isUTC ? d.getUTCMonth() : d.getMonth();
            case 'FullYear':
                return isUTC ? d.getUTCFullYear() : d.getFullYear();
            default:
                return NaN; // Just in case
        }
    }

    function set$1(mom, unit, value) {
        var d, isUTC, year, month, date;

        if (!mom.isValid() || isNaN(value)) {
            return;
        }

        d = mom._d;
        isUTC = mom._isUTC;

        switch (unit) {
            case 'Milliseconds':
                return void (isUTC
                    ? d.setUTCMilliseconds(value)
                    : d.setMilliseconds(value));
            case 'Seconds':
                return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
            case 'Minutes':
                return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
            case 'Hours':
                return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
            case 'Date':
                return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
            // case 'Day': // Not real
            //    return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
            // case 'Month': // Not used because we need to pass two variables
            //     return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
            case 'FullYear':
                break; // See below ...
            default:
                return; // Just in case
        }

        year = value;
        month = mom.month();
        date = mom.date();
        date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
        void (isUTC
            ? d.setUTCFullYear(year, month, date)
            : d.setFullYear(year, month, date));
    }

    // MOMENTS

    function stringGet(units) {
        units = normalizeUnits(units);
        if (isFunction(this[units])) {
            return this[units]();
        }
        return this;
    }

    function stringSet(units, value) {
        if (typeof units === 'object') {
            units = normalizeObjectUnits(units);
            var prioritized = getPrioritizedUnits(units),
                i,
                prioritizedLen = prioritized.length;
            for (i = 0; i < prioritizedLen; i++) {
                this[prioritized[i].unit](units[prioritized[i].unit]);
            }
        } else {
            units = normalizeUnits(units);
            if (isFunction(this[units])) {
                return this[units](value);
            }
        }
        return this;
    }

    function mod(n, x) {
        return ((n % x) + x) % x;
    }

    var indexOf;

    if (Array.prototype.indexOf) {
        indexOf = Array.prototype.indexOf;
    } else {
        indexOf = function (o) {
            // I know
            var i;
            for (i = 0; i < this.length; ++i) {
                if (this[i] === o) {
                    return i;
                }
            }
            return -1;
        };
    }

    function daysInMonth(year, month) {
        if (isNaN(year) || isNaN(month)) {
            return NaN;
        }
        var modMonth = mod(month, 12);
        year += (month - modMonth) / 12;
        return modMonth === 1
            ? isLeapYear(year)
                ? 29
                : 28
            : 31 - ((modMonth % 7) % 2);
    }

    // FORMATTING

    addFormatToken('M', ['MM', 2], 'Mo', function () {
        return this.month() + 1;
    });

    addFormatToken('MMM', 0, 0, function (format) {
        return this.localeData().monthsShort(this, format);
    });

    addFormatToken('MMMM', 0, 0, function (format) {
        return this.localeData().months(this, format);
    });

    // PARSING

    addRegexToken('M', match1to2, match1to2NoLeadingZero);
    addRegexToken('MM', match1to2, match2);
    addRegexToken('MMM', function (isStrict, locale) {
        return locale.monthsShortRegex(isStrict);
    });
    addRegexToken('MMMM', function (isStrict, locale) {
        return locale.monthsRegex(isStrict);
    });

    addParseToken(['M', 'MM'], function (input, array) {
        array[MONTH] = toInt(input) - 1;
    });

    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
        var month = config._locale.monthsParse(input, token, config._strict);
        // if we didn't find a month name, mark the date as invalid.
        if (month != null) {
            array[MONTH] = month;
        } else {
            getParsingFlags(config).invalidMonth = input;
        }
    });

    // LOCALES

    var defaultLocaleMonths =
            'January_February_March_April_May_June_July_August_September_October_November_December'.split(
                '_'
            ),
        defaultLocaleMonthsShort =
            'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
        defaultMonthsShortRegex = matchWord,
        defaultMonthsRegex = matchWord;

    function localeMonths(m, format) {
        if (!m) {
            return isArray(this._months)
                ? this._months
                : this._months['standalone'];
        }
        return isArray(this._months)
            ? this._months[m.month()]
            : this._months[
                  (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
                      ? 'format'
                      : 'standalone'
              ][m.month()];
    }

    function localeMonthsShort(m, format) {
        if (!m) {
            return isArray(this._monthsShort)
                ? this._monthsShort
                : this._monthsShort['standalone'];
        }
        return isArray(this._monthsShort)
            ? this._monthsShort[m.month()]
            : this._monthsShort[
                  MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
              ][m.month()];
    }

    function handleStrictParse(monthName, format, strict) {
        var i,
            ii,
            mom,
            llc = monthName.toLocaleLowerCase();
        if (!this._monthsParse) {
            // this is not used
            this._monthsParse = [];
            this._longMonthsParse = [];
            this._shortMonthsParse = [];
            for (i = 0; i < 12; ++i) {
                mom = createUTC([2000, i]);
                this._shortMonthsParse[i] = this.monthsShort(
                    mom,
                    ''
                ).toLocaleLowerCase();
                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
            }
        }

        if (strict) {
            if (format === 'MMM') {
                ii = indexOf.call(this._shortMonthsParse, llc);
                return ii !== -1 ? ii : null;
            } else {
                ii = indexOf.call(this._longMonthsParse, llc);
                return ii !== -1 ? ii : null;
            }
        } else {
            if (format === 'MMM') {
                ii = indexOf.call(this._shortMonthsParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._longMonthsParse, llc);
                return ii !== -1 ? ii : null;
            } else {
                ii = indexOf.call(this._longMonthsParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._shortMonthsParse, llc);
                return ii !== -1 ? ii : null;
            }
        }
    }

    function localeMonthsParse(monthName, format, strict) {
        var i, mom, regex;

        if (this._monthsParseExact) {
            return handleStrictParse.call(this, monthName, format, strict);
        }

        if (!this._monthsParse) {
            this._monthsParse = [];
            this._longMonthsParse = [];
            this._shortMonthsParse = [];
        }

        // TODO: add sorting
        // Sorting makes sure if one month (or abbr) is a prefix of another
        // see sorting in computeMonthsParse
        for (i = 0; i < 12; i++) {
            // make the regex if we don't have it already
            mom = createUTC([2000, i]);
            if (strict && !this._longMonthsParse[i]) {
                this._longMonthsParse[i] = new RegExp(
                    '^' + this.months(mom, '').replace('.', '') + '$',
                    'i'
                );
                this._shortMonthsParse[i] = new RegExp(
                    '^' + this.monthsShort(mom, '').replace('.', '') + '$',
                    'i'
                );
            }
            if (!strict && !this._monthsParse[i]) {
                regex =
                    '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
            }
            // test the regex
            if (
                strict &&
                format === 'MMMM' &&
                this._longMonthsParse[i].test(monthName)
            ) {
                return i;
            } else if (
                strict &&
                format === 'MMM' &&
                this._shortMonthsParse[i].test(monthName)
            ) {
                return i;
            } else if (!strict && this._monthsParse[i].test(monthName)) {
                return i;
            }
        }
    }

    // MOMENTS

    function setMonth(mom, value) {
        if (!mom.isValid()) {
            // No op
            return mom;
        }

        if (typeof value === 'string') {
            if (/^\d+$/.test(value)) {
                value = toInt(value);
            } else {
                value = mom.localeData().monthsParse(value);
                // TODO: Another silent failure?
                if (!isNumber(value)) {
                    return mom;
                }
            }
        }

        var month = value,
            date = mom.date();

        date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
        void (mom._isUTC
            ? mom._d.setUTCMonth(month, date)
            : mom._d.setMonth(month, date));
        return mom;
    }

    function getSetMonth(value) {
        if (value != null) {
            setMonth(this, value);
            hooks.updateOffset(this, true);
            return this;
        } else {
            return get(this, 'Month');
        }
    }

    function getDaysInMonth() {
        return daysInMonth(this.year(), this.month());
    }

    function monthsShortRegex(isStrict) {
        if (this._monthsParseExact) {
            if (!hasOwnProp(this, '_monthsRegex')) {
                computeMonthsParse.call(this);
            }
            if (isStrict) {
                return this._monthsShortStrictRegex;
            } else {
                return this._monthsShortRegex;
            }
        } else {
            if (!hasOwnProp(this, '_monthsShortRegex')) {
                this._monthsShortRegex = defaultMonthsShortRegex;
            }
            return this._monthsShortStrictRegex && isStrict
                ? this._monthsShortStrictRegex
                : this._monthsShortRegex;
        }
    }

    function monthsRegex(isStrict) {
        if (this._monthsParseExact) {
            if (!hasOwnProp(this, '_monthsRegex')) {
                computeMonthsParse.call(this);
            }
            if (isStrict) {
                return this._monthsStrictRegex;
            } else {
                return this._monthsRegex;
            }
        } else {
            if (!hasOwnProp(this, '_monthsRegex')) {
                this._monthsRegex = defaultMonthsRegex;
            }
            return this._monthsStrictRegex && isStrict
                ? this._monthsStrictRegex
                : this._monthsRegex;
        }
    }

    function computeMonthsParse() {
        function cmpLenRev(a, b) {
            return b.length - a.length;
        }

        var shortPieces = [],
            longPieces = [],
            mixedPieces = [],
            i,
            mom,
            shortP,
            longP;
        for (i = 0; i < 12; i++) {
            // make the regex if we don't have it already
            mom = createUTC([2000, i]);
            shortP = regexEscape(this.monthsShort(mom, ''));
            longP = regexEscape(this.months(mom, ''));
            shortPieces.push(shortP);
            longPieces.push(longP);
            mixedPieces.push(longP);
            mixedPieces.push(shortP);
        }
        // Sorting makes sure if one month (or abbr) is a prefix of another it
        // will match the longer piece.
        shortPieces.sort(cmpLenRev);
        longPieces.sort(cmpLenRev);
        mixedPieces.sort(cmpLenRev);

        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
        this._monthsShortRegex = this._monthsRegex;
        this._monthsStrictRegex = new RegExp(
            '^(' + longPieces.join('|') + ')',
            'i'
        );
        this._monthsShortStrictRegex = new RegExp(
            '^(' + shortPieces.join('|') + ')',
            'i'
        );
    }

    function createDate(y, m, d, h, M, s, ms) {
        // can't just apply() to create a date:
        // https://stackoverflow.com/q/181348
        var date;
        // the date constructor remaps years 0-99 to 1900-1999
        if (y < 100 && y >= 0) {
            // preserve leap years using a full 400 year cycle, then reset
            date = new Date(y + 400, m, d, h, M, s, ms);
            if (isFinite(date.getFullYear())) {
                date.setFullYear(y);
            }
        } else {
            date = new Date(y, m, d, h, M, s, ms);
        }

        return date;
    }

    function createUTCDate(y) {
        var date, args;
        // the Date.UTC function remaps years 0-99 to 1900-1999
        if (y < 100 && y >= 0) {
            args = Array.prototype.slice.call(arguments);
            // preserve leap years using a full 400 year cycle, then reset
            args[0] = y + 400;
            date = new Date(Date.UTC.apply(null, args));
            if (isFinite(date.getUTCFullYear())) {
                date.setUTCFullYear(y);
            }
        } else {
            date = new Date(Date.UTC.apply(null, arguments));
        }

        return date;
    }

    // start-of-first-week - start-of-year
    function firstWeekOffset(year, dow, doy) {
        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
            fwd = 7 + dow - doy,
            // first-week day local weekday -- which local weekday is fwd
            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;

        return -fwdlw + fwd - 1;
    }

    // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
        var localWeekday = (7 + weekday - dow) % 7,
            weekOffset = firstWeekOffset(year, dow, doy),
            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
            resYear,
            resDayOfYear;

        if (dayOfYear <= 0) {
            resYear = year - 1;
            resDayOfYear = daysInYear(resYear) + dayOfYear;
        } else if (dayOfYear > daysInYear(year)) {
            resYear = year + 1;
            resDayOfYear = dayOfYear - daysInYear(year);
        } else {
            resYear = year;
            resDayOfYear = dayOfYear;
        }

        return {
            year: resYear,
            dayOfYear: resDayOfYear,
        };
    }

    function weekOfYear(mom, dow, doy) {
        var weekOffset = firstWeekOffset(mom.year(), dow, doy),
            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
            resWeek,
            resYear;

        if (week < 1) {
            resYear = mom.year() - 1;
            resWeek = week + weeksInYear(resYear, dow, doy);
        } else if (week > weeksInYear(mom.year(), dow, doy)) {
            resWeek = week - weeksInYear(mom.year(), dow, doy);
            resYear = mom.year() + 1;
        } else {
            resYear = mom.year();
            resWeek = week;
        }

        return {
            week: resWeek,
            year: resYear,
        };
    }

    function weeksInYear(year, dow, doy) {
        var weekOffset = firstWeekOffset(year, dow, doy),
            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
    }

    // FORMATTING

    addFormatToken('w', ['ww', 2], 'wo', 'week');
    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');

    // PARSING

    addRegexToken('w', match1to2, match1to2NoLeadingZero);
    addRegexToken('ww', match1to2, match2);
    addRegexToken('W', match1to2, match1to2NoLeadingZero);
    addRegexToken('WW', match1to2, match2);

    addWeekParseToken(
        ['w', 'ww', 'W', 'WW'],
        function (input, week, config, token) {
            week[token.substr(0, 1)] = toInt(input);
        }
    );

    // HELPERS

    // LOCALES

    function localeWeek(mom) {
        return weekOfYear(mom, this._week.dow, this._week.doy).week;
    }

    var defaultLocaleWeek = {
        dow: 0, // Sunday is the first day of the week.
        doy: 6, // The week that contains Jan 6th is the first week of the year.
    };

    function localeFirstDayOfWeek() {
        return this._week.dow;
    }

    function localeFirstDayOfYear() {
        return this._week.doy;
    }

    // MOMENTS

    function getSetWeek(input) {
        var week = this.localeData().week(this);
        return input == null ? week : this.add((input - week) * 7, 'd');
    }

    function getSetISOWeek(input) {
        var week = weekOfYear(this, 1, 4).week;
        return input == null ? week : this.add((input - week) * 7, 'd');
    }

    // FORMATTING

    addFormatToken('d', 0, 'do', 'day');

    addFormatToken('dd', 0, 0, function (format) {
        return this.localeData().weekdaysMin(this, format);
    });

    addFormatToken('ddd', 0, 0, function (format) {
        return this.localeData().weekdaysShort(this, format);
    });

    addFormatToken('dddd', 0, 0, function (format) {
        return this.localeData().weekdays(this, format);
    });

    addFormatToken('e', 0, 0, 'weekday');
    addFormatToken('E', 0, 0, 'isoWeekday');

    // PARSING

    addRegexToken('d', match1to2);
    addRegexToken('e', match1to2);
    addRegexToken('E', match1to2);
    addRegexToken('dd', function (isStrict, locale) {
        return locale.weekdaysMinRegex(isStrict);
    });
    addRegexToken('ddd', function (isStrict, locale) {
        return locale.weekdaysShortRegex(isStrict);
    });
    addRegexToken('dddd', function (isStrict, locale) {
        return locale.weekdaysRegex(isStrict);
    });

    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
        var weekday = config._locale.weekdaysParse(input, token, config._strict);
        // if we didn't get a weekday name, mark the date as invalid
        if (weekday != null) {
            week.d = weekday;
        } else {
            getParsingFlags(config).invalidWeekday = input;
        }
    });

    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
        week[token] = toInt(input);
    });

    // HELPERS

    function parseWeekday(input, locale) {
        if (typeof input !== 'string') {
            return input;
        }

        if (!isNaN(input)) {
            return parseInt(input, 10);
        }

        input = locale.weekdaysParse(input);
        if (typeof input === 'number') {
            return input;
        }

        return null;
    }

    function parseIsoWeekday(input, locale) {
        if (typeof input === 'string') {
            return locale.weekdaysParse(input) % 7 || 7;
        }
        return isNaN(input) ? null : input;
    }

    // LOCALES
    function shiftWeekdays(ws, n) {
        return ws.slice(n, 7).concat(ws.slice(0, n));
    }

    var defaultLocaleWeekdays =
            'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
        defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        defaultWeekdaysRegex = matchWord,
        defaultWeekdaysShortRegex = matchWord,
        defaultWeekdaysMinRegex = matchWord;

    function localeWeekdays(m, format) {
        var weekdays = isArray(this._weekdays)
            ? this._weekdays
            : this._weekdays[
                  m && m !== true && this._weekdays.isFormat.test(format)
                      ? 'format'
                      : 'standalone'
              ];
        return m === true
            ? shiftWeekdays(weekdays, this._week.dow)
            : m
              ? weekdays[m.day()]
              : weekdays;
    }

    function localeWeekdaysShort(m) {
        return m === true
            ? shiftWeekdays(this._weekdaysShort, this._week.dow)
            : m
              ? this._weekdaysShort[m.day()]
              : this._weekdaysShort;
    }

    function localeWeekdaysMin(m) {
        return m === true
            ? shiftWeekdays(this._weekdaysMin, this._week.dow)
            : m
              ? this._weekdaysMin[m.day()]
              : this._weekdaysMin;
    }

    function handleStrictParse$1(weekdayName, format, strict) {
        var i,
            ii,
            mom,
            llc = weekdayName.toLocaleLowerCase();
        if (!this._weekdaysParse) {
            this._weekdaysParse = [];
            this._shortWeekdaysParse = [];
            this._minWeekdaysParse = [];

            for (i = 0; i < 7; ++i) {
                mom = createUTC([2000, 1]).day(i);
                this._minWeekdaysParse[i] = this.weekdaysMin(
                    mom,
                    ''
                ).toLocaleLowerCase();
                this._shortWeekdaysParse[i] = this.weekdaysShort(
                    mom,
                    ''
                ).toLocaleLowerCase();
                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
            }
        }

        if (strict) {
            if (format === 'dddd') {
                ii = indexOf.call(this._weekdaysParse, llc);
                return ii !== -1 ? ii : null;
            } else if (format === 'ddd') {
                ii = indexOf.call(this._shortWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
            } else {
                ii = indexOf.call(this._minWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
            }
        } else {
            if (format === 'dddd') {
                ii = indexOf.call(this._weekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._shortWeekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._minWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
            } else if (format === 'ddd') {
                ii = indexOf.call(this._shortWeekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._weekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._minWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
            } else {
                ii = indexOf.call(this._minWeekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._weekdaysParse, llc);
                if (ii !== -1) {
                    return ii;
                }
                ii = indexOf.call(this._shortWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
            }
        }
    }

    function localeWeekdaysParse(weekdayName, format, strict) {
        var i, mom, regex;

        if (this._weekdaysParseExact) {
            return handleStrictParse$1.call(this, weekdayName, format, strict);
        }

        if (!this._weekdaysParse) {
            this._weekdaysParse = [];
            this._minWeekdaysParse = [];
            this._shortWeekdaysParse = [];
            this._fullWeekdaysParse = [];
        }

        for (i = 0; i < 7; i++) {
            // make the regex if we don't have it already

            mom = createUTC([2000, 1]).day(i);
            if (strict && !this._fullWeekdaysParse[i]) {
                this._fullWeekdaysParse[i] = new RegExp(
                    '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
                    'i'
                );
                this._shortWeekdaysParse[i] = new RegExp(
                    '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
                    'i'
                );
                this._minWeekdaysParse[i] = new RegExp(
                    '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
                    'i'
                );
            }
            if (!this._weekdaysParse[i]) {
                regex =
                    '^' +
                    this.weekdays(mom, '') +
                    '|^' +
                    this.weekdaysShort(mom, '') +
                    '|^' +
                    this.weekdaysMin(mom, '');
                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
            }
            // test the regex
            if (
                strict &&
                format === 'dddd' &&
                this._fullWeekdaysParse[i].test(weekdayName)
            ) {
                return i;
            } else if (
                strict &&
                format === 'ddd' &&
                this._shortWeekdaysParse[i].test(weekdayName)
            ) {
                return i;
            } else if (
                strict &&
                format === 'dd' &&
                this._minWeekdaysParse[i].test(weekdayName)
            ) {
                return i;
            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
                return i;
            }
        }
    }

    // MOMENTS

    function getSetDayOfWeek(input) {
        if (!this.isValid()) {
            return input != null ? this : NaN;
        }

        var day = get(this, 'Day');
        if (input != null) {
            input = parseWeekday(input, this.localeData());
            return this.add(input - day, 'd');
        } else {
            return day;
        }
    }

    function getSetLocaleDayOfWeek(input) {
        if (!this.isValid()) {
            return input != null ? this : NaN;
        }
        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
        return input == null ? weekday : this.add(input - weekday, 'd');
    }

    function getSetISODayOfWeek(input) {
        if (!this.isValid()) {
            return input != null ? this : NaN;
        }

        // behaves the same as moment#day except
        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
        // as a setter, sunday should belong to the previous week.

        if (input != null) {
            var weekday = parseIsoWeekday(input, this.localeData());
            return this.day(this.day() % 7 ? weekday : weekday - 7);
        } else {
            return this.day() || 7;
        }
    }

    function weekdaysRegex(isStrict) {
        if (this._weekdaysParseExact) {
            if (!hasOwnProp(this, '_weekdaysRegex')) {
                computeWeekdaysParse.call(this);
            }
            if (isStrict) {
                return this._weekdaysStrictRegex;
            } else {
                return this._weekdaysRegex;
            }
        } else {
            if (!hasOwnProp(this, '_weekdaysRegex')) {
                this._weekdaysRegex = defaultWeekdaysRegex;
            }
            return this._weekdaysStrictRegex && isStrict
                ? this._weekdaysStrictRegex
                : this._weekdaysRegex;
        }
    }

    function weekdaysShortRegex(isStrict) {
        if (this._weekdaysParseExact) {
            if (!hasOwnProp(this, '_weekdaysRegex')) {
                computeWeekdaysParse.call(this);
            }
            if (isStrict) {
                return this._weekdaysShortStrictRegex;
            } else {
                return this._weekdaysShortRegex;
            }
        } else {
            if (!hasOwnProp(this, '_weekdaysShortRegex')) {
                this._weekdaysShortRegex = defaultWeekdaysShortRegex;
            }
            return this._weekdaysShortStrictRegex && isStrict
                ? this._weekdaysShortStrictRegex
                : this._weekdaysShortRegex;
        }
    }

    function weekdaysMinRegex(isStrict) {
        if (this._weekdaysParseExact) {
            if (!hasOwnProp(this, '_weekdaysRegex')) {
                computeWeekdaysParse.call(this);
            }
            if (isStrict) {
                return this._weekdaysMinStrictRegex;
            } else {
                return this._weekdaysMinRegex;
            }
        } else {
            if (!hasOwnProp(this, '_weekdaysMinRegex')) {
                this._weekdaysMinRegex = defaultWeekdaysMinRegex;
            }
            return this._weekdaysMinStrictRegex && isStrict
                ? this._weekdaysMinStrictRegex
                : this._weekdaysMinRegex;
        }
    }

    function computeWeekdaysParse() {
        function cmpLenRev(a, b) {
            return b.length - a.length;
        }

        var minPieces = [],
            shortPieces = [],
            longPieces = [],
            mixedPieces = [],
            i,
            mom,
            minp,
            shortp,
            longp;
        for (i = 0; i < 7; i++) {
            // make the regex if we don't have it already
            mom = createUTC([2000, 1]).day(i);
            minp = regexEscape(this.weekdaysMin(mom, ''));
            shortp = regexEscape(this.weekdaysShort(mom, ''));
            longp = regexEscape(this.weekdays(mom, ''));
            minPieces.push(minp);
            shortPieces.push(shortp);
            longPieces.push(longp);
            mixedPieces.push(minp);
            mixedPieces.push(shortp);
            mixedPieces.push(longp);
        }
        // Sorting makes sure if one weekday (or abbr) is a prefix of another it
        // will match the longer piece.
        minPieces.sort(cmpLenRev);
        shortPieces.sort(cmpLenRev);
        longPieces.sort(cmpLenRev);
        mixedPieces.sort(cmpLenRev);

        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
        this._weekdaysShortRegex = this._weekdaysRegex;
        this._weekdaysMinRegex = this._weekdaysRegex;

        this._weekdaysStrictRegex = new RegExp(
            '^(' + longPieces.join('|') + ')',
            'i'
        );
        this._weekdaysShortStrictRegex = new RegExp(
            '^(' + shortPieces.join('|') + ')',
            'i'
        );
        this._weekdaysMinStrictRegex = new RegExp(
            '^(' + minPieces.join('|') + ')',
            'i'
        );
    }

    // FORMATTING

    function hFormat() {
        return this.hours() % 12 || 12;
    }

    function kFormat() {
        return this.hours() || 24;
    }

    addFormatToken('H', ['HH', 2], 0, 'hour');
    addFormatToken('h', ['hh', 2], 0, hFormat);
    addFormatToken('k', ['kk', 2], 0, kFormat);

    addFormatToken('hmm', 0, 0, function () {
        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
    });

    addFormatToken('hmmss', 0, 0, function () {
        return (
            '' +
            hFormat.apply(this) +
            zeroFill(this.minutes(), 2) +
            zeroFill(this.seconds(), 2)
        );
    });

    addFormatToken('Hmm', 0, 0, function () {
        return '' + this.hours() + zeroFill(this.minutes(), 2);
    });

    addFormatToken('Hmmss', 0, 0, function () {
        return (
            '' +
            this.hours() +
            zeroFill(this.minutes(), 2) +
            zeroFill(this.seconds(), 2)
        );
    });

    function meridiem(token, lowercase) {
        addFormatToken(token, 0, 0, function () {
            return this.localeData().meridiem(
                this.hours(),
                this.minutes(),
                lowercase
            );
        });
    }

    meridiem('a', true);
    meridiem('A', false);

    // PARSING

    function matchMeridiem(isStrict, locale) {
        return locale._meridiemParse;
    }

    addRegexToken('a', matchMeridiem);
    addRegexToken('A', matchMeridiem);
    addRegexToken('H', match1to2, match1to2HasZero);
    addRegexToken('h', match1to2, match1to2NoLeadingZero);
    addRegexToken('k', match1to2, match1to2NoLeadingZero);
    addRegexToken('HH', match1to2, match2);
    addRegexToken('hh', match1to2, match2);
    addRegexToken('kk', match1to2, match2);

    addRegexToken('hmm', match3to4);
    addRegexToken('hmmss', match5to6);
    addRegexToken('Hmm', match3to4);
    addRegexToken('Hmmss', match5to6);

    addParseToken(['H', 'HH'], HOUR);
    addParseToken(['k', 'kk'], function (input, array, config) {
        var kInput = toInt(input);
        array[HOUR] = kInput === 24 ? 0 : kInput;
    });
    addParseToken(['a', 'A'], function (input, array, config) {
        config._isPm = config._locale.isPM(input);
        config._meridiem = input;
    });
    addParseToken(['h', 'hh'], function (input, array, config) {
        array[HOUR] = toInt(input);
        getParsingFlags(config).bigHour = true;
    });
    addParseToken('hmm', function (input, array, config) {
        var pos = input.length - 2;
        array[HOUR] = toInt(input.substr(0, pos));
        array[MINUTE] = toInt(input.substr(pos));
        getParsingFlags(config).bigHour = true;
    });
    addParseToken('hmmss', function (input, array, config) {
        var pos1 = input.length - 4,
            pos2 = input.length - 2;
        array[HOUR] = toInt(input.substr(0, pos1));
        array[MINUTE] = toInt(input.substr(pos1, 2));
        array[SECOND] = toInt(input.substr(pos2));
        getParsingFlags(config).bigHour = true;
    });
    addParseToken('Hmm', function (input, array, config) {
        var pos = input.length - 2;
        array[HOUR] = toInt(input.substr(0, pos));
        array[MINUTE] = toInt(input.substr(pos));
    });
    addParseToken('Hmmss', function (input, array, config) {
        var pos1 = input.length - 4,
            pos2 = input.length - 2;
        array[HOUR] = toInt(input.substr(0, pos1));
        array[MINUTE] = toInt(input.substr(pos1, 2));
        array[SECOND] = toInt(input.substr(pos2));
    });

    // LOCALES

    function localeIsPM(input) {
        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
        // Using charAt should be more compatible.
        return (input + '').toLowerCase().charAt(0) === 'p';
    }

    var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
        // Setting the hour should keep the time, because the user explicitly
        // specified which hour they want. So trying to maintain the same hour (in
        // a new timezone) makes sense. Adding/subtracting hours does not follow
        // this rule.
        getSetHour = makeGetSet('Hours', true);

    function localeMeridiem(hours, minutes, isLower) {
        if (hours > 11) {
            return isLower ? 'pm' : 'PM';
        } else {
            return isLower ? 'am' : 'AM';
        }
    }

    var baseConfig = {
        calendar: defaultCalendar,
        longDateFormat: defaultLongDateFormat,
        invalidDate: defaultInvalidDate,
        ordinal: defaultOrdinal,
        dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
        relativeTime: defaultRelativeTime,

        months: defaultLocaleMonths,
        monthsShort: defaultLocaleMonthsShort,

        week: defaultLocaleWeek,

        weekdays: defaultLocaleWeekdays,
        weekdaysMin: defaultLocaleWeekdaysMin,
        weekdaysShort: defaultLocaleWeekdaysShort,

        meridiemParse: defaultLocaleMeridiemParse,
    };

    // internal storage for locale config files
    var locales = {},
        localeFamilies = {},
        globalLocale;

    function commonPrefix(arr1, arr2) {
        var i,
            minl = Math.min(arr1.length, arr2.length);
        for (i = 0; i < minl; i += 1) {
            if (arr1[i] !== arr2[i]) {
                return i;
            }
        }
        return minl;
    }

    function normalizeLocale(key) {
        return key ? key.toLowerCase().replace('_', '-') : key;
    }

    // pick the locale from the array
    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
    function chooseLocale(names) {
        var i = 0,
            j,
            next,
            locale,
            split;

        while (i < names.length) {
            split = normalizeLocale(names[i]).split('-');
            j = split.length;
            next = normalizeLocale(names[i + 1]);
            next = next ? next.split('-') : null;
            while (j > 0) {
                locale = loadLocale(split.slice(0, j).join('-'));
                if (locale) {
                    return locale;
                }
                if (
                    next &&
                    next.length >= j &&
                    commonPrefix(split, next) >= j - 1
                ) {
                    //the next array item is better than a shallower substring of this one
                    break;
                }
                j--;
            }
            i++;
        }
        return globalLocale;
    }

    function isLocaleNameSane(name) {
        // Prevent names that look like filesystem paths, i.e contain '/' or '\'
        // Ensure name is available and function returns boolean
        return !!(name && name.match('^[^/\\\\]*$'));
    }

    function loadLocale(name) {
        var oldLocale = null,
            aliasedRequire;
        // TODO: Find a better way to register and load all the locales in Node
        if (
            locales[name] === undefined &&
            typeof module !== 'undefined' &&
            module &&
            module.exports &&
            isLocaleNameSane(name)
        ) {
            try {
                oldLocale = globalLocale._abbr;
                aliasedRequire = require;
                __webpack_require__(3284)("./" + name);
                getSetGlobalLocale(oldLocale);
            } catch (e) {
                // mark as not found to avoid repeating expensive file require call causing high CPU
                // when trying to find en-US, en_US, en-us for every format call
                locales[name] = null; // null means not found
            }
        }
        return locales[name];
    }

    // This function will load locale and then set the global locale.  If
    // no arguments are passed in, it will simply return the current global
    // locale key.
    function getSetGlobalLocale(key, values) {
        var data;
        if (key) {
            if (isUndefined(values)) {
                data = getLocale(key);
            } else {
                data = defineLocale(key, values);
            }

            if (data) {
                // moment.duration._locale = moment._locale = data;
                globalLocale = data;
            } else {
                if (typeof console !== 'undefined' && console.warn) {
                    //warn user if arguments are passed but the locale could not be set
                    console.warn(
                        'Locale ' + key + ' not found. Did you forget to load it?'
                    );
                }
            }
        }

        return globalLocale._abbr;
    }

    function defineLocale(name, config) {
        if (config !== null) {
            var locale,
                parentConfig = baseConfig;
            config.abbr = name;
            if (locales[name] != null) {
                deprecateSimple(
                    'defineLocaleOverride',
                    'use moment.updateLocale(localeName, config) to change ' +
                        'an existing locale. moment.defineLocale(localeName, ' +
                        'config) should only be used for creating a new locale ' +
                        'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
                );
                parentConfig = locales[name]._config;
            } else if (config.parentLocale != null) {
                if (locales[config.parentLocale] != null) {
                    parentConfig = locales[config.parentLocale]._config;
                } else {
                    locale = loadLocale(config.parentLocale);
                    if (locale != null) {
                        parentConfig = locale._config;
                    } else {
                        if (!localeFamilies[config.parentLocale]) {
                            localeFamilies[config.parentLocale] = [];
                        }
                        localeFamilies[config.parentLocale].push({
                            name: name,
                            config: config,
                        });
                        return null;
                    }
                }
            }
            locales[name] = new Locale(mergeConfigs(parentConfig, config));

            if (localeFamilies[name]) {
                localeFamilies[name].forEach(function (x) {
                    defineLocale(x.name, x.config);
                });
            }

            // backwards compat for now: also set the locale
            // make sure we set the locale AFTER all child locales have been
            // created, so we won't end up with the child locale set.
            getSetGlobalLocale(name);

            return locales[name];
        } else {
            // useful for testing
            delete locales[name];
            return null;
        }
    }

    function updateLocale(name, config) {
        if (config != null) {
            var locale,
                tmpLocale,
                parentConfig = baseConfig;

            if (locales[name] != null && locales[name].parentLocale != null) {
                // Update existing child locale in-place to avoid memory-leaks
                locales[name].set(mergeConfigs(locales[name]._config, config));
            } else {
                // MERGE
                tmpLocale = loadLocale(name);
                if (tmpLocale != null) {
                    parentConfig = tmpLocale._config;
                }
                config = mergeConfigs(parentConfig, config);
                if (tmpLocale == null) {
                    // updateLocale is called for creating a new locale
                    // Set abbr so it will have a name (getters return
                    // undefined otherwise).
                    config.abbr = name;
                }
                locale = new Locale(config);
                locale.parentLocale = locales[name];
                locales[name] = locale;
            }

            // backwards compat for now: also set the locale
            getSetGlobalLocale(name);
        } else {
            // pass null for config to unupdate, useful for tests
            if (locales[name] != null) {
                if (locales[name].parentLocale != null) {
                    locales[name] = locales[name].parentLocale;
                    if (name === getSetGlobalLocale()) {
                        getSetGlobalLocale(name);
                    }
                } else if (locales[name] != null) {
                    delete locales[name];
                }
            }
        }
        return locales[name];
    }

    // returns locale data
    function getLocale(key) {
        var locale;

        if (key && key._locale && key._locale._abbr) {
            key = key._locale._abbr;
        }

        if (!key) {
            return globalLocale;
        }

        if (!isArray(key)) {
            //short-circuit everything else
            locale = loadLocale(key);
            if (locale) {
                return locale;
            }
            key = [key];
        }

        return chooseLocale(key);
    }

    function listLocales() {
        return keys(locales);
    }

    function checkOverflow(m) {
        var overflow,
            a = m._a;

        if (a && getParsingFlags(m).overflow === -2) {
            overflow =
                a[MONTH] < 0 || a[MONTH] > 11
                    ? MONTH
                    : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
                      ? DATE
                      : a[HOUR] < 0 ||
                          a[HOUR] > 24 ||
                          (a[HOUR] === 24 &&
                              (a[MINUTE] !== 0 ||
                                  a[SECOND] !== 0 ||
                                  a[MILLISECOND] !== 0))
                        ? HOUR
                        : a[MINUTE] < 0 || a[MINUTE] > 59
                          ? MINUTE
                          : a[SECOND] < 0 || a[SECOND] > 59
                            ? SECOND
                            : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
                              ? MILLISECOND
                              : -1;

            if (
                getParsingFlags(m)._overflowDayOfYear &&
                (overflow < YEAR || overflow > DATE)
            ) {
                overflow = DATE;
            }
            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
                overflow = WEEK;
            }
            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
                overflow = WEEKDAY;
            }

            getParsingFlags(m).overflow = overflow;
        }

        return m;
    }

    // iso 8601 regex
    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
    var extendedIsoRegex =
            /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
        basicIsoRegex =
            /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
        tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
        isoDates = [
            ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
            ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
            ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
            ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
            ['YYYY-DDD', /\d{4}-\d{3}/],
            ['YYYY-MM', /\d{4}-\d\d/, false],
            ['YYYYYYMMDD', /[+-]\d{10}/],
            ['YYYYMMDD', /\d{8}/],
            ['GGGG[W]WWE', /\d{4}W\d{3}/],
            ['GGGG[W]WW', /\d{4}W\d{2}/, false],
            ['YYYYDDD', /\d{7}/],
            ['YYYYMM', /\d{6}/, false],
            ['YYYY', /\d{4}/, false],
        ],
        // iso time formats and regexes
        isoTimes = [
            ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
            ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
            ['HH:mm:ss', /\d\d:\d\d:\d\d/],
            ['HH:mm', /\d\d:\d\d/],
            ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
            ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
            ['HHmmss', /\d\d\d\d\d\d/],
            ['HHmm', /\d\d\d\d/],
            ['HH', /\d\d/],
        ],
        aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
        // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
        rfc2822 =
            /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
        obsOffsets = {
            UT: 0,
            GMT: 0,
            EDT: -4 * 60,
            EST: -5 * 60,
            CDT: -5 * 60,
            CST: -6 * 60,
            MDT: -6 * 60,
            MST: -7 * 60,
            PDT: -7 * 60,
            PST: -8 * 60,
        };

    // date from iso format
    function configFromISO(config) {
        var i,
            l,
            string = config._i,
            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
            allowTime,
            dateFormat,
            timeFormat,
            tzFormat,
            isoDatesLen = isoDates.length,
            isoTimesLen = isoTimes.length;

        if (match) {
            getParsingFlags(config).iso = true;
            for (i = 0, l = isoDatesLen; i < l; i++) {
                if (isoDates[i][1].exec(match[1])) {
                    dateFormat = isoDates[i][0];
                    allowTime = isoDates[i][2] !== false;
                    break;
                }
            }
            if (dateFormat == null) {
                config._isValid = false;
                return;
            }
            if (match[3]) {
                for (i = 0, l = isoTimesLen; i < l; i++) {
                    if (isoTimes[i][1].exec(match[3])) {
                        // match[2] should be 'T' or space
                        timeFormat = (match[2] || ' ') + isoTimes[i][0];
                        break;
                    }
                }
                if (timeFormat == null) {
                    config._isValid = false;
                    return;
                }
            }
            if (!allowTime && timeFormat != null) {
                config._isValid = false;
                return;
            }
            if (match[4]) {
                if (tzRegex.exec(match[4])) {
                    tzFormat = 'Z';
                } else {
                    config._isValid = false;
                    return;
                }
            }
            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
            configFromStringAndFormat(config);
        } else {
            config._isValid = false;
        }
    }

    function extractFromRFC2822Strings(
        yearStr,
        monthStr,
        dayStr,
        hourStr,
        minuteStr,
        secondStr
    ) {
        var result = [
            untruncateYear(yearStr),
            defaultLocaleMonthsShort.indexOf(monthStr),
            parseInt(dayStr, 10),
            parseInt(hourStr, 10),
            parseInt(minuteStr, 10),
        ];

        if (secondStr) {
            result.push(parseInt(secondStr, 10));
        }

        return result;
    }

    function untruncateYear(yearStr) {
        var year = parseInt(yearStr, 10);
        if (year <= 49) {
            return 2000 + year;
        } else if (year <= 999) {
            return 1900 + year;
        }
        return year;
    }

    function preprocessRFC2822(s) {
        // Remove comments and folding whitespace and replace multiple-spaces with a single space
        return s
            .replace(/\([^()]*\)|[\n\t]/g, ' ')
            .replace(/(\s\s+)/g, ' ')
            .replace(/^\s\s*/, '')
            .replace(/\s\s*$/, '');
    }

    function checkWeekday(weekdayStr, parsedInput, config) {
        if (weekdayStr) {
            // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
            var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
                weekdayActual = new Date(
                    parsedInput[0],
                    parsedInput[1],
                    parsedInput[2]
                ).getDay();
            if (weekdayProvided !== weekdayActual) {
                getParsingFlags(config).weekdayMismatch = true;
                config._isValid = false;
                return false;
            }
        }
        return true;
    }

    function calculateOffset(obsOffset, militaryOffset, numOffset) {
        if (obsOffset) {
            return obsOffsets[obsOffset];
        } else if (militaryOffset) {
            // the only allowed military tz is Z
            return 0;
        } else {
            var hm = parseInt(numOffset, 10),
                m = hm % 100,
                h = (hm - m) / 100;
            return h * 60 + m;
        }
    }

    // date and time from ref 2822 format
    function configFromRFC2822(config) {
        var match = rfc2822.exec(preprocessRFC2822(config._i)),
            parsedArray;
        if (match) {
            parsedArray = extractFromRFC2822Strings(
                match[4],
                match[3],
                match[2],
                match[5],
                match[6],
                match[7]
            );
            if (!checkWeekday(match[1], parsedArray, config)) {
                return;
            }

            config._a = parsedArray;
            config._tzm = calculateOffset(match[8], match[9], match[10]);

            config._d = createUTCDate.apply(null, config._a);
            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);

            getParsingFlags(config).rfc2822 = true;
        } else {
            config._isValid = false;
        }
    }

    // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
    function configFromString(config) {
        var matched = aspNetJsonRegex.exec(config._i);
        if (matched !== null) {
            config._d = new Date(+matched[1]);
            return;
        }

        configFromISO(config);
        if (config._isValid === false) {
            delete config._isValid;
        } else {
            return;
        }

        configFromRFC2822(config);
        if (config._isValid === false) {
            delete config._isValid;
        } else {
            return;
        }

        if (config._strict) {
            config._isValid = false;
        } else {
            // Final attempt, use Input Fallback
            hooks.createFromInputFallback(config);
        }
    }

    hooks.createFromInputFallback = deprecate(
        'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
            'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
            'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
        function (config) {
            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
        }
    );

    // Pick the first defined of two or three arguments.
    function defaults(a, b, c) {
        if (a != null) {
            return a;
        }
        if (b != null) {
            return b;
        }
        return c;
    }

    function currentDateArray(config) {
        // hooks is actually the exported moment object
        var nowValue = new Date(hooks.now());
        if (config._useUTC) {
            return [
                nowValue.getUTCFullYear(),
                nowValue.getUTCMonth(),
                nowValue.getUTCDate(),
            ];
        }
        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
    }

    // convert an array to a date.
    // the array should mirror the parameters below
    // note: all values past the year are optional and will default to the lowest possible value.
    // [year, month, day , hour, minute, second, millisecond]
    function configFromArray(config) {
        var i,
            date,
            input = [],
            currentDate,
            expectedWeekday,
            yearToUse;

        if (config._d) {
            return;
        }

        currentDate = currentDateArray(config);

        //compute day of the year from weeks and weekdays
        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
            dayOfYearFromWeekInfo(config);
        }

        //if the day of the year is set, figure out what it is
        if (config._dayOfYear != null) {
            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);

            if (
                config._dayOfYear > daysInYear(yearToUse) ||
                config._dayOfYear === 0
            ) {
                getParsingFlags(config)._overflowDayOfYear = true;
            }

            date = createUTCDate(yearToUse, 0, config._dayOfYear);
            config._a[MONTH] = date.getUTCMonth();
            config._a[DATE] = date.getUTCDate();
        }

        // Default to current date.
        // * if no year, month, day of month are given, default to today
        // * if day of month is given, default month and year
        // * if month is given, default only year
        // * if year is given, don't default anything
        for (i = 0; i < 3 && config._a[i] == null; ++i) {
            config._a[i] = input[i] = currentDate[i];
        }

        // Zero out whatever was not defaulted, including time
        for (; i < 7; i++) {
            config._a[i] = input[i] =
                config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
        }

        // Check for 24:00:00.000
        if (
            config._a[HOUR] === 24 &&
            config._a[MINUTE] === 0 &&
            config._a[SECOND] === 0 &&
            config._a[MILLISECOND] === 0
        ) {
            config._nextDay = true;
            config._a[HOUR] = 0;
        }

        config._d = (config._useUTC ? createUTCDate : createDate).apply(
            null,
            input
        );
        expectedWeekday = config._useUTC
            ? config._d.getUTCDay()
            : config._d.getDay();

        // Apply timezone offset from input. The actual utcOffset can be changed
        // with parseZone.
        if (config._tzm != null) {
            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
        }

        if (config._nextDay) {
            config._a[HOUR] = 24;
        }

        // check for mismatching day of week
        if (
            config._w &&
            typeof config._w.d !== 'undefined' &&
            config._w.d !== expectedWeekday
        ) {
            getParsingFlags(config).weekdayMismatch = true;
        }
    }

    function dayOfYearFromWeekInfo(config) {
        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;

        w = config._w;
        if (w.GG != null || w.W != null || w.E != null) {
            dow = 1;
            doy = 4;

            // TODO: We need to take the current isoWeekYear, but that depends on
            // how we interpret now (local, utc, fixed offset). So create
            // a now version of current config (take local/utc/offset flags, and
            // create now).
            weekYear = defaults(
                w.GG,
                config._a[YEAR],
                weekOfYear(createLocal(), 1, 4).year
            );
            week = defaults(w.W, 1);
            weekday = defaults(w.E, 1);
            if (weekday < 1 || weekday > 7) {
                weekdayOverflow = true;
            }
        } else {
            dow = config._locale._week.dow;
            doy = config._locale._week.doy;

            curWeek = weekOfYear(createLocal(), dow, doy);

            weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);

            // Default to current week.
            week = defaults(w.w, curWeek.week);

            if (w.d != null) {
                // weekday -- low day numbers are considered next week
                weekday = w.d;
                if (weekday < 0 || weekday > 6) {
                    weekdayOverflow = true;
                }
            } else if (w.e != null) {
                // local weekday -- counting starts from beginning of week
                weekday = w.e + dow;
                if (w.e < 0 || w.e > 6) {
                    weekdayOverflow = true;
                }
            } else {
                // default to beginning of week
                weekday = dow;
            }
        }
        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
            getParsingFlags(config)._overflowWeeks = true;
        } else if (weekdayOverflow != null) {
            getParsingFlags(config)._overflowWeekday = true;
        } else {
            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
            config._a[YEAR] = temp.year;
            config._dayOfYear = temp.dayOfYear;
        }
    }

    // constant that refers to the ISO standard
    hooks.ISO_8601 = function () {};

    // constant that refers to the RFC 2822 form
    hooks.RFC_2822 = function () {};

    // date from string and format string
    function configFromStringAndFormat(config) {
        // TODO: Move this to another part of the creation flow to prevent circular deps
        if (config._f === hooks.ISO_8601) {
            configFromISO(config);
            return;
        }
        if (config._f === hooks.RFC_2822) {
            configFromRFC2822(config);
            return;
        }
        config._a = [];
        getParsingFlags(config).empty = true;

        // This array is used to make a Date, either with `new Date` or `Date.UTC`
        var string = '' + config._i,
            i,
            parsedInput,
            tokens,
            token,
            skipped,
            stringLength = string.length,
            totalParsedInputLength = 0,
            era,
            tokenLen;

        tokens =
            expandFormat(config._f, config._locale).match(formattingTokens) || [];
        tokenLen = tokens.length;
        for (i = 0; i < tokenLen; i++) {
            token = tokens[i];
            parsedInput = (string.match(getParseRegexForToken(token, config)) ||
                [])[0];
            if (parsedInput) {
                skipped = string.substr(0, string.indexOf(parsedInput));
                if (skipped.length > 0) {
                    getParsingFlags(config).unusedInput.push(skipped);
                }
                string = string.slice(
                    string.indexOf(parsedInput) + parsedInput.length
                );
                totalParsedInputLength += parsedInput.length;
            }
            // don't parse if it's not a known token
            if (formatTokenFunctions[token]) {
                if (parsedInput) {
                    getParsingFlags(config).empty = false;
                } else {
                    getParsingFlags(config).unusedTokens.push(token);
                }
                addTimeToArrayFromToken(token, parsedInput, config);
            } else if (config._strict && !parsedInput) {
                getParsingFlags(config).unusedTokens.push(token);
            }
        }

        // add remaining unparsed input length to the string
        getParsingFlags(config).charsLeftOver =
            stringLength - totalParsedInputLength;
        if (string.length > 0) {
            getParsingFlags(config).unusedInput.push(string);
        }

        // clear _12h flag if hour is <= 12
        if (
            config._a[HOUR] <= 12 &&
            getParsingFlags(config).bigHour === true &&
            config._a[HOUR] > 0
        ) {
            getParsingFlags(config).bigHour = undefined;
        }

        getParsingFlags(config).parsedDateParts = config._a.slice(0);
        getParsingFlags(config).meridiem = config._meridiem;
        // handle meridiem
        config._a[HOUR] = meridiemFixWrap(
            config._locale,
            config._a[HOUR],
            config._meridiem
        );

        // handle era
        era = getParsingFlags(config).era;
        if (era !== null) {
            config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
        }

        configFromArray(config);
        checkOverflow(config);
    }

    function meridiemFixWrap(locale, hour, meridiem) {
        var isPm;

        if (meridiem == null) {
            // nothing to do
            return hour;
        }
        if (locale.meridiemHour != null) {
            return locale.meridiemHour(hour, meridiem);
        } else if (locale.isPM != null) {
            // Fallback
            isPm = locale.isPM(meridiem);
            if (isPm && hour < 12) {
                hour += 12;
            }
            if (!isPm && hour === 12) {
                hour = 0;
            }
            return hour;
        } else {
            // this is not supposed to happen
            return hour;
        }
    }

    // date from string and array of format strings
    function configFromStringAndArray(config) {
        var tempConfig,
            bestMoment,
            scoreToBeat,
            i,
            currentScore,
            validFormatFound,
            bestFormatIsValid = false,
            configfLen = config._f.length;

        if (configfLen === 0) {
            getParsingFlags(config).invalidFormat = true;
            config._d = new Date(NaN);
            return;
        }

        for (i = 0; i < configfLen; i++) {
            currentScore = 0;
            validFormatFound = false;
            tempConfig = copyConfig({}, config);
            if (config._useUTC != null) {
                tempConfig._useUTC = config._useUTC;
            }
            tempConfig._f = config._f[i];
            configFromStringAndFormat(tempConfig);

            if (isValid(tempConfig)) {
                validFormatFound = true;
            }

            // if there is any input that was not parsed add a penalty for that format
            currentScore += getParsingFlags(tempConfig).charsLeftOver;

            //or tokens
            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;

            getParsingFlags(tempConfig).score = currentScore;

            if (!bestFormatIsValid) {
                if (
                    scoreToBeat == null ||
                    currentScore < scoreToBeat ||
                    validFormatFound
                ) {
                    scoreToBeat = currentScore;
                    bestMoment = tempConfig;
                    if (validFormatFound) {
                        bestFormatIsValid = true;
                    }
                }
            } else {
                if (currentScore < scoreToBeat) {
                    scoreToBeat = currentScore;
                    bestMoment = tempConfig;
                }
            }
        }

        extend(config, bestMoment || tempConfig);
    }

    function configFromObject(config) {
        if (config._d) {
            return;
        }

        var i = normalizeObjectUnits(config._i),
            dayOrDate = i.day === undefined ? i.date : i.day;
        config._a = map(
            [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
            function (obj) {
                return obj && parseInt(obj, 10);
            }
        );

        configFromArray(config);
    }

    function createFromConfig(config) {
        var res = new Moment(checkOverflow(prepareConfig(config)));
        if (res._nextDay) {
            // Adding is smart enough around DST
            res.add(1, 'd');
            res._nextDay = undefined;
        }

        return res;
    }

    function prepareConfig(config) {
        var input = config._i,
            format = config._f;

        config._locale = config._locale || getLocale(config._l);

        if (input === null || (format === undefined && input === '')) {
            return createInvalid({ nullInput: true });
        }

        if (typeof input === 'string') {
            config._i = input = config._locale.preparse(input);
        }

        if (isMoment(input)) {
            return new Moment(checkOverflow(input));
        } else if (isDate(input)) {
            config._d = input;
        } else if (isArray(format)) {
            configFromStringAndArray(config);
        } else if (format) {
            configFromStringAndFormat(config);
        } else {
            configFromInput(config);
        }

        if (!isValid(config)) {
            config._d = null;
        }

        return config;
    }

    function configFromInput(config) {
        var input = config._i;
        if (isUndefined(input)) {
            config._d = new Date(hooks.now());
        } else if (isDate(input)) {
            config._d = new Date(input.valueOf());
        } else if (typeof input === 'string') {
            configFromString(config);
        } else if (isArray(input)) {
            config._a = map(input.slice(0), function (obj) {
                return parseInt(obj, 10);
            });
            configFromArray(config);
        } else if (isObject(input)) {
            configFromObject(config);
        } else if (isNumber(input)) {
            // from milliseconds
            config._d = new Date(input);
        } else {
            hooks.createFromInputFallback(config);
        }
    }

    function createLocalOrUTC(input, format, locale, strict, isUTC) {
        var c = {};

        if (format === true || format === false) {
            strict = format;
            format = undefined;
        }

        if (locale === true || locale === false) {
            strict = locale;
            locale = undefined;
        }

        if (
            (isObject(input) && isObjectEmpty(input)) ||
            (isArray(input) && input.length === 0)
        ) {
            input = undefined;
        }
        // object construction must be done this way.
        // https://github.com/moment/moment/issues/1423
        c._isAMomentObject = true;
        c._useUTC = c._isUTC = isUTC;
        c._l = locale;
        c._i = input;
        c._f = format;
        c._strict = strict;

        return createFromConfig(c);
    }

    function createLocal(input, format, locale, strict) {
        return createLocalOrUTC(input, format, locale, strict, false);
    }

    var prototypeMin = deprecate(
            'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
            function () {
                var other = createLocal.apply(null, arguments);
                if (this.isValid() && other.isValid()) {
                    return other < this ? this : other;
                } else {
                    return createInvalid();
                }
            }
        ),
        prototypeMax = deprecate(
            'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
            function () {
                var other = createLocal.apply(null, arguments);
                if (this.isValid() && other.isValid()) {
                    return other > this ? this : other;
                } else {
                    return createInvalid();
                }
            }
        );

    // Pick a moment m from moments so that m[fn](other) is true for all
    // other. This relies on the function fn to be transitive.
    //
    // moments should either be an array of moment objects or an array, whose
    // first element is an array of moment objects.
    function pickBy(fn, moments) {
        var res, i;
        if (moments.length === 1 && isArray(moments[0])) {
            moments = moments[0];
        }
        if (!moments.length) {
            return createLocal();
        }
        res = moments[0];
        for (i = 1; i < moments.length; ++i) {
            if (!moments[i].isValid() || moments[i][fn](res)) {
                res = moments[i];
            }
        }
        return res;
    }

    // TODO: Use [].sort instead?
    function min() {
        var args = [].slice.call(arguments, 0);

        return pickBy('isBefore', args);
    }

    function max() {
        var args = [].slice.call(arguments, 0);

        return pickBy('isAfter', args);
    }

    var now = function () {
        return Date.now ? Date.now() : +new Date();
    };

    var ordering = [
        'year',
        'quarter',
        'month',
        'week',
        'day',
        'hour',
        'minute',
        'second',
        'millisecond',
    ];

    function isDurationValid(m) {
        var key,
            unitHasDecimal = false,
            i,
            orderLen = ordering.length;
        for (key in m) {
            if (
                hasOwnProp(m, key) &&
                !(
                    indexOf.call(ordering, key) !== -1 &&
                    (m[key] == null || !isNaN(m[key]))
                )
            ) {
                return false;
            }
        }

        for (i = 0; i < orderLen; ++i) {
            if (m[ordering[i]]) {
                if (unitHasDecimal) {
                    return false; // only allow non-integers for smallest unit
                }
                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
                    unitHasDecimal = true;
                }
            }
        }

        return true;
    }

    function isValid$1() {
        return this._isValid;
    }

    function createInvalid$1() {
        return createDuration(NaN);
    }

    function Duration(duration) {
        var normalizedInput = normalizeObjectUnits(duration),
            years = normalizedInput.year || 0,
            quarters = normalizedInput.quarter || 0,
            months = normalizedInput.month || 0,
            weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
            days = normalizedInput.day || 0,
            hours = normalizedInput.hour || 0,
            minutes = normalizedInput.minute || 0,
            seconds = normalizedInput.second || 0,
            milliseconds = normalizedInput.millisecond || 0;

        this._isValid = isDurationValid(normalizedInput);

        // representation for dateAddRemove
        this._milliseconds =
            +milliseconds +
            seconds * 1e3 + // 1000
            minutes * 6e4 + // 1000 * 60
            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
        // Because of dateAddRemove treats 24 hours as different from a
        // day when working around DST, we need to store them separately
        this._days = +days + weeks * 7;
        // It is impossible to translate months into days without knowing
        // which months you are are talking about, so we have to store
        // it separately.
        this._months = +months + quarters * 3 + years * 12;

        this._data = {};

        this._locale = getLocale();

        this._bubble();
    }

    function isDuration(obj) {
        return obj instanceof Duration;
    }

    function absRound(number) {
        if (number < 0) {
            return Math.round(-1 * number) * -1;
        } else {
            return Math.round(number);
        }
    }

    // compare two arrays, return the number of differences
    function compareArrays(array1, array2, dontConvert) {
        var len = Math.min(array1.length, array2.length),
            lengthDiff = Math.abs(array1.length - array2.length),
            diffs = 0,
            i;
        for (i = 0; i < len; i++) {
            if (
                (dontConvert && array1[i] !== array2[i]) ||
                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
            ) {
                diffs++;
            }
        }
        return diffs + lengthDiff;
    }

    // FORMATTING

    function offset(token, separator) {
        addFormatToken(token, 0, 0, function () {
            var offset = this.utcOffset(),
                sign = '+';
            if (offset < 0) {
                offset = -offset;
                sign = '-';
            }
            return (
                sign +
                zeroFill(~~(offset / 60), 2) +
                separator +
                zeroFill(~~offset % 60, 2)
            );
        });
    }

    offset('Z', ':');
    offset('ZZ', '');

    // PARSING

    addRegexToken('Z', matchShortOffset);
    addRegexToken('ZZ', matchShortOffset);
    addParseToken(['Z', 'ZZ'], function (input, array, config) {
        config._useUTC = true;
        config._tzm = offsetFromString(matchShortOffset, input);
    });

    // HELPERS

    // timezone chunker
    // '+10:00' > ['10',  '00']
    // '-1530'  > ['-15', '30']
    var chunkOffset = /([\+\-]|\d\d)/gi;

    function offsetFromString(matcher, string) {
        var matches = (string || '').match(matcher),
            chunk,
            parts,
            minutes;

        if (matches === null) {
            return null;
        }

        chunk = matches[matches.length - 1] || [];
        parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
        minutes = +(parts[1] * 60) + toInt(parts[2]);

        return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
    }

    // Return a moment from input, that is local/utc/zone equivalent to model.
    function cloneWithOffset(input, model) {
        var res, diff;
        if (model._isUTC) {
            res = model.clone();
            diff =
                (isMoment(input) || isDate(input)
                    ? input.valueOf()
                    : createLocal(input).valueOf()) - res.valueOf();
            // Use low-level api, because this fn is low-level api.
            res._d.setTime(res._d.valueOf() + diff);
            hooks.updateOffset(res, false);
            return res;
        } else {
            return createLocal(input).local();
        }
    }

    function getDateOffset(m) {
        // On Firefox.24 Date#getTimezoneOffset returns a floating point.
        // https://github.com/moment/moment/pull/1871
        return -Math.round(m._d.getTimezoneOffset());
    }

    // HOOKS

    // This function will be called whenever a moment is mutated.
    // It is intended to keep the offset in sync with the timezone.
    hooks.updateOffset = function () {};

    // MOMENTS

    // keepLocalTime = true means only change the timezone, without
    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
    // +0200, so we adjust the time as needed, to be valid.
    //
    // Keeping the time actually adds/subtracts (one hour)
    // from the actual represented time. That is why we call updateOffset
    // a second time. In case it wants us to change the offset again
    // _changeInProgress == true case, then we have to adjust, because
    // there is no such time in the given timezone.
    function getSetOffset(input, keepLocalTime, keepMinutes) {
        var offset = this._offset || 0,
            localAdjust;
        if (!this.isValid()) {
            return input != null ? this : NaN;
        }
        if (input != null) {
            if (typeof input === 'string') {
                input = offsetFromString(matchShortOffset, input);
                if (input === null) {
                    return this;
                }
            } else if (Math.abs(input) < 16 && !keepMinutes) {
                input = input * 60;
            }
            if (!this._isUTC && keepLocalTime) {
                localAdjust = getDateOffset(this);
            }
            this._offset = input;
            this._isUTC = true;
            if (localAdjust != null) {
                this.add(localAdjust, 'm');
            }
            if (offset !== input) {
                if (!keepLocalTime || this._changeInProgress) {
                    addSubtract(
                        this,
                        createDuration(input - offset, 'm'),
                        1,
                        false
                    );
                } else if (!this._changeInProgress) {
                    this._changeInProgress = true;
                    hooks.updateOffset(this, true);
                    this._changeInProgress = null;
                }
            }
            return this;
        } else {
            return this._isUTC ? offset : getDateOffset(this);
        }
    }

    function getSetZone(input, keepLocalTime) {
        if (input != null) {
            if (typeof input !== 'string') {
                input = -input;
            }

            this.utcOffset(input, keepLocalTime);

            return this;
        } else {
            return -this.utcOffset();
        }
    }

    function setOffsetToUTC(keepLocalTime) {
        return this.utcOffset(0, keepLocalTime);
    }

    function setOffsetToLocal(keepLocalTime) {
        if (this._isUTC) {
            this.utcOffset(0, keepLocalTime);
            this._isUTC = false;

            if (keepLocalTime) {
                this.subtract(getDateOffset(this), 'm');
            }
        }
        return this;
    }

    function setOffsetToParsedOffset() {
        if (this._tzm != null) {
            this.utcOffset(this._tzm, false, true);
        } else if (typeof this._i === 'string') {
            var tZone = offsetFromString(matchOffset, this._i);
            if (tZone != null) {
                this.utcOffset(tZone);
            } else {
                this.utcOffset(0, true);
            }
        }
        return this;
    }

    function hasAlignedHourOffset(input) {
        if (!this.isValid()) {
            return false;
        }
        input = input ? createLocal(input).utcOffset() : 0;

        return (this.utcOffset() - input) % 60 === 0;
    }

    function isDaylightSavingTime() {
        return (
            this.utcOffset() > this.clone().month(0).utcOffset() ||
            this.utcOffset() > this.clone().month(5).utcOffset()
        );
    }

    function isDaylightSavingTimeShifted() {
        if (!isUndefined(this._isDSTShifted)) {
            return this._isDSTShifted;
        }

        var c = {},
            other;

        copyConfig(c, this);
        c = prepareConfig(c);

        if (c._a) {
            other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
            this._isDSTShifted =
                this.isValid() && compareArrays(c._a, other.toArray()) > 0;
        } else {
            this._isDSTShifted = false;
        }

        return this._isDSTShifted;
    }

    function isLocal() {
        return this.isValid() ? !this._isUTC : false;
    }

    function isUtcOffset() {
        return this.isValid() ? this._isUTC : false;
    }

    function isUtc() {
        return this.isValid() ? this._isUTC && this._offset === 0 : false;
    }

    // ASP.NET json date format regex
    var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
        // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
        // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
        // and further modified to allow for strings containing both week and day
        isoRegex =
            /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;

    function createDuration(input, key) {
        var duration = input,
            // matching against regexp is expensive, do it on demand
            match = null,
            sign,
            ret,
            diffRes;

        if (isDuration(input)) {
            duration = {
                ms: input._milliseconds,
                d: input._days,
                M: input._months,
            };
        } else if (isNumber(input) || !isNaN(+input)) {
            duration = {};
            if (key) {
                duration[key] = +input;
            } else {
                duration.milliseconds = +input;
            }
        } else if ((match = aspNetRegex.exec(input))) {
            sign = match[1] === '-' ? -1 : 1;
            duration = {
                y: 0,
                d: toInt(match[DATE]) * sign,
                h: toInt(match[HOUR]) * sign,
                m: toInt(match[MINUTE]) * sign,
                s: toInt(match[SECOND]) * sign,
                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
            };
        } else if ((match = isoRegex.exec(input))) {
            sign = match[1] === '-' ? -1 : 1;
            duration = {
                y: parseIso(match[2], sign),
                M: parseIso(match[3], sign),
                w: parseIso(match[4], sign),
                d: parseIso(match[5], sign),
                h: parseIso(match[6], sign),
                m: parseIso(match[7], sign),
                s: parseIso(match[8], sign),
            };
        } else if (duration == null) {
            // checks for null or undefined
            duration = {};
        } else if (
            typeof duration === 'object' &&
            ('from' in duration || 'to' in duration)
        ) {
            diffRes = momentsDifference(
                createLocal(duration.from),
                createLocal(duration.to)
            );

            duration = {};
            duration.ms = diffRes.milliseconds;
            duration.M = diffRes.months;
        }

        ret = new Duration(duration);

        if (isDuration(input) && hasOwnProp(input, '_locale')) {
            ret._locale = input._locale;
        }

        if (isDuration(input) && hasOwnProp(input, '_isValid')) {
            ret._isValid = input._isValid;
        }

        return ret;
    }

    createDuration.fn = Duration.prototype;
    createDuration.invalid = createInvalid$1;

    function parseIso(inp, sign) {
        // We'd normally use ~~inp for this, but unfortunately it also
        // converts floats to ints.
        // inp may be undefined, so careful calling replace on it.
        var res = inp && parseFloat(inp.replace(',', '.'));
        // apply sign while we're at it
        return (isNaN(res) ? 0 : res) * sign;
    }

    function positiveMomentsDifference(base, other) {
        var res = {};

        res.months =
            other.month() - base.month() + (other.year() - base.year()) * 12;
        if (base.clone().add(res.months, 'M').isAfter(other)) {
            --res.months;
        }

        res.milliseconds = +other - +base.clone().add(res.months, 'M');

        return res;
    }

    function momentsDifference(base, other) {
        var res;
        if (!(base.isValid() && other.isValid())) {
            return { milliseconds: 0, months: 0 };
        }

        other = cloneWithOffset(other, base);
        if (base.isBefore(other)) {
            res = positiveMomentsDifference(base, other);
        } else {
            res = positiveMomentsDifference(other, base);
            res.milliseconds = -res.milliseconds;
            res.months = -res.months;
        }

        return res;
    }

    // TODO: remove 'name' arg after deprecation is removed
    function createAdder(direction, name) {
        return function (val, period) {
            var dur, tmp;
            //invert the arguments, but complain about it
            if (period !== null && !isNaN(+period)) {
                deprecateSimple(
                    name,
                    'moment().' +
                        name +
                        '(period, number) is deprecated. Please use moment().' +
                        name +
                        '(number, period). ' +
                        'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
                );
                tmp = val;
                val = period;
                period = tmp;
            }

            dur = createDuration(val, period);
            addSubtract(this, dur, direction);
            return this;
        };
    }

    function addSubtract(mom, duration, isAdding, updateOffset) {
        var milliseconds = duration._milliseconds,
            days = absRound(duration._days),
            months = absRound(duration._months);

        if (!mom.isValid()) {
            // No op
            return;
        }

        updateOffset = updateOffset == null ? true : updateOffset;

        if (months) {
            setMonth(mom, get(mom, 'Month') + months * isAdding);
        }
        if (days) {
            set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
        }
        if (milliseconds) {
            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
        }
        if (updateOffset) {
            hooks.updateOffset(mom, days || months);
        }
    }

    var add = createAdder(1, 'add'),
        subtract = createAdder(-1, 'subtract');

    function isString(input) {
        return typeof input === 'string' || input instanceof String;
    }

    // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
    function isMomentInput(input) {
        return (
            isMoment(input) ||
            isDate(input) ||
            isString(input) ||
            isNumber(input) ||
            isNumberOrStringArray(input) ||
            isMomentInputObject(input) ||
            input === null ||
            input === undefined
        );
    }

    function isMomentInputObject(input) {
        var objectTest = isObject(input) && !isObjectEmpty(input),
            propertyTest = false,
            properties = [
                'years',
                'year',
                'y',
                'months',
                'month',
                'M',
                'days',
                'day',
                'd',
                'dates',
                'date',
                'D',
                'hours',
                'hour',
                'h',
                'minutes',
                'minute',
                'm',
                'seconds',
                'second',
                's',
                'milliseconds',
                'millisecond',
                'ms',
            ],
            i,
            property,
            propertyLen = properties.length;

        for (i = 0; i < propertyLen; i += 1) {
            property = properties[i];
            propertyTest = propertyTest || hasOwnProp(input, property);
        }

        return objectTest && propertyTest;
    }

    function isNumberOrStringArray(input) {
        var arrayTest = isArray(input),
            dataTypeTest = false;
        if (arrayTest) {
            dataTypeTest =
                input.filter(function (item) {
                    return !isNumber(item) && isString(input);
                }).length === 0;
        }
        return arrayTest && dataTypeTest;
    }

    function isCalendarSpec(input) {
        var objectTest = isObject(input) && !isObjectEmpty(input),
            propertyTest = false,
            properties = [
                'sameDay',
                'nextDay',
                'lastDay',
                'nextWeek',
                'lastWeek',
                'sameElse',
            ],
            i,
            property;

        for (i = 0; i < properties.length; i += 1) {
            property = properties[i];
            propertyTest = propertyTest || hasOwnProp(input, property);
        }

        return objectTest && propertyTest;
    }

    function getCalendarFormat(myMoment, now) {
        var diff = myMoment.diff(now, 'days', true);
        return diff < -6
            ? 'sameElse'
            : diff < -1
              ? 'lastWeek'
              : diff < 0
                ? 'lastDay'
                : diff < 1
                  ? 'sameDay'
                  : diff < 2
                    ? 'nextDay'
                    : diff < 7
                      ? 'nextWeek'
                      : 'sameElse';
    }

    function calendar$1(time, formats) {
        // Support for single parameter, formats only overload to the calendar function
        if (arguments.length === 1) {
            if (!arguments[0]) {
                time = undefined;
                formats = undefined;
            } else if (isMomentInput(arguments[0])) {
                time = arguments[0];
                formats = undefined;
            } else if (isCalendarSpec(arguments[0])) {
                formats = arguments[0];
                time = undefined;
            }
        }
        // We want to compare the start of today, vs this.
        // Getting start-of-today depends on whether we're local/utc/offset or not.
        var now = time || createLocal(),
            sod = cloneWithOffset(now, this).startOf('day'),
            format = hooks.calendarFormat(this, sod) || 'sameElse',
            output =
                formats &&
                (isFunction(formats[format])
                    ? formats[format].call(this, now)
                    : formats[format]);

        return this.format(
            output || this.localeData().calendar(format, this, createLocal(now))
        );
    }

    function clone() {
        return new Moment(this);
    }

    function isAfter(input, units) {
        var localInput = isMoment(input) ? input : createLocal(input);
        if (!(this.isValid() && localInput.isValid())) {
            return false;
        }
        units = normalizeUnits(units) || 'millisecond';
        if (units === 'millisecond') {
            return this.valueOf() > localInput.valueOf();
        } else {
            return localInput.valueOf() < this.clone().startOf(units).valueOf();
        }
    }

    function isBefore(input, units) {
        var localInput = isMoment(input) ? input : createLocal(input);
        if (!(this.isValid() && localInput.isValid())) {
            return false;
        }
        units = normalizeUnits(units) || 'millisecond';
        if (units === 'millisecond') {
            return this.valueOf() < localInput.valueOf();
        } else {
            return this.clone().endOf(units).valueOf() < localInput.valueOf();
        }
    }

    function isBetween(from, to, units, inclusivity) {
        var localFrom = isMoment(from) ? from : createLocal(from),
            localTo = isMoment(to) ? to : createLocal(to);
        if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
            return false;
        }
        inclusivity = inclusivity || '()';
        return (
            (inclusivity[0] === '('
                ? this.isAfter(localFrom, units)
                : !this.isBefore(localFrom, units)) &&
            (inclusivity[1] === ')'
                ? this.isBefore(localTo, units)
                : !this.isAfter(localTo, units))
        );
    }

    function isSame(input, units) {
        var localInput = isMoment(input) ? input : createLocal(input),
            inputMs;
        if (!(this.isValid() && localInput.isValid())) {
            return false;
        }
        units = normalizeUnits(units) || 'millisecond';
        if (units === 'millisecond') {
            return this.valueOf() === localInput.valueOf();
        } else {
            inputMs = localInput.valueOf();
            return (
                this.clone().startOf(units).valueOf() <= inputMs &&
                inputMs <= this.clone().endOf(units).valueOf()
            );
        }
    }

    function isSameOrAfter(input, units) {
        return this.isSame(input, units) || this.isAfter(input, units);
    }

    function isSameOrBefore(input, units) {
        return this.isSame(input, units) || this.isBefore(input, units);
    }

    function diff(input, units, asFloat) {
        var that, zoneDelta, output;

        if (!this.isValid()) {
            return NaN;
        }

        that = cloneWithOffset(input, this);

        if (!that.isValid()) {
            return NaN;
        }

        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;

        units = normalizeUnits(units);

        switch (units) {
            case 'year':
                output = monthDiff(this, that) / 12;
                break;
            case 'month':
                output = monthDiff(this, that);
                break;
            case 'quarter':
                output = monthDiff(this, that) / 3;
                break;
            case 'second':
                output = (this - that) / 1e3;
                break; // 1000
            case 'minute':
                output = (this - that) / 6e4;
                break; // 1000 * 60
            case 'hour':
                output = (this - that) / 36e5;
                break; // 1000 * 60 * 60
            case 'day':
                output = (this - that - zoneDelta) / 864e5;
                break; // 1000 * 60 * 60 * 24, negate dst
            case 'week':
                output = (this - that - zoneDelta) / 6048e5;
                break; // 1000 * 60 * 60 * 24 * 7, negate dst
            default:
                output = this - that;
        }

        return asFloat ? output : absFloor(output);
    }

    function monthDiff(a, b) {
        if (a.date() < b.date()) {
            // end-of-month calculations work correct when the start month has more
            // days than the end month.
            return -monthDiff(b, a);
        }
        // difference in months
        var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
            // b is in (anchor - 1 month, anchor + 1 month)
            anchor = a.clone().add(wholeMonthDiff, 'months'),
            anchor2,
            adjust;

        if (b - anchor < 0) {
            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
            // linear across the month
            adjust = (b - anchor) / (anchor - anchor2);
        } else {
            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
            // linear across the month
            adjust = (b - anchor) / (anchor2 - anchor);
        }

        //check for negative zero, return zero if negative zero
        return -(wholeMonthDiff + adjust) || 0;
    }

    hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
    hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';

    function toString() {
        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
    }

    function toISOString(keepOffset) {
        if (!this.isValid()) {
            return null;
        }
        var utc = keepOffset !== true,
            m = utc ? this.clone().utc() : this;
        if (m.year() < 0 || m.year() > 9999) {
            return formatMoment(
                m,
                utc
                    ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
                    : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
            );
        }
        if (isFunction(Date.prototype.toISOString)) {
            // native implementation is ~50x faster, use it when we can
            if (utc) {
                return this.toDate().toISOString();
            } else {
                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
                    .toISOString()
                    .replace('Z', formatMoment(m, 'Z'));
            }
        }
        return formatMoment(
            m,
            utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
        );
    }

    /**
     * Return a human readable representation of a moment that can
     * also be evaluated to get a new moment which is the same
     *
     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
     */
    function inspect() {
        if (!this.isValid()) {
            return 'moment.invalid(/* ' + this._i + ' */)';
        }
        var func = 'moment',
            zone = '',
            prefix,
            year,
            datetime,
            suffix;
        if (!this.isLocal()) {
            func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
            zone = 'Z';
        }
        prefix = '[' + func + '("]';
        year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
        datetime = '-MM-DD[T]HH:mm:ss.SSS';
        suffix = zone + '[")]';

        return this.format(prefix + year + datetime + suffix);
    }

    function format(inputString) {
        if (!inputString) {
            inputString = this.isUtc()
                ? hooks.defaultFormatUtc
                : hooks.defaultFormat;
        }
        var output = formatMoment(this, inputString);
        return this.localeData().postformat(output);
    }

    function from(time, withoutSuffix) {
        if (
            this.isValid() &&
            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
        ) {
            return createDuration({ to: this, from: time })
                .locale(this.locale())
                .humanize(!withoutSuffix);
        } else {
            return this.localeData().invalidDate();
        }
    }

    function fromNow(withoutSuffix) {
        return this.from(createLocal(), withoutSuffix);
    }

    function to(time, withoutSuffix) {
        if (
            this.isValid() &&
            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
        ) {
            return createDuration({ from: this, to: time })
                .locale(this.locale())
                .humanize(!withoutSuffix);
        } else {
            return this.localeData().invalidDate();
        }
    }

    function toNow(withoutSuffix) {
        return this.to(createLocal(), withoutSuffix);
    }

    // If passed a locale key, it will set the locale for this
    // instance.  Otherwise, it will return the locale configuration
    // variables for this instance.
    function locale(key) {
        var newLocaleData;

        if (key === undefined) {
            return this._locale._abbr;
        } else {
            newLocaleData = getLocale(key);
            if (newLocaleData != null) {
                this._locale = newLocaleData;
            }
            return this;
        }
    }

    var lang = deprecate(
        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
        function (key) {
            if (key === undefined) {
                return this.localeData();
            } else {
                return this.locale(key);
            }
        }
    );

    function localeData() {
        return this._locale;
    }

    var MS_PER_SECOND = 1000,
        MS_PER_MINUTE = 60 * MS_PER_SECOND,
        MS_PER_HOUR = 60 * MS_PER_MINUTE,
        MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;

    // actual modulo - handles negative numbers (for dates before 1970):
    function mod$1(dividend, divisor) {
        return ((dividend % divisor) + divisor) % divisor;
    }

    function localStartOfDate(y, m, d) {
        // the date constructor remaps years 0-99 to 1900-1999
        if (y < 100 && y >= 0) {
            // preserve leap years using a full 400 year cycle, then reset
            return new Date(y + 400, m, d) - MS_PER_400_YEARS;
        } else {
            return new Date(y, m, d).valueOf();
        }
    }

    function utcStartOfDate(y, m, d) {
        // Date.UTC remaps years 0-99 to 1900-1999
        if (y < 100 && y >= 0) {
            // preserve leap years using a full 400 year cycle, then reset
            return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
        } else {
            return Date.UTC(y, m, d);
        }
    }

    function startOf(units) {
        var time, startOfDate;
        units = normalizeUnits(units);
        if (units === undefined || units === 'millisecond' || !this.isValid()) {
            return this;
        }

        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;

        switch (units) {
            case 'year':
                time = startOfDate(this.year(), 0, 1);
                break;
            case 'quarter':
                time = startOfDate(
                    this.year(),
                    this.month() - (this.month() % 3),
                    1
                );
                break;
            case 'month':
                time = startOfDate(this.year(), this.month(), 1);
                break;
            case 'week':
                time = startOfDate(
                    this.year(),
                    this.month(),
                    this.date() - this.weekday()
                );
                break;
            case 'isoWeek':
                time = startOfDate(
                    this.year(),
                    this.month(),
                    this.date() - (this.isoWeekday() - 1)
                );
                break;
            case 'day':
            case 'date':
                time = startOfDate(this.year(), this.month(), this.date());
                break;
            case 'hour':
                time = this._d.valueOf();
                time -= mod$1(
                    time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
                    MS_PER_HOUR
                );
                break;
            case 'minute':
                time = this._d.valueOf();
                time -= mod$1(time, MS_PER_MINUTE);
                break;
            case 'second':
                time = this._d.valueOf();
                time -= mod$1(time, MS_PER_SECOND);
                break;
        }

        this._d.setTime(time);
        hooks.updateOffset(this, true);
        return this;
    }

    function endOf(units) {
        var time, startOfDate;
        units = normalizeUnits(units);
        if (units === undefined || units === 'millisecond' || !this.isValid()) {
            return this;
        }

        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;

        switch (units) {
            case 'year':
                time = startOfDate(this.year() + 1, 0, 1) - 1;
                break;
            case 'quarter':
                time =
                    startOfDate(
                        this.year(),
                        this.month() - (this.month() % 3) + 3,
                        1
                    ) - 1;
                break;
            case 'month':
                time = startOfDate(this.year(), this.month() + 1, 1) - 1;
                break;
            case 'week':
                time =
                    startOfDate(
                        this.year(),
                        this.month(),
                        this.date() - this.weekday() + 7
                    ) - 1;
                break;
            case 'isoWeek':
                time =
                    startOfDate(
                        this.year(),
                        this.month(),
                        this.date() - (this.isoWeekday() - 1) + 7
                    ) - 1;
                break;
            case 'day':
            case 'date':
                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
                break;
            case 'hour':
                time = this._d.valueOf();
                time +=
                    MS_PER_HOUR -
                    mod$1(
                        time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
                        MS_PER_HOUR
                    ) -
                    1;
                break;
            case 'minute':
                time = this._d.valueOf();
                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
                break;
            case 'second':
                time = this._d.valueOf();
                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
                break;
        }

        this._d.setTime(time);
        hooks.updateOffset(this, true);
        return this;
    }

    function valueOf() {
        return this._d.valueOf() - (this._offset || 0) * 60000;
    }

    function unix() {
        return Math.floor(this.valueOf() / 1000);
    }

    function toDate() {
        return new Date(this.valueOf());
    }

    function toArray() {
        var m = this;
        return [
            m.year(),
            m.month(),
            m.date(),
            m.hour(),
            m.minute(),
            m.second(),
            m.millisecond(),
        ];
    }

    function toObject() {
        var m = this;
        return {
            years: m.year(),
            months: m.month(),
            date: m.date(),
            hours: m.hours(),
            minutes: m.minutes(),
            seconds: m.seconds(),
            milliseconds: m.milliseconds(),
        };
    }

    function toJSON() {
        // new Date(NaN).toJSON() === null
        return this.isValid() ? this.toISOString() : null;
    }

    function isValid$2() {
        return isValid(this);
    }

    function parsingFlags() {
        return extend({}, getParsingFlags(this));
    }

    function invalidAt() {
        return getParsingFlags(this).overflow;
    }

    function creationData() {
        return {
            input: this._i,
            format: this._f,
            locale: this._locale,
            isUTC: this._isUTC,
            strict: this._strict,
        };
    }

    addFormatToken('N', 0, 0, 'eraAbbr');
    addFormatToken('NN', 0, 0, 'eraAbbr');
    addFormatToken('NNN', 0, 0, 'eraAbbr');
    addFormatToken('NNNN', 0, 0, 'eraName');
    addFormatToken('NNNNN', 0, 0, 'eraNarrow');

    addFormatToken('y', ['y', 1], 'yo', 'eraYear');
    addFormatToken('y', ['yy', 2], 0, 'eraYear');
    addFormatToken('y', ['yyy', 3], 0, 'eraYear');
    addFormatToken('y', ['yyyy', 4], 0, 'eraYear');

    addRegexToken('N', matchEraAbbr);
    addRegexToken('NN', matchEraAbbr);
    addRegexToken('NNN', matchEraAbbr);
    addRegexToken('NNNN', matchEraName);
    addRegexToken('NNNNN', matchEraNarrow);

    addParseToken(
        ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
        function (input, array, config, token) {
            var era = config._locale.erasParse(input, token, config._strict);
            if (era) {
                getParsingFlags(config).era = era;
            } else {
                getParsingFlags(config).invalidEra = input;
            }
        }
    );

    addRegexToken('y', matchUnsigned);
    addRegexToken('yy', matchUnsigned);
    addRegexToken('yyy', matchUnsigned);
    addRegexToken('yyyy', matchUnsigned);
    addRegexToken('yo', matchEraYearOrdinal);

    addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
    addParseToken(['yo'], function (input, array, config, token) {
        var match;
        if (config._locale._eraYearOrdinalRegex) {
            match = input.match(config._locale._eraYearOrdinalRegex);
        }

        if (config._locale.eraYearOrdinalParse) {
            array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
        } else {
            array[YEAR] = parseInt(input, 10);
        }
    });

    function localeEras(m, format) {
        var i,
            l,
            date,
            eras = this._eras || getLocale('en')._eras;
        for (i = 0, l = eras.length; i < l; ++i) {
            switch (typeof eras[i].since) {
                case 'string':
                    // truncate time
                    date = hooks(eras[i].since).startOf('day');
                    eras[i].since = date.valueOf();
                    break;
            }

            switch (typeof eras[i].until) {
                case 'undefined':
                    eras[i].until = +Infinity;
                    break;
                case 'string':
                    // truncate time
                    date = hooks(eras[i].until).startOf('day').valueOf();
                    eras[i].until = date.valueOf();
                    break;
            }
        }
        return eras;
    }

    function localeErasParse(eraName, format, strict) {
        var i,
            l,
            eras = this.eras(),
            name,
            abbr,
            narrow;
        eraName = eraName.toUpperCase();

        for (i = 0, l = eras.length; i < l; ++i) {
            name = eras[i].name.toUpperCase();
            abbr = eras[i].abbr.toUpperCase();
            narrow = eras[i].narrow.toUpperCase();

            if (strict) {
                switch (format) {
                    case 'N':
                    case 'NN':
                    case 'NNN':
                        if (abbr === eraName) {
                            return eras[i];
                        }
                        break;

                    case 'NNNN':
                        if (name === eraName) {
                            return eras[i];
                        }
                        break;

                    case 'NNNNN':
                        if (narrow === eraName) {
                            return eras[i];
                        }
                        break;
                }
            } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
                return eras[i];
            }
        }
    }

    function localeErasConvertYear(era, year) {
        var dir = era.since <= era.until ? +1 : -1;
        if (year === undefined) {
            return hooks(era.since).year();
        } else {
            return hooks(era.since).year() + (year - era.offset) * dir;
        }
    }

    function getEraName() {
        var i,
            l,
            val,
            eras = this.localeData().eras();
        for (i = 0, l = eras.length; i < l; ++i) {
            // truncate time
            val = this.clone().startOf('day').valueOf();

            if (eras[i].since <= val && val <= eras[i].until) {
                return eras[i].name;
            }
            if (eras[i].until <= val && val <= eras[i].since) {
                return eras[i].name;
            }
        }

        return '';
    }

    function getEraNarrow() {
        var i,
            l,
            val,
            eras = this.localeData().eras();
        for (i = 0, l = eras.length; i < l; ++i) {
            // truncate time
            val = this.clone().startOf('day').valueOf();

            if (eras[i].since <= val && val <= eras[i].until) {
                return eras[i].narrow;
            }
            if (eras[i].until <= val && val <= eras[i].since) {
                return eras[i].narrow;
            }
        }

        return '';
    }

    function getEraAbbr() {
        var i,
            l,
            val,
            eras = this.localeData().eras();
        for (i = 0, l = eras.length; i < l; ++i) {
            // truncate time
            val = this.clone().startOf('day').valueOf();

            if (eras[i].since <= val && val <= eras[i].until) {
                return eras[i].abbr;
            }
            if (eras[i].until <= val && val <= eras[i].since) {
                return eras[i].abbr;
            }
        }

        return '';
    }

    function getEraYear() {
        var i,
            l,
            dir,
            val,
            eras = this.localeData().eras();
        for (i = 0, l = eras.length; i < l; ++i) {
            dir = eras[i].since <= eras[i].until ? +1 : -1;

            // truncate time
            val = this.clone().startOf('day').valueOf();

            if (
                (eras[i].since <= val && val <= eras[i].until) ||
                (eras[i].until <= val && val <= eras[i].since)
            ) {
                return (
                    (this.year() - hooks(eras[i].since).year()) * dir +
                    eras[i].offset
                );
            }
        }

        return this.year();
    }

    function erasNameRegex(isStrict) {
        if (!hasOwnProp(this, '_erasNameRegex')) {
            computeErasParse.call(this);
        }
        return isStrict ? this._erasNameRegex : this._erasRegex;
    }

    function erasAbbrRegex(isStrict) {
        if (!hasOwnProp(this, '_erasAbbrRegex')) {
            computeErasParse.call(this);
        }
        return isStrict ? this._erasAbbrRegex : this._erasRegex;
    }

    function erasNarrowRegex(isStrict) {
        if (!hasOwnProp(this, '_erasNarrowRegex')) {
            computeErasParse.call(this);
        }
        return isStrict ? this._erasNarrowRegex : this._erasRegex;
    }

    function matchEraAbbr(isStrict, locale) {
        return locale.erasAbbrRegex(isStrict);
    }

    function matchEraName(isStrict, locale) {
        return locale.erasNameRegex(isStrict);
    }

    function matchEraNarrow(isStrict, locale) {
        return locale.erasNarrowRegex(isStrict);
    }

    function matchEraYearOrdinal(isStrict, locale) {
        return locale._eraYearOrdinalRegex || matchUnsigned;
    }

    function computeErasParse() {
        var abbrPieces = [],
            namePieces = [],
            narrowPieces = [],
            mixedPieces = [],
            i,
            l,
            erasName,
            erasAbbr,
            erasNarrow,
            eras = this.eras();

        for (i = 0, l = eras.length; i < l; ++i) {
            erasName = regexEscape(eras[i].name);
            erasAbbr = regexEscape(eras[i].abbr);
            erasNarrow = regexEscape(eras[i].narrow);

            namePieces.push(erasName);
            abbrPieces.push(erasAbbr);
            narrowPieces.push(erasNarrow);
            mixedPieces.push(erasName);
            mixedPieces.push(erasAbbr);
            mixedPieces.push(erasNarrow);
        }

        this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
        this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
        this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
        this._erasNarrowRegex = new RegExp(
            '^(' + narrowPieces.join('|') + ')',
            'i'
        );
    }

    // FORMATTING

    addFormatToken(0, ['gg', 2], 0, function () {
        return this.weekYear() % 100;
    });

    addFormatToken(0, ['GG', 2], 0, function () {
        return this.isoWeekYear() % 100;
    });

    function addWeekYearFormatToken(token, getter) {
        addFormatToken(0, [token, token.length], 0, getter);
    }

    addWeekYearFormatToken('gggg', 'weekYear');
    addWeekYearFormatToken('ggggg', 'weekYear');
    addWeekYearFormatToken('GGGG', 'isoWeekYear');
    addWeekYearFormatToken('GGGGG', 'isoWeekYear');

    // ALIASES

    // PARSING

    addRegexToken('G', matchSigned);
    addRegexToken('g', matchSigned);
    addRegexToken('GG', match1to2, match2);
    addRegexToken('gg', match1to2, match2);
    addRegexToken('GGGG', match1to4, match4);
    addRegexToken('gggg', match1to4, match4);
    addRegexToken('GGGGG', match1to6, match6);
    addRegexToken('ggggg', match1to6, match6);

    addWeekParseToken(
        ['gggg', 'ggggg', 'GGGG', 'GGGGG'],
        function (input, week, config, token) {
            week[token.substr(0, 2)] = toInt(input);
        }
    );

    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
        week[token] = hooks.parseTwoDigitYear(input);
    });

    // MOMENTS

    function getSetWeekYear(input) {
        return getSetWeekYearHelper.call(
            this,
            input,
            this.week(),
            this.weekday() + this.localeData()._week.dow,
            this.localeData()._week.dow,
            this.localeData()._week.doy
        );
    }

    function getSetISOWeekYear(input) {
        return getSetWeekYearHelper.call(
            this,
            input,
            this.isoWeek(),
            this.isoWeekday(),
            1,
            4
        );
    }

    function getISOWeeksInYear() {
        return weeksInYear(this.year(), 1, 4);
    }

    function getISOWeeksInISOWeekYear() {
        return weeksInYear(this.isoWeekYear(), 1, 4);
    }

    function getWeeksInYear() {
        var weekInfo = this.localeData()._week;
        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
    }

    function getWeeksInWeekYear() {
        var weekInfo = this.localeData()._week;
        return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
    }

    function getSetWeekYearHelper(input, week, weekday, dow, doy) {
        var weeksTarget;
        if (input == null) {
            return weekOfYear(this, dow, doy).year;
        } else {
            weeksTarget = weeksInYear(input, dow, doy);
            if (week > weeksTarget) {
                week = weeksTarget;
            }
            return setWeekAll.call(this, input, week, weekday, dow, doy);
        }
    }

    function setWeekAll(weekYear, week, weekday, dow, doy) {
        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);

        this.year(date.getUTCFullYear());
        this.month(date.getUTCMonth());
        this.date(date.getUTCDate());
        return this;
    }

    // FORMATTING

    addFormatToken('Q', 0, 'Qo', 'quarter');

    // PARSING

    addRegexToken('Q', match1);
    addParseToken('Q', function (input, array) {
        array[MONTH] = (toInt(input) - 1) * 3;
    });

    // MOMENTS

    function getSetQuarter(input) {
        return input == null
            ? Math.ceil((this.month() + 1) / 3)
            : this.month((input - 1) * 3 + (this.month() % 3));
    }

    // FORMATTING

    addFormatToken('D', ['DD', 2], 'Do', 'date');

    // PARSING

    addRegexToken('D', match1to2, match1to2NoLeadingZero);
    addRegexToken('DD', match1to2, match2);
    addRegexToken('Do', function (isStrict, locale) {
        // TODO: Remove "ordinalParse" fallback in next major release.
        return isStrict
            ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
            : locale._dayOfMonthOrdinalParseLenient;
    });

    addParseToken(['D', 'DD'], DATE);
    addParseToken('Do', function (input, array) {
        array[DATE] = toInt(input.match(match1to2)[0]);
    });

    // MOMENTS

    var getSetDayOfMonth = makeGetSet('Date', true);

    // FORMATTING

    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');

    // PARSING

    addRegexToken('DDD', match1to3);
    addRegexToken('DDDD', match3);
    addParseToken(['DDD', 'DDDD'], function (input, array, config) {
        config._dayOfYear = toInt(input);
    });

    // HELPERS

    // MOMENTS

    function getSetDayOfYear(input) {
        var dayOfYear =
            Math.round(
                (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
            ) + 1;
        return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
    }

    // FORMATTING

    addFormatToken('m', ['mm', 2], 0, 'minute');

    // PARSING

    addRegexToken('m', match1to2, match1to2HasZero);
    addRegexToken('mm', match1to2, match2);
    addParseToken(['m', 'mm'], MINUTE);

    // MOMENTS

    var getSetMinute = makeGetSet('Minutes', false);

    // FORMATTING

    addFormatToken('s', ['ss', 2], 0, 'second');

    // PARSING

    addRegexToken('s', match1to2, match1to2HasZero);
    addRegexToken('ss', match1to2, match2);
    addParseToken(['s', 'ss'], SECOND);

    // MOMENTS

    var getSetSecond = makeGetSet('Seconds', false);

    // FORMATTING

    addFormatToken('S', 0, 0, function () {
        return ~~(this.millisecond() / 100);
    });

    addFormatToken(0, ['SS', 2], 0, function () {
        return ~~(this.millisecond() / 10);
    });

    addFormatToken(0, ['SSS', 3], 0, 'millisecond');
    addFormatToken(0, ['SSSS', 4], 0, function () {
        return this.millisecond() * 10;
    });
    addFormatToken(0, ['SSSSS', 5], 0, function () {
        return this.millisecond() * 100;
    });
    addFormatToken(0, ['SSSSSS', 6], 0, function () {
        return this.millisecond() * 1000;
    });
    addFormatToken(0, ['SSSSSSS', 7], 0, function () {
        return this.millisecond() * 10000;
    });
    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
        return this.millisecond() * 100000;
    });
    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
        return this.millisecond() * 1000000;
    });

    // PARSING

    addRegexToken('S', match1to3, match1);
    addRegexToken('SS', match1to3, match2);
    addRegexToken('SSS', match1to3, match3);

    var token, getSetMillisecond;
    for (token = 'SSSS'; token.length <= 9; token += 'S') {
        addRegexToken(token, matchUnsigned);
    }

    function parseMs(input, array) {
        array[MILLISECOND] = toInt(('0.' + input) * 1000);
    }

    for (token = 'S'; token.length <= 9; token += 'S') {
        addParseToken(token, parseMs);
    }

    getSetMillisecond = makeGetSet('Milliseconds', false);

    // FORMATTING

    addFormatToken('z', 0, 0, 'zoneAbbr');
    addFormatToken('zz', 0, 0, 'zoneName');

    // MOMENTS

    function getZoneAbbr() {
        return this._isUTC ? 'UTC' : '';
    }

    function getZoneName() {
        return this._isUTC ? 'Coordinated Universal Time' : '';
    }

    var proto = Moment.prototype;

    proto.add = add;
    proto.calendar = calendar$1;
    proto.clone = clone;
    proto.diff = diff;
    proto.endOf = endOf;
    proto.format = format;
    proto.from = from;
    proto.fromNow = fromNow;
    proto.to = to;
    proto.toNow = toNow;
    proto.get = stringGet;
    proto.invalidAt = invalidAt;
    proto.isAfter = isAfter;
    proto.isBefore = isBefore;
    proto.isBetween = isBetween;
    proto.isSame = isSame;
    proto.isSameOrAfter = isSameOrAfter;
    proto.isSameOrBefore = isSameOrBefore;
    proto.isValid = isValid$2;
    proto.lang = lang;
    proto.locale = locale;
    proto.localeData = localeData;
    proto.max = prototypeMax;
    proto.min = prototypeMin;
    proto.parsingFlags = parsingFlags;
    proto.set = stringSet;
    proto.startOf = startOf;
    proto.subtract = subtract;
    proto.toArray = toArray;
    proto.toObject = toObject;
    proto.toDate = toDate;
    proto.toISOString = toISOString;
    proto.inspect = inspect;
    if (typeof Symbol !== 'undefined' && Symbol.for != null) {
        proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
            return 'Moment<' + this.format() + '>';
        };
    }
    proto.toJSON = toJSON;
    proto.toString = toString;
    proto.unix = unix;
    proto.valueOf = valueOf;
    proto.creationData = creationData;
    proto.eraName = getEraName;
    proto.eraNarrow = getEraNarrow;
    proto.eraAbbr = getEraAbbr;
    proto.eraYear = getEraYear;
    proto.year = getSetYear;
    proto.isLeapYear = getIsLeapYear;
    proto.weekYear = getSetWeekYear;
    proto.isoWeekYear = getSetISOWeekYear;
    proto.quarter = proto.quarters = getSetQuarter;
    proto.month = getSetMonth;
    proto.daysInMonth = getDaysInMonth;
    proto.week = proto.weeks = getSetWeek;
    proto.isoWeek = proto.isoWeeks = getSetISOWeek;
    proto.weeksInYear = getWeeksInYear;
    proto.weeksInWeekYear = getWeeksInWeekYear;
    proto.isoWeeksInYear = getISOWeeksInYear;
    proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
    proto.date = getSetDayOfMonth;
    proto.day = proto.days = getSetDayOfWeek;
    proto.weekday = getSetLocaleDayOfWeek;
    proto.isoWeekday = getSetISODayOfWeek;
    proto.dayOfYear = getSetDayOfYear;
    proto.hour = proto.hours = getSetHour;
    proto.minute = proto.minutes = getSetMinute;
    proto.second = proto.seconds = getSetSecond;
    proto.millisecond = proto.milliseconds = getSetMillisecond;
    proto.utcOffset = getSetOffset;
    proto.utc = setOffsetToUTC;
    proto.local = setOffsetToLocal;
    proto.parseZone = setOffsetToParsedOffset;
    proto.hasAlignedHourOffset = hasAlignedHourOffset;
    proto.isDST = isDaylightSavingTime;
    proto.isLocal = isLocal;
    proto.isUtcOffset = isUtcOffset;
    proto.isUtc = isUtc;
    proto.isUTC = isUtc;
    proto.zoneAbbr = getZoneAbbr;
    proto.zoneName = getZoneName;
    proto.dates = deprecate(
        'dates accessor is deprecated. Use date instead.',
        getSetDayOfMonth
    );
    proto.months = deprecate(
        'months accessor is deprecated. Use month instead',
        getSetMonth
    );
    proto.years = deprecate(
        'years accessor is deprecated. Use year instead',
        getSetYear
    );
    proto.zone = deprecate(
        'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
        getSetZone
    );
    proto.isDSTShifted = deprecate(
        'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
        isDaylightSavingTimeShifted
    );

    function createUnix(input) {
        return createLocal(input * 1000);
    }

    function createInZone() {
        return createLocal.apply(null, arguments).parseZone();
    }

    function preParsePostFormat(string) {
        return string;
    }

    var proto$1 = Locale.prototype;

    proto$1.calendar = calendar;
    proto$1.longDateFormat = longDateFormat;
    proto$1.invalidDate = invalidDate;
    proto$1.ordinal = ordinal;
    proto$1.preparse = preParsePostFormat;
    proto$1.postformat = preParsePostFormat;
    proto$1.relativeTime = relativeTime;
    proto$1.pastFuture = pastFuture;
    proto$1.set = set;
    proto$1.eras = localeEras;
    proto$1.erasParse = localeErasParse;
    proto$1.erasConvertYear = localeErasConvertYear;
    proto$1.erasAbbrRegex = erasAbbrRegex;
    proto$1.erasNameRegex = erasNameRegex;
    proto$1.erasNarrowRegex = erasNarrowRegex;

    proto$1.months = localeMonths;
    proto$1.monthsShort = localeMonthsShort;
    proto$1.monthsParse = localeMonthsParse;
    proto$1.monthsRegex = monthsRegex;
    proto$1.monthsShortRegex = monthsShortRegex;
    proto$1.week = localeWeek;
    proto$1.firstDayOfYear = localeFirstDayOfYear;
    proto$1.firstDayOfWeek = localeFirstDayOfWeek;

    proto$1.weekdays = localeWeekdays;
    proto$1.weekdaysMin = localeWeekdaysMin;
    proto$1.weekdaysShort = localeWeekdaysShort;
    proto$1.weekdaysParse = localeWeekdaysParse;

    proto$1.weekdaysRegex = weekdaysRegex;
    proto$1.weekdaysShortRegex = weekdaysShortRegex;
    proto$1.weekdaysMinRegex = weekdaysMinRegex;

    proto$1.isPM = localeIsPM;
    proto$1.meridiem = localeMeridiem;

    function get$1(format, index, field, setter) {
        var locale = getLocale(),
            utc = createUTC().set(setter, index);
        return locale[field](utc, format);
    }

    function listMonthsImpl(format, index, field) {
        if (isNumber(format)) {
            index = format;
            format = undefined;
        }

        format = format || '';

        if (index != null) {
            return get$1(format, index, field, 'month');
        }

        var i,
            out = [];
        for (i = 0; i < 12; i++) {
            out[i] = get$1(format, i, field, 'month');
        }
        return out;
    }

    // ()
    // (5)
    // (fmt, 5)
    // (fmt)
    // (true)
    // (true, 5)
    // (true, fmt, 5)
    // (true, fmt)
    function listWeekdaysImpl(localeSorted, format, index, field) {
        if (typeof localeSorted === 'boolean') {
            if (isNumber(format)) {
                index = format;
                format = undefined;
            }

            format = format || '';
        } else {
            format = localeSorted;
            index = format;
            localeSorted = false;

            if (isNumber(format)) {
                index = format;
                format = undefined;
            }

            format = format || '';
        }

        var locale = getLocale(),
            shift = localeSorted ? locale._week.dow : 0,
            i,
            out = [];

        if (index != null) {
            return get$1(format, (index + shift) % 7, field, 'day');
        }

        for (i = 0; i < 7; i++) {
            out[i] = get$1(format, (i + shift) % 7, field, 'day');
        }
        return out;
    }

    function listMonths(format, index) {
        return listMonthsImpl(format, index, 'months');
    }

    function listMonthsShort(format, index) {
        return listMonthsImpl(format, index, 'monthsShort');
    }

    function listWeekdays(localeSorted, format, index) {
        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
    }

    function listWeekdaysShort(localeSorted, format, index) {
        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
    }

    function listWeekdaysMin(localeSorted, format, index) {
        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
    }

    getSetGlobalLocale('en', {
        eras: [
            {
                since: '0001-01-01',
                until: +Infinity,
                offset: 1,
                name: 'Anno Domini',
                narrow: 'AD',
                abbr: 'AD',
            },
            {
                since: '0000-12-31',
                until: -Infinity,
                offset: 1,
                name: 'Before Christ',
                narrow: 'BC',
                abbr: 'BC',
            },
        ],
        dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    toInt((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
    });

    // Side effect imports

    hooks.lang = deprecate(
        'moment.lang is deprecated. Use moment.locale instead.',
        getSetGlobalLocale
    );
    hooks.langData = deprecate(
        'moment.langData is deprecated. Use moment.localeData instead.',
        getLocale
    );

    var mathAbs = Math.abs;

    function abs() {
        var data = this._data;

        this._milliseconds = mathAbs(this._milliseconds);
        this._days = mathAbs(this._days);
        this._months = mathAbs(this._months);

        data.milliseconds = mathAbs(data.milliseconds);
        data.seconds = mathAbs(data.seconds);
        data.minutes = mathAbs(data.minutes);
        data.hours = mathAbs(data.hours);
        data.months = mathAbs(data.months);
        data.years = mathAbs(data.years);

        return this;
    }

    function addSubtract$1(duration, input, value, direction) {
        var other = createDuration(input, value);

        duration._milliseconds += direction * other._milliseconds;
        duration._days += direction * other._days;
        duration._months += direction * other._months;

        return duration._bubble();
    }

    // supports only 2.0-style add(1, 's') or add(duration)
    function add$1(input, value) {
        return addSubtract$1(this, input, value, 1);
    }

    // supports only 2.0-style subtract(1, 's') or subtract(duration)
    function subtract$1(input, value) {
        return addSubtract$1(this, input, value, -1);
    }

    function absCeil(number) {
        if (number < 0) {
            return Math.floor(number);
        } else {
            return Math.ceil(number);
        }
    }

    function bubble() {
        var milliseconds = this._milliseconds,
            days = this._days,
            months = this._months,
            data = this._data,
            seconds,
            minutes,
            hours,
            years,
            monthsFromDays;

        // if we have a mix of positive and negative values, bubble down first
        // check: https://github.com/moment/moment/issues/2166
        if (
            !(
                (milliseconds >= 0 && days >= 0 && months >= 0) ||
                (milliseconds <= 0 && days <= 0 && months <= 0)
            )
        ) {
            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
            days = 0;
            months = 0;
        }

        // The following code bubbles up values, see the tests for
        // examples of what that means.
        data.milliseconds = milliseconds % 1000;

        seconds = absFloor(milliseconds / 1000);
        data.seconds = seconds % 60;

        minutes = absFloor(seconds / 60);
        data.minutes = minutes % 60;

        hours = absFloor(minutes / 60);
        data.hours = hours % 24;

        days += absFloor(hours / 24);

        // convert days to months
        monthsFromDays = absFloor(daysToMonths(days));
        months += monthsFromDays;
        days -= absCeil(monthsToDays(monthsFromDays));

        // 12 months -> 1 year
        years = absFloor(months / 12);
        months %= 12;

        data.days = days;
        data.months = months;
        data.years = years;

        return this;
    }

    function daysToMonths(days) {
        // 400 years have 146097 days (taking into account leap year rules)
        // 400 years have 12 months === 4800
        return (days * 4800) / 146097;
    }

    function monthsToDays(months) {
        // the reverse of daysToMonths
        return (months * 146097) / 4800;
    }

    function as(units) {
        if (!this.isValid()) {
            return NaN;
        }
        var days,
            months,
            milliseconds = this._milliseconds;

        units = normalizeUnits(units);

        if (units === 'month' || units === 'quarter' || units === 'year') {
            days = this._days + milliseconds / 864e5;
            months = this._months + daysToMonths(days);
            switch (units) {
                case 'month':
                    return months;
                case 'quarter':
                    return months / 3;
                case 'year':
                    return months / 12;
            }
        } else {
            // handle milliseconds separately because of floating point math errors (issue #1867)
            days = this._days + Math.round(monthsToDays(this._months));
            switch (units) {
                case 'week':
                    return days / 7 + milliseconds / 6048e5;
                case 'day':
                    return days + milliseconds / 864e5;
                case 'hour':
                    return days * 24 + milliseconds / 36e5;
                case 'minute':
                    return days * 1440 + milliseconds / 6e4;
                case 'second':
                    return days * 86400 + milliseconds / 1000;
                // Math.floor prevents floating point math errors here
                case 'millisecond':
                    return Math.floor(days * 864e5) + milliseconds;
                default:
                    throw new Error('Unknown unit ' + units);
            }
        }
    }

    function makeAs(alias) {
        return function () {
            return this.as(alias);
        };
    }

    var asMilliseconds = makeAs('ms'),
        asSeconds = makeAs('s'),
        asMinutes = makeAs('m'),
        asHours = makeAs('h'),
        asDays = makeAs('d'),
        asWeeks = makeAs('w'),
        asMonths = makeAs('M'),
        asQuarters = makeAs('Q'),
        asYears = makeAs('y'),
        valueOf$1 = asMilliseconds;

    function clone$1() {
        return createDuration(this);
    }

    function get$2(units) {
        units = normalizeUnits(units);
        return this.isValid() ? this[units + 's']() : NaN;
    }

    function makeGetter(name) {
        return function () {
            return this.isValid() ? this._data[name] : NaN;
        };
    }

    var milliseconds = makeGetter('milliseconds'),
        seconds = makeGetter('seconds'),
        minutes = makeGetter('minutes'),
        hours = makeGetter('hours'),
        days = makeGetter('days'),
        months = makeGetter('months'),
        years = makeGetter('years');

    function weeks() {
        return absFloor(this.days() / 7);
    }

    var round = Math.round,
        thresholds = {
            ss: 44, // a few seconds to seconds
            s: 45, // seconds to minute
            m: 45, // minutes to hour
            h: 22, // hours to day
            d: 26, // days to month/week
            w: null, // weeks to month
            M: 11, // months to year
        };

    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
    }

    function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
        var duration = createDuration(posNegDuration).abs(),
            seconds = round(duration.as('s')),
            minutes = round(duration.as('m')),
            hours = round(duration.as('h')),
            days = round(duration.as('d')),
            months = round(duration.as('M')),
            weeks = round(duration.as('w')),
            years = round(duration.as('y')),
            a =
                (seconds <= thresholds.ss && ['s', seconds]) ||
                (seconds < thresholds.s && ['ss', seconds]) ||
                (minutes <= 1 && ['m']) ||
                (minutes < thresholds.m && ['mm', minutes]) ||
                (hours <= 1 && ['h']) ||
                (hours < thresholds.h && ['hh', hours]) ||
                (days <= 1 && ['d']) ||
                (days < thresholds.d && ['dd', days]);

        if (thresholds.w != null) {
            a =
                a ||
                (weeks <= 1 && ['w']) ||
                (weeks < thresholds.w && ['ww', weeks]);
        }
        a = a ||
            (months <= 1 && ['M']) ||
            (months < thresholds.M && ['MM', months]) ||
            (years <= 1 && ['y']) || ['yy', years];

        a[2] = withoutSuffix;
        a[3] = +posNegDuration > 0;
        a[4] = locale;
        return substituteTimeAgo.apply(null, a);
    }

    // This function allows you to set the rounding function for relative time strings
    function getSetRelativeTimeRounding(roundingFunction) {
        if (roundingFunction === undefined) {
            return round;
        }
        if (typeof roundingFunction === 'function') {
            round = roundingFunction;
            return true;
        }
        return false;
    }

    // This function allows you to set a threshold for relative time strings
    function getSetRelativeTimeThreshold(threshold, limit) {
        if (thresholds[threshold] === undefined) {
            return false;
        }
        if (limit === undefined) {
            return thresholds[threshold];
        }
        thresholds[threshold] = limit;
        if (threshold === 's') {
            thresholds.ss = limit - 1;
        }
        return true;
    }

    function humanize(argWithSuffix, argThresholds) {
        if (!this.isValid()) {
            return this.localeData().invalidDate();
        }

        var withSuffix = false,
            th = thresholds,
            locale,
            output;

        if (typeof argWithSuffix === 'object') {
            argThresholds = argWithSuffix;
            argWithSuffix = false;
        }
        if (typeof argWithSuffix === 'boolean') {
            withSuffix = argWithSuffix;
        }
        if (typeof argThresholds === 'object') {
            th = Object.assign({}, thresholds, argThresholds);
            if (argThresholds.s != null && argThresholds.ss == null) {
                th.ss = argThresholds.s - 1;
            }
        }

        locale = this.localeData();
        output = relativeTime$1(this, !withSuffix, th, locale);

        if (withSuffix) {
            output = locale.pastFuture(+this, output);
        }

        return locale.postformat(output);
    }

    var abs$1 = Math.abs;

    function sign(x) {
        return (x > 0) - (x < 0) || +x;
    }

    function toISOString$1() {
        // for ISO strings we do not use the normal bubbling rules:
        //  * milliseconds bubble up until they become hours
        //  * days do not bubble at all
        //  * months bubble up until they become years
        // This is because there is no context-free conversion between hours and days
        // (think of clock changes)
        // and also not between days and months (28-31 days per month)
        if (!this.isValid()) {
            return this.localeData().invalidDate();
        }

        var seconds = abs$1(this._milliseconds) / 1000,
            days = abs$1(this._days),
            months = abs$1(this._months),
            minutes,
            hours,
            years,
            s,
            total = this.asSeconds(),
            totalSign,
            ymSign,
            daysSign,
            hmsSign;

        if (!total) {
            // this is the same as C#'s (Noda) and python (isodate)...
            // but not other JS (goog.date)
            return 'P0D';
        }

        // 3600 seconds -> 60 minutes -> 1 hour
        minutes = absFloor(seconds / 60);
        hours = absFloor(minutes / 60);
        seconds %= 60;
        minutes %= 60;

        // 12 months -> 1 year
        years = absFloor(months / 12);
        months %= 12;

        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
        s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';

        totalSign = total < 0 ? '-' : '';
        ymSign = sign(this._months) !== sign(total) ? '-' : '';
        daysSign = sign(this._days) !== sign(total) ? '-' : '';
        hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';

        return (
            totalSign +
            'P' +
            (years ? ymSign + years + 'Y' : '') +
            (months ? ymSign + months + 'M' : '') +
            (days ? daysSign + days + 'D' : '') +
            (hours || minutes || seconds ? 'T' : '') +
            (hours ? hmsSign + hours + 'H' : '') +
            (minutes ? hmsSign + minutes + 'M' : '') +
            (seconds ? hmsSign + s + 'S' : '')
        );
    }

    var proto$2 = Duration.prototype;

    proto$2.isValid = isValid$1;
    proto$2.abs = abs;
    proto$2.add = add$1;
    proto$2.subtract = subtract$1;
    proto$2.as = as;
    proto$2.asMilliseconds = asMilliseconds;
    proto$2.asSeconds = asSeconds;
    proto$2.asMinutes = asMinutes;
    proto$2.asHours = asHours;
    proto$2.asDays = asDays;
    proto$2.asWeeks = asWeeks;
    proto$2.asMonths = asMonths;
    proto$2.asQuarters = asQuarters;
    proto$2.asYears = asYears;
    proto$2.valueOf = valueOf$1;
    proto$2._bubble = bubble;
    proto$2.clone = clone$1;
    proto$2.get = get$2;
    proto$2.milliseconds = milliseconds;
    proto$2.seconds = seconds;
    proto$2.minutes = minutes;
    proto$2.hours = hours;
    proto$2.days = days;
    proto$2.weeks = weeks;
    proto$2.months = months;
    proto$2.years = years;
    proto$2.humanize = humanize;
    proto$2.toISOString = toISOString$1;
    proto$2.toString = toISOString$1;
    proto$2.toJSON = toISOString$1;
    proto$2.locale = locale;
    proto$2.localeData = localeData;

    proto$2.toIsoString = deprecate(
        'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
        toISOString$1
    );
    proto$2.lang = lang;

    // FORMATTING

    addFormatToken('X', 0, 0, 'unix');
    addFormatToken('x', 0, 0, 'valueOf');

    // PARSING

    addRegexToken('x', matchSigned);
    addRegexToken('X', matchTimestamp);
    addParseToken('X', function (input, array, config) {
        config._d = new Date(parseFloat(input) * 1000);
    });
    addParseToken('x', function (input, array, config) {
        config._d = new Date(toInt(input));
    });

    //! moment.js

    hooks.version = '2.30.1';

    setHookCallback(createLocal);

    hooks.fn = proto;
    hooks.min = min;
    hooks.max = max;
    hooks.now = now;
    hooks.utc = createUTC;
    hooks.unix = createUnix;
    hooks.months = listMonths;
    hooks.isDate = isDate;
    hooks.locale = getSetGlobalLocale;
    hooks.invalid = createInvalid;
    hooks.duration = createDuration;
    hooks.isMoment = isMoment;
    hooks.weekdays = listWeekdays;
    hooks.parseZone = createInZone;
    hooks.localeData = getLocale;
    hooks.isDuration = isDuration;
    hooks.monthsShort = listMonthsShort;
    hooks.weekdaysMin = listWeekdaysMin;
    hooks.defineLocale = defineLocale;
    hooks.updateLocale = updateLocale;
    hooks.locales = listLocales;
    hooks.weekdaysShort = listWeekdaysShort;
    hooks.normalizeUnits = normalizeUnits;
    hooks.relativeTimeRounding = getSetRelativeTimeRounding;
    hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
    hooks.calendarFormat = getCalendarFormat;
    hooks.prototype = proto;

    // currently HTML5 input type only supports 24-hour formats
    hooks.HTML5_FMT = {
        DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
        DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
        DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
        DATE: 'YYYY-MM-DD', // <input type="date" />
        TIME: 'HH:mm', // <input type="time" />
        TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
        TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
        WEEK: 'GGGG-[W]WW', // <input type="week" />
        MONTH: 'YYYY-MM', // <input type="month" />
    };

    return hooks;

})));

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(185)(module)))//! moment.js locale configuration
//! locale : Afrikaans [af]
//! author : Werner Mollentze : https://github.com/wernerm

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var af = moment.defineLocale('af', {
        months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
        weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
            '_'
        ),
        weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
        weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
        meridiemParse: /vm|nm/i,
        isPM: function (input) {
            return /^nm$/i.test(input);
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours < 12) {
                return isLower ? 'vm' : 'VM';
            } else {
                return isLower ? 'nm' : 'NM';
            }
        },
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Vandag om] LT',
            nextDay: '[Môre om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[Gister om] LT',
            lastWeek: '[Laas] dddd [om] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'oor %s',
            past: '%s gelede',
            s: "'n paar sekondes",
            ss: '%d sekondes',
            m: "'n minuut",
            mm: '%d minute',
            h: "'n uur",
            hh: '%d ure',
            d: "'n dag",
            dd: '%d dae',
            M: "'n maand",
            MM: '%d maande',
            y: "'n jaar",
            yy: '%d jaar',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
        ordinal: function (number) {
            return (
                number +
                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
            ); // Thanks to Joris Röling : https://github.com/jjupiter
        },
        week: {
            dow: 1, // Maandag is die eerste dag van die week.
            doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
        },
    });

    return af;

})));
//! moment.js locale configuration
//! locale : Arabic [ar]
//! author : Abdel Said: https://github.com/abdelsaid
//! author : Ahmed Elkhatib
//! author : forabi https://github.com/forabi

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '١',
            2: '٢',
            3: '٣',
            4: '٤',
            5: '٥',
            6: '٦',
            7: '٧',
            8: '٨',
            9: '٩',
            0: '٠',
        },
        numberMap = {
            '١': '1',
            '٢': '2',
            '٣': '3',
            '٤': '4',
            '٥': '5',
            '٦': '6',
            '٧': '7',
            '٨': '8',
            '٩': '9',
            '٠': '0',
        },
        pluralForm = function (n) {
            return n === 0
                ? 0
                : n === 1
                  ? 1
                  : n === 2
                    ? 2
                    : n % 100 >= 3 && n % 100 <= 10
                      ? 3
                      : n % 100 >= 11
                        ? 4
                        : 5;
        },
        plurals = {
            s: [
                'أقل من ثانية',
                'ثانية واحدة',
                ['ثانيتان', 'ثانيتين'],
                '%d ثوان',
                '%d ثانية',
                '%d ثانية',
            ],
            m: [
                'أقل من دقيقة',
                'دقيقة واحدة',
                ['دقيقتان', 'دقيقتين'],
                '%d دقائق',
                '%d دقيقة',
                '%d دقيقة',
            ],
            h: [
                'أقل من ساعة',
                'ساعة واحدة',
                ['ساعتان', 'ساعتين'],
                '%d ساعات',
                '%d ساعة',
                '%d ساعة',
            ],
            d: [
                'أقل من يوم',
                'يوم واحد',
                ['يومان', 'يومين'],
                '%d أيام',
                '%d يومًا',
                '%d يوم',
            ],
            M: [
                'أقل من شهر',
                'شهر واحد',
                ['شهران', 'شهرين'],
                '%d أشهر',
                '%d شهرا',
                '%d شهر',
            ],
            y: [
                'أقل من عام',
                'عام واحد',
                ['عامان', 'عامين'],
                '%d أعوام',
                '%d عامًا',
                '%d عام',
            ],
        },
        pluralize = function (u) {
            return function (number, withoutSuffix, string, isFuture) {
                var f = pluralForm(number),
                    str = plurals[u][pluralForm(number)];
                if (f === 2) {
                    str = str[withoutSuffix ? 0 : 1];
                }
                return str.replace(/%d/i, number);
            };
        },
        months = [
            'يناير',
            'فبراير',
            'مارس',
            'أبريل',
            'مايو',
            'يونيو',
            'يوليو',
            'أغسطس',
            'سبتمبر',
            'أكتوبر',
            'نوفمبر',
            'ديسمبر',
        ];

    var ar = moment.defineLocale('ar', {
        months: months,
        monthsShort: months,
        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'D/\u200FM/\u200FYYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        meridiemParse: /ص|م/,
        isPM: function (input) {
            return 'م' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ص';
            } else {
                return 'م';
            }
        },
        calendar: {
            sameDay: '[اليوم عند الساعة] LT',
            nextDay: '[غدًا عند الساعة] LT',
            nextWeek: 'dddd [عند الساعة] LT',
            lastDay: '[أمس عند الساعة] LT',
            lastWeek: 'dddd [عند الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'بعد %s',
            past: 'منذ %s',
            s: pluralize('s'),
            ss: pluralize('s'),
            m: pluralize('m'),
            mm: pluralize('m'),
            h: pluralize('h'),
            hh: pluralize('h'),
            d: pluralize('d'),
            dd: pluralize('d'),
            M: pluralize('M'),
            MM: pluralize('M'),
            y: pluralize('y'),
            yy: pluralize('y'),
        },
        preparse: function (string) {
            return string
                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
                    return numberMap[match];
                })
                .replace(/،/g, ',');
        },
        postformat: function (string) {
            return string
                .replace(/\d/g, function (match) {
                    return symbolMap[match];
                })
                .replace(/,/g, '،');
        },
        week: {
            dow: 6, // Saturday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return ar;

})));
//! moment.js locale configuration
//! locale : Arabic (Algeria) [ar-dz]
//! author : Amine Roukh: https://github.com/Amine27
//! author : Abdel Said: https://github.com/abdelsaid
//! author : Ahmed Elkhatib
//! author : forabi https://github.com/forabi
//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var pluralForm = function (n) {
            return n === 0
                ? 0
                : n === 1
                  ? 1
                  : n === 2
                    ? 2
                    : n % 100 >= 3 && n % 100 <= 10
                      ? 3
                      : n % 100 >= 11
                        ? 4
                        : 5;
        },
        plurals = {
            s: [
                'أقل من ثانية',
                'ثانية واحدة',
                ['ثانيتان', 'ثانيتين'],
                '%d ثوان',
                '%d ثانية',
                '%d ثانية',
            ],
            m: [
                'أقل من دقيقة',
                'دقيقة واحدة',
                ['دقيقتان', 'دقيقتين'],
                '%d دقائق',
                '%d دقيقة',
                '%d دقيقة',
            ],
            h: [
                'أقل من ساعة',
                'ساعة واحدة',
                ['ساعتان', 'ساعتين'],
                '%d ساعات',
                '%d ساعة',
                '%d ساعة',
            ],
            d: [
                'أقل من يوم',
                'يوم واحد',
                ['يومان', 'يومين'],
                '%d أيام',
                '%d يومًا',
                '%d يوم',
            ],
            M: [
                'أقل من شهر',
                'شهر واحد',
                ['شهران', 'شهرين'],
                '%d أشهر',
                '%d شهرا',
                '%d شهر',
            ],
            y: [
                'أقل من عام',
                'عام واحد',
                ['عامان', 'عامين'],
                '%d أعوام',
                '%d عامًا',
                '%d عام',
            ],
        },
        pluralize = function (u) {
            return function (number, withoutSuffix, string, isFuture) {
                var f = pluralForm(number),
                    str = plurals[u][pluralForm(number)];
                if (f === 2) {
                    str = str[withoutSuffix ? 0 : 1];
                }
                return str.replace(/%d/i, number);
            };
        },
        months = [
            'جانفي',
            'فيفري',
            'مارس',
            'أفريل',
            'ماي',
            'جوان',
            'جويلية',
            'أوت',
            'سبتمبر',
            'أكتوبر',
            'نوفمبر',
            'ديسمبر',
        ];

    var arDz = moment.defineLocale('ar-dz', {
        months: months,
        monthsShort: months,
        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'D/\u200FM/\u200FYYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        meridiemParse: /ص|م/,
        isPM: function (input) {
            return 'م' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ص';
            } else {
                return 'م';
            }
        },
        calendar: {
            sameDay: '[اليوم عند الساعة] LT',
            nextDay: '[غدًا عند الساعة] LT',
            nextWeek: 'dddd [عند الساعة] LT',
            lastDay: '[أمس عند الساعة] LT',
            lastWeek: 'dddd [عند الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'بعد %s',
            past: 'منذ %s',
            s: pluralize('s'),
            ss: pluralize('s'),
            m: pluralize('m'),
            mm: pluralize('m'),
            h: pluralize('h'),
            hh: pluralize('h'),
            d: pluralize('d'),
            dd: pluralize('d'),
            M: pluralize('M'),
            MM: pluralize('M'),
            y: pluralize('y'),
            yy: pluralize('y'),
        },
        postformat: function (string) {
            return string.replace(/,/g, '،');
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return arDz;

})));
//! moment.js locale configuration
//! locale : Arabic (Kuwait) [ar-kw]
//! author : Nusret Parlak: https://github.com/nusretparlak

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var arKw = moment.defineLocale('ar-kw', {
        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
            '_'
        ),
        monthsShort:
            'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
                '_'
            ),
        weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات',
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return arKw;

})));
//! moment.js locale configuration
//! locale : Arabic (Libya) [ar-ly]
//! author : Ali Hmer: https://github.com/kikoanis

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '1',
            2: '2',
            3: '3',
            4: '4',
            5: '5',
            6: '6',
            7: '7',
            8: '8',
            9: '9',
            0: '0',
        },
        pluralForm = function (n) {
            return n === 0
                ? 0
                : n === 1
                  ? 1
                  : n === 2
                    ? 2
                    : n % 100 >= 3 && n % 100 <= 10
                      ? 3
                      : n % 100 >= 11
                        ? 4
                        : 5;
        },
        plurals = {
            s: [
                'أقل من ثانية',
                'ثانية واحدة',
                ['ثانيتان', 'ثانيتين'],
                '%d ثوان',
                '%d ثانية',
                '%d ثانية',
            ],
            m: [
                'أقل من دقيقة',
                'دقيقة واحدة',
                ['دقيقتان', 'دقيقتين'],
                '%d دقائق',
                '%d دقيقة',
                '%d دقيقة',
            ],
            h: [
                'أقل من ساعة',
                'ساعة واحدة',
                ['ساعتان', 'ساعتين'],
                '%d ساعات',
                '%d ساعة',
                '%d ساعة',
            ],
            d: [
                'أقل من يوم',
                'يوم واحد',
                ['يومان', 'يومين'],
                '%d أيام',
                '%d يومًا',
                '%d يوم',
            ],
            M: [
                'أقل من شهر',
                'شهر واحد',
                ['شهران', 'شهرين'],
                '%d أشهر',
                '%d شهرا',
                '%d شهر',
            ],
            y: [
                'أقل من عام',
                'عام واحد',
                ['عامان', 'عامين'],
                '%d أعوام',
                '%d عامًا',
                '%d عام',
            ],
        },
        pluralize = function (u) {
            return function (number, withoutSuffix, string, isFuture) {
                var f = pluralForm(number),
                    str = plurals[u][pluralForm(number)];
                if (f === 2) {
                    str = str[withoutSuffix ? 0 : 1];
                }
                return str.replace(/%d/i, number);
            };
        },
        months = [
            'يناير',
            'فبراير',
            'مارس',
            'أبريل',
            'مايو',
            'يونيو',
            'يوليو',
            'أغسطس',
            'سبتمبر',
            'أكتوبر',
            'نوفمبر',
            'ديسمبر',
        ];

    var arLy = moment.defineLocale('ar-ly', {
        months: months,
        monthsShort: months,
        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'D/\u200FM/\u200FYYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        meridiemParse: /ص|م/,
        isPM: function (input) {
            return 'م' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ص';
            } else {
                return 'م';
            }
        },
        calendar: {
            sameDay: '[اليوم عند الساعة] LT',
            nextDay: '[غدًا عند الساعة] LT',
            nextWeek: 'dddd [عند الساعة] LT',
            lastDay: '[أمس عند الساعة] LT',
            lastWeek: 'dddd [عند الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'بعد %s',
            past: 'منذ %s',
            s: pluralize('s'),
            ss: pluralize('s'),
            m: pluralize('m'),
            mm: pluralize('m'),
            h: pluralize('h'),
            hh: pluralize('h'),
            d: pluralize('d'),
            dd: pluralize('d'),
            M: pluralize('M'),
            MM: pluralize('M'),
            y: pluralize('y'),
            yy: pluralize('y'),
        },
        preparse: function (string) {
            return string.replace(/،/g, ',');
        },
        postformat: function (string) {
            return string
                .replace(/\d/g, function (match) {
                    return symbolMap[match];
                })
                .replace(/,/g, '،');
        },
        week: {
            dow: 6, // Saturday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return arLy;

})));
//! moment.js locale configuration
//! locale : Arabic (Morocco) [ar-ma]
//! author : ElFadili Yassine : https://github.com/ElFadiliY
//! author : Abdel Said : https://github.com/abdelsaid

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var arMa = moment.defineLocale('ar-ma', {
        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
            '_'
        ),
        monthsShort:
            'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
                '_'
            ),
        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return arMa;

})));
//! moment.js locale configuration
//! locale : Arabic (Palestine) [ar-ps]
//! author : Majd Al-Shihabi : https://github.com/majdal

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '١',
            2: '٢',
            3: '٣',
            4: '٤',
            5: '٥',
            6: '٦',
            7: '٧',
            8: '٨',
            9: '٩',
            0: '٠',
        },
        numberMap = {
            '١': '1',
            '٢': '2',
            '٣': '3',
            '٤': '4',
            '٥': '5',
            '٦': '6',
            '٧': '7',
            '٨': '8',
            '٩': '9',
            '٠': '0',
        };

    var arPs = moment.defineLocale('ar-ps', {
        months: 'كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل'.split(
            '_'
        ),
        monthsShort:
            'ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١'.split('_'),
        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        meridiemParse: /ص|م/,
        isPM: function (input) {
            return 'م' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ص';
            } else {
                return 'م';
            }
        },
        calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات',
        },
        preparse: function (string) {
            return string
                .replace(/[٣٤٥٦٧٨٩٠]/g, function (match) {
                    return numberMap[match];
                })
                .split('') // reversed since negative lookbehind not supported everywhere
                .reverse()
                .join('')
                .replace(/[١٢](?![\u062a\u0643])/g, function (match) {
                    return numberMap[match];
                })
                .split('')
                .reverse()
                .join('')
                .replace(/،/g, ',');
        },
        postformat: function (string) {
            return string
                .replace(/\d/g, function (match) {
                    return symbolMap[match];
                })
                .replace(/,/g, '،');
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return arPs;

})));
//! moment.js locale configuration
//! locale : Arabic (Saudi Arabia) [ar-sa]
//! author : Suhail Alkowaileet : https://github.com/xsoh

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '١',
            2: '٢',
            3: '٣',
            4: '٤',
            5: '٥',
            6: '٦',
            7: '٧',
            8: '٨',
            9: '٩',
            0: '٠',
        },
        numberMap = {
            '١': '1',
            '٢': '2',
            '٣': '3',
            '٤': '4',
            '٥': '5',
            '٦': '6',
            '٧': '7',
            '٨': '8',
            '٩': '9',
            '٠': '0',
        };

    var arSa = moment.defineLocale('ar-sa', {
        months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
            '_'
        ),
        monthsShort:
            'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
                '_'
            ),
        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        meridiemParse: /ص|م/,
        isPM: function (input) {
            return 'م' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ص';
            } else {
                return 'م';
            }
        },
        calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات',
        },
        preparse: function (string) {
            return string
                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
                    return numberMap[match];
                })
                .replace(/،/g, ',');
        },
        postformat: function (string) {
            return string
                .replace(/\d/g, function (match) {
                    return symbolMap[match];
                })
                .replace(/,/g, '،');
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return arSa;

})));
//! moment.js locale configuration
//! locale  :  Arabic (Tunisia) [ar-tn]
//! author : Nader Toukabri : https://github.com/naderio

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var arTn = moment.defineLocale('ar-tn', {
        months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
            '_'
        ),
        monthsShort:
            'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
                '_'
            ),
        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return arTn;

})));
//! moment.js locale configuration
//! locale : Azerbaijani [az]
//! author : topchiyev : https://github.com/topchiyev

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var suffixes = {
        1: '-inci',
        5: '-inci',
        8: '-inci',
        70: '-inci',
        80: '-inci',
        2: '-nci',
        7: '-nci',
        20: '-nci',
        50: '-nci',
        3: '-üncü',
        4: '-üncü',
        100: '-üncü',
        6: '-ncı',
        9: '-uncu',
        10: '-uncu',
        30: '-uncu',
        60: '-ıncı',
        90: '-ıncı',
    };

    var az = moment.defineLocale('az', {
        months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
            '_'
        ),
        monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
        weekdays:
            'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
                '_'
            ),
        weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
        weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[bugün saat] LT',
            nextDay: '[sabah saat] LT',
            nextWeek: '[gələn həftə] dddd [saat] LT',
            lastDay: '[dünən] LT',
            lastWeek: '[keçən həftə] dddd [saat] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s sonra',
            past: '%s əvvəl',
            s: 'bir neçə saniyə',
            ss: '%d saniyə',
            m: 'bir dəqiqə',
            mm: '%d dəqiqə',
            h: 'bir saat',
            hh: '%d saat',
            d: 'bir gün',
            dd: '%d gün',
            M: 'bir ay',
            MM: '%d ay',
            y: 'bir il',
            yy: '%d il',
        },
        meridiemParse: /gecə|səhər|gündüz|axşam/,
        isPM: function (input) {
            return /^(gündüz|axşam)$/.test(input);
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'gecə';
            } else if (hour < 12) {
                return 'səhər';
            } else if (hour < 17) {
                return 'gündüz';
            } else {
                return 'axşam';
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
        ordinal: function (number) {
            if (number === 0) {
                // special case for zero
                return number + '-ıncı';
            }
            var a = number % 10,
                b = (number % 100) - a,
                c = number >= 100 ? 100 : null;
            return number + (suffixes[a] || suffixes[b] || suffixes[c]);
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return az;

})));
//! moment.js locale configuration
//! locale : Belarusian [be]
//! author : Dmitry Demidov : https://github.com/demidov91
//! author: Praleska: http://praleska.pro/
//! Author : Menelion Elensúle : https://github.com/Oire

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function plural(word, num) {
        var forms = word.split('_');
        return num % 10 === 1 && num % 100 !== 11
            ? forms[0]
            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
              ? forms[1]
              : forms[2];
    }
    function relativeTimeWithPlural(number, withoutSuffix, key) {
        var format = {
            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
            mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
            hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
            dd: 'дзень_дні_дзён',
            MM: 'месяц_месяцы_месяцаў',
            yy: 'год_гады_гадоў',
        };
        if (key === 'm') {
            return withoutSuffix ? 'хвіліна' : 'хвіліну';
        } else if (key === 'h') {
            return withoutSuffix ? 'гадзіна' : 'гадзіну';
        } else {
            return number + ' ' + plural(format[key], +number);
        }
    }

    var be = moment.defineLocale('be', {
        months: {
            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
                '_'
            ),
            standalone:
                'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
                    '_'
                ),
        },
        monthsShort:
            'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
        weekdays: {
            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
                '_'
            ),
            standalone:
                'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
                    '_'
                ),
            isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
        },
        weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
        weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY г.',
            LLL: 'D MMMM YYYY г., HH:mm',
            LLLL: 'dddd, D MMMM YYYY г., HH:mm',
        },
        calendar: {
            sameDay: '[Сёння ў] LT',
            nextDay: '[Заўтра ў] LT',
            lastDay: '[Учора ў] LT',
            nextWeek: function () {
                return '[У] dddd [ў] LT';
            },
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                    case 3:
                    case 5:
                    case 6:
                        return '[У мінулую] dddd [ў] LT';
                    case 1:
                    case 2:
                    case 4:
                        return '[У мінулы] dddd [ў] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'праз %s',
            past: '%s таму',
            s: 'некалькі секунд',
            m: relativeTimeWithPlural,
            mm: relativeTimeWithPlural,
            h: relativeTimeWithPlural,
            hh: relativeTimeWithPlural,
            d: 'дзень',
            dd: relativeTimeWithPlural,
            M: 'месяц',
            MM: relativeTimeWithPlural,
            y: 'год',
            yy: relativeTimeWithPlural,
        },
        meridiemParse: /ночы|раніцы|дня|вечара/,
        isPM: function (input) {
            return /^(дня|вечара)$/.test(input);
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'ночы';
            } else if (hour < 12) {
                return 'раніцы';
            } else if (hour < 17) {
                return 'дня';
            } else {
                return 'вечара';
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'M':
                case 'd':
                case 'DDD':
                case 'w':
                case 'W':
                    return (number % 10 === 2 || number % 10 === 3) &&
                        number % 100 !== 12 &&
                        number % 100 !== 13
                        ? number + '-і'
                        : number + '-ы';
                case 'D':
                    return number + '-га';
                default:
                    return number;
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return be;

})));
//! moment.js locale configuration
//! locale : Bulgarian [bg]
//! author : Krasen Borisov : https://github.com/kraz

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var bg = moment.defineLocale('bg', {
        months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
            '_'
        ),
        monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
        weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
            '_'
        ),
        weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY H:mm',
            LLLL: 'dddd, D MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[Днес в] LT',
            nextDay: '[Утре в] LT',
            nextWeek: 'dddd [в] LT',
            lastDay: '[Вчера в] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                    case 3:
                    case 6:
                        return '[Миналата] dddd [в] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[Миналия] dddd [в] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'след %s',
            past: 'преди %s',
            s: 'няколко секунди',
            ss: '%d секунди',
            m: 'минута',
            mm: '%d минути',
            h: 'час',
            hh: '%d часа',
            d: 'ден',
            dd: '%d дена',
            w: 'седмица',
            ww: '%d седмици',
            M: 'месец',
            MM: '%d месеца',
            y: 'година',
            yy: '%d години',
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
        ordinal: function (number) {
            var lastDigit = number % 10,
                last2Digits = number % 100;
            if (number === 0) {
                return number + '-ев';
            } else if (last2Digits === 0) {
                return number + '-ен';
            } else if (last2Digits > 10 && last2Digits < 20) {
                return number + '-ти';
            } else if (lastDigit === 1) {
                return number + '-ви';
            } else if (lastDigit === 2) {
                return number + '-ри';
            } else if (lastDigit === 7 || lastDigit === 8) {
                return number + '-ми';
            } else {
                return number + '-ти';
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return bg;

})));
//! moment.js locale configuration
//! locale : Bambara [bm]
//! author : Estelle Comment : https://github.com/estellecomment

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var bm = moment.defineLocale('bm', {
        months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
            '_'
        ),
        monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
        weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
        weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
        weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'MMMM [tile] D [san] YYYY',
            LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
            LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
        },
        calendar: {
            sameDay: '[Bi lɛrɛ] LT',
            nextDay: '[Sini lɛrɛ] LT',
            nextWeek: 'dddd [don lɛrɛ] LT',
            lastDay: '[Kunu lɛrɛ] LT',
            lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s kɔnɔ',
            past: 'a bɛ %s bɔ',
            s: 'sanga dama dama',
            ss: 'sekondi %d',
            m: 'miniti kelen',
            mm: 'miniti %d',
            h: 'lɛrɛ kelen',
            hh: 'lɛrɛ %d',
            d: 'tile kelen',
            dd: 'tile %d',
            M: 'kalo kelen',
            MM: 'kalo %d',
            y: 'san kelen',
            yy: 'san %d',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return bm;

})));
//! moment.js locale configuration
//! locale : Bengali [bn]
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '১',
            2: '২',
            3: '৩',
            4: '৪',
            5: '৫',
            6: '৬',
            7: '৭',
            8: '৮',
            9: '৯',
            0: '০',
        },
        numberMap = {
            '১': '1',
            '২': '2',
            '৩': '3',
            '৪': '4',
            '৫': '5',
            '৬': '6',
            '৭': '7',
            '৮': '8',
            '৯': '9',
            '০': '0',
        };

    var bn = moment.defineLocale('bn', {
        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
            '_'
        ),
        monthsShort:
            'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
                '_'
            ),
        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
            '_'
        ),
        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
        longDateFormat: {
            LT: 'A h:mm সময়',
            LTS: 'A h:mm:ss সময়',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm সময়',
            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
        },
        calendar: {
            sameDay: '[আজ] LT',
            nextDay: '[আগামীকাল] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[গতকাল] LT',
            lastWeek: '[গত] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s পরে',
            past: '%s আগে',
            s: 'কয়েক সেকেন্ড',
            ss: '%d সেকেন্ড',
            m: 'এক মিনিট',
            mm: '%d মিনিট',
            h: 'এক ঘন্টা',
            hh: '%d ঘন্টা',
            d: 'এক দিন',
            dd: '%d দিন',
            M: 'এক মাস',
            MM: '%d মাস',
            y: 'এক বছর',
            yy: '%d বছর',
        },
        preparse: function (string) {
            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (
                (meridiem === 'রাত' && hour >= 4) ||
                (meridiem === 'দুপুর' && hour < 5) ||
                meridiem === 'বিকাল'
            ) {
                return hour + 12;
            } else {
                return hour;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'রাত';
            } else if (hour < 10) {
                return 'সকাল';
            } else if (hour < 17) {
                return 'দুপুর';
            } else if (hour < 20) {
                return 'বিকাল';
            } else {
                return 'রাত';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return bn;

})));
//! moment.js locale configuration
//! locale : Bengali (Bangladesh) [bn-bd]
//! author : Asraf Hossain Patoary : https://github.com/ashwoolford

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '১',
            2: '২',
            3: '৩',
            4: '৪',
            5: '৫',
            6: '৬',
            7: '৭',
            8: '৮',
            9: '৯',
            0: '০',
        },
        numberMap = {
            '১': '1',
            '২': '2',
            '৩': '3',
            '৪': '4',
            '৫': '5',
            '৬': '6',
            '৭': '7',
            '৮': '8',
            '৯': '9',
            '০': '0',
        };

    var bnBd = moment.defineLocale('bn-bd', {
        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
            '_'
        ),
        monthsShort:
            'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
                '_'
            ),
        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
            '_'
        ),
        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
        longDateFormat: {
            LT: 'A h:mm সময়',
            LTS: 'A h:mm:ss সময়',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm সময়',
            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
        },
        calendar: {
            sameDay: '[আজ] LT',
            nextDay: '[আগামীকাল] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[গতকাল] LT',
            lastWeek: '[গত] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s পরে',
            past: '%s আগে',
            s: 'কয়েক সেকেন্ড',
            ss: '%d সেকেন্ড',
            m: 'এক মিনিট',
            mm: '%d মিনিট',
            h: 'এক ঘন্টা',
            hh: '%d ঘন্টা',
            d: 'এক দিন',
            dd: '%d দিন',
            M: 'এক মাস',
            MM: '%d মাস',
            y: 'এক বছর',
            yy: '%d বছর',
        },
        preparse: function (string) {
            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },

        meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'রাত') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ভোর') {
                return hour;
            } else if (meridiem === 'সকাল') {
                return hour;
            } else if (meridiem === 'দুপুর') {
                return hour >= 3 ? hour : hour + 12;
            } else if (meridiem === 'বিকাল') {
                return hour + 12;
            } else if (meridiem === 'সন্ধ্যা') {
                return hour + 12;
            }
        },

        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'রাত';
            } else if (hour < 6) {
                return 'ভোর';
            } else if (hour < 12) {
                return 'সকাল';
            } else if (hour < 15) {
                return 'দুপুর';
            } else if (hour < 18) {
                return 'বিকাল';
            } else if (hour < 20) {
                return 'সন্ধ্যা';
            } else {
                return 'রাত';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return bnBd;

})));
//! moment.js locale configuration
//! locale : Tibetan [bo]
//! author : Thupten N. Chakrishar : https://github.com/vajradog

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '༡',
            2: '༢',
            3: '༣',
            4: '༤',
            5: '༥',
            6: '༦',
            7: '༧',
            8: '༨',
            9: '༩',
            0: '༠',
        },
        numberMap = {
            '༡': '1',
            '༢': '2',
            '༣': '3',
            '༤': '4',
            '༥': '5',
            '༦': '6',
            '༧': '7',
            '༨': '8',
            '༩': '9',
            '༠': '0',
        };

    var bo = moment.defineLocale('bo', {
        months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
            '_'
        ),
        monthsShort:
            'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
                '_'
            ),
        monthsShortRegex: /^(ཟླ་\d{1,2})/,
        monthsParseExact: true,
        weekdays:
            'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
                '_'
            ),
        weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
            '_'
        ),
        weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
        longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm',
            LLLL: 'dddd, D MMMM YYYY, A h:mm',
        },
        calendar: {
            sameDay: '[དི་རིང] LT',
            nextDay: '[སང་ཉིན] LT',
            nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
            lastDay: '[ཁ་སང] LT',
            lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s ལ་',
            past: '%s སྔན་ལ',
            s: 'ལམ་སང',
            ss: '%d སྐར་ཆ།',
            m: 'སྐར་མ་གཅིག',
            mm: '%d སྐར་མ',
            h: 'ཆུ་ཚོད་གཅིག',
            hh: '%d ཆུ་ཚོད',
            d: 'ཉིན་གཅིག',
            dd: '%d ཉིན་',
            M: 'ཟླ་བ་གཅིག',
            MM: '%d ཟླ་བ',
            y: 'ལོ་གཅིག',
            yy: '%d ལོ',
        },
        preparse: function (string) {
            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (
                (meridiem === 'མཚན་མོ' && hour >= 4) ||
                (meridiem === 'ཉིན་གུང' && hour < 5) ||
                meridiem === 'དགོང་དག'
            ) {
                return hour + 12;
            } else {
                return hour;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'མཚན་མོ';
            } else if (hour < 10) {
                return 'ཞོགས་ཀས';
            } else if (hour < 17) {
                return 'ཉིན་གུང';
            } else if (hour < 20) {
                return 'དགོང་དག';
            } else {
                return 'མཚན་མོ';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return bo;

})));
//! moment.js locale configuration
//! locale : Breton [br]
//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function relativeTimeWithMutation(number, withoutSuffix, key) {
        var format = {
            mm: 'munutenn',
            MM: 'miz',
            dd: 'devezh',
        };
        return number + ' ' + mutation(format[key], number);
    }
    function specialMutationForYears(number) {
        switch (lastNumber(number)) {
            case 1:
            case 3:
            case 4:
            case 5:
            case 9:
                return number + ' bloaz';
            default:
                return number + ' vloaz';
        }
    }
    function lastNumber(number) {
        if (number > 9) {
            return lastNumber(number % 10);
        }
        return number;
    }
    function mutation(text, number) {
        if (number === 2) {
            return softMutation(text);
        }
        return text;
    }
    function softMutation(text) {
        var mutationTable = {
            m: 'v',
            b: 'v',
            d: 'z',
        };
        if (mutationTable[text.charAt(0)] === undefined) {
            return text;
        }
        return mutationTable[text.charAt(0)] + text.substring(1);
    }

    var monthsParse = [
            /^gen/i,
            /^c[ʼ\']hwe/i,
            /^meu/i,
            /^ebr/i,
            /^mae/i,
            /^(mez|eve)/i,
            /^gou/i,
            /^eos/i,
            /^gwe/i,
            /^her/i,
            /^du/i,
            /^ker/i,
        ],
        monthsRegex =
            /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
        monthsStrictRegex =
            /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
        monthsShortStrictRegex =
            /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
        fullWeekdaysParse = [
            /^sul/i,
            /^lun/i,
            /^meurzh/i,
            /^merc[ʼ\']her/i,
            /^yaou/i,
            /^gwener/i,
            /^sadorn/i,
        ],
        shortWeekdaysParse = [
            /^Sul/i,
            /^Lun/i,
            /^Meu/i,
            /^Mer/i,
            /^Yao/i,
            /^Gwe/i,
            /^Sad/i,
        ],
        minWeekdaysParse = [
            /^Su/i,
            /^Lu/i,
            /^Me([^r]|$)/i,
            /^Mer/i,
            /^Ya/i,
            /^Gw/i,
            /^Sa/i,
        ];

    var br = moment.defineLocale('br', {
        months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
            '_'
        ),
        monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
        weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
        weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
        weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
        weekdaysParse: minWeekdaysParse,
        fullWeekdaysParse: fullWeekdaysParse,
        shortWeekdaysParse: shortWeekdaysParse,
        minWeekdaysParse: minWeekdaysParse,

        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex: monthsStrictRegex,
        monthsShortStrictRegex: monthsShortStrictRegex,
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,

        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [a viz] MMMM YYYY',
            LLL: 'D [a viz] MMMM YYYY HH:mm',
            LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Hiziv da] LT',
            nextDay: '[Warcʼhoazh da] LT',
            nextWeek: 'dddd [da] LT',
            lastDay: '[Decʼh da] LT',
            lastWeek: 'dddd [paset da] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'a-benn %s',
            past: '%s ʼzo',
            s: 'un nebeud segondennoù',
            ss: '%d eilenn',
            m: 'ur vunutenn',
            mm: relativeTimeWithMutation,
            h: 'un eur',
            hh: '%d eur',
            d: 'un devezh',
            dd: relativeTimeWithMutation,
            M: 'ur miz',
            MM: relativeTimeWithMutation,
            y: 'ur bloaz',
            yy: specialMutationForYears,
        },
        dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
        ordinal: function (number) {
            var output = number === 1 ? 'añ' : 'vet';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
        meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
        isPM: function (token) {
            return token === 'g.m.';
        },
        meridiem: function (hour, minute, isLower) {
            return hour < 12 ? 'a.m.' : 'g.m.';
        },
    });

    return br;

})));
//! moment.js locale configuration
//! locale : Bosnian [bs]
//! author : Nedim Cholich : https://github.com/frontyard
//! author : Rasid Redzic : https://github.com/rasidre
//! based on (hr) translation by Bojan Marković

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        switch (key) {
            case 'm':
                return withoutSuffix
                    ? 'jedna minuta'
                    : isFuture
                      ? 'jednu minutu'
                      : 'jedne minute';
        }
    }

    function translate(number, withoutSuffix, key) {
        var result = number + ' ';
        switch (key) {
            case 'ss':
                if (number === 1) {
                    result += 'sekunda';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'sekunde';
                } else {
                    result += 'sekundi';
                }
                return result;
            case 'mm':
                if (number === 1) {
                    result += 'minuta';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'minute';
                } else {
                    result += 'minuta';
                }
                return result;
            case 'h':
                return withoutSuffix ? 'jedan sat' : 'jedan sat';
            case 'hh':
                if (number === 1) {
                    result += 'sat';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'sata';
                } else {
                    result += 'sati';
                }
                return result;
            case 'dd':
                if (number === 1) {
                    result += 'dan';
                } else {
                    result += 'dana';
                }
                return result;
            case 'MM':
                if (number === 1) {
                    result += 'mjesec';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'mjeseca';
                } else {
                    result += 'mjeseci';
                }
                return result;
            case 'yy':
                if (number === 1) {
                    result += 'godina';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'godine';
                } else {
                    result += 'godina';
                }
                return result;
        }
    }

    var bs = moment.defineLocale('bs', {
        months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
            '_'
        ),
        monthsShort:
            'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
            '_'
        ),
        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sutra u] LT',
            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[u] [nedjelju] [u] LT';
                    case 3:
                        return '[u] [srijedu] [u] LT';
                    case 6:
                        return '[u] [subotu] [u] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[u] dddd [u] LT';
                }
            },
            lastDay: '[jučer u] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                    case 3:
                        return '[prošlu] dddd [u] LT';
                    case 6:
                        return '[prošle] [subote] [u] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[prošli] dddd [u] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'za %s',
            past: 'prije %s',
            s: 'par sekundi',
            ss: translate,
            m: processRelativeTime,
            mm: translate,
            h: translate,
            hh: translate,
            d: 'dan',
            dd: translate,
            M: 'mjesec',
            MM: translate,
            y: 'godinu',
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return bs;

})));
//! moment.js locale configuration
//! locale : Catalan [ca]
//! author : Juan G. Hurtado : https://github.com/juanghurtado

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ca = moment.defineLocale('ca', {
        months: {
            standalone:
                'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
                    '_'
                ),
            format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
                '_'
            ),
            isFormat: /D[oD]?(\s)+MMMM/,
        },
        monthsShort:
            'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays:
            'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
                '_'
            ),
        weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
        weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM [de] YYYY',
            ll: 'D MMM YYYY',
            LLL: 'D MMMM [de] YYYY [a les] H:mm',
            lll: 'D MMM YYYY, H:mm',
            LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
            llll: 'ddd D MMM YYYY, H:mm',
        },
        calendar: {
            sameDay: function () {
                return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            nextDay: function () {
                return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            nextWeek: function () {
                return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            lastDay: function () {
                return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            lastWeek: function () {
                return (
                    '[el] dddd [passat a ' +
                    (this.hours() !== 1 ? 'les' : 'la') +
                    '] LT'
                );
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: "d'aquí %s",
            past: 'fa %s',
            s: 'uns segons',
            ss: '%d segons',
            m: 'un minut',
            mm: '%d minuts',
            h: 'una hora',
            hh: '%d hores',
            d: 'un dia',
            dd: '%d dies',
            M: 'un mes',
            MM: '%d mesos',
            y: 'un any',
            yy: '%d anys',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
        ordinal: function (number, period) {
            var output =
                number === 1
                    ? 'r'
                    : number === 2
                      ? 'n'
                      : number === 3
                        ? 'r'
                        : number === 4
                          ? 't'
                          : 'è';
            if (period === 'w' || period === 'W') {
                output = 'a';
            }
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return ca;

})));
//! moment.js locale configuration
//! locale : Czech [cs]
//! author : petrbela : https://github.com/petrbela

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var months = {
            standalone:
                'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
                    '_'
                ),
            format: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
                '_'
            ),
            isFormat: /DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/,
        },
        monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
        monthsParse = [
            /^led/i,
            /^úno/i,
            /^bře/i,
            /^dub/i,
            /^kvě/i,
            /^(čvn|červen$|června)/i,
            /^(čvc|červenec|července)/i,
            /^srp/i,
            /^zář/i,
            /^říj/i,
            /^lis/i,
            /^pro/i,
        ],
        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
        monthsRegex =
            /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;

    function plural(n) {
        return n > 1 && n < 5 && ~~(n / 10) !== 1;
    }
    function translate(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        switch (key) {
            case 's': // a few seconds / in a few seconds / a few seconds ago
                return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'sekundy' : 'sekund');
                } else {
                    return result + 'sekundami';
                }
            case 'm': // a minute / in a minute / a minute ago
                return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'minuty' : 'minut');
                } else {
                    return result + 'minutami';
                }
            case 'h': // an hour / in an hour / an hour ago
                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
            case 'hh': // 9 hours / in 9 hours / 9 hours ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'hodiny' : 'hodin');
                } else {
                    return result + 'hodinami';
                }
            case 'd': // a day / in a day / a day ago
                return withoutSuffix || isFuture ? 'den' : 'dnem';
            case 'dd': // 9 days / in 9 days / 9 days ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'dny' : 'dní');
                } else {
                    return result + 'dny';
                }
            case 'M': // a month / in a month / a month ago
                return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
            case 'MM': // 9 months / in 9 months / 9 months ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'měsíce' : 'měsíců');
                } else {
                    return result + 'měsíci';
                }
            case 'y': // a year / in a year / a year ago
                return withoutSuffix || isFuture ? 'rok' : 'rokem';
            case 'yy': // 9 years / in 9 years / 9 years ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'roky' : 'let');
                } else {
                    return result + 'lety';
                }
        }
    }

    var cs = moment.defineLocale('cs', {
        months: months,
        monthsShort: monthsShort,
        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
        monthsStrictRegex:
            /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
        monthsShortStrictRegex:
            /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,
        weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
        weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
        weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd D. MMMM YYYY H:mm',
            l: 'D. M. YYYY',
        },
        calendar: {
            sameDay: '[dnes v] LT',
            nextDay: '[zítra v] LT',
            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[v neděli v] LT';
                    case 1:
                    case 2:
                        return '[v] dddd [v] LT';
                    case 3:
                        return '[ve středu v] LT';
                    case 4:
                        return '[ve čtvrtek v] LT';
                    case 5:
                        return '[v pátek v] LT';
                    case 6:
                        return '[v sobotu v] LT';
                }
            },
            lastDay: '[včera v] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[minulou neděli v] LT';
                    case 1:
                    case 2:
                        return '[minulé] dddd [v] LT';
                    case 3:
                        return '[minulou středu v] LT';
                    case 4:
                    case 5:
                        return '[minulý] dddd [v] LT';
                    case 6:
                        return '[minulou sobotu v] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'za %s',
            past: 'před %s',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return cs;

})));
//! moment.js locale configuration
//! locale : Chuvash [cv]
//! author : Anatoly Mironov : https://github.com/mirontoli

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var cv = moment.defineLocale('cv', {
        months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
            '_'
        ),
        monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
        weekdays:
            'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
                '_'
            ),
        weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
        weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD-MM-YYYY',
            LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
            LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
            LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
        },
        calendar: {
            sameDay: '[Паян] LT [сехетре]',
            nextDay: '[Ыран] LT [сехетре]',
            lastDay: '[Ӗнер] LT [сехетре]',
            nextWeek: '[Ҫитес] dddd LT [сехетре]',
            lastWeek: '[Иртнӗ] dddd LT [сехетре]',
            sameElse: 'L',
        },
        relativeTime: {
            future: function (output) {
                var affix = /сехет$/i.exec(output)
                    ? 'рен'
                    : /ҫул$/i.exec(output)
                      ? 'тан'
                      : 'ран';
                return output + affix;
            },
            past: '%s каялла',
            s: 'пӗр-ик ҫеккунт',
            ss: '%d ҫеккунт',
            m: 'пӗр минут',
            mm: '%d минут',
            h: 'пӗр сехет',
            hh: '%d сехет',
            d: 'пӗр кун',
            dd: '%d кун',
            M: 'пӗр уйӑх',
            MM: '%d уйӑх',
            y: 'пӗр ҫул',
            yy: '%d ҫул',
        },
        dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
        ordinal: '%d-мӗш',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return cv;

})));
//! moment.js locale configuration
//! locale : Welsh [cy]
//! author : Robert Allen : https://github.com/robgallen
//! author : https://github.com/ryangreaves

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var cy = moment.defineLocale('cy', {
        months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
            '_'
        ),
        monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
            '_'
        ),
        weekdays:
            'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
                '_'
            ),
        weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
        weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
        weekdaysParseExact: true,
        // time formats are the same as en-gb
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Heddiw am] LT',
            nextDay: '[Yfory am] LT',
            nextWeek: 'dddd [am] LT',
            lastDay: '[Ddoe am] LT',
            lastWeek: 'dddd [diwethaf am] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'mewn %s',
            past: '%s yn ôl',
            s: 'ychydig eiliadau',
            ss: '%d eiliad',
            m: 'munud',
            mm: '%d munud',
            h: 'awr',
            hh: '%d awr',
            d: 'diwrnod',
            dd: '%d diwrnod',
            M: 'mis',
            MM: '%d mis',
            y: 'blwyddyn',
            yy: '%d flynedd',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
        // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
        ordinal: function (number) {
            var b = number,
                output = '',
                lookup = [
                    '',
                    'af',
                    'il',
                    'ydd',
                    'ydd',
                    'ed',
                    'ed',
                    'ed',
                    'fed',
                    'fed',
                    'fed', // 1af to 10fed
                    'eg',
                    'fed',
                    'eg',
                    'eg',
                    'fed',
                    'eg',
                    'eg',
                    'fed',
                    'eg',
                    'fed', // 11eg to 20fed
                ];
            if (b > 20) {
                if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
                    output = 'fed'; // not 30ain, 70ain or 90ain
                } else {
                    output = 'ain';
                }
            } else if (b > 0) {
                output = lookup[b];
            }
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return cy;

})));
//! moment.js locale configuration
//! locale : Danish [da]
//! author : Ulrik Nielsen : https://github.com/mrbase

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var da = moment.defineLocale('da', {
        months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
            '_'
        ),
        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
        weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
        },
        calendar: {
            sameDay: '[i dag kl.] LT',
            nextDay: '[i morgen kl.] LT',
            nextWeek: 'på dddd [kl.] LT',
            lastDay: '[i går kl.] LT',
            lastWeek: '[i] dddd[s kl.] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'om %s',
            past: '%s siden',
            s: 'få sekunder',
            ss: '%d sekunder',
            m: 'et minut',
            mm: '%d minutter',
            h: 'en time',
            hh: '%d timer',
            d: 'en dag',
            dd: '%d dage',
            M: 'en måned',
            MM: '%d måneder',
            y: 'et år',
            yy: '%d år',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return da;

})));
//! moment.js locale configuration
//! locale : German [de]
//! author : lluchs : https://github.com/lluchs
//! author: Menelion Elensúle: https://github.com/Oire
//! author : Mikolaj Dadela : https://github.com/mik01aj

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            m: ['eine Minute', 'einer Minute'],
            h: ['eine Stunde', 'einer Stunde'],
            d: ['ein Tag', 'einem Tag'],
            dd: [number + ' Tage', number + ' Tagen'],
            w: ['eine Woche', 'einer Woche'],
            M: ['ein Monat', 'einem Monat'],
            MM: [number + ' Monate', number + ' Monaten'],
            y: ['ein Jahr', 'einem Jahr'],
            yy: [number + ' Jahre', number + ' Jahren'],
        };
        return withoutSuffix ? format[key][0] : format[key][1];
    }

    var de = moment.defineLocale('de', {
        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
            '_'
        ),
        monthsShort:
            'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
        monthsParseExact: true,
        weekdays:
            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
                '_'
            ),
        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd, D. MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[heute um] LT [Uhr]',
            sameElse: 'L',
            nextDay: '[morgen um] LT [Uhr]',
            nextWeek: 'dddd [um] LT [Uhr]',
            lastDay: '[gestern um] LT [Uhr]',
            lastWeek: '[letzten] dddd [um] LT [Uhr]',
        },
        relativeTime: {
            future: 'in %s',
            past: 'vor %s',
            s: 'ein paar Sekunden',
            ss: '%d Sekunden',
            m: processRelativeTime,
            mm: '%d Minuten',
            h: processRelativeTime,
            hh: '%d Stunden',
            d: processRelativeTime,
            dd: processRelativeTime,
            w: processRelativeTime,
            ww: '%d Wochen',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return de;

})));
//! moment.js locale configuration
//! locale : German (Austria) [de-at]
//! author : lluchs : https://github.com/lluchs
//! author: Menelion Elensúle: https://github.com/Oire
//! author : Martin Groller : https://github.com/MadMG
//! author : Mikolaj Dadela : https://github.com/mik01aj

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            m: ['eine Minute', 'einer Minute'],
            h: ['eine Stunde', 'einer Stunde'],
            d: ['ein Tag', 'einem Tag'],
            dd: [number + ' Tage', number + ' Tagen'],
            w: ['eine Woche', 'einer Woche'],
            M: ['ein Monat', 'einem Monat'],
            MM: [number + ' Monate', number + ' Monaten'],
            y: ['ein Jahr', 'einem Jahr'],
            yy: [number + ' Jahre', number + ' Jahren'],
        };
        return withoutSuffix ? format[key][0] : format[key][1];
    }

    var deAt = moment.defineLocale('de-at', {
        months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
            '_'
        ),
        monthsShort:
            'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
        monthsParseExact: true,
        weekdays:
            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
                '_'
            ),
        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd, D. MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[heute um] LT [Uhr]',
            sameElse: 'L',
            nextDay: '[morgen um] LT [Uhr]',
            nextWeek: 'dddd [um] LT [Uhr]',
            lastDay: '[gestern um] LT [Uhr]',
            lastWeek: '[letzten] dddd [um] LT [Uhr]',
        },
        relativeTime: {
            future: 'in %s',
            past: 'vor %s',
            s: 'ein paar Sekunden',
            ss: '%d Sekunden',
            m: processRelativeTime,
            mm: '%d Minuten',
            h: processRelativeTime,
            hh: '%d Stunden',
            d: processRelativeTime,
            dd: processRelativeTime,
            w: processRelativeTime,
            ww: '%d Wochen',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return deAt;

})));
//! moment.js locale configuration
//! locale : German (Switzerland) [de-ch]
//! author : sschueller : https://github.com/sschueller

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            m: ['eine Minute', 'einer Minute'],
            h: ['eine Stunde', 'einer Stunde'],
            d: ['ein Tag', 'einem Tag'],
            dd: [number + ' Tage', number + ' Tagen'],
            w: ['eine Woche', 'einer Woche'],
            M: ['ein Monat', 'einem Monat'],
            MM: [number + ' Monate', number + ' Monaten'],
            y: ['ein Jahr', 'einem Jahr'],
            yy: [number + ' Jahre', number + ' Jahren'],
        };
        return withoutSuffix ? format[key][0] : format[key][1];
    }

    var deCh = moment.defineLocale('de-ch', {
        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
            '_'
        ),
        monthsShort:
            'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
        monthsParseExact: true,
        weekdays:
            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
                '_'
            ),
        weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd, D. MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[heute um] LT [Uhr]',
            sameElse: 'L',
            nextDay: '[morgen um] LT [Uhr]',
            nextWeek: 'dddd [um] LT [Uhr]',
            lastDay: '[gestern um] LT [Uhr]',
            lastWeek: '[letzten] dddd [um] LT [Uhr]',
        },
        relativeTime: {
            future: 'in %s',
            past: 'vor %s',
            s: 'ein paar Sekunden',
            ss: '%d Sekunden',
            m: processRelativeTime,
            mm: '%d Minuten',
            h: processRelativeTime,
            hh: '%d Stunden',
            d: processRelativeTime,
            dd: processRelativeTime,
            w: processRelativeTime,
            ww: '%d Wochen',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return deCh;

})));
//! moment.js locale configuration
//! locale : Maldivian [dv]
//! author : Jawish Hameed : https://github.com/jawish

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var months = [
            'ޖެނުއަރީ',
            'ފެބްރުއަރީ',
            'މާރިޗު',
            'އޭޕްރީލު',
            'މޭ',
            'ޖޫން',
            'ޖުލައި',
            'އޯގަސްޓު',
            'ސެޕްޓެމްބަރު',
            'އޮކްޓޯބަރު',
            'ނޮވެމްބަރު',
            'ޑިސެމްބަރު',
        ],
        weekdays = [
            'އާދިއްތަ',
            'ހޯމަ',
            'އަންގާރަ',
            'ބުދަ',
            'ބުރާސްފަތި',
            'ހުކުރު',
            'ހޮނިހިރު',
        ];

    var dv = moment.defineLocale('dv', {
        months: months,
        monthsShort: months,
        weekdays: weekdays,
        weekdaysShort: weekdays,
        weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'D/M/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        meridiemParse: /މކ|މފ/,
        isPM: function (input) {
            return 'މފ' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'މކ';
            } else {
                return 'މފ';
            }
        },
        calendar: {
            sameDay: '[މިއަދު] LT',
            nextDay: '[މާދަމާ] LT',
            nextWeek: 'dddd LT',
            lastDay: '[އިއްޔެ] LT',
            lastWeek: '[ފާއިތުވި] dddd LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'ތެރޭގައި %s',
            past: 'ކުރިން %s',
            s: 'ސިކުންތުކޮޅެއް',
            ss: 'd% ސިކުންތު',
            m: 'މިނިޓެއް',
            mm: 'މިނިޓު %d',
            h: 'ގަޑިއިރެއް',
            hh: 'ގަޑިއިރު %d',
            d: 'ދުވަހެއް',
            dd: 'ދުވަސް %d',
            M: 'މަހެއް',
            MM: 'މަސް %d',
            y: 'އަހަރެއް',
            yy: 'އަހަރު %d',
        },
        preparse: function (string) {
            return string.replace(/،/g, ',');
        },
        postformat: function (string) {
            return string.replace(/,/g, '،');
        },
        week: {
            dow: 7, // Sunday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return dv;

})));
//! moment.js locale configuration
//! locale : Greek [el]
//! author : Aggelos Karalias : https://github.com/mehiel

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function isFunction(input) {
        return (
            (typeof Function !== 'undefined' && input instanceof Function) ||
            Object.prototype.toString.call(input) === '[object Function]'
        );
    }

    var el = moment.defineLocale('el', {
        monthsNominativeEl:
            'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
                '_'
            ),
        monthsGenitiveEl:
            'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
                '_'
            ),
        months: function (momentToFormat, format) {
            if (!momentToFormat) {
                return this._monthsNominativeEl;
            } else if (
                typeof format === 'string' &&
                /D/.test(format.substring(0, format.indexOf('MMMM')))
            ) {
                // if there is a day number before 'MMMM'
                return this._monthsGenitiveEl[momentToFormat.month()];
            } else {
                return this._monthsNominativeEl[momentToFormat.month()];
            }
        },
        monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
        weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
            '_'
        ),
        weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
        weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
        meridiem: function (hours, minutes, isLower) {
            if (hours > 11) {
                return isLower ? 'μμ' : 'ΜΜ';
            } else {
                return isLower ? 'πμ' : 'ΠΜ';
            }
        },
        isPM: function (input) {
            return (input + '').toLowerCase()[0] === 'μ';
        },
        meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A',
        },
        calendarEl: {
            sameDay: '[Σήμερα {}] LT',
            nextDay: '[Αύριο {}] LT',
            nextWeek: 'dddd [{}] LT',
            lastDay: '[Χθες {}] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 6:
                        return '[το προηγούμενο] dddd [{}] LT';
                    default:
                        return '[την προηγούμενη] dddd [{}] LT';
                }
            },
            sameElse: 'L',
        },
        calendar: function (key, mom) {
            var output = this._calendarEl[key],
                hours = mom && mom.hours();
            if (isFunction(output)) {
                output = output.apply(mom);
            }
            return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
        },
        relativeTime: {
            future: 'σε %s',
            past: '%s πριν',
            s: 'λίγα δευτερόλεπτα',
            ss: '%d δευτερόλεπτα',
            m: 'ένα λεπτό',
            mm: '%d λεπτά',
            h: 'μία ώρα',
            hh: '%d ώρες',
            d: 'μία μέρα',
            dd: '%d μέρες',
            M: 'ένας μήνας',
            MM: '%d μήνες',
            y: 'ένας χρόνος',
            yy: '%d χρόνια',
        },
        dayOfMonthOrdinalParse: /\d{1,2}η/,
        ordinal: '%dη',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4st is the first week of the year.
        },
    });

    return el;

})));
//! moment.js locale configuration
//! locale : English (Australia) [en-au]
//! author : Jared Morse : https://github.com/jarcoal

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enAu = moment.defineLocale('en-au', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return enAu;

})));
//! moment.js locale configuration
//! locale : English (Canada) [en-ca]
//! author : Jonathan Abourbih : https://github.com/jonbca

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enCa = moment.defineLocale('en-ca', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'YYYY-MM-DD',
            LL: 'MMMM D, YYYY',
            LLL: 'MMMM D, YYYY h:mm A',
            LLLL: 'dddd, MMMM D, YYYY h:mm A',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
    });

    return enCa;

})));
//! moment.js locale configuration
//! locale : English (United Kingdom) [en-gb]
//! author : Chris Gedrim : https://github.com/chrisgedrim

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enGb = moment.defineLocale('en-gb', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return enGb;

})));
//! moment.js locale configuration
//! locale : English (Ireland) [en-ie]
//! author : Chris Cartlidge : https://github.com/chriscartlidge

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enIe = moment.defineLocale('en-ie', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return enIe;

})));
//! moment.js locale configuration
//! locale : English (Israel) [en-il]
//! author : Chris Gedrim : https://github.com/chrisgedrim

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enIl = moment.defineLocale('en-il', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
    });

    return enIl;

})));
//! moment.js locale configuration
//! locale : English (India) [en-in]
//! author : Jatin Agrawal : https://github.com/jatinag22

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enIn = moment.defineLocale('en-in', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 1st is the first week of the year.
        },
    });

    return enIn;

})));
//! moment.js locale configuration
//! locale : English (New Zealand) [en-nz]
//! author : Luke McGregor : https://github.com/lukemcgregor

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enNz = moment.defineLocale('en-nz', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return enNz;

})));
//! moment.js locale configuration
//! locale : English (Singapore) [en-sg]
//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var enSg = moment.defineLocale('en-sg', {
        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
            '_'
        ),
        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return enSg;

})));
//! moment.js locale configuration
//! locale : Esperanto [eo]
//! author : Colin Dean : https://github.com/colindean
//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
//! comment : miestasmia corrected the translation by colindean
//! comment : Vivakvo corrected the translation by colindean and miestasmia

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var eo = moment.defineLocale('eo', {
        months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
            '_'
        ),
        monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
        weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
        weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
        weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: '[la] D[-an de] MMMM, YYYY',
            LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
            LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
            llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
        },
        meridiemParse: /[ap]\.t\.m/i,
        isPM: function (input) {
            return input.charAt(0).toLowerCase() === 'p';
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours > 11) {
                return isLower ? 'p.t.m.' : 'P.T.M.';
            } else {
                return isLower ? 'a.t.m.' : 'A.T.M.';
            }
        },
        calendar: {
            sameDay: '[Hodiaŭ je] LT',
            nextDay: '[Morgaŭ je] LT',
            nextWeek: 'dddd[n je] LT',
            lastDay: '[Hieraŭ je] LT',
            lastWeek: '[pasintan] dddd[n je] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'post %s',
            past: 'antaŭ %s',
            s: 'kelkaj sekundoj',
            ss: '%d sekundoj',
            m: 'unu minuto',
            mm: '%d minutoj',
            h: 'unu horo',
            hh: '%d horoj',
            d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
            dd: '%d tagoj',
            M: 'unu monato',
            MM: '%d monatoj',
            y: 'unu jaro',
            yy: '%d jaroj',
        },
        dayOfMonthOrdinalParse: /\d{1,2}a/,
        ordinal: '%da',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return eo;

})));
//! moment.js locale configuration
//! locale : Spanish [es]
//! author : Julio Napurí : https://github.com/julionc

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsShortDot =
            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
                '_'
            ),
        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
        monthsParse = [
            /^ene/i,
            /^feb/i,
            /^mar/i,
            /^abr/i,
            /^may/i,
            /^jun/i,
            /^jul/i,
            /^ago/i,
            /^sep/i,
            /^oct/i,
            /^nov/i,
            /^dic/i,
        ],
        monthsRegex =
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

    var es = moment.defineLocale('es', {
        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
            '_'
        ),
        monthsShort: function (m, format) {
            if (!m) {
                return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
                return monthsShort[m.month()];
            } else {
                return monthsShortDot[m.month()];
            }
        },
        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex:
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
        monthsShortStrictRegex:
            /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,
        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY H:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
        },
        calendar: {
            sameDay: function () {
                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function () {
                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function () {
                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function () {
                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function () {
                return (
                    '[el] dddd [pasado a la' +
                    (this.hours() !== 1 ? 's' : '') +
                    '] LT'
                );
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
        invalidDate: 'Fecha inválida',
    });

    return es;

})));
//! moment.js locale configuration
//! locale : Spanish (Dominican Republic) [es-do]

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsShortDot =
            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
                '_'
            ),
        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
        monthsParse = [
            /^ene/i,
            /^feb/i,
            /^mar/i,
            /^abr/i,
            /^may/i,
            /^jun/i,
            /^jul/i,
            /^ago/i,
            /^sep/i,
            /^oct/i,
            /^nov/i,
            /^dic/i,
        ],
        monthsRegex =
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

    var esDo = moment.defineLocale('es-do', {
        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
            '_'
        ),
        monthsShort: function (m, format) {
            if (!m) {
                return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
                return monthsShort[m.month()];
            } else {
                return monthsShortDot[m.month()];
            }
        },
        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex:
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
        monthsShortStrictRegex:
            /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,
        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY h:mm A',
            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
        },
        calendar: {
            sameDay: function () {
                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function () {
                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function () {
                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function () {
                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function () {
                return (
                    '[el] dddd [pasado a la' +
                    (this.hours() !== 1 ? 's' : '') +
                    '] LT'
                );
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return esDo;

})));
//! moment.js locale configuration
//! locale : Spanish (Mexico) [es-mx]
//! author : JC Franco : https://github.com/jcfranco

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsShortDot =
            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
                '_'
            ),
        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
        monthsParse = [
            /^ene/i,
            /^feb/i,
            /^mar/i,
            /^abr/i,
            /^may/i,
            /^jun/i,
            /^jul/i,
            /^ago/i,
            /^sep/i,
            /^oct/i,
            /^nov/i,
            /^dic/i,
        ],
        monthsRegex =
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

    var esMx = moment.defineLocale('es-mx', {
        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
            '_'
        ),
        monthsShort: function (m, format) {
            if (!m) {
                return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
                return monthsShort[m.month()];
            } else {
                return monthsShortDot[m.month()];
            }
        },
        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex:
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
        monthsShortStrictRegex:
            /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,
        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY H:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
        },
        calendar: {
            sameDay: function () {
                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function () {
                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function () {
                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function () {
                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function () {
                return (
                    '[el] dddd [pasado a la' +
                    (this.hours() !== 1 ? 's' : '') +
                    '] LT'
                );
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
        invalidDate: 'Fecha inválida',
    });

    return esMx;

})));
//! moment.js locale configuration
//! locale : Spanish (United States) [es-us]
//! author : bustta : https://github.com/bustta
//! author : chrisrodz : https://github.com/chrisrodz

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsShortDot =
            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
                '_'
            ),
        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
        monthsParse = [
            /^ene/i,
            /^feb/i,
            /^mar/i,
            /^abr/i,
            /^may/i,
            /^jun/i,
            /^jul/i,
            /^ago/i,
            /^sep/i,
            /^oct/i,
            /^nov/i,
            /^dic/i,
        ],
        monthsRegex =
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

    var esUs = moment.defineLocale('es-us', {
        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
            '_'
        ),
        monthsShort: function (m, format) {
            if (!m) {
                return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
                return monthsShort[m.month()];
            } else {
                return monthsShortDot[m.month()];
            }
        },
        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex:
            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
        monthsShortStrictRegex:
            /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,
        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'MM/DD/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY h:mm A',
            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
        },
        calendar: {
            sameDay: function () {
                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function () {
                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function () {
                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function () {
                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function () {
                return (
                    '[el] dddd [pasado a la' +
                    (this.hours() !== 1 ? 's' : '') +
                    '] LT'
                );
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return esUs;

})));
//! moment.js locale configuration
//! locale : Estonian [et]
//! author : Henry Kehlmann : https://github.com/madhenry
//! improvements : Illimar Tambek : https://github.com/ragulka

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
            ss: [number + 'sekundi', number + 'sekundit'],
            m: ['ühe minuti', 'üks minut'],
            mm: [number + ' minuti', number + ' minutit'],
            h: ['ühe tunni', 'tund aega', 'üks tund'],
            hh: [number + ' tunni', number + ' tundi'],
            d: ['ühe päeva', 'üks päev'],
            M: ['kuu aja', 'kuu aega', 'üks kuu'],
            MM: [number + ' kuu', number + ' kuud'],
            y: ['ühe aasta', 'aasta', 'üks aasta'],
            yy: [number + ' aasta', number + ' aastat'],
        };
        if (withoutSuffix) {
            return format[key][2] ? format[key][2] : format[key][1];
        }
        return isFuture ? format[key][0] : format[key][1];
    }

    var et = moment.defineLocale('et', {
        months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
            '_'
        ),
        monthsShort:
            'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
        weekdays:
            'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
                '_'
            ),
        weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
        weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[Täna,] LT',
            nextDay: '[Homme,] LT',
            nextWeek: '[Järgmine] dddd LT',
            lastDay: '[Eile,] LT',
            lastWeek: '[Eelmine] dddd LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s pärast',
            past: '%s tagasi',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: '%d päeva',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return et;

})));
//! moment.js locale configuration
//! locale : Basque [eu]
//! author : Eneko Illarramendi : https://github.com/eillarra

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var eu = moment.defineLocale('eu', {
        months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
            '_'
        ),
        monthsShort:
            'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays:
            'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
                '_'
            ),
        weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
        weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY[ko] MMMM[ren] D[a]',
            LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
            LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
            l: 'YYYY-M-D',
            ll: 'YYYY[ko] MMM D[a]',
            lll: 'YYYY[ko] MMM D[a] HH:mm',
            llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
        },
        calendar: {
            sameDay: '[gaur] LT[etan]',
            nextDay: '[bihar] LT[etan]',
            nextWeek: 'dddd LT[etan]',
            lastDay: '[atzo] LT[etan]',
            lastWeek: '[aurreko] dddd LT[etan]',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s barru',
            past: 'duela %s',
            s: 'segundo batzuk',
            ss: '%d segundo',
            m: 'minutu bat',
            mm: '%d minutu',
            h: 'ordu bat',
            hh: '%d ordu',
            d: 'egun bat',
            dd: '%d egun',
            M: 'hilabete bat',
            MM: '%d hilabete',
            y: 'urte bat',
            yy: '%d urte',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return eu;

})));
//! moment.js locale configuration
//! locale : Persian [fa]
//! author : Ebrahim Byagowi : https://github.com/ebraminio

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '۱',
            2: '۲',
            3: '۳',
            4: '۴',
            5: '۵',
            6: '۶',
            7: '۷',
            8: '۸',
            9: '۹',
            0: '۰',
        },
        numberMap = {
            '۱': '1',
            '۲': '2',
            '۳': '3',
            '۴': '4',
            '۵': '5',
            '۶': '6',
            '۷': '7',
            '۸': '8',
            '۹': '9',
            '۰': '0',
        };

    var fa = moment.defineLocale('fa', {
        months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
            '_'
        ),
        monthsShort:
            'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
                '_'
            ),
        weekdays:
            'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
                '_'
            ),
        weekdaysShort:
            'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
                '_'
            ),
        weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        meridiemParse: /قبل از ظهر|بعد از ظهر/,
        isPM: function (input) {
            return /بعد از ظهر/.test(input);
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'قبل از ظهر';
            } else {
                return 'بعد از ظهر';
            }
        },
        calendar: {
            sameDay: '[امروز ساعت] LT',
            nextDay: '[فردا ساعت] LT',
            nextWeek: 'dddd [ساعت] LT',
            lastDay: '[دیروز ساعت] LT',
            lastWeek: 'dddd [پیش] [ساعت] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'در %s',
            past: '%s پیش',
            s: 'چند ثانیه',
            ss: '%d ثانیه',
            m: 'یک دقیقه',
            mm: '%d دقیقه',
            h: 'یک ساعت',
            hh: '%d ساعت',
            d: 'یک روز',
            dd: '%d روز',
            M: 'یک ماه',
            MM: '%d ماه',
            y: 'یک سال',
            yy: '%d سال',
        },
        preparse: function (string) {
            return string
                .replace(/[۰-۹]/g, function (match) {
                    return numberMap[match];
                })
                .replace(/،/g, ',');
        },
        postformat: function (string) {
            return string
                .replace(/\d/g, function (match) {
                    return symbolMap[match];
                })
                .replace(/,/g, '،');
        },
        dayOfMonthOrdinalParse: /\d{1,2}م/,
        ordinal: '%dم',
        week: {
            dow: 6, // Saturday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return fa;

})));
//! moment.js locale configuration
//! locale : Finnish [fi]
//! author : Tarmo Aidantausta : https://github.com/bleadof

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var numbersPast =
            'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
                ' '
            ),
        numbersFuture = [
            'nolla',
            'yhden',
            'kahden',
            'kolmen',
            'neljän',
            'viiden',
            'kuuden',
            numbersPast[7],
            numbersPast[8],
            numbersPast[9],
        ];
    function translate(number, withoutSuffix, key, isFuture) {
        var result = '';
        switch (key) {
            case 's':
                return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
            case 'ss':
                result = isFuture ? 'sekunnin' : 'sekuntia';
                break;
            case 'm':
                return isFuture ? 'minuutin' : 'minuutti';
            case 'mm':
                result = isFuture ? 'minuutin' : 'minuuttia';
                break;
            case 'h':
                return isFuture ? 'tunnin' : 'tunti';
            case 'hh':
                result = isFuture ? 'tunnin' : 'tuntia';
                break;
            case 'd':
                return isFuture ? 'päivän' : 'päivä';
            case 'dd':
                result = isFuture ? 'päivän' : 'päivää';
                break;
            case 'M':
                return isFuture ? 'kuukauden' : 'kuukausi';
            case 'MM':
                result = isFuture ? 'kuukauden' : 'kuukautta';
                break;
            case 'y':
                return isFuture ? 'vuoden' : 'vuosi';
            case 'yy':
                result = isFuture ? 'vuoden' : 'vuotta';
                break;
        }
        result = verbalNumber(number, isFuture) + ' ' + result;
        return result;
    }
    function verbalNumber(number, isFuture) {
        return number < 10
            ? isFuture
                ? numbersFuture[number]
                : numbersPast[number]
            : number;
    }

    var fi = moment.defineLocale('fi', {
        months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
            '_'
        ),
        monthsShort:
            'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
                '_'
            ),
        weekdays:
            'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
                '_'
            ),
        weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
        weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
        longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD.MM.YYYY',
            LL: 'Do MMMM[ta] YYYY',
            LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
            LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
            l: 'D.M.YYYY',
            ll: 'Do MMM YYYY',
            lll: 'Do MMM YYYY, [klo] HH.mm',
            llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
        },
        calendar: {
            sameDay: '[tänään] [klo] LT',
            nextDay: '[huomenna] [klo] LT',
            nextWeek: 'dddd [klo] LT',
            lastDay: '[eilen] [klo] LT',
            lastWeek: '[viime] dddd[na] [klo] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s päästä',
            past: '%s sitten',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return fi;

})));
//! moment.js locale configuration
//! locale : Filipino [fil]
//! author : Dan Hagman : https://github.com/hagmandan
//! author : Matthew Co : https://github.com/matthewdeeco

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var fil = moment.defineLocale('fil', {
        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
            '_'
        ),
        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
            '_'
        ),
        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'MM/D/YYYY',
            LL: 'MMMM D, YYYY',
            LLL: 'MMMM D, YYYY HH:mm',
            LLLL: 'dddd, MMMM DD, YYYY HH:mm',
        },
        calendar: {
            sameDay: 'LT [ngayong araw]',
            nextDay: '[Bukas ng] LT',
            nextWeek: 'LT [sa susunod na] dddd',
            lastDay: 'LT [kahapon]',
            lastWeek: 'LT [noong nakaraang] dddd',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'sa loob ng %s',
            past: '%s ang nakalipas',
            s: 'ilang segundo',
            ss: '%d segundo',
            m: 'isang minuto',
            mm: '%d minuto',
            h: 'isang oras',
            hh: '%d oras',
            d: 'isang araw',
            dd: '%d araw',
            M: 'isang buwan',
            MM: '%d buwan',
            y: 'isang taon',
            yy: '%d taon',
        },
        dayOfMonthOrdinalParse: /\d{1,2}/,
        ordinal: function (number) {
            return number;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return fil;

})));
//! moment.js locale configuration
//! locale : Faroese [fo]
//! author : Ragnar Johannesen : https://github.com/ragnar123
//! author : Kristian Sakarisson : https://github.com/sakarisson

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var fo = moment.defineLocale('fo', {
        months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
            '_'
        ),
        monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
        weekdays:
            'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
                '_'
            ),
        weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
        weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D. MMMM, YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Í dag kl.] LT',
            nextDay: '[Í morgin kl.] LT',
            nextWeek: 'dddd [kl.] LT',
            lastDay: '[Í gjár kl.] LT',
            lastWeek: '[síðstu] dddd [kl] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'um %s',
            past: '%s síðani',
            s: 'fá sekund',
            ss: '%d sekundir',
            m: 'ein minuttur',
            mm: '%d minuttir',
            h: 'ein tími',
            hh: '%d tímar',
            d: 'ein dagur',
            dd: '%d dagar',
            M: 'ein mánaður',
            MM: '%d mánaðir',
            y: 'eitt ár',
            yy: '%d ár',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return fo;

})));
//! moment.js locale configuration
//! locale : French [fr]
//! author : John Fischer : https://github.com/jfroffice

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsStrictRegex =
            /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
        monthsShortStrictRegex =
            /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
        monthsRegex =
            /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
        monthsParse = [
            /^janv/i,
            /^févr/i,
            /^mars/i,
            /^avr/i,
            /^mai/i,
            /^juin/i,
            /^juil/i,
            /^août/i,
            /^sept/i,
            /^oct/i,
            /^nov/i,
            /^déc/i,
        ];

    var fr = moment.defineLocale('fr', {
        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
            '_'
        ),
        monthsShort:
            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
                '_'
            ),
        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex: monthsStrictRegex,
        monthsShortStrictRegex: monthsShortStrictRegex,
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,
        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Aujourd’hui à] LT',
            nextDay: '[Demain à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[Hier à] LT',
            lastWeek: 'dddd [dernier à] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'dans %s',
            past: 'il y a %s',
            s: 'quelques secondes',
            ss: '%d secondes',
            m: 'une minute',
            mm: '%d minutes',
            h: 'une heure',
            hh: '%d heures',
            d: 'un jour',
            dd: '%d jours',
            w: 'une semaine',
            ww: '%d semaines',
            M: 'un mois',
            MM: '%d mois',
            y: 'un an',
            yy: '%d ans',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
        ordinal: function (number, period) {
            switch (period) {
                // TODO: Return 'e' when day of month > 1. Move this case inside
                // block for masculine words below.
                // See https://github.com/moment/moment/issues/3375
                case 'D':
                    return number + (number === 1 ? 'er' : '');

                // Words with masculine grammatical gender: mois, trimestre, jour
                default:
                case 'M':
                case 'Q':
                case 'DDD':
                case 'd':
                    return number + (number === 1 ? 'er' : 'e');

                // Words with feminine grammatical gender: semaine
                case 'w':
                case 'W':
                    return number + (number === 1 ? 're' : 'e');
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return fr;

})));
//! moment.js locale configuration
//! locale : French (Canada) [fr-ca]
//! author : Jonathan Abourbih : https://github.com/jonbca

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var frCa = moment.defineLocale('fr-ca', {
        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
            '_'
        ),
        monthsShort:
            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Aujourd’hui à] LT',
            nextDay: '[Demain à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[Hier à] LT',
            lastWeek: 'dddd [dernier à] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'dans %s',
            past: 'il y a %s',
            s: 'quelques secondes',
            ss: '%d secondes',
            m: 'une minute',
            mm: '%d minutes',
            h: 'une heure',
            hh: '%d heures',
            d: 'un jour',
            dd: '%d jours',
            M: 'un mois',
            MM: '%d mois',
            y: 'un an',
            yy: '%d ans',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
        ordinal: function (number, period) {
            switch (period) {
                // Words with masculine grammatical gender: mois, trimestre, jour
                default:
                case 'M':
                case 'Q':
                case 'D':
                case 'DDD':
                case 'd':
                    return number + (number === 1 ? 'er' : 'e');

                // Words with feminine grammatical gender: semaine
                case 'w':
                case 'W':
                    return number + (number === 1 ? 're' : 'e');
            }
        },
    });

    return frCa;

})));
//! moment.js locale configuration
//! locale : French (Switzerland) [fr-ch]
//! author : Gaspard Bucher : https://github.com/gaspard

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var frCh = moment.defineLocale('fr-ch', {
        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
            '_'
        ),
        monthsShort:
            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Aujourd’hui à] LT',
            nextDay: '[Demain à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[Hier à] LT',
            lastWeek: 'dddd [dernier à] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'dans %s',
            past: 'il y a %s',
            s: 'quelques secondes',
            ss: '%d secondes',
            m: 'une minute',
            mm: '%d minutes',
            h: 'une heure',
            hh: '%d heures',
            d: 'un jour',
            dd: '%d jours',
            M: 'un mois',
            MM: '%d mois',
            y: 'un an',
            yy: '%d ans',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
        ordinal: function (number, period) {
            switch (period) {
                // Words with masculine grammatical gender: mois, trimestre, jour
                default:
                case 'M':
                case 'Q':
                case 'D':
                case 'DDD':
                case 'd':
                    return number + (number === 1 ? 'er' : 'e');

                // Words with feminine grammatical gender: semaine
                case 'w':
                case 'W':
                    return number + (number === 1 ? 're' : 'e');
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return frCh;

})));
//! moment.js locale configuration
//! locale : Frisian [fy]
//! author : Robin van der Vliet : https://github.com/robin0van0der0v

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsShortWithDots =
            'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
        monthsShortWithoutDots =
            'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');

    var fy = moment.defineLocale('fy', {
        months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
            '_'
        ),
        monthsShort: function (m, format) {
            if (!m) {
                return monthsShortWithDots;
            } else if (/-MMM-/.test(format)) {
                return monthsShortWithoutDots[m.month()];
            } else {
                return monthsShortWithDots[m.month()];
            }
        },
        monthsParseExact: true,
        weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
            '_'
        ),
        weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
        weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[hjoed om] LT',
            nextDay: '[moarn om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[juster om] LT',
            lastWeek: '[ôfrûne] dddd [om] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'oer %s',
            past: '%s lyn',
            s: 'in pear sekonden',
            ss: '%d sekonden',
            m: 'ien minút',
            mm: '%d minuten',
            h: 'ien oere',
            hh: '%d oeren',
            d: 'ien dei',
            dd: '%d dagen',
            M: 'ien moanne',
            MM: '%d moannen',
            y: 'ien jier',
            yy: '%d jierren',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
        ordinal: function (number) {
            return (
                number +
                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
            );
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return fy;

})));
//! moment.js locale configuration
//! locale : Irish or Irish Gaelic [ga]
//! author : André Silva : https://github.com/askpt

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var months = [
            'Eanáir',
            'Feabhra',
            'Márta',
            'Aibreán',
            'Bealtaine',
            'Meitheamh',
            'Iúil',
            'Lúnasa',
            'Meán Fómhair',
            'Deireadh Fómhair',
            'Samhain',
            'Nollaig',
        ],
        monthsShort = [
            'Ean',
            'Feabh',
            'Márt',
            'Aib',
            'Beal',
            'Meith',
            'Iúil',
            'Lún',
            'M.F.',
            'D.F.',
            'Samh',
            'Noll',
        ],
        weekdays = [
            'Dé Domhnaigh',
            'Dé Luain',
            'Dé Máirt',
            'Dé Céadaoin',
            'Déardaoin',
            'Dé hAoine',
            'Dé Sathairn',
        ],
        weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
        weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];

    var ga = moment.defineLocale('ga', {
        months: months,
        monthsShort: monthsShort,
        monthsParseExact: true,
        weekdays: weekdays,
        weekdaysShort: weekdaysShort,
        weekdaysMin: weekdaysMin,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Inniu ag] LT',
            nextDay: '[Amárach ag] LT',
            nextWeek: 'dddd [ag] LT',
            lastDay: '[Inné ag] LT',
            lastWeek: 'dddd [seo caite] [ag] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'i %s',
            past: '%s ó shin',
            s: 'cúpla soicind',
            ss: '%d soicind',
            m: 'nóiméad',
            mm: '%d nóiméad',
            h: 'uair an chloig',
            hh: '%d uair an chloig',
            d: 'lá',
            dd: '%d lá',
            M: 'mí',
            MM: '%d míonna',
            y: 'bliain',
            yy: '%d bliain',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
        ordinal: function (number) {
            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return ga;

})));
//! moment.js locale configuration
//! locale : Scottish Gaelic [gd]
//! author : Jon Ashdown : https://github.com/jonashdown

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var months = [
            'Am Faoilleach',
            'An Gearran',
            'Am Màrt',
            'An Giblean',
            'An Cèitean',
            'An t-Ògmhios',
            'An t-Iuchar',
            'An Lùnastal',
            'An t-Sultain',
            'An Dàmhair',
            'An t-Samhain',
            'An Dùbhlachd',
        ],
        monthsShort = [
            'Faoi',
            'Gear',
            'Màrt',
            'Gibl',
            'Cèit',
            'Ògmh',
            'Iuch',
            'Lùn',
            'Sult',
            'Dàmh',
            'Samh',
            'Dùbh',
        ],
        weekdays = [
            'Didòmhnaich',
            'Diluain',
            'Dimàirt',
            'Diciadain',
            'Diardaoin',
            'Dihaoine',
            'Disathairne',
        ],
        weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
        weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];

    var gd = moment.defineLocale('gd', {
        months: months,
        monthsShort: monthsShort,
        monthsParseExact: true,
        weekdays: weekdays,
        weekdaysShort: weekdaysShort,
        weekdaysMin: weekdaysMin,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[An-diugh aig] LT',
            nextDay: '[A-màireach aig] LT',
            nextWeek: 'dddd [aig] LT',
            lastDay: '[An-dè aig] LT',
            lastWeek: 'dddd [seo chaidh] [aig] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'ann an %s',
            past: 'bho chionn %s',
            s: 'beagan diogan',
            ss: '%d diogan',
            m: 'mionaid',
            mm: '%d mionaidean',
            h: 'uair',
            hh: '%d uairean',
            d: 'latha',
            dd: '%d latha',
            M: 'mìos',
            MM: '%d mìosan',
            y: 'bliadhna',
            yy: '%d bliadhna',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
        ordinal: function (number) {
            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return gd;

})));
//! moment.js locale configuration
//! locale : Galician [gl]
//! author : Juan G. Hurtado : https://github.com/juanghurtado

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var gl = moment.defineLocale('gl', {
        months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
            '_'
        ),
        monthsShort:
            'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
        weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
        weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY H:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
        },
        calendar: {
            sameDay: function () {
                return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
            },
            nextDay: function () {
                return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
            },
            nextWeek: function () {
                return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
            },
            lastDay: function () {
                return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
            },
            lastWeek: function () {
                return (
                    '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
                );
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: function (str) {
                if (str.indexOf('un') === 0) {
                    return 'n' + str;
                }
                return 'en ' + str;
            },
            past: 'hai %s',
            s: 'uns segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'unha hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            M: 'un mes',
            MM: '%d meses',
            y: 'un ano',
            yy: '%d anos',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return gl;

})));
//! moment.js locale configuration
//! locale : Konkani Devanagari script [gom-deva]
//! author : The Discoverer : https://github.com/WikiDiscoverer

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
            ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
            m: ['एका मिणटान', 'एक मिनूट'],
            mm: [number + ' मिणटांनी', number + ' मिणटां'],
            h: ['एका वरान', 'एक वर'],
            hh: [number + ' वरांनी', number + ' वरां'],
            d: ['एका दिसान', 'एक दीस'],
            dd: [number + ' दिसांनी', number + ' दीस'],
            M: ['एका म्हयन्यान', 'एक म्हयनो'],
            MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
            y: ['एका वर्सान', 'एक वर्स'],
            yy: [number + ' वर्सांनी', number + ' वर्सां'],
        };
        return isFuture ? format[key][0] : format[key][1];
    }

    var gomDeva = moment.defineLocale('gom-deva', {
        months: {
            standalone:
                'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
                    '_'
                ),
            format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
                '_'
            ),
            isFormat: /MMMM(\s)+D[oD]?/,
        },
        monthsShort:
            'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
        weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
        weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'A h:mm [वाजतां]',
            LTS: 'A h:mm:ss [वाजतां]',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY A h:mm [वाजतां]',
            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
            llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
        },
        calendar: {
            sameDay: '[आयज] LT',
            nextDay: '[फाल्यां] LT',
            nextWeek: '[फुडलो] dddd[,] LT',
            lastDay: '[काल] LT',
            lastWeek: '[फाटलो] dddd[,] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s',
            past: '%s आदीं',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
        ordinal: function (number, period) {
            switch (period) {
                // the ordinal 'वेर' only applies to day of the month
                case 'D':
                    return number + 'वेर';
                default:
                case 'M':
                case 'Q':
                case 'DDD':
                case 'd':
                case 'w':
                case 'W':
                    return number;
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week
            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
        },
        meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'राती') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'सकाळीं') {
                return hour;
            } else if (meridiem === 'दनपारां') {
                return hour > 12 ? hour : hour + 12;
            } else if (meridiem === 'सांजे') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'राती';
            } else if (hour < 12) {
                return 'सकाळीं';
            } else if (hour < 16) {
                return 'दनपारां';
            } else if (hour < 20) {
                return 'सांजे';
            } else {
                return 'राती';
            }
        },
    });

    return gomDeva;

})));
//! moment.js locale configuration
//! locale : Konkani Latin script [gom-latn]
//! author : The Discoverer : https://github.com/WikiDiscoverer

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            s: ['thoddea sekondamni', 'thodde sekond'],
            ss: [number + ' sekondamni', number + ' sekond'],
            m: ['eka mintan', 'ek minut'],
            mm: [number + ' mintamni', number + ' mintam'],
            h: ['eka voran', 'ek vor'],
            hh: [number + ' voramni', number + ' voram'],
            d: ['eka disan', 'ek dis'],
            dd: [number + ' disamni', number + ' dis'],
            M: ['eka mhoinean', 'ek mhoino'],
            MM: [number + ' mhoineamni', number + ' mhoine'],
            y: ['eka vorsan', 'ek voros'],
            yy: [number + ' vorsamni', number + ' vorsam'],
        };
        return isFuture ? format[key][0] : format[key][1];
    }

    var gomLatn = moment.defineLocale('gom-latn', {
        months: {
            standalone:
                'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
                    '_'
                ),
            format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
                '_'
            ),
            isFormat: /MMMM(\s)+D[oD]?/,
        },
        monthsShort:
            'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
        monthsParseExact: true,
        weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
        weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
        weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'A h:mm [vazta]',
            LTS: 'A h:mm:ss [vazta]',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY A h:mm [vazta]',
            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
            llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
        },
        calendar: {
            sameDay: '[Aiz] LT',
            nextDay: '[Faleam] LT',
            nextWeek: '[Fuddlo] dddd[,] LT',
            lastDay: '[Kal] LT',
            lastWeek: '[Fattlo] dddd[,] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s',
            past: '%s adim',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}(er)/,
        ordinal: function (number, period) {
            switch (period) {
                // the ordinal 'er' only applies to day of the month
                case 'D':
                    return number + 'er';
                default:
                case 'M':
                case 'Q':
                case 'DDD':
                case 'd':
                case 'w':
                case 'W':
                    return number;
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week
            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
        },
        meridiemParse: /rati|sokallim|donparam|sanje/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'rati') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'sokallim') {
                return hour;
            } else if (meridiem === 'donparam') {
                return hour > 12 ? hour : hour + 12;
            } else if (meridiem === 'sanje') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'rati';
            } else if (hour < 12) {
                return 'sokallim';
            } else if (hour < 16) {
                return 'donparam';
            } else if (hour < 20) {
                return 'sanje';
            } else {
                return 'rati';
            }
        },
    });

    return gomLatn;

})));
//! moment.js locale configuration
//! locale : Gujarati [gu]
//! author : Kaushik Thanki : https://github.com/Kaushik1987

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '૧',
            2: '૨',
            3: '૩',
            4: '૪',
            5: '૫',
            6: '૬',
            7: '૭',
            8: '૮',
            9: '૯',
            0: '૦',
        },
        numberMap = {
            '૧': '1',
            '૨': '2',
            '૩': '3',
            '૪': '4',
            '૫': '5',
            '૬': '6',
            '૭': '7',
            '૮': '8',
            '૯': '9',
            '૦': '0',
        };

    var gu = moment.defineLocale('gu', {
        months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
            '_'
        ),
        monthsShort:
            'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
            '_'
        ),
        weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
        weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
        longDateFormat: {
            LT: 'A h:mm વાગ્યે',
            LTS: 'A h:mm:ss વાગ્યે',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
            LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
        },
        calendar: {
            sameDay: '[આજ] LT',
            nextDay: '[કાલે] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[ગઇકાલે] LT',
            lastWeek: '[પાછલા] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s મા',
            past: '%s પહેલા',
            s: 'અમુક પળો',
            ss: '%d સેકંડ',
            m: 'એક મિનિટ',
            mm: '%d મિનિટ',
            h: 'એક કલાક',
            hh: '%d કલાક',
            d: 'એક દિવસ',
            dd: '%d દિવસ',
            M: 'એક મહિનો',
            MM: '%d મહિનો',
            y: 'એક વર્ષ',
            yy: '%d વર્ષ',
        },
        preparse: function (string) {
            return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
        meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'રાત') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'સવાર') {
                return hour;
            } else if (meridiem === 'બપોર') {
                return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'સાંજ') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'રાત';
            } else if (hour < 10) {
                return 'સવાર';
            } else if (hour < 17) {
                return 'બપોર';
            } else if (hour < 20) {
                return 'સાંજ';
            } else {
                return 'રાત';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return gu;

})));
//! moment.js locale configuration
//! locale : Hebrew [he]
//! author : Tomer Cohen : https://github.com/tomer
//! author : Moshe Simantov : https://github.com/DevelopmentIL
//! author : Tal Ater : https://github.com/TalAter

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var he = moment.defineLocale('he', {
        months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
            '_'
        ),
        monthsShort:
            'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
        weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
        weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
        weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [ב]MMMM YYYY',
            LLL: 'D [ב]MMMM YYYY HH:mm',
            LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
            l: 'D/M/YYYY',
            ll: 'D MMM YYYY',
            lll: 'D MMM YYYY HH:mm',
            llll: 'ddd, D MMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[היום ב־]LT',
            nextDay: '[מחר ב־]LT',
            nextWeek: 'dddd [בשעה] LT',
            lastDay: '[אתמול ב־]LT',
            lastWeek: '[ביום] dddd [האחרון בשעה] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'בעוד %s',
            past: 'לפני %s',
            s: 'מספר שניות',
            ss: '%d שניות',
            m: 'דקה',
            mm: '%d דקות',
            h: 'שעה',
            hh: function (number) {
                if (number === 2) {
                    return 'שעתיים';
                }
                return number + ' שעות';
            },
            d: 'יום',
            dd: function (number) {
                if (number === 2) {
                    return 'יומיים';
                }
                return number + ' ימים';
            },
            M: 'חודש',
            MM: function (number) {
                if (number === 2) {
                    return 'חודשיים';
                }
                return number + ' חודשים';
            },
            y: 'שנה',
            yy: function (number) {
                if (number === 2) {
                    return 'שנתיים';
                } else if (number % 10 === 0 && number !== 10) {
                    return number + ' שנה';
                }
                return number + ' שנים';
            },
        },
        meridiemParse:
            /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
        isPM: function (input) {
            return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 5) {
                return 'לפנות בוקר';
            } else if (hour < 10) {
                return 'בבוקר';
            } else if (hour < 12) {
                return isLower ? 'לפנה"צ' : 'לפני הצהריים';
            } else if (hour < 18) {
                return isLower ? 'אחה"צ' : 'אחרי הצהריים';
            } else {
                return 'בערב';
            }
        },
    });

    return he;

})));
//! moment.js locale configuration
//! locale : Hindi [hi]
//! author : Mayank Singhal : https://github.com/mayanksinghal

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '१',
            2: '२',
            3: '३',
            4: '४',
            5: '५',
            6: '६',
            7: '७',
            8: '८',
            9: '९',
            0: '०',
        },
        numberMap = {
            '१': '1',
            '२': '2',
            '३': '3',
            '४': '4',
            '५': '5',
            '६': '6',
            '७': '7',
            '८': '8',
            '९': '9',
            '०': '0',
        },
        monthsParse = [
            /^जन/i,
            /^फ़र|फर/i,
            /^मार्च/i,
            /^अप्रै/i,
            /^मई/i,
            /^जून/i,
            /^जुल/i,
            /^अग/i,
            /^सितं|सित/i,
            /^अक्टू/i,
            /^नव|नवं/i,
            /^दिसं|दिस/i,
        ],
        shortMonthsParse = [
            /^जन/i,
            /^फ़र/i,
            /^मार्च/i,
            /^अप्रै/i,
            /^मई/i,
            /^जून/i,
            /^जुल/i,
            /^अग/i,
            /^सित/i,
            /^अक्टू/i,
            /^नव/i,
            /^दिस/i,
        ];

    var hi = moment.defineLocale('hi', {
        months: {
            format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
                '_'
            ),
            standalone:
                'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
                    '_'
                ),
        },
        monthsShort:
            'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
        weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
        weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
        longDateFormat: {
            LT: 'A h:mm बजे',
            LTS: 'A h:mm:ss बजे',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm बजे',
            LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
        },

        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: shortMonthsParse,

        monthsRegex:
            /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,

        monthsShortRegex:
            /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,

        monthsStrictRegex:
            /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,

        monthsShortStrictRegex:
            /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,

        calendar: {
            sameDay: '[आज] LT',
            nextDay: '[कल] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[कल] LT',
            lastWeek: '[पिछले] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s में',
            past: '%s पहले',
            s: 'कुछ ही क्षण',
            ss: '%d सेकंड',
            m: 'एक मिनट',
            mm: '%d मिनट',
            h: 'एक घंटा',
            hh: '%d घंटे',
            d: 'एक दिन',
            dd: '%d दिन',
            M: 'एक महीने',
            MM: '%d महीने',
            y: 'एक वर्ष',
            yy: '%d वर्ष',
        },
        preparse: function (string) {
            return string.replace(/[१२३४५६७८९०]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        // Hindi notation for meridiems are quite fuzzy in practice. While there exists
        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
        meridiemParse: /रात|सुबह|दोपहर|शाम/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'रात') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'सुबह') {
                return hour;
            } else if (meridiem === 'दोपहर') {
                return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'शाम') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'रात';
            } else if (hour < 10) {
                return 'सुबह';
            } else if (hour < 17) {
                return 'दोपहर';
            } else if (hour < 20) {
                return 'शाम';
            } else {
                return 'रात';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return hi;

})));
//! moment.js locale configuration
//! locale : Croatian [hr]
//! author : Bojan Marković : https://github.com/bmarkovic

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function translate(number, withoutSuffix, key) {
        var result = number + ' ';
        switch (key) {
            case 'ss':
                if (number === 1) {
                    result += 'sekunda';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'sekunde';
                } else {
                    result += 'sekundi';
                }
                return result;
            case 'm':
                return withoutSuffix ? 'jedna minuta' : 'jedne minute';
            case 'mm':
                if (number === 1) {
                    result += 'minuta';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'minute';
                } else {
                    result += 'minuta';
                }
                return result;
            case 'h':
                return withoutSuffix ? 'jedan sat' : 'jednog sata';
            case 'hh':
                if (number === 1) {
                    result += 'sat';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'sata';
                } else {
                    result += 'sati';
                }
                return result;
            case 'dd':
                if (number === 1) {
                    result += 'dan';
                } else {
                    result += 'dana';
                }
                return result;
            case 'MM':
                if (number === 1) {
                    result += 'mjesec';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'mjeseca';
                } else {
                    result += 'mjeseci';
                }
                return result;
            case 'yy':
                if (number === 1) {
                    result += 'godina';
                } else if (number === 2 || number === 3 || number === 4) {
                    result += 'godine';
                } else {
                    result += 'godina';
                }
                return result;
        }
    }

    var hr = moment.defineLocale('hr', {
        months: {
            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
                '_'
            ),
            standalone:
                'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
                    '_'
                ),
        },
        monthsShort:
            'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
            '_'
        ),
        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'Do MMMM YYYY',
            LLL: 'Do MMMM YYYY H:mm',
            LLLL: 'dddd, Do MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sutra u] LT',
            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[u] [nedjelju] [u] LT';
                    case 3:
                        return '[u] [srijedu] [u] LT';
                    case 6:
                        return '[u] [subotu] [u] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[u] dddd [u] LT';
                }
            },
            lastDay: '[jučer u] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[prošlu] [nedjelju] [u] LT';
                    case 3:
                        return '[prošlu] [srijedu] [u] LT';
                    case 6:
                        return '[prošle] [subote] [u] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[prošli] dddd [u] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'za %s',
            past: 'prije %s',
            s: 'par sekundi',
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: 'dan',
            dd: translate,
            M: 'mjesec',
            MM: translate,
            y: 'godinu',
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return hr;

})));
//! moment.js locale configuration
//! locale : Hungarian [hu]
//! author : Adam Brunner : https://github.com/adambrunner
//! author : Peter Viszt  : https://github.com/passatgt

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var weekEndings =
        'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
    function translate(number, withoutSuffix, key, isFuture) {
        var num = number;
        switch (key) {
            case 's':
                return isFuture || withoutSuffix
                    ? 'néhány másodperc'
                    : 'néhány másodperce';
            case 'ss':
                return num + (isFuture || withoutSuffix)
                    ? ' másodperc'
                    : ' másodperce';
            case 'm':
                return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
            case 'mm':
                return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
            case 'h':
                return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
            case 'hh':
                return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
            case 'd':
                return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
            case 'dd':
                return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
            case 'M':
                return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
            case 'MM':
                return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
            case 'y':
                return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
            case 'yy':
                return num + (isFuture || withoutSuffix ? ' év' : ' éve');
        }
        return '';
    }
    function week(isFuture) {
        return (
            (isFuture ? '' : '[múlt] ') +
            '[' +
            weekEndings[this.day()] +
            '] LT[-kor]'
        );
    }

    var hu = moment.defineLocale('hu', {
        months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
            '_'
        ),
        monthsShort:
            'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
        weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
        weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'YYYY.MM.DD.',
            LL: 'YYYY. MMMM D.',
            LLL: 'YYYY. MMMM D. H:mm',
            LLLL: 'YYYY. MMMM D., dddd H:mm',
        },
        meridiemParse: /de|du/i,
        isPM: function (input) {
            return input.charAt(1).toLowerCase() === 'u';
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours < 12) {
                return isLower === true ? 'de' : 'DE';
            } else {
                return isLower === true ? 'du' : 'DU';
            }
        },
        calendar: {
            sameDay: '[ma] LT[-kor]',
            nextDay: '[holnap] LT[-kor]',
            nextWeek: function () {
                return week.call(this, true);
            },
            lastDay: '[tegnap] LT[-kor]',
            lastWeek: function () {
                return week.call(this, false);
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s múlva',
            past: '%s',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return hu;

})));
//! moment.js locale configuration
//! locale : Armenian [hy-am]
//! author : Armendarabyan : https://github.com/armendarabyan

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var hyAm = moment.defineLocale('hy-am', {
        months: {
            format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
                '_'
            ),
            standalone:
                'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
                    '_'
                ),
        },
        monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
        weekdays:
            'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
                '_'
            ),
        weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
        weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY թ.',
            LLL: 'D MMMM YYYY թ., HH:mm',
            LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
        },
        calendar: {
            sameDay: '[այսօր] LT',
            nextDay: '[վաղը] LT',
            lastDay: '[երեկ] LT',
            nextWeek: function () {
                return 'dddd [օրը ժամը] LT';
            },
            lastWeek: function () {
                return '[անցած] dddd [օրը ժամը] LT';
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s հետո',
            past: '%s առաջ',
            s: 'մի քանի վայրկյան',
            ss: '%d վայրկյան',
            m: 'րոպե',
            mm: '%d րոպե',
            h: 'ժամ',
            hh: '%d ժամ',
            d: 'օր',
            dd: '%d օր',
            M: 'ամիս',
            MM: '%d ամիս',
            y: 'տարի',
            yy: '%d տարի',
        },
        meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
        isPM: function (input) {
            return /^(ցերեկվա|երեկոյան)$/.test(input);
        },
        meridiem: function (hour) {
            if (hour < 4) {
                return 'գիշերվա';
            } else if (hour < 12) {
                return 'առավոտվա';
            } else if (hour < 17) {
                return 'ցերեկվա';
            } else {
                return 'երեկոյան';
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'DDD':
                case 'w':
                case 'W':
                case 'DDDo':
                    if (number === 1) {
                        return number + '-ին';
                    }
                    return number + '-րդ';
                default:
                    return number;
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return hyAm;

})));
//! moment.js locale configuration
//! locale : Indonesian [id]
//! author : Mohammad Satrio Utomo : https://github.com/tyok
//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var id = moment.defineLocale('id', {
        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
        weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
        weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
        longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
        },
        meridiemParse: /pagi|siang|sore|malam/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'pagi') {
                return hour;
            } else if (meridiem === 'siang') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'sore' || meridiem === 'malam') {
                return hour + 12;
            }
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours < 11) {
                return 'pagi';
            } else if (hours < 15) {
                return 'siang';
            } else if (hours < 19) {
                return 'sore';
            } else {
                return 'malam';
            }
        },
        calendar: {
            sameDay: '[Hari ini pukul] LT',
            nextDay: '[Besok pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kemarin pukul] LT',
            lastWeek: 'dddd [lalu pukul] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'dalam %s',
            past: '%s yang lalu',
            s: 'beberapa detik',
            ss: '%d detik',
            m: 'semenit',
            mm: '%d menit',
            h: 'sejam',
            hh: '%d jam',
            d: 'sehari',
            dd: '%d hari',
            M: 'sebulan',
            MM: '%d bulan',
            y: 'setahun',
            yy: '%d tahun',
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return id;

})));
//! moment.js locale configuration
//! locale : Icelandic [is]
//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function plural(n) {
        if (n % 100 === 11) {
            return true;
        } else if (n % 10 === 1) {
            return false;
        }
        return true;
    }
    function translate(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        switch (key) {
            case 's':
                return withoutSuffix || isFuture
                    ? 'nokkrar sekúndur'
                    : 'nokkrum sekúndum';
            case 'ss':
                if (plural(number)) {
                    return (
                        result +
                        (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
                    );
                }
                return result + 'sekúnda';
            case 'm':
                return withoutSuffix ? 'mínúta' : 'mínútu';
            case 'mm':
                if (plural(number)) {
                    return (
                        result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
                    );
                } else if (withoutSuffix) {
                    return result + 'mínúta';
                }
                return result + 'mínútu';
            case 'hh':
                if (plural(number)) {
                    return (
                        result +
                        (withoutSuffix || isFuture
                            ? 'klukkustundir'
                            : 'klukkustundum')
                    );
                }
                return result + 'klukkustund';
            case 'd':
                if (withoutSuffix) {
                    return 'dagur';
                }
                return isFuture ? 'dag' : 'degi';
            case 'dd':
                if (plural(number)) {
                    if (withoutSuffix) {
                        return result + 'dagar';
                    }
                    return result + (isFuture ? 'daga' : 'dögum');
                } else if (withoutSuffix) {
                    return result + 'dagur';
                }
                return result + (isFuture ? 'dag' : 'degi');
            case 'M':
                if (withoutSuffix) {
                    return 'mánuður';
                }
                return isFuture ? 'mánuð' : 'mánuði';
            case 'MM':
                if (plural(number)) {
                    if (withoutSuffix) {
                        return result + 'mánuðir';
                    }
                    return result + (isFuture ? 'mánuði' : 'mánuðum');
                } else if (withoutSuffix) {
                    return result + 'mánuður';
                }
                return result + (isFuture ? 'mánuð' : 'mánuði');
            case 'y':
                return withoutSuffix || isFuture ? 'ár' : 'ári';
            case 'yy':
                if (plural(number)) {
                    return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
                }
                return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
        }
    }

    var is = moment.defineLocale('is', {
        months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
            '_'
        ),
        monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
        weekdays:
            'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
                '_'
            ),
        weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
        weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY [kl.] H:mm',
            LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
        },
        calendar: {
            sameDay: '[í dag kl.] LT',
            nextDay: '[á morgun kl.] LT',
            nextWeek: 'dddd [kl.] LT',
            lastDay: '[í gær kl.] LT',
            lastWeek: '[síðasta] dddd [kl.] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'eftir %s',
            past: 'fyrir %s síðan',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: 'klukkustund',
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return is;

})));
//! moment.js locale configuration
//! locale : Italian [it]
//! author : Lorenzo : https://github.com/aliem
//! author: Mattia Larentis: https://github.com/nostalgiaz
//! author: Marco : https://github.com/Manfre98

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var it = moment.defineLocale('it', {
        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
            '_'
        ),
        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
            '_'
        ),
        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: function () {
                return (
                    '[Oggi a' +
                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
                    ']LT'
                );
            },
            nextDay: function () {
                return (
                    '[Domani a' +
                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
                    ']LT'
                );
            },
            nextWeek: function () {
                return (
                    'dddd [a' +
                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
                    ']LT'
                );
            },
            lastDay: function () {
                return (
                    '[Ieri a' +
                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
                    ']LT'
                );
            },
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                        return (
                            '[La scorsa] dddd [a' +
                            (this.hours() > 1
                                ? 'lle '
                                : this.hours() === 0
                                  ? ' '
                                  : "ll'") +
                            ']LT'
                        );
                    default:
                        return (
                            '[Lo scorso] dddd [a' +
                            (this.hours() > 1
                                ? 'lle '
                                : this.hours() === 0
                                  ? ' '
                                  : "ll'") +
                            ']LT'
                        );
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'tra %s',
            past: '%s fa',
            s: 'alcuni secondi',
            ss: '%d secondi',
            m: 'un minuto',
            mm: '%d minuti',
            h: "un'ora",
            hh: '%d ore',
            d: 'un giorno',
            dd: '%d giorni',
            w: 'una settimana',
            ww: '%d settimane',
            M: 'un mese',
            MM: '%d mesi',
            y: 'un anno',
            yy: '%d anni',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return it;

})));
//! moment.js locale configuration
//! locale : Italian (Switzerland) [it-ch]
//! author : xfh : https://github.com/xfh

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var itCh = moment.defineLocale('it-ch', {
        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
            '_'
        ),
        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
            '_'
        ),
        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Oggi alle] LT',
            nextDay: '[Domani alle] LT',
            nextWeek: 'dddd [alle] LT',
            lastDay: '[Ieri alle] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[la scorsa] dddd [alle] LT';
                    default:
                        return '[lo scorso] dddd [alle] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: function (s) {
                return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
            },
            past: '%s fa',
            s: 'alcuni secondi',
            ss: '%d secondi',
            m: 'un minuto',
            mm: '%d minuti',
            h: "un'ora",
            hh: '%d ore',
            d: 'un giorno',
            dd: '%d giorni',
            M: 'un mese',
            MM: '%d mesi',
            y: 'un anno',
            yy: '%d anni',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return itCh;

})));
//! moment.js locale configuration
//! locale : Japanese [ja]
//! author : LI Long : https://github.com/baryon

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ja = moment.defineLocale('ja', {
        eras: [
            {
                since: '2019-05-01',
                offset: 1,
                name: '令和',
                narrow: '㋿',
                abbr: 'R',
            },
            {
                since: '1989-01-08',
                until: '2019-04-30',
                offset: 1,
                name: '平成',
                narrow: '㍻',
                abbr: 'H',
            },
            {
                since: '1926-12-25',
                until: '1989-01-07',
                offset: 1,
                name: '昭和',
                narrow: '㍼',
                abbr: 'S',
            },
            {
                since: '1912-07-30',
                until: '1926-12-24',
                offset: 1,
                name: '大正',
                narrow: '㍽',
                abbr: 'T',
            },
            {
                since: '1873-01-01',
                until: '1912-07-29',
                offset: 6,
                name: '明治',
                narrow: '㍾',
                abbr: 'M',
            },
            {
                since: '0001-01-01',
                until: '1873-12-31',
                offset: 1,
                name: '西暦',
                narrow: 'AD',
                abbr: 'AD',
            },
            {
                since: '0000-12-31',
                until: -Infinity,
                offset: 1,
                name: '紀元前',
                narrow: 'BC',
                abbr: 'BC',
            },
        ],
        eraYearOrdinalRegex: /(元|\d+)年/,
        eraYearOrdinalParse: function (input, match) {
            return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
        },
        months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
            '_'
        ),
        weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
        weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
        weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日 dddd HH:mm',
            l: 'YYYY/MM/DD',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日(ddd) HH:mm',
        },
        meridiemParse: /午前|午後/i,
        isPM: function (input) {
            return input === '午後';
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return '午前';
            } else {
                return '午後';
            }
        },
        calendar: {
            sameDay: '[今日] LT',
            nextDay: '[明日] LT',
            nextWeek: function (now) {
                if (now.week() !== this.week()) {
                    return '[来週]dddd LT';
                } else {
                    return 'dddd LT';
                }
            },
            lastDay: '[昨日] LT',
            lastWeek: function (now) {
                if (this.week() !== now.week()) {
                    return '[先週]dddd LT';
                } else {
                    return 'dddd LT';
                }
            },
            sameElse: 'L',
        },
        dayOfMonthOrdinalParse: /\d{1,2}日/,
        ordinal: function (number, period) {
            switch (period) {
                case 'y':
                    return number === 1 ? '元年' : number + '年';
                case 'd':
                case 'D':
                case 'DDD':
                    return number + '日';
                default:
                    return number;
            }
        },
        relativeTime: {
            future: '%s後',
            past: '%s前',
            s: '数秒',
            ss: '%d秒',
            m: '1分',
            mm: '%d分',
            h: '1時間',
            hh: '%d時間',
            d: '1日',
            dd: '%d日',
            M: '1ヶ月',
            MM: '%dヶ月',
            y: '1年',
            yy: '%d年',
        },
    });

    return ja;

})));
//! moment.js locale configuration
//! locale : Javanese [jv]
//! author : Rony Lantip : https://github.com/lantip
//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var jv = moment.defineLocale('jv', {
        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
        weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
        weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
        longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
        },
        meridiemParse: /enjing|siyang|sonten|ndalu/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'enjing') {
                return hour;
            } else if (meridiem === 'siyang') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
                return hour + 12;
            }
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours < 11) {
                return 'enjing';
            } else if (hours < 15) {
                return 'siyang';
            } else if (hours < 19) {
                return 'sonten';
            } else {
                return 'ndalu';
            }
        },
        calendar: {
            sameDay: '[Dinten puniko pukul] LT',
            nextDay: '[Mbenjang pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kala wingi pukul] LT',
            lastWeek: 'dddd [kepengker pukul] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'wonten ing %s',
            past: '%s ingkang kepengker',
            s: 'sawetawis detik',
            ss: '%d detik',
            m: 'setunggal menit',
            mm: '%d menit',
            h: 'setunggal jam',
            hh: '%d jam',
            d: 'sedinten',
            dd: '%d dinten',
            M: 'sewulan',
            MM: '%d wulan',
            y: 'setaun',
            yy: '%d taun',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return jv;

})));
//! moment.js locale configuration
//! locale : Georgian [ka]
//! author : Irakli Janiashvili : https://github.com/IrakliJani

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ka = moment.defineLocale('ka', {
        months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
            '_'
        ),
        monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
        weekdays: {
            standalone:
                'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
                    '_'
                ),
            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
                '_'
            ),
            isFormat: /(წინა|შემდეგ)/,
        },
        weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
        weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[დღეს] LT[-ზე]',
            nextDay: '[ხვალ] LT[-ზე]',
            lastDay: '[გუშინ] LT[-ზე]',
            nextWeek: '[შემდეგ] dddd LT[-ზე]',
            lastWeek: '[წინა] dddd LT-ზე',
            sameElse: 'L',
        },
        relativeTime: {
            future: function (s) {
                return s.replace(
                    /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
                    function ($0, $1, $2) {
                        return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
                    }
                );
            },
            past: function (s) {
                if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
                    return s.replace(/(ი|ე)$/, 'ის წინ');
                }
                if (/წელი/.test(s)) {
                    return s.replace(/წელი$/, 'წლის წინ');
                }
                return s;
            },
            s: 'რამდენიმე წამი',
            ss: '%d წამი',
            m: 'წუთი',
            mm: '%d წუთი',
            h: 'საათი',
            hh: '%d საათი',
            d: 'დღე',
            dd: '%d დღე',
            M: 'თვე',
            MM: '%d თვე',
            y: 'წელი',
            yy: '%d წელი',
        },
        dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
        ordinal: function (number) {
            if (number === 0) {
                return number;
            }
            if (number === 1) {
                return number + '-ლი';
            }
            if (
                number < 20 ||
                (number <= 100 && number % 20 === 0) ||
                number % 100 === 0
            ) {
                return 'მე-' + number;
            }
            return number + '-ე';
        },
        week: {
            dow: 1,
            doy: 7,
        },
    });

    return ka;

})));
//! moment.js locale configuration
//! locale : Kazakh [kk]
//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var suffixes = {
        0: '-ші',
        1: '-ші',
        2: '-ші',
        3: '-ші',
        4: '-ші',
        5: '-ші',
        6: '-шы',
        7: '-ші',
        8: '-ші',
        9: '-шы',
        10: '-шы',
        20: '-шы',
        30: '-шы',
        40: '-шы',
        50: '-ші',
        60: '-шы',
        70: '-ші',
        80: '-ші',
        90: '-шы',
        100: '-ші',
    };

    var kk = moment.defineLocale('kk', {
        months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
            '_'
        ),
        monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
        weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
            '_'
        ),
        weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
        weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Бүгін сағат] LT',
            nextDay: '[Ертең сағат] LT',
            nextWeek: 'dddd [сағат] LT',
            lastDay: '[Кеше сағат] LT',
            lastWeek: '[Өткен аптаның] dddd [сағат] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s ішінде',
            past: '%s бұрын',
            s: 'бірнеше секунд',
            ss: '%d секунд',
            m: 'бір минут',
            mm: '%d минут',
            h: 'бір сағат',
            hh: '%d сағат',
            d: 'бір күн',
            dd: '%d күн',
            M: 'бір ай',
            MM: '%d ай',
            y: 'бір жыл',
            yy: '%d жыл',
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
        ordinal: function (number) {
            var a = number % 10,
                b = number >= 100 ? 100 : null;
            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return kk;

})));
//! moment.js locale configuration
//! locale : Cambodian [km]
//! author : Kruy Vanna : https://github.com/kruyvanna

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '១',
            2: '២',
            3: '៣',
            4: '៤',
            5: '៥',
            6: '៦',
            7: '៧',
            8: '៨',
            9: '៩',
            0: '០',
        },
        numberMap = {
            '១': '1',
            '២': '2',
            '៣': '3',
            '៤': '4',
            '៥': '5',
            '៦': '6',
            '៧': '7',
            '៨': '8',
            '៩': '9',
            '០': '0',
        };

    var km = moment.defineLocale('km', {
        months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
            '_'
        ),
        monthsShort:
            'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
                '_'
            ),
        weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
        weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
        weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        meridiemParse: /ព្រឹក|ល្ងាច/,
        isPM: function (input) {
            return input === 'ល្ងាច';
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ព្រឹក';
            } else {
                return 'ល្ងាច';
            }
        },
        calendar: {
            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
            nextDay: '[ស្អែក ម៉ោង] LT',
            nextWeek: 'dddd [ម៉ោង] LT',
            lastDay: '[ម្សិលមិញ ម៉ោង] LT',
            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%sទៀត',
            past: '%sមុន',
            s: 'ប៉ុន្មានវិនាទី',
            ss: '%d វិនាទី',
            m: 'មួយនាទី',
            mm: '%d នាទី',
            h: 'មួយម៉ោង',
            hh: '%d ម៉ោង',
            d: 'មួយថ្ងៃ',
            dd: '%d ថ្ងៃ',
            M: 'មួយខែ',
            MM: '%d ខែ',
            y: 'មួយឆ្នាំ',
            yy: '%d ឆ្នាំ',
        },
        dayOfMonthOrdinalParse: /ទី\d{1,2}/,
        ordinal: 'ទី%d',
        preparse: function (string) {
            return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return km;

})));
//! moment.js locale configuration
//! locale : Kannada [kn]
//! author : Rajeev Naik : https://github.com/rajeevnaikte

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '೧',
            2: '೨',
            3: '೩',
            4: '೪',
            5: '೫',
            6: '೬',
            7: '೭',
            8: '೮',
            9: '೯',
            0: '೦',
        },
        numberMap = {
            '೧': '1',
            '೨': '2',
            '೩': '3',
            '೪': '4',
            '೫': '5',
            '೬': '6',
            '೭': '7',
            '೮': '8',
            '೯': '9',
            '೦': '0',
        };

    var kn = moment.defineLocale('kn', {
        months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
            '_'
        ),
        monthsShort:
            'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
            '_'
        ),
        weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
        weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
        longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm',
            LLLL: 'dddd, D MMMM YYYY, A h:mm',
        },
        calendar: {
            sameDay: '[ಇಂದು] LT',
            nextDay: '[ನಾಳೆ] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[ನಿನ್ನೆ] LT',
            lastWeek: '[ಕೊನೆಯ] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s ನಂತರ',
            past: '%s ಹಿಂದೆ',
            s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
            ss: '%d ಸೆಕೆಂಡುಗಳು',
            m: 'ಒಂದು ನಿಮಿಷ',
            mm: '%d ನಿಮಿಷ',
            h: 'ಒಂದು ಗಂಟೆ',
            hh: '%d ಗಂಟೆ',
            d: 'ಒಂದು ದಿನ',
            dd: '%d ದಿನ',
            M: 'ಒಂದು ತಿಂಗಳು',
            MM: '%d ತಿಂಗಳು',
            y: 'ಒಂದು ವರ್ಷ',
            yy: '%d ವರ್ಷ',
        },
        preparse: function (string) {
            return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'ರಾತ್ರಿ') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
                return hour;
            } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
                return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'ಸಂಜೆ') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'ರಾತ್ರಿ';
            } else if (hour < 10) {
                return 'ಬೆಳಿಗ್ಗೆ';
            } else if (hour < 17) {
                return 'ಮಧ್ಯಾಹ್ನ';
            } else if (hour < 20) {
                return 'ಸಂಜೆ';
            } else {
                return 'ರಾತ್ರಿ';
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
        ordinal: function (number) {
            return number + 'ನೇ';
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return kn;

})));
//! moment.js locale configuration
//! locale : Korean [ko]
//! author : Kyungwook, Park : https://github.com/kyungw00k
//! author : Jeeeyul Lee <jeeeyul@gmail.com>

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ko = moment.defineLocale('ko', {
        months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
        monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
            '_'
        ),
        weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
        weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
        weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
        longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'YYYY.MM.DD.',
            LL: 'YYYY년 MMMM D일',
            LLL: 'YYYY년 MMMM D일 A h:mm',
            LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
            l: 'YYYY.MM.DD.',
            ll: 'YYYY년 MMMM D일',
            lll: 'YYYY년 MMMM D일 A h:mm',
            llll: 'YYYY년 MMMM D일 dddd A h:mm',
        },
        calendar: {
            sameDay: '오늘 LT',
            nextDay: '내일 LT',
            nextWeek: 'dddd LT',
            lastDay: '어제 LT',
            lastWeek: '지난주 dddd LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s 후',
            past: '%s 전',
            s: '몇 초',
            ss: '%d초',
            m: '1분',
            mm: '%d분',
            h: '한 시간',
            hh: '%d시간',
            d: '하루',
            dd: '%d일',
            M: '한 달',
            MM: '%d달',
            y: '일 년',
            yy: '%d년',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'DDD':
                    return number + '일';
                case 'M':
                    return number + '월';
                case 'w':
                case 'W':
                    return number + '주';
                default:
                    return number;
            }
        },
        meridiemParse: /오전|오후/,
        isPM: function (token) {
            return token === '오후';
        },
        meridiem: function (hour, minute, isUpper) {
            return hour < 12 ? '오전' : '오후';
        },
    });

    return ko;

})));
//! moment.js locale configuration
//! locale : Kurdish [ku]
//! author : Shahram Mebashar : https://github.com/ShahramMebashar

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '١',
            2: '٢',
            3: '٣',
            4: '٤',
            5: '٥',
            6: '٦',
            7: '٧',
            8: '٨',
            9: '٩',
            0: '٠',
        },
        numberMap = {
            '١': '1',
            '٢': '2',
            '٣': '3',
            '٤': '4',
            '٥': '5',
            '٦': '6',
            '٧': '7',
            '٨': '8',
            '٩': '9',
            '٠': '0',
        },
        months = [
            'کانونی دووەم',
            'شوبات',
            'ئازار',
            'نیسان',
            'ئایار',
            'حوزەیران',
            'تەمموز',
            'ئاب',
            'ئەیلوول',
            'تشرینی یەكەم',
            'تشرینی دووەم',
            'كانونی یەکەم',
        ];

    var ku = moment.defineLocale('ku', {
        months: months,
        monthsShort: months,
        weekdays:
            'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
                '_'
            ),
        weekdaysShort:
            'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
        weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        meridiemParse: /ئێواره‌|به‌یانی/,
        isPM: function (input) {
            return /ئێواره‌/.test(input);
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'به‌یانی';
            } else {
                return 'ئێواره‌';
            }
        },
        calendar: {
            sameDay: '[ئه‌مرۆ كاتژمێر] LT',
            nextDay: '[به‌یانی كاتژمێر] LT',
            nextWeek: 'dddd [كاتژمێر] LT',
            lastDay: '[دوێنێ كاتژمێر] LT',
            lastWeek: 'dddd [كاتژمێر] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'له‌ %s',
            past: '%s',
            s: 'چه‌ند چركه‌یه‌ك',
            ss: 'چركه‌ %d',
            m: 'یه‌ك خوله‌ك',
            mm: '%d خوله‌ك',
            h: 'یه‌ك كاتژمێر',
            hh: '%d كاتژمێر',
            d: 'یه‌ك ڕۆژ',
            dd: '%d ڕۆژ',
            M: 'یه‌ك مانگ',
            MM: '%d مانگ',
            y: 'یه‌ك ساڵ',
            yy: '%d ساڵ',
        },
        preparse: function (string) {
            return string
                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
                    return numberMap[match];
                })
                .replace(/،/g, ',');
        },
        postformat: function (string) {
            return string
                .replace(/\d/g, function (match) {
                    return symbolMap[match];
                })
                .replace(/,/g, '،');
        },
        week: {
            dow: 6, // Saturday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return ku;

})));
//! moment.js locale configuration
//! locale : Northern Kurdish [ku-kmr]
//! authors : Mazlum Özdogan : https://github.com/mergehez

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(num, withoutSuffix, key, isFuture) {
        var format = {
            s: ['çend sanîye', 'çend sanîyeyan'],
            ss: [num + ' sanîye', num + ' sanîyeyan'],
            m: ['deqîqeyek', 'deqîqeyekê'],
            mm: [num + ' deqîqe', num + ' deqîqeyan'],
            h: ['saetek', 'saetekê'],
            hh: [num + ' saet', num + ' saetan'],
            d: ['rojek', 'rojekê'],
            dd: [num + ' roj', num + ' rojan'],
            w: ['hefteyek', 'hefteyekê'],
            ww: [num + ' hefte', num + ' hefteyan'],
            M: ['mehek', 'mehekê'],
            MM: [num + ' meh', num + ' mehan'],
            y: ['salek', 'salekê'],
            yy: [num + ' sal', num + ' salan'],
        };
        return withoutSuffix ? format[key][0] : format[key][1];
    }
    // function obliqueNumSuffix(num) {
    //     if(num.includes(':'))
    //         num = parseInt(num.split(':')[0]);
    //     else
    //         num = parseInt(num);
    //     return num == 0 || num % 10 == 1 ? 'ê'
    //                         : (num > 10 && num % 10 == 0 ? 'î' : 'an');
    // }
    function ezafeNumSuffix(num) {
        num = '' + num;
        var l = num.substring(num.length - 1),
            ll = num.length > 1 ? num.substring(num.length - 2) : '';
        if (
            !(ll == 12 || ll == 13) &&
            (l == '2' || l == '3' || ll == '50' || l == '70' || l == '80')
        )
            return 'yê';
        return 'ê';
    }

    var kuKmr = moment.defineLocale('ku-kmr', {
        // According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation)
        // this should be: 'Kanûna Paşîn_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Çirîya Pêşîn_Çirîya Paşîn_Kanûna Pêşîn'
        // But the names below are more well known and handy
        months: 'Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar'.split(
            '_'
        ),
        monthsShort: 'Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber'.split('_'),
        monthsParseExact: true,
        weekdays: 'Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî'.split('_'),
        weekdaysShort: 'Yek_Du_Sê_Çar_Pên_În_Şem'.split('_'),
        weekdaysMin: 'Ye_Du_Sê_Ça_Pê_În_Şe'.split('_'),
        meridiem: function (hours, minutes, isLower) {
            if (hours < 12) {
                return isLower ? 'bn' : 'BN';
            } else {
                return isLower ? 'pn' : 'PN';
            }
        },
        meridiemParse: /bn|BN|pn|PN/,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'Do MMMM[a] YYYY[an]',
            LLL: 'Do MMMM[a] YYYY[an] HH:mm',
            LLLL: 'dddd, Do MMMM[a] YYYY[an] HH:mm',
            ll: 'Do MMM[.] YYYY[an]',
            lll: 'Do MMM[.] YYYY[an] HH:mm',
            llll: 'ddd[.], Do MMM[.] YYYY[an] HH:mm',
        },
        calendar: {
            sameDay: '[Îro di saet] LT [de]',
            nextDay: '[Sibê di saet] LT [de]',
            nextWeek: 'dddd [di saet] LT [de]',
            lastDay: '[Duh di saet] LT [de]',
            lastWeek: 'dddd[a borî di saet] LT [de]',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'di %s de',
            past: 'berî %s',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            w: processRelativeTime,
            ww: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}(?:yê|ê|\.)/,
        ordinal: function (num, period) {
            var p = period.toLowerCase();
            if (p.includes('w') || p.includes('m')) return num + '.';

            return num + ezafeNumSuffix(num);
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return kuKmr;

})));
//! moment.js locale configuration
//! locale : Kyrgyz [ky]
//! author : Chyngyz Arystan uulu : https://github.com/chyngyz

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var suffixes = {
        0: '-чү',
        1: '-чи',
        2: '-чи',
        3: '-чү',
        4: '-чү',
        5: '-чи',
        6: '-чы',
        7: '-чи',
        8: '-чи',
        9: '-чу',
        10: '-чу',
        20: '-чы',
        30: '-чу',
        40: '-чы',
        50: '-чү',
        60: '-чы',
        70: '-чи',
        80: '-чи',
        90: '-чу',
        100: '-чү',
    };

    var ky = moment.defineLocale('ky', {
        months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
            '_'
        ),
        monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
            '_'
        ),
        weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
            '_'
        ),
        weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
        weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Бүгүн саат] LT',
            nextDay: '[Эртең саат] LT',
            nextWeek: 'dddd [саат] LT',
            lastDay: '[Кечээ саат] LT',
            lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s ичинде',
            past: '%s мурун',
            s: 'бирнече секунд',
            ss: '%d секунд',
            m: 'бир мүнөт',
            mm: '%d мүнөт',
            h: 'бир саат',
            hh: '%d саат',
            d: 'бир күн',
            dd: '%d күн',
            M: 'бир ай',
            MM: '%d ай',
            y: 'бир жыл',
            yy: '%d жыл',
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
        ordinal: function (number) {
            var a = number % 10,
                b = number >= 100 ? 100 : null;
            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return ky;

})));
//! moment.js locale configuration
//! locale : Luxembourgish [lb]
//! author : mweimerskirch : https://github.com/mweimerskirch
//! author : David Raison : https://github.com/kwisatz

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            m: ['eng Minutt', 'enger Minutt'],
            h: ['eng Stonn', 'enger Stonn'],
            d: ['een Dag', 'engem Dag'],
            M: ['ee Mount', 'engem Mount'],
            y: ['ee Joer', 'engem Joer'],
        };
        return withoutSuffix ? format[key][0] : format[key][1];
    }
    function processFutureTime(string) {
        var number = string.substr(0, string.indexOf(' '));
        if (eifelerRegelAppliesToNumber(number)) {
            return 'a ' + string;
        }
        return 'an ' + string;
    }
    function processPastTime(string) {
        var number = string.substr(0, string.indexOf(' '));
        if (eifelerRegelAppliesToNumber(number)) {
            return 'viru ' + string;
        }
        return 'virun ' + string;
    }
    /**
     * Returns true if the word before the given number loses the '-n' ending.
     * e.g. 'an 10 Deeg' but 'a 5 Deeg'
     *
     * @param number {integer}
     * @returns {boolean}
     */
    function eifelerRegelAppliesToNumber(number) {
        number = parseInt(number, 10);
        if (isNaN(number)) {
            return false;
        }
        if (number < 0) {
            // Negative Number --> always true
            return true;
        } else if (number < 10) {
            // Only 1 digit
            if (4 <= number && number <= 7) {
                return true;
            }
            return false;
        } else if (number < 100) {
            // 2 digits
            var lastDigit = number % 10,
                firstDigit = number / 10;
            if (lastDigit === 0) {
                return eifelerRegelAppliesToNumber(firstDigit);
            }
            return eifelerRegelAppliesToNumber(lastDigit);
        } else if (number < 10000) {
            // 3 or 4 digits --> recursively check first digit
            while (number >= 10) {
                number = number / 10;
            }
            return eifelerRegelAppliesToNumber(number);
        } else {
            // Anything larger than 4 digits: recursively check first n-3 digits
            number = number / 1000;
            return eifelerRegelAppliesToNumber(number);
        }
    }

    var lb = moment.defineLocale('lb', {
        months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
            '_'
        ),
        monthsShort:
            'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays:
            'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
                '_'
            ),
        weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
        weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm [Auer]',
            LTS: 'H:mm:ss [Auer]',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm [Auer]',
            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
        },
        calendar: {
            sameDay: '[Haut um] LT',
            sameElse: 'L',
            nextDay: '[Muer um] LT',
            nextWeek: 'dddd [um] LT',
            lastDay: '[Gëschter um] LT',
            lastWeek: function () {
                // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
                switch (this.day()) {
                    case 2:
                    case 4:
                        return '[Leschten] dddd [um] LT';
                    default:
                        return '[Leschte] dddd [um] LT';
                }
            },
        },
        relativeTime: {
            future: processFutureTime,
            past: processPastTime,
            s: 'e puer Sekonnen',
            ss: '%d Sekonnen',
            m: processRelativeTime,
            mm: '%d Minutten',
            h: processRelativeTime,
            hh: '%d Stonnen',
            d: processRelativeTime,
            dd: '%d Deeg',
            M: processRelativeTime,
            MM: '%d Méint',
            y: processRelativeTime,
            yy: '%d Joer',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return lb;

})));
//! moment.js locale configuration
//! locale : Lao [lo]
//! author : Ryan Hart : https://github.com/ryanhart2

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var lo = moment.defineLocale('lo', {
        months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
            '_'
        ),
        monthsShort:
            'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
                '_'
            ),
        weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
        weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
        weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
        },
        meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
        isPM: function (input) {
            return input === 'ຕອນແລງ';
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ຕອນເຊົ້າ';
            } else {
                return 'ຕອນແລງ';
            }
        },
        calendar: {
            sameDay: '[ມື້ນີ້ເວລາ] LT',
            nextDay: '[ມື້ອື່ນເວລາ] LT',
            nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
            lastDay: '[ມື້ວານນີ້ເວລາ] LT',
            lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'ອີກ %s',
            past: '%sຜ່ານມາ',
            s: 'ບໍ່ເທົ່າໃດວິນາທີ',
            ss: '%d ວິນາທີ',
            m: '1 ນາທີ',
            mm: '%d ນາທີ',
            h: '1 ຊົ່ວໂມງ',
            hh: '%d ຊົ່ວໂມງ',
            d: '1 ມື້',
            dd: '%d ມື້',
            M: '1 ເດືອນ',
            MM: '%d ເດືອນ',
            y: '1 ປີ',
            yy: '%d ປີ',
        },
        dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
        ordinal: function (number) {
            return 'ທີ່' + number;
        },
    });

    return lo;

})));
//! moment.js locale configuration
//! locale : Lithuanian [lt]
//! author : Mindaugas Mozūras : https://github.com/mmozuras

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var units = {
        ss: 'sekundė_sekundžių_sekundes',
        m: 'minutė_minutės_minutę',
        mm: 'minutės_minučių_minutes',
        h: 'valanda_valandos_valandą',
        hh: 'valandos_valandų_valandas',
        d: 'diena_dienos_dieną',
        dd: 'dienos_dienų_dienas',
        M: 'mėnuo_mėnesio_mėnesį',
        MM: 'mėnesiai_mėnesių_mėnesius',
        y: 'metai_metų_metus',
        yy: 'metai_metų_metus',
    };
    function translateSeconds(number, withoutSuffix, key, isFuture) {
        if (withoutSuffix) {
            return 'kelios sekundės';
        } else {
            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
        }
    }
    function translateSingular(number, withoutSuffix, key, isFuture) {
        return withoutSuffix
            ? forms(key)[0]
            : isFuture
              ? forms(key)[1]
              : forms(key)[2];
    }
    function special(number) {
        return number % 10 === 0 || (number > 10 && number < 20);
    }
    function forms(key) {
        return units[key].split('_');
    }
    function translate(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        if (number === 1) {
            return (
                result + translateSingular(number, withoutSuffix, key[0], isFuture)
            );
        } else if (withoutSuffix) {
            return result + (special(number) ? forms(key)[1] : forms(key)[0]);
        } else {
            if (isFuture) {
                return result + forms(key)[1];
            } else {
                return result + (special(number) ? forms(key)[1] : forms(key)[2]);
            }
        }
    }
    var lt = moment.defineLocale('lt', {
        months: {
            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
                '_'
            ),
            standalone:
                'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
                    '_'
                ),
            isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
        },
        monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
        weekdays: {
            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
                '_'
            ),
            standalone:
                'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
                    '_'
                ),
            isFormat: /dddd HH:mm/,
        },
        weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
        weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY [m.] MMMM D [d.]',
            LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
            LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
            l: 'YYYY-MM-DD',
            ll: 'YYYY [m.] MMMM D [d.]',
            lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
            llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
        },
        calendar: {
            sameDay: '[Šiandien] LT',
            nextDay: '[Rytoj] LT',
            nextWeek: 'dddd LT',
            lastDay: '[Vakar] LT',
            lastWeek: '[Praėjusį] dddd LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'po %s',
            past: 'prieš %s',
            s: translateSeconds,
            ss: translate,
            m: translateSingular,
            mm: translate,
            h: translateSingular,
            hh: translate,
            d: translateSingular,
            dd: translate,
            M: translateSingular,
            MM: translate,
            y: translateSingular,
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}-oji/,
        ordinal: function (number) {
            return number + '-oji';
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return lt;

})));
//! moment.js locale configuration
//! locale : Latvian [lv]
//! author : Kristaps Karlsons : https://github.com/skakri
//! author : Jānis Elmeris : https://github.com/JanisE

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var units = {
        ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
        m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
        mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
        h: 'stundas_stundām_stunda_stundas'.split('_'),
        hh: 'stundas_stundām_stunda_stundas'.split('_'),
        d: 'dienas_dienām_diena_dienas'.split('_'),
        dd: 'dienas_dienām_diena_dienas'.split('_'),
        M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
        MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
        y: 'gada_gadiem_gads_gadi'.split('_'),
        yy: 'gada_gadiem_gads_gadi'.split('_'),
    };
    /**
     * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
     */
    function format(forms, number, withoutSuffix) {
        if (withoutSuffix) {
            // E.g. "21 minūte", "3 minūtes".
            return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
        } else {
            // E.g. "21 minūtes" as in "pēc 21 minūtes".
            // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
            return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
        }
    }
    function relativeTimeWithPlural(number, withoutSuffix, key) {
        return number + ' ' + format(units[key], number, withoutSuffix);
    }
    function relativeTimeWithSingular(number, withoutSuffix, key) {
        return format(units[key], number, withoutSuffix);
    }
    function relativeSeconds(number, withoutSuffix) {
        return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
    }

    var lv = moment.defineLocale('lv', {
        months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
            '_'
        ),
        monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
        weekdays:
            'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
                '_'
            ),
        weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
        weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY.',
            LL: 'YYYY. [gada] D. MMMM',
            LLL: 'YYYY. [gada] D. MMMM, HH:mm',
            LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
        },
        calendar: {
            sameDay: '[Šodien pulksten] LT',
            nextDay: '[Rīt pulksten] LT',
            nextWeek: 'dddd [pulksten] LT',
            lastDay: '[Vakar pulksten] LT',
            lastWeek: '[Pagājušā] dddd [pulksten] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'pēc %s',
            past: 'pirms %s',
            s: relativeSeconds,
            ss: relativeTimeWithPlural,
            m: relativeTimeWithSingular,
            mm: relativeTimeWithPlural,
            h: relativeTimeWithSingular,
            hh: relativeTimeWithPlural,
            d: relativeTimeWithSingular,
            dd: relativeTimeWithPlural,
            M: relativeTimeWithSingular,
            MM: relativeTimeWithPlural,
            y: relativeTimeWithSingular,
            yy: relativeTimeWithPlural,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return lv;

})));
//! moment.js locale configuration
//! locale : Montenegrin [me]
//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var translator = {
        words: {
            //Different grammatical cases
            ss: ['sekund', 'sekunda', 'sekundi'],
            m: ['jedan minut', 'jednog minuta'],
            mm: ['minut', 'minuta', 'minuta'],
            h: ['jedan sat', 'jednog sata'],
            hh: ['sat', 'sata', 'sati'],
            dd: ['dan', 'dana', 'dana'],
            MM: ['mjesec', 'mjeseca', 'mjeseci'],
            yy: ['godina', 'godine', 'godina'],
        },
        correctGrammaticalCase: function (number, wordKey) {
            return number === 1
                ? wordKey[0]
                : number >= 2 && number <= 4
                  ? wordKey[1]
                  : wordKey[2];
        },
        translate: function (number, withoutSuffix, key) {
            var wordKey = translator.words[key];
            if (key.length === 1) {
                return withoutSuffix ? wordKey[0] : wordKey[1];
            } else {
                return (
                    number +
                    ' ' +
                    translator.correctGrammaticalCase(number, wordKey)
                );
            }
        },
    };

    var me = moment.defineLocale('me', {
        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
            '_'
        ),
        monthsShort:
            'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
        monthsParseExact: true,
        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
            '_'
        ),
        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sjutra u] LT',

            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[u] [nedjelju] [u] LT';
                    case 3:
                        return '[u] [srijedu] [u] LT';
                    case 6:
                        return '[u] [subotu] [u] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[u] dddd [u] LT';
                }
            },
            lastDay: '[juče u] LT',
            lastWeek: function () {
                var lastWeekDays = [
                    '[prošle] [nedjelje] [u] LT',
                    '[prošlog] [ponedjeljka] [u] LT',
                    '[prošlog] [utorka] [u] LT',
                    '[prošle] [srijede] [u] LT',
                    '[prošlog] [četvrtka] [u] LT',
                    '[prošlog] [petka] [u] LT',
                    '[prošle] [subote] [u] LT',
                ];
                return lastWeekDays[this.day()];
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'za %s',
            past: 'prije %s',
            s: 'nekoliko sekundi',
            ss: translator.translate,
            m: translator.translate,
            mm: translator.translate,
            h: translator.translate,
            hh: translator.translate,
            d: 'dan',
            dd: translator.translate,
            M: 'mjesec',
            MM: translator.translate,
            y: 'godinu',
            yy: translator.translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return me;

})));
//! moment.js locale configuration
//! locale : Maori [mi]
//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var mi = moment.defineLocale('mi', {
        months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
            '_'
        ),
        monthsShort:
            'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
                '_'
            ),
        monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
        monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
        monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
        monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
        weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
        weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
        weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [i] HH:mm',
            LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
        },
        calendar: {
            sameDay: '[i teie mahana, i] LT',
            nextDay: '[apopo i] LT',
            nextWeek: 'dddd [i] LT',
            lastDay: '[inanahi i] LT',
            lastWeek: 'dddd [whakamutunga i] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'i roto i %s',
            past: '%s i mua',
            s: 'te hēkona ruarua',
            ss: '%d hēkona',
            m: 'he meneti',
            mm: '%d meneti',
            h: 'te haora',
            hh: '%d haora',
            d: 'he ra',
            dd: '%d ra',
            M: 'he marama',
            MM: '%d marama',
            y: 'he tau',
            yy: '%d tau',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return mi;

})));
//! moment.js locale configuration
//! locale : Macedonian [mk]
//! author : Borislav Mickov : https://github.com/B0k0
//! author : Sashko Todorov : https://github.com/bkyceh

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var mk = moment.defineLocale('mk', {
        months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
            '_'
        ),
        monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
        weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
            '_'
        ),
        weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
        weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY H:mm',
            LLLL: 'dddd, D MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[Денес во] LT',
            nextDay: '[Утре во] LT',
            nextWeek: '[Во] dddd [во] LT',
            lastDay: '[Вчера во] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                    case 3:
                    case 6:
                        return '[Изминатата] dddd [во] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[Изминатиот] dddd [во] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'за %s',
            past: 'пред %s',
            s: 'неколку секунди',
            ss: '%d секунди',
            m: 'една минута',
            mm: '%d минути',
            h: 'еден час',
            hh: '%d часа',
            d: 'еден ден',
            dd: '%d дена',
            M: 'еден месец',
            MM: '%d месеци',
            y: 'една година',
            yy: '%d години',
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
        ordinal: function (number) {
            var lastDigit = number % 10,
                last2Digits = number % 100;
            if (number === 0) {
                return number + '-ев';
            } else if (last2Digits === 0) {
                return number + '-ен';
            } else if (last2Digits > 10 && last2Digits < 20) {
                return number + '-ти';
            } else if (lastDigit === 1) {
                return number + '-ви';
            } else if (lastDigit === 2) {
                return number + '-ри';
            } else if (lastDigit === 7 || lastDigit === 8) {
                return number + '-ми';
            } else {
                return number + '-ти';
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return mk;

})));
//! moment.js locale configuration
//! locale : Malayalam [ml]
//! author : Floyd Pink : https://github.com/floydpink

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ml = moment.defineLocale('ml', {
        months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
            '_'
        ),
        monthsShort:
            'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays:
            'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
                '_'
            ),
        weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
        weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
        longDateFormat: {
            LT: 'A h:mm -നു',
            LTS: 'A h:mm:ss -നു',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm -നു',
            LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
        },
        calendar: {
            sameDay: '[ഇന്ന്] LT',
            nextDay: '[നാളെ] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[ഇന്നലെ] LT',
            lastWeek: '[കഴിഞ്ഞ] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s കഴിഞ്ഞ്',
            past: '%s മുൻപ്',
            s: 'അൽപ നിമിഷങ്ങൾ',
            ss: '%d സെക്കൻഡ്',
            m: 'ഒരു മിനിറ്റ്',
            mm: '%d മിനിറ്റ്',
            h: 'ഒരു മണിക്കൂർ',
            hh: '%d മണിക്കൂർ',
            d: 'ഒരു ദിവസം',
            dd: '%d ദിവസം',
            M: 'ഒരു മാസം',
            MM: '%d മാസം',
            y: 'ഒരു വർഷം',
            yy: '%d വർഷം',
        },
        meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (
                (meridiem === 'രാത്രി' && hour >= 4) ||
                meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
                meridiem === 'വൈകുന്നേരം'
            ) {
                return hour + 12;
            } else {
                return hour;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'രാത്രി';
            } else if (hour < 12) {
                return 'രാവിലെ';
            } else if (hour < 17) {
                return 'ഉച്ച കഴിഞ്ഞ്';
            } else if (hour < 20) {
                return 'വൈകുന്നേരം';
            } else {
                return 'രാത്രി';
            }
        },
    });

    return ml;

})));
//! moment.js locale configuration
//! locale : Mongolian [mn]
//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function translate(number, withoutSuffix, key, isFuture) {
        switch (key) {
            case 's':
                return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
            case 'ss':
                return number + (withoutSuffix ? ' секунд' : ' секундын');
            case 'm':
            case 'mm':
                return number + (withoutSuffix ? ' минут' : ' минутын');
            case 'h':
            case 'hh':
                return number + (withoutSuffix ? ' цаг' : ' цагийн');
            case 'd':
            case 'dd':
                return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
            case 'M':
            case 'MM':
                return number + (withoutSuffix ? ' сар' : ' сарын');
            case 'y':
            case 'yy':
                return number + (withoutSuffix ? ' жил' : ' жилийн');
            default:
                return number;
        }
    }

    var mn = moment.defineLocale('mn', {
        months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
            '_'
        ),
        monthsShort:
            '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
        weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
        weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY оны MMMMын D',
            LLL: 'YYYY оны MMMMын D HH:mm',
            LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
        },
        meridiemParse: /ҮӨ|ҮХ/i,
        isPM: function (input) {
            return input === 'ҮХ';
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ҮӨ';
            } else {
                return 'ҮХ';
            }
        },
        calendar: {
            sameDay: '[Өнөөдөр] LT',
            nextDay: '[Маргааш] LT',
            nextWeek: '[Ирэх] dddd LT',
            lastDay: '[Өчигдөр] LT',
            lastWeek: '[Өнгөрсөн] dddd LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s дараа',
            past: '%s өмнө',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'DDD':
                    return number + ' өдөр';
                default:
                    return number;
            }
        },
    });

    return mn;

})));
//! moment.js locale configuration
//! locale : Marathi [mr]
//! author : Harshad Kale : https://github.com/kalehv
//! author : Vivek Athalye : https://github.com/vnathalye

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '१',
            2: '२',
            3: '३',
            4: '४',
            5: '५',
            6: '६',
            7: '७',
            8: '८',
            9: '९',
            0: '०',
        },
        numberMap = {
            '१': '1',
            '२': '2',
            '३': '3',
            '४': '4',
            '५': '5',
            '६': '6',
            '७': '7',
            '८': '8',
            '९': '9',
            '०': '0',
        };

    function relativeTimeMr(number, withoutSuffix, string, isFuture) {
        var output = '';
        if (withoutSuffix) {
            switch (string) {
                case 's':
                    output = 'काही सेकंद';
                    break;
                case 'ss':
                    output = '%d सेकंद';
                    break;
                case 'm':
                    output = 'एक मिनिट';
                    break;
                case 'mm':
                    output = '%d मिनिटे';
                    break;
                case 'h':
                    output = 'एक तास';
                    break;
                case 'hh':
                    output = '%d तास';
                    break;
                case 'd':
                    output = 'एक दिवस';
                    break;
                case 'dd':
                    output = '%d दिवस';
                    break;
                case 'M':
                    output = 'एक महिना';
                    break;
                case 'MM':
                    output = '%d महिने';
                    break;
                case 'y':
                    output = 'एक वर्ष';
                    break;
                case 'yy':
                    output = '%d वर्षे';
                    break;
            }
        } else {
            switch (string) {
                case 's':
                    output = 'काही सेकंदां';
                    break;
                case 'ss':
                    output = '%d सेकंदां';
                    break;
                case 'm':
                    output = 'एका मिनिटा';
                    break;
                case 'mm':
                    output = '%d मिनिटां';
                    break;
                case 'h':
                    output = 'एका तासा';
                    break;
                case 'hh':
                    output = '%d तासां';
                    break;
                case 'd':
                    output = 'एका दिवसा';
                    break;
                case 'dd':
                    output = '%d दिवसां';
                    break;
                case 'M':
                    output = 'एका महिन्या';
                    break;
                case 'MM':
                    output = '%d महिन्यां';
                    break;
                case 'y':
                    output = 'एका वर्षा';
                    break;
                case 'yy':
                    output = '%d वर्षां';
                    break;
            }
        }
        return output.replace(/%d/i, number);
    }

    var mr = moment.defineLocale('mr', {
        months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
            '_'
        ),
        monthsShort:
            'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
        weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
        longDateFormat: {
            LT: 'A h:mm वाजता',
            LTS: 'A h:mm:ss वाजता',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm वाजता',
            LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
        },
        calendar: {
            sameDay: '[आज] LT',
            nextDay: '[उद्या] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[काल] LT',
            lastWeek: '[मागील] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%sमध्ये',
            past: '%sपूर्वी',
            s: relativeTimeMr,
            ss: relativeTimeMr,
            m: relativeTimeMr,
            mm: relativeTimeMr,
            h: relativeTimeMr,
            hh: relativeTimeMr,
            d: relativeTimeMr,
            dd: relativeTimeMr,
            M: relativeTimeMr,
            MM: relativeTimeMr,
            y: relativeTimeMr,
            yy: relativeTimeMr,
        },
        preparse: function (string) {
            return string.replace(/[१२३४५६७८९०]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
                return hour;
            } else if (
                meridiem === 'दुपारी' ||
                meridiem === 'सायंकाळी' ||
                meridiem === 'रात्री'
            ) {
                return hour >= 12 ? hour : hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour >= 0 && hour < 6) {
                return 'पहाटे';
            } else if (hour < 12) {
                return 'सकाळी';
            } else if (hour < 17) {
                return 'दुपारी';
            } else if (hour < 20) {
                return 'सायंकाळी';
            } else {
                return 'रात्री';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return mr;

})));
//! moment.js locale configuration
//! locale : Malay [ms]
//! author : Weldan Jamili : https://github.com/weldan

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ms = moment.defineLocale('ms', {
        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
        longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
        },
        meridiemParse: /pagi|tengahari|petang|malam/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'pagi') {
                return hour;
            } else if (meridiem === 'tengahari') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'petang' || meridiem === 'malam') {
                return hour + 12;
            }
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours < 11) {
                return 'pagi';
            } else if (hours < 15) {
                return 'tengahari';
            } else if (hours < 19) {
                return 'petang';
            } else {
                return 'malam';
            }
        },
        calendar: {
            sameDay: '[Hari ini pukul] LT',
            nextDay: '[Esok pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kelmarin pukul] LT',
            lastWeek: 'dddd [lepas pukul] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'dalam %s',
            past: '%s yang lepas',
            s: 'beberapa saat',
            ss: '%d saat',
            m: 'seminit',
            mm: '%d minit',
            h: 'sejam',
            hh: '%d jam',
            d: 'sehari',
            dd: '%d hari',
            M: 'sebulan',
            MM: '%d bulan',
            y: 'setahun',
            yy: '%d tahun',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return ms;

})));
//! moment.js locale configuration
//! locale : Malay [ms-my]
//! note : DEPRECATED, the correct one is [ms]
//! author : Weldan Jamili : https://github.com/weldan

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var msMy = moment.defineLocale('ms-my', {
        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
        longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
        },
        meridiemParse: /pagi|tengahari|petang|malam/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'pagi') {
                return hour;
            } else if (meridiem === 'tengahari') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'petang' || meridiem === 'malam') {
                return hour + 12;
            }
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours < 11) {
                return 'pagi';
            } else if (hours < 15) {
                return 'tengahari';
            } else if (hours < 19) {
                return 'petang';
            } else {
                return 'malam';
            }
        },
        calendar: {
            sameDay: '[Hari ini pukul] LT',
            nextDay: '[Esok pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kelmarin pukul] LT',
            lastWeek: 'dddd [lepas pukul] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'dalam %s',
            past: '%s yang lepas',
            s: 'beberapa saat',
            ss: '%d saat',
            m: 'seminit',
            mm: '%d minit',
            h: 'sejam',
            hh: '%d jam',
            d: 'sehari',
            dd: '%d hari',
            M: 'sebulan',
            MM: '%d bulan',
            y: 'setahun',
            yy: '%d tahun',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return msMy;

})));
//! moment.js locale configuration
//! locale : Maltese (Malta) [mt]
//! author : Alessandro Maruccia : https://github.com/alesma

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var mt = moment.defineLocale('mt', {
        months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
            '_'
        ),
        monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
        weekdays:
            'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
                '_'
            ),
        weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
        weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Illum fil-]LT',
            nextDay: '[Għada fil-]LT',
            nextWeek: 'dddd [fil-]LT',
            lastDay: '[Il-bieraħ fil-]LT',
            lastWeek: 'dddd [li għadda] [fil-]LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'f’ %s',
            past: '%s ilu',
            s: 'ftit sekondi',
            ss: '%d sekondi',
            m: 'minuta',
            mm: '%d minuti',
            h: 'siegħa',
            hh: '%d siegħat',
            d: 'ġurnata',
            dd: '%d ġranet',
            M: 'xahar',
            MM: '%d xhur',
            y: 'sena',
            yy: '%d sni',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return mt;

})));
//! moment.js locale configuration
//! locale : Burmese [my]
//! author : Squar team, mysquar.com
//! author : David Rossellat : https://github.com/gholadr
//! author : Tin Aung Lin : https://github.com/thanyawzinmin

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '၁',
            2: '၂',
            3: '၃',
            4: '၄',
            5: '၅',
            6: '၆',
            7: '၇',
            8: '၈',
            9: '၉',
            0: '၀',
        },
        numberMap = {
            '၁': '1',
            '၂': '2',
            '၃': '3',
            '၄': '4',
            '၅': '5',
            '၆': '6',
            '၇': '7',
            '၈': '8',
            '၉': '9',
            '၀': '0',
        };

    var my = moment.defineLocale('my', {
        months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
            '_'
        ),
        monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
        weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
            '_'
        ),
        weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
        weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),

        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[ယနေ.] LT [မှာ]',
            nextDay: '[မနက်ဖြန်] LT [မှာ]',
            nextWeek: 'dddd LT [မှာ]',
            lastDay: '[မနေ.က] LT [မှာ]',
            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'လာမည့် %s မှာ',
            past: 'လွန်ခဲ့သော %s က',
            s: 'စက္ကန်.အနည်းငယ်',
            ss: '%d စက္ကန့်',
            m: 'တစ်မိနစ်',
            mm: '%d မိနစ်',
            h: 'တစ်နာရီ',
            hh: '%d နာရီ',
            d: 'တစ်ရက်',
            dd: '%d ရက်',
            M: 'တစ်လ',
            MM: '%d လ',
            y: 'တစ်နှစ်',
            yy: '%d နှစ်',
        },
        preparse: function (string) {
            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return my;

})));
//! moment.js locale configuration
//! locale : Norwegian Bokmål [nb]
//! authors : Espen Hovlandsdal : https://github.com/rexxars
//!           Sigurd Gartmann : https://github.com/sigurdga
//!           Stephen Ramthun : https://github.com/stephenramthun

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var nb = moment.defineLocale('nb', {
        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
            '_'
        ),
        monthsShort:
            'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
        monthsParseExact: true,
        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
        weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY [kl.] HH:mm',
            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
        },
        calendar: {
            sameDay: '[i dag kl.] LT',
            nextDay: '[i morgen kl.] LT',
            nextWeek: 'dddd [kl.] LT',
            lastDay: '[i går kl.] LT',
            lastWeek: '[forrige] dddd [kl.] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'om %s',
            past: '%s siden',
            s: 'noen sekunder',
            ss: '%d sekunder',
            m: 'ett minutt',
            mm: '%d minutter',
            h: 'én time',
            hh: '%d timer',
            d: 'én dag',
            dd: '%d dager',
            w: 'én uke',
            ww: '%d uker',
            M: 'én måned',
            MM: '%d måneder',
            y: 'ett år',
            yy: '%d år',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return nb;

})));
//! moment.js locale configuration
//! locale : Nepalese [ne]
//! author : suvash : https://github.com/suvash

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '१',
            2: '२',
            3: '३',
            4: '४',
            5: '५',
            6: '६',
            7: '७',
            8: '८',
            9: '९',
            0: '०',
        },
        numberMap = {
            '१': '1',
            '२': '2',
            '३': '3',
            '४': '4',
            '५': '5',
            '६': '6',
            '७': '7',
            '८': '8',
            '९': '9',
            '०': '0',
        };

    var ne = moment.defineLocale('ne', {
        months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
            '_'
        ),
        monthsShort:
            'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
            '_'
        ),
        weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
        weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'Aको h:mm बजे',
            LTS: 'Aको h:mm:ss बजे',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, Aको h:mm बजे',
            LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
        },
        preparse: function (string) {
            return string.replace(/[१२३४५६७८९०]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'राति') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'बिहान') {
                return hour;
            } else if (meridiem === 'दिउँसो') {
                return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'साँझ') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 3) {
                return 'राति';
            } else if (hour < 12) {
                return 'बिहान';
            } else if (hour < 16) {
                return 'दिउँसो';
            } else if (hour < 20) {
                return 'साँझ';
            } else {
                return 'राति';
            }
        },
        calendar: {
            sameDay: '[आज] LT',
            nextDay: '[भोलि] LT',
            nextWeek: '[आउँदो] dddd[,] LT',
            lastDay: '[हिजो] LT',
            lastWeek: '[गएको] dddd[,] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%sमा',
            past: '%s अगाडि',
            s: 'केही क्षण',
            ss: '%d सेकेण्ड',
            m: 'एक मिनेट',
            mm: '%d मिनेट',
            h: 'एक घण्टा',
            hh: '%d घण्टा',
            d: 'एक दिन',
            dd: '%d दिन',
            M: 'एक महिना',
            MM: '%d महिना',
            y: 'एक बर्ष',
            yy: '%d बर्ष',
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return ne;

})));
//! moment.js locale configuration
//! locale : Dutch [nl]
//! author : Joris Röling : https://github.com/jorisroling
//! author : Jacob Middag : https://github.com/middagj

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsShortWithDots =
            'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
        monthsShortWithoutDots =
            'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
        monthsParse = [
            /^jan/i,
            /^feb/i,
            /^(maart|mrt\.?)$/i,
            /^apr/i,
            /^mei$/i,
            /^jun[i.]?$/i,
            /^jul[i.]?$/i,
            /^aug/i,
            /^sep/i,
            /^okt/i,
            /^nov/i,
            /^dec/i,
        ],
        monthsRegex =
            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;

    var nl = moment.defineLocale('nl', {
        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
            '_'
        ),
        monthsShort: function (m, format) {
            if (!m) {
                return monthsShortWithDots;
            } else if (/-MMM-/.test(format)) {
                return monthsShortWithoutDots[m.month()];
            } else {
                return monthsShortWithDots[m.month()];
            }
        },

        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex:
            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
        monthsShortStrictRegex:
            /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,

        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,

        weekdays:
            'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[vandaag om] LT',
            nextDay: '[morgen om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[gisteren om] LT',
            lastWeek: '[afgelopen] dddd [om] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'over %s',
            past: '%s geleden',
            s: 'een paar seconden',
            ss: '%d seconden',
            m: 'één minuut',
            mm: '%d minuten',
            h: 'één uur',
            hh: '%d uur',
            d: 'één dag',
            dd: '%d dagen',
            w: 'één week',
            ww: '%d weken',
            M: 'één maand',
            MM: '%d maanden',
            y: 'één jaar',
            yy: '%d jaar',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
        ordinal: function (number) {
            return (
                number +
                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
            );
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return nl;

})));
//! moment.js locale configuration
//! locale : Dutch (Belgium) [nl-be]
//! author : Joris Röling : https://github.com/jorisroling
//! author : Jacob Middag : https://github.com/middagj

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsShortWithDots =
            'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
        monthsShortWithoutDots =
            'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
        monthsParse = [
            /^jan/i,
            /^feb/i,
            /^(maart|mrt\.?)$/i,
            /^apr/i,
            /^mei$/i,
            /^jun[i.]?$/i,
            /^jul[i.]?$/i,
            /^aug/i,
            /^sep/i,
            /^okt/i,
            /^nov/i,
            /^dec/i,
        ],
        monthsRegex =
            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;

    var nlBe = moment.defineLocale('nl-be', {
        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
            '_'
        ),
        monthsShort: function (m, format) {
            if (!m) {
                return monthsShortWithDots;
            } else if (/-MMM-/.test(format)) {
                return monthsShortWithoutDots[m.month()];
            } else {
                return monthsShortWithDots[m.month()];
            }
        },

        monthsRegex: monthsRegex,
        monthsShortRegex: monthsRegex,
        monthsStrictRegex:
            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
        monthsShortStrictRegex:
            /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,

        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,

        weekdays:
            'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[vandaag om] LT',
            nextDay: '[morgen om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[gisteren om] LT',
            lastWeek: '[afgelopen] dddd [om] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'over %s',
            past: '%s geleden',
            s: 'een paar seconden',
            ss: '%d seconden',
            m: 'één minuut',
            mm: '%d minuten',
            h: 'één uur',
            hh: '%d uur',
            d: 'één dag',
            dd: '%d dagen',
            M: 'één maand',
            MM: '%d maanden',
            y: 'één jaar',
            yy: '%d jaar',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
        ordinal: function (number) {
            return (
                number +
                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
            );
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return nlBe;

})));
//! moment.js locale configuration
//! locale : Nynorsk [nn]
//! authors : https://github.com/mechuwind
//!           Stephen Ramthun : https://github.com/stephenramthun

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var nn = moment.defineLocale('nn', {
        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
            '_'
        ),
        monthsShort:
            'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
        monthsParseExact: true,
        weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
        weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
        weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY [kl.] H:mm',
            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
        },
        calendar: {
            sameDay: '[I dag klokka] LT',
            nextDay: '[I morgon klokka] LT',
            nextWeek: 'dddd [klokka] LT',
            lastDay: '[I går klokka] LT',
            lastWeek: '[Føregåande] dddd [klokka] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'om %s',
            past: '%s sidan',
            s: 'nokre sekund',
            ss: '%d sekund',
            m: 'eit minutt',
            mm: '%d minutt',
            h: 'ein time',
            hh: '%d timar',
            d: 'ein dag',
            dd: '%d dagar',
            w: 'ei veke',
            ww: '%d veker',
            M: 'ein månad',
            MM: '%d månader',
            y: 'eit år',
            yy: '%d år',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return nn;

})));
//! moment.js locale configuration
//! locale : Occitan, lengadocian dialecte [oc-lnc]
//! author : Quentin PAGÈS : https://github.com/Quenty31

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ocLnc = moment.defineLocale('oc-lnc', {
        months: {
            standalone:
                'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
                    '_'
                ),
            format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
                '_'
            ),
            isFormat: /D[oD]?(\s)+MMMM/,
        },
        monthsShort:
            'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
            '_'
        ),
        weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
        weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM [de] YYYY',
            ll: 'D MMM YYYY',
            LLL: 'D MMMM [de] YYYY [a] H:mm',
            lll: 'D MMM YYYY, H:mm',
            LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
            llll: 'ddd D MMM YYYY, H:mm',
        },
        calendar: {
            sameDay: '[uèi a] LT',
            nextDay: '[deman a] LT',
            nextWeek: 'dddd [a] LT',
            lastDay: '[ièr a] LT',
            lastWeek: 'dddd [passat a] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: "d'aquí %s",
            past: 'fa %s',
            s: 'unas segondas',
            ss: '%d segondas',
            m: 'una minuta',
            mm: '%d minutas',
            h: 'una ora',
            hh: '%d oras',
            d: 'un jorn',
            dd: '%d jorns',
            M: 'un mes',
            MM: '%d meses',
            y: 'un an',
            yy: '%d ans',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
        ordinal: function (number, period) {
            var output =
                number === 1
                    ? 'r'
                    : number === 2
                      ? 'n'
                      : number === 3
                        ? 'r'
                        : number === 4
                          ? 't'
                          : 'è';
            if (period === 'w' || period === 'W') {
                output = 'a';
            }
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4,
        },
    });

    return ocLnc;

})));
//! moment.js locale configuration
//! locale : Punjabi (India) [pa-in]
//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '੧',
            2: '੨',
            3: '੩',
            4: '੪',
            5: '੫',
            6: '੬',
            7: '੭',
            8: '੮',
            9: '੯',
            0: '੦',
        },
        numberMap = {
            '੧': '1',
            '੨': '2',
            '੩': '3',
            '੪': '4',
            '੫': '5',
            '੬': '6',
            '੭': '7',
            '੮': '8',
            '੯': '9',
            '੦': '0',
        };

    var paIn = moment.defineLocale('pa-in', {
        // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
        months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
            '_'
        ),
        monthsShort:
            'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
                '_'
            ),
        weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
            '_'
        ),
        weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
        weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
        longDateFormat: {
            LT: 'A h:mm ਵਜੇ',
            LTS: 'A h:mm:ss ਵਜੇ',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
            LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
        },
        calendar: {
            sameDay: '[ਅਜ] LT',
            nextDay: '[ਕਲ] LT',
            nextWeek: '[ਅਗਲਾ] dddd, LT',
            lastDay: '[ਕਲ] LT',
            lastWeek: '[ਪਿਛਲੇ] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s ਵਿੱਚ',
            past: '%s ਪਿਛਲੇ',
            s: 'ਕੁਝ ਸਕਿੰਟ',
            ss: '%d ਸਕਿੰਟ',
            m: 'ਇਕ ਮਿੰਟ',
            mm: '%d ਮਿੰਟ',
            h: 'ਇੱਕ ਘੰਟਾ',
            hh: '%d ਘੰਟੇ',
            d: 'ਇੱਕ ਦਿਨ',
            dd: '%d ਦਿਨ',
            M: 'ਇੱਕ ਮਹੀਨਾ',
            MM: '%d ਮਹੀਨੇ',
            y: 'ਇੱਕ ਸਾਲ',
            yy: '%d ਸਾਲ',
        },
        preparse: function (string) {
            return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
        meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'ਰਾਤ') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ਸਵੇਰ') {
                return hour;
            } else if (meridiem === 'ਦੁਪਹਿਰ') {
                return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'ਸ਼ਾਮ') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'ਰਾਤ';
            } else if (hour < 10) {
                return 'ਸਵੇਰ';
            } else if (hour < 17) {
                return 'ਦੁਪਹਿਰ';
            } else if (hour < 20) {
                return 'ਸ਼ਾਮ';
            } else {
                return 'ਰਾਤ';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return paIn;

})));
//! moment.js locale configuration
//! locale : Polish [pl]
//! author : Rafal Hirsz : https://github.com/evoL

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var monthsNominative =
            'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
                '_'
            ),
        monthsSubjective =
            'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
                '_'
            ),
        monthsParse = [
            /^sty/i,
            /^lut/i,
            /^mar/i,
            /^kwi/i,
            /^maj/i,
            /^cze/i,
            /^lip/i,
            /^sie/i,
            /^wrz/i,
            /^paź/i,
            /^lis/i,
            /^gru/i,
        ];
    function plural(n) {
        return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
    }
    function translate(number, withoutSuffix, key) {
        var result = number + ' ';
        switch (key) {
            case 'ss':
                return result + (plural(number) ? 'sekundy' : 'sekund');
            case 'm':
                return withoutSuffix ? 'minuta' : 'minutę';
            case 'mm':
                return result + (plural(number) ? 'minuty' : 'minut');
            case 'h':
                return withoutSuffix ? 'godzina' : 'godzinę';
            case 'hh':
                return result + (plural(number) ? 'godziny' : 'godzin');
            case 'ww':
                return result + (plural(number) ? 'tygodnie' : 'tygodni');
            case 'MM':
                return result + (plural(number) ? 'miesiące' : 'miesięcy');
            case 'yy':
                return result + (plural(number) ? 'lata' : 'lat');
        }
    }

    var pl = moment.defineLocale('pl', {
        months: function (momentToFormat, format) {
            if (!momentToFormat) {
                return monthsNominative;
            } else if (/D MMMM/.test(format)) {
                return monthsSubjective[momentToFormat.month()];
            } else {
                return monthsNominative[momentToFormat.month()];
            }
        },
        monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,
        weekdays:
            'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
        weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
        weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Dziś o] LT',
            nextDay: '[Jutro o] LT',
            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[W niedzielę o] LT';

                    case 2:
                        return '[We wtorek o] LT';

                    case 3:
                        return '[W środę o] LT';

                    case 6:
                        return '[W sobotę o] LT';

                    default:
                        return '[W] dddd [o] LT';
                }
            },
            lastDay: '[Wczoraj o] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[W zeszłą niedzielę o] LT';
                    case 3:
                        return '[W zeszłą środę o] LT';
                    case 6:
                        return '[W zeszłą sobotę o] LT';
                    default:
                        return '[W zeszły] dddd [o] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'za %s',
            past: '%s temu',
            s: 'kilka sekund',
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: '1 dzień',
            dd: '%d dni',
            w: 'tydzień',
            ww: translate,
            M: 'miesiąc',
            MM: translate,
            y: 'rok',
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return pl;

})));
//! moment.js locale configuration
//! locale : Portuguese [pt]
//! author : Jefferson : https://github.com/jalex79

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var pt = moment.defineLocale('pt', {
        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
            '_'
        ),
        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
        weekdays:
            'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
                '_'
            ),
        weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
        weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY HH:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Hoje às] LT',
            nextDay: '[Amanhã às] LT',
            nextWeek: 'dddd [às] LT',
            lastDay: '[Ontem às] LT',
            lastWeek: function () {
                return this.day() === 0 || this.day() === 6
                    ? '[Último] dddd [às] LT' // Saturday + Sunday
                    : '[Última] dddd [às] LT'; // Monday - Friday
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'em %s',
            past: 'há %s',
            s: 'segundos',
            ss: '%d segundos',
            m: 'um minuto',
            mm: '%d minutos',
            h: 'uma hora',
            hh: '%d horas',
            d: 'um dia',
            dd: '%d dias',
            w: 'uma semana',
            ww: '%d semanas',
            M: 'um mês',
            MM: '%d meses',
            y: 'um ano',
            yy: '%d anos',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return pt;

})));
//! moment.js locale configuration
//! locale : Portuguese (Brazil) [pt-br]
//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ptBr = moment.defineLocale('pt-br', {
        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
            '_'
        ),
        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
        weekdays:
            'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
                '_'
            ),
        weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
        weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
        },
        calendar: {
            sameDay: '[Hoje às] LT',
            nextDay: '[Amanhã às] LT',
            nextWeek: 'dddd [às] LT',
            lastDay: '[Ontem às] LT',
            lastWeek: function () {
                return this.day() === 0 || this.day() === 6
                    ? '[Último] dddd [às] LT' // Saturday + Sunday
                    : '[Última] dddd [às] LT'; // Monday - Friday
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'em %s',
            past: 'há %s',
            s: 'poucos segundos',
            ss: '%d segundos',
            m: 'um minuto',
            mm: '%d minutos',
            h: 'uma hora',
            hh: '%d horas',
            d: 'um dia',
            dd: '%d dias',
            M: 'um mês',
            MM: '%d meses',
            y: 'um ano',
            yy: '%d anos',
        },
        dayOfMonthOrdinalParse: /\d{1,2}º/,
        ordinal: '%dº',
        invalidDate: 'Data inválida',
    });

    return ptBr;

})));
//! moment.js locale configuration
//! locale : Romanian [ro]
//! author : Vlad Gurdiga : https://github.com/gurdiga
//! author : Valentin Agachi : https://github.com/avaly
//! author : Emanuel Cepoi : https://github.com/cepem

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function relativeTimeWithPlural(number, withoutSuffix, key) {
        var format = {
                ss: 'secunde',
                mm: 'minute',
                hh: 'ore',
                dd: 'zile',
                ww: 'săptămâni',
                MM: 'luni',
                yy: 'ani',
            },
            separator = ' ';
        if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
            separator = ' de ';
        }
        return number + separator + format[key];
    }

    var ro = moment.defineLocale('ro', {
        months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
            '_'
        ),
        monthsShort:
            'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
        weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
        weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY H:mm',
            LLLL: 'dddd, D MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[azi la] LT',
            nextDay: '[mâine la] LT',
            nextWeek: 'dddd [la] LT',
            lastDay: '[ieri la] LT',
            lastWeek: '[fosta] dddd [la] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'peste %s',
            past: '%s în urmă',
            s: 'câteva secunde',
            ss: relativeTimeWithPlural,
            m: 'un minut',
            mm: relativeTimeWithPlural,
            h: 'o oră',
            hh: relativeTimeWithPlural,
            d: 'o zi',
            dd: relativeTimeWithPlural,
            w: 'o săptămână',
            ww: relativeTimeWithPlural,
            M: 'o lună',
            MM: relativeTimeWithPlural,
            y: 'un an',
            yy: relativeTimeWithPlural,
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return ro;

})));
//! moment.js locale configuration
//! locale : Russian [ru]
//! author : Viktorminator : https://github.com/Viktorminator
//! author : Menelion Elensúle : https://github.com/Oire
//! author : Коренберг Марк : https://github.com/socketpair

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function plural(word, num) {
        var forms = word.split('_');
        return num % 10 === 1 && num % 100 !== 11
            ? forms[0]
            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
              ? forms[1]
              : forms[2];
    }
    function relativeTimeWithPlural(number, withoutSuffix, key) {
        var format = {
            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
            mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
            hh: 'час_часа_часов',
            dd: 'день_дня_дней',
            ww: 'неделя_недели_недель',
            MM: 'месяц_месяца_месяцев',
            yy: 'год_года_лет',
        };
        if (key === 'm') {
            return withoutSuffix ? 'минута' : 'минуту';
        } else {
            return number + ' ' + plural(format[key], +number);
        }
    }
    var monthsParse = [
        /^янв/i,
        /^фев/i,
        /^мар/i,
        /^апр/i,
        /^ма[йя]/i,
        /^июн/i,
        /^июл/i,
        /^авг/i,
        /^сен/i,
        /^окт/i,
        /^ноя/i,
        /^дек/i,
    ];

    // http://new.gramota.ru/spravka/rules/139-prop : § 103
    // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
    // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
    var ru = moment.defineLocale('ru', {
        months: {
            format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
                '_'
            ),
            standalone:
                'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
                    '_'
                ),
        },
        monthsShort: {
            // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
            format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
                '_'
            ),
            standalone:
                'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
                    '_'
                ),
        },
        weekdays: {
            standalone:
                'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
                    '_'
                ),
            format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
                '_'
            ),
            isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
        },
        weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
        weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
        monthsParse: monthsParse,
        longMonthsParse: monthsParse,
        shortMonthsParse: monthsParse,

        // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
        monthsRegex:
            /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,

        // копия предыдущего
        monthsShortRegex:
            /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,

        // полные названия с падежами
        monthsStrictRegex:
            /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,

        // Выражение, которое соответствует только сокращённым формам
        monthsShortStrictRegex:
            /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY г.',
            LLL: 'D MMMM YYYY г., H:mm',
            LLLL: 'dddd, D MMMM YYYY г., H:mm',
        },
        calendar: {
            sameDay: '[Сегодня, в] LT',
            nextDay: '[Завтра, в] LT',
            lastDay: '[Вчера, в] LT',
            nextWeek: function (now) {
                if (now.week() !== this.week()) {
                    switch (this.day()) {
                        case 0:
                            return '[В следующее] dddd, [в] LT';
                        case 1:
                        case 2:
                        case 4:
                            return '[В следующий] dddd, [в] LT';
                        case 3:
                        case 5:
                        case 6:
                            return '[В следующую] dddd, [в] LT';
                    }
                } else {
                    if (this.day() === 2) {
                        return '[Во] dddd, [в] LT';
                    } else {
                        return '[В] dddd, [в] LT';
                    }
                }
            },
            lastWeek: function (now) {
                if (now.week() !== this.week()) {
                    switch (this.day()) {
                        case 0:
                            return '[В прошлое] dddd, [в] LT';
                        case 1:
                        case 2:
                        case 4:
                            return '[В прошлый] dddd, [в] LT';
                        case 3:
                        case 5:
                        case 6:
                            return '[В прошлую] dddd, [в] LT';
                    }
                } else {
                    if (this.day() === 2) {
                        return '[Во] dddd, [в] LT';
                    } else {
                        return '[В] dddd, [в] LT';
                    }
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'через %s',
            past: '%s назад',
            s: 'несколько секунд',
            ss: relativeTimeWithPlural,
            m: relativeTimeWithPlural,
            mm: relativeTimeWithPlural,
            h: 'час',
            hh: relativeTimeWithPlural,
            d: 'день',
            dd: relativeTimeWithPlural,
            w: 'неделя',
            ww: relativeTimeWithPlural,
            M: 'месяц',
            MM: relativeTimeWithPlural,
            y: 'год',
            yy: relativeTimeWithPlural,
        },
        meridiemParse: /ночи|утра|дня|вечера/i,
        isPM: function (input) {
            return /^(дня|вечера)$/.test(input);
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'ночи';
            } else if (hour < 12) {
                return 'утра';
            } else if (hour < 17) {
                return 'дня';
            } else {
                return 'вечера';
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'M':
                case 'd':
                case 'DDD':
                    return number + '-й';
                case 'D':
                    return number + '-го';
                case 'w':
                case 'W':
                    return number + '-я';
                default:
                    return number;
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return ru;

})));
//! moment.js locale configuration
//! locale : Sindhi [sd]
//! author : Narain Sagar : https://github.com/narainsagar

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var months = [
            'جنوري',
            'فيبروري',
            'مارچ',
            'اپريل',
            'مئي',
            'جون',
            'جولاءِ',
            'آگسٽ',
            'سيپٽمبر',
            'آڪٽوبر',
            'نومبر',
            'ڊسمبر',
        ],
        days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];

    var sd = moment.defineLocale('sd', {
        months: months,
        monthsShort: months,
        weekdays: days,
        weekdaysShort: days,
        weekdaysMin: days,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd، D MMMM YYYY HH:mm',
        },
        meridiemParse: /صبح|شام/,
        isPM: function (input) {
            return 'شام' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'صبح';
            }
            return 'شام';
        },
        calendar: {
            sameDay: '[اڄ] LT',
            nextDay: '[سڀاڻي] LT',
            nextWeek: 'dddd [اڳين هفتي تي] LT',
            lastDay: '[ڪالهه] LT',
            lastWeek: '[گزريل هفتي] dddd [تي] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s پوء',
            past: '%s اڳ',
            s: 'چند سيڪنڊ',
            ss: '%d سيڪنڊ',
            m: 'هڪ منٽ',
            mm: '%d منٽ',
            h: 'هڪ ڪلاڪ',
            hh: '%d ڪلاڪ',
            d: 'هڪ ڏينهن',
            dd: '%d ڏينهن',
            M: 'هڪ مهينو',
            MM: '%d مهينا',
            y: 'هڪ سال',
            yy: '%d سال',
        },
        preparse: function (string) {
            return string.replace(/،/g, ',');
        },
        postformat: function (string) {
            return string.replace(/,/g, '،');
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return sd;

})));
//! moment.js locale configuration
//! locale : Northern Sami [se]
//! authors : Bård Rolstad Henriksen : https://github.com/karamell

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var se = moment.defineLocale('se', {
        months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
            '_'
        ),
        monthsShort:
            'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
        weekdays:
            'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
                '_'
            ),
        weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
        weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'MMMM D. [b.] YYYY',
            LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
            LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
        },
        calendar: {
            sameDay: '[otne ti] LT',
            nextDay: '[ihttin ti] LT',
            nextWeek: 'dddd [ti] LT',
            lastDay: '[ikte ti] LT',
            lastWeek: '[ovddit] dddd [ti] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s geažes',
            past: 'maŋit %s',
            s: 'moadde sekunddat',
            ss: '%d sekunddat',
            m: 'okta minuhta',
            mm: '%d minuhtat',
            h: 'okta diimmu',
            hh: '%d diimmut',
            d: 'okta beaivi',
            dd: '%d beaivvit',
            M: 'okta mánnu',
            MM: '%d mánut',
            y: 'okta jahki',
            yy: '%d jagit',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return se;

})));
//! moment.js locale configuration
//! locale : Sinhalese [si]
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    /*jshint -W100*/
    var si = moment.defineLocale('si', {
        months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
            '_'
        ),
        monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
            '_'
        ),
        weekdays:
            'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
                '_'
            ),
        weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
        weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'a h:mm',
            LTS: 'a h:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY MMMM D',
            LLL: 'YYYY MMMM D, a h:mm',
            LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
        },
        calendar: {
            sameDay: '[අද] LT[ට]',
            nextDay: '[හෙට] LT[ට]',
            nextWeek: 'dddd LT[ට]',
            lastDay: '[ඊයේ] LT[ට]',
            lastWeek: '[පසුගිය] dddd LT[ට]',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%sකින්',
            past: '%sකට පෙර',
            s: 'තත්පර කිහිපය',
            ss: 'තත්පර %d',
            m: 'මිනිත්තුව',
            mm: 'මිනිත්තු %d',
            h: 'පැය',
            hh: 'පැය %d',
            d: 'දිනය',
            dd: 'දින %d',
            M: 'මාසය',
            MM: 'මාස %d',
            y: 'වසර',
            yy: 'වසර %d',
        },
        dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
        ordinal: function (number) {
            return number + ' වැනි';
        },
        meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
        isPM: function (input) {
            return input === 'ප.ව.' || input === 'පස් වරු';
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours > 11) {
                return isLower ? 'ප.ව.' : 'පස් වරු';
            } else {
                return isLower ? 'පෙ.ව.' : 'පෙර වරු';
            }
        },
    });

    return si;

})));
//! moment.js locale configuration
//! locale : Slovak [sk]
//! author : Martin Minka : https://github.com/k2s
//! based on work of petrbela : https://github.com/petrbela

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var months =
            'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
                '_'
            ),
        monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
    function plural(n) {
        return n > 1 && n < 5;
    }
    function translate(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        switch (key) {
            case 's': // a few seconds / in a few seconds / a few seconds ago
                return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'sekundy' : 'sekúnd');
                } else {
                    return result + 'sekundami';
                }
            case 'm': // a minute / in a minute / a minute ago
                return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'minúty' : 'minút');
                } else {
                    return result + 'minútami';
                }
            case 'h': // an hour / in an hour / an hour ago
                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
            case 'hh': // 9 hours / in 9 hours / 9 hours ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'hodiny' : 'hodín');
                } else {
                    return result + 'hodinami';
                }
            case 'd': // a day / in a day / a day ago
                return withoutSuffix || isFuture ? 'deň' : 'dňom';
            case 'dd': // 9 days / in 9 days / 9 days ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'dni' : 'dní');
                } else {
                    return result + 'dňami';
                }
            case 'M': // a month / in a month / a month ago
                return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
            case 'MM': // 9 months / in 9 months / 9 months ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'mesiace' : 'mesiacov');
                } else {
                    return result + 'mesiacmi';
                }
            case 'y': // a year / in a year / a year ago
                return withoutSuffix || isFuture ? 'rok' : 'rokom';
            case 'yy': // 9 years / in 9 years / 9 years ago
                if (withoutSuffix || isFuture) {
                    return result + (plural(number) ? 'roky' : 'rokov');
                } else {
                    return result + 'rokmi';
                }
        }
    }

    var sk = moment.defineLocale('sk', {
        months: months,
        monthsShort: monthsShort,
        weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
        weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
        weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd D. MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[dnes o] LT',
            nextDay: '[zajtra o] LT',
            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[v nedeľu o] LT';
                    case 1:
                    case 2:
                        return '[v] dddd [o] LT';
                    case 3:
                        return '[v stredu o] LT';
                    case 4:
                        return '[vo štvrtok o] LT';
                    case 5:
                        return '[v piatok o] LT';
                    case 6:
                        return '[v sobotu o] LT';
                }
            },
            lastDay: '[včera o] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[minulú nedeľu o] LT';
                    case 1:
                    case 2:
                        return '[minulý] dddd [o] LT';
                    case 3:
                        return '[minulú stredu o] LT';
                    case 4:
                    case 5:
                        return '[minulý] dddd [o] LT';
                    case 6:
                        return '[minulú sobotu o] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'za %s',
            past: 'pred %s',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return sk;

})));
//! moment.js locale configuration
//! locale : Slovenian [sl]
//! author : Robert Sedovšek : https://github.com/sedovsek

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        switch (key) {
            case 's':
                return withoutSuffix || isFuture
                    ? 'nekaj sekund'
                    : 'nekaj sekundami';
            case 'ss':
                if (number === 1) {
                    result += withoutSuffix ? 'sekundo' : 'sekundi';
                } else if (number === 2) {
                    result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
                } else if (number < 5) {
                    result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
                } else {
                    result += 'sekund';
                }
                return result;
            case 'm':
                return withoutSuffix ? 'ena minuta' : 'eno minuto';
            case 'mm':
                if (number === 1) {
                    result += withoutSuffix ? 'minuta' : 'minuto';
                } else if (number === 2) {
                    result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
                } else if (number < 5) {
                    result += withoutSuffix || isFuture ? 'minute' : 'minutami';
                } else {
                    result += withoutSuffix || isFuture ? 'minut' : 'minutami';
                }
                return result;
            case 'h':
                return withoutSuffix ? 'ena ura' : 'eno uro';
            case 'hh':
                if (number === 1) {
                    result += withoutSuffix ? 'ura' : 'uro';
                } else if (number === 2) {
                    result += withoutSuffix || isFuture ? 'uri' : 'urama';
                } else if (number < 5) {
                    result += withoutSuffix || isFuture ? 'ure' : 'urami';
                } else {
                    result += withoutSuffix || isFuture ? 'ur' : 'urami';
                }
                return result;
            case 'd':
                return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
            case 'dd':
                if (number === 1) {
                    result += withoutSuffix || isFuture ? 'dan' : 'dnem';
                } else if (number === 2) {
                    result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
                } else {
                    result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
                }
                return result;
            case 'M':
                return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
            case 'MM':
                if (number === 1) {
                    result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
                } else if (number === 2) {
                    result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
                } else if (number < 5) {
                    result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
                } else {
                    result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
                }
                return result;
            case 'y':
                return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
            case 'yy':
                if (number === 1) {
                    result += withoutSuffix || isFuture ? 'leto' : 'letom';
                } else if (number === 2) {
                    result += withoutSuffix || isFuture ? 'leti' : 'letoma';
                } else if (number < 5) {
                    result += withoutSuffix || isFuture ? 'leta' : 'leti';
                } else {
                    result += withoutSuffix || isFuture ? 'let' : 'leti';
                }
                return result;
        }
    }

    var sl = moment.defineLocale('sl', {
        months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
            '_'
        ),
        monthsShort:
            'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
        weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
        weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD. MM. YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm',
        },
        calendar: {
            sameDay: '[danes ob] LT',
            nextDay: '[jutri ob] LT',

            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[v] [nedeljo] [ob] LT';
                    case 3:
                        return '[v] [sredo] [ob] LT';
                    case 6:
                        return '[v] [soboto] [ob] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[v] dddd [ob] LT';
                }
            },
            lastDay: '[včeraj ob] LT',
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[prejšnjo] [nedeljo] [ob] LT';
                    case 3:
                        return '[prejšnjo] [sredo] [ob] LT';
                    case 6:
                        return '[prejšnjo] [soboto] [ob] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[prejšnji] dddd [ob] LT';
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'čez %s',
            past: 'pred %s',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return sl;

})));
//! moment.js locale configuration
//! locale : Albanian [sq]
//! author : Flakërim Ismani : https://github.com/flakerimi
//! author : Menelion Elensúle : https://github.com/Oire
//! author : Oerd Cukalla : https://github.com/oerd

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var sq = moment.defineLocale('sq', {
        months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
            '_'
        ),
        monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
        weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
            '_'
        ),
        weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
        weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
        weekdaysParseExact: true,
        meridiemParse: /PD|MD/,
        isPM: function (input) {
            return input.charAt(0) === 'M';
        },
        meridiem: function (hours, minutes, isLower) {
            return hours < 12 ? 'PD' : 'MD';
        },
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Sot në] LT',
            nextDay: '[Nesër në] LT',
            nextWeek: 'dddd [në] LT',
            lastDay: '[Dje në] LT',
            lastWeek: 'dddd [e kaluar në] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'në %s',
            past: '%s më parë',
            s: 'disa sekonda',
            ss: '%d sekonda',
            m: 'një minutë',
            mm: '%d minuta',
            h: 'një orë',
            hh: '%d orë',
            d: 'një ditë',
            dd: '%d ditë',
            M: 'një muaj',
            MM: '%d muaj',
            y: 'një vit',
            yy: '%d vite',
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return sq;

})));
//! moment.js locale configuration
//! locale : Serbian [sr]
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var translator = {
        words: {
            //Different grammatical cases
            ss: ['sekunda', 'sekunde', 'sekundi'],
            m: ['jedan minut', 'jednog minuta'],
            mm: ['minut', 'minuta', 'minuta'],
            h: ['jedan sat', 'jednog sata'],
            hh: ['sat', 'sata', 'sati'],
            d: ['jedan dan', 'jednog dana'],
            dd: ['dan', 'dana', 'dana'],
            M: ['jedan mesec', 'jednog meseca'],
            MM: ['mesec', 'meseca', 'meseci'],
            y: ['jednu godinu', 'jedne godine'],
            yy: ['godinu', 'godine', 'godina'],
        },
        correctGrammaticalCase: function (number, wordKey) {
            if (
                number % 10 >= 1 &&
                number % 10 <= 4 &&
                (number % 100 < 10 || number % 100 >= 20)
            ) {
                return number % 10 === 1 ? wordKey[0] : wordKey[1];
            }
            return wordKey[2];
        },
        translate: function (number, withoutSuffix, key, isFuture) {
            var wordKey = translator.words[key],
                word;

            if (key.length === 1) {
                // Nominativ
                if (key === 'y' && withoutSuffix) return 'jedna godina';
                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
            }

            word = translator.correctGrammaticalCase(number, wordKey);
            // Nominativ
            if (key === 'yy' && withoutSuffix && word === 'godinu') {
                return number + ' godina';
            }

            return number + ' ' + word;
        },
    };

    var sr = moment.defineLocale('sr', {
        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
            '_'
        ),
        monthsShort:
            'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
        monthsParseExact: true,
        weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
            '_'
        ),
        weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D. M. YYYY.',
            LL: 'D. MMMM YYYY.',
            LLL: 'D. MMMM YYYY. H:mm',
            LLLL: 'dddd, D. MMMM YYYY. H:mm',
        },
        calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sutra u] LT',
            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[u] [nedelju] [u] LT';
                    case 3:
                        return '[u] [sredu] [u] LT';
                    case 6:
                        return '[u] [subotu] [u] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[u] dddd [u] LT';
                }
            },
            lastDay: '[juče u] LT',
            lastWeek: function () {
                var lastWeekDays = [
                    '[prošle] [nedelje] [u] LT',
                    '[prošlog] [ponedeljka] [u] LT',
                    '[prošlog] [utorka] [u] LT',
                    '[prošle] [srede] [u] LT',
                    '[prošlog] [četvrtka] [u] LT',
                    '[prošlog] [petka] [u] LT',
                    '[prošle] [subote] [u] LT',
                ];
                return lastWeekDays[this.day()];
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'za %s',
            past: 'pre %s',
            s: 'nekoliko sekundi',
            ss: translator.translate,
            m: translator.translate,
            mm: translator.translate,
            h: translator.translate,
            hh: translator.translate,
            d: translator.translate,
            dd: translator.translate,
            M: translator.translate,
            MM: translator.translate,
            y: translator.translate,
            yy: translator.translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return sr;

})));
//! moment.js locale configuration
//! locale : Serbian Cyrillic [sr-cyrl]
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var translator = {
        words: {
            //Different grammatical cases
            ss: ['секунда', 'секунде', 'секунди'],
            m: ['један минут', 'једног минута'],
            mm: ['минут', 'минута', 'минута'],
            h: ['један сат', 'једног сата'],
            hh: ['сат', 'сата', 'сати'],
            d: ['један дан', 'једног дана'],
            dd: ['дан', 'дана', 'дана'],
            M: ['један месец', 'једног месеца'],
            MM: ['месец', 'месеца', 'месеци'],
            y: ['једну годину', 'једне године'],
            yy: ['годину', 'године', 'година'],
        },
        correctGrammaticalCase: function (number, wordKey) {
            if (
                number % 10 >= 1 &&
                number % 10 <= 4 &&
                (number % 100 < 10 || number % 100 >= 20)
            ) {
                return number % 10 === 1 ? wordKey[0] : wordKey[1];
            }
            return wordKey[2];
        },
        translate: function (number, withoutSuffix, key, isFuture) {
            var wordKey = translator.words[key],
                word;

            if (key.length === 1) {
                // Nominativ
                if (key === 'y' && withoutSuffix) return 'једна година';
                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
            }

            word = translator.correctGrammaticalCase(number, wordKey);
            // Nominativ
            if (key === 'yy' && withoutSuffix && word === 'годину') {
                return number + ' година';
            }

            return number + ' ' + word;
        },
    };

    var srCyrl = moment.defineLocale('sr-cyrl', {
        months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
            '_'
        ),
        monthsShort:
            'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
        monthsParseExact: true,
        weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
        weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
        weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D. M. YYYY.',
            LL: 'D. MMMM YYYY.',
            LLL: 'D. MMMM YYYY. H:mm',
            LLLL: 'dddd, D. MMMM YYYY. H:mm',
        },
        calendar: {
            sameDay: '[данас у] LT',
            nextDay: '[сутра у] LT',
            nextWeek: function () {
                switch (this.day()) {
                    case 0:
                        return '[у] [недељу] [у] LT';
                    case 3:
                        return '[у] [среду] [у] LT';
                    case 6:
                        return '[у] [суботу] [у] LT';
                    case 1:
                    case 2:
                    case 4:
                    case 5:
                        return '[у] dddd [у] LT';
                }
            },
            lastDay: '[јуче у] LT',
            lastWeek: function () {
                var lastWeekDays = [
                    '[прошле] [недеље] [у] LT',
                    '[прошлог] [понедељка] [у] LT',
                    '[прошлог] [уторка] [у] LT',
                    '[прошле] [среде] [у] LT',
                    '[прошлог] [четвртка] [у] LT',
                    '[прошлог] [петка] [у] LT',
                    '[прошле] [суботе] [у] LT',
                ];
                return lastWeekDays[this.day()];
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'за %s',
            past: 'пре %s',
            s: 'неколико секунди',
            ss: translator.translate,
            m: translator.translate,
            mm: translator.translate,
            h: translator.translate,
            hh: translator.translate,
            d: translator.translate,
            dd: translator.translate,
            M: translator.translate,
            MM: translator.translate,
            y: translator.translate,
            yy: translator.translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 1st is the first week of the year.
        },
    });

    return srCyrl;

})));
//! moment.js locale configuration
//! locale : siSwati [ss]
//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ss = moment.defineLocale('ss', {
        months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
            '_'
        ),
        monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
        weekdays:
            'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
                '_'
            ),
        weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
        weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A',
        },
        calendar: {
            sameDay: '[Namuhla nga] LT',
            nextDay: '[Kusasa nga] LT',
            nextWeek: 'dddd [nga] LT',
            lastDay: '[Itolo nga] LT',
            lastWeek: 'dddd [leliphelile] [nga] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'nga %s',
            past: 'wenteka nga %s',
            s: 'emizuzwana lomcane',
            ss: '%d mzuzwana',
            m: 'umzuzu',
            mm: '%d emizuzu',
            h: 'lihora',
            hh: '%d emahora',
            d: 'lilanga',
            dd: '%d emalanga',
            M: 'inyanga',
            MM: '%d tinyanga',
            y: 'umnyaka',
            yy: '%d iminyaka',
        },
        meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
        meridiem: function (hours, minutes, isLower) {
            if (hours < 11) {
                return 'ekuseni';
            } else if (hours < 15) {
                return 'emini';
            } else if (hours < 19) {
                return 'entsambama';
            } else {
                return 'ebusuku';
            }
        },
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'ekuseni') {
                return hour;
            } else if (meridiem === 'emini') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
                if (hour === 0) {
                    return 0;
                }
                return hour + 12;
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}/,
        ordinal: '%d',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return ss;

})));
//! moment.js locale configuration
//! locale : Swedish [sv]
//! author : Jens Alm : https://github.com/ulmus

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var sv = moment.defineLocale('sv', {
        months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
            '_'
        ),
        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
        weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
        weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
        weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [kl.] HH:mm',
            LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
            lll: 'D MMM YYYY HH:mm',
            llll: 'ddd D MMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Idag] LT',
            nextDay: '[Imorgon] LT',
            lastDay: '[Igår] LT',
            nextWeek: '[På] dddd LT',
            lastWeek: '[I] dddd[s] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'om %s',
            past: 'för %s sedan',
            s: 'några sekunder',
            ss: '%d sekunder',
            m: 'en minut',
            mm: '%d minuter',
            h: 'en timme',
            hh: '%d timmar',
            d: 'en dag',
            dd: '%d dagar',
            M: 'en månad',
            MM: '%d månader',
            y: 'ett år',
            yy: '%d år',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? ':e'
                        : b === 1
                          ? ':a'
                          : b === 2
                            ? ':a'
                            : b === 3
                              ? ':e'
                              : ':e';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return sv;

})));
//! moment.js locale configuration
//! locale : Swahili [sw]
//! author : Fahad Kassim : https://github.com/fadsel

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var sw = moment.defineLocale('sw', {
        months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
            '_'
        ),
        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
        weekdays:
            'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
                '_'
            ),
        weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
        weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'hh:mm A',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[leo saa] LT',
            nextDay: '[kesho saa] LT',
            nextWeek: '[wiki ijayo] dddd [saat] LT',
            lastDay: '[jana] LT',
            lastWeek: '[wiki iliyopita] dddd [saat] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s baadaye',
            past: 'tokea %s',
            s: 'hivi punde',
            ss: 'sekunde %d',
            m: 'dakika moja',
            mm: 'dakika %d',
            h: 'saa limoja',
            hh: 'masaa %d',
            d: 'siku moja',
            dd: 'siku %d',
            M: 'mwezi mmoja',
            MM: 'miezi %d',
            y: 'mwaka mmoja',
            yy: 'miaka %d',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return sw;

})));
//! moment.js locale configuration
//! locale : Tamil [ta]
//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var symbolMap = {
            1: '௧',
            2: '௨',
            3: '௩',
            4: '௪',
            5: '௫',
            6: '௬',
            7: '௭',
            8: '௮',
            9: '௯',
            0: '௦',
        },
        numberMap = {
            '௧': '1',
            '௨': '2',
            '௩': '3',
            '௪': '4',
            '௫': '5',
            '௬': '6',
            '௭': '7',
            '௮': '8',
            '௯': '9',
            '௦': '0',
        };

    var ta = moment.defineLocale('ta', {
        months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
            '_'
        ),
        monthsShort:
            'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
                '_'
            ),
        weekdays:
            'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
                '_'
            ),
        weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
            '_'
        ),
        weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, HH:mm',
            LLLL: 'dddd, D MMMM YYYY, HH:mm',
        },
        calendar: {
            sameDay: '[இன்று] LT',
            nextDay: '[நாளை] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[நேற்று] LT',
            lastWeek: '[கடந்த வாரம்] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s இல்',
            past: '%s முன்',
            s: 'ஒரு சில விநாடிகள்',
            ss: '%d விநாடிகள்',
            m: 'ஒரு நிமிடம்',
            mm: '%d நிமிடங்கள்',
            h: 'ஒரு மணி நேரம்',
            hh: '%d மணி நேரம்',
            d: 'ஒரு நாள்',
            dd: '%d நாட்கள்',
            M: 'ஒரு மாதம்',
            MM: '%d மாதங்கள்',
            y: 'ஒரு வருடம்',
            yy: '%d ஆண்டுகள்',
        },
        dayOfMonthOrdinalParse: /\d{1,2}வது/,
        ordinal: function (number) {
            return number + 'வது';
        },
        preparse: function (string) {
            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
                return numberMap[match];
            });
        },
        postformat: function (string) {
            return string.replace(/\d/g, function (match) {
                return symbolMap[match];
            });
        },
        // refer http://ta.wikipedia.org/s/1er1
        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
        meridiem: function (hour, minute, isLower) {
            if (hour < 2) {
                return ' யாமம்';
            } else if (hour < 6) {
                return ' வைகறை'; // வைகறை
            } else if (hour < 10) {
                return ' காலை'; // காலை
            } else if (hour < 14) {
                return ' நண்பகல்'; // நண்பகல்
            } else if (hour < 18) {
                return ' எற்பாடு'; // எற்பாடு
            } else if (hour < 22) {
                return ' மாலை'; // மாலை
            } else {
                return ' யாமம்';
            }
        },
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'யாமம்') {
                return hour < 2 ? hour : hour + 12;
            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
                return hour;
            } else if (meridiem === 'நண்பகல்') {
                return hour >= 10 ? hour : hour + 12;
            } else {
                return hour + 12;
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return ta;

})));
//! moment.js locale configuration
//! locale : Telugu [te]
//! author : Krishna Chaitanya Thota : https://github.com/kcthota

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var te = moment.defineLocale('te', {
        months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
            '_'
        ),
        monthsShort:
            'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays:
            'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
                '_'
            ),
        weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
        weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
        longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm',
            LLLL: 'dddd, D MMMM YYYY, A h:mm',
        },
        calendar: {
            sameDay: '[నేడు] LT',
            nextDay: '[రేపు] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[నిన్న] LT',
            lastWeek: '[గత] dddd, LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s లో',
            past: '%s క్రితం',
            s: 'కొన్ని క్షణాలు',
            ss: '%d సెకన్లు',
            m: 'ఒక నిమిషం',
            mm: '%d నిమిషాలు',
            h: 'ఒక గంట',
            hh: '%d గంటలు',
            d: 'ఒక రోజు',
            dd: '%d రోజులు',
            M: 'ఒక నెల',
            MM: '%d నెలలు',
            y: 'ఒక సంవత్సరం',
            yy: '%d సంవత్సరాలు',
        },
        dayOfMonthOrdinalParse: /\d{1,2}వ/,
        ordinal: '%dవ',
        meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'రాత్రి') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ఉదయం') {
                return hour;
            } else if (meridiem === 'మధ్యాహ్నం') {
                return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'సాయంత్రం') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'రాత్రి';
            } else if (hour < 10) {
                return 'ఉదయం';
            } else if (hour < 17) {
                return 'మధ్యాహ్నం';
            } else if (hour < 20) {
                return 'సాయంత్రం';
            } else {
                return 'రాత్రి';
            }
        },
        week: {
            dow: 0, // Sunday is the first day of the week.
            doy: 6, // The week that contains Jan 6th is the first week of the year.
        },
    });

    return te;

})));
//! moment.js locale configuration
//! locale : Tetun Dili (East Timor) [tet]
//! author : Joshua Brooks : https://github.com/joshbrooks
//! author : Onorio De J. Afonso : https://github.com/marobo
//! author : Sonia Simoes : https://github.com/soniasimoes

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var tet = moment.defineLocale('tet', {
        months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
            '_'
        ),
        monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
        weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
        weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
        weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Ohin iha] LT',
            nextDay: '[Aban iha] LT',
            nextWeek: 'dddd [iha] LT',
            lastDay: '[Horiseik iha] LT',
            lastWeek: 'dddd [semana kotuk] [iha] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'iha %s',
            past: '%s liuba',
            s: 'segundu balun',
            ss: 'segundu %d',
            m: 'minutu ida',
            mm: 'minutu %d',
            h: 'oras ida',
            hh: 'oras %d',
            d: 'loron ida',
            dd: 'loron %d',
            M: 'fulan ida',
            MM: 'fulan %d',
            y: 'tinan ida',
            yy: 'tinan %d',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return tet;

})));
//! moment.js locale configuration
//! locale : Tajik [tg]
//! author : Orif N. Jr. : https://github.com/orif-jr

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var suffixes = {
        0: '-ум',
        1: '-ум',
        2: '-юм',
        3: '-юм',
        4: '-ум',
        5: '-ум',
        6: '-ум',
        7: '-ум',
        8: '-ум',
        9: '-ум',
        10: '-ум',
        12: '-ум',
        13: '-ум',
        20: '-ум',
        30: '-юм',
        40: '-ум',
        50: '-ум',
        60: '-ум',
        70: '-ум',
        80: '-ум',
        90: '-ум',
        100: '-ум',
    };

    var tg = moment.defineLocale('tg', {
        months: {
            format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
                '_'
            ),
            standalone:
                'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
                    '_'
                ),
        },
        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
        weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
            '_'
        ),
        weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
        weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Имрӯз соати] LT',
            nextDay: '[Фардо соати] LT',
            lastDay: '[Дирӯз соати] LT',
            nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
            lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'баъди %s',
            past: '%s пеш',
            s: 'якчанд сония',
            m: 'як дақиқа',
            mm: '%d дақиқа',
            h: 'як соат',
            hh: '%d соат',
            d: 'як рӯз',
            dd: '%d рӯз',
            M: 'як моҳ',
            MM: '%d моҳ',
            y: 'як сол',
            yy: '%d сол',
        },
        meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === 'шаб') {
                return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'субҳ') {
                return hour;
            } else if (meridiem === 'рӯз') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'бегоҳ') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'шаб';
            } else if (hour < 11) {
                return 'субҳ';
            } else if (hour < 16) {
                return 'рӯз';
            } else if (hour < 19) {
                return 'бегоҳ';
            } else {
                return 'шаб';
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
        ordinal: function (number) {
            var a = number % 10,
                b = number >= 100 ? 100 : null;
            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 1th is the first week of the year.
        },
    });

    return tg;

})));
//! moment.js locale configuration
//! locale : Thai [th]
//! author : Kridsada Thanabulpong : https://github.com/sirn

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var th = moment.defineLocale('th', {
        months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
            '_'
        ),
        monthsShort:
            'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
        weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
        weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY เวลา H:mm',
            LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
        },
        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
        isPM: function (input) {
            return input === 'หลังเที่ยง';
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'ก่อนเที่ยง';
            } else {
                return 'หลังเที่ยง';
            }
        },
        calendar: {
            sameDay: '[วันนี้ เวลา] LT',
            nextDay: '[พรุ่งนี้ เวลา] LT',
            nextWeek: 'dddd[หน้า เวลา] LT',
            lastDay: '[เมื่อวานนี้ เวลา] LT',
            lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'อีก %s',
            past: '%sที่แล้ว',
            s: 'ไม่กี่วินาที',
            ss: '%d วินาที',
            m: '1 นาที',
            mm: '%d นาที',
            h: '1 ชั่วโมง',
            hh: '%d ชั่วโมง',
            d: '1 วัน',
            dd: '%d วัน',
            w: '1 สัปดาห์',
            ww: '%d สัปดาห์',
            M: '1 เดือน',
            MM: '%d เดือน',
            y: '1 ปี',
            yy: '%d ปี',
        },
    });

    return th;

})));
//! moment.js locale configuration
//! locale : Turkmen [tk]
//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var suffixes = {
        1: "'inji",
        5: "'inji",
        8: "'inji",
        70: "'inji",
        80: "'inji",
        2: "'nji",
        7: "'nji",
        20: "'nji",
        50: "'nji",
        3: "'ünji",
        4: "'ünji",
        100: "'ünji",
        6: "'njy",
        9: "'unjy",
        10: "'unjy",
        30: "'unjy",
        60: "'ynjy",
        90: "'ynjy",
    };

    var tk = moment.defineLocale('tk', {
        months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
            '_'
        ),
        monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
        weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
            '_'
        ),
        weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
        weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[bugün sagat] LT',
            nextDay: '[ertir sagat] LT',
            nextWeek: '[indiki] dddd [sagat] LT',
            lastDay: '[düýn] LT',
            lastWeek: '[geçen] dddd [sagat] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s soň',
            past: '%s öň',
            s: 'birnäçe sekunt',
            m: 'bir minut',
            mm: '%d minut',
            h: 'bir sagat',
            hh: '%d sagat',
            d: 'bir gün',
            dd: '%d gün',
            M: 'bir aý',
            MM: '%d aý',
            y: 'bir ýyl',
            yy: '%d ýyl',
        },
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'Do':
                case 'DD':
                    return number;
                default:
                    if (number === 0) {
                        // special case for zero
                        return number + "'unjy";
                    }
                    var a = number % 10,
                        b = (number % 100) - a,
                        c = number >= 100 ? 100 : null;
                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return tk;

})));
//! moment.js locale configuration
//! locale : Tagalog (Philippines) [tl-ph]
//! author : Dan Hagman : https://github.com/hagmandan

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var tlPh = moment.defineLocale('tl-ph', {
        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
            '_'
        ),
        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
            '_'
        ),
        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'MM/D/YYYY',
            LL: 'MMMM D, YYYY',
            LLL: 'MMMM D, YYYY HH:mm',
            LLLL: 'dddd, MMMM DD, YYYY HH:mm',
        },
        calendar: {
            sameDay: 'LT [ngayong araw]',
            nextDay: '[Bukas ng] LT',
            nextWeek: 'LT [sa susunod na] dddd',
            lastDay: 'LT [kahapon]',
            lastWeek: 'LT [noong nakaraang] dddd',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'sa loob ng %s',
            past: '%s ang nakalipas',
            s: 'ilang segundo',
            ss: '%d segundo',
            m: 'isang minuto',
            mm: '%d minuto',
            h: 'isang oras',
            hh: '%d oras',
            d: 'isang araw',
            dd: '%d araw',
            M: 'isang buwan',
            MM: '%d buwan',
            y: 'isang taon',
            yy: '%d taon',
        },
        dayOfMonthOrdinalParse: /\d{1,2}/,
        ordinal: function (number) {
            return number;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return tlPh;

})));
//! moment.js locale configuration
//! locale : Klingon [tlh]
//! author : Dominika Kruk : https://github.com/amaranthrose

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');

    function translateFuture(output) {
        var time = output;
        time =
            output.indexOf('jaj') !== -1
                ? time.slice(0, -3) + 'leS'
                : output.indexOf('jar') !== -1
                  ? time.slice(0, -3) + 'waQ'
                  : output.indexOf('DIS') !== -1
                    ? time.slice(0, -3) + 'nem'
                    : time + ' pIq';
        return time;
    }

    function translatePast(output) {
        var time = output;
        time =
            output.indexOf('jaj') !== -1
                ? time.slice(0, -3) + 'Hu’'
                : output.indexOf('jar') !== -1
                  ? time.slice(0, -3) + 'wen'
                  : output.indexOf('DIS') !== -1
                    ? time.slice(0, -3) + 'ben'
                    : time + ' ret';
        return time;
    }

    function translate(number, withoutSuffix, string, isFuture) {
        var numberNoun = numberAsNoun(number);
        switch (string) {
            case 'ss':
                return numberNoun + ' lup';
            case 'mm':
                return numberNoun + ' tup';
            case 'hh':
                return numberNoun + ' rep';
            case 'dd':
                return numberNoun + ' jaj';
            case 'MM':
                return numberNoun + ' jar';
            case 'yy':
                return numberNoun + ' DIS';
        }
    }

    function numberAsNoun(number) {
        var hundred = Math.floor((number % 1000) / 100),
            ten = Math.floor((number % 100) / 10),
            one = number % 10,
            word = '';
        if (hundred > 0) {
            word += numbersNouns[hundred] + 'vatlh';
        }
        if (ten > 0) {
            word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
        }
        if (one > 0) {
            word += (word !== '' ? ' ' : '') + numbersNouns[one];
        }
        return word === '' ? 'pagh' : word;
    }

    var tlh = moment.defineLocale('tlh', {
        months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
            '_'
        ),
        monthsShort:
            'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
            '_'
        ),
        weekdaysShort:
            'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
        weekdaysMin:
            'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[DaHjaj] LT',
            nextDay: '[wa’leS] LT',
            nextWeek: 'LLL',
            lastDay: '[wa’Hu’] LT',
            lastWeek: 'LLL',
            sameElse: 'L',
        },
        relativeTime: {
            future: translateFuture,
            past: translatePast,
            s: 'puS lup',
            ss: translate,
            m: 'wa’ tup',
            mm: translate,
            h: 'wa’ rep',
            hh: translate,
            d: 'wa’ jaj',
            dd: translate,
            M: 'wa’ jar',
            MM: translate,
            y: 'wa’ DIS',
            yy: translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return tlh;

})));
//! moment.js locale configuration
//! locale : Turkish [tr]
//! authors : Erhan Gundogan : https://github.com/erhangundogan,
//!           Burak Yiğit Kaya: https://github.com/BYK

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var suffixes = {
        1: "'inci",
        5: "'inci",
        8: "'inci",
        70: "'inci",
        80: "'inci",
        2: "'nci",
        7: "'nci",
        20: "'nci",
        50: "'nci",
        3: "'üncü",
        4: "'üncü",
        100: "'üncü",
        6: "'ncı",
        9: "'uncu",
        10: "'uncu",
        30: "'uncu",
        60: "'ıncı",
        90: "'ıncı",
    };

    var tr = moment.defineLocale('tr', {
        months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
            '_'
        ),
        monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
        weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
            '_'
        ),
        weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
        weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
        meridiem: function (hours, minutes, isLower) {
            if (hours < 12) {
                return isLower ? 'öö' : 'ÖÖ';
            } else {
                return isLower ? 'ös' : 'ÖS';
            }
        },
        meridiemParse: /öö|ÖÖ|ös|ÖS/,
        isPM: function (input) {
            return input === 'ös' || input === 'ÖS';
        },
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[bugün saat] LT',
            nextDay: '[yarın saat] LT',
            nextWeek: '[gelecek] dddd [saat] LT',
            lastDay: '[dün] LT',
            lastWeek: '[geçen] dddd [saat] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s sonra',
            past: '%s önce',
            s: 'birkaç saniye',
            ss: '%d saniye',
            m: 'bir dakika',
            mm: '%d dakika',
            h: 'bir saat',
            hh: '%d saat',
            d: 'bir gün',
            dd: '%d gün',
            w: 'bir hafta',
            ww: '%d hafta',
            M: 'bir ay',
            MM: '%d ay',
            y: 'bir yıl',
            yy: '%d yıl',
        },
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'Do':
                case 'DD':
                    return number;
                default:
                    if (number === 0) {
                        // special case for zero
                        return number + "'ıncı";
                    }
                    var a = number % 10,
                        b = (number % 100) - a,
                        c = number >= 100 ? 100 : null;
                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return tr;

})));
//! moment.js locale configuration
//! locale : Talossan [tzl]
//! author : Robin van der Vliet : https://github.com/robin0van0der0v
//! author : Iustì Canun

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
    // This is currently too difficult (maybe even impossible) to add.
    var tzl = moment.defineLocale('tzl', {
        months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
            '_'
        ),
        monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
        weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
        weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
        weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
        longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM [dallas] YYYY',
            LLL: 'D. MMMM [dallas] YYYY HH.mm',
            LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
        },
        meridiemParse: /d\'o|d\'a/i,
        isPM: function (input) {
            return "d'o" === input.toLowerCase();
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours > 11) {
                return isLower ? "d'o" : "D'O";
            } else {
                return isLower ? "d'a" : "D'A";
            }
        },
        calendar: {
            sameDay: '[oxhi à] LT',
            nextDay: '[demà à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[ieiri à] LT',
            lastWeek: '[sür el] dddd [lasteu à] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'osprei %s',
            past: 'ja%s',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: '%d.',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var format = {
            s: ['viensas secunds', "'iensas secunds"],
            ss: [number + ' secunds', '' + number + ' secunds'],
            m: ["'n míut", "'iens míut"],
            mm: [number + ' míuts', '' + number + ' míuts'],
            h: ["'n þora", "'iensa þora"],
            hh: [number + ' þoras', '' + number + ' þoras'],
            d: ["'n ziua", "'iensa ziua"],
            dd: [number + ' ziuas', '' + number + ' ziuas'],
            M: ["'n mes", "'iens mes"],
            MM: [number + ' mesen', '' + number + ' mesen'],
            y: ["'n ar", "'iens ar"],
            yy: [number + ' ars', '' + number + ' ars'],
        };
        return isFuture
            ? format[key][0]
            : withoutSuffix
              ? format[key][0]
              : format[key][1];
    }

    return tzl;

})));
//! moment.js locale configuration
//! locale : Central Atlas Tamazight [tzm]
//! author : Abdel Said : https://github.com/abdelsaid

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var tzm = moment.defineLocale('tzm', {
        months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
            '_'
        ),
        monthsShort:
            'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
                '_'
            ),
        weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
        weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
        weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
            nextWeek: 'dddd [ⴴ] LT',
            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
            lastWeek: 'dddd [ⴴ] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
            past: 'ⵢⴰⵏ %s',
            s: 'ⵉⵎⵉⴽ',
            ss: '%d ⵉⵎⵉⴽ',
            m: 'ⵎⵉⵏⵓⴺ',
            mm: '%d ⵎⵉⵏⵓⴺ',
            h: 'ⵙⴰⵄⴰ',
            hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
            d: 'ⴰⵙⵙ',
            dd: '%d oⵙⵙⴰⵏ',
            M: 'ⴰⵢoⵓⵔ',
            MM: '%d ⵉⵢⵢⵉⵔⵏ',
            y: 'ⴰⵙⴳⴰⵙ',
            yy: '%d ⵉⵙⴳⴰⵙⵏ',
        },
        week: {
            dow: 6, // Saturday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return tzm;

})));
//! moment.js locale configuration
//! locale : Central Atlas Tamazight Latin [tzm-latn]
//! author : Abdel Said : https://github.com/abdelsaid

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var tzmLatn = moment.defineLocale('tzm-latn', {
        months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
            '_'
        ),
        monthsShort:
            'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
                '_'
            ),
        weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
        weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
        weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[asdkh g] LT',
            nextDay: '[aska g] LT',
            nextWeek: 'dddd [g] LT',
            lastDay: '[assant g] LT',
            lastWeek: 'dddd [g] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'dadkh s yan %s',
            past: 'yan %s',
            s: 'imik',
            ss: '%d imik',
            m: 'minuḍ',
            mm: '%d minuḍ',
            h: 'saɛa',
            hh: '%d tassaɛin',
            d: 'ass',
            dd: '%d ossan',
            M: 'ayowr',
            MM: '%d iyyirn',
            y: 'asgas',
            yy: '%d isgasn',
        },
        week: {
            dow: 6, // Saturday is the first day of the week.
            doy: 12, // The week that contains Jan 12th is the first week of the year.
        },
    });

    return tzmLatn;

})));
//! moment.js locale configuration
//! locale : Uyghur (China) [ug-cn]
//! author: boyaq : https://github.com/boyaq

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var ugCn = moment.defineLocale('ug-cn', {
        months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
            '_'
        ),
        monthsShort:
            'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
                '_'
            ),
        weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
            '_'
        ),
        weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
        weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
            LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
            LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
        },
        meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (
                meridiem === 'يېرىم كېچە' ||
                meridiem === 'سەھەر' ||
                meridiem === 'چۈشتىن بۇرۇن'
            ) {
                return hour;
            } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
                return hour + 12;
            } else {
                return hour >= 11 ? hour : hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            var hm = hour * 100 + minute;
            if (hm < 600) {
                return 'يېرىم كېچە';
            } else if (hm < 900) {
                return 'سەھەر';
            } else if (hm < 1130) {
                return 'چۈشتىن بۇرۇن';
            } else if (hm < 1230) {
                return 'چۈش';
            } else if (hm < 1800) {
                return 'چۈشتىن كېيىن';
            } else {
                return 'كەچ';
            }
        },
        calendar: {
            sameDay: '[بۈگۈن سائەت] LT',
            nextDay: '[ئەتە سائەت] LT',
            nextWeek: '[كېلەركى] dddd [سائەت] LT',
            lastDay: '[تۆنۈگۈن] LT',
            lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s كېيىن',
            past: '%s بۇرۇن',
            s: 'نەچچە سېكونت',
            ss: '%d سېكونت',
            m: 'بىر مىنۇت',
            mm: '%d مىنۇت',
            h: 'بىر سائەت',
            hh: '%d سائەت',
            d: 'بىر كۈن',
            dd: '%d كۈن',
            M: 'بىر ئاي',
            MM: '%d ئاي',
            y: 'بىر يىل',
            yy: '%d يىل',
        },

        dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'DDD':
                    return number + '-كۈنى';
                case 'w':
                case 'W':
                    return number + '-ھەپتە';
                default:
                    return number;
            }
        },
        preparse: function (string) {
            return string.replace(/،/g, ',');
        },
        postformat: function (string) {
            return string.replace(/,/g, '،');
        },
        week: {
            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 1st is the first week of the year.
        },
    });

    return ugCn;

})));
//! moment.js locale configuration
//! locale : Ukrainian [uk]
//! author : zemlanin : https://github.com/zemlanin
//! Author : Menelion Elensúle : https://github.com/Oire

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    function plural(word, num) {
        var forms = word.split('_');
        return num % 10 === 1 && num % 100 !== 11
            ? forms[0]
            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
              ? forms[1]
              : forms[2];
    }
    function relativeTimeWithPlural(number, withoutSuffix, key) {
        var format = {
            ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
            mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
            hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
            dd: 'день_дні_днів',
            MM: 'місяць_місяці_місяців',
            yy: 'рік_роки_років',
        };
        if (key === 'm') {
            return withoutSuffix ? 'хвилина' : 'хвилину';
        } else if (key === 'h') {
            return withoutSuffix ? 'година' : 'годину';
        } else {
            return number + ' ' + plural(format[key], +number);
        }
    }
    function weekdaysCaseReplace(m, format) {
        var weekdays = {
                nominative:
                    'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
                        '_'
                    ),
                accusative:
                    'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
                        '_'
                    ),
                genitive:
                    'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
                        '_'
                    ),
            },
            nounCase;

        if (m === true) {
            return weekdays['nominative']
                .slice(1, 7)
                .concat(weekdays['nominative'].slice(0, 1));
        }
        if (!m) {
            return weekdays['nominative'];
        }

        nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
            ? 'accusative'
            : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
              ? 'genitive'
              : 'nominative';
        return weekdays[nounCase][m.day()];
    }
    function processHoursFunction(str) {
        return function () {
            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
        };
    }

    var uk = moment.defineLocale('uk', {
        months: {
            format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
                '_'
            ),
            standalone:
                'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
                    '_'
                ),
        },
        monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
            '_'
        ),
        weekdays: weekdaysCaseReplace,
        weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY р.',
            LLL: 'D MMMM YYYY р., HH:mm',
            LLLL: 'dddd, D MMMM YYYY р., HH:mm',
        },
        calendar: {
            sameDay: processHoursFunction('[Сьогодні '),
            nextDay: processHoursFunction('[Завтра '),
            lastDay: processHoursFunction('[Вчора '),
            nextWeek: processHoursFunction('[У] dddd ['),
            lastWeek: function () {
                switch (this.day()) {
                    case 0:
                    case 3:
                    case 5:
                    case 6:
                        return processHoursFunction('[Минулої] dddd [').call(this);
                    case 1:
                    case 2:
                    case 4:
                        return processHoursFunction('[Минулого] dddd [').call(this);
                }
            },
            sameElse: 'L',
        },
        relativeTime: {
            future: 'за %s',
            past: '%s тому',
            s: 'декілька секунд',
            ss: relativeTimeWithPlural,
            m: relativeTimeWithPlural,
            mm: relativeTimeWithPlural,
            h: 'годину',
            hh: relativeTimeWithPlural,
            d: 'день',
            dd: relativeTimeWithPlural,
            M: 'місяць',
            MM: relativeTimeWithPlural,
            y: 'рік',
            yy: relativeTimeWithPlural,
        },
        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
        meridiemParse: /ночі|ранку|дня|вечора/,
        isPM: function (input) {
            return /^(дня|вечора)$/.test(input);
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 4) {
                return 'ночі';
            } else if (hour < 12) {
                return 'ранку';
            } else if (hour < 17) {
                return 'дня';
            } else {
                return 'вечора';
            }
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'M':
                case 'd':
                case 'DDD':
                case 'w':
                case 'W':
                    return number + '-й';
                case 'D':
                    return number + '-го';
                default:
                    return number;
            }
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return uk;

})));
//! moment.js locale configuration
//! locale : Urdu [ur]
//! author : Sawood Alam : https://github.com/ibnesayeed
//! author : Zack : https://github.com/ZackVision

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var months = [
            'جنوری',
            'فروری',
            'مارچ',
            'اپریل',
            'مئی',
            'جون',
            'جولائی',
            'اگست',
            'ستمبر',
            'اکتوبر',
            'نومبر',
            'دسمبر',
        ],
        days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];

    var ur = moment.defineLocale('ur', {
        months: months,
        monthsShort: months,
        weekdays: days,
        weekdaysShort: days,
        weekdaysMin: days,
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd، D MMMM YYYY HH:mm',
        },
        meridiemParse: /صبح|شام/,
        isPM: function (input) {
            return 'شام' === input;
        },
        meridiem: function (hour, minute, isLower) {
            if (hour < 12) {
                return 'صبح';
            }
            return 'شام';
        },
        calendar: {
            sameDay: '[آج بوقت] LT',
            nextDay: '[کل بوقت] LT',
            nextWeek: 'dddd [بوقت] LT',
            lastDay: '[گذشتہ روز بوقت] LT',
            lastWeek: '[گذشتہ] dddd [بوقت] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s بعد',
            past: '%s قبل',
            s: 'چند سیکنڈ',
            ss: '%d سیکنڈ',
            m: 'ایک منٹ',
            mm: '%d منٹ',
            h: 'ایک گھنٹہ',
            hh: '%d گھنٹے',
            d: 'ایک دن',
            dd: '%d دن',
            M: 'ایک ماہ',
            MM: '%d ماہ',
            y: 'ایک سال',
            yy: '%d سال',
        },
        preparse: function (string) {
            return string.replace(/،/g, ',');
        },
        postformat: function (string) {
            return string.replace(/,/g, '،');
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return ur;

})));
//! moment.js locale configuration
//! locale : Uzbek [uz]
//! author : Sardor Muminov : https://github.com/muminoff

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var uz = moment.defineLocale('uz', {
        months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
            '_'
        ),
        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
        weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
        weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
        weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'D MMMM YYYY, dddd HH:mm',
        },
        calendar: {
            sameDay: '[Бугун соат] LT [да]',
            nextDay: '[Эртага] LT [да]',
            nextWeek: 'dddd [куни соат] LT [да]',
            lastDay: '[Кеча соат] LT [да]',
            lastWeek: '[Утган] dddd [куни соат] LT [да]',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'Якин %s ичида',
            past: 'Бир неча %s олдин',
            s: 'фурсат',
            ss: '%d фурсат',
            m: 'бир дакика',
            mm: '%d дакика',
            h: 'бир соат',
            hh: '%d соат',
            d: 'бир кун',
            dd: '%d кун',
            M: 'бир ой',
            MM: '%d ой',
            y: 'бир йил',
            yy: '%d йил',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return uz;

})));
//! moment.js locale configuration
//! locale : Uzbek Latin [uz-latn]
//! author : Rasulbek Mirzayev : github.com/Rasulbeeek

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var uzLatn = moment.defineLocale('uz-latn', {
        months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
            '_'
        ),
        monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
        weekdays:
            'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
                '_'
            ),
        weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
        weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'D MMMM YYYY, dddd HH:mm',
        },
        calendar: {
            sameDay: '[Bugun soat] LT [da]',
            nextDay: '[Ertaga] LT [da]',
            nextWeek: 'dddd [kuni soat] LT [da]',
            lastDay: '[Kecha soat] LT [da]',
            lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
            sameElse: 'L',
        },
        relativeTime: {
            future: 'Yaqin %s ichida',
            past: 'Bir necha %s oldin',
            s: 'soniya',
            ss: '%d soniya',
            m: 'bir daqiqa',
            mm: '%d daqiqa',
            h: 'bir soat',
            hh: '%d soat',
            d: 'bir kun',
            dd: '%d kun',
            M: 'bir oy',
            MM: '%d oy',
            y: 'bir yil',
            yy: '%d yil',
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 7, // The week that contains Jan 7th is the first week of the year.
        },
    });

    return uzLatn;

})));
//! moment.js locale configuration
//! locale : Vietnamese [vi]
//! author : Bang Nguyen : https://github.com/bangnk
//! author : Chien Kira : https://github.com/chienkira

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var vi = moment.defineLocale('vi', {
        months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
            '_'
        ),
        monthsShort:
            'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
            '_'
        ),
        weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
        weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
        weekdaysParseExact: true,
        meridiemParse: /sa|ch/i,
        isPM: function (input) {
            return /^ch$/i.test(input);
        },
        meridiem: function (hours, minutes, isLower) {
            if (hours < 12) {
                return isLower ? 'sa' : 'SA';
            } else {
                return isLower ? 'ch' : 'CH';
            }
        },
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM [năm] YYYY',
            LLL: 'D MMMM [năm] YYYY HH:mm',
            LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
            l: 'DD/M/YYYY',
            ll: 'D MMM YYYY',
            lll: 'D MMM YYYY HH:mm',
            llll: 'ddd, D MMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[Hôm nay lúc] LT',
            nextDay: '[Ngày mai lúc] LT',
            nextWeek: 'dddd [tuần tới lúc] LT',
            lastDay: '[Hôm qua lúc] LT',
            lastWeek: 'dddd [tuần trước lúc] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: '%s tới',
            past: '%s trước',
            s: 'vài giây',
            ss: '%d giây',
            m: 'một phút',
            mm: '%d phút',
            h: 'một giờ',
            hh: '%d giờ',
            d: 'một ngày',
            dd: '%d ngày',
            w: 'một tuần',
            ww: '%d tuần',
            M: 'một tháng',
            MM: '%d tháng',
            y: 'một năm',
            yy: '%d năm',
        },
        dayOfMonthOrdinalParse: /\d{1,2}/,
        ordinal: function (number) {
            return number;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return vi;

})));
//! moment.js locale configuration
//! locale : Pseudo [x-pseudo]
//! author : Andrew Hood : https://github.com/andrewhood125

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var xPseudo = moment.defineLocale('x-pseudo', {
        months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
            '_'
        ),
        monthsShort:
            'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
                '_'
            ),
        monthsParseExact: true,
        weekdays:
            'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
                '_'
            ),
        weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
        weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
        weekdaysParseExact: true,
        longDateFormat: {
            LT: 'HH:mm',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm',
        },
        calendar: {
            sameDay: '[T~ódá~ý át] LT',
            nextDay: '[T~ómó~rró~w át] LT',
            nextWeek: 'dddd [át] LT',
            lastDay: '[Ý~ést~érdá~ý át] LT',
            lastWeek: '[L~ást] dddd [át] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'í~ñ %s',
            past: '%s á~gó',
            s: 'á ~féw ~sécó~ñds',
            ss: '%d s~écóñ~ds',
            m: 'á ~míñ~úté',
            mm: '%d m~íñú~tés',
            h: 'á~ñ hó~úr',
            hh: '%d h~óúrs',
            d: 'á ~dáý',
            dd: '%d d~áýs',
            M: 'á ~móñ~th',
            MM: '%d m~óñt~hs',
            y: 'á ~ýéár',
            yy: '%d ý~éárs',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
        ordinal: function (number) {
            var b = number % 10,
                output =
                    ~~((number % 100) / 10) === 1
                        ? 'th'
                        : b === 1
                          ? 'st'
                          : b === 2
                            ? 'nd'
                            : b === 3
                              ? 'rd'
                              : 'th';
            return number + output;
        },
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return xPseudo;

})));
//! moment.js locale configuration
//! locale : Yoruba Nigeria [yo]
//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var yo = moment.defineLocale('yo', {
        months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
            '_'
        ),
        monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
        weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
        weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
        weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
        longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A',
        },
        calendar: {
            sameDay: '[Ònì ni] LT',
            nextDay: '[Ọ̀la ni] LT',
            nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
            lastDay: '[Àna ni] LT',
            lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
            sameElse: 'L',
        },
        relativeTime: {
            future: 'ní %s',
            past: '%s kọjá',
            s: 'ìsẹjú aayá die',
            ss: 'aayá %d',
            m: 'ìsẹjú kan',
            mm: 'ìsẹjú %d',
            h: 'wákati kan',
            hh: 'wákati %d',
            d: 'ọjọ́ kan',
            dd: 'ọjọ́ %d',
            M: 'osù kan',
            MM: 'osù %d',
            y: 'ọdún kan',
            yy: 'ọdún %d',
        },
        dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
        ordinal: 'ọjọ́ %d',
        week: {
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return yo;

})));
//! moment.js locale configuration
//! locale : Chinese (China) [zh-cn]
//! author : suupic : https://github.com/suupic
//! author : Zeno Zeng : https://github.com/zenozeng
//! author : uu109 : https://github.com/uu109

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var zhCn = moment.defineLocale('zh-cn', {
        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
            '_'
        ),
        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
            '_'
        ),
        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
        weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日Ah点mm分',
            LLLL: 'YYYY年M月D日ddddAh点mm分',
            l: 'YYYY/M/D',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm',
        },
        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
                return hour;
            } else if (meridiem === '下午' || meridiem === '晚上') {
                return hour + 12;
            } else {
                // '中午'
                return hour >= 11 ? hour : hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            var hm = hour * 100 + minute;
            if (hm < 600) {
                return '凌晨';
            } else if (hm < 900) {
                return '早上';
            } else if (hm < 1130) {
                return '上午';
            } else if (hm < 1230) {
                return '中午';
            } else if (hm < 1800) {
                return '下午';
            } else {
                return '晚上';
            }
        },
        calendar: {
            sameDay: '[今天]LT',
            nextDay: '[明天]LT',
            nextWeek: function (now) {
                if (now.week() !== this.week()) {
                    return '[下]dddLT';
                } else {
                    return '[本]dddLT';
                }
            },
            lastDay: '[昨天]LT',
            lastWeek: function (now) {
                if (this.week() !== now.week()) {
                    return '[上]dddLT';
                } else {
                    return '[本]dddLT';
                }
            },
            sameElse: 'L',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'DDD':
                    return number + '日';
                case 'M':
                    return number + '月';
                case 'w':
                case 'W':
                    return number + '周';
                default:
                    return number;
            }
        },
        relativeTime: {
            future: '%s后',
            past: '%s前',
            s: '几秒',
            ss: '%d 秒',
            m: '1 分钟',
            mm: '%d 分钟',
            h: '1 小时',
            hh: '%d 小时',
            d: '1 天',
            dd: '%d 天',
            w: '1 周',
            ww: '%d 周',
            M: '1 个月',
            MM: '%d 个月',
            y: '1 年',
            yy: '%d 年',
        },
        week: {
            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
            dow: 1, // Monday is the first day of the week.
            doy: 4, // The week that contains Jan 4th is the first week of the year.
        },
    });

    return zhCn;

})));
//! moment.js locale configuration
//! locale : Chinese (Hong Kong) [zh-hk]
//! author : Ben : https://github.com/ben-lin
//! author : Chris Lam : https://github.com/hehachris
//! author : Konstantin : https://github.com/skfd
//! author : Anthony : https://github.com/anthonylau

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var zhHk = moment.defineLocale('zh-hk', {
        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
            '_'
        ),
        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
            '_'
        ),
        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日dddd HH:mm',
            l: 'YYYY/M/D',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm',
        },
        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
                return hour;
            } else if (meridiem === '中午') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === '下午' || meridiem === '晚上') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            var hm = hour * 100 + minute;
            if (hm < 600) {
                return '凌晨';
            } else if (hm < 900) {
                return '早上';
            } else if (hm < 1200) {
                return '上午';
            } else if (hm === 1200) {
                return '中午';
            } else if (hm < 1800) {
                return '下午';
            } else {
                return '晚上';
            }
        },
        calendar: {
            sameDay: '[今天]LT',
            nextDay: '[明天]LT',
            nextWeek: '[下]ddddLT',
            lastDay: '[昨天]LT',
            lastWeek: '[上]ddddLT',
            sameElse: 'L',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'DDD':
                    return number + '日';
                case 'M':
                    return number + '月';
                case 'w':
                case 'W':
                    return number + '週';
                default:
                    return number;
            }
        },
        relativeTime: {
            future: '%s後',
            past: '%s前',
            s: '幾秒',
            ss: '%d 秒',
            m: '1 分鐘',
            mm: '%d 分鐘',
            h: '1 小時',
            hh: '%d 小時',
            d: '1 天',
            dd: '%d 天',
            M: '1 個月',
            MM: '%d 個月',
            y: '1 年',
            yy: '%d 年',
        },
    });

    return zhHk;

})));
//! moment.js locale configuration
//! locale : Chinese (Macau) [zh-mo]
//! author : Ben : https://github.com/ben-lin
//! author : Chris Lam : https://github.com/hehachris
//! author : Tan Yuanhong : https://github.com/le0tan

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var zhMo = moment.defineLocale('zh-mo', {
        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
            '_'
        ),
        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
            '_'
        ),
        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日dddd HH:mm',
            l: 'D/M/YYYY',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm',
        },
        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
                return hour;
            } else if (meridiem === '中午') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === '下午' || meridiem === '晚上') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            var hm = hour * 100 + minute;
            if (hm < 600) {
                return '凌晨';
            } else if (hm < 900) {
                return '早上';
            } else if (hm < 1130) {
                return '上午';
            } else if (hm < 1230) {
                return '中午';
            } else if (hm < 1800) {
                return '下午';
            } else {
                return '晚上';
            }
        },
        calendar: {
            sameDay: '[今天] LT',
            nextDay: '[明天] LT',
            nextWeek: '[下]dddd LT',
            lastDay: '[昨天] LT',
            lastWeek: '[上]dddd LT',
            sameElse: 'L',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'DDD':
                    return number + '日';
                case 'M':
                    return number + '月';
                case 'w':
                case 'W':
                    return number + '週';
                default:
                    return number;
            }
        },
        relativeTime: {
            future: '%s內',
            past: '%s前',
            s: '幾秒',
            ss: '%d 秒',
            m: '1 分鐘',
            mm: '%d 分鐘',
            h: '1 小時',
            hh: '%d 小時',
            d: '1 天',
            dd: '%d 天',
            M: '1 個月',
            MM: '%d 個月',
            y: '1 年',
            yy: '%d 年',
        },
    });

    return zhMo;

})));
//! moment.js locale configuration
//! locale : Chinese (Taiwan) [zh-tw]
//! author : Ben : https://github.com/ben-lin
//! author : Chris Lam : https://github.com/hehachris

;(function (global, factory) {
    true ? factory(__webpack_require__(8)) :
   undefined
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var zhTw = moment.defineLocale('zh-tw', {
        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
            '_'
        ),
        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
            '_'
        ),
        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
        longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日dddd HH:mm',
            l: 'YYYY/M/D',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm',
        },
        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
        meridiemHour: function (hour, meridiem) {
            if (hour === 12) {
                hour = 0;
            }
            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
                return hour;
            } else if (meridiem === '中午') {
                return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === '下午' || meridiem === '晚上') {
                return hour + 12;
            }
        },
        meridiem: function (hour, minute, isLower) {
            var hm = hour * 100 + minute;
            if (hm < 600) {
                return '凌晨';
            } else if (hm < 900) {
                return '早上';
            } else if (hm < 1130) {
                return '上午';
            } else if (hm < 1230) {
                return '中午';
            } else if (hm < 1800) {
                return '下午';
            } else {
                return '晚上';
            }
        },
        calendar: {
            sameDay: '[今天] LT',
            nextDay: '[明天] LT',
            nextWeek: '[下]dddd LT',
            lastDay: '[昨天] LT',
            lastWeek: '[上]dddd LT',
            sameElse: 'L',
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
        ordinal: function (number, period) {
            switch (period) {
                case 'd':
                case 'D':
                case 'DDD':
                    return number + '日';
                case 'M':
                    return number + '月';
                case 'w':
                case 'W':
                    return number + '週';
                default:
                    return number;
            }
        },
        relativeTime: {
            future: '%s後',
            past: '%s前',
            s: '幾秒',
            ss: '%d 秒',
            m: '1 分鐘',
            mm: '%d 分鐘',
            h: '1 小時',
            hh: '%d 小時',
            d: '1 天',
            dd: '%d 天',
            M: '1 個月',
            MM: '%d 個月',
            y: '1 年',
            yy: '%d 年',
        },
    });

    return zhTw;

})));
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(614);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5bfea607_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1213);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3271)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5bfea607_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5bfea607_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3272);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1fe720fc", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body.modal-open{position:fixed;width:100%}.boxSizing{box-sizing:border-box;-webkit-box-sizing:border-box}[v-cloak]{display:none!important}.questionIndex{background:#f2f2f2}.questionIndex>div{padding:0 15px}.questionIndex .mask1{width:100%;height:100%;background:#fff;position:fixed;z-index:1000;padding:.8rem}.questionIndex .mask1 .fail{width:50%;height:auto;position:absolute;left:50%;top:37%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center}.questionIndex .mask1 .fail img{width:48px;height:auto;display:block;margin:0 auto}.questionIndex .mask1 .fail span{margin-top:.5rem;color:#333;font:16px/1rem PingFangSC-Regular}.questionIndex .mask1 .load{position:absolute;width:5rem;height:5rem;top:50%;left:50%;margin-top:-2.5rem;margin-left:-2.5rem;display:inline-block;vertical-align:middle;-webkit-animation:a 1.5s infinite;animation:a 1.5s infinite;background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=);background-size:100%;background-position:50%}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.questionIndex header{color:#333;padding:15px;box-sizing:border-box;-webkit-box-sizing:border-box}.questionIndex header p{font-family:PingFangSC-Regular}.questionIndex header .headlines{font-size:24px;font-weight:600;text-align:center;border-bottom:1px solid #e6e6e6;padding-bottom:.8rem}.questionIndex header .headDesc{margin-top:.9rem;font-size:18px;color:#333;font-family:PingFangSC-Regular,PingFang SC;line-height:1.5rem}.questionIndex header .headDesc p{font-size:18px}.questionIndex header img{max-width:100%;border-radius:3px}.questionIndex .questionList{background:#f2f2f2}.questionIndex .questionList li.item{padding:15px;margin-top:15px;background:#fff;border-radius:8px;box-sizing:border-box;-webkit-box-sizing:border-box;box-shadow:0 -1px 10px 2px rgba(0,0,0,.1)}.questionIndex .questionList li.item .itemTit span{color:#333;font-size:17px;font-family:PingFangSC-Regular;font-weight:600;display:inline}.questionIndex .questionList li.item .itemTit span.itemType2{font-size:14px;color:#999;font-weight:100}.questionIndex .questionList li.item .itemTit .icon1{color:#ee4545}.questionIndex .questionList li.item .imgs img{width:100%;height:7rem;display:block;margin-top:12px;border-radius:3px}.questionIndex .questionList li.item .videos{position:relative}.questionIndex .questionList li.item .videos video{width:100%;height:7rem;display:block;margin-top:4px;border-radius:3px;background:#333;object-fit:fill}.questionIndex .questionList li.item .videos span{position:absolute;width:2.4rem;height:2.4rem;background:url(" + escape(__webpack_require__(170)) + ") no-repeat;background-size:100% 100%;top:50%;left:50%;margin-top:-1.2rem;margin-left:-1.2rem;z-index:100}.questionIndex .questionList li.item .itemDesc{color:#666;font-size:14px;margin-top:5px}.questionIndex .questionList li.item .subject{margin-top:10px;border:1px solid #e3e3e3;border-radius:3px}.questionIndex .questionList li.item .subject li{border-top:1px solid #e3e3e3;padding:10px;position:relative;box-sizing:border-box;-webkit-box-sizing:border-box}.questionIndex .questionList li.item .subject li.hasImg{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.questionIndex .questionList li.item .subject li.hasImg .imgBox2{margin-left:12px;width:3.3rem;height:3.3rem;position:relative}.questionIndex .questionList li.item .subject li.hasImg .imgBox2 img{width:100%;height:100%}.questionIndex .questionList li.item .subject li.hasImg .imgBox2 span{position:absolute;width:1.7rem;height:.9rem;line-height:.9rem;background:#377ee1;color:#fff;text-align:center;right:0;bottom:0;font-size:11px}.questionIndex .questionList li.item .subject li.hasImg .icon2{position:static}.questionIndex .questionList li.item .subject li.hasImg span:last-child{margin-left:8px}.questionIndex .questionList li.item .subject li:first-child{border-top:none}.questionIndex .questionList li.item .subject li span:nth-of-type(2){margin-left:20px;font-size:16px;color:#333}.questionIndex .questionList li.item .subject li .icon2{position:absolute;top:15px;left:10px;width:15px;height:15px;background:url(" + escape(__webpack_require__(3273)) + ") no-repeat 50%;background-size:100%}.questionIndex .questionList li.item .subject li .icon2.active{background:url(" + escape(__webpack_require__(3274)) + ") no-repeat 50%;background-size:100%}.questionIndex .questionList li.item .subject li .otherText input{height:40px}.questionIndex .questionList li.item textarea{margin-top:10px;width:100%;color:#333;padding:5px;border-radius:3px;border:1px solid #e3e3e3;box-sizing:border-box;-webkit-box-sizing:border-box}.questionIndex .questionList li.item .selectBox{margin-top:10px;height:43px;position:relative;background:#f4f5f7}.questionIndex .questionList li.item .selectBox div{width:auto;height:auto;position:absolute;top:12px;left:0;text-indent:10px;color:#666}.questionIndex .questionList li.item .selectBox select{color:#666;border:none;border:1px solid #d0d1d3}.questionIndex .questionList li.item .selectBox .downicon{position:absolute;right:12px;top:18px;width:10px;height:7px;background:url(" + escape(__webpack_require__(1463)) + ") no-repeat 50%;background-size:100% 100%}.questionIndex .questionList li.item input[type=number],.questionIndex .questionList li.item input[type=text]{margin-top:10px;border:1px solid #d0d1d3;height:44px;line-height:44px;text-indent:10px;color:#333;background:#f4f5f7}.questionIndex .questionList li.item .date{position:relative}.questionIndex .questionList li.item .date input{text-indent:40px;width:100%}.questionIndex .questionList li.item .date .dateIcon{position:absolute;width:19px;height:18px;top:23px;left:10px;background:url(" + escape(__webpack_require__(3275)) + ") no-repeat 50%;background-size:100%}.questionIndex .questionList li.item .date .mask{position:absolute;top:9px;left:0;width:100%;height:44px;background:transparent}.questionIndex .questionList li.item .imgBox{width:100%;padding:9px 3% 5%;box-sizing:border-box;-webkit-box-sizing:border-box;overflow:hidden;background:#fff}.questionIndex .questionList li.item .imgBox .imglist{width:63px;height:63px;margin-right:10px;margin-bottom:10px;position:relative;float:left}.questionIndex .questionList li.item .imgBox .imglist .closeImg{position:absolute;width:16px;height:16px;border-radius:50%;-webkit-border-radius:50%;top:-8px;right:-8px;background-image:url(" + escape(__webpack_require__(818)) + ");background-repeat:no-repeat;background-position:0;background-size:100%}.questionIndex .questionList li.item .imgBox .imglist img{width:100%;height:100%;border-radius:3px;-webkit-border-radius:3px;border:1px solid #cfcfd8}.questionIndex .questionList li.item .imgBox .addImg{background:#fff;border:1px solid #cfcfd8;border-radius:3px;-webkit-border-radius:3px;width:63px;height:63px;background-image:url(" + escape(__webpack_require__(266)) + ");background-repeat:no-repeat;background-position:50%;background-size:32px 32px;float:left}.questionIndex .questionList li.item .imgBox .putPhoto{width:100%;height:100%;opacity:0}.questionIndex .questionList li.item:first-child{margin-top:0}.questionIndex .questionList li.location{padding:15px;background:#fff}.questionIndex .questionList li.location hr{border-top:1px solid #e6e6e6;margin-top:0}.questionIndex .questionList li.location .tit{height:1.5rem;line-height:1.5rem}.questionIndex .questionList li.location .tit i{float:left;width:.8rem;height:1.5rem;background:url(" + escape(__webpack_require__(3276)) + ") no-repeat 50%;background-size:100% .9rem}.questionIndex .questionList li.location .tit div{float:left;font-size:17px;color:#333;font-weight:600;margin-left:.2rem;max-width:-webkit-calc(100% - 1rem);max-width:calc(100% - 1rem)}.questionIndex .questionList li.location .tit button{float:right;width:3.6rem;height:1.4rem;line-height:1.4rem;border-radius:.7rem;border:1px solid #377ee1;color:#377ee1;text-align:center;font-size:12px;margin-top:1px}.questionIndex .questionList li.location .desc{font-size:14px;color:#666;line-height:20px;margin-top:6px}.questionIndex .questionList li.footerComm{color:#333;padding:15px;box-sizing:border-box;-webkit-box-sizing:border-box;background:#fff;font-size:18px;margin:6px 0}.questionIndex .questionList li.footerComm img{max-width:100%}.questionIndex .questionList li.subbtn{background:#fff;margin-top:20px}.questionIndex .questionList li.subbtn span{display:block;background:#fe632a;border-radius:4px;color:#fff;height:44px;line-height:44px;text-align:center}.complate{background:#fff;position:absolute;top:0;left:0;width:100%;min-height:100%;background:#f2f2f2}.complate .exam{padding:.4rem .25rem;min-height:100%;box-sizing:border-box}.complate .exam .noResult{position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;background:#fff}.complate .exam .noResult span{display:block;margin:0 auto}.complate .exam .noResult .resultIcon{width:3rem;height:3rem;background:url(" + escape(__webpack_require__(3277)) + ") no-repeat;background-size:100% 100%;margin-top:3.5rem}.complate .exam .noResult .resultText{margin-top:.6rem;color:#333;font-size:18px;line-height:25px}.complate .exam .noResult .resultText2{margin-top:.4rem;color:#999;line-height:22px;font-size:16px}.complate .exam .noResult .closeBtn{width:90%;margin-left:5%;height:44px;line-height:44px;color:#fff;text-align:center;font-size:18px;border-radius:22px;margin-top:3.65rem;background:#377ee1}.complate .exam .shade{width:100%;height:6.75rem;position:absolute;left:0;top:0;background:-webkit-gradient(linear,left top,left bottom,from(#377ee1),to(rgba(55,126,225,0)));background:linear-gradient(180deg,#377ee1,rgba(55,126,225,0))}.complate .exam .examHeader{background:#fff;position:relative;z-index:10}.complate .exam .examHeader .headerImg{width:88%;margin-left:6%;min-height:5.25rem;text-align:center;border-bottom:1px solid #ddd;box-sizing:border-box;padding:1rem 0 .5rem}.complate .exam .examHeader .headerImg img{width:2.4rem;height:2.4rem;border-radius:50%;display:block;margin:0 auto .1rem}.complate .exam .examHeader .headerImg span{display:inline-block;max-width:90%;font-size:16px;color:#333}.complate .exam .examHeader .scoreBox{-ms-flex-align:center}.complate .exam .examHeader .scoreBox,.complate .exam .examHeader .scoreBox .scoreModel{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;align-items:center;-webkit-align-items:center}.complate .exam .examHeader .scoreBox .scoreModel{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-flex:1;height:4.5rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-ms-flex-align:center}.complate .exam .examHeader .scoreBox .scoreModel span{font-size:12px;color:#333}.complate .exam .examHeader .scoreBox .scoreModel div{font-size:12px;color:#999}.complate .exam .examHeader .scoreBox .scoreModel div i{font-size:28px;line-height:39px;color:#333}.complate .exam .examHeader .scoreBox .cut{width:1px;height:1.4rem;background:#ddd}.complate .exam .examHeader .scoreBox .subject{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-flex:1;height:4.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.complate .exam .examHeader .scoreBox .subject span{font-size:12px;color:#333}.complate .exam .examHeader .scoreBox .subject div{font-size:12px;color:#999}.complate .exam .examHeader .scoreBox .subject div i{font-size:28px;line-height:39px;color:#333}.complate .exam .luck-box{margin:.4rem 0 0;background:-webkit-gradient(linear,left top,left bottom,color-stop(1%,#ee565d),to(#e4363d));background:linear-gradient(180deg,#ee565d 1%,#e4363d);border-radius:.3rem;position:relative;padding:.6rem 0}.complate .exam .luck-box:after{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background:url(" + escape(__webpack_require__(3278)) + ") repeat-y;background-size:100% 1.85rem;z-index:50}.complate .exam .luck-box .circle{width:96%;margin-left:2%;height:1.2rem;background:url(" + escape(__webpack_require__(3279)) + ") repeat-y;background-size:100% 100%;position:relative;z-index:100}.complate .exam .luck-box .text-box{position:relative;z-index:100;width:89%;top:-.7rem;margin-left:5.5%;min-height:4.5rem;background:#fff -webkit-gradient(linear,left top,left bottom,from(#992111),color-stop(9%,#fffae6),to(#ffefc8));background:#fff linear-gradient(180deg,#992111,#fffae6 9%,#ffefc8);padding:.8rem;border-radius:.25rem;text-align:center;color:#a9531e;font:700 20px/1.4rem PingFangSC-Semibold\\,PingFang SC}.complate .exam .luck-box .luck-btns{position:relative;z-index:103;margin-top:.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.complate .exam .luck-box .luck-btns span{width:40%;height:1.85rem;text-align:center}.complate .exam .luck-box .luck-btns span.btn1{background:url(" + escape(__webpack_require__(3280)) + ") repeat-y;background-size:100% 100%;color:#ffdeb7;font:700 16px/1.85rem PingFangSC-Semibold}.complate .exam .luck-box .luck-btns span.btn2{background:url(" + escape(__webpack_require__(3281)) + ") repeat-y;background-size:100% 100%;color:#dd271e;font:700 16px/1.85rem PingFangSC-Semibold}.complate .exam .subList{margin-top:.4rem;background:#fff}.complate .exam .subList .tit{height:3.4rem;width:93%;margin-left:3.5%;border-bottom:1px solid #eff1f4;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.complate .exam .subList .tit span{font-size:20px;color:#333}.complate .exam .subList .tit div{height:25px;border:1px solid #377ee1;border-radius:2px;box-sizing:border-box}.complate .exam .subList .tit div i{display:table-cell;vertical-align:middle;width:3.2rem;height:24px;line-height:24px;text-align:center;color:#377ee1}.complate .exam .subList .tit div i.active{background:#377ee1;color:#fff}.complate .exam .subList .questionList .item ._selectTrue{font-size:14px;color:#666;margin-top:10px;padding:5px;background:#f4f5f7;box-sizing:border-box;-webkit-box-sizing:border-box;border:1px solid #ddd;border-radius:3px}.complate .exam .subList .questionList .item .dataSub,.complate .exam .subList .questionList .item input[type=number]{font-size:14px;color:#666}.complate .exam .subList .questionList .item .imgBox{margin-top:.8rem;padding:0}.complate .exam .subList .questionList .item .imgBox .imglist{position:relative}.complate .exam .subList .questionList .item .imgBox .imglist .imgIcon{position:absolute;width:1.7rem;height:18px;line-height:18px;background:#377ee1;color:#fff;text-align:center;right:0;bottom:0;font-size:11px}.complate .exam .subList .questionList .item .subject li>span{font-size:16px;color:#333}.complate .exam .subList .questionList .item .subject li.ansActive>span{color:#377ee1}.complate .exam .subList .questionList .item .subject li.hasImg .imgBox2{margin-left:0}.complate .exam .subList .fullMark{height:15rem;background:#fff}.complate .exam .subList .fullMark i{display:block;width:2.75rem;height:3.15rem;background:url(" + escape(__webpack_require__(3282)) + ") no-repeat;background-size:100% 100%;margin:2.5rem auto .4rem}.complate .exam .subList .fullMark span{display:block;text-align:center;font-size:16px;color:#333}.complate .exam .subList .examresult{font-size:14px;margin-top:.4rem}.complate .exam .subList .examresult .rightTrue{color:#333}.complate .exam .subList .examresult .false{color:#ee4545}.complate .exam .subList .examresult .ans{color:#333}.complate .typeBox span.icon{display:block}.complate.success .typeBox{padding-bottom:25px}.complate.success .typeBox .icon{width:48px;height:54px;background:url(" + escape(__webpack_require__(3283)) + ") no-repeat 50%;background-size:100%;margin:50px auto 15px}.complate.success .typeBox .text{text-align:center;font-size:20px;color:#ee4545}.complate.success .hr{background:#f2f2f2;height:10px}.complate.success .subText{padding:15px}.complate.success .subText p{margin-bottom:10px}.complate.success .subText br{height:0}.complate.success .subText img{width:100%}.complate.false .typeBox{position:absolute;width:250px;height:200px;top:50%;left:50%;margin-left:-125px;margin-top:-120px}.complate.false .typeBox .icon{width:80px;height:79px;background:url(" + escape(__webpack_require__(1680)) + ") no-repeat 50%;background-size:100%;margin:0 auto 10px}.complate.false .typeBox .text{font-size:20px;color:#333;text-align:center}.complate.false .typeBox .text1{font-size:16px;color:#333;text-align:center;margin-top:10px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/noCheck.38bb1d2.png";module.exports = __webpack_require__.p + "static/img/chose.2924cf4.png";module.exports = __webpack_require__.p + "static/img/down.44711c6.png";module.exports = __webpack_require__.p + "static/img/calendar.cfb097d.png";module.exports = __webpack_require__.p + "static/img/closeImg1.b8869b6.png";module.exports = __webpack_require__.p + "static/img/location.8633080.png";module.exports = __webpack_require__.p + "static/img/examSuccess.28ae795.png";module.exports = __webpack_require__.p + "static/img/bg.f7c1c0c.png";module.exports = __webpack_require__.p + "static/img/cirle.a0a9af0.png";module.exports = __webpack_require__.p + "static/img/btn1.0eeff30.png";module.exports = __webpack_require__.p + "static/img/btn2.02505e8.png";module.exports = __webpack_require__.p + "static/img/fullMark.96ca20f.png";module.exports = __webpack_require__.p + "static/img/subSuccess.79ba615.png";module.exports = __webpack_require__.p + "static/img/subFalse.4d73871.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(269));
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _moment = _interopRequireDefault(__webpack_require__(8));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {
    itemType: function itemType(val) {
      var itemType = '';
      switch (val) {
        case '0':
          itemType = '(单选)';
          break;
        case '2':
          itemType = '(多选)';
          break;
        default:
          itemType = '';
          break;
      }
      return itemType;
    }
  },
  data: function data() {
    return {
      no: this.$route.query.no,
      source: this.$route.query.source,
      // 来源，如果存在，在提交时需要作为参数提交
      questionType: '',
      // 为2时，代表是考试，否则是问卷
      result: {},
      imgsObj: {},
      ios: '',
      bucketUrl: '',
      token: '',
      subdata: {},
      fileids: [],
      mustAns: [],
      listShow: true,
      subSuccess: false,
      subFalse: false,
      subSuccessObj: {},
      pickerValue: '',
      subFlag: true,
      // 防止多次提交

      locationText: '获取当前所在位置',
      locationBtnText: '获取定位',
      showLocationBtn: true,
      bMap: null,
      showLoading: true,
      lon: '',
      lat: '',
      dateVal: '',
      // 日期选择器初始时间
      startDate: new Date('1900'),
      posterImg: __webpack_require__(3285),
      ModalHelper: null,
      userInfo: this.$store.state.userInfo || {},
      allSubjectFlag: true,
      // 是否查看所有结果,
      examResult: {},
      // 考试结果
      quesitionList: [],
      // 卡迫使结果题目列表
      uuId: this.$route.query.uuId,
      // 如果该参数有值，代表是直接查看考试结果

      fromLink: this.$route.query.fromLink,
      // 如果该参数为‘questionDealed’，则代表从在线问答已解决问题跳转过来
      questionId: this.$route.query.questionId,
      antitArr: ['A', 'B', 'C', 'D', 'E', 'F'],
      // 考试结果每一项的模板序列
      remarkCont: '',
      // 通过报表获取返回的remark值
      reportCode: '',
      // 问卷详情返回的报表code值
      luckData: {},
      // 回答完考卷后的抽奖信息

      failData: '' // 获取问卷详情接口返回500状态时的数据
    };
  },
  computed: {
    // 监控state数据
    showImgMask: function showImgMask() {
      return this.$store.state.showImgMask;
    }
  },
  watch: {
    result: function result(nval) {
      // console.log(JSON.stringify(nval));
      if (!(JSON.stringify(nval) == '{}')) {
        this.showLoading = false;
      }
    },
    showImgMask: function showImgMask(nval) {
      if (!this.ios) {
        if (nval) {
          (0, _jquery.default)('.newVideo').hide();
        } else {
          (0, _jquery.default)('.newVideo').show();
        }
      }
    }
  },
  created: function created() {
    var that = this;
    if (that._Util.isIOS) {
      that.ios = true;
    } else {
      that.ios = false;
    }
    // console.log(JSON.stringify(that.result) == "{}");判断对象是否为空

    if (that.uuId) {
      that.getExamResult(that.uuId, function () {
        that.showLoading = false;
        that.questionType = 2;
        that.subSuccess = true; // 提交成功后的文档
        that.listShow = false; // 考试题目
        that.subSuccessObj.status = 1;
        that._Util.collectPageView2({
          version: that._Util.version,
          postUrl: that._Api.POST_COLLECT,
          moduleType: '查看答案',
          operate_page: '查看答案',
          optionType: '打开',
          param1: '',
          param2: window.decodeURIComponent(location.href)
        }, that);
      });
    } else {
      that.getQuestionNaire();
    }
  },
  mounted: function mounted() {
    var that = this;
    setTimeout(function () {
      that._Util.post(that._Api.appGetQNToken, {}, function (data) {
        that.token = data.token;
        that.bucketUrl = data.bucketUrl;
        // if (that.ios) {
        //     that.upload();
        // }
      }, function () {}, that);
    }, 200);
    /* 防止滚动穿透*/
    that.ModalHelper = function (bodyCls) {
      var scrollTop;
      return {
        afterOpen: function afterOpen() {
          scrollTop = document.scrollingElement ? document.scrollingElement.scrollTop : document.body.scrollTop;
          document.body.classList.add(bodyCls);
          document.body.style.top = -scrollTop + 'px';
        },
        beforeClose: function beforeClose() {
          document.body.classList.remove(bodyCls);
          // scrollTop lost after set position:fixed, restore it back.
          if (document.scrollingElement) {
            document.scrollingElement.scrollTop = scrollTop;
          } else {
            document.body.scrollTop = scrollTop;
          }
        }
      };
    }('modal-open');
    // this.imgToBig();
  },
  methods: {
    /**
         * 如果详情数据里面有code，则请求报表接口,获取需要提交给后台的值
        */
    getCodeCont: function getCodeCont() {
      var that = this;
      var userId = localStorage.getItem('userId') || that.$store.state.userInfo.userId;
      var params = {
        code: that.reportCode,
        user_id: userId,
        pageNum: 1,
        pageSize: 10,
        data: that.$route.query.data || ''
      };
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, params, function (data) {
        var res = data.dataList[0];
        if (res.text && !that.result.comm) {
          // 如果有text参数，并且后台没有配置问卷头部说明（result.comm为空），那么该字段就当做头部说明显示
          that.result.comm = res.text;
        }
        if (res.remark) {
          that.remarkCont = res.remark;
        } else {
          that.remarkCont = 'error';
        }
      }, function () {}, that);
    },
    /** 进入页面记录埋点 */collect: function collect() {
      var that = this;
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        moduleType: that.questionType == 2 ? '试卷' : '问卷',
        operate_page: that.questionType == 2 ? '试卷' : '问卷',
        optionType: '打开',
        param1: that.result.title,
        param2: window.decodeURIComponent(location.href)
      }, that);
    },
    // 获取问卷信息
    getQuestionNaire: function getQuestionNaire() {
      var _this = this;
      var that = this;
      // that._Api.POST_GET_QUESTIONNAIRE
      var ajaxData = {
        no: that.no,
        data: this.$route.query.data || ''
      };
      that._Util.post(that._Api.POST_GET_QUESTIONNAIRE, ajaxData, function (data) {
        // 1.单选 2.多选 3. 问答题 4.数字题 5.时间选择题 6.上传
        if (data.questionnaire) {
          that.result = data.questionnaire;
          that.questionType = data.type;
          that.collect();
          // 如果有报表code值，就调用该报表
          if (that.result.reportCode) {
            that.reportCode = that.result.reportCode;
            setTimeout(function () {
              that.getCodeCont();
            }, 300);
          }
          that.result.surveyQuestionList.forEach(function (item, i) {
            if (item.type == 6 || item.type == 5) {
              // that.imgsObj[item.id] = [];
              that.$set(that.subdata, item.id, []);
            }
            if (item.property == 0) {
              // 必答题目
              that.mustAns.push({
                id: item.id,
                index: i + 1
              });
            }
            if (item.type == 0 || item.type == 2) {
              item.queOptionArray.forEach(function (v, index) {
                that.$set(v, index, '');
              });
            }
          });
          // console.log(that.mustAns)
        }
      }, function (failData) {
        if (failData.status === 500) {
          _this.failData = failData;
        }
        that.subFalse = true;
        that.listShow = false;
      }, that);
    },
    // 选择题勾选
    selectOpt: function selectOpt(v, index, parentArr, objitem, flag1) {
      var that = this;
      var textArr = v.option.split('//');
      // eslint-disable-next-line no-unused-vars
      var text = textArr[0];
      var flag = textArr[1];
      if (objitem.type == 0) {
        // 单选
        objitem.queOptionArray.forEach(function (item) {
          that.$set(item, 'active', false);
        });
        this.$set(v, 'active', true);
        if (that.questionType == 2) {
          // 考试
          that.subdata[objitem.id] = v.value;
        } else {
          // 问卷
          if (flag == 1) {
            that.subdata[objitem.id] = v.option.split('//')[0] + (v[index] ? '//' + v[index] : '');
          } else {
            that.subdata[objitem.id] = v.option.split('//')[0];
          }
        }
      } else if (objitem.type == 2) {
        // 多选
        if (!flag1) {
          this.$set(v, 'active', !v.active);
        }
        that.subdata[objitem.id] = [];
        if (that.questionType == 2) {
          // 考试
          objitem.queOptionArray.forEach(function (item, i) {
            if (item.active) {
              that.subdata[objitem.id].push(item.value);
            }
          });
        } else {
          // 问卷
          objitem.queOptionArray.forEach(function (item, i) {
            if (item.active) {
              if (item.option.split('//')[1] == 0) {
                that.subdata[objitem.id].push(item.option.split('//')[0]);
              } else {
                // console.log(item[index])
                that.subdata[objitem.id].push(item.option.split('//')[0] + (item[i] ? '//' + item[i] : ''));
              }
            }
          });
        }
        console.log(that.subdata[objitem.id]);
      }
    },
    // 单选或者多选每个选项的文字说明
    inputChange: function inputChange(e, v, index, parentArr, objitem) {
      v[index] = e.target.value;
      this.selectOpt(v, index, parentArr, objitem, true);
    },
    datePicker: function datePicker(objitem) {
      // eslint-disable-next-line no-unused-vars
      var that = this;
      this.dateVal = new Date();
      this.$refs.picker.id = objitem.id;
      this.$refs.picker.open();
      this.ModalHelper.afterOpen();
    },
    // 数字输入题过滤输入内容
    onlyNum: function onlyNum(e) {
      var self = e.target;
      var value = self.value;
      var lastVal = value.charAt(value.length - 1);
      var reg = new RegExp(/^\d+$/);
      if (!reg.test(lastVal)) {
        self.value = self.value.replace(/^\d+$/, '');
      }
    },
    // 时间选择器的确定事件
    handleConfirm: function handleConfirm(data) {
      console.log((0, _moment.default)(data).format('YYYY-MM-DD'));
      this.subdata[this.$refs.picker.id] = (0, _moment.default)(data).format('YYYY-MM-DD');
      this.ModalHelper.beforeClose();
    },
    // 时间选择题的取消事件
    cancle: function cancle() {
      this.ModalHelper.beforeClose();
    },
    upload: function upload(e, item) {
      var that = this;
      var file = e.target.files[0];
      if (file) {
        _mintUi.Indicator.open('上传中...');
        that._Util.watermarkImg(e, {
          txt: item.markWaterContent,
          direction: item.markWaterPosition,
          isLogo: item.markWaterType === 1
        }, function (fileData) {
          var formData = new FormData();
          formData.append('file', fileData);
          formData.append('token', that.token);
          var url = '';
          if (that.ios) {
            url = 'https://upload.qbox.me';
          } else {
            url = 'https://upload.qiniup.com';
          }
          _jquery.default.ajax({
            url: url,
            type: 'POST',
            dataType: 'json',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
          }).done(function (res) {
            _mintUi.Indicator.close();
            // eslint-disable-next-line no-unused-vars
            var obj = {
              'src': res.key
            };
            that.subdata[item.id].push(res.key);
            console.log;
          }).fail(function (err) {
            _mintUi.Indicator.close();
            console.log(err);
          });
        });
      }
    },
    delImg: function delImg(i, imgs) {
      imgs = imgs.splice(i, 1);
    },
    // 获取当前位置信息
    getLocation: function getLocation() {
      var that = this;
      if (!that.subFlag) {
        return;
      }
      that.subFlag = false;
      _mintUi.Indicator.open({
        spinnerType: 'fading-circle'
      });
      if (that._Util.isApp()) {
        that.isGetLocationService();
      } else {
        that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
          url: window.location.href
        }, function (data) {
          that.wxGetLocation(data);
        }, function () {}, that, true);
      }
    },
    // 判断app是否有定位权限
    isGetLocationService: function isGetLocationService() {
      var that = this;
      that.bMap = api.require('bMap');
      that.bMap.getLocationServices(function (ret, err) {
        if (ret.enable) {
          that.getLocationApp();
        } else {
          setTimeout(function () {
            return _mintUi.Indicator.close();
          }, 0);
          (0, _mintUi.Toast)({
            message: '手机未开启GPS定位'
          });
          that.subFlag = true;
        }
      });
    },
    // app获取定位信息
    getLocationApp: function getLocationApp() {
      // 获取经纬度
      var that = this;
      that.bMap.getLocation({
        accuracy: '100m',
        // 定位精度
        autoStop: true,
        filter: 1
      }, function (ret, err) {
        if (ret.status) {
          // alert(JSON.stringify(ret));
          that.lon = ret.lon;
          that.lat = ret.lat;
          that.getLocDetail();
        } else {
          // alert(JSON.stringify(err));
          // Toast({
          //     message: '获取位置细信息失败'
          // })
          setTimeout(function () {
            return _mintUi.Indicator.close();
          }, 0);
          that.locationText = '获取位置失败';
          that.locationBtnText = '重新定位';
          that.subFlag = true;
        }
      });
    },
    // app获取位置详情
    getLocDetail: function getLocDetail(lon, lat) {
      // 获取当前位置信息
      var that = this;
      that.bMap.getNameFromCoords({
        lon: that.lon,
        lat: that.lat
      }, function (ret, err) {
        if (ret.status) {
          // console.log(JSON.stringify(ret));
          setTimeout(function () {
            return _mintUi.Indicator.close();
          }, 0);
          that.locationText = ret.address;
          that.showLocationBtn = false;
        }
        if (err) {
          // Toast({
          //     message: '获取位置细信息失败'
          // })
          setTimeout(function () {
            return _mintUi.Indicator.close();
          }, 0);
          that.locationText = '获取位置失败';
          that.locationBtnText = '重新定位';
          that.subFlag = true;
        }
      });
    },
    // 微信端获取地理位置
    wxGetLocation: function wxGetLocation(config) {
      var that = this;
      _weixinJsSdk.default.config({
        debug: false,
        appId: config.appId,
        timestamp: config.timestamp,
        nonceStr: config.nonceStr,
        signature: config.signature,
        jsApiList: ['getLocation']
      });
      _weixinJsSdk.default.ready(function () {
        _weixinJsSdk.default.checkJsApi({
          jsApiList: ['getLocation'],
          success: function success(res) {
            if (res.checkResult.getLocation == false) {
              setTimeout(function () {
                return _mintUi.Indicator.close();
              }, 0);
              (0, _mintUi.Toast)({
                message: '你的微信版本太低，不支持微信JS接口，请升级到最新的微信版本！',
                duration: 2000
              });
              return;
            }
          }
        });
        _weixinJsSdk.default.error(function (res) {
          setTimeout(function () {
            return _mintUi.Indicator.close();
          }, 0);
          (0, _mintUi.Toast)({
            message: '获取位置信息失败,请稍后再试',
            duration: 2000
          });
          that.subFlag = true;
        });
        _weixinJsSdk.default.getLocation({
          success: function success(res) {
            // alert(JSON.stringify(res));
            that.lon = res.longitude;
            that.lat = res.latitude;
            that.locationText = '获取位置成功';
            that.showLocationBtn = false;
            that.subFlag = true;
          },
          cancel: function cancel(res) {
            setTimeout(function () {
              return _mintUi.Indicator.close();
            }, 0);
            (0, _mintUi.Toast)({
              message: '用户拒绝授权获取地理位置',
              duration: 2000
            });
            that.subFlag = true;
          }
        });
      });
    },
    /* 放大图片*/viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      // alert(imgUrl.includes('static2.kaxiuyun.com'))
      var that = this;
      var _imgUrl = '';
      var _imgList = [];
      if (imgList.length == 0) {
        _imgUrl = imgUrl;
      } else {
        _imgUrl = imgUrl.includes('static2.kaxiuyun.com') ? imgUrl + '?imageView2/2/w/2000' : that.bucketUrl + imgUrl + '?imageView2/2/w/2000';
        _imgList = imgList.map(function (v) {
          return v.includes('static2.kaxiuyun.com') ? v + '?imageView2/2/w/2000' : that.bucketUrl + v + '?imageView2/2/w/2000';
        });
      }
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /** 分享配置 */share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.result.title,
                  desc: '卡修宝典',
                  link: location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.result.title,
              desc: '卡修宝典',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.result.title,
              desc: '卡修宝典',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.result.title,
              desc: '卡修宝典',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    // 点击提交按钮
    sub: function sub() {
      var that = this;
      var surveyQuestionList = that.result.surveyQuestionList; // 题目列表
      if (that.questionType == 2) {
        // 考试
        if (!that.subFlag) {
          return;
        }
        that.subFlag = false; // 防止重复提交
        var obj2 = {};
        var dataArr2 = [];
        obj2.no = that.result.no;
        obj2.id = that.result.id;
        if (that.source) {
          obj2.source = that.source;
        }
        var subDataLen = Object.keys(that.subdata).length; // 作答过的题目的长度
        if (subDataLen != surveyQuestionList.length) {
          (0, _mintUi.Toast)({
            message: '存在未作答的题目',
            duration: 2000
          });
          that.subFlag = true;
          return;
        }
        var _loop = function _loop(_key) {
          var tempobj2 = {};
          surveyQuestionList.forEach(function (item) {
            if (item.id == _key && that.subdata[item.id].length > 0) {
              if (item.queOptionArray && item.queOptionArray.length) {
                var answerSort = '';
                item.queOptionArray && item.queOptionArray.forEach(function (item1) {
                  answerSort += item1.value + ',';
                });
                var answerSortL = answerSort.length - 1;
                tempobj2.answerSort = answerSort.substr(0, answerSortL);
              }
              tempobj2.answerType = item.type;
              tempobj2.questionBankId = item.questionBankId;
              tempobj2.questionBankNo = item.questionBankNo;
              tempobj2.questionId = item.id;
              tempobj2.questionnaireId = that.result.id;
              tempobj2.questionnaireNo = that.result.no;
              if (Array.isArray(that.subdata[_key])) {
                tempobj2.answer = that.subdata[_key].join(',');
              } else {
                tempobj2.answer = that.subdata[_key];
              }
            }
          });
          dataArr2.push(tempobj2);
        };
        for (var _key in that.subdata) {
          _loop(_key);
        }
        var hasNoAnswer = false;
        dataArr2.forEach(function (item) {
          if (JSON.stringify(item) == '{}') {
            hasNoAnswer = true;
          }
        });
        // console.log(dataArr2)
        if (hasNoAnswer) {
          (0, _mintUi.Toast)({
            message: '存在未作答的题目',
            duration: 2000
          });
          that.subFlag = true;
          return;
        }
        obj2.answers = dataArr2;
        // console.log(obj2)
        // return
        if (that.lon) {
          // 如果位置信息获取到了，才提交
          that._Util.post(that._Api.POST_CURENT_LOCATION, {
            source: that._Util.isApp() ? 'APP' : 'WEIXIN',
            platForm: that.ios ? 'IOS' : 'Android',
            latitude: that.lat,
            longitude: that.lon,
            param: that.result.no
          }, function (data) {}, function () {}, that);
        }
        that._Util.post(that._Api.POST_EXAM_RESULT, obj2, function (data) {
          if (data) {
            if (data.status == 1) {
              // 不包含主观题目，可以直接查看结果
              _mintUi.Indicator.open({
                spinnerType: 'fading-circle'
              });
              setTimeout(function () {
                that.subSuccessObj = data;
                that.subSuccess = true; // 提交成功后的文档
                that.listShow = false; // 考试题目
                that.subFlag = true;
                that.getExamResult(data.uuId);
              }, 3000);
            } else if (data.status == 2) {
              that.subSuccessObj = data;
              that.subSuccess = true;
              that.listShow = false;
              that.subFlag = true;
            }
          }
        }, function () {
          that.subFalse = true;
          that.listShow = false;
          that.subFlag = true;
        }, that);
      } else {
        // 问卷
        var obj = {};
        obj.naireId = that.result.id;
        obj.naireNo = that.result.no;
        obj.comm = that.result.comm;
        obj.footerComm = that.result.footerComm;
        var queryAttr = window.decodeURIComponent(location.href).split('?')[1].split('&');
        var paramArr = queryAttr.filter(function (item, arr) {
          return item.startsWith('data');
        });
        obj.data = paramArr[0] ? paramArr[0].split('=')[1] : '';
        obj.remark = that.remarkCont;
        var dataArr = [];
        // var item = $('.item');
        // for(var i=0;i<item.length;i++) {

        //     if(item.eq(i).find('.subject li').length) {
        //        item
        //     }
        // }
        console.log(that.subdata);
        // var
        for (var key in that.subdata) {
          var tempobj = {};
          tempobj.id = key;
          surveyQuestionList.forEach(function (item) {
            if (item.id == key && that.subdata[item.id].length > 0) {
              tempobj.type = item.type;
            }
          });
          // tempobj.type =
          if (Array.isArray(that.subdata[key])) {
            tempobj.answer = that.subdata[key].join('##');
          } else {
            tempobj.answer = that.subdata[key];
          }
          if (tempobj.answer.length > 0) {
            dataArr.push(tempobj);
          }
        }
        console.log(dataArr);
        var num = 0;
        that.mustAns.forEach(function (item, i) {
          dataArr.forEach(function (item1) {
            // console.log(item1.id)
            if (item1.id == item.id) {
              num++;
            } else {
              // console.log(item.index) //未作答题的序列号
            }
          });
        });
        if (num < that.mustAns.length) {
          (0, _mintUi.Toast)({
            message: '存在未选择的必答题',
            duration: 2000
          });
          return;
        }
        obj.questionList = dataArr;
        console.log(obj);
        /* 如果开关为假，则不重复提交*/
        console.log('subFlag-----' + that.subFlag);
        if (!that.subFlag) {
          return;
        }
        that.subFlag = false;
        // that._Api.POST_SUB_QUESTIONS
        var ajax = {
          'content': JSON.stringify(obj)
        };
        that._Util.post(that._Api.POST_SUB_QUESTIONS, ajax, function (data) {
          if (data) {
            if (that.fromLink == 'questionDealed') {
              // 从在线问答已解决页面点击"不满意"过来
              that._Util.post(that._Api.POST_GET_SCORE, {
                questionId: that.questionId,
                // 在线问答id
                userScore: 2
              }, function (data2) {
                // debugger
                that.subSuccessObj = data;
                that.subSuccess = true;
                that.listShow = false;
                if (that._Util.isApp()) {
                  api.setPrefs({
                    key: 'scored',
                    value: 1
                  });
                } else {
                  localStorage.setItem('scored', 1); // 从在线问答已解决页面点击"不满意"过来，并且回答完问题提交分数
                }
                setTimeout(function () {
                  if (that._Util.isApp()) {
                    api.closeWin({
                      name: 'questionnaire'
                    });
                  } else {
                    window.history.back();
                  }
                }, 500);
              }, function () {}, that);
            } else {
              that.subSuccessObj = data;
              that.subSuccess = true;
              that.listShow = false;
            }
          }
        }, function () {
          that.subFalse = true;
          that.listShow = false;
          that.subFlag = true;
        }, that);
      }
    },
    // 获取考试结果
    getExamResult: function getExamResult(uuid, callBack) {
      var that = this;
      that.uuId = uuid;
      that._Util.post(that._Api.POST_QUESTION_RESULT, {
        uuId: uuid
      }, function (data) {
        setTimeout(function () {
          return _mintUi.Indicator.close();
        }, 0);
        that.examResult = data;
        that.examResult.testQuestionList.forEach(function (item, ind) {
          item['subInd'] = ind + 1;
        });
        that.quesitionList = (0, _toConsumableArray2.default)(that.examResult.testQuestionList);
        that.getLuckData(that.examResult.score);
        callBack && callBack();
      }, function () {}, that, true);
    },
    /**
     * 获取抽奖信息
     */
    getLuckData: function getLuckData(score) {
      var _this2 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'exam_activity',
        user_id: userId,
        exeam_code: this.no,
        score: score,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data.dataList) {
          _this2.luckData = data.dataList[0];
        }
      }, function () {}, this, true);
    },
    /**
     * 点击抽奖按钮
     */
    clickLuckBtn: function clickLuckBtn(type) {
      var _this3 = this;
      var url = '';
      if (type === 1) {
        url = this.luckData.url1;
      } else {
        url = this.luckData.url2;
      }
      this._Util.collectPageView3({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '考试',
        operate_page: '考试结果页',
        optionType: '点击',
        param1: this.no,
        param2: type === 1 ? this.luckData.button1_name : this.luckData.button2_name,
        param3: type === 1 ? this.luckData.url1 : this.luckData.url2,
        param5: this.uuId
      }, this, function () {
        if (_this3._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'newYear2020' + new Date().getTime(),
              url: url
            }
          });
        } else {
          location.href = url;
        }
      });
    },
    // 对比用户答案和每一个题目，显示激活状态
    compare: function compare(userAns, subAns) {
      var userAnsArr = userAns.split(',');
      var flag = false;
      for (var i = 0; i < userAnsArr.length; i++) {
        if (userAnsArr[i] == subAns) {
          flag = true;
          return flag;
        } else {
          flag = false;
        }
      }
      return flag;
    },
    // 查看所有题目
    allSubject: function allSubject() {
      var that = this;
      that.allSubjectFlag = true;
      that.quesitionList = that.examResult.testQuestionList;
    },
    // 查看错误题目
    falseSubject: function falseSubject() {
      var that = this;
      that.allSubjectFlag = false;
      that.quesitionList = that.quesitionList.filter(function (item, ind) {
        return item.score < item.totalScore;
      });
    },
    // 关闭考试页面
    closePage: function closePage() {
      var that = this;
      if (that._Util.isApp()) {
        api.closeWin();
      } else {
        _weixinJsSdk.default.closeWindow();
      }
    }
  },
  omponents: {
    Indicator: _mintUi.Indicator
  }
};var map = {
	"./af": 1681,
	"./af.js": 1681,
	"./ar": 1682,
	"./ar-dz": 1683,
	"./ar-dz.js": 1683,
	"./ar-kw": 1684,
	"./ar-kw.js": 1684,
	"./ar-ly": 1685,
	"./ar-ly.js": 1685,
	"./ar-ma": 1686,
	"./ar-ma.js": 1686,
	"./ar-ps": 1687,
	"./ar-ps.js": 1687,
	"./ar-sa": 1688,
	"./ar-sa.js": 1688,
	"./ar-tn": 1689,
	"./ar-tn.js": 1689,
	"./ar.js": 1682,
	"./az": 1690,
	"./az.js": 1690,
	"./be": 1691,
	"./be.js": 1691,
	"./bg": 1692,
	"./bg.js": 1692,
	"./bm": 1693,
	"./bm.js": 1693,
	"./bn": 1694,
	"./bn-bd": 1695,
	"./bn-bd.js": 1695,
	"./bn.js": 1694,
	"./bo": 1696,
	"./bo.js": 1696,
	"./br": 1697,
	"./br.js": 1697,
	"./bs": 1698,
	"./bs.js": 1698,
	"./ca": 1699,
	"./ca.js": 1699,
	"./cs": 1700,
	"./cs.js": 1700,
	"./cv": 1701,
	"./cv.js": 1701,
	"./cy": 1702,
	"./cy.js": 1702,
	"./da": 1703,
	"./da.js": 1703,
	"./de": 1704,
	"./de-at": 1705,
	"./de-at.js": 1705,
	"./de-ch": 1706,
	"./de-ch.js": 1706,
	"./de.js": 1704,
	"./dv": 1707,
	"./dv.js": 1707,
	"./el": 1708,
	"./el.js": 1708,
	"./en-au": 1709,
	"./en-au.js": 1709,
	"./en-ca": 1710,
	"./en-ca.js": 1710,
	"./en-gb": 1711,
	"./en-gb.js": 1711,
	"./en-ie": 1712,
	"./en-ie.js": 1712,
	"./en-il": 1713,
	"./en-il.js": 1713,
	"./en-in": 1714,
	"./en-in.js": 1714,
	"./en-nz": 1715,
	"./en-nz.js": 1715,
	"./en-sg": 1716,
	"./en-sg.js": 1716,
	"./eo": 1717,
	"./eo.js": 1717,
	"./es": 1718,
	"./es-do": 1719,
	"./es-do.js": 1719,
	"./es-mx": 1720,
	"./es-mx.js": 1720,
	"./es-us": 1721,
	"./es-us.js": 1721,
	"./es.js": 1718,
	"./et": 1722,
	"./et.js": 1722,
	"./eu": 1723,
	"./eu.js": 1723,
	"./fa": 1724,
	"./fa.js": 1724,
	"./fi": 1725,
	"./fi.js": 1725,
	"./fil": 1726,
	"./fil.js": 1726,
	"./fo": 1727,
	"./fo.js": 1727,
	"./fr": 1728,
	"./fr-ca": 1729,
	"./fr-ca.js": 1729,
	"./fr-ch": 1730,
	"./fr-ch.js": 1730,
	"./fr.js": 1728,
	"./fy": 1731,
	"./fy.js": 1731,
	"./ga": 1732,
	"./ga.js": 1732,
	"./gd": 1733,
	"./gd.js": 1733,
	"./gl": 1734,
	"./gl.js": 1734,
	"./gom-deva": 1735,
	"./gom-deva.js": 1735,
	"./gom-latn": 1736,
	"./gom-latn.js": 1736,
	"./gu": 1737,
	"./gu.js": 1737,
	"./he": 1738,
	"./he.js": 1738,
	"./hi": 1739,
	"./hi.js": 1739,
	"./hr": 1740,
	"./hr.js": 1740,
	"./hu": 1741,
	"./hu.js": 1741,
	"./hy-am": 1742,
	"./hy-am.js": 1742,
	"./id": 1743,
	"./id.js": 1743,
	"./is": 1744,
	"./is.js": 1744,
	"./it": 1745,
	"./it-ch": 1746,
	"./it-ch.js": 1746,
	"./it.js": 1745,
	"./ja": 1747,
	"./ja.js": 1747,
	"./jv": 1748,
	"./jv.js": 1748,
	"./ka": 1749,
	"./ka.js": 1749,
	"./kk": 1750,
	"./kk.js": 1750,
	"./km": 1751,
	"./km.js": 1751,
	"./kn": 1752,
	"./kn.js": 1752,
	"./ko": 1753,
	"./ko.js": 1753,
	"./ku": 1754,
	"./ku-kmr": 1755,
	"./ku-kmr.js": 1755,
	"./ku.js": 1754,
	"./ky": 1756,
	"./ky.js": 1756,
	"./lb": 1757,
	"./lb.js": 1757,
	"./lo": 1758,
	"./lo.js": 1758,
	"./lt": 1759,
	"./lt.js": 1759,
	"./lv": 1760,
	"./lv.js": 1760,
	"./me": 1761,
	"./me.js": 1761,
	"./mi": 1762,
	"./mi.js": 1762,
	"./mk": 1763,
	"./mk.js": 1763,
	"./ml": 1764,
	"./ml.js": 1764,
	"./mn": 1765,
	"./mn.js": 1765,
	"./mr": 1766,
	"./mr.js": 1766,
	"./ms": 1767,
	"./ms-my": 1768,
	"./ms-my.js": 1768,
	"./ms.js": 1767,
	"./mt": 1769,
	"./mt.js": 1769,
	"./my": 1770,
	"./my.js": 1770,
	"./nb": 1771,
	"./nb.js": 1771,
	"./ne": 1772,
	"./ne.js": 1772,
	"./nl": 1773,
	"./nl-be": 1774,
	"./nl-be.js": 1774,
	"./nl.js": 1773,
	"./nn": 1775,
	"./nn.js": 1775,
	"./oc-lnc": 1776,
	"./oc-lnc.js": 1776,
	"./pa-in": 1777,
	"./pa-in.js": 1777,
	"./pl": 1778,
	"./pl.js": 1778,
	"./pt": 1779,
	"./pt-br": 1780,
	"./pt-br.js": 1780,
	"./pt.js": 1779,
	"./ro": 1781,
	"./ro.js": 1781,
	"./ru": 1782,
	"./ru.js": 1782,
	"./sd": 1783,
	"./sd.js": 1783,
	"./se": 1784,
	"./se.js": 1784,
	"./si": 1785,
	"./si.js": 1785,
	"./sk": 1786,
	"./sk.js": 1786,
	"./sl": 1787,
	"./sl.js": 1787,
	"./sq": 1788,
	"./sq.js": 1788,
	"./sr": 1789,
	"./sr-cyrl": 1790,
	"./sr-cyrl.js": 1790,
	"./sr.js": 1789,
	"./ss": 1791,
	"./ss.js": 1791,
	"./sv": 1792,
	"./sv.js": 1792,
	"./sw": 1793,
	"./sw.js": 1793,
	"./ta": 1794,
	"./ta.js": 1794,
	"./te": 1795,
	"./te.js": 1795,
	"./tet": 1796,
	"./tet.js": 1796,
	"./tg": 1797,
	"./tg.js": 1797,
	"./th": 1798,
	"./th.js": 1798,
	"./tk": 1799,
	"./tk.js": 1799,
	"./tl-ph": 1800,
	"./tl-ph.js": 1800,
	"./tlh": 1801,
	"./tlh.js": 1801,
	"./tr": 1802,
	"./tr.js": 1802,
	"./tzl": 1803,
	"./tzl.js": 1803,
	"./tzm": 1804,
	"./tzm-latn": 1805,
	"./tzm-latn.js": 1805,
	"./tzm.js": 1804,
	"./ug-cn": 1806,
	"./ug-cn.js": 1806,
	"./uk": 1807,
	"./uk.js": 1807,
	"./ur": 1808,
	"./ur.js": 1808,
	"./uz": 1809,
	"./uz-latn": 1810,
	"./uz-latn.js": 1810,
	"./uz.js": 1809,
	"./vi": 1811,
	"./vi.js": 1811,
	"./x-pseudo": 1812,
	"./x-pseudo.js": 1812,
	"./yo": 1813,
	"./yo.js": 1813,
	"./zh-cn": 1814,
	"./zh-cn.js": 1814,
	"./zh-hk": 1815,
	"./zh-hk.js": 1815,
	"./zh-mo": 1816,
	"./zh-mo.js": 1816,
	"./zh-tw": 1817,
	"./zh-tw.js": 1817
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	return __webpack_require__(id);
}
function webpackContextResolve(req) {
	if(!__webpack_require__.o(map, req)) {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return map[req];
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 3284;module.exports = __webpack_require__.p + "static/img/poster.7026f81.jpg";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"questionIndex"},[(_vm.showLoading)?_c('div',{staticClass:"mask1"},[(_vm.failData.status === 500)?_c('div',{staticClass:"fail"},[_c('img',{attrs:{"src":__webpack_require__(1680),"alt":""}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.failData.msg))])]):_c('span',{staticClass:"load"})]):_vm._e(),_vm._v(" "),(!_vm.showLoading)?_c('div',[(_vm.listShow)?_c('header',[_c('p',{staticClass:"headlines"},[_vm._v(_vm._s(_vm.result.title))]),_vm._v(" "),(_vm.result.comm)?_c('div',{staticClass:"headDesc",domProps:{"innerHTML":_vm._s(_vm.result.comm)}}):_vm._e(),_vm._v(" "),(_vm.result.img)?_c('img',{attrs:{"src":_vm.result.img,"alt":""}}):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.listShow)?_c('div',{staticStyle:{"height":"6px","background":"#f2f2f2"}}):_vm._e(),_vm._v(" "),(_vm.listShow)?_c('ul',{staticClass:"questionList"},[_vm._l((_vm.result.surveyQuestionList),function(item,i){return _c('li',{key:item.id,staticClass:"item"},[_c('div',{staticClass:"itemTit"},[(item.property == 0)?_c('span',{staticClass:"icon1"},[_vm._v("*")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"itemIndex"},[_vm._v(_vm._s(i+1)+".")]),_vm._v(" "),_c('span',{staticClass:"titCon"},[_vm._v(_vm._s(item.title))]),_vm._v(" "),(_vm.questionType == 2)?_c('span',{staticClass:"itemType2"},[_vm._v("["+_vm._s(item.examTotalScore)+"分"+_vm._s(item.type == 0? '/单选':'')+_vm._s(item.type == 1? '/单选':'')+_vm._s(item.type == 2? '/多选':'')+"]")]):_c('span',{staticClass:"itemType"},[_vm._v(_vm._s(_vm._f("itemType")(item.type)))])]),_vm._v(" "),_vm._l((item.imageUrls),function(img,Ind){return _c('div',{key:Ind,staticClass:"imgs"},[_c('img',{attrs:{"src":img,"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(img, item.imageUrls, Ind)}}})])}),_vm._v(" "),_vm._l((item.videoUrls),function(video,videoInd){return _c('div',{key:videoInd,staticClass:"videos"},[_c('video',{staticClass:"newVideo",attrs:{"src":video,"webkit-playsinline":"true","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","controls":"","controlsList":"nodownload","poster":_vm.posterImg}})])}),_vm._v(" "),(item.comm)?_c('div',{staticClass:"itemDesc"},[_vm._v(_vm._s(item.comm))]):_vm._e(),_vm._v(" "),(_vm.questionType == 2 ? (item.type == 0 ||item.type == 2) : (item.queOptionArray && item.type != 1))?_c('ul',{staticClass:"subject"},_vm._l(((item.queOptionArray)),function(v,index){return _c('li',{key:index,class:{'hasImg': v.optionImageUrl},on:{"click":function($event){$event.stopPropagation();return _vm.selectOpt(v,index,item.queOptionArray,item,false)}}},[_c('span',{staticClass:"icon2",class:{active: v.active == true}}),_vm._v(" "),(v.optionImageUrl)?_c('div',{staticClass:"imgBox2"},[_c('img',{attrs:{"src":v.optionImageUrl,"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v.optionImageUrl,[])}}}),_vm._v(" "),_c('span',[_vm._v("放大")])]):_vm._e(),_vm._v(" "),_c('span',[_vm._v(_vm._s(v.option.split('//')[0]))]),_vm._v(" "),(v.option.split('//')[1] == 1 && v.active)?_c('div',{staticClass:"otherText"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(v[index]),expression:"v[index]"}],attrs:{"type":"text"},domProps:{"value":(v[index])},on:{"click":function($event){$event.stopPropagation();},"input":[function($event){if($event.target.composing){ return; }_vm.$set(v, index, $event.target.value)},function($event){return _vm.inputChange($event,v,index,item.queOptionArray,item)}]}})]):_vm._e()])}),0):_vm._e(),_vm._v(" "),(item.queOptionArray && item.type == 1)?_c('div',{staticClass:"selectBox"},[(_vm.questionType == 2)?_c('select',{directives:[{name:"model",rawName:"v-model",value:(_vm.subdata[item.id]),expression:"subdata[item.id]"}],attrs:{"name":""},on:{"change":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.$set(_vm.subdata, item.id, $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((item.queOptionArray),function(v){return _c('option',{directives:[{name:"show",rawName:"v-show",value:(v.option),expression:"v.option"}],key:v.value,domProps:{"value":v.value}},[_vm._v(_vm._s(v.option))])}),0):_c('select',{directives:[{name:"model",rawName:"v-model",value:(_vm.subdata[item.id]),expression:"subdata[item.id]"}],attrs:{"name":""},on:{"change":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.$set(_vm.subdata, item.id, $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((item.queOptionArray),function(v,i){return _c('option',{key:i,domProps:{"value":v.option}},[_vm._v(_vm._s(v.option))])}),0),_vm._v(" "),(!_vm.subdata[item.id])?_c('div',[_vm._v("请选择")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"downicon"})]):_vm._e(),_vm._v(" "),(item.type == 3)?_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.subdata[item.id]),expression:"subdata[item.id]"}],staticClass:"_selectTrue",attrs:{"rows":item.typeDetail,"placeholder":"请输入回答"},domProps:{"value":(_vm.subdata[item.id])},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.subdata, item.id, $event.target.value)}}}):_vm._e(),_vm._v(" "),(item.type == 4)?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.subdata[item.id]),expression:"subdata[item.id]"}],attrs:{"type":"number","placeholder":"只可输入数字","pattern":"[0-9]*"},domProps:{"value":(_vm.subdata[item.id])},on:{"input":[function($event){if($event.target.composing){ return; }_vm.$set(_vm.subdata, item.id, $event.target.value)},function($event){return _vm.onlyNum($event)}]}}):_vm._e(),_vm._v(" "),(item.type == 5)?_c('div',{staticClass:"date",on:{"click":function($event){$event.stopPropagation();return _vm.datePicker(item)}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.subdata[item.id]),expression:"subdata[item.id]"}],attrs:{"type":"text","readonly":"","placeholder":"请选择时间"},domProps:{"value":(_vm.subdata[item.id])},on:{"click":function($event){$event.preventDefault();},"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.subdata, item.id, $event.target.value)}}}),_vm._v(" "),_c('div',{staticClass:"mask"}),_vm._v(" "),_c('span',{staticClass:"dateIcon"})]):_vm._e(),_vm._v(" "),(item.type == 6)?_c('div',{staticClass:"imgBox"},[_vm._l((_vm.subdata[item.id]),function(v,i){return _c('div',{key:i,staticClass:"imglist"},[_c('div',{staticClass:"closeImg",on:{"click":function($event){$event.stopPropagation();return _vm.delImg(i,_vm.subdata[item.id])}}}),_vm._v(" "),_c('img',{attrs:{"src":_vm.bucketUrl + v+ '?imageView2/1/w/150/h/150'},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v, _vm.subdata[item.id], i)}}})])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.subdata[item.id].length < item.typeDetail),expression:"subdata[item.id].length < item.typeDetail"}],staticClass:"addImg"},[_c('div',{staticClass:"a-upload",staticStyle:{"width":"100%","height":"100%","display":"inline-block","position":"relative"}},[_c('input',{staticClass:"putPhoto",staticStyle:{"width":"100%","height":"100%"},attrs:{"accept":"image/*","type":"file"},on:{"change":function($event){return _vm.upload($event,item)}}})])])],2):_vm._e()],2)}),_vm._v(" "),(_vm.result.location)?_c('li',{staticClass:"location"},[_c('hr'),_vm._v(" "),_c('div',{staticClass:"tit"},[_c('i'),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.locationText))]),_vm._v(" "),(_vm.showLocationBtn)?_c('button',{on:{"click":function($event){$event.stopPropagation();return _vm.getLocation.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.locationBtnText))]):_vm._e()]),_vm._v(" "),(false)?undefined:_vm._e()]):_vm._e(),_vm._v(" "),(_vm.result.footerComm)?_c('li',{staticClass:"footerComm",domProps:{"innerHTML":_vm._s(_vm.result.footerComm)}}):_vm._e(),_vm._v(" "),(_vm.result.id)?_c('li',{staticClass:"subbtn"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.sub.apply(null, arguments)}}},[_vm._v("提交")])]):_vm._e(),_vm._v(" "),[_c('mt-datetime-picker',{ref:"picker",attrs:{"type":"date","start-date":_vm.startDate,"close-on-click-modal":false},on:{"confirm":_vm.handleConfirm,"cancel":_vm.cancle},model:{value:(_vm.dateVal),callback:function ($$v) {_vm.dateVal=$$v},expression:"dateVal"}})]],2):_vm._e(),_vm._v(" "),(_vm.subSuccess == true)?_c('div',{staticClass:"success complate"},[(_vm.questionType == 2)?_c('div',{staticClass:"exam"},[(_vm.subSuccessObj.status == 1)?[_c('div',{staticClass:"shade"}),_vm._v(" "),_c('div',{staticClass:"examHeader"},[_c('div',{staticClass:"headerImg"},[(_vm.examResult.headImgUrl)?_c('img',{attrs:{"src":_vm.examResult.headImgUrl,"alt":""}}):_c('img',{attrs:{"src":__webpack_require__(808),"alt":""}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(_vm.examResult.userName))])]),_vm._v(" "),_c('div',{staticClass:"scoreBox"},[_c('div',{staticClass:"scoreModel"},[_c('span',[_vm._v("你的分数")]),_vm._v(" "),_c('div',[_c('i',[_vm._v(_vm._s(_vm.examResult.score))]),_vm._v("/"+_vm._s(_vm.examResult.totalScore))])]),_vm._v(" "),_c('div',{staticClass:"cut"}),_vm._v(" "),_c('div',{staticClass:"scoreModel"},[_c('span',[_vm._v("答对题目")]),_vm._v(" "),_c('div',[_c('i',[_vm._v(_vm._s(_vm.examResult.coTotal))]),_vm._v("/"+_vm._s(_vm.examResult.total))])])])]),_vm._v(" "),(_vm.luckData.show === '1')?_c('div',{staticClass:"luck-box"},[_c('div',{staticClass:"circle"}),_vm._v(" "),_c('div',{staticClass:"text-box"},[_vm._v(_vm._s(_vm.luckData.text))]),_vm._v(" "),(_vm.luckData.button2_name && _vm.luckData.button1_name)?_c('div',{staticClass:"luck-btns"},[_c('span',{staticClass:"btn1",staticStyle:{"margin-right":"7%"},on:{"click":function($event){return _vm.clickLuckBtn(1)}}},[_vm._v(_vm._s(_vm.luckData.button1_name))]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.clickLuckBtn(2)}}},[_vm._v(_vm._s(_vm.luckData.button2_name))])]):_vm._e(),_vm._v(" "),(_vm.luckData.button1_name && !_vm.luckData.button2_name)?_c('div',{staticClass:"luck-btns"},[(_vm.luckData.button1_name)?_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.clickLuckBtn(1)}}},[_vm._v(_vm._s(_vm.luckData.button1_name))]):_vm._e()]):_vm._e(),_vm._v(" "),(!_vm.luckData.button1_name && _vm.luckData.button2_name)?_c('div',{staticClass:"luck-btns"},[(_vm.luckData.button2_name)?_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.clickLuckBtn(2)}}},[_vm._v(_vm._s(_vm.luckData.button2_name))]):_vm._e()]):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"subList",style:({'margin-top': 1 ? '0.75rem' : undefined})},[_c('div',{staticClass:"tit"},[_c('span',[_vm._v("题目解析")]),_vm._v(" "),_c('div',[_c('i',{class:{'active': _vm.allSubjectFlag},on:{"click":_vm.allSubject}},[_vm._v("全部")]),_vm._v(" "),_c('i',{class:{'active': !_vm.allSubjectFlag},on:{"click":_vm.falseSubject}},[_vm._v("错题")])])]),_vm._v(" "),_vm._l((_vm.quesitionList),function(item){return (_vm.quesitionList.length > 0)?_c('ul',{key:item.id,staticClass:"questionList"},[_c('li',{staticClass:"item"},[_c('div',{staticClass:"itemTit"},[_c('span',{staticClass:"icon1"},[_vm._v("*")]),_vm._v(" "),_c('span',{staticClass:"itemIndex"},[_vm._v(_vm._s(item.subInd)+".")]),_vm._v(" "),_c('span',{staticClass:"titCon"},[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('span',{staticClass:"itemType2"},[_vm._v("["+_vm._s(item.totalScore)+"分"+_vm._s((item.type == 0 || item.type == 1)? '/单选':'')+_vm._s(item.type == 2? '/多选':'')+"]")])]),_vm._v(" "),_vm._l((item.imageUrls),function(img,imgInd){return _c('div',{key:imgInd,staticClass:"imgs"},[_c('img',{attrs:{"src":img,"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(img, item.imageUrls, imgInd)}}})])}),_vm._v(" "),_vm._l((item.videoUrls),function(video,videoInd){return _c('div',{key:videoInd,staticClass:"videos"},[_c('video',{staticClass:"newVideo",attrs:{"src":video,"webkit-playsinline":"true","playsinline":"true","x5-playsinline":"true","autobuffer":"","x-webkit-airplay":"true","controls":"","controlsList":"nodownload","poster":_vm.posterImg}})])}),_vm._v(" "),_c('div',{staticClass:"itemDesc"},[_vm._v(_vm._s(item.comm))]),_vm._v(" "),(item.type == 0 ||item.type == 2 || item.type == 1)?_c('ul',{staticClass:"subject"},_vm._l(((item.queOptionArray)),function(v,queInd){return _c('li',{key:v.value,class:{'hasImg': v.optionImageUrl,'ansActive': _vm.compare(item.answer,v.value)}},[(v.optionImageUrl)?_c('div',{staticClass:"imgBox2"},[_c('img',{attrs:{"src":v.optionImageUrl,"alt":""},on:{"click":function($event){$event.stopPropagation();return _vm.viewImage(v.optionImageUrl,[])}}}),_vm._v(" "),_c('span',[_vm._v("放大")])]):_vm._e(),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.antitArr[queInd])+"."+_vm._s(v.option))])])}),0):_vm._e(),_vm._v(" "),(item.type == 3)?_c('div',{staticClass:"_selectTrue",domProps:{"innerHTML":_vm._s(item.answer)}}):_vm._e(),_vm._v(" "),(item.type == 4)?_c('input',{directives:[{name:"model",rawName:"v-model",value:(item.answer),expression:"item.answer"}],attrs:{"type":"number","readonly":""},domProps:{"value":(item.answer)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(item, "answer", $event.target.value)}}}):_vm._e(),_vm._v(" "),(item.type == 5)?_c('input',{directives:[{name:"model",rawName:"v-model",value:(item.answer),expression:"item.answer"}],staticClass:"dataSub",attrs:{"type":"text","readonly":""},domProps:{"value":(item.answer)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(item, "answer", $event.target.value)}}}):_vm._e(),_vm._v(" "),(item.type == 6)?_c('div',{staticClass:"imgBox"},_vm._l(((item.answer.split(','))),function(v,i){return _c('div',{key:i,staticClass:"imglist"},[_c('img',{attrs:{"src":_vm.bucketUrl + v+ '?imageView2/1/w/150/h/150'},on:{"click":function($event){$event.stopPropagation();_vm.viewImage(v,(item.answer.split(',')) , i)}}}),_vm._v(" "),_c('div',{staticClass:"imgIcon"},[_vm._v("放大")])])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"examresult",style:({'margin-top': item.type == 6 ? 0 : '0.4rem'})},[(item.score == item.totalScore)?_c('span',{staticClass:"rightTrue"},[_vm._v("回答正确，得"+_vm._s(item.score)+"分")]):_vm._e(),_vm._v(" "),(!item.score)?_c('div',{staticClass:"false"},[_vm._v("回答错误")]):_vm._e(),_vm._v(" "),(item.score && item.score < item.totalScore)?_c('div',{staticClass:"false"},[_vm._v("部分答案正确，得"+_vm._s(item.score)+"分")]):_vm._e(),_vm._v(" "),(item.correctAnswer)?_c('div',{staticClass:"ans"},[_vm._v("正确答案："+_vm._s(item.correctAnswer))]):_vm._e()])],2)]):_vm._e()}),_vm._v(" "),(_vm.quesitionList.length == 0)?_c('div',{staticClass:"fullMark"},[_c('i'),_vm._v(" "),_c('span',[_vm._v("太棒了，你是满分哦")])]):_vm._e()],2)]:_vm._e(),_vm._v(" "),(_vm.subSuccessObj.status == 2)?_c('div',{staticClass:"noResult"},[_c('span',{staticClass:"resultIcon"}),_vm._v(" "),_c('span',{staticClass:"resultText"},[_vm._v("考卷提交成功")]),_vm._v(" "),_c('span',{staticClass:"resultText2"},[_vm._v("等待老师批改后查看成绩与正确答案")]),_vm._v(" "),_c('span',{staticClass:"closeBtn",on:{"click":_vm.closePage}},[_vm._v("关闭问卷")])]):_vm._e()],2):_c('div',[_vm._m(0),_vm._v(" "),(_vm.subSuccessObj.successComm)?_c('div',{staticClass:"hr"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"subText",domProps:{"innerHTML":_vm._s(_vm.subSuccessObj.successComm)}})])]):_vm._e(),_vm._v(" "),(_vm.subFalse == true)?_c('div',{staticClass:"false complate"},[_vm._m(1)]):_vm._e()]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"typeBox"},[_c('span',{staticClass:"icon"}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v("提交成功")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"typeBox"},[_c('span',{staticClass:"icon"}),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v("提交失败")]),_vm._v(" "),_c('div',{staticClass:"text1"},[_vm._v("可能原因：问卷已填写或已结束")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(615);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c69bdf5a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1214);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3286)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-c69bdf5a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c69bdf5a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c69bdf5a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crmSaleInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3287);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("975c8bb6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".info-template-page[data-v-c69bdf5a]{width:100%;height:100%;overflow:hidden;background-color:#4292f7}.template-panel[data-v-c69bdf5a]{position:relative;width:80%;height:50%;background-color:#fff;margin:30% auto;font-size:14px;border-radius:3px}.template-panel .panel-border[data-v-c69bdf5a],.template-panel .panel-border[data-v-c69bdf5a]:after{position:absolute;left:2%;top:-6px;width:96%;height:20px;z-index:9;border-radius:4px;background-color:hsla(0,0%,100%,.8)}.template-panel .panel-border[data-v-c69bdf5a]:after{display:block;content:\"\"}.template-panel .temp-head[data-v-c69bdf5a]{position:relative;z-index:10;text-align:center}.template-panel .temp-head img[data-v-c69bdf5a]{display:inline-block;width:80px;height:80px;margin-top:-40px;background-color:#f0f0f5;border-radius:100%;overflow:hidden}.template-panel .temp-head p[data-v-c69bdf5a]{font-size:16px;font-weight:700}.template-panel .temp-info-1[data-v-c69bdf5a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:25px;text-align:center}.template-panel .temp-info-1 .info-1-item[data-v-c69bdf5a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.template-panel .temp-info-1 .info-1-item .title[data-v-c69bdf5a]{color:#666}.template-panel .temp-info-1 .info-1-item .content[data-v-c69bdf5a]{color:#333}.template-panel .temp-info-2[data-v-c69bdf5a]{padding:0 12px;margin-top:20px}.template-panel .temp-info-2 .info-2-item[data-v-c69bdf5a]{position:relative;margin-bottom:10px;padding-left:20px}.template-panel .temp-info-2 .info-2-item .info-icon[data-v-c69bdf5a]{display:inline-block;position:absolute;top:2px;left:0;width:15px}.template-panel .temp-logo[data-v-c69bdf5a]{position:absolute;width:100%;left:0;bottom:0;padding:15px 0;font-size:16px;text-align:center;border-top:1px solid #f2f2f2}.template-panel .temp-logo[data-v-c69bdf5a]:after{left:0;right:0;width:auto;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
var _default = exports.default = {
  name: 'InfoTemplate',
  data: function data() {
    return {
      avatar: '',
      name: '',
      post: '',
      phone: '',
      id: this.$route.query.id || '212'
    };
  },
  created: function created() {
    var that = this;
    that._Util.post(that._Api.GET_CRM_SALEINFO, {
      id: that.id
    }, function (data) {
      if (data) {
        that.avatar = data.userImg;
        that.phone = data.phone;
        that.name = data.name;
        that.post = data.position;
      }
    }, function () {}, that);
  },
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(616);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_21dc5dec_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1215);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3288)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-21dc5dec"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_21dc5dec_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_21dc5dec_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_grabOrder_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3289);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("619b5424", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body[data-v-21dc5dec],html[data-v-21dc5dec]{-webkit-user-select:all}.grab-order[data-v-21dc5dec]{background-color:#f0f0f0}.grab-order span[data-v-21dc5dec]{display:inline}.panel-title[data-v-21dc5dec]{height:42px;line-height:42px;padding:0 12px;font-size:15px;color:#333;font-weight:700;background-color:#fff}.panel-title .tip[data-v-21dc5dec]{font-size:14px;font-weight:400}.countdown[data-v-21dc5dec]{position:fixed;top:0;left:0;z-index:2;width:100%;height:50px;background-color:hsla(0,0%,100%,.95);text-align:center;line-height:50px}.countdown span[data-v-21dc5dec]{font-size:18px;color:red;vertical-align:middle}.countdown .time[data-v-21dc5dec]{margin-left:10px;font-size:19px}.customer[data-v-21dc5dec]{padding:10px 12px;background-color:#fff}.customer.mt[data-v-21dc5dec]{padding:5px 12px;margin-top:50px}.customer .customer-info[data-v-21dc5dec]{font-size:14px}.customer .customer-info li[data-v-21dc5dec]{margin:4px 0;line-height:1.6}.customer .customer-info li span[data-v-21dc5dec]{color:#333;vertical-align:middle}.customer .customer-info li .info-label[data-v-21dc5dec]{margin-right:4px;color:#666}.customer .customer-info li .copy[data-v-21dc5dec]{color:#4292f7;padding:0 10px}.customer .customer-info li input[data-v-21dc5dec]{font-size:14px;color:#333;vertical-align:middle}.customer .customer-info li .name[data-v-21dc5dec]{width:80px}.customer .customer-info li .phone[data-v-21dc5dec]{width:120px}.logs-container[data-v-21dc5dec]{margin-top:10px}.logs-container .logs[data-v-21dc5dec]{background-color:#f0f0f0;overflow:hidden}.logs-container .logs.pd[data-v-21dc5dec]{padding-bottom:48px}.logs-container .logs .null-tip[data-v-21dc5dec]{text-align:center;line-height:60px}.logs-container .logs .logs-list[data-v-21dc5dec]{margin:6px 10px;background-color:#fff;border-radius:4px}.logs-container .logs .logs-list .log-head[data-v-21dc5dec]{position:relative;padding:8px}.logs-container .logs .logs-list .log-head .arrow-icon[data-v-21dc5dec]{position:absolute;top:10px;right:10px;width:14px;height:8px;background-image:url(" + escape(__webpack_require__(3290)) + ");background-repeat:no-repeat;background-position:50%;background-size:100% 100%;-webkit-transition:all .2s linear;transition:all .2s linear}.logs-container .logs .logs-list .log-head .up[data-v-21dc5dec]{-webkit-transform:rotate(-180deg);-ms-transform:rotate(-180deg);transform:rotate(-180deg)}.logs-container .logs .logs-list .log-head .log-date[data-v-21dc5dec]{color:#4292f7}.logs-container .logs .logs-list .log-content[data-v-21dc5dec]{padding:8px;background-color:#fafafa}.logs-container .logs .logs-list .log-content img[data-v-21dc5dec]{display:inline-block;width:60px;height:60px;margin:5px;overflow:hidden;vertical-align:middle}.logs-container .logs .logs-list .log-content .voice-meta[data-v-21dc5dec]{position:relative;display:inline-block}.logs-container .logs .logs-list .log-content .voice-meta a[data-v-21dc5dec]{position:relative;z-index:10;display:block;width:100%;padding-right:20px}.logs-container .logs .logs-list .log-content .voice-meta i[data-v-21dc5dec]{display:block;position:absolute;top:2px;right:0;width:17px;height:17px;background-color:#000;background:url(" + escape(__webpack_require__(3291)) + ") no-repeat;background-size:100% 100%;background-position:50%}.grab-order-btn[data-v-21dc5dec]{position:fixed;left:0;bottom:0;width:100%;height:48px;line-height:48px;text-align:center;font-size:16px;color:#fff;background-color:#e51c25}.grab-order-btn.off[data-v-21dc5dec]{color:#666;background-color:#e0e0e0}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arror_down_icon.6dbd7c7.png";module.exports = __webpack_require__.p + "static/img/voice_play_icon.65b9838.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _typeof2 = _interopRequireDefault(__webpack_require__(69));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

var timer = null;
var _default = exports.default = {
  name: 'GrabOrder',
  data: function data() {
    return {
      userInfo: {},
      // 客户信息
      recordsList: [],
      // 跟进记录
      grabSuccess: false,
      showGrabBtn: false,
      showGrabTime: true,
      bucketUrl: '',
      showLog: false,
      btnText: '我要抢单',
      countDownTime: '',
      offClick: false,
      saleId: null,
      // 销售id
      userDetailId: null,
      // 客户id
      num: null,
      // 每人每月抢单客户上限数
      sendTime: null,
      // 下发时间
      grabEndTime: null,
      // 抢单结束时间
      showNullTip: false
    };
  },
  created: function created() {
    this.saleId = this.$route.query.saleId;
    this.sendTime = this.$route.query.sendTime;
    this.grabEndTime = this.$route.query.grabEndTime;
    this.userDetailId = this.$route.query.userDetailId;
    this.num = this.$route.query.num;
    var targetDate = Number(this.$route.query.grabEndTime); // 抢单结束时间
    this.countDown(targetDate);
    this.getUserInfo();
    this.getDataList();
    this.getQNToken();
  },
  methods: {
    /**
       * 获取七牛token
       */
    getQNToken: function getQNToken() {
      var _this = this;
      this._Util.post(this._Api.appGetQNToken, {}, function (data) {
        _this.bucketUrl = data.bucketUrl;
      }, function () {}, this, true);
    },
    /**
       * 获取客户详细信息
       * saleId 销售 id
       * userDetailId 客户 id
       * sendTime 下发时间
       * grabEndTime 抢单结束时间
       * num 每人每月抢单客户上限数
       */
    getUserInfo: function getUserInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_GRABUSERINFO, {
        saleId: this.saleId,
        userDetailId: this.userDetailId,
        sendTime: this.sendTime,
        grabEndTime: this.grabEndTime,
        num: this.num
      }, function (data) {
        if (data) {
          _this2.userInfo = data.resultVo;
          if (data.roleId == 93) {
            if ((0, _typeof2.default)(data.resultVo.dtSaleId) === 'object') {
              if (_this2.grabEndTime <= new Date().getTime()) {
                _this2.offClick = true;
                _this2.btnText = '抢单已超时，等待城市经理分配';
                _this2.showGrabBtn = true;
              } else {
                _this2.showGrabTime = true;
                _this2.showGrabBtn = true;
              }
            } else {
              if (data.resultVo.dtSaleId == _this2.$route.query.saleId) {
                _this2.grabSuccess = true;
                _this2.showGrabTime = true;
                _this2.showGrabBtn = false;
              } else {
                _this2.showGrabTime = false;
                _this2.offClick = true;
                _this2.btnText = '该客户已被其他人抢单';
                _this2.showGrabBtn = true;
              }
            }
          } else {
            if (data.resultVo.dtSaleId) {
              _this2.showGrabTime = false;
            }
          }
        }
      }, function (err) {
        console.log(err);
      }, this);
    },
    /**
       * 销售抢单
       * saleId 销售 id
       * userDetailId 客户 id
       * sendTime 下发时间
       * grabEndTime 抢单结束时间
       * grabTime 抢单点击时间
       * num 每人每月抢单客户上限数
       */
    grabUser: function grabUser() {
      var _this3 = this;
      if (this.offClick) {
        return;
      }
      this._Util.post(this._Api.POST_GRABUSER, {
        saleId: this.saleId,
        userDetailId: this.userDetailId,
        sendTime: this.sendTime,
        grabEndTime: this.grabEndTime,
        grabTime: new Date().getTime(),
        num: this.num
      }, function (data) {
        console.log(data);
        _this3.grabSuccess = true;
        _this3.showGrabBtn = false;
        clearInterval(timer);
        _this3.getUserInfo();
      }, function () {
        _this3.getUserInfo();
      }, this);
    },
    /**
       * 查询跟进记录
       */
    getDataList: function getDataList() {
      var self = this;
      self.recordsList = [];
      self._Util.post(self._Api.POST_QUERYDATALISTROW, {
        code: 'crm_follow_sell_dt',
        userId: self.userDetailId
      }, function (data) {
        if (!data) {
          self.showNullTip = true;
          return;
        }
        for (var key in data) {
          var _tempobj = {};
          var _arr = [];
          var __arr = [];
          data[key].forEach(function (item) {
            if (item.title === '创建时间') {
              _tempobj.createTime = new Date(item.content.replace(/\-/g, '/')).getTime();
            } else if (item.title === '创建人') {
              _tempobj.createUser = item.content;
            } else if (item.title === '经纬度') {
              _tempobj.address = item.content;
            } else if (item.title === '备注') {
              _tempobj.remark = item.content;
            } else if (item.title === '跟进类型') {
              // 不显示跟进类型
              _tempobj.type = item.content;
            } else if (item.content === '客户电话是空号/错号') {
              __arr.push({
                title: '拜访内容',
                content: '客户电话是空号/错号'
              });
              return;
            } else {
              // eslint-disable-next-line no-empty
              if (item.title === '语音文件' && item.content === '' || item.title === '上门拜访地址') {} else {
                __arr.push({
                  title: item.title,
                  content: item.content
                });
              }
            }
          });
          _arr.push(_tempobj);
          _arr.push(__arr);
          self.recordsList.push(_arr);
        }
      }, function (err) {
        console.log(err);
      }, this);
    },
    viewImage: function viewImage(imgUrl) {
      this.$store.commit('openImgView', imgUrl);
    },
    // 切换查看跟进记录
    toggleLog: function toggleLog(item) {
      if (!item.active) this.$set(item, 'active', false);
      item.active = !item.active;
    },
    countDown: function countDown(targetDate) {
      var self = this;
      if (typeof targetDate !== 'number') {
        targetDate = targetDate.getTime();
      }
      var times;
      var h = 0;
      var m = 0;
      var s = 0;
      var currentTime = new Date().getTime() / 1000;
      times = targetDate / 1000 - currentTime;
      if (times > 0) {
        // 进入页面执行显示倒计时
        h = Math.floor(times / (60 * 60));
        m = Math.floor((times - h * 60 * 60) / 60);
        s = Math.floor(times - h * 60 * 60 - m * 60);
        h = h < 10 ? '0' + h : h;
        m = m < 10 ? '0' + m : m;
        s = s < 10 ? '0' + s : s;
        self.countDownTime = h + ':' + m + ':' + s;
        timer = setInterval(function () {
          h = Math.floor(times / (60 * 60));
          m = Math.floor((times - h * 60 * 60) / 60);
          s = Math.floor(times - h * 60 * 60 - m * 60);
          times--;
          h = h < 10 ? '0' + h : h;
          m = m < 10 ? '0' + m : m;
          s = s < 10 ? '0' + s : s;
          // console.log(h, m, s);
          self.countDownTime = h + ':' + m + ':' + s;
          // console.log(self.countDownTime);
          if (times <= 0) {
            self.offClick = true;
            self.btnText = '抢单已超时，等待城市经理分配';
            clearInterval(timer);
          }
        }, 1000);
      } else {
        self.countDownTime = '00:00:00';
      }
    },
    onCopy: function onCopy(e) {
      console.log(e);
      this.$toast({
        message: '复制成功',
        duration: 1000,
        position: 'top'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"grab-order"},[(_vm.showGrabTime)?_c('div',{staticClass:"countdown"},[(!_vm.grabSuccess)?_c('span',[_vm._v("剩余时间")]):_vm._e(),(!_vm.grabSuccess)?_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm.countDownTime))]):_vm._e(),_vm._v(" "),(_vm.grabSuccess)?_c('span',[_vm._v("抢单成功，加油！")]):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"customer",class:{'mt': _vm.showGrabTime}},[_c('ul',{staticClass:"customer-info"},[_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("客户姓名：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.uname))]),(_vm.grabSuccess)?_c('span',{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:(_vm.userInfo.uname),expression:"userInfo.uname",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:(_vm.onCopy),expression:"onCopy",arg:"success"}],staticClass:"copy"},[_vm._v("复制")]):_vm._e()]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("客户电话：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.uphone))]),(_vm.grabSuccess)?_c('span',{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:(_vm.userInfo.uphone),expression:"userInfo.uphone",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:(_vm.onCopy),expression:"onCopy",arg:"success"}],staticClass:"copy"},[_vm._v("复制")]):_vm._e()]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("店铺名称：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.companyName || '--'))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("客户地址：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.uphoneProvince)+_vm._s(_vm.userInfo.uphoneCity)+_vm._s(_vm.userInfo.uaddress))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("收货地址：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.finalAddress))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("注册时间：")]),_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.userInfo.signTime,'yyyy-MM-dd hh:mm:ss')))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("预约上门时间：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.bookingTime))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("客户标签(电销)：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.lable))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("客户标签(地推)：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.dtLable))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("电销销售：")]),_c('span',[_vm._v(_vm._s(_vm.userInfo.saleGroupName)+"-"+_vm._s(_vm.userInfo.saleName))])]),_vm._v(" "),_c('li',[_c('span',{staticClass:"info-label"},[_vm._v("客户意向：")]),_c('span',{domProps:{"innerHTML":_vm._s(_vm.userInfo.intention)}})])])]),_vm._v(" "),_c('div',{staticClass:"logs-container"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"logs",class:{'pd': !_vm.grabSuccess}},[(_vm.showNullTip)?_c('p',{staticClass:"null-tip"},[_vm._v("暂无数据")]):_vm._e(),_vm._v(" "),_vm._l((_vm.recordsList),function(item,index){return _c('div',{key:index,staticClass:"logs-list"},[_c('div',{staticClass:"log-head",on:{"click":function($event){return _vm.toggleLog(item)}}},[_c('span',{staticClass:"arrow-icon",class:{'up': item.active}}),_vm._v(" "),_c('p',[_c('span',{staticClass:"log-date"},[_vm._v(_vm._s(_vm._f("dateFormat")(item[0].createTime,'yyyy-MM-dd hh:mm:ss')))]),_c('span',[_vm._v("（"+_vm._s(item[0].type)+"）")])]),_vm._v(" "),_c('p',[_c('span',[_vm._v("拜访人：")]),_c('span',[_vm._v(_vm._s(item[0].createUser))])]),_vm._v(" "),_c('p',[_c('span',[_vm._v("备注：")]),_c('span',[_vm._v(_vm._s(item[0].remark || '--'))])])]),_vm._v(" "),(item.active)?_c('ul',{staticClass:"log-content"},_vm._l((item[1]),function(q,index){return (q.title !== '操作' && q.title !== '经纬度' && q.title !== '序号' && q.content !== '')?_c('li',{key:index},[_c('span',[_vm._v(_vm._s(q.title)+"：")]),_vm._v(" "),(q.title === '上传您的正反面身份证信息')?_c('span',[_c('div',[_c('img',{attrs:{"src":_vm.bucketUrl + q.content},on:{"click":function($event){return _vm.viewImage(_vm.bucketUrl + _vm.pic)}}})])]):(q.title === '语音文件' && q.content !== '')?_c('span',[_c('span',{staticClass:"voice-meta"},[_c('span',{domProps:{"innerHTML":_vm._s(q.content)}}),_c('i')])]):(q.title === '门头图' || q.title === '门头照片' || q.title === '门头照片（未上门请传电话/微信截图）')?_c('span',[_c('div',_vm._l((JSON.parse(q.content)),function(pic,i){return _c('img',{key:i,attrs:{"src":_vm.bucketUrl + pic},on:{"click":function($event){return _vm.viewImage(_vm.bucketUrl + pic)}}})}),0)]):_c('span',{domProps:{"innerHTML":_vm._s(q.content)}})]):_vm._e()}),0):_vm._e()])})],2)]),_vm._v(" "),(_vm.showGrabBtn)?_c('div',{staticClass:"grab-order-btn",class:{'off': _vm.offClick},on:{"click":function($event){return _vm.grabUser()}}},[_vm._v(_vm._s(_vm.btnText))]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h3',{staticClass:"panel-title"},[_vm._v("跟进记录 "),_c('span',{staticClass:"tip"},[_vm._v("(上门拜访地址在App查看)")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(617);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5ccdbb4f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1216);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3292)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5ccdbb4f"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5ccdbb4f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5ccdbb4f_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3293);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3239ed4a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".messageBox .tabList[data-v-5ccdbb4f]{height:2.2rem;background:#fafafa;border-bottom:1px solid #f7f7f7}.messageBox .tabList li[data-v-5ccdbb4f]{float:left;width:50%;height:100%;line-height:2.2rem}.messageBox .tabList li[data-v-5ccdbb4f]:first-of-type{text-align:right;padding-right:1.2rem}.messageBox .tabList li[data-v-5ccdbb4f]:nth-of-type(2){padding-left:1.2rem}.messageBox .tabList li.active span[data-v-5ccdbb4f]{color:#377ee1}.messageBox .tabList li.active span[data-v-5ccdbb4f]:after{content:\"\";position:absolute;width:1rem;height:3px;border-radius:2px;background:#377ee1;bottom:0;left:50%;margin-left:-.5rem}.messageBox .tabList li span[data-v-5ccdbb4f]{font-size:16px;color:#333;font-family:PingFangSC-Semibold;position:relative}.messageBox .contener[data-v-5ccdbb4f]{padding:0 .5rem}.messageBox .contener ul li[data-v-5ccdbb4f]{border-bottom:1px solid #eee;padding:1rem 0}.messageBox .contener ul li.noList[data-v-5ccdbb4f]{border:0;text-align:center;color:#666;font-size:14px}.messageBox .contener ul li .oneLevel .arror[data-v-5ccdbb4f]{width:3.3rem;height:2.2rem;margin-left:.5rem;background:url(" + escape(__webpack_require__(814)) + ") 100% no-repeat;background-size:7px 12px}.messageBox .contener ul li .mesConfig[data-v-5ccdbb4f]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex}.messageBox .contener ul li .mesConfig img[data-v-5ccdbb4f]{width:2.2rem;height:2.2rem;border-radius:2px;-webkit-border-radius:2px;margin-right:.4rem;pointer-events:none}.messageBox .contener ul li .mesConfig .titPart[data-v-5ccdbb4f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.messageBox .contener ul li .mesConfig .titPart .tit[data-v-5ccdbb4f]{font-family:PingFangSC-Regular;font-size:16px;color:#333;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messageBox .contener ul li .mesConfig .titPart .takeNum[data-v-5ccdbb4f]{font-family:PingFangSC-Regular;font-size:13px;color:#999}.messageBox .contener ul li .mesConfig .contral[data-v-5ccdbb4f]{font-family:PingFangSC-Regular;width:3.3rem;height:1.4rem;background:#377ee1;border-radius:2px;-webkit-border-radius:2px;line-height:1.4rem;border:1px solid transparent;text-align:center;margin-left:.5rem;color:#fff;font-size:13px}.messageBox .contener ul li .mesConfig .contral.taked[data-v-5ccdbb4f]{background:#ddd;color:#666}.messageBox .contener ul li .mesCont[data-v-5ccdbb4f]{margin-top:.8rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;font-family:PingFangSC-Regular;font-size:14px;color:#666;line-height:21px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      tabFlag: 1,
      allOneLevelObj: {},
      // 所有订阅的的消息（一级主题）
      allTwoLevelObj: {},
      // 所有订阅的的消息（二级主题）
      takedObj: {},
      // 已订阅的的消息
      imgBasicUrl: '',
      // 主题图标路径
      userId: ''
    };
  },
  created: function created() {
    this.getAllMes(false);
    this.getUserInfo();
  },
  methods: {
    /* tab切换*/tabClick: function tabClick(flag) {
      var that = this;
      that.tabFlag = flag;
      that.getAllMes(true);
    },
    /* 获取用户信息*/getUserInfo: function getUserInfo() {
      var that = this;
      that._Util.post(that._Api.POST_MEMBER_PERSONAL_INFO, {}, function (data) {
        if (data) {
          that.userId = data.userId;
        }
      }, function () {}, that);
    },
    /* 获取所有消息*/getAllMes: function getAllMes(showLoading) {
      var that = this;
      that._Util.post(that._Api.MESSAGETAKE.GET_ALLMESSAGE, {}, function (data) {
        if (data.liSubjects) {
          that.takedObj = data.liSubjects;
          that.allOneLevelObj = data.topMaps;
          that.allTwoLevelObj = data.otherMaps;
          that.imgBasicUrl = data.prefixUrl;
        }
      }, function () {}, that, showLoading);
    },
    /* 跳转到二级消息页面*/toSecondLevel: function toSecondLevel(item) {
      var that = this;
      var date = this._Util.dateFormat(new Date().getTime(), 'yyyy-MM-dd hh:mm:ss');
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: '消息订阅',
        operate_page: that.tabFlag == 1 ? '已订阅tab页' : '所有订阅tab页',
        optionType: '打开二级消息页面',
        param1: that.userId,
        param2: item.messageId,
        param3: date
      }, that);
      that.$router.push({
        name: 'messageTakeSecond',
        query: {
          mesId: item.messageId
        },
        params: {
          userId: that.userId
        }
      });
    },
    /* 点击控制订阅与否*/contTake: function contTake(item) {
      var that = this;
      var curStatus = item.status; // 当前订阅状态
      var date = this._Util.dateFormat(new Date().getTime(), 'yyyy-MM-dd hh:mm:ss');
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        title: window.document.title,
        url: window.location.href,
        moduleType: '消息订阅',
        operate_page: that.tabFlag == 1 ? '已订阅tab页' : '所有订阅tab页',
        optionType: curStatus == 1 ? '取消订阅' : '订阅',
        param1: that.userId,
        param2: item.messageId,
        param3: date
      }, that);
      that._Util.post(that._Api.MESSAGETAKE.CONTROLTAKE, {
        messageId: item.messageId
      }, function (data) {
        item.status = curStatus == 1 ? 0 : 1;
        item.subscribeNum = item.subscribeNum + (curStatus == 1 ? -1 : 1);
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"messageBox"},[_c('ul',{staticClass:"tabList"},[_c('li',{class:{active: _vm.tabFlag == 1},on:{"click":function($event){return _vm.tabClick(1)}}},[_c('span',[_vm._v("已订阅")])]),_vm._v(" "),_c('li',{class:{active: _vm.tabFlag == 2},on:{"click":function($event){return _vm.tabClick(2)}}},[_c('span',[_vm._v("所有订阅")])])]),_vm._v(" "),_c('div',{staticClass:"contener"},[_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.tabFlag == 1),expression:"tabFlag == 1"}]},[_vm._l((_vm.takedObj),function(item){return _c('li',{key:item.messageId},[_c('div',{staticClass:"mesConfig"},[_c('img',{attrs:{"src":_vm.imgBasicUrl + item.messageIcon,"alt":"消息主题图片"}}),_vm._v(" "),_c('div',{staticClass:"titPart"},[_c('div',{staticClass:"tit"},[_vm._v(_vm._s(item.messageTitle))]),_vm._v(" "),_c('div',{staticClass:"takeNum"},[_vm._v(_vm._s(item.subscribeNum)+"人订阅")])]),_vm._v(" "),_c('div',{staticClass:"contral",class:{taked : item.status == 1},on:{"click":function($event){return _vm.contTake(item)}}},[_vm._v("\n            "+_vm._s(item.status == 1 ? '取消订阅' : '订阅')+"\n          ")])]),_vm._v(" "),_c('div',{staticClass:"mesCont"},[_vm._v("\n          "+_vm._s(item.description)+"\n        ")])])}),_vm._v(" "),(_vm.takedObj.length == 0)?_c('li',{staticClass:"noList"},[_vm._v("暂无订阅消息")]):_vm._e()],2),_vm._v(" "),_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.tabFlag == 2),expression:"tabFlag == 2"}]},[_vm._l((_vm.allOneLevelObj),function(item){return _c('li',{key:item.messageId,on:{"click":function($event){return _vm.toSecondLevel(item)}}},[_c('div',{staticClass:"mesConfig oneLevel"},[_c('img',{attrs:{"src":_vm.imgBasicUrl + item.messageIcon,"alt":"消息主题图片"}}),_vm._v(" "),_c('div',{staticClass:"titPart"},[_c('div',{staticClass:"tit"},[_vm._v(_vm._s(item.messageTitle))]),_vm._v(" "),_c('div',{staticClass:"takeNum"},[_vm._v(_vm._s(item.subscribeNum)+"人订阅")])]),_vm._v(" "),_c('div',{staticClass:"arror"})])])}),_vm._v(" "),_vm._l((_vm.allTwoLevelObj),function(item){return _c('li',{key:item.messageId},[_c('div',{staticClass:"mesConfig"},[_c('img',{attrs:{"src":_vm.imgBasicUrl + item.messageIcon,"alt":"消息主题图片"}}),_vm._v(" "),_c('div',{staticClass:"titPart"},[_c('div',{staticClass:"tit"},[_vm._v(_vm._s(item.messageTitle))]),_vm._v(" "),_c('div',{staticClass:"takeNum"},[_vm._v(_vm._s(item.subscribeNum)+"人订阅")])]),_vm._v(" "),_c('div',{staticClass:"contral",class:{taked : item.status == 1},on:{"click":function($event){return _vm.contTake(item)}}},[_vm._v("\n            "+_vm._s(item.status == 1 ? '取消订阅' : '订阅')+"\n          ")])]),_vm._v(" "),_c('div',{staticClass:"mesCont"},[_vm._v("\n          "+_vm._s(item.description)+"\n        ")])])}),_vm._v(" "),(_vm.allTwoLevelObj.length == 0 && _vm.allOneLevelObj.length == 0)?_c('li',{staticClass:"noList"},[_vm._v("暂无订阅消息")]):_vm._e()],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(618);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e08b348c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1217);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3294)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-e08b348c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e08b348c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_e08b348c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondLevel_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3295);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("10dab8c6", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".second[data-v-e08b348c]{padding:0 .5rem}.second ul li[data-v-e08b348c]{border-bottom:1px solid #eee;padding:1rem 0}.second ul li.noList[data-v-e08b348c]{border:0;text-align:center;color:#666;font-size:14px}.second ul li .oneLevel .arror[data-v-e08b348c]{width:3.3rem;height:2.2rem;margin-left:.5rem;background:url(" + escape(__webpack_require__(814)) + ") 100% no-repeat;background-size:7px 12px}.second ul li .mesConfig[data-v-e08b348c]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex}.second ul li .mesConfig img[data-v-e08b348c]{width:2.2rem;height:2.2rem;border-radius:2px;-webkit-border-radius:2px;margin-right:.4rem;pointer-events:none}.second ul li .mesConfig .titPart[data-v-e08b348c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.second ul li .mesConfig .titPart .tit[data-v-e08b348c]{font-family:PingFangSC-Regular;font-size:16px;color:#333;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.second ul li .mesConfig .titPart .takeNum[data-v-e08b348c]{font-family:PingFangSC-Regular;font-size:13px;color:#999}.second ul li .mesConfig .contral[data-v-e08b348c]{font-family:PingFangSC-Regular;width:3.3rem;height:1.4rem;background:#377ee1;border-radius:2px;-webkit-border-radius:2px;line-height:1.4rem;border:1px solid transparent;text-align:center;margin-left:.5rem;color:#fff;font-size:13px}.second ul li .mesConfig .contral.taked[data-v-e08b348c]{background:#ddd;color:#666}.second ul li .mesCont[data-v-e08b348c]{margin-top:.8rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;font-family:PingFangSC-Regular;font-size:14px;color:#666;line-height:21px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      oneMessageId: this.$route.query.mesId,
      // 一级主题id
      secondLevelMes: [],
      // 二级消息列表
      imgBasicUrl: '',
      // 主题图标路径
      userId: this.$route.params.userId,
      parentTit: '消息订阅'
    };
  },
  created: function created() {
    this.getSecondMes();
  },
  methods: {
    /* 获取二级订阅消息*/getSecondMes: function getSecondMes() {
      var that = this;
      that._Util.post(that._Api.MESSAGETAKE.GET_SECONDLEVEL, {
        messageId: that.oneMessageId
      }, function (data) {
        if (data.messageTopTitle) {
          that.secondLevelMes = data.sencondMaps;
          that.parentTit = data.messageTopTitle;
          document.title = data.messageTopTitle;
          that.imgBasicUrl = data.prefixUrl;
        }
      }, function () {}, that);
    },
    /* 点击控制订阅与否*/contTake: function contTake(item) {
      var that = this;
      var curStatus = item.status; // 当前订阅状态

      var date = this._Util.dateFormat(new Date().getTime(), 'yyyy-MM-dd hh:mm:ss');
      that._Util.collectPageView2({
        version: that._Util.version,
        postUrl: that._Api.POST_COLLECT,
        title: that.parentTit,
        url: window.location.href,
        moduleType: '消息订阅',
        operate_page: '消息订阅二级页面',
        optionType: curStatus == 1 ? '取消订阅' : '订阅',
        param1: that.userId,
        param2: item.messageId,
        param3: date
      }, that);
      that._Util.post(that._Api.MESSAGETAKE.CONTROLTAKE, {
        messageId: item.messageId
      }, function (data) {
        item.status = curStatus == 1 ? 0 : 1;
        item.subscribeNum = item.subscribeNum + (curStatus == 1 ? -1 : 1);
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"second"},[_c('ul',[_vm._l((_vm.secondLevelMes),function(item){return _c('li',{key:item.messageId},[_c('div',{staticClass:"mesConfig"},[_c('img',{attrs:{"src":_vm.imgBasicUrl + item.messageIcon,"alt":"消息主题图片"}}),_vm._v(" "),_c('div',{staticClass:"titPart"},[_c('div',{staticClass:"tit"},[_vm._v(_vm._s(item.messageTitle))]),_vm._v(" "),_c('div',{staticClass:"takeNum"},[_vm._v(_vm._s(item.subscribeNum)+"人订阅")])]),_vm._v(" "),_c('div',{staticClass:"contral",class:{taked : item.status == 1},on:{"click":function($event){return _vm.contTake(item)}}},[_vm._v("\n          "+_vm._s(item.status == 1 ? '取消订阅' : '订阅')+"\n        ")])]),_vm._v(" "),_c('div',{staticClass:"mesCont"},[_vm._v("\n        "+_vm._s(item.description)+"\n      ")])])}),_vm._v(" "),(_vm.secondLevelMes.length == 0)?_c('li',{staticClass:"noList"},[_vm._v("暂无订阅消息")]):_vm._e()],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(619);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4b13186c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1218);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3296)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4b13186c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4b13186c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_checkStepsCont_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3297);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("722ba96c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".checkStep{width:100%;padding:0 2%;box-sizing:border-box;-webkit-box-sizing:border-box}.checkStep .cont{font-size:18px;color:#333;line-height:25px;width:100%}.checkStep .cont>div{max-width:100%;overflow-x:hidden}.checkStep .cont .open-term{padding-right:3px;font-style:italic}.checkStep .cont .open-term:after{content:\"?\";font-size:14px;display:inline-block;margin-left:5px;width:19px;height:19px;border:1px solid #0070c0;border-radius:50%;-webkit-border-radius:50%;text-align:center;line-height:19px;font-style:normal}.checkStep .cont a{text-decoration:underline;color:#1766b3}.checkStep .cont span{font-size:100%;display:inline}.checkStep .cont img{max-width:100%!important}.checkStep .cont video{max-width:100%;background:#000;height:auto}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      name: this.$route.query.name,
      proId: this.$route.query.proId,
      result: {}
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    that.getCheckStepCont();
    that.getStatus();
  },
  mounted: function mounted() {
    var that = this;

    // a链接阻止默认事件，控制跳转
    (0, _jquery.default)(document).on('click', '.cont a', function (event) {
      event.preventDefault();
      if (that.userSta != 2) {
        // 非付费会员
        (0, _mintUi.MessageBox)({
          title: ' ',
          message: '很抱歉，详细内容只有付费会员可以查看哦～',
          confirmButtonText: '了解付费会员',
          showCancelButton: true
        }).then(function (action) {
          if (action == 'confirm') {
            window.open(location.origin + '/v2/business/pay/certificationRenewal?fullPath=' + window.location.href + '&userStatus=' + that.userSta + '&userTitle=' + document.title);
          } else {
            console.log('取消');
          }
        });
        return;
      }
      var src = (0, _jquery.default)(this).attr('href');
      // var parentDiv = $(this).parents('.des')
      window.top.open(src);
    });
    // 点击名字库，显示相应的排查步骤
    (0, _jquery.default)(document).on('click', '.cont .clickItem', function (event) {
      if (that.userSta != 2) {
        // 非付费会员
        (0, _mintUi.MessageBox)({
          title: ' ',
          message: '很抱歉，详细内容只有付费会员可以查看哦～',
          confirmButtonText: '了解付费会员',
          showCancelButton: true
        }).then(function (action) {
          if (action == 'confirm') {
            window.open(location.origin + '/v2/business/pay/certificationRenewal?fullPath=' + window.location.href + '&userStatus=' + that.userSta + '&userTitle=' + document.title);
          } else {
            console.log('取消');
          }
        });
        return;
      }
      var id = (0, _jquery.default)(this).attr('data');
      var ele = (0, _jquery.default)('#' + id);
      // alert(ele.css('display'))
      if (ele.css('display') == 'none') {
        ele.css({
          'display': 'block',
          'padding': '10px 0 0 15px'
        });
      } else {
        ele.css('display', 'none');
      }
    });
    // 点击跳转到富文本详情页
    (0, _jquery.default)(document).on('click', '.cont .open-term', function (event) {
      var name = (0, _jquery.default)(this).text();
      var proId = that.result.proId;
      if (!name || !proId) {
        return;
      }
      window.top.location.assign(that._Api.HOSTRESOURCEPATH + '/v2/gzm/checkStep?name=' + name + '&proId=' + proId);
    });
  },
  methods: {
    // 获取用户会员状态
    getStatus: function getStatus() {
      var that = this;
      that._Util.post(that._Api.POST_USER_STATUS, {}, function (data) {
        that.userSta = data.userStatus;
      }, function () {}, that);
    },
    /* 获取排查步骤富文本内容*/getCheckStepCont: function getCheckStepCont() {
      var that = this;
      var params = {
        name: that.name,
        proId: that.proId
      };
      that._Util.post(that._Api.POST_FALT_CODE_GETCHECKCONTENT, params, function (data) {
        // console.log(data)
        that.result = data;
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"checkStep"},[_c('div',{staticClass:"cont",domProps:{"innerHTML":_vm._s(_vm.result.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(620);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_36bb382b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1219);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3298)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-36bb382b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_36bb382b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_36bb382b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3299);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("322e1463", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".examAndClass[data-v-36bb382b]{padding:1rem .6rem 0;box-sizing:border-box;font-family:PingFangSC-Regular;font-size:15px}.examAndClass .item[data-v-36bb382b]{box-shadow:0 0 10px 0 rgba(204,215,230,.79);padding:.6rem .5rem;margin-bottom:1.2rem}.examAndClass .item .title[data-v-36bb382b]{font-size:18px;font-family:PingFangSC-Semibold;font-weight:600;color:#333;line-height:25px}.examAndClass .item .ctrlBox[data-v-36bb382b]{margin-top:.8rem;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-justify-content:space-between;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;position:relative}.examAndClass .item .ctrlBox .statusAndDate .date span[data-v-36bb382b],.examAndClass .item .ctrlBox .statusAndDate .statu span[data-v-36bb382b]{line-height:21px;color:#666}.examAndClass .item .ctrlBox .statusAndDate .statu .signed[data-v-36bb382b]{color:#377ee1}.examAndClass .item .ctrlBox .openBtn[data-v-36bb382b]{width:4rem;height:28px;border-radius:1.1rem;border:1px solid #377ee1;color:#377ee1;font-size:13px;text-align:center;line-height:26px;position:absolute;right:0;bottom:0}.examAndClass .item .ctrlBox .openBtn.dis[data-v-36bb382b]{color:#999;border:1px solid #999}.examAndClass .item.marg0[data-v-36bb382b]{margin:0}.examAndClass .nocont[data-v-36bb382b],.examAndClass .nomore[data-v-36bb382b]{line-height:45px;text-align:center;color:#666;font-size:14px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  filters: {},
  // 班课和考试列表
  data: function data() {
    return {
      type: this.$route.query.type,
      // 根据type区分考试还是班课
      result: [],
      param: {
        pageNum: 1,
        pageSize: 20
      },
      canget: true,
      shoeNomore: false
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    that.getData(that.type);
  },
  mounted: function mounted() {
    var that = this;
    var winH = (0, _jquery.default)(window).height();
    (0, _jquery.default)(window).scroll(function () {
      var docH = (0, _jquery.default)(document).height();
      var scrT = (0, _jquery.default)(this).scrollTop();
      // console.log(scrT+'--'+ docH +'--'+winH);
      if (winH + scrT >= docH - 20) {
        if (that.canget) {
          that.canget = false;
          that.param.pageNum++;
          that.getData(that.type);
        }
      }
    });
  },
  methods: {
    // 获取数据
    getData: function getData(type) {
      var that = this;
      var code = type == 'exam' ? 'my_exam_results' : 'class_course';
      that.param.code = code;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, that.param, function (data) {
        that.canget = true;
        if (data.dataList.length) {
          that.result = that.result.concat(data.dataList);
          if (that.param.pageNum * that.param.pageSize > data.totalCount) {
            that.canget = false;
            that.shoeNomore = true;
          }
        } else {
          that.canget = false;
        }
      }, function () {}, that);
    },
    // 打开试卷或者查看班课
    openItem: function openItem(type, item) {
      var that = this;
      var url = '';
      var appName = '';
      if (type == 1) {
        // 打开试卷
        if (!item.exam_score) {
          // 试卷没有分数，代表还在批改中
          return;
        }
        url = item.exam_url;
        appName = 'openExam';
      } else {
        // 查看班课
        url = item.class_url;
        appName = 'openClass';
      }
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: appName,
            url: url
          }
        });
      } else {
        window.location.href = url;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"examAndClass",attrs:{"id":"examAndClass"}},[_vm._l((_vm.result),function(item,ind){return _c('div',{key:ind,staticClass:"item",class:{marg0: _vm.result.length-1 == ind}},[(_vm.type == 'exam')?_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.exam_title))]):_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.class_title))]),_vm._v(" "),_c('div',{staticClass:"ctrlBox"},[_c('div',{staticClass:"statusAndDate"},[(_vm.type == 'exam')?_c('div',{staticClass:"date"},[_c('span',[_vm._v("考试时间：")]),_c('span',[_vm._v(_vm._s(item.exam_time))])]):_c('div',{staticClass:"date"},[_c('span',[_vm._v("开课时间：")]),_c('span',[_vm._v(_vm._s(item.class_time))])]),_vm._v(" "),(_vm.type == 'exam')?_c('div',{staticClass:"statu"},[_c('span',[_vm._v("我的得分：")]),_c('span',[_vm._v(_vm._s(item.exam_score ? item.exam_score : '试卷批改中'))])]):_c('div',{staticClass:"statu"},[_c('span',[_vm._v("报名状态：")]),_c('span',{class:{signed: item.class_status == 1}},[_vm._v(_vm._s(item.class_status == 0 ? '未报名' : '已报名'))])])]),_vm._v(" "),(_vm.type == 'exam')?_c('div',{staticClass:"openBtn",class:{dis: !item.exam_score},on:{"click":function($event){$event.stopPropagation();return _vm.openItem(1,item)}}},[_vm._v("打开试卷")]):_c('div',{staticClass:"openBtn",on:{"click":function($event){$event.stopPropagation();return _vm.openItem(2,item)}}},[_vm._v("查看详情")])])])}),_vm._v(" "),(_vm.result.length == 0)?_c('div',{staticClass:"nocont"},[_vm._v("暂无相关内容")]):_vm._e(),_vm._v(" "),(_vm.shoeNomore)?_c('div',{staticClass:"nomore"},[_vm._v("没有更多了")]):_vm._e()],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(621);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4dbfbc86_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1220);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3300)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4dbfbc86_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4dbfbc86_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_salesPerson_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3301);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("dbd05738", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak]{display:none}.reNew_sale{font-family:PingFangSC-Regular}.reNew_sale .cont{height:100%;padding:0 .8rem;padding-top:3.2rem;position:relative}.reNew_sale .cont .inputBox{height:2.4rem;width:100%;background:#f5f5f5;position:relative;border-radius:2px}.reNew_sale .cont .inputBox i{position:absolute;width:.7rem;height:.9rem;left:.75rem;top:.8rem;background-image:url(" + escape(__webpack_require__(3302)) + ");background-size:100% 100%;background-repeat:no-repeat}.reNew_sale .cont .inputBox input{width:1005;height:100%;padding-left:2.2rem;color:#333;font-size:16px}.reNew_sale .cont .inputBox input::-webkit-input-placeholder{color:#666;font-size:16px}.reNew_sale .cont .selectBtn{margin-top:1.6rem;width:100%;height:2.2rem;line-height:2.2rem;text-align:center;color:#fff;font-size:17px;border-radius:2px;background:#fafafa linear-gradient(38deg,#424cf7,#4292f7)}.reNew_sale .cont .myApplication{position:fixed;padding:10px 0;bottom:1rem;left:0;width:100%;text-align:center;color:#307bef;font-size:14px;text-decoration:underline}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/mobile.fb1ad9c.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      customerPhone: '',
      // 客户手机号
      phoneTest: /^1[3456789]\d{9}$/,
      salerStatus: 1 // 用户角色，1.非销售 2.普通销售 3.销售主管
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    that.getUserRole();
  },
  methods: {
    /** 获取销售角色 */getUserRole: function getUserRole() {
      var that = this;
      that._Util.post(that._Api.RENEW.GETUSERROLE, {}, function (data) {
        if (data.userRoleStatus == 1) {
          // 非销售
          location.replace(that._Api.HOSTRESOURCEPATH + '/v2/fms');
        } else {
          that.salerStatus = data.userRoleStatus;
        }
      }, function () {}, that);
    },
    /** 选择商品 */selectGood: function selectGood() {
      var that = this;
      /** 普通销售 */
      if (that.salerStatus == 2) {
        if (!that.customerPhone) {
          (0, _mintUi.Toast)({
            message: '请输入客户手机号',
            duration: 1000
          });
          return;
        }
        if (!that.phoneTest.test(that.customerPhone)) {
          (0, _mintUi.Toast)({
            message: '手机号码格式不正确，请重新输入',
            duration: 1000
          });
          return;
        }
        that._Util.post(that._Api.RENEW.GETCUSTOMERINFO, {
          uPhone: that.customerPhone
        }, function (data) {
          if (data && data.userDetailId) {
            that.$router.push({
              name: 'reNewSelectGood',
              query: {
                salerStatus: that.salerStatus,
                userDetailId: data.userDetailId,
                userPhone: data.uphone
              }
            });
          }
        }, function () {}, that);
      } else if (that.salerStatus == 3) {
        // 销售主管
        that.$router.push({
          name: 'reNewSelectGood',
          query: {
            salerStatus: that.salerStatus
          }
        });
      }
    },
    /** 查看我的申请记录 */getMyApplication: function getMyApplication() {
      this.$router.push({
        name: 'reNewMyApplication'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"reNew_sale"},[(_vm.salerStatus != 1 )?_c('div',{staticClass:"cont"},[_c('div',{staticClass:"inputBox"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.customerPhone),expression:"customerPhone"}],attrs:{"type":"text","placeholder":"请输入客户手机号","maxlength":"11"},domProps:{"value":(_vm.customerPhone)},on:{"input":function($event){if($event.target.composing){ return; }_vm.customerPhone=$event.target.value}}})]),_vm._v(" "),_c('span',{staticClass:"selectBtn",on:{"click":_vm.selectGood}},[_vm._v("选择以旧换新商品")]),_vm._v(" "),_c('span',{staticClass:"myApplication",on:{"click":_vm.getMyApplication}},[_vm._v("我的以旧换新申请")])]):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(622);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c49d36b0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1221);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3303)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c49d36b0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c49d36b0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_selectGood_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3304);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("49451086", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak]{display:none}.reNew_selectGood{background:#f2f2f7}.reNew_selectGood .inputBox{position:fixed;top:0;left:0;width:100%;height:2.75rem;padding:0 .6rem;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.reNew_selectGood .inputBox input{height:1.75rem;width:14rem;background:#f5f5f5;padding-left:1.8rem;color:#333}.reNew_selectGood .inputBox input::-webkit-input-placeholder{color:#666;font-size:16px}.reNew_selectGood .inputBox .searchBtn{width:3rem;height:1.75rem;text-align:center;line-height:1.75rem;color:#fff;background:#307bef;border-radius:2px}.reNew_selectGood .inputBox i{position:absolute;width:.8rem;height:.8rem;top:1rem;left:1rem;background-image:url(" + escape(__webpack_require__(3305)) + ");background-size:100% 100%;background-repeat:no-repeat}.reNew_selectGood ul{padding:3.4rem .4rem .6rem;background:#f2f2f7}.reNew_selectGood ul li{padding:.6rem;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between;border-radius:4px;background:#fff;margin-bottom:.4rem}.reNew_selectGood ul li span{font-size:16px;color:#333;width:90%}.reNew_selectGood ul li i{width:1rem;height:1rem;background-image:url(" + escape(__webpack_require__(3306)) + ");background-size:100% 100%;background-repeat:no-repeat}.reNew_selectGood ul li.active i{background-image:url(" + escape(__webpack_require__(3307)) + ");background-size:100% 100%;background-repeat:no-repeat}.reNew_selectGood ul .loadMore{border:1px solid #307bef;line-height:2rem;text-align:center;color:#307bef;font-size:16px;background:#fff;border-radius:4px}.reNew_selectGood ul .noMore{line-height:2rem;font-size:14px;color:#666;text-align:center}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/search.f738f7d.png";module.exports = __webpack_require__.p + "static/img/noSelect.79e7e3c.png";module.exports = __webpack_require__.p + "static/img/selected.fe8e107.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      goodName: '',
      // 商品名称
      params: {
        pageNum: 1,
        pageSize: 20
      },
      goodList: [],
      // 商品列表
      customerPhone: this.$route.query.userPhone,
      // 客户手机号
      customerId: this.$route.query.userDetailId,
      // 客户id
      showLoadMore: true,
      showNomore: false
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    // alert(that.customerPhone)
    // alert(that.customerId)
    that.getMdseList();
  },
  mounted: function mounted() {
    this.$nextTick(function () {
      (0, _jquery.default)('.reNew_selectGood').on('click', 'ul li', function () {
        (0, _jquery.default)(this).addClass('active').siblings().removeClass('active');
      });
    });
  },
  methods: {
    /** 搜索关键字 */search: function search() {
      var that = this;
      that.params.pageNum = 1;
      that.goodList = [];
      that.getMdseList();
    },
    /** 加载更多，获取更多数据 */loadMore: function loadMore() {
      var that = this;
      that.params.pageNum++;
      that.getMdseList();
    },
    /** 获取商品列表 */getMdseList: function getMdseList() {
      var that = this;
      if (that.goodName.trim()) {
        that.params.mdseName = that.goodName.trim();
      }
      if (!that.goodName.trim()) {
        delete that.params.mdseName;
      }
      that._Util.post(that._Api.RENEW.GETMDSELIST, that.params, function (data) {
        that.goodList = that.goodList.concat(data.dataList);
        if (that.params.pageNum * that.params.pageSize >= data.totalCount) {
          that.showLoadMore = false;
          that.showNomore = true;
        } else {
          that.showLoadMore = true;
          that.showNomore = false;
        }
      }, function () {}, that);
    },
    /** 跳转到查询结果页 */toResult: function toResult(item) {
      var that = this;
      that.$router.push({
        name: 'reNewResult',
        query: {
          mdseId: item.mdseId,
          customerPhone: that.customerPhone,
          customerId: that.customerId
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"reNew_selectGood"},[_c('div',{staticClass:"inputBox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.goodName),expression:"goodName"}],attrs:{"type":"text","placeholder":"请输入商品名称"},domProps:{"value":(_vm.goodName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.goodName=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"searchBtn",on:{"click":_vm.search}},[_vm._v("搜索")]),_vm._v(" "),_c('i')]),_vm._v(" "),_c('ul',[_vm._l((_vm.goodList),function(item){return _c('li',{key:item.id,on:{"click":function($event){return _vm.toResult(item)}}},[_c('span',[_vm._v(_vm._s(item.mdseName))]),_vm._v(" "),_c('i')])}),_vm._v(" "),(_vm.showLoadMore && _vm.goodList.length > 0)?_c('div',{staticClass:"loadMore",on:{"click":_vm.loadMore}},[_vm._v("加载更多")]):_vm._e(),_vm._v(" "),(_vm.showNomore && _vm.goodList.length > 0)?_c('div',{staticClass:"noMore"},[_vm._v("没有更多了～")]):_vm._e(),_vm._v(" "),(_vm.goodList.length == 0)?_c('div',{staticClass:"noMore"},[_vm._v("暂无对应商品")]):_vm._e()],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(623);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_496dbc5e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1222);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3308)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_496dbc5e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_496dbc5e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myApplication_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3309);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("93023cac", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak]{display:none}.reNew_my{font-family:PingFangSC-Regular;background:#f2f2f7;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.reNew_my,.reNew_my .notic{display:-webkit-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.reNew_my .notic{background:#ffefdc;padding:.4rem 0;text-align:center;font-size:14px;color:#ee4545;text-indent:10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.reNew_my .list{margin-top:.6rem;width:96%;margin-left:2%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border-radius:.2rem;overflow-y:auto;-webkit-overflow-scrolling:touch}.reNew_my .list li{margin-bottom:.4rem;padding:0 .6rem;background:#fff;border-radius:4px}.reNew_my .list li .title{height:2.3rem;line-height:2.3rem;position:relative;padding-right:1rem}.reNew_my .list li .title span{overflow:hidden}.reNew_my .list li .title span.name{width:4rem;white-space:nowrap;text-overflow:ellipsis}.reNew_my .list li .title span.name,.reNew_my .list li .title span.phone{color:#333;font-size:16px;font-family:PingFangSC-Semibold;font-weight:600;margin-right:3px}.reNew_my .list li .title span.time{font-size:14px;color:#666;float:right}.reNew_my .list li .title span.icon{position:absolute;width:.8rem;height:.8rem;top:.6rem;padding:.5rem;right:-.4rem;background:url(" + escape(__webpack_require__(3310)) + ") 50% no-repeat;background-size:.8rem .8rem;-webkit-transition:.5s;transition:.5s}.reNew_my .list li .good{margin-top:10px;display:-webkit-flex;display:-webkit-box;display:-ms-flexbox;display:flex;padding-bottom:1rem}.reNew_my .list li .good img{width:5rem;height:5rem;border-radius:2px}.reNew_my .list li .good .desc{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.6rem;position:relative}.reNew_my .list li .good .desc p{font-size:17px;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.reNew_my .list li .good .desc .deduAmoiu{position:absolute;width:100%;bottom:0;left:0}.reNew_my .list li .good .desc .deduAmoiu span:first-child{color:#ee4545;font-size:14px}.reNew_my .list li .good .desc .deduAmoiu span:nth-child(2){float:right;font-size:14px;color:#999}.reNew_my .list li .ctrBox{padding:.5rem 0;border-top:1px solid #ddd}.reNew_my .list li .ctrBox .courierNumber{height:2.2rem;line-height:2.2rem;width:100%;text-align:center;color:#307bef;font-size:16px;text-decoration:underline}.reNew_my .list li .ctrBox .guarantee{height:28px;line-height:28px;color:#377ee1;font-size:14px;border:1px solid #377ee1;text-align:center;display:inline-block;width:46.5%;margin-right:5%;border-radius:14px;text-decoration:none}.reNew_my .list li .ctrBox .guarantee:last-child{margin-right:0}.reNew_my .list li .ctrBox .guaranteed{border:none;color:#fff;background:#b2b2b2}.reNew_my .list li .ctrBox .voucherBtn{border:1px solid #307bef;color:#307bef;border-radius:14px;text-align:center;line-height:30px}.reNew_my .list li .ctrBox .voucherBtn.voucherBtn-dis{border:1px solid #d8d8d8;color:#d8d8d8}.reNew_my .list .loadMore{border:1px solid #307bef;line-height:2rem;text-align:center;color:#307bef;font-size:16px;background:#fff;border-radius:4px}.reNew_my .list .noMore{line-height:2rem;font-size:14px;color:#666;text-align:center}.reNew_my .diagleMask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);z-index:1000;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center}.reNew_my .diagleMask .diagle{background:#fff;border-radius:3px;width:85%;padding-top:.8rem}.reNew_my .diagleMask .diagle p:first-child{color:#333;font-size:18px;text-align:center}.reNew_my .diagleMask .diagle p:nth-child(2){color:#666;font-size:14px;text-align:center}.reNew_my .diagleMask .diagle input{width:88%;margin-left:6%;margin-top:.7rem;height:2.2rem;padding-left:.2rem;background:#f8f8f8;border:1px solid #e0e0e0;color:#333}.reNew_my .diagleMask .diagle input::-webkit-input-placeholder{color:#666;font-size:16px}.reNew_my .diagleMask .diagle .btns{height:2.4rem;line-height:2.4rem;text-align:center;border-top:1px solid #d8d8d8;overflow:hidden;margin-top:1.1rem}.reNew_my .diagleMask .diagle .btns span{display:inline-block;width:50%;font-size:18px;color:#666}.reNew_my .diagleMask .diagle .btns span:last-child{border-left:1px solid #d8d8d8;color:#377ee1}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/down.da892fd.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      applicationList: [],
      // 申请列表
      courierNumber: '',
      // 快递单号
      params: {
        pageNum: 1,
        pageSize: 20
      },
      showLoadMore: true,
      showNomore: false,
      showMask: false,
      // 显示填快递单的弹窗
      applyId: '',
      nowParentEl: {} // 当前按钮的父元素
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    that.getApplicationList();
  },
  mounted: function mounted() {
    var that = this;
    (0, _jquery.default)('.reNew_my').on('click', '.list li .title', function () {
      var slideBox = (0, _jquery.default)(this).parents('li').find('.slideBox');
      that.nowParentEl = slideBox;
      var id = (0, _jquery.default)(this).find('.icon').attr('data');
      if (slideBox.css('display') == 'none') {
        that.getMdseApplyDetail(slideBox, (0, _jquery.default)(this).find('.icon'), id);
      } else {
        slideBox.slideUp();
        (0, _jquery.default)(this).find('.icon').css({
          'transform': 'rotate(0deg)'
        });
      }
    });
    (0, _jquery.default)('.reNew_my').on('click', '.list li .courierNumber', function () {
      var status = (0, _jquery.default)(this).attr('hasNum');
      // if( status == 0 || status == 2) { //0：有效 1：已输入运单号,有效 2:点击已寄回，有效 3：已关联订单,有效  4：失效
      //     that.showMask = true;
      //     that.courierNumber = '';
      // }
      if (status == 'no') {
        that.showMask = true;
        that.courierNumber = '';
      }
    });

    // 点击以旧换新担保
    (0, _jquery.default)('.reNew_my').on('click', '.list li .guaranteeBtn', function () {
      var guaranteeBtn = (0, _jquery.default)(this);
      if (guaranteeBtn.attr('guaranteed') == 2) {
        // 已担保
        return;
      }
      that._Util.post(that._Api.RENEW.UPDATEERPRESSNUM, {
        isGuarantee: 1,
        applyId: that.applyId
      }, function (data) {
        that.getMdseApplyDetail(that.nowParentEl, null, that.applyId);
      }, function () {}, that);
    });

    // 点击上传凭证按钮
    (0, _jquery.default)('.reNew_my').on('click', '.list li .voucherBtn', function () {
      var button_status = (0, _jquery.default)(this).attr('status'); // button_status：状态，0/不可点击，1/可点击
      var button_link = (0, _jquery.default)(this).attr('link');
      var id = (0, _jquery.default)(this).attr('applyId');
      if (button_status == 0) {
        return;
      }
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'reNew_button_link',
            url: button_link
          }
        });
        api.sendEvent({
          name: 'openNewFrm',
          extra: {
            name: 'reNew_button_link',
            url: button_link,
            title: ''
          }
        });
      } else {
        window.location.href = button_link;
      }
    });
  },
  methods: {
    /** 获取申请列表 */getApplicationList: function getApplicationList() {
      var that = this;
      that._Util.post(that._Api.RENEW.GETAPPLYLIST, that.params, function (data) {
        that.applicationList = that.applicationList.concat(data.dataList);
        if (that.params.pageNum * that.params.pageSize >= data.totalCount) {
          that.showLoadMore = false;
          that.showNomore = true;
        } else {
          that.showLoadMore = true;
          that.showNomore = false;
        }
      }, function () {}, that);
    },
    /** 查看申请记录列表的每一项详情 */getMdseApplyDetail: function getMdseApplyDetail(slideBox, icon, applyId) {
      var that = this;
      that.applyId = applyId;
      that._Util.post(that._Api.RENEW.GETMDSEAPPLYDETAIL, {
        applyId: applyId
      }, function (data) {
        console.log(slideBox);
        slideBox.empty();
        var htmlNum;
        if (data.ditui == 1 && (data.isGuarantee == 1 || data.isGuarantee == 2)) {
          // 该客户可以做担保 isGuarantee =1 可担保 2，已担保过
          if (!data.expressNumber) {
            // 没有快递单号
            htmlNum = "<div class=\"guarantee guaranteeBtn ".concat(data.isGuarantee == 2 ? 'guaranteed' : '', "\" guaranteed=\"").concat(data.isGuarantee, "\">").concat(data.isGuarantee == 2 ? '已担保' : '以旧换新担保', "</div>\n                                <div class=\"courierNumber guarantee\"  hasNum=\"no\">\u586B\u5199\u5546\u54C1\u5BC4\u56DE\u5355\u53F7</div>");
          } else {
            htmlNum = "<div class=\"courierNumber\"  hasNum=\"yes\" style=\"color: #666;text-decoration: none;\">\u5BC4\u56DE\u5FEB\u9012\u5355\u53F7\uFF1A".concat(data.expressNumber, "</div>\n                               <div class=\"guarantee guaranteeBtn ").concat(data.isGuarantee == 2 ? 'guaranteed' : '', "\"\n                                    style=\"display: block;margin: 0 auto;\" guaranteed=\"").concat(data.isGuarantee, "\">\n                                    ").concat(data.isGuarantee == 2 ? '已担保' : '以旧换新担保', "\n                                </div>");
          }
        } else {
          if (!data.expressNumber) {
            // 没有快递单号
            htmlNum = "<div class=\"courierNumber\"  hasNum=\"no\">\u586B\u5199\u5546\u54C1\u5BC4\u56DE\u5355\u53F7</div>";
          } else {
            htmlNum = "<div class=\"courierNumber\"  hasNum=\"yes\" style=\"color: #666;text-decoration: none;\">\u5BC4\u56DE\u5FEB\u9012\u5355\u53F7\uFF1A".concat(data.expressNumber, "</div>");
          }
        }
        // 是否显示上传附件按钮
        that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
          code: 'old_for_new_button',
          apply_id: applyId,
          pageNum: 1,
          pageSize: 10
        }, function (res) {
          var butData = res.dataList ? res.dataList[0] : {};
          if (butData.button_display == 1) {
            htmlNum += "<div\n                                  class=\"voucherBtn ".concat(butData.button_status == 0 ? 'voucherBtn-dis' : '', "\"\n                                  status=\"").concat(butData.button_status, "\"\n                                  link=\"").concat(butData.button_link, "\"\n                                  applyId=\"").concat(applyId, "\">\n                                  ").concat(butData.button_tittle, "\n                                </div>");
          }
          slideBox.append("<div class=\"good\">\n                      <img src=\"".concat(data.merchandiseReNewVo.imageUrl, "\" alt=\"\">\n                      <div class=\"desc\">\n                        <p>").concat(data.merchandiseReNewVo.mdseName, "</p>\n                        <div class=\"deduAmoiu\" style=\"display: ").concat(data.merchandiseReNewVo.oneAmount ? 'block' : 'none', ";bottom: ").concat(data.merchandiseReNewVo.twoAmount ? '22px' : '0', " \">\n                          <span>\u5355\u4EF6\u62B5\u6263\uFF1A").concat(data.merchandiseReNewVo.oneAmount, "\u5143</span>\n                          <span style=\"display: ").concat(data.merchandiseReNewVo.twoAmount ? 'none' : 'block', ";\">x").concat(data.mdseNum, "</span>\n                        </div>\n                        <div class=\"deduAmoiu\" style=\"display: ").concat(data.merchandiseReNewVo.twoAmount ? 'block' : 'none', " \">\n                          <span>\u4E24\u4EF6\u53EF\u62B5\uFF1A").concat(data.merchandiseReNewVo.twoAmount, "\u5143</span>\n                          <span>x").concat(data.mdseNum, "</span>\n                        </div>\n                      </div>\n                    </div>\n                    <div class=\"ctrBox\">\n                      ").concat(htmlNum, "\n                    </div>"));
        }, function () {}, that, true);
        icon && slideBox.slideDown();
        icon && icon.css({
          'transform': 'rotate(180deg)'
        });
      }, function () {}, that, true);
    },
    /** 加载更多 */loadMore: function loadMore() {
      var that = this;
      that.params.pageNum++;
      that.getApplicationList();
    },
    /** 关闭遮罩层 */cacle: function cacle() {
      this.showMask = false;
    },
    /** 销售更新快递单号 */updataNum: function updataNum() {
      var that = this;
      if (!that.courierNumber.trim()) {
        (0, _mintUi.Toast)({
          message: '请输入快递单号',
          duration: 1000
        });
        return;
      }
      that._Util.post(that._Api.RENEW.UPDATEERPRESSNUM, {
        expressNnumber: that.courierNumber.trim(),
        applyId: that.applyId
      }, function (data) {
        that.showMask = false;
        that.getMdseApplyDetail(that.nowParentEl, null, that.applyId);
      }, function () {
        that.showMask = false;
      }, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"reNew_my"},[(_vm.applicationList.length > 0)?_c('div',{staticClass:"notic"},[_c('span',[_vm._v("只有填写了正确的寄回快递单号，才能成功抵扣金额！")])]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"list"},[_vm._l((_vm.applicationList),function(item){return _c('li',{key:item.id},[_c('div',{staticClass:"title"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.uname || item.nickname || '--'))]),_vm._v(" "),_c('span',{staticClass:"phone"},[_vm._v(_vm._s(item.uphone))]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.dateFormat(item.createTime, 'yyyy.MM.dd')))]),_vm._v(" "),_c('span',{staticClass:"icon",attrs:{"data":item.id}})]),_vm._v(" "),_c('div',{staticClass:"slideBox",staticStyle:{"display":"none"}})])}),_vm._v(" "),(_vm.showLoadMore && _vm.applicationList.length > 0)?_c('div',{staticClass:"loadMore",on:{"click":_vm.loadMore}},[_vm._v("加载更多")]):_vm._e(),_vm._v(" "),(_vm.showNomore && _vm.applicationList.length > 0)?_c('div',{staticClass:"noMore"},[_vm._v("没有更多了～")]):_vm._e(),_vm._v(" "),(_vm.applicationList.length == 0)?_c('div',{staticClass:"noMore"},[_vm._v("暂无申请记录")]):_vm._e()],2),_vm._v(" "),_c('div',{staticStyle:{"height":"0.4rem"}}),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"diagleMask",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"diagle"},[_c('p',[_vm._v("填写单号")]),_vm._v(" "),_c('p',[_vm._v("正确填写商品寄回快递单号")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.courierNumber),expression:"courierNumber"}],attrs:{"type":"text","placeholder":"请输入快递单号"},domProps:{"value":(_vm.courierNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.courierNumber=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"btns"},[_c('span',{on:{"click":_vm.cacle}},[_vm._v("取消")]),_c('span',{on:{"click":function($event){return _vm.updataNum()}}},[_vm._v("确定")])])])]):_vm._e()])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(624);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_064bc3ee_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1223);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3311)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_064bc3ee_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_064bc3ee_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_reNewResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3312);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e7171114", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak]{display:none}.mint-msgbox{width:85%!important}.reNew_result{background:#f2f2f7}.reNew_result .list{padding-top:.6rem;width:96%;margin-left:2%;padding-bottom:14rem}.reNew_result .list li{margin-bottom:.4rem;padding:0 .6rem;background:#fff;border-radius:4px}.reNew_result .list li .title{height:2.3rem;line-height:2.3rem}.reNew_result .list li .title span.name,.reNew_result .list li .title span.phone{color:#333;font-size:16px;font-family:PingFangSC-Semibold;font-weight:600;margin-right:3px}.reNew_result .list li .title span.changeBtn{font-size:12px;color:#377ee1;float:right;width:2.8rem;height:25px;line-height:25px;border:1px solid #377ee1;border-radius:12px;text-align:center;position:relative;top:.5rem}.reNew_result .list li .good{margin-top:10px;display:-webkit-flex;display:-webkit-box;display:-ms-flexbox;display:flex;padding-bottom:1rem}.reNew_result .list li .good img{width:5rem;height:5rem;border-radius:2px}.reNew_result .list li .good .desc{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.6rem;position:relative}.reNew_result .list li .good .desc p{font-size:17px;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.reNew_result .list li .good .desc .deduAmoiu{position:absolute;width:100%;bottom:0;left:0}.reNew_result .list li .good .desc .deduAmoiu span{float:right;font-size:14px;color:#999}.reNew_result .list li .quota{border-top:1px solid #ddd;padding:.8rem 0}.reNew_result .list li .quota>div{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.reNew_result .list li .quota>div span{font-size:16px;color:#333}.reNew_result .list li .quota>div div{font-size:12px;color:#ee4f4f}.reNew_result .list li .quota>div div i{font-size:20px;font-weight:600;margin-right:3px}.reNew_result .list li .manger{text-align:center;padding:.4rem 0}.reNew_result .list li .manger div{line-height:1.8rem;color:#fff;font-size:16px;width:12rem;background:#fafafa linear-gradient(38deg,#424cf7,#4292f7);border-radius:1rem;margin:0 auto}.reNew_result .list li .manger div.noApplyNum{background:#b2b2b2}.reNew_result .list li .manger span{line-height:1rem;color:#377ee1;font-size:14px;margin-top:.4rem}.reNew_result .concernBox{width:96%;border-radius:4px;background:#fff;padding:0 .6rem .6rem;position:fixed;bottom:3.1rem;left:2%}.reNew_result .concernBox p{height:2.2rem;line-height:2.2rem;color:#333;font-weight:600;font-size:14px;border-bottom:1px solid #ddd}.reNew_result .concernBox ul{padding-top:.6rem}.reNew_result .concernBox ul li{height:1.6rem;line-height:1.6rem;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between;width:50%;float:left;box-sizing:border-box}.reNew_result .concernBox ul li span{overflow:hidden;height:100%}.reNew_result .concernBox ul li span:first-child{width:4.5rem}.reNew_result .concernBox ul li span:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reNew_result .concernBox ul li:nth-of-type(odd){padding-right:.5rem}.reNew_result .concernBox ul li:nth-of-type(2n){padding-left:.5rem;border-left:1px solid #ddd}.reNew_result .applicationBtn{position:fixed;bottom:0;left:0;width:100%;height:2.4rem;background:#fafafa linear-gradient(38deg,#424cf7,#4292f7);text-align:center;line-height:2.4rem;color:#fff;font-size:17px}.reNew_result .applicationBtn.noStock{background:#b2b2b2;color:#fff}.reNew_result .appliSuccess{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;z-index:10001;text-align:center}.reNew_result .appliSuccess img{width:2.5rem;height:2.5rem;margin:3.25rem auto .25rem}.reNew_result .appliSuccess p{font-size:18px;color:#333;margin-bottom:.4rem}.reNew_result .appliSuccess div{font-size:14px;color:#333}.reNew_result .appliSuccess div.toMyApplyCation{position:absolute;padding:10px 0;bottom:1rem;left:0;width:100%;text-align:center;color:#307bef;font-size:14px;text-decoration:underline}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _vueSeamlessScroll = _interopRequireDefault(__webpack_require__(1431));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    vueSeamlessScroll: _vueSeamlessScroll.default
  },
  data: function data() {
    return {
      throttleFn: {},
      mdseId: this.$route.query.mdseId,
      // 商品id
      customerPhone: this.$route.query.customerPhone,
      // 客户手机号
      customerId: this.$route.query.customerId,
      // 客户id
      listData: [],
      goodInfo: {},
      stock: 0,
      // 库存
      canSubAgagin: true,
      salerStatus: 1,
      // 销售身份
      salerSysId: '',
      // 销售系统id
      canApplyNum: 0,
      // 主管可申请的数量
      applyNum: 0,
      // 主管已申请数量
      applySuccess: false,
      // 销售帮客户申请成功
      salerCanApply: true,
      // 销售是否可以帮客户申请
      remark: ''
    };
  },
  computed: {
    classOption: function classOption() {
      return {
        step: 0.5,
        limitMoveNum: 7,
        openTouch: false
      };
    }
  },
  watch: {},
  created: function created() {
    var that = this;
    that.makeThrottleFn();
    that.getUserRole();
  },
  methods: {
    /** 更换以旧换新信息 */change: function change() {
      this.$router.push({
        name: 'reNewSelectGood',
        query: {
          userPhone: this.customerPhone,
          userDetailId: this.customerId
        }
      });
    },
    /** 添加申请记录 */addSearchLog: function addSearchLog(type) {
      var that = this;
      that._Util.post(that._Api.RENEW.ADDSEARCHLOG, {
        mdseId: that.mdseId,
        mdseCode: that.goodInfo.merchandiseReNewVo.code,
        remark: type == 1 ? '商品查询' : '商品申请',
        userdetailId: that.customerId
      }, function (data) {
        // that.canApplyNum = data.applyNum;
      }, function () {}, that, true);
    },
    /** 获取库存及关注信息 */getStock: function getStock() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        'code': 'old_for_new_apply',
        'mdse_id': that.mdseId,
        'cus_uid': that.customerId,
        'sale_id': that.salerSysId,
        'pageSize': 20,
        'pageNum': 1
      }, function (data) {
        that.listData = data.dataList;
        that.stock = data.dataList[0].stock;
        that.salerCanApply = data.dataList[0].apply_resule == 1;
        that.remark = data.dataList[0].remark;
        if (that.stock == 0) {
          // 因为在库存为0时，才去判断是否有申请库存次数，所以需要先请求商品详情接口
          that.canApplyNum = that.goodInfo.applyNum;
        }
      }, function () {}, that);
    },
    /** 获取查询结果 */getMdseDetail: function getMdseDetail() {
      var that = this;
      that._Util.post(that._Api.RENEW.GETMDSEAPPLYDETAIL, {
        mdseId: that.mdseId
      }, function (data) {
        that.goodInfo = data;
        that.getStock();
        that.addSearchLog(1);
        // that.canApplyNum = data.applyNum;
      }, function () {}, that, true);
    },
    /** 自定义节流函数 */makeThrottleFn: function makeThrottleFn() {
      this.throttleFn = function (fn, delay) {
        var lastTime = 0;
        return function () {
          var args = arguments;
          var nowTime = Date.now();
          if (nowTime - lastTime > args[1]) {
            args[0]();
            lastTime = nowTime;
          }
        };
      }();
    },
    /** 销售申请以旧换新 */applicat: function applicat() {
      var that = this;
      if (that.stock == 0) {
        return;
      }
      if (!that.salerCanApply) {
        // 如果报表返回不可以申请
        (0, _mintUi.MessageBox)({
          title: '提示',
          message: that.remark,
          confirmButtonText: '确认',
          showCancelButton: false
        }).then(function (action) {});
        return;
      }
      this.throttleFn(function () {
        (0, _mintUi.MessageBox)({
          title: '申请确认',
          message: "\u7533\u8BF7\u624B\u673A\u53F7\u4E3A".concat(that.customerPhone, "\uFF0C\u662F\u5426\u7533\u8BF7"),
          confirmButtonText: '确认申请',
          showCancelButton: true,
          cancelButtonText: '取消'
        }).then(function (action) {
          if (action === 'confirm') {
            if (!that.canSubAgagin) {
              return;
            }
            that.canSubAgagin = false;
            that._Util.post(that._Api.RENEW.SUBMITAPPLY, {
              mdseId: that.mdseId,
              userDetailId: that.customerId,
              uPhone: that.customerPhone
            }, function (data) {
              that.applySuccess = true;
              that.canSubAgagin = false;
              that.addSearchLog(2);
              // settimeout(function() {

              // },1500)
            }, function () {
              that.canSubAgagin = true;
            }, that, true);
          }
        });
      }, 2000);
    },
    /** 主管申请库存*/applyStock: function applyStock() {
      var that = this;
      if (that.canApplyNum == 0) {
        return;
      }
      (0, _mintUi.MessageBox)({
        title: '名额申请确认',
        message: "\u662F\u5426\u7533\u8BF7\u589E\u52A01\u4E2A\u540D\u989D \uFF08\u4ECA\u65E5\u5269\u4F59".concat(that.canApplyNum, "\u6B21\u7533\u8BF7\u673A\u4F1A\uFF09"),
        confirmButtonText: '确认申请',
        showCancelButton: true,
        cancelButtonText: '取消'
      }).then(function (action) {
        if (action === 'confirm') {
          if (!that.canSubAgagin) {
            return;
          }
          that.canSubAgagin = false;
          that._Util.post(that._Api.RENEW.APPLYSTOCK, {
            mdseId: that.goodInfo.merchandiseReNewVo.mdseId,
            mdseCode: that.goodInfo.merchandiseReNewVo.code
          }, function (data) {
            that.canApplyNum = 3 - data;
            setTimeout(function () {
              that.canSubAgagin = true;
            }, 1500);
          }, function () {
            that.canSubAgagin = true;
          }, that, true);
        }
      });
    },
    /** 获取销售角色 */getUserRole: function getUserRole() {
      var that = this;
      that._Util.post(that._Api.RENEW.GETUSERROLE, {}, function (data) {
        if (data.userRoleStatus == 1) {
          // 非销售
          location.replace(that._Api.HOSTRESOURCEPATH + '/v2/fms');
        } else {
          that.salerStatus = data.userRoleStatus;
          that.salerSysId = data.sysUserId;
          that.getMdseDetail();
        }
      }, function () {}, that);
    },
    /** 查看我的申请记录 */getMyApplication: function getMyApplication() {
      this.$router.push({
        name: 'reNewMyApplication'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"reNew_result"},[_c('ul',{staticClass:"list"},[_c('li',[_c('div',{staticClass:"title"},[_c('span',{staticClass:"name"},[_vm._v("申请手机号")]),_vm._v(" "),_c('span',{staticClass:"phone"},[_vm._v(_vm._s(_vm.customerPhone))]),_vm._v(" "),_c('span',{staticClass:"changeBtn",on:{"click":_vm.change}},[_vm._v("更换")])]),_vm._v(" "),_c('div',{staticClass:"slideBox"},[_c('div',{staticClass:"good"},[_c('img',{attrs:{"src":_vm.goodInfo.merchandiseReNewVo && _vm.goodInfo.merchandiseReNewVo.imageUrl,"alt":"以旧换新商品"}}),_vm._v(" "),_c('div',{staticClass:"desc"},[_c('p',[_vm._v(_vm._s(_vm.goodInfo.merchandiseReNewVo && _vm.goodInfo.merchandiseReNewVo.mdseName))]),_vm._v(" "),_c('div',{staticClass:"deduAmoiu"},[_c('span',[_vm._v("x"+_vm._s(_vm.goodInfo.mdseNum))])])])]),_vm._v(" "),_c('div',{staticClass:"quota"},[(_vm.goodInfo.merchandiseReNewVo && _vm.goodInfo.merchandiseReNewVo.oneAmount)?_c('div',[_c('span',[_vm._v("购买单件商品可抵")]),_vm._v(" "),_c('div',[_c('i',[_vm._v(_vm._s(_vm.goodInfo.merchandiseReNewVo && _vm.goodInfo.merchandiseReNewVo.oneAmount))]),_vm._v("元")])]):_vm._e(),_vm._v(" "),(_vm.goodInfo.merchandiseReNewVo && _vm.goodInfo.merchandiseReNewVo.twoAmount)?_c('div',[_c('span',[_vm._v("购买两件套商品可抵")]),_vm._v(" "),_c('div',[_c('i',[_vm._v(_vm._s(_vm.goodInfo.merchandiseReNewVo && _vm.goodInfo.merchandiseReNewVo.twoAmount))]),_vm._v("元")])]):_vm._e(),_vm._v(" "),_c('div',[_c('span',[_vm._v("仅剩申请名额")]),_vm._v(" "),_c('div',[_c('i',[_vm._v(_vm._s(_vm.stock))]),_vm._v("名")])])]),_vm._v(" "),(_vm.salerStatus == 3)?_c('div',{staticClass:"manger"},[_c('div',{class:{'noApplyNum': _vm.canApplyNum ==0 },on:{"click":_vm.applyStock}},[_vm._v("申请名额")]),_vm._v(" "),_c('span',[_vm._v("今日剩余申请名额"+_vm._s(_vm.canApplyNum)+"个")])]):_vm._e()])])]),_vm._v(" "),_c('div',{staticClass:"concernBox"},[_c('p',[_vm._v("近期有 "+_vm._s(_vm.listData.length)+"名 销售查看了该商品")]),_vm._v(" "),_c('vue-seamless-scroll',{staticClass:"warp",staticStyle:{"overflow":"hidden","height":"5.5rem"},attrs:{"data":_vm.listData,"class-option":_vm.classOption}},[_c('ul',{staticClass:"item"},_vm._l((_vm.listData),function(item,index){return _c('li',{key:index},[_c('span',{domProps:{"textContent":_vm._s(item.phone)}}),_vm._v(" "),_c('span',{domProps:{"textContent":_vm._s(item.city)}})])}),0)])],1),_vm._v(" "),(_vm.salerStatus == 2)?_c('div',{staticClass:"applicationBtn",class:{noStock : !_vm.stock},on:{"click":_vm.applicat}},[_vm._v(_vm._s(_vm.stock ? '申请以旧换新': '没有名额了，无法申请'))]):_vm._e(),_vm._v(" "),(_vm.salerStatus == 3)?_c('div',{staticClass:"applicationBtn noStock"},[_vm._v("无申请权限")]):_vm._e(),_vm._v(" "),(_vm.applySuccess)?_c('div',{staticClass:"appliSuccess"},[_c('img',{attrs:{"src":__webpack_require__(3313),"alt":"appSuccess"}}),_vm._v(" "),_c('p',[_vm._v("申请成功")]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"toMyApplyCation",on:{"click":_vm.getMyApplication}},[_vm._v("我的以旧换新申请")])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v("以旧换新码将以消息提醒的形式发送"),_c('br'),_vm._v("给客户，请提醒客户查收。")])}]
module.exports = __webpack_require__.p + "static/img/appSuccess.7a76fb7.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_client_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(625);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_client_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_client_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_client_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_client_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66dc4502_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_client_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1224);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3314)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_client_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66dc4502_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_client_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66dc4502_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_client_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3315);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("dc5be174", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak]{display:none}.reNew_client{background:#f2f2f7;border-top:1px solid transparent}.reNew_client .notic{background:#ffefdc;padding:.4rem 0;text-align:center;font-size:14px;color:#ee4545;display:-webkit-flex;display:-webkit-box;display:-ms-flexbox;display:flex;text-indent:10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.reNew_client .applyInfo{width:96%;margin-top:.6rem;margin-left:2%;border-radius:4px;padding:0 .6rem .6rem;background:#fff}.reNew_client .applyInfo p{height:2.2rem;line-height:2.2rem;color:#333;font-size:16px;font-weight:600}.reNew_client .applyInfo ul li{font-size:14px;color:#333;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.reNew_client .goodBox{background:#fff;padding:1rem .6rem;width:96%;margin-top:.6rem;margin-left:2%;border-radius:4px}.reNew_client .goodBox .good{margin-top:10px;display:-webkit-flex;display:-webkit-box;display:-ms-flexbox;display:flex;padding-bottom:1rem}.reNew_client .goodBox .good img{width:5rem;height:5rem;border-radius:2px}.reNew_client .goodBox .good .desc{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.6rem;position:relative}.reNew_client .goodBox .good .desc p{font-size:17px;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.reNew_client .goodBox .good .desc .deduAmoiu{position:absolute;width:100%;bottom:0;left:0}.reNew_client .goodBox .good .desc .deduAmoiu span:first-child{color:#ee4545;font-size:14px}.reNew_client .goodBox .good .desc .deduAmoiu span:nth-child(2){float:right;font-size:14px;color:#999}.reNew_client .goodBox .noExpressNum{border-top:1px solid #ddd;padding-top:1rem}.reNew_client .goodBox .noExpressNum .courierNumber{width:12rem;height:1.8rem;line-height:1.8rem;color:#fff;font-size:16px;text-align:center;background:#fafafa linear-gradient(38deg,#424cf7,#4292f7);border-radius:1rem;margin:0 auto}.reNew_client .goodBox .noExpressNum .ctrl{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;margin-top:.8rem}.reNew_client .goodBox .noExpressNum .ctrl p{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font-size:14px;color:#377ee1;text-decoration:underline}.reNew_client .goodBox .noExpressNum .ctrl p:first-child{text-align:right}.reNew_client .goodBox .noExpressNum .ctrl p:last-child{text-align:left}.reNew_client .goodBox .noExpressNum .ctrl i{height:.6rem;width:1px;background:#377ee1;margin:0 .45rem}.reNew_client .goodBox .hasExpressNum{border-top:1px solid #ddd;padding-top:1rem}.reNew_client .goodBox .hasExpressNum .sendBackNum{font-size:16px;color:#333;line-height:1.1rem}.reNew_client .goodBox .hasExpressNum .sendlook{text-align:right;color:#377ee1;font-size:14px;text-decoration:underline;margin-top:.6rem}.reNew_client .Invalid{line-height:2.4rem;color:#ee4545;font-size:18px;text-align:center;border-radius:4px;margin-top:.6rem;background:#fff}.reNew_client .countDownBox{width:96%;margin-left:2%;border-radius:4px;padding:.6rem;background:#fff;margin-top:.6rem;position:relative}.reNew_client .countDownBox p{line-height:1.4rem;color:#ef4f4f;font-size:20px;text-align:center;font-weight:600}.reNew_client .countDownBox .des{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between;margin-top:.6rem}.reNew_client .countDownBox .des span:first-of-type{color:#333;font-size:14px}.reNew_client .countDownBox .des span:nth-of-type(2){color:#666;font-size:12px}.reNew_client .countDownBox .usedIcon{position:absolute;top:0;right:0;width:3rem;height:2.6rem;background-image:url(" + escape(__webpack_require__(3316)) + ");background-size:100% 100%;background-repeat:no-repeat}.reNew_client .countDownBox .canUse{background-image:url(" + escape(__webpack_require__(3317)) + ")}.reNew_client .countDownBox .useCont{height:2.4rem;background:#f2f2f7;position:relative;margin-top:5px;font-size:20px;color:#333;line-height:2.4rem;letter-spacing:3px;padding-left:.6rem}.reNew_client .countDownBox .useCont .useBtn{position:absolute;width:2.8rem;height:1.2rem;line-height:1.2rem;color:#fff;background:#fafafa linear-gradient(38deg,#424cf7,#4292f7);border-radius:.6rem;right:.6rem;top:.6rem;text-align:center;font-size:12px}.reNew_client .diagleMask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);z-index:1000;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center}.reNew_client .diagleMask .diagle{background:#fff;border-radius:3px;width:85%;padding-top:.8rem}.reNew_client .diagleMask .diagle p:first-child{color:#333;font-size:18px;text-align:center}.reNew_client .diagleMask .diagle p:nth-child(2){color:#666;font-size:14px;text-align:center}.reNew_client .diagleMask .diagle input{width:88%;margin-left:6%;margin-top:.7rem;height:2.2rem;padding-left:.2rem;background:#f8f8f8;border:1px solid #e0e0e0;color:#333}.reNew_client .diagleMask .diagle input::-webkit-input-placeholder{color:#666;font-size:16px}.reNew_client .diagleMask .diagle .btns{height:2.4rem;line-height:2.4rem;text-align:center;border-top:1px solid #d8d8d8;overflow:hidden;margin-top:1.1rem}.reNew_client .diagleMask .diagle .btns span{display:inline-block;width:50%;font-size:18px;color:#666}.reNew_client .diagleMask .diagle .btns span:last-child{border-left:1px solid #d8d8d8;color:#377ee1}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/used.7992fcc.png";module.exports = __webpack_require__.p + "static/img/canUse.d4d3bb2.png";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      applyId: this.$route.query.applyId,
      // 以旧换新的申请id
      applyInfo: {},
      // 以旧换新的相关数据     status 0：有效 1：已输入运单号,有效 2:点击已寄回，有效 3：已关联订单,有效  4：失效
      downTime: '00:00:00',
      showMask: false,
      courierNumber: '',
      // 用户输入法的快递单号
      codeObj: {} // 订单号及快递单号  码状态  0.未使用（仅在此时显示倒计时） 1.已使用 2.可使用 4，失效
      // 0待使用：未关联订单，未填写快递单号、地推未担保、客户未点击交给地推、未过截止日期
      // 2可使用：未关联订单，已填写快递单号或地推以担保，未过截止日期
      // 1已使用：已有订单号
      // 4失效：过截止日期且未关联订单；或关联的订单已取消,只有
    };
  },
  watch: {},
  created: function created() {
    var that = this;
    // that.leftTime(1557577)
    that.getGoodDetail();
    that.getDownTimeAndState();
    that.addConfirmLog();
  },
  methods: {
    /** 客户确认日志 */addConfirmLog: function addConfirmLog() {
      var that = this;
      that._Util.post(that._Api.RENEW.ADDCONFIRMLOG, {
        applyId: that.applyId,
        url: location.href,
        remark: '客户已确认'
      }, function (data) {}, function () {}, that, true);
    },
    /** 寄回商品已经给销售*/already: function already() {
      var that = this;
      that._Util.post(that._Api.RENEW.USERUPDATEAPPLY, {
        applyId: that.applyId
      }, function (data) {
        (0, _mintUi.MessageBox)({
          title: '提交成功',
          message: '已联系销售填写快递单号，感谢您的配合！',
          confirmButtonText: '确认',
          showCancelButton: false
        }).then(function (action) {
          if (action === 'confirm') {
            // that.showMask = false
            // that.getDownTime();
            that.applyInfo.status = 2;
          }
        });
      }, function () {}, that);
    },
    /** 填写快递单号 */fillNum: function fillNum() {
      var that = this;
      that.showMask = true;
    },
    cacle: function cacle() {
      this.showMask = false;
    },
    /** 跳转个人中心订单详情页 */toOrderDetail: function toOrderDetail() {
      this.$router.replace({
        name: 'shoppingOrderPay',
        query: {
          id: this.codeObj.order_num,
          type: this.codeObj.order_status,
          userId: this.$store.state.userInfo.userId
        }
      });
    },
    /** 更新申请信息(输入快递单号) */updataNum: function updataNum() {
      var that = this;
      if (!that.courierNumber.trim()) {
        (0, _mintUi.Toast)({
          message: '请输入快递单号',
          duration: 1000
        });
        return;
      }
      that._Util.post(that._Api.RENEW.USERUPDATEAPPLY, {
        expressNnumber: that.courierNumber.trim(),
        applyId: that.applyId
      }, function (data) {
        that.showMask = false;
        (0, _mintUi.MessageBox)({
          title: '提交成功',
          message: '快递单号提交成功，感谢您的配合！',
          confirmButtonText: '确认',
          showCancelButton: false
        }).then(function (action) {
          if (action === 'confirm') {
            that.showMask = false;
            that.getDownTimeAndState();
          }
        });
      }, function () {
        that.showMask = false;
      }, that);
    },
    /** 获取以旧换新商品信息 */getGoodDetail: function getGoodDetail() {
      var that = this;
      that._Util.post(that._Api.RENEW.CUSTOMERGWTMDSEDETAIL, {
        applyId: that.applyId
      }, function (data) {
        that.applyInfo = data;
      }, function () {}, that, true);
    },
    /** 获取倒计时 */getDownTimeAndState: function getDownTimeAndState() {
      var that = this;
      that._Util.post(that._Api.POST_SYS_REPORT_LIST_TWO, {
        'code': 'old_for_new_code ',
        'apply_id': that.applyId,
        'pageSize': 10,
        'pageNum': 1
      }, function (data) {
        // that.downTime = parseInt(data.dataList[0].deadline/1000);
        that.leftTime(parseInt(data.dataList[0].deadline));
        that.codeObj = data.dataList[0];
      }, function () {}, that);
    },
    /** 使用以旧换新码 */useCode: function useCode() {
      (0, _mintUi.MessageBox)({
        title: '提交成功',
        message: '请填写商品寄回的快递单号，并将抵扣码给到销售',
        confirmButtonText: '确认',
        showCancelButton: false
      }).then(function (action) {
        if (action === 'confirm') {
          // that.showMask = false
        }
      });
    },
    leftTime: function leftTime(currTime) {
      var that = this;
      var time;
      var timeBack;
      var timer = '';
      time = currTime.toFixed(0);
      timer = setInterval(function () {
        time--;
        if (time == 0) {
          setTimeout(function () {
            that.getDownTimeAndState();
          }, 1000);
          clearInterval(timer);
        }
        timeBack = that.secondToDate(time);
        var h1, h2, m1, m2, s1, s2;
        if (timeBack.length > 6) {
          h1 = timeBack.split('')[0] + timeBack.split('')[1];
          h2 = timeBack.split('')[2];
          m1 = timeBack.split('')[3];
          m2 = timeBack.split('')[4];
          s1 = timeBack.split('')[5];
          s2 = timeBack.split('')[6];
        } else {
          h1 = timeBack.split('')[0];
          h2 = timeBack.split('')[1];
          m1 = timeBack.split('')[2];
          m2 = timeBack.split('')[3];
          s1 = timeBack.split('')[4];
          s2 = timeBack.split('')[5];
        }
        that.downTime = h1 + h2 + ':' + m1 + m2 + ':' + s1 + s2;
      }, 1000);
    },
    secondToDate: function secondToDate(result) {
      var h = Math.floor(result / 3600) < 10 ? '0' + Math.floor(result / 3600) : Math.floor(result / 3600);
      var m = Math.floor(result / 60 % 60) < 10 ? '0' + Math.floor(result / 60 % 60) : Math.floor(result / 60 % 60);
      var s = Math.floor(result % 60) < 10 ? '0' + Math.floor(result % 60) : Math.floor(result % 60);
      var operateTime = h.toString() + m.toString() + s.toString();
      return operateTime;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.applyInfo.createTime)?_c('div',{staticClass:"reNew_client"},[(!_vm.codeObj.express_num)?_c('div',{staticClass:"notic"},[_c('span',[_vm._v("只有填写了正确的寄回快递单号，才能成功抵扣金额！")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"applyInfo"},[_c('p',[_vm._v("申请信息")]),_vm._v(" "),_c('ul',[_c('li',[_c('span',[_vm._v("用户姓名")]),_c('span',[_vm._v(_vm._s(_vm.applyInfo.userInfoVo && (_vm.applyInfo.userInfoVo.uname || _vm.applyInfo.userInfoVo.nickname || '--')))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("用户手机")]),_c('span',[_vm._v(_vm._s(_vm.applyInfo.userInfoVo && _vm.applyInfo.userInfoVo.uphone))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("申请人")]),_c('span',[_vm._v(_vm._s(_vm.applyInfo.applyUserName))])]),_vm._v(" "),_c('li',[_c('span',[_vm._v("申请时间")]),_c('span',[_vm._v(_vm._s(_vm._Util.dateFormat(_vm.applyInfo.createTime, 'yyyy.MM.dd hh:mm:ss')))])])])]),_vm._v(" "),_c('div',{staticClass:"goodBox"},[_c('div',{staticClass:"good"},[_c('img',{attrs:{"src":_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo.imageUrl,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"desc"},[_c('p',[_vm._v(_vm._s(_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo.mdseName))]),_vm._v(" "),(_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo.oneAmount)?_c('div',{staticClass:"deduAmoiu",style:({'bottom': (_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo) ? '22px' : 0 })},[_c('span',[_vm._v("单件抵扣："+_vm._s(_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo.oneAmount)+"元")]),_vm._v(" "),(!(_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo.twoAmount))?_c('span',[_vm._v("x"+_vm._s(_vm.applyInfo.mdseNum))]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo.twoAmount)?_c('div',{staticClass:"deduAmoiu"},[_c('span',[_vm._v("两件可低："+_vm._s(_vm.applyInfo.merchandiseReNewVo && _vm.applyInfo.merchandiseReNewVo.twoAmount)+"元")]),_vm._v(" "),_c('span',[_vm._v("x"+_vm._s(_vm.applyInfo.mdseNum))])]):_vm._e()])]),_vm._v(" "),(_vm.codeObj.state != 4)?[(!_vm.codeObj.order_num)?[(!_vm.codeObj.express_num && _vm.applyInfo.status != 2)?_c('div',{staticClass:"noExpressNum"},[(_vm.applyInfo.status == 0)?_c('div',{staticClass:"courierNumber",on:{"click":_vm.fillNum}},[_vm._v("填写商品寄回快递单号")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"ctrl"},[(_vm.applyInfo.status == 0)?_c('p',{style:({'text-align': _vm.codeObj.order_num ? 'left' : 'center'}),on:{"click":_vm.already}},[_vm._v("寄回商品已经给销售")]):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.codeObj.express_num)?_c('div',{staticClass:"hasExpressNum"},[_c('p',{staticClass:"sendBackNum"},[_vm._v("寄回快递单号"),_c('span',[_vm._v("： "+_vm._s(_vm.codeObj.express_num))])]),_vm._v(" "),(_vm.codeObj.order_num)?_c('p',{staticClass:"sendlook",on:{"click":_vm.toOrderDetail}},[_vm._v("查看购买商品订单")]):_vm._e()]):_vm._e()]:[(!_vm.codeObj.express_num && _vm.applyInfo.status != 2)?_c('div',{staticClass:"noExpressNum"},[_c('div',{staticClass:"ctrl"},[(_vm.codeObj.order_num)?_c('p',{on:{"click":_vm.toOrderDetail}},[_vm._v("查看购买商品订单")]):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.codeObj.express_num)?_c('div',{staticClass:"hasExpressNum"},[_c('p',{staticClass:"sendBackNum"},[_vm._v("寄回快递单号"),_c('span',[_vm._v("： "+_vm._s(_vm.codeObj.express_num))])]),_vm._v(" "),(_vm.codeObj.order_num)?_c('p',{staticClass:"sendlook",on:{"click":_vm.toOrderDetail}},[_vm._v("查看购买商品订单")]):_vm._e()]):_vm._e()]]:_vm._e()],2),_vm._v(" "),(_vm.codeObj.state == 4)?_c('div',{staticClass:"Invalid"},[_vm._v(_vm._s(_vm.codeObj.notice))]):_vm._e(),_vm._v(" "),(_vm.codeObj.state == 0 || _vm.codeObj.state == 1 || _vm.codeObj.state == 2)?_c('div',{staticClass:"countDownBox"},[(_vm.codeObj.state == 0 || _vm.codeObj.state == 2)?_c('p',[_vm._v("有效期："+_vm._s(_vm.downTime))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"des"},[_c('span',[_vm._v("以旧换新码")]),(_vm.codeObj.state == 0 || _vm.codeObj.state == 1 || _vm.codeObj.state == 2)?_c('span',[_vm._v(_vm._s(_vm.codeObj.notice))]):_vm._e()]),_vm._v(" "),(_vm.codeObj.state == 1 && _vm.codeObj.order_num)?_c('div',{staticClass:"usedIcon"}):_vm._e(),_vm._v(" "),(_vm.codeObj.state == 2)?_c('div',{staticClass:"usedIcon canUse"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"useCont"},[_vm._v("\n      "+_vm._s(_vm.applyInfo.applyCode)+"\n      "),(_vm.codeObj.state == 0)?_c('span',{staticClass:"useBtn",on:{"click":_vm.useCode}},[_vm._v("使用")]):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"diagleMask",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"diagle"},[_c('p',[_vm._v("填写单号")]),_vm._v(" "),_c('p',[_vm._v("正确填写商品寄回快递单号")]),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.courierNumber),expression:"courierNumber"}],attrs:{"type":"text","placeholder":"请输入快递单号"},domProps:{"value":(_vm.courierNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.courierNumber=$event.target.value}}}),_vm._v(" "),_c('div',{staticClass:"btns"},[_c('span',{on:{"click":_vm.cacle}},[_vm._v("取消")]),_c('span',{on:{"click":_vm.updataNum}},[_vm._v("确定")])])])]):_vm._e()]):_vm._e()}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(626);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_32030baa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1225);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3318)
  __webpack_require__(3320)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-32030baa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_32030baa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_32030baa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_invite_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3319);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e3c53380", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outwrap[data-v-32030baa]{width:18.75rem;height:auto!important;min-height:100%;margin:0 auto;background:#2c2e46;padding-bottom:.8rem}.outwrap .banner[data-v-32030baa]{width:100%;height:8.8rem;background:url(\"http://static2.kaxiuyun.com/kxy/activity/group-members/banner2.png\") no-repeat 0 0;background-size:100% 100%;padding-top:2.8rem;position:relative}.outwrap .banner .date[data-v-32030baa]{text-align:center;font-size:.7rem;color:#f6c886}.outwrap .banner h2[data-v-32030baa]{font-size:.8rem;font-weight:700;color:#b7c0d4;text-shadow:0 0 0 #1f2531;position:absolute;left:2.75rem;bottom:2.2rem}.outwrap .middle[data-v-32030baa]{background:#292b44;font-size:.7rem;color:#e8cda4}.outwrap .middle .borders[data-v-32030baa]{width:17.15rem;border:1px solid #aea290;border-radius:.3rem;margin-left:.8rem;padding:.6rem}.outwrap .middle .rule[data-v-32030baa]{line-height:.95rem}.outwrap .middle .rule h3[data-v-32030baa]{line-height:1rem;font-weight:700}.outwrap .middle .rule p[data-v-32030baa]{font-size:.65rem}.outwrap .middle .member[data-v-32030baa]{margin-top:.6rem;height:6.8rem}.outwrap .middle .member .msg span[data-v-32030baa]:last-of-type{float:right;font-size:.6rem}.outwrap .middle .member .msg span:last-of-type img[data-v-32030baa]{width:.25rem;height:.4rem;position:relative;top:.25rem}.outwrap .middle .member .tip[data-v-32030baa]{color:#ff5757;text-align:center}.outwrap .middle .member ul[data-v-32030baa]{margin-top:1.2rem}.outwrap .middle .member ul li[data-v-32030baa]{width:2.8rem;height:2.8rem;border-radius:51%;border:1px solid #8c8c8b;background:#313353;float:left;margin-right:.45rem;position:relative}.outwrap .middle .member ul li[data-v-32030baa]:last-of-type{margin:0}.outwrap .middle .member ul li .pic[data-v-32030baa]{width:100%;height:100%;border-radius:51%;pointer-events:none}.outwrap .middle .member ul li span[data-v-32030baa]{width:1.5rem;height:.8rem;line-height:.8rem;text-align:center;background:url(" + escape(__webpack_require__(1464)) + ") no-repeat 0 0;background-size:100% 100%;color:#574224;font-size:.55rem;position:absolute;left:0;top:-1px}.outwrap .bottom[data-v-32030baa]{text-align:center;background:#2c2e46}.outwrap .bottom .join[data-v-32030baa]{width:17.15rem;height:2.2rem;line-height:2.2rem;font-size:.85rem;font-weight:700;background:-webkit-gradient(linear,right top,left top,from(#fde2bc),color-stop(45%,#f6c886),to(#f6c886));background:linear-gradient(270deg,#fde2bc,#f6c886 45%,#f6c886);border-radius:.3rem;color:#574224;margin:.6rem 0 .4rem .8rem}.outwrap .bottom p[data-v-32030baa]{color:#fff}.outwrap .bottom .info[data-v-32030baa]{color:#ff5757;font-size:.8rem;margin:.6rem 0}.outwrap .other[data-v-32030baa]{width:17.15rem;height:auto;overflow:hidden;margin:1.4rem 0 0 .8rem;padding:0 .5rem;background:#fff;border-radius:.3rem}.outwrap .shareMAsk[data-v-32030baa]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:99;background:rgba(0,0,0,.5)}.outwrap .shareMAsk .shareTips[data-v-32030baa]{width:9.5rem;height:3.825rem;background:url(" + escape(__webpack_require__(61)) + ") no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.outwrap .shareMAsk .shareTips>p[data-v-32030baa]:first-of-type{margin-top:.85rem}.outwrap .shareMAsk .shareTips>p[data-v-32030baa]{font-size:.8rem;color:#fff;text-align:center}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/sign.ba7389c.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3321);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("17064991", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".groupMember .other img{max-width:100%}.groupMember.touch{-ms-touch-action:none;touch-action:none}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      res: {
        // data赋值
        actOpenVO: {} // 组队信息
      },
      showMember: false,
      // 组队信息
      showShareBox: false,
      // 引导分享,
      showTip: false,
      // 红色提示  默认不展示
      result: '',
      // 开奖文案
      btnText: '',
      // btn文案
      tip: '',
      // 是否满员文案提示
      len: 0,
      // 还差几人组队成功
      prizeText: '',
      // 是否开奖文案
      n: 0,
      // 区分btn事件
      iosOrAndroid: false,
      // 解决touch ios中报错
      defaultImg: __webpack_require__(1465),
      // 用户默认头像
      title: '',
      desc: '',
      link: '',
      urlQuery: {
        // Url参数
        actOpenId: '',
        id: ''
      }
    };
  },
  mounted: function mounted() {
    this.getUserInfos(1);
    this.iosOrAndroid = this._Util.getUserAgent().platForm == 'ios';
  },
  methods: {
    // 跳转抽奖记录页
    goRecord: function goRecord() {
      this.$router.push({
        name: 'groupRecord',
        query: {
          actOpenId: this._Util.getQueryString('actOpenId'),
          id: this._Util.getQueryString('id')
        }
      });
    },
    // 加入成功toast
    popTip: function popTip() {
      (0, _mintUi.Toast)({
        message: '参与成功',
        position: 'middle',
        duration: 1500
      });
    },
    // 未认证的弹窗
    identPop: function identPop() {
      var _this = this;
      (0, _mintUi.MessageBox)({
        title: '提示',
        message: '卡修宝典会员为认证用户的高级特权，请认证后参与组队抽奖',
        confirmButtonText: '去认证',
        showCancelButton: true,
        cancelButtonText: '取消'
      }).then(function (action) {
        if (action === 'confirm') {
          _this.$router.push({
            name: 'personalCertification',
            query: {
              from: 'prev'
            }
          });
        }
      });
    },
    // 获取用户信息
    getUserInfos: function getUserInfos(params) {
      var that = this;
      that.urlQuery.actOpenId = params == 1 ? that._Util.getQueryString('actOpenId') : null;
      that.urlQuery.id = params == 1 ? that._Util.getQueryString('id') : null;
      that._Util.post(that._Api.POST_USERINFOS, {
        actOpenId: that.urlQuery.actOpenId,
        id: that.urlQuery.id
      }, function (data) {
        that.res = data;
        that.title = that.res.shareContent;
        that.desc = that.res.text;
        that.link = location.origin + '/v2/singlepage/group_members?actOpenId=' + that.res.actOpenVO.actOpenId + '&id=' + that.res.id;
        that.share();
        that.len = that.res.actOpenVO.actUsers ? that.res.expectNum - that.res.actOpenVO.actUsers.length : 0;
        // 记录埋点
        that._Util.collectPageView2({
          postUrl: that._Api.POST_COLLECT,
          moduleType: '组队抽奖',
          operate_page: '组队抽奖',
          optionType: '打开',
          param1: window.location.href,
          param3: that.res.actOpenVO.actOpenId,
          // 队伍id
          param4: that.res.no // 活动期数
        }, that);
        if (data.userStatus == 0) {
          // 未认证
          that.identPop();
        }
        if (data.doing) {
          // 有效期内
          that.prizeText = data.actOpenVO.actOpenStatus ? '组队成功，等待开奖' : '还差<i>' + that.len + '</i>人组队成功';
          that.showTip = false;
          if (!data.actOpenVO.myActOpenId) {
            // 没有组队信息
            if (data.actOpenVO.actOpenId != data.actOpenVO.myActOpenId) {
              // 是邀请链接
              that.showMember = true;
              that.btnText = '立即加入';
              if (data.actOpenVO.actOpenStatus) {
                // 满员
                that.btnText = '立即创建新队伍';
                that.tip = '该队伍已满，请组建新队伍';
                that.showTip = true;
                that.n = 1;
              } else {
                // 未满员 不是新成员
                if (data.actOpenVO.hasJoin && data.expectNew - data.actOpenVO.currentNewUser >= data.expectNum - data.actOpenVO.actUsers.length) {
                  that.btnText = '立即创建新队伍';
                  that.tip = '该团还差1名新成员，您不是新成员，请组建新队伍';
                  that.showTip = true;
                  that.n = 1;
                }
              }
            } else {
              // 不是邀请链接
              that.btnText = '立即组建队伍';
              that.n = 1;
            }
          } else {
            // 有组队信息
            that.showMember = true;
            if (data.actOpenVO.actOpenId != data.actOpenVO.myActOpenId) {
              // 是邀请链接
              that.btnText = '你已组队，点击查看你的队伍';
              that.n = 4;
              if (data.actOpenVO.actOpenStatus) {
                // 满员
                that.tip = '该队伍已满';
                that.showTip = true;
              }
            } else {
              // 不是邀请链接 自己的队
              if (data.actOpenVO.actOpenStatus) {
                // 组队成功
                that.btnText = '组队成功，等待开奖';
                that.n = 5;
              } else {
                that.n = 2;
                if (data.actOpenVO.header) {
                  // 自己是队长
                  that.btnText = '邀请好友加入队伍';
                } else {
                  // 不是队长
                  that.btnText = '您已经加入，点击邀请好友';
                }
              }
            }
          }
        } else {
          // 已开奖 有效期外
          if (data.actOpenVO.hasJoinThis) {
            // 自己参与的
            that.showMember = true;
            that.btnText = '继续参与下期抽奖';
            that.prizeText = '已开奖';
            that.n = 3;
            if (data.actOpenVO.actOpenStatus) {
              // 组队成功
              if (data.actOpenVO.header) {
                // 自己是队长
                that.result = '恭喜您，抽中卡修宝典会员' + data.actOpenVO.groupPrize + '天，<br>队长额外获得' + data.actOpenVO.headerPrize + '天';
              } else {
                // 不是队长
                that.result = '恭喜您，抽中卡修宝典会员' + data.actOpenVO.groupPrize + '天';
              }
            } else {
              // 组队失败
              that.result = '很抱歉，因组队失败，您本期没有中奖';
            }
            if (data.actOpenVO.actOpenId != data.actOpenVO.myActOpenId) {
              // 不是我的队伍
              that.tip = '本次抽奖已过期';
              that.showTip = true;
            }
          } else {
            that.showMember = true;
            that.btnText = '立即组建新队伍';
            that.tip = '本次抽奖已过期';
            that.showTip = true;
            that.n = 6;
          }
          if (data.actOpenVO.hasJoinNew) {
            // 是否参与了最新一期活动
            that.btnText = '你已组队，点击查看你的队伍';
            that.n = 4;
          }
        }
      }, function () {}, that);
    },
    // 删除url参数，不刷新页面
    pushUrl: function pushUrl() {
      var url = location.href;
      url = url.split('?')[0];
      history.replaceState({}, 0, url);
    },
    // 参团传值的方法
    joinAct: function joinAct(id1, id2) {
      var _this2 = this;
      this._Util.post(this._Api.POST_JOINTEAM, {
        id: id1 || null,
        actOpenId: id2 || null
      }, function (data) {
        _this2.popTip();
        _this2.getUserInfos();
        _this2.pushUrl();
      }, function () {
        _this2.getUserInfos();
      }, this);
    },
    // 创建新队伍埋点
    collectTeam: function collectTeam() {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '组队抽奖',
        operate_page: '组队抽奖',
        optionType: '点击',
        param1: window.location.href,
        param2: '组建新队伍',
        param3: this.res.actOpenVO.actOpenId,
        // 队伍id
        param4: this.res.no // 活动期数
      }, this);
    },
    // 加入或组建队伍
    joinTeam: function joinTeam(params) {
      if (this.res.userStatus == 0) {
        // 未认证
        this.identPop();
        return;
      }
      if (params == 0) {
        // 0 立即加入
        // 记录埋点
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          moduleType: '组队抽奖',
          operate_page: '组队抽奖',
          optionType: '点击',
          param1: window.location.href,
          param2: '立即加入',
          param3: this.res.actOpenVO.actOpenId,
          // 队伍id
          param4: this.res.no // 活动期数
        }, this);
        this.joinAct(this.res.id, this.res.actOpenVO.actOpenId);
        return;
      }
      if (params == 1) {
        // 1 组建队伍||创建新队伍
        this.collectTeam();
        this.joinAct(this.res.id);
        return;
      }
      if (params == 2) {
        // 2 分享邀请好友
        // 记录埋点
        this._Util.collectPageView2({
          postUrl: this._Api.POST_COLLECT,
          moduleType: '组队抽奖',
          operate_page: '组队抽奖',
          optionType: '点击',
          param1: window.location.href,
          param2: '邀请好友',
          param3: this.res.actOpenVO.actOpenId,
          // 队伍id
          param4: this.res.no // 活动期数
        }, this);
        this.shareFriends();
        return;
      }
      if (params == 3 || params == 6) {
        // 3 继续参与下期抽奖 || 立即组建新队伍，当前已过期
        this.collectTeam();
        this.joinAct();
        return;
      }
      if (params == 4) {
        // 你已组队，点击查看你的队伍
        this.getUserInfos();
        this.pushUrl();
        return;
      }
    },
    // 分享给好友
    shareFriends: function shareFriends() {
      var that = this;
      if (that._Util.isApp()) {
        api.sendEvent({
          name: 'webShare',
          extra: {
            shareItem: {
              type: 'session',
              title: that.title,
              desc: that.desc,
              link: that.link,
              imgLink: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            }
          }
        });
      } else {
        that.showShareBox = true;
      }
    },
    // 分享的方法
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.title,
                  desc: that.desc,
                  link: that.link,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.title,
              desc: that.desc,
              link: that.link,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.title,
              desc: that.desc,
              link: that.link,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.title,
              desc: that.desc,
              link: that.link,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};module.exports = __webpack_require__.p + "static/img/head.d30f203.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outwrap groupMember",class:{touch:_vm.iosOrAndroid}},[_c('div',{staticClass:"banner"},[_c('div',{staticClass:"date"},[_vm._v("第"),_c('span',[_vm._v(_vm._s(_vm.res.no))]),_vm._v("期 "),_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.res.startTime,'MM.dd')))]),_vm._v("-"),_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.res.endTime,'MM.dd')))])]),_vm._v(" "),_c('h2',[_vm._v("卡修宝典会员")])]),_vm._v(" "),_c('div',{staticClass:"middle"},[_c('div',{staticClass:"rule borders"},[_c('h3',[_vm._v("奖励")]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.res.prize)}}),_c('br'),_vm._v(" "),_c('h3',[_vm._v("规则")]),_vm._v(" "),_c('p',{domProps:{"innerHTML":_vm._s(_vm.res.rule)}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMember),expression:"showMember"}],staticClass:"member borders"},[(_vm.showTip)?_c('div',{staticClass:"tip"},[_vm._v(_vm._s(_vm.tip))]):_c('div',{staticClass:"msg"},[_c('span',{domProps:{"innerHTML":_vm._s(_vm.prizeText)}}),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.res.actOpenVO.hasHis),expression:"res.actOpenVO.hasHis"}],on:{"click":function($event){return _vm.goRecord()}}},[_vm._v("\n          抽奖记录 "),_c('img',{attrs:{"src":__webpack_require__(3322),"alt":"箭头"}})])]),_vm._v(" "),_c('ul',[_vm._l((_vm.res.actOpenVO.actUsers),function(item,index){return _c('li',{key:index},[_c('img',{staticClass:"pic",attrs:{"src":item.headImg || _vm.defaultImg,"alt":"头像"}}),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(index==0),expression:"index==0"}]},[_vm._v("队长")]),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(index && item.type),expression:"index && item.type"}]},[_vm._v("新人")])])}),_vm._v(" "),_vm._l((_vm.len),function(item,index){return _c('li',{key:index + '-label'})})],2)])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('p',{directives:[{name:"show",rawName:"v-show",value:(!_vm.res.doing && _vm.res.actOpenVO.actOpenId == _vm.res.actOpenVO.myActOpenId),expression:"!res.doing && res.actOpenVO.actOpenId == res.actOpenVO.myActOpenId"}],staticClass:"info",domProps:{"innerHTML":_vm._s(_vm.result)}}),_vm._v(" "),_c('div',{staticClass:"join",on:{"click":function($event){return _vm.joinTeam(_vm.n)}}},[_vm._v(_vm._s(_vm.btnText))]),_vm._v(" "),_c('p',{directives:[{name:"show",rawName:"v-show",value:(_vm.res.doing || !_vm.res.actOpenVO.hasJoinThis),expression:"res.doing || !res.actOpenVO.hasJoinThis"}]},[_vm._v("本期开奖时间为"),_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(_vm.res.openTime,'MM'+'月'+'dd'+'日')))]),_vm._v("中午12:00")])]),_vm._v(" "),_c('div',{staticClass:"other",domProps:{"innerHTML":_vm._s(_vm.res.description)}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showShareBox),expression:"showShareBox"}],staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false;}}},[_vm._m(0)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
module.exports = __webpack_require__.p + "static/img/arrow.a57e779.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(627);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fb733dd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_record_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1226);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3323)
  __webpack_require__(3325)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-fb733dd0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_record_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fb733dd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_record_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_fb733dd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_record_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3324);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4fa389a2", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".outwrap[data-v-fb733dd0]{width:18.75rem;height:auto!important;min-height:100%;margin:0 auto;background:#2c2e46;padding:1.25rem 0 .8rem}.outwrap .list[data-v-fb733dd0]{width:17.1rem;height:7.45rem;border-radius:.3rem;border:1px solid #aea290;margin:0 0 1.25rem .8rem}.outwrap .list .msg[data-v-fb733dd0]{color:#fff;height:2.25rem;background:#464861;position:relative;padding:.2rem .6rem}.outwrap .list .msg span[data-v-fb733dd0]{font-size:.6rem}.outwrap .list .msg em[data-v-fb733dd0]{font-size:.7rem}.outwrap .list .msg span[data-v-fb733dd0]:not(:first-of-type){position:absolute;right:.6rem;top:.7rem}.outwrap .list .msg .prize[data-v-fb733dd0]{top:.5rem!important;color:#e8cda4}.outwrap .list .msg .prize i[data-v-fb733dd0]{font-size:.8rem}.outwrap .list ul[data-v-fb733dd0]{margin:1.2rem 0 0 .6rem}.outwrap .list ul li[data-v-fb733dd0]{width:2.8rem;height:2.8rem;border-radius:51%;border:1px solid #8c8c8b;background:#313353;float:left;margin-right:.45rem;position:relative}.outwrap .list ul li em[data-v-fb733dd0]{width:100%;display:block;text-align:center;color:#e8cda4;font-size:.6rem;margin-top:.1rem}.outwrap .list ul li[data-v-fb733dd0]:last-of-type{margin:0}.outwrap .list ul li .pic[data-v-fb733dd0]{width:100%;height:100%;border-radius:51%;pointer-events:none}.outwrap .list ul li span[data-v-fb733dd0]{width:1.5rem;height:.8rem;line-height:.8rem;text-align:center;background:url(" + escape(__webpack_require__(1464)) + ") no-repeat 0 0;background-size:100% 100%;color:#574224;font-size:.55rem;position:absolute;left:0;top:-1px}.outwrap .loadMore[data-v-fb733dd0]{margin-bottom:1rem;text-align:center;color:#fff}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3326);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("56066821", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".groupRecord.touch{-ms-touch-action:none;touch-action:none}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      res: [],
      showMore: false,
      // 加载更多
      params: {
        // 分页传参
        currentPage: 1,
        pageSize: 10
      },
      iosOrAndroid: false,
      // 解决touch ios中报错
      defaultImg: __webpack_require__(1465),
      // 用户默认头像
      title: '',
      desc: '',
      link: ''
    };
  },
  mounted: function mounted() {
    this.getListData();
    this.iosOrAndroid = this._Util.getUserAgent().platForm == 'ios';
  },
  methods: {
    // 获取列表接口
    getListData: function getListData() {
      var that = this;
      that._Util.post(that._Api.POST_JOINRECORD, that.params, function (data) {
        that.res = data;
        that.title = that.res[0].shareContent;
        that.desc = that.res[0].text;
        that.link = location.origin + '/v2/singlepage/group_members?actOpenId=' + that.$route.query.actOpenId + '&id=' + that.$route.query.id;
        that.share();
        // 记录埋点
        that._Util.collectPageView2({
          postUrl: that._Api.POST_COLLECT,
          moduleType: '组队抽奖',
          operate_page: '组队抽奖',
          optionType: '打开',
          param1: window.location.href,
          param2: '抽奖记录'
        }, that);
        if (that.params.currentPage > 1) {
          that.res = that.res.concat(data || []);
        } else {
          that.res = data || [];
        }
        if (data.length < 10) {
          that.showMore = false;
        } else {
          that.showMore = true;
        }
      }, function () {}, that);
    },
    // 加载更多
    loadMore: function loadMore() {
      var that = this;
      that.params.currentPage++;
      that.getListData();
    },
    // 奖品会员天数
    getDays: function getDays(param) {
      if (param.header) {
        // 队长
        return String(param.groupPrize) + '+' + String(param.headerPrize);
      } else {
        return String(param.groupPrize);
      }
    },
    // 分享的方法
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: window.location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: that.title,
                  desc: that.desc,
                  link: that.link,
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: that.title,
              desc: that.desc,
              link: that.link,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: that.title,
              desc: that.desc,
              link: that.link,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: that.title,
              desc: that.desc,
              link: that.link,
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outwrap groupRecord",class:{touch:_vm.iosOrAndroid}},[_vm._l((_vm.res),function(item,index){return _c('div',{key:index,staticClass:"list"},[_c('div',{staticClass:"msg"},[_c('span',[_c('em',[_vm._v("第"+_vm._s(item.no)+"期")]),_c('br'),_c('i',[_vm._v(_vm._s(_vm._f("dateFormat")(item.startTime,'MM.dd'))+" - "+_vm._s(_vm._f("dateFormat")(item.endTime,'MM.dd')))])]),_vm._v(" "),(item.actOpenStatus)?_c('span',{staticClass:"prize"},[_vm._v("会员 "),_c('i',[_vm._v(_vm._s(_vm.getDays(item)))]),_vm._v(" 天")]):_c('span',[_vm._v("队员不足，未中奖")])]),_vm._v(" "),_c('ul',[_vm._l((item.actUsers),function(v,i){return _c('li',{key:i},[_c('img',{staticClass:"pic",attrs:{"src":v.headImg || _vm.defaultImg,"alt":"头像"}}),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(i==0),expression:"i==0"}]},[_vm._v("队长")]),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(i && v.type),expression:"i && v.type"}]},[_vm._v("新人")]),_vm._v(" "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(i==0 && item.actOpenStatus),expression:"i==0 && item.actOpenStatus"}]},[_vm._v("+"+_vm._s(item.headerPrize)+"天")])])}),_vm._v(" "),_vm._l(((5 - item.actUsers.length)),function(v,i){return _c('li',{key:i + '-label'})})],2)])}),_vm._v(" "),(_vm.showMore)?_c('div',{staticClass:"loadMore",on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("点击加载更多")]):_vm._e()],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(628);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_676911b9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1227);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3327)
  __webpack_require__(3329)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-676911b9"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_676911b9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_676911b9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3328);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3236be69", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".certificate-wrap[data-v-676911b9]{height:auto!important;min-height:100%;background:#f2f2f2;padding-bottom:.3rem}.certificate-wrap .font28[data-v-676911b9]{font-size:.7rem}.certificate-wrap .top[data-v-676911b9]{height:2.95rem;background:#fff;padding:.6rem .6rem .5rem;margin-bottom:.6rem}.certificate-wrap .top label[data-v-676911b9]{width:13.85rem;height:1.8rem;position:relative}.certificate-wrap .top label input[data-v-676911b9]{width:100%;height:100%;border-radius:.1rem;background:#eee;padding:.15rem 0 0 1.9rem;color:#666}.certificate-wrap .top label img[data-v-676911b9]{width:.7rem;height:.65rem;position:absolute;left:.6rem;top:.6rem}.certificate-wrap .top span[data-v-676911b9]{width:3.3rem;height:1.8rem;line-height:1.8rem;text-align:center;background:#377ee1;border-radius:.1rem;color:#fff;float:right}.certificate-wrap .advert[data-v-676911b9]{width:17.95rem;border-radius:.2rem;margin:0 0 .6rem .4rem}.certificate-wrap .advert img[data-v-676911b9]{margin-bottom:.5rem;max-width:100%;border-radius:.2rem;display:block}.certificate-wrap .infos[data-v-676911b9]{position:relative}.certificate-wrap .infos .query[data-v-676911b9]{margin:0 0 .4rem .85rem}.certificate-wrap .infos .query img[data-v-676911b9]{width:.925rem}.certificate-wrap .infos .query span[data-v-676911b9]{color:#333;font-size:.9rem;font-weight:700;margin:-.2rem 0 0 .3rem}.certificate-wrap .infos li[data-v-676911b9]{width:17.95rem;margin:0 0 .6rem .4rem;padding:.6rem .4rem 0;background:#fff;border-radius:.2rem;overflow:hidden;position:relative}.certificate-wrap .infos li h3[data-v-676911b9]{font-size:1rem;font-weight:700;color:#333}.certificate-wrap .infos li>span[data-v-676911b9]{padding:0 .5rem;height:1.4rem;line-height:1.4rem;text-align:center;background:#f2f3f4;color:#1e7cff;border-radius:2px;margin:.3rem 0 1.4rem}.certificate-wrap .infos li>div[data-v-676911b9]{color:#333;padding-bottom:.6rem;border-bottom:1px solid #eaeaea}.certificate-wrap .infos li .commonbtn[data-v-676911b9]{width:50%;height:1.6rem;line-height:1.6rem;text-align:center;color:#377ee1;display:block;float:left;margin:.2rem 0;font-size:.8rem}.certificate-wrap .infos li .commonbtn[data-v-676911b9]:first-of-type{border-right:1px solid #eaeaea}.certificate-wrap .infos li .commonbtn.addCenter[data-v-676911b9]{border:0 none;margin-left:4.3rem}.certificate-wrap .infos li .commonbtn img[data-v-676911b9]{width:1rem;position:relative;top:.3rem;left:-.2rem}.certificate-wrap .infos li .download[data-v-676911b9]{float:right}.certificate-wrap .loadMore[data-v-676911b9]{margin-bottom:1rem;text-align:center}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3330);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("9f34b63e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".certificate-wrap.touch{-ms-touch-action:none;touch-action:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      res: {
        listInfos: [],
        // 数据
        adVOS: [] // 广告
      },
      keyword: null,
      // 输入内容
      iosOrAndroid: false,
      // 解决touch ios中报错
      showPicBox: true,
      // 图片展示
      showMore: false,
      // 加载更多
      showDown: false,
      // app中 下载证书按钮
      params: {
        // 分页传参
        currentPage: 1,
        pageSize: 10
      }
    };
  },
  mounted: function mounted() {
    this.iosOrAndroid = this._Util.getUserAgent().platForm == 'ios';
    this.getCertInfos();
  },
  methods: {
    // 获取用户信息
    getCertInfos: function getCertInfos() {
      var _this = this;
      var that = this;
      that._Util.post(that._Api.POST_CERTINFOS, that.params, function (data) {
        that._Util.collectPageView2({
          postUrl: that._Api.POST_COLLECT,
          moduleType: '技能证书',
          operate_page: '我的证书',
          optionType: '打开',
          param1: window.location.href
        }, that);
        that.res = data;
        if (that.params.currentPage > 1) {
          that.res.listInfos = that.res.listInfos.concat(data.certVOList || []);
        } else {
          that.res.listInfos = data.certVOList || [];
        }
        if (data.certVOList.length < 10) {
          that.showMore = false;
        } else {
          that.showMore = true;
        }
        if (_this._Util.isApp()) {
          _this.showDown = true;
        }
      }, function () {}, that);
    },
    // 加载更多
    loadMore: function loadMore() {
      var that = this;
      that.params.currentPage++;
      that.getCertInfos();
    },
    // 查询数据
    goSearch: function goSearch() {
      var that = this;
      if (!that.keyword) {
        (0, _mintUi.Toast)({
          message: '请输入证书编号或身份证号',
          position: 'top',
          duration: 1500
        });
        return;
      }
      that.$router.push({
        name: 'certificateList',
        query: {
          keyword: that.keyword
        }
      });
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl) {
      if (!imgUrl) {
        (0, _mintUi.Toast)({
          message: '证书制作中',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '技能证书',
        operate_page: '证书照片',
        optionType: '打开',
        param1: window.location.href
      }, this);
      var _imgUrl = 'http://static2.kaxiuyun.com/' + imgUrl;
      this.$store.commit('openImgView', _imgUrl);
    },
    // 点击广告位埋点
    lookAd: function lookAd(link) {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '技能证书',
        operate_page: '广告位',
        optionType: '打开',
        param1: window.location.href
      }, this);
      location.href = link;
    },
    // app中下载证书
    downloadPic: function downloadPic(imgPath) {
      if (!imgPath) {
        (0, _mintUi.Toast)({
          message: '证书制作中',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      var _imgPath = 'http://static2.kaxiuyun.com/' + imgPath;
      var myPath = imgPath.replace(/(.*\/)*([^.]+).*/ig, '$2');
      var file_name = 'fs://' + myPath + '.png';
      api.download({
        url: _imgPath,
        savePath: file_name,
        report: true,
        cache: true,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          // 下载成功
          api.saveMediaToAlbum({
            path: file_name
          }, function (ret, err) {
            if (ret && ret.status) {
              (0, _mintUi.Toast)({
                message: '保存成功',
                position: 'middle',
                duration: 1500
              });
            } else {
              (0, _mintUi.Toast)({
                message: '保存失败',
                position: 'middle',
                duration: 1500
              });
            }
          });
        } else if (ret.state == 2) {
          (0, _mintUi.Toast)('证书下载失败');
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"certificate-wrap",class:{touch:_vm.iosOrAndroid}},[_c('div',{staticClass:"top"},[_c('label',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"type":"text","placeholder":"请输入证书编号或身份证号","maxlength":"20"},domProps:{"value":(_vm.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value}}}),_vm._v(" "),_c('img',{staticClass:"loupe",attrs:{"src":__webpack_require__(1466),"alt":""}})]),_vm._v(" "),_c('span',{staticClass:"font28",on:{"click":function($event){return _vm.goSearch()}}},[_vm._v("查询")])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.res.listInfos.length),expression:"res.listInfos.length"}],staticClass:"infos"},[_c('ul',_vm._l((_vm.res.listInfos),function(item,index){return _c('li',{key:index,staticClass:"font28"},[_c('h3',[_vm._v(_vm._s(item.tempName))]),_vm._v(" "),_c('span',[_vm._v("证书编号："+_vm._s(item.no))]),_vm._v(" "),_c('div',[_c('p',{staticClass:"font28"},[_vm._v("持证人："+_vm._s(item.name))]),_vm._v(" "),_c('p',{staticClass:"font28"},[_vm._v("发证日期："+_vm._s(_vm._f("dateFormat")(item.createTime,'yyyy'+'年'+'MM'+'月'+'dd'+'日')))])]),_vm._v(" "),_c('button',{staticClass:"font28 commonbtn",class:{addCenter:!_vm.showDown},on:{"click":function($event){return _vm.viewImage(item.imgUrl)}}},[_c('img',{attrs:{"src":__webpack_require__(1467),"alt":""}}),_vm._v("查看证书照片\n        ")]),_vm._v(" "),_c('button',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDown),expression:"showDown"}],staticClass:"commonbtn download",on:{"click":function($event){return _vm.downloadPic(item.imgUrl)}}},[_c('img',{attrs:{"src":__webpack_require__(1468),"alt":""}}),_vm._v("下载证书照片\n        ")])])}),0)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMore),expression:"showMore"}],staticClass:"loadMore",on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("点击加载更多")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.res.adVOS.length),expression:"res.adVOS.length"}],staticClass:"advert"},_vm._l((_vm.res.adVOS),function(v,i){return _c('a',{key:i,attrs:{"href":"javascript:;"}},[_c('img',{attrs:{"src":v.imgUrl,"alt":"广告"},on:{"click":function($event){return _vm.lookAd(v.linkUrl)}}})])}),0)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/Loupe.f4c7f88.png";module.exports = __webpack_require__.p + "static/img/eye.249ac5a.png";module.exports = __webpack_require__.p + "static/img/down.2b07ff6.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(629);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_24308f9c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1228);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3331)
  __webpack_require__(3333)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-24308f9c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_24308f9c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_24308f9c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3332);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("49e5442e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".certificate-list[data-v-24308f9c]{height:auto!important;min-height:100%;background:#f2f2f2;padding-bottom:.3rem}.certificate-list .font28[data-v-24308f9c]{font-size:.7rem}.certificate-list .top[data-v-24308f9c]{height:2.95rem;background:#fff;padding:.6rem .6rem .5rem;margin-bottom:.6rem}.certificate-list .top label[data-v-24308f9c]{width:13.85rem;height:1.8rem;position:relative}.certificate-list .top label input[data-v-24308f9c]{width:100%;height:100%;border-radius:.1rem;background:#eee;padding:.15rem 0 0 1.9rem;color:#666}.certificate-list .top label img[data-v-24308f9c]{width:.7rem;height:.65rem;position:absolute;left:.6rem;top:.6rem}.certificate-list .top span[data-v-24308f9c]{width:3.3rem;height:1.8rem;line-height:1.8rem;text-align:center;background:#377ee1;border-radius:.1rem;color:#fff;float:right}.certificate-list .infos[data-v-24308f9c]{position:relative}.certificate-list .infos .query[data-v-24308f9c]{margin:0 0 .4rem .85rem}.certificate-list .infos .query img[data-v-24308f9c]{width:.925rem}.certificate-list .infos .query span[data-v-24308f9c]{color:#333;font-size:.9rem;font-weight:700;margin:-.2rem 0 0 .3rem}.certificate-list .infos li[data-v-24308f9c]{width:17.95rem;margin:0 0 .6rem .4rem;padding:.6rem .4rem 0;background:#fff;border-radius:.2rem;overflow:hidden;position:relative}.certificate-list .infos li h3[data-v-24308f9c]{font-size:1rem;font-weight:700;color:#333}.certificate-list .infos li>span[data-v-24308f9c]{padding:0 .5rem;height:1.4rem;line-height:1.4rem;text-align:center;background:#f2f3f4;color:#1e7cff;border-radius:2px;margin:.3rem 0 1.4rem}.certificate-list .infos li>div[data-v-24308f9c]{color:#333;padding-bottom:.6rem;border-bottom:1px solid #eaeaea}.certificate-list .infos li .commonbtn[data-v-24308f9c]{width:50%;height:1.6rem;line-height:1.6rem;text-align:center;color:#377ee1;display:block;float:left;font-size:.8rem;margin:.2rem 0}.certificate-list .infos li .commonbtn[data-v-24308f9c]:first-of-type{border-right:1px solid #eaeaea}.certificate-list .infos li .commonbtn.addCenter[data-v-24308f9c]{border:0 none;margin-left:4.3rem}.certificate-list .infos li .commonbtn img[data-v-24308f9c]{width:1rem;position:relative;top:.3rem;left:-.2rem}.certificate-list .infos li .download[data-v-24308f9c]{float:right}.certificate-list .infos .tip[data-v-24308f9c]{position:absolute;top:4.8rem;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);text-align:center}.certificate-list .infos .tip img[data-v-24308f9c]{width:2.65rem}.certificate-list .infos .tip p[data-v-24308f9c]{font-size:.8rem;color:#333;margin-top:.3rem}.certificate-list .loadMore[data-v-24308f9c]{margin-bottom:1rem;text-align:center}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3334);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("233201fd", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".certificate-list.touch{-ms-touch-action:none;touch-action:none}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      selectList: [],
      // 数据
      iosOrAndroid: false,
      // 解决touch ios中报错
      showPicBox: true,
      // 图片展示
      showMore: false,
      // 加载更多
      showDown: false,
      // app中 下载证书按钮
      params: {
        // 分页传参
        currentPage: 1,
        pageSize: 10,
        keyword: null // 输入关键字
      }
    };
  },
  mounted: function mounted() {
    this.iosOrAndroid = this._Util.getUserAgent().platForm == 'ios';
    this.params.keyword = this.$route.query.keyword || null;
    this.selectPost();
  },
  methods: {
    // 加载更多
    loadMore: function loadMore() {
      var that = this;
      that.params.currentPage++;
      that.selectPost();
    },
    // 查询接口传参
    selectPost: function selectPost() {
      var _this = this;
      var that = this;
      that._Util.post(that._Api.POST_SELECTLIST, that.params, function (data) {
        that._Util.collectPageView2({
          postUrl: that._Api.POST_COLLECT,
          moduleType: '技能证书',
          operate_page: '证书查询',
          optionType: '搜索',
          param1: window.location.href,
          param2: that.params.keyword // 查询内容
        }, that);
        that.selectList = data;
        if (that.params.currentPage > 1) {
          that.selectList = that.selectList.concat(data || []);
        } else {
          that.selectList = data || [];
        }
        if (data.length < 10) {
          that.showMore = false;
        } else {
          that.showMore = true;
        }
        if (_this._Util.isApp()) {
          _this.showDown = true;
        }
      }, function () {}, that);
    },
    // 查询数据
    goSearch: function goSearch() {
      var that = this;
      if (!that.params.keyword) {
        (0, _mintUi.Toast)({
          message: '请输入证书编号或身份证号',
          position: 'top',
          duration: 1500
        });
        return;
      }
      that.selectPost();
    },
    /** 浏览单张图片 */viewImage: function viewImage(imgUrl) {
      if (!imgUrl) {
        (0, _mintUi.Toast)({
          message: '证书制作中',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '技能证书',
        operate_page: '证书照片',
        optionType: '打开',
        param1: window.location.href
      }, this);
      var _imgUrl = 'http://static2.kaxiuyun.com/' + imgUrl;
      this.$store.commit('openImgView', _imgUrl);
    },
    // app中下载证书
    downloadPic: function downloadPic(imgPath) {
      if (!imgPath) {
        (0, _mintUi.Toast)({
          message: '证书制作中',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      var _imgPath = 'http://static2.kaxiuyun.com/' + imgPath;
      var myPath = imgPath.replace(/(.*\/)*([^.]+).*/ig, '$2');
      var file_name = 'fs://' + myPath + '.png';
      api.download({
        url: _imgPath,
        savePath: file_name,
        report: true,
        cache: true,
        allowResume: true
      }, function (ret, err) {
        if (ret.state == 1) {
          // 下载成功
          api.saveMediaToAlbum({
            path: file_name
          }, function (ret, err) {
            if (ret && ret.status) {
              (0, _mintUi.Toast)({
                message: '保存成功',
                position: 'middle',
                duration: 1500
              });
            } else {
              (0, _mintUi.Toast)({
                message: '保存失败',
                position: 'middle',
                duration: 1500
              });
            }
          });
        } else if (ret.state == 2) {
          (0, _mintUi.Toast)('证书下载失败');
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"certificate-list",class:{touch:_vm.iosOrAndroid}},[_c('div',{staticClass:"top"},[_c('label',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.params.keyword),expression:"params.keyword"}],attrs:{"type":"text","placeholder":"请输入证书编号或身份证号","maxlength":"20"},domProps:{"value":(_vm.params.keyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.params, "keyword", $event.target.value)}}}),_vm._v(" "),_c('img',{staticClass:"loupe",attrs:{"src":__webpack_require__(1466),"alt":""}})]),_vm._v(" "),_c('span',{staticClass:"font28",on:{"click":function($event){return _vm.goSearch()}}},[_vm._v("查询")])]),_vm._v(" "),_c('div',{staticClass:"infos"},[_vm._m(0),_vm._v(" "),(_vm.selectList.length)?_c('ul',_vm._l((_vm.selectList),function(item,index){return _c('li',{key:index,staticClass:"font28"},[_c('h3',[_vm._v(_vm._s(item.tempName))]),_vm._v(" "),_c('span',[_vm._v("证书编号："+_vm._s(item.no))]),_vm._v(" "),_c('div',[_c('p',{staticClass:"font28"},[_vm._v("持证人："+_vm._s(item.name))]),_vm._v(" "),_c('p',{staticClass:"font28"},[_vm._v("发证日期："+_vm._s(_vm._f("dateFormat")(item.createTime,'yyyy'+'年'+'MM'+'月'+'dd'+'日')))])]),_vm._v(" "),_c('button',{staticClass:"font28 commonbtn",class:{addCenter:!_vm.showDown},on:{"click":function($event){return _vm.viewImage(item.imgUrl)}}},[_c('img',{attrs:{"src":__webpack_require__(1467),"alt":""}}),_vm._v("查看证书照片\n        ")]),_vm._v(" "),_c('button',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDown),expression:"showDown"}],staticClass:"commonbtn download",on:{"click":function($event){return _vm.downloadPic(item.imgUrl)}}},[_c('img',{attrs:{"src":__webpack_require__(1468),"alt":""}}),_vm._v("下载证书照片\n        ")])])}),0):_c('div',{staticClass:"tip"},[_c('img',{attrs:{"src":__webpack_require__(3335),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("没有找到相关的证书")])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMore),expression:"showMore"}],staticClass:"loadMore",on:{"click":function($event){return _vm.loadMore()}}},[_vm._v("点击加载更多")])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"query"},[_c('img',{attrs:{"src":__webpack_require__(3336),"alt":""}}),_vm._v(" "),_c('span',[_vm._v("查询结果")])])}]
module.exports = __webpack_require__.p + "static/img/read-fill.70cdd4a.png";module.exports = __webpack_require__.p + "static/img/Loupe2.66adcd6.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(630);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_16cf787c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1229);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3337)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-16cf787c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_16cf787c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_16cf787c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carRepair_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3338);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ea7f25c0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[v-cloak][data-v-16cf787c]{display:none}.carRepair[data-v-16cf787c]{position:relative;overflow-y:scroll;background:#f5f5f5;-webkit-overflow-scrolling:touch}.loaddown[data-v-16cf787c]{position:absolute;left:50%;top:20%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:120px}.repairItem .title[data-v-16cf787c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between;padding:12px 0}.repairItem .title .name[data-v-16cf787c]{color:#333;font:700 20px/28px PingFangSC-Regular}.repairItem .title .toBtn[data-v-16cf787c]{color:#177afa;font:15px/21px PingFangSC-Regular}.repairItem .title .toBtn .titArr[data-v-16cf787c]{display:inline-block;margin-left:5px;width:5px;height:8px;background:url(" + escape(__webpack_require__(1407)) + ") 50% no-repeat;background-size:5px 8px}.repairItem .cont[data-v-16cf787c]{padding:16px 12px;background:#fff;border-radius:8px;margin-bottom:12px;box-shadow:0 4px 12px 0 rgba(164,171,191,.2)}.repairItem .cont.noFreeCard[data-v-16cf787c]{background:url(" + escape(__webpack_require__(3339)) + ");background-size:100% 80px;border-radius:8px}.repairItem .cont.noFreeCard .repairBtn[data-v-16cf787c]{background:#2e2719!important;box-shadow:0 4px 8px 0 rgba(56,56,40,.32);color:#f6dfa9!important}.repairItem .cont .flexBox[data-v-16cf787c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.repairItem .cont .flexBox img[data-v-16cf787c]{width:48px;height:48px;margin-right:12px}.repairItem .cont .flexBox .info[data-v-16cf787c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repairItem .cont .flexBox .info .name[data-v-16cf787c]{color:#333;font:700 17px/24px PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repairItem .cont .flexBox .info .desc[data-v-16cf787c]{margin-top:2px;color:#666;font:14px/20px PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repairItem .cont .flexBox .right[data-v-16cf787c]{width:88px}.repairItem .cont .flexBox .right.date[data-v-16cf787c]{margin-left:12px;width:auto;color:#666;font:12px PingFangSC-Regular}.repairItem .cont .flexBox .right.arror[data-v-16cf787c]{width:auto}.repairItem .cont .flexBox .right>i[data-v-16cf787c]{display:inline-block;margin-left:5px;width:5px;height:8px;background:url(" + escape(__webpack_require__(57)) + ") 50% no-repeat;background-size:5px 8px}.repairItem .cont .flexBox .right .repairBtn[data-v-16cf787c]{width:100%;height:32px;color:#177afa;font:700 14px/32px PingFangSC-Regular;background:#d7e9ff;border-radius:16px;text-align:center}.repairItem .cont.dataCont[data-v-16cf787c]{padding-bottom:20px;background:url(" + escape(__webpack_require__(3340)) + ") no-repeat;background-size:100% 122px}.repairItem .cont.dataCont .num[data-v-16cf787c]{color:#000;font:700 14px/20px PingFangSC-Regular}.repairItem .cont.dataCont .num span[data-v-16cf787c]{margin-right:6px;font:700 28px/33px PingFangSC-Regular}.repairItem .cont.dataCont .down[data-v-16cf787c]{margin-top:11px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.repairItem .cont.dataCont .down>p[data-v-16cf787c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.repairItem .cont.dataCont .down .dataBtn[data-v-16cf787c]{margin-left:12px;width:88px;height:32px;color:#177afa;font:700 14px/32px PingFangSC-Regular;background:#d7e9ff;border-radius:16px;text-align:center}.classAd[data-v-16cf787c]{margin-top:12px;height:80px;border-radius:8px;box-shadow:0 4px 12px 0 rgba(164,171,191,.2)}.classAd.topAd[data-v-16cf787c]{height:133px;margin-top:16px;margin-bottom:12px}.classAd img[data-v-16cf787c]{display:block;width:100%;height:100%;border-radius:8px;box-shadow:0 4px 12px 0 rgba(164,171,191,.2)}.repairItem .courseList[data-v-16cf787c]{margin-top:20px}.repairItem .courseList li[data-v-16cf787c]{float:left;width:23.5%;height:28px;margin-right:2%;background:#f5f5f5;border-radius:2px;text-align:center;font:14px/28px PingFangSC-Regular;color:#333}.repairItem .courseList li[data-v-16cf787c]:last-child{margin:0}.repairItem .cont .queList[data-v-16cf787c]{background:#f5f5f5;border-radius:8px;margin-top:17px;position:relative;padding:0 12px}.repairItem .cont .queList .icon[data-v-16cf787c]{position:absolute;width:16px;height:16px;background:#f5f5f5;-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transform:rotate(45deg);top:-5px;left:14px}.repairItem .cont .queList .list-item[data-v-16cf787c]{border-top:1px solid #ededed;padding:16px 0}.repairItem .cont .queList .list-item[data-v-16cf787c]:first-of-type{border:none}.repairItem .cont .queList .list-item .up .queType[data-v-16cf787c]{float:left;color:#333;font:500 14px/20px PingFangSC-Medium\\,PingFangSC-Regular}.repairItem .cont .queList .list-item .up .time[data-v-16cf787c]{float:right;color:#666;font:400 12px/17px PingFangSC-Medium\\,PingFangSC-Regular}.repairItem .cont .queList .list-item .down[data-v-16cf787c]{margin-top:8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.repairItem .cont .queList .list-item .down .txt[data-v-16cf787c]{color:#333;font:400 16px/22px PingFangSC-Regular\\,PingFangSC;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repairItem .cont .queList .list-item .down .noRead[data-v-16cf787c]{width:10px;height:10px;background:#ff3f3f;border-radius:10px;margin-left:5px}.repairItem .cont .queList .list-item .down .noRead.big[data-v-16cf787c]{padding:0 5px}.liveBroad[data-v-16cf787c]{padding:16px 12px;background:#fff;border-radius:8px;box-shadow:0 4px 12px 0 rgba(164,171,191,.2);margin-bottom:12px}.liveBroad .tit[data-v-16cf787c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.liveBroad .tit i[data-v-16cf787c]{width:24px;height:24px;background:url(" + escape(__webpack_require__(1461)) + ") no-repeat;background-size:100% 100%}.liveBroad .tit span[data-v-16cf787c]{color:#333;font:700 20px/28px PingFangSC-Regular}.liveBroad .tit p[data-v-16cf787c]{color:#999;font:500 14px/20px PingFangSC-Regular;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;margin-left:auto}.liveBroad .tit>div[data-v-16cf787c]{margin-left:8px;color:#333;font:14px/24px PingFangSC-Regular;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}.liveBroad .liveInfo[data-v-16cf787c]{margin-top:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.liveBroad .liveInfo img[data-v-16cf787c]{width:79px;height:98px;border-radius:4px;margin-right:12px}.liveBroad .liveInfo .right[data-v-16cf787c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.liveInfo .right p[data-v-16cf787c]{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333;font:700 17px/24px PingFangSC-Regular;margin-bottom:12px;min-height:48px}.liveInfo .right div[data-v-16cf787c]{height:32px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:space-between;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.liveInfo .right div span[data-v-16cf787c]:first-child{font:500 13px/20px PingFangSC-Regular;color:#333}.liveInfo .right div span[data-v-16cf787c]:last-child{height:32px;width:88px;text-align:center;font:700 13px/32px PingFangSC-Regular;color:#177afa;background:#d7e9ff;border-radius:16px}.repairItem .buyDev[data-v-16cf787c]{box-shadow:none;background:none;padding:0}.repairItem .buyDev .flexBox[data-v-16cf787c]{background:#fff;padding:17px 12px;margin-bottom:12px;box-shadow:0 4px 12px 0 rgba(164,171,191,.2);border-radius:8px}.repairItem .buyDev[data-v-16cf787c]:last-child{margin-bottom:0}.repairItem .cont.buyDev img[data-v-16cf787c]{width:44px;height:44px;border-radius:4px}.nomore[data-v-16cf787c]{text-align:center;height:60px;color:#999;font:14px/60px PingFangSC-Regular;padding-bottom:5rem}.mask[data-v-16cf787c]{position:fixed;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.6);z-index:100}#unPayBox[data-v-16cf787c]{height:200px;width:86%;position:absolute;z-index:200;background:#fff;border-radius:5px;-webkit-border-radius:5px;top:40%;left:50%;margin-top:-100px;margin-left:-43%}.unpay[data-v-16cf787c]{width:230px;height:auto;margin:15px auto 0}.unpay .wallet[data-v-16cf787c]{display:block;width:66px;height:49px;margin:0 auto 10px;background:url(" + escape(__webpack_require__(3341)) + ") no-repeat;background-size:cover}.unpay .unpay-text[data-v-16cf787c]{color:#333;font-size:16px;margin-bottom:25px}.unpay .openMember[data-v-16cf787c]{width:160px;height:36px;line-height:36px;border:1px solid #2b82f7;border-radius:5px;color:#2b82f7;text-align:center;margin:0 auto}.card[data-v-16cf787c]{padding:.4rem .6rem;background:#fff;position:fixed;left:0;top:0;width:100%;z-index:4444}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/card_noget.bc2f26c.png";module.exports = __webpack_require__.p + "static/img/data.a874983.png";module.exports = __webpack_require__.p + "static/img/wallet.7b679e9.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _footTab = _interopRequireDefault(__webpack_require__(176));
var _header = _interopRequireDefault(__webpack_require__(93));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    footTab: _footTab.default,
    headerFixed: _header.default
  },
  data: function data() {
    return {
      isApp: !!this._Util.isApp() || this._Util.isMPaaS(),
      mescroll: null,
      treeShareNum: 0,
      // 资料总数
      adList: [],
      quickListStr: '',
      classInfoAndEnjoyInfo: {},
      // 学习记录及畅享卡信息
      deviceList: [],
      notStartList: [],
      // 预约直播
      enjoyStatus: null,
      viewerId: '',
      userStatus: this.$store.state.userInfo.userStatus,
      noDealedList: [],
      // 在线问答未解决问题
      dealedList: [],
      // 已解决列表
      showUnpaidPage: false,
      isCard: true,
      cardContent: null
    };
  },
  watch: {},
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  },
  created: function created() {
    this._Util.collectPageView2({
      version: this._Util.version,
      postUrl: this._Api.POST_COLLECT,
      moduleType: '修车页',
      operate_page: '修车页',
      optionType: '打开页面'
    }, this);
  },
  mounted: function mounted() {
    this.mescroll = new _mescroll.default(this.$refs.mescroll1, {
      down: {
        use: true,
        callback: this.init,
        auto: false
      }
    });
    this.init();
  },
  methods: {
    /**
     * 获取子组件卡片内容
     */
    getcardContent: function getcardContent(res) {
      this.cardContent = res;
    },
    /**
     * 页面初始化
     */
    init: function init() {
      var that = this;
      that.quickListStr = '';
      that.getTreeShareNum();
      that.getSignList();
      that.getCourseClassifyList();
      that.getDeviceList();
      that.getBroadcastList();
      that.getQuickList();
    },
    /**
     * 正则替换数字高亮
     * @param(content): 需要替换的内容
     */
    highLight: function highLight(content) {
      var reg = /\d+/;
      return content.replace(reg, function (match, param) {
        return ' <span style="color: #EE4545;font-size: 14px;" >' + match + '</span> ';
      });
    },
    getQuickList: function getQuickList() {
      var that = this;
      that._Util.post(that._Api.NEWHOST + 'common-api/app/getHomePageQuickClassifyList.json', {
        terminalType: '1',
        versionType: 5
      }, function (data) {
        var _data = data.cateAppClassifyList;
        var tempArr = _data;
        tempArr.slice(0, 5).forEach(function (item, index) {
          if (index == 4) {
            that.quickListStr += item.name + '...';
          } else {
            that.quickListStr += item.name + '，';
          }
        });
      }, function () {}, that, true);
    },
    /**
      * 获取直播预约列表
    */
    getBroadcastList: function getBroadcastList(callBack) {
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.POST_GET_BROAD_LIST, {}, function (data) {
        if (data) {
          that.notStartList = data.notStartList ? data.notStartList : [];
          that.enjoyStatus = data.enjoyStatus;
          that.viewerId = data.viewerId;
          callBack && callBack();
        }
      }, function () {}, that);
    },
    /**
      * 打开广告
      * @param {Object}: adObj  广告内容
      * @param {Number}: type  广告类型
    */
    toAdDetail: function toAdDetail(adObj, type) {
      location.href = adObj.advertUrl;
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: type == '20' ? '修车页顶部广告位' : '修车页班课广告位',
        optionType: '点击',
        param1: adObj.advertUrl,
        param2: adObj.advertContext
      }, this);
    },
    /**
      * 获取广告位集合
      */
    getSignList: function getSignList() {
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.POST_GET_SIGN_LIST, {
        signs: '20,21' // 20, 修车页顶部广告 21 修车页班课
      }, function (data) {
        if (data) {
          var tempArr = [];
          data.forEach(function (item) {
            if (item) {
              tempArr.push(item);
            } else {
              tempArr.push({});
            }
          });
          that.adList = tempArr;
        }
      }, function () {}, that);
    },
    /**
      * 跳转至【资料大全】页面
    */
    toTreeShare: function toTreeShare() {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '查资料',
        optionType: '点击'
      }, this);
      location.href = location.origin + '/v2/corpus';
    },
    /**
      * 获取资料总数
    */
    getTreeShareNum: function getTreeShareNum() {
      var that = this;
      that._Util.post(that._Api.CARREPAIR.POST_GET_TREE_SHARE_NUM, {}, function (res) {
        that.treeShareNum = res;
        that.mescroll.endSuccess(2);
      }, function () {
        that.mescroll.endErr();
      }, that);
    },
    /**
      * 获取学习记录
      */
    getCourseClassifyList: function getCourseClassifyList() {
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.POST_GET_COURSE_CLASSIFY, {
        pageType: 2,
        status: 2
      }, function (data) {
        if (data) {
          that.classInfoAndEnjoyInfo = data;
          that.userStatus = data.userStatus || this.$store.state.userInfo.userStatus;
          if (that.userStatus === 2) {
            that.getDealed();
            that.getConList();
          }
        }
      }, function () {}, that);
    },
    /**
      * 获取已解决问题列表
    */
    getDealed: function getDealed() {
      var that = this;
      that._Util.post(that._Api.CARREPAIR.POST_GET_SEARCHPAGE, {
        status: 1,
        pageModel: {
          currentPage: 1,
          pageSize: 20
        }
      }, function (data) {
        if (data && data.bolist) {
          that.dealedList = data.bolist;
        }
      }, function () {}, that);
    },
    /**
      * 获取在线问答列表(status: 5未解决)
    */
    getConList: function getConList(type) {
      var that = this;
      that._Util.post(that._Api.CARREPAIR.POST_GET_NEW_SEARCHPAGE, {
        status: 5
      }, function (res) {
        if (res) {
          that.noDealedList = res.bolist;
          that.noDealedList.sort(function (a, b) {
            return a.createTime > b.createTime ? -1 : 1;
          });
        }
      }, function () {}, that);
    },
    /**
      * 跳转至在线问答详情页面
    */
    toOnlineDetail: function toOnlineDetail() {
      if (this.userStatus !== 2) {
        this.showUnpaidPage = true;
        return;
      }
      this._Util.collectPageView3({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '问专家',
        optionType: '点击',
        param1: '历史提问'
      }, this, function () {
        location.href = location.origin + '/v3/carRep/onLineQuestion/questionList';
      });
    },
    /**
      * 我要提问
    */
    toNewQue: function toNewQue() {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '问专家',
        optionType: '点击',
        param1: '新增提问'
      }, this);
      if (this.userStatus !== 2) {
        this.showUnpaidPage = true;
        return;
      }
      this.toAsk();
    },
    toAsk: function toAsk() {
      var that = this;
      var num = 0;
      if (that.noDealedList.length > 2) {
        (0, _mintUi.Toast)({
          message: '您有3条问题未关闭，请到问题详情页关闭问题后，再次发起提问',
          duration: 2000
        });
        return;
      }
      if (that.dealedList) {
        for (var z = 0; z < that.dealedList.length; z++) {
          if (!that.dealedList[z].userScore) {
            num++;
          }
        }
        if (num > 1) {
          (0, _mintUi.Toast)({
            message: '您有1条问题未评分,请在评分后，再次发起提问',
            duration: 2000
          });
          return;
        }
      }
      location.href = location.origin + '/v3/carRep/onLineQuestion/putQuestion';
    },
    /**
      * 开通会员
    */
    openMember: function openMember() {
      location.href = location.origin + '/v2/business/pay/certificationRenewal?userStatus=' + this.userStatus;
    },
    /**
      * 前往未解决问题的具体详情
    */
    openChartRoom: function openChartRoom(v) {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '问专家',
        optionType: '点击',
        param1: '未解决问题',
        param2: v.id
      }, this);
      location.href = location.origin + '/v2/shopping/noDealed?objId=' + v.id + '&title=' + v.typeStr + v.createTimeStr.replace(/-/g, '');
    },
    /**
      * 获取购买设备列表
    */
    getDeviceList: function getDeviceList() {
      var that = this;
      that._Util.post(that._Api.HOME_PAGE.POST_BUY_DEVICE_LIST, {
        isRepairShow: 1
      }, function (data) {
        if (data) {
          that.deviceList = data;
        }
      }, function () {}, that);
    },
    /**
      * 查看设备详情
      * @param {Object} item 每一个设备
    */
    toDeviceDetail: function toDeviceDetail(item) {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '买设备',
        optionType: '点击',
        param1: item.title,
        param2: item.link
      }, this);
      location.href = item.link;
    },
    /**
      * 前往课堂-我的畅享卡页面
    */
    toMyEnjouCard: function toMyEnjouCard() {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '修车',
        optionType: '点击',
        param1: '畅享卡'
      }, this);
      location.href = location.origin + '/v2/shopping/unlimitCard?viewerId=' + this.viewerId;
    },
    /**
      * 没有畅享卡前往会员中心
    */
    toVipCenter: function toVipCenter() {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '修车',
        optionType: '点击',
        param1: '畅享卡'
      }, this);
      location.href = location.origin + '/v2/business/pay/certificationRenewal';
    },
    /**
      * 跳转至【课堂】页
    */
    toOnlineCourse: function toOnlineCourse() {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '学技术',
        optionType: '点击',
        param1: '修车课堂'
      }, this);
      location.href = location.origin + '/v2/shopping/onlineCourseList?userStatus=' + this.userStatus;
    },
    /**
     * 直播及预约种类判断
     * @param(course): 当前课程
     * @param(type): reserve/live
     */
    reserveAndLive: function reserveAndLive(course, type) {
      if (course.wxVisable === 0) {
        if (type === 'live') {
          this.checkTicket(course.courseId, 'live', course.liveAddress);
        } else {
          this.checkTicket(course.courseId, 'reserve');
        }
      } else {
        if (type === 'live') {
          this.handleClick(type, course.liveAddress, course.courseId);
        } else {
          this.showTips(course.startTime);
        }
      }
    },
    /**
     * 课程已预约提示
     * @param(time): 课程的开始时间
     */
    showTips: function showTips(time) {
      (0, _mintUi.MessageBox)({
        title: '',
        message: "<div style='padding:0.8rem 0.25rem 0.5rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                    \u76F4\u64AD\u5C06\u5728".concat(time, "\u5F00\u59CB\n                  </div>"),
        closeOnClickModal: true,
        confirmButtonText: '确定'
      }).then(function (action) {});
    },
    /**
     * 犇犇课堂 课程点击逻辑
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 点击之后的跳转页
     * @param(courseName): 课程名称
     */
    checkTicket: function checkTicket(courseId, type, url, courseName) {
      var _this = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var ticketData;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this.getTicketStatus(courseId);
            case 1:
              ticketData = _context.sent;
              if (!(ticketData.applyStatus == 3 || ticketData.applyStatus == 4) && ticketData.payType != 3) {
                // 课程已购买
                _this.handleClick(type, url, courseId, courseName);
              } else if (ticketData.enjoyCardCanWatch == 1) {
                // 畅享卡
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u60A8\u5DF2\u5F00\u901A\u7545\u4EAB\u5361\uFF0C\u89C2\u770B\u7287\u7287\u8BFE\u5802\u5185\u8BFE\u7A0B\u5C06\u65E0\u9700\u7528\u542C\u8BFE\u5238\n                    </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '畅享卡免费观看'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this._Util.post(_this._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this.viewerId
                    }, function (data) {
                      _this.handleClick(type, url, courseId, courseName);
                    }, function () {}, _this);
                  }
                });
              } else if (ticketData.cardNumLeft > 0) {
                // 剩余听课券>0
                (0, _mintUi.MessageBox)({
                  title: '',
                  message: "<div style='padding:0.8rem 0.25rem 0.8rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                      \u4F7F\u75281\u5F20\u542C\u8BFE\u5238\u652F\u4ED8\u672C\u6B21\u8BFE\u7A0B\n                    </div>",
                  closeOnClickModal: true,
                  confirmButtonText: '确定',
                  showCancelButton: true,
                  cancelButtonText: '取消'
                }).then(function (action) {
                  if (action === 'confirm') {
                    _this._Util.post(_this._Api.POST_PAY_TICKET, {
                      courseId: courseId,
                      viewerId: _this.viewerId
                    }, function (data) {
                      _this.handleClick(type, url, courseId, courseName);
                    }, function () {}, _this);
                  }
                });
              } else {
                // 没有听课券
                location.href = location.origin + '/v2/shopping/shareTicket?course_id=' + courseId + '&viewer_id=' + _this.viewerId;
              }
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 犇犇课堂 课程点击 最终的操作
     * @param(courseId): 犇犇课堂 课程id
     * @param(type): live(进入直播页) reserve(预约) playback(回看)
     * @param(url): 需要跳转的跳转页  playback时，url的值为课时id，需要用课时id来获取真正的url
     * @param(courseName): 课时名称
     */
    handleClick: function handleClick(type, url, courseId, courseName) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var that, data, _t;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              that = _this2;
              _t = type;
              _context2.next = _t === 'live' ? 1 : _t === 'reserve' ? 2 : _t === 'playback' ? 3 : 5;
              break;
            case 1:
              location.href = url;
              return _context2.abrupt("continue", 5);
            case 2:
              _this2.getBroadcastList(function () {
                if (_this2.notStartList.some(function (val) {
                  return val.courseId === courseId;
                })) {
                  _this2.notStartList.forEach(function (val) {
                    if (val.courseId == courseId) {
                      val.applyStatus = 1;
                    }
                  });
                } else {
                  (0, _mintUi.MessageBox)({
                    title: '',
                    message: "<div style='padding:0.5rem 0.25rem 0.25rem; text-align:center; font-size:0.9rem; color:#333; font-family: PingFangSC-Regular;' >\n                            \u5F53\u524D\u76F4\u64AD\u9884\u7EA6\u5DF2\u7ED3\u675F, \u8BF7\u5237\u65B0\u9875\u9762\n                          </div>",
                    closeOnClickModal: true,
                    confirmButtonText: '刷新页面'
                  }).then(function (action) {
                    if (action === 'confirm') {
                      that.getBroadcastList();
                    }
                  });
                }
              });
              return _context2.abrupt("continue", 5);
            case 3:
              _context2.next = 4;
              return _this2.getSecretUrl(url);
            case 4:
              data = _context2.sent;
              _this2.$router.push({
                name: 'classCoursePlayer',
                params: {
                  videoName: courseName,
                  url: data.hourUrl,
                  hourId: url,
                  currentVideoType: data.videoType,
                  courseType: 'single'
                }
              });
              return _context2.abrupt("continue", 5);
            case 5:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 判断是否拥有听课券
     * @param(courseId): 犇犇课堂 课程id
     * @return: 课程状态的promise对象
     */
    getTicketStatus: function getTicketStatus(courseId) {
      var _this3 = this;
      return new Promise(function (resolve, reject) {
        _this3._Util.post(_this3._Api.POST_GET_TICKET_BASIC_VALUE, {
          courseId: courseId
        }, function (data) {
          resolve(data);
        }, function () {}, _this3);
      });
    },
    /** 单课获取防盗链URL */getSecretUrl: function getSecretUrl(hourId) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        _this4._Util.post(_this4._Api.POST_COURSE_GET_SECRET_URL, {
          hourId: hourId
        }, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this4);
      });
    },
    /**
      * 跳转到学习记录页面
    */
    toWatchRecord: function toWatchRecord() {
      this._Util.collectPageView2({
        postUrl: this._Api.POST_COLLECT,
        moduleType: '修车',
        operate_page: '修车',
        optionType: '点击',
        param1: '学习记录'
      }, this);
      location.href = location.origin + '/v2/onlineCourse/studyRecord?viewerId=' + this.viewerId;
    },
    /**
      * 关闭弹窗
    */
    closeMask: function closeMask() {
      this.showUnpaidPage = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"carRepair"},[_c('div',{ref:"mescroll1",staticClass:"mescroll",style:(!_vm.cardContent ? 'padding-top:2.6rem;' : '')},[_c('div',{staticClass:"outSide"},[_c('headerFixed',{attrs:{"iscard":_vm.isCard},on:{"getcardContent":_vm.getcardContent}})],1),_vm._v(" "),(!_vm.treeShareNum)?_c('img',{staticClass:"loaddown",attrs:{"src":__webpack_require__(3342)}}):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"padding":"0 12px","padding-bottom":"50px"}},[(_vm.adList[0] && _vm.adList[0].advertImg)?_c('div',{staticClass:"classAd topAd",on:{"click":function($event){return _vm.toAdDetail(_vm.adList[0], 20)}}},[_c('img',{attrs:{"src":_vm.adList[0].advertImg,"alt":""}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"repairItem"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"cont dataCont",on:{"click":_vm.toTreeShare}},[_c('div',{staticClass:"num"},[_c('span',[_vm._v(_vm._s(_vm.treeShareNum))]),_vm._v("份资料\n          ")]),_vm._v(" "),_c('div',{staticClass:"down"},[_c('p',[_vm._v(_vm._s(_vm.quickListStr))]),_vm._v(" "),_c('div',{staticClass:"dataBtn"},[_vm._v("立即查询")])])])]),_vm._v(" "),_c('div',{staticClass:"repairItem"},[_c('div',{staticClass:"title"},[_c('p',{staticClass:"name"},[_vm._v("问专家")]),_vm._v(" "),_c('div',{staticClass:"toBtn",on:{"click":_vm.toOnlineDetail}},[_vm._v("历史提问"),_c('i',{staticClass:"titArr"})])]),_vm._v(" "),_c('div',{staticClass:"cont"},[_c('div',{staticClass:"flexBox"},[_c('img',{attrs:{"src":__webpack_require__(3343),"alt":""}}),_vm._v(" "),_vm._m(1),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"repairBtn",on:{"click":_vm.toNewQue}},[_vm._v("新增提问")])])]),_vm._v(" "),(_vm.noDealedList.length)?_c('ul',{staticClass:"queList"},[_c('div',{staticClass:"icon"}),_vm._v(" "),_vm._l((_vm.noDealedList),function(v){return _c('li',{key:v.id,staticClass:"list-item",on:{"click":function($event){return _vm.openChartRoom(v)}}},[_c('div',{staticClass:"up clearfix"},[(v.typeStr.indexOf('其他问题')!= -1)?_c('div',{staticClass:"queType"},[_vm._v("其他问题")]):_vm._e(),_vm._v(" "),(v.typeStr.indexOf('故障诊断') != -1)?_c('div',{staticClass:"queType"},[_vm._v("故障诊断")]):_vm._e(),_vm._v(" "),(v.typeStr.indexOf('部件维修') != -1)?_c('div',{staticClass:"queType"},[_vm._v("部件维修")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"time",domProps:{"innerHTML":_vm._s(_vm._Util.dateFormat(v.createTime,'yyyy-MM-dd hh:mm'))}})]),_vm._v(" "),_c('div',{staticClass:"down"},[(v.noDealedLastText)?_c('div',{staticClass:"txt",domProps:{"innerHTML":_vm._s(v.noDealedLastText||'请稍候，小轨正在回复…')}}):_c('div',{staticClass:"txt",domProps:{"innerHTML":_vm._s('请稍候，小轨正在回复…')}}),_vm._v(" "),(v.haveLastMessage)?_c('div',{staticClass:"noRead"}):_vm._e()])])})],2):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"repairItem"},[_vm._m(2),_vm._v(" "),_vm._l((_vm.notStartList),function(item){return _c('div',{key:item.courseId,staticClass:"liveBroad"},[_c('div',{staticClass:"tit clearfix"},[_c('span',[_vm._v("即将直播")]),_vm._v(" "),_c('div',{domProps:{"innerHTML":_vm._s(_vm.highLight(item.countDownTime))}}),_vm._v(" "),(item.wxVisable != 0)?_c('p',[_vm._v("无需预约")]):_c('p',[_vm._v(_vm._s(item.viewNumbers)+"人已预约")])]),_vm._v(" "),_c('div',{staticClass:"liveInfo"},[_c('img',{attrs:{"src":item.courseCoverImg,"alt":"直播"}}),_vm._v(" "),_c('div',{staticClass:"right"},[_c('p',[_vm._v(_vm._s(item.courseName))]),_vm._v(" "),_c('div',[_c('span',[_vm._v("讲师："+_vm._s(item.anchorName))]),_vm._v(" "),((_vm.enjoyStatus == 1 && item.applyStatus != 3&& item.applyStatus != 4) || _vm.enjoyStatus != 1 && item.applyStatus != 3 && item.applyStatus != 4 && item.applyStatus != 8)?_c('span',{on:{"click":function($event){return _vm.showTips(item.startTime)}}},[_vm._v("\n                  已预约\n                ")]):_c('span',{on:{"click":function($event){return _vm.reserveAndLive(item, 'reserve')}}},[_vm._v(_vm._s(item.wxVisable != 0 ? '未开始' : '立即预约'))])])])])])}),_vm._v(" "),(_vm.classInfoAndEnjoyInfo.watchRecord && _vm.classInfoAndEnjoyInfo.watchRecord.length)?_c('div',{staticClass:"cont",on:{"click":_vm.toWatchRecord}},[_c('div',{staticClass:"flexBox"},[_c('img',{attrs:{"src":__webpack_require__(3344),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',{staticClass:"name"},[_vm._v("我的学习记录")]),_vm._v(" "),_c('p',{staticClass:"desc"},[_vm._v(_vm._s(_vm.classInfoAndEnjoyInfo.watchRecord[0].courseName))])]),_vm._v(" "),_vm._m(3)])]):_vm._e(),_vm._v(" "),(_vm.classInfoAndEnjoyInfo.enjoyStatus === 1)?_c('div',{staticClass:"cont",on:{"click":_vm.toMyEnjouCard}},[_c('div',{staticClass:"flexBox"},[_c('img',{attrs:{"src":__webpack_require__(3345),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',{staticClass:"name"},[_vm._v("课堂畅享卡")]),_vm._v(" "),_c('p',{staticClass:"desc"},[_vm._v(_vm._s(_vm.classInfoAndEnjoyInfo.courseCount)+"节，免费"+_vm._s(_vm.classInfoAndEnjoyInfo.enjoyCount)+"节")])]),_vm._v(" "),_c('div',{staticClass:"right date"},[_vm._v("\n              "+_vm._s(_vm.classInfoAndEnjoyInfo.enjoyEndTime)+"到期"),_c('i')])])]):_vm._e(),_vm._v(" "),(_vm.classInfoAndEnjoyInfo.enjoyStatus === 0)?_c('div',{staticClass:"cont noFreeCard",on:{"click":_vm.toVipCenter}},[_vm._m(4)]):_vm._e()],2),_vm._v(" "),(_vm.adList[1] && _vm.adList[1].advertImg)?_c('div',{staticClass:"classAd",on:{"click":function($event){return _vm.toAdDetail(_vm.adList[1], 21)}}},[_c('img',{attrs:{"src":_vm.adList[1].advertImg,"alt":""}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"repairItem",staticStyle:{"margin-top":"12px"},on:{"click":_vm.toOnlineCourse}},[_c('div',{staticClass:"cont"},[_c('div',{staticClass:"flexBox"},[_c('img',{attrs:{"src":__webpack_require__(3346),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',{staticClass:"name"},[_vm._v("修车课堂")]),_vm._v(" "),_c('p',{staticClass:"desc"},[_vm._v(_vm._s(_vm.classInfoAndEnjoyInfo.courseCount)+"节，畅享卡免费"+_vm._s(_vm.classInfoAndEnjoyInfo.enjoyCount)+"节")])]),_vm._v(" "),_vm._m(5)]),_vm._v(" "),_c('ul',{staticClass:"courseList clearfix"},_vm._l((_vm.classInfoAndEnjoyInfo.classifyList),function(item){return _c('li',{key:item.classifyId},[_vm._v(_vm._s(item.classifyName))])}),0)])]),_vm._v(" "),(_vm.deviceList.length)?_c('div',{staticClass:"repairItem"},[_vm._m(6),_vm._v(" "),_c('div',{staticClass:"cont buyDev"},_vm._l((_vm.deviceList),function(item){return _c('div',{key:item.id,staticClass:"flexBox",on:{"click":function($event){return _vm.toDeviceDetail(item)}}},[_c('img',{attrs:{"src":item.smallPoster,"alt":"item.title"}}),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('p',{staticClass:"desc"},[_vm._v(_vm._s(item.explains))])]),_vm._v(" "),_vm._m(7,true)])}),0)]):_vm._e(),_vm._v(" "),(_vm.deviceList.length)?_c('div',{staticClass:"nomore"},[_vm._v("到底啦 ^_^")]):_vm._e()]),_vm._v(" "),(_vm.showUnpaidPage)?_c('div',{staticClass:"mask",on:{"click":_vm.closeMask}},[_c('section',{attrs:{"id":"unPayBox"}},[_c('div',{staticClass:"unpay"},[_c('div',{staticClass:"wallet"}),_vm._v(" "),_c('div',{staticClass:"unpay-text"},[_vm._v("很抱歉，在线问答目前只对付费用户开放，请先完成付费")]),_vm._v(" "),_c('div',{staticClass:"openMember",on:{"click":function($event){$event.stopPropagation();return _vm.openMember.apply(null, arguments)}}},[_vm._v("开通会员")])])])]):_vm._e(),_vm._v(" "),_c('footTab',{attrs:{"active-flag":"carRepair"}})],1)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('p',{staticClass:"name"},[_vm._v("查资料")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"info"},[_c('p',{staticClass:"name"},[_vm._v("在线问答")]),_vm._v(" "),_c('p',{staticClass:"desc"},[_vm._v("服务时间：9:00-22:00")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('p',{staticClass:"name"},[_vm._v("学技术")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"right arror"},[_c('i')])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"flexBox"},[_c('div',{staticClass:"info"},[_c('p',[_vm._v("课堂畅享卡")]),_vm._v(" "),_c('span',[_vm._v("免费观看超过200节视频")])]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('div',{staticClass:"repairBtn"},[_vm._v("立即开通")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"right arror"},[_c('i')])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('p',{staticClass:"name"},[_vm._v("买设备")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"right arror"},[_c('i')])}]
module.exports = __webpack_require__.p + "static/img/loading.f31b684.gif";module.exports = __webpack_require__.p + "static/img/online.19bf6f6.png";module.exports = __webpack_require__.p + "static/img/studycode.5cd85b6.png";module.exports = __webpack_require__.p + "static/img/freeCard_1.15b0062.png";module.exports = __webpack_require__.p + "static/img/course.20eeec8.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(631);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_569e863c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1230);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3347)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-569e863c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_569e863c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_569e863c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_corpus_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3348);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5789fbc2", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".corpus .wrap-box[data-v-569e863c]{background:#f5f5f5;min-height:100%;overflow-x:hidden}.corpus .wrap-box .input_box[data-v-569e863c]{background:#fff;padding:.6rem;position:relative}.corpus .wrap-box .input_box i[data-v-569e863c]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:1.1rem;left:1rem}.corpus .wrap-box .input_box input[data-v-569e863c]{background:#f5f5f5;height:2rem;border-radius:4px;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;-webkit-transition:.3s;transition:.3s}.corpus .wrap-box .input_box input.input-animate[data-v-569e863c]{width:-webkit-calc(100% - 4.2rem);width:calc(100% - 4.2rem)}.corpus .wrap-box .input_box button[data-v-569e863c]{margin-left:.6rem;width:3.6rem;height:2rem;line-height:2rem;color:#fff;background:#ff6c37;border-radius:4px;font:15px PingFangSC-Regular;position:absolute;top:.6rem;right:-300px;-webkit-transition:all .3s ease;transition:all .3s ease}.corpus .wrap-box .input_box button.animate[data-v-569e863c]{right:.6rem}.corpus .wrap-box .radius-box[data-v-569e863c]{background:#fff}.corpus .wrap-box .radius-box .radiu[data-v-569e863c]{height:.6rem;background:#f5f5f5;border-radius:.6rem .6rem 0 0}.corpus .wrap-box .search-history[data-v-569e863c]{padding:0 .6rem;overflow-x:auto;white-space:nowrap;margin-bottom:.6rem;font-size:0}.corpus .wrap-box .search-history[data-v-569e863c]::-webkit-scrollbar{display:none}.corpus .wrap-box .search-history li[data-v-569e863c]{display:inline-block;padding:4px 8px;border-radius:4px;background:#fff;margin:0 .5rem 0 0;color:#666;font:13px PingFangSC-Regular}.corpus .wrap-box .quick-box[data-v-569e863c]{padding:0 .6rem}.corpus .wrap-box .quick-box .tit[data-v-569e863c]{color:#333;font:14px/1rem PingFangSC-Regular;margin-bottom:.3rem}.corpus .wrap-box .quick-box .quick-item[data-v-569e863c]{background:#fff;padding:.8rem 0;border-radius:8px 8px 0 0;font-size:0;border-bottom:1px solid #eee}.corpus .wrap-box .quick-box .quick-item.only-one[data-v-569e863c]{border-radius:8px!important;border:none}.corpus .wrap-box .quick-box .quick-item.quick-item2[data-v-569e863c]{border:none;border-radius:0 0 8px 8px}.corpus .wrap-box .quick-box .quick-item li[data-v-569e863c]{display:inline-block;vertical-align:top;width:25%;margin-top:1.2rem;box-sizing:border-box;text-align:center;clear:left}.corpus .wrap-box .quick-box .quick-item li.limt-four[data-v-569e863c]{margin-top:0}.corpus .wrap-box .quick-box .quick-item li img[data-v-569e863c]{display:inline-block;width:2.4rem;height:2.4rem;border:1px solid #e6e6e6;border-radius:8px;overflow:hidden}.corpus .wrap-box .quick-box .quick-item li p[data-v-569e863c]{display:inline-block;margin-top:.25rem;width:4rem;color:#1c1c1c;height:1rem;font:16px/1rem PingFangSC-Regular}.corpus .wrap-box .committee[data-v-569e863c]{margin:.6rem;background:#fff;border-radius:8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.8rem .6rem}.corpus .wrap-box .committee img[data-v-569e863c]{width:2.4rem;height:2.4rem;border-radius:4px;margin-right:.6rem}.corpus .wrap-box .committee .mid[data-v-569e863c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.4rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.corpus .wrap-box .committee .mid span[data-v-569e863c]{margin-top:1px;color:#333;font:18px/1.25rem PingFangSC-Regular}.corpus .wrap-box .committee .mid p[data-v-569e863c]{color:#666;font:14px/1rem PingFangSC-Regular;margin-top:1px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.corpus .wrap-box .committee .right[data-v-569e863c]{margin-left:.5rem;width:.3rem;height:.5rem;background:url(" + escape(__webpack_require__(147)) + ") no-repeat;background-size:100% 100%}.corpus .wrap-box .ad[data-v-569e863c]{height:4.5rem;margin:.6rem;border-radius:8px;overflow:hidden}.corpus .wrap-box .ad img[data-v-569e863c]{width:100%;height:100%;border-radius:8px}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      cardContent: null,
      isCard: true,
      isApp: !!this._Util.isApp(),
      keyWord: '',
      isFocus: false,
      // 输入框是否获取焦点
      historyList: [],
      // 历史搜索记录数据
      queickList: [],
      // 快捷查找入口列表
      queickList2: [],
      adInfo: null,
      committee: [] // 资料委员会数据
    };
  },
  created: function created() {
    localStorage.setItem('SET_FAULTCODE_ALERT', 'true');
    this.getHistoryList();
    this.getQueickList();
  },
  mounted: function mounted() {
    if (this._Util.isMPaaS()) {
      this._Util.mpassHideOptionMenu();
    }
  },
  methods: {
    /**
     * 获取子组件卡片内容
     */
    getcardContent: function getcardContent(res) {
      this.cardContent = res;
    },
    /**
        * 输入框失去焦点
      */
    inputBlur: function inputBlur() {
      var _this = this;
      this.$nextTick(function () {
        _this.isFocus = false;
      });
    },
    /**
        * 获取搜索历史列表
      */
    getHistoryList: function getHistoryList() {
      var _this2 = this;
      this._Util.post(this._Api.CORPUS.HISTORY_LIST, {}, function (data) {
        _this2.historyList = data;
      }, function () {}, this);
    },
    /**
        * 获取快捷查找入口列表
      */
    getQueickList: function getQueickList() {
      var _this3 = this;
      this._Util.post(this._Api.CORPUS.GET_QUICK_LIST, {
        terminalType: '2'
      }, function (data) {
        if (data.quickClassifyList) {
          _this3.queickList = data.quickClassifyList;
        }
        if (data.operateQuickClassifyList) {
          _this3.queickList2 = data.operateQuickClassifyList;
        }
        if (data.advertPostionVo) {
          _this3.adInfo = data.advertPostionVo;
        }
        if (data.committeeQuickClassifyList) {
          _this3.committee = data.committeeQuickClassifyList;
        }
      }, function () {}, this);
    },
    /**
        * 跳转到资料委员会详情
        * @param {Object} item 资料委员会数据内容
      */
    toCommitteeDetail: function toCommitteeDetail(item) {
      location.href = item.url;
    },
    /**
        * 跳转到广告详情
        * @param {Object} obj 广告对象
      */
    toAdDetail: function toAdDetail(obj) {
      location.href = obj.advertUrl;
    },
    /**
        * 增加搜索记录
        * @param {String} keyword 搜索关键字
      */
    addHistory: function addHistory(keyword, callBack) {
      this._Util.post(this._Api.CORPUS.ADD_HISTORY, {
        keyword: keyword
      }, function (data) {
        callBack && callBack();
      }, function () {
        callBack && callBack();
      }, this);
    },
    /**
        * 打开快捷分类链接
        * @param {Object} item 每一条快捷信息
        * @param {Number} index 索引下标
        * @param {String} type top || bottom
      */
    openItem: function openItem(item, index, type) {
      index = index + 1;
      location.href = item.url;
    },
    /**
        * 点击搜索按钮
      */
    search: function search(ev, historyMsg, ind) {
      var _this4 = this;
      sessionStorage.removeItem('new_pageParams');
      var msg = historyMsg || this.keyWord;
      if (!msg) {
        (0, _mintUi.Toast)({
          message: '请输入搜索内容',
          duration: 2000
        });
        return;
      }
      this.addHistory(msg, function () {
        _this4.searchKeyWordList(msg, function () {
          var searchTypes = historyMsg ? 1 : 2;
          var search_history_sort = historyMsg ? "&search_history_sort=".concat(ind) : '';
          location.href = location.origin + '/repair/business/pay/appSearchResultNew?index=0&title=全部&folderid=0&keyword=' + msg + '&searchTypes=' + searchTypes + search_history_sort;
        });
      });
    },
    /**
     * 智能推荐列表
     */
    searchKeyWordList: function searchKeyWordList(keyWord, callBack) {
      this._Util.post(this._Api.POST_SEARCH_KEYWORD_LIST, {
        keyword: keyWord
      }, function (data) {
        if (data) {
          if (!data.showType) {
            // 显示方式   true:搜索结果页    false:跳转连接
            location.href = data.url;
          } else {
            callBack && callBack();
          }
        } else {
          callBack && callBack();
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"corpus"},[_c('div',{staticClass:"wrap-box"},[_c('div',{staticClass:"input_box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyWord),expression:"keyWord",modifiers:{"trim":true}}],class:{'input-animate': _vm.isFocus || _vm.keyWord},attrs:{"type":"text","placeholder":"海量资料，一键查询"},domProps:{"value":(_vm.keyWord)},on:{"focus":function($event){_vm.isFocus = true},"blur":[_vm.inputBlur,function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value.trim()}}}),_vm._v(" "),_c('button',{class:{'animate': _vm.isFocus || _vm.keyWord},on:{"click":function($event){return _vm.search($event)}}},[_vm._v("搜索")])]),_vm._v(" "),_vm._m(0),_vm._v(" "),(_vm.historyList.length)?_c('ul',{staticClass:"clearfix search-history"},_vm._l((_vm.historyList),function(item,ind){return _c('li',{key:ind,on:{"click":function($event){return _vm.search($event, item, ind)}}},[_vm._v(_vm._s(item))])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"quick-box"},[_c('p',{staticClass:"tit"},[_vm._v("快捷查找")]),_vm._v(" "),(_vm.queickList.length)?_c('ul',{staticClass:"quick-item clearfix",class:{'only-one': _vm.queickList2.length === 0}},_vm._l((_vm.queickList),function(item,index){return _c('li',{key:item.classifyId,class:{'limt-four': index < 4},on:{"click":function($event){return _vm.openItem(item, index, 'top')}}},[_c('img',{attrs:{"src":item.imgPath,"alt":"item.name"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name))])])}),0):_vm._e(),_vm._v(" "),(_vm.queickList2.length)?_c('ul',{staticClass:"quick-item quick-item2 clearfix",class:{'only-one': _vm.queickList.length === 0}},_vm._l((_vm.queickList2),function(item,index){return _c('li',{key:item.classifyId,class:{'limt-four': index < 4},on:{"click":function($event){return _vm.openItem(item, index, 'bottom')}}},[_c('img',{attrs:{"src":item.imgPath,"alt":"item.name"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name))])])}),0):_vm._e()]),_vm._v(" "),(_vm.committee.length)?_vm._l((_vm.committee),function(item){return _c('div',{key:item.classifyId,staticClass:"committee",on:{"click":function($event){return _vm.toCommitteeDetail(item)}}},[_c('img',{attrs:{"src":item.imgPath,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"mid"},[_c('span',[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.secondName))])]),_vm._v(" "),_c('div',{staticClass:"right"})])}):_vm._e(),_vm._v(" "),(_vm.adInfo)?_c('div',{staticClass:"ad"},[_c('img',{attrs:{"src":_vm.adInfo.advertImg,"alt":""},on:{"click":function($event){return _vm.toAdDetail(_vm.adInfo)}}})]):_vm._e()],2)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"radius-box"},[_c('div',{staticClass:"radiu"})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(632);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79801ff0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1231);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3349)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-79801ff0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79801ff0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79801ff0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3350);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("d2ed4458", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".circuit-diagram-page[data-v-79801ff0]{position:relative}.search[data-v-79801ff0]{position:relative;padding-top:0}.question-entrance[data-v-79801ff0]{margin:.6rem;text-align:center;color:#177afa;font-size:.75rem}.question-entrance span[data-v-79801ff0]{font-size:inherit}.ad[data-v-79801ff0]{margin-top:2.95rem;margin-bottom:.8rem}.main[data-v-79801ff0]{padding:.4rem .6rem;background-color:#f5f5f5;overflow:hidden}.panel-container[data-v-79801ff0]{position:relative;overflow:hidden}.panel-container h2[data-v-79801ff0]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-79801ff0]{padding:.8rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel.pd6[data-v-79801ff0]{padding:.6rem 0}.panel-container .panel .panel-title[data-v-79801ff0]{padding:0 .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-79801ff0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;font-family:PingFangSC-Regular,PingFang SC;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-79801ff0]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-79801ff0]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-79801ff0]{display:inline-block;width:25%;min-height:3.6rem;margin:.8rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-79801ff0]{display:inline-block;width:2.4rem;height:2.4rem;vertical-align:top;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-79801ff0]{width:inherit;height:inherit}.panel-container .panel .list-ul .list-li .name[data-v-79801ff0]{max-height:2rem;line-height:1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:.25rem auto 0;font-size:.8rem;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _card = _interopRequireDefault(__webpack_require__(117));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    signAd: _signAd.default,
    search: _Search.default,
    card: _card.default
  },
  data: function data() {
    return {
      spname: '电路图大全',
      pageType: '',
      placeholder: '请输入关键词，搜电路图',
      circuitDiagramList: [],
      // 电路图大全
      signType: 24 // 广告位-电路图大全
    };
  },
  created: function created() {
    var _this = this;
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this.shareConfig();
        });
      }, 300);
    }
    this.pageType = this.$route.params.pageType;
    this.circuitDirectoryList();
  },
  mounted: function mounted() {
    this.shareConfig();
  },
  methods: {
    /**
     * 获取电路图列表
     */
    circuitDirectoryList: function circuitDirectoryList() {
      var _this2 = this;
      var params = {
        spid: this.$route.params.spid
      };
      this._Util.post(this._Api.POST_CIRCUIT_DIRECTORY_LIST, params, function (data) {
        _this2.circuitDiagramList = data;
      }, function () {}, this, false);
    },
    /**
     * 电路图类型
     * @param item {Object} 电路图
     */
    openCircuitDiagramType: function openCircuitDiagramType(item) {
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      if (item.spid === 12 || item.spid === 13 || item.spid === 78) {
        // 12: ECU电路图 13: ECU上电通讯图 78: 后处理
        this.clickQuickenter(item, "".concat(location.origin, "/v2/library/circuitDiagram2/ecu/").concat(item.pageType, "/").concat(item.spid));
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'ecuIndex',
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/ecu/").concat(item.pageType, "/").concat(item.spid)
            }
          });
        } else {
          this.$router.push({
            path: "/v2/library/circuitDiagram2/ecu/".concat(item.pageType, "/").concat(item.spid)
          });
        }
      } else if (item.spid === 14 || item.spid === 18 || item.spid === 79) {
        // 14: 整车电路 18: 保险丝盒定义 79: 仪表针脚定义
        this.clickQuickenter(item, "".concat(location.origin, "/v2/library/circuitDiagram2/vehicle/").concat(item.pageType, "/").concat(item.spid));
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'vehicle',
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicle/").concat(item.pageType, "/").concat(item.spid)
            }
          });
        } else {
          this.$router.push({
            path: "/v2/library/circuitDiagram2/vehicle/".concat(item.pageType, "/").concat(item.spid)
          });
        }
      } else if (item.spid === 20) {
        // 20: 诊断接口针脚定义
        this.clickQuickenter(item, "".concat(location.origin, "/v2/library/dataStream?folderid=20191892&pageType=").concat(item.pageType));
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'faultCase',
              url: "".concat(location.origin, "/v2/library/faultCase?folderid=20191892&pageType=").concat(item.pageType)
            }
          });
        } else {
          this.$router.push({
            path: "/v2/library/faultCase?folderid=20191892&pageType=".concat(item.pageType)
          });
        }
      } else if (item.spid === 19) {
        // 19: 工程机械电路图
        this.clickQuickenter(item, "".concat(location.origin, "/v2/library/circuitDiagram2/engineeringMachinery/").concat(item.pageType, "/").concat(item.spid));
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'engineeringMachinery',
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/engineeringMachinery/").concat(item.pageType, "/").concat(item.spid)
            }
          });
        } else {
          this.$router.push({
            path: "/v2/library/circuitDiagram2/engineeringMachinery/".concat(item.pageType, "/").concat(item.spid)
          });
        }
      } else if (item.spid === 17) {
        // ABS电路图
        this.clickQuickenter(item, "".concat(location.origin, "/v2/library/circuitDiagram2/abs?pageType=").concat(item.pageType, "&spid=").concat(item.spid, "&moudle=").concat(item.moudle, "&folderid=").concat(item.folderid));
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'ABS2',
              notGive: 1,
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/abs?pageType=").concat(item.pageType, "&spid=").concat(item.spid, "&moudle=").concat(item.moudle, "&folderid=").concat(item.folderid)
            }
          });
        } else {
          this.$router.push({
            name: 'ABS2',
            query: {
              pageType: item.pageType,
              spid: item.spid,
              moudle: item.moudle,
              folderid: item.folderid
            }
          });
        }
      } else if (item.spid === 16) {
        // 车身模块电路图
        this.clickQuickenter(item, "".concat(location.origin, "/v2/library/circuitDiagram2/carModule2?pageType=").concat(item.pageType, "&spid=").concat(item.spid, "&moudle=").concat(item.moudle, "&folderid=").concat(item.folderid));
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'carModule2',
              notGive: 1,
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/carModule2?pageType=").concat(item.pageType, "&spid=").concat(item.spid, "&moudle=").concat(item.moudle, "&folderid=").concat(item.folderid)
            }
          });
        } else {
          this.$router.push({
            name: 'carModule2',
            query: {
              pageType: item.pageType,
              spid: item.spid,
              moudle: item.moudle,
              folderid: item.folderid
            }
          });
        }
      } else if (item.spid === 15) {
        // 传感器针脚定义
        this.clickQuickenter(item, "".concat(location.origin, "/v2/library/circuitDiagram2/sensorPinDefinition?pageType=").concat(item.pageType, "&spid=").concat(item.spid, "&module=").concat(item.moudle, "&folderid=").concat(item.folderid));
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'sensorPinDefinition',
              notGive: 1,
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/sensorPinDefinition?pageType=").concat(item.pageType, "&spid=").concat(item.spid, "&moudle=").concat(item.moudle, "&folderid=").concat(item.folderid)
            }
          });
        } else {
          this.$router.push({
            name: 'sensorPinDefinition',
            query: {
              pageType: item.pageType,
              spid: item.spid,
              moudle: item.moudle,
              folderid: item.folderid
            }
          });
        }
      }
    },
    /**
     * 车辆子集信息
     * @param {Object} item 父级信息
     * @param {Object} _item 子集信息
     */
    openBrand: function openBrand(item, _item) {
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(_item);
      if (item.spid === 12 || item.spid === 78) {
        // ECU电路图
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'ecuIndexBrand',
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/brand/").concat(item.pageType, "/").concat(item.spid, "/").concat(_item.moudle, "/").concat(_item.pathNo)
            }
          });
        } else {
          this.$router.push({
            path: "/v2/library/circuitDiagram2/brand/".concat(item.pageType, "/").concat(item.spid, "/").concat(_item.moudle, "/").concat(_item.pathNo)
          });
        }
      } else if (item.spid === 14) {
        // 整车电路图
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'vehicleBrand',
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicleBrand/").concat(item.pageType, "/").concat(item.spid, "/").concat(_item.moudle, "/").concat(_item.pathNo)
            }
          });
        } else {
          this.$router.push({
            path: "/v2/library/circuitDiagram2/vehicleBrand/".concat(item.pageType, "/").concat(item.spid, "/").concat(_item.moudle, "/").concat(_item.pathNo)
          });
        }
      }
    },
    /**
     * 电路图查询意见反馈
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=046fd853&data=").concat(this.$route.params.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: '电路图大全',
        content: '电路图查询意见反馈',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击快捷入口
     */
    clickQuickenter: function clickQuickenter(item, url) {
      this._Util.sensorsCollect('click_quickenter', {
        operation_page: '电路图大全',
        quickenter_id: item.spid,
        quickenter_name: item.name,
        quickenter_sort: item.sort,
        jump_url: url
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: '电路图大全',
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue || '',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: ''
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"circuit-diagram-page"},[_c('div',{staticClass:"outSide"},[_c('card',{attrs:{"cardcontent":{}}})],1),_vm._v(" "),_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType,"placeholder":_vm.placeholder}})],1),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"panel-container"},[_c('h2',[_vm._v("快捷查找")]),_vm._v(" "),_vm._l((_vm.circuitDiagramList),function(item,index){return _c('div',{key:index,staticClass:"panel",class:{'pd6': item.showType === 2}},[_c('div',{staticClass:"panel-title",on:{"click":function($event){return _vm.openCircuitDiagramType(item)}}},[_c('span',[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('i',{staticClass:"arrow-right"})]),_vm._v(" "),(item.showType === 2)?_c('ul',{staticClass:"list-ul"},[_vm._l((item.vehicleDictionaryList),function(_item,i){return _c('li',{key:i,staticClass:"list-li",on:{"click":function($event){return _vm.openBrand(item, _item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":_item.pathOriginalImg,"alt":_item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(_item.pathName))])])}),_c('li',{staticClass:"list-li",on:{"click":function($event){return _vm.openCircuitDiagramType(item)}}},[_vm._m(0,true),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v("更多")])])],2):_vm._e()])})],2),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("电路图查询意见反馈")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":__webpack_require__(3351),"alt":"更多"}})])}]
module.exports = __webpack_require__.p + "static/img/more_icon.f1177be.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(633);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6ed7b0d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1232);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3352)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6ed7b0d6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6ed7b0d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6ed7b0d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3353);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5e2f5d8f", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".circuit-diagram-page[data-v-6ed7b0d6]{position:relative;width:100%}.search[data-v-6ed7b0d6]{position:relative;padding-top:0}.question-entrance[data-v-6ed7b0d6]{margin:.6rem;text-align:center;color:#177afa;font-size:.75rem}.question-entrance span[data-v-6ed7b0d6]{font-size:inherit}.ad[data-v-6ed7b0d6]{margin-top:2.95rem;margin-bottom:1.2rem;padding:0 .6rem}.main[data-v-6ed7b0d6]{position:relative;background-color:#f5f5f5;overflow:hidden}.top-title[data-v-6ed7b0d6]{padding:.6rem;font-size:.7rem;font-weight:400;color:#333}.types-wrap[data-v-6ed7b0d6]{position:relative;padding:.8rem .6rem;border-radius:.6rem .6rem 0 0;white-space:nowrap;overflow:hidden;background-color:#fff;z-index:2}.types-wrap .types-inner[data-v-6ed7b0d6]{line-height:1;display:inline-block;padding:0 .6rem}.types-wrap .types-inner span[data-v-6ed7b0d6]{display:inline-block;padding:.46rem 1rem;margin-right:.6rem;color:#333;font-size:.8rem;line-height:1;background-color:#f5f5f5;border-radius:.86rem}.types-wrap .types-inner span.active[data-v-6ed7b0d6]{background-color:#177afa;color:#fff}.types-wrap .types-inner span[data-v-6ed7b0d6]:last-child{margin-right:0}.shadow-bg[data-v-6ed7b0d6]{position:absolute;left:0;top:2.5rem;width:100%;height:4.55rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.panel-container[data-v-6ed7b0d6]{position:relative;padding:.4rem .6rem;overflow:hidden}.panel-container h2[data-v-6ed7b0d6]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333;font-family:PingFangSC-Regular,PingFang SC}.panel-container .panel[data-v-6ed7b0d6]{padding:.2rem 0 .4rem;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-6ed7b0d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.75rem}.panel-container .panel .panel-title span[data-v-6ed7b0d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-6ed7b0d6]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-6ed7b0d6]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-6ed7b0d6]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-6ed7b0d6]{display:inline-block;width:2.4rem;height:2.4rem;vertical-align:top;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-6ed7b0d6]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-6ed7b0d6]{display:block;margin:.25rem auto 0;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
var _signType = __webpack_require__(108);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    signAd: _signAd.default,
    search: _Search.default
  },
  data: function data() {
    return {
      spname: '',
      pageType: '',
      placeholder: '请输入关键词，搜电路图',
      brand: {},
      // ECU品牌...
      signType: 25,
      HCLTypes: [],
      activeModule: ''
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    var _this = this;
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this.shareConfig();
        });
      }, 300);
    }
    this.pageType = this.$route.params.pageType;
    if (this.pageType === 'HCL_CIRCUIT_IMG') {
      this.getModuleList();
    } else {
      this.firstVehicleList();
    }
    this.signType = (0, _signType.signType)(this.$route.params.pageType);
  },
  mounted: function mounted() {
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
  },
  methods: {
    /**
     * 获取模块列表
     */
    getModuleList: function getModuleList() {
      var _this2 = this;
      this._Util.post(this._Api.POST_PRODUCT_HCL_MODULE_LIST, {}, function (data) {
        _this2.HCLTypes = data;
        _this2.activeModule = data[0].moudle;
        _this2.firstVehicleList();
      }, function () {}, this);
    },
    /**
     * 获取第一层车辆信息列表
     */
    firstVehicleList: function firstVehicleList() {
      var _this3 = this;
      var params = {
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid
      };
      if (this.pageType === 'HCL_CIRCUIT_IMG') {
        params.moudle = this.activeModule;
      }
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, _objectSpread({}, params), function (data) {
        _this3.brand = data;
        _this3.spname = data.spname;
      }, function () {}, this, false);
    },
    selectType: function selectType(item) {
      this.activeModule = item.moudle;
      this.firstVehicleList();
      this.clickVehicledictionary({
        pathName: item.name,
        moudle: item.moudle
      }, '');
    },
    openBrand: function openBrand(item) {
      var params = this.$route.params;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item, '');
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'ecuIndexBrand',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/brand/").concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/brand/".concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.params.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item, url) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: url
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.signType = signType;
function signType(pageType) {
  var signType = null;
  switch (pageType) {
    case 'CIRCUIT_IMG':
      signType = 24;
      break;
    case 'ECU_CIRCUIT_IMG':
      signType = 25;
      break;
    case 'VEHICLE_CIRCUIT_IMG':
      signType = 26;
      break;
    case 'HCL_CIRCUIT_IMG':
      signType = 27;
      break;
    case 'YBZJDY_CIRCUIT_IMG':
      signType = 28;
      break;
    case 'BXSHDY_CIRCUIT_IMG':
      signType = 29;
      break;
    case 'ZDJK_CIRCUIT_IMG':
      signType = 30;
      break;
    case 'EGINE_PLANG_CIRCUIT_IMG':
      signType = 31;
      break;
    case 'ECU_WGSDTXTXT':
      signType = 32;
      break;
    case 'VEHICLE':
      signType = 33;
      break;
    case 'HCL':
      signType = 34;
      break;
    case 'EGINE_PLANG':
      signType = 35;
      break;
    case 'PUMP':
      signType = 36;
      break;
    case 'SEN_ACT_CIRCUIT_IMG':
      signType = 39;
      break;
    case 'CSMK_CIRCUIT_IMG':
      signType = 40;
      break;
    case 'ABS_CIRCUIT_IMG':
      signType = 41;
      break;
    case 'ENGINE':
      signType = 42;
      break;
    case 'SEN_ACT':
      signType = 43;
      break;
    default:
      break;
  }
  return signType;
}/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"circuit-diagram-page"},[(_vm.pageType !== 'HCL_CIRCUIT_IMG')?_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType,"placeholder":_vm.placeholder}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main"},[(_vm.pageType === 'HCL_CIRCUIT_IMG')?_c('h2',{staticClass:"top-title"},[_vm._v("根据后处理类型，查后处理资料")]):_vm._e(),_vm._v(" "),(_vm.pageType === 'HCL_CIRCUIT_IMG')?_c('div',{staticClass:"types-wrap"},[_c('div',{staticClass:"types-inner"},_vm._l((_vm.HCLTypes),function(item,index){return _c('span',{key:index,class:{'active': _vm.activeModule === item.moudle},on:{"click":function($event){return _vm.selectType(item)}}},[_vm._v(_vm._s(item.name))])}),0)]):_vm._e(),_vm._v(" "),(_vm.pageType === 'HCL_CIRCUIT_IMG')?_c('div',{staticClass:"shadow-bg"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"panel-container"},[(_vm.pageType !== 'HCL_CIRCUIT_IMG')?_c('h2',[_vm._v("请选择ECU品牌")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.brand.vehicleDictionaryList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openBrand(item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])}),0)])]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(634);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b871ddaa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1233);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3354)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b871ddaa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b871ddaa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b871ddaa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brand_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3355);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("56187b67", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-b871ddaa]{position:fixed;top:3.25rem;bottom:0;height:auto}.brand-page[data-v-b871ddaa]{background-color:#f5f5f5;font-family:Microsoft Yahei,Arial,sans-serif}.question-entrance[data-v-b871ddaa]{margin:.6rem;text-align:center;color:#177afa;font-size:.7rem}.question-entrance span[data-v-b871ddaa]{font-size:.7rem}.m-bottom[data-v-b871ddaa]{line-height:2rem;text-align:center;color:#177afa;font-size:.7rem}.btn_1[data-v-b871ddaa]{width:11.25rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;background-color:#177afa;text-align:center;color:#fff;border-radius:.3rem}.btn_2[data-v-b871ddaa]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-b871ddaa]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.head-list[data-v-b871ddaa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff}.head-list li[data-v-b871ddaa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li.flex0[data-v-b871ddaa]{-webkit-box-flex:inherit;-webkit-flex:inherit;-ms-flex:inherit;flex:inherit}.head-list li.flex0:last-child i[data-v-b871ddaa],.head-list li.flex1:nth-last-child(2) i[data-v-b871ddaa]{display:none}.head-list li span[data-v-b871ddaa]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list li i[data-v-b871ddaa]{margin:0 .2rem;font-weight:600;font-size:.9rem}.head-list .lr[data-v-b871ddaa]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.head-list .lr span[data-v-b871ddaa]{font-size:.7rem}.head-list em[data-v-b871ddaa]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.main[data-v-b871ddaa]{border-radius:.6rem .6rem 0 0;background-color:#f5f5f5;overflow:hidden}.main .panel-h[data-v-b871ddaa]{height:1rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1rem;margin-bottom:.4rem}.panel-grid[data-v-b871ddaa]{padding:.6rem}.panel-grid .panel[data-v-b871ddaa]{padding:.6rem .4rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-grid .panel .list-ul[data-v-b871ddaa]{width:100%;margin-bottom:-.4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li[data-v-b871ddaa]{float:left;width:33.334%;margin-bottom:.4rem;text-align:center}.panel-grid .panel .list-ul .list-li .panel-inner[data-v-b871ddaa]{display:inline-block;width:96%;background-color:#fff;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li .panel-inner .pic[data-v-b871ddaa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li .panel-inner .pic img[data-v-b871ddaa]{height:90%;vertical-align:top;border:none;outline:none}.panel-grid .panel .list-ul .list-li .panel-inner .name[data-v-b871ddaa]{display:block;height:1.65rem;line-height:1.05rem;margin-top:.3rem;font-size:.75rem;color:#333;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-list[data-v-b871ddaa]{padding:.6rem}.panel-list .list-li[data-v-b871ddaa]{padding:.8rem .6rem;margin-bottom:.6rem;background-color:#fff;border-radius:8px;overflow:hidden;font-weight:400}.panel-list .list-li .name[data-v-b871ddaa]{line-height:25px;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}.panel-list .list-li.have-read .name[data-v-b871ddaa]{color:#999}.panel-list .list-li .meta[data-v-b871ddaa]{margin-top:.2rem;line-height:20px;font-size:.7rem;color:#999}.panel-list .list-li .meta span[data-v-b871ddaa]{margin-right:10px;font-size:.7rem}.material-null[data-v-b871ddaa]{margin-top:142px;text-align:center}.material-null .tips[data-v-b871ddaa]{margin-bottom:2rem}.material-null .tips img[data-v-b871ddaa]{display:inline-block;width:3.7rem}.material-null .tips p[data-v-b871ddaa]{margin-top:.4rem;line-height:22px;font-size:.8rem;color:#666;font-weight:400}.list-bottom-box[data-v-b871ddaa]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-b871ddaa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-b871ddaa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-b871ddaa]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-b871ddaa]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-2px}.list-bottom-box .list-top .lr[data-v-b871ddaa]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr span[data-v-b871ddaa]{font-size:.7rem}.list-bottom-box .list-top .lr em[data-v-b871ddaa]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-b871ddaa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.pop-container[data-v-b871ddaa]{background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-b871ddaa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-b871ddaa]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-b871ddaa]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-b871ddaa]{height:20rem;padding-bottom:2rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-b871ddaa]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-b871ddaa]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-b871ddaa]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li span[data-v-b871ddaa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.8rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container .content-list li span.active[data-v-b871ddaa]{background-color:#e7f1ff;color:#177afa}.pop-container .foot-bar[data-v-b871ddaa]{border-top:1px solid #eee;padding:.35rem .85rem}.pop-container .foot-bar .btn[data-v-b871ddaa]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      spname: '',
      headList: [],
      // 顶部导航
      pathInfo: {},
      dataNumType: 0,
      showPathInfo: false,
      brandList: [],
      // 车辆字典列表
      materialList: [],
      // 资料列表
      title: '尿素泵/DCU型号',
      brandText: '',
      brandList1: [],
      pathNo: this.$route.params.pathNo,
      filterName: '',
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getMaterialDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      showNullTip: false,
      haveReadDateId: [],
      dataCount: 0,
      userInfo: {}
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    this.getUserInfo();
  },
  mounted: function mounted() {
    var _this = this;
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this.shareConfig();
        });
      }, 300);
    }
    this.getDataAndPosition();
  },
  methods: {
    /**
     * 获取用户状态信息
     */
    getUserInfo: function getUserInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
        _this2.userInfo = data;
      }, function () {}, this, true);
    },
    /**
     * 获取子集车辆字典或者资料列表
     */
    subVehicleAndDataList: function subVehicleAndDataList(page) {
      var _this3 = this;
      var params = {
        pathNo: this.$route.params.pathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        moudle: this.$route.params.moudle
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this3.spname = data.spname;
        _this3.headList = data.headList || [];
        _this3.brandList = data.vehicleDictionaryVoList || [];
        _this3.brandText = data.text;
        _this3.brandList1 = data.vehicleDictionaryVoList || [];
        var dataList = data.shareList || [];
        _this3.dataNumType = data.dataNumType;
        _this3.pathInfo = {
          pathName: data.pathName,
          pathNo: data.pathNo
        };
        if (_this3.brandList.length === 0 && dataList.length === 0) {
          _this3.showNullTip = true;
        }
        if (data.shareList && data.shareList.length > 0) {
          _this3.showNullTip = false;
          _this3.pathNo = _this3.$route.params.pathNo;
          _this3.getMaterialDataList({
            num: 1,
            size: 10,
            firstFilter: page.firstFilter
          });
        }
      }, function () {}, this, false);
    },
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取资料列表
     */
    getMaterial: function getMaterial(item) {
      this.pathNo = item.pathNo;
      this.filterName = item.pathName;
      this.clickVehicledictionary(item);
      var params = this.$route.params;
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.params.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.params.pageType);
      }
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'ecuMaterial',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/ecuMaterial/").concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo, "?prantPathNo=").concat(this.$route.params.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/ecuMaterial/".concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo, "?prantPathNo=").concat(this.$route.params.pathNo)
        });
      }
    },
    getMaterialDataList: function getMaterialDataList(page) {
      var _this4 = this;
      var params = {
        pathNo: this.pathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        moudle: this.$route.params.moudle,
        pageNum: page.num,
        pageSize: page.size
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this4.headList = data.headList;
        _this4.brandList = [];
        var dataList = data.shareList || [];
        if (page.num === 1) {
          _this4.materialList = [];
          _this4.showPathInfo = false;
        }
        _this4.materialList = _this4.materialList.concat(dataList);
        if (_this4.materialList.length === 0) {
          _this4.showNullTip = true;
        } else {
          if (dataList.length < 10) {
            _this4.showPathInfo = true;
          }
        }
        if (data.shareList && data.shareList.length > 0 && _this4.haveReadDateId.length > 0) {
          data.shareList.forEach(function (item) {
            _this4.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this4.$set(item, 'haveRead', true);
              }
            });
          });
        }
        // 埋点相关
        var _path = '';
        if (_this4.headList && _this4.headList.length > 0) {
          _this4.headList.forEach(function (v) {
            _path += v.pathNo + '_';
          });
          _path = _path.substring(0, _path.length - 1);
        }
        _this4.dataCount = data.dataCount;
        if (page.firstFilter) {
          // 第一次进入结果页搜索埋点
          _this4.enterLibraryresultpage({
            path: _path,
            amount: data.dataCount
          });
        } else {
          // 筛选结果页埋点
          _this4.filterLibraryresult({
            path: _path,
            type: '资料类型',
            name: _this4.filterName,
            amount: data.dataCount
          });
        }
        _this4.$nextTick(function () {
          _this4.mescroll.endSuccess(dataList.length);
        }).catch(function (e) {
          _this4.mescroll.endErr();
        });
      }, function () {}, this, false);
    },
    toggleNav: function toggleNav(item) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.params.moudle
      });
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo() {
      var _params = this.$route.params;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(this.pathInfo.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(this.pathInfo.pathNo)
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.params.pageType, "-").concat(this.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.params.pageType, "-").concat(this.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData: function reserveData() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.params.pageType, "-").concat(this.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        pathNo: this.pathNo,
        materialList: this.materialList,
        haveReadDateId: this.haveReadDateId,
        showPathInfo: this.showPathInfo,
        pathInfo: this.pathInfo || {},
        dataNumType: this.dataNumType,
        headList: this.headList,
        brandList1: this.brandList1,
        brandText: this.brandText,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.params.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.params.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.params.pageType);
        this.spname = position.spname;
        this.pathNo = position.pathNo;
        this.headList = position.headList;
        this.brandList1 = position.brandList1;
        this.brandText = position.brandText;
        this.materialList = position.materialList;
        this.haveReadDateId = position.haveReadDateId;
        this.dataNumType = position.dataNumType;
        this.showPathInfo = position.showPathInfo;
        this.pathInfo = position.pathInfo || {};
        this.dataCount = position.dataCount;
        this.mescrollUp.page.num = position.pageNum;
        this.$nextTick(function () {
          setTimeout(function () {
            if (document.getElementById('savePosition')) {
              // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
              document.getElementById('savePosition').scrollTop = position.scrollTop;
            }
          }, 200);
        });
      } else {
        this.subVehicleAndDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      item.name = this.filterName;
      this.clickLibraryfile(_objectSpread({}, item), index);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userInfo.userStatus == 0 || that.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: item.type,
        filter_name: item.name,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: item.name,
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"brand-page"},[_c('ul',{staticClass:"head-list"},[_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,class:_vm.dataNumType !== 1 ? 'flex0': 'flex1'},[_c('span',[_vm._v(_vm._s(item.pathName))]),_c('i',[_vm._v("/")])])}),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo()}}},[_c('span',[_vm._v(_vm._s(_vm.pathInfo.pathName))]),_vm._v(" 通用资料"),_c('em')]):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"main"},[(_vm.brandList.length > 0)?_c('div',{staticClass:"panel-grid"},[_c('h2',{staticClass:"panel-h"},[_vm._v("请继续选择")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.brandList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.getMaterial(item)}}},[_c('div',{staticClass:"panel-inner"},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])]):_vm._e(),_vm._v(" "),(_vm.materialList.length > 0)?_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"panel-list"},[_c('h2',{staticClass:"panel-h"},[_vm._v("全部资料")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,staticClass:"list-li",class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"panel-inner"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(item.dataName))])])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("登记想要的资料"),_c('em')])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('span',{staticClass:"list-btn",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e()]):_vm._e()])])]):_vm._e(),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v("暂时没有 "+_vm._s(_vm.pathInfo.pathName)+" 相关资料")])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.generalInfo()}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e()],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(635);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5cef3451_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1234);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3356)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5cef3451"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5cef3451_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5cef3451_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ecuMaterial_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3357);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7f11789e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-5cef3451]{position:fixed;top:2.75rem;bottom:0;height:auto}.brand-page[data-v-5cef3451]{background-color:#f5f5f5;font-family:Microsoft Yahei,Arial,sans-serif}.question-entrance[data-v-5cef3451]{margin:.6rem;text-align:center;color:#177afa;font-size:.75rem}.question-entrance span[data-v-5cef3451]{font-size:inherit}.m-bottom[data-v-5cef3451]{line-height:2rem;text-align:center;color:#177afa;font-size:.75rem}.btn_1[data-v-5cef3451]{width:11.25rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;background-color:#177afa;text-align:center;color:#fff;border-radius:.3rem}.btn_2[data-v-5cef3451]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-5cef3451]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.head-list[data-v-5cef3451]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff}.head-list li[data-v-5cef3451]{line-height:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li:last-child i[data-v-5cef3451]{display:none}.head-list li span[data-v-5cef3451]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list li i[data-v-5cef3451]{margin:0 .2rem;font-weight:600;font-size:.9rem}.main[data-v-5cef3451]{border-radius:.6rem .6rem 0 0;background-color:#f5f5f5;overflow:hidden}.main .panel-h[data-v-5cef3451]{height:1rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1rem;margin-bottom:.4rem}.panel-grid[data-v-5cef3451]{padding:.6rem}.panel-grid .panel[data-v-5cef3451]{padding:.6rem .4rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-grid .panel .list-ul[data-v-5cef3451]{width:100%;margin-bottom:-.4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li[data-v-5cef3451]{float:left;width:33.333334%;margin-bottom:.4rem;text-align:center}.panel-grid .panel .list-ul .list-li .panel-inner[data-v-5cef3451]{display:inline-block;width:96%;background-color:#fff;border:1px solid #e6e6e6;border-radius:.2rem;overflow:hidden}.panel-grid .panel .list-ul .list-li .panel-inner .pic[data-v-5cef3451]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li .panel-inner .pic img[data-v-5cef3451]{height:90%;vertical-align:top;border:none;outline:none}.panel-grid .panel .list-ul .list-li .panel-inner .name[data-v-5cef3451]{display:block;height:1.65rem;line-height:1.05rem;margin-top:.3rem;font-size:.75rem;color:#333;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-list[data-v-5cef3451]{padding:.6rem}.panel-list .list-li[data-v-5cef3451]{padding:.8rem .6rem;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden;font-weight:400}.panel-list .list-li .name[data-v-5cef3451]{line-height:1.25rem;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}.panel-list .list-li.have-read .name[data-v-5cef3451]{color:#999}.panel-list .list-li .meta[data-v-5cef3451]{margin-top:.2rem;line-height:1.2rem;font-size:.7rem;color:#999}.panel-list .list-li .meta span[data-v-5cef3451]{margin-right:.5rem}.material-null[data-v-5cef3451]{margin-top:7.1rem;text-align:center}.material-null .tips[data-v-5cef3451]{margin-bottom:2rem}.material-null .tips img[data-v-5cef3451]{display:inline-block;width:3.7rem}.material-null .tips p[data-v-5cef3451]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.list-bottom-box[data-v-5cef3451]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-5cef3451]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-5cef3451]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-5cef3451]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-5cef3451]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-.1rem}.list-bottom-box .list-top .lr[data-v-5cef3451]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-5cef3451]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-5cef3451]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.pop-container[data-v-5cef3451]{background-color:#fff;border-radius:.6rem .6rem 0 0;height:90%;overflow:hidden}.pop-container .head[data-v-5cef3451]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-5cef3451]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-5cef3451]{position:absolute;right:0;padding:1rem .8rem;line-height:1;font-size:.8rem}.pop-container .content-container[data-v-5cef3451]{height:90%;padding-bottom:2rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-5cef3451]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .popup-type[data-v-5cef3451]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:1rem;padding:0 .6rem}.pop-container .content-container .popup-type .lf[data-v-5cef3451]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.pop-container .content-container .popup-type .lr[data-v-5cef3451]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.pop-container .content-container .popup-type em[data-v-5cef3451]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .content-container .content-list[data-v-5cef3451]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-5cef3451]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li span[data-v-5cef3451]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.8rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container .content-list li span.active[data-v-5cef3451]{background-color:#e7f1ff;color:#177afa}.pop-container .foot-bar[data-v-5cef3451]{border-top:1px solid #eee;padding:.35rem .85rem}.pop-container .foot-bar .btn[data-v-5cef3451]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      spname: '',
      headList: [],
      // 顶部导航
      materialList: [],
      // 资料列表
      title: '',
      show: false,
      brandText: '',
      brandList1: [],
      pathNo: this.$route.params.pathNo,
      filterName: '',
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getMaterialDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      showNullTip: false,
      pathInfo: {},
      haveReadDateId: [],
      showPathInfo: false,
      dataNumType: 0,
      dataCount: 0,
      userInfo: {}
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    this.getUserInfo();
    this.getPrantBrand();
  },
  mounted: function mounted() {
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
    this.getDataAndPosition();
  },
  methods: {
    /**
     * 获取用户状态信息
     */
    getUserInfo: function getUserInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
        _this.userInfo = data;
      }, function () {}, this, true);
    },
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取资料列表
     */
    getMaterial: function getMaterial(item) {
      this.pathNo = item.pathNo;
      this.filterName = item.pathName;
      this.clickVehicledictionary(item);
      this.getMaterialDataList({
        num: 1,
        size: 10
      });
      this.show = false;
    },
    getPrantBrand: function getPrantBrand() {
      var _this2 = this;
      var params = {
        pathNo: this.$route.query.prantPathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        moudle: this.$route.params.moudle
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this2.brandList1 = data.vehicleDictionaryVoList || [];
        _this2.spname = data.spname;
        _this2.pathInfo = {
          pathName: data.pathName,
          pathNo: data.pathNo
        };
        _this2.brandText = data.text;
        _this2.dataNumType = data.dataNumType;
      }, function () {}, this);
    },
    getMaterialDataList: function getMaterialDataList(page) {
      var _this3 = this;
      var params = {
        pathNo: this.pathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        moudle: this.$route.params.moudle,
        pageNum: page.num,
        pageSize: page.size
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this3.headList = data.headList;
        _this3.brandList = [];
        var dataList = data.shareList || [];
        if (page.num === 1) {
          _this3.materialList = [];
          _this3.showPathInfo = {};
        }
        _this3.materialList = _this3.materialList.concat(dataList);
        if (_this3.materialList.length === 0) {
          _this3.showNullTip = true;
        } else {
          if (dataList.length <= 10) {
            _this3.showPathInfo = true;
          }
        }
        _this3.pathInfo = data.headList[data.headList.length - 2];
        if (data.shareList && data.shareList.length > 0 && _this3.haveReadDateId.length > 0) {
          data.shareList.forEach(function (item) {
            _this3.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this3.$set(item, 'haveRead', true);
              }
            });
          });
        }
        // 埋点相关
        var _path = '';
        if (_this3.headList && _this3.headList.length > 0) {
          _this3.headList.forEach(function (v) {
            _path += v.pathNo + '_';
          });
          _path = _path.substring(0, _path.length - 1);
        }
        if (page.firstFilter) {
          // 第一次进入结果页搜索埋点
          _this3.enterLibraryresultpage({
            path: _path,
            amount: data.dataCount
          });
        } else {
          // 筛选结果页埋点
          _this3.filterLibraryresult({
            path: _path,
            type: '资料类型',
            name: _this3.filterName,
            amount: data.dataCount
          });
        }
        _this3.$nextTick(function () {
          _this3.mescroll && _this3.mescroll.endSuccess(dataList.length);
        }).catch(function (e) {
          _this3.mescroll.endErr();
        });
      }, function () {}, this, false);
    },
    toggleNav: function toggleNav(item, index) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.params.moudle
      });
      if (index > 0 && index === this.headList.length - 1) {
        this.show = true;
      } else {
        if (this._Util.isApp()) {
          api.closeWin();
        } else {
          this.$router.go(-1);
        }
      }
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo() {
      var _params = this.$route.params;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(this.pathInfo.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(this.pathInfo.pathNo)
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.params.pageType, "-").concat(this.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.params.pageType, "-").concat(this.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData: function reserveData() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.params.pageType, "-").concat(this.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        pathNo: this.pathNo,
        materialList: this.materialList,
        headList: this.headList,
        brandList1: this.brandList1,
        brandText: this.brandText,
        haveReadDateId: this.haveReadDateId,
        showPathInfo: this.showPathInfo,
        dataNumType: this.dataNumType,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.params.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      // alert('列表')
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.params.pageType));
      // alert(JSON.stringify(position))
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.params.pageType);
        this.spname = position.spname;
        this.pathNo = position.pathNo;
        this.headList = position.headList;
        this.brandList1 = position.brandList1;
        this.brandText = position.brandText;
        this.materialList = position.materialList;
        this.haveReadDateId = position.haveReadDateId;
        this.showPathInfo = position.showPathInfo;
        this.dataNumType = position.dataNumType;
        this.dataCount = position.dataCount;
        this.mescrollUp.page.num = position.pageNum;
        this.$nextTick(function () {
          setTimeout(function () {
            if (document.getElementById('savePosition')) {
              // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
              document.getElementById('savePosition').scrollTop = position.scrollTop;
            }
          }, 200);
        });
      } else {
        this.getMaterialDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userInfo.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userInfo.userStatus == 0 || that.userInfo.userStatus == 1) {
            (0, _mintUi.MessageBox)({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: item.type,
        filter_name: item.name,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: this.filterName,
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"brand-page"},[_c('ul',{staticClass:"head-list"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item, index)}}},[_c('span',[_vm._v(_vm._s(item.pathName))]),_c('i',[_vm._v("/")])])}),0),_vm._v(" "),_c('div',{staticClass:"main"},[(_vm.materialList && _vm.materialList.length > 0)?_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"panel-list"},[_c('h2',{staticClass:"panel-h"},[_vm._v("全部资料")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,staticClass:"list-li",class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"panel-inner"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(item.dataName))])])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("登记想要的资料"),_c('em')])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('span',{staticClass:"list-btn",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e()]):_vm._e()])])]):_vm._e(),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v("暂时没有 "+_vm._s(_vm.pathInfo.pathName)+" 相关资料")])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.generalInfo()}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e()],1),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[_c('div',{staticClass:"popup-type"},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(_vm.pathInfo.pathName))]),(_vm.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo()}}},[_vm._v(_vm._s(_vm.pathInfo.pathName)+" 通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"panel-grid"},[_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.brandList1),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.getMaterial(item)}}},[_c('div',{staticClass:"panel-inner"},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])])])])],1)}
var staticRenderFns = []
exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-index-anchor{z-index:1;box-sizing:border-box;padding:0 16px;color:#323233;font-weight:500;font-size:14px;line-height:32px;background-color:transparent}.van-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:#ee0a24;background-color:#fff}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/index-anchor/index.css"],"names":[],"mappings":"AAAA,kBAAkB,UAAU,sBAAsB,eAAe,cAAc,gBAAgB,eAAe,iBAAiB,4BAA4B,CAAC,0BAA0B,eAAe,MAAM,QAAQ,OAAO,cAAc,qBAAqB,CAAC","file":"index.css","sourcesContent":[".van-index-anchor{z-index:1;box-sizing:border-box;padding:0 16px;color:#323233;font-weight:500;font-size:14px;line-height:32px;background-color:transparent}.van-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:#ee0a24;background-color:#fff}"],"sourceRoot":""}]);

// exports
exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-index-bar__sidebar{position:fixed;top:50%;right:0;z-index:2;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.van-index-bar__index{padding:0 8px 0 16px;font-weight:500;font-size:10px;line-height:14px}.van-index-bar__index--active{color:#ee0a24}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/index-bar/index.css"],"names":[],"mappings":"AAAA,wBAAwB,eAAe,QAAQ,QAAQ,UAAU,oBAAoB,qBAAqB,aAAa,4BAA4B,6BAA6B,8BAA8B,sBAAsB,kBAAkB,mCAAmC,2BAA2B,eAAe,yBAAyB,gBAAgB,CAAC,sBAAsB,qBAAqB,gBAAgB,eAAe,gBAAgB,CAAC,8BAA8B,aAAa,CAAC","file":"index.css","sourcesContent":[".van-index-bar__sidebar{position:fixed;top:50%;right:0;z-index:2;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.van-index-bar__index{padding:0 8px 0 16px;font-weight:500;font-size:10px;line-height:14px}.van-index-bar__index--active{color:#ee0a24}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1972);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("65844028", content, true, {});// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1974);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("20215ca0", content, true, {});

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _relation = __webpack_require__(73);

var _constant = __webpack_require__(166);

var _scroll = __webpack_require__(89);

var _createNamespace = (0, _utils.createNamespace)('index-anchor'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _relation.ChildrenMixin)('vanIndexBar', {
    indexKey: 'childrenIndex'
  })],
  props: {
    index: [Number, String]
  },
  data: function data() {
    return {
      top: 0,
      left: null,
      rect: {
        top: 0,
        height: 0
      },
      width: null,
      active: false
    };
  },
  computed: {
    sticky: function sticky() {
      return this.active && this.parent.sticky;
    },
    anchorStyle: function anchorStyle() {
      if (this.sticky) {
        return {
          zIndex: "" + this.parent.zIndex,
          left: this.left ? this.left + "px" : null,
          width: this.width ? this.width + "px" : null,
          transform: "translate3d(0, " + this.top + "px, 0)",
          color: this.parent.highlightColor
        };
      }
    }
  },
  mounted: function mounted() {
    var rect = this.$el.getBoundingClientRect();
    this.rect.height = rect.height;
  },
  methods: {
    scrollIntoView: function scrollIntoView() {
      this.$el.scrollIntoView();
    },
    getRect: function getRect(scroller, scrollerRect) {
      var el = this.$el;
      var elRect = el.getBoundingClientRect();
      this.rect.height = elRect.height;

      if (scroller === window || scroller === document.body) {
        this.rect.top = elRect.top + (0, _scroll.getRootScrollTop)();
      } else {
        this.rect.top = elRect.top + (0, _scroll.getScrollTop)(scroller) - scrollerRect.top;
      }

      return this.rect;
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    var sticky = this.sticky;
    return h("div", {
      "style": {
        height: sticky ? this.rect.height + "px" : null
      }
    }, [h("div", {
      "style": this.anchorStyle,
      "class": [bem({
        sticky: sticky
      }), (_ref = {}, _ref[_constant.BORDER_BOTTOM] = sticky, _ref)]
    }, [this.slots('default') || this.index])]);
  }
});

exports.default = _default;__webpack_require__(26);
__webpack_require__(1971);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _style = __webpack_require__(200);

var _event = __webpack_require__(59);

var _scroll = __webpack_require__(89);

var _touch = __webpack_require__(103);

var _relation = __webpack_require__(73);

var _bindEvent = __webpack_require__(102);

// Utils
// Mixins
function genAlphabet() {
  var indexList = [];
  var charCodeOfA = 'A'.charCodeAt(0);

  for (var i = 0; i < 26; i++) {
    indexList.push(String.fromCharCode(charCodeOfA + i));
  }

  return indexList;
}

var _createNamespace = (0, _utils.createNamespace)('index-bar'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [_touch.TouchMixin, (0, _relation.ParentMixin)('vanIndexBar'), (0, _bindEvent.BindEventMixin)(function (bind) {
    if (!this.scroller) {
      this.scroller = (0, _scroll.getScroller)(this.$el);
    }

    bind(this.scroller, 'scroll', this.onScroll);
  })],
  props: {
    zIndex: [Number, String],
    highlightColor: String,
    sticky: {
      type: Boolean,
      default: true
    },
    stickyOffsetTop: {
      type: Number,
      default: 0
    },
    indexList: {
      type: Array,
      default: genAlphabet
    }
  },
  data: function data() {
    return {
      activeAnchorIndex: null
    };
  },
  computed: {
    sidebarStyle: function sidebarStyle() {
      if ((0, _utils.isDef)(this.zIndex)) {
        return {
          zIndex: this.zIndex + 1
        };
      }
    },
    highlightStyle: function highlightStyle() {
      var highlightColor = this.highlightColor;

      if (highlightColor) {
        return {
          color: highlightColor
        };
      }
    }
  },
  watch: {
    indexList: function indexList() {
      this.$nextTick(this.onScroll);
    },
    activeAnchorIndex: function activeAnchorIndex(value) {
      if (value) {
        this.$emit('change', value);
      }
    }
  },
  methods: {
    onScroll: function onScroll() {
      var _this = this;

      if ((0, _style.isHidden)(this.$el)) {
        return;
      }

      var scrollTop = (0, _scroll.getScrollTop)(this.scroller);
      var scrollerRect = this.getScrollerRect();
      var rects = this.children.map(function (item) {
        return item.getRect(_this.scroller, scrollerRect);
      });
      var active = this.getActiveAnchorIndex(scrollTop, rects);
      this.activeAnchorIndex = this.indexList[active];

      if (this.sticky) {
        this.children.forEach(function (item, index) {
          if (index === active || index === active - 1) {
            var rect = item.$el.getBoundingClientRect();
            item.left = rect.left;
            item.width = rect.width;
          } else {
            item.left = null;
            item.width = null;
          }

          if (index === active) {
            item.active = true;
            item.top = Math.max(_this.stickyOffsetTop, rects[index].top - scrollTop) + scrollerRect.top;
          } else if (index === active - 1) {
            var activeItemTop = rects[active].top - scrollTop;
            item.active = activeItemTop > 0;
            item.top = activeItemTop + scrollerRect.top - rects[index].height;
          } else {
            item.active = false;
          }
        });
      }
    },
    getScrollerRect: function getScrollerRect() {
      if (this.scroller.getBoundingClientRect) {
        return this.scroller.getBoundingClientRect();
      }

      return {
        top: 0,
        left: 0
      };
    },
    getActiveAnchorIndex: function getActiveAnchorIndex(scrollTop, rects) {
      for (var i = this.children.length - 1; i >= 0; i--) {
        var prevHeight = i > 0 ? rects[i - 1].height : 0;
        var reachTop = this.sticky ? prevHeight + this.stickyOffsetTop : 0;

        if (scrollTop + reachTop >= rects[i].top) {
          return i;
        }
      }

      return -1;
    },
    onClick: function onClick(event) {
      this.scrollToElement(event.target);
    },
    onTouchMove: function onTouchMove(event) {
      this.touchMove(event);

      if (this.direction === 'vertical') {
        (0, _event.preventDefault)(event);
        var _event$touches$ = event.touches[0],
            clientX = _event$touches$.clientX,
            clientY = _event$touches$.clientY;
        var target = document.elementFromPoint(clientX, clientY);

        if (target) {
          var index = target.dataset.index;
          /* istanbul ignore else */

          if (this.touchActiveIndex !== index) {
            this.touchActiveIndex = index;
            this.scrollToElement(target);
          }
        }
      }
    },
    scrollTo: function scrollTo(index) {
      var match = this.children.filter(function (item) {
        return String(item.index) === index;
      });

      if (match[0]) {
        match[0].scrollIntoView();

        if (this.sticky && this.stickyOffsetTop) {
          (0, _scroll.setRootScrollTop)((0, _scroll.getRootScrollTop)() - this.stickyOffsetTop);
        }

        this.$emit('select', match[0].index);
      }
    },
    scrollToElement: function scrollToElement(element) {
      var index = element.dataset.index;
      this.scrollTo(index);
    },
    onTouchEnd: function onTouchEnd() {
      this.active = null;
    }
  },
  render: function render() {
    var _this2 = this;

    var h = arguments[0];
    var Indexes = this.indexList.map(function (index) {
      var active = index === _this2.activeAnchorIndex;
      return h("span", {
        "class": bem('index', {
          active: active
        }),
        "style": active ? _this2.highlightStyle : null,
        "attrs": {
          "data-index": index
        }
      }, [index]);
    });
    return h("div", {
      "class": bem()
    }, [h("div", {
      "class": bem('sidebar'),
      "style": this.sidebarStyle,
      "on": {
        "click": this.onClick,
        "touchstart": this.touchStart,
        "touchmove": this.onTouchMove,
        "touchend": this.onTouchEnd,
        "touchcancel": this.onTouchEnd
      }
    }, [Indexes]), this.slots('default')]);
  }
});

exports.default = _default;__webpack_require__(26);
__webpack_require__(1973);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(636);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_33bb07d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1235);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3358)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-33bb07d6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_33bb07d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_33bb07d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3359);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e810638a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".main[data-v-33bb07d6]{background-color:#f5f5f5;overflow:hidden}.search[data-v-33bb07d6]{padding-top:0}.ad[data-v-33bb07d6]{padding:0 .6rem;overflow:hidden}.ad .ad-container[data-v-33bb07d6]{margin-top:2.95rem;margin-bottom:1.2rem}.question-entrance[data-v-33bb07d6]{margin:.6rem;text-align:center;color:#177afa;font-size:.75rem}.question-entrance span[data-v-33bb07d6]{font-size:.8rem}.index-list .panel[data-v-33bb07d6]{background-color:#fff;border-radius:.4rem;margin:0 .6rem}.index-list .panel li[data-v-33bb07d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.03rem;line-height:1}.index-list .panel li img[data-v-33bb07d6]{display:block;width:1.35rem;height:1.35rem;margin:0 .72rem}.index-list .panel li span[data-v-33bb07d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;border-bottom:1px solid #f5f5f5;font-size:.9rem;color:#333;font-weight:400}.panel-container[data-v-33bb07d6]{position:relative;padding:.6rem;background-color:#f5f5f5}.panel-container h2[data-v-33bb07d6]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-33bb07d6]{padding:.6rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-33bb07d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-33bb07d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-33bb07d6]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-33bb07d6]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-33bb07d6]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-33bb07d6]{display:inline-block;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-33bb07d6]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-33bb07d6]{display:block;margin-top:.25rem;font-size:.8rem;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(138);
var _indexAnchor = _interopRequireDefault(__webpack_require__(139));
__webpack_require__(140);
var _indexBar = _interopRequireDefault(__webpack_require__(141));
var _vant = __webpack_require__(12);
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
var _signType = __webpack_require__(108);
var _card = _interopRequireDefault(__webpack_require__(117));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _indexBar.default.name, _indexBar.default), _indexAnchor.default.name, _indexAnchor.default), "search", _Search.default), "card", _card.default), "signAd", _signAd.default),
  data: function data() {
    return {
      spname: '',
      pageType: this.$route.params.pageType,
      placeholder: '请输入关键词，搜电路图',
      brand: [],
      indexList: [],
      vehicleList: [],
      signType: null
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    var _this = this;
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this.shareConfig();
        });
      }, 300);
    }
    this.signType = (0, _signType.signType)(this.$route.params.pageType);
    this.firstVehicleList();
    this.getVehicleList();
  },
  mounted: function mounted() {
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
  },
  methods: {
    /**
     * 获取第一层车辆信息列表
     */
    firstVehicleList: function firstVehicleList() {
      var _this2 = this;
      var params = {
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid
      };
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, params, function (data) {
        _this2.brand = data;
        _this2.spname = data.spname;
      }, function () {}, this, false);
    },
    /**
     * 获取第一层车辆字母排序列表
     */
    getVehicleList: function getVehicleList() {
      var _this3 = this;
      var params = {
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_LIST_SORT, params, function (data) {
        _this3.indexList = data.letterList;
        _this3.vehicleList = data.vehicleLetterVos;
      }, function () {}, this, false);
    },
    openBrand: function openBrand(item) {
      var params = this.$route.params;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item, '');
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'vehicleBrand',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicleBrand/").concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/vehicleBrand/".concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.params.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item, url) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: url
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vehicle-page"},[_c('card',{attrs:{"cardcontent":{}}}),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType}})],1),_vm._v(" "),_c('div',{staticClass:"panel-container"},[_c('h2',[_vm._v("快捷查找")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.brand.vehicleDictionaryList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openBrand(item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])}),0)])]),_vm._v(" "),_c('van-index-bar',{attrs:{"index-list":_vm.indexList,"highlight-color":"#177afa"}},_vm._l((_vm.vehicleList),function(item,index){return _c('div',{key:index,staticClass:"index-list"},[_c('van-index-anchor',{attrs:{"index":item.index}}),_vm._v(" "),_c('ul',{staticClass:"panel"},_vm._l((item.vehicleDictionaryVoList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.openBrand(item)}}},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":"icon"}}),_c('span',[_vm._v(_vm._s(item.pathName))])])}),0)],1)}),0),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)],1)],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(637);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1b422c60_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1237);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3360)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1b422c60"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1b422c60_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1b422c60_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vehicleBrand_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3361);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5a8f6df0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".brand-page[data-v-1b422c60]{background-color:#f5f5f5}.head-list[data-v-1b422c60]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff;border-bottom:.03rem solid #eee}.head-list li[data-v-1b422c60]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li:last-child i[data-v-1b422c60],.head-list li:nth-last-child(2) i[data-v-1b422c60]{display:none}.head-list li span[data-v-1b422c60]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list li i[data-v-1b422c60]{margin:0 .2rem;font-weight:600;font-size:.9rem}.head-list .lr[data-v-1b422c60]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.head-list em[data-v-1b422c60]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.main[data-v-1b422c60]{width:100%;background-color:#f5f5f5}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _brandNav = _interopRequireDefault(__webpack_require__(3362));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    brandNav: _brandNav.default
  },
  data: function data() {
    return {
      pathNo: this.$route.params.pathNo,
      spid: this.$route.params.spid,
      headList: [],
      // 顶部导航
      pathInfo: {},
      dataNumType: 0
    };
  },
  mounted: function mounted() {
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
  },
  methods: {
    /**
     * 获取顶部导航
     * @param {Array} cont 导航信息
     */
    getHeadList: function getHeadList(cont) {
      this.headList = cont;
      this.pathInfo = cont[cont.length - 1];
    },
    getdataNumType: function getdataNumType(v) {
      this.dataNumType = v;
    },
    /**
     * 顶部导航
     * @param {Number} index 导航索引
     */
    toggleNav: function toggleNav(item, index) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.params.moudle
      });
      if (index > 0 && index === this.headList.length - 1) {
        this.show = true;
      } else {
        if (this._Util.isApp()) {
          api.closeWin();
        } else {
          this.$router.go(-1);
        }
      }
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo() {
      var _params = this.$route.params;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(this.pathInfo.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(this.pathInfo.pathNo)
        });
      }
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: ''
      });
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(638);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c532b44c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1236);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3363)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-c532b44c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c532b44c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_c532b44c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandNav_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3364);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("43230f96", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-popup[data-v-c532b44c]{background-color:transparent}.brand-list-components[data-v-c532b44c]{position:relative;width:100%}.shadow-bg[data-v-c532b44c]{position:absolute;left:0;top:1.2rem;width:100%;height:4.55rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.nav[data-v-c532b44c]{position:relative;padding:.8rem .6rem 1.35rem;white-space:nowrap;overflow:hidden;background-color:#fff}.nav .nav-list[data-v-c532b44c]{line-height:1;display:inline-block;padding:0 .6rem}.nav span[data-v-c532b44c]{display:inline-block;padding:.46rem 1rem;margin-right:.6rem;color:#333;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;line-height:1;background-color:#f5f5f5;border-radius:.86rem}.nav span.active[data-v-c532b44c]{background-color:#177afa;color:#fff}.nav span[data-v-c532b44c]:last-child{margin-right:0}.brand-list[data-v-c532b44c]{margin-top:-.55rem;padding:.6rem;position:relative;z-index:2;border-radius:.6rem .6rem 0 0;background-color:#f5f5f5}.brand-list .brand-title[data-v-c532b44c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.brand-list .brand-title .lf[data-v-c532b44c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;margin-bottom:.6rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.brand-list .brand-title .lr[data-v-c532b44c]{height:1rem;margin-bottom:.65rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;line-height:1rem}.brand-list .brand-title .lr em[data-v-c532b44c]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.brand-list .brand-inner li[data-v-c532b44c]{height:3.6rem;padding:0 .6rem;background-color:#fff;border-radius:.4rem;margin-bottom:.6rem}.brand-list .brand-inner .pic[data-v-c532b44c],.brand-list .brand-inner li[data-v-c532b44c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.brand-list .brand-inner .pic[data-v-c532b44c]{width:2.4rem;height:2.4rem;padding:.3rem;margin-right:.6rem;border:1px solid #e6e6e6;border-radius:.2rem;overflow:hidden}.brand-list .brand-inner .pic img[data-v-c532b44c]{width:100%;vertical-align:top}.brand-list .brand-inner .info[data-v-c532b44c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.brand-list .brand-inner .info p[data-v-c532b44c]{line-height:1.25rem;font-size:.9rem;color:#333;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.brand-list .brand-inner .info span[data-v-c532b44c]{line-height:1rem;font-size:.7rem;color:#999;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.brand-list .brand-inner .arrow-r[data-v-c532b44c]{width:.5rem;height:.5rem;margin-left:.6rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.material-null[data-v-c532b44c]{position:relative;z-index:2;margin-top:3.35rem;text-align:center}.material-null .tips[data-v-c532b44c]{margin-bottom:2rem}.material-null .tips img[data-v-c532b44c]{width:3.7rem}.material-null .tips p[data-v-c532b44c]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-c532b44c]{width:13.75rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.btn_2[data-v-c532b44c]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-c532b44c]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container[data-v-c532b44c]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-c532b44c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-c532b44c]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-c532b44c]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-c532b44c]{height:90%;overflow-y:auto}.pop-container .content-container .content-title[data-v-c532b44c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-title .lf[data-v-c532b44c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.pop-container .content-container .content-title .lr[data-v-c532b44c]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.pop-container .content-container .content-title em[data-v-c532b44c]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .content-container .content-list[data-v-c532b44c]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-c532b44c]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;height:2.2rem;padding:0 .6rem;margin-bottom:.6rem;background-color:#f5f5f5;border-radius:.2rem}.pop-container .content-container .content-list li span[data-v-c532b44c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;line-height:1;margin:0;font-size:.8rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container .content-list li em[data-v-c532b44c]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .bottom-btn[data-v-c532b44c]{padding:1.2rem 0;text-align:center;color:#177afa;font-size:.75rem}.pop-container .foot-bar[data-v-c532b44c]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .btn[data-v-c532b44c]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _popup.default.name, _popup.default),
  props: {
    // eslint-disable-next-line vue/require-default-prop
    pathNo: {
      type: String
    },
    // eslint-disable-next-line vue/require-default-prop
    spid: {
      type: String
    }
  },
  data: function data() {
    return {
      spname: '',
      headList: [],
      activeIndex: 0,
      transverseList: [],
      // 二级
      portraitList: [],
      // 三级
      show: false,
      path3: 0,
      // 三级是否有资料
      vehicleDictionaryVoList: [],
      // 车型车系
      typeIndex: null,
      showNullTip: false,
      parentPathName: '',
      dataNumType: 0,
      pathInfo: {}
    };
  },
  created: function created() {
    var _this = this;
    this.getBrandList();
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this.shareConfig();
        });
      }, 300);
    }
  },
  mounted: function mounted() {
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
          this.spname = _dictionary2.default[key];
        }
      }
    }
  },
  methods: {
    /**
     * 获取二三级车辆字典
     * @param {Object} item 车辆信息
     */
    getBrandList: function getBrandList(item) {
      var _this2 = this;
      var params = {
        spid: this.spid,
        pathNo: this.pathNo,
        subsetPathNo: item && item.pathNo || '',
        moudle: this.$route.params.moudle
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_SUB_LEVE_VEHICLE_LIST, params, function (data) {
        _this2.transverseList = [];
        if (data.transverseList && data.transverseList.length > 0) {
          data.transverseList.forEach(function (item) {
            _this2.transverseList.push({
              pathNo: item.pathNo,
              pathName: item.pathName
            });
          });
        }
        _this2.transverseList.unshift({
          pathNo: '',
          pathName: '全部'
        });
        _this2.portraitList = data.transverseList || [];
        if (_this2.portraitList.length === 0) {
          _this2.showNullTip = true;
        }
        _this2.pathInfo = {
          pathNo: data.pathNo,
          pathName: data.pathName
        };
        _this2.headList = data.headList;
        _this2.$emit('headList', data.headList);
        _this2.$emit('dataNumType', data.dataNumType);
      }, function () {}, this, false);
    },
    /**
     * 二级菜单
     * @param {Object} item 品牌信息
     * @param {Number} index 索引
     */
    toggleBrandList: function toggleBrandList(item, index) {
      this.activeIndex = index;
      this.clickVehicledictionary(item);
      this.getBrandList(item);
    },
    /**
     * @param {Object} item 车型信息
     */
    selectBrand: function selectBrand(item) {
      var _this3 = this;
      this.clickVehicledictionary(item);
      var params = {
        pathNo: item.pathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        moudle: this.$route.params.moudle
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        // 是否有车型车系
        _this3.path3 = data;
        _this3.parentPathName = data.pathName;
        if (!data.vehicleDictionaryVoList || data.vehicleDictionaryVoList && data.vehicleDictionaryVoList.length > 0) {
          _this3.show = true;
          _this3.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
        } else {
          var _params = _this3.$route.params;
          if (_this3._Util.isApp()) {
            _this3.removeEvent();
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'vehicleMaterial',
                url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicleMaterial/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
              }
            });
          } else {
            _this3.$router.push({
              path: "/v2/library/circuitDiagram2/vehicleMaterial/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
            });
          }
        }
      }, function () {}, this, false);
    },
    selectType: function selectType(item, index) {
      this.typeIndex = this.typeIndex === index ? null : index;
      var _params = this.$route.params;
      this.show = false;
      this.clickVehicledictionary(item);
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'vehicleMaterial',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicleMaterial/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo, "?parentPathNo=").concat(item.parentPathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/vehicleMaterial/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo, "?parentPathNo=").concat(item.parentPathNo)
        });
      }
    },
    closePopup: function closePopup() {
      this.show = false;
      this.typeIndex = null;
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _params = this.$route.params;
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 找不到资料
     */
    getMaterial: function getMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData1: function reserveData1() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue || '',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"brand-list-components"},[(_vm.transverseList.length > 1)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"nav",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"nav-list"},_vm._l((_vm.transverseList),function(item,index){return _c('span',{key:index,staticClass:"nav-item",class:{'active': _vm.activeIndex === index},on:{"click":function($event){return _vm.toggleBrandList(item, index)}}},[_vm._v(_vm._s(item.pathName))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"brand-list"},_vm._l((_vm.portraitList),function(item,index){return _c('div',{key:index},[(item.sonVehicleDictionarys)?_c('div',{staticClass:"brand-title"},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(item.pathName))]),(item.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(item)}}},[_vm._v(_vm._s(item.pathName)+" 通用资料"),_c('em')]):_vm._e()]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"brand-inner"},_vm._l((item.sonVehicleDictionarys),function(_item,i){return _c('li',{key:i,on:{"click":function($event){return _vm.selectBrand(_item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":_item.pathOriginalImg,"alt":_item.pathName}})]),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',[_vm._v(_vm._s(_item.pathName))])]),_vm._v(" "),_c('span',{staticClass:"arrow-r"})])}),0)])}),0),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v("暂时没有 "+_vm._s(_vm.pathInfo.pathName)+" 相关资料")])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.generalInfo()}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){return _vm.closePopup()}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[_c('div',{staticClass:"content-title"},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(_vm.parentPathName))]),(_vm.path3.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(_vm.path3)}}},[_vm._v(_vm._s(_vm.parentPathName)+"通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehicleDictionaryVoList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, index)}}},[_c('span',{class:{'active': _vm.typeIndex === index}},[_vm._v(_vm._s(item.pathName))]),_c('em')])}),0),_vm._v(" "),_c('div',{staticClass:"bottom-btn"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])])])],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"brand-page"},[_c('ul',{staticClass:"head-list"},[_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item, index)}}},[_c('span',[_vm._v(_vm._s(item.pathName))]),_c('i',[_vm._v("/")])])}),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo()}}},[_c('span',[_vm._v(_vm._s(_vm.pathInfo.pathName))]),_vm._v(" 通用资料"),_c('em')]):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"main"},[_c('brand-nav',{attrs:{"path-no":_vm.pathNo,"spid":_vm.spid},on:{"headList":_vm.getHeadList,"dataNumType":_vm.getdataNumType}})],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(639);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7de19a17_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1239);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3365)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7de19a17"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7de19a17_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7de19a17_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vehicleMaterial_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3366);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5c1a426b", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".head-list[data-v-7de19a17]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff;border-bottom:1px solid #f5f5f5;z-index:2}.head-list li[data-v-7de19a17]{line-height:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li:last-child i[data-v-7de19a17]{display:none}.head-list li span[data-v-7de19a17]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list li i[data-v-7de19a17]{margin:0 .2rem;font-weight:600;font-size:.9rem}.main[data-v-7de19a17],.material-page[data-v-7de19a17]{background-color:#f5f5f5}.main[data-v-7de19a17]{width:100%}.pop-container[data-v-7de19a17]{background-color:#fff;height:90%;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-7de19a17]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-7de19a17]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-7de19a17]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-7de19a17]{height:90%;overflow-y:auto}.pop-container .content-container .content-title[data-v-7de19a17]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-title .lf[data-v-7de19a17]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.pop-container .content-container .content-title .lr[data-v-7de19a17]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.pop-container .content-container .content-title em[data-v-7de19a17]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .content-container .content-list[data-v-7de19a17]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-7de19a17]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;height:2.2rem;padding:0 .6rem;margin-bottom:.6rem;background-color:#f5f5f5;border-radius:.2rem}.pop-container .content-container .content-list li span[data-v-7de19a17]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;line-height:1;margin:0;font-size:.8rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container .content-list li em[data-v-7de19a17]{width:10px;height:10px;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:6px 10px;background-position:50%}.pop-container .bottom-btn[data-v-7de19a17]{padding:1.2rem 0;text-align:center;color:#177afa;font-size:.75rem}.pop-container .foot-bar[data-v-7de19a17]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .btn[data-v-7de19a17]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _materialNav = _interopRequireDefault(__webpack_require__(3367));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    materialNav: _materialNav.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      pathNo: this.$route.params.pathNo,
      headList: [],
      // 顶部导航
      show: false,
      vehicleDictionaryVoList: [],
      typeIndex: null,
      DestroyIncomeStatistics: true,
      dataNumType: 0,
      pathInfo: {}
    };
  },
  mounted: function mounted() {
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
  },
  methods: {
    /**
     * 获取顶部导航
     * @param {Array} cont 导航信息
     */
    getHeadList: function getHeadList(cont) {
      this.headList = cont;
    },
    /**
     * 顶部导航
     * @param {Number} index 导航索引
     */
    toggleNav: function toggleNav(item, index) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.params.moudle
      });
      if (index === 3) {
        this.show = true;
        this.selectBrand();
      } else {
        if (this._Util.isApp()) {
          api.closeWin();
        } else {
          this.$router.go(-1);
        }
      }
    },
    /**
     * @param {Object} item 车型信息
     */
    selectBrand: function selectBrand() {
      var _this = this;
      var params = {
        pathNo: this.$route.query.parentPathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        moudle: this.$route.params.moudle
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this.headList = data.headList;
        if (data.parentDataNumType) {
          _this.dataNumType = data.parentDataNumType;
          _this.pathInfo = data.headList[data.headList.length - 2];
        } else {
          _this.dataNumType = data.dataNumType;
          _this.pathInfo = {
            pathName: data.pathName,
            pathNo: data.pathNo
          };
        }
        // 是否有车型车系
        if (data.vehicleDictionaryVoList || data.vehicleDictionaryVoList && data.vehicleDictionaryVoList.length > 0) {
          _this.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
        } else {
          var _params = _this.$route.params;
          if (_this._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'vehicleMaterial',
                url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicleMaterial/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(_this.pathInfo.pathNo)
              }
            });
          } else {
            _this.$router.push({
              path: "/v2/library/circuitDiagram2/vehicleMaterial/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(_this.pathInfo.pathNo)
            });
          }
        }
      }, function () {}, this, false);
    },
    selectType: function selectType(item, index) {
      var _this2 = this;
      this.typeIndex = this.typeIndex === index ? null : index;
      this.clickVehicledictionary({
        moudle: item.moudle,
        pathName: item.pathName
      });
      // eslint-disable-next-line no-unused-vars
      var _params = this.$route.params;
      this.pathNo = item.pathNo;
      this.DestroyIncomeStatistics = false;
      this.show = false;
      this.$nextTick(function () {
        _this2.DestroyIncomeStatistics = true;
      });
    },
    closePopup: function closePopup() {
      this.show = false;
      this.typeIndex = null;
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _params = this.$route.params;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 点击节点埋点
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(640);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a109216_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1238);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3368)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1a109216"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a109216_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a109216_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_materialNav_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3369);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4a7c52ac", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-1a109216]{position:fixed;top:2.75rem;bottom:0;height:auto}.m-bottom[data-v-1a109216]{line-height:2rem;text-align:center;color:#177afa;font-size:.75rem}.material-nav[data-v-1a109216]{position:relative;padding:.8rem .6rem;white-space:nowrap;overflow:hidden;background-color:#fff}.material-nav .nav-list[data-v-1a109216]{padding:0 .6rem}.material-nav .nav-list[data-v-1a109216],.material-nav span[data-v-1a109216]{line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.material-nav span[data-v-1a109216]{padding:.46rem 1rem;margin-right:.6rem;background-color:#f5f5f5;border-radius:.86rem}.material-nav span.active[data-v-1a109216]{background-color:#177afa;color:#fff}.material-nav span[data-v-1a109216]:last-child{margin-right:0}.material-null[data-v-1a109216]{position:relative;z-index:2;margin-top:3.35rem;text-align:center}.material-null .tips[data-v-1a109216]{margin-bottom:2rem}.material-null .tips img[data-v-1a109216]{width:3.7rem}.material-null .tips p[data-v-1a109216]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-1a109216]{width:13.75rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.btn_2[data-v-1a109216]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-1a109216]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.main-wrap[data-v-1a109216]{position:relative}.shadow-bg[data-v-1a109216]{position:absolute;left:0;top:0;width:100%;height:4.55rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.type-list[data-v-1a109216]{position:relative;z-index:1;padding:0 .6rem 1.35rem;background-color:#fff}.type-list .type-btn[data-v-1a109216]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:1rem;border:.03rem solid #ff3f3f;color:#ff3f3f;background-color:#fff6f6}.type-list .type-btn.active[data-v-1a109216]{color:#177afa;border-color:#177afa;background-color:#f1f7ff}.type-list .type-btn span[data-v-1a109216]{padding:0 .85rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:.8rem;font-weight:600}.type-scroll[data-v-1a109216]{position:relative;white-space:nowrap;overflow:hidden}.type-scroll .scroll-inner[data-v-1a109216]{display:inline-block}.type-scroll .scroll-inner .type-item[data-v-1a109216]{display:inline-block;padding:.46rem 1rem;margin:.1rem .6rem .1rem 0;line-height:1;border:.03rem solid #c9c9c9;border-radius:.86rem;color:#666;font-size:.8rem;font-weight:400}.type-scroll .scroll-inner .type-item.active[data-v-1a109216]{color:#177afa;border-color:#177afa}.type-scroll .scroll-inner .type-item[data-v-1a109216]:last-child{margin-right:0}.material-container[data-v-1a109216]{position:relative;z-index:2;padding:0 .6rem;margin-top:-.55rem;border-radius:.6rem .6rem 0 0;overflow:hidden;background-color:#f5f5f5}.material-container .type-name[data-v-1a109216]{line-height:1rem;margin:1rem 0 .4rem;font-size:.7rem;font-weight:400;color:#333}.material-container .type-name span[data-v-1a109216]{margin-right:.2rem;font-weight:600;font-size:inherit}.material-container .material-list[data-v-1a109216]{overflow:hidden}.material-container .material-list li[data-v-1a109216]{padding:.8rem .6rem;margin-bottom:.6rem;min-height:2.85rem;background:#fff;border-radius:.4rem}.material-container .material-list li .title[data-v-1a109216]{line-height:1.25rem;font-size:.9rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC;color:#333}.material-container .material-list li.have-read .title[data-v-1a109216]{color:#999}.material-container .material-list li span[data-v-1a109216]{margin-top:.2rem;height:1rem;line-height:1rem;font-size:.7rem;font-weight:400;color:#999}.list-bottom-box[data-v-1a109216]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-1a109216]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-1a109216]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-1a109216]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-1a109216]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-2px}.list-bottom-box .list-top .lr[data-v-1a109216]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-1a109216]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-1a109216]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.pop-container[data-v-1a109216]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-1a109216]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-1a109216]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-1a109216]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-1a109216]{height:79%;padding-bottom:.8rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-1a109216]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-1a109216]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-1a109216]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li .item[data-v-1a109216]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;padding:0 .6rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;text-align:center}.pop-container .content-container .content-list li .item.active[data-v-1a109216]{background-color:#e7f1ff}.pop-container .content-container .content-list li .item.active span[data-v-1a109216]{color:#177afa}.pop-container .content-container .content-list li .item span[data-v-1a109216]{font-size:.8rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .foot-bar[data-v-1a109216]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:1px solid #eee;padding:.35rem .85rem;background-color:#fff;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .reset-btn[data-v-1a109216]{width:6rem;line-height:1;padding:.65rem 0;border:.05rem solid #177afa;border-radius:.3rem;margin-right:.8rem;text-align:center;color:#177afa;font-size:.9rem}.pop-container .foot-bar .filter-btn[data-v-1a109216]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  props: {
    pathNo: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      spname: '',
      folderid: null,
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.subVehicleAndDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      emissionPhaseCode: '',
      standardActiveIndex: 0,
      standardActiveName: '全部',
      fileTypeList: [],
      // 资料类型
      fileTypeIds: [],
      vehiclePartList: [],
      // 部件模块
      partTypeIds: [],
      filterTypeName: '',
      filterNum: null,
      fileTypeIdsTemp: [],
      partTypeIdsTemp: [],
      emissionPhaseList: [],
      // 排放标准
      materialList: [],
      // 资料列表
      clickType: 1,
      headList: [],
      show: false,
      userInfo: {},
      showNullTip: false,
      showPathInfo: false,
      dataNumType: 0,
      pathInfo: {},
      haveReadDateId: [],
      dataCount: 0
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    this.getUserInfo();
  },
  mounted: function mounted() {
    this.getDataAndPosition();
  },
  methods: {
    /**
     * 获取用户状态信息
     */
    getUserInfo: function getUserInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
        _this.userInfo = data;
      }, function () {}, this, true);
    },
    /**
     * 获取子集车辆字典或者资料列表
     */
    subVehicleAndDataList: function subVehicleAndDataList(page) {
      var _this2 = this;
      var vehiclePartId = '';
      if (this.$route.query.vehiclePartId && this.$route.query.vehiclePartId !== 'undefined') {
        vehiclePartId = this.$route.query.vehiclePartId;
      } else {
        vehiclePartId = this.partTypeIds.join(',');
      }
      var params = {
        emissionPhase: this.emissionPhaseCode,
        pathNo: this.pathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        vehiclePart: vehiclePartId,
        fileType: this.fileTypeIds.join(','),
        moudle: this.$route.params.moudle,
        pageNum: page.num,
        pageSize: page.size
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        if (!_this2.spname) {
          _this2.spname = data.spname;
        }
        _this2.folderid = data.folderid;
        _this2.fileTypeList = data.fileTypeList || [];
        _this2.vehiclePartList = data.vehiclePartList || [];
        _this2.emissionPhaseList = data.emissionPhaseList || [];
        _this2.emissionPhaseList.unshift({
          code: '',
          name: '全部'
        });
        var dataList = data.shareList || [];
        if (page.num === 1) {
          _this2.materialList = [];
          _this2.showPathInfo = false;

          // 埋点相关
          var _path = '';
          if (data.headList && data.headList.length > 0) {
            data.headList.forEach(function (v) {
              _path += v.pathNo + '_';
            });
            _path = _path.substring(0, _path.length - 1);
          }
          _this2.dataCount = data.dataCount;
          if (page.firstFilter) {
            // 第一次进入结果页搜索埋点
            _this2.enterLibraryresultpage({
              path: _path,
              amount: data.dataCount
            });
          } else {
            // 筛选结果页埋点
            _this2.filterLibraryresult({
              path: _path,
              type: '资料类型-部件模块',
              name: _this2.filterTypeName,
              amount: data.dataCount
            });
          }
        }
        _this2.materialList = _this2.materialList.concat(dataList);
        if (_this2.materialList.length === 0) {
          _this2.showNullTip = true;
          _this2.mescroll.optUp.htmlNodata = '';
        } else {
          if (dataList.length < 10) {
            _this2.showPathInfo = true;
          }
        }
        if (data.shareList && data.shareList.length > 0 && _this2.haveReadDateId.length > 0) {
          data.shareList.forEach(function (item) {
            _this2.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this2.$set(item, 'haveRead', true);
              }
            });
          });
        }
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(dataList.length);
        });
        _this2.dataNumType = data.parentDataNumType;
        _this2.pathInfo = data.headList[data.headList.length - 2];
        _this2.headList = data.headList;
        _this2.$emit('headList', data.headList);
      }, function () {}, this, false);
    },
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    openPopup: function openPopup() {
      var _this3 = this;
      this.show = true;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        if (_this3.fileTypeIds.indexOf(item.id) !== -1) {
          _this3.$set(item, 'selected', true);
          _this3.fileTypeIdsTemp.push(item.id);
        } else {
          _this3.$set(item, 'selected', false);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (_this3.partTypeIds.indexOf(item.id) !== -1) {
          _this3.$set(item, 'selected', true);
          _this3.partTypeIdsTemp.push(item.id);
        } else {
          _this3.$set(item, 'selected', false);
        }
      });
      this.filterNum = this.fileTypeIds.length + this.partTypeIds.length;
    },
    /**
     * 选择排放标准
     */
    selecteMissionPhase: function selecteMissionPhase(item, index) {
      this.standardActiveIndex = index;
      this.standardActiveName = item.name;
      this.emissionPhaseCode = item.code;
      this.clickType = 1;
      this.subVehicleAndDataList({
        num: 1,
        size: 10
      });
    },
    selectType: function selectType(item, type) {
      this.$set(item, 'selected', !item.selected);
      var fileArrIndex = this.fileTypeIdsTemp.indexOf(item.id);
      var partArrIndex = this.partTypeIdsTemp.indexOf(item.id);
      if (type === 1) {
        // 资料类型
        if (fileArrIndex !== -1) {
          this.fileTypeIdsTemp.splice(fileArrIndex, 1);
        } else {
          this.fileTypeIdsTemp.push(item.id);
        }
      }
      if (type === 2) {
        // 部件模块
        if (partArrIndex !== -1) {
          this.partTypeIdsTemp.splice(partArrIndex, 1);
        } else {
          this.partTypeIdsTemp.push(item.id);
        }
      }
      this.filterNum = this.fileTypeIdsTemp.length + this.partTypeIdsTemp.length;
    },
    /**
     * 重置
     */
    resetFilterType: function resetFilterType() {
      var _this4 = this;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        _this4.$set(item, 'selected', false);
      });
      this.vehiclePartList.forEach(function (item) {
        _this4.$set(item, 'selected', false);
      });
      this.filterNum = null;
    },
    /**
     * 筛选
     */
    confrimFilterType: function confrimFilterType() {
      var _this5 = this;
      var arr1 = [];
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.fileTypeList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.name);
          _this5.fileTypeIds.push(item.id);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.nickname);
          _this5.partTypeIds.push(item.id);
        }
      });
      // this.filterNum = arr1.length
      this.filterTypeName = arr1.join('、');
      this.show = false;
      this.subVehicleAndDataList({
        num: 1,
        size: 10
      });
    },
    /**
     * 通用资料/查看通用资料
     */
    generalInfo: function generalInfo(item) {
      var _params = this.$route.params;
      this.show1 = false;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(item.pathNo, "?vehiclePartId=").concat(this.$route.query.vehiclePartId)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(item.pathNo, "?vehiclePartId=").concat(this.$route.query.vehiclePartId)
        });
      }
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 重新筛选
     */
    reserveData: function reserveData() {
      if (this.filterTypeName !== '') {
        this.resetFilterType();
        this.fileTypeIds = [];
        this.partTypeIds = [];
        this.filterTypeName = '';
        this.subVehicleAndDataList({
          num: 1,
          size: 10
        });
      } else {
        this.generalInfo(this.pathInfo);
      }
    },
    /**
     * 预约资料
     */
    reserveData1: function reserveData1() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        materialList: this.materialList,
        fileTypeList: this.fileTypeList,
        vehiclePartList: this.vehiclePartList,
        headList: this.headList,
        emissionPhaseList: this.emissionPhaseList,
        haveReadDateId: this.haveReadDateId,
        showPathInfo: this.showPathInfo,
        dataNumType: this.dataNumType,
        filterTypeName: this.filterTypeName,
        fileTypeIds: this.fileTypeIds,
        partTypeIds: this.partTypeIds,
        filterNum: this.filterNum,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.params.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.params.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.params.pageType);
        this.spname = position.spname;
        this.materialList = position.materialList;
        this.fileTypeList = position.fileTypeList;
        this.vehiclePartList = position.vehiclePartList;
        this.emissionPhaseList = position.emissionPhaseList;
        this.haveReadDateId = position.haveReadDateId;
        this.showPathInfo = position.showPathInfo;
        this.dataNumType = position.dataNumType;
        this.filterTypeName = position.filterTypeName;
        this.filterNum = position.filterNum;
        this.fileTypeIds = position.fileTypeIds;
        this.partTypeIds = position.partTypeIds;
        this.dataCount = position.dataCount;
        this.mescrollUp.page.num = position.pageNum;
        this.headList = position.headList;
        this.$emit('headList', position.headList);
        this.$nextTick(function () {
          setTimeout(function () {
            if (document.getElementById('savePosition')) {
              // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
              document.getElementById('savePosition').scrollTop = position.scrollTop;
            }
          }, 200);
        });
      } else {
        this.subVehicleAndDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index + 1);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userInfo.userStatus == 0 || that.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      // 不在平板打开的时候，才需要记录位置
      if (localStorage.getItem('isFromMft100') !== '1') {
        that.saveDataAndPosition();
      }
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: this.filterTypeName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: this.$route.params.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: this.clickType === 2 ? '资料类型' : '排放阶段',
        filter_name: "".concat(this.standardActiveName, "-").concat(this.filterTypeName),
        libraryfile_amount: item.amount
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '排放阶段-资料类型',
        filter_name: "".concat(this.standardActiveName, "-").concat(this.filterTypeName),
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"material-components"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[(_vm.emissionPhaseList.length > 1)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"material-nav"},[_c('div',{staticClass:"nav-list"},[_vm._v("\n        排放阶段："),_vm._l((_vm.emissionPhaseList),function(item,index){return _c('span',{key:index,class:{'active': _vm.standardActiveIndex === index},on:{"click":function($event){return _vm.selecteMissionPhase(item, index)}}},[_vm._v(_vm._s(item.name))])})],2)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main-wrap"},[(_vm.fileTypeList.length > 0)?_c('div',{staticClass:"type-list"},[_c('div',{staticClass:"type-btn",class:{'active': _vm.filterTypeName !== ''},on:{"click":function($event){return _vm.openPopup()}}},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '点击筛选资料' : '已选：' + _vm.filterTypeName))])])]):_vm._e(),_vm._v(" "),(_vm.materialList.length > 0)?_c('div',{staticClass:"material-container"},[_c('h4',{staticClass:"type-name"},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName || '全部'))]),_vm._v("资料:")]),_vm._v(" "),_c('ul',{staticClass:"material-list"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.dataName))])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料"),_c('em')])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('span',{staticClass:"list-btn",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e()]):_vm._e()]):_vm._e()])]),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '暂时没有资料哦，重新筛选试试' : ("暂时没有 " + (_vm.pathInfo.pathName) + " 相关资料")))])]),_vm._v(" "),(_vm.filterTypeName !== '')?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("重新筛选")]):(_vm.dataNumType === 1)?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("筛选资料")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[(_vm.fileTypeList && _vm.fileTypeList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("资料类型")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.fileTypeList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 1)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.name))])])])}),0),_vm._v(" "),(_vm.vehiclePartList && _vm.vehiclePartList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("部件模块")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehiclePartList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 2)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.nickname))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"reset-btn",on:{"click":function($event){return _vm.resetFilterType()}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"filter-btn",on:{"click":function($event){return _vm.confrimFilterType()}}},[_vm._v("筛选 "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.filterNum),expression:"filterNum"}]},[_vm._v("("+_vm._s(_vm.filterNum)+"个条件)")])])])])],1)}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"material-page"},[_c('ul',{staticClass:"head-list"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item, index)}}},[_c('span',[_vm._v(_vm._s(item.pathName))]),_c('i',[_vm._v("/")])])}),0),_vm._v(" "),_c('div',{staticClass:"main"},[(_vm.DestroyIncomeStatistics)?_c('material-nav',{attrs:{"path-no":_vm.pathNo},on:{"headList":_vm.getHeadList}}):_vm._e()],1),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){return _vm.closePopup()}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[_c('div',{staticClass:"content-title"},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(_vm.pathInfo.pathName))]),(_vm.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v(_vm._s(_vm.pathInfo.pathName)+" 通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehicleDictionaryVoList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, index)}}},[_c('span',{class:{'active': _vm.typeIndex === index}},[_vm._v(_vm._s(item.pathName))]),_c('em')])}),0),_vm._v(" "),_c('div',{staticClass:"bottom-btn"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(641);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_18c65e04_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1240);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3370)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-18c65e04"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_18c65e04_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_18c65e04_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3371);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("910e5666", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".circuit-diagram-page[data-v-18c65e04]{position:relative}.search[data-v-18c65e04]{position:relative;padding-top:0}.question-entrance[data-v-18c65e04]{margin:.6rem;text-align:center;color:#177afa;font-size:.75rem}.question-entrance span[data-v-18c65e04]{font-size:inherit}.ad[data-v-18c65e04]{margin-top:2.95rem;margin-bottom:.6rem;overflow:hidden}.main[data-v-18c65e04]{padding:.6rem;background-color:#f5f5f5;overflow:hidden}.panel-container[data-v-18c65e04]{position:relative;overflow:hidden}.panel-container h2[data-v-18c65e04]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-18c65e04]{padding:.8rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel.pd6[data-v-18c65e04]{padding:.6rem 0}.panel-container .panel .panel-title[data-v-18c65e04]{padding:0 .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title .picture[data-v-18c65e04]{display:inline-block;width:1.6rem;height:1.6rem;margin-right:.6rem;vertical-align:top;overflow:hidden}.panel-container .panel .panel-title .lf[data-v-18c65e04]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .lr[data-v-18c65e04]{height:1rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:1rem}.panel-container .panel .panel-title .lr em[data-v-18c65e04]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.panel-container .panel .panel-title .arrow-right[data-v-18c65e04]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-18c65e04]{width:100%;margin-top:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-18c65e04]{float:left;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-18c65e04]{display:inline-block;width:2.4rem;height:2.4rem;vertical-align:top;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-18c65e04]{max-width:100%}.panel-container .panel .list-ul .list-li .name[data-v-18c65e04]{display:block;line-height:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:.25rem;font-size:.8rem;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
var _signType = __webpack_require__(108);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    signAd: _signAd.default,
    search: _Search.default
  },
  data: function data() {
    return {
      spname: '',
      folderid: null,
      placeholder: '请输入关键词，搜工程机械电路图',
      dataList: [],
      signType: null // 广告位
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    var _this = this;
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this.shareConfig();
        });
      }, 300);
    }
    this.pageType = this.$route.params.pageType;
    this.firstVehicleList();
    this.signType = (0, _signType.signType)(this.$route.params.pageType);
  },
  mounted: function mounted() {
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
  },
  methods: {
    /**
     * 获取第一层车辆信息列表
     */
    firstVehicleList: function firstVehicleList() {
      var _this2 = this;
      var params = {
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid
      };
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, params, function (data) {
        _this2.folderid = data.folderid;
        _this2.spname = data.spname || document.title;
        _this2.dataList = data.vehicleDictionaryList;
      }, function () {}, this, false);
    },
    /**
     * 品牌/车系/资料
     * @param {Object} item 车辆品牌信息
     */
    openBrand: function openBrand(item) {
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      if (!item.sonVehicleDictionarys || item.sonVehicleDictionarys && item.sonVehicleDictionarys.length === 0) {
        this.clickVehicledictionary({
          pathNo: item.pathNo,
          pathName: item.pathName,
          moudle: item.moudle
        });
        var params = this.$route.params;
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'vehicleBrand' + item.pathNo,
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/engineeringMachinery/engineeringMaterial/").concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
            }
          });
        } else {
          this.$router.push({
            path: "/v2/library/circuitDiagram2/engineeringMachinery/engineeringMaterial/".concat(params.pageType, "/").concat(params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          });
        }
      }
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _params = this.$route.params;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: ''
      });
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: this.spname,
        vehicledictionary_path: _path,
        libraryfile_amount: ''
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"circuit-diagram-page"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType,"placeholder":_vm.placeholder}})],1),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"panel-container"},[_c('h2',[_vm._v("请选择车辆品牌")]),_vm._v(" "),_vm._l((_vm.dataList),function(item,index){return _c('div',{key:index,staticClass:"panel",class:{'pd6': item.sonVehicleDictionarys && item.sonVehicleDictionarys.length > 0}},[_c('div',{staticClass:"panel-title",on:{"click":function($event){return _vm.openBrand(item)}}},[_c('img',{staticClass:"picture",attrs:{"src":item.pathOriginalImg,"alt":item.pathName}}),_vm._v(" "),_c('span',{staticClass:"lf"},[_vm._v(_vm._s(item.pathName))]),_vm._v(" "),(item.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(item)}}},[_vm._v(_vm._s(item.pathName)+" 通用资料"),_c('em')]):_vm._e(),_vm._v(" "),(!item.sonVehicleDictionarys || item.sonVehicleDictionarys && item.sonVehicleDictionarys.length === 0)?_c('i',{staticClass:"arrow-right"}):_vm._e()]),_vm._v(" "),(item.sonVehicleDictionarys || item.sonVehicleDictionarys && item.sonVehicleDictionarys.length > 0)?_c('ul',{staticClass:"list-ul"},_vm._l((item.sonVehicleDictionarys),function(_item,i){return _c('li',{key:i,staticClass:"list-li",on:{"click":function($event){return _vm.openBrand(_item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":_item.pathOriginalImg,"alt":_item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(_item.pathName))])])}),0):_vm._e()])})],2),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(642);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66df6e59_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1241);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3372)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-66df6e59"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66df6e59_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66df6e59_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineeringMaterial_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3373);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4105bfc6", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-66df6e59]{position:fixed;top:0;bottom:0;height:auto}.brand-page[data-v-66df6e59]{background-color:#f5f5f5;font-family:Microsoft Yahei,Arial,sans-serif}.question-entrance[data-v-66df6e59]{margin:.6rem;text-align:center;color:#177afa;font-size:.75rem}.question-entrance span[data-v-66df6e59]{font-size:inherit}.m-bottom[data-v-66df6e59]{line-height:2rem;text-align:center;color:#177afa;font-size:.75rem}.main-wrap[data-v-66df6e59]{position:relative;margin-top:.6rem;border-radius:.6rem .6rem 0 0;overflow:hidden}.shadow-bg[data-v-66df6e59]{position:absolute;left:0;top:0;width:100%;height:4.55rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.type-list[data-v-66df6e59]{position:relative;z-index:2;padding:.6rem;border-bottom:.03rem solid #f5f5f5}.type-list .type-btn[data-v-66df6e59]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:1rem;border:.03rem solid #ff3f3f;color:#ff3f3f;background-color:#fff6f6}.type-list .type-btn.active[data-v-66df6e59]{color:#177afa;border-color:#177afa;background-color:#f1f7ff}.type-list .type-btn span[data-v-66df6e59]{padding:0 .85rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:.8rem;font-weight:600}.type-scroll[data-v-66df6e59]{position:relative;white-space:nowrap;overflow:hidden}.type-scroll .scroll-inner[data-v-66df6e59]{display:inline-block}.type-scroll .scroll-inner .type-item[data-v-66df6e59]{display:inline-block;padding:.46rem 1rem;margin-right:.6rem;line-height:1;border-radius:.86rem;background-color:#f5f5f5;color:#333;font-size:.8rem;font-weight:400}.type-scroll .scroll-inner .type-item.active[data-v-66df6e59]{color:#fff;background-color:#177afa}.type-scroll .scroll-inner .type-item[data-v-66df6e59]:last-child{margin-right:0}.btn_1[data-v-66df6e59]{width:11.25rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.head-list[data-v-66df6e59]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff}.head-list li[data-v-66df6e59]{line-height:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li:last-child i[data-v-66df6e59]{display:none}.head-list li span[data-v-66df6e59]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list li i[data-v-66df6e59]{margin:0 .2rem;font-weight:600;font-size:.9rem}.panel-list[data-v-66df6e59]{position:relative;padding:.6rem;z-index:1}.panel-list .panel-h[data-v-66df6e59]{margin-bottom:.4rem;font-size:.7rem}.panel-list .list-li[data-v-66df6e59]{padding:.8rem .6rem;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden;font-weight:400}.panel-list .list-li .name[data-v-66df6e59]{line-height:1.25rem;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}.panel-list .list-li .have-read[data-v-66df6e59]{color:#999}.panel-list .list-li .meta[data-v-66df6e59]{margin-top:.2rem;line-height:1rem;font-size:.7rem;color:#999}.panel-list .list-li .meta span[data-v-66df6e59]{margin-right:.5rem}.material-null[data-v-66df6e59]{margin-top:7.1rem;text-align:center}.material-null .tips[data-v-66df6e59]{margin-bottom:2rem}.material-null .tips img[data-v-66df6e59]{width:3.7rem}.material-null .tips p[data-v-66df6e59]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.list-bottom-box[data-v-66df6e59]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-66df6e59]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-66df6e59]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-66df6e59]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-66df6e59]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-.1rem}.list-bottom-box .list-top .lr[data-v-66df6e59]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-66df6e59]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-66df6e59]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.btn_2[data-v-66df6e59]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-66df6e59]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container[data-v-66df6e59]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-66df6e59]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-66df6e59]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-66df6e59]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-66df6e59]{height:80.5%;margin-bottom:6rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-66df6e59]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-66df6e59]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-66df6e59]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li .item[data-v-66df6e59]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;padding:0 .6rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;text-align:center}.pop-container .content-container .content-list li .item.active[data-v-66df6e59]{background-color:#e7f1ff}.pop-container .content-container .content-list li .item.active span[data-v-66df6e59]{color:#177afa}.pop-container .content-container .content-list li .item span[data-v-66df6e59]{font-size:.8rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .foot-bar[data-v-66df6e59]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .reset-btn[data-v-66df6e59]{width:6rem;line-height:1;padding:.65rem 0;border:.05rem solid #177afa;border-radius:.3rem;margin-right:.8rem;text-align:center;color:#177afa;font-size:.9rem}.pop-container .foot-bar .filter-btn[data-v-66df6e59]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _dictionary2 = _interopRequireDefault(__webpack_require__(92));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      spname: '',
      filterName: '',
      headList: [],
      // 顶部导航
      materialList: [],
      // 资料列表
      fileTypeList: [],
      // 资料类型
      fileTypeIds: [],
      vehiclePartList: [],
      // 部件模块
      partTypeIds: [],
      filterTypeName: '',
      filterNum: null,
      fileTypeIdsTemp: [],
      partTypeIdsTemp: [],
      show: false,
      brandText: '',
      pathNo: '',
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getMaterialDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      showNullTip: false,
      haveReadDateId: [],
      showPathInfo: false,
      dataNumType: 0,
      pathInfo: {},
      dataCount: 0,
      userInfo: {}
    };
  },
  watch: {
    spname: function spname(val) {
      if (val) {
        this.shareConfig();
      }
    }
  },
  created: function created() {
    this.getUserInfo();
    for (var key in _dictionary2.default) {
      // eslint-disable-next-line no-prototype-builtins
      if (_dictionary2.default.hasOwnProperty(key)) {
        if (this.$route.params.pageType === key) {
          document.title = _dictionary2.default[key];
        }
      }
    }
  },
  mounted: function mounted() {
    this.getDataAndPosition();
  },
  methods: {
    /**
     * 获取用户状态信息
     */
    getUserInfo: function getUserInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
        _this.userInfo = data;
      }, function () {}, this, true);
    },
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取资料列表
     */
    getMaterialDataList: function getMaterialDataList(page) {
      var _this2 = this;
      var params = {
        pathNo: this.$route.params.pathNo,
        pageType: this.$route.params.pageType,
        spid: this.$route.params.spid,
        vehiclePart: this.partTypeIds.join(','),
        fileType: this.fileTypeIds.join(','),
        moudle: this.$route.params.moudle,
        pageNum: page.num,
        pageSize: page.size
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this2.headList = data.headList;
        _this2.spname = data.spname || document.title;
        _this2.fileTypeList = data.fileTypeList || [];
        _this2.vehiclePartList = data.vehiclePartList || [];
        if (data.shareList && data.shareList.length > 0 && _this2.haveReadDateId.length > 0) {
          data.shareList.forEach(function (item) {
            _this2.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this2.$set(item, 'haveRead', true);
              }
            });
          });
        }
        var dataList = data.shareList || [];
        if (page.num === 1) {
          _this2.materialList = [];
          _this2.showPathInfo = false;
          _this2.dataCount = data.dataCount;
          // 埋点相关
          var _path = '';
          if (data.headList && data.headList.length > 0) {
            data.headList.forEach(function (v) {
              _path += v.pathNo + '_';
            });
            _path = _path.substring(0, _path.length - 1);
          }
          if (page.firstFilter) {
            // 第一次进入结果页搜索埋点
            _this2.enterLibraryresultpage({
              path: _path,
              amount: data.dataCount
            });
          } else {
            // 筛选结果页埋点
            _this2.filterLibraryresult({
              path: _path,
              type: '资料类型-部件模块',
              name: _this2.filterTypeName,
              amount: data.dataCount
            });
          }
        }
        _this2.materialList = _this2.materialList.concat(dataList);
        if (_this2.materialList.length === 0) {
          _this2.showNullTip = true;
        } else {
          if (dataList.length < 10) {
            _this2.showPathInfo = true;
          }
        }
        _this2.dataNumType = data.parentDataNumType;
        _this2.pathInfo = data.headList[data.headList.length - 2];
        _this2.$nextTick(function () {
          _this2.mescroll.endSuccess(dataList.length);
        }).catch(function (e) {
          _this2.mescroll.endErr();
        });
      }, function () {}, this, false);
    },
    toggleNav: function toggleNav(item) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.params.moudle
      });
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    selectType: function selectType(item, type) {
      this.$set(item, 'selected', !item.selected);
      var fileArrIndex = this.fileTypeIdsTemp.indexOf(item.id);
      var partArrIndex = this.partTypeIdsTemp.indexOf(item.id);
      if (type === 1) {
        // 资料类型
        if (fileArrIndex !== -1) {
          this.fileTypeIdsTemp.splice(fileArrIndex, 1);
        } else {
          this.fileTypeIdsTemp.push(item.id);
        }
      }
      if (type === 2) {
        // 部件模块
        if (partArrIndex !== -1) {
          this.partTypeIdsTemp.splice(partArrIndex, 1);
        } else {
          this.partTypeIdsTemp.push(item.id);
        }
      }
      this.filterNum = this.fileTypeIdsTemp.length + this.partTypeIdsTemp.length;
    },
    /**
     * 重置
     */
    resetFilterType: function resetFilterType() {
      var _this3 = this;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.vehiclePartList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.filterNum = null;
    },
    /**
     * 筛选
     */
    confrimFilterType: function confrimFilterType() {
      var _this4 = this;
      var arr1 = [];
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.fileTypeList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.name);
          _this4.fileTypeIds.push(item.id);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.nickname);
          _this4.partTypeIds.push(item.id);
        }
      });
      // this.filterNum = arr1.length
      this.filterTypeName = arr1.join('、');
      this.show = false;
      this.subVehicleAndDataList({
        num: 1,
        size: 10
      });
    },
    openPopup: function openPopup() {
      var _this5 = this;
      this.show = true;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        if (_this5.fileTypeIds.indexOf(item.id) !== -1) {
          _this5.$set(item, 'selected', true);
          _this5.fileTypeIdsTemp.push(item.id);
        } else {
          _this5.$set(item, 'selected', false);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (_this5.partTypeIds.indexOf(item.id) !== -1) {
          _this5.$set(item, 'selected', true);
          _this5.partTypeIdsTemp.push(item.id);
        } else {
          _this5.$set(item, 'selected', false);
        }
      });
      this.filterNum = this.fileTypeIds.length + this.partTypeIds.length;
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _params = this.$route.params;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(item.pathNo)
        });
      }
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 重新筛选/查看通用资料
     */
    reserveData: function reserveData() {
      if (this.filterTypeName !== '') {
        this.resetFilterType();
        this.fileTypeIds = [];
        this.partTypeIds = [];
        this.filterTypeName = '';
        this.subVehicleAndDataList({
          num: 1,
          size: 10
        });
      } else {
        this.generalInfo(this.pathInfo);
      }
    },
    /**
     * 预约资料
     */
    reserveData1: function reserveData1() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        pathNo: this.pathNo,
        dataTypeList: this.dataTypeList,
        dataTypeActive: this.dataTypeActive,
        materialList: this.materialList,
        headList: this.headList,
        brandText: this.brandText,
        showPathInfo: this.showPathInfo,
        dataNumType: this.dataNumType,
        pathInfo: this.pathInfo,
        haveReadDateId: this.haveReadDateId,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.params.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.params.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.params.pageType);
        this.spname = position.spname;
        this.pathNo = position.pathNo;
        this.headList = position.headList;
        this.brandText = position.brandText;
        this.showPathInfo = position.showPathInfo;
        this.dataNumType = position.dataNumType;
        this.pathInfo = position.pathInfo;
        this.haveReadDateId = position.haveReadDateId;
        this.materialList = position.materialList;
        this.dataCount = position.dataCount;
        this.mescrollUp.page.num = position.pageNum;
        this.$nextTick(function () {
          if (document.getElementById('savePosition')) {
            // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
            document.getElementById('savePosition').scrollTop = position.scrollTop;
          }
        });
      } else {
        this.getMaterialDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userInfo.userStatus == 0 || that.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item, url) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: url
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: item.type,
        filter_name: item.name,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: this.filterName || '全部',
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"brand-page"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('ul',{staticClass:"head-list"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item)}}},[_c('span',[_vm._v(_vm._s(item.pathName))]),_c('i',[_vm._v("/")])])}),0),_vm._v(" "),_c('div',{staticClass:"main-wrap"},[_c('div',{staticClass:"shadow-bg"}),_vm._v(" "),(_vm.fileTypeList.length > 0)?_c('div',{staticClass:"type-list"},[_c('div',{staticClass:"type-btn",class:{'active': _vm.filterTypeName !== ''},on:{"click":function($event){return _vm.openPopup()}}},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '点击筛选资料' : '已选：' + _vm.filterTypeName))])])]):_vm._e(),_vm._v(" "),(_vm.materialList.length > 0)?_c('div',{staticClass:"panel-list"},[_c('h2',{staticClass:"panel-h"},[_vm._v("全部资料")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"panel-inner"},[_c('p',{staticClass:"name",class:{'have-read': item.haveRead}},[_vm._v(_vm._s(item.dataName))])])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料"),_c('em')])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('span',{staticClass:"list-btn",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e()]):_vm._e()])]):_vm._e()]),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '暂时没有资料哦，重新筛选试试' : ("暂时没有 " + (_vm.pathInfo.pathName) + " 相关资料")))])]),_vm._v(" "),(_vm.filterTypeName !== '')?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("重新筛选")]):(_vm.dataNumType === 1)?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e()]),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("选择资料类型")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[(_vm.fileTypeList && _vm.fileTypeList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("资料类型")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.fileTypeList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 1)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.name))])])])}),0),_vm._v(" "),(_vm.vehiclePartList && _vm.vehiclePartList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("部件模块")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehiclePartList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 2)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.nickname))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"reset-btn",on:{"click":function($event){return _vm.resetFilterType()}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"filter-btn",on:{"click":function($event){return _vm.confrimFilterType()}}},[_vm._v("筛选 "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.filterNum),expression:"filterNum"}]},[_vm._v("("+_vm._s(_vm.filterNum)+"个条件)")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(643);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7b16a440_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1242);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3374)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7b16a440"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7b16a440_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7b16a440_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3375);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0fba0b69", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-7b16a440]{position:fixed;top:0;bottom:0;height:auto}.result-page[data-v-7b16a440]{background-color:#f5f5f5;font-family:Microsoft Yahei,Arial,sans-serif}.head-list[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff;border-bottom:1px solid #f5f5f5}.head-list li[data-v-7b16a440]{line-height:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li:last-child i[data-v-7b16a440]{display:none}.head-list li span[data-v-7b16a440]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list li i[data-v-7b16a440]{margin:0 .2rem;font-weight:600;font-size:.9rem}.material-nav[data-v-7b16a440]{position:relative;padding:.8rem .6rem;white-space:nowrap;overflow:hidden;background-color:#fff}.material-nav .nav-list[data-v-7b16a440]{padding:0 .6rem}.material-nav .nav-list[data-v-7b16a440],.material-nav span[data-v-7b16a440]{line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.material-nav span[data-v-7b16a440]{padding:.46rem 1rem;margin-right:.6rem;background-color:#f5f5f5;border-radius:.86rem}.material-nav span.active[data-v-7b16a440]{background-color:#177afa;color:#fff}.material-nav span[data-v-7b16a440]:last-child{margin-right:0}.type-list[data-v-7b16a440]{position:relative;z-index:1;padding:0 .6rem 1.35rem;background-color:#fff}.type-list .type-btn[data-v-7b16a440]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:1rem;border:.03rem solid #ff3f3f;color:#ff3f3f;background-color:#fff6f6}.type-list .type-btn.active[data-v-7b16a440]{color:#177afa;border-color:#177afa;background-color:#f1f7ff}.type-list .type-btn span[data-v-7b16a440]{padding:0 .85rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:.8rem;font-weight:600}.type-scroll[data-v-7b16a440]{position:relative;white-space:nowrap;overflow:hidden;background-color:#fff}.type-scroll .scroll-inner[data-v-7b16a440]{display:inline-block;margin:0 .6rem}.type-scroll .scroll-inner .type-item[data-v-7b16a440]{display:inline-block;padding:.46rem 1rem;margin:.1rem .6rem .1rem 0;line-height:1;border:.03rem solid #c9c9c9;border-radius:.86rem;color:#666;font-size:.8rem;font-weight:400}.type-scroll .scroll-inner .type-item.active[data-v-7b16a440]{color:#177afa;border-color:#177afa}.type-scroll .scroll-inner .type-item[data-v-7b16a440]:last-child{margin-right:0}.main-wrap[data-v-7b16a440]{position:relative;margin-top:-.55rem;z-index:2;border-radius:.6rem .6rem 0 0;background-color:#f5f5f5}.shadow-bg[data-v-7b16a440]{position:absolute;left:0;top:0;width:100%;height:4.55rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.panel-list[data-v-7b16a440]{position:relative;padding:.6rem;z-index:1}.panel-list .panel-title[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.4rem;margin-bottom:.6rem}.panel-list .panel-title .panel-h[data-v-7b16a440]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#ff3f3f;line-height:1.13rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.panel-list .panel-title .panel-h span[data-v-7b16a440]{margin-right:.2rem;font-size:.8rem}.panel-list .panel-title .lr[data-v-7b16a440]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.panel-list .panel-title em[data-v-7b16a440]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.panel-list .list-li[data-v-7b16a440]{padding:.8rem .6rem;margin-bottom:.4rem;background-color:#fff;border-radius:.4rem;overflow:hidden;font-weight:400}.panel-list .list-li .name[data-v-7b16a440]{line-height:25px;font-size:.9rem;font-family:PingFangSC-Regular,PingFang SC;color:#333}.panel-list .list-li.have-read .name[data-v-7b16a440]{color:#999}.list-bottom-box[data-v-7b16a440]{width:100%;background-color:#fff;margin-top:3rem;margin-bottom:1rem;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-7b16a440]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-7b16a440]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-7b16a440]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-top .lr[data-v-7b16a440]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-7b16a440]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;background:#177afa;border-radius:.3rem;color:#fff;font-size:.8rem}.pop-container[data-v-7b16a440]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-7b16a440]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-7b16a440]{position:absolute;right:0;padding:1rem .8rem;line-height:1;font-size:.7rem}.pop-container .content-container[data-v-7b16a440]{height:79%;padding-bottom:.8rem;margin-bottom:6rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-7b16a440]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .popup-type[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:1rem;margin-bottom:.8rem}.pop-container .content-container .popup-type .lf[data-v-7b16a440]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.pop-container .content-container .popup-type .lr[data-v-7b16a440]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.pop-container .content-container .popup-type em[data-v-7b16a440]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .content-container .content-list[data-v-7b16a440]{overflow:hidden}.pop-container .content-container .content-list li[data-v-7b16a440]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li .item[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;padding:0 .6rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;text-align:center}.pop-container .content-container .content-list li .item.active[data-v-7b16a440]{background-color:#e7f1ff}.pop-container .content-container .content-list li .item.active span[data-v-7b16a440]{color:#177afa}.pop-container .content-container .content-list li .item span[data-v-7b16a440]{font-size:.8rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container.popup-1[data-v-7b16a440]{height:90%;margin-bottom:0;padding:0 .6rem}.pop-container .content-container.popup-1 .content-list[data-v-7b16a440]{margin-right:-1.3334%}.pop-container .content-container.popup-1 .content-list li[data-v-7b16a440]{float:none;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;height:3.6rem;padding:0 .6rem;background-color:#f5f5f5;border-radius:.4rem}.pop-container .content-container.popup-1 .content-list li .pic[data-v-7b16a440]{display:inline-block;width:2.4rem;height:2.4rem;padding:.3rem;margin:0 .57rem 0 0;background-color:#fff;border:.03rem solid #e6e6e6}.pop-container .content-container.popup-1 .content-list li .pic img[data-v-7b16a440]{width:100%}.pop-container .content-container.popup-1 .content-list li .name[data-v-7b16a440]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;line-height:1;margin:0;font-size:.9rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container.popup-1 .content-list li em[data-v-7b16a440]{width:10px;height:10px;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:6px 10px;background-position:50%}.pop-container .content-container.popup-1 .content-list.grid li[data-v-7b16a440]{display:inline-block;width:32%;height:5.65rem;margin-right:1.3334%;margin-bottom:.3rem;padding:0;text-align:center;background-color:#fff;border:.03rem solid #e6e6e6;border-radius:.4rem;overflow:hidden;vertical-align:top}.pop-container .content-container.popup-1 .content-list.grid li .pic[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:4rem;width:auto;border:0;margin:0;padding:0;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.pop-container .content-container.popup-1 .content-list.grid li .pic img[data-v-7b16a440]{display:inline-block;width:auto;height:90%;vertical-align:bottom}.pop-container .content-container.popup-1 .content-list.grid li .name[data-v-7b16a440]{display:block;height:1.05rem;margin-top:.3rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:1.05rem;background-color:transparent;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pop-container .bottom-btn[data-v-7b16a440]{padding:1.2rem 0;text-align:center;color:#177afa;font-size:.75rem}.pop-container .bottom-btn span[data-v-7b16a440]{font-size:inherit}.pop-container .foot-bar[data-v-7b16a440]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.pop-container .foot-bar .reset-btn[data-v-7b16a440]{width:6rem;line-height:1;padding:.65rem 0;border:.05rem solid #177afa;border-radius:.3rem;margin-right:.8rem;text-align:center;color:#177afa;font-size:.9rem}.pop-container .foot-bar .filter-btn[data-v-7b16a440]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}.material-null[data-v-7b16a440]{position:relative;z-index:2;margin-top:2.75rem;text-align:center;overflow:hidden}.material-null .tips[data-v-7b16a440]{margin-top:5rem;margin-bottom:2rem}.material-null .tips img[data-v-7b16a440]{width:3.7rem}.material-null .tips p[data-v-7b16a440]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-7b16a440]{margin:0 auto;color:#fff;background-color:#177afa;border-radius:.3rem}.btn_1[data-v-7b16a440],.btn_2[data-v-7b16a440]{width:13.75rem;line-height:1;padding:.7rem 0;font-size:.8rem;font-weight:600;text-align:center}.btn_2[data-v-7b16a440]{margin:1rem auto 0;color:#177afa;border:.03rem solid #177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      spname: '',
      folderid: null,
      headList: [],
      // 顶部导航
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.subVehicleAndDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      emissionPhaseList: [],
      emissionPhaseActive: {
        index: 0,
        name: '全部',
        code: ''
      },
      fileTypeList: [],
      vehiclePartList: [],
      filterTypeName: '',
      fileTypeIds: [],
      partTypeIds: [],
      filterNum: null,
      fileTypeIdsTemp: [],
      partTypeIdsTemp: [],
      haveReadDateId: [],
      materialList: [],
      showNullTip: false,
      show: false,
      show1: false,
      levelList: [],
      // 分类资料
      levelName: '',
      pathInfo: {},
      showPathInfo: false,
      gridType: true,
      dataCount: 0,
      dataNumType: 0,
      userInfo: {}
    };
  },
  created: function created() {
    var spid = Number(this.$route.params.spid);
    if (spid === 4 || spid === 9 || spid === 14 || spid === 18 || spid === 19 || spid === 79) {
      this.gridType = false;
    }
  },
  mounted: function mounted() {
    document.getElementById('userScale').setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no');
    this.shareConfig();
    this.getDataAndPosition();
  },
  methods: {
    /**
     * 获取用户状态信息
     */
    getUserInfo: function getUserInfo() {
      var _this = this;
      this._Util.post(this._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
        _this.userInfo = data;
      }, function () {}, this, true);
    },
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    toggleNav: function toggleNav(item) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.params.moudle
      });
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    openPopup: function openPopup() {
      var _this2 = this;
      this.show = true;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        if (_this2.fileTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.fileTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (_this2.partTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.partTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.filterNum = this.fileTypeIds.length + this.partTypeIds.length;
    },
    selectType: function selectType(item, type) {
      this.$set(item, 'selected', !item.selected);
      var fileArrIndex = this.fileTypeIdsTemp.indexOf(item.id);
      var partArrIndex = this.partTypeIdsTemp.indexOf(item.id);
      if (type === 1) {
        // 资料类型
        if (fileArrIndex !== -1) {
          this.fileTypeIdsTemp.splice(fileArrIndex, 1);
        } else {
          this.fileTypeIdsTemp.push(item.id);
        }
      }
      if (type === 2) {
        // 部件模块
        if (partArrIndex !== -1) {
          this.partTypeIdsTemp.splice(partArrIndex, 1);
        } else {
          this.partTypeIdsTemp.push(item.id);
        }
      }
      this.filterNum = this.fileTypeIdsTemp.length + this.partTypeIdsTemp.length;
    },
    /**
     * 重置
     */
    resetFilterType: function resetFilterType() {
      var _this3 = this;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.vehiclePartList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.filterNum = null;
    },
    /**
     * 筛选
     */
    confrimFilterType: function confrimFilterType() {
      var _this4 = this;
      var arr1 = [];
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.fileTypeList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.name);
          _this4.fileTypeIds.push(item.id);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.nickname);
          _this4.partTypeIds.push(item.id);
        }
      });
      // this.filterNum = arr1.length
      this.filterTypeName = arr1.join('、');
      this.show = false;
      this.subVehicleAndDataList({
        num: 1,
        size: 10
      });
    },
    /**
     * 查看分类资料
     */
    viewCategory: function viewCategory() {
      var _this5 = this;
      this.clickSubclassdata();
      var spid = Number(this.$route.params.spid);
      if ((spid === 14 || spid === 18 || spid === 20 || spid === 79) && this.headList.length <= 1) {
        // 整车
        if (this._Util.isApp()) {
          api.closeWin();
        } else {
          this.$router.go(-1);
        }
        return;
      }
      var _pathNo = this.headList[this.headList.length - 1].pathNo;
      this.show1 = true;
      var params = {
        spid: spid,
        pathNo: _pathNo
      };
      this._Util.post(this._Api.POST_SUB_LEVE_VEHICLE_LIST, params, function (data) {
        _this5.pathInfo = {
          pathName: data.pathName,
          pathNo: data.pathNo
        };
        _this5.dataNumType = data.dataNumType;
        _this5.levelName = data.headList[data.headList.length - 1].pathName;
        _this5.levelList = data.transverseList;
      }, function () {}, this, false);
    },
    /**
     * 通用资料的节点
     */
    viewNode: function viewNode(item) {
      var _this6 = this;
      var vehiclePartId = '';
      if (this.$route.query.vehiclePartId && this.$route.query.vehiclePartId !== 'undefined') {
        vehiclePartId = this.$route.query.vehiclePartId;
      } else {
        vehiclePartId = this.partTypeIds.join(',');
      }
      var params = {
        emissionPhase: this.emissionPhaseActive.code,
        fileType: this.fileTypeIds.join(','),
        vehiclePart: vehiclePartId,
        pathNo: item.pathNo,
        pageType: this.$route.params.pageType,
        moudle: item.moudle,
        spid: this.$route.params.spid,
        pageNum: 1,
        pageSize: 10
      };
      this._Util.post(this._Api.POST_CURRENCY_DATA_LIST_NEW, params, function (data) {
        if (!data.vehicleDictionaryVoList || data.vehicleDictionaryVoList.length === 0) {
          _this6.show1 = false;
          var _params = _this6.$route.params;
          if (Number(_params.spid) === 3) {
            var queryParam = {
              spid: _this6.$route.params.spid,
              pageType: _this6.$route.params.pageType,
              moudle: item.moudle,
              pathNo: item.pathNo
            };
            if (_this6._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'dataLibFilterResult2.0' + new Date().getTime(),
                  url: "".concat(location.origin, "/v2/library/singlePageResult?").concat(_this6._Util.objectToQueryString(queryParam))
                }
              });
            } else {
              _this6.$router.push({
                name: 'singlePageResult',
                query: queryParam
              });
            }
          } else {
            if (_this6._Util.isApp()) {
              _this6.removeEvent();
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'vehicleMaterial' + new Date().getTime(),
                  url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicleMaterial/").concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo, "?parentPathNo=").concat(item.parentPathNo, "&vehiclePartId=").concat(_this6.$route.query.vehiclePartId)
                }
              });
            } else {
              _this6.$router.push({
                path: "/v2/library/circuitDiagram2/vehicleMaterial/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(item.moudle, "/").concat(item.pathNo, "?parentPathNo=").concat(item.parentPathNo, "&vehiclePartId=").concat(_this6.$route.query.vehiclePartId)
              });
            }
          }
        } else {
          _this6.pathInfo = {
            pathName: data.pathName,
            pathNo: data.pathNo
          };
          _this6.levelName = data.pathName;
          _this6.dataNumType = data.dataNumType;
          _this6.levelList = data.vehicleDictionaryVoList;
        }
      }, function () {}, this, false);
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var _this7 = this;
      var _params = this.$route.params;
      this.clickCommondata();
      this.show1 = false;
      this.$router.push({
        path: "/v2/library/circuitDiagram2/commonResult/".concat(_params.pageType, "/").concat(_params.spid, "/").concat(_params.moudle, "/").concat(item.pathNo)
      });
      // 初始化条件
      setTimeout(function () {
        _this7.emissionPhaseActive.index = 0;
        _this7.emissionPhaseActive.code = '';
        _this7.subVehicleAndDataList({
          num: 1,
          size: 10
        });
      }, 300);
      this.$nextTick(function () {
        // document.getElementById('savePosition').scrollTo(0, 0)
        document.getElementById('savePosition').scrollTop = 0;
      });
    },
    resetFilter: function resetFilter() {
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.filterTypeName = '';
      this.filterNum = null;
      this.subVehicleAndDataList({
        num: 1,
        size: 10
      });
    },
    /**
     * 获取资料列表
     */
    subVehicleAndDataList: function subVehicleAndDataList(page) {
      var _this8 = this;
      this.showNullTip = false;
      var vehiclePartId = '';
      if (this.$route.query.vehiclePartId && this.$route.query.vehiclePartId !== 'undefined') {
        vehiclePartId = this.$route.query.vehiclePartId;
      } else {
        vehiclePartId = this.partTypeIds.join(',');
      }
      var params = {
        emissionPhase: this.emissionPhaseActive.code,
        fileType: this.fileTypeIds.join(','),
        vehiclePart: vehiclePartId,
        pathNo: this.$route.params.pathNo,
        pageType: this.$route.params.pageType,
        moudle: this.$route.params.moudle,
        spid: this.$route.params.spid,
        pageNum: page.num,
        pageSize: page.size
      };
      this._Util.post(this._Api.POST_CURRENCY_DATA_LIST_NEW, params, function (data) {
        _this8.spname = data.spname;
        if (_this8.$route.query.pageTitle && _this8.$route.query.pageTitle !== 'undefined') {
          document.title = _this8.$route.query.pageTitle;
        } else {
          document.title = data.spname;
        }
        _this8.folderid = data.folderid;
        _this8.pathInfo = {
          pathName: data.pathName,
          pathNo: data.pathNo
        };
        if (data.shareList && data.shareList.length > 0 && _this8.haveReadDateId.length > 0) {
          data.shareList.forEach(function (item) {
            _this8.haveReadDateId.forEach(function (v) {
              if (v === item.dateId) {
                _this8.$set(item, 'haveRead', true);
              }
            });
          });
        }
        // 排放阶段
        _this8.emissionPhaseList = data.emissionPhaseList || [];
        _this8.emissionPhaseList.unshift({
          code: null,
          name: '全部'
        });
        var dataList = data.shareList || [];
        if (page.num === 1) {
          _this8.materialList = [];
          _this8.showPathInfo = false;

          // 埋点相关
          var _path = '';
          if (data.headList && data.headList.length > 0) {
            data.headList.forEach(function (v) {
              _path += v.pathNo + '_';
            });
            _path = _path.substring(0, _path.length - 1);
          }
          _this8.dataCount = data.dataCount;
          if (page.firstFilter) {
            // 第一次进入结果页搜索埋点
            _this8.enterLibraryresultpage({
              path: _path,
              amount: data.dataCount
            });
          } else {
            // 筛选结果页埋点
            _this8.filterLibraryresult({
              path: _path,
              name: _this8.filterTypeName,
              amount: data.dataCount
            });
          }
        }
        _this8.materialList = _this8.materialList.concat(dataList);
        if (_this8.materialList.length === 0) {
          _this8.showNullTip = true;
          _this8.mescroll.optUp.htmlNodata = '';
        } else {
          if (dataList.length < 10) {
            _this8.showPathInfo = true;
          }
        }
        _this8.headList = data.headList;
        // 资料类型，部件模块
        _this8.vehiclePartList = data.vehiclePartList || [];
        _this8.fileTypeList = data.fileTypeList || [];
        _this8.$nextTick(function () {
          _this8.mescroll.endSuccess(dataList.length);
        });
      }, function () {}, this, false);
    },
    /**
     * 选择排放标准
     */
    selecteMissionPhase: function selecteMissionPhase(item, index) {
      this.emissionPhaseActive = {
        index: index,
        name: item.name,
        code: item.code
      };
      this.mescrollUp.page.num = 1;
      this.subVehicleAndDataList({
        num: 1,
        size: 10
      });
    },
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index + 1);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.userInfo.userStatus == 0 || that.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(this.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        materialList: this.materialList,
        headList: this.headList,
        emissionPhaseList: this.emissionPhaseList,
        fileTypeIds: this.fileTypeIds,
        fileTypeList: this.fileTypeList,
        partTypeIds: this.partTypeIds,
        vehiclePartList: this.vehiclePartList,
        filterNum: this.filterNum,
        filterTypeName: this.filterTypeName,
        haveReadDateId: this.haveReadDateId,
        showPathInfo: this.showPathInfo,
        pathInfo: this.pathInfo,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.params.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.params.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.params.pageType);
        this.spname = position.spname;
        this.materialList = position.materialList;
        this.headList = position.headList;
        this.emissionPhaseList = position.emissionPhaseList;
        this.fileTypeIds = position.fileTypeIds;
        this.fileTypeList = position.fileTypeList;
        this.partTypeIds = position.partTypeIds;
        this.vehiclePartList = position.vehiclePartList;
        this.filterNum = position.filterNum;
        this.filterTypeName = position.filterTypeName;
        this.haveReadDateId = position.haveReadDateId;
        this.showPathInfo = position.showPathInfo;
        this.pathInfo = position.pathInfo;
        this.dataCount = position.dataCount;
        this.mescrollUp.page.num = position.pageNum;
        this.$nextTick(function () {
          // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
          document.getElementById('savePosition').scrollTop = position.scrollTop;
        });
      } else {
        this.subVehicleAndDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: this.spname,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: this.spname,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData: function reserveData() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.params.pageType, "-").concat(this.$route.params.pathNo, "-new");
      this.clickFeedbacklink({
        page: this.spname,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 点击节点埋点
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: this.spname,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: this.spname,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: this.spname,
        vehicledictionary_path: item.path,
        filter_type: '排放阶段-资料类型',
        filter_name: this.emissionPhaseActive.name + '-' + (this.filterTypeName || '全部'),
        libraryfile_amount: item.amount
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: this.spname,
        vehicledictionary_path: item.path,
        filter_type: '排放阶段-资料类型',
        filter_name: "".concat(this.emissionPhaseActive.name, "-").concat(this.filterTypeName),
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 查看分类资料埋点
     */
    clickSubclassdata: function clickSubclassdata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_subclassdata', {
        operation_page: this.spname,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: this.spname,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"result-page"},[_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('ul',{staticClass:"head-list"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item)}}},[_c('span',[_vm._v(_vm._s(item.pathName))]),_c('i',[_vm._v("/")])])}),0),_vm._v(" "),(_vm.emissionPhaseList.length > 1)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"material-nav"},[_c('div',{staticClass:"nav-list"},[_vm._v("\n        排放阶段："),_vm._l((_vm.emissionPhaseList),function(item,index){return _c('span',{key:index,class:{'active': _vm.emissionPhaseActive.index === index},on:{"click":function($event){return _vm.selecteMissionPhase(item, index)}}},[_vm._v(_vm._s(item.name))])})],2)]):_vm._e(),_vm._v(" "),(_vm.materialList.length > 0 && (_vm.fileTypeList.length > 1 || _vm.vehiclePartList.length > 1))?_c('div',{staticClass:"type-list"},[_c('div',{staticClass:"type-btn",class:{'active': _vm.filterTypeName !== ''},on:{"click":function($event){return _vm.openPopup()}}},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '点击筛选资料' : '已选：' + _vm.filterTypeName))])])]):_vm._e(),_vm._v(" "),(_vm.materialList.length > 0)?_c('div',{staticClass:"main-wrap"},[_c('div',{staticClass:"panel-list"},[_c('div',{staticClass:"panel-title"},[_c('h2',{staticClass:"panel-h"},[_c('span',[_vm._v(_vm._s(_vm.pathInfo.pathName))]),_vm._v(" 通用资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.viewCategory()}}},[_vm._v("查看分类资料"),_c('em')])]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,staticClass:"list-li",class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"panel-inner"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(item.dataName))])])])}),0)]),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("登记想要的资料"),_c('em')])]),_vm._v(" "),_c('span',{staticClass:"list-btn",on:{"click":function($event){return _vm.viewCategory()}}},[_vm._v("查看分类资料")])]):_vm._e()])]):_vm._e()]),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.viewCategory()}}},[_vm._v("查看分类资料")]),_vm._v(" "),(_vm.filterTypeName !== '')?_c('div',{staticClass:"btn_2",on:{"click":function($event){return _vm.resetFilter()}}},[_vm._v("重新筛选")]):_vm._e()]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[(_vm.fileTypeList && _vm.fileTypeList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("资料类型")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.fileTypeList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 1)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.name))])])])}),0),_vm._v(" "),(_vm.vehiclePartList && _vm.vehiclePartList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("部件模块")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehiclePartList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 2)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.nickname))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"reset-btn",on:{"click":function($event){return _vm.resetFilterType()}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"filter-btn",on:{"click":function($event){return _vm.confrimFilterType()}}},[_vm._v("筛选 "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.filterNum),expression:"filterNum"}]},[_vm._v("("+_vm._s(_vm.filterNum)+"个条件)")])])])]),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show1),callback:function ($$v) {_vm.show1=$$v},expression:"show1"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show1 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container popup-1"},[_c('div',{staticClass:"popup-type"},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(_vm.levelName))]),(_vm.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v(_vm._s(_vm.levelName)+" 通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),_c('ul',{staticClass:"content-list",class:{'grid': _vm.gridType}},_vm._l((_vm.levelList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.viewNode(item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))]),_vm._v(" "),_c('em')])}),0),_vm._v(" "),_c('div',{staticClass:"bottom-btn"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v("暂时没有通用资料")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(644);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_53b98054_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1243);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3376)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-53b98054"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_53b98054_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_53b98054_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3377);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("dbb50814", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".main[data-v-53b98054]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.main .search[data-v-53b98054]{padding-top:0}.panel-container[data-v-53b98054]{position:relative;padding:.6rem;background-color:#f5f5f5}.panel-container h2[data-v-53b98054]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-53b98054]{padding:.6rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-53b98054]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-53b98054]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-53b98054]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-53b98054]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-53b98054]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-53b98054]{display:inline-block;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-53b98054]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-53b98054]{display:block;margin-top:.25rem;font-size:.8rem;color:#333}.index-list .panel[data-v-53b98054]{background-color:#fff;border-radius:.4rem;margin:0 .6rem}.index-list .panel li[data-v-53b98054]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.03rem;line-height:1}.index-list .panel li img[data-v-53b98054]{display:block;width:1.35rem;height:1.35rem;margin:0 .72rem}.index-list .panel li span[data-v-53b98054]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;border-bottom:1px solid #f5f5f5;font-size:.9rem;color:#333;font-weight:400}.question-entrance[data-v-53b98054]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-53b98054]{font-size:.75rem}.ad[data-v-53b98054]{margin-top:2.95rem;margin-bottom:1.2rem;padding:0 .6rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(138);
var _indexAnchor = _interopRequireDefault(__webpack_require__(139));
__webpack_require__(140);
var _indexBar = _interopRequireDefault(__webpack_require__(141));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _signType = __webpack_require__(108);
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    search: _Search.default,
    signAd: _signAd.default
  }, _indexBar.default.name, _indexBar.default), _indexAnchor.default.name, _indexAnchor.default),
  data: function data() {
    return {
      pageType: this.$route.query.pageType,
      signType: null,
      // 广告位
      brand: {},
      indexList: [],
      vehicleList: []
    };
  },
  created: function created() {
    this.firstVehicleList();
    this.getVehicleList();
    this.signType = (0, _signType.signType)(this.$route.query.pageType);
  },
  mounted: function mounted() {
    this.shareConfig();
  },
  methods: {
    /**
     * 获取第一层车辆信息列表
     */
    firstVehicleList: function firstVehicleList() {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid
      };
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, params, function (data) {
        _this.brand = data;
        _this.spname = data.spname;
      }, function () {}, this, false);
    },
    /**
     * 获取第一层车辆字母排序列表
     */
    getVehicleList: function getVehicleList() {
      var _this2 = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_LIST_SORT, params, function (data) {
        _this2.indexList = data.letterList;
        _this2.vehicleList = data.vehicleLetterVos;
      }, function () {}, this, false);
    },
    openNode: function openNode(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item, '');
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'engineNode',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/engineNode?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo)
          }
        });
      } else {
        this.$router.push({
          name: 'engineNode',
          path: '/v2/library/circuitDiagram2/engineNode',
          query: {
            pageType: query.pageType,
            spid: query.spid,
            moudle: item.moudle,
            pathNo: item.pathNo
          }
        });
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.query.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item, url) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: url
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"product-page"},[_c('div',{staticClass:"main"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType,"placeholder":"请输入关键词，搜发动机资料"}})],1),_vm._v(" "),_c('div',{staticClass:"panel-container"},[_c('h2',[_vm._v("快捷查找")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.brand.vehicleDictionaryList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openNode(item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])}),0)])]),_vm._v(" "),_c('van-index-bar',{attrs:{"index-list":_vm.indexList,"highlight-color":"#177afa"}},_vm._l((_vm.vehicleList),function(item,index){return _c('div',{key:index,staticClass:"index-list"},[_c('van-index-anchor',{attrs:{"index":item.index}}),_vm._v(" "),_c('ul',{staticClass:"panel"},_vm._l((item.vehicleDictionaryVoList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.openNode(v)}}},[_c('img',{attrs:{"src":v.pathOriginalImg,"alt":"icon"}}),_c('span',[_vm._v(_vm._s(v.pathName))])])}),0)],1)}),0),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(646);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_61b3f714_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1244);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3380)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-61b3f714"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_61b3f714_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_61b3f714_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_nodeOrresult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3381);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("519068d3", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-61b3f714]{position:fixed;top:2.75rem;bottom:0;height:auto}.main[data-v-61b3f714]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.head-list[data-v-61b3f714]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff}.head-list .nav-ul[data-v-61b3f714],.head-list[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.head-list .nav-ul[data-v-61b3f714]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap}.head-list li[data-v-61b3f714]{display:inline-block;position:relative;line-height:2;padding-right:.9rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li[data-v-61b3f714]:after{content:\"/\";position:absolute;right:.2rem;top:0;font-weight:600;font-size:.9rem}.head-list li[data-v-61b3f714]:last-child:after{display:none}.head-list li span[data-v-61b3f714]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list .lr[data-v-61b3f714]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;white-space:nowrap}.head-list .lr span[data-v-61b3f714]{font-size:.7rem}.head-list em[data-v-61b3f714]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.panel-bg[data-v-61b3f714]{height:.6rem;background-color:#fff}.panel-container[data-v-61b3f714]{position:relative;padding:.6rem;background-color:#f5f5f5}.panel-container h2[data-v-61b3f714]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-61b3f714]{padding:.6rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-61b3f714]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-61b3f714]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-61b3f714]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-61b3f714]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-61b3f714]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-61b3f714]{display:block;margin-top:.25rem;font-size:.8rem;color:#333}.engine-panel[data-v-61b3f714]{margin-top:-.6rem;border-radius:.6rem .6rem 0 0;z-index:2;padding-bottom:0}.engine-panel h2[data-v-61b3f714]{margin:.4rem 0 .6rem;font-size:.7rem;font-weight:400;line-height:1.13rem}.question-entrance[data-v-61b3f714]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-61b3f714]{font-size:.75rem}.material-nav[data-v-61b3f714]{position:relative;padding:.6rem .6rem .8rem;white-space:nowrap;overflow:hidden;background-color:#fff}.material-nav .nav-list[data-v-61b3f714],.material-nav span[data-v-61b3f714]{line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.material-nav span[data-v-61b3f714]{padding:.46rem 1rem;margin-right:.6rem;background-color:#f5f5f5;border-radius:.86rem}.material-nav span.active[data-v-61b3f714]{background-color:#177afa;color:#fff}.material-nav span[data-v-61b3f714]:last-child{margin-right:0}.type-list[data-v-61b3f714]{position:relative;z-index:1;padding:0 .6rem 1.35rem;background-color:#fff}.type-list .type-btn[data-v-61b3f714]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:1rem;border:.03rem solid #ff3f3f;color:#ff3f3f;background-color:#fff6f6}.type-list .type-btn.active[data-v-61b3f714]{color:#177afa;border-color:#177afa;background-color:#f1f7ff}.type-list .type-btn span[data-v-61b3f714]{padding:0 .85rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:.8rem;font-weight:600}.material-container[data-v-61b3f714]{position:relative;z-index:2;padding:0 .6rem;margin-top:-.55rem;border-radius:.6rem .6rem 0 0;overflow:hidden;background-color:#f5f5f5}.material-container .type-name[data-v-61b3f714]{line-height:1.13rem;margin:1rem 0 .4rem;font-size:.8rem;font-weight:600;color:#333;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.material-container .type-name span[data-v-61b3f714]{margin-right:.2rem;font-weight:600;font-size:inherit}.material-container .material-list[data-v-61b3f714]{overflow:hidden}.material-container .material-list li[data-v-61b3f714]{padding:.8rem .6rem;margin-bottom:.6rem;min-height:2.85rem;background:#fff;border-radius:.4rem}.material-container .material-list li .title[data-v-61b3f714]{line-height:1.25rem;font-size:.9rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC;color:#333}.material-container .material-list li.have-read .title[data-v-61b3f714]{color:#999}.material-container .material-list li span[data-v-61b3f714]{margin-top:.2rem;height:1rem;line-height:1rem;font-size:.7rem;font-weight:400;color:#999}.material-null[data-v-61b3f714]{position:relative;z-index:2;margin-top:3.35rem;text-align:center}.material-null .tips[data-v-61b3f714]{margin-bottom:2rem}.material-null .tips img[data-v-61b3f714]{width:3.7rem}.material-null .tips p[data-v-61b3f714]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-61b3f714]{width:13.75rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.btn_2[data-v-61b3f714]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-61b3f714]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box[data-v-61b3f714]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-61b3f714]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-61b3f714]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-61b3f714]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-2px}.list-bottom-box .list-top .lr[data-v-61b3f714]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-61b3f714]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.pop-container[data-v-61b3f714]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-61b3f714]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-61b3f714]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-61b3f714]{height:80.5%;margin-bottom:6rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-61b3f714]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-61b3f714]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-61b3f714]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li .item[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;padding:0 .6rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;text-align:center}.pop-container .content-container .content-list li .item.active[data-v-61b3f714]{background-color:#e7f1ff}.pop-container .content-container .content-list li .item.active span[data-v-61b3f714]{color:#177afa}.pop-container .content-container .content-list li .item span[data-v-61b3f714]{font-size:.8rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .foot-bar[data-v-61b3f714]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .reset-btn[data-v-61b3f714]{width:6rem;line-height:1;padding:.65rem 0;border:.05rem solid #177afa;border-radius:.3rem;margin-right:.8rem;text-align:center;color:#177afa;font-size:.9rem}.pop-container .foot-bar .filter-btn[data-v-61b3f714]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  props: {
    pageName: {
      type: String,
      default: ''
    },
    prevPathno: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      headList: [],
      pathInfo: {},
      dataNumType: 1,
      vehicleDictionaryVoList: [],
      emissionPhaseList: [],
      // 排放阶段
      standardActiveIndex: 0,
      emissionName: '',
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getBrandListOrDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      showNullTip: false,
      materialList: [],
      fileTypeList: [],
      vehiclePartList: [],
      showPathInfo: false,
      show: false,
      fileTypeIds: [],
      partTypeIds: [],
      filterNum: null,
      fileTypeIdsTemp: [],
      partTypeIdsTemp: [],
      filterTypeName: '',
      haveReadDateId: []
    };
  },
  mounted: function mounted() {
    this.shareConfig();
    this.getDataAndPosition();
  },
  methods: {
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取子集车辆字典或者资料列表接口新
     * @param {Object} item 车辆信息
     */
    getBrandListOrDataList: function getBrandListOrDataList(page) {
      var _this = this;
      // 车身模块vehiclePart 从url获取
      var vehiclePartId = '';
      if (this.$route.query.vehiclePartId && this.$route.query.vehiclePartId !== 'undefined') {
        vehiclePartId = this.$route.query.vehiclePartId;
      } else {
        vehiclePartId = this.partTypeIds.join(',');
      }
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        pathNo: this.$route.query.pathNo,
        fileType: this.fileTypeIds.join(','),
        moudle: this.$route.query.moudle,
        vehiclePart: vehiclePartId,
        emissionPhase: this.emissionPhase,
        pageNum: page.num,
        pageSize: page.size
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this.headList = data.headList;
        if (data.parentDataNumType) {
          _this.dataNumType = data.parentDataNumType;
          _this.pathInfo = data.headList[data.headList.length - 2];
        } else {
          _this.dataNumType = data.dataNumType;
          _this.pathInfo = {
            pathName: data.pathName,
            pathNo: data.pathNo
          };
        }
        if (data.vehicleDictionaryVoList && data.vehicleDictionaryVoList.length !== 0 && data.headList.length < 3) {
          // 有节点
          _this.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
        } else {
          // 排放阶段
          _this.emissionPhaseList = data.emissionPhaseList || [];
          _this.emissionPhaseList.unshift({
            code: null,
            name: '全部'
          });
          var dataList = data.shareList || [];
          if (page.num === 1) {
            _this.materialList = [];
            // 埋点相关
            var _path = '';
            if (data.headList && data.headList.length > 0) {
              data.headList.forEach(function (v) {
                _path += v.pathNo + '_';
              });
              _path = _path.substring(0, _path.length - 1);
            }
            _this.dataCount = data.dataCount;
            if (page.firstFilter) {
              // 第一次进入结果页搜索埋点
              _this.enterLibraryresultpage({
                path: _path,
                amount: data.dataCount
              });
            } else {
              // 筛选结果页埋点
              _this.filterLibraryresult({
                path: _path,
                name: _this.filterTypeName,
                amount: data.dataCount
              });
            }
          }
          _this.materialList = _this.materialList.concat(dataList);
          if (_this.materialList.length === 0) {
            _this.showNullTip = true;
            _this.mescroll.optUp.htmlNodata = '';
          } else {
            if (dataList.length < 10) {
              _this.showPathInfo = true;
            }
          }
          _this.$nextTick(function () {
            _this.mescroll.endSuccess(dataList.length);
          });
          _this.vehiclePartList = data.vehiclePartList || [];
          _this.fileTypeList = data.fileTypeList || [];
        }
      }, function () {}, this, false);
    },
    /**
     * 发动机资料节点
     */
    openNode: function openNode(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item);
      if (this._Util.isApp()) {
        var url = '';
        if (this.prevPathno === '') {
          url = "".concat(location.origin, "/v2/library/circuitDiagram2/").concat(this.pageName, "?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo);
        } else {
          url = "".concat(location.origin, "/v2/library/circuitDiagram2/").concat(this.pageName, "?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo, "&prevPathNo=").concat(this.prevPathno);
        }
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: this.pageName,
            url: url
          }
        });
      } else {
        this.$router.push({
          name: this.pageName,
          path: "/v2/library/circuitDiagram2/".concat(this.pageName),
          query: {
            pageType: query.pageType,
            spid: query.spid,
            moudle: item.moudle,
            pathNo: item.pathNo,
            prevPathNo: this.prevPathno
          }
        });
      }
    },
    toggleNav: function toggleNav(item) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.query.moudle
      });
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    openPopup: function openPopup() {
      var _this2 = this;
      this.show = true;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        if (_this2.fileTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.fileTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (_this2.partTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.partTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.filterNum = this.fileTypeIds.length + this.partTypeIds.length;
    },
    selecteMissionPhase: function selecteMissionPhase(item, index) {
      this.standardActiveIndex = index;
      this.emissionPhase = item.code;
      this.emissionName = item.name;
      this.materialList = [];
      this.mescroll.resetUpScroll();
    },
    selectType: function selectType(item, type) {
      this.$set(item, 'selected', !item.selected);
      var fileArrIndex = this.fileTypeIdsTemp.indexOf(item.id);
      var partArrIndex = this.partTypeIdsTemp.indexOf(item.id);
      if (type === 1) {
        // 资料类型
        if (fileArrIndex !== -1) {
          this.fileTypeIdsTemp.splice(fileArrIndex, 1);
        } else {
          this.fileTypeIdsTemp.push(item.id);
        }
      }
      if (type === 2) {
        // 部件模块
        if (partArrIndex !== -1) {
          this.partTypeIdsTemp.splice(partArrIndex, 1);
        } else {
          this.partTypeIdsTemp.push(item.id);
        }
      }
      this.filterNum = this.fileTypeIdsTemp.length + this.partTypeIdsTemp.length;
    },
    /**
     * 重置
     */
    resetFilterType: function resetFilterType() {
      var _this3 = this;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.vehiclePartList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.filterNum = null;
    },
    /**
     * 筛选
     */
    confrimFilterType: function confrimFilterType() {
      var _this4 = this;
      var arr1 = [];
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.fileTypeList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.name);
          _this4.fileTypeIds.push(item.id);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.nickname);
          _this4.partTypeIds.push(item.id);
        }
      });
      // this.filterNum = arr1.length
      this.filterTypeName = arr1.join('、');
      this.show = false;
      this.materialList = [];
      this.mescroll.resetUpScroll();
    },
    /**
     * 重新筛选
     */
    reserveData: function reserveData() {
      this.resetFilterType();
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.filterTypeName = '';
      this.materialList = [];
      this.mescroll.resetUpScroll();
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index + 1);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/shopping/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        materialList: this.materialList,
        headList: this.headList,
        dataNumType: this.dataNumType,
        haveReadDateId: this.haveReadDateId,
        keyword: this.keyword,
        fileTypeIds: this.fileTypeIds,
        fileTypeList: this.fileTypeList,
        vehiclePartList: this.vehiclePartList,
        filterNum: this.filterNum,
        filterTypeName: this.filterTypeName,
        emissionName: this.emissionName,
        dataCount: this.dataCount,
        emissionPhaseList: this.emissionPhaseList,
        showPathInfo: this.showPathInfo,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.query.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.query.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.query.pageType);
        this.spname = position.spname;
        this.materialList = position.materialList;
        this.haveReadDateId = position.haveReadDateId;
        this.keyword = position.keyword;
        this.dataCount = position.dataCount;
        this.emissionPhaseList = position.emissionPhaseList;
        this.fileTypeIds = position.fileTypeIds;
        this.fileTypeList = position.fileTypeList;
        this.filterNum = position.filterNum;
        this.vehiclePartList = position.vehiclePartList;
        this.filterTypeName = position.filterTypeName;
        this.emissionName = position.emissionName;
        this.mescrollUp.page.num = position.pageNum;
        this.headList = position.headList;
        this.showPathInfo = position.showPathInfo;
        this.dataNumType = position.dataNumType;
        this.$nextTick(function () {
          setTimeout(function () {
            if (document.getElementById('savePosition')) {
              // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
              document.getElementById('savePosition').scrollTop = position.scrollTop;
            }
          }, 100);
        });
      } else {
        this.getBrandListOrDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var query = this.$route.query;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(query.pageType, "/").concat(query.spid, "/").concat(query.moudle, "/").concat(item.pathNo, "?pageTitle=").concat(this.$route.query.pageTitle, "&vehiclePartId=").concat(this.$route.query.vehiclePartId)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(query.pageType, "/").concat(query.spid, "/").concat(query.moudle, "/").concat(item.pathNo, "?pageTitle=").concat(this.$route.query.pageTitle, "&vehiclePartId=").concat(this.$route.query.vehiclePartId)
        });
      }
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData1: function reserveData1() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.query.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: this.emissionName !== '' ? '排放阶段-资料类型' : '资料类型',
        filter_name: this.emissionName !== '' ? (this.emissionName + '-' || false) + (this.filterTypeName || '全部') : this.filterTypeName || '全部',
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: this.dataCount
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: this.emissionName !== '' ? '排放阶段-资料类型' : '资料类型',
        filter_name: this.emissionName !== '' ? (this.emissionName + '-' || false) + (this.filterTypeName || '全部') : this.filterTypeName || '全部',
        libraryfile_amount: item.amount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"main"},[_c('div',{staticClass:"head-list"},[_c('ul',{staticClass:"nav-ul"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item)}}},[_c('span',[_vm._v(_vm._s(item.pathName))])])}),0),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_c('span',[_vm._v(_vm._s(_vm.pathInfo.pathName))]),_vm._v(" 通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),(_vm.vehicleDictionaryVoList.length > 0)?_c('div',{staticClass:"panel-bg"}):_vm._e(),_vm._v(" "),(_vm.vehicleDictionaryVoList.length > 0)?_c('div',{staticClass:"panel-container engine-panel"},[_c('h2',[_vm._v("请继续选择：")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.vehicleDictionaryVoList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openNode(item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])]):_c('div',[(!_vm.showNullTip)?_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[(_vm.emissionPhaseList.length > 1)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"material-nav"},[_c('div',{staticClass:"nav-list"},[_vm._v("\n          排放阶段："),_vm._l((_vm.emissionPhaseList),function(item,index){return _c('span',{key:index,class:{'active': _vm.standardActiveIndex === index},on:{"click":function($event){return _vm.selecteMissionPhase(item, index)}}},[_vm._v(_vm._s(item.name))])})],2)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main-wrap"},[(_vm.fileTypeList.length > 1 || _vm.vehiclePartList.length > 1)?_c('div',{staticClass:"type-list"},[_c('div',{staticClass:"type-btn",class:{'active': _vm.filterTypeName !== ''},on:{"click":function($event){return _vm.openPopup()}}},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '点击筛选资料' : '已选：' + _vm.filterTypeName))])])]):_vm._e(),_vm._v(" "),(_vm.materialList.length > 0)?_c('div',{staticClass:"material-container"},[_c('h4',{staticClass:"type-name"},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName || '全部'))]),_vm._v("资料:")]),_vm._v(" "),_c('ul',{staticClass:"material-list"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.dataName))])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料"),_c('em')])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('span',{staticClass:"list-btn",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e()]):_vm._e()]):_vm._e()])]):_vm._e()],1),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '暂时没有资料哦，重新筛选试试' : ("暂时没有 " + (_vm.pathInfo.pathName) + " 相关资料")))])]),_vm._v(" "),(_vm.filterTypeName !== '')?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("重新筛选")]):(_vm.dataNumType === 1)?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("筛选资料")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[_c('div',{staticClass:"content-title"},[_vm._v("资料类型")]),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.fileTypeList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 1)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.name))])])])}),0),_vm._v(" "),_c('div',{staticClass:"content-title"},[_vm._v("部件模块")]),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehiclePartList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 2)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.nickname))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"reset-btn",on:{"click":function($event){return _vm.resetFilterType()}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"filter-btn",on:{"click":function($event){return _vm.confrimFilterType()}}},[_vm._v("筛选 "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.filterNum),expression:"filterNum"}]},[_vm._v("("+_vm._s(_vm.filterNum)+"个条件)")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(645);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_53f74190_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1245);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3378)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-53f74190"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_53f74190_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_53f74190_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineNode_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3379);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1ce09912", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _nodeOrresult = _interopRequireDefault(__webpack_require__(330));
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    nodeResult: _nodeOrresult.default
  },
  data: function data() {
    return {
      pageName: 'engineNode1'
    };
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"product-page"},[_c('node-result',{attrs:{"page-name":_vm.pageName}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(647);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3963e722_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1246);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3382)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3963e722"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3963e722_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3963e722_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineNode1_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3383);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("064e86ed", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _nodeOrresult = _interopRequireDefault(__webpack_require__(330));
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    nodeResult: _nodeOrresult.default
  },
  data: function data() {
    return {
      pageName: 'engineResult',
      prevPathno: this.$route.query.pathNo
    };
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"product-page"},[_c('node-result',{attrs:{"page-name":_vm.pageName,"prev-pathno":_vm.prevPathno}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(648);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3598211a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1247);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3384)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3598211a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3598211a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3598211a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_engineResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3385);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("38742000", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".panel-grid[data-v-3598211a]{position:relative;padding:.6rem}.panel-grid .panel[data-v-3598211a]{padding:.6rem .45rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-grid .panel .list-ul[data-v-3598211a]{width:100%;margin-bottom:-.4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li[data-v-3598211a]{float:left;width:33.334%;margin-bottom:.4rem;text-align:center}.panel-grid .panel .list-ul .list-li .panel-inner[data-v-3598211a]{display:inline-block;width:96%;background-color:#fff;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden;vertical-align:top}.panel-grid .panel .list-ul .list-li .panel-inner .pic[data-v-3598211a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li .panel-inner .pic img[data-v-3598211a]{height:90%;vertical-align:top;border:none;outline:none}.panel-grid .panel .list-ul .list-li .panel-inner .name[data-v-3598211a]{display:block;height:1.65rem;line-height:1.65rem;font-size:.75rem;color:#333;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pop-container[data-v-3598211a]{background-color:#fff;border-radius:.6rem .6rem 0 0;height:90%;overflow:hidden}.pop-container .head[data-v-3598211a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-3598211a]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-3598211a]{position:absolute;right:0;padding:1rem .8rem;line-height:1;font-size:.8rem}.pop-container .content-container[data-v-3598211a]{height:90%;padding-bottom:2rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-3598211a]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .popup-type[data-v-3598211a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:1rem;padding:0 .6rem}.pop-container .content-container .popup-type .lf[data-v-3598211a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.pop-container .content-container .popup-type .lr[data-v-3598211a]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.pop-container .content-container .popup-type em[data-v-3598211a]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .content-container .content-list[data-v-3598211a]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-3598211a]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li span[data-v-3598211a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.8rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container .content-list li span.active[data-v-3598211a]{background-color:#e7f1ff;color:#177afa}.pop-container .foot-bar[data-v-3598211a]{border-top:1px solid #eee;padding:.35rem .85rem}.pop-container .foot-bar .btn[data-v-3598211a]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _nodeOrresult = _interopRequireDefault(__webpack_require__(330));
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    nodeResult: _nodeOrresult.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      pageName: ''
    };
  },
  created: function created() {
    this.getLastNode();
  },
  methods: {
    getLastNode: function getLastNode() {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        pathNo: this.$route.query.prevPathNo
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
      }, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"product-page"},[_c('node-result',{attrs:{"page-name":_vm.pageName}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22b89cde_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1248);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3386)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-22b89cde"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22b89cde_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_22b89cde_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3387);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("39aba12e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".main[data-v-22b89cde]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.main .search[data-v-22b89cde]{padding-top:0}.panel-grid[data-v-22b89cde]{position:relative;padding:0 .6rem}.panel-grid .panel[data-v-22b89cde]{padding:.6rem .45rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-grid .panel .list-ul[data-v-22b89cde]{width:100%;margin-bottom:-.4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li[data-v-22b89cde]{float:left;width:33.3333334%;margin-bottom:.4rem;text-align:center}.panel-grid .panel .list-ul .list-li .panel-inner[data-v-22b89cde]{display:inline-block;width:96%;background-color:#fff;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden;vertical-align:top}.panel-grid .panel .list-ul .list-li .panel-inner .pic[data-v-22b89cde]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li .panel-inner .pic img[data-v-22b89cde]{height:90%;vertical-align:top;border:none;outline:none}.panel-grid .panel .list-ul .list-li .panel-inner .name[data-v-22b89cde]{display:block;height:1.65rem;line-height:1.65rem;font-size:.75rem;color:#333;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.abs-panel[data-v-22b89cde]{position:relative;padding:.6rem 0}.abs-panel h2[data-v-22b89cde]{margin-top:-.2rem;margin-bottom:.4rem;margin-left:.6rem;font-size:.7rem;font-weight:400;line-height:1rem}.abs-panel .panel-type-btn[data-v-22b89cde]{position:absolute;top:.6rem;right:.6rem;font-size:.7rem;line-height:1;font-weight:400;color:#177afa}.abs-panel .panel-type-btn.abs1 em[data-v-22b89cde]{background-image:url(\"http://static2.kaxiuyun.com/abs-icon_1.png\")}.abs-panel .panel-type-btn.abs2 em[data-v-22b89cde]{background-image:url(\"http://static2.kaxiuyun.com/abs-icon_2.png\")}.abs-panel .panel-type-btn em[data-v-22b89cde]{display:inline-block;width:1rem;height:1rem;margin-top:-.1rem;margin-right:.1rem;background-position:50%;background-size:100%;background-repeat:no-repeat;vertical-align:middle}.panel-container[data-v-22b89cde]{position:relative;padding:0 .6rem;background-color:#f5f5f5}.panel-container h2[data-v-22b89cde]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-22b89cde]{padding:.2rem 0 .6rem;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-22b89cde]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-22b89cde]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-22b89cde]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-22b89cde]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-22b89cde]{display:inline-block;width:25%;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-22b89cde]{display:inline-block;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-22b89cde]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-22b89cde]{display:block;line-height:1;margin-top:.25rem;font-size:.8rem;color:#333}.index-list .panel[data-v-22b89cde]{background-color:#fff;border-radius:.4rem;margin:0 .6rem}.index-list .panel li[data-v-22b89cde]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.03rem;line-height:1}.index-list .panel li img[data-v-22b89cde]{display:block;width:1.35rem;height:1.35rem;margin:0 .72rem}.index-list .panel li span[data-v-22b89cde]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;border-bottom:1px solid #f5f5f5;font-size:.9rem;color:#333;font-weight:400}.question-entrance[data-v-22b89cde]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-22b89cde]{font-size:.75rem}.ad[data-v-22b89cde]{margin-top:2.95rem;margin-bottom:1.2rem;padding:0 .6rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(138);
var _indexAnchor = _interopRequireDefault(__webpack_require__(139));
__webpack_require__(140);
var _indexBar = _interopRequireDefault(__webpack_require__(141));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _signType = __webpack_require__(108);
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    search: _Search.default,
    signAd: _signAd.default
  }, _indexBar.default.name, _indexBar.default), _indexAnchor.default.name, _indexAnchor.default),
  data: function data() {
    return {
      pageType: this.$route.query.pageType,
      signType: '',
      absIcon: JSON.parse(sessionStorage.getItem('absIcon')),
      vehicleDictionaryList: [],
      indexList: [],
      vehicleList: []
    };
  },
  created: function created() {
    document.title = 'ABS电路图';
    this.signType = (0, _signType.signType)(this.$route.query.pageType);
    this.shareConfig();
    if (this.absIcon) {
      // 整车节点
      this.firstVehicleList(1);
      this.getVehicleList(1);
    } else {
      // ABS品牌
      this.firstVehicleList(6);
    }
  },
  methods: {
    toggleType: function toggleType() {
      this.absIcon = !this.absIcon;
      sessionStorage.setItem('absIcon', this.absIcon);
      this._Util.sensorsCollect('element_click', {
        $element_content: this.absIcon ? '按ABS品牌查看ABS电路图' : '按车辆品牌查看ABS电路图',
        $element_name: this.absIcon ? '按ABS品牌查看ABS电路图' : '按车辆品牌查看ABS电路图',
        $element_class_name:  true ? 'abs1' : undefined,
        $element_type: ''
      });
      if (this.absIcon) {
        // 整车节点
        this.firstVehicleList(1);
        this.getVehicleList(1);
      } else {
        // ABS品牌
        this.firstVehicleList(6);
      }
    },
    /**
     * 获取第一层车辆信息列表
     */
    firstVehicleList: function firstVehicleList(m) {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        moudle: m
      };
      this.vehicleDictionaryList = [];
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, params, function (data) {
        _this.vehicleDictionaryList = data.vehicleDictionaryList;
        _this.spname = data.spname;
      }, function () {}, this, false);
    },
    /**
     * 获取第一层车辆字母排序列表
     */
    getVehicleList: function getVehicleList(m) {
      var _this2 = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        moudle: m
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_LIST_SORT, params, function (data) {
        _this2.indexList = data.letterList;
        _this2.vehicleList = data.vehicleLetterVos;
      }, function () {}, this, false);
    },
    openReault: function openReault(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item);
      if (this._Util.isApp()) {
        if (this.absIcon) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'vehicleBrand',
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/vehicleBrand/").concat(query.pageType, "/").concat(query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
            }
          });
        } else {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'ABSResult',
              url: "".concat(location.origin, "/v2/library/circuitDiagram2/ABSResult?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo)
            }
          });
        }
      } else {
        if (this.absIcon) {
          this.$router.push({
            path: "/v2/library/circuitDiagram2/vehicleBrand/".concat(query.pageType, "/").concat(query.spid, "/").concat(item.moudle, "/").concat(item.pathNo)
          });
        } else {
          this.$router.push({
            name: 'ABSResult',
            query: {
              pageType: query.pageType,
              spid: query.spid,
              moudle: item.moudle,
              pathNo: item.pathNo
            }
          });
        }
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.query.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: this.$route.query.moudle,
        vehicledictionary_path: ''
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"product-page"},[_c('div',{staticClass:"main"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType}})],1),_vm._v(" "),_c('div',{staticClass:"abs-panel"},[_c('h2',[_vm._v(_vm._s(!_vm.absIcon ? '根据ABS品牌，查电路图' : '快捷查找')+" ")]),_vm._v(" "),_c('span',{staticClass:"panel-type-btn",class:!_vm.absIcon ? 'abs2': 'abs1',on:{"click":function($event){return _vm.toggleType()}}},[_c('em'),_vm._v(_vm._s(!_vm.absIcon ? '按车辆品牌' : '按ABS品牌'))]),_vm._v(" "),(!_vm.absIcon)?_c('div',{staticClass:"panel-grid"},[_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.vehicleDictionaryList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openReault(item)}}},[_c('div',{staticClass:"panel-inner"},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])])}),0)])]):_c('div',[_c('div',{staticClass:"panel-container"},[_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.vehicleDictionaryList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openReault(item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])}),0)])]),_vm._v(" "),_c('van-index-bar',{attrs:{"index-list":_vm.indexList,"highlight-color":"#177afa"}},_vm._l((_vm.vehicleList),function(item,index){return _c('div',{key:index,staticClass:"index-list"},[_c('van-index-anchor',{attrs:{"index":item.index}}),_vm._v(" "),_c('ul',{staticClass:"panel"},_vm._l((item.vehicleDictionaryVoList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.openReault(v)}}},[_c('img',{attrs:{"src":v.pathOriginalImg,"alt":"icon"}}),_c('span',[_vm._v(_vm._s(v.pathName))])])}),0)],1)}),0)],1)]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(650);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79020af7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1249);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3388)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-79020af7"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79020af7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79020af7_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ABSResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3389);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b8b21230", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".mescroll[data-v-79020af7]{position:fixed;top:2.75rem;bottom:0;height:auto}.main[data-v-79020af7]{min-height:100%;background-color:#f5f5f5}.head-list[data-v-79020af7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff}.head-list li[data-v-79020af7]{position:relative;line-height:2;padding-right:.9rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li[data-v-79020af7]:after{content:\"/\";position:absolute;right:.2rem;top:0;font-weight:600;font-size:.9rem}.head-list li[data-v-79020af7]:last-child:after{display:none}.head-list li span[data-v-79020af7]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list .lr[data-v-79020af7]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;white-space:nowrap}.head-list .lr span[data-v-79020af7]{font-size:.7rem}.head-list em[data-v-79020af7]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.panel-bg[data-v-79020af7]{height:.6rem;background-color:#fff}.panel-container[data-v-79020af7]{position:relative;padding:.6rem;background-color:#f5f5f5}.panel-container h2[data-v-79020af7]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-79020af7]{padding:.6rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-79020af7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-79020af7]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-79020af7]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-79020af7]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-79020af7]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-79020af7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-79020af7]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-79020af7]{display:block;margin-top:.25rem;font-size:.8rem;color:#333}.question-entrance[data-v-79020af7]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-79020af7]{font-size:.75rem}.material-container[data-v-79020af7]{position:relative;z-index:2;padding:0 .6rem;margin-top:-.55rem;border-radius:.6rem .6rem 0 0;overflow:hidden;background-color:#f5f5f5}.material-container .type-name[data-v-79020af7]{line-height:1.13rem;margin:1rem 0 .4rem;font-size:.8rem;font-weight:600;color:#333;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.material-container .type-name span[data-v-79020af7]{margin-right:.2rem;font-weight:600;font-size:inherit}.material-container .material-list[data-v-79020af7]{overflow:hidden}.material-container .material-list li[data-v-79020af7]{padding:.8rem .6rem;margin-bottom:.6rem;min-height:2.85rem;background:#fff;border-radius:.4rem}.material-container .material-list li .title[data-v-79020af7]{line-height:1.25rem;font-size:.9rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC;color:#333}.material-container .material-list li.have-read .title[data-v-79020af7]{color:#999}.material-container .material-list li span[data-v-79020af7]{margin-top:.2rem;height:1rem;line-height:1rem;font-size:.7rem;font-weight:400;color:#999}.material-null[data-v-79020af7]{position:relative;z-index:2;margin-top:3.35rem;text-align:center}.material-null .tips[data-v-79020af7]{margin-bottom:2rem}.material-null .tips img[data-v-79020af7]{width:3.7rem}.material-null .tips p[data-v-79020af7]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-79020af7]{width:13.75rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.btn_2[data-v-79020af7]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-79020af7]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box[data-v-79020af7]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-79020af7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-79020af7]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-79020af7]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-79020af7]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-2px}.list-bottom-box .list-top .lr[data-v-79020af7]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-79020af7]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-79020af7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    MescrollVue: _mescroll.default
  },
  data: function data() {
    return {
      pathNo: '',
      headList: [],
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getBrandListOrDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      showNullTip: false,
      showPathInfo: false,
      materialList: [],
      haveReadDateId: []
    };
  },
  mounted: function mounted() {
    this.getDataAndPosition();
    document.title = 'ABS电路图';
    this.shareConfig();
  },
  methods: {
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    /**
     * 获取子集车辆字典或者资料列表接口新
     * @param {Object} item 车辆信息
     */
    getBrandListOrDataList: function getBrandListOrDataList(page) {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        pathNo: this.$route.query.pathNo,
        moudle: this.$route.query.moudle,
        vehiclePart: '',
        pageNum: page.num,
        pageSize: page.size
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this.headList = data.headList;
        _this.dataNumType = data.dataNumType;
        _this.pathInfo = {
          pathNo: data.pathNo,
          pathName: data.pathName
        };
        var dataList = data.shareList || [];
        if (page.num === 1) {
          _this.materialList = [];
          // 埋点相关
          var _path = '';
          if (data.headList && data.headList.length > 0) {
            data.headList.forEach(function (v) {
              _path += v.pathNo + '_';
            });
            _path = _path.substring(0, _path.length - 1);
          }
          _this.dataCount = data.dataCount;
          if (page.firstFilter) {
            // 第一次进入结果页搜索埋点
            _this.enterLibraryresultpage({
              path: _path,
              amount: data.dataCount
            });
          } else {
            // 筛选结果页埋点
            _this.filterLibraryresult({
              path: _path,
              name: _this.filterTypeName,
              amount: data.dataCount
            });
          }
        }
        _this.materialList = _this.materialList.concat(dataList);
        if (_this.materialList.length === 0) {
          _this.showNullTip = true;
          _this.mescroll.optUp.htmlNodata = '';
        } else {
          if (dataList.length < 10) {
            _this.showPathInfo = true;
          }
        }
        _this.$nextTick(function () {
          _this.mescroll.endSuccess(dataList.length);
        });
      }, function () {}, this, false);
    },
    toggleNav: function toggleNav(item) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.query.moudle
      });
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        materialList: this.materialList,
        headList: this.headList,
        haveReadDateId: this.haveReadDateId,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.query.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.query.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.query.pageType);
        this.materialList = position.materialList;
        this.haveReadDateId = position.haveReadDateId;
        this.dataCount = position.dataCount;
        this.mescrollUp.page.num = position.pageNum;
        this.headList = position.headList;
        this.$nextTick(function () {
          var savePositionEl = document.getElementById('savePosition');
          if (savePositionEl) {
            // savePositionEl.scrollTo(0, position.scrollTop)
            savePositionEl.scrollTop = position.scrollTop;
          }
        });
      } else {
        this.getBrandListOrDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index + 1);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/shopping/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData1: function reserveData1() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: this.$route.query.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: this.filterTypeName || '全部',
        libraryfile_amount: item.amount
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"product-page"},[_c('div',{staticClass:"main"},[_c('ul',{staticClass:"head-list"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item)}}},[_c('span',[_vm._v(_vm._s(item.pathName))])])}),0),_vm._v(" "),(!_vm.showNullTip)?_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[_c('div',{staticClass:"main-wrap"},[_c('div',{staticClass:"panel-bg"}),_vm._v(" "),(_vm.materialList.length > 0)?_c('div',{staticClass:"material-container"},[_c('h4',{staticClass:"type-name"},[_c('span',[_vm._v("全部资料:")])]),_vm._v(" "),_c('ul',{staticClass:"material-list"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.dataName))])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料"),_c('em')])])]):_vm._e()]):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(("暂时没有 " + (_vm.pathInfo.pathName) + " 相关资料")))])]),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e()],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(651);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5e126ab1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1250);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3390)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5e126ab1"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5e126ab1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5e126ab1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3391);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("18240d2f", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".main[data-v-5e126ab1]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.main .search[data-v-5e126ab1]{padding-top:0}.container p[data-v-5e126ab1]{margin:.6rem 0 .4rem;padding:0 .6rem;font-size:.7rem;font-weight:400;color:#333;line-height:1}.container .node-container[data-v-5e126ab1]{position:relative;background-color:#f5f5f5;border-radius:.6rem .6rem 0 0;overflow:hidden}.container .node-container .bg[data-v-5e126ab1]{position:absolute;top:3.33rem;left:0;width:100%;height:1.2rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.container .node-container .node-top-list[data-v-5e126ab1]{padding:.8rem .6rem;position:relative;white-space:nowrap;overflow:hidden;background-color:#fff}.container .node-container .node-top-list .nav-list[data-v-5e126ab1]{padding:0 .6rem;line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.container .node-container .node-top-list .nav-list span[data-v-5e126ab1]{display:inline-block;padding:.3rem 1rem;margin-right:.6rem;line-height:1.13rem;background-color:#f5f5f5;border-radius:.86rem;color:#333;font-size:.8rem;font-weight:400}.container .node-container .node-top-list .nav-list span.active[data-v-5e126ab1]{background-color:#177afa;color:#fff}.container .node-container .node-top-list .nav-list span[data-v-5e126ab1]:last-child{margin-right:0}.container .node-container .index-bar[data-v-5e126ab1]{position:relative;margin-top:.8rem}.index-list .panel[data-v-5e126ab1]{background-color:#fff;border-radius:.4rem;margin:0 .6rem}.index-list .panel li[data-v-5e126ab1]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.03rem;line-height:1}.index-list .panel li img[data-v-5e126ab1]{display:block;width:1.35rem;height:1.35rem;margin:0 .72rem}.index-list .panel li span[data-v-5e126ab1]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;border-bottom:1px solid #f5f5f5;font-size:.9rem;color:#333;font-weight:400}.index-list .panel li:last-child span[data-v-5e126ab1]{border:none}.question-entrance[data-v-5e126ab1]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-5e126ab1]{font-size:.75rem}.ad[data-v-5e126ab1]{margin-top:2.95rem;margin-bottom:1.2rem;padding:0 .6rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(138);
var _indexAnchor = _interopRequireDefault(__webpack_require__(139));
__webpack_require__(140);
var _indexBar = _interopRequireDefault(__webpack_require__(141));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _signType = __webpack_require__(108);
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    search: _Search.default,
    signAd: _signAd.default
  }, _indexBar.default.name, _indexBar.default), _indexAnchor.default.name, _indexAnchor.default),
  data: function data() {
    return {
      pageType: this.$route.query.pageType,
      signType: null,
      // 广告位
      activeIndex: 0,
      vehiclePartId: null,
      // 车身模块id
      vehiclePartVoList: [],
      indexList: [],
      vehicleList: []
    };
  },
  created: function created() {
    this.signType = (0, _signType.signType)(this.$route.query.pageType);
    this.getVehicleModuleList();
  },
  mounted: function mounted() {
    this.shareConfig();
  },
  methods: {
    getVehicleModuleList: function getVehicleModuleList() {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        moudle: 5,
        // 类型
        vehiclePartId: this.vehiclePartId
      };
      this._Util.post(this._Api.POST_VEHICLE_MODULE_LIST, params, function (data) {
        _this.vehiclePartVoList = data.vehiclePartVoList;
        _this.vehiclePartVoList.unshift({
          id: null,
          nickname: '全部'
        });
        _this.indexList = data.letterList;
        _this.vehicleList = data.vehicleLetterVos;
      }, function () {}, this, false);
    },
    selectNode: function selectNode(item, index) {
      this.activeIndex = index;
      this.vehiclePartId = item.id;
      this.clickVehicledictionary(item);
      this.getVehicleModuleList();
    },
    /**
     * 发动机资料节点
     */
    openResult: function openResult(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'sensorResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/sensorResult?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&vehiclePartId=").concat(item.id)
          }
        });
      } else {
        this.$router.push({
          name: 'sensorResult',
          path: "/v2/library/circuitDiagram2/sensorResult",
          query: {
            pageType: query.pageType,
            spid: query.spid,
            vehiclePartId: item.id
          }
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.query.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: '',
        vehicledictionary_name: item.nickname,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: '',
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"main"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType}})],1),_vm._v(" "),_c('div',{staticClass:"container"},[_c('p',[_vm._v("根据传感器/执行器类型，查看资料")]),_vm._v(" "),_c('div',{staticClass:"node-container"},[_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"node-top-list"},[_c('div',{staticClass:"nav-list"},_vm._l((_vm.vehiclePartVoList),function(item,index){return _c('span',{key:index,class:{'active': _vm.activeIndex === index},on:{"click":function($event){return _vm.selectNode(item, index)}}},[_vm._v(_vm._s(item.nickname))])}),0)]),_vm._v(" "),_c('div',{staticClass:"bg"}),_vm._v(" "),_c('div',{staticClass:"index-bar"},[_c('van-index-bar',{attrs:{"index-list":_vm.indexList,"highlight-color":"#177afa"}},_vm._l((_vm.vehicleList),function(item,index){return _c('div',{key:index,staticClass:"index-list"},[_c('van-index-anchor',{attrs:{"index":item.index}}),_vm._v(" "),_c('ul',{staticClass:"panel"},_vm._l((item.vehiclePartVoList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.openResult(v)}}},[_c('img',{attrs:{"src":v.pathImg,"alt":"icon"}}),_c('span',[_vm._v(_vm._s(v.nickname))])])}),0)],1)}),0)],1)])]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(652);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5922bbfa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1251);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3392)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5922bbfa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5922bbfa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5922bbfa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3393);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("058d4549", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".line[data-v-5922bbfa]{width:100%;height:0;border-top:.03rem solid #f5f5f5}.bg[data-v-5922bbfa]{width:100%;height:1rem;background-color:#fff}.mescroll[data-v-5922bbfa]{position:fixed;top:5.95rem;bottom:0;height:auto}.main[data-v-5922bbfa]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.search-bar[data-v-5922bbfa]{padding:.6rem;height:3.2rem;position:relative;overflow:hidden;background-color:#fff}.search-bar img[data-v-5922bbfa]{width:1rem;height:1rem;position:absolute;top:51%;left:1rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.search-bar input[data-v-5922bbfa]{width:100%;height:2rem;line-height:2rem;text-indent:1.6rem;background:#f5f5f5;border-radius:.2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;outline:none;-webkit-transition:all .5s ease;transition:all .5s ease}.search-bar input[data-v-5922bbfa]::-webkit-input-placeholder{color:#999}.search-bar input[data-v-5922bbfa]:-ms-input-placeholder{color:#999}.search-bar input[data-v-5922bbfa]::placeholder{color:#999}.search-bar div[data-v-5922bbfa]{width:3.6rem;line-height:2rem;height:2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;background-color:#177afa;border-radius:.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:.6rem;right:-3.6rem;-webkit-transition:all .5s ease;transition:all .5s ease}.search-bar.active input[data-v-5922bbfa]{width:13.35rem}.search-bar.active div[data-v-5922bbfa]{right:.6rem}.head-list[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff}.head-list li[data-v-5922bbfa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;line-height:2;padding-right:.9rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li[data-v-5922bbfa]:after{content:\"/\";position:absolute;right:.2rem;top:0;font-weight:600;font-size:.9rem}.head-list li.hide-line[data-v-5922bbfa]:nth-last-child(2):after,.head-list li[data-v-5922bbfa]:last-child:after{display:none}.head-list li span[data-v-5922bbfa]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list .lr[data-v-5922bbfa]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;white-space:nowrap}.head-list .lr span[data-v-5922bbfa]{font-size:.7rem}.head-list em[data-v-5922bbfa]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.panel-bg[data-v-5922bbfa]{height:.6rem;background-color:#fff}.panel-container[data-v-5922bbfa]{position:relative;padding:.6rem;background-color:#f5f5f5}.panel-container h2[data-v-5922bbfa]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-5922bbfa]{padding:.6rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-5922bbfa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-5922bbfa]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-5922bbfa]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-5922bbfa]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-5922bbfa]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-5922bbfa]{display:block;margin-top:.25rem;font-size:.8rem;color:#333}.engine-panel[data-v-5922bbfa]{margin-top:-.6rem;border-radius:.6rem .6rem 0 0;z-index:2;padding-bottom:0}.engine-panel h2[data-v-5922bbfa]{margin:.4rem 0 .6rem;font-size:.8rem;font-weight:600;line-height:1.13rem}.question-entrance[data-v-5922bbfa]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-5922bbfa]{font-size:.75rem}.material-nav[data-v-5922bbfa]{position:relative;padding:.6rem .6rem .8rem;white-space:nowrap;overflow:hidden;background-color:#fff}.material-nav .nav-list[data-v-5922bbfa],.material-nav span[data-v-5922bbfa]{line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.material-nav span[data-v-5922bbfa]{padding:.46rem 1rem;margin-right:.6rem;background-color:#f5f5f5;border-radius:.86rem}.material-nav span.active[data-v-5922bbfa]{background-color:#177afa;color:#fff}.material-nav span[data-v-5922bbfa]:last-child{margin-right:0}.type-list[data-v-5922bbfa]{position:relative;z-index:1;padding:0 .6rem .8rem;background-color:#fff}.type-list .type-btn[data-v-5922bbfa]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:1rem;border:.03rem solid #ff3f3f;color:#ff3f3f;background-color:#fff6f6}.type-list .type-btn.active[data-v-5922bbfa]{color:#177afa;border-color:#177afa;background-color:#f1f7ff}.type-list .type-btn span[data-v-5922bbfa]{padding:0 .85rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:.8rem;font-weight:600}.material-container[data-v-5922bbfa]{position:relative;z-index:2;padding:0 .6rem;margin-top:-1rem;border-radius:.6rem .6rem 0 0;overflow:hidden;background-color:#f5f5f5}.material-container .type-name[data-v-5922bbfa]{line-height:1.13rem;margin:1rem 0 .4rem;font-size:.8rem;font-weight:600;color:#333;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.material-container .type-name span[data-v-5922bbfa]{margin-right:.2rem;font-weight:600;font-size:inherit}.material-container .material-list[data-v-5922bbfa]{overflow:hidden}.material-container .material-list li[data-v-5922bbfa]{padding:.8rem .6rem;margin-bottom:.6rem;min-height:2.85rem;background:#fff;border-radius:.4rem}.material-container .material-list li .title[data-v-5922bbfa]{line-height:1.25rem;font-size:.9rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC;color:#333}.material-container .material-list li.have-read .title[data-v-5922bbfa]{color:#999}.material-container .material-list li span[data-v-5922bbfa]{margin-top:.2rem;height:1rem;line-height:1rem;font-size:.7rem;font-weight:400;color:#999}.material-null[data-v-5922bbfa]{position:relative;z-index:2;margin-top:3.35rem;text-align:center}.material-null .tips[data-v-5922bbfa]{margin-bottom:2rem}.material-null .tips img[data-v-5922bbfa]{width:3.7rem}.material-null .tips p[data-v-5922bbfa]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-5922bbfa]{width:13.75rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.btn_2[data-v-5922bbfa]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-5922bbfa]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box[data-v-5922bbfa]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-5922bbfa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-5922bbfa]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-5922bbfa]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-2px}.list-bottom-box .list-top .lr[data-v-5922bbfa]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-5922bbfa]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.pop-container[data-v-5922bbfa]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-5922bbfa]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-5922bbfa]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-5922bbfa]{height:80.5%;margin-bottom:6rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-5922bbfa]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-5922bbfa]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-5922bbfa]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li .item[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;padding:0 .6rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;text-align:center}.pop-container .content-container .content-list li .item.active[data-v-5922bbfa]{background-color:#e7f1ff}.pop-container .content-container .content-list li .item.active span[data-v-5922bbfa]{color:#177afa}.pop-container .content-container .content-list li .item span[data-v-5922bbfa]{font-size:.8rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .foot-bar[data-v-5922bbfa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .reset-btn[data-v-5922bbfa]{width:6rem;line-height:1;padding:.65rem 0;border:.05rem solid #177afa;border-radius:.3rem;margin-right:.8rem;text-align:center;color:#177afa;font-size:.9rem}.pop-container .foot-bar .filter-btn[data-v-5922bbfa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _throttleDebounce = __webpack_require__(21);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  props: {
    pageName: {
      type: String,
      default: ''
    },
    prevPathno: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      folderid: '',
      spname: '',
      keyword: '',
      headList: [],
      pathInfo: {},
      vehicleDictionaryVoList: [],
      emissionPhaseList: [],
      // 排放阶段
      standardActiveIndex: 0,
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getBrandListOrDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      showNullTip: false,
      materialList: [],
      fileTypeList: [],
      vehiclePartList: [],
      showPathInfo: false,
      show: false,
      fileTypeIds: [],
      partTypeIds: [],
      filterTypeName: '',
      filterNum: null,
      fileTypeIdsTemp: [],
      partTypeIdsTemp: [],
      haveReadDateId: [],
      dataCount: 0
    };
  },
  mounted: function mounted() {
    this.getDataAndPosition();
    this.shareConfig();
  },
  methods: {
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    lazyReset: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            this.materialList = [];
            this.mescroll.resetUpScroll();
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 根据车身模块和资料类型获取资料列表
     * @param {Object} item 车辆信息
     */
    getBrandListOrDataList: function getBrandListOrDataList(page) {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        pathNo: this.$route.query.pathNo,
        vehiclePartId: this.$route.query.vehiclePartId,
        keyword: this.keyword,
        fileTypeIds: this.fileTypeIds.join(','),
        moudle: 5,
        pageNum: page.num,
        pageSize: page.size
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_VEHICLE_PART_AND_DATA_LIST, params, function (data) {
        _this.headList = data.headList;
        _this.pathInfo = {
          pathNo: data.pathNo,
          pathName: data.pathName
        };
        _this.folderid = data.folderid;
        _this.spname = data.spname;
        document.title = _this.spname;
        if (data.vehicleDictionaryVoList && data.vehicleDictionaryVoList.length !== 0) {
          // 有节点
          _this.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
        } else {
          // 排放阶段
          _this.emissionPhaseList = data.emissionPhaseList || [];
          _this.emissionPhaseList.unshift({
            code: null,
            name: '全部'
          });
          if (page.num === 1) {
            _this.materialList = [];
            // 埋点相关
            var _path = '';
            if (data.headList && data.headList.length > 0) {
              data.headList.forEach(function (v) {
                _path += v.pathNo + '_';
              });
              _path = _path.substring(0, _path.length - 1);
            }
            _this.dataCount = data.dataCount;
            if (page.firstFilter) {
              // 第一次进入结果页搜索埋点
              _this.enterLibraryresultpage({
                path: _path,
                amount: data.dataCount
              });
            } else {
              // 筛选结果页埋点
              _this.filterLibraryresult({
                path: _path,
                name: _this.filterTypeName,
                amount: data.dataCount
              });
            }
          }
          var dataList = data.shareList || [];
          _this.materialList = _this.materialList.concat(dataList);
          if (_this.materialList.length === 0) {
            _this.showNullTip = true;
            _this.mescroll.optUp.htmlNodata = '';
          } else {
            if (dataList.length < 10) {
              _this.showPathInfo = true;
            }
          }
          if (dataList.length > 0 && _this.haveReadDateId.length > 0) {
            dataList.forEach(function (item) {
              _this.haveReadDateId.forEach(function (v) {
                if (v === item.dateId) {
                  _this.$set(item, 'haveRead', true);
                }
              });
            });
          }
          _this.$nextTick(function () {
            _this.mescroll.endSuccess(dataList.length);
          });
          _this.vehiclePartList = data.vehiclePartList || [];
          _this.fileTypeList = data.fileTypeList || [];
        }
      }, function () {}, this, false);
    },
    /**
     * 发动机资料节点
     */
    openNode: function openNode(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      // this.clickVehicledictionary(item, '')
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: this.pageName,
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/").concat(this.pageName, "?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&modudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo, "$prevPathNo=").concat(this.prevPathno)
          }
        });
      } else {
        this.$router.push({
          name: this.pageName,
          path: "/v2/library/circuitDiagram2/".concat(this.pageName),
          query: {
            pageType: query.pageType,
            spid: query.spid,
            moudle: item.moudle,
            pathNo: item.pathNo,
            prevPathNo: this.prevPathno
          }
        });
      }
    },
    toggleNav: function toggleNav(item) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.query.moudle
      });
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    openPopup: function openPopup() {
      var _this2 = this;
      this.show = true;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        if (_this2.fileTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.fileTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (_this2.partTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.partTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.filterNum = this.fileTypeIds.length + this.partTypeIds.length;
    },
    selecteMissionPhase: function selecteMissionPhase(item, index) {
      this.standardActiveIndex = index;
      this.emissionPhase = item.code;
      this.getBrandListOrDataList({
        num: 1,
        size: 10
      });
    },
    selectType: function selectType(item, type) {
      this.$set(item, 'selected', !item.selected);
      var fileArrIndex = this.fileTypeIdsTemp.indexOf(item.id);
      var partArrIndex = this.partTypeIdsTemp.indexOf(item.id);
      if (type === 1) {
        // 资料类型
        if (fileArrIndex !== -1) {
          this.fileTypeIdsTemp.splice(fileArrIndex, 1);
        } else {
          this.fileTypeIdsTemp.push(item.id);
        }
      }
      if (type === 2) {
        // 部件模块
        if (partArrIndex !== -1) {
          this.partTypeIdsTemp.splice(partArrIndex, 1);
        } else {
          this.partTypeIdsTemp.push(item.id);
        }
      }
      this.filterNum = this.fileTypeIdsTemp.length + this.partTypeIdsTemp.length;
    },
    /**
     * 重置
     */
    resetFilterType: function resetFilterType() {
      var _this3 = this;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.vehiclePartList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.filterNum = null;
    },
    /**
     * 筛选
     */
    confrimFilterType: function confrimFilterType() {
      var _this4 = this;
      var arr1 = [];
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.fileTypeList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.name);
          _this4.fileTypeIds.push(item.id);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.nickname);
          _this4.partTypeIds.push(item.id);
        }
      });
      this.filterTypeName = arr1.join('、');
      this.show = false;
      this.getBrandListOrDataList({
        num: 1,
        size: 10
      });
    },
    /**
     * 重新筛选
     */
    reserveData: function reserveData() {
      this.resetFilterType();
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.filterTypeName = '';
      this.getBrandListOrDataList({
        num: 1,
        size: 10
      });
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index + 1);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/shopping/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      // 不在平板打开的时候，才需要记录位置
      if (localStorage.getItem('isFromMft100') !== '1') {
        that.saveDataAndPosition();
      }
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        materialList: this.materialList,
        headList: this.headList,
        haveReadDateId: this.haveReadDateId,
        keyword: this.keyword,
        fileTypeIds: this.fileTypeIds,
        fileTypeList: this.fileTypeList,
        vehiclePartList: this.vehiclePartList,
        filterNum: this.filterNum,
        filterTypeName: this.filterTypeName,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.query.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.query.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.query.pageType);
        this.spname = position.spname;
        this.materialList = position.materialList;
        this.haveReadDateId = position.haveReadDateId;
        this.keyword = position.keyword;
        this.dataCount = position.dataCount;
        this.fileTypeIds = position.fileTypeIds;
        this.fileTypeList = position.fileTypeList;
        this.vehiclePartList = position.vehiclePartList;
        this.filterNum = position.filterNum;
        this.filterTypeName = position.filterTypeName;
        this.mescrollUp.page.num = position.pageNum;
        this.headList = position.headList;
        this.$nextTick(function () {
          // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
          document.getElementById('savePosition').scrollTop = position.scrollTop;
        });
      } else {
        this.getBrandListOrDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData1: function reserveData1() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: this.filterName,
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: this.filterTypeName || '全部',
        libraryfile_amount: item.amount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"main"},[_c('div',{staticClass:"search-bar"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/course-search.png","alt":"搜索图标"}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"placeholder":"请输入关键词，搜电路图","type":"text"},domProps:{"value":(_vm.keyword)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value},function($event){return _vm.lazyReset()}]}})]),_vm._v(" "),_c('div',{staticClass:"line"}),_vm._v(" "),_c('div',{staticClass:"head-list"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item)}}},[_c('span',[_vm._v(_vm._s(item.partName))])])}),0),_vm._v(" "),(!_vm.showNullTip)?_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[(_vm.emissionPhaseList.length > 1)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"material-nav"},[_c('div',{staticClass:"nav-list"},[_vm._v("\n        排放阶段："),_vm._l((_vm.emissionPhaseList),function(item,index){return _c('span',{key:index,class:{'active': _vm.standardActiveIndex === index},on:{"click":function($event){return _vm.selecteMissionPhase(item, index)}}},[_vm._v(_vm._s(item.name))])})],2)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main-wrap"},[(_vm.fileTypeList.length > 1 || _vm.vehiclePartList.length > 1)?_c('div',{staticClass:"type-list"},[_c('div',{staticClass:"type-btn",class:{'active': _vm.filterTypeName !== ''},on:{"click":function($event){return _vm.openPopup()}}},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '点击筛选资料' : '已选：' + _vm.filterTypeName))])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bg"}),_vm._v(" "),(_vm.materialList.length > 0)?_c('div',{staticClass:"material-container"},[_c('h4',{staticClass:"type-name"},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName || '全部'))]),_vm._v("资料:")]),_vm._v(" "),_c('ul',{staticClass:"material-list"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.dataName))])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料"),_c('em')])])]):_vm._e()]):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '暂时没有资料哦，重新筛选试试' : ("暂时没有 " + (_vm.pathInfo.pathName || '') + " 相关资料")))])]),_vm._v(" "),(_vm.filterTypeName !== '')?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("重新筛选")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("筛选资料")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[(_vm.fileTypeList && _vm.fileTypeList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("资料类型")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.fileTypeList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 1)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.name))])])])}),0),_vm._v(" "),(_vm.vehiclePartList && _vm.vehiclePartList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("部件模块")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehiclePartList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 2)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.nickname))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"reset-btn",on:{"click":function($event){return _vm.resetFilterType()}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"filter-btn",on:{"click":function($event){return _vm.confrimFilterType()}}},[_vm._v("筛选 "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.filterNum),expression:"filterNum"}]},[_vm._v("("+_vm._s(_vm.filterNum)+"个条件)")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(653);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bbdc0dbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1252);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3394)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-bbdc0dbe"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bbdc0dbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_bbdc0dbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3395);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7b8ed3ba", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".main[data-v-bbdc0dbe]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.main .search[data-v-bbdc0dbe]{padding-top:0}.container p[data-v-bbdc0dbe]{margin:.6rem 0 .4rem;padding:0 .6rem;font-size:.7rem;font-weight:400;color:#333;line-height:1}.container .node-container[data-v-bbdc0dbe]{position:relative;background-color:#f5f5f5;border-radius:.6rem .6rem 0 0;overflow:hidden}.container .node-container .bg[data-v-bbdc0dbe]{position:absolute;top:3.33rem;left:0;width:100%;height:1.2rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.container .node-container .node-top-list[data-v-bbdc0dbe]{padding:.8rem .6rem;position:relative;white-space:nowrap;overflow:hidden;background-color:#fff}.container .node-container .node-top-list .nav-list[data-v-bbdc0dbe]{padding:0 .6rem;line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.container .node-container .node-top-list .nav-list span[data-v-bbdc0dbe]{display:inline-block;padding:.3rem 1rem;margin-right:.6rem;line-height:1.13rem;background-color:#f5f5f5;border-radius:.86rem;color:#333;font-size:.8rem;font-weight:400}.container .node-container .node-top-list .nav-list span.active[data-v-bbdc0dbe]{background-color:#177afa;color:#fff}.container .node-container .node-top-list .nav-list span[data-v-bbdc0dbe]:last-child{margin-right:0}.container .node-container .index-bar[data-v-bbdc0dbe]{position:relative;margin-top:.8rem}.index-list .panel[data-v-bbdc0dbe]{background-color:#fff;border-radius:.4rem;margin:0 .6rem}.index-list .panel li[data-v-bbdc0dbe]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.03rem;line-height:1}.index-list .panel li img[data-v-bbdc0dbe]{display:block;width:1.35rem;height:1.35rem;margin:0 .72rem}.index-list .panel li span[data-v-bbdc0dbe]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;border-bottom:1px solid #f5f5f5;font-size:.9rem;color:#333;font-weight:400}.index-list .panel li:last-child span[data-v-bbdc0dbe]{border:none}.question-entrance[data-v-bbdc0dbe]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-bbdc0dbe]{font-size:.75rem}.ad[data-v-bbdc0dbe]{margin-top:2.95rem;margin-bottom:1.2rem;padding:0 .6rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(138);
var _indexAnchor = _interopRequireDefault(__webpack_require__(139));
__webpack_require__(140);
var _indexBar = _interopRequireDefault(__webpack_require__(141));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _signType = __webpack_require__(108);
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    search: _Search.default,
    signAd: _signAd.default
  }, _indexBar.default.name, _indexBar.default), _indexAnchor.default.name, _indexAnchor.default),
  data: function data() {
    return {
      pageType: this.$route.query.pageType,
      signType: null,
      // 广告位
      activeIndex: 0,
      vehiclePartId: null,
      // 车身模块id
      vehiclePartVoList: [],
      indexList: [],
      vehicleList: []
    };
  },
  created: function created() {
    this.signType = (0, _signType.signType)(this.$route.query.pageType);
    this.getVehicleModuleList();
  },
  mounted: function mounted() {
    this.shareConfig();
  },
  methods: {
    getVehicleModuleList: function getVehicleModuleList() {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        moudle: 5,
        // 类型
        vehiclePartId: this.vehiclePartId
      };
      this._Util.post(this._Api.POST_VEHICLE_MODULE_LIST, params, function (data) {
        _this.vehiclePartVoList = data.vehiclePartVoList;
        _this.vehiclePartVoList.unshift({
          id: null,
          nickname: '全部'
        });
        _this.indexList = data.letterList;
        _this.vehicleList = data.vehicleLetterVos;
      }, function () {}, this, false);
    },
    selectNode: function selectNode(item, index) {
      this.activeIndex = index;
      this.vehiclePartId = item.id;
      this.getVehicleModuleList();
    },
    /**
     * 发动机资料节点
     */
    openResult: function openResult(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item, '');
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'sensorPinResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/sensorPinResult?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&vehiclePartId=").concat(item.id)
          }
        });
      } else {
        this.$router.push({
          name: 'sensorPinResult',
          path: "/v2/library/circuitDiagram2/sensorPinResult",
          query: {
            pageType: query.pageType,
            spid: query.spid,
            vehiclePartId: item.id
          }
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.query.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.id,
        vehicledictionary_name: item.nickname,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: this.$route.query.moudle,
        vehicledictionary_path: ''
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"main"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType}})],1),_vm._v(" "),_c('div',{staticClass:"container"},[_c('p',[_vm._v("根据传感器/执行器类型，查看资料")]),_vm._v(" "),_c('div',{staticClass:"node-container"},[_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"node-top-list"},[_c('div',{staticClass:"nav-list"},_vm._l((_vm.vehiclePartVoList),function(item,index){return _c('span',{key:index,class:{'active': _vm.activeIndex === index},on:{"click":function($event){return _vm.selectNode(item, index)}}},[_vm._v(_vm._s(item.nickname))])}),0)]),_vm._v(" "),_c('div',{staticClass:"bg"}),_vm._v(" "),_c('div',{staticClass:"index-bar"},[_c('van-index-bar',{attrs:{"index-list":_vm.indexList,"highlight-color":"#177afa"}},_vm._l((_vm.vehicleList),function(item,index){return _c('div',{key:index,staticClass:"index-list"},[_c('van-index-anchor',{attrs:{"index":item.index}}),_vm._v(" "),_c('ul',{staticClass:"panel"},_vm._l((item.vehiclePartVoList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.openResult(v)}}},[_c('img',{attrs:{"src":v.pathImg,"alt":"icon"}}),_c('span',[_vm._v(_vm._s(v.nickname))])])}),0)],1)}),0)],1)])]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(654);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_200bf7ff_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1253);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3396)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-200bf7ff"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_200bf7ff_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_200bf7ff_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_sensorPinResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3397);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1ce37451", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".line[data-v-200bf7ff]{width:100%;height:0;border-top:.03rem solid #f5f5f5}.bg[data-v-200bf7ff]{width:100%;height:1rem;background-color:#fff}.mescroll[data-v-200bf7ff]{position:fixed;top:5.95rem;bottom:0;height:auto}.main[data-v-200bf7ff]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.search-bar[data-v-200bf7ff]{padding:.6rem;height:3.2rem;position:relative;overflow:hidden;background-color:#fff}.search-bar img[data-v-200bf7ff]{width:1rem;height:1rem;position:absolute;top:51%;left:1rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.search-bar input[data-v-200bf7ff]{width:100%;height:2rem;line-height:2rem;text-indent:1.6rem;background:#f5f5f5;border-radius:.2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;outline:none;-webkit-transition:all .5s ease;transition:all .5s ease}.search-bar input[data-v-200bf7ff]::-webkit-input-placeholder{color:#999}.search-bar input[data-v-200bf7ff]:-ms-input-placeholder{color:#999}.search-bar input[data-v-200bf7ff]::placeholder{color:#999}.search-bar div[data-v-200bf7ff]{width:3.6rem;line-height:2rem;height:2rem;font-size:.75rem;font-family:PingFangSC-Regular;font-weight:400;color:#fff;background-color:#177afa;border-radius:.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:.6rem;right:-3.6rem;-webkit-transition:all .5s ease;transition:all .5s ease}.search-bar.active input[data-v-200bf7ff]{width:13.35rem}.search-bar.active div[data-v-200bf7ff]{right:.6rem}.head-list[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff}.head-list li[data-v-200bf7ff]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;line-height:2;padding-right:.9rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li[data-v-200bf7ff]:after{content:\"/\";position:absolute;right:.2rem;top:0;font-weight:600;font-size:.9rem}.head-list li.hide-line[data-v-200bf7ff]:nth-last-child(2):after,.head-list li[data-v-200bf7ff]:last-child:after{display:none}.head-list li span[data-v-200bf7ff]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list .lr[data-v-200bf7ff]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;white-space:nowrap}.head-list .lr span[data-v-200bf7ff]{font-size:.7rem}.head-list em[data-v-200bf7ff]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.panel-bg[data-v-200bf7ff]{height:.6rem;background-color:#fff}.panel-container[data-v-200bf7ff]{position:relative;padding:.6rem;background-color:#f5f5f5}.panel-container h2[data-v-200bf7ff]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-200bf7ff]{padding:.6rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-200bf7ff]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-200bf7ff]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-200bf7ff]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-200bf7ff]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-200bf7ff]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-200bf7ff]{display:block;margin-top:.25rem;font-size:.8rem;color:#333}.engine-panel[data-v-200bf7ff]{margin-top:-.6rem;border-radius:.6rem .6rem 0 0;z-index:2;padding-bottom:0}.engine-panel h2[data-v-200bf7ff]{margin:.4rem 0 .6rem;font-size:.8rem;font-weight:600;line-height:1.13rem}.question-entrance[data-v-200bf7ff]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-200bf7ff]{font-size:.75rem}.material-nav[data-v-200bf7ff]{position:relative;padding:.6rem .6rem .8rem;white-space:nowrap;overflow:hidden;background-color:#fff}.material-nav .nav-list[data-v-200bf7ff],.material-nav span[data-v-200bf7ff]{line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.material-nav span[data-v-200bf7ff]{padding:.46rem 1rem;margin-right:.6rem;background-color:#f5f5f5;border-radius:.86rem}.material-nav span.active[data-v-200bf7ff]{background-color:#177afa;color:#fff}.material-nav span[data-v-200bf7ff]:last-child{margin-right:0}.type-list[data-v-200bf7ff]{position:relative;z-index:1;padding:0 .6rem .8rem;background-color:#fff}.type-list .type-btn[data-v-200bf7ff]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:1rem;border:.03rem solid #ff3f3f;color:#ff3f3f;background-color:#fff6f6}.type-list .type-btn.active[data-v-200bf7ff]{color:#177afa;border-color:#177afa;background-color:#f1f7ff}.type-list .type-btn span[data-v-200bf7ff]{padding:0 .85rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:.8rem;font-weight:600}.material-container[data-v-200bf7ff]{position:relative;z-index:2;padding:0 .6rem;margin-top:-1rem;border-radius:.6rem .6rem 0 0;overflow:hidden;background-color:#f5f5f5}.material-container .type-name[data-v-200bf7ff]{line-height:1.13rem;margin:1rem 0 .4rem;font-size:.8rem;font-weight:600;color:#333;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.material-container .type-name span[data-v-200bf7ff]{margin-right:.2rem;font-weight:600;font-size:inherit}.material-container .material-list[data-v-200bf7ff]{overflow:hidden}.material-container .material-list li[data-v-200bf7ff]{padding:.8rem .6rem;margin-bottom:.6rem;min-height:2.85rem;background:#fff;border-radius:.4rem}.material-container .material-list li .title[data-v-200bf7ff]{line-height:1.25rem;font-size:.9rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC;color:#333}.material-container .material-list li.have-read .title[data-v-200bf7ff]{color:#999}.material-container .material-list li span[data-v-200bf7ff]{margin-top:.2rem;height:1rem;line-height:1rem;font-size:.7rem;font-weight:400;color:#999}.material-null[data-v-200bf7ff]{position:relative;z-index:2;margin-top:3.35rem;text-align:center}.material-null .tips[data-v-200bf7ff]{margin-bottom:2rem}.material-null .tips img[data-v-200bf7ff]{width:3.7rem}.material-null .tips p[data-v-200bf7ff]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-200bf7ff]{width:13.75rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.btn_2[data-v-200bf7ff]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-200bf7ff]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box[data-v-200bf7ff]{width:100%;margin-top:3rem;margin-bottom:1rem;background-color:#fff;border:.03rem solid #e6e6e6}.list-bottom-box .list-top[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem;padding:0 .6rem;background-color:#fafafa;border-bottom:.03rem solid #e6e6e6}.list-bottom-box .list-top span[data-v-200bf7ff]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-bottom-box .list-top .lf[data-v-200bf7ff]{font-size:.8rem;text-align:left}.list-bottom-box .list-top .lf em[data-v-200bf7ff]{display:inline-block;width:.75rem;height:.71rem;margin-right:.3rem;background-image:url(" + escape(__webpack_require__(94)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%;vertical-align:middle;margin-top:-2px}.list-bottom-box .list-top .lr[data-v-200bf7ff]{font-size:.7rem;color:#177afa;text-align:right}.list-bottom-box .list-top .lr em[data-v-200bf7ff]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.list-bottom-box .list-btn[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:10.4rem;height:1.8rem;margin:1.2rem auto;border:.03rem solid #177afa;border-radius:.3rem;color:#177afa;font-size:.8rem}.pop-container[data-v-200bf7ff]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-200bf7ff]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-200bf7ff]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-200bf7ff]{height:80.5%;margin-bottom:6rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-200bf7ff]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-200bf7ff]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-200bf7ff]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li .item[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;padding:0 .6rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;text-align:center}.pop-container .content-container .content-list li .item.active[data-v-200bf7ff]{background-color:#e7f1ff}.pop-container .content-container .content-list li .item.active span[data-v-200bf7ff]{color:#177afa}.pop-container .content-container .content-list li .item span[data-v-200bf7ff]{font-size:.8rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .foot-bar[data-v-200bf7ff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .reset-btn[data-v-200bf7ff]{width:6rem;line-height:1;padding:.65rem 0;border:.05rem solid #177afa;border-radius:.3rem;margin-right:.8rem;text-align:center;color:#177afa;font-size:.9rem}.pop-container .foot-bar .filter-btn[data-v-200bf7ff]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _throttleDebounce = __webpack_require__(21);
var _mescroll = _interopRequireDefault(__webpack_require__(42));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    MescrollVue: _mescroll.default
  }, _popup.default.name, _popup.default),
  props: {
    pageName: {
      type: String,
      default: ''
    },
    prevPathno: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {
      folderid: '',
      spname: '',
      keyword: '',
      headList: [],
      pathInfo: {
        pathName: '发动机品牌A'
      },
      vehicleDictionaryVoList: [],
      emissionPhaseList: [],
      // 排放阶段
      standardActiveIndex: 0,
      mescroll: null,
      mescrollDown: {
        use: false
      },
      mescrollUp: {
        auto: false,
        callback: this.getBrandListOrDataList,
        page: {
          num: 1,
          size: 10
        },
        htmlNodata: '<p class="upwarp-nodata">到底了^_^</p>'
      },
      showNullTip: false,
      materialList: [],
      fileTypeList: [],
      vehiclePartList: [],
      showPathInfo: false,
      show: false,
      fileTypeIds: [],
      partTypeIds: [],
      filterTypeName: '',
      filterNum: null,
      fileTypeIdsTemp: [],
      partTypeIdsTemp: [],
      haveReadDateId: [],
      dataCount: 0
    };
  },
  mounted: function mounted() {
    this.getDataAndPosition();
    document.title = this.spname;
    this.shareConfig();
  },
  methods: {
    /**
     * mescroll初始化完成方法
     * @param {object} mescroll 生成的mescroll实例
     */
    mescrollInit: function mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    lazyReset: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            this.materialList = [];
            this.mescroll.resetUpScroll();
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 获取子集车辆字典或者资料列表接口新
     * @param {Object} item 车辆信息
     */
    getBrandListOrDataList: function getBrandListOrDataList(page) {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        pathNo: this.$route.query.pathNo,
        vehiclePartId: this.$route.query.vehiclePartId,
        keyword: this.keyword,
        fileType: this.fileTypeIds.join(','),
        moudle: 5,
        pageNum: page.num,
        pageSize: page.size
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_VEHICLE_PART_AND_DATA_LIST, params, function (data) {
        _this.headList = data.headList;
        _this.pathInfo = {
          pathNo: data.pathNo,
          pathName: data.pathName
        };
        _this.folderid = data.folderid;
        _this.spname = data.spname;
        if (data.vehicleDictionaryVoList && data.vehicleDictionaryVoList.length !== 0) {
          // 有节点
          _this.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
        } else {
          // 排放阶段
          _this.emissionPhaseList = data.emissionPhaseList || [];
          _this.emissionPhaseList.unshift({
            code: null,
            name: '全部'
          });
          if (page.num === 1) {
            _this.materialList = [];
            // 埋点相关
            var _path = '';
            if (data.headList && data.headList.length > 0) {
              data.headList.forEach(function (v) {
                _path += v.pathNo + '_';
              });
              _path = _path.substring(0, _path.length - 1);
            }
            _this.dataCount = data.dataCount;
            if (page.firstFilter) {
              // 第一次进入结果页搜索埋点
              _this.enterLibraryresultpage({
                path: _path,
                amount: data.dataCount
              });
            } else {
              // 筛选结果页埋点
              _this.filterLibraryresult({
                path: _path,
                name: _this.filterTypeName,
                amount: data.dataCount
              });
            }
          }
          var dataList = data.shareList || [];
          _this.materialList = _this.materialList.concat(dataList);
          if (_this.materialList.length === 0) {
            _this.showNullTip = true;
            _this.mescroll.optUp.htmlNodata = '';
          } else {
            if (dataList.length < 10) {
              _this.showPathInfo = true;
            }
          }
          if (dataList.length > 0 && _this.haveReadDateId.length > 0) {
            dataList.forEach(function (item) {
              _this.haveReadDateId.forEach(function (v) {
                if (v === item.dateId) {
                  _this.$set(item, 'haveRead', true);
                }
              });
            });
          }
          _this.$nextTick(function () {
            _this.mescroll.endSuccess(dataList.length);
          });
          _this.vehiclePartList = data.vehiclePartList || [];
          _this.fileTypeList = data.fileTypeList || [];
        }
      }, function () {}, this, false);
    },
    /**
     * 发动机资料节点
     */
    openNode: function openNode(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: this.pageName,
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/").concat(this.pageName, "?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&modudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo, "$prevPathNo=").concat(this.prevPathno)
          }
        });
      } else {
        this.$router.push({
          name: this.pageName,
          path: "/v2/library/circuitDiagram2/".concat(this.pageName),
          query: {
            pageType: query.pageType,
            spid: query.spid,
            moudle: item.moudle,
            pathNo: item.pathNo,
            prevPathNo: this.prevPathno
          }
        });
      }
    },
    toggleNav: function toggleNav(item) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.query.moudle
      });
      if (this._Util.isApp()) {
        api.closeWin();
      } else {
        this.$router.go(-1);
      }
    },
    openPopup: function openPopup() {
      var _this2 = this;
      this.show = true;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        if (_this2.fileTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.fileTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (_this2.partTypeIds.indexOf(item.id) !== -1) {
          _this2.$set(item, 'selected', true);
          _this2.partTypeIdsTemp.push(item.id);
        } else {
          _this2.$set(item, 'selected', false);
        }
      });
      this.filterNum = this.fileTypeIds.length + this.partTypeIds.length;
    },
    selecteMissionPhase: function selecteMissionPhase(item, index) {
      this.standardActiveIndex = index;
      this.emissionPhase = item.code;
      this.getBrandListOrDataList({
        num: 1,
        size: 10
      });
    },
    selectType: function selectType(item, type) {
      this.$set(item, 'selected', !item.selected);
      var fileArrIndex = this.fileTypeIdsTemp.indexOf(item.id);
      var partArrIndex = this.partTypeIdsTemp.indexOf(item.id);
      if (type === 1) {
        // 资料类型
        if (fileArrIndex !== -1) {
          this.fileTypeIdsTemp.splice(fileArrIndex, 1);
        } else {
          this.fileTypeIdsTemp.push(item.id);
        }
      }
      if (type === 2) {
        // 部件模块
        if (partArrIndex !== -1) {
          this.partTypeIdsTemp.splice(partArrIndex, 1);
        } else {
          this.partTypeIdsTemp.push(item.id);
        }
      }
      this.filterNum = this.fileTypeIdsTemp.length + this.partTypeIdsTemp.length;
    },
    /**
     * 重置
     */
    resetFilterType: function resetFilterType() {
      var _this3 = this;
      this.fileTypeIdsTemp = [];
      this.partTypeIdsTemp = [];
      this.fileTypeList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.vehiclePartList.forEach(function (item) {
        _this3.$set(item, 'selected', false);
      });
      this.filterNum = null;
    },
    /**
     * 筛选
     */
    confrimFilterType: function confrimFilterType() {
      var _this4 = this;
      var arr1 = [];
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.fileTypeList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.name);
          _this4.fileTypeIds.push(item.id);
        }
      });
      this.vehiclePartList.forEach(function (item) {
        if (item.selected) {
          arr1.push(item.nickname);
          _this4.partTypeIds.push(item.id);
        }
      });
      this.filterTypeName = arr1.join('、');
      this.show = false;
      this.getBrandListOrDataList({
        num: 1,
        size: 10
      });
    },
    /**
     * 重新筛选
     */
    reserveData: function reserveData() {
      this.resetFilterType();
      this.fileTypeIds = [];
      this.partTypeIds = [];
      this.filterTypeName = '';
      this.getBrandListOrDataList({
        num: 1,
        size: 10
      });
    },
    /**
     * 打开文件
     */
    openFile: function openFile(item, index) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      item.path = _path;
      this.clickLibraryfile(_objectSpread({}, item), index + 1);
      if (item.type === 1) {
        // 该项为文件夹
        this.$router.push({
          name: 'inforindex1',
          query: {
            fileNo: item.fileNo,
            folderName: item.dataName,
            folderid: this.folderid
          }
        });
      } else if (item.type === 2) {
        // 该项为文件
        this.checkStatus(item);
      }
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            MessageBox({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            MessageBox({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/shopping/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            MessageBox({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.dataType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.dataType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (that.haveReadDateId.indexOf(item.dateId) === -1) {
        that.haveReadDateId.push(item.dateId);
        that.$set(item, 'haveRead', true);
      }
      that.saveDataAndPosition();
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 记录数据和位置
     */
    saveDataAndPosition: function saveDataAndPosition() {
      var scrollTop = this.mescroll.getScrollTop();
      var position = {
        scrollTop: scrollTop,
        spname: this.spname,
        materialList: this.materialList,
        headList: this.headList,
        haveReadDateId: this.haveReadDateId,
        keyword: this.keyword,
        fileTypeIds: this.fileTypeIds,
        fileTypeList: this.fileTypeList,
        vehiclePartList: this.vehiclePartList,
        filterNum: this.filterNum,
        filterTypeName: this.filterTypeName,
        dataCount: this.dataCount,
        pageNum: this.mescroll.optUp.page.num
      };
      sessionStorage.setItem('_dataList_' + this.$route.query.pageType, JSON.stringify(position));
    },
    /**
     * 获取上一次缓存的数据和位置
     */
    getDataAndPosition: function getDataAndPosition() {
      var position = JSON.parse(sessionStorage.getItem('_dataList_' + this.$route.query.pageType));
      if (position) {
        sessionStorage.removeItem('_dataList_' + this.$route.query.pageType);
        this.spname = position.spname;
        this.materialList = position.materialList;
        this.haveReadDateId = position.haveReadDateId;
        this.keyword = position.keyword;
        this.dataCount = position.dataCount;
        this.fileTypeIds = position.fileTypeIds;
        this.fileTypeList = position.fileTypeList;
        this.vehiclePartList = position.vehiclePartList;
        this.filterNum = position.filterNum;
        this.filterTypeName = position.filterTypeName;
        this.mescrollUp.page.num = position.pageNum;
        this.headList = position.headList;
        this.$nextTick(function () {
          // document.getElementById('savePosition').scrollTo(0, position.scrollTop)
          document.getElementById('savePosition').scrollTop = position.scrollTop;
        });
      } else {
        this.getBrandListOrDataList({
          num: 1,
          size: 10,
          firstFilter: true
        });
      }
    },
    /**
     * 找不到资料
     */
    findMaterial: function findMaterial() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=0c8bb422&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到资料?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 预约资料
     */
    reserveData1: function reserveData1() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=a6af5034&data=").concat(this.$route.query.pageType, "-").concat(this.$route.query.pathNo, "-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '预约资料',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(document.title, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: document.title,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    /**
     * 点击资料埋点
     */
    clickLibraryfile: function clickLibraryfile(item, index) {
      var pageNum = this.mescroll.optUp.page.num;
      var pageSize = this.mescroll.optUp.page.size;
      this._Util.sensorsCollect('click_libraryfile', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: this.filterName,
        file_id: item.dateId,
        file_name: item.dataName,
        file_sort: index,
        file_page: pageNum,
        file_page_sort: index % pageSize === 0 ? 10 : index % pageSize
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.partId,
        vehicledictionary_name: item.partName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: this.$route.query.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 进入结果页
     */
    enterLibraryresultpage: function enterLibraryresultpage(item) {
      this._Util.sensorsCollect('enter_libraryresultpage', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        libraryfile_amount: item.amount
      });
    },
    /**
     * 结果页筛选
     */
    filterLibraryresult: function filterLibraryresult(item) {
      this._Util.sensorsCollect('filter_libraryresult', {
        operation_page: document.title,
        vehicledictionary_path: item.path,
        filter_type: '资料类型',
        filter_name: this.filterTypeName || '全部',
        libraryfile_amount: item.amount
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"main"},[_c('div',{staticClass:"search-bar"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/course/course-search.png","alt":"搜索图标"}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.keyword),expression:"keyword"}],attrs:{"placeholder":"请输入关键词，搜电路图","type":"text"},domProps:{"value":(_vm.keyword)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.keyword=$event.target.value},function($event){return _vm.lazyReset()}]}})]),_vm._v(" "),_c('div',{staticClass:"line"}),_vm._v(" "),_c('div',{staticClass:"head-list"},_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item)}}},[_c('span',[_vm._v(_vm._s(item.partName))])])}),0),_vm._v(" "),(!_vm.showNullTip)?_c('mescroll-vue',{ref:"mescroll",attrs:{"id":"savePosition","down":_vm.mescrollDown,"up":_vm.mescrollUp},on:{"init":_vm.mescrollInit}},[(_vm.emissionPhaseList.length > 1)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"material-nav"},[_c('div',{staticClass:"nav-list"},[_vm._v("\n        排放阶段："),_vm._l((_vm.emissionPhaseList),function(item,index){return _c('span',{key:index,class:{'active': _vm.standardActiveIndex === index},on:{"click":function($event){return _vm.selecteMissionPhase(item, index)}}},[_vm._v(_vm._s(item.name))])})],2)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"main-wrap"},[(_vm.fileTypeList.length > 1 || _vm.vehiclePartList.length > 1)?_c('div',{staticClass:"type-list"},[_c('div',{staticClass:"type-btn",class:{'active': _vm.filterTypeName !== ''},on:{"click":function($event){return _vm.openPopup()}}},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '点击筛选资料' : '已选：' + _vm.filterTypeName))])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bg"}),_vm._v(" "),(_vm.materialList.length > 0)?_c('div',{staticClass:"material-container"},[_c('h4',{staticClass:"type-name"},[_c('span',[_vm._v(_vm._s(_vm.filterTypeName || '全部'))]),_vm._v("资料:")]),_vm._v(" "),_c('ul',{staticClass:"material-list"},_vm._l((_vm.materialList),function(item,index){return _c('li',{key:index,class:{'have-read': item.haveRead},on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.dataName))])])}),0),_vm._v(" "),(_vm.showPathInfo)?_c('div',{staticClass:"list-bottom-box"},[_c('div',{staticClass:"list-top"},[_c('span',{staticClass:"lf",on:{"click":function($event){return _vm.findMaterial()}}},[_c('em'),_vm._v("找不到资料")]),_vm._v(" "),_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料"),_c('em')])])]):_vm._e()]):_vm._e()])]):_vm._e(),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.filterTypeName === '' ? '暂时没有资料哦，重新筛选试试' : ("暂时没有 " + (_vm.pathInfo.pathName) + " 相关资料")))])]),_vm._v(" "),(_vm.filterTypeName !== '')?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("重新筛选")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData1()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("筛选资料")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[(_vm.fileTypeList && _vm.fileTypeList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("资料类型")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.fileTypeList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 1)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.name))])])])}),0),_vm._v(" "),(_vm.vehiclePartList && _vm.vehiclePartList.length > 0)?_c('div',{staticClass:"content-title"},[_vm._v("部件模块")]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehiclePartList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, 2)}}},[_c('div',{staticClass:"item",class:{'active': item.selected}},[_c('span',[_vm._v(_vm._s(item.nickname))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"reset-btn",on:{"click":function($event){return _vm.resetFilterType()}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"filter-btn",on:{"click":function($event){return _vm.confrimFilterType()}}},[_vm._v("筛选 "),_c('em',{directives:[{name:"show",rawName:"v-show",value:(_vm.filterNum),expression:"filterNum"}]},[_vm._v("("+_vm._s(_vm.filterNum)+"个条件)")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(655);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ddafc58a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1254);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3398)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ddafc58a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ddafc58a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ddafc58a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3399);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("93715e5c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".main[data-v-ddafc58a]{min-height:100%;background-color:#f5f5f5;overflow:hidden}.main .search[data-v-ddafc58a]{padding-top:0}.container p[data-v-ddafc58a]{margin:.6rem 0 .4rem;padding:0 .6rem;font-size:.7rem;font-weight:400;color:#333;line-height:1}.container .node-container[data-v-ddafc58a]{position:relative;background-color:#f5f5f5;border-radius:.6rem .6rem 0 0;overflow:hidden}.container .node-container .bg[data-v-ddafc58a]{position:absolute;top:3.33rem;left:0;width:100%;height:1.2rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.container .node-container .node-top-list[data-v-ddafc58a]{padding:.8rem .6rem;position:relative;white-space:nowrap;overflow:hidden;background-color:#fff}.container .node-container .node-top-list .nav-list[data-v-ddafc58a]{padding:0 .6rem;line-height:1;display:inline-block;color:#333;font-size:.8rem;font-weight:400}.container .node-container .node-top-list .nav-list span[data-v-ddafc58a]{display:inline-block;padding:.3rem 1rem;margin-right:.6rem;line-height:1.13rem;background-color:#f5f5f5;border-radius:.86rem;color:#333;font-size:.8rem;font-weight:400}.container .node-container .node-top-list .nav-list span.active[data-v-ddafc58a]{background-color:#177afa;color:#fff}.container .node-container .node-top-list .nav-list span[data-v-ddafc58a]:last-child{margin-right:0}.container .node-container .index-bar[data-v-ddafc58a]{position:relative;margin-top:.8rem}.index-list .panel[data-v-ddafc58a]{background-color:#fff;border-radius:.4rem;margin:0 .6rem}.index-list .panel li[data-v-ddafc58a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.03rem;line-height:1}.index-list .panel li img[data-v-ddafc58a]{display:block;width:1.35rem;height:1.35rem;margin:0 .72rem}.index-list .panel li span[data-v-ddafc58a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;border-bottom:1px solid #f5f5f5;font-size:.9rem;color:#333;font-weight:400}.index-list .panel li:last-child span[data-v-ddafc58a]{border:none}.question-entrance[data-v-ddafc58a]{margin:1.2rem 0;text-align:center;color:#177afa}.question-entrance span[data-v-ddafc58a]{font-size:.75rem}.ad[data-v-ddafc58a]{margin-top:2.95rem;margin-bottom:1.2rem;padding:0 .6rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(138);
var _indexAnchor = _interopRequireDefault(__webpack_require__(139));
__webpack_require__(140);
var _indexBar = _interopRequireDefault(__webpack_require__(141));
var _Search = _interopRequireDefault(__webpack_require__(75));
var _signAd = _interopRequireDefault(__webpack_require__(84));
var _signType = __webpack_require__(108);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    search: _Search.default,
    signAd: _signAd.default
  }, _indexBar.default.name, _indexBar.default), _indexAnchor.default.name, _indexAnchor.default),
  data: function data() {
    return {
      pageType: this.$route.query.pageType,
      signType: null,
      // 广告位
      indexList: [],
      vehicleList: []
    };
  },
  created: function created() {
    this.signType = (0, _signType.signType)(this.$route.query.pageType);
    this.getVehicleModuleList();
  },
  methods: {
    getVehicleModuleList: function getVehicleModuleList() {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        moudle: 1,
        // 类型
        vehiclePartId: this.vehiclePartId
      };
      this._Util.post(this._Api.POST_VEHICLE_MODULE_LIST, params, function (data) {
        _this.indexList = data.letterList;
        _this.vehicleList = data.vehicleLetterVos;
      }, function () {}, this, false);
    },
    /**
     * 发动机资料节点
     */
    openResult: function openResult(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'carNode',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/carNode?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(query.moudle, "&vehiclePartId=").concat(item.id, "&pageTitle=").concat(item.nickname)
          }
        });
      } else {
        this.$router.push({
          name: 'carNode',
          path: "/v2/library/circuitDiagram2/carNode",
          query: {
            pageType: query.pageType,
            spid: query.spid,
            moudle: query.moudle,
            vehiclePartId: item.id,
            pageTitle: item.nickname
          }
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.query.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: this.$route.query.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"main"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType}})],1),_vm._v(" "),_c('div',{staticClass:"container"},[_c('div',{staticClass:"node-container"},[_c('div',{staticClass:"index-bar"},[_c('van-index-bar',{attrs:{"index-list":_vm.indexList,"highlight-color":"#177afa"}},_vm._l((_vm.vehicleList),function(item,index){return _c('div',{key:index,staticClass:"index-list"},[_c('van-index-anchor',{attrs:{"index":item.index}}),_vm._v(" "),_c('ul',{staticClass:"panel"},_vm._l((item.vehiclePartVoList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.openResult(v)}}},[_c('img',{attrs:{"src":v.pathImg,"alt":"icon"}}),_c('span',[_vm._v(_vm._s(v.nickname))])])}),0)],1)}),0)],1)])]),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])]),_vm._v(" "),_c('div',{staticClass:"ad"},[_c('sign-ad',{attrs:{"sign-type":_vm.signType}})],1)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(656);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7014f34c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1255);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3400)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7014f34c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7014f34c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7014f34c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carNode_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3401);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("229ab5cc", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".main[data-v-7014f34c]{background-color:#f5f5f5;overflow:hidden}.search[data-v-7014f34c]{padding-top:0}.ad[data-v-7014f34c]{padding:0 .6rem;overflow:hidden}.ad .ad-container[data-v-7014f34c]{margin-top:2.95rem;margin-bottom:1.2rem}.question-entrance[data-v-7014f34c]{margin:.6rem;text-align:center;color:#177afa;font-size:.75rem}.question-entrance span[data-v-7014f34c]{font-size:.8rem}.index-list .panel[data-v-7014f34c]{background-color:#fff;border-radius:.4rem;margin:0 .6rem}.index-list .panel li[data-v-7014f34c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.03rem;line-height:1}.index-list .panel li img[data-v-7014f34c]{display:block;width:1.35rem;height:1.35rem;margin:0 .72rem}.index-list .panel li span[data-v-7014f34c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;border-bottom:1px solid #f5f5f5;font-size:.9rem;color:#333;font-weight:400}.panel-container[data-v-7014f34c]{position:relative;padding:.6rem;background-color:#f5f5f5}.panel-container h2[data-v-7014f34c]{margin-bottom:.4rem;font-size:.7rem;font-weight:400;color:#333}.panel-container .panel[data-v-7014f34c]{padding:.6rem 0;margin-bottom:.6rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-container .panel .panel-title[data-v-7014f34c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.25rem}.panel-container .panel .panel-title span[data-v-7014f34c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;font-weight:600;color:#333}.panel-container .panel .panel-title .arrow-right[data-v-7014f34c]{width:.5rem;height:.5rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.panel-container .panel .list-ul[data-v-7014f34c]{width:100%;overflow:hidden}.panel-container .panel .list-ul .list-li[data-v-7014f34c]{display:inline-block;width:25%;min-height:3.6rem;margin:.6rem 0 .2rem;padding:0 .2rem;vertical-align:top;text-align:center}.panel-container .panel .list-ul .list-li .pic[data-v-7014f34c]{display:inline-block;width:2.4rem;height:2.4rem;vertical-align:top;background-color:#f5f5f5;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden}.panel-container .panel .list-ul .list-li .pic img[data-v-7014f34c]{max-width:100%;border:none;outline:none}.panel-container .panel .list-ul .list-li .name[data-v-7014f34c]{display:block;margin-top:.25rem;font-size:.8rem;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(138);
var _indexAnchor = _interopRequireDefault(__webpack_require__(139));
__webpack_require__(140);
var _indexBar = _interopRequireDefault(__webpack_require__(141));
var _vant = __webpack_require__(12);
var _Search = _interopRequireDefault(__webpack_require__(75));
var _signType = __webpack_require__(108);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _indexBar.default.name, _indexBar.default), _indexAnchor.default.name, _indexAnchor.default), "search", _Search.default),
  data: function data() {
    return {
      spname: '',
      pageType: '',
      placeholder: '请输入关键词，搜电路图',
      brand: [],
      indexList: [],
      vehicleList: [],
      signType: null
    };
  },
  created: function created() {
    document.title = this.$route.query.pageTitle;
    this.pageType = this.$route.query.pageType;
    this.signType = (0, _signType.signType)(this.$route.query.pageType);
    this.firstVehicleList();
    this.getVehicleList();
    this.shareConfig();
  },
  methods: {
    /**
     * 获取第一层车辆信息列表
     */
    firstVehicleList: function firstVehicleList() {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid
      };
      this._Util.post(this._Api.POST_FIRST_VEHICLE_LIST, params, function (data) {
        _this.brand = data;
        _this.spname = data.spname;
      }, function () {}, this, false);
    },
    /**
     * 获取第一层车辆字母排序列表
     */
    getVehicleList: function getVehicleList() {
      var _this2 = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_LIST_SORT, params, function (data) {
        _this2.indexList = data.letterList;
        _this2.vehicleList = data.vehicleLetterVos;
      }, function () {}, this, false);
    },
    openBrand: function openBrand(item) {
      var query = this.$route.query;
      if (this._Util.isApp()) {
        this.removeEvent();
      }
      this.clickVehicledictionary(item, '');
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'carNode2',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/carNode2?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo, "&vehiclePartId=").concat(query.vehiclePartId, "&pageTitle=").concat(this.$route.query.pageTitle)
          }
        });
      } else {
        this.$router.push({
          name: 'carNode2',
          path: "/v2/library/circuitDiagram2/carNode2",
          query: {
            pageType: query.pageType,
            spid: query.spid,
            moudle: item.moudle,
            pathNo: item.pathNo,
            vehiclePartId: query.vehiclePartId,
            pageTitle: this.$route.query.pageTitle
          }
        });
      }
    },
    /**
     * 找不到品牌/型号
     */
    feedback: function feedback() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=558af74a&data=").concat(this.$route.query.pageType, "-\u7A7A-new");
      this.clickFeedbacklink({
        page: document.title,
        content: '找不到品牌/型号?',
        url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     * @param {String} url 操作页面节点路径
     */
    clickVehicledictionary: function clickVehicledictionary(item, url) {
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: url
      });
    },
    /**
     * 点击反馈链接埋点
     * @param {Object} item 反馈信息
     */
    clickFeedbacklink: function clickFeedbacklink(item) {
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: item.page,
        feedbacklink_content: item.content,
        jump_url: item.url
      });
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vehicle-page"},[_c('div',{staticClass:"main"},[_c('div',{staticClass:"search"},[_c('search',{attrs:{"page-type":_vm.pageType,"placeholder":_vm.placeholder}})],1),_vm._v(" "),_c('div',{staticClass:"panel-container"},[_c('h2',[_vm._v("快捷查找")]),_vm._v(" "),_c('div',{staticClass:"panel"},[_c('ul',{staticClass:"list-ul"},_vm._l((_vm.brand.vehicleDictionaryList),function(item,index){return _c('li',{key:index,staticClass:"list-li",on:{"click":function($event){return _vm.openBrand(item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":item.pathOriginalImg,"alt":item.pathName}})]),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])}),0)])]),_vm._v(" "),_c('van-index-bar',{attrs:{"index-list":_vm.indexList,"highlight-color":"#177afa"}},_vm._l((_vm.vehicleList),function(item,index){return _c('div',{key:index,staticClass:"index-list"},[_c('van-index-anchor',{attrs:{"index":item.index}}),_vm._v(" "),_c('ul',{staticClass:"panel"},_vm._l((item.vehicleDictionaryVoList),function(v,i){return _c('li',{key:i,on:{"click":function($event){return _vm.openBrand(v)}}},[_c('img',{attrs:{"src":v.pathOriginalImg,"alt":"icon"}}),_c('span',[_vm._v(_vm._s(v.pathName))])])}),0)],1)}),0),_vm._v(" "),_c('div',{staticClass:"question-entrance"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])],1)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(657);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d49571e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1256);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3402)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4d49571e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d49571e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d49571e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carNode2_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3403);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0d18f5ef", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".brand-page[data-v-4d49571e]{background-color:#f5f5f5}.head-list[data-v-4d49571e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.75rem;padding:0 .6rem;background-color:#fff;border-bottom:.03rem solid #eee}.head-list li[data-v-4d49571e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-list li:last-child i[data-v-4d49571e],.head-list li:nth-last-child(2) i[data-v-4d49571e]{display:none}.head-list li span[data-v-4d49571e]{font-size:.9rem;font-weight:600;color:#177afa;font-family:PingFangSC-Regular,PingFang SC;text-decoration:underline}.head-list li i[data-v-4d49571e]{margin:0 .2rem;font-weight:600;font-size:.9rem}.head-list .lr[data-v-4d49571e]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.head-list em[data-v-4d49571e]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.main[data-v-4d49571e]{width:100%;background-color:#f5f5f5}.van-popup[data-v-4d49571e]{background-color:transparent}.brand-list-components[data-v-4d49571e]{position:relative;width:100%}.shadow-bg[data-v-4d49571e]{position:absolute;left:0;top:1.2rem;width:100%;height:4.55rem;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f5f5f5));background:linear-gradient(180deg,#fff,#f5f5f5)}.nav[data-v-4d49571e]{position:relative;padding:.8rem .6rem 1.35rem;white-space:nowrap;overflow:hidden;background-color:#fff}.nav .nav-list[data-v-4d49571e]{line-height:1;display:inline-block;padding:0 .6rem}.nav span[data-v-4d49571e]{display:inline-block;padding:.46rem 1rem;margin-right:.6rem;color:#333;font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC;line-height:1;background-color:#f5f5f5;border-radius:.86rem}.nav span.active[data-v-4d49571e]{background-color:#177afa;color:#fff}.nav span[data-v-4d49571e]:last-child{margin-right:0}.brand-list[data-v-4d49571e]{margin-top:-.55rem;padding:.6rem;position:relative;z-index:2;border-radius:.6rem .6rem 0 0;background-color:#f5f5f5}.brand-list .brand-title[data-v-4d49571e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.brand-list .brand-title .lf[data-v-4d49571e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;margin-bottom:.6rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.brand-list .brand-title .lr[data-v-4d49571e]{height:1rem;margin-bottom:.65rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;line-height:1rem}.brand-list .brand-title .lr em[data-v-4d49571e]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.brand-list .brand-inner li[data-v-4d49571e]{height:3.6rem;padding:0 .6rem;background-color:#fff;border-radius:.4rem;margin-bottom:.6rem}.brand-list .brand-inner .pic[data-v-4d49571e],.brand-list .brand-inner li[data-v-4d49571e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.brand-list .brand-inner .pic[data-v-4d49571e]{width:2.4rem;height:2.4rem;padding:.3rem;margin-right:.6rem;border:1px solid #e6e6e6;border-radius:.2rem;overflow:hidden}.brand-list .brand-inner .pic img[data-v-4d49571e]{width:100%;vertical-align:top}.brand-list .brand-inner .info[data-v-4d49571e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.brand-list .brand-inner .info p[data-v-4d49571e]{line-height:1.25rem;font-size:.9rem;color:#333;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.brand-list .brand-inner .info span[data-v-4d49571e]{line-height:1rem;font-size:.7rem;color:#999;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.brand-list .brand-inner .arrow-r[data-v-4d49571e]{width:.5rem;height:.5rem;margin-left:.6rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.material-null[data-v-4d49571e]{position:relative;z-index:2;margin-top:3.35rem;text-align:center}.material-null .tips[data-v-4d49571e]{margin-bottom:2rem}.material-null .tips img[data-v-4d49571e]{width:3.7rem}.material-null .tips p[data-v-4d49571e]{margin-top:.4rem;line-height:1.1rem;font-size:.8rem;color:#666;font-weight:400}.btn_1[data-v-4d49571e]{width:13.75rem;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.8rem;font-weight:600;color:#177afa;text-align:center;border:1px solid #177afa;border-radius:.3rem}.btn_2[data-v-4d49571e]{margin-top:1rem;line-height:1.6;color:#177afa}.btn_2 em[data-v-4d49571e]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container[data-v-4d49571e]{height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-4d49571e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-4d49571e]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-4d49571e]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-4d49571e]{height:90%;overflow-y:auto}.pop-container .content-container .content-title[data-v-4d49571e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-title .lf[data-v-4d49571e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.pop-container .content-container .content-title .lr[data-v-4d49571e]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.pop-container .content-container .content-title em[data-v-4d49571e]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .content-container .content-list[data-v-4d49571e]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-4d49571e]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;height:2.2rem;padding:0 .6rem;margin-bottom:.6rem;background-color:#f5f5f5;border-radius:.2rem}.pop-container .content-container .content-list li span[data-v-4d49571e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;line-height:1;margin:0;font-size:.8rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container .content-list li em[data-v-4d49571e]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .bottom-btn[data-v-4d49571e]{padding:1.2rem 0;text-align:center;color:#177afa;font-size:.75rem}.pop-container .foot-bar[data-v-4d49571e]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%}.pop-container .foot-bar .btn[data-v-4d49571e]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _popup.default.name, _popup.default),
  data: function data() {
    return {
      pathNo: this.$route.params.pathNo,
      spid: this.$route.params.spid,
      headList: [],
      // 顶部导航
      pathInfo: {},
      dataNumType: 0,
      activeIndex: 0,
      transverseList: [],
      // 二级
      portraitList: [],
      // 三级
      show: false,
      path3: 0,
      // 三级是否有资料
      vehicleDictionaryVoList: [],
      // 车型车系
      typeIndex: null,
      showNullTip: false,
      parentPathName: ''
    };
  },
  created: function created() {
    document.title = this.$route.query.pageTitle;
    this.getBrandList();
    this.shareConfig();
  },
  methods: {
    /**
     * 顶部导航
     * @param {Number} index 导航索引
     */
    toggleNav: function toggleNav(item, index) {
      this.clickVehicledictionary({
        pathNo: item.pathNo,
        pathName: item.pathName,
        moudle: this.$route.query.moudle
      });
      if (index > 0 && index === this.headList.length - 1) {
        this.show = true;
      } else {
        if (this._Util.isApp()) {
          api.closeWin();
        } else {
          this.$router.go(-1);
        }
      }
    },
    /**
     * 获取二三级车辆字典
     * @param {Object} item 车辆信息
     */
    getBrandList: function getBrandList(item) {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        pathNo: this.$route.query.pathNo,
        subsetPathNo: item && item.pathNo || '',
        vehiclePartId: this.$route.query.vehiclePartId
      };
      this.showNullTip = false;
      this._Util.post(this._Api.POST_SUB_LEVE_VEHICLE_LIST, params, function (data) {
        _this.transverseList = [];
        if (data.transverseList && data.transverseList.length > 0) {
          data.transverseList.forEach(function (item) {
            _this.transverseList.push({
              pathNo: item.pathNo,
              pathName: item.pathName
            });
          });
        }
        _this.transverseList.unshift({
          pathNo: '',
          pathName: '全部'
        });
        _this.portraitList = data.transverseList || [];
        if (_this.portraitList.length === 0) {
          _this.showNullTip = true;
        }
        _this.pathInfo = {
          pathNo: data.pathNo,
          pathName: data.pathName
        };
        _this.headList = data.headList;
      }, function () {}, this, false);
    },
    /**
     * 二级菜单
     * @param {Object} item 品牌信息
     * @param {Number} index 索引
     */
    toggleBrandList: function toggleBrandList(item, index) {
      this.activeIndex = index;
      this.clickVehicledictionary(item);
      this.getBrandList(item);
    },
    /**
     * 点击节点埋点
     * @param {Object} item 节点信息
     */
    clickVehicledictionary: function clickVehicledictionary(item) {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_vehicledictionary', {
        operation_page: document.title,
        vehicledictionary_id: item.pathNo,
        vehicledictionary_name: item.pathName,
        vehicledictionary_sort: item.rankValue && item.rankValue.toString() || '0',
        vehicledictionary_model: item.moudle,
        vehicledictionary_path: _path
      });
    },
    /**
     * @param {Object} item 车型信息
     */
    selectBrand: function selectBrand(item) {
      var _this2 = this;
      this.clickVehicledictionary(item);
      var params = {
        pathNo: item.pathNo,
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        moudle: this.$route.query.moudle
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        // 是否有车型车系
        _this2.path3 = data;
        _this2.parentPathName = data.pathName;
        if (!data.vehicleDictionaryVoList || data.vehicleDictionaryVoList && data.vehicleDictionaryVoList.length > 0) {
          _this2.show = true;
          _this2.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
        } else {
          var query = _this2.$route.query;
          if (_this2._Util.isApp()) {
            _this2.removeEvent();
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'carResult',
                url: "".concat(location.origin, "/v2/library/circuitDiagram2/carResult?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo, "&vehiclePartId=").concat(query.vehiclePartId, "&pageTitle=").concat(_this2.$route.query.pageTitle)
              }
            });
          } else {
            _this2.$router.push({
              name: 'carResult',
              path: "/v2/library/circuitDiagram2/carResult",
              query: {
                pageType: query.pageType,
                spid: query.spid,
                moudle: item.moudle,
                pathNo: item.pathNo,
                vehiclePartId: query.vehiclePartId,
                pageTitle: _this2.$route.query.pageTitle
              }
            });
          }
        }
      }, function () {}, this, false);
    },
    selectType: function selectType(item, index) {
      this.typeIndex = this.typeIndex === index ? null : index;
      var query = this.$route.query;
      this.show = false;
      this.clickVehicledictionary(item);
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'carResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/carResult?pageType=").concat(query.pageType, "&spid=").concat(query.spid, "&moudle=").concat(item.moudle, "&pathNo=").concat(item.pathNo, "&vehiclePartId=").concat(query.vehiclePartId, "&pageTitle=").concat(this.$route.query.pageTitle)
          }
        });
      } else {
        this.$router.push({
          name: 'carResult',
          path: "/v2/library/circuitDiagram2/carResult",
          query: {
            pageType: query.pageType,
            spid: query.spid,
            moudle: item.moudle,
            pathNo: item.pathNo,
            vehiclePartId: query.vehiclePartId,
            pageTitle: this.$route.query.pageTitle
          }
        });
      }
    },
    closePopup: function closePopup() {
      this.show = false;
      this.typeIndex = null;
    },
    /**
     * 通用资料
     */
    generalInfo: function generalInfo(item) {
      var query = this.$route.query;
      this.clickCommondata();
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'commonResult',
            url: "".concat(location.origin, "/v2/library/circuitDiagram2/commonResult/").concat(query.pageType, "/").concat(query.spid, "/").concat(query.moudle, "/").concat(item.pathNo, "?vehiclePartId=").concat(query.vehiclePartId, "&pageTitle=").concat(this.$route.query.pageTitle)
          }
        });
      } else {
        this.$router.push({
          path: "/v2/library/circuitDiagram2/commonResult/".concat(query.pageType, "/").concat(query.spid, "/").concat(query.moudle, "/").concat(item.pathNo, "?vehiclePartId=").concat(query.vehiclePartId, "&pageTitle=").concat(this.$route.query.pageTitle)
        });
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: "".concat(that.spname, "\u8D44\u6599"),
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
     * 查看通用资料埋点
     */
    clickCommondata: function clickCommondata() {
      var _path = '';
      if (this.headList && this.headList.length > 0) {
        this.headList.forEach(function (v) {
          _path += v.pathNo + '_';
        });
        _path = _path.substring(0, _path.length - 1);
      }
      this._Util.sensorsCollect('click_commondata', {
        operation_page: document.title,
        vehicledictionary_path: _path,
        libraryfile_amount: ''
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"brand-page"},[_c('ul',{staticClass:"head-list"},[_vm._l((_vm.headList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toggleNav(item, index)}}},[_c('span',[_vm._v(_vm._s(item.pathName))]),_c('i',[_vm._v("/")])])}),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_c('span',[_vm._v(_vm._s(_vm.pathInfo.pathName))]),_vm._v(" 通用资料"),_c('em')]):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"brand-list-components"},[(_vm.transverseList.length > 1)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"nav",on:{"touchmove":function($event){$event.preventDefault();}}},[_c('div',{staticClass:"nav-list"},_vm._l((_vm.transverseList),function(item,index){return _c('span',{key:index,staticClass:"nav-item",class:{'active': _vm.activeIndex === index},on:{"click":function($event){return _vm.toggleBrandList(item, index)}}},[_vm._v(_vm._s(item.pathName))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"brand-list"},_vm._l((_vm.portraitList),function(item,index){return _c('div',{key:index},[(item.sonVehicleDictionarys)?_c('div',{staticClass:"brand-title"},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(item.pathName))]),(item.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(item)}}},[_vm._v(_vm._s(item.pathName)+" 通用资料"),_c('em')]):_vm._e()]):_vm._e(),_vm._v(" "),_c('ul',{staticClass:"brand-inner"},_vm._l((item.sonVehicleDictionarys),function(_item,i){return _c('li',{key:i,on:{"click":function($event){return _vm.selectBrand(_item)}}},[_c('span',{staticClass:"pic"},[_c('img',{attrs:{"src":_item.pathOriginalImg,"alt":_item.pathName}})]),_vm._v(" "),_c('div',{staticClass:"info"},[_c('p',[_vm._v(_vm._s(_item.pathName))])]),_vm._v(" "),_c('span',{staticClass:"arrow-r"})])}),0)])}),0),_vm._v(" "),(_vm.showNullTip)?_c('div',{staticClass:"material-null"},[_c('div',{staticClass:"tips"},[_c('img',{attrs:{"src":"http://static2.kaxiuyun.com/kxy/datalib/no_gift.png","alt":"暂无资料"}}),_vm._v(" "),_c('p',[_vm._v("暂时没有 "+_vm._s(_vm.pathInfo.pathName)+" 相关资料")])]),_vm._v(" "),(_vm.dataNumType === 1)?_c('div',{staticClass:"btn_1",on:{"click":function($event){return _vm.generalInfo(_vm.pathInfo)}}},[_vm._v("查看 "+_vm._s(_vm.pathInfo.pathName)+" 通用资料")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"btn_2",on:{"click":function($event){return _vm.reserveData()}}},[_vm._v("登记想要的资料 "),_c('em')])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"pop-container",attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){return _vm.closePopup()}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"content-container"},[_c('div',{staticClass:"content-title"},[_c('span',{staticClass:"lf"},[_vm._v(_vm._s(_vm.parentPathName))]),(_vm.path3.dataNumType === 1)?_c('span',{staticClass:"lr",on:{"click":function($event){return _vm.generalInfo(_vm.path3)}}},[_vm._v(_vm._s(_vm.parentPathName)+"通用资料"),_c('em')]):_vm._e()]),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.vehicleDictionaryVoList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(item, index)}}},[_c('span',{class:{'active': _vm.typeIndex === index}},[_vm._v(_vm._s(item.pathName))]),_c('em')])}),0),_vm._v(" "),_c('div',{staticClass:"bottom-btn"},[_c('span',{on:{"click":function($event){return _vm.feedback()}}},[_vm._v("找不到品牌/型号？")])])])])],1)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(658);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b31e43f2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1257);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3404)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b31e43f2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b31e43f2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b31e43f2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_carResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3405);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("773e8b42", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".panel-grid[data-v-b31e43f2]{position:relative;padding:.6rem}.panel-grid .panel[data-v-b31e43f2]{padding:.6rem .45rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.panel-grid .panel .list-ul[data-v-b31e43f2]{width:100%;margin-bottom:-.4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li[data-v-b31e43f2]{float:left;width:33.334%;margin-bottom:.4rem;text-align:center}.panel-grid .panel .list-ul .list-li .panel-inner[data-v-b31e43f2]{display:inline-block;width:96%;background-color:#fff;border:1px solid #e6e6e6;border-radius:.4rem;overflow:hidden;vertical-align:top}.panel-grid .panel .list-ul .list-li .panel-inner .pic[data-v-b31e43f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:4rem;overflow:hidden}.panel-grid .panel .list-ul .list-li .panel-inner .pic img[data-v-b31e43f2]{height:90%;vertical-align:top;border:none;outline:none}.panel-grid .panel .list-ul .list-li .panel-inner .name[data-v-b31e43f2]{display:block;height:1.65rem;line-height:1.65rem;font-size:.75rem;color:#333;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pop-container[data-v-b31e43f2]{background-color:#fff;border-radius:.6rem .6rem 0 0;height:90%;overflow:hidden}.pop-container .head[data-v-b31e43f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-b31e43f2]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-b31e43f2]{position:absolute;right:0;padding:1rem .8rem;line-height:1;font-size:.8rem}.pop-container .content-container[data-v-b31e43f2]{height:90%;padding-bottom:2rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-b31e43f2]{padding:.8rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .popup-type[data-v-b31e43f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:1rem;padding:0 .6rem}.pop-container .content-container .popup-type .lf[data-v-b31e43f2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.13rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.13rem}.pop-container .content-container .popup-type .lr[data-v-b31e43f2]{font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa}.pop-container .content-container .popup-type em[data-v-b31e43f2]{display:inline-block;width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.pop-container .content-container .content-list[data-v-b31e43f2]{padding:0 .5rem;overflow:hidden}.pop-container .content-container .content-list li[data-v-b31e43f2]{float:left;width:50%;margin-bottom:.6rem}.pop-container .content-container .content-list li span[data-v-b31e43f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.2rem;line-height:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 .5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.8rem;white-space:nowrap;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.pop-container .content-container .content-list li span.active[data-v-b31e43f2]{background-color:#e7f1ff;color:#177afa}.pop-container .foot-bar[data-v-b31e43f2]{border-top:1px solid #eee;padding:.35rem .85rem}.pop-container .foot-bar .btn[data-v-b31e43f2]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#177afa;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _nodeOrresult = _interopRequireDefault(__webpack_require__(330));
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({
    nodeResult: _nodeOrresult.default
  }, _popup.default.name, _popup.default),
  data: function data() {
    return {
      pageName: ''
    };
  },
  created: function created() {
    document.title = this.$route.query.pageTitle;
    this.getLastNode();
  },
  methods: {
    getLastNode: function getLastNode() {
      var _this = this;
      var params = {
        pageType: this.$route.query.pageType,
        spid: this.$route.query.spid,
        pathNo: this.$route.query.pathNo
      };
      this._Util.post(this._Api.POST_SUB_VEHICLE_DATA_LIST_NEW, params, function (data) {
        _this.vehicleDictionaryVoList = data.vehicleDictionaryVoList;
      }, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"product-page"},[_c('node-result',{attrs:{"page-name":_vm.pageName}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(659);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e687b80_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1258);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3406)
  __webpack_require__(3408)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2e687b80"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e687b80_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2e687b80_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3407);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5bf3fa06", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".efi-index .encry{color:#1b7ffa}.efi-index .encry,.efi-index .encry-two{font:16px/1.1rem PingFangSC-Regular}.efi-index .highlight{font:700 18px/1.25rem PingFangSC-Semibold;color:#1b7ffa}.efi-index .mescroll-empty{background:#f5f5f5}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3409);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7ef6c0fd", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".efi-index .wrap[data-v-2e687b80],.efi-index[data-v-2e687b80]{background:#f5f5f5}.efi-index .wrap .input-box[data-v-2e687b80]{background:#fff;padding:.6rem;position:relative}.efi-index .wrap .input-box i[data-v-2e687b80]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:1.1rem;left:1rem}.efi-index .wrap .input-box input[data-v-2e687b80]{background:#f5f5f5;height:2rem;border-radius:4px;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;padding-right:2rem;-webkit-transition:.3s;transition:.3s}.efi-index .wrap .input-box input.input-animate[data-v-2e687b80]{width:-webkit-calc(100% - 4.2rem);width:calc(100% - 4.2rem)}.efi-index .wrap .input-box .img-box[data-v-2e687b80]{position:absolute;right:.6rem;top:.6rem;width:2rem;height:2rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.efi-index .wrap .input-box .img-box img[data-v-2e687b80]{width:.8rem;height:.8rem}.efi-index .wrap .search[data-v-2e687b80]{background:#fff;padding-top:0}.efi-index .wrap .search .search-wrap[data-v-2e687b80]{padding:.6rem 0;border-radius:.6rem .6rem 0 0;background:#f5f5f5}.efi-index .wrap .search .search-wrap .search-history[data-v-2e687b80]{margin:0 .6rem;overflow:hidden}.efi-index .wrap .search .search-wrap .search-history ul[data-v-2e687b80]{font-size:0;display:inline-block;white-space:nowrap}.efi-index .wrap .search .search-wrap .search-history ul li[data-v-2e687b80]{display:inline-block;line-height:1.3rem;padding:0 .4rem;background:#fff;border-radius:.2rem;margin-right:.4rem;color:#666;font-size:13px;font-family:PingFangSC-Regular}.efi-index .wrap .hot[data-v-2e687b80]{padding:0 .6rem;margin-top:.8rem}.efi-index .wrap .hot .title[data-v-2e687b80]{color:#333;font:14px/1rem PingFangSC-Regular;margin-bottom:.4rem}.efi-index .wrap .hot.hot-class[data-v-2e687b80]{margin-top:.4rem}.efi-index .wrap .hot.hot-class ul[data-v-2e687b80]{background:#fff;padding:.8rem 0;border-radius:.4rem;box-sizing:border-box;font-size:0}.efi-index .wrap .hot.hot-class ul li[data-v-2e687b80]{width:25%;box-sizing:border-box;text-align:center;display:inline-block;vertical-align:top;margin-top:.8rem}.efi-index .wrap .hot.hot-class ul li.limt-four[data-v-2e687b80]{margin:0}.efi-index .wrap .hot.hot-class ul li img[data-v-2e687b80]{width:2rem;height:2rem;border-radius:.4rem}.efi-index .wrap .hot.hot-class ul li p[data-v-2e687b80]{margin-top:.2rem;color:#333;font:16px/1.1rem PingFangSC-Regular}.efi-index .wrap .hot.hot-entry ul[data-v-2e687b80]{background:#fff;border-radius:.4rem;box-sizing:border-box}.efi-index .wrap .hot.hot-entry ul li[data-v-2e687b80]{padding:.8rem .6rem;border-top:1px solid #ededed;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex}.efi-index .wrap .hot.hot-entry ul li[data-v-2e687b80]:first-child{border:0}.efi-index .wrap .hot.hot-entry ul li img[data-v-2e687b80]{display:block;width:5.35rem;height:4rem;border-radius:.2rem;margin-right:.6rem}.efi-index .wrap .hot.hot-entry ul li .right[data-v-2e687b80]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.efi-index .wrap .hot.hot-entry ul li .right .name[data-v-2e687b80]{margin-top:.15rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.efi-index .wrap .hot.hot-entry ul li .right span[data-v-2e687b80]{margin-top:.2rem;color:#666;font:16px/1.1rem PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      id: this.$route.query.id,
      tabScroll: null,
      mescroll: null,
      searchCont: '',
      // 搜索的词条内容
      historyList: [],
      classList: [],
      encyList: [],
      // 词条列表
      hotEntryList: [],
      scrollTop: 0
    };
  },
  watch: {
    searchCont: function searchCont(newval, oldval) {
      if (!newval) {
        this.mescroll.setPageNum(1);
        this.mescroll.resetUpScroll();
      } else {
        this.mescroll.setPageNum(1);
      }
    }
  },
  created: function created() {
    this.getEntryClassifyList();
    this.getHistory();
    this.share();
  },
  mounted: function mounted() {
    var _this2 = this;
    var that = this;
    var saveData = JSON.parse(sessionStorage.getItem('saveData'));
    if (saveData && saveData.saveFlag === 1) {
      if (saveData.type === 'hotEntryList') {
        this.searchCont = '';
        this.hotEntryList = saveData.data;
      } else {
        this.searchCont = saveData.searchCont;
        this.encyList = saveData.data;
      }
      this.initMescroll(false, saveData.pageNum);
      setTimeout(function () {
        _this2.mescroll.scrollTo(saveData.scrollTop, 0);
        sessionStorage.removeItem('saveData');
      }, 300);
    } else {
      this.initMescroll(true);
    }
    // 初始化搜索历史记录区域
    setTimeout(function () {
      _this2.tabScroll = new _betterScroll.default('.search-history', {
        scrollX: true,
        scrollY: false,
        click: true,
        bounceTime: 300,
        swipeBounceTime: 300
      });
    }, 500);
    if (that._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          that.getHistory();
          that.share();
        });
      }, 300);
    }
  },
  methods: {
    /**
        * 正则匹配词条并高亮显示
      */
    matchFn: function matchFn(str) {
      return str.replace(/\{\{(.+?)\}\}/g, function (t1, t2) {
        return '<i class="encry">' + t2 + '</i>';
      });
    },
    /**
        * 正则匹配词条但不高亮
      */
    matchFnTwo: function matchFnTwo(str) {
      return str.replace(/\{\{(.+?)\}\}/g, function (t1, t2) {
        return '<i class="encry-two">' + t2 + '</i>';
      });
    },
    /**
       * 移除app端对分享事件的监听，防止分享时，出发多次分享配置
      */
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /*
        * 高亮关键字 text =>内容  words:关键词   tag 被包裹的标签
      */
    highLightKeywords: function highLightKeywords(text, words, tag) {
      tag = tag || 'span'; // 默认的标签，如果没有指定，使用span
      var i;
      var len = words.length;
      var re;
      var reg = /^[\u4E00-\u9FA5]+$/;
      if (!reg.test(words)) {
        re = new RegExp(words, 'gi');
        if (re.test(text)) {
          text = text.replace(re, '<' + tag + ' class="highlight">$&</' + tag + '>');
        }
      } else {
        for (i = 0; i < len; i++) {
          // 正则匹配所有的文本
          re = new RegExp(words[i], 'gi');
          if (re.test(text)) {
            text = text.replace(re, '<' + tag + ' class="highlight">$&</' + tag + '>');
          }
        }
      }
      return text;
    },
    /*
        * 初始化mescrol事件
      */
    initMescroll: function initMescroll(flag, num) {
      var _this = this;
      // 创建MeScroll对象
      this.mescroll = new _mescroll.default(this.$refs.mescroll, {
        down: {
          use: false
        },
        up: {
          callback: this.upFn,
          auto: flag,
          onScroll: function onScroll(mescroll, y, isUp) {
            _this.scrollTop = y;
          },
          page: {
            num: num || 0,
            size: 10
          },
          htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
          // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
          noMoreSize: 1,
          isBounce: false,
          empty: {
            warpId: 'no-data',
            tip: '暂无相关数据'
          }
        }
      });
    },
    upFn: function upFn(page) {
      if (!this.searchCont) {
        this.getHotEntryList(page);
      } else {
        this.getEncyList(page);
      }
    },
    /**
        * 输入框搜索事件
      */
    inputChange: (0, _throttleDebounce.debounce)(800, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (this.searchCont) {
              this._Util.sensorsCollect('search_keywords', {
                operation_page: '电喷百科',
                keywords: this.searchCont,
                jump_url: '',
                search_type: '',
                search_mode: '关键字输入',
                search_history_sort: ''
              });
              this.mescroll.resetUpScroll();
            }
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
        * 获取电喷百科分类列表
      */
    getEntryClassifyList: function getEntryClassifyList() {
      var _this3 = this;
      this._Util.post(this._Api.POST_GETENTRYCLASSLIST, {}, function (data) {
        if (data) {
          _this3.classList = data;
        }
      }, function () {}, this);
    },
    /**
        * 获取搜索历史记录
      */
    getHistory: function getHistory() {
      var _this4 = this;
      this._Util.post(this._Api.POST_PRODUCT_RECORD_LIST, {
        pageType: 'EFI_ENCYCLOPEDIA'
      }, function (data) {
        if (data) {
          _this4.historyList = data;
        }
      }, function () {}, this);
    },
    /**
        * 增加历史记录
      */
    addHistory: function addHistory() {
      this._Util.post(this._Api.POST_ADD_SOSO_RECORD, {
        keyword: this.searchCont,
        pageType: 'EFI_ENCYCLOPEDIA'
      }, function (data) {}, function () {}, this);
    },
    /**
        * 获取词条列表
      */
    getEncyList: function getEncyList(page) {
      var _this5 = this;
      this._Util.post(this._Api.POST_GETENCYLIST, {
        keyword: this.searchCont,
        pageNum: page.num,
        pageSize: 10
      }, function (data) {
        if (data) {
          if (page.num === 1) {
            _this5.encyList = [];
          }
          _this5.encyList = _this5.encyList.concat(data);
          _this5.$nextTick(function () {
            _this5.mescroll.endSuccess(data.length, data.length == 10);
          });
        }
      }, function () {
        _this5.mescroll.endErr();
      }, this);
    },
    /**
        * 前往词条详情页
      */
    toEncyDetail: function toEncyDetail(item) {
      var url = location.origin + '/v2/library/efiEncyclop/encyDetail?vocabularyName=' + (item.vocabularyName || item.name);
      this._Util.sensorsCollect('element_click', {
        $element_content: item.vocabularyName,
        $element_name: '电喷百科词条卡片',
        $element_class_name: '',
        $element_type: '',
        $element_target_url: url,
        $url: location.href,
        $title: '电喷百科'
      });
      if (this.searchCont) {
        this.addHistory();
      }
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'encyDetail',
            url: url
          }
        });
      } else {
        this.saveSessionPosition(item);
        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
        this._Util.AddEventFmt100Url(url);
        this.$router.push({
          name: 'efiEncyDetail',
          query: {
            vocabularyName: item.vocabularyName || item.name
          }
        });
      }
    },
    /**
        * 获取热门词条
      */
    getHotEntryList: function getHotEntryList(page) {
      var _this6 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'hot_entry_list',
        user_id: userId,
        pageNum: page.num,
        pageSize: 10
      }, function (data) {
        document.title = '电喷百科';
        var temp = data.dataList ? data.dataList : [];
        if (page.num === 1) {
          _this6.hotEntryList = [];
        }
        _this6.hotEntryList = _this6.hotEntryList.concat(temp);
        _this6.$nextTick(function () {
          _this6.mescroll.endSuccess(temp.length);
        });
      }, function () {
        _this6.mescroll.endErr();
      }, this);
    },
    /**
       * 点击历史记录
       * @param {String} item 每一项历史记录
      */
    clickHistory: function clickHistory(item, index) {
      var _this7 = this;
      this.searchCont = item;
      this.encyList = [];
      setTimeout(function () {
        _this7.mescroll.resetUpScroll();
      }, 100);
      this._Util.sensorsCollect('search_keywords', {
        operation_page: '电喷百科',
        keywords: item,
        jump_url: '',
        search_type: '',
        search_mode: '点击搜索记录',
        search_history_sort: index
      });
    },
    /**
       * 点击词条分类
       * @param {Object} item 每一项历史记录
      */
    toClassDetail: function toClassDetail(item, index) {
      var url = location.origin + '/v2/library/efiEncyclop/classDetail?id=' + item.classifyId + '&name=' + encodeURIComponent(item.name);
      this._Util.sensorsCollect('click_quickenter', {
        operation_page: '电喷百科',
        quickenter_id: item.classifyId,
        quickenter_name: item.name,
        quickenter_sort: index,
        jump_url: url
      });
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'entryClassDetail',
            url: url
          }
        });
      } else {
        this.$router.push({
          name: 'efiEncyClassDetail',
          query: {
            id: item.classifyId,
            name: encodeURIComponent(item.name)
          }
        });
      }
    },
    /**
       * 保存被卷去的高度和数据
       */
    saveSessionPosition: function saveSessionPosition(item) {
      var value = [];
      var dataType = '';
      if (item.vocabularyName) {
        // 只有词条列表才有该属性
        value = this.encyList;
        dataType = 'encyList';
      } else {
        value = this.hotEntryList; // 热门词条
        dataType = 'hotEntryList';
      }
      var dataObj = {
        scrollTop: this.scrollTop,
        data: value,
        pageNum: this.mescroll.optUp.page.num,
        saveFlag: 1,
        type: dataType,
        searchCont: this.searchCont
      };
      sessionStorage.setItem('saveData', JSON.stringify(dataObj));
    },
    /**
       * 分享配置
       * @param {Object} shareObj 从报表获取到的分享数据
      */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '电喷百科',
                  desc: '',
                  link: location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that);
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"efi-index mescroll"},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"input-box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.searchCont),expression:"searchCont",modifiers:{"trim":true}}],attrs:{"type":"text","placeholder":"搜索词条"},domProps:{"value":(_vm.searchCont)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.searchCont=$event.target.value.trim()},_vm.inputChange],"blur":function($event){return _vm.$forceUpdate()}}}),_vm._v(" "),(_vm.searchCont)?_c('div',{staticClass:"img-box",on:{"click":function($event){_vm.searchCont = ''}}},[_c('img',{attrs:{"src":__webpack_require__(818),"alt":""}})]):_vm._e()]),_vm._v(" "),(_vm.historyList.length)?_c('div',{staticClass:"search"},[_c('div',{staticClass:"search-wrap"},[_c('div',{staticClass:"search-history"},[_c('ul',_vm._l((_vm.historyList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.clickHistory(item, index)}}},[_vm._v(_vm._s(item))])}),0)])])]):_vm._e(),_vm._v(" "),(!_vm.searchCont)?[_c('div',{staticClass:"hot-class hot"},[_c('div',{staticClass:"title"},[_vm._v("热门分类")]),_vm._v(" "),_c('ul',_vm._l((_vm.classList),function(item,index){return _c('li',{key:item.classifyId,class:{'limt-four': index < 4},on:{"click":function($event){return _vm.toClassDetail(item, index)}}},[_c('img',{attrs:{"src":item.coverUrl,"alt":item.name}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"hot-entry hot"},[_c('div',{staticClass:"title"},[_vm._v("热门词条")]),_vm._v(" "),_c('ul',{attrs:{"id":"no-data"}},_vm._l((_vm.hotEntryList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toEncyDetail(item)}}},[(item.cover_url)?_c('img',{attrs:{"src":item.cover_url + '?imageView2/2/w/228',"alt":""}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.matchFnTwo(item.introduction))}})])])}),0)])]:_c('div',{staticClass:"hot-entry hot"},[_c('ul',{attrs:{"id":"no-data"}},_vm._l((_vm.encyList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toEncyDetail(item)}}},[(item.coverUrlList && item.coverUrlList[0])?_c('img',{attrs:{"src":item.coverUrlList && item.coverUrlList[0],"alt":""}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right"},[_c('p',{staticClass:"name",domProps:{"innerHTML":_vm._s(_vm.highLightKeywords(item.vocabularyName, _vm.searchCont))}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.matchFnTwo(item.introduction))}})])])}),0)])],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(660);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d1c5fcbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1259);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3410)
  __webpack_require__(3412)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-d1c5fcbe"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d1c5fcbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d1c5fcbe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_classDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3411);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1afa0eb4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".class-detail .encry{font:16px/1.1rem PingFangSC-Regular}.class-detail .highlight{font:700 18px/1.25rem PingFangSC-Semibold;color:#1b7ffa}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3413);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7e2fce9c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".class-detail .wrap[data-v-d1c5fcbe],.class-detail[data-v-d1c5fcbe]{background:#f5f5f5}.class-detail .wrap .input-box[data-v-d1c5fcbe]{background:#fff;padding:.6rem;position:relative}.class-detail .wrap .input-box i[data-v-d1c5fcbe]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:1.1rem;left:1rem}.class-detail .wrap .input-box input[data-v-d1c5fcbe]{background:#f5f5f5;height:2rem;border-radius:4px;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;-webkit-transition:.3s;transition:.3s}.class-detail .wrap .input-box input.input-animate[data-v-d1c5fcbe]{width:-webkit-calc(100% - 4.2rem);width:calc(100% - 4.2rem)}.class-detail .wrap .input-box .img-box[data-v-d1c5fcbe]{position:absolute;right:.6rem;top:.6rem;width:2rem;height:2rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center}.class-detail .wrap .input-box .img-box img[data-v-d1c5fcbe]{width:.8rem;height:.8rem}.class-detail .wrap .search[data-v-d1c5fcbe]{background:#fff;padding:0}.class-detail .wrap .search .search-wrap[data-v-d1c5fcbe]{padding:.6rem 0;border-radius:.6rem .6rem 0 0;background:#f5f5f5}.class-detail .wrap .search .search-wrap .search-history[data-v-d1c5fcbe]{margin:0 .6rem;overflow:hidden}.class-detail .wrap .search .search-wrap .search-history ul[data-v-d1c5fcbe]{font-size:0;display:inline-block;white-space:nowrap}.class-detail .wrap .search .search-wrap .search-history ul li[data-v-d1c5fcbe]{display:inline-block;line-height:1.3rem;padding:0 .4rem;background:#fff;border-radius:.2rem;margin-right:.4rem;color:#666;font-size:13px;font-family:PingFangSC-Regular}.class-detail .wrap .class-list .radius[data-v-d1c5fcbe]{height:.6rem;background:#fff}.class-detail .wrap .class-list .radius i[data-v-d1c5fcbe]{display:block;height:.6rem;border-radius:.4rem .4rem 0 0;background:#f5f5f5}.class-detail .wrap .class-list .radius i.no-radiu[data-v-d1c5fcbe]{border-radius:none}.class-detail .wrap .class-list ul[data-v-d1c5fcbe]{padding:0 .6rem;box-sizing:border-box}.class-detail .wrap .class-list ul li[data-v-d1c5fcbe]{background:#fff;padding:.8rem .6rem;border-top:1px solid #ededed;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex}.class-detail .wrap .class-list ul li[data-v-d1c5fcbe]:first-child{border-radius:.4rem .4rem 0 0;border:none}.class-detail .wrap .class-list ul li[data-v-d1c5fcbe]:last-child{border-radius:0 0 .4rem .4rem}.class-detail .wrap .class-list ul li img[data-v-d1c5fcbe]{display:block;width:5.35rem;height:4rem;border-radius:.2rem;margin-right:.6rem}.class-detail .wrap .class-list ul li .right[data-v-d1c5fcbe]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.class-detail .wrap .class-list ul li .right .name[data-v-d1c5fcbe]{margin-top:.15rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.class-detail .wrap .class-list ul li .right span[data-v-d1c5fcbe]{margin-top:.2rem;color:#666;font:16px/1.1rem PingFangSC-Regular;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
var _mescroll = _interopRequireDefault(__webpack_require__(30));
__webpack_require__(29);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      id: this.$route.query.id,
      mescroll: null,
      searchCont: '',
      // 搜索的词条内容
      encyList: [],
      // 词条列表
      scrollTop: 0,
      historyList: [],
      params: {
        classificationId: this.$route.query.id,
        pageSize: 10
      }
    };
  },
  created: function created() {
    this.getHistory();
    this.share();
  },
  mounted: function mounted() {
    var _this2 = this;
    var that = this;
    document.title = this.$route.query.name ? decodeURIComponent(this.$route.query.name) : '电喷百科';
    var saveData = JSON.parse(sessionStorage.getItem('saveData'));
    if (saveData && saveData.saveFlag === 1) {
      this.encyList = saveData.data;
      this.searchCont = saveData.searchCont;
      this.initMescroll(false, saveData.pageNum);
      setTimeout(function () {
        _this2.mescroll.scrollTo(saveData.scrollTop, 0);
        sessionStorage.removeItem('saveData');
      }, 300);
    } else {
      this.initMescroll(true);
    }
    // 初始化搜索历史记录区域
    setTimeout(function () {
      _this2.tabScroll = new _betterScroll.default('.search-history', {
        scrollX: true,
        scrollY: false,
        click: true,
        bounceTime: 300,
        swipeBounceTime: 300
      });
    }, 500);
    if (that._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          that.getHistory();
          that.share();
        });
      }, 300);
    }
  },
  methods: {
    /**
        * 清空输入框同时重新搜索
      */
    clearSearchCont: function clearSearchCont() {
      this.searchCont = '';
      this.mescroll.resetUpScroll();
    },
    /**
        * 正则匹配词条并高亮显示
      */
    matchFn: function matchFn(str) {
      return str.replace(/\{\{(.+?)\}\}/g, function (t1, t2) {
        return '<i class="encry">' + t2 + '</i>';
      });
    },
    /**
        * 获取搜索历史记录
      */
    getHistory: function getHistory() {
      var _this3 = this;
      this._Util.post(this._Api.POST_PRODUCT_RECORD_LIST, {
        pageType: 'EFI_ENCYCLOPEDIA'
      }, function (data) {
        if (data) {
          _this3.historyList = data;
        }
      }, function () {}, this);
    },
    /**
       * 点击历史记录
       * @param {String} item 每一项历史记录
      */
    clickHistory: function clickHistory(item, index) {
      this._Util.sensorsCollect('search_keywords', {
        operation_page: '电喷百科',
        keywords: item,
        jump_url: '',
        search_type: '',
        search_mode: '点击搜索记录',
        search_history_sort: index
      });
      this.searchCont = item;
      this.encyList = [];
      this.mescroll.resetUpScroll();
    },
    /*
        * 高亮关键字 text =>内容  words:关键词   tag 被包裹的标签
      */
    highLightKeywords: function highLightKeywords(text, words, tag) {
      tag = tag || 'span'; // 默认的标签，如果没有指定，使用span
      var i;
      var len = words.length;
      var re;
      var reg = /^[\u4E00-\u9FA5]+$/;
      if (!reg.test(words)) {
        re = new RegExp(words, 'gi');
        if (re.test(text)) {
          text = text.replace(re, '<' + tag + ' class="highlight">$&</' + tag + '>');
        }
      } else {
        for (i = 0; i < len; i++) {
          // 正则匹配所有的文本
          re = new RegExp(words[i], 'gi');
          if (re.test(text)) {
            text = text.replace(re, '<' + tag + ' class="highlight">$&</' + tag + '>');
          }
        }
      }
      return text;
    },
    /*
        * 初始化mescrol事件
      */
    initMescroll: function initMescroll(flag, num) {
      var _this = this;
      // 创建MeScroll对象
      this.mescroll = new _mescroll.default(this.$refs.mescroll, {
        down: {
          use: false
        },
        up: {
          callback: this.getEncyList,
          auto: flag,
          onScroll: function onScroll(mescroll, y, isUp) {
            _this.scrollTop = y;
          },
          page: {
            num: num || 0,
            size: 10
          },
          htmlNodata: '<p class="upwarp-nodata">到底啦 ^_^</p>',
          // htmlLoading: '<img style="height: 1.4rem" src="http://static2.kaxiuyun.com/kxy/common/loading.gif" /><p class="upwarp-tip">加载中..</p>',
          noMoreSize: 1,
          isBounce: false,
          empty: {
            warpId: 'no-data',
            tip: '暂无相关数据'
          }
        }
      });
    },
    /**
        * 输入框搜索事件
      */
    inputChange: (0, _throttleDebounce.debounce)(800, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (this.searchCont) {
              this._Util.sensorsCollect('search_keywords', {
                operation_page: '电喷百科',
                keywords: this.searchCont,
                jump_url: '',
                search_type: '',
                search_mode: '关键字输入',
                search_history_sort: ''
              });
            }
            this.mescroll.resetUpScroll();
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
        * 获取词条列表
      */
    getEncyList: function getEncyList(page) {
      var _this4 = this;
      this.params.keyword = this.searchCont;
      this.params.pageNum = page.num;
      this._Util.post(this._Api.POST_GETENCYLIST, this.params, function (data) {
        if (data) {
          if (page.num === 1) {
            _this4.encyList = [];
          }
          _this4.encyList = _this4.encyList.concat(data);
          _this4.$nextTick(function () {
            _this4.mescroll.endSuccess(data.length);
          });
        }
      }, function () {
        _this4.mescroll.endErr();
      }, this);
    },
    /**
        * 增加历史记录
      */
    addHistory: function addHistory() {
      this._Util.post(this._Api.POST_ADD_SOSO_RECORD, {
        keyword: this.searchCont,
        pageType: 'EFI_ENCYCLOPEDIA'
      }, function (data) {}, function () {}, this);
    },
    /**
        * 前往词条详情页
      */
    toEncyDetail: function toEncyDetail(item) {
      var url = location.origin + '/v2/library/efiEncyclop/encyDetail?vocabularyName=' + item.vocabularyName;
      this._Util.sensorsCollect('element_click', {
        $element_content: item.vocabularyName,
        $element_name: '电喷百科词条卡片',
        $element_class_name: '',
        $element_type: '',
        $element_target_url: url,
        $url: location.href,
        $title: decodeURIComponent(this.$route.query.name)
      });
      if (this.searchCont) {
        this.addHistory();
      }
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'EncyDetail' + new Date().getTime(),
            url: url
          }
        });
      } else {
        this.saveSessionPosition();
        // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
        this._Util.AddEventFmt100Url(url);
        this.$router.push({
          name: 'efiEncyDetail',
          query: {
            vocabularyName: item.vocabularyName
          }
        });
      }
    },
    /**
       * 保存被卷去的高度和数据
       */
    saveSessionPosition: function saveSessionPosition() {
      var data = {
        scrollTop: this.scrollTop,
        data: this.encyList,
        pageNum: this.mescroll.optUp.page.num,
        saveFlag: 1,
        searchCont: this.searchCont
      };
      sessionStorage.setItem('saveData', JSON.stringify(data));
    },
    /**
       * 移除app端对分享事件的监听，防止分享时，出发多次分享配置
      */
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
       * 分享配置
      */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: document.title || '电喷百科',
                  desc: '',
                  link: location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: document.title || '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: document.title || '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: document.title || '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that);
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.mescroll.destroy();
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"mescroll",staticClass:"class-detail mescroll"},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"input-box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchCont),expression:"searchCont"}],attrs:{"type":"text","placeholder":"搜索词条"},domProps:{"value":(_vm.searchCont)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.searchCont=$event.target.value},_vm.inputChange]}}),_vm._v(" "),(_vm.searchCont)?_c('div',{staticClass:"img-box",on:{"click":_vm.clearSearchCont}},[_c('img',{attrs:{"src":__webpack_require__(818),"alt":""}})]):_vm._e()]),_vm._v(" "),(_vm.historyList.length)?_c('div',{staticClass:"search"},[_c('div',{staticClass:"search-wrap"},[_c('div',{staticClass:"search-history"},[_c('ul',_vm._l((_vm.historyList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.clickHistory(item, index)}}},[_vm._v(_vm._s(item))])}),0)])])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"class-list"},[(!_vm.historyList.length)?_c('div',{staticClass:"radius"},[_c('i')]):_vm._e(),_vm._v(" "),_c('ul',{attrs:{"id":"no-data"}},_vm._l((_vm.encyList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.toEncyDetail(item)}}},[(item.coverUrlList && item.coverUrlList[0])?_c('img',{attrs:{"src":item.coverUrlList ? item.coverUrlList[0] + '?imageView2/2/w/228' : '',"alt":""}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"right"},[_c('p',{staticClass:"name",domProps:{"innerHTML":_vm._s(_vm.highLightKeywords(item.vocabularyName, _vm.searchCont))}}),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.matchFn(item.introduction))}})])])}),0)])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(661);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8308c57c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1261);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3414)
  __webpack_require__(3416)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-8308c57c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8308c57c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8308c57c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_encyDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3415);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5024adcc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ency-detail .van-swipe__indicator.van-swipe__indicator--active{width:14px;border-radius:4px;background:#fff;opacity:1}.ency-detail .van-swipe__indicators{bottom:2.85rem}body.modal-open{position:fixed;width:100%}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3417);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1c09109a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ency-detail[data-v-8308c57c]{background:#f5f5f5}.ency-detail .wrap[data-v-8308c57c]{min-height:100%;background:#f5f5f5}.ency-detail .wrap .swipe-box[data-v-8308c57c]{height:13.2rem}.ency-detail .wrap .swipe-box img[data-v-8308c57c]{height:13.2rem;width:100%}.ency-detail .wrap .bottom-box[data-v-8308c57c]{position:relative;top:-2.6rem}.ency-detail .wrap .bottom-box.top0[data-v-8308c57c]{top:0}.ency-detail .wrap .ad-box[data-v-8308c57c]{position:relative;top:-2.6rem;margin-top:2rem;height:6rem;padding:0 .6rem}.ency-detail .wrap .ad-box img[data-v-8308c57c]{border-radius:.4rem;height:100%;width:100%}.ency-detail .wrap .catalog[data-v-8308c57c]{position:fixed;width:2.5rem;height:2.5rem;border-radius:100%;right:1.2rem;top:80%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;z-index:1000;background:hsla(0,0%,100%,.95);box-shadow:0 2px 4px 0 rgba(77,79,86,.25);border:1px solid #ededed;color:#333;font:700 14px/1rem PingFangSC-Semibold}.ency-detail .wrap .pop[data-v-8308c57c]{position:fixed;top:100%;left:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:1001;-webkit-transition:all .3s ease;transition:all .3s ease;padding-top:20%}.ency-detail .wrap .pop.show[data-v-8308c57c]{top:0}.ency-detail .wrap .pop .tit[data-v-8308c57c]{height:2.75rem;text-align:center;position:relative;background:#f6f6f6;border-radius:.6rem .6rem 0 0}.ency-detail .wrap .pop .tit .text-cont[data-v-8308c57c]{display:inline-block;height:2.75rem;width:60%;color:#333;font:700 16px/2.75rem PingFangSC-Semibold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ency-detail .wrap .pop .tit span[data-v-8308c57c]{position:absolute;padding:0 .8rem;height:2.75rem;top:0;right:0;color:#666;font:14px/2.75rem PingFangSC-Regular}.ency-detail .wrap .pop .pop-wrap[data-v-8308c57c]{height:-webkit-calc(100% - 2.75rem);height:calc(100% - 2.75rem);overflow-y:auto;-webkit-overflow-scrolling:touch}.ency-detail .wrap .slidePop .show[data-v-8308c57c]{position:fixed;top:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:2000}.ency-detail .wrap .slidePop .slide-wrap[data-v-8308c57c]{right:-11.5rem;-webkit-transition:all .3s ease;transition:all .3s ease;position:fixed;width:11.5rem;height:100%;top:0;background:#fff}.ency-detail .wrap .slidePop .slide-wrap .title[data-v-8308c57c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-items:center;height:2.75rem;color:#333;font:700 16px/1.1rem PingFangSC-Semibold;border-bottom:1px solid #eee}.ency-detail .wrap .slidePop .slide-wrap ul[data-v-8308c57c]{width:100%;height:-webkit-calc(100% - 6.5rem);height:calc(100% - 6.5rem);box-sizing:border-box;padding:.5rem .4rem;overflow-y:auto;-webkit-overflow-scrolling:touch}.ency-detail .wrap .slidePop .slide-wrap ul li[data-v-8308c57c]{padding:.8rem .6rem;margin-bottom:.2rem;color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.ency-detail .wrap .slidePop .slide-wrap ul li.active[data-v-8308c57c]{background:#f5f5f5;color:#1b7ffa;border-radius:.4rem}.ency-detail .wrap .slidePop .slide-wrap .close[data-v-8308c57c]{height:3.25rem;text-align:center}.ency-detail .wrap .slidePop .slide-wrap .close span[data-v-8308c57c]{display:inline-block;width:10.7rem;height:2.2rem;border:1px solid #1b7ffa;border-radius:.4rem;color:#1b7ffa;font:16px/2.2rem PingFangSC-Regular}.ency-detail .wrap .slidePop .shows[data-v-8308c57c]{position:fixed;right:0;z-index:2200}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(3418);
var _swipeItem = _interopRequireDefault(__webpack_require__(1354));
__webpack_require__(3419);
var _swipe = _interopRequireDefault(__webpack_require__(1353));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _vant = __webpack_require__(12);
var _EncyCont = _interopRequireDefault(__webpack_require__(3420));
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// eslint-disable-next-line no-unused-vars
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    EncyCont: _EncyCont.default
  }, _swipe.default.name, _swipe.default), _swipeItem.default.name, _swipeItem.default),
  data: function data() {
    return {
      vocabularyName: this.$route.query.vocabularyName,
      images: [],
      ModalHelper: null,
      isShowPop: false,
      // 是否显示底部弹窗
      isShowSlidePop: false,
      // 是否显示侧边栏
      result: {},
      moduleList: [],
      popResult: {},
      // 弹窗数据
      adInfo: {},
      scrollTop: 0,
      modelItemList: [],
      curInd: 0,
      curPopTitle: '',
      clickIndex: 0
    };
  },
  created: function created() {
    this.getEncyDetail();
    this.getAdInfo();
    this.share();
  },
  mounted: function mounted() {
    var _this = this;
    /**
        * 防止滚动穿透
      */
    this.ModalHelper = function (bodyCls) {
      var scrollTop;
      return {
        afterOpen: function afterOpen() {
          scrollTop = document.scrollingElement ? document.scrollingElement.scrollTop : document.body.scrollTop;
          document.body.classList.add(bodyCls);
          document.body.style.top = -scrollTop + 'px';
        },
        beforeClose: function beforeClose() {
          document.body.classList.remove(bodyCls);
          // scrollTop lost after set position:fixed, restore it back.
          if (document.scrollingElement) {
            document.scrollingElement.scrollTop = scrollTop;
          } else {
            document.body.scrollTop = scrollTop;
          }
        }
      };
    }('modal-open');
    (0, _jquery.default)(window).scroll(function () {
      _this.scrollTop = (0, _jquery.default)(this).scrollTop();
    });
    if (_this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this.share();
        });
      }, 300);
    }
  },
  methods: {
    /**
       * 获取底部广告位信息
      */
    getAdInfo: function getAdInfo() {
      var _this2 = this;
      this._Util.post(this._Api.POST_ADVERT_POSITION, {
        signType: 37
      }, function (data) {
        if (data) {
          _this2.adInfo = data;
        }
      }, function () {}, this);
    },
    /**
        * 显示底部弹窗
      */
    showPop: function showPop(data) {
      var _this3 = this;
      if (data) {
        this.vocabularyName = data;
        this.getEncyDetail(function () {
          _this3.curPopTitle = data;
          (0, _jquery.default)('.not-inpop video').each(function () {
            (0, _jquery.default)(this).get(0).pause();
          });
          _this3.ModalHelper.afterOpen();
          _this3.isShowPop = true;
        }, true);
      }
    },
    /**
        * 弹窗里面点击词条，先判断是否存在再做跳转
      */
    openNewpage: function openNewpage(data) {
      var _this4 = this;
      if (data) {
        var url = location.origin + '/v2/library/efiEncyclop/encyDetail?vocabularyName=' + data;
        this._Util.sensorsCollect('element_click', {
          $element_content: data,
          $element_name: data,
          $element_class_name: 'encry',
          $element_type: 'i',
          $element_target_url: url,
          $url: location.href,
          $title: '词条详情'
        });
        this.vocabularyName = data;
        this.getEncyDetail(function () {
          if (_this4._Util.isApp()) {
            _this4.curPopTitle = data;
            _this4.removeEvent();
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'encry' + new Date().getTime(),
                url: url
              }
            });
          } else {
            location.href = url;
          }
        });
      }
    },
    /**
        * 关闭底部弹窗
      */
    closePop: function closePop() {
      (0, _jquery.default)('.inpop video').each(function () {
        (0, _jquery.default)(this).get(0).pause();
      });
      this.ModalHelper.beforeClose();
      if (!this._Util.isIOS) {
        (0, _jquery.default)('.not-inpop video').show();
      }
      this.isShowPop = false;
    },
    /**
        * 显示侧边栏
      */
    showSlidePop: function showSlidePop() {
      this._Util.sensorsCollect('element_click', {
        $element_content: '目录',
        $element_name: '目录',
        $element_class_name: 'catalog',
        $element_type: 'div',
        $element_target_url: '',
        $url: location.href,
        $title: '词条详情'
      });
      (0, _jquery.default)('.not-inpop video').hide();
      this.ModalHelper.afterOpen();
      // let curInd = 0
      // this.modelItemList.forEach((item, itemIndex, arr) => {
      //   // alert(this.scrollTop + '--=--top====' + item.top + '-------=top+height====' + (Number(item.top) + Number(item.height)) + '==='+itemIndex+'==' + (this.scrollTop < (Number(item.top) + Number(item.height))))
      //   if ((this.scrollTop >= item.top) && (this.scrollTop < (Number(item.top) + Number(item.height)))) {
      //     curInd = itemIndex
      //   }
      // })
      // if (!this.modelItemList[curInd].hasTit && curInd > 0) {
      //   const tempArr = this.modelItemList.filter((item, index) => {
      //     return item.hasTit && (index < curInd)
      //   })
      //   const tempArr2 = tempArr.map((item) => {
      //     return item.index
      //   })
      //   curInd = Math.max.apply(null, tempArr2)
      // }
      // if (this.clickIndex !== 0 && curInd !== this.clickIndex) {
      //   this.curInd = this.clickIndex
      // } else this.curInd = curInd
      this.isShowSlidePop = true;
    },
    /**
        * 关闭侧边栏
      */
    closeSlidePop: function closeSlidePop() {
      var _this5 = this;
      (0, _jquery.default)('.not-inpop video').show();
      setTimeout(function () {
        _this5.ModalHelper.beforeClose();
        _this5.isShowSlidePop = false;
      });
    },
    /**
        * 获取词条详情
        * @param {Function} callBack 有该函数则代表需要先判断词条是否存在
        * @param {Bollen} dataflag 为真，则给弹窗赋予数据，为假直接跳转页面
      */
    getEncyDetail: function getEncyDetail(callBack, dataflag) {
      var _this6 = this;
      var _this = this;
      this._Util.post(this._Api.POST_GET_ENCYDETAIL, {
        vocabularyName: this.vocabularyName
      }, function (data) {
        if (data) {
          callBack && callBack();
          if (!callBack) {
            _this6.result = data;
            _this6.images = data.coverUrlList ? data.coverUrlList : [];
            _this6.moduleList = data.moduleList ? data.moduleList : [];
            _this6.$nextTick(function () {
              setTimeout(function () {
                (0, _jquery.default)('.not-inpop .moduleName-item').each(function (index) {
                  _this.modelItemList.push({
                    height: (0, _jquery.default)(this).outerHeight(),
                    top: Math.floor((0, _jquery.default)(this).offset().top),
                    index: index,
                    hasTit: (0, _jquery.default)(this).hasClass('has-tit')
                  });
                });
              }, 500);
            });
          } else {
            if (dataflag) {
              _this6.popResult = data;
            }
          }
        }
      }, function () {}, this);
    },
    /**
        * 打开广告
        * @param {Object} item 广告内容
      */
    toAdDetail: function toAdDetail(item) {
      this._Util.sensorsCollect('click_advert', {
        operation_page: document.title,
        advert_type_name: '',
        advert_name: item.advertName,
        jump_url: item.advertUrl,
        $url: window.location.href,
        correlation_id: item.advertId
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'ad' + item.advertId,
            url: item.advertUrl
          }
        });
      } else {
        location.href = item.advertUrl;
      }
    },
    /**
        * 点击侧边栏导航
        * @param {Number} ind 侧边栏点击那一项的索引
      */
    clickSlide: function clickSlide(itemObj, ind) {
      var _this7 = this;
      (0, _jquery.default)('.not-inpop video').show();
      this._Util.sensorsCollect('element_click', {
        $element_content: itemObj.moduleName,
        $element_name: itemObj.moduleName,
        $element_class_name: '',
        $element_type: 'li',
        $element_target_url: '',
        $url: location.href,
        $title: '词条详情'
      });
      var top = 0;
      this.clickIndex = ind;
      this.curInd = ind;
      this.modelItemList.forEach(function (item, index, arr) {
        if (_this7.curInd === index) {
          top = item.top;
        }
      });
      this.ModalHelper.beforeClose();
      this.isShowSlidePop = false;
      (0, _jquery.default)('html, body').animate({
        scrollTop: top
      }, 300);
    },
    /**
       * 移除app端对分享事件的监听，防止分享时，出发多次分享配置
      */
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    },
    /**
       * 分享配置
      */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '电喷百科',
                  desc: '',
                  link: location.href,
                  imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '电喷百科',
              desc: '',
              link: location.href,
              imgUrl: 'http://static1.kaxiuyun.com/header_xg.png',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that);
    }
  }
};__webpack_require__(26);
__webpack_require__(772);__webpack_require__(26);
__webpack_require__(771);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(662);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_484f8aae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1260);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3421)
  __webpack_require__(3423)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-484f8aae"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_484f8aae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_484f8aae_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EncyCont_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3422);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7d6bcbc7", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ency-compont .encry{color:#1b7ffa;text-decoration:underline}.ency-compont video::-internal-media-controls-download-button{display:none}.ency-compont video::-webkit-media-controls-enclosure{overflow:hidden}.ency-compont video::-webkit-media-controls-panel{width:-webkit-calc(100% + 50px);width:calc(100% + 50px)}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3424);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4d343a50", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".ency-compont .encry[data-v-484f8aae]{color:#1b7ffa;text-decoration:underline}.ency-compont .introduction[data-v-484f8aae]{background:#fff;padding:1rem .8rem .8rem;border-radius:.6rem .6rem 0 0}.ency-compont .introduction.no-radiu[data-v-484f8aae]{border-radius:0}.ency-compont .introduction .title[data-v-484f8aae]{color:#333;font:700 24px/1.6rem PingFangSC-Semibold}.ency-compont .introduction .info[data-v-484f8aae]{white-space:pre-wrap;margin-top:.6rem;color:#333;font:18px/1.25rem PingFangSC-Regular}.ency-compont .introduction .imgs-box[data-v-484f8aae]{text-align:center;margin-top:.6rem}.ency-compont .introduction .imgs-box img[data-v-484f8aae]{max-width:100%;border-radius:.2rem}.ency-compont .introduction .video-box[data-v-484f8aae]{background:#666;height:8.3rem;border-radius:.2rem;margin-top:.6rem}.ency-compont .introduction .video-box video[data-v-484f8aae]{background:#666;width:100%;height:8.3rem;border-radius:.2rem}.ency-compont .item-box[data-v-484f8aae]{background:#f5f5f5}.ency-compont .item-box .radius[data-v-484f8aae]{height:.6rem;background:#fff}.ency-compont .item-box .radius i[data-v-484f8aae]{display:block;height:.6rem;border-radius:.4rem .4rem 0 0;background:#f5f5f5}.ency-compont .item-box .moduleName-item[data-v-484f8aae]{margin-top:.6rem}.ency-compont .item-box .moduleName-item[data-v-484f8aae]:nth-of-type(2){margin-top:.2rem}.ency-compont .item-box .moduleName-item .title[data-v-484f8aae]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ency-compont .item-box .moduleName-item .title i[data-v-484f8aae]{height:.7rem;width:.2rem;background:#1b7ffa;border-radius:1px;margin-right:.4rem}.ency-compont .item-box .moduleName-item .title span[data-v-484f8aae]{color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.ency-compont .item-box .moduleName-item .cont[data-v-484f8aae]{border-radius:.4rem;padding:0 .6rem}.ency-compont .item-box .moduleName-item .cont .info-box[data-v-484f8aae]{border-radius:.4rem;background:#fff;padding:.6rem;margin-top:.6rem}.ency-compont .item-box .moduleName-item .cont .info-box p[data-v-484f8aae]{white-space:pre-wrap;color:#333;font:17px/1.6rem PingFangSC-Regular}.ency-compont .item-box .moduleName-item .cont .info-box .imgs-box[data-v-484f8aae]{text-align:center;margin-top:.6rem}.ency-compont .item-box .moduleName-item .cont .info-box .imgs-box img[data-v-484f8aae]{max-width:100%;border-radius:.2rem}.ency-compont .item-box .moduleName-item .cont .info-box .video-box[data-v-484f8aae]{background:#666;height:8.3rem;border-radius:.2rem;margin-top:.6rem}.ency-compont .item-box .moduleName-item .cont .info-box .video-box video[data-v-484f8aae]{background:#666;width:100%;height:8.3rem;border-radius:.2rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    inPop: {
      type: Boolean,
      required: false
    },
    data: {
      type: Object,
      required: true
    }
  },
  data: function data() {
    return {
      id: this.$route.query.id
    };
  },
  created: function created() {},
  mounted: function mounted() {
    var that = this;
    (0, _jquery.default)(document).on('click', '.not-inpop .encry', function () {
      var value = (0, _jquery.default)(this).text();
      if (!that._Util.isIOS) {
        (0, _jquery.default)('.not-inpop video').hide();
      }
      that.$emit('openPop', value);
      that._Util.sensorsCollect('element_click', {
        $element_content: value,
        $element_name: value,
        $element_class_name: 'encry',
        $element_type: 'i',
        $element_target_url: '',
        $url: location.href,
        $title: '词条详情'
      });
    });
    (0, _jquery.default)(document).on('click', '.inpop .encry', function () {
      var value = (0, _jquery.default)(this).text();
      that.$emit('openNewWin', value);
    });
  },
  methods: {
    /**
       * 图片预览
      */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
        * 正则匹配词条并高亮显示
      */
    matchFn: function matchFn(str) {
      return str.replace(/\{\{(.+?)\}\}/g, function (t1, t2) {
        return '<i class="encry">' + t2 + '</i>';
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ency-compont",class:{'not-inpop': !_vm.inPop, 'inpop': _vm.inPop}},[_c('div',{staticClass:"introduction moduleName-item",class:{'no-radiu': _vm.inPop}},[_c('p',{staticClass:"title"},[_vm._v(_vm._s(_vm.data.vocabularyName))]),_vm._v(" "),(_vm.data.introduction)?_c('p',{staticClass:"info",domProps:{"innerHTML":_vm._s(_vm.matchFn(_vm.data.introduction))}},[_vm._v(_vm._s(_vm.data.introduction))]):_vm._e(),_vm._v(" "),(_vm.data.pictureUrlList)?_vm._l((_vm.data.pictureUrlList),function(item,index){return _c('div',{key:index,staticClass:"imgs-box"},[_c('img',{attrs:{"src":item,"alt":""},on:{"click":function($event){return _vm.viewImage(item, _vm.data.pictureUrlList, index)}}})])}):_vm._e(),_vm._v(" "),(_vm.data.videoUrlList)?_vm._l((_vm.data.videoUrlList),function(item,index){return _c('div',{key:index,staticClass:"video-box"},[_c('video',{attrs:{"src":item,"controls":"controls","controlslist":"nodownload"}})])}):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"item-box moduleName",class:{'no-pop': !_vm.inPop},attrs:{"id":"item-box"}},[_vm._m(0),_vm._v(" "),_vm._l((_vm.data.moduleList),function(item,index){return _c('div',{key:index,staticClass:"moduleName-item",class:{'has-tit': item.moduleName !== '0'}},[(item.moduleName)?_c('p',{staticClass:"title"},[_c('i'),_c('span',[_vm._v(_vm._s(item.moduleName))])]):_vm._e(),_vm._v(" "),(item.content || item.pictureUrlList || item.contentTwo || item.videoUrlList || item.videoTwoUrlList)?_c('div',{staticClass:"cont"},[_c('div',{staticClass:"info-box"},[(item.content)?_c('p',{domProps:{"innerHTML":_vm._s(_vm.matchFn(item.content))}}):_vm._e(),_vm._v(" "),(item.pictureUrlList)?_vm._l((item.pictureUrlList),function(item1,index1){return _c('div',{key:index1,staticClass:"imgs-box"},[_c('img',{attrs:{"src":item1,"alt":""},on:{"click":function($event){return _vm.viewImage(item1, item.pictureUrlList, index1)}}})])}):_vm._e(),_vm._v(" "),(item.videoUrlList)?_vm._l((item.videoUrlList),function(item2,index2){return _c('div',{key:index2,staticClass:"video-box"},[_c('video',{attrs:{"src":item2,"controls":"controls","controlslist":"nodownload"}})])}):_vm._e(),_vm._v(" "),(item.contentTwo)?_c('p',{domProps:{"innerHTML":_vm._s(_vm.matchFn(item.contentTwo))}}):_vm._e(),_vm._v(" "),(item.pictureTwoUrlList)?_vm._l((item.pictureTwoUrlList),function(item3,index3){return _c('div',{key:index3,staticClass:"imgs-box"},[_c('img',{attrs:{"src":item3,"alt":""},on:{"click":function($event){return _vm.viewImage(item3, item.pictureTwoUrlList, index3)}}})])}):_vm._e(),_vm._v(" "),(item.videoTwoUrlList)?_vm._l((item.videoTwoUrlList),function(item4,index4){return _c('div',{key:index4,staticClass:"video-box"},[_c('video',{attrs:{"src":item4,"controls":"controls","controlslist":"nodownload"}})])}):_vm._e()],2)]):_vm._e()])})],2)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"radius"},[_c('i')])}]
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ency-detail"},[_c('div',{staticClass:"wrap"},[(_vm.images.length)?_c('div',{staticClass:"swipe-box"},[_c('van-swipe',{attrs:{"autoplay":3000}},_vm._l((_vm.images),function(image,index){return _c('van-swipe-item',{key:index},[_c('img',{directives:[{name:"lazy",rawName:"v-lazy",value:(image + '?imageView2/2/w/375'),expression:"image + '?imageView2/2/w/375'"}]})])}),1)],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bottom-box",class:{'top0': _vm.images.length ===0}},[_c('EncyCont',{attrs:{"data":_vm.result,"in-pop":false},on:{"openPop":_vm.showPop,"openNewWin":_vm.openNewpage}})],1),_vm._v(" "),(_vm.adInfo.advertId)?_c('div',{staticClass:"ad-box",on:{"click":function($event){return _vm.toAdDetail(_vm.adInfo)}}},[_c('img',{attrs:{"src":_vm.adInfo.advertImg,"alt":""}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"catalog",on:{"click":function($event){$event.stopPropagation();return _vm.showSlidePop.apply(null, arguments)}}},[_vm._v("目录")]),_vm._v(" "),_c('div',{staticClass:"pop",class:{'show': _vm.isShowPop},on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.closePop.apply(null, arguments)}}},[_c('div',{staticClass:"tit"},[_c('div',{staticClass:"text-cont"},[_vm._v(_vm._s(_vm.curPopTitle))]),_vm._v(" "),_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.closePop.apply(null, arguments)}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"pop-wrap"},[_c('EncyCont',{attrs:{"data":_vm.popResult,"in-pop":true}})],1)]),_vm._v(" "),_c('div',{staticClass:"slidePop",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.closeSlidePop.apply(null, arguments)}}},[(_vm.isShowSlidePop)?_c('div',{staticClass:"show",on:{"click":function($event){_vm.isShowSlidePop = false}}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"slide-wrap",class:{'shows': _vm.isShowSlidePop}},[_c('div',{staticClass:"title"},[_vm._v("词条目录")]),_vm._v(" "),(_vm.result.moduleList)?_c('ul',[_c('li',{class:{'active': _vm.curInd === 0},on:{"click":function($event){return _vm.clickSlide({moduleName: '词条简介'},0)}}},[_vm._v("词条简介")]),_vm._v(" "),_vm._l((_vm.result.moduleList),function(item,index){return [(item.moduleName)?_c('li',{key:index,class:{'active': index + 1 === _vm.curInd},on:{"click":function($event){return _vm.clickSlide(item, index + 1)}}},[_vm._v(_vm._s(item.moduleName))]):_vm._e()]})],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"close",on:{"click":function($event){$event.stopPropagation();return _vm.closeSlidePop.apply(null, arguments)}}},[_c('span',[_vm._v("关闭")])])])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(663);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d996ea3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1262);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3425)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3d996ea3"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d996ea3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d996ea3_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3426);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("514e5f98", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-3d996ea3]{height:auto!important;min-height:100%;background-color:#f5f5f5;overflow:hidden}.fault-code[data-v-3d996ea3]{padding:0 .6rem;overflow:hidden}.fault-code-panel[data-v-3d996ea3]{width:100%;padding:0 .6rem;margin-top:1.4rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.fault-code-panel .panel-title[data-v-3d996ea3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem}.fault-code-panel .panel-title span[data-v-3d996ea3]{height:1.25rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.fault-code-panel em[data-v-3d996ea3]{display:inline-block;width:1rem;height:1rem;margin-right:.5rem;background-position:50%;background-repeat:no-repeat;background-size:100%}.fault-code-panel .line[data-v-3d996ea3]{display:inline-block;width:.6rem;height:.1rem;margin:0 .4rem}.fault-code-panel.fault-code em[data-v-3d996ea3]{background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/faultcode.jpg\")}.fault-code-panel.fmi-code em[data-v-3d996ea3]{background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/spn.jpg\")}.fault-code-panel.fault-code-desc em[data-v-3d996ea3]{background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/faultdesc.jpg\")}.fault-code-panel .input-box[data-v-3d996ea3]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:2rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:1rem}.fault-code-panel .input-box input[data-v-3d996ea3]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f1f1f1;width:100%;height:100%;padding:0 .6rem;border-radius:.2rem;font-size:.8rem;color:#333}.fault-code-panel .input-box input[data-v-3d996ea3]::-webkit-input-placeholder{font-size:.8rem}.fault-code-panel .input-box input[data-v-3d996ea3]:-ms-input-placeholder{font-size:.8rem}.fault-code-panel .input-box input[data-v-3d996ea3]::placeholder{font-size:.8rem}.fault-code-panel .input-box input.fault-code-input[data-v-3d996ea3]{outline:none;color:transparent;caret-color:transparent;position:absolute;z-index:1;background:none;margin-left:-100%;text-indent:-999em;height:.1rem}.fault-code-panel .input-box .tempspan[data-v-3d996ea3]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;background-color:#f1f1f1;padding:0 .6rem;border-radius:.2rem;white-space:nowrap;overflow:hidden;font-size:.8rem;color:#999}.fault-code-panel .input-box .tempspan.have-keyword[data-v-3d996ea3]{color:#333}.fault-code-panel .input-box .tempspan .cursor[data-v-3d996ea3]{background-color:#3476eb;height:1rem;width:.1rem;color:#3476eb;display:inline-block;vertical-align:middle;-webkit-animation:keyfade-data-v-3d996ea3 1s infinite linear;animation:keyfade-data-v-3d996ea3 1s infinite linear}.fault-code-panel .input-box .code-btn[data-v-3d996ea3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.6rem;height:2rem;margin-left:.6rem;background:#ef7549;border-radius:.2rem;font-size:.8rem;color:#fff}@-webkit-keyframes keyfade-data-v-3d996ea3{0%{opacity:1}to{opacity:0}}@keyframes keyfade-data-v-3d996ea3{0%{opacity:1}to{opacity:0}}.search-code-log[data-v-3d996ea3]{margin-top:.5rem;white-space:nowrap;overflow:hidden}.search-code-log .keyword[data-v-3d996ea3]{display:inline-block}.search-code-log .keyword span[data-v-3d996ea3]{height:1.3rem;line-height:1.3rem;margin-right:.5rem;padding:0 .4rem;background-color:#e8e8e8;border-radius:.2rem;font-size:.65rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.search-code-log .keyword span[data-v-3d996ea3]:last-child{margin-right:0}.keyboard[data-v-3d996ea3]{position:fixed;left:0;bottom:-600px;width:100%;z-index:100;background:#d0d3da}.keyboard table[data-v-3d996ea3]{border-collapse:inherit;border-spacing:.6rem .5rem}.keyboard table tr td[data-v-3d996ea3]{width:3.35rem;height:2rem;line-height:2rem;text-align:center;background:#a7afbc;border-radius:.2rem;font-size:1.1rem;color:#0c0c0c;box-shadow:0 1px 0 0 #8c959c;position:relative;font-family:PingFangSC-Semibold,PingFang SC}.keyboard table tr td img[data-v-3d996ea3]{width:1.3rem;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);pointer-events:none}.keyboard table tr td.press[data-v-3d996ea3]{background:#fafafa}.keyboard table tr td.pressWhite[data-v-3d996ea3]{background:#a7afbc}.keyboard table tr .white[data-v-3d996ea3]{background:#fafafa;box-shadow:0 1px 0 0 #888c8f}.keyboard table tr:last-of-type td[data-v-3d996ea3]:last-of-type{background:#096cff;color:#fff;font-size:.9rem}.keyboard.show[data-v-3d996ea3]{-webkit-animation:mymove-data-v-3d996ea3 .5s 1 forwards;animation:mymove-data-v-3d996ea3 .5s 1 forwards}@-webkit-keyframes mymove-data-v-3d996ea3{0%{bottom:-600px}to{bottom:0}}@keyframes mymove-data-v-3d996ea3{0%{bottom:-600px}to{bottom:0}}.fault-desc[data-v-3d996ea3]{padding:0 .6rem;margin-top:1.4rem}.fault-desc .title[data-v-3d996ea3]{margin-bottom:.4rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.fault-desc .desc-list[data-v-3d996ea3]{background-color:#fff;border-radius:.4rem;padding-left:.6rem}.fault-desc .desc-list li[data-v-3d996ea3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.33rem;padding-right:.6rem;border-bottom:.01rem solid #eee}.fault-desc .desc-list li .name[data-v-3d996ea3]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.8rem;line-height:1;color:#333;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.fault-desc .desc-list li .hot-icon[data-v-3d996ea3]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.fault-desc .desc-list li .hot-icon em[data-v-3d996ea3]{display:block;width:.8rem;height:.8rem;margin-left:.25rem;background-image:url(\"https://static1.kaxiuyun.com/hot_icon.png\");background-position:0;background-repeat:no-repeat;background-size:.8rem .8rem}.fault-desc .desc-list li .arrow-right[data-v-3d996ea3]{width:.5rem;height:.5rem;margin-left:.8rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.link-box[data-v-3d996ea3]{margin:1.4rem 0 1.2rem;text-align:center;overflow:hidden}.link-box span[data-v-3d996ea3]{height:1.05rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;line-height:1.05rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      faultCode: '请输入数字，如：1011',
      // 故障码
      disabled: true,
      showCursor: false,
      faultSpnFmi1: '',
      faultSpnFmi2: '',
      faultCodeDesc: '',
      // 故障码描述
      showKeyboard: false,
      CR_FAULT_CODE_LIST: [],
      // 故障码搜索记录
      CR_FAULT_SPN_FMI_LIST: [],
      // 故障码搜索记录
      CR_FAULT_DESC_LIST: [],
      // 故障码搜索记录
      keyList: [
      // 键盘数据
      [{
        mes: 'A'
      }, {
        mes: 1,
        class: 'white'
      }, {
        mes: 2,
        class: 'white'
      }, {
        mes: 3,
        class: 'white'
      }, {
        mes: 'delete',
        src: __webpack_require__(264)
      }], [{
        mes: 'B'
      }, {
        mes: 4,
        class: 'white'
      }, {
        mes: 5,
        class: 'white'
      }, {
        mes: 6,
        class: 'white'
      }, {
        mes: 'D'
      }], [{
        mes: 'C'
      }, {
        mes: 7,
        class: 'white'
      }, {
        mes: 8,
        class: 'white'
      }, {
        mes: 9,
        class: 'white'
      }, {
        mes: 'E'
      }], [{
        mes: 'U',
        rowspan: '2'
      }, {
        mes: 0,
        class: 'white'
      }, {
        mes: '-',
        class: 'white',
        colspan: '2'
      }, {
        mes: 'F'
      }], [{}, {
        mes: 'P',
        colspan: '2'
      }, {}, {
        mes: 'key',
        src: __webpack_require__(265)
      }, {
        mes: '搜索'
      }]],
      faultList: [],
      timing: '',
      time: 0,
      searchKeyNum: ''
    };
  },
  watch: {
    showCursor: function showCursor(val) {
      if (val && this.faultCode === '请输入数字，如：1011') {
        this.faultCode = '';
      }
      if (!val && this.faultCode === '') {
        this.faultCode = '请输入数字，如：1011';
      }
    }
  },
  created: function created() {
    localStorage.setItem('isAdminPass', this._Util.getParaValueByName('isAdminPass'));
    localStorage.setItem('isAccessControl', this._Util.getParaValueByName('isAccessControl'));
    localStorage.setItem('isVip', this._Util.getParaValueByName('isVip'));
    localStorage.setItem('isSvip', this._Util.getParaValueByName('isSvip'));
    localStorage.setItem('isAccess', this._Util.getParaValueByName('isAccess'));
    // document.title = '新故障码查询'
    this.getHistoryList('CR_FAULT_CODE');
    this.getHistoryList('CR_FAULT_SPN_FMI');
    this.getHistoryList('CR_FAULT_DESC');
    this.faultDesList();
    this.shareConfig();
  },
  mounted: function mounted() {
    var that = this;
    sessionStorage.removeItem('new_pageParams');
    if (this._Util.isApp()) {
      // app端 当前页面变为页面最上层时，触发接口请求刷新搜索记录
      var _that = this;
      api.addEventListener({
        name: 'viewappear'
      }, function (ret, err) {
        _that.getHistoryList('CR_FAULT_CODE');
        _that.getHistoryList('CR_FAULT_SPN_FMI');
        _that.getHistoryList('CR_FAULT_DESC');
      });
    }
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '故障码',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    if (!this._Util.isIOS) {
      // 软键盘弹起，输入框自动出现在可视区域
      this.timer = setInterval(function () {
        if (document.activeElement.className.indexOf('inputcontent') >= 0) {
          document.activeElement.scrollIntoViewIfNeeded();
        }
      }, 300);
    }
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '故障码,' + that.time,
        searchKey: ''
      }, that);
    }
    clearInterval(that.timer);
  },
  methods: {
    /**
     * 获取搜索记录
     * @param {string} type 搜索内容对应类型
     */
    getHistoryList: function getHistoryList(type) {
      var _this = this;
      var params = {
        pageType: type
      };
      this._Util.post(this._Api.POST_PRODUCT_RECORD_LIST, params, function (data) {
        _this["".concat(type, "_LIST")] = data;
      }, function () {}, this);
    },
    /**
     * 添加搜索记录
     */
    addHistory: function addHistory(keyword, type) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_ADD_SOSO_RECORD, {
          keyword: keyword,
          pageType: type
        }, function (data) {
          resolve(data);
        }, function (err) {
          reject(err);
        }, _this2);
      });
    },
    /**
     * 搜索
     * @param {Number} type 搜索类型
     * @param {Number} mode 搜索方式
     * @param {Number} index 搜索记录索引
     */
    search: function search(type, mode, item, index) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var keyword, tiptext, haveKeyword, typeName, modeName, now, userinfo, params;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              debugger;
              keyword = '';
              tiptext = '';
              haveKeyword = true;
              typeName = ''; // 搜索类型名称
              modeName = ''; // 搜索方式名称
              if (type === 1) {
                keyword = mode === 1 ? item : _this3.faultCode.trim();
                if (keyword === '' || keyword === '请输入数字，如：1011') {
                  haveKeyword = false;
                  tiptext = '请输入故障码';
                }
                if (keyword === 'P' || keyword === 'p') {
                  haveKeyword = false;
                  tiptext = '输入内容有误，请修改后再搜索';
                }
                typeName = 'CR_FAULT_CODE';
              } else if (type === 2) {
                keyword = mode === 1 ? item : "".concat(_this3.faultSpnFmi1.trim(), "-").concat(_this3.faultSpnFmi2.trim());
                if (mode === 0) {
                  if (_this3.faultSpnFmi1.trim() === '' || _this3.faultSpnFmi2.trim() === '') {
                    haveKeyword = false;
                    tiptext = '请输入完整的SPN_FMI码';
                  }
                }
                typeName = 'CR_FAULT_SPN_FMI';
              } else if (type === 3) {
                keyword = mode === 1 ? item : _this3.faultCodeDesc.trim();
                if (keyword === '') {
                  haveKeyword = false;
                  tiptext = '请输入故障码描述';
                }
                if (keyword === 'P' || keyword === 'p') {
                  haveKeyword = false;
                  tiptext = '输入内容有误，请修改后再搜索';
                }
                typeName = 'CR_FAULT_DESC';
              }
              if (haveKeyword) {
                _context.next = 1;
                break;
              }
              _dialog.default.alert({
                message: tiptext
              }).then(function () {});
              return _context.abrupt("return");
            case 1:
              now = new Date();
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              _this3.searchKeyNum = now.getTime() + '' + userinfo.userId;
              if (type == 1) {
                _this3._Util.collectPageViewNew({
                  type: 14,
                  postUrl: _this3._Api.POST_COLLECT_NEW,
                  source: '',
                  target: '',
                  remark: _this3.faultCode.trim(),
                  searchKey: _this3.searchKeyNum
                }, _this3);
              } else if (type == 2) {
                _this3._Util.collectPageViewNew({
                  type: 14,
                  postUrl: _this3._Api.POST_COLLECT_NEW,
                  source: '',
                  target: '',
                  remark: "".concat(_this3.faultSpnFmi1.trim(), "-").concat(_this3.faultSpnFmi2.trim()),
                  searchKey: _this3.searchKeyNum
                }, _this3);
              } else if (type == 3) {
                _this3._Util.collectPageViewNew({
                  type: 14,
                  postUrl: _this3._Api.POST_COLLECT_NEW,
                  source: '',
                  target: '',
                  remark: _this3.faultCodeDesc.trim(),
                  searchKey: _this3.searchKeyNum
                }, _this3);
              }
              if (mode === 0) {
                modeName = '关键词输入';
              } else {
                modeName = '点击搜索记录';
              }
              _context.next = 2;
              return _this3.addHistory(keyword, typeName);
            case 2:
              // 关键词搜索
              _this3._Util.sensorsCollect('search_keywords', {
                operation_page: '新故障码查询',
                keywords: keyword,
                jump_url: window.location.href,
                search_type: typeName,
                search_mode: modeName,
                search_history_sort: index + 1 || ''
              });
              debugger;
              params = {
                keyword: keyword,
                index: 0,
                folderid: '10086',
                isClick: false,
                faultType: typeName === 'CR_FAULT_SPN_FMI' ? 'spn' : '',
                // 兼容老故障码查询逻辑
                searchType: typeName,
                // 新故障码 查询分类
                title: '故障码'
              }; // 跳转到通用落地页
              if (_this3._Util.isApp()) {
                _this3.removeEvent();
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'appSearchResultNew',
                    url: "".concat(location.origin, "/v2/business/pay/appSearchResultNew?").concat(_this3._Util.objectToQueryString(params))
                  }
                });
              } else {
                _this3.$router.push({
                  name: 'appSearchResultNew',
                  query: params
                });
              }

              // 兼容老版功能 暂不需要此部分逻辑
              // if (this._Util.isApp()) {
              //   this.removeEvent()
              //   api.sendEvent({
              //     name: 'acOpenNewFrm',
              //     extra: {
              //       name: 'faultCode2',
              //       notGive: 1,
              //       url: `${location.origin}/v2/library/faultCode2/reasult?searchType=${typeName}&keyword=${keyword}`
              //     }
              //   })
              // } else {
              //   this.$router.push({
              //     path: '/v2/library/faultCode2/reasult',
              //     query: {
              //       searchType: typeName,
              //       keyword: keyword
              //     }
              //   })
              // }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 常见故障码描述
     */
    faultDesList: function faultDesList() {
      var _this4 = this;
      var params = {
        pageNum: 1,
        pageSize: 10
      };
      this._Util.post(this._Api.POST_FAULT_DES_LIST, params, function (data) {
        _this4.faultList = data.dataList;
      }, function () {}, this);
    },
    /**
     * 常见故障码描述 搜索（关键词搜索）
     */
    faultDetailSearch: function faultDetailSearch(item, index) {
      // 关键词搜索
      this._Util.sensorsCollect('search_keywords', {
        operation_page: '新故障码查询',
        keywords: item.name,
        jump_url: window.location.href,
        search_type: 'CR_FAULT_DESC',
        search_mode: '点击搜索记录',
        search_history_sort: index
      });

      // 元素点击
      this._Util.sensorsCollect('element_click', {
        $element_content: item.name,
        $element_name: '常见故障描述',
        $element_class_name: '',
        $element_type: 'li',
        $element_target_url: '',
        $url: window.location.href,
        $title: '新故障码查询'
      });
      var params = {
        keyword: item.name.trim(),
        index: 0,
        folderid: '10086',
        isClick: false,
        faultType: '',
        // 兼容老故障码查询逻辑
        searchType: 'CR_FAULT_DESC' // 新故障码 查询分类
      };

      // 跳转到通用落地页
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'appSearchResultNew',
            url: "".concat(location.origin, "/v2/business/pay/appSearchResultNew?").concat(this._Util.objectToQueryString(params))
          }
        });
      } else {
        this.$router.push({
          name: 'appSearchResultNew',
          query: params
        });
      }

      // 兼容老版功能 暂不需要此部分逻辑
      // if (this._Util.isApp()) {
      //   this.removeEvent()
      //   api.sendEvent({
      //     name: 'acOpenNewFrm',
      //     extra: {
      //       name: 'faultCode2',
      //       notGive: 1,
      //       url: `${location.origin}/v2/library/faultCode2/reasult?searchType=CR_FAULT_DESC&keyword=${item.name}`
      //     }
      //   })
      // } else {
      //   this.$router.push({
      //     path: '/v2/library/faultCode2/reasult',
      //     query: {
      //       searchType: 'CR_FAULT_DESC',
      //       keyword: item.name
      //     }
      //   })
      // }
    },
    /**
     * 弹出自定义键盘
     */
    slideBoard: function slideBoard() {
      this.showCursor = true;
      this.showKeyboard = true;
    },
    blurInput: function blurInput() {
      this.showKeyboard = false;
      this.showCursor = false;
    },
    /**
     * 点击键盘获取值
     */
    getKeyValue: function getKeyValue(param) {
      var _this5 = this;
      for (var i = 0; i < this.keyList.length; i++) {
        var key2 = this.keyList[i];
        for (var j = 0; j < key2.length; j++) {
          this.$set(key2[j], 'active', false);
          this.$set(key2[j], 'activeWhite', false);
        }
      }
      if (typeof param.mes == 'number' || param.mes == '-') {
        this.$set(param, 'activeWhite', true);
        setTimeout(function () {
          _this5.$set(param, 'activeWhite', false);
        }, 200);
      } else {
        this.$set(param, 'active', true);
        setTimeout(function () {
          _this5.$set(param, 'active', false);
        }, 200);
      }
      if (param.mes == 'key') {
        // 弹出默认键盘
        this.$refs.faultCodes.focus();
        this.showKeyboard = false;
        this.faultCode = this.faultCode.replace(/\s*/g, '');
      } else if (param.mes == 'delete') {
        // 退格删除
        this.faultCode = this.faultCode.substring(0, this.faultCode.length - 1);
      } else if (param.mes == '搜索') {
        this.search(1);
      } else {
        this.faultCode += param.mes;
      }
    },
    /**
     * 故障码查询意见反馈
     */
    feedBack: function feedBack() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=11e80dba&data=\u65B0\u6545\u969C\u7801\u67E5\u8BE2");

      // 点击反馈链接
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: '新故障码查询',
        feedbacklink_content: '故障码查询意见反馈',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    scroll: function scroll() {
      setTimeout(function () {
        var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
        window.scrollTo(0, Math.max(scrollHeight - 1, 0));
      }, 100);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '故障码查询',
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 移除app端对分享事件的监听，防止分享时，出发多次分享配置
     */
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"fault-code",on:{"click":function($event){return _vm.blurInput()}}},[_c('div',{staticClass:"fault-code-panel fault-code"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultCode),expression:"faultCode"}],ref:"faultCodes",staticClass:"fault-code-input",attrs:{"type":"text","placeholder":"请输入数字，如：1011"},domProps:{"value":(_vm.faultCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.faultCode=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"tempspan",class:{'have-keyword': _vm.faultCode !== '请输入数字，如：1011'},on:{"click":function($event){$event.stopPropagation();return _vm.slideBoard()}}},[_vm._v(_vm._s(_vm.faultCode)),(_vm.showCursor)?_c('i',{staticClass:"cursor"}):_vm._e()]),_vm._v(" "),_c('span',{staticClass:"code-btn",on:{"click":function($event){return _vm.search(1, 0)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.CR_FAULT_CODE_LIST && _vm.CR_FAULT_CODE_LIST.length > 0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"search-code-log"},[_c('div',{staticClass:"keyword"},_vm._l((_vm.CR_FAULT_CODE_LIST),function(item,index){return _c('span',{key:index,on:{"click":function($event){return _vm.search(1, 1, item, index)}}},[_vm._v(_vm._s(item))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"fault-code-panel fmi-code"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultSpnFmi1),expression:"faultSpnFmi1"}],staticClass:"inputcontent",attrs:{"type":"tel","placeholder":"请输入数字"},domProps:{"value":(_vm.faultSpnFmi1)},on:{"blur":_vm.scroll,"input":function($event){if($event.target.composing){ return; }_vm.faultSpnFmi1=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"line"}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultSpnFmi2),expression:"faultSpnFmi2"}],staticClass:"inputcontent",attrs:{"type":"tel","placeholder":"请输入数字"},domProps:{"value":(_vm.faultSpnFmi2)},on:{"blur":_vm.scroll,"input":function($event){if($event.target.composing){ return; }_vm.faultSpnFmi2=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"code-btn",on:{"click":function($event){return _vm.search(2, 0)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.CR_FAULT_SPN_FMI_LIST && _vm.CR_FAULT_SPN_FMI_LIST.length > 0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"search-code-log"},[_c('div',{staticClass:"keyword"},_vm._l((_vm.CR_FAULT_SPN_FMI_LIST),function(item,index){return _c('span',{key:index,on:{"click":function($event){return _vm.search(2, 1, item, index)}}},[_vm._v(_vm._s(item))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"fault-code-panel fault-code-desc"},[_vm._m(2),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultCodeDesc),expression:"faultCodeDesc"}],staticClass:"inputcontent",attrs:{"type":"text","placeholder":"请输入文字，如：扭矩限制"},domProps:{"value":(_vm.faultCodeDesc)},on:{"blur":_vm.scroll,"input":function($event){if($event.target.composing){ return; }_vm.faultCodeDesc=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"code-btn",on:{"click":function($event){return _vm.search(3, 0)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.CR_FAULT_DESC_LIST && _vm.CR_FAULT_DESC_LIST.length > 0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"search-code-log"},[_c('div',{staticClass:"keyword"},_vm._l((_vm.CR_FAULT_DESC_LIST),function(item,index){return _c('span',{key:index,on:{"click":function($event){return _vm.search(3, 1, item, index)}}},[_vm._v(_vm._s(item))])}),0)]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"link-box"}),_vm._v(" "),_c('div',{staticClass:"keyboard",class:{ 'show': _vm.showKeyboard }},[_c('table',_vm._l((_vm.keyList),function(item,index){return _c('tr',{key:index},_vm._l((item),function(v,i){return (v.mes || v.mes == 0 || v.src)?_c('td',{key:i,class:[v.class,{press:v.active,pressWhite:v.activeWhite}],attrs:{"colspan":v.colspan,"rowspan":v.rowspan},on:{"click":function($event){return _vm.getKeyValue(v)}}},[_vm._v("\n          "+_vm._s(v.src?'':v.mes)),(v.src)?_c('img',{attrs:{"src":v.src,"alt":""}}):_vm._e()]):_vm._e()}),0)}),0)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-title"},[_c('span',[_vm._v("查故障码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-title"},[_c('span',[_vm._v("查SPN_FMI码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-title"},[_c('span',[_vm._v("查故障码描述")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(664);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a6505c6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1263);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3427)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0a6505c6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a6505c6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a6505c6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3428);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("21145ccf", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-0a6505c6]{height:auto!important;min-height:100%;background-color:#f5f5f5;overflow:hidden}.fault-code[data-v-0a6505c6]{padding:0 .6rem;overflow:hidden}.fault-code-panel[data-v-0a6505c6]{width:100%;padding:0 .6rem;margin-top:1.4rem;background-color:#fff;border-radius:.4rem;overflow:hidden}.fault-code-panel .panel-title[data-v-0a6505c6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.85rem}.fault-code-panel .panel-title span[data-v-0a6505c6]{height:1.25rem;font-size:.9rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.fault-code-panel em[data-v-0a6505c6]{display:inline-block;width:1rem;height:1rem;margin-right:.5rem;background-position:50%;background-repeat:no-repeat;background-size:100%}.fault-code-panel .line[data-v-0a6505c6]{display:inline-block;width:.6rem;height:.1rem;margin:0 .4rem}.fault-code-panel.fault-code em[data-v-0a6505c6]{background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/faultcode.jpg\")}.fault-code-panel.fmi-code em[data-v-0a6505c6]{background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/spn.jpg\")}.fault-code-panel.fault-code-desc em[data-v-0a6505c6]{background-image:url(\"http://static2.kaxiuyun.com/kxy/data-library/faultdesc.jpg\")}.fault-code-panel .input-box[data-v-0a6505c6]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:2rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:1rem}.fault-code-panel .input-box input[data-v-0a6505c6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f1f1f1;width:100%;height:100%;padding:0 .6rem;border-radius:.2rem;font-size:.8rem;color:#333}.fault-code-panel .input-box input[data-v-0a6505c6]::-webkit-input-placeholder{font-size:.8rem}.fault-code-panel .input-box input[data-v-0a6505c6]:-ms-input-placeholder{font-size:.8rem}.fault-code-panel .input-box input[data-v-0a6505c6]::placeholder{font-size:.8rem}.fault-code-panel .input-box input.fault-code-input[data-v-0a6505c6]{outline:none;color:transparent;caret-color:transparent;position:absolute;z-index:1;background:none;margin-left:-100%;text-indent:-999em;height:.1rem}.fault-code-panel .input-box .tempspan[data-v-0a6505c6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;background-color:#f1f1f1;padding:0 .6rem;border-radius:.2rem;white-space:nowrap;overflow:hidden;font-size:.8rem;color:#999}.fault-code-panel .input-box .tempspan.have-keyword[data-v-0a6505c6]{color:#333}.fault-code-panel .input-box .tempspan .cursor[data-v-0a6505c6]{background-color:#3476eb;height:1rem;width:.1rem;color:#3476eb;display:inline-block;vertical-align:middle;-webkit-animation:keyfade-data-v-0a6505c6 1s infinite linear;animation:keyfade-data-v-0a6505c6 1s infinite linear}.fault-code-panel .input-box .code-btn[data-v-0a6505c6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.6rem;height:2rem;margin-left:.6rem;background:#069d60;border-radius:.2rem;font-size:.8rem;color:#fff}@-webkit-keyframes keyfade-data-v-0a6505c6{0%{opacity:1}to{opacity:0}}@keyframes keyfade-data-v-0a6505c6{0%{opacity:1}to{opacity:0}}.search-code-log[data-v-0a6505c6]{margin-top:.5rem;white-space:nowrap;overflow:hidden}.search-code-log .keyword[data-v-0a6505c6]{display:inline-block}.search-code-log .keyword span[data-v-0a6505c6]{height:1.3rem;line-height:1.3rem;margin-right:.5rem;padding:0 .4rem;background-color:#e8e8e8;border-radius:.2rem;font-size:.65rem;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.search-code-log .keyword span[data-v-0a6505c6]:last-child{margin-right:0}.keyboard[data-v-0a6505c6]{position:fixed;left:0;bottom:-600px;width:100%;z-index:100;background:#d0d3da}.keyboard table[data-v-0a6505c6]{border-collapse:inherit;border-spacing:.6rem .5rem}.keyboard table tr td[data-v-0a6505c6]{width:3.35rem;height:2rem;line-height:2rem;text-align:center;background:#a7afbc;border-radius:.2rem;font-size:1.1rem;color:#0c0c0c;box-shadow:0 1px 0 0 #8c959c;position:relative;font-family:PingFangSC-Semibold,PingFang SC}.keyboard table tr td img[data-v-0a6505c6]{width:1.3rem;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);pointer-events:none}.keyboard table tr td.press[data-v-0a6505c6]{background:#fafafa}.keyboard table tr td.pressWhite[data-v-0a6505c6]{background:#a7afbc}.keyboard table tr .white[data-v-0a6505c6]{background:#fafafa;box-shadow:0 1px 0 0 #888c8f}.keyboard table tr:last-of-type td[data-v-0a6505c6]:last-of-type{background:#096cff;color:#fff;font-size:.9rem}.keyboard.show[data-v-0a6505c6]{-webkit-animation:mymove-data-v-0a6505c6 .5s 1 forwards;animation:mymove-data-v-0a6505c6 .5s 1 forwards}@-webkit-keyframes mymove-data-v-0a6505c6{0%{bottom:-600px}to{bottom:0}}@keyframes mymove-data-v-0a6505c6{0%{bottom:-600px}to{bottom:0}}.fault-desc[data-v-0a6505c6]{padding:0 .6rem;margin-top:1.4rem}.fault-desc .title[data-v-0a6505c6]{margin-bottom:.4rem;font-size:.7rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:1rem}.fault-desc .desc-list[data-v-0a6505c6]{background-color:#fff;border-radius:.4rem;padding-left:.6rem}.fault-desc .desc-list li[data-v-0a6505c6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.33rem;padding-right:.6rem;border-bottom:.01rem solid #eee}.fault-desc .desc-list li .name[data-v-0a6505c6]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.8rem;line-height:1;color:#333;font-weight:400;font-family:PingFangSC-Regular,PingFang SC}.fault-desc .desc-list li .hot-icon[data-v-0a6505c6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.fault-desc .desc-list li .hot-icon em[data-v-0a6505c6]{display:block;width:.8rem;height:.8rem;margin-left:.25rem;background-image:url(\"https://static1.kaxiuyun.com/hot_icon.png\");background-position:0;background-repeat:no-repeat;background-size:.8rem .8rem}.fault-desc .desc-list li .arrow-right[data-v-0a6505c6]{width:.5rem;height:.5rem;margin-left:.8rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:.3rem .5rem;background-position:50%}.link-box[data-v-0a6505c6]{margin:1.4rem 0 1.2rem;text-align:center;overflow:hidden}.link-box span[data-v-0a6505c6]{height:1.05rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#177afa;line-height:1.05rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {
      faultCode: '请输入数字，如：1011',
      // 故障码
      disabled: true,
      showCursor: false,
      faultSpnFmi1: '',
      faultSpnFmi2: '',
      faultCodeDesc: '',
      // 故障码描述
      showKeyboard: false,
      XNY_FAULT_CODE_LIST: [],
      // 故障码搜索记录
      XNY_FAULT_SPN_FMI_LIST: [],
      // 故障码搜索记录
      XNY_FAULT_DESC_LIST: [],
      // 故障码搜索记录
      keyList: [
      // 键盘数据
      [{
        mes: 'A'
      }, {
        mes: 1,
        class: 'white'
      }, {
        mes: 2,
        class: 'white'
      }, {
        mes: 3,
        class: 'white'
      }, {
        mes: 'delete',
        src: __webpack_require__(264)
      }], [{
        mes: 'B'
      }, {
        mes: 4,
        class: 'white'
      }, {
        mes: 5,
        class: 'white'
      }, {
        mes: 6,
        class: 'white'
      }, {
        mes: 'D'
      }], [{
        mes: 'C'
      }, {
        mes: 7,
        class: 'white'
      }, {
        mes: 8,
        class: 'white'
      }, {
        mes: 9,
        class: 'white'
      }, {
        mes: 'E'
      }], [{
        mes: 'U',
        rowspan: '2'
      }, {
        mes: 0,
        class: 'white'
      }, {
        mes: '-',
        class: 'white',
        colspan: '2'
      }, {
        mes: 'F'
      }], [{}, {
        mes: 'P',
        colspan: '2'
      }, {}, {
        mes: 'key',
        src: __webpack_require__(265)
      }, {
        mes: '搜索'
      }]],
      faultList: [],
      timing: '',
      time: 0,
      searchKeyNum: ''
    };
  },
  watch: {
    showCursor: function showCursor(val) {
      if (val && this.faultCode === '请输入数字，如：1011') {
        this.faultCode = '';
      }
      if (!val && this.faultCode === '') {
        this.faultCode = '请输入数字，如：1011';
      }
    }
  },
  created: function created() {
    localStorage.setItem('isAdminPass', this._Util.getParaValueByName('isAdminPass'));
    localStorage.setItem('isAccessControl', this._Util.getParaValueByName('isAccessControl'));
    localStorage.setItem('isVip', this._Util.getParaValueByName('isVip'));
    localStorage.setItem('isSvip', this._Util.getParaValueByName('isSvip'));
    localStorage.setItem('isAccess', this._Util.getParaValueByName('isAccess'));
    // document.title = '新故障码查询'
    this.getHistoryList('XNY_FAULT_CODE');
    this.getHistoryList('XNY_FAULT_SPN_FMI');
    this.getHistoryList('XNY_FAULT_DESC');
    this.faultDesList();
    // this.shareConfig()
  },
  mounted: function mounted() {
    var that = this;
    sessionStorage.removeItem('new_pageParams');
    if (this._Util.isApp()) {
      // app端 当前页面变为页面最上层时，触发接口请求刷新搜索记录
      var _that = this;
      api.addEventListener({
        name: 'viewappear'
      }, function (ret, err) {
        _that.getHistoryList('XNY_FAULT_CODE');
        _that.getHistoryList('XNY_FAULT_SPN_FMI');
        _that.getHistoryList('XNY_FAULT_DESC');
      });
    }
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '新能源故障码',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    if (!this._Util.isIOS) {
      // 软键盘弹起，输入框自动出现在可视区域
      this.timer = setInterval(function () {
        if (document.activeElement.className.indexOf('inputcontent') >= 0) {
          document.activeElement.scrollIntoViewIfNeeded();
        }
      }, 300);
    }
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '新能源故障码,' + that.time,
        searchKey: ''
      }, that);
    }
    clearInterval(that.timer);
  },
  methods: {
    /**
     * 获取搜索记录
     * @param {string} type 搜索内容对应类型
     */
    getHistoryList: function getHistoryList(type) {
      var _this = this;
      var params = {
        pageType: type
      };
      this._Util.post(this._Api.XNY_POST_PRODUCT_RECORD_LIST, params, function (data) {
        _this["".concat(type, "_LIST")] = data;
      }, function () {}, this);
    },
    /**
     * 添加搜索记录
     */
    addHistory: function addHistory(keyword, type) {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_ADD_SOSO_RECORD, {
          keyword: keyword,
          pageType: type
        }, function (data) {
          resolve(data);
        }, function (err) {
          reject(err);
        }, _this2);
      });
    },
    /**
     * 搜索
     * @param {Number} type 搜索类型
     * @param {Number} mode 搜索方式
     * @param {Number} index 搜索记录索引
     */
    search: function search(type, mode, item, index) {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var keyword, tiptext, haveKeyword, typeName, modeName, now, userinfo, params;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              debugger;
              keyword = '';
              tiptext = '';
              haveKeyword = true;
              typeName = ''; // 搜索类型名称
              modeName = ''; // 搜索方式名称
              if (type === 1) {
                keyword = mode === 1 ? item : _this3.faultCode.trim();
                if (keyword === '' || keyword === '请输入数字，如：1011') {
                  haveKeyword = false;
                  tiptext = '请输入故障码';
                }
                if (keyword === 'P' || keyword === 'p') {
                  haveKeyword = false;
                  tiptext = '输入内容有误，请修改后再搜索';
                }
                typeName = 'XNY_FAULT_CODE';
              } else if (type === 2) {
                keyword = mode === 1 ? item : "".concat(_this3.faultSpnFmi1.trim(), "-").concat(_this3.faultSpnFmi2.trim());
                if (mode === 0) {
                  if (_this3.faultSpnFmi1.trim() === '' || _this3.faultSpnFmi2.trim() === '') {
                    haveKeyword = false;
                    tiptext = '请输入完整的SPN_FMI码';
                  }
                }
                typeName = 'XNY_FAULT_SPN_FMI';
              } else if (type === 3) {
                keyword = mode === 1 ? item : _this3.faultCodeDesc.trim();
                if (keyword === '') {
                  haveKeyword = false;
                  tiptext = '请输入故障码描述';
                }
                if (keyword === 'P' || keyword === 'p') {
                  haveKeyword = false;
                  tiptext = '输入内容有误，请修改后再搜索';
                }
                typeName = 'XNY_FAULT_DESC';
              }
              if (haveKeyword) {
                _context.next = 1;
                break;
              }
              _dialog.default.alert({
                message: tiptext
              }).then(function () {});
              return _context.abrupt("return");
            case 1:
              now = new Date();
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              _this3.searchKeyNum = now.getTime() + '' + userinfo.userId;
              if (type == 1) {
                _this3._Util.collectPageViewNew({
                  type: 14,
                  postUrl: _this3._Api.POST_COLLECT_NEW,
                  source: '',
                  target: '',
                  remark: _this3.faultCode.trim(),
                  searchKey: _this3.searchKeyNum
                }, _this3);
              } else if (type == 2) {
                _this3._Util.collectPageViewNew({
                  type: 14,
                  postUrl: _this3._Api.POST_COLLECT_NEW,
                  source: '',
                  target: '',
                  remark: "".concat(_this3.faultSpnFmi1.trim(), "-").concat(_this3.faultSpnFmi2.trim()),
                  searchKey: _this3.searchKeyNum
                }, _this3);
              } else if (type == 3) {
                _this3._Util.collectPageViewNew({
                  type: 14,
                  postUrl: _this3._Api.POST_COLLECT_NEW,
                  source: '',
                  target: '',
                  remark: _this3.faultCodeDesc.trim(),
                  searchKey: _this3.searchKeyNum
                }, _this3);
              }
              if (mode === 0) {
                modeName = '关键词输入';
              } else {
                modeName = '点击搜索记录';
              }
              _context.next = 2;
              return _this3.addHistory(keyword, typeName);
            case 2:
              // 关键词搜索
              _this3._Util.sensorsCollect('search_keywords', {
                operation_page: '新故障码查询',
                keywords: keyword,
                jump_url: window.location.href,
                search_type: typeName,
                search_mode: modeName,
                search_history_sort: index + 1 || ''
              });
              debugger;
              params = {
                keyword: keyword,
                index: 0,
                folderid: '10086',
                isClick: false,
                faultType: typeName === 'XNY_FAULT_SPN_FMI' ? 'spn' : '',
                // 兼容老故障码查询逻辑
                searchType: typeName,
                // 新故障码 查询分类
                title: '故障码'
              }; // 跳转到通用落地页
              if (_this3._Util.isApp()) {
                _this3.removeEvent();
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'appSearchResultNew',
                    url: "".concat(location.origin, "/v2/business/pay/appSearchResultNew?").concat(_this3._Util.objectToQueryString(params))
                  }
                });
              } else {
                _this3.$router.push({
                  name: 'appSearchResultNewXny',
                  query: params
                });
              }

              // 兼容老版功能 暂不需要此部分逻辑
              // if (this._Util.isApp()) {
              //   this.removeEvent()
              //   api.sendEvent({
              //     name: 'acOpenNewFrm',
              //     extra: {
              //       name: 'faultCode2',
              //       notGive: 1,
              //       url: `${location.origin}/v2/library/faultCode2/reasult?searchType=${typeName}&keyword=${keyword}`
              //     }
              //   })
              // } else {
              //   this.$router.push({
              //     path: '/v2/library/faultCode2/reasult',
              //     query: {
              //       searchType: typeName,
              //       keyword: keyword
              //     }
              //   })
              // }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 常见故障码描述
     */
    faultDesList: function faultDesList() {
      var _this4 = this;
      var params = {
        pageNum: 1,
        pageSize: 10
      };
      this._Util.post(this._Api.POST_FAULT_DES_LIST, params, function (data) {
        _this4.faultList = data.dataList;
      }, function () {}, this);
    },
    /**
     * 常见故障码描述 搜索（关键词搜索）
     */
    faultDetailSearch: function faultDetailSearch(item, index) {
      // 关键词搜索
      this._Util.sensorsCollect('search_keywords', {
        operation_page: '新故障码查询',
        keywords: item.name,
        jump_url: window.location.href,
        search_type: 'XNY_FAULT_DESC',
        search_mode: '点击搜索记录',
        search_history_sort: index
      });

      // 元素点击
      this._Util.sensorsCollect('element_click', {
        $element_content: item.name,
        $element_name: '常见故障描述',
        $element_class_name: '',
        $element_type: 'li',
        $element_target_url: '',
        $url: window.location.href,
        $title: '新故障码查询'
      });
      var params = {
        keyword: item.name.trim(),
        index: 0,
        folderid: '10086',
        isClick: false,
        faultType: '',
        // 兼容老故障码查询逻辑
        searchType: 'XNY_FAULT_DESC' // 新故障码 查询分类
      };

      // 跳转到通用落地页
      if (this._Util.isApp()) {
        this.removeEvent();
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'appSearchResultNew',
            url: "".concat(location.origin, "/v2/business/pay/appSearchResultNew?").concat(this._Util.objectToQueryString(params))
          }
        });
      } else {
        this.$router.push({
          name: 'appSearchResultNew',
          query: params
        });
      }

      // 兼容老版功能 暂不需要此部分逻辑
      // if (this._Util.isApp()) {
      //   this.removeEvent()
      //   api.sendEvent({
      //     name: 'acOpenNewFrm',
      //     extra: {
      //       name: 'faultCode2',
      //       notGive: 1,
      //       url: `${location.origin}/v2/library/faultCode2/reasult?searchType=XNY_FAULT_DESC&keyword=${item.name}`
      //     }
      //   })
      // } else {
      //   this.$router.push({
      //     path: '/v2/library/faultCode2/reasult',
      //     query: {
      //       searchType: 'XNY_FAULT_DESC',
      //       keyword: item.name
      //     }
      //   })
      // }
    },
    /**
     * 弹出自定义键盘
     */
    slideBoard: function slideBoard() {
      this.showCursor = true;
      this.showKeyboard = true;
    },
    blurInput: function blurInput() {
      this.showKeyboard = false;
      this.showCursor = false;
    },
    /**
     * 点击键盘获取值
     */
    getKeyValue: function getKeyValue(param) {
      var _this5 = this;
      for (var i = 0; i < this.keyList.length; i++) {
        var key2 = this.keyList[i];
        for (var j = 0; j < key2.length; j++) {
          this.$set(key2[j], 'active', false);
          this.$set(key2[j], 'activeWhite', false);
        }
      }
      if (typeof param.mes == 'number' || param.mes == '-') {
        this.$set(param, 'activeWhite', true);
        setTimeout(function () {
          _this5.$set(param, 'activeWhite', false);
        }, 200);
      } else {
        this.$set(param, 'active', true);
        setTimeout(function () {
          _this5.$set(param, 'active', false);
        }, 200);
      }
      if (param.mes == 'key') {
        // 弹出默认键盘
        this.$refs.faultCodes.focus();
        this.showKeyboard = false;
        this.faultCode = this.faultCode.replace(/\s*/g, '');
      } else if (param.mes == 'delete') {
        // 退格删除
        this.faultCode = this.faultCode.substring(0, this.faultCode.length - 1);
      } else if (param.mes == '搜索') {
        this.search(1);
      } else {
        this.faultCode += param.mes;
      }
    },
    /**
     * 故障码查询意见反馈
     */
    feedBack: function feedBack() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=11e80dba&data=\u65B0\u6545\u969C\u7801\u67E5\u8BE2");

      // 点击反馈链接
      this._Util.sensorsCollect('click_feedbacklink', {
        operation_page: '新故障码查询',
        feedbacklink_content: '故障码查询意见反馈',
        jump_url: url
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    scroll: function scroll() {
      setTimeout(function () {
        var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
        window.scrollTo(0, Math.max(scrollHeight - 1, 0));
      }, 100);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '故障码查询',
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 移除app端对分享事件的监听，防止分享时，出发多次分享配置
     */
    removeEvent: function removeEvent() {
      api.sendEvent({
        name: 'shareToAcFlag',
        extra: {
          needShare: false
        }
      });
      api.removeEventListener({
        name: 'shareToWeb'
      });
      api.removeEventListener({
        name: 'shareToAc'
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"fault-code",on:{"click":function($event){return _vm.blurInput()}}},[_c('div',{staticClass:"fault-code-panel fault-code"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultCode),expression:"faultCode"}],ref:"faultCodes",staticClass:"fault-code-input",attrs:{"type":"text","placeholder":"请输入数字，如：1011"},domProps:{"value":(_vm.faultCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.faultCode=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"tempspan",class:{'have-keyword': _vm.faultCode !== '请输入数字，如：1011'},on:{"click":function($event){$event.stopPropagation();return _vm.slideBoard()}}},[_vm._v(_vm._s(_vm.faultCode)),(_vm.showCursor)?_c('i',{staticClass:"cursor"}):_vm._e()]),_vm._v(" "),_c('span',{staticClass:"code-btn",on:{"click":function($event){return _vm.search(1, 0)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.XNY_FAULT_CODE_LIST && _vm.XNY_FAULT_CODE_LIST.length > 0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"search-code-log"},[_c('div',{staticClass:"keyword"},_vm._l((_vm.XNY_FAULT_CODE_LIST),function(item,index){return _c('span',{key:index,on:{"click":function($event){return _vm.search(1, 1, item, index)}}},[_vm._v(_vm._s(item))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"fault-code-panel fmi-code"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultSpnFmi1),expression:"faultSpnFmi1"}],staticClass:"inputcontent",attrs:{"type":"tel","placeholder":"请输入数字"},domProps:{"value":(_vm.faultSpnFmi1)},on:{"blur":_vm.scroll,"input":function($event){if($event.target.composing){ return; }_vm.faultSpnFmi1=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"line"}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultSpnFmi2),expression:"faultSpnFmi2"}],staticClass:"inputcontent",attrs:{"type":"tel","placeholder":"请输入数字"},domProps:{"value":(_vm.faultSpnFmi2)},on:{"blur":_vm.scroll,"input":function($event){if($event.target.composing){ return; }_vm.faultSpnFmi2=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"code-btn",on:{"click":function($event){return _vm.search(2, 0)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.XNY_FAULT_SPN_FMI_LIST && _vm.XNY_FAULT_SPN_FMI_LIST.length > 0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"search-code-log"},[_c('div',{staticClass:"keyword"},_vm._l((_vm.XNY_FAULT_SPN_FMI_LIST),function(item,index){return _c('span',{key:index,on:{"click":function($event){return _vm.search(2, 1, item, index)}}},[_vm._v(_vm._s(item))])}),0)]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"fault-code-panel fault-code-desc"},[_vm._m(2),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.faultCodeDesc),expression:"faultCodeDesc"}],staticClass:"inputcontent",attrs:{"type":"text","placeholder":"请输入文字，如：扭矩限制"},domProps:{"value":(_vm.faultCodeDesc)},on:{"blur":_vm.scroll,"input":function($event){if($event.target.composing){ return; }_vm.faultCodeDesc=$event.target.value}}}),_vm._v(" "),_c('span',{staticClass:"code-btn",on:{"click":function($event){return _vm.search(3, 0)}}},[_vm._v("搜索")])])]),_vm._v(" "),(_vm.XNY_FAULT_DESC_LIST && _vm.XNY_FAULT_DESC_LIST.length > 0)?_c('div',{directives:[{name:"scroll",rawName:"v-scroll"}],staticClass:"search-code-log"},[_c('div',{staticClass:"keyword"},_vm._l((_vm.XNY_FAULT_DESC_LIST),function(item,index){return _c('span',{key:index,on:{"click":function($event){return _vm.search(3, 1, item, index)}}},[_vm._v(_vm._s(item))])}),0)]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"link-box"}),_vm._v(" "),_c('div',{staticClass:"keyboard",class:{ 'show': _vm.showKeyboard }},[_c('table',_vm._l((_vm.keyList),function(item,index){return _c('tr',{key:index},_vm._l((item),function(v,i){return (v.mes || v.mes == 0 || v.src)?_c('td',{key:i,class:[v.class,{press:v.active,pressWhite:v.activeWhite}],attrs:{"colspan":v.colspan,"rowspan":v.rowspan},on:{"click":function($event){return _vm.getKeyValue(v)}}},[_vm._v("\n          "+_vm._s(v.src?'':v.mes)),(v.src)?_c('img',{attrs:{"src":v.src,"alt":""}}):_vm._e()]):_vm._e()}),0)}),0)]),_vm._v(" "),_vm._m(3)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-title"},[_c('span',[_vm._v("查故障码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-title"},[_c('span',[_vm._v("查SPN_FMI码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-title"},[_c('span',[_vm._v("查故障码描述")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":__webpack_require__(3429)}})])}]
module.exports = __webpack_require__.p + "static/img/xnyBg.8b54098.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(665);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac6629b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1268);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3430)
  __webpack_require__(3432)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ac6629b6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac6629b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac6629b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3431);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("db94e630", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "*{font-family:PingFangSC-Regular,PingFang SC}[class*=hairline]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.fault-code-conatiner .van-tabs{margin:0 -.8rem}.fault-code-conatiner .van-tabs__wrap{height:1.7rem;overflow:auto}.fault-code-conatiner .van-tabs__nav{background-color:transparent}.fault-code-conatiner .van-tabs__nav:after{display:block;content:\"\";width:.2rem;height:1.5rem;position:relative;-webkit-box-flex:1;-webkit-flex:1 0 auto;-ms-flex:1 0 auto;flex:1 0 auto}.fault-code-conatiner .van-tabs__nav--card{border:none;height:1.5rem;margin:0;padding:0 .8rem}.fault-code-conatiner .van-tabs__nav--card .van-tab{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;padding:0 .6rem;margin-right:.6rem;border-radius:.8rem;background-color:#fff;color:#666;font-size:.7rem;border:none}.fault-code-conatiner .van-tabs__nav--card .van-tab.van-tab--active{background-color:#177afa;color:#fff}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3433);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("218c7d88", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fault-code-page[data-v-ac6629b6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:#fff;overflow:hidden}.fault-code-page[data-v-ac6629b6] .van-overlay{background-color:rgba(0,0,0,.51)}.fault-code-conatiner[data-v-ac6629b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.fault-code-conatiner .conatiner-inner[data-v-ac6629b6]{position:relative;padding:0 0 .5rem;overflow:hidden}.fault-code-conatiner .conatiner-inner .hr[data-v-ac6629b6]{height:.4rem;background:#f6f7f9}.fault-code-conatiner .watermark[data-v-ac6629b6]{position:absolute;width:100%;left:0;top:0;bottom:0;background:url(" + escape(__webpack_require__(152)) + ");background-size:9.4rem;background-position:0 0;pointer-events:none;z-index:12;opacity:.6}.fault-code-conatiner .fault-code-title[data-v-ac6629b6]{margin-top:1rem;font-size:1rem;color:#333;line-height:1.4rem;font-weight:700;padding:0 .8rem}.fault-code-conatiner .fault-code-title .code[data-v-ac6629b6]{font-size:1rem;line-height:1.4rem;font-weight:700}.fault-code-conatiner .fault-code-meta[data-v-ac6629b6]{margin-top:.4rem;font-size:0;padding:0 .8rem .6rem}.fault-code-conatiner .fault-code-meta span[data-v-ac6629b6]{display:inline-block;line-height:1rem;font-size:.7rem;color:#666}.fault-code-conatiner .fault-code-meta span.text[data-v-ac6629b6]{margin-right:.4rem}.fault-code-conatiner .mode-wrap[data-v-ac6629b6]{padding:.6rem 0 .4rem}.fault-code-conatiner .detail-panel[data-v-ac6629b6]{margin-top:1.6rem;padding:0 .8rem}.fault-code-conatiner .detail-panel .title[data-v-ac6629b6]{line-height:1.13rem;font-size:.9rem;color:#333;font-weight:700}.fault-code-conatiner .detail-panel .content[data-v-ac6629b6]{margin-top:.4rem;line-height:1.2rem;font-size:.8rem;color:#333}.fault-code-conatiner .detail-panel .content.pic-list[data-v-ac6629b6]{margin-top:0}.fault-code-conatiner .detail-panel .content.pic-list img[data-v-ac6629b6]{width:100%;max-height:9.1rem;margin-top:.4rem;border-radius:.2rem;background-color:#e2e9f6;overflow:hidden}.fault-code-conatiner .detail-panel .content.pic-list video[data-v-ac6629b6]{width:100%;max-height:9.1rem;margin-top:.4rem;border-radius:.2rem}.fault-code-conatiner .detail-panel .content.reason-list[data-v-ac6629b6]{position:relative;margin-top:.4rem;padding:0 .5rem 0 .6rem;background-color:#f6f7f9;border-radius:.3rem}.fault-code-conatiner .detail-panel .content.reason-list .reason-item[data-v-ac6629b6]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.8rem 0}.fault-code-conatiner .detail-panel .content.reason-list .reason-item[data-v-ac6629b6]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px;border-color:#e3e0df}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left[data-v-ac6629b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-left:.8rem}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left p[data-v-ac6629b6]{position:relative;line-height:1.2rem;font-size:.85rem;color:#fe632a;font-weight:600}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left p[data-v-ac6629b6]:before{position:absolute;left:-.8rem;top:.45rem;display:block;content:\"\";width:.3rem;height:.3rem;border-radius:100%;background-color:#fe632a;overflow:hidden}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left span[data-v-ac6629b6]{margin-top:.2rem;display:inline-block;line-height:1rem;font-size:.7rem;color:#999}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-right[data-v-ac6629b6]{position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:.65rem}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-right span[data-v-ac6629b6]{line-height:.8rem;font-size:.6rem;color:#999}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-right span em[data-v-ac6629b6]{display:inline-block;width:.29rem;height:.5rem;margin-left:.25rem;margin-top:-.1rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:100% 100%;background-position:50%;vertical-align:middle}.fault-code-conatiner .detail-panel .content.reason-list .reason-item.read[data-v-ac6629b6]{opacity:.65}.fault-code-conatiner .detail-panel .content.reason-list .suspension-box[data-v-ac6629b6]{position:absolute;right:-.4rem;top:-1.85rem;height:1.8rem;padding:0 .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-image:-webkit-gradient(linear,left bottom,left top,from(#ffc830),to(#ffe185));background-image:linear-gradient(0deg,#ffc830,#ffe185);box-shadow:0 0 .5rem 0 rgba(23,122,250,.3);border-radius:.4rem;z-index:10;color:#333;font-size:.65rem;-webkit-animation:bounce-data-v-ac6629b6 2s linear infinite;animation:bounce-data-v-ac6629b6 2s linear infinite}.fault-code-conatiner .detail-panel .content.reason-list .suspension-box[data-v-ac6629b6]:before{display:block;content:\"\";position:absolute;bottom:-.33rem;left:50%;width:0;height:0;margin-left:-.34rem;border-style:solid;border-width:.34rem .36rem 0 .34rem;border-color:#ffc830 transparent transparent}.fault-code-conatiner .detail-panel.fault-panel .failure-case-com[data-v-ac6629b6]{margin-top:.55rem;padding:0}.page-bottom[data-v-ac6629b6]{position:relative;width:100%;height:3rem;bottom:0;left:0;z-index:12}.error-correction-bar[data-v-ac6629b6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:2.4rem}.error-correction-bar .name[data-v-ac6629b6]{padding:.6rem;font-size:.7rem;line-height:1rem;color:#177afa}.error-correction-bar .name[data-v-ac6629b6]:after{display:inline-block;content:\"\";width:.29rem;height:.5rem;margin-left:.25rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-repeat:no-repeat;background-size:100% 100%;background-position:50%}@-webkit-keyframes bounce-data-v-ac6629b6{50%{-webkit-transform:translateY(.2rem);transform:translateY(.2rem)}}@keyframes bounce-data-v-ac6629b6{50%{-webkit-transform:translateY(.2rem);transform:translateY(.2rem)}}.cr-popup[data-v-ac6629b6]{height:86%;border-radius:.6rem .6rem 0 0;overflow:hidden}.model-container[data-v-ac6629b6]{height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.model-container .model-content[data-v-ac6629b6],.model-container[data-v-ac6629b6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.model-container .model-content[data-v-ac6629b6]{width:15.35rem;height:17.05rem;margin-top:5.28rem;background-color:#fff;border-radius:.5rem;overflow:hidden}.model-container .model-content .model-content-head[data-v-ac6629b6]{padding:0 .6rem}.model-container .model-content .model-content-head h4[data-v-ac6629b6]{margin-top:1rem;line-height:1.25rem;font-size:.9rem;color:#333;font-weight:600}.model-container .model-content .model-content-head p[data-v-ac6629b6]{margin-top:.2rem;line-height:1rem;font-size:.7rem;color:#666}.model-container .model-content .model-content-body[data-v-ac6629b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;margin-top:.6rem;padding:0 .6rem}.model-container .model-content .model-content-body .mode[data-v-ac6629b6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.4rem;margin:.4rem 0;padding:0 .43rem 0 .6rem;background-color:#f5f5f5;border-radius:.3rem;white-space:nowrap}.model-container .model-content .model-content-body .mode[data-v-ac6629b6]:after{display:inline-block;content:\"\";width:.29rem;height:.5rem;margin-left:.25rem;background-image:url(" + escape(__webpack_require__(57)) + ");background-repeat:no-repeat;background-size:100% 100%;background-position:50%}.model-container .model-content .model-content-body .mode span[data-v-ac6629b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.75rem;color:#333;text-overflow:ellipsis;overflow:hidden}.model-container .close-btn[data-v-ac6629b6]{display:inline-block;width:1.6rem;height:1.6rem;margin-top:1.2rem;background-image:url(" + escape(__webpack_require__(1469)) + ");background-position:50%;background-size:100% 100%}.model-container .fade-leave-active[data-v-ac6629b6]{-webkit-animation:shrink-data-v-ac6629b6 .6s ease-out;animation:shrink-data-v-ac6629b6 .6s ease-out;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;opacity:1}@-webkit-keyframes shrink-data-v-ac6629b6{to{-webkit-transform:scale(.25,.1);transform:scale(.25,.1)}}@keyframes shrink-data-v-ac6629b6{to{-webkit-transform:scale(.25,.1);transform:scale(.25,.1)}}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/close_icon.157169b.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(1470);
var _tabs = _interopRequireDefault(__webpack_require__(1471));
__webpack_require__(1472);
var _tab = _interopRequireDefault(__webpack_require__(1473));
__webpack_require__(311);
var _overlay = _interopRequireDefault(__webpack_require__(199));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _faultCase = _interopRequireDefault(__webpack_require__(3434));
var _toolbar = _interopRequireDefault(__webpack_require__(3437));
var _crPopup = _interopRequireDefault(__webpack_require__(3440));
var _faultReason = _interopRequireDefault(__webpack_require__(3443));
var _mintUi = __webpack_require__(7);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// 故障案例
// 底部菜单
// 故障码弹层
// 排查步骤详情
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    FaultCase: _faultCase.default,
    Toolbar: _toolbar.default,
    CrPopup: _crPopup.default,
    FaultReason: _faultReason.default
  }, _overlay.default.name, _overlay.default), _tab.default.name, _tab.default), _tabs.default.name, _tabs.default),
  data: function data() {
    return {
      pcode: this.$route.query.pode,
      fcsId: this.$route.query.fcsId,
      sn: this.$route.query.sn,
      vehiDirId: this.$route.query.vehiDirId,
      faultCodeDetail: {},
      material: {
        no: '8fa35187',
        sourceType: 5,
        // 类型
        sourceNo: this.$route.query.sn
      },
      // 故障码（新）跳转问答参数
      imglist: [],
      faultDescription: '',
      // 故障说明
      videosUrl: [],
      // 视频列表
      causePhenomenon: '',
      // 导致现象
      reportCondition: '',
      // 报出条件
      clearCodeCondition: '',
      // 清码条件
      reasonInfoList: [],
      // 产生原因列表
      isShowCorrectionsTools: false,
      showPopup: false,
      showPopupType: 'faultReason',
      crPopupTitle: '',
      reasonInfo: {
        proId: 0,
        reasonId: 0,
        vehiDirId: this.$route.query.vehiDirId,
        stepIds: ''
      },
      showCaseList: false,
      showModelOverlay: false,
      modelList: [],
      ureaId: 0,
      visitTimes: 0,
      showModelTab: false,
      timing: '',
      time: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    document.title = '故障码详情';
    this.isShowCorrectionsTools = localStorage.getItem('isFromMft100') !== '1';
    // this.shareConfig()
    // this.getUreaList()
    this.getfaultCodeDetail();
    this.showModelTab = Number(sessionStorage.getItem('visitTimes')) >= 1;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '故障码详情',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '故障码详情,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    startPlay: function startPlay(index) {
      var _this = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo, video;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this._Util.isFromApp()) {
                _context.next = 2;
                break;
              }
              _context.next = 1;
              return _this._Util.getUserInfo(_this);
            case 1:
              userinfo = _context.sent;
            case 2:
              if (!(localStorage.getItem('isAccessControl') == 1)) {
                _context.next = 4;
                break;
              }
              if (_this._Util.isSVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isSvip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context.next = 3;
                break;
              }
              video = document.getElementById('video_' + index);
              video.pause();
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this.clickFlag = true;
                } else {
                  _this.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 3:
              if (_this._Util.isVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isVip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context.next = 4;
                break;
              }
              video = document.getElementById('video_' + index);
              video.pause();
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this.clickFlag = true;
                } else {
                  _this.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 4:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 获取故障码详情
     */
    getfaultCodeDetail: function getfaultCodeDetail() {
      var _this2 = this;
      var apiUrl = '';
      if (this.$route.query.from === 'newFaultSearch') {
        // 新版故障码搜搜跳转来的
        apiUrl = this._Api.GET_FAULT_CODE_DETAIL_NEW2;
        this._Util.post(apiUrl, {
          faultcodeId: this.fcsId,
          sn: this.sn,
          vehiDirId: this.vehiDirId,
          ureaId: this.ureaId
        }, function (data) {
          _this2.faultCodeDetail = data;
          _this2.reasonInfo.proId = _this2.faultCodeDetail.proId;
          _this2.reasonInfo.faultCodeId = _this2.faultCodeDetail.faultCodeId;
          _this2.material.data = "faultCodeId_".concat(_this2.faultCodeDetail.faultCodeId);
          _this2.imglist = data.circuitsUrl && data.circuitsUrl.split(',') || [];
          var respList = data.crFaultCodeGuideListRespList[0] || [];
          _this2.faultDescription = respList.faultDescription && respList.faultDescription.replace(/\n/g, '<br>').trim();
          _this2.videosUrl = data.videosUrl && data.videosUrl.split(',') || [];
          _this2.causePhenomenon = respList.causePhenomenon && respList.causePhenomenon.replace(/\n/g, '<br>').trim();
          _this2.reportCondition = respList.reportCondition && respList.reportCondition.replace(/\n/g, '<br>').trim();
          _this2.clearCodeCondition = respList.clearCodeCondition && respList.clearCodeCondition.replace(/\n/g, '<br>').trim();
          _this2.reasonInfoList = _this2.faultCodeDetail.reasonInfoList || [];
          var indexs = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
          _this2.reasonInfoList.map(function (item, index) {
            item.index = indexs[index];
          });
        }, function () {}, this);
      } else {
        _toast.default.loading({
          duration: 0
        });
        apiUrl = this._Api.GET_FAULT_CODE_DETAIL;
        this.$http.get("".concat(apiUrl, "/").concat(this.fcsId, "/").concat(this.sn, "/").concat(this.vehiDirId, "/").concat(this.ureaId)).then(function (res) {
          if (res.data.status === 200) {
            var data = res.data.data;
            _this2.faultCodeDetail = data;
            _this2.reasonInfo.proId = _this2.faultCodeDetail.proId;
            _this2.material.data = "faultCodeId_".concat(_this2.faultCodeDetail.faultCodeId);
            _this2.imglist = data.circuitsUrl && data.circuitsUrl.split(',') || [];
            var respList = data.crFaultCodeGuideListRespList[0] || [];
            _this2.faultDescription = respList.faultDescription && respList.faultDescription.replace(/\n/g, '<br>').trim();
            _this2.causePhenomenon = respList.causePhenomenon && respList.causePhenomenon.replace(/\n/g, '<br>').trim();
            _this2.reportCondition = respList.reportCondition && respList.reportCondition.replace(/\n/g, '<br>').trim();
            _this2.clearCodeCondition = respList.clearCodeCondition && respList.clearCodeCondition.replace(/\n/g, '<br>').trim();
            _this2.reasonInfoList = _this2.faultCodeDetail.reasonInfoList || [];
            var indexs = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
            _this2.reasonInfoList.map(function (item, index) {
              item.index = indexs[index];
            });
          } else {
            (0, _toast.default)({
              message: res.data.msg
            });
          }
        }).catch(function (err) {
          console.log(err);
        }).then(function () {
          _toast.default.clear();
        });
      }
    },
    /**
     * 获取节点列表
     */
    getUreaList: function getUreaList() {
      var _this3 = this;
      var apiUrl = '';
      var ureaApi = '';
      console.log(this.$route.query);
      if (this.$route.query.from === 'newFaultSearch') {
        // 新版故障码搜搜跳转来的v4
        apiUrl = this._Api.GET_UREA_LIST_NEW2;
        ureaApi = "".concat(apiUrl, "/").concat(this.sn, "/").concat(this.vehiDirId);
        sessionStorage.removeItem('visitTimes');
      } else {
        apiUrl = this._Api.GET_UREA_LIST;
        ureaApi = "".concat(apiUrl, "/").concat(this.fcsId, "/").concat(this.sn, "/").concat(this.vehiDirId);
      }
      this.$http.get(ureaApi).then(function (res) {
        if (res.data.status === 200) {
          var _this3$modelList$;
          _this3.modelList = res.data.data || [];
          _this3.visitTimes = Number(sessionStorage.getItem('visitTimes'));
          _this3.showModelOverlay = _this3.visitTimes <= 0 && _this3.modelList.length > 1;
          _this3.visitTimes++;
          sessionStorage.setItem('visitTimes', _this3.visitTimes);
          var ureaId = Number(sessionStorage.getItem('ureaId'));
          _this3.ureaId = ureaId || ((_this3$modelList$ = _this3.modelList[0]) === null || _this3$modelList$ === void 0 ? void 0 : _this3$modelList$.ureaId) || 0;
          _this3.getfaultCodeDetail();
        } else {
          (0, _toast.default)({
            message: res.data.msg
          });
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            (0, _mintUi.MessageBox)({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.fileType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '故障码详情',
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 浏览图片
     * @param {Array} imgList 图片集合
     * @param {Number} activeIndex 当前显示的图片索引
     */
    viewImage: function viewImage(imgList, activeIndex) {
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      (0, _imagePreview.default)({
        images: _imgList,
        startPosition: activeIndex,
        loop: false
      });
    },
    /**
     * 监听查看文件检验事件
     * @param {Object} val 文件信息
     */
    emitCheckStatus: function emitCheckStatus(val) {
      this._Util.sensorsCollect('element_click_faultexample', {
        operation_page: '故障码详情',
        crid: this.$route.query.sn,
        vehicledictionary_id: val.fileNo,
        vehicledictionary_name: this.faultCodeDetail.system + this.faultCodeDetail.property,
        file_id: val.fileId,
        file_name: val.name,
        fault_code: this.$route.query.pode,
        fault_descruibe_id: this.$route.query.fcsId
      });
      this.checkStatus(val);
    },
    /**
     * 资料纠错
     */
    submitError: function submitError() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=").concat(this.material.no, "&data=").concat(this.material.data);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 打开原因弹窗
     * @param {Object} item 原因信息
     * @param {Number} index 当前索引值
     */
    viewReason: function viewReason(item, index) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var userinfo;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this4._Util.isFromApp()) {
                _context2.next = 2;
                break;
              }
              _context2.next = 1;
              return _this4._Util.getUserInfo(_this4);
            case 1:
              userinfo = _context2.sent;
            case 2:
              if (!(localStorage.getItem('isAdminPass') == 0)) {
                _context2.next = 4;
                break;
              }
              if (!(localStorage.getItem('isAccessControl') == 1)) {
                _context2.next = 4;
                break;
              }
              if (_this4._Util.isSVip(userinfo.userVipType)) {
                _context2.next = 4;
                break;
              }
              if (!(localStorage.getItem('isSvip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context2.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this4.clickFlag = true;
                } else {
                  _this4.clickFlag = true;
                }
              });
              return _context2.abrupt("return");
            case 3:
              if (_this4._Util.isVip(userinfo.userVipType)) {
                _context2.next = 4;
                break;
              }
              if (!(localStorage.getItem('isVip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context2.next = 4;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this4.clickFlag = true;
                } else {
                  _this4.clickFlag = true;
                }
              });
              return _context2.abrupt("return");
            case 4:
              _this4.showPopupType = 'faultReason';
              _this4.crPopupTitle = item.reasonDescribe;
              _this4.reasonInfo.reasonId = item.reasonId;
              _this4.reasonInfo.stepIds = item.stepIds;
              _this4.showPopup = true;
              _this4.reasonInfoList[index].read = true;
              // 查看故障原因埋点
              _this4._Util.sensorsCollect('click_fault_reason', {
                operation_page: '故障码详情',
                crid: _this4.$route.query.sn,
                vehicledictionary_id: '',
                vehicledictionary_name: _this4.faultCodeDetail.system + _this4.faultCodeDetail.property,
                fault_resaon_describe: item.reasonDescribe,
                fault_reason_id: item.reasonId,
                fault_reason_sort: item.percentage,
                fault_code: _this4.$route.query.pode,
                fault_descruibe_id: _this4.$route.query.fcsId
              });
            case 5:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 滑动页面隐藏子组件菜单子集
     */
    hideTab: function hideTab() {
      this.$refs.toolbar.hideTab();
    },
    /**
     * 监听底部菜单事件
     * @param {Object} val 菜单项信息
     */
    emitEvent: function emitEvent(val) {
      switch (val.name) {
        case 'faultCase':
          this.crPopupTitle = '故障案例';
          this.showPopup = true;
          this.showPopupType = 'faultCase';

          // 点击查看故障案例埋点
          this._Util.sensorsCollect('element_click_faultexample', {
            operation_page: '故障码详情',
            crid: this.$route.query.sn,
            vehicledictionary_id: '',
            vehicledictionary_name: this.faultCodeDetail.system + this.faultCodeDetail.property,
            fault_code: this.$route.query.pode,
            fault_descruibe_id: this.$route.query.fcsId
          });
      }
    },
    /**
     * 监听故障案例的数据
     */
    emitShowCaseList: function emitShowCaseList(flag) {
      this.showCaseList = flag;
    },
    /**
     * 选择型号
     * @param {Number} ureaId 节点id
     */
    selectMode: function selectMode(ureaId) {
      this.ureaId = ureaId;
      this.showModelOverlay = false;
      this.showModelTab = true;
    },
    /**
     * 当前激活的型号改变时触发
     * @param {Number} id 标识符
     * @param {String} name 型号名称
     */
    tabsChange: function tabsChange(id, name) {
      this.ureaId = id;
      sessionStorage.setItem('ureaId', id);
      this.getfaultCodeDetail();
    }
  }
};__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(1352);
__webpack_require__(2100);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2101);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("88b9a3d4", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-tab{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:0 4px;color:#646566;font-size:14px;line-height:20px;cursor:pointer}.van-tab--active{color:#323233;font-weight:500}.van-tab--disabled{color:#c8c9cc;cursor:not-allowed}.van-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.van-tab__text-wrapper{position:relative}.van-tabs{position:relative}.van-tabs__wrap{overflow:hidden}.van-tabs__wrap--page-top{position:fixed}.van-tabs__wrap--content-bottom{top:auto;bottom:0}.van-tabs__wrap--scrollable .van-tab{-webkit-box-flex:1;-webkit-flex:1 0 auto;flex:1 0 auto;padding:0 12px}.van-tabs__wrap--scrollable .van-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-tabs__wrap--scrollable .van-tabs__nav::-webkit-scrollbar{display:none}.van-tabs__nav{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;background-color:#fff;-webkit-user-select:none;user-select:none}.van-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:15px}.van-tabs__nav--line.van-tabs__nav--complete{padding-right:8px;padding-left:8px}.van-tabs__nav--card{box-sizing:border-box;height:30px;margin:0 16px;border:1px solid #ee0a24;border-radius:2px}.van-tabs__nav--card .van-tab{color:#ee0a24;border-right:1px solid #ee0a24}.van-tabs__nav--card .van-tab:last-child{border-right:none}.van-tabs__nav--card .van-tab.van-tab--active{color:#fff;background-color:#ee0a24}.van-tabs__nav--card .van-tab--disabled{color:#c8c9cc}.van-tabs__line{position:absolute;bottom:15px;left:0;z-index:1;width:40px;height:3px;background-color:#ee0a24;border-radius:3px}.van-tabs__track{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;width:100%;height:100%;will-change:left}.van-tabs__content--animated{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:44px}.van-tabs--card>.van-tabs__wrap{height:30px}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/tabs/index.css"],"names":[],"mappings":"AAAA,SAAS,kBAAkB,oBAAoB,qBAAqB,aAAa,mBAAmB,eAAe,OAAO,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,sBAAsB,cAAc,cAAc,eAAe,iBAAiB,cAAc,CAAC,iBAAiB,cAAc,eAAe,CAAC,mBAAmB,cAAc,kBAAkB,CAAC,yBAAyB,oBAAoB,gBAAgB,qBAAqB,2BAA2B,CAAC,uBAAuB,iBAAiB,CAAC,UAAU,iBAAiB,CAAC,gBAAgB,eAAe,CAAC,0BAA0B,cAAc,CAAC,gCAAgC,SAAS,QAAQ,CAAC,qCAAqC,mBAAmB,sBAAsB,cAAc,cAAc,CAAC,2CAA2C,gBAAgB,kBAAkB,gCAAgC,CAAC,8DAA8D,YAAY,CAAC,eAAe,kBAAkB,oBAAoB,qBAAqB,aAAa,sBAAsB,yBAAyB,gBAAgB,CAAC,qBAAqB,uBAAuB,YAAY,mBAAmB,CAAC,6CAA6C,kBAAkB,gBAAgB,CAAC,qBAAqB,sBAAsB,YAAY,cAAc,yBAAyB,iBAAiB,CAAC,8BAA8B,cAAc,8BAA8B,CAAC,yCAAyC,iBAAiB,CAAC,8CAA8C,WAAW,wBAAwB,CAAC,wCAAwC,aAAa,CAAC,gBAAgB,kBAAkB,YAAY,OAAO,UAAU,WAAW,WAAW,yBAAyB,iBAAiB,CAAC,iBAAiB,kBAAkB,oBAAoB,qBAAqB,aAAa,WAAW,YAAY,gBAAgB,CAAC,6BAA6B,eAAe,CAAC,gCAAgC,WAAW,CAAC,gCAAgC,WAAW,CAAC","file":"index.css","sourcesContent":[".van-tab{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:0 4px;color:#646566;font-size:14px;line-height:20px;cursor:pointer}.van-tab--active{color:#323233;font-weight:500}.van-tab--disabled{color:#c8c9cc;cursor:not-allowed}.van-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.van-tab__text-wrapper{position:relative}.van-tabs{position:relative}.van-tabs__wrap{overflow:hidden}.van-tabs__wrap--page-top{position:fixed}.van-tabs__wrap--content-bottom{top:auto;bottom:0}.van-tabs__wrap--scrollable .van-tab{-webkit-box-flex:1;-webkit-flex:1 0 auto;flex:1 0 auto;padding:0 12px}.van-tabs__wrap--scrollable .van-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-tabs__wrap--scrollable .van-tabs__nav::-webkit-scrollbar{display:none}.van-tabs__nav{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;background-color:#fff;-webkit-user-select:none;user-select:none}.van-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:15px}.van-tabs__nav--line.van-tabs__nav--complete{padding-right:8px;padding-left:8px}.van-tabs__nav--card{box-sizing:border-box;height:30px;margin:0 16px;border:1px solid #ee0a24;border-radius:2px}.van-tabs__nav--card .van-tab{color:#ee0a24;border-right:1px solid #ee0a24}.van-tabs__nav--card .van-tab:last-child{border-right:none}.van-tabs__nav--card .van-tab.van-tab--active{color:#fff;background-color:#ee0a24}.van-tabs__nav--card .van-tab--disabled{color:#c8c9cc}.van-tabs__line{position:absolute;bottom:15px;left:0;z-index:1;width:40px;height:3px;background-color:#ee0a24;border-radius:3px}.van-tabs__track{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;width:100%;height:100%;will-change:left}.van-tabs__content--animated{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:44px}.van-tabs--card>.van-tabs__wrap{height:30px}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _utils2 = __webpack_require__(2102);

var _router = __webpack_require__(201);

var _style = __webpack_require__(200);

var _event = __webpack_require__(59);

var _unit = __webpack_require__(248);

var _constant = __webpack_require__(166);

var _interceptor = __webpack_require__(2103);

var _scroll = __webpack_require__(89);

var _relation = __webpack_require__(73);

var _bindEvent = __webpack_require__(102);

var _Title = _interopRequireDefault(__webpack_require__(2104));

var _sticky = _interopRequireDefault(__webpack_require__(132));

var _Content = _interopRequireDefault(__webpack_require__(2105));

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('tabs'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default2 = createComponent({
  mixins: [(0, _relation.ParentMixin)('vanTabs'), (0, _bindEvent.BindEventMixin)(function (bind) {
    if (!this.scroller) {
      this.scroller = (0, _scroll.getScroller)(this.$el);
    }

    bind(window, 'resize', this.resize, true);

    if (this.scrollspy) {
      bind(this.scroller, 'scroll', this.onScroll, true);
    }
  })],
  inject: {
    vanPopup: {
      default: null
    }
  },
  model: {
    prop: 'active'
  },
  props: {
    color: String,
    border: Boolean,
    sticky: Boolean,
    animated: Boolean,
    swipeable: Boolean,
    scrollspy: Boolean,
    background: String,
    lineWidth: [Number, String],
    lineHeight: [Number, String],
    beforeChange: Function,
    titleActiveColor: String,
    titleInactiveColor: String,
    type: {
      type: String,
      default: 'line'
    },
    active: {
      type: [Number, String],
      default: 0
    },
    ellipsis: {
      type: Boolean,
      default: true
    },
    duration: {
      type: [Number, String],
      default: 0.3
    },
    offsetTop: {
      type: [Number, String],
      default: 0
    },
    lazyRender: {
      type: Boolean,
      default: true
    },
    swipeThreshold: {
      type: [Number, String],
      default: 5
    }
  },
  data: function data() {
    return {
      position: '',
      currentIndex: null,
      lineStyle: {
        backgroundColor: this.color
      }
    };
  },
  computed: {
    // whether the nav is scrollable
    scrollable: function scrollable() {
      return this.children.length > this.swipeThreshold || !this.ellipsis;
    },
    navStyle: function navStyle() {
      return {
        borderColor: this.color,
        background: this.background
      };
    },
    currentName: function currentName() {
      var activeTab = this.children[this.currentIndex];

      if (activeTab) {
        return activeTab.computedName;
      }
    },
    offsetTopPx: function offsetTopPx() {
      return (0, _unit.unitToPx)(this.offsetTop);
    },
    scrollOffset: function scrollOffset() {
      if (this.sticky) {
        return this.offsetTopPx + this.tabHeight;
      }

      return 0;
    }
  },
  watch: {
    color: 'setLine',
    active: function active(name) {
      if (name !== this.currentName) {
        this.setCurrentIndexByName(name);
      }
    },
    children: function children() {
      var _this = this;

      this.setCurrentIndexByName(this.active);
      this.setLine();
      this.$nextTick(function () {
        _this.scrollIntoView(true);
      });
    },
    currentIndex: function currentIndex() {
      this.scrollIntoView();
      this.setLine(); // scroll to correct position

      if (this.stickyFixed && !this.scrollspy) {
        (0, _scroll.setRootScrollTop)(Math.ceil((0, _scroll.getElementTop)(this.$el) - this.offsetTopPx));
      }
    },
    scrollspy: function scrollspy(val) {
      if (val) {
        (0, _event.on)(this.scroller, 'scroll', this.onScroll, true);
      } else {
        (0, _event.off)(this.scroller, 'scroll', this.onScroll);
      }
    }
  },
  mounted: function mounted() {
    var _this2 = this;

    this.init(); // https://github.com/vant-ui/vant/issues/7959

    if (this.vanPopup) {
      this.vanPopup.onReopen(function () {
        _this2.setLine();
      });
    }
  },
  activated: function activated() {
    this.init();
    this.setLine();
  },
  methods: {
    // @exposed-api
    resize: function resize() {
      this.setLine();
    },
    init: function init() {
      var _this3 = this;

      this.$nextTick(function () {
        _this3.inited = true;
        _this3.tabHeight = (0, _scroll.getVisibleHeight)(_this3.$refs.wrap);

        _this3.scrollIntoView(true);
      });
    },
    // update nav bar style
    setLine: function setLine() {
      var _this4 = this;

      var shouldAnimate = this.inited;
      this.$nextTick(function () {
        var titles = _this4.$refs.titles;

        if (!titles || !titles[_this4.currentIndex] || _this4.type !== 'line' || (0, _style.isHidden)(_this4.$el)) {
          return;
        }

        var title = titles[_this4.currentIndex].$el;
        var lineWidth = _this4.lineWidth,
            lineHeight = _this4.lineHeight;
        var left = title.offsetLeft + title.offsetWidth / 2;
        var lineStyle = {
          width: (0, _utils.addUnit)(lineWidth),
          backgroundColor: _this4.color,
          transform: "translateX(" + left + "px) translateX(-50%)"
        };

        if (shouldAnimate) {
          lineStyle.transitionDuration = _this4.duration + "s";
        }

        if ((0, _utils.isDef)(lineHeight)) {
          var height = (0, _utils.addUnit)(lineHeight);
          lineStyle.height = height;
          lineStyle.borderRadius = height;
        }

        _this4.lineStyle = lineStyle;
      });
    },
    // correct the index of active tab
    setCurrentIndexByName: function setCurrentIndexByName(name) {
      var matched = this.children.filter(function (tab) {
        return tab.computedName === name;
      });
      var defaultIndex = (this.children[0] || {}).index || 0;
      this.setCurrentIndex(matched.length ? matched[0].index : defaultIndex);
    },
    setCurrentIndex: function setCurrentIndex(currentIndex) {
      var newIndex = this.findAvailableTab(currentIndex);

      if (!(0, _utils.isDef)(newIndex)) {
        return;
      }

      var newTab = this.children[newIndex];
      var newName = newTab.computedName;
      var shouldEmitChange = this.currentIndex !== null;
      this.currentIndex = newIndex;

      if (newName !== this.active) {
        this.$emit('input', newName);

        if (shouldEmitChange) {
          this.$emit('change', newName, newTab.title);
        }
      }
    },
    findAvailableTab: function findAvailableTab(index) {
      var diff = index < this.currentIndex ? -1 : 1;

      while (index >= 0 && index < this.children.length) {
        if (!this.children[index].disabled) {
          return index;
        }

        index += diff;
      }
    },
    // emit event when clicked
    onClick: function onClick(item, index) {
      var _this5 = this;

      var _this$children$index = this.children[index],
          title = _this$children$index.title,
          disabled = _this$children$index.disabled,
          computedName = _this$children$index.computedName;

      if (disabled) {
        this.$emit('disabled', computedName, title);
      } else {
        (0, _interceptor.callInterceptor)({
          interceptor: this.beforeChange,
          args: [computedName],
          done: function done() {
            _this5.setCurrentIndex(index);

            _this5.scrollToCurrentContent();
          }
        });
        this.$emit('click', computedName, title);
        (0, _router.route)(item.$router, item);
      }
    },
    // scroll active tab into view
    scrollIntoView: function scrollIntoView(immediate) {
      var titles = this.$refs.titles;

      if (!this.scrollable || !titles || !titles[this.currentIndex]) {
        return;
      }

      var nav = this.$refs.nav;
      var title = titles[this.currentIndex].$el;
      var to = title.offsetLeft - (nav.offsetWidth - title.offsetWidth) / 2;
      (0, _utils2.scrollLeftTo)(nav, to, immediate ? 0 : +this.duration);
    },
    onSticktScroll: function onSticktScroll(params) {
      this.stickyFixed = params.isFixed;
      this.$emit('scroll', params);
    },
    // @exposed-api
    scrollTo: function scrollTo(name) {
      var _this6 = this;

      this.$nextTick(function () {
        _this6.setCurrentIndexByName(name);

        _this6.scrollToCurrentContent(true);
      });
    },
    scrollToCurrentContent: function scrollToCurrentContent(immediate) {
      var _this7 = this;

      if (immediate === void 0) {
        immediate = false;
      }

      if (this.scrollspy) {
        var target = this.children[this.currentIndex];
        var el = target == null ? void 0 : target.$el;

        if (el) {
          var to = (0, _scroll.getElementTop)(el, this.scroller) - this.scrollOffset;
          this.lockScroll = true;
          (0, _utils2.scrollTopTo)(this.scroller, to, immediate ? 0 : +this.duration, function () {
            _this7.lockScroll = false;
          });
        }
      }
    },
    onScroll: function onScroll() {
      if (this.scrollspy && !this.lockScroll) {
        var index = this.getCurrentIndexOnScroll();
        this.setCurrentIndex(index);
      }
    },
    getCurrentIndexOnScroll: function getCurrentIndexOnScroll() {
      var children = this.children;

      for (var index = 0; index < children.length; index++) {
        var top = (0, _scroll.getVisibleTop)(children[index].$el);

        if (top > this.scrollOffset) {
          return index === 0 ? 0 : index - 1;
        }
      }

      return children.length - 1;
    }
  },
  render: function render() {
    var _this8 = this,
        _ref;

    var h = arguments[0];
    var type = this.type,
        animated = this.animated,
        scrollable = this.scrollable;
    var Nav = this.children.map(function (item, index) {
      var _item$badge;

      return h(_Title.default, {
        "ref": "titles",
        "refInFor": true,
        "attrs": {
          "type": type,
          "dot": item.dot,
          "info": (_item$badge = item.badge) != null ? _item$badge : item.info,
          "title": item.title,
          "color": _this8.color,
          "isActive": index === _this8.currentIndex,
          "disabled": item.disabled,
          "scrollable": scrollable,
          "activeColor": _this8.titleActiveColor,
          "inactiveColor": _this8.titleInactiveColor
        },
        "style": item.titleStyle,
        "class": item.titleClass,
        "scopedSlots": {
          default: function _default() {
            return item.slots('title');
          }
        },
        "on": {
          "click": function click() {
            _this8.onClick(item, index);
          }
        }
      });
    });
    var Wrap = h("div", {
      "ref": "wrap",
      "class": [bem('wrap', {
        scrollable: scrollable
      }), (_ref = {}, _ref[_constant.BORDER_TOP_BOTTOM] = type === 'line' && this.border, _ref)]
    }, [h("div", {
      "ref": "nav",
      "attrs": {
        "role": "tablist"
      },
      "class": bem('nav', [type, {
        complete: this.scrollable
      }]),
      "style": this.navStyle
    }, [this.slots('nav-left'), Nav, type === 'line' && h("div", {
      "class": bem('line'),
      "style": this.lineStyle
    }), this.slots('nav-right')])]);
    return h("div", {
      "class": bem([type])
    }, [this.sticky ? h(_sticky.default, {
      "attrs": {
        "container": this.$el,
        "offsetTop": this.offsetTop
      },
      "on": {
        "scroll": this.onSticktScroll
      }
    }, [Wrap]) : Wrap, h(_Content.default, {
      "attrs": {
        "count": this.children.length,
        "animated": animated,
        "duration": this.duration,
        "swipeable": this.swipeable,
        "currentIndex": this.currentIndex
      },
      "on": {
        "change": this.setCurrentIndex
      }
    }, [this.slots()])]);
  }
});

exports.default = _default2;

exports.__esModule = true;
exports.scrollLeftTo = scrollLeftTo;
exports.scrollTopTo = scrollTopTo;

var _raf = __webpack_require__(165);

var _scroll = __webpack_require__(89);

function scrollLeftTo(scroller, to, duration) {
  var count = 0;
  var from = scroller.scrollLeft;
  var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);

  function animate() {
    scroller.scrollLeft += (to - from) / frames;

    if (++count < frames) {
      (0, _raf.raf)(animate);
    }
  }

  animate();
}

function scrollTopTo(scroller, to, duration, callback) {
  var current = (0, _scroll.getScrollTop)(scroller);
  var isDown = current < to;
  var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);
  var step = (to - current) / frames;

  function animate() {
    current += step;

    if (isDown && current > to || !isDown && current < to) {
      current = to;
    }

    (0, _scroll.setScrollTop)(scroller, current);

    if (isDown && current < to || !isDown && current > to) {
      (0, _raf.raf)(animate);
    } else if (callback) {
      (0, _raf.raf)(callback);
    }
  }

  animate();
}

exports.__esModule = true;
exports.callInterceptor = callInterceptor;

var _ = __webpack_require__(18);

function callInterceptor(options) {
  var interceptor = options.interceptor,
      args = options.args,
      done = options.done;

  if (interceptor) {
    var returnVal = interceptor.apply(void 0, args);

    if ((0, _.isPromise)(returnVal)) {
      returnVal.then(function (value) {
        if (value) {
          done();
        }
      }).catch(_.noop);
    } else if (returnVal) {
      done();
    }
  } else {
    done();
  }
}

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _info = _interopRequireDefault(__webpack_require__(1384));

var _createNamespace = (0, _utils.createNamespace)('tab'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  props: {
    dot: Boolean,
    type: String,
    info: [Number, String],
    color: String,
    title: String,
    isActive: Boolean,
    disabled: Boolean,
    scrollable: Boolean,
    activeColor: String,
    inactiveColor: String
  },
  computed: {
    style: function style() {
      var style = {};
      var color = this.color,
          isActive = this.isActive;
      var isCard = this.type === 'card'; // card theme color

      if (color && isCard) {
        style.borderColor = color;

        if (!this.disabled) {
          if (isActive) {
            style.backgroundColor = color;
          } else {
            style.color = color;
          }
        }
      }

      var titleColor = isActive ? this.activeColor : this.inactiveColor;

      if (titleColor) {
        style.color = titleColor;
      }

      return style;
    }
  },
  methods: {
    onClick: function onClick() {
      this.$emit('click');
    },
    genText: function genText() {
      var h = this.$createElement;
      var Text = h("span", {
        "class": bem('text', {
          ellipsis: !this.scrollable
        })
      }, [this.slots() || this.title]);

      if (this.dot || (0, _utils.isDef)(this.info) && this.info !== '') {
        return h("span", {
          "class": bem('text-wrapper')
        }, [Text, h(_info.default, {
          "attrs": {
            "dot": this.dot,
            "info": this.info
          }
        })]);
      }

      return Text;
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "attrs": {
        "role": "tab",
        "aria-selected": this.isActive
      },
      "class": [bem({
        active: this.isActive,
        disabled: this.disabled
      })],
      "style": this.style,
      "on": {
        "click": this.onClick
      }
    }, [this.genText()]);
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _touch = __webpack_require__(103);

var _createNamespace = (0, _utils.createNamespace)('tabs'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var MIN_SWIPE_DISTANCE = 50;

var _default = createComponent({
  mixins: [_touch.TouchMixin],
  props: {
    count: Number,
    duration: [Number, String],
    animated: Boolean,
    swipeable: Boolean,
    currentIndex: Number
  },
  computed: {
    style: function style() {
      if (this.animated) {
        return {
          transform: "translate3d(" + -1 * this.currentIndex * 100 + "%, 0, 0)",
          transitionDuration: this.duration + "s"
        };
      }
    },
    listeners: function listeners() {
      if (this.swipeable) {
        return {
          touchstart: this.touchStart,
          touchmove: this.touchMove,
          touchend: this.onTouchEnd,
          touchcancel: this.onTouchEnd
        };
      }
    }
  },
  methods: {
    // watch swipe touch end
    onTouchEnd: function onTouchEnd() {
      var direction = this.direction,
          deltaX = this.deltaX,
          currentIndex = this.currentIndex;
      /* istanbul ignore else */

      if (direction === 'horizontal' && this.offsetX >= MIN_SWIPE_DISTANCE) {
        /* istanbul ignore else */
        if (deltaX > 0 && currentIndex !== 0) {
          this.$emit('change', currentIndex - 1);
        } else if (deltaX < 0 && currentIndex !== this.count - 1) {
          this.$emit('change', currentIndex + 1);
        }
      }
    },
    genChildren: function genChildren() {
      var h = this.$createElement;

      if (this.animated) {
        return h("div", {
          "class": bem('track'),
          "style": this.style
        }, [this.slots()]);
      }

      return this.slots();
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem('content', {
        animated: this.animated
      }),
      "on": (0, _extends2.default)({}, this.listeners)
    }, [this.genChildren()]);
  }
});

exports.default = _default;__webpack_require__(26);
__webpack_require__(2106);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2107);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7945786d", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-tab__pane,.van-tab__pane-wrapper{-webkit-flex-shrink:0;flex-shrink:0;box-sizing:border-box;width:100%}.van-tab__pane-wrapper--inactive{height:0;overflow:visible}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/tab/index.css"],"names":[],"mappings":"AAAA,sCAAsC,sBAAsB,cAAc,sBAAsB,UAAU,CAAC,iCAAiC,SAAS,gBAAgB,CAAC","file":"index.css","sourcesContent":[".van-tab__pane,.van-tab__pane-wrapper{-webkit-flex-shrink:0;flex-shrink:0;box-sizing:border-box;width:100%}.van-tab__pane-wrapper--inactive{height:0;overflow:visible}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _relation = __webpack_require__(73);

var _router = __webpack_require__(201);

var _createNamespace = (0, _utils.createNamespace)('tab'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _relation.ChildrenMixin)('vanTabs')],
  props: (0, _extends2.default)({}, _router.routeProps, {
    dot: Boolean,
    name: [Number, String],
    // @deprecated
    info: [Number, String],
    badge: [Number, String],
    title: String,
    titleStyle: null,
    titleClass: null,
    disabled: Boolean
  }),
  data: function data() {
    return {
      inited: false
    };
  },
  computed: {
    computedName: function computedName() {
      var _this$name;

      return (_this$name = this.name) != null ? _this$name : this.index;
    },
    isActive: function isActive() {
      var active = this.computedName === this.parent.currentName;

      if (active) {
        this.inited = true;
      }

      return active;
    }
  },
  watch: {
    title: function title() {
      this.parent.setLine();
      this.parent.scrollIntoView();
    },
    inited: function inited(val) {
      var _this = this;

      if (this.parent.lazyRender && val) {
        this.$nextTick(function () {
          _this.parent.$emit('rendered', _this.computedName, _this.title);
        });
      }
    }
  },
  render: function render(h) {
    var slots = this.slots,
        parent = this.parent,
        isActive = this.isActive;
    var slotContent = slots();

    if (false) {}

    if (!slotContent && !parent.animated) {
      return;
    }

    var show = parent.scrollspy || isActive;
    var shouldRender = this.inited || parent.scrollspy || !parent.lazyRender;
    var Content = shouldRender ? slotContent : h();

    if (parent.animated) {
      return h("div", {
        "attrs": {
          "role": "tabpanel",
          "aria-hidden": !isActive
        },
        "class": bem('pane-wrapper', {
          inactive: !isActive
        })
      }, [h("div", {
        "class": bem('pane')
      }, [Content])]);
    }

    return h("div", {
      "directives": [{
        name: "show",
        value: show
      }],
      "attrs": {
        "role": "tabpanel"
      },
      "class": bem('pane')
    }, [Content]);
  }
});

exports.default = _default;__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(666);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5a3834f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1264);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3435)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5a3834f4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5a3834f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5a3834f4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3436);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1584814a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".failure-case-com[data-v-5a3834f4]{height:100%;padding:.6rem .8rem;overflow-y:auto}.failure-case-com .case-list .case-item[data-v-5a3834f4]{margin-bottom:.8rem}.failure-case-com .case-list .case-item p[data-v-5a3834f4]{line-height:1.13rem;color:#177afa;font-size:.8rem}.failure-case-com .case-list .null[data-v-5a3834f4]{margin-top:1rem;text-align:center;color:#999;font-size:.7rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    faultCodeDetailProp: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      page: {
        num: 1,
        size: 20
      },
      faultCodeDetail: {},
      caseList: []
    };
  },
  mounted: function mounted() {
    var _this = this;
    setTimeout(function () {
      _this.faultCodeDetail = _this.faultCodeDetailProp;
      _this.faultCaseList();
    }, 300);
  },
  methods: {
    /**
     * 故障案例
     */
    faultCaseList: function faultCaseList() {
      var _this2 = this;
      var faultCodeId = this.$route.query.sn && this.$route.query.sn.split('_')[1];
      var params = {
        faultCodeId: faultCodeId,
        pageNum: this.page.num,
        pageSize: this.page.size
      };
      if (this.page.num === 1) {
        this.caseList = [];
      }
      this._Util.post(this._Api.POST_DATA_SHARE, params, function (data) {
        var dataList = data || [];
        _this2.caseList = _this2.caseList.concat(dataList);
        _this2.$emit('emitShowCaseList', dataList.length > 0);
      }, function () {}, this);
    },
    /**
     * 查看故障案例
     * @param {Object} item 故障案例信息
     * 
     */
    openFile: function openFile(item, index) {
      this._Util.sensorsCollect('element_click_faultexample', {
        operation_page: '故障码详情',
        crid: this.$route.query.sn,
        vehicledictionary_id: item.fileNo,
        vehicledictionary_name: this.faultCodeDetail.system + this.faultCodeDetail.property,
        file_id: item.fileId,
        file_name: item.name,
        fault_code: this.$route.query.pcode,
        fault_descruibe_id: this.$route.query.fcsId
      });
      this.$emit('emitCheckStatus', item);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"failure-case-com"},[_c('div',{staticClass:"case-list"},[_vm._l((_vm.caseList),function(item,index){return _c('div',{key:index,staticClass:"case-item",on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('p',[_vm._v(_vm._s(item.name))])])}),_vm._v(" "),(!_vm.caseList.length)?_c('p',{staticClass:"null"},[_vm._v("暂无故障案例")]):_vm._e()],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(667);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_471f43be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1265);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3438)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-471f43be"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_471f43be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_471f43be_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3439);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("205152f0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".toolbar[data-v-471f43be]{position:relative;width:100%;height:100%;background-color:#fff}.toolbar .toolbar-inner[data-v-471f43be]{position:absolute;height:inherit;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;z-index:-1}.toolbar .toolbar-inner.toolbar-menu[data-v-471f43be]{z-index:12}.toolbar .item[data-v-471f43be]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;position:relative;z-index:12}.toolbar .item[data-v-471f43be]:before{top:.8rem;height:1.4rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.toolbar .item .item-name[data-v-471f43be]{height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;white-space:nowrap}.toolbar .item .item-name .icon[data-v-471f43be]{display:inline-block;width:.8rem;height:.8rem;margin-right:.3rem}.toolbar .item .item-name span[data-v-471f43be]{font-size:.8rem;color:#333;text-overflow:ellipsis;overflow:hidden}.toolbar .item .sub-menu-bar[data-v-471f43be]{position:absolute;bottom:3.58rem;left:1.45rem;max-width:15.85rem;background-color:#fff;padding:0 .6rem;box-shadow:0 0 .4rem 0 rgba(62,73,84,.2);border-radius:.3rem;z-index:10}.toolbar .item .sub-menu-bar[data-v-471f43be]:before{display:block;content:\"\";position:absolute;bottom:-.33rem;left:1.8rem;width:0;height:0;border-style:solid;border-width:.36rem .34rem 0;border-color:#fff transparent transparent}.toolbar .item .sub-menu-bar .sub-name[data-v-471f43be]{position:relative;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;white-space:nowrap;overflow:hidden}.toolbar .item .sub-menu-bar .sub-name[data-v-471f43be]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.toolbar .item .sub-menu-bar .sub-name[data-v-471f43be]:last-child:before{display:none}.toolbar .item .sub-menu-bar .sub-name p[data-v-471f43be]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;font-size:.8rem;color:#333}.fade-slide-enter-active[data-v-471f43be],.fade-slide-leave-active[data-v-471f43be]{-webkit-transition:all .15s linear;transition:all .15s linear}.toolbar .item .sub-menu-bar.fade-slide-enter[data-v-471f43be],.toolbar .item .sub-menu-bar.fade-slide-leave-to[data-v-471f43be]{bottom:2rem;opacity:0}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    material: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    reasonInfoList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    showCaseList: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      showSubMenu: false,
      menus: [{
        id: 1,
        show: false,
        icon: __webpack_require__(1474),
        name: '产生原因'
      }, {
        id: 2,
        icon: '',
        show: false,
        name: '故障案例'
      }, {
        id: 3,
        show: true,
        icon: __webpack_require__(1475),
        name: '去提问'
      }]
    };
  },
  watch: {
    reasonInfoList: function reasonInfoList(val) {
      this.menus[0].show = val && val.length;
    },
    showCaseList: function showCaseList(val) {
      this.menus[1].show = val;
    }
  },
  methods: {
    toggleTab: function toggleTab(id) {
      switch (id) {
        case 1:
          this.showSubMenu = !this.showSubMenu;
          break;
        case 2:
          this.$emit('emitEvent', {
            name: 'faultCase'
          });
          this.showSubMenu = false;
          break;
        case 3:
          this.toPutQuestion();
          this.showSubMenu = false;
          break;
      }
    },
    /**
     * 跳转极速问答提问页
     */
    toPutQuestion: function toPutQuestion() {
      this.material.sourceUrl = window.location.href;
      localStorage.setItem('qa_data', JSON.stringify(this.material));
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'putQuestion',
            url: "".concat(location.origin, "/v2/shopping/putQuestion")
          }
        });
      } else {
        location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
      }
    },
    /**
     * 查看产生的原因
     * @param {Object} item 产生的原因标题和id
     * @param {Number} index 当前索引值
     */
    viewReason: function viewReason(item, index) {
      this.hideTab();
      this.$emit('viewReason', item, index);
    },
    /**
     * 隐藏底部子菜单
     */
    hideTab: function hideTab() {
      this.showSubMenu = false;
    }
  }
};module.exports = __webpack_require__.p + "static/img/cr_menu_icon_1.8c80b39.png";module.exports = __webpack_require__.p + "static/img/cr_menu_icon_3.87909d7.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"toolbar"},[_c('div',{staticClass:"toolbar-inner toolbar-menu"},_vm._l((_vm.menus),function(m){return _c('div',{key:m.id,staticClass:"item hairline",style:({display: (m.show ? '' : 'none')})},[_c('div',{staticClass:"item-name",on:{"click":function($event){$event.stopPropagation();return _vm.toggleTab(m.id)}}},[(m.icon && m.icon !== '')?_c('img',{staticClass:"icon",attrs:{"src":m.icon}}):_vm._e(),_c('span',[_vm._v(_vm._s(m.name))])])])}),0),_vm._v(" "),_c('div',{staticClass:"toolbar-inner"},[(_vm.reasonInfoList && _vm.reasonInfoList.length)?_c('div',{staticClass:"item"},[_c('transition',{attrs:{"name":"fade-slide"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showSubMenu),expression:"showSubMenu"}],staticClass:"sub-menu-bar"},_vm._l((_vm.reasonInfoList),function(sm,index){return _c('div',{key:sm.reasonId,staticClass:"sub-name hairline",on:{"click":function($event){return _vm.viewReason(sm, index)}}},[_c('p',[_vm._v(_vm._s(sm.index)+"、"+_vm._s(sm.reasonDescribe))])])}),0)])],1):_vm._e()])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(668);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0010c1b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1266);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3441)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0010c1b6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0010c1b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0010c1b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3442);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0fe1826e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".popup-container[data-v-0010c1b6]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.popup-container .popup-top[data-v-0010c1b6]{height:2.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background-color:#fff;border-bottom:1px solid #e7e7e7}.popup-container .popup-top .title[data-v-0010c1b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;white-space:nowrap;overflow:hidden}.popup-container .popup-top .title p[data-v-0010c1b6]{overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:.9rem;color:#333}.popup-container .popup-top .top-left[data-v-0010c1b6],.popup-container .popup-top .top-right[data-v-0010c1b6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-size:.8rem;color:#666}.popup-container .popup-content[data-v-0010c1b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _popup.default.name, _popup.default),
  props: {
    showPopup: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {};
  },
  methods: {
    closePopup: function closePopup() {
      this.$emit('update:showPopup', false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('van-popup',{staticClass:"cr-popup",attrs:{"close-on-click-overlay":false,"position":"bottom"},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"popup-container"},[_c('div',{staticClass:"popup-top"},[_c('div',{staticClass:"top-left"}),_vm._v(" "),_c('div',{staticClass:"title"},[_c('p',[_vm._v(_vm._s(_vm.title))])]),_vm._v(" "),_c('div',{staticClass:"top-right",on:{"click":_vm.closePopup}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"popup-content"},[_vm._t("content")],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(669);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_219f9a6e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1267);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3444)
  __webpack_require__(3446)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-219f9a6e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_219f9a6e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_219f9a6e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3445);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5de5d1cc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3447);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1f8e7134", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fault-reason-com[data-v-219f9a6e]{position:relative;height:100%;overflow-y:auto;padding:.6rem .8rem}.fault-reason-com .step-list[data-v-219f9a6e]{overflow:hidden}.fault-reason-com .step-list .step-item[data-v-219f9a6e]{margin-bottom:1.2rem}.fault-reason-com .step-list .step-item .title[data-v-219f9a6e]{line-height:1.2rem;color:#333;font-size:.9rem;font-weight:600}.fault-reason-com .step-list .step-item img[data-v-219f9a6e]{display:inline-block;width:100%;min-height:10rem;margin:.6rem auto 0;background-color:#eee;border-radius:.2rem;overflow:hidden;vertical-align:top}.fault-reason-com .step-list .step-item video[data-v-219f9a6e]{margin-top:.6rem;width:100%;min-height:10rem;margin-top:.4rem;vertical-align:top;background-color:#eee}.fault-reason-com .step-list .step-item a[data-v-219f9a6e]{display:block;margin-top:.4rem;color:#177afa;text-decoration:underline}.fault-reason-com .step-list .step-item p[data-v-219f9a6e]{margin-top:.6rem;line-height:1.4rem;color:#333;font-size:.8rem}.fault-reason-com .step-list .step-item p.pic-desc[data-v-219f9a6e]{line-height:1rem;margin-top:.18rem;text-align:center;color:#999;font-size:.7rem}.fault-reason-com .reason-bottom[data-v-219f9a6e]{margin-top:.8rem;overflow:hidden}.fault-reason-com .reason-bottom .question-title[data-v-219f9a6e]{position:relative;font-size:.7rem;color:#999;line-height:1rem;text-align:center}.fault-reason-com .reason-bottom .question-title[data-v-219f9a6e]:after,.fault-reason-com .reason-bottom .question-title[data-v-219f9a6e]:before{position:absolute;display:inline-block;content:\"\";width:2.58rem;height:100%;border-bottom:1px solid #eee;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);vertical-align:middle;box-sizing:border-box;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.fault-reason-com .reason-bottom .question-title[data-v-219f9a6e]:before{left:0}.fault-reason-com .reason-bottom .question-title[data-v-219f9a6e]:after{right:0}.fault-reason-com .reason-bottom .question-options[data-v-219f9a6e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:9.5rem;margin:1.6rem auto 1.8rem}.fault-reason-com .reason-bottom .question-options .item[data-v-219f9a6e]{width:2.5rem}.fault-reason-com .reason-bottom .question-options .item .icon[data-v-219f9a6e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:100%;border:1px solid #eee}.fault-reason-com .reason-bottom .question-options .item .icon img[data-v-219f9a6e]{width:1.3rem;height:1.3rem;vertical-align:top}.fault-reason-com .reason-bottom .question-options .item .name[data-v-219f9a6e]{margin-top:.3rem;line-height:1rem;font-size:.7rem;color:#666;text-align:center}.fault-reason-com .reason-bottom .question-options .item.solved .icon[data-v-219f9a6e]{border-color:#ff701f}.fault-reason-com .reason-bottom .question-options .item.solved .name[data-v-219f9a6e]{color:#ff701f}.fault-reason-com .reason-bottom .question-options .item.unsolved .icon[data-v-219f9a6e]{border-color:#666}.fault-reason-com .reason-bottom .question-options .item.unsolved .name[data-v-219f9a6e]{color:#333}.fault-reason-com .masking[data-v-219f9a6e]{width:100%;height:100%;position:absolute;top:0;left:0;background-color:rgba(0,0,0,.2)}.fault-reason-com .masking .vip-wrap[data-v-219f9a6e]{width:16.35rem;height:9.5rem;margin:2.9rem auto 0;background-color:#fff;border-radius:.4rem;overflow:hidden}.fault-reason-com .masking .vip-wrap .text[data-v-219f9a6e]{margin-top:1.8rem;line-height:1.25rem;font-size:.9rem;color:#333;text-align:center}.fault-reason-com .masking .vip-wrap .vip-btn[data-v-219f9a6e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:12.75rem;height:2.2rem;margin:1.6rem auto 0;border-radius:1.1rem;background:linear-gradient(75deg,#bf8c59,#e0a264);font-size:.9rem;color:#fff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    reasonInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      solved: false,
      unsolved: false,
      stepContent: [],
      isVip: false
    };
  },
  created: function created() {
    // this.getStatus()
    this.getStepContent();
  },
  methods: {
    /**
     * 获取用户会员状态
     */
    getStatus: function getStatus() {
      var _this = this;
      if (localStorage.getItem('isFromMft100') === '1') {
        this.isVip = false;
        return;
      }
      this._Util.post(this._Api.POST_USER_STATUS, {}, function (data) {
        var userStatus = data.userStatus;
        if (userStatus !== 2) {
          // 非付费会员
          _this.isVip = true;
        }
      }, function () {}, this);
    },
    /**
     * 开通会员
     */
    openVip: function openVip() {
      location.href = location.origin + '/v2/business/pay/certificationRenewal?pathid=newgzm';
    },
    /**
     * 获取排查步骤详情
     */
    getStepContent: function getStepContent() {
      var _this2 = this;
      if (this.reasonInfo.stepIds === '' || !this.reasonInfo.stepIds) {
        this.reasonInfo.stepIds = 0;
      }
      this.$http.get("".concat(this._Api.TROUBLESHOOT_STEP_CONTENT_BY_VEHIDIRID, "/").concat(this.reasonInfo.vehiDirId, "/").concat(this.reasonInfo.reasonId, "/").concat(this.reasonInfo.stepIds, "/").concat(this.reasonInfo.faultCodeId)).then(function (res) {
        if (res.data.status === 200) {
          var data = res.data.data || [];
          data.forEach(function (item) {
            item.contentVoList.forEach(function (_item) {
              _item.content = _item.content && _item.content.replace(/\n/g, '<br/>');
            });
          });
          _this2.stepContent = data;
        } else {
          (0, _toast.default)({
            message: res.data.msg
          });
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /**
     * 查看文件
     * @param {Object} item 文件信息
     */
    openFile: function openFile(item) {
      this.$emit('emitCheckStatus', item);
    },
    /**
     * 反馈问题是否解决
     * @param {Number} type 1：已解决 2：未解决
     */
    faultReasonFeedback: function faultReasonFeedback(type) {
      var _this3 = this;
      if (this.solved || this.unsolved) return;
      var params = {
        reasonId: this.reasonInfo.reasonId,
        type: type
      };
      this._Util.post(this._Api.POST_FAULT_REASON_FEEDBACK, params, function (data) {
        type === 1 ? _this3.solved = true : _this3.unsolved = true;
        (0, _toast.default)({
          message: '感谢您的反馈'
        });
      }, function () {}, this);
    },
    /**
     * 查看图片
     * @param {String} img 图片地址
     */
    viewImage: function viewImage(img) {
      this.$emit('emitViewImage', [img], 0);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"fault-reason-com",style:(_vm.isVip ? 'overflow: hidden' : '')},[_c('div',{style:(_vm.isVip ? 'filter: blur(4px)' : '')},[_c('div',{staticClass:"step-list"},_vm._l((_vm.stepContent),function(step,index){return _c('div',{key:index,staticClass:"step-item"},[_c('h4',{staticClass:"title"},[_vm._v(_vm._s(step.title))]),_vm._v(" "),_vm._l((step.contentVoList),function(c,index){return _c('div',{key:index},[(c.type === 2)?_c('p',{domProps:{"innerHTML":_vm._s(c.content)}}):_vm._e(),_vm._v(" "),(c.type === 3)?_c('img',{attrs:{"src":c.picUrl,"alt":c.picName},on:{"click":function($event){return _vm.viewImage(c.picUrl)}}}):_vm._e(),_vm._v(" "),(c.type === 3)?_c('p',{staticClass:"pic-desc"},[_vm._v(_vm._s(c.picDescribe))]):_vm._e(),_vm._v(" "),(c.type === 4)?_c('video',{attrs:{"controls":"controls","poster":__webpack_require__(295),"preload":"","src":c.videoUrl}}):_vm._e(),_vm._v(" "),(c.type === 4)?_c('p',{staticClass:"pic-desc"},[_vm._v(_vm._s(c.videoDescribe))]):_vm._e(),_vm._v(" "),(c.type === 5)?_c('a',{attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.openFile(c)}}},[_vm._v(_vm._s(c.dataShareName))]):_vm._e()])})],2)}),0)]),_vm._v(" "),(_vm.isVip)?_c('div',{staticClass:"masking"},[_c('div',{staticClass:"vip-wrap"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"vip-btn",on:{"click":function($event){return _vm.openVip()}}},[_vm._v("去开通会员")])])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"text"},[_vm._v("详细排查步骤为会员专属功能"),_c('br'),_vm._v("开通会员即可查看")])}]
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"fault-code-page"},[_c('div',{staticClass:"fault-code-conatiner",on:{"touchstart":_vm.hideTab}},[_c('div',{staticClass:"conatiner-inner"},[_c('div',{staticClass:"fault-code-title"},[_c('span',{staticClass:"code",domProps:{"innerHTML":_vm._s(_vm.pcode)}}),_vm._v("\n        - "+_vm._s(_vm.faultCodeDetail.descCn)+"\n      ")]),_vm._v(" "),_c('div',{staticClass:"fault-code-meta"},[_c('span',[_vm._v("ECU系统：")]),_vm._v(" "),_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.faultCodeDetail.system))]),_vm._v(" "),_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.faultCodeDetail.property))])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showModelTab && _vm.modelList && _vm.modelList.length > 0),expression:"showModelTab && modelList && modelList.length > 0"}],staticClass:"mode-wrap"},[_c('van-tabs',{attrs:{"ellipsis":false,"type":"card"},on:{"change":_vm.tabsChange},model:{value:(_vm.ureaId),callback:function ($$v) {_vm.ureaId=$$v},expression:"ureaId"}},_vm._l((_vm.modelList),function(m){return _c('van-tab',{key:m.ureaId,attrs:{"name":m.ureaId,"title":m.ureaName}})}),1)],1),_vm._v(" "),_c('div',{staticClass:"hr"}),_vm._v(" "),(_vm.faultDescription)?_c('div',{staticClass:"detail-panel",staticStyle:{"margin-top":"0.8rem"}},[_c('h4',{staticClass:"title"},[_vm._v("故障说明：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.faultDescription)}})]):_vm._e(),_vm._v(" "),(_vm.causePhenomenon)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("导致现象：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.causePhenomenon)}})]):_vm._e(),_vm._v(" "),(_vm.reportCondition)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("报出条件：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.reportCondition)}})]):_vm._e(),_vm._v(" "),(_vm.clearCodeCondition)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("清码条件：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.clearCodeCondition)}})]):_vm._e(),_vm._v(" "),(_vm.videosUrl&&_vm.videosUrl.length)?_c('div',{staticClass:"detail-panel",staticStyle:{"margin-top":"0.8rem"}},[_c('h4',{staticClass:"title"},[_vm._v("故障视频：")]),_vm._v(" "),_c('div',{staticClass:"content pic-list"},_vm._l((_vm.videosUrl),function(img,imgIndex){return _c('video',{key:imgIndex,attrs:{"poster":__webpack_require__(295),"id":'video_'+imgIndex,"src":img,"controls":""},on:{"play":function($event){return _vm.startPlay(imgIndex)}}})}),0)]):_vm._e(),_vm._v(" "),(_vm.imglist && _vm.imglist.length)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("相关电路图：")]),_vm._v(" "),_c('div',{staticClass:"content pic-list"},_vm._l((_vm.imglist),function(img,imgIndex){return _c('img',{key:imgIndex,attrs:{"src":img,"alt":""},on:{"click":function($event){return _vm.viewImage(_vm.imglist, imgIndex)}}})}),0)]):_vm._e(),_vm._v(" "),(_vm.reasonInfoList.length > 0)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("产生原因及排查步骤：")]),_vm._v(" "),_c('div',{staticClass:"content reason-list"},[_vm._m(0),_vm._v(" "),_vm._l((_vm.reasonInfoList),function(item,index){return _c('div',{key:index,staticClass:"reason-item hairline",class:{'read': item.read},on:{"click":function($event){return _vm.viewReason(item, index)}}},[_c('div',{staticClass:"item-left"},[_c('p',[_vm._v(_vm._s(item.reasonDescribe))])]),_vm._v(" "),_vm._m(1,true)])})],2)]):_vm._e(),_vm._v(" "),(_vm.showCaseList)?_c('div',{staticClass:"detail-panel fault-panel"},[_c('h4',{staticClass:"title"},[_vm._v("相关故障案例：")]),_vm._v(" "),_c('fault-case',{attrs:{"fault-code-detail-prop":_vm.faultCodeDetail},on:{"emitCheckStatus":_vm.emitCheckStatus,"emitShowCaseList":_vm.emitShowCaseList}})],1):_vm._e()])]),_vm._v(" "),_c('cr-popup',{attrs:{"show-popup":_vm.showPopup,"title":_vm.crPopupTitle},on:{"update:showPopup":function($event){_vm.showPopup=$event},"update:show-popup":function($event){_vm.showPopup=$event}}},[(_vm.showPopup && _vm.showPopupType === 'faultCase')?_c('fault-case',{attrs:{"slot":"content","fault-code-detail-prop":_vm.faultCodeDetail},on:{"emitCheckStatus":_vm.emitCheckStatus},slot:"content"}):_vm._e(),_vm._v(" "),(_vm.showPopup && _vm.showPopupType === 'faultReason')?_c('fault-reason',{attrs:{"slot":"content","reason-info":_vm.reasonInfo},on:{"emitCheckStatus":_vm.emitCheckStatus,"emitViewImage":_vm.viewImage},slot:"content"}):_vm._e()],1),_vm._v(" "),_c('van-overlay',{attrs:{"show":_vm.showModelOverlay,"z-index":"1000","lock-scroll":false,"duration":0.8}},[_c('div',{staticClass:"model-container"},[_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showModelOverlay),expression:"showModelOverlay"}],staticClass:"model-content"},[_c('div',{staticClass:"model-content-head"},[_c('h4',[_vm._v("请选择尿素泵")]),_vm._v(" "),_c('p',[_vm._v("不同尿素泵的故障指南不一样哦")])]),_vm._v(" "),_c('div',{staticClass:"model-content-body"},_vm._l((_vm.modelList),function(m){return _c('div',{key:m.ureaId,staticClass:"mode",on:{"click":function($event){return _vm.selectMode(m.ureaId)}}},[_c('span',[_vm._v(_vm._s(m.ureaName))])])}),0)])]),_vm._v(" "),_c('span',{staticClass:"close-btn",on:{"click":function($event){return _vm.selectMode(_vm.modelList[0].ureaId)}}})],1)])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"suspension-box"},[_c('span',[_vm._v("查看排查步骤")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"item-right"},[_c('span',[_vm._v("排查步骤"),_c('em')])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(670);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_880aa658_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1273);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3448)
  __webpack_require__(3450)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-880aa658"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_880aa658_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_880aa658_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCodeDesc_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3449);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("f4a9894e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "*{font-family:PingFangSC-Regular,PingFang SC}[class*=hairline]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.fault-code-conatiner .van-tabs{margin:0 -.8rem}.fault-code-conatiner .van-tabs__wrap{height:1.7rem;overflow:auto}.fault-code-conatiner .van-tabs__nav{background-color:transparent}.fault-code-conatiner .van-tabs__nav:after{display:block;content:\"\";width:.2rem;height:1.5rem;position:relative;-webkit-box-flex:1;-webkit-flex:1 0 auto;-ms-flex:1 0 auto;flex:1 0 auto}.fault-code-conatiner .van-tabs__nav--card{border:none;height:1.5rem;margin:0;padding:0 .8rem}.fault-code-conatiner .van-tabs__nav--card .van-tab{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;padding:0 .6rem;margin-right:.6rem;border-radius:.8rem;background-color:#fff;color:#666;font-size:.7rem;border:none}.fault-code-conatiner .van-tabs__nav--card .van-tab.van-tab--active{background-color:#177afa;color:#fff}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3451);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3cd4326d", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fault-code-page[data-v-880aa658]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:#fff;overflow:hidden}.fault-code-page[data-v-880aa658] .van-overlay{background-color:rgba(0,0,0,.51)}.fault-code-conatiner[data-v-880aa658]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.fault-code-conatiner .conatiner-inner[data-v-880aa658]{position:relative;padding:0 0 .5rem;overflow:hidden}.fault-code-conatiner .conatiner-inner .hr[data-v-880aa658]{height:.4rem;background:#f6f7f9}.fault-code-conatiner .watermark[data-v-880aa658]{position:absolute;width:100%;left:0;top:0;bottom:0;background:url(" + escape(__webpack_require__(152)) + ");background-size:9.4rem;background-position:0 0;pointer-events:none;z-index:12;opacity:.6}.fault-code-conatiner .fault-code-title[data-v-880aa658]{margin-top:1rem;font-size:1rem;color:#333;line-height:1.4rem;font-weight:700;padding:0 .8rem}.fault-code-conatiner .fault-code-title .code[data-v-880aa658]{font-size:1rem;line-height:1.4rem;font-weight:700}.fault-code-conatiner .fault-code-meta[data-v-880aa658]{margin-top:.4rem;font-size:0;padding:0 .8rem .6rem}.fault-code-conatiner .fault-code-meta span[data-v-880aa658]{display:inline-block;line-height:1rem;font-size:.7rem;color:#666}.fault-code-conatiner .fault-code-meta span.text[data-v-880aa658]{margin-right:.4rem}.fault-code-conatiner .mode-wrap[data-v-880aa658]{padding:.6rem 0 .4rem}.fault-code-conatiner .detail-panel[data-v-880aa658]{margin-top:1.6rem;padding:0 .8rem}.fault-code-conatiner .detail-panel .title[data-v-880aa658]{line-height:1.13rem;font-size:.9rem;color:#333;font-weight:700}.fault-code-conatiner .detail-panel .content[data-v-880aa658]{margin-top:.4rem;line-height:1.2rem;font-size:.8rem;color:#333}.fault-code-conatiner .detail-panel .content.pic-list[data-v-880aa658]{margin-top:0}.fault-code-conatiner .detail-panel .content.pic-list img[data-v-880aa658]{width:100%;max-height:9.1rem;margin-top:.4rem;border-radius:.2rem;background-color:#e2e9f6;overflow:hidden}.fault-code-conatiner .detail-panel .content.reason-list[data-v-880aa658]{position:relative;margin-top:.4rem;padding:0 .5rem 0 .6rem;background-color:#f6f7f9;border-radius:.3rem}.fault-code-conatiner .detail-panel .content.reason-list .reason-item[data-v-880aa658]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.8rem 0}.fault-code-conatiner .detail-panel .content.reason-list .reason-item[data-v-880aa658]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px;border-color:#e3e0df}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left[data-v-880aa658]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-left:.8rem}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left p[data-v-880aa658]{position:relative;line-height:1.2rem;font-size:.85rem;color:#fe632a;font-weight:600}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left p[data-v-880aa658]:before{position:absolute;left:-.8rem;top:.45rem;display:block;content:\"\";width:.3rem;height:.3rem;border-radius:100%;background-color:#fe632a;overflow:hidden}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-left span[data-v-880aa658]{margin-top:.2rem;display:inline-block;line-height:1rem;font-size:.7rem;color:#999}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-right[data-v-880aa658]{position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:.65rem}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-right span[data-v-880aa658]{line-height:.8rem;font-size:.6rem;color:#999}.fault-code-conatiner .detail-panel .content.reason-list .reason-item .item-right span em[data-v-880aa658]{display:inline-block;width:.29rem;height:.5rem;margin-left:.25rem;margin-top:-.1rem;background-image:url(" + escape(__webpack_require__(40)) + ");background-repeat:no-repeat;background-size:100% 100%;background-position:50%;vertical-align:middle}.fault-code-conatiner .detail-panel .content.reason-list .reason-item.read[data-v-880aa658]{opacity:.65}.fault-code-conatiner .detail-panel .content.reason-list .suspension-box[data-v-880aa658]{position:absolute;right:-.4rem;top:-1.85rem;height:1.8rem;padding:0 .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-image:-webkit-gradient(linear,left bottom,left top,from(#ffc830),to(#ffe185));background-image:linear-gradient(0deg,#ffc830,#ffe185);box-shadow:0 0 .5rem 0 rgba(23,122,250,.3);border-radius:.4rem;z-index:10;color:#333;font-size:.65rem;-webkit-animation:bounce-data-v-880aa658 2s linear infinite;animation:bounce-data-v-880aa658 2s linear infinite}.fault-code-conatiner .detail-panel .content.reason-list .suspension-box[data-v-880aa658]:before{display:block;content:\"\";position:absolute;bottom:-.33rem;left:50%;width:0;height:0;margin-left:-.34rem;border-style:solid;border-width:.34rem .36rem 0 .34rem;border-color:#ffc830 transparent transparent}.fault-code-conatiner .detail-panel.fault-panel .failure-case-com[data-v-880aa658]{margin-top:.55rem;padding:0}.page-bottom[data-v-880aa658]{position:relative;width:100%;height:3rem;bottom:0;left:0;z-index:12}.error-correction-bar[data-v-880aa658]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:2.4rem}.error-correction-bar .name[data-v-880aa658]{padding:.6rem;font-size:.7rem;line-height:1rem;color:#177afa}.error-correction-bar .name[data-v-880aa658]:after{display:inline-block;content:\"\";width:.29rem;height:.5rem;margin-left:.25rem;background-image:url(" + escape(__webpack_require__(24)) + ");background-repeat:no-repeat;background-size:100% 100%;background-position:50%}@-webkit-keyframes bounce-data-v-880aa658{50%{-webkit-transform:translateY(.2rem);transform:translateY(.2rem)}}@keyframes bounce-data-v-880aa658{50%{-webkit-transform:translateY(.2rem);transform:translateY(.2rem)}}.cr-popup[data-v-880aa658]{height:86%;border-radius:.6rem .6rem 0 0;overflow:hidden}.model-container[data-v-880aa658]{height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.model-container .model-content[data-v-880aa658],.model-container[data-v-880aa658]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.model-container .model-content[data-v-880aa658]{width:15.35rem;height:17.05rem;margin-top:5.28rem;background-color:#fff;border-radius:.5rem;overflow:hidden}.model-container .model-content .model-content-head[data-v-880aa658]{padding:0 .6rem}.model-container .model-content .model-content-head h4[data-v-880aa658]{margin-top:1rem;line-height:1.25rem;font-size:.9rem;color:#333;font-weight:600}.model-container .model-content .model-content-head p[data-v-880aa658]{margin-top:.2rem;line-height:1rem;font-size:.7rem;color:#666}.model-container .model-content .model-content-body[data-v-880aa658]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;margin-top:.6rem;padding:0 .6rem}.model-container .model-content .model-content-body .mode[data-v-880aa658]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.4rem;margin:.4rem 0;padding:0 .43rem 0 .6rem;background-color:#f5f5f5;border-radius:.3rem;white-space:nowrap}.model-container .model-content .model-content-body .mode[data-v-880aa658]:after{display:inline-block;content:\"\";width:.29rem;height:.5rem;margin-left:.25rem;background-image:url(" + escape(__webpack_require__(57)) + ");background-repeat:no-repeat;background-size:100% 100%;background-position:50%}.model-container .model-content .model-content-body .mode span[data-v-880aa658]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.75rem;color:#333;text-overflow:ellipsis;overflow:hidden}.model-container .close-btn[data-v-880aa658]{display:inline-block;width:1.6rem;height:1.6rem;margin-top:1.2rem;background-image:url(" + escape(__webpack_require__(1469)) + ");background-position:50%;background-size:100% 100%}.model-container .fade-leave-active[data-v-880aa658]{-webkit-animation:shrink-data-v-880aa658 .6s ease-out;animation:shrink-data-v-880aa658 .6s ease-out;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;opacity:1}@-webkit-keyframes shrink-data-v-880aa658{to{-webkit-transform:scale(.25,.1);transform:scale(.25,.1)}}@keyframes shrink-data-v-880aa658{to{-webkit-transform:scale(.25,.1);transform:scale(.25,.1)}}.shareMAsk[data-v-880aa658]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:3000;background:rgba(0,0,0,.5)}.shareMAsk .shareTips[data-v-880aa658]{width:9.5rem;height:3.825rem;position:absolute;top:.5rem;right:.5rem}.shareMAsk .shareTips .van-icon-down[data-v-880aa658]{position:relative;left:4.5rem;font-size:40px;color:#fff;-webkit-transform:rotate(-148deg);-ms-transform:rotate(-148deg);transform:rotate(-148deg)}.shareMAsk .shareTips>p[data-v-880aa658]:first-of-type{margin-top:.85rem}.shareMAsk .shareTips>p[data-v-880aa658]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(1470);
var _tabs = _interopRequireDefault(__webpack_require__(1471));
__webpack_require__(1472);
var _tab = _interopRequireDefault(__webpack_require__(1473));
__webpack_require__(311);
var _overlay = _interopRequireDefault(__webpack_require__(199));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _faultCase = _interopRequireDefault(__webpack_require__(3452));
var _toolbar = _interopRequireDefault(__webpack_require__(3455));
var _crPopup = _interopRequireDefault(__webpack_require__(3458));
var _faultReason = _interopRequireDefault(__webpack_require__(3461));
var _mintUi = __webpack_require__(7);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// 故障案例
// 底部菜单
// 故障码弹层
// 排查步骤详情
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    FaultCase: _faultCase.default,
    Toolbar: _toolbar.default,
    CrPopup: _crPopup.default,
    FaultReason: _faultReason.default
  }, _overlay.default.name, _overlay.default), _tab.default.name, _tab.default), _tabs.default.name, _tabs.default), _icon.default.name, _icon.default),
  data: function data() {
    return {
      pcode: this.$route.query.pode,
      fcsId: this.$route.query.fcsId,
      sn: this.$route.query.sn,
      vehiDirId: this.$route.query.vehiDirId,
      faultCodeDetail: {},
      material: {
        no: '8fa35187',
        sourceType: 5,
        // 类型
        sourceNo: this.$route.query.sn
      },
      // 故障码（新）跳转问答参数
      imglist: [],
      faultDescription: '',
      // 故障说明
      causePhenomenon: '',
      // 导致现象
      reportCondition: '',
      // 报出条件
      clearCodeCondition: '',
      // 清码条件
      faultLevel: '',
      // 故障等级
      regardingComponent: '',
      // 相关部件
      otherInfo: '',
      // 其他信息
      dataName: '',
      // 对应资料名称
      detailDesc: '',
      // 详细描述
      reasonInfoList: [],
      // 产生原因列表
      isShowCorrectionsTools: false,
      showPopup: false,
      showPopupType: 'faultReason',
      crPopupTitle: '',
      reasonInfo: {
        proId: 0,
        reasonId: 0,
        vehiDirId: this.$route.query.vehiDirId,
        stepIds: ''
      },
      showCaseList: false,
      showModelOverlay: false,
      modelList: [],
      ureaId: 0,
      visitTimes: 0,
      showModelTab: false,
      timing: '',
      time: 0,
      showShareBox: false
    };
  },
  mounted: function mounted() {
    var that = this;
    document.title = '故障码详情';
    this.isShowCorrectionsTools = localStorage.getItem('isFromMft100') !== '1';
    // this.shareConfig()
    // this.getUreaList()
    this.getfaultCodeDetail();
    this.showModelTab = Number(sessionStorage.getItem('visitTimes')) >= 1;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '新能源故障码详情',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '新能源故障码详情,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
     * 分享给好友
     */
    shareFriends: function shareFriends() {
      var _this = this;
      var that = this;
      var params = {};
      this._Util.post(this._Api.GET_SEARCHVIPCOUNT, params, function (data) {
        _this.shareCount = data;
        if (_this.shareCount > 0) {
          if (that._Util.isFromApp()) {
            uni.postMessage({
              // eslint-disable-line
              data: {
                type: 'share',
                isAdd: 1
              }
            });
            return;
          }
          that.showShareBox = true;
        } else {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '今日分享次数已达上限，如需继续分享，请联系管理员'
          });
        }
      }, function () {}, this);
    },
    /**
     * 获取故障码详情
     */
    getfaultCodeDetail: function getfaultCodeDetail() {
      var _this2 = this;
      var apiUrl = '';
      if (this.$route.query.from === 'newFaultSearch') {
        // 新版故障码搜搜跳转来的
        apiUrl = this._Api.XNY_GET_FAULT_CODE_DETAIL_NEW2;
        this._Util.post(apiUrl, {
          faultcodeId: this.fcsId,
          sn: this.sn,
          vehiDirId: this.vehiDirId,
          ureaId: this.ureaId
        }, function (data) {
          _this2.faultCodeDetail = data;
          _this2.reasonInfo.proId = _this2.faultCodeDetail.proId;
          _this2.reasonInfo.faultCodeId = _this2.faultCodeDetail.faultCodeId;
          _this2.material.data = "faultCodeId_".concat(_this2.faultCodeDetail.faultCodeId);
          _this2.imglist = data.circuitsUrl && data.circuitsUrl.split(',') || [];
          var respList = data.xnyFaultCodeGuideListRespList[0] || [];
          _this2.faultDescription = respList.faultDescription && respList.faultDescription.replace(/\n/g, '<br>').trim();
          _this2.causePhenomenon = respList.causePhenomenon && respList.causePhenomenon.replace(/\n/g, '<br>').trim();
          _this2.reportCondition = respList.reportCondition && respList.reportCondition.replace(/\n/g, '<br>').trim();
          _this2.clearCodeCondition = respList.clearCodeCondition && respList.clearCodeCondition.replace(/\n/g, '<br>').trim();
          _this2.regardingComponent = data.regardingComponent && data.regardingComponent.replace(/\n/g, '<br>').trim();
          _this2.faultLevel = data.faultLevel && data.faultLevel.replace(/\n/g, '<br>').trim();
          _this2.otherInfo = data.otherInfo && data.otherInfo.replace(/\n/g, '<br>').trim();
          _this2.dataName = data.dataName && data.dataName.replace(/\n/g, '<br>').trim();
          _this2.detailDesc = data.detailDesc && data.detailDesc.replace(/\n/g, '<br>').trim();
          _this2.reasonInfoList = _this2.faultCodeDetail.reasonInfoList || [];
          console.log(_this2.reasonInfoList);
          var indexs = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
          _this2.reasonInfoList.map(function (item, index) {
            item.index = indexs[index];
          });
        }, function () {}, this);
      } else {
        _toast.default.loading({
          duration: 0
        });
        apiUrl = this._Api.GET_FAULT_CODE_DETAIL;
        this.$http.get("".concat(apiUrl, "/").concat(this.fcsId, "/").concat(this.sn, "/").concat(this.vehiDirId, "/").concat(this.ureaId)).then(function (res) {
          if (res.data.status === 200) {
            var data = res.data.data;
            _this2.faultCodeDetail = data;
            _this2.reasonInfo.proId = _this2.faultCodeDetail.proId;
            _this2.material.data = "faultCodeId_".concat(_this2.faultCodeDetail.faultCodeId);
            _this2.imglist = data.circuitsUrl && data.circuitsUrl.split(',') || [];
            var respList = data.crFaultCodeGuideListRespList[0] || [];
            _this2.faultDescription = respList.faultDescription && respList.faultDescription.replace(/\n/g, '<br>').trim();
            _this2.causePhenomenon = respList.causePhenomenon && respList.causePhenomenon.replace(/\n/g, '<br>').trim();
            _this2.reportCondition = respList.reportCondition && respList.reportCondition.replace(/\n/g, '<br>').trim();
            _this2.clearCodeCondition = respList.clearCodeCondition && respList.clearCodeCondition.replace(/\n/g, '<br>').trim();
            _this2.reasonInfoList = _this2.faultCodeDetail.reasonInfoList || [];
            var indexs = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
            _this2.reasonInfoList.map(function (item, index) {
              item.index = indexs[index];
            });
          } else {
            (0, _toast.default)({
              message: res.data.msg
            });
          }
        }).catch(function (err) {
          console.log(err);
        }).then(function () {
          _toast.default.clear();
        });
      }
    },
    /**
     * 获取节点列表
     */
    getUreaList: function getUreaList() {
      var _this3 = this;
      var apiUrl = '';
      var ureaApi = '';
      console.log(this.$route.query);
      if (this.$route.query.from === 'newFaultSearch') {
        // 新版故障码搜搜跳转来的v4
        apiUrl = this._Api.GET_UREA_LIST_NEW2;
        ureaApi = "".concat(apiUrl, "/").concat(this.sn, "/").concat(this.vehiDirId);
        sessionStorage.removeItem('visitTimes');
      } else {
        apiUrl = this._Api.GET_UREA_LIST;
        ureaApi = "".concat(apiUrl, "/").concat(this.fcsId, "/").concat(this.sn, "/").concat(this.vehiDirId);
      }
      this.$http.get(ureaApi).then(function (res) {
        if (res.data.status === 200) {
          var _this3$modelList$;
          _this3.modelList = res.data.data || [];
          _this3.visitTimes = Number(sessionStorage.getItem('visitTimes'));
          _this3.showModelOverlay = _this3.visitTimes <= 0 && _this3.modelList.length > 1;
          _this3.visitTimes++;
          sessionStorage.setItem('visitTimes', _this3.visitTimes);
          var ureaId = Number(sessionStorage.getItem('ureaId'));
          _this3.ureaId = ureaId || ((_this3$modelList$ = _this3.modelList[0]) === null || _this3$modelList$ === void 0 ? void 0 : _this3$modelList$.ureaId) || 0;
          _this3.getfaultCodeDetail();
        } else {
          (0, _toast.default)({
            message: res.data.msg
          });
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /**
     * 将该文件打开需要的条件与用户的自身情况作对比，然后做出相应的操作
     */
    checkStatus: function checkStatus(file) {
      var that = this;
      switch (file.viewMode) {
        // 查看方式 1：认证会员免费，2：付费会员免费，3：付费，4：积分兑换
        case 1:
          if (that.$store.state.userInfo.userStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需认证后可见',
              message: '请点击下方按钮认证',
              showConfirmButton: true,
              confirmButtonText: '认证',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'personalCertification',
                      url: location.origin + '/v2/member/personalCertification'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'personalCertification'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        case 2:
          if (that.$store.state.userInfo.userStatus == 0 || that.$store.state.userInfo.userStatus == 1) {
            (0, _mintUi.MessageBox)({
              title: '该文档为付费会员可见',
              message: '请进入会员中心开通会员',
              showConfirmButton: true,
              confirmButtonText: '会员中心',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                if (that._Util.isApp()) {
                  api.sendEvent({
                    name: 'acOpenNewFrm',
                    extra: {
                      name: 'certificationRenewal',
                      url: location.origin + '/v2/business/pay/certificationRenewal'
                    }
                  });
                } else {
                  that.$router.push({
                    name: 'certificationRenewal'
                  });
                }
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        case 3:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需购买后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8D2D\u4E70<br/><div style=\"text-align: center;color: black;font-size: 18px;\">\uFFE5".concat(file.viewCostAuthen, "</div>"),
              showConfirmButton: true,
              confirmButtonText: '购买',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                that._Util.post(that._Api.HOSTOLD + 'api/mall-api/order/quickSharePay.json', {
                  price: file.viewCostAuthen,
                  itemCode: 'ZL0001'
                }, function (data) {
                  that._Util.wxPay(data.jsApiParameters, function () {
                    that._Util.post(that._Api.HOSTOLD + 'api/treeShare/relationShareUser.json', {
                      fileNo: file.fileNo,
                      treeId: 0,
                      isPromote: 0
                    }, function (data) {
                      file.paymentStatus = 1;
                    }, function () {}, that);
                  });
                }, function () {}, that);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        case 4:
          if (file.paymentStatus == 0) {
            (0, _mintUi.MessageBox)({
              title: '该文档需积分兑换后查看',
              message: "\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5151\u6362<br/><div style=\"text-align: center;color: black;font-size: 18px;\">".concat(file.viewCostAuthen, "\u79EF\u5206</div>"),
              showConfirmButton: true,
              confirmButtonText: '积分兑换',
              confirmButtonClass: 'confirmBtn',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                // view_cost_authen 认证会员成本 元/积分
                // view_cost_pay   付费会员成本 元/积分
                var viewCost = that.$store.state.userInfo.userStatus == 2 ? file.viewCostPay : file.viewCostAuthen;
                that.postPoint(file.fileNo, viewCost, file);
              }
            });
          } else {
            that.openresource(file, file.fileNo, file.fileType);
          }
          break;
        default:
          that.openresource(file, file.fileNo, file.fileType);
      }
    },
    /**
     * 打开文件
     */
    openresource: function openresource(item, fileNo, filetype) {
      var that = this;
      if (filetype.toUpperCase() == 'PDF') {
        if (that._Util.isApp()) {
          var appToken = localStorage.getItem('app-token') || '';
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'pdf' + item.fileNo,
              url: that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo + '&appToken=' + appToken
            }
          });
        } else {
          // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
          if (localStorage.getItem('isFromMft100') === '1') {
            that._Util.AddEventFmt100Url(that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo);
            return;
          }
          window.location.href = that._Api.HOSTOLD + 'api/management/filePDFView.htm?fileNo=' + item.fileNo;
        }
      } else if (new RegExp(filetype.toUpperCase()).test('MP4AVIBMPDBMPGWMVOGG')) {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo
        }, function (data) {
          if (data.fileUrl) {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'video',
                  url: location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl)
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/pdfvideo/video?share=' + encodeURIComponent(data.fileUrl));
                return;
              }
              that.$router.push({
                name: 'video',
                query: {
                  share: data.fileUrl
                }
              });
            }
          }
        }, function () {}, that);
      } else {
        that._Util.post(that._Api.HOSTOLD + 'api/management/getMeansDetails.json', {
          fileNo: item.fileNo,
          pageNum: 1,
          pageSize: 3
        }, function (data) {
          if (data.displayType == 1) {
            if (filetype.toUpperCase() == 'JPG' || filetype.toUpperCase() == 'PNG') {
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'picList' + item.fileNo,
                    url: location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=1&type=1&fromPage=soso&title=' + item.dataName.replace(/red/g, '#666') + '&pageNum=1&pageSize=3&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                  return;
                }
                that.$router.push({
                  name: 'picList',
                  query: {
                    isScale: 1,
                    title: item.dataName.replace(/red/g, '#666'),
                    count: 1,
                    pageNum: 1,
                    pageSize: 3,
                    type: 1,
                    fromPage: 'soso',
                    fileNo: item.fileNo
                  }
                });
              }
            } else {
              var wxUrl = '';
              if (filetype == '微信图文') {
                // data.fileUrl = data.fileUrl
                wxUrl = data.fileUrl + '?/';
              } else {
                wxUrl = data.fileUrl;
              }
              if (that._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'openWxUrl',
                    url: wxUrl
                  }
                });
              } else {
                // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的跳转将不会执行
                if (localStorage.getItem('isFromMft100') === '1') {
                  that._Util.AddEventFmt100Url(wxUrl);
                  return;
                }
                location.href = wxUrl;
              }
            }
          } else {
            if (that._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'picList' + item.fileNo,
                  url: location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase()
                }
              });
            } else {
              // 判断是否在mft00平板打开，是的话直接发送url供平板打开详情页，后面的路由跳转将不会执行
              if (localStorage.getItem('isFromMft100') === '1') {
                that._Util.AddEventFmt100Url(location.origin + '/v2/business/pay/picList?isScale=1&count=' + data.reCount + '&type=1&fromPage=soso&title=' + data.atlasName + '&pageNum=1&pageSize=3&&&fileNo=' + item.fileNo + '&filetype=' + filetype.toUpperCase());
                return;
              }
              that.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  title: data.atlasName,
                  count: data.reCount,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: item.fileNo,
                  fromPage: 'soso'
                }
              });
            }
          }
        }, function () {}, that);
      }
    },
    /** 积分兑换 */postPoint: function postPoint(id, point, file) {
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'api/treeShare/pointPurchase.json', {
        fileNo: id,
        point: point
      }, function (data) {
        // that.post();
        file.paymentStatus = 1;
      }, function () {}, that);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '故障码详情',
        desc: '卡修宝典，百万海量维修资料在线查看',
        link: location.href,
        imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    },
    /**
     * 浏览图片
     * @param {Array} imgList 图片集合
     * @param {Number} activeIndex 当前显示的图片索引
     */
    viewImage: function viewImage(imgList, activeIndex) {
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      (0, _imagePreview.default)({
        images: _imgList,
        startPosition: activeIndex,
        loop: false
      });
    },
    /**
     * 监听查看文件检验事件
     * @param {Object} val 文件信息
     */
    emitCheckStatus: function emitCheckStatus(val) {
      this._Util.sensorsCollect('element_click_faultexample', {
        operation_page: '故障码详情',
        crid: this.$route.query.sn,
        vehicledictionary_id: val.fileNo,
        vehicledictionary_name: this.faultCodeDetail.system + this.faultCodeDetail.property,
        file_id: val.fileId,
        file_name: val.name,
        fault_code: this.$route.query.pode,
        fault_descruibe_id: this.$route.query.fcsId
      });
      this.checkStatus(val);
    },
    /**
     * 资料纠错
     */
    submitError: function submitError() {
      var url = "".concat(location.origin, "/v2/questionnaire/index?no=").concat(this.material.no, "&data=").concat(this.material.data);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'feedback',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 打开原因弹窗
     * @param {Object} item 原因信息
     * @param {Number} index 当前索引值
     */
    viewReason: function viewReason(item, index) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this4._Util.isFromApp()) {
                _context.next = 2;
                break;
              }
              _context.next = 1;
              return _this4._Util.getUserInfo(_this4);
            case 1:
              userinfo = _context.sent;
            case 2:
              if (!(localStorage.getItem('isAdminPass') == 0)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isAccessControl') == 1)) {
                _context.next = 4;
                break;
              }
              if (_this4._Util.isSVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isSvip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this4.clickFlag = true;
                } else {
                  _this4.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 3:
              if (_this4._Util.isVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isVip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context.next = 4;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this4.clickFlag = true;
                } else {
                  _this4.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 4:
              _this4.showPopupType = 'faultReason';
              _this4.crPopupTitle = item.reasonDescribe;
              _this4.reasonInfo.reasonId = item.reasonId;
              _this4.reasonInfo.stepIds = item.stepIds;
              _this4.showPopup = true;
              _this4.reasonInfoList[index].read = true;
              // 查看故障原因埋点
              _this4._Util.sensorsCollect('click_fault_reason', {
                operation_page: '故障码详情',
                crid: _this4.$route.query.sn,
                vehicledictionary_id: '',
                vehicledictionary_name: _this4.faultCodeDetail.system + _this4.faultCodeDetail.property,
                fault_resaon_describe: item.reasonDescribe,
                fault_reason_id: item.reasonId,
                fault_reason_sort: item.percentage,
                fault_code: _this4.$route.query.pode,
                fault_descruibe_id: _this4.$route.query.fcsId
              });
            case 5:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    /**
     * 滑动页面隐藏子组件菜单子集
     */
    hideTab: function hideTab() {
      this.$refs.toolbar.hideTab();
    },
    /**
     * 监听底部菜单事件
     * @param {Object} val 菜单项信息
     */
    emitEvent: function emitEvent(val) {
      switch (val.name) {
        case 'faultCase':
          this.crPopupTitle = '故障案例';
          this.showPopup = true;
          this.showPopupType = 'faultCase';

          // 点击查看故障案例埋点
          this._Util.sensorsCollect('element_click_faultexample', {
            operation_page: '故障码详情',
            crid: this.$route.query.sn,
            vehicledictionary_id: '',
            vehicledictionary_name: this.faultCodeDetail.system + this.faultCodeDetail.property,
            fault_code: this.$route.query.pode,
            fault_descruibe_id: this.$route.query.fcsId
          });
      }
    },
    /**
     * 监听故障案例的数据
     */
    emitShowCaseList: function emitShowCaseList(flag) {
      this.showCaseList = flag;
    },
    /**
     * 选择型号
     * @param {Number} ureaId 节点id
     */
    selectMode: function selectMode(ureaId) {
      this.ureaId = ureaId;
      this.showModelOverlay = false;
      this.showModelTab = true;
    },
    /**
     * 当前激活的型号改变时触发
     * @param {Number} id 标识符
     * @param {String} name 型号名称
     */
    tabsChange: function tabsChange(id, name) {
      this.ureaId = id;
      sessionStorage.setItem('ureaId', id);
      this.getfaultCodeDetail();
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(671);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5ceff496_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1269);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3453)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5ceff496"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5ceff496_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5ceff496_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultCase_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3454);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8c0795fe", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".failure-case-com[data-v-5ceff496]{height:100%;padding:.6rem .8rem;overflow-y:auto}.failure-case-com .case-list .case-item[data-v-5ceff496]{margin-bottom:.8rem}.failure-case-com .case-list .case-item p[data-v-5ceff496]{line-height:1.13rem;color:#177afa;font-size:.8rem}.failure-case-com .case-list .null[data-v-5ceff496]{margin-top:1rem;text-align:center;color:#999;font-size:.7rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    faultCodeDetailProp: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      page: {
        num: 1,
        size: 20
      },
      faultCodeDetail: {},
      caseList: []
    };
  },
  mounted: function mounted() {
    var _this = this;
    setTimeout(function () {
      _this.faultCodeDetail = _this.faultCodeDetailProp;
      _this.faultCaseList();
    }, 300);
  },
  methods: {
    /**
     * 故障案例
     */
    faultCaseList: function faultCaseList() {
      var _this2 = this;
      var faultCodeId = this.$route.query.sn && this.$route.query.sn.split('_')[1];
      var params = {
        faultCodeId: faultCodeId,
        pageNum: this.page.num,
        pageSize: this.page.size
      };
      if (this.page.num === 1) {
        this.caseList = [];
      }
      this._Util.post(this._Api.POST_DATA_SHARE, params, function (data) {
        var dataList = data || [];
        _this2.caseList = _this2.caseList.concat(dataList);
        _this2.$emit('emitShowCaseList', dataList.length > 0);
      }, function () {}, this);
    },
    /**
     * 查看故障案例
     * @param {Object} item 故障案例信息
     * 
     */
    openFile: function openFile(item, index) {
      this._Util.sensorsCollect('element_click_faultexample', {
        operation_page: '故障码详情',
        crid: this.$route.query.sn,
        vehicledictionary_id: item.fileNo,
        vehicledictionary_name: this.faultCodeDetail.system + this.faultCodeDetail.property,
        file_id: item.fileId,
        file_name: item.name,
        fault_code: this.$route.query.pcode,
        fault_descruibe_id: this.$route.query.fcsId
      });
      this.$emit('emitCheckStatus', item);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"failure-case-com"},[_c('div',{staticClass:"case-list"},[_vm._l((_vm.caseList),function(item,index){return _c('div',{key:index,staticClass:"case-item",on:{"click":function($event){return _vm.openFile(item, index)}}},[_c('p',[_vm._v(_vm._s(item.name))])])}),_vm._v(" "),(!_vm.caseList.length)?_c('p',{staticClass:"null"},[_vm._v("暂无故障案例")]):_vm._e()],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(672);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7dcf9cd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1270);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3456)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7dcf9cd0"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7dcf9cd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7dcf9cd0_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_toolbar_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3457);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("08392916", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".toolbar[data-v-7dcf9cd0]{position:relative;width:100%;height:100%;background-color:#fff}.toolbar .toolbar-inner[data-v-7dcf9cd0]{position:absolute;height:inherit;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;z-index:-1}.toolbar .toolbar-inner.toolbar-menu[data-v-7dcf9cd0]{z-index:12}.toolbar .item[data-v-7dcf9cd0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;position:relative;z-index:12}.toolbar .item[data-v-7dcf9cd0]:before{top:.8rem;height:1.4rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.toolbar .item .item-name[data-v-7dcf9cd0]{height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;white-space:nowrap}.toolbar .item .item-name .icon[data-v-7dcf9cd0]{display:inline-block;width:.8rem;height:.8rem;margin-right:.3rem}.toolbar .item .item-name span[data-v-7dcf9cd0]{font-size:.8rem;color:#333;text-overflow:ellipsis;overflow:hidden}.toolbar .item .sub-menu-bar[data-v-7dcf9cd0]{position:absolute;bottom:3.58rem;left:1.45rem;max-width:15.85rem;background-color:#fff;padding:0 .6rem;box-shadow:0 0 .4rem 0 rgba(62,73,84,.2);border-radius:.3rem;z-index:10}.toolbar .item .sub-menu-bar[data-v-7dcf9cd0]:before{display:block;content:\"\";position:absolute;bottom:-.33rem;left:1.8rem;width:0;height:0;border-style:solid;border-width:.36rem .34rem 0;border-color:#fff transparent transparent}.toolbar .item .sub-menu-bar .sub-name[data-v-7dcf9cd0]{position:relative;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;white-space:nowrap;overflow:hidden}.toolbar .item .sub-menu-bar .sub-name[data-v-7dcf9cd0]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.toolbar .item .sub-menu-bar .sub-name[data-v-7dcf9cd0]:last-child:before{display:none}.toolbar .item .sub-menu-bar .sub-name p[data-v-7dcf9cd0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;font-size:.8rem;color:#333}.fade-slide-enter-active[data-v-7dcf9cd0],.fade-slide-leave-active[data-v-7dcf9cd0]{-webkit-transition:all .15s linear;transition:all .15s linear}.toolbar .item .sub-menu-bar.fade-slide-enter[data-v-7dcf9cd0],.toolbar .item .sub-menu-bar.fade-slide-leave-to[data-v-7dcf9cd0]{bottom:2rem;opacity:0}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    material: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    reasonInfoList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    showCaseList: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      showSubMenu: false,
      menus: [{
        id: 1,
        show: false,
        icon: __webpack_require__(1474),
        name: '产生原因'
      }, {
        id: 2,
        icon: '',
        show: false,
        name: '故障案例'
      }, {
        id: 3,
        show: true,
        icon: __webpack_require__(1475),
        name: '去提问'
      }]
    };
  },
  watch: {
    reasonInfoList: function reasonInfoList(val) {
      this.menus[0].show = val && val.length;
    },
    showCaseList: function showCaseList(val) {
      this.menus[1].show = val;
    }
  },
  methods: {
    toggleTab: function toggleTab(id) {
      switch (id) {
        case 1:
          this.showSubMenu = !this.showSubMenu;
          break;
        case 2:
          this.$emit('emitEvent', {
            name: 'faultCase'
          });
          this.showSubMenu = false;
          break;
        case 3:
          this.toPutQuestion();
          this.showSubMenu = false;
          break;
      }
    },
    /**
     * 跳转极速问答提问页
     */
    toPutQuestion: function toPutQuestion() {
      this.material.sourceUrl = window.location.href;
      localStorage.setItem('qa_data', JSON.stringify(this.material));
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'putQuestion',
            url: "".concat(location.origin, "/v2/shopping/putQuestion")
          }
        });
      } else {
        location.href = "".concat(location.origin, "/v2/shopping/putQuestion");
      }
    },
    /**
     * 查看产生的原因
     * @param {Object} item 产生的原因标题和id
     * @param {Number} index 当前索引值
     */
    viewReason: function viewReason(item, index) {
      this.hideTab();
      this.$emit('viewReason', item, index);
    },
    /**
     * 隐藏底部子菜单
     */
    hideTab: function hideTab() {
      this.showSubMenu = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"toolbar"},[_c('div',{staticClass:"toolbar-inner toolbar-menu"},_vm._l((_vm.menus),function(m){return _c('div',{key:m.id,staticClass:"item hairline",style:({display: (m.show ? '' : 'none')})},[_c('div',{staticClass:"item-name",on:{"click":function($event){$event.stopPropagation();return _vm.toggleTab(m.id)}}},[(m.icon && m.icon !== '')?_c('img',{staticClass:"icon",attrs:{"src":m.icon}}):_vm._e(),_c('span',[_vm._v(_vm._s(m.name))])])])}),0),_vm._v(" "),_c('div',{staticClass:"toolbar-inner"},[(_vm.reasonInfoList && _vm.reasonInfoList.length)?_c('div',{staticClass:"item"},[_c('transition',{attrs:{"name":"fade-slide"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showSubMenu),expression:"showSubMenu"}],staticClass:"sub-menu-bar"},_vm._l((_vm.reasonInfoList),function(sm,index){return _c('div',{key:sm.reasonId,staticClass:"sub-name hairline",on:{"click":function($event){return _vm.viewReason(sm, index)}}},[_c('p',[_vm._v(_vm._s(sm.index)+"、"+_vm._s(sm.reasonDescribe))])])}),0)])],1):_vm._e()])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(673);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b23e0458_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1271);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3459)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b23e0458"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b23e0458_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_b23e0458_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_crPopup_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3460);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("55707652", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".popup-container[data-v-b23e0458]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.popup-container .popup-top[data-v-b23e0458]{height:2.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background-color:#fff;border-bottom:1px solid #e7e7e7}.popup-container .popup-top .title[data-v-b23e0458]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;white-space:nowrap;overflow:hidden}.popup-container .popup-top .title p[data-v-b23e0458]{overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:.9rem;color:#333}.popup-container .popup-top .top-left[data-v-b23e0458],.popup-container .popup-top .top-right[data-v-b23e0458]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-size:.8rem;color:#666}.popup-container .popup-content[data-v-b23e0458]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _popup.default.name, _popup.default),
  props: {
    showPopup: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: ''
    }
  },
  data: function data() {
    return {};
  },
  methods: {
    closePopup: function closePopup() {
      this.$emit('update:showPopup', false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('van-popup',{staticClass:"cr-popup",attrs:{"close-on-click-overlay":false,"position":"bottom"},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"popup-container"},[_c('div',{staticClass:"popup-top"},[_c('div',{staticClass:"top-left"}),_vm._v(" "),_c('div',{staticClass:"title"},[_c('p',[_vm._v(_vm._s(_vm.title))])]),_vm._v(" "),_c('div',{staticClass:"top-right",on:{"click":_vm.closePopup}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"popup-content"},[_vm._t("content")],2)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(674);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_eca8dd64_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1272);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3462)
  __webpack_require__(3464)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-eca8dd64"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_eca8dd64_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_eca8dd64_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_faultReason_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3463);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("aba8a986", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3465);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3c580687", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fault-reason-com[data-v-eca8dd64]{position:relative;height:100%;overflow-y:auto;padding:.6rem .8rem}.fault-reason-com .step-list[data-v-eca8dd64]{overflow:hidden}.fault-reason-com .step-list .step-item[data-v-eca8dd64]{margin-bottom:1.2rem}.fault-reason-com .step-list .step-item .title[data-v-eca8dd64]{line-height:1.2rem;color:#333;font-size:.9rem;font-weight:600}.fault-reason-com .step-list .step-item img[data-v-eca8dd64]{display:inline-block;width:100%;min-height:10rem;margin:.6rem auto 0;background-color:#eee;border-radius:.2rem;overflow:hidden;vertical-align:top}.fault-reason-com .step-list .step-item video[data-v-eca8dd64]{margin-top:.6rem;width:100%;min-height:10rem;margin-top:.4rem;vertical-align:top;background-color:#eee}.fault-reason-com .step-list .step-item a[data-v-eca8dd64]{display:block;margin-top:.4rem;color:#177afa;text-decoration:underline}.fault-reason-com .step-list .step-item p[data-v-eca8dd64]{margin-top:.6rem;line-height:1.4rem;color:#333;font-size:.8rem}.fault-reason-com .step-list .step-item p.pic-desc[data-v-eca8dd64]{line-height:1rem;margin-top:.18rem;text-align:center;color:#999;font-size:.7rem}.fault-reason-com .reason-bottom[data-v-eca8dd64]{margin-top:.8rem;overflow:hidden}.fault-reason-com .reason-bottom .question-title[data-v-eca8dd64]{position:relative;font-size:.7rem;color:#999;line-height:1rem;text-align:center}.fault-reason-com .reason-bottom .question-title[data-v-eca8dd64]:after,.fault-reason-com .reason-bottom .question-title[data-v-eca8dd64]:before{position:absolute;display:inline-block;content:\"\";width:2.58rem;height:100%;border-bottom:1px solid #eee;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);vertical-align:middle;box-sizing:border-box;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.fault-reason-com .reason-bottom .question-title[data-v-eca8dd64]:before{left:0}.fault-reason-com .reason-bottom .question-title[data-v-eca8dd64]:after{right:0}.fault-reason-com .reason-bottom .question-options[data-v-eca8dd64]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:9.5rem;margin:1.6rem auto 1.8rem}.fault-reason-com .reason-bottom .question-options .item[data-v-eca8dd64]{width:2.5rem}.fault-reason-com .reason-bottom .question-options .item .icon[data-v-eca8dd64]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:100%;border:1px solid #eee}.fault-reason-com .reason-bottom .question-options .item .icon img[data-v-eca8dd64]{width:1.3rem;height:1.3rem;vertical-align:top}.fault-reason-com .reason-bottom .question-options .item .name[data-v-eca8dd64]{margin-top:.3rem;line-height:1rem;font-size:.7rem;color:#666;text-align:center}.fault-reason-com .reason-bottom .question-options .item.solved .icon[data-v-eca8dd64]{border-color:#ff701f}.fault-reason-com .reason-bottom .question-options .item.solved .name[data-v-eca8dd64]{color:#ff701f}.fault-reason-com .reason-bottom .question-options .item.unsolved .icon[data-v-eca8dd64]{border-color:#666}.fault-reason-com .reason-bottom .question-options .item.unsolved .name[data-v-eca8dd64]{color:#333}.fault-reason-com .masking[data-v-eca8dd64]{width:100%;height:100%;position:absolute;top:0;left:0;background-color:rgba(0,0,0,.2)}.fault-reason-com .masking .vip-wrap[data-v-eca8dd64]{width:16.35rem;height:9.5rem;margin:2.9rem auto 0;background-color:#fff;border-radius:.4rem;overflow:hidden}.fault-reason-com .masking .vip-wrap .text[data-v-eca8dd64]{margin-top:1.8rem;line-height:1.25rem;font-size:.9rem;color:#333;text-align:center}.fault-reason-com .masking .vip-wrap .vip-btn[data-v-eca8dd64]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:12.75rem;height:2.2rem;margin:1.6rem auto 0;border-radius:1.1rem;background:linear-gradient(75deg,#bf8c59,#e0a264);font-size:.9rem;color:#fff}.pop-container[data-v-eca8dd64]{width:100%;height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-eca8dd64]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-eca8dd64]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-eca8dd64]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-eca8dd64]{height:80.5%;padding-bottom:1rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-eca8dd64]{padding:.8rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-eca8dd64]{padding:0 .5rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.pop-container .content-container .content-list li[data-v-eca8dd64]{width:33.333%;margin-bottom:.4rem;padding:0 .22rem;overflow:hidden}.pop-container .content-container .content-list li div[data-v-eca8dd64]{padding:0 .2rem;width:100%;height:100%;line-height:1.5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;word-break:break-all;font-weight:400;color:#333;text-align:center;vertical-align:top}.pop-container .content-container .content-list li div.active[data-v-eca8dd64]{background-color:#e7f1ff;color:#2450f7}.pop-container .foot-bar[data-v-eca8dd64]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.pop-container .foot-bar .btn[data-v-eca8dd64]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}.pop-container2[data-v-eca8dd64]{height:30%;width:90%;border-radius:.6rem}.pop-container2 .tips-content[data-v-eca8dd64]{padding:1rem;font-size:18px}.pop-container2 .foot-bar .btn2[data-v-eca8dd64]{width:48%;line-height:1;padding:.5rem 0;margin:0 auto;font-size:.72rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    reasonInfo: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      solved: false,
      unsolved: false,
      stepContent: [],
      isVip: false,
      showPop2: false,
      showPop3: false,
      shareCount: 0
    };
  },
  created: function created() {
    // this.getStatus()
    this.getStepContent();
  },
  methods: {
    share: function share() {
      this.$emit('emitShare');
    },
    goBuySvip: function goBuySvip(type) {
      this.showPop2 = false;
      this.showPop3 = false;
      uni.navigateTo({
        url: '/pages/mine/vip/index?type=1&vipType=' + type
      });
    },
    /**
     * 获取用户会员状态
     */
    getStatus: function getStatus() {
      var _this = this;
      if (localStorage.getItem('isFromMft100') === '1') {
        this.isVip = false;
        return;
      }
      this._Util.post(this._Api.POST_USER_STATUS, {}, function (data) {
        var userStatus = data.userStatus;
        if (userStatus !== 2) {
          // 非付费会员
          _this.isVip = true;
        }
      }, function () {}, this);
    },
    /**
     * 开通会员
     */
    openVip: function openVip() {
      location.href = location.origin + '/v2/business/pay/certificationRenewal?pathid=newgzm';
    },
    /**
     * 获取排查步骤详情
     */
    getStepContent: function getStepContent() {
      var _this2 = this;
      var that = this;
      if (this.reasonInfo.stepIds === '' || !this.reasonInfo.stepIds) {
        this.reasonInfo.stepIds = 0;
      }
      this.$http.get("".concat(this._Api.XNY_TROUBLESHOOT_STEP_CONTENT_BY_VEHIDIRID, "/").concat(this.reasonInfo.vehiDirId, "/").concat(this.reasonInfo.reasonId, "/").concat(this.reasonInfo.stepIds, "/").concat(this.reasonInfo.faultCodeId)).then(function (res) {
        if (res.data.status === 200) {
          var data = res.data.data || [];
          data.forEach(function (item) {
            item.contentVoList.forEach(function (_item) {
              _item.content = _item.content && _item.content.replace(/\n/g, '<br/>');
            });
          });
          _this2.stepContent = data;
        } else {
          if (res.data.status == 600) {
            that.showPop2 = true;
          } else if (res.data.status == 700) {
            that.showPop3 = true;
          } else {
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: res.data.msg
            });
            // Toast({
            //   message: res.data.msg
            // })
          }
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    /**
     * 查询分享次数
     * @param {Object} item 查询分享次数
     */
    searchShareCount: function searchShareCount() {
      var _this3 = this;
      var params = {};
      this._Util.post(this._Api.GET_SEARCHVIPCOUNT, params, function (data) {
        _this3.shareCount = data;
      }, function () {}, this);
    },
    /**
     * 查看文件
     * @param {Object} item 文件信息
     */
    openFile: function openFile(item) {
      this.$emit('emitCheckStatus', item);
    },
    /**
     * 反馈问题是否解决
     * @param {Number} type 1：已解决 2：未解决
     */
    faultReasonFeedback: function faultReasonFeedback(type) {
      var _this4 = this;
      if (this.solved || this.unsolved) return;
      var params = {
        reasonId: this.reasonInfo.reasonId,
        type: type
      };
      this._Util.post(this._Api.POST_FAULT_REASON_FEEDBACK, params, function (data) {
        type === 1 ? _this4.solved = true : _this4.unsolved = true;
        (0, _toast.default)({
          message: '感谢您的反馈'
        });
      }, function () {}, this);
    },
    /**
     * 查看图片
     * @param {String} img 图片地址
     */
    viewImage: function viewImage(img) {
      this.$emit('emitViewImage', [img], 0);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"fault-reason-com",style:(_vm.isVip ? 'overflow: hidden' : '')},[_c('div',{style:(_vm.isVip ? 'filter: blur(4px)' : '')},[_c('div',{staticClass:"step-list"},_vm._l((_vm.stepContent),function(step,index){return _c('div',{key:index,staticClass:"step-item"},[_c('h4',{staticClass:"title"},[_vm._v(_vm._s(step.title))]),_vm._v(" "),_vm._l((step.contentVoList),function(c,index){return _c('div',{key:index},[(c.type === 2)?_c('p',{domProps:{"innerHTML":_vm._s(c.content)}}):_vm._e(),_vm._v(" "),(c.type === 3)?_c('img',{attrs:{"src":c.picUrl,"alt":c.picName},on:{"click":function($event){return _vm.viewImage(c.picUrl)}}}):_vm._e(),_vm._v(" "),(c.type === 3)?_c('p',{staticClass:"pic-desc"},[_vm._v(_vm._s(c.picDescribe))]):_vm._e(),_vm._v(" "),(c.type === 4)?_c('video',{attrs:{"controls":"controls","poster":c.videoUrl + '?vframe/jpg/offset/1',"preload":"","src":c.videoUrl}}):_vm._e(),_vm._v(" "),(c.type === 4)?_c('p',{staticClass:"pic-desc"},[_vm._v(_vm._s(c.videoDescribe))]):_vm._e(),_vm._v(" "),(c.type === 5)?_c('a',{attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.openFile(c)}}},[_vm._v(_vm._s(c.dataShareName))]):_vm._e()])})],2)}),0)]),_vm._v(" "),(_vm.isVip)?_c('div',{staticClass:"masking"},[_c('div',{staticClass:"vip-wrap"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"vip-btn",on:{"click":function($event){return _vm.openVip()}}},[_vm._v("去开通会员")])])]):_vm._e(),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop2),callback:function ($$v) {_vm.showPop2=$$v},expression:"showPop2"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop2 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请进行分享或者购买SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.share()}}},[_vm._v("分享")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop3),callback:function ($$v) {_vm.showPop3=$$v},expression:"showPop3"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop3 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请购买VIP或者SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.goBuySvip(2)}}},[_vm._v("购买VIP")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"text"},[_vm._v("详细排查步骤为会员专属功能"),_c('br'),_vm._v("开通会员即可查看")])}]
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"fault-code-page"},[_c('div',{staticClass:"fault-code-conatiner",on:{"touchstart":_vm.hideTab}},[_c('div',{staticClass:"conatiner-inner"},[_c('div',{staticClass:"fault-code-title"},[_c('span',{staticClass:"code",domProps:{"innerHTML":_vm._s(_vm.pcode)}}),_vm._v("\n          - "+_vm._s(_vm.faultCodeDetail.descCn)+"\n        ")]),_vm._v(" "),_c('div',{staticClass:"fault-code-meta"},[_c('span',[_vm._v("ECU系统：")]),_vm._v(" "),_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.faultCodeDetail.system))]),_vm._v(" "),_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.faultCodeDetail.property))])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showModelTab && _vm.modelList && _vm.modelList.length > 0),expression:"showModelTab && modelList && modelList.length > 0"}],staticClass:"mode-wrap"},[_c('van-tabs',{attrs:{"ellipsis":false,"type":"card"},on:{"change":_vm.tabsChange},model:{value:(_vm.ureaId),callback:function ($$v) {_vm.ureaId=$$v},expression:"ureaId"}},_vm._l((_vm.modelList),function(m){return _c('van-tab',{key:m.ureaId,attrs:{"name":m.ureaId,"title":m.ureaName}})}),1)],1),_vm._v(" "),_c('div',{staticClass:"hr"}),_vm._v(" "),(_vm.faultDescription)?_c('div',{staticClass:"detail-panel",staticStyle:{"margin-top":"0.8rem"}},[_c('h4',{staticClass:"title"},[_vm._v("故障说明：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.faultDescription)}})]):_vm._e(),_vm._v(" "),(_vm.causePhenomenon)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("导致现象：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.causePhenomenon)}})]):_vm._e(),_vm._v(" "),(_vm.reportCondition)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("报出条件：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.reportCondition)}})]):_vm._e(),_vm._v(" "),(_vm.clearCodeCondition)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("清码条件：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.clearCodeCondition)}})]):_vm._e(),_vm._v(" "),(_vm.faultLevel)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("故障等级：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.faultLevel)}})]):_vm._e(),_vm._v(" "),(_vm.regardingComponent)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("相关部件：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.regardingComponent)}})]):_vm._e(),_vm._v(" "),(_vm.otherInfo)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("其他信息：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.otherInfo)}})]):_vm._e(),_vm._v(" "),(_vm.detailDesc)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("详细描述：")]),_vm._v(" "),_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.detailDesc)}})]):_vm._e(),_vm._v(" "),(_vm.imglist && _vm.imglist.length)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("相关电路图：")]),_vm._v(" "),_c('div',{staticClass:"content pic-list"},_vm._l((_vm.imglist),function(img,imgIndex){return _c('img',{key:imgIndex,attrs:{"src":img,"alt":""},on:{"click":function($event){return _vm.viewImage(_vm.imglist, imgIndex)}}})}),0)]):_vm._e(),_vm._v(" "),(_vm.reasonInfoList.length > 0)?_c('div',{staticClass:"detail-panel"},[_c('h4',{staticClass:"title"},[_vm._v("产生原因及排查步骤：")]),_vm._v(" "),_c('div',{staticClass:"content reason-list"},[_vm._m(0),_vm._v(" "),_vm._l((_vm.reasonInfoList),function(item,index){return _c('div',{key:index,staticClass:"reason-item hairline",class:{'read': item.read},on:{"click":function($event){return _vm.viewReason(item, index)}}},[_c('div',{staticClass:"item-left"},[_c('p',[_vm._v(_vm._s(item.reasonDescribe))])]),_vm._v(" "),_vm._m(1,true)])})],2)]):_vm._e(),_vm._v(" "),(_vm.showCaseList)?_c('div',{staticClass:"detail-panel fault-panel"},[_c('h4',{staticClass:"title"},[_vm._v("相关故障案例：")]),_vm._v(" "),_c('fault-case',{attrs:{"fault-code-detail-prop":_vm.faultCodeDetail},on:{"emitCheckStatus":_vm.emitCheckStatus,"emitShowCaseList":_vm.emitShowCaseList}})],1):_vm._e()])]),_vm._v(" "),_c('cr-popup',{attrs:{"show-popup":_vm.showPopup,"title":_vm.crPopupTitle},on:{"update:showPopup":function($event){_vm.showPopup=$event},"update:show-popup":function($event){_vm.showPopup=$event}}},[(_vm.showPopup && _vm.showPopupType === 'faultCase')?_c('fault-case',{attrs:{"slot":"content","fault-code-detail-prop":_vm.faultCodeDetail},on:{"emitCheckStatus":_vm.emitCheckStatus},slot:"content"}):_vm._e(),_vm._v(" "),(_vm.showPopup && _vm.showPopupType === 'faultReason')?_c('fault-reason',{attrs:{"slot":"content","reason-info":_vm.reasonInfo},on:{"emitCheckStatus":_vm.emitCheckStatus,"emitViewImage":_vm.viewImage,"emitShare":_vm.shareFriends},slot:"content"}):_vm._e()],1),_vm._v(" "),_c('van-overlay',{attrs:{"show":_vm.showModelOverlay,"z-index":"1000","lock-scroll":false,"duration":0.8}},[_c('div',{staticClass:"model-container"},[_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showModelOverlay),expression:"showModelOverlay"}],staticClass:"model-content"},[_c('div',{staticClass:"model-content-head"},[_c('h4',[_vm._v("请选择尿素泵")]),_vm._v(" "),_c('p',[_vm._v("不同尿素泵的故障指南不一样哦")])]),_vm._v(" "),_c('div',{staticClass:"model-content-body"},_vm._l((_vm.modelList),function(m){return _c('div',{key:m.ureaId,staticClass:"mode",on:{"click":function($event){return _vm.selectMode(m.ureaId)}}},[_c('span',[_vm._v(_vm._s(m.ureaName))])])}),0)])]),_vm._v(" "),_c('span',{staticClass:"close-btn",on:{"click":function($event){return _vm.selectMode(_vm.modelList[0].ureaId)}}})],1)]),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false}}},[_c('div',{staticClass:"shareTips"},[_c('van-icon',{attrs:{"name":"down"}}),_vm._v(" "),_c('p',[_vm._v("点击右上角分享")])],1)]):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"suspension-box"},[_c('span',[_vm._v("查看排查步骤")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"item-right"},[_c('span',[_vm._v("排查步骤"),_c('em')])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(675);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0672b346_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1274);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3466)
  __webpack_require__(3468)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0672b346"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0672b346_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0672b346_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3467);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("47e9dab8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-dialog.put-que-index{width:89.3%;border-radius:.4rem}.van-dialog.put-que-index .van-dialog__header{padding-top:1.6rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.van-dialog.put-que-index .van-dialog__message{padding:0;font-size:.85rem;line-height:1.35rem;color:#666;margin-top:.6rem;padding-bottom:1.4rem;width:83%;margin-left:8.5%}.van-dialog.put-que-index .van-button--default{height:2.45rem;color:#333}.van-dialog.put-que-index .van-button--default .van-button__text{font-size:.9rem}.van-dialog.put-que-index .van-dialog__confirm{color:#177afa}.list-container .van-cell{padding:0}.list-container .van-cell:after{display:none}.ask-index .van-switch{width:2.2rem;height:1.2rem;border:none}.ask-index .van-switch__node{height:.85rem;width:.85rem;top:.17rem;left:.17rem}.ask-index .van-switch--on .van-switch__node{-webkit-transform:translateX(1rem)!important;-ms-transform:translateX(1rem)!important;transform:translateX(1rem)!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3469);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2586a5fb", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-popup[data-v-0672b346]{overflow:initial}.van-popup--center.van-popup--round[data-v-0672b346]{border-radius:.5rem}.checkbox[data-v-0672b346]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:.8rem;height:.8rem;background:#f4f5f6;border-radius:.1rem;border:.03rem solid #d7d7d7;vertical-align:middle}.checkbox.checked[data-v-0672b346]{border:.03rem solid #177afa}.checkbox.checked[data-v-0672b346]:after{display:block;content:\"\";width:.4rem;height:.4rem;background:#177afa;border-radius:.05rem}[class*=hairline][data-v-0672b346]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-0672b346]{font-family:PingFangSC-Regular,PingFang SC;-webkit-overflow-scrolling:touch}.separate[data-v-0672b346]{width:100%;height:.3rem;background-color:#f4f5f6}.page[data-v-0672b346]{overflow-y:auto;background-color:#fff;padding-bottom:2.45rem}.page.isApp[data-v-0672b346]{padding-bottom:0}.page .msg-dot[data-v-0672b346]{display:inline-block;height:.7rem;min-width:.7rem;text-align:center;border-radius:.35rem;overflow:hidden;background-color:#ff3f3f;vertical-align:middle}.page .msg-dot.dot-pd2[data-v-0672b346]{padding:0 .2rem}.page .msg-dot i[data-v-0672b346]{width:100%;height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-style:normal;font-size:.5rem;color:#fff;font-family:PingFangSC-Regular,PingFang SC}.page .msg-dot.msg-1[data-v-0672b346]{min-width:.4rem;width:.4rem;height:.4rem;border-radius:.2rem}.list-container[data-v-0672b346]{background-color:#f7f8f9}.list-container .item[data-v-0672b346]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:4.2rem}.list-container .item .item-icon[data-v-0672b346]{position:relative;width:2.6rem;height:2.6rem;margin-right:.6rem;margin-left:.6rem}.list-container .item .item-icon .msg-dot[data-v-0672b346]{position:absolute;right:-.45rem;top:-.45rem;min-width:18px;height:18px;padding:0 .25rem;border-radius:9px}.list-container .item .item-icon .msg-dot i[data-v-0672b346]{font-size:.6rem}.list-container .item .item-icon img[data-v-0672b346]{width:100%;height:100%;border-radius:.3rem;overflow:hidden}.list-container .item .item-icon .dot[data-v-0672b346]{position:absolute;top:-.3rem;right:-.3rem;display:inline-block;width:12px;height:12px;border:.05rem solid #fff;border-radius:100%;overflow:hidden;background-color:#ff3f3f}.list-container .item .item-info[data-v-0672b346]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:inherit;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding-right:.6rem;overflow:hidden}.list-container .item .item-info[data-v-0672b346]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px;border-color:#e1e1e1}.list-container .item .item-info .title[data-v-0672b346]{position:relative;width:100%;height:1.2rem;line-height:1.2rem;margin-bottom:.2rem;color:#333;font-size:.85rem;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.list-container .item .item-info .title .time[data-v-0672b346]{position:absolute;right:0;font-size:.65rem;color:#a8a8a8;font-weight:400}.list-container .item .item-info .meta[data-v-0672b346]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:1.05rem;line-height:1.05rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.list-container .item .item-info .meta span[data-v-0672b346]{display:inline-block;font-size:.75rem;color:#666;vertical-align:middle}.list-container .item .item-info .meta .link[data-v-0672b346]{color:#177afa}.list-container .item .item-info .meta .link .link-icon[data-v-0672b346]{width:.3rem;height:.5rem;margin-left:.3rem;vertical-align:initial}.list-container .item .item-info .meta .msg[data-v-0672b346]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden}.list-container .item .item-info .meta .xs-1[data-v-0672b346]{margin-right:.2rem;color:#ff8447}.list-container .item .item-info .meta .num[data-v-0672b346],.list-container .item .item-info .meta .xs-2[data-v-0672b346]{margin-right:.2rem;color:#fb5f5f}.my-question-container[data-v-0672b346]{background-color:#fff}.my-question-container .item .item-info[data-v-0672b346]:before{border-color:#eee}.my-question-container .item .item-info .meta .link[data-v-0672b346]{color:#fb5f5f}.dialogue-container[data-v-0672b346]{background-color:#fff;overflow:hidden}.dialogue-container .item .item-info .detail[data-v-0672b346]{position:relative;width:100%;margin-bottom:.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;white-space:nowrap}.dialogue-container .item .item-info .detail .name[data-v-0672b346]{max-width:6rem;line-height:1.2rem;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;color:#333}.dialogue-container .item .item-info .detail .dialogue-icon[data-v-0672b346]{display:inline-block;width:.8rem;height:.8rem;margin-left:.3rem;overflow:hidden;background:url(" + escape(__webpack_require__(3470)) + ");background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.dialogue-container .item .item-info .detail .answer-icon[data-v-0672b346]{display:inline-block;width:.8rem;height:.8rem;margin-left:.3rem;overflow:hidden;background:url(" + escape(__webpack_require__(1399)) + ");background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.dialogue-container .item .item-info .detail .assistant-icon[data-v-0672b346]{display:inline-block;width:.8rem;height:.8rem;margin-left:.3rem;overflow:hidden;background:url(" + escape(__webpack_require__(3471)) + ");background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.dialogue-container .item .item-info .detail .my-order-tag[data-v-0672b346]{display:inline-block;padding:.2rem .3rem;margin-left:.3rem;line-height:.6rem;background-color:#f3f4f5;border-radius:.1rem;font-size:.6rem;color:#666}.dialogue-container .item .item-info .detail .time[data-v-0672b346]{position:absolute;right:0;line-height:.9rem;font-size:.65rem;color:#a8a8a8}.que-btn[data-v-0672b346]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:1.2rem auto;width:17.55rem;height:2.5rem;border-radius:1.25rem;background-color:#177afa}.que-btn span[data-v-0672b346]{color:#fff;line-height:1;font-size:.9rem}.my-question-popup[data-v-0672b346]{width:auto;height:auto;bottom:1.6rem;left:.4rem;right:.4rem;padding:1.2rem 0 .4rem;background-color:#f8f8f8;box-shadow:0 .2rem .6rem 0 rgba(164,171,191,.2)}.my-question-popup.van-popup--bottom.van-popup--round[data-v-0672b346]{border-radius:.4rem}.my-question-popup .put-btn[data-v-0672b346]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:2.6rem;margin:.2rem .8rem;background:-webkit-gradient(linear,right top,left top,from(#4b97fa),to(#177afa));background:linear-gradient(270deg,#4b97fa,#177afa);box-shadow:0 .2rem .6rem 0 rgba(23,122,250,.3);border-radius:1.3rem}.my-question-popup .put-btn img[data-v-0672b346]{display:inline-block;width:.99rem;height:.99rem;margin-right:.6rem;vertical-align:top}.my-question-popup .put-btn span[data-v-0672b346]{display:inline-block;line-height:.8rem;font-size:.8rem;font-weight:600;color:#fff}.my-question-popup .my-question-list[data-v-0672b346]{margin-top:1.8rem}.my-question-popup .my-question-list .item[data-v-0672b346]{position:relative;display:inline-block;width:33.3%;text-align:center}.my-question-popup .my-question-list .item .icon[data-v-0672b346]{display:inline-block;width:2.4rem;height:2.4rem;margin-bottom:.3rem}.my-question-popup .my-question-list .item .icon .meta[data-v-0672b346]{position:absolute;right:0;top:-.38rem;font-size:.5rem;line-height:.5rem;padding:.2rem;border:.05rem solid #fff;border-radius:.3rem;background-color:#ff3f3f;color:#fff}.my-question-popup .my-question-list .item .icon img[data-v-0672b346]{width:100%;height:100%;vertical-align:top}.my-question-popup .my-question-list .item p[data-v-0672b346]{font-size:.7rem;line-height:1rem;color:#333}.my-question-popup .close-btn[data-v-0672b346]{position:absolute;top:-2.5rem;right:.4rem;width:1.6rem;height:1.6rem}.my-question-popup .close-btn img[data-v-0672b346]{width:100%;height:100%}.my-question-popup .ctrl-box[data-v-0672b346]{margin-top:2rem;padding:0 1.2rem}.my-question-popup .ctrl-box .ctrl[data-v-0672b346]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.7rem}.my-question-popup .ctrl-box .ctrl[data-v-0672b346]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px;border-color:#e1e1e1}.my-question-popup .ctrl-box .ctrl>span[data-v-0672b346]{color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.my-question-popup .ctrl-box .ctrl .right[data-v-0672b346]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.my-question-popup .ctrl-box .ctrl .right span[data-v-0672b346]{color:#666;font:13px/1 PingFangSC-Regular;margin-right:.3rem}.my-question-popup .ctrl-box .ctrl .right img[data-v-0672b346]{width:.3rem;height:.5rem}.ad-popup .layer-content[data-v-0672b346]{position:relative;width:13.95rem;height:16.6rem;border-radius:inherit}.ad-popup .layer-content .ad-pic[data-v-0672b346]{width:100%;height:100%;vertical-align:top;border-radius:inherit;overflow:hidden}.ad-popup .layer-content .close-icon[data-v-0672b346]{display:inline-block;position:absolute;top:-2.6rem;right:-.8rem;width:1.6rem;height:1.6rem;background-image:url(" + escape(__webpack_require__(3472)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.ask-index .ask-btn[data-v-0672b346]{width:6rem;height:1.8rem;text-indent:.45rem;position:fixed;z-index:20;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);bottom:3.45rem;background:-webkit-gradient(linear,right top,left top,from(#4b97fa),to(#177afa));background:linear-gradient(270deg,#4b97fa,#177afa);box-shadow:0 4px 12px 0 rgba(23,122,250,.3);border-radius:1.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#fff;font:14px/1 PingFangSC-Regular}.ask-index .ask-btn img[data-v-0672b346]{width:.3rem;height:.5rem;margin-left:.3rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/que_icon_1.9f08a35.svg";module.exports = __webpack_require__.p + "static/img/qa_assistant_icon.44ae5cd.svg";module.exports = __webpack_require__.p + "static/img/close_icon.157169b.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(259);
var _switch = _interopRequireDefault(__webpack_require__(260));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
__webpack_require__(206);
var _pullRefresh = _interopRequireDefault(__webpack_require__(207));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _footTab = _interopRequireDefault(__webpack_require__(176));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(142));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
    footTab: _footTab.default
  }, _popup.default.name, _popup.default), _dialog.default.name, _dialog.default), _pullRefresh.default.name, _pullRefresh.default), _list.default.name, _list.default), _cell.default.name, _cell.default), _switch.default.name, _switch.default), _toast.default.name, _toast.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      userId: Number(localStorage.getItem('userId')),
      text: '',
      wxOpenFlag: 0,
      // 是否开启问答通知（是否关注推送公众号）
      refreshing: false,
      isShowAd: false,
      // 问答广告
      adInfo: {},
      qaSetFlag: 0,
      // 是否已设置问答
      pageNum: 1,
      noQuestionVos: [],
      // 我的提问列表
      msgNum: 0,
      // 我的问答未读消息数
      dialogMsg: {},
      myQuestionList: [],
      // 我的提问列表
      questionList: [],
      // 会话列表
      recommendInfos: [],
      // 推荐问题列表
      queListLoading: false,
      //
      queFinished: false,
      finished: false,
      showMyQuestionPopup: false,
      // 我的问答弹框
      qaTools: [{
        name: '我的接单',
        icon: __webpack_require__(3473),
        type: 2
      }, {
        name: '我的提问',
        icon: __webpack_require__(3474),
        type: 1
      }, {
        name: '加速卡',
        icon: __webpack_require__(797),
        type: 4
      }],
      haveNewCardNum: 0,
      lastQaInfo: {},
      acceptOrderNotice: false,
      // 接单提醒是否开启
      acceptTime: '',
      acceptMode: 0
    };
  },
  watch: {
    '_MQTT.client.connected': function _MQTTClientConnected(val) {
      if (!val) {
        // 重连mqtt
        if (!this._MQTT.client.connected && !this._MQTT.client.reconnecting) {
          this._MQTT.client.reconnect();
        }
      }
    },
    'msgNum': function msgNum(val, oldVal) {
      console.log('val', val);
      this.$store.dispatch('getQaMsgNum', val);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'qaMsgNum',
          extra: {
            msgNum: Number(val)
          }
        });
      }
    }
  },
  created: function created() {
    var _this = this;
    this.queryText();
    this.getAdvert();
    this.myQuestionData();
    this.getWxOpenFlag();
    this.getHomePageMsgNum();
    this.getLastAaInfo();
    this.canGainAcceleratorCard();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      console.log(_this._MQTT);
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        console.log('message' + JSON.stringify(message));
        var dialogueVo = message.dialogueVo;
        dialogueVo.timeStamp = new Date(_this._Util.dateFormat(new Date().getTime(), 'yyyy-MM-dd') + ' ' + dialogueVo.createTimeValue).getTime();
        _this.msgNum = message.num || 0;
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
        // 更新当前会话消息
        if (_this.questionList.length > 0) {
          _this.questionList.forEach(function (item, index) {
            if (dialogueVo && item.id === dialogueVo.id) {
              _this.questionList.splice(index, 1);
              _this.questionList.unshift(dialogueVo);
            }
          });
        }
        var haveInfo = _this.questionList.filter(function (item) {
          if (item.id === dialogueVo.id) {
            return item.id;
          }
        });
        if (!haveInfo) {
          _this.questionList.unshift(dialogueVo);
        }
      });

      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问答首页 发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  mounted: function mounted() {
    var _this2 = this;
    var that = this;
    that.shareConfig();
    // 监听app点击顶部提问按钮，打开微信端提问页面
    api.addEventListener({
      name: 'putQuestion'
    }, function (ret, err) {
      that.putQuestion();
    });
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this2.shareConfig();
          _this2.getWxOpenFlag();
        });
      }, 300);
    }
  },
  methods: {
    /**
     * 开启/关闭接单提醒
     */
    changeOpenNoticeFlag: function changeOpenNoticeFlag() {
      var _this3 = this;
      this._Util.post(this._Api.CHANGE_OPEN_NOTICE_FLAG, {
        openNoticeFlag: this.acceptOrderNotice ? 1 : 0
      }, function (data) {
        _this3.getWxOpenFlag();
      }, function () {}, this, true);
    },
    /**
     * 刷新页面
     */
    refreshPage: function refreshPage() {
      this.getHomePageMsgNum();
      this.myQuestionData();
      this.getLastAaInfo();
      this.getWxOpenFlag();
      this.canGainAcceleratorCard();
    },
    /**
     * 获取微信通知开启状态
     */
    getWxOpenFlag: function getWxOpenFlag() {
      var _this4 = this;
      this._Util.post(this._Api.GET_WX_OPEN_FLAG, {}, function (data) {
        var noticeData = data;
        _this4.wxOpenFlag = noticeData.wxOpenFlag;
        _this4.acceptOrderNotice = noticeData.openNoticeFlag === 1; // 是否开启接单提醒
        _this4.acceptTime = noticeData.time;
        _this4.acceptMode = noticeData.ordersMode; // 是否开启接单模式
      }, function () {}, this, true);
    },
    /**
     * 获取我的问答入口文案
     */
    queryText: function queryText() {
      var _this5 = this;
      var params = {};
      if (this._Util.isApp()) {
        params.source = 'app';
      } else {
        params.source = 'weixin';
      }
      params.sys_uid = localStorage.getItem('userId');
      params.code = 'my_ask_text';
      this._Util.post(this._Api.QUERY_NOTICE_AND_QRCODE, params, function (data) {
        _this5.text = data.dataList[0].text || '立即提问';
      }, function () {}, this);
    },
    /**
     * 获取首页问答消息总数
     */
    getHomePageMsgNum: function getHomePageMsgNum() {
      var _this6 = this;
      this._Util.post(this._Api.GET_HOME_PAGE_MSG_NUM, {}, function (data) {
        _this6.msgNum = data + '';
      }, function () {}, this, true);
    },
    /**
     * 获取问题广场最新一条数据
     */
    getLastAaInfo: function getLastAaInfo() {
      var _this7 = this;
      this._Util.post(this._Api.GET_LAST_QA_INFO, {}, function (data) {
        _this7.lastQaInfo = data;
      }, function () {}, this, true);
    },
    /**
     * 获取是否有加速卡可以领取
     */
    canGainAcceleratorCard: function canGainAcceleratorCard() {
      var _this8 = this;
      this._Util.post(this._Api.CAN_GAIN_ACCELERATOR_CARD, {}, function (data) {
        _this8.haveNewCardNum = data;
      }, function () {}, this, true);
    },
    /**
     * 我的问答跳转页面
     */
    jumpPage: function jumpPage(item) {
      if (item.type === 1 || item.type === 2) {
        // 我的提问和我的接单
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'allProblems',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/allProblems?type=").concat(item.type)
            }
          });
        } else {
          this.$router.push({
            name: 'allProblems',
            query: {
              type: item.type
            }
          });
        }
      } else if (item.type === 3) {
        // 问答设置
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'QAndASettings',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/QAndASettings")
            }
          });
        } else {
          this.$router.push({
            name: 'QAndASettings'
          });
        }
      } else if (item.type === 4) {
        // 领取加速卡
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'acceleratorCard',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/acceleratorCard")
            }
          });
        } else {
          this.$router.push({
            name: 'acceleratorCard'
          });
        }
      }
    },
    /**
     * 点击问题广场，判断是否开启问答通知，
     * 未开启，跳转开启问答页
     * 开启，跳转问题广场
     */
    jumpProblemSquare: function jumpProblemSquare() {
      var _this9 = this;
      if (this.wxOpenFlag === 0) {
        _dialog.default.confirm({
          title: '开启问答',
          message: '开启后可查看问题并接单',
          confirmButtonText: '去开启',
          className: 'put-que-index'
        }).then(function () {
          if (_this9._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'openOrderSettings',
                url: "".concat(location.origin, "/v2/questionsAndAnswers/openOrderSettings")
              }
            });
          } else {
            _this9.$router.push({
              name: 'openOrderSettings'
            });
          }
        }).catch(function (err) {
          _this9.tabSwitch(0);
          console.log('取消开启' + err);
        });
      } else {
        if (!this.acceptMode) {
          // 如果没有开启接单模式
          _dialog.default.confirm({
            title: '开启接单模式',
            message: '帮助别人解决问题，赢现金星豆',
            confirmButtonText: '立即开启',
            className: 'put-que-index'
          }).then(function () {
            _this9._Util.post(_this9._Api.SAVE_SQUARE_NOTICE, {
              ordersMode: 1
            }, function (data) {
              (0, _toast.default)({
                message: '已开启接单模式',
                duration: 1500
              });
              _this9.acceptMode = true;
              if (!_this9.acceptOrderNotice) {
                _this9._Util.post(_this9._Api.CHANGE_OPEN_NOTICE_FLAG, {
                  openNoticeFlag: 1
                }, function (data) {
                  _this9.acceptOrderNotice = true;
                }, function () {}, _this9, true);
              }
            }, function () {}, _this9);
          }).catch(function (err) {
            console.log('取消开启' + err);
          });
          return;
        }
        this.lastQaInfo.feedAssistantCount = 0;
        this.qaUserLog();
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'problemSquare',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/problemSquare")
            }
          });
        } else {
          this.$router.push({
            name: 'problemSquare'
          });
        }
      }
    },
    qaUserLog: function qaUserLog() {
      this._Util.post(this._Api.QA_USERLOG_ADD, {}, function (data) {}, function () {}, this);
    },
    /**
     * 获取我的问答列表（包含两组列表、未被接单问题列表/会话列表）、采纳率、是否开启问答通知、数字角标
     */
    myQuestionData: function myQuestionData() {
      var _this0 = this;
      if (this.refreshing) {
        this.pageNum = 1;
        this.questionList = [];
        this.queFinished = false;
        this.refreshing = false;
      }
      this._Util.post(this._Api.GET_RECOMMAND_INFOS, {
        pageNum: this.pageNum,
        pageSize: 10
      }, function (data) {
        if (_this0.pageNum === 1) {
          _this0.questionList = [];
          _this0.myQuestionList = [];
          _this0.msgNum = data.msgNum + '';
        }
        var list = data.dialogInfos && data.dialogInfos.dataList || [];
        _this0.myQuestionList = data.noQuestions || [];
        _this0.recommendInfos = data.recommendInfos || [];
        _this0.questionList = _this0.questionList.concat(list);
        _this0.queListLoading = false;
        _this0.pageNum++;
        if (list.length < 10) {
          _this0.queFinished = true;
        }
      }, function () {}, this);
    },
    /**
     * 我的问答弹框
     */
    openQaTools: function openQaTools() {
      this.showMyQuestionPopup = true;
    },
    /**
     * 我要提问
     */
    putQuestion: function putQuestion(type) {
      var _this1 = this;
      if (type === 'free') {
        this._Util.sensorsCollect('element_click', {
          $element_name: '免费提问',
          $element_content: '免费提问',
          $element_class_name: 'ask-btn',
          $element_type: 'div',
          $element_target_url: "".concat(location.origin, "/v2/questionsAndAnswers/putQuestion0"),
          $url: window.location.href,
          $title: '问答',
          moudle_type: '问答',
          correlation_id: '',
          operation_page: '问答'
        });
      }
      this._Util.post(this._Api.CAN_NEW_QUESTION, {}, function (data) {
        if (data.code === 1) {
          _this1.showMyQuestionPopup = false;
          if (_this1._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'putQuestion0',
                url: "".concat(location.origin, "/v2/questionsAndAnswers/putQuestion0")
              }
            });
          } else {
            _this1.$router.push({
              name: 'putQuestion0'
            });
          }
        } else {
          _dialog.default.confirm({
            title: '提示',
            message: '您有1条问题没有采纳，请采纳后再发起提问',
            confirmButtonText: '去采纳',
            className: 'put-que-index'
          }).then(function () {
            _this1.jumpPage({
              type: 1
            });
          }).catch(function () {});
        }
      }, function () {}, this, true);
    },
    /**
     * 查看接单进度
     */
    viewOrderProgress: function viewOrderProgress(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'questionProgress',
            url: "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(item.questionNo)
          }
        });
      } else {
        location.href = "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(item.questionNo);
      }
      this._Util.sensorsCollect('click_question', {
        operation_page: '问答',
        question_no: item.questionNo,
        question_status: '待接单',
        communic_mode: item.communicMode === 1 ? '文字' : '电话',
        url: location.href,
        title: '问答',
        moudle_type: '问答',
        correlation_id: ''
      });
    },
    /**
     * 订单详情（首页推荐列表）
     */
    orderDetail: function orderDetail(item) {
      var _this10 = this;
      if (item.feedType === 4) {
        // 问答小助手
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'qaAssistant',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/qaAssistant")
            }
          });
        } else {
          this.$router.push({
            name: 'qaAssistant'
          });
        }
      } else {
        if (this.wxOpenFlag === 0) {
          _dialog.default.confirm({
            title: '开启问答',
            message: '开启后可查看问题并接单',
            confirmButtonText: '去开启',
            className: 'put-que-index'
          }).then(function () {
            if (_this10._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'openOrderSettings',
                  url: "".concat(location.origin, "/v2/questionsAndAnswers/openOrderSettings")
                }
              });
            } else {
              _this10.$router.push({
                name: 'openOrderSettings'
              });
            }
          }).catch(function (err) {
            _this10.tabSwitch(0);
            console.log('取消开启' + err);
          });
        } else {
          if (!this.acceptMode) {
            // 如果没有开启接单模式
            _dialog.default.confirm({
              title: '开启接单模式',
              message: '帮助别人解决问题，赢现金星豆',
              confirmButtonText: '立即开启',
              className: 'put-que-index'
            }).then(function () {
              if (_this10._Util.isApp()) {
                api.sendEvent({
                  name: 'acOpenNewFrm',
                  extra: {
                    name: 'QAndASettings',
                    url: "".concat(location.origin, "/v2/questionsAndAnswers/QAndASettings")
                  }
                });
              } else {
                _this10.$router.push({
                  name: 'QAndASettings'
                });
              }
            }).catch(function (err) {
              console.log('取消开启' + err);
            });
            return;
          }
          if (this._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'orderDetails',
                url: "".concat(location.origin, "/v2/questionsAndAnswers/orderDetails?questionNo=").concat(item.questionNo)
              }
            });
          } else {
            this.$router.push({
              name: 'orderDetails',
              query: {
                questionNo: item.questionNo
              }
            });
          }
        }
      }
    },
    /**
     * 进入问题会话，问答下助手和问题接单详情
     */
    toConCversation: function toConCversation(item) {
      item.msgNum = 0;
      if (item.feedType === 4) {
        // 问答小助手
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'qaAssistant',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/qaAssistant")
            }
          });
        } else {
          this.$router.push({
            name: 'qaAssistant'
          });
        }
      } else {
        // 问题会话
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'questionProgress' + new Date().getTime(),
              url: "".concat(location.origin, "/v2/questionsAndAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id)
            }
          });
        } else {
          this.$router.push({
            name: 'conversation',
            query: {
              questionNo: item.questionNo,
              id: item.id
            }
          });
        }
      }
    },
    /**
     * 显示问答广告
     */
    getAdvert: function getAdvert() {
      var _this11 = this;
      this._Util.post(this._Api.POST_ADVERT_POSITION, {
        signType: 47
      }, function (data) {
        if (data.advertId) {
          _this11.adInfo = data;
          if (data.advertImg && data.advertImg !== '') {
            _this11.isShowAd = true;
          }
        }
      }, function () {}, this);
    },
    /**
     * 关闭问答首页广告
     */
    closeAd: function closeAd() {
      this.isShowAd = false;
    },
    /**
     * 打开问答首页广告
     */
    openAd: function openAd(url) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'qaAd',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '卡修宝典-问答服务首页',
        desc: '修车难题实时解答，比在群里问更高效哦~',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          // console.log('app')
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(239);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0406ea88_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(781);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(1975)
  __webpack_require__(1977)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0406ea88"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0406ea88_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0406ea88_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_msgDialog_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1976);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("19245b92", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "*{font-family:PingFangSC-Regular,PingFang SC}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(1978);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1041834a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".fade-enter-active[data-v-0406ea88],.fade-leave-active[data-v-0406ea88]{-webkit-transition:all .3s linear;transition:all .3s linear}.msg-dialog.fade-enter[data-v-0406ea88],.msg-dialog.fade-leave-to[data-v-0406ea88]{top:-1rem}.msg-dialog[data-v-0406ea88]{position:fixed;width:100%;top:0;left:0;z-index:9999999}.msg-dialog .msg-content[data-v-0406ea88]{padding:.5rem;margin:.5rem .6rem;height:3.7rem;border-radius:.4rem;background-color:#e5ecfa;box-shadow:0 .2rem .4rem 0 hsla(223,7%,62%,.3)}.msg-dialog .msg-content .top[data-v-0406ea88]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.3rem}.msg-dialog .msg-content .top .avatar[data-v-0406ea88]{width:1.2rem;height:1.2rem;vertical-align:top;border-radius:.3rem;overflow:hidden}.msg-dialog .msg-content .top .name[data-v-0406ea88]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.4rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;line-height:1rem;color:#666}.msg-dialog .msg-content .top .time[data-v-0406ea88]{line-height:.83rem;font-size:.6rem;color:#999}.msg-dialog .msg-content .content[data-v-0406ea88]{height:1.2rem;font-size:.85rem;line-height:1.2rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#333}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    msg: {
      type: Object,
      default: function _default() {}
    }
  },
  data: function data() {
    return {
      showMsg: false,
      timer: null,
      startY: null
    };
  },
  watch: {
    'msg': function msg(val) {
      var _this = this;
      this.showMsg = false;
      clearTimeout(this.timer);
      if (val.id) {
        setTimeout(function () {
          _this.showMsg = true;
        }, 300);
      }
      this.timer = setTimeout(function () {
        _this.showMsg = false;
      }, 10 * 1000);
    }
  },
  methods: {
    touchStart: function touchStart(e) {
      this.startY = e.touches[0].clientY;
    },
    touchEnd: function touchEnd(e) {
      var endY = e.changedTouches[0].clientY;
      if (this.startY - endY >= 30) {
        this.showMsg = false;
      }
    },
    /**
     * 进入问题会话
     */
    toConCversation: function toConCversation(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'questionProgress' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/questionsAndAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id)
          }
        });
      } else {
        this.$router.push({
          name: 'conversation',
          query: {
            questionNo: item.questionNo,
            id: item.id
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"fade"}},[(_vm.showMsg)?_c('div',{staticClass:"msg-dialog",on:{"touchstart":function($event){return _vm.touchStart($event)},"touchend":function($event){return _vm.touchEnd($event)}}},[_c('div',{staticClass:"msg-content",on:{"click":function($event){return _vm.toConCversation(_vm.msg)}}},[_c('div',{staticClass:"top"},[(_vm.msg.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":_vm.msg.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(_vm.msg.uname))]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm.msg.createTimeValue))])]),_vm._v(" "),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.msg.messageContent))])])]):_vm._e()])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/my_que_icon_1.7809db6.png";module.exports = __webpack_require__.p + "static/img/my_que_icon_2.e805977.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page ask-index",class:{'isApp': _vm._Util.isApp()}},[_c('van-pull-refresh',{staticStyle:{"min-height":"calc(100%)"},attrs:{"head-height":"80"},on:{"refresh":function($event){return _vm.refreshPage()}},model:{value:(_vm.refreshing),callback:function ($$v) {_vm.refreshing=$$v},expression:"refreshing"}},[_c('div',{staticClass:"list-container"},[_c('div',{staticClass:"item",on:{"click":function($event){return _vm.openQaTools()}}},[_c('div',{staticClass:"item-icon"},[_c('img',{attrs:{"src":__webpack_require__(3475)}})]),_vm._v(" "),_c('div',{staticClass:"item-info hairline"},[_c('h3',{staticClass:"title"},[_vm._v("我的问答")]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"link"},[_vm._v(_vm._s(_vm.text)),_c('img',{staticClass:"link-icon",attrs:{"src":__webpack_require__(118)}})])])])]),_vm._v(" "),_c('div',{staticClass:"item",on:{"click":function($event){return _vm.jumpProblemSquare()}}},[_c('div',{staticClass:"item-icon"},[_c('img',{attrs:{"src":__webpack_require__(3476)}}),_vm._v(" "),(_vm.lastQaInfo.feedAssistantCount > 0)?_c('span',{staticClass:"dot"}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"item-info"},[_c('h3',{staticClass:"title"},[_vm._v("问题广场 "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.isToday(_vm.lastQaInfo.timeStamp) ? _vm._Util.dateFormat(_vm.lastQaInfo.timeStamp, 'hh:mm') : _vm._Util.dateFormat(_vm.lastQaInfo.timeStamp, 'MM/dd')))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(_vm.lastQaInfo.feedCount > 0)?_c('span',{staticClass:"num"},[_vm._v("["+_vm._s(_vm.lastQaInfo.feedCount)+" 问]")]):_vm._e(),_c('span',{staticClass:"msg"},[_vm._v(_vm._s(_vm.lastQaInfo.feedContent))])])])])]),_vm._v(" "),_c('div',{staticClass:"list-container my-question-container"},_vm._l((_vm.myQuestionList),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.viewOrderProgress(item)}}},[_c('div',{staticClass:"item-icon"},[(item.feedIcon)?_c('img',{attrs:{"src":item.feedIcon}}):_c('img',{attrs:{"src":__webpack_require__(56)}})]),_vm._v(" "),_c('div',{staticClass:"item-info hairline"},[_c('h3',{staticClass:"title"},[_vm._v(_vm._s(item.feedContent))]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"link"},[_vm._v("派单中，查看进度"),_c('img',{staticClass:"link-icon",attrs:{"src":__webpack_require__(3477)}})])])])])}),0),_vm._v(" "),(_vm.recommendInfos.length > 0)?_c('div',{staticClass:"list-container dialogue-container"},_vm._l((_vm.recommendInfos),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.orderDetail(item)}}},[_c('div',{staticClass:"item-icon"},[(item.feedIcon)?_c('img',{attrs:{"src":item.feedIcon}}):_c('img',{attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),(item.feedAssistantCount > 0)?_c('div',{staticClass:"msg-dot"},[_c('i',[_vm._v(_vm._s(item.feedAssistantCount))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"item-info hairline"},[_c('div',{staticClass:"detail"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.feedTile))]),(item.feedType === 1)?_c('span',{staticClass:"dialogue-icon"}):_vm._e(),(item.feedType === 4)?_c('span',{staticClass:"assistant-icon"}):_vm._e(),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.isToday(item.timeStamp) ? _vm._Util.dateFormat(item.timeStamp, 'hh:mm') : _vm._Util.dateFormat(item.timeStamp, 'MM/dd')))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(item.moneyRewordNum && item.moneyRewordNum > 0)?_c('span',{staticClass:"xs-2"},[_vm._v("[悬赏"+_vm._s(item.moneyRewordNum)+"元]")]):_vm._e(),(item.beanRewordNum && item.beanRewordNum > 0)?_c('span',{staticClass:"xs-1"},[_vm._v("[悬赏星豆]")]):_vm._e(),_c('span',{staticClass:"msg"},[_vm._v(_vm._s(item.feedContent))])])])])}),0):_vm._e(),_vm._v(" "),(_vm.questionList.length > 0)?_c('div',{staticClass:"list-container dialogue-container"},[_c('van-list',{attrs:{"finished":_vm.queFinished},on:{"load":function($event){return _vm.myQuestionData()}},model:{value:(_vm.queListLoading),callback:function ($$v) {_vm.queListLoading=$$v},expression:"queListLoading"}},_vm._l((_vm.questionList),function(item,index){return _c('van-cell',{key:index,staticClass:"square-que-item",on:{"click":function($event){return _vm.toConCversation(item)}}},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-icon"},[(item.answerHeadImgUrl)?_c('img',{attrs:{"src":item.answerHeadImgUrl}}):_c('img',{attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),(item.msgNum > 0)?_c('div',{staticClass:"msg-dot"},[_c('i',[_vm._v(_vm._s(item.msgNum))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"item-info hairline"},[_c('div',{staticClass:"detail"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.uname))]),(item.feedType === 2 && !item.mySupport)?_c('span',{staticClass:"answer-icon"}):_vm._e(),(item.feedType === 4)?_c('span',{staticClass:"assistant-icon"}):_vm._e(),(item.mySupport)?_c('span',{staticClass:"my-order-tag"},[_vm._v("我的接单")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.isToday(item.timeStamp) ? _vm._Util.dateFormat(item.timeStamp, 'hh:mm') : _vm._Util.dateFormat(item.timeStamp, 'MM/dd')))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"msg"},[_vm._v(_vm._s(item.messageContent))])])])])])}),1)],1):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"ask-btn",style:({'bottom': _vm._Util.isApp() ? '1rem' : '3.45rem'}),on:{"click":function($event){return _vm.putQuestion('free')}}},[_vm._v("免费提问"),_c('img',{attrs:{"src":__webpack_require__(3478),"alt":""}})]),_vm._v(" "),_c('van-popup',{staticClass:"ad-popup",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.isShowAd),callback:function ($$v) {_vm.isShowAd=$$v},expression:"isShowAd"}},[_c('div',{staticClass:"layer-content"},[_c('span',{staticClass:"close-icon",on:{"click":function($event){return _vm.closeAd()}}}),_vm._v(" "),_c('img',{staticClass:"ad-pic",attrs:{"src":_vm.adInfo.advertImg},on:{"click":function($event){return _vm.openAd(_vm.adInfo.advertUrl)}}})])]),_vm._v(" "),_c('van-popup',{staticClass:"my-question-popup",attrs:{"round":true,"lazy-render":false,"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.showMyQuestionPopup),callback:function ($$v) {_vm.showMyQuestionPopup=$$v},expression:"showMyQuestionPopup"}},[_c('div',{staticClass:"layer-content"},[_c('div',{staticClass:"put-btn",on:{"click":function($event){return _vm.putQuestion()}}},[_c('img',{attrs:{"src":__webpack_require__(3479)}}),_c('span',[_vm._v("立即提问")])]),_vm._v(" "),_c('div',{staticClass:"my-question-list"},_vm._l((_vm.qaTools),function(item,index){return _c('div',{key:index,staticClass:"item",on:{"click":function($event){return _vm.jumpPage(item)}}},[_c('div',{staticClass:"icon"},[(item.type === 4 && _vm.haveNewCardNum > 0)?_c('span',{staticClass:"meta"},[_vm._v("免费领取")]):_vm._e(),_vm._v(" "),_c('img',{attrs:{"src":item.icon}})]),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name))])])}),0),_vm._v(" "),_c('span',{staticClass:"close-btn",on:{"click":function($event){_vm.showMyQuestionPopup = false}}},[_c('img',{attrs:{"src":__webpack_require__(263)}})]),_vm._v(" "),_c('div',{staticClass:"ctrl-box"},[_c('div',{staticClass:"ctrl hairline"},[_c('span',[_vm._v("接单提醒")]),_vm._v(" "),_c('div',{staticClass:"right"},[_c('span',[_vm._v(_vm._s(_vm.acceptOrderNotice ? '已开启' : (_vm.acceptMode ? '3天内不再提醒' : '未开启')))]),_vm._v(" "),_c('van-switch',{attrs:{"active-color":"#177AFA","inactive-color":"#C2C8D0"},on:{"input":function($event){return _vm.changeOpenNoticeFlag()}},model:{value:(_vm.acceptOrderNotice),callback:function ($$v) {_vm.acceptOrderNotice=$$v},expression:"acceptOrderNotice"}})],1)]),_vm._v(" "),_c('div',{staticClass:"ctrl hairline",on:{"click":function($event){return _vm.jumpPage({type: 3})}}},[_c('span',[_vm._v("接单提醒时间")]),_vm._v(" "),_c('div',{staticClass:"right"},[(_vm.acceptTime && _vm.acceptOrderNotice)?_c('span',{staticStyle:{"color":"#177AFA"},on:{"click":function($event){return _vm.jumpPage({type: 3})}}},[_vm._v(_vm._s(_vm.acceptTime))]):_c('span',[_vm._v("去设置")]),_vm._v(" "),_c('img',{attrs:{"src":__webpack_require__(794),"alt":""}})])])])])]),_vm._v(" "),(!_vm._Util.isApp() && !_vm._Util.isMiniApp())?_c('footTab',{attrs:{"active-flag":"quesAns"}}):_vm._e(),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/que_top_icon_1.ed801cf.png";module.exports = __webpack_require__.p + "static/img/que_top_icon_2.fd5abb3.png";module.exports = __webpack_require__.p + "static/img/arrow_icon_red.bccf5f6.png";module.exports = __webpack_require__.p + "static/img/arror_white.850a6a1.png";module.exports = __webpack_require__.p + "static/img/put_icon.f8229f4.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(676);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f8d6a552_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1275);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3480)
  __webpack_require__(3482)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-f8d6a552"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f8d6a552_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f8d6a552_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_allProblems_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3481);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("095752ea", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-cell:after{display:none}.que-content .van-pull-refresh{overflow:auto}.que-content .que-list .van-list__finished-text,.que-content .que-list .van-list__placeholder{margin-left:-.6rem}.que-content .van-overlay{background-color:rgba(0,0,0,.3)}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3483);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("74bcb282", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-f8d6a552]{font-family:PingFangSC-Regular,PingFang SC}[class*=hairline][data-v-f8d6a552]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.separate[data-v-f8d6a552]{width:100%;height:.3rem;background-color:#f4f5f6}.page[data-v-f8d6a552]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.page[data-v-f8d6a552],.que-type[data-v-f8d6a552]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.que-type[data-v-f8d6a552]{height:2.25rem;padding:0 .1rem}.que-type[data-v-f8d6a552]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.que-type span[data-v-f8d6a552]{position:relative;height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .7rem;font-size:.9rem;color:#333}.que-type span.active[data-v-f8d6a552]{color:#177afa;font-weight:600}.que-type span.active[data-v-f8d6a552]:after{position:absolute;bottom:0;left:50%;margin-left:-.6rem;display:inline-block;content:\"\";width:1.2rem;height:.15rem;border-radius:.1rem;background-color:#177afa}.que-top[data-v-f8d6a552]{position:relative}.que-top .meta-wrap[data-v-f8d6a552]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3.45rem;padding:0 .8rem}.que-top .meta-wrap .meta[data-v-f8d6a552]{width:3.8rem}.que-top .meta-wrap .meta span[data-v-f8d6a552]{display:block;line-height:1;font-size:.6rem;color:#999}.que-top .meta-wrap .meta span.num[data-v-f8d6a552]{margin-top:1rem;margin-bottom:.25rem;line-height:1rem;font-size:1rem;font-weight:600;color:#333}.que-top .meta-wrap .meta span em[data-v-f8d6a552]{line-height:.6rem;font-size:.6rem;font-weight:600}.que-top .filter[data-v-f8d6a552]{position:relative}.que-top .filter .filter-btn[data-v-f8d6a552]{position:absolute;bottom:.6rem;right:.6rem;font-size:.7rem;color:#177afa;line-height:1rem}.que-top .filter .filter-btn .filter-icon[data-v-f8d6a552]{display:inline-block;width:.65rem;height:.63rem;margin-right:.35rem;margin-top:-.15rem;background-image:url(" + escape(__webpack_require__(1392)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;vertical-align:middle}.que-top .filter .filter-box .filter-list[data-v-f8d6a552]{position:absolute;top:1rem;right:.6rem;width:7.5rem;padding:.1rem 0;border-radius:.4rem;background-color:#fff;overflow:hidden;z-index:1002}.que-top .filter .filter-box .filter-list .filter-item[data-v-f8d6a552]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.1rem;padding:0 .6rem 0 1rem}.que-top .filter .filter-box .filter-list .filter-item span[data-v-f8d6a552]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;line-height:1rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.que-top .filter .filter-box .filter-list .filter-item.selected[data-v-f8d6a552]:after{display:inline-block;content:\"\";width:.7rem;height:.5rem;background-image:url(" + escape(__webpack_require__(173)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.null-result[data-v-f8d6a552]{margin-top:2rem;margin-left:-.6rem;text-align:center;color:#999;font-size:.7rem}.que-container[data-v-f8d6a552]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.que-content[data-v-f8d6a552]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.que-list[data-v-f8d6a552]{position:relative;padding-left:.6rem;overflow-y:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.que-list .que-item[data-v-f8d6a552]{position:relative;padding:.6rem .6rem .6rem 0}.que-list .que-item[data-v-f8d6a552]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.que-list .que-item .item-cell[data-v-f8d6a552]{line-height:1}.que-list .que-item .item-cell span[data-v-f8d6a552]{display:inline-block;margin-right:.6rem}.que-list .que-item .item-cell .status[data-v-f8d6a552]{line-height:1.05rem;font-size:.75rem;color:#999}.que-list .que-item .item-cell .status.status1[data-v-f8d6a552]{color:#fb5f5f}.que-list .que-item .item-cell .time[data-v-f8d6a552]{position:absolute;top:0;right:0;margin-right:0;font-size:.65rem;color:#999;line-height:1.05rem}.que-list .que-item .item-cell .tag[data-v-f8d6a552]{margin-right:.6rem;font-size:.65rem;color:#999;line-height:.9rem}.que-list .que-item .item-title[data-v-f8d6a552]{margin-top:.4rem;margin-bottom:.2rem;font-size:.9rem;font-weight:600;color:#333;line-height:1.25rem;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.order-list[data-v-f8d6a552]{position:relative;overflow-y:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.order-list .order-item[data-v-f8d6a552]{padding:0 0 0 3.8rem;height:4.2rem}.order-list .order-item .van-cell__value[data-v-f8d6a552]{overflow:initial}.order-list .order-item .avatar[data-v-f8d6a552]{position:absolute;top:.8rem;left:-3.2rem;width:2.6rem;height:2.6rem;border-radius:.3rem;overflow:hidden}.order-list .order-item .info[data-v-f8d6a552]{height:100%;padding-right:.6rem;position:relative;overflow:hidden}.order-list .order-item .info[data-v-f8d6a552]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.order-list .order-item .info .item-cell[data-v-f8d6a552]{margin:.9rem 0 .2rem}.order-list .order-item .info .item-cell .name[data-v-f8d6a552]{max-width:4rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.85rem;line-height:1.2rem;color:#333}.order-list .order-item .info .item-cell .status[data-v-f8d6a552]{position:absolute;top:1.15rem;right:.6rem;font-size:.65rem;line-height:.9rem;color:#a2a2a2}.order-list .order-item .info .item-cell .status.status1[data-v-f8d6a552]{color:#fb5f5f}.order-list .order-item .info .title[data-v-f8d6a552]{font-size:.75rem;line-height:1.05rem;color:#666;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.popup-container[data-v-f8d6a552]{width:16.35rem}.popup-container.vip-popup[data-v-f8d6a552]{text-align:center}.popup-container.vip-popup img[data-v-f8d6a552]{display:inline-block;width:3rem;margin-bottom:1rem;vertical-align:top}.popup-container.vip-popup p[data-v-f8d6a552]{font-size:.9rem}.popup-container .popup-content[data-v-f8d6a552]{padding:1.4rem 1rem}.popup-container .popup-toolbar[data-v-f8d6a552]{width:100%;-ms-flex-align:center}.popup-container .popup-toolbar[data-v-f8d6a552],.popup-container .popup-toolbar span[data-v-f8d6a552]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.popup-container .popup-toolbar span[data-v-f8d6a552]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem;color:#333}.popup-container .popup-toolbar span[data-v-f8d6a552]:before{top:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.popup-container .popup-toolbar span.confirm-btn[data-v-f8d6a552]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top[data-v-f8d6a552]{height:2.75rem;background-color:#f6f6f6;border-radius:.5rem .5rem 0 0}.popup-container .popup-toolbar.popup-toolbar-top[data-v-f8d6a552]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-toolbar.popup-toolbar-top span[data-v-f8d6a552]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding:0 .8rem;font-size:.7rem;color:#666}.popup-container .popup-toolbar.popup-toolbar-top span.confirm-btn[data-v-f8d6a552]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top .title[data-v-f8d6a552]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;text-align:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-f8d6a552]{position:relative;width:100%;height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-f8d6a552]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(311);
var _overlay = _interopRequireDefault(__webpack_require__(199));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
__webpack_require__(206);
var _pullRefresh = _interopRequireDefault(__webpack_require__(207));
var _vant = __webpack_require__(12);
var _msgDialog = _interopRequireDefault(__webpack_require__(142));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _pullRefresh.default.name, _pullRefresh.default), _list.default.name, _list.default), _cell.default.name, _cell.default), _overlay.default.name, _overlay.default), _popup.default.name, _popup.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      dialogMsg: {},
      activeType: 1,
      showFilterMask: false,
      // 筛选层
      queFilterStatus: 0,
      // 我的提问筛选
      orderFilterStatus: 0,
      // 我的接单筛选
      filterStatusText: '全部',
      cardFlag: localStorage.getItem('cardFlag') || null,
      pageNum: 1,
      // 提问当前页
      unAcceptNum: 0,
      acceptNumQue: 0,
      // 已采纳数
      adoptionRatesQue: 0,
      // 采纳率
      totalQue: 0,
      // 提问问题数
      acceptNumOrder: 0,
      //  已解决数
      adoptionRatesOrder: 0,
      //  解决率
      totalOrder: 0,
      // 接单问题数
      fliterList: [{
        status: 0,
        name: '全部'
      }, {
        status: 2,
        name: '派单中'
      }, {
        status: 3,
        name: '未采纳'
      }, {
        status: 4,
        name: '已采纳'
      }, {
        status: null,
        name: '历史在线问答'
      }],
      // 筛选条件
      questionList: [],
      // 我的提问列表
      queRefreshing: false,
      queListLoading: false,
      queFinished: false,
      queFinishedText: '',
      pageNum1: 1,
      // 接单当前页
      orderList: [],
      // 我的接单列表
      orderListLoading: false,
      orderFinished: false,
      orderRefreshing: false,
      orderFinishedText: '',
      showJoinVipPopup: false
    };
  },
  created: function created() {
    var _this = this;
    this.activeType = Number(this.$route.query.type) || 1;
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('全部问题页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    switchType: function switchType(type) {
      var elementName = '';
      this.activeType = type;
      if (type === 1) {
        console.log('type', type);
        this.getQuestionList('refresh');
      } else {
        this.getOrderList('refresh');
      }
      this._Util.sensorsCollect('element_click', {
        operation_page: '问答',
        element_name: '我的提问',
        element_content: '我的提问',
        element_class_name: '',
        element_type: '',
        element_target_url: '',
        url: location.href,
        title: "\u5168\u90E8\u95EE\u9898-".concat(elementName),
        moudle_type: '问答',
        correlation_id: ''
      });
    },
    /**
     * 我的提问列表
     * @param {Number} type 列表标识 1我的提问 2我的接单
     * @param {Number} status 问题状态 0全部 2 待接单 3 已接单（去采纳）4已采纳
     */
    getQuestionList: function getQuestionList(type) {
      var _this2 = this;
      if (type === 'refresh') {
        this.pageNum = 1;
        this.questionList = [];
        this.queFinished = false;
        this.queListLoading = true;
      }
      if (this.queRefreshing) {
        this.pageNum = 1;
        this.questionList = [];
        this.queRefreshing = false;
      }
      this._Util.post(this._Api.GET_QA_MY_QUESTION, {
        cardFlag: this.cardFlag,
        pageFlag: 1,
        status: this.queFilterStatus,
        pageNum: this.pageNum,
        pageSize: 10
      }, function (data) {
        _this2.acceptNumQue = data.acceptNum;
        _this2.unAcceptNum = data.unAcceptNum;
        _this2.adoptionRatesQue = data.adoptionRates;
        _this2.totalQue = data.total;
        var list = data.questionVo.dataList || [];
        if (list.length > 0) {
          list.forEach(function (ele) {
            switch (ele.status) {
              case 2:
                ele.statusVal = '派单中';
                break;
              case 3:
                ele.statusVal = '未采纳';
                break;
              case 4:
                ele.statusVal = '已采纳';
                break;
              case 5:
                ele.statusVal = '超时取消';
                break;
              case 6:
                ele.statusVal = '未采纳';
                break;
              default:
                ele.statusVal = '';
            }
            ele.tag1 = ele.vehicleBrandName && ele.vehicleModeName ? "".concat(ele.vehicleBrandName, " ").concat(ele.vehicleModeName) : ele.vehicleBrandName && !ele.vehicleModeName ? "".concat(ele.vehicleBrandName) : null;
            ele.tag2 = ele.engineBrandName && ele.engineModeName ? "".concat(ele.engineBrandName, " ").concat(ele.engineModeName) : ele.engineBrandName && !ele.engineModeName ? "".concat(ele.engineBrandName) : null;
            ele.tag3 = ele.ecuBrandName && ele.ecuModeName ? "".concat(ele.ecuBrandName, " ").concat(ele.ecuModeName) : ele.ecuBrandName && !ele.ecuModeName ? "".concat(ele.ecuBrandName) : null;
          });
        }
        _this2.questionList = _this2.questionList.concat(list);
        _this2.pageNum++;
        _this2.queListLoading = false;
        if (list.length < 10) {
          _this2.queFinished = true;
          _this2.queFinishedText = '到底啦 ^_^';
          if (list.length === 0 && _this2.questionList.length === 0) {
            _this2.queFinishedText = '暂无数据';
          }
        }
      }, function () {}, this);
    },
    /**
     * 我的接单列表
     */
    getOrderList: function getOrderList(type) {
      var _this3 = this;
      if (type === 'refresh') {
        this.orderFinished = false;
        this.orderListLoading = true;
        this.pageNum1 = 1;
        this.orderList = [];
      }
      if (this.orderRefreshing) {
        this.pageNum1 = 1;
        this.orderList = [];
        this.orderRefreshing = false;
      }
      this._Util.post(this._Api.GET_QA_MY_QUESTION, {
        pageFlag: 2,
        status: this.orderFilterStatus,
        pageNum: this.pageNum1,
        pageSize: 10
      }, function (data) {
        _this3.acceptNumOrder = data.acceptNum;
        _this3.adoptionRatesOrder = data.adoptionRates;
        _this3.totalOrder = data.total;
        var list = data.dialogueVo.dataList || [];
        if (list.length > 0) {
          list.forEach(function (ele) {
            switch (ele.status) {
              case 3:
                ele.statusVal = '未采纳';
                break;
              case 4:
                ele.statusVal = '已采纳';
                break;
              default:
                ele.statusVal = '';
            }
          });
        }
        _this3.orderList = _this3.orderList.concat(list);
        _this3.pageNum1++;
        _this3.orderListLoading = false;
        if (list.length < 10) {
          _this3.orderFinished = true;
          _this3.orderFinishedText = '到底啦 ^_^';
          if (list.length === 0 && _this3.orderList.length === 0) {
            _this3.orderFinishedText = '暂无数据';
          }
        }
      }, function () {}, this);
    },
    /**
     * 打开筛选弹框
     */
    openFilter: function openFilter() {
      this.showFilterMask = true;
    },
    /**
     * 筛选
     */
    selectFilter: function selectFilter(item, type) {
      this.cardFlag = null;
      localStorage.removeItem('cardFlag');
      this.showFilterMask = false;
      if (!item.status && item.status !== 0) {
        if (this.$store.state.userInfo.userStatus !== 2) {
          this.showJoinVipPopup = true;
          return;
        }
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'externalPage2',
              url: location.origin + '/v3/carRep/onLineQuestion/questionList'
            }
          });
        } else {
          location.href = location.origin + '/v3/carRep/onLineQuestion/questionList';
        }
      } else {
        if (type === 'order') {
          this.orderFilterStatus = item.status;
          this.getOrderList('refresh');
        }
        if (type === 'que') {
          this.queFilterStatus = item.status;
          this.getQuestionList('refresh');
        }
        this.filterStatusText = item.name;
      }
    },
    /**
     * 问题详情
     */
    questionDetail: function questionDetail(item) {
      if (item.status === 2) {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'questionProgress',
              url: "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(item.questionNo)
            }
          });
        } else {
          location.href = "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(item.questionNo);
        }
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'questionDetails',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/questionDetails?questionNo=").concat(item.questionNo)
            }
          });
        } else {
          this.$router.push({
            name: 'questionDetails',
            query: {
              questionNo: item.questionNo
            }
          });
        }
      }
    },
    /**
     * 进入问题会话
     */
    toConCversation: function toConCversation(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversation',
            url: "".concat(location.origin, "/v2/questionsAndAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id)
          }
        });
      } else {
        this.$router.push({
          name: 'conversation',
          query: {
            questionNo: item.questionNo,
            id: item.id
          }
        });
      }
    },
    /**
     * 开通会员
     */
    closeVipPopup: function closeVipPopup(type) {
      this.showJoinVipPopup = false;
      if (type === 'confirm') {
        location.href = location.origin + '/v2/business/pay/certificationRenewal?userStatus=' + this.$store.state.userInfo.userStatus;
      }
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text && text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text && text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"que-type hairline"},[_c('span',{class:{'active': _vm.activeType === 1},on:{"click":function($event){return _vm.switchType(1)}}},[_vm._v("我的提问")]),_vm._v(" "),_c('span',{class:{'active': _vm.activeType === 2},on:{"click":function($event){return _vm.switchType(2)}}},[_vm._v("我的接单")])]),_vm._v(" "),_c('div',{staticClass:"que-container"},[_c('div',{staticStyle:{"height":"100%"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeType === 1),expression:"activeType === 1"}],staticClass:"que-content"},[_c('div',{staticClass:"que-top"},[_c('div',{staticClass:"meta-wrap"},[_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.totalQue))]),_c('span',[_vm._v("总提问")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.unAcceptNum))]),_c('span',[_vm._v("未采纳")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.acceptNumQue))]),_c('span',[_vm._v("已采纳")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.adoptionRatesQue)),_c('em',[_vm._v("%")])]),_c('span',[_vm._v("采纳率")])])]),_vm._v(" "),_c('div',{staticClass:"filter"},[_c('div',{staticClass:"filter-btn",on:{"click":function($event){return _vm.openFilter()}}},[_c('i',{staticClass:"filter-icon"}),_vm._v("筛选")]),_vm._v(" "),_c('div',{staticClass:"filter-box"},[_c('van-overlay',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilterMask),expression:"showFilterMask"}],attrs:{"z-index":"1000"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilterMask),expression:"showFilterMask"}],staticClass:"filter-list"},_vm._l((_vm.fliterList),function(f,index){return _c('div',{key:index,staticClass:"filter-item",class:{'selected' : _vm.queFilterStatus === f.status},on:{"click":function($event){return _vm.selectFilter(f, 'que')}}},[_c('span',[_vm._v(_vm._s(f.name))])])}),0)],1)])]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"que-list"},[_c('van-pull-refresh',{staticStyle:{"height":"100%"},attrs:{"loading-text":"正在刷新..."},on:{"refresh":function($event){return _vm.getQuestionList('refresh')}},model:{value:(_vm.queRefreshing),callback:function ($$v) {_vm.queRefreshing=$$v},expression:"queRefreshing"}},[_c('van-list',{attrs:{"finished":_vm.queFinished,"offset":"10","finished-text":_vm.queFinishedText},on:{"load":function($event){return _vm.getQuestionList('load')}},model:{value:(_vm.queListLoading),callback:function ($$v) {_vm.queListLoading=$$v},expression:"queListLoading"}},_vm._l((_vm.questionList),function(item,index){return _c('van-cell',{key:index,staticClass:"que-item hairline",on:{"click":function($event){return _vm.questionDetail(item)}}},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"status",class:{'status1': item.status === 4}},[_vm._v(_vm._s(item.statusVal))]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(item.createTimeValue))])]),_vm._v(" "),_c('p',{staticClass:"item-title"},[_vm._v(_vm._s(item.questionTitle))]),_vm._v(" "),_c('div',{staticClass:"item-cell"},[(item.tag1)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag1))]):_vm._e(),(item.tag2)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag2))]):_vm._e(),(item.tag3)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag3))]):_vm._e()])])}),1)],1)],1)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeType === 2),expression:"activeType === 2"}],staticClass:"que-content"},[_c('div',{staticClass:"que-top"},[_c('div',{staticClass:"meta-wrap"},[_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.totalOrder))]),_c('span',[_vm._v("总接单")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.acceptNumOrder))]),_c('span',[_vm._v("被采纳")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"num"},[_vm._v(_vm._s(_vm.adoptionRatesOrder)),_c('em',[_vm._v("%")])]),_c('span',[_vm._v("解决率")])])]),_vm._v(" "),_c('div',{staticClass:"filter"},[_c('div',{staticClass:"filter-btn",on:{"click":function($event){return _vm.openFilter()}}},[_c('i',{staticClass:"filter-icon"}),_vm._v("筛选")]),_vm._v(" "),_c('div',{staticClass:"filter-box"},[_c('van-overlay',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilterMask),expression:"showFilterMask"}],attrs:{"z-index":"1000"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilterMask),expression:"showFilterMask"}],staticClass:"filter-list"},_vm._l((_vm.fliterList),function(f,index){return _c('div',{key:index},[(f.status !== 2)?_c('div',{staticClass:"filter-item",class:{'selected' : _vm.orderFilterStatus === f.status},on:{"click":function($event){return _vm.selectFilter(f, 'order')}}},[_c('span',[_vm._v(_vm._s(f.name))])]):_vm._e()])}),0)],1)])]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"order-list"},[_c('van-pull-refresh',{staticStyle:{"height":"100%"},attrs:{"loading-text":"正在刷新..."},on:{"refresh":function($event){return _vm.getOrderList('refresh')}},model:{value:(_vm.orderRefreshing),callback:function ($$v) {_vm.orderRefreshing=$$v},expression:"orderRefreshing"}},[_c('van-list',{attrs:{"finished":_vm.orderFinished,"offset":"10","finished-text":_vm.orderFinishedText},on:{"load":function($event){return _vm.getOrderList('load')}},model:{value:(_vm.orderListLoading),callback:function ($$v) {_vm.orderListLoading=$$v},expression:"orderListLoading"}},_vm._l((_vm.orderList),function(item,index){return _c('van-cell',{key:index,staticClass:"order-item",on:{"click":function($event){return _vm.toConCversation(item)}}},[(item.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":item.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info hairline"},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.uname))]),_vm._v(" "),_c('span',{staticClass:"status",class:{'status1': item.status === 4}},[_vm._v(_vm._s(item.statusVal))])]),_vm._v(" "),_c('p',{staticClass:"title",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.messageContent))}})])])}),1)],1)],1)])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container vip-popup",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.showJoinVipPopup),callback:function ($$v) {_vm.showJoinVipPopup=$$v},expression:"showJoinVipPopup"}},[_c('div',{staticClass:"popup-content"},[_c('img',{attrs:{"src":__webpack_require__(1393)}}),_vm._v(" "),_c('p',[_vm._v("很抱歉，在线问答目前只对付费会员开放，请先完成付费")])]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeVipPopup('close')}}},[_vm._v("暂不开通")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeVipPopup('confirm')}}},[_vm._v("开通会员")])])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(677);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_af9051b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1276);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3484)
  __webpack_require__(3486)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-af9051b6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_af9051b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_af9051b6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3485);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4520bf10", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-cell:after{display:none}.ask-que-detail .van-overlay{z-index:899!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3487);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("68e86e72", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-af9051b6]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-af9051b6]{font-family:PingFangSC-Regular,PingFang SC}.separate[data-v-af9051b6]{width:100%;height:.3rem;background-color:#f4f5f6}.detail-head[data-v-af9051b6]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;box-shadow:0 .1rem .4rem 0 rgba(185,204,229,.2);z-index:2}.detail-head p[data-v-af9051b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:0 1.2rem 0 .6rem;font-size:.8rem;font-weight:600;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-head span[data-v-af9051b6]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;font-size:.7rem;font-weight:500;color:#177afa}.detail-head span[data-v-af9051b6]:before{top:.65rem;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-head span[data-v-af9051b6]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:.1rem;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-wrap[data-v-af9051b6]{z-index:900!important;height:26.68rem}.detail-wrap .detail-top[data-v-af9051b6]{padding:0 .6rem}.detail-wrap .detail-top .detail-title[data-v-af9051b6]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-bottom:.6rem}.detail-wrap .detail-top .detail-title p[data-v-af9051b6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:.8rem .4rem 0 0;line-height:1.4rem;font-size:1rem;font-weight:700;color:#333}.detail-wrap .detail-top .detail-title span[data-v-af9051b6]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;margin-top:1rem;margin-right:-.6rem;font-size:.7rem;font-weight:500;color:#177afa}.detail-wrap .detail-top .detail-title span[data-v-af9051b6]:before{top:0;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-wrap .detail-top .detail-title span[data-v-af9051b6]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:0;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-wrap .detail-top .detail-title span.shrink[data-v-af9051b6]:after{background-image:url(" + escape(__webpack_require__(134)) + ")}.detail-wrap .detail-top .meta .xs[data-v-af9051b6]{margin-right:.6rem;margin-bottom:.8rem;line-height:1.05rem;font-size:.75rem}.detail-wrap .detail-top .meta .xs .xs-icon[data-v-af9051b6]{display:inline-block;width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.detail-wrap .detail-top .meta .xs.xs-1[data-v-af9051b6]{color:#fb5f5f}.detail-wrap .detail-top .meta .xs.xs-2[data-v-af9051b6]{color:#fb985f}.detail-wrap .detail-item-list[data-v-af9051b6]{position:relative}.detail-wrap .detail-item-list.bottom-line[data-v-af9051b6]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item[data-v-af9051b6]{position:relative}.detail-wrap .detail-item-list .item[data-v-af9051b6]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item .item-title[data-v-af9051b6]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.detail-wrap .detail-item-list .item .item-title span[data-v-af9051b6]{font-size:.9rem}.detail-wrap .detail-item-list .item .item-content[data-v-af9051b6]{padding:.8rem .8rem 1rem}.detail-wrap .detail-item-list .item .item-content.has-img[data-v-af9051b6]{padding-bottom:.6rem}.detail-wrap .detail-item-list .item .item-content .table[data-v-af9051b6]{border:1px solid #eee;border-radius:.2rem}.detail-wrap .detail-item-list .item .item-content .param[data-v-af9051b6]{font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detail-wrap .detail-item-list .item .item-content .param span[data-v-af9051b6]{display:inline-block;line-height:1.1rem;font-size:15px;color:#333;padding:.5rem .8rem}.detail-wrap .detail-item-list .item .item-content .param span[data-v-af9051b6]:first-child{width:4.8rem;padding-right:0;border-right:1px solid #eee}.detail-wrap .detail-item-list .item .item-content .param span[data-v-af9051b6]:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.detail-wrap .detail-item-list .item .item-content .param[data-v-af9051b6]:last-child{border:none}.detail-wrap .detail-item-list .item .item-content p[data-v-af9051b6]{line-height:1.1rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.detail-wrap .detail-item-list .item .item-content .images[data-v-af9051b6]{margin-right:-.6rem}.detail-wrap .detail-item-list .item .item-content .images img[data-v-af9051b6]{display:inline-block;width:4rem;height:4rem;margin:0 .38rem .4rem 0;border-radius:.2rem;overflow:hidden;vertical-align:top}.user-list .user-item[data-v-af9051b6]{position:relative;padding:0 0 0 3.8rem;height:4.2rem}.user-list .user-item .van-cell__value[data-v-af9051b6]{overflow:initial}.user-list .user-item .avatar[data-v-af9051b6]{position:absolute;top:.8rem;left:.6rem;width:2.6rem;height:2.6rem;border-radius:.3rem;overflow:hidden}.user-list .user-item .info[data-v-af9051b6]{height:100%;padding-right:.6rem;position:relative;overflow:hidden}.user-list .user-item .info[data-v-af9051b6]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.user-list .user-item .info .item-cell[data-v-af9051b6]{position:relative;margin:.9rem 0 .2rem}.user-list .user-item .info .item-cell span[data-v-af9051b6]{vertical-align:middle}.user-list .user-item .info .item-cell .name[data-v-af9051b6]{max-width:4rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.85rem;line-height:1.2rem;color:#333}.user-list .user-item .info .item-cell .q-status[data-v-af9051b6]{margin-left:.25rem;font-size:.65rem;line-height:.9rem;color:#fb5f5f}.user-list .user-item .info .item-cell .status[data-v-af9051b6]{position:absolute;top:1.15rem;right:.6rem;font-size:.65rem;line-height:.9rem;color:#a2a2a2}.user-list .user-item .info .item-cell .status.status1[data-v-af9051b6]{color:#fb5f5f}.user-list .user-item .info .item-cell .time[data-v-af9051b6]{position:absolute;top:0;right:0;margin-right:0;font-size:.65rem;color:#999;line-height:1.05rem}.user-list .user-item .info .title[data-v-af9051b6]{font-size:.75rem;line-height:1.05rem;color:#666;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.user-list.first .user-item .avatar[data-v-af9051b6]{left:.6rem}.user-list .null-result[data-v-af9051b6]{margin-top:6.85rem;text-align:center}.user-list .null-result img[data-v-af9051b6]{display:inline-block;width:2.98rem;vertical-align:top}.user-list .null-result span[data-v-af9051b6]{display:block;text-align:center;margin-top:.83rem;line-height:1.13rem;font-size:.8rem;color:#888}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(142));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _list.default.name, _list.default), _cell.default.name, _cell.default), _popup.default.name, _popup.default), _imagePreview.default.name, _imagePreview.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      dialogMsg: {},
      userLoading: false,
      finished: false,
      questionDetail: {},
      user: {},
      userList: [],
      // 会话用户列表
      nullResult: false,
      detailPopup: false
    };
  },
  created: function created() {
    var _this = this;
    this.getConversationUserList();
    this.getQuestionDetail();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问题详情页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  mounted: function mounted() {
    var _this2 = this;
    this.$nextTick(function () {
      _this2.shareConfig();
    });
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this2.shareConfig();
        });
      }, 300);
    }
  },
  methods: {
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this3 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var detail = data.vo;
        if (!detail.vehicleBrandName) {
          detail.vehicleText = '-';
        } else if (detail.vehicleBrandName && !detail.vehicleModeName) {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/-");
        } else {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/").concat(detail.vehicleModeName);
        }
        if (!detail.engineBrandName) {
          detail.engineText = '-';
        } else if (detail.engineBrandName && !detail.engineModeName) {
          detail.engineText = "".concat(detail.engineBrandName, "/-");
        } else {
          detail.engineText = "".concat(detail.engineBrandName, "/").concat(detail.engineModeName);
        }
        if (!detail.ecuBrandName) {
          detail.ecuText = '-';
        } else if (detail.ecuBrandName && !detail.ecuModeName) {
          detail.ecuText = "".concat(detail.ecuBrandName, "/-");
        } else {
          detail.ecuText = "".concat(detail.ecuBrandName, "/").concat(detail.ecuModeName);
        }
        detail.faultSymptomImg = detail.faultSymptomImg && detail.faultSymptomImg.split(',');
        detail.faultCodeImg = detail.faultCodeImg && detail.faultCodeImg.split(',');
        detail.troubleShootImg = detail.troubleShootImg && detail.troubleShootImg.split(',');
        _this3.questionDetail = detail;
        _this3.shareConfig();
      }, function () {}, this);
    },
    /**
     * 获取问题会话用户列表
     */
    getConversationUserList: function getConversationUserList() {
      var _this4 = this;
      this._Util.post(this._Api.GET_VOS_BY_QUESTION_NO, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        _this4.userList = [];
        if (data && data.length > 0) {
          data.forEach(function (item) {
            if (item.status === 4) {
              _this4.user = item;
            } else {
              _this4.userList.push(item);
            }
          });
          _this4.nullResult = false;
        } else {
          _this4.nullResult = true;
        }
      }, function () {}, this);
    },
    /**
     * 进入问题会话
     */
    toConCversation: function toConCversation(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'conversation' + new Date().getTime(),
            url: "".concat(location.origin, "/v2/questionsAndAnswers/conversation?questionNo=").concat(item.questionNo, "&id=").concat(item.id)
          }
        });
      } else {
        this.$router.push({
          name: 'conversation',
          query: {
            questionNo: item.questionNo,
            id: item.id
          }
        });
      }
    },
    /**
     * 获取该问题所用会话用户
     */
    getUserList: function getUserList() {
      this.userLoading = false;
      this.finished = true;
    },
    /**
     * 展开详情
     */
    expandDetail: function expandDetail() {
      this.detailPopup = true;
    },
    /**
     * 收起详情
     */
    shrinkDetail: function shrinkDetail() {
      this.detailPopup = false;
    },
    /**
     * 图片预览
     */
    imagePreview: function imagePreview(images, pos) {
      this.viewImage(images[pos], images, pos);
    },
    /** 
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/1000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/1000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: that.questionDetail.questionTitle || '故障现象',
        desc: '在吗？你知道这个问题的答案吗？',
        link: "".concat(location.origin, "/v2/questionsAndAnswers/orderDetails?questionNo=").concat(this.$route.query.questionNo),
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page ask-que-detail"},[_c('div',{staticClass:"detail-head"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.expandDetail()}}},[_vm._v("详情")])]),_vm._v(" "),(_vm.user.status === 4)?_c('div',{staticClass:"user-list first"},[_c('div',{staticClass:"user-item",on:{"click":function($event){return _vm.toConCversation(_vm.user)}}},[(_vm.user.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":_vm.user.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info hairline"},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(_vm.user.uname))]),(_vm.user.status === 4)?_c('span',{staticClass:"q-status"},[_vm._v("已采纳")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm.user.createTimeValue))])]),_vm._v(" "),_c('p',{staticClass:"title"},[_vm._v(_vm._s(_vm.user.messageContent))])])]),_vm._v(" "),_c('div',{staticClass:"separate"})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"user-list"},[_vm._l((_vm.userList),function(item,index){return _c('div',{key:index,staticClass:"user-item",on:{"click":function($event){return _vm.toConCversation(item)}}},[(item.answerHeadImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":item.answerHeadImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info hairline"},[_c('div',{staticClass:"item-cell"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.uname))]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(item.createTimeValue))])]),_vm._v(" "),_c('p',{staticClass:"title"},[_vm._v(_vm._s(item.messageContent))])])])}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.nullResult),expression:"nullResult"}],staticClass:"null-result"},[_c('img',{attrs:{"src":__webpack_require__(1390)}}),_vm._v(" "),_c('span',[_vm._v("暂时无人回答该问题")])])],2),_vm._v(" "),_c('van-popup',{staticClass:"popup-container detail-wrap",attrs:{"close-on-click-overlay":false,"position":"top"},model:{value:(_vm.detailPopup),callback:function ($$v) {_vm.detailPopup=$$v},expression:"detailPopup"}},[_c('div',{staticClass:"detail-top"},[_c('div',{staticClass:"detail-title"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline shrink",on:{"click":function($event){return _vm.shrinkDetail()}}},[_vm._v("收起")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(_vm.questionDetail.bountyFlag === 1 || _vm.questionDetail.bountyFlag === 2)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏: "+_vm._s(_vm.questionDetail.cashBounty)+"元")]):_vm._e(),_vm._v(" "),(_vm.questionDetail.bountyFlag === 1 || _vm.questionDetail.bountyFlag === 3)?_c('span',{staticClass:"xs xs-2"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(280)}}),_vm._v("星豆悬赏:"+_vm._s(_vm.questionDetail.starBounty)+"个")]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"detail-item-list"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[_c('div',{staticClass:"table"},[_c('div',{staticClass:"param"},[_c('span',[_vm._v("车辆品牌")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.vehicleText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("发动机")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.engineText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("ECU型号")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.ecuText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("排放阶段")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.dischargeStageName || '-'))])])])])]),_vm._v(" "),((_vm.questionDetail.faultSymptom && _vm.questionDetail.faultSymptom !== '') || (_vm.questionDetail.faultSymptomImg &&_vm.questionDetail.faultSymptomImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("详细描述")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultSymptomImg.length}},[(_vm.questionDetail.faultSymptom)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultSymptom))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultSymptomImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultSymptomImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.faultCode && _vm.questionDetail.faultCode !== '') || (_vm.questionDetail.faultCodeImg && _vm.questionDetail.faultCodeImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("故障码")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultCodeImg.length}},[(_vm.questionDetail.faultCode)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultCode))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultCodeImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultCodeImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.troubleShoot && _vm.questionDetail.troubleShoot !== '') || (_vm.questionDetail.troubleShootImg && _vm.questionDetail.troubleShootImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("已做排查")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.troubleShootImg.length}},[(_vm.questionDetail.troubleShoot)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.troubleShoot))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.troubleShootImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.troubleShootImg, index)}}})}),0)])]):_vm._e()])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/xs_2.9c74434.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(678);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e123e34_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1277);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3488)
  __webpack_require__(3490)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4e123e34"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e123e34_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e123e34_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_orderDetails_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3489);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("d256af70", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-dialog{width:16.75rem}.van-dialog.qa-dialog{border-radius:.4rem}.van-dialog.qa-dialog .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.qa-dialog .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.qa-dialog .van-button--default{height:2.65rem;color:#333}.van-dialog.qa-dialog .van-button--default .van-button__text{font-size:.9rem}.van-dialog.qa-dialog .van-dialog__confirm{color:#177afa}.van-overlay{top:0;bottom:0}.send-msg-popup .van-cell{padding:.8rem}.send-msg-popup .van-cell textarea{font-size:.8rem;line-height:1.1rem;color:#333}.send-msg-popup .van-cell textarea::-webkit-input-placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell textarea:-ms-input-placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell textarea::placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell:after{display:none}.ask-order-detail .add-reward{border-radius:.4rem}.ask-order-detail .add-reward .van-dialog__content{padding:1.4rem 1rem 1rem}.ask-order-detail .add-reward .van-dialog__content .reward-item{color:#333;font:18px/1.25rem PingFangSC-Regular;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ask-order-detail .add-reward .van-dialog__content .reward-item:nth-of-type(2){margin-top:1rem}.ask-order-detail .add-reward .van-dialog__content .reward-item span{width:.8rem;height:.8rem;border:1px solid #d7d7d7;background:#f4f5f6;border-radius:.1rem;margin-right:.6rem}.ask-order-detail .add-reward .van-dialog__content .reward-item img{width:.8rem;height:.8rem;margin-right:.6rem}.ask-order-detail .add-reward .van-dialog__content p{margin-top:1.4rem;color:#666;font:12px/.85rem PingFangSC-Regular}.ask-order-detail .add-reward .van-dialog__content p span{color:#666;font:12px/.85rem PingFangSC-Regular;padding-left:1.2rem}.ask-order-detail .add-reward .van-dialog__footer .van-button .van-button__text{font-size:18px}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3491);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("487c2c20", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-4e123e34]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-4e123e34]{font-family:PingFangSC-Regular,PingFang SC}.ask-order-detail[data-v-4e123e34]{padding-bottom:3.5rem}.ask-order-detail .ask-home[data-v-4e123e34]{position:fixed;right:0;bottom:5.75rem;height:2.2rem;background:rgba(0,0,0,.75);border-radius:.2rem 0 0 .2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;font:11px/.7rem PingFangSC-Regular;padding:0 .3rem 0 .4rem}.ask-order-detail .ask-home img[data-v-4e123e34]{width:.525rem;height:.55rem;margin-right:.3rem}.page[data-v-4e123e34]{overflow-y:auto}.separate[data-v-4e123e34]{width:100%;height:.3rem;background-color:#f4f5f6}.toast[data-v-4e123e34]{position:fixed;left:50%;top:50%;width:11rem;min-height:5.78rem;padding:0 .6rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:rgba(0,0,0,.7);border-radius:.4rem;overflow:hidden;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);z-index:2000}.toast .text[data-v-4e123e34],.toast[data-v-4e123e34]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.toast .text[data-v-4e123e34]{color:#fff}.toast .text.text1[data-v-4e123e34]{line-height:1.25rem;font-size:.9rem}.toast .text.success-icon span[data-v-4e123e34]{display:inline-block;width:1rem;height:1rem;margin-right:.4rem;background-image:url(" + escape(__webpack_require__(1386)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.toast .text.text2[data-v-4e123e34]{margin-top:.6rem;font-size:.8rem}.qa-btn[data-v-4e123e34]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#177afa}.qa-btn.btn1[data-v-4e123e34]{border-radius:.3rem;border:.05rem solid #177afa}.qa-btn.btn3[data-v-4e123e34]{height:2.5rem;font-size:.9rem;border-radius:.3rem;background-color:#177afa;color:#fff;width:11rem;margin-left:.6rem}.qa-btn.btn3-line[data-v-4e123e34]{height:2.5rem;font-size:.9rem;border-radius:.3rem;border:1px solid #177afa}.detail-top[data-v-4e123e34]{padding:0 .6rem .8rem}.detail-top .detail-title[data-v-4e123e34]{padding:0 .2rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.detail-top .detail-title p[data-v-4e123e34]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-top:1rem;line-height:1.4rem;font-size:1rem;font-weight:600;color:#333}.detail-top .detail-title span[data-v-4e123e34]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;margin-top:1rem;margin-right:-.6rem;font-size:.7rem;font-weight:500;color:#177afa}.detail-top .detail-title span[data-v-4e123e34]:before{top:0;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-top .detail-title span[data-v-4e123e34]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:0;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-top .detail-title span.shrink[data-v-4e123e34]:after{background-image:url(" + escape(__webpack_require__(134)) + ")}.detail-top .creat-time[data-v-4e123e34]{margin-top:.4rem;padding:0 .2rem}.detail-top .creat-time span[data-v-4e123e34]{color:#999;font:14px/1rem PingFangSC-Regular}.detail-top .creat-time span[data-v-4e123e34]:first-child{margin-right:.6rem}.detail-top .meta[data-v-4e123e34]{padding:0 .2rem}.detail-top .meta .xs[data-v-4e123e34]{margin-top:.4rem;margin-right:.6rem;line-height:1.05rem;font-size:.75rem}.detail-top .meta .xs .xs-icon[data-v-4e123e34]{display:inline-block;width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.detail-top .meta .xs.xs-1[data-v-4e123e34]{color:#fb5f5f}.detail-top .meta .xs.xs-2[data-v-4e123e34]{color:#fb985f}.detail-top .manager[data-v-4e123e34]{padding:.7rem .6rem .6rem;background:#eff4ff;border-radius:.3rem;margin-top:.8rem}.detail-top .manager .up[data-v-4e123e34]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.detail-top .manager .up .count .time[data-v-4e123e34]{color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.detail-top .manager .up .count .time .van-count-down[data-v-4e123e34]{display:inline;color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.detail-top .manager .up .count .speed[data-v-4e123e34]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.2rem;color:#333;font:13px/.9rem PingFangSC-Regular}.detail-top .manager .up .count .speed img[data-v-4e123e34]{width:.8rem;height:.8rem;margin-right:.2rem}.detail-top .manager .up .manag-btn[data-v-4e123e34]{width:4.1rem;height:1.6rem;border-radius:1.25rem;border:1px solid #177afa;color:#177afa;text-align:center;font:14px/1.6rem PingFangSC-Regular;position:relative;right:-.1rem}.detail-top .manager .down[data-v-4e123e34]{margin-top:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#333;font:13px/.9rem PingFangSC-Regular}.detail-top .manager .down.no-speed[data-v-4e123e34]{margin-top:1.4rem}.detail-top .manager .down span[data-v-4e123e34]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:13px/.9rem PingFangSC-Regular}.detail-top .manager .down .hide-que[data-v-4e123e34]{color:#333;font:13px/.9rem PingFangSC-Regular;padding-left:1.1rem;background:url(" + escape(__webpack_require__(1387)) + ") 0 no-repeat;background-size:.8rem .8rem}.detail-top .manager .add-list[data-v-4e123e34]{margin-top:.6rem}.detail-top .manager .add-list .add-item[data-v-4e123e34]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:.2rem}.detail-top .manager .add-list .add-item[data-v-4e123e34]:first-child{margin:0}.detail-top .manager .add-list .add-item span[data-v-4e123e34]{color:#999;font:12px/.8rem PingFangSC-Regular}.detail-item-list[data-v-4e123e34]{position:relative}.detail-item-list[data-v-4e123e34]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-item-list .item[data-v-4e123e34]{position:relative}.detail-item-list .item[data-v-4e123e34]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-item-list .item .item-title[data-v-4e123e34]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.detail-item-list .item .item-title span[data-v-4e123e34]{font-size:.9rem}.detail-item-list .item .item-content[data-v-4e123e34]{padding:.8rem}.detail-item-list .item .item-content .table[data-v-4e123e34]{border:1px solid #eee;border-radius:.2rem}.detail-item-list .item .item-content .param[data-v-4e123e34]{font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detail-item-list .item .item-content .param span[data-v-4e123e34]{display:inline-block;line-height:1.1rem;font-size:15px;color:#333;padding:.5rem .8rem}.detail-item-list .item .item-content .param span[data-v-4e123e34]:first-child{width:4.8rem;padding-right:0;border-right:1px solid #eee}.detail-item-list .item .item-content .param span[data-v-4e123e34]:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.detail-item-list .item .item-content .param[data-v-4e123e34]:last-child{border:none}.detail-item-list .item .item-content p[data-v-4e123e34]{line-height:1.25rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.detail-item-list .item .item-content .images[data-v-4e123e34]{margin-right:-.6rem}.detail-item-list .item .item-content .images img[data-v-4e123e34]{display:inline-block;width:4rem;height:4rem;margin:0 .38rem .4rem 0;border-radius:.2rem;overflow:hidden;vertical-align:top}.order-bottom-btn[data-v-4e123e34]{position:fixed;left:0;bottom:0;padding:.33rem .8rem;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background-color:#fff}.order-bottom-btn[data-v-4e123e34]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.order-bottom-btn .qa-btn[data-v-4e123e34]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:.4rem}.order-bottom-btn .qa-btn[data-v-4e123e34]:last-child{margin-right:0}.order-bottom-btn .btn4[data-v-4e123e34]{height:2.5rem;font-size:.9rem;border-radius:.3rem;background-color:#177afa;color:#fff;width:11rem;margin-left:.6rem;text-align:center;line-height:2.5rem}.send-msg-popup .msg-content .msg-tool[data-v-4e123e34]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding:0 .8rem 0 .3rem}.send-msg-popup .msg-content .msg-tool[data-v-4e123e34]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.send-msg-popup .msg-content .msg-tool .icon[data-v-4e123e34]{display:inline-block;width:2.3rem;height:2.3rem;background-position:50%;background-repeat:no-repeat}.send-msg-popup .msg-content .msg-tool .phiz[data-v-4e123e34]{background-image:url(" + escape(__webpack_require__(795)) + ");background-size:1.3rem 1.3rem}.send-msg-popup .msg-content .msg-tool .image .upload-btn[data-v-4e123e34]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:2.3rem;height:2.3rem;vertical-align:top}.send-msg-popup .msg-content .msg-tool .image .upload-btn[data-v-4e123e34]:before{display:inline-block;content:\"\";width:2.3rem;height:2.3rem;background-image:url(" + escape(__webpack_require__(796)) + ");background-size:1.3rem 1.2rem;background-position:50%;background-repeat:no-repeat}.send-msg-popup .msg-content .msg-tool .btn[data-v-4e123e34]{position:absolute;right:.8rem;display:inline-block;width:4rem;height:1.8rem;line-height:.8rem;padding:.5rem 0;font-size:.8rem;color:#fff;background-color:#177afa;text-align:center}.send-msg-popup .msg-content .msg-tool .btn.disable[data-v-4e123e34]{opacity:.4}.emoji-box[data-v-4e123e34]{height:16.73rem;overflow-y:auto;padding:.6rem .5rem}.emoji-box li[data-v-4e123e34]{display:inline-block;padding:.3rem .4rem}.emoji-box li img[data-v-4e123e34]{width:1.4rem;height:1.4rem;vertical-align:top}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(144);
var _uploader = _interopRequireDefault(__webpack_require__(145));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
var _vue = _interopRequireDefault(__webpack_require__(22));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(142));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
_vue.default.use(_imagePreview.default);
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _dialog.default.name, _dialog.default), _imagePreview.default.name, _imagePreview.default), _popup.default.name, _popup.default), _field.default.name, _field.default), _uploader.default.name, _uploader.default), _toast.default.name, _toast.default), _countDown.default.name, _countDown.default), _dialog.default.Component.name, _dialog.default.Component), "msgDialog", _msgDialog.default),
  filters: {
    leftTime: function leftTime(val) {
      return val + 30 * 60 * 1000 - new Date().getTime();
    }
  },
  data: function data() {
    return {
      userId: localStorage.getItem('userId'),
      dialogMsg: {},
      acceptFlag: null,
      images: [],
      imageIndex: 0,
      questionDetail: {},
      isAdmin: false,
      // 是否是管理员
      adminData: null,
      // 管理员对应的可见数据
      showAddReward: false,
      // 是否显示加悬赏弹窗
      addRewardList: [{
        name: '加现金',
        isSelect: false
      }, {
        name: '加星豆',
        isSelect: false
      }],
      selectType: null // 0现金 1星豆
    };
  },
  watch: {
    showAddReward: function showAddReward(val) {
      if (!val) {
        this.selectType = null;
      }
    }
  },
  created: function created() {
    var _this = this;
    this.getWxOpenFlag();
    this.getQuestionDetail();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('订单详情页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 添加悬赏
     */
    addReward: function addReward() {
      var leftTime = 0;
      if (this.questionDetail.status === 2) {
        leftTime = this.questionDetail.createTime + 30 * 60 * 1000 - new Date().getTime();
      } else if (this.questionDetail.status === 3) {
        if (this.questionDetail.bountyFlag) {
          leftTime = this.questionDetail.createTime + 7200 * 60 * 1000 - new Date().getTime();
        } else {
          leftTime = this.questionDetail.createTime + 180 * 60 * 1000 - new Date().getTime();
        }
      } else {
        leftTime = 0;
      }
      if (leftTime <= 0) {
        (0, _toast.default)({
          message: '该问题已作废',
          duration: 1500
        });
        return;
      }
      this.addRewardList.forEach(function (item2) {
        item2.isSelect = false;
      });
      this.showAddReward = true;
    },
    /**
     * 加现金或星豆
     * @param {Object} item 当前点击的选项
     */
    selectReward: function selectReward(item, index) {
      this.addRewardList.forEach(function (item2) {
        item2.isSelect = false;
      });
      item.isSelect = true;
      this.selectType = index;
    },
    /**
     * 确认加现金或星豆
     */
    addRewardFn: function addRewardFn(action, done) {
      var _this2 = this;
      if (action === 'confirm') {
        if (this.selectType === null) {
          (0, _toast.default)({
            message: '请选择添加悬赏的种类',
            duration: 1500
          });
          done(false);
          return;
        }
        this._Util.post(this._Api.ADD_SYS_REWARD, {
          questionId: this.questionDetail.id,
          rewardType: this.selectType
        }, function (data) {
          done();
          _this2.getQuestionDetail();
        }, function () {
          done();
        }, this);
      } else {
        done();
      }
    },
    /**
     * 隐藏该问题
    */
    hideQue: function hideQue() {
      var _this3 = this;
      _dialog.default.confirm({
        title: '隐藏该问题',
        message: '提交后该问题不可查看及接单',
        confirmButtonText: '提交',
        className: 'qa-dialog'
      }).then(function () {
        _this3._Util.post(_this3._Api.HIDE_SYS_QUESTION, {
          id: _this3.questionDetail.id
        }, function (data) {
          (0, _toast.default)({
            message: '该问题已经隐藏',
            duration: 1500
          });
          setTimeout(function () {
            if (_this3._Util.isApp()) {
              api.closeWin();
            } else {
              _this3.$router.push({
                name: 'questionsAndAnswers'
              });
            }
          }, 1000);
        }, function () {}, _this3);
      }).catch(function () {});
    },
    /**
     * 跳转到广场页面
     */
    toAskHome: function toAskHome() {
      this.$router.push({
        name: 'questionsAndAnswers'
      });
    },
    /**
     * 跳转到广场页面
     */
    toSquare: function toSquare() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'openOrderSettings',
            url: "".concat(location.origin, "/v2/questionsAndAnswers/problemSquare")
          }
        });
      } else {
        this.$router.push({
          name: 'problemSquare'
        });
      }
    },
    /**
     * 获取微信通知开启状态
     */
    getWxOpenFlag: function getWxOpenFlag() {
      var _this4 = this;
      this._Util.post(this._Api.GET_WX_OPEN_FLAG, {}, function (data) {
        if (_this4.wxOpenFlag === 0) {
          _dialog.default.confirm({
            title: '开启问答',
            message: '开启后可查看问题并接单',
            confirmButtonText: '去开启',
            className: 'put-que'
          }).then(function () {
            if (_this4._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'openOrderSettings',
                  url: "".concat(location.origin, "/v2/questionsAndAnswers/openOrderSettings")
                }
              });
            } else {
              _this4.$router.push({
                name: 'openOrderSettings'
              });
            }
          }).catch(function () {
            if (_this4._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'questionsAndAnswers',
                  url: "".concat(location.origin, "/v2/questionsAndAnswers")
                }
              });
            } else {
              _this4.$router.push({
                name: 'questionsAndAnswers'
              });
            }
          });
        }
      }, function () {}, this, true);
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this5 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        _this5.acceptFlag = data.acceptFlag;
        _this5.isAdmin = !!data.adminFlag;
        _this5.adminData = data.qaSysQuestionVo;
        var detail = data.vo;
        if (!detail.vehicleBrandName) {
          detail.vehicleText = '-';
        } else if (detail.vehicleBrandName && !detail.vehicleModeName) {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/-");
        } else {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/").concat(detail.vehicleModeName);
        }
        if (!detail.engineBrandName) {
          detail.engineText = '-';
        } else if (detail.engineBrandName && !detail.engineModeName) {
          detail.engineText = "".concat(detail.engineBrandName, "/-");
        } else {
          detail.engineText = "".concat(detail.engineBrandName, "/").concat(detail.engineModeName);
        }
        if (!detail.ecuBrandName) {
          detail.ecuText = '-';
        } else if (detail.ecuBrandName && !detail.ecuModeName) {
          detail.ecuText = "".concat(detail.ecuBrandName, "/-");
        } else {
          detail.ecuText = "".concat(detail.ecuBrandName, "/").concat(detail.ecuModeName);
        }
        detail.faultSymptomImg = detail.faultSymptomImg && detail.faultSymptomImg.split(',');
        detail.faultCodeImg = detail.faultCodeImg && detail.faultCodeImg.split(',');
        detail.troubleShootImg = detail.troubleShootImg && detail.troubleShootImg.split(',');
        _this5.questionDetail = detail;
        _this5.shareConfig();
        var statusVal = '';
        switch (detail.status) {
          case 2:
            statusVal = '派单中';
            break;
          case 3:
            statusVal = '未采纳';
            break;
          case 4:
            statusVal = '已采纳';
            break;
          case 5:
            statusVal = '超时取消';
            break;
          case 6:
            statusVal = '已结束';
            break;
          default:
            statusVal = '';
        }
        _this5._Util.sensorsCollect('question_view', {
          operation_page: '问答',
          question_no: detail.questionNo,
          question_status: statusVal,
          communic_mode: detail.communicMode === 1 ? '文字' : '电话',
          url: location.href,
          title: '问题详情页',
          moudle_type: '问答'
        });
        // 如果被隐藏，不管什么身份都无法查看， 如果没有被隐藏则普通用户无法查看  5-超时未接单作废 , 6-超时未采纳作废
        if (detail.isHide || (detail.status === 5 || detail.status === 6) && !_this5.isAdmin) {
          (0, _toast.default)({
            message: '该问题已取消，去问题广场看看吧',
            duration: 1500
          });
          setTimeout(function () {
            if (_this5._Util.isApp()) {
              api.closeWin();
            } else {
              _this5.$router.push({
                name: 'questionsAndAnswers'
              });
            }
          }, 1500);
        }
      }, function () {}, this);
    },
    /**
     * 图片预览
     */
    imagePreview: function imagePreview(images, pos) {
      this.viewImage(images[pos], images, pos);
    },
    /**
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/1000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/1000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
     * 立即接单
     */
    orderNow: function orderNow() {
      var _this6 = this;
      _dialog.default.confirm({
        title: '确认要接单',
        message: '接单后请在10分钟内发送解决方案，提问人等的很着急哦~',
        confirmButtonText: '确认接单',
        className: 'qa-dialog'
      }).then(function () {
        _this6._Util.post(_this6._Api.GRAB_QA_QUESTION, {
          questionNo: _this6.$route.query.questionNo
        }, function (data) {
          _this6.acceptFlag = 1;
          _this6.toastMsg = {
            show: true,
            msg: '接单成功',
            msg1: '立即沟通解决问题吧~'
          };
          setTimeout(function () {
            if (_this6._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'conversation',
                  url: "".concat(location.origin, "/v2/questionsAndAnswers/conversation?questionNo=").concat(_this6.$route.query.questionNo, "&id=").concat(data)
                }
              });
            } else {
              _this6.$router.push({
                name: 'conversation',
                query: {
                  questionNo: _this6.$route.query.questionNo,
                  id: data
                }
              });
            }
          }, 300);
        }, function () {}, _this6);
      }).catch(function () {});
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: that.questionDetail.questionTitle || '故障现象',
        desc: '在吗？你知道这个问题的答案吗？',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page ask-order-detail"},[_c('div',{staticClass:"detail-top"},[_c('div',{staticClass:"detail-title"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))])]),_vm._v(" "),_c('div',{staticClass:"creat-time"},[_c('span',[_vm._v(_vm._s(_vm.questionDetail.uname || '用户_' + _vm.questionDetail.createUserId))]),_c('span',[_vm._v(_vm._s(_vm._Util.dateFormat(_vm.questionDetail.createTime, 'yyyy-MM-dd hh:mm')))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(_vm.questionDetail.bountyFlag === 1 || _vm.questionDetail.bountyFlag === 2)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏: "+_vm._s(_vm.questionDetail.cashBounty)+"元")]):_vm._e(),_vm._v(" "),(_vm.questionDetail.bountyFlag === 1 || _vm.questionDetail.bountyFlag === 3)?_c('span',{staticClass:"xs xs-2"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(280)}}),_vm._v("星豆悬赏:"+_vm._s(_vm.questionDetail.starBounty)+"个")]):_vm._e()]),_vm._v(" "),(_vm.isAdmin && _vm.adminData)?_c('div',{staticClass:"manager"},[_c('div',{staticClass:"up"},[_c('div',{staticClass:"count"},[(_vm.questionDetail.status === 2)?_c('div',{staticClass:"time"},[_vm._v("\n            作废倒计时："),_c('van-count-down',{ref:"countDown",attrs:{"auto-start":true,"time":_vm.questionDetail.createTime + (30 * 60 * 1000) - new Date().getTime(),"format":"mm分ss秒"}})],1):_vm._e(),_vm._v(" "),(_vm.questionDetail.status === 3)?_c('div',{staticClass:"time"},[_vm._v("\n            作废倒计时：\n            "),(_vm.questionDetail.bountyFlag)?_c('van-count-down',{ref:"countDown",attrs:{"auto-start":true,"time":_vm.questionDetail.createTime + (7200 * 60 * 1000) - new Date().getTime(),"format":"HH时mm分ss秒"}}):_c('van-count-down',{ref:"countDown",attrs:{"auto-start":true,"time":_vm.questionDetail.createTime + (180 * 60 * 1000) - new Date().getTime(),"format":"mm分ss秒"}})],1):_vm._e(),_vm._v(" "),(_vm.questionDetail.status !== 3 && _vm.questionDetail.status !== 2)?_c('div',{staticClass:"time"},[_vm._v("\n            作废倒计时：00:00\n          ")]):_vm._e(),_vm._v(" "),(_vm.adminData.isCard)?_c('div',{staticClass:"speed"},[_c('img',{attrs:{"src":__webpack_require__(797)}}),_vm._v("加速卡")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"manag-btn",on:{"click":_vm.addReward}},[_vm._v("加悬赏")])]),_vm._v(" "),_c('div',{staticClass:"down",class:{'no-speed': !_vm.adminData.isCard}},[_c('span',[_vm._v("通知"+_vm._s(_vm.adminData.noticeCount || 0)+"次，查看"+_vm._s(_vm.adminData.viewCount || 0)+"人，接单"+_vm._s(_vm.adminData.ordersCount || 0)+"人")]),_vm._v(" "),_c('div',{staticClass:"hide-que",on:{"click":_vm.hideQue}},[_vm._v("隐藏")])]),_vm._v(" "),(_vm.adminData.qaSystemRewardVos && _vm.adminData.qaSystemRewardVos.length)?_c('div',{staticClass:"add-list"},_vm._l(((_vm.adminData.qaSystemRewardVos ? _vm.adminData.qaSystemRewardVos : [])),function(item2,index2){return _c('div',{key:index2,staticClass:"add-item"},[(item2.rewardType === 0)?[_c('span',[_vm._v("加现金： "+_vm._s(item2.amount)+"元")]),_c('span',[_vm._v(_vm._s(item2.createUser)+" "+_vm._s(_vm._Util.dateFormat(item2.createTime, 'MM-dd hh:mm')))])]:[_c('span',[_vm._v("加星豆： "+_vm._s(item2.amount)+"个")]),_c('span',[_vm._v(_vm._s(item2.createUser)+" "+_vm._s(_vm._Util.dateFormat(item2.createTime, 'MM-dd hh:mm')))])]],2)}),0):_vm._e()]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"detail-item-list"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[_c('div',{staticClass:"table"},[_c('div',{staticClass:"param"},[_c('span',[_vm._v("车辆品牌")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.vehicleText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("发动机")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.engineText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("ECU型号")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.ecuText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("排放阶段")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.dischargeStageName || '-'))])])])])]),_vm._v(" "),((_vm.questionDetail.faultSymptom && _vm.questionDetail.faultSymptom !== '') || (_vm.questionDetail.faultSymptomImg &&_vm.questionDetail.faultSymptomImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("详细描述")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[(_vm.questionDetail.faultSymptom)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultSymptom))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultSymptomImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultSymptomImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.faultCode && _vm.questionDetail.faultCode !== '') || (_vm.questionDetail.faultCodeImg && _vm.questionDetail.faultCodeImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("故障码")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[(_vm.questionDetail.faultCode)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultCode))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultCodeImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultCodeImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.troubleShoot && _vm.questionDetail.troubleShoot !== '') || (_vm.questionDetail.troubleShootImg && _vm.questionDetail.troubleShootImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("已做排查")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[(_vm.questionDetail.troubleShoot)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.troubleShoot))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.troubleShootImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.troubleShootImg, index)}}})}),0)])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"order-bottom-btn hairline"},[_c('div',{staticClass:"qa-btn btn3-line",staticStyle:{"margin":"0"},on:{"click":_vm.toSquare}},[_vm._v("更多提问")]),_vm._v(" "),(_vm.acceptFlag === 0 && _vm.userId !== _vm.questionDetail.createUserId)?_c('div',{staticClass:"btn4",on:{"click":function($event){return _vm.orderNow()}}},[_vm._v("立即接单")]):_vm._e()]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}}),_vm._v(" "),(!_vm._Util.isApp() && !_vm._Util.isMPaaS())?_c('div',{staticClass:"ask-home",on:{"click":_vm.toAskHome}},[_c('img',{attrs:{"src":__webpack_require__(262),"alt":""}}),_vm._v("\n    问答"),_c('br'),_vm._v("首页\n  ")]):_vm._e(),_vm._v(" "),_c('van-dialog',{attrs:{"title":"","class-name":"add-reward","show-cancel-button":"","confirm-button-text":"提交","before-close":_vm.addRewardFn},model:{value:(_vm.showAddReward),callback:function ($$v) {_vm.showAddReward=$$v},expression:"showAddReward"}},[_vm._l((_vm.addRewardList),function(item,index){return _c('div',{key:index,staticClass:"reward-item",on:{"click":function($event){return _vm.selectReward(item, index)}}},[(!item.isSelect)?_c('span'):_c('img',{attrs:{"src":__webpack_require__(1388)}}),_vm._v(_vm._s(item.name)+"\n    ")])}),_vm._v(" "),_c('p',[_vm._v("\n      注：提交后系统会随机增加数量。"),_c('br'),_vm._v(" "),_c('span',[_vm._v("所加现金/星豆为公司支付，清谨慎操作。")])])],2)],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(679);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ae2868b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1278);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3492)
  __webpack_require__(3494)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0ae2868b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ae2868b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ae2868b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3493);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("27c800b0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".conver-detail .van-overlay{z-index:899!important}.send-msg-popup .van-cell{padding:.8rem}.send-msg-popup .van-cell textarea{font-size:.8rem;line-height:1.1rem;color:#333}.send-msg-popup .van-cell textarea::-webkit-input-placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell textarea:-ms-input-placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell textarea::placeholder{font-size:.8rem;color:#999}.send-msg-popup .van-cell:after{display:none}.van-dialog.put-que{border-radius:.4rem}.van-dialog.put-que .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.put-que .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.put-que .van-button--default{height:2.65rem;color:#333}.van-dialog.put-que .van-button--default .van-button__text{font-size:.9rem}.van-dialog.put-que .van-dialog__confirm{color:#177afa}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3495);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("fb4e41de", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-0ae2868b]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-0ae2868b]{font-family:PingFangSC-Regular,PingFang SC;-webkit-overflow-scrolling:touch}.conver-detail .ask-home[data-v-0ae2868b]{position:fixed;right:0;bottom:8.8rem;z-index:100;height:2.2rem;background:rgba(0,0,0,.75);border-radius:.2rem 0 0 .2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;font:11px/.7rem PingFangSC-Regular;padding:0 .3rem 0 .4rem}.conver-detail .ask-home img[data-v-0ae2868b]{width:.525rem;height:.55rem;margin-right:.3rem}.separate[data-v-0ae2868b]{width:100%;height:.3rem;background-color:#f4f5f6}.qa-btn[data-v-0ae2868b]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#177afa}.qa-btn.btn1[data-v-0ae2868b]{border-radius:.3rem;border:.05rem solid #177afa}.qa-btn.btn3[data-v-0ae2868b]{height:2.5rem;font-size:.9rem;border-radius:.3rem;background-color:#177afa;color:#fff}.qa-btn.btn3-line[data-v-0ae2868b]{height:2.5rem;font-size:.9rem;border-radius:.3rem;border:1px solid #177afa}.page[data-v-0ae2868b]{background-color:#f4f5f6}.page .top[data-v-0ae2868b]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;background-color:#fff;box-shadow:0 .1rem .4rem 0 rgba(185,204,229,.2);z-index:2}.page .top p[data-v-0ae2868b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:0 1.2rem 0 .6rem;font-size:.8rem;font-weight:600;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page .top span[data-v-0ae2868b]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;font-size:.7rem;font-weight:500;color:#177afa}.page .top span[data-v-0ae2868b]:before{top:.65rem;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.page .top span[data-v-0ae2868b]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:.1rem;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.page .content[data-v-0ae2868b]{position:relative;z-index:1;overflow-y:auto}.page .bottom[data-v-0ae2868b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3rem;padding:0 .8rem;background-color:#fff}.page .bottom .qa-btn[data-v-0ae2868b]{height:2.2rem;font-size:.8rem}.page .bottom .qa-btn .cn-icon[data-v-0ae2868b]{margin-right:.2rem;background-image:url(" + escape(__webpack_require__(3496)) + ")}.page .bottom .qa-btn .cn-icon[data-v-0ae2868b],.page .bottom .qa-btn .gc-icon[data-v-0ae2868b]{display:inline-block;width:.8rem;height:.8rem;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;vertical-align:middle}.page .bottom .qa-btn .gc-icon[data-v-0ae2868b]{background-image:url(" + escape(__webpack_require__(3497)) + ")}.page .bottom .qa-btn.btn-caina[data-v-0ae2868b]{color:#333;font:700 16px/1.1rem PingFangSC-Semibold}.page .bottom .qa-btn.btn-caina img[data-v-0ae2868b]{height:.95rem;width:.95rem;margin-right:.3rem}.page .bottom .btn3-line[data-v-0ae2868b]{width:5.4rem;margin-right:.6rem}.page .bottom .btn3-line.btn3-line-new[data-v-0ae2868b]{width:auto;margin:0;padding:0 .8rem 0 0;border:none}.page .bottom .btn3[data-v-0ae2868b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.page .bottom .btn3.btn3-new[data-v-0ae2868b]{background:#f4f5f6;color:#999;text-align:left;padding-left:.8rem;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;border-radius:.2rem}.page .bottom .disable[data-v-0ae2868b]{background-color:#c2c8d0}.msg-list[data-v-0ae2868b]{padding:1rem 0}.msg-list .msg-inner[data-v-0ae2868b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .6rem;margin-bottom:1rem}.msg-list .msg-inner .user .avatar[data-v-0ae2868b]{display:inline-block;width:2rem;height:2rem;vertical-align:top;border-radius:.2rem;overflow:hidden}.msg-list .msg-inner .content[data-v-0ae2868b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.msg-list .msg-inner .content .time[data-v-0ae2868b]{display:block;line-height:.83rem;margin-bottom:.2rem;font-size:.6rem;color:#999}.msg-list .msg-inner .content .msg[data-v-0ae2868b]{display:inline-block;max-width:13.2rem;padding:.4rem .6rem;line-height:1.2rem;word-wrap:break-word;word-break:break-all;font-size:.85rem}.msg-list .msg-inner .content img[data-v-0ae2868b]{max-width:5rem;height:auto;vertical-align:top;border-radius:.2rem;overflow:hidden}.msg-list .msg-inner.other-side[data-v-0ae2868b]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;text-align:left}.msg-list .msg-inner.other-side .avatar[data-v-0ae2868b]{margin-right:.6rem}.msg-list .msg-inner.other-side .msg[data-v-0ae2868b]{background-color:#fff;color:#333;border-radius:0 .4rem .4rem .4rem}.msg-list .msg-inner.myself[data-v-0ae2868b]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.msg-list .msg-inner.myself .avatar[data-v-0ae2868b]{margin-left:.6rem}.msg-list .msg-inner.myself .msg[data-v-0ae2868b]{background-color:#177afa;color:#fff;text-align:left;border-radius:.4rem 0 .4rem .4rem}.detail-wrap[data-v-0ae2868b]{z-index:900!important;height:26.68rem}.detail-wrap .detail-top[data-v-0ae2868b]{padding:0 .6rem}.detail-wrap .detail-top .detail-title[data-v-0ae2868b]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-bottom:.4rem}.detail-wrap .detail-top .detail-title p[data-v-0ae2868b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:.8rem .4rem .4rem 0;line-height:1.4rem;font-size:1rem;font-weight:700;color:#333}.detail-wrap .detail-top .detail-title span[data-v-0ae2868b]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3.33rem;height:100%;margin-top:1rem;margin-right:-.6rem;font-size:.7rem;font-weight:500;color:#177afa}.detail-wrap .detail-top .detail-title span[data-v-0ae2868b]:before{top:0;right:0;height:1rem;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-left-width:1px}.detail-wrap .detail-top .detail-title span[data-v-0ae2868b]:after{display:inline-block;content:\"\";width:.5rem;height:.3rem;margin-left:.2rem;margin-top:0;background-image:url(" + escape(__webpack_require__(85)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.detail-wrap .detail-top .detail-title span.shrink[data-v-0ae2868b]:after{background-image:url(" + escape(__webpack_require__(134)) + ")}.detail-wrap .detail-top .meta .xs[data-v-0ae2868b]{margin-right:.6rem;margin-bottom:.8rem;line-height:1.05rem;font-size:.75rem}.detail-wrap .detail-top .meta .xs .xs-icon[data-v-0ae2868b]{display:inline-block;width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.1rem;vertical-align:middle}.detail-wrap .detail-top .meta .xs.xs-1[data-v-0ae2868b]{color:#fb5f5f}.detail-wrap .detail-top .meta .xs.xs-2[data-v-0ae2868b]{color:#fb985f}.detail-wrap .detail-item-list[data-v-0ae2868b]{position:relative}.detail-wrap .detail-item-list.bottom-line[data-v-0ae2868b]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item[data-v-0ae2868b]{position:relative}.detail-wrap .detail-item-list .item[data-v-0ae2868b]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.detail-wrap .detail-item-list .item .item-title[data-v-0ae2868b]{padding:0 .8rem;line-height:1.5rem;color:#999;font:14px/1.5rem PingFangSC-Regular;background:#f4f5f6}.detail-wrap .detail-item-list .item .item-title span[data-v-0ae2868b]{font-size:.9rem}.detail-wrap .detail-item-list .item .item-content[data-v-0ae2868b]{padding:.8rem .8rem 1rem}.detail-wrap .detail-item-list .item .item-content.has-img[data-v-0ae2868b]{padding-bottom:.6rem}.detail-wrap .detail-item-list .item .item-content .table[data-v-0ae2868b]{border:1px solid #eee;border-radius:.2rem}.detail-wrap .detail-item-list .item .item-content .param[data-v-0ae2868b]{font-size:0;border-bottom:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detail-wrap .detail-item-list .item .item-content .param span[data-v-0ae2868b]{display:inline-block;line-height:1.1rem;font-size:15px;color:#333;padding:.5rem .8rem}.detail-wrap .detail-item-list .item .item-content .param span[data-v-0ae2868b]:first-child{width:4.8rem;padding-right:0;border-right:1px solid #eee}.detail-wrap .detail-item-list .item .item-content .param span[data-v-0ae2868b]:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.detail-wrap .detail-item-list .item .item-content .param[data-v-0ae2868b]:last-child{border:none}.detail-wrap .detail-item-list .item .item-content p[data-v-0ae2868b]{line-height:1.1rem;font-size:.9rem;color:#333;margin-bottom:.4rem}.detail-wrap .detail-item-list .item .item-content .images[data-v-0ae2868b]{margin-right:-.6rem}.detail-wrap .detail-item-list .item .item-content .images img[data-v-0ae2868b]{display:inline-block;width:4rem;height:4rem;margin:0 .38rem .4rem 0;border-radius:.2rem;overflow:hidden;vertical-align:top}.call[data-v-0ae2868b]{position:fixed;right:.8rem;bottom:4.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:3rem;height:3rem;border-radius:.5rem;background-color:#fff;box-shadow:0 .1rem .4rem 0 rgba(160,181,209,.38);overflow:hidden;z-index:100}.call img[data-v-0ae2868b]{display:inline-block;width:.85rem;height:1.13rem;vertical-align:top}.call span[data-v-0ae2868b]{margin-top:.35rem;line-height:1;font-weight:600;font-size:.6rem;color:#177afa}.send-msg-popup .msg-content .msg-tool[data-v-0ae2868b]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding:0 .8rem 0 .3rem}.send-msg-popup .msg-content .msg-tool[data-v-0ae2868b]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.send-msg-popup .msg-content .msg-tool .icon[data-v-0ae2868b]{display:inline-block;width:2.3rem;height:2.3rem;background-position:50%;background-repeat:no-repeat}.send-msg-popup .msg-content .msg-tool .phiz[data-v-0ae2868b]{background-image:url(" + escape(__webpack_require__(795)) + ");background-size:1.3rem 1.3rem}.send-msg-popup .msg-content .msg-tool .image .upload-btn[data-v-0ae2868b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:2.3rem;height:2.3rem;vertical-align:top}.send-msg-popup .msg-content .msg-tool .image .upload-btn[data-v-0ae2868b]:before{display:inline-block;content:\"\";width:2.3rem;height:2.3rem;background-image:url(" + escape(__webpack_require__(796)) + ");background-size:1.3rem 1.2rem;background-position:50%;background-repeat:no-repeat}.send-msg-popup .msg-content .msg-tool .btn[data-v-0ae2868b]{position:absolute;right:.8rem;display:inline-block;width:4rem;height:1.8rem;line-height:.8rem;padding:.5rem 0;font-size:.8rem;color:#fff;background-color:#177afa;text-align:center}.send-msg-popup .msg-content .msg-tool .btn.disable[data-v-0ae2868b]{opacity:.4}.emoji-box[data-v-0ae2868b]{height:16.73rem;overflow-y:auto;padding:.6rem .5rem}.emoji-box li[data-v-0ae2868b]{display:inline-block;padding:.3rem .4rem}.emoji-box li img[data-v-0ae2868b]{width:1.4rem;height:1.4rem;vertical-align:top}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/adoption_icon.1d26f78.png";module.exports = __webpack_require__.p + "static/img/adoption_icon_2.c8abbc2.png";/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(144);
var _uploader = _interopRequireDefault(__webpack_require__(145));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(95);
var _imagePreview = _interopRequireDefault(__webpack_require__(82));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _imagePreview.default.name, _imagePreview.default), _field.default.name, _field.default), _uploader.default.name, _uploader.default), _toast.default.name, _toast.default), _dialog.default.name, _dialog.default),
  data: function data() {
    return {
      userId: Number(localStorage.getItem('userId')),
      token: '',
      bucketUrl: '',
      detailPopup: false,
      questionDetail: {},
      // 问题详情
      msgList: [],
      sendMsgPopup: false,
      sendParams: {},
      messageContent: '',
      messageImg: '',
      emojiList: [{
        text: '[微笑]',
        key: 'weixiao'
      }, {
        text: '[撇嘴]',
        key: 'pizui'
      }, {
        text: '[色]',
        key: 'se'
      }, {
        text: '[发呆]',
        key: 'deyi'
      }, {
        text: '[流泪]',
        key: 'liulei'
      }, {
        text: '[害羞]',
        key: 'haixiu'
      }, {
        text: '[闭嘴]',
        key: 'bizui'
      }, {
        text: '[睡觉]',
        key: 'shuijiao'
      }, {
        text: '[大哭]',
        key: 'daku'
      }, {
        text: '[尴尬]',
        key: 'gangga'
      }, {
        text: '[大怒]',
        key: 'danu'
      }, {
        text: '[调皮]',
        key: 'tiaopi'
      }, {
        text: '[呲牙]',
        key: 'ciya'
      }, {
        text: '[惊讶]',
        key: 'jingya'
      }, {
        text: '[难过]',
        key: 'nanguo'
      }, {
        text: '[酷]',
        key: 'ku'
      }, {
        text: '[冷汗]',
        key: 'lenghan'
      }, {
        text: '[抓狂]',
        key: 'zhuakuang'
      }, {
        text: '[吐]',
        key: 'tu'
      }, {
        text: '[偷笑]',
        key: 'touxiao'
      }, {
        text: '[可爱]',
        key: 'keai'
      }, {
        text: '[白眼]',
        key: 'baiyan'
      }, {
        text: '[饥饿]',
        key: 'er'
      }, {
        text: '[困]',
        key: 'kun'
      }, {
        text: '[惊恐]',
        key: 'jingkong'
      }, {
        text: '[流汗]',
        key: 'liuhan'
      }, {
        text: '[憨笑]',
        key: 'haha'
      }, {
        text: '[大兵]',
        key: 'dabing'
      }, {
        text: '[奋斗]',
        key: 'fendou'
      }, {
        text: '[咒骂]',
        key: 'ma'
      }, {
        text: '[疑问]',
        key: 'wen'
      }, {
        text: '[嘘]',
        key: 'xu'
      }, {
        text: '[晕]',
        key: 'yun'
      }, {
        text: '[折磨]',
        key: 'zhemo'
      }, {
        text: '[衰]',
        key: 'shuai'
      }, {
        text: '[骷髅]',
        key: 'kulou'
      }, {
        text: '[敲打]',
        key: 'da'
      }, {
        text: '[擦汗]',
        key: 'cahan'
      }, {
        text: '[挖鼻]',
        key: 'wabi'
      }, {
        text: '[鼓掌]',
        key: 'guzhang'
      }, {
        text: '[糗大了]',
        key: 'qioudale'
      }, {
        text: '[坏笑]',
        key: 'huaixiao'
      }, {
        text: '[左哼哼]',
        key: 'zuohengheng'
      }, {
        text: '[右哼哼]',
        key: 'youhengheng'
      }, {
        text: '[哈欠]',
        key: 'haqian'
      }, {
        text: '[鄙视]',
        key: 'bishi'
      }, {
        text: '[委屈]',
        key: 'weiqu'
      }, {
        text: '[哭了]',
        key: 'ku'
      }, {
        text: '[快哭了]',
        key: 'kuaikule'
      }, {
        text: '[阴险]',
        key: 'yinxian'
      }, {
        text: '[亲亲]',
        key: 'qinqin'
      }, {
        text: '[亲吻]',
        key: 'kiss'
      }, {
        text: '[吓]',
        key: 'xia'
      }, {
        text: '[可怜]',
        key: 'kelian'
      }, {
        text: '[菜刀]',
        key: 'caidao'
      }, {
        text: '[西瓜]',
        key: 'xigua'
      }, {
        text: '[啤酒]',
        key: 'pijiu'
      }, {
        text: '[篮球]',
        key: 'lanqiu'
      }, {
        text: '[乒乓]',
        key: 'pingpang'
      }, {
        text: '[咖啡]',
        key: 'kafei'
      }, {
        text: '[饭]',
        key: 'fan'
      }, {
        text: '[猪头]',
        key: 'zhutou'
      }, {
        text: '[玫瑰]',
        key: 'hua'
      }, {
        text: '[凋谢]',
        key: 'diaoxie'
      }, {
        text: '[爱心]',
        key: 'love'
      }, {
        text: '[心碎]',
        key: 'xinsui'
      }, {
        text: '[蛋糕]',
        key: 'dangao'
      }, {
        text: '[闪电]',
        key: 'shandian'
      }, {
        text: '[地雷]',
        key: 'zhadan'
      }, {
        text: '[刀]',
        key: 'dao'
      }, {
        text: '[足球]',
        key: 'qiu'
      }, {
        text: '[虫]',
        key: 'chong'
      }, {
        text: '[便便]',
        key: 'dabian'
      }, {
        text: '[月亮]',
        key: 'yueliang'
      }, {
        text: '[太阳]',
        key: 'taiyang'
      }, {
        text: '[礼物]',
        key: 'liwu'
      }, {
        text: '[拥抱]',
        key: 'yongbao'
      }, {
        text: '[强]',
        key: 'qiang'
      }, {
        text: '[弱]',
        key: 'ruo'
      }, {
        text: '[握手]',
        key: 'woshou'
      }, {
        text: '[胜利]',
        key: 'shengli'
      }, {
        text: '[佩服]',
        key: 'peifu'
      }, {
        text: '[勾引]',
        key: 'gouyin'
      }, {
        text: '[拳头]',
        key: 'quantou'
      }, {
        text: '[差劲]',
        key: 'chajin'
      }, {
        text: '[干杯]',
        key: 'cheer'
      }, {
        text: '[NO]',
        key: 'no'
      }, {
        text: '[OK]',
        key: 'ok'
      }, {
        text: '[给力]',
        key: 'geili'
      }, {
        text: '[飞吻]',
        key: 'feiwen'
      }, {
        text: '[跳跳]',
        key: 'tiao'
      }, {
        text: '[发抖]',
        key: 'fadou'
      }, {
        text: '[怄火]',
        key: 'dajiao'
      }, {
        text: '[转圈]',
        key: 'zhuanquan'
      }, {
        text: '[磕头]',
        key: 'ketou'
      }, {
        text: '[回头]',
        key: 'huitou'
      }, {
        text: '[跳绳]',
        key: 'tiaosheng'
      }, {
        text: '[挥手]',
        key: 'huishou'
      }, {
        text: '[激动]',
        key: 'jidong'
      }, {
        text: '[街舞]',
        key: 'tiaowu'
      }, {
        text: '[献吻]',
        key: 'xianwen'
      }, {
        text: '[左太极]',
        key: 'youtaiji'
      }, {
        text: '[右太极]',
        key: 'zuotaiji'
      }],
      isChat: false,
      isShowEmojiBox: false
    };
  },
  watch: {
    msgList: function msgList() {
      var _this = this;
      setTimeout(function () {
        _this.$refs.msgContent.scrollTop = _this.$refs.msgList.offsetHeight + 100000;
      }, 300);
    },
    '_MQTT.client.connected': function _MQTTClientConnected(val) {
      if (!val) {
        // 重连mqtt
        if (!this._MQTT.client.connected && !this._MQTT.client.reconnecting) {
          this._MQTT.client.reconnect();
        }
      }
    }
  },
  created: function created() {
    var _this2 = this;
    this.getQNToken();
    this.getDialogueMessageList();
    this.getQuestionDetail();
    setTimeout(function () {
      _this2._MQTT.subscribe("restService/send/".concat(localStorage.getItem('userId'), "/").concat(_this2.$route.query.id), {
        qos: 1
      });
      _this2._MQTT.on("restService/send/".concat(localStorage.getItem('userId'), "/").concat(_this2.$route.query.id), function (message) {
        console.log(message);
        _this2.msgList.push(message);
      });
      // 订阅询问人的位置询问消息
      _this2._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this2._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        var currentPos = 1;
        console.log(message);
        if (Number(message.id) === Number(_this2.$route.query.id)) {
          currentPos = 1;
        } else {
          currentPos = 2;
        }
        _this2._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: currentPos,
          dialogueId: _this2.sendParams.dialogueId
        }, function (err) {
          if (!err) {
            console.log('发送当前位置成功' + currentPos);
          } else {
            console.warn(err);
          }
        });
      });
    }, 300);
  },
  beforeDestroy: function beforeDestroy() {
    console.log('离开会话页');
    this._MQTT.unsubscribe("restService/send/".concat(localStorage.getItem('userId'), "/").concat(this.$route.query.id));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 跳转到广场页面
     */
    toAskHome: function toAskHome() {
      this.$router.push({
        name: 'questionsAndAnswers'
      });
    },
    getQNToken: function getQNToken() {
      var _this3 = this;
      this._Util.post(this._Api.appGetQNToken, {}, function (data) {
        _this3.token = data.token;
        _this3.bucketUrl = data.bucketUrl;
      }, function () {}, this);
    },
    /**
     * 获取会话消息
     */
    getDialogueMessageList: function getDialogueMessageList() {
      var _this4 = this;
      this._Util.post(this._Api.GET_DIALOGUE_MESSAGE_LIST, {
        dialogueId: this.$route.query.id
      }, function (data) {
        if (data.code === 1) {
          _this4.isChat = true;
          _this4.sendParams = data.infoVo;
          document.title = data.infoVo.uname;
          _this4.msgList = data.vos.dataList;
        } else {
          _this4.isChat = false;
          if (_this4._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'questionsAndAnswers',
                url: "".concat(location.origin, "/v2/questionsAndAnswers")
              }
            });
          } else {
            _this4.$router.push({
              name: 'questionsAndAnswers'
            });
          }
        }
      }, function () {}, this);
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this5 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var detail = data.vo;
        if (!detail.vehicleBrandName) {
          detail.vehicleText = '-';
        } else if (detail.vehicleBrandName && !detail.vehicleModeName) {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/-");
        } else {
          detail.vehicleText = "".concat(detail.vehicleBrandName, "/").concat(detail.vehicleModeName);
        }
        if (!detail.engineBrandName) {
          detail.engineText = '-';
        } else if (detail.engineBrandName && !detail.engineModeName) {
          detail.engineText = "".concat(detail.engineBrandName, "/-");
        } else {
          detail.engineText = "".concat(detail.engineBrandName, "/").concat(detail.engineModeName);
        }
        if (!detail.ecuBrandName) {
          detail.ecuText = '-';
        } else if (detail.ecuBrandName && !detail.ecuModeName) {
          detail.ecuText = "".concat(detail.ecuBrandName, "/-");
        } else {
          detail.ecuText = "".concat(detail.ecuBrandName, "/").concat(detail.ecuModeName);
        }
        detail.faultSymptomImg = detail.faultSymptomImg && detail.faultSymptomImg.split(',');
        detail.faultCodeImg = detail.faultCodeImg && detail.faultCodeImg.split(',');
        detail.troubleShootImg = detail.troubleShootImg && detail.troubleShootImg.split(',');
        _this5.questionDetail = detail;
      }, function () {}, this);
    },
    /**
     * 展开详情
     */
    expandDetail: function expandDetail() {
      this.detailPopup = true;
    },
    /**
     * 收起详情
     */
    shrinkDetail: function shrinkDetail() {
      this.detailPopup = false;
    },
    /**
     * 图片预览
     */
    imagePreview: function imagePreview(images, pos) {
      this.viewImage(images[pos], images, pos);
    },
    /** 
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/1000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/1000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    /**
     * 回复
     */
    reply: function reply() {
      if (this.sendParams.status === 3) {
        this.sendMsgPopup = true;
      }
    },
    closedSendMsgPopup: function closedSendMsgPopup() {
      this.isShowEmojiBox = false;
    },
    /**
     * 输入表情
     */
    enterEmoji: function enterEmoji(f) {
      if (f.text) {
        this.messageContent += f.text;
      }
    },
    /**
     * 插入表情后，设置光标位置
     */
    textareaFocus: function textareaFocus() {
      var ele = document.getElementById('msgTextarea');
      var len = this.messageContent.length;
      ele.focus();
      if (document.selection) {
        var sel = ele.createTextRange();
        sel.moveStart('character', len);
        sel.collapse();
        sel.select();
      } else if (typeof ele.selectionStart === 'number' && typeof ele.selectionEnd === 'number') {
        ele.selectionStart = ele.selectionEnd = len;
      }
    },
    blurInput: function blurInput() {
      setTimeout(function () {
        window.scrollTo(0, document.documentElement.clientHeight);
      }, 300);
    },
    showEmojiBox: function showEmojiBox() {
      this.isShowEmojiBox = !this.isShowEmojiBox;
    },
    /**
     * 发送消息（图片）
     */
    afterRead: function afterRead(file) {
      var _this6 = this;
      (0, _toast.default)({
        position: 'bottom',
        duration: 0,
        message: '发送中...'
      });
      // 发布询问对话人的位置
      this._MQTT.publish("msgService/dialogue/position/".concat(this.sendParams.receiveUserId), {
        id: this.$route.query.id
      });
      if (file.file) {
        var formData = new FormData();
        var fileNameArr = file.file.name && file.file.name.split('.');
        formData.append('file', file.file);
        formData.append('key', new Date().getTime() + '.' + fileNameArr[fileNameArr.length - 1]);
        formData.append('token', this.token);
        var url = '';
        if (this._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        $.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          _this6.messageImg = _this6.bucketUrl + res.key;
          _this6.sendParams.messageContent = null;
          _this6.sendParams.messageImg = _this6.messageImg;
          setTimeout(function () {
            _this6.msgPublish();
          }, 500);
          _toast.default.clear();
        }).fail(function (res) {
          (0, _toast.default)({
            position: 'bottom',
            duration: 0,
            message: '发送失败'
          });
        });
      }
    },
    /**
     * 发送消息（文字）
     */
    sendMessage: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            that = this;
            that.blurInput();
            that.sendParams.messageContent = that.messageContent;
            that.sendParams.messageImg = null;
            // 发布询问对话人的位置
            that._MQTT.publish("msgService/dialogue/position/".concat(that.sendParams.receiveUserId), {
              id: that.$route.query.id
            });
            if (that.messageContent.trim() !== '') {
              setTimeout(function () {
                that.msgPublish();
              }, 500);
            }
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 发送
     */
    msgPublish: function msgPublish() {
      var _this7 = this;
      this._Util.post(this._Api.SEND_MESSAGE, this.sendParams, function (data) {
        _this7.messageContent = '';
        _this7.sendMsgPopup = false;
        _this7.isShowEmojiBox = false;
        _this7.$refs.msgContent.scrollTop = _this7.$refs.msgList.offsetHeight + 100000;
      }, function () {}, this);
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text && text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text && text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    },
    /**
     * 采纳
     */
    acceptAnswer: function acceptAnswer() {
      var _this8 = this;
      if (this.questionDetail.createUserId === this.userId) {
        _dialog.default.confirm({
          title: '确认采纳此回答',
          message: '采纳后回答后无法继续咨询问题',
          confirmButtonText: '确认',
          className: 'put-que'
        }).then(function () {
          _this8._Util.post(_this8._Api.ACCEPT_ANSWER, {
            id: _this8.sendParams.dialogueId
          }, function (data) {
            _this8.sendParams.status = 4;
            _this8.$toast({
              message: data.msg
            });
          }, function () {}, _this8);
        }).catch(function () {});
        var statusVal = '';
        switch (this.questionDetail.status) {
          case 2:
            statusVal = '派单中';
            break;
          case 3:
            statusVal = '未采纳';
            break;
          case 4:
            statusVal = '已采纳';
            break;
          case 5:
            statusVal = '超时取消';
            break;
          case 6:
            statusVal = '已结束';
            break;
          default:
            statusVal = '';
        }
        this._Util.sensorsCollect('accept_qadialogue', {
          operation_page: '对话详情页',
          dialogue_id: this.sendParams.dialogueId,
          question_no: this.questionDetail.questionNo,
          question_status: statusVal,
          communic_mode: this.questionDetail.communicMode === 1 ? '文字' : '电话',
          url: location.href,
          title: this.sendParams.uname,
          moudle_type: '问答'
        });
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'problemSquare',
              url: "".concat(location.origin, "/v2/questionsAndAnswers/problemSquare")
            }
          });
        } else {
          this.$router.push({
            name: 'problemSquare'
          });
        }
      }
    },
    /**
     * 问题详情
     */
    toQuestionDetail: function toQuestionDetail() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'questionDetails',
            url: "".concat(location.origin, "/v2/questionsAndAnswers/questionDetails?questionNo=").concat(this.questionDetail.questionNo)
          }
        });
      } else {
        this.$router.push({
          name: 'questionDetails',
          query: {
            questionNo: this.questionDetail.questionNo
          }
        });
      }
    },
    qaOutCall: function qaOutCall() {
      this._Util.post(this._Api.QA_OUT_CALL, {
        id: this.sendParams.dialogueId
      }, function (data) {
        window.location.href = "tel:".concat(data);
      }, function () {}, this);
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page conver-detail"},[_c('div',{staticClass:"top"},[_c('p',[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.expandDetail()}}},[_vm._v("详情")])]),_vm._v(" "),_c('div',{ref:"msgContent",staticClass:"content",staticStyle:{"height":"calc(100% - 5.3rem)"}},[_c('div',{ref:"msgList",staticClass:"msg-list"},_vm._l((_vm.msgList),function(msg,index){return _c('div',{key:index,staticClass:"msg-item"},[(msg.time)?_c('div',{staticClass:"time"},[_vm._v(_vm._s(msg.time))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"msg-inner",class:msg.selfFlag === 1 ? 'myself' : 'other-side'},[_c('div',{staticClass:"user"},[(msg.createUserImg)?_c('img',{staticClass:"avatar",attrs:{"src":msg.createUserImg}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}})]),_vm._v(" "),_c('div',{staticClass:"content"},[(msg.createTimeValue)?_c('span',{staticClass:"time"},[_vm._v(_vm._s(msg.createTimeValue))]):_vm._e(),_vm._v(" "),(msg.messageImg)?_c('img',{attrs:{"src":msg.messageImg},on:{"click":function($event){return _vm.imagePreview([msg.messageImg], 0)}}}):_vm._e(),_vm._v(" "),(msg.messageContent)?_c('div',{staticClass:"msg",domProps:{"innerHTML":_vm._s(_vm.matchEmotion(msg.messageContent))}}):_vm._e()])])])}),0)]),_vm._v(" "),(_vm.questionDetail.createUserId === _vm.userId)?_c('div',{staticClass:"bottom"},[(_vm.sendParams.status === 3)?_c('div',{staticClass:"qa-btn btn3-line btn3-line-new",on:{"click":function($event){return _vm.acceptAnswer()}}},[_c('i',{staticClass:"cn-icon"}),_vm._v("采纳")]):_vm._e(),_vm._v(" "),(_vm.sendParams.status === 3)?_c('div',{staticClass:"qa-btn btn3 btn3-new",on:{"click":function($event){return _vm.reply()}}},[_vm._v("请输入...")]):_vm._e(),_vm._v(" "),(_vm.sendParams.status === 4 || _vm.sendParams.status === 6)?_c('div',{staticClass:"qa-btn btn3",on:{"click":function($event){return _vm.toQuestionDetail()}}},[_vm._v("查看问题详情")]):_vm._e()]):_c('div',{staticClass:"bottom"},[(_vm.sendParams.status === 4)?_c('div',{staticClass:"qa-btn btn-caina"},[_c('img',{attrs:{"src":__webpack_require__(1818)}}),_vm._v("已采纳了你的回答")]):_vm._e(),_vm._v(" "),(_vm.sendParams.status === 6)?_c('div',{staticClass:"qa-btn btn-caina"},[_c('img',{attrs:{"src":__webpack_require__(1818)}}),_vm._v("已采纳其他回答")]):_vm._e(),_vm._v(" "),(_vm.sendParams.status === 3)?_c('div',{staticClass:"qa-btn btn3 btn3-new",on:{"click":function($event){return _vm.reply()}}},[_vm._v("请输入...")]):_vm._e()]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container detail-wrap",attrs:{"close-on-click-overlay":false,"position":"top"},model:{value:(_vm.detailPopup),callback:function ($$v) {_vm.detailPopup=$$v},expression:"detailPopup"}},[_c('div',{staticClass:"detail-top"},[_c('div',{staticClass:"detail-title"},[_c('p',{staticClass:"name"},[_vm._v(_vm._s(_vm.questionDetail.questionTitle))]),_vm._v(" "),_c('span',{staticClass:"hairline shrink",on:{"click":function($event){return _vm.shrinkDetail()}}},[_vm._v("收起")])]),_vm._v(" "),_c('div',{staticClass:"meta"},[(_vm.questionDetail.bountyFlag === 1 || _vm.questionDetail.bountyFlag === 2)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏: "+_vm._s(_vm.questionDetail.cashBounty)+"元")]):_vm._e(),_vm._v(" "),(_vm.questionDetail.bountyFlag === 1 || _vm.questionDetail.bountyFlag === 3)?_c('span',{staticClass:"xs xs-2"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(280)}}),_vm._v("星豆悬赏:"+_vm._s(_vm.questionDetail.starBounty)+"个")]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"detail-item-list"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("车辆基本信息")]),_vm._v(" "),_c('div',{staticClass:"item-content"},[_c('div',{staticClass:"table"},[_c('div',{staticClass:"param"},[_c('span',[_vm._v("车辆品牌")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.vehicleText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("发动机")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.engineText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("ECU型号")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.ecuText))])]),_vm._v(" "),_c('div',{staticClass:"param"},[_c('span',[_vm._v("排放阶段")]),_c('span',[_vm._v(_vm._s(_vm.questionDetail.dischargeStageName || '-'))])])])])]),_vm._v(" "),((_vm.questionDetail.faultSymptom && _vm.questionDetail.faultSymptom !== '') || (_vm.questionDetail.faultSymptomImg &&_vm.questionDetail.faultSymptomImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("详细描述")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultSymptomImg.length}},[(_vm.questionDetail.faultSymptom)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultSymptom))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultSymptomImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultSymptomImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.faultCode && _vm.questionDetail.faultCode !== '') || (_vm.questionDetail.faultCodeImg && _vm.questionDetail.faultCodeImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("故障码")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.faultCodeImg.length}},[(_vm.questionDetail.faultCode)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.faultCode))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.faultCodeImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.faultCodeImg, index)}}})}),0)])]):_vm._e(),_vm._v(" "),((_vm.questionDetail.troubleShoot && _vm.questionDetail.troubleShoot !== '') || (_vm.questionDetail.troubleShootImg && _vm.questionDetail.troubleShootImg.length > 0))?_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-title"},[_vm._v("已做排查")]),_vm._v(" "),_c('div',{staticClass:"item-content",class:{'has-img': _vm.questionDetail.troubleShootImg.length}},[(_vm.questionDetail.troubleShoot)?_c('p',[_vm._v(_vm._s(_vm.questionDetail.troubleShoot))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"images"},_vm._l((_vm.questionDetail.troubleShootImg),function(pic,index){return _c('img',{key:index,attrs:{"src":pic},on:{"click":function($event){return _vm.imagePreview(_vm.questionDetail.troubleShootImg, index)}}})}),0)])]):_vm._e()])]),_vm._v(" "),(_vm.questionDetail.communicMode === 2 && _vm.sendParams.status === 3)?_c('div',{staticClass:"call",on:{"click":function($event){return _vm.qaOutCall()}}},[_c('img',{attrs:{"src":__webpack_require__(3498)}}),_vm._v(" "),_c('span',[_vm._v("拨打电话")])]):_vm._e(),_vm._v(" "),_c('van-popup',{staticClass:"popup-container send-msg-popup",attrs:{"position":"bottom","safe-area-inset-bottom":true},on:{"closed":function($event){return _vm.closedSendMsgPopup()}},model:{value:(_vm.sendMsgPopup),callback:function ($$v) {_vm.sendMsgPopup=$$v},expression:"sendMsgPopup"}},[_c('div',{staticClass:"msg-content"},[_c('van-field',{attrs:{"id":"msgTextarea","rows":"6","type":"textarea","placeholder":"请输入消息..."},on:{"blur":function($event){return _vm.blurInput()},"click":function($event){return _vm.textareaFocus()}},model:{value:(_vm.messageContent),callback:function ($$v) {_vm.messageContent=$$v},expression:"messageContent"}}),_vm._v(" "),_c('div',{staticClass:"msg-tool hairline"},[_c('span',{staticClass:"icon phiz",on:{"click":function($event){return _vm.showEmojiBox()}}}),_vm._v(" "),_c('span',{staticClass:"icon image",on:{"click":function($event){_vm.isShowEmojiBox = false}}},[_c('van-uploader',{attrs:{"after-read":_vm.afterRead}},[_c('span',{staticClass:"upload-btn"})])],1),_vm._v(" "),_c('span',{staticClass:"btn",class:{'disable': _vm.messageContent.trim() === ''},on:{"click":function($event){return _vm.sendMessage()}}},[_vm._v("发送")])])],1),_vm._v(" "),_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShowEmojiBox),expression:"isShowEmojiBox"}],staticClass:"emoji-box"},_vm._l((_vm.emojiList),function(f,i){return _c('li',{key:i,on:{"click":function($event){$event.stopPropagation();return _vm.enterEmoji(f)}}},[_c('img',{attrs:{"src":'https://static1.kaxiuyun.com/kxy/arclist/face/' + f.key + '.gif'}})])}),0)]),_vm._v(" "),(!_vm._Util.isApp() && !_vm._Util.isMPaaS())?_c('div',{staticClass:"ask-home",on:{"click":_vm.toAskHome}},[_c('img',{attrs:{"src":__webpack_require__(262),"alt":""}}),_vm._v("\n    问答"),_c('br'),_vm._v("首页\n  ")]):_vm._e()],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/caina.74cb470.png";module.exports = __webpack_require__.p + "static/img/phone_icon.3c70e33.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(680);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c080dbd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1279);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3499)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0c080dbd"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c080dbd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0c080dbd_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_openOrderSettings_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3500);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3ebd73cf", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-0c080dbd]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-0c080dbd]{font-family:PingFangSC-Regular,PingFang SC}.separate[data-v-0c080dbd]{width:100%;height:.2rem;background-color:#f4f5f6}.setting .setting-item[data-v-0c080dbd]{position:relative;text-align:center;overflow:hidden}.setting .setting-item h3[data-v-0c080dbd]{display:block;padding:0 .6rem;margin:1rem 0 .65rem;font-size:.95rem;font-weight:600;line-height:1.33rem;text-align:center;color:#333}.setting .setting-item .image[data-v-0c080dbd]{position:relative;width:14.53rem;height:10.2rem;margin:0 auto}.setting .setting-item .image .bg[data-v-0c080dbd]{width:100%;height:100%;vertical-align:top}.setting .setting-item .image .qrcode[data-v-0c080dbd]{position:absolute;width:5.96rem;height:5.96rem;left:4.28rem;bottom:1.5rem;vertical-align:top;border-radius:.4rem}.setting .setting-item .tip[data-v-0c080dbd]{padding:0 .6rem;margin:.25rem 0 .5rem;line-height:1.13rem;font-size:.8rem;color:#333;text-align:center}.setting .setting-item .setting-btn[data-v-0c080dbd]{display:inline-block;width:10.3rem;height:2.4rem;line-height:2.4rem;margin:.85rem 0 1rem;border-radius:1.2rem;background-color:#177afa;font-size:.9rem;color:#fff;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _msgDialog = _interopRequireDefault(__webpack_require__(171));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    msgDialog: _msgDialog.default
  },
  data: function data() {
    return {
      dialogMsg: {},
      qrCode: '',
      note: ''
    };
  },
  created: function created() {
    var _this = this;
    this.queryNoticeAndQrcode();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('开启广场页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 开启问答通知&开启广场的弹框 二维码及文案
     */
    queryNoticeAndQrcode: function queryNoticeAndQrcode() {
      var _this2 = this;
      var params = {};
      if (this._Util.isApp()) {
        params.source = 'app';
      } else {
        params.source = 'weixin';
      }
      params.sys_uid = localStorage.getItem('userId');
      params.code = 'ask_open_square';
      this._Util.post(this._Api.QUERY_NOTICE_AND_QRCODE, params, function (data) {
        var dataInfo = data.dataList[0];
        _this2.qrCode = dataInfo.pic_url;
        _this2.note = dataInfo.note;
      }, function () {}, this);
    },
    /**
     * 问答设置
     */
    openQaSettings: function openQaSettings() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'QAndASettings',
            url: "".concat(location.origin, "/v2/questionsOrAnswers/QAndASettings")
          }
        });
      } else {
        this.$router.push({
          name: 'QAndASettings'
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"setting"},[_c('div',{staticClass:"setting-item"},[_c('h3',[_vm._v("第一步：关注微信公众号")]),_vm._v(" "),_c('div',{staticClass:"image"},[_c('img',{staticClass:"bg",attrs:{"src":__webpack_require__(3501)}}),_vm._v(" "),_c('img',{staticClass:"qrcode",attrs:{"src":_vm.qrCode}})]),_vm._v(" "),_c('p',{staticClass:"tip"},[_vm._v(_vm._s(_vm.note))])]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"setting-item"},[_c('h3',[_vm._v("第二步：问答设置")]),_vm._v(" "),_vm._m(0),_vm._v(" "),_c('div',{staticClass:"setting-btn",on:{"click":function($event){return _vm.openQaSettings()}}},[_vm._v("去设置")])])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"image"},[_c('img',{staticClass:"bg",attrs:{"src":__webpack_require__(3502)}})])}]
module.exports = __webpack_require__.p + "static/img/order_setting_1.b2b5908.png";module.exports = __webpack_require__.p + "static/img/order_setting_2.47db538.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(681);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6628d97e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1280);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3503)
  __webpack_require__(3505)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6628d97e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6628d97e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6628d97e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_QAndASettings_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3504);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4f7eaafc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-switch--on .van-switch__node{-webkit-transform:translateX(1rem)!important;-ms-transform:translateX(1rem)!important;transform:translateX(1rem)!important}.van-picker-column__item{font-size:.9rem;color:#999}.van-picker-column__item--selected{font-size:1.1rem;color:#333;font-weight:600}.van-dialog.put-que-set{width:89.3%;border-radius:.4rem}.van-dialog.put-que-set .van-dialog__header{padding-top:1.6rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.van-dialog.put-que-set .van-dialog__message{padding:0;font-size:.85rem;line-height:1.35rem;color:#666;margin-top:.6rem;padding-bottom:1.4rem;width:83%;margin-left:8.5%}.van-dialog.put-que-set .van-button--default{height:2.45rem;color:#333}.van-dialog.put-que-set .van-button--default .van-button__text{font-size:.9rem}.van-dialog.put-que-set .van-dialog__confirm{color:#177afa}.van-dialog.put-que-set .van-dialog__cancel{color:#ff3f3f}.setting .van-switch{width:2.2rem;height:1.2rem;border:none}.setting .van-switch .van-switch__node{width:.9rem;height:.9rem;top:.15rem;left:.15rem;box-shadow:none}.reward-amount-popup .van-cell{padding:0 .2rem;background-color:transparent}.reward-amount-popup .van-cell input{font-size:.85rem}.reward-amount-popup .van-cell input::-webkit-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input:-ms-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input::placeholder{font-size:.85rem;color:#999}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3506);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0e0f00c8", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-popup[data-v-6628d97e]{overflow:inherit}.van-popup--center.van-popup--round[data-v-6628d97e]{border-radius:.5rem}.van-popup--bottom.van-popup--round[data-v-6628d97e]{border-radius:.5rem .5rem 0 0}[class*=hairline][data-v-6628d97e]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-6628d97e]{font-family:PingFangSC-Regular,PingFang SC}.page[data-v-6628d97e]{overflow:auto}.ask-set[data-v-6628d97e]{min-height:100%;background:#f4f5f6;padding-bottom:1.2rem}.separate[data-v-6628d97e]{width:100%;height:.3rem;background-color:#f4f5f6}.setting[data-v-6628d97e]{background:#fff}.setting .setting-item[data-v-6628d97e]{position:relative;height:2.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .6rem}.setting .setting-item img[data-v-6628d97e]{display:inline-block;width:1.2rem;height:1.2rem;margin-right:.4rem;border-radius:.2rem;background-color:#fb985f;overflow:hidden}.setting .setting-item p[data-v-6628d97e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.9rem;color:#333}.setting .setting-item span[data-v-6628d97e]{font-size:.7rem;color:#999;margin-right:.4rem}.settings-wrap[data-v-6628d97e]{background:#f4f5f6;padding:1.2rem .5rem 0}.settings-wrap .head h2[data-v-6628d97e]{font-size:1rem;font-weight:600;color:#333;line-height:1.4rem}.settings-wrap .head p[data-v-6628d97e]{margin-top:.2rem;color:#666;font:14px/1rem PingFangSC-Regular}.settings-wrap .head p span[data-v-6628d97e]{color:#177afa;padding:0 .2rem}.settings-wrap .settings-que-list .item[data-v-6628d97e]{background:#fff;margin-top:.6rem;border-radius:.3rem;padding:.8rem .6rem .2rem}.settings-wrap .settings-que-list .item.no-margin[data-v-6628d97e]{margin:0;border-radius:0 0 .3rem .3rem}.settings-wrap .settings-que-list .item.border-bottom[data-v-6628d97e]{border-radius:.3rem .3rem 0 0}.settings-wrap .settings-que-list .item h3[data-v-6628d97e]{font-size:.8rem;font-weight:600;color:#333;line-height:1.1rem;position:relative}.settings-wrap .settings-que-list .item h3[data-v-6628d97e]:after{content:\"\";position:absolute;width:3px;height:.65rem;top:.2rem;left:-.6rem;background:#1b7ffa;border-radius:2px}.settings-wrap .settings-que-list .item .option-wrap[data-v-6628d97e]{margin-top:.6rem;font-size:0}.settings-wrap .settings-que-list .item .option-wrap .option-1[data-v-6628d97e]{position:relative;display:inline-block;padding:.4rem .5rem;margin-right:.6rem;margin-bottom:.6rem;line-height:1;border:.03rem solid #d3d4d5;border-radius:.2rem;font-size:.7rem;color:#999;white-space:nowrap}.settings-wrap .settings-que-list .item .option-wrap .option-1[data-v-6628d97e]:last-child{margin-right:0}.settings-wrap .settings-que-list .item .option-wrap .option-1.active[data-v-6628d97e]{border-color:#177afa;color:#177afa}.settings-wrap .settings-que-list .item .option-wrap .option-1 em[data-v-6628d97e]{display:block;position:absolute;left:50%;bottom:-1rem;width:.83rem;height:.83rem;background:#f3f4f5;-webkit-transform:translate(-50%) rotate(45deg);-ms-transform:translate(-50%) rotate(45deg);transform:translate(-50%) rotate(45deg)}.settings-wrap .settings-que-list .item .option-wrap .option-1 i[data-v-6628d97e]{font-size:.6rem}.settings-wrap .settings-que-list .item .tip[data-v-6628d97e]{position:relative;margin-top:-.27rem;background-color:#f3f4f5;border-radius:.2rem;margin-bottom:.6rem}.settings-wrap .settings-que-list .item .tip .tip-inner[data-v-6628d97e]{position:relative;min-height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.25rem .6rem .25rem .43rem;z-index:2}.settings-wrap .settings-que-list .item .tip .tip-inner p[data-v-6628d97e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-right:1rem;font-size:.7rem;color:#333;font-weight:400;line-height:1.2rem}.settings-wrap .settings-que-list .item .tip .tip-inner .answer[data-v-6628d97e]{font-size:.7rem;color:#333;font-weight:400;line-height:1.2rem}.settings-wrap .settings-que-list .item .tip .tip-inner .close-icon[data-v-6628d97e]{position:absolute;top:0;right:0;display:inline-block;width:.7rem;height:.7rem;padding:1rem;background-image:url(" + escape(__webpack_require__(180)) + ");background-position:50%;background-repeat:no-repeat;background-size:.7rem .7rem}.settings-wrap .settings-que-list .item .tip.call-tip span[data-v-6628d97e]{font-size:.7rem;color:#177afa}.settings-wrap .settings-que-list .item .tip.call-tip span[data-v-6628d97e]:after{display:inline-block;content:\"\";width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(118)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.accept-mode[data-v-6628d97e]{border-radius:.3rem;background:#fff;padding:.8rem .6rem;margin:1.2rem .6rem 0}.accept-mode .setting-item[data-v-6628d97e]{padding:0;height:1.2rem}.accept-mode .tip[data-v-6628d97e]{margin-top:.3rem;color:#666;font:14px/1rem PingFangSC-Regular}.popup-container[data-v-6628d97e]{width:16.35rem}.popup-container.popup-container-1[data-v-6628d97e]{width:100%}.popup-container.qrcode[data-v-6628d97e]{width:89.3%;overflow:unset}.popup-container.qrcode .popup-content[data-v-6628d97e]{padding:1.2rem 1.1rem 2.7rem}.popup-container.qrcode .popup-content .img-box[data-v-6628d97e]{position:relative}.popup-container.qrcode .popup-content .img-box .bg[data-v-6628d97e]{width:100%;height:auto}.popup-container.qrcode .popup-content .img-box .qrcode[data-v-6628d97e]{position:absolute;width:6rem;height:6rem;top:2.6rem;left:50%;z-index:10000;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.popup-container.qrcode .popup-content p[data-v-6628d97e]{margin-top:.5rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold;text-align:center}.popup-container.qrcode .popup-content .tip[data-v-6628d97e]{text-align:center;margin-top:.3rem;color:#666;font:17px/1.25rem PingFangSC-Regular}.popup-container.qrcode .popup-content .close-btn[data-v-6628d97e]{position:absolute;top:-3.5rem;right:-1.1rem;width:1.6rem;height:1.6rem;z-index:100}.popup-container .popup-content[data-v-6628d97e]{padding:1.4rem 1rem}.popup-container .popup-content .form-cell[data-v-6628d97e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.4rem;padding:0 .6rem;background-color:#f3f4f5;border-radius:.2rem}.popup-container .popup-content .form-cell .label[data-v-6628d97e]{margin-right:.6rem;font-size:.85rem;color:#333;line-height:1}.popup-container .popup-content .form-cell .value[data-v-6628d97e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-content .form-cell .value input[data-v-6628d97e]{display:inline-block;width:100%;font-size:.85rem;color:#333}.popup-container .popup-content .form-cell .value input[data-v-6628d97e]::-webkit-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-6628d97e]:-ms-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-6628d97e]::placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input.text-center[data-v-6628d97e]{text-align:center}.popup-container .popup-content .form-cell .value input.text-right[data-v-6628d97e]{text-align:right}.popup-container .popup-content .form-cell .value span[data-v-6628d97e]{margin-left:.2rem;line-height:1;font-size:.85rem;color:#333}.popup-container .popup-content.brand-content[data-v-6628d97e]{height:23.43rem;padding:0;overflow-y:auto}.popup-container .popup-content.brand-content .brand-list[data-v-6628d97e]{padding:.2rem 0 0 3.1rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-6628d97e]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:1.8rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-6628d97e]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .brand-list .brand-item.selected .brand-name[data-v-6628d97e]{color:#177afa}.popup-container .popup-content.brand-content .brand-list .brand-item.selected[data-v-6628d97e]:after{display:inline-block;content:\"\";position:absolute;right:.8rem;width:.7rem;height:.48rem;background-image:url(" + escape(__webpack_require__(173)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-icon[data-v-6628d97e]{position:absolute;top:.6rem;left:-2.2rem;display:inline-block;width:1.6rem;height:1.6rem;vertical-align:top;overflow:hidden;background-color:#f3f4f5}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-name[data-v-6628d97e]{display:block;width:100%;font-size:.9rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popup-container .popup-content.brand-content .selected-brand[data-v-6628d97e]{position:relative;padding:.6rem 0 .25rem}.popup-container .popup-content.brand-content .selected-brand[data-v-6628d97e]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .selected-brand .selected-item[data-v-6628d97e]{display:inline-block;height:1.4rem;margin-left:.8rem;margin-bottom:.35rem;background-color:#f5f5f5;border-radius:.2rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-6628d97e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;padding:0 .4rem 0 .6rem;color:#333;font-size:.7rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-6628d97e]:after{display:inline-block;content:\"\";width:.6rem;height:.6rem;margin-left:.6rem;background-image:url(" + escape(__webpack_require__(180)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.popup-container .popup-toolbar[data-v-6628d97e]{width:100%;-ms-flex-align:center}.popup-container .popup-toolbar[data-v-6628d97e],.popup-container .popup-toolbar span[data-v-6628d97e]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.popup-container .popup-toolbar span[data-v-6628d97e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem;color:#333}.popup-container .popup-toolbar span[data-v-6628d97e]:before{top:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.popup-container .popup-toolbar span.confirm-btn[data-v-6628d97e]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top[data-v-6628d97e]{height:2.75rem;background-color:#f6f6f6;border-radius:.5rem .5rem 0 0}.popup-container .popup-toolbar.popup-toolbar-top[data-v-6628d97e]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-toolbar.popup-toolbar-top span[data-v-6628d97e]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding:0 .8rem;font-size:.7rem;color:#666}.popup-container .popup-toolbar.popup-toolbar-top span.confirm-btn[data-v-6628d97e]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top .title[data-v-6628d97e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;text-align:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-6628d97e]{position:relative;width:100%;height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-6628d97e]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.time-notice[data-v-6628d97e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.time-notice .divide-insignia[data-v-6628d97e]{margin:0 1.2rem;font-size:.9rem}.time-notice .time-notice-item[data-v-6628d97e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(1394);
var _datetimePicker = _interopRequireDefault(__webpack_require__(1395));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(259);
var _switch = _interopRequireDefault(__webpack_require__(260));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
var _vant = __webpack_require__(12);
var _msgDialog = _interopRequireDefault(__webpack_require__(142));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _field.default.name, _field.default), _switch.default.name, _switch.default), _popup.default.name, _popup.default), _datetimePicker.default.name, _datetimePicker.default), _toast.default.name, _toast.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      dialogMsg: {},
      weChartStatus: false,
      openNoticeFlag: 0,
      questionList: [],
      // 设置问题列表
      currentItem: {},
      // 当前设置项索引
      cashSettingPopup: false,
      // 悬赏金额弹窗
      rewardAmount: null,
      starBounty: null,
      inputObj: {
        label: '',
        placeholder: '请输入',
        unit: '',
        type: 'text'
      },
      // 当前设置项（输入框）
      saveParams: {},
      timeNotificationPopup: false,
      // 时间通知弹窗
      startNoticeTime: '09:00',
      // 开始通知时间
      endtNoticeTime: '20:00',
      // 结束通知时间
      brandPopup: false,
      // 品牌选择弹窗
      brandPopupTitle: '',
      // 品牌选择弹窗标题
      brandList: [],
      // 品牌集合
      brandSelectedList: [],
      // 已选品牌集合
      acceptMode: true,
      showQrCodePop: false,
      // 是否显示小轨在线二维码
      qrImg: ''
    };
  },
  created: function created() {
    var _this = this;
    this.getCurrentNoticeFlag();
    this.getSquareNoticeParams();
    this.queryNoticeAndQrcode();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问答设置页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  mounted: function mounted() {
    document.title = '接单设置';
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  methods: {
    /**
     * 开启问答通知&开启广场的弹框 二维码及文案
     */
    queryNoticeAndQrcode: function queryNoticeAndQrcode() {
      var _this2 = this;
      var params = {};
      if (this._Util.isApp()) {
        params.source = 'app';
      } else {
        params.source = 'weixin';
      }
      params.sys_uid = localStorage.getItem('userId');
      params.code = 'ask_open_square';
      this._Util.post(this._Api.QUERY_NOTICE_AND_QRCODE, params, function (data) {
        var dataInfo = data.dataList[0];
        _this2.qrImg = dataInfo.pic_url;
      }, function () {}, this);
    },
    /**
     * 获取当前新消息通知状态
     */
    getCurrentNoticeFlag: function getCurrentNoticeFlag() {
      var _this3 = this;
      this._Util.post(this._Api.GET_CURRENT_NOTICE_FLAG, {}, function (data) {
        _this3.openNoticeFlag = data.openNoticeFlag;
        _this3.weChartStatus = data.openNoticeFlag !== 0;
        _this3.acceptMode = data.ordersMode === 1;
      }, function () {}, this, true);
    },
    /**
     * 开启/关闭新消息通知
     */
    changeOpenNoticeFlag: function changeOpenNoticeFlag() {
      var _this4 = this;
      this._Util.post(this._Api.CHANGE_OPEN_NOTICE_FLAG, {
        openNoticeFlag: this.openNoticeFlag === 1 ? 0 : 1
      }, function (data) {
        _this4.weChartStatus = !_this4.weChartStatus;
        _this4.getCurrentNoticeFlag();
      }, function () {}, this, true);
      this._Util.sensorsCollect('element_click', {
        operation_page: '问答',
        element_name: this.openNoticeFlag === 1 ? '关闭通知' : '开启通知',
        element_content: this.openNoticeFlag === 1 ? '关闭通知' : '开启通知',
        element_class_name: '',
        element_type: '',
        element_target_url: '',
        url: location.href,
        title: '问题抢单设置',
        moudle_type: '问答',
        correlation_id: ''
      });
    },
    /**
     * 开启/关闭接单模式
     */
    changeOpenNoticeFlag2: function changeOpenNoticeFlag2() {
      var _this5 = this;
      if (this.acceptMode) {
        _dialog.default.confirm({
          title: '关闭接单模式',
          message: '关闭后不再接收通知且不可在问题广场接单',
          confirmButtonText: '暂不关闭',
          cancelButtonText: '确认关闭',
          className: 'put-que-set'
        }).then(function () {
          console.log('暂不关闭');
        }).catch(function (err) {
          console.log(err);
          _this5.saveParams.ordersMode = 0;
          _this5._Util.post(_this5._Api.SAVE_SQUARE_NOTICE, _this5.saveParams, function (data) {
            _this5.getCurrentNoticeFlag();
          }, function () {}, _this5);
        });
      } else {
        this.saveParams.ordersMode = 1;
        this._Util.post(this._Api.SAVE_SQUARE_NOTICE, this.saveParams, function (data) {
          _this5.acceptMode = true;
        }, function () {}, this);
      }
    },
    /** 
     * 浏览单张图片
     */
    viewImage: function viewImage(imgUrl) {
      this.$store.commit('openImgView', imgUrl);
    },
    /**
     * 获取问答设置列表
     */
    getSquareNoticeParams: function getSquareNoticeParams() {
      var _this6 = this;
      this._Util.post(this._Api.GET_SQUARE_NOTICE_PARAMS, {}, function (data) {
        _this6.questionList = data;
      }, function () {}, this);
    },
    /**
     * 设置问答
     * item.model 5:现金悬赏 6：星豆悬赏
     */
    siteQAndAItem: function siteQAndAItem(item, i) {
      var _this7 = this;
      this.saveParams = {};
      this.currentItem = {
        idx: item.index,
        mode: item.mode,
        subIdx: i
      };
      // 自定义设置(悬赏金额)
      if (item.mode === 5) {
        if (i === 1) {
          this.inputObj = {
            label: item.modeDesc,
            placeholder: '请输入金额',
            unit: '元',
            type: 'digit',
            param: null
          };
          this.cashSettingPopup = true;
        } else {
          this.saveParams.cashBounty = -1;
          this.saveSquareNotice();
        }
      }
      // 自定义设置(悬赏星豆)
      if (item.mode === 6) {
        if (i === 1) {
          this.inputObj = {
            label: item.modeDesc,
            placeholder: '请输入星豆数',
            unit: '个',
            type: 'digit',
            param: null
          };
          this.cashSettingPopup = true;
        } else {
          this.saveParams.starBounty = -1;
          this.saveSquareNotice();
        }
      }
      // 车辆品牌、发动机品牌、ECU品牌、排放阶段
      if (item.mode === 1 || item.mode === 2 || item.mode === 3 || item.mode === 4) {
        this.brandList = [];
        if (i === 1) {
          this.brandPopupTitle = item.modeDesc;
          this.brandSelectedList = item.checkedVos || [];
          this.brandList = item.vos || [];
          if (this.brandList.length > 0) {
            this.brandList.forEach(function (item) {
              item.selected = false;
              if (_this7.brandSelectedList.length > 0) {
                _this7.brandSelectedList.forEach(function (t) {
                  if (t.id === item.id) {
                    item.selected = true;
                  }
                });
              }
            });
          }
          this.brandPopup = true;
        } else {
          if (item.mode === 1) {
            this.saveParams.vehicleBrandIds = -1;
            this.saveParams.vehicleBrandNames = '';
          }
          if (item.mode === 2) {
            this.saveParams.engineBrandIds = -1;
            this.saveParams.engineBrandNames = '';
          }
          if (item.mode === 3) {
            this.saveParams.ecuBrandIds = -1;
            this.saveParams.ecuBrandNames = '';
          }
          if (item.mode === 4) {
            this.saveParams.dischargeStageIds = -1;
            this.saveParams.dischargeStageNames = '';
          }
          this.saveSquareNotice();
        }
      }
      // 通知时间
      if (item.mode === 7) {
        if (i === 1) {
          this.timeNotificationPopup = true;
        } else {
          this.saveParams.timeFlag = 0;
          this.saveSquareNotice();
        }
      }
      if (item.mode === 8) {
        this.saveParams.communicMode = item.itemVos[i].itemIndex;
        this.saveSquareNotice();
      }
    },
    /**
     * 自定义悬赏金额,星豆
     */
    closeCashPopup: function closeCashPopup(type) {
      _toast.default.clear();
      if (type === 'confirm') {
        if (!this.inputObj.param || this.inputObj.param < 1 && this.currentItem.mode === 5) {
          (0, _toast.default)({
            message: '请输入金额',
            duration: 1500
          });
          return;
        }
        if (!this.inputObj.param || this.inputObj.param < 1 && this.currentItem.mode === 6) {
          (0, _toast.default)({
            message: '请输入星豆数',
            duration: 1500
          });
          return;
        }
        // 确认
        this.currentItem.mode === 5 ? this.saveParams.cashBounty = this.inputObj.param : null;
        this.currentItem.mode === 6 ? this.saveParams.starBounty = this.inputObj.param : null;
        this.saveSquareNotice();
      }
      this.cashSettingPopup = false;
    },
    /**
     * 自定义品牌
     */
    closeBrandPopup: function closeBrandPopup(type) {
      this.brandPopup = false;
      if (type === 'confirm') {
        var ids = [];
        var names = [];
        this.brandSelectedList.forEach(function (item) {
          ids.push(item.id);
          names.push(item.pathName);
        });
        if (this.currentItem.mode === 1) {
          this.saveParams.vehicleBrandIds = ids.join('、');
          this.saveParams.vehicleBrandNames = names.join('、');
        }
        if (this.currentItem.mode === 2) {
          this.saveParams.engineBrandIds = ids.join('、');
          this.saveParams.engineBrandNames = names.join('、');
        }
        if (this.currentItem.mode === 3) {
          this.saveParams.ecuBrandIds = ids.join('、');
          this.saveParams.ecuBrandNames = names.join('、');
        }
        if (this.currentItem.mode === 4) {
          this.saveParams.dischargeStageIds = ids.join('、');
          this.saveParams.dischargeStageNames = names.join('、');
        }
        this.saveSquareNotice();
      }
    },
    /**
     * 选择自定义品牌
     */
    selcteBrand: function selcteBrand(item) {
      item.selected = !item.selected;
      if (item.selected) {
        this.brandSelectedList.push(item);
      } else {
        this.brandSelectedList.splice(this.brandSelectedList.indexOf(item), 1);
      }
    },
    /**
     * 删除自定义品牌
     */
    deleteBrand: function deleteBrand(item) {
      this.brandSelectedList.splice(this.brandSelectedList.indexOf(item), 1);
      if (this.brandList.length > 0) {
        this.brandList.forEach(function (ele) {
          if (item.id === ele.id) {
            item.selected = false;
          }
        });
      }
    },
    /**
     * 自定义通知时间
     */
    closeTimeNotificationPopup: function closeTimeNotificationPopup(type) {
      this.timeNotificationPopup = false;
      if (type === 'confirm') {
        this.saveParams.timeFlag = 1;
        this.saveParams.startTime = this.startNoticeTime;
        this.saveParams.endTime = this.endtNoticeTime;
        this.saveSquareNotice();
      }
    },
    /**
     * 编辑问答设置
     */
    saveSquareNotice: function saveSquareNotice() {
      var _this8 = this;
      this.saveParams.ordersMode = this.acceptMode ? 1 : 0;
      this._Util.post(this._Api.SAVE_SQUARE_NOTICE, this.saveParams, function (data) {
        // 设置当前项选中
        _this8.questionList.forEach(function (item) {
          if (item.index === _this8.currentItem.idx && _this8.currentItem.subIdx === 0) {
            item.checkedVos = []; // 清空已选项
          }
          if (item.index === _this8.currentItem.idx && item.itemVos.length > 0) {
            item.itemVos.forEach(function (subItem, i) {
              subItem.selectFlag = _this8.currentItem.subIdx === i ? 1 : null;
            });
            item.itemValue = data;
          }
        });
      }, function () {}, this);
    },
    openCall: function openCall(url) {
      window.location.href = url;
    },
    blurInput: function blurInput() {
      window.scrollTo(0, document.documentElement.clientHeight);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"ask-set"},[_c('div',{staticClass:"setting"},[_c('div',{staticClass:"setting-item hairline"},[_c('img',{attrs:{"src":__webpack_require__(1396)}}),_vm._v(" "),_c('p',[_vm._v("接单提醒")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.weChartStatus ? '已开启': (_vm.acceptMode ? '3天内不再提醒' : '未开启')))]),_vm._v(" "),_c('van-switch',{attrs:{"value":_vm.weChartStatus,"active-color":"#177AFA","inactive-color":"#C2C8D0"},on:{"input":function($event){return _vm.changeOpenNoticeFlag()}}})],1)]),_vm._v(" "),(_vm.acceptMode)?_c('div',{staticClass:"settings-wrap"},[_c('div',{staticClass:"head"},[_c('h2',[_vm._v("提醒设置")]),_vm._v(" "),_c('p',[_vm._v("有新问题时，将通过"),_c('span',{on:{"click":function($event){_vm.showQrCodePop = true}}},[_vm._v("小轨在线")]),_vm._v("公众号通知你")])]),_vm._v(" "),_c('div',{staticClass:"settings-que-list"},_vm._l((_vm.questionList),function(item,index){return _c('div',{key:index,staticClass:"item",class:{'no-margin': index === 1 || index === 3 || index === 5 || index === 6 || index === 7, 'border-bottom': index === 0 || index === 2 || index === 4 }},[_c('h3',[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('div',{staticClass:"option-wrap"},_vm._l((item.itemVos),function(subItem,i){return _c('span',{key:i,staticClass:"option-1",class:{'active': subItem.selectFlag === 1},on:{"click":function($event){return _vm.siteQAndAItem(item, i)}}},[((subItem.selectFlag === 1 && item.itemValue && item.itemValue !== '' && item.mode !== 8) || (item.mode === 8 && subItem.itemIndex === 2 && item.phoneModeFlag === 0))?_c('em'):_vm._e(),_vm._v("\n              "+_vm._s(subItem.itemName)),(subItem.itemSuffixName)?_c('i',[_vm._v(_vm._s(subItem.itemSuffixName))]):_vm._e()])}),0),_vm._v(" "),(item.itemValue && item.itemValue !== '' && item.mode !== 8)?_c('div',{staticClass:"tip"},[_c('div',{staticClass:"tip-inner"},[_c('p',{domProps:{"innerHTML":_vm._s(item.itemValue)}}),_vm._v(" "),_c('span',{staticClass:"close-icon",on:{"click":function($event){return _vm.siteQAndAItem(item, 0)}}})])]):_vm._e(),_vm._v(" "),(item.mode === 8 && item.phoneModeFlag === 0)?_c('div',{staticClass:"tip call-tip"},[_c('div',{staticClass:"tip-inner"},[_c('p',[_vm._v("注：电话沟通方式正在内测中")]),_c('span',{on:{"click":function($event){return _vm.openCall(item.phoneModeUrl)}}},[_vm._v("点击申请开通")])])]):_vm._e()])}),0)]):_vm._e(),_vm._v(" "),(_vm.acceptMode)?_c('div',{staticClass:"accept-mode setting"},[_c('div',{staticClass:"setting-item"},[_c('img',{attrs:{"src":__webpack_require__(1397)}}),_vm._v(" "),_c('p',[_vm._v("接单模式")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.acceptMode ? '已开启': '未开启'))]),_vm._v(" "),_c('van-switch',{attrs:{"value":_vm.acceptMode,"active-color":"#177AFA","inactive-color":"#C2C8D0"},on:{"input":function($event){return _vm.changeOpenNoticeFlag2()}}})],1),_vm._v(" "),_c('p',{staticClass:"tip"},[_vm._v("关闭后不再接收通知且不可在问题广场接单")])]):_vm._e()]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container reward-amount-popup",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.cashSettingPopup),callback:function ($$v) {_vm.cashSettingPopup=$$v},expression:"cashSettingPopup"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"form-cell"},[(_vm.inputObj.label && _vm.inputObj.label !== '')?_c('div',{staticClass:"label"},[_vm._v(_vm._s(_vm.inputObj.label))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"value"},[_c('van-field',{attrs:{"type":_vm.inputObj.type,"input-align":"right","placeholder":_vm.inputObj.label},on:{"blur":function($event){return _vm.blurInput()}},model:{value:(_vm.inputObj.param),callback:function ($$v) {_vm.$set(_vm.inputObj, "param", $$v)},expression:"inputObj.param"}}),_c('span',[_vm._v(_vm._s(_vm.inputObj.unit))])],1)])]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeCashPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeCashPopup('confirm')}}},[_vm._v("确认")])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.timeNotificationPopup),callback:function ($$v) {_vm.timeNotificationPopup=$$v},expression:"timeNotificationPopup"}},[_c('div',{staticClass:"popup-content time-notice"},[_c('div',{staticClass:"time-notice-item"},[_c('van-datetime-picker',{attrs:{"type":"time","show-toolbar":false,"visible-item-count":"3"},model:{value:(_vm.startNoticeTime),callback:function ($$v) {_vm.startNoticeTime=$$v},expression:"startNoticeTime"}})],1),_vm._v(" "),_c('div',{staticClass:"divide-insignia"},[_vm._v("-")]),_vm._v(" "),_c('div',{staticClass:"time-notice-item"},[_c('van-datetime-picker',{attrs:{"type":"time","show-toolbar":false,"visible-item-count":"3"},model:{value:(_vm.endtNoticeTime),callback:function ($$v) {_vm.endtNoticeTime=$$v},expression:"endtNoticeTime"}})],1)]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeTimeNotificationPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeTimeNotificationPopup('confirm')}}},[_vm._v("确认")])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container popup-container-1",attrs:{"round":true,"close-on-click-overlay":false,"position":"bottom"},model:{value:(_vm.brandPopup),callback:function ($$v) {_vm.brandPopup=$$v},expression:"brandPopup"}},[_c('div',{staticClass:"popup-toolbar popup-toolbar-top hairline"},[_c('span',{on:{"click":function($event){return _vm.closeBrandPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('p',{staticClass:"title"},[_vm._v(_vm._s(_vm.brandPopupTitle))]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeBrandPopup('confirm')}}},[_vm._v("确认")])]),_vm._v(" "),_c('div',{staticClass:"popup-content brand-content"},[(_vm.brandSelectedList.length)?_c('div',{staticClass:"selected-brand hairline"},_vm._l((_vm.brandSelectedList),function(b,i){return _c('div',{key:i,staticClass:"selected-item",on:{"click":function($event){return _vm.deleteBrand(b)}}},[_c('span',{staticClass:"meta"},[_vm._v(_vm._s(b.pathName))])])}),0):_vm._e(),_vm._v(" "),_c('div',{staticClass:"brand-list"},_vm._l((_vm.brandList),function(item,index){return _c('div',{key:index,staticClass:"brand-item hairline",class:{'selected': item.selected},on:{"click":function($event){return _vm.selcteBrand(item)}}},[_c('img',{staticClass:"brand-icon",attrs:{"src":item.pathImg,"alt":""}}),_c('span',{staticClass:"brand-name"},[_vm._v(_vm._s(item.pathName))])])}),0)])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container reward-amount-popup qrcode",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.showQrCodePop),callback:function ($$v) {_vm.showQrCodePop=$$v},expression:"showQrCodePop"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"img-box"},[_c('img',{staticClass:"bg",attrs:{"src":__webpack_require__(1398)}}),_vm._v(" "),_c('img',{staticClass:"qrcode",attrs:{"src":_vm.qrImg}}),_vm._v(" "),_c('img',{staticClass:"close-btn",attrs:{"src":__webpack_require__(263)},on:{"click":function($event){_vm.showQrCodePop = false}}})]),_vm._v(" "),_c('p',[_vm._v("长按识别二维码")]),_vm._v(" "),_c('div',{staticClass:"tip"},[_vm._v("关注「小轨在线」，接收问答通知")])])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(682);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_caa88a2c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1281);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3507)
  __webpack_require__(3509)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-caa88a2c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_caa88a2c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_caa88a2c_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3508);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b17d63ac", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-dialog.put-que0{width:89.3%;border-radius:.4rem}.van-dialog.put-que0 .van-dialog__header{padding-top:1.6rem;color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.van-dialog.put-que0 .van-dialog__message{padding:0;font-size:.85rem;line-height:1.35rem;color:#666;margin-top:.6rem;padding-bottom:1.4rem;width:83%;margin-left:8.5%}.van-dialog.put-que0 .van-button--default{height:2.45rem;color:#333}.van-dialog.put-que0 .van-button--default .van-button__text{font-size:.9rem}.van-dialog.put-que0 .van-dialog__confirm{color:#177afa}*{font-family:PingFangSC-Regular,PingFang SC}.put-progress{position:relative}.put-progress .van-circle__text{top:40%;color:#fff;font-size:.9rem;font-weight:600!important}.put-progress svg{overflow:inherit!important}.put-progress svg .van-circle__layer{stroke-width:100px!important}.put-progress span{display:block;position:absolute;width:100%;text-align:center;bottom:1rem;font-size:.5rem;color:#fff;opacity:.5}.page-content .van-overlay{background:rgba(0,0,0,.6)!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3510);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c38f1908", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-caa88a2c]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.qa-btn[data-v-caa88a2c]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#177afa}.qa-btn.btn1[data-v-caa88a2c]{border-radius:.3rem;border:.05rem solid #177afa}.page[data-v-caa88a2c]{height:auto!important;min-height:100%;background-color:#f4f5f6;overflow:hidden}.page-top[data-v-caa88a2c]{padding:.1rem 0;background:#fff;position:relative}.page-top .long[data-v-caa88a2c]{position:absolute;height:1.6rem;width:0;top:.1rem;left:0;z-index:2;background:-webkit-gradient(linear,left top,right top,from(#2ea8fd),to(#177afa));background:linear-gradient(90deg,#2ea8fd,#177afa);border-radius:0 2.5rem 2.5rem 0}.page-top .mask[data-v-caa88a2c]{position:absolute;height:1.6rem;width:100%;top:.1rem;left:0;z-index:1;background:#f0f0f0}.page-top .progress[data-v-caa88a2c]{position:relative;z-index:10;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:1.6rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .6rem;overflow:hidden}.page-top .progress span[data-v-caa88a2c]{color:#333;font:14px/1 PingFangSC-Regular}.page-content[data-v-caa88a2c]{margin:1rem .6rem 2.5rem}.page-content .basic p[data-v-caa88a2c]{color:#999;font:700 14px/1rem PingFangSC-Semibold}.page-content .basic ul li[data-v-caa88a2c]{border-radius:.3rem;background:#fff;margin-top:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.8rem .6rem}.page-content .basic ul li .left[data-v-caa88a2c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.page-content .basic ul li .left img[data-v-caa88a2c]{width:.3rem;height:.4rem;margin:0 .6rem;position:relative;top:.4rem}.page-content .basic ul li span[data-v-caa88a2c]{color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.page-content .basic ul li .right[data-v-caa88a2c]{padding-right:.6rem;color:#ff3f3f;font:700 14px/1rem PingFangSC-Semibold;background:url(" + escape(__webpack_require__(3511)) + ") 100% no-repeat;background-size:.3rem .5rem}.page-content .basic ul li>img[data-v-caa88a2c]{width:.8rem;height:.8rem}.page-content .next-step[data-v-caa88a2c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:2rem;height:2.5rem;background:#177afa;color:#fff;font:18px/1.25rem PingFangSC-Regular;border-radius:1.25rem}.page-content .van-popup--bottom[data-v-caa88a2c]{border-radius:.4rem .4rem 0 0}.page-content .pop-box[data-v-caa88a2c]{position:absolute;width:100%;left:0;top:0;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.page-content .pop-box .title[data-v-caa88a2c]{height:2.75rem;color:#333;font:700 16px/2.75rem PingFangSC-Semibold;background:#f6f6f6;text-align:center;position:relative}.page-content .pop-box .title span[data-v-caa88a2c]{position:absolute;left:0;top:0;padding:0 .8rem;color:#666;font:14px/2.75rem PingFangSC-Regular}.page-content .pop-box .title p[data-v-caa88a2c]{position:absolute;right:0;top:0;padding:0 .8rem;color:#177afa;font:14px/2.75rem PingFangSC-Regular}.page-content .pop-box .cont[data-v-caa88a2c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;position:relative}.page-content .pop-box .cont .step-box[data-v-caa88a2c]{position:relative;font-size:0;height:2.325rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem}.page-content .pop-box .cont .step-box[data-v-caa88a2c]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.page-content .pop-box .cont .step-box .live[data-v-caa88a2c]{display:inline-block;color:#177afa;font:16px/2.325rem PingFangSC-Regular;height:100%;position:relative;margin-right:1.5rem}.page-content .pop-box .cont .step-box .live[data-v-caa88a2c]:after{content:\"\";position:absolute;bottom:0;left:50%;margin-left:-.6rem;height:.15rem;width:1.2rem;background:#177afa;border-radius:.1rem}.page-content .pop-box .cont .step-box .live.active[data-v-caa88a2c]{color:#177afa!important}.page-content .pop-box .cont .step-box .live.live-on[data-v-caa88a2c]{color:#333}.page-content .pop-box .cont .step-box .live.live-on[data-v-caa88a2c]:after{content:\"\";position:absolute;bottom:0;left:50%;height:0;width:0}.page-content .pop-box .cont .step-box .live.live-two[data-v-caa88a2c]{margin-left:1.5rem}.page-content .pop-box .cont .panel-cont[data-v-caa88a2c]{margin-bottom:.5rem;height:-webkit-calc(100% - 2.325rem);height:calc(100% - 2.325rem);overflow-y:auto}.page-content .pop-box .cont .panel-cont .search-bar[data-v-caa88a2c]{position:relative;margin-top:.6rem;padding:0 .6rem}.page-content .pop-box .cont .panel-cont .search-bar .search-icon[data-v-caa88a2c]{position:absolute;top:.5rem;left:1.2rem;display:inline-block;width:1rem;height:1rem;background-image:url(" + escape(__webpack_require__(306)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.page-content .pop-box .cont .panel-cont .search-bar input[data-v-caa88a2c]{height:1.8rem;padding:0 .6rem 0 1.8rem;border-radius:.2rem;background-color:#f5f5f5;overflow:hidden;font-size:.7rem}.page-content .pop-box .cont .panel-cont .search-bar input[data-v-caa88a2c]::-webkit-input-placeholder{color:#999;font-size:.7rem}.page-content .pop-box .cont .panel-cont .search-bar input[data-v-caa88a2c]:-ms-input-placeholder{color:#999;font-size:.7rem}.page-content .pop-box .cont .panel-cont .search-bar input[data-v-caa88a2c]::placeholder{color:#999;font-size:.7rem}.page-content .pop-box .cont .panel-cont .list[data-v-caa88a2c]{padding-left:2.8rem}.page-content .pop-box .cont .panel-cont .list .item[data-v-caa88a2c]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:1.8rem}.page-content .pop-box .cont .panel-cont .list .item[data-v-caa88a2c]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.page-content .pop-box .cont .panel-cont .list .item .icon[data-v-caa88a2c]{position:absolute;top:.7rem;left:-2.1rem;display:inline-block;width:1.4rem;height:1.4rem;vertical-align:top;overflow:hidden;background-color:#f3f4f5}.page-content .pop-box .cont .panel-cont .list .item .name[data-v-caa88a2c]{display:block;width:100%;font-size:.9rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-content .pop-box .cont .panel-cont .list .item .name.jump[data-v-caa88a2c]{color:#666}.page-content .pop-box .cont .panel-cont .list .item .name.jump i[data-v-caa88a2c]{color:#177afa}.page-content .pop-box .cont .panel-cont .list-btn .btn2[data-v-caa88a2c]{height:2.65rem}.page-content .panel-top[data-v-caa88a2c]{position:relative;background-color:#fff;border-radius:.3rem .3rem 0 0;overflow:hidden}.page-content .panel-top[data-v-caa88a2c]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.page-content .panel-top .panel-title[data-v-caa88a2c]{padding:.8rem .6rem;line-height:1;font-size:1rem;color:#333;font-weight:600}.page-content .panel-top .panel-step[data-v-caa88a2c]{position:relative;padding:0 .6rem}.page-content .panel-top .panel-step .brand-model[data-v-caa88a2c]{display:inline-block;margin-right:1.5rem;padding-bottom:.4rem}.page-content .panel-top .panel-step .brand-model span[data-v-caa88a2c]{position:relative;font-size:.8rem;line-height:1.13rem;color:#333}.page-content .panel-top .panel-step .brand-model span.select-btn[data-v-caa88a2c]{color:#177afa}.page-content .panel-top .panel-step .brand-model span.select-btn[data-v-caa88a2c]:after{position:absolute;bottom:-.4rem;left:50%;margin-left:-.6rem;display:inline-block;content:\"\";width:1.2rem;height:.15rem;background-color:#177afa;border-radius:.1rem}.page-content .panel-cont[data-v-caa88a2c]{margin-bottom:.5rem;overflow:hidden}.page-content .panel-cont .search-bar[data-v-caa88a2c]{position:relative;margin-top:.6rem;padding:0 .6rem}.page-content .panel-cont .search-bar .search-icon[data-v-caa88a2c]{position:absolute;top:.3rem;left:1.2rem;display:inline-block;width:1rem;height:1rem;background-image:url(" + escape(__webpack_require__(306)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.page-content .panel-cont .search-bar input[data-v-caa88a2c]{height:1.6rem;padding:0 .6rem 0 1.8rem;border-radius:.2rem;background-color:#f5f5f5;overflow:hidden;font-size:.7rem}.page-content .panel-cont .search-bar input[data-v-caa88a2c]::-webkit-input-placeholder{color:#999;font-size:.7rem}.page-content .panel-cont .search-bar input[data-v-caa88a2c]:-ms-input-placeholder{color:#999;font-size:.7rem}.page-content .panel-cont .search-bar input[data-v-caa88a2c]::placeholder{color:#999;font-size:.7rem}.page-content .panel-cont .list[data-v-caa88a2c]{padding-left:2.8rem}.page-content .panel-cont .list .item[data-v-caa88a2c]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:1.8rem}.page-content .panel-cont .list .item[data-v-caa88a2c]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.page-content .panel-cont .list .item .icon[data-v-caa88a2c]{position:absolute;top:.7rem;left:-2.1rem;display:inline-block;width:1.4rem;height:1.4rem;vertical-align:top;overflow:hidden;background-color:#f3f4f5}.page-content .panel-cont .list .item .name[data-v-caa88a2c]{display:block;width:100%;font-size:.9rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-content .panel-cont .list-btn .btn2[data-v-caa88a2c]{height:2.65rem}.van-sticky.van-sticky--fixed .panel-top[data-v-caa88a2c]{margin:0 .6rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/arror_red.e0283c6.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(175);
var _sticky = _interopRequireDefault(__webpack_require__(132));
__webpack_require__(799);
var _circle = _interopRequireDefault(__webpack_require__(800));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _circle.default.name, _circle.default), _sticky.default.name, _sticky.default), _popup.default.name, _popup.default), _dialog.default.name, _dialog.default),
  data: function data() {
    return {
      currentRate: 0,
      questionCompletionRate: 0,
      questionId: null,
      // 草稿ID
      brand: {},
      // 品牌
      model: {},
      // 型号
      currentTabIdx: 0,
      // 弹窗内的tab索引
      curIndex: 1,
      // 当前选择的基本信息索引   获取车辆1   发动机2   ECU品牌 3     排放标准4，
      brandWord: '',
      modelWord: '',
      brandList: [],
      modelList: [],
      queStatus: 1,
      carItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      },
      // 选择的车辆信息
      engineItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      },
      // 选择的发动机的相关数据
      ECUItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      },
      // 选择的Ecu的相关数据
      dischargeItem: {
        brandId: '',
        modelId: '',
        brandName: '',
        modelName: ''
      },
      // 选择的排放姐夫安相关的数据
      showPop: false,
      popTitle: '' // 弹窗的标题
    };
  },
  watch: {
    showPop: function showPop(val) {
      if (val) {
        this.currentTabIdx = 0;
      } else {
        this.currentTabIdx = 0;
        this.brandWord = '';
        this.modelWord = '';
        this.brand = {};
        this.model = {};
        this.brandList = [];
        this.modelList = [];
      }
    },
    questionCompletionRate: function questionCompletionRate(val) {
      this.currentRate = val;
    }
  },
  created: function created() {
    this.getQAMaskParams();
    this.getQuestionDraft();
  },
  mounted: function mounted() {
    var that = this;
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          that.getQAMaskParams();
          that.getQuestionDraft();
        });
      }, 300);
    }
  },
  methods: {
    /**
     * 点击确认按钮
     */
    confirm: function confirm() {
      if (this.curIndex === 1) {
        this.carItem.brandName = this.brand.pathName;
        this.carItem.modelName = this.model.pathName;
      }
      if (this.curIndex === 2) {
        this.engineItem.brandName = this.brand.pathName;
        this.engineItem.modelName = this.model.pathName;
      }
      if (this.curIndex === 3) {
        this.ECUItem.brandName = this.brand.pathName;
        this.ECUItem.modelName = this.model.pathName;
      }
      if (this.curIndex === 4) {
        this.dischargeItem.brandName = this.brand.pathName;
      }
      this.saveQuestion(this.brand, this.model);
      this.showPop = false;
    },
    /**
     * 打开底部选择框
     * @param {Object} item 点击的那个元素
     * @param {Number} index 点击元素的索引
     */
    showPopFn: function showPopFn(index) {
      this.curIndex = index;
      if (index === 1) {
        this.popTitle = '请选择车辆品牌型号';
        this.brand = {
          id: this.carItem.brandId,
          pathName: this.carItem.brandName
        };
        this.model = {
          id: this.carItem.modelId,
          pathName: this.carItem.modelName
        };
      } else if (index === 2) {
        this.popTitle = '请选择车辆发动机品牌型号';
        this.brand = {
          id: this.engineItem.brandId,
          pathName: this.engineItem.brandName
        };
        this.model = {
          id: this.engineItem.modelId,
          pathName: this.engineItem.modelName
        };
      } else if (index === 3) {
        this.popTitle = '请选择车辆ECU品牌型号';
        this.brand = {
          id: this.ECUItem.brandId,
          pathName: this.ECUItem.brandName
        };
        this.model = {
          id: this.ECUItem.modelId,
          pathName: this.ECUItem.modelName
        };
      } else {
        this.popTitle = '请选择车辆排放阶段';
        this.brand = {
          id: this.dischargeItem.brandId,
          pathName: this.dischargeItem.brandName
        };
      }
      this.getQAMaskParams();
      this.showPop = true;
    },
    switchBrandAndModel: function switchBrandAndModel(idx) {
      this.currentTabIdx = idx;
      if (idx === 1 && !this.modelList.length) {
        this.getQAMaskParams(this.brand.id);
      }
    },
    /**
     * 获取草稿
     */
    getQuestionDraft: function getQuestionDraft() {
      var _this = this;
      this._Util.post(this._Api.GET_QUESTION_DRAFT, {}, function (data) {
        if (!data && _this.$route.query.questionNo && typeof _this.$route.query.questionNo !== 'undefined') {
          _this.getQuestionDetail();
          return;
        }
        if (!data) {
          data = {};
        }
        localStorage.removeItem('draftStatus');
        _this.questionId = data.id;
        _this.questionCompletionRate = data.questionCompletionRate ? Number(data.questionCompletionRate) : 0;
        _this.carItem.brandId = data.vehicleBrandId;
        _this.carItem.modelId = data.vehicleModeId;
        _this.carItem.brandName = data.vehicleBrandName;
        _this.carItem.modelName = data.vehicleModeName;
        _this.engineItem.brandId = data.engineBrandId;
        _this.engineItem.modelId = data.engineModeId;
        _this.engineItem.brandName = data.engineBrandName;
        _this.engineItem.modelName = data.engineModeName;
        _this.ECUItem.brandId = data.ecuBrandId;
        _this.ECUItem.modelId = data.ecuModeId;
        _this.ECUItem.brandName = data.ecuBrandName;
        _this.ECUItem.modelName = data.ecuModeName;
        _this.dischargeItem.brandId = data.dischargeStageId;
        _this.dischargeItem.brandName = data.dischargeStageName;

        // this.brand = { id: data.vehicleBrandId, pathName: data.vehicleBrandName }
        // this.model = { id: data.vehicleModeId, pathName: data.vehicleModeName }

        // if (this.brand.id) {
        //   setTimeout(() => {
        //     this.selectBrand(this.brand, 'draft')
        //   }, 300)
        // }
      }, function () {}, this);
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this2 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var info = data.vo;
        _this2.questionId = info.id;
        _this2.queStatus = info.status;
        _this2.questionCompletionRate = info.questionCompletionRate && Number(info.questionCompletionRate);
        _this2.carItem.brandId = info.vehicleBrandId;
        _this2.carItem.modelId = info.vehicleModeId;
        _this2.carItem.brandName = info.vehicleBrandName;
        _this2.carItem.modelName = info.vehicleModeName;
        _this2.engineItem.brandId = info.engineBrandId;
        _this2.engineItem.modelId = info.engineModeId;
        _this2.engineItem.brandName = info.engineBrandName;
        _this2.engineItem.modelName = info.engineModeName;
        _this2.ECUItem.brandId = info.ecuBrandId;
        _this2.ECUItem.modelId = info.ecuModeId;
        _this2.ECUItem.brandName = info.ecuBrandName;
        _this2.ECUItem.modelName = info.ecuModeName;
        _this2.dischargeItem.brandId = info.dischargeStageId;
        _this2.dischargeItem.brandName = info.dischargeStageName;

        // if (this.brand.id) {
        //   setTimeout(() => {
        //     this.selectBrand(this.brand, 'draft')
        //   }, 300)
        // }
      }, function () {}, this);
    },
    /**
     * 创建问题，保存草稿
     * @param {Number} brand 品牌
     * @param {Number} model 型号
     */
    saveQuestion: function saveQuestion(brand, model) {
      var _this3 = this;
      var params = {};
      params.id = this.questionId;
      params.status = localStorage.getItem('draftStatus') || this.queStatus; // 草稿标识 1
      params.questionCompletionRate = this.questionCompletionRate;
      // 车辆品牌和型号
      if (this.curIndex === 1) {
        this.carItem.brandId = brand && brand.id;
        this.carItem.modelId = model && model.id;
        this.carItem.brandName = brand && brand.pathName;
        this.carItem.modelName = model && model.pathName;
        params.vehicleBrandId = brand && brand.id || '-1';
        params.vehicleBrandName = brand && brand.pathName;
        params.vehicleModeId = model && model.id || '-1';
        params.vehicleModeName = model && model.pathName;
      }
      // 发动机品牌及型号
      if (this.curIndex === 2) {
        this.engineItem.brandId = brand && brand.id;
        this.engineItem.modelId = model && model.id;
        this.engineItem.brandName = brand && brand.pathName;
        this.engineItem.modelName = model && model.pathName;
        params.engineBrandId = brand && brand.id || '-1';
        params.engineBrandName = brand && brand.pathName;
        params.engineModeId = model && model.id || '-1';
        params.engineModeName = model && model.pathName;
      }
      // ECU品牌及型号
      if (this.curIndex === 3) {
        this.ECUItem.brandId = brand && brand.id;
        this.ECUItem.modelId = model && model.id;
        this.ECUItem.brandName = brand && brand.pathName;
        this.ECUItem.modelName = model && model.pathName;
        params.ecuBrandId = brand && brand.id || '-1';
        params.ecuBrandName = brand && brand.pathName;
        params.ecuModeId = model && model.id || '-1';
        params.ecuModeName = model && model.pathName;
      }
      // 排放阶段
      if (this.curIndex === 4) {
        this.dischargeItem.brandId = brand && brand.id;
        this.dischargeItem.brandName = brand && brand.pathName;
        params.dischargeStageId = brand && brand.id || '-1';
        params.dischargeStageName = brand && brand.pathName;
      }
      this._Util.post(this._Api.SAVE_QUESTION, params, function (data) {
        _this3.questionId = data;
        if (model && model.id) {
          // this.editBrandOrModel(1)
        }
      }, function () {}, this, true);
    },
    /**
     * 获取车辆1、发动机2、ECU品牌3、排放标准4，根据品牌id, 获取类型集合
     * @param {Number} id 品牌Id
     */
    getQAMaskParams: function getQAMaskParams(id, keyWord) {
      var _this4 = this;
      this._Util.post(this._Api.GET_QA_ASK_PARAMS, {
        id: id,
        keyWord: keyWord,
        moudle: this.curIndex
      }, function (data) {
        if (_this4.currentTabIdx === 0) {
          _this4.brandList = data;
        } else {
          _this4.modelList = data;
        }
      }, function () {}, this);
    },
    /**
     * 搜索品牌和型号
     */
    search: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(id, keyWord) {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this.getQAMaskParams(id, keyWord);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 选择品牌
     */
    selectBrand: function selectBrand(item, type) {
      if (type !== 'draft') {
        if (!this.brand || !(this.brand && this.brand.id)) {
          var addNum = 3;
          if (this.curIndex === 4) {
            addNum = 5;
          }
          this.questionCompletionRate = this.questionCompletionRate + addNum;
        }
        if (this.model && this.model.id) {
          this.questionCompletionRate = this.questionCompletionRate - 2;
        }
        this.brand = item;
        this.model = {};
      }
      this.currentTabIdx = 1;
      this.modelList = [];
      if (this.curIndex !== 4) {
        console.log(222);
        this.getQAMaskParams(item.id);
      } else {
        this.confirm();
      }
    },
    /**
     * 选择型号
     */
    selectModel: function selectModel(item) {
      if (!this.model.id) {
        this.questionCompletionRate = this.questionCompletionRate + 2;
      }
      this.model = item;
      this.confirm();
    },
    /**
     * 跳过
     */
    editBrandOrModel: function editBrandOrModel(type) {
      if (type === 0) {
        if (this.curIndex === 4) {
          if (this.brand && this.brand.id) {
            this.questionCompletionRate = this.questionCompletionRate - 5;
          }
        } else {
          if (this.brand.id && this.model.id && this.model.id > 0) {
            this.questionCompletionRate = this.questionCompletionRate - 5;
          } else if (this.brand.id && (!this.model.id || this.model.id === -1)) {
            this.questionCompletionRate = this.questionCompletionRate - 3;
          }
        }
        this.brand = {};
        this.model = {};
        this.confirm();
      } else {
        if (this.model && this.model.id) {
          this.questionCompletionRate = this.questionCompletionRate - 2;
        }
        this.model = {};
        this.confirm();
      }
    },
    /**
     * 点击下一步
     */
    nextStepFn: function nextStepFn(type) {
      var _this5 = this;
      this._Util.sensorsCollect('element_click', {
        $element_name: '提问-下一步',
        $element_content: '提问-下一步',
        $element_class_name: 'next-step',
        $element_type: 'div',
        $element_target_url: location.origin + '/v2/questionsAndAnswers/putQuestion' + type + (this.$route.query.questionNo || typeof this.$route.query.questionNo !== 'undefined' ? '?questionNo=' + this.$route.query.questionNo : ''),
        $url: window.location.href,
        $title: '提问',
        moudle_type: '问答',
        correlation_id: '',
        operation_page: '问答'
      });
      if (!this.carItem.brandName && !this.carItem.modelName || this.engineItem.brandName && !this.engineItem.modelName || !this.ECUItem.brandName && !this.ECUItem.modelName || !this.dischargeItem.brandName) {
        _dialog.default.confirm({
          title: '提示',
          message: '车辆信息越完整，接单率越高，解决问题越快',
          confirmButtonText: '进入下一步',
          showCancelButton: true,
          cancelButtonText: '继续完善',
          closeOnPopstate: true,
          className: 'put-que0'
        }).then(function () {
          if (_this5._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: "putQuestion".concat(type).concat(new Date().getTime()),
                url: location.origin + '/v2/questionsAndAnswers/putQuestion' + type + (_this5.$route.query.questionNo || typeof _this5.$route.query.questionNo !== 'undefined' ? '?questionNo=' + _this5.$route.query.questionNo : '')
              }
            });
          } else {
            _this5.$router.push({
              name: "putQuestion".concat(type),
              query: {
                questionNo: _this5.$route.query.questionNo
              }
            });
          }
        }).catch(function (err) {
          console.log('继续完善' + err);
        });
      } else {
        if (this._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: "putQuestion".concat(type).concat(new Date().getTime()),
              url: location.origin + '/v2/questionsAndAnswers/putQuestion' + type + (this.$route.query.questionNo || typeof this.$route.query.questionNo !== 'undefined' ? '?questionNo=' + this.$route.query.questionNo : '')
            }
          });
        } else {
          this.$router.push({
            name: "putQuestion".concat(type),
            query: {
              questionNo: this.$route.query.questionNo
            }
          });
        }
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page pust-ques0"},[_c('div',{staticClass:"page-top"},[_c('div',{staticClass:"long",style:({'width': _vm.currentRate ? (_vm.currentRate <= 3 ? 4 : _vm.currentRate) + '%' : 0})}),_vm._v(" "),_c('div',{staticClass:"mask"}),_vm._v(" "),_c('div',{staticClass:"progress"},[_c('span',[_vm._v("问题完整度越高，接单率越高")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.currentRate)+"%")])])]),_vm._v(" "),_c('div',{staticClass:"page-content"},[_c('div',{staticClass:"basic"},[_c('p',[_vm._v("车辆基本信息")]),_vm._v(" "),_c('ul',[_c('li',{on:{"click":function($event){return _vm.showPopFn(1)}}},[(!_vm.carItem.brandName)?[_c('span',[_vm._v("车辆品牌")])]:_c('div',{staticClass:"left"},[_c('span',[_vm._v(_vm._s(_vm.carItem.brandName))]),(_vm.carItem.modelName)?_c('img',{attrs:{"src":__webpack_require__(864),"alt":""}}):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.carItem.modelName))])]),_vm._v(" "),(!_vm.carItem.brandName && !_vm.carItem.modelName)?_c('div',{staticClass:"right"},[_vm._v("请选择")]):_c('img',{attrs:{"src":__webpack_require__(96),"alt":""}})],2),_vm._v(" "),_c('li',{on:{"click":function($event){return _vm.showPopFn(2)}}},[(!_vm.engineItem.brandName)?[_c('span',[_vm._v("发动机")])]:_c('div',{staticClass:"left"},[_c('span',[_vm._v(_vm._s(_vm.engineItem.brandName))]),(_vm.engineItem.modelName)?_c('img',{attrs:{"src":__webpack_require__(864),"alt":""}}):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.engineItem.modelName))])]),_vm._v(" "),(!_vm.engineItem.brandName && !_vm.engineItem.modelName)?_c('div',{staticClass:"right"},[_vm._v("请选择")]):_c('img',{attrs:{"src":__webpack_require__(96),"alt":""}})],2),_vm._v(" "),_c('li',{on:{"click":function($event){return _vm.showPopFn(3)}}},[(!_vm.ECUItem.brandName)?[_c('span',[_vm._v("ECU型号")])]:_c('div',{staticClass:"left"},[_c('span',[_vm._v(_vm._s(_vm.ECUItem.brandName))]),(_vm.ECUItem.modelName)?_c('img',{attrs:{"src":__webpack_require__(864),"alt":""}}):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.ECUItem.modelName))])]),_vm._v(" "),(!_vm.ECUItem.brandName && !_vm.ECUItem.modelName)?_c('div',{staticClass:"right"},[_vm._v("请选择")]):_c('img',{attrs:{"src":__webpack_require__(96),"alt":""}})],2),_vm._v(" "),_c('li',{on:{"click":function($event){return _vm.showPopFn(4)}}},[(!_vm.dischargeItem.brandName)?[_c('span',[_vm._v("排放阶段")])]:_c('div',{staticClass:"left"},[_c('span',[_vm._v(_vm._s(_vm.dischargeItem.brandName))])]),_vm._v(" "),(!_vm.dischargeItem.brandName)?_c('div',{staticClass:"right"},[_vm._v("请选择")]):_c('img',{attrs:{"src":__webpack_require__(96),"alt":""}})],2)])]),_vm._v(" "),_c('div',{staticClass:"next-step",on:{"click":function($event){return _vm.nextStepFn(5)}}},[_vm._v("下一步")]),_vm._v(" "),_c('van-popup',{style:({ 'height': '90%'}),attrs:{"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('div',{staticClass:"pop-box"},[_c('div',{staticClass:"title"},[_c('span',{on:{"click":function($event){_vm.showPop = false}}},[_vm._v("关闭")]),_vm._v("\n          "+_vm._s(_vm.popTitle)+"\n          "),_c('p',{on:{"click":_vm.confirm}},[_vm._v("确定")])]),_vm._v(" "),_c('div',{ref:"container",staticClass:"cont"},[_c('div',{staticClass:"step-box hairline"},[[(_vm.brand.id && _vm.brand.id !== '')?_c('div',{staticClass:"live live-on",class:{'active': _vm.currentTabIdx === 0 && _vm.model.id},on:{"click":function($event){return _vm.switchBrandAndModel(0)}}},[_vm._v(_vm._s(_vm.brand.pathName))]):_c('div',{staticClass:"live",on:{"click":function($event){return _vm.switchBrandAndModel(0)}}},[_vm._v(_vm._s(_vm.curIndex === 4 ? '选择排放阶段' : '选择品牌'))])],_vm._v(" "),(_vm.curIndex !== 4 && (_vm.currentTabIdx === 1 || _vm.model.id))?[(_vm.brand.id && _vm.brand.id !== '' && _vm.model.id)?_c('div',{staticClass:"live live-on",class:{'active': _vm.currentTabIdx === 1},on:{"click":function($event){return _vm.switchBrandAndModel(1)}}},[_vm._v(_vm._s(_vm.model.pathName))]):_vm._e(),_vm._v(" "),(_vm.brand.id && !_vm.model.id)?_c('div',{staticClass:"live",on:{"click":function($event){return _vm.switchBrandAndModel(1)}}},[_vm._v("选择型号")]):_vm._e()]:_vm._e()],2),_vm._v(" "),(_vm.currentTabIdx === 0)?_c('div',{staticClass:"panel-cont",attrs:{"id":"panel-cont"}},[_c('div',{staticClass:"search-bar"},[_c('i',{staticClass:"search-icon"}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.brandWord),expression:"brandWord"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],attrs:{"type":"text","placeholder":"请输入关键词，选择品牌"},domProps:{"value":(_vm.brandWord)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.brandWord=$event.target.value},function($event){return _vm.search(null, _vm.brandWord)}]}})]),_vm._v(" "),_c('div',{staticClass:"list"},[_c('div',{staticClass:"item hairline",on:{"click":function($event){return _vm.editBrandOrModel(0)}}},[_c('img',{staticClass:"icon",staticStyle:{"background":"none"},attrs:{"src":__webpack_require__(307)}}),_vm._v(" "),_c('span',{staticClass:"name jump"},[_vm._v("不知道"+_vm._s(_vm.curIndex === 4 ? '排放阶段' : '品牌')+"，"),_c('i',[_vm._v("跳过")])])]),_vm._v(" "),_vm._l((_vm.brandList),function(item,index){return _c('div',{key:index,staticClass:"item hairline",on:{"click":function($event){return _vm.selectBrand(item)}}},[_c('img',{staticClass:"icon",attrs:{"src":item.pathImg}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])})],2)]):_vm._e(),_vm._v(" "),(_vm.currentTabIdx === 1)?_c('div',{staticClass:"panel-cont"},[_c('div',{staticClass:"search-bar"},[_c('i',{staticClass:"search-icon"}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.modelWord),expression:"modelWord"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],attrs:{"type":"text","placeholder":"请输入关键词，选择型号"},domProps:{"value":(_vm.modelWord)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.modelWord=$event.target.value},function($event){return _vm.search(_vm.brand.id, _vm.modelWord)}]}})]),_vm._v(" "),_c('div',{staticClass:"list"},[_c('div',{staticClass:"item hairline",on:{"click":function($event){return _vm.editBrandOrModel(1)}}},[_c('img',{staticClass:"icon",staticStyle:{"background":"none"},attrs:{"src":__webpack_require__(307)}}),_vm._v(" "),_c('span',{staticClass:"name jump"},[_vm._v("不知道型号，"),_c('i',[_vm._v("跳过")])])]),_vm._v(" "),_vm._l((_vm.modelList),function(item,index){return _c('div',{key:index,staticClass:"item hairline",on:{"click":function($event){return _vm.selectModel(item)}}},[_c('img',{staticClass:"icon",attrs:{"src":item.pathImg}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.pathName))])])})],2)]):_vm._e()])])])],1)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/triangle_r_icon.ddd348a.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(683);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5a3a2534_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1282);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3512)
  __webpack_require__(3514)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-5a3a2534"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5a3a2534_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_5a3a2534_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_putQuestion5_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3513);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("52154870", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "*{font-family:PingFangSC-Regular,PingFang SC;-webkit-user-select:auto}.van-cell .van-field__control{font-size:.8rem;height:5rem}.van-cell .van-field__control::-webkit-input-placeholder{font-size:.8rem}.van-cell .van-field__control:-ms-input-placeholder{font-size:.8rem}.van-cell .van-field__control::placeholder{font-size:.8rem}.content .van-cell{padding:0}.content .van-cell .van-field__control{padding:.5rem}.question-title .van-cell{box-sizing:border-box;padding:.5rem .5rem .3rem}.question-title .van-cell .van-field__control{padding:0;height:6rem}.van-field__word-limit{font-size:.6rem}.van-field__word-limit .van-field__word-num{font-size:.6rem;color:#333}.van-uploader__preview{margin:0 .8rem .6rem 0!important}.van-uploader__preview .van-uploader__preview-image{width:3rem;height:3rem;border-radius:.2rem}.van-uploader__preview .van-uploader__preview-delete{top:0;right:0;width:.7rem;height:.7rem;background:url(" + escape(__webpack_require__(801)) + ");background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-radius:0}.van-uploader__preview .van-uploader__preview-delete:before{display:none}.put-progress{position:relative}.put-progress .van-circle__text{top:40%;color:#fff;font-size:.9rem;font-weight:600!important}.put-progress svg{overflow:inherit!important}.put-progress svg .van-circle__layer{stroke-width:100px!important}.put-progress span{display:block;position:absolute;width:100%;text-align:center;bottom:1rem;font-size:.5rem;color:#fff;opacity:.5}.content .van-field__body,.content textarea{-webkit-user-select:text;-ms-user-select:text;user-select:text}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3515);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("fc2d5f2e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-5a3a2534]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.qa-btn[data-v-5a3a2534]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#177afa}.qa-btn.btn1[data-v-5a3a2534]{border-radius:.3rem;border:.05rem solid #177afa}.qa-btn.btn3[data-v-5a3a2534]{height:2.5rem;font-size:.9rem;border-radius:.3rem;background-color:#177afa;color:#fff}.page[data-v-5a3a2534]{height:auto!important;min-height:100%;background-color:#f4f5f6;overflow:hidden}.page-top[data-v-5a3a2534]{padding:.1rem 0;background:#fff;position:relative}.page-top .long[data-v-5a3a2534]{position:absolute;height:1.6rem;width:0;top:.1rem;left:0;z-index:2;background:-webkit-gradient(linear,left top,right top,from(#2ea8fd),to(#177afa));background:linear-gradient(90deg,#2ea8fd,#177afa);border-radius:0 2.5rem 2.5rem 0}.page-top .mask[data-v-5a3a2534]{position:absolute;height:1.6rem;width:100%;top:.1rem;left:0;z-index:1;background:#f0f0f0}.page-top .progress[data-v-5a3a2534]{position:relative;z-index:10;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:1.6rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .6rem;overflow:hidden}.page-top .progress span[data-v-5a3a2534]{color:#333;font:14px/1 PingFangSC-Regular}.panel-selected-wrap[data-v-5a3a2534]{margin-top:1rem;padding:0 .6rem}.panel-selected-wrap .panel-selected[data-v-5a3a2534]{padding:0 .6rem .6rem;margin-bottom:.4rem;border-radius:.3rem;background-color:#fff;overflow:hidden}.panel-selected-wrap .panel-selected .selected-top[data-v-5a3a2534]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.1rem;margin-top:.6rem}.panel-selected-wrap .panel-selected .selected-top p[data-v-5a3a2534]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;line-height:1.1rem}.panel-selected-wrap .panel-selected .selected-top span[data-v-5a3a2534]{font-size:.7rem;color:#177afa}.panel-selected-wrap .panel-selected .selected-top span img[data-v-5a3a2534]{display:inline-block;width:.7rem;height:.7rem;margin-right:.13rem;margin-top:-.1rem;vertical-align:middle}.panel-selected-wrap .panel-selected .selected-bottom[data-v-5a3a2534]{margin-top:.6rem;border:1px solid #eee;border-radius:.2rem}.panel-selected-wrap .panel-selected .selected-bottom .meta[data-v-5a3a2534]{white-space:nowrap;border-bottom:1px solid #eee;font-size:0}.panel-selected-wrap .panel-selected .selected-bottom .meta span[data-v-5a3a2534]{display:inline-block;font-size:15px;color:#333;padding:.5rem .8rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.panel-selected-wrap .panel-selected .selected-bottom .meta span[data-v-5a3a2534]:first-child{width:4.8rem;padding-right:.8rem;border-right:1px solid #eee}.panel-selected-wrap .panel-selected .selected-bottom .meta[data-v-5a3a2534]:last-child{margin:0;border:none}.page-content[data-v-5a3a2534]{padding:0 .6rem}.page-content .question-item[data-v-5a3a2534]{padding:0 .6rem;margin-bottom:.4rem;background-color:#fff;border-radius:.3rem;overflow:hidden}.page-content .question-item .name[data-v-5a3a2534]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem}.page-content .question-item .name h3[data-v-5a3a2534]{line-height:1;font-size:.8rem;font-weight:600;color:#333}.page-content .question-item .name .verification[data-v-5a3a2534]:after{display:inline-block;content:\"*\";color:#ff3f3f;font-size:.8rem}.page-content .question-item .content[data-v-5a3a2534]{padding-bottom:.6rem}.page-content .question-item .content .van-cell[data-v-5a3a2534]{background-color:#f5f5f5;border-radius:.2rem}.page-content .question-item .content .pic[data-v-5a3a2534]{margin-top:.8rem;margin-bottom:-.6rem}.page-content .question-item .content .pic .upload-btn[data-v-5a3a2534]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:3rem;height:3rem;margin-bottom:.6rem;border:1px dashed #177afa;border-radius:.2rem;vertical-align:top}.page-content .question-item .content .pic .upload-btn[data-v-5a3a2534]:before{display:inline-block;content:\"\";width:.9rem;height:.8rem;margin-top:.28rem;background-image:url(" + escape(__webpack_require__(798)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.page-content .question-item .content .pic .upload-btn[data-v-5a3a2534]:after{display:block;margin-top:.33rem;content:\"\\6DFB\\52A0\\56FE\\7247\";font-size:.55rem;color:#177afa}.page-content .edit-que-btn[data-v-5a3a2534]{margin:1.8rem 0 3.6rem;border-radius:1.25rem}.van-sticky.van-sticky--fixed .panel-top[data-v-5a3a2534]{margin:0 .6rem;background-color:#fff;border-radius:.3rem .3rem 0 0;overflow:hidden}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(144);
var _uploader = _interopRequireDefault(__webpack_require__(145));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(175);
var _sticky = _interopRequireDefault(__webpack_require__(132));
__webpack_require__(799);
var _circle = _interopRequireDefault(__webpack_require__(800));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _circle.default.name, _circle.default), _sticky.default.name, _sticky.default), _field.default.name, _field.default), _uploader.default.name, _uploader.default),
  data: function data() {
    return {
      currentRate: 0,
      questionCompletionRate: 0,
      rateTemp: 0,
      historyTitleRate: 0,
      historyDescRate: 0,
      historyFaultCodeRate: 0,
      historyCheckRate: 0,
      questionId: null,
      questionNo: '',
      selectedBrand: {},
      // 车辆品牌
      selectedModel: {},
      // 车辆型号
      selectedBrand1: {},
      // 发动机品牌
      selectedModel1: {},
      // 发动机型号
      selectedBrand2: {},
      // ecu品牌
      selectedModel2: {},
      // ecu型号
      selectedStandard: {},
      // 已选排放标准
      token: '',
      bucketUrl: '',
      currentItem: 0,
      questionTitle: '',
      // 故障现象(标题)
      description: '',
      // 详细描述
      faultCode: '',
      // 故障码
      checkDescription: '',
      // 已做排查信息
      descriptionPicList: [],
      descriptionPicListArr: [],
      faultCodePicList: [],
      faultCodePicListArr: [],
      checkDescriptionPicList: [],
      checkDescriptionPicListArr: [],
      timer: null,
      queStatus: 1
    };
  },
  watch: {
    'questionTitle': function questionTitle(val, oldVal) {
      var currentInputVal = Math.floor(val.length / 5) >= 10 ? 10 : Math.floor(val.length / 5);
      var rateNum = currentInputVal - this.historyTitleRate;
      if (currentInputVal <= 10) {
        sessionStorage.setItem('historyTitleRate', this.historyTitleRate + rateNum);
        this.questionCompletionRate = this.rateTemp + rateNum;
      }
    },
    'description': function description(val, oldVal) {
      var currentInputVal = Math.floor(val.length / 5) >= 5 ? 5 : Math.floor(val.length / 5);
      var rateNum = currentInputVal - this.historyDescRate;
      if (currentInputVal <= 5) {
        sessionStorage.setItem('historyDescRate', this.historyDescRate + rateNum);
        this.questionCompletionRate = this.rateTemp + rateNum;
      }
    },
    'faultCode': function faultCode(val) {
      var currentInputVal = val.length > 0 ? 5 : 0;
      var rateNum = currentInputVal - this.historyFaultCodeRate;
      sessionStorage.setItem('historyFaultCodeRate', this.historyFaultCodeRate + rateNum);
      this.questionCompletionRate = this.rateTemp + rateNum;
    },
    'checkDescription': function checkDescription(val) {
      var currentInputVal = val.length > 0 ? 5 : 0;
      var rateNum = currentInputVal - this.historyCheckRate;
      sessionStorage.setItem('historyCheckRate', this.historyCheckRate + rateNum);
      this.questionCompletionRate = this.rateTemp + rateNum;
    },
    questionCompletionRate: function questionCompletionRate(val) {
      this.currentRate = val;
    }
  },
  created: function created() {
    var _this = this;
    this.getQuestionDraft();
    this.getQNToken();
    sessionStorage.removeItem('historyTitleRate');
    sessionStorage.removeItem('historyDescRate');
    sessionStorage.removeItem('historyFaultCodeRate');
    sessionStorage.removeItem('historyCheckRate');
    clearInterval(this.timer);
    this.timer = setInterval(function () {
      _this.saveQuestion();
    }, 10 * 1000);
    var that = this;
    if (that._Util.isApp()) {
      api.addEventListener({
        name: 'setDraftStatus',
        function: function _function(ret, err) {
          that.queStatus = 2;
        }
      });
    }
  },
  mounted: function mounted() {
    var _this2 = this;
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this2.getQuestionDraft();
        });
      }, 300);
    }
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
  },
  methods: {
    /**
     * 预览图片
     */
    previewImg: function previewImg(file, detail) {
      var curPreviewImgs = [];
      if (file.type === 0) {
        curPreviewImgs = this.descriptionPicListArr;
      }
      if (file.type === 1) {
        curPreviewImgs = this.faultCodePicListArr;
      }
      if (file.type === 2) {
        curPreviewImgs = this.checkDescriptionPicListArr;
      }
      this.viewImage(curPreviewImgs[detail.index], curPreviewImgs, detail.index);
    },
    /**
     * 浏览图片方法
     */
    viewImage: function viewImage(imgUrl, imgList, activeIndex) {
      event.preventDefault();
      var _imgUrl = imgUrl + '?imageView2/2/w/2000';
      var _imgList = imgList.map(function (v) {
        return v + '?imageView2/2/w/2000';
      });
      this.$store.commit('openImgView', {
        imgUrl: _imgUrl,
        imgList: _imgList,
        activeIndex: activeIndex
      });
    },
    getQNToken: function getQNToken() {
      var _this3 = this;
      this._Util.post(this._Api.appGetQNToken, {}, function (data) {
        _this3.token = data.token;
        _this3.bucketUrl = data.bucketUrl;
      }, function () {}, this);
    },
    siteRateTemp: function siteRateTemp() {
      this.rateTemp = this.questionCompletionRate;
      this.historyTitleRate = Number(sessionStorage.getItem('historyTitleRate'));
      this.historyDescRate = Number(sessionStorage.getItem('historyDescRate'));
      this.historyFaultCodeRate = Number(sessionStorage.getItem('historyFaultCodeRate'));
      this.historyCheckRate = Number(sessionStorage.getItem('historyCheckRate'));
    },
    /**
     * 获取草稿
     */
    getQuestionDraft: function getQuestionDraft() {
      var _this4 = this;
      this._Util.post(this._Api.GET_QUESTION_DRAFT, {}, function (data) {
        if (!data && _this4.$route.query.questionNo && typeof _this4.$route.query.questionNo !== 'undefined') {
          _this4.getQuestionDetail();
          return;
        }
        if (!data) {
          data = {
            questionTitle: '',
            faultSymptom: '',
            faultCode: '',
            troubleShoot: ''
          };
        }
        localStorage.removeItem('draftStatus');
        _this4.questionId = data.id;
        _this4.questionNo = data.questionNo;
        _this4.questionCompletionRate = data.questionCompletionRate ? Number(data.questionCompletionRate) : 0;
        _this4.rateTemp = data.questionCompletionRate ? Number(data.questionCompletionRate) : 0;
        _this4.selectedBrand = {
          id: data.vehicleBrandId,
          pathName: data.vehicleBrandName
        };
        _this4.selectedModel = {
          id: data.vehicleModeId,
          pathName: data.vehicleModeName
        };
        _this4.selectedBrand1 = {
          id: data.engineBrandId,
          pathName: data.engineBrandName
        };
        _this4.selectedModel1 = {
          id: data.engineModeId,
          pathName: data.engineModeName
        };
        _this4.selectedBrand2 = {
          id: data.ecuBrandId,
          pathName: data.ecuBrandName
        };
        _this4.selectedModel2 = {
          id: data.ecuModeId,
          pathName: data.ecuModeName
        };
        _this4.selectedStandard = {
          id: data.dischargeStageId,
          pathName: data.dischargeStageName
        };
        _this4.questionTitle = data.questionTitle || '';
        _this4.historyTitleRate = Math.floor(data.questionTitle.length / 5) >= 10 ? 10 : Math.floor(data.questionTitle.length / 5);
        _this4.description = data.faultSymptom || '';
        _this4.historyDescRate = Math.floor(data.faultSymptom.length / 5) >= 5 ? 5 : Math.floor(data.faultSymptom.length / 5);
        _this4.historyFaultCodeRate = data.faultCode.length > 0 ? 5 : 0;
        _this4.historyCheckRate = data.troubleShoot.length > 0 ? 5 : 0;
        _this4.descriptionPicListArr = data.faultSymptomImg && data.faultSymptomImg.split(',') || [];
        _this4.descriptionPicListArr.forEach(function (ele) {
          _this4.descriptionPicList.push({
            url: ele,
            type: 0
          });
        });
        _this4.faultCode = data.faultCode || '';
        _this4.faultCodePicListArr = data.faultCodeImg && data.faultCodeImg.split(',') || [];
        _this4.faultCodePicListArr.forEach(function (ele) {
          _this4.faultCodePicList.push({
            url: ele,
            type: 1
          });
        });
        _this4.checkDescription = data.troubleShoot || '';
        _this4.checkDescriptionPicListArr = data.troubleShootImg && data.troubleShootImg.split(',') || [];
        _this4.checkDescriptionPicListArr.forEach(function (ele) {
          _this4.checkDescriptionPicList.push({
            url: ele,
            type: 2
          });
        });
      }, function () {}, this);
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this5 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var info = data.vo;
        _this5.questionId = info.id;
        _this5.questionNo = info.questionNo;
        _this5.queStatus = info.status;
        _this5.questionCompletionRate = info.questionCompletionRate && Number(info.questionCompletionRate);
        _this5.rateTemp = info.questionCompletionRate && Number(info.questionCompletionRate);
        _this5.selectedBrand = {
          id: info.vehicleBrandId,
          pathName: info.vehicleBrandName
        };
        _this5.selectedModel = {
          id: info.vehicleModeId,
          pathName: info.vehicleModeName
        };
        _this5.selectedBrand1 = {
          id: info.engineBrandId,
          pathName: info.engineBrandName
        };
        _this5.selectedModel1 = {
          id: info.engineModeId,
          pathName: info.engineModeName
        };
        _this5.selectedBrand2 = {
          id: info.ecuBrandId,
          pathName: info.ecuBrandName
        };
        _this5.selectedModel2 = {
          id: info.ecuModeId,
          pathName: info.ecuModeName
        };
        _this5.selectedStandard = {
          id: info.dischargeStageId,
          pathName: info.dischargeStageName
        };
        _this5.questionTitle = info.questionTitle || '';
        _this5.historyTitleRate = Math.floor(info.questionTitle.length / 5) >= 10 ? 10 : Math.floor(info.questionTitle.length / 5);
        _this5.description = info.faultSymptom || '';
        _this5.historyDescRate = Math.floor(info.faultSymptom.length / 5) >= 5 ? 5 : Math.floor(info.faultSymptom.length / 5);
        _this5.historyFaultCodeRate = info.faultCode.length > 0 ? 5 : 0;
        _this5.historyCheckRate = info.troubleShoot.length > 0 ? 5 : 0;
        _this5.descriptionPicListArr = info.faultSymptomImg && info.faultSymptomImg.split(',') || [];
        _this5.descriptionPicListArr.forEach(function (ele) {
          _this5.descriptionPicList.push({
            url: ele,
            type: 0
          });
        });
        _this5.faultCode = info.faultCode || '';
        _this5.faultCodePicListArr = info.faultCodeImg && info.faultCodeImg.split(',') || [];
        _this5.faultCodePicListArr.forEach(function (ele) {
          _this5.faultCodePicList.push({
            url: ele,
            type: 1
          });
        });
        _this5.checkDescription = info.troubleShoot || '';
        _this5.checkDescriptionPicListArr = info.troubleShootImg && info.troubleShootImg.split(',') || [];
        _this5.checkDescriptionPicListArr.forEach(function (ele) {
          _this5.checkDescriptionPicList.push({
            url: ele,
            type: 2
          });
        });
      }, function () {}, this);
    },
    /**
     * 修改品牌或者型号或者排放阶段
     */
    editBrandOrModel: function editBrandOrModel(type) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: "putQuestion".concat(type).concat(new Date().getTime()),
            url: location.origin + '/v2/questionsAndAnswers/putQuestion' + type + (this.$route.query.questionNo || typeof this.$route.query.questionNo !== 'undefined' ? '?questionNo=' + this.$route.query.questionNo : '')
          }
        });
      } else {
        this.$router.push({
          name: "putQuestion".concat(type),
          query: {
            questionNo: this.$route.query.questionNo
          }
        });
      }
    },
    afterRead: function afterRead(file) {
      this.upload(file);
    },
    siteCurrentItem: function siteCurrentItem(c) {
      this.currentItem = c;
    },
    deleteImg: function deleteImg(file, detail) {
      if (file.type === 0) {
        this.descriptionPicListArr.splice(detail.index, 1);
        if (this.descriptionPicListArr.length === 0) {
          this.questionCompletionRate = this.rateTemp - 5;
        }
      }
      if (file.type === 1) {
        this.faultCodePicListArr.splice(detail.index, 1);
        if (this.faultCodePicListArr.length === 0) {
          this.questionCompletionRate = this.rateTemp - 5;
        }
      }
      if (file.type === 2) {
        this.checkDescriptionPicListArr.splice(detail.index, 1);
        if (this.checkDescriptionPicListArr.length === 0) {
          this.questionCompletionRate = this.rateTemp - 5;
        }
      }
      this.rateTemp = this.questionCompletionRate;
    },
    upload: function upload(file) {
      var _this6 = this;
      file.status = 'uploading';
      file.message = '上传中...';
      file.type = this.currentItem;
      if (file.file) {
        var formData = new FormData();
        var fileNameArr = file.file.name && file.file.name.split('.');
        formData.append('file', file.file);
        formData.append('key', new Date().getTime() + '.' + fileNameArr[fileNameArr.length - 1]);
        formData.append('token', this.token);
        var url = '';
        if (this._Util.isIOS) {
          url = 'https://upload.qbox.me';
        } else {
          url = 'https://upload.qiniup.com';
        }
        $.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          contentType: false
        }).done(function (res) {
          file.status = '';
          file.message = '';
          if (_this6.currentItem === 0) {
            _this6.descriptionPicListArr.push(_this6.bucketUrl + res.key);
            if (_this6.descriptionPicListArr.length === 1) {
              _this6.questionCompletionRate = _this6.rateTemp + 5;
            }
          }
          if (_this6.currentItem === 1) {
            _this6.faultCodePicListArr.push(_this6.bucketUrl + res.key);
            if (_this6.faultCodePicListArr.length === 1) {
              _this6.questionCompletionRate = _this6.rateTemp + 5;
            }
          }
          if (_this6.currentItem === 2) {
            _this6.checkDescriptionPicListArr.push(_this6.bucketUrl + res.key);
            if (_this6.checkDescriptionPicListArr.length === 1) {
              _this6.questionCompletionRate = _this6.rateTemp + 5;
            }
          }
          _this6.rateTemp = _this6.questionCompletionRate;
        }).fail(function (err) {
          console.log(err);
          file.status = '';
          file.message = '';
        });
      }
    },
    /**
     * 保存和编辑问题
     */
    saveQuestion: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(eventType) {
        var that, params;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              that = this;
              if (eventType) {
                clearInterval(that.timer);
              }
              params = {};
              params.id = that.questionId;
              params.status = localStorage.getItem('draftStatus') || that.queStatus;
              params.questionCompletionRate = that.questionCompletionRate;
              // 故障现象（标题）
              params.questionTitle = that.questionTitle.trim();

              // 详细描述（故障现象）
              params.faultSymptom = that.description.trim();
              params.faultSymptomImg = that.descriptionPicListArr.join();

              // 故障码
              params.faultCode = that.faultCode.trim();
              params.faultCodeImg = that.faultCodePicListArr.join(',');
              // 已做排查
              params.troubleShoot = that.checkDescription.trim();
              params.troubleShootImg = that.checkDescriptionPicListArr.join(',');
              if (!(typeof params.questionTitle === 'undefined' || params.questionTitle === '')) {
                _context.next = 1;
                break;
              }
              that.$toast('请填写故障现象');
              return _context.abrupt("return");
            case 1:
              if (eventType) {
                this._Util.sensorsCollect('element_click', {
                  $element_name: '提问-提交',
                  $element_content: '提问-提交',
                  $element_class_name: 'qa-btn',
                  $element_type: 'div',
                  $element_target_url: "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(that.questionNo),
                  $url: window.location.href,
                  $title: '提问',
                  moudle_type: '问答',
                  correlation_id: '',
                  operation_page: '问答'
                });
              }
              that._Util.post(that._Api.SAVE_QUESTION, params, function (data) {
                that.questionId = data;
                if (eventType === 1) {
                  if (Number(localStorage.getItem('draftStatus')) === 2) {
                    if (that._Util.isApp()) {
                      api.sendEvent({
                        name: 'acOpenNewFrm',
                        extra: {
                          name: 'questionProgress' + new Date().getTime(),
                          url: "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(that.questionNo)
                        }
                      });
                    } else {
                      location.href = "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(that.questionNo);
                    }
                  } else {
                    if (that._Util.isApp()) {
                      api.sendEvent({
                        name: 'acOpenNewFrm',
                        extra: {
                          name: 'communicationMethod',
                          url: "".concat(location.origin, "/v2/shopping/communicationMethod?questionNo=").concat(that.questionNo)
                        }
                      });
                    } else {
                      location.href = "".concat(location.origin, "/v2/shopping/communicationMethod?questionNo=").concat(that.questionNo);
                    }
                  }
                }
              }, function () {}, that, eventType !== 1);
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }())
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"page-top"},[_c('div',{staticClass:"long",style:({'width': _vm.currentRate ? (_vm.currentRate <= 3 ? 4 : _vm.currentRate) + '%' : 0})}),_vm._v(" "),_c('div',{staticClass:"mask"}),_vm._v(" "),_c('div',{staticClass:"progress"},[_c('span',[_vm._v("问题完整度越高，接单率越高")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.currentRate)+"%")])])]),_vm._v(" "),_c('div',{staticClass:"panel-selected-wrap"},[_c('div',{staticClass:"panel-selected"},[_c('div',{staticClass:"selected-top"},[_c('p',[_vm._v("车辆基本信息")]),_vm._v(" "),_c('span',{on:{"click":function($event){return _vm.editBrandOrModel(0)}}},[_c('img',{attrs:{"src":__webpack_require__(96)}}),_vm._v("修改")])]),_vm._v(" "),_c('div',{staticClass:"selected-bottom"},[_c('div',{staticClass:"meta"},[_c('span',[_vm._v("车辆品牌")]),_vm._v(" "),(!_vm.selectedBrand.pathName && !_vm.selectedModel.pathName)?_c('span',[_vm._v("-")]):_c('span',[_vm._v(_vm._s(_vm.selectedBrand.pathName)+" / "+_vm._s(_vm.selectedModel.pathName || '-'))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',[_vm._v("发动机")]),_vm._v(" "),(!_vm.selectedBrand1.pathName && !_vm.selectedModel1.pathName)?_c('span',[_vm._v("-")]):_c('span',[_vm._v(_vm._s(_vm.selectedBrand1.pathName)+" / "+_vm._s(_vm.selectedModel1.pathName || '-'))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',[_vm._v("ECU型号")]),_vm._v(" "),(!_vm.selectedBrand2.pathName && !_vm.selectedModel2.pathName)?_c('span',[_vm._v("-")]):_c('span',[_vm._v(_vm._s(_vm.selectedBrand2.pathName)+" / "+_vm._s(_vm.selectedModel2.pathName || '-'))])]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',[_vm._v("排放阶段")]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.selectedStandard.pathName || '-'))])])])])]),_vm._v(" "),_c('div',{staticClass:"page-content"},[_c('div',{staticClass:"question-item"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"content question-title"},[_c('van-field',{attrs:{"type":"textarea","maxlength":"200","show-word-limit":"","placeholder":"请输入故障现象"},on:{"blur":function($event){return _vm.siteRateTemp()}},model:{value:(_vm.questionTitle),callback:function ($$v) {_vm.questionTitle=$$v},expression:"questionTitle"}})],1)]),_vm._v(" "),_c('div',{staticClass:"question-item"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"content"},[_c('van-field',{attrs:{"type":"textarea","placeholder":"请输入详细描述"},on:{"blur":function($event){return _vm.siteRateTemp()}},model:{value:(_vm.description),callback:function ($$v) {_vm.description=$$v},expression:"description"}}),_vm._v(" "),_c('div',{staticClass:"pic",on:{"click":function($event){return _vm.siteCurrentItem(0)}}},[_c('van-uploader',{attrs:{"preview-full-image":false,"after-read":_vm.afterRead},on:{"delete":_vm.deleteImg,"click-preview":_vm.previewImg},model:{value:(_vm.descriptionPicList),callback:function ($$v) {_vm.descriptionPicList=$$v},expression:"descriptionPicList"}},[_c('span',{staticClass:"upload-btn"})])],1)],1)]),_vm._v(" "),_c('div',{staticClass:"question-item"},[_vm._m(2),_vm._v(" "),_c('div',{staticClass:"content"},[_c('van-field',{attrs:{"type":"textarea","placeholder":"请输入故障码，如：P0251"},on:{"blur":function($event){return _vm.siteRateTemp()}},model:{value:(_vm.faultCode),callback:function ($$v) {_vm.faultCode=$$v},expression:"faultCode"}}),_vm._v(" "),_c('div',{staticClass:"pic",on:{"click":function($event){return _vm.siteCurrentItem(1)}}},[_c('van-uploader',{attrs:{"preview-full-image":false,"after-read":_vm.afterRead},on:{"delete":_vm.deleteImg,"click-preview":_vm.previewImg},model:{value:(_vm.faultCodePicList),callback:function ($$v) {_vm.faultCodePicList=$$v},expression:"faultCodePicList"}},[_c('span',{staticClass:"upload-btn"})])],1)],1)]),_vm._v(" "),_c('div',{staticClass:"question-item"},[_vm._m(3),_vm._v(" "),_c('div',{staticClass:"content"},[_c('van-field',{attrs:{"type":"textarea","placeholder":"请描述做了哪些排查"},on:{"blur":function($event){return _vm.siteRateTemp()}},model:{value:(_vm.checkDescription),callback:function ($$v) {_vm.checkDescription=$$v},expression:"checkDescription"}}),_vm._v(" "),_c('div',{staticClass:"pic",on:{"click":function($event){return _vm.siteCurrentItem(2)}}},[_c('van-uploader',{attrs:{"preview-full-image":false,"after-read":_vm.afterRead},on:{"delete":_vm.deleteImg,"click-preview":_vm.previewImg},model:{value:(_vm.checkDescriptionPicList),callback:function ($$v) {_vm.checkDescriptionPicList=$$v},expression:"checkDescriptionPicList"}},[_c('span',{staticClass:"upload-btn"})])],1)],1)]),_vm._v(" "),_c('div',{staticClass:"qa-btn btn3 edit-que-btn",on:{"click":function($event){return _vm.saveQuestion(1)}}},[_vm._v("提交")])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"name"},[_c('i',{staticClass:"verification"}),_vm._v(" "),_c('h3',[_vm._v("故障现象")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"name"},[_c('h3',[_vm._v("详细描述")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"name"},[_c('h3',[_vm._v("故障码")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"name"},[_c('h3',[_vm._v("已做排查")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(684);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1d8e2564_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1283);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3516)
  __webpack_require__(3518)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1d8e2564"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1d8e2564_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1d8e2564_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_communicationMethod_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3517);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("35dd74ae", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "*{font-family:PingFangSC-Regular,PingFang SC}.reward-amount-popup .van-cell{padding:0 .2rem;background-color:transparent}.reward-amount-popup .van-cell input{font-size:.85rem}.reward-amount-popup .van-cell input::-webkit-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input:-ms-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input::placeholder{font-size:.85rem;color:#999}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3519);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5b3a5952", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-1d8e2564]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.qa-btn[data-v-1d8e2564]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#177afa}.qa-btn.btn1[data-v-1d8e2564]{border-radius:.3rem;border:.05rem solid #177afa}.qa-btn.btn3[data-v-1d8e2564]{height:2.5rem;border-radius:.3rem;background-color:#177afa;color:#fff}.radio1[data-v-1d8e2564]{display:inline-block;width:1rem;height:1rem;background-image:url(" + escape(__webpack_require__(792)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.radio1.checked[data-v-1d8e2564]{background-image:url(" + escape(__webpack_require__(793)) + ")}.page[data-v-1d8e2564]{background-color:#f4f5f6;overflow:auto}.top[data-v-1d8e2564]{height:2.85rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:#fff}.top img[data-v-1d8e2564]{display:inline-block;width:1rem;height:1.1rem;margin-right:.4rem}.top span[data-v-1d8e2564]{line-height:1;font-size:.9rem;font-weight:600;color:#333}.method-wrap[data-v-1d8e2564]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;min-height:97.15%;padding:0 .6rem;overflow:hidden}.method-wrap .tip[data-v-1d8e2564]{margin:1.6rem 0 .6rem;line-height:1.1rem;font-size:.8rem;font-weight:600;color:#333}.method-wrap .method-list[data-v-1d8e2564]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.method-wrap .method-list .method-item[data-v-1d8e2564]{padding-left:.6rem;min-height:2.6rem;margin-bottom:.4rem;border-radius:.3rem;background-color:#fff}.method-wrap .method-list .method-item .inner-top[data-v-1d8e2564]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.6rem;padding-right:.6rem}.method-wrap .method-list .method-item .inner-top .icon[data-v-1d8e2564]{display:inline-block;width:1.4rem;height:1.4rem;margin-right:.6rem;border-radius:.2rem;background-color:#dbe8ff}.method-wrap .method-list .method-item .inner-top p[data-v-1d8e2564]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1;font-size:.9rem;color:#333}.method-wrap .method-list .method-item .inner-content[data-v-1d8e2564]{position:relative;padding:.6rem .6rem .6rem 0}.method-wrap .method-list .method-item .inner-content[data-v-1d8e2564]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.method-wrap .method-list .method-item .inner-content h3[data-v-1d8e2564]{margin:.6rem 0;line-height:1.1rem;font-size:.8rem;color:#333}.method-wrap .method-list .method-item .inner-content .money-list[data-v-1d8e2564]{margin-right:-.6rem}.method-wrap .method-list .method-item .inner-content .money-list span[data-v-1d8e2564]{display:inline-block;width:3.63rem;height:1.6rem;line-height:1.6rem;margin-right:.6rem;margin-bottom:.3rem;background-color:#f4f5f6;border-radius:.2rem;text-align:center;font-size:.7rem;color:#999;vertical-align:top}.method-wrap .method-list .method-item .inner-content .money-list span.selected[data-v-1d8e2564]{background-color:#177afa;color:#fff}.method-wrap .method-list .method-item .inner-content p[data-v-1d8e2564]{margin-top:.5rem;line-height:1.6;font-size:.7rem;color:#666}.method-wrap .pay-btn[data-v-1d8e2564]{margin:3.6rem 0 0;background-color:#c2c8d0;font-size:.9rem;border-radius:1.25rem}.method-wrap .pay-btn.confirm[data-v-1d8e2564]{background-color:#177afa}.method-wrap .back-btn[data-v-1d8e2564]{margin-top:3.145rem;margin-bottom:.565rem;font-size:.8rem}.popup-container[data-v-1d8e2564]{width:16.35rem}.popup-container.popup-container-1[data-v-1d8e2564]{width:100%}.popup-container .popup-content[data-v-1d8e2564]{padding:1.4rem 1rem}.popup-container .popup-content .form-cell[data-v-1d8e2564]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.4rem;padding:0 .6rem;background-color:#f3f4f5;border-radius:.2rem}.popup-container .popup-content .form-cell .label[data-v-1d8e2564]{margin-right:.6rem;font-size:.85rem;color:#333;line-height:1}.popup-container .popup-content .form-cell .value[data-v-1d8e2564]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-content .form-cell .value input[data-v-1d8e2564]{display:inline-block;width:100%;font-size:.85rem;color:#333}.popup-container .popup-content .form-cell .value input[data-v-1d8e2564]::-webkit-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-1d8e2564]:-ms-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-1d8e2564]::placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input.text-center[data-v-1d8e2564]{text-align:center}.popup-container .popup-content .form-cell .value input.text-right[data-v-1d8e2564]{text-align:right}.popup-container .popup-content .form-cell .value span[data-v-1d8e2564]{margin-left:.2rem;line-height:1;font-size:.85rem;color:#333}.popup-container .popup-content.brand-content[data-v-1d8e2564]{max-height:23.43rem;padding:0;overflow-y:auto}.popup-container .popup-content.brand-content .brand-list[data-v-1d8e2564]{padding:.2rem 0 0 3.1rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-1d8e2564]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:1.8rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-1d8e2564]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .brand-list .brand-item.selected .brand-name[data-v-1d8e2564]{color:#177afa}.popup-container .popup-content.brand-content .brand-list .brand-item.selected[data-v-1d8e2564]:after{display:inline-block;content:\"\";position:absolute;right:.8rem;width:.7rem;height:.48rem;background-image:url(" + escape(__webpack_require__(173)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-icon[data-v-1d8e2564]{position:absolute;top:.6rem;left:-2.2rem;display:inline-block;width:1.6rem;height:1.6rem;vertical-align:top;overflow:hidden;background-color:#f3f4f5}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-name[data-v-1d8e2564]{display:block;width:100%;font-size:.9rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popup-container .popup-content.brand-content .selected-brand[data-v-1d8e2564]{position:relative;padding:.6rem 0 .25rem}.popup-container .popup-content.brand-content .selected-brand[data-v-1d8e2564]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .selected-brand .selected-item[data-v-1d8e2564]{display:inline-block;height:1.4rem;margin-left:.8rem;margin-bottom:.35rem;background-color:#f5f5f5;border-radius:.2rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-1d8e2564]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;padding:0 .4rem 0 .6rem;color:#333;font-size:.7rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-1d8e2564]:after{display:inline-block;content:\"\";width:.6rem;height:.6rem;margin-left:.6rem;background-image:url(" + escape(__webpack_require__(180)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.popup-container .popup-toolbar[data-v-1d8e2564]{width:100%;-ms-flex-align:center}.popup-container .popup-toolbar[data-v-1d8e2564],.popup-container .popup-toolbar span[data-v-1d8e2564]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.popup-container .popup-toolbar span[data-v-1d8e2564]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem;color:#333}.popup-container .popup-toolbar span[data-v-1d8e2564]:before{top:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.popup-container .popup-toolbar span.confirm-btn[data-v-1d8e2564]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top[data-v-1d8e2564]{height:2.75rem;background-color:#f6f6f6;border-radius:.5rem .5rem 0 0}.popup-container .popup-toolbar.popup-toolbar-top[data-v-1d8e2564]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-toolbar.popup-toolbar-top span[data-v-1d8e2564]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding:0 .8rem;font-size:.7rem;color:#666}.popup-container .popup-toolbar.popup-toolbar-top span.confirm-btn[data-v-1d8e2564]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top .title[data-v-1d8e2564]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;text-align:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-1d8e2564]{position:relative;width:100%;height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-1d8e2564]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _field.default.name, _field.default), _popup.default.name, _popup.default), _toast.default.name, _toast.default),
  data: function data() {
    return {
      questionId: null,
      questionNo: '',
      communicModeList: [{
        name: '文字沟通',
        type: 1
      }, {
        name: '电话+文字沟通',
        type: 2
      }],
      // 沟通方式
      communicationMethod: null,
      rewardAmountList: [],
      // 悬赏金额列表
      rewardAmount: null,
      // 自定义悬赏金额
      selectedCode: null,
      cashSettingPopup: false
    };
  },
  created: function created() {
    this.getQuestionDraft();
    this.getRewardAmountList();
  },
  methods: {
    /**
     * 获取草稿
     */
    getQuestionDraft: function getQuestionDraft() {
      var _this = this;
      this._Util.post(this._Api.GET_QUESTION_DRAFT, {}, function (data) {
        if (!data && _this.$route.query.questionNo && typeof _this.$route.query.questionNo !== 'undefined') {
          _this.getQuestionDetail();
          return;
        }
        _this.questionId = data.id;
        _this.questionNo = data.questionNo;
      }, function () {}, this);
    },
    /**
     * 获取问题详情
     */
    getQuestionDetail: function getQuestionDetail() {
      var _this2 = this;
      this._Util.post(this._Api.GET_QUESTION_DETAIL, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        var info = data.vo;
        _this2.questionId = info.id;
        _this2.questionNo = info.questionNo;
      }, function () {}, this);
    },
    /**
     * 获取悬赏金额列表
     */
    getRewardAmountList: function getRewardAmountList() {
      var _this3 = this;
      this._Util.post(this._Api.GET_REWARD_AMOUNT_LIST, {
        type: 1
      }, function (data) {
        _this3.rewardAmountList = data;
        _this3.rewardAmountList.push({
          code: -1,
          value: '其他'
        });
      }, function () {}, this);
    },
    /**
     * 选择悬赏金额
     */
    selectMoney: function selectMoney(item) {
      this.selectedCode = item.code;
      if (item.code === -1) {
        this.cashSettingPopup = true;
      } else {
        this.rewardAmount = null;
        this.rewardAmountList[this.rewardAmountList.length - 1].value = '其他';
      }
    },
    /**
     * 自定义悬赏金额
     */
    closeCashPopup: function closeCashPopup(type) {
      _toast.default.clear();
      if (type === 'confirm') {
        if (!this.rewardAmount || this.rewardAmount <= 0) {
          (0, _toast.default)({
            message: '请输入金额',
            duration: 1500
          });
          return;
        }
        if (this.rewardAmount < 50) {
          (0, _toast.default)({
            message: '需支付悬赏金额≥50元',
            duration: 1500
          });
          return;
        }
        this.rewardAmountList[this.rewardAmountList.length - 1].value = this.rewardAmount + '元';
        this.cashSettingPopup = false;
      } else {
        this.rewardAmountList[this.rewardAmountList.length - 1].value = '其他';
        this.cashSettingPopup = false;
      }
    },
    /**
     * 修改品牌或者型号或者排放阶段
     */
    editBrandOrModel: function editBrandOrModel(type) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: "putQuestion".concat(type),
            url: "".concat(location.origin, "/v2/questionsAndAnswers/putQuestion").concat(type)
          }
        });
      } else {
        this.$router.push({
          name: "putQuestion".concat(type)
        });
      }
    },
    /**
     * 选择沟通方式
     */
    selectCommunicationMethod: function selectCommunicationMethod(type) {
      this.communicationMethod = type;
      if (type === 1) {
        this.rewardAmount = null;
        this.selectedCode = null;
        this.rewardAmountList[this.rewardAmountList.length - 1].value = '其他';
      }
    },
    /**
     * 保存问题
     */
    saveQuestion: function saveQuestion() {
      var _this4 = this;
      var params = {
        id: this.questionId,
        communicMode: this.communicationMethod,
        status: 2
      };
      this._Util.post(this._Api.SAVE_QUESTION, params, function (data) {
        localStorage.removeItem('draftStatus');
        if (_this4._Util.isApp()) {
          api.sendEvent({
            name: 'setDraftStatus',
            extra: {
              draftStatus: 2
            }
          });
        }
        if (_this4._Util.isApp()) {
          api.sendEvent({
            name: 'acOpenNewFrm',
            extra: {
              name: 'questionProgress' + new Date().getTime(),
              url: "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(_this4.questionNo)
            }
          });
        } else {
          location.href = "".concat(location.origin, "/v2/shopping/questionProgress?questionNo=").concat(_this4.questionNo);
        }
      }, function () {}, this);
    },
    /**
     * 确认沟通方式
     */
    confirmQuestion: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            that = this;
            if (that.communicationMethod) {
              _context.next = 1;
              break;
            }
            (0, _toast.default)({
              message: '请选择沟通方式',
              duration: 1500
            });
            return _context.abrupt("return");
          case 1:
            if (!(that.communicationMethod === 1)) {
              _context.next = 2;
              break;
            }
            that.saveQuestion();
            _context.next = 4;
            break;
          case 2:
            if (!(this.selectedCode === -1 && this.rewardAmount <= 0 || !this.selectedCode)) {
              _context.next = 3;
              break;
            }
            (0, _toast.default)({
              message: '请输入金额',
              duration: 1500
            });
            return _context.abrupt("return");
          case 3:
            this.QaQuestionQuickPay();
          case 4:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 问答打赏支付
     */
    QaQuestionQuickPay: function QaQuestionQuickPay() {
      var _this5 = this;
      if (!this._Util.isApp() && !this._Util.isMPaaS()) {
        this._Util.getKaluliAuth(this);
      }
      var params = {
        amount: this.rewardAmount,
        code: this.selectedCode === -1 ? null : this.selectedCode,
        questionNo: this.questionNo
      };
      this._Util.post(this._Api.QA_QUESTION_QUICK_PAY, params, function (data) {
        // 微信支付
        _this5._Util.wxPay(data.jsApiParameters, function () {
          _this5.saveQuestion();
        });
      }, function () {}, this);
    },
    init: function init() {
      window.scrollTo(0, 0);
    },
    blurInput: function blurInput() {
      setTimeout(function () {
        window.scrollTo(0, document.documentElement.clientHeight);
      }, 300);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page method-page"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"method-wrap"},[_c('p',{staticClass:"tip"},[_vm._v("请选择沟通方式：(二选一)")]),_vm._v(" "),_c('div',{staticClass:"method-list"},_vm._l((_vm.communicModeList),function(item,index){return _c('div',{key:index,staticClass:"method-item",on:{"click":function($event){return _vm.selectCommunicationMethod(item.type)}}},[_c('div',{staticClass:"inner-top"},[(index === 0)?_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(3520),"alt":""}}):_vm._e(),_vm._v(" "),(index === 1)?_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(3521),"alt":""}}):_vm._e(),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('span',{staticClass:"radio1",class:{'checked': _vm.communicationMethod === item.type}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.communicationMethod === 2 && item.type === 2),expression:"communicationMethod === 2 && item.type === 2"}],staticClass:"inner-content hairline"},[_c('h3',[_vm._v("设置悬赏金额：")]),_vm._v(" "),_c('div',{staticClass:"money-list"},_vm._l((_vm.rewardAmountList),function(m,i){return _c('span',{key:i,class:{'selected': _vm.selectedCode === m.code},on:{"click":function($event){return _vm.selectMoney(m)}}},[_vm._v(_vm._s(m.value))])}),0),_vm._v(" "),_c('p',[_vm._v("电话沟通是卡修宝典严格筛选一批具有多年维修经验的修车能手，通过电话为您及时解决问题。此解决方式，需支付悬赏金额≥50元")]),_vm._v(" "),_c('p',[_vm._v("金额越高，动力越大~")])])])}),0),_vm._v(" "),_c('div',{staticClass:"method-bottom"},[_c('div',{staticClass:"qa-btn btn3 pay-btn",class:{'confirm': _vm.communicationMethod },on:{"click":function($event){return _vm.confirmQuestion()}}},[_vm._v(_vm._s(_vm.communicationMethod === 2 ? '立即支付' : '确定'))]),_vm._v(" "),_c('div',{staticClass:"qa-btn back-btn",on:{"click":function($event){return _vm.editBrandOrModel(5)}}},[_vm._v("返回上一步")])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container reward-amount-popup",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.cashSettingPopup),callback:function ($$v) {_vm.cashSettingPopup=$$v},expression:"cashSettingPopup"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"form-cell"},[_c('div',{staticClass:"label"},[_vm._v("现金悬赏")]),_vm._v(" "),_c('div',{staticClass:"value"},[_c('van-field',{attrs:{"type":"digit","input-align":"right","placeholder":"请输入金额"},on:{"blur":function($event){return _vm.blurInput()}},model:{value:(_vm.rewardAmount),callback:function ($$v) {_vm.rewardAmount=$$v},expression:"rewardAmount"}}),_c('span',[_vm._v("元")])],1)])]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeCashPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeCashPopup('confirm')}}},[_vm._v("确认")])])])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('img',{attrs:{"src":__webpack_require__(3522)}}),_vm._v(" "),_c('span',[_vm._v("问题创建成功")])])}]
module.exports = __webpack_require__.p + "static/img/text_icon.a39784a.png";module.exports = __webpack_require__.p + "static/img/tel_icon.84737c2.png";module.exports = __webpack_require__.p + "static/img/create_icon.1ff70f8.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(685);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_dd42d1a4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1284);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3523)
  __webpack_require__(3525)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-dd42d1a4"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_dd42d1a4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_dd42d1a4_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_questionProgress_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3524);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6ce53128", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".setting-popup-container.van-popup--bottom.van-popup--round{border-radius:.4rem .4rem 0 0}.reward-amount-popup .van-cell,.setting-popup-container .van-cell{padding:0 .2rem;background-color:transparent}.reward-amount-popup .van-cell input,.setting-popup-container .van-cell input{font-size:.85rem}.reward-amount-popup .van-cell input::-webkit-input-placeholder,.setting-popup-container .van-cell input::-webkit-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input:-ms-input-placeholder,.setting-popup-container .van-cell input:-ms-input-placeholder{font-size:.85rem;color:#999}.reward-amount-popup .van-cell input::placeholder,.setting-popup-container .van-cell input::placeholder{font-size:.85rem;color:#999}.van-dialog{width:16.75rem}.van-dialog.qa-dialog{border-radius:.4rem}.van-dialog.qa-dialog .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.qa-dialog .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.qa-dialog .van-button--default{height:2.65rem;color:#333}.van-dialog.qa-dialog .van-button--default .van-button__text{font-size:.9rem}.van-dialog.qa-dialog .van-dialog__confirm{color:#177afa}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3526);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("71466c89", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-dd42d1a4]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-dd42d1a4]{font-family:PingFangSC-Regular,PingFang SC}@-webkit-keyframes rotate-data-v-dd42d1a4{0%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes rotate-data-v-dd42d1a4{0%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}.separate[data-v-dd42d1a4]{width:100%;height:.2rem;background-color:#f4f5f6}.radio1[data-v-dd42d1a4]{display:inline-block;width:1rem;height:1rem;background-image:url(" + escape(__webpack_require__(792)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.radio1.checked[data-v-dd42d1a4]{background-image:url(" + escape(__webpack_require__(793)) + ")}.page[data-v-dd42d1a4]{background-color:#f4f5f6;overflow:auto}.qa-btn[data-v-dd42d1a4]{width:100%;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#177afa}.qa-btn.btn1[data-v-dd42d1a4]{border-radius:.3rem;border:.05rem solid #177afa}.qa-btn.btn3[data-v-dd42d1a4]{height:2.5rem;border-radius:.3rem;background-color:#177afa;color:#fff}.current-status[data-v-dd42d1a4]{width:100%;height:10.75rem;background-color:#fff;overflow:hidden}.current-status .progress-time[data-v-dd42d1a4]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:6rem;height:6rem;margin:.8rem auto;border-radius:100%;font-size:.65rem;font-weight:400;line-height:.65rem}.current-status .progress-time span[data-v-dd42d1a4]{position:relative;z-index:4;color:#333;font-size:.65rem}.current-status .progress-time .bg[data-v-dd42d1a4]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.current-status .progress-time .bg.animation[data-v-dd42d1a4]{-webkit-animation:rotate-data-v-dd42d1a4 5s linear infinite;animation:rotate-data-v-dd42d1a4 5s linear infinite}.current-status .progress-time .time[data-v-dd42d1a4]{margin-bottom:.25rem;line-height:1rem;font-size:1rem;font-weight:600;color:#333}.current-status .tip-1[data-v-dd42d1a4]{margin-top:.8rem;line-height:1.25rem;font-size:.9rem;font-weight:500;color:#333;text-align:center}.current-status .tip-1 span[data-v-dd42d1a4]{color:#ff6517;font-size:.9rem}.current-status .tip-2[data-v-dd42d1a4]{margin:.25rem 0 .6rem;line-height:1.05rem;font-size:.75rem;color:#333;text-align:center}.que-btn[data-v-dd42d1a4]{margin:1.2rem 0;padding:0 .6rem}.que-btn .btn[data-v-dd42d1a4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.55rem;border:.05rem solid #177afa;border-radius:1.91rem;background-color:#fff;overflow:hidden;text-align:center;font-size:.9rem}.que-btn .btn.btn-1[data-v-dd42d1a4]{margin-bottom:.6rem;background-color:#177afa;color:#fff}.que-btn .btn.btn-2[data-v-dd42d1a4]{color:#177afa}.que-btn .btn span[data-v-dd42d1a4]{position:relative;font-size:.9rem}.que-btn .btn .tip[data-v-dd42d1a4]{position:absolute;top:-.2rem;display:inline-block;padding:.2rem .4rem;line-height:.6rem;font-size:.6rem;color:#fff;background-color:#ff7935;white-space:nowrap;border-radius:.55rem .55rem .55rem 0}.history[data-v-dd42d1a4]{padding:0 .6rem;margin:.8rem 0}.history h3[data-v-dd42d1a4]{margin-bottom:.6rem;line-height:1rem;font-size:.7rem;font-weight:600;color:#333}.history .history-list[data-v-dd42d1a4]{padding:0 .6rem;background-color:#fff;border-radius:.3rem}.history .history-list .item[data-v-dd42d1a4]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:.6rem 0;min-height:2.25rem}.history .history-list .item[data-v-dd42d1a4]:before{left:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-bottom-width:1px}.history .history-list .item[data-v-dd42d1a4]:last-child:before{display:none}.history .history-list .item .item-top[data-v-dd42d1a4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;line-height:1.05rem;white-space:nowrap;color:#333}.history .history-list .item .item-top p[data-v-dd42d1a4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:600;text-overflow:ellipsis;overflow:hidden;font-size:.75rem}.history .history-list .item .item-top p span[data-v-dd42d1a4]{font-weight:600}.history .history-list .item .item-top span[data-v-dd42d1a4]{font-size:.75rem;font-weight:400}.history .history-list .item .item-bottom[data-v-dd42d1a4]{width:100%;margin-top:.2rem;line-height:.9rem;font-size:.65rem;color:#666}.history .history-list .item .item-bottom .tool[data-v-dd42d1a4]{margin-left:.4rem;color:#177afa}.history .history-list .item .item-bottom .tool[data-v-dd42d1a4]:after{display:inline-block;content:\"\";width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(118)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.popup-container[data-v-dd42d1a4]{width:16.35rem}.popup-container.popup-container-1[data-v-dd42d1a4]{width:100%}.popup-container .popup-content[data-v-dd42d1a4]{padding:1.4rem 1rem}.popup-container .popup-content .form-cell[data-v-dd42d1a4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.4rem;padding:0 .6rem;background-color:#f3f4f5;border-radius:.2rem}.popup-container .popup-content .form-cell .label[data-v-dd42d1a4]{margin-right:.6rem;font-size:.85rem;color:#333;line-height:1}.popup-container .popup-content .form-cell .value[data-v-dd42d1a4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-content .form-cell .value input[data-v-dd42d1a4]{display:inline-block;width:100%;font-size:.85rem;color:#333}.popup-container .popup-content .form-cell .value input[data-v-dd42d1a4]::-webkit-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-dd42d1a4]:-ms-input-placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input[data-v-dd42d1a4]::placeholder{color:#999;font-size:.85rem}.popup-container .popup-content .form-cell .value input.text-center[data-v-dd42d1a4]{text-align:center}.popup-container .popup-content .form-cell .value input.text-right[data-v-dd42d1a4]{text-align:right}.popup-container .popup-content .form-cell .value span[data-v-dd42d1a4]{margin-left:.2rem;line-height:1;font-size:.85rem;color:#333}.popup-container .popup-content.brand-content[data-v-dd42d1a4]{height:23.43rem;padding:0;overflow-y:auto}.popup-container .popup-content.brand-content .brand-list[data-v-dd42d1a4]{padding:.2rem 0 0 3.1rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-dd42d1a4]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:1.8rem}.popup-container .popup-content.brand-content .brand-list .brand-item[data-v-dd42d1a4]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .brand-list .brand-item.selected .brand-name[data-v-dd42d1a4]{color:#177afa}.popup-container .popup-content.brand-content .brand-list .brand-item.selected[data-v-dd42d1a4]:after{display:inline-block;content:\"\";position:absolute;right:.8rem;width:.7rem;height:.48rem;background-image:url(" + escape(__webpack_require__(173)) + ");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-icon[data-v-dd42d1a4]{position:absolute;top:.6rem;left:-2.2rem;display:inline-block;width:1.6rem;height:1.6rem;vertical-align:top;overflow:hidden;background-color:#f3f4f5}.popup-container .popup-content.brand-content .brand-list .brand-item .brand-name[data-v-dd42d1a4]{display:block;width:100%;font-size:.9rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popup-container .popup-content.brand-content .selected-brand[data-v-dd42d1a4]{position:relative;padding:.6rem 0 .25rem}.popup-container .popup-content.brand-content .selected-brand[data-v-dd42d1a4]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-content.brand-content .selected-brand .selected-item[data-v-dd42d1a4]{display:inline-block;height:1.4rem;margin-left:.8rem;margin-bottom:.35rem;background-color:#f5f5f5;border-radius:.2rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-dd42d1a4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit;padding:0 .4rem 0 .6rem;color:#333;font-size:.7rem}.popup-container .popup-content.brand-content .selected-brand .selected-item .meta[data-v-dd42d1a4]:after{display:inline-block;content:\"\";width:.6rem;height:.6rem;margin-left:.6rem;background-image:url(" + escape(__webpack_require__(180)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.popup-container .popup-toolbar[data-v-dd42d1a4]{width:100%;-ms-flex-align:center}.popup-container .popup-toolbar[data-v-dd42d1a4],.popup-container .popup-toolbar span[data-v-dd42d1a4]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.popup-container .popup-toolbar span[data-v-dd42d1a4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem;color:#333}.popup-container .popup-toolbar span[data-v-dd42d1a4]:before{top:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.popup-container .popup-toolbar span.confirm-btn[data-v-dd42d1a4]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top[data-v-dd42d1a4]{height:2.75rem;background-color:#f6f6f6;border-radius:.5rem .5rem 0 0}.popup-container .popup-toolbar.popup-toolbar-top[data-v-dd42d1a4]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-toolbar.popup-toolbar-top span[data-v-dd42d1a4]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding:0 .8rem;font-size:.7rem;color:#666}.popup-container .popup-toolbar.popup-toolbar-top span.confirm-btn[data-v-dd42d1a4]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top .title[data-v-dd42d1a4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;text-align:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-dd42d1a4]{position:relative;width:100%;height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-dd42d1a4]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.setting-popup-container[data-v-dd42d1a4]{height:21.53rem;overflow:hidden}.setting-popup-container .popup-top[data-v-dd42d1a4]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:2.53rem;background-color:#f6f6f6}.setting-popup-container .popup-top[data-v-dd42d1a4]:before{left:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-bottom-width:1px}.setting-popup-container .popup-top span[data-v-dd42d1a4]{display:inline-block;line-height:1;font-size:.8rem;font-weight:600;color:#333}.setting-popup-container .popup-top span.close[data-v-dd42d1a4]{position:absolute;top:0;right:0;display:inline-block;padding:.9rem;line-height:1;font-size:.7rem;font-weight:400;color:#666}.setting-popup-container .popup-content[data-v-dd42d1a4]{position:relative;height:97.47%;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.setting-popup-container .popup-content .lifting-wrap[data-v-dd42d1a4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.setting-popup-container .popup-content .lifting-wrap .item[data-v-dd42d1a4]{padding:0 .6rem 0 .8rem}.setting-popup-container .popup-content .lifting-wrap .item .item-top[data-v-dd42d1a4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:4rem}.setting-popup-container .popup-content .lifting-wrap .item .item-top .type[data-v-dd42d1a4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.setting-popup-container .popup-content .lifting-wrap .item .item-top .type img[data-v-dd42d1a4]{display:inline-block;width:1rem;height:1rem;margin-right:.4rem;vertical-align:sub}.setting-popup-container .popup-content .lifting-wrap .item .item-top .type span[data-v-dd42d1a4]{line-height:1.25rem;font-size:.9rem;font-weight:600;color:#333}.setting-popup-container .popup-content .lifting-wrap .money-list[data-v-dd42d1a4]{margin-right:-.6rem;margin-bottom:.8rem;text-align:center}.setting-popup-container .popup-content .lifting-wrap .money-list span[data-v-dd42d1a4]{display:inline-block;width:3.63rem;height:1.6rem;line-height:1.6rem;margin-right:.6rem;margin-bottom:.5rem;background-color:#f4f5f6;border-radius:.2rem;text-align:center;font-size:.7rem;color:#999;vertical-align:top}.setting-popup-container .popup-content .lifting-wrap .money-list span.selected[data-v-dd42d1a4]{background-color:#177afa;color:#fff}.setting-popup-container .popup-content .lifting-wrap .xd-input[data-v-dd42d1a4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;border-radius:.2rem;padding:0 .6rem;background-color:#f4f5f6}.setting-popup-container .popup-content .que-btn .btn[data-v-dd42d1a4]{margin-bottom:2rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(142));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _field.default.name, _field.default), _popup.default.name, _popup.default), _dialog.default.name, _dialog.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      dialogMsg: {},
      settingPopup: false,
      problemIntegrity: '',
      // 当前预估接单率
      orderRateVoList: [],
      // 接单率提升记录
      rewardAmountList: [],
      // 悬赏金额列表
      rewardAmount: null,
      // 悬赏金额
      starNum: null,
      // 悬赏星豆
      selectedCode: null,
      liftingMethod: null,
      starCount: 0,
      cashSettingPopup: false,
      createTime: '',
      timingText: '00:00',
      timer: null,
      orderStatus: 2,
      orderStatusName: '',
      questionTitle: ''
    };
  },
  created: function created() {
    var _this = this;
    this.getUnAcceptQuestionData();
    this.getRewardAmountList();
    var userId = localStorage.getItem('userId');
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(userId), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(userId), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(userId), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(userId), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: userId,
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问题详情页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  mounted: function mounted() {
    var _this2 = this;
    this.$nextTick(function () {
      _this2.shareConfig();
    });
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this2.shareConfig();
        });
      }, 300);
    }
  },
  methods: {
    /**
     * 获取悬赏金额列表
     */
    getRewardAmountList: function getRewardAmountList() {
      var _this3 = this;
      this._Util.post(this._Api.GET_REWARD_AMOUNT_LIST, {
        type: 2
      }, function (data) {
        _this3.rewardAmountList = data;
        _this3.rewardAmountList.push({
          code: -1,
          value: '其他'
        });
      }, function () {}, this);
    },
    /**
     * 选择悬赏方式
     */
    selectLiftingMethod: function selectLiftingMethod(method) {
      this.liftingMethod = method;
      this.selectedCode = null;
      this.starNum = null;
    },
    /**
     * 选择悬赏金额
     */
    selectMoney: function selectMoney(item) {
      this.selectedCode = item.code;
      if (item.code === -1) {
        this.cashSettingPopup = true;
      } else {
        this.rewardAmount = null;
        this.rewardAmountList[this.rewardAmountList.length - 1].value = '其他';
      }
    },
    /**
     * 自定义悬赏金额
     */
    closeCashPopup: function closeCashPopup(type) {
      _toast.default.clear();
      if (type === 'confirm') {
        if (!this.rewardAmount || this.rewardAmount <= 0) {
          (0, _toast.default)({
            message: '请输入金额',
            duration: 1500
          });
          return;
        }
        this.rewardAmountList[this.rewardAmountList.length - 1].value = this.rewardAmount + '元';
        this.cashSettingPopup = false;
      } else {
        this.rewardAmountList[this.rewardAmountList.length - 1].value = '其他';
        this.cashSettingPopup = false;
      }
    },
    /**
     * 确认提升
     */
    confirmLifting: function confirmLifting() {
      if (this.liftingMethod === 2) {
        // 现金悬赏
        if (this.selectedCode === -1 && this.rewardAmount <= 0 || !this.selectedCode) {
          (0, _toast.default)({
            message: '请输入金额',
            duration: 1500
          });
          return;
        }
        window.scrollTo(0, document.documentElement.clientHeight);
        this.QaQuestionQuickPay();
      } else {
        // 星豆悬赏
        if (!this.starNum || this.starNum < 100) {
          (0, _toast.default)({
            message: '请输入星豆数量，最少100个',
            duration: 1500
          });
          return;
        }
        this.useStarBean();
      }
    },
    /**
     * 星豆悬赏
     */
    useStarBean: function useStarBean() {
      var _this4 = this;
      this._Util.post(this._Api.USE_STAR_BEAN, {
        beanNum: this.starNum,
        questionNo: this.$route.query.questionNo
      }, function (data) {
        _this4.settingPopup = false;
        _this4.getUnAcceptQuestionData();
      }, function () {}, this);
    },
    /**
     * 现金悬赏支付
     */
    QaQuestionQuickPay: function QaQuestionQuickPay() {
      var _this5 = this;
      if (!this._Util.isApp() && !this._Util.isMPaaS()) {
        this._Util.getKaluliAuth(this);
      }
      var params = {
        amount: this.rewardAmount,
        code: this.selectedCode === -1 ? null : this.selectedCode,
        questionNo: this.$route.query.questionNo
      };
      this._Util.post(this._Api.QA_QUESTION_QUICK_PAY, params, function (data) {
        // 微信支付
        _this5._Util.wxPay(data.jsApiParameters, function () {
          _this5.settingPopup = false;
          _this5.getUnAcceptQuestionData();
        });
      }, function () {}, this);
    },
    /**
     * 获取订单详情
     */
    getUnAcceptQuestionData: function getUnAcceptQuestionData() {
      var _this6 = this;
      this._Util.post(this._Api.GET_UN_ACCEPT_QUESTION_DATA, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        _this6.problemIntegrity = data.problemIntegrity;
        _this6.createTime = data.createTime;
        _this6.orderRateVoList = data.orderRateVoList;
        _this6.starCount = data.starCount;
        _this6.orderStatus = data.status;
        _this6.questionTitle = data.questionTitle;
        _this6.shareConfig();
        switch (data.status) {
          case 2:
            _this6.orderStatusName = '派单中';
            break;
          case 3:
            _this6.orderStatusName = '未采纳';
            break;
          case 4:
            _this6.orderStatusName = '已采纳';
            break;
          case 5:
            _this6.orderStatusName = '已作废';
            break;
          case 6:
            _this6.orderStatusName = '已结束';
            break;
          default:
            _this6.orderStatusName = '';
        }
        _this6.timing();
      }, function () {}, this);
    },
    /**
     * 提升接单率
     */
    openSettingPopup: function openSettingPopup() {
      this.settingPopup = true;
    },
    /**
     * 使用加速卡
     */
    useAcceleratorCard: function useAcceleratorCard() {
      var _this7 = this;
      this._Util.post(this._Api.USE_ACCELERATOR_CARD, {
        questionNo: this.$route.query.questionNo
      }, function (data) {
        if (data.type === 1) {
          _this7.getUnAcceptQuestionData();
          (0, _toast.default)({
            message: data.msg,
            duration: 1500
          });
          _this7._Util.sensorsCollect('element_click', {
            operation_page: '问答',
            element_name: '使用加速卡',
            element_content: '使用加速卡',
            element_class_name: '',
            element_type: '',
            element_target_url: '',
            url: location.href,
            title: '派单详情页',
            moudle_type: '问答',
            correlation_id: _this7.questionId
          });
        } else {
          _dialog.default.confirm({
            message: data.msg,
            confirmButtonText: '去领取',
            className: 'qa-dialog'
          }).then(function () {
            if (_this7._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: 'acceleratorCard',
                  url: "".concat(location.origin, "/v2/questionsAndAnswers/acceleratorCard")
                }
              });
            } else {
              _this7.$router.push({
                name: 'acceleratorCard'
              });
            }
          }).catch(function () {});
        }
      }, function () {}, this);
    },
    timing: function timing() {
      var _this8 = this;
      clearInterval(this.timer);
      var currentTime = new Date().getTime();
      if (currentTime - this.createTime >= 30 * 60 * 1000) {
        this.orderStatus = 5;
        this.orderStatusName = '已作废';
        this.timingText = '30:00';
      } else {
        this.timer = setInterval(function () {
          if (new Date().getTime() - _this8.createTime >= 30 * 60 * 1000) {
            _this8.orderStatus = 5;
            _this8.orderStatusName = '已作废';
            clearInterval(_this8.timer);
          }
          _this8.timingText = _this8._Util.parseTime(new Date().getTime() - _this8.createTime, '{i}:{s}');
        }, 1000);
      }
    },
    /**
     * 完善问题
     */
    editBrandOrModel: function editBrandOrModel(type) {
      localStorage.setItem('draftStatus', 2);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: "putQuestion".concat(type).concat(new Date().getTime()),
            url: location.origin + '/v2/questionsAndAnswers/putQuestion' + type + (this.$route.query.questionNo || typeof this.$route.query.questionNo !== 'undefined' ? '?questionNo=' + this.$route.query.questionNo : '')
          }
        });
      } else {
        this.$router.push({
          name: "putQuestion".concat(type),
          query: {
            questionNo: this.$route.query.questionNo
          }
        });
      }
    },
    blurInput: function blurInput() {
      window.scrollTo(0, document.documentElement.clientHeight);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: this.questionTitle || '故障现象',
        desc: '这个问题需要帮忙解答',
        link: "".concat(location.origin, "/v2/questionsAndAnswers/orderDetails?questionNo=").concat(this.$route.query.questionNo),
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"current-status"},[_c('div',{staticClass:"progress-time"},[_c('img',{staticClass:"bg",class:{'animation' : _vm.orderStatus === 2},attrs:{"src":__webpack_require__(3527)}}),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm.timingText))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.orderStatusName))])]),_vm._v(" "),_c('div',{staticClass:"tip-1"},[_vm._v("当前预估接单率："),_c('span',[_vm._v(_vm._s(_vm.problemIntegrity || 0)+"%")])]),_vm._v(" "),_c('div',{staticClass:"tip-2"},[_vm._v("问题越完整，接单的可能性越大")])]),_vm._v(" "),_c('div',{staticClass:"que-btn"},[_c('div',{staticClass:"btn btn-1",on:{"click":function($event){_vm.settingPopup = true}}},[_vm._v("提升接单率")]),_vm._v(" "),_c('div',{staticClass:"btn btn-2",on:{"click":function($event){return _vm.useAcceleratorCard()}}},[_vm._m(0)])]),_vm._v(" "),_c('div',{staticClass:"history"},[_c('h3',[_vm._v("接单率提升记录")]),_vm._v(" "),_c('div',{staticClass:"history-list"},_vm._l((_vm.orderRateVoList),function(item,index){return _c('div',{key:index,staticClass:"item hairline"},[_c('div',{staticClass:"item-top"},[_c('p',[_vm._v(_vm._s(index + 1)+". "+_vm._s(item.typeName)),(item.num)?_c('span',[_vm._v("："+_vm._s(item.num)+_vm._s(item.type === 4 ? '元' : item.type === 5 ? '个' : ''))]):_vm._e()]),_vm._v(" "),(item.orderRate && item.orderRate.toString())?_c('span',[_vm._v("+"+_vm._s(item.orderRate)+"%")]):_vm._e()]),_vm._v(" "),(item.text)?_c('div',{staticClass:"item-bottom"},[_c('span',{staticClass:"meta"},[_vm._v(_vm._s(item.text))]),(item.type === 1 && item.maxIntegrity > item.orderRate)?_c('span',{staticClass:"tool",on:{"click":function($event){return _vm.editBrandOrModel(5)}}},[_vm._v("完善问题")]):_vm._e()]):_vm._e()])}),0)]),_vm._v(" "),_c('van-popup',{staticClass:"setting-popup-container",attrs:{"round":true,"position":"bottom","close-on-click-overlay":false},model:{value:(_vm.settingPopup),callback:function ($$v) {_vm.settingPopup=$$v},expression:"settingPopup"}},[_c('div',{staticClass:"popup-top hairline"},[_c('span',[_vm._v("提升接单率")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.settingPopup = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"lifting-wrap"},[_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-top",on:{"click":function($event){return _vm.selectLiftingMethod(2)}}},[_c('div',{staticClass:"type"},[_c('div',[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(3528)}}),_c('span',[_vm._v("现金悬赏")])]),_vm._v(" "),_c('p',[_vm._v("金额越高，动力越大~")])]),_vm._v(" "),_c('span',{staticClass:"radio1",class:{'checked': _vm.liftingMethod === 2}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.liftingMethod === 2),expression:"liftingMethod === 2"}],staticClass:"money-list"},_vm._l((_vm.rewardAmountList),function(m,i){return _c('span',{key:i,class:{'selected': _vm.selectedCode === m.code},on:{"click":function($event){return _vm.selectMoney(m)}}},[_vm._v(_vm._s(m.value))])}),0)]),_vm._v(" "),_c('div',{staticClass:"separate"}),_vm._v(" "),_c('div',{staticClass:"item"},[_c('div',{staticClass:"item-top",on:{"click":function($event){return _vm.selectLiftingMethod(3)}}},[_c('div',{staticClass:"type"},[_c('div',[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(3529)}}),_c('span',[_vm._v("星豆悬赏")])]),_vm._v(" "),_c('p',[_vm._v("剩余星豆："+_vm._s(_vm.starCount)+"个")])]),_vm._v(" "),_c('span',{staticClass:"radio1",class:{'checked': _vm.liftingMethod === 3}})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.liftingMethod === 3),expression:"liftingMethod === 3"}],staticClass:"xd-input"},[_c('van-field',{attrs:{"type":"digit","placeholder":"请输入星豆数量, 最少100个"},model:{value:(_vm.starNum),callback:function ($$v) {_vm.starNum=$$v},expression:"starNum"}})],1)])]),_vm._v(" "),_c('div',{staticClass:"que-btn"},[_c('div',{staticClass:"btn btn-1",on:{"click":function($event){return _vm.confirmLifting()}}},[_vm._v(_vm._s(_vm.liftingMethod === 2 ? '立即支付' : '确认'))])])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container reward-amount-popup",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.cashSettingPopup),callback:function ($$v) {_vm.cashSettingPopup=$$v},expression:"cashSettingPopup"}},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"form-cell"},[_c('div',{staticClass:"label"},[_vm._v("现金悬赏")]),_vm._v(" "),_c('div',{staticClass:"value"},[_c('van-field',{attrs:{"type":"digit","input-align":"right","placeholder":"请输入金额"},on:{"blur":function($event){return _vm.blurInput()}},model:{value:(_vm.rewardAmount),callback:function ($$v) {_vm.rewardAmount=$$v},expression:"rewardAmount"}}),_c('span',[_vm._v("元")])],1)])]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeCashPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeCashPopup('confirm')}}},[_vm._v("确认")])])]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_vm._v("使用加速卡"),_c('span',{staticClass:"tip"},[_vm._v("提升15%")])])}]
module.exports = __webpack_require__.p + "static/img/progress_bg.ad1f1db.png";module.exports = __webpack_require__.p + "static/img/xs_1_1.9e48f78.png";module.exports = __webpack_require__.p + "static/img/xs_2_1.28cccc3.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(686);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a8f54e1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1285);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3530)
  __webpack_require__(3532)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7a8f54e1"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a8f54e1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7a8f54e1_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_acceleratorCard_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3531);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("65609c94", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".popup-container.van-popup--center.van-popup--round{border-radius:.4rem}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3533);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("c0f71b48", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-7a8f54e1]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-7a8f54e1]{font-family:PingFangSC-Regular,PingFang SC}.page[data-v-7a8f54e1]{height:auto!important;min-height:100%}.a-card-page[data-v-7a8f54e1]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:#f3f4f5;min-height:100%;overflow:hidden}.page-content[data-v-7a8f54e1]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.page-content .card-top[data-v-7a8f54e1]{padding:1rem .8rem .8rem;overflow:hidden}.page-content .card-top h1[data-v-7a8f54e1]{line-height:1.33rem;font-weight:600;font-size:.95rem;color:#333}.page-content .card-top p[data-v-7a8f54e1]{margin-top:.1rem;line-height:1rem;font-size:.7rem;color:#999}.page-content .card[data-v-7a8f54e1]{padding:0 .6rem}.page-content .card .card-panel[data-v-7a8f54e1]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:4.7rem;padding:.8rem .6rem;background-color:#fff;border-radius:.3rem;overflow:hidden}.page-content .card .card-panel .card-icon[data-v-7a8f54e1]{display:inline-block;width:3.1rem;height:3.1rem;margin-right:.6rem;overflow:hidden;vertical-align:top}.page-content .card .card-panel .card-info[data-v-7a8f54e1]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;white-space:nowrap;overflow:hidden}.page-content .card .card-panel .card-info .title[data-v-7a8f54e1]{line-height:1.1rem;font-size:.8rem;color:#333;font-weight:600;text-overflow:ellipsis;overflow:hidden}.page-content .card .card-panel .card-info .meta[data-v-7a8f54e1]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.3rem}.page-content .card .card-panel .card-info .meta .meta-lf[data-v-7a8f54e1]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.page-content .card .card-panel .card-info .meta .card-btn[data-v-7a8f54e1]{display:inline-block;width:4.4rem;height:1.6rem;padding:.45rem 0;font-size:.7rem;line-height:.7rem;color:#edd398;text-align:center;border-radius:1.2rem;overflow:hidden;background:-webkit-gradient(linear,left top,left bottom,from(#5d5d5d),to(#3c3c3c));background:linear-gradient(180deg,#5d5d5d,#3c3c3c)}.page-content .card .card-panel .card-info .meta .num[data-v-7a8f54e1]{line-height:1rem;font-size:.7rem;color:#999}.page-content .card .card-panel .card-info .meta .num em[data-v-7a8f54e1]{margin:0 .1rem 0 .2rem;line-height:1.2rem;font-size:1.2rem;font-weight:600;color:#ff3f3f;vertical-align:text-bottom}.page-content .card .card-panel.received .card-info .meta .num[data-v-7a8f54e1],.page-content .card .card-panel.received .card-info .meta .num em[data-v-7a8f54e1],.page-content .card .card-panel.received .card-info .title[data-v-7a8f54e1]{color:#b3b3b3}.page-content .card .card-panel.received .card-info .meta .card-btn[data-v-7a8f54e1]{background:#b3b3b3;color:#fff}.page-content .card .notes[data-v-7a8f54e1]{margin-top:.8rem}.page-content .card .notes .card-info .title span[data-v-7a8f54e1]{margin:0 .4rem;font-size:1.2rem;color:#ff3f3f;vertical-align:text-bottom}.page-content .card .notes .card-info .meta[data-v-7a8f54e1]{margin-top:1rem}.page-content .card .notes .card-info .meta .time[data-v-7a8f54e1]{line-height:1rem;font-size:.7rem;color:#999}.page-content .f-link[data-v-7a8f54e1]{text-align:center;margin:1.4rem 0}.page-content .f-link span[data-v-7a8f54e1]{line-height:1.05rem;font-size:.75rem;color:#177afa}.page-content .f-link span[data-v-7a8f54e1]:after{display:inline-block;content:\"\";width:.3rem;height:.5rem;margin-left:.3rem;background-image:url(" + escape(__webpack_require__(118)) + ");background-position:50%;background-repeat:no-repeat;background-size:100%}.page-bottom[data-v-7a8f54e1]{margin:2rem 0;text-align:center}.page-bottom span[data-v-7a8f54e1]{line-height:1.13rem;font-size:.8rem;color:#177afa}.popup-container .layer-content[data-v-7a8f54e1]{width:16.75rem;padding:1.6rem 1.4rem 1.4rem;background-color:#fff;overflow:hidden}.popup-container .layer-content .title[data-v-7a8f54e1]{margin-bottom:.6rem;text-align:center;line-height:1.25rem;font-size:.9rem;font-weight:600;color:#333}.popup-container .layer-content .desc[data-v-7a8f54e1]{text-align:center;line-height:1.35rem;font-size:.85rem;color:#666}.popup-container .popup-toolbar[data-v-7a8f54e1]{width:100%;-ms-flex-align:center}.popup-container .popup-toolbar[data-v-7a8f54e1],.popup-container .popup-toolbar span[data-v-7a8f54e1]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.popup-container .popup-toolbar span[data-v-7a8f54e1]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem;color:#333}.popup-container .popup-toolbar span[data-v-7a8f54e1]:before{top:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px}.popup-container .popup-toolbar span.confirm-btn[data-v-7a8f54e1]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top[data-v-7a8f54e1]{height:2.75rem;background-color:#f6f6f6;border-radius:.5rem .5rem 0 0}.popup-container .popup-toolbar.popup-toolbar-top[data-v-7a8f54e1]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.popup-container .popup-toolbar.popup-toolbar-top span[data-v-7a8f54e1]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding:0 .8rem;font-size:.7rem;color:#666}.popup-container .popup-toolbar.popup-toolbar-top span.confirm-btn[data-v-7a8f54e1]{color:#177afa}.popup-container .popup-toolbar.popup-toolbar-top .title[data-v-7a8f54e1]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:600;color:#333;text-align:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-7a8f54e1]{position:relative;width:100%;height:2.45rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.popup-container .popup-toolbar.popup-toolbar-bottom[data-v-7a8f54e1]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _dialog.default.name, _dialog.default), _toast.default.name, _toast.default),
  data: function data() {
    return {
      showCardDesc: false,
      showJoinVipPopup: false,
      cardInfo: {},
      cardDescr: ''
    };
  },
  created: function created() {
    this.getQaQuestionCardData();
    this.cardDesc();
  },
  methods: {
    /**
     * 领取加速卡
     */
    receive: function receive(info) {
      var _this = this;
      if (info.status !== 1) {
        this._Util.post(this._Api.RECEIVE_CARD, {
          cardTitle: this.cardInfo.cardTitle,
          cardText: this.cardInfo.cardText,
          cardNum: this.cardInfo.cardNum,
          cardMonth: this.cardInfo.cardMonth
        }, function (data) {
          if (data.code === 1) {
            (0, _toast.default)({
              message: data.text,
              duration: 1500
            });
            _this.getQaQuestionCardData();
          } else {
            _this.showJoinVipPopup = true;
          }
        }, function () {}, this);
      }
    },
    /**
     * 获取加速卡
     */
    getQaQuestionCardData: function getQaQuestionCardData() {
      var _this2 = this;
      this._Util.post(this._Api.GET_QA_QUESTION_CARD_DATA, {}, function (data) {
        _this2.cardInfo = data;
      }, function () {}, this);
    },
    cardDesc: function cardDesc() {
      var _this3 = this;
      this._Util.post(this._Api.QUERY_NOTICE_AND_QRCODE, {
        code: 'ask_speed_card_note'
      }, function (data) {
        _this3.cardDescr = data.dataList[0].text.replace(/\n/g, '<br>');
      }, function () {}, this, true);
    },
    /**
     * 开通会员
     */
    closeVipPopup: function closeVipPopup(type) {
      this.showJoinVipPopup = false;
      if (type === 'confirm') {
        location.href = location.origin + '/v2/business/pay/certificationRenewal?userStatus=' + this.$store.state.userInfo.userStatus;
      }
    },
    usageRecord: function usageRecord() {
      localStorage.setItem('cardFlag', 1);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'allProblems',
            url: "".concat(location.origin, "/v2/questionsAndAnswers/allProblems")
          }
        });
      } else {
        this.$router.push({
          name: 'allProblems'
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page a-card-page"},[_c('div',{staticClass:"page-content"},[_c('div',{staticClass:"card-top"},[_c('h1',[_vm._v(_vm._s(_vm.cardInfo.pageTitle))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.cardInfo.pageText))])]),_vm._v(" "),_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-panel",class:{'received' : _vm.cardInfo.status === 1}},[(_vm.cardInfo.status === 1)?_c('img',{staticClass:"card-icon",attrs:{"src":__webpack_require__(3534)}}):_c('img',{staticClass:"card-icon",attrs:{"src":__webpack_require__(3535)}}),_vm._v(" "),_c('div',{staticClass:"card-info"},[_c('h3',{staticClass:"title"},[_vm._v(_vm._s(_vm.cardInfo.cardTitle))]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('div',{staticClass:"meta-lf"},[(_vm.cardInfo.cardNum)?_c('span',{staticClass:"num"},[_vm._v("X"),_c('em',[_vm._v(_vm._s(_vm.cardInfo.cardNum))]),_vm._v("张")]):_vm._e()]),_vm._v(" "),_c('span',{staticClass:"card-btn",on:{"click":function($event){return _vm.receive(_vm.cardInfo)}}},[_vm._v(_vm._s(_vm.cardInfo.status === 1 ? '已领取' : '立即领取'))])])])]),_vm._v(" "),_vm._l((_vm.cardInfo.vos),function(item,index){return _c('div',{key:index,staticClass:"card-panel notes"},[_c('div',{staticClass:"card-info"},[_c('h3',{staticClass:"title"},[_vm._v("问答加速卡剩余:"),_c('span',[_vm._v(_vm._s(item.cardNum))]),_vm._v("张")]),_vm._v(" "),_c('div',{staticClass:"meta"},[_c('span',{staticClass:"time"},[_vm._v("有效期："+_vm._s(item.outTime))])])])])})],2),_vm._v(" "),_c('div',{staticClass:"f-link"},[_c('span',{on:{"click":function($event){return _vm.usageRecord()}}},[_vm._v("查看加速卡使用记录")])])]),_vm._v(" "),_c('div',{staticClass:"page-bottom"},[_c('span',{on:{"click":function($event){_vm.showCardDesc = true}}},[_vm._v("什么是加速卡?")])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.showCardDesc),callback:function ($$v) {_vm.showCardDesc=$$v},expression:"showCardDesc"}},[_c('div',{staticClass:"layer-content"},[_c('div',{staticClass:"title"},[_vm._v("什么是加速卡")]),_vm._v(" "),_c('div',{staticClass:"desc",domProps:{"innerHTML":_vm._s(_vm.cardDescr)}})]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"confirm-btn",on:{"click":function($event){_vm.showCardDesc = false}}},[_vm._v("我知道了")])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.showJoinVipPopup),callback:function ($$v) {_vm.showJoinVipPopup=$$v},expression:"showJoinVipPopup"}},[_c('div',{staticClass:"layer-content"},[_c('div',{staticClass:"title"},[_vm._v("您还不是会员")]),_vm._v(" "),_c('div',{staticClass:"desc"},[_vm._v("成为会员，每月免费领取加速卡")])]),_vm._v(" "),_c('div',{staticClass:"popup-toolbar popup-toolbar-bottom hairline"},[_c('span',{staticClass:"hairline",on:{"click":function($event){return _vm.closeVipPopup('close')}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm-btn",on:{"click":function($event){return _vm.closeVipPopup('confirm')}}},[_vm._v("开通会员")])])])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/a_card2_icon.412f38d.png";module.exports = __webpack_require__.p + "static/img/a_card1_icon.146bb99.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(687);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_648950a2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1286);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3536)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-648950a2"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_648950a2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_648950a2_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_qaAssistant_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3537);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("01e9aa6e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[class*=hairline][data-v-648950a2]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-648950a2]{font-family:PingFangSC-Regular,PingFang SC;-webkit-overflow-scrolling:touch}.page[data-v-648950a2]{background-color:#f4f5f6;overflow:hidden}.message-container[data-v-648950a2]{position:relative;overflow-y:auto}.message-container .msg-list[data-v-648950a2]{padding:1rem 0}.message-container .msg-list .msg-inner[data-v-648950a2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .6rem;margin-bottom:1.2rem}.message-container .msg-list .msg-inner .user .avatar[data-v-648950a2]{display:inline-block;width:2rem;height:2rem;vertical-align:top;border-radius:.2rem;overflow:hidden}.message-container .msg-list .msg-inner .content[data-v-648950a2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.message-container .msg-list .msg-inner .content .time[data-v-648950a2]{display:block;line-height:.83rem;margin-bottom:.2rem;font-size:.6rem;color:#999}.message-container .msg-list .msg-inner .content .msg[data-v-648950a2]{display:inline-block;max-width:13.2rem;padding:.4rem .6rem;line-height:1.2rem;text-align:right;word-wrap:break-word;word-break:break-all}.message-container .msg-list .msg-inner .content .msg p[data-v-648950a2]{line-height:1.2rem;text-align:left;font-size:.85rem}.message-container .msg-list .msg-inner .content img[data-v-648950a2]{max-width:5rem;height:auto;vertical-align:top;border-radius:.2rem;overflow:hidden}.message-container .msg-list .msg-inner .content .view-btn[data-v-648950a2]{max-width:4.2rem;margin-top:.6rem;margin-bottom:.2rem;background-color:#177afa;padding:.43rem .8rem;border-radius:1.25rem;line-height:.65rem;font-size:.65rem;text-align:center;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.message-container .msg-list .msg-inner.other-side[data-v-648950a2]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;text-align:left}.message-container .msg-list .msg-inner.other-side .avatar[data-v-648950a2]{margin-right:.6rem}.message-container .msg-list .msg-inner.other-side .msg[data-v-648950a2]{background-color:#fff;color:#333;border-radius:0 .4rem .4rem .4rem}.message-container .msg-list .msg-inner.myself[data-v-648950a2]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.message-container .msg-list .msg-inner.myself .avatar[data-v-648950a2]{margin-left:.6rem}.message-container .msg-list .msg-inner.myself .msg[data-v-648950a2]{background-color:#177afa;color:#fff;text-align:left;border-radius:.4rem 0 .4rem .4rem}.message-container .van-cell[data-v-648950a2]{padding:0;background-color:transparent}.message-container .van-cell[data-v-648950a2]:after{display:none}.tabs-container[data-v-648950a2]{height:3rem}.tabs-container .tabs-1[data-v-648950a2]{position:fixed;z-index:100;background-color:#fff}.tabs-container .tabs-1 .item[data-v-648950a2]:before{top:50%;bottom:0;height:1.4rem;-webkit-transform:scaleX(.5) translateY(-50%);-ms-transform:scaleX(.5) translateY(-50%);transform:scaleX(.5) translateY(-50%);border-right-width:1px;border-color:#e0e0e0}.tabs-container .tabs-1 .item[data-v-648950a2]:last-child:before{display:none}.tabs-container .tabs[data-v-648950a2]{width:100%;height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.tabs-container .tabs .item[data-v-648950a2]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.tabs-container .tabs .item .item-name[data-v-648950a2],.tabs-container .tabs .item[data-v-648950a2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:inherit}.tabs-container .tabs .item .item-name[data-v-648950a2]{width:100%;line-height:.9rem;padding:0 .6rem;white-space:nowrap}.tabs-container .tabs .item .item-name .icon[data-v-648950a2]{width:.4rem;margin-right:.3rem}.tabs-container .tabs .item .item-name span[data-v-648950a2]{display:inline-block;max-width:4rem;line-height:1rem;font-size:.8rem;color:#333;vertical-align:middle;text-overflow:ellipsis;overflow:hidden}.tabs-container .tabs .item .sub-tabs-arrow[data-v-648950a2]{position:absolute;bottom:3.5rem;left:50%;margin-left:-.45rem;display:inline-block;width:0;height:0;border-left:.45rem solid transparent;border-right:.45rem solid transparent;border-top:.35rem solid #fff;z-index:2}.tabs-container .tabs .item .sub-tbas[data-v-648950a2]{position:fixed;bottom:3.75rem;padding:0 .5rem;background-color:#fff;box-shadow:0 .2rem .4rem 0 rgba(68,84,99,.1);border-radius:.4rem}.tabs-container .tabs .item .sub-tbas .sub-item[data-v-648950a2]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:2.3rem;white-space:nowrap}.tabs-container .tabs .item .sub-tbas .sub-item p[data-v-648950a2]{text-align:center;font-size:.8rem;color:#333;text-overflow:ellipsis;overflow:hidden}.tabs-container .tabs .item .sub-tbas .sub-item[data-v-648950a2]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px;border-color:#e1e1e1}.tabs-container .tabs .item .sub-tbas .sub-item[data-v-648950a2]:last-child:before{display:none}.fade-slide-enter-active[data-v-648950a2],.fade-slide-leave-active[data-v-648950a2]{-webkit-transition:all .2s linear;transition:all .2s linear}.tabs-container .item .sub-tabs-arrow.fade-slide-enter[data-v-648950a2],.tabs-container .item .sub-tabs-arrow.fade-slide-leave-to[data-v-648950a2],.tabs-container .item .sub-tbas.fade-slide-enter[data-v-648950a2],.tabs-container .item .sub-tbas.fade-slide-leave-to[data-v-648950a2]{bottom:-3rem;opacity:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _list.default.name, _list.default), _cell.default.name, _cell.default),
  data: function data() {
    return {
      pageNum: 1,
      loading: false,
      finished: false,
      msgList: [],
      tabs: []
    };
  },
  created: function created() {
    this.qaAssistant();
  },
  methods: {
    /**
     * 获取问答小助手底部菜单
     */
    qaAssistant: function qaAssistant() {
      var _this = this;
      this._Util.post(this._Api.GET_QA_ASSISTANT_PAGE, {}, function (data) {
        var footbar = data.pageElements[0].frameElements || [];
        if (footbar.length > 0) {
          footbar.forEach(function (item) {
            item.show = false;
          });
        }
        _this.tabs = footbar;
      }, function () {}, this, true);
    },
    /**
     * 获取问答小助手信息
     */
    qaAssistantList: function qaAssistantList() {
      var _this2 = this;
      this._Util.post(this._Api.LIST_QA_ASSISTANT_INFOS, {
        orderType: 0,
        startTime: new Date().getTime(),
        pageNum: this.pageNum,
        pageSize: 10
      }, function (data) {
        var list = data || [];
        if (list.length > 0) {
          list.forEach(function (item) {
            item.msgText = item.msgText.replace(/\n/g, '<br>');
          });
        }
        _this2.msgList = _this2.msgList.concat(list);
        _this2.pageNum++;
        _this2.loading = false;
        if (list.length < 10) {
          _this2.finished = true;
        }
      }, function () {}, this, true);
    },
    hideTab: function hideTab() {
      if (this.tabs.length > 0) {
        this.tabs.forEach(function (ele, i) {
          ele.show = false;
        });
      }
    },
    toggleTab: function toggleTab(item, index) {
      var _this3 = this;
      this.tabs.forEach(function (ele, i) {
        if (i === index) {
          item.show = !item.show;
        } else {
          ele.show = false;
        }
      });
      if (item && item.frameIsLeaf === 1) {
        this.jumpLink(item);
      } else {
        this.$nextTick(function () {
          var subTab = document.querySelectorAll('#subTab' + index)[0];
          var winW = window.screen.width;
          var subTabW = subTab.offsetWidth;
          if (tabW + 48 > winW) {
            subTab.style.left = '12px';
          }
          var tabW = winW / _this3.tabs.length;
          if (subTabW > tabW) {
            if (index === 0) {
              subTab.style.left = '12px';
            } else if (index === _this3.tabs.length - 1) {
              subTab.style.right = '12px';
            } else {
              subTab.style.left = (winW - subTabW) / 2 + 'px';
            }
          } else {
            if (index === 0) {
              subTab.style.left = (tabW - subTabW) / 2 + 'px';
            } else if (index === _this3.tabs.length - 1) {
              subTab.style.right = (tabW - subTabW) / 2 + 'px';
            } else {
              subTab.style.left = (winW - subTabW) / 2 + 'px';
            }
          }
        });
      }
    },
    /**
     * 菜单跳转页面
     */
    jumpLink: function jumpLink(item) {
      item.show = false;
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'assistant' + item.frameId,
            url: item.frameJumpLink
          }
        });
      } else {
        location.href = item.frameJumpLink;
      }
    },
    /**
     * 查看详情
     */
    viewAssistant: function viewAssistant(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'assistantDetail' + new Date().getTime(),
            url: item.msgJumpLink
          }
        });
      } else {
        location.href = item.msgJumpLink;
      }
    },
    /** 转换表情内容 */matchEmotion: function matchEmotion(text) {
      var that = this;
      var matchArr = text && text.match(/\[.{1,3}\]/g);
      if (!matchArr) {
        return text;
      }
      for (var i = 0, len = matchArr.length; i < len; i++) {
        var str1 = that._Util.matchEmotion(matchArr[i]).key;
        text = text && text.replace(matchArr[i], str1 ? '<img indexValue ="1" src="https://static1.kaxiuyun.com/kxy/arclist/face/' + str1 + '.gif" width=20 height=20 style="pointer-events:none;">' : matchArr[i]);
      }
      return text;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"message-container",staticStyle:{"height":"calc(100% - 3rem)"},on:{"touchstart":function($event){return _vm.hideTab()}}},[_c('div',{ref:"msgList",staticClass:"msg-list"},[_c('van-list',{attrs:{"finished":_vm.finished},on:{"load":function($event){return _vm.qaAssistantList()}},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:"loading"}},_vm._l((_vm.msgList),function(item,index){return _c('van-cell',{key:index},[_c('div',{staticClass:"msg-item"},[_c('div',{staticClass:"msg-inner other-side"},[_c('div',{staticClass:"user"},[(item.msgIcon)?_c('img',{staticClass:"avatar",attrs:{"src":item.msgIcon}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}})]),_vm._v(" "),_c('div',{staticClass:"content"},[(item.createTime)?_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.isToday(item.createTime) ? _vm._Util.dateFormat(item.createTime, 'hh:mm') : _vm._Util.dateFormat(item.createTime, 'yyyy-MM-dd')))]):_vm._e(),_vm._v(" "),(item.msgText)?_c('div',{staticClass:"msg"},[_c('p',{domProps:{"innerHTML":_vm._s(_vm.matchEmotion(item.msgText))}}),_vm._v(" "),(item.msgJumpName && item.msgJumpName !== '')?_c('span',{staticClass:"view-btn",on:{"click":function($event){return _vm.viewAssistant(item)}}},[_vm._v(_vm._s(item.msgJumpName))]):_vm._e()]):_vm._e()])])])])}),1)],1)]),_vm._v(" "),_c('div',{staticClass:"tabs-container"},[_c('div',{staticClass:"tabs tabs-1"},_vm._l((_vm.tabs),function(p,index){return _c('div',{key:index,staticClass:"item hairline"},[_c('div',{staticClass:"item-name",on:{"click":function($event){return _vm.toggleTab(p, index)}}},[(p.frameIsLeaf === 0)?_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(1389)}}):_vm._e(),_c('span',[_vm._v(_vm._s(p.frameName))])])])}),0),_vm._v(" "),_c('div',{staticClass:"tabs"},_vm._l((_vm.tabs),function(p,index){return _c('div',{key:index,staticClass:"item hairline"},[_c('transition',{attrs:{"name":"fade-slide"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(p.frameIsLeaf === 0 && p.show),expression:"p.frameIsLeaf === 0 && p.show"}],staticClass:"sub-tabs-arrow"})]),_vm._v(" "),_c('transition',{attrs:{"name":"fade-slide"}},[_c('ul',{directives:[{name:"show",rawName:"v-show",value:(p.frameIsLeaf === 0 && p.show),expression:"p.frameIsLeaf === 0 && p.show"}],staticClass:"sub-tbas",staticStyle:{"max-width":"calc(100% - 1.2rem)"},attrs:{"id":'subTab' + index}},_vm._l((p.frameElements),function(c,i){return _c('li',{key:i,staticClass:"sub-item hairline",on:{"click":function($event){return _vm.jumpLink(c)}}},[_c('p',[_vm._v(_vm._s(c.frameName))])])}),0)])],1)}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(688);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56aa11fa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1287);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3538)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-56aa11fa"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56aa11fa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56aa11fa_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_problemSquare_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3539);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("63a0b8f6", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".problem-list .van-cell[data-v-56aa11fa]{padding:0}.problem-list .van-cell[data-v-56aa11fa]:after{display:none}[class*=hairline][data-v-56aa11fa]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}[data-v-56aa11fa]{font-family:PingFangSC-Regular,PingFang SC;-webkit-overflow-scrolling:touch}.page[data-v-56aa11fa]{overflow:hidden}.tabs-container[data-v-56aa11fa]{position:relative}.tabs-container[data-v-56aa11fa]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.tabs-container .tabs[data-v-56aa11fa]{margin:0 .3rem}.tabs-container .tabs .tab-item[data-v-56aa11fa]{position:relative;display:inline-block;height:2.45rem;padding:0 .5rem}.tabs-container .tabs .tab-item .item-inner[data-v-56aa11fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:inherit}.tabs-container .tabs .tab-item span[data-v-56aa11fa]{line-height:1.05rem;font-size:.75rem;color:#999}.tabs-container .tabs .tab-item.active[data-v-56aa11fa]:after{display:block;content:\"\";position:absolute;bottom:-.1rem;left:50%;margin-left:-.5rem;width:1rem;height:.2rem;background-color:#177afa;border-radius:.1rem;z-index:2}.tabs-container .tabs .tab-item.active span[data-v-56aa11fa]{font-weight:600;font-size:.9rem;color:#333}.problem-container[data-v-56aa11fa]{overflow-y:auto}.problem-container .problem-list[data-v-56aa11fa]{height:inherit;padding:0 .6rem}.problem-container .problem-list .problem-panel[data-v-56aa11fa]{margin-top:1rem}.problem-container .problem-list .problem-panel .panel-top[data-v-56aa11fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.5rem}.problem-container .problem-list .problem-panel .panel-top .avatar[data-v-56aa11fa]{width:1.6rem;height:1.6rem;margin-right:.4rem;margin-top:.1rem;border-radius:100%;overflow:hidden}.problem-container .problem-list .problem-panel .panel-top .info[data-v-56aa11fa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.problem-container .problem-list .problem-panel .panel-top .info span[data-v-56aa11fa]{display:block;line-height:.8rem;font-size:.6rem;color:#999;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.problem-container .problem-list .problem-panel .panel-top .info .name[data-v-56aa11fa]{max-width:8rem;line-height:1rem;font-size:.7rem;color:#333}.problem-container .problem-list .problem-panel .panel-top .info .admin[data-v-56aa11fa]{color:#177afa}.problem-container .problem-list .problem-panel .panel-top .info p[data-v-56aa11fa]{line-height:.8rem;font-size:.6rem;color:#999}.problem-container .problem-list .problem-panel .panel-top .time[data-v-56aa11fa]{line-height:.9rem;font-size:.65rem;color:#999}.problem-container .problem-list .problem-panel .panel-content[data-v-56aa11fa]{padding:.6rem;background-color:#f4f5f6;border-radius:.4rem}.problem-container .problem-list .problem-panel .panel-content h3[data-v-56aa11fa]{margin-bottom:.2rem;line-height:1.25rem;font-size:.9rem;font-weight:600;color:#333;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.problem-container .problem-list .problem-panel .panel-content .cell[data-v-56aa11fa]{margin-bottom:.6rem;line-height:.9rem}.problem-container .problem-list .problem-panel .panel-content .cell span[data-v-56aa11fa]{margin-right:.6rem;line-height:.9rem;font-size:.65rem;color:#999}.problem-container .problem-list .problem-panel .panel-content .meta[data-v-56aa11fa]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.5rem;line-height:1.05rem}.problem-container .problem-list .problem-panel .panel-content .meta span[data-v-56aa11fa]{margin-right:.6rem;font-size:.75rem}.problem-container .problem-list .problem-panel .panel-content .meta span .xs-icon[data-v-56aa11fa]{width:.8rem;height:.8rem;margin-right:.2rem;margin-top:-.2rem;vertical-align:middle}.problem-container .problem-list .problem-panel .panel-content .meta span.xs-1[data-v-56aa11fa]{color:#fb5f5f}.problem-container .problem-list .problem-panel .panel-content .meta span.xs-2[data-v-56aa11fa]{color:#fb985f}.problem-container .problem-list .problem-panel .panel-content .meta .order-btn[data-v-56aa11fa]{position:absolute;right:0;width:3.95rem;line-height:.65rem;padding:.425rem 0;margin-right:0;border-radius:1.25rem;background-color:#177afa;color:#fff;text-align:center;font-size:.65rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(109);
var _cell = _interopRequireDefault(__webpack_require__(83));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
__webpack_require__(206);
var _pullRefresh = _interopRequireDefault(__webpack_require__(207));
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _msgDialog = _interopRequireDefault(__webpack_require__(142));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _pullRefresh.default.name, _pullRefresh.default), _list.default.name, _list.default), _cell.default.name, _cell.default), "msgDialog", _msgDialog.default),
  data: function data() {
    return {
      wxOpenFlag: 0,
      activeIdx: 0,
      dialogMsg: {},
      tabs: [{
        name: '全部',
        flag: null
      }, {
        name: '现金悬赏',
        flag: 2
      }, {
        name: '星豆悬赏',
        flag: 3
      }],
      squareListLoading: false,
      finished: false,
      refreshing: false,
      finishedText: '',
      pageNum1: 1,
      bountyFlag: null,
      squareList: [],
      isAdmin: false // 是否是管理员
    };
  },
  created: function created() {
    var _this = this;
    this.getWxOpenFlag();
    setTimeout(function () {
      // 订阅问答消息总数和会话消息
      _this._MQTT.subscribe("restService/msgNum/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("restService/msgNum/".concat(localStorage.getItem('userId')), function (message) {
        var dialogueVo = message.dialogueVo;
        _this.$store.dispatch('getQaMsgNum', dialogueVo.num);
        if (dialogueVo.type === 2) {
          _this.dialogMsg = dialogueVo;
        }
      });
      // 订阅是否在会话页
      _this._MQTT.subscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')), {
        qos: 1
      });
      _this._MQTT.on("msgService/dialogue/position/".concat(localStorage.getItem('userId')), function (message) {
        _this._MQTT.publish('restService/dialogue/message', {
          userId: localStorage.getItem('userId'),
          position: 2,
          dialogueId: message.id
        }, function (err) {
          if (!err) {
            console.log('问题广场页，发送当前位置成功');
          } else {
            console.warn(err);
          }
        });
      });
    }, 500);
  },
  beforeDestroy: function beforeDestroy() {
    this._MQTT.unsubscribe("restService/msgNum/".concat(localStorage.getItem('userId')));
    this._MQTT.unsubscribe("msgService/dialogue/position/".concat(localStorage.getItem('userId')));
  },
  mounted: function mounted() {
    var _this2 = this;
    this.shareConfig();
    if (this._Util.isApp()) {
      setTimeout(function () {
        api.addEventListener({
          name: 'viewappear'
        }, function (ret, err) {
          _this2.shareConfig();
        });
      }, 300);
    }
  },
  methods: {
    switchTab: function switchTab(item, index) {
      this.bountyFlag = item.flag;
      this.activeIdx = index;
      this.getSquareList('refresh');
      this._Util.sensorsCollect('element_click', {
        operation_page: '问题广场',
        element_name: '问题筛选',
        element_content: index === 2 ? '星豆悬赏' : index === 1 ? '现金悬赏' : '全部问题',
        element_class_name: '',
        element_type: '',
        element_target_url: '',
        url: location.href,
        title: '问题广场',
        moudle_type: '问答',
        correlation_id: ''
      });
    },
    /**
     * 获取广场列表
     */
    getSquareList: function getSquareList(type) {
      var _this3 = this;
      if (type === 'refresh') {
        this.pageNum1 = 1;
        this.squareList = [];
        this.finished = false;
        this.squareListLoading = true;
      }
      if (this.refreshing) {
        this.pageNum1 = 1;
        this.squareList = [];
        this.refreshing = false;
      }
      var list = [];
      this._Util.post(this._Api.GET_QA_QUESTION_SQUARE_LIST, {
        bountyFlag: this.bountyFlag,
        pageNum: this.pageNum1,
        pageSize: 10
      }, function (data) {
        _this3.isAdmin = !!data.adminFlag;
        list = data.vo.dataList || [];
        if (list.length > 0) {
          list.forEach(function (item) {
            item.tag1 = item.vehicleBrandName && item.vehicleModeName ? "".concat(item.vehicleBrandName, " ").concat(item.vehicleModeName) : item.vehicleBrandName && !item.vehicleModeName ? "".concat(item.vehicleBrandName) : null;
            item.tag2 = item.engineBrandName && item.engineModeName ? "".concat(item.engineBrandName, " ").concat(item.engineModeName) : item.engineBrandName && !item.engineModeName ? "".concat(item.engineBrandName) : null;
            item.tag3 = item.ecuBrandName && item.ecuModeName ? "".concat(item.ecuBrandName, " ").concat(item.ecuModeName) : item.ecuBrandName && !item.ecuModeName ? "".concat(item.ecuBrandName) : null;
          });
        }
        _this3.squareList = _this3.squareList.concat(list);
        _this3.pageNum1++;
        _this3.squareListLoading = false;
        if (list.length < 10) {
          _this3.finished = true;
          _this3.finishedText = '到底啦 ^_^';
          if (list.length === 0 && _this3.squareList.length === 0) {
            _this3.finishedText = '暂无数据';
          }
        }
        _this3._Util.sensorsCollect('pageturning', {
          operation_page: '问题广场',
          file_page: _this3.pageNum1 - 1,
          paging_num: 10,
          moudle_type: '问答'
        });
      }, function () {}, this, true);
    },
    /**
     * 订单详情
     */
    orderDetail: function orderDetail(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'orderDetails',
            url: "".concat(location.origin, "/v2/questionsAndAnswers/orderDetails?questionNo=").concat(item.questionNo)
          }
        });
      } else {
        this.$router.push({
          name: 'orderDetails',
          query: {
            questionNo: item.questionNo
          }
        });
      }
    },
    /**
     * 获取微信通知开启状态
     */
    getWxOpenFlag: function getWxOpenFlag() {
      var _this4 = this;
      this._Util.post(this._Api.GET_WX_OPEN_FLAG, {}, function (data) {
        _this4.wxOpenFlag = data.wxOpenFlag;
        if (data.wxOpenFlag === 0) {
          if (_this4._Util.isApp()) {
            api.sendEvent({
              name: 'acOpenNewFrm',
              extra: {
                name: 'questionsAndAnswers',
                url: "".concat(location.origin, "/v2/questionsAndAnswers")
              }
            });
          } else {
            _this4.$router.push({
              name: 'questionsAndAnswers'
            });
          }
        }
      }, function () {}, this, true);
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var _shareItem = {
        title: '卡修宝典-问题广场',
        desc: '抢单答题赢现金星豆',
        link: location.href,
        imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
      };
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"tabs-container hairline"},[_c('div',{staticClass:"tabs"},_vm._l((_vm.tabs),function(tab,index){return _c('div',{key:index,staticClass:"tab-item",class:{'active': _vm.activeIdx === index},on:{"click":function($event){return _vm.switchTab(tab, index)}}},[_c('div',{staticClass:"item-inner"},[_c('span',[_vm._v(_vm._s(tab.name))])])])}),0)]),_vm._v(" "),_c('div',{staticClass:"problem-container",staticStyle:{"height":"calc(100% - 2.45rem)"}},[_c('div',{staticClass:"problem-list"},[_c('van-pull-refresh',{staticStyle:{"min-height":"calc(100% - 2.45rem)"},on:{"refresh":function($event){return _vm.getSquareList('refresh')}},model:{value:(_vm.refreshing),callback:function ($$v) {_vm.refreshing=$$v},expression:"refreshing"}},[_c('van-list',{attrs:{"finished":_vm.finished,"finished-text":_vm.finishedText},on:{"load":function($event){return _vm.getSquareList('load')}},model:{value:(_vm.squareListLoading),callback:function ($$v) {_vm.squareListLoading=$$v},expression:"squareListLoading"}},_vm._l((_vm.squareList),function(item,index){return _c('van-cell',{key:index,staticClass:"square-que-item",on:{"click":function($event){return _vm.orderDetail(item)}}},[_c('div',{staticClass:"problem-panel"},[_c('div',{staticClass:"panel-top"},[(item.headImgUrl)?_c('img',{staticClass:"avatar",attrs:{"src":item.headImgUrl}}):_c('img',{staticClass:"avatar",attrs:{"src":__webpack_require__(56)}}),_vm._v(" "),_c('div',{staticClass:"info"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.uname))]),_vm._v(" "),(_vm.isAdmin)?_c('span',{staticClass:"admin"},[_vm._v("通知"+_vm._s(item.noticeCount || 0)+"次，查看"+_vm._s(item.viewCount || 0)+"人，接单"+_vm._s(item.ordersCount || 0)+"人")]):_c('span',[_vm._v("期待你的解答")])]),_vm._v(" "),_c('span',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.isToday(item.createTime) ? _vm._Util.dateFormat(item.createTime, 'hh:mm') : _vm._Util.dateFormat(item.createTime, 'yyyy-MM-dd')))])]),_vm._v(" "),_c('div',{staticClass:"panel-content"},[_c('h3',[_vm._v(_vm._s(item.questionTitle))]),_vm._v(" "),_c('div',{staticClass:"cell"},[(item.tag1)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag1))]):_vm._e(),(item.tag2)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag2))]):_vm._e(),(item.tag3)?_c('span',{staticClass:"tag"},[_vm._v(_vm._s(item.tag3))]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"meta"},[(item.bountyFlag === 1 || item.bountyFlag === 2)?_c('span',{staticClass:"xs xs-1"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(107)}}),_vm._v("现金悬赏")]):_vm._e(),(item.bountyFlag === 1 || item.bountyFlag === 3)?_c('span',{staticClass:"xs xs-2"},[_c('img',{staticClass:"xs-icon",attrs:{"src":__webpack_require__(280)}}),_vm._v("星豆悬赏")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"order-btn"},[_vm._v("写回答")])])])])])}),1)],1)],1)]),_vm._v(" "),_c('msg-dialog',{attrs:{"msg":_vm.dialogMsg}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(689);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_766c8667_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1288);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3540)
  __webpack_require__(3544)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-766c8667"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_766c8667_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_766c8667_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_buyUrea_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3541);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b78aafb6", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".buy-urea .pop,body.modal-open{position:fixed;width:100%}.buy-urea .pop{bottom:0;min-height:70%;max-height:80%;border-radius:.4rem .4rem 0 0}.buy-urea .pop .content{position:absolute;bottom:0;left:0;height:100%;width:100%}.buy-urea .pop .content .tit{height:2.75rem;border-radius:.4rem .4rem 0 0;background:#f6f6f6;text-align:center;font:700 16px/2.75rem PingFangSC-Semibold;color:#333;position:relative}.buy-urea .pop .content .tit span{position:absolute;right:0;top:0;float:right;padding:0 .8rem;font:14px/2.75rem PingFangSC-Regular;color:#666}.buy-urea .pop .content .coup-wrap{height:-webkit-calc(100% - 2.75rem);height:calc(100% - 2.75rem);overflow-y:auto;padding:.8rem;box-sizing:border-box;position:relative}.buy-urea .pop .content .coup-wrap .no-coupon{position:absolute;width:100%;top:30%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:center}.buy-urea .pop .content .coup-wrap .no-coupon img{width:3.1rem;height:3rem}.buy-urea .pop .content .coup-wrap .no-coupon div{margin-top:.3rem;font:14px/1rem PingFangSC-Regular;color:#333}.buy-urea .pop .content .coup-wrap .disableTit{font:14px/1rem PingFangSC-Regular;color:#999;margin-top:2rem;text-align:center}.buy-urea .pop .content .coup-wrap .item{height:5rem;margin-top:.8rem;background:url(" + escape(__webpack_require__(3542)) + ") no-repeat;background-size:100% 100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .6rem 0 .3rem}.buy-urea .pop .content .coup-wrap .item.disItem{background:url(" + escape(__webpack_require__(3543)) + ") no-repeat;background-size:100% 100%}.buy-urea .pop .content .coup-wrap .item.disItem .coup-left div,.buy-urea .pop .content .coup-wrap .item.disItem .coup-left div span,.buy-urea .pop .content .coup-wrap .item.disItem .coup-left p,.buy-urea .pop .content .coup-wrap .item.disItem .coup-right div,.buy-urea .pop .content .coup-wrap .item.disItem .coup-right p{color:#a8a8a8}.buy-urea .pop .content .coup-wrap .item:first-child{margin:0}.buy-urea .pop .content .coup-wrap .item .coup-left{width:5rem;text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.buy-urea .pop .content .coup-wrap .item .coup-left div{font:14px/1 PingFangSC-Regular;color:#ff3f3f}.buy-urea .pop .content .coup-wrap .item .coup-left div span{font:700 24px/1 PingFangSC-Semibold;color:#ff3f3f}.buy-urea .pop .content .coup-wrap .item .coup-left p{margin-top:.4rem;font:12px/1 PingFangSC-Regular;color:#ff6e6e}.buy-urea .pop .content .coup-wrap .item .coup-right{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0 .8rem}.buy-urea .pop .content .coup-wrap .item .coup-right div{font:700 17px/1rem PingFangSC-Semibold;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.buy-urea .pop .content .coup-wrap .item .coup-right p{margin-top:.4rem;font:12px/1 PingFangSC-Regular;color:#999}.buy-urea .pop .content .coup-wrap .item>span{width:1rem;height:1rem;border-radius:50%;box-sizing:border-box;border:1px solid #d6d7d8}.buy-urea .pop .content .coup-wrap .item img{width:1rem;height:1rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/coup_1.3ef8d59.png";module.exports = __webpack_require__.p + "static/img/coup_2.b23caeb.png";// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3545);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2caa28f7", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".buy-urea [class*=hairline][data-v-766c8667]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.buy-urea .buy-urea-wrap[data-v-766c8667]{min-height:100%;background:#f3f4f5;padding-bottom:5rem}.buy-urea .buy-urea-wrap .user-card[data-v-766c8667]{background-color:#fff}.buy-urea .buy-urea-wrap .user-card .title[data-v-766c8667]{height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font:14px/1 PingFangSC-Regular;color:#1c1c1c;position:relative;padding:0 .8rem}.buy-urea .buy-urea-wrap .user-card .title[data-v-766c8667]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.buy-urea .buy-urea-wrap .user-card .title i[data-v-766c8667]{width:.7rem;height:.7rem;margin-right:.4rem;background:url(" + escape(__webpack_require__(3546)) + ") no-repeat;background-size:100% 100%}.buy-urea .buy-urea-wrap .user-card .title>span[data-v-766c8667]{font:14px/1rem PingFangSC-Regular;color:#177afa;margin-left:auto;position:relative}.buy-urea .buy-urea-wrap .user-card .title>span[data-v-766c8667]:after{content:\"\";width:5px;height:8px;background-image:url(" + escape(__webpack_require__(813)) + ");background-repeat:no-repeat;background-size:100% 100%;position:absolute;top:50%;right:-.45rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.buy-urea .buy-urea-wrap .user-card .info[data-v-766c8667]{padding:.6rem .8rem}.buy-urea .buy-urea-wrap .user-card .info .userName[data-v-766c8667]{font:700 16px/1.2rem PingFangSC-Semibold;color:#333}.buy-urea .buy-urea-wrap .user-card .info .city[data-v-766c8667]{margin-top:.4rem;font:14px/1rem PingFangSC-Regular;color:#666}.buy-urea .buy-urea-wrap .user-card .info .street[data-v-766c8667]{font:14px/1rem PingFangSC-Regular;color:#666}.buy-urea .buy-urea-wrap .list-box[data-v-766c8667]{padding:.5rem .4rem}.buy-urea .buy-urea-wrap .list-box .no-data[data-v-766c8667]{text-align:center;color:#999;padding-top:1rem}.buy-urea .buy-urea-wrap .list-box .list-item[data-v-766c8667]{margin-top:.5rem;border-radius:.3rem;background:#fff}.buy-urea .buy-urea-wrap .list-box .list-item.bought .title .right>div b[data-v-766c8667],.buy-urea .buy-urea-wrap .list-box .list-item.bought .title .right>div span[data-v-766c8667],.buy-urea .buy-urea-wrap .list-box .list-item.bought .title .right p[data-v-766c8667]{color:#a8a8a8}.buy-urea .buy-urea-wrap .list-box .list-item.bought .imgs-box .img-scroll .item img[data-v-766c8667]{opacity:.5}.buy-urea .buy-urea-wrap .list-box .list-item.bought .imgs-box .img-scroll .item .des[data-v-766c8667]{color:#a8a8a8}.buy-urea .buy-urea-wrap .list-box .list-item[data-v-766c8667]:first-child{margin:0}.buy-urea .buy-urea-wrap .list-box .list-item .title[data-v-766c8667]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.6rem;position:relative}.buy-urea .buy-urea-wrap .list-box .list-item .title[data-v-766c8667]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.buy-urea .buy-urea-wrap .list-box .list-item .title>span[data-v-766c8667]{width:1rem;height:1rem;border-radius:50%;box-sizing:border-box;margin-right:.6rem;border:1px solid #d6d7d8}.buy-urea .buy-urea-wrap .list-box .list-item .title img[data-v-766c8667]{width:1rem;height:1rem;margin-right:.6rem}.buy-urea .buy-urea-wrap .list-box .list-item .title .right[data-v-766c8667]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buy-urea .buy-urea-wrap .list-box .list-item .title .right p[data-v-766c8667]{font:700 16px/1.1rem PingFangSC-Semibold;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buy-urea .buy-urea-wrap .list-box .list-item .title .right>div[data-v-766c8667]{margin-top:.1rem;position:relative}.buy-urea .buy-urea-wrap .list-box .list-item .title .right>div span[data-v-766c8667]{font:700 15px/1.05rem PingFangSC-Semibold;color:#ff3f3f}.buy-urea .buy-urea-wrap .list-box .list-item .title .right>div b[data-v-766c8667]{font:400 14px/1.05rem PingFangSC-Regular;color:#999}.buy-urea .buy-urea-wrap .list-box .list-item .title .right>div .buyd[data-v-766c8667]{position:absolute;bottom:.05rem;right:0;width:2.2rem;height:.9rem;color:#ff3f3f;font:700 12px/.9rem PingFangSC-Semibold;text-align:center;background:#ffdccf;border-radius:.05rem}.buy-urea .buy-urea-wrap .list-box .list-item .imgs-box[data-v-766c8667]{padding:.8rem 0 .6rem .6rem}.buy-urea .buy-urea-wrap .list-box .list-item .imgs-box .img-scroll[data-v-766c8667]{overflow-x:auto;overflow-y:hidden;white-space:nowrap;font-size:0}.buy-urea .buy-urea-wrap .list-box .list-item .imgs-box .img-scroll[data-v-766c8667]::-webkit-scrollbar{display:none}.buy-urea .buy-urea-wrap .list-box .list-item .imgs-box .img-scroll .item[data-v-766c8667]{display:inline-block;width:4.3rem;margin-left:.8rem;vertical-align:top}.buy-urea .buy-urea-wrap .list-box .list-item .imgs-box .img-scroll .item[data-v-766c8667]:first-child{margin:0}.buy-urea .buy-urea-wrap .list-box .list-item .imgs-box .img-scroll .item img[data-v-766c8667]{display:block;width:100%;height:4.3rem;position:relative;border-radius:.2rem;border:1px solid #eee}.buy-urea .buy-urea-wrap .list-box .list-item .imgs-box .img-scroll .item .des[data-v-766c8667]{margin-top:3px;font:700 12px/.8rem PingFangSC-Semibold;color:#333;white-space:normal;word-break:break-word}.buy-urea .buy-urea-wrap .bottom-conten[data-v-766c8667]{background:#fff;position:fixed;bottom:0;left:0;width:100%}.buy-urea .buy-urea-wrap .bottom-conten .coupon[data-v-766c8667]{background:#fff;border-radius:.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2rem;padding:0 .6rem;position:relative}.buy-urea .buy-urea-wrap .bottom-conten .coupon[data-v-766c8667]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.buy-urea .buy-urea-wrap .bottom-conten .coupon img[data-v-766c8667]{width:1rem;height:1rem;margin-right:.6rem}.buy-urea .buy-urea-wrap .bottom-conten .coupon p[data-v-766c8667]{font:16px/1 PingFangSC-Regular;color:#333}.buy-urea .buy-urea-wrap .bottom-conten .coupon div[data-v-766c8667]{margin-left:auto;height:14px;font:14px/1 PingFangSC-Regular;color:#999;padding-right:.45rem}.buy-urea .buy-urea-wrap .bottom-conten .coupon span[data-v-766c8667]{position:absolute;top:50%;right:.6rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:.25rem;height:.45rem;background:url(" + escape(__webpack_require__(57)) + ") 100% no-repeat;background-size:.25rem .45rem}.buy-urea .buy-urea-wrap .bottom-box[data-v-766c8667]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;height:3rem;padding:0 .8rem}.buy-urea .buy-urea-wrap .bottom-box .left[data-v-766c8667]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.buy-urea .buy-urea-wrap .bottom-box .left .price[data-v-766c8667]{font:16px/1.1rem PingFangSC-Regular;color:#333}.buy-urea .buy-urea-wrap .bottom-box .left .num[data-v-766c8667]{margin-top:.15rem;color:#999;font:12px/.6rem PingFangSC-Regular}.buy-urea .buy-urea-wrap .bottom-box .left .num i[data-v-766c8667]{color:#ff3f3f;padding:0 .15rem}.buy-urea .buy-urea-wrap .bottom-box .left .num div[data-v-766c8667]{margin-left:.2rem;color:#999;font:12px/.6rem PingFangSC-Regular;display:inline-block}.buy-urea .buy-urea-wrap .bottom-box .left .num div span[data-v-766c8667]{color:#ff3f3f;font:12px/.6rem PingFangSC-Regular}.buy-urea .buy-urea-wrap .bottom-box .pay[data-v-766c8667]{width:9.2rem;height:2.2rem;background:#177afa;text-align:center;color:#fff;font:700 17px/2.2rem PingFangSC-Semibold;border-radius:.2rem}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/address_new.d33a85c.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      deviceId: this.$route.query.codeid || '',
      // 主设备商品唯一标识
      mdseType: this.$route.query.mdseType || '',
      // 主商品类型
      dataList: [],
      couponList: [],
      // 优惠券列表
      ableCouponList: [],
      // 可用优惠券列表
      disableCouponList: [],
      // 不可用列表
      couponTotal: 0,
      // 选择的优惠券总额
      slectCouponIds: [],
      // 选择的优惠券id
      address: null,
      selectNum: 0,
      selectPrice: 0,
      selectIds: [],
      // 所选商品的id
      ModalHelper: null,
      showPop: false
    };
  },
  computed: {
    finalPrice: function finalPrice() {
      if (!this.selectNum) {
        return 0;
      } else {
        return this.selectPrice - this.couponTotal <= 0 ? 0.01 : this.selectPrice - this.couponTotal;
      }
    }
  },
  watch: {
    showPop: function showPop(val) {
      if (val) {
        this.ModalHelper.afterOpen();
      } else {
        this.ModalHelper.beforeClose();
      }
    },
    selectIds: {
      handler: function handler(newValue, oldValue) {
        if (newValue.length === 0) {
          this.couponTotal = 0;
          this.slectCouponIds = [];
        } else {
          for (var i = 0; i < newValue.length; i++) {
            if (oldValue[i] != newValue[i]) {
              this.couponTotal = 0;
              this.slectCouponIds = [];
              this.couponList.forEach(function (item) {
                item.isSlect = false;
              });
              this.ableCouponList = [];
              this.disableCouponList = [];
            }
          }
        }
      },
      deep: true
    }
  },
  created: function created() {
    if (!this._Util.isApp()) {
      // this._Util.getKaluliAuth(this)
    }
    this.getPartsMdseListFn();
    this.getEquipCouList();
    this.share();
  },
  mounted: function mounted() {
    // 防止滚动穿透
    this.ModalHelper = function (bodyCls) {
      var scrollTop;
      return {
        afterOpen: function afterOpen() {
          scrollTop = document.scrollingElement ? document.scrollingElement.scrollTop : document.body.scrollTop;
          document.body.classList.add(bodyCls);
          document.body.style.top = -scrollTop + 'px';
        },
        beforeClose: function beforeClose() {
          document.body.classList.remove(bodyCls);
          // scrollTop lost after set position:fixed, restore it back.
          if (document.scrollingElement) {
            document.scrollingElement.scrollTop = scrollTop;
          } else {
            document.body.scrollTop = scrollTop;
          }
        }
      };
    }('modal-open');
  },
  methods: {
    /**
     * 获取便携王优惠券
     */
    getEquipCouList: function getEquipCouList() {
      var _this = this;
      this._Util.post(this._Api.GET_EQUIPMENT_COUPON_LIST, {
        mdseType: this.mdseType
      }, function (data) {
        if (data) {
          _this.couponList = data || [];
          _this.couponList.forEach(function (item) {
            _this.$set(item, 'isSlect', false);
          });
        }
      }, function () {}, this);
    },
    /**
     * 进入我的收货地址
     */
    goLocationList: function goLocationList() {
      this.$router.push({
        name: 'locationList'
      });
    },
    /**
     * 获取尿素泵列表
     */
    getPartsMdseListFn: function getPartsMdseListFn() {
      var _this2 = this;
      this._Util.post(this._Api.GET_PARTS_COLL_MDSE_LIST, {
        deviceId: this.deviceId,
        mdseType: this.mdseType
      }, function (data) {
        if (data) {
          _this2.dataList = data.list || [];
          _this2.address = data.addressVo;
          _this2.dataList.forEach(function (item) {
            item.functionVos = item.functionVos || [];
            _this2.$set(item, 'isSlect', false);
          });
        }
      }, function () {}, this);
    },
    /**
     * 选择商品
     * @param {Object} item 点击的商品
     */
    selected: function selected(item) {
      if (item.isPurchase) {
        return;
      }
      item.isSlect = !item.isSlect;
      var selsectNum = 0;
      var selectPrice = 0;
      var selectIds = [];
      this.dataList.forEach(function (item) {
        if (item.isSlect) {
          selsectNum += 1;
          selectPrice += item.price;
          selectIds.push(item.mdseId);
        }
      });
      this.selectNum = selsectNum;
      this.selectPrice = selectPrice;
      this.selectIds = selectIds;
    },
    /**
     * 浏览单张图片
    */
    viewImage: function viewImage(imgUrl) {
      this.$store.commit('openImgView', imgUrl);
    },
    /**
     * 立即支付
     */
    toPay: (0, _throttleDebounce.debounce)(500, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this3 = this;
      var tempArr;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (this.address) {
              _context.next = 1;
              break;
            }
            (0, _mintUi.Toast)({
              message: '请选择收货地址',
              duration: 2000
            });
            return _context.abrupt("return");
          case 1:
            if (this.selectNum) {
              _context.next = 2;
              break;
            }
            (0, _mintUi.Toast)({
              message: '请选择商品',
              duration: 2000
            });
            return _context.abrupt("return");
          case 2:
            tempArr = [];
            this.dataList.forEach(function (item) {
              if (item.isSlect) {
                tempArr.push(item.mdseId);
              }
            });
            this._Util.post(this._Api.MDSPART_QUICK_PAY, {
              deviceId: this.deviceId,
              mdseIds: tempArr.join(','),
              couponIds: this.slectCouponIds.join(',')
            }, function (data) {
              _this3._Util.wxPay(data.jsApiParameters, function () {
                (0, _mintUi.Toast)({
                  message: '支付成功',
                  position: 'middle',
                  duration: 1500
                });
                location.reload();
              });
            }, function () {}, this);
          case 3:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 打开优惠券弹窗
     */
    showPopFn: function showPopFn() {
      var _this4 = this;
      if (!this.selectNum) {
        (0, _mintUi.Toast)({
          message: '请选择商品',
          duration: 2000
        });
        return;
      }
      this.showPop = true;
      var tempArr1 = [];
      tempArr1 = this.couponList.filter(function (item) {
        var medIds = item.mdseIds;
        var inFlag = _this4.selectIds.every(function (item2) {
          return medIds.includes(item2);
        });
        console.log('所选商品是否全部再该优惠券可使用的商品里----' + inFlag);
        return item.orderAmount <= _this4.selectPrice && inFlag;
      });
      this.ableCouponList = tempArr1;
      var tempArr2 = [];
      tempArr2 = this.couponList.filter(function (item) {
        var medIds2 = item.mdseIds;
        var inFlag2 = _this4.selectIds.some(function (item2) {
          return !medIds2.includes(item2);
        });
        console.log('所选商品是否有不在该优惠券可使用的商品里----' + inFlag2);
        return item.orderAmount > _this4.selectPrice || inFlag2;
      });
      this.disableCouponList = tempArr2;
    },
    /**
     * 选择优惠券
     */
    selectCoupn: function selectCoupn(item) {
      item.isSlect = !item.isSlect;
      var couponTotal = 0;
      var tempArr = [];
      this.ableCouponList.forEach(function (item) {
        if (item.isSlect) {
          couponTotal += item.amount;
          tempArr.push(item.id);
        }
      });
      this.couponTotal = couponTotal;
      this.slectCouponIds = tempArr;
    },
    /**
     * 分享方法配置
     */
    share: function share() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: {
                  title: '卡修宝典配件购买商城',
                  desc: '卡修宝典配件购买商城',
                  link: location.origin + '/v2/fms',
                  imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
                }
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = {
              title: '卡修宝典配件购买商城',
              desc: '卡修宝典配件购买商城',
              link: location.origin + '/v2/fms',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = {
              title: '卡修宝典配件购买商城',
              desc: '卡修宝典配件购买商城',
              link: location.origin + '/v2/fms',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg'
            };
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = {
              title: '卡修宝典配件购买商城',
              desc: '卡修宝典配件购买商城',
              link: location.origin + '/v2/fms',
              imgUrl: 'http://static2.kaxiuyun.com/kxy/app/logo.jpg',
              success: function success() {},
              cancel: function cancel() {}
            };
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"buy-urea"},[_c('div',{staticClass:"buy-urea-wrap",style:({'padding-bottom': _vm.couponList.length ? '5rem' : '3rem'})},[_c('div',{staticClass:"user-card"},[_c('div',{staticClass:"title hairline"},[_c('i'),_vm._v("收货地址\n        "),_c('span',{on:{"click":_vm.goLocationList}},[_vm._v("更换地址")])]),_vm._v(" "),(_vm.address)?_c('div',{staticClass:"info"},[_c('div',{staticClass:"userName"},[_vm._v(_vm._s(_vm.address.receiptName)+"  "+_vm._s(_vm.address.receiptPhone))]),_vm._v(" "),_c('div',{staticClass:"city"},[_vm._v(_vm._s(_vm.address.province)+" "+_vm._s(_vm.address.city)+" "+_vm._s(_vm.address.dist))]),_vm._v(" "),_c('div',{staticClass:"street"},[_vm._v(_vm._s(_vm.address.address))])]):_c('div',{staticClass:"info"},[_vm._v("请选择收货地址")])]),_vm._v(" "),_c('div',{staticClass:"list-box"},[_vm._l((_vm.dataList),function(item,index){return _c('div',{key:index,staticClass:"list-item",class:{'bought': item.isPurchase}},[_c('div',{staticClass:"title hairline",on:{"click":function($event){return _vm.selected(item)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!item.isSlect),expression:"!item.isSlect"}]}),_vm._v(" "),_c('img',{directives:[{name:"show",rawName:"v-show",value:(item.isSlect),expression:"item.isSlect"}],attrs:{"src":__webpack_require__(824),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"right"},[_c('p',[_vm._v(_vm._s(item.mdseName))]),_vm._v(" "),_c('div',[_c('span',[_vm._v(_vm._s(item.price)+"元")]),(item.functionVos && item.functionVos.length)?_c('b',[_vm._v("（"+_vm._s('包含' + item.functionVos.length + '款尿素泵')+"）")]):_vm._e(),_vm._v(" "),(item.isPurchase)?_c('div',{staticClass:"buyd"},[_vm._v("已购买")]):_vm._e()])])]),_vm._v(" "),_c('div',{staticClass:"imgs-box"},[_c('div',{staticClass:"img-scroll"},_vm._l((item.functionVos),function(item2,index2){return _c('div',{key:index2,staticClass:"item"},[(item2.imgUrl)?_c('img',{staticClass:"hairline",attrs:{"src":item2.imgUrl,"alt":""},on:{"click":function($event){return _vm.viewImage(item2.imgUrl)}}}):_c('img',{attrs:{"src":__webpack_require__(3547),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"des"},[_vm._v(_vm._s(item2.functionName))])])}),0)])])}),_vm._v(" "),(!_vm.dataList.length)?_c('div',{staticClass:"no-data"},[_vm._v("暂无商品")]):_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"bottom-conten"},[(_vm.couponList.length)?_c('div',{staticClass:"coupon hairline",on:{"click":_vm.showPopFn}},[_c('img',{attrs:{"src":__webpack_require__(3548),"alt":""}}),_vm._v(" "),_c('p',[_vm._v("优惠券")]),_vm._v(" "),(_vm.couponTotal)?_c('div',{staticStyle:{"color":"#FF3F3F"}},[_vm._v("-￥"+_vm._s(_vm.couponTotal))]):_vm._e(),_vm._v(" "),_c('span')]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"bottom-box"},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"price"},[_vm._v("\n            商品金额: ￥"+_vm._s(_vm.selectPrice)+"\n          ")]),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v("已选择"),_c('i',[_vm._v(_vm._s(_vm.selectNum))]),_vm._v("组 "),(_vm.couponTotal)?_c('div',[_vm._v("优惠"),_c('span',[_vm._v(" ￥"+_vm._s(_vm.couponTotal))])]):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"pay",on:{"click":_vm.toPay}},[_vm._v("立即支付"),(_vm.finalPrice)?_c('span',[_vm._v("￥"+_vm._s(_vm.finalPrice))]):_vm._e()])])])]),_vm._v(" "),_c('mt-popup',{staticClass:"pop",attrs:{"position":"bottom"},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('div',{staticClass:"content"},[_c('div',{staticClass:"tit"},[_vm._v("\n        选择优惠券"),_c('span',{on:{"click":function($event){$event.stopPropagation();_vm.showPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"coup-wrap",attrs:{"id":"coup-cont"}},[_vm._l((_vm.ableCouponList),function(item2,index2){return _c('div',{key:index2,staticClass:"item",on:{"click":function($event){return _vm.selectCoupn(item2)}}},[_c('div',{staticClass:"coup-left"},[_c('div',[_vm._v("￥"),_c('span',[_vm._v(_vm._s(item2.amount))])]),_vm._v(" "),_c('p',[_vm._v("满￥"+_vm._s(item2.orderAmount)+"可用")])]),_vm._v(" "),_c('div',{staticClass:"coup-right"},[_c('div',[_vm._v(_vm._s(item2.couponName))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm._Util.dateFormat(item2.outTime, 'yyyy.MM.dd'))+"-"+_vm._s(_vm._Util.dateFormat(item2.effectTime, 'yyyy.MM.dd')))])]),_vm._v(" "),(!item2.isSlect)?_c('span'):_c('img',{attrs:{"src":__webpack_require__(824),"alt":""}})])}),_vm._v(" "),(_vm.disableCouponList.length)?_c('div',{staticClass:"disableTit",style:({'margin-top': _vm.ableCouponList.length ? '2rem': 0})},[_vm._v("以下优惠券不满足使用条件")]):_vm._e(),_vm._v(" "),(_vm.disableCouponList.length)?_vm._l((_vm.disableCouponList),function(item2){return _c('div',{key:item2.id,staticClass:"item disItem"},[_c('div',{staticClass:"coup-left"},[_c('div',[_vm._v("￥"),_c('span',[_vm._v(_vm._s(item2.amount))])]),_vm._v(" "),_c('p',[_vm._v("满￥"+_vm._s(item2.orderAmount)+"可用")])]),_vm._v(" "),_c('div',{staticClass:"coup-right"},[_c('div',[_vm._v(_vm._s(item2.couponName))]),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm._Util.dateFormat(item2.outTime, 'yyyy.MM.dd'))+"-"+_vm._s(_vm._Util.dateFormat(item2.effectTime, 'yyyy.MM.dd')))])]),_vm._v(" "),_c('span')])}):_vm._e()],2)])])],1)}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/urea_default.0a502fc.png";module.exports = __webpack_require__.p + "static/img/coup.90c795c.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(690);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42bb9eda_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1289);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3549)
  __webpack_require__(3551)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-42bb9eda"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42bb9eda_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42bb9eda_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_scanCodeExchange_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3550);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("53c74a90", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body.modal-open{position:fixed;width:100%}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3552);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("750b083a", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".scan-code [class*=hairline][data-v-42bb9eda]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e2e4ea}.scan-code .scan-code-wrap[data-v-42bb9eda]{min-height:100%;background:#f3f4f5;padding:.8rem 0 0;position:relative}.scan-code .scan-code-wrap .wrap-cont[data-v-42bb9eda]{padding:0 .8rem}.scan-code .scan-code-wrap .img-box img[data-v-42bb9eda]{width:100%;height:auto;border-radius:.3rem}.scan-code .scan-code-wrap .btn-box[data-v-42bb9eda]{margin-top:1rem;position:relatibve;z-index:99;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.scan-code .scan-code-wrap .btn-box .scan-btn[data-v-42bb9eda]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;border-radius:.2rem;font:18px/1 PingFangSC-Regular}.scan-code .scan-code-wrap .btn-box .scan-btn.input[data-v-42bb9eda]{color:#177afa;background:#d2e6ff}.scan-code .scan-code-wrap .btn-box .scan-btn.code[data-v-42bb9eda]{background:#177afa;color:#fff}.scan-code .scan-code-wrap .btn-box .scan-btn.code i[data-v-42bb9eda]{width:1rem;height:1rem;background:url(" + escape(__webpack_require__(3553)) + ") no-repeat;background-size:100% 100%;margin-right:.5rem}.scan-code .scan-code-wrap .btn-box>span[data-v-42bb9eda]{width:.5rem}.scan-code .scan-code-wrap .btn-box.abso[data-v-42bb9eda]{position:absolute;width:100%;height:auto;padding:0 .8rem;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);display:block;margin:0}.scan-code .scan-code-wrap .my-equity-box[data-v-42bb9eda]{margin-top:1.2rem;background:#fff;padding:.8rem 0 1.75rem}.scan-code .scan-code-wrap .my-equity-box .my-equity[data-v-42bb9eda]{height:2.4rem;margin:0 .8rem;text-align:center;color:#177afa;font:18px/2.4rem PingFangSC-Regular;border:1px solid #177afa;border-radius:.2rem}.scan-code .scan-code-wrap .my-equity-box>ul li[data-v-42bb9eda]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.8rem;position:relative}.scan-code .scan-code-wrap .my-equity-box>ul li[data-v-42bb9eda]:before{top:0;bottom:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-bottom-width:1px}.scan-code .scan-code-wrap .my-equity-box>ul li.tit[data-v-42bb9eda]{padding:1.2rem .8rem .6rem}.scan-code .scan-code-wrap .my-equity-box>ul li.tit span[data-v-42bb9eda]{color:#999;font:700 14px/1rem PingFangSC-Regular}.scan-code .scan-code-wrap .my-equity-box>ul li.item[data-v-42bb9eda]:after{content:\"\";position:absolute;width:.8rem;height:2px;left:0;bottom:-1px;background:#fff}.scan-code .scan-code-wrap .my-equity-box>ul li span[data-v-42bb9eda]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#333;font:17px/1.2rem PingFangSC-Regular}.scan-code .scan-code-wrap .my-equity-box>ul li i[data-v-42bb9eda]{margin-left:.8rem;width:6px;height:10px;background:url(" + escape(__webpack_require__(1447)) + ") no-repeat;background-size:100% 100%}.scan-code .mask[data-v-42bb9eda]{position:fixed;background:rgba(0,0,0,.5);width:100%;height:100%;top:0;left:0;z-index:100}.scan-code .mask .mask-item[data-v-42bb9eda]{position:absolute;width:90%;top:45%;left:5%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);background:#fff;border-radius:.4rem;padding-top:1rem}.scan-code .mask .mask-item span[data-v-42bb9eda]{position:absolute;width:1.2rem;height:1.2rem;background:url(" + escape(__webpack_require__(3554)) + ") no-repeat;background-size:100% 100%;top:1rem;right:.8rem}.scan-code .mask .mask-item p[data-v-42bb9eda]{text-align:center;color:#333;font:700 18px/1.25rem PingFangSC-Semibold;margin-bottom:.6rem}.scan-code .mask .mask-item .input-box[data-v-42bb9eda]{margin-top:1rem;padding:.8rem .6rem;background:#eee;border-radius:.3rem;width:90%;margin-left:5%}.scan-code .mask .mask-item .input-box input[data-v-42bb9eda]{width:100%;height:1.2rem;color:#333;font:17px/1.35rem PingFangSC-Regular;text-align:center}.scan-code .mask .mask-item .input-box input[data-v-42bb9eda]::-webkit-input-placeholder{color:#999;font-size:17px}.scan-code .mask .mask-item .input-box input[data-v-42bb9eda]:-ms-input-placeholder{color:#999;font-size:17px}.scan-code .mask .mask-item .input-box input[data-v-42bb9eda]::placeholder{color:#999;font-size:17px}.scan-code .mask .mask-item .des[data-v-42bb9eda]{color:#666;font:17px/1.35rem PingFangSC-Regular;text-align:center}.scan-code .mask .mask-item .mask-btn[data-v-42bb9eda]{margin-top:1.4rem;border-top:1px solid #eee;color:#177afa;font:18px/2.45rem PingFangSC-Semibold;text-align:center}.scan-code .mask .mask-item .mask-btn.close[data-v-42bb9eda]{color:#333}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/scan.d6b2b2b.png";module.exports = __webpack_require__.p + "static/img/close.41620b7.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      activeId: this.$route.query.activeId || '',
      // 活动id
      btnNum: this.$route.query.btnNum || '0',
      // 0/扫码+输入；1/仅扫码；2/仅输入
      imgData: {},
      // 图片数据
      showExchage: false,
      // 是否显示兑换弹窗
      showResult: false,
      // 是否显示结果弹窗
      resultDes: '',
      resultStatus: 0,
      // 兑换状态，0 兑换失败 1. 兑换成功
      sacnCode: '',
      // 兑换码
      writeOffCode: '',
      // 得到的兑换码
      resultTitle: '',
      wxData: {},
      purchEquity: [],
      // 购买权益列表
      isInWxMiniApp: localStorage.getItem('inWxMinapp') === '1' // 是否在小程序内打开
    };
  },
  watch: {
    showExchage: function showExchage(val) {
      if (val) {
        this.ModalHelper.afterOpen();
      } else {
        this.ModalHelper.beforeClose();
      }
    },
    showResult: function showResult(val) {
      if (val) {
        this.ModalHelper.afterOpen();
      } else {
        this.ModalHelper.beforeClose();
      }
    }
  },
  created: function created() {
    if (this._Util.isMPaaS()) {
      this.btnNum = '2';
    }
    this.wxReadyFn();
    this.getImgFn();
    this.getPurchEquity();
    if (this.isInWxMiniApp && this.$route.query.scanResult) {
      this.getExchageRightFn(this.$route.query.scanResult, 'scan');
    }
  },
  mounted: function mounted() {
    // 防止滚动穿透
    this.ModalHelper = function (bodyCls) {
      var scrollTop;
      return {
        afterOpen: function afterOpen() {
          scrollTop = document.scrollingElement ? document.scrollingElement.scrollTop : document.body.scrollTop;
          document.body.classList.add(bodyCls);
          document.body.style.top = -scrollTop + 'px';
        },
        beforeClose: function beforeClose() {
          document.body.classList.remove(bodyCls);
          // scrollTop lost after set position:fixed, restore it back.
          if (document.scrollingElement) {
            document.scrollingElement.scrollTop = scrollTop;
          } else {
            document.body.scrollTop = scrollTop;
          }
        }
      };
    }('modal-open');
  },
  methods: {
    showExchageFn: function showExchageFn() {
      var _this = this;
      setTimeout(function () {
        _this.showExchage = true;
      }, 50);
    },
    /*
      * 跳转到我的权益页面
    */
    toMyExchange: function toMyExchange() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'exchangeList',
            url: "".concat(location.origin, "/v2/shopping/exchangeList?activeId=").concat(this.activeId, "&btnNum=").concat(this.btnNum)
          }
        });
      } else {
        this.$router.push({
          name: 'exchangeList',
          query: {
            activeId: this.activeId,
            btnNum: this.btnNum
          }
        });
      }
    },
    /*
      * 获取权益购买数据
    */
    getPurchEquity: function getPurchEquity() {
      var _this2 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'rights_exchange_equitylist',
        active_id: this.activeId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data && data.dataList) {
          _this2.purchEquity = data.dataList;
        }
      }, function () {}, this);
    },
    /**
      * 点击购买权益跳转
      * @param {Object} item 点击的权益
    */
    toEquity: function toEquity(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'exchangeDetail_img',
            url: item.jump_url
          }
        });
      } else {
        location.href = item.jump_url;
      }
    },
    /*
      * 点击图片
    */
    toImgAd: function toImgAd() {
      location.href = this.imgData.url;
    },
    /*
      * 获取图片信息
    */
    getImgFn: function getImgFn() {
      var _this3 = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'rights_exchange_img',
        active_id: this.activeId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data && data.dataList) {
          _this3.imgData = data.dataList[0];
        }
      }, function () {}, this);
    },
    /**
      * 获取扫码配置参数
    */
    wxReadyFn: function wxReadyFn() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (data) {
          that.wxData = {
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature
          };
          _weixinJsSdk.default.config({
            debug: false,
            appId: that.wxData.appId,
            timestamp: that.wxData.timestamp,
            nonceStr: that.wxData.nonceStr,
            signature: that.wxData.signature,
            jsApiList: ['scanQRCode']
          });
          _weixinJsSdk.default.ready(function () {
            _weixinJsSdk.default.checkJsApi({
              jsApiList: ['scanQRCode'],
              success: function success(res) {
                if (res.checkResult.scanQRCode === true) {
                  console.log('scuess');
                } else {
                  (0, _mintUi.Toast)({
                    message: '抱歉，当前客户端版本不支持扫一扫',
                    duration: 2000
                  });
                }
              }
            });
          });
        }
      }, function () {}, that);
    },
    /*
      * 调用微信扫码
    */
    scanCodeFn: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (!this.isInWxMiniApp) {
              _context.next = 1;
              break;
            }
            uni.navigateTo({
              // eslint-disable-line
              url: '/pages/scanCode/index?webUrl=' + location.href
            });
            return _context.abrupt("return");
          case 1:
            that = this;
            _weixinJsSdk.default.config({
              debug: false,
              appId: that.wxData.appId,
              timestamp: that.wxData.timestamp,
              nonceStr: that.wxData.nonceStr,
              signature: that.wxData.signature,
              jsApiList: ['scanQRCode']
            });
            _weixinJsSdk.default.ready(function () {
              _weixinJsSdk.default.checkJsApi({
                jsApiList: ['scanQRCode'],
                success: function success(res) {
                  if (res.checkResult.scanQRCode === true) {
                    _weixinJsSdk.default.scanQRCode({
                      // 微信扫一扫接口
                      needResult: 1,
                      scanType: ['qrCode', 'barCode'],
                      success: function success(res1) {
                        var tempArr = res1.resultStr.split(',');
                        if (tempArr.length > 1) {
                          that.getExchageRightFn(tempArr[1], 'scan');
                        } else {
                          that.getExchageRightFn(tempArr[0], 'scan');
                        }
                      }
                    });
                  } else {
                    (0, _mintUi.Toast)({
                      message: '抱歉，当前客户端版本不支持扫一扫',
                      duration: 2000
                    });
                  }
                }
              });
            });
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /*
      * 获取权益
      * @params {String} result 扫码或者输入的对兑换码
      * @params {String} type 触发类型
    */
    getExchageRightFn: (0, _throttleDebounce.debounce)(200, /*#__PURE__*/function () {
      var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(result, type) {
        var _this4 = this;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              if (!(type === 'click')) {
                _context2.next = 2;
                break;
              }
              if (result.trim()) {
                _context2.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '请输入兑换码',
                duration: 2000
              });
              return _context2.abrupt("return");
            case 1:
              this.showExchage = false;
            case 2:
              this._Util.post(this._Api.GET_EXCHANGE_DDETAIL, {
                writeOffCode: result
              }, function (data) {
                if (data) {
                  _this4.writeOffCode = result;
                  if (data.exchangeStatus) {
                    // 已经被兑换
                    _this4.showResult = true;
                    _this4.resultStatus = 0;
                    _this4.resultTitle = '权益兑换失败';
                    _this4.resultDes = '该兑换码已被兑换';
                    return;
                  }
                  if (data.status === -1) {
                    _this4.showResult = true;
                    _this4.resultStatus = 0;
                    _this4.resultTitle = '权益兑换失败';
                    _this4.resultDes = '兑换码不存在';
                  }
                  if (data.status === 0) {
                    _this4.showResult = true;
                    _this4.resultStatus = -1;
                    _this4.resultTitle = '权益兑换失败';
                    _this4.resultDes = data.text;
                  }
                  if (data.status === 1) {
                    // this.showResult = true
                    // this.resultStatus = 1
                    // this.resultTitle = '恭喜您获得'
                    // this.resultDes = data.text
                    if (_this4._Util.isApp()) {
                      api.sendEvent({
                        name: 'acOpenNewFrm',
                        extra: {
                          name: 'QAndASettings',
                          url: "".concat(location.origin, "/v2/shopping/scanCodeDetail?writeOffCode=").concat(_this4.writeOffCode, "&codeSource=").concat(type)
                        }
                      });
                    } else {
                      _this4.$router.push({
                        name: 'scanCodeDetail',
                        query: {
                          writeOffCode: _this4.writeOffCode,
                          codeSource: type
                        }
                      });
                    }
                  }
                }
              }, function () {}, this);
            case 3:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      return function (_x, _x2) {
        return _ref2.apply(this, arguments);
      };
    }()),
    /*
      * 关闭弹窗
    */
    closeMask: function closeMask(type) {
      if (type) {
        this.sacnCode = '';
      }
      this.showExchage = false;
      this.showResult = false;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"scan-code"},[_c('div',{staticClass:"scan-code-wrap"},[_c('div',{staticClass:"wrap-cont"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.imgData.img),expression:"imgData.img"}],staticClass:"img-box",on:{"click":_vm.toImgAd}},[_c('img',{attrs:{"src":_vm.imgData.img,"alt":""}})]),_vm._v(" "),_c('div',{staticClass:"btn-box",class:{'abso': !_vm.imgData.img && !_vm.imgData.myequity_status && !_vm.purchEquity.length}},[(_vm.btnNum === '0' || _vm.btnNum === '2')?_c('div',{staticClass:"scan-btn input",class:{'code': _vm.btnNum === '2'},on:{"click":function($event){$event.stopPropagation();if($event.target !== $event.currentTarget){ return null; }return _vm.showExchageFn.apply(null, arguments)}}},[_vm._v("输入兑换码")]):_vm._e(),_vm._v(" "),(_vm.btnNum === '0')?_c('span'):_vm._e(),_vm._v(" "),(_vm.btnNum === '0' || _vm.btnNum === '1')?_c('div',{staticClass:"scan-btn code",on:{"touchend":function($event){$event.stopPropagation();return _vm.scanCodeFn.apply(null, arguments)}}},[_c('i'),_vm._v("扫码\n        ")]):_vm._e()])]),_vm._v(" "),(_vm.imgData.myequity_status || _vm.purchEquity.length)?_c('div',{staticClass:"my-equity-box",style:({'padding-top': _vm.imgData.myequity_status ? '1rem' : 0})},[(_vm.imgData.myequity_status)?_c('div',{staticClass:"my-equity",on:{"click":_vm.toMyExchange}},[_vm._v("我的权益")]):_vm._e(),_vm._v(" "),(_vm.purchEquity.length)?_c('ul',[_vm._m(0),_vm._v(" "),_vm._l((_vm.purchEquity),function(item,index){return _c('li',{key:index,staticClass:"item hairline",on:{"click":function($event){return _vm.toEquity(item)}}},[_c('span',[_vm._v(_vm._s(item.text))]),_c('i')])})],2):_vm._e()]):_vm._e()]),_vm._v(" "),(_vm.showExchage || _vm.showResult)?_c('div',{staticClass:"mask"},[(_vm.showExchage)?_c('div',{staticClass:"mask-item"},[_c('span',{on:{"click":function($event){_vm.showExchage = false}}}),_vm._v(" "),_c('p',[_vm._v("兑换码兑换")]),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.sacnCode),expression:"sacnCode"},{name:"fixIos12Input",rawName:"v-fixIos12Input"}],staticClass:"_selectTrue",attrs:{"type":"text","placeholder":"请输入兑换码"},domProps:{"value":(_vm.sacnCode)},on:{"input":function($event){if($event.target.composing){ return; }_vm.sacnCode=$event.target.value}}})]),_vm._v(" "),_c('div',{staticClass:"mask-btn",on:{"click":function($event){$event.stopPropagation();if($event.target !== $event.currentTarget){ return null; }return _vm.getExchageRightFn(_vm.sacnCode, 'click')}}},[_vm._v("兑换")])]):_vm._e(),_vm._v(" "),(_vm.showResult)?_c('div',{staticClass:"mask-item"},[_c('p',[_vm._v(_vm._s(_vm.resultTitle))]),_vm._v(" "),_c('div',{staticClass:"des"},[_vm._v(_vm._s(_vm.resultDes))]),_vm._v(" "),_c('div',{staticClass:"des"},[_vm._v("兑换码："+_vm._s(_vm.writeOffCode))]),_vm._v(" "),(_vm.resultStatus === 1)?_c('div',{staticClass:"mask-btn",on:{"click":function($event){return _vm.closeMask('1')}}},[_vm._v("立即收下")]):_vm._e(),_vm._v(" "),(_vm.resultStatus === 0 || _vm.resultStatus === -1 )?_c('div',{staticClass:"mask-btn close",on:{"click":_vm.closeMask}},[_vm._v("关闭")]):_vm._e()]):_vm._e()]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"tit hairline"},[_c('span',[_vm._v("购买权益：")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(691);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_302f7466_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1290);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3555)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-302f7466"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_302f7466_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_302f7466_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_scanCodeDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3556);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("1b68ed59", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".scan-code-detail .shareMask[data-v-302f7466]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:3000;background:rgba(0,0,0,.5)}.scan-code-detail .shareMask .shareTips[data-v-302f7466]{position:absolute;top:.5rem;right:.5rem;width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%}.scan-code-detail .shareMask .shareTips>p[data-v-302f7466]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.scan-code-detail .shareMask .shareTips>p[data-v-302f7466]:first-of-type{margin-top:.85rem}.scan-code-detail .scan-detail-wrap[data-v-302f7466]{min-height:100%;background:#f3f4f5;padding:.8rem}.scan-code-detail .scan-detail-wrap .img-box img[data-v-302f7466]{border-radius:.3rem;width:100%;height:4.5rem}.scan-code-detail .scan-detail-wrap .detail-box[data-v-302f7466]{background:#fff;margin-top:.8rem;padding:.6rem .6rem 1.2rem;border-radius:.3rem;position:relative}.scan-code-detail .scan-detail-wrap .detail-box.no-margin[data-v-302f7466]{margin:0}.scan-code-detail .scan-detail-wrap .detail-box>p[data-v-302f7466]{color:#333;font:14px/1rem PingFangSC-Regular}.scan-code-detail .scan-detail-wrap .detail-box>p span[data-v-302f7466]{color:#999;font:14px/1rem PingFangSC-Regular}.scan-code-detail .scan-detail-wrap .detail-box .item[data-v-302f7466]{background:#f3f4f5;border-radius:.2rem;padding:1rem .6rem;margin-top:.6rem}.scan-code-detail .scan-detail-wrap .detail-box .item span[data-v-302f7466]{color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.scan-code-detail .scan-detail-wrap .detail-box .item .code[data-v-302f7466]{margin-top:.4rem;color:#999;font:14px/1rem PingFangSC-Regular}.scan-code-detail .scan-detail-wrap .detail-box .get-give[data-v-302f7466]{margin-top:3.7rem}.scan-code-detail .scan-detail-wrap .detail-box .get-give div[data-v-302f7466]{display:block;width:100%;height:2.25rem;text-align:center;font:17px/2.25rem PingFangSC-Regular;background:#177afa;color:#fff;border-radius:.2rem}.scan-code-detail .scan-detail-wrap .detail-box .get-give div.give-btn[data-v-302f7466]{border:1px solid #177afa;margin-top:.6rem;background:#fff;color:#177afa}.scan-code-detail .scan-detail-wrap .detail-box>img[data-v-302f7466]{position:absolute;width:3.1rem;height:2.975rem;right:0;bottom:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      writeOffCode: this.$route.query.writeOffCode || '',
      // 权益码
      exchangeDetail: {},
      // exchangeStatus兑换状态：0/未兑换，1/已兑换  status状态 0:失败，1:成功，-1:码不存在  isTransfer是否允许转赠  0/否，1/是
      isAccept: false,
      imgData: {},
      modeType: this.$route.query.userId ? 2 : this.$route.query.codeSource === 'scan' ? 0 : 1,
      showMask: false
    };
  },
  created: function created() {
    this.getExchangeDetail(true);
    this.getImgFn();
    this.addLogFn(0);
  },
  methods: {
    /*
      * 显示分享引导弹窗
    */
    showMaskBoxFn: function showMaskBoxFn() {
      if (!this.showMask) {
        this.showMask = true;
      }
    },
    /*
      * 增加日志埋点
    */
    addLogFn: function addLogFn(behavior) {
      var params = {
        behavior: behavior,
        // 行为 0/查看，1/兑换
        modeType: this.modeType,
        // 方式  0/扫码，1/输入条码，2/分享
        writeOffCode: this.writeOffCode
      };
      if (this.modeType === 2) {
        params.sourceId = this.$route.query.userId;
      }
      this._Util.post(this._Api.ADD_EQUITY_LOG, params, function (data) {}, function () {}, this, true);
    },
    /*
      * 获取图片信息
    */
    getImgFn: function getImgFn() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'equity_detal_img',
        write_off_code: this.writeOffCode,
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        if (data && data.dataList) {
          _this.imgData = data.dataList[0];
        }
      }, function () {}, this);
    },
    /*
      * 点击图片
    */
    toImgAd: function toImgAd() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'scanDetail_img',
            url: this.imgData.url
          }
        });
      } else {
        location.href = this.imgData.url;
      }
    },
    /*
      * 获取权益
    */
    getExchangeDetail: function getExchangeDetail(shareFlag) {
      var _this2 = this;
      this._Util.post(this._Api.GET_EXCHANGE_DDETAIL, {
        writeOffCode: this.writeOffCode,
        userId: this.$route.query.userId // 如果有userid,代表是归属人分享出来的，该id为归属人的id
      }, function (data) {
        if (data) {
          _this2.isAccept = !!data.exchangeStatus;
          _this2.exchangeDetail = data;
          if (_this2.exchangeDetail.writeOffCode) {
            var code = _this2.exchangeDetail.writeOffCode;
            _this2.exchangeDetail.writeOffCode = code.substr(0, 4) + '****' + code.substr(code.length - 4);
          }
          if (shareFlag) {
            _this2.shareConfig();
          }
        }
      }, function () {}, this);
    },
    /*
      * 收下权益
    */
    acceptExchange: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(result, type) {
        var _this3 = this;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this.addLogFn(1);
              this._Util.post(this._Api.GET_EXCHANGE_EQUITY, {
                writeOffCode: this.writeOffCode
              }, function (data) {
                if (data) {
                  if (data.status === -1) {
                    (0, _mintUi.Toast)({
                      message: data.text,
                      duration: 2000
                    });
                  }
                  if (data.status === 0) {
                    (0, _mintUi.Toast)({
                      message: data.text,
                      duration: 2000
                    });
                  }
                  if (data.status === 1) {
                    (0, _mintUi.Toast)({
                      message: '领取成功',
                      duration: 2000
                    });
                    _this3.isAccept = true;
                    _this3.getExchangeDetail();
                  }
                }
              }, function () {}, this);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var userId = localStorage.getItem('userId') || that.$store.state.userInfo.userId;
      var _shareItem = {};
      if (!that.exchangeDetail.ascriptionUserId) {
        // 如果没有归属人id，则分享当前页面链接
        _shareItem = {
          title: '权益兑换',
          desc: '权益兑换',
          link: location.href.includes('userId') ? location.href : location.href + '&userId=' + userId,
          imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
        };
      } else {
        if (that.exchangeDetail.ascriptionUserId + '' === userId) {
          // 如果归属人id跟当前登录人id一致，则分享当前页面链接
          _shareItem = {
            title: '权益兑换',
            desc: '权益兑换',
            link: location.href.includes('userId') ? location.href : location.href + '&userId=' + userId,
            imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
          };
        } else {
          _shareItem = {
            title: '卡修宝典',
            desc: '卡修宝典',
            link: "".concat(location.origin, "/v2/fms"),
            imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
          };
        }
      }
      console.log(_shareItem);
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"scan-code-detail"},[_c('div',{staticClass:"scan-detail-wrap"},[(_vm.imgData.img)?_c('div',{staticClass:"img-box",on:{"click":_vm.toImgAd}},[_c('img',{attrs:{"src":_vm.imgData.img,"alt":""}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"detail-box",class:{'no-margin': !_vm.imgData.img},style:({'padding-bottom': _vm.isAccept ? '0.6rem' : '1.2rem'})},[(_vm.exchangeDetail.shareName)?_c('p',[_vm._v(_vm._s(_vm.exchangeDetail.shareName)+" "),_c('span',[_vm._v("赠送了您一份：")])]):_c('p',[_vm._v("权益码包含权益：")]),_vm._v(" "),_c('div',{staticClass:"item"},[_c('span',{style:({'color': _vm.isAccept ? '#A8A8A8' : '#333'})},[_vm._v(_vm._s(_vm.exchangeDetail.courseName))]),_vm._v(" "),_c('div',{staticClass:"code"},[_vm._v("权益码："+_vm._s(_vm.exchangeDetail.writeOffCode))])]),_vm._v(" "),(_vm.isAccept)?_c('img',{attrs:{"src":__webpack_require__(3557),"alt":""}}):_vm._e(),_vm._v(" "),(!_vm.isAccept)?_c('div',{staticClass:"get-give"},[(!_vm.isAccept)?_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.acceptExchange.apply(null, arguments)}}},[_vm._v("立即收下")]):_vm._e(),_vm._v(" "),(_vm.exchangeDetail.isTransfer)?_c('div',{staticClass:"give-btn",on:{"click":function($event){$event.stopPropagation();return _vm.showMaskBoxFn.apply(null, arguments)}}},[_vm._v("转赠他人")]):_vm._e()]):_vm._e()])]),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"shareMask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showMask = false}}},[_vm._m(0)]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
module.exports = __webpack_require__.p + "static/img/accept.5170788.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(692);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_594be740_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1291);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3558)
  __webpack_require__(3560)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-594be740"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_594be740_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_594be740_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exchangeList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3559);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("05c0f4e0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body.modal-open{position:fixed;width:100%}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3561);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4b23dc32", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".exchange-list .tab-box[data-v-594be740]{height:2.65rem;border-bottom:1px solid #eee;padding-left:.8rem;background:#fff}.exchange-list .tab-box[data-v-594be740],.exchange-list .tab-box li[data-v-594be740]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.exchange-list .tab-box li[data-v-594be740]{height:100%;margin-right:1.2rem;position:relative;color:#999;font:15px/1 PingFangSC-Regular}.exchange-list .tab-box li.active[data-v-594be740]{color:#333;font:700 18px/1 PingFangSC-Semibold}.exchange-list .tab-box li.active[data-v-594be740]:after{content:\"\";position:absolute;width:1rem;height:.2rem;background:#177afa;border-radius:.1rem;bottom:0;left:50%;margin-left:-.5rem}.exchange-list .scan-list-wrap[data-v-594be740]{background:#fff;padding:.8rem}.exchange-list .scan-list-wrap .item[data-v-594be740]{background:#f3f4f5;border-radius:.2rem;padding:.8rem .6rem;margin-bottom:.8rem}.exchange-list .scan-list-wrap .item p[data-v-594be740]{color:#333;font:700 18px/1.25rem PingFangSC-Semibold}.exchange-list .scan-list-wrap .item .code-box[data-v-594be740]{margin-top:.4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.exchange-list .scan-list-wrap .item .code-box span[data-v-594be740]{color:#999;font:14px/1rem PingFangSC-Regular}.exchange-list .scan-list-wrap .item .code-box span.no-exchange[data-v-594be740]{color:#ff3f3f}.exchange-list .scan-list-wrap .empty[data-v-594be740]{margin-top:1rem;text-align:center;color:#999;font:14px/1 PingFangSC-Regular}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(175);
var _sticky = _interopRequireDefault(__webpack_require__(132));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _sticky.default.name, _sticky.default),
  filters: {
    codeFilter: function codeFilter(val) {
      if (!val) {
        return;
      }
      return val.substr(0, 4) + '****' + val.substr(val.length - 4);
    }
  },
  data: function data() {
    return {
      activeId: this.$route.query.activeId || '',
      // 活动id
      btnNum: this.$route.query.btnNum || '0',
      // 0/扫码+输入；1/仅扫码；2/仅输入 
      activeIndex: '',
      exchageList: [],
      listCancelSource: '',
      // 列表 axios cancelToken
      showEmpty: false
    };
  },
  created: function created() {
    this.getVisualFn();
    this.getExchageList('');
  },
  methods: {
    /*
      * 判断是否有权限查看该页面
    */
    getVisualFn: function getVisualFn() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'rights_exchange_img',
        active_id: this.activeId,
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        var visualData = data && data.dataList && data.dataList[0];
        if (!visualData.myequity_status) {
          _this.$router.push({
            name: 'scanCodeExchange',
            query: {
              activeId: _this.activeId,
              btnNum: _this.btnNum
            }
          });
        }
      }, function () {}, this);
    },
    /**
      * 切换tab
      * @param {Numbner} type 列表类型
    */
    getData: function getData(type) {
      if (this.listCancelSource) {
        // 有axiosCancelToken的时候，取消还未返回的请求
        this.cancelArticleList();
      }
      if (this.activeIndex === type) {
        return;
      }
      this.exchageList = [];
      this.activeIndex = type;
      this.getExchageList(type);
    },
    /** 
     * 取消正在请求的文章列表接口
     */
    cancelArticleList: function cancelArticleList() {
      this.listCancelSource.cancel();
    },
    /**
      * 获取用户归属权益列表
    */
    getExchageList: function getExchageList(type) {
      var _this2 = this;
      this.listCancelSource = this.$http.CancelToken.source();
      this._Util.post(this._Api.GET_EQUITY_LIST, {
        exchangeStatus: type
      }, function (data) {
        if (!data) {
          _this2.showEmpty = true;
        }
        if (data) {
          _this2.exchageList = data || [];
          if (!_this2.exchageList.length) {
            _this2.showEmpty = true;
          }
        }
      }, function () {}, this, false);
    },
    /**
      * 前往权益详情页
      * @param {Object} item 点击的某一项
    */
    toExchangeDetail: function toExchangeDetail(item) {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'QAndASettings',
            url: "".concat(location.origin, "/v2/shopping/exchangeDetail?code=").concat(item.writeOffCode)
          }
        });
      } else {
        this.$router.push({
          name: 'exchangeDetail',
          query: {
            code: item.writeOffCode
          }
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"exchange-list"},[_c('van-sticky',[_c('ul',{staticClass:"tab-box"},[_c('li',{class:{'active': _vm.activeIndex === ''},on:{"click":function($event){return _vm.getData('')}}},[_vm._v("全部")]),_vm._v(" "),_c('li',{class:{'active': _vm.activeIndex === 0},on:{"click":function($event){return _vm.getData(0)}}},[_vm._v("未兑换")]),_vm._v(" "),_c('li',{class:{'active': _vm.activeIndex === 1},on:{"click":function($event){return _vm.getData(1)}}},[_vm._v("已兑换")])])]),_vm._v(" "),_c('div',{staticClass:"scan-list-wrap"},[_vm._l((_vm.exchageList),function(item){return _c('div',{key:item.writeOffCode,staticClass:"item",on:{"click":function($event){return _vm.toExchangeDetail(item)}}},[_c('p',[_vm._v(_vm._s(item.courseName))]),_vm._v(" "),_c('div',{staticClass:"code-box"},[_c('span',[_vm._v("权益码："+_vm._s(_vm._f("codeFilter")(item.writeOffCode)))]),_vm._v(" "),_c('span',{class:{'no-exchange': !item.exchangeStatus}},[_vm._v(_vm._s(item.exchangeStatus ? '已兑换' : '未兑换'))])])])}),_vm._v(" "),(_vm.showEmpty)?_c('div',{staticClass:"empty"},[_vm._v("暂无相关数据")]):_vm._e()],2)],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(693);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38e7427a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1292);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3562)
  __webpack_require__(3564)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-38e7427a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38e7427a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38e7427a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exchangeDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3563);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("54a78474", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body.modal-open{position:fixed;width:100%}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3565);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2f9a0b4e", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".exchange-detail [class*=hairline][data-v-38e7427a]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e2e4ea}.exchange-detail .shareMask[data-v-38e7427a]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:3000;background:rgba(0,0,0,.5)}.exchange-detail .shareMask .shareTips[data-v-38e7427a]{position:absolute;top:.5rem;right:.5rem;width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%}.exchange-detail .shareMask .shareTips>p[data-v-38e7427a]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.exchange-detail .shareMask .shareTips>p[data-v-38e7427a]:first-of-type{margin-top:.85rem}.exchange-detail .exchange-detail-wrap[data-v-38e7427a]{background:#fff;min-height:100%}.exchange-detail .exchange-detail-wrap .img-box[data-v-38e7427a]{padding:.8rem;background:#f3f4f5}.exchange-detail .exchange-detail-wrap .img-box img[data-v-38e7427a]{border-radius:.3rem;width:100%;height:4.5rem}.exchange-detail .exchange-detail-wrap .cont[data-v-38e7427a]{background:#fff;padding-left:.8rem}.exchange-detail .exchange-detail-wrap .cont .cont-item[data-v-38e7427a]{padding:.8rem .8rem .8rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}.exchange-detail .exchange-detail-wrap .cont .cont-item[data-v-38e7427a]:before{top:0;bottom:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-bottom-width:1px}.exchange-detail .exchange-detail-wrap .cont .cont-item .name[data-v-38e7427a]{width:3.5rem;color:#999;font:17px/1.25rem PingFangSC-Regular}.exchange-detail .exchange-detail-wrap .cont .cont-item .des[data-v-38e7427a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:1.4rem;color:#333;font:17px/1.2rem PingFangSC-Regular}.exchange-detail .exchange-detail-wrap .cont .cont-item .des.no-exchage[data-v-38e7427a]{color:#ff3f3f}.exchange-detail .exchange-detail-wrap .get-give[data-v-38e7427a]{padding:0 .8rem;margin-top:3rem}.exchange-detail .exchange-detail-wrap .get-give div[data-v-38e7427a]{display:block;width:100%;height:2.4rem;text-align:center;font:17px/2.4rem PingFangSC-Regular;background:#177afa;color:#fff;border-radius:.2rem}.exchange-detail .exchange-detail-wrap .get-give div.give-btn[data-v-38e7427a]{border:1px solid #177afa;margin-top:.6rem;background:#fff;color:#177afa}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
var _mintUi = __webpack_require__(7);
var _throttleDebounce = __webpack_require__(21);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      writeOffCode: this.$route.query.code,
      exchangeDetail: {},
      imgData: {},
      isAccept: false,
      // 是否已经收下
      showMask: false,
      modeType: this.$route.query.userId ? 2 : 1
    };
  },
  created: function created() {
    this.getImgFn();
    this.getExchangeDetailFn(true);
    this.addLogFn(0);
  },
  methods: {
    /*
      * 增加日志埋点
    */
    addLogFn: function addLogFn(behavior) {
      var params = {
        behavior: behavior,
        // 行为 0/查看，1/兑换
        modeType: this.modeType,
        // 方式  0/扫码，1/输入条码，2/分享
        writeOffCode: this.writeOffCode
      };
      if (this.modeType === 2) {
        params.sourceId = this.$route.query.userId;
      }
      this._Util.post(this._Api.ADD_EQUITY_LOG, params, function (data) {}, function () {}, this, true);
    },
    /*
      * 获取图片信息
    */
    getImgFn: function getImgFn() {
      var _this = this;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'equity_detal_img',
        write_off_code: this.writeOffCode,
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        pageNum: 1,
        pageSize: 10
      }, function (data) {
        _this.imgData = data && data.dataList && data.dataList[0];
      }, function () {}, this);
    },
    /*
      * 获取权益
    */
    getExchangeDetailFn: function getExchangeDetailFn(shareFlag) {
      var _this2 = this;
      this._Util.post(this._Api.GET_EXCHANGE_DDETAIL, {
        writeOffCode: this.writeOffCode
      }, function (data) {
        if (data) {
          _this2.isAccept = !!data.exchangeStatus;
          _this2.exchangeDetail = data;
          if (_this2.exchangeDetail.writeOffCode) {
            var code = _this2.exchangeDetail.writeOffCode;
            _this2.exchangeDetail.writeOffCode = code.substr(0, 4) + '****' + code.substr(code.length - 4);
          }
          if (shareFlag) {
            _this2.shareConfig();
          }
        }
      }, function () {}, this);
    },
    /*
      * 点击图片
    */
    toImgAd: function toImgAd() {
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'exchangeDetail_img',
            url: this.imgData.url
          }
        });
      } else {
        location.href = this.imgData.url;
      }
    },
    /*
      * 收下权益
    */
    acceptExchange: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(result, type) {
        var _this3 = this;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              this.addLogFn(1);
              this._Util.post(this._Api.GET_EXCHANGE_EQUITY, {
                writeOffCode: this.writeOffCode
              }, function (data) {
                if (data) {
                  if (data.status === -1) {
                    (0, _mintUi.Toast)({
                      message: data.text,
                      duration: 2000
                    });
                  }
                  if (data.status === 0) {
                    (0, _mintUi.Toast)({
                      message: data.text,
                      duration: 2000
                    });
                  }
                  if (data.status === 1) {
                    (0, _mintUi.Toast)({
                      message: '领取成功',
                      duration: 2000
                    });
                    _this3.isAccept = true;
                    _this3.getExchangeDetailFn();
                  }
                }
              }, function () {}, this);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      var userId = localStorage.getItem('userId') || that.$store.state.userInfo.userId;
      var _shareItem = {};
      if (!that.exchangeDetail.ascriptionUserId) {
        // 如果没有归属人id，则分享当前页面链接
        _shareItem = {
          title: '权益兑换',
          desc: '权益兑换',
          link: location.origin + '/v2/shopping/scanCodeDetail?writeOffCode=' + that.writeOffCode + '&userId=' + userId,
          imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
        };
      } else {
        if (that.exchangeDetail.ascriptionUserId + '' === userId) {
          // 如果归属人id跟当前登录人id一致，则分享当前页面链接
          _shareItem = {
            title: '权益兑换',
            desc: '权益兑换',
            link: location.origin + '/v2/shopping/scanCodeDetail?writeOffCode=' + that.writeOffCode + '&userId=' + userId,
            imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
          };
        } else {
          _shareItem = {
            title: '卡修宝典',
            desc: '卡修宝典',
            link: "".concat(location.origin, "/v2/fms"),
            imgUrl: 'http://static1.kaxiuyun.com/header_xg.png'
          };
        }
      }
      console.log(_shareItem);
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: _shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, _shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, _shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"exchange-detail"},[_c('div',{staticClass:"exchange-detail-wrap"},[(_vm.imgData.img)?_c('div',{staticClass:"img-box",on:{"click":_vm.toImgAd}},[_c('img',{attrs:{"src":_vm.imgData.img,"alt":""}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"cont"},[_c('div',{staticClass:"cont-item hairline"},[_c('div',{staticClass:"name"},[_vm._v("兑换内容")]),_vm._v(" "),_c('div',{staticClass:"des"},[_vm._v(_vm._s(_vm.exchangeDetail.courseName))])]),_vm._v(" "),_c('div',{staticClass:"cont-item hairline"},[_c('div',{staticClass:"name"},[_vm._v("权益码")]),_vm._v(" "),_c('div',{staticClass:"des"},[_vm._v(_vm._s(_vm.exchangeDetail.writeOffCode))])]),_vm._v(" "),(_vm.exchangeDetail.userName)?_c('div',{staticClass:"cont-item hairline"},[_c('div',{staticClass:"name"},[_vm._v("兑换人")]),_vm._v(" "),_c('div',{staticClass:"des"},[_vm._v(_vm._s(_vm.exchangeDetail.userName))])]):_vm._e(),_vm._v(" "),(_vm.exchangeDetail.exchangeTime)?_c('div',{staticClass:"cont-item hairline"},[_c('div',{staticClass:"name"},[_vm._v("兑换时间")]),_vm._v(" "),_c('div',{staticClass:"des"},[_vm._v(_vm._s(_vm._Util.dateFormat(_vm.exchangeDetail.exchangeTime, 'yyyy-MM-dd hh:mm')))])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"cont-item hairline"},[_c('div',{staticClass:"name"},[_vm._v("当前状态")]),_vm._v(" "),_c('div',{staticClass:"des",class:{'no-exchage': !_vm.exchangeDetail.exchangeStatus}},[_vm._v(_vm._s(_vm.exchangeDetail.exchangeStatus ? '已兑换' : '未兑换'))])])]),_vm._v(" "),(!_vm.isAccept)?_c('div',{staticClass:"get-give"},[(!_vm.isAccept)?_c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.acceptExchange.apply(null, arguments)}}},[_vm._v("立即收下")]):_vm._e(),_vm._v(" "),(_vm.exchangeDetail.isTransfer)?_c('div',{staticClass:"give-btn",on:{"click":function($event){$event.stopPropagation();_vm.showMask = true}}},[_vm._v("转赠他人")]):_vm._e()]):_vm._e()]),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"shareMask",on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }_vm.showMask = false}}},[_vm._m(0)]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(694);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66720412_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1293);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3566)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-66720412"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66720412_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66720412_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ask_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3567);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("75fd5234", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".care-free-ask .wrap[data-v-66720412]{min-height:100%;background:#fff;padding:.8rem}.care-free-ask .search-box>p[data-v-66720412]{color:#333;font:700 16px/1.25rem PingFangSC-Semibold}.care-free-ask .search-box .input-box[data-v-66720412]{margin-top:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.care-free-ask .search-box .input-box input[data-v-66720412]{height:2.2rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background:#f5f5f5;border-radius:.2rem;padding-left:.6rem}.care-free-ask .search-box .input-box input[data-v-66720412]::-webkit-input-placeholder{color:#999;font:16px/1 PingFangSC-Regular}.care-free-ask .search-box .input-box span[data-v-66720412]{margin-left:.6rem;width:3.8rem;height:2.2rem;background:#177afa;color:#fff;border-radius:.2rem;text-align:center;font:16px/2.2rem PingFangSC-Regular}.care-free-ask .search-box .data-box[data-v-66720412]{margin-top:.8rem}.care-free-ask .search-box .data-box div[data-v-66720412]{margin-bottom:.4rem;color:#666;font:14px/1rem PingFangSC-Regular;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.care-free-ask .search-box .data-box div span[data-v-66720412]{width:3.5rem}.care-free-ask .search-box .data-box div i[data-v-66720412]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.care-free-ask .search-box .data-box div[data-v-66720412]:last-child{margin:0}.care-free-ask .des-box[data-v-66720412]{margin-top:2rem}.care-free-ask .des-box p[data-v-66720412]{color:#333;font:700 16px/1.25rem PingFangSC-Semibold}.care-free-ask .des-box textarea[data-v-66720412]{margin-top:.6rem;width:100%;min-height:7.6rem;padding:.6rem;background:#f5f5f5;border-radius:.2rem;border:none}.care-free-ask .des-box textarea[data-v-66720412]::-webkit-input-placeholder{color:#999;font:16px/1 PingFangSC-Regular}.care-free-ask .sub-btn[data-v-66720412]{margin-top:1rem;height:2.5rem;background:#c2c8d0;border-radius:.2rem;text-align:center;color:#fff;font:16px/2.5rem PingFangSC-Regular}.care-free-ask .sub-btn.active[data-v-66720412]{background:#177afa}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _throttleDebounce = __webpack_require__(21);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'GrabOrder',
  data: function data() {
    return {
      code: '',
      des: '',
      // 问题描述
      cusData: {}
    };
  },
  computed: {
    canAsk: function canAsk() {
      return !!(JSON.stringify(this.cusData) !== '{}' && this.des.trim());
    }
  },
  created: function created() {},
  methods: {
    /**
     * 搜索客户
     */
    searchUserFn: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(type, param) {
        var _this = this;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (this.code.trim()) {
                _context.next = 1;
                break;
              }
              (0, _mintUi.Toast)({
                message: '请输入客户编号/群名称',
                duration: 1500
              });
              return _context.abrupt("return");
            case 1:
              this._Util.post(this._Api.CARE_FREE_PARENTER.SEARCH_USER, {
                keyword: this.code
              }, function (data) {
                if (data) {
                  _this.cusData = data;
                } else {
                  (0, _mintUi.Toast)({
                    message: '该客户未加入无忧伙伴群，请重新输入',
                    duration: 1500
                  });
                  _this.cusData = {};
                }
              }, function () {}, this);
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x, _x2) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 发起提问
     */
    subFn: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
      var _this2 = this;
      return _regenerator.default.wrap(function (_context2) {
        while (1) switch (_context2.prev = _context2.next) {
          case 0:
            if (this.canAsk) {
              _context2.next = 1;
              break;
            }
            return _context2.abrupt("return");
          case 1:
            this._Util.post(this._Api.CARE_FREE_PARENTER.CREAT_QUESTION, {
              questionDesc: this.des.trim(),
              qyUserId: this.cusData.qyUserId,
              appchatId: this.cusData.appchatId,
              userId: this.cusData.userId
            }, function (data) {
              (0, _mintUi.Toast)({
                message: '发起提问成功',
                duration: 1500
              });
              setTimeout(function () {
                _this2.code = '';
                _this2.des = '';
                _this2.cusData = {};
              }, 500);
            }, function () {}, this);
          case 2:
          case "end":
            return _context2.stop();
        }
      }, _callee2, this);
    })))
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"care-free-ask"},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"search-box"},[_c('p',[_vm._v("客户编号/群名称")]),_vm._v(" "),_c('div',{staticClass:"input-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.code),expression:"code"}],attrs:{"type":"text","placeholder":"请输入客户编号/群名称"},domProps:{"value":(_vm.code)},on:{"input":function($event){if($event.target.composing){ return; }_vm.code=$event.target.value}}}),_vm._v(" "),_c('span',{on:{"click":_vm.searchUserFn}},[_vm._v("查询")])]),_vm._v(" "),(JSON.stringify(_vm.cusData) !== '{}')?_c('div',{staticClass:"data-box"},[_c('div',[_c('span',[_vm._v("客户姓名：")]),_c('i',[_vm._v(_vm._s(_vm.cusData.userName))])]),_vm._v(" "),_c('div',[_c('span',[_vm._v("手机号码：")]),_c('i',[_vm._v(_vm._s(_vm.cusData.uphone))])]),_vm._v(" "),_c('div',[_c('span',[_vm._v("群名称：")]),_c('i',[_vm._v(_vm._s(_vm.cusData.appchatName))])])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"des-box"},[_c('p',[_vm._v("问题描述")]),_vm._v(" "),_c('textarea-autosize',{directives:[{name:"fixIos12Input",rawName:"v-fixIos12Input"}],ref:"textarea",staticClass:"textarea",attrs:{"id":"textarea","placeholder":"请输入问题描述"},model:{value:(_vm.des),callback:function ($$v) {_vm.des=$$v},expression:"des"}})],1),_vm._v(" "),_c('div',{staticClass:"sub-btn",class:{'active': _vm.canAsk},on:{"click":_vm.subFn}},[_vm._v("发起提问")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(695);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1be24251_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_order_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1294);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3568)
  __webpack_require__(3570)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1be24251"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_order_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1be24251_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_order_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1be24251_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_order_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3569);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("45078cbc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".carefree-order{border-radius:.4rem}.carefree-order .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.carefree-order .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.carefree-order .van-button--default{height:2.65rem;color:#333}.carefree-order .van-button--default .van-button__text{font-size:.9rem}.carefree-order .van-dialog__confirm{color:#177afa}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3571);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0f33d112", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".care-free-order [class*=hairline][data-v-1be24251]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.care-free-order .wrap[data-v-1be24251]{height:100%;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.care-free-order .wrap .status[data-v-1be24251]{height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 .8rem;position:relative}.care-free-order .wrap .status[data-v-1be24251]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.care-free-order .wrap .status i[data-v-1be24251]{color:#999;font:700 14px/1rem PingFangSC-Semibold}.care-free-order .wrap .status span[data-v-1be24251]{margin-left:.4rem;width:2.4rem;height:1rem;border-radius:.1rem;text-align:center;color:#fff;font:12px/1rem PingFangSC-Regular}.care-free-order .wrap .status span.ordered[data-v-1be24251]{background:#177afa}.care-free-order .wrap .status span.solved[data-v-1be24251]{background:#25bf93}.care-free-order .wrap .cont[data-v-1be24251]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;margin:0 .8rem;color:#333;font:18px/1.4rem PingFangSC-Regular;padding:.6rem 0;white-space:pre-line}.care-free-order .wrap .tip[data-v-1be24251]{background:#fff5ea;padding:.4rem .8rem;text-align:center;color:#ff472a;font:14px/1rem PingFangSC-Regular}.care-free-order .wrap .btn-box[data-v-1be24251]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;padding:.35rem .8rem .5rem}.care-free-order .wrap .btn-box[data-v-1be24251]:before{top:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.care-free-order .wrap .btn-box .order-btn[data-v-1be24251]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.5rem;margin-right:.6rem;border-radius:.2rem;text-align:center;background:#177afa;color:#fff;font:18px/2.5rem PingFangSC-Regular}.care-free-order .wrap .btn-box .order-btn[data-v-1be24251]:last-child{margin-right:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _throttleDebounce = __webpack_require__(21);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _toast.default.name, _toast.default), _dialog.default.name, _dialog.default),
  data: function data() {
    return {
      id: this.$route.query.id || '',
      userId: localStorage.getItem('userId') || this.$store.state.userInfo.userId,
      quesDetail: {} // 问题状态 1:待接单，2:已接单，3:已解决 4:未解决
    };
  },
  created: function created() {
    this.getQuesDetail();
  },
  methods: {
    /**
     * 获取七牛token
     */
    getQuesDetail: function getQuesDetail() {
      var _this = this;
      this._Util.post(this._Api.CARE_FREE_PARENTER.GET_QUES_DETAIL, {
        id: this.id
      }, function (data) {
        if (data) {
          _this.quesDetail = data;
          switch (data.status) {
            case 3:
              _this.quesDetail.statusText = '已解决';
              break;
            case 4:
              _this.quesDetail.statusText = '未解决';
              break;
            default:
              _this.quesDetail.statusText = '';
              break;
          }
        }
      }, function () {}, this);
    },
    /**
     * 发起提问
     */
    acceptOrder: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this2 = this;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            this._Util.post(this._Api.CARE_FREE_PARENTER.ACCEPT_ORDER, {
              id: this.id
            }, function (data) {
              if (data.status === 1) {
                _dialog.default.confirm({
                  title: '提示',
                  message: data.message || '接单成功，正在将你加入客户无忧群聊，请稍等',
                  confirmButtonText: '确认',
                  showCancelButton: false,
                  className: 'carefree-order'
                }).then(function () {
                  _this2.getQuesDetail();
                }).catch(function () {});
              } else {
                if (data.message) {
                  (0, _toast.default)({
                    message: data.message,
                    duration: 2500
                  });
                }
              }
            }, function () {}, this);
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 关闭问题
     */
    closeQue: function closeQue(status) {
      var _this3 = this;
      _dialog.default.confirm({
        title: '提示',
        message: '关闭后技术老师将被移出群聊',
        confirmButtonText: '确认',
        className: 'carefree-order'
      }).then(function () {
        _this3._Util.post(_this3._Api.CARE_FREE_PARENTER.CLOSE_QUES, {
          id: _this3.id,
          status: status
        }, function (data) {
          if (data.status === 1) {
            _this3.getQuesDetail();
            (0, _toast.default)({
              message: data.message || '已关闭该问题',
              duration: 1500
            });
          } else {
            if (data.message) {
              (0, _toast.default)({
                message: data.message,
                duration: 1500
              });
            }
          }
        }, function () {}, _this3);
      }).catch(function () {});
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"care-free-order"},[_c('div',{staticClass:"wrap"},[_c('div',{staticClass:"status hairline"},[_c('i',[_vm._v("问题描述")]),_vm._v(" "),(_vm.quesDetail.status === 2)?_c('span',{staticClass:"ordered"},[_vm._v("已接单")]):_vm._e(),_vm._v(" "),(_vm.quesDetail.statusText && _vm.quesDetail.statusText !== '')?_c('span',{staticClass:"solved"},[_vm._v(_vm._s(_vm.quesDetail.statusText))]):_vm._e()]),_vm._v(" "),_c('pre',{staticClass:"cont"},[_vm._v(_vm._s(_vm.quesDetail.questionDesc))]),_vm._v(" "),(_vm.quesDetail.status === 2 && _vm.quesDetail.closeStatus === 2)?_c('div',{staticClass:"tip"},[_vm._v("关闭后技术老师将被移出群聊")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"btn-box hairline"},[(_vm.quesDetail.status === 1)?_c('div',{staticClass:"order-btn",on:{"click":_vm.acceptOrder}},[_vm._v("立即接单")]):_vm._e(),_vm._v(" "),(_vm.quesDetail.status === 2 && _vm.quesDetail.closeStatus === 2)?_c('div',{staticClass:"order-btn",on:{"click":function($event){return _vm.closeQue(3)}}},[_vm._v("已解决，关闭问题")]):_vm._e(),_vm._v(" "),(_vm.quesDetail.status === 2 && _vm.quesDetail.closeStatus === 2)?_c('div',{staticClass:"order-btn",on:{"click":function($event){return _vm.closeQue(4)}}},[_vm._v("未解决，关闭问题")]):_vm._e()])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(696);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6384a164_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1295);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3572)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6384a164"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6384a164_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6384a164_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_realNameProof_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3573);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("449415ff", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-6384a164]{font-family:PingFangSC-Regular,PingFang SC}[class*=hairline][data-v-6384a164]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.radio-list[data-v-6384a164]{margin:.8rem 1.2rem .6rem}.radio-list .radio-item[data-v-6384a164]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.45rem}.radio-list .radio-item .radio-icon[data-v-6384a164]{position:relative;display:inline-block;width:.8rem;height:.8rem;border-radius:.1rem;background-color:#f4f5f6;border:1px solid #d7d7d7}.radio-list .radio-item .radio-icon.checked[data-v-6384a164]{border-color:#177afa;background-color:#fff}.radio-list .radio-item .radio-icon.checked[data-v-6384a164]:before{position:absolute;top:50%;left:50%;margin-top:-.2rem;margin-left:-.2rem;display:block;content:\"\";width:.4rem;height:.4rem;background-color:#177afa;border-radius:.1rem}.radio-list .radio-item .radio-label[data-v-6384a164]{margin-left:.8rem;font-size:.9rem;line-height:1.25rem;color:#333}.tip[data-v-6384a164]{margin-bottom:.5rem;text-align:center;font-size:.7rem;line-height:1rem;color:#999}.arrow-bottom[data-v-6384a164]{display:inline-block;width:0;height:0;border-style:solid;border-width:4px 4px 0;border-color:#000 transparent transparent;vertical-align:middle}.realname-proof[data-v-6384a164]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#f2f2f2}.realname-proof .form[data-v-6384a164]{background-color:#fff;padding-left:.8rem}.realname-proof .form .form-cell[data-v-6384a164]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.8rem;padding-right:.8rem}.realname-proof .form .form-cell[data-v-6384a164]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px;border-color:#eee}.realname-proof .form .form-cell label[data-v-6384a164]{line-height:1.2rem;color:#333;font-size:.85rem}.realname-proof .form .form-cell .val[data-v-6384a164]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.8rem;text-align:right;color:#333}.realname-proof .form .form-cell .val input[data-v-6384a164]{width:100%;text-align:right;font-size:.85rem}.realname-proof .form .form-cell .val input[data-v-6384a164]::-webkit-input-placeholder{font-size:.85rem;color:#999}.realname-proof .form .form-cell .val input[data-v-6384a164]:-ms-input-placeholder{font-size:.85rem;color:#999}.realname-proof .form .form-cell .val input[data-v-6384a164]::placeholder{font-size:.85rem;color:#999}.realname-proof .form .form-cell .val span[data-v-6384a164]{font-size:.85rem;vertical-align:middle}.realname-proof .form .form-cell .val .arrow-bottom[data-v-6384a164]{margin-left:.45rem}.realname-proof .form-btn[data-v-6384a164]{margin-top:4rem}.realname-proof .form-btn .button[data-v-6384a164],.realname-proof .form-btn[data-v-6384a164]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.realname-proof .form-btn .button[data-v-6384a164]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:17.15rem;height:2.5rem;border-radius:.3rem;background-color:#177afa;color:#fff;text-align:center;font-size:.9rem}.realname-proof .bottom-meta[data-v-6384a164]{margin-bottom:1.2rem;text-align:center;font-size:.7rem;color:#666}.realname-proof .bottom-meta span[data-v-6384a164]{color:#1b7ffb}.popup-container.van-popup--center.van-popup--round[data-v-6384a164]{border-radius:.4rem}.popup-container .popup-inner[data-v-6384a164]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:16.75rem;background-color:#fff}.popup-container .popup-inner .popup-content[data-v-6384a164]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;max-height:8.98rem;overflow-y:auto}.popup-container .popup-inner .popup-bottom[data-v-6384a164]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.45rem}.popup-container .popup-inner .popup-bottom[data-v-6384a164]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px;border-color:#eee}.popup-container .popup-inner .popup-bottom span[data-v-6384a164]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.9rem}.popup-container .popup-inner .popup-bottom span[data-v-6384a164]:before{left:0;right:0;height:100%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);border-right-width:1px;border-color:#eee}.popup-container .popup-inner .popup-bottom span.cancel[data-v-6384a164]{color:#333}.popup-container .popup-inner .popup-bottom span.confirm[data-v-6384a164]{color:#177afa}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _popup.default.name, _popup.default), _dialog.default.name, _dialog.default), _toast.default.name, _toast.default),
  data: function data() {
    return {
      isRealName: 1,
      showPopup: false,
      realName: '',
      currentID: {
        value: 'SFZ',
        typeName: '身份证'
      },
      tempID: {
        value: 'SFZ',
        typeName: '身份证'
      },
      IDList: [{
        value: 'SFZ',
        typeName: '身份证'
      }],
      IDNumber: ''
    };
  },
  created: function created() {
    this.getCardTypeList();
    this.getUserRealName();
  },
  methods: {
    /**
     * 获取证件类型
     */
    getCardTypeList: function getCardTypeList() {
      var _this = this;
      this._Util.post(this._Api.CARD_TYEP_LIST, {}, function (data) {
        _this.IDList = data;
      }, function () {}, this);
    },
    /**
     * 获取实名信息
     */
    getUserRealName: function getUserRealName() {
      var _this2 = this;
      this._Util.post(this._Api.UESR_REAL_NAME, {}, function (data) {
        _this2.isRealName = data.isRealName;
        if (_this2.isRealName === 1) {
          _this2.realName = data.realName;
          _this2.IDNumber = data.cardId;
          _this2.IDList.forEach(function (ele) {
            if (data.cardType === ele.value) {
              _this2.currentID.typeName = ele.typeName;
            }
          });
        }
      }, function () {}, this);
    },
    /**
     * 选择证件类型
     * @param {Object} item 证件信息
     */
    selectIDType: function selectIDType(item) {
      this.tempID = item;
    },
    openPopup: function openPopup() {
      if (this.isRealName === 1) return;
      this.showPopup = true;
    },
    /**
     * 确认认证的身份号码类型
     */
    confirmID: function confirmID() {
      this.currentID = this.tempID;
      this.showPopup = false;
    },
    /**
     * 提交认证信息
     */
    attestInfo: function attestInfo() {
      var _this3 = this;
      var flag = true;
      var _userInfo = JSON.parse(localStorage.userInfo);
      this.realName = this.realName.replace(/\s+/g, '');
      var REAL_NAME = /^[\u4e00-\u9fa5A-Za-z]{2,10}$/;
      var SFZ_NUMBER = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
      var HZ_NUMBER = /^([a-zA-z]|[0-9]){5,17}$/;
      if (!REAL_NAME.test(this.realName)) {
        (0, _toast.default)('请输入正确的姓名，长度不能超过10个字');
        return;
      }
      switch (this.currentID.value) {
        case 'SFZ':
          flag = SFZ_NUMBER.test(this.IDNumber);
          break;
        case 'HZ':
          flag = HZ_NUMBER.text(this.IDNumber);
          break;
        default:
          break;
      }
      if (!flag) {
        (0, _toast.default)('请输入正确的证件号');
        return;
      }
      _dialog.default.confirm({
        message: '认证信息提交后不可修改，是否确认提交？',
        confirmButtonText: '确认提交'
      }).then(function () {
        _this3._Util.post(_this3._Api.SAVE_USER_REAL_NAME, {
          realName: _this3.realName,
          cardId: _this3.IDNumber,
          cardType: _this3.currentID.value
        }, function (data) {
          (0, _toast.default)(data.message);
          if (data.status === 1) {
            if (_this3._Util.isApp()) {
              api.sendEvent({
                name: 'acOpenNewFrm',
                extra: {
                  name: "communityPersonalInfo".concat(new Date().getTime()),
                  url: "".concat(location.origin, "/v2/community/personalInfo")
                }
              });
            } else {
              _this3.$store.state.userInfo.isRealName = 1;
              _userInfo.isRealName = 1;
              localStorage.setItem('userInfo', JSON.stringify(_userInfo));
              _this3.$router.push({
                name: 'communityPersonalInfo'
              });
            }
          }
        }, function () {}, _this3);
      }).catch(function () {
        console.log('取消');
      });
    },
    /**
     * 跳转用户协议说明
     * @param {Number} type 协议类型
     */
    toAgreement: function toAgreement(type) {
      var path = '';
      var name = '';
      if (type === 2) {
        name = 'deal';
        path = '/v2/deal';
      } else if (type === 1) {
        name = 'personInfoRight';
        path = '/v2/personInfoRight';
      }
      this.readrightFn(type);
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: name + type,
            url: location.origin + path
          }
        });
      } else {
        this.$router.push({
          path: path
        });
      }
    },
    /**
     * 阅读协议记录
    */
    readrightFn: function readrightFn(type) {
      var deviceId = '';
      if (this._Util.isApp()) {
        deviceId = api.deviceId;
      }
      var params = [];
      params = [{
        deviceId: deviceId,
        moudle: this.isRealName === 1 ? 2 : 1,
        // 1：阅读 2：同意
        type: type // 类型（1/个人信息保护政策；2/用户协议；3/论坛社区管理制度；4/免电话营销服务承诺）
      }];
      this._Util.post(this._Api.READING_PROTOCOL_RECORD, {
        readingProtocolRecordForms: params
      }, function (data) {}, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"realname-proof"},[_c('div',{staticClass:"content-area"},[_c('div',{staticClass:"form"},[_c('div',{staticClass:"form-cell hairline"},[_c('label',[_vm._v("真实姓名")]),_vm._v(" "),_c('div',{staticClass:"val"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.realName),expression:"realName"}],staticClass:"name",attrs:{"readonly":_vm.isRealName === 1,"placeholder":"请填写您的真实姓名","type":"text"},domProps:{"value":(_vm.realName)},on:{"input":function($event){if($event.target.composing){ return; }_vm.realName=$event.target.value}}})])]),_vm._v(" "),_c('div',{staticClass:"form-cell hairline"},[_c('label',[_vm._v("证件类型")]),_vm._v(" "),_c('div',{staticClass:"val",on:{"click":function($event){return _vm.openPopup()}}},[_c('span',[_vm._v(_vm._s(_vm.currentID.typeName))]),(_vm.isRealName === 0)?_c('i',{staticClass:"arrow-bottom"}):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"form-cell"},[_c('label',[_vm._v("证件号")]),_vm._v(" "),_c('div',{staticClass:"val"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.IDNumber),expression:"IDNumber"}],staticClass:"name",attrs:{"readonly":_vm.isRealName === 1,"placeholder":"请输入您的证件号","type":"text"},domProps:{"value":(_vm.IDNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.IDNumber=$event.target.value}}})])])]),_vm._v(" "),(_vm.isRealName === 0)?_c('div',{staticClass:"form-btn"},[_c('div',{staticClass:"button",on:{"click":function($event){return _vm.attestInfo()}}},[_vm._v("立即认证")])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"bottom-meta"},[_c('p',[_vm._v("实名认证 即表示您已同意")]),_vm._v(" "),_c('p',[_c('span',{on:{"click":function($event){return _vm.toAgreement(2)}}},[_vm._v("《用户协议》")]),_vm._v("及"),_c('span',{on:{"click":function($event){return _vm.toAgreement(1)}}},[_vm._v("《个人信息保护政策》")])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup-container",attrs:{"round":true,"close-on-click-overlay":false},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('div',{staticClass:"popup-inner"},[_c('div',{staticClass:"popup-content"},[_c('div',{staticClass:"radio-list"},_vm._l((_vm.IDList),function(item,index){return _c('div',{key:index,staticClass:"radio-item",on:{"click":function($event){return _vm.selectIDType(item)}}},[_c('span',{staticClass:"radio-icon",class:{'checked': _vm.currentID.value === item.value}}),_c('span',{staticClass:"radio-label"},[_vm._v(_vm._s(item.typeName))])])}),0),_vm._v(" "),_c('p',{staticClass:"tip"},[_vm._v("若需认证其他证件，请联系客服")])]),_vm._v(" "),_c('div',{staticClass:"popup-bottom hairline"},[_c('span',{staticClass:"cancel hairline",on:{"click":function($event){_vm.showPopup = false}}},[_vm._v("取消")]),_vm._v(" "),_c('span',{staticClass:"confirm",on:{"click":function($event){return _vm.confirmID()}}},[_vm._v("确认")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(697);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_26dd6f17_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1296);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_26dd6f17_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_26dd6f17_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_directionJump_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _Loading = _interopRequireDefault(__webpack_require__(174));
//
//
//
//
//
var _default = exports.default = {
  components: {
    Imgload: _Loading.default
  },
  data: function data() {
    return {
      showLoading: true,
      code: this.$route.query.id,
      data: this.$route.query.data
    };
  },
  created: function created() {
    this.getJumpUrlFn();
  },
  methods: {
    /**
     * 获取跳转连接的方法， 如果返回链接则跳转到指定链接，否则跳转到首页
    */
    getJumpUrlFn: function getJumpUrlFn() {
      var _this = this;
      this._Util.post(this._Api.POST_DIRECT_JUMP_LINK, {
        code: this.code,
        data: this.data
      }, function (data) {
        if (data) {
          _this.showLoading = false;
          if (data.status && data.pointUrl) {
            window.location.replace(data.pointUrl);
          } else {
            _this.$router.replace({
              name: 'fms'
            });
          }
        }
      }, function () {}, this, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"direct-jump"},[(_vm.showLoading)?_c('Imgload'):_vm._e()],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(698);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f3bed70_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1298);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3574)
  __webpack_require__(3576)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0f3bed70"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f3bed70_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f3bed70_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3575);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("500516e0", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".panel-light[data-v-0f3bed70]{background:#f4f5f6;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow-x:hidden}.panel-light .input-box[data-v-0f3bed70]{background:#fff;padding:.6rem;position:relative}.panel-light .input-box i[data-v-0f3bed70]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:1.15rem;left:1rem}.panel-light .input-box input[data-v-0f3bed70]{background:#f5f5f5;height:2rem;border-radius:4px;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;-webkit-transition:.3s;transition:.3s}.panel-light .input-box input.input-animate[data-v-0f3bed70]{width:-webkit-calc(100% - 4.2rem);width:calc(100% - 4.2rem)}.panel-light .input-box input[data-v-0f3bed70]::-webkit-input-placeholder{color:#999;font-size:15px}.panel-light .input-box button[data-v-0f3bed70]{margin-left:.6rem;width:3.6rem;height:2rem;line-height:2rem;color:#fff;background:#177afa;border-radius:4px;font:15px PingFangSC-Regular;position:absolute;top:.6rem;right:-300px;-webkit-transition:all .3s ease;transition:all .3s ease}.panel-light .input-box button.animate[data-v-0f3bed70]{right:.6rem}.panel-light .cont-box[data-v-0f3bed70]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;position:relative}.panel-light .cont-box .menu-wrapper[data-v-0f3bed70]{position:absolute;top:0;left:0;width:4.7rem;height:100%;background:#fff}.panel-light .cont-box .menu-wrapper ul li[data-v-0f3bed70]{min-height:2.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:.6rem;position:relative;border-bottom:1px solid #eee}.panel-light .cont-box .menu-wrapper ul li span[data-v-0f3bed70]{color:#999;font:14px/1rem PingFangSC-Regular}.panel-light .cont-box .menu-wrapper ul li i[data-v-0f3bed70]{position:absolute;left:0;top:50%;background:#0f75ff;width:.15rem;height:.7rem;margin-top:-.35rem}.panel-light .cont-box .menu-wrapper ul li.active span[data-v-0f3bed70]{color:#0f75ff;font:700 14px/1rem PingFangSC-Semibold}.panel-light .cont-box .cont-wrapper[data-v-0f3bed70]{position:absolute;top:0;right:0;width:-webkit-calc(100% - 4.7rem);width:calc(100% - 4.7rem);height:100%}.panel-light .cont-box .cont-wrapper>ul[data-v-0f3bed70]{padding:0 .6rem .6rem}.panel-light .cont-box .cont-wrapper>ul li[data-v-0f3bed70]{overflow:hidden}.panel-light .cont-box .cont-wrapper>ul li .icon[data-v-0f3bed70]{float:left;width:4rem;height:4rem;background:#fff;border-radius:.3rem;overflow:hidden;margin:.425rem .425rem 0 0;position:relative}.panel-light .cont-box .cont-wrapper>ul li .icon img[data-v-0f3bed70]{position:absloute;top:0;left:0;width:100%;height:100%}.panel-light .cont-box .cont-wrapper>ul li .icon[data-v-0f3bed70]:nth-of-type(3n){margin-right:0}.panel-light .pop-container[data-v-0f3bed70]{width:100%;height:82%;background-color:#fff;border-radius:.4rem .4rem 0 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.panel-light .pop-container .close-img[data-v-0f3bed70]{position:absolute;top:-2.4rem;right:.8rem;width:1.6rem;height:1.6rem}.panel-light .pop-container .foot-bar[data-v-0f3bed70]{border-top:1px solid #eee;height:2.2rem;width:100%;-ms-flex-align:center;color:#333;font:15px/1.05rem PingFangSC-Regular}.panel-light .pop-container .foot-bar .share[data-v-0f3bed70],.panel-light .pop-container .foot-bar[data-v-0f3bed70]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.panel-light .pop-container .foot-bar .share[data-v-0f3bed70]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.panel-light .pop-container .foot-bar .share img[data-v-0f3bed70]{width:1rem;height:1rem;margin-right:.3rem}.panel-light .pop-container .foot-bar .line[data-v-0f3bed70]{height:1rem;width:.05rem;background:#eee}.panel-light .shareMAsk[data-v-0f3bed70]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:3000;background:rgba(0,0,0,.5)}.panel-light .shareMAsk .shareTips[data-v-0f3bed70]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.panel-light .shareMAsk .shareTips>p[data-v-0f3bed70]:first-of-type{margin-top:.85rem}.panel-light .shareMAsk .shareTips>p[data-v-0f3bed70]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.feedback-btn[data-v-0f3bed70]{position:fixed;background-color:#0f75ff;right:.4rem;color:#fff;border-radius:50%;bottom:.4rem;padding:.4rem}.feedback-btn>div[data-v-0f3bed70]{font-size:12px}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3577);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("a9604e24", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-dialog{width:16.75rem}.van-dialog.panel-light-dialog{border-radius:.4rem}.van-dialog.panel-light-dialog .van-dialog__header{font-size:.9rem;color:#333;font-weight:600}.van-dialog.panel-light-dialog .van-dialog__message{font-size:.85rem;line-height:1.35rem;color:#666}.van-dialog.panel-light-dialog .van-button--default{height:2.65rem;color:#333}.van-dialog.panel-light-dialog .van-button--default .van-button__text{font-size:.9rem}.van-dialog.panel-light-dialog .van-dialog__confirm{color:#177afa}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _menuScroll = _interopRequireDefault(__webpack_require__(3578));
var _lightDetail = _interopRequireDefault(__webpack_require__(819));
var _throttleDebounce = __webpack_require__(21);
var _bf = _interopRequireDefault(__webpack_require__(295));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _dialog.default.name, _dialog.default), "Scroll", _menuScroll.default), "lightDetail", _lightDetail.default),
  filters: {},
  data: function data() {
    return {
      isFocus: false,
      keyWord: '',
      currentIndex: 0,
      // 当前激活侧边栏的索引
      tempIndex: 0,
      scrolly: -1,
      // 内容区域的滚动高度
      itemHeight: [],
      // 内容区域的高度集合
      showPop: false,
      // 是否显示详情弹窗
      shareItem: {},
      lightsList: [],
      // 所有的分类及仪表灯集合
      curMeterLamp: {},
      // 当前点击的仪表灯
      lightDetailColors: [],
      // 仪表灯信息集合（颜色）
      lightColorInfo: {},
      // 仪表等颜色的具体原因及解决方案
      timing: '',
      time: 0
    };
  },
  watch: {
    scrolly: function scrolly(newy) {
      if (newy >= 0) this.currentIndex = 0;
      var itemHeight = this.itemHeight;
      for (var i = 0; i < itemHeight.length - 1; i++) {
        var h1 = itemHeight[i];
        var h2 = itemHeight[i + 1];
        if (-newy >= h1 && -newy < h2) {
          this.menuScroll(i);
          if (this.tempIndex <= i) {
            this.currentIndex = i;
          } else {
            this.currentIndex = this.tempIndex;
          }
          return;
        }
      }
    },
    showPop: function showPop(val) {
      if (!val) {
        // 如果弹窗关闭了依然显示原分享内容
        this.$bus.$emit('closePop');
        var shareItem = {
          title: '卡修宝典故障灯',
          desc: '看不懂故障灯？来卡修宝典查查吧！',
          link: location.href,
          imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        };
        this.shareItem = shareItem;
        this.shareConfig();
      } else {
        var _shareItem = {
          title: this.curMeterLamp.meterLampName + '_卡修宝典故障灯',
          desc: '点击查看点亮原因和解决方案',
          link: location.origin + '/v2/panelLight/share?meterLampId=' + this.curMeterLamp.meterLampId,
          imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        };
        this.shareItem = _shareItem;
        this.shareConfig();
      }
    }
  },
  created: function created() {
    localStorage.setItem('isAdminPass', this._Util.getParaValueByName('isAdminPass'));
    localStorage.setItem('isAccessControl', this._Util.getParaValueByName('isAccessControl'));
    localStorage.setItem('isVip', this._Util.getParaValueByName('isVip'));
    localStorage.setItem('isSvip', this._Util.getParaValueByName('isSvip'));
    localStorage.setItem('isAccess', this._Util.getParaValueByName('isAccess'));
    var shareItem = {
      title: '卡修宝典故障灯',
      desc: '看不懂故障灯？来卡修宝典查查吧！',
      link: location.href,
      imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
    };
    this.shareItem = shareItem;
    this.shareConfig();
    this.getLightsData();
    this.itemHeight = [0];
    var userinfo = JSON.parse(localStorage.getItem('userInfo'));
    if (this._Util.isFromApp()) {
      var url = location.origin + '/repair/meterLamp/list?referee=' + userinfo.uphone;
      var src = encodeURIComponent(url);
      uni.postMessage({
        // eslint-disable-line
        data: {
          type: 'updataShareCont',
          title: '卡修宝典故障灯',
          imageUrl: 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/common/270031CCF86D8E643DE5C929DE01687A.png',
          link: '/pages/webView/webView?src=' + src
        }
      });
    }
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '故障灯',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '故障灯,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    goFeedback: function goFeedback() {
      uni.navigateTo({
        url: '/rightsCenter-subpackage/pages/feedback/feedback?type=1'
      });
    },
    /**
     * 获取所有的分类数据
    */
    getLightsData: function getLightsData() {
      var _this = this;
      this._Util.post(this._Api.PANEL_LIGHTS.GET_LIGHTS_DATA, {}, function (data) {
        if (data) {
          _this.lightsList = data;
          setTimeout(function () {
            _this.heightArr();
          }, 300);
        }
      }, function () {}, this);
    },
    /**
      * 输入框搜索事件
    */
    search: function search() {
      if (!this.keyWord.trim()) {
        (0, _mintUi.Toast)({
          message: '请输入搜索内容',
          duration: 2000
        });
        return;
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'panelLightIndex',
            url: location.origin + '/v2/panelLight/search?keyWord=' + this.keyWord.trim()
          }
        });
      } else {
        this.$router.push({
          name: 'panelLightSearch',
          query: {
            keyWord: this.keyWord.trim()
          }
        });
      }
    },
    /**
      * 输入框失去焦点
    */
    inputBlur: function inputBlur() {
      var _this2 = this;
      this.$nextTick(function () {
        _this2.isFocus = false;
      });
    },
    /**
      * 滑动组件传递的滚动事件监听
      * @param {Object} position better-scroll返回的滚动事件的对象
    */
    scroll: function scroll(position) {
      this.scrolly = position.y;
    },
    /**
      * 点击侧边栏，同时出发右边内容栏滚动
      * @param {Number} index 点击的侧边栏索引值
    */
    selectMenu: function selectMenu(index) {
      var _this3 = this;
      this.currentIndex = index;
      this.tempIndex = index;
      var foodsEle = this.$refs.contUl.getElementsByClassName('item')[index];
      this.$refs.contWrapper.scrollToElement(foodsEle, 300);
      setTimeout(function () {
        _this3.tempIndex = 0;
      }, 500);
    },
    /**
      * 获取内容栏每一块的高度
    */
    heightArr: function heightArr() {
      var _this4 = this;
      var h = 0;
      var list = this.$refs.lightItem;
      list.forEach(function (item, i) {
        h += list[i].clientHeight;
        _this4.itemHeight.push(h);
      });
    },
    /**
      * 内容栏滚动引起侧边栏滚动的方法
      * @param {Number} i 当前匹配到的索引值
    */
    menuScroll: (0, _throttleDebounce.debounce)(200, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(i) {
        var menuEle;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              console.log(i);
              menuEle = this.$refs.menuUl.getElementsByClassName('item')[i];
              this.$refs.menuWrapper.scrollToElement(menuEle, 200, false, true);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 查看故障灯详情
     * @param {Object} item 查看的具体那一项
     */
    toDetail: function toDetail(item) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var userinfo;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this5._Util.isFromApp()) {
                _context2.next = 2;
                break;
              }
              _context2.next = 1;
              return _this5._Util.getUserInfo(_this5);
            case 1:
              userinfo = _context2.sent;
            case 2:
              if (!(_this5.$route.query.isAdminPass == 0)) {
                _context2.next = 4;
                break;
              }
              if (!(_this5.$route.query.isAccessControl == 1)) {
                _context2.next = 4;
                break;
              }
              if (_this5._Util.isSVip(userinfo.userVipType)) {
                _context2.next = 4;
                break;
              }
              if (!(_this5.$route.query.isSvip == 1 && _this5.$route.query.isAccess != 1)) {
                _context2.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this5.clickFlag = true;
                } else {
                  _this5.clickFlag = true;
                }
              });
              return _context2.abrupt("return");
            case 3:
              if (_this5._Util.isVip(userinfo.userVipType)) {
                _context2.next = 4;
                break;
              }
              if (!(_this5.$route.query.isVip == 1 && _this5.$route.query.isAccess != 1)) {
                _context2.next = 4;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this5.clickFlag = true;
                } else {
                  _this5.clickFlag = true;
                }
              });
              return _context2.abrupt("return");
            case 4:
              // const result = await this._Util.judgePower({
              //   dataType: 'METER_LAMP', // 对资料进行权限判断
              //   params: {
              //     eventType: 'DETAILS_DATA'
              //   }
              // }, this)
              // console.log(result)
              _this5.curMeterLamp = item;
              console.log(item);
              _this5._Util.post(_this5._Api.PANEL_LIGHTS.LIGHT_COLOR_LIST, {
                parentId: item.id
              }, function (data) {
                if (data) {
                  _this5.lightDetailColors = data;
                  _this5.curMeterLamp.selectColor = _this5.lightDetailColors[0].value;
                  _this5.getMeterLampColorInfo(_this5.lightDetailColors[0]);
                }
              }, function () {}, _this5);
            case 5:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 根据指示灯颜色获取线管的原因及解决办法
     * @param {Object} colorObj 故障灯颜色相关数据
    */
    getMeterLampColorInfo: function getMeterLampColorInfo(colorObj) {
      var _this6 = this;
      this._Util.post(this._Api.PANEL_LIGHTS.GET_LIGHT_COLOR_INFO, {
        id: colorObj.id,
        parentId: colorObj.parentId
      }, function (data) {
        if (data) {
          _this6.lightColorInfo = data;
          _this6.lightColorInfo.reason = _this6.lightColorInfo.reason.replace(/post/g, function (match, capture) {
            return 'poster="' + _bf.default + '"';
          });
          _this6.lightColorInfo.solution = _this6.lightColorInfo.solution.replace(/post/g, function (match, capture) {
            return 'poster="' + _bf.default + '"';
          });
          _this6.showPop = true;
          _this6.$refs.lightDetail.chageColor(colorObj);
        }
      }, function () {}, this, true);
    },
    /**
     * 监控详情组件的点击颜色事件
     * @param {Object} data 故障灯颜色相关数据
    */
    selectLightColorFn: function selectLightColorFn(data) {
      console.log(data);
      this.curMeterLamp.selectColor = data.colorValue;
      this.getMeterLampColorInfo(data);
    },
    /**
     * 分享给好友
     */
    shareFriends: function shareFriends(type) {
      var that = this;
      if (that._Util.isApp()) {
        that.isRight(function () {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: that.curMeterLamp.meterLampName + '_卡修宝典故障灯',
                desc: '点击查看点亮原因和解决方法',
                link: location.origin + '/v2/panelLight/share?meterLampId=' + that.curMeterLamp.meterLampId,
                imgLink: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
              }
            }
          });
        });
      } else if (that._Util.isMPaaS()) {
        var params = {
          title: that.curMeterLamp.meterLampName + '_卡修宝典故障灯',
          desc: '点击查看点亮原因和解决方法',
          link: location.origin + '/v2/panelLight/share?meterLampId=' + that.curMeterLamp.meterLampId,
          imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        };
        if (type === 'timeline') {
          params.isWXTL = true;
        } else if (type === 'session') {
          params.isWX = true;
        }
        this._Util.mpassShare(params, function () {});
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: that.shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, that.shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, that.shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(699);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d90cc5f_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1297);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d90cc5f_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d90cc5f_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_menuScroll_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _betterScroll = _interopRequireDefault(__webpack_require__(65));
//
//
//
//
//
//
var _default = exports.default = {
  props: {
    probeType: {
      type: Number,
      default: 1 //* 1 滚动的时候会派发scroll事件，会截流。 * 2 滚动的时候实时派发scroll事件，不会截流。 * 3 除了实时派发scroll事件，在swipe的情况下仍然能实时派发scroll事件
    },
    click: {
      type: Boolean,
      default: true
    },
    scrollX: {
      type: Boolean,
      default: false
    },
    data: {
      type: Array,
      default: null
    },
    listenScroll: {
      type: Boolean,
      default: false
    }
  },
  mounted: function mounted() {
    var _this = this;
    this.$nextTick(function () {
      _this.initScroll();
    }, 20);
  },
  methods: {
    initScroll: function initScroll() {
      if (!this.$refs.wrapper) return;
      this.scroll = new _betterScroll.default(this.$refs.wrapper, {
        probeType: this.probeType,
        click: this.click,
        scrollX: this.scrollX,
        bounce: false
      });
      if (this.listenScroll) {
        var me = this;
        this.scroll.on('scroll', function (position) {
          me.$emit('scroll', position);
        });
      }
    },
    enable: function enable() {
      this.scroll && this.scroll.enable();
    },
    disable: function disable() {
      this.scroll && this.scroll.disable();
    },
    refresh: function refresh() {
      this.scroll && this.scroll.refresh();
    },
    scrollTo: function scrollTo() {
      this.scroll && this.scroll.scrollTo.apply(this.scroll, arguments);
    },
    scrollToElement: function scrollToElement() {
      this.scroll && this.scroll.scrollToElement.apply(this.scroll, arguments);
    }
  },
  watch: {
    data: function data() {
      var _this2 = this;
      setTimeout(function () {
        _this2.scroll.refresh();
      }, 20);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"wrapper"},[_vm._t("default")],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(258);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_43a916dd_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(865);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2047)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_43a916dd_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_43a916dd_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_lightDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2048);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("07016ae8", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".light-detail{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:reltive}.light-detail .symask-new{position:absolute;top:0;left:0;right:0;bottom:3.4rem;min-height:auto!important;z-index:999;opacity:.2;pointer-events:none}.light-detail .symask-new.inPop{bottom:2.2rem}.light-detail .share-tip{padding:.4rem .8rem 0 0;color:#666;font:12px/.8rem PingFangSC-Regular;text-align:right}.light-detail .head{border-radius:.4rem .4rem 0 0;padding:0 .8rem .8rem}.light-detail .head .info{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.light-detail .head .info .mask-box{width:4rem;height:4rem;margin-right:.6rem;position:relative;border-radius:.4rem}.light-detail .head .info .mask-box .ipa{position:absolute;width:.8rem;height:4rem;background:#fff;left:-.8rem;top:0;z-index:10}.light-detail .head .info .mask-box .ipa2{position:absolute;width:4rem;height:4rem;background:#fff;left:4rem;top:0;z-index:10}.light-detail .head .info .mask-box .mask{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.05}.light-detail .head .info .mask-box img{position:absolute;top:0;left:0;width:4rem;height:4rem;left:4rem}.light-detail .head .info span{position:relative;z-index:12;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-top:.4rem;color:#333;font:700 20px/1.4rem PingFangSC-Semibold}.light-detail .head .linght-box{margin-top:.8rem;position:relative}.light-detail .head .linght-box .tips{-webkit-animation:move 1s infinite alternate;animation:move 1s infinite alternate;position:absolute;top:3.6rem;left:4.5rem;width:7.05rem;height:2rem;border-radius:.3rem;background:#177afa;box-shadow:0 0 20px 0 rgba(23,122,250,.3);color:#fff;font:13px/2rem PingFangSC-Regular;text-align:center}.light-detail .head .linght-box .tips .arror{position:absolute;width:.65rem;height:.65rem;top:-.2rem;left:.6rem;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);background:#177afa}@-webkit-keyframes move{0%{-webkit-transform:translateY(0);transform:translateY(0)}to{-webkit-transform:translateY(.2rem);transform:translateY(.2rem)}}@keyframes move{0%{-webkit-transform:translateY(0);transform:translateY(0)}to{-webkit-transform:translateY(.2rem);transform:translateY(.2rem)}}.light-detail .head .linght-box p{color:#333;font:14px/1rem PingFangSC-Regular}.light-detail .head .linght-box .colors{margin-top:.6rem;overflow-x:auto;white-space:nowrap}.light-detail .head .linght-box .colors::-webkit-scrollbar{display:none}.light-detail .head .linght-box .colors .corlor-item{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-left:.8rem;height:1.6rem;background:#f5f5f5;border-radius:.3rem;padding:0 .6rem;color:#333;font:13px/1.6rem PingFangSC-Regular;position:relative}.light-detail .head .linght-box .colors .corlor-item:first-child{margin:0}.light-detail .head .linght-box .colors .corlor-item i{width:.4rem;height:.4rem;border-radius:50%;margin-right:.4rem}.light-detail .head .linght-box .colors .corlor-item.active{color:#fff}.light-detail .content-container{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.light-detail .content-container .cont-item .tit{height:1.5rem;background:#f4f5f6;padding:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.light-detail .content-container .cont-item .tit span{color:#999;font:14px/1rem PingFangSC-Regular}.light-detail .content-container .cont-item .tit div{padding-right:11px;color:#177afa;font:14px/1rem PingFangSC-Regular;background:url(" + escape(__webpack_require__(1374)) + ") 100% no-repeat;background-size:5px 8px}.light-detail .content-container .cont-item .ways{padding:.6rem .8rem;color:#333;font:16px/1.25rem PingFangSC-Regular}.light-detail .content-container .cont-item .ways img,.light-detail .content-container .cont-item .ways video{max-width:100%;max-height:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  props: {
    inPop: {
      type: Boolean,
      default: true
    },
    lightColorInfo: {
      // 故障灯的原因及解决方法
      type: Object,
      default: function _default() {
        return {};
      }
    },
    colors: {
      // 故障灯的颜色数组
      type: Array,
      default: function _default() {
        return [];
      }
    },
    curMeterLamp: {
      // 当前查看的故障灯数据
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      curInd: 0,
      curColorObj: {},
      // 当前点击的颜色对象
      isShowTips: true
    };
  },
  mounted: function mounted() {
    var _this = this;
    this.$bus.$on('closePop', function () {
      _this.curInd = 0;
    });
  },
  methods: {
    /**
     * 查看故障灯颜色相对应的数据
     * @param {Object} item 查看的具体那一项
     * @param {Number} index 当前点击的索引
     */
    selectColor: function selectColor(item, index) {
      this.curInd = index;
      (0, _jquery.default)('#richContent').scrollTop(0);
      this._Util.sensorsCollect('element_click', {
        $element_name: '选择故障灯颜色',
        $element_content: item.colorName,
        $element_class_name: 'corlor-item',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: '故障灯',
        moudle_type: '故障灯',
        correlation_id: item.meterLampId,
        operation_page: '故障灯'
      });
      this.$emit('selectLightColor', item);
    },
    /**
     * 接收第一次打开弹窗传递来的颜色对象
     * @param {Object} data 颜色对象
     */
    chageColor: function chageColor(data) {
      this.curColorObj = data;
      this.$nextTick(function () {
        (0, _jquery.default)('#richContent').scrollTop(0);
      });
    },
    /**
     * 错误反馈
     */
    feedback: function feedback() {
      var url = '';
      if (location.href.includes('wx.kaxiuyun.com')) {
        url = location.origin + '/v2/questionnaire/index?no=52e529e2&data=' + this.curMeterLamp.meterLampId + '-' + this.curColorObj.value;
      } else {
        url = location.origin + '/v2/questionnaire/index?no=ef2e7fed&data=' + this.curMeterLamp.meterLampId + '-' + this.curColorObj.value;
      }
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'panelLightIndex',
            url: url
          }
        });
      } else {
        location.href = url;
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"light-detail"},[_c('div',{staticClass:"symask-new",class:{'inPop': _vm.inPop}}),_vm._v(" "),(!_vm._Util.isApp())?_c('p',{staticClass:"share-tip"},[_vm._v("提示：点击右上角分享给好友↑")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"head"},[_c('div',{staticClass:"info"},[_c('div',{staticClass:"mask-box"},[_c('div',{staticClass:"mask",style:({'background': _vm.curColorObj.value === '#46484E' ? '#fff' : _vm.curColorObj.value})}),_vm._v(" "),_c('div',{staticClass:"ipa"}),_vm._v(" "),_c('div',{staticClass:"ipa2"}),_vm._v(" "),(_vm.inPop)?_c('img',{style:({'filter': 'drop-shadow(red 4rem 0)', '-webkit-filter': 'drop-shadow('+ _vm.curColorObj.value +' 4rem 0)', 'left': '-4rem' }),attrs:{"src":_vm.curMeterLamp.pic,"alt":"故障灯"}}):_vm._e(),_vm._v(" "),(!_vm.inPop)?_c('img',{style:({'filter': 'drop-shadow('+ _vm.curColorObj.value +' -4rem 0)', '-webkit-filter': 'drop-shadow('+ _vm.curColorObj.value +' -4rem 0)'}),attrs:{"src":_vm.curMeterLamp.pic,"alt":"故障灯"}}):_vm._e()]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.colors[_vm.curInd].colorName))])]),_vm._v(" "),_c('div',{staticClass:"linght-box"},[_c('p',[_vm._v("点击可切换指示灯颜色：")]),_vm._v(" "),(_vm.colors.length > 1 && _vm.isShowTips)?_c('div',{staticClass:"tips"},[_c('div',{staticClass:"arror"}),_vm._v("\n        点击切换指示灯颜色\n      ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"colors"},_vm._l((_vm.colors),function(item,index){return _c('div',{key:index,staticClass:"corlor-item",class:{'active': _vm.curInd === index},style:({'background': _vm.curInd === index ? _vm.curColorObj.value : ''}),on:{"click":function($event){return _vm.selectColor(item, index)}}},[_c('i',{style:({'background': _vm.curInd === index ? '#fff' : item.value})}),_vm._v("\n          "+_vm._s(item.color)+"\n        ")])}),0)])]),_vm._v(" "),_c('div',{staticClass:"content-container mescroll-touch",attrs:{"id":"richContent"}},[_c('div',{staticClass:"cont-item"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"ways",domProps:{"innerHTML":_vm._s(_vm.lightColorInfo.reason)}})]),_vm._v(" "),_c('div',{staticClass:"cont-item"},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"ways",domProps:{"innerHTML":_vm._s(_vm.lightColorInfo.solution)}})])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('span',[_vm._v("常见亮灯原因：")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tit"},[_c('span',[_vm._v("解决方案：")])])}]
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-light"},[_c('div',{staticClass:"input-box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyWord),expression:"keyWord",modifiers:{"trim":true}}],class:{'input-animate': _vm.isFocus || _vm.keyWord},attrs:{"type":"text","placeholder":"搜故障灯 搜点亮原因"},domProps:{"value":(_vm.keyWord)},on:{"focus":function($event){_vm.isFocus = true},"blur":[_vm.inputBlur,function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value.trim()}}}),_vm._v(" "),_c('button',{class:{'animate': _vm.isFocus || _vm.keyWord},on:{"click":function($event){return _vm.search($event)}}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{ref:"contBox",staticClass:"cont-box"},[_c('Scroll',{ref:"menuWrapper",staticClass:"menu-wrapper"},[_c('ul',{ref:"menuUl"},_vm._l((_vm.lightsList),function(item,index){return _c('li',{key:index,staticClass:"item",class:{ active: _vm.currentIndex === index},on:{"click":function($event){return _vm.selectMenu(index)}}},[_c('i',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentIndex === index),expression:"currentIndex === index"}]}),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.name))])])}),0)]),_vm._v(" "),_c('Scroll',{ref:"contWrapper",staticClass:"cont-wrapper",attrs:{"listen-scroll":true,"probe-type":3},on:{"scroll":_vm.scroll}},[_c('ul',{ref:"contUl"},_vm._l((_vm.lightsList),function(item,index){return _c('li',{key:index,ref:"lightItem",refInFor:true,staticClass:"item",attrs:{"data-index":index}},_vm._l((item.secondList),function(item2,index2){return _c('div',{key:index2,staticClass:"icon",on:{"click":function($event){return _vm.toDetail(item2)}}},[(item2.pic)?_c('img',{attrs:{"src":item2.pic,"alt":"故障灯"}}):_c('span',{staticClass:"title-name"},[_vm._v(_vm._s(item2.name))])])}),0)}),0)])],1),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container",attrs:{"position":"bottom"},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('img',{staticClass:"close-img",attrs:{"src":__webpack_require__(283),"alt":"关闭"},on:{"click":function($event){_vm.showPop = false}}}),_vm._v(" "),_c('light-detail',{ref:"lightDetail",attrs:{"colors":_vm.lightDetailColors,"light-color-info":_vm.lightColorInfo,"cur-meter-lamp":_vm.curMeterLamp},on:{"selectLightColor":_vm.selectLightColorFn}}),_vm._v(" "),(_vm._Util.isApp() || _vm._Util.isMPaaS())?_c('div',{staticClass:"foot-bar"},[_c('div',{staticClass:"share",on:{"click":function($event){return _vm.shareFriends('session')}}},[_c('img',{attrs:{"src":__webpack_require__(267),"alt":""}}),_vm._v("发给好友\n      ")]),_vm._v(" "),_c('div',{staticClass:"line"}),_vm._v(" "),_c('div',{staticClass:"share",on:{"click":function($event){return _vm.shareFriends('timeline')}}},[_c('img',{attrs:{"src":__webpack_require__(268),"alt":""}}),_vm._v("分享朋友圈\n      ")])]):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"feedback-btn",on:{"click":function($event){return _vm.goFeedback()}}},[_c('div',[_vm._v("未找到")]),_vm._v(" "),_c('div',[_vm._v("故障灯")])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(700);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_719be56b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1299);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3579)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-719be56b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_719be56b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_719be56b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3580);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("61e4d510", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".panel-light[data-v-719be56b]{background:#f4f5f6;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow-x:hidden}.panel-light .input-box[data-v-719be56b]{background:#fff;padding:.6rem;position:relative}.panel-light .input-box i[data-v-719be56b]{position:absolute;width:1rem;height:1rem;background:url(" + escape(__webpack_require__(119)) + ") no-repeat;background-size:100% 100%;top:1.15rem;left:1rem}.panel-light .input-box input[data-v-719be56b]{background:#f5f5f5;height:2rem;border-radius:4px;color:#333;font:15px PingFangSC-Regular;padding-left:1.6rem;-webkit-transition:.3s;transition:.3s}.panel-light .input-box input.input-animate[data-v-719be56b]{width:-webkit-calc(100% - 4.2rem);width:calc(100% - 4.2rem)}.panel-light .input-box input[data-v-719be56b]::-webkit-input-placeholder{color:#999;font-size:15px}.panel-light .input-box button[data-v-719be56b]{margin-left:.6rem;width:3.6rem;height:2rem;line-height:2rem;color:#fff;background:#177afa;border-radius:4px;font:15px PingFangSC-Regular;position:absolute;top:.6rem;right:-300px;-webkit-transition:all .3s ease;transition:all .3s ease}.panel-light .input-box button.animate[data-v-719be56b]{right:.6rem}.panel-light .cont-box[data-v-719be56b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.panel-light .cont-box .cont-wrapper[data-v-719be56b]{height:100%}.panel-light .cont-box .cont-wrapper>ul[data-v-719be56b]{padding:.2rem .6rem .6rem;overflow:hidden}.panel-light .cont-box .cont-wrapper>ul li[data-v-719be56b]{overflow:hidden;float:left;margin:.4rem .5rem 0 0}.panel-light .cont-box .cont-wrapper>ul li[data-v-719be56b]:nth-of-type(4n){margin-right:0}.panel-light .cont-box .cont-wrapper>ul li .icon[data-v-719be56b]{width:4rem;height:4rem;background:#fff;border-radius:.3rem;position:relative}.panel-light .cont-box .cont-wrapper>ul li .icon img[data-v-719be56b]{position:absloute;top:0;left:0;width:100%;height:100%}.panel-light .pop-container[data-v-719be56b]{width:100%;height:82%;background-color:#fff;border-radius:.4rem .4rem 0 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.panel-light .pop-container .close-img[data-v-719be56b]{position:absolute;top:-2.4rem;right:.8rem;width:1.6rem;height:1.6rem}.panel-light .pop-container .foot-bar[data-v-719be56b]{border-top:1px solid #eee;height:2.2rem;width:100%;-ms-flex-align:center;color:#333;font:15px/1.05rem PingFangSC-Regular}.panel-light .pop-container .foot-bar .share[data-v-719be56b],.panel-light .pop-container .foot-bar[data-v-719be56b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.panel-light .pop-container .foot-bar .share[data-v-719be56b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.panel-light .pop-container .foot-bar .share img[data-v-719be56b]{width:1rem;height:1rem;margin-right:.3rem}.panel-light .pop-container .foot-bar .line[data-v-719be56b]{height:1rem;width:.05rem;background:#eee}.panel-light .shareMAsk[data-v-719be56b]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:3000;background:rgba(0,0,0,.5)}.panel-light .shareMAsk .shareTips[data-v-719be56b]{width:9.5rem;height:3.825rem;background-image:url(" + escape(__webpack_require__(61)) + ");background-repeat:no-repeat;background-size:100%;position:absolute;top:.5rem;right:.5rem}.panel-light .shareMAsk .shareTips>p[data-v-719be56b]:first-of-type{margin-top:.85rem}.panel-light .shareMAsk .shareTips>p[data-v-719be56b]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _lightDetail = _interopRequireDefault(__webpack_require__(819));
var _throttleDebounce = __webpack_require__(21);
var _mintUi = __webpack_require__(7);
var _weixinJsSdk = _interopRequireDefault(__webpack_require__(13));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Indicator: _mintUi.Indicator,
    lightDetail: _lightDetail.default
  },
  filters: {},
  data: function data() {
    return {
      isFocus: false,
      keyWord: this.$route.query.keyWord,
      showShareBox: false,
      showPop: false,
      // 是否显示详情弹窗
      shareItem: {},
      lightsList: [],
      // 所有的分类及故障灯集合
      curMeterLamp: {},
      // 当前点击的故障灯
      lightDetailColors: [],
      // 故障灯信息集合（颜色）
      lightColorInfo: {},
      // 仪表等颜色的具体原因及解决方案
      timing: '',
      time: 0
    };
  },
  watch: {
    scrolly: function scrolly(newy) {
      if (newy >= 0) this.currentIndex = 0;
      var itemHeight = this.itemHeight;
      for (var i = 0; i < itemHeight.length - 1; i++) {
        var h1 = itemHeight[i];
        var h2 = itemHeight[i + 1];
        if (-newy >= h1 && -newy < h2) {
          this.menuScroll(i);
          if (this.tempIndex <= i) {
            this.currentIndex = i;
          } else {
            this.currentIndex = this.tempIndex;
          }
          return;
        }
      }
    },
    showPop: function showPop(val) {
      if (!val) {
        // 如果弹窗关闭了依然显示原分享内容
        this.$bus.$emit('closePop');
        var shareItem = {
          title: '卡修宝典故障灯',
          desc: '看不懂故障灯？来卡修宝典查查吧！',
          link: location.href,
          imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        };
        this.shareItem = shareItem;
        this.shareConfig();
      } else {
        var _shareItem = {
          title: this.curMeterLamp.meterLampName + '_卡修宝典故障灯',
          desc: '点击查看点亮原因和解决方案',
          link: location.origin + '/v2/panelLight/share?meterLampId=' + this.curMeterLamp.meterLampId,
          imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
        };
        this.shareItem = _shareItem;
        this.shareConfig();
      }
    }
  },
  created: function created() {
    var shareItem = {
      title: '卡修宝典故障灯',
      desc: '看不懂故障灯？来卡修宝典查查吧！',
      link: location.href,
      imgUrl: 'https://static4.kaxiuyun.com/kxy/app/logo.jpg'
    };
    this.shareItem = shareItem;
    this.shareConfig();
    this.addSensorsCollect();
    this.search();
    this.itemHeight = [0];
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '故障灯',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '故障灯,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
     * 进入页面的埋点
    */
    addSensorsCollect: function addSensorsCollect() {
      this._Util.sensorsCollect('search_keywords', {
        operation_page: '故障灯',
        keywords: this.keyWord,
        jump_url: location.href,
        search_type: '',
        search_mode: '',
        moudle_type: '故障灯'
      });
    },
    /**
      * 输入框搜索事件
    */
    search: function search() {
      var _this = this;
      if (!this.keyWord.trim()) {
        (0, _mintUi.Toast)({
          message: '请输入搜索内容',
          duration: 2000
        });
        return;
      }
      this._Util.post(this._Api.PANEL_LIGHTS.SEARCH_LIGHT, {
        name: this.keyWord
      }, function (data) {
        if (data) {
          _this.lightsList = data;
        } else {
          _this.lightsList = [];
        }
      }, function () {}, this);
    },
    /**
      * 输入框失去焦点
    */
    inputBlur: function inputBlur() {
      var _this2 = this;
      this.$nextTick(function () {
        _this2.isFocus = false;
      });
    },
    /**
      * 滑动组件传递的滚动事件监听
      * @param {Object} position better-scroll返回的滚动事件的对象
    */
    scroll: function scroll(position) {
      this.scrolly = position.y;
    },
    /**
      * 点击侧边栏，同时出发右边内容栏滚动
      * @param {Number} index 点击的侧边栏索引值
    */
    selectMenu: function selectMenu(index) {
      var height = 0;
      this.currentIndex = index;
      this.tempIndex = index;
      var foodsEle = this.$refs.contUl.getElementsByClassName('item')[index];
      this.$refs.contWrapper.scrollToElement(foodsEle, 300);
    },
    /**
      * 获取内容栏每一块的高度
    */
    heightArr: function heightArr() {
      var _this3 = this;
      var h = 0;
      var list = this.$refs.lightItem;
      list.forEach(function (item, i) {
        h += list[i].clientHeight;
        _this3.itemHeight.push(h);
      });
    },
    /**
      * 内容栏滚动引起侧边栏滚动的方法
      * @param {Number} i 当前匹配到的索引值
    */
    menuScroll: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/function () {
      var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(i) {
        var foodsEle;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              foodsEle = this.$refs.menuUl.getElementsByClassName('item')[i];
              this.$refs.menuWrapper.scrollToElement(foodsEle, 200, false, true);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }()),
    /**
     * 查看故障灯详情
     * @param {Object} item 查看的具体那一项
     */
    toDetail: function toDetail(item) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var userinfo;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this4._Util.isFromApp()) {
                _context2.next = 2;
                break;
              }
              _context2.next = 1;
              return _this4._Util.getUserInfo(_this4);
            case 1:
              userinfo = _context2.sent;
            case 2:
              if (!(_this4.$route.query.isAdminPass == 0)) {
                _context2.next = 4;
                break;
              }
              if (!(_this4.$route.query.isAccessControl == 1)) {
                _context2.next = 4;
                break;
              }
              if (_this4._Util.isSVip(userinfo.userVipType)) {
                _context2.next = 4;
                break;
              }
              if (!(_this4.$route.query.isSvip == 1 && _this4.$route.query.isAccess != 1)) {
                _context2.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this4.clickFlag = true;
                } else {
                  _this4.clickFlag = true;
                }
              });
              return _context2.abrupt("return");
            case 3:
              if (_this4._Util.isVip(userinfo.userVipType)) {
                _context2.next = 4;
                break;
              }
              if (!(_this4.$route.query.isVip == 1 && _this4.$route.query.isAccess != 1)) {
                _context2.next = 4;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this4.clickFlag = true;
                } else {
                  _this4.clickFlag = true;
                }
              });
              return _context2.abrupt("return");
            case 4:
              // this._Util.sensorsCollect('element_click', {
              //   $element_name: '查看故障灯',
              //   $element_content: item.meterLampName,
              //   $element_class_name: 'icon',
              //   $element_type: 'div',
              //   $element_target_url: '',
              //   $url: window.location.href,
              //   $title: '故障灯-搜索结果',
              //   moudle_type: '故障灯',
              //   correlation_id: item.meterLampId,
              //   operation_page: '故障灯-搜索结果'
              // })
              // const result = await this._Util.judgePower({
              //   dataType: 'METER_LAMP', // 对资料进行权限判断
              //   params: {
              //     eventType: 'DETAILS_DATA'
              //   }
              // }, this)
              // console.log(result)
              _this4.curMeterLamp = item;
              _this4._Util.post(_this4._Api.PANEL_LIGHTS.LIGHT_COLOR_LIST, {
                parentId: item.id
              }, function (data) {
                if (data) {
                  _this4.lightDetailColors = data;
                  _this4.curMeterLamp.selectColor = _this4.lightDetailColors[0].value;
                  _this4.getMeterLampColorInfo(_this4.lightDetailColors[0]);
                }
              }, function () {}, _this4);
            case 5:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 根据指示灯颜色获取线管的原因及解决办法
     * @param {Object} colorObj 故障灯颜色相关数据
    */
    getMeterLampColorInfo: function getMeterLampColorInfo(colorObj) {
      var _this5 = this;
      this._Util.post(this._Api.PANEL_LIGHTS.GET_LIGHT_COLOR_INFO, {
        id: colorObj.id,
        parentId: colorObj.parentId
      }, function (data) {
        if (data) {
          _this5.lightColorInfo = data;
          _this5.showPop = true;
          _this5.$refs.lightDetail.chageColor(colorObj);
        }
      }, function () {}, this);
    },
    /**
     * 监控详情组件的点击颜色事件
     * @param {Object} data 故障灯颜色相关数据
    */
    selectLightColorFn: function selectLightColorFn(data) {
      this.curMeterLamp.selectColor = data.colorValue;
      this.getMeterLampColorInfo(data);
    },
    /**
     * 分享给好友
     */
    shareFriends: function shareFriends(type) {
      var that = this;
      this._Util.sensorsCollect('element_click', {
        $element_name: type === 'session' ? '分享好友' : '分享朋友圈',
        $element_content: type === 'session' ? '分享好友' : '分享朋友圈',
        $element_class_name: 'share',
        $element_type: 'div',
        $element_target_url: '',
        $url: window.location.href,
        $title: '故障灯',
        moudle_type: '故障灯',
        correlation_id: this.curMeterLamp.meterLampId + '&' + this.curMeterLamp.selectColor,
        operation_page: '故障灯'
      });
      if (that._Util.isApp()) {
        that.isRight(function () {
          api.sendEvent({
            name: 'webShare',
            extra: {
              shareItem: {
                type: type,
                title: that.curMeterLamp.meterLampName + '_卡修宝典故障灯',
                desc: '点击查看点亮原因和解决方法',
                link: location.origin + '/v2/panelLight/share?meterLampId=' + that.curMeterLamp.meterLampId,
                imgLink: that.curMeterLamp.originalPicUrl
              }
            }
          });
        });
      } else {
        that.showShareBox = true;
        that.shareItem = {
          title: that.curMeterLamp.meterLampName + '_卡修宝典故障灯',
          desc: '点击查看点亮原因和解决方法',
          link: location.origin + '/v2/panelLight/share?meterLampId=' + that.curMeterLamp.meterLampId,
          imgUrl: that.curMeterLamp.originalPicUrl
        };
        this.shareConfig();
      }
    },
    /**
     * 分享配置
     */
    shareConfig: function shareConfig() {
      var that = this;
      that._Util.post(that._Api.POST_COMMON_WXSDK_CONFIG, {
        url: that._Util.isIOS ? that.$store.state.firstUrl : location.href
      }, function (data) {
        if (that._Util.isApp()) {
          api.sendEvent({
            name: 'shareToAcFlag',
            extra: {
              needShare: true
            }
          });
          api.addEventListener({
            name: 'shareToWeb'
          }, function (ret, err) {
            api.sendEvent({
              name: 'shareToAc',
              extra: {
                shareItem: that.shareItem
              }
            });
          });
          api.addEventListener({
            name: 'shareToWebCallback'
          }, function (ret, err) {});
        } else if (that._Util.isMPaaS()) {
          document.addEventListener('optionMenu', function (e) {
            var params = _objectSpread({}, that.shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
          document.addEventListener('gzOptionMenu', function (e) {
            var params = _objectSpread({}, that.shareItem);
            that._Util.mpassShare(params, function () {});
          }, false);
        } else {
          _weixinJsSdk.default.config({
            debug: false,
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
          });
          _weixinJsSdk.default.ready(function () {
            var shareContent = _objectSpread(_objectSpread({}, that.shareItem), {}, {
              success: function success() {},
              cancel: function cancel() {}
            });
            _weixinJsSdk.default.onMenuShareTimeline(shareContent);
            _weixinJsSdk.default.onMenuShareAppMessage(shareContent);
            _weixinJsSdk.default.onMenuShareQQ(shareContent);
            _weixinJsSdk.default.onMenuShareWeibo(shareContent);
          });
        }
      }, function () {}, that, true);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-light"},[_c('div',{staticClass:"input-box"},[_c('i'),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.keyWord),expression:"keyWord",modifiers:{"trim":true}}],class:{'input-animate': _vm.isFocus || _vm.keyWord},attrs:{"type":"text","placeholder":"搜故障灯 搜点亮原因"},domProps:{"value":(_vm.keyWord)},on:{"focus":function($event){_vm.isFocus = true},"blur":[_vm.inputBlur,function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.keyWord=$event.target.value.trim()}}}),_vm._v(" "),_c('button',{class:{'animate': _vm.isFocus || _vm.keyWord},on:{"click":function($event){return _vm.search($event)}}},[_vm._v("搜索")])]),_vm._v(" "),_c('div',{staticClass:"cont-box"},[_c('div',{staticClass:"cont-wrapper"},[_c('ul',{ref:"contUl"},_vm._l((_vm.lightsList),function(item,index){return _c('li',{key:index,ref:"lightItem",refInFor:true,staticClass:"item",attrs:{"data-index":index}},[_c('div',{staticClass:"icon",on:{"click":function($event){return _vm.toDetail(item)}}},[(item.pic)?_c('img',{attrs:{"src":item.pic,"alt":"故障灯"}}):_c('span',{staticClass:"title-name"},[_vm._v(_vm._s(item.name))])])])}),0),_vm._v(" "),(_vm.lightsList.length==0)?_c('div',{staticStyle:{"text-align":"center","margin-top":"3rem"}},[_vm._v("暂无故障灯信息")]):_vm._e()])]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container",attrs:{"closeOnClickModal":false,"position":"bottom"},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('img',{staticClass:"close-img",attrs:{"src":__webpack_require__(283),"alt":"关闭"},on:{"click":function($event){_vm.showPop = false}}}),_vm._v(" "),_c('light-detail',{ref:"lightDetail",attrs:{"colors":_vm.lightDetailColors,"light-color-info":_vm.lightColorInfo,"cur-meter-lamp":_vm.curMeterLamp},on:{"selectLightColor":_vm.selectLightColorFn}}),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('div',{staticClass:"share",on:{"click":function($event){return _vm.shareFriends('session')}}},[_c('img',{attrs:{"src":__webpack_require__(267),"alt":""}}),_vm._v("发给好友\n      ")]),_vm._v(" "),_c('div',{staticClass:"line"}),_vm._v(" "),_c('div',{staticClass:"share",on:{"click":function($event){return _vm.shareFriends('timeline')}}},[_c('img',{attrs:{"src":__webpack_require__(268),"alt":""}}),_vm._v("分享朋友圈\n      ")])])],1),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false}}},[_vm._m(0)]):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shareTips"},[_c('p',[_vm._v("点击右上角")]),_vm._v(" "),_c('p',[_vm._v("分享给微信好友、朋友圈")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(701);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38d3fb9a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1300);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3581)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-38d3fb9a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38d3fb9a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38d3fb9a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shareDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3582);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("64ee1335", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".panel-light-share[data-v-38d3fb9a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.panel-light-share .to-index[data-v-38d3fb9a]{border-top:1px solid #eee;padding:.3rem .8rem}.panel-light-share .to-index .box[data-v-38d3fb9a]{padding:.5rem 0;background:#177afa;border-radius:.3rem;text-align:center}.panel-light-share .to-index .box p[data-v-38d3fb9a]{color:#fff;font:18px/.9rem PingFangSC-Regular}.panel-light-share .to-index .box span[data-v-38d3fb9a]{margin-top:.3rem;color:#fff;font:12px/.6rem PingFangSC-Regular}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _lightDetail = _interopRequireDefault(__webpack_require__(819));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    lightDetail: _lightDetail.default
  },
  data: function data() {
    return {
      meterLampId: this.$route.query.meterLampId,
      lightDetail: {},
      lightDetailColors: [],
      lightColorInfo: {},
      curMeterLamp: {}
    };
  },
  created: function created() {
    this.getDetail();
    this.getColorsFn();
    this.addSensorsCollect();
  },
  mounted: function mounted() {},
  methods: {
    /**
     * 进入页面的埋点
    */
    addSensorsCollect: function addSensorsCollect() {
      this._Util.sensorsCollect('enter_panellight_detail', {
        operation_page: '仪表灯大全'
      });
    },
    /** 
     * 查看仪表灯详情
     * @param {Object} item 查看的具体那一项
     */
    getDetail: function getDetail() {
      var _this = this;
      this._Util.post(this._Api.PANEL_LIGHTS.GET_SHARE_DETAIL, {
        meterLampId: this.meterLampId
      }, function (data) {
        if (data) {
          _this.lightDetail = data;
          _this.curMeterLamp = data;
          _this.getMeterLampColorInfo(_this.lightDetailColors[0]);
        }
      }, function () {}, this);
    },
    /** 
     * 获取仪表等颜色相关数据
     * @param {Object} item 查看的具体那一项
     */
    getColorsFn: function getColorsFn(item) {
      var _this2 = this;
      this._Util.post(this._Api.PANEL_LIGHTS.LIGHT_COLOR_LIST, {
        meterLampId: this.meterLampId
      }, function (data) {
        if (data) {
          _this2.lightDetailColors = data;
          _this2.curMeterLamp.selectColor = _this2.lightDetailColors[0].colorValue;
          _this2.getMeterLampColorInfo(_this2.lightDetailColors[0]);
        }
      }, function () {}, this);
    },
    /**
     * 根据指示灯颜色获取线管的原因及解决办法
     * @param {Object} colorObj 仪表灯颜色相关数据
    */
    getMeterLampColorInfo: function getMeterLampColorInfo(colorObj) {
      var _this3 = this;
      this._Util.post(this._Api.PANEL_LIGHTS.GET_LIGHT_COLOR_INFO, {
        colorId: colorObj.colorId,
        meterLampId: colorObj.meterLampId
      }, function (data) {
        if (data) {
          _this3.lightColorInfo = data;
          _this3.$refs.lightDetail.chageColor(colorObj);
        }
      }, function () {}, this);
    },
    /**
     * 进入仪表灯首页
    */
    toLightIndex: function toLightIndex() {
      this._Util.sensorsCollect('element_click', {
        $element_name: '查看更多仪表灯',
        $element_content: '查看更多仪表灯',
        $element_class_name: 'to-index',
        $element_type: 'div',
        $element_target_url: location.origin + 'v2/meterLamp/list',
        $url: window.location.href,
        $title: '仪表灯大全',
        moudle_type: '仪表灯大全',
        correlation_id: this.curMeterLamp.meterLampId + '&' + this.curMeterLamp.selectColor,
        operation_page: '仪表灯大全'
      });
      if (this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            name: 'meterLampList',
            url: location.origin + 'v2/meterLamp/list'
          }
        });
      } else {
        this.$router.push({
          name: 'meterLampList'
        });
      }
    },
    /**
     * 监控详情组件的点击颜色事件
     * @param {Object} data 仪表灯颜色相关数据
    */
    selectLightColorFn: function selectLightColorFn(data) {
      this.curMeterLamp.selectColor = data.colorValue;
      this.getMeterLampColorInfo(data);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"panel-light-share"},[_c('light-detail',{ref:"lightDetail",attrs:{"colors":_vm.lightDetailColors,"light-color-info":_vm.lightColorInfo,"cur-meter-lamp":_vm.lightDetail,"in-pop":false},on:{"selectLightColor":_vm.selectLightColorFn}}),_vm._v(" "),_c('div',{staticClass:"to-index",on:{"click":_vm.toLightIndex}},[_vm._m(0)])],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"box"},[_c('p',[_vm._v("查看更多仪表灯")]),_vm._v(" "),_c('span',[_vm._v("已覆盖400多种仪表灯")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(702);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_61adced1_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1301);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3583)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_61adced1_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_61adced1_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_userAgreementZDNS_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3584);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6581cf88", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".agreement .content{padding:.6rem .6rem 4rem;min-height:100%}.agreement .content p{margin-top:.2rem}.agreement .content span{color:#177afa}.agreement .content h1{font-size:.9rem;font-weight:700;text-align:center}.agreement .content h2{margin-top:.5rem;font-size:.7rem;font-weight:700}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _userAgreementZDNS = __webpack_require__(3585);
//
//
//
//
//
//
var _default = exports.default = {
  name: 'UserAgreementZDNS',
  data: function data() {
    return {
      content: _userAgreementZDNS.userAgreement
    };
  },
  mounted: function mounted() {
    var _this = this;
    /**
     * 卡修宝典用户协议
     * @param {String} path 跳转路由
     */
    window.toGGZJUserAgreement = function (path) {
      var _path = path || '/v2/deal';
      if (_this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            url: location.origin + _path
          }
        });
      } else {
        _this.$router.push({
          path: _path
        });
      }
    };

    /**
     * 诊断能手个人信息保护政策
     * @param {String} path 跳转路由
     */
    window.toInformationProtection = function (path) {
      var _path = path || '/v2/informationProtectionZDNS';
      if (_this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            url: location.origin + _path
          }
        });
      } else {
        _this.$router.push({
          path: _path
        });
      }
    };
  }
};

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.userAgreement = void 0;
var userAgreement = exports.userAgreement = '';/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"agreement"},[_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(703);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38889b56_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1302);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3586)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38889b56_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_38889b56_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_informationProtectionZDNS_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3587);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("db185570", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".agreement .content{padding:.6rem .6rem 4rem;min-height:100%}.agreement .content p{margin-top:.2rem}.agreement .content span{color:#177afa}.agreement .content h1{font-size:.9rem;font-weight:700;text-align:center;color:#333}.agreement .content h2{margin-top:.5rem;font-size:.7rem;font-weight:700;color:#333}.agreement .content h3{margin-top:.2rem;font-weight:700;color:#333}.agreement .content b{color:#333}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _informationProtectionZDNS = __webpack_require__(3588);
//
//
//
//
//
//
var _default = exports.default = {
  name: 'InformationProtection',
  data: function data() {
    return {
      content: _informationProtectionZDNS.informationProtection
    };
  },
  mounted: function mounted() {
    var _this = this;
    /**
     * 诊断能手用户协议
     */
    window.toZDNSUserAgreement = function (path) {
      var _path = path || '/v2/userAgreementZDNS';
      if (_this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            url: location.origin + _path
          }
        });
      } else {
        _this.$router.push({
          path: _path
        });
      }
    };

    /**
     * 卡修宝典个人信息保护政策
     * @param {String} path 跳转路由
     */
    window.toPersonInfoRight = function (path) {
      var _path = path || '/v2/personInfoRight';
      if (_this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            url: location.origin + _path
          }
        });
      } else {
        _this.$router.push({
          path: _path
        });
      }
    };
  }
};

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.informationProtection = void 0;
var informationProtection = exports.informationProtection = '';/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"agreement"},[_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(704);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a7d753d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1303);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3589)
  __webpack_require__(3591)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-a7d753d6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a7d753d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_a7d753d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_IQAReverseDirection_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3590);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0e8c8512", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".iqa-reverse-direction-page .van-cell{padding:0}.iqa-reverse-direction-page .van-cell input{font-size:.8rem;font-family:PingFangSC-Regular,PingFang SC}.iqa-reverse-direction-page .van-cell input::-webkit-input-placeholder{font-size:.8rem;color:#999}.iqa-reverse-direction-page .van-cell input:-ms-input-placeholder{font-size:.8rem;color:#999}.iqa-reverse-direction-page .van-cell input::placeholder{font-size:.8rem;color:#999}.iqa-reverse-direction-page .van-overlay{background-color:hsla(0,0%,100%,.8)}.iqa-reverse-direction-page .iqa-loading{top:40%;width:auto}.iqa-reverse-direction-page .iqa-loading .van-toast__text{font-family:PingFangSC-Regular,PingFang SC}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3592);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("53508d2e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-a7d753d6]{font-family:PingFangSC-Regular,PingFang SC}[class*=hairline][data-v-a7d753d6]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.iqa-reverse-direction-page[data-v-a7d753d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:#f4f5f6}.iqa-reverse-direction-page .iqa-radio[data-v-a7d753d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.iqa-reverse-direction-page .iqa-radio .radio-icon[data-v-a7d753d6]{position:relative;display:inline-block;width:.7rem;height:.7rem;margin-right:.35rem;border-radius:100%;border:1px solid #9c9fa5;overflow:hidden}.iqa-reverse-direction-page .iqa-radio .radio-label[data-v-a7d753d6]{font-size:.8rem;color:#999}.iqa-reverse-direction-page .iqa-radio.checked .radio-icon[data-v-a7d753d6]{border-color:#177afa}.iqa-reverse-direction-page .iqa-radio.checked .radio-icon[data-v-a7d753d6]:before{display:block;content:\"\";position:absolute;top:50%;left:50%;width:.35rem;height:.35rem;background-color:#177afa;border-radius:100%;overflow:hidden;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.iqa-reverse-direction-page .iqa-radio.checked .radio-label[data-v-a7d753d6]{color:#177afa}.iqa-reverse-direction-page .iqa-content[data-v-a7d753d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow-y:auto}.iqa-reverse-direction-page .iqa-top[data-v-a7d753d6]{background-color:#fff}.iqa-reverse-direction-page .iqa-top .cell[data-v-a7d753d6]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.7rem;padding:0 .8rem}.iqa-reverse-direction-page .iqa-top .cell[data-v-a7d753d6]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.iqa-reverse-direction-page .iqa-top .cell .name[data-v-a7d753d6]{width:5rem;font-size:.8rem;color:#333}.iqa-reverse-direction-page .iqa-top .cell .value[data-v-a7d753d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.iqa-reverse-direction-page .iqa-top .cell .value .iqa-radio[data-v-a7d753d6]{margin-left:1.55rem}.iqa-reverse-direction-page .iqa-top .cell .value .text[data-v-a7d753d6]{font-size:.8rem;color:#333}.iqa-reverse-direction-page .iqa-middle[data-v-a7d753d6]{margin-top:.4rem;padding-bottom:2.4rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#fff}.iqa-reverse-direction-page .iqa-parameter[data-v-a7d753d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:0 .8rem;margin-top:-.6rem;background-color:#fff;overflow:hidden}.iqa-reverse-direction-page .iqa-parameter[data-v-a7d753d6]:first-child{margin-top:0}.iqa-reverse-direction-page .iqa-parameter .parameter-top[data-v-a7d753d6]{margin:1.2rem 0 .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.iqa-reverse-direction-page .iqa-parameter .parameter-top .title[data-v-a7d753d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1.25rem;color:#333;font-size:.9rem;font-weight:600}.iqa-reverse-direction-page .iqa-parameter .parameter-top .tip[data-v-a7d753d6]{margin-top:.3rem;font-size:.6rem;color:#999;line-height:.83rem}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item[data-v-a7d753d6]{margin:.6rem 0}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item .item-inner[data-v-a7d753d6]{padding:.62rem .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border:.03rem solid #e6e6e6;border-radius:.3rem}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item .item-inner .item-top[data-v-a7d753d6]{height:1.1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;line-height:1.1rem;color:#333;font-size:.8rem}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item .item-inner .item-top .name[data-v-a7d753d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;white-space:nowrap}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item .item-inner .item-top .value[data-v-a7d753d6]{width:7rem;font-size:.8rem}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item .item-inner .item-bottom[data-v-a7d753d6]{height:.8rem;margin-top:.2rem;line-height:.8rem;font-size:0}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item .item-inner .item-bottom span[data-v-a7d753d6]{margin-right:.6rem;font-size:.6rem;color:#999}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item.error .item-inner[data-v-a7d753d6]{border-color:#ff3f3f}.iqa-reverse-direction-page .iqa-parameter .parameter-list .item .error-text[data-v-a7d753d6]{margin-top:.1rem;margin-left:.6rem;line-height:.8rem;font-size:.6rem;color:#ff3f3f}.iqa-reverse-direction-page .iqa-coding[data-v-a7d753d6]{padding:0 .8rem;background-color:#fff;overflow:hidden}.iqa-reverse-direction-page .iqa-coding .coding-content[data-v-a7d753d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:4.6rem;margin-bottom:.85rem;background-color:#f4f5f6;border-radius:.3rem;overflow:hidden}.iqa-reverse-direction-page .iqa-coding .coding-content .coding-name[data-v-a7d753d6]{font-size:.7rem;line-height:1rem;color:#999}.iqa-reverse-direction-page .iqa-coding .coding-content .coding-text[data-v-a7d753d6]{margin-top:.2rem;font-size:1rem;line-height:1.4rem;color:#333;font-weight:600}.iqa-reverse-direction-page .iqa-bottom[data-v-a7d753d6]{position:relative;height:2.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem;background-color:#fff}.iqa-reverse-direction-page .iqa-bottom[data-v-a7d753d6]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-top-width:1px}.iqa-reverse-direction-page .iqa-bottom .iqa-btn[data-v-a7d753d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;margin-right:.6rem;border-radius:.3rem;overflow:hidden;font-size:.8rem;color:#333}.iqa-reverse-direction-page .iqa-bottom .iqa-btn[data-v-a7d753d6]:last-child{margin-right:0}.iqa-reverse-direction-page .iqa-bottom .iqa-btn.btn-1[data-v-a7d753d6]{width:5.4rem;border:1px solid #ccc}.iqa-reverse-direction-page .iqa-bottom .iqa-btn.btn-2[data-v-a7d753d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#177afa;color:#fff}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
var _vant = __webpack_require__(12);
var _throttleDebounce = __webpack_require__(21);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _field.default.name, _field.default), _toast.default.name, _toast.default),
  data: function data() {
    return {
      pattern: 0,
      // 当前输入格式
      injectorModel: '',
      // 喷油嘴型号
      IQACoding: '',
      // IQA码
      showIQA: true,
      patterns: [{
        name: '偏差值',
        type: 0
      }, {
        name: '实际测量值',
        type: 1
      }],
      // 输入格式
      standardParameter: [{
        testNode: '全负荷点FL',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '高压预喷点PI2',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '排放点EM',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '低压预喷点PI',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '低怠速点LI',
        value: '',
        error: false,
        errorText: ''
      }],
      // 标准工作值
      calibrateStandardParameter: [{
        testNode: '全负荷点FL',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '高压预喷点PI2',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '排放点EM',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '低压预喷点PI',
        value: '',
        error: false,
        errorText: ''
      }, {
        testNode: '低怠速点LI',
        value: '',
        error: false,
        errorText: ''
      }] // 校准后的标准工作值
    };
  },
  watch: {
    'injectorModel': function injectorModel(val) {
      this.resetParams(false);
    }
  },
  methods: {
    /**
     * 选择输入格式
     */
    radioCheck: function radioCheck(p) {
      if (this.pattern === p.type) return;
      this.pattern = p.type;
      this.showIQA = p.type === 0;
      this.resetParams(true);
      this._Util.sensorsCollect('element_click', {
        operation_page: document.title,
        element_target_url: '',
        moudle_type: '资料服务',
        title: document.title,
        url: window.location.href,
        element_name: p.name,
        element_content: p.name
      });
    },
    /**
     * 重置参数值
     * @param {Boolean} initModel 是否初始化喷油嘴型号
     */
    resetParams: function resetParams(initModel) {
      this.standardParameter.forEach(function (item) {
        item.value = '';
        item.gy = '';
        item.jdsj = '';
        item.isShow = false;
        item.error = false;
      });
      this.calibrateStandardParameter.forEach(function (item) {
        item.value = '';
        item.error = false;
      });
      this.IQACoding = '';
      if (initModel) {
        this.injectorModel = '';
      }
    },
    /**
     * 根据喷油嘴型号获取工作标准值
     */
    onBlur: function onBlur() {
      var _this = this;
      if (this.injectorModel === '') return;
      this.showIQA = true;
      this._Util.post(this._Api.IQA_QUERY_LIST, {
        id: this.injectorModel
      }, function (data) {
        _this.standardParameter.forEach(function (v) {
          v.value = '';
          v.gy = null;
          v.jdsj = null;
        });
        if (!data || data.length === 0) return;
        (0, _toast.default)('已为您自动填充平台数据');
        _this.standardParameter.forEach(function (v) {
          data.forEach(function (sv) {
            if (v.testNode === sv.testNode) {
              v.value = sv.ybz;
              v.gy = sv.gy || '-';
              v.jdsj = sv.jdsj || '-';
              if (sv.ybz.indexOf('<') !== -1) {
                v.error = true;
                v.errorText = '请输入准确数值';
              }
            }
          });
        });
      }, function () {}, this, false);
    },
    /**
     * 生成IQA码
     * 1. 输入偏差值
     * 2. 输入喷油嘴型号获得标准值或者输入标准值和实际测量值
     */
    generateIQA: (0, _throttleDebounce.debounce)(300, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var _this2 = this;
      var offsetList, testList, verify_o, verify_t, params;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            this.IQACoding = '';
            offsetList = []; // 标准值
            testList = []; // 实际测量值
            verify_o = true;
            verify_t = true;
            this.standardParameter.forEach(function (item) {
              if (item.value === '' || item.value === '.' || item.value === '-') {
                item.error = true;
                item.errorText = _this2.pattern === 1 ? '请输入标准工作值' : '请输入偏差值';
                verify_o = false;
              }
              if (item.value.indexOf('<') !== -1) {
                item.error = true;
                item.errorText = '请输入准确数值';
                verify_o = false;
              }
              offsetList.push({
                testNode: item.testNode,
                ybz: item.value
              });
            });
            this.calibrateStandardParameter.forEach(function (item) {
              if (item.value === '' || item.value === '.' || item.value === '-') {
                item.error = true;
                item.errorText = '请输入实际测量值';
                verify_t = false;
              }
              testList.push({
                testNode: item.testNode,
                ybz: item.value
              });
            });
            params = {};
            if (!(this.pattern === 1)) {
              _context.next = 2;
              break;
            }
            if (!(!verify_t || !verify_o)) {
              _context.next = 1;
              break;
            }
            return _context.abrupt("return");
          case 1:
            params = {
              type: this.pattern,
              testList: testList,
              standardList: offsetList
            };
            _context.next = 4;
            break;
          case 2:
            if (verify_o) {
              _context.next = 3;
              break;
            }
            return _context.abrupt("return");
          case 3:
            params = {
              type: this.pattern,
              offsetList: offsetList
            };
          case 4:
            _toast.default.loading({
              message: 'IQA码生成中...',
              duration: 0,
              overlay: true,
              className: 'iqa-loading',
              getContainer: '.iqa-reverse-direction-page'
            });
            this._Util.post(this._Api.IQA_CREATE, params, function (data) {
              var list = data.list || [];
              if (list.length > 0) {
                if (_this2.pattern === 1) {
                  // 实际测量值
                  _this2.calibrateStandardParameter.forEach(function (v) {
                    list.forEach(function (sv) {
                      if (v.testNode === sv.testNode) {
                        v.errorText = sv.content;
                        v.error = true;
                      }
                    });
                  });
                } else {
                  // 偏差值的标准值
                  _this2.standardParameter.forEach(function (v) {
                    list.forEach(function (sv) {
                      if (v.testNode === sv.testNode) {
                        v.errorText = sv.content;
                        v.error = true;
                      }
                    });
                  });
                }
                _toast.default.clear();
                return;
              }
              _this2.IQACoding = data.iqa;
              setTimeout(function () {
                console.log(_this2.$refs.iqaMiddle.scrollHeight);
                _this2.$refs.iqaContent.scrollTop = _this2.$refs.iqaMiddle.scrollHeight + 10000;
                _toast.default.clear();
              }, 100);
            }, function () {
              _toast.default.clear();
            }, this, true);
          case 5:
          case "end":
            return _context.stop();
        }
      }, _callee, this);
    }))),
    /**
     * 格式化输入值
     * 喷油嘴型号
     * @param {String} value 输入框的值
     */
    modelFormatter: function modelFormatter(value) {
      return value.replace(/[^a-zA-Z0-9]/g, '');
    },
    /**
     * 格式化输入值
     * 工作值和测量值
     * @param {String} value 输入框的值
     */
    paramsFormatter: function paramsFormatter(value) {
      value = this.trimExtraChar(value, '.', /\./g);
      value = this.trimExtraChar(value, '-', /-/g);
      var index = value.indexOf('.');
      var digits = 1;
      if (index !== -1 && digits) {
        var arr = value.split('.');
        value = "".concat(arr[0], ".").concat(arr[1].substring(0, digits));
      }
      return value.replace(/[^-0-9.]/g, '');
    },
    /**
     * 截取字符串
     */
    trimExtraChar: function trimExtraChar(value, char, regExp) {
      var index = value.indexOf(char);
      if (index === -1) {
        return value;
      }
      if (char === '-' && index !== 0) {
        return value.slice(0, index);
      }
      return value.slice(0, index + 1) + value.slice(index).replace(regExp, '');
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"iqa-reverse-direction-page"},[_c('div',{ref:"iqaContent",staticClass:"iqa-content"},[_c('div',{staticClass:"iqa-top"},[_c('div',{staticClass:"cell hairline"},[_c('div',{staticClass:"name"},[_vm._v("输入格式")]),_vm._v(" "),_c('div',{staticClass:"value"},_vm._l((_vm.patterns),function(p,i){return _c('div',{key:i,staticClass:"iqa-radio",class:{checked: _vm.pattern === p.type},on:{"click":function($event){return _vm.radioCheck(p)}}},[_c('span',{staticClass:"radio-icon"}),_vm._v(" "),_c('span',{staticClass:"radio-label"},[_vm._v(_vm._s(p.name))])])}),0)]),_vm._v(" "),(_vm.pattern === 1)?_c('div',{staticClass:"cell"},[_c('div',{staticClass:"name"},[_vm._v("喷油嘴型号")]),_vm._v(" "),_c('div',{staticClass:"value"},[_c('div',{staticClass:"text needsclick"},[_c('van-field',{attrs:{"formatter":_vm.modelFormatter,"input-align":"right","placeholder":"输入喷油嘴型号"},on:{"blur":_vm.onBlur},model:{value:(_vm.injectorModel),callback:function ($$v) {_vm.injectorModel=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:"injectorModel"}})],1)])]):_vm._e()]),_vm._v(" "),(_vm.showIQA)?_c('div',{ref:"iqaMiddle",staticClass:"iqa-middle"},[_c('div',{staticClass:"iqa-parameter"},[_c('div',{staticClass:"parameter-top"},[_c('span',{staticClass:"title"},[_vm._v(_vm._s(_vm.pattern === 1 ? '标准工作值' : '偏差值'))]),_vm._v(" "),_c('span',{staticClass:"tip"},[_vm._v("单位：mm3/str")])]),_vm._v(" "),_c('div',{staticClass:"parameter-list"},_vm._l((_vm.standardParameter),function(item,index){return _c('div',{key:index,staticClass:"item",class:{error: item.error}},[_c('div',{staticClass:"item-inner"},[_c('div',{staticClass:"item-top"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.testNode))]),_vm._v(" "),_c('span',{staticClass:"value needsclick"},[_c('van-field',{attrs:{"formatter":_vm.paramsFormatter,"input-align":"right","placeholder":_vm.pattern === 1 ? '请输入标准工作值' : '请输入偏差值'},on:{"focus":function($event){item.error = false}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})],1)]),_vm._v(" "),((item.gy && item.gy !== '') || (item.jdsj && item.jdsj !== ''))?_c('div',{staticClass:"item-bottom"},[_c('span',[_vm._v("轨压："+_vm._s(item.gy))]),_vm._v(" "),_c('span',[_vm._v("加电时间："+_vm._s(item.jdsj))])]):_vm._e()]),_vm._v(" "),(item.error)?_c('p',{staticClass:"error-text"},[_vm._v(_vm._s(item.errorText))]):_vm._e()])}),0)]),_vm._v(" "),(_vm.pattern === 1)?_c('div',{staticClass:"iqa-parameter"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"parameter-list"},_vm._l((_vm.calibrateStandardParameter),function(item,index){return _c('div',{key:index,staticClass:"item",class:{error: item.error}},[_c('div',{staticClass:"item-inner"},[_c('div',{staticClass:"item-top"},[_c('span',{staticClass:"name"},[_vm._v(_vm._s(item.testNode))]),_vm._v(" "),_c('span',{staticClass:"value needsclick"},[_c('van-field',{attrs:{"formatter":_vm.paramsFormatter,"input-align":"right","placeholder":"请输入实际测量值"},on:{"focus":function($event){item.error = false}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})],1)])]),_vm._v(" "),(item.error)?_c('p',{staticClass:"error-text"},[_vm._v(_vm._s(item.errorText))]):_vm._e()])}),0)]):_vm._e(),_vm._v(" "),(_vm.IQACoding !== '')?_c('div',{staticClass:"iqa-coding"},[_c('div',{staticClass:"coding-content"},[_c('p',{staticClass:"coding-name"},[_vm._v("IQA码")]),_vm._v(" "),_c('p',{staticClass:"coding-text"},[_vm._v(_vm._s(_vm.IQACoding))])])]):_vm._e()]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"iqa-bottom hairline"},[_c('span',{staticClass:"iqa-btn btn-1",on:{"click":function($event){return _vm.resetParams(true)}}},[_vm._v("重置")]),_vm._v(" "),_c('span',{staticClass:"iqa-btn btn-2",on:{"click":_vm.generateIQA}},[_vm._v("生成IQA")])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"parameter-top"},[_c('span',{staticClass:"title"},[_vm._v("校准后的标准工作值")]),_vm._v(" "),_c('span',{staticClass:"tip"},[_vm._v("单位：mm3/str")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_57057d24_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1304);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3593)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-57057d24"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_57057d24_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_57057d24_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_memberRecord_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3594);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("e4e2bd14", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-57057d24]{font-family:PingFangSC-Regular,PingFang SC}[class*=hairline][data-v-57057d24]:before{content:\"\";position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #eee}.member-record[data-v-57057d24]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.member-record .tab-list[data-v-57057d24]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem}.member-record .tab-list[data-v-57057d24]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.member-record .tab-list .tab[data-v-57057d24]{position:relative;height:inherit;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0;font-size:.8rem;color:#999}.member-record .tab-list .tab.tab-active[data-v-57057d24]{font-weight:600;color:#333}.member-record .tab-list .tab.tab-active[data-v-57057d24]:after{display:block;content:\"\";position:absolute;width:.8rem;height:.15rem;background-color:#177afa;bottom:.05rem;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);border-radius:.1rem}.member-record .tab-list .tab span[data-v-57057d24]{font-size:.8rem}.member-record .record-list[data-v-57057d24]{position:relative;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.member-record .record-list .record-list-inner[data-v-57057d24]{height:100%;overflow-y:auto;padding:0 .8rem 2rem}.member-record .record-list .record[data-v-57057d24]{position:relative;height:3.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.member-record .record-list .record[data-v-57057d24]:before{left:0;right:0;width:100%;-webkit-transform:scaleY(.5);-ms-transform:scaleY(.5);transform:scaleY(.5);border-bottom-width:1px}.member-record .record-list .record .top[data-v-57057d24]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.13rem;font-weight:600;color:#333;white-space:nowrap}.member-record .record-list .record .top .label[data-v-57057d24]{overflow:hidden;text-overflow:ellipsis;font-size:.8rem}.member-record .record-list .record .top .duration[data-v-57057d24]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;text-align:right;font-size:.8rem}.member-record .record-list .record .bottom[data-v-57057d24]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:.2rem;line-height:.83rem;color:#999;white-space:nowrap;overflow:hidden}.member-record .record-list .record .bottom .date[data-v-57057d24]{width:8rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-size:.6rem}.member-record .record-list .record .bottom .meta-text[data-v-57057d24]{overflow:hidden;text-overflow:ellipsis;font-size:.6rem}.member-record .null-result[data-v-57057d24]{position:absolute;top:6rem;width:100%;text-align:center}.member-record .null-result img[data-v-57057d24]{width:2.13rem;vertical-align:top;margin-bottom:.8rem}.member-record .null-result p[data-v-57057d24]{font-size:.7rem;color:#666;line-height:1rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'MemberRecord',
  data: function data() {
    return {
      tabActive: 0,
      tabList: [{
        name: '会员记录'
      }, {
        name: '畅享卡记录'
      }],
      memberList: [],
      cardList: [],
      showNull: false
    };
  },
  mounted: function mounted() {
    this.getMemberRecord();
  },
  watch: {
    tabActive: function tabActive(val) {
      if (val === 0) {
        this.showNull = !this.memberList.length;
        this.nullText = '暂无会员记录';
      }
      if (val === 1) {
        this.showNull = !this.cardList.length;
        this.nullText = '暂无畅享卡记录';
      }
    }
  },
  methods: {
    /**
     * 切换会员记录tab
     * @param {Number} index 当前tab索引值
     */
    switchTab: function switchTab(index) {
      if (this.tabActive === index) return;
      this.tabActive = index;
    },
    /**
     * 获取会员记录
     */
    getMemberRecord: function getMemberRecord() {
      var _this = this;
      this._Util.post(this._Api.QUERY_DATA_LIST, {
        code: 'member_flow_chart',
        userid: localStorage.getItem('userId')
      }, function (data) {
        _this.memberList = [];
        _this.cardList = [];
        var data1 = data && data.dataList || [];
        data1.forEach(function (ele) {
          if (ele.type === 1) {
            _this.cardList.push(ele);
          } else {
            _this.memberList.push(ele);
          }
        });
        _this.showNull = !_this.memberList.length;
        _this.nullText = '暂无会员记录';
      }, function () {}, this, false);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"member-record"},[_c('div',{staticClass:"tab-list hairline"},_vm._l((_vm.tabList),function(item,index){return _c('div',{key:index,staticClass:"tab",class:{'tab-active': _vm.tabActive === index},on:{"click":function($event){return _vm.switchTab(index)}}},[_c('span',[_vm._v(_vm._s(item.name))])])}),0),_vm._v(" "),_c('div',{staticClass:"record-list"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tabActive === 0),expression:"tabActive === 0"}],staticClass:"record-list-inner"},_vm._l((_vm.memberList),function(item){return _c('div',{key:item.id,staticClass:"record hairline"},[_c('div',{staticClass:"top"},[_c('span',{staticClass:"label"},[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('span',{staticClass:"duration"},[_vm._v(_vm._s(item.date))])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('span',{staticClass:"date"},[_vm._v(_vm._s(item.time))]),_vm._v(" "),_c('span',{staticClass:"meta-text"},[_vm._v(_vm._s(item.remark))])])])}),0),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.tabActive === 1),expression:"tabActive === 1"}],staticClass:"record-list-inner"},_vm._l((_vm.cardList),function(item){return _c('div',{key:item.id,staticClass:"record hairline"},[_c('div',{staticClass:"top"},[_c('span',{staticClass:"label"},[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('span',{staticClass:"duration"},[_vm._v(_vm._s(item.date))])]),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('span',{staticClass:"date"},[_vm._v(_vm._s(item.time))]),_vm._v(" "),_c('span',{staticClass:"meta-text"},[_vm._v(_vm._s(item.remark))])])])}),0),_vm._v(" "),(_vm.showNull)?_c('div',{staticClass:"null-result"},[_c('img',{attrs:{"src":__webpack_require__(3595)}}),_vm._v(" "),_c('p',[_vm._v(_vm._s(_vm.nullText))])]):_vm._e()])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/member_record_null_result.2f7f0fd.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(706);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_699f307e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1305);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3596)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_699f307e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_699f307e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_userAgreementJGZ_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3597);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2827a3e8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".agreement .content{padding:.6rem .6rem 4rem;min-height:100%}.agreement .content p{margin-top:.2rem}.agreement .content span{color:#177afa}.agreement .content h1{font-size:.9rem;font-weight:700;text-align:center}.agreement .content h2{margin-top:.5rem;font-size:.7rem;font-weight:700}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _userAgreementJGZ = __webpack_require__(3598);
//
//
//
//
//
//
var _default = exports.default = {
  name: 'UserAgreementJGZ',
  data: function data() {
    return {
      content: _userAgreementJGZ.userAgreement
    };
  },
  mounted: function mounted() {
    var _this = this;
    /**
     * 金刚钻手个人信息保护政策
     * @param {String} path 跳转路由
     */
    window.toInformationProtection = function (path) {
      var _path = path || '/v2/informationProtectionJGZ';
      if (_this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            url: location.origin + _path
          }
        });
      } else {
        _this.$router.push({
          path: _path
        });
      }
    };
  }
};

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.userAgreement = void 0;
var userAgreement = exports.userAgreement = '';/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"agreement"},[_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(707);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50f085b2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1306);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3599)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50f085b2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_50f085b2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_informationProtectionJGZ_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3600);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("df83af80", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".agreement .content{padding:.6rem .6rem 4rem;min-height:100%}.agreement .content p{margin-top:.2rem}.agreement .content span{color:#177afa}.agreement .content h1{font-size:.9rem;font-weight:700;text-align:center;color:#333}.agreement .content h2{margin-top:.5rem;font-size:.7rem;font-weight:700;color:#333}.agreement .content h3{margin-top:.2rem;font-weight:700;color:#333}.agreement .content b{color:#333}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _informationProtectionJGZ = __webpack_require__(3601);
//
//
//
//
//
//
var _default = exports.default = {
  name: 'InformationProtection',
  data: function data() {
    return {
      content: _informationProtectionJGZ.informationProtection
    };
  },
  mounted: function mounted() {
    var _this = this;
    /**
     * 金刚钻用户协议
     */
    window.toJGZUserAgreement = function (path) {
      var _path = path || '/v2/userAgreementJGZ';
      if (_this._Util.isApp()) {
        api.sendEvent({
          name: 'acOpenNewFrm',
          extra: {
            url: location.origin + _path
          }
        });
      } else {
        _this.$router.push({
          path: _path
        });
      }
    };
  }
};

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.informationProtection = void 0;
var informationProtection = exports.informationProtection = '';/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"agreement"},[_c('div',{staticClass:"content",domProps:{"innerHTML":_vm._s(_vm.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(708);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f7d79864_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1307);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3602)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-f7d79864"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f7d79864_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f7d79864_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_identification_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3603);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("719eeb76", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".identification[data-v-f7d79864]{width:100%;height:100%;overflow:hidden}.identification .footer[data-v-f7d79864]{position:fixed;left:0;right:0;bottom:0;padding:1.4rem .6rem;z-index:1;bottom:env(safe-area-inset-bottom)}.identification .tip-box[data-v-f7d79864]{width:100%;border-radius:.8rem;background:#fffbe1}.identification .tip-box .tip[data-v-f7d79864]{color:#fb2323;font-size:.7rem;font-weight:600;padding:.55rem 0 .3rem}.identification .count[data-v-f7d79864]{padding-right:.6rem}.identification .btn[data-v-f7d79864]{width:100%;height:3rem;border-radius:.8rem}.identification .btn .van-button__text[data-v-f7d79864]{font-size:1rem;font-weight:600}.identification .btn.shadow[data-v-f7d79864]{box-shadow:0 .1rem .2rem 0 hsla(0,3%,38%,.19),0 .1rem .3rem 0 #fff6c5;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:move_pulse-data-v-f7d79864 .8s linear 0s infinite alternate;animation:move_pulse-data-v-f7d79864 .8s linear 0s infinite alternate}.identification .btn.shadow .van-button__text[data-v-f7d79864]{color:#291c18}.identification .btn.disabled .van-button__text[data-v-f7d79864]{color:#999}.identification .btn.confirm[data-v-f7d79864]{margin-top:.4rem;height:2.4rem;border-radius:.5rem}.identification .popup[data-v-f7d79864]{padding:1.2rem .8rem .8rem;height:22rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.identification .popup.no-padding[data-v-f7d79864]{padding:0 0 .8rem}.identification .title[data-v-f7d79864]{font-size:.9rem;color:#333;font-weight:600;padding:.4rem 0 1.2rem;line-height:1.1rem}.identification .title.success[data-v-f7d79864]{font-size:1rem;line-height:1.4rem;text-align:center;color:#ff4d2f}.identification .group[data-v-f7d79864]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:scroll}.identification .group .cell[data-v-f7d79864]{background:#f8f8f8;height:2.7rem;border-radius:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.6rem}.identification .group .text-btn[data-v-f7d79864]{color:#ff4d2f;cursor:pointer;font-size:.8rem;padding:.8rem .6rem}.identification .van-popup--bottom.van-popup--round[data-v-f7d79864]{border-radius:.6rem .6rem 0 0}.identification .van-cell[data-v-f7d79864]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background:transparent}.identification .van-field__control[data-v-f7d79864]{font-size:.8rem}.identification[data-v-f7d79864] ::-webkit-input-placeholder{color:#666;font-size:.8rem}.identification .van-cell[data-v-f7d79864]:not(:last-child):after{content:none}.identification .pic[data-v-f7d79864]{width:100%;height:auto}.identification .padding[data-v-f7d79864]{padding:.8rem .8rem 0}.identification .margin[data-v-f7d79864]{margin:0 .8rem;width:auto}@-webkit-keyframes move_pulse-data-v-f7d79864{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(1.05);transform:scale(1.05)}}@keyframes move_pulse-data-v-f7d79864{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(1.05);transform:scale(1.05)}}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(105);
var _countDown = _interopRequireDefault(__webpack_require__(106));
__webpack_require__(62);
var _field = _interopRequireDefault(__webpack_require__(58));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
__webpack_require__(3604);
var _button = _interopRequireDefault(__webpack_require__(767));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    'van-button': _button.default,
    'van-popup': _popup.default,
    'van-field': _field.default,
    'van-count-down': _countDown.default
  },
  data: function data() {
    return {
      showPopup: false,
      code: '',
      phone: '',
      showCountDown: false,
      time: 60 * 1000,
      phoneExp: /^1[3456789]\d{9}$/,
      info: {},
      hasMarkPoint: false
    };
  },
  computed: {
    userId: function userId() {
      return localStorage.getItem('userId') || this.$store.state.userInfo ? this.$store.state.userInfo.userId : '';
    }
  },
  watch: {
    userId: function userId(val) {
      if (val) {
        this.getCertification();
      }
    }
  },
  created: function created() {
    this.getCertification();
  },
  methods: {
    // 获取验证码
    getCode: function getCode() {
      var _this = this;
      if (!this.phone) {
        return (0, _toast.default)({
          message: '电话号码不能为空'
        });
      }
      if (!this.phoneExp.test(this.phone)) {
        return (0, _toast.default)({
          message: '手机号码格式不正确'
        });
      }
      this._Util.post(this._Api.POST_WXAUTH_PHONE_NOTE, {
        phone: this.phone
      }, function (data) {
        _this.showCountDown = true;
        _this.$refs.countDown.reset();
      }, function () {}, this);
    },
    // 获取活动信息
    getCertification: function getCertification() {
      var _this2 = this;
      var userId = localStorage.getItem('userId') || this.$store.state.userInfo && this.$store.state.userInfo.userId;
      this._Util.post(this._Api.POST_SYS_REPORT_LIST_TWO, {
        code: 'certification_gift',
        userid: userId,
        source: this._Util.isApp() ? 'APP' : 'WEIXIN',
        activeid: this.$route.query.id
      }, function (data) {
        if (data.dataList.length !== 0) {
          _this2.info = data.dataList[0];
          document.title = _this2.info.title;
          _this2.markPoint();
        }
      }, function () {}, this);
    },
    // 埋点
    markPoint: function markPoint() {
      if (this.hasMarkPoint) return;
      this.hasMarkPoint = true;
      this._Util.sensorsCollect('pageview', {
        '$title': this.info.title,
        '$url': location.href,
        correlation_id: "".concat(this.$route.query.id)
      });
    },
    // 校验验证码
    submit: function submit() {
      var _this3 = this;
      if (!this.phone) {
        return (0, _toast.default)({
          message: '电话号码不能为空'
        });
      }
      if (!this.phoneExp.test(this.phone)) {
        return (0, _toast.default)({
          message: '手机号码格式不正确'
        });
      }
      if (!this.code) {
        return (0, _toast.default)({
          message: '验证码不能为空'
        });
      }
      this._Util.post(this._Api.POST_MEMBER_USER_PHONE, {
        uphone: this.phone,
        inputCode: this.code
      }, function () {
        _toast.default.success('认证成功');
        _this3.info.button_status = 2;
      }, function () {}, this);
    },
    clear: function clear() {
      this.phone = '';
      this.code = '';
    }
  }
};__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(74);
__webpack_require__(1348);/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"identification"},[_c('img',{staticClass:"pic",attrs:{"src":_vm.info.bgpic}}),_vm._v(" "),_c('div',{staticClass:"footer"},[_c('div',{staticClass:"tip-box"},[(_vm.info.button_tittle)?_c('span',{staticClass:"tip"},[_vm._v(_vm._s(_vm.info.button_tittle))]):_vm._e(),_vm._v(" "),([1, 2].includes(_vm.info.button_status))?_c('van-button',{staticClass:"btn shadow",attrs:{"color":"linear-gradient(to bottom, #FFEE95 0, #FFDE2F 50%, #FFAF2F 100%)"},on:{"click":function($event){_vm.showPopup = true}}},[_vm._v(_vm._s(_vm.info.button_name))]):_vm._e(),_vm._v(" "),(_vm.info.button_status === 0)?_c('van-button',{staticClass:"btn disabled",attrs:{"color":"#D6D6D6","disabled":""}},[_vm._v(_vm._s(_vm.info.button_name))]):_vm._e()],1)]),_vm._v(" "),_c('van-popup',{staticClass:"popup",class:{'no-padding': _vm.info.button_status === 2},attrs:{"round":"","safe-area-inset-bottom":"","position":"bottom"},on:{"close":_vm.clear},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[(_vm.info.button_status === 1)?[(_vm.info.step1_tittle)?_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.info.step1_tittle))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"group"},[_c('div',{staticClass:"cell"},[_c('van-field',{attrs:{"type":"tel","placeholder":"请输入手机号码"},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:"phone"}}),_vm._v(" "),(!_vm.showCountDown)?_c('div',{staticClass:"text-btn",on:{"click":_vm.getCode}},[_vm._v("获取验证码")]):_c('van-count-down',{ref:"countDown",attrs:{"time":_vm.time},on:{"finish":function($event){_vm.showCountDown = false}},scopedSlots:_vm._u([{key:"default",fn:function(timeData){return [_c('span',{staticClass:"text-btn"},[_vm._v(_vm._s(timeData.seconds)+" s后重新发送")])]}}],null,false,3260603828)})],1),_vm._v(" "),_c('div',{staticClass:"cell"},[_c('van-field',{attrs:{"type":"tel","placeholder":"请输入验证码"},model:{value:(_vm.code),callback:function ($$v) {_vm.code=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:"code"}})],1)]),_vm._v(" "),_c('van-button',{staticClass:"btn confirm",attrs:{"color":"#FF4D2F"},on:{"click":_vm.submit}},[_vm._v("确认")])]:_vm._e(),_vm._v(" "),(_vm.info.button_status === 2)?[_c('div',{staticClass:"group padding"},[(_vm.info.step2_tittle)?_c('div',{staticClass:"title success"},[_vm._v(_vm._s(_vm.info.step2_tittle))]):_vm._e(),_vm._v(" "),(_vm.info.step2_pic)?_c('img',{staticClass:"pic",attrs:{"src":_vm.info.step2_pic}}):_vm._e()]),_vm._v(" "),(_vm.info.step2_name && _vm.info.step2_url)?_c('van-button',{staticClass:"btn confirm margin",attrs:{"color":"#FF4D2F","url":_vm.info.step2_url}},[_vm._v(_vm._s(_vm.info.step2_name))]):_vm._e()]:_vm._e()],2)],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(709);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28b448d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1308);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3605)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-28b448d6"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28b448d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_28b448d6_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productDetail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3606);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("ea3b32be", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".kxy-mall-view[data-v-28b448d6]{width:100%;overflow-x:hidden;height:100vh;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column}.kxy-mall-view .line[data-v-28b448d6]{background-color:#f4f5f6;height:.4rem}.kxy-mall-view .popup-box .popup-box-header[data-v-28b448d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:1.2rem;padding:.8rem .8rem 0}.kxy-mall-view .popup-box .popup-box-header .imgPic[data-v-28b448d6]{width:3.6rem;height:3.6rem;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;background:#f4f5f6;border-radius:.3rem;border:1px solid #eee;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.kxy-mall-view .popup-box .popup-box-header .imgPic img[data-v-28b448d6]{width:100%;height:100%}.kxy-mall-view .popup-box .popup-box-header .price[data-v-28b448d6]{height:1.25rem;font-size:1.25rem;font-weight:600;color:#ff3f3f;line-height:1.12rem;padding:.6rem 0 0 .6rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.kxy-mall-view .popup-box .popup-box-header .iconfont[data-v-28b448d6]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;width:1.2rem;height:1.2rem;background-color:#f8f8f8;border-radius:1.2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-mall-view .popup-box .popup-box-list[data-v-28b448d6]{padding:0 .8rem}.kxy-mall-view .popup-box .popup-box-list .title[data-v-28b448d6]{height:1.12rem;font-size:.8rem;font-weight:600;color:#333;line-height:1.12rem;margin-bottom:.6rem}.kxy-mall-view .popup-box .list-box[data-v-28b448d6]{overflow-y:auto}.kxy-mall-view .popup-box .list-box-item[data-v-28b448d6]{height:2.05rem;padding:0 .5rem;background:#f5f5f5;border-radius:.3rem;font-size:.75rem;font-weight:400;color:#333;line-height:1.05rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.4rem}.kxy-mall-view .popup-box .list-box-item.cur[data-v-28b448d6]{color:#ef7549;background:#e7f1ff}.kxy-mall-view .popup-box .popup-box-submit[data-v-28b448d6]{height:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem;position:relative}.kxy-mall-view .popup-box .popup-box-submit[data-v-28b448d6]:after{content:\"\";border-top:1px solid #eee}.kxy-mall-view .popup-box .popup-box-submit .submit[data-v-28b448d6]{height:2.4rem;background:#ef7549;border-radius:.3rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:400;color:#fff;line-height:1.12rem}.kxy-mall-view .popup-box .popup-box-submit .submit[data-v-28b448d6],.kxy-mall-view .show-img[data-v-28b448d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.kxy-mall-view .show-img[data-v-28b448d6]{height:18.75rem}.kxy-mall-view .show-img .show-img-in[data-v-28b448d6]{width:100%;height:auto}.kxy-mall-view .good-info-mod[data-v-28b448d6]{padding:.8rem .8rem .7rem;box-shadow:0 -4px 8px 0 hsla(0,0%,85%,.2)}.kxy-mall-view .good-info-mod .price-box[data-v-28b448d6]{margin-bottom:.2rem}.kxy-mall-view .good-info-mod .price-box .p1[data-v-28b448d6]{height:1.6rem;font-size:1.2rem;font-weight:600;color:#ff3f3f;line-height:1.6rem;margin-right:.4rem}.kxy-mall-view .good-info-mod .price-box .p1 text[data-v-28b448d6]{font-size:.6rem}.kxy-mall-view .good-info-mod .price-box .p2[data-v-28b448d6]{height:1rem;font-size:.7rem;font-weight:400;color:#999;line-height:1rem;text-decoration:line-through}.kxy-mall-view .good-info-mod .description-box .title[data-v-28b448d6]{height:1.25rem;font-size:.9rem;font-weight:600;color:#333;line-height:1.25rem}.kxy-mall-view .good-info-mod .description-box .sub-title[data-v-28b448d6]{height:1rem;font-size:.7rem;font-weight:400;color:#999;line-height:1rem;margin-top:.2rem}.kxy-mall-view .good-info-mod .tag-box[data-v-28b448d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.8rem}.kxy-mall-view .good-info-mod .tag-box .text[data-v-28b448d6]{font-size:.6rem;font-weight:400;color:#ff712a;line-height:.6rem;background-color:#fff1ea;border-radius:.1rem;padding:.1rem}.kxy-mall-view .good-detail-mod[data-v-28b448d6]{padding:.8rem}.kxy-mall-view .good-detail-mod[data-v-28b448d6] ::v-deepimg{width:100%;height:auto}.kxy-mall-view .foot-tab[data-v-28b448d6]{height:3rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:.8rem;box-sizing:content-box;padding-right:.8rem;border-top:1px solid #eee;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.kxy-mall-view .foot-tab .left-box[data-v-28b448d6],.kxy-mall-view .foot-tab[data-v-28b448d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.kxy-mall-view .foot-tab .left-box.w80[data-v-28b448d6]{width:2.5rem}.kxy-mall-view .foot-tab .left-box .left-box-item[data-v-28b448d6]{width:2rem}.kxy-mall-view .foot-tab .left-box .left-box-item.shop-cart[data-v-28b448d6]{text-align:center;position:relative;margin-right:.5rem}.kxy-mall-view .foot-tab .left-box .left-box-item.shop-cart .dot[data-v-28b448d6]{position:absolute;top:-.2rem;right:-3px;width:.8rem;height:.8rem;background-color:#ff3f3f;border-radius:.8rem;border:1px solid #fff;color:#fff;font-size:.55rem;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.kxy-mall-view .foot-tab .left-box .iconfont[data-v-28b448d6]{font-size:1.2rem;text-align:center}.kxy-mall-view .foot-tab .left-box .car[data-v-28b448d6]{display:inline-block;width:1.2rem;height:1.2rem;background:url(\"https://static1.kaxiuyun.com/kxy/purchase/20221013210256.jpg\") no-repeat;background-size:100% 100%}.kxy-mall-view .foot-tab .left-box .text[data-v-28b448d6]{height:.6rem;font-size:.6rem;font-weight:400;color:#333;line-height:.6rem;text-align:center}.kxy-mall-view .foot-tab .right-box[data-v-28b448d6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:.3rem;overflow:hidden;height:2.4rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.kxy-mall-view .foot-tab .right-box .add-to-cart[data-v-28b448d6]{background-color:#434649}.kxy-mall-view .foot-tab .right-box .submit[data-v-28b448d6]{background-color:#ef7549}.kxy-mall-view .foot-tab .right-box .right-box-item[data-v-28b448d6]{line-height:2.4rem;text-align:center;font-size:.8rem;font-weight:400;color:#fff;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.kxy-mall-view .flex-content[data-v-28b448d6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    'van-popup': _popup.default,
    'van-icon': _icon.default
  },
  // mixins: [MiniProLoggerMixin],
  data: function data() {
    return {
      partPrice: 0,
      isGoShopCart: 0,
      // 是否去购物车
      contentStyle: {
        fontSize: '36rpx',
        fontWeight: '600'
      },
      userId: null,
      showUserStatus: false,
      userStatus: null,
      // 用户状态
      id: -1,
      partPic: '',
      show: false,
      partsList: [],
      selectPartItem: {
        mdseId: 0
      },
      // 选中的配件信息
      payFlag: true,
      detailInfo: {
        hotline: '',
        price: '',
        originalPrice: '',
        mdseName: '--',
        summary: '--'
      },
      commerceId: '' // 直播弹窗的带货信息id
    };
  },
  computed: {},
  watch: {},
  created: function created() {
    this.id = this.$route.query.id;
    this.commerceId = this.$route.query.commerceId;
    this.init();
  },
  methods: {
    init: function init() {
      this.getDetail();
    },
    /**
     * 去webview
     * @param key 跳转的key
     * @param param 入参
     * */
    toWebView: function toWebView(key, param) {
      var srcMap = new Map([['personalCertification', '/repair/member/personalCertification'], ['shoppingPay', "/repair/business/pay/shoppingPay/?".concat(param, "&userId=").concat(this.userId)]]);
      var src = this.$http.config.baseURL + srcMap.get(key);
      if (key === 'url' && srcMap.get(key).indexOf('http') > -1) {
        src = srcMap.get(key);
      }
      // #ifdef MP-ALIPAY || MP-WEIXIN
      src = encodeURIComponent(src);
      this.$u.route({
        url: "/pages/webView/webView?src=".concat(src)
      });
      // #endif
      // #ifdef H5
      location.href = src;
      // #endif
    },
    /**
     * 购买商品
     * */
    submitGood: function submitGood() {
      // if (this.detailInfo.quickPay) {
      //   if (this.detailInfo.saleType !== 1) {
      //     Toast({
      //       message: '请选择型号'
      //     })
      //     this.show = true
      //     return
      //   }
      //   this.quickPay()
      //   return
      // }
      if (this.detailInfo.saleType !== 1) {
        (0, _toast.default)({
          message: '请选择型号'
        });
        this.show = true;
        return;
      }
      this.addProduct(1);
    },
    /**
     * 添加购物车
     * @isGoShopCart 是否加车后跳转购物车
     * */
    addProduct: function addProduct(isGoShopCart) {
      this.isGoShopCart = isGoShopCart;
      if (this.detailInfo.saleType !== 1 && (!this.selectPartItem || !this.selectPartItem.mdseId)) {
        this.$refs.uToast.show({
          title: '请选择型号'
        });
        this.show = true;
        return;
      }
      var carList = [{
        merCode: this.detailInfo.merCode,
        merId: this.selectPartItem.mdseId || this.detailInfo.merId,
        merName: this.detailInfo.merName,
        merPicUrl: this.detailInfo.merPicUrl,
        merType: 1,
        num: 1,
        originalPrice: this.detailInfo.originalPrice,
        preferentialPrice: this.detailInfo.preferentialPrice,
        virtualStatus: this.detailInfo.virtualStatus // 是否为虚拟商品 0是虚拟，1是实物
      }];
      localStorage.setItem('mallCarlist', JSON.stringify(carList));
      this.goConfirmOrder();
    },
    /**
     * 快速支付接口
     * @param id 商品id
     * */
    quickPay: function quickPay(id) {
      var _this = this;
      if (!this.payFlag) {
        return;
      }
      this.payFlag = false;
      this._Util.post(this._Api.MALL.quickPay, {
        id: id || this.id
      }, function (res1) {
        _this.payFlag = true;
        _this._Util.wxPay(res1.data.jsApiParameters, function (res) {
          console.log(res);
        });
      }, function () {}, this);
    },
    /**
     * 确认选中的配件
     * */
    confirmPart: function confirmPart() {
      this.selectPartItem = this.partsList.find(function (item) {
        return item.isSelect;
      });
      if (!this.selectPartItem || !this.selectPartItem.mdseId) {
        (0, _toast.default)({
          message: '请选择型号'
        });
        return;
      }
      this.show = false;
      var carList = [{
        merCode: this.selectPartItem.merCode,
        merId: this.selectPartItem.mdseId || this.detailInfo.merId,
        merName: this.selectPartItem.merName,
        merPicUrl: this.selectPartItem.merPicUrl,
        merType: 1,
        num: 1,
        originalPrice: this.selectPartItem.originalPrice,
        preferentialPrice: this.selectPartItem.preferentialPrice,
        virtualStatus: 1 // 是否为虚拟商品 0是虚拟，1是实物
      }];
      localStorage.setItem('mallCarlist', JSON.stringify(carList));
      this.goConfirmOrder();
    },
    /**
     * 选择配件
     * */
    selectPart: function selectPart(item) {
      this.partsList.forEach(function (v) {
        v.isSelect = false;
      });
      item.isSelect = true;
      this.partPic = item.picUrl;
      this.partPrice = item.price;
      this.partsList.splice();
    },
    /**
     * 获取商品详情
     * */
    getDetail: function getDetail() {
      var _this2 = this;
      this._Util.post(this._Api.MALL.getDetail, {
        merCode: this.id
      }, function (res) {
        if (res) {
          var resData = _objectSpread(_objectSpread({}, res), {}, {
            introText: res.introduceText,
            price: res.preferentialPrice,
            mdseName: res.merName,
            subhead: res.subtitle,
            summary: res.richText,
            picUrl: res.merPicUrl
          });
          if (res.summary) {
            resData.summary = resData.summary.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
          }
          _this2.detailInfo = resData;
          _this2.partPrice = _this2.detailInfo.price;
          if (_this2.detailInfo.saleType === 2) {
            _this2.queryPartsList();
          }
        }
      }, function () {}, this);
    },
    /**
     * 获取配件详情
     * */
    queryPartsList: function queryPartsList() {
      var _this3 = this;
      this.partPic = this.detailInfo.picUrl;
      this._Util.post(this._Api.MALL.queryPartsList, {
        id: this.detailInfo.merId
      }, function (res) {
        if (res) {
          res.forEach(function (item) {
            item.mdseName = item.merName;
            item.picUrl = item.merPicUrl;
            item.price = item.preferentialPrice;
            item.mdseId = item.merId;
          });
          _this3.partsList = res;
        }
      }, function () {}, this);
    },
    goConfirmOrder: function goConfirmOrder() {
      this.$router.push({
        name: 'confirmOrder',
        query: {
          commerceId: this.commerceId
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kxy-mall-view"},[_c('div',{ref:"detailBox",staticClass:"flex-content"},[_c('div',{staticStyle:{"height":"100%"}},[_c('div',{staticClass:"show-img"},[_c('img',{staticStyle:{"width":"375px","height":"375px"},attrs:{"src":_vm.detailInfo.picUrl}})]),_vm._v(" "),_c('div',{staticClass:"good-info-mod"},[_c('div',{staticClass:"price-box"},[_c('div',{staticClass:"p1"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(_vm.detailInfo.price)+"\n          ")]),_vm._v(" "),(_vm.detailInfo.price !== _vm.detailInfo.originalPrice)?_c('div',{staticClass:"p2"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(_vm.detailInfo.originalPrice)+"\n          ")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"description-box"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.detailInfo.mdseName))]),_vm._v(" "),(_vm.detailInfo.subhead)?_c('div',{staticClass:"sub-title"},[_vm._v(_vm._s(_vm.detailInfo.subhead))]):_vm._e()]),_vm._v(" "),(_vm.detailInfo.introText)?_c('div',{staticClass:"tag-box"},[_c('div',{staticClass:"text"},[_vm._v(_vm._s(_vm.detailInfo.introText))])]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"line"}),_vm._v(" "),_c('div',{staticClass:"good-detail-mod",domProps:{"innerHTML":_vm._s(_vm.detailInfo.summary)}})])]),_vm._v(" "),_c('div',{staticClass:"foot-tab"},[_c('div',{staticClass:"right-box"},[_c('div',{staticClass:"right-box-item submit",on:{"click":_vm.submitGood}},[_vm._v("立即"+_vm._s(_vm.detailInfo.quickPay?'支付':'购买'))])])]),_vm._v(" "),_c('van-popup',{attrs:{"round":"","position":"bottom"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"popup-box"},[_c('div',{staticClass:"popup-box-header"},[_c('div',{staticClass:"imgPic"},[_c('img',{attrs:{"mode":"aspectFit","src":_vm.partPic}})]),_vm._v(" "),_c('div',{staticClass:"price"},[_vm._v("￥"+_vm._s(_vm.partPrice))]),_vm._v(" "),_c('div',{staticClass:"iconfont iconguanbi",on:{"click":function($event){_vm.show = false}}},[_c('van-icon',{attrs:{"name":"cross"}})],1)]),_vm._v(" "),_c('div',{staticClass:"popup-box-list"},[_c('div',{staticClass:"title"},[_vm._v("选择型号")]),_vm._v(" "),_c('div',{staticClass:"list-box",staticStyle:{"height":"250px"}},_vm._l((_vm.partsList),function(item,i){return _c('div',{key:i,staticClass:"list-box-item",class:{'cur':item.isSelect},on:{"click":function($event){return _vm.selectPart(item)}}},[_vm._v("\n            "+_vm._s(item.mdseName)+"\n          ")])}),0)]),_vm._v(" "),_c('div',{staticClass:"popup-box-submit"},[_c('div',{staticClass:"submit",on:{"click":_vm.confirmPart}},[_vm._v("确认")])])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(710);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e6dfc83_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1309);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3607)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-4e6dfc83"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e6dfc83_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_4e6dfc83_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_confirmOrder_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3608);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("688ad76c", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".shop-cart[data-v-4e6dfc83]{width:100%;height:100vh;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;background-color:#fff;font-family:PingFangSC-Regular}.shop-cart ::v-deep.u-model__footer__button.hairline-left[data-v-4e6dfc83]{position:relative}.shop-cart ::v-deep.u-model__footer__button.hairline-left[data-v-4e6dfc83]:after{content:\"\"}.shop-cart .noCouponDelete-pop[data-v-4e6dfc83]{text-align:center;padding-top:1.6rem}.shop-cart .noCouponDelete-pop .t1[data-v-4e6dfc83]{height:1.4rem;font-size:1rem;font-weight:600;color:#333;line-height:1.4rem}.shop-cart .noCouponDelete-pop .t2[data-v-4e6dfc83]{padding:.6rem 1.4rem 1rem;box-sizing:content-box;height:2.7rem;font-size:.9rem;font-weight:400;color:#666;line-height:1.35rem}.shop-cart .noCouponDelete-pop .t3[data-v-4e6dfc83]{height:1.4rem;background:#ffe9da;font-size:.6rem;font-weight:400;color:#ff7a38;line-height:1.4rem}.shop-cart .address-mod[data-v-4e6dfc83]{position:relative;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}.shop-cart .address-mod .line[data-v-4e6dfc83]{position:absolute;width:100%;height:2px;background:#fff url(" + escape(__webpack_require__(3609)) + ") 0 0/cover no-repeat;bottom:0;left:0}.shop-cart .address-mod .empty-box[data-v-4e6dfc83]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem;height:2.72rem;background-color:#fff}.shop-cart .address-mod .empty-box .iconyou[data-v-4e6dfc83]{font-size:.5rem;color:#888}.shop-cart .address-mod .empty-box .text[data-v-4e6dfc83]{font-size:.8rem;font-weight:600;color:#333;line-height:1.12rem}.shop-cart .address-mod .address-box[data-v-4e6dfc83]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:3.95rem}.shop-cart .address-mod .address-box .icondidian[data-v-4e6dfc83]{width:1rem;height:1rem;padding:0 .8rem;font-size:1rem;box-sizing:content-box;font-weight:700}.shop-cart .address-mod .address-box .info-text[data-v-4e6dfc83]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-right:.8rem}.shop-cart .address-mod .address-box .info-text .person-info[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:1.12rem;font-size:.8rem;font-weight:600;color:#333;line-height:1.12rem;margin-bottom:.02rem}.shop-cart .address-mod .address-box .info-text .person-info>div[data-v-4e6dfc83]{font-family:PingFangSC-Regular}.shop-cart .address-mod .address-box .info-text .person-info .iconfont[data-v-4e6dfc83]{font-size:.5rem;color:#999}.shop-cart .address-mod .address-box .info-text .address[data-v-4e6dfc83]{height:1rem;font-size:.7rem;font-weight:400;color:#999;line-height:1rem}.shop-cart .flex-content[data-v-4e6dfc83]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow-y:auto;background-color:#f5f5f5}.shop-cart .flex-content .empty-box[data-v-4e6dfc83]{height:80%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shop-cart .flex-content .empty-box .img-box[data-v-4e6dfc83]{width:7rem;height:4.5rem;margin-bottom:2px;background:url(" + escape(__webpack_require__(3610)) + ") 0 0/cover no-repeat}.shop-cart .flex-content .empty-box .text[data-v-4e6dfc83]{height:1rem;font-size:.7rem;font-weight:400;color:#333;line-height:1rem;margin-bottom:1.4rem}.shop-cart .flex-content .empty-box .btn[data-v-4e6dfc83]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:6.4rem;height:2rem;border-radius:1rem;border:1px solid #ef7549;font-size:.8rem;font-weight:400;color:#ef7549;line-height:1.12rem}.shop-cart .flex-content .info[data-v-4e6dfc83]{background:#fff;border-radius:.4rem;margin-top:.4rem;padding:.6rem;margin:.4rem .6rem 0}.shop-cart .flex-content .info .tit[data-v-4e6dfc83]{font-size:.8rem;color:#333;font-weight:700;line-height:1.12rem}.shop-cart .flex-content .info .item[data-v-4e6dfc83]{margin-top:.6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#333;font-size:.7rem}.shop-cart .flex-content .info .item[data-v-4e6dfc83]:first-child{margin-top:.8rem}.shop-cart ::v-deep.u-icon-minus[data-v-4e6dfc83],.shop-cart ::v-deep.u-icon-plus[data-v-4e6dfc83]{width:1rem;height:1rem!important;border:1px solid #eee;border-radius:1rem}.shop-cart .good-list-mod[data-v-4e6dfc83]{padding:.8rem .6rem 0}.shop-cart .good-list-mod .good-item[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background-color:#fff;padding:.8rem .6rem;border-radius:.3rem;margin-bottom:.4rem}.shop-cart .good-list-mod .good-item .left-box[data-v-4e6dfc83]{width:4rem;height:4rem;margin-right:.6rem;border-radius:.3rem;overflow:hidden;border:1px solid #f5f5f5;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}.shop-cart .good-list-mod .good-item .left-box img[data-v-4e6dfc83]{width:100%;height:100%}.shop-cart .good-list-mod .good-item .right-info[data-v-4e6dfc83]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column}.shop-cart .good-list-mod .good-item .right-info .bottom-box[data-v-4e6dfc83],.shop-cart .good-list-mod .good-item .right-info[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.shop-cart .good-list-mod .good-item .right-info .bottom-box[data-v-4e6dfc83]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shop-cart .good-list-mod .good-item .right-info .title[data-v-4e6dfc83]{font-size:.8rem;font-weight:400;color:#333;margin-bottom:.4rem}.shop-cart .good-list-mod .good-item .right-info .sub-title[data-v-4e6dfc83]{padding:1px;border-radius:1px;background-color:#ffeae0;font-size:.6rem;font-weight:400;color:#ff712a}.shop-cart .good-list-mod .good-item .right-info .price-box .p1[data-v-4e6dfc83]{font-size:.8rem;white-space:nowrap;font-weight:500;color:#ff3f3f;margin-right:.2rem}.shop-cart .good-list-mod .good-item .right-info .price-box .p2[data-v-4e6dfc83]{font-size:.6rem;white-space:nowrap;color:#999;text-decoration:line-through}.shop-cart .good-list-mod .good-item .right-info .num-box .num-btn[data-v-4e6dfc83],.shop-cart .good-list-mod .good-item .right-info .num-box[data-v-4e6dfc83]{height:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shop-cart .good-list-mod .good-item .right-info .num-box .num-btn[data-v-4e6dfc83]{width:1rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border:1px solid #eee;border-radius:.2rem}.shop-cart .good-list-mod .good-item .right-info .num-box .num[data-v-4e6dfc83]{color:#333;font-size:14px;width:1.5rem;text-align:center}.shop-cart .coupons-mod[data-v-4e6dfc83]{height:2.2rem;background-color:#fff;border-radius:.3rem;margin:0 .6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .6rem}.shop-cart .coupons-mod .icon[data-v-4e6dfc83]{width:.8rem;height:.8rem;background:#fff url(" + escape(__webpack_require__(3611)) + ") 0 0 no-repeat;background-size:cover}.shop-cart .coupons-mod .text[data-v-4e6dfc83]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1rem;font-size:.7rem;font-weight:600;color:#333;line-height:1rem;padding-left:.6rem}.shop-cart .coupons-mod .use-coupon[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shop-cart .coupons-mod .use-coupon .c-text[data-v-4e6dfc83]{height:1rem;font-size:.7rem;font-weight:600;color:#ff3f3f;line-height:1rem;padding-right:.2rem}.shop-cart .coupons-mod .use-coupon .iconyou[data-v-4e6dfc83]{font-size:.5rem}.shop-cart .coupons-mod .no-coupon[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:1rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#999;border-radius:.75rem;font-size:.7rem}.shop-cart .coupons-mod .no-coupon .c-text[data-v-4e6dfc83]{padding-right:.2rem}.shop-cart .coupons-mod .no-coupon .iconyou[data-v-4e6dfc83]{font-size:.5rem}.shop-cart .coupons-mod .coupon-box[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:1rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;background-color:#ff3f3f;border-radius:.75rem;padding:0 .3rem;font-size:.6rem}.shop-cart .coupons-mod .coupon-box .iconyou[data-v-4e6dfc83]{font-size:.5rem}.shop-cart .fixed-bar[data-v-4e6dfc83]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.shop-cart .fixed-bar .protocol[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding-bottom:.6rem;background-color:#f5f5f5;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shop-cart .fixed-bar .protocol .iconfont[data-v-4e6dfc83]{font-size:.6rem;color:#e3e4e7}.shop-cart .fixed-bar .protocol .iconduoxuan-xuanzhong[data-v-4e6dfc83]{color:#177afa}.shop-cart .fixed-bar .protocol .text[data-v-4e6dfc83]{padding-left:8rpx;height:.85rem;font-size:.6rem;font-weight:400;color:#333;line-height:.85rem}.shop-cart .fixed-bar .protocol .text .t1[data-v-4e6dfc83]{color:#177afa}.shop-cart .fixed-bar .submit-button[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3rem;background-color:#fff;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .8rem}.shop-cart .fixed-bar .submit-button .price-box[data-v-4e6dfc83]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-family:PingFangSC-Regular}.shop-cart .fixed-bar .submit-button .price-box span[data-v-4e6dfc83]{font-family:PingFangSC-Regular}.shop-cart .fixed-bar .submit-button .price-box .p1[data-v-4e6dfc83]{height:.8rem;font-size:.8rem;line-height:.8rem;margin-bottom:.4rem;color:#333}.shop-cart .fixed-bar .submit-button .price-box .p1 text[data-v-4e6dfc83]{font-weight:600;color:#ff3f3f}.shop-cart .fixed-bar .submit-button .price-box .p2[data-v-4e6dfc83]{height:.6rem;font-size:.6rem;font-weight:400;color:#999;line-height:.6rem}.shop-cart .fixed-bar .submit-button .price-box .p2 .t1[data-v-4e6dfc83]{margin-right:.3rem}.shop-cart .fixed-bar .submit-button .button-box[data-v-4e6dfc83]{width:5.2rem;height:2.25rem;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:#fe632a;border-radius:1.2rem;color:#fff;font-size:.8rem;font-weight:400;line-height:1.12rem}.shop-cart .popup-box .popup-box[data-v-4e6dfc83]{padding-bottom:12.5rem}.shop-cart .popup-box .popup-box .price[data-v-4e6dfc83]{text-align:center;height:1.4rem;padding:1.6rem 0 2.5rem;font-size:1.4rem;font-weight:600;color:#333;line-height:1.4rem}.shop-cart .popup-box .popup-box .price .fz16[data-v-4e6dfc83]{font-size:.8rem}.shop-cart .popup-box .popup-box .payBox[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:2.7rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 .8rem;position:relative}.shop-cart .popup-box .popup-box .payBox[data-v-4e6dfc83]:after{content:\"\";@include retina-one-px-border(bottom,#EEE)}.shop-cart .popup-box .popup-box .payBox .icon[data-v-4e6dfc83]{width:1rem;height:1rem;margin-right:.6rem}.shop-cart .popup-box .popup-box .payBox .icon.icon1[data-v-4e6dfc83]{background:#fff url(" + escape(__webpack_require__(3612)) + ") 0 0 no-repeat;background-size:cover}.shop-cart .popup-box .popup-box .payBox .icon.icon2[data-v-4e6dfc83]{background:#fff url(" + escape(__webpack_require__(3613)) + ") 0 0 no-repeat;background-size:cover}.shop-cart .popup-box .popup-box .payBox .text[data-v-4e6dfc83]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;font-size:.8rem;font-weight:400;color:#333;line-height:1.12rem}.shop-cart .popup-box .popup-box .payBox .iconyou[data-v-4e6dfc83]{font-size:.5rem}.shop-cart .popup-box .popup-box-header[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .8rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.3rem;position:relative}.shop-cart .popup-box .popup-box-header[data-v-4e6dfc83]:after{content:\"\";@include retina-one-px-border(bottom,#eee)}.shop-cart .popup-box .popup-box-header .text[data-v-4e6dfc83]{height:1.12rem;font-size:.8rem;font-weight:600;color:#333;line-height:1.12rem}.shop-cart .popup-box .popup-box-header .close[data-v-4e6dfc83]{height:1rem;font-size:.7rem;font-weight:400;color:#666;line-height:1rem}.shop-cart .popup-box .popup-box-list[data-v-4e6dfc83]{padding:0 .6rem}.shop-cart .popup-box .list-box-item[data-v-4e6dfc83]{height:6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:1rem;color:#a8a8a8;background:url(" + escape(__webpack_require__(3614)) + ") 0 0 no-repeat;background-size:contain;box-shadow:0 4rpx 8rpx 0 rgba(164,171,191,.1)}.shop-cart .popup-box .list-box-item .left-box[data-v-4e6dfc83]{text-align:center;width:5rem;margin-right:.7rem}.shop-cart .popup-box .list-box-item .left-box .price1[data-v-4e6dfc83]{margin-bottom:.4rem;font-weight:600;height:1.2rem;font-size:.7rem;line-height:.7rem}.shop-cart .popup-box .list-box-item .left-box .price1 text[data-v-4e6dfc83]{height:1.2rem;font-size:1.2rem;line-height:1.2rem}.shop-cart .popup-box .list-box-item .left-box .price2[data-v-4e6dfc83]{height:.6rem;font-size:.6rem;font-weight:400;line-height:.6rem}.shop-cart .popup-box .list-box-item .right-info[data-v-4e6dfc83]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;height:100%;padding:.6rem .6rem .6rem 0}.shop-cart .popup-box .list-box-item .right-info .bottom-box[data-v-4e6dfc83],.shop-cart .popup-box .list-box-item .right-info[data-v-4e6dfc83]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.shop-cart .popup-box .list-box-item .right-info .bottom-box[data-v-4e6dfc83]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.shop-cart .popup-box .list-box-item .right-info .title[data-v-4e6dfc83]{font-size:.8rem;font-weight:400;margin-bottom:.4rem}.shop-cart .popup-box .list-box-item .right-info .sub-title[data-v-4e6dfc83]{height:.6rem;line-height:.6rem;font-size:.6rem;font-weight:400}.shop-cart .popup-box .list-box-item .right-info .use-btn[data-v-4e6dfc83]{color:#fff;background-color:#a8a8a8;width:3.6rem;height:1.2rem;border-radius:.3rem;font-size:.6rem;font-weight:400;line-height:.6rem;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.shop-cart .popup-box .list-box-item.cur[data-v-4e6dfc83]{color:#ff3f3f;background:url(" + escape(__webpack_require__(3615)) + ") 0 0 no-repeat;background-size:contain}.shop-cart .popup-box .list-box-item.cur .left-box .price1[data-v-4e6dfc83]{color:#ff3f3f}.shop-cart .popup-box .list-box-item.cur .left-box .price2[data-v-4e6dfc83]{color:#ff6e6e}.shop-cart .popup-box .list-box-item.cur .right-info[data-v-4e6dfc83]{color:#333}.shop-cart .popup-box .list-box-item.cur .right-info .sub-title[data-v-4e6dfc83]{color:#999}.shop-cart .popup-box .list-box-item.cur .right-info .use-btn[data-v-4e6dfc83]{background-color:#ff3f3f}.shop-cart .popup-box .popup-box-submit[data-v-4e6dfc83]{height:10.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .8rem;position:relative}.shop-cart .popup-box .popup-box-submit[data-v-4e6dfc83]:after{content:\"\";@include retina-one-px-border(top,#eee)}.shop-cart .popup-box .popup-box-submit .submit[data-v-4e6dfc83]{height:96rpx;background:#177afa;border-radius:.3rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.8rem;font-weight:400;color:#fff;line-height:1.12rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/line.71cfc8c.png";module.exports = __webpack_require__.p + "static/img/empty.12e4b51.png";module.exports = __webpack_require__.p + "static/img/coupon.70f8161.png";module.exports = __webpack_require__.p + "static/img/wxPay.c122e17.png";module.exports = __webpack_require__.p + "static/img/aliPay.066d874.png";module.exports = __webpack_require__.p + "static/img/conponBg1.4b81e82.png";module.exports = __webpack_require__.p + "static/img/couponBg2.6c37177.png";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'ConfirmOrder',
  components: {
    'van-popup': _popup.default,
    'van-icon': _icon.default
  },
  data: function data() {
    return {
      noCoupon: false,
      agreeProtocol: true,
      userId: '',
      // 用户id
      orderId: '',
      // 订单id
      delGoodId: 0,
      // 需要删除的商品id
      addressObj: null,
      totalOriginPrice: 0,
      totalPrice: 0,
      reductionPrice: 0,
      couponItem: null,
      couponList: [],
      userCouponList: [],
      mdseList: [],
      showCoupon: false,
      showDelete2: false,
      showNoCouponDelete: false,
      show: false
    };
  },
  created: function created() {
    this.cartList();
  },
  mounted: function mounted() {
    var _this = this;
    document.addEventListener('visibilitychange', function () {
      if (!document.hidden) {
        if (_this.orderId) {
          setTimeout(function () {
            _this.checkPayStatusFn();
          }, 200);
        }
      }
    });
  },
  methods: {
    /**
     *取消删除多余商品
     **/
    cancelDeleteGood: function cancelDeleteGood() {
      this.couponItem = null;
    },
    /**
     *显示可用券
     **/
    showHaveCoupon: function showHaveCoupon() {
      this.noCoupon = true;
      this.submitOrder();
    },
    /**
     *取消支付
     **/
    cancelPayPop: function cancelPayPop() {
      this.toWebView('orderList');
    },
    /**
     *创建订单
     **/
    submitOrder: function submitOrder() {
      if (!this.addressObj) {
        (0, _toast.default)({
          message: '请选择收货地址'
        });
        return;
      }
      this.toPay(2);
      this._Util.sensorsCollect('element_click', {
        $element_name: '提交订单',
        $element_content: '提交订单',
        $moudle_type: '商城',
        $url: window.location.href,
        $title: '商城购物车'
      });
    },
    /**
     * 去支付
     * @param type  2 微信支付 1 支付宝支付
     */
    toPay: function toPay(type) {
      var _this2 = this;
      if (type === 2) {
        var commerce = this.mdseList[0];
        this._Util.post(this._Api.MALL.payCommerce, {
          addressId: commerce.virtualStatus === 0 ? this.addressObj.id : '',
          commerceId: this.$route.query.commerceId,
          quantity: commerce.num
        }, function (res) {
          _this2.orderId = res.orderId;
          window.parent.postMessage({
            message: 'miniAPPPay',
            payInfo: res.jsApiParameters
          }, '*');
        }, function () {}, this);
      }
    },
    // 检测小程序端的支付状态
    checkPayStatusFn: function checkPayStatusFn() {
      var _this3 = this;
      this._Util.post(this._Api.MALL.checkPayStatus, {
        id: this.orderId
      }, function (res) {
        _this3.orderId = '';
        if (res) {
          (0, _toast.default)({
            message: '支付成功，祝您步步高升',
            position: 'middle',
            duration: 1500
          });
          window.parent.postMessage({
            message: 'payOk'
          }, '*');
        } else {
          (0, _toast.default)({
            message: '未成功支付',
            position: 'middle',
            duration: 1500
          });
          window.parent.postMessage({
            message: 'payFail'
          }, '*');
        }
      }, function (err) {
        console.log(err);
        _this3.orderId = '';
      }, this);
    },
    /**
     * 去webview
     * @param key 跳转的key
     * @param param 入参
     * */
    toWebView: function toWebView(key, param) {
      this.$router.push({
        name: key
      });
    },
    /**
     * 获取地址
     * */
    getDefaultAddress: function getDefaultAddress() {
      var _this4 = this;
      this._Util.post(this._Api.MALL.getDefaultAddress, {}, function (res) {
        if (res) {
          _this4.addressObj = res;
        }
      }, function () {}, this);
    },
    /**
     * 获取购物车数据
     * @param isUpdateBuyNum 是否为更新购物车
     * */
    cartList: function cartList(isUpdateBuyNum) {
      var tempArr = localStorage.getItem('mallCarlist');
      this.mdseList = JSON.parse(tempArr) || [];
      if (this.mdseList.length) {
        if (this.mdseList[0].virtualStatus === 0) {
          // 实物商品
          this.getDefaultAddress();
        }
        this.countPrice();
      }
      // localStorage.removeItem('mallCarlist')
    },
    /**
     * 使用优惠券
     * @param item  当前选择优惠券信息
     * */
    userCoupon: function userCoupon(item) {
      if (item.type !== 1) return;
      var windowUrl = '';
      // #ifdef H5
      windowUrl = window.location.href;
      // #endif
      this.couponItem = item;
      this._Util.sensorsCollect('element_click', {
        $element_name: '选择代金券',
        $element_content: '选择代金券',
        $correlation_id: this.couponItem.id,
        $moudle_type: '商城',
        $url: windowUrl,
        $title: '商品详情页'
      });
      if (this.totalPrice < this.couponItem.orderAmount) {
        (0, _toast.default)({
          message: '订单金额不满足优惠券金额'
        });
        return;
      }
      this.show = false;
      if (item.isAlertCoupon === 1) {
        this.showNoCouponDelete = true;
        return;
      }
      this.countPrice();
    },
    /**
     * 打开优惠券弹层
     * */
    openCoupon: function openCoupon() {
      this.show = true;
      var windowUrl = '';
      // #ifdef H5
      windowUrl = window.location.href;
      // #endif
      this._Util.sensorsCollect('element_click', {
        $element_name: '点击代金券模块',
        $element_content: '点击代金券模块',
        $correlation_id: this.id,
        $moudle_type: '商城',
        $url: windowUrl,
        $title: '商城购物车'
      });
    },
    /**
     * 计算费用
     */
    countPrice: function countPrice() {
      var couponAmount = 0;
      if (this.couponItem) {
        couponAmount = this.couponItem.amount;
      }
      var totalOriginPrice = 0;
      var totalPrice = 0;
      // 浮点数精度计算问题
      function floatParse(expr) {
        return parseFloat(expr.toFixed(10));
      }
      if (!this.mdseList.length) return;
      this.mdseList.forEach(function (item) {
        floatParse(totalOriginPrice += floatParse(item.originalPrice * item.num));
        floatParse(totalPrice += floatParse(item.preferentialPrice * item.num));
      });
      this.totalPrice = floatParse(totalPrice - couponAmount);
      this.totalOriginPrice = totalOriginPrice;
      this.reductionPrice = floatParse(totalOriginPrice - this.totalPrice);
      if (this.couponItem) {
        this.totalPrice = this.totalPrice <= 0 ? 0.01 : this.totalPrice;
      }
    },
    // 增加数量
    addNum: function addNum(item) {
      item.num++;
      this.countPrice();
    },
    // 减少数量
    delNum: function delNum(item) {
      item.num--;
      this.countPrice();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"shop-cart"},[(_vm.mdseList[0].virtualStatus === 0)?_c('div',{staticClass:"address-mod"},[(_vm.addressObj)?_c('div',{staticClass:"address-box",on:{"click":function($event){return _vm.toWebView('locationList')}}},[_c('van-icon',{staticClass:"icondidian",attrs:{"name":"location-o"}}),_vm._v(" "),_c('div',{staticClass:"info-text"},[_c('div',{staticClass:"person-info"},[_c('div',[_vm._v(_vm._s(_vm.addressObj.receiptName)+"  "+_vm._s(_vm.addressObj.receiptPhone))]),_vm._v(" "),_c('div',{staticClass:"iconfont iconyou"})]),_vm._v(" "),_c('div',{staticClass:"address"},[_vm._v(_vm._s(_vm.addressObj.province)+_vm._s(_vm.addressObj.city)+_vm._s(_vm.addressObj.dist)+"  "+_vm._s(_vm.addressObj.address)+" ")])])],1):_vm._e(),_vm._v(" "),(!_vm.addressObj)?_c('div',{staticClass:"empty-box",on:{"click":function($event){return _vm.toWebView('locationEdit')}}},[_c('div',{staticClass:"text"},[_vm._v("暂无收货地址，点击完善")]),_vm._v(" "),_c('div',{staticClass:"iconfont iconyou"})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"line"})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"flex-content"},[_c('div',{staticClass:"good-box"},[_c('div',{staticClass:"good-list-mod"},_vm._l((_vm.mdseList),function(v,i){return _c('div',{key:i,staticClass:"good-item"},[_c('div',{staticClass:"left-box"},[_c('img',{attrs:{"mode":"aspectFill","src":v.merPicUrl}})]),_vm._v(" "),_c('div',{staticClass:"right-info"},[_c('div',[_c('div',{staticClass:"title"},[_vm._v(_vm._s(v.merName))])]),_vm._v(" "),_c('div',{staticClass:"bottom-box"},[_c('div',{staticClass:"price-box"},[_c('span',{staticClass:"p1"},[_vm._v("¥ "+_vm._s(v.preferentialPrice))]),_vm._v(" "),(v.preferentialPrice !== v.originalPrice)?_c('span',{staticClass:"p2"},[_vm._v("￥ "+_vm._s(v.originalPrice))]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"num-box"},[(v.num > 1)?_c('div',{staticClass:"num-btn",on:{"click":function($event){return _vm.delNum(v)}}},[_vm._v("-")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v(_vm._s(v.num))]),_vm._v(" "),_c('div',{staticClass:"num-btn",on:{"click":function($event){return _vm.addNum(v)}}},[_vm._v("+")])])])])])}),0)])]),_vm._v(" "),(_vm.mdseList.length)?_c('div',{staticClass:"fixed-bar"},[_c('div',{staticClass:"protocol"}),_vm._v(" "),_c('div',{staticClass:"submit-button"},[_c('div',{staticClass:"price-box"},[_c('div',{staticClass:"p1"},[_vm._v("合计："),_c('span',[_vm._v("￥"+_vm._s(_vm.totalPrice))])])]),_vm._v(" "),_c('div',{staticClass:"button-box",on:{"click":_vm.submitOrder}},[_vm._v("立即支付")])])]):_vm._e(),_vm._v(" "),_c('van-popup',{attrs:{"position":"bottom","round":""},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:"show"}},[_c('div',{staticClass:"popup-box"},[_c('div',{staticClass:"popup-box-header"},[_c('div',{staticStyle:{"opacity":"0"}},[_vm._v("取消支付")]),_vm._v(" "),_c('div',{staticClass:"text"},[_vm._v("选择代金券")]),_vm._v(" "),_c('div',{staticClass:"close",on:{"click":function($event){_vm.show = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"popup-box-list"},[_c('div',{staticClass:"list-box",staticStyle:{"height":"800rpx","padding-top":"49rpx"},attrs:{"scroll-y":"true"}},[(!_vm.couponList.length)?_c('div',[_vm._v("\n            暂无优惠券\n          ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.couponList),function(item,i){return _c('div',{key:i,staticClass:"list-box-item",class:{'cur':item.type === 1},on:{"click":function($event){return _vm.userCoupon(item)}}},[_c('div',{staticClass:"left-box"},[_c('div',{staticClass:"price1"},[_vm._v("\n                ￥"),_c('span',[_vm._v(_vm._s(item.amount))])]),_vm._v(" "),_c('div',{staticClass:"price2"},[_vm._v("满"+_vm._s(item.orderAmount)+"元可用")])]),_vm._v(" "),_c('div',{staticClass:"right-info"},[_c('div',[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.couponName))])]),_vm._v(" "),_c('div',{staticClass:"bottom-box"},[_c('div',{staticClass:"sub-title"},[_vm._v("有效期至："+_vm._s(_vm.$utils.parseTime(item.outTime,'{y}.{m}.{d}')))]),_vm._v(" "),_c('div',{staticClass:"use-btn"},[_vm._v("立即使用")])])])])})],2)])])])],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(711);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_32c56cf2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1310);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3616)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_32c56cf2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_32c56cf2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_tickCoupons_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3617);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("d266e61e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".coupon-tip{border-radius:.4rem}.coupon-tip .van-dialog__header{padding-top:.8rem;color:#333;font:700 18px/1.25rem PingFangSC-SNaNpxibold}.coupon-tip .van-dialog__message--has-title{padding:.8rem 1rem .9rem}.coupon-tip .van-dialog__footer .van-button .van-button__text{font-size:18px;color:#fe632a}.kxy-tick-coupon{width:100%;background-color:#f6f7f9;padding:.8rem}.kxy-tick-coupon .item{height:4.9rem;background-size:100% 100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.6rem}.kxy-tick-coupon .item .left{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;padding:.6rem .6rem .5rem}.kxy-tick-coupon .item .left .title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#333;font:700 16px/1.12rem PingFangSC-SNaNpxibold}.kxy-tick-coupon .item .left .time{margin-top:.2rem;color:#333;font:12px/.82rem PingFangSC-Regular}.kxy-tick-coupon .item .left .rule{margin-top:.95rem;color:#999;font:10px/1 PingFangSC-Regular;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-tick-coupon .item .left .rule img{width:.6rem;height:.6rem;margin-left:.2rem}.kxy-tick-coupon .item .right{width:4.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-tick-coupon .item .right.disable .price,.kxy-tick-coupon .item .right.disable .tip{color:#fe632a}.kxy-tick-coupon .item .right.disable .take{background:#d8d8d8;color:#fff}.kxy-tick-coupon .item .right .price{color:#fff;font:700 20px/1.4rem PingFangSC-SNaNpxibold}.kxy-tick-coupon .item .right .price span{font-size:16px}.kxy-tick-coupon .item .right .tip{color:#fff;font:10px/.7rem PingFangSC-Regular}.kxy-tick-coupon .item .right .take{text-align:center;margin-top:.5rem;height:1rem;width:3.2rem;border-radius:.8rem;background:#fff;color:#fe632a;font:10px/1rem PingFangSC-Regular}.kxy-tick-coupon .nodata{padding-top:2rem;text-align:center;font-size:14px;color:#999}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  // mixins: [MiniProLoggerMixin],
  data: function data() {
    return {
      disabLeBg: 'https://static1.kaxiuyun.com/kxy/purchase/20221109221356.jpg',
      couponBg: 'https://static1.kaxiuyun.com/kxy/purchase/20221109221404.jpg',
      dataList: [],
      loaded: false
    };
  },
  computed: {},
  watch: {},
  created: function created() {
    this.getCouponCenterListFn();
  },
  methods: {
    /**
     * 获取券列表
     * */
    getCouponCenterListFn: function getCouponCenterListFn() {
      var _this = this;
      this._Util.post(this._Api.MALL.getCouponCenterList, {}, function (res) {
        _this.loaded = true;
        if (res) {
          _this.dataList = res;
        }
      }, function () {
        _this.loaded = true;
      }, this);
    },
    showRule: function showRule(item) {
      if (item.description) {
        (0, _dialog.default)({
          className: 'coupon-tip',
          title: '使用规则',
          confirmButtonText: '我知道了',
          message: item.description
        });
      }
    },
    // 领取优惠券
    receiveConpon: function receiveConpon(item) {
      if (!item.isReceive) {
        this._Util.post(this._Api.MALL.receiveCouponInTick, {
          id: item.couponId
        }, function (res) {
          (0, _mintUi.Toast)({
            message: '恭喜您，已成功领取',
            position: 'middle',
            duration: 1500
          });
        }, function () {}, this);
      }
    },
    goConfirmOrder: function goConfirmOrder() {
      this.$router.push({
        name: 'confirmOrder',
        query: {
          commerceId: this.commerceId
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kxy-tick-coupon"},[_vm._l((_vm.dataList),function(item){return _c('div',{key:item.couponId,staticClass:"item",style:({backgroundImage: 'url(' + (item.isReceive === 1 ? _vm.disabLeBg : _vm.couponBg) +')'})},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.couponName))]),_vm._v(" "),_c('div',{staticClass:"time"},[_vm._v(_vm._s(_vm._Util.parseTime(item.startTime, '{y}.{m}.{d}'))+" - "+_vm._s(_vm._Util.parseTime(item.endTime, '{y}.{m}.{d}')))]),_vm._v(" "),_c('div',{staticClass:"rule",on:{"click":function($event){return _vm.showRule(item)}}},[_vm._v("\n        使用规则\n        "),_c('img',{attrs:{"src":"https://static1.kaxiuyun.com/kxy/purchase/20221109223213.jpg","alt":""}})])]),_vm._v(" "),_c('div',{staticClass:"right",class:{disable: item.isReceive === 1}},[_c('div',{staticClass:"price"},[_c('span',[_vm._v("￥")]),_vm._v(_vm._s(item.deductionAmount || 0))]),_vm._v(" "),_c('div',{staticClass:"tip"},[_vm._v("满"+_vm._s(item.orderAmount || 0)+"元可用")]),_vm._v(" "),_c('div',{staticClass:"take",on:{"click":function($event){return _vm.receiveConpon(item)}}},[_vm._v(_vm._s(item.isReceive === 1 ? '已领取': '立即领取'))])])])}),_vm._v(" "),(!_vm.dataList.length && _vm.loaded)?_c('div',{staticClass:"nodata"},[_vm._v("暂无可用优惠券~")]):_vm._e()],2)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(712);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_274f8a63_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1311);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3618)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_274f8a63_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_274f8a63_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3619);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("2367b7ed", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".kxy-coin{background:#f6f7f9;padding:.6rem}.kxy-coin .info{background:-webkit-gradient(linear,left top,right bottom,from(#ff9a51),to(#fe632a));background:linear-gradient(to bottom right,#ff9a51,#fe632a);padding:.6rem;border-radius:.4rem;position:relative;background:url(" + escape(__webpack_require__(3620)) + ") no-repeat;background-size:100% 100%}.kxy-coin .info p{color:#fff;font:14px/30px PingFangSC-Regular}.kxy-coin .info .price{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.3rem;color:#fff;font:700 30px/40px PingFangSC-Regular;padding-bottom:.3rem}.kxy-coin .info .price img{width:1.2rem;height:1.2rem;margin-right:.3rem}.kxy-coin .info .des{padding-top:.5rem;color:#fff;border-top:1px solid #fff;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font:12px/1 PingFangSC-Regular}.kxy-coin .info .des,.kxy-coin .info .pay-btn{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-coin .info .pay-btn{position:absolute;top:50%;right:1rem;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);padding:0 .7rem;height:1.2rem;border-radius:.7rem;color:#eee;border:1px solid #eee;font:14px/1 PingFangSC-Regular}.kxy-coin .list-box{margin-top:.6rem;background:#fff;border-radius:.4rem;padding:.2rem .6rem}.kxy-coin .list-box .item{border-top:1px solid #eee;height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-coin .list-box .item:first-child{border:none}.kxy-coin .list-box .item .van-icon{font-size:.9rem;color:#fe632a;margin-right:.3rem}.kxy-coin .list-box .item .icon{width:1rem;height:1rem;margin-right:.3rem}.kxy-coin .list-box .item span{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.kxy-coin .list-box .item .arror{width:6px;height:9px}", ""]);

// exports
module.exports = __webpack_require__.p + "static/img/1.4e13308.jpg";

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _icon.default.name, _icon.default),
  data: function data() {
    return {
      coinTotal: 0,
      cagList: ''
    };
  },
  mounted: function mounted() {
    this.getCoinCountFn();
    this.getQuickClassifyList();
  },
  destroyed: function destroyed() {},
  methods: {
    getQuickClassifyList: function getQuickClassifyList() {
      var _this = this;
      this._Util.post(this._Api.KXYCOIN.getQuickClassifyList, {
        partition: 'kxy_coin',
        terminalType: 2,
        pageNum: 1,
        pageSize: 20
      }, function (res) {
        _this.cagList = res.data || [];
      }, function () {}, this);
    },
    getCoinCountFn: function getCoinCountFn() {
      var _this2 = this;
      this._Util.post(this._Api.KXYCOIN.getCoinCount, {}, function (data) {
        _this2.coinTotal = data.coinTotal || 0;
      }, function () {}, this);
    },
    // 打开收支明细
    toWebview: function toWebview(item) {
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        var src = encodeURIComponent(item.jumpUrl);
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(src)
        });
        return;
      } else {
        window.location.href = item.jumpUrl;
      }
    },
    // 打开充值页面
    toMykxyCoin: function toMykxyCoin() {
      if (localStorage.getItem('inWxMinapp') === '1') {
        // 微信小程序
        var src = encodeURIComponent(location.origin + '/repair/personal/myKxyCoin');
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(src)
        });
        return;
      } else {
        this.$router.push({
          name: 'myKxyCoin'
        });
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kxy-coin"},[_c('div',{staticClass:"info"},[_c('p',[_vm._v("卡修币")]),_vm._v(" "),_c('div',{staticClass:"price"},[_c('img',{attrs:{"src":__webpack_require__(1476),"alt":""}}),_c('b',[_vm._v(_vm._s(_vm.coinTotal))])]),_vm._v(" "),_c('div',{staticClass:"pay-btn",on:{"click":_vm.toMykxyCoin}},[_vm._v("\n      充值\n    ")])]),_vm._v(" "),_c('div',{staticClass:"list-box"},_vm._l((_vm.cagList),function(item){return _c('div',{key:item.classifyId,staticClass:"item",on:{"click":function($event){return _vm.toWebview(item)}}},[_c('img',{staticClass:"icon",attrs:{"src":item.imgPath,"alt":"icon"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.classifyName))]),_vm._v(" "),_c('img',{staticClass:"arror",attrs:{"src":__webpack_require__(57),"alt":""}})])}),0)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/coin.de7c859.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(713);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62888b2a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1312);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3621)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62888b2a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_62888b2a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3622);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("55b3586a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".kxy-coin-list{background:#f6f7f9;padding:.6rem}.kxy-coin-list .box{border-radius:.4rem;background:#fff;padding:0 .6rem}.kxy-coin-list .box .list{padding:.5rem .4rem;border-top:1px solid #eee}.kxy-coin-list .box .list .name{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-coin-list .box .list .name p{color:#333;font-size:16px}.kxy-coin-list .box .list .name span{color:#333;font:700 16px/1 ingFangSC-Medium\\, PingFang SC}.kxy-coin-list .box .list .name span.del{color:#fe0013}.kxy-coin-list .box .list .time{margin-top:.1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.kxy-coin-list .box .list .time span{color:#666;font-size:14px}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)({}, _list.default.name, _list.default),
  data: function data() {
    return {
      loading: false,
      finished: false,
      resultList: [],
      params: {
        pageNum: 1,
        pageSize: 10
      }
    };
  },
  mounted: function mounted() {},
  destroyed: function destroyed() {},
  methods: {
    getCoinDetailedList: function getCoinDetailedList() {
      var _this = this;
      this.loading = true;
      this._Util.post(this._Api.KXYCOIN.getCoinDetailedList, this.params, function (data) {
        _this.loading = false;
        if (data && data.length) {
          _this.params.pageNum++;
          if (data.length < _this.params.pageSize) {
            _this.finished = true;
          }
          _this.resultList = _this.resultList.concat(data);
        } else {
          _this.finished = true;
        }
      }, function () {
        _this.finished = true;
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kxy-coin-list"},[_c('van-list',{attrs:{"finished":_vm.finished,"finished-text":_vm.resultList.length ? '到底了~' : (_vm.loading ? '' : '暂无收支明细~')},on:{"load":_vm.getCoinDetailedList},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:"loading"}},[_c('div',{staticClass:"box"},_vm._l((_vm.resultList),function(item,index){return _c('div',{key:index,staticClass:"list"},[_c('div',{staticClass:"name"},[_c('p',[_vm._v(_vm._s(item.remark))]),_vm._v(" "),_c('span',{class:{del: item.changeType === 2}},[_vm._v(_vm._s(item.changeType === 2 ? '-' : '+')+_vm._s(item.changeNum))])]),_vm._v(" "),_c('div',{staticClass:"time"},[_c('span',[_vm._v(_vm._s(_vm._Util.dateFormat(item.changeTime, 'yyyy-MM-dd hh:mm:ss')))])])])}),0)])],1)}
var staticRenderFns = []
exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-number-keyboard{position:fixed;bottom:0;left:0;z-index:100;width:100%;padding-bottom:22px;background-color:#f2f3f5;-webkit-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:20px 20px 0 0}.van-number-keyboard__header{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;height:34px;padding-top:6px;color:#646566;font-size:16px}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:-webkit-box;display:-webkit-flex;display:flex;padding:6px 0 0 6px}.van-number-keyboard__keys{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:3;-webkit-flex:3;flex:3;-webkit-flex-wrap:wrap;flex-wrap:wrap}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:0 16px;color:#576b95;font-size:14px;background-color:transparent;border:none;cursor:pointer}.van-number-keyboard__close:active{opacity:.7}.van-number-keyboard__sidebar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:48px;font-size:28px;line-height:1.5;background-color:#fff;border-radius:8px;cursor:pointer}.van-key--large{position:absolute;top:0;right:6px;bottom:6px;left:0;height:auto}.van-key--blue,.van-key--delete{font-size:16px}.van-key--active{background-color:#ebedf0}.van-key--blue{color:#fff;background-color:#1989fa}.van-key--blue.van-key--active{background-color:#0570db}.van-key__wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-flex-basis:33%;flex-basis:33%;box-sizing:border-box;padding:0 6px 6px 0}.van-key__wrapper--wider{-webkit-flex-basis:66%;flex-basis:66%}.van-key__delete-icon{width:32px;height:22px}.van-key__collapse-icon{width:30px;height:24px}.van-key__loading-icon{color:#fff}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/number-keyboard/index.css"],"names":[],"mappings":"AAAA,qBAAqB,eAAe,SAAS,OAAO,YAAY,WAAW,oBAAoB,yBAAyB,yBAAyB,gBAAgB,CAAC,iCAAiC,2BAA2B,CAAC,6BAA6B,kBAAkB,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,uBAAuB,YAAY,gBAAgB,cAAc,cAAc,CAAC,4BAA4B,qBAAqB,eAAe,CAAC,iCAAiC,kBAAkB,MAAM,CAAC,2BAA2B,oBAAoB,qBAAqB,aAAa,mBAAmB,CAAC,2BAA2B,oBAAoB,qBAAqB,aAAa,mBAAmB,eAAe,OAAO,uBAAuB,cAAc,CAAC,4BAA4B,kBAAkB,QAAQ,YAAY,eAAe,cAAc,eAAe,6BAA6B,YAAY,cAAc,CAAC,mCAAmC,UAAU,CAAC,8BAA8B,oBAAoB,qBAAqB,aAAa,mBAAmB,eAAe,OAAO,4BAA4B,6BAA6B,8BAA8B,qBAAqB,CAAC,4BAA4B,gBAAgB,CAAC,SAAS,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,wBAAwB,+BAA+B,uBAAuB,YAAY,eAAe,gBAAgB,sBAAsB,kBAAkB,cAAc,CAAC,gBAAgB,kBAAkB,MAAM,UAAU,WAAW,OAAO,WAAW,CAAC,gCAAgC,cAAc,CAAC,iBAAiB,wBAAwB,CAAC,eAAe,WAAW,wBAAwB,CAAC,+BAA+B,wBAAwB,CAAC,kBAAkB,kBAAkB,mBAAmB,eAAe,OAAO,uBAAuB,eAAe,sBAAsB,mBAAmB,CAAC,yBAAyB,uBAAuB,cAAc,CAAC,sBAAsB,WAAW,WAAW,CAAC,wBAAwB,WAAW,WAAW,CAAC,uBAAuB,UAAU,CAAC","file":"index.css","sourcesContent":[".van-number-keyboard{position:fixed;bottom:0;left:0;z-index:100;width:100%;padding-bottom:22px;background-color:#f2f3f5;-webkit-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:20px 20px 0 0}.van-number-keyboard__header{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;height:34px;padding-top:6px;color:#646566;font-size:16px}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:-webkit-box;display:-webkit-flex;display:flex;padding:6px 0 0 6px}.van-number-keyboard__keys{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:3;-webkit-flex:3;flex:3;-webkit-flex-wrap:wrap;flex-wrap:wrap}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:0 16px;color:#576b95;font-size:14px;background-color:transparent;border:none;cursor:pointer}.van-number-keyboard__close:active{opacity:.7}.van-number-keyboard__sidebar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:48px;font-size:28px;line-height:1.5;background-color:#fff;border-radius:8px;cursor:pointer}.van-key--large{position:absolute;top:0;right:6px;bottom:6px;left:0;height:auto}.van-key--blue,.van-key--delete{font-size:16px}.van-key--active{background-color:#ebedf0}.van-key--blue{color:#fff;background-color:#1989fa}.van-key--blue.van-key--active{background-color:#0570db}.van-key__wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-flex-basis:33%;flex-basis:33%;box-sizing:border-box;padding:0 6px 6px 0}.van-key__wrapper--wider{-webkit-flex-basis:66%;flex-basis:66%}.van-key__delete-icon{width:32px;height:22px}.van-key__collapse-icon{width:30px;height:24px}.van-key__loading-icon{color:#fff}"],"sourceRoot":""}]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3627);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("5eb8797a", content, true, {});

exports.__esModule = true;
exports.default = void 0;
var _default = {
  render: function render() {
    var h = arguments[0];
    return h("svg", {
      "attrs": {
        "viewBox": "0 0 30 24",
        "xmlns": "http://www.w3.org/2000/svg"
      }
    }, [h("path", {
      "attrs": {
        "d": "M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",
        "fill": "currentColor"
      }
    })]);
  }
};
exports.default = _default;

exports.__esModule = true;
exports.default = void 0;
var _default = {
  render: function render() {
    var h = arguments[0];
    return h("svg", {
      "attrs": {
        "viewBox": "0 0 32 22",
        "xmlns": "http://www.w3.org/2000/svg"
      }
    }, [h("path", {
      "attrs": {
        "d": "M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",
        "fill": "currentColor"
      }
    })]);
  }
};
exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _touch = __webpack_require__(103);

var _loading = _interopRequireDefault(__webpack_require__(91));

var _DeleteIcon = _interopRequireDefault(__webpack_require__(3630));

var _CollapseIcon = _interopRequireDefault(__webpack_require__(3631));

var _createNamespace = (0, _utils.createNamespace)('key'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [_touch.TouchMixin],
  props: {
    type: String,
    text: [Number, String],
    color: String,
    wider: Boolean,
    large: Boolean,
    loading: Boolean
  },
  data: function data() {
    return {
      active: false
    };
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);
  },
  methods: {
    onTouchStart: function onTouchStart(event) {
      // compatible with Vue 2.6 event bubble bug
      event.stopPropagation();
      this.touchStart(event);
      this.active = true;
    },
    onTouchMove: function onTouchMove(event) {
      this.touchMove(event);

      if (this.direction) {
        this.active = false;
      }
    },
    onTouchEnd: function onTouchEnd(event) {
      if (this.active) {
        // eliminate tap delay on safari
        // see: https://github.com/vant-ui/vant/issues/6836
        if (!this.slots('default')) {
          event.preventDefault();
        }

        this.active = false;
        this.$emit('press', this.text, this.type);
      }
    },
    genContent: function genContent() {
      var h = this.$createElement;
      var isExtra = this.type === 'extra';
      var isDelete = this.type === 'delete';
      var text = this.slots('default') || this.text;

      if (this.loading) {
        return h(_loading.default, {
          "class": bem('loading-icon')
        });
      }

      if (isDelete) {
        return text || h(_DeleteIcon.default, {
          "class": bem('delete-icon')
        });
      }

      if (isExtra) {
        return text || h(_CollapseIcon.default, {
          "class": bem('collapse-icon')
        });
      }

      return text;
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": bem('wrapper', {
        wider: this.wider
      })
    }, [h("div", {
      "attrs": {
        "role": "button",
        "tabindex": "0"
      },
      "class": bem([this.color, {
        large: this.large,
        active: this.active,
        delete: this.type === 'delete'
      }])
    }, [this.genContent()])]);
  }
});

exports.default = _default;

var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _event = __webpack_require__(59);

var _portal = __webpack_require__(1346);

var _bindEvent = __webpack_require__(102);

var _Key = _interopRequireDefault(__webpack_require__(3629));

var _createNamespace = (0, _utils.createNamespace)('number-keyboard'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _portal.PortalMixin)(), (0, _bindEvent.BindEventMixin)(function (bind) {
    if (this.hideOnClickOutside) {
      bind(document.body, 'touchstart', this.onBlur);
    }
  })],
  model: {
    event: 'update:value'
  },
  props: {
    show: Boolean,
    title: String,
    zIndex: [Number, String],
    randomKeyOrder: Boolean,
    closeButtonText: String,
    deleteButtonText: String,
    closeButtonLoading: Boolean,
    theme: {
      type: String,
      default: 'default'
    },
    value: {
      type: String,
      default: ''
    },
    extraKey: {
      type: [String, Array],
      default: ''
    },
    maxlength: {
      type: [Number, String],
      default: Number.MAX_VALUE
    },
    transition: {
      type: Boolean,
      default: true
    },
    showDeleteKey: {
      type: Boolean,
      default: true
    },
    hideOnClickOutside: {
      type: Boolean,
      default: true
    },
    safeAreaInsetBottom: {
      type: Boolean,
      default: true
    }
  },
  watch: {
    show: function show(val) {
      if (!this.transition) {
        this.$emit(val ? 'show' : 'hide');
      }
    }
  },
  computed: {
    keys: function keys() {
      if (this.theme === 'custom') {
        return this.genCustomKeys();
      }

      return this.genDefaultKeys();
    }
  },
  methods: {
    genBasicKeys: function genBasicKeys() {
      var keys = [];

      for (var i = 1; i <= 9; i++) {
        keys.push({
          text: i
        });
      }

      if (this.randomKeyOrder) {
        keys.sort(function () {
          return Math.random() > 0.5 ? 1 : -1;
        });
      }

      return keys;
    },
    genDefaultKeys: function genDefaultKeys() {
      return [].concat(this.genBasicKeys(), [{
        text: this.extraKey,
        type: 'extra'
      }, {
        text: 0
      }, {
        text: this.showDeleteKey ? this.deleteButtonText : '',
        type: this.showDeleteKey ? 'delete' : ''
      }]);
    },
    genCustomKeys: function genCustomKeys() {
      var keys = this.genBasicKeys();
      var extraKey = this.extraKey;
      var extraKeys = Array.isArray(extraKey) ? extraKey : [extraKey];

      if (extraKeys.length === 1) {
        keys.push({
          text: 0,
          wider: true
        }, {
          text: extraKeys[0],
          type: 'extra'
        });
      } else if (extraKeys.length === 2) {
        keys.push({
          text: extraKeys[0],
          type: 'extra'
        }, {
          text: 0
        }, {
          text: extraKeys[1],
          type: 'extra'
        });
      }

      return keys;
    },
    onBlur: function onBlur() {
      this.show && this.$emit('blur');
    },
    onClose: function onClose() {
      this.$emit('close');
      this.onBlur();
    },
    onAnimationEnd: function onAnimationEnd() {
      this.$emit(this.show ? 'show' : 'hide');
    },
    onPress: function onPress(text, type) {
      if (text === '') {
        if (type === 'extra') {
          this.onBlur();
        }

        return;
      }

      var value = this.value;

      if (type === 'delete') {
        this.$emit('delete');
        this.$emit('update:value', value.slice(0, value.length - 1));
      } else if (type === 'close') {
        this.onClose();
      } else if (value.length < this.maxlength) {
        this.$emit('input', text);
        this.$emit('update:value', value + text);
      }
    },
    genTitle: function genTitle() {
      var h = this.$createElement;
      var title = this.title,
          theme = this.theme,
          closeButtonText = this.closeButtonText;
      var titleLeft = this.slots('title-left');
      var showClose = closeButtonText && theme === 'default';
      var showTitle = title || showClose || titleLeft;

      if (!showTitle) {
        return;
      }

      return h("div", {
        "class": bem('header')
      }, [titleLeft && h("span", {
        "class": bem('title-left')
      }, [titleLeft]), title && h("h2", {
        "class": bem('title')
      }, [title]), showClose && h("button", {
        "attrs": {
          "type": "button"
        },
        "class": bem('close'),
        "on": {
          "click": this.onClose
        }
      }, [closeButtonText])]);
    },
    genKeys: function genKeys() {
      var _this = this;

      var h = this.$createElement;
      return this.keys.map(function (key) {
        return h(_Key.default, {
          "key": key.text,
          "attrs": {
            "text": key.text,
            "type": key.type,
            "wider": key.wider,
            "color": key.color
          },
          "on": {
            "press": _this.onPress
          }
        }, [key.type === 'delete' && _this.slots('delete'), key.type === 'extra' && _this.slots('extra-key')]);
      });
    },
    genSidebar: function genSidebar() {
      var h = this.$createElement;

      if (this.theme === 'custom') {
        return h("div", {
          "class": bem('sidebar')
        }, [this.showDeleteKey && h(_Key.default, {
          "attrs": {
            "large": true,
            "text": this.deleteButtonText,
            "type": "delete"
          },
          "on": {
            "press": this.onPress
          }
        }, [this.slots('delete')]), h(_Key.default, {
          "attrs": {
            "large": true,
            "text": this.closeButtonText,
            "type": "close",
            "color": "blue",
            "loading": this.closeButtonLoading
          },
          "on": {
            "press": this.onPress
          }
        })]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var Title = this.genTitle();
    return h("transition", {
      "attrs": {
        "name": this.transition ? 'van-slide-up' : ''
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.show
      }],
      "style": {
        zIndex: this.zIndex
      },
      "class": bem({
        unfit: !this.safeAreaInsetBottom,
        'with-title': Title
      }),
      "on": {
        "touchstart": _event.stopPropagation,
        "animationend": this.onAnimationEnd,
        "webkitAnimationEnd": this.onAnimationEnd
      }
    }, [Title, h("div", {
      "class": bem('body')
    }, [h("div", {
      "class": bem('keys')
    }, [this.genKeys()]), this.genSidebar()])])]);
  }
});

exports.default = _default;__webpack_require__(26);
__webpack_require__(74);
__webpack_require__(3626);__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(714);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_30867952_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1313);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3623)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_30867952_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_30867952_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myCoin_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3624);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("8f88ffaa", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".my-coin{background:#fff;padding:.6rem}.my-coin .coin-box{padding:1rem 0;text-align:center}.my-coin .coin-box img{width:2rem;height:2rem}.my-coin .coin-box div{margin-top:1rem;font:700 32px/1 PingFangSC-Regular}.my-coin .take-box{margin-top:1rem}.my-coin .take-box>p{color:#333;font:14px/20px PingFangSC-Regular}.my-coin .take-box ul{margin-top:.25rem;overflow:hidden}.my-coin .take-box ul li{display:inline-block;width:32%;margin-right:2%;margin-bottom:.3rem;background:#f5f5f5;border-radius:.2rem;text-align:center;padding:.3rem 0}.my-coin .take-box ul li.active{border:1px solid #fe632a}.my-coin .take-box ul li:nth-of-type(3n){margin-right:0}.my-coin .take-box ul li div b{color:#000;font:700 20px/30px PingFangSC-Regular}.my-coin .take-box ul li div span{color:#000;font-size:14px}.my-coin .take-box ul li p{margin-top:.2rem;color:#999;font:12px/1 PingFangSC-Regular}.my-coin .tabe-btn{margin-top:.8rem;height:2rem;border-radius:.3rem;color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font:16px/1 PingFangSC-Regular;background:-webkit-gradient(linear,left top,right bottom,from(#ff9a51),to(#fe632a));background:linear-gradient(to bottom right,#ff9a51,#fe632a)}.my-coin .mask{position:fixed;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,.5);z-index:10}.my-coin .mask .cont{position:absolute;top:30%;left:10%;width:80%;border-radius:.3rem;padding:.8rem 0 0;background:#fff}.my-coin .mask .cont p{text-indent:1rem;font:16px/20px PingFangSC-Regular;color:#333}.my-coin .mask .cont .num{margin:0 1rem;margin-top:.5rem;background:#f5f5f5;height:2rem;border:1px solid #eee;border-radius:.1rem;padding-left:.2rem;color:#333;font:18px/2.2rem PingFangSC-Regular}.my-coin .mask .cont>span{text-indent:1rem;color:#666;margin-top:.3rem;font:12px/1 PingFangSC-Regular}.my-coin .mask .cont .coin-btns{border-top:1px solid #eee;height:2.2rem;margin-top:.5rem}.my-coin .mask .cont .coin-btns b,.my-coin .mask .cont .coin-btns span{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;height:2rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:50%;color:#666;font-size:14px}.my-coin .mask .cont .coin-btns b{color:#fe632a;font-weight:400;border-left:1px solid #eee}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(3625);
var _numberKeyboard = _interopRequireDefault(__webpack_require__(3628));
__webpack_require__(67);
var _list = _interopRequireDefault(__webpack_require__(68));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _list.default.name, _list.default), _numberKeyboard.default.name, _numberKeyboard.default),
  data: function data() {
    return {
      resultList: [],
      curItem: {},
      customNum: '1',
      showMask: false,
      coinTotal: 0,
      orderId: ''
    };
  },
  mounted: function mounted() {
    var _this = this;
    this.getCoinRechargeList();
    this.getCoinCountFn();
    document.addEventListener('visibilitychange', function () {
      if (!document.hidden) {
        setTimeout(function () {
          if (_this.orderId) {
            _this.checkPayStatusFn();
          }
        }, 200);
      }
    });
  },
  destroyed: function destroyed() {},
  methods: {
    // 获取卡修币数量
    getCoinCountFn: function getCoinCountFn() {
      var _this2 = this;
      this._Util.post(this._Api.KXYCOIN.getCoinCount, {}, function (data) {
        _this2.coinTotal = data.coinTotal || 0;
      }, function () {}, this);
    },
    getCoinRechargeList: function getCoinRechargeList() {
      var _this3 = this;
      this.loading = true;
      this._Util.post(this._Api.KXYCOIN.getCoinRechargeList, this.parms, function (data) {
        _this3.resultList = data || [];
        if (_this3.resultList.length) {
          _this3.resultList.push({
            id: 'custom',
            name: '请输入金额',
            des: '最低可充1元'
          });
          _this3.selectMoney(_this3.resultList[0]);
        }
      }, function () {}, this);
    },
    selectMoney: function selectMoney(item) {
      if (item.id === 'custom') {
        this.showMask = true;
        this.curItem = {
          amount: this.customNum
        };
        return;
      }
      this.curItem = item;
    },
    onInput: function onInput(e) {
      this.customNum += e + '';
    },
    onDelete: function onDelete() {
      if (this.customNum) {
        var tempArr = this.customNum.split('');
        tempArr.pop();
        this.customNum = tempArr.join('');
      }
    },
    hideMask: function hideMask() {
      this.showMask = false;
    },
    keyBlur: function keyBlur() {
      var _this4 = this;
      setTimeout(function () {
        _this4.hideMask();
      }, 200);
    },
    confirm: function confirm() {
      if (!this.customNum) {
        (0, _mintUi.Toast)({
          message: '请输入金额',
          duration: 1000
        });
        return;
      }
      this.curItem.amount = Number(this.customNum);
      this.hideMask();
    },
    // 购买卡修币
    toPay: function toPay() {
      var _this5 = this;
      this._Util.post(this._Api.KXYCOIN.kaXiuCoinRecharge, {
        rechargeAmount: this.curItem.amount,
        rechargeId: this.curItem.id === 'custom' ? '' : this.curItem.id
      }, function (data) {
        _this5.orderId = data.orderId;
        _this5._Util.wxPayNew(data.jsApiParameters);
      }, function () {}, this);
    },
    // 检测小程序端的支付状态
    checkPayStatusFn: function checkPayStatusFn() {
      var _this6 = this;
      this._Util.post(this._Api.MALL.checkPayStatus, {
        id: this.orderId
      }, function (res) {
        if (res) {
          (0, _mintUi.Toast)({
            message: '支付成功',
            position: 'middle',
            duration: 1500
          });
          _this6.getCoinCountFn();
        } else {
          (0, _mintUi.Toast)({
            message: '未成功支付',
            position: 'middle',
            duration: 1500
          });
        }
        _this6.orderId = '';
      }, function (err) {
        console.log(err);
        _this6.orderId = '';
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"my-coin"},[_c('div',{staticClass:"coin-box"},[_c('img',{attrs:{"src":__webpack_require__(1476),"alt":""}}),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.coinTotal))])]),_vm._v(" "),_c('div',{staticClass:"take-box"},[_c('p',[_vm._v("卡修币充值")]),_vm._v(" "),_c('ul',_vm._l((_vm.resultList),function(item){return _c('li',{key:item.id,class:{active: _vm.curItem.id === item.id},on:{"click":function($event){return _vm.selectMoney(item)}}},[(item.id === 'custom')?[_c('div',[_c('b',{staticStyle:{"font-size":"16px"}},[_vm._v(_vm._s(item.name))])]),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.des))])]:[_c('div',[_c('b',[_vm._v(_vm._s(item.coinNum))]),_vm._v(" "),_c('span',[_vm._v("币")])]),_vm._v(" "),_c('p',[_vm._v(_vm._s(item.amount)+"元")])]],2)}),0)]),_vm._v(" "),_c('div',{staticClass:"tabe-btn",on:{"click":_vm.toPay}},[_vm._v("\n    立即充值 "+_vm._s(_vm.curItem.amount)+" 元\n  ")]),_vm._v(" "),(_vm.showMask)?_c('div',{staticClass:"mask"},[_c('div',{staticClass:"cont"},[_c('p',[_vm._v("请输入金额")]),_vm._v(" "),_c('div',{staticClass:"num"},[_vm._v(_vm._s(_vm.customNum))]),_vm._v(" "),_c('span',[_vm._v("相当于 "+_vm._s(_vm.customNum * 10)+" 卡修币")]),_vm._v(" "),_c('div',{staticClass:"coin-btns"},[_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.hideMask.apply(null, arguments)}}},[_vm._v("取消")]),_c('b',{on:{"click":function($event){$event.stopPropagation();return _vm.confirm.apply(null, arguments)}}},[_vm._v("确认")])])])]):_vm._e(),_vm._v(" "),_c('van-number-keyboard',{attrs:{"hide-on-click-outside":false,"show":_vm.showMask},on:{"blur":_vm.keyBlur,"input":_vm.onInput,"delete":_vm.onDelete}})],1)}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(715);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_feab9a20_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1314);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3632)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-feab9a20"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_feab9a20_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_feab9a20_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3633);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("eef5596c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-feab9a20]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100vh;background-color:#eee}.bcfff[data-v-feab9a20]{background-color:#fff}.search-w[data-v-feab9a20]{position:absolute;top:0;left:0;width:100%;height:2.45rem}.main[data-v-feab9a20]{padding-top:2.45rem;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.main-left[data-v-feab9a20]{height:100%;width:25%;overflow:auto}.main-body[data-v-feab9a20]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto;position:relative}.mb-w[data-v-feab9a20]{padding:.5rem;padding-bottom:0;height:100%;box-sizing:border-box}.ml-menu>li[data-v-feab9a20]{box-sizing:border-box;padding:0 .5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:2rem}.ml-menu>li .dic-name[data-v-feab9a20]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.7rem}.ml-menu>li[data-v-feab9a20]:not(:last-child){border-bottom:1px solid #efefef}.ml-menu>li.cur[data-v-feab9a20]{background:#eee;color:red;border-left:4px solid red}.one-rem[data-v-feab9a20]{font-size:1rem}.gg-w[data-v-feab9a20]{border-radius:.4rem}.nav-menu-2[data-v-feab9a20]{padding:.5rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:auto}.nav-menu-2>li[data-v-feab9a20]{margin-right:.5rem;white-space:nowrap;font-size:.7rem}.nav-menu-2>li.cur[data-v-feab9a20]{color:red;border-bottom:1px solid red}.nav-menu-3[data-v-feab9a20]{overflow:scroll;height:92.8%}.nav-menu-3>li[data-v-feab9a20]{margin-bottom:.5rem;background:#fff;border-radius:.4rem}.nm-title[data-v-feab9a20]{padding:0 .5rem;height:1.5rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.nm-title-text[data-v-feab9a20]{position:absolute;left:0;width:100%;text-align:center;font-size:.7rem}.sensor-list[data-v-feab9a20]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.sensor-list>li[data-v-feab9a20],.sensor-list[data-v-feab9a20]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.sensor-list>li[data-v-feab9a20]{margin:0;marign-top:.2rem;width:25%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.sl-img[data-v-feab9a20]{display:block;width:2.5rem;height:2.5rem}.sl-name[data-v-feab9a20]{width:90%;text-align:center}.drag[data-v-feab9a20]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#0f75ff;color:#fff;width:2.5rem;height:2.5rem;border-radius:50%;position:fixed;z-index:999999;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.drag.transition[data-v-feab9a20]{-webkit-transition:left .3s ease,top .3s ease;transition:left .3s ease,top .3s ease}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(31);
var _dialog = _interopRequireDefault(__webpack_require__(32));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(177);
var _search = _interopRequireDefault(__webpack_require__(178));
var _vant = __webpack_require__(12);
var _vueAwesomeSwiper = __webpack_require__(308);
var _jquery = _interopRequireDefault(__webpack_require__(16));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

// eslint-disable-line
__webpack_require__(309);
var _default = exports.default = {
  components: {
    Search: _search.default,
    Icon: _icon.default
  },
  data: function data() {
    return {
      value: '',
      cur: 0,
      secCur: 0,
      dictionaryList: [],
      foldStatus: [],
      secDictionaryList: [],
      carouselAdvert: [],
      // 广告列表
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      top: 0,
      left: 0,
      width: 0,
      height: 0,
      offsetWidth: 0,
      offsetHeight: 0,
      windowWidth: 0,
      windowHeight: 0,
      isMove: true,
      edge: 10,
      isDock: true,
      timing: '',
      time: 0,
      searchKeyNum: ''
    };
  },
  watch: {},
  computed: {
    // secDictionaryList() {
    //   return this.dictionaryList[this.cur].sonVehicleDictionarys
    // }
    // foldStatus() {
    //   return this.secDictionaryList.map((item, i) => i === 0)
    // }
  },
  created: function created() {
    document.title = '维修资料大全';
    // console.log(this.$route.query.isAccessControl)
    this.isAccessControl = this._Util.getParaValueByName('isAccessControl');
    this.getProductDirectoryList();
    // this.getAdListFn()
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: this.$route.query.navigationId,
      remark: '资料',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: this.$route.query.navigationId,
        remark: '资料,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    touchstart: function touchstart(e) {},
    touchmove: function touchmove(e) {
      // 单指触摸
      if (e.touches.length !== 1) {
        return false;
      }
      this.isMove = true;
      this.left = e.touches[0].clientX - this.offsetWidth;
      var clientY = e.touches[0].clientY - this.offsetHeight;
      // #ifdef H5
      clientY += this.height;
      // #endif
      var edgeBottom = this.windowHeight - this.height - this.edge;

      // 上下触及边界
      if (clientY < this.edge) {
        this.top = this.edge;
      } else if (clientY > edgeBottom) {
        this.top = edgeBottom;
      } else {
        this.top = clientY - 60;
      }
    },
    touchend: function touchend(e) {
      if (this.isDock) {
        var edgeRigth = this.windowWidth - this.width - this.edge;
        if (this.left < this.windowWidth / 2 - this.offsetWidth) {
          this.left = this.edge;
        } else {
          this.left = edgeRigth;
        }
      }
      this.isMove = false;
    },
    goContent: function goContent() {
      if (this._Util.isFromApp()) {
        uni.navigateTo({
          url: '/pages/webView/playVideo?content=' + encodeURIComponent(this.dictionaryList[this.cur].onelevelContent)
        });
        return;
      }
      this.$router.push({
        name: 'richTextNew',
        query: {
          content: this.dictionaryList[this.cur].onelevelContent
        }
      });
    },
    toggleFold: function toggleFold(i) {
      console.log("toggleFold");
      this.foldStatus[i] = !this.foldStatus[i];
      this.foldStatus = JSON.parse(JSON.stringify(this.foldStatus));
      console.log(this.foldStatus);
    },
    onSearch: function onSearch() {
      if (this.value) {
        // this.$router.push({
        //   name: 'circuit/search',
        //   query: {
        //     search: this.value,
        //     navigationId: this.$route.query.navigationId
        //   }
        // })
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 5,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.value,
          searchKey: this.searchKeyNum
        }, this);
        this._Util.publicOpenPage({
          url: location.origin + '/repair/circuit/search?search=' + this.value + '&navigationId=' + this.$route.query.navigationId + '&isAdminPass=' + this.$route.query.isAdminPass + '&isAccessControl=' + this.$route.query.isAccessControl + '&isVip=' + this.$route.query.isVip + '&isSvip=' + this.$route.query.isSvip + '&isAccess=' + this.$route.query.isAccess + '&searchKeyNum=' + this.searchKeyNum,
          appName: '搜索'
        });
      } else {
        (0, _dialog.default)({
          message: '请输入搜索关键词'
        });
      }
    },
    chooseMenu: function chooseMenu(cur) {
      if (this.cur === cur) return;
      var now = new Date();
      var userinfo = JSON.parse(localStorage.getItem('userInfo'));
      this.searchKeyNum = now.getTime() + '' + userinfo.userId;
      this._Util.collectPageViewNew({
        type: 6,
        postUrl: this._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: this.dictionaryList[this.cur].dictName,
        searchKey: this.searchKeyNum
      }, this);
      this.cur = cur;
      this.foldStatus = [];
      for (var i = 0; i < this.dictionaryList[this.cur].sonVehicleDictionarys.length; i++) {
        this.foldStatus[i] = true;
      }
      this.secDictionaryList = this.dictionaryList[this.cur].sonVehicleDictionarys;
      this.$refs.nm3[0].scrollIntoView();
      this.$nextTick(function () {
        if (this.dictionaryList[this.cur].secCur) {
          this.secCur = this.dictionaryList[this.cur].secCur;
          var element = document.getElementById('secondMenu-' + this.secCur);
          element.scrollIntoView({
            block: 'center',
            inline: 'center'
          });
        } else {
          this.secCur = 0;
          var _element = document.getElementById('secondMenu-0');
          _element.scrollIntoView({
            block: 'center',
            inline: 'center'
          });
        }
      });
      this.$nextTick(function () {
        this.windowWidth = (0, _jquery.default)(window).width();
        this.windowHeight = (0, _jquery.default)(window).height();
        var data = document.getElementById('_drag_button').getBoundingClientRect();
        this.width = data.width;
        this.height = data.height;
        this.offsetWidth = data.width / 2;
        this.offsetHeight = data.height / 2;
        this.left = this.windowWidth - this.width - this.edge;
        this.top = this.windowHeight / 2 - this.edge;
      });
    },
    chooseSecMenu: function chooseSecMenu(cur) {
      this.secCur = cur;
      this.dictionaryList[this.cur].secCur = this.secCur;
      var element = document.getElementById('secondMenu-' + cur);
      element.scrollIntoView({
        block: 'center',
        inline: 'center'
      });
      this.$refs.nm3[cur].scrollIntoView();
    },
    getProductDirectoryList: function getProductDirectoryList() {
      var _this = this;
      this._Util.post(this._Api.getProductDirectoryList, {
        'navigationId': this.$route.query.navigationId
      }, function (data) {
        _this.dictionaryList = data.dictionaryList;
        _this.secDictionaryList = _this.dictionaryList[_this.cur].sonVehicleDictionarys;
        for (var i = 0; i < _this.dictionaryList[_this.cur].sonVehicleDictionarys.length; i++) {
          _this.foldStatus[i] = true;
        }
        _this.$nextTick(function () {
          this.windowWidth = (0, _jquery.default)(window).width();
          this.windowHeight = (0, _jquery.default)(window).height();
          var data = document.getElementById('_drag_button').getBoundingClientRect();
          this.width = data.width;
          this.height = data.height;
          this.offsetWidth = data.width / 2;
          this.offsetHeight = data.height / 2;
          this.left = this.windowWidth - this.width - this.edge;
          this.top = this.windowHeight / 2 - this.edge;
        });
      }, function () {}, this);
    },
    toList: function toList(file) {
      var now = new Date();
      var userinfo = JSON.parse(localStorage.getItem('userInfo'));
      this.searchKeyNum = now.getTime() + '' + userinfo.userId;
      this._Util.collectPageViewNew({
        type: 6,
        postUrl: this._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: file.fatherDictName + file.dictName,
        searchKey: this.searchKeyNum
      }, this);
      if (this._Util.isFromApp()) {
        this._Util.publicOpenPage({
          url: location.origin + '/repair/circuit/list?st=1&dictNo=' + file.dictNo + '&navigationId=' + this.$route.query.navigationId + '&isAdminPass=' + this.$route.query.isAdminPass + '&isAccessControl=' + this.$route.query.isAccessControl + '&isVip=' + this.$route.query.isVip + '&isSvip=' + this.$route.query.isSvip + '&isAccess=' + this.$route.query.isAccess + '&searchKeyNum=' + this.searchKeyNum,
          appName: file.dictName
        });
      } else {
        this._Util.publicOpenPage({
          url: location.origin + '/repair/circuit/list?st=1&dictNo=' + file.dictNo + '&navigationId=' + this.$route.query.navigationId + '&isAdminPass=' + this.$route.query.isAdminPass + '&isAccessControl=' + this.$route.query.isAccessControl + '&isVip=' + this.$route.query.isVip + '&isSvip=' + this.$route.query.isSvip + '&isAccess=' + this.$route.query.isAccess + '&searchKeyNum=' + this.searchKeyNum,
          appName: file.dictName
        });
        // this.$router.push({
        //   name: 'circuitList',
        //   query: {
        //     dictNo: file.dictNo,
        //     navigationId: this.$route.query.navigationId,
        //     isAccessControl: this.$route.query.isAccessControl,
        //     isAdminPass: this.$route.query.isAdminPass,
        //     isVip: this.$route.query.isVip,
        //     isSvip: this.$route.query.isSvip,
        //     isAccess: this.$route.query.isAccess,
        //     searchKeyNum: this.searchKeyNum
        //   }
        // })
      }
    },
    // 获取广告位
    getAdListFn: function getAdListFn() {
      var _this2 = this;
      this._Util.post(this._Api.KAIXUYUN_LIVE.getAdList, {
        spaces: '4'
      }, function (data) {
        _this2.carouselAdvert = data || [];
        if (_this2.carouselAdvert.length) {
          _this2.$nextTick(function () {
            new Swiper('#swiper-container', {
              pagination: '.swiper-pagination',
              spaceBetween: 10,
              autoplay: 3000,
              loop: true
            });
          });
        }
      }, function () {}, this);
    },
    toAdDetail: function toAdDetail(adObj) {
      location.href = adObj.adUrl;
    }
  }
};__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(234);
__webpack_require__(1350);
__webpack_require__(2004);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2005);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("895fd880", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:10px 12px;background-color:#fff}.van-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-left:12px;background-color:#f7f8fa;border-radius:2px}.van-search__content--round{border-radius:999px}.van-search__label{padding:0 5px;color:#323233;font-size:14px;line-height:34px}.van-search .van-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:5px 8px 5px 0;background-color:transparent}.van-search .van-cell .van-field__left-icon{color:#969799}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:0 8px;color:#323233;font-size:14px;line-height:34px;cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:#f2f3f5}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/search/index.css"],"names":[],"mappings":"AAAA,YAAY,oBAAoB,qBAAqB,aAAa,yBAAyB,2BAA2B,mBAAmB,sBAAsB,kBAAkB,qBAAqB,CAAC,qBAAqB,oBAAoB,qBAAqB,aAAa,mBAAmB,eAAe,OAAO,kBAAkB,yBAAyB,iBAAiB,CAAC,4BAA4B,mBAAmB,CAAC,mBAAmB,cAAc,cAAc,eAAe,gBAAgB,CAAC,sBAAsB,mBAAmB,eAAe,OAAO,sBAAsB,4BAA4B,CAAC,4CAA4C,aAAa,CAAC,yBAAyB,eAAe,CAAC,mMAAmM,YAAY,CAAC,oBAAoB,cAAc,cAAc,eAAe,iBAAiB,eAAe,yBAAyB,gBAAgB,CAAC,2BAA2B,wBAAwB,CAAC","file":"index.css","sourcesContent":[".van-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:10px 12px;background-color:#fff}.van-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-left:12px;background-color:#f7f8fa;border-radius:2px}.van-search__content--round{border-radius:999px}.van-search__label{padding:0 5px;color:#323233;font-size:14px;line-height:34px}.van-search .van-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:5px 8px 5px 0;background-color:transparent}.van-search .van-cell .van-field__left-icon{color:#969799}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:0 8px;color:#323233;font-size:14px;line-height:34px;cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:#f2f3f5}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(14));

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _functional = __webpack_require__(90);

var _event = __webpack_require__(59);

var _field = _interopRequireDefault(__webpack_require__(58));

// Utils
// Components
var _createNamespace = (0, _utils.createNamespace)('search'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1],
    t = _createNamespace[2];

function Search(h, props, slots, ctx) {
  function Label() {
    if (slots.label || props.label) {
      return h("div", {
        "class": bem('label')
      }, [slots.label ? slots.label() : props.label]);
    }
  }

  function Action() {
    if (!props.showAction) {
      return;
    }

    function onCancel() {
      if (slots.action) {
        return;
      }

      (0, _functional.emit)(ctx, 'input', '');
      (0, _functional.emit)(ctx, 'cancel');
    }

    return h("div", {
      "class": bem('action'),
      "attrs": {
        "role": "button",
        "tabindex": "0"
      },
      "on": {
        "click": onCancel
      }
    }, [slots.action ? slots.action() : props.actionText || t('cancel')]);
  }

  var fieldData = {
    attrs: ctx.data.attrs,
    on: (0, _extends2.default)({}, ctx.listeners, {
      keypress: function keypress(event) {
        // press enter
        if (event.keyCode === 13) {
          (0, _event.preventDefault)(event);
          (0, _functional.emit)(ctx, 'search', props.value);
        }

        (0, _functional.emit)(ctx, 'keypress', event);
      }
    })
  };
  var inheritData = (0, _functional.inherit)(ctx);
  inheritData.attrs = undefined;
  return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
    "class": bem({
      'show-action': props.showAction
    }),
    "style": {
      background: props.background
    }
  }, inheritData]), [slots.left == null ? void 0 : slots.left(), h("div", {
    "class": bem('content', props.shape)
  }, [Label(), h(_field.default, (0, _babelHelperVueJsxMergeProps.default)([{
    "attrs": {
      "type": "search",
      "border": false,
      "value": props.value,
      "leftIcon": props.leftIcon,
      "rightIcon": props.rightIcon,
      "clearable": props.clearable,
      "clearTrigger": props.clearTrigger
    },
    "scopedSlots": {
      'left-icon': slots['left-icon'],
      'right-icon': slots['right-icon']
    }
  }, fieldData]))]), Action()]);
}

Search.props = {
  value: String,
  label: String,
  rightIcon: String,
  actionText: String,
  background: String,
  showAction: Boolean,
  clearTrigger: String,
  shape: {
    type: String,
    default: 'square'
  },
  clearable: {
    type: Boolean,
    default: true
  },
  leftIcon: {
    type: String,
    default: 'search'
  }
};

var _default = createComponent(Search);

exports.default = _default;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"search-w"},[_c('search',{attrs:{"show-action":"","placeholder":"请输入搜索关键词"},on:{"search":_vm.onSearch},scopedSlots:_vm._u([{key:"action",fn:function(){return [_c('div',{on:{"click":_vm.onSearch}},[_vm._v("搜索")])]},proxy:true}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}})],1),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"bcfff main-left"},[_c('ul',{staticClass:"ml-menu"},_vm._l((_vm.dictionaryList),function(item,i){return _c('li',{key:i,class:{ cur: _vm.cur === i },on:{"click":function($event){return _vm.chooseMenu(i)}}},[_c('div',{staticClass:"dic-name"},[_vm._v(_vm._s(item.dictName))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"main-body"},[_c('div',{staticClass:"mb-w"},[_c('div',{staticClass:"bcfff gg-w"},[(_vm.carouselAdvert.length)?_c('div',{staticClass:"swipper-wrap"},[_c('div',{staticClass:"swiper-container swiper-container",attrs:{"id":"swiper-container"}},[_c('div',{staticClass:"swiper-wrapper"},_vm._l((_vm.carouselAdvert),function(item,index){return _c('div',{key:index,staticClass:"swiper-slide",on:{"click":function($event){return _vm.toAdDetail(item)}}},[_c('img',{attrs:{"src":item.adImg,"alt":item.adName}})])}),0),_vm._v(" "),_c('div',{staticClass:"swiper-pagination"})])]):_vm._e()]),_vm._v(" "),_c('ul',{staticClass:"nav-menu-2"},_vm._l((_vm.secDictionaryList),function(item,i){return _c('li',{key:i,class:{ cur: _vm.secCur === i },attrs:{"id":'secondMenu-'+i},on:{"click":function($event){return _vm.chooseSecMenu(i)}}},[_vm._v(_vm._s(item.dictName))])}),0),_vm._v(" "),_c('ul',{staticClass:"nav-menu-3"},_vm._l((_vm.secDictionaryList),function(item,i){return _c('li',{key:i,ref:"nm3",refInFor:true},[(item.sonVehicleDictionarys.length&&_vm.foldStatus[i]==true)?_c('div',{staticClass:"nm-title",on:{"click":function($event){return _vm.toggleFold(i)}}},[_c('icon',{attrs:{"name":"arrow-down"}}),_vm._v(" "),_c('div',{staticClass:"nm-title-text"},[_vm._v(_vm._s(item.dictName))])],1):_c('div',{staticClass:"nm-title",on:{"click":function($event){$event.stopPropagation();return _vm.toggleFold(i)}}},[_c('icon',{attrs:{"name":"arrow"}}),_vm._v(" "),_c('div',{staticClass:"nm-title-text"},[_vm._v(_vm._s(item.dictName))])],1),_vm._v(" "),(item.sonVehicleDictionarys&&_vm.foldStatus[i]==true)?_c('ul',{staticClass:"sensor-list"},_vm._l((item.sonVehicleDictionarys),function(svd,j){return _c('li',{key:j,on:{"click":function($event){return _vm.toList(svd)}}},[_c('img',{staticClass:"sl-img",attrs:{"src":svd.pathDictImg,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"sl-name"},[_vm._v(_vm._s(svd.dictName))])])}),0):_vm._e()])}),0)])])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.dictionaryList.length>0&&_vm.dictionaryList[this.cur].onelevelContent),expression:"dictionaryList.length>0&&dictionaryList[this.cur].onelevelContent"}],staticClass:"drag",class:[{transition: _vm.isDock && !_vm.isMove }],style:('left: ' + _vm.left + 'px; top:' + _vm.top + 'px;'),attrs:{"id":"_drag_button"},on:{"touchstart":_vm.touchstart,"touchmove":function($event){$event.stopPropagation();$event.preventDefault();return _vm.touchmove.apply(null, arguments)},"touchend":_vm.touchend,"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.goContent()}}},[_c('div',[_vm._v("\n      使用\n    ")]),_vm._v(" "),_c('div',[_vm._v("\n      说明\n    ")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(716);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7173f02b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1315);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3634)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-7173f02b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7173f02b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_7173f02b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3635);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("23ce8288", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-7173f02b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100vh;background-color:#eee}.bcfff[data-v-7173f02b]{background-color:#fff}.search-w[data-v-7173f02b]{position:absolute;top:0;left:0;width:100%;height:2.45rem}.main[data-v-7173f02b]{padding-top:2.45rem;height:100%;overflow:auto}.search-list[data-v-7173f02b]{padding:.3rem}.search-list>li[data-v-7173f02b]{margin-bottom:.5rem;padding:.3rem;background:#fff;border-radius:.4rem}.sl-title[data-v-7173f02b]{font-size:.8rem;color:#000}.sl-sub[data-v-7173f02b]{margin-top:.25rem;font-size:.7rem;color:#aaa}.ztyw[data-v-7173f02b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.ztyw img[data-v-7173f02b]{width:1.5rem;height:1.5rem}.ztyw .ztyw-r[data-v-7173f02b]{margin-left:.5rem;font-size:.8rem;color:#000}.drag[data-v-7173f02b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#0f75ff;color:#fff;width:2.5rem;height:2.5rem;border-radius:50%;position:fixed;z-index:999999;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.drag.transition[data-v-7173f02b]{-webkit-transition:left .3s ease,top .3s ease;transition:left .3s ease,top .3s ease}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(177);
var _search = _interopRequireDefault(__webpack_require__(178));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _search.default,
    Icon: _icon.default
  },
  data: function data() {
    return {
      search: this.$route.query.search,
      searchKeyNum: this.$route.query.searchKeyNum,
      cur: 0,
      fileList: [],
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      currentPage: 0,
      data: {},
      doubleClick: false,
      top: 0,
      left: 0,
      width: 0,
      height: 0,
      offsetWidth: 0,
      offsetHeight: 0,
      windowWidth: 0,
      windowHeight: 0,
      isMove: true,
      edge: 10,
      isDock: true,
      timing: '',
      time: 0
      // secDictionaryList: []
    };
  },
  watch: {},
  computed: {
    // secDictionaryList() {
    //   return this.dictionaryList[this.cur].sonVehicleDictionarys
    // }
  },
  created: function created() {
    document.title = '维修资料大全';
    this.isAdminPass = this.$route.query.isAdminPass;
    this.isAccessControl = this.$route.query.isAccessControl;
    this.isVip = this.$route.query.isVip;
    this.isSvip = this.$route.query.isSvip;
    this.isAccess = this.$route.query.isAccess;
    this.getLowerStrataDataList(1);
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: this.$route.query.dictNo,
      remark: '资料列表',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: this.$route.query.dictNo,
        remark: '资料,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    touchstart: function touchstart(e) {},
    touchmove: function touchmove(e) {
      // 单指触摸
      if (e.touches.length !== 1) {
        return false;
      }
      this.isMove = true;
      this.left = e.touches[0].clientX - this.offsetWidth;
      var clientY = e.touches[0].clientY - this.offsetHeight;
      // #ifdef H5
      clientY += this.height;
      // #endif
      var edgeBottom = this.windowHeight - this.height - this.edge;

      // 上下触及边界
      if (clientY < this.edge) {
        this.top = this.edge;
      } else if (clientY > edgeBottom) {
        this.top = edgeBottom;
      } else {
        this.top = clientY - 60;
      }
    },
    touchend: function touchend(e) {
      if (this.isDock) {
        var edgeRigth = this.windowWidth - this.width - this.edge;
        if (this.left < this.windowWidth / 2 - this.offsetWidth) {
          this.left = this.edge;
        } else {
          this.left = edgeRigth;
        }
      }
      this.isMove = false;
    },
    goContent: function goContent() {
      this.$router.push({
        name: 'richTextNew',
        query: {
          content: this.data.onelevelContent
        }
      });
    },
    handleScroll: function handleScroll() {
      var container = this.$refs.scrollContainer; // 获取容器元素
      // 检查是否滚动到底部
      if (container.scrollTop + container.clientHeight >= container.scrollHeight - 100) {
        if (this.data.fileList.length == 20) {
          this.getLowerStrataDataList();
        }
      }
    },
    onClear: function onClear() {
      this.search = '';
    },
    chooseMenu: function chooseMenu(cur) {
      this.cur = cur;
      // this.secDictionaryList = this.dictionaryList[this.cur].sonVehicleDictionarys
    },
    onSearch: function onSearch() {
      if (this.value) {
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 5,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.value,
          searchKey: this.searchKeyNum
        }, this);
        this.$router.push({
          name: 'circuit/search',
          query: {
            search: this.value,
            navigationId: this.$route.query.navigationId,
            isAdminPass: this.$route.query.isAdminPass,
            isAccessControl: this.$route.query.isAccessControl,
            isVip: this.$route.query.isVip,
            isSvip: this.$route.query.isSvip,
            isAccess: this.$route.query.isAccess,
            searchKeyNum: this.searchKeyNum,
            level: this.$route.query.level
          }
        });
      } else {
        Dialog({
          message: '请输入搜索关键词'
        });
      }
    },
    getLowerStrataDataList: function getLowerStrataDataList(page) {
      var _this = this;
      if (this.doubleClick == true) {
        return;
      } else {
        this.doubleClick = true;
      }
      if (page == 1) {
        this.currentPage = 1;
        this.fileList = [];
      } else {
        this.currentPage = this.currentPage + 1;
      }
      this._Util.post(this._Api.getLowerStrataDataList, {
        'dictNo': this.$route.query.dictNo,
        'navigationId': this.$route.query.navigationId,
        'pageNum': this.currentPage,
        'pageSize': 20,
        'level': this.$route.query.level
      }, function (data) {
        // this.fileList = data.fileList
        _this.doubleClick = false;
        _this.data = data;
        if (_this.$route.query.level == 1) {
          _this.data.onelevelContent = _this.$route.query.content;
        }
        _this.fileList = _this.fileList.concat(data.fileList);
        _this.$nextTick(function () {
          this.windowWidth = $(window).width();
          this.windowHeight = $(window).height();
          var data = document.getElementById('_drag_button').getBoundingClientRect();
          this.width = data.width;
          this.height = data.height;
          this.offsetWidth = data.width / 2;
          this.offsetHeight = data.height / 2;
          this.left = this.windowWidth - this.width - this.edge;
          this.top = this.windowHeight / 2 - this.edge;
        });
      }, function () {}, this);
    },
    getPicList: function getPicList(file) {
      var that = this;
      /* 从搜索结果页进入图集*/
      // if (that.$route.query.fromPage == 'soso') {
      that._Util.post(that._Api.HOSTOLD + 'search-api/product/getDataDetails', {
        dataNo: file.fileNo,
        navigationId: this.$route.query.navigationId,
        pageNum: 1,
        pageSize: 20
      }, function (data) {
        // that.pdfSrc = data.fileUrl
        // that.isCollect = data.isCollect
        uni.navigateTo({
          url: '/data-subpackage/pages/preview/preview?src=' + encodeURIComponent(data.fileUrl)
        });
      }, function () {}, that);
      return;
      // }
    },
    toDetail: function toDetail(file) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo, _src, src;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              _context.next = 1;
              return _this2._Util.getUserInfo(_this2);
            case 1:
              userinfo = _context.sent;
              if (!(_this2.isAdminPass == 0)) {
                _context.next = 3;
                break;
              }
              if (!(_this2.isAccessControl == 1)) {
                _context.next = 3;
                break;
              }
              if (_this2._Util.isSVip(userinfo.userVipType)) {
                _context.next = 3;
                break;
              }
              if (!(_this2.isSvip == 1 && _this2.isAccess != 1)) {
                _context.next = 2;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this2.clickFlag = true;
                } else {
                  _this2.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 2:
              if (_this2._Util.isVip(userinfo.userVipType)) {
                _context.next = 3;
                break;
              }
              if (!(_this2.isVip == 1 && _this2.isAccess != 1)) {
                _context.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this2.clickFlag = true;
                } else {
                  _this2.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 3:
              _this2._Util.collectPageViewNew({
                type: 1,
                postUrl: _this2._Api.POST_COLLECT_NEW,
                source: _this2.searchKeyNum ? '搜索' : '',
                target: file.fileId,
                remark: '资料详情',
                searchKey: _this2.searchKeyNum
              }, _this2);
              if (!_this2._Util.isApp()) {
                _context.next = 5;
                break;
              }
              if (!(file.fileType.toUpperCase() == 'PDF')) {
                _context.next = 4;
                break;
              }
              _this2._Util.publicOpenPage({
                url: _this2._Util.openPDFFile(_this2._Api.HOSTOLD + 'api/management/filePDFView.html?st=1&fileNo=' + file.fileNo),
                appName: file.dictName
              });
              return _context.abrupt("return");
            case 4:
              _this2._Util.publicOpenPage({
                url: location.origin + '/repair/business/pay/picList?st=1&isScale=1&pageNum=1&pageSize=3&type=1&fileNo=' + file.fileNo + '&fromPage=soso&title=' + file.fileName.replace(/red/g, '#666'),
                appName: file.dictName
              });
              _context.next = 7;
              break;
            case 5:
              if (!(file.fileType.toUpperCase() == 'PDF' || file.fileType == 'application/pdf')) {
                _context.next = 6;
                break;
              }
              _src = encodeURIComponent(location.origin + '/fileView/fileView?fileNo=' + file.fileNo + '&navigationId=' + _this2.$route.query.navigationId + '&fileId=' + file.fileId + '&isAdminPass=' + _this2.$route.query.isAdminPass + '&isAccessControl=' + _this2.$route.query.isAccessControl + '&isVip=' + _this2.$route.query.isVip + '&isSvip=' + _this2.$route.query.isSvip + '&isAccess=' + _this2.$route.query.isAccess + '&fromPage=soso&title=' + file.fileName.replace(/red/g, '#666') + '&level=' + _this2.$route.query.level);
              uni.navigateTo({
                // eslint-disable-line
                url: "/pages/webView/webView?src=".concat(_src)
              });
              // this.getPicList(file);
              // this.$router.push({
              //   name: 'fileView',
              //   query: {
              //     fileId: file.fileId,
              //     fileNo: file.fileNo,
              //     navigationId: this.$route.query.navigationId,
              //     isAdminPass: this.$route.query.isAdminPass,
              //     isAccessControl: this.$route.query.isAccessControl,
              //     isVip: this.$route.query.isVip,
              //     isSvip: this.$route.query.isSvip,
              //     isAccess: this.$route.query.isAccess,
              //     fromPage: 'soso',
              //     title: file.fileName.replace(/red/g, '#666'),
              //     level: this.$route.query.level
              //   }
              // })
              return _context.abrupt("return");
            case 6:
              src = encodeURIComponent(location.origin + '/repair/business/pay/picList?isScale=1&pageNum=1&pageSize=3&type=1&fileNo=' + file.fileNo + '&navigationId=' + _this2.$route.query.navigationId + '&fileId=' + file.fileId + '&isAdminPass=' + _this2.$route.query.isAdminPass + '&isAccessControl=' + _this2.$route.query.isAccessControl + '&isVip=' + _this2.$route.query.isVip + '&isSvip=' + _this2.$route.query.isSvip + '&isAccess=' + _this2.$route.query.isAccess + '&fromPage=soso&title=' + file.fileName.replace(/red/g, '#666') + '&level=' + _this2.$route.query.level);
              uni.navigateTo({
                // eslint-disable-line
                url: "/pages/webView/webView?src=".concat(src)
              });
              // this.$router.push({
              //   name: 'picList',
              //   query: {
              //     isScale: 1,
              //     pageNum: 1,
              //     pageSize: 3,
              //     type: 1,
              //     fileNo: file.fileNo,
              //     navigationId: this.$route.query.navigationId,
              //     fileId: file.fileId,
              //     isAdminPass: this.$route.query.isAdminPass,
              //     isAccessControl: this.$route.query.isAccessControl,
              //     isVip: this.$route.query.isVip,
              //     isSvip: this.$route.query.isSvip,
              //     isAccess: this.$route.query.isAccess,
              //     fromPage: 'soso',
              //     title: file.fileName.replace(/red/g, '#666'),
              //     level: this.$route.query.level
              //   }
              // })
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"search-w"},[_c('search',{attrs:{"show-action":"","placeholder":"请输入搜索关键词"},on:{"search":_vm.onSearch},scopedSlots:_vm._u([{key:"action",fn:function(){return [_c('div',{on:{"click":_vm.onSearch}},[_vm._v("搜索")])]},proxy:true}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}})],1),_vm._v(" "),_c('div',{staticClass:"main",on:{"scroll":_vm.handleScroll}},[_c('ul',{ref:"scrollContainer",staticClass:"search-list"},_vm._l((_vm.fileList),function(detail,i){return _c('li',{key:i,on:{"click":function($event){return _vm.toDetail(detail)}}},[_c('div',{staticClass:"ztyw"},[_c('img',{attrs:{"src":__webpack_require__(212),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"ztyw-r",domProps:{"innerHTML":_vm._s(detail.fileName.replace(/\.(jpg|png|pdf|JPG|PNG|PDF)$/i, ''))}})])])}),0)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.data.onelevelContent),expression:"data.onelevelContent"}],staticClass:"drag",class:[{transition: _vm.isDock && !_vm.isMove }],style:('left: ' + _vm.left + 'px; top:' + _vm.top + 'px;'),attrs:{"id":"_drag_button"},on:{"touchstart":_vm.touchstart,"touchmove":function($event){$event.stopPropagation();$event.preventDefault();return _vm.touchmove.apply(null, arguments)},"touchend":_vm.touchend,"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.goContent()}}},[_c('div',[_vm._v("\n        使用\n      ")]),_vm._v(" "),_c('div',[_vm._v("\n        说明\n      ")])])])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/fileIcon.aa9eb19.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(717);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1d07c0df_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1316);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3636)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1d07c0df"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_search_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1d07c0df_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1d07c0df_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_search_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3637);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4f1d5195", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-1d07c0df]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100vh;background-color:#eee}.bcfff[data-v-1d07c0df]{background-color:#fff}.search-w[data-v-1d07c0df]{position:absolute;top:0;left:0;width:100%;height:2.45rem}.main[data-v-1d07c0df]{padding-top:2.45rem;height:100%;overflow:auto}.search-list[data-v-1d07c0df]{padding:.5rem}.search-list>li[data-v-1d07c0df]{margin-bottom:.5rem;padding:.5rem;background:#fff;border-radius:.4rem}.sl-title[data-v-1d07c0df]{font-size:.8rem;color:#000}.sl-sub[data-v-1d07c0df]{margin-top:.25rem;font-size:.7rem;color:#aaa}.ztyw[data-v-1d07c0df]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.ztyw img[data-v-1d07c0df]{width:1.5rem;height:1.5rem}.ztyw .ztyw-r[data-v-1d07c0df]{margin-left:.5rem;font-size:.8rem;color:#000}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(177);
var _search = _interopRequireDefault(__webpack_require__(178));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _search.default,
    Icon: _icon.default
  },
  data: function data() {
    return {
      search: this.$route.query.search,
      searchKeyNum: this.$route.query.searchKeyNum,
      cur: 0,
      fileList: [],
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      timing: '',
      time: 0
      // secDictionaryList: []
    };
  },
  watch: {},
  computed: {
    // secDictionaryList() {
    //   return this.dictionaryList[this.cur].sonVehicleDictionarys
    // }
  },
  created: function created() {
    document.title = '维修资料大全';
    this.isAdminPass = this.$route.query.isAdminPass;
    this.isAccessControl = this.$route.query.isAccessControl;
    this.isVip = this.$route.query.isVip;
    this.isSvip = this.$route.query.isSvip;
    this.isAccess = this.$route.query.isAccess;
    this.searchDataList();
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: this.$route.query.navigationId,
      remark: '资料搜索',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: this.$route.query.navigationId,
        remark: '资料,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    onClear: function onClear() {
      this.search = '';
    },
    chooseMenu: function chooseMenu(cur) {
      this.cur = cur;
      // this.secDictionaryList = this.dictionaryList[this.cur].sonVehicleDictionarys
    },
    searchDataList: function searchDataList() {
      var _this = this;
      this._Util.post(this._Api.searchDataList, {
        'keyword': this.search,
        'navigationId': this.$route.query.navigationId,
        'pageNum': 1,
        'pageSize': 100,
        'level': this.$route.query.level
      }, function (data) {
        _this.fileList = data.fileList;
      }, function () {}, this);
    },
    toDetail: function toDetail(file) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this2._Util.isFromApp()) {
                _context.next = 2;
                break;
              }
              _context.next = 1;
              return _this2._Util.getUserInfo(_this2);
            case 1:
              userinfo = _context.sent;
            case 2:
              if (!(_this2.isAdminPass == 0)) {
                _context.next = 4;
                break;
              }
              if (!(_this2.isAccessControl == 1)) {
                _context.next = 4;
                break;
              }
              if (_this2._Util.isSVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(_this2.isSvip == 1 && _this2.isAccess != 1)) {
                _context.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this2.clickFlag = true;
                } else {
                  _this2.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 3:
              if (_this2._Util.isVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(_this2.isVip == 1 && _this2.isAccess != 1)) {
                _context.next = 4;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this2.clickFlag = true;
                } else {
                  _this2.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 4:
              _this2._Util.collectPageViewNew({
                type: 1,
                postUrl: _this2._Api.POST_COLLECT_NEW,
                source: _this2.searchKeyNum ? '搜索' : '',
                target: file.fileId,
                remark: '资料详情',
                searchKey: _this2.searchKeyNum
              }, _this2);
              if (!_this2._Util.isApp()) {
                _context.next = 6;
                break;
              }
              if (!(file.fileType.toUpperCase() == 'PDF')) {
                _context.next = 5;
                break;
              }
              _this2._Util.publicOpenPage({
                url: _this2._Util.openPDFFile(_this2._Api.HOSTOLD + 'api/management/filePDFView.html?st=1&fileNo=' + file.fileNo),
                appName: file.dictName
              });
              return _context.abrupt("return");
            case 5:
              _this2._Util.publicOpenPage({
                url: location.origin + '/repair/business/pay/picList?st=1&isScale=1&pageNum=1&pageSize=3&type=1&fileNo=' + file.fileNo + '&fromPage=soso&title=' + file.fileName.replace(/red/g, '#666'),
                appName: file.dictName
              });
              _context.next = 8;
              break;
            case 6:
              if (!(file.fileType.toUpperCase() == 'PDF' || file.fileType == 'application/pdf')) {
                _context.next = 7;
                break;
              }
              _this2.$router.push({
                name: 'fileView',
                query: {
                  fileId: file.fileId,
                  fileNo: file.fileNo,
                  navigationId: _this2.$route.query.navigationId,
                  isAdminPass: _this2.$route.query.isAdminPass,
                  isAccessControl: _this2.$route.query.isAccessControl,
                  isVip: _this2.$route.query.isVip,
                  isSvip: _this2.$route.query.isSvip,
                  isAccess: _this2.$route.query.isAccess,
                  fromPage: 'soso',
                  title: file.fileName.replace(/red/g, '#666'),
                  level: _this2.$route.query.level
                }
              });
              return _context.abrupt("return");
            case 7:
              _this2.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  pageNum: 1,
                  pageSize: 3,
                  type: 2,
                  fileNo: file.fileNo,
                  navigationId: _this2.$route.query.navigationId,
                  fileId: file.fileId,
                  isAdminPass: _this2.$route.query.isAdminPass,
                  isAccessControl: _this2.$route.query.isAccessControl,
                  isVip: _this2.$route.query.isVip,
                  isSvip: _this2.$route.query.isSvip,
                  isAccess: _this2.$route.query.isAccess,
                  fromPage: 'soso',
                  title: file.fileName,
                  level: _this2.$route.query.level
                }
              });
            case 8:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"search-w"},[_c('search',{attrs:{"show-action":"","placeholder":"请输入搜索关键词"},scopedSlots:_vm._u([{key:"action",fn:function(){return [_c('div',{on:{"click":_vm.searchDataList}},[_vm._v("搜索")])]},proxy:true}]),model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:"search"}})],1),_vm._v(" "),_c('div',{staticClass:"main"},[_c('ul',{staticClass:"search-list"},_vm._l((_vm.fileList),function(detail,i){return _c('li',{key:i,on:{"click":function($event){return _vm.toDetail(detail)}}},[_c('div',{staticClass:"ztyw"},[_c('img',{attrs:{"src":__webpack_require__(212),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"ztyw-r",domProps:{"innerHTML":_vm._s(detail.fileName)}})])])}),0)])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(718);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6aab5e4d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1317);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3638)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6aab5e4d"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6aab5e4d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6aab5e4d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_searchAll_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3639);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("dde09784", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-6aab5e4d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100vh;background-color:#eee}.bcfff[data-v-6aab5e4d]{background-color:#fff}.search-w[data-v-6aab5e4d]{position:fixed;top:0;left:0;width:100%;height:2.45rem}.main[data-v-6aab5e4d]{padding-top:4.7rem;height:100%;overflow:auto}.sl-title[data-v-6aab5e4d]{font-size:.8rem;color:#000}.sl-sub[data-v-6aab5e4d]{margin-top:.25rem;font-size:.7rem;color:#aaa}.ztyw[data-v-6aab5e4d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.ztyw img[data-v-6aab5e4d]{width:3rem;height:3rem}.ztyw .ztyw-r[data-v-6aab5e4d]{margin-left:.5rem;font-size:.8rem;color:#000}.tab-list[data-v-6aab5e4d]{position:fixed;width:100%;background:#fff;left:0;top:2.45rem;overflow-x:scroll;white-space:nowrap}.tab-list[data-v-6aab5e4d]::-webkit-scrollbar{display:none}.tab-list .tab-select[data-v-6aab5e4d]{display:inline-block;padding:.4rem 0;margin:0 .5rem;line-height:1.2rem;font-weight:800;color:#000;font-size:15px}.tab-list .tab-select .line[data-v-6aab5e4d]{width:1.1rem;height:.2rem;background:#0f75ff;border-radius:10px;margin:0 auto}.tab-list .active[data-v-6aab5e4d]{color:#0f75ff}.search-list[data-v-6aab5e4d]{margin:.6rem;background:#fff;border-radius:6px}.search-list .search-type[data-v-6aab5e4d]{font-size:15px;color:#000;font-weight:800}.search-list .search-info[data-v-6aab5e4d],.search-list .search-type[data-v-6aab5e4d]{padding:.5rem;border-bottom:1px solid #d6d6d6}.search-list .search-info .name[data-v-6aab5e4d]{color:#000;margin-bottom:.3rem}.search-list .search-more[data-v-6aab5e4d]{padding:.5rem;color:#000;text-align:center}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(177);
var _search = _interopRequireDefault(__webpack_require__(178));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _search.default,
    Icon: _icon.default
  },
  data: function data() {
    return {
      search: this.$route.query.search,
      cur: 0,
      fileList: [],
      searchList: [],
      tabList: [{
        id: '',
        name: '全部'
      }],
      active: 0,
      currentPage: 1,
      data: {},
      timing: '',
      time: 0,
      searchKeyNum: ''
      // secDictionaryList: []
    };
  },
  computed: {
    // secDictionaryList() {
    //   return this.dictionaryList[this.cur].sonVehicleDictionarys
    // }
  },
  watch: {},
  created: function created() {
    document.title = '维修资料大全';
    this.searchDataList();
    this.getTypeSearchList();
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '资料搜索',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '资料搜索,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    searchBySearchKey: function searchBySearchKey() {
      if (this.search && this.tabList[this.active].name != '论坛') {
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 5,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.search,
          searchKey: this.searchKeyNum
        }, this);
      }
      var specialCharPattern = /[!@#$%^&*()_+\[\]{}|;:'",.<>?\\/]/;
      if (specialCharPattern.test(this.search)) {
        (0, _mintUi.Toast)({
          message: '存在特殊字符,请修改后再提交',
          position: 'middle',
          duration: 1500
        });
        return;
      }
      this.active == 0 ? this.getTypeSearchList(1) : this.getSearchListByType(1);
    },
    handleScroll: function handleScroll() {
      var container = this.$refs.scrollContainer; // 获取容器元素
      // 检查是否滚动到底部
      if (container.scrollTop + container.clientHeight >= container.scrollHeight - 100) {
        if (this.data.children.length == 20) {
          if (this.active != 0) {
            this.currentPage++;
            this.getSearchListByType();
          }
        }
      }
    },
    changeActive: function changeActive(index) {
      this.active = index;
      if (this.search && this.tabList[this.active].name != '论坛') {
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 6,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.tabList[this.active].name,
          searchKey: this.searchKeyNum
        }, this);
      }
      if (index == 0) {
        this.getTypeSearchList(1);
      } else {
        this.getSearchListByType(1);
      }
    },
    onClear: function onClear() {
      this.search = '';
    },
    chooseMenu: function chooseMenu(cur) {
      this.cur = cur;
      // this.secDictionaryList = this.dictionaryList[this.cur].sonVehicleDictionarys
    },
    searchDataList: function searchDataList() {
      var _this = this;
      this._Util.post(this._Api.getTypeList, {}, function (data) {
        _this.tabList = _this.tabList.concat(data);
        // 获取到 container 整个盒子
        var container = document.querySelector('.tab-list');

        // 获取包裹盒子 container.offsetWidth
        var containerW = container.offsetWidth;

        // 找到所有需要被点击的 item 的集合
        var itemList = document.querySelectorAll('.tab-select');

        // 遍历数组
        var _loop = function _loop(i) {
          // 给每个元素添加点击事件
          itemList[i].onclick = function () {
            // 获取到当前点击元素的 offsetLeft  - 包裹盒子 offsetWidth 的一半 + 当前点击元素 offsetWidth 的一半
            var scrollLeftNum = itemList[i].offsetLeft - containerW / 2 + itemList[i].offsetWidth / 2;
            // 赋值
            container.scrollLeft = scrollLeftNum;
          };
        };
        for (var i = 0; i < itemList.length; i++) {
          _loop(i);
        }
      }, function () {}, this);
    },
    getTypeSearchList: function getTypeSearchList() {
      var _this2 = this;
      this._Util.post(this._Api.getTypeSearchList, {
        'searchKey': this.search
      }, function (data) {
        _this2.searchList = data;
      }, function () {}, this);
    },
    getSearchListByType: function getSearchListByType(page) {
      var _this3 = this;
      var that = this;
      if (page == 1) {
        this.currentPage = 1;
        this.searchList = [];
      }
      this._Util.post(this._Api.getSearchListByType, {
        'searchKey': this.search,
        'id': this.tabList[this.active].id,
        'level': this.tabList[this.active].level,
        'pageNum': this.currentPage,
        'pageSize': 20
      }, function (data) {
        console.log(data);
        _this3.data = data;
        if (page == 1) {
          that.searchList = [data];
        } else {
          that.searchList[0].children = that.searchList[0].children.concat(data.children);
        }
      }, function () {}, this);
    },
    toDetail: function toDetail(file, index, index2) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (!(_this4.searchList[index].id == 'luntan')) {
                _context.next = 1;
                break;
              }
              _this4.$router.push({
                name: 'newArticleDetail',
                query: {
                  articleId: file.id
                }
              });
              _context.next = 8;
              break;
            case 1:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this4._Util.isFromApp()) {
                _context.next = 3;
                break;
              }
              _context.next = 2;
              return _this4._Util.getUserInfo(_this4);
            case 2:
              userinfo = _context.sent;
            case 3:
              if (!(userinfo.userVipType == 0)) {
                _context.next = 4;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料会员专享,请您先开通会员再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1'
                  });
                  _this4.clickFlag = true;
                } else {
                  _this4.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 4:
              _this4._Util.collectPageViewNew({
                type: 1,
                postUrl: _this4._Api.POST_COLLECT_NEW,
                source: _this4.searchKeyNum ? '搜索' : '',
                target: file.id,
                remark: '资料详情',
                searchKey: _this4.searchKeyNum
              }, _this4);
              if (!_this4._Util.isApp()) {
                _context.next = 6;
                break;
              }
              if (!(file.fileType.toUpperCase() == 'PDF')) {
                _context.next = 5;
                break;
              }
              _this4._Util.publicOpenPage({
                url: _this4._Util.openPDFFile(_this4._Api.HOSTOLD + 'api/management/filePDFView.html?st=1&fileNo=' + file.fileNo),
                appName: file.dictName
              });
              return _context.abrupt("return");
            case 5:
              _this4._Util.publicOpenPage({
                url: location.origin + '/repair/business/pay/picList?st=1&isScale=1&pageNum=1&pageSize=3&type=1&fileNo=' + file.fileNo + '&fromPage=soso&title=' + file.fileName.replace(/red/g, '#666'),
                appName: file.dictName
              });
              _context.next = 8;
              break;
            case 6:
              if (!(file.fileType.toUpperCase() == 'PDF' || file.fileType == 'application/pdf')) {
                _context.next = 7;
                break;
              }
              _this4.$router.push({
                name: 'fileView',
                query: {
                  fileId: file.id,
                  fileNo: file.fileNo,
                  navigationId: _this4.searchList[index].id,
                  fromPage: 'soso'
                }
              });
              return _context.abrupt("return");
            case 7:
              _this4.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: file.fileNo,
                  navigationId: _this4.searchList[index].id,
                  fileId: file.id,
                  fromPage: 'soso',
                  title: file.name.replace(/red/g, '#666')
                }
              });
            case 8:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"search-w"},[_c('search',{attrs:{"show-action":"","placeholder":"请输入搜索关键词","background":"#0f75ff"},scopedSlots:_vm._u([{key:"action",fn:function(){return [_c('div',{staticStyle:{"color":"#ffffff"},on:{"click":_vm.searchBySearchKey}},[_vm._v("搜索")])]},proxy:true}]),model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:"search"}})],1),_vm._v(" "),_c('div',{staticClass:"tab-list"},_vm._l((_vm.tabList),function(d,index){return _c('div',{key:index,staticClass:"tab-select",class:{'active':index==_vm.active},on:{"click":function($event){return _vm.changeActive(index)}}},[_c('div',{staticClass:"text"},[_vm._v(_vm._s(d.name))]),_vm._v(" "),(_vm.active==index)?_c('div',{staticClass:"line"}):_vm._e()])}),0),_vm._v(" "),_c('div',{ref:"scrollContainer",staticClass:"main",on:{"scroll":_vm.handleScroll}},_vm._l((_vm.searchList),function(d,index){return _c('div',{key:index,staticClass:"search-list"},[_c('div',{staticClass:"search-type"},[_vm._v(_vm._s(d.name))]),_vm._v(" "),_vm._l((d.children),function(item,index2){return _c('div',{key:index2,staticClass:"search-info"},[_c('div',{staticClass:"name",on:{"click":function($event){return _vm.toDetail(item,index,index2)}}},[_vm._v(_vm._s(item.name))])])}),_vm._v(" "),(_vm.active==0)?_c('div',{staticClass:"search-more",on:{"click":function($event){return _vm.changeActive(index+1)}}},[_vm._v("查找更多资料 >")]):_vm._e()],2)}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(719);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_11985c3b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1318);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3640)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-11985c3b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_11985c3b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_11985c3b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_detail_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3641);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("efca2670", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-11985c3b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100vh;background-color:#eee}.bcfff[data-v-11985c3b]{background-color:#fff}.search-w[data-v-11985c3b]{height:2.45rem}.main[data-v-11985c3b]{height:97.55%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.main-left[data-v-11985c3b]{height:100%;width:25%;overflow:auto}.main-body[data-v-11985c3b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto}.mb-w[data-v-11985c3b]{padding:.5rem}.ml-menu>li[data-v-11985c3b]{box-sizing:border-box;padding:0 .5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:2rem}.ml-menu>li .dic-name[data-v-11985c3b]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.8rem}.ml-menu>li[data-v-11985c3b]:not(:last-child){border-bottom:1px solid #efefef}.ml-menu>li.cur[data-v-11985c3b]{background:#eee}.one-rem[data-v-11985c3b]{font-size:1rem}.ad-w[data-v-11985c3b]{height:5rem;border-radius:.4rem}.nav-menu-2[data-v-11985c3b]{padding:.5rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:auto}.nav-menu-2>li[data-v-11985c3b]{margin-right:.5rem;white-space:nowrap;font-size:.7rem}.nav-menu-3>li[data-v-11985c3b]{margin-bottom:.5rem;background:#fff;border-radius:.4rem}.nm-title[data-v-11985c3b]{padding:0 .5rem;height:1.5rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.nm-title-text[data-v-11985c3b]{position:absolute;left:0;width:100%;text-align:center;font-size:.7rem}.sensor-list[data-v-11985c3b]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.sensor-list>li[data-v-11985c3b],.sensor-list[data-v-11985c3b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.sensor-list>li[data-v-11985c3b]{margin:.5rem 0;width:25%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.sl-img[data-v-11985c3b]{display:block;width:2.5rem;height:2.5rem}.sl-name[data-v-11985c3b]{width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(177);
var _search = _interopRequireDefault(__webpack_require__(178));
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _search.default,
    Icon: _icon.default
  },
  data: function data() {
    return {
      value: '',
      cur: 0,
      dictionaryList: []
      // secDictionaryList: []
    };
  },
  watch: {},
  computed: {
    secDictionaryList: function secDictionaryList() {
      return this.dictionaryList[this.cur].sonVehicleDictionarys;
    }
  },
  created: function created() {
    document.title = '新故障码查询';
    this.getProductDirectoryList();
  },
  mounted: function mounted() {},
  methods: {
    onSearch: function onSearch() {},
    chooseMenu: function chooseMenu(cur) {
      this.cur = cur;
      // this.secDictionaryList = this.dictionaryList[this.cur].sonVehicleDictionarys
    },
    getProductDirectoryList: function getProductDirectoryList() {
      var _this = this;
      this._Util.post(this._Api.getProductDirectoryList, {
        'navigationId': 3
      }, function (data) {
        _this.dictionaryList = data.dictionaryList;
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"search-w"},[_c('search',{attrs:{"show-action":"","placeholder":"请输入搜索关键词"},on:{"search":_vm.onSearch},scopedSlots:_vm._u([{key:"action",fn:function(){return [_c('div',{on:{"click":_vm.onSearch}},[_vm._v("搜索")])]},proxy:true}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}})],1),_vm._v(" "),_c('div',{staticClass:"main"},[_c('div',{staticClass:"bcfff main-left"},[_c('ul',{staticClass:"ml-menu"},_vm._l((_vm.dictionaryList),function(item,i){return _c('li',{key:i,class:{ cur: _vm.cur === i },on:{"click":function($event){return _vm.chooseMenu(i)}}},[_c('div',{staticClass:"dic-name"},[_vm._v(_vm._s(item.dictName))])])}),0)]),_vm._v(" "),_c('div',{staticClass:"main-body"},[_c('div',{staticClass:"mb-w"},[_c('div',{staticClass:"bcfff ad-w"}),_vm._v(" "),_c('ul',{staticClass:"nav-menu-2"},_vm._l((_vm.secDictionaryList),function(item,i){return _c('li',{key:i},[_vm._v(_vm._s(item.dictName))])}),0),_vm._v(" "),_c('ul',{staticClass:"nav-menu-3"},_vm._l((_vm.secDictionaryList),function(item,i){return _c('li',{key:i},[_c('div',{staticClass:"nm-title"},[(item.sonVehicleDictionarys.length)?_c('icon',{attrs:{"name":"arrow-down"}}):_c('icon',{attrs:{"name":"arrow"}}),_vm._v(" "),_c('div',{staticClass:"nm-title-text"},[_vm._v(_vm._s(item.dictName))])],1),_vm._v(" "),(item.sonVehicleDictionarys)?_c('ul',{staticClass:"sensor-list"},_vm._l((item.sonVehicleDictionarys),function(svd,j){return _c('li',{key:j},[_c('img',{staticClass:"sl-img",attrs:{"src":svd.pathDictImg,"alt":""}}),_vm._v(" "),_c('div',{staticClass:"sl-name"},[_vm._v(_vm._s(svd.dictName))])])}),0):_vm._e()])}),0)])])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(720);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_17eaa754_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1319);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3642)
  __webpack_require__(3645)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-17eaa754"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_17eaa754_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_17eaa754_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_appdown_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3643);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b2569404", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports
exports.i(__webpack_require__(3644), "");

// module
exports.push([module.i, "", ""]);

// exports
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "/*!\r\n * =====================================================\r\n * Mui v0.5.7 (https://github.com/dcloudio/mui)\r\n * =====================================================\r\n */\r\n\r\n/*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;outline:0;-webkit-tap-highlight-color:transparent}body{-webkit-overflow-scrolling:touch;font-family:Helvetica Neue,Helvetica,sans-serif;font-size:17px;line-height:21px;color:#000;background-color:#fff}a{color:#007aff;text-decoration:none;-webkit-tap-highlight-color:transparent}a:active{color:#0062cc}.mui-content{-webkit-overflow-scrolling:touch;background-color:#efeff4}.mui-bar-nav~.mui-content{padding-top:44px}.mui-bar-header-secondary~.mui-content{padding-top:88px}.mui-bar-footer~.mui-content{padding-bottom:44px}.mui-bar-footer-secondary~.mui-content{padding-bottom:88px}.mui-bar-tab~.mui-content{padding-bottom:50px}.mui-bar-footer-secondary-tab~.mui-content{padding-bottom:94px}.mui-hidden{display:none!important}.mui-inline{display:inline-block;vertical-align:top}.mui-block{display:block}.mui-ellipsis{white-space:nowrap}.mui-ellipsis,.mui-ellipsis-2{overflow:hidden;text-overflow:ellipsis}.mui-ellipsis-2{display:-webkit-box;white-space:normal!important;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mui-table{display:table;width:100%;table-layout:fixed}.mui-table-cell{position:relative;display:table-cell}.mui-text-left{text-align:left!important}.mui-text-center{text-align:center!important}.mui-text-justify{text-align:justify!important}.mui-text-right{text-align:right!important}.mui-pull-left{float:left}.mui-pull-right{float:right}.mui-list-inline,.mui-list-unstyled{padding-left:0;list-style:none}.mui-list-inline{margin-left:-5px}.mui-list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}.mui-clearfix:after,.mui-clearfix:before{display:table;content:\" \"}.mui-clearfix:after{clear:both}.mui-bg-primary{background-color:#007aff}.mui-bg-positive{background-color:#4cd964}.mui-bg-negative{background-color:#dd524d}h1,h2,h3,h4,h5,h6{margin-top:5px;margin-bottom:5px;line-height:1}.mui-h1,h1{font-size:36px}.mui-h2,h2{font-size:30px}.mui-h3,h3{font-size:24px}.mui-h4,h4{font-size:18px}.mui-h5,h5{font-size:14px}.mui-h5,.mui-h6,h5,h6{font-weight:400;color:#8f8f94}.mui-h6,h6{font-size:12px}p{margin-top:0;margin-bottom:10px;font-size:14px;color:#8f8f94}.mui-col-xs-12{width:100%}.mui-col-xs-11{width:91.66666667%}.mui-col-xs-10{width:83.33333333%}.mui-col-xs-9{width:75%}.mui-col-xs-8{width:66.66666667%}.mui-col-xs-7{width:58.33333333%}.mui-col-xs-6{width:50%}.mui-col-xs-5{width:41.66666667%}.mui-col-xs-4{width:33.33333333%}.mui-col-xs-3{width:25%}.mui-col-xs-2{width:16.66666667%}.mui-col-xs-1{width:8.33333333%}@media (min-width:400px){.mui-col-sm-12{width:100%}.mui-col-sm-11{width:91.66666667%}.mui-col-sm-10{width:83.33333333%}.mui-col-sm-9{width:75%}.mui-col-sm-8{width:66.66666667%}.mui-col-sm-7{width:58.33333333%}.mui-col-sm-6{width:50%}.mui-col-sm-5{width:41.66666667%}.mui-col-sm-4{width:33.33333333%}.mui-col-sm-3{width:25%}.mui-col-sm-2{width:16.66666667%}.mui-col-sm-1{width:8.33333333%}}.mui-iscroll-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:1;width:100%;overflow:hidden}.mui-bar-nav~.mui-iscroll-wrapper{top:44px;padding:0}.mui-bar-header-secondary~.mui-iscroll-wrapper{top:88px}.mui-bar-footer~.mui-iscroll-wrapper{bottom:44px;padding:0}.mui-bar-footer-secondary~.mui-iscroll-wrapper{bottom:88px}.mui-bar-tab~.mui-iscroll-wrapper{bottom:50px;padding:0}.mui-bar-footer-secondary-tab~.mui-iscroll-wrapper{bottom:94px}.mui-iscroll{position:absolute;z-index:1;width:100%;-webkit-text-size-adjust:none;-webkit-user-select:none;user-select:none;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;text-size-adjust:none}.mui-off-canvas-height-fixed{height:100%!important}.mui-off-canvas-wrap{position:relative;width:100%}.mui-off-canvas-wrap .mui-inner-wrap{position:relative;width:100%;height:100%;-webkit-transition:-webkit-transform .4s ease;transition:transform .4s ease}.mui-off-canvas-wrap .mui-inner-wrap .mui-bar{position:absolute}.mui-off-canvas-wrap .mui-inner-wrap .mui-off-canvas-left{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mui-off-canvas-wrap .mui-inner-wrap .mui-off-canvas-right{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mui-off-canvas-wrap.mui-left,.mui-off-canvas-wrap.mui-right,.mui-off-canvas-wrap.mui-sliding{height:100%;overflow:hidden}.mui-off-canvas-wrap.mui-left .mui-off-canvas-left,.mui-off-canvas-wrap.mui-left .mui-off-canvas-right,.mui-off-canvas-wrap.mui-right .mui-off-canvas-left,.mui-off-canvas-wrap.mui-right .mui-off-canvas-right,.mui-off-canvas-wrap.mui-sliding .mui-off-canvas-left,.mui-off-canvas-wrap.mui-sliding .mui-off-canvas-right{display:block}.mui-off-canvas-wrap.mui-left .mui-off-canvas-backdrop,.mui-off-canvas-wrap.mui-right .mui-off-canvas-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1002;display:block;background:hsla(0,0%,100%,.2);box-shadow:-4px 0 4px rgba(0,0,0,.5),4px 0 4px rgba(0,0,0,.5);transition:background .3s ease;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent}.mui-off-canvas-wrap.mui-left .mui-inner-wrap{-webkit-transform:translate3d(-80%,0,0);transform:translate3d(-80%,0,0)}.mui-off-canvas-wrap.mui-right .mui-inner-wrap{-webkit-transform:translate3d(80%,0,0);transform:translate3d(80%,0,0)}.mui-off-canvas-left,.mui-off-canvas-right{position:absolute;top:0;bottom:0;display:none;width:80%;min-height:100%;box-sizing:content-box;-webkit-overflow-scrolling:touch;background:#333;-webkit-backface-visibility:hidden}.mui-off-canvas-left{left:0}.mui-off-canvas-right{right:0}.mui-loading{height:100%;min-height:80px;padding:15px 0;text-align:center;vertical-align:middle}.mui-loading .mui-icon-spinner,.mui-loading .mui-icon-spinner-cycle{font-size:48px;color:#999}.mui-spinner{position:relative;display:inline-block;width:24px;height:24px}.mui-spinner.mui-spinner-large{width:56px;height:56px}.mui-spinner-indicator{position:absolute;top:37%;left:44.5%;width:14%;height:30%;background:#787878;border-radius:80%;opacity:0;-webkit-animation:fade 1s linear infinite;animation:fade 1s linear infinite;-webkit-border-radius:80%}.mui-spinner-indicator1{-webkit-transform:rotate(0) translateY(-142%);transform:rotate(0) translateY(-142%);-webkit-animation-delay:0;animation-delay:0}.mui-spinner-indicator2{-webkit-transform:rotate(30deg) translateY(-142%);transform:rotate(30deg) translateY(-142%);-webkit-animation-delay:-.9167s;animation-delay:-.9167s}.mui-spinner-indicator3{-webkit-transform:rotate(60deg) translateY(-142%);transform:rotate(60deg) translateY(-142%);-webkit-animation-delay:-.833s;animation-delay:-.833s}.mui-spinner-indicator4{-webkit-transform:rotate(90deg) translateY(-142%);transform:rotate(90deg) translateY(-142%);-webkit-animation-delay:-.75s;animation-delay:-.75s}.mui-spinner-indicator5{-webkit-transform:rotate(120deg) translateY(-142%);transform:rotate(120deg) translateY(-142%);-webkit-animation-delay:-.667s;animation-delay:-.667s}.mui-spinner-indicator6{-webkit-transform:rotate(150deg) translateY(-142%);transform:rotate(150deg) translateY(-142%);-webkit-animation-delay:-.5833s;animation-delay:-.5833s}.mui-spinner-indicator7{-webkit-transform:rotate(180deg) translateY(-142%);transform:rotate(180deg) translateY(-142%);-webkit-animation-delay:-.5s;animation-delay:-.5s}.mui-spinner-indicator8{-webkit-transform:rotate(210deg) translateY(-142%);transform:rotate(210deg) translateY(-142%);-webkit-animation-delay:-.41667s;animation-delay:-.41667s}.mui-spinner-indicator9{-webkit-transform:rotate(240deg) translateY(-142%);transform:rotate(240deg) translateY(-142%);-webkit-animation-delay:-.333s;animation-delay:-.333s}.mui-spinner-indicator10{-webkit-transform:rotate(270deg) translateY(-142%);transform:rotate(270deg) translateY(-142%);-webkit-animation-delay:-.25s;animation-delay:-.25s}.mui-spinner-indicator11{-webkit-transform:rotate(300deg) translateY(-142%);transform:rotate(300deg) translateY(-142%);-webkit-animation-delay:-.1667s;animation-delay:-.1667s}.mui-spinner-indicator12{-webkit-transform:rotate(330deg) translateY(-142%);transform:rotate(330deg) translateY(-142%);-webkit-animation-delay:-.0833s;animation-delay:-.0833s}@-webkit-keyframes fade{0%{opacity:1}to{opacity:.25}}@keyframes fade{0%{opacity:1}to{opacity:.25}}.mui-spin{-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear;-webkit-animation-fill-mode:forwards}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}99%{-webkit-transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}99%{transform:rotate(1turn)}}.mui-btn,button,input[type=button],input[type=reset],input[type=submit]{position:relative;display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42;color:#333;text-align:center;white-space:nowrap;vertical-align:top;cursor:pointer;background-color:#fff;border:1px solid #ccc;border-radius:3px;-webkit-transition:all;transition:all;-webkit-transition-timing-function:linear;transition-timing-function:linear;-webkit-transition-duration:.2s;transition-duration:.2s}.mui-btn.mui-active,.mui-btn:active,button.mui-active,button:active,input[type=button].mui-active,input[type=button]:active,input[type=reset].mui-active,input[type=reset]:active,input[type=submit].mui-active,input[type=submit]:active{color:#fff;background-color:#929292}.mui-btn.mui-disabled,.mui-btn:disabled,button.mui-disabled,button:disabled,input[type=button].mui-disabled,input[type=button]:disabled,input[type=reset].mui-disabled,input[type=reset]:disabled,input[type=submit].mui-disabled,input[type=submit]:disabled{opacity:.6}.mui-btn-blue,.mui-btn-primary,input[type=submit]{color:#fff;background-color:#007aff;border:1px solid #007aff}.mui-btn-blue.mui-active,.mui-btn-blue:active,.mui-btn-primary.mui-active,.mui-btn-primary:active,input[type=submit].mui-active,input[type=submit]:active{color:#fff;background-color:#0062cc;border:1px solid #0062cc}.mui-btn-green,.mui-btn-positive,.mui-btn-success{color:#fff;background-color:#4cd964;border:1px solid #4cd964}.mui-btn-green.mui-active,.mui-btn-green:active,.mui-btn-positive.mui-active,.mui-btn-positive:active,.mui-btn-success.mui-active,.mui-btn-success:active{color:#fff;background-color:#2ac845;border:1px solid #2ac845}.mui-btn-warning,.mui-btn-yellow{color:#fff;background-color:#f0ad4e;border:1px solid #f0ad4e}.mui-btn-warning.mui-active,.mui-btn-warning:active,.mui-btn-yellow.mui-active,.mui-btn-yellow:active{color:#fff;background-color:#ec971f;border:1px solid #ec971f}.mui-btn-danger,.mui-btn-negative,.mui-btn-red{color:#fff;background-color:#dd524d;border:1px solid #dd524d}.mui-btn-danger.mui-active,.mui-btn-danger:active,.mui-btn-negative.mui-active,.mui-btn-negative:active,.mui-btn-red.mui-active,.mui-btn-red:active{color:#fff;background-color:#cf2d28;border:1px solid #cf2d28}.mui-btn-purple,.mui-btn-royal{color:#fff;background-color:#8a6de9;border:1px solid #8a6de9}.mui-btn-purple.mui-active,.mui-btn-purple:active,.mui-btn-royal.mui-active,.mui-btn-royal:active{color:#fff;background-color:#6641e2;border:1px solid #6641e2}.mui-btn-outlined{background-color:transparent}.mui-btn-outlined.mui-btn-blue,.mui-btn-outlined.mui-btn-primary{color:#007aff}.mui-btn-outlined.mui-btn-green,.mui-btn-outlined.mui-btn-positive,.mui-btn-outlined.mui-btn-success{color:#4cd964}.mui-btn-outlined.mui-btn-warning,.mui-btn-outlined.mui-btn-yellow{color:#f0ad4e}.mui-btn-outlined.mui-btn-danger,.mui-btn-outlined.mui-btn-negative,.mui-btn-outlined.mui-btn-red{color:#dd524d}.mui-btn-outlined.mui-btn-purple,.mui-btn-outlined.mui-btn-royal{color:#8a6de9}.mui-btn-outlined.mui-btn-blue:active,.mui-btn-outlined.mui-btn-danger:active,.mui-btn-outlined.mui-btn-green:active,.mui-btn-outlined.mui-btn-negative:active,.mui-btn-outlined.mui-btn-positive:active,.mui-btn-outlined.mui-btn-primary:active,.mui-btn-outlined.mui-btn-purple:active,.mui-btn-outlined.mui-btn-red:active,.mui-btn-outlined.mui-btn-royal:active,.mui-btn-outlined.mui-btn-success:active,.mui-btn-outlined.mui-btn-warning:active,.mui-btn-outlined.mui-btn-yellow:active{color:#fff}.mui-btn-link{padding-top:6px;padding-bottom:6px;color:#007aff;background-color:transparent;border:0}.mui-btn-link.mui-active,.mui-btn-link:active{color:#0062cc;background-color:transparent}.mui-btn-block{display:block;width:100%;padding:15px 0;margin-bottom:10px;font-size:18px}.mui-btn .mui-badge{margin:-2px -4px -2px 4px;font-size:14px;background-color:rgba(0,0,0,.15)}.mui-btn .mui-badge-inverted,.mui-btn:active .mui-badge-inverted{background-color:transparent}.mui-btn-negative:active .mui-badge-inverted,.mui-btn-positive:active .mui-badge-inverted,.mui-btn-primary:active .mui-badge-inverted{color:#fff}.mui-btn-block .mui-badge{position:absolute;right:0;margin-right:10px}.mui-btn .mui-icon{font-size:inherit}.mui-btn.mui-icon{font-size:14px;line-height:1.42}.mui-btn.mui-fab{width:56px;height:56px;padding:16px;border-radius:50%;outline:0}.mui-btn.mui-fab.mui-btn-mini{width:40px;height:40px;padding:8px}.mui-btn.mui-fab .mui-icon{width:24px;height:24px;font-size:24px;line-height:24px}.mui-bar{position:fixed;right:0;left:0;z-index:10;height:44px;padding-right:10px;padding-left:10px;background-color:hsla(0,0%,97%,.98);border-bottom:0;-webkit-box-shadow:0 0 1px rgba(0,0,0,.85);box-shadow:0 0 1px rgba(0,0,0,.85);-webkit-backface-visibility:hidden;backface-visibility:hidden}.mui-bar .mui-title{right:40px;left:40px;width:auto;margin:0;overflow:hidden;text-overflow:ellipsis}.mui-bar .mui-backdrop{background:0 0}.mui-bar-header-secondary{top:44px}.mui-bar-footer{bottom:0}.mui-bar-footer-secondary{bottom:44px}.mui-bar-footer-secondary-tab{bottom:50px}.mui-bar-footer,.mui-bar-footer-secondary,.mui-bar-footer-secondary-tab{border-top:0}.mui-bar-nav{top:0;-webkit-box-shadow:0 1px 6px #ccc;box-shadow:0 1px 6px #ccc}.mui-bar-nav~.mui-content .mui-anchor{display:block;height:45px;margin-top:-45px;visibility:hidden}.mui-bar-nav.mui-bar .mui-icon{padding-right:10px;padding-left:10px;margin-right:-10px;margin-left:-10px}.mui-title{position:absolute;display:block;width:100%;padding:0;margin:0 -10px;font-size:17px;font-weight:500;line-height:44px;color:#000;text-align:center;white-space:nowrap}.mui-title a{color:inherit}.mui-bar-tab{bottom:0;display:table;width:100%;height:50px;padding:0;table-layout:fixed;border-top:0;border-bottom:0}.mui-bar-tab .mui-tab-item{display:table-cell;width:1%;height:50px;overflow:hidden;color:#929292;text-align:center;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.mui-bar-tab .mui-tab-item.mui-active{color:#007aff}.mui-bar-tab .mui-tab-item .mui-icon{top:3px;width:24px;height:24px;padding-top:0;padding-bottom:0}.mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{display:block;overflow:hidden;font-size:11px;text-overflow:ellipsis}.mui-bar-tab .mui-tab-item .mui-icon:active{background:0 0}.mui-bar .mui-btn{position:relative;top:7px;z-index:20;padding:6px 12px 7px;margin-top:0;font-weight:400}.mui-bar .mui-btn.mui-pull-right{margin-left:10px}.mui-bar .mui-btn.mui-pull-left{margin-right:10px}.mui-bar .mui-btn-link{top:0;padding:0;font-size:16px;line-height:44px;color:#007aff;border:0}.mui-bar .mui-btn-link.mui-active,.mui-bar .mui-btn-link:active{color:#0062cc}.mui-bar .mui-btn-block{top:6px;padding:5px 0;margin-bottom:0;font-size:16px}.mui-bar .mui-btn-nav.mui-pull-left{margin-left:-5px}.mui-bar .mui-btn-nav.mui-pull-left .mui-icon-left-nav{margin-right:-3px}.mui-bar .mui-btn-nav.mui-pull-right{margin-right:-5px}.mui-bar .mui-btn-nav.mui-pull-right .mui-icon-right-nav{margin-left:-3px}.mui-bar .mui-btn-nav:active{opacity:.3}.mui-bar .mui-icon{position:relative;z-index:20;padding-top:10px;padding-bottom:10px;font-size:24px}.mui-bar .mui-icon:active{opacity:.3}.mui-bar .mui-btn .mui-icon{top:3px;padding:0;margin:0}.mui-bar .mui-title .mui-icon{padding:0;margin:0}.mui-bar .mui-title .mui-icon.mui-icon-caret{top:4px;margin-left:-5px}.mui-bar input[type=search]{height:29px;margin:6px 0}.mui-bar .mui-segmented-control{top:7px;width:auto;margin:0 auto}.mui-badge{display:inline-block;padding:3px 6px;font-size:12px;line-height:1;color:#333;background-color:rgba(0,0,0,.15);border-radius:100px}.mui-badge.mui-badge-inverted{padding:0 5px 0 0;color:#929292;background-color:transparent}.mui-badge-blue,.mui-badge-primary{color:#fff;background-color:#007aff}.mui-badge-blue.mui-badge-inverted,.mui-badge-primary.mui-badge-inverted{color:#007aff;background-color:transparent}.mui-badge-green,.mui-badge-success{color:#fff;background-color:#4cd964}.mui-badge-green.mui-badge-inverted,.mui-badge-success.mui-badge-inverted{color:#4cd964;background-color:transparent}.mui-badge-warning,.mui-badge-yellow{color:#fff;background-color:#f0ad4e}.mui-badge-warning.mui-badge-inverted,.mui-badge-yellow.mui-badge-inverted{color:#f0ad4e;background-color:transparent}.mui-badge-danger,.mui-badge-red{color:#fff;background-color:#dd524d}.mui-badge-danger.mui-badge-inverted,.mui-badge-red.mui-badge-inverted{color:#dd524d;background-color:transparent}.mui-badge-purple,.mui-badge-royal{color:#fff;background-color:#8a6de9}.mui-badge-purple.mui-badge-inverted,.mui-badge-royal.mui-badge-inverted{color:#8a6de9;background-color:transparent}.mui-table-view{padding-left:0;margin-top:0;margin-bottom:0;list-style:none;background-color:#fff;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\"),url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:0 100%,0 0}.mui-table-view-striped>li:nth-child(odd),.mui-table-view-striped>li:nth-child(odd)>.mui-slider-cell>.mui-slider-left~.mui-slider-handle,.mui-table-view-striped>li:nth-child(odd)>.mui-slider-cell>.mui-slider-right~.mui-slider-handle{background-color:#f9f9f9}.mui-table-view-chevron .mui-table-view-cell{padding-right:65px}.mui-table-view-chevron .mui-table-view-cell>a:not(.mui-btn){margin-right:-65px}.mui-table-view-slider .mui-table-view-cell{padding:11px 0}.mui-table-view-slider .mui-table-view-cell>a:not(.mui-btn){margin-right:0}.mui-table-view-inverted{color:#fff;background:#333;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#222222' x='0' y='0' width='100%' height='0.5'/></svg>\"),url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#222222' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:0 100%,0 0}.mui-table-view-inverted .mui-table-view-cell{background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#222222' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:15px 100%}.mui-table-view-inverted .mui-table-view-cell.mui-active,.mui-table-view-inverted .mui-table-view-cell>a:not(.mui-btn).mui-active{background-color:#242424}.mui-table-view-cell{position:relative;padding:11px 15px;overflow:hidden;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:15px 100%;-webkit-touch-callout:none}.mui-table-view-cell.mui-checkbox input[type=checkbox],.mui-table-view-cell.mui-radio input[type=radio]{top:8px}.mui-table-view-cell.mui-checkbox.mui-left,.mui-table-view-cell.mui-radio.mui-left{padding-left:58px}.mui-table-view-cell.mui-active,.mui-table-view-cell.mui-active>.mui-slider-cell>.mui-slider-left~.mui-slider-handle,.mui-table-view-cell.mui-active>.mui-slider-cell>.mui-slider-right~.mui-slider-handle{background-color:#eee}.mui-table-view-cell:last-child{background-image:none}.mui-table-view-cell>a:not(.mui-btn){position:relative;display:block;padding:inherit;margin:-11px -15px;overflow:hidden;color:inherit;text-overflow:ellipsis;white-space:nowrap}.mui-table-view-cell>a:not(.mui-btn).mui-active{background-color:#eee}.mui-table-view-cell p{margin-bottom:0}.mui-table-view-cell>.mui-slider-cell{margin-top:1px;margin-bottom:1px}.mui-table-view-cell>.mui-slider-cell>.mui-slider-handle{position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mui-table-view-cell>.mui-slider-cell>.mui-slider-left~.mui-slider-handle,.mui-table-view-cell>.mui-slider-cell>.mui-slider-right~.mui-slider-handle{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:1;padding-left:15px;background-color:#fff;-webkit-transform:translateZ(0);transform:translateZ(0)}.mui-table-view-cell>.mui-slider-cell>.mui-slider-left,.mui-table-view-cell>.mui-slider-cell>.mui-slider-right{top:1px;bottom:1px}.mui-table-view-divider{padding-top:6px;padding-bottom:6px;padding-left:15px;margin-top:-1px;margin-left:0;font-weight:500;color:#999;background-color:#fafafa;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\"),url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:0 100%,0 0}.mui-table-view .mui-media,.mui-table-view .mui-media-body{overflow:hidden}.mui-table-view .mui-media-object{max-width:42px;height:42px}.mui-table-view .mui-media-object.mui-pull-left{margin-right:10px}.mui-table-view .mui-media-object.mui-pull-right{margin-left:10px}.mui-table-view-cell>.mui-badge,.mui-table-view-cell>.mui-btn,.mui-table-view-cell>.mui-switch,.mui-table-view-cell>a>.mui-badge,.mui-table-view-cell>a>.mui-btn,.mui-table-view-cell>a>.mui-switch{position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.mui-table-view-cell .mui-navigate-left>.mui-badge,.mui-table-view-cell .mui-navigate-left>.mui-btn,.mui-table-view-cell .mui-navigate-left>.mui-switch,.mui-table-view-cell .mui-navigate-right>.mui-badge,.mui-table-view-cell .mui-navigate-right>.mui-btn,.mui-table-view-cell .mui-navigate-right>.mui-switch,.mui-table-view-cell .mui-push-left>.mui-badge,.mui-table-view-cell .mui-push-left>.mui-btn,.mui-table-view-cell .mui-push-left>.mui-switch,.mui-table-view-cell .mui-push-right>.mui-badge,.mui-table-view-cell .mui-push-right>.mui-btn,.mui-table-view-cell .mui-push-right>.mui-switch,.mui-table-view-cell>a .mui-navigate-left>.mui-badge,.mui-table-view-cell>a .mui-navigate-left>.mui-btn,.mui-table-view-cell>a .mui-navigate-left>.mui-switch,.mui-table-view-cell>a .mui-navigate-right>.mui-badge,.mui-table-view-cell>a .mui-navigate-right>.mui-btn,.mui-table-view-cell>a .mui-navigate-right>.mui-switch,.mui-table-view-cell>a .mui-push-left>.mui-badge,.mui-table-view-cell>a .mui-push-left>.mui-btn,.mui-table-view-cell>a .mui-push-left>.mui-switch,.mui-table-view-cell>a .mui-push-right>.mui-badge,.mui-table-view-cell>a .mui-push-right>.mui-btn,.mui-table-view-cell>a .mui-push-right>.mui-switch{right:35px}.mui-content>.mui-table-view:first-child{margin-top:15px}.mui-table-view-cell.mui-collapse>.mui-navigate-right:after,.mui-table-view-cell.mui-collapse>.mui-push-right:after{content:\"\\E581\"}.mui-table-view-cell.mui-collapse.mui-active .mui-table-view{display:block}.mui-table-view-cell.mui-collapse.mui-active>.mui-navigate-right:after,.mui-table-view-cell.mui-collapse.mui-active>.mui-push-right:after{content:\"\\E580\"}.mui-table-view-cell.mui-collapse .mui-table-view{display:none;margin:11px -15px -11px}.mui-table-view-cell.mui-collapse .mui-table-view.mui-table-view-chevron{margin-right:-65px}.mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell{padding-left:31px;background-position:31px 100%}.mui-table-view.mui-grid-view{display:block;width:100%;padding:0 10px 10px 0;font-size:0;white-space:normal}.mui-table-view.mui-grid-view .mui-table-view-cell{display:inline-block;padding:10px 0 0 14px;margin-right:-4px;font-size:17px;text-align:center;vertical-align:middle;background:0 0}.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-object{width:100%;max-width:100%;height:auto}.mui-table-view.mui-grid-view .mui-table-view-cell>a:not(.mui-btn){margin:-10px 0 0 -14px}.mui-table-view.mui-grid-view .mui-table-view-cell>a:not(.mui-btn).mui-active,.mui-table-view.mui-grid-view .mui-table-view-cell>a:not(.mui-btn):active{background:0 0}.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body{display:block;width:100%;height:15px;margin-top:8px;font-size:15px;line-height:15px;color:#333;text-overflow:ellipsis}.mui-grid-view.mui-grid-9{padding:0 0 1px;padding-right:0;background-color:#f2f2f2}.mui-grid-view.mui-grid-9 .mui-table-view-cell{padding:11px 15px;margin:-1px 0 0 -1px;vertical-align:top;border-top:1px solid #eee;border-left:1px solid #eee}.mui-grid-view.mui-grid-9 .mui-table-view-cell.mui-active{background-color:#eee}.mui-grid-view.mui-grid-9 .mui-table-view-cell>a:not(.mui-btn){padding:15px}.mui-grid-view.mui-grid-9 .mui-media{color:#797979}.mui-grid-view.mui-grid-9 .mui-media .mui-icon{position:relative;font-size:2.4em}.mui-grid-view.mui-grid-9 .mui-media .mui-icon .mui-badge{position:absolute;top:1px;right:0;color:#fff;background:red;opacity:.9}.mui-slider-cell{position:relative}.mui-slider-cell>.mui-slider-handle{z-index:1}.mui-slider-cell>.mui-slider-left,.mui-slider-cell>.mui-slider-right{position:absolute;top:0;bottom:0;z-index:0}.mui-slider-cell>.mui-slider-left{left:0}.mui-slider-cell>.mui-slider-right{right:0}input,select,textarea{font-family:Helvetica Neue,Helvetica,sans-serif;font-size:17px;-webkit-tap-highlight-color:transparent}input:focus,select:focus,textarea:focus{-webkit-tap-highlight-color:transparent;-webkit-user-modify:read-write-plaintext-only}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{width:100%;height:40px;-webkit-appearance:none;padding:10px 15px;margin-bottom:15px;line-height:21px;-webkit-user-select:text;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:3px;outline:0}input[type=search]{height:34px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:16px;text-align:center;background-color:rgba(0,0,0,.1);border:0;border-radius:6px}input[type=search]:focus{text-align:left}textarea{height:auto;resize:none}select{height:auto;margin-top:1px;font-size:14px;background-color:#fff;border:0!important}.mui-input-group{padding:0;background-color:#fff;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\"),url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:0 100%,0 0;border:0}.mui-input-group input,.mui-input-group textarea{margin-bottom:0;background-color:transparent;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:15px 100%;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.mui-input-group input[type=search]{background:0 0}.mui-input-group input:last-child{background-image:none}.mui-input-row{overflow:hidden}.mui-input-row select{padding:10px 15px 0;font-size:17px}.mui-input-row:last-child,.mui-input-row label+input{background-image:none}.mui-input-group .mui-input-row{height:40px;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:15px 100%}.mui-input-row label{float:left;width:35%;padding:8px 15px;font-family:Helvetica Neue,Helvetica,sans-serif;line-height:1.1}.mui-input-row label~input,.mui-input-row label~select,.mui-input-row label~textarea{float:right;width:65%;padding-left:0;margin-bottom:0;border:0}.mui-input-row{position:relative}.mui-input-row.mui-input-range{padding-right:20px;overflow:visible}.mui-input-row .mui-inline{padding:8px 0}.mui-input-row .mui-input-clear~.mui-icon-clear,.mui-input-row .mui-input-speech~.mui-icon-speech{position:absolute;top:10px;right:10px;width:28px;height:28px;font-size:20px;color:#999;text-align:center}.mui-input-row .mui-input-speech~.mui-icon-speech{top:8px;font-size:24px}.mui-input-row .mui-input-clear~.mui-icon-clear~.mui-icon-speech{display:none}.mui-input-row .mui-input-clear~.mui-icon-clear.mui-hidden~.mui-icon-speech{display:inline-block}.mui-input-row .mui-icon-speech~.mui-placeholder{right:38px}.mui-input-row.mui-search .mui-icon-clear{top:7px}.mui-input-row.mui-search .mui-icon-speech{top:5px}.mui-checkbox,.mui-radio{position:relative}.mui-checkbox label,.mui-radio label{display:inline-block;float:none;width:100%}.mui-checkbox.mui-left input[type=checkbox],.mui-radio.mui-left input[type=radio]{left:20px}.mui-checkbox.mui-left label,.mui-radio.mui-left label{padding-left:58px}.mui-checkbox input[type=checkbox],.mui-radio input[type=radio]{position:absolute;top:4px;right:20px;display:inline-block;width:28px;height:26px;-webkit-appearance:none;background-color:transparent;border:0;outline:0!important}.mui-checkbox input[type=checkbox]:before,.mui-radio input[type=radio]:before{font-family:Muiicons;font-size:28px;font-weight:400;line-height:1;color:hsla(0,0%,67%,.6);text-decoration:none;background:0 0;border-radius:0;-webkit-font-smoothing:antialiased}.mui-checkbox input[type=checkbox]:checked:before,.mui-radio input[type=radio]:checked:before{color:#007aff}.mui-radio input[type=radio]:before{content:\"\\E411\"}.mui-radio input[type=radio]:checked:before{content:\"\\E441\"}.mui-checkbox input[type=checkbox]:before{content:\"\\E411\"}.mui-checkbox input[type=checkbox]:checked:before{content:\"\\E442\"}.mui-select{position:relative}.mui-select:before{position:absolute;top:8px;right:21px;font-family:Muiicons;color:hsla(0,0%,67%,.6);content:\"\\E651\"}.mui-input-row .mui-switch{float:right;margin-top:5px;margin-right:20px}.mui-input-range input[type=range]{position:relative;width:100%;height:2px;-webkit-appearance:none!important;padding:0;margin:17px 0;cursor:pointer;background-color:#999;border:0;border-radius:3px;outline:0}.mui-input-range input[type=range]::-webkit-slider-thumb{width:28px;height:28px;-webkit-appearance:none!important;background-color:#007aff;border-color:#0062cc;border-radius:50%}.mui-input-range label~input[type=range]{width:65%}.mui-input-range .mui-tooltip{position:absolute;top:-70px;z-index:1;width:64px;height:64px;font-size:36px;line-height:64px;color:#333;text-align:center;text-shadow:0 1px 0 #f3f3f3;background-color:#fff;border:1px solid #ddd;border-radius:6px;opacity:.8}.mui-search{position:relative}.mui-search input[type=search]{padding-left:30px}.mui-search .mui-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:inline-block;height:34px;font-size:16px;line-height:34px;color:#999;text-align:center;background:0 0;border:0;border-radius:6px}.mui-search .mui-placeholder .mui-icon{font-size:20px;color:#333}.mui-search:before{position:absolute;top:50%;right:50%;display:none;margin-top:-18px;margin-right:31px;font-family:Muiicons;font-size:20px;font-weight:400;content:\"\\E466\"}.mui-search.mui-active:before{left:5px;display:block;margin-right:0;font-size:20px}.mui-search.mui-active input[type=search]{text-align:left}.mui-search.mui-active .mui-placeholder{display:none}.mui-segmented-control{position:relative;display:table;width:100%;overflow:hidden;font-size:15px;font-weight:400;table-layout:fixed;background-color:transparent;border:1px solid #007aff;border-radius:3px}.mui-segmented-control .mui-control-item{display:table-cell;width:1%;padding-top:6px;padding-bottom:7px;overflow:hidden;line-height:1;color:#007aff;text-align:center;text-overflow:ellipsis;white-space:nowrap;border-color:#007aff;border-left:1px solid #007aff;-webkit-transition:background-color .1s linear;transition:background-color .1s linear}.mui-segmented-control .mui-control-item:first-child{border-left-width:0}.mui-segmented-control .mui-control-item.mui-active{color:#fff;background-color:#007aff}.mui-segmented-control.mui-segmented-control-inverted{width:100%;border:0;border-radius:0}.mui-segmented-control.mui-segmented-control-inverted .mui-control-item{color:inherit;border:0}.mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active{color:#007aff;background:0 0;border-bottom:2px solid #007aff}.mui-segmented-control.mui-segmented-control-inverted~.mui-slider-progress-bar{background-color:#007aff}.mui-segmented-control-positive{border:1px solid #4cd964}.mui-segmented-control-positive .mui-control-item{color:#4cd964;border-color:inherit}.mui-segmented-control-positive .mui-control-item.mui-active{color:#fff;background-color:#4cd964}.mui-segmented-control-positive.mui-segmented-control-inverted .mui-control-item.mui-active{color:#4cd964;background:0 0;border-bottom:2px solid #4cd964}.mui-segmented-control-positive.mui-segmented-control-inverted~.mui-slider-progress-bar{background-color:#4cd964}.mui-segmented-control-negative{border:1px solid #dd524d}.mui-segmented-control-negative .mui-control-item{color:#dd524d;border-color:inherit}.mui-segmented-control-negative .mui-control-item.mui-active{color:#fff;background-color:#dd524d}.mui-segmented-control-negative.mui-segmented-control-inverted .mui-control-item.mui-active{color:#dd524d;background:0 0;border-bottom:2px solid #dd524d}.mui-segmented-control-negative.mui-segmented-control-inverted~.mui-slider-progress-bar{background-color:#dd524d}.mui-control-content{display:none}.mui-control-content.mui-active{display:block}.mui-popover{position:fixed;top:55px;left:50%;z-index:20;display:none;width:280px;margin-left:-140px;background-color:hsla(0,0%,97%,.98);border-radius:12px;-webkit-box-shadow:0 0 15px rgba(0,0,0,.1);box-shadow:0 0 15px rgba(0,0,0,.1);opacity:0;-webkit-transition:-webkit-transform .2s ease-in-out,opacity .2s ease-in-out;transition:-webkit-transform .2s ease-in-out,opacity .2s ease-in-out;-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}.mui-popover:before{position:absolute;top:-15px;left:50%;width:0;height:0;margin-left:-8px;content:\"\";border-right:8px solid transparent;border-bottom:15px solid hsla(0,0%,97%,.98);border-left:8px solid transparent}.mui-popover.mui-popover-bottom{top:auto;bottom:65px;left:auto;width:auto;margin-left:0;border:1px solid #ddd;border-radius:6px}.mui-popover.mui-popover-bottom:before{top:auto;bottom:-8px;border-top:8px solid hsla(0,0%,97%,.98);border-bottom:0}.mui-popover.mui-popover-bottom.mui-popover-action{top:auto;right:0;bottom:0;left:0;width:100%;border-radius:0;-webkit-transition:-webkit-transform .25s,opacity 1ms .25s;-moz-transition:-moz-transform .25s,opacity 1ms .25s;transition:transform .25s,opacity 1ms .25s;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.mui-popover.mui-popover-bottom.mui-popover-action.mui-active{opacity:1;-webkit-transition:-webkit-transform .25s;-moz-transition:-moz-transform .25s;transition:transform .25s;-webkit-transform:translateZ(0);transform:translateZ(0)}.mui-popover.mui-active{display:block;opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}.mui-popover .mui-bar~.mui-table-view{padding-top:44px}.mui-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:15;background-color:rgba(0,0,0,.3)}.mui-bar-backdrop.mui-backdrop{bottom:50px;background:0 0}.mui-backdrop-action.mui-backdrop{bottom:50px;background-color:rgba(0,0,0,.3)}.mui-backdrop-action.mui-backdrop,.mui-bar-backdrop.mui-backdrop{opacity:0}.mui-backdrop-action.mui-backdrop.mui-active,.mui-bar-backdrop.mui-backdrop.mui-active{opacity:1;-webkit-transition:all .25s ease;transition:all .25s ease}.mui-popover .mui-btn-block{margin-bottom:5px}.mui-popover .mui-btn-block:last-child{margin-bottom:0}.mui-popover .mui-bar,.mui-popover .mui-bar-nav{-webkit-box-shadow:none;box-shadow:none}.mui-popover .mui-bar-nav{border-bottom:1px solid rgba(0,0,0,.15);border-top-left-radius:12px;border-top-right-radius:12px}.mui-popover .mui-table-view{max-height:300px;margin-bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;background-color:hsla(0,0%,97%,.98);background-image:none;border-radius:12px}.mui-popover .mui-table-view .mui-table-view-cell:first-child,.mui-popover .mui-table-view .mui-table-view-cell:first-child>a:not(.mui-btn){border-top-left-radius:12px;border-top-right-radius:12px}.mui-popover .mui-table-view .mui-table-view-cell:last-child,.mui-popover .mui-table-view .mui-table-view-cell:last-child>a:not(.mui-btn){border-bottom-right-radius:12px;border-bottom-left-radius:12px}.mui-popover.mui-bar-popover .mui-table-view{width:106px}.mui-popover.mui-bar-popover .mui-table-view .mui-table-view-cell{padding:11px 15px;background-position:0 100%}.mui-popover.mui-bar-popover .mui-table-view .mui-table-view-cell>a:not(.mui-btn){margin:-11px -15px}.mui-pagination{display:inline-block;padding-left:0;margin:0 auto;border-radius:6px}.mui-pagination>li{display:inline}.mui-pagination>li>a,.mui-pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.428571429;color:#007aff;text-decoration:none;background-color:#fff;border:1px solid #ddd}.mui-pagination>li:first-child>a,.mui-pagination>li:first-child>span{margin-left:0;border-top-left-radius:6px;border-bottom-left-radius:6px}.mui-pagination>li:last-child>a,.mui-pagination>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.mui-pagination>li.mui-active>a,.mui-pagination>li.mui-active>a:active,.mui-pagination>li.mui-active>span,.mui-pagination>li.mui-active>span:active,.mui-pagination>li:active>a,.mui-pagination>li:active>a:active,.mui-pagination>li:active>span,.mui-pagination>li:active>span:active{z-index:2;color:#fff;cursor:default;background-color:#007aff;border-color:#007aff}.mui-pagination>li.mui-disabled>a,.mui-pagination>li.mui-disabled>a:active,.mui-pagination>li.mui-disabled>span,.mui-pagination>li.mui-disabled>span:active{color:#777;background-color:#fff;border:1px solid #ddd;opacity:.6}.mui-pagination-lg>li>a,.mui-pagination-lg>li>span{padding:10px 16px;font-size:18px}.mui-pagination-sm>li>a,.mui-pagination-sm>li>span{padding:5px 10px;font-size:12px}.mui-pager{padding-left:0;text-align:center;list-style:none}.mui-pager:after,.mui-pager:before{display:table;content:\" \"}.mui-pager:after{clear:both}.mui-pager li{display:inline}.mui-pager li>a,.mui-pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:6px}.mui-pager li.mui-active>a,.mui-pager li.mui-active>span,.mui-pager li:active>a,.mui-pager li:active>span{color:#fff;text-decoration:none;cursor:default;background-color:#007aff;border-color:#007aff}.mui-pager .mui-next>a,.mui-pager .mui-next>span{float:right}.mui-pager .mui-previous>a,.mui-pager .mui-previous>span{float:left}.mui-pager .mui-disabled>a,.mui-pager .mui-disabled>a:active,.mui-pager .mui-disabled>span,.mui-pager .mui-disabled>span:active{color:#777;background-color:#fff;border:1px solid #ddd;opacity:.6}.mui-modal{position:fixed;top:0;z-index:11;width:100%;min-height:100%;overflow:hidden;background-color:#fff;opacity:0;-webkit-transition:-webkit-transform .25s,opacity 1ms .25s;-moz-transition:-moz-transform .25s,opacity 1ms .25s;transition:transform .25s,opacity 1ms .25s;-webkit-transition-timing-function:cubic-bezier(.1,.5,.1,1);transition-timing-function:cubic-bezier(.1,.5,.1,1);-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.mui-modal.mui-active{height:100%;opacity:1;-webkit-transition:-webkit-transform .25s;-moz-transition:-moz-transform .25s;transition:transform .25s;-webkit-transition-timing-function:cubic-bezier(.1,.5,.1,1);transition-timing-function:cubic-bezier(.1,.5,.1,1);-webkit-transform:translateZ(0);transform:translateZ(0)}.mui-slider{position:relative;width:100%;overflow:hidden}.mui-slider .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active{border-bottom:0}.mui-slider .mui-segmented-control.mui-segmented-control-inverted~.mui-slider-group .mui-slider-item{background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\"),url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>\");background-repeat:no-repeat;background-position:0 100%,0 0}.mui-slider .mui-slider-group{position:relative;font-size:0;white-space:nowrap;-webkit-transition:all 0s linear;transition:all 0s linear}.mui-slider .mui-slider-group .mui-slider-item{position:relative;display:inline-block;width:100%;height:100%;font-size:14px;vertical-align:top}.mui-slider .mui-slider-group .mui-slider-item a{position:relative;display:block;line-height:0}.mui-slider .mui-slider-group .mui-slider-item img{width:100%}.mui-slider .mui-slider-group.mui-slider-loop .mui-slider-item:first-child{margin-left:-100%}.mui-slider .mui-slider-group.mui-slider-loop .mui-slider-item:last-child{margin-right:-100%}.mui-slider-title{position:absolute;bottom:0;left:0;width:100%;height:30px;margin:0;line-height:30px;text-align:left;text-indent:12px;background-color:#000;opacity:.8}.mui-slider-indicator{position:absolute;bottom:8px;width:100%;text-align:center;background:0 0}.mui-slider-indicator.mui-segmented-control{position:relative;bottom:auto;padding-top:10px}.mui-slider-indicator .mui-indicator{display:inline-block;width:6px;height:6px;margin:1px 6px;cursor:pointer;background:#aaa;border-radius:50%;-webkit-box-shadow:0 0 1px 1px hsla(0,0%,51%,.7);box-shadow:0 0 1px 1px hsla(0,0%,51%,.7)}.mui-slider-indicator .mui-active.mui-indicator{background:#fff}.mui-slider-indicator .mui-icon{width:40px;height:30px;margin:3px;font-size:20px;line-height:30px;text-align:center;border:1px solid #ddd}.mui-slider-indicator .mui-number{display:inline-block;width:58px;line-height:32px}.mui-slider-indicator .mui-number span{color:#ff5053}.mui-slider-progress-bar{z-index:1;height:2px;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden}.mui-switch{position:relative;display:block;width:74px;height:30px;border:2px solid #ddd;border-radius:20px;-webkit-transition-property:background-color,border;transition-property:background-color,border}.mui-switch,.mui-switch .mui-switch-handle{background-color:#fff;-webkit-transition-duration:.2s;transition-duration:.2s}.mui-switch .mui-switch-handle{position:absolute;top:-1px;left:-1px;z-index:2;width:28px;height:28px;border-radius:16px;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.4);box-shadow:0 2px 5px rgba(0,0,0,.4);-webkit-transition-property:-webkit-transform,width;transition-property:transform,width}.mui-switch:before{position:absolute;top:3px;right:11px;font-size:13px;color:#999;text-transform:uppercase;content:\"Off\"}.mui-switch.mui-active{background-color:#4cd964;border-color:#4cd964}.mui-switch.mui-active .mui-switch-handle{-webkit-transform:translate3d(45px,0,0);transform:translate3d(45px,0,0)}.mui-switch.mui-active:before{right:auto;left:15px;color:#fff;content:\"On\"}.mui-switch input[type=checkbox]{display:none}.mui-switch-mini{width:47px}.mui-switch-mini:before{display:none}.mui-switch-mini.mui-active .mui-switch-handle{-webkit-transform:translate3d(18px,0,0);transform:translate3d(18px,0,0)}.mui-switch-blue.mui-active{background-color:#007aff;border:2px solid #007aff}.mui-content.mui-fade{left:0;opacity:0}.mui-content.mui-fade.mui-in{opacity:1}.mui-content.mui-sliding{z-index:2;-webkit-transition:-webkit-transform .4s;-moz-transition:-moz-transform .4s;transition:transform .4s;-webkit-transform:translateZ(0);transform:translateZ(0)}.mui-content.mui-sliding.mui-left{z-index:1;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mui-content.mui-sliding.mui-right{z-index:3;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mui-navigate-left:after,.mui-navigate-right:after,.mui-push-left:after,.mui-push-right:after{position:absolute;top:50%;display:inline-block;font-family:Muiicons;font-size:inherit;line-height:1;color:#bbb;text-decoration:none;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-font-smoothing:antialiased}.mui-navigate-left:after,.mui-push-left:after{left:15px;content:\"\\E582\"}.mui-navigate-right:after,.mui-push-right:after{right:15px;content:\"\\E583\"}.mui-pull-bottom-pocket,.mui-pull-top-pocket{position:absolute;left:0;display:block;width:100%;height:490px;overflow:hidden;background:#efeff4}.mui-pull-top-pocket{top:-490px}.mui-pull-bottom-pocket{position:static;bottom:0;z-index:-1;height:40px}.mui-pull-bottom-pocket .mui-pull-loading{display:none}.mui-pull-bottom-pocket .mui-pull-loading.mui-in{display:inline-block}.mui-pull{position:absolute;right:0;bottom:10px;left:0;font-weight:700;color:#777;text-align:center}.mui-pull-loading{vertical-align:middle;-webkit-transition-duration:.4s;transition-duration:.4s}.mui-pull-loading.mui-reverse{-webkit-transform:translate(0) rotate(180deg);transform:translate(0) rotate(180deg)}.mui-pull-caption{position:relative;display:inline-block;margin-top:0;margin-left:10px;overflow:visible;font-size:15px;line-height:24px;vertical-align:middle}.mui-pull-caption span{display:none}.mui-pull-caption span.mui-in{display:inline}.mui-toast-container{position:fixed;bottom:50px;width:100%}.mui-toast-message{z-index:99999;width:270px;padding:5px;margin:5px auto;font-size:14px;color:#000;text-align:center;background-color:#d8d8d8;border-radius:7px}.mui-icon{display:inline-block;font-family:Muiicons;font-size:24px;font-style:normal;font-weight:400;line-height:1;text-decoration:none;-webkit-font-smoothing:antialiased}.mui-icon.mui-right:before{float:right;padding-left:.2em}.mui-icon-contact:before{content:\"\\E100\"}.mui-icon-person:before{content:\"\\E101\"}.mui-icon-personadd:before{content:\"\\E102\"}.mui-icon-contact-filled:before{content:\"\\E130\"}.mui-icon-person-filled:before{content:\"\\E131\"}.mui-icon-personadd-filled:before{content:\"\\E132\"}.mui-icon-phone:before{content:\"\\E200\"}.mui-icon-email:before{content:\"\\E201\"}.mui-icon-chatbubble:before{content:\"\\E202\"}.mui-icon-chatboxes:before{content:\"\\E203\"}.mui-icon-phone-filled:before{content:\"\\E230\"}.mui-icon-email-filled:before{content:\"\\E231\"}.mui-icon-chatbubble-filled:before{content:\"\\E232\"}.mui-icon-chatboxes-filled:before{content:\"\\E233\"}.mui-icon-weibo:before{content:\"\\E260\"}.mui-icon-weixin:before{content:\"\\E261\"}.mui-icon-pengyouquan:before{content:\"\\E262\"}.mui-icon-chat:before{content:\"\\E263\"}.mui-icon-videocam:before{content:\"\\E300\"}.mui-icon-camera:before{content:\"\\E301\"}.mui-icon-mic:before{content:\"\\E302\"}.mui-icon-location:before{content:\"\\E303\"}.mui-icon-mic-filled:before,.mui-icon-speech:before{content:\"\\E332\"}.mui-icon-location-filled:before{content:\"\\E333\"}.mui-icon-micoff:before{content:\"\\E360\"}.mui-icon-image:before{content:\"\\E363\"}.mui-icon-map:before{content:\"\\E364\"}.mui-icon-compose:before{content:\"\\E400\"}.mui-icon-trash:before{content:\"\\E401\"}.mui-icon-upload:before{content:\"\\E402\"}.mui-icon-download:before{content:\"\\E403\"}.mui-icon-close:before{content:\"\\E404\"}.mui-icon-redo:before{content:\"\\E405\"}.mui-icon-undo:before{content:\"\\E406\"}.mui-icon-refresh:before{content:\"\\E407\"}.mui-icon-star:before{content:\"\\E408\"}.mui-icon-plus:before{content:\"\\E409\"}.mui-icon-minus:before{content:\"\\E410\"}.mui-icon-checkbox:before,.mui-icon-circle:before{content:\"\\E411\"}.mui-icon-clear:before,.mui-icon-close-filled:before{content:\"\\E434\"}.mui-icon-refresh-filled:before{content:\"\\E437\"}.mui-icon-star-filled:before{content:\"\\E438\"}.mui-icon-plus-filled:before{content:\"\\E439\"}.mui-icon-minus-filled:before{content:\"\\E440\"}.mui-icon-circle-filled:before{content:\"\\E441\"}.mui-icon-checkbox-filled:before{content:\"\\E442\"}.mui-icon-closeempty:before{content:\"\\E460\"}.mui-icon-refreshempty:before{content:\"\\E461\"}.mui-icon-reload:before{content:\"\\E462\"}.mui-icon-starhalf:before{content:\"\\E463\"}.mui-icon-spinner:before{content:\"\\E464\"}.mui-icon-spinner-cycle:before{content:\"\\E465\"}.mui-icon-search:before{content:\"\\E466\"}.mui-icon-plusempty:before{content:\"\\E468\"}.mui-icon-forward:before{content:\"\\E470\"}.mui-icon-back:before,.mui-icon-left-nav:before{content:\"\\E471\"}.mui-icon-checkmarkempty:before{content:\"\\E472\"}.mui-icon-home:before{content:\"\\E500\"}.mui-icon-navigate:before{content:\"\\E501\"}.mui-icon-gear:before{content:\"\\E502\"}.mui-icon-paperplane:before{content:\"\\E503\"}.mui-icon-info:before{content:\"\\E504\"}.mui-icon-help:before{content:\"\\E505\"}.mui-icon-locked:before{content:\"\\E506\"}.mui-icon-more:before{content:\"\\E507\"}.mui-icon-flag:before{content:\"\\E508\"}.mui-icon-home-filled:before{content:\"\\E530\"}.mui-icon-gear-filled:before{content:\"\\E532\"}.mui-icon-info-filled:before{content:\"\\E534\"}.mui-icon-help-filled:before{content:\"\\E535\"}.mui-icon-more-filled:before{content:\"\\E537\"}.mui-icon-settings:before{content:\"\\E560\"}.mui-icon-list:before{content:\"\\E562\"}.mui-icon-bars:before{content:\"\\E563\"}.mui-icon-loop:before{content:\"\\E565\"}.mui-icon-paperclip:before{content:\"\\E567\"}.mui-icon-arrowup:before{content:\"\\E580\"}.mui-icon-arrowdown:before{content:\"\\E581\"}.mui-icon-arrowleft:before{content:\"\\E582\"}.mui-icon-arrowright:before{content:\"\\E583\"}.mui-icon-arrowthinup:before{content:\"\\E584\"}.mui-icon-arrowthindown:before{content:\"\\E585\"}.mui-icon-arrowthinleft:before{content:\"\\E586\"}.mui-icon-arrowthinright:before{content:\"\\E587\"}.mui-icon-pulldown:before{content:\"\\E588\"}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3646);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6fba2810", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-17eaa754]{margin:0;padding:0}body[data-v-17eaa754]{padding:0;width:100%;height:100%;min-height:100%;font-family:sans-serif;position:relative;max-width:640px;margin:0 auto;background:#f4f4f4}li[data-v-17eaa754],ol[data-v-17eaa754],ul[data-v-17eaa754]{list-style:none;margin:0}.clear_float[data-v-17eaa754]{zoom:1}.clear_float[data-v-17eaa754]:after{content:\"\";clear:both;display:block}.wx_khdxz[data-v-17eaa754]{float:left;display:block;width:100%;padding:22% 0 0;text-align:center}.wx_khdxz p[data-v-17eaa754]{color:#666;font-size:15px;font-family:microsoft yahei}.wx_bottom[data-v-17eaa754]{float:left;display:block;width:100%;position:fixed;bottom:-10px;max-width:640px;padding:0 12% 3%}.wx_bottom p[data-v-17eaa754]{width:100%;text-align:center;padding-top:9%;float:left;display:block;margin:0;font-size:12px}.APP_iphone[data-v-17eaa754]{float:left;display:block;width:100%;border-radius:5px;padding:0 10%}.APP_iphone img[data-v-17eaa754]{width:100%}.wx_android[data-v-17eaa754]{float:left;display:block;width:100%;margin-top:6%;border-radius:5px;padding:0 10%;margin-bottom:45%}.wx_android img[data-v-17eaa754]{width:100%}.logo2[data-v-17eaa754]{float:left;display:block;width:100%;padding:0 36%;max-width:640px;position:relative}.logo2 img[data-v-17eaa754]{width:100%;height:100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  data: function data() {
    return {};
  },
  watch: {},
  created: function created() {},
  mounted: function mounted() {},
  methods: {
    iswhere: function iswhere() {
      var u = navigator.userAgent;
      var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1;
      var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
      if (isAndroid) {
        window.location.href = '';
      }
      if (isiOS) {
        // var ua = navigator.userAgent.toLowerCase()
        // if (ua.match(/MicroMessenger/i) == 'micromessenger') {
        //   window.location.href = ''
        // } else {
        //   window.location.href = ''
        // }
      }
    },
    iswhere2: function iswhere2() {
      var u = navigator.userAgent;
      // var app = navigator.appVersion
      var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1;
      var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
      if (isAndroid) {
        var ua = navigator.userAgent.toLowerCase();
        // eslint-disable-next-line no-empty
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
          this.$router.push({
            name: 'alert'
          });
        } else {
          window.location.href = 'https://file.kaxiubaodian.com/app/kaxiubaodian.apk';
        }
      }
      if (isiOS) {
        alert('此版本仅支持安卓手机');
      }
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"wx_bottom"},[_c('div',{staticClass:"wx_android"},[_c('a',{attrs:{"id":"android_id_click","href":"javascript:void(0)"},on:{"click":function($event){return _vm.iswhere2()}}},[_c('img',{attrs:{"src":__webpack_require__(3647)}})])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wx_khdxz"},[_c('p',{staticClass:"logo2"},[_c('img',{attrs:{"src":__webpack_require__(143)}})]),_vm._v(" "),_c('p',[_vm._v("卡修宝典")])])}]
module.exports = __webpack_require__.p + "static/img/android.3e74d2d.png";module.exports = __webpack_require__.p + "static/img/icon.c70e129.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(721);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a502db9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1320);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3648)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-2a502db9"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a502db9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a502db9_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_alert_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3649);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3b2016f3", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "[data-v-2a502db9]{padding:0;margin:0}body[data-v-2a502db9]{background-color:#616d6d;width:100%}.img[data-v-2a502db9]{width:70%;right:0}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  mounted: function mounted() {
    var u = navigator.userAgent;
    var ua = navigator.userAgent.toLowerCase();
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
    var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
    if (isAndroid) {
      // eslint-disable-next-line no-empty
      if (ua.match(/MicroMessenger/i) == 'micromessenger') {} else {
        window.location.href = 'https://file.kaxiubaodian.com/app/kaxiubaodian.apk';
      }
    }
    if (isiOS) {
      alert('此版本仅支持安卓手机');
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%"}},[_c('table',{staticStyle:{"width":"100%"}},[_c('tr',[_c('td',{staticStyle:{"width":"80%","text-align":"right"}},[_c('img',{attrs:{"src":__webpack_require__(3650),"width":"100%"}})])])])])}]
module.exports = __webpack_require__.p + "static/img/shuomin.87bd293.png";/* WEBPACK VAR INJECTION */(function(process, Buffer) {/**
 * @licstart The following is the entire license notice for the
 * Javascript code in this page
 *
 * Copyright 2020 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * Javascript code in this page
 */

(function webpackUniversalModuleDefinition(root, factory) {
	if(true)
		module.exports = factory();
	else {}
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __w_pdfjs_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__w_pdfjs_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__w_pdfjs_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__w_pdfjs_require__.d = function(exports, name, getter) {
/******/ 		if(!__w_pdfjs_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__w_pdfjs_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__w_pdfjs_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __w_pdfjs_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__w_pdfjs_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __w_pdfjs_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__w_pdfjs_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__w_pdfjs_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__w_pdfjs_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "addLinkAttributes", {
  enumerable: true,
  get: function () {
    return _display_utils.addLinkAttributes;
  }
});
Object.defineProperty(exports, "getFilenameFromUrl", {
  enumerable: true,
  get: function () {
    return _display_utils.getFilenameFromUrl;
  }
});
Object.defineProperty(exports, "LinkTarget", {
  enumerable: true,
  get: function () {
    return _display_utils.LinkTarget;
  }
});
Object.defineProperty(exports, "loadScript", {
  enumerable: true,
  get: function () {
    return _display_utils.loadScript;
  }
});
Object.defineProperty(exports, "PDFDateString", {
  enumerable: true,
  get: function () {
    return _display_utils.PDFDateString;
  }
});
Object.defineProperty(exports, "RenderingCancelledException", {
  enumerable: true,
  get: function () {
    return _display_utils.RenderingCancelledException;
  }
});
Object.defineProperty(exports, "build", {
  enumerable: true,
  get: function () {
    return _api.build;
  }
});
Object.defineProperty(exports, "getDocument", {
  enumerable: true,
  get: function () {
    return _api.getDocument;
  }
});
Object.defineProperty(exports, "LoopbackPort", {
  enumerable: true,
  get: function () {
    return _api.LoopbackPort;
  }
});
Object.defineProperty(exports, "PDFDataRangeTransport", {
  enumerable: true,
  get: function () {
    return _api.PDFDataRangeTransport;
  }
});
Object.defineProperty(exports, "PDFWorker", {
  enumerable: true,
  get: function () {
    return _api.PDFWorker;
  }
});
Object.defineProperty(exports, "version", {
  enumerable: true,
  get: function () {
    return _api.version;
  }
});
Object.defineProperty(exports, "CMapCompressionType", {
  enumerable: true,
  get: function () {
    return _util.CMapCompressionType;
  }
});
Object.defineProperty(exports, "createObjectURL", {
  enumerable: true,
  get: function () {
    return _util.createObjectURL;
  }
});
Object.defineProperty(exports, "createPromiseCapability", {
  enumerable: true,
  get: function () {
    return _util.createPromiseCapability;
  }
});
Object.defineProperty(exports, "createValidAbsoluteUrl", {
  enumerable: true,
  get: function () {
    return _util.createValidAbsoluteUrl;
  }
});
Object.defineProperty(exports, "InvalidPDFException", {
  enumerable: true,
  get: function () {
    return _util.InvalidPDFException;
  }
});
Object.defineProperty(exports, "MissingPDFException", {
  enumerable: true,
  get: function () {
    return _util.MissingPDFException;
  }
});
Object.defineProperty(exports, "OPS", {
  enumerable: true,
  get: function () {
    return _util.OPS;
  }
});
Object.defineProperty(exports, "PasswordResponses", {
  enumerable: true,
  get: function () {
    return _util.PasswordResponses;
  }
});
Object.defineProperty(exports, "PermissionFlag", {
  enumerable: true,
  get: function () {
    return _util.PermissionFlag;
  }
});
Object.defineProperty(exports, "removeNullCharacters", {
  enumerable: true,
  get: function () {
    return _util.removeNullCharacters;
  }
});
Object.defineProperty(exports, "shadow", {
  enumerable: true,
  get: function () {
    return _util.shadow;
  }
});
Object.defineProperty(exports, "UnexpectedResponseException", {
  enumerable: true,
  get: function () {
    return _util.UnexpectedResponseException;
  }
});
Object.defineProperty(exports, "UNSUPPORTED_FEATURES", {
  enumerable: true,
  get: function () {
    return _util.UNSUPPORTED_FEATURES;
  }
});
Object.defineProperty(exports, "Util", {
  enumerable: true,
  get: function () {
    return _util.Util;
  }
});
Object.defineProperty(exports, "VerbosityLevel", {
  enumerable: true,
  get: function () {
    return _util.VerbosityLevel;
  }
});
Object.defineProperty(exports, "AnnotationLayer", {
  enumerable: true,
  get: function () {
    return _annotation_layer.AnnotationLayer;
  }
});
Object.defineProperty(exports, "apiCompatibilityParams", {
  enumerable: true,
  get: function () {
    return _api_compatibility.apiCompatibilityParams;
  }
});
Object.defineProperty(exports, "GlobalWorkerOptions", {
  enumerable: true,
  get: function () {
    return _worker_options.GlobalWorkerOptions;
  }
});
Object.defineProperty(exports, "renderTextLayer", {
  enumerable: true,
  get: function () {
    return _text_layer.renderTextLayer;
  }
});
Object.defineProperty(exports, "SVGGraphics", {
  enumerable: true,
  get: function () {
    return _svg.SVGGraphics;
  }
});

var _display_utils = __w_pdfjs_require__(1);

var _api = __w_pdfjs_require__(5);

var _util = __w_pdfjs_require__(2);

var _annotation_layer = __w_pdfjs_require__(19);

var _api_compatibility = __w_pdfjs_require__(9);

var _worker_options = __w_pdfjs_require__(12);

var _text_layer = __w_pdfjs_require__(20);

var _svg = __w_pdfjs_require__(21);

const pdfjsVersion = '2.6.347';
const pdfjsBuild = '3be9c65f';
{
  const {
    isNodeJS
  } = __w_pdfjs_require__(4);

  if (isNodeJS) {
    const PDFNodeStream = __w_pdfjs_require__(22).PDFNodeStream;

    (0, _api.setPDFNetworkStreamFactory)(params => {
      return new PDFNodeStream(params);
    });
  } else {
    const PDFNetworkStream = __w_pdfjs_require__(25).PDFNetworkStream;

    let PDFFetchStream;

    if ((0, _display_utils.isFetchSupported)()) {
      PDFFetchStream = __w_pdfjs_require__(26).PDFFetchStream;
    }

    (0, _api.setPDFNetworkStreamFactory)(params => {
      if (PDFFetchStream && (0, _display_utils.isValidFetchUrl)(params.url)) {
        return new PDFFetchStream(params);
      }

      return new PDFNetworkStream(params);
    });
  }
}

/***/ }),
/* 1 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.addLinkAttributes = addLinkAttributes;
exports.getFilenameFromUrl = getFilenameFromUrl;
exports.isFetchSupported = isFetchSupported;
exports.isValidFetchUrl = isValidFetchUrl;
exports.loadScript = loadScript;
exports.deprecated = deprecated;
exports.PDFDateString = exports.StatTimer = exports.DOMSVGFactory = exports.DOMCMapReaderFactory = exports.BaseCMapReaderFactory = exports.DOMCanvasFactory = exports.BaseCanvasFactory = exports.DEFAULT_LINK_REL = exports.LinkTarget = exports.RenderingCancelledException = exports.PageViewport = void 0;

var _util = __w_pdfjs_require__(2);

const DEFAULT_LINK_REL = "noopener noreferrer nofollow";
exports.DEFAULT_LINK_REL = DEFAULT_LINK_REL;
const SVG_NS = "http://www.w3.org/2000/svg";

class BaseCanvasFactory {
  constructor() {
    if (this.constructor === BaseCanvasFactory) {
      (0, _util.unreachable)("Cannot initialize BaseCanvasFactory.");
    }
  }

  create(width, height) {
    (0, _util.unreachable)("Abstract method `create` called.");
  }

  reset(canvasAndContext, width, height) {
    if (!canvasAndContext.canvas) {
      throw new Error("Canvas is not specified");
    }

    if (width <= 0 || height <= 0) {
      throw new Error("Invalid canvas size");
    }

    canvasAndContext.canvas.width = width;
    canvasAndContext.canvas.height = height;
  }

  destroy(canvasAndContext) {
    if (!canvasAndContext.canvas) {
      throw new Error("Canvas is not specified");
    }

    canvasAndContext.canvas.width = 0;
    canvasAndContext.canvas.height = 0;
    canvasAndContext.canvas = null;
    canvasAndContext.context = null;
  }

}

exports.BaseCanvasFactory = BaseCanvasFactory;

class DOMCanvasFactory extends BaseCanvasFactory {
  constructor({
    ownerDocument = globalThis.document
  } = {}) {
    super();
    this._document = ownerDocument;
  }

  create(width, height) {
    if (width <= 0 || height <= 0) {
      throw new Error("Invalid canvas size");
    }

    const canvas = this._document.createElement("canvas");

    const context = canvas.getContext("2d");
    canvas.width = width;
    canvas.height = height;
    return {
      canvas,
      context
    };
  }

}

exports.DOMCanvasFactory = DOMCanvasFactory;

class BaseCMapReaderFactory {
  constructor({
    baseUrl = null,
    isCompressed = false
  }) {
    if (this.constructor === BaseCMapReaderFactory) {
      (0, _util.unreachable)("Cannot initialize BaseCMapReaderFactory.");
    }

    this.baseUrl = baseUrl;
    this.isCompressed = isCompressed;
  }

  async fetch({
    name
  }) {
    if (!this.baseUrl) {
      throw new Error('The CMap "baseUrl" parameter must be specified, ensure that ' + 'the "cMapUrl" and "cMapPacked" API parameters are provided.');
    }

    if (!name) {
      throw new Error("CMap name must be specified.");
    }

    const url = this.baseUrl + name + (this.isCompressed ? ".bcmap" : "");
    const compressionType = this.isCompressed ? _util.CMapCompressionType.BINARY : _util.CMapCompressionType.NONE;
    return this._fetchData(url, compressionType).catch(reason => {
      throw new Error(`Unable to load ${this.isCompressed ? "binary " : ""}CMap at: ${url}`);
    });
  }

  _fetchData(url, compressionType) {
    (0, _util.unreachable)("Abstract method `_fetchData` called.");
  }

}

exports.BaseCMapReaderFactory = BaseCMapReaderFactory;

class DOMCMapReaderFactory extends BaseCMapReaderFactory {
  _fetchData(url, compressionType) {
    if (isFetchSupported() && isValidFetchUrl(url, document.baseURI)) {
      return fetch(url).then(async response => {
        if (!response.ok) {
          throw new Error(response.statusText);
        }

        let cMapData;

        if (this.isCompressed) {
          cMapData = new Uint8Array(await response.arrayBuffer());
        } else {
          cMapData = (0, _util.stringToBytes)(await response.text());
        }

        return {
          cMapData,
          compressionType
        };
      });
    }

    return new Promise((resolve, reject) => {
      const request = new XMLHttpRequest();
      request.open("GET", url, true);

      if (this.isCompressed) {
        request.responseType = "arraybuffer";
      }

      request.onreadystatechange = () => {
        if (request.readyState !== XMLHttpRequest.DONE) {
          return;
        }

        if (request.status === 200 || request.status === 0) {
          let cMapData;

          if (this.isCompressed && request.response) {
            cMapData = new Uint8Array(request.response);
          } else if (!this.isCompressed && request.responseText) {
            cMapData = (0, _util.stringToBytes)(request.responseText);
          }

          if (cMapData) {
            resolve({
              cMapData,
              compressionType
            });
            return;
          }
        }

        reject(new Error(request.statusText));
      };

      request.send(null);
    });
  }

}

exports.DOMCMapReaderFactory = DOMCMapReaderFactory;

class DOMSVGFactory {
  create(width, height) {
    (0, _util.assert)(width > 0 && height > 0, "Invalid SVG dimensions");
    const svg = document.createElementNS(SVG_NS, "svg:svg");
    svg.setAttribute("version", "1.1");
    svg.setAttribute("width", width + "px");
    svg.setAttribute("height", height + "px");
    svg.setAttribute("preserveAspectRatio", "none");
    svg.setAttribute("viewBox", "0 0 " + width + " " + height);
    return svg;
  }

  createElement(type) {
    (0, _util.assert)(typeof type === "string", "Invalid SVG element type");
    return document.createElementNS(SVG_NS, type);
  }

}

exports.DOMSVGFactory = DOMSVGFactory;

class PageViewport {
  constructor({
    viewBox,
    scale,
    rotation,
    offsetX = 0,
    offsetY = 0,
    dontFlip = false
  }) {
    this.viewBox = viewBox;
    this.scale = scale;
    this.rotation = rotation;
    this.offsetX = offsetX;
    this.offsetY = offsetY;
    const centerX = (viewBox[2] + viewBox[0]) / 2;
    const centerY = (viewBox[3] + viewBox[1]) / 2;
    let rotateA, rotateB, rotateC, rotateD;
    rotation = rotation % 360;
    rotation = rotation < 0 ? rotation + 360 : rotation;

    switch (rotation) {
      case 180:
        rotateA = -1;
        rotateB = 0;
        rotateC = 0;
        rotateD = 1;
        break;

      case 90:
        rotateA = 0;
        rotateB = 1;
        rotateC = 1;
        rotateD = 0;
        break;

      case 270:
        rotateA = 0;
        rotateB = -1;
        rotateC = -1;
        rotateD = 0;
        break;

      case 0:
        rotateA = 1;
        rotateB = 0;
        rotateC = 0;
        rotateD = -1;
        break;

      default:
        throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");
    }

    if (dontFlip) {
      rotateC = -rotateC;
      rotateD = -rotateD;
    }

    let offsetCanvasX, offsetCanvasY;
    let width, height;

    if (rotateA === 0) {
      offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
      offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
      width = Math.abs(viewBox[3] - viewBox[1]) * scale;
      height = Math.abs(viewBox[2] - viewBox[0]) * scale;
    } else {
      offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
      offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
      width = Math.abs(viewBox[2] - viewBox[0]) * scale;
      height = Math.abs(viewBox[3] - viewBox[1]) * scale;
    }

    this.transform = [rotateA * scale, rotateB * scale, rotateC * scale, rotateD * scale, offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY, offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY];
    this.width = width;
    this.height = height;
  }

  clone({
    scale = this.scale,
    rotation = this.rotation,
    offsetX = this.offsetX,
    offsetY = this.offsetY,
    dontFlip = false
  } = {}) {
    return new PageViewport({
      viewBox: this.viewBox.slice(),
      scale,
      rotation,
      offsetX,
      offsetY,
      dontFlip
    });
  }

  convertToViewportPoint(x, y) {
    return _util.Util.applyTransform([x, y], this.transform);
  }

  convertToViewportRectangle(rect) {
    const topLeft = _util.Util.applyTransform([rect[0], rect[1]], this.transform);

    const bottomRight = _util.Util.applyTransform([rect[2], rect[3]], this.transform);

    return [topLeft[0], topLeft[1], bottomRight[0], bottomRight[1]];
  }

  convertToPdfPoint(x, y) {
    return _util.Util.applyInverseTransform([x, y], this.transform);
  }

}

exports.PageViewport = PageViewport;

class RenderingCancelledException extends _util.BaseException {
  constructor(msg, type) {
    super(msg);
    this.type = type;
  }

}

exports.RenderingCancelledException = RenderingCancelledException;
const LinkTarget = {
  NONE: 0,
  SELF: 1,
  BLANK: 2,
  PARENT: 3,
  TOP: 4
};
exports.LinkTarget = LinkTarget;

function addLinkAttributes(link, {
  url,
  target,
  rel,
  enabled = true
} = {}) {
  (0, _util.assert)(url && typeof url === "string", 'addLinkAttributes: A valid "url" parameter must provided.');
  const urlNullRemoved = (0, _util.removeNullCharacters)(url);

  if (enabled) {
    link.href = link.title = urlNullRemoved;
  } else {
    link.href = "";
    link.title = `Disabled: ${urlNullRemoved}`;

    link.onclick = () => {
      return false;
    };
  }

  let targetStr = "";

  switch (target) {
    case LinkTarget.NONE:
      break;

    case LinkTarget.SELF:
      targetStr = "_self";
      break;

    case LinkTarget.BLANK:
      targetStr = "_blank";
      break;

    case LinkTarget.PARENT:
      targetStr = "_parent";
      break;

    case LinkTarget.TOP:
      targetStr = "_top";
      break;
  }

  link.target = targetStr;
  link.rel = typeof rel === "string" ? rel : DEFAULT_LINK_REL;
}

function getFilenameFromUrl(url) {
  const anchor = url.indexOf("#");
  const query = url.indexOf("?");
  const end = Math.min(anchor > 0 ? anchor : url.length, query > 0 ? query : url.length);
  return url.substring(url.lastIndexOf("/", end) + 1, end);
}

class StatTimer {
  constructor() {
    this.started = Object.create(null);
    this.times = [];
  }

  time(name) {
    if (name in this.started) {
      (0, _util.warn)(`Timer is already running for ${name}`);
    }

    this.started[name] = Date.now();
  }

  timeEnd(name) {
    if (!(name in this.started)) {
      (0, _util.warn)(`Timer has not been started for ${name}`);
    }

    this.times.push({
      name,
      start: this.started[name],
      end: Date.now()
    });
    delete this.started[name];
  }

  toString() {
    const outBuf = [];
    let longest = 0;

    for (const time of this.times) {
      const name = time.name;

      if (name.length > longest) {
        longest = name.length;
      }
    }

    for (const time of this.times) {
      const duration = time.end - time.start;
      outBuf.push(`${time.name.padEnd(longest)} ${duration}ms\n`);
    }

    return outBuf.join("");
  }

}

exports.StatTimer = StatTimer;

function isFetchSupported() {
  return typeof fetch !== "undefined" && typeof Response !== "undefined" && "body" in Response.prototype && typeof ReadableStream !== "undefined";
}

function isValidFetchUrl(url, baseUrl) {
  try {
    const {
      protocol
    } = baseUrl ? new URL(url, baseUrl) : new URL(url);
    return protocol === "http:" || protocol === "https:";
  } catch (ex) {
    return false;
  }
}

function loadScript(src) {
  return new Promise((resolve, reject) => {
    const script = document.createElement("script");
    script.src = src;
    script.onload = resolve;

    script.onerror = function () {
      reject(new Error(`Cannot load script at: ${script.src}`));
    };

    (document.head || document.documentElement).appendChild(script);
  });
}

function deprecated(details) {
  console.log("Deprecated API usage: " + details);
}

let pdfDateStringRegex;

class PDFDateString {
  static toDateObject(input) {
    if (!input || !(0, _util.isString)(input)) {
      return null;
    }

    if (!pdfDateStringRegex) {
      pdfDateStringRegex = new RegExp("^D:" + "(\\d{4})" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "([Z|+|-])?" + "(\\d{2})?" + "'?" + "(\\d{2})?" + "'?");
    }

    const matches = pdfDateStringRegex.exec(input);

    if (!matches) {
      return null;
    }

    const year = parseInt(matches[1], 10);
    let month = parseInt(matches[2], 10);
    month = month >= 1 && month <= 12 ? month - 1 : 0;
    let day = parseInt(matches[3], 10);
    day = day >= 1 && day <= 31 ? day : 1;
    let hour = parseInt(matches[4], 10);
    hour = hour >= 0 && hour <= 23 ? hour : 0;
    let minute = parseInt(matches[5], 10);
    minute = minute >= 0 && minute <= 59 ? minute : 0;
    let second = parseInt(matches[6], 10);
    second = second >= 0 && second <= 59 ? second : 0;
    const universalTimeRelation = matches[7] || "Z";
    let offsetHour = parseInt(matches[8], 10);
    offsetHour = offsetHour >= 0 && offsetHour <= 23 ? offsetHour : 0;
    let offsetMinute = parseInt(matches[9], 10) || 0;
    offsetMinute = offsetMinute >= 0 && offsetMinute <= 59 ? offsetMinute : 0;

    if (universalTimeRelation === "-") {
      hour += offsetHour;
      minute += offsetMinute;
    } else if (universalTimeRelation === "+") {
      hour -= offsetHour;
      minute -= offsetMinute;
    }

    return new Date(Date.UTC(year, month, day, hour, minute, second));
  }

}

exports.PDFDateString = PDFDateString;

/***/ }),
/* 2 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.arrayByteLength = arrayByteLength;
exports.arraysToBytes = arraysToBytes;
exports.assert = assert;
exports.bytesToString = bytesToString;
exports.createPromiseCapability = createPromiseCapability;
exports.escapeString = escapeString;
exports.getModificationDate = getModificationDate;
exports.getVerbosityLevel = getVerbosityLevel;
exports.info = info;
exports.isArrayBuffer = isArrayBuffer;
exports.isArrayEqual = isArrayEqual;
exports.isBool = isBool;
exports.isNum = isNum;
exports.isString = isString;
exports.isSameOrigin = isSameOrigin;
exports.createValidAbsoluteUrl = createValidAbsoluteUrl;
exports.removeNullCharacters = removeNullCharacters;
exports.setVerbosityLevel = setVerbosityLevel;
exports.shadow = shadow;
exports.string32 = string32;
exports.stringToBytes = stringToBytes;
exports.stringToPDFString = stringToPDFString;
exports.stringToUTF8String = stringToUTF8String;
exports.utf8StringToString = utf8StringToString;
exports.warn = warn;
exports.unreachable = unreachable;
exports.IsEvalSupportedCached = exports.IsLittleEndianCached = exports.createObjectURL = exports.FormatError = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.MissingPDFException = exports.InvalidPDFException = exports.AbortException = exports.CMapCompressionType = exports.ImageKind = exports.FontType = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.UNSUPPORTED_FEATURES = exports.VerbosityLevel = exports.OPS = exports.IDENTITY_MATRIX = exports.FONT_IDENTITY_MATRIX = exports.BaseException = void 0;

__w_pdfjs_require__(3);

const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
exports.IDENTITY_MATRIX = IDENTITY_MATRIX;
const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
exports.FONT_IDENTITY_MATRIX = FONT_IDENTITY_MATRIX;
const PermissionFlag = {
  PRINT: 0x04,
  MODIFY_CONTENTS: 0x08,
  COPY: 0x10,
  MODIFY_ANNOTATIONS: 0x20,
  FILL_INTERACTIVE_FORMS: 0x100,
  COPY_FOR_ACCESSIBILITY: 0x200,
  ASSEMBLE: 0x400,
  PRINT_HIGH_QUALITY: 0x800
};
exports.PermissionFlag = PermissionFlag;
const TextRenderingMode = {
  FILL: 0,
  STROKE: 1,
  FILL_STROKE: 2,
  INVISIBLE: 3,
  FILL_ADD_TO_PATH: 4,
  STROKE_ADD_TO_PATH: 5,
  FILL_STROKE_ADD_TO_PATH: 6,
  ADD_TO_PATH: 7,
  FILL_STROKE_MASK: 3,
  ADD_TO_PATH_FLAG: 4
};
exports.TextRenderingMode = TextRenderingMode;
const ImageKind = {
  GRAYSCALE_1BPP: 1,
  RGB_24BPP: 2,
  RGBA_32BPP: 3
};
exports.ImageKind = ImageKind;
const AnnotationType = {
  TEXT: 1,
  LINK: 2,
  FREETEXT: 3,
  LINE: 4,
  SQUARE: 5,
  CIRCLE: 6,
  POLYGON: 7,
  POLYLINE: 8,
  HIGHLIGHT: 9,
  UNDERLINE: 10,
  SQUIGGLY: 11,
  STRIKEOUT: 12,
  STAMP: 13,
  CARET: 14,
  INK: 15,
  POPUP: 16,
  FILEATTACHMENT: 17,
  SOUND: 18,
  MOVIE: 19,
  WIDGET: 20,
  SCREEN: 21,
  PRINTERMARK: 22,
  TRAPNET: 23,
  WATERMARK: 24,
  THREED: 25,
  REDACT: 26
};
exports.AnnotationType = AnnotationType;
const AnnotationStateModelType = {
  MARKED: "Marked",
  REVIEW: "Review"
};
exports.AnnotationStateModelType = AnnotationStateModelType;
const AnnotationMarkedState = {
  MARKED: "Marked",
  UNMARKED: "Unmarked"
};
exports.AnnotationMarkedState = AnnotationMarkedState;
const AnnotationReviewState = {
  ACCEPTED: "Accepted",
  REJECTED: "Rejected",
  CANCELLED: "Cancelled",
  COMPLETED: "Completed",
  NONE: "None"
};
exports.AnnotationReviewState = AnnotationReviewState;
const AnnotationReplyType = {
  GROUP: "Group",
  REPLY: "R"
};
exports.AnnotationReplyType = AnnotationReplyType;
const AnnotationFlag = {
  INVISIBLE: 0x01,
  HIDDEN: 0x02,
  PRINT: 0x04,
  NOZOOM: 0x08,
  NOROTATE: 0x10,
  NOVIEW: 0x20,
  READONLY: 0x40,
  LOCKED: 0x80,
  TOGGLENOVIEW: 0x100,
  LOCKEDCONTENTS: 0x200
};
exports.AnnotationFlag = AnnotationFlag;
const AnnotationFieldFlag = {
  READONLY: 0x0000001,
  REQUIRED: 0x0000002,
  NOEXPORT: 0x0000004,
  MULTILINE: 0x0001000,
  PASSWORD: 0x0002000,
  NOTOGGLETOOFF: 0x0004000,
  RADIO: 0x0008000,
  PUSHBUTTON: 0x0010000,
  COMBO: 0x0020000,
  EDIT: 0x0040000,
  SORT: 0x0080000,
  FILESELECT: 0x0100000,
  MULTISELECT: 0x0200000,
  DONOTSPELLCHECK: 0x0400000,
  DONOTSCROLL: 0x0800000,
  COMB: 0x1000000,
  RICHTEXT: 0x2000000,
  RADIOSINUNISON: 0x2000000,
  COMMITONSELCHANGE: 0x4000000
};
exports.AnnotationFieldFlag = AnnotationFieldFlag;
const AnnotationBorderStyleType = {
  SOLID: 1,
  DASHED: 2,
  BEVELED: 3,
  INSET: 4,
  UNDERLINE: 5
};
exports.AnnotationBorderStyleType = AnnotationBorderStyleType;
const StreamType = {
  UNKNOWN: "UNKNOWN",
  FLATE: "FLATE",
  LZW: "LZW",
  DCT: "DCT",
  JPX: "JPX",
  JBIG: "JBIG",
  A85: "A85",
  AHX: "AHX",
  CCF: "CCF",
  RLX: "RLX"
};
exports.StreamType = StreamType;
const FontType = {
  UNKNOWN: "UNKNOWN",
  TYPE1: "TYPE1",
  TYPE1C: "TYPE1C",
  CIDFONTTYPE0: "CIDFONTTYPE0",
  CIDFONTTYPE0C: "CIDFONTTYPE0C",
  TRUETYPE: "TRUETYPE",
  CIDFONTTYPE2: "CIDFONTTYPE2",
  TYPE3: "TYPE3",
  OPENTYPE: "OPENTYPE",
  TYPE0: "TYPE0",
  MMTYPE1: "MMTYPE1"
};
exports.FontType = FontType;
const VerbosityLevel = {
  ERRORS: 0,
  WARNINGS: 1,
  INFOS: 5
};
exports.VerbosityLevel = VerbosityLevel;
const CMapCompressionType = {
  NONE: 0,
  BINARY: 1,
  STREAM: 2
};
exports.CMapCompressionType = CMapCompressionType;
const OPS = {
  dependency: 1,
  setLineWidth: 2,
  setLineCap: 3,
  setLineJoin: 4,
  setMiterLimit: 5,
  setDash: 6,
  setRenderingIntent: 7,
  setFlatness: 8,
  setGState: 9,
  save: 10,
  restore: 11,
  transform: 12,
  moveTo: 13,
  lineTo: 14,
  curveTo: 15,
  curveTo2: 16,
  curveTo3: 17,
  closePath: 18,
  rectangle: 19,
  stroke: 20,
  closeStroke: 21,
  fill: 22,
  eoFill: 23,
  fillStroke: 24,
  eoFillStroke: 25,
  closeFillStroke: 26,
  closeEOFillStroke: 27,
  endPath: 28,
  clip: 29,
  eoClip: 30,
  beginText: 31,
  endText: 32,
  setCharSpacing: 33,
  setWordSpacing: 34,
  setHScale: 35,
  setLeading: 36,
  setFont: 37,
  setTextRenderingMode: 38,
  setTextRise: 39,
  moveText: 40,
  setLeadingMoveText: 41,
  setTextMatrix: 42,
  nextLine: 43,
  showText: 44,
  showSpacedText: 45,
  nextLineShowText: 46,
  nextLineSetSpacingShowText: 47,
  setCharWidth: 48,
  setCharWidthAndBounds: 49,
  setStrokeColorSpace: 50,
  setFillColorSpace: 51,
  setStrokeColor: 52,
  setStrokeColorN: 53,
  setFillColor: 54,
  setFillColorN: 55,
  setStrokeGray: 56,
  setFillGray: 57,
  setStrokeRGBColor: 58,
  setFillRGBColor: 59,
  setStrokeCMYKColor: 60,
  setFillCMYKColor: 61,
  shadingFill: 62,
  beginInlineImage: 63,
  beginImageData: 64,
  endInlineImage: 65,
  paintXObject: 66,
  markPoint: 67,
  markPointProps: 68,
  beginMarkedContent: 69,
  beginMarkedContentProps: 70,
  endMarkedContent: 71,
  beginCompat: 72,
  endCompat: 73,
  paintFormXObjectBegin: 74,
  paintFormXObjectEnd: 75,
  beginGroup: 76,
  endGroup: 77,
  beginAnnotations: 78,
  endAnnotations: 79,
  beginAnnotation: 80,
  endAnnotation: 81,
  paintJpegXObject: 82,
  paintImageMaskXObject: 83,
  paintImageMaskXObjectGroup: 84,
  paintImageXObject: 85,
  paintInlineImageXObject: 86,
  paintInlineImageXObjectGroup: 87,
  paintImageXObjectRepeat: 88,
  paintImageMaskXObjectRepeat: 89,
  paintSolidColorImageMask: 90,
  constructPath: 91
};
exports.OPS = OPS;
const UNSUPPORTED_FEATURES = {
  unknown: "unknown",
  forms: "forms",
  javaScript: "javaScript",
  smask: "smask",
  shadingPattern: "shadingPattern",
  font: "font",
  errorTilingPattern: "errorTilingPattern",
  errorExtGState: "errorExtGState",
  errorXObject: "errorXObject",
  errorFontLoadType3: "errorFontLoadType3",
  errorFontState: "errorFontState",
  errorFontMissing: "errorFontMissing",
  errorFontTranslate: "errorFontTranslate",
  errorColorSpace: "errorColorSpace",
  errorOperatorList: "errorOperatorList",
  errorFontToUnicode: "errorFontToUnicode",
  errorFontLoadNative: "errorFontLoadNative",
  errorFontGetPath: "errorFontGetPath",
  errorMarkedContent: "errorMarkedContent"
};
exports.UNSUPPORTED_FEATURES = UNSUPPORTED_FEATURES;
const PasswordResponses = {
  NEED_PASSWORD: 1,
  INCORRECT_PASSWORD: 2
};
exports.PasswordResponses = PasswordResponses;
let verbosity = VerbosityLevel.WARNINGS;

function setVerbosityLevel(level) {
  if (Number.isInteger(level)) {
    verbosity = level;
  }
}

function getVerbosityLevel() {
  return verbosity;
}

function info(msg) {
  if (verbosity >= VerbosityLevel.INFOS) {
    console.log(`Info: ${msg}`);
  }
}

function warn(msg) {
  if (verbosity >= VerbosityLevel.WARNINGS) {
    console.log(`Warning: ${msg}`);
  }
}

function unreachable(msg) {
  throw new Error(msg);
}

function assert(cond, msg) {
  if (!cond) {
    unreachable(msg);
  }
}

function isSameOrigin(baseUrl, otherUrl) {
  let base;

  try {
    base = new URL(baseUrl);

    if (!base.origin || base.origin === "null") {
      return false;
    }
  } catch (e) {
    return false;
  }

  const other = new URL(otherUrl, base);
  return base.origin === other.origin;
}

function _isValidProtocol(url) {
  if (!url) {
    return false;
  }

  switch (url.protocol) {
    case "http:":
    case "https:":
    case "ftp:":
    case "mailto:":
    case "tel:":
      return true;

    default:
      return false;
  }
}

function createValidAbsoluteUrl(url, baseUrl) {
  if (!url) {
    return null;
  }

  try {
    const absoluteUrl = baseUrl ? new URL(url, baseUrl) : new URL(url);

    if (_isValidProtocol(absoluteUrl)) {
      return absoluteUrl;
    }
  } catch (ex) {}

  return null;
}

function shadow(obj, prop, value) {
  Object.defineProperty(obj, prop, {
    value,
    enumerable: true,
    configurable: true,
    writable: false
  });
  return value;
}

const BaseException = function BaseExceptionClosure() {
  function BaseException(message) {
    if (this.constructor === BaseException) {
      unreachable("Cannot initialize BaseException.");
    }

    this.message = message;
    this.name = this.constructor.name;
  }

  BaseException.prototype = new Error();
  BaseException.constructor = BaseException;
  return BaseException;
}();

exports.BaseException = BaseException;

class PasswordException extends BaseException {
  constructor(msg, code) {
    super(msg);
    this.code = code;
  }

}

exports.PasswordException = PasswordException;

class UnknownErrorException extends BaseException {
  constructor(msg, details) {
    super(msg);
    this.details = details;
  }

}

exports.UnknownErrorException = UnknownErrorException;

class InvalidPDFException extends BaseException {}

exports.InvalidPDFException = InvalidPDFException;

class MissingPDFException extends BaseException {}

exports.MissingPDFException = MissingPDFException;

class UnexpectedResponseException extends BaseException {
  constructor(msg, status) {
    super(msg);
    this.status = status;
  }

}

exports.UnexpectedResponseException = UnexpectedResponseException;

class FormatError extends BaseException {}

exports.FormatError = FormatError;

class AbortException extends BaseException {}

exports.AbortException = AbortException;
const NullCharactersRegExp = /\x00/g;

function removeNullCharacters(str) {
  if (typeof str !== "string") {
    warn("The argument for removeNullCharacters must be a string.");
    return str;
  }

  return str.replace(NullCharactersRegExp, "");
}

function bytesToString(bytes) {
  assert(bytes !== null && typeof bytes === "object" && bytes.length !== undefined, "Invalid argument for bytesToString");
  const length = bytes.length;
  const MAX_ARGUMENT_COUNT = 8192;

  if (length < MAX_ARGUMENT_COUNT) {
    return String.fromCharCode.apply(null, bytes);
  }

  const strBuf = [];

  for (let i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
    const chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
    const chunk = bytes.subarray(i, chunkEnd);
    strBuf.push(String.fromCharCode.apply(null, chunk));
  }

  return strBuf.join("");
}

function stringToBytes(str) {
  assert(typeof str === "string", "Invalid argument for stringToBytes");
  const length = str.length;
  const bytes = new Uint8Array(length);

  for (let i = 0; i < length; ++i) {
    bytes[i] = str.charCodeAt(i) & 0xff;
  }

  return bytes;
}

function arrayByteLength(arr) {
  if (arr.length !== undefined) {
    return arr.length;
  }

  assert(arr.byteLength !== undefined, "arrayByteLength - invalid argument.");
  return arr.byteLength;
}

function arraysToBytes(arr) {
  const length = arr.length;

  if (length === 1 && arr[0] instanceof Uint8Array) {
    return arr[0];
  }

  let resultLength = 0;

  for (let i = 0; i < length; i++) {
    resultLength += arrayByteLength(arr[i]);
  }

  let pos = 0;
  const data = new Uint8Array(resultLength);

  for (let i = 0; i < length; i++) {
    let item = arr[i];

    if (!(item instanceof Uint8Array)) {
      if (typeof item === "string") {
        item = stringToBytes(item);
      } else {
        item = new Uint8Array(item);
      }
    }

    const itemLength = item.byteLength;
    data.set(item, pos);
    pos += itemLength;
  }

  return data;
}

function string32(value) {
  return String.fromCharCode(value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff);
}

function isLittleEndian() {
  const buffer8 = new Uint8Array(4);
  buffer8[0] = 1;
  const view32 = new Uint32Array(buffer8.buffer, 0, 1);
  return view32[0] === 1;
}

const IsLittleEndianCached = {
  get value() {
    return shadow(this, "value", isLittleEndian());
  }

};
exports.IsLittleEndianCached = IsLittleEndianCached;

function isEvalSupported() {
  try {
    new Function("");
    return true;
  } catch (e) {
    return false;
  }
}

const IsEvalSupportedCached = {
  get value() {
    return shadow(this, "value", isEvalSupported());
  }

};
exports.IsEvalSupportedCached = IsEvalSupportedCached;
const rgbBuf = ["rgb(", 0, ",", 0, ",", 0, ")"];

class Util {
  static makeCssRgb(r, g, b) {
    rgbBuf[1] = r;
    rgbBuf[3] = g;
    rgbBuf[5] = b;
    return rgbBuf.join("");
  }

  static transform(m1, m2) {
    return [m1[0] * m2[0] + m1[2] * m2[1], m1[1] * m2[0] + m1[3] * m2[1], m1[0] * m2[2] + m1[2] * m2[3], m1[1] * m2[2] + m1[3] * m2[3], m1[0] * m2[4] + m1[2] * m2[5] + m1[4], m1[1] * m2[4] + m1[3] * m2[5] + m1[5]];
  }

  static applyTransform(p, m) {
    const xt = p[0] * m[0] + p[1] * m[2] + m[4];
    const yt = p[0] * m[1] + p[1] * m[3] + m[5];
    return [xt, yt];
  }

  static applyInverseTransform(p, m) {
    const d = m[0] * m[3] - m[1] * m[2];
    const xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
    const yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
    return [xt, yt];
  }

  static getAxialAlignedBoundingBox(r, m) {
    const p1 = Util.applyTransform(r, m);
    const p2 = Util.applyTransform(r.slice(2, 4), m);
    const p3 = Util.applyTransform([r[0], r[3]], m);
    const p4 = Util.applyTransform([r[2], r[1]], m);
    return [Math.min(p1[0], p2[0], p3[0], p4[0]), Math.min(p1[1], p2[1], p3[1], p4[1]), Math.max(p1[0], p2[0], p3[0], p4[0]), Math.max(p1[1], p2[1], p3[1], p4[1])];
  }

  static inverseTransform(m) {
    const d = m[0] * m[3] - m[1] * m[2];
    return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d, (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  }

  static apply3dTransform(m, v) {
    return [m[0] * v[0] + m[1] * v[1] + m[2] * v[2], m[3] * v[0] + m[4] * v[1] + m[5] * v[2], m[6] * v[0] + m[7] * v[1] + m[8] * v[2]];
  }

  static singularValueDecompose2dScale(m) {
    const transpose = [m[0], m[2], m[1], m[3]];
    const a = m[0] * transpose[0] + m[1] * transpose[2];
    const b = m[0] * transpose[1] + m[1] * transpose[3];
    const c = m[2] * transpose[0] + m[3] * transpose[2];
    const d = m[2] * transpose[1] + m[3] * transpose[3];
    const first = (a + d) / 2;
    const second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
    const sx = first + second || 1;
    const sy = first - second || 1;
    return [Math.sqrt(sx), Math.sqrt(sy)];
  }

  static normalizeRect(rect) {
    const r = rect.slice(0);

    if (rect[0] > rect[2]) {
      r[0] = rect[2];
      r[2] = rect[0];
    }

    if (rect[1] > rect[3]) {
      r[1] = rect[3];
      r[3] = rect[1];
    }

    return r;
  }

  static intersect(rect1, rect2) {
    function compare(a, b) {
      return a - b;
    }

    const orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare);
    const orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare);
    const result = [];
    rect1 = Util.normalizeRect(rect1);
    rect2 = Util.normalizeRect(rect2);

    if (orderedX[0] === rect1[0] && orderedX[1] === rect2[0] || orderedX[0] === rect2[0] && orderedX[1] === rect1[0]) {
      result[0] = orderedX[1];
      result[2] = orderedX[2];
    } else {
      return null;
    }

    if (orderedY[0] === rect1[1] && orderedY[1] === rect2[1] || orderedY[0] === rect2[1] && orderedY[1] === rect1[1]) {
      result[1] = orderedY[1];
      result[3] = orderedY[2];
    } else {
      return null;
    }

    return result;
  }

}

exports.Util = Util;
const PDFStringTranslateTable = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C, 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160, 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC];

function stringToPDFString(str) {
  const length = str.length,
        strBuf = [];

  if (str[0] === "\xFE" && str[1] === "\xFF") {
    for (let i = 2; i < length; i += 2) {
      strBuf.push(String.fromCharCode(str.charCodeAt(i) << 8 | str.charCodeAt(i + 1)));
    }
  } else if (str[0] === "\xFF" && str[1] === "\xFE") {
    for (let i = 2; i < length; i += 2) {
      strBuf.push(String.fromCharCode(str.charCodeAt(i + 1) << 8 | str.charCodeAt(i)));
    }
  } else {
    for (let i = 0; i < length; ++i) {
      const code = PDFStringTranslateTable[str.charCodeAt(i)];
      strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
    }
  }

  return strBuf.join("");
}

function escapeString(str) {
  return str.replace(/([\(\)\\])/g, "\\$1");
}

function stringToUTF8String(str) {
  return decodeURIComponent(escape(str));
}

function utf8StringToString(str) {
  return unescape(encodeURIComponent(str));
}

function isBool(v) {
  return typeof v === "boolean";
}

function isNum(v) {
  return typeof v === "number";
}

function isString(v) {
  return typeof v === "string";
}

function isArrayBuffer(v) {
  return typeof v === "object" && v !== null && v.byteLength !== undefined;
}

function isArrayEqual(arr1, arr2) {
  if (arr1.length !== arr2.length) {
    return false;
  }

  return arr1.every(function (element, index) {
    return element === arr2[index];
  });
}

function getModificationDate(date = new Date(Date.now())) {
  const buffer = [date.getUTCFullYear().toString(), (date.getUTCMonth() + 1).toString().padStart(2, "0"), (date.getUTCDate() + 1).toString().padStart(2, "0"), date.getUTCHours().toString().padStart(2, "0"), date.getUTCMinutes().toString().padStart(2, "0"), date.getUTCSeconds().toString().padStart(2, "0")];
  return buffer.join("");
}

function createPromiseCapability() {
  const capability = Object.create(null);
  let isSettled = false;
  Object.defineProperty(capability, "settled", {
    get() {
      return isSettled;
    }

  });
  capability.promise = new Promise(function (resolve, reject) {
    capability.resolve = function (data) {
      isSettled = true;
      resolve(data);
    };

    capability.reject = function (reason) {
      isSettled = true;
      reject(reason);
    };
  });
  return capability;
}

const createObjectURL = function createObjectURLClosure() {
  const digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  return function createObjectURL(data, contentType, forceDataSchema = false) {
    if (!forceDataSchema && URL.createObjectURL) {
      const blob = new Blob([data], {
        type: contentType
      });
      return URL.createObjectURL(blob);
    }

    let buffer = `data:${contentType};base64,`;

    for (let i = 0, ii = data.length; i < ii; i += 3) {
      const b1 = data[i] & 0xff;
      const b2 = data[i + 1] & 0xff;
      const b3 = data[i + 2] & 0xff;
      const d1 = b1 >> 2,
            d2 = (b1 & 3) << 4 | b2 >> 4;
      const d3 = i + 1 < ii ? (b2 & 0xf) << 2 | b3 >> 6 : 64;
      const d4 = i + 2 < ii ? b3 & 0x3f : 64;
      buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
    }

    return buffer;
  };
}();

exports.createObjectURL = createObjectURL;

/***/ }),
/* 3 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


var _is_node = __w_pdfjs_require__(4);

;

/***/ }),
/* 4 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isNodeJS = void 0;
const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
exports.isNodeJS = isNodeJS;

/***/ }),
/* 5 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getDocument = getDocument;
exports.setPDFNetworkStreamFactory = setPDFNetworkStreamFactory;
exports.build = exports.version = exports.PDFPageProxy = exports.PDFDocumentProxy = exports.PDFWorker = exports.PDFDataRangeTransport = exports.LoopbackPort = void 0;

var _util = __w_pdfjs_require__(2);

var _display_utils = __w_pdfjs_require__(1);

var _font_loader = __w_pdfjs_require__(6);

var _node_utils = __w_pdfjs_require__(7);

var _annotation_storage = __w_pdfjs_require__(8);

var _api_compatibility = __w_pdfjs_require__(9);

var _canvas = __w_pdfjs_require__(10);

var _worker_options = __w_pdfjs_require__(12);

var _is_node = __w_pdfjs_require__(4);

var _message_handler = __w_pdfjs_require__(13);

var _metadata = __w_pdfjs_require__(14);

var _optional_content_config = __w_pdfjs_require__(16);

var _transport_stream = __w_pdfjs_require__(17);

var _webgl = __w_pdfjs_require__(18);

const DEFAULT_RANGE_CHUNK_SIZE = 65536;
const RENDERING_CANCELLED_TIMEOUT = 100;
const DefaultCanvasFactory = _is_node.isNodeJS ? _node_utils.NodeCanvasFactory : _display_utils.DOMCanvasFactory;
const DefaultCMapReaderFactory = _is_node.isNodeJS ? _node_utils.NodeCMapReaderFactory : _display_utils.DOMCMapReaderFactory;
let createPDFNetworkStream;

function setPDFNetworkStreamFactory(pdfNetworkStreamFactory) {
  createPDFNetworkStream = pdfNetworkStreamFactory;
}

function getDocument(src) {
  const task = new PDFDocumentLoadingTask();
  let source;

  if (typeof src === "string") {
    source = {
      url: src
    };
  } else if ((0, _util.isArrayBuffer)(src)) {
    source = {
      data: src
    };
  } else if (src instanceof PDFDataRangeTransport) {
    source = {
      range: src
    };
  } else {
    if (typeof src !== "object") {
      throw new Error("Invalid parameter in getDocument, " + "need either Uint8Array, string or a parameter object");
    }

    if (!src.url && !src.data && !src.range) {
      throw new Error("Invalid parameter object: need either .data, .range or .url");
    }

    source = src;
  }

  const params = Object.create(null);
  let rangeTransport = null,
      worker = null;

  for (const key in source) {
    if (key === "url" && typeof window !== "undefined") {
      params[key] = new URL(source[key], window.location).href;
      continue;
    } else if (key === "range") {
      rangeTransport = source[key];
      continue;
    } else if (key === "worker") {
      worker = source[key];
      continue;
    } else if (key === "data" && !(source[key] instanceof Uint8Array)) {
      const pdfBytes = source[key];

      if (typeof pdfBytes === "string") {
        params[key] = (0, _util.stringToBytes)(pdfBytes);
      } else if (typeof pdfBytes === "object" && pdfBytes !== null && !isNaN(pdfBytes.length)) {
        params[key] = new Uint8Array(pdfBytes);
      } else if ((0, _util.isArrayBuffer)(pdfBytes)) {
        params[key] = new Uint8Array(pdfBytes);
      } else {
        throw new Error("Invalid PDF binary data: either typed array, " + "string or array-like object is expected in the " + "data property.");
      }

      continue;
    }

    params[key] = source[key];
  }

  params.rangeChunkSize = params.rangeChunkSize || DEFAULT_RANGE_CHUNK_SIZE;
  params.CMapReaderFactory = params.CMapReaderFactory || DefaultCMapReaderFactory;
  params.ignoreErrors = params.stopAtErrors !== true;
  params.fontExtraProperties = params.fontExtraProperties === true;
  params.pdfBug = params.pdfBug === true;

  if (!Number.isInteger(params.maxImageSize)) {
    params.maxImageSize = -1;
  }

  if (typeof params.isEvalSupported !== "boolean") {
    params.isEvalSupported = true;
  }

  if (typeof params.disableFontFace !== "boolean") {
    params.disableFontFace = _api_compatibility.apiCompatibilityParams.disableFontFace || false;
  }

  if (typeof params.ownerDocument === "undefined") {
    params.ownerDocument = globalThis.document;
  }

  if (typeof params.disableRange !== "boolean") {
    params.disableRange = false;
  }

  if (typeof params.disableStream !== "boolean") {
    params.disableStream = false;
  }

  if (typeof params.disableAutoFetch !== "boolean") {
    params.disableAutoFetch = false;
  }

  (0, _util.setVerbosityLevel)(params.verbosity);

  if (!worker) {
    const workerParams = {
      verbosity: params.verbosity,
      port: _worker_options.GlobalWorkerOptions.workerPort
    };
    worker = workerParams.port ? PDFWorker.fromPort(workerParams) : new PDFWorker(workerParams);
    task._worker = worker;
  }

  const docId = task.docId;
  worker.promise.then(function () {
    if (task.destroyed) {
      throw new Error("Loading aborted");
    }

    const workerIdPromise = _fetchDocument(worker, params, rangeTransport, docId);

    const networkStreamPromise = new Promise(function (resolve) {
      let networkStream;

      if (rangeTransport) {
        networkStream = new _transport_stream.PDFDataTransportStream({
          length: params.length,
          initialData: params.initialData,
          progressiveDone: params.progressiveDone,
          disableRange: params.disableRange,
          disableStream: params.disableStream
        }, rangeTransport);
      } else if (!params.data) {
        networkStream = createPDFNetworkStream({
          url: params.url,
          length: params.length,
          httpHeaders: params.httpHeaders,
          withCredentials: params.withCredentials,
          rangeChunkSize: params.rangeChunkSize,
          disableRange: params.disableRange,
          disableStream: params.disableStream
        });
      }

      resolve(networkStream);
    });
    return Promise.all([workerIdPromise, networkStreamPromise]).then(function ([workerId, networkStream]) {
      if (task.destroyed) {
        throw new Error("Loading aborted");
      }

      const messageHandler = new _message_handler.MessageHandler(docId, workerId, worker.port);
      messageHandler.postMessageTransfers = worker.postMessageTransfers;
      const transport = new WorkerTransport(messageHandler, task, networkStream, params);
      task._transport = transport;
      messageHandler.send("Ready", null);
    });
  }).catch(task._capability.reject);
  return task;
}

function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
  if (worker.destroyed) {
    return Promise.reject(new Error("Worker was destroyed"));
  }

  if (pdfDataRangeTransport) {
    source.length = pdfDataRangeTransport.length;
    source.initialData = pdfDataRangeTransport.initialData;
    source.progressiveDone = pdfDataRangeTransport.progressiveDone;
  }

  return worker.messageHandler.sendWithPromise("GetDocRequest", {
    docId,
    apiVersion: '2.6.347',
    source: {
      data: source.data,
      url: source.url,
      password: source.password,
      disableAutoFetch: source.disableAutoFetch,
      rangeChunkSize: source.rangeChunkSize,
      length: source.length
    },
    maxImageSize: source.maxImageSize,
    disableFontFace: source.disableFontFace,
    postMessageTransfers: worker.postMessageTransfers,
    docBaseUrl: source.docBaseUrl,
    ignoreErrors: source.ignoreErrors,
    isEvalSupported: source.isEvalSupported,
    fontExtraProperties: source.fontExtraProperties
  }).then(function (workerId) {
    if (worker.destroyed) {
      throw new Error("Worker was destroyed");
    }

    return workerId;
  });
}

const PDFDocumentLoadingTask = function PDFDocumentLoadingTaskClosure() {
  let nextDocumentId = 0;

  class PDFDocumentLoadingTask {
    constructor() {
      this._capability = (0, _util.createPromiseCapability)();
      this._transport = null;
      this._worker = null;
      this.docId = "d" + nextDocumentId++;
      this.destroyed = false;
      this.onPassword = null;
      this.onProgress = null;
      this.onUnsupportedFeature = null;
    }

    get promise() {
      return this._capability.promise;
    }

    destroy() {
      this.destroyed = true;
      const transportDestroyed = !this._transport ? Promise.resolve() : this._transport.destroy();
      return transportDestroyed.then(() => {
        this._transport = null;

        if (this._worker) {
          this._worker.destroy();

          this._worker = null;
        }
      });
    }

  }

  return PDFDocumentLoadingTask;
}();

class PDFDataRangeTransport {
  constructor(length, initialData, progressiveDone = false) {
    this.length = length;
    this.initialData = initialData;
    this.progressiveDone = progressiveDone;
    this._rangeListeners = [];
    this._progressListeners = [];
    this._progressiveReadListeners = [];
    this._progressiveDoneListeners = [];
    this._readyCapability = (0, _util.createPromiseCapability)();
  }

  addRangeListener(listener) {
    this._rangeListeners.push(listener);
  }

  addProgressListener(listener) {
    this._progressListeners.push(listener);
  }

  addProgressiveReadListener(listener) {
    this._progressiveReadListeners.push(listener);
  }

  addProgressiveDoneListener(listener) {
    this._progressiveDoneListeners.push(listener);
  }

  onDataRange(begin, chunk) {
    for (const listener of this._rangeListeners) {
      listener(begin, chunk);
    }
  }

  onDataProgress(loaded, total) {
    this._readyCapability.promise.then(() => {
      for (const listener of this._progressListeners) {
        listener(loaded, total);
      }
    });
  }

  onDataProgressiveRead(chunk) {
    this._readyCapability.promise.then(() => {
      for (const listener of this._progressiveReadListeners) {
        listener(chunk);
      }
    });
  }

  onDataProgressiveDone() {
    this._readyCapability.promise.then(() => {
      for (const listener of this._progressiveDoneListeners) {
        listener();
      }
    });
  }

  transportReady() {
    this._readyCapability.resolve();
  }

  requestDataRange(begin, end) {
    (0, _util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange");
  }

  abort() {}

}

exports.PDFDataRangeTransport = PDFDataRangeTransport;

class PDFDocumentProxy {
  constructor(pdfInfo, transport) {
    this._pdfInfo = pdfInfo;
    this._transport = transport;
  }

  get annotationStorage() {
    return (0, _util.shadow)(this, "annotationStorage", new _annotation_storage.AnnotationStorage());
  }

  get numPages() {
    return this._pdfInfo.numPages;
  }

  get fingerprint() {
    return this._pdfInfo.fingerprint;
  }

  getPage(pageNumber) {
    return this._transport.getPage(pageNumber);
  }

  getPageIndex(ref) {
    return this._transport.getPageIndex(ref);
  }

  getDestinations() {
    return this._transport.getDestinations();
  }

  getDestination(id) {
    return this._transport.getDestination(id);
  }

  getPageLabels() {
    return this._transport.getPageLabels();
  }

  getPageLayout() {
    return this._transport.getPageLayout();
  }

  getPageMode() {
    return this._transport.getPageMode();
  }

  getViewerPreferences() {
    return this._transport.getViewerPreferences();
  }

  getOpenAction() {
    return this._transport.getOpenAction();
  }

  getAttachments() {
    return this._transport.getAttachments();
  }

  getJavaScript() {
    return this._transport.getJavaScript();
  }

  getOutline() {
    return this._transport.getOutline();
  }

  getOptionalContentConfig() {
    return this._transport.getOptionalContentConfig();
  }

  getPermissions() {
    return this._transport.getPermissions();
  }

  getMetadata() {
    return this._transport.getMetadata();
  }

  getData() {
    return this._transport.getData();
  }

  getDownloadInfo() {
    return this._transport.downloadInfoCapability.promise;
  }

  getStats() {
    return this._transport.getStats();
  }

  cleanup() {
    return this._transport.startCleanup();
  }

  destroy() {
    return this.loadingTask.destroy();
  }

  get loadingParams() {
    return this._transport.loadingParams;
  }

  get loadingTask() {
    return this._transport.loadingTask;
  }

  saveDocument(annotationStorage) {
    return this._transport.saveDocument(annotationStorage);
  }

}

exports.PDFDocumentProxy = PDFDocumentProxy;

class PDFPageProxy {
  constructor(pageIndex, pageInfo, transport, ownerDocument, pdfBug = false) {
    this._pageIndex = pageIndex;
    this._pageInfo = pageInfo;
    this._ownerDocument = ownerDocument;
    this._transport = transport;
    this._stats = pdfBug ? new _display_utils.StatTimer() : null;
    this._pdfBug = pdfBug;
    this.commonObjs = transport.commonObjs;
    this.objs = new PDFObjects();
    this.cleanupAfterRender = false;
    this.pendingCleanup = false;
    this._intentStates = new Map();
    this.destroyed = false;
  }

  get pageNumber() {
    return this._pageIndex + 1;
  }

  get rotate() {
    return this._pageInfo.rotate;
  }

  get ref() {
    return this._pageInfo.ref;
  }

  get userUnit() {
    return this._pageInfo.userUnit;
  }

  get view() {
    return this._pageInfo.view;
  }

  getViewport({
    scale,
    rotation = this.rotate,
    offsetX = 0,
    offsetY = 0,
    dontFlip = false
  } = {}) {
    return new _display_utils.PageViewport({
      viewBox: this.view,
      scale,
      rotation,
      offsetX,
      offsetY,
      dontFlip
    });
  }

  getAnnotations({
    intent = null
  } = {}) {
    if (!this.annotationsPromise || this.annotationsIntent !== intent) {
      this.annotationsPromise = this._transport.getAnnotations(this._pageIndex, intent);
      this.annotationsIntent = intent;
    }

    return this.annotationsPromise;
  }

  render({
    canvasContext,
    viewport,
    intent = "display",
    enableWebGL = false,
    renderInteractiveForms = false,
    transform = null,
    imageLayer = null,
    canvasFactory = null,
    background = null,
    annotationStorage = null,
    optionalContentConfigPromise = null
  }) {
    if (this._stats) {
      this._stats.time("Overall");
    }

    const renderingIntent = intent === "print" ? "print" : "display";
    this.pendingCleanup = false;

    if (!optionalContentConfigPromise) {
      optionalContentConfigPromise = this._transport.getOptionalContentConfig();
    }

    let intentState = this._intentStates.get(renderingIntent);

    if (!intentState) {
      intentState = Object.create(null);

      this._intentStates.set(renderingIntent, intentState);
    }

    if (intentState.streamReaderCancelTimeout) {
      clearTimeout(intentState.streamReaderCancelTimeout);
      intentState.streamReaderCancelTimeout = null;
    }

    const canvasFactoryInstance = canvasFactory || new DefaultCanvasFactory({
      ownerDocument: this._ownerDocument
    });
    const webGLContext = new _webgl.WebGLContext({
      enable: enableWebGL
    });

    if (!intentState.displayReadyCapability) {
      intentState.displayReadyCapability = (0, _util.createPromiseCapability)();
      intentState.operatorList = {
        fnArray: [],
        argsArray: [],
        lastChunk: false
      };

      if (this._stats) {
        this._stats.time("Page Request");
      }

      this._pumpOperatorList({
        pageIndex: this._pageIndex,
        intent: renderingIntent,
        renderInteractiveForms: renderInteractiveForms === true,
        annotationStorage: annotationStorage && annotationStorage.getAll() || null
      });
    }

    const complete = error => {
      const i = intentState.renderTasks.indexOf(internalRenderTask);

      if (i >= 0) {
        intentState.renderTasks.splice(i, 1);
      }

      if (this.cleanupAfterRender || renderingIntent === "print") {
        this.pendingCleanup = true;
      }

      this._tryCleanup();

      if (error) {
        internalRenderTask.capability.reject(error);

        this._abortOperatorList({
          intentState,
          reason: error
        });
      } else {
        internalRenderTask.capability.resolve();
      }

      if (this._stats) {
        this._stats.timeEnd("Rendering");

        this._stats.timeEnd("Overall");
      }
    };

    const internalRenderTask = new InternalRenderTask({
      callback: complete,
      params: {
        canvasContext,
        viewport,
        transform,
        imageLayer,
        background
      },
      objs: this.objs,
      commonObjs: this.commonObjs,
      operatorList: intentState.operatorList,
      pageIndex: this._pageIndex,
      canvasFactory: canvasFactoryInstance,
      webGLContext,
      useRequestAnimationFrame: renderingIntent !== "print",
      pdfBug: this._pdfBug
    });

    if (!intentState.renderTasks) {
      intentState.renderTasks = [];
    }

    intentState.renderTasks.push(internalRenderTask);
    const renderTask = internalRenderTask.task;
    Promise.all([intentState.displayReadyCapability.promise, optionalContentConfigPromise]).then(([transparency, optionalContentConfig]) => {
      if (this.pendingCleanup) {
        complete();
        return;
      }

      if (this._stats) {
        this._stats.time("Rendering");
      }

      internalRenderTask.initializeGraphics({
        transparency,
        optionalContentConfig
      });
      internalRenderTask.operatorListChanged();
    }).catch(complete);
    return renderTask;
  }

  getOperatorList() {
    function operatorListChanged() {
      if (intentState.operatorList.lastChunk) {
        intentState.opListReadCapability.resolve(intentState.operatorList);
        const i = intentState.renderTasks.indexOf(opListTask);

        if (i >= 0) {
          intentState.renderTasks.splice(i, 1);
        }
      }
    }

    const renderingIntent = "oplist";

    let intentState = this._intentStates.get(renderingIntent);

    if (!intentState) {
      intentState = Object.create(null);

      this._intentStates.set(renderingIntent, intentState);
    }

    let opListTask;

    if (!intentState.opListReadCapability) {
      opListTask = Object.create(null);
      opListTask.operatorListChanged = operatorListChanged;
      intentState.opListReadCapability = (0, _util.createPromiseCapability)();
      intentState.renderTasks = [];
      intentState.renderTasks.push(opListTask);
      intentState.operatorList = {
        fnArray: [],
        argsArray: [],
        lastChunk: false
      };

      if (this._stats) {
        this._stats.time("Page Request");
      }

      this._pumpOperatorList({
        pageIndex: this._pageIndex,
        intent: renderingIntent
      });
    }

    return intentState.opListReadCapability.promise;
  }

  streamTextContent({
    normalizeWhitespace = false,
    disableCombineTextItems = false
  } = {}) {
    const TEXT_CONTENT_CHUNK_SIZE = 100;
    return this._transport.messageHandler.sendWithStream("GetTextContent", {
      pageIndex: this._pageIndex,
      normalizeWhitespace: normalizeWhitespace === true,
      combineTextItems: disableCombineTextItems !== true
    }, {
      highWaterMark: TEXT_CONTENT_CHUNK_SIZE,

      size(textContent) {
        return textContent.items.length;
      }

    });
  }

  getTextContent(params = {}) {
    const readableStream = this.streamTextContent(params);
    return new Promise(function (resolve, reject) {
      function pump() {
        reader.read().then(function ({
          value,
          done
        }) {
          if (done) {
            resolve(textContent);
            return;
          }

          Object.assign(textContent.styles, value.styles);
          textContent.items.push(...value.items);
          pump();
        }, reject);
      }

      const reader = readableStream.getReader();
      const textContent = {
        items: [],
        styles: Object.create(null)
      };
      pump();
    });
  }

  _destroy() {
    this.destroyed = true;
    this._transport.pageCache[this._pageIndex] = null;
    const waitOn = [];

    for (const [intent, intentState] of this._intentStates) {
      this._abortOperatorList({
        intentState,
        reason: new Error("Page was destroyed."),
        force: true
      });

      if (intent === "oplist") {
        continue;
      }

      for (const internalRenderTask of intentState.renderTasks) {
        waitOn.push(internalRenderTask.completed);
        internalRenderTask.cancel();
      }
    }

    this.objs.clear();
    this.annotationsPromise = null;
    this.pendingCleanup = false;
    return Promise.all(waitOn);
  }

  cleanup(resetStats = false) {
    this.pendingCleanup = true;
    return this._tryCleanup(resetStats);
  }

  _tryCleanup(resetStats = false) {
    if (!this.pendingCleanup) {
      return false;
    }

    for (const {
      renderTasks,
      operatorList
    } of this._intentStates.values()) {
      if (renderTasks.length !== 0 || !operatorList.lastChunk) {
        return false;
      }
    }

    this._intentStates.clear();

    this.objs.clear();
    this.annotationsPromise = null;

    if (resetStats && this._stats) {
      this._stats = new _display_utils.StatTimer();
    }

    this.pendingCleanup = false;
    return true;
  }

  _startRenderPage(transparency, intent) {
    const intentState = this._intentStates.get(intent);

    if (!intentState) {
      return;
    }

    if (this._stats) {
      this._stats.timeEnd("Page Request");
    }

    if (intentState.displayReadyCapability) {
      intentState.displayReadyCapability.resolve(transparency);
    }
  }

  _renderPageChunk(operatorListChunk, intentState) {
    for (let i = 0, ii = operatorListChunk.length; i < ii; i++) {
      intentState.operatorList.fnArray.push(operatorListChunk.fnArray[i]);
      intentState.operatorList.argsArray.push(operatorListChunk.argsArray[i]);
    }

    intentState.operatorList.lastChunk = operatorListChunk.lastChunk;

    for (let i = 0; i < intentState.renderTasks.length; i++) {
      intentState.renderTasks[i].operatorListChanged();
    }

    if (operatorListChunk.lastChunk) {
      this._tryCleanup();
    }
  }

  _pumpOperatorList(args) {
    (0, _util.assert)(args.intent, 'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');

    const readableStream = this._transport.messageHandler.sendWithStream("GetOperatorList", args);

    const reader = readableStream.getReader();

    const intentState = this._intentStates.get(args.intent);

    intentState.streamReader = reader;

    const pump = () => {
      reader.read().then(({
        value,
        done
      }) => {
        if (done) {
          intentState.streamReader = null;
          return;
        }

        if (this._transport.destroyed) {
          return;
        }

        this._renderPageChunk(value, intentState);

        pump();
      }, reason => {
        intentState.streamReader = null;

        if (this._transport.destroyed) {
          return;
        }

        if (intentState.operatorList) {
          intentState.operatorList.lastChunk = true;

          for (let i = 0; i < intentState.renderTasks.length; i++) {
            intentState.renderTasks[i].operatorListChanged();
          }

          this._tryCleanup();
        }

        if (intentState.displayReadyCapability) {
          intentState.displayReadyCapability.reject(reason);
        } else if (intentState.opListReadCapability) {
          intentState.opListReadCapability.reject(reason);
        } else {
          throw reason;
        }
      });
    };

    pump();
  }

  _abortOperatorList({
    intentState,
    reason,
    force = false
  }) {
    (0, _util.assert)(reason instanceof Error || typeof reason === "object" && reason !== null, 'PDFPageProxy._abortOperatorList: Expected "reason" argument.');

    if (!intentState.streamReader) {
      return;
    }

    if (!force) {
      if (intentState.renderTasks.length !== 0) {
        return;
      }

      if (reason instanceof _display_utils.RenderingCancelledException) {
        intentState.streamReaderCancelTimeout = setTimeout(() => {
          this._abortOperatorList({
            intentState,
            reason,
            force: true
          });

          intentState.streamReaderCancelTimeout = null;
        }, RENDERING_CANCELLED_TIMEOUT);
        return;
      }
    }

    intentState.streamReader.cancel(new _util.AbortException(reason && reason.message));
    intentState.streamReader = null;

    if (this._transport.destroyed) {
      return;
    }

    for (const [intent, curIntentState] of this._intentStates) {
      if (curIntentState === intentState) {
        this._intentStates.delete(intent);

        break;
      }
    }

    this.cleanup();
  }

  get stats() {
    return this._stats;
  }

}

exports.PDFPageProxy = PDFPageProxy;

class LoopbackPort {
  constructor(defer = true) {
    this._listeners = [];
    this._defer = defer;
    this._deferred = Promise.resolve(undefined);
  }

  postMessage(obj, transfers) {
    function cloneValue(value) {
      if (typeof value !== "object" || value === null) {
        return value;
      }

      if (cloned.has(value)) {
        return cloned.get(value);
      }

      let buffer, result;

      if ((buffer = value.buffer) && (0, _util.isArrayBuffer)(buffer)) {
        const transferable = transfers && transfers.includes(buffer);

        if (transferable) {
          result = new value.constructor(buffer, value.byteOffset, value.byteLength);
        } else {
          result = new value.constructor(value);
        }

        cloned.set(value, result);
        return result;
      }

      result = Array.isArray(value) ? [] : {};
      cloned.set(value, result);

      for (const i in value) {
        let desc,
            p = value;

        while (!(desc = Object.getOwnPropertyDescriptor(p, i))) {
          p = Object.getPrototypeOf(p);
        }

        if (typeof desc.value === "undefined") {
          continue;
        }

        if (typeof desc.value === "function") {
          if (value.hasOwnProperty && value.hasOwnProperty(i)) {
            throw new Error(`LoopbackPort.postMessage - cannot clone: ${value[i]}`);
          }

          continue;
        }

        result[i] = cloneValue(desc.value);
      }

      return result;
    }

    if (!this._defer) {
      this._listeners.forEach(listener => {
        listener.call(this, {
          data: obj
        });
      });

      return;
    }

    const cloned = new WeakMap();
    const e = {
      data: cloneValue(obj)
    };

    this._deferred.then(() => {
      this._listeners.forEach(listener => {
        listener.call(this, e);
      });
    });
  }

  addEventListener(name, listener) {
    this._listeners.push(listener);
  }

  removeEventListener(name, listener) {
    const i = this._listeners.indexOf(listener);

    this._listeners.splice(i, 1);
  }

  terminate() {
    this._listeners.length = 0;
  }

}

exports.LoopbackPort = LoopbackPort;

const PDFWorker = function PDFWorkerClosure() {
  const pdfWorkerPorts = new WeakMap();
  let isWorkerDisabled = false;
  let fallbackWorkerSrc;
  let nextFakeWorkerId = 0;
  let fakeWorkerCapability;

  if (_is_node.isNodeJS && "function" === "function") {
    isWorkerDisabled = true;
    fallbackWorkerSrc = "./pdf.worker.js";
  } else if (typeof document === "object" && "currentScript" in document) {
    const pdfjsFilePath = document.currentScript && document.currentScript.src;

    if (pdfjsFilePath) {
      fallbackWorkerSrc = pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i, ".worker$1$2");
    }
  }

  function getWorkerSrc() {
    if (_worker_options.GlobalWorkerOptions.workerSrc) {
      return _worker_options.GlobalWorkerOptions.workerSrc;
    }

    if (typeof fallbackWorkerSrc !== "undefined") {
      if (!_is_node.isNodeJS) {
        (0, _display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.');
      }

      return fallbackWorkerSrc;
    }

    throw new Error('No "GlobalWorkerOptions.workerSrc" specified.');
  }

  function getMainThreadWorkerMessageHandler() {
    let mainWorkerMessageHandler;

    try {
      mainWorkerMessageHandler = globalThis.pdfjsWorker && globalThis.pdfjsWorker.WorkerMessageHandler;
    } catch (ex) {}

    return mainWorkerMessageHandler || null;
  }

  function setupFakeWorkerGlobal() {
    if (fakeWorkerCapability) {
      return fakeWorkerCapability.promise;
    }

    fakeWorkerCapability = (0, _util.createPromiseCapability)();

    const loader = async function () {
      const mainWorkerMessageHandler = getMainThreadWorkerMessageHandler();

      if (mainWorkerMessageHandler) {
        return mainWorkerMessageHandler;
      }

      if (_is_node.isNodeJS && "function" === "function") {
        const worker = eval("require")(getWorkerSrc());
        return worker.WorkerMessageHandler;
      }

      await (0, _display_utils.loadScript)(getWorkerSrc());
      return window.pdfjsWorker.WorkerMessageHandler;
    };

    loader().then(fakeWorkerCapability.resolve, fakeWorkerCapability.reject);
    return fakeWorkerCapability.promise;
  }

  function createCDNWrapper(url) {
    const wrapper = "importScripts('" + url + "');";
    return URL.createObjectURL(new Blob([wrapper]));
  }

  class PDFWorker {
    constructor({
      name = null,
      port = null,
      verbosity = (0, _util.getVerbosityLevel)()
    } = {}) {
      if (port && pdfWorkerPorts.has(port)) {
        throw new Error("Cannot use more than one PDFWorker per port");
      }

      this.name = name;
      this.destroyed = false;
      this.postMessageTransfers = true;
      this.verbosity = verbosity;
      this._readyCapability = (0, _util.createPromiseCapability)();
      this._port = null;
      this._webWorker = null;
      this._messageHandler = null;

      if (port) {
        pdfWorkerPorts.set(port, this);

        this._initializeFromPort(port);

        return;
      }

      this._initialize();
    }

    get promise() {
      return this._readyCapability.promise;
    }

    get port() {
      return this._port;
    }

    get messageHandler() {
      return this._messageHandler;
    }

    _initializeFromPort(port) {
      this._port = port;
      this._messageHandler = new _message_handler.MessageHandler("main", "worker", port);

      this._messageHandler.on("ready", function () {});

      this._readyCapability.resolve();
    }

    _initialize() {
      if (typeof Worker !== "undefined" && !isWorkerDisabled && !getMainThreadWorkerMessageHandler()) {
        let workerSrc = getWorkerSrc();

        try {
          if (!(0, _util.isSameOrigin)(window.location.href, workerSrc)) {
            workerSrc = createCDNWrapper(new URL(workerSrc, window.location).href);
          }

          const worker = new Worker(workerSrc);
          const messageHandler = new _message_handler.MessageHandler("main", "worker", worker);

          const terminateEarly = () => {
            worker.removeEventListener("error", onWorkerError);
            messageHandler.destroy();
            worker.terminate();

            if (this.destroyed) {
              this._readyCapability.reject(new Error("Worker was destroyed"));
            } else {
              this._setupFakeWorker();
            }
          };

          const onWorkerError = () => {
            if (!this._webWorker) {
              terminateEarly();
            }
          };

          worker.addEventListener("error", onWorkerError);
          messageHandler.on("test", data => {
            worker.removeEventListener("error", onWorkerError);

            if (this.destroyed) {
              terminateEarly();
              return;
            }

            if (data) {
              this._messageHandler = messageHandler;
              this._port = worker;
              this._webWorker = worker;

              if (!data.supportTransfers) {
                this.postMessageTransfers = false;
              }

              this._readyCapability.resolve();

              messageHandler.send("configure", {
                verbosity: this.verbosity
              });
            } else {
              this._setupFakeWorker();

              messageHandler.destroy();
              worker.terminate();
            }
          });
          messageHandler.on("ready", data => {
            worker.removeEventListener("error", onWorkerError);

            if (this.destroyed) {
              terminateEarly();
              return;
            }

            try {
              sendTest();
            } catch (e) {
              this._setupFakeWorker();
            }
          });

          const sendTest = () => {
            const testObj = new Uint8Array([this.postMessageTransfers ? 255 : 0]);

            try {
              messageHandler.send("test", testObj, [testObj.buffer]);
            } catch (ex) {
              (0, _util.warn)("Cannot use postMessage transfers.");
              testObj[0] = 0;
              messageHandler.send("test", testObj);
            }
          };

          sendTest();
          return;
        } catch (e) {
          (0, _util.info)("The worker has been disabled.");
        }
      }

      this._setupFakeWorker();
    }

    _setupFakeWorker() {
      if (!isWorkerDisabled) {
        (0, _util.warn)("Setting up fake worker.");
        isWorkerDisabled = true;
      }

      setupFakeWorkerGlobal().then(WorkerMessageHandler => {
        if (this.destroyed) {
          this._readyCapability.reject(new Error("Worker was destroyed"));

          return;
        }

        const port = new LoopbackPort();
        this._port = port;
        const id = "fake" + nextFakeWorkerId++;
        const workerHandler = new _message_handler.MessageHandler(id + "_worker", id, port);
        WorkerMessageHandler.setup(workerHandler, port);
        const messageHandler = new _message_handler.MessageHandler(id, id + "_worker", port);
        this._messageHandler = messageHandler;

        this._readyCapability.resolve();

        messageHandler.send("configure", {
          verbosity: this.verbosity
        });
      }).catch(reason => {
        this._readyCapability.reject(new Error(`Setting up fake worker failed: "${reason.message}".`));
      });
    }

    destroy() {
      this.destroyed = true;

      if (this._webWorker) {
        this._webWorker.terminate();

        this._webWorker = null;
      }

      pdfWorkerPorts.delete(this._port);
      this._port = null;

      if (this._messageHandler) {
        this._messageHandler.destroy();

        this._messageHandler = null;
      }
    }

    static fromPort(params) {
      if (!params || !params.port) {
        throw new Error("PDFWorker.fromPort - invalid method signature.");
      }

      if (pdfWorkerPorts.has(params.port)) {
        return pdfWorkerPorts.get(params.port);
      }

      return new PDFWorker(params);
    }

    static getWorkerSrc() {
      return getWorkerSrc();
    }

  }

  return PDFWorker;
}();

exports.PDFWorker = PDFWorker;

class WorkerTransport {
  constructor(messageHandler, loadingTask, networkStream, params) {
    this.messageHandler = messageHandler;
    this.loadingTask = loadingTask;
    this.commonObjs = new PDFObjects();
    this.fontLoader = new _font_loader.FontLoader({
      docId: loadingTask.docId,
      onUnsupportedFeature: this._onUnsupportedFeature.bind(this),
      ownerDocument: params.ownerDocument
    });
    this._params = params;
    this.CMapReaderFactory = new params.CMapReaderFactory({
      baseUrl: params.cMapUrl,
      isCompressed: params.cMapPacked
    });
    this.destroyed = false;
    this.destroyCapability = null;
    this._passwordCapability = null;
    this._networkStream = networkStream;
    this._fullReader = null;
    this._lastProgress = null;
    this.pageCache = [];
    this.pagePromises = [];
    this.downloadInfoCapability = (0, _util.createPromiseCapability)();
    this.setupMessageHandler();
  }

  destroy() {
    if (this.destroyCapability) {
      return this.destroyCapability.promise;
    }

    this.destroyed = true;
    this.destroyCapability = (0, _util.createPromiseCapability)();

    if (this._passwordCapability) {
      this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));
    }

    const waitOn = [];
    this.pageCache.forEach(function (page) {
      if (page) {
        waitOn.push(page._destroy());
      }
    });
    this.pageCache.length = 0;
    this.pagePromises.length = 0;
    const terminated = this.messageHandler.sendWithPromise("Terminate", null);
    waitOn.push(terminated);
    Promise.all(waitOn).then(() => {
      this.fontLoader.clear();

      if (this._networkStream) {
        this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated."));
      }

      if (this.messageHandler) {
        this.messageHandler.destroy();
        this.messageHandler = null;
      }

      this.destroyCapability.resolve();
    }, this.destroyCapability.reject);
    return this.destroyCapability.promise;
  }

  setupMessageHandler() {
    const {
      messageHandler,
      loadingTask
    } = this;
    messageHandler.on("GetReader", (data, sink) => {
      (0, _util.assert)(this._networkStream, "GetReader - no `IPDFStream` instance available.");
      this._fullReader = this._networkStream.getFullReader();

      this._fullReader.onProgress = evt => {
        this._lastProgress = {
          loaded: evt.loaded,
          total: evt.total
        };
      };

      sink.onPull = () => {
        this._fullReader.read().then(function ({
          value,
          done
        }) {
          if (done) {
            sink.close();
            return;
          }

          (0, _util.assert)((0, _util.isArrayBuffer)(value), "GetReader - expected an ArrayBuffer.");
          sink.enqueue(new Uint8Array(value), 1, [value]);
        }).catch(reason => {
          sink.error(reason);
        });
      };

      sink.onCancel = reason => {
        this._fullReader.cancel(reason);

        sink.ready.catch(readyReason => {
          if (this.destroyed) {
            return;
          }

          throw readyReason;
        });
      };
    });
    messageHandler.on("ReaderHeadersReady", data => {
      const headersCapability = (0, _util.createPromiseCapability)();
      const fullReader = this._fullReader;
      fullReader.headersReady.then(() => {
        if (!fullReader.isStreamingSupported || !fullReader.isRangeSupported) {
          if (this._lastProgress && loadingTask.onProgress) {
            loadingTask.onProgress(this._lastProgress);
          }

          fullReader.onProgress = evt => {
            if (loadingTask.onProgress) {
              loadingTask.onProgress({
                loaded: evt.loaded,
                total: evt.total
              });
            }
          };
        }

        headersCapability.resolve({
          isStreamingSupported: fullReader.isStreamingSupported,
          isRangeSupported: fullReader.isRangeSupported,
          contentLength: fullReader.contentLength
        });
      }, headersCapability.reject);
      return headersCapability.promise;
    });
    messageHandler.on("GetRangeReader", (data, sink) => {
      (0, _util.assert)(this._networkStream, "GetRangeReader - no `IPDFStream` instance available.");

      const rangeReader = this._networkStream.getRangeReader(data.begin, data.end);

      if (!rangeReader) {
        sink.close();
        return;
      }

      sink.onPull = () => {
        rangeReader.read().then(function ({
          value,
          done
        }) {
          if (done) {
            sink.close();
            return;
          }

          (0, _util.assert)((0, _util.isArrayBuffer)(value), "GetRangeReader - expected an ArrayBuffer.");
          sink.enqueue(new Uint8Array(value), 1, [value]);
        }).catch(reason => {
          sink.error(reason);
        });
      };

      sink.onCancel = reason => {
        rangeReader.cancel(reason);
        sink.ready.catch(readyReason => {
          if (this.destroyed) {
            return;
          }

          throw readyReason;
        });
      };
    });
    messageHandler.on("GetDoc", ({
      pdfInfo
    }) => {
      this._numPages = pdfInfo.numPages;

      loadingTask._capability.resolve(new PDFDocumentProxy(pdfInfo, this));
    });
    messageHandler.on("DocException", function (ex) {
      let reason;

      switch (ex.name) {
        case "PasswordException":
          reason = new _util.PasswordException(ex.message, ex.code);
          break;

        case "InvalidPDFException":
          reason = new _util.InvalidPDFException(ex.message);
          break;

        case "MissingPDFException":
          reason = new _util.MissingPDFException(ex.message);
          break;

        case "UnexpectedResponseException":
          reason = new _util.UnexpectedResponseException(ex.message, ex.status);
          break;

        case "UnknownErrorException":
          reason = new _util.UnknownErrorException(ex.message, ex.details);
          break;
      }

      if (!(reason instanceof Error)) {
        const msg = "DocException - expected a valid Error.";
        (0, _util.warn)(msg);
      }

      loadingTask._capability.reject(reason);
    });
    messageHandler.on("PasswordRequest", exception => {
      this._passwordCapability = (0, _util.createPromiseCapability)();

      if (loadingTask.onPassword) {
        const updatePassword = password => {
          this._passwordCapability.resolve({
            password
          });
        };

        try {
          loadingTask.onPassword(updatePassword, exception.code);
        } catch (ex) {
          this._passwordCapability.reject(ex);
        }
      } else {
        this._passwordCapability.reject(new _util.PasswordException(exception.message, exception.code));
      }

      return this._passwordCapability.promise;
    });
    messageHandler.on("DataLoaded", data => {
      if (loadingTask.onProgress) {
        loadingTask.onProgress({
          loaded: data.length,
          total: data.length
        });
      }

      this.downloadInfoCapability.resolve(data);
    });
    messageHandler.on("StartRenderPage", data => {
      if (this.destroyed) {
        return;
      }

      const page = this.pageCache[data.pageIndex];

      page._startRenderPage(data.transparency, data.intent);
    });
    messageHandler.on("commonobj", data => {
      if (this.destroyed) {
        return;
      }

      const [id, type, exportedData] = data;

      if (this.commonObjs.has(id)) {
        return;
      }

      switch (type) {
        case "Font":
          const params = this._params;

          if ("error" in exportedData) {
            const exportedError = exportedData.error;
            (0, _util.warn)(`Error during font loading: ${exportedError}`);
            this.commonObjs.resolve(id, exportedError);
            break;
          }

          let fontRegistry = null;

          if (params.pdfBug && globalThis.FontInspector && globalThis.FontInspector.enabled) {
            fontRegistry = {
              registerFont(font, url) {
                globalThis.FontInspector.fontAdded(font, url);
              }

            };
          }

          const font = new _font_loader.FontFaceObject(exportedData, {
            isEvalSupported: params.isEvalSupported,
            disableFontFace: params.disableFontFace,
            ignoreErrors: params.ignoreErrors,
            onUnsupportedFeature: this._onUnsupportedFeature.bind(this),
            fontRegistry
          });
          this.fontLoader.bind(font).catch(reason => {
            return messageHandler.sendWithPromise("FontFallback", {
              id
            });
          }).finally(() => {
            if (!params.fontExtraProperties && font.data) {
              font.data = null;
            }

            this.commonObjs.resolve(id, font);
          });
          break;

        case "FontPath":
        case "Image":
          this.commonObjs.resolve(id, exportedData);
          break;

        default:
          throw new Error(`Got unknown common object type ${type}`);
      }
    });
    messageHandler.on("obj", data => {
      if (this.destroyed) {
        return undefined;
      }

      const [id, pageIndex, type, imageData] = data;
      const pageProxy = this.pageCache[pageIndex];

      if (pageProxy.objs.has(id)) {
        return undefined;
      }

      switch (type) {
        case "Image":
          pageProxy.objs.resolve(id, imageData);
          const MAX_IMAGE_SIZE_TO_STORE = 8000000;

          if (imageData && "data" in imageData && imageData.data.length > MAX_IMAGE_SIZE_TO_STORE) {
            pageProxy.cleanupAfterRender = true;
          }

          break;

        default:
          throw new Error(`Got unknown object type ${type}`);
      }

      return undefined;
    });
    messageHandler.on("DocProgress", data => {
      if (this.destroyed) {
        return;
      }

      if (loadingTask.onProgress) {
        loadingTask.onProgress({
          loaded: data.loaded,
          total: data.total
        });
      }
    });
    messageHandler.on("UnsupportedFeature", this._onUnsupportedFeature.bind(this));
    messageHandler.on("FetchBuiltInCMap", (data, sink) => {
      if (this.destroyed) {
        sink.error(new Error("Worker was destroyed"));
        return;
      }

      let fetched = false;

      sink.onPull = () => {
        if (fetched) {
          sink.close();
          return;
        }

        fetched = true;
        this.CMapReaderFactory.fetch(data).then(function (builtInCMap) {
          sink.enqueue(builtInCMap, 1, [builtInCMap.cMapData.buffer]);
        }).catch(function (reason) {
          sink.error(reason);
        });
      };
    });
  }

  _onUnsupportedFeature({
    featureId
  }) {
    if (this.destroyed) {
      return;
    }

    if (this.loadingTask.onUnsupportedFeature) {
      this.loadingTask.onUnsupportedFeature(featureId);
    }
  }

  getData() {
    return this.messageHandler.sendWithPromise("GetData", null);
  }

  getPage(pageNumber) {
    if (!Number.isInteger(pageNumber) || pageNumber <= 0 || pageNumber > this._numPages) {
      return Promise.reject(new Error("Invalid page request"));
    }

    const pageIndex = pageNumber - 1;

    if (pageIndex in this.pagePromises) {
      return this.pagePromises[pageIndex];
    }

    const promise = this.messageHandler.sendWithPromise("GetPage", {
      pageIndex
    }).then(pageInfo => {
      if (this.destroyed) {
        throw new Error("Transport destroyed");
      }

      const page = new PDFPageProxy(pageIndex, pageInfo, this, this._params.ownerDocument, this._params.pdfBug);
      this.pageCache[pageIndex] = page;
      return page;
    });
    this.pagePromises[pageIndex] = promise;
    return promise;
  }

  getPageIndex(ref) {
    return this.messageHandler.sendWithPromise("GetPageIndex", {
      ref
    }).catch(function (reason) {
      return Promise.reject(new Error(reason));
    });
  }

  getAnnotations(pageIndex, intent) {
    return this.messageHandler.sendWithPromise("GetAnnotations", {
      pageIndex,
      intent
    });
  }

  saveDocument(annotationStorage) {
    return this.messageHandler.sendWithPromise("SaveDocument", {
      numPages: this._numPages,
      annotationStorage: annotationStorage && annotationStorage.getAll() || null,
      filename: this._fullReader ? this._fullReader.filename : null
    }).finally(() => {
      if (annotationStorage) {
        annotationStorage.resetModified();
      }
    });
  }

  getDestinations() {
    return this.messageHandler.sendWithPromise("GetDestinations", null);
  }

  getDestination(id) {
    if (typeof id !== "string") {
      return Promise.reject(new Error("Invalid destination request."));
    }

    return this.messageHandler.sendWithPromise("GetDestination", {
      id
    });
  }

  getPageLabels() {
    return this.messageHandler.sendWithPromise("GetPageLabels", null);
  }

  getPageLayout() {
    return this.messageHandler.sendWithPromise("GetPageLayout", null);
  }

  getPageMode() {
    return this.messageHandler.sendWithPromise("GetPageMode", null);
  }

  getViewerPreferences() {
    return this.messageHandler.sendWithPromise("GetViewerPreferences", null);
  }

  getOpenAction() {
    return this.messageHandler.sendWithPromise("GetOpenAction", null);
  }

  getAttachments() {
    return this.messageHandler.sendWithPromise("GetAttachments", null);
  }

  getJavaScript() {
    return this.messageHandler.sendWithPromise("GetJavaScript", null);
  }

  getOutline() {
    return this.messageHandler.sendWithPromise("GetOutline", null);
  }

  getOptionalContentConfig() {
    return this.messageHandler.sendWithPromise("GetOptionalContentConfig", null).then(results => {
      return new _optional_content_config.OptionalContentConfig(results);
    });
  }

  getPermissions() {
    return this.messageHandler.sendWithPromise("GetPermissions", null);
  }

  getMetadata() {
    return this.messageHandler.sendWithPromise("GetMetadata", null).then(results => {
      return {
        info: results[0],
        metadata: results[1] ? new _metadata.Metadata(results[1]) : null,
        contentDispositionFilename: this._fullReader ? this._fullReader.filename : null
      };
    });
  }

  getStats() {
    return this.messageHandler.sendWithPromise("GetStats", null);
  }

  startCleanup() {
    return this.messageHandler.sendWithPromise("Cleanup", null).then(() => {
      for (let i = 0, ii = this.pageCache.length; i < ii; i++) {
        const page = this.pageCache[i];

        if (page) {
          const cleanupSuccessful = page.cleanup();

          if (!cleanupSuccessful) {
            throw new Error(`startCleanup: Page ${i + 1} is currently rendering.`);
          }
        }
      }

      this.commonObjs.clear();
      this.fontLoader.clear();
    });
  }

  get loadingParams() {
    const params = this._params;
    return (0, _util.shadow)(this, "loadingParams", {
      disableAutoFetch: params.disableAutoFetch,
      disableFontFace: params.disableFontFace
    });
  }

}

class PDFObjects {
  constructor() {
    this._objs = Object.create(null);
  }

  _ensureObj(objId) {
    if (this._objs[objId]) {
      return this._objs[objId];
    }

    return this._objs[objId] = {
      capability: (0, _util.createPromiseCapability)(),
      data: null,
      resolved: false
    };
  }

  get(objId, callback = null) {
    if (callback) {
      this._ensureObj(objId).capability.promise.then(callback);

      return null;
    }

    const obj = this._objs[objId];

    if (!obj || !obj.resolved) {
      throw new Error(`Requesting object that isn't resolved yet ${objId}.`);
    }

    return obj.data;
  }

  has(objId) {
    const obj = this._objs[objId];
    return obj ? obj.resolved : false;
  }

  resolve(objId, data) {
    const obj = this._ensureObj(objId);

    obj.resolved = true;
    obj.data = data;
    obj.capability.resolve(data);
  }

  clear() {
    this._objs = Object.create(null);
  }

}

class RenderTask {
  constructor(internalRenderTask) {
    this._internalRenderTask = internalRenderTask;
    this.onContinue = null;
  }

  get promise() {
    return this._internalRenderTask.capability.promise;
  }

  cancel() {
    this._internalRenderTask.cancel();
  }

}

const InternalRenderTask = function InternalRenderTaskClosure() {
  const canvasInRendering = new WeakSet();

  class InternalRenderTask {
    constructor({
      callback,
      params,
      objs,
      commonObjs,
      operatorList,
      pageIndex,
      canvasFactory,
      webGLContext,
      useRequestAnimationFrame = false,
      pdfBug = false
    }) {
      this.callback = callback;
      this.params = params;
      this.objs = objs;
      this.commonObjs = commonObjs;
      this.operatorListIdx = null;
      this.operatorList = operatorList;
      this._pageIndex = pageIndex;
      this.canvasFactory = canvasFactory;
      this.webGLContext = webGLContext;
      this._pdfBug = pdfBug;
      this.running = false;
      this.graphicsReadyCallback = null;
      this.graphicsReady = false;
      this._useRequestAnimationFrame = useRequestAnimationFrame === true && typeof window !== "undefined";
      this.cancelled = false;
      this.capability = (0, _util.createPromiseCapability)();
      this.task = new RenderTask(this);
      this._continueBound = this._continue.bind(this);
      this._scheduleNextBound = this._scheduleNext.bind(this);
      this._nextBound = this._next.bind(this);
      this._canvas = params.canvasContext.canvas;
    }

    get completed() {
      return this.capability.promise.catch(function () {});
    }

    initializeGraphics({
      transparency = false,
      optionalContentConfig
    }) {
      if (this.cancelled) {
        return;
      }

      if (this._canvas) {
        if (canvasInRendering.has(this._canvas)) {
          throw new Error("Cannot use the same canvas during multiple render() operations. " + "Use different canvas or ensure previous operations were " + "cancelled or completed.");
        }

        canvasInRendering.add(this._canvas);
      }

      if (this._pdfBug && globalThis.StepperManager && globalThis.StepperManager.enabled) {
        this.stepper = globalThis.StepperManager.create(this._pageIndex);
        this.stepper.init(this.operatorList);
        this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint();
      }

      const {
        canvasContext,
        viewport,
        transform,
        imageLayer,
        background
      } = this.params;
      this.gfx = new _canvas.CanvasGraphics(canvasContext, this.commonObjs, this.objs, this.canvasFactory, this.webGLContext, imageLayer, optionalContentConfig);
      this.gfx.beginDrawing({
        transform,
        viewport,
        transparency,
        background
      });
      this.operatorListIdx = 0;
      this.graphicsReady = true;

      if (this.graphicsReadyCallback) {
        this.graphicsReadyCallback();
      }
    }

    cancel(error = null) {
      this.running = false;
      this.cancelled = true;

      if (this.gfx) {
        this.gfx.endDrawing();
      }

      if (this._canvas) {
        canvasInRendering.delete(this._canvas);
      }

      this.callback(error || new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas"));
    }

    operatorListChanged() {
      if (!this.graphicsReady) {
        if (!this.graphicsReadyCallback) {
          this.graphicsReadyCallback = this._continueBound;
        }

        return;
      }

      if (this.stepper) {
        this.stepper.updateOperatorList(this.operatorList);
      }

      if (this.running) {
        return;
      }

      this._continue();
    }

    _continue() {
      this.running = true;

      if (this.cancelled) {
        return;
      }

      if (this.task.onContinue) {
        this.task.onContinue(this._scheduleNextBound);
      } else {
        this._scheduleNext();
      }
    }

    _scheduleNext() {
      if (this._useRequestAnimationFrame) {
        window.requestAnimationFrame(() => {
          this._nextBound().catch(this.cancel.bind(this));
        });
      } else {
        Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this));
      }
    }

    async _next() {
      if (this.cancelled) {
        return;
      }

      this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper);

      if (this.operatorListIdx === this.operatorList.argsArray.length) {
        this.running = false;

        if (this.operatorList.lastChunk) {
          this.gfx.endDrawing();

          if (this._canvas) {
            canvasInRendering.delete(this._canvas);
          }

          this.callback();
        }
      }
    }

  }

  return InternalRenderTask;
}();

const version = '2.6.347';
exports.version = version;
const build = '3be9c65f';
exports.build = build;

/***/ }),
/* 6 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FontLoader = exports.FontFaceObject = void 0;

var _util = __w_pdfjs_require__(2);

class BaseFontLoader {
  constructor({
    docId,
    onUnsupportedFeature,
    ownerDocument = globalThis.document
  }) {
    if (this.constructor === BaseFontLoader) {
      (0, _util.unreachable)("Cannot initialize BaseFontLoader.");
    }

    this.docId = docId;
    this._onUnsupportedFeature = onUnsupportedFeature;
    this._document = ownerDocument;
    this.nativeFontFaces = [];
    this.styleElement = null;
  }

  addNativeFontFace(nativeFontFace) {
    this.nativeFontFaces.push(nativeFontFace);

    this._document.fonts.add(nativeFontFace);
  }

  insertRule(rule) {
    let styleElement = this.styleElement;

    if (!styleElement) {
      styleElement = this.styleElement = this._document.createElement("style");
      styleElement.id = `PDFJS_FONT_STYLE_TAG_${this.docId}`;

      this._document.documentElement.getElementsByTagName("head")[0].appendChild(styleElement);
    }

    const styleSheet = styleElement.sheet;
    styleSheet.insertRule(rule, styleSheet.cssRules.length);
  }

  clear() {
    this.nativeFontFaces.forEach(nativeFontFace => {
      this._document.fonts.delete(nativeFontFace);
    });
    this.nativeFontFaces.length = 0;

    if (this.styleElement) {
      this.styleElement.remove();
      this.styleElement = null;
    }
  }

  async bind(font) {
    if (font.attached || font.missingFile) {
      return;
    }

    font.attached = true;

    if (this.isFontLoadingAPISupported) {
      const nativeFontFace = font.createNativeFontFace();

      if (nativeFontFace) {
        this.addNativeFontFace(nativeFontFace);

        try {
          await nativeFontFace.loaded;
        } catch (ex) {
          this._onUnsupportedFeature({
            featureId: _util.UNSUPPORTED_FEATURES.errorFontLoadNative
          });

          (0, _util.warn)(`Failed to load font '${nativeFontFace.family}': '${ex}'.`);
          font.disableFontFace = true;
          throw ex;
        }
      }

      return;
    }

    const rule = font.createFontFaceRule();

    if (rule) {
      this.insertRule(rule);

      if (this.isSyncFontLoadingSupported) {
        return;
      }

      await new Promise(resolve => {
        const request = this._queueLoadingCallback(resolve);

        this._prepareFontLoadEvent([rule], [font], request);
      });
    }
  }

  _queueLoadingCallback(callback) {
    (0, _util.unreachable)("Abstract method `_queueLoadingCallback`.");
  }

  get isFontLoadingAPISupported() {
    const supported = typeof this._document !== "undefined" && !!this._document.fonts;
    return (0, _util.shadow)(this, "isFontLoadingAPISupported", supported);
  }

  get isSyncFontLoadingSupported() {
    (0, _util.unreachable)("Abstract method `isSyncFontLoadingSupported`.");
  }

  get _loadTestFont() {
    (0, _util.unreachable)("Abstract method `_loadTestFont`.");
  }

  _prepareFontLoadEvent(rules, fontsToLoad, request) {
    (0, _util.unreachable)("Abstract method `_prepareFontLoadEvent`.");
  }

}

let FontLoader;
exports.FontLoader = FontLoader;
{
  exports.FontLoader = FontLoader = class GenericFontLoader extends BaseFontLoader {
    constructor(params) {
      super(params);
      this.loadingContext = {
        requests: [],
        nextRequestId: 0
      };
      this.loadTestFontId = 0;
    }

    get isSyncFontLoadingSupported() {
      let supported = false;

      if (typeof navigator === "undefined") {
        supported = true;
      } else {
        const m = /Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);

        if (m && m[1] >= 14) {
          supported = true;
        }
      }

      return (0, _util.shadow)(this, "isSyncFontLoadingSupported", supported);
    }

    _queueLoadingCallback(callback) {
      function completeRequest() {
        (0, _util.assert)(!request.done, "completeRequest() cannot be called twice.");
        request.done = true;

        while (context.requests.length > 0 && context.requests[0].done) {
          const otherRequest = context.requests.shift();
          setTimeout(otherRequest.callback, 0);
        }
      }

      const context = this.loadingContext;
      const request = {
        id: `pdfjs-font-loading-${context.nextRequestId++}`,
        done: false,
        complete: completeRequest,
        callback
      };
      context.requests.push(request);
      return request;
    }

    get _loadTestFont() {
      const getLoadTestFont = function () {
        return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQA" + "FQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAA" + "ALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgA" + "AAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1" + "AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD" + "6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACM" + "AooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4D" + "IP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAA" + "AAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUA" + "AQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgAB" + "AAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABY" + "AAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAA" + "AC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAA" + "AAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQAC" + "AQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3" + "Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTj" + "FQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");
      };

      return (0, _util.shadow)(this, "_loadTestFont", getLoadTestFont());
    }

    _prepareFontLoadEvent(rules, fonts, request) {
      function int32(data, offset) {
        return data.charCodeAt(offset) << 24 | data.charCodeAt(offset + 1) << 16 | data.charCodeAt(offset + 2) << 8 | data.charCodeAt(offset + 3) & 0xff;
      }

      function spliceString(s, offset, remove, insert) {
        const chunk1 = s.substring(0, offset);
        const chunk2 = s.substring(offset + remove);
        return chunk1 + insert + chunk2;
      }

      let i, ii;

      const canvas = this._document.createElement("canvas");

      canvas.width = 1;
      canvas.height = 1;
      const ctx = canvas.getContext("2d");
      let called = 0;

      function isFontReady(name, callback) {
        called++;

        if (called > 30) {
          (0, _util.warn)("Load test font never loaded.");
          callback();
          return;
        }

        ctx.font = "30px " + name;
        ctx.fillText(".", 0, 20);
        const imageData = ctx.getImageData(0, 0, 1, 1);

        if (imageData.data[3] > 0) {
          callback();
          return;
        }

        setTimeout(isFontReady.bind(null, name, callback));
      }

      const loadTestFontId = `lt${Date.now()}${this.loadTestFontId++}`;
      let data = this._loadTestFont;
      const COMMENT_OFFSET = 976;
      data = spliceString(data, COMMENT_OFFSET, loadTestFontId.length, loadTestFontId);
      const CFF_CHECKSUM_OFFSET = 16;
      const XXXX_VALUE = 0x58585858;
      let checksum = int32(data, CFF_CHECKSUM_OFFSET);

      for (i = 0, ii = loadTestFontId.length - 3; i < ii; i += 4) {
        checksum = checksum - XXXX_VALUE + int32(loadTestFontId, i) | 0;
      }

      if (i < loadTestFontId.length) {
        checksum = checksum - XXXX_VALUE + int32(loadTestFontId + "XXX", i) | 0;
      }

      data = spliceString(data, CFF_CHECKSUM_OFFSET, 4, (0, _util.string32)(checksum));
      const url = `url(data:font/opentype;base64,${btoa(data)});`;
      const rule = `@font-face {font-family:"${loadTestFontId}";src:${url}}`;
      this.insertRule(rule);
      const names = [];

      for (i = 0, ii = fonts.length; i < ii; i++) {
        names.push(fonts[i].loadedName);
      }

      names.push(loadTestFontId);

      const div = this._document.createElement("div");

      div.style.visibility = "hidden";
      div.style.width = div.style.height = "10px";
      div.style.position = "absolute";
      div.style.top = div.style.left = "0px";

      for (i = 0, ii = names.length; i < ii; ++i) {
        const span = this._document.createElement("span");

        span.textContent = "Hi";
        span.style.fontFamily = names[i];
        div.appendChild(span);
      }

      this._document.body.appendChild(div);

      isFontReady(loadTestFontId, () => {
        this._document.body.removeChild(div);

        request.complete();
      });
    }

  };
}

class FontFaceObject {
  constructor(translatedData, {
    isEvalSupported = true,
    disableFontFace = false,
    ignoreErrors = false,
    onUnsupportedFeature = null,
    fontRegistry = null
  }) {
    this.compiledGlyphs = Object.create(null);

    for (const i in translatedData) {
      this[i] = translatedData[i];
    }

    this.isEvalSupported = isEvalSupported !== false;
    this.disableFontFace = disableFontFace === true;
    this.ignoreErrors = ignoreErrors === true;
    this._onUnsupportedFeature = onUnsupportedFeature;
    this.fontRegistry = fontRegistry;
  }

  createNativeFontFace() {
    if (!this.data || this.disableFontFace) {
      return null;
    }

    const nativeFontFace = new FontFace(this.loadedName, this.data, {});

    if (this.fontRegistry) {
      this.fontRegistry.registerFont(this);
    }

    return nativeFontFace;
  }

  createFontFaceRule() {
    if (!this.data || this.disableFontFace) {
      return null;
    }

    const data = (0, _util.bytesToString)(new Uint8Array(this.data));
    const url = `url(data:${this.mimetype};base64,${btoa(data)});`;
    const rule = `@font-face {font-family:"${this.loadedName}";src:${url}}`;

    if (this.fontRegistry) {
      this.fontRegistry.registerFont(this, url);
    }

    return rule;
  }

  getPathGenerator(objs, character) {
    if (this.compiledGlyphs[character] !== undefined) {
      return this.compiledGlyphs[character];
    }

    let cmds, current;

    try {
      cmds = objs.get(this.loadedName + "_path_" + character);
    } catch (ex) {
      if (!this.ignoreErrors) {
        throw ex;
      }

      if (this._onUnsupportedFeature) {
        this._onUnsupportedFeature({
          featureId: _util.UNSUPPORTED_FEATURES.errorFontGetPath
        });
      }

      (0, _util.warn)(`getPathGenerator - ignoring character: "${ex}".`);
      return this.compiledGlyphs[character] = function (c, size) {};
    }

    if (this.isEvalSupported && _util.IsEvalSupportedCached.value) {
      let args,
          js = "";

      for (let i = 0, ii = cmds.length; i < ii; i++) {
        current = cmds[i];

        if (current.args !== undefined) {
          args = current.args.join(",");
        } else {
          args = "";
        }

        js += "c." + current.cmd + "(" + args + ");\n";
      }

      return this.compiledGlyphs[character] = new Function("c", "size", js);
    }

    return this.compiledGlyphs[character] = function (c, size) {
      for (let i = 0, ii = cmds.length; i < ii; i++) {
        current = cmds[i];

        if (current.cmd === "scale") {
          current.args = [size, -size];
        }

        c[current.cmd].apply(c, current.args);
      }
    };
  }

}

exports.FontFaceObject = FontFaceObject;

/***/ }),
/* 7 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.NodeCMapReaderFactory = exports.NodeCanvasFactory = void 0;

var _display_utils = __w_pdfjs_require__(1);

var _is_node = __w_pdfjs_require__(4);

var _util = __w_pdfjs_require__(2);

let NodeCanvasFactory = class {
  constructor() {
    (0, _util.unreachable)("Not implemented: NodeCanvasFactory");
  }

};
exports.NodeCanvasFactory = NodeCanvasFactory;
let NodeCMapReaderFactory = class {
  constructor() {
    (0, _util.unreachable)("Not implemented: NodeCMapReaderFactory");
  }

};
exports.NodeCMapReaderFactory = NodeCMapReaderFactory;

if (_is_node.isNodeJS) {
  exports.NodeCanvasFactory = NodeCanvasFactory = class extends _display_utils.BaseCanvasFactory {
    create(width, height) {
      if (width <= 0 || height <= 0) {
        throw new Error("Invalid canvas size");
      }

      const Canvas = __webpack_require__(2117);

      const canvas = Canvas.createCanvas(width, height);
      return {
        canvas,
        context: canvas.getContext("2d")
      };
    }

  };
  exports.NodeCMapReaderFactory = NodeCMapReaderFactory = class extends _display_utils.BaseCMapReaderFactory {
    _fetchData(url, compressionType) {
      return new Promise((resolve, reject) => {
        const fs = __webpack_require__(1478);

        fs.readFile(url, (error, data) => {
          if (error || !data) {
            reject(new Error(error));
            return;
          }

          resolve({
            cMapData: new Uint8Array(data),
            compressionType
          });
        });
      });
    }

  };
}

/***/ }),
/* 8 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AnnotationStorage = void 0;

class AnnotationStorage {
  constructor() {
    this._storage = new Map();
    this._modified = false;
    this.onSetModified = null;
    this.onResetModified = null;
  }

  getOrCreateValue(key, defaultValue) {
    if (this._storage.has(key)) {
      return this._storage.get(key);
    }

    this._storage.set(key, defaultValue);

    return defaultValue;
  }

  setValue(key, value) {
    if (this._storage.get(key) !== value) {
      this._setModified();
    }

    this._storage.set(key, value);
  }

  getAll() {
    if (this._storage.size === 0) {
      return null;
    }

    return Object.fromEntries(this._storage);
  }

  get size() {
    return this._storage.size;
  }

  _setModified() {
    if (!this._modified) {
      this._modified = true;

      if (typeof this.onSetModified === "function") {
        this.onSetModified();
      }
    }
  }

  resetModified() {
    if (this._modified) {
      this._modified = false;

      if (typeof this.onResetModified === "function") {
        this.onResetModified();
      }
    }
  }

}

exports.AnnotationStorage = AnnotationStorage;

/***/ }),
/* 9 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.apiCompatibilityParams = void 0;

var _is_node = __w_pdfjs_require__(4);

const compatibilityParams = Object.create(null);
{
  (function checkFontFace() {
    if (_is_node.isNodeJS) {
      compatibilityParams.disableFontFace = true;
    }
  })();
}
const apiCompatibilityParams = Object.freeze(compatibilityParams);
exports.apiCompatibilityParams = apiCompatibilityParams;

/***/ }),
/* 10 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CanvasGraphics = void 0;

var _util = __w_pdfjs_require__(2);

var _pattern_helper = __w_pdfjs_require__(11);

var MIN_FONT_SIZE = 16;
var MAX_FONT_SIZE = 100;
var MAX_GROUP_SIZE = 4096;
var MIN_WIDTH_FACTOR = 0.65;
var COMPILE_TYPE3_GLYPHS = true;
var MAX_SIZE_TO_COMPILE = 1000;
var FULL_CHUNK_HEIGHT = 16;

function addContextCurrentTransform(ctx) {
  if (!ctx.mozCurrentTransform) {
    ctx._originalSave = ctx.save;
    ctx._originalRestore = ctx.restore;
    ctx._originalRotate = ctx.rotate;
    ctx._originalScale = ctx.scale;
    ctx._originalTranslate = ctx.translate;
    ctx._originalTransform = ctx.transform;
    ctx._originalSetTransform = ctx.setTransform;
    ctx._transformMatrix = ctx._transformMatrix || [1, 0, 0, 1, 0, 0];
    ctx._transformStack = [];
    Object.defineProperty(ctx, "mozCurrentTransform", {
      get: function getCurrentTransform() {
        return this._transformMatrix;
      }
    });
    Object.defineProperty(ctx, "mozCurrentTransformInverse", {
      get: function getCurrentTransformInverse() {
        var m = this._transformMatrix;
        var a = m[0],
            b = m[1],
            c = m[2],
            d = m[3],
            e = m[4],
            f = m[5];
        var ad_bc = a * d - b * c;
        var bc_ad = b * c - a * d;
        return [d / ad_bc, b / bc_ad, c / bc_ad, a / ad_bc, (d * e - c * f) / bc_ad, (b * e - a * f) / ad_bc];
      }
    });

    ctx.save = function ctxSave() {
      var old = this._transformMatrix;

      this._transformStack.push(old);

      this._transformMatrix = old.slice(0, 6);

      this._originalSave();
    };

    ctx.restore = function ctxRestore() {
      var prev = this._transformStack.pop();

      if (prev) {
        this._transformMatrix = prev;

        this._originalRestore();
      }
    };

    ctx.translate = function ctxTranslate(x, y) {
      var m = this._transformMatrix;
      m[4] = m[0] * x + m[2] * y + m[4];
      m[5] = m[1] * x + m[3] * y + m[5];

      this._originalTranslate(x, y);
    };

    ctx.scale = function ctxScale(x, y) {
      var m = this._transformMatrix;
      m[0] = m[0] * x;
      m[1] = m[1] * x;
      m[2] = m[2] * y;
      m[3] = m[3] * y;

      this._originalScale(x, y);
    };

    ctx.transform = function ctxTransform(a, b, c, d, e, f) {
      var m = this._transformMatrix;
      this._transformMatrix = [m[0] * a + m[2] * b, m[1] * a + m[3] * b, m[0] * c + m[2] * d, m[1] * c + m[3] * d, m[0] * e + m[2] * f + m[4], m[1] * e + m[3] * f + m[5]];

      ctx._originalTransform(a, b, c, d, e, f);
    };

    ctx.setTransform = function ctxSetTransform(a, b, c, d, e, f) {
      this._transformMatrix = [a, b, c, d, e, f];

      ctx._originalSetTransform(a, b, c, d, e, f);
    };

    ctx.rotate = function ctxRotate(angle) {
      var cosValue = Math.cos(angle);
      var sinValue = Math.sin(angle);
      var m = this._transformMatrix;
      this._transformMatrix = [m[0] * cosValue + m[2] * sinValue, m[1] * cosValue + m[3] * sinValue, m[0] * -sinValue + m[2] * cosValue, m[1] * -sinValue + m[3] * cosValue, m[4], m[5]];

      this._originalRotate(angle);
    };
  }
}

var CachedCanvases = function CachedCanvasesClosure() {
  function CachedCanvases(canvasFactory) {
    this.canvasFactory = canvasFactory;
    this.cache = Object.create(null);
  }

  CachedCanvases.prototype = {
    getCanvas: function CachedCanvases_getCanvas(id, width, height, trackTransform) {
      var canvasEntry;

      if (this.cache[id] !== undefined) {
        canvasEntry = this.cache[id];
        this.canvasFactory.reset(canvasEntry, width, height);
        canvasEntry.context.setTransform(1, 0, 0, 1, 0, 0);
      } else {
        canvasEntry = this.canvasFactory.create(width, height);
        this.cache[id] = canvasEntry;
      }

      if (trackTransform) {
        addContextCurrentTransform(canvasEntry.context);
      }

      return canvasEntry;
    },

    clear() {
      for (var id in this.cache) {
        var canvasEntry = this.cache[id];
        this.canvasFactory.destroy(canvasEntry);
        delete this.cache[id];
      }
    }

  };
  return CachedCanvases;
}();

function compileType3Glyph(imgData) {
  var POINT_TO_PROCESS_LIMIT = 1000;
  var width = imgData.width,
      height = imgData.height;
  var i,
      j,
      j0,
      width1 = width + 1;
  var points = new Uint8Array(width1 * (height + 1));
  var POINT_TYPES = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]);
  var lineSize = width + 7 & ~7,
      data0 = imgData.data;
  var data = new Uint8Array(lineSize * height),
      pos = 0,
      ii;

  for (i = 0, ii = data0.length; i < ii; i++) {
    var mask = 128,
        elem = data0[i];

    while (mask > 0) {
      data[pos++] = elem & mask ? 0 : 255;
      mask >>= 1;
    }
  }

  var count = 0;
  pos = 0;

  if (data[pos] !== 0) {
    points[0] = 1;
    ++count;
  }

  for (j = 1; j < width; j++) {
    if (data[pos] !== data[pos + 1]) {
      points[j] = data[pos] ? 2 : 1;
      ++count;
    }

    pos++;
  }

  if (data[pos] !== 0) {
    points[j] = 2;
    ++count;
  }

  for (i = 1; i < height; i++) {
    pos = i * lineSize;
    j0 = i * width1;

    if (data[pos - lineSize] !== data[pos]) {
      points[j0] = data[pos] ? 1 : 8;
      ++count;
    }

    var sum = (data[pos] ? 4 : 0) + (data[pos - lineSize] ? 8 : 0);

    for (j = 1; j < width; j++) {
      sum = (sum >> 2) + (data[pos + 1] ? 4 : 0) + (data[pos - lineSize + 1] ? 8 : 0);

      if (POINT_TYPES[sum]) {
        points[j0 + j] = POINT_TYPES[sum];
        ++count;
      }

      pos++;
    }

    if (data[pos - lineSize] !== data[pos]) {
      points[j0 + j] = data[pos] ? 2 : 4;
      ++count;
    }

    if (count > POINT_TO_PROCESS_LIMIT) {
      return null;
    }
  }

  pos = lineSize * (height - 1);
  j0 = i * width1;

  if (data[pos] !== 0) {
    points[j0] = 8;
    ++count;
  }

  for (j = 1; j < width; j++) {
    if (data[pos] !== data[pos + 1]) {
      points[j0 + j] = data[pos] ? 4 : 8;
      ++count;
    }

    pos++;
  }

  if (data[pos] !== 0) {
    points[j0 + j] = 4;
    ++count;
  }

  if (count > POINT_TO_PROCESS_LIMIT) {
    return null;
  }

  var steps = new Int32Array([0, width1, -1, 0, -width1, 0, 0, 0, 1]);
  var outlines = [];

  for (i = 0; count && i <= height; i++) {
    var p = i * width1;
    var end = p + width;

    while (p < end && !points[p]) {
      p++;
    }

    if (p === end) {
      continue;
    }

    var coords = [p % width1, i];
    var type = points[p],
        p0 = p,
        pp;

    do {
      var step = steps[type];

      do {
        p += step;
      } while (!points[p]);

      pp = points[p];

      if (pp !== 5 && pp !== 10) {
        type = pp;
        points[p] = 0;
      } else {
        type = pp & 0x33 * type >> 4;
        points[p] &= type >> 2 | type << 2;
      }

      coords.push(p % width1);
      coords.push(p / width1 | 0);

      if (!points[p]) {
        --count;
      }
    } while (p0 !== p);

    outlines.push(coords);
    --i;
  }

  var drawOutline = function (c) {
    c.save();
    c.scale(1 / width, -1 / height);
    c.translate(0, -height);
    c.beginPath();

    for (let k = 0, kk = outlines.length; k < kk; k++) {
      var o = outlines[k];
      c.moveTo(o[0], o[1]);

      for (let l = 2, ll = o.length; l < ll; l += 2) {
        c.lineTo(o[l], o[l + 1]);
      }
    }

    c.fill();
    c.beginPath();
    c.restore();
  };

  return drawOutline;
}

var CanvasExtraState = function CanvasExtraStateClosure() {
  function CanvasExtraState() {
    this.alphaIsShape = false;
    this.fontSize = 0;
    this.fontSizeScale = 1;
    this.textMatrix = _util.IDENTITY_MATRIX;
    this.textMatrixScale = 1;
    this.fontMatrix = _util.FONT_IDENTITY_MATRIX;
    this.leading = 0;
    this.x = 0;
    this.y = 0;
    this.lineX = 0;
    this.lineY = 0;
    this.charSpacing = 0;
    this.wordSpacing = 0;
    this.textHScale = 1;
    this.textRenderingMode = _util.TextRenderingMode.FILL;
    this.textRise = 0;
    this.fillColor = "#000000";
    this.strokeColor = "#000000";
    this.patternFill = false;
    this.fillAlpha = 1;
    this.strokeAlpha = 1;
    this.lineWidth = 1;
    this.activeSMask = null;
    this.resumeSMaskCtx = null;
    this.transferMaps = null;
  }

  CanvasExtraState.prototype = {
    clone: function CanvasExtraState_clone() {
      return Object.create(this);
    },
    setCurrentPoint: function CanvasExtraState_setCurrentPoint(x, y) {
      this.x = x;
      this.y = y;
    }
  };
  return CanvasExtraState;
}();

var CanvasGraphics = function CanvasGraphicsClosure() {
  var EXECUTION_TIME = 15;
  var EXECUTION_STEPS = 10;

  function CanvasGraphics(canvasCtx, commonObjs, objs, canvasFactory, webGLContext, imageLayer, optionalContentConfig) {
    this.ctx = canvasCtx;
    this.current = new CanvasExtraState();
    this.stateStack = [];
    this.pendingClip = null;
    this.pendingEOFill = false;
    this.res = null;
    this.xobjs = null;
    this.commonObjs = commonObjs;
    this.objs = objs;
    this.canvasFactory = canvasFactory;
    this.webGLContext = webGLContext;
    this.imageLayer = imageLayer;
    this.groupStack = [];
    this.processingType3 = null;
    this.baseTransform = null;
    this.baseTransformStack = [];
    this.groupLevel = 0;
    this.smaskStack = [];
    this.smaskCounter = 0;
    this.tempSMask = null;
    this.contentVisible = true;
    this.markedContentStack = [];
    this.optionalContentConfig = optionalContentConfig;
    this.cachedCanvases = new CachedCanvases(this.canvasFactory);

    if (canvasCtx) {
      addContextCurrentTransform(canvasCtx);
    }

    this._cachedGetSinglePixelWidth = null;
  }

  function putBinaryImageData(ctx, imgData, transferMaps = null) {
    if (typeof ImageData !== "undefined" && imgData instanceof ImageData) {
      ctx.putImageData(imgData, 0, 0);
      return;
    }

    var height = imgData.height,
        width = imgData.width;
    var partialChunkHeight = height % FULL_CHUNK_HEIGHT;
    var fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT;
    var totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1;
    var chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT);
    var srcPos = 0,
        destPos;
    var src = imgData.data;
    var dest = chunkImgData.data;
    var i, j, thisChunkHeight, elemsInThisChunk;
    let transferMapRed, transferMapGreen, transferMapBlue, transferMapGray;

    if (transferMaps) {
      switch (transferMaps.length) {
        case 1:
          transferMapRed = transferMaps[0];
          transferMapGreen = transferMaps[0];
          transferMapBlue = transferMaps[0];
          transferMapGray = transferMaps[0];
          break;

        case 4:
          transferMapRed = transferMaps[0];
          transferMapGreen = transferMaps[1];
          transferMapBlue = transferMaps[2];
          transferMapGray = transferMaps[3];
          break;
      }
    }

    if (imgData.kind === _util.ImageKind.GRAYSCALE_1BPP) {
      var srcLength = src.byteLength;
      var dest32 = new Uint32Array(dest.buffer, 0, dest.byteLength >> 2);
      var dest32DataLength = dest32.length;
      var fullSrcDiff = width + 7 >> 3;
      var white = 0xffffffff;
      var black = _util.IsLittleEndianCached.value ? 0xff000000 : 0x000000ff;

      if (transferMapGray) {
        if (transferMapGray[0] === 0xff && transferMapGray[0xff] === 0) {
          [white, black] = [black, white];
        }
      }

      for (i = 0; i < totalChunks; i++) {
        thisChunkHeight = i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight;
        destPos = 0;

        for (j = 0; j < thisChunkHeight; j++) {
          var srcDiff = srcLength - srcPos;
          let k = 0;
          var kEnd = srcDiff > fullSrcDiff ? width : srcDiff * 8 - 7;
          var kEndUnrolled = kEnd & ~7;
          var mask = 0;
          var srcByte = 0;

          for (; k < kEndUnrolled; k += 8) {
            srcByte = src[srcPos++];
            dest32[destPos++] = srcByte & 128 ? white : black;
            dest32[destPos++] = srcByte & 64 ? white : black;
            dest32[destPos++] = srcByte & 32 ? white : black;
            dest32[destPos++] = srcByte & 16 ? white : black;
            dest32[destPos++] = srcByte & 8 ? white : black;
            dest32[destPos++] = srcByte & 4 ? white : black;
            dest32[destPos++] = srcByte & 2 ? white : black;
            dest32[destPos++] = srcByte & 1 ? white : black;
          }

          for (; k < kEnd; k++) {
            if (mask === 0) {
              srcByte = src[srcPos++];
              mask = 128;
            }

            dest32[destPos++] = srcByte & mask ? white : black;
            mask >>= 1;
          }
        }

        while (destPos < dest32DataLength) {
          dest32[destPos++] = 0;
        }

        ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT);
      }
    } else if (imgData.kind === _util.ImageKind.RGBA_32BPP) {
      const hasTransferMaps = !!(transferMapRed || transferMapGreen || transferMapBlue);
      j = 0;
      elemsInThisChunk = width * FULL_CHUNK_HEIGHT * 4;

      for (i = 0; i < fullChunks; i++) {
        dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk));
        srcPos += elemsInThisChunk;

        if (hasTransferMaps) {
          for (let k = 0; k < elemsInThisChunk; k += 4) {
            if (transferMapRed) {
              dest[k + 0] = transferMapRed[dest[k + 0]];
            }

            if (transferMapGreen) {
              dest[k + 1] = transferMapGreen[dest[k + 1]];
            }

            if (transferMapBlue) {
              dest[k + 2] = transferMapBlue[dest[k + 2]];
            }
          }
        }

        ctx.putImageData(chunkImgData, 0, j);
        j += FULL_CHUNK_HEIGHT;
      }

      if (i < totalChunks) {
        elemsInThisChunk = width * partialChunkHeight * 4;
        dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk));

        if (hasTransferMaps) {
          for (let k = 0; k < elemsInThisChunk; k += 4) {
            if (transferMapRed) {
              dest[k + 0] = transferMapRed[dest[k + 0]];
            }

            if (transferMapGreen) {
              dest[k + 1] = transferMapGreen[dest[k + 1]];
            }

            if (transferMapBlue) {
              dest[k + 2] = transferMapBlue[dest[k + 2]];
            }
          }
        }

        ctx.putImageData(chunkImgData, 0, j);
      }
    } else if (imgData.kind === _util.ImageKind.RGB_24BPP) {
      const hasTransferMaps = !!(transferMapRed || transferMapGreen || transferMapBlue);
      thisChunkHeight = FULL_CHUNK_HEIGHT;
      elemsInThisChunk = width * thisChunkHeight;

      for (i = 0; i < totalChunks; i++) {
        if (i >= fullChunks) {
          thisChunkHeight = partialChunkHeight;
          elemsInThisChunk = width * thisChunkHeight;
        }

        destPos = 0;

        for (j = elemsInThisChunk; j--;) {
          dest[destPos++] = src[srcPos++];
          dest[destPos++] = src[srcPos++];
          dest[destPos++] = src[srcPos++];
          dest[destPos++] = 255;
        }

        if (hasTransferMaps) {
          for (let k = 0; k < destPos; k += 4) {
            if (transferMapRed) {
              dest[k + 0] = transferMapRed[dest[k + 0]];
            }

            if (transferMapGreen) {
              dest[k + 1] = transferMapGreen[dest[k + 1]];
            }

            if (transferMapBlue) {
              dest[k + 2] = transferMapBlue[dest[k + 2]];
            }
          }
        }

        ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT);
      }
    } else {
      throw new Error(`bad image kind: ${imgData.kind}`);
    }
  }

  function putBinaryImageMask(ctx, imgData) {
    var height = imgData.height,
        width = imgData.width;
    var partialChunkHeight = height % FULL_CHUNK_HEIGHT;
    var fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT;
    var totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1;
    var chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT);
    var srcPos = 0;
    var src = imgData.data;
    var dest = chunkImgData.data;

    for (var i = 0; i < totalChunks; i++) {
      var thisChunkHeight = i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight;
      var destPos = 3;

      for (var j = 0; j < thisChunkHeight; j++) {
        var mask = 0;

        for (var k = 0; k < width; k++) {
          if (!mask) {
            var elem = src[srcPos++];
            mask = 128;
          }

          dest[destPos] = elem & mask ? 0 : 255;
          destPos += 4;
          mask >>= 1;
        }
      }

      ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT);
    }
  }

  function copyCtxState(sourceCtx, destCtx) {
    var properties = ["strokeStyle", "fillStyle", "fillRule", "globalAlpha", "lineWidth", "lineCap", "lineJoin", "miterLimit", "globalCompositeOperation", "font"];

    for (var i = 0, ii = properties.length; i < ii; i++) {
      var property = properties[i];

      if (sourceCtx[property] !== undefined) {
        destCtx[property] = sourceCtx[property];
      }
    }

    if (sourceCtx.setLineDash !== undefined) {
      destCtx.setLineDash(sourceCtx.getLineDash());
      destCtx.lineDashOffset = sourceCtx.lineDashOffset;
    }
  }

  function resetCtxToDefault(ctx) {
    ctx.strokeStyle = "#000000";
    ctx.fillStyle = "#000000";
    ctx.fillRule = "nonzero";
    ctx.globalAlpha = 1;
    ctx.lineWidth = 1;
    ctx.lineCap = "butt";
    ctx.lineJoin = "miter";
    ctx.miterLimit = 10;
    ctx.globalCompositeOperation = "source-over";
    ctx.font = "10px sans-serif";

    if (ctx.setLineDash !== undefined) {
      ctx.setLineDash([]);
      ctx.lineDashOffset = 0;
    }
  }

  function composeSMaskBackdrop(bytes, r0, g0, b0) {
    var length = bytes.length;

    for (var i = 3; i < length; i += 4) {
      var alpha = bytes[i];

      if (alpha === 0) {
        bytes[i - 3] = r0;
        bytes[i - 2] = g0;
        bytes[i - 1] = b0;
      } else if (alpha < 255) {
        var alpha_ = 255 - alpha;
        bytes[i - 3] = bytes[i - 3] * alpha + r0 * alpha_ >> 8;
        bytes[i - 2] = bytes[i - 2] * alpha + g0 * alpha_ >> 8;
        bytes[i - 1] = bytes[i - 1] * alpha + b0 * alpha_ >> 8;
      }
    }
  }

  function composeSMaskAlpha(maskData, layerData, transferMap) {
    var length = maskData.length;
    var scale = 1 / 255;

    for (var i = 3; i < length; i += 4) {
      var alpha = transferMap ? transferMap[maskData[i]] : maskData[i];
      layerData[i] = layerData[i] * alpha * scale | 0;
    }
  }

  function composeSMaskLuminosity(maskData, layerData, transferMap) {
    var length = maskData.length;

    for (var i = 3; i < length; i += 4) {
      var y = maskData[i - 3] * 77 + maskData[i - 2] * 152 + maskData[i - 1] * 28;
      layerData[i] = transferMap ? layerData[i] * transferMap[y >> 8] >> 8 : layerData[i] * y >> 16;
    }
  }

  function genericComposeSMask(maskCtx, layerCtx, width, height, subtype, backdrop, transferMap) {
    var hasBackdrop = !!backdrop;
    var r0 = hasBackdrop ? backdrop[0] : 0;
    var g0 = hasBackdrop ? backdrop[1] : 0;
    var b0 = hasBackdrop ? backdrop[2] : 0;
    var composeFn;

    if (subtype === "Luminosity") {
      composeFn = composeSMaskLuminosity;
    } else {
      composeFn = composeSMaskAlpha;
    }

    var PIXELS_TO_PROCESS = 1048576;
    var chunkSize = Math.min(height, Math.ceil(PIXELS_TO_PROCESS / width));

    for (var row = 0; row < height; row += chunkSize) {
      var chunkHeight = Math.min(chunkSize, height - row);
      var maskData = maskCtx.getImageData(0, row, width, chunkHeight);
      var layerData = layerCtx.getImageData(0, row, width, chunkHeight);

      if (hasBackdrop) {
        composeSMaskBackdrop(maskData.data, r0, g0, b0);
      }

      composeFn(maskData.data, layerData.data, transferMap);
      maskCtx.putImageData(layerData, 0, row);
    }
  }

  function composeSMask(ctx, smask, layerCtx, webGLContext) {
    var mask = smask.canvas;
    var maskCtx = smask.context;
    ctx.setTransform(smask.scaleX, 0, 0, smask.scaleY, smask.offsetX, smask.offsetY);
    var backdrop = smask.backdrop || null;

    if (!smask.transferMap && webGLContext.isEnabled) {
      const composed = webGLContext.composeSMask({
        layer: layerCtx.canvas,
        mask,
        properties: {
          subtype: smask.subtype,
          backdrop
        }
      });
      ctx.setTransform(1, 0, 0, 1, 0, 0);
      ctx.drawImage(composed, smask.offsetX, smask.offsetY);
      return;
    }

    genericComposeSMask(maskCtx, layerCtx, mask.width, mask.height, smask.subtype, backdrop, smask.transferMap);
    ctx.drawImage(mask, 0, 0);
  }

  var LINE_CAP_STYLES = ["butt", "round", "square"];
  var LINE_JOIN_STYLES = ["miter", "round", "bevel"];
  var NORMAL_CLIP = {};
  var EO_CLIP = {};
  CanvasGraphics.prototype = {
    beginDrawing({
      transform,
      viewport,
      transparency = false,
      background = null
    }) {
      var width = this.ctx.canvas.width;
      var height = this.ctx.canvas.height;
      this.ctx.save();
      this.ctx.fillStyle = background || "rgb(255, 255, 255)";
      this.ctx.fillRect(0, 0, width, height);
      this.ctx.restore();

      if (transparency) {
        var transparentCanvas = this.cachedCanvases.getCanvas("transparent", width, height, true);
        this.compositeCtx = this.ctx;
        this.transparentCanvas = transparentCanvas.canvas;
        this.ctx = transparentCanvas.context;
        this.ctx.save();
        this.ctx.transform.apply(this.ctx, this.compositeCtx.mozCurrentTransform);
      }

      this.ctx.save();
      resetCtxToDefault(this.ctx);

      if (transform) {
        this.ctx.transform.apply(this.ctx, transform);
      }

      this.ctx.transform.apply(this.ctx, viewport.transform);
      this.baseTransform = this.ctx.mozCurrentTransform.slice();

      if (this.imageLayer) {
        this.imageLayer.beginLayout();
      }
    },

    executeOperatorList: function CanvasGraphics_executeOperatorList(operatorList, executionStartIdx, continueCallback, stepper) {
      var argsArray = operatorList.argsArray;
      var fnArray = operatorList.fnArray;
      var i = executionStartIdx || 0;
      var argsArrayLen = argsArray.length;

      if (argsArrayLen === i) {
        return i;
      }

      var chunkOperations = argsArrayLen - i > EXECUTION_STEPS && typeof continueCallback === "function";
      var endTime = chunkOperations ? Date.now() + EXECUTION_TIME : 0;
      var steps = 0;
      var commonObjs = this.commonObjs;
      var objs = this.objs;
      var fnId;

      while (true) {
        if (stepper !== undefined && i === stepper.nextBreakPoint) {
          stepper.breakIt(i, continueCallback);
          return i;
        }

        fnId = fnArray[i];

        if (fnId !== _util.OPS.dependency) {
          this[fnId].apply(this, argsArray[i]);
        } else {
          for (const depObjId of argsArray[i]) {
            const objsPool = depObjId.startsWith("g_") ? commonObjs : objs;

            if (!objsPool.has(depObjId)) {
              objsPool.get(depObjId, continueCallback);
              return i;
            }
          }
        }

        i++;

        if (i === argsArrayLen) {
          return i;
        }

        if (chunkOperations && ++steps > EXECUTION_STEPS) {
          if (Date.now() > endTime) {
            continueCallback();
            return i;
          }

          steps = 0;
        }
      }
    },
    endDrawing: function CanvasGraphics_endDrawing() {
      if (this.current.activeSMask !== null) {
        this.endSMaskGroup();
      }

      this.ctx.restore();

      if (this.transparentCanvas) {
        this.ctx = this.compositeCtx;
        this.ctx.save();
        this.ctx.setTransform(1, 0, 0, 1, 0, 0);
        this.ctx.drawImage(this.transparentCanvas, 0, 0);
        this.ctx.restore();
        this.transparentCanvas = null;
      }

      this.cachedCanvases.clear();
      this.webGLContext.clear();

      if (this.imageLayer) {
        this.imageLayer.endLayout();
      }
    },
    setLineWidth: function CanvasGraphics_setLineWidth(width) {
      this.current.lineWidth = width;
      this.ctx.lineWidth = width;
    },
    setLineCap: function CanvasGraphics_setLineCap(style) {
      this.ctx.lineCap = LINE_CAP_STYLES[style];
    },
    setLineJoin: function CanvasGraphics_setLineJoin(style) {
      this.ctx.lineJoin = LINE_JOIN_STYLES[style];
    },
    setMiterLimit: function CanvasGraphics_setMiterLimit(limit) {
      this.ctx.miterLimit = limit;
    },
    setDash: function CanvasGraphics_setDash(dashArray, dashPhase) {
      var ctx = this.ctx;

      if (ctx.setLineDash !== undefined) {
        ctx.setLineDash(dashArray);
        ctx.lineDashOffset = dashPhase;
      }
    },

    setRenderingIntent(intent) {},

    setFlatness(flatness) {},

    setGState: function CanvasGraphics_setGState(states) {
      for (var i = 0, ii = states.length; i < ii; i++) {
        var state = states[i];
        var key = state[0];
        var value = state[1];

        switch (key) {
          case "LW":
            this.setLineWidth(value);
            break;

          case "LC":
            this.setLineCap(value);
            break;

          case "LJ":
            this.setLineJoin(value);
            break;

          case "ML":
            this.setMiterLimit(value);
            break;

          case "D":
            this.setDash(value[0], value[1]);
            break;

          case "RI":
            this.setRenderingIntent(value);
            break;

          case "FL":
            this.setFlatness(value);
            break;

          case "Font":
            this.setFont(value[0], value[1]);
            break;

          case "CA":
            this.current.strokeAlpha = state[1];
            break;

          case "ca":
            this.current.fillAlpha = state[1];
            this.ctx.globalAlpha = state[1];
            break;

          case "BM":
            this.ctx.globalCompositeOperation = value;
            break;

          case "SMask":
            if (this.current.activeSMask) {
              if (this.stateStack.length > 0 && this.stateStack[this.stateStack.length - 1].activeSMask === this.current.activeSMask) {
                this.suspendSMaskGroup();
              } else {
                this.endSMaskGroup();
              }
            }

            this.current.activeSMask = value ? this.tempSMask : null;

            if (this.current.activeSMask) {
              this.beginSMaskGroup();
            }

            this.tempSMask = null;
            break;

          case "TR":
            this.current.transferMaps = value;
        }
      }
    },
    beginSMaskGroup: function CanvasGraphics_beginSMaskGroup() {
      var activeSMask = this.current.activeSMask;
      var drawnWidth = activeSMask.canvas.width;
      var drawnHeight = activeSMask.canvas.height;
      var cacheId = "smaskGroupAt" + this.groupLevel;
      var scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight, true);
      var currentCtx = this.ctx;
      var currentTransform = currentCtx.mozCurrentTransform;
      this.ctx.save();
      var groupCtx = scratchCanvas.context;
      groupCtx.scale(1 / activeSMask.scaleX, 1 / activeSMask.scaleY);
      groupCtx.translate(-activeSMask.offsetX, -activeSMask.offsetY);
      groupCtx.transform.apply(groupCtx, currentTransform);
      activeSMask.startTransformInverse = groupCtx.mozCurrentTransformInverse;
      copyCtxState(currentCtx, groupCtx);
      this.ctx = groupCtx;
      this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]);
      this.groupStack.push(currentCtx);
      this.groupLevel++;
    },
    suspendSMaskGroup: function CanvasGraphics_endSMaskGroup() {
      var groupCtx = this.ctx;
      this.groupLevel--;
      this.ctx = this.groupStack.pop();
      composeSMask(this.ctx, this.current.activeSMask, groupCtx, this.webGLContext);
      this.ctx.restore();
      this.ctx.save();
      copyCtxState(groupCtx, this.ctx);
      this.current.resumeSMaskCtx = groupCtx;

      var deltaTransform = _util.Util.transform(this.current.activeSMask.startTransformInverse, groupCtx.mozCurrentTransform);

      this.ctx.transform.apply(this.ctx, deltaTransform);
      groupCtx.save();
      groupCtx.setTransform(1, 0, 0, 1, 0, 0);
      groupCtx.clearRect(0, 0, groupCtx.canvas.width, groupCtx.canvas.height);
      groupCtx.restore();
    },
    resumeSMaskGroup: function CanvasGraphics_endSMaskGroup() {
      var groupCtx = this.current.resumeSMaskCtx;
      var currentCtx = this.ctx;
      this.ctx = groupCtx;
      this.groupStack.push(currentCtx);
      this.groupLevel++;
    },
    endSMaskGroup: function CanvasGraphics_endSMaskGroup() {
      var groupCtx = this.ctx;
      this.groupLevel--;
      this.ctx = this.groupStack.pop();
      composeSMask(this.ctx, this.current.activeSMask, groupCtx, this.webGLContext);
      this.ctx.restore();
      copyCtxState(groupCtx, this.ctx);

      var deltaTransform = _util.Util.transform(this.current.activeSMask.startTransformInverse, groupCtx.mozCurrentTransform);

      this.ctx.transform.apply(this.ctx, deltaTransform);
    },
    save: function CanvasGraphics_save() {
      this.ctx.save();
      var old = this.current;
      this.stateStack.push(old);
      this.current = old.clone();
      this.current.resumeSMaskCtx = null;
    },
    restore: function CanvasGraphics_restore() {
      if (this.current.resumeSMaskCtx) {
        this.resumeSMaskGroup();
      }

      if (this.current.activeSMask !== null && (this.stateStack.length === 0 || this.stateStack[this.stateStack.length - 1].activeSMask !== this.current.activeSMask)) {
        this.endSMaskGroup();
      }

      if (this.stateStack.length !== 0) {
        this.current = this.stateStack.pop();
        this.ctx.restore();
        this.pendingClip = null;
        this._cachedGetSinglePixelWidth = null;
      }
    },
    transform: function CanvasGraphics_transform(a, b, c, d, e, f) {
      this.ctx.transform(a, b, c, d, e, f);
      this._cachedGetSinglePixelWidth = null;
    },
    constructPath: function CanvasGraphics_constructPath(ops, args) {
      var ctx = this.ctx;
      var current = this.current;
      var x = current.x,
          y = current.y;

      for (var i = 0, j = 0, ii = ops.length; i < ii; i++) {
        switch (ops[i] | 0) {
          case _util.OPS.rectangle:
            x = args[j++];
            y = args[j++];
            var width = args[j++];
            var height = args[j++];

            if (width === 0 && ctx.lineWidth < this.getSinglePixelWidth()) {
              width = this.getSinglePixelWidth();
            }

            if (height === 0 && ctx.lineWidth < this.getSinglePixelWidth()) {
              height = this.getSinglePixelWidth();
            }

            var xw = x + width;
            var yh = y + height;
            ctx.moveTo(x, y);
            ctx.lineTo(xw, y);
            ctx.lineTo(xw, yh);
            ctx.lineTo(x, yh);
            ctx.lineTo(x, y);
            ctx.closePath();
            break;

          case _util.OPS.moveTo:
            x = args[j++];
            y = args[j++];
            ctx.moveTo(x, y);
            break;

          case _util.OPS.lineTo:
            x = args[j++];
            y = args[j++];
            ctx.lineTo(x, y);
            break;

          case _util.OPS.curveTo:
            x = args[j + 4];
            y = args[j + 5];
            ctx.bezierCurveTo(args[j], args[j + 1], args[j + 2], args[j + 3], x, y);
            j += 6;
            break;

          case _util.OPS.curveTo2:
            ctx.bezierCurveTo(x, y, args[j], args[j + 1], args[j + 2], args[j + 3]);
            x = args[j + 2];
            y = args[j + 3];
            j += 4;
            break;

          case _util.OPS.curveTo3:
            x = args[j + 2];
            y = args[j + 3];
            ctx.bezierCurveTo(args[j], args[j + 1], x, y, x, y);
            j += 4;
            break;

          case _util.OPS.closePath:
            ctx.closePath();
            break;
        }
      }

      current.setCurrentPoint(x, y);
    },
    closePath: function CanvasGraphics_closePath() {
      this.ctx.closePath();
    },
    stroke: function CanvasGraphics_stroke(consumePath) {
      consumePath = typeof consumePath !== "undefined" ? consumePath : true;
      var ctx = this.ctx;
      var strokeColor = this.current.strokeColor;
      ctx.globalAlpha = this.current.strokeAlpha;

      if (this.contentVisible) {
        if (strokeColor && strokeColor.hasOwnProperty("type") && strokeColor.type === "Pattern") {
          ctx.save();
          const transform = ctx.mozCurrentTransform;

          const scale = _util.Util.singularValueDecompose2dScale(transform)[0];

          ctx.strokeStyle = strokeColor.getPattern(ctx, this);
          ctx.lineWidth = Math.max(this.getSinglePixelWidth() * MIN_WIDTH_FACTOR, this.current.lineWidth * scale);
          ctx.stroke();
          ctx.restore();
        } else {
          ctx.lineWidth = Math.max(this.getSinglePixelWidth() * MIN_WIDTH_FACTOR, this.current.lineWidth);
          ctx.stroke();
        }
      }

      if (consumePath) {
        this.consumePath();
      }

      ctx.globalAlpha = this.current.fillAlpha;
    },
    closeStroke: function CanvasGraphics_closeStroke() {
      this.closePath();
      this.stroke();
    },
    fill: function CanvasGraphics_fill(consumePath) {
      consumePath = typeof consumePath !== "undefined" ? consumePath : true;
      var ctx = this.ctx;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;
      var needRestore = false;

      if (isPatternFill) {
        ctx.save();

        if (this.baseTransform) {
          ctx.setTransform.apply(ctx, this.baseTransform);
        }

        ctx.fillStyle = fillColor.getPattern(ctx, this);
        needRestore = true;
      }

      if (this.contentVisible) {
        if (this.pendingEOFill) {
          ctx.fill("evenodd");
          this.pendingEOFill = false;
        } else {
          ctx.fill();
        }
      }

      if (needRestore) {
        ctx.restore();
      }

      if (consumePath) {
        this.consumePath();
      }
    },
    eoFill: function CanvasGraphics_eoFill() {
      this.pendingEOFill = true;
      this.fill();
    },
    fillStroke: function CanvasGraphics_fillStroke() {
      this.fill(false);
      this.stroke(false);
      this.consumePath();
    },
    eoFillStroke: function CanvasGraphics_eoFillStroke() {
      this.pendingEOFill = true;
      this.fillStroke();
    },
    closeFillStroke: function CanvasGraphics_closeFillStroke() {
      this.closePath();
      this.fillStroke();
    },
    closeEOFillStroke: function CanvasGraphics_closeEOFillStroke() {
      this.pendingEOFill = true;
      this.closePath();
      this.fillStroke();
    },
    endPath: function CanvasGraphics_endPath() {
      this.consumePath();
    },
    clip: function CanvasGraphics_clip() {
      this.pendingClip = NORMAL_CLIP;
    },
    eoClip: function CanvasGraphics_eoClip() {
      this.pendingClip = EO_CLIP;
    },
    beginText: function CanvasGraphics_beginText() {
      this.current.textMatrix = _util.IDENTITY_MATRIX;
      this.current.textMatrixScale = 1;
      this.current.x = this.current.lineX = 0;
      this.current.y = this.current.lineY = 0;
    },
    endText: function CanvasGraphics_endText() {
      var paths = this.pendingTextPaths;
      var ctx = this.ctx;

      if (paths === undefined) {
        ctx.beginPath();
        return;
      }

      ctx.save();
      ctx.beginPath();

      for (var i = 0; i < paths.length; i++) {
        var path = paths[i];
        ctx.setTransform.apply(ctx, path.transform);
        ctx.translate(path.x, path.y);
        path.addToPath(ctx, path.fontSize);
      }

      ctx.restore();
      ctx.clip();
      ctx.beginPath();
      delete this.pendingTextPaths;
    },
    setCharSpacing: function CanvasGraphics_setCharSpacing(spacing) {
      this.current.charSpacing = spacing;
    },
    setWordSpacing: function CanvasGraphics_setWordSpacing(spacing) {
      this.current.wordSpacing = spacing;
    },
    setHScale: function CanvasGraphics_setHScale(scale) {
      this.current.textHScale = scale / 100;
    },
    setLeading: function CanvasGraphics_setLeading(leading) {
      this.current.leading = -leading;
    },
    setFont: function CanvasGraphics_setFont(fontRefName, size) {
      var fontObj = this.commonObjs.get(fontRefName);
      var current = this.current;

      if (!fontObj) {
        throw new Error(`Can't find font for ${fontRefName}`);
      }

      current.fontMatrix = fontObj.fontMatrix ? fontObj.fontMatrix : _util.FONT_IDENTITY_MATRIX;

      if (current.fontMatrix[0] === 0 || current.fontMatrix[3] === 0) {
        (0, _util.warn)("Invalid font matrix for font " + fontRefName);
      }

      if (size < 0) {
        size = -size;
        current.fontDirection = -1;
      } else {
        current.fontDirection = 1;
      }

      this.current.font = fontObj;
      this.current.fontSize = size;

      if (fontObj.isType3Font) {
        return;
      }

      var name = fontObj.loadedName || "sans-serif";
      let bold = "normal";

      if (fontObj.black) {
        bold = "900";
      } else if (fontObj.bold) {
        bold = "bold";
      }

      var italic = fontObj.italic ? "italic" : "normal";
      var typeface = `"${name}", ${fontObj.fallbackName}`;
      let browserFontSize = size;

      if (size < MIN_FONT_SIZE) {
        browserFontSize = MIN_FONT_SIZE;
      } else if (size > MAX_FONT_SIZE) {
        browserFontSize = MAX_FONT_SIZE;
      }

      this.current.fontSizeScale = size / browserFontSize;
      this.ctx.font = `${italic} ${bold} ${browserFontSize}px ${typeface}`;
    },
    setTextRenderingMode: function CanvasGraphics_setTextRenderingMode(mode) {
      this.current.textRenderingMode = mode;
    },
    setTextRise: function CanvasGraphics_setTextRise(rise) {
      this.current.textRise = rise;
    },
    moveText: function CanvasGraphics_moveText(x, y) {
      this.current.x = this.current.lineX += x;
      this.current.y = this.current.lineY += y;
    },
    setLeadingMoveText: function CanvasGraphics_setLeadingMoveText(x, y) {
      this.setLeading(-y);
      this.moveText(x, y);
    },
    setTextMatrix: function CanvasGraphics_setTextMatrix(a, b, c, d, e, f) {
      this.current.textMatrix = [a, b, c, d, e, f];
      this.current.textMatrixScale = Math.sqrt(a * a + b * b);
      this.current.x = this.current.lineX = 0;
      this.current.y = this.current.lineY = 0;
    },
    nextLine: function CanvasGraphics_nextLine() {
      this.moveText(0, this.current.leading);
    },

    paintChar(character, x, y, patternTransform) {
      var ctx = this.ctx;
      var current = this.current;
      var font = current.font;
      var textRenderingMode = current.textRenderingMode;
      var fontSize = current.fontSize / current.fontSizeScale;
      var fillStrokeMode = textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;
      var isAddToPathSet = !!(textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG);
      const patternFill = current.patternFill && !font.missingFile;
      var addToPath;

      if (font.disableFontFace || isAddToPathSet || patternFill) {
        addToPath = font.getPathGenerator(this.commonObjs, character);
      }

      if (font.disableFontFace || patternFill) {
        ctx.save();
        ctx.translate(x, y);
        ctx.beginPath();
        addToPath(ctx, fontSize);

        if (patternTransform) {
          ctx.setTransform.apply(ctx, patternTransform);
        }

        if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.fill();
        }

        if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.stroke();
        }

        ctx.restore();
      } else {
        if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.fillText(character, x, y);
        }

        if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          ctx.strokeText(character, x, y);
        }
      }

      if (isAddToPathSet) {
        var paths = this.pendingTextPaths || (this.pendingTextPaths = []);
        paths.push({
          transform: ctx.mozCurrentTransform,
          x,
          y,
          fontSize,
          addToPath
        });
      }
    },

    get isFontSubpixelAAEnabled() {
      const {
        context: ctx
      } = this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled", 10, 10);
      ctx.scale(1.5, 1);
      ctx.fillText("I", 0, 10);
      var data = ctx.getImageData(0, 0, 10, 10).data;
      var enabled = false;

      for (var i = 3; i < data.length; i += 4) {
        if (data[i] > 0 && data[i] < 255) {
          enabled = true;
          break;
        }
      }

      return (0, _util.shadow)(this, "isFontSubpixelAAEnabled", enabled);
    },

    showText: function CanvasGraphics_showText(glyphs) {
      var current = this.current;
      var font = current.font;

      if (font.isType3Font) {
        return this.showType3Text(glyphs);
      }

      var fontSize = current.fontSize;

      if (fontSize === 0) {
        return undefined;
      }

      var ctx = this.ctx;
      var fontSizeScale = current.fontSizeScale;
      var charSpacing = current.charSpacing;
      var wordSpacing = current.wordSpacing;
      var fontDirection = current.fontDirection;
      var textHScale = current.textHScale * fontDirection;
      var glyphsLength = glyphs.length;
      var vertical = font.vertical;
      var spacingDir = vertical ? 1 : -1;
      var defaultVMetrics = font.defaultVMetrics;
      var widthAdvanceScale = fontSize * current.fontMatrix[0];
      var simpleFillText = current.textRenderingMode === _util.TextRenderingMode.FILL && !font.disableFontFace && !current.patternFill;
      ctx.save();
      let patternTransform;

      if (current.patternFill) {
        ctx.save();
        const pattern = current.fillColor.getPattern(ctx, this);
        patternTransform = ctx.mozCurrentTransform;
        ctx.restore();
        ctx.fillStyle = pattern;
      }

      ctx.transform.apply(ctx, current.textMatrix);
      ctx.translate(current.x, current.y + current.textRise);

      if (fontDirection > 0) {
        ctx.scale(textHScale, -1);
      } else {
        ctx.scale(textHScale, 1);
      }

      var lineWidth = current.lineWidth;
      var scale = current.textMatrixScale;

      if (scale === 0 || lineWidth === 0) {
        var fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;

        if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
          this._cachedGetSinglePixelWidth = null;
          lineWidth = this.getSinglePixelWidth() * MIN_WIDTH_FACTOR;
        }
      } else {
        lineWidth /= scale;
      }

      if (fontSizeScale !== 1.0) {
        ctx.scale(fontSizeScale, fontSizeScale);
        lineWidth /= fontSizeScale;
      }

      ctx.lineWidth = lineWidth;
      var x = 0,
          i;

      for (i = 0; i < glyphsLength; ++i) {
        var glyph = glyphs[i];

        if ((0, _util.isNum)(glyph)) {
          x += spacingDir * glyph * fontSize / 1000;
          continue;
        }

        var restoreNeeded = false;
        var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;
        var character = glyph.fontChar;
        var accent = glyph.accent;
        var scaledX, scaledY, scaledAccentX, scaledAccentY;
        var width = glyph.width;

        if (vertical) {
          var vmetric, vx, vy;
          vmetric = glyph.vmetric || defaultVMetrics;
          vx = glyph.vmetric ? vmetric[1] : width * 0.5;
          vx = -vx * widthAdvanceScale;
          vy = vmetric[2] * widthAdvanceScale;
          width = vmetric ? -vmetric[0] : width;
          scaledX = vx / fontSizeScale;
          scaledY = (x + vy) / fontSizeScale;
        } else {
          scaledX = x / fontSizeScale;
          scaledY = 0;
        }

        if (font.remeasure && width > 0) {
          var measuredWidth = ctx.measureText(character).width * 1000 / fontSize * fontSizeScale;

          if (width < measuredWidth && this.isFontSubpixelAAEnabled) {
            var characterScaleX = width / measuredWidth;
            restoreNeeded = true;
            ctx.save();
            ctx.scale(characterScaleX, 1);
            scaledX /= characterScaleX;
          } else if (width !== measuredWidth) {
            scaledX += (width - measuredWidth) / 2000 * fontSize / fontSizeScale;
          }
        }

        if (this.contentVisible && (glyph.isInFont || font.missingFile)) {
          if (simpleFillText && !accent) {
            ctx.fillText(character, scaledX, scaledY);
          } else {
            this.paintChar(character, scaledX, scaledY, patternTransform);

            if (accent) {
              scaledAccentX = scaledX + fontSize * accent.offset.x / fontSizeScale;
              scaledAccentY = scaledY - fontSize * accent.offset.y / fontSizeScale;
              this.paintChar(accent.fontChar, scaledAccentX, scaledAccentY, patternTransform);
            }
          }
        }

        var charWidth;

        if (vertical) {
          charWidth = width * widthAdvanceScale - spacing * fontDirection;
        } else {
          charWidth = width * widthAdvanceScale + spacing * fontDirection;
        }

        x += charWidth;

        if (restoreNeeded) {
          ctx.restore();
        }
      }

      if (vertical) {
        current.y -= x;
      } else {
        current.x += x * textHScale;
      }

      ctx.restore();
    },
    showType3Text: function CanvasGraphics_showType3Text(glyphs) {
      var ctx = this.ctx;
      var current = this.current;
      var font = current.font;
      var fontSize = current.fontSize;
      var fontDirection = current.fontDirection;
      var spacingDir = font.vertical ? 1 : -1;
      var charSpacing = current.charSpacing;
      var wordSpacing = current.wordSpacing;
      var textHScale = current.textHScale * fontDirection;
      var fontMatrix = current.fontMatrix || _util.FONT_IDENTITY_MATRIX;
      var glyphsLength = glyphs.length;
      var isTextInvisible = current.textRenderingMode === _util.TextRenderingMode.INVISIBLE;
      var i, glyph, width, spacingLength;

      if (isTextInvisible || fontSize === 0) {
        return;
      }

      this._cachedGetSinglePixelWidth = null;
      ctx.save();
      ctx.transform.apply(ctx, current.textMatrix);
      ctx.translate(current.x, current.y);
      ctx.scale(textHScale, fontDirection);

      for (i = 0; i < glyphsLength; ++i) {
        glyph = glyphs[i];

        if ((0, _util.isNum)(glyph)) {
          spacingLength = spacingDir * glyph * fontSize / 1000;
          this.ctx.translate(spacingLength, 0);
          current.x += spacingLength * textHScale;
          continue;
        }

        var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;
        var operatorList = font.charProcOperatorList[glyph.operatorListId];

        if (!operatorList) {
          (0, _util.warn)(`Type3 character "${glyph.operatorListId}" is not available.`);
          continue;
        }

        if (this.contentVisible) {
          this.processingType3 = glyph;
          this.save();
          ctx.scale(fontSize, fontSize);
          ctx.transform.apply(ctx, fontMatrix);
          this.executeOperatorList(operatorList);
          this.restore();
        }

        var transformed = _util.Util.applyTransform([glyph.width, 0], fontMatrix);

        width = transformed[0] * fontSize + spacing;
        ctx.translate(width, 0);
        current.x += width * textHScale;
      }

      ctx.restore();
      this.processingType3 = null;
    },
    setCharWidth: function CanvasGraphics_setCharWidth(xWidth, yWidth) {},
    setCharWidthAndBounds: function CanvasGraphics_setCharWidthAndBounds(xWidth, yWidth, llx, lly, urx, ury) {
      this.ctx.rect(llx, lly, urx - llx, ury - lly);
      this.clip();
      this.endPath();
    },
    getColorN_Pattern: function CanvasGraphics_getColorN_Pattern(IR) {
      var pattern;

      if (IR[0] === "TilingPattern") {
        var color = IR[1];
        var baseTransform = this.baseTransform || this.ctx.mozCurrentTransform.slice();
        var canvasGraphicsFactory = {
          createCanvasGraphics: ctx => {
            return new CanvasGraphics(ctx, this.commonObjs, this.objs, this.canvasFactory, this.webGLContext);
          }
        };
        pattern = new _pattern_helper.TilingPattern(IR, color, this.ctx, canvasGraphicsFactory, baseTransform);
      } else {
        pattern = (0, _pattern_helper.getShadingPatternFromIR)(IR);
      }

      return pattern;
    },
    setStrokeColorN: function CanvasGraphics_setStrokeColorN() {
      this.current.strokeColor = this.getColorN_Pattern(arguments);
    },
    setFillColorN: function CanvasGraphics_setFillColorN() {
      this.current.fillColor = this.getColorN_Pattern(arguments);
      this.current.patternFill = true;
    },
    setStrokeRGBColor: function CanvasGraphics_setStrokeRGBColor(r, g, b) {
      var color = _util.Util.makeCssRgb(r, g, b);

      this.ctx.strokeStyle = color;
      this.current.strokeColor = color;
    },
    setFillRGBColor: function CanvasGraphics_setFillRGBColor(r, g, b) {
      var color = _util.Util.makeCssRgb(r, g, b);

      this.ctx.fillStyle = color;
      this.current.fillColor = color;
      this.current.patternFill = false;
    },
    shadingFill: function CanvasGraphics_shadingFill(patternIR) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      this.save();
      var pattern = (0, _pattern_helper.getShadingPatternFromIR)(patternIR);
      ctx.fillStyle = pattern.getPattern(ctx, this, true);
      var inv = ctx.mozCurrentTransformInverse;

      if (inv) {
        var canvas = ctx.canvas;
        var width = canvas.width;
        var height = canvas.height;

        var bl = _util.Util.applyTransform([0, 0], inv);

        var br = _util.Util.applyTransform([0, height], inv);

        var ul = _util.Util.applyTransform([width, 0], inv);

        var ur = _util.Util.applyTransform([width, height], inv);

        var x0 = Math.min(bl[0], br[0], ul[0], ur[0]);
        var y0 = Math.min(bl[1], br[1], ul[1], ur[1]);
        var x1 = Math.max(bl[0], br[0], ul[0], ur[0]);
        var y1 = Math.max(bl[1], br[1], ul[1], ur[1]);
        this.ctx.fillRect(x0, y0, x1 - x0, y1 - y0);
      } else {
        this.ctx.fillRect(-1e10, -1e10, 2e10, 2e10);
      }

      this.restore();
    },
    beginInlineImage: function CanvasGraphics_beginInlineImage() {
      (0, _util.unreachable)("Should not call beginInlineImage");
    },
    beginImageData: function CanvasGraphics_beginImageData() {
      (0, _util.unreachable)("Should not call beginImageData");
    },
    paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) {
      if (!this.contentVisible) {
        return;
      }

      this.save();
      this.baseTransformStack.push(this.baseTransform);

      if (Array.isArray(matrix) && matrix.length === 6) {
        this.transform.apply(this, matrix);
      }

      this.baseTransform = this.ctx.mozCurrentTransform;

      if (bbox) {
        var width = bbox[2] - bbox[0];
        var height = bbox[3] - bbox[1];
        this.ctx.rect(bbox[0], bbox[1], width, height);
        this.clip();
        this.endPath();
      }
    },
    paintFormXObjectEnd: function CanvasGraphics_paintFormXObjectEnd() {
      if (!this.contentVisible) {
        return;
      }

      this.restore();
      this.baseTransform = this.baseTransformStack.pop();
    },
    beginGroup: function CanvasGraphics_beginGroup(group) {
      if (!this.contentVisible) {
        return;
      }

      this.save();
      var currentCtx = this.ctx;

      if (!group.isolated) {
        (0, _util.info)("TODO: Support non-isolated groups.");
      }

      if (group.knockout) {
        (0, _util.warn)("Knockout groups not supported.");
      }

      var currentTransform = currentCtx.mozCurrentTransform;

      if (group.matrix) {
        currentCtx.transform.apply(currentCtx, group.matrix);
      }

      if (!group.bbox) {
        throw new Error("Bounding box is required.");
      }

      var bounds = _util.Util.getAxialAlignedBoundingBox(group.bbox, currentCtx.mozCurrentTransform);

      var canvasBounds = [0, 0, currentCtx.canvas.width, currentCtx.canvas.height];
      bounds = _util.Util.intersect(bounds, canvasBounds) || [0, 0, 0, 0];
      var offsetX = Math.floor(bounds[0]);
      var offsetY = Math.floor(bounds[1]);
      var drawnWidth = Math.max(Math.ceil(bounds[2]) - offsetX, 1);
      var drawnHeight = Math.max(Math.ceil(bounds[3]) - offsetY, 1);
      var scaleX = 1,
          scaleY = 1;

      if (drawnWidth > MAX_GROUP_SIZE) {
        scaleX = drawnWidth / MAX_GROUP_SIZE;
        drawnWidth = MAX_GROUP_SIZE;
      }

      if (drawnHeight > MAX_GROUP_SIZE) {
        scaleY = drawnHeight / MAX_GROUP_SIZE;
        drawnHeight = MAX_GROUP_SIZE;
      }

      var cacheId = "groupAt" + this.groupLevel;

      if (group.smask) {
        cacheId += "_smask_" + this.smaskCounter++ % 2;
      }

      var scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight, true);
      var groupCtx = scratchCanvas.context;
      groupCtx.scale(1 / scaleX, 1 / scaleY);
      groupCtx.translate(-offsetX, -offsetY);
      groupCtx.transform.apply(groupCtx, currentTransform);

      if (group.smask) {
        this.smaskStack.push({
          canvas: scratchCanvas.canvas,
          context: groupCtx,
          offsetX,
          offsetY,
          scaleX,
          scaleY,
          subtype: group.smask.subtype,
          backdrop: group.smask.backdrop,
          transferMap: group.smask.transferMap || null,
          startTransformInverse: null
        });
      } else {
        currentCtx.setTransform(1, 0, 0, 1, 0, 0);
        currentCtx.translate(offsetX, offsetY);
        currentCtx.scale(scaleX, scaleY);
      }

      copyCtxState(currentCtx, groupCtx);
      this.ctx = groupCtx;
      this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]);
      this.groupStack.push(currentCtx);
      this.groupLevel++;
      this.current.activeSMask = null;
    },
    endGroup: function CanvasGraphics_endGroup(group) {
      if (!this.contentVisible) {
        return;
      }

      this.groupLevel--;
      var groupCtx = this.ctx;
      this.ctx = this.groupStack.pop();

      if (this.ctx.imageSmoothingEnabled !== undefined) {
        this.ctx.imageSmoothingEnabled = false;
      } else {
        this.ctx.mozImageSmoothingEnabled = false;
      }

      if (group.smask) {
        this.tempSMask = this.smaskStack.pop();
      } else {
        this.ctx.drawImage(groupCtx.canvas, 0, 0);
      }

      this.restore();
    },
    beginAnnotations: function CanvasGraphics_beginAnnotations() {
      this.save();

      if (this.baseTransform) {
        this.ctx.setTransform.apply(this.ctx, this.baseTransform);
      }
    },
    endAnnotations: function CanvasGraphics_endAnnotations() {
      this.restore();
    },
    beginAnnotation: function CanvasGraphics_beginAnnotation(rect, transform, matrix) {
      this.save();
      resetCtxToDefault(this.ctx);
      this.current = new CanvasExtraState();

      if (Array.isArray(rect) && rect.length === 4) {
        var width = rect[2] - rect[0];
        var height = rect[3] - rect[1];
        this.ctx.rect(rect[0], rect[1], width, height);
        this.clip();
        this.endPath();
      }

      this.transform.apply(this, transform);
      this.transform.apply(this, matrix);
    },
    endAnnotation: function CanvasGraphics_endAnnotation() {
      this.restore();
    },
    paintImageMaskXObject: function CanvasGraphics_paintImageMaskXObject(img) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      var width = img.width,
          height = img.height;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;
      var glyph = this.processingType3;

      if (COMPILE_TYPE3_GLYPHS && glyph && glyph.compiled === undefined) {
        if (width <= MAX_SIZE_TO_COMPILE && height <= MAX_SIZE_TO_COMPILE) {
          glyph.compiled = compileType3Glyph({
            data: img.data,
            width,
            height
          });
        } else {
          glyph.compiled = null;
        }
      }

      if (glyph && glyph.compiled) {
        glyph.compiled(ctx);
        return;
      }

      var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height);
      var maskCtx = maskCanvas.context;
      maskCtx.save();
      putBinaryImageMask(maskCtx, img);
      maskCtx.globalCompositeOperation = "source-in";
      maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor;
      maskCtx.fillRect(0, 0, width, height);
      maskCtx.restore();
      this.paintInlineImageXObject(maskCanvas.canvas);
    },

    paintImageMaskXObjectRepeat(imgData, scaleX, skewX = 0, skewY = 0, scaleY, positions) {
      if (!this.contentVisible) {
        return;
      }

      var width = imgData.width;
      var height = imgData.height;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;
      var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height);
      var maskCtx = maskCanvas.context;
      maskCtx.save();
      putBinaryImageMask(maskCtx, imgData);
      maskCtx.globalCompositeOperation = "source-in";
      maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor;
      maskCtx.fillRect(0, 0, width, height);
      maskCtx.restore();
      var ctx = this.ctx;

      for (var i = 0, ii = positions.length; i < ii; i += 2) {
        ctx.save();
        ctx.transform(scaleX, skewX, skewY, scaleY, positions[i], positions[i + 1]);
        ctx.scale(1, -1);
        ctx.drawImage(maskCanvas.canvas, 0, 0, width, height, 0, -1, 1, 1);
        ctx.restore();
      }
    },

    paintImageMaskXObjectGroup: function CanvasGraphics_paintImageMaskXObjectGroup(images) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      var fillColor = this.current.fillColor;
      var isPatternFill = this.current.patternFill;

      for (var i = 0, ii = images.length; i < ii; i++) {
        var image = images[i];
        var width = image.width,
            height = image.height;
        var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height);
        var maskCtx = maskCanvas.context;
        maskCtx.save();
        putBinaryImageMask(maskCtx, image);
        maskCtx.globalCompositeOperation = "source-in";
        maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor;
        maskCtx.fillRect(0, 0, width, height);
        maskCtx.restore();
        ctx.save();
        ctx.transform.apply(ctx, image.transform);
        ctx.scale(1, -1);
        ctx.drawImage(maskCanvas.canvas, 0, 0, width, height, 0, -1, 1, 1);
        ctx.restore();
      }
    },
    paintImageXObject: function CanvasGraphics_paintImageXObject(objId) {
      if (!this.contentVisible) {
        return;
      }

      const imgData = objId.startsWith("g_") ? this.commonObjs.get(objId) : this.objs.get(objId);

      if (!imgData) {
        (0, _util.warn)("Dependent image isn't ready yet");
        return;
      }

      this.paintInlineImageXObject(imgData);
    },
    paintImageXObjectRepeat: function CanvasGraphics_paintImageXObjectRepeat(objId, scaleX, scaleY, positions) {
      if (!this.contentVisible) {
        return;
      }

      const imgData = objId.startsWith("g_") ? this.commonObjs.get(objId) : this.objs.get(objId);

      if (!imgData) {
        (0, _util.warn)("Dependent image isn't ready yet");
        return;
      }

      var width = imgData.width;
      var height = imgData.height;
      var map = [];

      for (var i = 0, ii = positions.length; i < ii; i += 2) {
        map.push({
          transform: [scaleX, 0, 0, scaleY, positions[i], positions[i + 1]],
          x: 0,
          y: 0,
          w: width,
          h: height
        });
      }

      this.paintInlineImageXObjectGroup(imgData, map);
    },
    paintInlineImageXObject: function CanvasGraphics_paintInlineImageXObject(imgData) {
      if (!this.contentVisible) {
        return;
      }

      var width = imgData.width;
      var height = imgData.height;
      var ctx = this.ctx;
      this.save();
      ctx.scale(1 / width, -1 / height);
      var currentTransform = ctx.mozCurrentTransformInverse;
      var a = currentTransform[0],
          b = currentTransform[1];
      var widthScale = Math.max(Math.sqrt(a * a + b * b), 1);
      var c = currentTransform[2],
          d = currentTransform[3];
      var heightScale = Math.max(Math.sqrt(c * c + d * d), 1);
      var imgToPaint, tmpCanvas;

      if (typeof HTMLElement === "function" && imgData instanceof HTMLElement || !imgData.data) {
        imgToPaint = imgData;
      } else {
        tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", width, height);
        var tmpCtx = tmpCanvas.context;
        putBinaryImageData(tmpCtx, imgData, this.current.transferMaps);
        imgToPaint = tmpCanvas.canvas;
      }

      var paintWidth = width,
          paintHeight = height;
      var tmpCanvasId = "prescale1";

      while (widthScale > 2 && paintWidth > 1 || heightScale > 2 && paintHeight > 1) {
        var newWidth = paintWidth,
            newHeight = paintHeight;

        if (widthScale > 2 && paintWidth > 1) {
          newWidth = Math.ceil(paintWidth / 2);
          widthScale /= paintWidth / newWidth;
        }

        if (heightScale > 2 && paintHeight > 1) {
          newHeight = Math.ceil(paintHeight / 2);
          heightScale /= paintHeight / newHeight;
        }

        tmpCanvas = this.cachedCanvases.getCanvas(tmpCanvasId, newWidth, newHeight);
        tmpCtx = tmpCanvas.context;
        tmpCtx.clearRect(0, 0, newWidth, newHeight);
        tmpCtx.drawImage(imgToPaint, 0, 0, paintWidth, paintHeight, 0, 0, newWidth, newHeight);
        imgToPaint = tmpCanvas.canvas;
        paintWidth = newWidth;
        paintHeight = newHeight;
        tmpCanvasId = tmpCanvasId === "prescale1" ? "prescale2" : "prescale1";
      }

      ctx.drawImage(imgToPaint, 0, 0, paintWidth, paintHeight, 0, -height, width, height);

      if (this.imageLayer) {
        var position = this.getCanvasPosition(0, -height);
        this.imageLayer.appendImage({
          imgData,
          left: position[0],
          top: position[1],
          width: width / currentTransform[0],
          height: height / currentTransform[3]
        });
      }

      this.restore();
    },
    paintInlineImageXObjectGroup: function CanvasGraphics_paintInlineImageXObjectGroup(imgData, map) {
      if (!this.contentVisible) {
        return;
      }

      var ctx = this.ctx;
      var w = imgData.width;
      var h = imgData.height;
      var tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", w, h);
      var tmpCtx = tmpCanvas.context;
      putBinaryImageData(tmpCtx, imgData, this.current.transferMaps);

      for (var i = 0, ii = map.length; i < ii; i++) {
        var entry = map[i];
        ctx.save();
        ctx.transform.apply(ctx, entry.transform);
        ctx.scale(1, -1);
        ctx.drawImage(tmpCanvas.canvas, entry.x, entry.y, entry.w, entry.h, 0, -1, 1, 1);

        if (this.imageLayer) {
          var position = this.getCanvasPosition(entry.x, entry.y);
          this.imageLayer.appendImage({
            imgData,
            left: position[0],
            top: position[1],
            width: w,
            height: h
          });
        }

        ctx.restore();
      }
    },
    paintSolidColorImageMask: function CanvasGraphics_paintSolidColorImageMask() {
      if (!this.contentVisible) {
        return;
      }

      this.ctx.fillRect(0, 0, 1, 1);
    },
    markPoint: function CanvasGraphics_markPoint(tag) {},
    markPointProps: function CanvasGraphics_markPointProps(tag, properties) {},
    beginMarkedContent: function CanvasGraphics_beginMarkedContent(tag) {
      this.markedContentStack.push({
        visible: true
      });
    },
    beginMarkedContentProps: function CanvasGraphics_beginMarkedContentProps(tag, properties) {
      if (tag === "OC") {
        this.markedContentStack.push({
          visible: this.optionalContentConfig.isVisible(properties)
        });
      } else {
        this.markedContentStack.push({
          visible: true
        });
      }

      this.contentVisible = this.isContentVisible();
    },
    endMarkedContent: function CanvasGraphics_endMarkedContent() {
      this.markedContentStack.pop();
      this.contentVisible = this.isContentVisible();
    },
    beginCompat: function CanvasGraphics_beginCompat() {},
    endCompat: function CanvasGraphics_endCompat() {},
    consumePath: function CanvasGraphics_consumePath() {
      var ctx = this.ctx;

      if (this.pendingClip) {
        if (this.pendingClip === EO_CLIP) {
          ctx.clip("evenodd");
        } else {
          ctx.clip();
        }

        this.pendingClip = null;
      }

      ctx.beginPath();
    },

    getSinglePixelWidth(scale) {
      if (this._cachedGetSinglePixelWidth === null) {
        const inverse = this.ctx.mozCurrentTransformInverse;
        this._cachedGetSinglePixelWidth = Math.sqrt(Math.max(inverse[0] * inverse[0] + inverse[1] * inverse[1], inverse[2] * inverse[2] + inverse[3] * inverse[3]));
      }

      return this._cachedGetSinglePixelWidth;
    },

    getCanvasPosition: function CanvasGraphics_getCanvasPosition(x, y) {
      var transform = this.ctx.mozCurrentTransform;
      return [transform[0] * x + transform[2] * y + transform[4], transform[1] * x + transform[3] * y + transform[5]];
    },
    isContentVisible: function CanvasGraphics_isContentVisible() {
      for (let i = this.markedContentStack.length - 1; i >= 0; i--) {
        if (!this.markedContentStack[i].visible) {
          return false;
        }
      }

      return true;
    }
  };

  for (var op in _util.OPS) {
    CanvasGraphics.prototype[_util.OPS[op]] = CanvasGraphics.prototype[op];
  }

  return CanvasGraphics;
}();

exports.CanvasGraphics = CanvasGraphics;

/***/ }),
/* 11 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getShadingPatternFromIR = getShadingPatternFromIR;
exports.TilingPattern = void 0;

var _util = __w_pdfjs_require__(2);

var ShadingIRs = {};

function applyBoundingBox(ctx, bbox) {
  if (!bbox || typeof Path2D === "undefined") {
    return;
  }

  const width = bbox[2] - bbox[0];
  const height = bbox[3] - bbox[1];
  const region = new Path2D();
  region.rect(bbox[0], bbox[1], width, height);
  ctx.clip(region);
}

ShadingIRs.RadialAxial = {
  fromIR: function RadialAxial_fromIR(raw) {
    var type = raw[1];
    var bbox = raw[2];
    var colorStops = raw[3];
    var p0 = raw[4];
    var p1 = raw[5];
    var r0 = raw[6];
    var r1 = raw[7];
    return {
      type: "Pattern",
      getPattern: function RadialAxial_getPattern(ctx) {
        applyBoundingBox(ctx, bbox);
        var grad;

        if (type === "axial") {
          grad = ctx.createLinearGradient(p0[0], p0[1], p1[0], p1[1]);
        } else if (type === "radial") {
          grad = ctx.createRadialGradient(p0[0], p0[1], r0, p1[0], p1[1], r1);
        }

        for (var i = 0, ii = colorStops.length; i < ii; ++i) {
          var c = colorStops[i];
          grad.addColorStop(c[0], c[1]);
        }

        return grad;
      }
    };
  }
};

var createMeshCanvas = function createMeshCanvasClosure() {
  function drawTriangle(data, context, p1, p2, p3, c1, c2, c3) {
    var coords = context.coords,
        colors = context.colors;
    var bytes = data.data,
        rowSize = data.width * 4;
    var tmp;

    if (coords[p1 + 1] > coords[p2 + 1]) {
      tmp = p1;
      p1 = p2;
      p2 = tmp;
      tmp = c1;
      c1 = c2;
      c2 = tmp;
    }

    if (coords[p2 + 1] > coords[p3 + 1]) {
      tmp = p2;
      p2 = p3;
      p3 = tmp;
      tmp = c2;
      c2 = c3;
      c3 = tmp;
    }

    if (coords[p1 + 1] > coords[p2 + 1]) {
      tmp = p1;
      p1 = p2;
      p2 = tmp;
      tmp = c1;
      c1 = c2;
      c2 = tmp;
    }

    var x1 = (coords[p1] + context.offsetX) * context.scaleX;
    var y1 = (coords[p1 + 1] + context.offsetY) * context.scaleY;
    var x2 = (coords[p2] + context.offsetX) * context.scaleX;
    var y2 = (coords[p2 + 1] + context.offsetY) * context.scaleY;
    var x3 = (coords[p3] + context.offsetX) * context.scaleX;
    var y3 = (coords[p3 + 1] + context.offsetY) * context.scaleY;

    if (y1 >= y3) {
      return;
    }

    var c1r = colors[c1],
        c1g = colors[c1 + 1],
        c1b = colors[c1 + 2];
    var c2r = colors[c2],
        c2g = colors[c2 + 1],
        c2b = colors[c2 + 2];
    var c3r = colors[c3],
        c3g = colors[c3 + 1],
        c3b = colors[c3 + 2];
    var minY = Math.round(y1),
        maxY = Math.round(y3);
    var xa, car, cag, cab;
    var xb, cbr, cbg, cbb;

    for (var y = minY; y <= maxY; y++) {
      if (y < y2) {
        let k;

        if (y < y1) {
          k = 0;
        } else if (y1 === y2) {
          k = 1;
        } else {
          k = (y1 - y) / (y1 - y2);
        }

        xa = x1 - (x1 - x2) * k;
        car = c1r - (c1r - c2r) * k;
        cag = c1g - (c1g - c2g) * k;
        cab = c1b - (c1b - c2b) * k;
      } else {
        let k;

        if (y > y3) {
          k = 1;
        } else if (y2 === y3) {
          k = 0;
        } else {
          k = (y2 - y) / (y2 - y3);
        }

        xa = x2 - (x2 - x3) * k;
        car = c2r - (c2r - c3r) * k;
        cag = c2g - (c2g - c3g) * k;
        cab = c2b - (c2b - c3b) * k;
      }

      let k;

      if (y < y1) {
        k = 0;
      } else if (y > y3) {
        k = 1;
      } else {
        k = (y1 - y) / (y1 - y3);
      }

      xb = x1 - (x1 - x3) * k;
      cbr = c1r - (c1r - c3r) * k;
      cbg = c1g - (c1g - c3g) * k;
      cbb = c1b - (c1b - c3b) * k;
      var x1_ = Math.round(Math.min(xa, xb));
      var x2_ = Math.round(Math.max(xa, xb));
      var j = rowSize * y + x1_ * 4;

      for (var x = x1_; x <= x2_; x++) {
        k = (xa - x) / (xa - xb);

        if (k < 0) {
          k = 0;
        } else if (k > 1) {
          k = 1;
        }

        bytes[j++] = car - (car - cbr) * k | 0;
        bytes[j++] = cag - (cag - cbg) * k | 0;
        bytes[j++] = cab - (cab - cbb) * k | 0;
        bytes[j++] = 255;
      }
    }
  }

  function drawFigure(data, figure, context) {
    var ps = figure.coords;
    var cs = figure.colors;
    var i, ii;

    switch (figure.type) {
      case "lattice":
        var verticesPerRow = figure.verticesPerRow;
        var rows = Math.floor(ps.length / verticesPerRow) - 1;
        var cols = verticesPerRow - 1;

        for (i = 0; i < rows; i++) {
          var q = i * verticesPerRow;

          for (var j = 0; j < cols; j++, q++) {
            drawTriangle(data, context, ps[q], ps[q + 1], ps[q + verticesPerRow], cs[q], cs[q + 1], cs[q + verticesPerRow]);
            drawTriangle(data, context, ps[q + verticesPerRow + 1], ps[q + 1], ps[q + verticesPerRow], cs[q + verticesPerRow + 1], cs[q + 1], cs[q + verticesPerRow]);
          }
        }

        break;

      case "triangles":
        for (i = 0, ii = ps.length; i < ii; i += 3) {
          drawTriangle(data, context, ps[i], ps[i + 1], ps[i + 2], cs[i], cs[i + 1], cs[i + 2]);
        }

        break;

      default:
        throw new Error("illegal figure");
    }
  }

  function createMeshCanvas(bounds, combinesScale, coords, colors, figures, backgroundColor, cachedCanvases, webGLContext) {
    var EXPECTED_SCALE = 1.1;
    var MAX_PATTERN_SIZE = 3000;
    var BORDER_SIZE = 2;
    var offsetX = Math.floor(bounds[0]);
    var offsetY = Math.floor(bounds[1]);
    var boundsWidth = Math.ceil(bounds[2]) - offsetX;
    var boundsHeight = Math.ceil(bounds[3]) - offsetY;
    var width = Math.min(Math.ceil(Math.abs(boundsWidth * combinesScale[0] * EXPECTED_SCALE)), MAX_PATTERN_SIZE);
    var height = Math.min(Math.ceil(Math.abs(boundsHeight * combinesScale[1] * EXPECTED_SCALE)), MAX_PATTERN_SIZE);
    var scaleX = boundsWidth / width;
    var scaleY = boundsHeight / height;
    var context = {
      coords,
      colors,
      offsetX: -offsetX,
      offsetY: -offsetY,
      scaleX: 1 / scaleX,
      scaleY: 1 / scaleY
    };
    var paddedWidth = width + BORDER_SIZE * 2;
    var paddedHeight = height + BORDER_SIZE * 2;
    var canvas, tmpCanvas, i, ii;

    if (webGLContext.isEnabled) {
      canvas = webGLContext.drawFigures({
        width,
        height,
        backgroundColor,
        figures,
        context
      });
      tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false);
      tmpCanvas.context.drawImage(canvas, BORDER_SIZE, BORDER_SIZE);
      canvas = tmpCanvas.canvas;
    } else {
      tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false);
      var tmpCtx = tmpCanvas.context;
      var data = tmpCtx.createImageData(width, height);

      if (backgroundColor) {
        var bytes = data.data;

        for (i = 0, ii = bytes.length; i < ii; i += 4) {
          bytes[i] = backgroundColor[0];
          bytes[i + 1] = backgroundColor[1];
          bytes[i + 2] = backgroundColor[2];
          bytes[i + 3] = 255;
        }
      }

      for (i = 0; i < figures.length; i++) {
        drawFigure(data, figures[i], context);
      }

      tmpCtx.putImageData(data, BORDER_SIZE, BORDER_SIZE);
      canvas = tmpCanvas.canvas;
    }

    return {
      canvas,
      offsetX: offsetX - BORDER_SIZE * scaleX,
      offsetY: offsetY - BORDER_SIZE * scaleY,
      scaleX,
      scaleY
    };
  }

  return createMeshCanvas;
}();

ShadingIRs.Mesh = {
  fromIR: function Mesh_fromIR(raw) {
    var coords = raw[2];
    var colors = raw[3];
    var figures = raw[4];
    var bounds = raw[5];
    var matrix = raw[6];
    var bbox = raw[7];
    var background = raw[8];
    return {
      type: "Pattern",
      getPattern: function Mesh_getPattern(ctx, owner, shadingFill) {
        applyBoundingBox(ctx, bbox);
        var scale;

        if (shadingFill) {
          scale = _util.Util.singularValueDecompose2dScale(ctx.mozCurrentTransform);
        } else {
          scale = _util.Util.singularValueDecompose2dScale(owner.baseTransform);

          if (matrix) {
            var matrixScale = _util.Util.singularValueDecompose2dScale(matrix);

            scale = [scale[0] * matrixScale[0], scale[1] * matrixScale[1]];
          }
        }

        var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords, colors, figures, shadingFill ? null : background, owner.cachedCanvases, owner.webGLContext);

        if (!shadingFill) {
          ctx.setTransform.apply(ctx, owner.baseTransform);

          if (matrix) {
            ctx.transform.apply(ctx, matrix);
          }
        }

        ctx.translate(temporaryPatternCanvas.offsetX, temporaryPatternCanvas.offsetY);
        ctx.scale(temporaryPatternCanvas.scaleX, temporaryPatternCanvas.scaleY);
        return ctx.createPattern(temporaryPatternCanvas.canvas, "no-repeat");
      }
    };
  }
};
ShadingIRs.Dummy = {
  fromIR: function Dummy_fromIR() {
    return {
      type: "Pattern",
      getPattern: function Dummy_fromIR_getPattern() {
        return "hotpink";
      }
    };
  }
};

function getShadingPatternFromIR(raw) {
  var shadingIR = ShadingIRs[raw[0]];

  if (!shadingIR) {
    throw new Error(`Unknown IR type: ${raw[0]}`);
  }

  return shadingIR.fromIR(raw);
}

var TilingPattern = function TilingPatternClosure() {
  var PaintType = {
    COLORED: 1,
    UNCOLORED: 2
  };
  var MAX_PATTERN_SIZE = 3000;

  function TilingPattern(IR, color, ctx, canvasGraphicsFactory, baseTransform) {
    this.operatorList = IR[2];
    this.matrix = IR[3] || [1, 0, 0, 1, 0, 0];
    this.bbox = IR[4];
    this.xstep = IR[5];
    this.ystep = IR[6];
    this.paintType = IR[7];
    this.tilingType = IR[8];
    this.color = color;
    this.canvasGraphicsFactory = canvasGraphicsFactory;
    this.baseTransform = baseTransform;
    this.type = "Pattern";
    this.ctx = ctx;
  }

  TilingPattern.prototype = {
    createPatternCanvas: function TilinPattern_createPatternCanvas(owner) {
      var operatorList = this.operatorList;
      var bbox = this.bbox;
      var xstep = this.xstep;
      var ystep = this.ystep;
      var paintType = this.paintType;
      var tilingType = this.tilingType;
      var color = this.color;
      var canvasGraphicsFactory = this.canvasGraphicsFactory;
      (0, _util.info)("TilingType: " + tilingType);
      var x0 = bbox[0],
          y0 = bbox[1],
          x1 = bbox[2],
          y1 = bbox[3];

      var matrixScale = _util.Util.singularValueDecompose2dScale(this.matrix);

      var curMatrixScale = _util.Util.singularValueDecompose2dScale(this.baseTransform);

      var combinedScale = [matrixScale[0] * curMatrixScale[0], matrixScale[1] * curMatrixScale[1]];
      var dimx = this.getSizeAndScale(xstep, this.ctx.canvas.width, combinedScale[0]);
      var dimy = this.getSizeAndScale(ystep, this.ctx.canvas.height, combinedScale[1]);
      var tmpCanvas = owner.cachedCanvases.getCanvas("pattern", dimx.size, dimy.size, true);
      var tmpCtx = tmpCanvas.context;
      var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
      graphics.groupLevel = owner.groupLevel;
      this.setFillAndStrokeStyleToContext(graphics, paintType, color);
      graphics.transform(dimx.scale, 0, 0, dimy.scale, 0, 0);
      graphics.transform(1, 0, 0, 1, -x0, -y0);
      this.clipBbox(graphics, bbox, x0, y0, x1, y1);
      graphics.executeOperatorList(operatorList);
      this.ctx.transform(1, 0, 0, 1, x0, y0);
      this.ctx.scale(1 / dimx.scale, 1 / dimy.scale);
      return tmpCanvas.canvas;
    },
    getSizeAndScale: function TilingPattern_getSizeAndScale(step, realOutputSize, scale) {
      step = Math.abs(step);
      var maxSize = Math.max(MAX_PATTERN_SIZE, realOutputSize);
      var size = Math.ceil(step * scale);

      if (size >= maxSize) {
        size = maxSize;
      } else {
        scale = size / step;
      }

      return {
        scale,
        size
      };
    },
    clipBbox: function clipBbox(graphics, bbox, x0, y0, x1, y1) {
      if (Array.isArray(bbox) && bbox.length === 4) {
        var bboxWidth = x1 - x0;
        var bboxHeight = y1 - y0;
        graphics.ctx.rect(x0, y0, bboxWidth, bboxHeight);
        graphics.clip();
        graphics.endPath();
      }
    },
    setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
      const context = graphics.ctx,
            current = graphics.current;

      switch (paintType) {
        case PaintType.COLORED:
          var ctx = this.ctx;
          context.fillStyle = ctx.fillStyle;
          context.strokeStyle = ctx.strokeStyle;
          current.fillColor = ctx.fillStyle;
          current.strokeColor = ctx.strokeStyle;
          break;

        case PaintType.UNCOLORED:
          var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);

          context.fillStyle = cssColor;
          context.strokeStyle = cssColor;
          current.fillColor = cssColor;
          current.strokeColor = cssColor;
          break;

        default:
          throw new _util.FormatError(`Unsupported paint type: ${paintType}`);
      }
    },
    getPattern: function TilingPattern_getPattern(ctx, owner) {
      ctx = this.ctx;
      ctx.setTransform.apply(ctx, this.baseTransform);
      ctx.transform.apply(ctx, this.matrix);
      var temporaryPatternCanvas = this.createPatternCanvas(owner);
      return ctx.createPattern(temporaryPatternCanvas, "repeat");
    }
  };
  return TilingPattern;
}();

exports.TilingPattern = TilingPattern;

/***/ }),
/* 12 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.GlobalWorkerOptions = void 0;
const GlobalWorkerOptions = Object.create(null);
exports.GlobalWorkerOptions = GlobalWorkerOptions;
GlobalWorkerOptions.workerPort = GlobalWorkerOptions.workerPort === undefined ? null : GlobalWorkerOptions.workerPort;
GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc;

/***/ }),
/* 13 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MessageHandler = void 0;

var _util = __w_pdfjs_require__(2);

const CallbackKind = {
  UNKNOWN: 0,
  DATA: 1,
  ERROR: 2
};
const StreamKind = {
  UNKNOWN: 0,
  CANCEL: 1,
  CANCEL_COMPLETE: 2,
  CLOSE: 3,
  ENQUEUE: 4,
  ERROR: 5,
  PULL: 6,
  PULL_COMPLETE: 7,
  START_COMPLETE: 8
};

function wrapReason(reason) {
  if (typeof reason !== "object" || reason === null) {
    return reason;
  }

  switch (reason.name) {
    case "AbortException":
      return new _util.AbortException(reason.message);

    case "MissingPDFException":
      return new _util.MissingPDFException(reason.message);

    case "UnexpectedResponseException":
      return new _util.UnexpectedResponseException(reason.message, reason.status);

    case "UnknownErrorException":
      return new _util.UnknownErrorException(reason.message, reason.details);

    default:
      return new _util.UnknownErrorException(reason.message, reason.toString());
  }
}

class MessageHandler {
  constructor(sourceName, targetName, comObj) {
    this.sourceName = sourceName;
    this.targetName = targetName;
    this.comObj = comObj;
    this.callbackId = 1;
    this.streamId = 1;
    this.postMessageTransfers = true;
    this.streamSinks = Object.create(null);
    this.streamControllers = Object.create(null);
    this.callbackCapabilities = Object.create(null);
    this.actionHandler = Object.create(null);

    this._onComObjOnMessage = event => {
      const data = event.data;

      if (data.targetName !== this.sourceName) {
        return;
      }

      if (data.stream) {
        this._processStreamMessage(data);

        return;
      }

      if (data.callback) {
        const callbackId = data.callbackId;
        const capability = this.callbackCapabilities[callbackId];

        if (!capability) {
          throw new Error(`Cannot resolve callback ${callbackId}`);
        }

        delete this.callbackCapabilities[callbackId];

        if (data.callback === CallbackKind.DATA) {
          capability.resolve(data.data);
        } else if (data.callback === CallbackKind.ERROR) {
          capability.reject(wrapReason(data.reason));
        } else {
          throw new Error("Unexpected callback case");
        }

        return;
      }

      const action = this.actionHandler[data.action];

      if (!action) {
        throw new Error(`Unknown action from worker: ${data.action}`);
      }

      if (data.callbackId) {
        const cbSourceName = this.sourceName;
        const cbTargetName = data.sourceName;
        new Promise(function (resolve) {
          resolve(action(data.data));
        }).then(function (result) {
          comObj.postMessage({
            sourceName: cbSourceName,
            targetName: cbTargetName,
            callback: CallbackKind.DATA,
            callbackId: data.callbackId,
            data: result
          });
        }, function (reason) {
          comObj.postMessage({
            sourceName: cbSourceName,
            targetName: cbTargetName,
            callback: CallbackKind.ERROR,
            callbackId: data.callbackId,
            reason: wrapReason(reason)
          });
        });
        return;
      }

      if (data.streamId) {
        this._createStreamSink(data);

        return;
      }

      action(data.data);
    };

    comObj.addEventListener("message", this._onComObjOnMessage);
  }

  on(actionName, handler) {
    const ah = this.actionHandler;

    if (ah[actionName]) {
      throw new Error(`There is already an actionName called "${actionName}"`);
    }

    ah[actionName] = handler;
  }

  send(actionName, data, transfers) {
    this._postMessage({
      sourceName: this.sourceName,
      targetName: this.targetName,
      action: actionName,
      data
    }, transfers);
  }

  sendWithPromise(actionName, data, transfers) {
    const callbackId = this.callbackId++;
    const capability = (0, _util.createPromiseCapability)();
    this.callbackCapabilities[callbackId] = capability;

    try {
      this._postMessage({
        sourceName: this.sourceName,
        targetName: this.targetName,
        action: actionName,
        callbackId,
        data
      }, transfers);
    } catch (ex) {
      capability.reject(ex);
    }

    return capability.promise;
  }

  sendWithStream(actionName, data, queueingStrategy, transfers) {
    const streamId = this.streamId++;
    const sourceName = this.sourceName;
    const targetName = this.targetName;
    const comObj = this.comObj;
    return new ReadableStream({
      start: controller => {
        const startCapability = (0, _util.createPromiseCapability)();
        this.streamControllers[streamId] = {
          controller,
          startCall: startCapability,
          pullCall: null,
          cancelCall: null,
          isClosed: false
        };

        this._postMessage({
          sourceName,
          targetName,
          action: actionName,
          streamId,
          data,
          desiredSize: controller.desiredSize
        }, transfers);

        return startCapability.promise;
      },
      pull: controller => {
        const pullCapability = (0, _util.createPromiseCapability)();
        this.streamControllers[streamId].pullCall = pullCapability;
        comObj.postMessage({
          sourceName,
          targetName,
          stream: StreamKind.PULL,
          streamId,
          desiredSize: controller.desiredSize
        });
        return pullCapability.promise;
      },
      cancel: reason => {
        (0, _util.assert)(reason instanceof Error, "cancel must have a valid reason");
        const cancelCapability = (0, _util.createPromiseCapability)();
        this.streamControllers[streamId].cancelCall = cancelCapability;
        this.streamControllers[streamId].isClosed = true;
        comObj.postMessage({
          sourceName,
          targetName,
          stream: StreamKind.CANCEL,
          streamId,
          reason: wrapReason(reason)
        });
        return cancelCapability.promise;
      }
    }, queueingStrategy);
  }

  _createStreamSink(data) {
    const self = this;
    const action = this.actionHandler[data.action];
    const streamId = data.streamId;
    const sourceName = this.sourceName;
    const targetName = data.sourceName;
    const comObj = this.comObj;
    const streamSink = {
      enqueue(chunk, size = 1, transfers) {
        if (this.isCancelled) {
          return;
        }

        const lastDesiredSize = this.desiredSize;
        this.desiredSize -= size;

        if (lastDesiredSize > 0 && this.desiredSize <= 0) {
          this.sinkCapability = (0, _util.createPromiseCapability)();
          this.ready = this.sinkCapability.promise;
        }

        self._postMessage({
          sourceName,
          targetName,
          stream: StreamKind.ENQUEUE,
          streamId,
          chunk
        }, transfers);
      },

      close() {
        if (this.isCancelled) {
          return;
        }

        this.isCancelled = true;
        comObj.postMessage({
          sourceName,
          targetName,
          stream: StreamKind.CLOSE,
          streamId
        });
        delete self.streamSinks[streamId];
      },

      error(reason) {
        (0, _util.assert)(reason instanceof Error, "error must have a valid reason");

        if (this.isCancelled) {
          return;
        }

        this.isCancelled = true;
        comObj.postMessage({
          sourceName,
          targetName,
          stream: StreamKind.ERROR,
          streamId,
          reason: wrapReason(reason)
        });
      },

      sinkCapability: (0, _util.createPromiseCapability)(),
      onPull: null,
      onCancel: null,
      isCancelled: false,
      desiredSize: data.desiredSize,
      ready: null
    };
    streamSink.sinkCapability.resolve();
    streamSink.ready = streamSink.sinkCapability.promise;
    this.streamSinks[streamId] = streamSink;
    new Promise(function (resolve) {
      resolve(action(data.data, streamSink));
    }).then(function () {
      comObj.postMessage({
        sourceName,
        targetName,
        stream: StreamKind.START_COMPLETE,
        streamId,
        success: true
      });
    }, function (reason) {
      comObj.postMessage({
        sourceName,
        targetName,
        stream: StreamKind.START_COMPLETE,
        streamId,
        reason: wrapReason(reason)
      });
    });
  }

  _processStreamMessage(data) {
    const streamId = data.streamId;
    const sourceName = this.sourceName;
    const targetName = data.sourceName;
    const comObj = this.comObj;

    switch (data.stream) {
      case StreamKind.START_COMPLETE:
        if (data.success) {
          this.streamControllers[streamId].startCall.resolve();
        } else {
          this.streamControllers[streamId].startCall.reject(wrapReason(data.reason));
        }

        break;

      case StreamKind.PULL_COMPLETE:
        if (data.success) {
          this.streamControllers[streamId].pullCall.resolve();
        } else {
          this.streamControllers[streamId].pullCall.reject(wrapReason(data.reason));
        }

        break;

      case StreamKind.PULL:
        if (!this.streamSinks[streamId]) {
          comObj.postMessage({
            sourceName,
            targetName,
            stream: StreamKind.PULL_COMPLETE,
            streamId,
            success: true
          });
          break;
        }

        if (this.streamSinks[streamId].desiredSize <= 0 && data.desiredSize > 0) {
          this.streamSinks[streamId].sinkCapability.resolve();
        }

        this.streamSinks[streamId].desiredSize = data.desiredSize;
        const {
          onPull
        } = this.streamSinks[data.streamId];
        new Promise(function (resolve) {
          resolve(onPull && onPull());
        }).then(function () {
          comObj.postMessage({
            sourceName,
            targetName,
            stream: StreamKind.PULL_COMPLETE,
            streamId,
            success: true
          });
        }, function (reason) {
          comObj.postMessage({
            sourceName,
            targetName,
            stream: StreamKind.PULL_COMPLETE,
            streamId,
            reason: wrapReason(reason)
          });
        });
        break;

      case StreamKind.ENQUEUE:
        (0, _util.assert)(this.streamControllers[streamId], "enqueue should have stream controller");

        if (this.streamControllers[streamId].isClosed) {
          break;
        }

        this.streamControllers[streamId].controller.enqueue(data.chunk);
        break;

      case StreamKind.CLOSE:
        (0, _util.assert)(this.streamControllers[streamId], "close should have stream controller");

        if (this.streamControllers[streamId].isClosed) {
          break;
        }

        this.streamControllers[streamId].isClosed = true;
        this.streamControllers[streamId].controller.close();

        this._deleteStreamController(streamId);

        break;

      case StreamKind.ERROR:
        (0, _util.assert)(this.streamControllers[streamId], "error should have stream controller");
        this.streamControllers[streamId].controller.error(wrapReason(data.reason));

        this._deleteStreamController(streamId);

        break;

      case StreamKind.CANCEL_COMPLETE:
        if (data.success) {
          this.streamControllers[streamId].cancelCall.resolve();
        } else {
          this.streamControllers[streamId].cancelCall.reject(wrapReason(data.reason));
        }

        this._deleteStreamController(streamId);

        break;

      case StreamKind.CANCEL:
        if (!this.streamSinks[streamId]) {
          break;
        }

        const {
          onCancel
        } = this.streamSinks[data.streamId];
        new Promise(function (resolve) {
          resolve(onCancel && onCancel(wrapReason(data.reason)));
        }).then(function () {
          comObj.postMessage({
            sourceName,
            targetName,
            stream: StreamKind.CANCEL_COMPLETE,
            streamId,
            success: true
          });
        }, function (reason) {
          comObj.postMessage({
            sourceName,
            targetName,
            stream: StreamKind.CANCEL_COMPLETE,
            streamId,
            reason: wrapReason(reason)
          });
        });
        this.streamSinks[streamId].sinkCapability.reject(wrapReason(data.reason));
        this.streamSinks[streamId].isCancelled = true;
        delete this.streamSinks[streamId];
        break;

      default:
        throw new Error("Unexpected stream case");
    }
  }

  async _deleteStreamController(streamId) {
    await Promise.allSettled([this.streamControllers[streamId].startCall, this.streamControllers[streamId].pullCall, this.streamControllers[streamId].cancelCall].map(function (capability) {
      return capability && capability.promise;
    }));
    delete this.streamControllers[streamId];
  }

  _postMessage(message, transfers) {
    if (transfers && this.postMessageTransfers) {
      this.comObj.postMessage(message, transfers);
    } else {
      this.comObj.postMessage(message);
    }
  }

  destroy() {
    this.comObj.removeEventListener("message", this._onComObjOnMessage);
  }

}

exports.MessageHandler = MessageHandler;

/***/ }),
/* 14 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Metadata = void 0;

var _util = __w_pdfjs_require__(2);

var _xml_parser = __w_pdfjs_require__(15);

class Metadata {
  constructor(data) {
    (0, _util.assert)(typeof data === "string", "Metadata: input is not a string");
    data = this._repair(data);
    const parser = new _xml_parser.SimpleXMLParser();
    const xmlDocument = parser.parseFromString(data);
    this._metadataMap = new Map();

    if (xmlDocument) {
      this._parse(xmlDocument);
    }
  }

  _repair(data) {
    return data.replace(/^[^<]+/, "").replace(/>\\376\\377([^<]+)/g, function (all, codes) {
      const bytes = codes.replace(/\\([0-3])([0-7])([0-7])/g, function (code, d1, d2, d3) {
        return String.fromCharCode(d1 * 64 + d2 * 8 + d3 * 1);
      }).replace(/&(amp|apos|gt|lt|quot);/g, function (str, name) {
        switch (name) {
          case "amp":
            return "&";

          case "apos":
            return "'";

          case "gt":
            return ">";

          case "lt":
            return "<";

          case "quot":
            return '"';
        }

        throw new Error(`_repair: ${name} isn't defined.`);
      });
      let chars = "";

      for (let i = 0, ii = bytes.length; i < ii; i += 2) {
        const code = bytes.charCodeAt(i) * 256 + bytes.charCodeAt(i + 1);

        if (code >= 32 && code < 127 && code !== 60 && code !== 62 && code !== 38) {
          chars += String.fromCharCode(code);
        } else {
          chars += "&#x" + (0x10000 + code).toString(16).substring(1) + ";";
        }
      }

      return ">" + chars;
    });
  }

  _parse(xmlDocument) {
    let rdf = xmlDocument.documentElement;

    if (rdf.nodeName.toLowerCase() !== "rdf:rdf") {
      rdf = rdf.firstChild;

      while (rdf && rdf.nodeName.toLowerCase() !== "rdf:rdf") {
        rdf = rdf.nextSibling;
      }
    }

    const nodeName = rdf ? rdf.nodeName.toLowerCase() : null;

    if (!rdf || nodeName !== "rdf:rdf" || !rdf.hasChildNodes()) {
      return;
    }

    const children = rdf.childNodes;

    for (let i = 0, ii = children.length; i < ii; i++) {
      const desc = children[i];

      if (desc.nodeName.toLowerCase() !== "rdf:description") {
        continue;
      }

      for (let j = 0, jj = desc.childNodes.length; j < jj; j++) {
        if (desc.childNodes[j].nodeName.toLowerCase() !== "#text") {
          const entry = desc.childNodes[j];
          const name = entry.nodeName.toLowerCase();

          this._metadataMap.set(name, entry.textContent.trim());
        }
      }
    }
  }

  get(name) {
    return this._metadataMap.has(name) ? this._metadataMap.get(name) : null;
  }

  getAll() {
    return Object.fromEntries(this._metadataMap);
  }

  has(name) {
    return this._metadataMap.has(name);
  }

}

exports.Metadata = Metadata;

/***/ }),
/* 15 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SimpleXMLParser = void 0;
const XMLParserErrorCode = {
  NoError: 0,
  EndOfDocument: -1,
  UnterminatedCdat: -2,
  UnterminatedXmlDeclaration: -3,
  UnterminatedDoctypeDeclaration: -4,
  UnterminatedComment: -5,
  MalformedElement: -6,
  OutOfMemory: -7,
  UnterminatedAttributeValue: -8,
  UnterminatedElement: -9,
  ElementNeverBegun: -10
};

function isWhitespace(s, index) {
  const ch = s[index];
  return ch === " " || ch === "\n" || ch === "\r" || ch === "\t";
}

function isWhitespaceString(s) {
  for (let i = 0, ii = s.length; i < ii; i++) {
    if (!isWhitespace(s, i)) {
      return false;
    }
  }

  return true;
}

class XMLParserBase {
  _resolveEntities(s) {
    return s.replace(/&([^;]+);/g, (all, entity) => {
      if (entity.substring(0, 2) === "#x") {
        return String.fromCharCode(parseInt(entity.substring(2), 16));
      } else if (entity.substring(0, 1) === "#") {
        return String.fromCharCode(parseInt(entity.substring(1), 10));
      }

      switch (entity) {
        case "lt":
          return "<";

        case "gt":
          return ">";

        case "amp":
          return "&";

        case "quot":
          return '"';
      }

      return this.onResolveEntity(entity);
    });
  }

  _parseContent(s, start) {
    const attributes = [];
    let pos = start;

    function skipWs() {
      while (pos < s.length && isWhitespace(s, pos)) {
        ++pos;
      }
    }

    while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "/") {
      ++pos;
    }

    const name = s.substring(start, pos);
    skipWs();

    while (pos < s.length && s[pos] !== ">" && s[pos] !== "/" && s[pos] !== "?") {
      skipWs();
      let attrName = "",
          attrValue = "";

      while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== "=") {
        attrName += s[pos];
        ++pos;
      }

      skipWs();

      if (s[pos] !== "=") {
        return null;
      }

      ++pos;
      skipWs();
      const attrEndChar = s[pos];

      if (attrEndChar !== '"' && attrEndChar !== "'") {
        return null;
      }

      const attrEndIndex = s.indexOf(attrEndChar, ++pos);

      if (attrEndIndex < 0) {
        return null;
      }

      attrValue = s.substring(pos, attrEndIndex);
      attributes.push({
        name: attrName,
        value: this._resolveEntities(attrValue)
      });
      pos = attrEndIndex + 1;
      skipWs();
    }

    return {
      name,
      attributes,
      parsed: pos - start
    };
  }

  _parseProcessingInstruction(s, start) {
    let pos = start;

    function skipWs() {
      while (pos < s.length && isWhitespace(s, pos)) {
        ++pos;
      }
    }

    while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "/") {
      ++pos;
    }

    const name = s.substring(start, pos);
    skipWs();
    const attrStart = pos;

    while (pos < s.length && (s[pos] !== "?" || s[pos + 1] !== ">")) {
      ++pos;
    }

    const value = s.substring(attrStart, pos);
    return {
      name,
      value,
      parsed: pos - start
    };
  }

  parseXml(s) {
    let i = 0;

    while (i < s.length) {
      const ch = s[i];
      let j = i;

      if (ch === "<") {
        ++j;
        const ch2 = s[j];
        let q;

        switch (ch2) {
          case "/":
            ++j;
            q = s.indexOf(">", j);

            if (q < 0) {
              this.onError(XMLParserErrorCode.UnterminatedElement);
              return;
            }

            this.onEndElement(s.substring(j, q));
            j = q + 1;
            break;

          case "?":
            ++j;

            const pi = this._parseProcessingInstruction(s, j);

            if (s.substring(j + pi.parsed, j + pi.parsed + 2) !== "?>") {
              this.onError(XMLParserErrorCode.UnterminatedXmlDeclaration);
              return;
            }

            this.onPi(pi.name, pi.value);
            j += pi.parsed + 2;
            break;

          case "!":
            if (s.substring(j + 1, j + 3) === "--") {
              q = s.indexOf("-->", j + 3);

              if (q < 0) {
                this.onError(XMLParserErrorCode.UnterminatedComment);
                return;
              }

              this.onComment(s.substring(j + 3, q));
              j = q + 3;
            } else if (s.substring(j + 1, j + 8) === "[CDATA[") {
              q = s.indexOf("]]>", j + 8);

              if (q < 0) {
                this.onError(XMLParserErrorCode.UnterminatedCdat);
                return;
              }

              this.onCdata(s.substring(j + 8, q));
              j = q + 3;
            } else if (s.substring(j + 1, j + 8) === "DOCTYPE") {
              const q2 = s.indexOf("[", j + 8);
              let complexDoctype = false;
              q = s.indexOf(">", j + 8);

              if (q < 0) {
                this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);
                return;
              }

              if (q2 > 0 && q > q2) {
                q = s.indexOf("]>", j + 8);

                if (q < 0) {
                  this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);
                  return;
                }

                complexDoctype = true;
              }

              const doctypeContent = s.substring(j + 8, q + (complexDoctype ? 1 : 0));
              this.onDoctype(doctypeContent);
              j = q + (complexDoctype ? 2 : 1);
            } else {
              this.onError(XMLParserErrorCode.MalformedElement);
              return;
            }

            break;

          default:
            const content = this._parseContent(s, j);

            if (content === null) {
              this.onError(XMLParserErrorCode.MalformedElement);
              return;
            }

            let isClosed = false;

            if (s.substring(j + content.parsed, j + content.parsed + 2) === "/>") {
              isClosed = true;
            } else if (s.substring(j + content.parsed, j + content.parsed + 1) !== ">") {
              this.onError(XMLParserErrorCode.UnterminatedElement);
              return;
            }

            this.onBeginElement(content.name, content.attributes, isClosed);
            j += content.parsed + (isClosed ? 2 : 1);
            break;
        }
      } else {
        while (j < s.length && s[j] !== "<") {
          j++;
        }

        const text = s.substring(i, j);
        this.onText(this._resolveEntities(text));
      }

      i = j;
    }
  }

  onResolveEntity(name) {
    return `&${name};`;
  }

  onPi(name, value) {}

  onComment(text) {}

  onCdata(text) {}

  onDoctype(doctypeContent) {}

  onText(text) {}

  onBeginElement(name, attributes, isEmpty) {}

  onEndElement(name) {}

  onError(code) {}

}

class SimpleDOMNode {
  constructor(nodeName, nodeValue) {
    this.nodeName = nodeName;
    this.nodeValue = nodeValue;
    Object.defineProperty(this, "parentNode", {
      value: null,
      writable: true
    });
  }

  get firstChild() {
    return this.childNodes && this.childNodes[0];
  }

  get nextSibling() {
    const childNodes = this.parentNode.childNodes;

    if (!childNodes) {
      return undefined;
    }

    const index = childNodes.indexOf(this);

    if (index === -1) {
      return undefined;
    }

    return childNodes[index + 1];
  }

  get textContent() {
    if (!this.childNodes) {
      return this.nodeValue || "";
    }

    return this.childNodes.map(function (child) {
      return child.textContent;
    }).join("");
  }

  hasChildNodes() {
    return this.childNodes && this.childNodes.length > 0;
  }

}

class SimpleXMLParser extends XMLParserBase {
  constructor() {
    super();
    this._currentFragment = null;
    this._stack = null;
    this._errorCode = XMLParserErrorCode.NoError;
  }

  parseFromString(data) {
    this._currentFragment = [];
    this._stack = [];
    this._errorCode = XMLParserErrorCode.NoError;
    this.parseXml(data);

    if (this._errorCode !== XMLParserErrorCode.NoError) {
      return undefined;
    }

    const [documentElement] = this._currentFragment;

    if (!documentElement) {
      return undefined;
    }

    return {
      documentElement
    };
  }

  onResolveEntity(name) {
    switch (name) {
      case "apos":
        return "'";
    }

    return super.onResolveEntity(name);
  }

  onText(text) {
    if (isWhitespaceString(text)) {
      return;
    }

    const node = new SimpleDOMNode("#text", text);

    this._currentFragment.push(node);
  }

  onCdata(text) {
    const node = new SimpleDOMNode("#text", text);

    this._currentFragment.push(node);
  }

  onBeginElement(name, attributes, isEmpty) {
    const node = new SimpleDOMNode(name);
    node.childNodes = [];

    this._currentFragment.push(node);

    if (isEmpty) {
      return;
    }

    this._stack.push(this._currentFragment);

    this._currentFragment = node.childNodes;
  }

  onEndElement(name) {
    this._currentFragment = this._stack.pop() || [];
    const lastElement = this._currentFragment[this._currentFragment.length - 1];

    if (!lastElement) {
      return;
    }

    for (let i = 0, ii = lastElement.childNodes.length; i < ii; i++) {
      lastElement.childNodes[i].parentNode = lastElement;
    }
  }

  onError(code) {
    this._errorCode = code;
  }

}

exports.SimpleXMLParser = SimpleXMLParser;

/***/ }),
/* 16 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.OptionalContentConfig = void 0;

var _util = __w_pdfjs_require__(2);

class OptionalContentGroup {
  constructor(name, intent) {
    this.visible = true;
    this.name = name;
    this.intent = intent;
  }

}

class OptionalContentConfig {
  constructor(data) {
    this.name = null;
    this.creator = null;
    this._order = null;
    this._groups = new Map();

    if (data === null) {
      return;
    }

    this.name = data.name;
    this.creator = data.creator;
    this._order = data.order;

    for (const group of data.groups) {
      this._groups.set(group.id, new OptionalContentGroup(group.name, group.intent));
    }

    if (data.baseState === "OFF") {
      for (const group of this._groups) {
        group.visible = false;
      }
    }

    for (const on of data.on) {
      this._groups.get(on).visible = true;
    }

    for (const off of data.off) {
      this._groups.get(off).visible = false;
    }
  }

  isVisible(group) {
    if (group.type === "OCG") {
      if (!this._groups.has(group.id)) {
        (0, _util.warn)(`Optional content group not found: ${group.id}`);
        return true;
      }

      return this._groups.get(group.id).visible;
    } else if (group.type === "OCMD") {
      if (group.expression) {
        (0, _util.warn)("Visibility expression not supported yet.");
      }

      if (!group.policy || group.policy === "AnyOn") {
        for (const id of group.ids) {
          if (!this._groups.has(id)) {
            (0, _util.warn)(`Optional content group not found: ${id}`);
            return true;
          }

          if (this._groups.get(id).visible) {
            return true;
          }
        }

        return false;
      } else if (group.policy === "AllOn") {
        for (const id of group.ids) {
          if (!this._groups.has(id)) {
            (0, _util.warn)(`Optional content group not found: ${id}`);
            return true;
          }

          if (!this._groups.get(id).visible) {
            return false;
          }
        }

        return true;
      } else if (group.policy === "AnyOff") {
        for (const id of group.ids) {
          if (!this._groups.has(id)) {
            (0, _util.warn)(`Optional content group not found: ${id}`);
            return true;
          }

          if (!this._groups.get(id).visible) {
            return true;
          }
        }

        return false;
      } else if (group.policy === "AllOff") {
        for (const id of group.ids) {
          if (!this._groups.has(id)) {
            (0, _util.warn)(`Optional content group not found: ${id}`);
            return true;
          }

          if (this._groups.get(id).visible) {
            return false;
          }
        }

        return true;
      }

      (0, _util.warn)(`Unknown optional content policy ${group.policy}.`);
      return true;
    }

    (0, _util.warn)(`Unknown group type ${group.type}.`);
    return true;
  }

  setVisibility(id, visible = true) {
    if (!this._groups.has(id)) {
      (0, _util.warn)(`Optional content group not found: ${id}`);
      return;
    }

    this._groups.get(id).visible = !!visible;
  }

  getOrder() {
    if (!this._groups.size) {
      return null;
    }

    if (this._order) {
      return this._order.slice();
    }

    return Array.from(this._groups.keys());
  }

  getGroups() {
    if (!this._groups.size) {
      return null;
    }

    return Object.fromEntries(this._groups);
  }

  getGroup(id) {
    return this._groups.get(id) || null;
  }

}

exports.OptionalContentConfig = OptionalContentConfig;

/***/ }),
/* 17 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFDataTransportStream = void 0;

var _util = __w_pdfjs_require__(2);

class PDFDataTransportStream {
  constructor(params, pdfDataRangeTransport) {
    (0, _util.assert)(pdfDataRangeTransport, 'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');
    this._queuedChunks = [];
    this._progressiveDone = params.progressiveDone || false;
    const initialData = params.initialData;

    if (initialData && initialData.length > 0) {
      const buffer = new Uint8Array(initialData).buffer;

      this._queuedChunks.push(buffer);
    }

    this._pdfDataRangeTransport = pdfDataRangeTransport;
    this._isStreamingSupported = !params.disableStream;
    this._isRangeSupported = !params.disableRange;
    this._contentLength = params.length;
    this._fullRequestReader = null;
    this._rangeReaders = [];

    this._pdfDataRangeTransport.addRangeListener((begin, chunk) => {
      this._onReceiveData({
        begin,
        chunk
      });
    });

    this._pdfDataRangeTransport.addProgressListener((loaded, total) => {
      this._onProgress({
        loaded,
        total
      });
    });

    this._pdfDataRangeTransport.addProgressiveReadListener(chunk => {
      this._onReceiveData({
        chunk
      });
    });

    this._pdfDataRangeTransport.addProgressiveDoneListener(() => {
      this._onProgressiveDone();
    });

    this._pdfDataRangeTransport.transportReady();
  }

  _onReceiveData(args) {
    const buffer = new Uint8Array(args.chunk).buffer;

    if (args.begin === undefined) {
      if (this._fullRequestReader) {
        this._fullRequestReader._enqueue(buffer);
      } else {
        this._queuedChunks.push(buffer);
      }
    } else {
      const found = this._rangeReaders.some(function (rangeReader) {
        if (rangeReader._begin !== args.begin) {
          return false;
        }

        rangeReader._enqueue(buffer);

        return true;
      });

      (0, _util.assert)(found, "_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.");
    }
  }

  get _progressiveDataLength() {
    return this._fullRequestReader ? this._fullRequestReader._loaded : 0;
  }

  _onProgress(evt) {
    if (evt.total === undefined) {
      const firstReader = this._rangeReaders[0];

      if (firstReader && firstReader.onProgress) {
        firstReader.onProgress({
          loaded: evt.loaded
        });
      }
    } else {
      const fullReader = this._fullRequestReader;

      if (fullReader && fullReader.onProgress) {
        fullReader.onProgress({
          loaded: evt.loaded,
          total: evt.total
        });
      }
    }
  }

  _onProgressiveDone() {
    if (this._fullRequestReader) {
      this._fullRequestReader.progressiveDone();
    }

    this._progressiveDone = true;
  }

  _removeRangeReader(reader) {
    const i = this._rangeReaders.indexOf(reader);

    if (i >= 0) {
      this._rangeReaders.splice(i, 1);
    }
  }

  getFullReader() {
    (0, _util.assert)(!this._fullRequestReader, "PDFDataTransportStream.getFullReader can only be called once.");
    const queuedChunks = this._queuedChunks;
    this._queuedChunks = null;
    return new PDFDataTransportStreamReader(this, queuedChunks, this._progressiveDone);
  }

  getRangeReader(begin, end) {
    if (end <= this._progressiveDataLength) {
      return null;
    }

    const reader = new PDFDataTransportStreamRangeReader(this, begin, end);

    this._pdfDataRangeTransport.requestDataRange(begin, end);

    this._rangeReaders.push(reader);

    return reader;
  }

  cancelAllRequests(reason) {
    if (this._fullRequestReader) {
      this._fullRequestReader.cancel(reason);
    }

    const readers = this._rangeReaders.slice(0);

    readers.forEach(function (rangeReader) {
      rangeReader.cancel(reason);
    });

    this._pdfDataRangeTransport.abort();
  }

}

exports.PDFDataTransportStream = PDFDataTransportStream;

class PDFDataTransportStreamReader {
  constructor(stream, queuedChunks, progressiveDone = false) {
    this._stream = stream;
    this._done = progressiveDone || false;
    this._filename = null;
    this._queuedChunks = queuedChunks || [];
    this._loaded = 0;

    for (const chunk of this._queuedChunks) {
      this._loaded += chunk.byteLength;
    }

    this._requests = [];
    this._headersReady = Promise.resolve();
    stream._fullRequestReader = this;
    this.onProgress = null;
  }

  _enqueue(chunk) {
    if (this._done) {
      return;
    }

    if (this._requests.length > 0) {
      const requestCapability = this._requests.shift();

      requestCapability.resolve({
        value: chunk,
        done: false
      });
    } else {
      this._queuedChunks.push(chunk);
    }

    this._loaded += chunk.byteLength;
  }

  get headersReady() {
    return this._headersReady;
  }

  get filename() {
    return this._filename;
  }

  get isRangeSupported() {
    return this._stream._isRangeSupported;
  }

  get isStreamingSupported() {
    return this._stream._isStreamingSupported;
  }

  get contentLength() {
    return this._stream._contentLength;
  }

  async read() {
    if (this._queuedChunks.length > 0) {
      const chunk = this._queuedChunks.shift();

      return {
        value: chunk,
        done: false
      };
    }

    if (this._done) {
      return {
        value: undefined,
        done: true
      };
    }

    const requestCapability = (0, _util.createPromiseCapability)();

    this._requests.push(requestCapability);

    return requestCapability.promise;
  }

  cancel(reason) {
    this._done = true;

    this._requests.forEach(function (requestCapability) {
      requestCapability.resolve({
        value: undefined,
        done: true
      });
    });

    this._requests = [];
  }

  progressiveDone() {
    if (this._done) {
      return;
    }

    this._done = true;
  }

}

class PDFDataTransportStreamRangeReader {
  constructor(stream, begin, end) {
    this._stream = stream;
    this._begin = begin;
    this._end = end;
    this._queuedChunk = null;
    this._requests = [];
    this._done = false;
    this.onProgress = null;
  }

  _enqueue(chunk) {
    if (this._done) {
      return;
    }

    if (this._requests.length === 0) {
      this._queuedChunk = chunk;
    } else {
      const requestsCapability = this._requests.shift();

      requestsCapability.resolve({
        value: chunk,
        done: false
      });

      this._requests.forEach(function (requestCapability) {
        requestCapability.resolve({
          value: undefined,
          done: true
        });
      });

      this._requests = [];
    }

    this._done = true;

    this._stream._removeRangeReader(this);
  }

  get isStreamingSupported() {
    return false;
  }

  async read() {
    if (this._queuedChunk) {
      const chunk = this._queuedChunk;
      this._queuedChunk = null;
      return {
        value: chunk,
        done: false
      };
    }

    if (this._done) {
      return {
        value: undefined,
        done: true
      };
    }

    const requestCapability = (0, _util.createPromiseCapability)();

    this._requests.push(requestCapability);

    return requestCapability.promise;
  }

  cancel(reason) {
    this._done = true;

    this._requests.forEach(function (requestCapability) {
      requestCapability.resolve({
        value: undefined,
        done: true
      });
    });

    this._requests = [];

    this._stream._removeRangeReader(this);
  }

}

/***/ }),
/* 18 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.WebGLContext = void 0;

var _util = __w_pdfjs_require__(2);

class WebGLContext {
  constructor({
    enable = false
  }) {
    this._enabled = enable === true;
  }

  get isEnabled() {
    let enabled = this._enabled;

    if (enabled) {
      enabled = WebGLUtils.tryInitGL();
    }

    return (0, _util.shadow)(this, "isEnabled", enabled);
  }

  composeSMask({
    layer,
    mask,
    properties
  }) {
    return WebGLUtils.composeSMask(layer, mask, properties);
  }

  drawFigures({
    width,
    height,
    backgroundColor,
    figures,
    context
  }) {
    return WebGLUtils.drawFigures(width, height, backgroundColor, figures, context);
  }

  clear() {
    WebGLUtils.cleanup();
  }

}

exports.WebGLContext = WebGLContext;

var WebGLUtils = function WebGLUtilsClosure() {
  function loadShader(gl, code, shaderType) {
    var shader = gl.createShader(shaderType);
    gl.shaderSource(shader, code);
    gl.compileShader(shader);
    var compiled = gl.getShaderParameter(shader, gl.COMPILE_STATUS);

    if (!compiled) {
      var errorMsg = gl.getShaderInfoLog(shader);
      throw new Error("Error during shader compilation: " + errorMsg);
    }

    return shader;
  }

  function createVertexShader(gl, code) {
    return loadShader(gl, code, gl.VERTEX_SHADER);
  }

  function createFragmentShader(gl, code) {
    return loadShader(gl, code, gl.FRAGMENT_SHADER);
  }

  function createProgram(gl, shaders) {
    var program = gl.createProgram();

    for (var i = 0, ii = shaders.length; i < ii; ++i) {
      gl.attachShader(program, shaders[i]);
    }

    gl.linkProgram(program);
    var linked = gl.getProgramParameter(program, gl.LINK_STATUS);

    if (!linked) {
      var errorMsg = gl.getProgramInfoLog(program);
      throw new Error("Error during program linking: " + errorMsg);
    }

    return program;
  }

  function createTexture(gl, image, textureId) {
    gl.activeTexture(textureId);
    var texture = gl.createTexture();
    gl.bindTexture(gl.TEXTURE_2D, texture);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST);
    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);
    gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);
    return texture;
  }

  var currentGL, currentCanvas;

  function generateGL() {
    if (currentGL) {
      return;
    }

    currentCanvas = document.createElement("canvas");
    currentGL = currentCanvas.getContext("webgl", {
      premultipliedalpha: false
    });
  }

  var smaskVertexShaderCode = "\
  attribute vec2 a_position;                                    \
  attribute vec2 a_texCoord;                                    \
                                                                \
  uniform vec2 u_resolution;                                    \
                                                                \
  varying vec2 v_texCoord;                                      \
                                                                \
  void main() {                                                 \
    vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;   \
    gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);          \
                                                                \
    v_texCoord = a_texCoord;                                    \
  }                                                             ";
  var smaskFragmentShaderCode = "\
  precision mediump float;                                      \
                                                                \
  uniform vec4 u_backdrop;                                      \
  uniform int u_subtype;                                        \
  uniform sampler2D u_image;                                    \
  uniform sampler2D u_mask;                                     \
                                                                \
  varying vec2 v_texCoord;                                      \
                                                                \
  void main() {                                                 \
    vec4 imageColor = texture2D(u_image, v_texCoord);           \
    vec4 maskColor = texture2D(u_mask, v_texCoord);             \
    if (u_backdrop.a > 0.0) {                                   \
      maskColor.rgb = maskColor.rgb * maskColor.a +             \
                      u_backdrop.rgb * (1.0 - maskColor.a);     \
    }                                                           \
    float lum;                                                  \
    if (u_subtype == 0) {                                       \
      lum = maskColor.a;                                        \
    } else {                                                    \
      lum = maskColor.r * 0.3 + maskColor.g * 0.59 +            \
            maskColor.b * 0.11;                                 \
    }                                                           \
    imageColor.a *= lum;                                        \
    imageColor.rgb *= imageColor.a;                             \
    gl_FragColor = imageColor;                                  \
  }                                                             ";
  var smaskCache = null;

  function initSmaskGL() {
    var canvas, gl;
    generateGL();
    canvas = currentCanvas;
    currentCanvas = null;
    gl = currentGL;
    currentGL = null;
    var vertexShader = createVertexShader(gl, smaskVertexShaderCode);
    var fragmentShader = createFragmentShader(gl, smaskFragmentShaderCode);
    var program = createProgram(gl, [vertexShader, fragmentShader]);
    gl.useProgram(program);
    var cache = {};
    cache.gl = gl;
    cache.canvas = canvas;
    cache.resolutionLocation = gl.getUniformLocation(program, "u_resolution");
    cache.positionLocation = gl.getAttribLocation(program, "a_position");
    cache.backdropLocation = gl.getUniformLocation(program, "u_backdrop");
    cache.subtypeLocation = gl.getUniformLocation(program, "u_subtype");
    var texCoordLocation = gl.getAttribLocation(program, "a_texCoord");
    var texLayerLocation = gl.getUniformLocation(program, "u_image");
    var texMaskLocation = gl.getUniformLocation(program, "u_mask");
    var texCoordBuffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer);
    gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0]), gl.STATIC_DRAW);
    gl.enableVertexAttribArray(texCoordLocation);
    gl.vertexAttribPointer(texCoordLocation, 2, gl.FLOAT, false, 0, 0);
    gl.uniform1i(texLayerLocation, 0);
    gl.uniform1i(texMaskLocation, 1);
    smaskCache = cache;
  }

  function composeSMask(layer, mask, properties) {
    var width = layer.width,
        height = layer.height;

    if (!smaskCache) {
      initSmaskGL();
    }

    var cache = smaskCache,
        canvas = cache.canvas,
        gl = cache.gl;
    canvas.width = width;
    canvas.height = height;
    gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);
    gl.uniform2f(cache.resolutionLocation, width, height);

    if (properties.backdrop) {
      gl.uniform4f(cache.resolutionLocation, properties.backdrop[0], properties.backdrop[1], properties.backdrop[2], 1);
    } else {
      gl.uniform4f(cache.resolutionLocation, 0, 0, 0, 0);
    }

    gl.uniform1i(cache.subtypeLocation, properties.subtype === "Luminosity" ? 1 : 0);
    var texture = createTexture(gl, layer, gl.TEXTURE0);
    var maskTexture = createTexture(gl, mask, gl.TEXTURE1);
    var buffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
    gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([0, 0, width, 0, 0, height, 0, height, width, 0, width, height]), gl.STATIC_DRAW);
    gl.enableVertexAttribArray(cache.positionLocation);
    gl.vertexAttribPointer(cache.positionLocation, 2, gl.FLOAT, false, 0, 0);
    gl.clearColor(0, 0, 0, 0);
    gl.enable(gl.BLEND);
    gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
    gl.clear(gl.COLOR_BUFFER_BIT);
    gl.drawArrays(gl.TRIANGLES, 0, 6);
    gl.flush();
    gl.deleteTexture(texture);
    gl.deleteTexture(maskTexture);
    gl.deleteBuffer(buffer);
    return canvas;
  }

  var figuresVertexShaderCode = "\
  attribute vec2 a_position;                                    \
  attribute vec3 a_color;                                       \
                                                                \
  uniform vec2 u_resolution;                                    \
  uniform vec2 u_scale;                                         \
  uniform vec2 u_offset;                                        \
                                                                \
  varying vec4 v_color;                                         \
                                                                \
  void main() {                                                 \
    vec2 position = (a_position + u_offset) * u_scale;          \
    vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;     \
    gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);          \
                                                                \
    v_color = vec4(a_color / 255.0, 1.0);                       \
  }                                                             ";
  var figuresFragmentShaderCode = "\
  precision mediump float;                                      \
                                                                \
  varying vec4 v_color;                                         \
                                                                \
  void main() {                                                 \
    gl_FragColor = v_color;                                     \
  }                                                             ";
  var figuresCache = null;

  function initFiguresGL() {
    var canvas, gl;
    generateGL();
    canvas = currentCanvas;
    currentCanvas = null;
    gl = currentGL;
    currentGL = null;
    var vertexShader = createVertexShader(gl, figuresVertexShaderCode);
    var fragmentShader = createFragmentShader(gl, figuresFragmentShaderCode);
    var program = createProgram(gl, [vertexShader, fragmentShader]);
    gl.useProgram(program);
    var cache = {};
    cache.gl = gl;
    cache.canvas = canvas;
    cache.resolutionLocation = gl.getUniformLocation(program, "u_resolution");
    cache.scaleLocation = gl.getUniformLocation(program, "u_scale");
    cache.offsetLocation = gl.getUniformLocation(program, "u_offset");
    cache.positionLocation = gl.getAttribLocation(program, "a_position");
    cache.colorLocation = gl.getAttribLocation(program, "a_color");
    figuresCache = cache;
  }

  function drawFigures(width, height, backgroundColor, figures, context) {
    if (!figuresCache) {
      initFiguresGL();
    }

    var cache = figuresCache,
        canvas = cache.canvas,
        gl = cache.gl;
    canvas.width = width;
    canvas.height = height;
    gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);
    gl.uniform2f(cache.resolutionLocation, width, height);
    var count = 0;
    var i, ii, rows;

    for (i = 0, ii = figures.length; i < ii; i++) {
      switch (figures[i].type) {
        case "lattice":
          rows = figures[i].coords.length / figures[i].verticesPerRow | 0;
          count += (rows - 1) * (figures[i].verticesPerRow - 1) * 6;
          break;

        case "triangles":
          count += figures[i].coords.length;
          break;
      }
    }

    var coords = new Float32Array(count * 2);
    var colors = new Uint8Array(count * 3);
    var coordsMap = context.coords,
        colorsMap = context.colors;
    var pIndex = 0,
        cIndex = 0;

    for (i = 0, ii = figures.length; i < ii; i++) {
      var figure = figures[i],
          ps = figure.coords,
          cs = figure.colors;

      switch (figure.type) {
        case "lattice":
          var cols = figure.verticesPerRow;
          rows = ps.length / cols | 0;

          for (var row = 1; row < rows; row++) {
            var offset = row * cols + 1;

            for (var col = 1; col < cols; col++, offset++) {
              coords[pIndex] = coordsMap[ps[offset - cols - 1]];
              coords[pIndex + 1] = coordsMap[ps[offset - cols - 1] + 1];
              coords[pIndex + 2] = coordsMap[ps[offset - cols]];
              coords[pIndex + 3] = coordsMap[ps[offset - cols] + 1];
              coords[pIndex + 4] = coordsMap[ps[offset - 1]];
              coords[pIndex + 5] = coordsMap[ps[offset - 1] + 1];
              colors[cIndex] = colorsMap[cs[offset - cols - 1]];
              colors[cIndex + 1] = colorsMap[cs[offset - cols - 1] + 1];
              colors[cIndex + 2] = colorsMap[cs[offset - cols - 1] + 2];
              colors[cIndex + 3] = colorsMap[cs[offset - cols]];
              colors[cIndex + 4] = colorsMap[cs[offset - cols] + 1];
              colors[cIndex + 5] = colorsMap[cs[offset - cols] + 2];
              colors[cIndex + 6] = colorsMap[cs[offset - 1]];
              colors[cIndex + 7] = colorsMap[cs[offset - 1] + 1];
              colors[cIndex + 8] = colorsMap[cs[offset - 1] + 2];
              coords[pIndex + 6] = coords[pIndex + 2];
              coords[pIndex + 7] = coords[pIndex + 3];
              coords[pIndex + 8] = coords[pIndex + 4];
              coords[pIndex + 9] = coords[pIndex + 5];
              coords[pIndex + 10] = coordsMap[ps[offset]];
              coords[pIndex + 11] = coordsMap[ps[offset] + 1];
              colors[cIndex + 9] = colors[cIndex + 3];
              colors[cIndex + 10] = colors[cIndex + 4];
              colors[cIndex + 11] = colors[cIndex + 5];
              colors[cIndex + 12] = colors[cIndex + 6];
              colors[cIndex + 13] = colors[cIndex + 7];
              colors[cIndex + 14] = colors[cIndex + 8];
              colors[cIndex + 15] = colorsMap[cs[offset]];
              colors[cIndex + 16] = colorsMap[cs[offset] + 1];
              colors[cIndex + 17] = colorsMap[cs[offset] + 2];
              pIndex += 12;
              cIndex += 18;
            }
          }

          break;

        case "triangles":
          for (var j = 0, jj = ps.length; j < jj; j++) {
            coords[pIndex] = coordsMap[ps[j]];
            coords[pIndex + 1] = coordsMap[ps[j] + 1];
            colors[cIndex] = colorsMap[cs[j]];
            colors[cIndex + 1] = colorsMap[cs[j] + 1];
            colors[cIndex + 2] = colorsMap[cs[j] + 2];
            pIndex += 2;
            cIndex += 3;
          }

          break;
      }
    }

    if (backgroundColor) {
      gl.clearColor(backgroundColor[0] / 255, backgroundColor[1] / 255, backgroundColor[2] / 255, 1.0);
    } else {
      gl.clearColor(0, 0, 0, 0);
    }

    gl.clear(gl.COLOR_BUFFER_BIT);
    var coordsBuffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, coordsBuffer);
    gl.bufferData(gl.ARRAY_BUFFER, coords, gl.STATIC_DRAW);
    gl.enableVertexAttribArray(cache.positionLocation);
    gl.vertexAttribPointer(cache.positionLocation, 2, gl.FLOAT, false, 0, 0);
    var colorsBuffer = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, colorsBuffer);
    gl.bufferData(gl.ARRAY_BUFFER, colors, gl.STATIC_DRAW);
    gl.enableVertexAttribArray(cache.colorLocation);
    gl.vertexAttribPointer(cache.colorLocation, 3, gl.UNSIGNED_BYTE, false, 0, 0);
    gl.uniform2f(cache.scaleLocation, context.scaleX, context.scaleY);
    gl.uniform2f(cache.offsetLocation, context.offsetX, context.offsetY);
    gl.drawArrays(gl.TRIANGLES, 0, count);
    gl.flush();
    gl.deleteBuffer(coordsBuffer);
    gl.deleteBuffer(colorsBuffer);
    return canvas;
  }

  return {
    tryInitGL() {
      try {
        generateGL();
        return !!currentGL;
      } catch (ex) {}

      return false;
    },

    composeSMask,
    drawFigures,

    cleanup() {
      if (smaskCache && smaskCache.canvas) {
        smaskCache.canvas.width = 0;
        smaskCache.canvas.height = 0;
      }

      if (figuresCache && figuresCache.canvas) {
        figuresCache.canvas.width = 0;
        figuresCache.canvas.height = 0;
      }

      smaskCache = null;
      figuresCache = null;
    }

  };
}();

/***/ }),
/* 19 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AnnotationLayer = void 0;

var _display_utils = __w_pdfjs_require__(1);

var _util = __w_pdfjs_require__(2);

var _annotation_storage = __w_pdfjs_require__(8);

class AnnotationElementFactory {
  static create(parameters) {
    const subtype = parameters.data.annotationType;

    switch (subtype) {
      case _util.AnnotationType.LINK:
        return new LinkAnnotationElement(parameters);

      case _util.AnnotationType.TEXT:
        return new TextAnnotationElement(parameters);

      case _util.AnnotationType.WIDGET:
        const fieldType = parameters.data.fieldType;

        switch (fieldType) {
          case "Tx":
            return new TextWidgetAnnotationElement(parameters);

          case "Btn":
            if (parameters.data.radioButton) {
              return new RadioButtonWidgetAnnotationElement(parameters);
            } else if (parameters.data.checkBox) {
              return new CheckboxWidgetAnnotationElement(parameters);
            }

            return new PushButtonWidgetAnnotationElement(parameters);

          case "Ch":
            return new ChoiceWidgetAnnotationElement(parameters);
        }

        return new WidgetAnnotationElement(parameters);

      case _util.AnnotationType.POPUP:
        return new PopupAnnotationElement(parameters);

      case _util.AnnotationType.FREETEXT:
        return new FreeTextAnnotationElement(parameters);

      case _util.AnnotationType.LINE:
        return new LineAnnotationElement(parameters);

      case _util.AnnotationType.SQUARE:
        return new SquareAnnotationElement(parameters);

      case _util.AnnotationType.CIRCLE:
        return new CircleAnnotationElement(parameters);

      case _util.AnnotationType.POLYLINE:
        return new PolylineAnnotationElement(parameters);

      case _util.AnnotationType.CARET:
        return new CaretAnnotationElement(parameters);

      case _util.AnnotationType.INK:
        return new InkAnnotationElement(parameters);

      case _util.AnnotationType.POLYGON:
        return new PolygonAnnotationElement(parameters);

      case _util.AnnotationType.HIGHLIGHT:
        return new HighlightAnnotationElement(parameters);

      case _util.AnnotationType.UNDERLINE:
        return new UnderlineAnnotationElement(parameters);

      case _util.AnnotationType.SQUIGGLY:
        return new SquigglyAnnotationElement(parameters);

      case _util.AnnotationType.STRIKEOUT:
        return new StrikeOutAnnotationElement(parameters);

      case _util.AnnotationType.STAMP:
        return new StampAnnotationElement(parameters);

      case _util.AnnotationType.FILEATTACHMENT:
        return new FileAttachmentAnnotationElement(parameters);

      default:
        return new AnnotationElement(parameters);
    }
  }

}

class AnnotationElement {
  constructor(parameters, isRenderable = false, ignoreBorder = false) {
    this.isRenderable = isRenderable;
    this.data = parameters.data;
    this.layer = parameters.layer;
    this.page = parameters.page;
    this.viewport = parameters.viewport;
    this.linkService = parameters.linkService;
    this.downloadManager = parameters.downloadManager;
    this.imageResourcesPath = parameters.imageResourcesPath;
    this.renderInteractiveForms = parameters.renderInteractiveForms;
    this.svgFactory = parameters.svgFactory;
    this.annotationStorage = parameters.annotationStorage;

    if (isRenderable) {
      this.container = this._createContainer(ignoreBorder);
    }
  }

  _createContainer(ignoreBorder = false) {
    const data = this.data,
          page = this.page,
          viewport = this.viewport;
    const container = document.createElement("section");
    let width = data.rect[2] - data.rect[0];
    let height = data.rect[3] - data.rect[1];
    container.setAttribute("data-annotation-id", data.id);

    const rect = _util.Util.normalizeRect([data.rect[0], page.view[3] - data.rect[1] + page.view[1], data.rect[2], page.view[3] - data.rect[3] + page.view[1]]);

    container.style.transform = `matrix(${viewport.transform.join(",")})`;
    container.style.transformOrigin = `-${rect[0]}px -${rect[1]}px`;

    if (!ignoreBorder && data.borderStyle.width > 0) {
      container.style.borderWidth = `${data.borderStyle.width}px`;

      if (data.borderStyle.style !== _util.AnnotationBorderStyleType.UNDERLINE) {
        width = width - 2 * data.borderStyle.width;
        height = height - 2 * data.borderStyle.width;
      }

      const horizontalRadius = data.borderStyle.horizontalCornerRadius;
      const verticalRadius = data.borderStyle.verticalCornerRadius;

      if (horizontalRadius > 0 || verticalRadius > 0) {
        const radius = `${horizontalRadius}px / ${verticalRadius}px`;
        container.style.borderRadius = radius;
      }

      switch (data.borderStyle.style) {
        case _util.AnnotationBorderStyleType.SOLID:
          container.style.borderStyle = "solid";
          break;

        case _util.AnnotationBorderStyleType.DASHED:
          container.style.borderStyle = "dashed";
          break;

        case _util.AnnotationBorderStyleType.BEVELED:
          (0, _util.warn)("Unimplemented border style: beveled");
          break;

        case _util.AnnotationBorderStyleType.INSET:
          (0, _util.warn)("Unimplemented border style: inset");
          break;

        case _util.AnnotationBorderStyleType.UNDERLINE:
          container.style.borderBottomStyle = "solid";
          break;

        default:
          break;
      }

      if (data.color) {
        container.style.borderColor = _util.Util.makeCssRgb(data.color[0] | 0, data.color[1] | 0, data.color[2] | 0);
      } else {
        container.style.borderWidth = 0;
      }
    }

    container.style.left = `${rect[0]}px`;
    container.style.top = `${rect[1]}px`;
    container.style.width = `${width}px`;
    container.style.height = `${height}px`;
    return container;
  }

  _createPopup(container, trigger, data) {
    if (!trigger) {
      trigger = document.createElement("div");
      trigger.style.height = container.style.height;
      trigger.style.width = container.style.width;
      container.appendChild(trigger);
    }

    const popupElement = new PopupElement({
      container,
      trigger,
      color: data.color,
      title: data.title,
      modificationDate: data.modificationDate,
      contents: data.contents,
      hideWrapper: true
    });
    const popup = popupElement.render();
    popup.style.left = container.style.width;
    container.appendChild(popup);
  }

  render() {
    (0, _util.unreachable)("Abstract method `AnnotationElement.render` called");
  }

}

class LinkAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.url || parameters.data.dest || parameters.data.action);
    super(parameters, isRenderable);
  }

  render() {
    this.container.className = "linkAnnotation";
    const {
      data,
      linkService
    } = this;
    const link = document.createElement("a");

    if (data.url) {
      (0, _display_utils.addLinkAttributes)(link, {
        url: data.url,
        target: data.newWindow ? _display_utils.LinkTarget.BLANK : linkService.externalLinkTarget,
        rel: linkService.externalLinkRel,
        enabled: linkService.externalLinkEnabled
      });
    } else if (data.action) {
      this._bindNamedAction(link, data.action);
    } else {
      this._bindLink(link, data.dest);
    }

    this.container.appendChild(link);
    return this.container;
  }

  _bindLink(link, destination) {
    link.href = this.linkService.getDestinationHash(destination);

    link.onclick = () => {
      if (destination) {
        this.linkService.navigateTo(destination);
      }

      return false;
    };

    if (destination) {
      link.className = "internalLink";
    }
  }

  _bindNamedAction(link, action) {
    link.href = this.linkService.getAnchorUrl("");

    link.onclick = () => {
      this.linkService.executeNamedAction(action);
      return false;
    };

    link.className = "internalLink";
  }

}

class TextAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable);
  }

  render() {
    this.container.className = "textAnnotation";
    const image = document.createElement("img");
    image.style.height = this.container.style.height;
    image.style.width = this.container.style.width;
    image.src = this.imageResourcesPath + "annotation-" + this.data.name.toLowerCase() + ".svg";
    image.alt = "[{{type}} Annotation]";
    image.dataset.l10nId = "text_annotation_type";
    image.dataset.l10nArgs = JSON.stringify({
      type: this.data.name
    });

    if (!this.data.hasPopup) {
      this._createPopup(this.container, image, this.data);
    }

    this.container.appendChild(image);
    return this.container;
  }

}

class WidgetAnnotationElement extends AnnotationElement {
  render() {
    return this.container;
  }

}

class TextWidgetAnnotationElement extends WidgetAnnotationElement {
  constructor(parameters) {
    const isRenderable = parameters.renderInteractiveForms || !parameters.data.hasAppearance && !!parameters.data.fieldValue;
    super(parameters, isRenderable);
  }

  render() {
    const TEXT_ALIGNMENT = ["left", "center", "right"];
    const storage = this.annotationStorage;
    const id = this.data.id;
    this.container.className = "textWidgetAnnotation";
    let element = null;

    if (this.renderInteractiveForms) {
      const textContent = storage.getOrCreateValue(id, this.data.fieldValue);

      if (this.data.multiLine) {
        element = document.createElement("textarea");
        element.textContent = textContent;
      } else {
        element = document.createElement("input");
        element.type = "text";
        element.setAttribute("value", textContent);
      }

      element.addEventListener("input", function (event) {
        storage.setValue(id, event.target.value);
      });
      element.disabled = this.data.readOnly;
      element.name = this.data.fieldName;

      if (this.data.maxLen !== null) {
        element.maxLength = this.data.maxLen;
      }

      if (this.data.comb) {
        const fieldWidth = this.data.rect[2] - this.data.rect[0];
        const combWidth = fieldWidth / this.data.maxLen;
        element.classList.add("comb");
        element.style.letterSpacing = `calc(${combWidth}px - 1ch)`;
      }
    } else {
      element = document.createElement("div");
      element.textContent = this.data.fieldValue;
      element.style.verticalAlign = "middle";
      element.style.display = "table-cell";
      let font = null;

      if (this.data.fontRefName && this.page.commonObjs.has(this.data.fontRefName)) {
        font = this.page.commonObjs.get(this.data.fontRefName);
      }

      this._setTextStyle(element, font);
    }

    if (this.data.textAlignment !== null) {
      element.style.textAlign = TEXT_ALIGNMENT[this.data.textAlignment];
    }

    this.container.appendChild(element);
    return this.container;
  }

  _setTextStyle(element, font) {
    const style = element.style;
    style.fontSize = `${this.data.fontSize}px`;
    style.direction = this.data.fontDirection < 0 ? "rtl" : "ltr";

    if (!font) {
      return;
    }

    let bold = "normal";

    if (font.black) {
      bold = "900";
    } else if (font.bold) {
      bold = "bold";
    }

    style.fontWeight = bold;
    style.fontStyle = font.italic ? "italic" : "normal";
    const fontFamily = font.loadedName ? `"${font.loadedName}", ` : "";
    const fallbackName = font.fallbackName || "Helvetica, sans-serif";
    style.fontFamily = fontFamily + fallbackName;
  }

}

class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement {
  constructor(parameters) {
    super(parameters, parameters.renderInteractiveForms);
  }

  render() {
    const storage = this.annotationStorage;
    const data = this.data;
    const id = data.id;
    const value = storage.getOrCreateValue(id, data.fieldValue && data.fieldValue !== "Off");
    this.container.className = "buttonWidgetAnnotation checkBox";
    const element = document.createElement("input");
    element.disabled = data.readOnly;
    element.type = "checkbox";
    element.name = this.data.fieldName;

    if (value) {
      element.setAttribute("checked", true);
    }

    element.addEventListener("change", function (event) {
      storage.setValue(id, event.target.checked);
    });
    this.container.appendChild(element);
    return this.container;
  }

}

class RadioButtonWidgetAnnotationElement extends WidgetAnnotationElement {
  constructor(parameters) {
    super(parameters, parameters.renderInteractiveForms);
  }

  render() {
    this.container.className = "buttonWidgetAnnotation radioButton";
    const storage = this.annotationStorage;
    const data = this.data;
    const id = data.id;
    const value = storage.getOrCreateValue(id, data.fieldValue === data.buttonValue);
    const element = document.createElement("input");
    element.disabled = data.readOnly;
    element.type = "radio";
    element.name = data.fieldName;

    if (value) {
      element.setAttribute("checked", true);
    }

    element.addEventListener("change", function (event) {
      const name = event.target.name;

      for (const radio of document.getElementsByName(name)) {
        if (radio !== event.target) {
          storage.setValue(radio.parentNode.getAttribute("data-annotation-id"), false);
        }
      }

      storage.setValue(id, event.target.checked);
    });
    this.container.appendChild(element);
    return this.container;
  }

}

class PushButtonWidgetAnnotationElement extends LinkAnnotationElement {
  render() {
    const container = super.render();
    container.className = "buttonWidgetAnnotation pushButton";
    return container;
  }

}

class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
  constructor(parameters) {
    super(parameters, parameters.renderInteractiveForms);
  }

  render() {
    this.container.className = "choiceWidgetAnnotation";
    const storage = this.annotationStorage;
    const id = this.data.id;
    storage.getOrCreateValue(id, this.data.fieldValue.length > 0 ? this.data.fieldValue[0] : null);
    const selectElement = document.createElement("select");
    selectElement.disabled = this.data.readOnly;
    selectElement.name = this.data.fieldName;

    if (!this.data.combo) {
      selectElement.size = this.data.options.length;

      if (this.data.multiSelect) {
        selectElement.multiple = true;
      }
    }

    for (const option of this.data.options) {
      const optionElement = document.createElement("option");
      optionElement.textContent = option.displayValue;
      optionElement.value = option.exportValue;

      if (this.data.fieldValue.includes(option.exportValue)) {
        optionElement.setAttribute("selected", true);
      }

      selectElement.appendChild(optionElement);
    }

    selectElement.addEventListener("input", function (event) {
      const options = event.target.options;
      const value = options[options.selectedIndex].value;
      storage.setValue(id, value);
    });
    this.container.appendChild(selectElement);
    return this.container;
  }

}

class PopupAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable);
  }

  render() {
    const IGNORE_TYPES = ["Line", "Square", "Circle", "PolyLine", "Polygon", "Ink"];
    this.container.className = "popupAnnotation";

    if (IGNORE_TYPES.includes(this.data.parentType)) {
      return this.container;
    }

    const selector = `[data-annotation-id="${this.data.parentId}"]`;
    const parentElement = this.layer.querySelector(selector);

    if (!parentElement) {
      return this.container;
    }

    const popup = new PopupElement({
      container: this.container,
      trigger: parentElement,
      color: this.data.color,
      title: this.data.title,
      modificationDate: this.data.modificationDate,
      contents: this.data.contents
    });
    const parentLeft = parseFloat(parentElement.style.left);
    const parentWidth = parseFloat(parentElement.style.width);
    this.container.style.transformOrigin = `-${parentLeft + parentWidth}px -${parentElement.style.top}`;
    this.container.style.left = `${parentLeft + parentWidth}px`;
    this.container.appendChild(popup.render());
    return this.container;
  }

}

class PopupElement {
  constructor(parameters) {
    this.container = parameters.container;
    this.trigger = parameters.trigger;
    this.color = parameters.color;
    this.title = parameters.title;
    this.modificationDate = parameters.modificationDate;
    this.contents = parameters.contents;
    this.hideWrapper = parameters.hideWrapper || false;
    this.pinned = false;
  }

  render() {
    const BACKGROUND_ENLIGHT = 0.7;
    const wrapper = document.createElement("div");
    wrapper.className = "popupWrapper";
    this.hideElement = this.hideWrapper ? wrapper : this.container;
    this.hideElement.setAttribute("hidden", true);
    const popup = document.createElement("div");
    popup.className = "popup";
    const color = this.color;

    if (color) {
      const r = BACKGROUND_ENLIGHT * (255 - color[0]) + color[0];
      const g = BACKGROUND_ENLIGHT * (255 - color[1]) + color[1];
      const b = BACKGROUND_ENLIGHT * (255 - color[2]) + color[2];
      popup.style.backgroundColor = _util.Util.makeCssRgb(r | 0, g | 0, b | 0);
    }

    const title = document.createElement("h1");
    title.textContent = this.title;
    popup.appendChild(title);

    const dateObject = _display_utils.PDFDateString.toDateObject(this.modificationDate);

    if (dateObject) {
      const modificationDate = document.createElement("span");
      modificationDate.textContent = "{{date}}, {{time}}";
      modificationDate.dataset.l10nId = "annotation_date_string";
      modificationDate.dataset.l10nArgs = JSON.stringify({
        date: dateObject.toLocaleDateString(),
        time: dateObject.toLocaleTimeString()
      });
      popup.appendChild(modificationDate);
    }

    const contents = this._formatContents(this.contents);

    popup.appendChild(contents);
    this.trigger.addEventListener("click", this._toggle.bind(this));
    this.trigger.addEventListener("mouseover", this._show.bind(this, false));
    this.trigger.addEventListener("mouseout", this._hide.bind(this, false));
    popup.addEventListener("click", this._hide.bind(this, true));
    wrapper.appendChild(popup);
    return wrapper;
  }

  _formatContents(contents) {
    const p = document.createElement("p");
    const lines = contents.split(/(?:\r\n?|\n)/);

    for (let i = 0, ii = lines.length; i < ii; ++i) {
      const line = lines[i];
      p.appendChild(document.createTextNode(line));

      if (i < ii - 1) {
        p.appendChild(document.createElement("br"));
      }
    }

    return p;
  }

  _toggle() {
    if (this.pinned) {
      this._hide(true);
    } else {
      this._show(true);
    }
  }

  _show(pin = false) {
    if (pin) {
      this.pinned = true;
    }

    if (this.hideElement.hasAttribute("hidden")) {
      this.hideElement.removeAttribute("hidden");
      this.container.style.zIndex += 1;
    }
  }

  _hide(unpin = true) {
    if (unpin) {
      this.pinned = false;
    }

    if (!this.hideElement.hasAttribute("hidden") && !this.pinned) {
      this.hideElement.setAttribute("hidden", true);
      this.container.style.zIndex -= 1;
    }
  }

}

class FreeTextAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "freeTextAnnotation";

    if (!this.data.hasPopup) {
      this._createPopup(this.container, null, this.data);
    }

    return this.container;
  }

}

class LineAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "lineAnnotation";
    const data = this.data;
    const width = data.rect[2] - data.rect[0];
    const height = data.rect[3] - data.rect[1];
    const svg = this.svgFactory.create(width, height);
    const line = this.svgFactory.createElement("svg:line");
    line.setAttribute("x1", data.rect[2] - data.lineCoordinates[0]);
    line.setAttribute("y1", data.rect[3] - data.lineCoordinates[1]);
    line.setAttribute("x2", data.rect[2] - data.lineCoordinates[2]);
    line.setAttribute("y2", data.rect[3] - data.lineCoordinates[3]);
    line.setAttribute("stroke-width", data.borderStyle.width || 1);
    line.setAttribute("stroke", "transparent");
    svg.appendChild(line);
    this.container.append(svg);

    this._createPopup(this.container, line, data);

    return this.container;
  }

}

class SquareAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "squareAnnotation";
    const data = this.data;
    const width = data.rect[2] - data.rect[0];
    const height = data.rect[3] - data.rect[1];
    const svg = this.svgFactory.create(width, height);
    const borderWidth = data.borderStyle.width;
    const square = this.svgFactory.createElement("svg:rect");
    square.setAttribute("x", borderWidth / 2);
    square.setAttribute("y", borderWidth / 2);
    square.setAttribute("width", width - borderWidth);
    square.setAttribute("height", height - borderWidth);
    square.setAttribute("stroke-width", borderWidth || 1);
    square.setAttribute("stroke", "transparent");
    square.setAttribute("fill", "none");
    svg.appendChild(square);
    this.container.append(svg);

    this._createPopup(this.container, square, data);

    return this.container;
  }

}

class CircleAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "circleAnnotation";
    const data = this.data;
    const width = data.rect[2] - data.rect[0];
    const height = data.rect[3] - data.rect[1];
    const svg = this.svgFactory.create(width, height);
    const borderWidth = data.borderStyle.width;
    const circle = this.svgFactory.createElement("svg:ellipse");
    circle.setAttribute("cx", width / 2);
    circle.setAttribute("cy", height / 2);
    circle.setAttribute("rx", width / 2 - borderWidth / 2);
    circle.setAttribute("ry", height / 2 - borderWidth / 2);
    circle.setAttribute("stroke-width", borderWidth || 1);
    circle.setAttribute("stroke", "transparent");
    circle.setAttribute("fill", "none");
    svg.appendChild(circle);
    this.container.append(svg);

    this._createPopup(this.container, circle, data);

    return this.container;
  }

}

class PolylineAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
    this.containerClassName = "polylineAnnotation";
    this.svgElementName = "svg:polyline";
  }

  render() {
    this.container.className = this.containerClassName;
    const data = this.data;
    const width = data.rect[2] - data.rect[0];
    const height = data.rect[3] - data.rect[1];
    const svg = this.svgFactory.create(width, height);
    let points = [];

    for (const coordinate of data.vertices) {
      const x = coordinate.x - data.rect[0];
      const y = data.rect[3] - coordinate.y;
      points.push(x + "," + y);
    }

    points = points.join(" ");
    const polyline = this.svgFactory.createElement(this.svgElementName);
    polyline.setAttribute("points", points);
    polyline.setAttribute("stroke-width", data.borderStyle.width || 1);
    polyline.setAttribute("stroke", "transparent");
    polyline.setAttribute("fill", "none");
    svg.appendChild(polyline);
    this.container.append(svg);

    this._createPopup(this.container, polyline, data);

    return this.container;
  }

}

class PolygonAnnotationElement extends PolylineAnnotationElement {
  constructor(parameters) {
    super(parameters);
    this.containerClassName = "polygonAnnotation";
    this.svgElementName = "svg:polygon";
  }

}

class CaretAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "caretAnnotation";

    if (!this.data.hasPopup) {
      this._createPopup(this.container, null, this.data);
    }

    return this.container;
  }

}

class InkAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
    this.containerClassName = "inkAnnotation";
    this.svgElementName = "svg:polyline";
  }

  render() {
    this.container.className = this.containerClassName;
    const data = this.data;
    const width = data.rect[2] - data.rect[0];
    const height = data.rect[3] - data.rect[1];
    const svg = this.svgFactory.create(width, height);

    for (const inkList of data.inkLists) {
      let points = [];

      for (const coordinate of inkList) {
        const x = coordinate.x - data.rect[0];
        const y = data.rect[3] - coordinate.y;
        points.push(`${x},${y}`);
      }

      points = points.join(" ");
      const polyline = this.svgFactory.createElement(this.svgElementName);
      polyline.setAttribute("points", points);
      polyline.setAttribute("stroke-width", data.borderStyle.width || 1);
      polyline.setAttribute("stroke", "transparent");
      polyline.setAttribute("fill", "none");

      this._createPopup(this.container, polyline, data);

      svg.appendChild(polyline);
    }

    this.container.append(svg);
    return this.container;
  }

}

class HighlightAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "highlightAnnotation";

    if (!this.data.hasPopup) {
      this._createPopup(this.container, null, this.data);
    }

    return this.container;
  }

}

class UnderlineAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "underlineAnnotation";

    if (!this.data.hasPopup) {
      this._createPopup(this.container, null, this.data);
    }

    return this.container;
  }

}

class SquigglyAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "squigglyAnnotation";

    if (!this.data.hasPopup) {
      this._createPopup(this.container, null, this.data);
    }

    return this.container;
  }

}

class StrikeOutAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "strikeoutAnnotation";

    if (!this.data.hasPopup) {
      this._createPopup(this.container, null, this.data);
    }

    return this.container;
  }

}

class StampAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents);
    super(parameters, isRenderable, true);
  }

  render() {
    this.container.className = "stampAnnotation";

    if (!this.data.hasPopup) {
      this._createPopup(this.container, null, this.data);
    }

    return this.container;
  }

}

class FileAttachmentAnnotationElement extends AnnotationElement {
  constructor(parameters) {
    super(parameters, true);
    const {
      filename,
      content
    } = this.data.file;
    this.filename = (0, _display_utils.getFilenameFromUrl)(filename);
    this.content = content;

    if (this.linkService.eventBus) {
      this.linkService.eventBus.dispatch("fileattachmentannotation", {
        source: this,
        id: (0, _util.stringToPDFString)(filename),
        filename,
        content
      });
    }
  }

  render() {
    this.container.className = "fileAttachmentAnnotation";
    const trigger = document.createElement("div");
    trigger.style.height = this.container.style.height;
    trigger.style.width = this.container.style.width;
    trigger.addEventListener("dblclick", this._download.bind(this));

    if (!this.data.hasPopup && (this.data.title || this.data.contents)) {
      this._createPopup(this.container, trigger, this.data);
    }

    this.container.appendChild(trigger);
    return this.container;
  }

  _download() {
    if (!this.downloadManager) {
      (0, _util.warn)("Download cannot be started due to unavailable download manager");
      return;
    }

    this.downloadManager.downloadData(this.content, this.filename, "");
  }

}

class AnnotationLayer {
  static render(parameters) {
    const sortedAnnotations = [],
          popupAnnotations = [];

    for (const data of parameters.annotations) {
      if (!data) {
        continue;
      }

      if (data.annotationType === _util.AnnotationType.POPUP) {
        popupAnnotations.push(data);
        continue;
      }

      sortedAnnotations.push(data);
    }

    if (popupAnnotations.length) {
      sortedAnnotations.push(...popupAnnotations);
    }

    for (const data of sortedAnnotations) {
      const element = AnnotationElementFactory.create({
        data,
        layer: parameters.div,
        page: parameters.page,
        viewport: parameters.viewport,
        linkService: parameters.linkService,
        downloadManager: parameters.downloadManager,
        imageResourcesPath: parameters.imageResourcesPath || "",
        renderInteractiveForms: typeof parameters.renderInteractiveForms === "boolean" ? parameters.renderInteractiveForms : true,
        svgFactory: new _display_utils.DOMSVGFactory(),
        annotationStorage: parameters.annotationStorage || new _annotation_storage.AnnotationStorage()
      });

      if (element.isRenderable) {
        parameters.div.appendChild(element.render());
      }
    }
  }

  static update(parameters) {
    for (const data of parameters.annotations) {
      const element = parameters.div.querySelector(`[data-annotation-id="${data.id}"]`);

      if (element) {
        element.style.transform = `matrix(${parameters.viewport.transform.join(",")})`;
      }
    }

    parameters.div.removeAttribute("hidden");
  }

}

exports.AnnotationLayer = AnnotationLayer;

/***/ }),
/* 20 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.renderTextLayer = void 0;

var _util = __w_pdfjs_require__(2);

var renderTextLayer = function renderTextLayerClosure() {
  var MAX_TEXT_DIVS_TO_RENDER = 100000;
  var NonWhitespaceRegexp = /\S/;

  function isAllWhitespace(str) {
    return !NonWhitespaceRegexp.test(str);
  }

  function appendText(task, geom, styles) {
    var textDiv = document.createElement("span");
    var textDivProperties = {
      angle: 0,
      canvasWidth: 0,
      isWhitespace: false,
      originalTransform: null,
      paddingBottom: 0,
      paddingLeft: 0,
      paddingRight: 0,
      paddingTop: 0,
      scale: 1
    };

    task._textDivs.push(textDiv);

    if (isAllWhitespace(geom.str)) {
      textDivProperties.isWhitespace = true;

      task._textDivProperties.set(textDiv, textDivProperties);

      return;
    }

    var tx = _util.Util.transform(task._viewport.transform, geom.transform);

    var angle = Math.atan2(tx[1], tx[0]);
    var style = styles[geom.fontName];

    if (style.vertical) {
      angle += Math.PI / 2;
    }

    var fontHeight = Math.sqrt(tx[2] * tx[2] + tx[3] * tx[3]);
    var fontAscent = fontHeight;

    if (style.ascent) {
      fontAscent = style.ascent * fontAscent;
    } else if (style.descent) {
      fontAscent = (1 + style.descent) * fontAscent;
    }

    let left, top;

    if (angle === 0) {
      left = tx[4];
      top = tx[5] - fontAscent;
    } else {
      left = tx[4] + fontAscent * Math.sin(angle);
      top = tx[5] - fontAscent * Math.cos(angle);
    }

    textDiv.style.left = `${left}px`;
    textDiv.style.top = `${top}px`;
    textDiv.style.fontSize = `${fontHeight}px`;
    textDiv.style.fontFamily = style.fontFamily;
    textDiv.textContent = geom.str;

    if (task._fontInspectorEnabled) {
      textDiv.dataset.fontName = geom.fontName;
    }

    if (angle !== 0) {
      textDivProperties.angle = angle * (180 / Math.PI);
    }

    let shouldScaleText = false;

    if (geom.str.length > 1) {
      shouldScaleText = true;
    } else if (geom.transform[0] !== geom.transform[3]) {
      const absScaleX = Math.abs(geom.transform[0]),
            absScaleY = Math.abs(geom.transform[3]);

      if (absScaleX !== absScaleY && Math.max(absScaleX, absScaleY) / Math.min(absScaleX, absScaleY) > 1.5) {
        shouldScaleText = true;
      }
    }

    if (shouldScaleText) {
      if (style.vertical) {
        textDivProperties.canvasWidth = geom.height * task._viewport.scale;
      } else {
        textDivProperties.canvasWidth = geom.width * task._viewport.scale;
      }
    }

    task._textDivProperties.set(textDiv, textDivProperties);

    if (task._textContentStream) {
      task._layoutText(textDiv);
    }

    if (task._enhanceTextSelection) {
      var angleCos = 1,
          angleSin = 0;

      if (angle !== 0) {
        angleCos = Math.cos(angle);
        angleSin = Math.sin(angle);
      }

      var divWidth = (style.vertical ? geom.height : geom.width) * task._viewport.scale;
      var divHeight = fontHeight;
      var m, b;

      if (angle !== 0) {
        m = [angleCos, angleSin, -angleSin, angleCos, left, top];
        b = _util.Util.getAxialAlignedBoundingBox([0, 0, divWidth, divHeight], m);
      } else {
        b = [left, top, left + divWidth, top + divHeight];
      }

      task._bounds.push({
        left: b[0],
        top: b[1],
        right: b[2],
        bottom: b[3],
        div: textDiv,
        size: [divWidth, divHeight],
        m
      });
    }
  }

  function render(task) {
    if (task._canceled) {
      return;
    }

    var textDivs = task._textDivs;
    var capability = task._capability;
    var textDivsLength = textDivs.length;

    if (textDivsLength > MAX_TEXT_DIVS_TO_RENDER) {
      task._renderingDone = true;
      capability.resolve();
      return;
    }

    if (!task._textContentStream) {
      for (var i = 0; i < textDivsLength; i++) {
        task._layoutText(textDivs[i]);
      }
    }

    task._renderingDone = true;
    capability.resolve();
  }

  function findPositiveMin(ts, offset, count) {
    let result = 0;

    for (let i = 0; i < count; i++) {
      const t = ts[offset++];

      if (t > 0) {
        result = result ? Math.min(t, result) : t;
      }
    }

    return result;
  }

  function expand(task) {
    var bounds = task._bounds;
    var viewport = task._viewport;
    var expanded = expandBounds(viewport.width, viewport.height, bounds);

    for (var i = 0; i < expanded.length; i++) {
      var div = bounds[i].div;

      var divProperties = task._textDivProperties.get(div);

      if (divProperties.angle === 0) {
        divProperties.paddingLeft = bounds[i].left - expanded[i].left;
        divProperties.paddingTop = bounds[i].top - expanded[i].top;
        divProperties.paddingRight = expanded[i].right - bounds[i].right;
        divProperties.paddingBottom = expanded[i].bottom - bounds[i].bottom;

        task._textDivProperties.set(div, divProperties);

        continue;
      }

      var e = expanded[i],
          b = bounds[i];
      var m = b.m,
          c = m[0],
          s = m[1];
      var points = [[0, 0], [0, b.size[1]], [b.size[0], 0], b.size];
      var ts = new Float64Array(64);
      points.forEach(function (p, j) {
        var t = _util.Util.applyTransform(p, m);

        ts[j + 0] = c && (e.left - t[0]) / c;
        ts[j + 4] = s && (e.top - t[1]) / s;
        ts[j + 8] = c && (e.right - t[0]) / c;
        ts[j + 12] = s && (e.bottom - t[1]) / s;
        ts[j + 16] = s && (e.left - t[0]) / -s;
        ts[j + 20] = c && (e.top - t[1]) / c;
        ts[j + 24] = s && (e.right - t[0]) / -s;
        ts[j + 28] = c && (e.bottom - t[1]) / c;
        ts[j + 32] = c && (e.left - t[0]) / -c;
        ts[j + 36] = s && (e.top - t[1]) / -s;
        ts[j + 40] = c && (e.right - t[0]) / -c;
        ts[j + 44] = s && (e.bottom - t[1]) / -s;
        ts[j + 48] = s && (e.left - t[0]) / s;
        ts[j + 52] = c && (e.top - t[1]) / -c;
        ts[j + 56] = s && (e.right - t[0]) / s;
        ts[j + 60] = c && (e.bottom - t[1]) / -c;
      });
      var boxScale = 1 + Math.min(Math.abs(c), Math.abs(s));
      divProperties.paddingLeft = findPositiveMin(ts, 32, 16) / boxScale;
      divProperties.paddingTop = findPositiveMin(ts, 48, 16) / boxScale;
      divProperties.paddingRight = findPositiveMin(ts, 0, 16) / boxScale;
      divProperties.paddingBottom = findPositiveMin(ts, 16, 16) / boxScale;

      task._textDivProperties.set(div, divProperties);
    }
  }

  function expandBounds(width, height, boxes) {
    var bounds = boxes.map(function (box, i) {
      return {
        x1: box.left,
        y1: box.top,
        x2: box.right,
        y2: box.bottom,
        index: i,
        x1New: undefined,
        x2New: undefined
      };
    });
    expandBoundsLTR(width, bounds);
    var expanded = new Array(boxes.length);
    bounds.forEach(function (b) {
      var i = b.index;
      expanded[i] = {
        left: b.x1New,
        top: 0,
        right: b.x2New,
        bottom: 0
      };
    });
    boxes.map(function (box, i) {
      var e = expanded[i],
          b = bounds[i];
      b.x1 = box.top;
      b.y1 = width - e.right;
      b.x2 = box.bottom;
      b.y2 = width - e.left;
      b.index = i;
      b.x1New = undefined;
      b.x2New = undefined;
    });
    expandBoundsLTR(height, bounds);
    bounds.forEach(function (b) {
      var i = b.index;
      expanded[i].top = b.x1New;
      expanded[i].bottom = b.x2New;
    });
    return expanded;
  }

  function expandBoundsLTR(width, bounds) {
    bounds.sort(function (a, b) {
      return a.x1 - b.x1 || a.index - b.index;
    });
    var fakeBoundary = {
      x1: -Infinity,
      y1: -Infinity,
      x2: 0,
      y2: Infinity,
      index: -1,
      x1New: 0,
      x2New: 0
    };
    var horizon = [{
      start: -Infinity,
      end: Infinity,
      boundary: fakeBoundary
    }];
    bounds.forEach(function (boundary) {
      var i = 0;

      while (i < horizon.length && horizon[i].end <= boundary.y1) {
        i++;
      }

      var j = horizon.length - 1;

      while (j >= 0 && horizon[j].start >= boundary.y2) {
        j--;
      }

      var horizonPart, affectedBoundary;
      var q,
          k,
          maxXNew = -Infinity;

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;
        var xNew;

        if (affectedBoundary.x2 > boundary.x1) {
          xNew = affectedBoundary.index > boundary.index ? affectedBoundary.x1New : boundary.x1;
        } else if (affectedBoundary.x2New === undefined) {
          xNew = (affectedBoundary.x2 + boundary.x1) / 2;
        } else {
          xNew = affectedBoundary.x2New;
        }

        if (xNew > maxXNew) {
          maxXNew = xNew;
        }
      }

      boundary.x1New = maxXNew;

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;

        if (affectedBoundary.x2New === undefined) {
          if (affectedBoundary.x2 > boundary.x1) {
            if (affectedBoundary.index > boundary.index) {
              affectedBoundary.x2New = affectedBoundary.x2;
            }
          } else {
            affectedBoundary.x2New = maxXNew;
          }
        } else if (affectedBoundary.x2New > maxXNew) {
          affectedBoundary.x2New = Math.max(maxXNew, affectedBoundary.x2);
        }
      }

      var changedHorizon = [],
          lastBoundary = null;

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;
        var useBoundary = affectedBoundary.x2 > boundary.x2 ? affectedBoundary : boundary;

        if (lastBoundary === useBoundary) {
          changedHorizon[changedHorizon.length - 1].end = horizonPart.end;
        } else {
          changedHorizon.push({
            start: horizonPart.start,
            end: horizonPart.end,
            boundary: useBoundary
          });
          lastBoundary = useBoundary;
        }
      }

      if (horizon[i].start < boundary.y1) {
        changedHorizon[0].start = boundary.y1;
        changedHorizon.unshift({
          start: horizon[i].start,
          end: boundary.y1,
          boundary: horizon[i].boundary
        });
      }

      if (boundary.y2 < horizon[j].end) {
        changedHorizon[changedHorizon.length - 1].end = boundary.y2;
        changedHorizon.push({
          start: boundary.y2,
          end: horizon[j].end,
          boundary: horizon[j].boundary
        });
      }

      for (q = i; q <= j; q++) {
        horizonPart = horizon[q];
        affectedBoundary = horizonPart.boundary;

        if (affectedBoundary.x2New !== undefined) {
          continue;
        }

        var used = false;

        for (k = i - 1; !used && k >= 0 && horizon[k].start >= affectedBoundary.y1; k--) {
          used = horizon[k].boundary === affectedBoundary;
        }

        for (k = j + 1; !used && k < horizon.length && horizon[k].end <= affectedBoundary.y2; k++) {
          used = horizon[k].boundary === affectedBoundary;
        }

        for (k = 0; !used && k < changedHorizon.length; k++) {
          used = changedHorizon[k].boundary === affectedBoundary;
        }

        if (!used) {
          affectedBoundary.x2New = maxXNew;
        }
      }

      Array.prototype.splice.apply(horizon, [i, j - i + 1].concat(changedHorizon));
    });
    horizon.forEach(function (horizonPart) {
      var affectedBoundary = horizonPart.boundary;

      if (affectedBoundary.x2New === undefined) {
        affectedBoundary.x2New = Math.max(width, affectedBoundary.x2);
      }
    });
  }

  function TextLayerRenderTask({
    textContent,
    textContentStream,
    container,
    viewport,
    textDivs,
    textContentItemsStr,
    enhanceTextSelection
  }) {
    this._textContent = textContent;
    this._textContentStream = textContentStream;
    this._container = container;
    this._document = container.ownerDocument;
    this._viewport = viewport;
    this._textDivs = textDivs || [];
    this._textContentItemsStr = textContentItemsStr || [];
    this._enhanceTextSelection = !!enhanceTextSelection;
    this._fontInspectorEnabled = !!(globalThis.FontInspector && globalThis.FontInspector.enabled);
    this._reader = null;
    this._layoutTextLastFontSize = null;
    this._layoutTextLastFontFamily = null;
    this._layoutTextCtx = null;
    this._textDivProperties = new WeakMap();
    this._renderingDone = false;
    this._canceled = false;
    this._capability = (0, _util.createPromiseCapability)();
    this._renderTimer = null;
    this._bounds = [];

    this._capability.promise.finally(() => {
      if (this._layoutTextCtx) {
        this._layoutTextCtx.canvas.width = 0;
        this._layoutTextCtx.canvas.height = 0;
        this._layoutTextCtx = null;
      }
    }).catch(() => {});
  }

  TextLayerRenderTask.prototype = {
    get promise() {
      return this._capability.promise;
    },

    cancel: function TextLayer_cancel() {
      this._canceled = true;

      if (this._reader) {
        this._reader.cancel(new _util.AbortException("TextLayer task cancelled."));

        this._reader = null;
      }

      if (this._renderTimer !== null) {
        clearTimeout(this._renderTimer);
        this._renderTimer = null;
      }

      this._capability.reject(new Error("TextLayer task cancelled."));
    },

    _processItems(items, styleCache) {
      for (let i = 0, len = items.length; i < len; i++) {
        this._textContentItemsStr.push(items[i].str);

        appendText(this, items[i], styleCache);
      }
    },

    _layoutText(textDiv) {
      const textDivProperties = this._textDivProperties.get(textDiv);

      if (textDivProperties.isWhitespace) {
        return;
      }

      let transform = "";

      if (textDivProperties.canvasWidth !== 0) {
        const {
          fontSize,
          fontFamily
        } = textDiv.style;

        if (fontSize !== this._layoutTextLastFontSize || fontFamily !== this._layoutTextLastFontFamily) {
          this._layoutTextCtx.font = `${fontSize} ${fontFamily}`;
          this._layoutTextLastFontSize = fontSize;
          this._layoutTextLastFontFamily = fontFamily;
        }

        const {
          width
        } = this._layoutTextCtx.measureText(textDiv.textContent);

        if (width > 0) {
          textDivProperties.scale = textDivProperties.canvasWidth / width;
          transform = `scaleX(${textDivProperties.scale})`;
        }
      }

      if (textDivProperties.angle !== 0) {
        transform = `rotate(${textDivProperties.angle}deg) ${transform}`;
      }

      if (transform.length > 0) {
        if (this._enhanceTextSelection) {
          textDivProperties.originalTransform = transform;
        }

        textDiv.style.transform = transform;
      }

      this._textDivProperties.set(textDiv, textDivProperties);

      this._container.appendChild(textDiv);
    },

    _render: function TextLayer_render(timeout) {
      const capability = (0, _util.createPromiseCapability)();
      let styleCache = Object.create(null);

      const canvas = this._document.createElement("canvas");

      canvas.mozOpaque = true;
      this._layoutTextCtx = canvas.getContext("2d", {
        alpha: false
      });

      if (this._textContent) {
        const textItems = this._textContent.items;
        const textStyles = this._textContent.styles;

        this._processItems(textItems, textStyles);

        capability.resolve();
      } else if (this._textContentStream) {
        const pump = () => {
          this._reader.read().then(({
            value,
            done
          }) => {
            if (done) {
              capability.resolve();
              return;
            }

            Object.assign(styleCache, value.styles);

            this._processItems(value.items, styleCache);

            pump();
          }, capability.reject);
        };

        this._reader = this._textContentStream.getReader();
        pump();
      } else {
        throw new Error('Neither "textContent" nor "textContentStream"' + " parameters specified.");
      }

      capability.promise.then(() => {
        styleCache = null;

        if (!timeout) {
          render(this);
        } else {
          this._renderTimer = setTimeout(() => {
            render(this);
            this._renderTimer = null;
          }, timeout);
        }
      }, this._capability.reject);
    },
    expandTextDivs: function TextLayer_expandTextDivs(expandDivs) {
      if (!this._enhanceTextSelection || !this._renderingDone) {
        return;
      }

      if (this._bounds !== null) {
        expand(this);
        this._bounds = null;
      }

      const transformBuf = [],
            paddingBuf = [];

      for (var i = 0, ii = this._textDivs.length; i < ii; i++) {
        const div = this._textDivs[i];

        const divProps = this._textDivProperties.get(div);

        if (divProps.isWhitespace) {
          continue;
        }

        if (expandDivs) {
          transformBuf.length = 0;
          paddingBuf.length = 0;

          if (divProps.originalTransform) {
            transformBuf.push(divProps.originalTransform);
          }

          if (divProps.paddingTop > 0) {
            paddingBuf.push(`${divProps.paddingTop}px`);
            transformBuf.push(`translateY(${-divProps.paddingTop}px)`);
          } else {
            paddingBuf.push(0);
          }

          if (divProps.paddingRight > 0) {
            paddingBuf.push(`${divProps.paddingRight / divProps.scale}px`);
          } else {
            paddingBuf.push(0);
          }

          if (divProps.paddingBottom > 0) {
            paddingBuf.push(`${divProps.paddingBottom}px`);
          } else {
            paddingBuf.push(0);
          }

          if (divProps.paddingLeft > 0) {
            paddingBuf.push(`${divProps.paddingLeft / divProps.scale}px`);
            transformBuf.push(`translateX(${-divProps.paddingLeft / divProps.scale}px)`);
          } else {
            paddingBuf.push(0);
          }

          div.style.padding = paddingBuf.join(" ");

          if (transformBuf.length) {
            div.style.transform = transformBuf.join(" ");
          }
        } else {
          div.style.padding = null;
          div.style.transform = divProps.originalTransform;
        }
      }
    }
  };

  function renderTextLayer(renderParameters) {
    var task = new TextLayerRenderTask({
      textContent: renderParameters.textContent,
      textContentStream: renderParameters.textContentStream,
      container: renderParameters.container,
      viewport: renderParameters.viewport,
      textDivs: renderParameters.textDivs,
      textContentItemsStr: renderParameters.textContentItemsStr,
      enhanceTextSelection: renderParameters.enhanceTextSelection
    });

    task._render(renderParameters.timeout);

    return task;
  }

  return renderTextLayer;
}();

exports.renderTextLayer = renderTextLayer;

/***/ }),
/* 21 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SVGGraphics = void 0;

var _util = __w_pdfjs_require__(2);

var _display_utils = __w_pdfjs_require__(1);

var _is_node = __w_pdfjs_require__(4);

let SVGGraphics = function () {
  throw new Error("Not implemented: SVGGraphics");
};

exports.SVGGraphics = SVGGraphics;
{
  const SVG_DEFAULTS = {
    fontStyle: "normal",
    fontWeight: "normal",
    fillColor: "#000000"
  };
  const XML_NS = "http://www.w3.org/XML/1998/namespace";
  const XLINK_NS = "http://www.w3.org/1999/xlink";
  const LINE_CAP_STYLES = ["butt", "round", "square"];
  const LINE_JOIN_STYLES = ["miter", "round", "bevel"];

  const convertImgDataToPng = function () {
    const PNG_HEADER = new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
    const CHUNK_WRAPPER_SIZE = 12;
    const crcTable = new Int32Array(256);

    for (let i = 0; i < 256; i++) {
      let c = i;

      for (let h = 0; h < 8; h++) {
        if (c & 1) {
          c = 0xedb88320 ^ c >> 1 & 0x7fffffff;
        } else {
          c = c >> 1 & 0x7fffffff;
        }
      }

      crcTable[i] = c;
    }

    function crc32(data, start, end) {
      let crc = -1;

      for (let i = start; i < end; i++) {
        const a = (crc ^ data[i]) & 0xff;
        const b = crcTable[a];
        crc = crc >>> 8 ^ b;
      }

      return crc ^ -1;
    }

    function writePngChunk(type, body, data, offset) {
      let p = offset;
      const len = body.length;
      data[p] = len >> 24 & 0xff;
      data[p + 1] = len >> 16 & 0xff;
      data[p + 2] = len >> 8 & 0xff;
      data[p + 3] = len & 0xff;
      p += 4;
      data[p] = type.charCodeAt(0) & 0xff;
      data[p + 1] = type.charCodeAt(1) & 0xff;
      data[p + 2] = type.charCodeAt(2) & 0xff;
      data[p + 3] = type.charCodeAt(3) & 0xff;
      p += 4;
      data.set(body, p);
      p += body.length;
      const crc = crc32(data, offset + 4, p);
      data[p] = crc >> 24 & 0xff;
      data[p + 1] = crc >> 16 & 0xff;
      data[p + 2] = crc >> 8 & 0xff;
      data[p + 3] = crc & 0xff;
    }

    function adler32(data, start, end) {
      let a = 1;
      let b = 0;

      for (let i = start; i < end; ++i) {
        a = (a + (data[i] & 0xff)) % 65521;
        b = (b + a) % 65521;
      }

      return b << 16 | a;
    }

    function deflateSync(literals) {
      if (!_is_node.isNodeJS) {
        return deflateSyncUncompressed(literals);
      }

      try {
        let input;

        if (parseInt(process.versions.node) >= 8) {
          input = literals;
        } else {
          input = Buffer.from(literals);
        }

        const output = __webpack_require__(2118).deflateSync(input, {
          level: 9
        });

        return output instanceof Uint8Array ? output : new Uint8Array(output);
      } catch (e) {
        (0, _util.warn)("Not compressing PNG because zlib.deflateSync is unavailable: " + e);
      }

      return deflateSyncUncompressed(literals);
    }

    function deflateSyncUncompressed(literals) {
      let len = literals.length;
      const maxBlockLength = 0xffff;
      const deflateBlocks = Math.ceil(len / maxBlockLength);
      const idat = new Uint8Array(2 + len + deflateBlocks * 5 + 4);
      let pi = 0;
      idat[pi++] = 0x78;
      idat[pi++] = 0x9c;
      let pos = 0;

      while (len > maxBlockLength) {
        idat[pi++] = 0x00;
        idat[pi++] = 0xff;
        idat[pi++] = 0xff;
        idat[pi++] = 0x00;
        idat[pi++] = 0x00;
        idat.set(literals.subarray(pos, pos + maxBlockLength), pi);
        pi += maxBlockLength;
        pos += maxBlockLength;
        len -= maxBlockLength;
      }

      idat[pi++] = 0x01;
      idat[pi++] = len & 0xff;
      idat[pi++] = len >> 8 & 0xff;
      idat[pi++] = ~len & 0xffff & 0xff;
      idat[pi++] = (~len & 0xffff) >> 8 & 0xff;
      idat.set(literals.subarray(pos), pi);
      pi += literals.length - pos;
      const adler = adler32(literals, 0, literals.length);
      idat[pi++] = adler >> 24 & 0xff;
      idat[pi++] = adler >> 16 & 0xff;
      idat[pi++] = adler >> 8 & 0xff;
      idat[pi++] = adler & 0xff;
      return idat;
    }

    function encode(imgData, kind, forceDataSchema, isMask) {
      const width = imgData.width;
      const height = imgData.height;
      let bitDepth, colorType, lineSize;
      const bytes = imgData.data;

      switch (kind) {
        case _util.ImageKind.GRAYSCALE_1BPP:
          colorType = 0;
          bitDepth = 1;
          lineSize = width + 7 >> 3;
          break;

        case _util.ImageKind.RGB_24BPP:
          colorType = 2;
          bitDepth = 8;
          lineSize = width * 3;
          break;

        case _util.ImageKind.RGBA_32BPP:
          colorType = 6;
          bitDepth = 8;
          lineSize = width * 4;
          break;

        default:
          throw new Error("invalid format");
      }

      const literals = new Uint8Array((1 + lineSize) * height);
      let offsetLiterals = 0,
          offsetBytes = 0;

      for (let y = 0; y < height; ++y) {
        literals[offsetLiterals++] = 0;
        literals.set(bytes.subarray(offsetBytes, offsetBytes + lineSize), offsetLiterals);
        offsetBytes += lineSize;
        offsetLiterals += lineSize;
      }

      if (kind === _util.ImageKind.GRAYSCALE_1BPP && isMask) {
        offsetLiterals = 0;

        for (let y = 0; y < height; y++) {
          offsetLiterals++;

          for (let i = 0; i < lineSize; i++) {
            literals[offsetLiterals++] ^= 0xff;
          }
        }
      }

      const ihdr = new Uint8Array([width >> 24 & 0xff, width >> 16 & 0xff, width >> 8 & 0xff, width & 0xff, height >> 24 & 0xff, height >> 16 & 0xff, height >> 8 & 0xff, height & 0xff, bitDepth, colorType, 0x00, 0x00, 0x00]);
      const idat = deflateSync(literals);
      const pngLength = PNG_HEADER.length + CHUNK_WRAPPER_SIZE * 3 + ihdr.length + idat.length;
      const data = new Uint8Array(pngLength);
      let offset = 0;
      data.set(PNG_HEADER, offset);
      offset += PNG_HEADER.length;
      writePngChunk("IHDR", ihdr, data, offset);
      offset += CHUNK_WRAPPER_SIZE + ihdr.length;
      writePngChunk("IDATA", idat, data, offset);
      offset += CHUNK_WRAPPER_SIZE + idat.length;
      writePngChunk("IEND", new Uint8Array(0), data, offset);
      return (0, _util.createObjectURL)(data, "image/png", forceDataSchema);
    }

    return function convertImgDataToPng(imgData, forceDataSchema, isMask) {
      const kind = imgData.kind === undefined ? _util.ImageKind.GRAYSCALE_1BPP : imgData.kind;
      return encode(imgData, kind, forceDataSchema, isMask);
    };
  }();

  class SVGExtraState {
    constructor() {
      this.fontSizeScale = 1;
      this.fontWeight = SVG_DEFAULTS.fontWeight;
      this.fontSize = 0;
      this.textMatrix = _util.IDENTITY_MATRIX;
      this.fontMatrix = _util.FONT_IDENTITY_MATRIX;
      this.leading = 0;
      this.textRenderingMode = _util.TextRenderingMode.FILL;
      this.textMatrixScale = 1;
      this.x = 0;
      this.y = 0;
      this.lineX = 0;
      this.lineY = 0;
      this.charSpacing = 0;
      this.wordSpacing = 0;
      this.textHScale = 1;
      this.textRise = 0;
      this.fillColor = SVG_DEFAULTS.fillColor;
      this.strokeColor = "#000000";
      this.fillAlpha = 1;
      this.strokeAlpha = 1;
      this.lineWidth = 1;
      this.lineJoin = "";
      this.lineCap = "";
      this.miterLimit = 0;
      this.dashArray = [];
      this.dashPhase = 0;
      this.dependencies = [];
      this.activeClipUrl = null;
      this.clipGroup = null;
      this.maskId = "";
    }

    clone() {
      return Object.create(this);
    }

    setCurrentPoint(x, y) {
      this.x = x;
      this.y = y;
    }

  }

  function opListToTree(opList) {
    let opTree = [];
    const tmp = [];

    for (const opListElement of opList) {
      if (opListElement.fn === "save") {
        opTree.push({
          fnId: 92,
          fn: "group",
          items: []
        });
        tmp.push(opTree);
        opTree = opTree[opTree.length - 1].items;
        continue;
      }

      if (opListElement.fn === "restore") {
        opTree = tmp.pop();
      } else {
        opTree.push(opListElement);
      }
    }

    return opTree;
  }

  function pf(value) {
    if (Number.isInteger(value)) {
      return value.toString();
    }

    const s = value.toFixed(10);
    let i = s.length - 1;

    if (s[i] !== "0") {
      return s;
    }

    do {
      i--;
    } while (s[i] === "0");

    return s.substring(0, s[i] === "." ? i : i + 1);
  }

  function pm(m) {
    if (m[4] === 0 && m[5] === 0) {
      if (m[1] === 0 && m[2] === 0) {
        if (m[0] === 1 && m[3] === 1) {
          return "";
        }

        return `scale(${pf(m[0])} ${pf(m[3])})`;
      }

      if (m[0] === m[3] && m[1] === -m[2]) {
        const a = Math.acos(m[0]) * 180 / Math.PI;
        return `rotate(${pf(a)})`;
      }
    } else {
      if (m[0] === 1 && m[1] === 0 && m[2] === 0 && m[3] === 1) {
        return `translate(${pf(m[4])} ${pf(m[5])})`;
      }
    }

    return `matrix(${pf(m[0])} ${pf(m[1])} ${pf(m[2])} ${pf(m[3])} ${pf(m[4])} ` + `${pf(m[5])})`;
  }

  let clipCount = 0;
  let maskCount = 0;
  let shadingCount = 0;
  exports.SVGGraphics = SVGGraphics = class SVGGraphics {
    constructor(commonObjs, objs, forceDataSchema = false) {
      this.svgFactory = new _display_utils.DOMSVGFactory();
      this.current = new SVGExtraState();
      this.transformMatrix = _util.IDENTITY_MATRIX;
      this.transformStack = [];
      this.extraStack = [];
      this.commonObjs = commonObjs;
      this.objs = objs;
      this.pendingClip = null;
      this.pendingEOFill = false;
      this.embedFonts = false;
      this.embeddedFonts = Object.create(null);
      this.cssStyle = null;
      this.forceDataSchema = !!forceDataSchema;
      this._operatorIdMapping = [];

      for (const op in _util.OPS) {
        this._operatorIdMapping[_util.OPS[op]] = op;
      }
    }

    save() {
      this.transformStack.push(this.transformMatrix);
      const old = this.current;
      this.extraStack.push(old);
      this.current = old.clone();
    }

    restore() {
      this.transformMatrix = this.transformStack.pop();
      this.current = this.extraStack.pop();
      this.pendingClip = null;
      this.tgrp = null;
    }

    group(items) {
      this.save();
      this.executeOpTree(items);
      this.restore();
    }

    loadDependencies(operatorList) {
      const fnArray = operatorList.fnArray;
      const argsArray = operatorList.argsArray;

      for (let i = 0, ii = fnArray.length; i < ii; i++) {
        if (fnArray[i] !== _util.OPS.dependency) {
          continue;
        }

        for (const obj of argsArray[i]) {
          const objsPool = obj.startsWith("g_") ? this.commonObjs : this.objs;
          const promise = new Promise(resolve => {
            objsPool.get(obj, resolve);
          });
          this.current.dependencies.push(promise);
        }
      }

      return Promise.all(this.current.dependencies);
    }

    transform(a, b, c, d, e, f) {
      const transformMatrix = [a, b, c, d, e, f];
      this.transformMatrix = _util.Util.transform(this.transformMatrix, transformMatrix);
      this.tgrp = null;
    }

    getSVG(operatorList, viewport) {
      this.viewport = viewport;

      const svgElement = this._initialize(viewport);

      return this.loadDependencies(operatorList).then(() => {
        this.transformMatrix = _util.IDENTITY_MATRIX;
        this.executeOpTree(this.convertOpList(operatorList));
        return svgElement;
      });
    }

    convertOpList(operatorList) {
      const operatorIdMapping = this._operatorIdMapping;
      const argsArray = operatorList.argsArray;
      const fnArray = operatorList.fnArray;
      const opList = [];

      for (let i = 0, ii = fnArray.length; i < ii; i++) {
        const fnId = fnArray[i];
        opList.push({
          fnId,
          fn: operatorIdMapping[fnId],
          args: argsArray[i]
        });
      }

      return opListToTree(opList);
    }

    executeOpTree(opTree) {
      for (const opTreeElement of opTree) {
        const fn = opTreeElement.fn;
        const fnId = opTreeElement.fnId;
        const args = opTreeElement.args;

        switch (fnId | 0) {
          case _util.OPS.beginText:
            this.beginText();
            break;

          case _util.OPS.dependency:
            break;

          case _util.OPS.setLeading:
            this.setLeading(args);
            break;

          case _util.OPS.setLeadingMoveText:
            this.setLeadingMoveText(args[0], args[1]);
            break;

          case _util.OPS.setFont:
            this.setFont(args);
            break;

          case _util.OPS.showText:
            this.showText(args[0]);
            break;

          case _util.OPS.showSpacedText:
            this.showText(args[0]);
            break;

          case _util.OPS.endText:
            this.endText();
            break;

          case _util.OPS.moveText:
            this.moveText(args[0], args[1]);
            break;

          case _util.OPS.setCharSpacing:
            this.setCharSpacing(args[0]);
            break;

          case _util.OPS.setWordSpacing:
            this.setWordSpacing(args[0]);
            break;

          case _util.OPS.setHScale:
            this.setHScale(args[0]);
            break;

          case _util.OPS.setTextMatrix:
            this.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
            break;

          case _util.OPS.setTextRise:
            this.setTextRise(args[0]);
            break;

          case _util.OPS.setTextRenderingMode:
            this.setTextRenderingMode(args[0]);
            break;

          case _util.OPS.setLineWidth:
            this.setLineWidth(args[0]);
            break;

          case _util.OPS.setLineJoin:
            this.setLineJoin(args[0]);
            break;

          case _util.OPS.setLineCap:
            this.setLineCap(args[0]);
            break;

          case _util.OPS.setMiterLimit:
            this.setMiterLimit(args[0]);
            break;

          case _util.OPS.setFillRGBColor:
            this.setFillRGBColor(args[0], args[1], args[2]);
            break;

          case _util.OPS.setStrokeRGBColor:
            this.setStrokeRGBColor(args[0], args[1], args[2]);
            break;

          case _util.OPS.setStrokeColorN:
            this.setStrokeColorN(args);
            break;

          case _util.OPS.setFillColorN:
            this.setFillColorN(args);
            break;

          case _util.OPS.shadingFill:
            this.shadingFill(args[0]);
            break;

          case _util.OPS.setDash:
            this.setDash(args[0], args[1]);
            break;

          case _util.OPS.setRenderingIntent:
            this.setRenderingIntent(args[0]);
            break;

          case _util.OPS.setFlatness:
            this.setFlatness(args[0]);
            break;

          case _util.OPS.setGState:
            this.setGState(args[0]);
            break;

          case _util.OPS.fill:
            this.fill();
            break;

          case _util.OPS.eoFill:
            this.eoFill();
            break;

          case _util.OPS.stroke:
            this.stroke();
            break;

          case _util.OPS.fillStroke:
            this.fillStroke();
            break;

          case _util.OPS.eoFillStroke:
            this.eoFillStroke();
            break;

          case _util.OPS.clip:
            this.clip("nonzero");
            break;

          case _util.OPS.eoClip:
            this.clip("evenodd");
            break;

          case _util.OPS.paintSolidColorImageMask:
            this.paintSolidColorImageMask();
            break;

          case _util.OPS.paintImageXObject:
            this.paintImageXObject(args[0]);
            break;

          case _util.OPS.paintInlineImageXObject:
            this.paintInlineImageXObject(args[0]);
            break;

          case _util.OPS.paintImageMaskXObject:
            this.paintImageMaskXObject(args[0]);
            break;

          case _util.OPS.paintFormXObjectBegin:
            this.paintFormXObjectBegin(args[0], args[1]);
            break;

          case _util.OPS.paintFormXObjectEnd:
            this.paintFormXObjectEnd();
            break;

          case _util.OPS.closePath:
            this.closePath();
            break;

          case _util.OPS.closeStroke:
            this.closeStroke();
            break;

          case _util.OPS.closeFillStroke:
            this.closeFillStroke();
            break;

          case _util.OPS.closeEOFillStroke:
            this.closeEOFillStroke();
            break;

          case _util.OPS.nextLine:
            this.nextLine();
            break;

          case _util.OPS.transform:
            this.transform(args[0], args[1], args[2], args[3], args[4], args[5]);
            break;

          case _util.OPS.constructPath:
            this.constructPath(args[0], args[1]);
            break;

          case _util.OPS.endPath:
            this.endPath();
            break;

          case 92:
            this.group(opTreeElement.items);
            break;

          default:
            (0, _util.warn)(`Unimplemented operator ${fn}`);
            break;
        }
      }
    }

    setWordSpacing(wordSpacing) {
      this.current.wordSpacing = wordSpacing;
    }

    setCharSpacing(charSpacing) {
      this.current.charSpacing = charSpacing;
    }

    nextLine() {
      this.moveText(0, this.current.leading);
    }

    setTextMatrix(a, b, c, d, e, f) {
      const current = this.current;
      current.textMatrix = current.lineMatrix = [a, b, c, d, e, f];
      current.textMatrixScale = Math.sqrt(a * a + b * b);
      current.x = current.lineX = 0;
      current.y = current.lineY = 0;
      current.xcoords = [];
      current.ycoords = [];
      current.tspan = this.svgFactory.createElement("svg:tspan");
      current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
      current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`);
      current.tspan.setAttributeNS(null, "y", pf(-current.y));
      current.txtElement = this.svgFactory.createElement("svg:text");
      current.txtElement.appendChild(current.tspan);
    }

    beginText() {
      const current = this.current;
      current.x = current.lineX = 0;
      current.y = current.lineY = 0;
      current.textMatrix = _util.IDENTITY_MATRIX;
      current.lineMatrix = _util.IDENTITY_MATRIX;
      current.textMatrixScale = 1;
      current.tspan = this.svgFactory.createElement("svg:tspan");
      current.txtElement = this.svgFactory.createElement("svg:text");
      current.txtgrp = this.svgFactory.createElement("svg:g");
      current.xcoords = [];
      current.ycoords = [];
    }

    moveText(x, y) {
      const current = this.current;
      current.x = current.lineX += x;
      current.y = current.lineY += y;
      current.xcoords = [];
      current.ycoords = [];
      current.tspan = this.svgFactory.createElement("svg:tspan");
      current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
      current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`);
      current.tspan.setAttributeNS(null, "y", pf(-current.y));
    }

    showText(glyphs) {
      const current = this.current;
      const font = current.font;
      const fontSize = current.fontSize;

      if (fontSize === 0) {
        return;
      }

      const fontSizeScale = current.fontSizeScale;
      const charSpacing = current.charSpacing;
      const wordSpacing = current.wordSpacing;
      const fontDirection = current.fontDirection;
      const textHScale = current.textHScale * fontDirection;
      const vertical = font.vertical;
      const spacingDir = vertical ? 1 : -1;
      const defaultVMetrics = font.defaultVMetrics;
      const widthAdvanceScale = fontSize * current.fontMatrix[0];
      let x = 0;

      for (const glyph of glyphs) {
        if (glyph === null) {
          x += fontDirection * wordSpacing;
          continue;
        } else if ((0, _util.isNum)(glyph)) {
          x += spacingDir * glyph * fontSize / 1000;
          continue;
        }

        const spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;
        const character = glyph.fontChar;
        let scaledX, scaledY;
        let width = glyph.width;

        if (vertical) {
          let vx;
          const vmetric = glyph.vmetric || defaultVMetrics;
          vx = glyph.vmetric ? vmetric[1] : width * 0.5;
          vx = -vx * widthAdvanceScale;
          const vy = vmetric[2] * widthAdvanceScale;
          width = vmetric ? -vmetric[0] : width;
          scaledX = vx / fontSizeScale;
          scaledY = (x + vy) / fontSizeScale;
        } else {
          scaledX = x / fontSizeScale;
          scaledY = 0;
        }

        if (glyph.isInFont || font.missingFile) {
          current.xcoords.push(current.x + scaledX);

          if (vertical) {
            current.ycoords.push(-current.y + scaledY);
          }

          current.tspan.textContent += character;
        } else {}

        let charWidth;

        if (vertical) {
          charWidth = width * widthAdvanceScale - spacing * fontDirection;
        } else {
          charWidth = width * widthAdvanceScale + spacing * fontDirection;
        }

        x += charWidth;
      }

      current.tspan.setAttributeNS(null, "x", current.xcoords.map(pf).join(" "));

      if (vertical) {
        current.tspan.setAttributeNS(null, "y", current.ycoords.map(pf).join(" "));
      } else {
        current.tspan.setAttributeNS(null, "y", pf(-current.y));
      }

      if (vertical) {
        current.y -= x;
      } else {
        current.x += x * textHScale;
      }

      current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
      current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`);

      if (current.fontStyle !== SVG_DEFAULTS.fontStyle) {
        current.tspan.setAttributeNS(null, "font-style", current.fontStyle);
      }

      if (current.fontWeight !== SVG_DEFAULTS.fontWeight) {
        current.tspan.setAttributeNS(null, "font-weight", current.fontWeight);
      }

      const fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;

      if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
        if (current.fillColor !== SVG_DEFAULTS.fillColor) {
          current.tspan.setAttributeNS(null, "fill", current.fillColor);
        }

        if (current.fillAlpha < 1) {
          current.tspan.setAttributeNS(null, "fill-opacity", current.fillAlpha);
        }
      } else if (current.textRenderingMode === _util.TextRenderingMode.ADD_TO_PATH) {
        current.tspan.setAttributeNS(null, "fill", "transparent");
      } else {
        current.tspan.setAttributeNS(null, "fill", "none");
      }

      if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) {
        const lineWidthScale = 1 / (current.textMatrixScale || 1);

        this._setStrokeAttributes(current.tspan, lineWidthScale);
      }

      let textMatrix = current.textMatrix;

      if (current.textRise !== 0) {
        textMatrix = textMatrix.slice();
        textMatrix[5] += current.textRise;
      }

      current.txtElement.setAttributeNS(null, "transform", `${pm(textMatrix)} scale(${pf(textHScale)}, -1)`);
      current.txtElement.setAttributeNS(XML_NS, "xml:space", "preserve");
      current.txtElement.appendChild(current.tspan);
      current.txtgrp.appendChild(current.txtElement);

      this._ensureTransformGroup().appendChild(current.txtElement);
    }

    setLeadingMoveText(x, y) {
      this.setLeading(-y);
      this.moveText(x, y);
    }

    addFontStyle(fontObj) {
      if (!fontObj.data) {
        throw new Error("addFontStyle: No font data available, " + 'ensure that the "fontExtraProperties" API parameter is set.');
      }

      if (!this.cssStyle) {
        this.cssStyle = this.svgFactory.createElement("svg:style");
        this.cssStyle.setAttributeNS(null, "type", "text/css");
        this.defs.appendChild(this.cssStyle);
      }

      const url = (0, _util.createObjectURL)(fontObj.data, fontObj.mimetype, this.forceDataSchema);
      this.cssStyle.textContent += `@font-face { font-family: "${fontObj.loadedName}";` + ` src: url(${url}); }\n`;
    }

    setFont(details) {
      const current = this.current;
      const fontObj = this.commonObjs.get(details[0]);
      let size = details[1];
      current.font = fontObj;

      if (this.embedFonts && !fontObj.missingFile && !this.embeddedFonts[fontObj.loadedName]) {
        this.addFontStyle(fontObj);
        this.embeddedFonts[fontObj.loadedName] = fontObj;
      }

      current.fontMatrix = fontObj.fontMatrix ? fontObj.fontMatrix : _util.FONT_IDENTITY_MATRIX;
      let bold = "normal";

      if (fontObj.black) {
        bold = "900";
      } else if (fontObj.bold) {
        bold = "bold";
      }

      const italic = fontObj.italic ? "italic" : "normal";

      if (size < 0) {
        size = -size;
        current.fontDirection = -1;
      } else {
        current.fontDirection = 1;
      }

      current.fontSize = size;
      current.fontFamily = fontObj.loadedName;
      current.fontWeight = bold;
      current.fontStyle = italic;
      current.tspan = this.svgFactory.createElement("svg:tspan");
      current.tspan.setAttributeNS(null, "y", pf(-current.y));
      current.xcoords = [];
      current.ycoords = [];
    }

    endText() {
      const current = this.current;

      if (current.textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG && current.txtElement && current.txtElement.hasChildNodes()) {
        current.element = current.txtElement;
        this.clip("nonzero");
        this.endPath();
      }
    }

    setLineWidth(width) {
      if (width > 0) {
        this.current.lineWidth = width;
      }
    }

    setLineCap(style) {
      this.current.lineCap = LINE_CAP_STYLES[style];
    }

    setLineJoin(style) {
      this.current.lineJoin = LINE_JOIN_STYLES[style];
    }

    setMiterLimit(limit) {
      this.current.miterLimit = limit;
    }

    setStrokeAlpha(strokeAlpha) {
      this.current.strokeAlpha = strokeAlpha;
    }

    setStrokeRGBColor(r, g, b) {
      this.current.strokeColor = _util.Util.makeCssRgb(r, g, b);
    }

    setFillAlpha(fillAlpha) {
      this.current.fillAlpha = fillAlpha;
    }

    setFillRGBColor(r, g, b) {
      this.current.fillColor = _util.Util.makeCssRgb(r, g, b);
      this.current.tspan = this.svgFactory.createElement("svg:tspan");
      this.current.xcoords = [];
      this.current.ycoords = [];
    }

    setStrokeColorN(args) {
      this.current.strokeColor = this._makeColorN_Pattern(args);
    }

    setFillColorN(args) {
      this.current.fillColor = this._makeColorN_Pattern(args);
    }

    shadingFill(args) {
      const width = this.viewport.width;
      const height = this.viewport.height;

      const inv = _util.Util.inverseTransform(this.transformMatrix);

      const bl = _util.Util.applyTransform([0, 0], inv);

      const br = _util.Util.applyTransform([0, height], inv);

      const ul = _util.Util.applyTransform([width, 0], inv);

      const ur = _util.Util.applyTransform([width, height], inv);

      const x0 = Math.min(bl[0], br[0], ul[0], ur[0]);
      const y0 = Math.min(bl[1], br[1], ul[1], ur[1]);
      const x1 = Math.max(bl[0], br[0], ul[0], ur[0]);
      const y1 = Math.max(bl[1], br[1], ul[1], ur[1]);
      const rect = this.svgFactory.createElement("svg:rect");
      rect.setAttributeNS(null, "x", x0);
      rect.setAttributeNS(null, "y", y0);
      rect.setAttributeNS(null, "width", x1 - x0);
      rect.setAttributeNS(null, "height", y1 - y0);
      rect.setAttributeNS(null, "fill", this._makeShadingPattern(args));

      if (this.current.fillAlpha < 1) {
        rect.setAttributeNS(null, "fill-opacity", this.current.fillAlpha);
      }

      this._ensureTransformGroup().appendChild(rect);
    }

    _makeColorN_Pattern(args) {
      if (args[0] === "TilingPattern") {
        return this._makeTilingPattern(args);
      }

      return this._makeShadingPattern(args);
    }

    _makeTilingPattern(args) {
      const color = args[1];
      const operatorList = args[2];
      const matrix = args[3] || _util.IDENTITY_MATRIX;
      const [x0, y0, x1, y1] = args[4];
      const xstep = args[5];
      const ystep = args[6];
      const paintType = args[7];
      const tilingId = `shading${shadingCount++}`;

      const [tx0, ty0] = _util.Util.applyTransform([x0, y0], matrix);

      const [tx1, ty1] = _util.Util.applyTransform([x1, y1], matrix);

      const [xscale, yscale] = _util.Util.singularValueDecompose2dScale(matrix);

      const txstep = xstep * xscale;
      const tystep = ystep * yscale;
      const tiling = this.svgFactory.createElement("svg:pattern");
      tiling.setAttributeNS(null, "id", tilingId);
      tiling.setAttributeNS(null, "patternUnits", "userSpaceOnUse");
      tiling.setAttributeNS(null, "width", txstep);
      tiling.setAttributeNS(null, "height", tystep);
      tiling.setAttributeNS(null, "x", `${tx0}`);
      tiling.setAttributeNS(null, "y", `${ty0}`);
      const svg = this.svg;
      const transformMatrix = this.transformMatrix;
      const fillColor = this.current.fillColor;
      const strokeColor = this.current.strokeColor;
      const bbox = this.svgFactory.create(tx1 - tx0, ty1 - ty0);
      this.svg = bbox;
      this.transformMatrix = matrix;

      if (paintType === 2) {
        const cssColor = _util.Util.makeCssRgb(...color);

        this.current.fillColor = cssColor;
        this.current.strokeColor = cssColor;
      }

      this.executeOpTree(this.convertOpList(operatorList));
      this.svg = svg;
      this.transformMatrix = transformMatrix;
      this.current.fillColor = fillColor;
      this.current.strokeColor = strokeColor;
      tiling.appendChild(bbox.childNodes[0]);
      this.defs.appendChild(tiling);
      return `url(#${tilingId})`;
    }

    _makeShadingPattern(args) {
      switch (args[0]) {
        case "RadialAxial":
          const shadingId = `shading${shadingCount++}`;
          const colorStops = args[3];
          let gradient;

          switch (args[1]) {
            case "axial":
              const point0 = args[4];
              const point1 = args[5];
              gradient = this.svgFactory.createElement("svg:linearGradient");
              gradient.setAttributeNS(null, "id", shadingId);
              gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse");
              gradient.setAttributeNS(null, "x1", point0[0]);
              gradient.setAttributeNS(null, "y1", point0[1]);
              gradient.setAttributeNS(null, "x2", point1[0]);
              gradient.setAttributeNS(null, "y2", point1[1]);
              break;

            case "radial":
              const focalPoint = args[4];
              const circlePoint = args[5];
              const focalRadius = args[6];
              const circleRadius = args[7];
              gradient = this.svgFactory.createElement("svg:radialGradient");
              gradient.setAttributeNS(null, "id", shadingId);
              gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse");
              gradient.setAttributeNS(null, "cx", circlePoint[0]);
              gradient.setAttributeNS(null, "cy", circlePoint[1]);
              gradient.setAttributeNS(null, "r", circleRadius);
              gradient.setAttributeNS(null, "fx", focalPoint[0]);
              gradient.setAttributeNS(null, "fy", focalPoint[1]);
              gradient.setAttributeNS(null, "fr", focalRadius);
              break;

            default:
              throw new Error(`Unknown RadialAxial type: ${args[1]}`);
          }

          for (const colorStop of colorStops) {
            const stop = this.svgFactory.createElement("svg:stop");
            stop.setAttributeNS(null, "offset", colorStop[0]);
            stop.setAttributeNS(null, "stop-color", colorStop[1]);
            gradient.appendChild(stop);
          }

          this.defs.appendChild(gradient);
          return `url(#${shadingId})`;

        case "Mesh":
          (0, _util.warn)("Unimplemented pattern Mesh");
          return null;

        case "Dummy":
          return "hotpink";

        default:
          throw new Error(`Unknown IR type: ${args[0]}`);
      }
    }

    setDash(dashArray, dashPhase) {
      this.current.dashArray = dashArray;
      this.current.dashPhase = dashPhase;
    }

    constructPath(ops, args) {
      const current = this.current;
      let x = current.x,
          y = current.y;
      let d = [];
      let j = 0;

      for (const op of ops) {
        switch (op | 0) {
          case _util.OPS.rectangle:
            x = args[j++];
            y = args[j++];
            const width = args[j++];
            const height = args[j++];
            const xw = x + width;
            const yh = y + height;
            d.push("M", pf(x), pf(y), "L", pf(xw), pf(y), "L", pf(xw), pf(yh), "L", pf(x), pf(yh), "Z");
            break;

          case _util.OPS.moveTo:
            x = args[j++];
            y = args[j++];
            d.push("M", pf(x), pf(y));
            break;

          case _util.OPS.lineTo:
            x = args[j++];
            y = args[j++];
            d.push("L", pf(x), pf(y));
            break;

          case _util.OPS.curveTo:
            x = args[j + 4];
            y = args[j + 5];
            d.push("C", pf(args[j]), pf(args[j + 1]), pf(args[j + 2]), pf(args[j + 3]), pf(x), pf(y));
            j += 6;
            break;

          case _util.OPS.curveTo2:
            d.push("C", pf(x), pf(y), pf(args[j]), pf(args[j + 1]), pf(args[j + 2]), pf(args[j + 3]));
            x = args[j + 2];
            y = args[j + 3];
            j += 4;
            break;

          case _util.OPS.curveTo3:
            x = args[j + 2];
            y = args[j + 3];
            d.push("C", pf(args[j]), pf(args[j + 1]), pf(x), pf(y), pf(x), pf(y));
            j += 4;
            break;

          case _util.OPS.closePath:
            d.push("Z");
            break;
        }
      }

      d = d.join(" ");

      if (current.path && ops.length > 0 && ops[0] !== _util.OPS.rectangle && ops[0] !== _util.OPS.moveTo) {
        d = current.path.getAttributeNS(null, "d") + d;
      } else {
        current.path = this.svgFactory.createElement("svg:path");

        this._ensureTransformGroup().appendChild(current.path);
      }

      current.path.setAttributeNS(null, "d", d);
      current.path.setAttributeNS(null, "fill", "none");
      current.element = current.path;
      current.setCurrentPoint(x, y);
    }

    endPath() {
      const current = this.current;
      current.path = null;

      if (!this.pendingClip) {
        return;
      }

      if (!current.element) {
        this.pendingClip = null;
        return;
      }

      const clipId = `clippath${clipCount++}`;
      const clipPath = this.svgFactory.createElement("svg:clipPath");
      clipPath.setAttributeNS(null, "id", clipId);
      clipPath.setAttributeNS(null, "transform", pm(this.transformMatrix));
      const clipElement = current.element.cloneNode(true);

      if (this.pendingClip === "evenodd") {
        clipElement.setAttributeNS(null, "clip-rule", "evenodd");
      } else {
        clipElement.setAttributeNS(null, "clip-rule", "nonzero");
      }

      this.pendingClip = null;
      clipPath.appendChild(clipElement);
      this.defs.appendChild(clipPath);

      if (current.activeClipUrl) {
        current.clipGroup = null;
        this.extraStack.forEach(function (prev) {
          prev.clipGroup = null;
        });
        clipPath.setAttributeNS(null, "clip-path", current.activeClipUrl);
      }

      current.activeClipUrl = `url(#${clipId})`;
      this.tgrp = null;
    }

    clip(type) {
      this.pendingClip = type;
    }

    closePath() {
      const current = this.current;

      if (current.path) {
        const d = `${current.path.getAttributeNS(null, "d")}Z`;
        current.path.setAttributeNS(null, "d", d);
      }
    }

    setLeading(leading) {
      this.current.leading = -leading;
    }

    setTextRise(textRise) {
      this.current.textRise = textRise;
    }

    setTextRenderingMode(textRenderingMode) {
      this.current.textRenderingMode = textRenderingMode;
    }

    setHScale(scale) {
      this.current.textHScale = scale / 100;
    }

    setRenderingIntent(intent) {}

    setFlatness(flatness) {}

    setGState(states) {
      for (const [key, value] of states) {
        switch (key) {
          case "LW":
            this.setLineWidth(value);
            break;

          case "LC":
            this.setLineCap(value);
            break;

          case "LJ":
            this.setLineJoin(value);
            break;

          case "ML":
            this.setMiterLimit(value);
            break;

          case "D":
            this.setDash(value[0], value[1]);
            break;

          case "RI":
            this.setRenderingIntent(value);
            break;

          case "FL":
            this.setFlatness(value);
            break;

          case "Font":
            this.setFont(value);
            break;

          case "CA":
            this.setStrokeAlpha(value);
            break;

          case "ca":
            this.setFillAlpha(value);
            break;

          default:
            (0, _util.warn)(`Unimplemented graphic state operator ${key}`);
            break;
        }
      }
    }

    fill() {
      const current = this.current;

      if (current.element) {
        current.element.setAttributeNS(null, "fill", current.fillColor);
        current.element.setAttributeNS(null, "fill-opacity", current.fillAlpha);
        this.endPath();
      }
    }

    stroke() {
      const current = this.current;

      if (current.element) {
        this._setStrokeAttributes(current.element);

        current.element.setAttributeNS(null, "fill", "none");
        this.endPath();
      }
    }

    _setStrokeAttributes(element, lineWidthScale = 1) {
      const current = this.current;
      let dashArray = current.dashArray;

      if (lineWidthScale !== 1 && dashArray.length > 0) {
        dashArray = dashArray.map(function (value) {
          return lineWidthScale * value;
        });
      }

      element.setAttributeNS(null, "stroke", current.strokeColor);
      element.setAttributeNS(null, "stroke-opacity", current.strokeAlpha);
      element.setAttributeNS(null, "stroke-miterlimit", pf(current.miterLimit));
      element.setAttributeNS(null, "stroke-linecap", current.lineCap);
      element.setAttributeNS(null, "stroke-linejoin", current.lineJoin);
      element.setAttributeNS(null, "stroke-width", pf(lineWidthScale * current.lineWidth) + "px");
      element.setAttributeNS(null, "stroke-dasharray", dashArray.map(pf).join(" "));
      element.setAttributeNS(null, "stroke-dashoffset", pf(lineWidthScale * current.dashPhase) + "px");
    }

    eoFill() {
      if (this.current.element) {
        this.current.element.setAttributeNS(null, "fill-rule", "evenodd");
      }

      this.fill();
    }

    fillStroke() {
      this.stroke();
      this.fill();
    }

    eoFillStroke() {
      if (this.current.element) {
        this.current.element.setAttributeNS(null, "fill-rule", "evenodd");
      }

      this.fillStroke();
    }

    closeStroke() {
      this.closePath();
      this.stroke();
    }

    closeFillStroke() {
      this.closePath();
      this.fillStroke();
    }

    closeEOFillStroke() {
      this.closePath();
      this.eoFillStroke();
    }

    paintSolidColorImageMask() {
      const rect = this.svgFactory.createElement("svg:rect");
      rect.setAttributeNS(null, "x", "0");
      rect.setAttributeNS(null, "y", "0");
      rect.setAttributeNS(null, "width", "1px");
      rect.setAttributeNS(null, "height", "1px");
      rect.setAttributeNS(null, "fill", this.current.fillColor);

      this._ensureTransformGroup().appendChild(rect);
    }

    paintImageXObject(objId) {
      const imgData = objId.startsWith("g_") ? this.commonObjs.get(objId) : this.objs.get(objId);

      if (!imgData) {
        (0, _util.warn)(`Dependent image with object ID ${objId} is not ready yet`);
        return;
      }

      this.paintInlineImageXObject(imgData);
    }

    paintInlineImageXObject(imgData, mask) {
      const width = imgData.width;
      const height = imgData.height;
      const imgSrc = convertImgDataToPng(imgData, this.forceDataSchema, !!mask);
      const cliprect = this.svgFactory.createElement("svg:rect");
      cliprect.setAttributeNS(null, "x", "0");
      cliprect.setAttributeNS(null, "y", "0");
      cliprect.setAttributeNS(null, "width", pf(width));
      cliprect.setAttributeNS(null, "height", pf(height));
      this.current.element = cliprect;
      this.clip("nonzero");
      const imgEl = this.svgFactory.createElement("svg:image");
      imgEl.setAttributeNS(XLINK_NS, "xlink:href", imgSrc);
      imgEl.setAttributeNS(null, "x", "0");
      imgEl.setAttributeNS(null, "y", pf(-height));
      imgEl.setAttributeNS(null, "width", pf(width) + "px");
      imgEl.setAttributeNS(null, "height", pf(height) + "px");
      imgEl.setAttributeNS(null, "transform", `scale(${pf(1 / width)} ${pf(-1 / height)})`);

      if (mask) {
        mask.appendChild(imgEl);
      } else {
        this._ensureTransformGroup().appendChild(imgEl);
      }
    }

    paintImageMaskXObject(imgData) {
      const current = this.current;
      const width = imgData.width;
      const height = imgData.height;
      const fillColor = current.fillColor;
      current.maskId = `mask${maskCount++}`;
      const mask = this.svgFactory.createElement("svg:mask");
      mask.setAttributeNS(null, "id", current.maskId);
      const rect = this.svgFactory.createElement("svg:rect");
      rect.setAttributeNS(null, "x", "0");
      rect.setAttributeNS(null, "y", "0");
      rect.setAttributeNS(null, "width", pf(width));
      rect.setAttributeNS(null, "height", pf(height));
      rect.setAttributeNS(null, "fill", fillColor);
      rect.setAttributeNS(null, "mask", `url(#${current.maskId})`);
      this.defs.appendChild(mask);

      this._ensureTransformGroup().appendChild(rect);

      this.paintInlineImageXObject(imgData, mask);
    }

    paintFormXObjectBegin(matrix, bbox) {
      if (Array.isArray(matrix) && matrix.length === 6) {
        this.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
      }

      if (bbox) {
        const width = bbox[2] - bbox[0];
        const height = bbox[3] - bbox[1];
        const cliprect = this.svgFactory.createElement("svg:rect");
        cliprect.setAttributeNS(null, "x", bbox[0]);
        cliprect.setAttributeNS(null, "y", bbox[1]);
        cliprect.setAttributeNS(null, "width", pf(width));
        cliprect.setAttributeNS(null, "height", pf(height));
        this.current.element = cliprect;
        this.clip("nonzero");
        this.endPath();
      }
    }

    paintFormXObjectEnd() {}

    _initialize(viewport) {
      const svg = this.svgFactory.create(viewport.width, viewport.height);
      const definitions = this.svgFactory.createElement("svg:defs");
      svg.appendChild(definitions);
      this.defs = definitions;
      const rootGroup = this.svgFactory.createElement("svg:g");
      rootGroup.setAttributeNS(null, "transform", pm(viewport.transform));
      svg.appendChild(rootGroup);
      this.svg = rootGroup;
      return svg;
    }

    _ensureClipGroup() {
      if (!this.current.clipGroup) {
        const clipGroup = this.svgFactory.createElement("svg:g");
        clipGroup.setAttributeNS(null, "clip-path", this.current.activeClipUrl);
        this.svg.appendChild(clipGroup);
        this.current.clipGroup = clipGroup;
      }

      return this.current.clipGroup;
    }

    _ensureTransformGroup() {
      if (!this.tgrp) {
        this.tgrp = this.svgFactory.createElement("svg:g");
        this.tgrp.setAttributeNS(null, "transform", pm(this.transformMatrix));

        if (this.current.activeClipUrl) {
          this._ensureClipGroup().appendChild(this.tgrp);
        } else {
          this.svg.appendChild(this.tgrp);
        }
      }

      return this.tgrp;
    }

  };
}

/***/ }),
/* 22 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFNodeStream = void 0;

var _util = __w_pdfjs_require__(2);

var _network_utils = __w_pdfjs_require__(23);

;

const fs = __webpack_require__(1478);

const http = __webpack_require__(2119);

const https = __webpack_require__(2120);

const url = __webpack_require__(2121);

const fileUriRegex = /^file:\/\/\/[a-zA-Z]:\//;

function parseUrl(sourceUrl) {
  const parsedUrl = url.parse(sourceUrl);

  if (parsedUrl.protocol === "file:" || parsedUrl.host) {
    return parsedUrl;
  }

  if (/^[a-z]:[/\\]/i.test(sourceUrl)) {
    return url.parse(`file:///${sourceUrl}`);
  }

  if (!parsedUrl.host) {
    parsedUrl.protocol = "file:";
  }

  return parsedUrl;
}

class PDFNodeStream {
  constructor(source) {
    this.source = source;
    this.url = parseUrl(source.url);
    this.isHttp = this.url.protocol === "http:" || this.url.protocol === "https:";
    this.isFsUrl = this.url.protocol === "file:";
    this.httpHeaders = this.isHttp && source.httpHeaders || {};
    this._fullRequestReader = null;
    this._rangeRequestReaders = [];
  }

  get _progressiveDataLength() {
    return this._fullRequestReader ? this._fullRequestReader._loaded : 0;
  }

  getFullReader() {
    (0, _util.assert)(!this._fullRequestReader, "PDFNodeStream.getFullReader can only be called once.");
    this._fullRequestReader = this.isFsUrl ? new PDFNodeStreamFsFullReader(this) : new PDFNodeStreamFullReader(this);
    return this._fullRequestReader;
  }

  getRangeReader(start, end) {
    if (end <= this._progressiveDataLength) {
      return null;
    }

    const rangeReader = this.isFsUrl ? new PDFNodeStreamFsRangeReader(this, start, end) : new PDFNodeStreamRangeReader(this, start, end);

    this._rangeRequestReaders.push(rangeReader);

    return rangeReader;
  }

  cancelAllRequests(reason) {
    if (this._fullRequestReader) {
      this._fullRequestReader.cancel(reason);
    }

    const readers = this._rangeRequestReaders.slice(0);

    readers.forEach(function (reader) {
      reader.cancel(reason);
    });
  }

}

exports.PDFNodeStream = PDFNodeStream;

class BaseFullReader {
  constructor(stream) {
    this._url = stream.url;
    this._done = false;
    this._storedError = null;
    this.onProgress = null;
    const source = stream.source;
    this._contentLength = source.length;
    this._loaded = 0;
    this._filename = null;
    this._disableRange = source.disableRange || false;
    this._rangeChunkSize = source.rangeChunkSize;

    if (!this._rangeChunkSize && !this._disableRange) {
      this._disableRange = true;
    }

    this._isStreamingSupported = !source.disableStream;
    this._isRangeSupported = !source.disableRange;
    this._readableStream = null;
    this._readCapability = (0, _util.createPromiseCapability)();
    this._headersCapability = (0, _util.createPromiseCapability)();
  }

  get headersReady() {
    return this._headersCapability.promise;
  }

  get filename() {
    return this._filename;
  }

  get contentLength() {
    return this._contentLength;
  }

  get isRangeSupported() {
    return this._isRangeSupported;
  }

  get isStreamingSupported() {
    return this._isStreamingSupported;
  }

  async read() {
    await this._readCapability.promise;

    if (this._done) {
      return {
        value: undefined,
        done: true
      };
    }

    if (this._storedError) {
      throw this._storedError;
    }

    const chunk = this._readableStream.read();

    if (chunk === null) {
      this._readCapability = (0, _util.createPromiseCapability)();
      return this.read();
    }

    this._loaded += chunk.length;

    if (this.onProgress) {
      this.onProgress({
        loaded: this._loaded,
        total: this._contentLength
      });
    }

    const buffer = new Uint8Array(chunk).buffer;
    return {
      value: buffer,
      done: false
    };
  }

  cancel(reason) {
    if (!this._readableStream) {
      this._error(reason);

      return;
    }

    this._readableStream.destroy(reason);
  }

  _error(reason) {
    this._storedError = reason;

    this._readCapability.resolve();
  }

  _setReadableStream(readableStream) {
    this._readableStream = readableStream;
    readableStream.on("readable", () => {
      this._readCapability.resolve();
    });
    readableStream.on("end", () => {
      readableStream.destroy();
      this._done = true;

      this._readCapability.resolve();
    });
    readableStream.on("error", reason => {
      this._error(reason);
    });

    if (!this._isStreamingSupported && this._isRangeSupported) {
      this._error(new _util.AbortException("streaming is disabled"));
    }

    if (this._storedError) {
      this._readableStream.destroy(this._storedError);
    }
  }

}

class BaseRangeReader {
  constructor(stream) {
    this._url = stream.url;
    this._done = false;
    this._storedError = null;
    this.onProgress = null;
    this._loaded = 0;
    this._readableStream = null;
    this._readCapability = (0, _util.createPromiseCapability)();
    const source = stream.source;
    this._isStreamingSupported = !source.disableStream;
  }

  get isStreamingSupported() {
    return this._isStreamingSupported;
  }

  async read() {
    await this._readCapability.promise;

    if (this._done) {
      return {
        value: undefined,
        done: true
      };
    }

    if (this._storedError) {
      throw this._storedError;
    }

    const chunk = this._readableStream.read();

    if (chunk === null) {
      this._readCapability = (0, _util.createPromiseCapability)();
      return this.read();
    }

    this._loaded += chunk.length;

    if (this.onProgress) {
      this.onProgress({
        loaded: this._loaded
      });
    }

    const buffer = new Uint8Array(chunk).buffer;
    return {
      value: buffer,
      done: false
    };
  }

  cancel(reason) {
    if (!this._readableStream) {
      this._error(reason);

      return;
    }

    this._readableStream.destroy(reason);
  }

  _error(reason) {
    this._storedError = reason;

    this._readCapability.resolve();
  }

  _setReadableStream(readableStream) {
    this._readableStream = readableStream;
    readableStream.on("readable", () => {
      this._readCapability.resolve();
    });
    readableStream.on("end", () => {
      readableStream.destroy();
      this._done = true;

      this._readCapability.resolve();
    });
    readableStream.on("error", reason => {
      this._error(reason);
    });

    if (this._storedError) {
      this._readableStream.destroy(this._storedError);
    }
  }

}

function createRequestOptions(parsedUrl, headers) {
  return {
    protocol: parsedUrl.protocol,
    auth: parsedUrl.auth,
    host: parsedUrl.hostname,
    port: parsedUrl.port,
    path: parsedUrl.path,
    method: "GET",
    headers
  };
}

class PDFNodeStreamFullReader extends BaseFullReader {
  constructor(stream) {
    super(stream);

    const handleResponse = response => {
      if (response.statusCode === 404) {
        const error = new _util.MissingPDFException(`Missing PDF "${this._url}".`);
        this._storedError = error;

        this._headersCapability.reject(error);

        return;
      }

      this._headersCapability.resolve();

      this._setReadableStream(response);

      const getResponseHeader = name => {
        return this._readableStream.headers[name.toLowerCase()];
      };

      const {
        allowRangeRequests,
        suggestedLength
      } = (0, _network_utils.validateRangeRequestCapabilities)({
        getResponseHeader,
        isHttp: stream.isHttp,
        rangeChunkSize: this._rangeChunkSize,
        disableRange: this._disableRange
      });
      this._isRangeSupported = allowRangeRequests;
      this._contentLength = suggestedLength || this._contentLength;
      this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader);
    };

    this._request = null;

    if (this._url.protocol === "http:") {
      this._request = http.request(createRequestOptions(this._url, stream.httpHeaders), handleResponse);
    } else {
      this._request = https.request(createRequestOptions(this._url, stream.httpHeaders), handleResponse);
    }

    this._request.on("error", reason => {
      this._storedError = reason;

      this._headersCapability.reject(reason);
    });

    this._request.end();
  }

}

class PDFNodeStreamRangeReader extends BaseRangeReader {
  constructor(stream, start, end) {
    super(stream);
    this._httpHeaders = {};

    for (const property in stream.httpHeaders) {
      const value = stream.httpHeaders[property];

      if (typeof value === "undefined") {
        continue;
      }

      this._httpHeaders[property] = value;
    }

    this._httpHeaders.Range = `bytes=${start}-${end - 1}`;

    const handleResponse = response => {
      if (response.statusCode === 404) {
        const error = new _util.MissingPDFException(`Missing PDF "${this._url}".`);
        this._storedError = error;
        return;
      }

      this._setReadableStream(response);
    };

    this._request = null;

    if (this._url.protocol === "http:") {
      this._request = http.request(createRequestOptions(this._url, this._httpHeaders), handleResponse);
    } else {
      this._request = https.request(createRequestOptions(this._url, this._httpHeaders), handleResponse);
    }

    this._request.on("error", reason => {
      this._storedError = reason;
    });

    this._request.end();
  }

}

class PDFNodeStreamFsFullReader extends BaseFullReader {
  constructor(stream) {
    super(stream);
    let path = decodeURIComponent(this._url.path);

    if (fileUriRegex.test(this._url.href)) {
      path = path.replace(/^\//, "");
    }

    fs.lstat(path, (error, stat) => {
      if (error) {
        if (error.code === "ENOENT") {
          error = new _util.MissingPDFException(`Missing PDF "${path}".`);
        }

        this._storedError = error;

        this._headersCapability.reject(error);

        return;
      }

      this._contentLength = stat.size;

      this._setReadableStream(fs.createReadStream(path));

      this._headersCapability.resolve();
    });
  }

}

class PDFNodeStreamFsRangeReader extends BaseRangeReader {
  constructor(stream, start, end) {
    super(stream);
    let path = decodeURIComponent(this._url.path);

    if (fileUriRegex.test(this._url.href)) {
      path = path.replace(/^\//, "");
    }

    this._setReadableStream(fs.createReadStream(path, {
      start,
      end: end - 1
    }));
  }

}

/***/ }),
/* 23 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createResponseStatusError = createResponseStatusError;
exports.extractFilenameFromHeader = extractFilenameFromHeader;
exports.validateRangeRequestCapabilities = validateRangeRequestCapabilities;
exports.validateResponseStatus = validateResponseStatus;

var _util = __w_pdfjs_require__(2);

var _content_disposition = __w_pdfjs_require__(24);

function validateRangeRequestCapabilities({
  getResponseHeader,
  isHttp,
  rangeChunkSize,
  disableRange
}) {
  (0, _util.assert)(rangeChunkSize > 0, "Range chunk size must be larger than zero");
  const returnValues = {
    allowRangeRequests: false,
    suggestedLength: undefined
  };
  const length = parseInt(getResponseHeader("Content-Length"), 10);

  if (!Number.isInteger(length)) {
    return returnValues;
  }

  returnValues.suggestedLength = length;

  if (length <= 2 * rangeChunkSize) {
    return returnValues;
  }

  if (disableRange || !isHttp) {
    return returnValues;
  }

  if (getResponseHeader("Accept-Ranges") !== "bytes") {
    return returnValues;
  }

  const contentEncoding = getResponseHeader("Content-Encoding") || "identity";

  if (contentEncoding !== "identity") {
    return returnValues;
  }

  returnValues.allowRangeRequests = true;
  return returnValues;
}

function extractFilenameFromHeader(getResponseHeader) {
  const contentDisposition = getResponseHeader("Content-Disposition");

  if (contentDisposition) {
    let filename = (0, _content_disposition.getFilenameFromContentDispositionHeader)(contentDisposition);

    if (filename.includes("%")) {
      try {
        filename = decodeURIComponent(filename);
      } catch (ex) {}
    }

    if (/\.pdf$/i.test(filename)) {
      return filename;
    }
  }

  return null;
}

function createResponseStatusError(status, url) {
  if (status === 404 || status === 0 && url.startsWith("file:")) {
    return new _util.MissingPDFException('Missing PDF "' + url + '".');
  }

  return new _util.UnexpectedResponseException("Unexpected server response (" + status + ') while retrieving PDF "' + url + '".', status);
}

function validateResponseStatus(status) {
  return status === 200 || status === 206;
}

/***/ }),
/* 24 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getFilenameFromContentDispositionHeader = getFilenameFromContentDispositionHeader;

function getFilenameFromContentDispositionHeader(contentDisposition) {
  let needsEncodingFixup = true;
  let tmp = toParamRegExp("filename\\*", "i").exec(contentDisposition);

  if (tmp) {
    tmp = tmp[1];
    let filename = rfc2616unquote(tmp);
    filename = unescape(filename);
    filename = rfc5987decode(filename);
    filename = rfc2047decode(filename);
    return fixupEncoding(filename);
  }

  tmp = rfc2231getparam(contentDisposition);

  if (tmp) {
    const filename = rfc2047decode(tmp);
    return fixupEncoding(filename);
  }

  tmp = toParamRegExp("filename", "i").exec(contentDisposition);

  if (tmp) {
    tmp = tmp[1];
    let filename = rfc2616unquote(tmp);
    filename = rfc2047decode(filename);
    return fixupEncoding(filename);
  }

  function toParamRegExp(attributePattern, flags) {
    return new RegExp("(?:^|;)\\s*" + attributePattern + "\\s*=\\s*" + "(" + '[^";\\s][^;\\s]*' + "|" + '"(?:[^"\\\\]|\\\\"?)+"?' + ")", flags);
  }

  function textdecode(encoding, value) {
    if (encoding) {
      if (!/^[\x00-\xFF]+$/.test(value)) {
        return value;
      }

      try {
        const decoder = new TextDecoder(encoding, {
          fatal: true
        });
        const bytes = Array.from(value, function (ch) {
          return ch.charCodeAt(0) & 0xff;
        });
        value = decoder.decode(new Uint8Array(bytes));
        needsEncodingFixup = false;
      } catch (e) {
        if (/^utf-?8$/i.test(encoding)) {
          try {
            value = decodeURIComponent(escape(value));
            needsEncodingFixup = false;
          } catch (err) {}
        }
      }
    }

    return value;
  }

  function fixupEncoding(value) {
    if (needsEncodingFixup && /[\x80-\xff]/.test(value)) {
      value = textdecode("utf-8", value);

      if (needsEncodingFixup) {
        value = textdecode("iso-8859-1", value);
      }
    }

    return value;
  }

  function rfc2231getparam(contentDispositionStr) {
    const matches = [];
    let match;
    const iter = toParamRegExp("filename\\*((?!0\\d)\\d+)(\\*?)", "ig");

    while ((match = iter.exec(contentDispositionStr)) !== null) {
      let [, n, quot, part] = match;
      n = parseInt(n, 10);

      if (n in matches) {
        if (n === 0) {
          break;
        }

        continue;
      }

      matches[n] = [quot, part];
    }

    const parts = [];

    for (let n = 0; n < matches.length; ++n) {
      if (!(n in matches)) {
        break;
      }

      let [quot, part] = matches[n];
      part = rfc2616unquote(part);

      if (quot) {
        part = unescape(part);

        if (n === 0) {
          part = rfc5987decode(part);
        }
      }

      parts.push(part);
    }

    return parts.join("");
  }

  function rfc2616unquote(value) {
    if (value.startsWith('"')) {
      const parts = value.slice(1).split('\\"');

      for (let i = 0; i < parts.length; ++i) {
        const quotindex = parts[i].indexOf('"');

        if (quotindex !== -1) {
          parts[i] = parts[i].slice(0, quotindex);
          parts.length = i + 1;
        }

        parts[i] = parts[i].replace(/\\(.)/g, "$1");
      }

      value = parts.join('"');
    }

    return value;
  }

  function rfc5987decode(extvalue) {
    const encodingend = extvalue.indexOf("'");

    if (encodingend === -1) {
      return extvalue;
    }

    const encoding = extvalue.slice(0, encodingend);
    const langvalue = extvalue.slice(encodingend + 1);
    const value = langvalue.replace(/^[^']*'/, "");
    return textdecode(encoding, value);
  }

  function rfc2047decode(value) {
    if (!value.startsWith("=?") || /[\x00-\x19\x80-\xff]/.test(value)) {
      return value;
    }

    return value.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g, function (matches, charset, encoding, text) {
      if (encoding === "q" || encoding === "Q") {
        text = text.replace(/_/g, " ");
        text = text.replace(/=([0-9a-fA-F]{2})/g, function (match, hex) {
          return String.fromCharCode(parseInt(hex, 16));
        });
        return textdecode(charset, text);
      }

      try {
        text = atob(text);
      } catch (e) {}

      return textdecode(charset, text);
    });
  }

  return "";
}

/***/ }),
/* 25 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFNetworkStream = void 0;

var _util = __w_pdfjs_require__(2);

var _network_utils = __w_pdfjs_require__(23);

;
const OK_RESPONSE = 200;
const PARTIAL_CONTENT_RESPONSE = 206;

function getArrayBuffer(xhr) {
  const data = xhr.response;

  if (typeof data !== "string") {
    return data;
  }

  const array = (0, _util.stringToBytes)(data);
  return array.buffer;
}

class NetworkManager {
  constructor(url, args) {
    this.url = url;
    args = args || {};
    this.isHttp = /^https?:/i.test(url);
    this.httpHeaders = this.isHttp && args.httpHeaders || {};
    this.withCredentials = args.withCredentials || false;

    this.getXhr = args.getXhr || function NetworkManager_getXhr() {
      return new XMLHttpRequest();
    };

    this.currXhrId = 0;
    this.pendingRequests = Object.create(null);
  }

  requestRange(begin, end, listeners) {
    const args = {
      begin,
      end
    };

    for (const prop in listeners) {
      args[prop] = listeners[prop];
    }

    return this.request(args);
  }

  requestFull(listeners) {
    return this.request(listeners);
  }

  request(args) {
    const xhr = this.getXhr();
    const xhrId = this.currXhrId++;
    const pendingRequest = this.pendingRequests[xhrId] = {
      xhr
    };
    xhr.open("GET", this.url);
    xhr.withCredentials = this.withCredentials;

    for (const property in this.httpHeaders) {
      const value = this.httpHeaders[property];

      if (typeof value === "undefined") {
        continue;
      }

      xhr.setRequestHeader(property, value);
    }

    if (this.isHttp && "begin" in args && "end" in args) {
      xhr.setRequestHeader("Range", `bytes=${args.begin}-${args.end - 1}`);
      pendingRequest.expectedStatus = PARTIAL_CONTENT_RESPONSE;
    } else {
      pendingRequest.expectedStatus = OK_RESPONSE;
    }

    xhr.responseType = "arraybuffer";

    if (args.onError) {
      xhr.onerror = function (evt) {
        args.onError(xhr.status);
      };
    }

    xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
    xhr.onprogress = this.onProgress.bind(this, xhrId);
    pendingRequest.onHeadersReceived = args.onHeadersReceived;
    pendingRequest.onDone = args.onDone;
    pendingRequest.onError = args.onError;
    pendingRequest.onProgress = args.onProgress;
    xhr.send(null);
    return xhrId;
  }

  onProgress(xhrId, evt) {
    const pendingRequest = this.pendingRequests[xhrId];

    if (!pendingRequest) {
      return;
    }

    if (pendingRequest.onProgress) {
      pendingRequest.onProgress(evt);
    }
  }

  onStateChange(xhrId, evt) {
    const pendingRequest = this.pendingRequests[xhrId];

    if (!pendingRequest) {
      return;
    }

    const xhr = pendingRequest.xhr;

    if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
      pendingRequest.onHeadersReceived();
      delete pendingRequest.onHeadersReceived;
    }

    if (xhr.readyState !== 4) {
      return;
    }

    if (!(xhrId in this.pendingRequests)) {
      return;
    }

    delete this.pendingRequests[xhrId];

    if (xhr.status === 0 && this.isHttp) {
      if (pendingRequest.onError) {
        pendingRequest.onError(xhr.status);
      }

      return;
    }

    const xhrStatus = xhr.status || OK_RESPONSE;
    const ok_response_on_range_request = xhrStatus === OK_RESPONSE && pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;

    if (!ok_response_on_range_request && xhrStatus !== pendingRequest.expectedStatus) {
      if (pendingRequest.onError) {
        pendingRequest.onError(xhr.status);
      }

      return;
    }

    const chunk = getArrayBuffer(xhr);

    if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
      const rangeHeader = xhr.getResponseHeader("Content-Range");
      const matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
      pendingRequest.onDone({
        begin: parseInt(matches[1], 10),
        chunk
      });
    } else if (chunk) {
      pendingRequest.onDone({
        begin: 0,
        chunk
      });
    } else if (pendingRequest.onError) {
      pendingRequest.onError(xhr.status);
    }
  }

  getRequestXhr(xhrId) {
    return this.pendingRequests[xhrId].xhr;
  }

  isPendingRequest(xhrId) {
    return xhrId in this.pendingRequests;
  }

  abortRequest(xhrId) {
    const xhr = this.pendingRequests[xhrId].xhr;
    delete this.pendingRequests[xhrId];
    xhr.abort();
  }

}

class PDFNetworkStream {
  constructor(source) {
    this._source = source;
    this._manager = new NetworkManager(source.url, {
      httpHeaders: source.httpHeaders,
      withCredentials: source.withCredentials
    });
    this._rangeChunkSize = source.rangeChunkSize;
    this._fullRequestReader = null;
    this._rangeRequestReaders = [];
  }

  _onRangeRequestReaderClosed(reader) {
    const i = this._rangeRequestReaders.indexOf(reader);

    if (i >= 0) {
      this._rangeRequestReaders.splice(i, 1);
    }
  }

  getFullReader() {
    (0, _util.assert)(!this._fullRequestReader, "PDFNetworkStream.getFullReader can only be called once.");
    this._fullRequestReader = new PDFNetworkStreamFullRequestReader(this._manager, this._source);
    return this._fullRequestReader;
  }

  getRangeReader(begin, end) {
    const reader = new PDFNetworkStreamRangeRequestReader(this._manager, begin, end);
    reader.onClosed = this._onRangeRequestReaderClosed.bind(this);

    this._rangeRequestReaders.push(reader);

    return reader;
  }

  cancelAllRequests(reason) {
    if (this._fullRequestReader) {
      this._fullRequestReader.cancel(reason);
    }

    const readers = this._rangeRequestReaders.slice(0);

    readers.forEach(function (reader) {
      reader.cancel(reason);
    });
  }

}

exports.PDFNetworkStream = PDFNetworkStream;

class PDFNetworkStreamFullRequestReader {
  constructor(manager, source) {
    this._manager = manager;
    const args = {
      onHeadersReceived: this._onHeadersReceived.bind(this),
      onDone: this._onDone.bind(this),
      onError: this._onError.bind(this),
      onProgress: this._onProgress.bind(this)
    };
    this._url = source.url;
    this._fullRequestId = manager.requestFull(args);
    this._headersReceivedCapability = (0, _util.createPromiseCapability)();
    this._disableRange = source.disableRange || false;
    this._contentLength = source.length;
    this._rangeChunkSize = source.rangeChunkSize;

    if (!this._rangeChunkSize && !this._disableRange) {
      this._disableRange = true;
    }

    this._isStreamingSupported = false;
    this._isRangeSupported = false;
    this._cachedChunks = [];
    this._requests = [];
    this._done = false;
    this._storedError = undefined;
    this._filename = null;
    this.onProgress = null;
  }

  _onHeadersReceived() {
    const fullRequestXhrId = this._fullRequestId;

    const fullRequestXhr = this._manager.getRequestXhr(fullRequestXhrId);

    const getResponseHeader = name => {
      return fullRequestXhr.getResponseHeader(name);
    };

    const {
      allowRangeRequests,
      suggestedLength
    } = (0, _network_utils.validateRangeRequestCapabilities)({
      getResponseHeader,
      isHttp: this._manager.isHttp,
      rangeChunkSize: this._rangeChunkSize,
      disableRange: this._disableRange
    });

    if (allowRangeRequests) {
      this._isRangeSupported = true;
    }

    this._contentLength = suggestedLength || this._contentLength;
    this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader);

    if (this._isRangeSupported) {
      this._manager.abortRequest(fullRequestXhrId);
    }

    this._headersReceivedCapability.resolve();
  }

  _onDone(args) {
    if (args) {
      if (this._requests.length > 0) {
        const requestCapability = this._requests.shift();

        requestCapability.resolve({
          value: args.chunk,
          done: false
        });
      } else {
        this._cachedChunks.push(args.chunk);
      }
    }

    this._done = true;

    if (this._cachedChunks.length > 0) {
      return;
    }

    this._requests.forEach(function (requestCapability) {
      requestCapability.resolve({
        value: undefined,
        done: true
      });
    });

    this._requests = [];
  }

  _onError(status) {
    const url = this._url;
    const exception = (0, _network_utils.createResponseStatusError)(status, url);
    this._storedError = exception;

    this._headersReceivedCapability.reject(exception);

    this._requests.forEach(function (requestCapability) {
      requestCapability.reject(exception);
    });

    this._requests = [];
    this._cachedChunks = [];
  }

  _onProgress(data) {
    if (this.onProgress) {
      this.onProgress({
        loaded: data.loaded,
        total: data.lengthComputable ? data.total : this._contentLength
      });
    }
  }

  get filename() {
    return this._filename;
  }

  get isRangeSupported() {
    return this._isRangeSupported;
  }

  get isStreamingSupported() {
    return this._isStreamingSupported;
  }

  get contentLength() {
    return this._contentLength;
  }

  get headersReady() {
    return this._headersReceivedCapability.promise;
  }

  async read() {
    if (this._storedError) {
      throw this._storedError;
    }

    if (this._cachedChunks.length > 0) {
      const chunk = this._cachedChunks.shift();

      return {
        value: chunk,
        done: false
      };
    }

    if (this._done) {
      return {
        value: undefined,
        done: true
      };
    }

    const requestCapability = (0, _util.createPromiseCapability)();

    this._requests.push(requestCapability);

    return requestCapability.promise;
  }

  cancel(reason) {
    this._done = true;

    this._headersReceivedCapability.reject(reason);

    this._requests.forEach(function (requestCapability) {
      requestCapability.resolve({
        value: undefined,
        done: true
      });
    });

    this._requests = [];

    if (this._manager.isPendingRequest(this._fullRequestId)) {
      this._manager.abortRequest(this._fullRequestId);
    }

    this._fullRequestReader = null;
  }

}

class PDFNetworkStreamRangeRequestReader {
  constructor(manager, begin, end) {
    this._manager = manager;
    const args = {
      onDone: this._onDone.bind(this),
      onProgress: this._onProgress.bind(this)
    };
    this._requestId = manager.requestRange(begin, end, args);
    this._requests = [];
    this._queuedChunk = null;
    this._done = false;
    this.onProgress = null;
    this.onClosed = null;
  }

  _close() {
    if (this.onClosed) {
      this.onClosed(this);
    }
  }

  _onDone(data) {
    const chunk = data.chunk;

    if (this._requests.length > 0) {
      const requestCapability = this._requests.shift();

      requestCapability.resolve({
        value: chunk,
        done: false
      });
    } else {
      this._queuedChunk = chunk;
    }

    this._done = true;

    this._requests.forEach(function (requestCapability) {
      requestCapability.resolve({
        value: undefined,
        done: true
      });
    });

    this._requests = [];

    this._close();
  }

  _onProgress(evt) {
    if (!this.isStreamingSupported && this.onProgress) {
      this.onProgress({
        loaded: evt.loaded
      });
    }
  }

  get isStreamingSupported() {
    return false;
  }

  async read() {
    if (this._queuedChunk !== null) {
      const chunk = this._queuedChunk;
      this._queuedChunk = null;
      return {
        value: chunk,
        done: false
      };
    }

    if (this._done) {
      return {
        value: undefined,
        done: true
      };
    }

    const requestCapability = (0, _util.createPromiseCapability)();

    this._requests.push(requestCapability);

    return requestCapability.promise;
  }

  cancel(reason) {
    this._done = true;

    this._requests.forEach(function (requestCapability) {
      requestCapability.resolve({
        value: undefined,
        done: true
      });
    });

    this._requests = [];

    if (this._manager.isPendingRequest(this._requestId)) {
      this._manager.abortRequest(this._requestId);
    }

    this._close();
  }

}

/***/ }),
/* 26 */
/***/ (function(module, exports, __w_pdfjs_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PDFFetchStream = void 0;

var _util = __w_pdfjs_require__(2);

var _network_utils = __w_pdfjs_require__(23);

;

function createFetchOptions(headers, withCredentials, abortController) {
  return {
    method: "GET",
    headers,
    signal: abortController && abortController.signal,
    mode: "cors",
    credentials: withCredentials ? "include" : "same-origin",
    redirect: "follow"
  };
}

function createHeaders(httpHeaders) {
  const headers = new Headers();

  for (const property in httpHeaders) {
    const value = httpHeaders[property];

    if (typeof value === "undefined") {
      continue;
    }

    headers.append(property, value);
  }

  return headers;
}

class PDFFetchStream {
  constructor(source) {
    this.source = source;
    this.isHttp = /^https?:/i.test(source.url);
    this.httpHeaders = this.isHttp && source.httpHeaders || {};
    this._fullRequestReader = null;
    this._rangeRequestReaders = [];
  }

  get _progressiveDataLength() {
    return this._fullRequestReader ? this._fullRequestReader._loaded : 0;
  }

  getFullReader() {
    (0, _util.assert)(!this._fullRequestReader, "PDFFetchStream.getFullReader can only be called once.");
    this._fullRequestReader = new PDFFetchStreamReader(this);
    return this._fullRequestReader;
  }

  getRangeReader(begin, end) {
    if (end <= this._progressiveDataLength) {
      return null;
    }

    const reader = new PDFFetchStreamRangeReader(this, begin, end);

    this._rangeRequestReaders.push(reader);

    return reader;
  }

  cancelAllRequests(reason) {
    if (this._fullRequestReader) {
      this._fullRequestReader.cancel(reason);
    }

    const readers = this._rangeRequestReaders.slice(0);

    readers.forEach(function (reader) {
      reader.cancel(reason);
    });
  }

}

exports.PDFFetchStream = PDFFetchStream;

class PDFFetchStreamReader {
  constructor(stream) {
    this._stream = stream;
    this._reader = null;
    this._loaded = 0;
    this._filename = null;
    const source = stream.source;
    this._withCredentials = source.withCredentials || false;
    this._contentLength = source.length;
    this._headersCapability = (0, _util.createPromiseCapability)();
    this._disableRange = source.disableRange || false;
    this._rangeChunkSize = source.rangeChunkSize;

    if (!this._rangeChunkSize && !this._disableRange) {
      this._disableRange = true;
    }

    if (typeof AbortController !== "undefined") {
      this._abortController = new AbortController();
    }

    this._isStreamingSupported = !source.disableStream;
    this._isRangeSupported = !source.disableRange;
    this._headers = createHeaders(this._stream.httpHeaders);
    const url = source.url;
    fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then(response => {
      if (!(0, _network_utils.validateResponseStatus)(response.status)) {
        throw (0, _network_utils.createResponseStatusError)(response.status, url);
      }

      this._reader = response.body.getReader();

      this._headersCapability.resolve();

      const getResponseHeader = name => {
        return response.headers.get(name);
      };

      const {
        allowRangeRequests,
        suggestedLength
      } = (0, _network_utils.validateRangeRequestCapabilities)({
        getResponseHeader,
        isHttp: this._stream.isHttp,
        rangeChunkSize: this._rangeChunkSize,
        disableRange: this._disableRange
      });
      this._isRangeSupported = allowRangeRequests;
      this._contentLength = suggestedLength || this._contentLength;
      this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader);

      if (!this._isStreamingSupported && this._isRangeSupported) {
        this.cancel(new _util.AbortException("Streaming is disabled."));
      }
    }).catch(this._headersCapability.reject);
    this.onProgress = null;
  }

  get headersReady() {
    return this._headersCapability.promise;
  }

  get filename() {
    return this._filename;
  }

  get contentLength() {
    return this._contentLength;
  }

  get isRangeSupported() {
    return this._isRangeSupported;
  }

  get isStreamingSupported() {
    return this._isStreamingSupported;
  }

  async read() {
    await this._headersCapability.promise;
    const {
      value,
      done
    } = await this._reader.read();

    if (done) {
      return {
        value,
        done
      };
    }

    this._loaded += value.byteLength;

    if (this.onProgress) {
      this.onProgress({
        loaded: this._loaded,
        total: this._contentLength
      });
    }

    const buffer = new Uint8Array(value).buffer;
    return {
      value: buffer,
      done: false
    };
  }

  cancel(reason) {
    if (this._reader) {
      this._reader.cancel(reason);
    }

    if (this._abortController) {
      this._abortController.abort();
    }
  }

}

class PDFFetchStreamRangeReader {
  constructor(stream, begin, end) {
    this._stream = stream;
    this._reader = null;
    this._loaded = 0;
    const source = stream.source;
    this._withCredentials = source.withCredentials || false;
    this._readCapability = (0, _util.createPromiseCapability)();
    this._isStreamingSupported = !source.disableStream;

    if (typeof AbortController !== "undefined") {
      this._abortController = new AbortController();
    }

    this._headers = createHeaders(this._stream.httpHeaders);

    this._headers.append("Range", `bytes=${begin}-${end - 1}`);

    const url = source.url;
    fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then(response => {
      if (!(0, _network_utils.validateResponseStatus)(response.status)) {
        throw (0, _network_utils.createResponseStatusError)(response.status, url);
      }

      this._readCapability.resolve();

      this._reader = response.body.getReader();
    }).catch(reason => {
      if (reason && reason.name === "AbortError") {
        return;
      }

      throw reason;
    });
    this.onProgress = null;
  }

  get isStreamingSupported() {
    return this._isStreamingSupported;
  }

  async read() {
    await this._readCapability.promise;
    const {
      value,
      done
    } = await this._reader.read();

    if (done) {
      return {
        value,
        done
      };
    }

    this._loaded += value.byteLength;

    if (this.onProgress) {
      this.onProgress({
        loaded: this._loaded
      });
    }

    const buffer = new Uint8Array(value).buffer;
    return {
      value: buffer,
      done: false
    };
  }

  cancel(reason) {
    if (this._reader) {
      this._reader.cancel(reason);
    }

    if (this._abortController) {
      this._abortController.abort();
    }
  }

}

/***/ })
/******/ ]);
});
//# sourceMappingURL=pdf.js.map
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(47), __webpack_require__(77).Buffer))/* Copyright 2020 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

(typeof window !== "undefined"
  ? window
  : {}
).pdfjsWorker = __webpack_require__(3653);
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Worker_fn; });
function Worker_fn() {
  return new Worker(__webpack_require__.p + "static/js/pdf.worker.947c812aaca119219745.worker.js");
}
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(722);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56efd4ac_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1321);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3651)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-56efd4ac"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56efd4ac_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56efd4ac_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fileView_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3652);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("b6d5855e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "#app[data-v-56efd4ac],body[data-v-56efd4ac],html[data-v-56efd4ac]{margin:0;padding:0;width:100%;height:100%;overflow:hidden}.pdf-viewer-container[data-v-56efd4ac]{width:100%;height:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _pdfViewerNew = _interopRequireDefault(__webpack_require__(1477));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PdfViewer: _pdfViewerNew.default
  },
  data: function data() {
    return {
      pdfSrc: '',
      // PDF 文件的 URL
      fileNo: this.$route.query.fileNo,
      fileId: this.$route.query.fileId,
      navigationId: this.$route.query.navigationId,
      pageNum: 1,
      pageSize: 1,
      userVipType: '',
      isCollect: '',
      timing: '',
      time: 0,
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      isShow: false
    };
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that, userData;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            _this.isAdminPass = _this.$route.query.isAdminPass;
            _this.isAccessControl = _this.$route.query.isAccessControl;
            _this.isVip = _this.$route.query.isVip;
            _this.isSvip = _this.$route.query.isSvip;
            _this.isAccess = _this.$route.query.isAccess;
            that = _this;
            _context.next = 1;
            return _this.getUserStatus();
          case 1:
            userData = _context.sent;
            _this.userVipType = userData.userVipType;
            if (!(_this.isAccessControl == 1)) {
              _context.next = 9;
              break;
            }
            if (_this._Util.isSVip(_this.userVipType)) {
              _context.next = 7;
              break;
            }
            if (!(_this.isSvip == 1 && _this.isAccess != 1)) {
              _context.next = 2;
              break;
            }
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: '资料SVIP专享,请您先开通SVIP再查看资料！',
              confirmButtonText: '确认',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                uni.navigateTo({
                  url: '/pages/mine/vip/index?type=1&vipType=1'
                });
                _this.clickFlag = true;
              } else {
                _this.clickFlag = true;
              }
            });
            return _context.abrupt("return");
          case 2:
            if (_this._Util.isVip(_this.userVipType)) {
              _context.next = 5;
              break;
            }
            if (!(_this.isVip == 1 && _this.isAccess != 1)) {
              _context.next = 3;
              break;
            }
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: '资料VIP专享,请您先开通VIP再查看资料！',
              confirmButtonText: '确认',
              showCancelButton: true,
              cancelButtonText: '取消'
            }).then(function (action) {
              if (action === 'confirm') {
                uni.navigateTo({
                  url: '/pages/mine/vip/index?type=1&vipType=2'
                });
                _this.clickFlag = true;
              } else {
                _this.clickFlag = true;
              }
            });
            return _context.abrupt("return");
          case 3:
            _this.isShow = true;
            _this.getPicList();
          case 4:
            _context.next = 6;
            break;
          case 5:
            _this.isShow = true;
            _this.getPicList();
          case 6:
            _context.next = 8;
            break;
          case 7:
            _this.isShow = true;
            _this.getPicList();
          case 8:
            _context.next = 10;
            break;
          case 9:
            _this.isShow = true;
            _this.getPicList();
          case 10:
            // that._Util.collectPageViewNew(
            //   {
            //     type: 1,
            //     postUrl: that._Api.POST_COLLECT_NEW,
            //     source: '',
            //     target: that.fileId,
            //     remark: '资料详情',
            //     searchKey: ''
            //   },
            //   that
            // )
            that.timing = setInterval(function () {
              that.time++;
            }, 1000);
          case 11:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: that.fileId,
        remark: '资料详情,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    getUserStatus: function getUserStatus() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this2);
      });
    },
    getPicList: function getPicList() {
      var that = this;
      /* 从搜索结果页进入图集*/
      if (that.$route.query.fromPage == 'soso') {
        that._Util.post(that._Api.HOSTOLD + 'search-api/product/getDataDetails', {
          dataNo: that.fileNo,
          navigationId: that.navigationId,
          pageNum: that.pageNum,
          pageSize: that.pageSize
        }, function (data) {
          that.pdfSrc = data.fileUrl;
          that.isCollect = data.isCollect;
        }, function () {}, that);
        return;
      }
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(305);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d6bf0928_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(890);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(2108)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-d6bf0928"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d6bf0928_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_d6bf0928_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_pdfViewerNew3_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2109);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3d40a1fe", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".pdf-viewer-container[data-v-d6bf0928]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.toolbar[data-v-d6bf0928]{padding:10px;background:#f0f0f0;gap:10px;-ms-flex-align:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.pdf-viewer[data-v-d6bf0928],.toolbar[data-v-d6bf0928]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.pdf-viewer[data-v-d6bf0928]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:auto;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;background-color:#525659;margin-bottom:3rem}canvas[data-v-d6bf0928]{margin:20px 0}.controls[data-v-d6bf0928]{bottom:0;height:8vh}.controls2[data-v-d6bf0928],.controls[data-v-d6bf0928]{box-sizing:border-box;padding:0 15px;position:fixed;left:0;width:100%;z-index:100;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:#494949;box-shadow:0 0 15px #2c2c2c}.controls2[data-v-d6bf0928]{top:0;height:5vh;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff}.controls2 button[data-v-d6bf0928]{color:#fff}.controls2 button[data-v-d6bf0928]:disabled{color:#b8b8b8}.controls button[data-v-d6bf0928]{padding:10px;color:#fff;border:none;border-radius:5px;cursor:pointer;background:#404040;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:1px solid #383838;margin:0 10px}#zoomContainer[data-v-d6bf0928]{cursor:-webkit-grab;cursor:grab;overflow:auto;width:100%;height:100%}#zoomContainer[data-v-d6bf0928]:active{cursor:-webkit-grabbing;cursor:grabbing}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
var _typeof = __webpack_require__(69);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var pdfjsLib = _interopRequireWildcard(__webpack_require__(2116));
__webpack_require__(2122);
var _mintUi = __webpack_require__(7);
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'PdfViewer',
  props: {
    pdfUrl: {
      type: String,
      required: true
    },
    fileId: {
      type: String,
      required: true
    },
    navigationId: {
      type: String,
      required: true
    },
    isCollect: {
      type: String,
      required: true
    },
    showCollect: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      pdfDoc: null,
      pageCount: 0,
      currentPage: 1,
      scale: 1.0,
      minScale: 0.5,
      maxScale: 10,
      pages: [],
      offsetX: 0,
      // 水平拖动距离
      offsetY: 0,
      // 垂直拖动距离
      contentWidth: 0,
      contentHeight: 0,
      touchState: {
        isDragging: false,
        isScaling: false,
        startX: 0,
        startY: 0,
        startOffsetX: 0,
        startOffsetY: 0,
        initialDistance: 0,
        initialScale: 1.0
      },
      rotateDegree: 0,
      pageImages: []
    };
  },
  watch: {
    pdfUrl: function pdfUrl() {
      this.loadPdf();
    },
    currentPage: function currentPage() {
      this.renderPage(this.currentPage);
    }
  },
  mounted: function mounted() {
    var _this = this;
    var isDragging = false;
    var startY = 0;
    var scrollTop = 0;
    var startX = 0;
    var scrollLeft = 0;
    var webview = document.getElementById('zoomContainer');
    webview.addEventListener('mousedown', function (e) {
      isDragging = true;
      startY = e.clientY;
      scrollTop = webview.scrollTop;
      startX = e.clientX;
      scrollLeft = webview.scrollLeft;
      _this.touchState.startOffsetX = _this.offsetX;
      _this.touchState.startOffsetY = _this.offsetY;
      webview.style.cursor = 'grabbing';
      e.preventDefault();
    });
    document.addEventListener('mousemove', function (e) {
      if (!isDragging) return;
      console.log(e);
      console.log(webview.scrollLeft);
      var y = e.clientY;
      var x = e.clientX;
      var walk = (y - startY) * 2; // 乘以2可以增加滚动速度
      var walkX = (x - startX) * 2; // 乘以2可以增加滚动速度
      webview.scrollTop = scrollTop - walk;
      webview.scrollLeft = scrollLeft - walkX;
      var deltaX = e.clientX - startX;
      var deltaY = e.clientY - startY;
      _this.offsetX = _this.touchState.startOffsetX + deltaX / _this.scale;
      _this.offsetY = _this.touchState.startOffsetY + deltaY / _this.scale;
      // this.constrainPosition()
    });
    document.addEventListener('mouseup', function () {
      isDragging = false;
      webview.style.cursor = 'grab';
    });
    document.addEventListener('mouseleave', function () {
      isDragging = false;
      webview.style.cursor = 'grab';
    });
    this.loadPdf();
  },
  methods: {
    downLoadFile: function downLoadFile() {
      var that = this;
      that.$http.post(that._Api.HOSTOLD + 'user-api/app/document/download/auth?id=' + that.fileId, {}).then(function (res) {
        if (res.data.status == 200) {
          var token = res.data.data;
          var allAddr = location.origin + '/downloadFile/downloadFile?token=' + token;
          setTimeout(function () {
            document.getElementById('addr').value = allAddr;
            var copyCon = document.getElementById('addr');
            copyCon.select(); // 选择对象
            document.execCommand('Copy'); // 执行浏览器复制命令
            (0, _mintUi.Toast)({
              message: '链接已复制，请打开浏览器粘贴下载资料',
              duration: 1500
            });
          }, 100);
        } else {
          (0, _mintUi.Toast)({
            message: res.data.msg,
            duration: 1500
          });
        }
      }).catch(function (error) {
        console.log(error);
      });
    },
    collectOp: function collectOp() {
      var _this2 = this;
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search-api/dataOperate/collection', {
        dataId: that.fileId,
        type: 1,
        nationId: that.navigationId,
        level: this.$route.query.level == 1 ? 1 : 0
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        if (_this2.isCollect == 1) {
          _this2.isCollect = 0;
        } else {
          _this2.isCollect = 1;
        }
      }, function () {}, that);
    },
    loadPdf: function loadPdf() {
      var _this3 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var loadingTask, _t;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.prev = 0;
              // 加载PDF文档
              pdfjsLib.GlobalWorkerOptions.workerSrc = '//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.5.207/pdf.worker.min.js';
              loadingTask = pdfjsLib.getDocument(_this3.pdfUrl);
              _context.next = 1;
              return loadingTask.promise;
            case 1:
              _this3.pdfDoc = _context.sent;
              _this3.pageCount = _this3.pdfDoc.numPages;

              // 初始化页面数组
              _this3.pages = Array.from({
                length: _this3.pageCount
              }, function (_, i) {
                return {
                  pageNumber: i + 1
                };
              });

              // 渲染第一页
              _this3.currentPage = 1;
              _context.next = 2;
              return _this3.renderPage(_this3.currentPage);
            case 2:
              _context.next = 4;
              break;
            case 3:
              _context.prev = 3;
              _t = _context["catch"](0);
              console.error('PDF加载错误:', _t);
            case 4:
            case "end":
              return _context.stop();
          }
        }, _callee, null, [[0, 3]]);
      }))();
    },
    renderPage: function renderPage(pageNum) {
      var _this4 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var page, u, isiOS, viewport, canvas, context, renderContext, _t2;
        return _regenerator.default.wrap(function (_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              if (_this4.pdfDoc) {
                _context2.next = 1;
                break;
              }
              return _context2.abrupt("return");
            case 1:
              _context2.prev = 1;
              _context2.next = 2;
              return _this4.pdfDoc.getPage(pageNum);
            case 2:
              page = _context2.sent;
              u = navigator.userAgent;
              isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
              if (isiOS) {
                viewport = page.getViewport({
                  scale: 1
                });
              } else {
                viewport = page.getViewport({
                  scale: 5
                });
              }

              // const canvas = this.$refs[`canvas-${pageNum}`]
              canvas = document.createElement('canvas');
              context = canvas.getContext('2d');
              canvas.height = viewport.height;
              canvas.width = viewport.width;
              canvas.style.width = '100%';
              canvas.style.height = '100%';
              canvas.style.objectFit = 'contain';
              _this4.contentWidth = viewport.width;
              _this4.contentHeight = viewport.height;
              renderContext = {
                canvasContext: context,
                viewport: viewport
              };
              _context2.next = 3;
              return page.render(renderContext).promise;
            case 3:
              _this4.pageImages.push(canvas.toDataURL().replace(/[\r\n]/g, ''));
              _context2.next = 5;
              break;
            case 4:
              _context2.prev = 4;
              _t2 = _context2["catch"](1);
              console.error('页面渲染错误:', _t2);
            case 5:
            case "end":
              return _context2.stop();
          }
        }, _callee2, null, [[1, 4]]);
      }))();
    },
    zoomIn: function zoomIn() {
      this.scale = Math.min(this.scale + 0.5, 10.0);
      this.constrainPosition();
    },
    zoomOut: function zoomOut() {
      this.scale = Math.max(this.scale - 0.5, 0.5);
      this.constrainPosition();
    },
    rotateLeft: function rotateLeft() {
      this.rotateDegree = this.rotateDegree - 90;
    },
    rotateRight: function rotateRight() {
      this.rotateDegree = this.rotateDegree + 90;
    },
    prevPage: function prevPage() {
      if (this.currentPage > 1) {
        this.currentPage--;
      }
    },
    nextPage: function nextPage() {
      if (this.currentPage < this.pageCount) {
        this.currentPage++;
      }
    },
    handleTouchStart: function handleTouchStart(e) {
      if (e.touches.length === 1) {
        // 单指拖动
        this.touchState.isDragging = true;
        this.touchState.startX = e.touches[0].clientX;
        this.touchState.startY = e.touches[0].clientY;
        this.touchState.startOffsetX = this.offsetX;
        this.touchState.startOffsetY = this.offsetY;
      } else if (e.touches.length === 2) {
        // 双指缩放
        this.touchState.isScaling = true;
        this.touchState.isDragging = false;
        var touch1 = e.touches[0];
        var touch2 = e.touches[1];
        this.touchState.initialDistance = Math.hypot(touch2.clientX - touch1.clientX, touch2.clientY - touch1.clientY);
        this.touchState.initialScale = this.scale;
      }
    },
    handleTouchMove: function handleTouchMove(e) {
      if (this.touchState.isDragging && e.touches.length === 1) {
        // 单指拖动处理
        var touch = e.touches[0];
        var deltaX = touch.clientX - this.touchState.startX;
        var deltaY = touch.clientY - this.touchState.startY;
        this.offsetX = this.touchState.startOffsetX + deltaX / this.scale;
        this.offsetY = this.touchState.startOffsetY + deltaY / this.scale;
        this.constrainPosition();
      } else if (this.touchState.isScaling && e.touches.length === 2) {
        // 双指缩放处理
        var touch1 = e.touches[0];
        var touch2 = e.touches[1];
        var currentDistance = Math.hypot(touch2.clientX - touch1.clientX, touch2.clientY - touch1.clientY);
        if (this.touchState.initialDistance > 0) {
          // 计算新的缩放比例
          var newScale = currentDistance / this.touchState.initialDistance * this.touchState.initialScale;
          this.scale = Math.max(this.minScale, Math.min(this.maxScale, newScale));
          this.constrainPosition();
        }
      }
    },
    handleTouchEnd: function handleTouchEnd(e) {
      if (e.touches.length === 0) {
        // 所有手指都离开屏幕
        // if (this.touchState.isDragging && !this.touchState.isScaling) {
        //   // 检测滑动翻页
        //   const touch = e.changedTouches[0]
        //   const deltaX = touch.clientX - this.touchState.startX
        //
        //   // 水平滑动超过 100px 时翻页
        //   if (Math.abs(deltaX) > 100) {
        //     if (deltaX > 0) {
        //       this.prevPage()
        //     } else {
        //       this.nextPage()
        //     }
        //   }
        // }
      }

      // 重置触摸状态
      this.touchState.isDragging = false;
      this.touchState.isScaling = false;
      this.touchState.initialDistance = 0;
    },
    constrainPosition: function constrainPosition() {
      var viewport = this.$refs.pdfViewer;
      if (!viewport) return;

      // 计算最大偏移量
      var scaledWidth = this.contentWidth * this.scale;
      var scaledHeight = this.contentHeight * this.scale;
      var maxOffsetX = Math.max(0, (scaledWidth - viewport.clientWidth) / 2 / this.scale);
      var maxOffsetY = Math.max(0, (scaledHeight - viewport.clientHeight) / 2 / this.scale);
      console.log(maxOffsetX, maxOffsetY);
      // 限制偏移量在合理范围内
      this.offsetX = Math.max(-maxOffsetX, Math.min(maxOffsetX, this.offsetX));
      this.offsetY = Math.max(-maxOffsetY, Math.min(maxOffsetY, this.offsetY));
    }
  }
};/* (ignored) *//* (ignored) *//* (ignored) *//* (ignored) *//* (ignored) *//* (ignored) *//* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"pdf-viewer-container"},[_c('div',{staticClass:"controls"},[_c('button',{on:{"click":_vm.rotateRight}},[_c('img',{attrs:{"src":__webpack_require__(2110)}})]),_vm._v(" "),(_vm.showCollect)?_c('button',{on:{"click":_vm.collectOp}},[(_vm.isCollect==0)?_c('img',{attrs:{"src":__webpack_require__(1365)}}):_vm._e(),_vm._v(" "),(_vm.isCollect==1)?_c('img',{attrs:{"src":__webpack_require__(1366)}}):_vm._e()]):_vm._e(),_vm._v(" "),_c('button',{on:{"click":_vm.zoomOut}},[_c('img',{attrs:{"src":__webpack_require__(2111)}})]),_vm._v(" "),_c('button',{on:{"click":_vm.zoomIn}},[_c('img',{attrs:{"src":__webpack_require__(2112)}})]),_vm._v(" "),(_vm.showCollect)?_c('button',{on:{"click":function($event){return _vm.downLoadFile()}}},[_c('img',{attrs:{"src":__webpack_require__(2113)}})]):_vm._e(),_vm._v(" "),_c('input',{staticStyle:{"position":"absolute","bottom":"-10000px"},attrs:{"readonly":"","type":"text","id":"addr","value":""}})]),_vm._v(" "),_c('div',{staticClass:"controls2"},[_c('button',{attrs:{"disabled":_vm.currentPage <= 1},on:{"click":_vm.prevPage}},[_vm._v("上一页")]),_vm._v(" "),_c('span',[_vm._v("页码: "+_vm._s(_vm.currentPage)+" / "+_vm._s(_vm.pageCount))]),_vm._v(" "),_c('button',{attrs:{"disabled":_vm.currentPage >= _vm.pageCount},on:{"click":_vm.nextPage}},[_vm._v("下一页")])]),_vm._v(" "),_c('div',{ref:"pdfViewer",staticClass:"pdf-viewer",attrs:{"id":"zoomContainer"},on:{"touchstart":_vm.handleTouchStart,"touchmove":_vm.handleTouchMove,"touchend":_vm.handleTouchEnd,"touchcancel":_vm.handleTouchEnd}},_vm._l((_vm.pages),function(page){return (page.pageNumber === _vm.currentPage)?_c('div',{key:page.pageNumber,ref:'canvas-' + page.pageNumber,refInFor:true,staticClass:"pdf-page",style:({transform: ("scale(" + _vm.scale + ") translate(" + _vm.offsetX + "px, " + _vm.offsetY + "px) rotate(" + _vm.rotateDegree + "deg)")})},[_c('img',{staticClass:"pdf-image",staticStyle:{"width":"100%","height":"100%","object-fit":"contain"},attrs:{"src":_vm.pageImages[_vm.currentPage-1]}})]):_vm._e()}),0)])}
var staticRenderFns = []
module.exports = __webpack_require__.p + "static/img/xz.77a1706.png";module.exports = __webpack_require__.p + "static/img/small.f0e5a66.png";module.exports = __webpack_require__.p + "static/img/big.3a80b74.png";module.exports = __webpack_require__.p + "static/img/download.714bd8e.png";/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isShow)?_c('div',{staticClass:"pdf-viewer-container"},[(_vm.pdfSrc)?_c('PdfViewer',{attrs:{"pdf-url":_vm.pdfSrc,"fileId":_vm.fileId,"isCollect":_vm.isCollect,"navigationId":_vm.navigationId}}):_vm._e()],1):_vm._e()}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(723);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_346d3cdb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1322);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3654)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-346d3cdb"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_346d3cdb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_346d3cdb_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fileViewAssist_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3655);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("03aedbcc", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "#app[data-v-346d3cdb],body[data-v-346d3cdb],html[data-v-346d3cdb]{margin:0;padding:0;width:100%;height:100%;overflow:hidden}.pdf-viewer-container[data-v-346d3cdb]{width:100%;height:100%}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _pdfViewerNew = _interopRequireDefault(__webpack_require__(1477));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    PdfViewer: _pdfViewerNew.default
  },
  data: function data() {
    return {
      pdfSrc: '',
      // PDF 文件的 URL
      fileNo: this.$route.query.fileNo,
      fileId: this.$route.query.fileId,
      navigationId: this.$route.query.navigationId,
      pageNum: 1,
      pageSize: 1,
      userVipType: '',
      isCollect: '',
      timing: '',
      time: 0,
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      isShow: false,
      showCollect: false
    };
  },
  mounted: function mounted() {
    var _this = this;
    return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
      var that;
      return _regenerator.default.wrap(function (_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            // this.isAdminPass = this.$route.query.isAdminPass
            // this.isAccessControl = this.$route.query.isAccessControl
            // this.isVip = this.$route.query.isVip
            // this.isSvip = this.$route.query.isSvip
            // this.isAccess = this.$route.query.isAccess
            that = _this;
            _this.isShow = true;
            _this.getPicList();
            // const userData = await this.getUserStatus()
            // this.userVipType = userData.userVipType
            // if (this.isAccessControl == 1) {
            //   if (!this._Util.isSVip(this.userVipType)) {
            //     if (this.isSvip == 1 && this.isAccess != 1) {
            //       MessageBox({
            //         title: '提示',
            //         message: '资料SVIP专享,请您先开通SVIP再查看资料！',
            //         confirmButtonText: '确认',
            //         showCancelButton: true,
            //         cancelButtonText: '取消'
            //       }).then(action => {
            //         if (action === 'confirm') {
            //           uni.navigateTo({
            //             url: '/pages/mine/vip/index?type=1&vipType=1'
            //           })
            //           this.clickFlag = true
            //         } else {
            //           this.clickFlag = true
            //         }
            //       })
            //       return
            //     } else {
            //       if (!this._Util.isVip(this.userVipType)) {
            //         if (this.isVip == 1 && this.isAccess != 1) {
            //           MessageBox({
            //             title: '提示',
            //             message: '资料VIP专享,请您先开通VIP再查看资料！',
            //             confirmButtonText: '确认',
            //             showCancelButton: true,
            //             cancelButtonText: '取消'
            //           }).then(action => {
            //             if (action === 'confirm') {
            //               uni.navigateTo({
            //                 url: '/pages/mine/vip/index?type=1&vipType=2'
            //               })
            //               this.clickFlag = true
            //             } else {
            //               this.clickFlag = true
            //             }
            //           })
            //           return
            //         } else {
            //           this.isShow = true
            //           this.getPicList()
            //         }
            //       } else {
            //         this.isShow = true
            //         this.getPicList()
            //       }
            //     }
            //   } else {
            //     this.isShow = true
            //     this.getPicList()
            //   }
            // } else {
            //   this.isShow = true
            //   this.getPicList()
            // }
            that.timing = setInterval(function () {
              that.time++;
            }, 1000);
          case 1:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }))();
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: that.fileId,
        remark: '资料详情,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    getUserStatus: function getUserStatus() {
      var _this2 = this;
      return new Promise(function (resolve, reject) {
        _this2._Util.post(_this2._Api.POST_BASE_PERSONAL_INFO, {}, function (data) {
          resolve(data);
        }, function () {
          reject();
        }, _this2);
      });
    },
    getPicList: function getPicList() {
      var that = this;
      /* 从搜索结果页进入图集*/
      that._Util.post(that._Api.HOSTOLD + 'search-api/assistActivities/info', {
        huodongId: this.$route.query.huodongId,
        zhuliId: null,
        source: 1
      }, function (data) {
        that.pdfSrc = data.dataUrl;
        // that.isCollect = data.isCollect
      }, function () {}, that);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isShow)?_c('div',{staticClass:"pdf-viewer-container"},[(_vm.pdfSrc)?_c('PdfViewer',{attrs:{"pdf-url":_vm.pdfSrc,"fileId":_vm.fileId,"isCollect":_vm.isCollect,"navigationId":_vm.navigationId,"showCollect":_vm.showCollect}}):_vm._e()],1):_vm._e()}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(724);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d7bfc35_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1324);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3656)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6d7bfc35"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d7bfc35_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6d7bfc35_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exportCircuit_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3657);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("781830a4", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".top-body[data-v-6d7bfc35]{text-align:center;padding:1.5rem 0}.content[data-v-6d7bfc35]{background:#fff}.circuit-list[data-v-6d7bfc35]{position:relative;display:inline-block;margin-left:3.1rem}.circuit-list[data-v-6d7bfc35]:nth-child(3n+1){margin-left:0}.circuit-list2[data-v-6d7bfc35]{margin-left:0;margin-right:3.1rem}.circuit-list2[data-v-6d7bfc35]:nth-child(3n+1){margin-right:0}.margin-0[data-v-6d7bfc35]{margin-left:0;margin-right:0}.circuit-name[data-v-6d7bfc35]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:4rem;height:3.6rem;border:1px solid #000;border-radius:.3rem;padding:.2rem .5rem;box-sizing:border-box}.line-body[data-v-6d7bfc35]{left:-3.1rem;position:absolute;top:.8rem;text-align:center;width:3.1rem}.line-body .line-text[data-v-6d7bfc35]{position:absolute;width:100%;left:0}.line-body .line[data-v-6d7bfc35]{width:2.6rem;float:left;height:2px;background-color:#000;margin-top:1rem}.line-body .line-arrow[data-v-6d7bfc35]{border-left:.6rem solid #000;font-size:13px}.line-body .line-arrow2[data-v-6d7bfc35],.line-body .line-arrow[data-v-6d7bfc35]{float:left;width:0;height:0;margin-left:2.6rem;margin-top:-.34rem;border-top:.3rem solid transparent;border-bottom:.3rem solid transparent}.line-body .line-arrow2[data-v-6d7bfc35]{border-right:.6rem solid #000}.line-body3[data-v-6d7bfc35]{right:-3.1rem;position:absolute;top:.8rem;text-align:center;width:3.1rem}.line-body3 .line-text[data-v-6d7bfc35]{position:absolute;width:100%;left:0}.line-body3 .line[data-v-6d7bfc35]{width:2.6rem;float:right;height:2px;background-color:#000;margin-top:1rem}.line-body3 .line-arrow[data-v-6d7bfc35]{float:right;width:0;height:0;margin-right:2.6rem;margin-top:-.32rem;border-top:.3rem solid transparent;border-bottom:.3rem solid transparent;border-right:.6rem solid #000;font-size:13px}.line-body2[data-v-6d7bfc35]{position:relative}.line-body2 .line-text[data-v-6d7bfc35]{position:absolute;left:-1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;height:3rem}.line-body2 .line[data-v-6d7bfc35]{width:2px;float:left;height:2.6rem;background-color:#000}.line-body2 .line-arrow[data-v-6d7bfc35]{float:left;width:0;height:0;margin-top:2.6rem;margin-left:-.34rem;border-left:.3rem solid transparent;border-right:.3rem solid transparent;border-top:.6rem solid #000;font-size:13px}.wx-logo[data-v-6d7bfc35]{text-align:center;padding-bottom:1rem}.wx-logo img[data-v-6d7bfc35]{width:4rem;height:4rem}.save-btn[data-v-6d7bfc35]{width:8rem;line-height:2rem;background-color:#fff5ea;border:1px solid #ff7a38;border-radius:6px}.content .arrow[data-v-6d7bfc35]{margin-left:2rem}.content .arrow .line-text[data-v-6d7bfc35]{float:left;margin-top:.2rem}.content .arrow-reverse[data-v-6d7bfc35]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;margin-right:1.6rem;margin-left:0}.content .arrow-reverse[data-v-6d7bfc35],.content .row[data-v-6d7bfc35]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.content .row[data-v-6d7bfc35]{height:3.6rem}.content .row .row-item[data-v-6d7bfc35]{-webkit-box-flex:.3;-webkit-flex:.3;-ms-flex:.3;flex:.3;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}.content .row .row-item .arrow[data-v-6d7bfc35]{padding-top:50px;position:absolute;width:60px;top:-35px;bottom:0;margin:auto}.content .row .row-item .arrow-left[data-v-6d7bfc35]{left:-45px;margin:auto 0}.content .row .row-item .arrow-right[data-v-6d7bfc35]{right:-45px;margin:auto 0}.content .reverse[data-v-6d7bfc35]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _html2canvas = _interopRequireDefault(__webpack_require__(1486));
var _Loading = _interopRequireDefault(__webpack_require__(3658));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Loading: _Loading.default
  },
  data: function data() {
    return {
      circuitList: [],
      circuitListLength: 0,
      loadding: false
    };
  },
  created: function created() {
    this.loadding = true;
    var list = decodeURIComponent(this.$route.query.jumpText).split(',');
    for (var i = 0; i < list.length; i++) {
      var arr = {};
      var index = list[i].split('-');
      arr.title = index[0];
      arr.navigationColor = index[1];
      arr.navigationText = index[2];
      this.circuitList.push(arr);
    }
    console.log(this.circuitList);
    if (this.circuitList % 3 == 0) {
      this.circuitListLength = this.circuitList.length;
    } else {
      this.circuitListLength = (Math.floor(this.circuitList.length / 3) * 1 + 1) * 3;
    }
    this.$nextTick(function () {
      this.produceImg();
    });
  },
  methods: {
    /**
     * 生成图片海报
     */
    produceImg: function produceImg() {
      (0, _html2canvas.default)(document.getElementById('capture'), {
        allowTaint: false,
        taintTest: true,
        useCORS: true,
        backgroundColor: null,
        loggin: false,
        onclone: function onclone(doc) {}
      }).then(function (canvas) {
        var imgBlob = canvas.toDataURL('image/jpeg', 1.0); // 将图片转为base64
        // eslint-disable-next-line no-undef
        setTimeout(function () {
          this.loadding = false;
          uni.redirectTo({
            url: "/material-subpackage/pages/exportCircuit/exportCircuit?dataUrl=".concat(encodeURIComponent(imgBlob))
          });
        }, 800);
      }).catch(function (err) {
        console.log(err);
      });
    }
  }
};__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(725);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66f43c77_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1323);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3659)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-66f43c77"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66f43c77_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_66f43c77_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Loading2_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3660);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("18f437a2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".wrap[data-v-66f43c77]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:99;background:#fff}.wrap .main[data-v-66f43c77]{text-align:left;position:absolute;top:40%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wrap .main>img[data-v-66f43c77]{width:4.2rem;height:1.8rem;pointer-events:none;margin:0 1rem}.wrap .main>p[data-v-66f43c77]{font-size:.7rem;font-family:PingFangSC-Regular;font-weight:400;color:#333;text-align:center}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {},
  data: function data() {
    return {
      curIndex: 0,
      imgList: [{
        src: __webpack_require__(1355)
      }, {
        src: __webpack_require__(1356)
      }, {
        src: __webpack_require__(1357)
      }, {
        src: __webpack_require__(1358)
      }, {
        src: __webpack_require__(1359)
      }, {
        src: __webpack_require__(1360)
      }, {
        src: __webpack_require__(1361)
      }, {
        src: __webpack_require__(1362)
      }, {
        src: __webpack_require__(1363)
      }, {
        src: __webpack_require__(1364)
      }],
      timer: null
    };
  },
  mounted: function mounted() {
    this.frameLoop();
  },
  beforeDestroy: function beforeDestroy() {
    clearInterval(this.timer);
    this.timer = null;
  },
  methods: {
    frameLoop: function frameLoop() {
      var _this = this;
      this.timer = setInterval(function () {
        if (_this.curIndex === 9) {
          _this.curIndex = 0;
        } else {
          _this.curIndex++;
        }
      }, 100);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrap"},[_c('div',{staticClass:"main"},[_c('img',{attrs:{"src":_vm.imgList[_vm.curIndex].src,"alt":""}}),_vm._v(" "),_c('p',[_vm._v("电路图导出中，请稍候...")])])])}
var staticRenderFns = []
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%","backgroundColor":"#ffffff"}},[_c('div',{staticClass:"content",staticStyle:{"width":"18.8rem","padding":"0 0.3rem"},attrs:{"id":"capture"}},[_c('div',{staticClass:"top-body"},[_c('div',{staticClass:"content"},_vm._l(((_vm.circuitListLength / 3)),function(item,index){return _c('div',{staticClass:"clearfix"},[(index != 0&& (index*3-1)!=_vm.circuitList.length-1)?_c('div',{staticClass:"arrow",class:{'arrow-reverse' : index % 2 !== 0}},[_c('div',{staticClass:"line-body2 clearfix"},[(_vm.circuitList[index*3].navigationText!='null')?_c('span',{staticClass:"line-text"},_vm._l((_vm.circuitList[index*3].navigationText.length),function(d,index2){return _c('span',{key:index2,staticStyle:{"line-height":"1"}},[_vm._v("\n                    "+_vm._s(_vm.circuitList[index*3].navigationText.slice(index2, index2+1))+"\n                  ")])}),0):_vm._e(),_vm._v(" "),_c('span',{staticClass:"line",style:('background-color:'+_vm.circuitList[index*3].navigationColor)}),_vm._v(" "),_c('span',{staticClass:"line-arrow",style:('border-top-color:'+_vm.circuitList[index*3].navigationColor)})])]):_vm._e(),_vm._v(" "),_c('div',{key:item,staticClass:"row",class:{'reverse' : index % 2 !== 0}},_vm._l((3),function(i,is){return ((index*3+is)<_vm.circuitList.length)?_c('div',{staticClass:"circuit-list",class:[{'circuit-list2' : index % 2 !== 0}]},[(index % 2 === 0 && is!= 0 )?_c('div',{staticClass:"line-body"},[(_vm.circuitList[index*3+is].navigationText!='null')?_c('span',{staticClass:"line-text"},[_vm._v(_vm._s(_vm.circuitList[index*3+is].navigationText))]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"line",style:('background-color:'+_vm.circuitList[index*3+is].navigationColor)}),_vm._v(" "),_c('span',{staticClass:"line-arrow",style:('border-left-color:'+_vm.circuitList[index*3+is].navigationColor)})]):_vm._e(),_vm._v(" "),(index % 2 !== 0 && is!= 0)?_c('div',{staticClass:"line-body3"},[(_vm.circuitList[index*3+is].navigationText!='null')?_c('span',{staticClass:"line-text"},[_vm._v(_vm._s(_vm.circuitList[index*3+is].navigationText))]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"line",style:('background-color:'+_vm.circuitList[index*3+is].navigationColor)}),_vm._v(" "),_c('span',{staticClass:"line-arrow",style:('border-right-color:'+_vm.circuitList[index*3+is].navigationColor)})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"circuit-name"},[_vm._v("\n                  "+_vm._s(_vm.circuitList[index*3+is].title)+"\n                ")])]):_vm._e()}),0)])}),0)]),_vm._v(" "),_vm._m(0)]),_vm._v(" "),_c('Loading',{directives:[{name:"show",rawName:"v-show",value:(_vm.loadding),expression:"loadding"}]})],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wx-logo"},[_c('img',{attrs:{"src":__webpack_require__(3661)}})])}]
module.exports = __webpack_require__.p + "static/img/wxCode.5cd60a9.jpg";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(726);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ef91fd0e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1325);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3662)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-ef91fd0e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ef91fd0e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_ef91fd0e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStream_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3663);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("a350c8d2", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".stream-top[data-v-ef91fd0e]{margin:0 1rem;padding:1rem 0;border-bottom:1px dashed #a6a6a6}.stream-top .stream-select[data-v-ef91fd0e]{position:relative;margin-bottom:.4rem}.stream-top .stream-select[data-v-ef91fd0e]:last-child{margin-bottom:0}.stream-top .stream-select .label[data-v-ef91fd0e]{width:4rem;text-align:right}.stream-top .stream-select .select-input[data-v-ef91fd0e]{width:12rem;display:inline-block;height:1.5rem;border:1px solid #a6a6a6;margin-left:.2rem;border-radius:3px}.stream-top .stream-select .downicon[data-v-ef91fd0e]{position:absolute;right:18px;top:14px;width:10px;height:7px;background:url(" + escape(__webpack_require__(1463)) + ") no-repeat 50%;background-size:100% 100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'DataStream',
  data: function data() {
    return {
      brandList: [111, 222, 333],
      modelList: [],
      ECUList: [],
      selectBrand: ''
    };
  },
  mounted: function mounted() {
    this.getPicList();
  },
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"stream-top"},[_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("发动机品牌:")]),_vm._v(" "),_c('select',{directives:[{name:"model",rawName:"v-model",value:(_vm.selectBrand),expression:"selectBrand"}],staticClass:"select-input",on:{"change":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.selectBrand=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.brandList),function(d,index){return _c('option',{key:index},[_vm._v("d")])}),0),_vm._v(" "),_c('span',{staticClass:"downicon"})]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("发动机型号:")]),_vm._v(" "),_c('select',{staticClass:"select-input"},_vm._l((_vm.modelList),function(d,index){return _c('option',{key:index},[_vm._v("d")])}),0),_vm._v(" "),_c('span',{staticClass:"downicon"})]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("ECU版本:")]),_vm._v(" "),_c('select',{staticClass:"select-input"},_vm._l((_vm.ECUList),function(d,index){return _c('option',{key:index},[_vm._v("d")])}),0),_vm._v(" "),_c('span',{staticClass:"downicon"})])]),_vm._v(" "),_vm._m(0)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"stream-bottom"},[_c('div',{staticClass:"title"},[_vm._v("常用发动机数据流标准值")]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("马力值")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("ps")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("经济转速区")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("rpm")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("最大扭矩")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("NM")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("最大喷油量")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("mg/hub")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("标准进气压力")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("bar")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("触发电流")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("mA")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("压差值")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("kpa")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("压差值")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("kpa")])]),_vm._v(" "),_c('div',{staticClass:"stream-select"},[_c('label',{staticClass:"label"},[_vm._v("再生碳载量")]),_vm._v(" "),_c('input',{attrs:{"type":"number"}}),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("g")])]),_vm._v(" "),_c('div',[_c('button',[_vm._v("查询详细数据流")]),_vm._v(" "),_c('button',[_vm._v("动态空燃比计算")])])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(727);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1c4cc96d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1326);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3664)
  __webpack_require__(3666)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1c4cc96d"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1c4cc96d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1c4cc96d_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_vipBuy_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3665);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("07e173b0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page-body[data-v-1c4cc96d]{width:100%;background-color:#fff}.vip-list[data-v-1c4cc96d]{padding:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff}.item[data-v-1c4cc96d]{text-align:center;width:-webkit-calc(31% - .4rem);width:calc(31% - .4rem);height:16vh;margin:.2rem;border-radius:10px;border:1px solid #e2e2e2}.active[data-v-1c4cc96d]{background-color:#ffe3e3;border:1px solid #fe632a}.list-box-item-text-price1[data-v-1c4cc96d]{color:red;margin-top:1rem;margin-bottom:.2rem;font-size:18px;font-weight:800}.list-box-item-text-title[data-v-1c4cc96d]{font-size:16px;font-weight:800}.list-box-item-text-price[data-v-1c4cc96d]{margin-top:.2rem;text-decoration:line-through;color:#666}.op-btn[data-v-1c4cc96d]{text-align:center}.pay-btn[data-v-1c4cc96d]{width:15rem;line-height:1.8rem;border-radius:6px;background-color:#fe632a;margin:0 .8rem}image[data-v-1c4cc96d]{width:50%;height:50%}.login-bottom[data-v-1c4cc96d]{font-size:14px;text-align:center;margin-top:.6rem}.login-bottom checkbox[data-v-1c4cc96d]{vertical-align:top;margin-top:-3px}.login-bottom span[data-v-1c4cc96d]{color:#472fe4;vertical-align:middle}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3667);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("33169a6e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".van-checkbox{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.van-checkbox__icon--round .van-icon{border-radius:0}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(1400);
var _checkbox = _interopRequireDefault(__webpack_require__(1401));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'VipBuy',
  components: (0, _defineProperty2.default)({}, _checkbox.default.name, _checkbox.default),
  data: function data() {
    return {
      list: [],
      content: '',
      checked: false,
      selectItem: {}
    };
  },
  created: function created() {},
  mounted: function mounted() {
    this.refresh();
    this.getDetail();
  },
  methods: {
    getDetail: function getDetail() {
      var _this = this;
      var that = this;
      this.$http.get(that._Api.GET_CONTENT_DETAIL + '?type=3').then(function (res) {
        if (res.status !== 200) return;
        var data = res.data.data || {};
        _this.content = data;
      });
    },
    refresh: function refresh() {
      var _this2 = this;
      this.$http.get(this._Api.GET_VIP_CARD_LIST).then(function (res) {
        if (res.status !== 200) return;
        _this2.list = res.data.data;
        _this2.selectItem = _this2.list[0];
      });
    },
    submitOrder: function submitOrder() {
      var _this3 = this;
      var that = this;
      // if (localStorage.getItem('isIphone') === '1') {
      //   Toast({
      //     message: '由于相关规范，iOS功能暂不可用',
      //     duration: 1500
      //   })
      //   return
      // }
      if (that.checked == false) {
        (0, _mintUi.Toast)({
          message: '请先同意会员服务协议',
          duration: 1500
        });
        return;
      }
      this._Util.post(this._Api.ORDER_SUBMIT, {
        orderType: 2,
        source: 1,
        goodsList: [{
          id: this.selectItem.id,
          num: 1
        }]
      }, function (data) {
        console.log(data);
        if (data) {
          uni.navigateTo({
            url: '/pages/order/pay?orderId=' + data + '&type=' + _this3.type
          });
        }
      }, function (err) {
        console.log(err);
      }, this);
    },
    selectVip: function selectVip(item) {
      this.selectItem = item;
    },
    golist: function golist(type) {
      uni.navigateTo({
        url: '/pages/richtextId/richtextId?type=' + type
      });
    },
    clickCheckbox: function clickCheckbox() {
      // if (!this.checked) return
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page-body"},[_c('div',{staticClass:"vip-list"},_vm._l((_vm.list),function(item,i){return _c('div',{key:i,staticClass:"item",class:_vm.selectItem.id==item.id?'active':'',on:{"click":function($event){return _vm.selectVip(item)}}},[_c('div',{staticClass:"list-box-item-text"},[_c('div',{staticClass:"list-box-item-text-price1"},[_vm._v("￥"+_vm._s(item.price))]),_vm._v(" "),_c('div',{staticClass:"list-box-item-text-title"},[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('div',{staticClass:"list-box-item-text-price"},[_vm._v("￥"+_vm._s(item.originPrice))])])])}),0),_vm._v(" "),_c('div',{staticClass:"op-btn"},[_c('button',{staticClass:"pay-btn",staticStyle:{"color":"#fff"},on:{"click":function($event){return _vm.submitOrder()}}},[_vm._v("\n        确认协议并支付\n      ")])]),_vm._v(" "),_c('div',{staticClass:"login-bottom"},[_c('van-checkbox',{attrs:{"checked-color":"#fe632a"},on:{"click":function($event){$event.stopPropagation();return _vm.clickCheckbox.apply(null, arguments)}},model:{value:(_vm.checked),callback:function ($$v) {_vm.checked=$$v},expression:"checked"}},[_c('label',[_vm._v("\n          阅读并同意\n        ")]),_vm._v(" "),_c('span',{on:{"click":function($event){$event.stopPropagation();return _vm.golist(7)}}},[_vm._v("《会员服务协议》")])])],1),_vm._v(" "),_c('div',{staticClass:"rich-content",staticStyle:{"padding":"0.4rem"}},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.content)}})])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(728);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79ac74cd_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1327);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3668)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79ac74cd_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_79ac74cd_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3669);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("3d723e4f", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".rich-content video,img{max-width:100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
var _default = exports.default = {
  name: 'RichText',
  data: function data() {
    return {
      content: ''
    };
  },
  mounted: function mounted() {
    this.getRichtext();
  },
  methods: {
    getRichtext: function getRichtext() {
      var _this = this;
      this._Util.post(this._Api.GET_RICHTEXT, {
        id: 38
      }, function (data) {
        if (data) {
          _this.content = data.adContext;
        }
      }, function (err) {
        console.log(err);
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"rich-content",domProps:{"innerHTML":_vm._s(_vm.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(729);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a755d83_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1328);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3670)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a755d83_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a755d83_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3671);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("15ce309e", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".rich-content{padding:.2rem}.rich-content video,img{max-width:100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
var _default = exports.default = {
  name: 'RichText',
  data: function data() {
    return {
      content: ''
    };
  },
  mounted: function mounted() {
    this.content = this.$route.query.content;
  },
  methods: {}
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"rich-content",domProps:{"innerHTML":_vm._s(_vm.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(730);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_31644cbc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1329);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3672)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-31644cbc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_31644cbc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_31644cbc_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_myCollect_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3673);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6f40a172", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".myCollect[data-v-31644cbc]{background:#f4f5f7;width:100%}.collect-type[data-v-31644cbc]{position:fixed;top:0;left:0;width:100%;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid #efefef;overflow-x:scroll;white-space:nowrap}.type-select[data-v-31644cbc]{padding:.5rem .6rem}.collect-type .active[data-v-31644cbc]{color:#0f75ff;border-bottom:2px solid #0f75ff}.collect-list[data-v-31644cbc]{width:100%;padding-top:2.4rem;height:100vh;overflow-y:scroll}.collect-one[data-v-31644cbc]{width:100%;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.3rem;border-bottom:1px solid #eee;padding:.4rem}.collect-img[data-v-31644cbc]{width:1.5rem;height:1.5rem;margin-right:.4rem}.collect-img2[data-v-31644cbc]{width:5rem;height:3rem}.collect-img img[data-v-31644cbc]{width:100%;height:100%}.collect-info[data-v-31644cbc]{width:16rem}.collect-info2[data-v-31644cbc]{width:14rem}.collect-btn .name[data-v-31644cbc]{float:left;line-height:30px}.collect-btn .op-btn[data-v-31644cbc]{float:right;background-color:#0a79ff;color:#fff;padding:0 8px;line-height:30px;border-radius:6px}.collect-title[data-v-31644cbc]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'MyCollect',
  data: function data() {
    return {
      active: 0,
      typeList: [],
      collectList: [],
      selectType: '',
      selectLevel: '',
      currentPage: 1,
      type: 1,
      data: {},
      communityType: ['', '知识分享', '维修案例', '技术交流'],
      doubleClick: false,
      timing: '',
      time: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    this.getCollectTypeList();
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '我的收藏',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '我的收藏,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    handleScroll: function handleScroll() {
      var container = this.$refs.scrollContainer; // 获取容器元素
      // 检查是否滚动到底部
      if (container.scrollTop + container.clientHeight >= container.scrollHeight - 100) {
        if (this.data.length == 20) {
          if (this.type == 4) {
            this.getCollectList2();
          } else {
            this.getCollectList();
          }
        }
      }
    },
    goInfo: function goInfo(item) {
      if (this.type == 1) {
        this._Util.collectPageViewNew({
          type: 1,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: item.id,
          remark: '资料详情',
          searchKey: ''
        }, this);
        if (item.filetype.toUpperCase() == 'PDF' || item.filetype == 'application/pdf') {
          this.$router.push({
            name: 'fileView',
            query: {
              fileId: item.id,
              fileNo: item.fileno,
              navigationId: this.selectType,
              fromPage: 'soso',
              title: item.filename.replace(/red/g, '#666')
            }
          });
          return;
        }
        this.$router.push({
          name: 'picList',
          query: {
            isScale: 1,
            pageNum: 1,
            pageSize: 3,
            type: 1,
            fileNo: item.fileno,
            navigationId: this.selectType,
            fileId: item.id,
            fromPage: 'soso',
            title: item.filename.replace(/red/g, '#666')
          }
        });
      } else if (this.type == 2) {
        var type = this._Util.getParaValueByName('type');
        var url = location.origin + '/repair/shopping/courseDetail?courseId=' + item.id + '&type=' + type;
        var src = encodeURIComponent(url);
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(src)
        });
      } else if (this.type == 3) {
        var _url = location.origin + '/repair/community/newArticleDetail?articleId=' + item.id;
        var _src = encodeURIComponent(_url);
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(_src)
        });
      } else if (this.type == 4) {
        var _url2 = location.origin + '/productMatching/modelInfo?id=' + item.id;
        var _src2 = encodeURIComponent(_url2);
        uni.navigateTo({
          // eslint-disable-line
          url: "/pages/webView/webView?src=".concat(_src2)
        });
      }
    },
    collectOp: function collectOp(id) {
      var _this = this;
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search-api/dataOperate/collection', {
        dataId: id,
        type: that.type,
        nationId: that.selectType,
        level: that.selectLevel
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        _this.getCollectList(1);
      }, function () {}, that);
    },
    collectOp2: function collectOp2(id) {
      var _this2 = this;
      var that = this;
      that._Util.post(that._Api.HOSTOLD + 'search-api/forum/postOperate', {
        id: id,
        ob: 1,
        op: 2
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        _this2.getCollectList(1);
      }, function () {}, that);
    },
    collectOp3: function collectOp3(id) {
      var _this3 = this;
      var that = this;
      that._Util.post(this._Api.GET_PRODUCTMATCHING_COLLECT, {
        id: id,
        type: 2
      }, function (data) {
        (0, _mintUi.Toast)({
          message: '操作成功',
          duration: 1500
        });
        _this3.getCollectList2(1);
      }, function () {}, that);
    },
    changeType: function changeType(type, index) {
      this.type = type;
      if (type == 1) {
        this.active = index;
        this.selectType = this.typeList[this.active].id;
        this.selectLevel = this.typeList[this.active].level;
      } else {
        this.active = -1;
        this.selectType = '';
        this.selectLevel = '';
      }
      if (type == 4) {
        this.getCollectList2(1);
      } else {
        this.getCollectList(1);
      }
    },
    /**
     * 获取提问列表
     */
    getCollectTypeList: function getCollectTypeList() {
      var _this4 = this;
      this._Util.post(this._Api.GET_COLLECT_TYPE, {}, function (data) {
        if (data) {
          var arr = data || [];
          _this4.typeList = arr;
          if (_this4.typeList.length > 0) {
            _this4.selectType = _this4.typeList[0].id;
            _this4.selectLevel = _this4.typeList[0].level;
            _this4.getCollectList(1);
          } else {
            _this4.type = 2;
            _this4.selectLevel = 0;
            _this4.getCollectList(1);
          }
        }
      }, function () {}, this);
    },
    getCollectList: function getCollectList(page) {
      var _this5 = this;
      if (this.doubleClick == true) {
        return;
      } else {
        this.doubleClick = true;
      }
      if (page === 1) {
        this.currentPage = 1;
        this.collectList = [];
      } else {
        this.currentPage++;
      }
      this._Util.post(this._Api.GET_COLLECT_DATA, {
        moudleId: this.selectType,
        level: this.selectLevel,
        currentPage: this.currentPage,
        pageSize: 20,
        type: this.type
      }, function (data) {
        _this5.doubleClick = false;
        _this5.data = data;
        if (data) {
          var arr = data || [];
          _this5.collectList = _this5.collectList.concat(arr);
        }
      }, function () {
        _this5.doubleClick = false;
      }, this);
    },
    getCollectList2: function getCollectList2(page) {
      var _this6 = this;
      if (this.doubleClick == true) {
        return;
      } else {
        this.doubleClick = true;
      }
      if (page === 1) {
        this.currentPage = 1;
        this.collectList = [];
      } else {
        this.currentPage++;
      }
      this._Util.post(this._Api.GET_PRODUCTMATCHING_COLLECTLIST, {
        pageNum: this.currentPage,
        pageSize: 20
      }, function (data) {
        _this6.doubleClick = false;
        _this6.data = data;
        if (data) {
          var arr = data || [];
          _this6.collectList = _this6.collectList.concat(arr.list);
        }
      }, function () {
        _this6.doubleClick = false;
      }, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"myCollect"},[_c('div',{staticClass:"collect-type"},[_vm._l((_vm.typeList),function(d,index){return _c('div',{key:index,staticClass:"type-select",class:{active:_vm.active==index},on:{"click":function($event){return _vm.changeType(1,index)}}},[_vm._v(_vm._s(d.name))])}),_vm._v(" "),_c('div',{staticClass:"type-select",class:{active:_vm.type==2},on:{"click":function($event){return _vm.changeType(2)}}},[_vm._v("课程")]),_vm._v(" "),_c('div',{staticClass:"type-select",class:{active:_vm.type==3},on:{"click":function($event){return _vm.changeType(3)}}},[_vm._v("论坛")]),_vm._v(" "),_c('div',{staticClass:"type-select",class:{active:_vm.type==4},on:{"click":function($event){return _vm.changeType(4)}}},[_vm._v("产品配套")])],2),_vm._v(" "),_c('div',{ref:"scrollContainer",staticClass:"collect-list",on:{"scroll":_vm.handleScroll}},[_vm._l((_vm.collectList),function(item,index){return _c('div',{key:index,staticClass:"collect-one",on:{"click":function($event){$event.stopPropagation();return _vm.goInfo(item)}}},[_c('div',{staticClass:"collect-img",class:{'collect-img2':_vm.type==2}},[(_vm.type==1)?_c('img',{attrs:{"src":__webpack_require__(212),"alt":""}}):_vm._e(),_vm._v(" "),(_vm.type==2)?_c('img',{attrs:{"src":item.coursecover,"alt":""}}):_vm._e(),_vm._v(" "),(_vm.type==3)?_c('img',{attrs:{"src":__webpack_require__(212),"alt":""}}):_vm._e(),_vm._v(" "),(_vm.type==4&&item.img)?_c('img',{attrs:{"src":item.img}}):_vm._e(),_vm._v(" "),(_vm.type==4&&!item.img)?_c('img',{attrs:{"src":__webpack_require__(143)}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"collect-info",class:{'collect-info2':_vm.type==2}},[(_vm.type==3)?_c('div',{staticClass:"collect-title"},[_vm._v(_vm._s(item.title))]):_vm._e(),_vm._v(" "),(_vm.type==2)?_c('div',{staticClass:"collect-title"},[_vm._v(_vm._s(item.counrsename))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"collect-btn clearfix"},[(_vm.type==4)?_c('div',{staticClass:"name"},[_vm._v(_vm._s(item.name)+"-"+_vm._s(item.systemName)+"-"+_vm._s(item.modelName))]):_vm._e(),_vm._v(" "),(_vm.type==3)?_c('div',{staticClass:"name"},[_vm._v(_vm._s(_vm.communityType[item.type]))]):_vm._e(),_vm._v(" "),(_vm.type==2)?_c('div',{staticClass:"name"},[_vm._v(_vm._s(item.classifyname))]):_vm._e(),_vm._v(" "),(_vm.type==1)?_c('div',{staticClass:"name"},[_vm._v(_vm._s(item.filename))]):_vm._e(),_vm._v(" "),(_vm.type!=4)?_c('div',{staticClass:"op-btn",on:{"click":function($event){$event.stopPropagation();_vm.type==3?_vm.collectOp2(item.id):_vm.collectOp(item.id)}}},[_vm._v("取消收藏")]):_c('div',{staticClass:"op-btn",on:{"click":function($event){$event.stopPropagation();return _vm.collectOp3(item.id)}}},[_vm._v("取消收藏")])])])])}),_vm._v(" "),(_vm.collectList.length==0)?_c('div',{staticStyle:{"text-align":"center","margin-top":"30vh"}},[_vm._v("\n        暂无数据\n      ")]):_vm._e()],2)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(731);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_29d47284_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1330);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3674)
  __webpack_require__(3676)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-29d47284"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_29d47284_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_29d47284_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dataStreamAnalysis_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3675);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("84b32e68", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{background:#ebf5fe!important}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3677);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("74cbd2a0", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".analysis-bg[data-v-29d47284]{position:fixed;top:0;left:0;width:100%}.analysis-bg img[data-v-29d47284]{width:100%}.analysis-bottom-bg[data-v-29d47284]{position:absolute;bottom:0;left:0;z-index:0;width:100%}.analysis-bottom-bg img[data-v-29d47284]{width:100%}.analysis-info[data-v-29d47284]{position:relative;min-height:100%;z-index:11}.analysis-info .title-img[data-v-29d47284]{width:16rem;margin:0 auto;padding:2rem 0}.analysis-info .title-img img[data-v-29d47284]{width:100%}.brand-select .select-btn[data-v-29d47284]{width:16rem;box-sizing:border-box;border-radius:25px;padding:.5rem;margin:0 auto;background:#2450f7;color:#fff;margin-bottom:1.6rem}.brand-select .select-btn .brand-icon[data-v-29d47284]{width:4.2rem;margin-right:.4rem;vertical-align:middle}.brand-select .select-btn span[data-v-29d47284]{font-size:.88rem;font-weight:800}.brand-select .up-down-btn[data-v-29d47284]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;margin-bottom:1.6rem}.brand-select .up-down-btn>div[data-v-29d47284]{background:#fcc938;font-size:.76rem;color:#000;width:5rem;text-align:center;border-radius:10px}.brand-select .up-down-btn .down-btn[data-v-29d47284]{line-height:2.4rem}.brand-select .up-down-btn .up-btn[data-v-29d47284]{padding:.3rem;position:relative}.brand-select .up-down-btn .up-btn .up-input[data-v-29d47284]{position:absolute;width:100%;height:100%;left:0;top:0;z-index:11;opacity:0}.brand-select .up-down-btn .tips[data-v-29d47284]{margin-top:.1rem;font-size:.44rem}.input-list[data-v-29d47284]{text-align:center}.input-list .input-title[data-v-29d47284]{color:#3f50ff}.input-list .input-title2[data-v-29d47284],.input-list .input-title[data-v-29d47284]{text-align:left;padding:.5rem;text-shadow:3px 3px 5px #888;font-weight:800;font-size:.72rem}.input-list .input-title2[data-v-29d47284]{color:#fda644}.label-input[data-v-29d47284]{margin-bottom:.5rem}.label-input .label[data-v-29d47284]{width:3.5rem;text-align:center}.label-input .select-input[data-v-29d47284]{display:inline-block;vertical-align:middle;width:8rem;line-height:1.3rem;text-align:center;border:1px solid #000;border-radius:10px 0 0 10px;position:relative}.label-input .select-input .icon[data-v-29d47284]{position:absolute;width:13.6px;height:8px;top:50%;margin-top:-4.8px;right:.2rem}.label-input .select-input2[data-v-29d47284]{width:4.5rem;margin-left:.5rem}.label-input .unit[data-v-29d47284]{width:4.5rem;margin-left:.5rem;text-align:center;vertical-align:middle}.search-btn[data-v-29d47284]{text-align:center;margin:1rem auto;position:relative;width:4.5rem}.search-btn img[data-v-29d47284]{width:100%}.search-btn .title[data-v-29d47284]{position:absolute;color:#fff;width:4.5rem;left:-.4rem;top:.4rem;text-align:center;font-style:italic;font-family:Gill Sans,Gill Sans MT,Calibri,Trebuchet MS,sans-serif}.success-result[data-v-29d47284]{padding-bottom:6rem}.success-result .result-title[data-v-29d47284]{text-align:center}.success-result .result-title .first-line[data-v-29d47284]{text-decoration:underline;color:#05c400;font-size:.88rem;font-weight:800}.success-result .result-title .second-line[data-v-29d47284]{font-size:.56rem;color:#c40000}.echart-pic[data-v-29d47284]{position:relative;text-align:center}.echart-pic .echart-icon[data-v-29d47284]{width:3rem;height:3rem;position:absolute;left:1rem;top:0}.fail-result-title[data-v-29d47284]{text-align:center;margin:0 auto;width:11.8rem;color:#c40000;margin-bottom:1.5rem}.fail-result-title>p[data-v-29d47284]{border-bottom:1px solid #c40000}.fail-result-title .first-line img[data-v-29d47284]{width:1rem;margin-right:.2rem;vertical-align:middle}.fail-result-title .third-line[data-v-29d47284]{color:#05c400;border-bottom:1px solid #05c400}.analysis-result[data-v-29d47284]{padding:.5rem 1rem;color:#000}.analysis-result .result-label[data-v-29d47284]{display:inline;border-bottom:1px solid #000}.analysis-result .result-text[data-v-29d47284]{display:inline}.Guidance[data-v-29d47284]{padding:.5rem 1rem;color:#000}.r-color[data-v-29d47284]{color:red}.artificial-op[data-v-29d47284]{padding-bottom:6rem;text-align:center;color:#000}.artificial-op .tips[data-v-29d47284]{width:12rem;margin:0 auto;margin-bottom:.5rem;border-bottom:1px solid #000;font-size:.56rem}.artificial-op .artificial-btn[data-v-29d47284]{text-align:center;width:8rem;margin:0 auto;background:#fcc938;padding:.1rem .3rem;border-radius:6px;padding-bottom:.2rem}.artificial-op .artificial-btn span[data-v-29d47284]{border-bottom:1px solid #000}.pop-container[data-v-29d47284]{width:100%;height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-29d47284]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-29d47284]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-29d47284]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-29d47284]{height:80.5%;padding-bottom:1rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-29d47284]{padding:.8rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-29d47284]{padding:0 .5rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.pop-container .content-container .content-list li[data-v-29d47284]{width:33.333%;margin-bottom:.4rem;padding:0 .22rem;overflow:hidden}.pop-container .content-container .content-list li div[data-v-29d47284]{padding:0 .2rem;width:100%;height:100%;line-height:1.5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;word-break:break-all;font-weight:400;color:#333;text-align:center;vertical-align:top}.pop-container .content-container .content-list li div.active[data-v-29d47284]{background-color:#e7f1ff;color:#2450f7}.pop-container .foot-bar[data-v-29d47284]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.pop-container .foot-bar .btn[data-v-29d47284]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}.pop-container2[data-v-29d47284]{height:30%;width:90%;border-radius:.6rem}.pop-container2 .tips-content[data-v-29d47284]{padding:1rem;font-size:18px}.pop-container2 .foot-bar .btn2[data-v-29d47284]{width:48%;line-height:1;padding:.5rem 0;margin:0 auto;font-size:.72rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}.upfile-btn[data-v-29d47284]{margin-top:.3rem;background-color:#2450f7;border-radius:.3rem;text-align:center;color:#fff;line-height:1.6rem;position:relative}.upfile-btn .up-input[data-v-29d47284]{position:absolute;width:100%;height:100%;left:0;top:0;z-index:11;opacity:0}.shareMAsk[data-v-29d47284]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:3000;background:rgba(0,0,0,.5)}.shareMAsk .shareTips[data-v-29d47284]{width:9.5rem;height:3.825rem;position:absolute;top:.5rem;right:.5rem}.shareMAsk .shareTips .van-icon-down[data-v-29d47284]{position:relative;left:4.5rem;font-size:40px;color:#fff;-webkit-transform:rotate(-148deg);-ms-transform:rotate(-148deg);transform:rotate(-148deg)}.shareMAsk .shareTips>p[data-v-29d47284]:first-of-type{margin-top:.85rem}.shareMAsk .shareTips>p[data-v-29d47284]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
var _typeof = __webpack_require__(69);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
__webpack_require__(27);
var _toast = _interopRequireDefault(__webpack_require__(28));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(1491);
var _picker = _interopRequireDefault(__webpack_require__(791));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(20);
var _popup = _interopRequireDefault(__webpack_require__(19));
var echarts = _interopRequireWildcard(__webpack_require__(3712));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'DataStream',
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({
    'van-popup': _popup.default
  }, _icon.default.name, _icon.default), 'van-picker', _picker.default),
  data: function data() {
    return {
      brandList: [111, 222, 333],
      modelList: [],
      ECUList: [],
      selectBrand: '',
      showPop: false,
      showPop2: false,
      showPop3: false,
      showPopup: false,
      showPopup2: false,
      showPopup3: false,
      seriesList: [],
      typeList: [],
      brandTemp: '',
      seriesTemp: '',
      typeTemp: '',
      brandName: '',
      biaotouList: [],
      biaotouTitle: '',
      biaotouIndex: 0,
      ymkdIndex: '',
      zsIndex: '',
      scnjIndex: '',
      fileData: {},
      firstYC: '',
      echartsData: {},
      yaliDanweiList: [],
      penyouliangDanweiList: [],
      jinqiwenduDanweiList: [],
      yalidanweiIndex: '',
      penyouliangIndex: '',
      jinqiwenduIndex: '',
      sdgydwIndex: '',
      sjgydwIndex: '',
      jqyldwIndex: '',
      ecuIndex: '',
      popupType: '',
      njxzIndex: '',
      pylIndex: '',
      sjgyIndex: '',
      sdgyIndex: '',
      cfdlIndex: '',
      jqylIndex: '',
      jqwdIndex: '',
      dwTitle: '',
      secondSearch: false,
      secondResult: {},
      content: '',
      showContent: false,
      timing: '',
      time: 0,
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      showShareBox: false
    };
  },
  mounted: function mounted() {
    window.vuePage = this;
    var that = this;
    this.isAdminPass = this.$route.query.isAdminPass;
    this.isAccessControl = this.$route.query.isAccessControl;
    this.isVip = this.$route.query.isVip;
    this.isSvip = this.$route.query.isSvip;
    this.isAccess = this.$route.query.isAccess;
    this.getPinpaiList();
    this.getEcuList();
    this.getDanweiList();
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '数据流分析',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '数据流分析,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
     * 分享给好友
     */
    shareFriends: function shareFriends() {
      var _this = this;
      var that = this;
      var params = {};
      this._Util.post(this._Api.GET_SEARCHVIPCOUNT, params, function (data) {
        _this.shareCount = data;
        if (_this.shareCount > 0) {
          if (that._Util.isFromApp()) {
            uni.postMessage({
              // eslint-disable-line
              data: {
                type: 'share',
                isAdd: 1
              }
            });
            return;
          }
          that.showShareBox = true;
        } else {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '今日分享次数已达上限，如需继续分享，请联系管理员'
          });
        }
      }, function () {}, this);
    },
    goBuySvip: function goBuySvip(type) {
      this.showPop2 = false;
      this.showPop3 = false;
      uni.navigateTo({
        url: '/pages/mine/vip/index?type=1&vipType=' + type
      });
    },
    goKefu: function goKefu() {
      uni.navigateTo({
        url: '/pages/kefu/kefu'
      });
    },
    refreshByApp: function refreshByApp() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this2._Util.getUserInfo(_this2);
            case 1:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    openFileContent: function openFileContent() {
      var _this3 = this;
      var that = this;
      var userinfo = JSON.parse(localStorage.getItem('userInfo'));
      if (this.isAdminPass == 0) {
        if (this.isAccessControl == 1) {
          if (!this._Util.isSVip(userinfo.userVipType)) {
            if (this.isSvip == 1 && this.isAccess != 1) {
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this3.clickFlag = true;
                } else {
                  _this3.clickFlag = true;
                }
              });
              return;
            } else {
              if (!this._Util.isVip(userinfo.userVipType)) {
                if (this.isVip == 1 && this.isAccess != 1) {
                  (0, _mintUi.MessageBox)({
                    title: '提示',
                    message: '资料VIP专享,请您先开通VIP再查看资料！',
                    confirmButtonText: '确认',
                    showCancelButton: true,
                    cancelButtonText: '取消'
                  }).then(function (action) {
                    if (action === 'confirm') {
                      uni.navigateTo({
                        url: '/pages/mine/vip/index?type=1&vipType=2'
                      });
                      _this3.clickFlag = true;
                    } else {
                      _this3.clickFlag = true;
                    }
                  });
                  return;
                }
              }
            }
          }
        }
      }
      that.$http.get(that._Api.GET_CONTENT_DETAIL, {
        params: {
          'type': 201
        }
      }).then(function (res) {
        if (res.data.data) {
          that.content = res.data.data;
          that.showContent = true;
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    openFileDialog: function openFileDialog() {
      this.showContent = false;
      // document.getElementById('fileInput').click() // 手动触发 input
    },
    showPopupFn2: function showPopupFn2(type, title) {
      this.popupType = type;
      this.dwTitle = title;
      if (type == 'yaliDanwei') {
        if (title == '实际轨压') {
          this.yalidanweiIndex = this.sjgydwIndex;
        } else if (title == '设定轨压') {
          this.yalidanweiIndex = this.sdgydwIndex;
        } else if (title == '进气压力') {
          this.yalidanweiIndex = this.jqyldwIndex;
        }
      }
      this.showPopup2 = true;
    },
    onConfirm2: function onConfirm2(value) {
      var _this4 = this;
      var title = this.$refs.pickerRef.title;
      if (title === '压力单位') {
        this.yaliDanweiList.forEach(function (item, index) {
          if (item.name === value) {
            if (_this4.dwTitle == '实际轨压') {
              _this4.sjgydwIndex = index;
            } else if (_this4.dwTitle == '设定轨压') {
              _this4.sdgydwIndex = index;
            } else if (_this4.dwTitle == '进气压力') {
              _this4.jqyldwIndex = index;
            }
          }
        });
      } else if (title === '喷油量单位') {
        this.penyouliangDanweiList.forEach(function (item, index) {
          if (item.name === value) {
            _this4.penyouliangIndex = index;
          }
        });
      } else if (title === '进气温度单位') {
        this.jinqiwenduDanweiList.forEach(function (item, index) {
          if (item.name === value) {
            _this4.jinqiwenduIndex = index;
          }
        });
      } else if (title === 'ECU型号') {
        this.ECUList.forEach(function (item, index) {
          if (item.name === value) {
            _this4.ecuIndex = index;
          }
        });
      }
      this.showPopup2 = false;
    },
    onCancel2: function onCancel2() {
      this.showPopup2 = false;
    },
    searchOp: function searchOp() {
      var that = this;
      if (this.ymkdIndex === '') {
        (0, _toast.default)({
          message: '请选择油门开度',
          position: 'bottom',
          duration: 2000
        });
        return;
      }
      if (this.zsIndex === '') {
        (0, _toast.default)({
          message: '请选择发动机转速',
          position: 'bottom',
          duration: 2000
        });
        return;
      }
      if (this.scnjIndex === '') {
        (0, _toast.default)({
          message: '请选择输出扭矩',
          position: 'bottom',
          duration: 2000
        });
        return;
      }
      if (!this.typeTemp.id) {
        (0, _toast.default)({
          message: '请选择发动机型号',
          position: 'bottom',
          duration: 2000
        });
        return;
      }
      var biaotouDuiying = {
        '油门开度': this.biaotouList[this.ymkdIndex].id,
        '发动机转速': this.biaotouList[this.zsIndex].id,
        '输出扭矩': this.biaotouList[this.scnjIndex].id
      };
      _mintUi.Indicator.open('分析中...');
      setTimeout(function () {
        that.$http.post(that._Api.FENXI_ONESTEP, {
          liufenxiCode: that.fileData.liufenxiCode,
          xinghaoId: that.typeTemp.id,
          biaotouDuiying: biaotouDuiying
        }).then(function (res) {
          _mintUi.Indicator.close();
          if (res.data.status === 200) {
            console.log(res);
            that.firstYC = res.data.data.isYichang;
            // this.firstYC = 1
            that.echartsData = res.data.data;
            that.$nextTick(function () {
              that.initEcharts();
            });
          } else {
            console.log(res);
            if (res.data.status == 600) {
              that.showPop2 = true;
            } else if (res.data.status == 700) {
              that.showPop3 = true;
            } else {
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: res.data.msg
              });
              // Toast({
              //   message: res.data.msg,
              //   position: 'bottom',
              //   duration: 2000
              // })
            }
          }
        }).catch(function (err) {
          _mintUi.Indicator.close();
          console.log(err);
          (0, _toast.default)({
            message: '上传的数据格式或者采集的数据流未满足分析标准，请下载模版对应填写或联系技术人员',
            position: 'bottom',
            duration: 2000
          });
        });
      }, 5000);
    },
    searchOp2: function searchOp2() {
      var that = this;
      var biaotouDuiying = {
        '扭矩限制': this.njxzIndex !== '' ? this.biaotouList[this.njxzIndex].id : null,
        '进气压力': this.jqylIndex !== '' ? this.biaotouList[this.jqylIndex].id : null,
        '进气温度': this.jqwdIndex !== '' ? this.biaotouList[this.jqwdIndex].id : null,
        '喷油量': this.pylIndex !== '' ? this.biaotouList[this.pylIndex].id : null,
        '实际轨压': this.sjgyIndex !== '' ? this.biaotouList[this.sjgyIndex].id : null,
        '设定轨压': this.sdgyIndex !== '' ? this.biaotouList[this.sdgyIndex].id : null,
        '触发电流': this.cfdlIndex !== '' ? this.biaotouList[this.cfdlIndex].id : null,
        '油门开度': this.ymkdIndex !== '' ? this.biaotouList[this.ymkdIndex].id : null,
        '发动机转速': this.zsIndex !== '' ? this.biaotouList[this.zsIndex].id : null,
        '输出扭矩': this.scnjIndex !== '' ? this.biaotouList[this.scnjIndex].id : null
      };
      _mintUi.Indicator.open('分析中...');
      setTimeout(function () {
        that.$http.post(that._Api.FENXI_TWOSTEP, {
          liufenxiCode: that.fileData.liufenxiCode,
          xinghaoId: that.typeTemp.id,
          ecuId: that.ecuIndex !== '' ? that.ECUList[that.ecuIndex].id : null,
          biaotouDuiying: biaotouDuiying,
          jinqiyaliDanwei: that.jqyldwIndex !== '' ? that.yaliDanweiList[that.jqyldwIndex].code : null,
          jinqiwenduDanwei: that.jinqiwenduIndex !== '' ? that.jinqiwenduDanweiList[that.jinqiwenduIndex].code : null,
          penyouliangDanwei: that.penyouliangIndex !== '' ? that.penyouliangDanweiList[that.penyouliangIndex].code : null,
          shijiguiyaDanwei: that.sjgydwIndex !== '' ? that.yaliDanweiList[that.sjgydwIndex].code : null,
          shedingguiyaDanwei: that.sdgydwIndex !== '' ? that.yaliDanweiList[that.sdgydwIndex].code : null
        }).then(function (res) {
          _mintUi.Indicator.close();
          if (res.data.status === 200) {
            console.log(res);
            // this.firstYC = res.data.data.isYichang
            that.secondSearch = true;
            that.secondResult = res.data.data;
            that.$nextTick(function () {
              that.initEcharts2();
            });
          }
        }).catch(function (err) {
          _mintUi.Indicator.close();
          console.log(err);
        });
      }, 5000);
    },
    /** 图片上传逻辑 */uploadFile: function uploadFile(e) {
      var _this5 = this;
      console.log(e);
      var that = this;
      var file = e.target.files[0];
      if (file) {
        this.ymkdIndex = '';
        this.zsIndex = '';
        this.scnjIndex = '';
        _mintUi.Indicator.open('上传中...');
        var formData = new FormData();
        formData.append('file', file);
        var url = that._Api.IMPORT_SHUJULIU;
        $.ajax({
          url: url,
          type: 'POST',
          dataType: 'json',
          cache: false,
          data: formData,
          processData: false,
          headers: {
            'Authorization': 'Basic c2FiZXI6ZWVBNWtjY1o1Q21tTnpfb3hvTUU=',
            'Blade-Auth': 'bearer ' + localStorage.getItem('wxMiniAppToken')
          },
          contentType: false
        }).done(function (res) {
          _mintUi.Indicator.close();
          document.getElementById('fileInput').value = null;
          _this5.secondSearch = false;
          _this5.secondResult = {};
          _this5.firstYC = '';
          _this5.fileData = res.data;
          _this5.biaotouList = res.data.biaotouList;
          if (res.data.isBiaozhun == 1) {
            for (var i = 0; i < _this5.biaotouList.length; i++) {
              if (_this5.biaotouList[i].name == '油门开度') {
                _this5.ymkdIndex = i;
              }
              if (_this5.biaotouList[i].name == '发动机转速') {
                _this5.zsIndex = i;
              }
              if (_this5.biaotouList[i].name == '输出扭矩') {
                _this5.scnjIndex = i;
              }
            }
          }
        }).fail(function () {});
      }
    },
    downloadFile: function downloadFile() {
      if (this._Util.isFromApp()) {
        var link = document.createElement('a');
        link.href = 'https://kaxiubaodian-online.oss-cn-hangzhou.aliyuncs.com/shujuliufenxidaorumoban.xlsx';
        link.download = '模板';
        link.click();
        link.click();
      } else {
        uni.navigateTo({
          url: '/data-subpackage/pages/downloadFile/downloadFile'
        });
        // Toast({
        //   message: '小程序不支持模板文件下载，可到卡修宝典APP下载或者咨询客服！',
        //   position: 'center',
        //   duration: 2000
        // })
        // return
      }
    },
    chooseBrand: function chooseBrand() {
      this.showPop = true;
    },
    selectClassOrBrand: function selectClassOrBrand(item) {
      this.brandTemp = item;
      this.seriesTemp = '';
      this.typeTemp = '';
      this.seriesList = [];
      this.typeList = [];
      this.getXilieList();
    },
    selectSeries: function selectSeries(item) {
      this.seriesTemp = item;
      this.typeTemp = '';
      this.typeList = [];
      this.getXinghaoList();
    },
    selectType: function selectType(item) {
      this.typeTemp = item;
    },
    getEcuList: function getEcuList() {
      var _this6 = this;
      var that = this;
      this.$http.get(that._Api.GET_ECULIST).then(function (res) {
        if (res.data.status === 200) {
          _this6.ECUList = res.data.data.ecuList;
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    getDanweiList: function getDanweiList() {
      var _this7 = this;
      var that = this;
      this.$http.get(that._Api.GET_DANWEI_LIST).then(function (res) {
        if (res.data.status === 200) {
          _this7.yaliDanweiList = res.data.data.yaliDanweiList;
          _this7.penyouliangDanweiList = res.data.data.penyouliangDanweiList;
          _this7.jinqiwenduDanweiList = res.data.data.jinqiwenduDanweiList;
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    getPinpaiList: function getPinpaiList() {
      var _this8 = this;
      var that = this;
      this.$http.get(that._Api.GET_PINPAI_LIST).then(function (res) {
        if (res.data.status === 200) {
          _this8.brandList = res.data.data.pinpaiList;
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    getXilieList: function getXilieList() {
      var _this9 = this;
      var that = this;
      this.$http.get(that._Api.GET_XILIE_LIST + '?pinpaiId=' + this.brandTemp.id).then(function (res) {
        if (res.data.status === 200) {
          _this9.seriesList = res.data.data.xilieList;
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    getXinghaoList: function getXinghaoList() {
      var _this0 = this;
      var that = this;
      this.$http.get(that._Api.GET_XINGHAO_LIST + '?pinpaiId=' + this.brandTemp.id + '&xilieId=' + this.seriesTemp.id).then(function (res) {
        if (res.data.status === 200) {
          _this0.typeList = res.data.data.xinghaoList;
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
    confrimSelect: function confrimSelect() {
      if (this.brandList.length == 0 || !this.brandTemp.id) {
        (0, _toast.default)({
          message: '请选择ECU品牌',
          position: 'center',
          duration: 2000
        });
        return;
      }
      if (this.seriesList.length == 0 || !this.seriesTemp.id) {
        (0, _toast.default)({
          message: '请选择系列',
          position: 'center',
          duration: 2000
        });
        return;
      }
      if (this.typeList.length == 0 || !this.typeTemp.id) {
        (0, _toast.default)({
          message: '请选择型号',
          position: 'center',
          duration: 2000
        });
        return;
      }
      this.brandName = this.brandTemp.name + ' ' + this.typeTemp.name;
      this.showPop = false;
      this.secondSearch = false;
      this.secondResult = {};
      this.firstYC = '';
    },
    // 打开弹窗
    showPopupFn: function showPopupFn(title, type) {
      this.biaotouTitle = title;
      if (title == '油门开度') {
        this.biaotouIndex = this.ymkdIndex;
      } else if (title == '转速') {
        this.biaotouIndex = this.zsIndex;
      } else if (title == '输出扭矩') {
        this.biaotouIndex = this.scnjIndex;
      } else if (title == '扭矩限制') {
        this.biaotouIndex = this.njxzIndex;
      } else if (title == '喷油量') {
        this.biaotouIndex = this.pylIndex;
      } else if (title == '实际轨压') {
        this.biaotouIndex = this.sjgyIndex;
      } else if (title == '设定轨压') {
        this.biaotouIndex = this.sdgyIndex;
      } else if (title == '触发电流') {
        this.biaotouIndex = this.cfdlIndex;
      } else if (title == '进气压力') {
        this.biaotouIndex = this.jqylIndex;
      } else if (title == '进气温度') {
        this.biaotouIndex = this.jqwdIndex;
      }
      this.showPopup = true;
    },
    onConfirm: function onConfirm(value) {
      var _this1 = this;
      console.log(value);
      this.biaotouList.forEach(function (item, index) {
        if (item.name === value) {
          if (_this1.biaotouTitle == '油门开度') {
            _this1.ymkdIndex = index;
          } else if (_this1.biaotouTitle == '转速') {
            _this1.zsIndex = index;
          } else if (_this1.biaotouTitle == '输出扭矩') {
            _this1.scnjIndex = index;
          } else if (_this1.biaotouTitle == '扭矩限制') {
            _this1.njxzIndex = index;
          } else if (_this1.biaotouTitle == '喷油量') {
            _this1.pylIndex = index;
          } else if (_this1.biaotouTitle == '实际轨压') {
            _this1.sjgyIndex = index;
          } else if (_this1.biaotouTitle == '设定轨压') {
            _this1.sdgyIndex = index;
          } else if (_this1.biaotouTitle == '触发电流') {
            _this1.cfdlIndex = index;
          } else if (_this1.biaotouTitle == '进气压力') {
            _this1.jqylIndex = index;
          } else if (_this1.biaotouTitle == '进气温度') {
            _this1.jqwdIndex = index;
          }
        }
        _this1.showPopup = false;
      });
    },
    onCancel: function onCancel() {
      this.showPopup = false;
    },
    initEcharts: function initEcharts() {
      var chartDom = document.getElementById('main');
      var myChart = echarts.init(chartDom);
      var option = {
        tooltip: {
          trigger: 'axis'
        },
        grid: {
          left: '3%',
          right: '2%',
          bottom: '3%',
          containLabel: false
        },
        xAxis: {
          type: 'category',
          boundaryGap: false,
          data: this.echartsData.shijianList
        },
        yAxis: [{
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }],
        series: [{
          name: '油门开度',
          type: 'line',
          smooth: true,
          data: this.echartsData.youmenkaiduList,
          yAxisIndex: 0
        }, {
          name: '发动级转速',
          type: 'line',
          smooth: true,
          data: this.echartsData.fadongjizhuansuList,
          yAxisIndex: 1
        }, {
          name: '输出扭矩',
          type: 'line',
          smooth: true,
          data: this.echartsData.shuchuniujuList,
          yAxisIndex: 2
        }]
      };
      option && myChart.setOption(option);
    },
    initEcharts2: function initEcharts2() {
      var chartDom2 = document.getElementById('main2');
      var myChart2 = echarts.init(chartDom2);
      var chartDom3 = document.getElementById('main3');
      var myChart3 = echarts.init(chartDom3);
      var chartDom4 = document.getElementById('main4');
      var myChart4 = echarts.init(chartDom4);
      var option2 = {
        tooltip: {
          trigger: 'axis'
        },
        grid: {
          left: '3%',
          right: '2%',
          bottom: '3%',
          containLabel: false
        },
        xAxis: {
          type: 'category',
          boundaryGap: false,
          data: this.secondResult.oneZhexiantu.shijianList
        },
        yAxis: [{
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }],
        series: [{
          name: '油门开度',
          type: 'line',
          smooth: true,
          data: this.secondResult.oneZhexiantu.youmenkaiduList,
          yAxisIndex: 0
        }, {
          name: '发动级转速',
          type: 'line',
          smooth: true,
          data: this.secondResult.oneZhexiantu.fadongjizhuansuList,
          yAxisIndex: 1
        }, {
          name: '输出扭矩',
          type: 'line',
          smooth: true,
          data: this.secondResult.oneZhexiantu.shuchuniujuList,
          yAxisIndex: 2
        }, {
          name: '喷油量',
          type: 'line',
          smooth: true,
          data: this.secondResult.oneZhexiantu.penyouliangList,
          yAxisIndex: 3
        }, {
          name: '进气压力',
          type: 'line',
          smooth: true,
          data: this.secondResult.oneZhexiantu.jinqiyaliList,
          yAxisIndex: 4
        }, {
          name: '扭矩限制',
          type: 'line',
          smooth: true,
          data: this.secondResult.oneZhexiantu.niujuxianzhiList,
          yAxisIndex: 5
        }]
      };
      var option3 = {
        tooltip: {
          trigger: 'axis'
        },
        grid: {
          left: '3%',
          right: '4%',
          bottom: '3%',
          containLabel: true
        },
        xAxis: {
          type: 'category',
          boundaryGap: false,
          data: this.secondResult.twoZhexiantu.shijianList
        },
        yAxis: {
          type: 'value'
        },
        series: [{
          name: '实际轨压',
          type: 'line',
          smooth: true,
          data: this.secondResult.twoZhexiantu.shijiguiyaList
        }, {
          name: '设定轨压',
          type: 'line',
          smooth: true,
          data: this.secondResult.twoZhexiantu.shedingguiyaList
        }]
      };
      var option4 = {
        tooltip: {
          trigger: 'axis'
        },
        grid: {
          left: '3%',
          right: '4%',
          bottom: '3%',
          containLabel: true
        },
        xAxis: {
          type: 'category',
          boundaryGap: false,
          data: this.secondResult.threeZhexiantu.shijianList
        },
        yAxis: [{
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }, {
          type: 'value',
          show: false
        }],
        series: [{
          name: '喷油量',
          type: 'line',
          smooth: true,
          data: this.secondResult.threeZhexiantu.penyouliangList,
          yAxisIndex: 0
        }, {
          name: '进气压力',
          type: 'line',
          smooth: true,
          data: this.secondResult.threeZhexiantu.jinqiyaliList,
          yAxisIndex: 1
        }, {
          name: '标准进气压力',
          type: 'line',
          smooth: true,
          data: this.secondResult.threeZhexiantu.biaozhun_jinqiyaliList,
          yAxisIndex: 2
        }]
      };
      option2 && myChart2.setOption(option2);
      option3 && myChart3.setOption(option3);
      option4 && myChart4.setOption(option4);
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "guid", function() { return guid; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logError", function() { return logError; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clone", function() { return clone; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeAll", function() { return mergeAll; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaults", function() { return defaults; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createCanvas", function() { return createCanvas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indexOf", function() { return indexOf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inherits", function() { return inherits; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixin", function() { return mixin; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArrayLike", function() { return isArrayLike; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "each", function() { return each; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return reduce; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return filter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "find", function() { return find; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return keys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bind", function() { return bind; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "curry", function() { return curry; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return isArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFunction", function() { return isFunction; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isString", function() { return isString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStringSafe", function() { return isStringSafe; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumber", function() { return isNumber; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObject", function() { return isObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBuiltInObject", function() { return isBuiltInObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTypedArray", function() { return isTypedArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDom", function() { return isDom; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isGradientObject", function() { return isGradientObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isImagePatternObject", function() { return isImagePatternObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRegExp", function() { return isRegExp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eqNaN", function() { return eqNaN; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieve", function() { return retrieve; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieve2", function() { return retrieve2; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieve3", function() { return retrieve3; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeCssArray", function() { return normalizeCssArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assert", function() { return assert; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trim", function() { return trim; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAsPrimitive", function() { return setAsPrimitive; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPrimitive", function() { return isPrimitive; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashMap", function() { return HashMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createHashMap", function() { return createHashMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatArray", function() { return concatArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createObject", function() { return createObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disableUserSelect", function() { return disableUserSelect; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasOwn", function() { return hasOwn; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RADIAN_TO_DEGREE", function() { return RADIAN_TO_DEGREE; });
/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);

var BUILTIN_OBJECT = reduce([
    'Function',
    'RegExp',
    'Date',
    'Error',
    'CanvasGradient',
    'CanvasPattern',
    'Image',
    'Canvas'
], function (obj, val) {
    obj['[object ' + val + ']'] = true;
    return obj;
}, {});
var TYPED_ARRAY = reduce([
    'Int8',
    'Uint8',
    'Uint8Clamped',
    'Int16',
    'Uint16',
    'Int32',
    'Uint32',
    'Float32',
    'Float64'
], function (obj, val) {
    obj['[object ' + val + 'Array]'] = true;
    return obj;
}, {});
var objToString = Object.prototype.toString;
var arrayProto = Array.prototype;
var nativeForEach = arrayProto.forEach;
var nativeFilter = arrayProto.filter;
var nativeSlice = arrayProto.slice;
var nativeMap = arrayProto.map;
var ctorFunction = function () { }.constructor;
var protoFunction = ctorFunction ? ctorFunction.prototype : null;
var protoKey = '__proto__';
var idStart = 0x0907;
function guid() {
    return idStart++;
}
function logError() {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    if (typeof console !== 'undefined') {
        console.error.apply(console, args);
    }
}
function clone(source) {
    if (source == null || typeof source !== 'object') {
        return source;
    }
    var result = source;
    var typeStr = objToString.call(source);
    if (typeStr === '[object Array]') {
        if (!isPrimitive(source)) {
            result = [];
            for (var i = 0, len = source.length; i < len; i++) {
                result[i] = clone(source[i]);
            }
        }
    }
    else if (TYPED_ARRAY[typeStr]) {
        if (!isPrimitive(source)) {
            var Ctor = source.constructor;
            if (Ctor.from) {
                result = Ctor.from(source);
            }
            else {
                result = new Ctor(source.length);
                for (var i = 0, len = source.length; i < len; i++) {
                    result[i] = source[i];
                }
            }
        }
    }
    else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) {
        result = {};
        for (var key in source) {
            if (source.hasOwnProperty(key) && key !== protoKey) {
                result[key] = clone(source[key]);
            }
        }
    }
    return result;
}
function merge(target, source, overwrite) {
    if (!isObject(source) || !isObject(target)) {
        return overwrite ? clone(source) : target;
    }
    for (var key in source) {
        if (source.hasOwnProperty(key) && key !== protoKey) {
            var targetProp = target[key];
            var sourceProp = source[key];
            if (isObject(sourceProp)
                && isObject(targetProp)
                && !isArray(sourceProp)
                && !isArray(targetProp)
                && !isDom(sourceProp)
                && !isDom(targetProp)
                && !isBuiltInObject(sourceProp)
                && !isBuiltInObject(targetProp)
                && !isPrimitive(sourceProp)
                && !isPrimitive(targetProp)) {
                merge(targetProp, sourceProp, overwrite);
            }
            else if (overwrite || !(key in target)) {
                target[key] = clone(source[key]);
            }
        }
    }
    return target;
}
function mergeAll(targetAndSources, overwrite) {
    var result = targetAndSources[0];
    for (var i = 1, len = targetAndSources.length; i < len; i++) {
        result = merge(result, targetAndSources[i], overwrite);
    }
    return result;
}
function extend(target, source) {
    if (Object.assign) {
        Object.assign(target, source);
    }
    else {
        for (var key in source) {
            if (source.hasOwnProperty(key) && key !== protoKey) {
                target[key] = source[key];
            }
        }
    }
    return target;
}
function defaults(target, source, overlay) {
    var keysArr = keys(source);
    for (var i = 0, len = keysArr.length; i < len; i++) {
        var key = keysArr[i];
        if ((overlay ? source[key] != null : target[key] == null)) {
            target[key] = source[key];
        }
    }
    return target;
}
var createCanvas = _platform_js__WEBPACK_IMPORTED_MODULE_0__[/* platformApi */ "d"].createCanvas;
function indexOf(array, value) {
    if (array) {
        if (array.indexOf) {
            return array.indexOf(value);
        }
        for (var i = 0, len = array.length; i < len; i++) {
            if (array[i] === value) {
                return i;
            }
        }
    }
    return -1;
}
function inherits(clazz, baseClazz) {
    var clazzPrototype = clazz.prototype;
    function F() { }
    F.prototype = baseClazz.prototype;
    clazz.prototype = new F();
    for (var prop in clazzPrototype) {
        if (clazzPrototype.hasOwnProperty(prop)) {
            clazz.prototype[prop] = clazzPrototype[prop];
        }
    }
    clazz.prototype.constructor = clazz;
    clazz.superClass = baseClazz;
}
function mixin(target, source, override) {
    target = 'prototype' in target ? target.prototype : target;
    source = 'prototype' in source ? source.prototype : source;
    if (Object.getOwnPropertyNames) {
        var keyList = Object.getOwnPropertyNames(source);
        for (var i = 0; i < keyList.length; i++) {
            var key = keyList[i];
            if (key !== 'constructor') {
                if ((override ? source[key] != null : target[key] == null)) {
                    target[key] = source[key];
                }
            }
        }
    }
    else {
        defaults(target, source, override);
    }
}
function isArrayLike(data) {
    if (!data) {
        return false;
    }
    if (typeof data === 'string') {
        return false;
    }
    return typeof data.length === 'number';
}
function each(arr, cb, context) {
    if (!(arr && cb)) {
        return;
    }
    if (arr.forEach && arr.forEach === nativeForEach) {
        arr.forEach(cb, context);
    }
    else if (arr.length === +arr.length) {
        for (var i = 0, len = arr.length; i < len; i++) {
            cb.call(context, arr[i], i, arr);
        }
    }
    else {
        for (var key in arr) {
            if (arr.hasOwnProperty(key)) {
                cb.call(context, arr[key], key, arr);
            }
        }
    }
}
function map(arr, cb, context) {
    if (!arr) {
        return [];
    }
    if (!cb) {
        return slice(arr);
    }
    if (arr.map && arr.map === nativeMap) {
        return arr.map(cb, context);
    }
    else {
        var result = [];
        for (var i = 0, len = arr.length; i < len; i++) {
            result.push(cb.call(context, arr[i], i, arr));
        }
        return result;
    }
}
function reduce(arr, cb, memo, context) {
    if (!(arr && cb)) {
        return;
    }
    for (var i = 0, len = arr.length; i < len; i++) {
        memo = cb.call(context, memo, arr[i], i, arr);
    }
    return memo;
}
function filter(arr, cb, context) {
    if (!arr) {
        return [];
    }
    if (!cb) {
        return slice(arr);
    }
    if (arr.filter && arr.filter === nativeFilter) {
        return arr.filter(cb, context);
    }
    else {
        var result = [];
        for (var i = 0, len = arr.length; i < len; i++) {
            if (cb.call(context, arr[i], i, arr)) {
                result.push(arr[i]);
            }
        }
        return result;
    }
}
function find(arr, cb, context) {
    if (!(arr && cb)) {
        return;
    }
    for (var i = 0, len = arr.length; i < len; i++) {
        if (cb.call(context, arr[i], i, arr)) {
            return arr[i];
        }
    }
}
function keys(obj) {
    if (!obj) {
        return [];
    }
    if (Object.keys) {
        return Object.keys(obj);
    }
    var keyList = [];
    for (var key in obj) {
        if (obj.hasOwnProperty(key)) {
            keyList.push(key);
        }
    }
    return keyList;
}
function bindPolyfill(func, context) {
    var args = [];
    for (var _i = 2; _i < arguments.length; _i++) {
        args[_i - 2] = arguments[_i];
    }
    return function () {
        return func.apply(context, args.concat(nativeSlice.call(arguments)));
    };
}
var bind = (protoFunction && isFunction(protoFunction.bind))
    ? protoFunction.call.bind(protoFunction.bind)
    : bindPolyfill;
function curry(func) {
    var args = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        args[_i - 1] = arguments[_i];
    }
    return function () {
        return func.apply(this, args.concat(nativeSlice.call(arguments)));
    };
}

function isArray(value) {
    if (Array.isArray) {
        return Array.isArray(value);
    }
    return objToString.call(value) === '[object Array]';
}
function isFunction(value) {
    return typeof value === 'function';
}
function isString(value) {
    return typeof value === 'string';
}
function isStringSafe(value) {
    return objToString.call(value) === '[object String]';
}
function isNumber(value) {
    return typeof value === 'number';
}
function isObject(value) {
    var type = typeof value;
    return type === 'function' || (!!value && type === 'object');
}
function isBuiltInObject(value) {
    return !!BUILTIN_OBJECT[objToString.call(value)];
}
function isTypedArray(value) {
    return !!TYPED_ARRAY[objToString.call(value)];
}
function isDom(value) {
    return typeof value === 'object'
        && typeof value.nodeType === 'number'
        && typeof value.ownerDocument === 'object';
}
function isGradientObject(value) {
    return value.colorStops != null;
}
function isImagePatternObject(value) {
    return value.image != null;
}
function isRegExp(value) {
    return objToString.call(value) === '[object RegExp]';
}
function eqNaN(value) {
    return value !== value;
}
function retrieve() {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    for (var i = 0, len = args.length; i < len; i++) {
        if (args[i] != null) {
            return args[i];
        }
    }
}
function retrieve2(value0, value1) {
    return value0 != null
        ? value0
        : value1;
}
function retrieve3(value0, value1, value2) {
    return value0 != null
        ? value0
        : value1 != null
            ? value1
            : value2;
}
function slice(arr) {
    var args = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        args[_i - 1] = arguments[_i];
    }
    return nativeSlice.apply(arr, args);
}
function normalizeCssArray(val) {
    if (typeof (val) === 'number') {
        return [val, val, val, val];
    }
    var len = val.length;
    if (len === 2) {
        return [val[0], val[1], val[0], val[1]];
    }
    else if (len === 3) {
        return [val[0], val[1], val[2], val[1]];
    }
    return val;
}
function assert(condition, message) {
    if (!condition) {
        throw new Error(message);
    }
}
function trim(str) {
    if (str == null) {
        return null;
    }
    else if (typeof str.trim === 'function') {
        return str.trim();
    }
    else {
        return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
    }
}
var primitiveKey = '__ec_primitive__';
function setAsPrimitive(obj) {
    obj[primitiveKey] = true;
}
function isPrimitive(obj) {
    return obj[primitiveKey];
}
var MapPolyfill = (function () {
    function MapPolyfill() {
        this.data = {};
    }
    MapPolyfill.prototype["delete"] = function (key) {
        var existed = this.has(key);
        if (existed) {
            delete this.data[key];
        }
        return existed;
    };
    MapPolyfill.prototype.has = function (key) {
        return this.data.hasOwnProperty(key);
    };
    MapPolyfill.prototype.get = function (key) {
        return this.data[key];
    };
    MapPolyfill.prototype.set = function (key, value) {
        this.data[key] = value;
        return this;
    };
    MapPolyfill.prototype.keys = function () {
        return keys(this.data);
    };
    MapPolyfill.prototype.forEach = function (callback) {
        var data = this.data;
        for (var key in data) {
            if (data.hasOwnProperty(key)) {
                callback(data[key], key);
            }
        }
    };
    return MapPolyfill;
}());
var isNativeMapSupported = typeof Map === 'function';
function maybeNativeMap() {
    return (isNativeMapSupported ? new Map() : new MapPolyfill());
}
var HashMap = (function () {
    function HashMap(obj) {
        var isArr = isArray(obj);
        this.data = maybeNativeMap();
        var thisMap = this;
        (obj instanceof HashMap)
            ? obj.each(visit)
            : (obj && each(obj, visit));
        function visit(value, key) {
            isArr ? thisMap.set(value, key) : thisMap.set(key, value);
        }
    }
    HashMap.prototype.hasKey = function (key) {
        return this.data.has(key);
    };
    HashMap.prototype.get = function (key) {
        return this.data.get(key);
    };
    HashMap.prototype.set = function (key, value) {
        this.data.set(key, value);
        return value;
    };
    HashMap.prototype.each = function (cb, context) {
        this.data.forEach(function (value, key) {
            cb.call(context, value, key);
        });
    };
    HashMap.prototype.keys = function () {
        var keys = this.data.keys();
        return isNativeMapSupported
            ? Array.from(keys)
            : keys;
    };
    HashMap.prototype.removeKey = function (key) {
        this.data["delete"](key);
    };
    return HashMap;
}());

function createHashMap(obj) {
    return new HashMap(obj);
}
function concatArray(a, b) {
    var newArray = new a.constructor(a.length + b.length);
    for (var i = 0; i < a.length; i++) {
        newArray[i] = a[i];
    }
    var offset = a.length;
    for (var i = 0; i < b.length; i++) {
        newArray[i + offset] = b[i];
    }
    return newArray;
}
function createObject(proto, properties) {
    var obj;
    if (Object.create) {
        obj = Object.create(proto);
    }
    else {
        var StyleCtor = function () { };
        StyleCtor.prototype = proto;
        obj = new StyleCtor();
    }
    if (properties) {
        extend(obj, properties);
    }
    return obj;
}
function disableUserSelect(dom) {
    var domStyle = dom.style;
    domStyle.webkitUserSelect = 'none';
    domStyle.userSelect = 'none';
    domStyle.webkitTapHighlightColor = 'rgba(0,0,0,0)';
    domStyle['-webkit-touch-callout'] = 'none';
}
function hasOwn(own, prop) {
    return own.hasOwnProperty(prop);
}
function noop() { }
var RADIAN_TO_DEGREE = 180 / Math.PI;
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return DEFAULT_FONT_SIZE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return DEFAULT_FONT_FAMILY; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DEFAULT_FONT; });
/* unused harmony export DEFAULT_TEXT_WIDTH_MAP */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return platformApi; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return setPlatformAPI; });
var DEFAULT_FONT_SIZE = 12;
var DEFAULT_FONT_FAMILY = 'sans-serif';
var DEFAULT_FONT = DEFAULT_FONT_SIZE + "px " + DEFAULT_FONT_FAMILY;
var OFFSET = 20;
var SCALE = 100;
var defaultWidthMapStr = "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";
function getTextWidthMap(mapStr) {
    var map = {};
    if (typeof JSON === 'undefined') {
        return map;
    }
    for (var i = 0; i < mapStr.length; i++) {
        var char = String.fromCharCode(i + 32);
        var size = (mapStr.charCodeAt(i) - OFFSET) / SCALE;
        map[char] = size;
    }
    return map;
}
var DEFAULT_TEXT_WIDTH_MAP = getTextWidthMap(defaultWidthMapStr);
var platformApi = {
    createCanvas: function () {
        return typeof document !== 'undefined'
            && document.createElement('canvas');
    },
    measureText: (function () {
        var _ctx;
        var _cachedFont;
        return function (text, font) {
            if (!_ctx) {
                var canvas = platformApi.createCanvas();
                _ctx = canvas && canvas.getContext('2d');
            }
            if (_ctx) {
                if (_cachedFont !== font) {
                    _cachedFont = _ctx.font = font || DEFAULT_FONT;
                }
                return _ctx.measureText(text);
            }
            else {
                text = text || '';
                font = font || DEFAULT_FONT;
                var res = /((?:\d+)?\.?\d*)px/.exec(font);
                var fontSize = res && +res[1] || DEFAULT_FONT_SIZE;
                var width = 0;
                if (font.indexOf('mono') >= 0) {
                    width = fontSize * text.length;
                }
                else {
                    for (var i = 0; i < text.length; i++) {
                        var preCalcWidth = DEFAULT_TEXT_WIDTH_MAP[text[i]];
                        width += preCalcWidth == null ? fontSize : (preCalcWidth * fontSize);
                    }
                }
                return { width: width };
            }
        };
    })(),
    loadImage: function (src, onload, onerror) {
        var image = new Image();
        image.onload = onload;
        image.onerror = onerror;
        image.src = src;
        return image;
    }
};
function setPlatformAPI(newPlatformApis) {
    for (var key in platformApi) {
        if (newPlatformApis[key]) {
            platformApi[key] = newPlatformApis[key];
        }
    }
}
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lift", function() { return lift; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHex", function() { return toHex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fastLerp", function() { return fastLerp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fastMapToColor", function() { return fastMapToColor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lerp", function() { return lerp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapToColor", function() { return mapToColor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "modifyHSL", function() { return modifyHSL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "modifyAlpha", function() { return modifyAlpha; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringify", function() { return stringify; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lum", function() { return lum; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "random", function() { return random; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "liftColor", function() { return liftColor; });
/* harmony import */ var _core_LRU_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(114);
/* harmony import */ var _core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);


var kCSSColorTable = {
    'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1],
    'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1],
    'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1],
    'beige': [245, 245, 220, 1], 'bisque': [255, 228, 196, 1],
    'black': [0, 0, 0, 1], 'blanchedalmond': [255, 235, 205, 1],
    'blue': [0, 0, 255, 1], 'blueviolet': [138, 43, 226, 1],
    'brown': [165, 42, 42, 1], 'burlywood': [222, 184, 135, 1],
    'cadetblue': [95, 158, 160, 1], 'chartreuse': [127, 255, 0, 1],
    'chocolate': [210, 105, 30, 1], 'coral': [255, 127, 80, 1],
    'cornflowerblue': [100, 149, 237, 1], 'cornsilk': [255, 248, 220, 1],
    'crimson': [220, 20, 60, 1], 'cyan': [0, 255, 255, 1],
    'darkblue': [0, 0, 139, 1], 'darkcyan': [0, 139, 139, 1],
    'darkgoldenrod': [184, 134, 11, 1], 'darkgray': [169, 169, 169, 1],
    'darkgreen': [0, 100, 0, 1], 'darkgrey': [169, 169, 169, 1],
    'darkkhaki': [189, 183, 107, 1], 'darkmagenta': [139, 0, 139, 1],
    'darkolivegreen': [85, 107, 47, 1], 'darkorange': [255, 140, 0, 1],
    'darkorchid': [153, 50, 204, 1], 'darkred': [139, 0, 0, 1],
    'darksalmon': [233, 150, 122, 1], 'darkseagreen': [143, 188, 143, 1],
    'darkslateblue': [72, 61, 139, 1], 'darkslategray': [47, 79, 79, 1],
    'darkslategrey': [47, 79, 79, 1], 'darkturquoise': [0, 206, 209, 1],
    'darkviolet': [148, 0, 211, 1], 'deeppink': [255, 20, 147, 1],
    'deepskyblue': [0, 191, 255, 1], 'dimgray': [105, 105, 105, 1],
    'dimgrey': [105, 105, 105, 1], 'dodgerblue': [30, 144, 255, 1],
    'firebrick': [178, 34, 34, 1], 'floralwhite': [255, 250, 240, 1],
    'forestgreen': [34, 139, 34, 1], 'fuchsia': [255, 0, 255, 1],
    'gainsboro': [220, 220, 220, 1], 'ghostwhite': [248, 248, 255, 1],
    'gold': [255, 215, 0, 1], 'goldenrod': [218, 165, 32, 1],
    'gray': [128, 128, 128, 1], 'green': [0, 128, 0, 1],
    'greenyellow': [173, 255, 47, 1], 'grey': [128, 128, 128, 1],
    'honeydew': [240, 255, 240, 1], 'hotpink': [255, 105, 180, 1],
    'indianred': [205, 92, 92, 1], 'indigo': [75, 0, 130, 1],
    'ivory': [255, 255, 240, 1], 'khaki': [240, 230, 140, 1],
    'lavender': [230, 230, 250, 1], 'lavenderblush': [255, 240, 245, 1],
    'lawngreen': [124, 252, 0, 1], 'lemonchiffon': [255, 250, 205, 1],
    'lightblue': [173, 216, 230, 1], 'lightcoral': [240, 128, 128, 1],
    'lightcyan': [224, 255, 255, 1], 'lightgoldenrodyellow': [250, 250, 210, 1],
    'lightgray': [211, 211, 211, 1], 'lightgreen': [144, 238, 144, 1],
    'lightgrey': [211, 211, 211, 1], 'lightpink': [255, 182, 193, 1],
    'lightsalmon': [255, 160, 122, 1], 'lightseagreen': [32, 178, 170, 1],
    'lightskyblue': [135, 206, 250, 1], 'lightslategray': [119, 136, 153, 1],
    'lightslategrey': [119, 136, 153, 1], 'lightsteelblue': [176, 196, 222, 1],
    'lightyellow': [255, 255, 224, 1], 'lime': [0, 255, 0, 1],
    'limegreen': [50, 205, 50, 1], 'linen': [250, 240, 230, 1],
    'magenta': [255, 0, 255, 1], 'maroon': [128, 0, 0, 1],
    'mediumaquamarine': [102, 205, 170, 1], 'mediumblue': [0, 0, 205, 1],
    'mediumorchid': [186, 85, 211, 1], 'mediumpurple': [147, 112, 219, 1],
    'mediumseagreen': [60, 179, 113, 1], 'mediumslateblue': [123, 104, 238, 1],
    'mediumspringgreen': [0, 250, 154, 1], 'mediumturquoise': [72, 209, 204, 1],
    'mediumvioletred': [199, 21, 133, 1], 'midnightblue': [25, 25, 112, 1],
    'mintcream': [245, 255, 250, 1], 'mistyrose': [255, 228, 225, 1],
    'moccasin': [255, 228, 181, 1], 'navajowhite': [255, 222, 173, 1],
    'navy': [0, 0, 128, 1], 'oldlace': [253, 245, 230, 1],
    'olive': [128, 128, 0, 1], 'olivedrab': [107, 142, 35, 1],
    'orange': [255, 165, 0, 1], 'orangered': [255, 69, 0, 1],
    'orchid': [218, 112, 214, 1], 'palegoldenrod': [238, 232, 170, 1],
    'palegreen': [152, 251, 152, 1], 'paleturquoise': [175, 238, 238, 1],
    'palevioletred': [219, 112, 147, 1], 'papayawhip': [255, 239, 213, 1],
    'peachpuff': [255, 218, 185, 1], 'peru': [205, 133, 63, 1],
    'pink': [255, 192, 203, 1], 'plum': [221, 160, 221, 1],
    'powderblue': [176, 224, 230, 1], 'purple': [128, 0, 128, 1],
    'red': [255, 0, 0, 1], 'rosybrown': [188, 143, 143, 1],
    'royalblue': [65, 105, 225, 1], 'saddlebrown': [139, 69, 19, 1],
    'salmon': [250, 128, 114, 1], 'sandybrown': [244, 164, 96, 1],
    'seagreen': [46, 139, 87, 1], 'seashell': [255, 245, 238, 1],
    'sienna': [160, 82, 45, 1], 'silver': [192, 192, 192, 1],
    'skyblue': [135, 206, 235, 1], 'slateblue': [106, 90, 205, 1],
    'slategray': [112, 128, 144, 1], 'slategrey': [112, 128, 144, 1],
    'snow': [255, 250, 250, 1], 'springgreen': [0, 255, 127, 1],
    'steelblue': [70, 130, 180, 1], 'tan': [210, 180, 140, 1],
    'teal': [0, 128, 128, 1], 'thistle': [216, 191, 216, 1],
    'tomato': [255, 99, 71, 1], 'turquoise': [64, 224, 208, 1],
    'violet': [238, 130, 238, 1], 'wheat': [245, 222, 179, 1],
    'white': [255, 255, 255, 1], 'whitesmoke': [245, 245, 245, 1],
    'yellow': [255, 255, 0, 1], 'yellowgreen': [154, 205, 50, 1]
};
function clampCssByte(i) {
    i = Math.round(i);
    return i < 0 ? 0 : i > 255 ? 255 : i;
}
function clampCssAngle(i) {
    i = Math.round(i);
    return i < 0 ? 0 : i > 360 ? 360 : i;
}
function clampCssFloat(f) {
    return f < 0 ? 0 : f > 1 ? 1 : f;
}
function parseCssInt(val) {
    var str = val;
    if (str.length && str.charAt(str.length - 1) === '%') {
        return clampCssByte(parseFloat(str) / 100 * 255);
    }
    return clampCssByte(parseInt(str, 10));
}
function parseCssFloat(val) {
    var str = val;
    if (str.length && str.charAt(str.length - 1) === '%') {
        return clampCssFloat(parseFloat(str) / 100);
    }
    return clampCssFloat(parseFloat(str));
}
function cssHueToRgb(m1, m2, h) {
    if (h < 0) {
        h += 1;
    }
    else if (h > 1) {
        h -= 1;
    }
    if (h * 6 < 1) {
        return m1 + (m2 - m1) * h * 6;
    }
    if (h * 2 < 1) {
        return m2;
    }
    if (h * 3 < 2) {
        return m1 + (m2 - m1) * (2 / 3 - h) * 6;
    }
    return m1;
}
function lerpNumber(a, b, p) {
    return a + (b - a) * p;
}
function setRgba(out, r, g, b, a) {
    out[0] = r;
    out[1] = g;
    out[2] = b;
    out[3] = a;
    return out;
}
function copyRgba(out, a) {
    out[0] = a[0];
    out[1] = a[1];
    out[2] = a[2];
    out[3] = a[3];
    return out;
}
var colorCache = new _core_LRU_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"](20);
var lastRemovedArr = null;
function putToCache(colorStr, rgbaArr) {
    if (lastRemovedArr) {
        copyRgba(lastRemovedArr, rgbaArr);
    }
    lastRemovedArr = colorCache.put(colorStr, lastRemovedArr || (rgbaArr.slice()));
}
function parse(colorStr, rgbaArr) {
    if (!colorStr) {
        return;
    }
    rgbaArr = rgbaArr || [];
    var cached = colorCache.get(colorStr);
    if (cached) {
        return copyRgba(rgbaArr, cached);
    }
    colorStr = colorStr + '';
    var str = colorStr.replace(/ /g, '').toLowerCase();
    if (str in kCSSColorTable) {
        copyRgba(rgbaArr, kCSSColorTable[str]);
        putToCache(colorStr, rgbaArr);
        return rgbaArr;
    }
    var strLen = str.length;
    if (str.charAt(0) === '#') {
        if (strLen === 4 || strLen === 5) {
            var iv = parseInt(str.slice(1, 4), 16);
            if (!(iv >= 0 && iv <= 0xfff)) {
                setRgba(rgbaArr, 0, 0, 0, 1);
                return;
            }
            setRgba(rgbaArr, ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8), (iv & 0xf0) | ((iv & 0xf0) >> 4), (iv & 0xf) | ((iv & 0xf) << 4), strLen === 5 ? parseInt(str.slice(4), 16) / 0xf : 1);
            putToCache(colorStr, rgbaArr);
            return rgbaArr;
        }
        else if (strLen === 7 || strLen === 9) {
            var iv = parseInt(str.slice(1, 7), 16);
            if (!(iv >= 0 && iv <= 0xffffff)) {
                setRgba(rgbaArr, 0, 0, 0, 1);
                return;
            }
            setRgba(rgbaArr, (iv & 0xff0000) >> 16, (iv & 0xff00) >> 8, iv & 0xff, strLen === 9 ? parseInt(str.slice(7), 16) / 0xff : 1);
            putToCache(colorStr, rgbaArr);
            return rgbaArr;
        }
        return;
    }
    var op = str.indexOf('(');
    var ep = str.indexOf(')');
    if (op !== -1 && ep + 1 === strLen) {
        var fname = str.substr(0, op);
        var params = str.substr(op + 1, ep - (op + 1)).split(',');
        var alpha = 1;
        switch (fname) {
            case 'rgba':
                if (params.length !== 4) {
                    return params.length === 3
                        ? setRgba(rgbaArr, +params[0], +params[1], +params[2], 1)
                        : setRgba(rgbaArr, 0, 0, 0, 1);
                }
                alpha = parseCssFloat(params.pop());
            case 'rgb':
                if (params.length >= 3) {
                    setRgba(rgbaArr, parseCssInt(params[0]), parseCssInt(params[1]), parseCssInt(params[2]), params.length === 3 ? alpha : parseCssFloat(params[3]));
                    putToCache(colorStr, rgbaArr);
                    return rgbaArr;
                }
                else {
                    setRgba(rgbaArr, 0, 0, 0, 1);
                    return;
                }
            case 'hsla':
                if (params.length !== 4) {
                    setRgba(rgbaArr, 0, 0, 0, 1);
                    return;
                }
                params[3] = parseCssFloat(params[3]);
                hsla2rgba(params, rgbaArr);
                putToCache(colorStr, rgbaArr);
                return rgbaArr;
            case 'hsl':
                if (params.length !== 3) {
                    setRgba(rgbaArr, 0, 0, 0, 1);
                    return;
                }
                hsla2rgba(params, rgbaArr);
                putToCache(colorStr, rgbaArr);
                return rgbaArr;
            default:
                return;
        }
    }
    setRgba(rgbaArr, 0, 0, 0, 1);
    return;
}
function hsla2rgba(hsla, rgba) {
    var h = (((parseFloat(hsla[0]) % 360) + 360) % 360) / 360;
    var s = parseCssFloat(hsla[1]);
    var l = parseCssFloat(hsla[2]);
    var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;
    var m1 = l * 2 - m2;
    rgba = rgba || [];
    setRgba(rgba, clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255), clampCssByte(cssHueToRgb(m1, m2, h) * 255), clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255), 1);
    if (hsla.length === 4) {
        rgba[3] = hsla[3];
    }
    return rgba;
}
function rgba2hsla(rgba) {
    if (!rgba) {
        return;
    }
    var R = rgba[0] / 255;
    var G = rgba[1] / 255;
    var B = rgba[2] / 255;
    var vMin = Math.min(R, G, B);
    var vMax = Math.max(R, G, B);
    var delta = vMax - vMin;
    var L = (vMax + vMin) / 2;
    var H;
    var S;
    if (delta === 0) {
        H = 0;
        S = 0;
    }
    else {
        if (L < 0.5) {
            S = delta / (vMax + vMin);
        }
        else {
            S = delta / (2 - vMax - vMin);
        }
        var deltaR = (((vMax - R) / 6) + (delta / 2)) / delta;
        var deltaG = (((vMax - G) / 6) + (delta / 2)) / delta;
        var deltaB = (((vMax - B) / 6) + (delta / 2)) / delta;
        if (R === vMax) {
            H = deltaB - deltaG;
        }
        else if (G === vMax) {
            H = (1 / 3) + deltaR - deltaB;
        }
        else if (B === vMax) {
            H = (2 / 3) + deltaG - deltaR;
        }
        if (H < 0) {
            H += 1;
        }
        if (H > 1) {
            H -= 1;
        }
    }
    var hsla = [H * 360, S, L];
    if (rgba[3] != null) {
        hsla.push(rgba[3]);
    }
    return hsla;
}
function lift(color, level) {
    var colorArr = parse(color);
    if (colorArr) {
        for (var i = 0; i < 3; i++) {
            if (level < 0) {
                colorArr[i] = colorArr[i] * (1 - level) | 0;
            }
            else {
                colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0;
            }
            if (colorArr[i] > 255) {
                colorArr[i] = 255;
            }
            else if (colorArr[i] < 0) {
                colorArr[i] = 0;
            }
        }
        return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb');
    }
}
function toHex(color) {
    var colorArr = parse(color);
    if (colorArr) {
        return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1);
    }
}
function fastLerp(normalizedValue, colors, out) {
    if (!(colors && colors.length)
        || !(normalizedValue >= 0 && normalizedValue <= 1)) {
        return;
    }
    out = out || [];
    var value = normalizedValue * (colors.length - 1);
    var leftIndex = Math.floor(value);
    var rightIndex = Math.ceil(value);
    var leftColor = colors[leftIndex];
    var rightColor = colors[rightIndex];
    var dv = value - leftIndex;
    out[0] = clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv));
    out[1] = clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv));
    out[2] = clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv));
    out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv));
    return out;
}
var fastMapToColor = fastLerp;
function lerp(normalizedValue, colors, fullOutput) {
    if (!(colors && colors.length)
        || !(normalizedValue >= 0 && normalizedValue <= 1)) {
        return;
    }
    var value = normalizedValue * (colors.length - 1);
    var leftIndex = Math.floor(value);
    var rightIndex = Math.ceil(value);
    var leftColor = parse(colors[leftIndex]);
    var rightColor = parse(colors[rightIndex]);
    var dv = value - leftIndex;
    var color = stringify([
        clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)),
        clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)),
        clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)),
        clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv))
    ], 'rgba');
    return fullOutput
        ? {
            color: color,
            leftIndex: leftIndex,
            rightIndex: rightIndex,
            value: value
        }
        : color;
}
var mapToColor = lerp;
function modifyHSL(color, h, s, l) {
    var colorArr = parse(color);
    if (color) {
        colorArr = rgba2hsla(colorArr);
        h != null && (colorArr[0] = clampCssAngle(h));
        s != null && (colorArr[1] = parseCssFloat(s));
        l != null && (colorArr[2] = parseCssFloat(l));
        return stringify(hsla2rgba(colorArr), 'rgba');
    }
}
function modifyAlpha(color, alpha) {
    var colorArr = parse(color);
    if (colorArr && alpha != null) {
        colorArr[3] = clampCssFloat(alpha);
        return stringify(colorArr, 'rgba');
    }
}
function stringify(arrColor, type) {
    if (!arrColor || !arrColor.length) {
        return;
    }
    var colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2];
    if (type === 'rgba' || type === 'hsva' || type === 'hsla') {
        colorStr += ',' + arrColor[3];
    }
    return type + '(' + colorStr + ')';
}
function lum(color, backgroundLum) {
    var arr = parse(color);
    return arr
        ? (0.299 * arr[0] + 0.587 * arr[1] + 0.114 * arr[2]) * arr[3] / 255
            + (1 - arr[3]) * backgroundLum
        : 0;
}
function random() {
    return stringify([
        Math.round(Math.random() * 255),
        Math.round(Math.random() * 255),
        Math.round(Math.random() * 255)
    ], 'rgb');
}
var liftedColorCache = new _core_LRU_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"](100);
function liftColor(color) {
    if (Object(_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(color)) {
        var liftedColor = liftedColorCache.get(color);
        if (!liftedColor) {
            liftedColor = lift(color, -0.1);
            liftedColorCache.put(color, liftedColor);
        }
        return liftedColor;
    }
    else if (Object(_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isGradientObject"])(color)) {
        var ret = Object(_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({}, color);
        ret.colorStops = Object(_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(color.colorStops, function (stop) { return ({
            offset: stop.offset,
            color: lift(stop.color, -0.1)
        }); });
        return ret;
    }
    return color;
}
/* unused harmony export Entry */
/* unused harmony export LinkedList */
var Entry = (function () {
    function Entry(val) {
        this.value = val;
    }
    return Entry;
}());

var LinkedList = (function () {
    function LinkedList() {
        this._len = 0;
    }
    LinkedList.prototype.insert = function (val) {
        var entry = new Entry(val);
        this.insertEntry(entry);
        return entry;
    };
    LinkedList.prototype.insertEntry = function (entry) {
        if (!this.head) {
            this.head = this.tail = entry;
        }
        else {
            this.tail.next = entry;
            entry.prev = this.tail;
            entry.next = null;
            this.tail = entry;
        }
        this._len++;
    };
    LinkedList.prototype.remove = function (entry) {
        var prev = entry.prev;
        var next = entry.next;
        if (prev) {
            prev.next = next;
        }
        else {
            this.head = next;
        }
        if (next) {
            next.prev = prev;
        }
        else {
            this.tail = prev;
        }
        entry.next = entry.prev = null;
        this._len--;
    };
    LinkedList.prototype.len = function () {
        return this._len;
    };
    LinkedList.prototype.clear = function () {
        this.head = this.tail = null;
        this._len = 0;
    };
    return LinkedList;
}());

var LRU = (function () {
    function LRU(maxSize) {
        this._list = new LinkedList();
        this._maxSize = 10;
        this._map = {};
        this._maxSize = maxSize;
    }
    LRU.prototype.put = function (key, value) {
        var list = this._list;
        var map = this._map;
        var removed = null;
        if (map[key] == null) {
            var len = list.len();
            var entry = this._lastRemovedEntry;
            if (len >= this._maxSize && len > 0) {
                var leastUsedEntry = list.head;
                list.remove(leastUsedEntry);
                delete map[leastUsedEntry.key];
                removed = leastUsedEntry.value;
                this._lastRemovedEntry = leastUsedEntry;
            }
            if (entry) {
                entry.value = value;
            }
            else {
                entry = new Entry(value);
            }
            entry.key = key;
            list.insertEntry(entry);
            map[key] = entry;
        }
        return removed;
    };
    LRU.prototype.get = function (key) {
        var entry = this._map[key];
        var list = this._list;
        if (entry != null) {
            if (entry !== list.tail) {
                list.remove(entry);
                list.insertEntry(entry);
            }
            return entry.value;
        }
    };
    LRU.prototype.clear = function () {
        this._list.clear();
        this._map = {};
    };
    LRU.prototype.len = function () {
        return this._list.len();
    };
    return LRU;
}());
/* harmony default export */ __webpack_exports__["a"] = (LRU);
var Browser = (function () {
    function Browser() {
        this.firefox = false;
        this.ie = false;
        this.edge = false;
        this.newEdge = false;
        this.weChat = false;
    }
    return Browser;
}());
var Env = (function () {
    function Env() {
        this.browser = new Browser();
        this.node = false;
        this.wxa = false;
        this.worker = false;
        this.svgSupported = false;
        this.touchEventsSupported = false;
        this.pointerEventsSupported = false;
        this.domSupported = false;
        this.transformSupported = false;
        this.transform3dSupported = false;
        this.hasGlobalWindow = typeof window !== 'undefined';
    }
    return Env;
}());
var env = new Env();
if (typeof wx === 'object' && typeof wx.getSystemInfoSync === 'function') {
    env.wxa = true;
    env.touchEventsSupported = true;
}
else if (typeof document === 'undefined' && typeof self !== 'undefined') {
    env.worker = true;
}
else if (!env.hasGlobalWindow || 'Deno' in window) {
    env.node = true;
    env.svgSupported = true;
}
else {
    detect(navigator.userAgent, env);
}
function detect(ua, env) {
    var browser = env.browser;
    var firefox = ua.match(/Firefox\/([\d.]+)/);
    var ie = ua.match(/MSIE\s([\d.]+)/)
        || ua.match(/Trident\/.+?rv:(([\d.]+))/);
    var edge = ua.match(/Edge?\/([\d.]+)/);
    var weChat = (/micromessenger/i).test(ua);
    if (firefox) {
        browser.firefox = true;
        browser.version = firefox[1];
    }
    if (ie) {
        browser.ie = true;
        browser.version = ie[1];
    }
    if (edge) {
        browser.edge = true;
        browser.version = edge[1];
        browser.newEdge = +edge[1].split('.')[0] > 18;
    }
    if (weChat) {
        browser.weChat = true;
    }
    env.svgSupported = typeof SVGRect !== 'undefined';
    env.touchEventsSupported = 'ontouchstart' in window && !browser.ie && !browser.edge;
    env.pointerEventsSupported = 'onpointerdown' in window
        && (browser.edge || (browser.ie && +browser.version >= 11));
    env.domSupported = typeof document !== 'undefined';
    var style = document.documentElement.style;
    env.transform3dSupported = ((browser.ie && 'transition' in style)
        || browser.edge
        || (('WebKitCSSMatrix' in window) && ('m11' in new WebKitCSSMatrix()))
        || 'MozPerspective' in style)
        && !('OTransition' in style);
    env.transformSupported = env.transform3dSupported
        || (browser.ie && +browser.version >= 9);
}
/* harmony default export */ __webpack_exports__["a"] = (env);
/* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return normalizeColor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return isAroundZero; });
/* unused harmony export round3 */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return round4; });
/* unused harmony export round1 */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getMatrixStr; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TEXT_ALIGN_TO_ANCHOR; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return adjustTextY; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return hasShadow; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getShadowKey; });
/* unused harmony export getClipPathsKey */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isImagePattern; });
/* unused harmony export isSVGPattern */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isPattern; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isLinearGradient; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isRadialGradient; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isGradient; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getIdURL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getPathPrecision; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getSRTTransformString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return encodeBase64; });
/* harmony import */ var _core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var _tool_color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
/* harmony import */ var _core_env_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);



var mathRound = Math.round;
function normalizeColor(color) {
    var opacity;
    if (!color || color === 'transparent') {
        color = 'none';
    }
    else if (typeof color === 'string' && color.indexOf('rgba') > -1) {
        var arr = Object(_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["parse"])(color);
        if (arr) {
            color = 'rgb(' + arr[0] + ',' + arr[1] + ',' + arr[2] + ')';
            opacity = arr[3];
        }
    }
    return {
        color: color,
        opacity: opacity == null ? 1 : opacity
    };
}
var EPSILON = 1e-4;
function isAroundZero(transform) {
    return transform < EPSILON && transform > -EPSILON;
}
function round3(transform) {
    return mathRound(transform * 1e3) / 1e3;
}
function round4(transform) {
    return mathRound(transform * 1e4) / 1e4;
}
function round1(transform) {
    return mathRound(transform * 10) / 10;
}
function getMatrixStr(m) {
    return 'matrix('
        + round3(m[0]) + ','
        + round3(m[1]) + ','
        + round3(m[2]) + ','
        + round3(m[3]) + ','
        + round4(m[4]) + ','
        + round4(m[5])
        + ')';
}
var TEXT_ALIGN_TO_ANCHOR = {
    left: 'start',
    right: 'end',
    center: 'middle',
    middle: 'middle'
};
function adjustTextY(y, lineHeight, textBaseline) {
    if (textBaseline === 'top') {
        y += lineHeight / 2;
    }
    else if (textBaseline === 'bottom') {
        y -= lineHeight / 2;
    }
    return y;
}
function hasShadow(style) {
    return style
        && (style.shadowBlur || style.shadowOffsetX || style.shadowOffsetY);
}
function getShadowKey(displayable) {
    var style = displayable.style;
    var globalScale = displayable.getGlobalScale();
    return [
        style.shadowColor,
        (style.shadowBlur || 0).toFixed(2),
        (style.shadowOffsetX || 0).toFixed(2),
        (style.shadowOffsetY || 0).toFixed(2),
        globalScale[0],
        globalScale[1]
    ].join(',');
}
function getClipPathsKey(clipPaths) {
    var key = [];
    if (clipPaths) {
        for (var i = 0; i < clipPaths.length; i++) {
            var clipPath = clipPaths[i];
            key.push(clipPath.id);
        }
    }
    return key.join(',');
}
function isImagePattern(val) {
    return val && (!!val.image);
}
function isSVGPattern(val) {
    return val && (!!val.svgElement);
}
function isPattern(val) {
    return isImagePattern(val) || isSVGPattern(val);
}
function isLinearGradient(val) {
    return val.type === 'linear';
}
function isRadialGradient(val) {
    return val.type === 'radial';
}
function isGradient(val) {
    return val && (val.type === 'linear'
        || val.type === 'radial');
}
function getIdURL(id) {
    return "url(#" + id + ")";
}
function getPathPrecision(el) {
    var scale = el.getGlobalScale();
    var size = Math.max(scale[0], scale[1]);
    return Math.max(Math.ceil(Math.log(size) / Math.log(10)), 1);
}
function getSRTTransformString(transform) {
    var x = transform.x || 0;
    var y = transform.y || 0;
    var rotation = (transform.rotation || 0) * _core_util_js__WEBPACK_IMPORTED_MODULE_0__["RADIAN_TO_DEGREE"];
    var scaleX = Object(_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(transform.scaleX, 1);
    var scaleY = Object(_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(transform.scaleY, 1);
    var skewX = transform.skewX || 0;
    var skewY = transform.skewY || 0;
    var res = [];
    if (x || y) {
        res.push("translate(" + x + "px," + y + "px)");
    }
    if (rotation) {
        res.push("rotate(" + rotation + ")");
    }
    if (scaleX !== 1 || scaleY !== 1) {
        res.push("scale(" + scaleX + "," + scaleY + ")");
    }
    if (skewX || skewY) {
        res.push("skew(" + mathRound(skewX * _core_util_js__WEBPACK_IMPORTED_MODULE_0__["RADIAN_TO_DEGREE"]) + "deg, " + mathRound(skewY * _core_util_js__WEBPACK_IMPORTED_MODULE_0__["RADIAN_TO_DEGREE"]) + "deg)");
    }
    return res.join(' ');
}
var encodeBase64 = (function () {
    if (_core_env_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].hasGlobalWindow && Object(_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(window.btoa)) {
        return function (str) {
            return window.btoa(unescape(encodeURIComponent(str)));
        };
    }
    if (typeof Buffer !== 'undefined') {
        return function (str) {
            return Buffer.from(str).toString('base64');
        };
    }
    return function (str) {
        if (false) {}
        return null;
    };
})();

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(77).Buffer))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"position":"relative"}},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"analysis-info"},[_c('div',{staticStyle:{"position":"relative","z-index":"11"}},[_vm._m(1),_vm._v(" "),_c('div',{staticClass:"brand-select"},[_c('div',{staticClass:"select-btn",on:{"click":function($event){$event.stopPropagation();return _vm.chooseBrand()}}},[_c('img',{staticClass:"brand-icon",attrs:{"src":__webpack_require__(3678)}}),_vm._v(" "),_c('span',{staticClass:"name"},[_vm._v(_vm._s(_vm.brandName?_vm.brandName:'请选择发动机型号'))])]),_vm._v(" "),_c('div',{staticClass:"up-down-btn"},[_c('div',{staticClass:"down-btn",on:{"click":function($event){$event.stopPropagation();return _vm.downloadFile()}}},[_vm._v("下载模板")]),_vm._v(" "),_c('div',{staticClass:"up-btn",on:{"click":function($event){$event.stopPropagation();return _vm.openFileContent.apply(null, arguments)}}},[_c('div',{staticClass:"title"},[_vm._v("上传数据")]),_vm._v(" "),_c('div',{staticClass:"tips"},[_vm._v("(支持xlsx、xls格式)")])]),_vm._v(" "),_c('input',{staticClass:"up-input",staticStyle:{"display":"none"},attrs:{"id":"fileInput","type":"file","accept":".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},on:{"change":function($event){return _vm.uploadFile($event)}}})])]),_vm._v(" "),(_vm.fileData.liufenxiCode)?_c('div',[_c('div',{staticClass:"input-list"},[_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("油门开度")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('油门开度','ymkdIndex')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.ymkdIndex!==''?_vm.biaotouList[_vm.ymkdIndex].name:'选择油门开度列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("%")])]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("转速")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('转速','zsIndex')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.zsIndex!==''?_vm.biaotouList[_vm.zsIndex].name:'选择转速列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("rpm/min")])]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("输出扭矩")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('输出扭矩','scnjIndex')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.scnjIndex!==''?_vm.biaotouList[_vm.scnjIndex].name:'选择输出扭矩列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("N•m")])])]),_vm._v(" "),(_vm.firstYC==='')?_c('div',{staticClass:"search-btn",on:{"click":function($event){return _vm.searchOp()}}},[_c('img',{attrs:{"src":__webpack_require__(1819)}}),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v("开始分析")])]):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.firstYC===0)?_c('div',{staticClass:"success-result"},[_vm._m(2),_vm._v(" "),_vm._m(3)]):_vm._e(),_vm._v(" "),(_vm.firstYC===1&&_vm.secondSearch==false)?_c('div',{staticClass:"fail-input-list"},[_vm._m(4),_vm._v(" "),_c('div',{staticClass:"input-list"},[_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("ECU型号")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn2('ECU')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.ecuIndex!==''?_vm.ECUList[_vm.ecuIndex].name:'选择ECU型号'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})])]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("扭矩限制")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('扭矩限制')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.njxzIndex!==''?_vm.biaotouList[_vm.njxzIndex].name:'选择扭矩限制列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})])])]),_vm._v(" "),_c('div',{staticClass:"input-list"},[_c('div',{staticClass:"input-title"},[_vm._v("油路数据流：")]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("喷油量")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('喷油量')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.pylIndex!==''?_vm.biaotouList[_vm.pylIndex].name:'选择喷油量列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('div',{staticClass:"select-input select-input2",on:{"click":function($event){return _vm.showPopupFn2('penyouliang')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.penyouliangIndex!==''?_vm.penyouliangDanweiList[_vm.penyouliangIndex].name:'选择单位'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})])]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("实际轨压")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('实际轨压')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.sjgyIndex!==''?_vm.biaotouList[_vm.sjgyIndex].name:'选择实际轨压列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('div',{staticClass:"select-input select-input2",on:{"click":function($event){return _vm.showPopupFn2('yaliDanwei','实际轨压')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.sjgydwIndex!==''?_vm.yaliDanweiList[_vm.sjgydwIndex].name:'选择单位'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})])]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("设定轨压")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('设定轨压')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.sdgyIndex!==''?_vm.biaotouList[_vm.sdgyIndex].name:'选择设定轨压列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('div',{staticClass:"select-input select-input2",on:{"click":function($event){return _vm.showPopupFn2('yaliDanwei','设定轨压')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.sdgydwIndex!==''?_vm.yaliDanweiList[_vm.sdgydwIndex].name:'选择单位'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})])]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("触发电流")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('触发电流')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.cfdlIndex!==''?_vm.biaotouList[_vm.cfdlIndex].name:'选择触发电流列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('span',{staticClass:"unit"},[_vm._v("mA")])])]),_vm._v(" "),_c('div',{staticClass:"input-list"},[_c('div',{staticClass:"input-title2"},[_vm._v("气路数据流：")]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("进气压力")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('进气压力')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.jqylIndex!==''?_vm.biaotouList[_vm.jqylIndex].name:'选择进气压力列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('div',{staticClass:"select-input select-input2",on:{"click":function($event){return _vm.showPopupFn2('yaliDanwei','进气压力')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.jqyldwIndex!==''?_vm.yaliDanweiList[_vm.jqyldwIndex].name:'选择单位'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})])]),_vm._v(" "),_c('div',{staticClass:"label-input"},[_c('label',{staticClass:"label"},[_vm._v("进气温度")]),_vm._v(" "),_c('div',{staticClass:"select-input",on:{"click":function($event){return _vm.showPopupFn('进气温度')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.jqwdIndex!==''?_vm.biaotouList[_vm.jqwdIndex].name:'选择进气温度列'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})]),_vm._v(" "),_c('div',{staticClass:"select-input select-input2",on:{"click":function($event){return _vm.showPopupFn2('jinqiwendu')}}},[_c('span',{staticClass:"text"},[_vm._v(_vm._s(_vm.jinqiwenduIndex!==''?_vm.jinqiwenduDanweiList[_vm.jinqiwenduIndex].name:'选择单位'))]),_vm._v(" "),_c('img',{staticClass:"icon",attrs:{"src":__webpack_require__(53)}})])])])]):_vm._e(),_vm._v(" "),(_vm.firstYC===1&&_vm.secondSearch==false)?_c('div',{staticClass:"search-btn",staticStyle:{"padding-bottom":"6rem"},on:{"click":function($event){return _vm.searchOp2()}}},[_c('img',{attrs:{"src":__webpack_require__(1819)}}),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v("继续分析")])]):_vm._e(),_vm._v(" "),(_vm.firstYC===1&&_vm.secondSearch==true)?_c('div',{staticClass:"fail-result"},[_c('div',{staticClass:"fail-result-title"},[(_vm.secondResult.isYichang_niujuxianzhi===0&&_vm.secondResult.isYichang_qilu===0&&_vm.secondResult.isYichang_youlu===0)?_c('p',{staticClass:"third-line"},[_vm._v("当前车辆发动机动力无异常!")]):_c('p',{staticClass:"first-line"},[_c('img',{attrs:{"src":__webpack_require__(825)}}),_vm._v("当前车辆发动机动力存在异常!")])]),_vm._v(" "),_c('div',{staticClass:"echart-pic"},[(_vm.secondResult.oneZhexiantu.isYichang==0)?_c('img',{staticClass:"echart-icon",attrs:{"src":__webpack_require__(331)}}):_c('img',{staticClass:"echart-icon",attrs:{"src":__webpack_require__(866)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"90%","height":"10rem","display":"inline-block","margin":"0 auto","margin-bottom":"15px"},attrs:{"id":"main2"}})]),_vm._v(" "),_c('div',{staticClass:"echart-pic"},[(_vm.secondResult.twoZhexiantu.isYichang==0)?_c('img',{staticClass:"echart-icon",attrs:{"src":__webpack_require__(331)}}):_c('img',{staticClass:"echart-icon",attrs:{"src":__webpack_require__(866)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"90%","height":"10rem","display":"inline-block","margin":"0 auto","margin-bottom":"15px"},attrs:{"id":"main3"}})]),_vm._v(" "),_c('div',{staticClass:"echart-pic"},[(_vm.secondResult.threeZhexiantu.isYichang==0)?_c('img',{staticClass:"echart-icon",attrs:{"src":__webpack_require__(331)}}):_c('img',{staticClass:"echart-icon",attrs:{"src":__webpack_require__(866)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"90%","height":"10rem","display":"inline-block","margin":"0 auto","margin-bottom":"15px"},attrs:{"id":"main4"}})]),_vm._v(" "),_c('div',{staticClass:"analysis-result"},[_c('span',{staticClass:"result-label"},[_vm._v("分析结论：")]),_c('span',{staticClass:"result-text r-color"},[_vm._v("当前车辆气路"+_vm._s(_vm.secondResult.isYichang_qilu===0?'正常':'异常')+",油路"+_vm._s(_vm.secondResult.isYichang_youlu===0?'正常':'异常')+",扭矩限制"+_vm._s(_vm.secondResult.isYichang_niujuxianzhi===0?'正常':'异常'))])]),_vm._v(" "),_c('div',{staticClass:"Guidance"},[_c('div',{staticStyle:{"font-weight":"800"}},[_vm._v("\n            指导意见：\n          ")]),_vm._v(" "),(_vm.secondResult.yichangList_niujuxianzhi.length>0)?_c('div',{staticStyle:{"margin-top":".4rem","font-weight":"800"}},[_vm._v("\n            扭矩限制:\n          ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.secondResult.yichangList_niujuxianzhi),function(d,index){return _c('div',{key:index,domProps:{"innerHTML":_vm._s(d)}})}),_vm._v(" "),(_vm.secondResult.yichangList_youlu.length>0)?_c('div',{staticStyle:{"margin-top":".4rem","font-weight":"800"}},[_vm._v("\n            油路数据流:\n          ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.secondResult.yichangList_youlu),function(d,index){return _c('div',{key:index,domProps:{"innerHTML":_vm._s(d)}})}),_vm._v(" "),(_vm.secondResult.yichangList_qilu.length>0)?_c('div',{staticStyle:{"margin-top":".4rem","font-weight":"800"}},[_vm._v("\n            气路数据流:\n          ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.secondResult.yichangList_qilu),function(d,index){return _c('div',{key:index,domProps:{"innerHTML":_vm._s(d)}})})],2),_vm._v(" "),_c('div',{staticClass:"artificial-op"},[_c('div',{staticClass:"tips"},[_vm._v("注意:如未排查到故障点，可点击人工分析")]),_vm._v(" "),_c('div',{staticClass:"artificial-btn",on:{"click":function($event){return _vm.goKefu()}}},[_c('span',[_vm._v("人 工 处 理")])])])]):_vm._e()]),_vm._v(" "),_vm._m(5)]),_vm._v(" "),_c('van-popup',{staticClass:"popup",attrs:{"lock-scroll":false,"round":"","safe-area-inset-bottom":"","position":"center"},model:{value:(_vm.showPopup3),callback:function ($$v) {_vm.showPopup3=$$v},expression:"showPopup3"}},[_c('img',{staticStyle:{"width":"15rem"},attrs:{"src":__webpack_require__(3679)}})]),_vm._v(" "),_c('van-popup',{staticClass:"popup",staticStyle:{"width":"88%"},attrs:{"lock-scroll":false,"round":"","safe-area-inset-bottom":"","position":"center"},model:{value:(_vm.showContent),callback:function ($$v) {_vm.showContent=$$v},expression:"showContent"}},[_c('div',{staticStyle:{"padding":".5rem"}},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.content)}}),_vm._v(" "),_c('div',{staticClass:"upfile-btn",on:{"click":_vm.openFileDialog}},[_vm._v("我已知晓\n        "),_c('input',{staticClass:"up-input",attrs:{"id":"fileInput2","type":"file","accept":".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},on:{"change":function($event){return _vm.uploadFile($event)}}})])])]),_vm._v(" "),_c('van-popup',{staticClass:"popup",attrs:{"lock-scroll":false,"round":"","safe-area-inset-bottom":"","position":"bottom"},model:{value:(_vm.showPopup),callback:function ($$v) {_vm.showPopup=$$v},expression:"showPopup"}},[_c('van-picker',{ref:"pickerRef",attrs:{"title":_vm.biaotouTitle,"show-toolbar":"","default-index":_vm.biaotouIndex,"columns":_vm.biaotouList.map(function (item) { return item.name; })},on:{"confirm":_vm.onConfirm,"cancel":_vm.onCancel}})],1),_vm._v(" "),_c('van-popup',{staticClass:"popup",attrs:{"lock-scroll":false,"round":"","safe-area-inset-bottom":"","position":"bottom"},model:{value:(_vm.showPopup2),callback:function ($$v) {_vm.showPopup2=$$v},expression:"showPopup2"}},[(_vm.popupType==='ECU')?_c('van-picker',{ref:"pickerRef",attrs:{"title":"ECU型号","show-toolbar":"","default-index":_vm.ecuIndex,"columns":_vm.ECUList.map(function (item) { return item.name; })},on:{"confirm":_vm.onConfirm2,"cancel":_vm.onCancel2}}):_vm._e(),_vm._v(" "),(_vm.popupType==='yaliDanwei')?_c('van-picker',{ref:"pickerRef",attrs:{"title":"压力单位","show-toolbar":"","default-index":_vm.yalidanweiIndex,"columns":_vm.yaliDanweiList.map(function (item) { return item.name; })},on:{"confirm":_vm.onConfirm2,"cancel":_vm.onCancel2}}):_vm._e(),_vm._v(" "),(_vm.popupType==='penyouliang')?_c('van-picker',{ref:"pickerRef",attrs:{"title":"喷油量单位","show-toolbar":"","default-index":_vm.penyouliangIndex,"columns":_vm.penyouliangDanweiList.map(function (item) { return item.name; })},on:{"confirm":_vm.onConfirm2,"cancel":_vm.onCancel2}}):_vm._e(),_vm._v(" "),(_vm.popupType==='jinqiwendu')?_c('van-picker',{ref:"pickerRef",attrs:{"title":"进气温度单位","show-toolbar":"","default-index":_vm.jinqiwenduIndex,"columns":_vm.jinqiwenduDanweiList.map(function (item) { return item.name; })},on:{"confirm":_vm.onConfirm2,"cancel":_vm.onCancel2}}):_vm._e()],1),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container",attrs:{"position":"bottom"},model:{value:(_vm.showPop),callback:function ($$v) {_vm.showPop=$$v},expression:"showPop"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("请选择")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{ref:"filterContainer",staticClass:"content-container mescroll-touch"},[_c('div',[_c('div',{staticClass:"content-title"},[_vm._v("ECU品牌")]),_vm._v(" "),_c('ul',{staticClass:"content-list"},_vm._l((_vm.brandList),function(item,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectClassOrBrand(item, 'brand', 1)}}},[_c('div',{class:{'active': _vm.brandTemp.id === item.id}},[_vm._v(_vm._s(item.name))])])}),0),_vm._v(" "),(_vm.brandTemp)?_c('div',{staticClass:"content-title"},[_vm._v("系列")]):_vm._e(),_vm._v(" "),(_vm.brandTemp)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.seriesList),function(s,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectSeries(s)}}},[_c('div',{class:{'active': _vm.seriesTemp.id === s.id}},[_vm._v(_vm._s(s.name))])])}),0):_vm._e(),_vm._v(" "),(_vm.seriesTemp)?_c('div',{staticClass:"content-title"},[_vm._v("型号")]):_vm._e(),_vm._v(" "),(_vm.seriesTemp)?_c('ul',{staticClass:"content-list"},_vm._l((_vm.typeList),function(t,index){return _c('li',{key:index,on:{"click":function($event){return _vm.selectType(t)}}},[_c('div',{class:{'active': _vm.typeTemp.id === t.id}},[_vm._v(_vm._s(t.name))])])}),0):_vm._e()])]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn",on:{"click":function($event){return _vm.confrimSelect()}}},[_vm._v("确定")])])]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop2),callback:function ($$v) {_vm.showPop2=$$v},expression:"showPop2"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop2 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请进行分享或者购买SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.shareFriends()}}},[_vm._v("分享")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop3),callback:function ($$v) {_vm.showPop3=$$v},expression:"showPop3"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop3 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请购买VIP或者SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.goBuySvip(2)}}},[_vm._v("购买VIP")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])]),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false}}},[_c('div',{staticClass:"shareTips"},[_c('van-icon',{attrs:{"name":"down"}}),_vm._v(" "),_c('p',[_vm._v("点击右上角分享")])],1)]):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"analysis-bg"},[_c('img',{attrs:{"src":__webpack_require__(3680)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title-img"},[_c('img',{attrs:{"src":__webpack_require__(3681)}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"result-title"},[_c('div',{staticClass:"first-line"},[_vm._v("当前车辆发动机动力无异常!")]),_vm._v(" "),_c('div',{staticClass:"second-line"},[_vm._v("注意:如明显感觉动力差，建议检查整车问题!")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"echart-pic"},[_c('img',{staticClass:"echart-icon",attrs:{"src":__webpack_require__(331)}}),_vm._v(" "),_c('div',{staticStyle:{"width":"90%","height":"10rem","display":"inline-block","margin":"0 auto","margin-bottom":"15px"},attrs:{"id":"main"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"fail-result-title"},[_c('p',{staticClass:"first-line"},[_c('img',{attrs:{"src":__webpack_require__(825)}}),_vm._v("当前车辆发动机动力存在异常!")]),_vm._v(" "),_c('p',{staticClass:"second-line"},[_vm._v("注意:需再次选择数据流进行详细分析")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"analysis-bottom-bg"},[_c('img',{attrs:{"src":__webpack_require__(1479)}})])}]
module.exports = __webpack_require__.p + "static/img/streamType.dcde488.png";module.exports = __webpack_require__.p + "static/img/search.4b421b8.png";module.exports = __webpack_require__.p + "static/img/streamIcon.7f16c49.png";module.exports = __webpack_require__.p + "static/img/streamIconError.5e9e1dd.png";module.exports = __webpack_require__.p + "static/img/qyCode.bb1e9fa.png";module.exports = __webpack_require__.p + "static/img/streamBg.f04053b.png";module.exports = __webpack_require__.p + "static/img/streamTitle.b91bd3c.png";module.exports = __webpack_require__.p + "static/img/bg.402a7f5.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(732);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42fcbb95_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1331);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3682)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-42fcbb95"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42fcbb95_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_42fcbb95_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ECUEncryptionSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3683);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7ff38394", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".container[data-v-42fcbb95]{background-color:#f5f5f5;min-height:100vh;width:100%}.card[data-v-42fcbb95]{background-color:#fff;margin:.48rem;padding:.48rem;border-radius:.28rem;box-shadow:0 .05rem .19rem rgba(0,0,0,.05)}.card-title[data-v-42fcbb95]{font-size:.76rem;font-weight:700;margin-bottom:.48rem}.search-bar[data-v-42fcbb95]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:#f3f3f3;border-radius:.24rem;padding:.36rem}.icon-search[data-v-42fcbb95]{width:.76rem;height:.76rem;margin-right:.24rem}.input[data-v-42fcbb95]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.76rem;padding-left:.24rem;background-color:transparent;border:none}.btn-search[data-v-42fcbb95]{background-color:#f50;color:#fff;font-size:.76rem;border-radius:.24rem;padding:.36rem .48rem;margin-left:.24rem}.history-section[data-v-42fcbb95]{margin-top:.72rem}.history-header[data-v-42fcbb95]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.68rem;margin-bottom:.24rem}.history-empty[data-v-42fcbb95]{font-size:.64rem;color:#999}.history-list[data-v-42fcbb95]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:.24rem}.history-item[data-v-42fcbb95]{padding:.24rem .48rem;background-color:#f0f0f0;border-radius:.18rem;font-size:.64rem;color:#333}.tips[data-v-42fcbb95]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.64rem;margin-top:.48rem}.dot[data-v-42fcbb95]{font-size:.96rem;margin-right:.24rem;line-height:1;color:#f33}.icon-delete[data-v-42fcbb95]{width:.76rem;height:.76rem}.shareMAsk[data-v-42fcbb95]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:3000;background:rgba(0,0,0,.5)}.shareMAsk .shareTips[data-v-42fcbb95]{width:9.5rem;height:3.825rem;position:absolute;top:.5rem;right:.5rem}.shareMAsk .shareTips .van-icon-down[data-v-42fcbb95]{position:relative;left:4.5rem;font-size:40px;color:#fff;-webkit-transform:rotate(-148deg);-ms-transform:rotate(-148deg);transform:rotate(-148deg)}.shareMAsk .shareTips>p[data-v-42fcbb95]:first-of-type{margin-top:.85rem}.shareMAsk .shareTips>p[data-v-42fcbb95]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.pop-container[data-v-42fcbb95]{width:100%;height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-42fcbb95]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-42fcbb95]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-42fcbb95]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-42fcbb95]{height:80.5%;padding-bottom:1rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-42fcbb95]{padding:.8rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-42fcbb95]{padding:0 .5rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.pop-container .content-container .content-list li[data-v-42fcbb95]{width:33.333%;margin-bottom:.4rem;padding:0 .22rem;overflow:hidden}.pop-container .content-container .content-list li div[data-v-42fcbb95]{padding:0 .2rem;width:100%;height:100%;line-height:1.5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;word-break:break-all;font-weight:400;color:#333;text-align:center;vertical-align:top}.pop-container .content-container .content-list li div.active[data-v-42fcbb95]{background-color:#e7f1ff;color:#2450f7}.pop-container .foot-bar[data-v-42fcbb95]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.pop-container .foot-bar .btn[data-v-42fcbb95]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}.pop-container2[data-v-42fcbb95]{height:30%;width:90%;border-radius:.6rem}.pop-container2 .tips-content[data-v-42fcbb95]{padding:1rem;font-size:18px}.pop-container2 .foot-bar .btn2[data-v-42fcbb95]{width:48%;line-height:1;padding:.5rem 0;margin:0 auto;font-size:.72rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'ECUEncryptionSearch',
  components: (0, _defineProperty2.default)({}, _icon.default.name, _icon.default),
  data: function data() {
    return {
      lineNumber: '',
      history: [],
      time: 0,
      timing: '',
      showShareBox: false,
      showPop2: false,
      showPop3: false
    };
  },
  mounted: function mounted() {
    localStorage.setItem('isAdminPass', this._Util.getParaValueByName('isAdminPass'));
    localStorage.setItem('isAccessControl', this._Util.getParaValueByName('isAccessControl'));
    localStorage.setItem('isVip', this._Util.getParaValueByName('isVip'));
    localStorage.setItem('isSvip', this._Util.getParaValueByName('isSvip'));
    localStorage.setItem('isAccess', this._Util.getParaValueByName('isAccess'));
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: 'ECU加密',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    this.loadHistory();
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: 'ECU加密,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
     * 分享给好友
     */
    shareFriends: function shareFriends() {
      var _this = this;
      var that = this;
      var params = {};
      this._Util.post(this._Api.GET_SEARCHVIPCOUNT, params, function (data) {
        _this.shareCount = data;
        if (_this.shareCount > 0) {
          if (that._Util.isFromApp()) {
            uni.postMessage({
              // eslint-disable-line
              data: {
                type: 'share',
                isAdd: 1
              }
            });
            return;
          }
          that.showShareBox = true;
        } else {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '今日分享次数已达上限，如需继续分享，请联系管理员'
          });
        }
      }, function () {}, this);
    },
    goBuySvip: function goBuySvip(type) {
      this.showPop2 = false;
      this.showPop3 = false;
      uni.navigateTo({
        url: '/pages/mine/vip/index?type=1&vipType=' + type
      });
    },
    loadHistory: function loadHistory() {
      var stored = localStorage.getItem('lineSearchHistory');
      this.history = stored ? JSON.parse(stored) : [];
    },
    saveHistory: function saveHistory() {
      localStorage.setItem('lineSearchHistory', JSON.stringify(this.history));
    },
    searchLine: function searchLine() {
      var trimmed = this.lineNumber.trim();
      if (!trimmed) {
        (0, _mintUi.Toast)({
          message: '请输入ECU型号',
          duration: 1500
        });
        return;
      }

      // 添加新历史记录（去重）
      if (!this.history.includes(trimmed)) {
        this.history.unshift(trimmed);
        console.log(this.history);
        if (this.history.length > 10) this.history.pop(); // 限制记录条数
        this.saveHistory();
      }

      // 清空输入框
      this.lineNumber = '';
      this.search(trimmed);
    },
    clearHistory: function clearHistory() {
      var _this2 = this;
      (0, _mintUi.MessageBox)({
        title: '温馨提示',
        message: '确定清除所有历史记录？'
      }).then(function (action) {
        if (action === 'confirm') {
          _this2.history = [];
          localStorage.removeItem('lineSearchHistory');
        }
      });
    },
    clickHistoryItem: function clickHistoryItem(item) {
      this.lineNumber = item;
      this.searchLine();
    },
    search: function search(key) {
      var _this3 = this;
      var that = this;
      that.$http.post(this._Api.SEARCH_ECUENCRYPTIONLIST, {
        pageNum: 1,
        pageSize: 100,
        searchKey: key
      }).then(function (res) {
        if (res.data.status === 200) {
          _this3.list = res.data.data.list;
          if (_this3.list && _this3.list.length > 0) {
            _this3.$router.push({
              name: 'EUCResult',
              query: {
                list: JSON.stringify(_this3.list),
                key: key
              }
            });
          } else {
            (0, _mintUi.Toast)({
              message: '未查询到结果',
              duration: 1500
            });
          }
        } else {
          if (res.data.status == 600) {
            that.showPop2 = true;
          } else if (res.data.status == 700) {
            that.showPop3 = true;
          } else {
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: res.data.msg
            });
            // Toast({
            //   message: res.data.msg,
            //   position: 'bottom',
            //   duration: 2000
            // })
          }
        }
      }).catch(function (err) {
        console.log(err);
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container"},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-title"},[_vm._v("ECU加密查询")]),_vm._v(" "),_c('div',{staticClass:"search-bar"},[_c('img',{staticClass:"icon-search",attrs:{"src":__webpack_require__(179)}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.lineNumber),expression:"lineNumber"}],staticClass:"input",attrs:{"type":"text","placeholder":"请输入ECU型号 如：0281 xxx xxx"},domProps:{"value":(_vm.lineNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.lineNumber=$event.target.value}}}),_vm._v(" "),_c('button',{staticClass:"btn-search",on:{"click":_vm.searchLine}},[_vm._v("查询")])]),_vm._v(" "),_c('div',{staticClass:"history-section"},[_c('div',{staticClass:"history-header"},[_c('span',[_vm._v("搜索历史")]),_vm._v(" "),_c('img',{staticClass:"icon-delete",attrs:{"src":__webpack_require__(1480)},on:{"click":_vm.clearHistory}})]),_vm._v(" "),(_vm.history.length === 0)?_c('div',{staticClass:"history-empty"},[_vm._v("\n        暂无历史记录\n      ")]):_c('div',{staticClass:"history-list"},_vm._l((_vm.history),function(item,index){return _c('div',{key:index,staticClass:"history-item",on:{"click":function($event){return _vm.clickHistoryItem(item)}}},[_vm._v("\n          "+_vm._s(item)+"\n        ")])}),0)]),_vm._v(" "),_vm._m(0)]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop2),callback:function ($$v) {_vm.showPop2=$$v},expression:"showPop2"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop2 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请进行分享或者购买SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.shareFriends()}}},[_vm._v("分享")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop3),callback:function ($$v) {_vm.showPop3=$$v},expression:"showPop3"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop3 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请购买VIP或者SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.goBuySvip(2)}}},[_vm._v("购买VIP")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])]),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false}}},[_c('div',{staticClass:"shareTips"},[_c('van-icon',{attrs:{"name":"down"}}),_vm._v(" "),_c('p',[_vm._v("点击右上角分享")])],1)]):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tips"},[_c('span',{staticClass:"dot"},[_vm._v("•")]),_vm._v("\n      可查询博世/自主/德尔福/电装等\n    ")])}]
module.exports = __webpack_require__.p + "static/img/searchNew.ce7996c.png";module.exports = __webpack_require__.p + "static/img/delete.1231fc6.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(733);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6622b100_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1332);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3684)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6622b100"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6622b100_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6622b100_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EUCResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3685);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("a86c2f30", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".container[data-v-6622b100]{padding:.48rem;background:#f5f5f5;min-height:100vh;width:100%;height:auto!important}.list .card[data-v-6622b100]{background:#fff;margin-bottom:.48rem;border-radius:.24rem;padding:.48rem;position:relative}.list .card .lineECU[data-v-6622b100]{margin-bottom:.24rem;color:#666;font-size:.64rem}.list .card .lineECU .title[data-v-6622b100]{font-weight:700}.list .card .lineECU .numberECU[data-v-6622b100]{color:#e63946;font-weight:700}.wrap[data-v-6622b100]{position:relative;width:100%}.content[data-v-6622b100]{position:relative;z-index:1}.maskECU[data-v-6622b100]{position:absolute;top:0;left:0;right:0;bottom:0;background:hsla(0,0%,100%,.3);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(8px);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;z-index:2}.maskECU-text[data-v-6622b100]{color:#333;font-size:18px;font-weight:700}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'EUCResult',
  data: function data() {
    return {
      list: [],
      isMember: false,
      time: 0,
      timing: '',
      vipType: ''
    };
  },
  mounted: function mounted() {
    window.vuePage = this;
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: 'ECU加密',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    this.loadData();
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: 'ECU加密,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    refreshByApp: function refreshByApp() {
      this.loadData();
    },
    loadData: function loadData() {
      var _this = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this._Util.getUserInfo(_this);
            case 1:
              userinfo = _context.sent;
              if (localStorage.getItem('isAdminPass') == 0) {
                if (localStorage.getItem('isAccessControl') == 1) {
                  if (!_this._Util.isSVip(userinfo.userVipType)) {
                    if (localStorage.getItem('isSvip') == 1 && localStorage.getItem('isAccess') != 1) {
                      _this.vipType = 1;
                    } else {
                      if (!_this._Util.isVip(userinfo.userVipType)) {
                        if (localStorage.getItem('isVip') == 1 && localStorage.getItem('isAccess') != 1) {
                          _this.vipType = 2;
                        } else {
                          _this.isMember = true;
                        }
                      } else {
                        _this.isMember = true;
                      }
                    }
                  } else {
                    _this.isMember = true;
                  }
                } else {
                  _this.isMember = true;
                }
              } else {
                _this.isMember = true;
              }
              _this.$nextTick(function () {
                this.list = JSON.parse(this.$route.query.list);
              });
              // this.isMember = this._Util.isVip(userinfo.userVipType)
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    toBuyVip: function toBuyVip() {
      uni.navigateTo({
        url: '/pages/mine/vip/index?type=1&vipType=' + this.vipType
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container"},[_c('div',{staticClass:"list"},_vm._l((_vm.list),function(item,idx){return _c('div',{key:idx,staticClass:"card"},[_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"title"},[_vm._v("ECU型号：")]),_vm._v(" "),_c('span',{staticClass:"numberECU"},[_vm._v(_vm._s(item.code? item.code : ''))])]),_vm._v(" "),_c('div',{staticClass:"wrap"},[_c('div',{ref:"v1",refInFor:true,staticClass:"content"},[_c('div',{staticClass:"lineECU"},[_vm._v("部件类型："+_vm._s(item.bujianType? item.bujianType : ''))]),_vm._v(" "),_c('div',{staticClass:"lineECU"},[_vm._v("部件名称："+_vm._s(item.name? item.name : ''))])]),_vm._v(" "),(!_vm.isMember)?_c('div',{ref:"v2",refInFor:true,staticClass:"maskECU",on:{"click":_vm.toBuyVip}},[(_vm.vipType==2)?_c('div',{staticClass:"maskECU-text"},[_vm._v("仅VIP可查看,点击开通VIP")]):_vm._e(),_vm._v(" "),(_vm.vipType==1)?_c('div',{staticClass:"maskECU-text"},[_vm._v("仅SVIP可查看,点击开通SVIP")]):_vm._e()]):_vm._e()])])}),0)])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(734);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f9227c3e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1333);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3686)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-f9227c3e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f9227c3e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_f9227c3e_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fuelInjectorSearch_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3687);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("588ddb0c", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".container[data-v-f9227c3e]{background-color:#f5f5f5;min-height:100vh;width:100%}.card[data-v-f9227c3e]{background-color:#fff;margin:.48rem;padding:.48rem;border-radius:.28rem;box-shadow:0 .05rem .19rem rgba(0,0,0,.05)}.card-title[data-v-f9227c3e]{font-size:.76rem;font-weight:700;margin-bottom:.48rem}.search-bar[data-v-f9227c3e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:#f3f3f3;border-radius:.24rem;padding:.36rem}.icon-search[data-v-f9227c3e]{width:.76rem;height:.76rem;margin-right:.24rem}.input[data-v-f9227c3e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.76rem;padding-left:.24rem;background-color:transparent;border:none}.btn-search[data-v-f9227c3e]{background-color:#f50;color:#fff;font-size:.76rem;border-radius:.24rem;padding:.36rem .48rem;margin-left:.24rem}.history-section[data-v-f9227c3e]{margin-top:.72rem}.history-header[data-v-f9227c3e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.68rem;margin-bottom:.24rem}.history-empty[data-v-f9227c3e]{font-size:.64rem;color:#999}.history-list[data-v-f9227c3e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:.24rem}.history-item[data-v-f9227c3e]{padding:.24rem .48rem;background-color:#f0f0f0;border-radius:.18rem;font-size:.64rem;color:#333}.tips[data-v-f9227c3e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.64rem;margin-top:.48rem}.dot[data-v-f9227c3e]{font-size:.96rem;margin-right:.24rem;line-height:1;color:#f33}.icon-delete[data-v-f9227c3e]{width:.76rem;height:.76rem}.shareMAsk[data-v-f9227c3e]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:3000;background:rgba(0,0,0,.5)}.shareMAsk .shareTips[data-v-f9227c3e]{width:9.5rem;height:3.825rem;position:absolute;top:.5rem;right:.5rem}.shareMAsk .shareTips .van-icon-down[data-v-f9227c3e]{position:relative;left:4.5rem;font-size:40px;color:#fff;-webkit-transform:rotate(-148deg);-ms-transform:rotate(-148deg);transform:rotate(-148deg)}.shareMAsk .shareTips>p[data-v-f9227c3e]:first-of-type{margin-top:.85rem}.shareMAsk .shareTips>p[data-v-f9227c3e]{font-family:PingFangSC-Regular;font-size:.8rem;color:#fff;text-align:center}.pop-container[data-v-f9227c3e]{width:100%;height:90%;background-color:#fff;border-radius:.6rem .6rem 0 0;overflow:hidden}.pop-container .head[data-v-f9227c3e]{display:-ms-flexbox;display:flex;display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:2.75rem;background:#f6f6f6}.pop-container .head .title[data-v-f9227c3e]{font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1}.pop-container .head .close[data-v-f9227c3e]{position:absolute;right:0;padding:1rem .8rem;line-height:1}.pop-container .content-container[data-v-f9227c3e]{height:80.5%;padding-bottom:1rem;overflow-y:auto}.pop-container .content-container .content-title[data-v-f9227c3e]{padding:.8rem;font-size:.8rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:1.25rem}.pop-container .content-container .content-list[data-v-f9227c3e]{padding:0 .5rem;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.pop-container .content-container .content-list li[data-v-f9227c3e]{width:33.333%;margin-bottom:.4rem;padding:0 .22rem;overflow:hidden}.pop-container .content-container .content-list li div[data-v-f9227c3e]{padding:0 .2rem;width:100%;height:100%;line-height:1.5rem;background-color:#f5f5f5;border-radius:.2rem;font-size:.75rem;font-family:PingFangSC-Regular,PingFang SC;word-break:break-all;font-weight:400;color:#333;text-align:center;vertical-align:top}.pop-container .content-container .content-list li div.active[data-v-f9227c3e]{background-color:#e7f1ff;color:#2450f7}.pop-container .foot-bar[data-v-f9227c3e]{border-top:1px solid #eee;padding:.35rem .85rem;position:absolute;bottom:0;width:100%;background-color:#fff}.pop-container .foot-bar .btn[data-v-f9227c3e]{width:100%;line-height:1;padding:.7rem 0;margin:0 auto;font-size:.9rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}.pop-container2[data-v-f9227c3e]{height:30%;width:90%;border-radius:.6rem}.pop-container2 .tips-content[data-v-f9227c3e]{padding:1rem;font-size:18px}.pop-container2 .foot-bar .btn2[data-v-f9227c3e]{width:48%;line-height:1;padding:.5rem 0;margin:0 auto;font-size:.72rem;font-weight:400;color:#fff;text-align:center;background-color:#2450f7;border-radius:.3rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
var _mintUi = __webpack_require__(7);
var _vant = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'ECUEncryptionSearch',
  components: (0, _defineProperty2.default)({}, _icon.default.name, _icon.default),
  data: function data() {
    return {
      lineNumber: '',
      history: [],
      time: 0,
      timing: '',
      showPop2: false,
      showPop3: false,
      showShareBox: false
    };
  },
  mounted: function mounted() {
    localStorage.setItem('isAdminPass', this._Util.getParaValueByName('isAdminPass'));
    localStorage.setItem('isAccessControl', this._Util.getParaValueByName('isAccessControl'));
    localStorage.setItem('isVip', this._Util.getParaValueByName('isVip'));
    localStorage.setItem('isSvip', this._Util.getParaValueByName('isSvip'));
    localStorage.setItem('isAccess', this._Util.getParaValueByName('isAccess'));
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '喷油器行程',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    this.loadHistory();
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '喷油器行程,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    /**
     * 分享给好友
     */
    shareFriends: function shareFriends() {
      var _this = this;
      var that = this;
      var params = {};
      this._Util.post(this._Api.GET_SEARCHVIPCOUNT, params, function (data) {
        _this.shareCount = data;
        if (_this.shareCount > 0) {
          if (that._Util.isFromApp()) {
            uni.postMessage({
              // eslint-disable-line
              data: {
                type: 'share',
                isAdd: 1
              }
            });
            return;
          }
          that.showShareBox = true;
        } else {
          (0, _mintUi.MessageBox)({
            title: '提示',
            message: '今日分享次数已达上限，如需继续分享，请联系管理员'
          });
        }
      }, function () {}, this);
    },
    goBuySvip: function goBuySvip(type) {
      this.showPop2 = false;
      this.showPop3 = false;
      uni.navigateTo({
        url: '/pages/mine/vip/index?type=1&vipType=' + type
      });
    },
    loadHistory: function loadHistory() {
      var stored = localStorage.getItem('lineSearchHistory2');
      this.history = stored ? JSON.parse(stored) : [];
    },
    saveHistory: function saveHistory() {
      localStorage.setItem('lineSearchHistory2', JSON.stringify(this.history));
    },
    searchLine: function searchLine() {
      var trimmed = this.lineNumber.trim();
      if (!trimmed) {
        (0, _mintUi.Toast)({
          message: '请输入喷油器号',
          duration: 1500
        });
        return;
      }

      // 添加新历史记录（去重）
      if (!this.history.includes(trimmed)) {
        this.history.unshift(trimmed);
        if (this.history.length > 10) this.history.pop(); // 限制记录条数
        this.saveHistory();
      }

      // 清空输入框
      this.lineNumber = '';
      this.search(trimmed);
    },
    clearHistory: function clearHistory() {
      var _this2 = this;
      (0, _mintUi.MessageBox)({
        title: '温馨提示',
        message: '确定清除所有历史记录？'
      }).then(function (action) {
        if (action === 'confirm') {
          _this2.history = [];
          localStorage.removeItem('lineSearchHistory2');
        }
      });
    },
    clickHistoryItem: function clickHistoryItem(item) {
      this.lineNumber = item;
      this.searchLine();
    },
    search: function search(key) {
      var _this3 = this;
      var that = this;
      that.$http.post(this._Api.GET_PENYOUQIXINGCHENG, {
        code: key
      }).then(function (res) {
        if (res.data.status === 200) {
          _this3.list = res.data.data;
          if (_this3.list.code) {
            _this3.$router.push({
              name: 'fuelInjectorResult',
              query: {
                list: JSON.stringify(_this3.list),
                key: key
              }
            });
          } else {
            (0, _mintUi.Toast)({
              message: '未查询到结果',
              duration: 1500
            });
          }
        } else {
          if (res.data.status == 600) {
            that.showPop2 = true;
          } else if (res.data.status == 700) {
            that.showPop3 = true;
          } else {
            (0, _mintUi.MessageBox)({
              title: '提示',
              message: res.data.msg
            });
            // Toast({
            //   message: res.data.msg,
            //   position: 'bottom',
            //   duration: 2000
            // })
          }
        }
      }).catch(function (err) {
        console.log(err);
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container"},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-title"},[_vm._v("喷油器行程查询")]),_vm._v(" "),_c('div',{staticClass:"search-bar"},[_c('img',{staticClass:"icon-search",attrs:{"src":__webpack_require__(179)}}),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.lineNumber),expression:"lineNumber"}],staticClass:"input",attrs:{"type":"text","placeholder":"请输入喷油器号 如：0445 xxx xxx"},domProps:{"value":(_vm.lineNumber)},on:{"input":function($event){if($event.target.composing){ return; }_vm.lineNumber=$event.target.value}}}),_vm._v(" "),_c('button',{staticClass:"btn-search",on:{"click":_vm.searchLine}},[_vm._v("查询")])]),_vm._v(" "),_c('div',{staticClass:"history-section"},[_c('div',{staticClass:"history-header"},[_c('span',[_vm._v("搜索历史")]),_vm._v(" "),_c('img',{staticClass:"icon-delete",attrs:{"src":__webpack_require__(1480)},on:{"click":_vm.clearHistory}})]),_vm._v(" "),(_vm.history.length === 0)?_c('div',{staticClass:"history-empty"},[_vm._v("\n        暂无历史记录\n      ")]):_c('div',{staticClass:"history-list"},_vm._l((_vm.history),function(item,index){return _c('div',{key:index,staticClass:"history-item",on:{"click":function($event){return _vm.clickHistoryItem(item)}}},[_vm._v("\n          "+_vm._s(item)+"\n        ")])}),0)]),_vm._v(" "),_vm._m(0)]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop2),callback:function ($$v) {_vm.showPop2=$$v},expression:"showPop2"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop2 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请进行分享或者购买SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.shareFriends()}}},[_vm._v("分享")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])]),_vm._v(" "),_c('mt-popup',{staticClass:"pop-container pop-container2",attrs:{"position":"center"},model:{value:(_vm.showPop3),callback:function ($$v) {_vm.showPop3=$$v},expression:"showPop3"}},[_c('div',{staticClass:"head"},[_c('span',{staticClass:"title"},[_vm._v("提示")]),_vm._v(" "),_c('span',{staticClass:"close",on:{"click":function($event){_vm.showPop3 = false}}},[_vm._v("关闭")])]),_vm._v(" "),_c('div',{staticClass:"tips-content"},[_vm._v("\n      今日访问次数已达上限，如需继续访问，请购买VIP或者SVIP\n    ")]),_vm._v(" "),_c('div',{staticClass:"foot-bar"},[_c('span',{staticClass:"btn2",staticStyle:{"margin-right":"2%"},on:{"click":function($event){return _vm.goBuySvip(2)}}},[_vm._v("购买VIP")]),_vm._v(" "),_c('span',{staticClass:"btn2",on:{"click":function($event){return _vm.goBuySvip(1)}}},[_vm._v("购买SVIP")])])]),_vm._v(" "),(_vm.showShareBox)?_c('div',{staticClass:"shareMAsk",on:{"click":function($event){_vm.showShareBox = false}}},[_c('div',{staticClass:"shareTips"},[_c('van-icon',{attrs:{"name":"down"}}),_vm._v(" "),_c('p',[_vm._v("点击右上角分享")])],1)]):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tips"},[_c('span',{staticClass:"dot"},[_vm._v("•")]),_vm._v("\n      可查询博世系列 110 120 等\n    ")])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(735);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f5ddf14_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1334);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3688)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-8f5ddf14"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f5ddf14_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f5ddf14_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_fuelInjectorResult_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3689);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("be15925a", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".container[data-v-8f5ddf14]{background:#f6f4f7;min-height:100vh;width:100%;color:#000;height:auto!important}.list .card[data-v-8f5ddf14]{padding:.48rem .6rem;position:relative}.list .card .topTitle[data-v-8f5ddf14]{margin-top:.4rem;background:#fff;border-radius:.24rem;border:1px solid}.list .card .topTitle .title[data-v-8f5ddf14]{padding:.5rem;border-right:1px solid;font-weight:700;font-size:.8rem;width:6rem}.list .card .topTitle .numberECU[data-v-8f5ddf14]{width:9.7rem;box-sizing:border-box;text-align:center;padding:.5rem .3rem;font-weight:700;font-size:.8rem}.list .card .lineECU[data-v-8f5ddf14]{margin-bottom:.24rem;border-bottom:2px dashed #bababa;line-height:1.5rem}.list .card .lineECU[data-v-8f5ddf14]:last-child{border-bottom:none}.list .card .lineECU .ecu-label[data-v-8f5ddf14]{width:6rem;text-align:right}.list .card .lineECU .ecu-info[data-v-8f5ddf14]{width:8rem;text-align:center}.wrap[data-v-8f5ddf14]{position:relative;width:100%}.content[data-v-8f5ddf14]{position:relative;z-index:1;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),color-stop(80%,transparent));background-image:linear-gradient(180deg,#fff,transparent 80%);border-radius:25px;padding:.5rem .8rem;margin-top:1rem;border:1px solid}.mask[data-v-8f5ddf14]{position:absolute;top:0;left:0;right:0;bottom:0;background:hsla(0,0%,100%,.3);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(8px);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;z-index:2}.mask-text[data-v-8f5ddf14]{color:#333;font-size:18px;font-weight:700}.analysis-bottom-bg[data-v-8f5ddf14]{position:fixed;bottom:0;left:0;z-index:0;width:100%}.analysis-bottom-bg img[data-v-8f5ddf14]{width:100%}.table-top[data-v-8f5ddf14]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.table-top .row[data-v-8f5ddf14]{width:25%;text-align:center;margin-top:.5rem}.row:last-child div[data-v-8f5ddf14],.row:nth-child(4n) div[data-v-8f5ddf14]{border-right:1px solid silver}.row div[data-v-8f5ddf14]{padding:.2rem;border-bottom:1px solid silver;border-left:1px solid silver}.row div[data-v-8f5ddf14]:first-child{background:#6d94fd;color:#fff;border-left:1px solid #6d94fd;border-right:1px solid #6d94fd}.row2[data-v-8f5ddf14]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.row2 div[data-v-8f5ddf14]{padding:.2rem;width:25%;text-align:center;border-left:1px solid silver;border-top:1px solid silver}.row2:first-child div[data-v-8f5ddf14]{background:#6d94fd;color:#fff;border-left:1px solid #6d94fd;border-top:1px solid #6d94fd}.row2:last-child div[data-v-8f5ddf14]{border-bottom:1px solid silver}.row2 div[data-v-8f5ddf14]:last-child{border-right:1px solid silver}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'EUCResult',
  data: function data() {
    return {
      data: {},
      isMember: false,
      time: 0,
      timing: '',
      contentShow: false,
      vipType: '',
      list: [],
      newList: []
    };
  },
  mounted: function mounted() {
    window.vuePage = this;
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '喷油器行程',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
    this.loadData();
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '喷油器行程,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    refreshByApp: function refreshByApp() {
      this.loadData();
    },
    loadData: function loadData() {
      var _this = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return _this._Util.getUserInfo(_this);
            case 1:
              userinfo = _context.sent;
              if (localStorage.getItem('isAdminPass') == 0) {
                if (localStorage.getItem('isAccessControl') == 1) {
                  if (!_this._Util.isSVip(userinfo.userVipType)) {
                    if (localStorage.getItem('isSvip') == 1 && localStorage.getItem('isAccess') != 1) {
                      _this.vipType = 1;
                    } else {
                      if (!_this._Util.isVip(userinfo.userVipType)) {
                        if (localStorage.getItem('isVip') == 1 && localStorage.getItem('isAccess') != 1) {
                          _this.vipType = 2;
                        } else {
                          _this.isMember = true;
                        }
                      } else {
                        _this.isMember = true;
                      }
                    }
                  } else {
                    _this.isMember = true;
                  }
                } else {
                  _this.isMember = true;
                }
              } else {
                _this.isMember = true;
              }
              _this.$nextTick(function () {
                this.data = JSON.parse(this.$route.query.list);
                this.list = this.data.list;
                this.newList = JSON.parse(JSON.stringify(this.data.list));
                // for (var i = 0; i < this.list.length; i++) {
                //   this.newList[i] = []
                //   for (var j = 0; j < this.list[i][0].length; j++) {
                //     var newChild = []
                //     for (var x = 0; x < this.list[i].length; x++) {
                //       newChild.push(this.list[i][x][j])
                //     }
                //     this.newList[i].push(newChild)
                //   }
                // }
                // for (var i = 0; i < this.list.length; i++) {
                //   this.newList[i] = []
                //   for (var j = 0; j < this.list[i].length; j++) {
                //     var newChild = []
                //     for (var y = 0; y < ((this.list[i][j].length / 4).toFixed() * 1 + 1); y++) {
                //       newChild.push(this.list[i][j].slice(y * 4, y * 4 + 4))
                //       this.newList[i].push(newChild)
                //     }
                //   }
                // }
                for (var i = 0; i < this.list.length; i++) {
                  this.newList[i] = [];
                  for (var j = 0; j < (this.list[i][0].length / 4).toFixed() * 1 + 1; j++) {
                    var newChild = [];
                    for (var x = 0; x < this.list[i].length; x++) {
                      newChild.push(this.list[i][x].slice(j * 4, j * 4 + 4));
                    }
                    this.newList[i].push(newChild);
                  }
                }
                for (var a = 0; a < this.newList.length; a++) {
                  for (var b = 0; b < this.newList[a].length; b++) {
                    for (var c = 0; c < this.newList[a][b].length; c++) {
                      for (var d = 0; d < this.newList[a][b][c].length; d++) {
                        this.newList[a][b][c][d] = this.newList[a][b][c][d].replace(/ /g, '<br>');
                      }
                    }
                  }
                }
                console.log();
              });
              // this.isMember = this._Util.isVip(userinfo.userVipType)
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    toBuyVip: function toBuyVip() {
      uni.navigateTo({
        url: '/pages/mine/vip/index?type=1&vipType=' + this.vipType
      });
    },
    showInfo: function showInfo() {
      var that = this;
      that.contentShow = true;
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container"},[_c('div',{staticClass:"list"},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"topTitle"},[_c('span',{staticClass:"title"},[_vm._v("喷油器型号：")]),_vm._v(" "),_c('span',{staticClass:"numberECU"},[_vm._v(_vm._s(_vm.data.code? _vm.data.code : ''))])]),_vm._v(" "),_c('div',{staticClass:"wrap"},[_c('div',{ref:"v1",staticClass:"content"},[_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("衔铁升程：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.xiantie_shengcheng? _vm.data.xiantie_shengcheng : ''))])]),_vm._v(" "),_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("缓冲升程：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.huanchong_shengcheng? _vm.data.huanchong_shengcheng : ''))])]),_vm._v(" "),_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("针阀升程：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.zhenfa_shengcheng? _vm.data.zhenfa_shengcheng : ''))])]),_vm._v(" "),_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("空气余隙：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.kongqi_yuxi? _vm.data.kongqi_yuxi : ''))])]),_vm._v(" "),(!_vm.isMember)?_c('div',{ref:"v2",staticClass:"mask",on:{"click":_vm.toBuyVip}},[(_vm.vipType==2)?_c('div',{staticClass:"mask-text"},[_vm._v("仅VIP可查看,点击开通VIP")]):_vm._e(),_vm._v(" "),(_vm.vipType==1)?_c('div',{staticClass:"mask-text"},[_vm._v("仅SVIP可查看,点击开通SVIP")]):_vm._e()]):_vm._e()])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.contentShow==false),expression:"contentShow==false"}],staticStyle:{"position":"relative","z-index":"11","width":"100%","text-align":"center","margin-top":"1rem","background":"#0f75ff","color":"#ffffff","font-size":".76rem","line-height":"1.5rem","border-radius":"10px"},on:{"click":function($event){return _vm.showInfo()}}},[_vm._v("查看详情")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.contentShow==true),expression:"contentShow==true"}],staticClass:"wrap"},[_c('div',{ref:"v1",staticClass:"content"},[(_vm.data.fazujian_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("阀组件号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.fazujian_code? _vm.data.fazujian_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.youzuikeyin_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("油嘴刻印号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.youzuikeyin_code? _vm.data.youzuikeyin_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.youzu_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("油嘴型号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.youzu_code? _vm.data.youzu_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.changjia)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("厂家：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.changjia? _vm.data.changjia : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.name)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("名称：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.name? _vm.data.name : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.gaoyamifengquan_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("高压密封圈型号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.gaoyamifengquan_code? _vm.data.gaoyamifengquan_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.ohktaojian_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("OHK套件型号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.ohktaojian_code? _vm.data.ohktaojian_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.xiantie_zujian_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("衔铁组件型号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.xiantie_zujian_code? _vm.data.xiantie_zujian_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.type)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("类型：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.type? _vm.data.type : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.zongcheng_tihuan_chanpin)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("总成替换产品：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.zongcheng_tihuan_chanpin? _vm.data.zongcheng_tihuan_chanpin : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.diancitie_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("电磁体型号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.diancitie_code? _vm.data.diancitie_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.mifengqiu_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("密封球型号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.mifengqiu_code? _vm.data.mifengqiu_code : ''))])]):_vm._e(),_vm._v(" "),(_vm.data.qiuzuo_code)?_c('div',{staticClass:"lineECU"},[_c('span',{staticClass:"ecu-label"},[_vm._v("球座型号：")]),_vm._v(" "),_c('span',{staticClass:"ecu-info"},[_vm._v(_vm._s(_vm.data.qiuzuo_code? _vm.data.qiuzuo_code : ''))])]):_vm._e()]),_vm._v(" "),(!_vm.isMember)?_c('div',{ref:"v2",staticClass:"mask",on:{"click":_vm.toBuyVip}},[(_vm.vipType==2)?_c('div',{staticClass:"mask-text"},[_vm._v("仅VIP可查看,点击开通VIP")]):_vm._e(),_vm._v(" "),(_vm.vipType==1)?_c('div',{staticClass:"mask-text"},[_vm._v("仅SVIP可查看,点击开通SVIP")]):_vm._e()]):_vm._e()]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.contentShow==true),expression:"contentShow==true"}],staticStyle:{"position":"relative","z-index":"11","padding-bottom":"6rem"}},_vm._l((_vm.newList),function(d,index){return _c('div',{key:index,staticStyle:{"margin-top":"1rem","position":"relative"}},[_vm._l((d),function(item,index2){return _c('div',{key:index2,staticClass:"table-top2"},_vm._l((item),function(item2,index3){return _c('div',{key:index3,staticClass:"row2"},_vm._l((item2),function(value,index4){return _c('div',{key:index4,domProps:{"innerHTML":_vm._s(value?value:'&nbsp')}})}),0)}),0)}),_vm._v(" "),(!_vm.isMember)?_c('div',{ref:"v2",refInFor:true,staticClass:"mask",on:{"click":_vm.toBuyVip}},[(_vm.vipType==2)?_c('div',{staticClass:"mask-text"},[_vm._v("仅VIP可查看,点击开通VIP")]):_vm._e(),_vm._v(" "),(_vm.vipType==1)?_c('div',{staticClass:"mask-text"},[_vm._v("仅SVIP可查看,点击开通SVIP")]):_vm._e()]):_vm._e()],2)}),0)])]),_vm._v(" "),_vm._m(0)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"analysis-bottom-bg"},[_c('img',{attrs:{"src":__webpack_require__(1479)}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(736);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_775a5fe6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1335);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3690)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_775a5fe6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_775a5fe6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_richText_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3691);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("08e5fd54", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".rich-content video,img{max-width:100%}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
var _default = exports.default = {
  name: 'RichText',
  data: function data() {
    return {
      content: '',
      type: 2
    };
  },
  mounted: function mounted() {
    if (this.$route.query.type) {
      this.type = this.$route.query.type;
      if (this.type == 1) {
        document.title = '用户协议';
      } else if (this.type == 2) {
        document.title = '隐私政策';
      }
    } else {
      document.title = '隐私政策';
    }
    this.getRichtext();
  },
  methods: {
    getRichtext: function getRichtext() {
      var that = this;
      this.$http.get(this._Api.GET_CONTENT_DETAIL, {
        params: {
          'type': this.type
        }
      }).then(function (res) {
        if (res.data.data) {
          that.content = res.data.data;
        }
      }).catch(function (err) {
        console.log(err);
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"rich-content",domProps:{"innerHTML":_vm._s(_vm.content)}})])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(737);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6106cdfe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1336);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3692)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-6106cdfe"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6106cdfe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_6106cdfe_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_productMatching_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3693);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("0f6469d1", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".search-box-fixed[data-v-6106cdfe]{position:fixed;top:0;left:0;right:0;background:#f5f5f5;z-index:10;padding:.4rem;box-shadow:0 2px 8px rgba(0,0,0,.1)}.search-box[data-v-6106cdfe]{position:relative}.search-box input[data-v-6106cdfe]{width:80%;height:2rem;background:#e6e9f2;border-radius:6px;padding-left:1.6rem;font-size:14px;vertical-align:middle}.search-btn[data-v-6106cdfe]{width:3rem;font-size:.64rem;text-align:center;line-height:1.8rem;background:#0f75ff;color:#fff;border-radius:6px;vertical-align:middle}.search-box .search-icon[data-v-6106cdfe]{position:absolute;width:1rem;height:1rem;left:.4rem;top:.5rem}.list[data-v-6106cdfe]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem;padding-top:6rem;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.product-item[data-v-6106cdfe]{width:25%;text-align:center;margin-bottom:.5rem}.product-icon[data-v-6106cdfe]{width:1.8rem;height:1.8rem;margin:0 auto;margin-bottom:.2rem}.product-icon img[data-v-6106cdfe]{width:100%;height:100%}.top-tips[data-v-6106cdfe]{padding-top:.5rem}.top-tips div[data-v-6106cdfe]{padding:0 .4rem;line-height:1rem;font-size:.52rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'ProductMatching',
  data: function data() {
    return {
      searchKeyword: '',
      currentPage: 1,
      data: {},
      list: [],
      isSearch: false
    };
  },
  mounted: function mounted() {
    localStorage.setItem('isAdminPass', this._Util.getParaValueByName('isAdminPass'));
    localStorage.setItem('isAccessControl', this._Util.getParaValueByName('isAccessControl'));
    localStorage.setItem('isVip', this._Util.getParaValueByName('isVip'));
    localStorage.setItem('isSvip', this._Util.getParaValueByName('isSvip'));
    localStorage.setItem('isAccess', this._Util.getParaValueByName('isAccess'));
    var that = this;
    that.getProductMatching(1);
  },
  methods: {
    handleScroll: function handleScroll() {
      var container = this.$refs.scrollContainer; // 获取容器元素
      // 检查是否滚动到底部
      if (container.scrollTop + container.clientHeight >= container.scrollHeight - 100) {
        if (this.data.list.length == 48) {
          this.currentPage++;
          this.getProductMatching();
        }
      }
    },
    getProductMatching: function getProductMatching(page) {
      var _this = this;
      var that = this;
      if (page == 1) {
        this.currentPage = 1;
        this.searchList = [];
      }
      this._Util.post(this._Api.GET_PRODUCTMATCHINGLIST, {
        'searchKey': this.searchKeyword,
        'pageNum': this.currentPage,
        'pageSize': 48
      }, function (data) {
        _this.data = data;
        _this.isSearch = true;
        if (page == 1) {
          that.list = data.list;
        } else {
          that.list = that.list.concat(data.list);
        }
      }, function () {}, this);
    },
    goInfo: function goInfo(id) {
      this.$router.push({
        name: 'brandInfo',
        query: {
          id: id,
          searchKey: this.isSearch == true ? this.searchKeyword : ''
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"search-box-fixed"},[_c('div',{staticClass:"search-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchKeyword),expression:"searchKeyword"}],attrs:{"placeholder":"搜索关键词"},domProps:{"value":(_vm.searchKeyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.searchKeyword=$event.target.value}}}),_vm._v(" "),_c('img',{staticClass:"search-icon",attrs:{"src":__webpack_require__(179)}}),_vm._v(" "),_c('button',{staticClass:"search-btn",on:{"click":function($event){return _vm.getProductMatching(1)}}},[_vm._v("搜索")])]),_vm._v(" "),_vm._m(0)]),_vm._v(" "),_c('div',{staticClass:"list",on:{"scroll":_vm.handleScroll}},_vm._l((_vm.list),function(d,index){return _c('div',{key:index,staticClass:"product-item",on:{"click":function($event){return _vm.goInfo(d.id)}}},[_c('div',{staticClass:"product-icon"},[(d.img)?_c('img',{staticClass:"search-icon",attrs:{"src":d.img}}):_c('img',{staticClass:"search-icon",attrs:{"src":__webpack_require__(143)}})]),_vm._v(" "),_c('div',{staticClass:"product-name"},[_vm._v(_vm._s(d.name))])])}),0),_vm._v(" "),(_vm.list.length==0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10rem"}},[_vm._m(1),_vm._v(" "),_c('div',{staticStyle:{"margin-top":".5rem"}},[_vm._v("暂无数据")])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top-tips"},[_c('div',[_vm._v("精准匹配查询车辆零部件及其配件信息")]),_vm._v(" "),_c('div',[_vm._v("如：部件号，测量参数及产品介绍")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"6rem","margin":"0 auto"}},[_c('img',{staticStyle:{"width":"100%","height":"100%"},attrs:{"src":__webpack_require__(820)}})])}]
module.exports = __webpack_require__.p + "static/img/zw.0dbc24f.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(738);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56000569_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1337);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3694)
  __webpack_require__(3696)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-56000569"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56000569_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_56000569_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_brandInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3695);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("64844460", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{background:#f8f8f8}.van-collapse-item__content{padding:0 16px}.active .van-cell{color:#0f75ff}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3697);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("066ebaac", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".search-box-fixed[data-v-56000569]{position:fixed;top:0;left:0;right:0;background:#f5f5f5;z-index:10;padding:.4rem;box-shadow:0 2px 8px rgba(0,0,0,.1)}.search-box[data-v-56000569]{position:relative}.search-box input[data-v-56000569]{width:80%;height:2rem;background:#e6e9f2;border-radius:6px;padding-left:1.6rem;font-size:14px;vertical-align:middle}.search-btn[data-v-56000569]{width:3rem;font-size:.64rem;text-align:center;line-height:1.8rem;background:#0f75ff;color:#fff;border-radius:6px;vertical-align:middle}.search-box .search-icon[data-v-56000569]{position:absolute;width:1rem;height:1rem;left:.4rem;top:.5rem}.brand-top[data-v-56000569]{padding:.6rem .5rem;padding-top:3.6rem;background:#fff}.brand-left[data-v-56000569]{float:left}.brand-left .brand-icon[data-v-56000569]{width:1.8rem;height:1.8rem;margin-right:.3rem}.brand-left .brand-name[data-v-56000569]{line-height:1.8rem}.right-arrow[data-v-56000569]{width:.3rem;height:.48rem;margin-top:.65rem;margin-left:.2rem}.brand-right[data-v-56000569]{float:right}.brand-right .model-name[data-v-56000569]{line-height:1.8rem}.system-type[data-v-56000569]{padding:.5rem .7rem}.bottom-tips[data-v-56000569]{margin-top:2rem}.bottom-tips div[data-v-56000569]{line-height:1rem;text-align:center;font-size:.52rem}.model-label[data-v-56000569]{line-height:2.2rem;color:#333}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(1481);
var _collapseItem = _interopRequireDefault(__webpack_require__(1482));
__webpack_require__(1483);
var _collapse = _interopRequireDefault(__webpack_require__(1484));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _collapse.default.name, _collapse.default), _collapseItem.default.name, _collapseItem.default),
  data: function data() {
    return {
      activeName: '',
      data: {},
      searchKeyword: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    if (this.$route.query.searchKey) {
      this.searchKeyword = this.$route.query.searchKey;
    }
    that.getProductMatchingInfo();
  },
  methods: {
    goList: function goList() {
      this.$router.push({
        name: 'productMatching',
        query: {}
      });
    },
    goInfo: function goInfo(id) {
      var _this = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              if (!_this._Util.isFromApp()) {
                _context.next = 2;
                break;
              }
              _context.next = 1;
              return _this._Util.getUserInfo(_this);
            case 1:
              userinfo = _context.sent;
            case 2:
              if (!(localStorage.getItem('isAdminPass') == 0)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isAccessControl') == 1)) {
                _context.next = 4;
                break;
              }
              if (_this._Util.isSVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isSvip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this.clickFlag = true;
                } else {
                  _this.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 3:
              if (_this._Util.isVip(userinfo.userVipType)) {
                _context.next = 4;
                break;
              }
              if (!(localStorage.getItem('isVip') == 1 && localStorage.getItem('isAccess') != 1)) {
                _context.next = 4;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this.clickFlag = true;
                } else {
                  _this.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 4:
              _this.$router.push({
                name: 'modelInfo',
                query: {
                  id: id,
                  modelId: _this.$route.query.id
                }
              });
            case 5:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    getProductMatchingInfo: function getProductMatchingInfo() {
      var _this2 = this;
      this._Util.post(this._Api.GET_PRODUCTMATCHING_SYSTEMLIST, {
        'id': this.$route.query.id,
        'searchKey': this.searchKeyword
      }, function (data) {
        _this2.data = data;
      }, function () {}, this);
    }
  }
};__webpack_require__(26);
__webpack_require__(55);
__webpack_require__(60);
__webpack_require__(234);
__webpack_require__(2114);// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(2115);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("4541288b", content, true, {});exports = module.exports = __webpack_require__(2)(true);
// imports


// module
exports.push([module.i, ".van-collapse-item{position:relative}.van-collapse-item--border::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:0;right:16px;left:16px;border-top:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-collapse-item__title .van-cell__right-icon::before{-webkit-transform:rotate(90deg) translateZ(0);transform:rotate(90deg) translateZ(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.van-collapse-item__title::after{right:16px;display:none}.van-collapse-item__title--expanded .van-cell__right-icon::before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.van-collapse-item__title--expanded::after{display:block}.van-collapse-item__title--borderless::after{display:none}.van-collapse-item__title--disabled{cursor:not-allowed}.van-collapse-item__title--disabled,.van-collapse-item__title--disabled .van-cell__right-icon{color:#c8c9cc}.van-collapse-item__title--disabled:active{background-color:#fff}.van-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.van-collapse-item__content{padding:12px 16px;color:#969799;font-size:14px;line-height:1.5;background-color:#fff}", "", {"version":3,"sources":["C:/work/code_kaxiubaodian/wx-app/node_modules/vant/lib/collapse-item/index.css"],"names":[],"mappings":"AAAA,mBAAmB,iBAAiB,CAAC,kCAAkC,kBAAkB,sBAAsB,YAAY,oBAAoB,MAAM,WAAW,UAAU,6BAA6B,6BAA6B,oBAAoB,CAAC,wDAAwD,8CAA8C,sCAAsC,yCAAyC,iCAAiC,yBAAyB,8CAA8C,CAAC,iCAAiC,WAAW,YAAY,CAAC,kEAAkE,iCAAiC,wBAAwB,CAAC,2CAA2C,aAAa,CAAC,6CAA6C,YAAY,CAAC,oCAAoC,kBAAkB,CAAC,8FAA8F,aAAa,CAAC,2CAA2C,qBAAqB,CAAC,4BAA4B,gBAAgB,0CAA0C,kCAAkC,kBAAkB,CAAC,4BAA4B,kBAAkB,cAAc,eAAe,gBAAgB,qBAAqB,CAAC","file":"index.css","sourcesContent":[".van-collapse-item{position:relative}.van-collapse-item--border::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:0;right:16px;left:16px;border-top:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-collapse-item__title .van-cell__right-icon::before{-webkit-transform:rotate(90deg) translateZ(0);transform:rotate(90deg) translateZ(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.van-collapse-item__title::after{right:16px;display:none}.van-collapse-item__title--expanded .van-cell__right-icon::before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.van-collapse-item__title--expanded::after{display:block}.van-collapse-item__title--borderless::after{display:none}.van-collapse-item__title--disabled{cursor:not-allowed}.van-collapse-item__title--disabled,.van-collapse-item__title--disabled .van-cell__right-icon{color:#c8c9cc}.van-collapse-item__title--disabled:active{background-color:#fff}.van-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.van-collapse-item__content{padding:12px 16px;color:#969799;font-size:14px;line-height:1.5;background-color:#fff}"],"sourceRoot":""}]);

// exports


var _interopRequireDefault = __webpack_require__(4);

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(44));

var _utils = __webpack_require__(18);

var _raf = __webpack_require__(165);

var _relation = __webpack_require__(73);

var _cell = _interopRequireDefault(__webpack_require__(83));

var _shared = __webpack_require__(773);

// Utils
// Mixins
// Components
var _createNamespace = (0, _utils.createNamespace)('collapse-item'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var CELL_SLOTS = ['title', 'icon', 'right-icon'];

var _default = createComponent({
  mixins: [(0, _relation.ChildrenMixin)('vanCollapse')],
  props: (0, _extends2.default)({}, _shared.cellProps, {
    name: [Number, String],
    disabled: Boolean,
    lazyRender: {
      type: Boolean,
      default: true
    },
    isLink: {
      type: Boolean,
      default: true
    }
  }),
  data: function data() {
    return {
      show: null,
      inited: null
    };
  },
  computed: {
    currentName: function currentName() {
      var _this$name;

      return (_this$name = this.name) != null ? _this$name : this.index;
    },
    expanded: function expanded() {
      var _this = this;

      if (!this.parent) {
        return null;
      }

      var _this$parent = this.parent,
          value = _this$parent.value,
          accordion = _this$parent.accordion;

      if (false) {}

      return accordion ? value === this.currentName : value.some(function (name) {
        return name === _this.currentName;
      });
    }
  },
  created: function created() {
    this.show = this.expanded;
    this.inited = this.expanded;
  },
  watch: {
    expanded: function expanded(_expanded, prev) {
      var _this2 = this;

      if (prev === null) {
        return;
      }

      if (_expanded) {
        this.show = true;
        this.inited = true;
      } // Use raf: flick when opened in safari
      // Use nextTick: closing animation failed when set `user-select: none`


      var nextTick = _expanded ? this.$nextTick : _raf.raf;
      nextTick(function () {
        var _this2$$refs = _this2.$refs,
            content = _this2$$refs.content,
            wrapper = _this2$$refs.wrapper;

        if (!content || !wrapper) {
          return;
        }

        var offsetHeight = content.offsetHeight;

        if (offsetHeight) {
          var contentHeight = offsetHeight + "px";
          wrapper.style.height = _expanded ? 0 : contentHeight; // use double raf to ensure animation can start

          (0, _raf.doubleRaf)(function () {
            wrapper.style.height = _expanded ? contentHeight : 0;
          });
        } else {
          _this2.onTransitionEnd();
        }
      });
    }
  },
  methods: {
    onClick: function onClick() {
      if (!this.disabled) {
        this.toggle();
      }
    },
    // @exposed-api
    toggle: function toggle(expanded) {
      if (expanded === void 0) {
        expanded = !this.expanded;
      }

      var parent = this.parent,
          currentName = this.currentName;
      var close = parent.accordion && currentName === parent.value;
      var name = close ? '' : currentName;
      this.parent.switch(name, expanded);
    },
    onTransitionEnd: function onTransitionEnd() {
      if (!this.expanded) {
        this.show = false;
      } else {
        this.$refs.wrapper.style.height = '';
      }
    },
    genTitle: function genTitle() {
      var _this3 = this;

      var h = this.$createElement;
      var border = this.border,
          disabled = this.disabled,
          expanded = this.expanded;
      var titleSlots = CELL_SLOTS.reduce(function (slots, name) {
        if (_this3.slots(name)) {
          slots[name] = function () {
            return _this3.slots(name);
          };
        }

        return slots;
      }, {});

      if (this.slots('value')) {
        titleSlots.default = function () {
          return _this3.slots('value');
        };
      }

      return h(_cell.default, {
        "attrs": {
          "role": "button",
          "tabindex": disabled ? -1 : 0,
          "aria-expanded": String(expanded)
        },
        "class": bem('title', {
          disabled: disabled,
          expanded: expanded,
          borderless: !border
        }),
        "on": {
          "click": this.onClick
        },
        "scopedSlots": titleSlots,
        "props": (0, _extends2.default)({}, this.$props)
      });
    },
    genContent: function genContent() {
      var h = this.$createElement;

      if (this.inited || !this.lazyRender) {
        return h("div", {
          "directives": [{
            name: "show",
            value: this.show
          }],
          "ref": "wrapper",
          "class": bem('wrapper'),
          "on": {
            "transitionend": this.onTransitionEnd
          }
        }, [h("div", {
          "ref": "content",
          "class": bem('content')
        }, [this.slots()])]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": [bem({
        border: this.index && this.border
      })]
    }, [this.genTitle(), this.genContent()]);
  }
});

exports.default = _default;__webpack_require__(26);


exports.__esModule = true;
exports.default = void 0;

var _utils = __webpack_require__(18);

var _relation = __webpack_require__(73);

var _constant = __webpack_require__(166);

var _createNamespace = (0, _utils.createNamespace)('collapse'),
    createComponent = _createNamespace[0],
    bem = _createNamespace[1];

var _default = createComponent({
  mixins: [(0, _relation.ParentMixin)('vanCollapse')],
  props: {
    accordion: Boolean,
    value: [String, Number, Array],
    border: {
      type: Boolean,
      default: true
    }
  },
  methods: {
    switch: function _switch(name, expanded) {
      if (!this.accordion) {
        name = expanded ? this.value.concat(name) : this.value.filter(function (activeName) {
          return activeName !== name;
        });
      }

      this.$emit('change', name);
      this.$emit('input', name);
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    return h("div", {
      "class": [bem(), (_ref = {}, _ref[_constant.BORDER_TOP_BOTTOM] = this.border, _ref)]
    }, [this.slots()]);
  }
});

exports.default = _default;/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"search-box-fixed"},[_c('div',{staticClass:"search-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchKeyword),expression:"searchKeyword"}],attrs:{"placeholder":"搜索关键词"},domProps:{"value":(_vm.searchKeyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.searchKeyword=$event.target.value}}}),_vm._v(" "),_c('img',{staticClass:"search-icon",attrs:{"src":__webpack_require__(179)}}),_vm._v(" "),_c('button',{staticClass:"search-btn",on:{"click":function($event){return _vm.getProductMatchingInfo()}}},[_vm._v("搜索")])])]),_vm._v(" "),_c('div',{staticClass:"brand-top clearfix"},[(_vm.data.name)?_c('div',{staticClass:"brand-left",on:{"click":_vm.goList}},[(_vm.data.img)?_c('img',{staticClass:"brand-icon",attrs:{"src":_vm.data.img}}):_c('img',{staticClass:"brand-icon",attrs:{"src":__webpack_require__(143)}}),_vm._v(" "),_c('span',{staticClass:"brand-name"},[_vm._v(_vm._s(_vm.data.name))]),_vm._v(" "),_c('img',{staticClass:"right-arrow",attrs:{"src":__webpack_require__(86)}})]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"system-type"},[_vm._v("系统类型")]),_vm._v(" "),_c('div',[_c('van-collapse',{attrs:{"accordion":""},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},_vm._l((_vm.data.list),function(d,index){return _c('van-collapse-item',{key:index,class:{'active':d.id==_vm.activeName},attrs:{"title":d.name,"name":d.id}},_vm._l((d.children),function(item,index2){return _c('div',{key:index2,staticClass:"model-label",on:{"click":function($event){return _vm.goInfo(item.id)}}},[_vm._v(_vm._s(item.name))])}),0)}),1)],1),_vm._v(" "),_vm._m(0)])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bottom-tips"},[_c('div',[_vm._v("精准匹配查询车辆零部件及其配件信息")]),_vm._v(" "),_c('div',[_vm._v("如：部件号，测量参数及产品介绍")])])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(739);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_91e1080a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1338);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3698)
  __webpack_require__(3700)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-91e1080a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_91e1080a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_91e1080a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modelInfo_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3699);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("18cb9424", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "body{background:#f8f8f8}", ""]);

// exports
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3701);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6efbb078", content, true, {});var escape = __webpack_require__(5);
exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".brand-top[data-v-91e1080a]{padding:.6rem .5rem;background:#fff}.brand-left[data-v-91e1080a]{float:left}.brand-left .brand-icon[data-v-91e1080a]{width:1.8rem;height:1.8rem;margin-right:.3rem}.brand-left .brand-name[data-v-91e1080a]{line-height:1.8rem}.right-arrow[data-v-91e1080a]{width:.3rem;height:.48rem;margin-top:.65rem;margin-left:.2rem}.brand-right[data-v-91e1080a]{float:right}.brand-right .model-name[data-v-91e1080a]{line-height:1.8rem}.model-type[data-v-91e1080a]{padding:.5rem;overflow-x:scroll;white-space:nowrap;scrollbar-width:none;-ms-overflow-style:none}.model-select[data-v-91e1080a]{display:inline-block;width:4.8rem;background:#fff;color:#888;border-radius:20px;line-height:1.4rem;text-align:center;margin-right:.5rem}.active[data-v-91e1080a]{background:#0f75ff;color:#fff}.model-info .model-num[data-v-91e1080a]{background:#fff;padding:.5rem;text-align:center;border-bottom:1px solid #eee}.model-info .model-table[data-v-91e1080a]{position:relative;background-color:#fff;padding:.5rem}.model-info .model-table[data-v-91e1080a]:before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(" + escape(__webpack_require__(1821)) + ");background-size:6.3rem;opacity:.5}.model-info .table-title[data-v-91e1080a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:1.3rem;color:#000}.table-title .table-label[data-v-91e1080a]{font-weight:700;width:66%}.table-title .table-value[data-v-91e1080a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.cell-line[data-v-91e1080a]{color:#333;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;line-height:1.3rem}.cell-line .cell-label[data-v-91e1080a]{width:33.3%;text-align:right;padding-right:.5rem}.cell-line .cell-value[data-v-91e1080a]{width:33.3%}.cell-line .cell-value2[data-v-91e1080a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.cell-value3[data-v-91e1080a]{text-decoration:underline;color:#2e87fc}.op-bottom[data-v-91e1080a]{position:fixed;width:100%;left:0;bottom:0;border-top:1px solid #eee;background:#fff}.op-btn[data-v-91e1080a]{float:left;width:50%;line-height:2.4rem;text-align:center;box-sizing:border-box}.op-btn .op-icon[data-v-91e1080a]{width:1.4rem;height:1.4rem;margin-top:.4rem}.op-btn .op-icon1[data-v-91e1080a]{width:1.3rem;height:1.3rem;margin-top:.45rem}", ""]);

// exports


var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(9));
__webpack_require__(1481);
var _collapseItem = _interopRequireDefault(__webpack_require__(1482));
__webpack_require__(1483);
var _collapse = _interopRequireDefault(__webpack_require__(1484));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _collapse.default.name, _collapse.default), _collapseItem.default.name, _collapseItem.default),
  data: function data() {
    return {
      activeNames: ['1'],
      data: {},
      nowModel: {},
      active: 0
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getProductMatchingModelInfo();
  },
  methods: {
    collectModel: function collectModel(type) {
      var _this = this;
      this._Util.post(this._Api.GET_PRODUCTMATCHING_COLLECT, {
        id: this.$route.query.id,
        type: type
      }, function (data) {
        if (type == 1) {
          _this.data.isCollect = 1;
        } else {
          _this.data.isCollect = 0;
        }
      }, function () {}, this);
    },
    changeModel: function changeModel(index) {
      this.active = index;
      this.nowModel = this.data.list[index];
      this.nowModel.replaceNum = this.nowModel.replaceNum.split(",");
      for (var i = 0; i < this.nowModel.children.length; i++) {
        this.nowModel.children[i].replaceNum = this.nowModel.children[i].replaceNum.split(",");
      }
    },
    goList: function goList() {
      this.$router.push({
        name: 'productMatching',
        query: {}
      });
    },
    goInfo: function goInfo() {
      this.$router.push({
        name: 'brandInfo',
        query: {
          id: this.data.brandId
        }
      });
    },
    goInfo2: function goInfo2(type) {
      if (type == 1) {
        this.search(this.nowModel.num);
      } else {
        this.search2(this.nowModel.num);
      }
    },
    goFeedback: function goFeedback() {
      uni.navigateTo({
        url: '/rightsCenter-subpackage/pages/feedback/feedback?type=3&modelId=' + this.$route.query.id
      });
    },
    search: function search(key) {
      var _this2 = this;
      this._Util.post(this._Api.GET_PENYOUQIXINGCHENG, {
        code: key
      }, function (res) {
        _this2.list = res;
        if (_this2.list.code) {
          _this2.$router.push({
            name: 'fuelInjectorResult',
            query: {
              list: JSON.stringify(_this2.list),
              key: key
            }
          });
        } else {
          (0, _mintUi.Toast)({
            message: '未查询到结果',
            duration: 1500
          });
        }
      }, function () {}, this, true);
    },
    search2: function search2(key) {
      var _this3 = this;
      this._Util.post(this._Api.SEARCH_ECUENCRYPTIONLIST, {
        pageNum: 1,
        pageSize: 100,
        searchKey: key
      }, function (res) {
        _this3.list = res.list;
        if (_this3.list && _this3.list.length > 0) {
          _this3.$router.push({
            name: 'EUCResult',
            query: {
              list: JSON.stringify(_this3.list),
              key: key
            }
          });
        } else {
          (0, _mintUi.Toast)({
            message: '未查询到结果',
            duration: 1500
          });
        }
      }, function () {}, this, true);
    },
    getProductMatchingModelInfo: function getProductMatchingModelInfo() {
      var _this4 = this;
      var that = this;
      this._Util.post(this._Api.GET_PRODUCTMATCHING_MODELLIST, {
        'id': this.$route.query.id
      }, function (data) {
        _this4.data = data;
        if (_this4.data.list && _this4.data.list.length > 0) {
          _this4.nowModel = _this4.data.list[0];
          _this4.nowModel.replaceNum = _this4.nowModel.replaceNum.split(",");
          for (var i = 0; i < _this4.nowModel.children.length; i++) {
            _this4.nowModel.children[i].replaceNum = _this4.nowModel.children[i].replaceNum.split(",");
          }
        }
      }, function () {}, this);
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"brand-top clearfix"},[(_vm.data.name)?_c('div',{staticClass:"brand-left",on:{"click":_vm.goList}},[(_vm.data.img)?_c('img',{staticClass:"brand-icon",attrs:{"src":_vm.data.img}}):_c('img',{staticClass:"brand-icon",attrs:{"src":__webpack_require__(143)}}),_vm._v(" "),_c('span',{staticClass:"brand-name"},[_vm._v(_vm._s(_vm.data.name))]),_vm._v(" "),_c('img',{staticClass:"right-arrow",attrs:{"src":__webpack_require__(86)}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"brand-right",on:{"click":function($event){return _vm.goInfo()}}},[_c('span',{staticClass:"model-name"},[_vm._v(_vm._s(_vm.data.systemName)+"_"+_vm._s(_vm.data.modelName))]),_vm._v(" "),_c('img',{staticClass:"right-arrow",attrs:{"src":__webpack_require__(86)}})])]),_vm._v(" "),_c('div',{staticClass:"model-type"},_vm._l((_vm.data.list),function(d,index){return _c('div',{key:index,staticClass:"model-select",class:{'active':_vm.active==index},on:{"click":function($event){return _vm.changeModel(index)}}},[_vm._v(_vm._s(d.name))])}),0),_vm._v(" "),(_vm.data.list&&_vm.data.list.length>0)?_c('div',{staticClass:"model-info"},[_c('div',{staticClass:"model-num"},[_vm._v("\n      "+_vm._s(_vm.nowModel.num)+"\n    ")]),_vm._v(" "),_c('div',{staticClass:"model-table"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"cell-line"},[_c('div',{staticClass:"cell-label"},[_vm._v(_vm._s(_vm.nowModel.name)+"：")]),_vm._v(" "),_c('div',{staticClass:"cell-value"},[_vm._v(_vm._s(_vm.nowModel.num))]),_vm._v(" "),_c('div',{staticClass:"cell-value2"},_vm._l((_vm.nowModel.replaceNum),function(item,index){return _c('div',{key:index},[_vm._v(_vm._s(item))])}),0)]),_vm._v(" "),_c('div',{staticClass:"cell-line"},[_c('div',{staticClass:"cell-label"},[_vm._v("品牌：")]),_vm._v(" "),_c('div',{staticClass:"cell-value"},[_vm._v(_vm._s(_vm.nowModel.brand))]),_vm._v(" "),_c('div',{staticClass:"cell-value2"})]),_vm._v(" "),_c('div',{staticClass:"cell-line"},[_c('div',{staticClass:"cell-label"},[_vm._v("类型：")]),_vm._v(" "),_c('div',{staticClass:"cell-value"},[_vm._v(_vm._s(_vm.nowModel.type))]),_vm._v(" "),_c('div',{staticClass:"cell-value2"})]),_vm._v(" "),(_vm.nowModel.linkType)?_c('div',{staticClass:"cell-line"},[_c('div',{staticClass:"cell-label"},[_vm._v(_vm._s(_vm.nowModel.linkType==1?'其他':'加密')+"：")]),_vm._v(" "),_c('div',{staticClass:"cell-value cell-value3",on:{"click":function($event){return _vm.goInfo2(_vm.nowModel.linkType)}}},[_vm._v("点击查询")]),_vm._v(" "),_c('div',{staticClass:"cell-value2"})]):_vm._e(),_vm._v(" "),_vm._m(1),_vm._v(" "),_vm._l((_vm.nowModel.children),function(d,index){return _c('div',{key:index,staticClass:"cell-line"},[_c('div',{staticClass:"cell-label"},[_vm._v(_vm._s(d.name)+"：")]),_vm._v(" "),_c('div',{staticClass:"cell-value"},[_vm._v(_vm._s(d.num))]),_vm._v(" "),_c('div',{staticClass:"cell-value2"},_vm._l((d.replaceNum),function(item,index){return _c('div',{key:index},[_vm._v(_vm._s(item))])}),0)])})],2)]):_vm._e(),_vm._v(" "),_c('div',{staticStyle:{"width":"100%","height":"2.8rem"}}),_vm._v(" "),_c('div',{staticClass:"op-bottom clearfix"},[(_vm.data.isCollect==1)?_c('div',{staticClass:"op-btn",on:{"click":function($event){return _vm.collectModel(2)}}},[_c('img',{staticClass:"op-icon op-icon1",attrs:{"src":__webpack_require__(3702)}}),_vm._v(" "),_c('span',{staticClass:"op-text"},[_vm._v("取消收藏")])]):_c('div',{staticClass:"op-btn",on:{"click":function($event){return _vm.collectModel(1)}}},[_c('img',{staticClass:"op-icon op-icon1",attrs:{"src":__webpack_require__(3703)}}),_vm._v(" "),_c('span',{staticClass:"op-text"},[_vm._v("收藏")])]),_vm._v(" "),_c('div',{staticClass:"op-btn",on:{"click":_vm.goFeedback}},[_c('img',{staticClass:"op-icon",attrs:{"src":__webpack_require__(96)}}),_vm._v(" "),_c('span',{staticClass:"op-text"},[_vm._v("纠错或提问")])])])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"table-title"},[_c('div',{staticClass:"table-label"},[_vm._v("主部件")]),_vm._v(" "),_c('div',{staticClass:"table-value"},[_vm._v("总成替换件")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"table-title"},[_c('div',{staticClass:"table-label"},[_vm._v("子部件")]),_vm._v(" "),_c('div',{staticClass:"table-value"},[_vm._v("子部件替换件")])])}]
module.exports = __webpack_require__.p + "static/img/shoucang.10b7e01.png";module.exports = __webpack_require__.p + "static/img/shoucangindex.ded9b28.png";__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(740);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1ec3762a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1339);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3704)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-1ec3762a"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1ec3762a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_1ec3762a_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondaryData_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3705);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("34704fd8", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".search-box-fixed[data-v-1ec3762a]{position:fixed;top:0;left:0;right:0;background:#f5f5f5;z-index:10;padding:.4rem;box-shadow:0 2px 8px rgba(0,0,0,.1)}.search-box[data-v-1ec3762a]{position:relative}.search-box input[data-v-1ec3762a]{width:80%;height:2rem;background:#e6e9f2;border-radius:6px;padding-left:1.6rem;font-size:14px;vertical-align:middle}.search-btn[data-v-1ec3762a]{width:3rem;font-size:.64rem;text-align:center;line-height:1.8rem;background:#0f75ff;color:#fff;border-radius:6px;vertical-align:middle}.search-box .search-icon[data-v-1ec3762a]{position:absolute;width:1rem;height:1rem;left:.4rem;top:.5rem}.list[data-v-1ec3762a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem;padding-top:4rem;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.product-item[data-v-1ec3762a]{width:25%;text-align:center;margin-bottom:.5rem}.product-icon[data-v-1ec3762a]{width:1.8rem;height:1.8rem;margin:0 auto;margin-bottom:.2rem}.product-icon img[data-v-1ec3762a]{width:100%;height:100%}.top-tips[data-v-1ec3762a]{padding-top:.5rem}.top-tips div[data-v-1ec3762a]{padding:0 .4rem;line-height:1rem;font-size:.52rem}", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'ProductMatching',
  data: function data() {
    return {
      searchKeyword: '',
      currentPage: 1,
      data: {},
      list: [],
      value: ''
    };
  },
  mounted: function mounted() {
    // localStorage.setItem('isAdminPass', this._Util.getParaValueByName('isAdminPass'))
    // localStorage.setItem('isAccessControl', this._Util.getParaValueByName('isAccessControl'))
    // localStorage.setItem('isVip', this._Util.getParaValueByName('isVip'))
    // localStorage.setItem('isSvip', this._Util.getParaValueByName('isSvip'))
    // localStorage.setItem('isAccess', this._Util.getParaValueByName('isAccess'))
    var that = this;
    that.getProductMatching(1);
  },
  methods: {
    handleScroll: function handleScroll() {
      var container = this.$refs.scrollContainer; // 获取容器元素
      // 检查是否滚动到底部
      if (container.scrollTop + container.clientHeight >= container.scrollHeight - 100) {
        if (this.data.length == 48) {
          this.currentPage++;
          this.getProductMatching();
        }
      }
    },
    onSearch: function onSearch() {
      if (this.searchKeyword) {
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 5,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.searchKeyword,
          searchKey: this.searchKeyNum
        }, this);
        this.$router.push({
          name: 'circuit/search',
          query: {
            search: this.searchKeyword,
            navigationId: this.$route.query.navigationId,
            isAdminPass: this.$route.query.isAdminPass,
            isAccessControl: this.$route.query.isAccessControl,
            isVip: this.$route.query.isVip,
            isSvip: this.$route.query.isSvip,
            isAccess: this.$route.query.isAccess,
            searchKeyNum: this.searchKeyNum,
            level: 1
          }
        });
      } else {
        Dialog({
          message: '请输入搜索关键词'
        });
      }
    },
    getProductMatching: function getProductMatching(page) {
      var _this = this;
      var that = this;
      if (page == 1) {
        this.currentPage = 1;
        this.searchList = [];
      }
      this._Util.post(this._Api.GET_INFOMATIONLIST, {
        'searchKey': this.searchKeyword,
        'pageNum': this.currentPage,
        'navigationId': this.$route.query.navigationId,
        'pageSize': 48
      }, function (data) {
        _this.data = data;
        if (page == 1) {
          that.list = data;
        } else {
          that.list = that.list.concat(data);
        }
      }, function () {}, this);
    },
    goInfo: function goInfo(id, d) {
      this.$router.push({
        name: 'secondList',
        query: {
          id: id,
          isAdminPass: this.$route.query.isAdminPass,
          isAccessControl: this.$route.query.isAccessControl,
          isVip: this.$route.query.isVip,
          isSvip: this.$route.query.isSvip,
          isAccess: this.$route.query.isAccess,
          navigationId: this.$route.query.navigationId,
          content: d.text
        }
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"search-box-fixed"},[_c('div',{staticClass:"search-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchKeyword),expression:"searchKeyword"}],attrs:{"placeholder":"搜索关键词"},domProps:{"value":(_vm.searchKeyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.searchKeyword=$event.target.value}}}),_vm._v(" "),_c('img',{staticClass:"search-icon",attrs:{"src":__webpack_require__(179)}}),_vm._v(" "),_c('button',{staticClass:"search-btn",on:{"click":function($event){return _vm.onSearch()}}},[_vm._v("搜索")])])]),_vm._v(" "),_c('div',{staticClass:"list",on:{"scroll":_vm.handleScroll}},_vm._l((_vm.list),function(d,index){return _c('div',{key:index,staticClass:"product-item",on:{"click":function($event){return _vm.goInfo(d.id,d)}}},[_c('div',{staticClass:"product-icon"},[(d.img)?_c('img',{staticClass:"search-icon",attrs:{"src":d.img}}):_c('img',{staticClass:"search-icon",attrs:{"src":__webpack_require__(143)}})]),_vm._v(" "),_c('div',{staticClass:"product-name"},[_vm._v(_vm._s(d.name))])])}),0),_vm._v(" "),(_vm.list.length==0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10rem"}},[_vm._m(0),_vm._v(" "),_c('div',{staticStyle:{"margin-top":".5rem"}},[_vm._v("暂无数据")])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"6rem","margin":"0 auto"}},[_c('img',{staticStyle:{"width":"100%","height":"100%"},attrs:{"src":__webpack_require__(820)}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(741);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d9da286_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1340);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3706)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-3d9da286"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d9da286_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d9da286_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_secondList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3707);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("6f8600e2", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".search-box-fixed[data-v-3d9da286]{position:fixed;top:0;left:0;right:0;background:#f5f5f5;z-index:10;padding:.4rem;box-shadow:0 2px 8px rgba(0,0,0,.1)}.search-box[data-v-3d9da286]{position:relative}.search-box input[data-v-3d9da286]{width:80%;height:2rem;background:#e6e9f2;border-radius:6px;padding-left:1.6rem;font-size:14px;vertical-align:middle}.search-btn[data-v-3d9da286]{width:3rem;font-size:.64rem;text-align:center;line-height:1.8rem;background:#0f75ff;color:#fff;border-radius:6px;vertical-align:middle}.search-box .search-icon[data-v-3d9da286]{position:absolute;width:1rem;height:1rem;left:.4rem;top:.5rem}.list[data-v-3d9da286]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem;padding-top:4rem;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.product-item[data-v-3d9da286]{width:25%;text-align:center;margin-bottom:.5rem}.product-icon[data-v-3d9da286]{width:1.8rem;height:1.8rem;margin:0 auto;margin-bottom:.2rem}.product-icon img[data-v-3d9da286]{width:100%;height:100%}.top-tips[data-v-3d9da286]{padding-top:.5rem}.top-tips div[data-v-3d9da286]{padding:0 .4rem;line-height:1rem;font-size:.52rem}.drag[data-v-3d9da286]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#0f75ff;color:#fff;width:2.5rem;height:2.5rem;border-radius:50%;position:fixed;z-index:999999;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.drag.transition[data-v-3d9da286]{-webkit-transition:left .3s ease,top .3s ease;transition:left .3s ease,top .3s ease}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  name: 'ProductMatching',
  data: function data() {
    return {
      searchKeyword: '',
      currentPage: 1,
      data: {},
      list: [],
      top: 0,
      left: 0,
      width: 0,
      height: 0,
      offsetWidth: 0,
      offsetHeight: 0,
      windowWidth: 0,
      windowHeight: 0,
      isMove: true,
      edge: 10,
      isDock: true,
      dictionaryList: [],
      content: ''
    };
  },
  mounted: function mounted() {
    var that = this;
    that.getProductMatching(1);
  },
  methods: {
    goContent: function goContent() {
      if (this._Util.isFromApp()) {
        uni.navigateTo({
          url: '/pages/webView/playVideo?content=' + encodeURIComponent(this.content)
        });
        return;
      }
      this.$router.push({
        name: 'richTextNew',
        query: {
          content: this.content
        }
      });
    },
    touchstart: function touchstart(e) {},
    touchmove: function touchmove(e) {
      // 单指触摸
      if (e.touches.length !== 1) {
        return false;
      }
      this.isMove = true;
      this.left = e.touches[0].clientX - this.offsetWidth;
      var clientY = e.touches[0].clientY - this.offsetHeight;
      // #ifdef H5
      clientY += this.height;
      // #endif
      var edgeBottom = this.windowHeight - this.height - this.edge;

      // 上下触及边界
      if (clientY < this.edge) {
        this.top = this.edge;
      } else if (clientY > edgeBottom) {
        this.top = edgeBottom;
      } else {
        this.top = clientY - 60;
      }
    },
    touchend: function touchend(e) {
      if (this.isDock) {
        var edgeRigth = this.windowWidth - this.width - this.edge;
        if (this.left < this.windowWidth / 2 - this.offsetWidth) {
          this.left = this.edge;
        } else {
          this.left = edgeRigth;
        }
      }
      this.isMove = false;
    },
    handleScroll: function handleScroll() {
      var container = this.$refs.scrollContainer; // 获取容器元素
      // 检查是否滚动到底部
      if (container.scrollTop + container.clientHeight >= container.scrollHeight - 100) {
        if (this.data.length == 48) {
          this.currentPage++;
          this.getProductMatching();
        }
      }
    },
    onSearch: function onSearch() {
      if (this.searchKeyword) {
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 5,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.searchKeyword,
          searchKey: this.searchKeyNum
        }, this);
        this.$router.push({
          name: 'circuit/search',
          query: {
            search: this.searchKeyword,
            navigationId: this.$route.query.navigationId,
            isAdminPass: this.$route.query.isAdminPass,
            isAccessControl: this.$route.query.isAccessControl,
            isVip: this.$route.query.isVip,
            isSvip: this.$route.query.isSvip,
            isAccess: this.$route.query.isAccess,
            searchKeyNum: this.searchKeyNum,
            level: 1
          }
        });
      } else {
        Dialog({
          message: '请输入搜索关键词'
        });
      }
    },
    getProductMatching: function getProductMatching(page) {
      var _this = this;
      var that = this;
      if (page == 1) {
        this.currentPage = 1;
        this.searchList = [];
      }
      this._Util.post(this._Api.GET_INFOMATIONLIST, {
        'searchKey': this.searchKeyword,
        'pageNum': this.currentPage,
        'pageSize': 48,
        'navigationId': this.$route.query.navigationId,
        'id': this.$route.query.id
      }, function (data) {
        _this.data = data;
        _this.content = _this.$route.query.content;
        if (page == 1) {
          that.list = data;
        } else {
          that.list = that.list.concat(data);
        }
        _this.$nextTick(function () {
          this.windowWidth = $(window).width();
          this.windowHeight = $(window).height();
          var data = document.getElementById('_drag_button').getBoundingClientRect();
          this.width = data.width;
          this.height = data.height;
          this.offsetWidth = data.width / 2;
          this.offsetHeight = data.height / 2;
          this.left = this.windowWidth - this.width - this.edge;
          this.top = this.windowHeight / 2 - this.edge;
        });
      }, function () {}, this);
    },
    goInfo: function goInfo(file) {
      if (this._Util.isFromApp()) {
        this._Util.publicOpenPage({
          url: location.origin + '/repair/circuit/list?st=1&dictNo=' + file.dictNo + '&navigationId=' + file.num + '&isAdminPass=' + this.$route.query.isAdminPass + '&isAccessControl=' + this.$route.query.isAccessControl + '&isVip=' + this.$route.query.isVip + '&isSvip=' + this.$route.query.isSvip + '&isAccess=' + this.$route.query.isAccess + '&searchKeyNum=' + this.searchKeyword + '&level=1&content=' + this.content
        });
      } else {
        this.$router.push({
          name: 'circuitList',
          query: {
            dictNo: file.dictNo,
            navigationId: file.num,
            isAccessControl: this.$route.query.isAccessControl,
            isAdminPass: this.$route.query.isAdminPass,
            isVip: this.$route.query.isVip,
            isSvip: this.$route.query.isSvip,
            isAccess: this.$route.query.isAccess,
            searchKeyNum: this.searchKeyword,
            level: 1,
            content: this.content
          }
        });
      }
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"search-box-fixed"},[_c('div',{staticClass:"search-box"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.searchKeyword),expression:"searchKeyword"}],attrs:{"placeholder":"搜索关键词"},domProps:{"value":(_vm.searchKeyword)},on:{"input":function($event){if($event.target.composing){ return; }_vm.searchKeyword=$event.target.value}}}),_vm._v(" "),_c('img',{staticClass:"search-icon",attrs:{"src":__webpack_require__(179)}}),_vm._v(" "),_c('button',{staticClass:"search-btn",on:{"click":function($event){return _vm.onSearch()}}},[_vm._v("搜索")])])]),_vm._v(" "),_c('div',{staticClass:"list",on:{"scroll":_vm.handleScroll}},_vm._l((_vm.list),function(d,index){return _c('div',{key:index,staticClass:"product-item",on:{"click":function($event){return _vm.goInfo(d)}}},[_c('div',{staticClass:"product-icon"},[(d.img)?_c('img',{staticClass:"search-icon",attrs:{"src":d.img}}):_c('img',{staticClass:"search-icon",attrs:{"src":__webpack_require__(143)}})]),_vm._v(" "),_c('div',{staticClass:"product-name"},[_vm._v(_vm._s(d.name))])])}),0),_vm._v(" "),(_vm.list.length==0)?_c('div',{staticStyle:{"text-align":"center","padding-top":"10rem"}},[_vm._m(0),_vm._v(" "),_c('div',{staticStyle:{"margin-top":".5rem"}},[_vm._v("暂无数据")])]):_vm._e(),_vm._v(" "),(_vm.content)?_c('div',{staticClass:"drag",class:[{transition: _vm.isDock && !_vm.isMove }],style:('left: ' + _vm.left + 'px; top:' + _vm.top + 'px;'),attrs:{"id":"_drag_button"},on:{"touchstart":_vm.touchstart,"touchmove":function($event){$event.stopPropagation();$event.preventDefault();return _vm.touchmove.apply(null, arguments)},"touchend":_vm.touchend,"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.goContent()}}},[_c('div',[_vm._v("\n      使用\n    ")]),_vm._v(" "),_c('div',[_vm._v("\n      说明\n    ")])]):_vm._e()])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"6rem","margin":"0 auto"}},[_c('img',{staticStyle:{"width":"100%","height":"100%"},attrs:{"src":__webpack_require__(820)}})])}]
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(742);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a5c6862_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1341);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3708)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0a5c6862"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a5c6862_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0a5c6862_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_infoList_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3709);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("7bc54858", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, ".page[data-v-0a5c6862]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100vh;background-color:#eee}.bcfff[data-v-0a5c6862]{background-color:#fff}.search-w[data-v-0a5c6862]{position:absolute;top:0;left:0;width:100%;height:2.45rem}.main[data-v-0a5c6862]{padding-top:2.45rem;height:100%;overflow:auto}.search-list[data-v-0a5c6862]{padding:.3rem}.search-list>li[data-v-0a5c6862]{margin-bottom:.5rem;padding:.3rem;background:#fff;border-radius:.4rem}.sl-title[data-v-0a5c6862]{font-size:.8rem;color:#000}.sl-sub[data-v-0a5c6862]{margin-top:.25rem;font-size:.7rem;color:#aaa}.ztyw[data-v-0a5c6862]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.ztyw img[data-v-0a5c6862]{width:1.5rem;height:1.5rem}.ztyw .ztyw-r[data-v-0a5c6862]{margin-left:.5rem;font-size:.8rem;color:#000}.drag[data-v-0a5c6862]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#0f75ff;color:#fff;width:2.5rem;height:2.5rem;border-radius:50%;position:fixed;z-index:999999;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.drag.transition[data-v-0a5c6862]{-webkit-transition:left .3s ease,top .3s ease;transition:left .3s ease,top .3s ease}", ""]);

// exports
/* WEBPACK VAR INJECTION */(function($) {

var _interopRequireDefault = __webpack_require__(4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(10));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(11));
__webpack_require__(49);
var _icon = _interopRequireDefault(__webpack_require__(35));
__webpack_require__(177);
var _search = _interopRequireDefault(__webpack_require__(178));
var _vant = __webpack_require__(12);
var _mintUi = __webpack_require__(7);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = exports.default = {
  components: {
    Search: _search.default,
    Icon: _icon.default
  },
  data: function data() {
    return {
      search: this.$route.query.search,
      searchKeyNum: this.$route.query.searchKeyNum,
      cur: 0,
      fileList: [],
      isAdminPass: 0,
      isAccessControl: 0,
      isVip: 0,
      isSvip: 0,
      isAccess: 0,
      currentPage: 0,
      data: {},
      doubleClick: false,
      top: 0,
      left: 0,
      width: 0,
      height: 0,
      offsetWidth: 0,
      offsetHeight: 0,
      windowWidth: 0,
      windowHeight: 0,
      isMove: true,
      edge: 10,
      isDock: true,
      timing: '',
      time: 0
      // secDictionaryList: []
    };
  },
  watch: {},
  computed: {
    // secDictionaryList() {
    //   return this.dictionaryList[this.cur].sonVehicleDictionarys
    // }
  },
  created: function created() {
    document.title = '维修资料大全';
    this.isAdminPass = this.$route.query.isAdminPass;
    this.isAccessControl = this.$route.query.isAccessControl;
    this.isVip = this.$route.query.isVip;
    this.isSvip = this.$route.query.isSvip;
    this.isAccess = this.$route.query.isAccess;
    this.getLowerStrataDataList(1);
  },
  mounted: function mounted() {
    var that = this;
    that._Util.collectPageViewNew({
      type: 1,
      postUrl: that._Api.POST_COLLECT_NEW,
      source: '',
      target: '',
      remark: '资料',
      searchKey: ''
    }, that);
    that.timing = setInterval(function () {
      that.time++;
    }, 1000);
  },
  beforeDestroy: function beforeDestroy() {
    var that = this;
    clearInterval(that.timing);
    if (that.time >= 5) {
      that._Util.collectPageViewNew({
        type: 2,
        postUrl: that._Api.POST_COLLECT_NEW,
        source: '',
        target: '',
        remark: '资料,' + that.time,
        searchKey: ''
      }, that);
    }
  },
  methods: {
    touchstart: function touchstart(e) {},
    touchmove: function touchmove(e) {
      // 单指触摸
      if (e.touches.length !== 1) {
        return false;
      }
      this.isMove = true;
      this.left = e.touches[0].clientX - this.offsetWidth;
      var clientY = e.touches[0].clientY - this.offsetHeight;
      // #ifdef H5
      clientY += this.height;
      // #endif
      var edgeBottom = this.windowHeight - this.height - this.edge;

      // 上下触及边界
      if (clientY < this.edge) {
        this.top = this.edge;
      } else if (clientY > edgeBottom) {
        this.top = edgeBottom;
      } else {
        this.top = clientY - 60;
      }
    },
    touchend: function touchend(e) {
      if (this.isDock) {
        var edgeRigth = this.windowWidth - this.width - this.edge;
        if (this.left < this.windowWidth / 2 - this.offsetWidth) {
          this.left = this.edge;
        } else {
          this.left = edgeRigth;
        }
      }
      this.isMove = false;
    },
    goContent: function goContent() {
      this.$router.push({
        name: 'richTextNew',
        query: {
          content: this.data.onelevelContent
        }
      });
    },
    handleScroll: function handleScroll() {
      var container = this.$refs.scrollContainer; // 获取容器元素
      // 检查是否滚动到底部
      if (container.scrollTop + container.clientHeight >= container.scrollHeight - 100) {
        if (this.data.fileList.length == 20) {
          this.getLowerStrataDataList();
        }
      }
    },
    onClear: function onClear() {
      this.search = '';
    },
    chooseMenu: function chooseMenu(cur) {
      this.cur = cur;
      // this.secDictionaryList = this.dictionaryList[this.cur].sonVehicleDictionarys
    },
    onSearch: function onSearch() {
      if (this.value) {
        var now = new Date();
        var userinfo = JSON.parse(localStorage.getItem('userInfo'));
        this.searchKeyNum = now.getTime() + '' + userinfo.userId;
        this._Util.collectPageViewNew({
          type: 5,
          postUrl: this._Api.POST_COLLECT_NEW,
          source: '',
          target: '',
          remark: this.value,
          searchKey: this.searchKeyNum
        }, this);
        this.$router.push({
          name: 'circuit/search',
          query: {
            search: this.value,
            navigationId: this.$route.query.navigationId,
            isAdminPass: this.$route.query.isAdminPass,
            isAccessControl: this.$route.query.isAccessControl,
            isVip: this.$route.query.isVip,
            isSvip: this.$route.query.isSvip,
            isAccess: this.$route.query.isAccess,
            searchKeyNum: this.searchKeyNum
          }
        });
      } else {
        Dialog({
          message: '请输入搜索关键词'
        });
      }
    },
    getLowerStrataDataList: function getLowerStrataDataList(page) {
      var _this = this;
      if (this.doubleClick == true) {
        return;
      } else {
        this.doubleClick = true;
      }
      if (page == 1) {
        this.currentPage = 1;
        this.fileList = [];
      } else {
        this.currentPage = this.currentPage + 1;
      }
      this._Util.post(this._Api.getLowerStrataDataList, {
        'dictNo': this.$route.query.dictNo,
        'navigationId': this.$route.query.navigationId,
        'pageNum': this.currentPage,
        'pageSize': 20
      }, function (data) {
        // this.fileList = data.fileList
        _this.doubleClick = false;
        _this.data = data;
        _this.fileList = _this.fileList.concat(data.fileList);
        _this.$nextTick(function () {
          this.windowWidth = $(window).width();
          this.windowHeight = $(window).height();
          var data = document.getElementById('_drag_button').getBoundingClientRect();
          this.width = data.width;
          this.height = data.height;
          this.offsetWidth = data.width / 2;
          this.offsetHeight = data.height / 2;
          this.left = this.windowWidth - this.width - this.edge;
          this.top = this.windowHeight / 2 - this.edge;
        });
      }, function () {}, this);
    },
    getPicList: function getPicList(file) {
      var that = this;
      /* 从搜索结果页进入图集*/
      // if (that.$route.query.fromPage == 'soso') {
      that._Util.post(that._Api.HOSTOLD + 'search-api/product/getDataDetails', {
        dataNo: file.fileNo,
        navigationId: this.$route.query.navigationId,
        pageNum: 1,
        pageSize: 20
      }, function (data) {
        // that.pdfSrc = data.fileUrl
        // that.isCollect = data.isCollect
        uni.navigateTo({
          url: '/data-subpackage/pages/preview/preview?src=' + encodeURIComponent(data.fileUrl)
        });
      }, function () {}, that);
      return;
      // }
    },
    toDetail: function toDetail(file) {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
        var userinfo;
        return _regenerator.default.wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              userinfo = JSON.parse(localStorage.getItem('userInfo'));
              _context.next = 1;
              return _this2._Util.getUserInfo(_this2);
            case 1:
              userinfo = _context.sent;
              if (!(_this2.isAdminPass == 0)) {
                _context.next = 3;
                break;
              }
              if (!(_this2.isAccessControl == 1)) {
                _context.next = 3;
                break;
              }
              if (_this2._Util.isSVip(userinfo.userVipType)) {
                _context.next = 3;
                break;
              }
              if (!(_this2.isSvip == 1 && _this2.isAccess != 1)) {
                _context.next = 2;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料SVIP专享,请您先开通SVIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=1'
                  });
                  _this2.clickFlag = true;
                } else {
                  _this2.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 2:
              if (_this2._Util.isVip(userinfo.userVipType)) {
                _context.next = 3;
                break;
              }
              if (!(_this2.isVip == 1 && _this2.isAccess != 1)) {
                _context.next = 3;
                break;
              }
              (0, _mintUi.MessageBox)({
                title: '提示',
                message: '资料VIP专享,请您先开通VIP再查看资料！',
                confirmButtonText: '确认',
                showCancelButton: true,
                cancelButtonText: '取消'
              }).then(function (action) {
                if (action === 'confirm') {
                  uni.navigateTo({
                    url: '/pages/mine/vip/index?type=1&vipType=2'
                  });
                  _this2.clickFlag = true;
                } else {
                  _this2.clickFlag = true;
                }
              });
              return _context.abrupt("return");
            case 3:
              _this2._Util.collectPageViewNew({
                type: 1,
                postUrl: _this2._Api.POST_COLLECT_NEW,
                source: _this2.searchKeyNum ? '搜索' : '',
                target: file.fileId,
                remark: '资料详情',
                searchKey: _this2.searchKeyNum
              }, _this2);
              if (!_this2._Util.isApp()) {
                _context.next = 5;
                break;
              }
              if (!(file.fileType.toUpperCase() == 'PDF')) {
                _context.next = 4;
                break;
              }
              _this2._Util.publicOpenPage({
                url: _this2._Util.openPDFFile(_this2._Api.HOSTOLD + 'api/management/filePDFView.html?st=1&fileNo=' + file.fileNo),
                appName: file.dictName
              });
              return _context.abrupt("return");
            case 4:
              _this2._Util.publicOpenPage({
                url: location.origin + '/repair/business/pay/picList?st=1&isScale=1&pageNum=1&pageSize=3&type=1&fileNo=' + file.fileNo + '&fromPage=soso&title=' + file.fileName.replace(/red/g, '#666'),
                appName: file.dictName
              });
              _context.next = 7;
              break;
            case 5:
              if (!(file.fileType.toUpperCase() == 'PDF' || file.fileType == 'application/pdf')) {
                _context.next = 6;
                break;
              }
              // this.getPicList(file);
              _this2.$router.push({
                name: 'fileView',
                query: {
                  fileId: file.fileId,
                  fileNo: file.fileNo,
                  navigationId: _this2.$route.query.navigationId,
                  isAdminPass: _this2.$route.query.isAdminPass,
                  isAccessControl: _this2.$route.query.isAccessControl,
                  isVip: _this2.$route.query.isVip,
                  isSvip: _this2.$route.query.isSvip,
                  isAccess: _this2.$route.query.isAccess,
                  fromPage: 'soso',
                  title: file.fileName.replace(/red/g, '#666')
                }
              });
              return _context.abrupt("return");
            case 6:
              _this2.$router.push({
                name: 'picList',
                query: {
                  isScale: 1,
                  pageNum: 1,
                  pageSize: 3,
                  type: 1,
                  fileNo: file.fileNo,
                  navigationId: _this2.$route.query.navigationId,
                  fileId: file.fileId,
                  isAdminPass: _this2.$route.query.isAdminPass,
                  isAccessControl: _this2.$route.query.isAccessControl,
                  isVip: _this2.$route.query.isVip,
                  isSvip: _this2.$route.query.isSvip,
                  isAccess: _this2.$route.query.isAccess,
                  fromPage: 'soso',
                  title: file.fileName.replace(/red/g, '#666')
                }
              });
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(16)))/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page"},[_c('div',{staticClass:"search-w"},[_c('search',{attrs:{"show-action":"","placeholder":"请输入搜索关键词"},on:{"search":_vm.onSearch},scopedSlots:_vm._u([{key:"action",fn:function(){return [_c('div',{on:{"click":_vm.onSearch}},[_vm._v("搜索")])]},proxy:true}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}})],1),_vm._v(" "),_c('div',{staticClass:"main",on:{"scroll":_vm.handleScroll}},[_c('ul',{ref:"scrollContainer",staticClass:"search-list"},_vm._l((_vm.fileList),function(detail,i){return _c('li',{key:i,on:{"click":function($event){return _vm.toDetail(detail)}}},[_c('div',{staticClass:"ztyw"},[_c('img',{attrs:{"src":__webpack_require__(212),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"ztyw-r",domProps:{"innerHTML":_vm._s(detail.fileName.replace(/\.(jpg|png|pdf|JPG|PNG|PDF)$/i, ''))}})])])}),0)]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.data.onelevelContent),expression:"data.onelevelContent"}],staticClass:"drag",class:[{transition: _vm.isDock && !_vm.isMove }],style:('left: ' + _vm.left + 'px; top:' + _vm.top + 'px;'),attrs:{"id":"_drag_button"},on:{"touchstart":_vm.touchstart,"touchmove":function($event){$event.stopPropagation();$event.preventDefault();return _vm.touchmove.apply(null, arguments)},"touchend":_vm.touchend,"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.goContent()}}},[_c('div',[_vm._v("\n        使用\n      ")]),_vm._v(" "),_c('div',[_vm._v("\n        说明\n      ")])])])}
var staticRenderFns = []
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(743);
/* harmony import */ var _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ff5301b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1342);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
function injectStyle (context) {
  __webpack_require__(3710)
}
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-0ff5301b"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null

var Component = Object(_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_0___default.a,
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ff5301b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_1__[/* render */ "a"],
  _node_modules_vue_loader_lib_template_compiler_index_id_data_v_0ff5301b_hasScoped_true_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_downloadFile_vue__WEBPACK_IMPORTED_MODULE_1__[/* staticRenderFns */ "b"],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3711);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(3).default
var update = add("25df1275", content, true, {});exports = module.exports = __webpack_require__(2)(false);
// imports


// module
exports.push([module.i, "", ""]);

// exports


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mintUi = __webpack_require__(7);
//
//
//
//
var _default = exports.default = {
  name: 'DownloadFile',
  data: function data() {
    return {
      token: this.$route.query.token
    };
  },
  mounted: function mounted() {
    this.downLoadFile();
  },
  methods: {
    downLoadFile: function downLoadFile() {
      var that = this;
      that.$http.get(that._Api.HOSTOLD + 'user-api/app/pub/download/url?token=' + that.token, {}).then(function (res) {
        if (res.data.status == 200) {
          var addr = res.data.data;
          window.location.href = addr;
        } else {
          var addr2 = res.data.data;
          window.location.href = addr2;
        }
      }).catch(function (error) {
        console.log(error);
      });
    }
  }
};/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
var staticRenderFns = []
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "version", function() { return /* reexport */ echarts_version; });
__webpack_require__.d(__webpack_exports__, "dependencies", function() { return /* reexport */ dependencies; });
__webpack_require__.d(__webpack_exports__, "PRIORITY", function() { return /* reexport */ PRIORITY; });
__webpack_require__.d(__webpack_exports__, "init", function() { return /* reexport */ echarts_init; });
__webpack_require__.d(__webpack_exports__, "connect", function() { return /* reexport */ connect; });
__webpack_require__.d(__webpack_exports__, "disconnect", function() { return /* reexport */ disconnect; });
__webpack_require__.d(__webpack_exports__, "disConnect", function() { return /* reexport */ disConnect; });
__webpack_require__.d(__webpack_exports__, "dispose", function() { return /* reexport */ echarts_dispose; });
__webpack_require__.d(__webpack_exports__, "getInstanceByDom", function() { return /* reexport */ getInstanceByDom; });
__webpack_require__.d(__webpack_exports__, "getInstanceById", function() { return /* reexport */ getInstanceById; });
__webpack_require__.d(__webpack_exports__, "registerTheme", function() { return /* reexport */ registerTheme; });
__webpack_require__.d(__webpack_exports__, "registerPreprocessor", function() { return /* reexport */ registerPreprocessor; });
__webpack_require__.d(__webpack_exports__, "registerProcessor", function() { return /* reexport */ registerProcessor; });
__webpack_require__.d(__webpack_exports__, "registerPostInit", function() { return /* reexport */ registerPostInit; });
__webpack_require__.d(__webpack_exports__, "registerPostUpdate", function() { return /* reexport */ registerPostUpdate; });
__webpack_require__.d(__webpack_exports__, "registerUpdateLifecycle", function() { return /* reexport */ registerUpdateLifecycle; });
__webpack_require__.d(__webpack_exports__, "registerAction", function() { return /* reexport */ registerAction; });
__webpack_require__.d(__webpack_exports__, "registerCoordinateSystem", function() { return /* reexport */ registerCoordinateSystem; });
__webpack_require__.d(__webpack_exports__, "getCoordinateSystemDimensions", function() { return /* reexport */ getCoordinateSystemDimensions; });
__webpack_require__.d(__webpack_exports__, "registerLocale", function() { return /* reexport */ registerLocale; });
__webpack_require__.d(__webpack_exports__, "registerLayout", function() { return /* reexport */ registerLayout; });
__webpack_require__.d(__webpack_exports__, "registerVisual", function() { return /* reexport */ registerVisual; });
__webpack_require__.d(__webpack_exports__, "registerLoading", function() { return /* reexport */ registerLoading; });
__webpack_require__.d(__webpack_exports__, "setCanvasCreator", function() { return /* reexport */ setCanvasCreator; });
__webpack_require__.d(__webpack_exports__, "registerMap", function() { return /* reexport */ echarts_registerMap; });
__webpack_require__.d(__webpack_exports__, "getMap", function() { return /* reexport */ echarts_getMap; });
__webpack_require__.d(__webpack_exports__, "registerTransform", function() { return /* reexport */ registerTransform; });
__webpack_require__.d(__webpack_exports__, "dataTool", function() { return /* reexport */ dataTool; });
__webpack_require__.d(__webpack_exports__, "zrender", function() { return /* reexport */ zrender_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "matrix", function() { return /* reexport */ matrix_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "vector", function() { return /* reexport */ vector_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "zrUtil", function() { return /* reexport */ util; });
__webpack_require__.d(__webpack_exports__, "color", function() { return /* reexport */ tool_color; });
__webpack_require__.d(__webpack_exports__, "throttle", function() { return /* reexport */ throttle; });
__webpack_require__.d(__webpack_exports__, "helper", function() { return /* reexport */ api_helper_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "use", function() { return /* reexport */ use; });
__webpack_require__.d(__webpack_exports__, "setPlatformAPI", function() { return /* reexport */ platform["e" /* setPlatformAPI */]; });
__webpack_require__.d(__webpack_exports__, "parseGeoJSON", function() { return /* reexport */ parseGeoJSON; });
__webpack_require__.d(__webpack_exports__, "parseGeoJson", function() { return /* reexport */ parseGeoJSON; });
__webpack_require__.d(__webpack_exports__, "number", function() { return /* reexport */ api_number_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "time", function() { return /* reexport */ api_time_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "graphic", function() { return /* reexport */ api_graphic_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "format", function() { return /* reexport */ api_format_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "util", function() { return /* reexport */ api_util_namespaceObject; });
__webpack_require__.d(__webpack_exports__, "env", function() { return /* reexport */ env["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "List", function() { return /* reexport */ data_SeriesData; });
__webpack_require__.d(__webpack_exports__, "Model", function() { return /* reexport */ model_Model; });
__webpack_require__.d(__webpack_exports__, "Axis", function() { return /* reexport */ coord_Axis; });
__webpack_require__.d(__webpack_exports__, "ComponentModel", function() { return /* reexport */ Component; });
__webpack_require__.d(__webpack_exports__, "ComponentView", function() { return /* reexport */ view_Component; });
__webpack_require__.d(__webpack_exports__, "SeriesModel", function() { return /* reexport */ Series; });
__webpack_require__.d(__webpack_exports__, "ChartView", function() { return /* reexport */ Chart; });
__webpack_require__.d(__webpack_exports__, "innerDrawElementOnCanvas", function() { return /* reexport */ brushSingle; });
__webpack_require__.d(__webpack_exports__, "extendComponentModel", function() { return /* reexport */ extendComponentModel; });
__webpack_require__.d(__webpack_exports__, "extendComponentView", function() { return /* reexport */ extendComponentView; });
__webpack_require__.d(__webpack_exports__, "extendSeriesModel", function() { return /* reexport */ extendSeriesModel; });
__webpack_require__.d(__webpack_exports__, "extendChartView", function() { return /* reexport */ extendChartView; });

// NAMESPACE OBJECT: ./node_modules/zrender/lib/core/vector.js
var vector_namespaceObject = {};
__webpack_require__.r(vector_namespaceObject);
__webpack_require__.d(vector_namespaceObject, "create", function() { return vector_create; });
__webpack_require__.d(vector_namespaceObject, "copy", function() { return vector_copy; });
__webpack_require__.d(vector_namespaceObject, "clone", function() { return clone; });
__webpack_require__.d(vector_namespaceObject, "set", function() { return set; });
__webpack_require__.d(vector_namespaceObject, "add", function() { return vector_add; });
__webpack_require__.d(vector_namespaceObject, "scaleAndAdd", function() { return scaleAndAdd; });
__webpack_require__.d(vector_namespaceObject, "sub", function() { return sub; });
__webpack_require__.d(vector_namespaceObject, "len", function() { return vector_len; });
__webpack_require__.d(vector_namespaceObject, "length", function() { return vector_length; });
__webpack_require__.d(vector_namespaceObject, "lenSquare", function() { return lenSquare; });
__webpack_require__.d(vector_namespaceObject, "lengthSquare", function() { return lengthSquare; });
__webpack_require__.d(vector_namespaceObject, "mul", function() { return vector_mul; });
__webpack_require__.d(vector_namespaceObject, "div", function() { return div; });
__webpack_require__.d(vector_namespaceObject, "dot", function() { return dot; });
__webpack_require__.d(vector_namespaceObject, "scale", function() { return vector_scale; });
__webpack_require__.d(vector_namespaceObject, "normalize", function() { return normalize; });
__webpack_require__.d(vector_namespaceObject, "distance", function() { return vector_distance; });
__webpack_require__.d(vector_namespaceObject, "dist", function() { return vector_dist; });
__webpack_require__.d(vector_namespaceObject, "distanceSquare", function() { return distanceSquare; });
__webpack_require__.d(vector_namespaceObject, "distSquare", function() { return distSquare; });
__webpack_require__.d(vector_namespaceObject, "negate", function() { return negate; });
__webpack_require__.d(vector_namespaceObject, "lerp", function() { return lerp; });
__webpack_require__.d(vector_namespaceObject, "applyTransform", function() { return applyTransform; });
__webpack_require__.d(vector_namespaceObject, "min", function() { return vector_min; });
__webpack_require__.d(vector_namespaceObject, "max", function() { return vector_max; });

// NAMESPACE OBJECT: ./node_modules/zrender/lib/core/matrix.js
var matrix_namespaceObject = {};
__webpack_require__.r(matrix_namespaceObject);
__webpack_require__.d(matrix_namespaceObject, "create", function() { return matrix_create; });
__webpack_require__.d(matrix_namespaceObject, "identity", function() { return identity; });
__webpack_require__.d(matrix_namespaceObject, "copy", function() { return matrix_copy; });
__webpack_require__.d(matrix_namespaceObject, "mul", function() { return matrix_mul; });
__webpack_require__.d(matrix_namespaceObject, "translate", function() { return matrix_translate; });
__webpack_require__.d(matrix_namespaceObject, "rotate", function() { return matrix_rotate; });
__webpack_require__.d(matrix_namespaceObject, "scale", function() { return matrix_scale; });
__webpack_require__.d(matrix_namespaceObject, "invert", function() { return matrix_invert; });
__webpack_require__.d(matrix_namespaceObject, "clone", function() { return matrix_clone; });

// NAMESPACE OBJECT: ./node_modules/zrender/lib/zrender.js
var zrender_namespaceObject = {};
__webpack_require__.r(zrender_namespaceObject);
__webpack_require__.d(zrender_namespaceObject, "init", function() { return init; });
__webpack_require__.d(zrender_namespaceObject, "dispose", function() { return dispose; });
__webpack_require__.d(zrender_namespaceObject, "disposeAll", function() { return disposeAll; });
__webpack_require__.d(zrender_namespaceObject, "getInstance", function() { return getInstance; });
__webpack_require__.d(zrender_namespaceObject, "registerPainter", function() { return registerPainter; });
__webpack_require__.d(zrender_namespaceObject, "getElementSSRData", function() { return getElementSSRData; });
__webpack_require__.d(zrender_namespaceObject, "registerSSRDataGetter", function() { return registerSSRDataGetter; });
__webpack_require__.d(zrender_namespaceObject, "version", function() { return version; });

// NAMESPACE OBJECT: ./node_modules/echarts/lib/util/graphic.js
var graphic_namespaceObject = {};
__webpack_require__.r(graphic_namespaceObject);
__webpack_require__.d(graphic_namespaceObject, "updateProps", function() { return updateProps; });
__webpack_require__.d(graphic_namespaceObject, "initProps", function() { return initProps; });
__webpack_require__.d(graphic_namespaceObject, "removeElement", function() { return removeElement; });
__webpack_require__.d(graphic_namespaceObject, "removeElementWithFadeOut", function() { return removeElementWithFadeOut; });
__webpack_require__.d(graphic_namespaceObject, "isElementRemoved", function() { return isElementRemoved; });
__webpack_require__.d(graphic_namespaceObject, "extendShape", function() { return extendShape; });
__webpack_require__.d(graphic_namespaceObject, "extendPath", function() { return extendPath; });
__webpack_require__.d(graphic_namespaceObject, "registerShape", function() { return registerShape; });
__webpack_require__.d(graphic_namespaceObject, "getShapeClass", function() { return getShapeClass; });
__webpack_require__.d(graphic_namespaceObject, "makePath", function() { return makePath; });
__webpack_require__.d(graphic_namespaceObject, "makeImage", function() { return makeImage; });
__webpack_require__.d(graphic_namespaceObject, "mergePath", function() { return graphic_mergePath; });
__webpack_require__.d(graphic_namespaceObject, "resizePath", function() { return resizePath; });
__webpack_require__.d(graphic_namespaceObject, "subPixelOptimizeLine", function() { return graphic_subPixelOptimizeLine; });
__webpack_require__.d(graphic_namespaceObject, "subPixelOptimizeRect", function() { return graphic_subPixelOptimizeRect; });
__webpack_require__.d(graphic_namespaceObject, "subPixelOptimize", function() { return graphic_subPixelOptimize; });
__webpack_require__.d(graphic_namespaceObject, "getTransform", function() { return getTransform; });
__webpack_require__.d(graphic_namespaceObject, "applyTransform", function() { return graphic_applyTransform; });
__webpack_require__.d(graphic_namespaceObject, "transformDirection", function() { return transformDirection; });
__webpack_require__.d(graphic_namespaceObject, "groupTransition", function() { return groupTransition; });
__webpack_require__.d(graphic_namespaceObject, "clipPointsByRect", function() { return clipPointsByRect; });
__webpack_require__.d(graphic_namespaceObject, "clipRectByRect", function() { return clipRectByRect; });
__webpack_require__.d(graphic_namespaceObject, "createIcon", function() { return createIcon; });
__webpack_require__.d(graphic_namespaceObject, "linePolygonIntersect", function() { return linePolygonIntersect; });
__webpack_require__.d(graphic_namespaceObject, "lineLineIntersect", function() { return lineLineIntersect; });
__webpack_require__.d(graphic_namespaceObject, "setTooltipConfig", function() { return setTooltipConfig; });
__webpack_require__.d(graphic_namespaceObject, "traverseElements", function() { return traverseElements; });
__webpack_require__.d(graphic_namespaceObject, "Group", function() { return graphic_Group; });
__webpack_require__.d(graphic_namespaceObject, "Image", function() { return graphic_Image; });
__webpack_require__.d(graphic_namespaceObject, "Text", function() { return Text; });
__webpack_require__.d(graphic_namespaceObject, "Circle", function() { return shape_Circle; });
__webpack_require__.d(graphic_namespaceObject, "Ellipse", function() { return shape_Ellipse; });
__webpack_require__.d(graphic_namespaceObject, "Sector", function() { return shape_Sector; });
__webpack_require__.d(graphic_namespaceObject, "Ring", function() { return shape_Ring; });
__webpack_require__.d(graphic_namespaceObject, "Polygon", function() { return shape_Polygon; });
__webpack_require__.d(graphic_namespaceObject, "Polyline", function() { return shape_Polyline; });
__webpack_require__.d(graphic_namespaceObject, "Rect", function() { return shape_Rect; });
__webpack_require__.d(graphic_namespaceObject, "Line", function() { return shape_Line; });
__webpack_require__.d(graphic_namespaceObject, "BezierCurve", function() { return shape_BezierCurve; });
__webpack_require__.d(graphic_namespaceObject, "Arc", function() { return shape_Arc; });
__webpack_require__.d(graphic_namespaceObject, "IncrementalDisplayable", function() { return graphic_IncrementalDisplayable; });
__webpack_require__.d(graphic_namespaceObject, "CompoundPath", function() { return graphic_CompoundPath; });
__webpack_require__.d(graphic_namespaceObject, "LinearGradient", function() { return graphic_LinearGradient; });
__webpack_require__.d(graphic_namespaceObject, "RadialGradient", function() { return graphic_RadialGradient; });
__webpack_require__.d(graphic_namespaceObject, "BoundingRect", function() { return core_BoundingRect; });
__webpack_require__.d(graphic_namespaceObject, "OrientedBoundingRect", function() { return core_OrientedBoundingRect; });
__webpack_require__.d(graphic_namespaceObject, "Point", function() { return core_Point; });
__webpack_require__.d(graphic_namespaceObject, "Path", function() { return graphic_Path; });

// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/helper.js
var api_helper_namespaceObject = {};
__webpack_require__.r(api_helper_namespaceObject);
__webpack_require__.d(api_helper_namespaceObject, "createList", function() { return createList; });
__webpack_require__.d(api_helper_namespaceObject, "getLayoutRect", function() { return getLayoutRect; });
__webpack_require__.d(api_helper_namespaceObject, "createDimensions", function() { return createDimensions; });
__webpack_require__.d(api_helper_namespaceObject, "dataStack", function() { return helper_dataStack; });
__webpack_require__.d(api_helper_namespaceObject, "createSymbol", function() { return symbol_createSymbol; });
__webpack_require__.d(api_helper_namespaceObject, "createScale", function() { return createScale; });
__webpack_require__.d(api_helper_namespaceObject, "mixinAxisModelCommonMethods", function() { return mixinAxisModelCommonMethods; });
__webpack_require__.d(api_helper_namespaceObject, "getECData", function() { return getECData; });
__webpack_require__.d(api_helper_namespaceObject, "enableHoverEmphasis", function() { return enableHoverEmphasis; });
__webpack_require__.d(api_helper_namespaceObject, "createTextStyle", function() { return helper_createTextStyle; });

// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/number.js
var api_number_namespaceObject = {};
__webpack_require__.r(api_number_namespaceObject);
__webpack_require__.d(api_number_namespaceObject, "linearMap", function() { return linearMap; });
__webpack_require__.d(api_number_namespaceObject, "round", function() { return round; });
__webpack_require__.d(api_number_namespaceObject, "asc", function() { return asc; });
__webpack_require__.d(api_number_namespaceObject, "getPrecision", function() { return getPrecision; });
__webpack_require__.d(api_number_namespaceObject, "getPrecisionSafe", function() { return getPrecisionSafe; });
__webpack_require__.d(api_number_namespaceObject, "getPixelPrecision", function() { return getPixelPrecision; });
__webpack_require__.d(api_number_namespaceObject, "getPercentWithPrecision", function() { return getPercentWithPrecision; });
__webpack_require__.d(api_number_namespaceObject, "MAX_SAFE_INTEGER", function() { return MAX_SAFE_INTEGER; });
__webpack_require__.d(api_number_namespaceObject, "remRadian", function() { return remRadian; });
__webpack_require__.d(api_number_namespaceObject, "isRadianAroundZero", function() { return isRadianAroundZero; });
__webpack_require__.d(api_number_namespaceObject, "parseDate", function() { return parseDate; });
__webpack_require__.d(api_number_namespaceObject, "quantity", function() { return quantity; });
__webpack_require__.d(api_number_namespaceObject, "quantityExponent", function() { return quantityExponent; });
__webpack_require__.d(api_number_namespaceObject, "nice", function() { return nice; });
__webpack_require__.d(api_number_namespaceObject, "quantile", function() { return quantile; });
__webpack_require__.d(api_number_namespaceObject, "reformIntervals", function() { return reformIntervals; });
__webpack_require__.d(api_number_namespaceObject, "isNumeric", function() { return isNumeric; });
__webpack_require__.d(api_number_namespaceObject, "numericToNumber", function() { return numericToNumber; });

// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/time.js
var api_time_namespaceObject = {};
__webpack_require__.r(api_time_namespaceObject);
__webpack_require__.d(api_time_namespaceObject, "parse", function() { return parseDate; });
__webpack_require__.d(api_time_namespaceObject, "format", function() { return format; });

// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/graphic.js
var api_graphic_namespaceObject = {};
__webpack_require__.r(api_graphic_namespaceObject);
__webpack_require__.d(api_graphic_namespaceObject, "extendShape", function() { return extendShape; });
__webpack_require__.d(api_graphic_namespaceObject, "extendPath", function() { return extendPath; });
__webpack_require__.d(api_graphic_namespaceObject, "makePath", function() { return makePath; });
__webpack_require__.d(api_graphic_namespaceObject, "makeImage", function() { return makeImage; });
__webpack_require__.d(api_graphic_namespaceObject, "mergePath", function() { return graphic_mergePath; });
__webpack_require__.d(api_graphic_namespaceObject, "resizePath", function() { return resizePath; });
__webpack_require__.d(api_graphic_namespaceObject, "createIcon", function() { return createIcon; });
__webpack_require__.d(api_graphic_namespaceObject, "updateProps", function() { return updateProps; });
__webpack_require__.d(api_graphic_namespaceObject, "initProps", function() { return initProps; });
__webpack_require__.d(api_graphic_namespaceObject, "getTransform", function() { return getTransform; });
__webpack_require__.d(api_graphic_namespaceObject, "clipPointsByRect", function() { return clipPointsByRect; });
__webpack_require__.d(api_graphic_namespaceObject, "clipRectByRect", function() { return clipRectByRect; });
__webpack_require__.d(api_graphic_namespaceObject, "registerShape", function() { return registerShape; });
__webpack_require__.d(api_graphic_namespaceObject, "getShapeClass", function() { return getShapeClass; });
__webpack_require__.d(api_graphic_namespaceObject, "Group", function() { return graphic_Group; });
__webpack_require__.d(api_graphic_namespaceObject, "Image", function() { return graphic_Image; });
__webpack_require__.d(api_graphic_namespaceObject, "Text", function() { return Text; });
__webpack_require__.d(api_graphic_namespaceObject, "Circle", function() { return shape_Circle; });
__webpack_require__.d(api_graphic_namespaceObject, "Ellipse", function() { return shape_Ellipse; });
__webpack_require__.d(api_graphic_namespaceObject, "Sector", function() { return shape_Sector; });
__webpack_require__.d(api_graphic_namespaceObject, "Ring", function() { return shape_Ring; });
__webpack_require__.d(api_graphic_namespaceObject, "Polygon", function() { return shape_Polygon; });
__webpack_require__.d(api_graphic_namespaceObject, "Polyline", function() { return shape_Polyline; });
__webpack_require__.d(api_graphic_namespaceObject, "Rect", function() { return shape_Rect; });
__webpack_require__.d(api_graphic_namespaceObject, "Line", function() { return shape_Line; });
__webpack_require__.d(api_graphic_namespaceObject, "BezierCurve", function() { return shape_BezierCurve; });
__webpack_require__.d(api_graphic_namespaceObject, "Arc", function() { return shape_Arc; });
__webpack_require__.d(api_graphic_namespaceObject, "IncrementalDisplayable", function() { return graphic_IncrementalDisplayable; });
__webpack_require__.d(api_graphic_namespaceObject, "CompoundPath", function() { return graphic_CompoundPath; });
__webpack_require__.d(api_graphic_namespaceObject, "LinearGradient", function() { return graphic_LinearGradient; });
__webpack_require__.d(api_graphic_namespaceObject, "RadialGradient", function() { return graphic_RadialGradient; });
__webpack_require__.d(api_graphic_namespaceObject, "BoundingRect", function() { return core_BoundingRect; });

// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/format.js
var api_format_namespaceObject = {};
__webpack_require__.r(api_format_namespaceObject);
__webpack_require__.d(api_format_namespaceObject, "addCommas", function() { return addCommas; });
__webpack_require__.d(api_format_namespaceObject, "toCamelCase", function() { return toCamelCase; });
__webpack_require__.d(api_format_namespaceObject, "normalizeCssArray", function() { return normalizeCssArray; });
__webpack_require__.d(api_format_namespaceObject, "encodeHTML", function() { return encodeHTML; });
__webpack_require__.d(api_format_namespaceObject, "formatTpl", function() { return formatTpl; });
__webpack_require__.d(api_format_namespaceObject, "getTooltipMarker", function() { return getTooltipMarker; });
__webpack_require__.d(api_format_namespaceObject, "formatTime", function() { return formatTime; });
__webpack_require__.d(api_format_namespaceObject, "capitalFirst", function() { return capitalFirst; });
__webpack_require__.d(api_format_namespaceObject, "truncateText", function() { return truncateText; });
__webpack_require__.d(api_format_namespaceObject, "getTextRect", function() { return getTextRect; });

// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/util.js
var api_util_namespaceObject = {};
__webpack_require__.r(api_util_namespaceObject);
__webpack_require__.d(api_util_namespaceObject, "map", function() { return util["map"]; });
__webpack_require__.d(api_util_namespaceObject, "each", function() { return util["each"]; });
__webpack_require__.d(api_util_namespaceObject, "indexOf", function() { return util["indexOf"]; });
__webpack_require__.d(api_util_namespaceObject, "inherits", function() { return util["inherits"]; });
__webpack_require__.d(api_util_namespaceObject, "reduce", function() { return util["reduce"]; });
__webpack_require__.d(api_util_namespaceObject, "filter", function() { return util["filter"]; });
__webpack_require__.d(api_util_namespaceObject, "bind", function() { return util["bind"]; });
__webpack_require__.d(api_util_namespaceObject, "curry", function() { return util["curry"]; });
__webpack_require__.d(api_util_namespaceObject, "isArray", function() { return util["isArray"]; });
__webpack_require__.d(api_util_namespaceObject, "isString", function() { return util["isString"]; });
__webpack_require__.d(api_util_namespaceObject, "isObject", function() { return util["isObject"]; });
__webpack_require__.d(api_util_namespaceObject, "isFunction", function() { return util["isFunction"]; });
__webpack_require__.d(api_util_namespaceObject, "extend", function() { return util["extend"]; });
__webpack_require__.d(api_util_namespaceObject, "defaults", function() { return util["defaults"]; });
__webpack_require__.d(api_util_namespaceObject, "clone", function() { return util["clone"]; });
__webpack_require__.d(api_util_namespaceObject, "merge", function() { return util["merge"]; });

// CONCATENATED MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */

var extendStatics = function(d, b) {
    extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
    return extendStatics(d, b);
};

function __extends(d, b) {
    if (typeof b !== "function" && b !== null)
        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
    extendStatics(d, b);
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}

var __assign = function() {
    __assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    }
    return __assign.apply(this, arguments);
}

function __rest(s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
}

function __decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}

function __param(paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
}

function __metadata(metadataKey, metadataValue) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}

function __awaiter(thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
}

function __generator(thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
}

var __createBinding = Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
});

function __exportStar(m, o) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
}

function __values(o) {
    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
    if (m) return m.call(o);
    if (o && typeof o.length === "number") return {
        next: function () {
            if (o && i >= o.length) o = void 0;
            return { value: o && o[i++], done: !o };
        }
    };
    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

function __read(o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
}

/** @deprecated */
function __spread() {
    for (var ar = [], i = 0; i < arguments.length; i++)
        ar = ar.concat(__read(arguments[i]));
    return ar;
}

/** @deprecated */
function __spreadArrays() {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    for (var r = Array(s), k = 0, i = 0; i < il; i++)
        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
            r[k] = a[j];
    return r;
}

function __spreadArray(to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || from);
}

function __await(v) {
    return this instanceof __await ? (this.v = v, this) : new __await(v);
}

function __asyncGenerator(thisArg, _arguments, generator) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var g = generator.apply(thisArg, _arguments || []), i, q = [];
    return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
    function fulfill(value) { resume("next", value); }
    function reject(value) { resume("throw", value); }
    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}

function __asyncDelegator(o) {
    var i, p;
    return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}

function __asyncValues(o) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var m = o[Symbol.asyncIterator], i;
    return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}

function __makeTemplateObject(cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};

var __setModuleDefault = Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
};

function __importStar(mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
}

function __importDefault(mod) {
    return (mod && mod.__esModule) ? mod : { default: mod };
}

function __classPrivateFieldGet(receiver, state, kind, f) {
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}

function __classPrivateFieldSet(receiver, state, value, kind, f) {
    if (kind === "m") throw new TypeError("Private method is not writable");
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}

// EXTERNAL MODULE: ./node_modules/zrender/lib/core/env.js
var env = __webpack_require__(17);

// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
var util = __webpack_require__(0);

// CONCATENATED MODULE: ./node_modules/zrender/node_modules/tslib/tslib.es6.js
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */

var tslib_es6_extendStatics = function(d, b) {
    tslib_es6_extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
    return tslib_es6_extendStatics(d, b);
};

function tslib_es6_extends(d, b) {
    if (typeof b !== "function" && b !== null)
        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
    tslib_es6_extendStatics(d, b);
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}

var tslib_es6_assign = function() {
    tslib_es6_assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    }
    return tslib_es6_assign.apply(this, arguments);
}

function tslib_es6_rest(s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
}

function tslib_es6_decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}

function tslib_es6_param(paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
}

function tslib_es6_metadata(metadataKey, metadataValue) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}

function tslib_es6_awaiter(thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
}

function tslib_es6_generator(thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
}

var tslib_es6_createBinding = Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
});

function tslib_es6_exportStar(m, o) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) tslib_es6_createBinding(o, m, p);
}

function tslib_es6_values(o) {
    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
    if (m) return m.call(o);
    if (o && typeof o.length === "number") return {
        next: function () {
            if (o && i >= o.length) o = void 0;
            return { value: o && o[i++], done: !o };
        }
    };
    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

function tslib_es6_read(o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
}

/** @deprecated */
function tslib_es6_spread() {
    for (var ar = [], i = 0; i < arguments.length; i++)
        ar = ar.concat(tslib_es6_read(arguments[i]));
    return ar;
}

/** @deprecated */
function tslib_es6_spreadArrays() {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    for (var r = Array(s), k = 0, i = 0; i < il; i++)
        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
            r[k] = a[j];
    return r;
}

function tslib_es6_spreadArray(to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || from);
}

function tslib_es6_await(v) {
    return this instanceof tslib_es6_await ? (this.v = v, this) : new tslib_es6_await(v);
}

function tslib_es6_asyncGenerator(thisArg, _arguments, generator) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var g = generator.apply(thisArg, _arguments || []), i, q = [];
    return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
    function step(r) { r.value instanceof tslib_es6_await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
    function fulfill(value) { resume("next", value); }
    function reject(value) { resume("throw", value); }
    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}

function tslib_es6_asyncDelegator(o) {
    var i, p;
    return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: tslib_es6_await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}

function tslib_es6_asyncValues(o) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var m = o[Symbol.asyncIterator], i;
    return m ? m.call(o) : (o = typeof tslib_es6_values === "function" ? tslib_es6_values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}

function tslib_es6_makeTemplateObject(cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};

var tslib_es6_setModuleDefault = Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
};

function tslib_es6_importStar(mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) tslib_es6_createBinding(result, mod, k);
    tslib_es6_setModuleDefault(result, mod);
    return result;
}

function tslib_es6_importDefault(mod) {
    return (mod && mod.__esModule) ? mod : { default: mod };
}

function tslib_es6_classPrivateFieldGet(receiver, state, kind, f) {
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}

function tslib_es6_classPrivateFieldSet(receiver, state, value, kind, f) {
    if (kind === "m") throw new TypeError("Private method is not writable");
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/vector.js
function vector_create(x, y) {
    if (x == null) {
        x = 0;
    }
    if (y == null) {
        y = 0;
    }
    return [x, y];
}
function vector_copy(out, v) {
    out[0] = v[0];
    out[1] = v[1];
    return out;
}
function clone(v) {
    return [v[0], v[1]];
}
function set(out, a, b) {
    out[0] = a;
    out[1] = b;
    return out;
}
function vector_add(out, v1, v2) {
    out[0] = v1[0] + v2[0];
    out[1] = v1[1] + v2[1];
    return out;
}
function scaleAndAdd(out, v1, v2, a) {
    out[0] = v1[0] + v2[0] * a;
    out[1] = v1[1] + v2[1] * a;
    return out;
}
function sub(out, v1, v2) {
    out[0] = v1[0] - v2[0];
    out[1] = v1[1] - v2[1];
    return out;
}
function vector_len(v) {
    return Math.sqrt(lenSquare(v));
}
var vector_length = vector_len;
function lenSquare(v) {
    return v[0] * v[0] + v[1] * v[1];
}
var lengthSquare = lenSquare;
function vector_mul(out, v1, v2) {
    out[0] = v1[0] * v2[0];
    out[1] = v1[1] * v2[1];
    return out;
}
function div(out, v1, v2) {
    out[0] = v1[0] / v2[0];
    out[1] = v1[1] / v2[1];
    return out;
}
function dot(v1, v2) {
    return v1[0] * v2[0] + v1[1] * v2[1];
}
function vector_scale(out, v, s) {
    out[0] = v[0] * s;
    out[1] = v[1] * s;
    return out;
}
function normalize(out, v) {
    var d = vector_len(v);
    if (d === 0) {
        out[0] = 0;
        out[1] = 0;
    }
    else {
        out[0] = v[0] / d;
        out[1] = v[1] / d;
    }
    return out;
}
function vector_distance(v1, v2) {
    return Math.sqrt((v1[0] - v2[0]) * (v1[0] - v2[0])
        + (v1[1] - v2[1]) * (v1[1] - v2[1]));
}
var vector_dist = vector_distance;
function distanceSquare(v1, v2) {
    return (v1[0] - v2[0]) * (v1[0] - v2[0])
        + (v1[1] - v2[1]) * (v1[1] - v2[1]);
}
var distSquare = distanceSquare;
function negate(out, v) {
    out[0] = -v[0];
    out[1] = -v[1];
    return out;
}
function lerp(out, v1, v2, t) {
    out[0] = v1[0] + t * (v2[0] - v1[0]);
    out[1] = v1[1] + t * (v2[1] - v1[1]);
    return out;
}
function applyTransform(out, v, m) {
    var x = v[0];
    var y = v[1];
    out[0] = m[0] * x + m[2] * y + m[4];
    out[1] = m[1] * x + m[3] * y + m[5];
    return out;
}
function vector_min(out, v1, v2) {
    out[0] = Math.min(v1[0], v2[0]);
    out[1] = Math.min(v1[1], v2[1]);
    return out;
}
function vector_max(out, v1, v2) {
    out[0] = Math.max(v1[0], v2[0]);
    out[1] = Math.max(v1[1], v2[1]);
    return out;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/mixin/Draggable.js
var Param = (function () {
    function Param(target, e) {
        this.target = target;
        this.topTarget = e && e.topTarget;
    }
    return Param;
}());
var Draggable = (function () {
    function Draggable(handler) {
        this.handler = handler;
        handler.on('mousedown', this._dragStart, this);
        handler.on('mousemove', this._drag, this);
        handler.on('mouseup', this._dragEnd, this);
    }
    Draggable.prototype._dragStart = function (e) {
        var draggingTarget = e.target;
        while (draggingTarget && !draggingTarget.draggable) {
            draggingTarget = draggingTarget.parent || draggingTarget.__hostTarget;
        }
        if (draggingTarget) {
            this._draggingTarget = draggingTarget;
            draggingTarget.dragging = true;
            this._x = e.offsetX;
            this._y = e.offsetY;
            this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragstart', e.event);
        }
    };
    Draggable.prototype._drag = function (e) {
        var draggingTarget = this._draggingTarget;
        if (draggingTarget) {
            var x = e.offsetX;
            var y = e.offsetY;
            var dx = x - this._x;
            var dy = y - this._y;
            this._x = x;
            this._y = y;
            draggingTarget.drift(dx, dy, e);
            this.handler.dispatchToElement(new Param(draggingTarget, e), 'drag', e.event);
            var dropTarget = this.handler.findHover(x, y, draggingTarget).target;
            var lastDropTarget = this._dropTarget;
            this._dropTarget = dropTarget;
            if (draggingTarget !== dropTarget) {
                if (lastDropTarget && dropTarget !== lastDropTarget) {
                    this.handler.dispatchToElement(new Param(lastDropTarget, e), 'dragleave', e.event);
                }
                if (dropTarget && dropTarget !== lastDropTarget) {
                    this.handler.dispatchToElement(new Param(dropTarget, e), 'dragenter', e.event);
                }
            }
        }
    };
    Draggable.prototype._dragEnd = function (e) {
        var draggingTarget = this._draggingTarget;
        if (draggingTarget) {
            draggingTarget.dragging = false;
        }
        this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragend', e.event);
        if (this._dropTarget) {
            this.handler.dispatchToElement(new Param(this._dropTarget, e), 'drop', e.event);
        }
        this._draggingTarget = null;
        this._dropTarget = null;
    };
    return Draggable;
}());
/* harmony default export */ var mixin_Draggable = (Draggable);

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/Eventful.js
var Eventful = (function () {
    function Eventful(eventProcessors) {
        if (eventProcessors) {
            this._$eventProcessor = eventProcessors;
        }
    }
    Eventful.prototype.on = function (event, query, handler, context) {
        if (!this._$handlers) {
            this._$handlers = {};
        }
        var _h = this._$handlers;
        if (typeof query === 'function') {
            context = handler;
            handler = query;
            query = null;
        }
        if (!handler || !event) {
            return this;
        }
        var eventProcessor = this._$eventProcessor;
        if (query != null && eventProcessor && eventProcessor.normalizeQuery) {
            query = eventProcessor.normalizeQuery(query);
        }
        if (!_h[event]) {
            _h[event] = [];
        }
        for (var i = 0; i < _h[event].length; i++) {
            if (_h[event][i].h === handler) {
                return this;
            }
        }
        var wrap = {
            h: handler,
            query: query,
            ctx: (context || this),
            callAtLast: handler.zrEventfulCallAtLast
        };
        var lastIndex = _h[event].length - 1;
        var lastWrap = _h[event][lastIndex];
        (lastWrap && lastWrap.callAtLast)
            ? _h[event].splice(lastIndex, 0, wrap)
            : _h[event].push(wrap);
        return this;
    };
    Eventful.prototype.isSilent = function (eventName) {
        var _h = this._$handlers;
        return !_h || !_h[eventName] || !_h[eventName].length;
    };
    Eventful.prototype.off = function (eventType, handler) {
        var _h = this._$handlers;
        if (!_h) {
            return this;
        }
        if (!eventType) {
            this._$handlers = {};
            return this;
        }
        if (handler) {
            if (_h[eventType]) {
                var newList = [];
                for (var i = 0, l = _h[eventType].length; i < l; i++) {
                    if (_h[eventType][i].h !== handler) {
                        newList.push(_h[eventType][i]);
                    }
                }
                _h[eventType] = newList;
            }
            if (_h[eventType] && _h[eventType].length === 0) {
                delete _h[eventType];
            }
        }
        else {
            delete _h[eventType];
        }
        return this;
    };
    Eventful.prototype.trigger = function (eventType) {
        var args = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            args[_i - 1] = arguments[_i];
        }
        if (!this._$handlers) {
            return this;
        }
        var _h = this._$handlers[eventType];
        var eventProcessor = this._$eventProcessor;
        if (_h) {
            var argLen = args.length;
            var len = _h.length;
            for (var i = 0; i < len; i++) {
                var hItem = _h[i];
                if (eventProcessor
                    && eventProcessor.filter
                    && hItem.query != null
                    && !eventProcessor.filter(eventType, hItem.query)) {
                    continue;
                }
                switch (argLen) {
                    case 0:
                        hItem.h.call(hItem.ctx);
                        break;
                    case 1:
                        hItem.h.call(hItem.ctx, args[0]);
                        break;
                    case 2:
                        hItem.h.call(hItem.ctx, args[0], args[1]);
                        break;
                    default:
                        hItem.h.apply(hItem.ctx, args);
                        break;
                }
            }
        }
        eventProcessor && eventProcessor.afterTrigger
            && eventProcessor.afterTrigger(eventType);
        return this;
    };
    Eventful.prototype.triggerWithContext = function (type) {
        var args = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            args[_i - 1] = arguments[_i];
        }
        if (!this._$handlers) {
            return this;
        }
        var _h = this._$handlers[type];
        var eventProcessor = this._$eventProcessor;
        if (_h) {
            var argLen = args.length;
            var ctx = args[argLen - 1];
            var len = _h.length;
            for (var i = 0; i < len; i++) {
                var hItem = _h[i];
                if (eventProcessor
                    && eventProcessor.filter
                    && hItem.query != null
                    && !eventProcessor.filter(type, hItem.query)) {
                    continue;
                }
                switch (argLen) {
                    case 0:
                        hItem.h.call(ctx);
                        break;
                    case 1:
                        hItem.h.call(ctx, args[0]);
                        break;
                    case 2:
                        hItem.h.call(ctx, args[0], args[1]);
                        break;
                    default:
                        hItem.h.apply(ctx, args.slice(1, argLen - 1));
                        break;
                }
            }
        }
        eventProcessor && eventProcessor.afterTrigger
            && eventProcessor.afterTrigger(type);
        return this;
    };
    return Eventful;
}());
/* harmony default export */ var core_Eventful = (Eventful);

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/fourPointsTransform.js
var LN2 = Math.log(2);
function determinant(rows, rank, rowStart, rowMask, colMask, detCache) {
    var cacheKey = rowMask + '-' + colMask;
    var fullRank = rows.length;
    if (detCache.hasOwnProperty(cacheKey)) {
        return detCache[cacheKey];
    }
    if (rank === 1) {
        var colStart = Math.round(Math.log(((1 << fullRank) - 1) & ~colMask) / LN2);
        return rows[rowStart][colStart];
    }
    var subRowMask = rowMask | (1 << rowStart);
    var subRowStart = rowStart + 1;
    while (rowMask & (1 << subRowStart)) {
        subRowStart++;
    }
    var sum = 0;
    for (var j = 0, colLocalIdx = 0; j < fullRank; j++) {
        var colTag = 1 << j;
        if (!(colTag & colMask)) {
            sum += (colLocalIdx % 2 ? -1 : 1) * rows[rowStart][j]
                * determinant(rows, rank - 1, subRowStart, subRowMask, colMask | colTag, detCache);
            colLocalIdx++;
        }
    }
    detCache[cacheKey] = sum;
    return sum;
}
function buildTransformer(src, dest) {
    var mA = [
        [src[0], src[1], 1, 0, 0, 0, -dest[0] * src[0], -dest[0] * src[1]],
        [0, 0, 0, src[0], src[1], 1, -dest[1] * src[0], -dest[1] * src[1]],
        [src[2], src[3], 1, 0, 0, 0, -dest[2] * src[2], -dest[2] * src[3]],
        [0, 0, 0, src[2], src[3], 1, -dest[3] * src[2], -dest[3] * src[3]],
        [src[4], src[5], 1, 0, 0, 0, -dest[4] * src[4], -dest[4] * src[5]],
        [0, 0, 0, src[4], src[5], 1, -dest[5] * src[4], -dest[5] * src[5]],
        [src[6], src[7], 1, 0, 0, 0, -dest[6] * src[6], -dest[6] * src[7]],
        [0, 0, 0, src[6], src[7], 1, -dest[7] * src[6], -dest[7] * src[7]]
    ];
    var detCache = {};
    var det = determinant(mA, 8, 0, 0, 0, detCache);
    if (det === 0) {
        return;
    }
    var vh = [];
    for (var i = 0; i < 8; i++) {
        for (var j = 0; j < 8; j++) {
            vh[j] == null && (vh[j] = 0);
            vh[j] += ((i + j) % 2 ? -1 : 1)
                * determinant(mA, 7, i === 0 ? 1 : 0, 1 << i, 1 << j, detCache)
                / det * dest[i];
        }
    }
    return function (out, srcPointX, srcPointY) {
        var pk = srcPointX * vh[6] + srcPointY * vh[7] + 1;
        out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk;
        out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk;
    };
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/dom.js


var EVENT_SAVED_PROP = '___zrEVENTSAVED';
var _calcOut = [];
function transformLocalCoord(out, elFrom, elTarget, inX, inY) {
    return transformCoordWithViewport(_calcOut, elFrom, inX, inY, true)
        && transformCoordWithViewport(out, elTarget, _calcOut[0], _calcOut[1]);
}
function transformCoordWithViewport(out, el, inX, inY, inverse) {
    if (el.getBoundingClientRect && env["a" /* default */].domSupported && !isCanvasEl(el)) {
        var saved = el[EVENT_SAVED_PROP] || (el[EVENT_SAVED_PROP] = {});
        var markers = prepareCoordMarkers(el, saved);
        var transformer = preparePointerTransformer(markers, saved, inverse);
        if (transformer) {
            transformer(out, inX, inY);
            return true;
        }
    }
    return false;
}
function prepareCoordMarkers(el, saved) {
    var markers = saved.markers;
    if (markers) {
        return markers;
    }
    markers = saved.markers = [];
    var propLR = ['left', 'right'];
    var propTB = ['top', 'bottom'];
    for (var i = 0; i < 4; i++) {
        var marker = document.createElement('div');
        var stl = marker.style;
        var idxLR = i % 2;
        var idxTB = (i >> 1) % 2;
        stl.cssText = [
            'position: absolute',
            'visibility: hidden',
            'padding: 0',
            'margin: 0',
            'border-width: 0',
            'user-select: none',
            'width:0',
            'height:0',
            propLR[idxLR] + ':0',
            propTB[idxTB] + ':0',
            propLR[1 - idxLR] + ':auto',
            propTB[1 - idxTB] + ':auto',
            ''
        ].join('!important;');
        el.appendChild(marker);
        markers.push(marker);
    }
    return markers;
}
function preparePointerTransformer(markers, saved, inverse) {
    var transformerName = inverse ? 'invTrans' : 'trans';
    var transformer = saved[transformerName];
    var oldSrcCoords = saved.srcCoords;
    var srcCoords = [];
    var destCoords = [];
    var oldCoordTheSame = true;
    for (var i = 0; i < 4; i++) {
        var rect = markers[i].getBoundingClientRect();
        var ii = 2 * i;
        var x = rect.left;
        var y = rect.top;
        srcCoords.push(x, y);
        oldCoordTheSame = oldCoordTheSame && oldSrcCoords && x === oldSrcCoords[ii] && y === oldSrcCoords[ii + 1];
        destCoords.push(markers[i].offsetLeft, markers[i].offsetTop);
    }
    return (oldCoordTheSame && transformer)
        ? transformer
        : (saved.srcCoords = srcCoords,
            saved[transformerName] = inverse
                ? buildTransformer(destCoords, srcCoords)
                : buildTransformer(srcCoords, destCoords));
}
function isCanvasEl(el) {
    return el.nodeName.toUpperCase() === 'CANVAS';
}
var replaceReg = /([&<>"'])/g;
var replaceMap = {
    '&': '&amp;',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    '\'': '&#39;'
};
function encodeHTML(source) {
    return source == null
        ? ''
        : (source + '').replace(replaceReg, function (str, c) {
            return replaceMap[c];
        });
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/event.js



var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
var event_calcOut = [];
var firefoxNotSupportOffsetXY = env["a" /* default */].browser.firefox
    && +env["a" /* default */].browser.version.split('.')[0] < 39;
function clientToLocal(el, e, out, calculate) {
    out = out || {};
    if (calculate) {
        calculateZrXY(el, e, out);
    }
    else if (firefoxNotSupportOffsetXY
        && e.layerX != null
        && e.layerX !== e.offsetX) {
        out.zrX = e.layerX;
        out.zrY = e.layerY;
    }
    else if (e.offsetX != null) {
        out.zrX = e.offsetX;
        out.zrY = e.offsetY;
    }
    else {
        calculateZrXY(el, e, out);
    }
    return out;
}
function calculateZrXY(el, e, out) {
    if (env["a" /* default */].domSupported && el.getBoundingClientRect) {
        var ex = e.clientX;
        var ey = e.clientY;
        if (isCanvasEl(el)) {
            var box = el.getBoundingClientRect();
            out.zrX = ex - box.left;
            out.zrY = ey - box.top;
            return;
        }
        else {
            if (transformCoordWithViewport(event_calcOut, el, ex, ey)) {
                out.zrX = event_calcOut[0];
                out.zrY = event_calcOut[1];
                return;
            }
        }
    }
    out.zrX = out.zrY = 0;
}
function getNativeEvent(e) {
    return e
        || window.event;
}
function normalizeEvent(el, e, calculate) {
    e = getNativeEvent(e);
    if (e.zrX != null) {
        return e;
    }
    var eventType = e.type;
    var isTouch = eventType && eventType.indexOf('touch') >= 0;
    if (!isTouch) {
        clientToLocal(el, e, e, calculate);
        var wheelDelta = getWheelDeltaMayPolyfill(e);
        e.zrDelta = wheelDelta ? wheelDelta / 120 : -(e.detail || 0) / 3;
    }
    else {
        var touch = eventType !== 'touchend'
            ? e.targetTouches[0]
            : e.changedTouches[0];
        touch && clientToLocal(el, touch, e, calculate);
    }
    var button = e.button;
    if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) {
        e.which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0)));
    }
    return e;
}
function getWheelDeltaMayPolyfill(e) {
    var rawWheelDelta = e.wheelDelta;
    if (rawWheelDelta) {
        return rawWheelDelta;
    }
    var deltaX = e.deltaX;
    var deltaY = e.deltaY;
    if (deltaX == null || deltaY == null) {
        return rawWheelDelta;
    }
    var delta = deltaY !== 0 ? Math.abs(deltaY) : Math.abs(deltaX);
    var sign = deltaY > 0 ? -1
        : deltaY < 0 ? 1
            : deltaX > 0 ? -1
                : 1;
    return 3 * delta * sign;
}
function addEventListener(el, name, handler, opt) {
    el.addEventListener(name, handler, opt);
}
function removeEventListener(el, name, handler, opt) {
    el.removeEventListener(name, handler, opt);
}
var stop = function (e) {
    e.preventDefault();
    e.stopPropagation();
    e.cancelBubble = true;
};
function isMiddleOrRightButtonOnMouseUpDown(e) {
    return e.which === 2 || e.which === 3;
}


// CONCATENATED MODULE: ./node_modules/zrender/lib/core/GestureMgr.js

var GestureMgr_GestureMgr = (function () {
    function GestureMgr() {
        this._track = [];
    }
    GestureMgr.prototype.recognize = function (event, target, root) {
        this._doTrack(event, target, root);
        return this._recognize(event);
    };
    GestureMgr.prototype.clear = function () {
        this._track.length = 0;
        return this;
    };
    GestureMgr.prototype._doTrack = function (event, target, root) {
        var touches = event.touches;
        if (!touches) {
            return;
        }
        var trackItem = {
            points: [],
            touches: [],
            target: target,
            event: event
        };
        for (var i = 0, len = touches.length; i < len; i++) {
            var touch = touches[i];
            var pos = clientToLocal(root, touch, {});
            trackItem.points.push([pos.zrX, pos.zrY]);
            trackItem.touches.push(touch);
        }
        this._track.push(trackItem);
    };
    GestureMgr.prototype._recognize = function (event) {
        for (var eventName in recognizers) {
            if (recognizers.hasOwnProperty(eventName)) {
                var gestureInfo = recognizers[eventName](this._track, event);
                if (gestureInfo) {
                    return gestureInfo;
                }
            }
        }
    };
    return GestureMgr;
}());

function GestureMgr_dist(pointPair) {
    var dx = pointPair[1][0] - pointPair[0][0];
    var dy = pointPair[1][1] - pointPair[0][1];
    return Math.sqrt(dx * dx + dy * dy);
}
function GestureMgr_center(pointPair) {
    return [
        (pointPair[0][0] + pointPair[1][0]) / 2,
        (pointPair[0][1] + pointPair[1][1]) / 2
    ];
}
var recognizers = {
    pinch: function (tracks, event) {
        var trackLen = tracks.length;
        if (!trackLen) {
            return;
        }
        var pinchEnd = (tracks[trackLen - 1] || {}).points;
        var pinchPre = (tracks[trackLen - 2] || {}).points || pinchEnd;
        if (pinchPre
            && pinchPre.length > 1
            && pinchEnd
            && pinchEnd.length > 1) {
            var pinchScale = GestureMgr_dist(pinchEnd) / GestureMgr_dist(pinchPre);
            !isFinite(pinchScale) && (pinchScale = 1);
            event.pinchScale = pinchScale;
            var pinchCenter = GestureMgr_center(pinchEnd);
            event.pinchX = pinchCenter[0];
            event.pinchY = pinchCenter[1];
            return {
                type: 'pinch',
                target: tracks[0].target,
                event: event
            };
        }
    }
};

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/matrix.js
function matrix_create() {
    return [1, 0, 0, 1, 0, 0];
}
function identity(out) {
    out[0] = 1;
    out[1] = 0;
    out[2] = 0;
    out[3] = 1;
    out[4] = 0;
    out[5] = 0;
    return out;
}
function matrix_copy(out, m) {
    out[0] = m[0];
    out[1] = m[1];
    out[2] = m[2];
    out[3] = m[3];
    out[4] = m[4];
    out[5] = m[5];
    return out;
}
function matrix_mul(out, m1, m2) {
    var out0 = m1[0] * m2[0] + m1[2] * m2[1];
    var out1 = m1[1] * m2[0] + m1[3] * m2[1];
    var out2 = m1[0] * m2[2] + m1[2] * m2[3];
    var out3 = m1[1] * m2[2] + m1[3] * m2[3];
    var out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4];
    var out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5];
    out[0] = out0;
    out[1] = out1;
    out[2] = out2;
    out[3] = out3;
    out[4] = out4;
    out[5] = out5;
    return out;
}
function matrix_translate(out, a, v) {
    out[0] = a[0];
    out[1] = a[1];
    out[2] = a[2];
    out[3] = a[3];
    out[4] = a[4] + v[0];
    out[5] = a[5] + v[1];
    return out;
}
function matrix_rotate(out, a, rad, pivot) {
    if (pivot === void 0) { pivot = [0, 0]; }
    var aa = a[0];
    var ac = a[2];
    var atx = a[4];
    var ab = a[1];
    var ad = a[3];
    var aty = a[5];
    var st = Math.sin(rad);
    var ct = Math.cos(rad);
    out[0] = aa * ct + ab * st;
    out[1] = -aa * st + ab * ct;
    out[2] = ac * ct + ad * st;
    out[3] = -ac * st + ct * ad;
    out[4] = ct * (atx - pivot[0]) + st * (aty - pivot[1]) + pivot[0];
    out[5] = ct * (aty - pivot[1]) - st * (atx - pivot[0]) + pivot[1];
    return out;
}
function matrix_scale(out, a, v) {
    var vx = v[0];
    var vy = v[1];
    out[0] = a[0] * vx;
    out[1] = a[1] * vy;
    out[2] = a[2] * vx;
    out[3] = a[3] * vy;
    out[4] = a[4] * vx;
    out[5] = a[5] * vy;
    return out;
}
function matrix_invert(out, a) {
    var aa = a[0];
    var ac = a[2];
    var atx = a[4];
    var ab = a[1];
    var ad = a[3];
    var aty = a[5];
    var det = aa * ad - ab * ac;
    if (!det) {
        return null;
    }
    det = 1.0 / det;
    out[0] = ad * det;
    out[1] = -ab * det;
    out[2] = -ac * det;
    out[3] = aa * det;
    out[4] = (ac * aty - ad * atx) * det;
    out[5] = (ab * atx - aa * aty) * det;
    return out;
}
function matrix_clone(a) {
    var b = matrix_create();
    matrix_copy(b, a);
    return b;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/Point.js
var Point = (function () {
    function Point(x, y) {
        this.x = x || 0;
        this.y = y || 0;
    }
    Point.prototype.copy = function (other) {
        this.x = other.x;
        this.y = other.y;
        return this;
    };
    Point.prototype.clone = function () {
        return new Point(this.x, this.y);
    };
    Point.prototype.set = function (x, y) {
        this.x = x;
        this.y = y;
        return this;
    };
    Point.prototype.equal = function (other) {
        return other.x === this.x && other.y === this.y;
    };
    Point.prototype.add = function (other) {
        this.x += other.x;
        this.y += other.y;
        return this;
    };
    Point.prototype.scale = function (scalar) {
        this.x *= scalar;
        this.y *= scalar;
    };
    Point.prototype.scaleAndAdd = function (other, scalar) {
        this.x += other.x * scalar;
        this.y += other.y * scalar;
    };
    Point.prototype.sub = function (other) {
        this.x -= other.x;
        this.y -= other.y;
        return this;
    };
    Point.prototype.dot = function (other) {
        return this.x * other.x + this.y * other.y;
    };
    Point.prototype.len = function () {
        return Math.sqrt(this.x * this.x + this.y * this.y);
    };
    Point.prototype.lenSquare = function () {
        return this.x * this.x + this.y * this.y;
    };
    Point.prototype.normalize = function () {
        var len = this.len();
        this.x /= len;
        this.y /= len;
        return this;
    };
    Point.prototype.distance = function (other) {
        var dx = this.x - other.x;
        var dy = this.y - other.y;
        return Math.sqrt(dx * dx + dy * dy);
    };
    Point.prototype.distanceSquare = function (other) {
        var dx = this.x - other.x;
        var dy = this.y - other.y;
        return dx * dx + dy * dy;
    };
    Point.prototype.negate = function () {
        this.x = -this.x;
        this.y = -this.y;
        return this;
    };
    Point.prototype.transform = function (m) {
        if (!m) {
            return;
        }
        var x = this.x;
        var y = this.y;
        this.x = m[0] * x + m[2] * y + m[4];
        this.y = m[1] * x + m[3] * y + m[5];
        return this;
    };
    Point.prototype.toArray = function (out) {
        out[0] = this.x;
        out[1] = this.y;
        return out;
    };
    Point.prototype.fromArray = function (input) {
        this.x = input[0];
        this.y = input[1];
    };
    Point.set = function (p, x, y) {
        p.x = x;
        p.y = y;
    };
    Point.copy = function (p, p2) {
        p.x = p2.x;
        p.y = p2.y;
    };
    Point.len = function (p) {
        return Math.sqrt(p.x * p.x + p.y * p.y);
    };
    Point.lenSquare = function (p) {
        return p.x * p.x + p.y * p.y;
    };
    Point.dot = function (p0, p1) {
        return p0.x * p1.x + p0.y * p1.y;
    };
    Point.add = function (out, p0, p1) {
        out.x = p0.x + p1.x;
        out.y = p0.y + p1.y;
    };
    Point.sub = function (out, p0, p1) {
        out.x = p0.x - p1.x;
        out.y = p0.y - p1.y;
    };
    Point.scale = function (out, p0, scalar) {
        out.x = p0.x * scalar;
        out.y = p0.y * scalar;
    };
    Point.scaleAndAdd = function (out, p0, p1, scalar) {
        out.x = p0.x + p1.x * scalar;
        out.y = p0.y + p1.y * scalar;
    };
    Point.lerp = function (out, p0, p1, t) {
        var onet = 1 - t;
        out.x = onet * p0.x + t * p1.x;
        out.y = onet * p0.y + t * p1.y;
    };
    return Point;
}());
/* harmony default export */ var core_Point = (Point);

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/BoundingRect.js


var BoundingRect_mathMin = Math.min;
var BoundingRect_mathMax = Math.max;
var BoundingRect_lt = new core_Point();
var BoundingRect_rb = new core_Point();
var lb = new core_Point();
var rt = new core_Point();
var BoundingRect_minTv = new core_Point();
var BoundingRect_maxTv = new core_Point();
var BoundingRect_BoundingRect = (function () {
    function BoundingRect(x, y, width, height) {
        if (width < 0) {
            x = x + width;
            width = -width;
        }
        if (height < 0) {
            y = y + height;
            height = -height;
        }
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }
    BoundingRect.prototype.union = function (other) {
        var x = BoundingRect_mathMin(other.x, this.x);
        var y = BoundingRect_mathMin(other.y, this.y);
        if (isFinite(this.x) && isFinite(this.width)) {
            this.width = BoundingRect_mathMax(other.x + other.width, this.x + this.width) - x;
        }
        else {
            this.width = other.width;
        }
        if (isFinite(this.y) && isFinite(this.height)) {
            this.height = BoundingRect_mathMax(other.y + other.height, this.y + this.height) - y;
        }
        else {
            this.height = other.height;
        }
        this.x = x;
        this.y = y;
    };
    BoundingRect.prototype.applyTransform = function (m) {
        BoundingRect.applyTransform(this, this, m);
    };
    BoundingRect.prototype.calculateTransform = function (b) {
        var a = this;
        var sx = b.width / a.width;
        var sy = b.height / a.height;
        var m = matrix_create();
        matrix_translate(m, m, [-a.x, -a.y]);
        matrix_scale(m, m, [sx, sy]);
        matrix_translate(m, m, [b.x, b.y]);
        return m;
    };
    BoundingRect.prototype.intersect = function (b, mtv) {
        if (!b) {
            return false;
        }
        if (!(b instanceof BoundingRect)) {
            b = BoundingRect.create(b);
        }
        var a = this;
        var ax0 = a.x;
        var ax1 = a.x + a.width;
        var ay0 = a.y;
        var ay1 = a.y + a.height;
        var bx0 = b.x;
        var bx1 = b.x + b.width;
        var by0 = b.y;
        var by1 = b.y + b.height;
        var overlap = !(ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0);
        if (mtv) {
            var dMin = Infinity;
            var dMax = 0;
            var d0 = Math.abs(ax1 - bx0);
            var d1 = Math.abs(bx1 - ax0);
            var d2 = Math.abs(ay1 - by0);
            var d3 = Math.abs(by1 - ay0);
            var dx = Math.min(d0, d1);
            var dy = Math.min(d2, d3);
            if (ax1 < bx0 || bx1 < ax0) {
                if (dx > dMax) {
                    dMax = dx;
                    if (d0 < d1) {
                        core_Point.set(BoundingRect_maxTv, -d0, 0);
                    }
                    else {
                        core_Point.set(BoundingRect_maxTv, d1, 0);
                    }
                }
            }
            else {
                if (dx < dMin) {
                    dMin = dx;
                    if (d0 < d1) {
                        core_Point.set(BoundingRect_minTv, d0, 0);
                    }
                    else {
                        core_Point.set(BoundingRect_minTv, -d1, 0);
                    }
                }
            }
            if (ay1 < by0 || by1 < ay0) {
                if (dy > dMax) {
                    dMax = dy;
                    if (d2 < d3) {
                        core_Point.set(BoundingRect_maxTv, 0, -d2);
                    }
                    else {
                        core_Point.set(BoundingRect_maxTv, 0, d3);
                    }
                }
            }
            else {
                if (dx < dMin) {
                    dMin = dx;
                    if (d2 < d3) {
                        core_Point.set(BoundingRect_minTv, 0, d2);
                    }
                    else {
                        core_Point.set(BoundingRect_minTv, 0, -d3);
                    }
                }
            }
        }
        if (mtv) {
            core_Point.copy(mtv, overlap ? BoundingRect_minTv : BoundingRect_maxTv);
        }
        return overlap;
    };
    BoundingRect.prototype.contain = function (x, y) {
        var rect = this;
        return x >= rect.x
            && x <= (rect.x + rect.width)
            && y >= rect.y
            && y <= (rect.y + rect.height);
    };
    BoundingRect.prototype.clone = function () {
        return new BoundingRect(this.x, this.y, this.width, this.height);
    };
    BoundingRect.prototype.copy = function (other) {
        BoundingRect.copy(this, other);
    };
    BoundingRect.prototype.plain = function () {
        return {
            x: this.x,
            y: this.y,
            width: this.width,
            height: this.height
        };
    };
    BoundingRect.prototype.isFinite = function () {
        return isFinite(this.x)
            && isFinite(this.y)
            && isFinite(this.width)
            && isFinite(this.height);
    };
    BoundingRect.prototype.isZero = function () {
        return this.width === 0 || this.height === 0;
    };
    BoundingRect.create = function (rect) {
        return new BoundingRect(rect.x, rect.y, rect.width, rect.height);
    };
    BoundingRect.copy = function (target, source) {
        target.x = source.x;
        target.y = source.y;
        target.width = source.width;
        target.height = source.height;
    };
    BoundingRect.applyTransform = function (target, source, m) {
        if (!m) {
            if (target !== source) {
                BoundingRect.copy(target, source);
            }
            return;
        }
        if (m[1] < 1e-5 && m[1] > -1e-5 && m[2] < 1e-5 && m[2] > -1e-5) {
            var sx = m[0];
            var sy = m[3];
            var tx = m[4];
            var ty = m[5];
            target.x = source.x * sx + tx;
            target.y = source.y * sy + ty;
            target.width = source.width * sx;
            target.height = source.height * sy;
            if (target.width < 0) {
                target.x += target.width;
                target.width = -target.width;
            }
            if (target.height < 0) {
                target.y += target.height;
                target.height = -target.height;
            }
            return;
        }
        BoundingRect_lt.x = lb.x = source.x;
        BoundingRect_lt.y = rt.y = source.y;
        BoundingRect_rb.x = rt.x = source.x + source.width;
        BoundingRect_rb.y = lb.y = source.y + source.height;
        BoundingRect_lt.transform(m);
        rt.transform(m);
        BoundingRect_rb.transform(m);
        lb.transform(m);
        target.x = BoundingRect_mathMin(BoundingRect_lt.x, BoundingRect_rb.x, lb.x, rt.x);
        target.y = BoundingRect_mathMin(BoundingRect_lt.y, BoundingRect_rb.y, lb.y, rt.y);
        var maxX = BoundingRect_mathMax(BoundingRect_lt.x, BoundingRect_rb.x, lb.x, rt.x);
        var maxY = BoundingRect_mathMax(BoundingRect_lt.y, BoundingRect_rb.y, lb.y, rt.y);
        target.width = maxX - target.x;
        target.height = maxY - target.y;
    };
    return BoundingRect;
}());
/* harmony default export */ var core_BoundingRect = (BoundingRect_BoundingRect);

// CONCATENATED MODULE: ./node_modules/zrender/lib/Handler.js








var SILENT = 'silent';
function makeEventPacket(eveType, targetInfo, event) {
    return {
        type: eveType,
        event: event,
        target: targetInfo.target,
        topTarget: targetInfo.topTarget,
        cancelBubble: false,
        offsetX: event.zrX,
        offsetY: event.zrY,
        gestureEvent: event.gestureEvent,
        pinchX: event.pinchX,
        pinchY: event.pinchY,
        pinchScale: event.pinchScale,
        wheelDelta: event.zrDelta,
        zrByTouch: event.zrByTouch,
        which: event.which,
        stop: stopEvent
    };
}
function stopEvent() {
    stop(this.event);
}
var Handler_EmptyProxy = (function (_super) {
    tslib_es6_extends(EmptyProxy, _super);
    function EmptyProxy() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.handler = null;
        return _this;
    }
    EmptyProxy.prototype.dispose = function () { };
    EmptyProxy.prototype.setCursor = function () { };
    return EmptyProxy;
}(core_Eventful));
var HoveredResult = (function () {
    function HoveredResult(x, y) {
        this.x = x;
        this.y = y;
    }
    return HoveredResult;
}());
var handlerNames = [
    'click', 'dblclick', 'mousewheel', 'mouseout',
    'mouseup', 'mousedown', 'mousemove', 'contextmenu'
];
var Handler_tmpRect = new core_BoundingRect(0, 0, 0, 0);
var Handler_Handler = (function (_super) {
    tslib_es6_extends(Handler, _super);
    function Handler(storage, painter, proxy, painterRoot, pointerSize) {
        var _this = _super.call(this) || this;
        _this._hovered = new HoveredResult(0, 0);
        _this.storage = storage;
        _this.painter = painter;
        _this.painterRoot = painterRoot;
        _this._pointerSize = pointerSize;
        proxy = proxy || new Handler_EmptyProxy();
        _this.proxy = null;
        _this.setHandlerProxy(proxy);
        _this._draggingMgr = new mixin_Draggable(_this);
        return _this;
    }
    Handler.prototype.setHandlerProxy = function (proxy) {
        if (this.proxy) {
            this.proxy.dispose();
        }
        if (proxy) {
            util["each"](handlerNames, function (name) {
                proxy.on && proxy.on(name, this[name], this);
            }, this);
            proxy.handler = this;
        }
        this.proxy = proxy;
    };
    Handler.prototype.mousemove = function (event) {
        var x = event.zrX;
        var y = event.zrY;
        var isOutside = isOutsideBoundary(this, x, y);
        var lastHovered = this._hovered;
        var lastHoveredTarget = lastHovered.target;
        if (lastHoveredTarget && !lastHoveredTarget.__zr) {
            lastHovered = this.findHover(lastHovered.x, lastHovered.y);
            lastHoveredTarget = lastHovered.target;
        }
        var hovered = this._hovered = isOutside ? new HoveredResult(x, y) : this.findHover(x, y);
        var hoveredTarget = hovered.target;
        var proxy = this.proxy;
        proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : 'default');
        if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) {
            this.dispatchToElement(lastHovered, 'mouseout', event);
        }
        this.dispatchToElement(hovered, 'mousemove', event);
        if (hoveredTarget && hoveredTarget !== lastHoveredTarget) {
            this.dispatchToElement(hovered, 'mouseover', event);
        }
    };
    Handler.prototype.mouseout = function (event) {
        var eventControl = event.zrEventControl;
        if (eventControl !== 'only_globalout') {
            this.dispatchToElement(this._hovered, 'mouseout', event);
        }
        if (eventControl !== 'no_globalout') {
            this.trigger('globalout', { type: 'globalout', event: event });
        }
    };
    Handler.prototype.resize = function () {
        this._hovered = new HoveredResult(0, 0);
    };
    Handler.prototype.dispatch = function (eventName, eventArgs) {
        var handler = this[eventName];
        handler && handler.call(this, eventArgs);
    };
    Handler.prototype.dispose = function () {
        this.proxy.dispose();
        this.storage = null;
        this.proxy = null;
        this.painter = null;
    };
    Handler.prototype.setCursorStyle = function (cursorStyle) {
        var proxy = this.proxy;
        proxy.setCursor && proxy.setCursor(cursorStyle);
    };
    Handler.prototype.dispatchToElement = function (targetInfo, eventName, event) {
        targetInfo = targetInfo || {};
        var el = targetInfo.target;
        if (el && el.silent) {
            return;
        }
        var eventKey = ('on' + eventName);
        var eventPacket = makeEventPacket(eventName, targetInfo, event);
        while (el) {
            el[eventKey]
                && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket));
            el.trigger(eventName, eventPacket);
            el = el.__hostTarget ? el.__hostTarget : el.parent;
            if (eventPacket.cancelBubble) {
                break;
            }
        }
        if (!eventPacket.cancelBubble) {
            this.trigger(eventName, eventPacket);
            if (this.painter && this.painter.eachOtherLayer) {
                this.painter.eachOtherLayer(function (layer) {
                    if (typeof (layer[eventKey]) === 'function') {
                        layer[eventKey].call(layer, eventPacket);
                    }
                    if (layer.trigger) {
                        layer.trigger(eventName, eventPacket);
                    }
                });
            }
        }
    };
    Handler.prototype.findHover = function (x, y, exclude) {
        var list = this.storage.getDisplayList();
        var out = new HoveredResult(x, y);
        setHoverTarget(list, out, x, y, exclude);
        if (this._pointerSize && !out.target) {
            var candidates = [];
            var pointerSize = this._pointerSize;
            var targetSizeHalf = pointerSize / 2;
            var pointerRect = new core_BoundingRect(x - targetSizeHalf, y - targetSizeHalf, pointerSize, pointerSize);
            for (var i = list.length - 1; i >= 0; i--) {
                var el = list[i];
                if (el !== exclude
                    && !el.ignore
                    && !el.ignoreCoarsePointer
                    && (!el.parent || !el.parent.ignoreCoarsePointer)) {
                    Handler_tmpRect.copy(el.getBoundingRect());
                    if (el.transform) {
                        Handler_tmpRect.applyTransform(el.transform);
                    }
                    if (Handler_tmpRect.intersect(pointerRect)) {
                        candidates.push(el);
                    }
                }
            }
            if (candidates.length) {
                var rStep = 4;
                var thetaStep = Math.PI / 12;
                var PI2 = Math.PI * 2;
                for (var r = 0; r < targetSizeHalf; r += rStep) {
                    for (var theta = 0; theta < PI2; theta += thetaStep) {
                        var x1 = x + r * Math.cos(theta);
                        var y1 = y + r * Math.sin(theta);
                        setHoverTarget(candidates, out, x1, y1, exclude);
                        if (out.target) {
                            return out;
                        }
                    }
                }
            }
        }
        return out;
    };
    Handler.prototype.processGesture = function (event, stage) {
        if (!this._gestureMgr) {
            this._gestureMgr = new GestureMgr_GestureMgr();
        }
        var gestureMgr = this._gestureMgr;
        stage === 'start' && gestureMgr.clear();
        var gestureInfo = gestureMgr.recognize(event, this.findHover(event.zrX, event.zrY, null).target, this.proxy.dom);
        stage === 'end' && gestureMgr.clear();
        if (gestureInfo) {
            var type = gestureInfo.type;
            event.gestureEvent = type;
            var res = new HoveredResult();
            res.target = gestureInfo.target;
            this.dispatchToElement(res, type, gestureInfo.event);
        }
    };
    return Handler;
}(core_Eventful));
util["each"](['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) {
    Handler_Handler.prototype[name] = function (event) {
        var x = event.zrX;
        var y = event.zrY;
        var isOutside = isOutsideBoundary(this, x, y);
        var hovered;
        var hoveredTarget;
        if (name !== 'mouseup' || !isOutside) {
            hovered = this.findHover(x, y);
            hoveredTarget = hovered.target;
        }
        if (name === 'mousedown') {
            this._downEl = hoveredTarget;
            this._downPoint = [event.zrX, event.zrY];
            this._upEl = hoveredTarget;
        }
        else if (name === 'mouseup') {
            this._upEl = hoveredTarget;
        }
        else if (name === 'click') {
            if (this._downEl !== this._upEl
                || !this._downPoint
                || vector_dist(this._downPoint, [event.zrX, event.zrY]) > 4) {
                return;
            }
            this._downPoint = null;
        }
        this.dispatchToElement(hovered, name, event);
    };
});
function isHover(displayable, x, y) {
    if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {
        var el = displayable;
        var isSilent = void 0;
        var ignoreClip = false;
        while (el) {
            if (el.ignoreClip) {
                ignoreClip = true;
            }
            if (!ignoreClip) {
                var clipPath = el.getClipPath();
                if (clipPath && !clipPath.contain(x, y)) {
                    return false;
                }
            }
            if (el.silent) {
                isSilent = true;
            }
            var hostEl = el.__hostTarget;
            el = hostEl ? hostEl : el.parent;
        }
        return isSilent ? SILENT : true;
    }
    return false;
}
function setHoverTarget(list, out, x, y, exclude) {
    for (var i = list.length - 1; i >= 0; i--) {
        var el = list[i];
        var hoverCheckResult = void 0;
        if (el !== exclude
            && !el.ignore
            && (hoverCheckResult = isHover(el, x, y))) {
            !out.topTarget && (out.topTarget = el);
            if (hoverCheckResult !== SILENT) {
                out.target = el;
                break;
            }
        }
    }
}
function isOutsideBoundary(handlerInstance, x, y) {
    var painter = handlerInstance.painter;
    return x < 0 || x > painter.getWidth() || y < 0 || y > painter.getHeight();
}
/* harmony default export */ var lib_Handler = (Handler_Handler);

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/timsort.js
var DEFAULT_MIN_MERGE = 32;
var DEFAULT_MIN_GALLOPING = 7;
function minRunLength(n) {
    var r = 0;
    while (n >= DEFAULT_MIN_MERGE) {
        r |= n & 1;
        n >>= 1;
    }
    return n + r;
}
function makeAscendingRun(array, lo, hi, compare) {
    var runHi = lo + 1;
    if (runHi === hi) {
        return 1;
    }
    if (compare(array[runHi++], array[lo]) < 0) {
        while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {
            runHi++;
        }
        reverseRun(array, lo, runHi);
    }
    else {
        while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {
            runHi++;
        }
    }
    return runHi - lo;
}
function reverseRun(array, lo, hi) {
    hi--;
    while (lo < hi) {
        var t = array[lo];
        array[lo++] = array[hi];
        array[hi--] = t;
    }
}
function binaryInsertionSort(array, lo, hi, start, compare) {
    if (start === lo) {
        start++;
    }
    for (; start < hi; start++) {
        var pivot = array[start];
        var left = lo;
        var right = start;
        var mid;
        while (left < right) {
            mid = left + right >>> 1;
            if (compare(pivot, array[mid]) < 0) {
                right = mid;
            }
            else {
                left = mid + 1;
            }
        }
        var n = start - left;
        switch (n) {
            case 3:
                array[left + 3] = array[left + 2];
            case 2:
                array[left + 2] = array[left + 1];
            case 1:
                array[left + 1] = array[left];
                break;
            default:
                while (n > 0) {
                    array[left + n] = array[left + n - 1];
                    n--;
                }
        }
        array[left] = pivot;
    }
}
function gallopLeft(value, array, start, length, hint, compare) {
    var lastOffset = 0;
    var maxOffset = 0;
    var offset = 1;
    if (compare(value, array[start + hint]) > 0) {
        maxOffset = length - hint;
        while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {
            lastOffset = offset;
            offset = (offset << 1) + 1;
            if (offset <= 0) {
                offset = maxOffset;
            }
        }
        if (offset > maxOffset) {
            offset = maxOffset;
        }
        lastOffset += hint;
        offset += hint;
    }
    else {
        maxOffset = hint + 1;
        while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {
            lastOffset = offset;
            offset = (offset << 1) + 1;
            if (offset <= 0) {
                offset = maxOffset;
            }
        }
        if (offset > maxOffset) {
            offset = maxOffset;
        }
        var tmp = lastOffset;
        lastOffset = hint - offset;
        offset = hint - tmp;
    }
    lastOffset++;
    while (lastOffset < offset) {
        var m = lastOffset + (offset - lastOffset >>> 1);
        if (compare(value, array[start + m]) > 0) {
            lastOffset = m + 1;
        }
        else {
            offset = m;
        }
    }
    return offset;
}
function gallopRight(value, array, start, length, hint, compare) {
    var lastOffset = 0;
    var maxOffset = 0;
    var offset = 1;
    if (compare(value, array[start + hint]) < 0) {
        maxOffset = hint + 1;
        while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {
            lastOffset = offset;
            offset = (offset << 1) + 1;
            if (offset <= 0) {
                offset = maxOffset;
            }
        }
        if (offset > maxOffset) {
            offset = maxOffset;
        }
        var tmp = lastOffset;
        lastOffset = hint - offset;
        offset = hint - tmp;
    }
    else {
        maxOffset = length - hint;
        while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {
            lastOffset = offset;
            offset = (offset << 1) + 1;
            if (offset <= 0) {
                offset = maxOffset;
            }
        }
        if (offset > maxOffset) {
            offset = maxOffset;
        }
        lastOffset += hint;
        offset += hint;
    }
    lastOffset++;
    while (lastOffset < offset) {
        var m = lastOffset + (offset - lastOffset >>> 1);
        if (compare(value, array[start + m]) < 0) {
            offset = m;
        }
        else {
            lastOffset = m + 1;
        }
    }
    return offset;
}
function TimSort(array, compare) {
    var minGallop = DEFAULT_MIN_GALLOPING;
    var runStart;
    var runLength;
    var stackSize = 0;
    var tmp = [];
    runStart = [];
    runLength = [];
    function pushRun(_runStart, _runLength) {
        runStart[stackSize] = _runStart;
        runLength[stackSize] = _runLength;
        stackSize += 1;
    }
    function mergeRuns() {
        while (stackSize > 1) {
            var n = stackSize - 2;
            if ((n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1])
                || (n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1])) {
                if (runLength[n - 1] < runLength[n + 1]) {
                    n--;
                }
            }
            else if (runLength[n] > runLength[n + 1]) {
                break;
            }
            mergeAt(n);
        }
    }
    function forceMergeRuns() {
        while (stackSize > 1) {
            var n = stackSize - 2;
            if (n > 0 && runLength[n - 1] < runLength[n + 1]) {
                n--;
            }
            mergeAt(n);
        }
    }
    function mergeAt(i) {
        var start1 = runStart[i];
        var length1 = runLength[i];
        var start2 = runStart[i + 1];
        var length2 = runLength[i + 1];
        runLength[i] = length1 + length2;
        if (i === stackSize - 3) {
            runStart[i + 1] = runStart[i + 2];
            runLength[i + 1] = runLength[i + 2];
        }
        stackSize--;
        var k = gallopRight(array[start2], array, start1, length1, 0, compare);
        start1 += k;
        length1 -= k;
        if (length1 === 0) {
            return;
        }
        length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);
        if (length2 === 0) {
            return;
        }
        if (length1 <= length2) {
            mergeLow(start1, length1, start2, length2);
        }
        else {
            mergeHigh(start1, length1, start2, length2);
        }
    }
    function mergeLow(start1, length1, start2, length2) {
        var i = 0;
        for (i = 0; i < length1; i++) {
            tmp[i] = array[start1 + i];
        }
        var cursor1 = 0;
        var cursor2 = start2;
        var dest = start1;
        array[dest++] = array[cursor2++];
        if (--length2 === 0) {
            for (i = 0; i < length1; i++) {
                array[dest + i] = tmp[cursor1 + i];
            }
            return;
        }
        if (length1 === 1) {
            for (i = 0; i < length2; i++) {
                array[dest + i] = array[cursor2 + i];
            }
            array[dest + length2] = tmp[cursor1];
            return;
        }
        var _minGallop = minGallop;
        var count1;
        var count2;
        var exit;
        while (1) {
            count1 = 0;
            count2 = 0;
            exit = false;
            do {
                if (compare(array[cursor2], tmp[cursor1]) < 0) {
                    array[dest++] = array[cursor2++];
                    count2++;
                    count1 = 0;
                    if (--length2 === 0) {
                        exit = true;
                        break;
                    }
                }
                else {
                    array[dest++] = tmp[cursor1++];
                    count1++;
                    count2 = 0;
                    if (--length1 === 1) {
                        exit = true;
                        break;
                    }
                }
            } while ((count1 | count2) < _minGallop);
            if (exit) {
                break;
            }
            do {
                count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);
                if (count1 !== 0) {
                    for (i = 0; i < count1; i++) {
                        array[dest + i] = tmp[cursor1 + i];
                    }
                    dest += count1;
                    cursor1 += count1;
                    length1 -= count1;
                    if (length1 <= 1) {
                        exit = true;
                        break;
                    }
                }
                array[dest++] = array[cursor2++];
                if (--length2 === 0) {
                    exit = true;
                    break;
                }
                count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);
                if (count2 !== 0) {
                    for (i = 0; i < count2; i++) {
                        array[dest + i] = array[cursor2 + i];
                    }
                    dest += count2;
                    cursor2 += count2;
                    length2 -= count2;
                    if (length2 === 0) {
                        exit = true;
                        break;
                    }
                }
                array[dest++] = tmp[cursor1++];
                if (--length1 === 1) {
                    exit = true;
                    break;
                }
                _minGallop--;
            } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);
            if (exit) {
                break;
            }
            if (_minGallop < 0) {
                _minGallop = 0;
            }
            _minGallop += 2;
        }
        minGallop = _minGallop;
        minGallop < 1 && (minGallop = 1);
        if (length1 === 1) {
            for (i = 0; i < length2; i++) {
                array[dest + i] = array[cursor2 + i];
            }
            array[dest + length2] = tmp[cursor1];
        }
        else if (length1 === 0) {
            throw new Error();
        }
        else {
            for (i = 0; i < length1; i++) {
                array[dest + i] = tmp[cursor1 + i];
            }
        }
    }
    function mergeHigh(start1, length1, start2, length2) {
        var i = 0;
        for (i = 0; i < length2; i++) {
            tmp[i] = array[start2 + i];
        }
        var cursor1 = start1 + length1 - 1;
        var cursor2 = length2 - 1;
        var dest = start2 + length2 - 1;
        var customCursor = 0;
        var customDest = 0;
        array[dest--] = array[cursor1--];
        if (--length1 === 0) {
            customCursor = dest - (length2 - 1);
            for (i = 0; i < length2; i++) {
                array[customCursor + i] = tmp[i];
            }
            return;
        }
        if (length2 === 1) {
            dest -= length1;
            cursor1 -= length1;
            customDest = dest + 1;
            customCursor = cursor1 + 1;
            for (i = length1 - 1; i >= 0; i--) {
                array[customDest + i] = array[customCursor + i];
            }
            array[dest] = tmp[cursor2];
            return;
        }
        var _minGallop = minGallop;
        while (true) {
            var count1 = 0;
            var count2 = 0;
            var exit = false;
            do {
                if (compare(tmp[cursor2], array[cursor1]) < 0) {
                    array[dest--] = array[cursor1--];
                    count1++;
                    count2 = 0;
                    if (--length1 === 0) {
                        exit = true;
                        break;
                    }
                }
                else {
                    array[dest--] = tmp[cursor2--];
                    count2++;
                    count1 = 0;
                    if (--length2 === 1) {
                        exit = true;
                        break;
                    }
                }
            } while ((count1 | count2) < _minGallop);
            if (exit) {
                break;
            }
            do {
                count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);
                if (count1 !== 0) {
                    dest -= count1;
                    cursor1 -= count1;
                    length1 -= count1;
                    customDest = dest + 1;
                    customCursor = cursor1 + 1;
                    for (i = count1 - 1; i >= 0; i--) {
                        array[customDest + i] = array[customCursor + i];
                    }
                    if (length1 === 0) {
                        exit = true;
                        break;
                    }
                }
                array[dest--] = tmp[cursor2--];
                if (--length2 === 1) {
                    exit = true;
                    break;
                }
                count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);
                if (count2 !== 0) {
                    dest -= count2;
                    cursor2 -= count2;
                    length2 -= count2;
                    customDest = dest + 1;
                    customCursor = cursor2 + 1;
                    for (i = 0; i < count2; i++) {
                        array[customDest + i] = tmp[customCursor + i];
                    }
                    if (length2 <= 1) {
                        exit = true;
                        break;
                    }
                }
                array[dest--] = array[cursor1--];
                if (--length1 === 0) {
                    exit = true;
                    break;
                }
                _minGallop--;
            } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);
            if (exit) {
                break;
            }
            if (_minGallop < 0) {
                _minGallop = 0;
            }
            _minGallop += 2;
        }
        minGallop = _minGallop;
        if (minGallop < 1) {
            minGallop = 1;
        }
        if (length2 === 1) {
            dest -= length1;
            cursor1 -= length1;
            customDest = dest + 1;
            customCursor = cursor1 + 1;
            for (i = length1 - 1; i >= 0; i--) {
                array[customDest + i] = array[customCursor + i];
            }
            array[dest] = tmp[cursor2];
        }
        else if (length2 === 0) {
            throw new Error();
        }
        else {
            customCursor = dest - (length2 - 1);
            for (i = 0; i < length2; i++) {
                array[customCursor + i] = tmp[i];
            }
        }
    }
    return {
        mergeRuns: mergeRuns,
        forceMergeRuns: forceMergeRuns,
        pushRun: pushRun
    };
}
function timsort_sort(array, compare, lo, hi) {
    if (!lo) {
        lo = 0;
    }
    if (!hi) {
        hi = array.length;
    }
    var remaining = hi - lo;
    if (remaining < 2) {
        return;
    }
    var runLength = 0;
    if (remaining < DEFAULT_MIN_MERGE) {
        runLength = makeAscendingRun(array, lo, hi, compare);
        binaryInsertionSort(array, lo, hi, lo + runLength, compare);
        return;
    }
    var ts = TimSort(array, compare);
    var minRun = minRunLength(remaining);
    do {
        runLength = makeAscendingRun(array, lo, hi, compare);
        if (runLength < minRun) {
            var force = remaining;
            if (force > minRun) {
                force = minRun;
            }
            binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);
            runLength = force;
        }
        ts.pushRun(lo, runLength);
        ts.mergeRuns();
        remaining -= runLength;
        lo += runLength;
    } while (remaining !== 0);
    ts.forceMergeRuns();
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/constants.js
var REDRAW_BIT = 1;
var STYLE_CHANGED_BIT = 2;
var SHAPE_CHANGED_BIT = 4;

// CONCATENATED MODULE: ./node_modules/zrender/lib/Storage.js



var invalidZErrorLogged = false;
function logInvalidZError() {
    if (invalidZErrorLogged) {
        return;
    }
    invalidZErrorLogged = true;
    console.warn('z / z2 / zlevel of displayable is invalid, which may cause unexpected errors');
}
function shapeCompareFunc(a, b) {
    if (a.zlevel === b.zlevel) {
        if (a.z === b.z) {
            return a.z2 - b.z2;
        }
        return a.z - b.z;
    }
    return a.zlevel - b.zlevel;
}
var Storage_Storage = (function () {
    function Storage() {
        this._roots = [];
        this._displayList = [];
        this._displayListLen = 0;
        this.displayableSortFunc = shapeCompareFunc;
    }
    Storage.prototype.traverse = function (cb, context) {
        for (var i = 0; i < this._roots.length; i++) {
            this._roots[i].traverse(cb, context);
        }
    };
    Storage.prototype.getDisplayList = function (update, includeIgnore) {
        includeIgnore = includeIgnore || false;
        var displayList = this._displayList;
        if (update || !displayList.length) {
            this.updateDisplayList(includeIgnore);
        }
        return displayList;
    };
    Storage.prototype.updateDisplayList = function (includeIgnore) {
        this._displayListLen = 0;
        var roots = this._roots;
        var displayList = this._displayList;
        for (var i = 0, len = roots.length; i < len; i++) {
            this._updateAndAddDisplayable(roots[i], null, includeIgnore);
        }
        displayList.length = this._displayListLen;
        timsort_sort(displayList, shapeCompareFunc);
    };
    Storage.prototype._updateAndAddDisplayable = function (el, clipPaths, includeIgnore) {
        if (el.ignore && !includeIgnore) {
            return;
        }
        el.beforeUpdate();
        el.update();
        el.afterUpdate();
        var userSetClipPath = el.getClipPath();
        if (el.ignoreClip) {
            clipPaths = null;
        }
        else if (userSetClipPath) {
            if (clipPaths) {
                clipPaths = clipPaths.slice();
            }
            else {
                clipPaths = [];
            }
            var currentClipPath = userSetClipPath;
            var parentClipPath = el;
            while (currentClipPath) {
                currentClipPath.parent = parentClipPath;
                currentClipPath.updateTransform();
                clipPaths.push(currentClipPath);
                parentClipPath = currentClipPath;
                currentClipPath = currentClipPath.getClipPath();
            }
        }
        if (el.childrenRef) {
            var children = el.childrenRef();
            for (var i = 0; i < children.length; i++) {
                var child = children[i];
                if (el.__dirty) {
                    child.__dirty |= REDRAW_BIT;
                }
                this._updateAndAddDisplayable(child, clipPaths, includeIgnore);
            }
            el.__dirty = 0;
        }
        else {
            var disp = el;
            if (clipPaths && clipPaths.length) {
                disp.__clipPaths = clipPaths;
            }
            else if (disp.__clipPaths && disp.__clipPaths.length > 0) {
                disp.__clipPaths = [];
            }
            if (isNaN(disp.z)) {
                logInvalidZError();
                disp.z = 0;
            }
            if (isNaN(disp.z2)) {
                logInvalidZError();
                disp.z2 = 0;
            }
            if (isNaN(disp.zlevel)) {
                logInvalidZError();
                disp.zlevel = 0;
            }
            this._displayList[this._displayListLen++] = disp;
        }
        var decalEl = el.getDecalElement && el.getDecalElement();
        if (decalEl) {
            this._updateAndAddDisplayable(decalEl, clipPaths, includeIgnore);
        }
        var textGuide = el.getTextGuideLine();
        if (textGuide) {
            this._updateAndAddDisplayable(textGuide, clipPaths, includeIgnore);
        }
        var textEl = el.getTextContent();
        if (textEl) {
            this._updateAndAddDisplayable(textEl, clipPaths, includeIgnore);
        }
    };
    Storage.prototype.addRoot = function (el) {
        if (el.__zr && el.__zr.storage === this) {
            return;
        }
        this._roots.push(el);
    };
    Storage.prototype.delRoot = function (el) {
        if (el instanceof Array) {
            for (var i = 0, l = el.length; i < l; i++) {
                this.delRoot(el[i]);
            }
            return;
        }
        var idx = util["indexOf"](this._roots, el);
        if (idx >= 0) {
            this._roots.splice(idx, 1);
        }
    };
    Storage.prototype.delAllRoots = function () {
        this._roots = [];
        this._displayList = [];
        this._displayListLen = 0;
        return;
    };
    Storage.prototype.getRoots = function () {
        return this._roots;
    };
    Storage.prototype.dispose = function () {
        this._displayList = null;
        this._roots = null;
    };
    return Storage;
}());
/* harmony default export */ var lib_Storage = (Storage_Storage);

// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/requestAnimationFrame.js

var requestAnimationFrame;
requestAnimationFrame = (env["a" /* default */].hasGlobalWindow
    && ((window.requestAnimationFrame && window.requestAnimationFrame.bind(window))
        || (window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window))
        || window.mozRequestAnimationFrame
        || window.webkitRequestAnimationFrame)) || function (func) {
    return setTimeout(func, 16);
};
/* harmony default export */ var animation_requestAnimationFrame = (requestAnimationFrame);

// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/easing.js
var easingFuncs = {
    linear: function (k) {
        return k;
    },
    quadraticIn: function (k) {
        return k * k;
    },
    quadraticOut: function (k) {
        return k * (2 - k);
    },
    quadraticInOut: function (k) {
        if ((k *= 2) < 1) {
            return 0.5 * k * k;
        }
        return -0.5 * (--k * (k - 2) - 1);
    },
    cubicIn: function (k) {
        return k * k * k;
    },
    cubicOut: function (k) {
        return --k * k * k + 1;
    },
    cubicInOut: function (k) {
        if ((k *= 2) < 1) {
            return 0.5 * k * k * k;
        }
        return 0.5 * ((k -= 2) * k * k + 2);
    },
    quarticIn: function (k) {
        return k * k * k * k;
    },
    quarticOut: function (k) {
        return 1 - (--k * k * k * k);
    },
    quarticInOut: function (k) {
        if ((k *= 2) < 1) {
            return 0.5 * k * k * k * k;
        }
        return -0.5 * ((k -= 2) * k * k * k - 2);
    },
    quinticIn: function (k) {
        return k * k * k * k * k;
    },
    quinticOut: function (k) {
        return --k * k * k * k * k + 1;
    },
    quinticInOut: function (k) {
        if ((k *= 2) < 1) {
            return 0.5 * k * k * k * k * k;
        }
        return 0.5 * ((k -= 2) * k * k * k * k + 2);
    },
    sinusoidalIn: function (k) {
        return 1 - Math.cos(k * Math.PI / 2);
    },
    sinusoidalOut: function (k) {
        return Math.sin(k * Math.PI / 2);
    },
    sinusoidalInOut: function (k) {
        return 0.5 * (1 - Math.cos(Math.PI * k));
    },
    exponentialIn: function (k) {
        return k === 0 ? 0 : Math.pow(1024, k - 1);
    },
    exponentialOut: function (k) {
        return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);
    },
    exponentialInOut: function (k) {
        if (k === 0) {
            return 0;
        }
        if (k === 1) {
            return 1;
        }
        if ((k *= 2) < 1) {
            return 0.5 * Math.pow(1024, k - 1);
        }
        return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);
    },
    circularIn: function (k) {
        return 1 - Math.sqrt(1 - k * k);
    },
    circularOut: function (k) {
        return Math.sqrt(1 - (--k * k));
    },
    circularInOut: function (k) {
        if ((k *= 2) < 1) {
            return -0.5 * (Math.sqrt(1 - k * k) - 1);
        }
        return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);
    },
    elasticIn: function (k) {
        var s;
        var a = 0.1;
        var p = 0.4;
        if (k === 0) {
            return 0;
        }
        if (k === 1) {
            return 1;
        }
        if (!a || a < 1) {
            a = 1;
            s = p / 4;
        }
        else {
            s = p * Math.asin(1 / a) / (2 * Math.PI);
        }
        return -(a * Math.pow(2, 10 * (k -= 1))
            * Math.sin((k - s) * (2 * Math.PI) / p));
    },
    elasticOut: function (k) {
        var s;
        var a = 0.1;
        var p = 0.4;
        if (k === 0) {
            return 0;
        }
        if (k === 1) {
            return 1;
        }
        if (!a || a < 1) {
            a = 1;
            s = p / 4;
        }
        else {
            s = p * Math.asin(1 / a) / (2 * Math.PI);
        }
        return (a * Math.pow(2, -10 * k)
            * Math.sin((k - s) * (2 * Math.PI) / p) + 1);
    },
    elasticInOut: function (k) {
        var s;
        var a = 0.1;
        var p = 0.4;
        if (k === 0) {
            return 0;
        }
        if (k === 1) {
            return 1;
        }
        if (!a || a < 1) {
            a = 1;
            s = p / 4;
        }
        else {
            s = p * Math.asin(1 / a) / (2 * Math.PI);
        }
        if ((k *= 2) < 1) {
            return -0.5 * (a * Math.pow(2, 10 * (k -= 1))
                * Math.sin((k - s) * (2 * Math.PI) / p));
        }
        return a * Math.pow(2, -10 * (k -= 1))
            * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;
    },
    backIn: function (k) {
        var s = 1.70158;
        return k * k * ((s + 1) * k - s);
    },
    backOut: function (k) {
        var s = 1.70158;
        return --k * k * ((s + 1) * k + s) + 1;
    },
    backInOut: function (k) {
        var s = 1.70158 * 1.525;
        if ((k *= 2) < 1) {
            return 0.5 * (k * k * ((s + 1) * k - s));
        }
        return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);
    },
    bounceIn: function (k) {
        return 1 - easingFuncs.bounceOut(1 - k);
    },
    bounceOut: function (k) {
        if (k < (1 / 2.75)) {
            return 7.5625 * k * k;
        }
        else if (k < (2 / 2.75)) {
            return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;
        }
        else if (k < (2.5 / 2.75)) {
            return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;
        }
        else {
            return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;
        }
    },
    bounceInOut: function (k) {
        if (k < 0.5) {
            return easingFuncs.bounceIn(k * 2) * 0.5;
        }
        return easingFuncs.bounceOut(k * 2 - 1) * 0.5 + 0.5;
    }
};
/* harmony default export */ var animation_easing = (easingFuncs);

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/curve.js

var mathPow = Math.pow;
var mathSqrt = Math.sqrt;
var EPSILON = 1e-8;
var EPSILON_NUMERIC = 1e-4;
var THREE_SQRT = mathSqrt(3);
var ONE_THIRD = 1 / 3;
var _v0 = vector_create();
var _v1 = vector_create();
var _v2 = vector_create();
function isAroundZero(val) {
    return val > -EPSILON && val < EPSILON;
}
function isNotAroundZero(val) {
    return val > EPSILON || val < -EPSILON;
}
function curve_cubicAt(p0, p1, p2, p3, t) {
    var onet = 1 - t;
    return onet * onet * (onet * p0 + 3 * t * p1)
        + t * t * (t * p3 + 3 * onet * p2);
}
function cubicDerivativeAt(p0, p1, p2, p3, t) {
    var onet = 1 - t;
    return 3 * (((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet
        + (p3 - p2) * t * t);
}
function cubicRootAt(p0, p1, p2, p3, val, roots) {
    var a = p3 + 3 * (p1 - p2) - p0;
    var b = 3 * (p2 - p1 * 2 + p0);
    var c = 3 * (p1 - p0);
    var d = p0 - val;
    var A = b * b - 3 * a * c;
    var B = b * c - 9 * a * d;
    var C = c * c - 3 * b * d;
    var n = 0;
    if (isAroundZero(A) && isAroundZero(B)) {
        if (isAroundZero(b)) {
            roots[0] = 0;
        }
        else {
            var t1 = -c / b;
            if (t1 >= 0 && t1 <= 1) {
                roots[n++] = t1;
            }
        }
    }
    else {
        var disc = B * B - 4 * A * C;
        if (isAroundZero(disc)) {
            var K = B / A;
            var t1 = -b / a + K;
            var t2 = -K / 2;
            if (t1 >= 0 && t1 <= 1) {
                roots[n++] = t1;
            }
            if (t2 >= 0 && t2 <= 1) {
                roots[n++] = t2;
            }
        }
        else if (disc > 0) {
            var discSqrt = mathSqrt(disc);
            var Y1 = A * b + 1.5 * a * (-B + discSqrt);
            var Y2 = A * b + 1.5 * a * (-B - discSqrt);
            if (Y1 < 0) {
                Y1 = -mathPow(-Y1, ONE_THIRD);
            }
            else {
                Y1 = mathPow(Y1, ONE_THIRD);
            }
            if (Y2 < 0) {
                Y2 = -mathPow(-Y2, ONE_THIRD);
            }
            else {
                Y2 = mathPow(Y2, ONE_THIRD);
            }
            var t1 = (-b - (Y1 + Y2)) / (3 * a);
            if (t1 >= 0 && t1 <= 1) {
                roots[n++] = t1;
            }
        }
        else {
            var T = (2 * A * b - 3 * a * B) / (2 * mathSqrt(A * A * A));
            var theta = Math.acos(T) / 3;
            var ASqrt = mathSqrt(A);
            var tmp = Math.cos(theta);
            var t1 = (-b - 2 * ASqrt * tmp) / (3 * a);
            var t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a);
            var t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);
            if (t1 >= 0 && t1 <= 1) {
                roots[n++] = t1;
            }
            if (t2 >= 0 && t2 <= 1) {
                roots[n++] = t2;
            }
            if (t3 >= 0 && t3 <= 1) {
                roots[n++] = t3;
            }
        }
    }
    return n;
}
function curve_cubicExtrema(p0, p1, p2, p3, extrema) {
    var b = 6 * p2 - 12 * p1 + 6 * p0;
    var a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;
    var c = 3 * p1 - 3 * p0;
    var n = 0;
    if (isAroundZero(a)) {
        if (isNotAroundZero(b)) {
            var t1 = -c / b;
            if (t1 >= 0 && t1 <= 1) {
                extrema[n++] = t1;
            }
        }
    }
    else {
        var disc = b * b - 4 * a * c;
        if (isAroundZero(disc)) {
            extrema[0] = -b / (2 * a);
        }
        else if (disc > 0) {
            var discSqrt = mathSqrt(disc);
            var t1 = (-b + discSqrt) / (2 * a);
            var t2 = (-b - discSqrt) / (2 * a);
            if (t1 >= 0 && t1 <= 1) {
                extrema[n++] = t1;
            }
            if (t2 >= 0 && t2 <= 1) {
                extrema[n++] = t2;
            }
        }
    }
    return n;
}
function cubicSubdivide(p0, p1, p2, p3, t, out) {
    var p01 = (p1 - p0) * t + p0;
    var p12 = (p2 - p1) * t + p1;
    var p23 = (p3 - p2) * t + p2;
    var p012 = (p12 - p01) * t + p01;
    var p123 = (p23 - p12) * t + p12;
    var p0123 = (p123 - p012) * t + p012;
    out[0] = p0;
    out[1] = p01;
    out[2] = p012;
    out[3] = p0123;
    out[4] = p0123;
    out[5] = p123;
    out[6] = p23;
    out[7] = p3;
}
function cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, out) {
    var t;
    var interval = 0.005;
    var d = Infinity;
    var prev;
    var next;
    var d1;
    var d2;
    _v0[0] = x;
    _v0[1] = y;
    for (var _t = 0; _t < 1; _t += 0.05) {
        _v1[0] = curve_cubicAt(x0, x1, x2, x3, _t);
        _v1[1] = curve_cubicAt(y0, y1, y2, y3, _t);
        d1 = distSquare(_v0, _v1);
        if (d1 < d) {
            t = _t;
            d = d1;
        }
    }
    d = Infinity;
    for (var i = 0; i < 32; i++) {
        if (interval < EPSILON_NUMERIC) {
            break;
        }
        prev = t - interval;
        next = t + interval;
        _v1[0] = curve_cubicAt(x0, x1, x2, x3, prev);
        _v1[1] = curve_cubicAt(y0, y1, y2, y3, prev);
        d1 = distSquare(_v1, _v0);
        if (prev >= 0 && d1 < d) {
            t = prev;
            d = d1;
        }
        else {
            _v2[0] = curve_cubicAt(x0, x1, x2, x3, next);
            _v2[1] = curve_cubicAt(y0, y1, y2, y3, next);
            d2 = distSquare(_v2, _v0);
            if (next <= 1 && d2 < d) {
                t = next;
                d = d2;
            }
            else {
                interval *= 0.5;
            }
        }
    }
    if (out) {
        out[0] = curve_cubicAt(x0, x1, x2, x3, t);
        out[1] = curve_cubicAt(y0, y1, y2, y3, t);
    }
    return mathSqrt(d);
}
function cubicLength(x0, y0, x1, y1, x2, y2, x3, y3, iteration) {
    var px = x0;
    var py = y0;
    var d = 0;
    var step = 1 / iteration;
    for (var i = 1; i <= iteration; i++) {
        var t = i * step;
        var x = curve_cubicAt(x0, x1, x2, x3, t);
        var y = curve_cubicAt(y0, y1, y2, y3, t);
        var dx = x - px;
        var dy = y - py;
        d += Math.sqrt(dx * dx + dy * dy);
        px = x;
        py = y;
    }
    return d;
}
function curve_quadraticAt(p0, p1, p2, t) {
    var onet = 1 - t;
    return onet * (onet * p0 + 2 * t * p1) + t * t * p2;
}
function curve_quadraticDerivativeAt(p0, p1, p2, t) {
    return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1));
}
function quadraticRootAt(p0, p1, p2, val, roots) {
    var a = p0 - 2 * p1 + p2;
    var b = 2 * (p1 - p0);
    var c = p0 - val;
    var n = 0;
    if (isAroundZero(a)) {
        if (isNotAroundZero(b)) {
            var t1 = -c / b;
            if (t1 >= 0 && t1 <= 1) {
                roots[n++] = t1;
            }
        }
    }
    else {
        var disc = b * b - 4 * a * c;
        if (isAroundZero(disc)) {
            var t1 = -b / (2 * a);
            if (t1 >= 0 && t1 <= 1) {
                roots[n++] = t1;
            }
        }
        else if (disc > 0) {
            var discSqrt = mathSqrt(disc);
            var t1 = (-b + discSqrt) / (2 * a);
            var t2 = (-b - discSqrt) / (2 * a);
            if (t1 >= 0 && t1 <= 1) {
                roots[n++] = t1;
            }
            if (t2 >= 0 && t2 <= 1) {
                roots[n++] = t2;
            }
        }
    }
    return n;
}
function curve_quadraticExtremum(p0, p1, p2) {
    var divider = p0 + p2 - 2 * p1;
    if (divider === 0) {
        return 0.5;
    }
    else {
        return (p0 - p1) / divider;
    }
}
function curve_quadraticSubdivide(p0, p1, p2, t, out) {
    var p01 = (p1 - p0) * t + p0;
    var p12 = (p2 - p1) * t + p1;
    var p012 = (p12 - p01) * t + p01;
    out[0] = p0;
    out[1] = p01;
    out[2] = p012;
    out[3] = p012;
    out[4] = p12;
    out[5] = p2;
}
function quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, out) {
    var t;
    var interval = 0.005;
    var d = Infinity;
    _v0[0] = x;
    _v0[1] = y;
    for (var _t = 0; _t < 1; _t += 0.05) {
        _v1[0] = curve_quadraticAt(x0, x1, x2, _t);
        _v1[1] = curve_quadraticAt(y0, y1, y2, _t);
        var d1 = distSquare(_v0, _v1);
        if (d1 < d) {
            t = _t;
            d = d1;
        }
    }
    d = Infinity;
    for (var i = 0; i < 32; i++) {
        if (interval < EPSILON_NUMERIC) {
            break;
        }
        var prev = t - interval;
        var next = t + interval;
        _v1[0] = curve_quadraticAt(x0, x1, x2, prev);
        _v1[1] = curve_quadraticAt(y0, y1, y2, prev);
        var d1 = distSquare(_v1, _v0);
        if (prev >= 0 && d1 < d) {
            t = prev;
            d = d1;
        }
        else {
            _v2[0] = curve_quadraticAt(x0, x1, x2, next);
            _v2[1] = curve_quadraticAt(y0, y1, y2, next);
            var d2 = distSquare(_v2, _v0);
            if (next <= 1 && d2 < d) {
                t = next;
                d = d2;
            }
            else {
                interval *= 0.5;
            }
        }
    }
    if (out) {
        out[0] = curve_quadraticAt(x0, x1, x2, t);
        out[1] = curve_quadraticAt(y0, y1, y2, t);
    }
    return mathSqrt(d);
}
function quadraticLength(x0, y0, x1, y1, x2, y2, iteration) {
    var px = x0;
    var py = y0;
    var d = 0;
    var step = 1 / iteration;
    for (var i = 1; i <= iteration; i++) {
        var t = i * step;
        var x = curve_quadraticAt(x0, x1, x2, t);
        var y = curve_quadraticAt(y0, y1, y2, t);
        var dx = x - px;
        var dy = y - py;
        d += Math.sqrt(dx * dx + dy * dy);
        px = x;
        py = y;
    }
    return d;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/cubicEasing.js


var regexp = /cubic-bezier\(([0-9,\.e ]+)\)/;
function createCubicEasingFunc(cubicEasingStr) {
    var cubic = cubicEasingStr && regexp.exec(cubicEasingStr);
    if (cubic) {
        var points = cubic[1].split(',');
        var a_1 = +Object(util["trim"])(points[0]);
        var b_1 = +Object(util["trim"])(points[1]);
        var c_1 = +Object(util["trim"])(points[2]);
        var d_1 = +Object(util["trim"])(points[3]);
        if (isNaN(a_1 + b_1 + c_1 + d_1)) {
            return;
        }
        var roots_1 = [];
        return function (p) {
            return p <= 0
                ? 0 : p >= 1
                ? 1
                : cubicRootAt(0, a_1, c_1, 1, p, roots_1) && curve_cubicAt(0, b_1, d_1, 1, roots_1[0]);
        };
    }
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/Clip.js



var Clip_Clip = (function () {
    function Clip(opts) {
        this._inited = false;
        this._startTime = 0;
        this._pausedTime = 0;
        this._paused = false;
        this._life = opts.life || 1000;
        this._delay = opts.delay || 0;
        this.loop = opts.loop || false;
        this.onframe = opts.onframe || util["noop"];
        this.ondestroy = opts.ondestroy || util["noop"];
        this.onrestart = opts.onrestart || util["noop"];
        opts.easing && this.setEasing(opts.easing);
    }
    Clip.prototype.step = function (globalTime, deltaTime) {
        if (!this._inited) {
            this._startTime = globalTime + this._delay;
            this._inited = true;
        }
        if (this._paused) {
            this._pausedTime += deltaTime;
            return;
        }
        var life = this._life;
        var elapsedTime = globalTime - this._startTime - this._pausedTime;
        var percent = elapsedTime / life;
        if (percent < 0) {
            percent = 0;
        }
        percent = Math.min(percent, 1);
        var easingFunc = this.easingFunc;
        var schedule = easingFunc ? easingFunc(percent) : percent;
        this.onframe(schedule);
        if (percent === 1) {
            if (this.loop) {
                var remainder = elapsedTime % life;
                this._startTime = globalTime - remainder;
                this._pausedTime = 0;
                this.onrestart();
            }
            else {
                return true;
            }
        }
        return false;
    };
    Clip.prototype.pause = function () {
        this._paused = true;
    };
    Clip.prototype.resume = function () {
        this._paused = false;
    };
    Clip.prototype.setEasing = function (easing) {
        this.easing = easing;
        this.easingFunc = Object(util["isFunction"])(easing)
            ? easing
            : animation_easing[easing] || createCubicEasingFunc(easing);
    };
    return Clip;
}());
/* harmony default export */ var animation_Clip = (Clip_Clip);

// EXTERNAL MODULE: ./node_modules/zrender/lib/tool/color.js
var tool_color = __webpack_require__(23);

// EXTERNAL MODULE: ./node_modules/zrender/lib/svg/helper.js
var helper = __webpack_require__(25);

// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/Animator.js






;
var arraySlice = Array.prototype.slice;
function interpolateNumber(p0, p1, percent) {
    return (p1 - p0) * percent + p0;
}
function interpolate1DArray(out, p0, p1, percent) {
    var len = p0.length;
    for (var i = 0; i < len; i++) {
        out[i] = interpolateNumber(p0[i], p1[i], percent);
    }
    return out;
}
function interpolate2DArray(out, p0, p1, percent) {
    var len = p0.length;
    var len2 = len && p0[0].length;
    for (var i = 0; i < len; i++) {
        if (!out[i]) {
            out[i] = [];
        }
        for (var j = 0; j < len2; j++) {
            out[i][j] = interpolateNumber(p0[i][j], p1[i][j], percent);
        }
    }
    return out;
}
function add1DArray(out, p0, p1, sign) {
    var len = p0.length;
    for (var i = 0; i < len; i++) {
        out[i] = p0[i] + p1[i] * sign;
    }
    return out;
}
function add2DArray(out, p0, p1, sign) {
    var len = p0.length;
    var len2 = len && p0[0].length;
    for (var i = 0; i < len; i++) {
        if (!out[i]) {
            out[i] = [];
        }
        for (var j = 0; j < len2; j++) {
            out[i][j] = p0[i][j] + p1[i][j] * sign;
        }
    }
    return out;
}
function fillColorStops(val0, val1) {
    var len0 = val0.length;
    var len1 = val1.length;
    var shorterArr = len0 > len1 ? val1 : val0;
    var shorterLen = Math.min(len0, len1);
    var last = shorterArr[shorterLen - 1] || { color: [0, 0, 0, 0], offset: 0 };
    for (var i = shorterLen; i < Math.max(len0, len1); i++) {
        shorterArr.push({
            offset: last.offset,
            color: last.color.slice()
        });
    }
}
function fillArray(val0, val1, arrDim) {
    var arr0 = val0;
    var arr1 = val1;
    if (!arr0.push || !arr1.push) {
        return;
    }
    var arr0Len = arr0.length;
    var arr1Len = arr1.length;
    if (arr0Len !== arr1Len) {
        var isPreviousLarger = arr0Len > arr1Len;
        if (isPreviousLarger) {
            arr0.length = arr1Len;
        }
        else {
            for (var i = arr0Len; i < arr1Len; i++) {
                arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]));
            }
        }
    }
    var len2 = arr0[0] && arr0[0].length;
    for (var i = 0; i < arr0.length; i++) {
        if (arrDim === 1) {
            if (isNaN(arr0[i])) {
                arr0[i] = arr1[i];
            }
        }
        else {
            for (var j = 0; j < len2; j++) {
                if (isNaN(arr0[i][j])) {
                    arr0[i][j] = arr1[i][j];
                }
            }
        }
    }
}
function cloneValue(value) {
    if (Object(util["isArrayLike"])(value)) {
        var len = value.length;
        if (Object(util["isArrayLike"])(value[0])) {
            var ret = [];
            for (var i = 0; i < len; i++) {
                ret.push(arraySlice.call(value[i]));
            }
            return ret;
        }
        return arraySlice.call(value);
    }
    return value;
}
function rgba2String(rgba) {
    rgba[0] = Math.floor(rgba[0]) || 0;
    rgba[1] = Math.floor(rgba[1]) || 0;
    rgba[2] = Math.floor(rgba[2]) || 0;
    rgba[3] = rgba[3] == null ? 1 : rgba[3];
    return 'rgba(' + rgba.join(',') + ')';
}
function guessArrayDim(value) {
    return Object(util["isArrayLike"])(value && value[0]) ? 2 : 1;
}
var VALUE_TYPE_NUMBER = 0;
var VALUE_TYPE_1D_ARRAY = 1;
var VALUE_TYPE_2D_ARRAY = 2;
var VALUE_TYPE_COLOR = 3;
var VALUE_TYPE_LINEAR_GRADIENT = 4;
var VALUE_TYPE_RADIAL_GRADIENT = 5;
var VALUE_TYPE_UNKOWN = 6;
function isGradientValueType(valType) {
    return valType === VALUE_TYPE_LINEAR_GRADIENT || valType === VALUE_TYPE_RADIAL_GRADIENT;
}
function isArrayValueType(valType) {
    return valType === VALUE_TYPE_1D_ARRAY || valType === VALUE_TYPE_2D_ARRAY;
}
var tmpRgba = [0, 0, 0, 0];
var Animator_Track = (function () {
    function Track(propName) {
        this.keyframes = [];
        this.discrete = false;
        this._invalid = false;
        this._needsSort = false;
        this._lastFr = 0;
        this._lastFrP = 0;
        this.propName = propName;
    }
    Track.prototype.isFinished = function () {
        return this._finished;
    };
    Track.prototype.setFinished = function () {
        this._finished = true;
        if (this._additiveTrack) {
            this._additiveTrack.setFinished();
        }
    };
    Track.prototype.needsAnimate = function () {
        return this.keyframes.length >= 1;
    };
    Track.prototype.getAdditiveTrack = function () {
        return this._additiveTrack;
    };
    Track.prototype.addKeyframe = function (time, rawValue, easing) {
        this._needsSort = true;
        var keyframes = this.keyframes;
        var len = keyframes.length;
        var discrete = false;
        var valType = VALUE_TYPE_UNKOWN;
        var value = rawValue;
        if (Object(util["isArrayLike"])(rawValue)) {
            var arrayDim = guessArrayDim(rawValue);
            valType = arrayDim;
            if (arrayDim === 1 && !Object(util["isNumber"])(rawValue[0])
                || arrayDim === 2 && !Object(util["isNumber"])(rawValue[0][0])) {
                discrete = true;
            }
        }
        else {
            if (Object(util["isNumber"])(rawValue) && !Object(util["eqNaN"])(rawValue)) {
                valType = VALUE_TYPE_NUMBER;
            }
            else if (Object(util["isString"])(rawValue)) {
                if (!isNaN(+rawValue)) {
                    valType = VALUE_TYPE_NUMBER;
                }
                else {
                    var colorArray = tool_color["parse"](rawValue);
                    if (colorArray) {
                        value = colorArray;
                        valType = VALUE_TYPE_COLOR;
                    }
                }
            }
            else if (Object(util["isGradientObject"])(rawValue)) {
                var parsedGradient = Object(util["extend"])({}, value);
                parsedGradient.colorStops = Object(util["map"])(rawValue.colorStops, function (colorStop) { return ({
                    offset: colorStop.offset,
                    color: tool_color["parse"](colorStop.color)
                }); });
                if (Object(helper["m" /* isLinearGradient */])(rawValue)) {
                    valType = VALUE_TYPE_LINEAR_GRADIENT;
                }
                else if (Object(helper["o" /* isRadialGradient */])(rawValue)) {
                    valType = VALUE_TYPE_RADIAL_GRADIENT;
                }
                value = parsedGradient;
            }
        }
        if (len === 0) {
            this.valType = valType;
        }
        else if (valType !== this.valType || valType === VALUE_TYPE_UNKOWN) {
            discrete = true;
        }
        this.discrete = this.discrete || discrete;
        var kf = {
            time: time,
            value: value,
            rawValue: rawValue,
            percent: 0
        };
        if (easing) {
            kf.easing = easing;
            kf.easingFunc = Object(util["isFunction"])(easing)
                ? easing
                : animation_easing[easing] || createCubicEasingFunc(easing);
        }
        keyframes.push(kf);
        return kf;
    };
    Track.prototype.prepare = function (maxTime, additiveTrack) {
        var kfs = this.keyframes;
        if (this._needsSort) {
            kfs.sort(function (a, b) {
                return a.time - b.time;
            });
        }
        var valType = this.valType;
        var kfsLen = kfs.length;
        var lastKf = kfs[kfsLen - 1];
        var isDiscrete = this.discrete;
        var isArr = isArrayValueType(valType);
        var isGradient = isGradientValueType(valType);
        for (var i = 0; i < kfsLen; i++) {
            var kf = kfs[i];
            var value = kf.value;
            var lastValue = lastKf.value;
            kf.percent = kf.time / maxTime;
            if (!isDiscrete) {
                if (isArr && i !== kfsLen - 1) {
                    fillArray(value, lastValue, valType);
                }
                else if (isGradient) {
                    fillColorStops(value.colorStops, lastValue.colorStops);
                }
            }
        }
        if (!isDiscrete
            && valType !== VALUE_TYPE_RADIAL_GRADIENT
            && additiveTrack
            && this.needsAnimate()
            && additiveTrack.needsAnimate()
            && valType === additiveTrack.valType
            && !additiveTrack._finished) {
            this._additiveTrack = additiveTrack;
            var startValue = kfs[0].value;
            for (var i = 0; i < kfsLen; i++) {
                if (valType === VALUE_TYPE_NUMBER) {
                    kfs[i].additiveValue = kfs[i].value - startValue;
                }
                else if (valType === VALUE_TYPE_COLOR) {
                    kfs[i].additiveValue =
                        add1DArray([], kfs[i].value, startValue, -1);
                }
                else if (isArrayValueType(valType)) {
                    kfs[i].additiveValue = valType === VALUE_TYPE_1D_ARRAY
                        ? add1DArray([], kfs[i].value, startValue, -1)
                        : add2DArray([], kfs[i].value, startValue, -1);
                }
            }
        }
    };
    Track.prototype.step = function (target, percent) {
        if (this._finished) {
            return;
        }
        if (this._additiveTrack && this._additiveTrack._finished) {
            this._additiveTrack = null;
        }
        var isAdditive = this._additiveTrack != null;
        var valueKey = isAdditive ? 'additiveValue' : 'value';
        var valType = this.valType;
        var keyframes = this.keyframes;
        var kfsNum = keyframes.length;
        var propName = this.propName;
        var isValueColor = valType === VALUE_TYPE_COLOR;
        var frameIdx;
        var lastFrame = this._lastFr;
        var mathMin = Math.min;
        var frame;
        var nextFrame;
        if (kfsNum === 1) {
            frame = nextFrame = keyframes[0];
        }
        else {
            if (percent < 0) {
                frameIdx = 0;
            }
            else if (percent < this._lastFrP) {
                var start = mathMin(lastFrame + 1, kfsNum - 1);
                for (frameIdx = start; frameIdx >= 0; frameIdx--) {
                    if (keyframes[frameIdx].percent <= percent) {
                        break;
                    }
                }
                frameIdx = mathMin(frameIdx, kfsNum - 2);
            }
            else {
                for (frameIdx = lastFrame; frameIdx < kfsNum; frameIdx++) {
                    if (keyframes[frameIdx].percent > percent) {
                        break;
                    }
                }
                frameIdx = mathMin(frameIdx - 1, kfsNum - 2);
            }
            nextFrame = keyframes[frameIdx + 1];
            frame = keyframes[frameIdx];
        }
        if (!(frame && nextFrame)) {
            return;
        }
        this._lastFr = frameIdx;
        this._lastFrP = percent;
        var interval = (nextFrame.percent - frame.percent);
        var w = interval === 0 ? 1 : mathMin((percent - frame.percent) / interval, 1);
        if (nextFrame.easingFunc) {
            w = nextFrame.easingFunc(w);
        }
        var targetArr = isAdditive ? this._additiveValue
            : (isValueColor ? tmpRgba : target[propName]);
        if ((isArrayValueType(valType) || isValueColor) && !targetArr) {
            targetArr = this._additiveValue = [];
        }
        if (this.discrete) {
            target[propName] = w < 1 ? frame.rawValue : nextFrame.rawValue;
        }
        else if (isArrayValueType(valType)) {
            valType === VALUE_TYPE_1D_ARRAY
                ? interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w)
                : interpolate2DArray(targetArr, frame[valueKey], nextFrame[valueKey], w);
        }
        else if (isGradientValueType(valType)) {
            var val = frame[valueKey];
            var nextVal_1 = nextFrame[valueKey];
            var isLinearGradient_1 = valType === VALUE_TYPE_LINEAR_GRADIENT;
            target[propName] = {
                type: isLinearGradient_1 ? 'linear' : 'radial',
                x: interpolateNumber(val.x, nextVal_1.x, w),
                y: interpolateNumber(val.y, nextVal_1.y, w),
                colorStops: Object(util["map"])(val.colorStops, function (colorStop, idx) {
                    var nextColorStop = nextVal_1.colorStops[idx];
                    return {
                        offset: interpolateNumber(colorStop.offset, nextColorStop.offset, w),
                        color: rgba2String(interpolate1DArray([], colorStop.color, nextColorStop.color, w))
                    };
                }),
                global: nextVal_1.global
            };
            if (isLinearGradient_1) {
                target[propName].x2 = interpolateNumber(val.x2, nextVal_1.x2, w);
                target[propName].y2 = interpolateNumber(val.y2, nextVal_1.y2, w);
            }
            else {
                target[propName].r = interpolateNumber(val.r, nextVal_1.r, w);
            }
        }
        else if (isValueColor) {
            interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w);
            if (!isAdditive) {
                target[propName] = rgba2String(targetArr);
            }
        }
        else {
            var value = interpolateNumber(frame[valueKey], nextFrame[valueKey], w);
            if (isAdditive) {
                this._additiveValue = value;
            }
            else {
                target[propName] = value;
            }
        }
        if (isAdditive) {
            this._addToTarget(target);
        }
    };
    Track.prototype._addToTarget = function (target) {
        var valType = this.valType;
        var propName = this.propName;
        var additiveValue = this._additiveValue;
        if (valType === VALUE_TYPE_NUMBER) {
            target[propName] = target[propName] + additiveValue;
        }
        else if (valType === VALUE_TYPE_COLOR) {
            tool_color["parse"](target[propName], tmpRgba);
            add1DArray(tmpRgba, tmpRgba, additiveValue, 1);
            target[propName] = rgba2String(tmpRgba);
        }
        else if (valType === VALUE_TYPE_1D_ARRAY) {
            add1DArray(target[propName], target[propName], additiveValue, 1);
        }
        else if (valType === VALUE_TYPE_2D_ARRAY) {
            add2DArray(target[propName], target[propName], additiveValue, 1);
        }
    };
    return Track;
}());
var Animator_Animator = (function () {
    function Animator(target, loop, allowDiscreteAnimation, additiveTo) {
        this._tracks = {};
        this._trackKeys = [];
        this._maxTime = 0;
        this._started = 0;
        this._clip = null;
        this._target = target;
        this._loop = loop;
        if (loop && additiveTo) {
            Object(util["logError"])('Can\' use additive animation on looped animation.');
            return;
        }
        this._additiveAnimators = additiveTo;
        this._allowDiscrete = allowDiscreteAnimation;
    }
    Animator.prototype.getMaxTime = function () {
        return this._maxTime;
    };
    Animator.prototype.getDelay = function () {
        return this._delay;
    };
    Animator.prototype.getLoop = function () {
        return this._loop;
    };
    Animator.prototype.getTarget = function () {
        return this._target;
    };
    Animator.prototype.changeTarget = function (target) {
        this._target = target;
    };
    Animator.prototype.when = function (time, props, easing) {
        return this.whenWithKeys(time, props, Object(util["keys"])(props), easing);
    };
    Animator.prototype.whenWithKeys = function (time, props, propNames, easing) {
        var tracks = this._tracks;
        for (var i = 0; i < propNames.length; i++) {
            var propName = propNames[i];
            var track = tracks[propName];
            if (!track) {
                track = tracks[propName] = new Animator_Track(propName);
                var initialValue = void 0;
                var additiveTrack = this._getAdditiveTrack(propName);
                if (additiveTrack) {
                    var addtiveTrackKfs = additiveTrack.keyframes;
                    var lastFinalKf = addtiveTrackKfs[addtiveTrackKfs.length - 1];
                    initialValue = lastFinalKf && lastFinalKf.value;
                    if (additiveTrack.valType === VALUE_TYPE_COLOR && initialValue) {
                        initialValue = rgba2String(initialValue);
                    }
                }
                else {
                    initialValue = this._target[propName];
                }
                if (initialValue == null) {
                    continue;
                }
                if (time > 0) {
                    track.addKeyframe(0, cloneValue(initialValue), easing);
                }
                this._trackKeys.push(propName);
            }
            track.addKeyframe(time, cloneValue(props[propName]), easing);
        }
        this._maxTime = Math.max(this._maxTime, time);
        return this;
    };
    Animator.prototype.pause = function () {
        this._clip.pause();
        this._paused = true;
    };
    Animator.prototype.resume = function () {
        this._clip.resume();
        this._paused = false;
    };
    Animator.prototype.isPaused = function () {
        return !!this._paused;
    };
    Animator.prototype.duration = function (duration) {
        this._maxTime = duration;
        this._force = true;
        return this;
    };
    Animator.prototype._doneCallback = function () {
        this._setTracksFinished();
        this._clip = null;
        var doneList = this._doneCbs;
        if (doneList) {
            var len = doneList.length;
            for (var i = 0; i < len; i++) {
                doneList[i].call(this);
            }
        }
    };
    Animator.prototype._abortedCallback = function () {
        this._setTracksFinished();
        var animation = this.animation;
        var abortedList = this._abortedCbs;
        if (animation) {
            animation.removeClip(this._clip);
        }
        this._clip = null;
        if (abortedList) {
            for (var i = 0; i < abortedList.length; i++) {
                abortedList[i].call(this);
            }
        }
    };
    Animator.prototype._setTracksFinished = function () {
        var tracks = this._tracks;
        var tracksKeys = this._trackKeys;
        for (var i = 0; i < tracksKeys.length; i++) {
            tracks[tracksKeys[i]].setFinished();
        }
    };
    Animator.prototype._getAdditiveTrack = function (trackName) {
        var additiveTrack;
        var additiveAnimators = this._additiveAnimators;
        if (additiveAnimators) {
            for (var i = 0; i < additiveAnimators.length; i++) {
                var track = additiveAnimators[i].getTrack(trackName);
                if (track) {
                    additiveTrack = track;
                }
            }
        }
        return additiveTrack;
    };
    Animator.prototype.start = function (easing) {
        if (this._started > 0) {
            return;
        }
        this._started = 1;
        var self = this;
        var tracks = [];
        var maxTime = this._maxTime || 0;
        for (var i = 0; i < this._trackKeys.length; i++) {
            var propName = this._trackKeys[i];
            var track = this._tracks[propName];
            var additiveTrack = this._getAdditiveTrack(propName);
            var kfs = track.keyframes;
            var kfsNum = kfs.length;
            track.prepare(maxTime, additiveTrack);
            if (track.needsAnimate()) {
                if (!this._allowDiscrete && track.discrete) {
                    var lastKf = kfs[kfsNum - 1];
                    if (lastKf) {
                        self._target[track.propName] = lastKf.rawValue;
                    }
                    track.setFinished();
                }
                else {
                    tracks.push(track);
                }
            }
        }
        if (tracks.length || this._force) {
            var clip = new animation_Clip({
                life: maxTime,
                loop: this._loop,
                delay: this._delay || 0,
                onframe: function (percent) {
                    self._started = 2;
                    var additiveAnimators = self._additiveAnimators;
                    if (additiveAnimators) {
                        var stillHasAdditiveAnimator = false;
                        for (var i = 0; i < additiveAnimators.length; i++) {
                            if (additiveAnimators[i]._clip) {
                                stillHasAdditiveAnimator = true;
                                break;
                            }
                        }
                        if (!stillHasAdditiveAnimator) {
                            self._additiveAnimators = null;
                        }
                    }
                    for (var i = 0; i < tracks.length; i++) {
                        tracks[i].step(self._target, percent);
                    }
                    var onframeList = self._onframeCbs;
                    if (onframeList) {
                        for (var i = 0; i < onframeList.length; i++) {
                            onframeList[i](self._target, percent);
                        }
                    }
                },
                ondestroy: function () {
                    self._doneCallback();
                }
            });
            this._clip = clip;
            if (this.animation) {
                this.animation.addClip(clip);
            }
            if (easing) {
                clip.setEasing(easing);
            }
        }
        else {
            this._doneCallback();
        }
        return this;
    };
    Animator.prototype.stop = function (forwardToLast) {
        if (!this._clip) {
            return;
        }
        var clip = this._clip;
        if (forwardToLast) {
            clip.onframe(1);
        }
        this._abortedCallback();
    };
    Animator.prototype.delay = function (time) {
        this._delay = time;
        return this;
    };
    Animator.prototype.during = function (cb) {
        if (cb) {
            if (!this._onframeCbs) {
                this._onframeCbs = [];
            }
            this._onframeCbs.push(cb);
        }
        return this;
    };
    Animator.prototype.done = function (cb) {
        if (cb) {
            if (!this._doneCbs) {
                this._doneCbs = [];
            }
            this._doneCbs.push(cb);
        }
        return this;
    };
    Animator.prototype.aborted = function (cb) {
        if (cb) {
            if (!this._abortedCbs) {
                this._abortedCbs = [];
            }
            this._abortedCbs.push(cb);
        }
        return this;
    };
    Animator.prototype.getClip = function () {
        return this._clip;
    };
    Animator.prototype.getTrack = function (propName) {
        return this._tracks[propName];
    };
    Animator.prototype.getTracks = function () {
        var _this = this;
        return Object(util["map"])(this._trackKeys, function (key) { return _this._tracks[key]; });
    };
    Animator.prototype.stopTracks = function (propNames, forwardToLast) {
        if (!propNames.length || !this._clip) {
            return true;
        }
        var tracks = this._tracks;
        var tracksKeys = this._trackKeys;
        for (var i = 0; i < propNames.length; i++) {
            var track = tracks[propNames[i]];
            if (track && !track.isFinished()) {
                if (forwardToLast) {
                    track.step(this._target, 1);
                }
                else if (this._started === 1) {
                    track.step(this._target, 0);
                }
                track.setFinished();
            }
        }
        var allAborted = true;
        for (var i = 0; i < tracksKeys.length; i++) {
            if (!tracks[tracksKeys[i]].isFinished()) {
                allAborted = false;
                break;
            }
        }
        if (allAborted) {
            this._abortedCallback();
        }
        return allAborted;
    };
    Animator.prototype.saveTo = function (target, trackKeys, firstOrLast) {
        if (!target) {
            return;
        }
        trackKeys = trackKeys || this._trackKeys;
        for (var i = 0; i < trackKeys.length; i++) {
            var propName = trackKeys[i];
            var track = this._tracks[propName];
            if (!track || track.isFinished()) {
                continue;
            }
            var kfs = track.keyframes;
            var kf = kfs[firstOrLast ? 0 : kfs.length - 1];
            if (kf) {
                target[propName] = cloneValue(kf.rawValue);
            }
        }
    };
    Animator.prototype.__changeFinalValue = function (finalProps, trackKeys) {
        trackKeys = trackKeys || Object(util["keys"])(finalProps);
        for (var i = 0; i < trackKeys.length; i++) {
            var propName = trackKeys[i];
            var track = this._tracks[propName];
            if (!track) {
                continue;
            }
            var kfs = track.keyframes;
            if (kfs.length > 1) {
                var lastKf = kfs.pop();
                track.addKeyframe(lastKf.time, finalProps[propName]);
                track.prepare(this._maxTime, track.getAdditiveTrack());
            }
        }
    };
    return Animator;
}());
/* harmony default export */ var animation_Animator = (Animator_Animator);

// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/Animation.js




function getTime() {
    return new Date().getTime();
}
var Animation_Animation = (function (_super) {
    tslib_es6_extends(Animation, _super);
    function Animation(opts) {
        var _this = _super.call(this) || this;
        _this._running = false;
        _this._time = 0;
        _this._pausedTime = 0;
        _this._pauseStart = 0;
        _this._paused = false;
        opts = opts || {};
        _this.stage = opts.stage || {};
        return _this;
    }
    Animation.prototype.addClip = function (clip) {
        if (clip.animation) {
            this.removeClip(clip);
        }
        if (!this._head) {
            this._head = this._tail = clip;
        }
        else {
            this._tail.next = clip;
            clip.prev = this._tail;
            clip.next = null;
            this._tail = clip;
        }
        clip.animation = this;
    };
    Animation.prototype.addAnimator = function (animator) {
        animator.animation = this;
        var clip = animator.getClip();
        if (clip) {
            this.addClip(clip);
        }
    };
    Animation.prototype.removeClip = function (clip) {
        if (!clip.animation) {
            return;
        }
        var prev = clip.prev;
        var next = clip.next;
        if (prev) {
            prev.next = next;
        }
        else {
            this._head = next;
        }
        if (next) {
            next.prev = prev;
        }
        else {
            this._tail = prev;
        }
        clip.next = clip.prev = clip.animation = null;
    };
    Animation.prototype.removeAnimator = function (animator) {
        var clip = animator.getClip();
        if (clip) {
            this.removeClip(clip);
        }
        animator.animation = null;
    };
    Animation.prototype.update = function (notTriggerFrameAndStageUpdate) {
        var time = getTime() - this._pausedTime;
        var delta = time - this._time;
        var clip = this._head;
        while (clip) {
            var nextClip = clip.next;
            var finished = clip.step(time, delta);
            if (finished) {
                clip.ondestroy();
                this.removeClip(clip);
                clip = nextClip;
            }
            else {
                clip = nextClip;
            }
        }
        this._time = time;
        if (!notTriggerFrameAndStageUpdate) {
            this.trigger('frame', delta);
            this.stage.update && this.stage.update();
        }
    };
    Animation.prototype._startLoop = function () {
        var self = this;
        this._running = true;
        function step() {
            if (self._running) {
                animation_requestAnimationFrame(step);
                !self._paused && self.update();
            }
        }
        animation_requestAnimationFrame(step);
    };
    Animation.prototype.start = function () {
        if (this._running) {
            return;
        }
        this._time = getTime();
        this._pausedTime = 0;
        this._startLoop();
    };
    Animation.prototype.stop = function () {
        this._running = false;
    };
    Animation.prototype.pause = function () {
        if (!this._paused) {
            this._pauseStart = getTime();
            this._paused = true;
        }
    };
    Animation.prototype.resume = function () {
        if (this._paused) {
            this._pausedTime += getTime() - this._pauseStart;
            this._paused = false;
        }
    };
    Animation.prototype.clear = function () {
        var clip = this._head;
        while (clip) {
            var nextClip = clip.next;
            clip.prev = clip.next = clip.animation = null;
            clip = nextClip;
        }
        this._head = this._tail = null;
    };
    Animation.prototype.isFinished = function () {
        return this._head == null;
    };
    Animation.prototype.animate = function (target, options) {
        options = options || {};
        this.start();
        var animator = new animation_Animator(target, options.loop);
        this.addAnimator(animator);
        return animator;
    };
    return Animation;
}(core_Eventful));
/* harmony default export */ var animation_Animation = (Animation_Animation);

// CONCATENATED MODULE: ./node_modules/zrender/lib/dom/HandlerProxy.js





var TOUCH_CLICK_DELAY = 300;
var globalEventSupported = env["a" /* default */].domSupported;
var localNativeListenerNames = (function () {
    var mouseHandlerNames = [
        'click', 'dblclick', 'mousewheel', 'wheel', 'mouseout',
        'mouseup', 'mousedown', 'mousemove', 'contextmenu'
    ];
    var touchHandlerNames = [
        'touchstart', 'touchend', 'touchmove'
    ];
    var pointerEventNameMap = {
        pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1
    };
    var pointerHandlerNames = util["map"](mouseHandlerNames, function (name) {
        var nm = name.replace('mouse', 'pointer');
        return pointerEventNameMap.hasOwnProperty(nm) ? nm : name;
    });
    return {
        mouse: mouseHandlerNames,
        touch: touchHandlerNames,
        pointer: pointerHandlerNames
    };
})();
var globalNativeListenerNames = {
    mouse: ['mousemove', 'mouseup'],
    pointer: ['pointermove', 'pointerup']
};
var wheelEventSupported = false;
function isPointerFromTouch(event) {
    var pointerType = event.pointerType;
    return pointerType === 'pen' || pointerType === 'touch';
}
function setTouchTimer(scope) {
    scope.touching = true;
    if (scope.touchTimer != null) {
        clearTimeout(scope.touchTimer);
        scope.touchTimer = null;
    }
    scope.touchTimer = setTimeout(function () {
        scope.touching = false;
        scope.touchTimer = null;
    }, 700);
}
function markTouch(event) {
    event && (event.zrByTouch = true);
}
function normalizeGlobalEvent(instance, event) {
    return normalizeEvent(instance.dom, new HandlerProxy_FakeGlobalEvent(instance, event), true);
}
function isLocalEl(instance, el) {
    var elTmp = el;
    var isLocal = false;
    while (elTmp && elTmp.nodeType !== 9
        && !(isLocal = elTmp.domBelongToZr
            || (elTmp !== el && elTmp === instance.painterRoot))) {
        elTmp = elTmp.parentNode;
    }
    return isLocal;
}
var HandlerProxy_FakeGlobalEvent = (function () {
    function FakeGlobalEvent(instance, event) {
        this.stopPropagation = util["noop"];
        this.stopImmediatePropagation = util["noop"];
        this.preventDefault = util["noop"];
        this.type = event.type;
        this.target = this.currentTarget = instance.dom;
        this.pointerType = event.pointerType;
        this.clientX = event.clientX;
        this.clientY = event.clientY;
    }
    return FakeGlobalEvent;
}());
var localDOMHandlers = {
    mousedown: function (event) {
        event = normalizeEvent(this.dom, event);
        this.__mayPointerCapture = [event.zrX, event.zrY];
        this.trigger('mousedown', event);
    },
    mousemove: function (event) {
        event = normalizeEvent(this.dom, event);
        var downPoint = this.__mayPointerCapture;
        if (downPoint && (event.zrX !== downPoint[0] || event.zrY !== downPoint[1])) {
            this.__togglePointerCapture(true);
        }
        this.trigger('mousemove', event);
    },
    mouseup: function (event) {
        event = normalizeEvent(this.dom, event);
        this.__togglePointerCapture(false);
        this.trigger('mouseup', event);
    },
    mouseout: function (event) {
        event = normalizeEvent(this.dom, event);
        var element = event.toElement || event.relatedTarget;
        if (!isLocalEl(this, element)) {
            if (this.__pointerCapturing) {
                event.zrEventControl = 'no_globalout';
            }
            this.trigger('mouseout', event);
        }
    },
    wheel: function (event) {
        wheelEventSupported = true;
        event = normalizeEvent(this.dom, event);
        this.trigger('mousewheel', event);
    },
    mousewheel: function (event) {
        if (wheelEventSupported) {
            return;
        }
        event = normalizeEvent(this.dom, event);
        this.trigger('mousewheel', event);
    },
    touchstart: function (event) {
        event = normalizeEvent(this.dom, event);
        markTouch(event);
        this.__lastTouchMoment = new Date();
        this.handler.processGesture(event, 'start');
        localDOMHandlers.mousemove.call(this, event);
        localDOMHandlers.mousedown.call(this, event);
    },
    touchmove: function (event) {
        event = normalizeEvent(this.dom, event);
        markTouch(event);
        this.handler.processGesture(event, 'change');
        localDOMHandlers.mousemove.call(this, event);
    },
    touchend: function (event) {
        event = normalizeEvent(this.dom, event);
        markTouch(event);
        this.handler.processGesture(event, 'end');
        localDOMHandlers.mouseup.call(this, event);
        if (+new Date() - (+this.__lastTouchMoment) < TOUCH_CLICK_DELAY) {
            localDOMHandlers.click.call(this, event);
        }
    },
    pointerdown: function (event) {
        localDOMHandlers.mousedown.call(this, event);
    },
    pointermove: function (event) {
        if (!isPointerFromTouch(event)) {
            localDOMHandlers.mousemove.call(this, event);
        }
    },
    pointerup: function (event) {
        localDOMHandlers.mouseup.call(this, event);
    },
    pointerout: function (event) {
        if (!isPointerFromTouch(event)) {
            localDOMHandlers.mouseout.call(this, event);
        }
    }
};
util["each"](['click', 'dblclick', 'contextmenu'], function (name) {
    localDOMHandlers[name] = function (event) {
        event = normalizeEvent(this.dom, event);
        this.trigger(name, event);
    };
});
var globalDOMHandlers = {
    pointermove: function (event) {
        if (!isPointerFromTouch(event)) {
            globalDOMHandlers.mousemove.call(this, event);
        }
    },
    pointerup: function (event) {
        globalDOMHandlers.mouseup.call(this, event);
    },
    mousemove: function (event) {
        this.trigger('mousemove', event);
    },
    mouseup: function (event) {
        var pointerCaptureReleasing = this.__pointerCapturing;
        this.__togglePointerCapture(false);
        this.trigger('mouseup', event);
        if (pointerCaptureReleasing) {
            event.zrEventControl = 'only_globalout';
            this.trigger('mouseout', event);
        }
    }
};
function mountLocalDOMEventListeners(instance, scope) {
    var domHandlers = scope.domHandlers;
    if (env["a" /* default */].pointerEventsSupported) {
        util["each"](localNativeListenerNames.pointer, function (nativeEventName) {
            mountSingleDOMEventListener(scope, nativeEventName, function (event) {
                domHandlers[nativeEventName].call(instance, event);
            });
        });
    }
    else {
        if (env["a" /* default */].touchEventsSupported) {
            util["each"](localNativeListenerNames.touch, function (nativeEventName) {
                mountSingleDOMEventListener(scope, nativeEventName, function (event) {
                    domHandlers[nativeEventName].call(instance, event);
                    setTouchTimer(scope);
                });
            });
        }
        util["each"](localNativeListenerNames.mouse, function (nativeEventName) {
            mountSingleDOMEventListener(scope, nativeEventName, function (event) {
                event = getNativeEvent(event);
                if (!scope.touching) {
                    domHandlers[nativeEventName].call(instance, event);
                }
            });
        });
    }
}
function mountGlobalDOMEventListeners(instance, scope) {
    if (env["a" /* default */].pointerEventsSupported) {
        util["each"](globalNativeListenerNames.pointer, mount);
    }
    else if (!env["a" /* default */].touchEventsSupported) {
        util["each"](globalNativeListenerNames.mouse, mount);
    }
    function mount(nativeEventName) {
        function nativeEventListener(event) {
            event = getNativeEvent(event);
            if (!isLocalEl(instance, event.target)) {
                event = normalizeGlobalEvent(instance, event);
                scope.domHandlers[nativeEventName].call(instance, event);
            }
        }
        mountSingleDOMEventListener(scope, nativeEventName, nativeEventListener, { capture: true });
    }
}
function mountSingleDOMEventListener(scope, nativeEventName, listener, opt) {
    scope.mounted[nativeEventName] = listener;
    scope.listenerOpts[nativeEventName] = opt;
    addEventListener(scope.domTarget, nativeEventName, listener, opt);
}
function unmountDOMEventListeners(scope) {
    var mounted = scope.mounted;
    for (var nativeEventName in mounted) {
        if (mounted.hasOwnProperty(nativeEventName)) {
            removeEventListener(scope.domTarget, nativeEventName, mounted[nativeEventName], scope.listenerOpts[nativeEventName]);
        }
    }
    scope.mounted = {};
}
var DOMHandlerScope = (function () {
    function DOMHandlerScope(domTarget, domHandlers) {
        this.mounted = {};
        this.listenerOpts = {};
        this.touching = false;
        this.domTarget = domTarget;
        this.domHandlers = domHandlers;
    }
    return DOMHandlerScope;
}());
var HandlerProxy_HandlerDomProxy = (function (_super) {
    tslib_es6_extends(HandlerDomProxy, _super);
    function HandlerDomProxy(dom, painterRoot) {
        var _this = _super.call(this) || this;
        _this.__pointerCapturing = false;
        _this.dom = dom;
        _this.painterRoot = painterRoot;
        _this._localHandlerScope = new DOMHandlerScope(dom, localDOMHandlers);
        if (globalEventSupported) {
            _this._globalHandlerScope = new DOMHandlerScope(document, globalDOMHandlers);
        }
        mountLocalDOMEventListeners(_this, _this._localHandlerScope);
        return _this;
    }
    HandlerDomProxy.prototype.dispose = function () {
        unmountDOMEventListeners(this._localHandlerScope);
        if (globalEventSupported) {
            unmountDOMEventListeners(this._globalHandlerScope);
        }
    };
    HandlerDomProxy.prototype.setCursor = function (cursorStyle) {
        this.dom.style && (this.dom.style.cursor = cursorStyle || 'default');
    };
    HandlerDomProxy.prototype.__togglePointerCapture = function (isPointerCapturing) {
        this.__mayPointerCapture = null;
        if (globalEventSupported
            && ((+this.__pointerCapturing) ^ (+isPointerCapturing))) {
            this.__pointerCapturing = isPointerCapturing;
            var globalHandlerScope = this._globalHandlerScope;
            isPointerCapturing
                ? mountGlobalDOMEventListeners(this, globalHandlerScope)
                : unmountDOMEventListeners(globalHandlerScope);
        }
    };
    return HandlerDomProxy;
}(core_Eventful));
/* harmony default export */ var HandlerProxy = (HandlerProxy_HandlerDomProxy);

// CONCATENATED MODULE: ./node_modules/zrender/lib/config.js

var config_dpr = 1;
if (env["a" /* default */].hasGlobalWindow) {
    config_dpr = Math.max(window.devicePixelRatio
        || (window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI)
        || 1, 1);
}
var debugMode = 0;
var devicePixelRatio = config_dpr;
var DARK_MODE_THRESHOLD = 0.4;
var DARK_LABEL_COLOR = '#333';
var LIGHT_LABEL_COLOR = '#ccc';
var LIGHTER_LABEL_COLOR = '#eee';

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/Transformable.js


var mIdentity = identity;
var Transformable_EPSILON = 5e-5;
function Transformable_isNotAroundZero(val) {
    return val > Transformable_EPSILON || val < -Transformable_EPSILON;
}
var scaleTmp = [];
var tmpTransform = [];
var originTransform = matrix_create();
var Transformable_abs = Math.abs;
var Transformable_Transformable = (function () {
    function Transformable() {
    }
    Transformable.prototype.getLocalTransform = function (m) {
        return Transformable.getLocalTransform(this, m);
    };
    Transformable.prototype.setPosition = function (arr) {
        this.x = arr[0];
        this.y = arr[1];
    };
    Transformable.prototype.setScale = function (arr) {
        this.scaleX = arr[0];
        this.scaleY = arr[1];
    };
    Transformable.prototype.setSkew = function (arr) {
        this.skewX = arr[0];
        this.skewY = arr[1];
    };
    Transformable.prototype.setOrigin = function (arr) {
        this.originX = arr[0];
        this.originY = arr[1];
    };
    Transformable.prototype.needLocalTransform = function () {
        return Transformable_isNotAroundZero(this.rotation)
            || Transformable_isNotAroundZero(this.x)
            || Transformable_isNotAroundZero(this.y)
            || Transformable_isNotAroundZero(this.scaleX - 1)
            || Transformable_isNotAroundZero(this.scaleY - 1)
            || Transformable_isNotAroundZero(this.skewX)
            || Transformable_isNotAroundZero(this.skewY);
    };
    Transformable.prototype.updateTransform = function () {
        var parentTransform = this.parent && this.parent.transform;
        var needLocalTransform = this.needLocalTransform();
        var m = this.transform;
        if (!(needLocalTransform || parentTransform)) {
            if (m) {
                mIdentity(m);
                this.invTransform = null;
            }
            return;
        }
        m = m || matrix_create();
        if (needLocalTransform) {
            this.getLocalTransform(m);
        }
        else {
            mIdentity(m);
        }
        if (parentTransform) {
            if (needLocalTransform) {
                matrix_mul(m, parentTransform, m);
            }
            else {
                matrix_copy(m, parentTransform);
            }
        }
        this.transform = m;
        this._resolveGlobalScaleRatio(m);
    };
    Transformable.prototype._resolveGlobalScaleRatio = function (m) {
        var globalScaleRatio = this.globalScaleRatio;
        if (globalScaleRatio != null && globalScaleRatio !== 1) {
            this.getGlobalScale(scaleTmp);
            var relX = scaleTmp[0] < 0 ? -1 : 1;
            var relY = scaleTmp[1] < 0 ? -1 : 1;
            var sx = ((scaleTmp[0] - relX) * globalScaleRatio + relX) / scaleTmp[0] || 0;
            var sy = ((scaleTmp[1] - relY) * globalScaleRatio + relY) / scaleTmp[1] || 0;
            m[0] *= sx;
            m[1] *= sx;
            m[2] *= sy;
            m[3] *= sy;
        }
        this.invTransform = this.invTransform || matrix_create();
        matrix_invert(this.invTransform, m);
    };
    Transformable.prototype.getComputedTransform = function () {
        var transformNode = this;
        var ancestors = [];
        while (transformNode) {
            ancestors.push(transformNode);
            transformNode = transformNode.parent;
        }
        while (transformNode = ancestors.pop()) {
            transformNode.updateTransform();
        }
        return this.transform;
    };
    Transformable.prototype.setLocalTransform = function (m) {
        if (!m) {
            return;
        }
        var sx = m[0] * m[0] + m[1] * m[1];
        var sy = m[2] * m[2] + m[3] * m[3];
        var rotation = Math.atan2(m[1], m[0]);
        var shearX = Math.PI / 2 + rotation - Math.atan2(m[3], m[2]);
        sy = Math.sqrt(sy) * Math.cos(shearX);
        sx = Math.sqrt(sx);
        this.skewX = shearX;
        this.skewY = 0;
        this.rotation = -rotation;
        this.x = +m[4];
        this.y = +m[5];
        this.scaleX = sx;
        this.scaleY = sy;
        this.originX = 0;
        this.originY = 0;
    };
    Transformable.prototype.decomposeTransform = function () {
        if (!this.transform) {
            return;
        }
        var parent = this.parent;
        var m = this.transform;
        if (parent && parent.transform) {
            parent.invTransform = parent.invTransform || matrix_create();
            matrix_mul(tmpTransform, parent.invTransform, m);
            m = tmpTransform;
        }
        var ox = this.originX;
        var oy = this.originY;
        if (ox || oy) {
            originTransform[4] = ox;
            originTransform[5] = oy;
            matrix_mul(tmpTransform, m, originTransform);
            tmpTransform[4] -= ox;
            tmpTransform[5] -= oy;
            m = tmpTransform;
        }
        this.setLocalTransform(m);
    };
    Transformable.prototype.getGlobalScale = function (out) {
        var m = this.transform;
        out = out || [];
        if (!m) {
            out[0] = 1;
            out[1] = 1;
            return out;
        }
        out[0] = Math.sqrt(m[0] * m[0] + m[1] * m[1]);
        out[1] = Math.sqrt(m[2] * m[2] + m[3] * m[3]);
        if (m[0] < 0) {
            out[0] = -out[0];
        }
        if (m[3] < 0) {
            out[1] = -out[1];
        }
        return out;
    };
    Transformable.prototype.transformCoordToLocal = function (x, y) {
        var v2 = [x, y];
        var invTransform = this.invTransform;
        if (invTransform) {
            applyTransform(v2, v2, invTransform);
        }
        return v2;
    };
    Transformable.prototype.transformCoordToGlobal = function (x, y) {
        var v2 = [x, y];
        var transform = this.transform;
        if (transform) {
            applyTransform(v2, v2, transform);
        }
        return v2;
    };
    Transformable.prototype.getLineScale = function () {
        var m = this.transform;
        return m && Transformable_abs(m[0] - 1) > 1e-10 && Transformable_abs(m[3] - 1) > 1e-10
            ? Math.sqrt(Transformable_abs(m[0] * m[3] - m[2] * m[1]))
            : 1;
    };
    Transformable.prototype.copyTransform = function (source) {
        copyTransform(this, source);
    };
    Transformable.getLocalTransform = function (target, m) {
        m = m || [];
        var ox = target.originX || 0;
        var oy = target.originY || 0;
        var sx = target.scaleX;
        var sy = target.scaleY;
        var ax = target.anchorX;
        var ay = target.anchorY;
        var rotation = target.rotation || 0;
        var x = target.x;
        var y = target.y;
        var skewX = target.skewX ? Math.tan(target.skewX) : 0;
        var skewY = target.skewY ? Math.tan(-target.skewY) : 0;
        if (ox || oy || ax || ay) {
            var dx = ox + ax;
            var dy = oy + ay;
            m[4] = -dx * sx - skewX * dy * sy;
            m[5] = -dy * sy - skewY * dx * sx;
        }
        else {
            m[4] = m[5] = 0;
        }
        m[0] = sx;
        m[3] = sy;
        m[1] = skewY * sx;
        m[2] = skewX * sy;
        rotation && matrix_rotate(m, m, rotation);
        m[4] += ox + x;
        m[5] += oy + y;
        return m;
    };
    Transformable.initDefaultProps = (function () {
        var proto = Transformable.prototype;
        proto.scaleX =
            proto.scaleY =
                proto.globalScaleRatio = 1;
        proto.x =
            proto.y =
                proto.originX =
                    proto.originY =
                        proto.skewX =
                            proto.skewY =
                                proto.rotation =
                                    proto.anchorX =
                                        proto.anchorY = 0;
    })();
    return Transformable;
}());
;
var TRANSFORMABLE_PROPS = [
    'x', 'y', 'originX', 'originY', 'anchorX', 'anchorY', 'rotation', 'scaleX', 'scaleY', 'skewX', 'skewY'
];
function copyTransform(target, source) {
    for (var i = 0; i < TRANSFORMABLE_PROPS.length; i++) {
        var propName = TRANSFORMABLE_PROPS[i];
        target[propName] = source[propName];
    }
}
/* harmony default export */ var core_Transformable = (Transformable_Transformable);

// EXTERNAL MODULE: ./node_modules/zrender/lib/core/LRU.js
var LRU = __webpack_require__(114);

// EXTERNAL MODULE: ./node_modules/zrender/lib/core/platform.js
var platform = __webpack_require__(34);

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/text.js



var textWidthCache = {};
function getWidth(text, font) {
    font = font || platform["a" /* DEFAULT_FONT */];
    var cacheOfFont = textWidthCache[font];
    if (!cacheOfFont) {
        cacheOfFont = textWidthCache[font] = new LRU["a" /* default */](500);
    }
    var width = cacheOfFont.get(text);
    if (width == null) {
        width = platform["d" /* platformApi */].measureText(text, font).width;
        cacheOfFont.put(text, width);
    }
    return width;
}
function innerGetBoundingRect(text, font, textAlign, textBaseline) {
    var width = getWidth(text, font);
    var height = getLineHeight(font);
    var x = adjustTextX(0, width, textAlign);
    var y = adjustTextY(0, height, textBaseline);
    var rect = new core_BoundingRect(x, y, width, height);
    return rect;
}
function getBoundingRect(text, font, textAlign, textBaseline) {
    var textLines = ((text || '') + '').split('\n');
    var len = textLines.length;
    if (len === 1) {
        return innerGetBoundingRect(textLines[0], font, textAlign, textBaseline);
    }
    else {
        var uniondRect = new core_BoundingRect(0, 0, 0, 0);
        for (var i = 0; i < textLines.length; i++) {
            var rect = innerGetBoundingRect(textLines[i], font, textAlign, textBaseline);
            i === 0 ? uniondRect.copy(rect) : uniondRect.union(rect);
        }
        return uniondRect;
    }
}
function adjustTextX(x, width, textAlign) {
    if (textAlign === 'right') {
        x -= width;
    }
    else if (textAlign === 'center') {
        x -= width / 2;
    }
    return x;
}
function adjustTextY(y, height, verticalAlign) {
    if (verticalAlign === 'middle') {
        y -= height / 2;
    }
    else if (verticalAlign === 'bottom') {
        y -= height;
    }
    return y;
}
function getLineHeight(font) {
    return getWidth('国', font);
}
function measureText(text, font) {
    return platform["d" /* platformApi */].measureText(text, font);
}
function parsePercent(value, maxValue) {
    if (typeof value === 'string') {
        if (value.lastIndexOf('%') >= 0) {
            return parseFloat(value) / 100 * maxValue;
        }
        return parseFloat(value);
    }
    return value;
}
function calculateTextPosition(out, opts, rect) {
    var textPosition = opts.position || 'inside';
    var distance = opts.distance != null ? opts.distance : 5;
    var height = rect.height;
    var width = rect.width;
    var halfHeight = height / 2;
    var x = rect.x;
    var y = rect.y;
    var textAlign = 'left';
    var textVerticalAlign = 'top';
    if (textPosition instanceof Array) {
        x += parsePercent(textPosition[0], rect.width);
        y += parsePercent(textPosition[1], rect.height);
        textAlign = null;
        textVerticalAlign = null;
    }
    else {
        switch (textPosition) {
            case 'left':
                x -= distance;
                y += halfHeight;
                textAlign = 'right';
                textVerticalAlign = 'middle';
                break;
            case 'right':
                x += distance + width;
                y += halfHeight;
                textVerticalAlign = 'middle';
                break;
            case 'top':
                x += width / 2;
                y -= distance;
                textAlign = 'center';
                textVerticalAlign = 'bottom';
                break;
            case 'bottom':
                x += width / 2;
                y += height + distance;
                textAlign = 'center';
                break;
            case 'inside':
                x += width / 2;
                y += halfHeight;
                textAlign = 'center';
                textVerticalAlign = 'middle';
                break;
            case 'insideLeft':
                x += distance;
                y += halfHeight;
                textVerticalAlign = 'middle';
                break;
            case 'insideRight':
                x += width - distance;
                y += halfHeight;
                textAlign = 'right';
                textVerticalAlign = 'middle';
                break;
            case 'insideTop':
                x += width / 2;
                y += distance;
                textAlign = 'center';
                break;
            case 'insideBottom':
                x += width / 2;
                y += height - distance;
                textAlign = 'center';
                textVerticalAlign = 'bottom';
                break;
            case 'insideTopLeft':
                x += distance;
                y += distance;
                break;
            case 'insideTopRight':
                x += width - distance;
                y += distance;
                textAlign = 'right';
                break;
            case 'insideBottomLeft':
                x += distance;
                y += height - distance;
                textVerticalAlign = 'bottom';
                break;
            case 'insideBottomRight':
                x += width - distance;
                y += height - distance;
                textAlign = 'right';
                textVerticalAlign = 'bottom';
                break;
        }
    }
    out = out || {};
    out.x = x;
    out.y = y;
    out.align = textAlign;
    out.verticalAlign = textVerticalAlign;
    return out;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/Element.js









var PRESERVED_NORMAL_STATE = '__zr_normal__';
var PRIMARY_STATES_KEYS = TRANSFORMABLE_PROPS.concat(['ignore']);
var DEFAULT_ANIMATABLE_MAP = Object(util["reduce"])(TRANSFORMABLE_PROPS, function (obj, key) {
    obj[key] = true;
    return obj;
}, { ignore: false });
var tmpTextPosCalcRes = {};
var tmpBoundingRect = new core_BoundingRect(0, 0, 0, 0);
var Element_Element = (function () {
    function Element(props) {
        this.id = Object(util["guid"])();
        this.animators = [];
        this.currentStates = [];
        this.states = {};
        this._init(props);
    }
    Element.prototype._init = function (props) {
        this.attr(props);
    };
    Element.prototype.drift = function (dx, dy, e) {
        switch (this.draggable) {
            case 'horizontal':
                dy = 0;
                break;
            case 'vertical':
                dx = 0;
                break;
        }
        var m = this.transform;
        if (!m) {
            m = this.transform = [1, 0, 0, 1, 0, 0];
        }
        m[4] += dx;
        m[5] += dy;
        this.decomposeTransform();
        this.markRedraw();
    };
    Element.prototype.beforeUpdate = function () { };
    Element.prototype.afterUpdate = function () { };
    Element.prototype.update = function () {
        this.updateTransform();
        if (this.__dirty) {
            this.updateInnerText();
        }
    };
    Element.prototype.updateInnerText = function (forceUpdate) {
        var textEl = this._textContent;
        if (textEl && (!textEl.ignore || forceUpdate)) {
            if (!this.textConfig) {
                this.textConfig = {};
            }
            var textConfig = this.textConfig;
            var isLocal = textConfig.local;
            var innerTransformable = textEl.innerTransformable;
            var textAlign = void 0;
            var textVerticalAlign = void 0;
            var textStyleChanged = false;
            innerTransformable.parent = isLocal ? this : null;
            var innerOrigin = false;
            innerTransformable.copyTransform(textEl);
            if (textConfig.position != null) {
                var layoutRect = tmpBoundingRect;
                if (textConfig.layoutRect) {
                    layoutRect.copy(textConfig.layoutRect);
                }
                else {
                    layoutRect.copy(this.getBoundingRect());
                }
                if (!isLocal) {
                    layoutRect.applyTransform(this.transform);
                }
                if (this.calculateTextPosition) {
                    this.calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);
                }
                else {
                    calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);
                }
                innerTransformable.x = tmpTextPosCalcRes.x;
                innerTransformable.y = tmpTextPosCalcRes.y;
                textAlign = tmpTextPosCalcRes.align;
                textVerticalAlign = tmpTextPosCalcRes.verticalAlign;
                var textOrigin = textConfig.origin;
                if (textOrigin && textConfig.rotation != null) {
                    var relOriginX = void 0;
                    var relOriginY = void 0;
                    if (textOrigin === 'center') {
                        relOriginX = layoutRect.width * 0.5;
                        relOriginY = layoutRect.height * 0.5;
                    }
                    else {
                        relOriginX = parsePercent(textOrigin[0], layoutRect.width);
                        relOriginY = parsePercent(textOrigin[1], layoutRect.height);
                    }
                    innerOrigin = true;
                    innerTransformable.originX = -innerTransformable.x + relOriginX + (isLocal ? 0 : layoutRect.x);
                    innerTransformable.originY = -innerTransformable.y + relOriginY + (isLocal ? 0 : layoutRect.y);
                }
            }
            if (textConfig.rotation != null) {
                innerTransformable.rotation = textConfig.rotation;
            }
            var textOffset = textConfig.offset;
            if (textOffset) {
                innerTransformable.x += textOffset[0];
                innerTransformable.y += textOffset[1];
                if (!innerOrigin) {
                    innerTransformable.originX = -textOffset[0];
                    innerTransformable.originY = -textOffset[1];
                }
            }
            var isInside = textConfig.inside == null
                ? (typeof textConfig.position === 'string' && textConfig.position.indexOf('inside') >= 0)
                : textConfig.inside;
            var innerTextDefaultStyle = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {});
            var textFill = void 0;
            var textStroke = void 0;
            var autoStroke = void 0;
            if (isInside && this.canBeInsideText()) {
                textFill = textConfig.insideFill;
                textStroke = textConfig.insideStroke;
                if (textFill == null || textFill === 'auto') {
                    textFill = this.getInsideTextFill();
                }
                if (textStroke == null || textStroke === 'auto') {
                    textStroke = this.getInsideTextStroke(textFill);
                    autoStroke = true;
                }
            }
            else {
                textFill = textConfig.outsideFill;
                textStroke = textConfig.outsideStroke;
                if (textFill == null || textFill === 'auto') {
                    textFill = this.getOutsideFill();
                }
                if (textStroke == null || textStroke === 'auto') {
                    textStroke = this.getOutsideStroke(textFill);
                    autoStroke = true;
                }
            }
            textFill = textFill || '#000';
            if (textFill !== innerTextDefaultStyle.fill
                || textStroke !== innerTextDefaultStyle.stroke
                || autoStroke !== innerTextDefaultStyle.autoStroke
                || textAlign !== innerTextDefaultStyle.align
                || textVerticalAlign !== innerTextDefaultStyle.verticalAlign) {
                textStyleChanged = true;
                innerTextDefaultStyle.fill = textFill;
                innerTextDefaultStyle.stroke = textStroke;
                innerTextDefaultStyle.autoStroke = autoStroke;
                innerTextDefaultStyle.align = textAlign;
                innerTextDefaultStyle.verticalAlign = textVerticalAlign;
                textEl.setDefaultTextStyle(innerTextDefaultStyle);
            }
            textEl.__dirty |= REDRAW_BIT;
            if (textStyleChanged) {
                textEl.dirtyStyle(true);
            }
        }
    };
    Element.prototype.canBeInsideText = function () {
        return true;
    };
    Element.prototype.getInsideTextFill = function () {
        return '#fff';
    };
    Element.prototype.getInsideTextStroke = function (textFill) {
        return '#000';
    };
    Element.prototype.getOutsideFill = function () {
        return this.__zr && this.__zr.isDarkMode() ? LIGHT_LABEL_COLOR : DARK_LABEL_COLOR;
    };
    Element.prototype.getOutsideStroke = function (textFill) {
        var backgroundColor = this.__zr && this.__zr.getBackgroundColor();
        var colorArr = typeof backgroundColor === 'string' && Object(tool_color["parse"])(backgroundColor);
        if (!colorArr) {
            colorArr = [255, 255, 255, 1];
        }
        var alpha = colorArr[3];
        var isDark = this.__zr.isDarkMode();
        for (var i = 0; i < 3; i++) {
            colorArr[i] = colorArr[i] * alpha + (isDark ? 0 : 255) * (1 - alpha);
        }
        colorArr[3] = 1;
        return Object(tool_color["stringify"])(colorArr, 'rgba');
    };
    Element.prototype.traverse = function (cb, context) { };
    Element.prototype.attrKV = function (key, value) {
        if (key === 'textConfig') {
            this.setTextConfig(value);
        }
        else if (key === 'textContent') {
            this.setTextContent(value);
        }
        else if (key === 'clipPath') {
            this.setClipPath(value);
        }
        else if (key === 'extra') {
            this.extra = this.extra || {};
            Object(util["extend"])(this.extra, value);
        }
        else {
            this[key] = value;
        }
    };
    Element.prototype.hide = function () {
        this.ignore = true;
        this.markRedraw();
    };
    Element.prototype.show = function () {
        this.ignore = false;
        this.markRedraw();
    };
    Element.prototype.attr = function (keyOrObj, value) {
        if (typeof keyOrObj === 'string') {
            this.attrKV(keyOrObj, value);
        }
        else if (Object(util["isObject"])(keyOrObj)) {
            var obj = keyOrObj;
            var keysArr = Object(util["keys"])(obj);
            for (var i = 0; i < keysArr.length; i++) {
                var key = keysArr[i];
                this.attrKV(key, keyOrObj[key]);
            }
        }
        this.markRedraw();
        return this;
    };
    Element.prototype.saveCurrentToNormalState = function (toState) {
        this._innerSaveToNormal(toState);
        var normalState = this._normalState;
        for (var i = 0; i < this.animators.length; i++) {
            var animator = this.animators[i];
            var fromStateTransition = animator.__fromStateTransition;
            if (animator.getLoop() || fromStateTransition && fromStateTransition !== PRESERVED_NORMAL_STATE) {
                continue;
            }
            var targetName = animator.targetName;
            var target = targetName
                ? normalState[targetName] : normalState;
            animator.saveTo(target);
        }
    };
    Element.prototype._innerSaveToNormal = function (toState) {
        var normalState = this._normalState;
        if (!normalState) {
            normalState = this._normalState = {};
        }
        if (toState.textConfig && !normalState.textConfig) {
            normalState.textConfig = this.textConfig;
        }
        this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);
    };
    Element.prototype._savePrimaryToNormal = function (toState, normalState, primaryKeys) {
        for (var i = 0; i < primaryKeys.length; i++) {
            var key = primaryKeys[i];
            if (toState[key] != null && !(key in normalState)) {
                normalState[key] = this[key];
            }
        }
    };
    Element.prototype.hasState = function () {
        return this.currentStates.length > 0;
    };
    Element.prototype.getState = function (name) {
        return this.states[name];
    };
    Element.prototype.ensureState = function (name) {
        var states = this.states;
        if (!states[name]) {
            states[name] = {};
        }
        return states[name];
    };
    Element.prototype.clearStates = function (noAnimation) {
        this.useState(PRESERVED_NORMAL_STATE, false, noAnimation);
    };
    Element.prototype.useState = function (stateName, keepCurrentStates, noAnimation, forceUseHoverLayer) {
        var toNormalState = stateName === PRESERVED_NORMAL_STATE;
        var hasStates = this.hasState();
        if (!hasStates && toNormalState) {
            return;
        }
        var currentStates = this.currentStates;
        var animationCfg = this.stateTransition;
        if (Object(util["indexOf"])(currentStates, stateName) >= 0 && (keepCurrentStates || currentStates.length === 1)) {
            return;
        }
        var state;
        if (this.stateProxy && !toNormalState) {
            state = this.stateProxy(stateName);
        }
        if (!state) {
            state = (this.states && this.states[stateName]);
        }
        if (!state && !toNormalState) {
            Object(util["logError"])("State " + stateName + " not exists.");
            return;
        }
        if (!toNormalState) {
            this.saveCurrentToNormalState(state);
        }
        var useHoverLayer = !!((state && state.hoverLayer) || forceUseHoverLayer);
        if (useHoverLayer) {
            this._toggleHoverLayerFlag(true);
        }
        this._applyStateObj(stateName, state, this._normalState, keepCurrentStates, !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0, animationCfg);
        var textContent = this._textContent;
        var textGuide = this._textGuide;
        if (textContent) {
            textContent.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);
        }
        if (textGuide) {
            textGuide.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);
        }
        if (toNormalState) {
            this.currentStates = [];
            this._normalState = {};
        }
        else {
            if (!keepCurrentStates) {
                this.currentStates = [stateName];
            }
            else {
                this.currentStates.push(stateName);
            }
        }
        this._updateAnimationTargets();
        this.markRedraw();
        if (!useHoverLayer && this.__inHover) {
            this._toggleHoverLayerFlag(false);
            this.__dirty &= ~REDRAW_BIT;
        }
        return state;
    };
    Element.prototype.useStates = function (states, noAnimation, forceUseHoverLayer) {
        if (!states.length) {
            this.clearStates();
        }
        else {
            var stateObjects = [];
            var currentStates = this.currentStates;
            var len = states.length;
            var notChange = len === currentStates.length;
            if (notChange) {
                for (var i = 0; i < len; i++) {
                    if (states[i] !== currentStates[i]) {
                        notChange = false;
                        break;
                    }
                }
            }
            if (notChange) {
                return;
            }
            for (var i = 0; i < len; i++) {
                var stateName = states[i];
                var stateObj = void 0;
                if (this.stateProxy) {
                    stateObj = this.stateProxy(stateName, states);
                }
                if (!stateObj) {
                    stateObj = this.states[stateName];
                }
                if (stateObj) {
                    stateObjects.push(stateObj);
                }
            }
            var lastStateObj = stateObjects[len - 1];
            var useHoverLayer = !!((lastStateObj && lastStateObj.hoverLayer) || forceUseHoverLayer);
            if (useHoverLayer) {
                this._toggleHoverLayerFlag(true);
            }
            var mergedState = this._mergeStates(stateObjects);
            var animationCfg = this.stateTransition;
            this.saveCurrentToNormalState(mergedState);
            this._applyStateObj(states.join(','), mergedState, this._normalState, false, !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0, animationCfg);
            var textContent = this._textContent;
            var textGuide = this._textGuide;
            if (textContent) {
                textContent.useStates(states, noAnimation, useHoverLayer);
            }
            if (textGuide) {
                textGuide.useStates(states, noAnimation, useHoverLayer);
            }
            this._updateAnimationTargets();
            this.currentStates = states.slice();
            this.markRedraw();
            if (!useHoverLayer && this.__inHover) {
                this._toggleHoverLayerFlag(false);
                this.__dirty &= ~REDRAW_BIT;
            }
        }
    };
    Element.prototype.isSilent = function () {
        var isSilent = this.silent;
        var ancestor = this.parent;
        while (!isSilent && ancestor) {
            if (ancestor.silent) {
                isSilent = true;
                break;
            }
            ancestor = ancestor.parent;
        }
        return isSilent;
    };
    Element.prototype._updateAnimationTargets = function () {
        for (var i = 0; i < this.animators.length; i++) {
            var animator = this.animators[i];
            if (animator.targetName) {
                animator.changeTarget(this[animator.targetName]);
            }
        }
    };
    Element.prototype.removeState = function (state) {
        var idx = Object(util["indexOf"])(this.currentStates, state);
        if (idx >= 0) {
            var currentStates = this.currentStates.slice();
            currentStates.splice(idx, 1);
            this.useStates(currentStates);
        }
    };
    Element.prototype.replaceState = function (oldState, newState, forceAdd) {
        var currentStates = this.currentStates.slice();
        var idx = Object(util["indexOf"])(currentStates, oldState);
        var newStateExists = Object(util["indexOf"])(currentStates, newState) >= 0;
        if (idx >= 0) {
            if (!newStateExists) {
                currentStates[idx] = newState;
            }
            else {
                currentStates.splice(idx, 1);
            }
        }
        else if (forceAdd && !newStateExists) {
            currentStates.push(newState);
        }
        this.useStates(currentStates);
    };
    Element.prototype.toggleState = function (state, enable) {
        if (enable) {
            this.useState(state, true);
        }
        else {
            this.removeState(state);
        }
    };
    Element.prototype._mergeStates = function (states) {
        var mergedState = {};
        var mergedTextConfig;
        for (var i = 0; i < states.length; i++) {
            var state = states[i];
            Object(util["extend"])(mergedState, state);
            if (state.textConfig) {
                mergedTextConfig = mergedTextConfig || {};
                Object(util["extend"])(mergedTextConfig, state.textConfig);
            }
        }
        if (mergedTextConfig) {
            mergedState.textConfig = mergedTextConfig;
        }
        return mergedState;
    };
    Element.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {
        var needsRestoreToNormal = !(state && keepCurrentStates);
        if (state && state.textConfig) {
            this.textConfig = Object(util["extend"])({}, keepCurrentStates ? this.textConfig : normalState.textConfig);
            Object(util["extend"])(this.textConfig, state.textConfig);
        }
        else if (needsRestoreToNormal) {
            if (normalState.textConfig) {
                this.textConfig = normalState.textConfig;
            }
        }
        var transitionTarget = {};
        var hasTransition = false;
        for (var i = 0; i < PRIMARY_STATES_KEYS.length; i++) {
            var key = PRIMARY_STATES_KEYS[i];
            var propNeedsTransition = transition && DEFAULT_ANIMATABLE_MAP[key];
            if (state && state[key] != null) {
                if (propNeedsTransition) {
                    hasTransition = true;
                    transitionTarget[key] = state[key];
                }
                else {
                    this[key] = state[key];
                }
            }
            else if (needsRestoreToNormal) {
                if (normalState[key] != null) {
                    if (propNeedsTransition) {
                        hasTransition = true;
                        transitionTarget[key] = normalState[key];
                    }
                    else {
                        this[key] = normalState[key];
                    }
                }
            }
        }
        if (!transition) {
            for (var i = 0; i < this.animators.length; i++) {
                var animator = this.animators[i];
                var targetName = animator.targetName;
                if (!animator.getLoop()) {
                    animator.__changeFinalValue(targetName
                        ? (state || normalState)[targetName]
                        : (state || normalState));
                }
            }
        }
        if (hasTransition) {
            this._transitionState(stateName, transitionTarget, animationCfg);
        }
    };
    Element.prototype._attachComponent = function (componentEl) {
        if (componentEl.__zr && !componentEl.__hostTarget) {
            if (false) {}
            return;
        }
        if (componentEl === this) {
            if (false) {}
            return;
        }
        var zr = this.__zr;
        if (zr) {
            componentEl.addSelfToZr(zr);
        }
        componentEl.__zr = zr;
        componentEl.__hostTarget = this;
    };
    Element.prototype._detachComponent = function (componentEl) {
        if (componentEl.__zr) {
            componentEl.removeSelfFromZr(componentEl.__zr);
        }
        componentEl.__zr = null;
        componentEl.__hostTarget = null;
    };
    Element.prototype.getClipPath = function () {
        return this._clipPath;
    };
    Element.prototype.setClipPath = function (clipPath) {
        if (this._clipPath && this._clipPath !== clipPath) {
            this.removeClipPath();
        }
        this._attachComponent(clipPath);
        this._clipPath = clipPath;
        this.markRedraw();
    };
    Element.prototype.removeClipPath = function () {
        var clipPath = this._clipPath;
        if (clipPath) {
            this._detachComponent(clipPath);
            this._clipPath = null;
            this.markRedraw();
        }
    };
    Element.prototype.getTextContent = function () {
        return this._textContent;
    };
    Element.prototype.setTextContent = function (textEl) {
        var previousTextContent = this._textContent;
        if (previousTextContent === textEl) {
            return;
        }
        if (previousTextContent && previousTextContent !== textEl) {
            this.removeTextContent();
        }
        if (false) {}
        textEl.innerTransformable = new core_Transformable();
        this._attachComponent(textEl);
        this._textContent = textEl;
        this.markRedraw();
    };
    Element.prototype.setTextConfig = function (cfg) {
        if (!this.textConfig) {
            this.textConfig = {};
        }
        Object(util["extend"])(this.textConfig, cfg);
        this.markRedraw();
    };
    Element.prototype.removeTextConfig = function () {
        this.textConfig = null;
        this.markRedraw();
    };
    Element.prototype.removeTextContent = function () {
        var textEl = this._textContent;
        if (textEl) {
            textEl.innerTransformable = null;
            this._detachComponent(textEl);
            this._textContent = null;
            this._innerTextDefaultStyle = null;
            this.markRedraw();
        }
    };
    Element.prototype.getTextGuideLine = function () {
        return this._textGuide;
    };
    Element.prototype.setTextGuideLine = function (guideLine) {
        if (this._textGuide && this._textGuide !== guideLine) {
            this.removeTextGuideLine();
        }
        this._attachComponent(guideLine);
        this._textGuide = guideLine;
        this.markRedraw();
    };
    Element.prototype.removeTextGuideLine = function () {
        var textGuide = this._textGuide;
        if (textGuide) {
            this._detachComponent(textGuide);
            this._textGuide = null;
            this.markRedraw();
        }
    };
    Element.prototype.markRedraw = function () {
        this.__dirty |= REDRAW_BIT;
        var zr = this.__zr;
        if (zr) {
            if (this.__inHover) {
                zr.refreshHover();
            }
            else {
                zr.refresh();
            }
        }
        if (this.__hostTarget) {
            this.__hostTarget.markRedraw();
        }
    };
    Element.prototype.dirty = function () {
        this.markRedraw();
    };
    Element.prototype._toggleHoverLayerFlag = function (inHover) {
        this.__inHover = inHover;
        var textContent = this._textContent;
        var textGuide = this._textGuide;
        if (textContent) {
            textContent.__inHover = inHover;
        }
        if (textGuide) {
            textGuide.__inHover = inHover;
        }
    };
    Element.prototype.addSelfToZr = function (zr) {
        if (this.__zr === zr) {
            return;
        }
        this.__zr = zr;
        var animators = this.animators;
        if (animators) {
            for (var i = 0; i < animators.length; i++) {
                zr.animation.addAnimator(animators[i]);
            }
        }
        if (this._clipPath) {
            this._clipPath.addSelfToZr(zr);
        }
        if (this._textContent) {
            this._textContent.addSelfToZr(zr);
        }
        if (this._textGuide) {
            this._textGuide.addSelfToZr(zr);
        }
    };
    Element.prototype.removeSelfFromZr = function (zr) {
        if (!this.__zr) {
            return;
        }
        this.__zr = null;
        var animators = this.animators;
        if (animators) {
            for (var i = 0; i < animators.length; i++) {
                zr.animation.removeAnimator(animators[i]);
            }
        }
        if (this._clipPath) {
            this._clipPath.removeSelfFromZr(zr);
        }
        if (this._textContent) {
            this._textContent.removeSelfFromZr(zr);
        }
        if (this._textGuide) {
            this._textGuide.removeSelfFromZr(zr);
        }
    };
    Element.prototype.animate = function (key, loop, allowDiscreteAnimation) {
        var target = key ? this[key] : this;
        if (false) {}
        var animator = new animation_Animator(target, loop, allowDiscreteAnimation);
        key && (animator.targetName = key);
        this.addAnimator(animator, key);
        return animator;
    };
    Element.prototype.addAnimator = function (animator, key) {
        var zr = this.__zr;
        var el = this;
        animator.during(function () {
            el.updateDuringAnimation(key);
        }).done(function () {
            var animators = el.animators;
            var idx = Object(util["indexOf"])(animators, animator);
            if (idx >= 0) {
                animators.splice(idx, 1);
            }
        });
        this.animators.push(animator);
        if (zr) {
            zr.animation.addAnimator(animator);
        }
        zr && zr.wakeUp();
    };
    Element.prototype.updateDuringAnimation = function (key) {
        this.markRedraw();
    };
    Element.prototype.stopAnimation = function (scope, forwardToLast) {
        var animators = this.animators;
        var len = animators.length;
        var leftAnimators = [];
        for (var i = 0; i < len; i++) {
            var animator = animators[i];
            if (!scope || scope === animator.scope) {
                animator.stop(forwardToLast);
            }
            else {
                leftAnimators.push(animator);
            }
        }
        this.animators = leftAnimators;
        return this;
    };
    Element.prototype.animateTo = function (target, cfg, animationProps) {
        animateTo(this, target, cfg, animationProps);
    };
    Element.prototype.animateFrom = function (target, cfg, animationProps) {
        animateTo(this, target, cfg, animationProps, true);
    };
    Element.prototype._transitionState = function (stateName, target, cfg, animationProps) {
        var animators = animateTo(this, target, cfg, animationProps);
        for (var i = 0; i < animators.length; i++) {
            animators[i].__fromStateTransition = stateName;
        }
    };
    Element.prototype.getBoundingRect = function () {
        return null;
    };
    Element.prototype.getPaintRect = function () {
        return null;
    };
    Element.initDefaultProps = (function () {
        var elProto = Element.prototype;
        elProto.type = 'element';
        elProto.name = '';
        elProto.ignore =
            elProto.silent =
                elProto.isGroup =
                    elProto.draggable =
                        elProto.dragging =
                            elProto.ignoreClip =
                                elProto.__inHover = false;
        elProto.__dirty = REDRAW_BIT;
        var logs = {};
        function logDeprecatedError(key, xKey, yKey) {
            if (!logs[key + xKey + yKey]) {
                console.warn("DEPRECATED: '" + key + "' has been deprecated. use '" + xKey + "', '" + yKey + "' instead");
                logs[key + xKey + yKey] = true;
            }
        }
        function createLegacyProperty(key, privateKey, xKey, yKey) {
            Object.defineProperty(elProto, key, {
                get: function () {
                    if (false) {}
                    if (!this[privateKey]) {
                        var pos = this[privateKey] = [];
                        enhanceArray(this, pos);
                    }
                    return this[privateKey];
                },
                set: function (pos) {
                    if (false) {}
                    this[xKey] = pos[0];
                    this[yKey] = pos[1];
                    this[privateKey] = pos;
                    enhanceArray(this, pos);
                }
            });
            function enhanceArray(self, pos) {
                Object.defineProperty(pos, 0, {
                    get: function () {
                        return self[xKey];
                    },
                    set: function (val) {
                        self[xKey] = val;
                    }
                });
                Object.defineProperty(pos, 1, {
                    get: function () {
                        return self[yKey];
                    },
                    set: function (val) {
                        self[yKey] = val;
                    }
                });
            }
        }
        if (Object.defineProperty) {
            createLegacyProperty('position', '_legacyPos', 'x', 'y');
            createLegacyProperty('scale', '_legacyScale', 'scaleX', 'scaleY');
            createLegacyProperty('origin', '_legacyOrigin', 'originX', 'originY');
        }
    })();
    return Element;
}());
Object(util["mixin"])(Element_Element, core_Eventful);
Object(util["mixin"])(Element_Element, core_Transformable);
function animateTo(animatable, target, cfg, animationProps, reverse) {
    cfg = cfg || {};
    var animators = [];
    animateToShallow(animatable, '', animatable, target, cfg, animationProps, animators, reverse);
    var finishCount = animators.length;
    var doneHappened = false;
    var cfgDone = cfg.done;
    var cfgAborted = cfg.aborted;
    var doneCb = function () {
        doneHappened = true;
        finishCount--;
        if (finishCount <= 0) {
            doneHappened
                ? (cfgDone && cfgDone())
                : (cfgAborted && cfgAborted());
        }
    };
    var abortedCb = function () {
        finishCount--;
        if (finishCount <= 0) {
            doneHappened
                ? (cfgDone && cfgDone())
                : (cfgAborted && cfgAborted());
        }
    };
    if (!finishCount) {
        cfgDone && cfgDone();
    }
    if (animators.length > 0 && cfg.during) {
        animators[0].during(function (target, percent) {
            cfg.during(percent);
        });
    }
    for (var i = 0; i < animators.length; i++) {
        var animator = animators[i];
        if (doneCb) {
            animator.done(doneCb);
        }
        if (abortedCb) {
            animator.aborted(abortedCb);
        }
        if (cfg.force) {
            animator.duration(cfg.duration);
        }
        animator.start(cfg.easing);
    }
    return animators;
}
function copyArrShallow(source, target, len) {
    for (var i = 0; i < len; i++) {
        source[i] = target[i];
    }
}
function is2DArray(value) {
    return Object(util["isArrayLike"])(value[0]);
}
function copyValue(target, source, key) {
    if (Object(util["isArrayLike"])(source[key])) {
        if (!Object(util["isArrayLike"])(target[key])) {
            target[key] = [];
        }
        if (Object(util["isTypedArray"])(source[key])) {
            var len = source[key].length;
            if (target[key].length !== len) {
                target[key] = new (source[key].constructor)(len);
                copyArrShallow(target[key], source[key], len);
            }
        }
        else {
            var sourceArr = source[key];
            var targetArr = target[key];
            var len0 = sourceArr.length;
            if (is2DArray(sourceArr)) {
                var len1 = sourceArr[0].length;
                for (var i = 0; i < len0; i++) {
                    if (!targetArr[i]) {
                        targetArr[i] = Array.prototype.slice.call(sourceArr[i]);
                    }
                    else {
                        copyArrShallow(targetArr[i], sourceArr[i], len1);
                    }
                }
            }
            else {
                copyArrShallow(targetArr, sourceArr, len0);
            }
            targetArr.length = sourceArr.length;
        }
    }
    else {
        target[key] = source[key];
    }
}
function isValueSame(val1, val2) {
    return val1 === val2
        || Object(util["isArrayLike"])(val1) && Object(util["isArrayLike"])(val2) && is1DArraySame(val1, val2);
}
function is1DArraySame(arr0, arr1) {
    var len = arr0.length;
    if (len !== arr1.length) {
        return false;
    }
    for (var i = 0; i < len; i++) {
        if (arr0[i] !== arr1[i]) {
            return false;
        }
    }
    return true;
}
function animateToShallow(animatable, topKey, animateObj, target, cfg, animationProps, animators, reverse) {
    var targetKeys = Object(util["keys"])(target);
    var duration = cfg.duration;
    var delay = cfg.delay;
    var additive = cfg.additive;
    var setToFinal = cfg.setToFinal;
    var animateAll = !Object(util["isObject"])(animationProps);
    var existsAnimators = animatable.animators;
    var animationKeys = [];
    for (var k = 0; k < targetKeys.length; k++) {
        var innerKey = targetKeys[k];
        var targetVal = target[innerKey];
        if (targetVal != null && animateObj[innerKey] != null
            && (animateAll || animationProps[innerKey])) {
            if (Object(util["isObject"])(targetVal)
                && !Object(util["isArrayLike"])(targetVal)
                && !Object(util["isGradientObject"])(targetVal)) {
                if (topKey) {
                    if (!reverse) {
                        animateObj[innerKey] = targetVal;
                        animatable.updateDuringAnimation(topKey);
                    }
                    continue;
                }
                animateToShallow(animatable, innerKey, animateObj[innerKey], targetVal, cfg, animationProps && animationProps[innerKey], animators, reverse);
            }
            else {
                animationKeys.push(innerKey);
            }
        }
        else if (!reverse) {
            animateObj[innerKey] = targetVal;
            animatable.updateDuringAnimation(topKey);
            animationKeys.push(innerKey);
        }
    }
    var keyLen = animationKeys.length;
    if (!additive && keyLen) {
        for (var i = 0; i < existsAnimators.length; i++) {
            var animator = existsAnimators[i];
            if (animator.targetName === topKey) {
                var allAborted = animator.stopTracks(animationKeys);
                if (allAborted) {
                    var idx = Object(util["indexOf"])(existsAnimators, animator);
                    existsAnimators.splice(idx, 1);
                }
            }
        }
    }
    if (!cfg.force) {
        animationKeys = Object(util["filter"])(animationKeys, function (key) { return !isValueSame(target[key], animateObj[key]); });
        keyLen = animationKeys.length;
    }
    if (keyLen > 0
        || (cfg.force && !animators.length)) {
        var revertedSource = void 0;
        var reversedTarget = void 0;
        var sourceClone = void 0;
        if (reverse) {
            reversedTarget = {};
            if (setToFinal) {
                revertedSource = {};
            }
            for (var i = 0; i < keyLen; i++) {
                var innerKey = animationKeys[i];
                reversedTarget[innerKey] = animateObj[innerKey];
                if (setToFinal) {
                    revertedSource[innerKey] = target[innerKey];
                }
                else {
                    animateObj[innerKey] = target[innerKey];
                }
            }
        }
        else if (setToFinal) {
            sourceClone = {};
            for (var i = 0; i < keyLen; i++) {
                var innerKey = animationKeys[i];
                sourceClone[innerKey] = cloneValue(animateObj[innerKey]);
                copyValue(animateObj, target, innerKey);
            }
        }
        var animator = new animation_Animator(animateObj, false, false, additive ? Object(util["filter"])(existsAnimators, function (animator) { return animator.targetName === topKey; }) : null);
        animator.targetName = topKey;
        if (cfg.scope) {
            animator.scope = cfg.scope;
        }
        if (setToFinal && revertedSource) {
            animator.whenWithKeys(0, revertedSource, animationKeys);
        }
        if (sourceClone) {
            animator.whenWithKeys(0, sourceClone, animationKeys);
        }
        animator.whenWithKeys(duration == null ? 500 : duration, reverse ? reversedTarget : target, animationKeys).delay(delay || 0);
        animatable.addAnimator(animator, topKey);
        animators.push(animator);
    }
}
/* harmony default export */ var lib_Element = (Element_Element);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/Group.js




var Group_Group = (function (_super) {
    tslib_es6_extends(Group, _super);
    function Group(opts) {
        var _this = _super.call(this) || this;
        _this.isGroup = true;
        _this._children = [];
        _this.attr(opts);
        return _this;
    }
    Group.prototype.childrenRef = function () {
        return this._children;
    };
    Group.prototype.children = function () {
        return this._children.slice();
    };
    Group.prototype.childAt = function (idx) {
        return this._children[idx];
    };
    Group.prototype.childOfName = function (name) {
        var children = this._children;
        for (var i = 0; i < children.length; i++) {
            if (children[i].name === name) {
                return children[i];
            }
        }
    };
    Group.prototype.childCount = function () {
        return this._children.length;
    };
    Group.prototype.add = function (child) {
        if (child) {
            if (child !== this && child.parent !== this) {
                this._children.push(child);
                this._doAdd(child);
            }
            if (false) {}
        }
        return this;
    };
    Group.prototype.addBefore = function (child, nextSibling) {
        if (child && child !== this && child.parent !== this
            && nextSibling && nextSibling.parent === this) {
            var children = this._children;
            var idx = children.indexOf(nextSibling);
            if (idx >= 0) {
                children.splice(idx, 0, child);
                this._doAdd(child);
            }
        }
        return this;
    };
    Group.prototype.replace = function (oldChild, newChild) {
        var idx = util["indexOf"](this._children, oldChild);
        if (idx >= 0) {
            this.replaceAt(newChild, idx);
        }
        return this;
    };
    Group.prototype.replaceAt = function (child, index) {
        var children = this._children;
        var old = children[index];
        if (child && child !== this && child.parent !== this && child !== old) {
            children[index] = child;
            old.parent = null;
            var zr = this.__zr;
            if (zr) {
                old.removeSelfFromZr(zr);
            }
            this._doAdd(child);
        }
        return this;
    };
    Group.prototype._doAdd = function (child) {
        if (child.parent) {
            child.parent.remove(child);
        }
        child.parent = this;
        var zr = this.__zr;
        if (zr && zr !== child.__zr) {
            child.addSelfToZr(zr);
        }
        zr && zr.refresh();
    };
    Group.prototype.remove = function (child) {
        var zr = this.__zr;
        var children = this._children;
        var idx = util["indexOf"](children, child);
        if (idx < 0) {
            return this;
        }
        children.splice(idx, 1);
        child.parent = null;
        if (zr) {
            child.removeSelfFromZr(zr);
        }
        zr && zr.refresh();
        return this;
    };
    Group.prototype.removeAll = function () {
        var children = this._children;
        var zr = this.__zr;
        for (var i = 0; i < children.length; i++) {
            var child = children[i];
            if (zr) {
                child.removeSelfFromZr(zr);
            }
            child.parent = null;
        }
        children.length = 0;
        return this;
    };
    Group.prototype.eachChild = function (cb, context) {
        var children = this._children;
        for (var i = 0; i < children.length; i++) {
            var child = children[i];
            cb.call(context, child, i);
        }
        return this;
    };
    Group.prototype.traverse = function (cb, context) {
        for (var i = 0; i < this._children.length; i++) {
            var child = this._children[i];
            var stopped = cb.call(context, child);
            if (child.isGroup && !stopped) {
                child.traverse(cb, context);
            }
        }
        return this;
    };
    Group.prototype.addSelfToZr = function (zr) {
        _super.prototype.addSelfToZr.call(this, zr);
        for (var i = 0; i < this._children.length; i++) {
            var child = this._children[i];
            child.addSelfToZr(zr);
        }
    };
    Group.prototype.removeSelfFromZr = function (zr) {
        _super.prototype.removeSelfFromZr.call(this, zr);
        for (var i = 0; i < this._children.length; i++) {
            var child = this._children[i];
            child.removeSelfFromZr(zr);
        }
    };
    Group.prototype.getBoundingRect = function (includeChildren) {
        var tmpRect = new core_BoundingRect(0, 0, 0, 0);
        var children = includeChildren || this._children;
        var tmpMat = [];
        var rect = null;
        for (var i = 0; i < children.length; i++) {
            var child = children[i];
            if (child.ignore || child.invisible) {
                continue;
            }
            var childRect = child.getBoundingRect();
            var transform = child.getLocalTransform(tmpMat);
            if (transform) {
                core_BoundingRect.applyTransform(tmpRect, childRect, transform);
                rect = rect || tmpRect.clone();
                rect.union(tmpRect);
            }
            else {
                rect = rect || childRect.clone();
                rect.union(childRect);
            }
        }
        return rect || tmpRect;
    };
    return Group;
}(lib_Element));
Group_Group.prototype.type = 'group';
/* harmony default export */ var graphic_Group = (Group_Group);

// CONCATENATED MODULE: ./node_modules/zrender/lib/zrender.js
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/









var painterCtors = {};
var instances = {};
function delInstance(id) {
    delete instances[id];
}
function zrender_isDarkMode(backgroundColor) {
    if (!backgroundColor) {
        return false;
    }
    if (typeof backgroundColor === 'string') {
        return Object(tool_color["lum"])(backgroundColor, 1) < DARK_MODE_THRESHOLD;
    }
    else if (backgroundColor.colorStops) {
        var colorStops = backgroundColor.colorStops;
        var totalLum = 0;
        var len = colorStops.length;
        for (var i = 0; i < len; i++) {
            totalLum += Object(tool_color["lum"])(colorStops[i].color, 1);
        }
        totalLum /= len;
        return totalLum < DARK_MODE_THRESHOLD;
    }
    return false;
}
var zrender_ZRender = (function () {
    function ZRender(id, dom, opts) {
        var _this = this;
        this._sleepAfterStill = 10;
        this._stillFrameAccum = 0;
        this._needsRefresh = true;
        this._needsRefreshHover = true;
        this._darkMode = false;
        opts = opts || {};
        this.dom = dom;
        this.id = id;
        var storage = new lib_Storage();
        var rendererType = opts.renderer || 'canvas';
        if (!painterCtors[rendererType]) {
            rendererType = util["keys"](painterCtors)[0];
        }
        if (false) {}
        opts.useDirtyRect = opts.useDirtyRect == null
            ? false
            : opts.useDirtyRect;
        var painter = new painterCtors[rendererType](dom, storage, opts, id);
        var ssrMode = opts.ssr || painter.ssrOnly;
        this.storage = storage;
        this.painter = painter;
        var handlerProxy = (!env["a" /* default */].node && !env["a" /* default */].worker && !ssrMode)
            ? new HandlerProxy(painter.getViewportRoot(), painter.root)
            : null;
        var useCoarsePointer = opts.useCoarsePointer;
        var usePointerSize = (useCoarsePointer == null || useCoarsePointer === 'auto')
            ? env["a" /* default */].touchEventsSupported
            : !!useCoarsePointer;
        var defaultPointerSize = 44;
        var pointerSize;
        if (usePointerSize) {
            pointerSize = util["retrieve2"](opts.pointerSize, defaultPointerSize);
        }
        this.handler = new lib_Handler(storage, painter, handlerProxy, painter.root, pointerSize);
        this.animation = new animation_Animation({
            stage: {
                update: ssrMode ? null : function () { return _this._flush(true); }
            }
        });
        if (!ssrMode) {
            this.animation.start();
        }
    }
    ZRender.prototype.add = function (el) {
        if (this._disposed || !el) {
            return;
        }
        this.storage.addRoot(el);
        el.addSelfToZr(this);
        this.refresh();
    };
    ZRender.prototype.remove = function (el) {
        if (this._disposed || !el) {
            return;
        }
        this.storage.delRoot(el);
        el.removeSelfFromZr(this);
        this.refresh();
    };
    ZRender.prototype.configLayer = function (zLevel, config) {
        if (this._disposed) {
            return;
        }
        if (this.painter.configLayer) {
            this.painter.configLayer(zLevel, config);
        }
        this.refresh();
    };
    ZRender.prototype.setBackgroundColor = function (backgroundColor) {
        if (this._disposed) {
            return;
        }
        if (this.painter.setBackgroundColor) {
            this.painter.setBackgroundColor(backgroundColor);
        }
        this.refresh();
        this._backgroundColor = backgroundColor;
        this._darkMode = zrender_isDarkMode(backgroundColor);
    };
    ZRender.prototype.getBackgroundColor = function () {
        return this._backgroundColor;
    };
    ZRender.prototype.setDarkMode = function (darkMode) {
        this._darkMode = darkMode;
    };
    ZRender.prototype.isDarkMode = function () {
        return this._darkMode;
    };
    ZRender.prototype.refreshImmediately = function (fromInside) {
        if (this._disposed) {
            return;
        }
        if (!fromInside) {
            this.animation.update(true);
        }
        this._needsRefresh = false;
        this.painter.refresh();
        this._needsRefresh = false;
    };
    ZRender.prototype.refresh = function () {
        if (this._disposed) {
            return;
        }
        this._needsRefresh = true;
        this.animation.start();
    };
    ZRender.prototype.flush = function () {
        if (this._disposed) {
            return;
        }
        this._flush(false);
    };
    ZRender.prototype._flush = function (fromInside) {
        var triggerRendered;
        var start = getTime();
        if (this._needsRefresh) {
            triggerRendered = true;
            this.refreshImmediately(fromInside);
        }
        if (this._needsRefreshHover) {
            triggerRendered = true;
            this.refreshHoverImmediately();
        }
        var end = getTime();
        if (triggerRendered) {
            this._stillFrameAccum = 0;
            this.trigger('rendered', {
                elapsedTime: end - start
            });
        }
        else if (this._sleepAfterStill > 0) {
            this._stillFrameAccum++;
            if (this._stillFrameAccum > this._sleepAfterStill) {
                this.animation.stop();
            }
        }
    };
    ZRender.prototype.setSleepAfterStill = function (stillFramesCount) {
        this._sleepAfterStill = stillFramesCount;
    };
    ZRender.prototype.wakeUp = function () {
        if (this._disposed) {
            return;
        }
        this.animation.start();
        this._stillFrameAccum = 0;
    };
    ZRender.prototype.refreshHover = function () {
        this._needsRefreshHover = true;
    };
    ZRender.prototype.refreshHoverImmediately = function () {
        if (this._disposed) {
            return;
        }
        this._needsRefreshHover = false;
        if (this.painter.refreshHover && this.painter.getType() === 'canvas') {
            this.painter.refreshHover();
        }
    };
    ZRender.prototype.resize = function (opts) {
        if (this._disposed) {
            return;
        }
        opts = opts || {};
        this.painter.resize(opts.width, opts.height);
        this.handler.resize();
    };
    ZRender.prototype.clearAnimation = function () {
        if (this._disposed) {
            return;
        }
        this.animation.clear();
    };
    ZRender.prototype.getWidth = function () {
        if (this._disposed) {
            return;
        }
        return this.painter.getWidth();
    };
    ZRender.prototype.getHeight = function () {
        if (this._disposed) {
            return;
        }
        return this.painter.getHeight();
    };
    ZRender.prototype.setCursorStyle = function (cursorStyle) {
        if (this._disposed) {
            return;
        }
        this.handler.setCursorStyle(cursorStyle);
    };
    ZRender.prototype.findHover = function (x, y) {
        if (this._disposed) {
            return;
        }
        return this.handler.findHover(x, y);
    };
    ZRender.prototype.on = function (eventName, eventHandler, context) {
        if (!this._disposed) {
            this.handler.on(eventName, eventHandler, context);
        }
        return this;
    };
    ZRender.prototype.off = function (eventName, eventHandler) {
        if (this._disposed) {
            return;
        }
        this.handler.off(eventName, eventHandler);
    };
    ZRender.prototype.trigger = function (eventName, event) {
        if (this._disposed) {
            return;
        }
        this.handler.trigger(eventName, event);
    };
    ZRender.prototype.clear = function () {
        if (this._disposed) {
            return;
        }
        var roots = this.storage.getRoots();
        for (var i = 0; i < roots.length; i++) {
            if (roots[i] instanceof graphic_Group) {
                roots[i].removeSelfFromZr(this);
            }
        }
        this.storage.delAllRoots();
        this.painter.clear();
    };
    ZRender.prototype.dispose = function () {
        if (this._disposed) {
            return;
        }
        this.animation.stop();
        this.clear();
        this.storage.dispose();
        this.painter.dispose();
        this.handler.dispose();
        this.animation =
            this.storage =
                this.painter =
                    this.handler = null;
        this._disposed = true;
        delInstance(this.id);
    };
    return ZRender;
}());
function init(dom, opts) {
    var zr = new zrender_ZRender(util["guid"](), dom, opts);
    instances[zr.id] = zr;
    return zr;
}
function dispose(zr) {
    zr.dispose();
}
function disposeAll() {
    for (var key in instances) {
        if (instances.hasOwnProperty(key)) {
            instances[key].dispose();
        }
    }
    instances = {};
}
function getInstance(id) {
    return instances[id];
}
function registerPainter(name, Ctor) {
    painterCtors[name] = Ctor;
}
var ssrDataGetter;
function getElementSSRData(el) {
    if (typeof ssrDataGetter === 'function') {
        return ssrDataGetter(el);
    }
}
function registerSSRDataGetter(getter) {
    ssrDataGetter = getter;
}
var version = '5.6.1';
;

// CONCATENATED MODULE: ./node_modules/echarts/lib/util/number.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* The method "quantile" was copied from "d3.js".
* (See more details in the comment of the method below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the license of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/

var RADIAN_EPSILON = 1e-4;
// Although chrome already enlarge this number to 100 for `toFixed`, but
// we sill follow the spec for compatibility.
var ROUND_SUPPORTED_PRECISION_MAX = 20;
function _trim(str) {
  return str.replace(/^\s+|\s+$/g, '');
}
/**
 * Linear mapping a value from domain to range
 * @param  val
 * @param  domain Domain extent domain[0] can be bigger than domain[1]
 * @param  range  Range extent range[0] can be bigger than range[1]
 * @param  clamp Default to be false
 */
function linearMap(val, domain, range, clamp) {
  var d0 = domain[0];
  var d1 = domain[1];
  var r0 = range[0];
  var r1 = range[1];
  var subDomain = d1 - d0;
  var subRange = r1 - r0;
  if (subDomain === 0) {
    return subRange === 0 ? r0 : (r0 + r1) / 2;
  }
  // Avoid accuracy problem in edge, such as
  // 146.39 - 62.83 === 83.55999999999999.
  // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError
  // It is a little verbose for efficiency considering this method
  // is a hotspot.
  if (clamp) {
    if (subDomain > 0) {
      if (val <= d0) {
        return r0;
      } else if (val >= d1) {
        return r1;
      }
    } else {
      if (val >= d0) {
        return r0;
      } else if (val <= d1) {
        return r1;
      }
    }
  } else {
    if (val === d0) {
      return r0;
    }
    if (val === d1) {
      return r1;
    }
  }
  return (val - d0) / subDomain * subRange + r0;
}
/**
 * Convert a percent string to absolute number.
 * Returns NaN if percent is not a valid string or number
 */
function number_parsePercent(percent, all) {
  switch (percent) {
    case 'center':
    case 'middle':
      percent = '50%';
      break;
    case 'left':
    case 'top':
      percent = '0%';
      break;
    case 'right':
    case 'bottom':
      percent = '100%';
      break;
  }
  if (util["isString"](percent)) {
    if (_trim(percent).match(/%$/)) {
      return parseFloat(percent) / 100 * all;
    }
    return parseFloat(percent);
  }
  return percent == null ? NaN : +percent;
}
function round(x, precision, returnStr) {
  if (precision == null) {
    precision = 10;
  }
  // Avoid range error
  precision = Math.min(Math.max(0, precision), ROUND_SUPPORTED_PRECISION_MAX);
  // PENDING: 1.005.toFixed(2) is '1.00' rather than '1.01'
  x = (+x).toFixed(precision);
  return returnStr ? x : +x;
}
/**
 * Inplacd asc sort arr.
 * The input arr will be modified.
 */
function asc(arr) {
  arr.sort(function (a, b) {
    return a - b;
  });
  return arr;
}
/**
 * Get precision.
 */
function getPrecision(val) {
  val = +val;
  if (isNaN(val)) {
    return 0;
  }
  // It is much faster than methods converting number to string as follows
  //      let tmp = val.toString();
  //      return tmp.length - 1 - tmp.indexOf('.');
  // especially when precision is low
  // Notice:
  // (1) If the loop count is over about 20, it is slower than `getPrecisionSafe`.
  //     (see https://jsbench.me/2vkpcekkvw/1)
  // (2) If the val is less than for example 1e-15, the result may be incorrect.
  //     (see test/ut/spec/util/number.test.ts `getPrecision_equal_random`)
  if (val > 1e-14) {
    var e = 1;
    for (var i = 0; i < 15; i++, e *= 10) {
      if (Math.round(val * e) / e === val) {
        return i;
      }
    }
  }
  return getPrecisionSafe(val);
}
/**
 * Get precision with slow but safe method
 */
function getPrecisionSafe(val) {
  // toLowerCase for: '3.4E-12'
  var str = val.toString().toLowerCase();
  // Consider scientific notation: '3.4e-12' '3.4e+12'
  var eIndex = str.indexOf('e');
  var exp = eIndex > 0 ? +str.slice(eIndex + 1) : 0;
  var significandPartLen = eIndex > 0 ? eIndex : str.length;
  var dotIndex = str.indexOf('.');
  var decimalPartLen = dotIndex < 0 ? 0 : significandPartLen - 1 - dotIndex;
  return Math.max(0, decimalPartLen - exp);
}
/**
 * Minimal dicernible data precisioin according to a single pixel.
 */
function getPixelPrecision(dataExtent, pixelExtent) {
  var log = Math.log;
  var LN10 = Math.LN10;
  var dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10);
  var sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10);
  // toFixed() digits argument must be between 0 and 20.
  var precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20);
  return !isFinite(precision) ? 20 : precision;
}
/**
 * Get a data of given precision, assuring the sum of percentages
 * in valueList is 1.
 * The largest remainder method is used.
 * https://en.wikipedia.org/wiki/Largest_remainder_method
 *
 * @param valueList a list of all data
 * @param idx index of the data to be processed in valueList
 * @param precision integer number showing digits of precision
 * @return percent ranging from 0 to 100
 */
function getPercentWithPrecision(valueList, idx, precision) {
  if (!valueList[idx]) {
    return 0;
  }
  var seats = getPercentSeats(valueList, precision);
  return seats[idx] || 0;
}
/**
 * Get a data of given precision, assuring the sum of percentages
 * in valueList is 1.
 * The largest remainder method is used.
 * https://en.wikipedia.org/wiki/Largest_remainder_method
 *
 * @param valueList a list of all data
 * @param precision integer number showing digits of precision
 * @return {Array<number>}
 */
function getPercentSeats(valueList, precision) {
  var sum = util["reduce"](valueList, function (acc, val) {
    return acc + (isNaN(val) ? 0 : val);
  }, 0);
  if (sum === 0) {
    return [];
  }
  var digits = Math.pow(10, precision);
  var votesPerQuota = util["map"](valueList, function (val) {
    return (isNaN(val) ? 0 : val) / sum * digits * 100;
  });
  var targetSeats = digits * 100;
  var seats = util["map"](votesPerQuota, function (votes) {
    // Assign automatic seats.
    return Math.floor(votes);
  });
  var currentSum = util["reduce"](seats, function (acc, val) {
    return acc + val;
  }, 0);
  var remainder = util["map"](votesPerQuota, function (votes, idx) {
    return votes - seats[idx];
  });
  // Has remainding votes.
  while (currentSum < targetSeats) {
    // Find next largest remainder.
    var max = Number.NEGATIVE_INFINITY;
    var maxId = null;
    for (var i = 0, len = remainder.length; i < len; ++i) {
      if (remainder[i] > max) {
        max = remainder[i];
        maxId = i;
      }
    }
    // Add a vote to max remainder.
    ++seats[maxId];
    remainder[maxId] = 0;
    ++currentSum;
  }
  return util["map"](seats, function (seat) {
    return seat / digits;
  });
}
/**
 * Solve the floating point adding problem like 0.1 + 0.2 === 0.30000000000000004
 * See <http://0.30000000000000004.com/>
 */
function addSafe(val0, val1) {
  var maxPrecision = Math.max(getPrecision(val0), getPrecision(val1));
  // const multiplier = Math.pow(10, maxPrecision);
  // return (Math.round(val0 * multiplier) + Math.round(val1 * multiplier)) / multiplier;
  var sum = val0 + val1;
  // // PENDING: support more?
  return maxPrecision > ROUND_SUPPORTED_PRECISION_MAX ? sum : round(sum, maxPrecision);
}
// Number.MAX_SAFE_INTEGER, ie do not support.
var MAX_SAFE_INTEGER = 9007199254740991;
/**
 * To 0 - 2 * PI, considering negative radian.
 */
function remRadian(radian) {
  var pi2 = Math.PI * 2;
  return (radian % pi2 + pi2) % pi2;
}
/**
 * @param {type} radian
 * @return {boolean}
 */
function isRadianAroundZero(val) {
  return val > -RADIAN_EPSILON && val < RADIAN_EPSILON;
}
// eslint-disable-next-line
var TIME_REG = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/; // jshint ignore:line
/**
 * @param value valid type: number | string | Date, otherwise return `new Date(NaN)`
 *   These values can be accepted:
 *   + An instance of Date, represent a time in its own time zone.
 *   + Or string in a subset of ISO 8601, only including:
 *     + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06',
 *     + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123',
 *     + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00',
 *     all of which will be treated as local time if time zone is not specified
 *     (see <https://momentjs.com/>).
 *   + Or other string format, including (all of which will be treated as local time):
 *     '2012', '2012-3-1', '2012/3/1', '2012/03/01',
 *     '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'
 *   + a timestamp, which represent a time in UTC.
 * @return date Never be null/undefined. If invalid, return `new Date(NaN)`.
 */
function parseDate(value) {
  if (value instanceof Date) {
    return value;
  } else if (util["isString"](value)) {
    // Different browsers parse date in different way, so we parse it manually.
    // Some other issues:
    // new Date('1970-01-01') is UTC,
    // new Date('1970/01/01') and new Date('1970-1-01') is local.
    // See issue #3623
    var match = TIME_REG.exec(value);
    if (!match) {
      // return Invalid Date.
      return new Date(NaN);
    }
    // Use local time when no timezone offset is specified.
    if (!match[8]) {
      // match[n] can only be string or undefined.
      // But take care of '12' + 1 => '121'.
      return new Date(+match[1], +(match[2] || 1) - 1, +match[3] || 1, +match[4] || 0, +(match[5] || 0), +match[6] || 0, match[7] ? +match[7].substring(0, 3) : 0);
    }
    // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time,
    // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment).
    // For example, system timezone is set as "Time Zone: America/Toronto",
    // then these code will get different result:
    // `new Date(1478411999999).getTimezoneOffset();  // get 240`
    // `new Date(1478412000000).getTimezoneOffset();  // get 300`
    // So we should not use `new Date`, but use `Date.UTC`.
    else {
      var hour = +match[4] || 0;
      if (match[8].toUpperCase() !== 'Z') {
        hour -= +match[8].slice(0, 3);
      }
      return new Date(Date.UTC(+match[1], +(match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, match[7] ? +match[7].substring(0, 3) : 0));
    }
  } else if (value == null) {
    return new Date(NaN);
  }
  return new Date(Math.round(value));
}
/**
 * Quantity of a number. e.g. 0.1, 1, 10, 100
 *
 * @param val
 * @return
 */
function quantity(val) {
  return Math.pow(10, quantityExponent(val));
}
/**
 * Exponent of the quantity of a number
 * e.g., 1234 equals to 1.234*10^3, so quantityExponent(1234) is 3
 *
 * @param val non-negative value
 * @return
 */
function quantityExponent(val) {
  if (val === 0) {
    return 0;
  }
  var exp = Math.floor(Math.log(val) / Math.LN10);
  /**
   * exp is expected to be the rounded-down result of the base-10 log of val.
   * But due to the precision loss with Math.log(val), we need to restore it
   * using 10^exp to make sure we can get val back from exp. #11249
   */
  if (val / Math.pow(10, exp) >= 10) {
    exp++;
  }
  return exp;
}
/**
 * find a “nice” number approximately equal to x. Round the number if round = true,
 * take ceiling if round = false. The primary observation is that the “nicest”
 * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.
 *
 * See "Nice Numbers for Graph Labels" of Graphic Gems.
 *
 * @param  val Non-negative value.
 * @param  round
 * @return Niced number
 */
function nice(val, round) {
  var exponent = quantityExponent(val);
  var exp10 = Math.pow(10, exponent);
  var f = val / exp10; // 1 <= f < 10
  var nf;
  if (round) {
    if (f < 1.5) {
      nf = 1;
    } else if (f < 2.5) {
      nf = 2;
    } else if (f < 4) {
      nf = 3;
    } else if (f < 7) {
      nf = 5;
    } else {
      nf = 10;
    }
  } else {
    if (f < 1) {
      nf = 1;
    } else if (f < 2) {
      nf = 2;
    } else if (f < 3) {
      nf = 3;
    } else if (f < 5) {
      nf = 5;
    } else {
      nf = 10;
    }
  }
  val = nf * exp10;
  // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).
  // 20 is the uppper bound of toFixed.
  return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val;
}
/**
 * This code was copied from "d3.js"
 * <https://github.com/d3/d3/blob/9cc9a875e636a1dcf36cc1e07bdf77e1ad6e2c74/src/arrays/quantile.js>.
 * See the license statement at the head of this file.
 * @param ascArr
 */
function quantile(ascArr, p) {
  var H = (ascArr.length - 1) * p + 1;
  var h = Math.floor(H);
  var v = +ascArr[h - 1];
  var e = H - h;
  return e ? v + e * (ascArr[h] - v) : v;
}
/**
 * Order intervals asc, and split them when overlap.
 * expect(numberUtil.reformIntervals([
 *     {interval: [18, 62], close: [1, 1]},
 *     {interval: [-Infinity, -70], close: [0, 0]},
 *     {interval: [-70, -26], close: [1, 1]},
 *     {interval: [-26, 18], close: [1, 1]},
 *     {interval: [62, 150], close: [1, 1]},
 *     {interval: [106, 150], close: [1, 1]},
 *     {interval: [150, Infinity], close: [0, 0]}
 * ])).toEqual([
 *     {interval: [-Infinity, -70], close: [0, 0]},
 *     {interval: [-70, -26], close: [1, 1]},
 *     {interval: [-26, 18], close: [0, 1]},
 *     {interval: [18, 62], close: [0, 1]},
 *     {interval: [62, 150], close: [0, 1]},
 *     {interval: [150, Infinity], close: [0, 0]}
 * ]);
 * @param list, where `close` mean open or close
 *        of the interval, and Infinity can be used.
 * @return The origin list, which has been reformed.
 */
function reformIntervals(list) {
  list.sort(function (a, b) {
    return littleThan(a, b, 0) ? -1 : 1;
  });
  var curr = -Infinity;
  var currClose = 1;
  for (var i = 0; i < list.length;) {
    var interval = list[i].interval;
    var close_1 = list[i].close;
    for (var lg = 0; lg < 2; lg++) {
      if (interval[lg] <= curr) {
        interval[lg] = curr;
        close_1[lg] = !lg ? 1 - currClose : 1;
      }
      curr = interval[lg];
      currClose = close_1[lg];
    }
    if (interval[0] === interval[1] && close_1[0] * close_1[1] !== 1) {
      list.splice(i, 1);
    } else {
      i++;
    }
  }
  return list;
  function littleThan(a, b, lg) {
    return a.interval[lg] < b.interval[lg] || a.interval[lg] === b.interval[lg] && (a.close[lg] - b.close[lg] === (!lg ? 1 : -1) || !lg && littleThan(a, b, 1));
  }
}
/**
 * [Numeric is defined as]:
 *     `parseFloat(val) == val`
 * For example:
 * numeric:
 *     typeof number except NaN, '-123', '123', '2e3', '-2e3', '011', 'Infinity', Infinity,
 *     and they rounded by white-spaces or line-terminal like ' -123 \n ' (see es spec)
 * not-numeric:
 *     null, undefined, [], {}, true, false, 'NaN', NaN, '123ab',
 *     empty string, string with only white-spaces or line-terminal (see es spec),
 *     0x12, '0x12', '-0x12', 012, '012', '-012',
 *     non-string, ...
 *
 * @test See full test cases in `test/ut/spec/util/number.js`.
 * @return Must be a typeof number. If not numeric, return NaN.
 */
function numericToNumber(val) {
  var valFloat = parseFloat(val);
  return valFloat == val // eslint-disable-line eqeqeq
  && (valFloat !== 0 || !util["isString"](val) || val.indexOf('x') <= 0) // For case ' 0x0 '.
  ? valFloat : NaN;
}
/**
 * Definition of "numeric": see `numericToNumber`.
 */
function isNumeric(val) {
  return !isNaN(numericToNumber(val));
}
/**
 * Use random base to prevent users hard code depending on
 * this auto generated marker id.
 * @return An positive integer.
 */
function getRandomIdBase() {
  return Math.round(Math.random() * 9);
}
/**
 * Get the greatest common divisor.
 *
 * @param {number} a one number
 * @param {number} b the other number
 */
function getGreatestCommonDividor(a, b) {
  if (b === 0) {
    return a;
  }
  return getGreatestCommonDividor(b, a % b);
}
/**
 * Get the least common multiple.
 *
 * @param {number} a one number
 * @param {number} b the other number
 */
function getLeastCommonMultiple(a, b) {
  if (a == null) {
    return b;
  }
  if (b == null) {
    return a;
  }
  return a * b / getGreatestCommonDividor(a, b);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/model.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function model_interpolateNumber(p0, p1, percent) {
  return (p1 - p0) * percent + p0;
}
/**
 * Make the name displayable. But we should
 * make sure it is not duplicated with user
 * specified name, so use '\0';
 */
var DUMMY_COMPONENT_NAME_PREFIX = 'series\0';
var INTERNAL_COMPONENT_ID_PREFIX = '\0_ec_\0';
/**
 * If value is not array, then translate it to array.
 * @param  {*} value
 * @return {Array} [value] or value
 */
function normalizeToArray(value) {
  return value instanceof Array ? value : value == null ? [] : [value];
}
/**
 * Sync default option between normal and emphasis like `position` and `show`
 * In case some one will write code like
 *     label: {
 *          show: false,
 *          position: 'outside',
 *          fontSize: 18
 *     },
 *     emphasis: {
 *          label: { show: true }
 *     }
 */
function defaultEmphasis(opt, key, subOpts) {
  // Caution: performance sensitive.
  if (opt) {
    opt[key] = opt[key] || {};
    opt.emphasis = opt.emphasis || {};
    opt.emphasis[key] = opt.emphasis[key] || {};
    // Default emphasis option from normal
    for (var i = 0, len = subOpts.length; i < len; i++) {
      var subOptName = subOpts[i];
      if (!opt.emphasis[key].hasOwnProperty(subOptName) && opt[key].hasOwnProperty(subOptName)) {
        opt.emphasis[key][subOptName] = opt[key][subOptName];
      }
    }
  }
}
var TEXT_STYLE_OPTIONS = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth', 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY', 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding'];
// modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([
//     'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',
//     'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',
//     // FIXME: deprecated, check and remove it.
//     'textStyle'
// ]);
/**
 * The method does not ensure performance.
 * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
 * This helper method retrieves value from data.
 */
function getDataItemValue(dataItem) {
  return Object(util["isObject"])(dataItem) && !Object(util["isArray"])(dataItem) && !(dataItem instanceof Date) ? dataItem.value : dataItem;
}
/**
 * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
 * This helper method determine if dataItem has extra option besides value
 */
function isDataItemOption(dataItem) {
  return Object(util["isObject"])(dataItem) && !(dataItem instanceof Array);
  // // markLine data can be array
  // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));
}
;
/**
 * Mapping to existings for merge.
 *
 * Mode "normalMege":
 *     The mapping result (merge result) will keep the order of the existing
 *     component, rather than the order of new option. Because we should ensure
 *     some specified index reference (like xAxisIndex) keep work.
 *     And in most cases, "merge option" is used to update partial option but not
 *     be expected to change the order.
 *
 * Mode "replaceMege":
 *     (1) Only the id mapped components will be merged.
 *     (2) Other existing components (except internal components) will be removed.
 *     (3) Other new options will be used to create new component.
 *     (4) The index of the existing components will not be modified.
 *     That means their might be "hole" after the removal.
 *     The new components are created first at those available index.
 *
 * Mode "replaceAll":
 *     This mode try to support that reproduce an echarts instance from another
 *     echarts instance (via `getOption`) in some simple cases.
 *     In this scenario, the `result` index are exactly the consistent with the `newCmptOptions`,
 *     which ensures the component index referring (like `xAxisIndex: ?`) corrent. That is,
 *     the "hole" in `newCmptOptions` will also be kept.
 *     On the contrary, other modes try best to eliminate holes.
 *     PENDING: This is an experimental mode yet.
 *
 * @return See the comment of <MappingResult>.
 */
function mappingToExists(existings, newCmptOptions, mode) {
  var isNormalMergeMode = mode === 'normalMerge';
  var isReplaceMergeMode = mode === 'replaceMerge';
  var isReplaceAllMode = mode === 'replaceAll';
  existings = existings || [];
  newCmptOptions = (newCmptOptions || []).slice();
  var existingIdIdxMap = Object(util["createHashMap"])();
  // Validate id and name on user input option.
  Object(util["each"])(newCmptOptions, function (cmptOption, index) {
    if (!Object(util["isObject"])(cmptOption)) {
      newCmptOptions[index] = null;
      return;
    }
    if (false) {}
  });
  var result = model_prepareResult(existings, existingIdIdxMap, mode);
  if (isNormalMergeMode || isReplaceMergeMode) {
    mappingById(result, existings, existingIdIdxMap, newCmptOptions);
  }
  if (isNormalMergeMode) {
    mappingByName(result, newCmptOptions);
  }
  if (isNormalMergeMode || isReplaceMergeMode) {
    mappingByIndex(result, newCmptOptions, isReplaceMergeMode);
  } else if (isReplaceAllMode) {
    mappingInReplaceAllMode(result, newCmptOptions);
  }
  makeIdAndName(result);
  // The array `result` MUST NOT contain elided items, otherwise the
  // forEach will omit those items and result in incorrect result.
  return result;
}
function model_prepareResult(existings, existingIdIdxMap, mode) {
  var result = [];
  if (mode === 'replaceAll') {
    return result;
  }
  // Do not use native `map` to in case that the array `existings`
  // contains elided items, which will be omitted.
  for (var index = 0; index < existings.length; index++) {
    var existing = existings[index];
    // Because of replaceMerge, `existing` may be null/undefined.
    if (existing && existing.id != null) {
      existingIdIdxMap.set(existing.id, index);
    }
    // For non-internal-componnets:
    //     Mode "normalMerge": all existings kept.
    //     Mode "replaceMerge": all existing removed unless mapped by id.
    // For internal-components:
    //     go with "replaceMerge" approach in both mode.
    result.push({
      existing: mode === 'replaceMerge' || isComponentIdInternal(existing) ? null : existing,
      newOption: null,
      keyInfo: null,
      brandNew: null
    });
  }
  return result;
}
function mappingById(result, existings, existingIdIdxMap, newCmptOptions) {
  // Mapping by id if specified.
  Object(util["each"])(newCmptOptions, function (cmptOption, index) {
    if (!cmptOption || cmptOption.id == null) {
      return;
    }
    var optionId = makeComparableKey(cmptOption.id);
    var existingIdx = existingIdIdxMap.get(optionId);
    if (existingIdx != null) {
      var resultItem = result[existingIdx];
      Object(util["assert"])(!resultItem.newOption, 'Duplicated option on id "' + optionId + '".');
      resultItem.newOption = cmptOption;
      // In both mode, if id matched, new option will be merged to
      // the existings rather than creating new component model.
      resultItem.existing = existings[existingIdx];
      newCmptOptions[index] = null;
    }
  });
}
function mappingByName(result, newCmptOptions) {
  // Mapping by name if specified.
  Object(util["each"])(newCmptOptions, function (cmptOption, index) {
    if (!cmptOption || cmptOption.name == null) {
      return;
    }
    for (var i = 0; i < result.length; i++) {
      var existing = result[i].existing;
      if (!result[i].newOption // Consider name: two map to one.
      // Can not match when both ids existing but different.
      && existing && (existing.id == null || cmptOption.id == null) && !isComponentIdInternal(cmptOption) && !isComponentIdInternal(existing) && keyExistAndEqual('name', existing, cmptOption)) {
        result[i].newOption = cmptOption;
        newCmptOptions[index] = null;
        return;
      }
    }
  });
}
function mappingByIndex(result, newCmptOptions, brandNew) {
  Object(util["each"])(newCmptOptions, function (cmptOption) {
    if (!cmptOption) {
      return;
    }
    // Find the first place that not mapped by id and not internal component (consider the "hole").
    var resultItem;
    var nextIdx = 0;
    while (
    // Be `!resultItem` only when `nextIdx >= result.length`.
    (resultItem = result[nextIdx]
    // (1) Existing models that already have id should be able to mapped to. Because
    // after mapping performed, model will always be assigned with an id if user not given.
    // After that all models have id.
    // (2) If new option has id, it can only set to a hole or append to the last. It should
    // not be merged to the existings with different id. Because id should not be overwritten.
    // (3) Name can be overwritten, because axis use name as 'show label text'.
    ) && (resultItem.newOption || isComponentIdInternal(resultItem.existing) ||
    // In mode "replaceMerge", here no not-mapped-non-internal-existing.
    resultItem.existing && cmptOption.id != null && !keyExistAndEqual('id', cmptOption, resultItem.existing))) {
      nextIdx++;
    }
    if (resultItem) {
      resultItem.newOption = cmptOption;
      resultItem.brandNew = brandNew;
    } else {
      result.push({
        newOption: cmptOption,
        brandNew: brandNew,
        existing: null,
        keyInfo: null
      });
    }
    nextIdx++;
  });
}
function mappingInReplaceAllMode(result, newCmptOptions) {
  Object(util["each"])(newCmptOptions, function (cmptOption) {
    // The feature "reproduce" requires "hole" will also reproduced
    // in case that component index referring are broken.
    result.push({
      newOption: cmptOption,
      brandNew: true,
      existing: null,
      keyInfo: null
    });
  });
}
/**
 * Make id and name for mapping result (result of mappingToExists)
 * into `keyInfo` field.
 */
function makeIdAndName(mapResult) {
  // We use this id to hash component models and view instances
  // in echarts. id can be specified by user, or auto generated.
  // The id generation rule ensures new view instance are able
  // to mapped to old instance when setOption are called in
  // no-merge mode. So we generate model id by name and plus
  // type in view id.
  // name can be duplicated among components, which is convenient
  // to specify multi components (like series) by one name.
  // Ensure that each id is distinct.
  var idMap = Object(util["createHashMap"])();
  Object(util["each"])(mapResult, function (item) {
    var existing = item.existing;
    existing && idMap.set(existing.id, item);
  });
  Object(util["each"])(mapResult, function (item) {
    var opt = item.newOption;
    // Force ensure id not duplicated.
    Object(util["assert"])(!opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item, 'id duplicates: ' + (opt && opt.id));
    opt && opt.id != null && idMap.set(opt.id, item);
    !item.keyInfo && (item.keyInfo = {});
  });
  // Make name and id.
  Object(util["each"])(mapResult, function (item, index) {
    var existing = item.existing;
    var opt = item.newOption;
    var keyInfo = item.keyInfo;
    if (!Object(util["isObject"])(opt)) {
      return;
    }
    // Name can be overwritten. Consider case: axis.name = '20km'.
    // But id generated by name will not be changed, which affect
    // only in that case: setOption with 'not merge mode' and view
    // instance will be recreated, which can be accepted.
    keyInfo.name = opt.name != null ? makeComparableKey(opt.name) : existing ? existing.name
    // Avoid that different series has the same name,
    // because name may be used like in color pallet.
    : DUMMY_COMPONENT_NAME_PREFIX + index;
    if (existing) {
      keyInfo.id = makeComparableKey(existing.id);
    } else if (opt.id != null) {
      keyInfo.id = makeComparableKey(opt.id);
    } else {
      // Consider this situatoin:
      //  optionA: [{name: 'a'}, {name: 'a'}, {..}]
      //  optionB [{..}, {name: 'a'}, {name: 'a'}]
      // Series with the same name between optionA and optionB
      // should be mapped.
      var idNum = 0;
      do {
        keyInfo.id = '\0' + keyInfo.name + '\0' + idNum++;
      } while (idMap.get(keyInfo.id));
    }
    idMap.set(keyInfo.id, item);
  });
}
function keyExistAndEqual(attr, obj1, obj2) {
  var key1 = convertOptionIdName(obj1[attr], null);
  var key2 = convertOptionIdName(obj2[attr], null);
  // See `MappingExistingItem`. `id` and `name` trade string equals to number.
  return key1 != null && key2 != null && key1 === key2;
}
/**
 * @return return null if not exist.
 */
function makeComparableKey(val) {
  if (false) {}
  return convertOptionIdName(val, '');
}
function convertOptionIdName(idOrName, defaultValue) {
  if (idOrName == null) {
    return defaultValue;
  }
  return Object(util["isString"])(idOrName) ? idOrName : Object(util["isNumber"])(idOrName) || Object(util["isStringSafe"])(idOrName) ? idOrName + '' : defaultValue;
}
function warnInvalidateIdOrName(idOrName) {
  if (false) {}
}
function isValidIdOrName(idOrName) {
  return Object(util["isStringSafe"])(idOrName) || isNumeric(idOrName);
}
function isNameSpecified(componentModel) {
  var name = componentModel.name;
  // Is specified when `indexOf` get -1 or > 0.
  return !!(name && name.indexOf(DUMMY_COMPONENT_NAME_PREFIX));
}
/**
 * @public
 * @param {Object} cmptOption
 * @return {boolean}
 */
function isComponentIdInternal(cmptOption) {
  return cmptOption && cmptOption.id != null && makeComparableKey(cmptOption.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX) === 0;
}
function makeInternalComponentId(idSuffix) {
  return INTERNAL_COMPONENT_ID_PREFIX + idSuffix;
}
function setComponentTypeToKeyInfo(mappingResult, mainType, componentModelCtor) {
  // Set mainType and complete subType.
  Object(util["each"])(mappingResult, function (item) {
    var newOption = item.newOption;
    if (Object(util["isObject"])(newOption)) {
      item.keyInfo.mainType = mainType;
      item.keyInfo.subType = determineSubType(mainType, newOption, item.existing, componentModelCtor);
    }
  });
}
function determineSubType(mainType, newCmptOption, existComponent, componentModelCtor) {
  var subType = newCmptOption.type ? newCmptOption.type : existComponent ? existComponent.subType
  // Use determineSubType only when there is no existComponent.
  : componentModelCtor.determineSubType(mainType, newCmptOption);
  // tooltip, markline, markpoint may always has no subType
  return subType;
}
/**
 * A helper for removing duplicate items between batchA and batchB,
 * and in themselves, and categorize by series.
 *
 * @param batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
 * @param batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
 * @return result: [resultBatchA, resultBatchB]
 */
function compressBatches(batchA, batchB) {
  var mapA = {};
  var mapB = {};
  makeMap(batchA || [], mapA);
  makeMap(batchB || [], mapB, mapA);
  return [mapToArray(mapA), mapToArray(mapB)];
  function makeMap(sourceBatch, map, otherMap) {
    for (var i = 0, len = sourceBatch.length; i < len; i++) {
      var seriesId = convertOptionIdName(sourceBatch[i].seriesId, null);
      if (seriesId == null) {
        return;
      }
      var dataIndices = normalizeToArray(sourceBatch[i].dataIndex);
      var otherDataIndices = otherMap && otherMap[seriesId];
      for (var j = 0, lenj = dataIndices.length; j < lenj; j++) {
        var dataIndex = dataIndices[j];
        if (otherDataIndices && otherDataIndices[dataIndex]) {
          otherDataIndices[dataIndex] = null;
        } else {
          (map[seriesId] || (map[seriesId] = {}))[dataIndex] = 1;
        }
      }
    }
  }
  function mapToArray(map, isData) {
    var result = [];
    for (var i in map) {
      if (map.hasOwnProperty(i) && map[i] != null) {
        if (isData) {
          result.push(+i);
        } else {
          var dataIndices = mapToArray(map[i], true);
          dataIndices.length && result.push({
            seriesId: i,
            dataIndex: dataIndices
          });
        }
      }
    }
    return result;
  }
}
/**
 * @param payload Contains dataIndex (means rawIndex) / dataIndexInside / name
 *                         each of which can be Array or primary type.
 * @return dataIndex If not found, return undefined/null.
 */
function queryDataIndex(data, payload) {
  if (payload.dataIndexInside != null) {
    return payload.dataIndexInside;
  } else if (payload.dataIndex != null) {
    return Object(util["isArray"])(payload.dataIndex) ? Object(util["map"])(payload.dataIndex, function (value) {
      return data.indexOfRawIndex(value);
    }) : data.indexOfRawIndex(payload.dataIndex);
  } else if (payload.name != null) {
    return Object(util["isArray"])(payload.name) ? Object(util["map"])(payload.name, function (value) {
      return data.indexOfName(value);
    }) : data.indexOfName(payload.name);
  }
}
/**
 * Enable property storage to any host object.
 * Notice: Serialization is not supported.
 *
 * For example:
 * let inner = zrUitl.makeInner();
 *
 * function some1(hostObj) {
 *      inner(hostObj).someProperty = 1212;
 *      ...
 * }
 * function some2() {
 *      let fields = inner(this);
 *      fields.someProperty1 = 1212;
 *      fields.someProperty2 = 'xx';
 *      ...
 * }
 *
 * @return {Function}
 */
function makeInner() {
  var key = '__ec_inner_' + innerUniqueIndex++;
  return function (hostObj) {
    return hostObj[key] || (hostObj[key] = {});
  };
}
var innerUniqueIndex = getRandomIdBase();
/**
 * The same behavior as `component.getReferringComponents`.
 */
function parseFinder(ecModel, finderInput, opt) {
  var _a = preParseFinder(finderInput, opt),
    mainTypeSpecified = _a.mainTypeSpecified,
    queryOptionMap = _a.queryOptionMap,
    others = _a.others;
  var result = others;
  var defaultMainType = opt ? opt.defaultMainType : null;
  if (!mainTypeSpecified && defaultMainType) {
    queryOptionMap.set(defaultMainType, {});
  }
  queryOptionMap.each(function (queryOption, mainType) {
    var queryResult = queryReferringComponents(ecModel, mainType, queryOption, {
      useDefault: defaultMainType === mainType,
      enableAll: opt && opt.enableAll != null ? opt.enableAll : true,
      enableNone: opt && opt.enableNone != null ? opt.enableNone : true
    });
    result[mainType + 'Models'] = queryResult.models;
    result[mainType + 'Model'] = queryResult.models[0];
  });
  return result;
}
function preParseFinder(finderInput, opt) {
  var finder;
  if (Object(util["isString"])(finderInput)) {
    var obj = {};
    obj[finderInput + 'Index'] = 0;
    finder = obj;
  } else {
    finder = finderInput;
  }
  var queryOptionMap = Object(util["createHashMap"])();
  var others = {};
  var mainTypeSpecified = false;
  Object(util["each"])(finder, function (value, key) {
    // Exclude 'dataIndex' and other illgal keys.
    if (key === 'dataIndex' || key === 'dataIndexInside') {
      others[key] = value;
      return;
    }
    var parsedKey = key.match(/^(\w+)(Index|Id|Name)$/) || [];
    var mainType = parsedKey[1];
    var queryType = (parsedKey[2] || '').toLowerCase();
    if (!mainType || !queryType || opt && opt.includeMainTypes && Object(util["indexOf"])(opt.includeMainTypes, mainType) < 0) {
      return;
    }
    mainTypeSpecified = mainTypeSpecified || !!mainType;
    var queryOption = queryOptionMap.get(mainType) || queryOptionMap.set(mainType, {});
    queryOption[queryType] = value;
  });
  return {
    mainTypeSpecified: mainTypeSpecified,
    queryOptionMap: queryOptionMap,
    others: others
  };
}
var SINGLE_REFERRING = {
  useDefault: true,
  enableAll: false,
  enableNone: false
};
var MULTIPLE_REFERRING = {
  useDefault: false,
  enableAll: true,
  enableNone: true
};
function queryReferringComponents(ecModel, mainType, userOption, opt) {
  opt = opt || SINGLE_REFERRING;
  var indexOption = userOption.index;
  var idOption = userOption.id;
  var nameOption = userOption.name;
  var result = {
    models: null,
    specified: indexOption != null || idOption != null || nameOption != null
  };
  if (!result.specified) {
    // Use the first as default if `useDefault`.
    var firstCmpt = void 0;
    result.models = opt.useDefault && (firstCmpt = ecModel.getComponent(mainType)) ? [firstCmpt] : [];
    return result;
  }
  if (indexOption === 'none' || indexOption === false) {
    Object(util["assert"])(opt.enableNone, '`"none"` or `false` is not a valid value on index option.');
    result.models = [];
    return result;
  }
  // `queryComponents` will return all components if
  // both all of index/id/name are null/undefined.
  if (indexOption === 'all') {
    Object(util["assert"])(opt.enableAll, '`"all"` is not a valid value on index option.');
    indexOption = idOption = nameOption = null;
  }
  result.models = ecModel.queryComponents({
    mainType: mainType,
    index: indexOption,
    id: idOption,
    name: nameOption
  });
  return result;
}
function setAttribute(dom, key, value) {
  dom.setAttribute ? dom.setAttribute(key, value) : dom[key] = value;
}
function getAttribute(dom, key) {
  return dom.getAttribute ? dom.getAttribute(key) : dom[key];
}
function getTooltipRenderMode(renderModeOption) {
  if (renderModeOption === 'auto') {
    // Using html when `document` exists, use richText otherwise
    return env["a" /* default */].domSupported ? 'html' : 'richText';
  } else {
    return renderModeOption || 'html';
  }
}
/**
 * Group a list by key.
 */
function groupData(array, getKey // return key
) {
  var buckets = Object(util["createHashMap"])();
  var keys = [];
  Object(util["each"])(array, function (item) {
    var key = getKey(item);
    (buckets.get(key) || (keys.push(key), buckets.set(key, []))).push(item);
  });
  return {
    keys: keys,
    buckets: buckets
  };
}
/**
 * Interpolate raw values of a series with percent
 *
 * @param data         data
 * @param labelModel   label model of the text element
 * @param sourceValue  start value. May be null/undefined when init.
 * @param targetValue  end value
 * @param percent      0~1 percentage; 0 uses start value while 1 uses end value
 * @return             interpolated values
 *                     If `sourceValue` and `targetValue` are `number`, return `number`.
 *                     If `sourceValue` and `targetValue` are `string`, return `string`.
 *                     If `sourceValue` and `targetValue` are `(string | number)[]`, return `(string | number)[]`.
 *                     Other cases do not supported.
 */
function interpolateRawValues(data, precision, sourceValue, targetValue, percent) {
  var isAutoPrecision = precision == null || precision === 'auto';
  if (targetValue == null) {
    return targetValue;
  }
  if (Object(util["isNumber"])(targetValue)) {
    var value = model_interpolateNumber(sourceValue || 0, targetValue, percent);
    return round(value, isAutoPrecision ? Math.max(getPrecision(sourceValue || 0), getPrecision(targetValue)) : precision);
  } else if (Object(util["isString"])(targetValue)) {
    return percent < 1 ? sourceValue : targetValue;
  } else {
    var interpolated = [];
    var leftArr = sourceValue;
    var rightArr = targetValue;
    var length_1 = Math.max(leftArr ? leftArr.length : 0, rightArr.length);
    for (var i = 0; i < length_1; ++i) {
      var info = data.getDimensionInfo(i);
      // Don't interpolate ordinal dims
      if (info && info.type === 'ordinal') {
        // In init, there is no `sourceValue`, but should better not to get undefined result.
        interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i];
      } else {
        var leftVal = leftArr && leftArr[i] ? leftArr[i] : 0;
        var rightVal = rightArr[i];
        var value = model_interpolateNumber(leftVal, rightVal, percent);
        interpolated[i] = round(value, isAutoPrecision ? Math.max(getPrecision(leftVal), getPrecision(rightVal)) : precision);
      }
    }
    return interpolated;
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/clazz.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var TYPE_DELIMITER = '.';
var IS_CONTAINER = '___EC__COMPONENT__CONTAINER___';
var IS_EXTENDED_CLASS = '___EC__EXTENDED_CLASS___';
/**
 * Notice, parseClassType('') should returns {main: '', sub: ''}
 * @public
 */
function parseClassType(componentType) {
  var ret = {
    main: '',
    sub: ''
  };
  if (componentType) {
    var typeArr = componentType.split(TYPE_DELIMITER);
    ret.main = typeArr[0] || '';
    ret.sub = typeArr[1] || '';
  }
  return ret;
}
/**
 * @public
 */
function checkClassType(componentType) {
  util["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType), 'componentType "' + componentType + '" illegal');
}
function isExtendedClass(clz) {
  return !!(clz && clz[IS_EXTENDED_CLASS]);
}
/**
 * Implements `ExtendableConstructor` for `rootClz`.
 *
 * @usage
 * ```ts
 * class Xxx {}
 * type XxxConstructor = typeof Xxx & ExtendableConstructor
 * enableClassExtend(Xxx as XxxConstructor);
 * ```
 */
function enableClassExtend(rootClz, mandatoryMethods) {
  rootClz.$constructor = rootClz; // FIXME: not necessary?
  rootClz.extend = function (proto) {
    if (false) {}
    var superClass = this;
    var ExtendedClass;
    if (isESClass(superClass)) {
      ExtendedClass = /** @class */function (_super) {
        __extends(class_1, _super);
        function class_1() {
          return _super.apply(this, arguments) || this;
        }
        return class_1;
      }(superClass);
    } else {
      // For backward compat, we both support ts class inheritance and this
      // "extend" approach.
      // The constructor should keep the same behavior as ts class inheritance:
      // If this constructor/$constructor is not declared, auto invoke the super
      // constructor.
      // If this constructor/$constructor is declared, it is responsible for
      // calling the super constructor.
      ExtendedClass = function () {
        (proto.$constructor || superClass).apply(this, arguments);
      };
      util["inherits"](ExtendedClass, this);
    }
    util["extend"](ExtendedClass.prototype, proto);
    ExtendedClass[IS_EXTENDED_CLASS] = true;
    ExtendedClass.extend = this.extend;
    ExtendedClass.superCall = superCall;
    ExtendedClass.superApply = superApply;
    ExtendedClass.superClass = superClass;
    return ExtendedClass;
  };
}
function isESClass(fn) {
  return util["isFunction"](fn) && /^class\s/.test(Function.prototype.toString.call(fn));
}
/**
 * A work around to both support ts extend and this extend mechanism.
 * on sub-class.
 * @usage
 * ```ts
 * class Component { ... }
 * classUtil.enableClassExtend(Component);
 * classUtil.enableClassManagement(Component, {registerWhenExtend: true});
 *
 * class Series extends Component { ... }
 * // Without calling `markExtend`, `registerWhenExtend` will not work.
 * Component.markExtend(Series);
 * ```
 */
function mountExtend(SubClz, SupperClz) {
  SubClz.extend = SupperClz.extend;
}
// A random offset.
var classBase = Math.round(Math.random() * 10);
/**
 * Implements `CheckableConstructor` for `target`.
 * Can not use instanceof, consider different scope by
 * cross domain or es module import in ec extensions.
 * Mount a method "isInstance()" to Clz.
 *
 * @usage
 * ```ts
 * class Xxx {}
 * type XxxConstructor = typeof Xxx & CheckableConstructor;
 * enableClassCheck(Xxx as XxxConstructor)
 * ```
 */
function enableClassCheck(target) {
  var classAttr = ['__\0is_clz', classBase++].join('_');
  target.prototype[classAttr] = true;
  if (false) {}
  target.isInstance = function (obj) {
    return !!(obj && obj[classAttr]);
  };
}
// superCall should have class info, which can not be fetched from 'this'.
// Consider this case:
// class A has method f,
// class B inherits class A, overrides method f, f call superApply('f'),
// class C inherits class B, does not override method f,
// then when method of class C is called, dead loop occurred.
function superCall(context, methodName) {
  var args = [];
  for (var _i = 2; _i < arguments.length; _i++) {
    args[_i - 2] = arguments[_i];
  }
  return this.superClass.prototype[methodName].apply(context, args);
}
function superApply(context, methodName, args) {
  return this.superClass.prototype[methodName].apply(context, args);
}
/**
 * Implements `ClassManager` for `target`
 *
 * @usage
 * ```ts
 * class Xxx {}
 * type XxxConstructor = typeof Xxx & ClassManager
 * enableClassManagement(Xxx as XxxConstructor);
 * ```
 */
function enableClassManagement(target) {
  /**
   * Component model classes
   * key: componentType,
   * value:
   *     componentClass, when componentType is 'a'
   *     or Object.<subKey, componentClass>, when componentType is 'a.b'
   */
  var storage = {};
  target.registerClass = function (clz) {
    // `type` should not be a "instance member".
    // If using TS class, should better declared as `static type = 'series.pie'`.
    // otherwise users have to mount `type` on prototype manually.
    // For backward compat and enable instance visit type via `this.type`,
    // we still support fetch `type` from prototype.
    var componentFullType = clz.type || clz.prototype.type;
    if (componentFullType) {
      checkClassType(componentFullType);
      // If only static type declared, we assign it to prototype mandatorily.
      clz.prototype.type = componentFullType;
      var componentTypeInfo = parseClassType(componentFullType);
      if (!componentTypeInfo.sub) {
        if (false) {}
        storage[componentTypeInfo.main] = clz;
      } else if (componentTypeInfo.sub !== IS_CONTAINER) {
        var container = makeContainer(componentTypeInfo);
        container[componentTypeInfo.sub] = clz;
      }
    }
    return clz;
  };
  target.getClass = function (mainType, subType, throwWhenNotFound) {
    var clz = storage[mainType];
    if (clz && clz[IS_CONTAINER]) {
      clz = subType ? clz[subType] : null;
    }
    if (throwWhenNotFound && !clz) {
      throw new Error(!subType ? mainType + '.' + 'type should be specified.' : 'Component ' + mainType + '.' + (subType || '') + ' is used but not imported.');
    }
    return clz;
  };
  target.getClassesByMainType = function (componentType) {
    var componentTypeInfo = parseClassType(componentType);
    var result = [];
    var obj = storage[componentTypeInfo.main];
    if (obj && obj[IS_CONTAINER]) {
      util["each"](obj, function (o, type) {
        type !== IS_CONTAINER && result.push(o);
      });
    } else {
      result.push(obj);
    }
    return result;
  };
  target.hasClass = function (componentType) {
    // Just consider componentType.main.
    var componentTypeInfo = parseClassType(componentType);
    return !!storage[componentTypeInfo.main];
  };
  /**
   * @return Like ['aa', 'bb'], but can not be ['aa.xx']
   */
  target.getAllClassMainTypes = function () {
    var types = [];
    util["each"](storage, function (obj, type) {
      types.push(type);
    });
    return types;
  };
  /**
   * If a main type is container and has sub types
   */
  target.hasSubTypes = function (componentType) {
    var componentTypeInfo = parseClassType(componentType);
    var obj = storage[componentTypeInfo.main];
    return obj && obj[IS_CONTAINER];
  };
  function makeContainer(componentTypeInfo) {
    var container = storage[componentTypeInfo.main];
    if (!container || !container[IS_CONTAINER]) {
      container = storage[componentTypeInfo.main] = {};
      container[IS_CONTAINER] = true;
    }
    return container;
  }
}
// /**
//  * @param {string|Array.<string>} properties
//  */
// export function setReadOnly(obj, properties) {
// FIXME It seems broken in IE8 simulation of IE11
// if (!zrUtil.isArray(properties)) {
//     properties = properties != null ? [properties] : [];
// }
// zrUtil.each(properties, function (prop) {
//     let value = obj[prop];
//     Object.defineProperty
//         && Object.defineProperty(obj, prop, {
//             value: value, writable: false
//         });
//     zrUtil.isArray(obj[prop])
//         && Object.freeze
//         && Object.freeze(obj[prop]);
// });
// }
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/mixin/makeStyleMapper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO Parse shadow style
// TODO Only shallow path support

function makeStyleMapper(properties, ignoreParent) {
  // Normalize
  for (var i = 0; i < properties.length; i++) {
    if (!properties[i][1]) {
      properties[i][1] = properties[i][0];
    }
  }
  ignoreParent = ignoreParent || false;
  return function (model, excludes, includes) {
    var style = {};
    for (var i = 0; i < properties.length; i++) {
      var propName = properties[i][1];
      if (excludes && util["indexOf"](excludes, propName) >= 0 || includes && util["indexOf"](includes, propName) < 0) {
        continue;
      }
      var val = model.getShallow(propName, ignoreParent);
      if (val != null) {
        style[properties[i][0]] = val;
      }
    }
    // TODO Text or image?
    return style;
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/mixin/areaStyle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var AREA_STYLE_KEY_MAP = [['fill', 'color'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['opacity'], ['shadowColor']
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
];
var getAreaStyle = makeStyleMapper(AREA_STYLE_KEY_MAP);
var AreaStyleMixin = /** @class */function () {
  function AreaStyleMixin() {}
  AreaStyleMixin.prototype.getAreaStyle = function (excludes, includes) {
    return getAreaStyle(this, excludes, includes);
  };
  return AreaStyleMixin;
}();
;

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/image.js


var globalImageCache = new LRU["a" /* default */](50);
function findExistImage(newImageOrSrc) {
    if (typeof newImageOrSrc === 'string') {
        var cachedImgObj = globalImageCache.get(newImageOrSrc);
        return cachedImgObj && cachedImgObj.image;
    }
    else {
        return newImageOrSrc;
    }
}
function createOrUpdateImage(newImageOrSrc, image, hostEl, onload, cbPayload) {
    if (!newImageOrSrc) {
        return image;
    }
    else if (typeof newImageOrSrc === 'string') {
        if ((image && image.__zrImageSrc === newImageOrSrc) || !hostEl) {
            return image;
        }
        var cachedImgObj = globalImageCache.get(newImageOrSrc);
        var pendingWrap = { hostEl: hostEl, cb: onload, cbPayload: cbPayload };
        if (cachedImgObj) {
            image = cachedImgObj.image;
            !isImageReady(image) && cachedImgObj.pending.push(pendingWrap);
        }
        else {
            image = platform["d" /* platformApi */].loadImage(newImageOrSrc, imageOnLoad, imageOnLoad);
            image.__zrImageSrc = newImageOrSrc;
            globalImageCache.put(newImageOrSrc, image.__cachedImgObj = {
                image: image,
                pending: [pendingWrap]
            });
        }
        return image;
    }
    else {
        return newImageOrSrc;
    }
}
function imageOnLoad() {
    var cachedImgObj = this.__cachedImgObj;
    this.onload = this.onerror = this.__cachedImgObj = null;
    for (var i = 0; i < cachedImgObj.pending.length; i++) {
        var pendingWrap = cachedImgObj.pending[i];
        var cb = pendingWrap.cb;
        cb && cb(this, pendingWrap.cbPayload);
        pendingWrap.hostEl.dirty();
    }
    cachedImgObj.pending.length = 0;
}
function isImageReady(image) {
    return image && image.width && image.height;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/parseText.js



var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
function truncateText(text, containerWidth, font, ellipsis, options) {
    var out = {};
    truncateText2(out, text, containerWidth, font, ellipsis, options);
    return out.text;
}
function truncateText2(out, text, containerWidth, font, ellipsis, options) {
    if (!containerWidth) {
        out.text = '';
        out.isTruncated = false;
        return;
    }
    var textLines = (text + '').split('\n');
    options = prepareTruncateOptions(containerWidth, font, ellipsis, options);
    var isTruncated = false;
    var truncateOut = {};
    for (var i = 0, len = textLines.length; i < len; i++) {
        truncateSingleLine(truncateOut, textLines[i], options);
        textLines[i] = truncateOut.textLine;
        isTruncated = isTruncated || truncateOut.isTruncated;
    }
    out.text = textLines.join('\n');
    out.isTruncated = isTruncated;
}
function prepareTruncateOptions(containerWidth, font, ellipsis, options) {
    options = options || {};
    var preparedOpts = Object(util["extend"])({}, options);
    preparedOpts.font = font;
    ellipsis = Object(util["retrieve2"])(ellipsis, '...');
    preparedOpts.maxIterations = Object(util["retrieve2"])(options.maxIterations, 2);
    var minChar = preparedOpts.minChar = Object(util["retrieve2"])(options.minChar, 0);
    preparedOpts.cnCharWidth = getWidth('国', font);
    var ascCharWidth = preparedOpts.ascCharWidth = getWidth('a', font);
    preparedOpts.placeholder = Object(util["retrieve2"])(options.placeholder, '');
    var contentWidth = containerWidth = Math.max(0, containerWidth - 1);
    for (var i = 0; i < minChar && contentWidth >= ascCharWidth; i++) {
        contentWidth -= ascCharWidth;
    }
    var ellipsisWidth = getWidth(ellipsis, font);
    if (ellipsisWidth > contentWidth) {
        ellipsis = '';
        ellipsisWidth = 0;
    }
    contentWidth = containerWidth - ellipsisWidth;
    preparedOpts.ellipsis = ellipsis;
    preparedOpts.ellipsisWidth = ellipsisWidth;
    preparedOpts.contentWidth = contentWidth;
    preparedOpts.containerWidth = containerWidth;
    return preparedOpts;
}
function truncateSingleLine(out, textLine, options) {
    var containerWidth = options.containerWidth;
    var font = options.font;
    var contentWidth = options.contentWidth;
    if (!containerWidth) {
        out.textLine = '';
        out.isTruncated = false;
        return;
    }
    var lineWidth = getWidth(textLine, font);
    if (lineWidth <= containerWidth) {
        out.textLine = textLine;
        out.isTruncated = false;
        return;
    }
    for (var j = 0;; j++) {
        if (lineWidth <= contentWidth || j >= options.maxIterations) {
            textLine += options.ellipsis;
            break;
        }
        var subLength = j === 0
            ? estimateLength(textLine, contentWidth, options.ascCharWidth, options.cnCharWidth)
            : lineWidth > 0
                ? Math.floor(textLine.length * contentWidth / lineWidth)
                : 0;
        textLine = textLine.substr(0, subLength);
        lineWidth = getWidth(textLine, font);
    }
    if (textLine === '') {
        textLine = options.placeholder;
    }
    out.textLine = textLine;
    out.isTruncated = true;
}
function estimateLength(text, contentWidth, ascCharWidth, cnCharWidth) {
    var width = 0;
    var i = 0;
    for (var len = text.length; i < len && width < contentWidth; i++) {
        var charCode = text.charCodeAt(i);
        width += (0 <= charCode && charCode <= 127) ? ascCharWidth : cnCharWidth;
    }
    return i;
}
function parsePlainText(text, style) {
    text != null && (text += '');
    var overflow = style.overflow;
    var padding = style.padding;
    var font = style.font;
    var truncate = overflow === 'truncate';
    var calculatedLineHeight = getLineHeight(font);
    var lineHeight = Object(util["retrieve2"])(style.lineHeight, calculatedLineHeight);
    var bgColorDrawn = !!(style.backgroundColor);
    var truncateLineOverflow = style.lineOverflow === 'truncate';
    var isTruncated = false;
    var width = style.width;
    var lines;
    if (width != null && (overflow === 'break' || overflow === 'breakAll')) {
        lines = text ? wrapText(text, style.font, width, overflow === 'breakAll', 0).lines : [];
    }
    else {
        lines = text ? text.split('\n') : [];
    }
    var contentHeight = lines.length * lineHeight;
    var height = Object(util["retrieve2"])(style.height, contentHeight);
    if (contentHeight > height && truncateLineOverflow) {
        var lineCount = Math.floor(height / lineHeight);
        isTruncated = isTruncated || (lines.length > lineCount);
        lines = lines.slice(0, lineCount);
    }
    if (text && truncate && width != null) {
        var options = prepareTruncateOptions(width, font, style.ellipsis, {
            minChar: style.truncateMinChar,
            placeholder: style.placeholder
        });
        var singleOut = {};
        for (var i = 0; i < lines.length; i++) {
            truncateSingleLine(singleOut, lines[i], options);
            lines[i] = singleOut.textLine;
            isTruncated = isTruncated || singleOut.isTruncated;
        }
    }
    var outerHeight = height;
    var contentWidth = 0;
    for (var i = 0; i < lines.length; i++) {
        contentWidth = Math.max(getWidth(lines[i], font), contentWidth);
    }
    if (width == null) {
        width = contentWidth;
    }
    var outerWidth = contentWidth;
    if (padding) {
        outerHeight += padding[0] + padding[2];
        outerWidth += padding[1] + padding[3];
        width += padding[1] + padding[3];
    }
    if (bgColorDrawn) {
        outerWidth = width;
    }
    return {
        lines: lines,
        height: height,
        outerWidth: outerWidth,
        outerHeight: outerHeight,
        lineHeight: lineHeight,
        calculatedLineHeight: calculatedLineHeight,
        contentWidth: contentWidth,
        contentHeight: contentHeight,
        width: width,
        isTruncated: isTruncated
    };
}
var RichTextToken = (function () {
    function RichTextToken() {
    }
    return RichTextToken;
}());
var RichTextLine = (function () {
    function RichTextLine(tokens) {
        this.tokens = [];
        if (tokens) {
            this.tokens = tokens;
        }
    }
    return RichTextLine;
}());
var RichTextContentBlock = (function () {
    function RichTextContentBlock() {
        this.width = 0;
        this.height = 0;
        this.contentWidth = 0;
        this.contentHeight = 0;
        this.outerWidth = 0;
        this.outerHeight = 0;
        this.lines = [];
        this.isTruncated = false;
    }
    return RichTextContentBlock;
}());

function parseRichText(text, style) {
    var contentBlock = new RichTextContentBlock();
    text != null && (text += '');
    if (!text) {
        return contentBlock;
    }
    var topWidth = style.width;
    var topHeight = style.height;
    var overflow = style.overflow;
    var wrapInfo = (overflow === 'break' || overflow === 'breakAll') && topWidth != null
        ? { width: topWidth, accumWidth: 0, breakAll: overflow === 'breakAll' }
        : null;
    var lastIndex = STYLE_REG.lastIndex = 0;
    var result;
    while ((result = STYLE_REG.exec(text)) != null) {
        var matchedIndex = result.index;
        if (matchedIndex > lastIndex) {
            pushTokens(contentBlock, text.substring(lastIndex, matchedIndex), style, wrapInfo);
        }
        pushTokens(contentBlock, result[2], style, wrapInfo, result[1]);
        lastIndex = STYLE_REG.lastIndex;
    }
    if (lastIndex < text.length) {
        pushTokens(contentBlock, text.substring(lastIndex, text.length), style, wrapInfo);
    }
    var pendingList = [];
    var calculatedHeight = 0;
    var calculatedWidth = 0;
    var stlPadding = style.padding;
    var truncate = overflow === 'truncate';
    var truncateLine = style.lineOverflow === 'truncate';
    var tmpTruncateOut = {};
    function finishLine(line, lineWidth, lineHeight) {
        line.width = lineWidth;
        line.lineHeight = lineHeight;
        calculatedHeight += lineHeight;
        calculatedWidth = Math.max(calculatedWidth, lineWidth);
    }
    outer: for (var i = 0; i < contentBlock.lines.length; i++) {
        var line = contentBlock.lines[i];
        var lineHeight = 0;
        var lineWidth = 0;
        for (var j = 0; j < line.tokens.length; j++) {
            var token = line.tokens[j];
            var tokenStyle = token.styleName && style.rich[token.styleName] || {};
            var textPadding = token.textPadding = tokenStyle.padding;
            var paddingH = textPadding ? textPadding[1] + textPadding[3] : 0;
            var font = token.font = tokenStyle.font || style.font;
            token.contentHeight = getLineHeight(font);
            var tokenHeight = Object(util["retrieve2"])(tokenStyle.height, token.contentHeight);
            token.innerHeight = tokenHeight;
            textPadding && (tokenHeight += textPadding[0] + textPadding[2]);
            token.height = tokenHeight;
            token.lineHeight = Object(util["retrieve3"])(tokenStyle.lineHeight, style.lineHeight, tokenHeight);
            token.align = tokenStyle && tokenStyle.align || style.align;
            token.verticalAlign = tokenStyle && tokenStyle.verticalAlign || 'middle';
            if (truncateLine && topHeight != null && calculatedHeight + token.lineHeight > topHeight) {
                var originalLength = contentBlock.lines.length;
                if (j > 0) {
                    line.tokens = line.tokens.slice(0, j);
                    finishLine(line, lineWidth, lineHeight);
                    contentBlock.lines = contentBlock.lines.slice(0, i + 1);
                }
                else {
                    contentBlock.lines = contentBlock.lines.slice(0, i);
                }
                contentBlock.isTruncated = contentBlock.isTruncated || (contentBlock.lines.length < originalLength);
                break outer;
            }
            var styleTokenWidth = tokenStyle.width;
            var tokenWidthNotSpecified = styleTokenWidth == null || styleTokenWidth === 'auto';
            if (typeof styleTokenWidth === 'string' && styleTokenWidth.charAt(styleTokenWidth.length - 1) === '%') {
                token.percentWidth = styleTokenWidth;
                pendingList.push(token);
                token.contentWidth = getWidth(token.text, font);
            }
            else {
                if (tokenWidthNotSpecified) {
                    var textBackgroundColor = tokenStyle.backgroundColor;
                    var bgImg = textBackgroundColor && textBackgroundColor.image;
                    if (bgImg) {
                        bgImg = findExistImage(bgImg);
                        if (isImageReady(bgImg)) {
                            token.width = Math.max(token.width, bgImg.width * tokenHeight / bgImg.height);
                        }
                    }
                }
                var remainTruncWidth = truncate && topWidth != null
                    ? topWidth - lineWidth : null;
                if (remainTruncWidth != null && remainTruncWidth < token.width) {
                    if (!tokenWidthNotSpecified || remainTruncWidth < paddingH) {
                        token.text = '';
                        token.width = token.contentWidth = 0;
                    }
                    else {
                        truncateText2(tmpTruncateOut, token.text, remainTruncWidth - paddingH, font, style.ellipsis, { minChar: style.truncateMinChar });
                        token.text = tmpTruncateOut.text;
                        contentBlock.isTruncated = contentBlock.isTruncated || tmpTruncateOut.isTruncated;
                        token.width = token.contentWidth = getWidth(token.text, font);
                    }
                }
                else {
                    token.contentWidth = getWidth(token.text, font);
                }
            }
            token.width += paddingH;
            lineWidth += token.width;
            tokenStyle && (lineHeight = Math.max(lineHeight, token.lineHeight));
        }
        finishLine(line, lineWidth, lineHeight);
    }
    contentBlock.outerWidth = contentBlock.width = Object(util["retrieve2"])(topWidth, calculatedWidth);
    contentBlock.outerHeight = contentBlock.height = Object(util["retrieve2"])(topHeight, calculatedHeight);
    contentBlock.contentHeight = calculatedHeight;
    contentBlock.contentWidth = calculatedWidth;
    if (stlPadding) {
        contentBlock.outerWidth += stlPadding[1] + stlPadding[3];
        contentBlock.outerHeight += stlPadding[0] + stlPadding[2];
    }
    for (var i = 0; i < pendingList.length; i++) {
        var token = pendingList[i];
        var percentWidth = token.percentWidth;
        token.width = parseInt(percentWidth, 10) / 100 * contentBlock.width;
    }
    return contentBlock;
}
function pushTokens(block, str, style, wrapInfo, styleName) {
    var isEmptyStr = str === '';
    var tokenStyle = styleName && style.rich[styleName] || {};
    var lines = block.lines;
    var font = tokenStyle.font || style.font;
    var newLine = false;
    var strLines;
    var linesWidths;
    if (wrapInfo) {
        var tokenPadding = tokenStyle.padding;
        var tokenPaddingH = tokenPadding ? tokenPadding[1] + tokenPadding[3] : 0;
        if (tokenStyle.width != null && tokenStyle.width !== 'auto') {
            var outerWidth_1 = parsePercent(tokenStyle.width, wrapInfo.width) + tokenPaddingH;
            if (lines.length > 0) {
                if (outerWidth_1 + wrapInfo.accumWidth > wrapInfo.width) {
                    strLines = str.split('\n');
                    newLine = true;
                }
            }
            wrapInfo.accumWidth = outerWidth_1;
        }
        else {
            var res = wrapText(str, font, wrapInfo.width, wrapInfo.breakAll, wrapInfo.accumWidth);
            wrapInfo.accumWidth = res.accumWidth + tokenPaddingH;
            linesWidths = res.linesWidths;
            strLines = res.lines;
        }
    }
    else {
        strLines = str.split('\n');
    }
    for (var i = 0; i < strLines.length; i++) {
        var text = strLines[i];
        var token = new RichTextToken();
        token.styleName = styleName;
        token.text = text;
        token.isLineHolder = !text && !isEmptyStr;
        if (typeof tokenStyle.width === 'number') {
            token.width = tokenStyle.width;
        }
        else {
            token.width = linesWidths
                ? linesWidths[i]
                : getWidth(text, font);
        }
        if (!i && !newLine) {
            var tokens = (lines[lines.length - 1] || (lines[0] = new RichTextLine())).tokens;
            var tokensLen = tokens.length;
            (tokensLen === 1 && tokens[0].isLineHolder)
                ? (tokens[0] = token)
                : ((text || !tokensLen || isEmptyStr) && tokens.push(token));
        }
        else {
            lines.push(new RichTextLine([token]));
        }
    }
}
function isAlphabeticLetter(ch) {
    var code = ch.charCodeAt(0);
    return code >= 0x20 && code <= 0x24F
        || code >= 0x370 && code <= 0x10FF
        || code >= 0x1200 && code <= 0x13FF
        || code >= 0x1E00 && code <= 0x206F;
}
var breakCharMap = Object(util["reduce"])(',&?/;] '.split(''), function (obj, ch) {
    obj[ch] = true;
    return obj;
}, {});
function isWordBreakChar(ch) {
    if (isAlphabeticLetter(ch)) {
        if (breakCharMap[ch]) {
            return true;
        }
        return false;
    }
    return true;
}
function wrapText(text, font, lineWidth, isBreakAll, lastAccumWidth) {
    var lines = [];
    var linesWidths = [];
    var line = '';
    var currentWord = '';
    var currentWordWidth = 0;
    var accumWidth = 0;
    for (var i = 0; i < text.length; i++) {
        var ch = text.charAt(i);
        if (ch === '\n') {
            if (currentWord) {
                line += currentWord;
                accumWidth += currentWordWidth;
            }
            lines.push(line);
            linesWidths.push(accumWidth);
            line = '';
            currentWord = '';
            currentWordWidth = 0;
            accumWidth = 0;
            continue;
        }
        var chWidth = getWidth(ch, font);
        var inWord = isBreakAll ? false : !isWordBreakChar(ch);
        if (!lines.length
            ? lastAccumWidth + accumWidth + chWidth > lineWidth
            : accumWidth + chWidth > lineWidth) {
            if (!accumWidth) {
                if (inWord) {
                    lines.push(currentWord);
                    linesWidths.push(currentWordWidth);
                    currentWord = ch;
                    currentWordWidth = chWidth;
                }
                else {
                    lines.push(ch);
                    linesWidths.push(chWidth);
                }
            }
            else if (line || currentWord) {
                if (inWord) {
                    if (!line) {
                        line = currentWord;
                        currentWord = '';
                        currentWordWidth = 0;
                        accumWidth = currentWordWidth;
                    }
                    lines.push(line);
                    linesWidths.push(accumWidth - currentWordWidth);
                    currentWord += ch;
                    currentWordWidth += chWidth;
                    line = '';
                    accumWidth = currentWordWidth;
                }
                else {
                    if (currentWord) {
                        line += currentWord;
                        currentWord = '';
                        currentWordWidth = 0;
                    }
                    lines.push(line);
                    linesWidths.push(accumWidth);
                    line = ch;
                    accumWidth = chWidth;
                }
            }
            continue;
        }
        accumWidth += chWidth;
        if (inWord) {
            currentWord += ch;
            currentWordWidth += chWidth;
        }
        else {
            if (currentWord) {
                line += currentWord;
                currentWord = '';
                currentWordWidth = 0;
            }
            line += ch;
        }
    }
    if (!lines.length && !line) {
        line = text;
        currentWord = '';
        currentWordWidth = 0;
    }
    if (currentWord) {
        line += currentWord;
    }
    if (line) {
        lines.push(line);
        linesWidths.push(accumWidth);
    }
    if (lines.length === 1) {
        accumWidth += lastAccumWidth;
    }
    return {
        accumWidth: accumWidth,
        lines: lines,
        linesWidths: linesWidths
    };
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/Displayable.js





var STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));
var DEFAULT_COMMON_STYLE = {
    shadowBlur: 0,
    shadowOffsetX: 0,
    shadowOffsetY: 0,
    shadowColor: '#000',
    opacity: 1,
    blend: 'source-over'
};
var DEFAULT_COMMON_ANIMATION_PROPS = {
    style: {
        shadowBlur: true,
        shadowOffsetX: true,
        shadowOffsetY: true,
        shadowColor: true,
        opacity: true
    }
};
DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY] = true;
var Displayable_PRIMARY_STATES_KEYS = ['z', 'z2', 'invisible'];
var PRIMARY_STATES_KEYS_IN_HOVER_LAYER = ['invisible'];
var Displayable_Displayable = (function (_super) {
    tslib_es6_extends(Displayable, _super);
    function Displayable(props) {
        return _super.call(this, props) || this;
    }
    Displayable.prototype._init = function (props) {
        var keysArr = Object(util["keys"])(props);
        for (var i = 0; i < keysArr.length; i++) {
            var key = keysArr[i];
            if (key === 'style') {
                this.useStyle(props[key]);
            }
            else {
                _super.prototype.attrKV.call(this, key, props[key]);
            }
        }
        if (!this.style) {
            this.useStyle({});
        }
    };
    Displayable.prototype.beforeBrush = function () { };
    Displayable.prototype.afterBrush = function () { };
    Displayable.prototype.innerBeforeBrush = function () { };
    Displayable.prototype.innerAfterBrush = function () { };
    Displayable.prototype.shouldBePainted = function (viewWidth, viewHeight, considerClipPath, considerAncestors) {
        var m = this.transform;
        if (this.ignore
            || this.invisible
            || this.style.opacity === 0
            || (this.culling
                && isDisplayableCulled(this, viewWidth, viewHeight))
            || (m && !m[0] && !m[3])) {
            return false;
        }
        if (considerClipPath && this.__clipPaths) {
            for (var i = 0; i < this.__clipPaths.length; ++i) {
                if (this.__clipPaths[i].isZeroArea()) {
                    return false;
                }
            }
        }
        if (considerAncestors && this.parent) {
            var parent_1 = this.parent;
            while (parent_1) {
                if (parent_1.ignore) {
                    return false;
                }
                parent_1 = parent_1.parent;
            }
        }
        return true;
    };
    Displayable.prototype.contain = function (x, y) {
        return this.rectContain(x, y);
    };
    Displayable.prototype.traverse = function (cb, context) {
        cb.call(context, this);
    };
    Displayable.prototype.rectContain = function (x, y) {
        var coord = this.transformCoordToLocal(x, y);
        var rect = this.getBoundingRect();
        return rect.contain(coord[0], coord[1]);
    };
    Displayable.prototype.getPaintRect = function () {
        var rect = this._paintRect;
        if (!this._paintRect || this.__dirty) {
            var transform = this.transform;
            var elRect = this.getBoundingRect();
            var style = this.style;
            var shadowSize = style.shadowBlur || 0;
            var shadowOffsetX = style.shadowOffsetX || 0;
            var shadowOffsetY = style.shadowOffsetY || 0;
            rect = this._paintRect || (this._paintRect = new core_BoundingRect(0, 0, 0, 0));
            if (transform) {
                core_BoundingRect.applyTransform(rect, elRect, transform);
            }
            else {
                rect.copy(elRect);
            }
            if (shadowSize || shadowOffsetX || shadowOffsetY) {
                rect.width += shadowSize * 2 + Math.abs(shadowOffsetX);
                rect.height += shadowSize * 2 + Math.abs(shadowOffsetY);
                rect.x = Math.min(rect.x, rect.x + shadowOffsetX - shadowSize);
                rect.y = Math.min(rect.y, rect.y + shadowOffsetY - shadowSize);
            }
            var tolerance = this.dirtyRectTolerance;
            if (!rect.isZero()) {
                rect.x = Math.floor(rect.x - tolerance);
                rect.y = Math.floor(rect.y - tolerance);
                rect.width = Math.ceil(rect.width + 1 + tolerance * 2);
                rect.height = Math.ceil(rect.height + 1 + tolerance * 2);
            }
        }
        return rect;
    };
    Displayable.prototype.setPrevPaintRect = function (paintRect) {
        if (paintRect) {
            this._prevPaintRect = this._prevPaintRect || new core_BoundingRect(0, 0, 0, 0);
            this._prevPaintRect.copy(paintRect);
        }
        else {
            this._prevPaintRect = null;
        }
    };
    Displayable.prototype.getPrevPaintRect = function () {
        return this._prevPaintRect;
    };
    Displayable.prototype.animateStyle = function (loop) {
        return this.animate('style', loop);
    };
    Displayable.prototype.updateDuringAnimation = function (targetKey) {
        if (targetKey === 'style') {
            this.dirtyStyle();
        }
        else {
            this.markRedraw();
        }
    };
    Displayable.prototype.attrKV = function (key, value) {
        if (key !== 'style') {
            _super.prototype.attrKV.call(this, key, value);
        }
        else {
            if (!this.style) {
                this.useStyle(value);
            }
            else {
                this.setStyle(value);
            }
        }
    };
    Displayable.prototype.setStyle = function (keyOrObj, value) {
        if (typeof keyOrObj === 'string') {
            this.style[keyOrObj] = value;
        }
        else {
            Object(util["extend"])(this.style, keyOrObj);
        }
        this.dirtyStyle();
        return this;
    };
    Displayable.prototype.dirtyStyle = function (notRedraw) {
        if (!notRedraw) {
            this.markRedraw();
        }
        this.__dirty |= STYLE_CHANGED_BIT;
        if (this._rect) {
            this._rect = null;
        }
    };
    Displayable.prototype.dirty = function () {
        this.dirtyStyle();
    };
    Displayable.prototype.styleChanged = function () {
        return !!(this.__dirty & STYLE_CHANGED_BIT);
    };
    Displayable.prototype.styleUpdated = function () {
        this.__dirty &= ~STYLE_CHANGED_BIT;
    };
    Displayable.prototype.createStyle = function (obj) {
        return Object(util["createObject"])(DEFAULT_COMMON_STYLE, obj);
    };
    Displayable.prototype.useStyle = function (obj) {
        if (!obj[STYLE_MAGIC_KEY]) {
            obj = this.createStyle(obj);
        }
        if (this.__inHover) {
            this.__hoverStyle = obj;
        }
        else {
            this.style = obj;
        }
        this.dirtyStyle();
    };
    Displayable.prototype.isStyleObject = function (obj) {
        return obj[STYLE_MAGIC_KEY];
    };
    Displayable.prototype._innerSaveToNormal = function (toState) {
        _super.prototype._innerSaveToNormal.call(this, toState);
        var normalState = this._normalState;
        if (toState.style && !normalState.style) {
            normalState.style = this._mergeStyle(this.createStyle(), this.style);
        }
        this._savePrimaryToNormal(toState, normalState, Displayable_PRIMARY_STATES_KEYS);
    };
    Displayable.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {
        _super.prototype._applyStateObj.call(this, stateName, state, normalState, keepCurrentStates, transition, animationCfg);
        var needsRestoreToNormal = !(state && keepCurrentStates);
        var targetStyle;
        if (state && state.style) {
            if (transition) {
                if (keepCurrentStates) {
                    targetStyle = state.style;
                }
                else {
                    targetStyle = this._mergeStyle(this.createStyle(), normalState.style);
                    this._mergeStyle(targetStyle, state.style);
                }
            }
            else {
                targetStyle = this._mergeStyle(this.createStyle(), keepCurrentStates ? this.style : normalState.style);
                this._mergeStyle(targetStyle, state.style);
            }
        }
        else if (needsRestoreToNormal) {
            targetStyle = normalState.style;
        }
        if (targetStyle) {
            if (transition) {
                var sourceStyle = this.style;
                this.style = this.createStyle(needsRestoreToNormal ? {} : sourceStyle);
                if (needsRestoreToNormal) {
                    var changedKeys = Object(util["keys"])(sourceStyle);
                    for (var i = 0; i < changedKeys.length; i++) {
                        var key = changedKeys[i];
                        if (key in targetStyle) {
                            targetStyle[key] = targetStyle[key];
                            this.style[key] = sourceStyle[key];
                        }
                    }
                }
                var targetKeys = Object(util["keys"])(targetStyle);
                for (var i = 0; i < targetKeys.length; i++) {
                    var key = targetKeys[i];
                    this.style[key] = this.style[key];
                }
                this._transitionState(stateName, {
                    style: targetStyle
                }, animationCfg, this.getAnimationStyleProps());
            }
            else {
                this.useStyle(targetStyle);
            }
        }
        var statesKeys = this.__inHover ? PRIMARY_STATES_KEYS_IN_HOVER_LAYER : Displayable_PRIMARY_STATES_KEYS;
        for (var i = 0; i < statesKeys.length; i++) {
            var key = statesKeys[i];
            if (state && state[key] != null) {
                this[key] = state[key];
            }
            else if (needsRestoreToNormal) {
                if (normalState[key] != null) {
                    this[key] = normalState[key];
                }
            }
        }
    };
    Displayable.prototype._mergeStates = function (states) {
        var mergedState = _super.prototype._mergeStates.call(this, states);
        var mergedStyle;
        for (var i = 0; i < states.length; i++) {
            var state = states[i];
            if (state.style) {
                mergedStyle = mergedStyle || {};
                this._mergeStyle(mergedStyle, state.style);
            }
        }
        if (mergedStyle) {
            mergedState.style = mergedStyle;
        }
        return mergedState;
    };
    Displayable.prototype._mergeStyle = function (targetStyle, sourceStyle) {
        Object(util["extend"])(targetStyle, sourceStyle);
        return targetStyle;
    };
    Displayable.prototype.getAnimationStyleProps = function () {
        return DEFAULT_COMMON_ANIMATION_PROPS;
    };
    Displayable.initDefaultProps = (function () {
        var dispProto = Displayable.prototype;
        dispProto.type = 'displayable';
        dispProto.invisible = false;
        dispProto.z = 0;
        dispProto.z2 = 0;
        dispProto.zlevel = 0;
        dispProto.culling = false;
        dispProto.cursor = 'pointer';
        dispProto.rectHover = false;
        dispProto.incremental = false;
        dispProto._rect = null;
        dispProto.dirtyRectTolerance = 0;
        dispProto.__dirty = REDRAW_BIT | STYLE_CHANGED_BIT;
    })();
    return Displayable;
}(lib_Element));
var Displayable_tmpRect = new core_BoundingRect(0, 0, 0, 0);
var Displayable_viewRect = new core_BoundingRect(0, 0, 0, 0);
function isDisplayableCulled(el, width, height) {
    Displayable_tmpRect.copy(el.getBoundingRect());
    if (el.transform) {
        Displayable_tmpRect.applyTransform(el.transform);
    }
    Displayable_viewRect.width = width;
    Displayable_viewRect.height = height;
    return !Displayable_tmpRect.intersect(Displayable_viewRect);
}
/* harmony default export */ var graphic_Displayable = (Displayable_Displayable);

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/bbox.js


var bbox_mathMin = Math.min;
var bbox_mathMax = Math.max;
var bbox_mathSin = Math.sin;
var bbox_mathCos = Math.cos;
var bbox_PI2 = Math.PI * 2;
var bbox_start = vector_create();
var bbox_end = vector_create();
var extremity = vector_create();
function fromPoints(points, min, max) {
    if (points.length === 0) {
        return;
    }
    var p = points[0];
    var left = p[0];
    var right = p[0];
    var top = p[1];
    var bottom = p[1];
    for (var i = 1; i < points.length; i++) {
        p = points[i];
        left = bbox_mathMin(left, p[0]);
        right = bbox_mathMax(right, p[0]);
        top = bbox_mathMin(top, p[1]);
        bottom = bbox_mathMax(bottom, p[1]);
    }
    min[0] = left;
    min[1] = top;
    max[0] = right;
    max[1] = bottom;
}
function fromLine(x0, y0, x1, y1, min, max) {
    min[0] = bbox_mathMin(x0, x1);
    min[1] = bbox_mathMin(y0, y1);
    max[0] = bbox_mathMax(x0, x1);
    max[1] = bbox_mathMax(y0, y1);
}
var xDim = [];
var yDim = [];
function fromCubic(x0, y0, x1, y1, x2, y2, x3, y3, min, max) {
    var cubicExtrema = curve_cubicExtrema;
    var cubicAt = curve_cubicAt;
    var n = cubicExtrema(x0, x1, x2, x3, xDim);
    min[0] = Infinity;
    min[1] = Infinity;
    max[0] = -Infinity;
    max[1] = -Infinity;
    for (var i = 0; i < n; i++) {
        var x = cubicAt(x0, x1, x2, x3, xDim[i]);
        min[0] = bbox_mathMin(x, min[0]);
        max[0] = bbox_mathMax(x, max[0]);
    }
    n = cubicExtrema(y0, y1, y2, y3, yDim);
    for (var i = 0; i < n; i++) {
        var y = cubicAt(y0, y1, y2, y3, yDim[i]);
        min[1] = bbox_mathMin(y, min[1]);
        max[1] = bbox_mathMax(y, max[1]);
    }
    min[0] = bbox_mathMin(x0, min[0]);
    max[0] = bbox_mathMax(x0, max[0]);
    min[0] = bbox_mathMin(x3, min[0]);
    max[0] = bbox_mathMax(x3, max[0]);
    min[1] = bbox_mathMin(y0, min[1]);
    max[1] = bbox_mathMax(y0, max[1]);
    min[1] = bbox_mathMin(y3, min[1]);
    max[1] = bbox_mathMax(y3, max[1]);
}
function fromQuadratic(x0, y0, x1, y1, x2, y2, min, max) {
    var quadraticExtremum = curve_quadraticExtremum;
    var quadraticAt = curve_quadraticAt;
    var tx = bbox_mathMax(bbox_mathMin(quadraticExtremum(x0, x1, x2), 1), 0);
    var ty = bbox_mathMax(bbox_mathMin(quadraticExtremum(y0, y1, y2), 1), 0);
    var x = quadraticAt(x0, x1, x2, tx);
    var y = quadraticAt(y0, y1, y2, ty);
    min[0] = bbox_mathMin(x0, x2, x);
    min[1] = bbox_mathMin(y0, y2, y);
    max[0] = bbox_mathMax(x0, x2, x);
    max[1] = bbox_mathMax(y0, y2, y);
}
function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min, max) {
    var vec2Min = vector_min;
    var vec2Max = vector_max;
    var diff = Math.abs(startAngle - endAngle);
    if (diff % bbox_PI2 < 1e-4 && diff > 1e-4) {
        min[0] = x - rx;
        min[1] = y - ry;
        max[0] = x + rx;
        max[1] = y + ry;
        return;
    }
    bbox_start[0] = bbox_mathCos(startAngle) * rx + x;
    bbox_start[1] = bbox_mathSin(startAngle) * ry + y;
    bbox_end[0] = bbox_mathCos(endAngle) * rx + x;
    bbox_end[1] = bbox_mathSin(endAngle) * ry + y;
    vec2Min(min, bbox_start, bbox_end);
    vec2Max(max, bbox_start, bbox_end);
    startAngle = startAngle % (bbox_PI2);
    if (startAngle < 0) {
        startAngle = startAngle + bbox_PI2;
    }
    endAngle = endAngle % (bbox_PI2);
    if (endAngle < 0) {
        endAngle = endAngle + bbox_PI2;
    }
    if (startAngle > endAngle && !anticlockwise) {
        endAngle += bbox_PI2;
    }
    else if (startAngle < endAngle && anticlockwise) {
        startAngle += bbox_PI2;
    }
    if (anticlockwise) {
        var tmp = endAngle;
        endAngle = startAngle;
        startAngle = tmp;
    }
    for (var angle = 0; angle < endAngle; angle += Math.PI / 2) {
        if (angle > startAngle) {
            extremity[0] = bbox_mathCos(angle) * rx + x;
            extremity[1] = bbox_mathSin(angle) * ry + y;
            vec2Min(min, extremity, min);
            vec2Max(max, extremity, max);
        }
    }
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/PathProxy.js





var PathProxy_CMD = {
    M: 1,
    L: 2,
    C: 3,
    Q: 4,
    A: 5,
    Z: 6,
    R: 7
};
var tmpOutX = [];
var tmpOutY = [];
var PathProxy_min = [];
var PathProxy_max = [];
var PathProxy_min2 = [];
var PathProxy_max2 = [];
var PathProxy_mathMin = Math.min;
var PathProxy_mathMax = Math.max;
var PathProxy_mathCos = Math.cos;
var PathProxy_mathSin = Math.sin;
var mathAbs = Math.abs;
var PathProxy_PI = Math.PI;
var PathProxy_PI2 = PathProxy_PI * 2;
var hasTypedArray = typeof Float32Array !== 'undefined';
var tmpAngles = [];
function modPI2(radian) {
    var n = Math.round(radian / PathProxy_PI * 1e8) / 1e8;
    return (n % 2) * PathProxy_PI;
}
function normalizeArcAngles(angles, anticlockwise) {
    var newStartAngle = modPI2(angles[0]);
    if (newStartAngle < 0) {
        newStartAngle += PathProxy_PI2;
    }
    var delta = newStartAngle - angles[0];
    var newEndAngle = angles[1];
    newEndAngle += delta;
    if (!anticlockwise && newEndAngle - newStartAngle >= PathProxy_PI2) {
        newEndAngle = newStartAngle + PathProxy_PI2;
    }
    else if (anticlockwise && newStartAngle - newEndAngle >= PathProxy_PI2) {
        newEndAngle = newStartAngle - PathProxy_PI2;
    }
    else if (!anticlockwise && newStartAngle > newEndAngle) {
        newEndAngle = newStartAngle + (PathProxy_PI2 - modPI2(newStartAngle - newEndAngle));
    }
    else if (anticlockwise && newStartAngle < newEndAngle) {
        newEndAngle = newStartAngle - (PathProxy_PI2 - modPI2(newEndAngle - newStartAngle));
    }
    angles[0] = newStartAngle;
    angles[1] = newEndAngle;
}
var PathProxy_PathProxy = (function () {
    function PathProxy(notSaveData) {
        this.dpr = 1;
        this._xi = 0;
        this._yi = 0;
        this._x0 = 0;
        this._y0 = 0;
        this._len = 0;
        if (notSaveData) {
            this._saveData = false;
        }
        if (this._saveData) {
            this.data = [];
        }
    }
    PathProxy.prototype.increaseVersion = function () {
        this._version++;
    };
    PathProxy.prototype.getVersion = function () {
        return this._version;
    };
    PathProxy.prototype.setScale = function (sx, sy, segmentIgnoreThreshold) {
        segmentIgnoreThreshold = segmentIgnoreThreshold || 0;
        if (segmentIgnoreThreshold > 0) {
            this._ux = mathAbs(segmentIgnoreThreshold / devicePixelRatio / sx) || 0;
            this._uy = mathAbs(segmentIgnoreThreshold / devicePixelRatio / sy) || 0;
        }
    };
    PathProxy.prototype.setDPR = function (dpr) {
        this.dpr = dpr;
    };
    PathProxy.prototype.setContext = function (ctx) {
        this._ctx = ctx;
    };
    PathProxy.prototype.getContext = function () {
        return this._ctx;
    };
    PathProxy.prototype.beginPath = function () {
        this._ctx && this._ctx.beginPath();
        this.reset();
        return this;
    };
    PathProxy.prototype.reset = function () {
        if (this._saveData) {
            this._len = 0;
        }
        if (this._pathSegLen) {
            this._pathSegLen = null;
            this._pathLen = 0;
        }
        this._version++;
    };
    PathProxy.prototype.moveTo = function (x, y) {
        this._drawPendingPt();
        this.addData(PathProxy_CMD.M, x, y);
        this._ctx && this._ctx.moveTo(x, y);
        this._x0 = x;
        this._y0 = y;
        this._xi = x;
        this._yi = y;
        return this;
    };
    PathProxy.prototype.lineTo = function (x, y) {
        var dx = mathAbs(x - this._xi);
        var dy = mathAbs(y - this._yi);
        var exceedUnit = dx > this._ux || dy > this._uy;
        this.addData(PathProxy_CMD.L, x, y);
        if (this._ctx && exceedUnit) {
            this._ctx.lineTo(x, y);
        }
        if (exceedUnit) {
            this._xi = x;
            this._yi = y;
            this._pendingPtDist = 0;
        }
        else {
            var d2 = dx * dx + dy * dy;
            if (d2 > this._pendingPtDist) {
                this._pendingPtX = x;
                this._pendingPtY = y;
                this._pendingPtDist = d2;
            }
        }
        return this;
    };
    PathProxy.prototype.bezierCurveTo = function (x1, y1, x2, y2, x3, y3) {
        this._drawPendingPt();
        this.addData(PathProxy_CMD.C, x1, y1, x2, y2, x3, y3);
        if (this._ctx) {
            this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);
        }
        this._xi = x3;
        this._yi = y3;
        return this;
    };
    PathProxy.prototype.quadraticCurveTo = function (x1, y1, x2, y2) {
        this._drawPendingPt();
        this.addData(PathProxy_CMD.Q, x1, y1, x2, y2);
        if (this._ctx) {
            this._ctx.quadraticCurveTo(x1, y1, x2, y2);
        }
        this._xi = x2;
        this._yi = y2;
        return this;
    };
    PathProxy.prototype.arc = function (cx, cy, r, startAngle, endAngle, anticlockwise) {
        this._drawPendingPt();
        tmpAngles[0] = startAngle;
        tmpAngles[1] = endAngle;
        normalizeArcAngles(tmpAngles, anticlockwise);
        startAngle = tmpAngles[0];
        endAngle = tmpAngles[1];
        var delta = endAngle - startAngle;
        this.addData(PathProxy_CMD.A, cx, cy, r, r, startAngle, delta, 0, anticlockwise ? 0 : 1);
        this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);
        this._xi = PathProxy_mathCos(endAngle) * r + cx;
        this._yi = PathProxy_mathSin(endAngle) * r + cy;
        return this;
    };
    PathProxy.prototype.arcTo = function (x1, y1, x2, y2, radius) {
        this._drawPendingPt();
        if (this._ctx) {
            this._ctx.arcTo(x1, y1, x2, y2, radius);
        }
        return this;
    };
    PathProxy.prototype.rect = function (x, y, w, h) {
        this._drawPendingPt();
        this._ctx && this._ctx.rect(x, y, w, h);
        this.addData(PathProxy_CMD.R, x, y, w, h);
        return this;
    };
    PathProxy.prototype.closePath = function () {
        this._drawPendingPt();
        this.addData(PathProxy_CMD.Z);
        var ctx = this._ctx;
        var x0 = this._x0;
        var y0 = this._y0;
        if (ctx) {
            ctx.closePath();
        }
        this._xi = x0;
        this._yi = y0;
        return this;
    };
    PathProxy.prototype.fill = function (ctx) {
        ctx && ctx.fill();
        this.toStatic();
    };
    PathProxy.prototype.stroke = function (ctx) {
        ctx && ctx.stroke();
        this.toStatic();
    };
    PathProxy.prototype.len = function () {
        return this._len;
    };
    PathProxy.prototype.setData = function (data) {
        var len = data.length;
        if (!(this.data && this.data.length === len) && hasTypedArray) {
            this.data = new Float32Array(len);
        }
        for (var i = 0; i < len; i++) {
            this.data[i] = data[i];
        }
        this._len = len;
    };
    PathProxy.prototype.appendPath = function (path) {
        if (!(path instanceof Array)) {
            path = [path];
        }
        var len = path.length;
        var appendSize = 0;
        var offset = this._len;
        for (var i = 0; i < len; i++) {
            appendSize += path[i].len();
        }
        if (hasTypedArray && (this.data instanceof Float32Array)) {
            this.data = new Float32Array(offset + appendSize);
        }
        for (var i = 0; i < len; i++) {
            var appendPathData = path[i].data;
            for (var k = 0; k < appendPathData.length; k++) {
                this.data[offset++] = appendPathData[k];
            }
        }
        this._len = offset;
    };
    PathProxy.prototype.addData = function (cmd, a, b, c, d, e, f, g, h) {
        if (!this._saveData) {
            return;
        }
        var data = this.data;
        if (this._len + arguments.length > data.length) {
            this._expandData();
            data = this.data;
        }
        for (var i = 0; i < arguments.length; i++) {
            data[this._len++] = arguments[i];
        }
    };
    PathProxy.prototype._drawPendingPt = function () {
        if (this._pendingPtDist > 0) {
            this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY);
            this._pendingPtDist = 0;
        }
    };
    PathProxy.prototype._expandData = function () {
        if (!(this.data instanceof Array)) {
            var newData = [];
            for (var i = 0; i < this._len; i++) {
                newData[i] = this.data[i];
            }
            this.data = newData;
        }
    };
    PathProxy.prototype.toStatic = function () {
        if (!this._saveData) {
            return;
        }
        this._drawPendingPt();
        var data = this.data;
        if (data instanceof Array) {
            data.length = this._len;
            if (hasTypedArray && this._len > 11) {
                this.data = new Float32Array(data);
            }
        }
    };
    PathProxy.prototype.getBoundingRect = function () {
        PathProxy_min[0] = PathProxy_min[1] = PathProxy_min2[0] = PathProxy_min2[1] = Number.MAX_VALUE;
        PathProxy_max[0] = PathProxy_max[1] = PathProxy_max2[0] = PathProxy_max2[1] = -Number.MAX_VALUE;
        var data = this.data;
        var xi = 0;
        var yi = 0;
        var x0 = 0;
        var y0 = 0;
        var i;
        for (i = 0; i < this._len;) {
            var cmd = data[i++];
            var isFirst = i === 1;
            if (isFirst) {
                xi = data[i];
                yi = data[i + 1];
                x0 = xi;
                y0 = yi;
            }
            switch (cmd) {
                case PathProxy_CMD.M:
                    xi = x0 = data[i++];
                    yi = y0 = data[i++];
                    PathProxy_min2[0] = x0;
                    PathProxy_min2[1] = y0;
                    PathProxy_max2[0] = x0;
                    PathProxy_max2[1] = y0;
                    break;
                case PathProxy_CMD.L:
                    fromLine(xi, yi, data[i], data[i + 1], PathProxy_min2, PathProxy_max2);
                    xi = data[i++];
                    yi = data[i++];
                    break;
                case PathProxy_CMD.C:
                    fromCubic(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], PathProxy_min2, PathProxy_max2);
                    xi = data[i++];
                    yi = data[i++];
                    break;
                case PathProxy_CMD.Q:
                    fromQuadratic(xi, yi, data[i++], data[i++], data[i], data[i + 1], PathProxy_min2, PathProxy_max2);
                    xi = data[i++];
                    yi = data[i++];
                    break;
                case PathProxy_CMD.A:
                    var cx = data[i++];
                    var cy = data[i++];
                    var rx = data[i++];
                    var ry = data[i++];
                    var startAngle = data[i++];
                    var endAngle = data[i++] + startAngle;
                    i += 1;
                    var anticlockwise = !data[i++];
                    if (isFirst) {
                        x0 = PathProxy_mathCos(startAngle) * rx + cx;
                        y0 = PathProxy_mathSin(startAngle) * ry + cy;
                    }
                    fromArc(cx, cy, rx, ry, startAngle, endAngle, anticlockwise, PathProxy_min2, PathProxy_max2);
                    xi = PathProxy_mathCos(endAngle) * rx + cx;
                    yi = PathProxy_mathSin(endAngle) * ry + cy;
                    break;
                case PathProxy_CMD.R:
                    x0 = xi = data[i++];
                    y0 = yi = data[i++];
                    var width = data[i++];
                    var height = data[i++];
                    fromLine(x0, y0, x0 + width, y0 + height, PathProxy_min2, PathProxy_max2);
                    break;
                case PathProxy_CMD.Z:
                    xi = x0;
                    yi = y0;
                    break;
            }
            vector_min(PathProxy_min, PathProxy_min, PathProxy_min2);
            vector_max(PathProxy_max, PathProxy_max, PathProxy_max2);
        }
        if (i === 0) {
            PathProxy_min[0] = PathProxy_min[1] = PathProxy_max[0] = PathProxy_max[1] = 0;
        }
        return new core_BoundingRect(PathProxy_min[0], PathProxy_min[1], PathProxy_max[0] - PathProxy_min[0], PathProxy_max[1] - PathProxy_min[1]);
    };
    PathProxy.prototype._calculateLength = function () {
        var data = this.data;
        var len = this._len;
        var ux = this._ux;
        var uy = this._uy;
        var xi = 0;
        var yi = 0;
        var x0 = 0;
        var y0 = 0;
        if (!this._pathSegLen) {
            this._pathSegLen = [];
        }
        var pathSegLen = this._pathSegLen;
        var pathTotalLen = 0;
        var segCount = 0;
        for (var i = 0; i < len;) {
            var cmd = data[i++];
            var isFirst = i === 1;
            if (isFirst) {
                xi = data[i];
                yi = data[i + 1];
                x0 = xi;
                y0 = yi;
            }
            var l = -1;
            switch (cmd) {
                case PathProxy_CMD.M:
                    xi = x0 = data[i++];
                    yi = y0 = data[i++];
                    break;
                case PathProxy_CMD.L: {
                    var x2 = data[i++];
                    var y2 = data[i++];
                    var dx = x2 - xi;
                    var dy = y2 - yi;
                    if (mathAbs(dx) > ux || mathAbs(dy) > uy || i === len - 1) {
                        l = Math.sqrt(dx * dx + dy * dy);
                        xi = x2;
                        yi = y2;
                    }
                    break;
                }
                case PathProxy_CMD.C: {
                    var x1 = data[i++];
                    var y1 = data[i++];
                    var x2 = data[i++];
                    var y2 = data[i++];
                    var x3 = data[i++];
                    var y3 = data[i++];
                    l = cubicLength(xi, yi, x1, y1, x2, y2, x3, y3, 10);
                    xi = x3;
                    yi = y3;
                    break;
                }
                case PathProxy_CMD.Q: {
                    var x1 = data[i++];
                    var y1 = data[i++];
                    var x2 = data[i++];
                    var y2 = data[i++];
                    l = quadraticLength(xi, yi, x1, y1, x2, y2, 10);
                    xi = x2;
                    yi = y2;
                    break;
                }
                case PathProxy_CMD.A:
                    var cx = data[i++];
                    var cy = data[i++];
                    var rx = data[i++];
                    var ry = data[i++];
                    var startAngle = data[i++];
                    var delta = data[i++];
                    var endAngle = delta + startAngle;
                    i += 1;
                    if (isFirst) {
                        x0 = PathProxy_mathCos(startAngle) * rx + cx;
                        y0 = PathProxy_mathSin(startAngle) * ry + cy;
                    }
                    l = PathProxy_mathMax(rx, ry) * PathProxy_mathMin(PathProxy_PI2, Math.abs(delta));
                    xi = PathProxy_mathCos(endAngle) * rx + cx;
                    yi = PathProxy_mathSin(endAngle) * ry + cy;
                    break;
                case PathProxy_CMD.R: {
                    x0 = xi = data[i++];
                    y0 = yi = data[i++];
                    var width = data[i++];
                    var height = data[i++];
                    l = width * 2 + height * 2;
                    break;
                }
                case PathProxy_CMD.Z: {
                    var dx = x0 - xi;
                    var dy = y0 - yi;
                    l = Math.sqrt(dx * dx + dy * dy);
                    xi = x0;
                    yi = y0;
                    break;
                }
            }
            if (l >= 0) {
                pathSegLen[segCount++] = l;
                pathTotalLen += l;
            }
        }
        this._pathLen = pathTotalLen;
        return pathTotalLen;
    };
    PathProxy.prototype.rebuildPath = function (ctx, percent) {
        var d = this.data;
        var ux = this._ux;
        var uy = this._uy;
        var len = this._len;
        var x0;
        var y0;
        var xi;
        var yi;
        var x;
        var y;
        var drawPart = percent < 1;
        var pathSegLen;
        var pathTotalLen;
        var accumLength = 0;
        var segCount = 0;
        var displayedLength;
        var pendingPtDist = 0;
        var pendingPtX;
        var pendingPtY;
        if (drawPart) {
            if (!this._pathSegLen) {
                this._calculateLength();
            }
            pathSegLen = this._pathSegLen;
            pathTotalLen = this._pathLen;
            displayedLength = percent * pathTotalLen;
            if (!displayedLength) {
                return;
            }
        }
        lo: for (var i = 0; i < len;) {
            var cmd = d[i++];
            var isFirst = i === 1;
            if (isFirst) {
                xi = d[i];
                yi = d[i + 1];
                x0 = xi;
                y0 = yi;
            }
            if (cmd !== PathProxy_CMD.L && pendingPtDist > 0) {
                ctx.lineTo(pendingPtX, pendingPtY);
                pendingPtDist = 0;
            }
            switch (cmd) {
                case PathProxy_CMD.M:
                    x0 = xi = d[i++];
                    y0 = yi = d[i++];
                    ctx.moveTo(xi, yi);
                    break;
                case PathProxy_CMD.L: {
                    x = d[i++];
                    y = d[i++];
                    var dx = mathAbs(x - xi);
                    var dy = mathAbs(y - yi);
                    if (dx > ux || dy > uy) {
                        if (drawPart) {
                            var l = pathSegLen[segCount++];
                            if (accumLength + l > displayedLength) {
                                var t = (displayedLength - accumLength) / l;
                                ctx.lineTo(xi * (1 - t) + x * t, yi * (1 - t) + y * t);
                                break lo;
                            }
                            accumLength += l;
                        }
                        ctx.lineTo(x, y);
                        xi = x;
                        yi = y;
                        pendingPtDist = 0;
                    }
                    else {
                        var d2 = dx * dx + dy * dy;
                        if (d2 > pendingPtDist) {
                            pendingPtX = x;
                            pendingPtY = y;
                            pendingPtDist = d2;
                        }
                    }
                    break;
                }
                case PathProxy_CMD.C: {
                    var x1 = d[i++];
                    var y1 = d[i++];
                    var x2 = d[i++];
                    var y2 = d[i++];
                    var x3 = d[i++];
                    var y3 = d[i++];
                    if (drawPart) {
                        var l = pathSegLen[segCount++];
                        if (accumLength + l > displayedLength) {
                            var t = (displayedLength - accumLength) / l;
                            cubicSubdivide(xi, x1, x2, x3, t, tmpOutX);
                            cubicSubdivide(yi, y1, y2, y3, t, tmpOutY);
                            ctx.bezierCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2], tmpOutX[3], tmpOutY[3]);
                            break lo;
                        }
                        accumLength += l;
                    }
                    ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);
                    xi = x3;
                    yi = y3;
                    break;
                }
                case PathProxy_CMD.Q: {
                    var x1 = d[i++];
                    var y1 = d[i++];
                    var x2 = d[i++];
                    var y2 = d[i++];
                    if (drawPart) {
                        var l = pathSegLen[segCount++];
                        if (accumLength + l > displayedLength) {
                            var t = (displayedLength - accumLength) / l;
                            curve_quadraticSubdivide(xi, x1, x2, t, tmpOutX);
                            curve_quadraticSubdivide(yi, y1, y2, t, tmpOutY);
                            ctx.quadraticCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2]);
                            break lo;
                        }
                        accumLength += l;
                    }
                    ctx.quadraticCurveTo(x1, y1, x2, y2);
                    xi = x2;
                    yi = y2;
                    break;
                }
                case PathProxy_CMD.A:
                    var cx = d[i++];
                    var cy = d[i++];
                    var rx = d[i++];
                    var ry = d[i++];
                    var startAngle = d[i++];
                    var delta = d[i++];
                    var psi = d[i++];
                    var anticlockwise = !d[i++];
                    var r = (rx > ry) ? rx : ry;
                    var isEllipse = mathAbs(rx - ry) > 1e-3;
                    var endAngle = startAngle + delta;
                    var breakBuild = false;
                    if (drawPart) {
                        var l = pathSegLen[segCount++];
                        if (accumLength + l > displayedLength) {
                            endAngle = startAngle + delta * (displayedLength - accumLength) / l;
                            breakBuild = true;
                        }
                        accumLength += l;
                    }
                    if (isEllipse && ctx.ellipse) {
                        ctx.ellipse(cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise);
                    }
                    else {
                        ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);
                    }
                    if (breakBuild) {
                        break lo;
                    }
                    if (isFirst) {
                        x0 = PathProxy_mathCos(startAngle) * rx + cx;
                        y0 = PathProxy_mathSin(startAngle) * ry + cy;
                    }
                    xi = PathProxy_mathCos(endAngle) * rx + cx;
                    yi = PathProxy_mathSin(endAngle) * ry + cy;
                    break;
                case PathProxy_CMD.R:
                    x0 = xi = d[i];
                    y0 = yi = d[i + 1];
                    x = d[i++];
                    y = d[i++];
                    var width = d[i++];
                    var height = d[i++];
                    if (drawPart) {
                        var l = pathSegLen[segCount++];
                        if (accumLength + l > displayedLength) {
                            var d_1 = displayedLength - accumLength;
                            ctx.moveTo(x, y);
                            ctx.lineTo(x + PathProxy_mathMin(d_1, width), y);
                            d_1 -= width;
                            if (d_1 > 0) {
                                ctx.lineTo(x + width, y + PathProxy_mathMin(d_1, height));
                            }
                            d_1 -= height;
                            if (d_1 > 0) {
                                ctx.lineTo(x + PathProxy_mathMax(width - d_1, 0), y + height);
                            }
                            d_1 -= width;
                            if (d_1 > 0) {
                                ctx.lineTo(x, y + PathProxy_mathMax(height - d_1, 0));
                            }
                            break lo;
                        }
                        accumLength += l;
                    }
                    ctx.rect(x, y, width, height);
                    break;
                case PathProxy_CMD.Z:
                    if (drawPart) {
                        var l = pathSegLen[segCount++];
                        if (accumLength + l > displayedLength) {
                            var t = (displayedLength - accumLength) / l;
                            ctx.lineTo(xi * (1 - t) + x0 * t, yi * (1 - t) + y0 * t);
                            break lo;
                        }
                        accumLength += l;
                    }
                    ctx.closePath();
                    xi = x0;
                    yi = y0;
            }
        }
    };
    PathProxy.prototype.clone = function () {
        var newProxy = new PathProxy();
        var data = this.data;
        newProxy.data = data.slice ? data.slice()
            : Array.prototype.slice.call(data);
        newProxy._len = this._len;
        return newProxy;
    };
    PathProxy.CMD = PathProxy_CMD;
    PathProxy.initDefaultProps = (function () {
        var proto = PathProxy.prototype;
        proto._saveData = true;
        proto._ux = 0;
        proto._uy = 0;
        proto._pendingPtDist = 0;
        proto._version = 0;
    })();
    return PathProxy;
}());
/* harmony default export */ var core_PathProxy = (PathProxy_PathProxy);

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/line.js
function containStroke(x0, y0, x1, y1, lineWidth, x, y) {
    if (lineWidth === 0) {
        return false;
    }
    var _l = lineWidth;
    var _a = 0;
    var _b = x0;
    if ((y > y0 + _l && y > y1 + _l)
        || (y < y0 - _l && y < y1 - _l)
        || (x > x0 + _l && x > x1 + _l)
        || (x < x0 - _l && x < x1 - _l)) {
        return false;
    }
    if (x0 !== x1) {
        _a = (y0 - y1) / (x0 - x1);
        _b = (x0 * y1 - x1 * y0) / (x0 - x1);
    }
    else {
        return Math.abs(x - x0) <= _l / 2;
    }
    var tmp = _a * x - y + _b;
    var _s = tmp * tmp / (_a * _a + 1);
    return _s <= _l / 2 * _l / 2;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/cubic.js

function cubic_containStroke(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
    if (lineWidth === 0) {
        return false;
    }
    var _l = lineWidth;
    if ((y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l)
        || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l)
        || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l)
        || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l)) {
        return false;
    }
    var d = cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, null);
    return d <= _l / 2;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/quadratic.js

function quadratic_containStroke(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
    if (lineWidth === 0) {
        return false;
    }
    var _l = lineWidth;
    if ((y > y0 + _l && y > y1 + _l && y > y2 + _l)
        || (y < y0 - _l && y < y1 - _l && y < y2 - _l)
        || (x > x0 + _l && x > x1 + _l && x > x2 + _l)
        || (x < x0 - _l && x < x1 - _l && x < x2 - _l)) {
        return false;
    }
    var d = quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, null);
    return d <= _l / 2;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/util.js
var util_PI2 = Math.PI * 2;
function normalizeRadian(angle) {
    angle %= util_PI2;
    if (angle < 0) {
        angle += util_PI2;
    }
    return angle;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/arc.js

var arc_PI2 = Math.PI * 2;
function arc_containStroke(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
    if (lineWidth === 0) {
        return false;
    }
    var _l = lineWidth;
    x -= cx;
    y -= cy;
    var d = Math.sqrt(x * x + y * y);
    if ((d - _l > r) || (d + _l < r)) {
        return false;
    }
    if (Math.abs(startAngle - endAngle) % arc_PI2 < 1e-4) {
        return true;
    }
    if (anticlockwise) {
        var tmp = startAngle;
        startAngle = normalizeRadian(endAngle);
        endAngle = normalizeRadian(tmp);
    }
    else {
        startAngle = normalizeRadian(startAngle);
        endAngle = normalizeRadian(endAngle);
    }
    if (startAngle > endAngle) {
        endAngle += arc_PI2;
    }
    var angle = Math.atan2(y, x);
    if (angle < 0) {
        angle += arc_PI2;
    }
    return (angle >= startAngle && angle <= endAngle)
        || (angle + arc_PI2 >= startAngle && angle + arc_PI2 <= endAngle);
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/windingLine.js
function windingLine(x0, y0, x1, y1, x, y) {
    if ((y > y0 && y > y1) || (y < y0 && y < y1)) {
        return 0;
    }
    if (y1 === y0) {
        return 0;
    }
    var t = (y - y0) / (y1 - y0);
    var dir = y1 < y0 ? 1 : -1;
    if (t === 1 || t === 0) {
        dir = y1 < y0 ? 0.5 : -0.5;
    }
    var x_ = t * (x1 - x0) + x0;
    return x_ === x ? Infinity : x_ > x ? dir : 0;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/path.js







var path_CMD = core_PathProxy.CMD;
var path_PI2 = Math.PI * 2;
var path_EPSILON = 1e-4;
function isAroundEqual(a, b) {
    return Math.abs(a - b) < path_EPSILON;
}
var path_roots = [-1, -1, -1];
var extrema = [-1, -1];
function swapExtrema() {
    var tmp = extrema[0];
    extrema[0] = extrema[1];
    extrema[1] = tmp;
}
function windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {
    if ((y > y0 && y > y1 && y > y2 && y > y3)
        || (y < y0 && y < y1 && y < y2 && y < y3)) {
        return 0;
    }
    var nRoots = cubicRootAt(y0, y1, y2, y3, y, path_roots);
    if (nRoots === 0) {
        return 0;
    }
    else {
        var w = 0;
        var nExtrema = -1;
        var y0_ = void 0;
        var y1_ = void 0;
        for (var i = 0; i < nRoots; i++) {
            var t = path_roots[i];
            var unit = (t === 0 || t === 1) ? 0.5 : 1;
            var x_ = curve_cubicAt(x0, x1, x2, x3, t);
            if (x_ < x) {
                continue;
            }
            if (nExtrema < 0) {
                nExtrema = curve_cubicExtrema(y0, y1, y2, y3, extrema);
                if (extrema[1] < extrema[0] && nExtrema > 1) {
                    swapExtrema();
                }
                y0_ = curve_cubicAt(y0, y1, y2, y3, extrema[0]);
                if (nExtrema > 1) {
                    y1_ = curve_cubicAt(y0, y1, y2, y3, extrema[1]);
                }
            }
            if (nExtrema === 2) {
                if (t < extrema[0]) {
                    w += y0_ < y0 ? unit : -unit;
                }
                else if (t < extrema[1]) {
                    w += y1_ < y0_ ? unit : -unit;
                }
                else {
                    w += y3 < y1_ ? unit : -unit;
                }
            }
            else {
                if (t < extrema[0]) {
                    w += y0_ < y0 ? unit : -unit;
                }
                else {
                    w += y3 < y0_ ? unit : -unit;
                }
            }
        }
        return w;
    }
}
function windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {
    if ((y > y0 && y > y1 && y > y2)
        || (y < y0 && y < y1 && y < y2)) {
        return 0;
    }
    var nRoots = quadraticRootAt(y0, y1, y2, y, path_roots);
    if (nRoots === 0) {
        return 0;
    }
    else {
        var t = curve_quadraticExtremum(y0, y1, y2);
        if (t >= 0 && t <= 1) {
            var w = 0;
            var y_ = curve_quadraticAt(y0, y1, y2, t);
            for (var i = 0; i < nRoots; i++) {
                var unit = (path_roots[i] === 0 || path_roots[i] === 1) ? 0.5 : 1;
                var x_ = curve_quadraticAt(x0, x1, x2, path_roots[i]);
                if (x_ < x) {
                    continue;
                }
                if (path_roots[i] < t) {
                    w += y_ < y0 ? unit : -unit;
                }
                else {
                    w += y2 < y_ ? unit : -unit;
                }
            }
            return w;
        }
        else {
            var unit = (path_roots[0] === 0 || path_roots[0] === 1) ? 0.5 : 1;
            var x_ = curve_quadraticAt(x0, x1, x2, path_roots[0]);
            if (x_ < x) {
                return 0;
            }
            return y2 < y0 ? unit : -unit;
        }
    }
}
function windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {
    y -= cy;
    if (y > r || y < -r) {
        return 0;
    }
    var tmp = Math.sqrt(r * r - y * y);
    path_roots[0] = -tmp;
    path_roots[1] = tmp;
    var dTheta = Math.abs(startAngle - endAngle);
    if (dTheta < 1e-4) {
        return 0;
    }
    if (dTheta >= path_PI2 - 1e-4) {
        startAngle = 0;
        endAngle = path_PI2;
        var dir = anticlockwise ? 1 : -1;
        if (x >= path_roots[0] + cx && x <= path_roots[1] + cx) {
            return dir;
        }
        else {
            return 0;
        }
    }
    if (startAngle > endAngle) {
        var tmp_1 = startAngle;
        startAngle = endAngle;
        endAngle = tmp_1;
    }
    if (startAngle < 0) {
        startAngle += path_PI2;
        endAngle += path_PI2;
    }
    var w = 0;
    for (var i = 0; i < 2; i++) {
        var x_ = path_roots[i];
        if (x_ + cx > x) {
            var angle = Math.atan2(y, x_);
            var dir = anticlockwise ? 1 : -1;
            if (angle < 0) {
                angle = path_PI2 + angle;
            }
            if ((angle >= startAngle && angle <= endAngle)
                || (angle + path_PI2 >= startAngle && angle + path_PI2 <= endAngle)) {
                if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {
                    dir = -dir;
                }
                w += dir;
            }
        }
    }
    return w;
}
function containPath(path, lineWidth, isStroke, x, y) {
    var data = path.data;
    var len = path.len();
    var w = 0;
    var xi = 0;
    var yi = 0;
    var x0 = 0;
    var y0 = 0;
    var x1;
    var y1;
    for (var i = 0; i < len;) {
        var cmd = data[i++];
        var isFirst = i === 1;
        if (cmd === path_CMD.M && i > 1) {
            if (!isStroke) {
                w += windingLine(xi, yi, x0, y0, x, y);
            }
        }
        if (isFirst) {
            xi = data[i];
            yi = data[i + 1];
            x0 = xi;
            y0 = yi;
        }
        switch (cmd) {
            case path_CMD.M:
                x0 = data[i++];
                y0 = data[i++];
                xi = x0;
                yi = y0;
                break;
            case path_CMD.L:
                if (isStroke) {
                    if (containStroke(xi, yi, data[i], data[i + 1], lineWidth, x, y)) {
                        return true;
                    }
                }
                else {
                    w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0;
                }
                xi = data[i++];
                yi = data[i++];
                break;
            case path_CMD.C:
                if (isStroke) {
                    if (cubic_containStroke(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y)) {
                        return true;
                    }
                }
                else {
                    w += windingCubic(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y) || 0;
                }
                xi = data[i++];
                yi = data[i++];
                break;
            case path_CMD.Q:
                if (isStroke) {
                    if (quadratic_containStroke(xi, yi, data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y)) {
                        return true;
                    }
                }
                else {
                    w += windingQuadratic(xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y) || 0;
                }
                xi = data[i++];
                yi = data[i++];
                break;
            case path_CMD.A:
                var cx = data[i++];
                var cy = data[i++];
                var rx = data[i++];
                var ry = data[i++];
                var theta = data[i++];
                var dTheta = data[i++];
                i += 1;
                var anticlockwise = !!(1 - data[i++]);
                x1 = Math.cos(theta) * rx + cx;
                y1 = Math.sin(theta) * ry + cy;
                if (!isFirst) {
                    w += windingLine(xi, yi, x1, y1, x, y);
                }
                else {
                    x0 = x1;
                    y0 = y1;
                }
                var _x = (x - cx) * ry / rx + cx;
                if (isStroke) {
                    if (arc_containStroke(cx, cy, ry, theta, theta + dTheta, anticlockwise, lineWidth, _x, y)) {
                        return true;
                    }
                }
                else {
                    w += windingArc(cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y);
                }
                xi = Math.cos(theta + dTheta) * rx + cx;
                yi = Math.sin(theta + dTheta) * ry + cy;
                break;
            case path_CMD.R:
                x0 = xi = data[i++];
                y0 = yi = data[i++];
                var width = data[i++];
                var height = data[i++];
                x1 = x0 + width;
                y1 = y0 + height;
                if (isStroke) {
                    if (containStroke(x0, y0, x1, y0, lineWidth, x, y)
                        || containStroke(x1, y0, x1, y1, lineWidth, x, y)
                        || containStroke(x1, y1, x0, y1, lineWidth, x, y)
                        || containStroke(x0, y1, x0, y0, lineWidth, x, y)) {
                        return true;
                    }
                }
                else {
                    w += windingLine(x1, y0, x1, y1, x, y);
                    w += windingLine(x0, y1, x0, y0, x, y);
                }
                break;
            case path_CMD.Z:
                if (isStroke) {
                    if (containStroke(xi, yi, x0, y0, lineWidth, x, y)) {
                        return true;
                    }
                }
                else {
                    w += windingLine(xi, yi, x0, y0, x, y);
                }
                xi = x0;
                yi = y0;
                break;
        }
    }
    if (!isStroke && !isAroundEqual(yi, y0)) {
        w += windingLine(xi, yi, x0, y0, x, y) || 0;
    }
    return w !== 0;
}
function contain(pathProxy, x, y) {
    return containPath(pathProxy, 0, false, x, y);
}
function path_containStroke(pathProxy, lineWidth, x, y) {
    return containPath(pathProxy, lineWidth, true, x, y);
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/Path.js









var DEFAULT_PATH_STYLE = Object(util["defaults"])({
    fill: '#000',
    stroke: null,
    strokePercent: 1,
    fillOpacity: 1,
    strokeOpacity: 1,
    lineDashOffset: 0,
    lineWidth: 1,
    lineCap: 'butt',
    miterLimit: 10,
    strokeNoScale: false,
    strokeFirst: false
}, DEFAULT_COMMON_STYLE);
var DEFAULT_PATH_ANIMATION_PROPS = {
    style: Object(util["defaults"])({
        fill: true,
        stroke: true,
        strokePercent: true,
        fillOpacity: true,
        strokeOpacity: true,
        lineDashOffset: true,
        lineWidth: true,
        miterLimit: true
    }, DEFAULT_COMMON_ANIMATION_PROPS.style)
};
var pathCopyParams = TRANSFORMABLE_PROPS.concat(['invisible',
    'culling', 'z', 'z2', 'zlevel', 'parent'
]);
var Path_Path = (function (_super) {
    tslib_es6_extends(Path, _super);
    function Path(opts) {
        return _super.call(this, opts) || this;
    }
    Path.prototype.update = function () {
        var _this = this;
        _super.prototype.update.call(this);
        var style = this.style;
        if (style.decal) {
            var decalEl = this._decalEl = this._decalEl || new Path();
            if (decalEl.buildPath === Path.prototype.buildPath) {
                decalEl.buildPath = function (ctx) {
                    _this.buildPath(ctx, _this.shape);
                };
            }
            decalEl.silent = true;
            var decalElStyle = decalEl.style;
            for (var key in style) {
                if (decalElStyle[key] !== style[key]) {
                    decalElStyle[key] = style[key];
                }
            }
            decalElStyle.fill = style.fill ? style.decal : null;
            decalElStyle.decal = null;
            decalElStyle.shadowColor = null;
            style.strokeFirst && (decalElStyle.stroke = null);
            for (var i = 0; i < pathCopyParams.length; ++i) {
                decalEl[pathCopyParams[i]] = this[pathCopyParams[i]];
            }
            decalEl.__dirty |= REDRAW_BIT;
        }
        else if (this._decalEl) {
            this._decalEl = null;
        }
    };
    Path.prototype.getDecalElement = function () {
        return this._decalEl;
    };
    Path.prototype._init = function (props) {
        var keysArr = Object(util["keys"])(props);
        this.shape = this.getDefaultShape();
        var defaultStyle = this.getDefaultStyle();
        if (defaultStyle) {
            this.useStyle(defaultStyle);
        }
        for (var i = 0; i < keysArr.length; i++) {
            var key = keysArr[i];
            var value = props[key];
            if (key === 'style') {
                if (!this.style) {
                    this.useStyle(value);
                }
                else {
                    Object(util["extend"])(this.style, value);
                }
            }
            else if (key === 'shape') {
                Object(util["extend"])(this.shape, value);
            }
            else {
                _super.prototype.attrKV.call(this, key, value);
            }
        }
        if (!this.style) {
            this.useStyle({});
        }
    };
    Path.prototype.getDefaultStyle = function () {
        return null;
    };
    Path.prototype.getDefaultShape = function () {
        return {};
    };
    Path.prototype.canBeInsideText = function () {
        return this.hasFill();
    };
    Path.prototype.getInsideTextFill = function () {
        var pathFill = this.style.fill;
        if (pathFill !== 'none') {
            if (Object(util["isString"])(pathFill)) {
                var fillLum = Object(tool_color["lum"])(pathFill, 0);
                if (fillLum > 0.5) {
                    return DARK_LABEL_COLOR;
                }
                else if (fillLum > 0.2) {
                    return LIGHTER_LABEL_COLOR;
                }
                return LIGHT_LABEL_COLOR;
            }
            else if (pathFill) {
                return LIGHT_LABEL_COLOR;
            }
        }
        return DARK_LABEL_COLOR;
    };
    Path.prototype.getInsideTextStroke = function (textFill) {
        var pathFill = this.style.fill;
        if (Object(util["isString"])(pathFill)) {
            var zr = this.__zr;
            var isDarkMode = !!(zr && zr.isDarkMode());
            var isDarkLabel = Object(tool_color["lum"])(textFill, 0) < DARK_MODE_THRESHOLD;
            if (isDarkMode === isDarkLabel) {
                return pathFill;
            }
        }
    };
    Path.prototype.buildPath = function (ctx, shapeCfg, inBatch) { };
    Path.prototype.pathUpdated = function () {
        this.__dirty &= ~SHAPE_CHANGED_BIT;
    };
    Path.prototype.getUpdatedPathProxy = function (inBatch) {
        !this.path && this.createPathProxy();
        this.path.beginPath();
        this.buildPath(this.path, this.shape, inBatch);
        return this.path;
    };
    Path.prototype.createPathProxy = function () {
        this.path = new core_PathProxy(false);
    };
    Path.prototype.hasStroke = function () {
        var style = this.style;
        var stroke = style.stroke;
        return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));
    };
    Path.prototype.hasFill = function () {
        var style = this.style;
        var fill = style.fill;
        return fill != null && fill !== 'none';
    };
    Path.prototype.getBoundingRect = function () {
        var rect = this._rect;
        var style = this.style;
        var needsUpdateRect = !rect;
        if (needsUpdateRect) {
            var firstInvoke = false;
            if (!this.path) {
                firstInvoke = true;
                this.createPathProxy();
            }
            var path = this.path;
            if (firstInvoke || (this.__dirty & SHAPE_CHANGED_BIT)) {
                path.beginPath();
                this.buildPath(path, this.shape, false);
                this.pathUpdated();
            }
            rect = path.getBoundingRect();
        }
        this._rect = rect;
        if (this.hasStroke() && this.path && this.path.len() > 0) {
            var rectStroke = this._rectStroke || (this._rectStroke = rect.clone());
            if (this.__dirty || needsUpdateRect) {
                rectStroke.copy(rect);
                var lineScale = style.strokeNoScale ? this.getLineScale() : 1;
                var w = style.lineWidth;
                if (!this.hasFill()) {
                    var strokeContainThreshold = this.strokeContainThreshold;
                    w = Math.max(w, strokeContainThreshold == null ? 4 : strokeContainThreshold);
                }
                if (lineScale > 1e-10) {
                    rectStroke.width += w / lineScale;
                    rectStroke.height += w / lineScale;
                    rectStroke.x -= w / lineScale / 2;
                    rectStroke.y -= w / lineScale / 2;
                }
            }
            return rectStroke;
        }
        return rect;
    };
    Path.prototype.contain = function (x, y) {
        var localPos = this.transformCoordToLocal(x, y);
        var rect = this.getBoundingRect();
        var style = this.style;
        x = localPos[0];
        y = localPos[1];
        if (rect.contain(x, y)) {
            var pathProxy = this.path;
            if (this.hasStroke()) {
                var lineWidth = style.lineWidth;
                var lineScale = style.strokeNoScale ? this.getLineScale() : 1;
                if (lineScale > 1e-10) {
                    if (!this.hasFill()) {
                        lineWidth = Math.max(lineWidth, this.strokeContainThreshold);
                    }
                    if (path_containStroke(pathProxy, lineWidth / lineScale, x, y)) {
                        return true;
                    }
                }
            }
            if (this.hasFill()) {
                return contain(pathProxy, x, y);
            }
        }
        return false;
    };
    Path.prototype.dirtyShape = function () {
        this.__dirty |= SHAPE_CHANGED_BIT;
        if (this._rect) {
            this._rect = null;
        }
        if (this._decalEl) {
            this._decalEl.dirtyShape();
        }
        this.markRedraw();
    };
    Path.prototype.dirty = function () {
        this.dirtyStyle();
        this.dirtyShape();
    };
    Path.prototype.animateShape = function (loop) {
        return this.animate('shape', loop);
    };
    Path.prototype.updateDuringAnimation = function (targetKey) {
        if (targetKey === 'style') {
            this.dirtyStyle();
        }
        else if (targetKey === 'shape') {
            this.dirtyShape();
        }
        else {
            this.markRedraw();
        }
    };
    Path.prototype.attrKV = function (key, value) {
        if (key === 'shape') {
            this.setShape(value);
        }
        else {
            _super.prototype.attrKV.call(this, key, value);
        }
    };
    Path.prototype.setShape = function (keyOrObj, value) {
        var shape = this.shape;
        if (!shape) {
            shape = this.shape = {};
        }
        if (typeof keyOrObj === 'string') {
            shape[keyOrObj] = value;
        }
        else {
            Object(util["extend"])(shape, keyOrObj);
        }
        this.dirtyShape();
        return this;
    };
    Path.prototype.shapeChanged = function () {
        return !!(this.__dirty & SHAPE_CHANGED_BIT);
    };
    Path.prototype.createStyle = function (obj) {
        return Object(util["createObject"])(DEFAULT_PATH_STYLE, obj);
    };
    Path.prototype._innerSaveToNormal = function (toState) {
        _super.prototype._innerSaveToNormal.call(this, toState);
        var normalState = this._normalState;
        if (toState.shape && !normalState.shape) {
            normalState.shape = Object(util["extend"])({}, this.shape);
        }
    };
    Path.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {
        _super.prototype._applyStateObj.call(this, stateName, state, normalState, keepCurrentStates, transition, animationCfg);
        var needsRestoreToNormal = !(state && keepCurrentStates);
        var targetShape;
        if (state && state.shape) {
            if (transition) {
                if (keepCurrentStates) {
                    targetShape = state.shape;
                }
                else {
                    targetShape = Object(util["extend"])({}, normalState.shape);
                    Object(util["extend"])(targetShape, state.shape);
                }
            }
            else {
                targetShape = Object(util["extend"])({}, keepCurrentStates ? this.shape : normalState.shape);
                Object(util["extend"])(targetShape, state.shape);
            }
        }
        else if (needsRestoreToNormal) {
            targetShape = normalState.shape;
        }
        if (targetShape) {
            if (transition) {
                this.shape = Object(util["extend"])({}, this.shape);
                var targetShapePrimaryProps = {};
                var shapeKeys = Object(util["keys"])(targetShape);
                for (var i = 0; i < shapeKeys.length; i++) {
                    var key = shapeKeys[i];
                    if (typeof targetShape[key] === 'object') {
                        this.shape[key] = targetShape[key];
                    }
                    else {
                        targetShapePrimaryProps[key] = targetShape[key];
                    }
                }
                this._transitionState(stateName, {
                    shape: targetShapePrimaryProps
                }, animationCfg);
            }
            else {
                this.shape = targetShape;
                this.dirtyShape();
            }
        }
    };
    Path.prototype._mergeStates = function (states) {
        var mergedState = _super.prototype._mergeStates.call(this, states);
        var mergedShape;
        for (var i = 0; i < states.length; i++) {
            var state = states[i];
            if (state.shape) {
                mergedShape = mergedShape || {};
                this._mergeStyle(mergedShape, state.shape);
            }
        }
        if (mergedShape) {
            mergedState.shape = mergedShape;
        }
        return mergedState;
    };
    Path.prototype.getAnimationStyleProps = function () {
        return DEFAULT_PATH_ANIMATION_PROPS;
    };
    Path.prototype.isZeroArea = function () {
        return false;
    };
    Path.extend = function (defaultProps) {
        var Sub = (function (_super) {
            tslib_es6_extends(Sub, _super);
            function Sub(opts) {
                var _this = _super.call(this, opts) || this;
                defaultProps.init && defaultProps.init.call(_this, opts);
                return _this;
            }
            Sub.prototype.getDefaultStyle = function () {
                return Object(util["clone"])(defaultProps.style);
            };
            Sub.prototype.getDefaultShape = function () {
                return Object(util["clone"])(defaultProps.shape);
            };
            return Sub;
        }(Path));
        for (var key in defaultProps) {
            if (typeof defaultProps[key] === 'function') {
                Sub.prototype[key] = defaultProps[key];
            }
        }
        return Sub;
    };
    Path.initDefaultProps = (function () {
        var pathProto = Path.prototype;
        pathProto.type = 'path';
        pathProto.strokeContainThreshold = 5;
        pathProto.segmentIgnoreThreshold = 0;
        pathProto.subPixelOptimize = false;
        pathProto.autoBatch = false;
        pathProto.__dirty = REDRAW_BIT | STYLE_CHANGED_BIT | SHAPE_CHANGED_BIT;
    })();
    return Path;
}(graphic_Displayable));
/* harmony default export */ var graphic_Path = (Path_Path);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/TSpan.js






var DEFAULT_TSPAN_STYLE = Object(util["defaults"])({
    strokeFirst: true,
    font: platform["a" /* DEFAULT_FONT */],
    x: 0,
    y: 0,
    textAlign: 'left',
    textBaseline: 'top',
    miterLimit: 2
}, DEFAULT_PATH_STYLE);
var TSpan_TSpan = (function (_super) {
    tslib_es6_extends(TSpan, _super);
    function TSpan() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    TSpan.prototype.hasStroke = function () {
        var style = this.style;
        var stroke = style.stroke;
        return stroke != null && stroke !== 'none' && style.lineWidth > 0;
    };
    TSpan.prototype.hasFill = function () {
        var style = this.style;
        var fill = style.fill;
        return fill != null && fill !== 'none';
    };
    TSpan.prototype.createStyle = function (obj) {
        return Object(util["createObject"])(DEFAULT_TSPAN_STYLE, obj);
    };
    TSpan.prototype.setBoundingRect = function (rect) {
        this._rect = rect;
    };
    TSpan.prototype.getBoundingRect = function () {
        var style = this.style;
        if (!this._rect) {
            var text = style.text;
            text != null ? (text += '') : (text = '');
            var rect = getBoundingRect(text, style.font, style.textAlign, style.textBaseline);
            rect.x += style.x || 0;
            rect.y += style.y || 0;
            if (this.hasStroke()) {
                var w = style.lineWidth;
                rect.x -= w / 2;
                rect.y -= w / 2;
                rect.width += w;
                rect.height += w;
            }
            this._rect = rect;
        }
        return this._rect;
    };
    TSpan.initDefaultProps = (function () {
        var tspanProto = TSpan.prototype;
        tspanProto.dirtyRectTolerance = 10;
    })();
    return TSpan;
}(graphic_Displayable));
TSpan_TSpan.prototype.type = 'tspan';
/* harmony default export */ var graphic_TSpan = (TSpan_TSpan);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/Image.js




var DEFAULT_IMAGE_STYLE = Object(util["defaults"])({
    x: 0,
    y: 0
}, DEFAULT_COMMON_STYLE);
var DEFAULT_IMAGE_ANIMATION_PROPS = {
    style: Object(util["defaults"])({
        x: true,
        y: true,
        width: true,
        height: true,
        sx: true,
        sy: true,
        sWidth: true,
        sHeight: true
    }, DEFAULT_COMMON_ANIMATION_PROPS.style)
};
function isImageLike(source) {
    return !!(source
        && typeof source !== 'string'
        && source.width && source.height);
}
var Image_ZRImage = (function (_super) {
    tslib_es6_extends(ZRImage, _super);
    function ZRImage() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ZRImage.prototype.createStyle = function (obj) {
        return Object(util["createObject"])(DEFAULT_IMAGE_STYLE, obj);
    };
    ZRImage.prototype._getSize = function (dim) {
        var style = this.style;
        var size = style[dim];
        if (size != null) {
            return size;
        }
        var imageSource = isImageLike(style.image)
            ? style.image : this.__image;
        if (!imageSource) {
            return 0;
        }
        var otherDim = dim === 'width' ? 'height' : 'width';
        var otherDimSize = style[otherDim];
        if (otherDimSize == null) {
            return imageSource[dim];
        }
        else {
            return imageSource[dim] / imageSource[otherDim] * otherDimSize;
        }
    };
    ZRImage.prototype.getWidth = function () {
        return this._getSize('width');
    };
    ZRImage.prototype.getHeight = function () {
        return this._getSize('height');
    };
    ZRImage.prototype.getAnimationStyleProps = function () {
        return DEFAULT_IMAGE_ANIMATION_PROPS;
    };
    ZRImage.prototype.getBoundingRect = function () {
        var style = this.style;
        if (!this._rect) {
            this._rect = new core_BoundingRect(style.x || 0, style.y || 0, this.getWidth(), this.getHeight());
        }
        return this._rect;
    };
    return ZRImage;
}(graphic_Displayable));
Image_ZRImage.prototype.type = 'image';
/* harmony default export */ var graphic_Image = (Image_ZRImage);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/roundRect.js
function buildPath(ctx, shape) {
    var x = shape.x;
    var y = shape.y;
    var width = shape.width;
    var height = shape.height;
    var r = shape.r;
    var r1;
    var r2;
    var r3;
    var r4;
    if (width < 0) {
        x = x + width;
        width = -width;
    }
    if (height < 0) {
        y = y + height;
        height = -height;
    }
    if (typeof r === 'number') {
        r1 = r2 = r3 = r4 = r;
    }
    else if (r instanceof Array) {
        if (r.length === 1) {
            r1 = r2 = r3 = r4 = r[0];
        }
        else if (r.length === 2) {
            r1 = r3 = r[0];
            r2 = r4 = r[1];
        }
        else if (r.length === 3) {
            r1 = r[0];
            r2 = r4 = r[1];
            r3 = r[2];
        }
        else {
            r1 = r[0];
            r2 = r[1];
            r3 = r[2];
            r4 = r[3];
        }
    }
    else {
        r1 = r2 = r3 = r4 = 0;
    }
    var total;
    if (r1 + r2 > width) {
        total = r1 + r2;
        r1 *= width / total;
        r2 *= width / total;
    }
    if (r3 + r4 > width) {
        total = r3 + r4;
        r3 *= width / total;
        r4 *= width / total;
    }
    if (r2 + r3 > height) {
        total = r2 + r3;
        r2 *= height / total;
        r3 *= height / total;
    }
    if (r1 + r4 > height) {
        total = r1 + r4;
        r1 *= height / total;
        r4 *= height / total;
    }
    ctx.moveTo(x + r1, y);
    ctx.lineTo(x + width - r2, y);
    r2 !== 0 && ctx.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0);
    ctx.lineTo(x + width, y + height - r3);
    r3 !== 0 && ctx.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2);
    ctx.lineTo(x + r4, y + height);
    r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI);
    ctx.lineTo(x, y + r1);
    r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/subPixelOptimize.js
var subPixelOptimize_round = Math.round;
function subPixelOptimizeLine(outputShape, inputShape, style) {
    if (!inputShape) {
        return;
    }
    var x1 = inputShape.x1;
    var x2 = inputShape.x2;
    var y1 = inputShape.y1;
    var y2 = inputShape.y2;
    outputShape.x1 = x1;
    outputShape.x2 = x2;
    outputShape.y1 = y1;
    outputShape.y2 = y2;
    var lineWidth = style && style.lineWidth;
    if (!lineWidth) {
        return outputShape;
    }
    if (subPixelOptimize_round(x1 * 2) === subPixelOptimize_round(x2 * 2)) {
        outputShape.x1 = outputShape.x2 = subPixelOptimize(x1, lineWidth, true);
    }
    if (subPixelOptimize_round(y1 * 2) === subPixelOptimize_round(y2 * 2)) {
        outputShape.y1 = outputShape.y2 = subPixelOptimize(y1, lineWidth, true);
    }
    return outputShape;
}
function subPixelOptimizeRect(outputShape, inputShape, style) {
    if (!inputShape) {
        return;
    }
    var originX = inputShape.x;
    var originY = inputShape.y;
    var originWidth = inputShape.width;
    var originHeight = inputShape.height;
    outputShape.x = originX;
    outputShape.y = originY;
    outputShape.width = originWidth;
    outputShape.height = originHeight;
    var lineWidth = style && style.lineWidth;
    if (!lineWidth) {
        return outputShape;
    }
    outputShape.x = subPixelOptimize(originX, lineWidth, true);
    outputShape.y = subPixelOptimize(originY, lineWidth, true);
    outputShape.width = Math.max(subPixelOptimize(originX + originWidth, lineWidth, false) - outputShape.x, originWidth === 0 ? 0 : 1);
    outputShape.height = Math.max(subPixelOptimize(originY + originHeight, lineWidth, false) - outputShape.y, originHeight === 0 ? 0 : 1);
    return outputShape;
}
function subPixelOptimize(position, lineWidth, positiveOrNegative) {
    if (!lineWidth) {
        return position;
    }
    var doubledPosition = subPixelOptimize_round(position * 2);
    return (doubledPosition + subPixelOptimize_round(lineWidth)) % 2 === 0
        ? doubledPosition / 2
        : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Rect.js




var RectShape = (function () {
    function RectShape() {
        this.x = 0;
        this.y = 0;
        this.width = 0;
        this.height = 0;
    }
    return RectShape;
}());

var subPixelOptimizeOutputShape = {};
var Rect_Rect = (function (_super) {
    tslib_es6_extends(Rect, _super);
    function Rect(opts) {
        return _super.call(this, opts) || this;
    }
    Rect.prototype.getDefaultShape = function () {
        return new RectShape();
    };
    Rect.prototype.buildPath = function (ctx, shape) {
        var x;
        var y;
        var width;
        var height;
        if (this.subPixelOptimize) {
            var optimizedShape = subPixelOptimizeRect(subPixelOptimizeOutputShape, shape, this.style);
            x = optimizedShape.x;
            y = optimizedShape.y;
            width = optimizedShape.width;
            height = optimizedShape.height;
            optimizedShape.r = shape.r;
            shape = optimizedShape;
        }
        else {
            x = shape.x;
            y = shape.y;
            width = shape.width;
            height = shape.height;
        }
        if (!shape.r) {
            ctx.rect(x, y, width, height);
        }
        else {
            buildPath(ctx, shape);
        }
    };
    Rect.prototype.isZeroArea = function () {
        return !this.shape.width || !this.shape.height;
    };
    return Rect;
}(graphic_Path));
Rect_Rect.prototype.type = 'rect';
/* harmony default export */ var shape_Rect = (Rect_Rect);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/Text.js










var DEFAULT_RICH_TEXT_COLOR = {
    fill: '#000'
};
var DEFAULT_STROKE_LINE_WIDTH = 2;
var DEFAULT_TEXT_ANIMATION_PROPS = {
    style: Object(util["defaults"])({
        fill: true,
        stroke: true,
        fillOpacity: true,
        strokeOpacity: true,
        lineWidth: true,
        fontSize: true,
        lineHeight: true,
        width: true,
        height: true,
        textShadowColor: true,
        textShadowBlur: true,
        textShadowOffsetX: true,
        textShadowOffsetY: true,
        backgroundColor: true,
        padding: true,
        borderColor: true,
        borderWidth: true,
        borderRadius: true
    }, DEFAULT_COMMON_ANIMATION_PROPS.style)
};
var Text_ZRText = (function (_super) {
    tslib_es6_extends(ZRText, _super);
    function ZRText(opts) {
        var _this = _super.call(this) || this;
        _this.type = 'text';
        _this._children = [];
        _this._defaultStyle = DEFAULT_RICH_TEXT_COLOR;
        _this.attr(opts);
        return _this;
    }
    ZRText.prototype.childrenRef = function () {
        return this._children;
    };
    ZRText.prototype.update = function () {
        _super.prototype.update.call(this);
        if (this.styleChanged()) {
            this._updateSubTexts();
        }
        for (var i = 0; i < this._children.length; i++) {
            var child = this._children[i];
            child.zlevel = this.zlevel;
            child.z = this.z;
            child.z2 = this.z2;
            child.culling = this.culling;
            child.cursor = this.cursor;
            child.invisible = this.invisible;
        }
    };
    ZRText.prototype.updateTransform = function () {
        var innerTransformable = this.innerTransformable;
        if (innerTransformable) {
            innerTransformable.updateTransform();
            if (innerTransformable.transform) {
                this.transform = innerTransformable.transform;
            }
        }
        else {
            _super.prototype.updateTransform.call(this);
        }
    };
    ZRText.prototype.getLocalTransform = function (m) {
        var innerTransformable = this.innerTransformable;
        return innerTransformable
            ? innerTransformable.getLocalTransform(m)
            : _super.prototype.getLocalTransform.call(this, m);
    };
    ZRText.prototype.getComputedTransform = function () {
        if (this.__hostTarget) {
            this.__hostTarget.getComputedTransform();
            this.__hostTarget.updateInnerText(true);
        }
        return _super.prototype.getComputedTransform.call(this);
    };
    ZRText.prototype._updateSubTexts = function () {
        this._childCursor = 0;
        normalizeTextStyle(this.style);
        this.style.rich
            ? this._updateRichTexts()
            : this._updatePlainTexts();
        this._children.length = this._childCursor;
        this.styleUpdated();
    };
    ZRText.prototype.addSelfToZr = function (zr) {
        _super.prototype.addSelfToZr.call(this, zr);
        for (var i = 0; i < this._children.length; i++) {
            this._children[i].__zr = zr;
        }
    };
    ZRText.prototype.removeSelfFromZr = function (zr) {
        _super.prototype.removeSelfFromZr.call(this, zr);
        for (var i = 0; i < this._children.length; i++) {
            this._children[i].__zr = null;
        }
    };
    ZRText.prototype.getBoundingRect = function () {
        if (this.styleChanged()) {
            this._updateSubTexts();
        }
        if (!this._rect) {
            var tmpRect = new core_BoundingRect(0, 0, 0, 0);
            var children = this._children;
            var tmpMat = [];
            var rect = null;
            for (var i = 0; i < children.length; i++) {
                var child = children[i];
                var childRect = child.getBoundingRect();
                var transform = child.getLocalTransform(tmpMat);
                if (transform) {
                    tmpRect.copy(childRect);
                    tmpRect.applyTransform(transform);
                    rect = rect || tmpRect.clone();
                    rect.union(tmpRect);
                }
                else {
                    rect = rect || childRect.clone();
                    rect.union(childRect);
                }
            }
            this._rect = rect || tmpRect;
        }
        return this._rect;
    };
    ZRText.prototype.setDefaultTextStyle = function (defaultTextStyle) {
        this._defaultStyle = defaultTextStyle || DEFAULT_RICH_TEXT_COLOR;
    };
    ZRText.prototype.setTextContent = function (textContent) {
        if (false) {}
    };
    ZRText.prototype._mergeStyle = function (targetStyle, sourceStyle) {
        if (!sourceStyle) {
            return targetStyle;
        }
        var sourceRich = sourceStyle.rich;
        var targetRich = targetStyle.rich || (sourceRich && {});
        Object(util["extend"])(targetStyle, sourceStyle);
        if (sourceRich && targetRich) {
            this._mergeRich(targetRich, sourceRich);
            targetStyle.rich = targetRich;
        }
        else if (targetRich) {
            targetStyle.rich = targetRich;
        }
        return targetStyle;
    };
    ZRText.prototype._mergeRich = function (targetRich, sourceRich) {
        var richNames = Object(util["keys"])(sourceRich);
        for (var i = 0; i < richNames.length; i++) {
            var richName = richNames[i];
            targetRich[richName] = targetRich[richName] || {};
            Object(util["extend"])(targetRich[richName], sourceRich[richName]);
        }
    };
    ZRText.prototype.getAnimationStyleProps = function () {
        return DEFAULT_TEXT_ANIMATION_PROPS;
    };
    ZRText.prototype._getOrCreateChild = function (Ctor) {
        var child = this._children[this._childCursor];
        if (!child || !(child instanceof Ctor)) {
            child = new Ctor();
        }
        this._children[this._childCursor++] = child;
        child.__zr = this.__zr;
        child.parent = this;
        return child;
    };
    ZRText.prototype._updatePlainTexts = function () {
        var style = this.style;
        var textFont = style.font || platform["a" /* DEFAULT_FONT */];
        var textPadding = style.padding;
        var text = getStyleText(style);
        var contentBlock = parsePlainText(text, style);
        var needDrawBg = needDrawBackground(style);
        var bgColorDrawn = !!(style.backgroundColor);
        var outerHeight = contentBlock.outerHeight;
        var outerWidth = contentBlock.outerWidth;
        var contentWidth = contentBlock.contentWidth;
        var textLines = contentBlock.lines;
        var lineHeight = contentBlock.lineHeight;
        var defaultStyle = this._defaultStyle;
        this.isTruncated = !!contentBlock.isTruncated;
        var baseX = style.x || 0;
        var baseY = style.y || 0;
        var textAlign = style.align || defaultStyle.align || 'left';
        var verticalAlign = style.verticalAlign || defaultStyle.verticalAlign || 'top';
        var textX = baseX;
        var textY = adjustTextY(baseY, contentBlock.contentHeight, verticalAlign);
        if (needDrawBg || textPadding) {
            var boxX = adjustTextX(baseX, outerWidth, textAlign);
            var boxY = adjustTextY(baseY, outerHeight, verticalAlign);
            needDrawBg && this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);
        }
        textY += lineHeight / 2;
        if (textPadding) {
            textX = getTextXForPadding(baseX, textAlign, textPadding);
            if (verticalAlign === 'top') {
                textY += textPadding[0];
            }
            else if (verticalAlign === 'bottom') {
                textY -= textPadding[2];
            }
        }
        var defaultLineWidth = 0;
        var useDefaultFill = false;
        var textFill = getFill('fill' in style
            ? style.fill
            : (useDefaultFill = true, defaultStyle.fill));
        var textStroke = getStroke('stroke' in style
            ? style.stroke
            : (!bgColorDrawn
                && (!defaultStyle.autoStroke || useDefaultFill))
                ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)
                : null);
        var hasShadow = style.textShadowBlur > 0;
        var fixedBoundingRect = style.width != null
            && (style.overflow === 'truncate' || style.overflow === 'break' || style.overflow === 'breakAll');
        var calculatedLineHeight = contentBlock.calculatedLineHeight;
        for (var i = 0; i < textLines.length; i++) {
            var el = this._getOrCreateChild(graphic_TSpan);
            var subElStyle = el.createStyle();
            el.useStyle(subElStyle);
            subElStyle.text = textLines[i];
            subElStyle.x = textX;
            subElStyle.y = textY;
            if (textAlign) {
                subElStyle.textAlign = textAlign;
            }
            subElStyle.textBaseline = 'middle';
            subElStyle.opacity = style.opacity;
            subElStyle.strokeFirst = true;
            if (hasShadow) {
                subElStyle.shadowBlur = style.textShadowBlur || 0;
                subElStyle.shadowColor = style.textShadowColor || 'transparent';
                subElStyle.shadowOffsetX = style.textShadowOffsetX || 0;
                subElStyle.shadowOffsetY = style.textShadowOffsetY || 0;
            }
            subElStyle.stroke = textStroke;
            subElStyle.fill = textFill;
            if (textStroke) {
                subElStyle.lineWidth = style.lineWidth || defaultLineWidth;
                subElStyle.lineDash = style.lineDash;
                subElStyle.lineDashOffset = style.lineDashOffset || 0;
            }
            subElStyle.font = textFont;
            setSeparateFont(subElStyle, style);
            textY += lineHeight;
            if (fixedBoundingRect) {
                el.setBoundingRect(new core_BoundingRect(adjustTextX(subElStyle.x, contentWidth, subElStyle.textAlign), adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline), contentWidth, calculatedLineHeight));
            }
        }
    };
    ZRText.prototype._updateRichTexts = function () {
        var style = this.style;
        var text = getStyleText(style);
        var contentBlock = parseRichText(text, style);
        var contentWidth = contentBlock.width;
        var outerWidth = contentBlock.outerWidth;
        var outerHeight = contentBlock.outerHeight;
        var textPadding = style.padding;
        var baseX = style.x || 0;
        var baseY = style.y || 0;
        var defaultStyle = this._defaultStyle;
        var textAlign = style.align || defaultStyle.align;
        var verticalAlign = style.verticalAlign || defaultStyle.verticalAlign;
        this.isTruncated = !!contentBlock.isTruncated;
        var boxX = adjustTextX(baseX, outerWidth, textAlign);
        var boxY = adjustTextY(baseY, outerHeight, verticalAlign);
        var xLeft = boxX;
        var lineTop = boxY;
        if (textPadding) {
            xLeft += textPadding[3];
            lineTop += textPadding[0];
        }
        var xRight = xLeft + contentWidth;
        if (needDrawBackground(style)) {
            this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);
        }
        var bgColorDrawn = !!(style.backgroundColor);
        for (var i = 0; i < contentBlock.lines.length; i++) {
            var line = contentBlock.lines[i];
            var tokens = line.tokens;
            var tokenCount = tokens.length;
            var lineHeight = line.lineHeight;
            var remainedWidth = line.width;
            var leftIndex = 0;
            var lineXLeft = xLeft;
            var lineXRight = xRight;
            var rightIndex = tokenCount - 1;
            var token = void 0;
            while (leftIndex < tokenCount
                && (token = tokens[leftIndex], !token.align || token.align === 'left')) {
                this._placeToken(token, style, lineHeight, lineTop, lineXLeft, 'left', bgColorDrawn);
                remainedWidth -= token.width;
                lineXLeft += token.width;
                leftIndex++;
            }
            while (rightIndex >= 0
                && (token = tokens[rightIndex], token.align === 'right')) {
                this._placeToken(token, style, lineHeight, lineTop, lineXRight, 'right', bgColorDrawn);
                remainedWidth -= token.width;
                lineXRight -= token.width;
                rightIndex--;
            }
            lineXLeft += (contentWidth - (lineXLeft - xLeft) - (xRight - lineXRight) - remainedWidth) / 2;
            while (leftIndex <= rightIndex) {
                token = tokens[leftIndex];
                this._placeToken(token, style, lineHeight, lineTop, lineXLeft + token.width / 2, 'center', bgColorDrawn);
                lineXLeft += token.width;
                leftIndex++;
            }
            lineTop += lineHeight;
        }
    };
    ZRText.prototype._placeToken = function (token, style, lineHeight, lineTop, x, textAlign, parentBgColorDrawn) {
        var tokenStyle = style.rich[token.styleName] || {};
        tokenStyle.text = token.text;
        var verticalAlign = token.verticalAlign;
        var y = lineTop + lineHeight / 2;
        if (verticalAlign === 'top') {
            y = lineTop + token.height / 2;
        }
        else if (verticalAlign === 'bottom') {
            y = lineTop + lineHeight - token.height / 2;
        }
        var needDrawBg = !token.isLineHolder && needDrawBackground(tokenStyle);
        needDrawBg && this._renderBackground(tokenStyle, style, textAlign === 'right'
            ? x - token.width
            : textAlign === 'center'
                ? x - token.width / 2
                : x, y - token.height / 2, token.width, token.height);
        var bgColorDrawn = !!tokenStyle.backgroundColor;
        var textPadding = token.textPadding;
        if (textPadding) {
            x = getTextXForPadding(x, textAlign, textPadding);
            y -= token.height / 2 - textPadding[0] - token.innerHeight / 2;
        }
        var el = this._getOrCreateChild(graphic_TSpan);
        var subElStyle = el.createStyle();
        el.useStyle(subElStyle);
        var defaultStyle = this._defaultStyle;
        var useDefaultFill = false;
        var defaultLineWidth = 0;
        var textFill = getFill('fill' in tokenStyle ? tokenStyle.fill
            : 'fill' in style ? style.fill
                : (useDefaultFill = true, defaultStyle.fill));
        var textStroke = getStroke('stroke' in tokenStyle ? tokenStyle.stroke
            : 'stroke' in style ? style.stroke
                : (!bgColorDrawn
                    && !parentBgColorDrawn
                    && (!defaultStyle.autoStroke || useDefaultFill)) ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)
                    : null);
        var hasShadow = tokenStyle.textShadowBlur > 0
            || style.textShadowBlur > 0;
        subElStyle.text = token.text;
        subElStyle.x = x;
        subElStyle.y = y;
        if (hasShadow) {
            subElStyle.shadowBlur = tokenStyle.textShadowBlur || style.textShadowBlur || 0;
            subElStyle.shadowColor = tokenStyle.textShadowColor || style.textShadowColor || 'transparent';
            subElStyle.shadowOffsetX = tokenStyle.textShadowOffsetX || style.textShadowOffsetX || 0;
            subElStyle.shadowOffsetY = tokenStyle.textShadowOffsetY || style.textShadowOffsetY || 0;
        }
        subElStyle.textAlign = textAlign;
        subElStyle.textBaseline = 'middle';
        subElStyle.font = token.font || platform["a" /* DEFAULT_FONT */];
        subElStyle.opacity = Object(util["retrieve3"])(tokenStyle.opacity, style.opacity, 1);
        setSeparateFont(subElStyle, tokenStyle);
        if (textStroke) {
            subElStyle.lineWidth = Object(util["retrieve3"])(tokenStyle.lineWidth, style.lineWidth, defaultLineWidth);
            subElStyle.lineDash = Object(util["retrieve2"])(tokenStyle.lineDash, style.lineDash);
            subElStyle.lineDashOffset = style.lineDashOffset || 0;
            subElStyle.stroke = textStroke;
        }
        if (textFill) {
            subElStyle.fill = textFill;
        }
        var textWidth = token.contentWidth;
        var textHeight = token.contentHeight;
        el.setBoundingRect(new core_BoundingRect(adjustTextX(subElStyle.x, textWidth, subElStyle.textAlign), adjustTextY(subElStyle.y, textHeight, subElStyle.textBaseline), textWidth, textHeight));
    };
    ZRText.prototype._renderBackground = function (style, topStyle, x, y, width, height) {
        var textBackgroundColor = style.backgroundColor;
        var textBorderWidth = style.borderWidth;
        var textBorderColor = style.borderColor;
        var isImageBg = textBackgroundColor && textBackgroundColor.image;
        var isPlainOrGradientBg = textBackgroundColor && !isImageBg;
        var textBorderRadius = style.borderRadius;
        var self = this;
        var rectEl;
        var imgEl;
        if (isPlainOrGradientBg || style.lineHeight || (textBorderWidth && textBorderColor)) {
            rectEl = this._getOrCreateChild(shape_Rect);
            rectEl.useStyle(rectEl.createStyle());
            rectEl.style.fill = null;
            var rectShape = rectEl.shape;
            rectShape.x = x;
            rectShape.y = y;
            rectShape.width = width;
            rectShape.height = height;
            rectShape.r = textBorderRadius;
            rectEl.dirtyShape();
        }
        if (isPlainOrGradientBg) {
            var rectStyle = rectEl.style;
            rectStyle.fill = textBackgroundColor || null;
            rectStyle.fillOpacity = Object(util["retrieve2"])(style.fillOpacity, 1);
        }
        else if (isImageBg) {
            imgEl = this._getOrCreateChild(graphic_Image);
            imgEl.onload = function () {
                self.dirtyStyle();
            };
            var imgStyle = imgEl.style;
            imgStyle.image = textBackgroundColor.image;
            imgStyle.x = x;
            imgStyle.y = y;
            imgStyle.width = width;
            imgStyle.height = height;
        }
        if (textBorderWidth && textBorderColor) {
            var rectStyle = rectEl.style;
            rectStyle.lineWidth = textBorderWidth;
            rectStyle.stroke = textBorderColor;
            rectStyle.strokeOpacity = Object(util["retrieve2"])(style.strokeOpacity, 1);
            rectStyle.lineDash = style.borderDash;
            rectStyle.lineDashOffset = style.borderDashOffset || 0;
            rectEl.strokeContainThreshold = 0;
            if (rectEl.hasFill() && rectEl.hasStroke()) {
                rectStyle.strokeFirst = true;
                rectStyle.lineWidth *= 2;
            }
        }
        var commonStyle = (rectEl || imgEl).style;
        commonStyle.shadowBlur = style.shadowBlur || 0;
        commonStyle.shadowColor = style.shadowColor || 'transparent';
        commonStyle.shadowOffsetX = style.shadowOffsetX || 0;
        commonStyle.shadowOffsetY = style.shadowOffsetY || 0;
        commonStyle.opacity = Object(util["retrieve3"])(style.opacity, topStyle.opacity, 1);
    };
    ZRText.makeFont = function (style) {
        var font = '';
        if (hasSeparateFont(style)) {
            font = [
                style.fontStyle,
                style.fontWeight,
                parseFontSize(style.fontSize),
                style.fontFamily || 'sans-serif'
            ].join(' ');
        }
        return font && Object(util["trim"])(font) || style.textFont || style.font;
    };
    return ZRText;
}(graphic_Displayable));
var VALID_TEXT_ALIGN = { left: true, right: 1, center: 1 };
var VALID_TEXT_VERTICAL_ALIGN = { top: 1, bottom: 1, middle: 1 };
var FONT_PARTS = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily'];
function parseFontSize(fontSize) {
    if (typeof fontSize === 'string'
        && (fontSize.indexOf('px') !== -1
            || fontSize.indexOf('rem') !== -1
            || fontSize.indexOf('em') !== -1)) {
        return fontSize;
    }
    else if (!isNaN(+fontSize)) {
        return fontSize + 'px';
    }
    else {
        return platform["c" /* DEFAULT_FONT_SIZE */] + 'px';
    }
}
function setSeparateFont(targetStyle, sourceStyle) {
    for (var i = 0; i < FONT_PARTS.length; i++) {
        var fontProp = FONT_PARTS[i];
        var val = sourceStyle[fontProp];
        if (val != null) {
            targetStyle[fontProp] = val;
        }
    }
}
function hasSeparateFont(style) {
    return style.fontSize != null || style.fontFamily || style.fontWeight;
}
function normalizeTextStyle(style) {
    normalizeStyle(style);
    Object(util["each"])(style.rich, normalizeStyle);
    return style;
}
function normalizeStyle(style) {
    if (style) {
        style.font = Text_ZRText.makeFont(style);
        var textAlign = style.align;
        textAlign === 'middle' && (textAlign = 'center');
        style.align = (textAlign == null || VALID_TEXT_ALIGN[textAlign]) ? textAlign : 'left';
        var verticalAlign = style.verticalAlign;
        verticalAlign === 'center' && (verticalAlign = 'middle');
        style.verticalAlign = (verticalAlign == null || VALID_TEXT_VERTICAL_ALIGN[verticalAlign]) ? verticalAlign : 'top';
        var textPadding = style.padding;
        if (textPadding) {
            style.padding = Object(util["normalizeCssArray"])(style.padding);
        }
    }
}
function getStroke(stroke, lineWidth) {
    return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none')
        ? null
        : (stroke.image || stroke.colorStops)
            ? '#000'
            : stroke;
}
function getFill(fill) {
    return (fill == null || fill === 'none')
        ? null
        : (fill.image || fill.colorStops)
            ? '#000'
            : fill;
}
function getTextXForPadding(x, textAlign, textPadding) {
    return textAlign === 'right'
        ? (x - textPadding[1])
        : textAlign === 'center'
            ? (x + textPadding[3] / 2 - textPadding[1] / 2)
            : (x + textPadding[3]);
}
function getStyleText(style) {
    var text = style.text;
    text != null && (text += '');
    return text;
}
function needDrawBackground(style) {
    return !!(style.backgroundColor
        || style.lineHeight
        || (style.borderWidth && style.borderColor));
}
/* harmony default export */ var Text = (Text_ZRText);

// CONCATENATED MODULE: ./node_modules/echarts/lib/util/innerStore.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var getECData = makeInner();
var setCommonECData = function (seriesIndex, dataType, dataIdx, el) {
  if (el) {
    var ecData = getECData(el);
    // Add data index and series index for indexing the data by element
    // Useful in tooltip
    ecData.dataIndex = dataIdx;
    ecData.dataType = dataType;
    ecData.seriesIndex = seriesIndex;
    ecData.ssrType = 'chart';
    // TODO: not store dataIndex on children.
    if (el.type === 'group') {
      el.traverse(function (child) {
        var childECData = getECData(child);
        childECData.seriesIndex = seriesIndex;
        childECData.dataIndex = dataIdx;
        childECData.dataType = dataType;
        childECData.ssrType = 'chart';
      });
    }
  }
};
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/states.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






// Reserve 0 as default.
var _highlightNextDigit = 1;
var _highlightKeyMap = {};
var getSavedStates = makeInner();
var getComponentStates = makeInner();
var HOVER_STATE_NORMAL = 0;
var HOVER_STATE_BLUR = 1;
var HOVER_STATE_EMPHASIS = 2;
var SPECIAL_STATES = ['emphasis', 'blur', 'select'];
var DISPLAY_STATES = ['normal', 'emphasis', 'blur', 'select'];
var Z2_EMPHASIS_LIFT = 10;
var Z2_SELECT_LIFT = 9;
var HIGHLIGHT_ACTION_TYPE = 'highlight';
var DOWNPLAY_ACTION_TYPE = 'downplay';
var SELECT_ACTION_TYPE = 'select';
var UNSELECT_ACTION_TYPE = 'unselect';
var TOGGLE_SELECT_ACTION_TYPE = 'toggleSelect';
function hasFillOrStroke(fillOrStroke) {
  return fillOrStroke != null && fillOrStroke !== 'none';
}
function doChangeHoverState(el, stateName, hoverStateEnum) {
  if (el.onHoverStateChange && (el.hoverState || 0) !== hoverStateEnum) {
    el.onHoverStateChange(stateName);
  }
  el.hoverState = hoverStateEnum;
}
function singleEnterEmphasis(el) {
  // Only mark the flag.
  // States will be applied in the echarts.ts in next frame.
  doChangeHoverState(el, 'emphasis', HOVER_STATE_EMPHASIS);
}
function singleLeaveEmphasis(el) {
  // Only mark the flag.
  // States will be applied in the echarts.ts in next frame.
  if (el.hoverState === HOVER_STATE_EMPHASIS) {
    doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);
  }
}
function singleEnterBlur(el) {
  doChangeHoverState(el, 'blur', HOVER_STATE_BLUR);
}
function singleLeaveBlur(el) {
  if (el.hoverState === HOVER_STATE_BLUR) {
    doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);
  }
}
function singleEnterSelect(el) {
  el.selected = true;
}
function singleLeaveSelect(el) {
  el.selected = false;
}
function updateElementState(el, updater, commonParam) {
  updater(el, commonParam);
}
function traverseUpdateState(el, updater, commonParam) {
  updateElementState(el, updater, commonParam);
  el.isGroup && el.traverse(function (child) {
    updateElementState(child, updater, commonParam);
  });
}
function setStatesFlag(el, stateName) {
  switch (stateName) {
    case 'emphasis':
      el.hoverState = HOVER_STATE_EMPHASIS;
      break;
    case 'normal':
      el.hoverState = HOVER_STATE_NORMAL;
      break;
    case 'blur':
      el.hoverState = HOVER_STATE_BLUR;
      break;
    case 'select':
      el.selected = true;
  }
}
/**
 * If we reuse elements when rerender.
 * DON'T forget to clearStates before we update the style and shape.
 * Or we may update on the wrong state instead of normal state.
 */
function states_clearStates(el) {
  if (el.isGroup) {
    el.traverse(function (child) {
      child.clearStates();
    });
  } else {
    el.clearStates();
  }
}
function getFromStateStyle(el, props, toStateName, defaultValue) {
  var style = el.style;
  var fromState = {};
  for (var i = 0; i < props.length; i++) {
    var propName = props[i];
    var val = style[propName];
    fromState[propName] = val == null ? defaultValue && defaultValue[propName] : val;
  }
  for (var i = 0; i < el.animators.length; i++) {
    var animator = el.animators[i];
    if (animator.__fromStateTransition
    // Don't consider the animation to emphasis state.
    && animator.__fromStateTransition.indexOf(toStateName) < 0 && animator.targetName === 'style') {
      animator.saveTo(fromState, props);
    }
  }
  return fromState;
}
function createEmphasisDefaultState(el, stateName, targetStates, state) {
  var hasSelect = targetStates && Object(util["indexOf"])(targetStates, 'select') >= 0;
  var cloned = false;
  if (el instanceof graphic_Path) {
    var store = getSavedStates(el);
    var fromFill = hasSelect ? store.selectFill || store.normalFill : store.normalFill;
    var fromStroke = hasSelect ? store.selectStroke || store.normalStroke : store.normalStroke;
    if (hasFillOrStroke(fromFill) || hasFillOrStroke(fromStroke)) {
      state = state || {};
      var emphasisStyle = state.style || {};
      // inherit case
      if (emphasisStyle.fill === 'inherit') {
        cloned = true;
        state = Object(util["extend"])({}, state);
        emphasisStyle = Object(util["extend"])({}, emphasisStyle);
        emphasisStyle.fill = fromFill;
      }
      // Apply default color lift
      else if (!hasFillOrStroke(emphasisStyle.fill) && hasFillOrStroke(fromFill)) {
        cloned = true;
        // Not modify the original value.
        state = Object(util["extend"])({}, state);
        emphasisStyle = Object(util["extend"])({}, emphasisStyle);
        // Already being applied 'emphasis'. DON'T lift color multiple times.
        emphasisStyle.fill = Object(tool_color["liftColor"])(fromFill);
      }
      // Not highlight stroke if fill has been highlighted.
      else if (!hasFillOrStroke(emphasisStyle.stroke) && hasFillOrStroke(fromStroke)) {
        if (!cloned) {
          state = Object(util["extend"])({}, state);
          emphasisStyle = Object(util["extend"])({}, emphasisStyle);
        }
        emphasisStyle.stroke = Object(tool_color["liftColor"])(fromStroke);
      }
      state.style = emphasisStyle;
    }
  }
  if (state) {
    // TODO Share with textContent?
    if (state.z2 == null) {
      if (!cloned) {
        state = Object(util["extend"])({}, state);
      }
      var z2EmphasisLift = el.z2EmphasisLift;
      state.z2 = el.z2 + (z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT);
    }
  }
  return state;
}
function createSelectDefaultState(el, stateName, state) {
  // const hasSelect = indexOf(el.currentStates, stateName) >= 0;
  if (state) {
    // TODO Share with textContent?
    if (state.z2 == null) {
      state = Object(util["extend"])({}, state);
      var z2SelectLift = el.z2SelectLift;
      state.z2 = el.z2 + (z2SelectLift != null ? z2SelectLift : Z2_SELECT_LIFT);
    }
  }
  return state;
}
function createBlurDefaultState(el, stateName, state) {
  var hasBlur = Object(util["indexOf"])(el.currentStates, stateName) >= 0;
  var currentOpacity = el.style.opacity;
  var fromState = !hasBlur ? getFromStateStyle(el, ['opacity'], stateName, {
    opacity: 1
  }) : null;
  state = state || {};
  var blurStyle = state.style || {};
  if (blurStyle.opacity == null) {
    // clone state
    state = Object(util["extend"])({}, state);
    blurStyle = Object(util["extend"])({
      // Already being applied 'emphasis'. DON'T mul opacity multiple times.
      opacity: hasBlur ? currentOpacity : fromState.opacity * 0.1
    }, blurStyle);
    state.style = blurStyle;
  }
  return state;
}
function elementStateProxy(stateName, targetStates) {
  var state = this.states[stateName];
  if (this.style) {
    if (stateName === 'emphasis') {
      return createEmphasisDefaultState(this, stateName, targetStates, state);
    } else if (stateName === 'blur') {
      return createBlurDefaultState(this, stateName, state);
    } else if (stateName === 'select') {
      return createSelectDefaultState(this, stateName, state);
    }
  }
  return state;
}
/**
 * Set hover style (namely "emphasis style") of element.
 * @param el Should not be `zrender/graphic/Group`.
 * @param focus 'self' | 'selfInSeries' | 'series'
 */
function setDefaultStateProxy(el) {
  el.stateProxy = elementStateProxy;
  var textContent = el.getTextContent();
  var textGuide = el.getTextGuideLine();
  if (textContent) {
    textContent.stateProxy = elementStateProxy;
  }
  if (textGuide) {
    textGuide.stateProxy = elementStateProxy;
  }
}
function enterEmphasisWhenMouseOver(el, e) {
  !shouldSilent(el, e)
  // "emphasis" event highlight has higher priority than mouse highlight.
  && !el.__highByOuter && traverseUpdateState(el, singleEnterEmphasis);
}
function leaveEmphasisWhenMouseOut(el, e) {
  !shouldSilent(el, e)
  // "emphasis" event highlight has higher priority than mouse highlight.
  && !el.__highByOuter && traverseUpdateState(el, singleLeaveEmphasis);
}
function enterEmphasis(el, highlightDigit) {
  el.__highByOuter |= 1 << (highlightDigit || 0);
  traverseUpdateState(el, singleEnterEmphasis);
}
function leaveEmphasis(el, highlightDigit) {
  !(el.__highByOuter &= ~(1 << (highlightDigit || 0))) && traverseUpdateState(el, singleLeaveEmphasis);
}
function enterBlur(el) {
  traverseUpdateState(el, singleEnterBlur);
}
function leaveBlur(el) {
  traverseUpdateState(el, singleLeaveBlur);
}
function enterSelect(el) {
  traverseUpdateState(el, singleEnterSelect);
}
function leaveSelect(el) {
  traverseUpdateState(el, singleLeaveSelect);
}
function shouldSilent(el, e) {
  return el.__highDownSilentOnTouch && e.zrByTouch;
}
function allLeaveBlur(api) {
  var model = api.getModel();
  var leaveBlurredSeries = [];
  var allComponentViews = [];
  model.eachComponent(function (componentType, componentModel) {
    var componentStates = getComponentStates(componentModel);
    var isSeries = componentType === 'series';
    var view = isSeries ? api.getViewOfSeriesModel(componentModel) : api.getViewOfComponentModel(componentModel);
    !isSeries && allComponentViews.push(view);
    if (componentStates.isBlured) {
      // Leave blur anyway
      view.group.traverse(function (child) {
        singleLeaveBlur(child);
      });
      isSeries && leaveBlurredSeries.push(componentModel);
    }
    componentStates.isBlured = false;
  });
  Object(util["each"])(allComponentViews, function (view) {
    if (view && view.toggleBlurSeries) {
      view.toggleBlurSeries(leaveBlurredSeries, false, model);
    }
  });
}
function blurSeries(targetSeriesIndex, focus, blurScope, api) {
  var ecModel = api.getModel();
  blurScope = blurScope || 'coordinateSystem';
  function leaveBlurOfIndices(data, dataIndices) {
    for (var i = 0; i < dataIndices.length; i++) {
      var itemEl = data.getItemGraphicEl(dataIndices[i]);
      itemEl && leaveBlur(itemEl);
    }
  }
  if (targetSeriesIndex == null) {
    return;
  }
  if (!focus || focus === 'none') {
    return;
  }
  var targetSeriesModel = ecModel.getSeriesByIndex(targetSeriesIndex);
  var targetCoordSys = targetSeriesModel.coordinateSystem;
  if (targetCoordSys && targetCoordSys.master) {
    targetCoordSys = targetCoordSys.master;
  }
  var blurredSeries = [];
  ecModel.eachSeries(function (seriesModel) {
    var sameSeries = targetSeriesModel === seriesModel;
    var coordSys = seriesModel.coordinateSystem;
    if (coordSys && coordSys.master) {
      coordSys = coordSys.master;
    }
    var sameCoordSys = coordSys && targetCoordSys ? coordSys === targetCoordSys : sameSeries; // If there is no coordinate system. use sameSeries instead.
    if (!(
    // Not blur other series if blurScope series
    blurScope === 'series' && !sameSeries
    // Not blur other coordinate system if blurScope is coordinateSystem
    || blurScope === 'coordinateSystem' && !sameCoordSys
    // Not blur self series if focus is series.
    || focus === 'series' && sameSeries
    // TODO blurScope: coordinate system
    )) {
      var view = api.getViewOfSeriesModel(seriesModel);
      view.group.traverse(function (child) {
        // For the elements that have been triggered by other components,
        // and are still required to be highlighted,
        // because the current is directly forced to blur the element,
        // it will cause the focus self to be unable to highlight, so skip the blur of this element.
        if (child.__highByOuter && sameSeries && focus === 'self') {
          return;
        }
        singleEnterBlur(child);
      });
      if (Object(util["isArrayLike"])(focus)) {
        leaveBlurOfIndices(seriesModel.getData(), focus);
      } else if (Object(util["isObject"])(focus)) {
        var dataTypes = Object(util["keys"])(focus);
        for (var d = 0; d < dataTypes.length; d++) {
          leaveBlurOfIndices(seriesModel.getData(dataTypes[d]), focus[dataTypes[d]]);
        }
      }
      blurredSeries.push(seriesModel);
      getComponentStates(seriesModel).isBlured = true;
    }
  });
  ecModel.eachComponent(function (componentType, componentModel) {
    if (componentType === 'series') {
      return;
    }
    var view = api.getViewOfComponentModel(componentModel);
    if (view && view.toggleBlurSeries) {
      view.toggleBlurSeries(blurredSeries, true, ecModel);
    }
  });
}
function blurComponent(componentMainType, componentIndex, api) {
  if (componentMainType == null || componentIndex == null) {
    return;
  }
  var componentModel = api.getModel().getComponent(componentMainType, componentIndex);
  if (!componentModel) {
    return;
  }
  getComponentStates(componentModel).isBlured = true;
  var view = api.getViewOfComponentModel(componentModel);
  if (!view || !view.focusBlurEnabled) {
    return;
  }
  view.group.traverse(function (child) {
    singleEnterBlur(child);
  });
}
function blurSeriesFromHighlightPayload(seriesModel, payload, api) {
  var seriesIndex = seriesModel.seriesIndex;
  var data = seriesModel.getData(payload.dataType);
  if (!data) {
    if (false) {}
    return;
  }
  var dataIndex = queryDataIndex(data, payload);
  // Pick the first one if there is multiple/none exists.
  dataIndex = (Object(util["isArray"])(dataIndex) ? dataIndex[0] : dataIndex) || 0;
  var el = data.getItemGraphicEl(dataIndex);
  if (!el) {
    var count = data.count();
    var current = 0;
    // If data on dataIndex is NaN.
    while (!el && current < count) {
      el = data.getItemGraphicEl(current++);
    }
  }
  if (el) {
    var ecData = getECData(el);
    blurSeries(seriesIndex, ecData.focus, ecData.blurScope, api);
  } else {
    // If there is no element put on the data. Try getting it from raw option
    // TODO Should put it on seriesModel?
    var focus_1 = seriesModel.get(['emphasis', 'focus']);
    var blurScope = seriesModel.get(['emphasis', 'blurScope']);
    if (focus_1 != null) {
      blurSeries(seriesIndex, focus_1, blurScope, api);
    }
  }
}
function findComponentHighDownDispatchers(componentMainType, componentIndex, name, api) {
  var ret = {
    focusSelf: false,
    dispatchers: null
  };
  if (componentMainType == null || componentMainType === 'series' || componentIndex == null || name == null) {
    return ret;
  }
  var componentModel = api.getModel().getComponent(componentMainType, componentIndex);
  if (!componentModel) {
    return ret;
  }
  var view = api.getViewOfComponentModel(componentModel);
  if (!view || !view.findHighDownDispatchers) {
    return ret;
  }
  var dispatchers = view.findHighDownDispatchers(name);
  // At presnet, the component (like Geo) only blur inside itself.
  // So we do not use `blurScope` in component.
  var focusSelf;
  for (var i = 0; i < dispatchers.length; i++) {
    if (false) {}
    if (getECData(dispatchers[i]).focus === 'self') {
      focusSelf = true;
      break;
    }
  }
  return {
    focusSelf: focusSelf,
    dispatchers: dispatchers
  };
}
function handleGlobalMouseOverForHighDown(dispatcher, e, api) {
  if (false) {}
  var ecData = getECData(dispatcher);
  var _a = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api),
    dispatchers = _a.dispatchers,
    focusSelf = _a.focusSelf;
  // If `findHighDownDispatchers` is supported on the component,
  // highlight/downplay elements with the same name.
  if (dispatchers) {
    if (focusSelf) {
      blurComponent(ecData.componentMainType, ecData.componentIndex, api);
    }
    Object(util["each"])(dispatchers, function (dispatcher) {
      return enterEmphasisWhenMouseOver(dispatcher, e);
    });
  } else {
    // Try blur all in the related series. Then emphasis the hoverred.
    // TODO. progressive mode.
    blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api);
    if (ecData.focus === 'self') {
      blurComponent(ecData.componentMainType, ecData.componentIndex, api);
    }
    // Other than series, component that not support `findHighDownDispatcher` will
    // also use it. But in this case, highlight/downplay are only supported in
    // mouse hover but not in dispatchAction.
    enterEmphasisWhenMouseOver(dispatcher, e);
  }
}
function handleGlobalMouseOutForHighDown(dispatcher, e, api) {
  if (false) {}
  allLeaveBlur(api);
  var ecData = getECData(dispatcher);
  var dispatchers = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api).dispatchers;
  if (dispatchers) {
    Object(util["each"])(dispatchers, function (dispatcher) {
      return leaveEmphasisWhenMouseOut(dispatcher, e);
    });
  } else {
    leaveEmphasisWhenMouseOut(dispatcher, e);
  }
}
function toggleSelectionFromPayload(seriesModel, payload, api) {
  if (!isSelectChangePayload(payload)) {
    return;
  }
  var dataType = payload.dataType;
  var data = seriesModel.getData(dataType);
  var dataIndex = queryDataIndex(data, payload);
  if (!Object(util["isArray"])(dataIndex)) {
    dataIndex = [dataIndex];
  }
  seriesModel[payload.type === TOGGLE_SELECT_ACTION_TYPE ? 'toggleSelect' : payload.type === SELECT_ACTION_TYPE ? 'select' : 'unselect'](dataIndex, dataType);
}
function updateSeriesElementSelection(seriesModel) {
  var allData = seriesModel.getAllData();
  Object(util["each"])(allData, function (_a) {
    var data = _a.data,
      type = _a.type;
    data.eachItemGraphicEl(function (el, idx) {
      seriesModel.isSelected(idx, type) ? enterSelect(el) : leaveSelect(el);
    });
  });
}
function getAllSelectedIndices(ecModel) {
  var ret = [];
  ecModel.eachSeries(function (seriesModel) {
    var allData = seriesModel.getAllData();
    Object(util["each"])(allData, function (_a) {
      var data = _a.data,
        type = _a.type;
      var dataIndices = seriesModel.getSelectedDataIndices();
      if (dataIndices.length > 0) {
        var item = {
          dataIndex: dataIndices,
          seriesIndex: seriesModel.seriesIndex
        };
        if (type != null) {
          item.dataType = type;
        }
        ret.push(item);
      }
    });
  });
  return ret;
}
/**
 * Enable the function that mouseover will trigger the emphasis state.
 *
 * NOTE:
 * This function should be used on the element with dataIndex, seriesIndex.
 *
 */
function enableHoverEmphasis(el, focus, blurScope) {
  setAsHighDownDispatcher(el, true);
  traverseUpdateState(el, setDefaultStateProxy);
  enableHoverFocus(el, focus, blurScope);
}
function disableHoverEmphasis(el) {
  setAsHighDownDispatcher(el, false);
}
function toggleHoverEmphasis(el, focus, blurScope, isDisabled) {
  isDisabled ? disableHoverEmphasis(el) : enableHoverEmphasis(el, focus, blurScope);
}
function enableHoverFocus(el, focus, blurScope) {
  var ecData = getECData(el);
  if (focus != null) {
    // TODO dataIndex may be set after this function. This check is not useful.
    // if (ecData.dataIndex == null) {
    //     if (__DEV__) {
    //         console.warn('focus can only been set on element with dataIndex');
    //     }
    // }
    // else {
    ecData.focus = focus;
    ecData.blurScope = blurScope;
    // }
  } else if (ecData.focus) {
    ecData.focus = null;
  }
}
var OTHER_STATES = ['emphasis', 'blur', 'select'];
var defaultStyleGetterMap = {
  itemStyle: 'getItemStyle',
  lineStyle: 'getLineStyle',
  areaStyle: 'getAreaStyle'
};
/**
 * Set emphasis/blur/selected states of element.
 */
function setStatesStylesFromModel(el, itemModel, styleType,
// default itemStyle
getter) {
  styleType = styleType || 'itemStyle';
  for (var i = 0; i < OTHER_STATES.length; i++) {
    var stateName = OTHER_STATES[i];
    var model = itemModel.getModel([stateName, styleType]);
    var state = el.ensureState(stateName);
    // Let it throw error if getterType is not found.
    state.style = getter ? getter(model) : model[defaultStyleGetterMap[styleType]]();
  }
}
/**
 *
 * Set element as highlight / downplay dispatcher.
 * It will be checked when element received mouseover event or from highlight action.
 * It's in change of all highlight/downplay behavior of it's children.
 *
 * @param el
 * @param el.highDownSilentOnTouch
 *        In touch device, mouseover event will be trigger on touchstart event
 *        (see module:zrender/dom/HandlerProxy). By this mechanism, we can
 *        conveniently use hoverStyle when tap on touch screen without additional
 *        code for compatibility.
 *        But if the chart/component has select feature, which usually also use
 *        hoverStyle, there might be conflict between 'select-highlight' and
 *        'hover-highlight' especially when roam is enabled (see geo for example).
 *        In this case, `highDownSilentOnTouch` should be used to disable
 *        hover-highlight on touch device.
 * @param asDispatcher If `false`, do not set as "highDownDispatcher".
 */
function setAsHighDownDispatcher(el, asDispatcher) {
  var disable = asDispatcher === false;
  var extendedEl = el;
  // Make `highDownSilentOnTouch` and `onStateChange` only work after
  // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.
  if (el.highDownSilentOnTouch) {
    extendedEl.__highDownSilentOnTouch = el.highDownSilentOnTouch;
  }
  // Simple optimize, since this method might be
  // called for each elements of a group in some cases.
  if (!disable || extendedEl.__highDownDispatcher) {
    // Emphasis, normal can be triggered manually by API or other components like hover link.
    // el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent);
    // Also keep previous record.
    extendedEl.__highByOuter = extendedEl.__highByOuter || 0;
    extendedEl.__highDownDispatcher = !disable;
  }
}
function isHighDownDispatcher(el) {
  return !!(el && el.__highDownDispatcher);
}
/**
 * Enable component highlight/downplay features:
 * + hover link (within the same name)
 * + focus blur in component
 */
function enableComponentHighDownFeatures(el, componentModel, componentHighDownName) {
  var ecData = getECData(el);
  ecData.componentMainType = componentModel.mainType;
  ecData.componentIndex = componentModel.componentIndex;
  ecData.componentHighDownName = componentHighDownName;
}
/**
 * Support highlight/downplay record on each elements.
 * For the case: hover highlight/downplay (legend, visualMap, ...) and
 * user triggered highlight/downplay should not conflict.
 * Only all of the highlightDigit cleared, return to normal.
 * @param {string} highlightKey
 * @return {number} highlightDigit
 */
function getHighlightDigit(highlightKey) {
  var highlightDigit = _highlightKeyMap[highlightKey];
  if (highlightDigit == null && _highlightNextDigit <= 32) {
    highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++;
  }
  return highlightDigit;
}
function isSelectChangePayload(payload) {
  var payloadType = payload.type;
  return payloadType === SELECT_ACTION_TYPE || payloadType === UNSELECT_ACTION_TYPE || payloadType === TOGGLE_SELECT_ACTION_TYPE;
}
function isHighDownPayload(payload) {
  var payloadType = payload.type;
  return payloadType === HIGHLIGHT_ACTION_TYPE || payloadType === DOWNPLAY_ACTION_TYPE;
}
function savePathStates(el) {
  var store = getSavedStates(el);
  store.normalFill = el.style.fill;
  store.normalStroke = el.style.stroke;
  var selectState = el.states.select || {};
  store.selectFill = selectState.style && selectState.style.fill || null;
  store.selectStroke = selectState.style && selectState.style.stroke || null;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/basicTransition.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// Stored properties for further transition.
var transitionStore = makeInner();
/**
 * Return null if animation is disabled.
 */
function getAnimationConfig(animationType, animatableModel, dataIndex,
// Extra opts can override the option in animatable model.
extraOpts,
// TODO It's only for pictorial bar now.
extraDelayParams) {
  var animationPayload;
  // Check if there is global animation configuration from dataZoom/resize can override the config in option.
  // If animation is enabled. Will use this animation config in payload.
  // If animation is disabled. Just ignore it.
  if (animatableModel && animatableModel.ecModel) {
    var updatePayload = animatableModel.ecModel.getUpdatePayload();
    animationPayload = updatePayload && updatePayload.animation;
  }
  var animationEnabled = animatableModel && animatableModel.isAnimationEnabled();
  var isUpdate = animationType === 'update';
  if (animationEnabled) {
    var duration = void 0;
    var easing = void 0;
    var delay = void 0;
    if (extraOpts) {
      duration = Object(util["retrieve2"])(extraOpts.duration, 200);
      easing = Object(util["retrieve2"])(extraOpts.easing, 'cubicOut');
      delay = 0;
    } else {
      duration = animatableModel.getShallow(isUpdate ? 'animationDurationUpdate' : 'animationDuration');
      easing = animatableModel.getShallow(isUpdate ? 'animationEasingUpdate' : 'animationEasing');
      delay = animatableModel.getShallow(isUpdate ? 'animationDelayUpdate' : 'animationDelay');
    }
    // animation from payload has highest priority.
    if (animationPayload) {
      animationPayload.duration != null && (duration = animationPayload.duration);
      animationPayload.easing != null && (easing = animationPayload.easing);
      animationPayload.delay != null && (delay = animationPayload.delay);
    }
    if (Object(util["isFunction"])(delay)) {
      delay = delay(dataIndex, extraDelayParams);
    }
    if (Object(util["isFunction"])(duration)) {
      duration = duration(dataIndex);
    }
    var config = {
      duration: duration || 0,
      delay: delay,
      easing: easing
    };
    return config;
  } else {
    return null;
  }
}
function animateOrSetProps(animationType, el, props, animatableModel, dataIndex, cb, during) {
  var isFrom = false;
  var removeOpt;
  if (Object(util["isFunction"])(dataIndex)) {
    during = cb;
    cb = dataIndex;
    dataIndex = null;
  } else if (Object(util["isObject"])(dataIndex)) {
    cb = dataIndex.cb;
    during = dataIndex.during;
    isFrom = dataIndex.isFrom;
    removeOpt = dataIndex.removeOpt;
    dataIndex = dataIndex.dataIndex;
  }
  var isRemove = animationType === 'leave';
  if (!isRemove) {
    // Must stop the remove animation.
    el.stopAnimation('leave');
  }
  var animationConfig = getAnimationConfig(animationType, animatableModel, dataIndex, isRemove ? removeOpt || {} : null, animatableModel && animatableModel.getAnimationDelayParams ? animatableModel.getAnimationDelayParams(el, dataIndex) : null);
  if (animationConfig && animationConfig.duration > 0) {
    var duration = animationConfig.duration;
    var animationDelay = animationConfig.delay;
    var animationEasing = animationConfig.easing;
    var animateConfig = {
      duration: duration,
      delay: animationDelay || 0,
      easing: animationEasing,
      done: cb,
      force: !!cb || !!during,
      // Set to final state in update/init animation.
      // So the post processing based on the path shape can be done correctly.
      setToFinal: !isRemove,
      scope: animationType,
      during: during
    };
    isFrom ? el.animateFrom(props, animateConfig) : el.animateTo(props, animateConfig);
  } else {
    el.stopAnimation();
    // If `isFrom`, the props is the "from" props.
    !isFrom && el.attr(props);
    // Call during at least once.
    during && during(1);
    cb && cb();
  }
}
/**
 * Update graphic element properties with or without animation according to the
 * configuration in series.
 *
 * Caution: this method will stop previous animation.
 * So do not use this method to one element twice before
 * animation starts, unless you know what you are doing.
 * @example
 *     graphic.updateProps(el, {
 *         position: [100, 100]
 *     }, seriesModel, dataIndex, function () { console.log('Animation done!'); });
 *     // Or
 *     graphic.updateProps(el, {
 *         position: [100, 100]
 *     }, seriesModel, function () { console.log('Animation done!'); });
 */
function updateProps(el, props,
// TODO: TYPE AnimatableModel
animatableModel, dataIndex, cb, during) {
  animateOrSetProps('update', el, props, animatableModel, dataIndex, cb, during);
}

/**
 * Init graphic element properties with or without animation according to the
 * configuration in series.
 *
 * Caution: this method will stop previous animation.
 * So do not use this method to one element twice before
 * animation starts, unless you know what you are doing.
 */
function initProps(el, props, animatableModel, dataIndex, cb, during) {
  animateOrSetProps('enter', el, props, animatableModel, dataIndex, cb, during);
}
/**
 * If element is removed.
 * It can determine if element is having remove animation.
 */
function isElementRemoved(el) {
  if (!el.__zr) {
    return true;
  }
  for (var i = 0; i < el.animators.length; i++) {
    var animator = el.animators[i];
    if (animator.scope === 'leave') {
      return true;
    }
  }
  return false;
}
/**
 * Remove graphic element
 */
function removeElement(el, props, animatableModel, dataIndex, cb, during) {
  // Don't do remove animation twice.
  if (isElementRemoved(el)) {
    return;
  }
  animateOrSetProps('leave', el, props, animatableModel, dataIndex, cb, during);
}
function fadeOutDisplayable(el, animatableModel, dataIndex, done) {
  el.removeTextContent();
  el.removeTextGuideLine();
  removeElement(el, {
    style: {
      opacity: 0
    }
  }, animatableModel, dataIndex, done);
}
function removeElementWithFadeOut(el, animatableModel, dataIndex) {
  function doRemove() {
    el.parent && el.parent.remove(el);
  }
  // Hide label and labelLine first
  // TODO Also use fade out animation?
  if (!el.isGroup) {
    fadeOutDisplayable(el, animatableModel, dataIndex, doRemove);
  } else {
    el.traverse(function (disp) {
      if (!disp.isGroup) {
        // Can invoke doRemove multiple times.
        fadeOutDisplayable(disp, animatableModel, dataIndex, doRemove);
      }
    });
  }
}
/**
 * Save old style for style transition in universalTransition module.
 * It's used when element will be reused in each render.
 * For chart like map, heatmap, which will always create new element.
 * We don't need to save this because universalTransition can get old style from the old element
 */
function saveOldStyle(el) {
  transitionStore(el).oldStyle = el.style;
}
function getOldStyle(el) {
  return transitionStore(el).oldStyle;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/label/labelStyle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var EMPTY_OBJ = {};
function setLabelText(label, labelTexts) {
  for (var i = 0; i < SPECIAL_STATES.length; i++) {
    var stateName = SPECIAL_STATES[i];
    var text = labelTexts[stateName];
    var state = label.ensureState(stateName);
    state.style = state.style || {};
    state.style.text = text;
  }
  var oldStates = label.currentStates.slice();
  label.clearStates(true);
  label.setStyle({
    text: labelTexts.normal
  });
  label.useStates(oldStates, true);
}
function getLabelText(opt, stateModels, interpolatedValue) {
  var labelFetcher = opt.labelFetcher;
  var labelDataIndex = opt.labelDataIndex;
  var labelDimIndex = opt.labelDimIndex;
  var normalModel = stateModels.normal;
  var baseText;
  if (labelFetcher) {
    baseText = labelFetcher.getFormattedLabel(labelDataIndex, 'normal', null, labelDimIndex, normalModel && normalModel.get('formatter'), interpolatedValue != null ? {
      interpolatedValue: interpolatedValue
    } : null);
  }
  if (baseText == null) {
    baseText = Object(util["isFunction"])(opt.defaultText) ? opt.defaultText(labelDataIndex, opt, interpolatedValue) : opt.defaultText;
  }
  var statesText = {
    normal: baseText
  };
  for (var i = 0; i < SPECIAL_STATES.length; i++) {
    var stateName = SPECIAL_STATES[i];
    var stateModel = stateModels[stateName];
    statesText[stateName] = Object(util["retrieve2"])(labelFetcher ? labelFetcher.getFormattedLabel(labelDataIndex, stateName, null, labelDimIndex, stateModel && stateModel.get('formatter')) : null, baseText);
  }
  return statesText;
}
function setLabelStyle(targetEl, labelStatesModels, opt, stateSpecified
// TODO specified position?
) {
  opt = opt || EMPTY_OBJ;
  var isSetOnText = targetEl instanceof Text;
  var needsCreateText = false;
  for (var i = 0; i < DISPLAY_STATES.length; i++) {
    var stateModel = labelStatesModels[DISPLAY_STATES[i]];
    if (stateModel && stateModel.getShallow('show')) {
      needsCreateText = true;
      break;
    }
  }
  var textContent = isSetOnText ? targetEl : targetEl.getTextContent();
  if (needsCreateText) {
    if (!isSetOnText) {
      // Reuse the previous
      if (!textContent) {
        textContent = new Text();
        targetEl.setTextContent(textContent);
      }
      // Use same state proxy
      if (targetEl.stateProxy) {
        textContent.stateProxy = targetEl.stateProxy;
      }
    }
    var labelStatesTexts = getLabelText(opt, labelStatesModels);
    var normalModel = labelStatesModels.normal;
    var showNormal = !!normalModel.getShallow('show');
    var normalStyle = createTextStyle(normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText);
    normalStyle.text = labelStatesTexts.normal;
    if (!isSetOnText) {
      // Always create new
      targetEl.setTextConfig(createTextConfig(normalModel, opt, false));
    }
    for (var i = 0; i < SPECIAL_STATES.length; i++) {
      var stateName = SPECIAL_STATES[i];
      var stateModel = labelStatesModels[stateName];
      if (stateModel) {
        var stateObj = textContent.ensureState(stateName);
        var stateShow = !!Object(util["retrieve2"])(stateModel.getShallow('show'), showNormal);
        if (stateShow !== showNormal) {
          stateObj.ignore = !stateShow;
        }
        stateObj.style = createTextStyle(stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText);
        stateObj.style.text = labelStatesTexts[stateName];
        if (!isSetOnText) {
          var targetElEmphasisState = targetEl.ensureState(stateName);
          targetElEmphasisState.textConfig = createTextConfig(stateModel, opt, true);
        }
      }
    }
    // PENDING: if there is many requirements that emphasis position
    // need to be different from normal position, we might consider
    // auto silent is those cases.
    textContent.silent = !!normalModel.getShallow('silent');
    // Keep x and y
    if (textContent.style.x != null) {
      normalStyle.x = textContent.style.x;
    }
    if (textContent.style.y != null) {
      normalStyle.y = textContent.style.y;
    }
    textContent.ignore = !showNormal;
    // Always create new style.
    textContent.useStyle(normalStyle);
    textContent.dirty();
    if (opt.enableTextSetter) {
      labelInner(textContent).setLabelText = function (interpolatedValue) {
        var labelStatesTexts = getLabelText(opt, labelStatesModels, interpolatedValue);
        setLabelText(textContent, labelStatesTexts);
      };
    }
  } else if (textContent) {
    // Not display rich text.
    textContent.ignore = true;
  }
  targetEl.dirty();
}

function getLabelStatesModels(itemModel, labelName) {
  labelName = labelName || 'label';
  var statesModels = {
    normal: itemModel.getModel(labelName)
  };
  for (var i = 0; i < SPECIAL_STATES.length; i++) {
    var stateName = SPECIAL_STATES[i];
    statesModels[stateName] = itemModel.getModel([stateName, labelName]);
  }
  return statesModels;
}
/**
 * Set basic textStyle properties.
 */
function createTextStyle(textStyleModel, specifiedTextStyle,
// Fixed style in the code. Can't be set by model.
opt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender.
) {
  var textStyle = {};
  setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);
  specifiedTextStyle && Object(util["extend"])(textStyle, specifiedTextStyle);
  // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);
  return textStyle;
}
function createTextConfig(textStyleModel, opt, isNotNormal) {
  opt = opt || {};
  var textConfig = {};
  var labelPosition;
  var labelRotate = textStyleModel.getShallow('rotate');
  var labelDistance = Object(util["retrieve2"])(textStyleModel.getShallow('distance'), isNotNormal ? null : 5);
  var labelOffset = textStyleModel.getShallow('offset');
  labelPosition = textStyleModel.getShallow('position') || (isNotNormal ? null : 'inside');
  // 'outside' is not a valid zr textPostion value, but used
  // in bar series, and magric type should be considered.
  labelPosition === 'outside' && (labelPosition = opt.defaultOutsidePosition || 'top');
  if (labelPosition != null) {
    textConfig.position = labelPosition;
  }
  if (labelOffset != null) {
    textConfig.offset = labelOffset;
  }
  if (labelRotate != null) {
    labelRotate *= Math.PI / 180;
    textConfig.rotation = labelRotate;
  }
  if (labelDistance != null) {
    textConfig.distance = labelDistance;
  }
  // fill and auto is determined by the color of path fill if it's not specified by developers.
  textConfig.outsideFill = textStyleModel.get('color') === 'inherit' ? opt.inheritColor || null : 'auto';
  return textConfig;
}
/**
 * The uniform entry of set text style, that is, retrieve style definitions
 * from `model` and set to `textStyle` object.
 *
 * Never in merge mode, but in overwrite mode, that is, all of the text style
 * properties will be set. (Consider the states of normal and emphasis and
 * default value can be adopted, merge would make the logic too complicated
 * to manage.)
 */
function setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached) {
  // Consider there will be abnormal when merge hover style to normal style if given default value.
  opt = opt || EMPTY_OBJ;
  var ecModel = textStyleModel.ecModel;
  var globalTextStyle = ecModel && ecModel.option.textStyle;
  // Consider case:
  // {
  //     data: [{
  //         value: 12,
  //         label: {
  //             rich: {
  //                 // no 'a' here but using parent 'a'.
  //             }
  //         }
  //     }],
  //     rich: {
  //         a: { ... }
  //     }
  // }
  var richItemNames = getRichItemNames(textStyleModel);
  var richResult;
  if (richItemNames) {
    richResult = {};
    for (var name_1 in richItemNames) {
      if (richItemNames.hasOwnProperty(name_1)) {
        // Cascade is supported in rich.
        var richTextStyle = textStyleModel.getModel(['rich', name_1]);
        // In rich, never `disableBox`.
        // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,
        // the default color `'blue'` will not be adopted if no color declared in `rich`.
        // That might confuses users. So probably we should put `textStyleModel` as the
        // root ancestor of the `richTextStyle`. But that would be a break change.
        setTokenTextStyle(richResult[name_1] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true);
      }
    }
  }
  if (richResult) {
    textStyle.rich = richResult;
  }
  var overflow = textStyleModel.get('overflow');
  if (overflow) {
    textStyle.overflow = overflow;
  }
  var margin = textStyleModel.get('minMargin');
  if (margin != null) {
    textStyle.margin = margin;
  }
  setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false);
}
// Consider case:
// {
//     data: [{
//         value: 12,
//         label: {
//             rich: {
//                 // no 'a' here but using parent 'a'.
//             }
//         }
//     }],
//     rich: {
//         a: { ... }
//     }
// }
// TODO TextStyleModel
function getRichItemNames(textStyleModel) {
  // Use object to remove duplicated names.
  var richItemNameMap;
  while (textStyleModel && textStyleModel !== textStyleModel.ecModel) {
    var rich = (textStyleModel.option || EMPTY_OBJ).rich;
    if (rich) {
      richItemNameMap = richItemNameMap || {};
      var richKeys = Object(util["keys"])(rich);
      for (var i = 0; i < richKeys.length; i++) {
        var richKey = richKeys[i];
        richItemNameMap[richKey] = 1;
      }
    }
    textStyleModel = textStyleModel.parentModel;
  }
  return richItemNameMap;
}
var TEXT_PROPS_WITH_GLOBAL = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'];
var TEXT_PROPS_SELF = ['align', 'lineHeight', 'width', 'height', 'tag', 'verticalAlign', 'ellipsis'];
var TEXT_PROPS_BOX = ['padding', 'borderWidth', 'borderRadius', 'borderDashOffset', 'backgroundColor', 'borderColor', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'];
function setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, isBlock, inRich) {
  // In merge mode, default value should not be given.
  globalTextStyle = !isNotNormal && globalTextStyle || EMPTY_OBJ;
  var inheritColor = opt && opt.inheritColor;
  var fillColor = textStyleModel.getShallow('color');
  var strokeColor = textStyleModel.getShallow('textBorderColor');
  var opacity = Object(util["retrieve2"])(textStyleModel.getShallow('opacity'), globalTextStyle.opacity);
  if (fillColor === 'inherit' || fillColor === 'auto') {
    if (false) {}
    if (inheritColor) {
      fillColor = inheritColor;
    } else {
      fillColor = null;
    }
  }
  if (strokeColor === 'inherit' || strokeColor === 'auto') {
    if (false) {}
    if (inheritColor) {
      strokeColor = inheritColor;
    } else {
      strokeColor = null;
    }
  }
  if (!isAttached) {
    // Only use default global textStyle.color if text is individual.
    // Otherwise it will use the strategy of attached text color because text may be on a path.
    fillColor = fillColor || globalTextStyle.color;
    strokeColor = strokeColor || globalTextStyle.textBorderColor;
  }
  if (fillColor != null) {
    textStyle.fill = fillColor;
  }
  if (strokeColor != null) {
    textStyle.stroke = strokeColor;
  }
  var textBorderWidth = Object(util["retrieve2"])(textStyleModel.getShallow('textBorderWidth'), globalTextStyle.textBorderWidth);
  if (textBorderWidth != null) {
    textStyle.lineWidth = textBorderWidth;
  }
  var textBorderType = Object(util["retrieve2"])(textStyleModel.getShallow('textBorderType'), globalTextStyle.textBorderType);
  if (textBorderType != null) {
    textStyle.lineDash = textBorderType;
  }
  var textBorderDashOffset = Object(util["retrieve2"])(textStyleModel.getShallow('textBorderDashOffset'), globalTextStyle.textBorderDashOffset);
  if (textBorderDashOffset != null) {
    textStyle.lineDashOffset = textBorderDashOffset;
  }
  if (!isNotNormal && opacity == null && !inRich) {
    opacity = opt && opt.defaultOpacity;
  }
  if (opacity != null) {
    textStyle.opacity = opacity;
  }
  // TODO
  if (!isNotNormal && !isAttached) {
    // Set default finally.
    if (textStyle.fill == null && opt.inheritColor) {
      textStyle.fill = opt.inheritColor;
    }
  }
  // Do not use `getFont` here, because merge should be supported, where
  // part of these properties may be changed in emphasis style, and the
  // others should remain their original value got from normal style.
  for (var i = 0; i < TEXT_PROPS_WITH_GLOBAL.length; i++) {
    var key = TEXT_PROPS_WITH_GLOBAL[i];
    var val = Object(util["retrieve2"])(textStyleModel.getShallow(key), globalTextStyle[key]);
    if (val != null) {
      textStyle[key] = val;
    }
  }
  for (var i = 0; i < TEXT_PROPS_SELF.length; i++) {
    var key = TEXT_PROPS_SELF[i];
    var val = textStyleModel.getShallow(key);
    if (val != null) {
      textStyle[key] = val;
    }
  }
  if (textStyle.verticalAlign == null) {
    var baseline = textStyleModel.getShallow('baseline');
    if (baseline != null) {
      textStyle.verticalAlign = baseline;
    }
  }
  if (!isBlock || !opt.disableBox) {
    for (var i = 0; i < TEXT_PROPS_BOX.length; i++) {
      var key = TEXT_PROPS_BOX[i];
      var val = textStyleModel.getShallow(key);
      if (val != null) {
        textStyle[key] = val;
      }
    }
    var borderType = textStyleModel.getShallow('borderType');
    if (borderType != null) {
      textStyle.borderDash = borderType;
    }
    if ((textStyle.backgroundColor === 'auto' || textStyle.backgroundColor === 'inherit') && inheritColor) {
      if (false) {}
      textStyle.backgroundColor = inheritColor;
    }
    if ((textStyle.borderColor === 'auto' || textStyle.borderColor === 'inherit') && inheritColor) {
      if (false) {}
      textStyle.borderColor = inheritColor;
    }
  }
}
function getFont(opt, ecModel) {
  var gTextStyleModel = ecModel && ecModel.getModel('textStyle');
  return Object(util["trim"])([
  // FIXME in node-canvas fontWeight is before fontStyle
  opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '', opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '', (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px', opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'].join(' '));
}
var labelInner = makeInner();
function setLabelValueAnimation(label, labelStatesModels, value, getDefaultText) {
  if (!label) {
    return;
  }
  var obj = labelInner(label);
  obj.prevValue = obj.value;
  obj.value = value;
  var normalLabelModel = labelStatesModels.normal;
  obj.valueAnimation = normalLabelModel.get('valueAnimation');
  if (obj.valueAnimation) {
    obj.precision = normalLabelModel.get('precision');
    obj.defaultInterpolatedText = getDefaultText;
    obj.statesModels = labelStatesModels;
  }
}
function animateLabelValue(textEl, dataIndex, data, animatableModel, labelFetcher) {
  var labelInnerStore = labelInner(textEl);
  if (!labelInnerStore.valueAnimation || labelInnerStore.prevValue === labelInnerStore.value) {
    // Value not changed, no new label animation
    return;
  }
  var defaultInterpolatedText = labelInnerStore.defaultInterpolatedText;
  // Consider the case that being animating, do not use the `obj.value`,
  // Otherwise it will jump to the `obj.value` when this new animation started.
  var currValue = Object(util["retrieve2"])(labelInnerStore.interpolatedValue, labelInnerStore.prevValue);
  var targetValue = labelInnerStore.value;
  function during(percent) {
    var interpolated = interpolateRawValues(data, labelInnerStore.precision, currValue, targetValue, percent);
    labelInnerStore.interpolatedValue = percent === 1 ? null : interpolated;
    var labelText = getLabelText({
      labelDataIndex: dataIndex,
      labelFetcher: labelFetcher,
      defaultText: defaultInterpolatedText ? defaultInterpolatedText(interpolated) : interpolated + ''
    }, labelInnerStore.statesModels, interpolated);
    setLabelText(textEl, labelText);
  }
  textEl.percent = 0;
  (labelInnerStore.prevValue == null ? initProps : updateProps)(textEl, {
    // percent is used to prevent animation from being aborted #15916
    percent: 1
  }, animatableModel, dataIndex, null, during);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/mixin/textStyle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var PATH_COLOR = ['textStyle', 'color'];
var textStyleParams = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'padding', 'lineHeight', 'rich', 'width', 'height', 'overflow'];
// TODO Performance improvement?
var tmpText = new Text();
var textStyle_TextStyleMixin = /** @class */function () {
  function TextStyleMixin() {}
  /**
   * Get color property or get color from option.textStyle.color
   */
  // TODO Callback
  TextStyleMixin.prototype.getTextColor = function (isEmphasis) {
    var ecModel = this.ecModel;
    return this.getShallow('color') || (!isEmphasis && ecModel ? ecModel.get(PATH_COLOR) : null);
  };
  /**
   * Create font string from fontStyle, fontWeight, fontSize, fontFamily
   * @return {string}
   */
  TextStyleMixin.prototype.getFont = function () {
    return getFont({
      fontStyle: this.getShallow('fontStyle'),
      fontWeight: this.getShallow('fontWeight'),
      fontSize: this.getShallow('fontSize'),
      fontFamily: this.getShallow('fontFamily')
    }, this.ecModel);
  };
  TextStyleMixin.prototype.getTextRect = function (text) {
    var style = {
      text: text,
      verticalAlign: this.getShallow('verticalAlign') || this.getShallow('baseline')
    };
    for (var i = 0; i < textStyleParams.length; i++) {
      style[textStyleParams[i]] = this.getShallow(textStyleParams[i]);
    }
    tmpText.useStyle(style);
    tmpText.update();
    return tmpText.getBoundingRect();
  };
  return TextStyleMixin;
}();
;
/* harmony default export */ var mixin_textStyle = (textStyle_TextStyleMixin);
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/mixin/lineStyle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var LINE_STYLE_KEY_MAP = [['lineWidth', 'width'], ['stroke', 'color'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'type'], ['lineDashOffset', 'dashOffset'], ['lineCap', 'cap'], ['lineJoin', 'join'], ['miterLimit']
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
];
var getLineStyle = makeStyleMapper(LINE_STYLE_KEY_MAP);
var LineStyleMixin = /** @class */function () {
  function LineStyleMixin() {}
  LineStyleMixin.prototype.getLineStyle = function (excludes) {
    return getLineStyle(this, excludes);
  };
  return LineStyleMixin;
}();
;

// CONCATENATED MODULE: ./node_modules/echarts/lib/model/mixin/itemStyle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var ITEM_STYLE_KEY_MAP = [['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'borderType'], ['lineDashOffset', 'borderDashOffset'], ['lineCap', 'borderCap'], ['lineJoin', 'borderJoin'], ['miterLimit', 'borderMiterLimit']
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
];
var getItemStyle = makeStyleMapper(ITEM_STYLE_KEY_MAP);
var ItemStyleMixin = /** @class */function () {
  function ItemStyleMixin() {}
  ItemStyleMixin.prototype.getItemStyle = function (excludes, includes) {
    return getItemStyle(this, excludes, includes);
  };
  return ItemStyleMixin;
}();

// CONCATENATED MODULE: ./node_modules/echarts/lib/model/Model.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var Model_Model = /** @class */function () {
  function Model(option, parentModel, ecModel) {
    this.parentModel = parentModel;
    this.ecModel = ecModel;
    this.option = option;
    // Simple optimization
    // if (this.init) {
    //     if (arguments.length <= 4) {
    //         this.init(option, parentModel, ecModel, extraOpt);
    //     }
    //     else {
    //         this.init.apply(this, arguments);
    //     }
    // }
  }
  Model.prototype.init = function (option, parentModel, ecModel) {
    var rest = [];
    for (var _i = 3; _i < arguments.length; _i++) {
      rest[_i - 3] = arguments[_i];
    }
  };
  /**
   * Merge the input option to me.
   */
  Model.prototype.mergeOption = function (option, ecModel) {
    Object(util["merge"])(this.option, option, true);
  };
  // `path` can be 'a.b.c', so the return value type have to be `ModelOption`
  // TODO: TYPE strict key check?
  // get(path: string | string[], ignoreParent?: boolean): ModelOption;
  Model.prototype.get = function (path, ignoreParent) {
    if (path == null) {
      return this.option;
    }
    return this._doGet(this.parsePath(path), !ignoreParent && this.parentModel);
  };
  Model.prototype.getShallow = function (key, ignoreParent) {
    var option = this.option;
    var val = option == null ? option : option[key];
    if (val == null && !ignoreParent) {
      var parentModel = this.parentModel;
      if (parentModel) {
        // FIXME:TS do not know how to make it works
        val = parentModel.getShallow(key);
      }
    }
    return val;
  };
  // `path` can be 'a.b.c', so the return value type have to be `Model<ModelOption>`
  // getModel(path: string | string[], parentModel?: Model): Model;
  // TODO 'a.b.c' is deprecated
  Model.prototype.getModel = function (path, parentModel) {
    var hasPath = path != null;
    var pathFinal = hasPath ? this.parsePath(path) : null;
    var obj = hasPath ? this._doGet(pathFinal) : this.option;
    parentModel = parentModel || this.parentModel && this.parentModel.getModel(this.resolveParentPath(pathFinal));
    return new Model(obj, parentModel, this.ecModel);
  };
  /**
   * If model has option
   */
  Model.prototype.isEmpty = function () {
    return this.option == null;
  };
  Model.prototype.restoreData = function () {};
  // Pending
  Model.prototype.clone = function () {
    var Ctor = this.constructor;
    return new Ctor(Object(util["clone"])(this.option));
  };
  // setReadOnly(properties): void {
  // clazzUtil.setReadOnly(this, properties);
  // }
  // If path is null/undefined, return null/undefined.
  Model.prototype.parsePath = function (path) {
    if (typeof path === 'string') {
      return path.split('.');
    }
    return path;
  };
  // Resolve path for parent. Perhaps useful when parent use a different property.
  // Default to be a identity resolver.
  // Can be modified to a different resolver.
  Model.prototype.resolveParentPath = function (path) {
    return path;
  };
  // FIXME:TS check whether put this method here
  Model.prototype.isAnimationEnabled = function () {
    if (!env["a" /* default */].node && this.option) {
      if (this.option.animation != null) {
        return !!this.option.animation;
      } else if (this.parentModel) {
        return this.parentModel.isAnimationEnabled();
      }
    }
  };
  Model.prototype._doGet = function (pathArr, parentModel) {
    var obj = this.option;
    if (!pathArr) {
      return obj;
    }
    for (var i = 0; i < pathArr.length; i++) {
      // Ignore empty
      if (!pathArr[i]) {
        continue;
      }
      // obj could be number/string/... (like 0)
      obj = obj && typeof obj === 'object' ? obj[pathArr[i]] : null;
      if (obj == null) {
        break;
      }
    }
    if (obj == null && parentModel) {
      obj = parentModel._doGet(this.resolveParentPath(pathArr), parentModel.parentModel);
    }
    return obj;
  };
  return Model;
}();
;
// Enable Model.extend.
enableClassExtend(Model_Model);
enableClassCheck(Model_Model);
Object(util["mixin"])(Model_Model, LineStyleMixin);
Object(util["mixin"])(Model_Model, ItemStyleMixin);
Object(util["mixin"])(Model_Model, AreaStyleMixin);
Object(util["mixin"])(Model_Model, mixin_textStyle);
/* harmony default export */ var model_Model = (Model_Model);
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/component.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



// A random offset
var component_base = Math.round(Math.random() * 10);
/**
 * @public
 * @param {string} type
 * @return {string}
 */
function getUID(type) {
  // Considering the case of crossing js context,
  // use Math.random to make id as unique as possible.
  return [type || '', component_base++].join('_');
}
/**
 * Implements `SubTypeDefaulterManager` for `target`.
 */
function enableSubTypeDefaulter(target) {
  var subTypeDefaulters = {};
  target.registerSubTypeDefaulter = function (componentType, defaulter) {
    var componentTypeInfo = parseClassType(componentType);
    subTypeDefaulters[componentTypeInfo.main] = defaulter;
  };
  target.determineSubType = function (componentType, option) {
    var type = option.type;
    if (!type) {
      var componentTypeMain = parseClassType(componentType).main;
      if (target.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) {
        type = subTypeDefaulters[componentTypeMain](option);
      }
    }
    return type;
  };
}
/**
 * Implements `TopologicalTravelable<any>` for `entity`.
 *
 * Topological travel on Activity Network (Activity On Vertices).
 * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].
 * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.
 * If there is circular dependencey, Error will be thrown.
 */
function enableTopologicalTravel(entity, dependencyGetter) {
  /**
   * @param targetNameList Target Component type list.
   *                       Can be ['aa', 'bb', 'aa.xx']
   * @param fullNameList By which we can build dependency graph.
   * @param callback Params: componentType, dependencies.
   * @param context Scope of callback.
   */
  entity.topologicalTravel = function (targetNameList, fullNameList, callback, context) {
    if (!targetNameList.length) {
      return;
    }
    var result = makeDepndencyGraph(fullNameList);
    var graph = result.graph;
    var noEntryList = result.noEntryList;
    var targetNameSet = {};
    util["each"](targetNameList, function (name) {
      targetNameSet[name] = true;
    });
    while (noEntryList.length) {
      var currComponentType = noEntryList.pop();
      var currVertex = graph[currComponentType];
      var isInTargetNameSet = !!targetNameSet[currComponentType];
      if (isInTargetNameSet) {
        callback.call(context, currComponentType, currVertex.originalDeps.slice());
        delete targetNameSet[currComponentType];
      }
      util["each"](currVertex.successor, isInTargetNameSet ? removeEdgeAndAdd : removeEdge);
    }
    util["each"](targetNameSet, function () {
      var errMsg = '';
      if (false) {}
      throw new Error(errMsg);
    });
    function removeEdge(succComponentType) {
      graph[succComponentType].entryCount--;
      if (graph[succComponentType].entryCount === 0) {
        noEntryList.push(succComponentType);
      }
    }
    // Consider this case: legend depends on series, and we call
    // chart.setOption({series: [...]}), where only series is in option.
    // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will
    // not be called, but only sereis.mergeOption is called. Thus legend
    // have no chance to update its local record about series (like which
    // name of series is available in legend).
    function removeEdgeAndAdd(succComponentType) {
      targetNameSet[succComponentType] = true;
      removeEdge(succComponentType);
    }
  };
  function makeDepndencyGraph(fullNameList) {
    var graph = {};
    var noEntryList = [];
    util["each"](fullNameList, function (name) {
      var thisItem = createDependencyGraphItem(graph, name);
      var originalDeps = thisItem.originalDeps = dependencyGetter(name);
      var availableDeps = getAvailableDependencies(originalDeps, fullNameList);
      thisItem.entryCount = availableDeps.length;
      if (thisItem.entryCount === 0) {
        noEntryList.push(name);
      }
      util["each"](availableDeps, function (dependentName) {
        if (util["indexOf"](thisItem.predecessor, dependentName) < 0) {
          thisItem.predecessor.push(dependentName);
        }
        var thatItem = createDependencyGraphItem(graph, dependentName);
        if (util["indexOf"](thatItem.successor, dependentName) < 0) {
          thatItem.successor.push(name);
        }
      });
    });
    return {
      graph: graph,
      noEntryList: noEntryList
    };
  }
  function createDependencyGraphItem(graph, name) {
    if (!graph[name]) {
      graph[name] = {
        predecessor: [],
        successor: []
      };
    }
    return graph[name];
  }
  function getAvailableDependencies(originalDeps, fullNameList) {
    var availableDeps = [];
    util["each"](originalDeps, function (dep) {
      util["indexOf"](fullNameList, dep) >= 0 && availableDeps.push(dep);
    });
    return availableDeps;
  }
}
function inheritDefaultOption(superOption, subOption) {
  // See also `model/Component.ts#getDefaultOption`
  return util["merge"](util["merge"]({}, superOption, true), subOption, true);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/i18n/langEN.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
/**
 * Language: English.
 */
/* harmony default export */ var langEN = ({
  time: {
    month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
    monthAbbr: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    dayOfWeek: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
    dayOfWeekAbbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
  },
  legend: {
    selector: {
      all: 'All',
      inverse: 'Inv'
    }
  },
  toolbox: {
    brush: {
      title: {
        rect: 'Box Select',
        polygon: 'Lasso Select',
        lineX: 'Horizontally Select',
        lineY: 'Vertically Select',
        keep: 'Keep Selections',
        clear: 'Clear Selections'
      }
    },
    dataView: {
      title: 'Data View',
      lang: ['Data View', 'Close', 'Refresh']
    },
    dataZoom: {
      title: {
        zoom: 'Zoom',
        back: 'Zoom Reset'
      }
    },
    magicType: {
      title: {
        line: 'Switch to Line Chart',
        bar: 'Switch to Bar Chart',
        stack: 'Stack',
        tiled: 'Tile'
      }
    },
    restore: {
      title: 'Restore'
    },
    saveAsImage: {
      title: 'Save as Image',
      lang: ['Right Click to Save Image']
    }
  },
  series: {
    typeNames: {
      pie: 'Pie chart',
      bar: 'Bar chart',
      line: 'Line chart',
      scatter: 'Scatter plot',
      effectScatter: 'Ripple scatter plot',
      radar: 'Radar chart',
      tree: 'Tree',
      treemap: 'Treemap',
      boxplot: 'Boxplot',
      candlestick: 'Candlestick',
      k: 'K line chart',
      heatmap: 'Heat map',
      map: 'Map',
      parallel: 'Parallel coordinate map',
      lines: 'Line graph',
      graph: 'Relationship graph',
      sankey: 'Sankey diagram',
      funnel: 'Funnel chart',
      gauge: 'Gauge',
      pictorialBar: 'Pictorial bar',
      themeRiver: 'Theme River Map',
      sunburst: 'Sunburst',
      custom: 'Custom chart',
      chart: 'Chart'
    }
  },
  aria: {
    general: {
      withTitle: 'This is a chart about "{title}"',
      withoutTitle: 'This is a chart'
    },
    series: {
      single: {
        prefix: '',
        withName: ' with type {seriesType} named {seriesName}.',
        withoutName: ' with type {seriesType}.'
      },
      multiple: {
        prefix: '. It consists of {seriesCount} series count.',
        withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',
        withoutName: ' The {seriesId} series is a {seriesType}.',
        separator: {
          middle: '',
          end: ''
        }
      }
    },
    data: {
      allData: 'The data is as follows: ',
      partialData: 'The first {displayCnt} items are: ',
      withName: 'the data for {name} is {value}',
      withoutName: '{value}',
      separator: {
        middle: ', ',
        end: '. '
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/echarts/lib/i18n/langZH.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
/* harmony default export */ var langZH = ({
  time: {
    month: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
    monthAbbr: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
    dayOfWeek: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
    dayOfWeekAbbr: ['日', '一', '二', '三', '四', '五', '六']
  },
  legend: {
    selector: {
      all: '全选',
      inverse: '反选'
    }
  },
  toolbox: {
    brush: {
      title: {
        rect: '矩形选择',
        polygon: '圈选',
        lineX: '横向选择',
        lineY: '纵向选择',
        keep: '保持选择',
        clear: '清除选择'
      }
    },
    dataView: {
      title: '数据视图',
      lang: ['数据视图', '关闭', '刷新']
    },
    dataZoom: {
      title: {
        zoom: '区域缩放',
        back: '区域缩放还原'
      }
    },
    magicType: {
      title: {
        line: '切换为折线图',
        bar: '切换为柱状图',
        stack: '切换为堆叠',
        tiled: '切换为平铺'
      }
    },
    restore: {
      title: '还原'
    },
    saveAsImage: {
      title: '保存为图片',
      lang: ['右键另存为图片']
    }
  },
  series: {
    typeNames: {
      pie: '饼图',
      bar: '柱状图',
      line: '折线图',
      scatter: '散点图',
      effectScatter: '涟漪散点图',
      radar: '雷达图',
      tree: '树图',
      treemap: '矩形树图',
      boxplot: '箱型图',
      candlestick: 'K线图',
      k: 'K线图',
      heatmap: '热力图',
      map: '地图',
      parallel: '平行坐标图',
      lines: '线图',
      graph: '关系图',
      sankey: '桑基图',
      funnel: '漏斗图',
      gauge: '仪表盘图',
      pictorialBar: '象形柱图',
      themeRiver: '主题河流图',
      sunburst: '旭日图',
      custom: '自定义图表',
      chart: '图表'
    }
  },
  aria: {
    general: {
      withTitle: '这是一个关于“{title}”的图表。',
      withoutTitle: '这是一个图表，'
    },
    series: {
      single: {
        prefix: '',
        withName: '图表类型是{seriesType}，表示{seriesName}。',
        withoutName: '图表类型是{seriesType}。'
      },
      multiple: {
        prefix: '它由{seriesCount}个图表系列组成。',
        withName: '第{seriesId}个系列是一个表示{seriesName}的{seriesType}，',
        withoutName: '第{seriesId}个系列是一个{seriesType}，',
        separator: {
          middle: '；',
          end: '。'
        }
      }
    },
    data: {
      allData: '其数据是——',
      partialData: '其中，前{displayCnt}项是——',
      withName: '{name}的数据是{value}',
      withoutName: '{value}',
      separator: {
        middle: '，',
        end: ''
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/locale.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// default import ZH and EN lang



var LOCALE_ZH = 'ZH';
var LOCALE_EN = 'EN';
var DEFAULT_LOCALE = LOCALE_EN;
var localeStorage = {};
var localeModels = {};
var SYSTEM_LANG = !env["a" /* default */].domSupported ? DEFAULT_LOCALE : function () {
  var langStr = (/* eslint-disable-next-line */
  document.documentElement.lang || navigator.language || navigator.browserLanguage || DEFAULT_LOCALE).toUpperCase();
  return langStr.indexOf(LOCALE_ZH) > -1 ? LOCALE_ZH : DEFAULT_LOCALE;
}();
function registerLocale(locale, localeObj) {
  locale = locale.toUpperCase();
  localeModels[locale] = new model_Model(localeObj);
  localeStorage[locale] = localeObj;
}
// export function getLocale(locale: string) {
//     return localeStorage[locale];
// }
function createLocaleObject(locale) {
  if (Object(util["isString"])(locale)) {
    var localeObj = localeStorage[locale.toUpperCase()] || {};
    if (locale === LOCALE_ZH || locale === LOCALE_EN) {
      return Object(util["clone"])(localeObj);
    } else {
      return Object(util["merge"])(Object(util["clone"])(localeObj), Object(util["clone"])(localeStorage[DEFAULT_LOCALE]), false);
    }
  } else {
    return Object(util["merge"])(Object(util["clone"])(locale), Object(util["clone"])(localeStorage[DEFAULT_LOCALE]), false);
  }
}
function getLocaleModel(lang) {
  return localeModels[lang];
}
function getDefaultLocaleModel() {
  return localeModels[DEFAULT_LOCALE];
}
// Default locale
registerLocale(LOCALE_EN, langEN);
registerLocale(LOCALE_ZH, langZH);
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/time.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var ONE_SECOND = 1000;
var ONE_MINUTE = ONE_SECOND * 60;
var ONE_HOUR = ONE_MINUTE * 60;
var ONE_DAY = ONE_HOUR * 24;
var ONE_YEAR = ONE_DAY * 365;
var defaultLeveledFormatter = {
  year: '{yyyy}',
  month: '{MMM}',
  day: '{d}',
  hour: '{HH}:{mm}',
  minute: '{HH}:{mm}',
  second: '{HH}:{mm}:{ss}',
  millisecond: '{HH}:{mm}:{ss} {SSS}',
  none: '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}'
};
var fullDayFormatter = '{yyyy}-{MM}-{dd}';
var fullLeveledFormatter = {
  year: '{yyyy}',
  month: '{yyyy}-{MM}',
  day: fullDayFormatter,
  hour: fullDayFormatter + ' ' + defaultLeveledFormatter.hour,
  minute: fullDayFormatter + ' ' + defaultLeveledFormatter.minute,
  second: fullDayFormatter + ' ' + defaultLeveledFormatter.second,
  millisecond: defaultLeveledFormatter.none
};
var primaryTimeUnits = ['year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond'];
var timeUnits = ['year', 'half-year', 'quarter', 'month', 'week', 'half-week', 'day', 'half-day', 'quarter-day', 'hour', 'minute', 'second', 'millisecond'];
function pad(str, len) {
  str += '';
  return '0000'.substr(0, len - str.length) + str;
}
function getPrimaryTimeUnit(timeUnit) {
  switch (timeUnit) {
    case 'half-year':
    case 'quarter':
      return 'month';
    case 'week':
    case 'half-week':
      return 'day';
    case 'half-day':
    case 'quarter-day':
      return 'hour';
    default:
      // year, minutes, second, milliseconds
      return timeUnit;
  }
}
function isPrimaryTimeUnit(timeUnit) {
  return timeUnit === getPrimaryTimeUnit(timeUnit);
}
function getDefaultFormatPrecisionOfInterval(timeUnit) {
  switch (timeUnit) {
    case 'year':
    case 'month':
      return 'day';
    case 'millisecond':
      return 'millisecond';
    default:
      // Also for day, hour, minute, second
      return 'second';
  }
}
function format(
// Note: The result based on `isUTC` are totally different, which can not be just simply
// substituted by the result without `isUTC`. So we make the param `isUTC` mandatory.
time, template, isUTC, lang) {
  var date = parseDate(time);
  var y = date[fullYearGetterName(isUTC)]();
  var M = date[monthGetterName(isUTC)]() + 1;
  var q = Math.floor((M - 1) / 3) + 1;
  var d = date[dateGetterName(isUTC)]();
  var e = date['get' + (isUTC ? 'UTC' : '') + 'Day']();
  var H = date[hoursGetterName(isUTC)]();
  var h = (H - 1) % 12 + 1;
  var m = date[minutesGetterName(isUTC)]();
  var s = date[secondsGetterName(isUTC)]();
  var S = date[millisecondsGetterName(isUTC)]();
  var a = H >= 12 ? 'pm' : 'am';
  var A = a.toUpperCase();
  var localeModel = lang instanceof model_Model ? lang : getLocaleModel(lang || SYSTEM_LANG) || getDefaultLocaleModel();
  var timeModel = localeModel.getModel('time');
  var month = timeModel.get('month');
  var monthAbbr = timeModel.get('monthAbbr');
  var dayOfWeek = timeModel.get('dayOfWeek');
  var dayOfWeekAbbr = timeModel.get('dayOfWeekAbbr');
  return (template || '').replace(/{a}/g, a + '').replace(/{A}/g, A + '').replace(/{yyyy}/g, y + '').replace(/{yy}/g, pad(y % 100 + '', 2)).replace(/{Q}/g, q + '').replace(/{MMMM}/g, month[M - 1]).replace(/{MMM}/g, monthAbbr[M - 1]).replace(/{MM}/g, pad(M, 2)).replace(/{M}/g, M + '').replace(/{dd}/g, pad(d, 2)).replace(/{d}/g, d + '').replace(/{eeee}/g, dayOfWeek[e]).replace(/{ee}/g, dayOfWeekAbbr[e]).replace(/{e}/g, e + '').replace(/{HH}/g, pad(H, 2)).replace(/{H}/g, H + '').replace(/{hh}/g, pad(h + '', 2)).replace(/{h}/g, h + '').replace(/{mm}/g, pad(m, 2)).replace(/{m}/g, m + '').replace(/{ss}/g, pad(s, 2)).replace(/{s}/g, s + '').replace(/{SSS}/g, pad(S, 3)).replace(/{S}/g, S + '');
}
function leveledFormat(tick, idx, formatter, lang, isUTC) {
  var template = null;
  if (util["isString"](formatter)) {
    // Single formatter for all units at all levels
    template = formatter;
  } else if (util["isFunction"](formatter)) {
    // Callback formatter
    template = formatter(tick.value, idx, {
      level: tick.level
    });
  } else {
    var defaults = util["extend"]({}, defaultLeveledFormatter);
    if (tick.level > 0) {
      for (var i = 0; i < primaryTimeUnits.length; ++i) {
        defaults[primaryTimeUnits[i]] = "{primary|" + defaults[primaryTimeUnits[i]] + "}";
      }
    }
    var mergedFormatter = formatter ? formatter.inherit === false ? formatter // Use formatter with bigger units
    : util["defaults"](formatter, defaults) : defaults;
    var unit = getUnitFromValue(tick.value, isUTC);
    if (mergedFormatter[unit]) {
      template = mergedFormatter[unit];
    } else if (mergedFormatter.inherit) {
      // Unit formatter is not defined and should inherit from bigger units
      var targetId = timeUnits.indexOf(unit);
      for (var i = targetId - 1; i >= 0; --i) {
        if (mergedFormatter[unit]) {
          template = mergedFormatter[unit];
          break;
        }
      }
      template = template || defaults.none;
    }
    if (util["isArray"](template)) {
      var levelId = tick.level == null ? 0 : tick.level >= 0 ? tick.level : template.length + tick.level;
      levelId = Math.min(levelId, template.length - 1);
      template = template[levelId];
    }
  }
  return format(new Date(tick.value), template, isUTC, lang);
}
function getUnitFromValue(value, isUTC) {
  var date = parseDate(value);
  var M = date[monthGetterName(isUTC)]() + 1;
  var d = date[dateGetterName(isUTC)]();
  var h = date[hoursGetterName(isUTC)]();
  var m = date[minutesGetterName(isUTC)]();
  var s = date[secondsGetterName(isUTC)]();
  var S = date[millisecondsGetterName(isUTC)]();
  var isSecond = S === 0;
  var isMinute = isSecond && s === 0;
  var isHour = isMinute && m === 0;
  var isDay = isHour && h === 0;
  var isMonth = isDay && d === 1;
  var isYear = isMonth && M === 1;
  if (isYear) {
    return 'year';
  } else if (isMonth) {
    return 'month';
  } else if (isDay) {
    return 'day';
  } else if (isHour) {
    return 'hour';
  } else if (isMinute) {
    return 'minute';
  } else if (isSecond) {
    return 'second';
  } else {
    return 'millisecond';
  }
}
function getUnitValue(value, unit, isUTC) {
  var date = util["isNumber"](value) ? parseDate(value) : value;
  unit = unit || getUnitFromValue(value, isUTC);
  switch (unit) {
    case 'year':
      return date[fullYearGetterName(isUTC)]();
    case 'half-year':
      return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0;
    case 'quarter':
      return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4);
    case 'month':
      return date[monthGetterName(isUTC)]();
    case 'day':
      return date[dateGetterName(isUTC)]();
    case 'half-day':
      return date[hoursGetterName(isUTC)]() / 24;
    case 'hour':
      return date[hoursGetterName(isUTC)]();
    case 'minute':
      return date[minutesGetterName(isUTC)]();
    case 'second':
      return date[secondsGetterName(isUTC)]();
    case 'millisecond':
      return date[millisecondsGetterName(isUTC)]();
  }
}
function fullYearGetterName(isUTC) {
  return isUTC ? 'getUTCFullYear' : 'getFullYear';
}
function monthGetterName(isUTC) {
  return isUTC ? 'getUTCMonth' : 'getMonth';
}
function dateGetterName(isUTC) {
  return isUTC ? 'getUTCDate' : 'getDate';
}
function hoursGetterName(isUTC) {
  return isUTC ? 'getUTCHours' : 'getHours';
}
function minutesGetterName(isUTC) {
  return isUTC ? 'getUTCMinutes' : 'getMinutes';
}
function secondsGetterName(isUTC) {
  return isUTC ? 'getUTCSeconds' : 'getSeconds';
}
function millisecondsGetterName(isUTC) {
  return isUTC ? 'getUTCMilliseconds' : 'getMilliseconds';
}
function fullYearSetterName(isUTC) {
  return isUTC ? 'setUTCFullYear' : 'setFullYear';
}
function monthSetterName(isUTC) {
  return isUTC ? 'setUTCMonth' : 'setMonth';
}
function dateSetterName(isUTC) {
  return isUTC ? 'setUTCDate' : 'setDate';
}
function hoursSetterName(isUTC) {
  return isUTC ? 'setUTCHours' : 'setHours';
}
function minutesSetterName(isUTC) {
  return isUTC ? 'setUTCMinutes' : 'setMinutes';
}
function secondsSetterName(isUTC) {
  return isUTC ? 'setUTCSeconds' : 'setSeconds';
}
function millisecondsSetterName(isUTC) {
  return isUTC ? 'setUTCMilliseconds' : 'setMilliseconds';
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/format.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





/**
 * Add a comma each three digit.
 */
function addCommas(x) {
  if (!isNumeric(x)) {
    return util["isString"](x) ? x : '-';
  }
  var parts = (x + '').split('.');
  return parts[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,') + (parts.length > 1 ? '.' + parts[1] : '');
}
function toCamelCase(str, upperCaseFirst) {
  str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) {
    return group1.toUpperCase();
  });
  if (upperCaseFirst && str) {
    str = str.charAt(0).toUpperCase() + str.slice(1);
  }
  return str;
}
var normalizeCssArray = util["normalizeCssArray"];

/**
 * Make value user readable for tooltip and label.
 * "User readable":
 *     Try to not print programmer-specific text like NaN, Infinity, null, undefined.
 *     Avoid to display an empty string, which users can not recognize there is
 *     a value and it might look like a bug.
 */
function makeValueReadable(value, valueType, useUTC) {
  var USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}';
  function stringToUserReadable(str) {
    return str && util["trim"](str) ? str : '-';
  }
  function isNumberUserReadable(num) {
    return !!(num != null && !isNaN(num) && isFinite(num));
  }
  var isTypeTime = valueType === 'time';
  var isValueDate = value instanceof Date;
  if (isTypeTime || isValueDate) {
    var date = isTypeTime ? parseDate(value) : value;
    if (!isNaN(+date)) {
      return format(date, USER_READABLE_DEFUALT_TIME_PATTERN, useUTC);
    } else if (isValueDate) {
      return '-';
    }
    // In other cases, continue to try to display the value in the following code.
  }
  if (valueType === 'ordinal') {
    return util["isStringSafe"](value) ? stringToUserReadable(value) : util["isNumber"](value) ? isNumberUserReadable(value) ? value + '' : '-' : '-';
  }
  // By default.
  var numericResult = numericToNumber(value);
  return isNumberUserReadable(numericResult) ? addCommas(numericResult) : util["isStringSafe"](value) ? stringToUserReadable(value) : typeof value === 'boolean' ? value + '' : '-';
}
var TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
var wrapVar = function (varName, seriesIdx) {
  return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';
};
/**
 * Template formatter
 * @param {Array.<Object>|Object} paramsList
 */
function formatTpl(tpl, paramsList, encode) {
  if (!util["isArray"](paramsList)) {
    paramsList = [paramsList];
  }
  var seriesLen = paramsList.length;
  if (!seriesLen) {
    return '';
  }
  var $vars = paramsList[0].$vars || [];
  for (var i = 0; i < $vars.length; i++) {
    var alias = TPL_VAR_ALIAS[i];
    tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0));
  }
  for (var seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) {
    for (var k = 0; k < $vars.length; k++) {
      var val = paramsList[seriesIdx][$vars[k]];
      tpl = tpl.replace(wrapVar(TPL_VAR_ALIAS[k], seriesIdx), encode ? encodeHTML(val) : val);
    }
  }
  return tpl;
}
/**
 * simple Template formatter
 */
function formatTplSimple(tpl, param, encode) {
  util["each"](param, function (value, key) {
    tpl = tpl.replace('{' + key + '}', encode ? encodeHTML(value) : value);
  });
  return tpl;
}
function getTooltipMarker(inOpt, extraCssText) {
  var opt = util["isString"](inOpt) ? {
    color: inOpt,
    extraCssText: extraCssText
  } : inOpt || {};
  var color = opt.color;
  var type = opt.type;
  extraCssText = opt.extraCssText;
  var renderMode = opt.renderMode || 'html';
  if (!color) {
    return '';
  }
  if (renderMode === 'html') {
    return type === 'subItem' ? '<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;' + 'border-radius:4px;width:4px;height:4px;background-color:'
    // Only support string
    + encodeHTML(color) + ';' + (extraCssText || '') + '"></span>' : '<span style="display:inline-block;margin-right:4px;' + 'border-radius:10px;width:10px;height:10px;background-color:' + encodeHTML(color) + ';' + (extraCssText || '') + '"></span>';
  } else {
    // Should better not to auto generate style name by auto-increment number here.
    // Because this util is usually called in tooltip formatter, which is probably
    // called repeatedly when mouse move and the auto-increment number increases fast.
    // Users can make their own style name by theirselves, make it unique and readable.
    var markerId = opt.markerId || 'markerX';
    return {
      renderMode: renderMode,
      content: '{' + markerId + '|}  ',
      style: type === 'subItem' ? {
        width: 4,
        height: 4,
        borderRadius: 2,
        backgroundColor: color
      } : {
        width: 10,
        height: 10,
        borderRadius: 5,
        backgroundColor: color
      }
    };
  }
}
/**
 * @deprecated Use `time/format` instead.
 * ISO Date format
 * @param {string} tpl
 * @param {number} value
 * @param {boolean} [isUTC=false] Default in local time.
 *           see `module:echarts/scale/Time`
 *           and `module:echarts/util/number#parseDate`.
 * @inner
 */
function formatTime(tpl, value, isUTC) {
  if (false) {}
  if (tpl === 'week' || tpl === 'month' || tpl === 'quarter' || tpl === 'half-year' || tpl === 'year') {
    tpl = 'MM-dd\nyyyy';
  }
  var date = parseDate(value);
  var getUTC = isUTC ? 'getUTC' : 'get';
  var y = date[getUTC + 'FullYear']();
  var M = date[getUTC + 'Month']() + 1;
  var d = date[getUTC + 'Date']();
  var h = date[getUTC + 'Hours']();
  var m = date[getUTC + 'Minutes']();
  var s = date[getUTC + 'Seconds']();
  var S = date[getUTC + 'Milliseconds']();
  tpl = tpl.replace('MM', pad(M, 2)).replace('M', M).replace('yyyy', y).replace('yy', pad(y % 100 + '', 2)).replace('dd', pad(d, 2)).replace('d', d).replace('hh', pad(h, 2)).replace('h', h).replace('mm', pad(m, 2)).replace('m', m).replace('ss', pad(s, 2)).replace('s', s).replace('SSS', pad(S, 3));
  return tpl;
}
/**
 * Capital first
 * @param {string} str
 * @return {string}
 */
function capitalFirst(str) {
  return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;
}
/**
 * @return Never be null/undefined.
 */
function convertToColorString(color, defaultColor) {
  defaultColor = defaultColor || 'transparent';
  return util["isString"](color) ? color : util["isObject"](color) ? color.colorStops && (color.colorStops[0] || {}).color || defaultColor : defaultColor;
}

/**
 * open new tab
 * @param link url
 * @param target blank or self
 */
function windowOpen(link, target) {
  /* global window */
  if (target === '_blank' || target === 'blank') {
    var blank = window.open();
    blank.opener = null;
    blank.location.href = link;
  } else {
    window.open(link, target);
  }
}

// CONCATENATED MODULE: ./node_modules/echarts/lib/util/layout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Layout helpers for each component positioning




var each = util["each"];
/**
 * @public
 */
var LOCATION_PARAMS = ['left', 'right', 'top', 'bottom', 'width', 'height'];
/**
 * @public
 */
var HV_NAMES = [['width', 'left', 'right'], ['height', 'top', 'bottom']];
function boxLayout(orient, group, gap, maxWidth, maxHeight) {
  var x = 0;
  var y = 0;
  if (maxWidth == null) {
    maxWidth = Infinity;
  }
  if (maxHeight == null) {
    maxHeight = Infinity;
  }
  var currentLineMaxSize = 0;
  group.eachChild(function (child, idx) {
    var rect = child.getBoundingRect();
    var nextChild = group.childAt(idx + 1);
    var nextChildRect = nextChild && nextChild.getBoundingRect();
    var nextX;
    var nextY;
    if (orient === 'horizontal') {
      var moveX = rect.width + (nextChildRect ? -nextChildRect.x + rect.x : 0);
      nextX = x + moveX;
      // Wrap when width exceeds maxWidth or meet a `newline` group
      // FIXME compare before adding gap?
      if (nextX > maxWidth || child.newline) {
        x = 0;
        nextX = moveX;
        y += currentLineMaxSize + gap;
        currentLineMaxSize = rect.height;
      } else {
        // FIXME: consider rect.y is not `0`?
        currentLineMaxSize = Math.max(currentLineMaxSize, rect.height);
      }
    } else {
      var moveY = rect.height + (nextChildRect ? -nextChildRect.y + rect.y : 0);
      nextY = y + moveY;
      // Wrap when width exceeds maxHeight or meet a `newline` group
      if (nextY > maxHeight || child.newline) {
        x += currentLineMaxSize + gap;
        y = 0;
        nextY = moveY;
        currentLineMaxSize = rect.width;
      } else {
        currentLineMaxSize = Math.max(currentLineMaxSize, rect.width);
      }
    }
    if (child.newline) {
      return;
    }
    child.x = x;
    child.y = y;
    child.markRedraw();
    orient === 'horizontal' ? x = nextX + gap : y = nextY + gap;
  });
}
/**
 * VBox or HBox layouting
 * @param {string} orient
 * @param {module:zrender/graphic/Group} group
 * @param {number} gap
 * @param {number} [width=Infinity]
 * @param {number} [height=Infinity]
 */
var layout_box = boxLayout;
/**
 * VBox layouting
 * @param {module:zrender/graphic/Group} group
 * @param {number} gap
 * @param {number} [width=Infinity]
 * @param {number} [height=Infinity]
 */
var vbox = util["curry"](boxLayout, 'vertical');
/**
 * HBox layouting
 * @param {module:zrender/graphic/Group} group
 * @param {number} gap
 * @param {number} [width=Infinity]
 * @param {number} [height=Infinity]
 */
var hbox = util["curry"](boxLayout, 'horizontal');
/**
 * If x or x2 is not specified or 'center' 'left' 'right',
 * the width would be as long as possible.
 * If y or y2 is not specified or 'middle' 'top' 'bottom',
 * the height would be as long as possible.
 */
function getAvailableSize(positionInfo, containerRect, margin) {
  var containerWidth = containerRect.width;
  var containerHeight = containerRect.height;
  var x = number_parsePercent(positionInfo.left, containerWidth);
  var y = number_parsePercent(positionInfo.top, containerHeight);
  var x2 = number_parsePercent(positionInfo.right, containerWidth);
  var y2 = number_parsePercent(positionInfo.bottom, containerHeight);
  (isNaN(x) || isNaN(parseFloat(positionInfo.left))) && (x = 0);
  (isNaN(x2) || isNaN(parseFloat(positionInfo.right))) && (x2 = containerWidth);
  (isNaN(y) || isNaN(parseFloat(positionInfo.top))) && (y = 0);
  (isNaN(y2) || isNaN(parseFloat(positionInfo.bottom))) && (y2 = containerHeight);
  margin = normalizeCssArray(margin || 0);
  return {
    width: Math.max(x2 - x - margin[1] - margin[3], 0),
    height: Math.max(y2 - y - margin[0] - margin[2], 0)
  };
}
/**
 * Parse position info.
 */
function getLayoutRect(positionInfo, containerRect, margin) {
  margin = normalizeCssArray(margin || 0);
  var containerWidth = containerRect.width;
  var containerHeight = containerRect.height;
  var left = number_parsePercent(positionInfo.left, containerWidth);
  var top = number_parsePercent(positionInfo.top, containerHeight);
  var right = number_parsePercent(positionInfo.right, containerWidth);
  var bottom = number_parsePercent(positionInfo.bottom, containerHeight);
  var width = number_parsePercent(positionInfo.width, containerWidth);
  var height = number_parsePercent(positionInfo.height, containerHeight);
  var verticalMargin = margin[2] + margin[0];
  var horizontalMargin = margin[1] + margin[3];
  var aspect = positionInfo.aspect;
  // If width is not specified, calculate width from left and right
  if (isNaN(width)) {
    width = containerWidth - right - horizontalMargin - left;
  }
  if (isNaN(height)) {
    height = containerHeight - bottom - verticalMargin - top;
  }
  if (aspect != null) {
    // If width and height are not given
    // 1. Graph should not exceeds the container
    // 2. Aspect must be keeped
    // 3. Graph should take the space as more as possible
    // FIXME
    // Margin is not considered, because there is no case that both
    // using margin and aspect so far.
    if (isNaN(width) && isNaN(height)) {
      if (aspect > containerWidth / containerHeight) {
        width = containerWidth * 0.8;
      } else {
        height = containerHeight * 0.8;
      }
    }
    // Calculate width or height with given aspect
    if (isNaN(width)) {
      width = aspect * height;
    }
    if (isNaN(height)) {
      height = width / aspect;
    }
  }
  // If left is not specified, calculate left from right and width
  if (isNaN(left)) {
    left = containerWidth - right - width - horizontalMargin;
  }
  if (isNaN(top)) {
    top = containerHeight - bottom - height - verticalMargin;
  }
  // Align left and top
  switch (positionInfo.left || positionInfo.right) {
    case 'center':
      left = containerWidth / 2 - width / 2 - margin[3];
      break;
    case 'right':
      left = containerWidth - width - horizontalMargin;
      break;
  }
  switch (positionInfo.top || positionInfo.bottom) {
    case 'middle':
    case 'center':
      top = containerHeight / 2 - height / 2 - margin[0];
      break;
    case 'bottom':
      top = containerHeight - height - verticalMargin;
      break;
  }
  // If something is wrong and left, top, width, height are calculated as NaN
  left = left || 0;
  top = top || 0;
  if (isNaN(width)) {
    // Width may be NaN if only one value is given except width
    width = containerWidth - horizontalMargin - left - (right || 0);
  }
  if (isNaN(height)) {
    // Height may be NaN if only one value is given except height
    height = containerHeight - verticalMargin - top - (bottom || 0);
  }
  var rect = new core_BoundingRect(left + margin[3], top + margin[0], width, height);
  rect.margin = margin;
  return rect;
}
/**
 * Position a zr element in viewport
 *  Group position is specified by either
 *  {left, top}, {right, bottom}
 *  If all properties exists, right and bottom will be igonred.
 *
 * Logic:
 *     1. Scale (against origin point in parent coord)
 *     2. Rotate (against origin point in parent coord)
 *     3. Translate (with el.position by this method)
 * So this method only fixes the last step 'Translate', which does not affect
 * scaling and rotating.
 *
 * If be called repeatedly with the same input el, the same result will be gotten.
 *
 * Return true if the layout happened.
 *
 * @param el Should have `getBoundingRect` method.
 * @param positionInfo
 * @param positionInfo.left
 * @param positionInfo.top
 * @param positionInfo.right
 * @param positionInfo.bottom
 * @param positionInfo.width Only for opt.boundingModel: 'raw'
 * @param positionInfo.height Only for opt.boundingModel: 'raw'
 * @param containerRect
 * @param margin
 * @param opt
 * @param opt.hv Only horizontal or only vertical. Default to be [1, 1]
 * @param opt.boundingMode
 *        Specify how to calculate boundingRect when locating.
 *        'all': Position the boundingRect that is transformed and uioned
 *               both itself and its descendants.
 *               This mode simplies confine the elements in the bounding
 *               of their container (e.g., using 'right: 0').
 *        'raw': Position the boundingRect that is not transformed and only itself.
 *               This mode is useful when you want a element can overflow its
 *               container. (Consider a rotated circle needs to be located in a corner.)
 *               In this mode positionInfo.width/height can only be number.
 */
function positionElement(el, positionInfo, containerRect, margin, opt, out) {
  var h = !opt || !opt.hv || opt.hv[0];
  var v = !opt || !opt.hv || opt.hv[1];
  var boundingMode = opt && opt.boundingMode || 'all';
  out = out || el;
  out.x = el.x;
  out.y = el.y;
  if (!h && !v) {
    return false;
  }
  var rect;
  if (boundingMode === 'raw') {
    rect = el.type === 'group' ? new core_BoundingRect(0, 0, +positionInfo.width || 0, +positionInfo.height || 0) : el.getBoundingRect();
  } else {
    rect = el.getBoundingRect();
    if (el.needLocalTransform()) {
      var transform = el.getLocalTransform();
      // Notice: raw rect may be inner object of el,
      // which should not be modified.
      rect = rect.clone();
      rect.applyTransform(transform);
    }
  }
  // The real width and height can not be specified but calculated by the given el.
  var layoutRect = getLayoutRect(util["defaults"]({
    width: rect.width,
    height: rect.height
  }, positionInfo), containerRect, margin);
  // Because 'tranlate' is the last step in transform
  // (see zrender/core/Transformable#getLocalTransform),
  // we can just only modify el.position to get final result.
  var dx = h ? layoutRect.x - rect.x : 0;
  var dy = v ? layoutRect.y - rect.y : 0;
  if (boundingMode === 'raw') {
    out.x = dx;
    out.y = dy;
  } else {
    out.x += dx;
    out.y += dy;
  }
  if (out === el) {
    el.markRedraw();
  }
  return true;
}
/**
 * @param option Contains some of the properties in HV_NAMES.
 * @param hvIdx 0: horizontal; 1: vertical.
 */
function sizeCalculable(option, hvIdx) {
  return option[HV_NAMES[hvIdx][0]] != null || option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null;
}
function fetchLayoutMode(ins) {
  var layoutMode = ins.layoutMode || ins.constructor.layoutMode;
  return util["isObject"](layoutMode) ? layoutMode : layoutMode ? {
    type: layoutMode
  } : null;
}
/**
 * Consider Case:
 * When default option has {left: 0, width: 100}, and we set {right: 0}
 * through setOption or media query, using normal zrUtil.merge will cause
 * {right: 0} does not take effect.
 *
 * @example
 * ComponentModel.extend({
 *     init: function () {
 *         ...
 *         let inputPositionParams = layout.getLayoutParams(option);
 *         this.mergeOption(inputPositionParams);
 *     },
 *     mergeOption: function (newOption) {
 *         newOption && zrUtil.merge(thisOption, newOption, true);
 *         layout.mergeLayoutParam(thisOption, newOption);
 *     }
 * });
 *
 * @param targetOption
 * @param newOption
 * @param opt
 */
function mergeLayoutParam(targetOption, newOption, opt) {
  var ignoreSize = opt && opt.ignoreSize;
  !util["isArray"](ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]);
  var hResult = merge(HV_NAMES[0], 0);
  var vResult = merge(HV_NAMES[1], 1);
  copy(HV_NAMES[0], targetOption, hResult);
  copy(HV_NAMES[1], targetOption, vResult);
  function merge(names, hvIdx) {
    var newParams = {};
    var newValueCount = 0;
    var merged = {};
    var mergedValueCount = 0;
    var enoughParamNumber = 2;
    each(names, function (name) {
      merged[name] = targetOption[name];
    });
    each(names, function (name) {
      // Consider case: newOption.width is null, which is
      // set by user for removing width setting.
      hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);
      hasValue(newParams, name) && newValueCount++;
      hasValue(merged, name) && mergedValueCount++;
    });
    if (ignoreSize[hvIdx]) {
      // Only one of left/right is premitted to exist.
      if (hasValue(newOption, names[1])) {
        merged[names[2]] = null;
      } else if (hasValue(newOption, names[2])) {
        merged[names[1]] = null;
      }
      return merged;
    }
    // Case: newOption: {width: ..., right: ...},
    // or targetOption: {right: ...} and newOption: {width: ...},
    // There is no conflict when merged only has params count
    // little than enoughParamNumber.
    if (mergedValueCount === enoughParamNumber || !newValueCount) {
      return merged;
    }
    // Case: newOption: {width: ..., right: ...},
    // Than we can make sure user only want those two, and ignore
    // all origin params in targetOption.
    else if (newValueCount >= enoughParamNumber) {
      return newParams;
    } else {
      // Chose another param from targetOption by priority.
      for (var i = 0; i < names.length; i++) {
        var name_1 = names[i];
        if (!hasProp(newParams, name_1) && hasProp(targetOption, name_1)) {
          newParams[name_1] = targetOption[name_1];
          break;
        }
      }
      return newParams;
    }
  }
  function hasProp(obj, name) {
    return obj.hasOwnProperty(name);
  }
  function hasValue(obj, name) {
    return obj[name] != null && obj[name] !== 'auto';
  }
  function copy(names, target, source) {
    each(names, function (name) {
      target[name] = source[name];
    });
  }
}
/**
 * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
 */
function getLayoutParams(source) {
  return copyLayoutParams({}, source);
}
/**
 * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
 * @param {Object} source
 * @return {Object} Result contains those props.
 */
function copyLayoutParams(target, source) {
  source && target && each(LOCATION_PARAMS, function (name) {
    source.hasOwnProperty(name) && (target[name] = source[name]);
  });
  return target;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/Component.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var Component_inner = makeInner();
var Component_ComponentModel = /** @class */function (_super) {
  __extends(ComponentModel, _super);
  function ComponentModel(option, parentModel, ecModel) {
    var _this = _super.call(this, option, parentModel, ecModel) || this;
    _this.uid = getUID('ec_cpt_model');
    return _this;
  }
  ComponentModel.prototype.init = function (option, parentModel, ecModel) {
    this.mergeDefaultAndTheme(option, ecModel);
  };
  ComponentModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {
    var layoutMode = fetchLayoutMode(this);
    var inputPositionParams = layoutMode ? getLayoutParams(option) : {};
    var themeModel = ecModel.getTheme();
    util["merge"](option, themeModel.get(this.mainType));
    util["merge"](option, this.getDefaultOption());
    if (layoutMode) {
      mergeLayoutParam(option, inputPositionParams, layoutMode);
    }
  };
  ComponentModel.prototype.mergeOption = function (option, ecModel) {
    util["merge"](this.option, option, true);
    var layoutMode = fetchLayoutMode(this);
    if (layoutMode) {
      mergeLayoutParam(this.option, option, layoutMode);
    }
  };
  /**
   * Called immediately after `init` or `mergeOption` of this instance called.
   */
  ComponentModel.prototype.optionUpdated = function (newCptOption, isInit) {};
  /**
   * [How to declare defaultOption]:
   *
   * (A) If using class declaration in typescript (since echarts 5):
   * ```ts
   * import {ComponentOption} from '../model/option.js';
   * export interface XxxOption extends ComponentOption {
   *     aaa: number
   * }
   * export class XxxModel extends Component {
   *     static type = 'xxx';
   *     static defaultOption: XxxOption = {
   *         aaa: 123
   *     }
   * }
   * Component.registerClass(XxxModel);
   * ```
   * ```ts
   * import {inheritDefaultOption} from '../util/component.js';
   * import {XxxModel, XxxOption} from './XxxModel.js';
   * export interface XxxSubOption extends XxxOption {
   *     bbb: number
   * }
   * class XxxSubModel extends XxxModel {
   *     static defaultOption: XxxSubOption = inheritDefaultOption(XxxModel.defaultOption, {
   *         bbb: 456
   *     })
   *     fn() {
   *         let opt = this.getDefaultOption();
   *         // opt is {aaa: 123, bbb: 456}
   *     }
   * }
   * ```
   *
   * (B) If using class extend (previous approach in echarts 3 & 4):
   * ```js
   * let XxxComponent = Component.extend({
   *     defaultOption: {
   *         xx: 123
   *     }
   * })
   * ```
   * ```js
   * let XxxSubComponent = XxxComponent.extend({
   *     defaultOption: {
   *         yy: 456
   *     },
   *     fn: function () {
   *         let opt = this.getDefaultOption();
   *         // opt is {xx: 123, yy: 456}
   *     }
   * })
   * ```
   */
  ComponentModel.prototype.getDefaultOption = function () {
    var ctor = this.constructor;
    // If using class declaration, it is different to travel super class
    // in legacy env and auto merge defaultOption. So if using class
    // declaration, defaultOption should be merged manually.
    if (!isExtendedClass(ctor)) {
      // When using ts class, defaultOption must be declared as static.
      return ctor.defaultOption;
    }
    // FIXME: remove this approach?
    var fields = Component_inner(this);
    if (!fields.defaultOption) {
      var optList = [];
      var clz = ctor;
      while (clz) {
        var opt = clz.prototype.defaultOption;
        opt && optList.push(opt);
        clz = clz.superClass;
      }
      var defaultOption = {};
      for (var i = optList.length - 1; i >= 0; i--) {
        defaultOption = util["merge"](defaultOption, optList[i], true);
      }
      fields.defaultOption = defaultOption;
    }
    return fields.defaultOption;
  };
  /**
   * Notice: always force to input param `useDefault` in case that forget to consider it.
   * The same behavior as `modelUtil.parseFinder`.
   *
   * @param useDefault In many cases like series refer axis and axis refer grid,
   *        If axis index / axis id not specified, use the first target as default.
   *        In other cases like dataZoom refer axis, if not specified, measn no refer.
   */
  ComponentModel.prototype.getReferringComponents = function (mainType, opt) {
    var indexKey = mainType + 'Index';
    var idKey = mainType + 'Id';
    return queryReferringComponents(this.ecModel, mainType, {
      index: this.get(indexKey, true),
      id: this.get(idKey, true)
    }, opt);
  };
  ComponentModel.prototype.getBoxLayoutParams = function () {
    // Consider itself having box layout configs.
    var boxLayoutModel = this;
    return {
      left: boxLayoutModel.get('left'),
      top: boxLayoutModel.get('top'),
      right: boxLayoutModel.get('right'),
      bottom: boxLayoutModel.get('bottom'),
      width: boxLayoutModel.get('width'),
      height: boxLayoutModel.get('height')
    };
  };
  /**
   * Get key for zlevel.
   * If developers don't configure zlevel. We will assign zlevel to series based on the key.
   * For example, lines with trail effect and progressive series will in an individual zlevel.
   */
  ComponentModel.prototype.getZLevelKey = function () {
    return '';
  };
  ComponentModel.prototype.setZLevel = function (zlevel) {
    this.option.zlevel = zlevel;
  };
  ComponentModel.protoInitialize = function () {
    var proto = ComponentModel.prototype;
    proto.type = 'component';
    proto.id = '';
    proto.name = '';
    proto.mainType = '';
    proto.subType = '';
    proto.componentIndex = 0;
  }();
  return ComponentModel;
}(model_Model);
mountExtend(Component_ComponentModel, model_Model);
enableClassManagement(Component_ComponentModel);
enableSubTypeDefaulter(Component_ComponentModel);
enableTopologicalTravel(Component_ComponentModel, getDependencies);
function getDependencies(componentType) {
  var deps = [];
  util["each"](Component_ComponentModel.getClassesByMainType(componentType), function (clz) {
    deps = deps.concat(clz.dependencies || clz.prototype.dependencies || []);
  });
  // Ensure main type.
  deps = util["map"](deps, function (type) {
    return parseClassType(type).main;
  });
  // Hack dataset for convenience.
  if (componentType !== 'dataset' && util["indexOf"](deps, 'dataset') <= 0) {
    deps.unshift('dataset');
  }
  return deps;
}
/* harmony default export */ var Component = (Component_ComponentModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/globalDefault.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var globalDefault_platform = '';
// Navigator not exists in node
if (typeof navigator !== 'undefined') {
  /* global navigator */
  globalDefault_platform = navigator.platform || '';
}
var decalColor = 'rgba(0, 0, 0, 0.2)';
/* harmony default export */ var globalDefault = ({
  darkMode: 'auto',
  // backgroundColor: 'rgba(0,0,0,0)',
  colorBy: 'series',
  color: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],
  gradientColor: ['#f6efa6', '#d88273', '#bf444c'],
  aria: {
    decal: {
      decals: [{
        color: decalColor,
        dashArrayX: [1, 0],
        dashArrayY: [2, 5],
        symbolSize: 1,
        rotation: Math.PI / 6
      }, {
        color: decalColor,
        symbol: 'circle',
        dashArrayX: [[8, 8], [0, 8, 8, 0]],
        dashArrayY: [6, 0],
        symbolSize: 0.8
      }, {
        color: decalColor,
        dashArrayX: [1, 0],
        dashArrayY: [4, 3],
        rotation: -Math.PI / 4
      }, {
        color: decalColor,
        dashArrayX: [[6, 6], [0, 6, 6, 0]],
        dashArrayY: [6, 0]
      }, {
        color: decalColor,
        dashArrayX: [[1, 0], [1, 6]],
        dashArrayY: [1, 0, 6, 0],
        rotation: Math.PI / 4
      }, {
        color: decalColor,
        symbol: 'triangle',
        dashArrayX: [[9, 9], [0, 9, 9, 0]],
        dashArrayY: [7, 2],
        symbolSize: 0.75
      }]
    }
  },
  // If xAxis and yAxis declared, grid is created by default.
  // grid: {},
  textStyle: {
    // color: '#000',
    // decoration: 'none',
    // PENDING
    fontFamily: globalDefault_platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',
    // fontFamily: 'Arial, Verdana, sans-serif',
    fontSize: 12,
    fontStyle: 'normal',
    fontWeight: 'normal'
  },
  // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
  // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
  // Default is source-over
  blendMode: null,
  stateAnimation: {
    duration: 300,
    easing: 'cubicOut'
  },
  animation: 'auto',
  animationDuration: 1000,
  animationDurationUpdate: 500,
  animationEasing: 'cubicInOut',
  animationEasingUpdate: 'cubicInOut',
  animationThreshold: 2000,
  // Configuration for progressive/incremental rendering
  progressiveThreshold: 3000,
  progressive: 400,
  // Threshold of if use single hover layer to optimize.
  // It is recommended that `hoverLayerThreshold` is equivalent to or less than
  // `progressiveThreshold`, otherwise hover will cause restart of progressive,
  // which is unexpected.
  // see example <echarts/test/heatmap-large.html>.
  hoverLayerThreshold: 3000,
  // See: module:echarts/scale/Time
  useUTC: false
});
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/types.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

;
;
;
var VISUAL_DIMENSIONS = Object(util["createHashMap"])(['tooltip', 'label', 'itemName', 'itemId', 'itemGroupId', 'itemChildGroupId', 'seriesName']);
var SOURCE_FORMAT_ORIGINAL = 'original';
var SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows';
var SOURCE_FORMAT_OBJECT_ROWS = 'objectRows';
var SOURCE_FORMAT_KEYED_COLUMNS = 'keyedColumns';
var SOURCE_FORMAT_TYPED_ARRAY = 'typedArray';
var SOURCE_FORMAT_UNKNOWN = 'unknown';
var SERIES_LAYOUT_BY_COLUMN = 'column';
var SERIES_LAYOUT_BY_ROW = 'row';
;
;
;
;
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/sourceHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



// The result of `guessOrdinal`.
var BE_ORDINAL = {
  Must: 1,
  Might: 2,
  Not: 3 // Other cases
};
var innerGlobalModel = makeInner();
/**
 * MUST be called before mergeOption of all series.
 */
function resetSourceDefaulter(ecModel) {
  // `datasetMap` is used to make default encode.
  innerGlobalModel(ecModel).datasetMap = Object(util["createHashMap"])();
}
/**
 * [The strategy of the arrengment of data dimensions for dataset]:
 * "value way": all axes are non-category axes. So series one by one take
 *     several (the number is coordSysDims.length) dimensions from dataset.
 *     The result of data arrengment of data dimensions like:
 *     | ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y |
 * "category way": at least one axis is category axis. So the the first data
 *     dimension is always mapped to the first category axis and shared by
 *     all of the series. The other data dimensions are taken by series like
 *     "value way" does.
 *     The result of data arrengment of data dimensions like:
 *     | ser_shared_x | ser0_y | ser1_y | ser2_y |
 *
 * @return encode Never be `null/undefined`.
 */
function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {
  var encode = {};
  var datasetModel = querySeriesUpstreamDatasetModel(seriesModel);
  // Currently only make default when using dataset, util more reqirements occur.
  if (!datasetModel || !coordDimensions) {
    return encode;
  }
  var encodeItemName = [];
  var encodeSeriesName = [];
  var ecModel = seriesModel.ecModel;
  var datasetMap = innerGlobalModel(ecModel).datasetMap;
  var key = datasetModel.uid + '_' + source.seriesLayoutBy;
  var baseCategoryDimIndex;
  var categoryWayValueDimStart;
  coordDimensions = coordDimensions.slice();
  Object(util["each"])(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {
    var coordDimInfo = Object(util["isObject"])(coordDimInfoLoose) ? coordDimInfoLoose : coordDimensions[coordDimIdx] = {
      name: coordDimInfoLoose
    };
    if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) {
      baseCategoryDimIndex = coordDimIdx;
      categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo);
    }
    encode[coordDimInfo.name] = [];
  });
  var datasetRecord = datasetMap.get(key) || datasetMap.set(key, {
    categoryWayDim: categoryWayValueDimStart,
    valueWayDim: 0
  });
  // TODO
  // Auto detect first time axis and do arrangement.
  Object(util["each"])(coordDimensions, function (coordDimInfo, coordDimIdx) {
    var coordDimName = coordDimInfo.name;
    var count = getDataDimCountOnCoordDim(coordDimInfo);
    // In value way.
    if (baseCategoryDimIndex == null) {
      var start = datasetRecord.valueWayDim;
      pushDim(encode[coordDimName], start, count);
      pushDim(encodeSeriesName, start, count);
      datasetRecord.valueWayDim += count;
      // ??? TODO give a better default series name rule?
      // especially when encode x y specified.
      // consider: when multiple series share one dimension
      // category axis, series name should better use
      // the other dimension name. On the other hand, use
      // both dimensions name.
    }
    // In category way, the first category axis.
    else if (baseCategoryDimIndex === coordDimIdx) {
      pushDim(encode[coordDimName], 0, count);
      pushDim(encodeItemName, 0, count);
    }
    // In category way, the other axis.
    else {
      var start = datasetRecord.categoryWayDim;
      pushDim(encode[coordDimName], start, count);
      pushDim(encodeSeriesName, start, count);
      datasetRecord.categoryWayDim += count;
    }
  });
  function pushDim(dimIdxArr, idxFrom, idxCount) {
    for (var i = 0; i < idxCount; i++) {
      dimIdxArr.push(idxFrom + i);
    }
  }
  function getDataDimCountOnCoordDim(coordDimInfo) {
    var dimsDef = coordDimInfo.dimsDef;
    return dimsDef ? dimsDef.length : 1;
  }
  encodeItemName.length && (encode.itemName = encodeItemName);
  encodeSeriesName.length && (encode.seriesName = encodeSeriesName);
  return encode;
}
/**
 * Work for data like [{name: ..., value: ...}, ...].
 *
 * @return encode Never be `null/undefined`.
 */
function makeSeriesEncodeForNameBased(seriesModel, source, dimCount) {
  var encode = {};
  var datasetModel = querySeriesUpstreamDatasetModel(seriesModel);
  // Currently only make default when using dataset, util more reqirements occur.
  if (!datasetModel) {
    return encode;
  }
  var sourceFormat = source.sourceFormat;
  var dimensionsDefine = source.dimensionsDefine;
  var potentialNameDimIndex;
  if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {
    Object(util["each"])(dimensionsDefine, function (dim, idx) {
      if ((Object(util["isObject"])(dim) ? dim.name : dim) === 'name') {
        potentialNameDimIndex = idx;
      }
    });
  }
  var idxResult = function () {
    var idxRes0 = {};
    var idxRes1 = {};
    var guessRecords = [];
    // 5 is an experience value.
    for (var i = 0, len = Math.min(5, dimCount); i < len; i++) {
      var guessResult = doGuessOrdinal(source.data, sourceFormat, source.seriesLayoutBy, dimensionsDefine, source.startIndex, i);
      guessRecords.push(guessResult);
      var isPureNumber = guessResult === BE_ORDINAL.Not;
      // [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim,
      // and then find a name dim with the priority:
      // "BE_ORDINAL.Might|BE_ORDINAL.Must" > "other dim" > "the value dim itself".
      if (isPureNumber && idxRes0.v == null && i !== potentialNameDimIndex) {
        idxRes0.v = i;
      }
      if (idxRes0.n == null || idxRes0.n === idxRes0.v || !isPureNumber && guessRecords[idxRes0.n] === BE_ORDINAL.Not) {
        idxRes0.n = i;
      }
      if (fulfilled(idxRes0) && guessRecords[idxRes0.n] !== BE_ORDINAL.Not) {
        return idxRes0;
      }
      // [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not),
      // find the first BE_ORDINAL.Might as the value dim,
      // and then find a name dim with the priority:
      // "other dim" > "the value dim itself".
      // That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be
      // treated as number.
      if (!isPureNumber) {
        if (guessResult === BE_ORDINAL.Might && idxRes1.v == null && i !== potentialNameDimIndex) {
          idxRes1.v = i;
        }
        if (idxRes1.n == null || idxRes1.n === idxRes1.v) {
          idxRes1.n = i;
        }
      }
    }
    function fulfilled(idxResult) {
      return idxResult.v != null && idxResult.n != null;
    }
    return fulfilled(idxRes0) ? idxRes0 : fulfilled(idxRes1) ? idxRes1 : null;
  }();
  if (idxResult) {
    encode.value = [idxResult.v];
    // `potentialNameDimIndex` has highest priority.
    var nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n;
    // By default, label uses itemName in charts.
    // So we don't set encodeLabel here.
    encode.itemName = [nameDimIndex];
    encode.seriesName = [nameDimIndex];
  }
  return encode;
}
/**
 * @return If return null/undefined, indicate that should not use datasetModel.
 */
function querySeriesUpstreamDatasetModel(seriesModel) {
  // Caution: consider the scenario:
  // A dataset is declared and a series is not expected to use the dataset,
  // and at the beginning `setOption({series: { noData })` (just prepare other
  // option but no data), then `setOption({series: {data: [...]}); In this case,
  // the user should set an empty array to avoid that dataset is used by default.
  var thisData = seriesModel.get('data', true);
  if (!thisData) {
    return queryReferringComponents(seriesModel.ecModel, 'dataset', {
      index: seriesModel.get('datasetIndex', true),
      id: seriesModel.get('datasetId', true)
    }, SINGLE_REFERRING).models[0];
  }
}
/**
 * @return Always return an array event empty.
 */
function queryDatasetUpstreamDatasetModels(datasetModel) {
  // Only these attributes declared, we by default reference to `datasetIndex: 0`.
  // Otherwise, no reference.
  if (!datasetModel.get('transform', true) && !datasetModel.get('fromTransformResult', true)) {
    return [];
  }
  return queryReferringComponents(datasetModel.ecModel, 'dataset', {
    index: datasetModel.get('fromDatasetIndex', true),
    id: datasetModel.get('fromDatasetId', true)
  }, SINGLE_REFERRING).models;
}
/**
 * The rule should not be complex, otherwise user might not
 * be able to known where the data is wrong.
 * The code is ugly, but how to make it neat?
 */
function guessOrdinal(source, dimIndex) {
  return doGuessOrdinal(source.data, source.sourceFormat, source.seriesLayoutBy, source.dimensionsDefine, source.startIndex, dimIndex);
}
// dimIndex may be overflow source data.
// return {BE_ORDINAL}
function doGuessOrdinal(data, sourceFormat, seriesLayoutBy, dimensionsDefine, startIndex, dimIndex) {
  var result;
  // Experience value.
  var maxLoop = 5;
  if (Object(util["isTypedArray"])(data)) {
    return BE_ORDINAL.Not;
  }
  // When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine
  // always exists in source.
  var dimName;
  var dimType;
  if (dimensionsDefine) {
    var dimDefItem = dimensionsDefine[dimIndex];
    if (Object(util["isObject"])(dimDefItem)) {
      dimName = dimDefItem.name;
      dimType = dimDefItem.type;
    } else if (Object(util["isString"])(dimDefItem)) {
      dimName = dimDefItem;
    }
  }
  if (dimType != null) {
    return dimType === 'ordinal' ? BE_ORDINAL.Must : BE_ORDINAL.Not;
  }
  if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {
    var dataArrayRows = data;
    if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {
      var sample = dataArrayRows[dimIndex];
      for (var i = 0; i < (sample || []).length && i < maxLoop; i++) {
        if ((result = detectValue(sample[startIndex + i])) != null) {
          return result;
        }
      }
    } else {
      for (var i = 0; i < dataArrayRows.length && i < maxLoop; i++) {
        var row = dataArrayRows[startIndex + i];
        if (row && (result = detectValue(row[dimIndex])) != null) {
          return result;
        }
      }
    }
  } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {
    var dataObjectRows = data;
    if (!dimName) {
      return BE_ORDINAL.Not;
    }
    for (var i = 0; i < dataObjectRows.length && i < maxLoop; i++) {
      var item = dataObjectRows[i];
      if (item && (result = detectValue(item[dimName])) != null) {
        return result;
      }
    }
  } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {
    var dataKeyedColumns = data;
    if (!dimName) {
      return BE_ORDINAL.Not;
    }
    var sample = dataKeyedColumns[dimName];
    if (!sample || Object(util["isTypedArray"])(sample)) {
      return BE_ORDINAL.Not;
    }
    for (var i = 0; i < sample.length && i < maxLoop; i++) {
      if ((result = detectValue(sample[i])) != null) {
        return result;
      }
    }
  } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {
    var dataOriginal = data;
    for (var i = 0; i < dataOriginal.length && i < maxLoop; i++) {
      var item = dataOriginal[i];
      var val = getDataItemValue(item);
      if (!Object(util["isArray"])(val)) {
        return BE_ORDINAL.Not;
      }
      if ((result = detectValue(val[dimIndex])) != null) {
        return result;
      }
    }
  }
  function detectValue(val) {
    var beStr = Object(util["isString"])(val);
    // Consider usage convenience, '1', '2' will be treated as "number".
    // `Number('')` (or any whitespace) is `0`.
    if (val != null && Number.isFinite(Number(val)) && val !== '') {
      return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not;
    } else if (beStr && val !== '-') {
      return BE_ORDINAL.Must;
    }
  }
  return BE_ORDINAL.Not;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/internalComponentCreator.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var internalOptionCreatorMap = Object(util["createHashMap"])();
function registerInternalOptionCreator(mainType, creator) {
  Object(util["assert"])(internalOptionCreatorMap.get(mainType) == null && creator);
  internalOptionCreatorMap.set(mainType, creator);
}
function concatInternalOptions(ecModel, mainType, newCmptOptionList) {
  var internalOptionCreator = internalOptionCreatorMap.get(mainType);
  if (!internalOptionCreator) {
    return newCmptOptionList;
  }
  var internalOptions = internalOptionCreator(ecModel);
  if (!internalOptions) {
    return newCmptOptionList;
  }
  if (false) { var i; }
  return newCmptOptionList.concat(internalOptions);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/mixin/palette.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var innerColor = makeInner();
var innerDecal = makeInner();
var palette_PaletteMixin = /** @class */function () {
  function PaletteMixin() {}
  PaletteMixin.prototype.getColorFromPalette = function (name, scope, requestNum) {
    var defaultPalette = normalizeToArray(this.get('color', true));
    var layeredPalette = this.get('colorLayer', true);
    return getFromPalette(this, innerColor, defaultPalette, layeredPalette, name, scope, requestNum);
  };
  PaletteMixin.prototype.clearColorPalette = function () {
    clearPalette(this, innerColor);
  };
  return PaletteMixin;
}();
function getDecalFromPalette(ecModel, name, scope, requestNum) {
  var defaultDecals = normalizeToArray(ecModel.get(['aria', 'decal', 'decals']));
  return getFromPalette(ecModel, innerDecal, defaultDecals, null, name, scope, requestNum);
}
function getNearestPalette(palettes, requestColorNum) {
  var paletteNum = palettes.length;
  // TODO palettes must be in order
  for (var i = 0; i < paletteNum; i++) {
    if (palettes[i].length > requestColorNum) {
      return palettes[i];
    }
  }
  return palettes[paletteNum - 1];
}
/**
 * @param name MUST NOT be null/undefined. Otherwise call this function
 *             twise with the same parameters will get different result.
 * @param scope default this.
 * @return Can be null/undefined
 */
function getFromPalette(that, inner, defaultPalette, layeredPalette, name, scope, requestNum) {
  scope = scope || that;
  var scopeFields = inner(scope);
  var paletteIdx = scopeFields.paletteIdx || 0;
  var paletteNameMap = scopeFields.paletteNameMap = scopeFields.paletteNameMap || {};
  // Use `hasOwnProperty` to avoid conflict with Object.prototype.
  if (paletteNameMap.hasOwnProperty(name)) {
    return paletteNameMap[name];
  }
  var palette = requestNum == null || !layeredPalette ? defaultPalette : getNearestPalette(layeredPalette, requestNum);
  // In case can't find in layered color palette.
  palette = palette || defaultPalette;
  if (!palette || !palette.length) {
    return;
  }
  var pickedPaletteItem = palette[paletteIdx];
  if (name) {
    paletteNameMap[name] = pickedPaletteItem;
  }
  scopeFields.paletteIdx = (paletteIdx + 1) % palette.length;
  return pickedPaletteItem;
}
function clearPalette(that, inner) {
  inner(that).paletteIdx = 0;
  inner(that).paletteNameMap = {};
}

// CONCATENATED MODULE: ./node_modules/echarts/lib/util/log.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var ECHARTS_PREFIX = '[ECharts] ';
var storedLogs = {};
var hasConsole = typeof console !== 'undefined'
// eslint-disable-next-line
&& console.warn && console.log;
function outputLog(type, str, onlyOnce) {
  if (hasConsole) {
    if (onlyOnce) {
      if (storedLogs[str]) {
        return;
      }
      storedLogs[str] = true;
    }
    // eslint-disable-next-line
    console[type](ECHARTS_PREFIX + str);
  }
}
function log(str, onlyOnce) {
  outputLog('log', str, onlyOnce);
}
function log_warn(str, onlyOnce) {
  outputLog('warn', str, onlyOnce);
}
function error(str, onlyOnce) {
  outputLog('error', str, onlyOnce);
}
function deprecateLog(str) {
  if (false) {}
}
function deprecateReplaceLog(oldOpt, newOpt, scope) {
  if (false) {}
}
/**
 * If in __DEV__ environment, get console printable message for users hint.
 * Parameters are separated by ' '.
 * @usage
 * makePrintable('This is an error on', someVar, someObj);
 *
 * @param hintInfo anything about the current execution context to hint users.
 * @throws Error
 */
function makePrintable() {
  var hintInfo = [];
  for (var _i = 0; _i < arguments.length; _i++) {
    hintInfo[_i] = arguments[_i];
  }
  var msg = '';
  if (false) { var makePrintableStringIfPossible_1; }
  return msg;
}
/**
 * @throws Error
 */
function throwError(msg) {
  throw new Error(msg);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/Global.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * Caution: If the mechanism should be changed some day, these cases
 * should be considered:
 *
 * (1) In `merge option` mode, if using the same option to call `setOption`
 * many times, the result should be the same (try our best to ensure that).
 * (2) In `merge option` mode, if a component has no id/name specified, it
 * will be merged by index, and the result sequence of the components is
 * consistent to the original sequence.
 * (3) In `replaceMerge` mode, keep the result sequence of the components is
 * consistent to the original sequence, even though there might result in "hole".
 * (4) `reset` feature (in toolbox). Find detailed info in comments about
 * `mergeOption` in module:echarts/model/OptionManager.
 */









// -----------------------
// Internal method names:
// -----------------------
var reCreateSeriesIndices;
var assertSeriesInitialized;
var initBase;
var OPTION_INNER_KEY = '\0_ec_inner';
var OPTION_INNER_VALUE = 1;
var BUITIN_COMPONENTS_MAP = {
  grid: 'GridComponent',
  polar: 'PolarComponent',
  geo: 'GeoComponent',
  singleAxis: 'SingleAxisComponent',
  parallel: 'ParallelComponent',
  calendar: 'CalendarComponent',
  graphic: 'GraphicComponent',
  toolbox: 'ToolboxComponent',
  tooltip: 'TooltipComponent',
  axisPointer: 'AxisPointerComponent',
  brush: 'BrushComponent',
  title: 'TitleComponent',
  timeline: 'TimelineComponent',
  markPoint: 'MarkPointComponent',
  markLine: 'MarkLineComponent',
  markArea: 'MarkAreaComponent',
  legend: 'LegendComponent',
  dataZoom: 'DataZoomComponent',
  visualMap: 'VisualMapComponent',
  // aria: 'AriaComponent',
  // dataset: 'DatasetComponent',
  // Dependencies
  xAxis: 'GridComponent',
  yAxis: 'GridComponent',
  angleAxis: 'PolarComponent',
  radiusAxis: 'PolarComponent'
};
var BUILTIN_CHARTS_MAP = {
  line: 'LineChart',
  bar: 'BarChart',
  pie: 'PieChart',
  scatter: 'ScatterChart',
  radar: 'RadarChart',
  map: 'MapChart',
  tree: 'TreeChart',
  treemap: 'TreemapChart',
  graph: 'GraphChart',
  gauge: 'GaugeChart',
  funnel: 'FunnelChart',
  parallel: 'ParallelChart',
  sankey: 'SankeyChart',
  boxplot: 'BoxplotChart',
  candlestick: 'CandlestickChart',
  effectScatter: 'EffectScatterChart',
  lines: 'LinesChart',
  heatmap: 'HeatmapChart',
  pictorialBar: 'PictorialBarChart',
  themeRiver: 'ThemeRiverChart',
  sunburst: 'SunburstChart',
  custom: 'CustomChart'
};
var componetsMissingLogPrinted = {};
function checkMissingComponents(option) {
  Object(util["each"])(option, function (componentOption, mainType) {
    if (!Component.hasClass(mainType)) {
      var componentImportName = BUITIN_COMPONENTS_MAP[mainType];
      if (componentImportName && !componetsMissingLogPrinted[componentImportName]) {
        error("Component " + mainType + " is used but not imported.\nimport { " + componentImportName + " } from 'echarts/components';\necharts.use([" + componentImportName + "]);");
        componetsMissingLogPrinted[componentImportName] = true;
      }
    }
  });
}
var Global_GlobalModel = /** @class */function (_super) {
  __extends(GlobalModel, _super);
  function GlobalModel() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  GlobalModel.prototype.init = function (option, parentModel, ecModel, theme, locale, optionManager) {
    theme = theme || {};
    this.option = null; // Mark as not initialized.
    this._theme = new model_Model(theme);
    this._locale = new model_Model(locale);
    this._optionManager = optionManager;
  };
  GlobalModel.prototype.setOption = function (option, opts, optionPreprocessorFuncs) {
    if (false) {}
    var innerOpt = normalizeSetOptionInput(opts);
    this._optionManager.setOption(option, optionPreprocessorFuncs, innerOpt);
    this._resetOption(null, innerOpt);
  };
  /**
   * @param type null/undefined: reset all.
   *        'recreate': force recreate all.
   *        'timeline': only reset timeline option
   *        'media': only reset media query option
   * @return Whether option changed.
   */
  GlobalModel.prototype.resetOption = function (type, opt) {
    return this._resetOption(type, normalizeSetOptionInput(opt));
  };
  GlobalModel.prototype._resetOption = function (type, opt) {
    var optionChanged = false;
    var optionManager = this._optionManager;
    if (!type || type === 'recreate') {
      var baseOption = optionManager.mountOption(type === 'recreate');
      if (false) {}
      if (!this.option || type === 'recreate') {
        initBase(this, baseOption);
      } else {
        this.restoreData();
        this._mergeOption(baseOption, opt);
      }
      optionChanged = true;
    }
    if (type === 'timeline' || type === 'media') {
      this.restoreData();
    }
    // By design, if `setOption(option2)` at the second time, and `option2` is a `ECUnitOption`,
    // it should better not have the same props with `MediaUnit['option']`.
    // Because either `option2` or `MediaUnit['option']` will be always merged to "current option"
    // rather than original "baseOption". If they both override a prop, the result might be
    // unexpected when media state changed after `setOption` called.
    // If we really need to modify a props in each `MediaUnit['option']`, use the full version
    // (`{baseOption, media}`) in `setOption`.
    // For `timeline`, the case is the same.
    if (!type || type === 'recreate' || type === 'timeline') {
      var timelineOption = optionManager.getTimelineOption(this);
      if (timelineOption) {
        optionChanged = true;
        this._mergeOption(timelineOption, opt);
      }
    }
    if (!type || type === 'recreate' || type === 'media') {
      var mediaOptions = optionManager.getMediaOption(this);
      if (mediaOptions.length) {
        Object(util["each"])(mediaOptions, function (mediaOption) {
          optionChanged = true;
          this._mergeOption(mediaOption, opt);
        }, this);
      }
    }
    return optionChanged;
  };
  GlobalModel.prototype.mergeOption = function (option) {
    this._mergeOption(option, null);
  };
  GlobalModel.prototype._mergeOption = function (newOption, opt) {
    var option = this.option;
    var componentsMap = this._componentsMap;
    var componentsCount = this._componentsCount;
    var newCmptTypes = [];
    var newCmptTypeMap = Object(util["createHashMap"])();
    var replaceMergeMainTypeMap = opt && opt.replaceMergeMainTypeMap;
    resetSourceDefaulter(this);
    // If no component class, merge directly.
    // For example: color, animaiton options, etc.
    Object(util["each"])(newOption, function (componentOption, mainType) {
      if (componentOption == null) {
        return;
      }
      if (!Component.hasClass(mainType)) {
        // globalSettingTask.dirty();
        option[mainType] = option[mainType] == null ? Object(util["clone"])(componentOption) : Object(util["merge"])(option[mainType], componentOption, true);
      } else if (mainType) {
        newCmptTypes.push(mainType);
        newCmptTypeMap.set(mainType, true);
      }
    });
    if (replaceMergeMainTypeMap) {
      // If there is a mainType `xxx` in `replaceMerge` but not declared in option,
      // we trade it as it is declared in option as `{xxx: []}`. Because:
      // (1) for normal merge, `{xxx: null/undefined}` are the same meaning as `{xxx: []}`.
      // (2) some preprocessor may convert some of `{xxx: null/undefined}` to `{xxx: []}`.
      replaceMergeMainTypeMap.each(function (val, mainTypeInReplaceMerge) {
        if (Component.hasClass(mainTypeInReplaceMerge) && !newCmptTypeMap.get(mainTypeInReplaceMerge)) {
          newCmptTypes.push(mainTypeInReplaceMerge);
          newCmptTypeMap.set(mainTypeInReplaceMerge, true);
        }
      });
    }
    Component.topologicalTravel(newCmptTypes, Component.getAllClassMainTypes(), visitComponent, this);
    function visitComponent(mainType) {
      var newCmptOptionList = concatInternalOptions(this, mainType, normalizeToArray(newOption[mainType]));
      var oldCmptList = componentsMap.get(mainType);
      var mergeMode =
      // `!oldCmptList` means init. See the comment in `mappingToExists`
      !oldCmptList ? 'replaceAll' : replaceMergeMainTypeMap && replaceMergeMainTypeMap.get(mainType) ? 'replaceMerge' : 'normalMerge';
      var mappingResult = mappingToExists(oldCmptList, newCmptOptionList, mergeMode);
      // Set mainType and complete subType.
      setComponentTypeToKeyInfo(mappingResult, mainType, Component);
      // Empty it before the travel, in order to prevent `this._componentsMap`
      // from being used in the `init`/`mergeOption`/`optionUpdated` of some
      // components, which is probably incorrect logic.
      option[mainType] = null;
      componentsMap.set(mainType, null);
      componentsCount.set(mainType, 0);
      var optionsByMainType = [];
      var cmptsByMainType = [];
      var cmptsCountByMainType = 0;
      var tooltipExists;
      var tooltipWarningLogged;
      Object(util["each"])(mappingResult, function (resultItem, index) {
        var componentModel = resultItem.existing;
        var newCmptOption = resultItem.newOption;
        if (!newCmptOption) {
          if (componentModel) {
            // Consider where is no new option and should be merged using {},
            // see removeEdgeAndAdd in topologicalTravel and
            // ComponentModel.getAllClassMainTypes.
            componentModel.mergeOption({}, this);
            componentModel.optionUpdated({}, false);
          }
          // If no both `resultItem.exist` and `resultItem.option`,
          // either it is in `replaceMerge` and not matched by any id,
          // or it has been removed in previous `replaceMerge` and left a "hole" in this component index.
        } else {
          var isSeriesType = mainType === 'series';
          var ComponentModelClass = Component.getClass(mainType, resultItem.keyInfo.subType, !isSeriesType // Give a more detailed warn later if series don't exists
          );
          if (!ComponentModelClass) {
            if (false) { var seriesImportName, subType; }
            return;
          }
          // TODO Before multiple tooltips get supported, we do this check to avoid unexpected exception.
          if (mainType === 'tooltip') {
            if (tooltipExists) {
              if (false) {}
              return;
            }
            tooltipExists = true;
          }
          if (componentModel && componentModel.constructor === ComponentModelClass) {
            componentModel.name = resultItem.keyInfo.name;
            // componentModel.settingTask && componentModel.settingTask.dirty();
            componentModel.mergeOption(newCmptOption, this);
            componentModel.optionUpdated(newCmptOption, false);
          } else {
            // PENDING Global as parent ?
            var extraOpt = Object(util["extend"])({
              componentIndex: index
            }, resultItem.keyInfo);
            componentModel = new ComponentModelClass(newCmptOption, this, this, extraOpt);
            // Assign `keyInfo`
            Object(util["extend"])(componentModel, extraOpt);
            if (resultItem.brandNew) {
              componentModel.__requireNewView = true;
            }
            componentModel.init(newCmptOption, this, this);
            // Call optionUpdated after init.
            // newCmptOption has been used as componentModel.option
            // and may be merged with theme and default, so pass null
            // to avoid confusion.
            componentModel.optionUpdated(null, true);
          }
        }
        if (componentModel) {
          optionsByMainType.push(componentModel.option);
          cmptsByMainType.push(componentModel);
          cmptsCountByMainType++;
        } else {
          // Always do assign to avoid elided item in array.
          optionsByMainType.push(void 0);
          cmptsByMainType.push(void 0);
        }
      }, this);
      option[mainType] = optionsByMainType;
      componentsMap.set(mainType, cmptsByMainType);
      componentsCount.set(mainType, cmptsCountByMainType);
      // Backup series for filtering.
      if (mainType === 'series') {
        reCreateSeriesIndices(this);
      }
    }
    // If no series declared, ensure `_seriesIndices` initialized.
    if (!this._seriesIndices) {
      reCreateSeriesIndices(this);
    }
  };
  /**
   * Get option for output (cloned option and inner info removed)
   */
  GlobalModel.prototype.getOption = function () {
    var option = Object(util["clone"])(this.option);
    Object(util["each"])(option, function (optInMainType, mainType) {
      if (Component.hasClass(mainType)) {
        var opts = normalizeToArray(optInMainType);
        // Inner cmpts need to be removed.
        // Inner cmpts might not be at last since ec5.0, but still
        // compatible for users: if inner cmpt at last, splice the returned array.
        var realLen = opts.length;
        var metNonInner = false;
        for (var i = realLen - 1; i >= 0; i--) {
          // Remove options with inner id.
          if (opts[i] && !isComponentIdInternal(opts[i])) {
            metNonInner = true;
          } else {
            opts[i] = null;
            !metNonInner && realLen--;
          }
        }
        opts.length = realLen;
        option[mainType] = opts;
      }
    });
    delete option[OPTION_INNER_KEY];
    return option;
  };
  GlobalModel.prototype.getTheme = function () {
    return this._theme;
  };
  GlobalModel.prototype.getLocaleModel = function () {
    return this._locale;
  };
  GlobalModel.prototype.setUpdatePayload = function (payload) {
    this._payload = payload;
  };
  GlobalModel.prototype.getUpdatePayload = function () {
    return this._payload;
  };
  /**
   * @param idx If not specified, return the first one.
   */
  GlobalModel.prototype.getComponent = function (mainType, idx) {
    var list = this._componentsMap.get(mainType);
    if (list) {
      var cmpt = list[idx || 0];
      if (cmpt) {
        return cmpt;
      } else if (idx == null) {
        for (var i = 0; i < list.length; i++) {
          if (list[i]) {
            return list[i];
          }
        }
      }
    }
  };
  /**
   * @return Never be null/undefined.
   */
  GlobalModel.prototype.queryComponents = function (condition) {
    var mainType = condition.mainType;
    if (!mainType) {
      return [];
    }
    var index = condition.index;
    var id = condition.id;
    var name = condition.name;
    var cmpts = this._componentsMap.get(mainType);
    if (!cmpts || !cmpts.length) {
      return [];
    }
    var result;
    if (index != null) {
      result = [];
      Object(util["each"])(normalizeToArray(index), function (idx) {
        cmpts[idx] && result.push(cmpts[idx]);
      });
    } else if (id != null) {
      result = queryByIdOrName('id', id, cmpts);
    } else if (name != null) {
      result = queryByIdOrName('name', name, cmpts);
    } else {
      // Return all non-empty components in that mainType
      result = Object(util["filter"])(cmpts, function (cmpt) {
        return !!cmpt;
      });
    }
    return filterBySubType(result, condition);
  };
  /**
   * The interface is different from queryComponents,
   * which is convenient for inner usage.
   *
   * @usage
   * let result = findComponents(
   *     {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}
   * );
   * let result = findComponents(
   *     {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}
   * );
   * let result = findComponents(
   *     {mainType: 'series',
   *     filter: function (model, index) {...}}
   * );
   * // result like [component0, componnet1, ...]
   */
  GlobalModel.prototype.findComponents = function (condition) {
    var query = condition.query;
    var mainType = condition.mainType;
    var queryCond = getQueryCond(query);
    var result = queryCond ? this.queryComponents(queryCond)
    // Retrieve all non-empty components.
    : Object(util["filter"])(this._componentsMap.get(mainType), function (cmpt) {
      return !!cmpt;
    });
    return doFilter(filterBySubType(result, condition));
    function getQueryCond(q) {
      var indexAttr = mainType + 'Index';
      var idAttr = mainType + 'Id';
      var nameAttr = mainType + 'Name';
      return q && (q[indexAttr] != null || q[idAttr] != null || q[nameAttr] != null) ? {
        mainType: mainType,
        // subType will be filtered finally.
        index: q[indexAttr],
        id: q[idAttr],
        name: q[nameAttr]
      } : null;
    }
    function doFilter(res) {
      return condition.filter ? Object(util["filter"])(res, condition.filter) : res;
    }
  };
  GlobalModel.prototype.eachComponent = function (mainType, cb, context) {
    var componentsMap = this._componentsMap;
    if (Object(util["isFunction"])(mainType)) {
      var ctxForAll_1 = cb;
      var cbForAll_1 = mainType;
      componentsMap.each(function (cmpts, componentType) {
        for (var i = 0; cmpts && i < cmpts.length; i++) {
          var cmpt = cmpts[i];
          cmpt && cbForAll_1.call(ctxForAll_1, componentType, cmpt, cmpt.componentIndex);
        }
      });
    } else {
      var cmpts = Object(util["isString"])(mainType) ? componentsMap.get(mainType) : Object(util["isObject"])(mainType) ? this.findComponents(mainType) : null;
      for (var i = 0; cmpts && i < cmpts.length; i++) {
        var cmpt = cmpts[i];
        cmpt && cb.call(context, cmpt, cmpt.componentIndex);
      }
    }
  };
  /**
   * Get series list before filtered by name.
   */
  GlobalModel.prototype.getSeriesByName = function (name) {
    var nameStr = convertOptionIdName(name, null);
    return Object(util["filter"])(this._componentsMap.get('series'), function (oneSeries) {
      return !!oneSeries && nameStr != null && oneSeries.name === nameStr;
    });
  };
  /**
   * Get series list before filtered by index.
   */
  GlobalModel.prototype.getSeriesByIndex = function (seriesIndex) {
    return this._componentsMap.get('series')[seriesIndex];
  };
  /**
   * Get series list before filtered by type.
   * FIXME: rename to getRawSeriesByType?
   */
  GlobalModel.prototype.getSeriesByType = function (subType) {
    return Object(util["filter"])(this._componentsMap.get('series'), function (oneSeries) {
      return !!oneSeries && oneSeries.subType === subType;
    });
  };
  /**
   * Get all series before filtered.
   */
  GlobalModel.prototype.getSeries = function () {
    return Object(util["filter"])(this._componentsMap.get('series'), function (oneSeries) {
      return !!oneSeries;
    });
  };
  /**
   * Count series before filtered.
   */
  GlobalModel.prototype.getSeriesCount = function () {
    return this._componentsCount.get('series');
  };
  /**
   * After filtering, series may be different
   * from raw series.
   */
  GlobalModel.prototype.eachSeries = function (cb, context) {
    assertSeriesInitialized(this);
    Object(util["each"])(this._seriesIndices, function (rawSeriesIndex) {
      var series = this._componentsMap.get('series')[rawSeriesIndex];
      cb.call(context, series, rawSeriesIndex);
    }, this);
  };
  /**
   * Iterate raw series before filtered.
   *
   * @param {Function} cb
   * @param {*} context
   */
  GlobalModel.prototype.eachRawSeries = function (cb, context) {
    Object(util["each"])(this._componentsMap.get('series'), function (series) {
      series && cb.call(context, series, series.componentIndex);
    });
  };
  /**
   * After filtering, series may be different.
   * from raw series.
   */
  GlobalModel.prototype.eachSeriesByType = function (subType, cb, context) {
    assertSeriesInitialized(this);
    Object(util["each"])(this._seriesIndices, function (rawSeriesIndex) {
      var series = this._componentsMap.get('series')[rawSeriesIndex];
      if (series.subType === subType) {
        cb.call(context, series, rawSeriesIndex);
      }
    }, this);
  };
  /**
   * Iterate raw series before filtered of given type.
   */
  GlobalModel.prototype.eachRawSeriesByType = function (subType, cb, context) {
    return Object(util["each"])(this.getSeriesByType(subType), cb, context);
  };
  GlobalModel.prototype.isSeriesFiltered = function (seriesModel) {
    assertSeriesInitialized(this);
    return this._seriesIndicesMap.get(seriesModel.componentIndex) == null;
  };
  GlobalModel.prototype.getCurrentSeriesIndices = function () {
    return (this._seriesIndices || []).slice();
  };
  GlobalModel.prototype.filterSeries = function (cb, context) {
    assertSeriesInitialized(this);
    var newSeriesIndices = [];
    Object(util["each"])(this._seriesIndices, function (seriesRawIdx) {
      var series = this._componentsMap.get('series')[seriesRawIdx];
      cb.call(context, series, seriesRawIdx) && newSeriesIndices.push(seriesRawIdx);
    }, this);
    this._seriesIndices = newSeriesIndices;
    this._seriesIndicesMap = Object(util["createHashMap"])(newSeriesIndices);
  };
  GlobalModel.prototype.restoreData = function (payload) {
    reCreateSeriesIndices(this);
    var componentsMap = this._componentsMap;
    var componentTypes = [];
    componentsMap.each(function (components, componentType) {
      if (Component.hasClass(componentType)) {
        componentTypes.push(componentType);
      }
    });
    Component.topologicalTravel(componentTypes, Component.getAllClassMainTypes(), function (componentType) {
      Object(util["each"])(componentsMap.get(componentType), function (component) {
        if (component && (componentType !== 'series' || !isNotTargetSeries(component, payload))) {
          component.restoreData();
        }
      });
    });
  };
  GlobalModel.internalField = function () {
    reCreateSeriesIndices = function (ecModel) {
      var seriesIndices = ecModel._seriesIndices = [];
      Object(util["each"])(ecModel._componentsMap.get('series'), function (series) {
        // series may have been removed by `replaceMerge`.
        series && seriesIndices.push(series.componentIndex);
      });
      ecModel._seriesIndicesMap = Object(util["createHashMap"])(seriesIndices);
    };
    assertSeriesInitialized = function (ecModel) {
      // Components that use _seriesIndices should depends on series component,
      // which make sure that their initialization is after series.
      if (false) {}
    };
    initBase = function (ecModel, baseOption) {
      // Using OPTION_INNER_KEY to mark that this option cannot be used outside,
      // i.e. `chart.setOption(chart.getModel().option);` is forbidden.
      ecModel.option = {};
      ecModel.option[OPTION_INNER_KEY] = OPTION_INNER_VALUE;
      // Init with series: [], in case of calling findSeries method
      // before series initialized.
      ecModel._componentsMap = Object(util["createHashMap"])({
        series: []
      });
      ecModel._componentsCount = Object(util["createHashMap"])();
      // If user spefied `option.aria`, aria will be enable. This detection should be
      // performed before theme and globalDefault merge.
      var airaOption = baseOption.aria;
      if (Object(util["isObject"])(airaOption) && airaOption.enabled == null) {
        airaOption.enabled = true;
      }
      mergeTheme(baseOption, ecModel._theme.option);
      // TODO Needs clone when merging to the unexisted property
      Object(util["merge"])(baseOption, globalDefault, false);
      ecModel._mergeOption(baseOption, null);
    };
  }();
  return GlobalModel;
}(model_Model);
function isNotTargetSeries(seriesModel, payload) {
  if (payload) {
    var index = payload.seriesIndex;
    var id = payload.seriesId;
    var name_1 = payload.seriesName;
    return index != null && seriesModel.componentIndex !== index || id != null && seriesModel.id !== id || name_1 != null && seriesModel.name !== name_1;
  }
}
function mergeTheme(option, theme) {
  // PENDING
  // NOT use `colorLayer` in theme if option has `color`
  var notMergeColorLayer = option.color && !option.colorLayer;
  Object(util["each"])(theme, function (themeItem, name) {
    if (name === 'colorLayer' && notMergeColorLayer) {
      return;
    }
    // If it is component model mainType, the model handles that merge later.
    // otherwise, merge them here.
    if (!Component.hasClass(name)) {
      if (typeof themeItem === 'object') {
        option[name] = !option[name] ? Object(util["clone"])(themeItem) : Object(util["merge"])(option[name], themeItem, false);
      } else {
        if (option[name] == null) {
          option[name] = themeItem;
        }
      }
    }
  });
}
function queryByIdOrName(attr, idOrName, cmpts) {
  // Here is a break from echarts4: string and number are
  // treated as equal.
  if (Object(util["isArray"])(idOrName)) {
    var keyMap_1 = Object(util["createHashMap"])();
    Object(util["each"])(idOrName, function (idOrNameItem) {
      if (idOrNameItem != null) {
        var idName = convertOptionIdName(idOrNameItem, null);
        idName != null && keyMap_1.set(idOrNameItem, true);
      }
    });
    return Object(util["filter"])(cmpts, function (cmpt) {
      return cmpt && keyMap_1.get(cmpt[attr]);
    });
  } else {
    var idName_1 = convertOptionIdName(idOrName, null);
    return Object(util["filter"])(cmpts, function (cmpt) {
      return cmpt && idName_1 != null && cmpt[attr] === idName_1;
    });
  }
}
function filterBySubType(components, condition) {
  // Using hasOwnProperty for restrict. Consider
  // subType is undefined in user payload.
  return condition.hasOwnProperty('subType') ? Object(util["filter"])(components, function (cmpt) {
    return cmpt && cmpt.subType === condition.subType;
  }) : components;
}
function normalizeSetOptionInput(opts) {
  var replaceMergeMainTypeMap = Object(util["createHashMap"])();
  opts && Object(util["each"])(normalizeToArray(opts.replaceMerge), function (mainType) {
    if (false) {}
    replaceMergeMainTypeMap.set(mainType, true);
  });
  return {
    replaceMergeMainTypeMap: replaceMergeMainTypeMap
  };
}
Object(util["mixin"])(Global_GlobalModel, palette_PaletteMixin);
/* harmony default export */ var Global = (Global_GlobalModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/ExtensionAPI.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var availableMethods = ['getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isSSR', 'isDisposed', 'on', 'off', 'getDataURL', 'getConnectedDataURL',
// 'getModel',
'getOption',
// 'getViewOfComponentModel',
// 'getViewOfSeriesModel',
'getId', 'updateLabelLayout'];
var ExtensionAPI_ExtensionAPI = /** @class */function () {
  function ExtensionAPI(ecInstance) {
    util["each"](availableMethods, function (methodName) {
      this[methodName] = util["bind"](ecInstance[methodName], ecInstance);
    }, this);
  }
  return ExtensionAPI;
}();
/* harmony default export */ var core_ExtensionAPI = (ExtensionAPI_ExtensionAPI);
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/CoordinateSystem.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var coordinateSystemCreators = {};
var CoordinateSystem_CoordinateSystemManager = /** @class */function () {
  function CoordinateSystemManager() {
    this._coordinateSystems = [];
  }
  CoordinateSystemManager.prototype.create = function (ecModel, api) {
    var coordinateSystems = [];
    util["each"](coordinateSystemCreators, function (creator, type) {
      var list = creator.create(ecModel, api);
      coordinateSystems = coordinateSystems.concat(list || []);
    });
    this._coordinateSystems = coordinateSystems;
  };
  CoordinateSystemManager.prototype.update = function (ecModel, api) {
    util["each"](this._coordinateSystems, function (coordSys) {
      coordSys.update && coordSys.update(ecModel, api);
    });
  };
  CoordinateSystemManager.prototype.getCoordinateSystems = function () {
    return this._coordinateSystems.slice();
  };
  CoordinateSystemManager.register = function (type, creator) {
    coordinateSystemCreators[type] = creator;
  };
  CoordinateSystemManager.get = function (type) {
    return coordinateSystemCreators[type];
  };
  return CoordinateSystemManager;
}();
/* harmony default export */ var CoordinateSystem = (CoordinateSystem_CoordinateSystemManager);
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/OptionManager.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var QUERY_REG = /^(min|max)?(.+)$/;
// Key: mainType
// type FakeComponentsMap = HashMap<(MappingExistingItem & { subType: string })[]>;
/**
 * TERM EXPLANATIONS:
 * See `ECOption` and `ECUnitOption` in `src/util/types.ts`.
 */
var OptionManager_OptionManager = /** @class */function () {
  // timeline.notMerge is not supported in ec3. Firstly there is rearly
  // case that notMerge is needed. Secondly supporting 'notMerge' requires
  // rawOption cloned and backuped when timeline changed, which does no
  // good to performance. What's more, that both timeline and setOption
  // method supply 'notMerge' brings complex and some problems.
  // Consider this case:
  // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);
  // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);
  function OptionManager(api) {
    this._timelineOptions = [];
    this._mediaList = [];
    /**
     * -1, means default.
     * empty means no media.
     */
    this._currentMediaIndices = [];
    this._api = api;
  }
  OptionManager.prototype.setOption = function (rawOption, optionPreprocessorFuncs, opt) {
    if (rawOption) {
      // That set dat primitive is dangerous if user reuse the data when setOption again.
      Object(util["each"])(normalizeToArray(rawOption.series), function (series) {
        series && series.data && Object(util["isTypedArray"])(series.data) && Object(util["setAsPrimitive"])(series.data);
      });
      Object(util["each"])(normalizeToArray(rawOption.dataset), function (dataset) {
        dataset && dataset.source && Object(util["isTypedArray"])(dataset.source) && Object(util["setAsPrimitive"])(dataset.source);
      });
    }
    // Caution: some series modify option data, if do not clone,
    // it should ensure that the repeat modify correctly
    // (create a new object when modify itself).
    rawOption = Object(util["clone"])(rawOption);
    // FIXME
    // If some property is set in timeline options or media option but
    // not set in baseOption, a warning should be given.
    var optionBackup = this._optionBackup;
    var newParsedOption = parseRawOption(rawOption, optionPreprocessorFuncs, !optionBackup);
    this._newBaseOption = newParsedOption.baseOption;
    // For setOption at second time (using merge mode);
    if (optionBackup) {
      // FIXME
      // the restore merge solution is essentially incorrect.
      // the mapping can not be 100% consistent with ecModel, which probably brings
      // potential bug!
      // The first merge is delayed, because in most cases, users do not call `setOption` twice.
      // let fakeCmptsMap = this._fakeCmptsMap;
      // if (!fakeCmptsMap) {
      //     fakeCmptsMap = this._fakeCmptsMap = createHashMap();
      //     mergeToBackupOption(fakeCmptsMap, null, optionBackup.baseOption, null);
      // }
      // mergeToBackupOption(
      //     fakeCmptsMap, optionBackup.baseOption, newParsedOption.baseOption, opt
      // );
      // For simplicity, timeline options and media options do not support merge,
      // that is, if you `setOption` twice and both has timeline options, the latter
      // timeline options will not be merged to the former, but just substitute them.
      if (newParsedOption.timelineOptions.length) {
        optionBackup.timelineOptions = newParsedOption.timelineOptions;
      }
      if (newParsedOption.mediaList.length) {
        optionBackup.mediaList = newParsedOption.mediaList;
      }
      if (newParsedOption.mediaDefault) {
        optionBackup.mediaDefault = newParsedOption.mediaDefault;
      }
    } else {
      this._optionBackup = newParsedOption;
    }
  };
  OptionManager.prototype.mountOption = function (isRecreate) {
    var optionBackup = this._optionBackup;
    this._timelineOptions = optionBackup.timelineOptions;
    this._mediaList = optionBackup.mediaList;
    this._mediaDefault = optionBackup.mediaDefault;
    this._currentMediaIndices = [];
    return Object(util["clone"])(isRecreate
    // this._optionBackup.baseOption, which is created at the first `setOption`
    // called, and is merged into every new option by inner method `mergeToBackupOption`
    // each time `setOption` called, can be only used in `isRecreate`, because
    // its reliability is under suspicion. In other cases option merge is
    // performed by `model.mergeOption`.
    ? optionBackup.baseOption : this._newBaseOption);
  };
  OptionManager.prototype.getTimelineOption = function (ecModel) {
    var option;
    var timelineOptions = this._timelineOptions;
    if (timelineOptions.length) {
      // getTimelineOption can only be called after ecModel inited,
      // so we can get currentIndex from timelineModel.
      var timelineModel = ecModel.getComponent('timeline');
      if (timelineModel) {
        option = Object(util["clone"])(
        // FIXME:TS as TimelineModel or quivlant interface
        timelineOptions[timelineModel.getCurrentIndex()]);
      }
    }
    return option;
  };
  OptionManager.prototype.getMediaOption = function (ecModel) {
    var ecWidth = this._api.getWidth();
    var ecHeight = this._api.getHeight();
    var mediaList = this._mediaList;
    var mediaDefault = this._mediaDefault;
    var indices = [];
    var result = [];
    // No media defined.
    if (!mediaList.length && !mediaDefault) {
      return result;
    }
    // Multi media may be applied, the latter defined media has higher priority.
    for (var i = 0, len = mediaList.length; i < len; i++) {
      if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) {
        indices.push(i);
      }
    }
    // FIXME
    // Whether mediaDefault should force users to provide? Otherwise
    // the change by media query can not be recorvered.
    if (!indices.length && mediaDefault) {
      indices = [-1];
    }
    if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) {
      result = Object(util["map"])(indices, function (index) {
        return Object(util["clone"])(index === -1 ? mediaDefault.option : mediaList[index].option);
      });
    }
    // Otherwise return nothing.
    this._currentMediaIndices = indices;
    return result;
  };
  return OptionManager;
}();
/**
 * [RAW_OPTION_PATTERNS]
 * (Note: "series: []" represents all other props in `ECUnitOption`)
 *
 * (1) No prop "baseOption" declared:
 * Root option is used as "baseOption" (except prop "options" and "media").
 * ```js
 * option = {
 *     series: [],
 *     timeline: {},
 *     options: [],
 * };
 * option = {
 *     series: [],
 *     media: {},
 * };
 * option = {
 *     series: [],
 *     timeline: {},
 *     options: [],
 *     media: {},
 * }
 * ```
 *
 * (2) Prop "baseOption" declared:
 * If "baseOption" declared, `ECUnitOption` props can only be declared
 * inside "baseOption" except prop "timeline" (compat ec2).
 * ```js
 * option = {
 *     baseOption: {
 *         timeline: {},
 *         series: [],
 *     },
 *     options: []
 * };
 * option = {
 *     baseOption: {
 *         series: [],
 *     },
 *     media: []
 * };
 * option = {
 *     baseOption: {
 *         timeline: {},
 *         series: [],
 *     },
 *     options: []
 *     media: []
 * };
 * option = {
 *     // ec3 compat ec2: allow (only) `timeline` declared
 *     // outside baseOption. Keep this setting for compat.
 *     timeline: {},
 *     baseOption: {
 *         series: [],
 *     },
 *     options: [],
 *     media: []
 * };
 * ```
 */
function parseRawOption(
// `rawOption` May be modified
rawOption, optionPreprocessorFuncs, isNew) {
  var mediaList = [];
  var mediaDefault;
  var baseOption;
  var declaredBaseOption = rawOption.baseOption;
  // Compatible with ec2, [RAW_OPTION_PATTERNS] above.
  var timelineOnRoot = rawOption.timeline;
  var timelineOptionsOnRoot = rawOption.options;
  var mediaOnRoot = rawOption.media;
  var hasMedia = !!rawOption.media;
  var hasTimeline = !!(timelineOptionsOnRoot || timelineOnRoot || declaredBaseOption && declaredBaseOption.timeline);
  if (declaredBaseOption) {
    baseOption = declaredBaseOption;
    // For merge option.
    if (!baseOption.timeline) {
      baseOption.timeline = timelineOnRoot;
    }
  }
  // For convenience, enable to use the root option as the `baseOption`:
  // `{ ...normalOptionProps, media: [{ ... }, { ... }] }`
  else {
    if (hasTimeline || hasMedia) {
      rawOption.options = rawOption.media = null;
    }
    baseOption = rawOption;
  }
  if (hasMedia) {
    if (Object(util["isArray"])(mediaOnRoot)) {
      Object(util["each"])(mediaOnRoot, function (singleMedia) {
        if (false) {}
        if (singleMedia && singleMedia.option) {
          if (singleMedia.query) {
            mediaList.push(singleMedia);
          } else if (!mediaDefault) {
            // Use the first media default.
            mediaDefault = singleMedia;
          }
        }
      });
    } else {
      if (false) {}
    }
  }
  doPreprocess(baseOption);
  Object(util["each"])(timelineOptionsOnRoot, function (option) {
    return doPreprocess(option);
  });
  Object(util["each"])(mediaList, function (media) {
    return doPreprocess(media.option);
  });
  function doPreprocess(option) {
    Object(util["each"])(optionPreprocessorFuncs, function (preProcess) {
      preProcess(option, isNew);
    });
  }
  return {
    baseOption: baseOption,
    timelineOptions: timelineOptionsOnRoot || [],
    mediaDefault: mediaDefault,
    mediaList: mediaList
  };
}
/**
 * @see <http://www.w3.org/TR/css3-mediaqueries/#media1>
 * Support: width, height, aspectRatio
 * Can use max or min as prefix.
 */
function applyMediaQuery(query, ecWidth, ecHeight) {
  var realMap = {
    width: ecWidth,
    height: ecHeight,
    aspectratio: ecWidth / ecHeight // lower case for convenience.
  };
  var applicable = true;
  Object(util["each"])(query, function (value, attr) {
    var matched = attr.match(QUERY_REG);
    if (!matched || !matched[1] || !matched[2]) {
      return;
    }
    var operator = matched[1];
    var realAttr = matched[2].toLowerCase();
    if (!compare(realMap[realAttr], value, operator)) {
      applicable = false;
    }
  });
  return applicable;
}
function compare(real, expect, operator) {
  if (operator === 'min') {
    return real >= expect;
  } else if (operator === 'max') {
    return real <= expect;
  } else {
    // Equals
    return real === expect;
  }
}
function indicesEquals(indices1, indices2) {
  // indices is always order by asc and has only finite number.
  return indices1.join(',') === indices2.join(',');
}
/**
 * Consider case:
 * `chart.setOption(opt1);`
 * Then user do some interaction like dataZoom, dataView changing.
 * `chart.setOption(opt2);`
 * Then user press 'reset button' in toolbox.
 *
 * After doing that all of the interaction effects should be reset, the
 * chart should be the same as the result of invoke
 * `chart.setOption(opt1); chart.setOption(opt2);`.
 *
 * Although it is not able ensure that
 * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to
 * `chart.setOption(merge(opt1, opt2));` exactly,
 * this might be the only simple way to implement that feature.
 *
 * MEMO: We've considered some other approaches:
 * 1. Each model handles its self restoration but not uniform treatment.
 *     (Too complex in logic and error-prone)
 * 2. Use a shadow ecModel. (Performance expensive)
 *
 * FIXME: A possible solution:
 * Add a extra level of model for each component model. The inheritance chain would be:
 * ecModel <- componentModel <- componentActionModel <- dataItemModel
 * And all of the actions can only modify the `componentActionModel` rather than
 * `componentModel`. `setOption` will only modify the `ecModel` and `componentModel`.
 * When "resotre" action triggered, model from `componentActionModel` will be discarded
 * instead of recreating the "ecModel" from the "_optionBackup".
 */
// function mergeToBackupOption(
//     fakeCmptsMap: FakeComponentsMap,
//     // `tarOption` Can be null/undefined, means init
//     tarOption: ECUnitOption,
//     newOption: ECUnitOption,
//     // Can be null/undefined
//     opt: InnerSetOptionOpts
// ): void {
//     newOption = newOption || {} as ECUnitOption;
//     const notInit = !!tarOption;
//     each(newOption, function (newOptsInMainType, mainType) {
//         if (newOptsInMainType == null) {
//             return;
//         }
//         if (!ComponentModel.hasClass(mainType)) {
//             if (tarOption) {
//                 tarOption[mainType] = merge(tarOption[mainType], newOptsInMainType, true);
//             }
//         }
//         else {
//             const oldTarOptsInMainType = notInit ? normalizeToArray(tarOption[mainType]) : null;
//             const oldFakeCmptsInMainType = fakeCmptsMap.get(mainType) || [];
//             const resultTarOptsInMainType = notInit ? (tarOption[mainType] = [] as ComponentOption[]) : null;
//             const resultFakeCmptsInMainType = fakeCmptsMap.set(mainType, []);
//             const mappingResult = mappingToExists(
//                 oldFakeCmptsInMainType,
//                 normalizeToArray(newOptsInMainType),
//                 (opt && opt.replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge' : 'normalMerge'
//             );
//             setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);
//             each(mappingResult, function (resultItem, index) {
//                 // The same logic as `Global.ts#_mergeOption`.
//                 let fakeCmpt = resultItem.existing;
//                 const newOption = resultItem.newOption;
//                 const keyInfo = resultItem.keyInfo;
//                 let fakeCmptOpt;
//                 if (!newOption) {
//                     fakeCmptOpt = oldTarOptsInMainType[index];
//                 }
//                 else {
//                     if (fakeCmpt && fakeCmpt.subType === keyInfo.subType) {
//                         fakeCmpt.name = keyInfo.name;
//                         if (notInit) {
//                             fakeCmptOpt = merge(oldTarOptsInMainType[index], newOption, true);
//                         }
//                     }
//                     else {
//                         fakeCmpt = extend({}, keyInfo);
//                         if (notInit) {
//                             fakeCmptOpt = clone(newOption);
//                         }
//                     }
//                 }
//                 if (fakeCmpt) {
//                     notInit && resultTarOptsInMainType.push(fakeCmptOpt);
//                     resultFakeCmptsInMainType.push(fakeCmpt);
//                 }
//                 else {
//                     notInit && resultTarOptsInMainType.push(void 0);
//                     resultFakeCmptsInMainType.push(void 0);
//                 }
//             });
//         }
//     });
// }
/* harmony default export */ var model_OptionManager = (OptionManager_OptionManager);
// CONCATENATED MODULE: ./node_modules/echarts/lib/preprocessor/helper/compatStyle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var compatStyle_each = util["each"];
var isObject = util["isObject"];
var POSSIBLE_STYLES = ['areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle', 'chordStyle', 'label', 'labelLine'];
function compatEC2ItemStyle(opt) {
  var itemStyleOpt = opt && opt.itemStyle;
  if (!itemStyleOpt) {
    return;
  }
  for (var i = 0, len = POSSIBLE_STYLES.length; i < len; i++) {
    var styleName = POSSIBLE_STYLES[i];
    var normalItemStyleOpt = itemStyleOpt.normal;
    var emphasisItemStyleOpt = itemStyleOpt.emphasis;
    if (normalItemStyleOpt && normalItemStyleOpt[styleName]) {
      if (false) {}
      opt[styleName] = opt[styleName] || {};
      if (!opt[styleName].normal) {
        opt[styleName].normal = normalItemStyleOpt[styleName];
      } else {
        util["merge"](opt[styleName].normal, normalItemStyleOpt[styleName]);
      }
      normalItemStyleOpt[styleName] = null;
    }
    if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) {
      if (false) {}
      opt[styleName] = opt[styleName] || {};
      if (!opt[styleName].emphasis) {
        opt[styleName].emphasis = emphasisItemStyleOpt[styleName];
      } else {
        util["merge"](opt[styleName].emphasis, emphasisItemStyleOpt[styleName]);
      }
      emphasisItemStyleOpt[styleName] = null;
    }
  }
}
function convertNormalEmphasis(opt, optType, useExtend) {
  if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) {
    var normalOpt = opt[optType].normal;
    var emphasisOpt = opt[optType].emphasis;
    if (normalOpt) {
      if (false) {}
      // Timeline controlStyle has other properties besides normal and emphasis
      if (useExtend) {
        opt[optType].normal = opt[optType].emphasis = null;
        util["defaults"](opt[optType], normalOpt);
      } else {
        opt[optType] = normalOpt;
      }
    }
    if (emphasisOpt) {
      if (false) {}
      opt.emphasis = opt.emphasis || {};
      opt.emphasis[optType] = emphasisOpt;
      // Also compat the case user mix the style and focus together in ec3 style
      // for example: { itemStyle: { normal: {}, emphasis: {focus, shadowBlur} } }
      if (emphasisOpt.focus) {
        opt.emphasis.focus = emphasisOpt.focus;
      }
      if (emphasisOpt.blurScope) {
        opt.emphasis.blurScope = emphasisOpt.blurScope;
      }
    }
  }
}
function removeEC3NormalStatus(opt) {
  convertNormalEmphasis(opt, 'itemStyle');
  convertNormalEmphasis(opt, 'lineStyle');
  convertNormalEmphasis(opt, 'areaStyle');
  convertNormalEmphasis(opt, 'label');
  convertNormalEmphasis(opt, 'labelLine');
  // treemap
  convertNormalEmphasis(opt, 'upperLabel');
  // graph
  convertNormalEmphasis(opt, 'edgeLabel');
}
function compatTextStyle(opt, propName) {
  // Check whether is not object (string\null\undefined ...)
  var labelOptSingle = isObject(opt) && opt[propName];
  var textStyle = isObject(labelOptSingle) && labelOptSingle.textStyle;
  if (textStyle) {
    if (false) {}
    for (var i = 0, len = TEXT_STYLE_OPTIONS.length; i < len; i++) {
      var textPropName = TEXT_STYLE_OPTIONS[i];
      if (textStyle.hasOwnProperty(textPropName)) {
        labelOptSingle[textPropName] = textStyle[textPropName];
      }
    }
  }
}
function compatEC3CommonStyles(opt) {
  if (opt) {
    removeEC3NormalStatus(opt);
    compatTextStyle(opt, 'label');
    opt.emphasis && compatTextStyle(opt.emphasis, 'label');
  }
}
function processSeries(seriesOpt) {
  if (!isObject(seriesOpt)) {
    return;
  }
  compatEC2ItemStyle(seriesOpt);
  removeEC3NormalStatus(seriesOpt);
  compatTextStyle(seriesOpt, 'label');
  // treemap
  compatTextStyle(seriesOpt, 'upperLabel');
  // graph
  compatTextStyle(seriesOpt, 'edgeLabel');
  if (seriesOpt.emphasis) {
    compatTextStyle(seriesOpt.emphasis, 'label');
    // treemap
    compatTextStyle(seriesOpt.emphasis, 'upperLabel');
    // graph
    compatTextStyle(seriesOpt.emphasis, 'edgeLabel');
  }
  var markPoint = seriesOpt.markPoint;
  if (markPoint) {
    compatEC2ItemStyle(markPoint);
    compatEC3CommonStyles(markPoint);
  }
  var markLine = seriesOpt.markLine;
  if (markLine) {
    compatEC2ItemStyle(markLine);
    compatEC3CommonStyles(markLine);
  }
  var markArea = seriesOpt.markArea;
  if (markArea) {
    compatEC3CommonStyles(markArea);
  }
  var data = seriesOpt.data;
  // Break with ec3: if `setOption` again, there may be no `type` in option,
  // then the backward compat based on option type will not be performed.
  if (seriesOpt.type === 'graph') {
    data = data || seriesOpt.nodes;
    var edgeData = seriesOpt.links || seriesOpt.edges;
    if (edgeData && !util["isTypedArray"](edgeData)) {
      for (var i = 0; i < edgeData.length; i++) {
        compatEC3CommonStyles(edgeData[i]);
      }
    }
    util["each"](seriesOpt.categories, function (opt) {
      removeEC3NormalStatus(opt);
    });
  }
  if (data && !util["isTypedArray"](data)) {
    for (var i = 0; i < data.length; i++) {
      compatEC3CommonStyles(data[i]);
    }
  }
  // mark point data
  markPoint = seriesOpt.markPoint;
  if (markPoint && markPoint.data) {
    var mpData = markPoint.data;
    for (var i = 0; i < mpData.length; i++) {
      compatEC3CommonStyles(mpData[i]);
    }
  }
  // mark line data
  markLine = seriesOpt.markLine;
  if (markLine && markLine.data) {
    var mlData = markLine.data;
    for (var i = 0; i < mlData.length; i++) {
      if (util["isArray"](mlData[i])) {
        compatEC3CommonStyles(mlData[i][0]);
        compatEC3CommonStyles(mlData[i][1]);
      } else {
        compatEC3CommonStyles(mlData[i]);
      }
    }
  }
  // Series
  if (seriesOpt.type === 'gauge') {
    compatTextStyle(seriesOpt, 'axisLabel');
    compatTextStyle(seriesOpt, 'title');
    compatTextStyle(seriesOpt, 'detail');
  } else if (seriesOpt.type === 'treemap') {
    convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle');
    util["each"](seriesOpt.levels, function (opt) {
      removeEC3NormalStatus(opt);
    });
  } else if (seriesOpt.type === 'tree') {
    removeEC3NormalStatus(seriesOpt.leaves);
  }
  // sunburst starts from ec4, so it does not need to compat levels.
}
function toArr(o) {
  return util["isArray"](o) ? o : o ? [o] : [];
}
function toObj(o) {
  return (util["isArray"](o) ? o[0] : o) || {};
}
function globalCompatStyle(option, isTheme) {
  compatStyle_each(toArr(option.series), function (seriesOpt) {
    isObject(seriesOpt) && processSeries(seriesOpt);
  });
  var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar'];
  isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis');
  compatStyle_each(axes, function (axisName) {
    compatStyle_each(toArr(option[axisName]), function (axisOpt) {
      if (axisOpt) {
        compatTextStyle(axisOpt, 'axisLabel');
        compatTextStyle(axisOpt.axisPointer, 'label');
      }
    });
  });
  compatStyle_each(toArr(option.parallel), function (parallelOpt) {
    var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault;
    compatTextStyle(parallelAxisDefault, 'axisLabel');
    compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label');
  });
  compatStyle_each(toArr(option.calendar), function (calendarOpt) {
    convertNormalEmphasis(calendarOpt, 'itemStyle');
    compatTextStyle(calendarOpt, 'dayLabel');
    compatTextStyle(calendarOpt, 'monthLabel');
    compatTextStyle(calendarOpt, 'yearLabel');
  });
  // radar.name.textStyle
  compatStyle_each(toArr(option.radar), function (radarOpt) {
    compatTextStyle(radarOpt, 'name');
    // Use axisName instead of name because component has name property
    if (radarOpt.name && radarOpt.axisName == null) {
      radarOpt.axisName = radarOpt.name;
      delete radarOpt.name;
      if (false) {}
    }
    if (radarOpt.nameGap != null && radarOpt.axisNameGap == null) {
      radarOpt.axisNameGap = radarOpt.nameGap;
      delete radarOpt.nameGap;
      if (false) {}
    }
    if (false) {}
  });
  compatStyle_each(toArr(option.geo), function (geoOpt) {
    if (isObject(geoOpt)) {
      compatEC3CommonStyles(geoOpt);
      compatStyle_each(toArr(geoOpt.regions), function (regionObj) {
        compatEC3CommonStyles(regionObj);
      });
    }
  });
  compatStyle_each(toArr(option.timeline), function (timelineOpt) {
    compatEC3CommonStyles(timelineOpt);
    convertNormalEmphasis(timelineOpt, 'label');
    convertNormalEmphasis(timelineOpt, 'itemStyle');
    convertNormalEmphasis(timelineOpt, 'controlStyle', true);
    var data = timelineOpt.data;
    util["isArray"](data) && util["each"](data, function (item) {
      if (util["isObject"](item)) {
        convertNormalEmphasis(item, 'label');
        convertNormalEmphasis(item, 'itemStyle');
      }
    });
  });
  compatStyle_each(toArr(option.toolbox), function (toolboxOpt) {
    convertNormalEmphasis(toolboxOpt, 'iconStyle');
    compatStyle_each(toolboxOpt.feature, function (featureOpt) {
      convertNormalEmphasis(featureOpt, 'iconStyle');
    });
  });
  compatTextStyle(toObj(option.axisPointer), 'label');
  compatTextStyle(toObj(option.tooltip).axisPointer, 'label');
  // Clean logs
  // storedLogs = {};
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/preprocessor/backwardCompat.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function get(opt, path) {
  var pathArr = path.split(',');
  var obj = opt;
  for (var i = 0; i < pathArr.length; i++) {
    obj = obj && obj[pathArr[i]];
    if (obj == null) {
      break;
    }
  }
  return obj;
}
function backwardCompat_set(opt, path, val, overwrite) {
  var pathArr = path.split(',');
  var obj = opt;
  var key;
  var i = 0;
  for (; i < pathArr.length - 1; i++) {
    key = pathArr[i];
    if (obj[key] == null) {
      obj[key] = {};
    }
    obj = obj[key];
  }
  if (overwrite || obj[pathArr[i]] == null) {
    obj[pathArr[i]] = val;
  }
}
function compatLayoutProperties(option) {
  option && Object(util["each"])(LAYOUT_PROPERTIES, function (prop) {
    if (prop[0] in option && !(prop[1] in option)) {
      option[prop[1]] = option[prop[0]];
    }
  });
}
var LAYOUT_PROPERTIES = [['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']];
var COMPATITABLE_COMPONENTS = ['grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline'];
var BAR_ITEM_STYLE_MAP = [['borderRadius', 'barBorderRadius'], ['borderColor', 'barBorderColor'], ['borderWidth', 'barBorderWidth']];
function compatBarItemStyle(option) {
  var itemStyle = option && option.itemStyle;
  if (itemStyle) {
    for (var i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) {
      var oldName = BAR_ITEM_STYLE_MAP[i][1];
      var newName = BAR_ITEM_STYLE_MAP[i][0];
      if (itemStyle[oldName] != null) {
        itemStyle[newName] = itemStyle[oldName];
        if (false) {}
      }
    }
  }
}
function compatPieLabel(option) {
  if (!option) {
    return;
  }
  if (option.alignTo === 'edge' && option.margin != null && option.edgeDistance == null) {
    if (false) {}
    option.edgeDistance = option.margin;
  }
}
function compatSunburstState(option) {
  if (!option) {
    return;
  }
  if (option.downplay && !option.blur) {
    option.blur = option.downplay;
    if (false) {}
  }
}
function compatGraphFocus(option) {
  if (!option) {
    return;
  }
  if (option.focusNodeAdjacency != null) {
    option.emphasis = option.emphasis || {};
    if (option.emphasis.focus == null) {
      if (false) {}
      option.emphasis.focus = 'adjacency';
    }
  }
}
function traverseTree(data, cb) {
  if (data) {
    for (var i = 0; i < data.length; i++) {
      cb(data[i]);
      data[i] && traverseTree(data[i].children, cb);
    }
  }
}
function globalBackwardCompat(option, isTheme) {
  globalCompatStyle(option, isTheme);
  // Make sure series array for model initialization.
  option.series = normalizeToArray(option.series);
  Object(util["each"])(option.series, function (seriesOpt) {
    if (!Object(util["isObject"])(seriesOpt)) {
      return;
    }
    var seriesType = seriesOpt.type;
    if (seriesType === 'line') {
      if (seriesOpt.clipOverflow != null) {
        seriesOpt.clip = seriesOpt.clipOverflow;
        if (false) {}
      }
    } else if (seriesType === 'pie' || seriesType === 'gauge') {
      if (seriesOpt.clockWise != null) {
        seriesOpt.clockwise = seriesOpt.clockWise;
        if (false) {}
      }
      compatPieLabel(seriesOpt.label);
      var data = seriesOpt.data;
      if (data && !Object(util["isTypedArray"])(data)) {
        for (var i = 0; i < data.length; i++) {
          compatPieLabel(data[i]);
        }
      }
      if (seriesOpt.hoverOffset != null) {
        seriesOpt.emphasis = seriesOpt.emphasis || {};
        if (seriesOpt.emphasis.scaleSize = null) {
          if (false) {}
          seriesOpt.emphasis.scaleSize = seriesOpt.hoverOffset;
        }
      }
    } else if (seriesType === 'gauge') {
      var pointerColor = get(seriesOpt, 'pointer.color');
      pointerColor != null && backwardCompat_set(seriesOpt, 'itemStyle.color', pointerColor);
    } else if (seriesType === 'bar') {
      compatBarItemStyle(seriesOpt);
      compatBarItemStyle(seriesOpt.backgroundStyle);
      compatBarItemStyle(seriesOpt.emphasis);
      var data = seriesOpt.data;
      if (data && !Object(util["isTypedArray"])(data)) {
        for (var i = 0; i < data.length; i++) {
          if (typeof data[i] === 'object') {
            compatBarItemStyle(data[i]);
            compatBarItemStyle(data[i] && data[i].emphasis);
          }
        }
      }
    } else if (seriesType === 'sunburst') {
      var highlightPolicy = seriesOpt.highlightPolicy;
      if (highlightPolicy) {
        seriesOpt.emphasis = seriesOpt.emphasis || {};
        if (!seriesOpt.emphasis.focus) {
          seriesOpt.emphasis.focus = highlightPolicy;
          if (false) {}
        }
      }
      compatSunburstState(seriesOpt);
      traverseTree(seriesOpt.data, compatSunburstState);
    } else if (seriesType === 'graph' || seriesType === 'sankey') {
      compatGraphFocus(seriesOpt);
      // TODO nodes, edges?
    } else if (seriesType === 'map') {
      if (seriesOpt.mapType && !seriesOpt.map) {
        if (false) {}
        seriesOpt.map = seriesOpt.mapType;
      }
      if (seriesOpt.mapLocation) {
        if (false) {}
        Object(util["defaults"])(seriesOpt, seriesOpt.mapLocation);
      }
    }
    if (seriesOpt.hoverAnimation != null) {
      seriesOpt.emphasis = seriesOpt.emphasis || {};
      if (seriesOpt.emphasis && seriesOpt.emphasis.scale == null) {
        if (false) {}
        seriesOpt.emphasis.scale = seriesOpt.hoverAnimation;
      }
    }
    compatLayoutProperties(seriesOpt);
  });
  // dataRange has changed to visualMap
  if (option.dataRange) {
    option.visualMap = option.dataRange;
  }
  Object(util["each"])(COMPATITABLE_COMPONENTS, function (componentName) {
    var options = option[componentName];
    if (options) {
      if (!Object(util["isArray"])(options)) {
        options = [options];
      }
      Object(util["each"])(options, function (option) {
        compatLayoutProperties(option);
      });
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/processor/dataStack.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// (1) [Caution]: the logic is correct based on the premises:
//     data processing stage is blocked in stream.
//     See <module:echarts/stream/Scheduler#performDataProcessorTasks>
// (2) Only register once when import repeatedly.
//     Should be executed after series is filtered and before stack calculation.
function dataStack(ecModel) {
  var stackInfoMap = Object(util["createHashMap"])();
  ecModel.eachSeries(function (seriesModel) {
    var stack = seriesModel.get('stack');
    // Compatible: when `stack` is set as '', do not stack.
    if (stack) {
      var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []);
      var data = seriesModel.getData();
      var stackInfo = {
        // Used for calculate axis extent automatically.
        // TODO: Type getCalculationInfo return more specific type?
        stackResultDimension: data.getCalculationInfo('stackResultDimension'),
        stackedOverDimension: data.getCalculationInfo('stackedOverDimension'),
        stackedDimension: data.getCalculationInfo('stackedDimension'),
        stackedByDimension: data.getCalculationInfo('stackedByDimension'),
        isStackedByIndex: data.getCalculationInfo('isStackedByIndex'),
        data: data,
        seriesModel: seriesModel
      };
      // If stacked on axis that do not support data stack.
      if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)) {
        return;
      }
      stackInfoList.length && data.setCalculationInfo('stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel);
      stackInfoList.push(stackInfo);
    }
  });
  stackInfoMap.each(calculateStack);
}
function calculateStack(stackInfoList) {
  Object(util["each"])(stackInfoList, function (targetStackInfo, idxInStack) {
    var resultVal = [];
    var resultNaN = [NaN, NaN];
    var dims = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension];
    var targetData = targetStackInfo.data;
    var isStackedByIndex = targetStackInfo.isStackedByIndex;
    var stackStrategy = targetStackInfo.seriesModel.get('stackStrategy') || 'samesign';
    // Should not write on raw data, because stack series model list changes
    // depending on legend selection.
    targetData.modify(dims, function (v0, v1, dataIndex) {
      var sum = targetData.get(targetStackInfo.stackedDimension, dataIndex);
      // Consider `connectNulls` of line area, if value is NaN, stackedOver
      // should also be NaN, to draw a appropriate belt area.
      if (isNaN(sum)) {
        return resultNaN;
      }
      var byValue;
      var stackedDataRawIndex;
      if (isStackedByIndex) {
        stackedDataRawIndex = targetData.getRawIndex(dataIndex);
      } else {
        byValue = targetData.get(targetStackInfo.stackedByDimension, dataIndex);
      }
      // If stackOver is NaN, chart view will render point on value start.
      var stackedOver = NaN;
      for (var j = idxInStack - 1; j >= 0; j--) {
        var stackInfo = stackInfoList[j];
        // Has been optimized by inverted indices on `stackedByDimension`.
        if (!isStackedByIndex) {
          stackedDataRawIndex = stackInfo.data.rawIndexOf(stackInfo.stackedByDimension, byValue);
        }
        if (stackedDataRawIndex >= 0) {
          var val = stackInfo.data.getByRawIndex(stackInfo.stackResultDimension, stackedDataRawIndex);
          // Considering positive stack, negative stack and empty data
          if (stackStrategy === 'all' // single stack group
          || stackStrategy === 'positive' && val > 0 || stackStrategy === 'negative' && val < 0 || stackStrategy === 'samesign' && sum >= 0 && val > 0 // All positive stack
          || stackStrategy === 'samesign' && sum <= 0 && val < 0 // All negative stack
          ) {
            // The sum has to be very small to be affected by the
            // floating arithmetic problem. An incorrect result will probably
            // cause axis min/max to be filtered incorrectly.
            sum = addSafe(sum, val);
            stackedOver = val;
            break;
          }
        }
      }
      resultVal[0] = sum;
      resultVal[1] = stackedOver;
      return resultVal;
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/Source.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




;
// @inner
var Source_SourceImpl = /** @class */function () {
  function SourceImpl(fields) {
    this.data = fields.data || (fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : []);
    this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN;
    // Visit config
    this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN;
    this.startIndex = fields.startIndex || 0;
    this.dimensionsDetectedCount = fields.dimensionsDetectedCount;
    this.metaRawOption = fields.metaRawOption;
    var dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine;
    if (dimensionsDefine) {
      for (var i = 0; i < dimensionsDefine.length; i++) {
        var dim = dimensionsDefine[i];
        if (dim.type == null) {
          if (guessOrdinal(this, i) === BE_ORDINAL.Must) {
            dim.type = 'ordinal';
          }
        }
      }
    }
  }
  return SourceImpl;
}();
function isSourceInstance(val) {
  return val instanceof Source_SourceImpl;
}
/**
 * Create a source from option.
 * NOTE: Created source is immutable. Don't change any properties in it.
 */
function createSource(sourceData, thisMetaRawOption,
// can be null. If not provided, auto detect it from `sourceData`.
sourceFormat) {
  sourceFormat = sourceFormat || detectSourceFormat(sourceData);
  var seriesLayoutBy = thisMetaRawOption.seriesLayoutBy;
  var determined = determineSourceDimensions(sourceData, sourceFormat, seriesLayoutBy, thisMetaRawOption.sourceHeader, thisMetaRawOption.dimensions);
  var source = new Source_SourceImpl({
    data: sourceData,
    sourceFormat: sourceFormat,
    seriesLayoutBy: seriesLayoutBy,
    dimensionsDefine: determined.dimensionsDefine,
    startIndex: determined.startIndex,
    dimensionsDetectedCount: determined.dimensionsDetectedCount,
    metaRawOption: Object(util["clone"])(thisMetaRawOption)
  });
  return source;
}
/**
 * Wrap original series data for some compatibility cases.
 */
function createSourceFromSeriesDataOption(data) {
  return new Source_SourceImpl({
    data: data,
    sourceFormat: Object(util["isTypedArray"])(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL
  });
}
/**
 * Clone source but excludes source data.
 */
function cloneSourceShallow(source) {
  return new Source_SourceImpl({
    data: source.data,
    sourceFormat: source.sourceFormat,
    seriesLayoutBy: source.seriesLayoutBy,
    dimensionsDefine: Object(util["clone"])(source.dimensionsDefine),
    startIndex: source.startIndex,
    dimensionsDetectedCount: source.dimensionsDetectedCount
  });
}
/**
 * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`.
 */
function detectSourceFormat(data) {
  var sourceFormat = SOURCE_FORMAT_UNKNOWN;
  if (Object(util["isTypedArray"])(data)) {
    sourceFormat = SOURCE_FORMAT_TYPED_ARRAY;
  } else if (Object(util["isArray"])(data)) {
    // FIXME Whether tolerate null in top level array?
    if (data.length === 0) {
      sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;
    }
    for (var i = 0, len = data.length; i < len; i++) {
      var item = data[i];
      if (item == null) {
        continue;
      } else if (Object(util["isArray"])(item) || Object(util["isTypedArray"])(item)) {
        sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;
        break;
      } else if (Object(util["isObject"])(item)) {
        sourceFormat = SOURCE_FORMAT_OBJECT_ROWS;
        break;
      }
    }
  } else if (Object(util["isObject"])(data)) {
    for (var key in data) {
      if (Object(util["hasOwn"])(data, key) && Object(util["isArrayLike"])(data[key])) {
        sourceFormat = SOURCE_FORMAT_KEYED_COLUMNS;
        break;
      }
    }
  }
  return sourceFormat;
}
/**
 * Determine the source definitions from data standalone dimensions definitions
 * are not specified.
 */
function determineSourceDimensions(data, sourceFormat, seriesLayoutBy, sourceHeader,
// standalone raw dimensions definition, like:
// {
//     dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }]
// }
// in `dataset` or `series`
dimensionsDefine) {
  var dimensionsDetectedCount;
  var startIndex;
  // PENDING: Could data be null/undefined here?
  // currently, if `dataset.source` not specified, error thrown.
  // if `series.data` not specified, nothing rendered without error thrown.
  // Should test these cases.
  if (!data) {
    return {
      dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),
      startIndex: startIndex,
      dimensionsDetectedCount: dimensionsDetectedCount
    };
  }
  if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {
    var dataArrayRows = data;
    // Rule: Most of the first line are string: it is header.
    // Caution: consider a line with 5 string and 1 number,
    // it still can not be sure it is a head, because the
    // 5 string may be 5 values of category columns.
    if (sourceHeader === 'auto' || sourceHeader == null) {
      arrayRowsTravelFirst(function (val) {
        // '-' is regarded as null/undefined.
        if (val != null && val !== '-') {
          if (Object(util["isString"])(val)) {
            startIndex == null && (startIndex = 1);
          } else {
            startIndex = 0;
          }
        }
        // 10 is an experience number, avoid long loop.
      }, seriesLayoutBy, dataArrayRows, 10);
    } else {
      startIndex = Object(util["isNumber"])(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0;
    }
    if (!dimensionsDefine && startIndex === 1) {
      dimensionsDefine = [];
      arrayRowsTravelFirst(function (val, index) {
        dimensionsDefine[index] = val != null ? val + '' : '';
      }, seriesLayoutBy, dataArrayRows, Infinity);
    }
    dimensionsDetectedCount = dimensionsDefine ? dimensionsDefine.length : seriesLayoutBy === SERIES_LAYOUT_BY_ROW ? dataArrayRows.length : dataArrayRows[0] ? dataArrayRows[0].length : null;
  } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {
    if (!dimensionsDefine) {
      dimensionsDefine = objectRowsCollectDimensions(data);
    }
  } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {
    if (!dimensionsDefine) {
      dimensionsDefine = [];
      Object(util["each"])(data, function (colArr, key) {
        dimensionsDefine.push(key);
      });
    }
  } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {
    var value0 = getDataItemValue(data[0]);
    dimensionsDetectedCount = Object(util["isArray"])(value0) && value0.length || 1;
  } else if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {
    if (false) {}
  }
  return {
    startIndex: startIndex,
    dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),
    dimensionsDetectedCount: dimensionsDetectedCount
  };
}
function objectRowsCollectDimensions(data) {
  var firstIndex = 0;
  var obj;
  while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line
  if (obj) {
    return Object(util["keys"])(obj);
  }
}
// Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],
// which is reasonable. But dimension name is duplicated.
// Returns undefined or an array contains only object without null/undefined or string.
function normalizeDimensionsOption(dimensionsDefine) {
  if (!dimensionsDefine) {
    // The meaning of null/undefined is different from empty array.
    return;
  }
  var nameMap = Object(util["createHashMap"])();
  return Object(util["map"])(dimensionsDefine, function (rawItem, index) {
    rawItem = Object(util["isObject"])(rawItem) ? rawItem : {
      name: rawItem
    };
    // Other fields will be discarded.
    var item = {
      name: rawItem.name,
      displayName: rawItem.displayName,
      type: rawItem.type
    };
    // User can set null in dimensions.
    // We don't auto specify name, otherwise a given name may
    // cause it to be referred unexpectedly.
    if (item.name == null) {
      return item;
    }
    // Also consider number form like 2012.
    item.name += '';
    // User may also specify displayName.
    // displayName will always exists except user not
    // specified or dim name is not specified or detected.
    // (A auto generated dim name will not be used as
    // displayName).
    if (item.displayName == null) {
      item.displayName = item.name;
    }
    var exist = nameMap.get(item.name);
    if (!exist) {
      nameMap.set(item.name, {
        count: 1
      });
    } else {
      item.name += '-' + exist.count++;
    }
    return item;
  });
}
function arrayRowsTravelFirst(cb, seriesLayoutBy, data, maxLoop) {
  if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {
    for (var i = 0; i < data.length && i < maxLoop; i++) {
      cb(data[i] ? data[i][0] : null, i);
    }
  } else {
    var value0 = data[0] || [];
    for (var i = 0; i < value0.length && i < maxLoop; i++) {
      cb(value0[i], i);
    }
  }
}
function shouldRetrieveDataByName(source) {
  var sourceFormat = source.sourceFormat;
  return sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/dataProvider.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var dataProvider_a, dataProvider_b, _c;
// TODO
// ??? refactor? check the outer usage of data provider.
// merge with defaultDimValueGetter?




var providerMethods;
var mountMethods;
/**
 * If normal array used, mutable chunk size is supported.
 * If typed array used, chunk size must be fixed.
 */
var dataProvider_DefaultDataProvider = /** @class */function () {
  function DefaultDataProvider(sourceParam, dimSize) {
    // let source: Source;
    var source = !isSourceInstance(sourceParam) ? createSourceFromSeriesDataOption(sourceParam) : sourceParam;
    // declare source is Source;
    this._source = source;
    var data = this._data = source.data;
    // Typed array. TODO IE10+?
    if (source.sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {
      if (false) {}
      this._offset = 0;
      this._dimSize = dimSize;
      this._data = data;
    }
    mountMethods(this, data, source);
  }
  DefaultDataProvider.prototype.getSource = function () {
    return this._source;
  };
  DefaultDataProvider.prototype.count = function () {
    return 0;
  };
  DefaultDataProvider.prototype.getItem = function (idx, out) {
    return;
  };
  DefaultDataProvider.prototype.appendData = function (newData) {};
  DefaultDataProvider.prototype.clean = function () {};
  DefaultDataProvider.protoInitialize = function () {
    // PENDING: To avoid potential incompat (e.g., prototype
    // is visited somewhere), still init them on prototype.
    var proto = DefaultDataProvider.prototype;
    proto.pure = false;
    proto.persistent = true;
  }();
  DefaultDataProvider.internalField = function () {
    var _a;
    mountMethods = function (provider, data, source) {
      var sourceFormat = source.sourceFormat;
      var seriesLayoutBy = source.seriesLayoutBy;
      var startIndex = source.startIndex;
      var dimsDef = source.dimensionsDefine;
      var methods = providerMethods[getMethodMapKey(sourceFormat, seriesLayoutBy)];
      if (false) {}
      Object(util["extend"])(provider, methods);
      if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {
        provider.getItem = getItemForTypedArray;
        provider.count = countForTypedArray;
        provider.fillStorage = fillStorageForTypedArray;
      } else {
        var rawItemGetter = getRawSourceItemGetter(sourceFormat, seriesLayoutBy);
        provider.getItem = Object(util["bind"])(rawItemGetter, null, data, startIndex, dimsDef);
        var rawCounter = getRawSourceDataCounter(sourceFormat, seriesLayoutBy);
        provider.count = Object(util["bind"])(rawCounter, null, data, startIndex, dimsDef);
      }
    };
    var getItemForTypedArray = function (idx, out) {
      idx = idx - this._offset;
      out = out || [];
      var data = this._data;
      var dimSize = this._dimSize;
      var offset = dimSize * idx;
      for (var i = 0; i < dimSize; i++) {
        out[i] = data[offset + i];
      }
      return out;
    };
    var fillStorageForTypedArray = function (start, end, storage, extent) {
      var data = this._data;
      var dimSize = this._dimSize;
      for (var dim = 0; dim < dimSize; dim++) {
        var dimExtent = extent[dim];
        var min = dimExtent[0] == null ? Infinity : dimExtent[0];
        var max = dimExtent[1] == null ? -Infinity : dimExtent[1];
        var count = end - start;
        var arr = storage[dim];
        for (var i = 0; i < count; i++) {
          // appendData with TypedArray will always do replace in provider.
          var val = data[i * dimSize + dim];
          arr[start + i] = val;
          val < min && (min = val);
          val > max && (max = val);
        }
        dimExtent[0] = min;
        dimExtent[1] = max;
      }
    };
    var countForTypedArray = function () {
      return this._data ? this._data.length / this._dimSize : 0;
    };
    providerMethods = (_a = {}, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = {
      pure: true,
      appendData: appendDataSimply
    }, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = {
      pure: true,
      appendData: function () {
        throw new Error('Do not support appendData when set seriesLayoutBy: "row".');
      }
    }, _a[SOURCE_FORMAT_OBJECT_ROWS] = {
      pure: true,
      appendData: appendDataSimply
    }, _a[SOURCE_FORMAT_KEYED_COLUMNS] = {
      pure: true,
      appendData: function (newData) {
        var data = this._data;
        Object(util["each"])(newData, function (newCol, key) {
          var oldCol = data[key] || (data[key] = []);
          for (var i = 0; i < (newCol || []).length; i++) {
            oldCol.push(newCol[i]);
          }
        });
      }
    }, _a[SOURCE_FORMAT_ORIGINAL] = {
      appendData: appendDataSimply
    }, _a[SOURCE_FORMAT_TYPED_ARRAY] = {
      persistent: false,
      pure: true,
      appendData: function (newData) {
        if (false) {}
        this._data = newData;
      },
      // Clean self if data is already used.
      clean: function () {
        // PENDING
        this._offset += this.count();
        this._data = null;
      }
    }, _a);
    function appendDataSimply(newData) {
      for (var i = 0; i < newData.length; i++) {
        this._data.push(newData[i]);
      }
    }
  }();
  return DefaultDataProvider;
}();

var getItemSimply = function (rawData, startIndex, dimsDef, idx) {
  return rawData[idx];
};
var rawSourceItemGetterMap = (dataProvider_a = {}, dataProvider_a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = function (rawData, startIndex, dimsDef, idx) {
  return rawData[idx + startIndex];
}, dataProvider_a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = function (rawData, startIndex, dimsDef, idx, out) {
  idx += startIndex;
  var item = out || [];
  var data = rawData;
  for (var i = 0; i < data.length; i++) {
    var row = data[i];
    item[i] = row ? row[idx] : null;
  }
  return item;
}, dataProvider_a[SOURCE_FORMAT_OBJECT_ROWS] = getItemSimply, dataProvider_a[SOURCE_FORMAT_KEYED_COLUMNS] = function (rawData, startIndex, dimsDef, idx, out) {
  var item = out || [];
  for (var i = 0; i < dimsDef.length; i++) {
    var dimName = dimsDef[i].name;
    if (false) {}
    var col = rawData[dimName];
    item[i] = col ? col[idx] : null;
  }
  return item;
}, dataProvider_a[SOURCE_FORMAT_ORIGINAL] = getItemSimply, dataProvider_a);
function getRawSourceItemGetter(sourceFormat, seriesLayoutBy) {
  var method = rawSourceItemGetterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];
  if (false) {}
  return method;
}
var countSimply = function (rawData, startIndex, dimsDef) {
  return rawData.length;
};
var rawSourceDataCounterMap = (dataProvider_b = {}, dataProvider_b[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = function (rawData, startIndex, dimsDef) {
  return Math.max(0, rawData.length - startIndex);
}, dataProvider_b[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = function (rawData, startIndex, dimsDef) {
  var row = rawData[0];
  return row ? Math.max(0, row.length - startIndex) : 0;
}, dataProvider_b[SOURCE_FORMAT_OBJECT_ROWS] = countSimply, dataProvider_b[SOURCE_FORMAT_KEYED_COLUMNS] = function (rawData, startIndex, dimsDef) {
  var dimName = dimsDef[0].name;
  if (false) {}
  var col = rawData[dimName];
  return col ? col.length : 0;
}, dataProvider_b[SOURCE_FORMAT_ORIGINAL] = countSimply, dataProvider_b);
function getRawSourceDataCounter(sourceFormat, seriesLayoutBy) {
  var method = rawSourceDataCounterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];
  if (false) {}
  return method;
}
var getRawValueSimply = function (dataItem, dimIndex, property) {
  return dataItem[dimIndex];
};
var rawSourceValueGetterMap = (_c = {}, _c[SOURCE_FORMAT_ARRAY_ROWS] = getRawValueSimply, _c[SOURCE_FORMAT_OBJECT_ROWS] = function (dataItem, dimIndex, property) {
  return dataItem[property];
}, _c[SOURCE_FORMAT_KEYED_COLUMNS] = getRawValueSimply, _c[SOURCE_FORMAT_ORIGINAL] = function (dataItem, dimIndex, property) {
  // FIXME: In some case (markpoint in geo (geo-map.html)),
  // dataItem is {coord: [...]}
  var value = getDataItemValue(dataItem);
  return !(value instanceof Array) ? value : value[dimIndex];
}, _c[SOURCE_FORMAT_TYPED_ARRAY] = getRawValueSimply, _c);
function getRawSourceValueGetter(sourceFormat) {
  var method = rawSourceValueGetterMap[sourceFormat];
  if (false) {}
  return method;
}
function getMethodMapKey(sourceFormat, seriesLayoutBy) {
  return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS ? sourceFormat + '_' + seriesLayoutBy : sourceFormat;
}
// ??? FIXME can these logic be more neat: getRawValue, getRawDataItem,
// Consider persistent.
// Caution: why use raw value to display on label or tooltip?
// A reason is to avoid format. For example time value we do not know
// how to format is expected. More over, if stack is used, calculated
// value may be 0.91000000001, which have brings trouble to display.
// TODO: consider how to treat null/undefined/NaN when display?
function retrieveRawValue(data, dataIndex,
// If dimIndex is null/undefined, return OptionDataItem.
// Otherwise, return OptionDataValue.
dim) {
  if (!data) {
    return;
  }
  // Consider data may be not persistent.
  var dataItem = data.getRawDataItem(dataIndex);
  if (dataItem == null) {
    return;
  }
  var store = data.getStore();
  var sourceFormat = store.getSource().sourceFormat;
  if (dim != null) {
    var dimIndex = data.getDimensionIndex(dim);
    var property = store.getDimensionProperty(dimIndex);
    return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property);
  } else {
    var result = dataItem;
    if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {
      result = getDataItemValue(dataItem);
    }
    return result;
  }
}
/**
 * Compatible with some cases (in pie, map) like:
 * data: [{name: 'xx', value: 5, selected: true}, ...]
 * where only sourceFormat is 'original' and 'objectRows' supported.
 *
 * // TODO
 * Supported detail options in data item when using 'arrayRows'.
 *
 * @param data
 * @param dataIndex
 * @param attr like 'selected'
 */
function retrieveRawAttr(data, dataIndex, attr) {
  if (!data) {
    return;
  }
  var sourceFormat = data.getStore().getSource().sourceFormat;
  if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {
    return;
  }
  var dataItem = data.getRawDataItem(dataIndex);
  if (sourceFormat === SOURCE_FORMAT_ORIGINAL && !Object(util["isObject"])(dataItem)) {
    dataItem = null;
  }
  if (dataItem) {
    return dataItem[attr];
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/mixin/dataFormat.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var DIMENSION_LABEL_REG = /\{@(.+?)\}/g;
var dataFormat_DataFormatMixin = /** @class */function () {
  function DataFormatMixin() {}
  /**
   * Get params for formatter
   */
  DataFormatMixin.prototype.getDataParams = function (dataIndex, dataType) {
    var data = this.getData(dataType);
    var rawValue = this.getRawValue(dataIndex, dataType);
    var rawDataIndex = data.getRawIndex(dataIndex);
    var name = data.getName(dataIndex);
    var itemOpt = data.getRawDataItem(dataIndex);
    var style = data.getItemVisual(dataIndex, 'style');
    var color = style && style[data.getItemVisual(dataIndex, 'drawType') || 'fill'];
    var borderColor = style && style.stroke;
    var mainType = this.mainType;
    var isSeries = mainType === 'series';
    var userOutput = data.userOutput && data.userOutput.get();
    return {
      componentType: mainType,
      componentSubType: this.subType,
      componentIndex: this.componentIndex,
      seriesType: isSeries ? this.subType : null,
      seriesIndex: this.seriesIndex,
      seriesId: isSeries ? this.id : null,
      seriesName: isSeries ? this.name : null,
      name: name,
      dataIndex: rawDataIndex,
      data: itemOpt,
      dataType: dataType,
      value: rawValue,
      color: color,
      borderColor: borderColor,
      dimensionNames: userOutput ? userOutput.fullDimensions : null,
      encode: userOutput ? userOutput.encode : null,
      // Param name list for mapping `a`, `b`, `c`, `d`, `e`
      $vars: ['seriesName', 'name', 'value']
    };
  };
  /**
   * Format label
   * @param dataIndex
   * @param status 'normal' by default
   * @param dataType
   * @param labelDimIndex Only used in some chart that
   *        use formatter in different dimensions, like radar.
   * @param formatter Formatter given outside.
   * @return return null/undefined if no formatter
   */
  DataFormatMixin.prototype.getFormattedLabel = function (dataIndex, status, dataType, labelDimIndex, formatter, extendParams) {
    status = status || 'normal';
    var data = this.getData(dataType);
    var params = this.getDataParams(dataIndex, dataType);
    if (extendParams) {
      params.value = extendParams.interpolatedValue;
    }
    if (labelDimIndex != null && util["isArray"](params.value)) {
      params.value = params.value[labelDimIndex];
    }
    if (!formatter) {
      var itemModel = data.getItemModel(dataIndex);
      // @ts-ignore
      formatter = itemModel.get(status === 'normal' ? ['label', 'formatter'] : [status, 'label', 'formatter']);
    }
    if (util["isFunction"](formatter)) {
      params.status = status;
      params.dimensionIndex = labelDimIndex;
      return formatter(params);
    } else if (util["isString"](formatter)) {
      var str = formatTpl(formatter, params);
      // Support 'aaa{@[3]}bbb{@product}ccc'.
      // Do not support '}' in dim name util have to.
      return str.replace(DIMENSION_LABEL_REG, function (origin, dimStr) {
        var len = dimStr.length;
        var dimLoose = dimStr;
        if (dimLoose.charAt(0) === '[' && dimLoose.charAt(len - 1) === ']') {
          dimLoose = +dimLoose.slice(1, len - 1); // Also support: '[]' => 0
          if (false) {}
        }
        var val = retrieveRawValue(data, dataIndex, dimLoose);
        if (extendParams && util["isArray"](extendParams.interpolatedValue)) {
          var dimIndex = data.getDimensionIndex(dimLoose);
          if (dimIndex >= 0) {
            val = extendParams.interpolatedValue[dimIndex];
          }
        }
        return val != null ? val + '' : '';
      });
    }
  };
  /**
   * Get raw value in option
   */
  DataFormatMixin.prototype.getRawValue = function (idx, dataType) {
    return retrieveRawValue(this.getData(dataType), idx);
  };
  /**
   * Should be implemented.
   * @param {number} dataIndex
   * @param {boolean} [multipleSeries=false]
   * @param {string} [dataType]
   */
  DataFormatMixin.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    // Empty function
    return;
  };
  return DataFormatMixin;
}();

;
// PENDING: previously we accept this type when calling `formatTooltip`,
// but guess little chance has been used outside. Do we need to backward
// compat it?
// type TooltipFormatResultLegacyObject = {
//     // `html` means the markup language text, either in 'html' or 'richText'.
//     // The name `html` is not appropriate because in 'richText' it is not a HTML
//     // string. But still support it for backward compatibility.
//     html: string;
//     markers: Dictionary<ColorString>;
// };
/**
 * For backward compat, normalize the return from `formatTooltip`.
 */
function normalizeTooltipFormatResult(result) {
  var markupText;
  // let markers: Dictionary<ColorString>;
  var markupFragment;
  if (util["isObject"](result)) {
    if (result.type) {
      markupFragment = result;
    } else {
      if (false) {}
    }
    // else {
    //     markupText = (result as TooltipFormatResultLegacyObject).html;
    //     markers = (result as TooltipFormatResultLegacyObject).markers;
    //     if (markersExisting) {
    //         markers = zrUtil.merge(markersExisting, markers);
    //     }
    // }
  } else {
    markupText = result;
  }
  return {
    text: markupText,
    // markers: markers || markersExisting,
    frag: markupFragment
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/task.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

;
/**
 * @param {Object} define
 * @return See the return of `createTask`.
 */
function createTask(define) {
  return new task_Task(define);
}
var task_Task = /** @class */function () {
  function Task(define) {
    define = define || {};
    this._reset = define.reset;
    this._plan = define.plan;
    this._count = define.count;
    this._onDirty = define.onDirty;
    this._dirty = true;
  }
  /**
   * @param step Specified step.
   * @param skip Skip customer perform call.
   * @param modBy Sampling window size.
   * @param modDataCount Sampling count.
   * @return whether unfinished.
   */
  Task.prototype.perform = function (performArgs) {
    var upTask = this._upstream;
    var skip = performArgs && performArgs.skip;
    // TODO some refactor.
    // Pull data. Must pull data each time, because context.data
    // may be updated by Series.setData.
    if (this._dirty && upTask) {
      var context = this.context;
      context.data = context.outputData = upTask.context.outputData;
    }
    if (this.__pipeline) {
      this.__pipeline.currentTask = this;
    }
    var planResult;
    if (this._plan && !skip) {
      planResult = this._plan(this.context);
    }
    // Support sharding by mod, which changes the render sequence and makes the rendered graphic
    // elements uniformed distributed when progress, especially when moving or zooming.
    var lastModBy = normalizeModBy(this._modBy);
    var lastModDataCount = this._modDataCount || 0;
    var modBy = normalizeModBy(performArgs && performArgs.modBy);
    var modDataCount = performArgs && performArgs.modDataCount || 0;
    if (lastModBy !== modBy || lastModDataCount !== modDataCount) {
      planResult = 'reset';
    }
    function normalizeModBy(val) {
      !(val >= 1) && (val = 1); // jshint ignore:line
      return val;
    }
    var forceFirstProgress;
    if (this._dirty || planResult === 'reset') {
      this._dirty = false;
      forceFirstProgress = this._doReset(skip);
    }
    this._modBy = modBy;
    this._modDataCount = modDataCount;
    var step = performArgs && performArgs.step;
    if (upTask) {
      if (false) {}
      this._dueEnd = upTask._outputDueEnd;
    }
    // DataTask or overallTask
    else {
      if (false) {}
      this._dueEnd = this._count ? this._count(this.context) : Infinity;
    }
    // Note: Stubs, that its host overall task let it has progress, has progress.
    // If no progress, pass index from upstream to downstream each time plan called.
    if (this._progress) {
      var start = this._dueIndex;
      var end = Math.min(step != null ? this._dueIndex + step : Infinity, this._dueEnd);
      if (!skip && (forceFirstProgress || start < end)) {
        var progress = this._progress;
        if (Object(util["isArray"])(progress)) {
          for (var i = 0; i < progress.length; i++) {
            this._doProgress(progress[i], start, end, modBy, modDataCount);
          }
        } else {
          this._doProgress(progress, start, end, modBy, modDataCount);
        }
      }
      this._dueIndex = end;
      // If no `outputDueEnd`, assume that output data and
      // input data is the same, so use `dueIndex` as `outputDueEnd`.
      var outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : end;
      if (false) {}
      this._outputDueEnd = outputDueEnd;
    } else {
      // (1) Some overall task has no progress.
      // (2) Stubs, that its host overall task do not let it has progress, has no progress.
      // This should always be performed so it can be passed to downstream.
      this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd;
    }
    return this.unfinished();
  };
  Task.prototype.dirty = function () {
    this._dirty = true;
    this._onDirty && this._onDirty(this.context);
  };
  Task.prototype._doProgress = function (progress, start, end, modBy, modDataCount) {
    iterator.reset(start, end, modBy, modDataCount);
    this._callingProgress = progress;
    this._callingProgress({
      start: start,
      end: end,
      count: end - start,
      next: iterator.next
    }, this.context);
  };
  Task.prototype._doReset = function (skip) {
    this._dueIndex = this._outputDueEnd = this._dueEnd = 0;
    this._settedOutputEnd = null;
    var progress;
    var forceFirstProgress;
    if (!skip && this._reset) {
      progress = this._reset(this.context);
      if (progress && progress.progress) {
        forceFirstProgress = progress.forceFirstProgress;
        progress = progress.progress;
      }
      // To simplify no progress checking, array must has item.
      if (Object(util["isArray"])(progress) && !progress.length) {
        progress = null;
      }
    }
    this._progress = progress;
    this._modBy = this._modDataCount = null;
    var downstream = this._downstream;
    downstream && downstream.dirty();
    return forceFirstProgress;
  };
  Task.prototype.unfinished = function () {
    return this._progress && this._dueIndex < this._dueEnd;
  };
  /**
   * @param downTask The downstream task.
   * @return The downstream task.
   */
  Task.prototype.pipe = function (downTask) {
    if (false) {}
    // If already downstream, do not dirty downTask.
    if (this._downstream !== downTask || this._dirty) {
      this._downstream = downTask;
      downTask._upstream = this;
      downTask.dirty();
    }
  };
  Task.prototype.dispose = function () {
    if (this._disposed) {
      return;
    }
    this._upstream && (this._upstream._downstream = null);
    this._downstream && (this._downstream._upstream = null);
    this._dirty = false;
    this._disposed = true;
  };
  Task.prototype.getUpstream = function () {
    return this._upstream;
  };
  Task.prototype.getDownstream = function () {
    return this._downstream;
  };
  Task.prototype.setOutputEnd = function (end) {
    // This only happens in dataTask, dataZoom, map, currently.
    // where dataZoom do not set end each time, but only set
    // when reset. So we should record the set end, in case
    // that the stub of dataZoom perform again and earse the
    // set end by upstream.
    this._outputDueEnd = this._settedOutputEnd = end;
  };
  return Task;
}();

var iterator = function () {
  var end;
  var current;
  var modBy;
  var modDataCount;
  var winCount;
  var it = {
    reset: function (s, e, sStep, sCount) {
      current = s;
      end = e;
      modBy = sStep;
      modDataCount = sCount;
      winCount = Math.ceil(modDataCount / modBy);
      it.next = modBy > 1 && modDataCount > 0 ? modNext : sequentialNext;
    }
  };
  return it;
  function sequentialNext() {
    return current < end ? current++ : null;
  }
  function modNext() {
    var dataIndex = current % winCount * modBy + Math.ceil(current / winCount);
    var result = current >= end ? null : dataIndex < modDataCount ? dataIndex
    // If modDataCount is smaller than data.count() (consider `appendData` case),
    // Use normal linear rendering mode.
    : current;
    current++;
    return result;
  }
}();
// -----------------------------------------------------------------------------
// For stream debug (Should be commented out after used!)
// @usage: printTask(this, 'begin');
// @usage: printTask(this, null, {someExtraProp});
// @usage: Use `__idxInPipeline` as conditional breakpiont.
//
// window.printTask = function (task: any, prefix: string, extra: { [key: string]: unknown }): void {
//     window.ecTaskUID == null && (window.ecTaskUID = 0);
//     task.uidDebug == null && (task.uidDebug = `task_${window.ecTaskUID++}`);
//     task.agent && task.agent.uidDebug == null && (task.agent.uidDebug = `task_${window.ecTaskUID++}`);
//     let props = [];
//     if (task.__pipeline) {
//         let val = `${task.__idxInPipeline}/${task.__pipeline.tail.__idxInPipeline} ${task.agent ? '(stub)' : ''}`;
//         props.push({text: '__idxInPipeline/total', value: val});
//     } else {
//         let stubCount = 0;
//         task.agentStubMap.each(() => stubCount++);
//         props.push({text: 'idx', value: `overall (stubs: ${stubCount})`});
//     }
//     props.push({text: 'uid', value: task.uidDebug});
//     if (task.__pipeline) {
//         props.push({text: 'pipelineId', value: task.__pipeline.id});
//         task.agent && props.push(
//             {text: 'stubFor', value: task.agent.uidDebug}
//         );
//     }
//     props.push(
//         {text: 'dirty', value: task._dirty},
//         {text: 'dueIndex', value: task._dueIndex},
//         {text: 'dueEnd', value: task._dueEnd},
//         {text: 'outputDueEnd', value: task._outputDueEnd}
//     );
//     if (extra) {
//         Object.keys(extra).forEach(key => {
//             props.push({text: key, value: extra[key]});
//         });
//     }
//     let args = ['color: blue'];
//     let msg = `%c[${prefix || 'T'}] %c` + props.map(item => (
//         args.push('color: green', 'color: red'),
//         `${item.text}: %c${item.value}`
//     )).join('%c, ');
//     console.log.apply(console, [msg].concat(args));
//     // console.log(this);
// };
// window.printPipeline = function (task: any, prefix: string) {
//     const pipeline = task.__pipeline;
//     let currTask = pipeline.head;
//     while (currTask) {
//         window.printTask(currTask, prefix);
//         currTask = currTask._downstream;
//     }
// };
// window.showChain = function (chainHeadTask) {
//     var chain = [];
//     var task = chainHeadTask;
//     while (task) {
//         chain.push({
//             task: task,
//             up: task._upstream,
//             down: task._downstream,
//             idxInPipeline: task.__idxInPipeline
//         });
//         task = task._downstream;
//     }
//     return chain;
// };
// window.findTaskInChain = function (task, chainHeadTask) {
//     let chain = window.showChain(chainHeadTask);
//     let result = [];
//     for (let i = 0; i < chain.length; i++) {
//         let chainItem = chain[i];
//         if (chainItem.task === task) {
//             result.push(i);
//         }
//     }
//     return result;
// };
// window.printChainAEachInChainB = function (chainHeadTaskA, chainHeadTaskB) {
//     let chainA = window.showChain(chainHeadTaskA);
//     for (let i = 0; i < chainA.length; i++) {
//         console.log('chainAIdx:', i, 'inChainB:', window.findTaskInChain(chainA[i].task, chainHeadTaskB));
//     }
// };
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/dataValueHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



/**
 * Convert raw the value in to inner value in List.
 *
 * [Performance sensitive]
 *
 * [Caution]: this is the key logic of user value parser.
 * For backward compatibility, do not modify it until you have to!
 */
function parseDataValue(value,
// For high performance, do not omit the second param.
opt) {
  // Performance sensitive.
  var dimType = opt && opt.type;
  if (dimType === 'ordinal') {
    // If given value is a category string
    return value;
  }
  if (dimType === 'time'
  // spead up when using timestamp
  && !Object(util["isNumber"])(value) && value != null && value !== '-') {
    value = +parseDate(value);
  }
  // dimType defaults 'number'.
  // If dimType is not ordinal and value is null or undefined or NaN or '-',
  // parse to NaN.
  // number-like string (like ' 123 ') can be converted to a number.
  // where null/undefined or other string will be converted to NaN.
  return value == null || value === '' ? NaN
  // If string (like '-'), using '+' parse to NaN
  // If object, also parse to NaN
  : Number(value);
}
;
var valueParserMap = Object(util["createHashMap"])({
  'number': function (val) {
    // Do not use `numericToNumber` here. We have `numericToNumber` by default.
    // Here the number parser can have loose rule:
    // enable to cut suffix: "120px" => 120, "14%" => 14.
    return parseFloat(val);
  },
  'time': function (val) {
    // return timestamp.
    return +parseDate(val);
  },
  'trim': function (val) {
    return Object(util["isString"])(val) ? Object(util["trim"])(val) : val;
  }
});
function getRawValueParser(type) {
  return valueParserMap.get(type);
}
var ORDER_COMPARISON_OP_MAP = {
  lt: function (lval, rval) {
    return lval < rval;
  },
  lte: function (lval, rval) {
    return lval <= rval;
  },
  gt: function (lval, rval) {
    return lval > rval;
  },
  gte: function (lval, rval) {
    return lval >= rval;
  }
};
var dataValueHelper_FilterOrderComparator = /** @class */function () {
  function FilterOrderComparator(op, rval) {
    if (!Object(util["isNumber"])(rval)) {
      var errMsg = '';
      if (false) {}
      throwError(errMsg);
    }
    this._opFn = ORDER_COMPARISON_OP_MAP[op];
    this._rvalFloat = numericToNumber(rval);
  }
  // Performance sensitive.
  FilterOrderComparator.prototype.evaluate = function (lval) {
    // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.
    return Object(util["isNumber"])(lval) ? this._opFn(lval, this._rvalFloat) : this._opFn(numericToNumber(lval), this._rvalFloat);
  };
  return FilterOrderComparator;
}();
var dataValueHelper_SortOrderComparator = /** @class */function () {
  /**
   * @param order by default: 'asc'
   * @param incomparable by default: Always on the tail.
   *        That is, if 'asc' => 'max', if 'desc' => 'min'
   *        See the definition of "incomparable" in [SORT_COMPARISON_RULE].
   */
  function SortOrderComparator(order, incomparable) {
    var isDesc = order === 'desc';
    this._resultLT = isDesc ? 1 : -1;
    if (incomparable == null) {
      incomparable = isDesc ? 'min' : 'max';
    }
    this._incomparable = incomparable === 'min' ? -Infinity : Infinity;
  }
  // See [SORT_COMPARISON_RULE].
  // Performance sensitive.
  SortOrderComparator.prototype.evaluate = function (lval, rval) {
    // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.
    var lvalFloat = Object(util["isNumber"])(lval) ? lval : numericToNumber(lval);
    var rvalFloat = Object(util["isNumber"])(rval) ? rval : numericToNumber(rval);
    var lvalNotNumeric = isNaN(lvalFloat);
    var rvalNotNumeric = isNaN(rvalFloat);
    if (lvalNotNumeric) {
      lvalFloat = this._incomparable;
    }
    if (rvalNotNumeric) {
      rvalFloat = this._incomparable;
    }
    if (lvalNotNumeric && rvalNotNumeric) {
      var lvalIsStr = Object(util["isString"])(lval);
      var rvalIsStr = Object(util["isString"])(rval);
      if (lvalIsStr) {
        lvalFloat = rvalIsStr ? lval : 0;
      }
      if (rvalIsStr) {
        rvalFloat = lvalIsStr ? rval : 0;
      }
    }
    return lvalFloat < rvalFloat ? this._resultLT : lvalFloat > rvalFloat ? -this._resultLT : 0;
  };
  return SortOrderComparator;
}();

var dataValueHelper_FilterEqualityComparator = /** @class */function () {
  function FilterEqualityComparator(isEq, rval) {
    this._rval = rval;
    this._isEQ = isEq;
    this._rvalTypeof = typeof rval;
    this._rvalFloat = numericToNumber(rval);
  }
  // Performance sensitive.
  FilterEqualityComparator.prototype.evaluate = function (lval) {
    var eqResult = lval === this._rval;
    if (!eqResult) {
      var lvalTypeof = typeof lval;
      if (lvalTypeof !== this._rvalTypeof && (lvalTypeof === 'number' || this._rvalTypeof === 'number')) {
        eqResult = numericToNumber(lval) === this._rvalFloat;
      }
    }
    return this._isEQ ? eqResult : !eqResult;
  };
  return FilterEqualityComparator;
}();
/**
 * [FILTER_COMPARISON_RULE]
 * `lt`|`lte`|`gt`|`gte`:
 * + rval must be a number. And lval will be converted to number (`numericToNumber`) to compare.
 * `eq`:
 * + If same type, compare with `===`.
 * + If there is one number, convert to number (`numericToNumber`) to compare.
 * + Else return `false`.
 * `ne`:
 * + Not `eq`.
 *
 *
 * [SORT_COMPARISON_RULE]
 * All the values are grouped into three categories:
 * + "numeric" (number and numeric string)
 * + "non-numeric-string" (string that excluding numeric string)
 * + "others"
 * "numeric" vs "numeric": values are ordered by number order.
 * "non-numeric-string" vs "non-numeric-string": values are ordered by ES spec (#sec-abstract-relational-comparison).
 * "others" vs "others": do not change order (always return 0).
 * "numeric" vs "non-numeric-string": "non-numeric-string" is treated as "incomparable".
 * "number" vs "others": "others" is treated as "incomparable".
 * "non-numeric-string" vs "others": "others" is treated as "incomparable".
 * "incomparable" will be seen as -Infinity or Infinity (depends on the settings).
 * MEMO:
 *   Non-numeric string sort makes sense when we need to put the items with the same tag together.
 *   But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,
 *   So we treat "numeric-string" sorted by number order rather than string comparison.
 *
 *
 * [CHECK_LIST_OF_THE_RULE_DESIGN]
 * + Do not support string comparison until required. And also need to
 *   avoid the misleading of "2" > "12".
 * + Should avoid the misleading case:
 *   `" 22 " gte "22"` is `true` but `" 22 " eq "22"` is `false`.
 * + JS bad case should be avoided: null <= 0, [] <= 0, ' ' <= 0, ...
 * + Only "numeric" can be converted to comparable number, otherwise converted to NaN.
 *   See `util/number.ts#numericToNumber`.
 *
 * @return If `op` is not `RelationalOperator`, return null;
 */
function createFilterComparator(op, rval) {
  return op === 'eq' || op === 'ne' ? new dataValueHelper_FilterEqualityComparator(op === 'eq', rval) : Object(util["hasOwn"])(ORDER_COMPARISON_OP_MAP, op) ? new dataValueHelper_FilterOrderComparator(op, rval) : null;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/transform.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







/**
 * TODO: disable writable.
 * This structure will be exposed to users.
 */
var transform_ExternalSource = /** @class */function () {
  function ExternalSource() {}
  ExternalSource.prototype.getRawData = function () {
    // Only built-in transform available.
    throw new Error('not supported');
  };
  ExternalSource.prototype.getRawDataItem = function (dataIndex) {
    // Only built-in transform available.
    throw new Error('not supported');
  };
  ExternalSource.prototype.cloneRawData = function () {
    return;
  };
  /**
   * @return If dimension not found, return null/undefined.
   */
  ExternalSource.prototype.getDimensionInfo = function (dim) {
    return;
  };
  /**
   * dimensions defined if and only if either:
   * (a) dataset.dimensions are declared.
   * (b) dataset data include dimensions definitions in data (detected or via specified `sourceHeader`).
   * If dimensions are defined, `dimensionInfoAll` is corresponding to
   * the defined dimensions.
   * Otherwise, `dimensionInfoAll` is determined by data columns.
   * @return Always return an array (even empty array).
   */
  ExternalSource.prototype.cloneAllDimensionInfo = function () {
    return;
  };
  ExternalSource.prototype.count = function () {
    return;
  };
  /**
   * Only support by dimension index.
   * No need to support by dimension name in transform function,
   * because transform function is not case-specific, no need to use name literally.
   */
  ExternalSource.prototype.retrieveValue = function (dataIndex, dimIndex) {
    return;
  };
  ExternalSource.prototype.retrieveValueFromItem = function (dataItem, dimIndex) {
    return;
  };
  ExternalSource.prototype.convertValue = function (rawVal, dimInfo) {
    return parseDataValue(rawVal, dimInfo);
  };
  return ExternalSource;
}();

function createExternalSource(internalSource, externalTransform) {
  var extSource = new transform_ExternalSource();
  var data = internalSource.data;
  var sourceFormat = extSource.sourceFormat = internalSource.sourceFormat;
  var sourceHeaderCount = internalSource.startIndex;
  var errMsg = '';
  if (internalSource.seriesLayoutBy !== SERIES_LAYOUT_BY_COLUMN) {
    // For the logic simplicity in transformer, only 'culumn' is
    // supported in data transform. Otherwise, the `dimensionsDefine`
    // might be detected by 'row', which probably confuses users.
    if (false) {}
    throwError(errMsg);
  }
  // [MEMO]
  // Create a new dimensions structure for exposing.
  // Do not expose all dimension info to users directly.
  // Because the dimension is probably auto detected from data and not might reliable.
  // Should not lead the transformers to think that is reliable and return it.
  // See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.
  var dimensions = [];
  var dimsByName = {};
  var dimsDef = internalSource.dimensionsDefine;
  if (dimsDef) {
    Object(util["each"])(dimsDef, function (dimDef, idx) {
      var name = dimDef.name;
      var dimDefExt = {
        index: idx,
        name: name,
        displayName: dimDef.displayName
      };
      dimensions.push(dimDefExt);
      // Users probably do not specify dimension name. For simplicity, data transform
      // does not generate dimension name.
      if (name != null) {
        // Dimension name should not be duplicated.
        // For simplicity, data transform forbids name duplication, do not generate
        // new name like module `completeDimensions.ts` did, but just tell users.
        var errMsg_1 = '';
        if (Object(util["hasOwn"])(dimsByName, name)) {
          if (false) {}
          throwError(errMsg_1);
        }
        dimsByName[name] = dimDefExt;
      }
    });
  }
  // If dimension definitions are not defined and can not be detected.
  // e.g., pure data `[[11, 22], ...]`.
  else {
    for (var i = 0; i < internalSource.dimensionsDetectedCount || 0; i++) {
      // Do not generete name or anything others. The consequence process in
      // `transform` or `series` probably have there own name generation strategry.
      dimensions.push({
        index: i
      });
    }
  }
  // Implement public methods:
  var rawItemGetter = getRawSourceItemGetter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);
  if (externalTransform.__isBuiltIn) {
    extSource.getRawDataItem = function (dataIndex) {
      return rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex);
    };
    extSource.getRawData = Object(util["bind"])(getRawData, null, internalSource);
  }
  extSource.cloneRawData = Object(util["bind"])(cloneRawData, null, internalSource);
  var rawCounter = getRawSourceDataCounter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);
  extSource.count = Object(util["bind"])(rawCounter, null, data, sourceHeaderCount, dimensions);
  var rawValueGetter = getRawSourceValueGetter(sourceFormat);
  extSource.retrieveValue = function (dataIndex, dimIndex) {
    var rawItem = rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex);
    return retrieveValueFromItem(rawItem, dimIndex);
  };
  var retrieveValueFromItem = extSource.retrieveValueFromItem = function (dataItem, dimIndex) {
    if (dataItem == null) {
      return;
    }
    var dimDef = dimensions[dimIndex];
    // When `dimIndex` is `null`, `rawValueGetter` return the whole item.
    if (dimDef) {
      return rawValueGetter(dataItem, dimIndex, dimDef.name);
    }
  };
  extSource.getDimensionInfo = Object(util["bind"])(getDimensionInfo, null, dimensions, dimsByName);
  extSource.cloneAllDimensionInfo = Object(util["bind"])(cloneAllDimensionInfo, null, dimensions);
  return extSource;
}
function getRawData(upstream) {
  var sourceFormat = upstream.sourceFormat;
  if (!isSupportedSourceFormat(sourceFormat)) {
    var errMsg = '';
    if (false) {}
    throwError(errMsg);
  }
  return upstream.data;
}
function cloneRawData(upstream) {
  var sourceFormat = upstream.sourceFormat;
  var data = upstream.data;
  if (!isSupportedSourceFormat(sourceFormat)) {
    var errMsg = '';
    if (false) {}
    throwError(errMsg);
  }
  if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {
    var result = [];
    for (var i = 0, len = data.length; i < len; i++) {
      // Not strictly clone for performance
      result.push(data[i].slice());
    }
    return result;
  } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {
    var result = [];
    for (var i = 0, len = data.length; i < len; i++) {
      // Not strictly clone for performance
      result.push(Object(util["extend"])({}, data[i]));
    }
    return result;
  }
}
function getDimensionInfo(dimensions, dimsByName, dim) {
  if (dim == null) {
    return;
  }
  // Keep the same logic as `List::getDimension` did.
  if (Object(util["isNumber"])(dim)
  // If being a number-like string but not being defined a dimension name.
  || !isNaN(dim) && !Object(util["hasOwn"])(dimsByName, dim)) {
    return dimensions[dim];
  } else if (Object(util["hasOwn"])(dimsByName, dim)) {
    return dimsByName[dim];
  }
}
function cloneAllDimensionInfo(dimensions) {
  return Object(util["clone"])(dimensions);
}
var externalTransformMap = Object(util["createHashMap"])();
function registerExternalTransform(externalTransform) {
  externalTransform = Object(util["clone"])(externalTransform);
  var type = externalTransform.type;
  var errMsg = '';
  if (!type) {
    if (false) {}
    throwError(errMsg);
  }
  var typeParsed = type.split(':');
  if (typeParsed.length !== 2) {
    if (false) {}
    throwError(errMsg);
  }
  // Namespace 'echarts:xxx' is official namespace, where the transforms should
  // be called directly via 'xxx' rather than 'echarts:xxx'.
  var isBuiltIn = false;
  if (typeParsed[0] === 'echarts') {
    type = typeParsed[1];
    isBuiltIn = true;
  }
  externalTransform.__isBuiltIn = isBuiltIn;
  externalTransformMap.set(type, externalTransform);
}
function applyDataTransform(rawTransOption, sourceList, infoForPrint) {
  var pipedTransOption = normalizeToArray(rawTransOption);
  var pipeLen = pipedTransOption.length;
  var errMsg = '';
  if (!pipeLen) {
    if (false) {}
    throwError(errMsg);
  }
  for (var i = 0, len = pipeLen; i < len; i++) {
    var transOption = pipedTransOption[i];
    sourceList = applySingleDataTransform(transOption, sourceList, infoForPrint, pipeLen === 1 ? null : i);
    // piped transform only support single input, except the fist one.
    // piped transform only support single output, except the last one.
    if (i !== len - 1) {
      sourceList.length = Math.max(sourceList.length, 1);
    }
  }
  return sourceList;
}
function applySingleDataTransform(transOption, upSourceList, infoForPrint,
// If `pipeIndex` is null/undefined, no piped transform.
pipeIndex) {
  var errMsg = '';
  if (!upSourceList.length) {
    if (false) {}
    throwError(errMsg);
  }
  if (!Object(util["isObject"])(transOption)) {
    if (false) {}
    throwError(errMsg);
  }
  var transType = transOption.type;
  var externalTransform = externalTransformMap.get(transType);
  if (!externalTransform) {
    if (false) {}
    throwError(errMsg);
  }
  // Prepare source
  var extUpSourceList = Object(util["map"])(upSourceList, function (upSource) {
    return createExternalSource(upSource, externalTransform);
  });
  var resultList = normalizeToArray(externalTransform.transform({
    upstream: extUpSourceList[0],
    upstreamList: extUpSourceList,
    config: Object(util["clone"])(transOption.config)
  }));
  if (false) { var printStrArr; }
  return Object(util["map"])(resultList, function (result, resultIndex) {
    var errMsg = '';
    if (!Object(util["isObject"])(result)) {
      if (false) {}
      throwError(errMsg);
    }
    if (!result.data) {
      if (false) {}
      throwError(errMsg);
    }
    var sourceFormat = detectSourceFormat(result.data);
    if (!isSupportedSourceFormat(sourceFormat)) {
      if (false) {}
      throwError(errMsg);
    }
    var resultMetaRawOption;
    var firstUpSource = upSourceList[0];
    /**
     * Intuitively, the end users known the content of the original `dataset.source`,
     * calucating the transform result in mind.
     * Suppose the original `dataset.source` is:
     * ```js
     * [
     *     ['product', '2012', '2013', '2014', '2015'],
     *     ['AAA', 41.1, 30.4, 65.1, 53.3],
     *     ['BBB', 86.5, 92.1, 85.7, 83.1],
     *     ['CCC', 24.1, 67.2, 79.5, 86.4]
     * ]
     * ```
     * The dimension info have to be detected from the source data.
     * Some of the transformers (like filter, sort) will follow the dimension info
     * of upstream, while others use new dimensions (like aggregate).
     * Transformer can output a field `dimensions` to define the its own output dimensions.
     * We also allow transformers to ignore the output `dimensions` field, and
     * inherit the upstream dimensions definition. It can reduce the burden of handling
     * dimensions in transformers.
     *
     * See also [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.
     */
    if (firstUpSource && resultIndex === 0
    // If transformer returns `dimensions`, it means that the transformer has different
    // dimensions definitions. We do not inherit anything from upstream.
    && !result.dimensions) {
      var startIndex = firstUpSource.startIndex;
      // We copy the header of upstream to the result, because:
      // (1) The returned data always does not contain header line and can not be used
      // as dimension-detection. In this case we can not use "detected dimensions" of
      // upstream directly, because it might be detected based on different `seriesLayoutBy`.
      // (2) We should support that the series read the upstream source in `seriesLayoutBy: 'row'`.
      // So the original detected header should be add to the result, otherwise they can not be read.
      if (startIndex) {
        result.data = firstUpSource.data.slice(0, startIndex).concat(result.data);
      }
      resultMetaRawOption = {
        seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,
        sourceHeader: startIndex,
        dimensions: firstUpSource.metaRawOption.dimensions
      };
    } else {
      resultMetaRawOption = {
        seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,
        sourceHeader: 0,
        dimensions: result.dimensions
      };
    }
    return createSource(result.data, resultMetaRawOption, null);
  });
}
function isSupportedSourceFormat(sourceFormat) {
  return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS || sourceFormat === SOURCE_FORMAT_OBJECT_ROWS;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/DataStore.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var UNDEFINED = 'undefined';
/* global Float64Array, Int32Array, Uint32Array, Uint16Array */
// Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is
// different from the Ctor of typed array.
var CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array;
var CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array;
var CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array;
var CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Float64Array;
/**
 * Multi dimensional data store
 */
var dataCtors = {
  'float': CtorFloat64Array,
  'int': CtorInt32Array,
  // Ordinal data type can be string or int
  'ordinal': Array,
  'number': Array,
  'time': CtorFloat64Array
};
var defaultDimValueGetters;
function getIndicesCtor(rawCount) {
  // The possible max value in this._indicies is always this._rawCount despite of filtering.
  return rawCount > 65535 ? CtorUint32Array : CtorUint16Array;
}
;
function getInitialExtent() {
  return [Infinity, -Infinity];
}
;
function cloneChunk(originalChunk) {
  var Ctor = originalChunk.constructor;
  // Only shallow clone is enough when Array.
  return Ctor === Array ? originalChunk.slice() : new Ctor(originalChunk);
}
function prepareStore(store, dimIdx, dimType, end, append) {
  var DataCtor = dataCtors[dimType || 'float'];
  if (append) {
    var oldStore = store[dimIdx];
    var oldLen = oldStore && oldStore.length;
    if (!(oldLen === end)) {
      var newStore = new DataCtor(end);
      // The cost of the copy is probably inconsiderable
      // within the initial chunkSize.
      for (var j = 0; j < oldLen; j++) {
        newStore[j] = oldStore[j];
      }
      store[dimIdx] = newStore;
    }
  } else {
    store[dimIdx] = new DataCtor(end);
  }
}
;
/**
 * Basically, DataStore API keep immutable.
 */
var DataStore_DataStore = /** @class */function () {
  function DataStore() {
    this._chunks = [];
    // It will not be calculated until needed.
    this._rawExtent = [];
    this._extent = [];
    this._count = 0;
    this._rawCount = 0;
    this._calcDimNameToIdx = Object(util["createHashMap"])();
  }
  /**
   * Initialize from data
   */
  DataStore.prototype.initData = function (provider, inputDimensions, dimValueGetter) {
    if (false) {}
    this._provider = provider;
    // Clear
    this._chunks = [];
    this._indices = null;
    this.getRawIndex = this._getRawIdxIdentity;
    var source = provider.getSource();
    var defaultGetter = this.defaultDimValueGetter = defaultDimValueGetters[source.sourceFormat];
    // Default dim value getter
    this._dimValueGetter = dimValueGetter || defaultGetter;
    // Reset raw extent.
    this._rawExtent = [];
    var willRetrieveDataByName = shouldRetrieveDataByName(source);
    this._dimensions = Object(util["map"])(inputDimensions, function (dim) {
      if (false) {}
      return {
        // Only pick these two props. Not leak other properties like orderMeta.
        type: dim.type,
        property: dim.property
      };
    });
    this._initDataFromProvider(0, provider.count());
  };
  DataStore.prototype.getProvider = function () {
    return this._provider;
  };
  /**
   * Caution: even when a `source` instance owned by a series, the created data store
   * may still be shared by different sereis (the source hash does not use all `source`
   * props, see `sourceManager`). In this case, the `source` props that are not used in
   * hash (like `source.dimensionDefine`) probably only belongs to a certain series and
   * thus should not be fetch here.
   */
  DataStore.prototype.getSource = function () {
    return this._provider.getSource();
  };
  /**
   * @caution Only used in dataStack.
   */
  DataStore.prototype.ensureCalculationDimension = function (dimName, type) {
    var calcDimNameToIdx = this._calcDimNameToIdx;
    var dimensions = this._dimensions;
    var calcDimIdx = calcDimNameToIdx.get(dimName);
    if (calcDimIdx != null) {
      if (dimensions[calcDimIdx].type === type) {
        return calcDimIdx;
      }
    } else {
      calcDimIdx = dimensions.length;
    }
    dimensions[calcDimIdx] = {
      type: type
    };
    calcDimNameToIdx.set(dimName, calcDimIdx);
    this._chunks[calcDimIdx] = new dataCtors[type || 'float'](this._rawCount);
    this._rawExtent[calcDimIdx] = getInitialExtent();
    return calcDimIdx;
  };
  DataStore.prototype.collectOrdinalMeta = function (dimIdx, ordinalMeta) {
    var chunk = this._chunks[dimIdx];
    var dim = this._dimensions[dimIdx];
    var rawExtents = this._rawExtent;
    var offset = dim.ordinalOffset || 0;
    var len = chunk.length;
    if (offset === 0) {
      // We need to reset the rawExtent if collect is from start.
      // Because this dimension may be guessed as number and calcuating a wrong extent.
      rawExtents[dimIdx] = getInitialExtent();
    }
    var dimRawExtent = rawExtents[dimIdx];
    // Parse from previous data offset. len may be changed after appendData
    for (var i = offset; i < len; i++) {
      var val = chunk[i] = ordinalMeta.parseAndCollect(chunk[i]);
      if (!isNaN(val)) {
        dimRawExtent[0] = Math.min(val, dimRawExtent[0]);
        dimRawExtent[1] = Math.max(val, dimRawExtent[1]);
      }
    }
    dim.ordinalMeta = ordinalMeta;
    dim.ordinalOffset = len;
    dim.type = 'ordinal'; // Force to be ordinal
  };
  DataStore.prototype.getOrdinalMeta = function (dimIdx) {
    var dimInfo = this._dimensions[dimIdx];
    var ordinalMeta = dimInfo.ordinalMeta;
    return ordinalMeta;
  };
  DataStore.prototype.getDimensionProperty = function (dimIndex) {
    var item = this._dimensions[dimIndex];
    return item && item.property;
  };
  /**
   * Caution: Can be only called on raw data (before `this._indices` created).
   */
  DataStore.prototype.appendData = function (data) {
    if (false) {}
    var provider = this._provider;
    var start = this.count();
    provider.appendData(data);
    var end = provider.count();
    if (!provider.persistent) {
      end += start;
    }
    if (start < end) {
      this._initDataFromProvider(start, end, true);
    }
    return [start, end];
  };
  DataStore.prototype.appendValues = function (values, minFillLen) {
    var chunks = this._chunks;
    var dimensions = this._dimensions;
    var dimLen = dimensions.length;
    var rawExtent = this._rawExtent;
    var start = this.count();
    var end = start + Math.max(values.length, minFillLen || 0);
    for (var i = 0; i < dimLen; i++) {
      var dim = dimensions[i];
      prepareStore(chunks, i, dim.type, end, true);
    }
    var emptyDataItem = [];
    for (var idx = start; idx < end; idx++) {
      var sourceIdx = idx - start;
      // Store the data by dimensions
      for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) {
        var dim = dimensions[dimIdx];
        var val = defaultDimValueGetters.arrayRows.call(this, values[sourceIdx] || emptyDataItem, dim.property, sourceIdx, dimIdx);
        chunks[dimIdx][idx] = val;
        var dimRawExtent = rawExtent[dimIdx];
        val < dimRawExtent[0] && (dimRawExtent[0] = val);
        val > dimRawExtent[1] && (dimRawExtent[1] = val);
      }
    }
    this._rawCount = this._count = end;
    return {
      start: start,
      end: end
    };
  };
  DataStore.prototype._initDataFromProvider = function (start, end, append) {
    var provider = this._provider;
    var chunks = this._chunks;
    var dimensions = this._dimensions;
    var dimLen = dimensions.length;
    var rawExtent = this._rawExtent;
    var dimNames = Object(util["map"])(dimensions, function (dim) {
      return dim.property;
    });
    for (var i = 0; i < dimLen; i++) {
      var dim = dimensions[i];
      if (!rawExtent[i]) {
        rawExtent[i] = getInitialExtent();
      }
      prepareStore(chunks, i, dim.type, end, append);
    }
    if (provider.fillStorage) {
      provider.fillStorage(start, end, chunks, rawExtent);
    } else {
      var dataItem = [];
      for (var idx = start; idx < end; idx++) {
        // NOTICE: Try not to write things into dataItem
        dataItem = provider.getItem(idx, dataItem);
        // Each data item is value
        // [1, 2]
        // 2
        // Bar chart, line chart which uses category axis
        // only gives the 'y' value. 'x' value is the indices of category
        // Use a tempValue to normalize the value to be a (x, y) value
        // Store the data by dimensions
        for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) {
          var dimStorage = chunks[dimIdx];
          // PENDING NULL is empty or zero
          var val = this._dimValueGetter(dataItem, dimNames[dimIdx], idx, dimIdx);
          dimStorage[idx] = val;
          var dimRawExtent = rawExtent[dimIdx];
          val < dimRawExtent[0] && (dimRawExtent[0] = val);
          val > dimRawExtent[1] && (dimRawExtent[1] = val);
        }
      }
    }
    if (!provider.persistent && provider.clean) {
      // Clean unused data if data source is typed array.
      provider.clean();
    }
    this._rawCount = this._count = end;
    // Reset data extent
    this._extent = [];
  };
  DataStore.prototype.count = function () {
    return this._count;
  };
  /**
   * Get value. Return NaN if idx is out of range.
   */
  DataStore.prototype.get = function (dim, idx) {
    if (!(idx >= 0 && idx < this._count)) {
      return NaN;
    }
    var dimStore = this._chunks[dim];
    return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;
  };
  DataStore.prototype.getValues = function (dimensions, idx) {
    var values = [];
    var dimArr = [];
    if (idx == null) {
      idx = dimensions;
      // TODO get all from store?
      dimensions = [];
      // All dimensions
      for (var i = 0; i < this._dimensions.length; i++) {
        dimArr.push(i);
      }
    } else {
      dimArr = dimensions;
    }
    for (var i = 0, len = dimArr.length; i < len; i++) {
      values.push(this.get(dimArr[i], idx));
    }
    return values;
  };
  /**
   * @param dim concrete dim
   */
  DataStore.prototype.getByRawIndex = function (dim, rawIdx) {
    if (!(rawIdx >= 0 && rawIdx < this._rawCount)) {
      return NaN;
    }
    var dimStore = this._chunks[dim];
    return dimStore ? dimStore[rawIdx] : NaN;
  };
  /**
   * Get sum of data in one dimension
   */
  DataStore.prototype.getSum = function (dim) {
    var dimData = this._chunks[dim];
    var sum = 0;
    if (dimData) {
      for (var i = 0, len = this.count(); i < len; i++) {
        var value = this.get(dim, i);
        if (!isNaN(value)) {
          sum += value;
        }
      }
    }
    return sum;
  };
  /**
   * Get median of data in one dimension
   */
  DataStore.prototype.getMedian = function (dim) {
    var dimDataArray = [];
    // map all data of one dimension
    this.each([dim], function (val) {
      if (!isNaN(val)) {
        dimDataArray.push(val);
      }
    });
    // TODO
    // Use quick select?
    var sortedDimDataArray = dimDataArray.sort(function (a, b) {
      return a - b;
    });
    var len = this.count();
    // calculate median
    return len === 0 ? 0 : len % 2 === 1 ? sortedDimDataArray[(len - 1) / 2] : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2;
  };
  /**
   * Retrieve the index with given raw data index.
   */
  DataStore.prototype.indexOfRawIndex = function (rawIndex) {
    if (rawIndex >= this._rawCount || rawIndex < 0) {
      return -1;
    }
    if (!this._indices) {
      return rawIndex;
    }
    // Indices are ascending
    var indices = this._indices;
    // If rawIndex === dataIndex
    var rawDataIndex = indices[rawIndex];
    if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) {
      return rawIndex;
    }
    var left = 0;
    var right = this._count - 1;
    while (left <= right) {
      var mid = (left + right) / 2 | 0;
      if (indices[mid] < rawIndex) {
        left = mid + 1;
      } else if (indices[mid] > rawIndex) {
        right = mid - 1;
      } else {
        return mid;
      }
    }
    return -1;
  };
  /**
   * Retrieve the index of nearest value.
   * @param dim
   * @param value
   * @param [maxDistance=Infinity]
   * @return If and only if multiple indices have
   *         the same value, they are put to the result.
   */
  DataStore.prototype.indicesOfNearest = function (dim, value, maxDistance) {
    var chunks = this._chunks;
    var dimData = chunks[dim];
    var nearestIndices = [];
    if (!dimData) {
      return nearestIndices;
    }
    if (maxDistance == null) {
      maxDistance = Infinity;
    }
    var minDist = Infinity;
    var minDiff = -1;
    var nearestIndicesLen = 0;
    // Check the test case of `test/ut/spec/data/SeriesData.js`.
    for (var i = 0, len = this.count(); i < len; i++) {
      var dataIndex = this.getRawIndex(i);
      var diff = value - dimData[dataIndex];
      var dist = Math.abs(diff);
      if (dist <= maxDistance) {
        // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`,
        // we'd better not push both of them to `nearestIndices`, otherwise it is easy to
        // get more than one item in `nearestIndices` (more specifically, in `tooltip`).
        // So we choose the one that `diff >= 0` in this case.
        // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them
        // should be push to `nearestIndices`.
        if (dist < minDist || dist === minDist && diff >= 0 && minDiff < 0) {
          minDist = dist;
          minDiff = diff;
          nearestIndicesLen = 0;
        }
        if (diff === minDiff) {
          nearestIndices[nearestIndicesLen++] = i;
        }
      }
    }
    nearestIndices.length = nearestIndicesLen;
    return nearestIndices;
  };
  DataStore.prototype.getIndices = function () {
    var newIndices;
    var indices = this._indices;
    if (indices) {
      var Ctor = indices.constructor;
      var thisCount = this._count;
      // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`.
      if (Ctor === Array) {
        newIndices = new Ctor(thisCount);
        for (var i = 0; i < thisCount; i++) {
          newIndices[i] = indices[i];
        }
      } else {
        newIndices = new Ctor(indices.buffer, 0, thisCount);
      }
    } else {
      var Ctor = getIndicesCtor(this._rawCount);
      newIndices = new Ctor(this.count());
      for (var i = 0; i < newIndices.length; i++) {
        newIndices[i] = i;
      }
    }
    return newIndices;
  };
  /**
   * Data filter.
   */
  DataStore.prototype.filter = function (dims, cb) {
    if (!this._count) {
      return this;
    }
    var newStore = this.clone();
    var count = newStore.count();
    var Ctor = getIndicesCtor(newStore._rawCount);
    var newIndices = new Ctor(count);
    var value = [];
    var dimSize = dims.length;
    var offset = 0;
    var dim0 = dims[0];
    var chunks = newStore._chunks;
    for (var i = 0; i < count; i++) {
      var keep = void 0;
      var rawIdx = newStore.getRawIndex(i);
      // Simple optimization
      if (dimSize === 0) {
        keep = cb(i);
      } else if (dimSize === 1) {
        var val = chunks[dim0][rawIdx];
        keep = cb(val, i);
      } else {
        var k = 0;
        for (; k < dimSize; k++) {
          value[k] = chunks[dims[k]][rawIdx];
        }
        value[k] = i;
        keep = cb.apply(null, value);
      }
      if (keep) {
        newIndices[offset++] = rawIdx;
      }
    }
    // Set indices after filtered.
    if (offset < count) {
      newStore._indices = newIndices;
    }
    newStore._count = offset;
    // Reset data extent
    newStore._extent = [];
    newStore._updateGetRawIdx();
    return newStore;
  };
  /**
   * Select data in range. (For optimization of filter)
   * (Manually inline code, support 5 million data filtering in data zoom.)
   */
  DataStore.prototype.selectRange = function (range) {
    var newStore = this.clone();
    var len = newStore._count;
    if (!len) {
      return this;
    }
    var dims = Object(util["keys"])(range);
    var dimSize = dims.length;
    if (!dimSize) {
      return this;
    }
    var originalCount = newStore.count();
    var Ctor = getIndicesCtor(newStore._rawCount);
    var newIndices = new Ctor(originalCount);
    var offset = 0;
    var dim0 = dims[0];
    var min = range[dim0][0];
    var max = range[dim0][1];
    var storeArr = newStore._chunks;
    var quickFinished = false;
    if (!newStore._indices) {
      // Extreme optimization for common case. About 2x faster in chrome.
      var idx = 0;
      if (dimSize === 1) {
        var dimStorage = storeArr[dims[0]];
        for (var i = 0; i < len; i++) {
          var val = dimStorage[i];
          // NaN will not be filtered. Consider the case, in line chart, empty
          // value indicates the line should be broken. But for the case like
          // scatter plot, a data item with empty value will not be rendered,
          // but the axis extent may be effected if some other dim of the data
          // item has value. Fortunately it is not a significant negative effect.
          if (val >= min && val <= max || isNaN(val)) {
            newIndices[offset++] = idx;
          }
          idx++;
        }
        quickFinished = true;
      } else if (dimSize === 2) {
        var dimStorage = storeArr[dims[0]];
        var dimStorage2 = storeArr[dims[1]];
        var min2 = range[dims[1]][0];
        var max2 = range[dims[1]][1];
        for (var i = 0; i < len; i++) {
          var val = dimStorage[i];
          var val2 = dimStorage2[i];
          // Do not filter NaN, see comment above.
          if ((val >= min && val <= max || isNaN(val)) && (val2 >= min2 && val2 <= max2 || isNaN(val2))) {
            newIndices[offset++] = idx;
          }
          idx++;
        }
        quickFinished = true;
      }
    }
    if (!quickFinished) {
      if (dimSize === 1) {
        for (var i = 0; i < originalCount; i++) {
          var rawIndex = newStore.getRawIndex(i);
          var val = storeArr[dims[0]][rawIndex];
          // Do not filter NaN, see comment above.
          if (val >= min && val <= max || isNaN(val)) {
            newIndices[offset++] = rawIndex;
          }
        }
      } else {
        for (var i = 0; i < originalCount; i++) {
          var keep = true;
          var rawIndex = newStore.getRawIndex(i);
          for (var k = 0; k < dimSize; k++) {
            var dimk = dims[k];
            var val = storeArr[dimk][rawIndex];
            // Do not filter NaN, see comment above.
            if (val < range[dimk][0] || val > range[dimk][1]) {
              keep = false;
            }
          }
          if (keep) {
            newIndices[offset++] = newStore.getRawIndex(i);
          }
        }
      }
    }
    // Set indices after filtered.
    if (offset < originalCount) {
      newStore._indices = newIndices;
    }
    newStore._count = offset;
    // Reset data extent
    newStore._extent = [];
    newStore._updateGetRawIdx();
    return newStore;
  };
  // /**
  //  * Data mapping to a plain array
  //  */
  // mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] {
  //     const result: any[] = [];
  //     this.each(dims, function () {
  //         result.push(cb && (cb as MapArrayCb).apply(null, arguments));
  //     });
  //     return result;
  // }
  /**
   * Data mapping to a new List with given dimensions
   */
  DataStore.prototype.map = function (dims, cb) {
    // TODO only clone picked chunks.
    var target = this.clone(dims);
    this._updateDims(target, dims, cb);
    return target;
  };
  /**
   * @caution Danger!! Only used in dataStack.
   */
  DataStore.prototype.modify = function (dims, cb) {
    this._updateDims(this, dims, cb);
  };
  DataStore.prototype._updateDims = function (target, dims, cb) {
    var targetChunks = target._chunks;
    var tmpRetValue = [];
    var dimSize = dims.length;
    var dataCount = target.count();
    var values = [];
    var rawExtent = target._rawExtent;
    for (var i = 0; i < dims.length; i++) {
      rawExtent[dims[i]] = getInitialExtent();
    }
    for (var dataIndex = 0; dataIndex < dataCount; dataIndex++) {
      var rawIndex = target.getRawIndex(dataIndex);
      for (var k = 0; k < dimSize; k++) {
        values[k] = targetChunks[dims[k]][rawIndex];
      }
      values[dimSize] = dataIndex;
      var retValue = cb && cb.apply(null, values);
      if (retValue != null) {
        // a number or string (in oridinal dimension)?
        if (typeof retValue !== 'object') {
          tmpRetValue[0] = retValue;
          retValue = tmpRetValue;
        }
        for (var i = 0; i < retValue.length; i++) {
          var dim = dims[i];
          var val = retValue[i];
          var rawExtentOnDim = rawExtent[dim];
          var dimStore = targetChunks[dim];
          if (dimStore) {
            dimStore[rawIndex] = val;
          }
          if (val < rawExtentOnDim[0]) {
            rawExtentOnDim[0] = val;
          }
          if (val > rawExtentOnDim[1]) {
            rawExtentOnDim[1] = val;
          }
        }
      }
    }
  };
  /**
   * Large data down sampling using largest-triangle-three-buckets
   * @param {string} valueDimension
   * @param {number} targetCount
   */
  DataStore.prototype.lttbDownSample = function (valueDimension, rate) {
    var target = this.clone([valueDimension], true);
    var targetStorage = target._chunks;
    var dimStore = targetStorage[valueDimension];
    var len = this.count();
    var sampledIndex = 0;
    var frameSize = Math.floor(1 / rate);
    var currentRawIndex = this.getRawIndex(0);
    var maxArea;
    var area;
    var nextRawIndex;
    var newIndices = new (getIndicesCtor(this._rawCount))(Math.min((Math.ceil(len / frameSize) + 2) * 2, len));
    // First frame use the first data.
    newIndices[sampledIndex++] = currentRawIndex;
    for (var i = 1; i < len - 1; i += frameSize) {
      var nextFrameStart = Math.min(i + frameSize, len - 1);
      var nextFrameEnd = Math.min(i + frameSize * 2, len);
      var avgX = (nextFrameEnd + nextFrameStart) / 2;
      var avgY = 0;
      for (var idx = nextFrameStart; idx < nextFrameEnd; idx++) {
        var rawIndex = this.getRawIndex(idx);
        var y = dimStore[rawIndex];
        if (isNaN(y)) {
          continue;
        }
        avgY += y;
      }
      avgY /= nextFrameEnd - nextFrameStart;
      var frameStart = i;
      var frameEnd = Math.min(i + frameSize, len);
      var pointAX = i - 1;
      var pointAY = dimStore[currentRawIndex];
      maxArea = -1;
      nextRawIndex = frameStart;
      var firstNaNIndex = -1;
      var countNaN = 0;
      // Find a point from current frame that construct a triangle with largest area with previous selected point
      // And the average of next frame.
      for (var idx = frameStart; idx < frameEnd; idx++) {
        var rawIndex = this.getRawIndex(idx);
        var y = dimStore[rawIndex];
        if (isNaN(y)) {
          countNaN++;
          if (firstNaNIndex < 0) {
            firstNaNIndex = rawIndex;
          }
          continue;
        }
        // Calculate triangle area over three buckets
        area = Math.abs((pointAX - avgX) * (y - pointAY) - (pointAX - idx) * (avgY - pointAY));
        if (area > maxArea) {
          maxArea = area;
          nextRawIndex = rawIndex; // Next a is this b
        }
      }
      if (countNaN > 0 && countNaN < frameEnd - frameStart) {
        // Append first NaN point in every bucket.
        // It is necessary to ensure the correct order of indices.
        newIndices[sampledIndex++] = Math.min(firstNaNIndex, nextRawIndex);
        nextRawIndex = Math.max(firstNaNIndex, nextRawIndex);
      }
      newIndices[sampledIndex++] = nextRawIndex;
      currentRawIndex = nextRawIndex; // This a is the next a (chosen b)
    }
    // First frame use the last data.
    newIndices[sampledIndex++] = this.getRawIndex(len - 1);
    target._count = sampledIndex;
    target._indices = newIndices;
    target.getRawIndex = this._getRawIdx;
    return target;
  };
  /**
   * Large data down sampling using min-max
   * @param {string} valueDimension
   * @param {number} rate
   */
  DataStore.prototype.minmaxDownSample = function (valueDimension, rate) {
    var target = this.clone([valueDimension], true);
    var targetStorage = target._chunks;
    var frameSize = Math.floor(1 / rate);
    var dimStore = targetStorage[valueDimension];
    var len = this.count();
    // Each frame results in 2 data points, one for min and one for max
    var newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) * 2);
    var offset = 0;
    for (var i = 0; i < len; i += frameSize) {
      var minIndex = i;
      var minValue = dimStore[this.getRawIndex(minIndex)];
      var maxIndex = i;
      var maxValue = dimStore[this.getRawIndex(maxIndex)];
      var thisFrameSize = frameSize;
      // Handle final smaller frame
      if (i + frameSize > len) {
        thisFrameSize = len - i;
      }
      // Determine min and max within the current frame
      for (var k = 0; k < thisFrameSize; k++) {
        var rawIndex = this.getRawIndex(i + k);
        var value = dimStore[rawIndex];
        if (value < minValue) {
          minValue = value;
          minIndex = i + k;
        }
        if (value > maxValue) {
          maxValue = value;
          maxIndex = i + k;
        }
      }
      var rawMinIndex = this.getRawIndex(minIndex);
      var rawMaxIndex = this.getRawIndex(maxIndex);
      // Set the order of the min and max values, based on their ordering in the frame
      if (minIndex < maxIndex) {
        newIndices[offset++] = rawMinIndex;
        newIndices[offset++] = rawMaxIndex;
      } else {
        newIndices[offset++] = rawMaxIndex;
        newIndices[offset++] = rawMinIndex;
      }
    }
    target._count = offset;
    target._indices = newIndices;
    target._updateGetRawIdx();
    return target;
  };
  /**
   * Large data down sampling on given dimension
   * @param sampleIndex Sample index for name and id
   */
  DataStore.prototype.downSample = function (dimension, rate, sampleValue, sampleIndex) {
    var target = this.clone([dimension], true);
    var targetStorage = target._chunks;
    var frameValues = [];
    var frameSize = Math.floor(1 / rate);
    var dimStore = targetStorage[dimension];
    var len = this.count();
    var rawExtentOnDim = target._rawExtent[dimension] = getInitialExtent();
    var newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize));
    var offset = 0;
    for (var i = 0; i < len; i += frameSize) {
      // Last frame
      if (frameSize > len - i) {
        frameSize = len - i;
        frameValues.length = frameSize;
      }
      for (var k = 0; k < frameSize; k++) {
        var dataIdx = this.getRawIndex(i + k);
        frameValues[k] = dimStore[dataIdx];
      }
      var value = sampleValue(frameValues);
      var sampleFrameIdx = this.getRawIndex(Math.min(i + sampleIndex(frameValues, value) || 0, len - 1));
      // Only write value on the filtered data
      dimStore[sampleFrameIdx] = value;
      if (value < rawExtentOnDim[0]) {
        rawExtentOnDim[0] = value;
      }
      if (value > rawExtentOnDim[1]) {
        rawExtentOnDim[1] = value;
      }
      newIndices[offset++] = sampleFrameIdx;
    }
    target._count = offset;
    target._indices = newIndices;
    target._updateGetRawIdx();
    return target;
  };
  /**
   * Data iteration
   * @param ctx default this
   * @example
   *  list.each('x', function (x, idx) {});
   *  list.each(['x', 'y'], function (x, y, idx) {});
   *  list.each(function (idx) {})
   */
  DataStore.prototype.each = function (dims, cb) {
    if (!this._count) {
      return;
    }
    var dimSize = dims.length;
    var chunks = this._chunks;
    for (var i = 0, len = this.count(); i < len; i++) {
      var rawIdx = this.getRawIndex(i);
      // Simple optimization
      switch (dimSize) {
        case 0:
          cb(i);
          break;
        case 1:
          cb(chunks[dims[0]][rawIdx], i);
          break;
        case 2:
          cb(chunks[dims[0]][rawIdx], chunks[dims[1]][rawIdx], i);
          break;
        default:
          var k = 0;
          var value = [];
          for (; k < dimSize; k++) {
            value[k] = chunks[dims[k]][rawIdx];
          }
          // Index
          value[k] = i;
          cb.apply(null, value);
      }
    }
  };
  /**
   * Get extent of data in one dimension
   */
  DataStore.prototype.getDataExtent = function (dim) {
    // Make sure use concrete dim as cache name.
    var dimData = this._chunks[dim];
    var initialExtent = getInitialExtent();
    if (!dimData) {
      return initialExtent;
    }
    // Make more strict checkings to ensure hitting cache.
    var currEnd = this.count();
    // Consider the most cases when using data zoom, `getDataExtent`
    // happened before filtering. We cache raw extent, which is not
    // necessary to be cleared and recalculated when restore data.
    var useRaw = !this._indices;
    var dimExtent;
    if (useRaw) {
      return this._rawExtent[dim].slice();
    }
    dimExtent = this._extent[dim];
    if (dimExtent) {
      return dimExtent.slice();
    }
    dimExtent = initialExtent;
    var min = dimExtent[0];
    var max = dimExtent[1];
    for (var i = 0; i < currEnd; i++) {
      var rawIdx = this.getRawIndex(i);
      var value = dimData[rawIdx];
      value < min && (min = value);
      value > max && (max = value);
    }
    dimExtent = [min, max];
    this._extent[dim] = dimExtent;
    return dimExtent;
  };
  /**
   * Get raw data item
   */
  DataStore.prototype.getRawDataItem = function (idx) {
    var rawIdx = this.getRawIndex(idx);
    if (!this._provider.persistent) {
      var val = [];
      var chunks = this._chunks;
      for (var i = 0; i < chunks.length; i++) {
        val.push(chunks[i][rawIdx]);
      }
      return val;
    } else {
      return this._provider.getItem(rawIdx);
    }
  };
  /**
   * Clone shallow.
   *
   * @param clonedDims Determine which dims to clone. Will share the data if not specified.
   */
  DataStore.prototype.clone = function (clonedDims, ignoreIndices) {
    var target = new DataStore();
    var chunks = this._chunks;
    var clonedDimsMap = clonedDims && Object(util["reduce"])(clonedDims, function (obj, dimIdx) {
      obj[dimIdx] = true;
      return obj;
    }, {});
    if (clonedDimsMap) {
      for (var i = 0; i < chunks.length; i++) {
        // Not clone if dim is not picked.
        target._chunks[i] = !clonedDimsMap[i] ? chunks[i] : cloneChunk(chunks[i]);
      }
    } else {
      target._chunks = chunks;
    }
    this._copyCommonProps(target);
    if (!ignoreIndices) {
      target._indices = this._cloneIndices();
    }
    target._updateGetRawIdx();
    return target;
  };
  DataStore.prototype._copyCommonProps = function (target) {
    target._count = this._count;
    target._rawCount = this._rawCount;
    target._provider = this._provider;
    target._dimensions = this._dimensions;
    target._extent = Object(util["clone"])(this._extent);
    target._rawExtent = Object(util["clone"])(this._rawExtent);
  };
  DataStore.prototype._cloneIndices = function () {
    if (this._indices) {
      var Ctor = this._indices.constructor;
      var indices = void 0;
      if (Ctor === Array) {
        var thisCount = this._indices.length;
        indices = new Ctor(thisCount);
        for (var i = 0; i < thisCount; i++) {
          indices[i] = this._indices[i];
        }
      } else {
        indices = new Ctor(this._indices);
      }
      return indices;
    }
    return null;
  };
  DataStore.prototype._getRawIdxIdentity = function (idx) {
    return idx;
  };
  DataStore.prototype._getRawIdx = function (idx) {
    if (idx < this._count && idx >= 0) {
      return this._indices[idx];
    }
    return -1;
  };
  DataStore.prototype._updateGetRawIdx = function () {
    this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity;
  };
  DataStore.internalField = function () {
    function getDimValueSimply(dataItem, property, dataIndex, dimIndex) {
      return parseDataValue(dataItem[dimIndex], this._dimensions[dimIndex]);
    }
    defaultDimValueGetters = {
      arrayRows: getDimValueSimply,
      objectRows: function (dataItem, property, dataIndex, dimIndex) {
        return parseDataValue(dataItem[property], this._dimensions[dimIndex]);
      },
      keyedColumns: getDimValueSimply,
      original: function (dataItem, property, dataIndex, dimIndex) {
        // Performance sensitive, do not use modelUtil.getDataItemValue.
        // If dataItem is an plain object with no value field, the let `value`
        // will be assigned with the object, but it will be tread correctly
        // in the `convertValue`.
        var value = dataItem && (dataItem.value == null ? dataItem : dataItem.value);
        return parseDataValue(value instanceof Array ? value[dimIndex]
        // If value is a single number or something else not array.
        : value, this._dimensions[dimIndex]);
      },
      typedArray: function (dataItem, property, dataIndex, dimIndex) {
        return dataItem[dimIndex];
      }
    };
  }();
  return DataStore;
}();
/* harmony default export */ var data_DataStore = (DataStore_DataStore);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/sourceManager.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







/**
 * [REQUIREMENT_MEMO]:
 * (0) `metaRawOption` means `dimensions`/`sourceHeader`/`seriesLayoutBy` in raw option.
 * (1) Keep support the feature: `metaRawOption` can be specified both on `series` and
 * `root-dataset`. Them on `series` has higher priority.
 * (2) Do not support to set `metaRawOption` on a `non-root-dataset`, because it might
 * confuse users: whether those props indicate how to visit the upstream source or visit
 * the transform result source, and some transforms has nothing to do with these props,
 * and some transforms might have multiple upstream.
 * (3) Transforms should specify `metaRawOption` in each output, just like they can be
 * declared in `root-dataset`.
 * (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms.
 * That is for reducing complexity in transforms.
 * PENDING: Whether to provide transposition transform?
 *
 * [IMPLEMENTAION_MEMO]:
 * "sourceVisitConfig" are calculated from `metaRawOption` and `data`.
 * They will not be calculated until `source` is about to be visited (to prevent from
 * duplicate calcuation). `source` is visited only in series and input to transforms.
 *
 * [DIMENSION_INHERIT_RULE]:
 * By default the dimensions are inherited from ancestors, unless a transform return
 * a new dimensions definition.
 * Consider the case:
 * ```js
 * dataset: [{
 *     source: [ ['Product', 'Sales', 'Prise'], ['Cookies', 321, 44.21], ...]
 * }, {
 *     transform: { type: 'filter', ... }
 * }]
 * dataset: [{
 *     dimension: ['Product', 'Sales', 'Prise'],
 *     source: [ ['Cookies', 321, 44.21], ...]
 * }, {
 *     transform: { type: 'filter', ... }
 * }]
 * ```
 * The two types of option should have the same behavior after transform.
 *
 *
 * [SCENARIO]:
 * (1) Provide source data directly:
 * ```js
 * series: {
 *     encode: {...},
 *     dimensions: [...]
 *     seriesLayoutBy: 'row',
 *     data: [[...]]
 * }
 * ```
 * (2) Series refer to dataset.
 * ```js
 * series: [{
 *     encode: {...}
 *     // Ignore datasetIndex means `datasetIndex: 0`
 *     // and the dimensions defination in dataset is used
 * }, {
 *     encode: {...},
 *     seriesLayoutBy: 'column',
 *     datasetIndex: 1
 * }]
 * ```
 * (3) dataset transform
 * ```js
 * dataset: [{
 *     source: [...]
 * }, {
 *     source: [...]
 * }, {
 *     // By default from 0.
 *     transform: { type: 'filter', config: {...} }
 * }, {
 *     // Piped.
 *     transform: [
 *         { type: 'filter', config: {...} },
 *         { type: 'sort', config: {...} }
 *     ]
 * }, {
 *     id: 'regressionData',
 *     fromDatasetIndex: 1,
 *     // Third-party transform
 *     transform: { type: 'ecStat:regression', config: {...} }
 * }, {
 *     // retrieve the extra result.
 *     id: 'regressionFormula',
 *     fromDatasetId: 'regressionData',
 *     fromTransformResult: 1
 * }]
 * ```
 */
var sourceManager_SourceManager = /** @class */function () {
  function SourceManager(sourceHost) {
    // Cached source. Do not repeat calculating if not dirty.
    this._sourceList = [];
    this._storeList = [];
    // version sign of each upstream source manager.
    this._upstreamSignList = [];
    this._versionSignBase = 0;
    this._dirty = true;
    this._sourceHost = sourceHost;
  }
  /**
   * Mark dirty.
   */
  SourceManager.prototype.dirty = function () {
    this._setLocalSource([], []);
    this._storeList = [];
    this._dirty = true;
  };
  SourceManager.prototype._setLocalSource = function (sourceList, upstreamSignList) {
    this._sourceList = sourceList;
    this._upstreamSignList = upstreamSignList;
    this._versionSignBase++;
    if (this._versionSignBase > 9e10) {
      this._versionSignBase = 0;
    }
  };
  /**
   * For detecting whether the upstream source is dirty, so that
   * the local cached source (in `_sourceList`) should be discarded.
   */
  SourceManager.prototype._getVersionSign = function () {
    return this._sourceHost.uid + '_' + this._versionSignBase;
  };
  /**
   * Always return a source instance. Otherwise throw error.
   */
  SourceManager.prototype.prepareSource = function () {
    // For the case that call `setOption` multiple time but no data changed,
    // cache the result source to prevent from repeating transform.
    if (this._isDirty()) {
      this._createSource();
      this._dirty = false;
    }
  };
  SourceManager.prototype._createSource = function () {
    this._setLocalSource([], []);
    var sourceHost = this._sourceHost;
    var upSourceMgrList = this._getUpstreamSourceManagers();
    var hasUpstream = !!upSourceMgrList.length;
    var resultSourceList;
    var upstreamSignList;
    if (isSeries(sourceHost)) {
      var seriesModel = sourceHost;
      var data = void 0;
      var sourceFormat = void 0;
      var upSource = void 0;
      // Has upstream dataset
      if (hasUpstream) {
        var upSourceMgr = upSourceMgrList[0];
        upSourceMgr.prepareSource();
        upSource = upSourceMgr.getSource();
        data = upSource.data;
        sourceFormat = upSource.sourceFormat;
        upstreamSignList = [upSourceMgr._getVersionSign()];
      }
      // Series data is from own.
      else {
        data = seriesModel.get('data', true);
        sourceFormat = Object(util["isTypedArray"])(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL;
        upstreamSignList = [];
      }
      // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root.
      var newMetaRawOption = this._getSourceMetaRawOption() || {};
      var upMetaRawOption = upSource && upSource.metaRawOption || {};
      var seriesLayoutBy = Object(util["retrieve2"])(newMetaRawOption.seriesLayoutBy, upMetaRawOption.seriesLayoutBy) || null;
      var sourceHeader = Object(util["retrieve2"])(newMetaRawOption.sourceHeader, upMetaRawOption.sourceHeader);
      // Note here we should not use `upSource.dimensionsDefine`. Consider the case:
      // `upSource.dimensionsDefine` is detected by `seriesLayoutBy: 'column'`,
      // but series need `seriesLayoutBy: 'row'`.
      var dimensions = Object(util["retrieve2"])(newMetaRawOption.dimensions, upMetaRawOption.dimensions);
      // We share source with dataset as much as possible
      // to avoid extra memory cost of high dimensional data.
      var needsCreateSource = seriesLayoutBy !== upMetaRawOption.seriesLayoutBy || !!sourceHeader !== !!upMetaRawOption.sourceHeader || dimensions;
      resultSourceList = needsCreateSource ? [createSource(data, {
        seriesLayoutBy: seriesLayoutBy,
        sourceHeader: sourceHeader,
        dimensions: dimensions
      }, sourceFormat)] : [];
    } else {
      var datasetModel = sourceHost;
      // Has upstream dataset.
      if (hasUpstream) {
        var result = this._applyTransform(upSourceMgrList);
        resultSourceList = result.sourceList;
        upstreamSignList = result.upstreamSignList;
      }
      // Is root dataset.
      else {
        var sourceData = datasetModel.get('source', true);
        resultSourceList = [createSource(sourceData, this._getSourceMetaRawOption(), null)];
        upstreamSignList = [];
      }
    }
    if (false) {}
    this._setLocalSource(resultSourceList, upstreamSignList);
  };
  SourceManager.prototype._applyTransform = function (upMgrList) {
    var datasetModel = this._sourceHost;
    var transformOption = datasetModel.get('transform', true);
    var fromTransformResult = datasetModel.get('fromTransformResult', true);
    if (false) {}
    if (fromTransformResult != null) {
      var errMsg = '';
      if (upMgrList.length !== 1) {
        if (false) {}
        doThrow(errMsg);
      }
    }
    var sourceList;
    var upSourceList = [];
    var upstreamSignList = [];
    Object(util["each"])(upMgrList, function (upMgr) {
      upMgr.prepareSource();
      var upSource = upMgr.getSource(fromTransformResult || 0);
      var errMsg = '';
      if (fromTransformResult != null && !upSource) {
        if (false) {}
        doThrow(errMsg);
      }
      upSourceList.push(upSource);
      upstreamSignList.push(upMgr._getVersionSign());
    });
    if (transformOption) {
      sourceList = applyDataTransform(transformOption, upSourceList, {
        datasetIndex: datasetModel.componentIndex
      });
    } else if (fromTransformResult != null) {
      sourceList = [cloneSourceShallow(upSourceList[0])];
    }
    return {
      sourceList: sourceList,
      upstreamSignList: upstreamSignList
    };
  };
  SourceManager.prototype._isDirty = function () {
    if (this._dirty) {
      return true;
    }
    // All sourceList is from the some upstream.
    var upSourceMgrList = this._getUpstreamSourceManagers();
    for (var i = 0; i < upSourceMgrList.length; i++) {
      var upSrcMgr = upSourceMgrList[i];
      if (
      // Consider the case that there is ancestor diry, call it recursively.
      // The performance is probably not an issue because usually the chain is not long.
      upSrcMgr._isDirty() || this._upstreamSignList[i] !== upSrcMgr._getVersionSign()) {
        return true;
      }
    }
  };
  /**
   * @param sourceIndex By default 0, means "main source".
   *                    In most cases there is only one source.
   */
  SourceManager.prototype.getSource = function (sourceIndex) {
    sourceIndex = sourceIndex || 0;
    var source = this._sourceList[sourceIndex];
    if (!source) {
      // Series may share source instance with dataset.
      var upSourceMgrList = this._getUpstreamSourceManagers();
      return upSourceMgrList[0] && upSourceMgrList[0].getSource(sourceIndex);
    }
    return source;
  };
  /**
   *
   * Get a data store which can be shared across series.
   * Only available for series.
   *
   * @param seriesDimRequest Dimensions that are generated in series.
   *        Should have been sorted by `storeDimIndex` asc.
   */
  SourceManager.prototype.getSharedDataStore = function (seriesDimRequest) {
    if (false) {}
    var schema = seriesDimRequest.makeStoreSchema();
    return this._innerGetDataStore(schema.dimensions, seriesDimRequest.source, schema.hash);
  };
  SourceManager.prototype._innerGetDataStore = function (storeDims, seriesSource, sourceReadKey) {
    // TODO Can use other sourceIndex?
    var sourceIndex = 0;
    var storeList = this._storeList;
    var cachedStoreMap = storeList[sourceIndex];
    if (!cachedStoreMap) {
      cachedStoreMap = storeList[sourceIndex] = {};
    }
    var cachedStore = cachedStoreMap[sourceReadKey];
    if (!cachedStore) {
      var upSourceMgr = this._getUpstreamSourceManagers()[0];
      if (isSeries(this._sourceHost) && upSourceMgr) {
        cachedStore = upSourceMgr._innerGetDataStore(storeDims, seriesSource, sourceReadKey);
      } else {
        cachedStore = new data_DataStore();
        // Always create store from source of series.
        cachedStore.initData(new dataProvider_DefaultDataProvider(seriesSource, storeDims.length), storeDims);
      }
      cachedStoreMap[sourceReadKey] = cachedStore;
    }
    return cachedStore;
  };
  /**
   * PENDING: Is it fast enough?
   * If no upstream, return empty array.
   */
  SourceManager.prototype._getUpstreamSourceManagers = function () {
    // Always get the relationship from the raw option.
    // Do not cache the link of the dependency graph, so that
    // there is no need to update them when change happens.
    var sourceHost = this._sourceHost;
    if (isSeries(sourceHost)) {
      var datasetModel = querySeriesUpstreamDatasetModel(sourceHost);
      return !datasetModel ? [] : [datasetModel.getSourceManager()];
    } else {
      return Object(util["map"])(queryDatasetUpstreamDatasetModels(sourceHost), function (datasetModel) {
        return datasetModel.getSourceManager();
      });
    }
  };
  SourceManager.prototype._getSourceMetaRawOption = function () {
    var sourceHost = this._sourceHost;
    var seriesLayoutBy;
    var sourceHeader;
    var dimensions;
    if (isSeries(sourceHost)) {
      seriesLayoutBy = sourceHost.get('seriesLayoutBy', true);
      sourceHeader = sourceHost.get('sourceHeader', true);
      dimensions = sourceHost.get('dimensions', true);
    }
    // See [REQUIREMENT_MEMO], `non-root-dataset` do not support them.
    else if (!this._getUpstreamSourceManagers().length) {
      var model = sourceHost;
      seriesLayoutBy = model.get('seriesLayoutBy', true);
      sourceHeader = model.get('sourceHeader', true);
      dimensions = model.get('dimensions', true);
    }
    return {
      seriesLayoutBy: seriesLayoutBy,
      sourceHeader: sourceHeader,
      dimensions: dimensions
    };
  };
  return SourceManager;
}();

// Call this method after `super.init` and `super.mergeOption` to
// disable the transform merge, but do not disable transform clone from rawOption.
function disableTransformOptionMerge(datasetModel) {
  var transformOption = datasetModel.option.transform;
  transformOption && Object(util["setAsPrimitive"])(datasetModel.option.transform);
}
function isSeries(sourceHost) {
  // Avoid circular dependency with Series.ts
  return sourceHost.mainType === 'series';
}
function doThrow(errMsg) {
  throw new Error(errMsg);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var TOOLTIP_LINE_HEIGHT_CSS = 'line-height:1';
function getTooltipLineHeight(textStyle) {
  var lineHeight = textStyle.lineHeight;
  if (lineHeight == null) {
    return TOOLTIP_LINE_HEIGHT_CSS;
  } else {
    return "line-height:" + encodeHTML(lineHeight + '') + "px";
  }
}
// TODO: more textStyle option
function getTooltipTextStyle(textStyle, renderMode) {
  var nameFontColor = textStyle.color || '#6e7079';
  var nameFontSize = textStyle.fontSize || 12;
  var nameFontWeight = textStyle.fontWeight || '400';
  var valueFontColor = textStyle.color || '#464646';
  var valueFontSize = textStyle.fontSize || 14;
  var valueFontWeight = textStyle.fontWeight || '900';
  if (renderMode === 'html') {
    // `textStyle` is probably from user input, should be encoded to reduce security risk.
    return {
      // eslint-disable-next-line max-len
      nameStyle: "font-size:" + encodeHTML(nameFontSize + '') + "px;color:" + encodeHTML(nameFontColor) + ";font-weight:" + encodeHTML(nameFontWeight + ''),
      // eslint-disable-next-line max-len
      valueStyle: "font-size:" + encodeHTML(valueFontSize + '') + "px;color:" + encodeHTML(valueFontColor) + ";font-weight:" + encodeHTML(valueFontWeight + '')
    };
  } else {
    return {
      nameStyle: {
        fontSize: nameFontSize,
        fill: nameFontColor,
        fontWeight: nameFontWeight
      },
      valueStyle: {
        fontSize: valueFontSize,
        fill: valueFontColor,
        fontWeight: valueFontWeight
      }
    };
  }
}
// See `TooltipMarkupLayoutIntent['innerGapLevel']`.
// (value from UI design)
var HTML_GAPS = [0, 10, 20, 30];
var RICH_TEXT_GAPS = ['', '\n', '\n\n', '\n\n\n'];
// eslint-disable-next-line max-len
function createTooltipMarkup(type, option) {
  option.type = type;
  return option;
}
function isSectionFragment(frag) {
  return frag.type === 'section';
}
function getBuilder(frag) {
  return isSectionFragment(frag) ? buildSection : buildNameValue;
}
function getBlockGapLevel(frag) {
  if (isSectionFragment(frag)) {
    var gapLevel_1 = 0;
    var subBlockLen = frag.blocks.length;
    var hasInnerGap_1 = subBlockLen > 1 || subBlockLen > 0 && !frag.noHeader;
    Object(util["each"])(frag.blocks, function (subBlock) {
      var subGapLevel = getBlockGapLevel(subBlock);
      // If the some of the sub-blocks have some gaps (like 10px) inside, this block
      // should use a larger gap (like 20px) to distinguish those sub-blocks.
      if (subGapLevel >= gapLevel_1) {
        gapLevel_1 = subGapLevel + +(hasInnerGap_1 && (
        // 0 always can not be readable gap level.
        !subGapLevel
        // If no header, always keep the sub gap level. Otherwise
        // look weird in case `multipleSeries`.
        || isSectionFragment(subBlock) && !subBlock.noHeader));
      }
    });
    return gapLevel_1;
  }
  return 0;
}
function buildSection(ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {
  var noHeader = fragment.noHeader;
  var gaps = getGap(getBlockGapLevel(fragment));
  var subMarkupTextList = [];
  var subBlocks = fragment.blocks || [];
  Object(util["assert"])(!subBlocks || Object(util["isArray"])(subBlocks));
  subBlocks = subBlocks || [];
  var orderMode = ctx.orderMode;
  if (fragment.sortBlocks && orderMode) {
    subBlocks = subBlocks.slice();
    var orderMap = {
      valueAsc: 'asc',
      valueDesc: 'desc'
    };
    if (Object(util["hasOwn"])(orderMap, orderMode)) {
      var comparator_1 = new dataValueHelper_SortOrderComparator(orderMap[orderMode], null);
      subBlocks.sort(function (a, b) {
        return comparator_1.evaluate(a.sortParam, b.sortParam);
      });
    }
    // FIXME 'seriesDesc' necessary?
    else if (orderMode === 'seriesDesc') {
      subBlocks.reverse();
    }
  }
  Object(util["each"])(subBlocks, function (subBlock, idx) {
    var valueFormatter = fragment.valueFormatter;
    var subMarkupText = getBuilder(subBlock)(
    // Inherit valueFormatter
    valueFormatter ? Object(util["extend"])(Object(util["extend"])({}, ctx), {
      valueFormatter: valueFormatter
    }) : ctx, subBlock, idx > 0 ? gaps.html : 0, toolTipTextStyle);
    subMarkupText != null && subMarkupTextList.push(subMarkupText);
  });
  var subMarkupText = ctx.renderMode === 'richText' ? subMarkupTextList.join(gaps.richText) : wrapBlockHTML(toolTipTextStyle, subMarkupTextList.join(''), noHeader ? topMarginForOuterGap : gaps.html);
  if (noHeader) {
    return subMarkupText;
  }
  var displayableHeader = makeValueReadable(fragment.header, 'ordinal', ctx.useUTC);
  var nameStyle = getTooltipTextStyle(toolTipTextStyle, ctx.renderMode).nameStyle;
  var tooltipLineHeight = getTooltipLineHeight(toolTipTextStyle);
  if (ctx.renderMode === 'richText') {
    return wrapInlineNameRichText(ctx, displayableHeader, nameStyle) + gaps.richText + subMarkupText;
  } else {
    return wrapBlockHTML(toolTipTextStyle, "<div style=\"" + nameStyle + ";" + tooltipLineHeight + ";\">" + encodeHTML(displayableHeader) + '</div>' + subMarkupText, topMarginForOuterGap);
  }
}
function buildNameValue(ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {
  var renderMode = ctx.renderMode;
  var noName = fragment.noName;
  var noValue = fragment.noValue;
  var noMarker = !fragment.markerType;
  var name = fragment.name;
  var useUTC = ctx.useUTC;
  var valueFormatter = fragment.valueFormatter || ctx.valueFormatter || function (value) {
    value = Object(util["isArray"])(value) ? value : [value];
    return Object(util["map"])(value, function (val, idx) {
      return makeValueReadable(val, Object(util["isArray"])(valueTypeOption) ? valueTypeOption[idx] : valueTypeOption, useUTC);
    });
  };
  if (noName && noValue) {
    return;
  }
  var markerStr = noMarker ? '' : ctx.markupStyleCreator.makeTooltipMarker(fragment.markerType, fragment.markerColor || '#333', renderMode);
  var readableName = noName ? '' : makeValueReadable(name, 'ordinal', useUTC);
  var valueTypeOption = fragment.valueType;
  var readableValueList = noValue ? [] : valueFormatter(fragment.value, fragment.dataIndex);
  var valueAlignRight = !noMarker || !noName;
  // It little weird if only value next to marker but far from marker.
  var valueCloseToMarker = !noMarker && noName;
  var _a = getTooltipTextStyle(toolTipTextStyle, renderMode),
    nameStyle = _a.nameStyle,
    valueStyle = _a.valueStyle;
  return renderMode === 'richText' ? (noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameRichText(ctx, readableName, nameStyle))
  // Value has commas inside, so use ' ' as delimiter for multiple values.
  + (noValue ? '' : wrapInlineValueRichText(ctx, readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)) : wrapBlockHTML(toolTipTextStyle, (noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameHTML(readableName, !noMarker, nameStyle)) + (noValue ? '' : wrapInlineValueHTML(readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)), topMarginForOuterGap);
}
/**
 * @return markupText. null/undefined means no content.
 */
function buildTooltipMarkup(fragment, markupStyleCreator, renderMode, orderMode, useUTC, toolTipTextStyle) {
  if (!fragment) {
    return;
  }
  var builder = getBuilder(fragment);
  var ctx = {
    useUTC: useUTC,
    renderMode: renderMode,
    orderMode: orderMode,
    markupStyleCreator: markupStyleCreator,
    valueFormatter: fragment.valueFormatter
  };
  return builder(ctx, fragment, 0, toolTipTextStyle);
}
function getGap(gapLevel) {
  return {
    html: HTML_GAPS[gapLevel],
    richText: RICH_TEXT_GAPS[gapLevel]
  };
}
function wrapBlockHTML(textStyle, encodedContent, topGap) {
  var clearfix = '<div style="clear:both"></div>';
  var marginCSS = "margin: " + topGap + "px 0 0";
  var tooltipLineHeight = getTooltipLineHeight(textStyle);
  return "<div style=\"" + marginCSS + ";" + tooltipLineHeight + ";\">" + encodedContent + clearfix + '</div>';
}
function wrapInlineNameHTML(name, leftHasMarker, style) {
  var marginCss = leftHasMarker ? 'margin-left:2px' : '';
  return "<span style=\"" + style + ";" + marginCss + "\">" + encodeHTML(name) + '</span>';
}
function wrapInlineValueHTML(valueList, alignRight, valueCloseToMarker, style) {
  // Do not too close to marker, considering there are multiple values separated by spaces.
  var paddingStr = valueCloseToMarker ? '10px' : '20px';
  var alignCSS = alignRight ? "float:right;margin-left:" + paddingStr : '';
  valueList = Object(util["isArray"])(valueList) ? valueList : [valueList];
  return "<span style=\"" + alignCSS + ";" + style + "\">"
  // Value has commas inside, so use '  ' as delimiter for multiple values.
  + Object(util["map"])(valueList, function (value) {
    return encodeHTML(value);
  }).join('&nbsp;&nbsp;') + '</span>';
}
function wrapInlineNameRichText(ctx, name, style) {
  return ctx.markupStyleCreator.wrapRichTextStyle(name, style);
}
function wrapInlineValueRichText(ctx, values, alignRight, valueCloseToMarker, style) {
  var styles = [style];
  var paddingLeft = valueCloseToMarker ? 10 : 20;
  alignRight && styles.push({
    padding: [0, 0, 0, paddingLeft],
    align: 'right'
  });
  // Value has commas inside, so use '  ' as delimiter for multiple values.
  return ctx.markupStyleCreator.wrapRichTextStyle(Object(util["isArray"])(values) ? values.join('  ') : values, styles);
}
function retrieveVisualColorForTooltipMarker(series, dataIndex) {
  var style = series.getData().getItemVisual(dataIndex, 'style');
  var color = style[series.visualDrawType];
  return convertToColorString(color);
}
function getPaddingFromTooltipModel(model, renderMode) {
  var padding = model.get('padding');
  return padding != null ? padding
  // We give slightly different to look pretty.
  : renderMode === 'richText' ? [8, 10] : 10;
}
/**
 * The major feature is generate styles for `renderMode: 'richText'`.
 * But it also serves `renderMode: 'html'` to provide
 * "renderMode-independent" API.
 */
var tooltipMarkup_TooltipMarkupStyleCreator = /** @class */function () {
  function TooltipMarkupStyleCreator() {
    this.richTextStyles = {};
    // Notice that "generate a style name" usually happens repeatedly when mouse is moving and
    // a tooltip is displayed. So we put the `_nextStyleNameId` as a member of each creator
    // rather than static shared by all creators (which will cause it increase to fast).
    this._nextStyleNameId = getRandomIdBase();
  }
  TooltipMarkupStyleCreator.prototype._generateStyleName = function () {
    return '__EC_aUTo_' + this._nextStyleNameId++;
  };
  TooltipMarkupStyleCreator.prototype.makeTooltipMarker = function (markerType, colorStr, renderMode) {
    var markerId = renderMode === 'richText' ? this._generateStyleName() : null;
    var marker = getTooltipMarker({
      color: colorStr,
      type: markerType,
      renderMode: renderMode,
      markerId: markerId
    });
    if (Object(util["isString"])(marker)) {
      return marker;
    } else {
      if (false) {}
      this.richTextStyles[markerId] = marker.style;
      return marker.content;
    }
  };
  /**
   * @usage
   * ```ts
   * const styledText = markupStyleCreator.wrapRichTextStyle([
   *     // The styles will be auto merged.
   *     {
   *         fontSize: 12,
   *         color: 'blue'
   *     },
   *     {
   *         padding: 20
   *     }
   * ]);
   * ```
   */
  TooltipMarkupStyleCreator.prototype.wrapRichTextStyle = function (text, styles) {
    var finalStl = {};
    if (Object(util["isArray"])(styles)) {
      Object(util["each"])(styles, function (stl) {
        return Object(util["extend"])(finalStl, stl);
      });
    } else {
      Object(util["extend"])(finalStl, styles);
    }
    var styleName = this._generateStyleName();
    this.richTextStyles[styleName] = finalStl;
    return "{" + styleName + "|" + text + "}";
  };
  return TooltipMarkupStyleCreator;
}();

// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function defaultSeriesFormatTooltip(opt) {
  var series = opt.series;
  var dataIndex = opt.dataIndex;
  var multipleSeries = opt.multipleSeries;
  var data = series.getData();
  var tooltipDims = data.mapDimensionsAll('defaultedTooltip');
  var tooltipDimLen = tooltipDims.length;
  var value = series.getRawValue(dataIndex);
  var isValueArr = Object(util["isArray"])(value);
  var markerColor = retrieveVisualColorForTooltipMarker(series, dataIndex);
  // Complicated rule for pretty tooltip.
  var inlineValue;
  var inlineValueType;
  var subBlocks;
  var sortParam;
  if (tooltipDimLen > 1 || isValueArr && !tooltipDimLen) {
    var formatArrResult = formatTooltipArrayValue(value, series, dataIndex, tooltipDims, markerColor);
    inlineValue = formatArrResult.inlineValues;
    inlineValueType = formatArrResult.inlineValueTypes;
    subBlocks = formatArrResult.blocks;
    // Only support tooltip sort by the first inline value. It's enough in most cases.
    sortParam = formatArrResult.inlineValues[0];
  } else if (tooltipDimLen) {
    var dimInfo = data.getDimensionInfo(tooltipDims[0]);
    sortParam = inlineValue = retrieveRawValue(data, dataIndex, tooltipDims[0]);
    inlineValueType = dimInfo.type;
  } else {
    sortParam = inlineValue = isValueArr ? value[0] : value;
  }
  // Do not show generated series name. It might not be readable.
  var seriesNameSpecified = isNameSpecified(series);
  var seriesName = seriesNameSpecified && series.name || '';
  var itemName = data.getName(dataIndex);
  var inlineName = multipleSeries ? seriesName : itemName;
  return createTooltipMarkup('section', {
    header: seriesName,
    // When series name is not specified, do not show a header line with only '-'.
    // This case always happens in tooltip.trigger: 'item'.
    noHeader: multipleSeries || !seriesNameSpecified,
    sortParam: sortParam,
    blocks: [createTooltipMarkup('nameValue', {
      markerType: 'item',
      markerColor: markerColor,
      // Do not mix display seriesName and itemName in one tooltip,
      // which might confuses users.
      name: inlineName,
      // name dimension might be auto assigned, where the name might
      // be not readable. So we check trim here.
      noName: !Object(util["trim"])(inlineName),
      value: inlineValue,
      valueType: inlineValueType,
      dataIndex: dataIndex
    })].concat(subBlocks || [])
  });
}
function formatTooltipArrayValue(value, series, dataIndex, tooltipDims, colorStr) {
  // check: category-no-encode-has-axis-data in dataset.html
  var data = series.getData();
  var isValueMultipleLine = Object(util["reduce"])(value, function (isValueMultipleLine, val, idx) {
    var dimItem = data.getDimensionInfo(idx);
    return isValueMultipleLine = isValueMultipleLine || dimItem && dimItem.tooltip !== false && dimItem.displayName != null;
  }, false);
  var inlineValues = [];
  var inlineValueTypes = [];
  var blocks = [];
  tooltipDims.length ? Object(util["each"])(tooltipDims, function (dim) {
    setEachItem(retrieveRawValue(data, dataIndex, dim), dim);
  })
  // By default, all dims is used on tooltip.
  : Object(util["each"])(value, setEachItem);
  function setEachItem(val, dim) {
    var dimInfo = data.getDimensionInfo(dim);
    // If `dimInfo.tooltip` is not set, show tooltip.
    if (!dimInfo || dimInfo.otherDims.tooltip === false) {
      return;
    }
    if (isValueMultipleLine) {
      blocks.push(createTooltipMarkup('nameValue', {
        markerType: 'subItem',
        markerColor: colorStr,
        name: dimInfo.displayName,
        value: val,
        valueType: dimInfo.type
      }));
    } else {
      inlineValues.push(val);
      inlineValueTypes.push(dimInfo.type);
    }
  }
  return {
    inlineValues: inlineValues,
    inlineValueTypes: inlineValueTypes,
    blocks: blocks
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/Series.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/












var Series_inner = makeInner();
function getSelectionKey(data, dataIndex) {
  return data.getName(dataIndex) || data.getId(dataIndex);
}
var SERIES_UNIVERSAL_TRANSITION_PROP = '__universalTransitionEnabled';
var Series_SeriesModel = /** @class */function (_super) {
  __extends(SeriesModel, _super);
  function SeriesModel() {
    // [Caution]: Because this class or desecendants can be used as `XXX.extend(subProto)`,
    // the class members must not be initialized in constructor or declaration place.
    // Otherwise there is bad case:
    //   class A {xxx = 1;}
    //   enableClassExtend(A);
    //   class B extends A {}
    //   var C = B.extend({xxx: 5});
    //   var c = new C();
    //   console.log(c.xxx); // expect 5 but always 1.
    var _this = _super !== null && _super.apply(this, arguments) || this;
    // ---------------------------------------
    // Props about data selection
    // ---------------------------------------
    _this._selectedDataIndicesMap = {};
    return _this;
  }
  SeriesModel.prototype.init = function (option, parentModel, ecModel) {
    this.seriesIndex = this.componentIndex;
    this.dataTask = createTask({
      count: dataTaskCount,
      reset: dataTaskReset
    });
    this.dataTask.context = {
      model: this
    };
    this.mergeDefaultAndTheme(option, ecModel);
    var sourceManager = Series_inner(this).sourceManager = new sourceManager_SourceManager(this);
    sourceManager.prepareSource();
    var data = this.getInitialData(option, ecModel);
    wrapData(data, this);
    this.dataTask.context.data = data;
    if (false) {}
    Series_inner(this).dataBeforeProcessed = data;
    // If we reverse the order (make data firstly, and then make
    // dataBeforeProcessed by cloneShallow), cloneShallow will
    // cause data.graph.data !== data when using
    // module:echarts/data/Graph or module:echarts/data/Tree.
    // See module:echarts/data/helper/linkSeriesData
    // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model
    // init or merge stage, because the data can be restored. So we do not `restoreData`
    // and `setData` here, which forbids calling `seriesModel.getData()` in this stage.
    // Call `seriesModel.getRawData()` instead.
    // this.restoreData();
    autoSeriesName(this);
    this._initSelectedMapFromData(data);
  };
  /**
   * Util for merge default and theme to option
   */
  SeriesModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {
    var layoutMode = fetchLayoutMode(this);
    var inputPositionParams = layoutMode ? getLayoutParams(option) : {};
    // Backward compat: using subType on theme.
    // But if name duplicate between series subType
    // (for example: parallel) add component mainType,
    // add suffix 'Series'.
    var themeSubType = this.subType;
    if (Component.hasClass(themeSubType)) {
      themeSubType += 'Series';
    }
    util["merge"](option, ecModel.getTheme().get(this.subType));
    util["merge"](option, this.getDefaultOption());
    // Default label emphasis `show`
    defaultEmphasis(option, 'label', ['show']);
    this.fillDataTextStyle(option.data);
    if (layoutMode) {
      mergeLayoutParam(option, inputPositionParams, layoutMode);
    }
  };
  SeriesModel.prototype.mergeOption = function (newSeriesOption, ecModel) {
    // this.settingTask.dirty();
    newSeriesOption = util["merge"](this.option, newSeriesOption, true);
    this.fillDataTextStyle(newSeriesOption.data);
    var layoutMode = fetchLayoutMode(this);
    if (layoutMode) {
      mergeLayoutParam(this.option, newSeriesOption, layoutMode);
    }
    var sourceManager = Series_inner(this).sourceManager;
    sourceManager.dirty();
    sourceManager.prepareSource();
    var data = this.getInitialData(newSeriesOption, ecModel);
    wrapData(data, this);
    this.dataTask.dirty();
    this.dataTask.context.data = data;
    Series_inner(this).dataBeforeProcessed = data;
    autoSeriesName(this);
    this._initSelectedMapFromData(data);
  };
  SeriesModel.prototype.fillDataTextStyle = function (data) {
    // Default data label emphasis `show`
    // FIXME Tree structure data ?
    // FIXME Performance ?
    if (data && !util["isTypedArray"](data)) {
      var props = ['show'];
      for (var i = 0; i < data.length; i++) {
        if (data[i] && data[i].label) {
          defaultEmphasis(data[i], 'label', props);
        }
      }
    }
  };
  /**
   * Init a data structure from data related option in series
   * Must be overridden.
   */
  SeriesModel.prototype.getInitialData = function (option, ecModel) {
    return;
  };
  /**
   * Append data to list
   */
  SeriesModel.prototype.appendData = function (params) {
    // FIXME ???
    // (1) If data from dataset, forbidden append.
    // (2) support append data of dataset.
    var data = this.getRawData();
    data.appendData(params.data);
  };
  /**
   * Consider some method like `filter`, `map` need make new data,
   * We should make sure that `seriesModel.getData()` get correct
   * data in the stream procedure. So we fetch data from upstream
   * each time `task.perform` called.
   */
  SeriesModel.prototype.getData = function (dataType) {
    var task = getCurrentTask(this);
    if (task) {
      var data = task.context.data;
      return dataType == null || !data.getLinkedData ? data : data.getLinkedData(dataType);
    } else {
      // When series is not alive (that may happen when click toolbox
      // restore or setOption with not merge mode), series data may
      // be still need to judge animation or something when graphic
      // elements want to know whether fade out.
      return Series_inner(this).data;
    }
  };
  SeriesModel.prototype.getAllData = function () {
    var mainData = this.getData();
    return mainData && mainData.getLinkedDataAll ? mainData.getLinkedDataAll() : [{
      data: mainData
    }];
  };
  SeriesModel.prototype.setData = function (data) {
    var task = getCurrentTask(this);
    if (task) {
      var context = task.context;
      // Consider case: filter, data sample.
      // FIXME:TS never used, so comment it
      // if (context.data !== data && task.modifyOutputEnd) {
      //     task.setOutputEnd(data.count());
      // }
      context.outputData = data;
      // Caution: setData should update context.data,
      // Because getData may be called multiply in a
      // single stage and expect to get the data just
      // set. (For example, AxisProxy, x y both call
      // getData and setDate sequentially).
      // So the context.data should be fetched from
      // upstream each time when a stage starts to be
      // performed.
      if (task !== this.dataTask) {
        context.data = data;
      }
    }
    Series_inner(this).data = data;
  };
  SeriesModel.prototype.getEncode = function () {
    var encode = this.get('encode', true);
    if (encode) {
      return util["createHashMap"](encode);
    }
  };
  SeriesModel.prototype.getSourceManager = function () {
    return Series_inner(this).sourceManager;
  };
  SeriesModel.prototype.getSource = function () {
    return this.getSourceManager().getSource();
  };
  /**
   * Get data before processed
   */
  SeriesModel.prototype.getRawData = function () {
    return Series_inner(this).dataBeforeProcessed;
  };
  SeriesModel.prototype.getColorBy = function () {
    var colorBy = this.get('colorBy');
    return colorBy || 'series';
  };
  SeriesModel.prototype.isColorBySeries = function () {
    return this.getColorBy() === 'series';
  };
  /**
   * Get base axis if has coordinate system and has axis.
   * By default use coordSys.getBaseAxis();
   * Can be overridden for some chart.
   * @return {type} description
   */
  SeriesModel.prototype.getBaseAxis = function () {
    var coordSys = this.coordinateSystem;
    // @ts-ignore
    return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis();
  };
  /**
   * Default tooltip formatter
   *
   * @param dataIndex
   * @param multipleSeries
   * @param dataType
   * @param renderMode valid values: 'html'(by default) and 'richText'.
   *        'html' is used for rendering tooltip in extra DOM form, and the result
   *        string is used as DOM HTML content.
   *        'richText' is used for rendering tooltip in rich text form, for those where
   *        DOM operation is not supported.
   * @return formatted tooltip with `html` and `markers`
   *        Notice: The override method can also return string
   */
  SeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    return defaultSeriesFormatTooltip({
      series: this,
      dataIndex: dataIndex,
      multipleSeries: multipleSeries
    });
  };
  SeriesModel.prototype.isAnimationEnabled = function () {
    var ecModel = this.ecModel;
    // Disable animation if using echarts in node but not give ssr flag.
    // In ssr mode, renderToString will generate svg with css animation.
    if (env["a" /* default */].node && !(ecModel && ecModel.ssr)) {
      return false;
    }
    var animationEnabled = this.getShallow('animation');
    if (animationEnabled) {
      if (this.getData().count() > this.getShallow('animationThreshold')) {
        animationEnabled = false;
      }
    }
    return !!animationEnabled;
  };
  SeriesModel.prototype.restoreData = function () {
    this.dataTask.dirty();
  };
  SeriesModel.prototype.getColorFromPalette = function (name, scope, requestColorNum) {
    var ecModel = this.ecModel;
    // PENDING
    var color = palette_PaletteMixin.prototype.getColorFromPalette.call(this, name, scope, requestColorNum);
    if (!color) {
      color = ecModel.getColorFromPalette(name, scope, requestColorNum);
    }
    return color;
  };
  /**
   * Use `data.mapDimensionsAll(coordDim)` instead.
   * @deprecated
   */
  SeriesModel.prototype.coordDimToDataDim = function (coordDim) {
    return this.getRawData().mapDimensionsAll(coordDim);
  };
  /**
   * Get progressive rendering count each step
   */
  SeriesModel.prototype.getProgressive = function () {
    return this.get('progressive');
  };
  /**
   * Get progressive rendering count each step
   */
  SeriesModel.prototype.getProgressiveThreshold = function () {
    return this.get('progressiveThreshold');
  };
  // PENGING If selectedMode is null ?
  SeriesModel.prototype.select = function (innerDataIndices, dataType) {
    this._innerSelect(this.getData(dataType), innerDataIndices);
  };
  SeriesModel.prototype.unselect = function (innerDataIndices, dataType) {
    var selectedMap = this.option.selectedMap;
    if (!selectedMap) {
      return;
    }
    var selectedMode = this.option.selectedMode;
    var data = this.getData(dataType);
    if (selectedMode === 'series' || selectedMap === 'all') {
      this.option.selectedMap = {};
      this._selectedDataIndicesMap = {};
      return;
    }
    for (var i = 0; i < innerDataIndices.length; i++) {
      var dataIndex = innerDataIndices[i];
      var nameOrId = getSelectionKey(data, dataIndex);
      selectedMap[nameOrId] = false;
      this._selectedDataIndicesMap[nameOrId] = -1;
    }
  };
  SeriesModel.prototype.toggleSelect = function (innerDataIndices, dataType) {
    var tmpArr = [];
    for (var i = 0; i < innerDataIndices.length; i++) {
      tmpArr[0] = innerDataIndices[i];
      this.isSelected(innerDataIndices[i], dataType) ? this.unselect(tmpArr, dataType) : this.select(tmpArr, dataType);
    }
  };
  SeriesModel.prototype.getSelectedDataIndices = function () {
    if (this.option.selectedMap === 'all') {
      return [].slice.call(this.getData().getIndices());
    }
    var selectedDataIndicesMap = this._selectedDataIndicesMap;
    var nameOrIds = util["keys"](selectedDataIndicesMap);
    var dataIndices = [];
    for (var i = 0; i < nameOrIds.length; i++) {
      var dataIndex = selectedDataIndicesMap[nameOrIds[i]];
      if (dataIndex >= 0) {
        dataIndices.push(dataIndex);
      }
    }
    return dataIndices;
  };
  SeriesModel.prototype.isSelected = function (dataIndex, dataType) {
    var selectedMap = this.option.selectedMap;
    if (!selectedMap) {
      return false;
    }
    var data = this.getData(dataType);
    return (selectedMap === 'all' || selectedMap[getSelectionKey(data, dataIndex)]) && !data.getItemModel(dataIndex).get(['select', 'disabled']);
  };
  SeriesModel.prototype.isUniversalTransitionEnabled = function () {
    if (this[SERIES_UNIVERSAL_TRANSITION_PROP]) {
      return true;
    }
    var universalTransitionOpt = this.option.universalTransition;
    // Quick reject
    if (!universalTransitionOpt) {
      return false;
    }
    if (universalTransitionOpt === true) {
      return true;
    }
    // Can be simply 'universalTransition: true'
    return universalTransitionOpt && universalTransitionOpt.enabled;
  };
  SeriesModel.prototype._innerSelect = function (data, innerDataIndices) {
    var _a, _b;
    var option = this.option;
    var selectedMode = option.selectedMode;
    var len = innerDataIndices.length;
    if (!selectedMode || !len) {
      return;
    }
    if (selectedMode === 'series') {
      option.selectedMap = 'all';
    } else if (selectedMode === 'multiple') {
      if (!util["isObject"](option.selectedMap)) {
        option.selectedMap = {};
      }
      var selectedMap = option.selectedMap;
      for (var i = 0; i < len; i++) {
        var dataIndex = innerDataIndices[i];
        // TODO different types of data share same object.
        var nameOrId = getSelectionKey(data, dataIndex);
        selectedMap[nameOrId] = true;
        this._selectedDataIndicesMap[nameOrId] = data.getRawIndex(dataIndex);
      }
    } else if (selectedMode === 'single' || selectedMode === true) {
      var lastDataIndex = innerDataIndices[len - 1];
      var nameOrId = getSelectionKey(data, lastDataIndex);
      option.selectedMap = (_a = {}, _a[nameOrId] = true, _a);
      this._selectedDataIndicesMap = (_b = {}, _b[nameOrId] = data.getRawIndex(lastDataIndex), _b);
    }
  };
  SeriesModel.prototype._initSelectedMapFromData = function (data) {
    // Ignore select info in data if selectedMap exists.
    // NOTE It's only for legacy usage. edge data is not supported.
    if (this.option.selectedMap) {
      return;
    }
    var dataIndices = [];
    if (data.hasItemOption) {
      data.each(function (idx) {
        var rawItem = data.getRawDataItem(idx);
        if (rawItem && rawItem.selected) {
          dataIndices.push(idx);
        }
      });
    }
    if (dataIndices.length > 0) {
      this._innerSelect(data, dataIndices);
    }
  };
  // /**
  //  * @see {module:echarts/stream/Scheduler}
  //  */
  // abstract pipeTask: null
  SeriesModel.registerClass = function (clz) {
    return Component.registerClass(clz);
  };
  SeriesModel.protoInitialize = function () {
    var proto = SeriesModel.prototype;
    proto.type = 'series.__base__';
    proto.seriesIndex = 0;
    proto.ignoreStyleOnData = false;
    proto.hasSymbolVisual = false;
    proto.defaultSymbol = 'circle';
    // Make sure the values can be accessed!
    proto.visualStyleAccessPath = 'itemStyle';
    proto.visualDrawType = 'fill';
  }();
  return SeriesModel;
}(Component);
util["mixin"](Series_SeriesModel, dataFormat_DataFormatMixin);
util["mixin"](Series_SeriesModel, palette_PaletteMixin);
mountExtend(Series_SeriesModel, Component);
/**
 * MUST be called after `prepareSource` called
 * Here we need to make auto series, especially for auto legend. But we
 * do not modify series.name in option to avoid side effects.
 */
function autoSeriesName(seriesModel) {
  // User specified name has higher priority, otherwise it may cause
  // series can not be queried unexpectedly.
  var name = seriesModel.name;
  if (!isNameSpecified(seriesModel)) {
    seriesModel.name = getSeriesAutoName(seriesModel) || name;
  }
}
function getSeriesAutoName(seriesModel) {
  var data = seriesModel.getRawData();
  var dataDims = data.mapDimensionsAll('seriesName');
  var nameArr = [];
  util["each"](dataDims, function (dataDim) {
    var dimInfo = data.getDimensionInfo(dataDim);
    dimInfo.displayName && nameArr.push(dimInfo.displayName);
  });
  return nameArr.join(' ');
}
function dataTaskCount(context) {
  return context.model.getRawData().count();
}
function dataTaskReset(context) {
  var seriesModel = context.model;
  seriesModel.setData(seriesModel.getRawData().cloneShallow());
  return dataTaskProgress;
}
function dataTaskProgress(param, context) {
  // Avoid repeat cloneShallow when data just created in reset.
  if (context.outputData && param.end > context.outputData.count()) {
    context.model.getRawData().cloneShallow(context.outputData);
  }
}
// TODO refactor
function wrapData(data, seriesModel) {
  util["each"](util["concatArray"](data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) {
    data.wrapMethod(methodName, util["curry"](onDataChange, seriesModel));
  });
}
function onDataChange(seriesModel, newList) {
  var task = getCurrentTask(seriesModel);
  if (task) {
    // Consider case: filter, selectRange
    task.setOutputEnd((newList || this).count());
  }
  return newList;
}
function getCurrentTask(seriesModel) {
  var scheduler = (seriesModel.ecModel || {}).scheduler;
  var pipeline = scheduler && scheduler.getPipeline(seriesModel.uid);
  if (pipeline) {
    // When pipline finished, the currrentTask keep the last
    // task (renderTask).
    var task = pipeline.currentTask;
    if (task) {
      var agentStubMap = task.agentStubMap;
      if (agentStubMap) {
        task = agentStubMap.get(seriesModel.uid);
      }
    }
    return task;
  }
}
/* harmony default export */ var Series = (Series_SeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/view/Component.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var Component_ComponentView = /** @class */function () {
  function ComponentView() {
    this.group = new graphic_Group();
    this.uid = getUID('viewComponent');
  }
  ComponentView.prototype.init = function (ecModel, api) {};
  ComponentView.prototype.render = function (model, ecModel, api, payload) {};
  ComponentView.prototype.dispose = function (ecModel, api) {};
  ComponentView.prototype.updateView = function (model, ecModel, api, payload) {
    // Do nothing;
  };
  ComponentView.prototype.updateLayout = function (model, ecModel, api, payload) {
    // Do nothing;
  };
  ComponentView.prototype.updateVisual = function (model, ecModel, api, payload) {
    // Do nothing;
  };
  /**
   * Hook for toggle blur target series.
   * Can be used in marker for blur or leave blur the markers
   */
  ComponentView.prototype.toggleBlurSeries = function (seriesModels, isBlur, ecModel) {
    // Do nothing;
  };
  /**
   * Traverse the new rendered elements.
   *
   * It will traverse the new added element in progressive rendering.
   * And traverse all in normal rendering.
   */
  ComponentView.prototype.eachRendered = function (cb) {
    var group = this.group;
    if (group) {
      group.traverse(cb);
    }
  };
  return ComponentView;
}();
;
enableClassExtend(Component_ComponentView);
enableClassManagement(Component_ComponentView);
/* harmony default export */ var view_Component = (Component_ComponentView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createRenderPlanner.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * @return {string} If large mode changed, return string 'reset';
 */
function createRenderPlanner() {
  var inner = makeInner();
  return function (seriesModel) {
    var fields = inner(seriesModel);
    var pipelineContext = seriesModel.pipelineContext;
    var originalLarge = !!fields.large;
    var originalProgressive = !!fields.progressiveRender;
    // FIXME: if the planner works on a filtered series, `pipelineContext` does not
    // exists. See #11611 . Probably we need to modify this structure, see the comment
    // on `performRawSeries` in `Schedular.js`.
    var large = fields.large = !!(pipelineContext && pipelineContext.large);
    var progressive = fields.progressiveRender = !!(pipelineContext && pipelineContext.progressiveRender);
    return !!(originalLarge !== large || originalProgressive !== progressive) && 'reset';
  };
}
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/transformPath.js


var transformPath_CMD = core_PathProxy.CMD;
var transformPath_points = [[], [], []];
var transformPath_mathSqrt = Math.sqrt;
var mathAtan2 = Math.atan2;
function transformPath(path, m) {
    if (!m) {
        return;
    }
    var data = path.data;
    var len = path.len();
    var cmd;
    var nPoint;
    var i;
    var j;
    var k;
    var p;
    var M = transformPath_CMD.M;
    var C = transformPath_CMD.C;
    var L = transformPath_CMD.L;
    var R = transformPath_CMD.R;
    var A = transformPath_CMD.A;
    var Q = transformPath_CMD.Q;
    for (i = 0, j = 0; i < len;) {
        cmd = data[i++];
        j = i;
        nPoint = 0;
        switch (cmd) {
            case M:
                nPoint = 1;
                break;
            case L:
                nPoint = 1;
                break;
            case C:
                nPoint = 3;
                break;
            case Q:
                nPoint = 2;
                break;
            case A:
                var x = m[4];
                var y = m[5];
                var sx = transformPath_mathSqrt(m[0] * m[0] + m[1] * m[1]);
                var sy = transformPath_mathSqrt(m[2] * m[2] + m[3] * m[3]);
                var angle = mathAtan2(-m[1] / sy, m[0] / sx);
                data[i] *= sx;
                data[i++] += x;
                data[i] *= sy;
                data[i++] += y;
                data[i++] *= sx;
                data[i++] *= sy;
                data[i++] += angle;
                data[i++] += angle;
                i += 2;
                j = i;
                break;
            case R:
                p[0] = data[i++];
                p[1] = data[i++];
                applyTransform(p, p, m);
                data[j++] = p[0];
                data[j++] = p[1];
                p[0] += data[i++];
                p[1] += data[i++];
                applyTransform(p, p, m);
                data[j++] = p[0];
                data[j++] = p[1];
        }
        for (k = 0; k < nPoint; k++) {
            var p_1 = transformPath_points[k];
            p_1[0] = data[i++];
            p_1[1] = data[i++];
            applyTransform(p_1, p_1, m);
            data[j++] = p_1[0];
            data[j++] = p_1[1];
        }
    }
    path.increaseVersion();
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/path.js





var path_mathSqrt = Math.sqrt;
var path_mathSin = Math.sin;
var path_mathCos = Math.cos;
var path_PI = Math.PI;
function vMag(v) {
    return Math.sqrt(v[0] * v[0] + v[1] * v[1]);
}
;
function vRatio(u, v) {
    return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));
}
;
function vAngle(u, v) {
    return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)
        * Math.acos(vRatio(u, v));
}
;
function processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) {
    var psi = psiDeg * (path_PI / 180.0);
    var xp = path_mathCos(psi) * (x1 - x2) / 2.0
        + path_mathSin(psi) * (y1 - y2) / 2.0;
    var yp = -1 * path_mathSin(psi) * (x1 - x2) / 2.0
        + path_mathCos(psi) * (y1 - y2) / 2.0;
    var lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);
    if (lambda > 1) {
        rx *= path_mathSqrt(lambda);
        ry *= path_mathSqrt(lambda);
    }
    var f = (fa === fs ? -1 : 1)
        * path_mathSqrt((((rx * rx) * (ry * ry))
            - ((rx * rx) * (yp * yp))
            - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)
            + (ry * ry) * (xp * xp))) || 0;
    var cxp = f * rx * yp / ry;
    var cyp = f * -ry * xp / rx;
    var cx = (x1 + x2) / 2.0
        + path_mathCos(psi) * cxp
        - path_mathSin(psi) * cyp;
    var cy = (y1 + y2) / 2.0
        + path_mathSin(psi) * cxp
        + path_mathCos(psi) * cyp;
    var theta = vAngle([1, 0], [(xp - cxp) / rx, (yp - cyp) / ry]);
    var u = [(xp - cxp) / rx, (yp - cyp) / ry];
    var v = [(-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry];
    var dTheta = vAngle(u, v);
    if (vRatio(u, v) <= -1) {
        dTheta = path_PI;
    }
    if (vRatio(u, v) >= 1) {
        dTheta = 0;
    }
    if (dTheta < 0) {
        var n = Math.round(dTheta / path_PI * 1e6) / 1e6;
        dTheta = path_PI * 2 + (n % 2) * path_PI;
    }
    path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);
}
var commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig;
var numberReg = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
function createPathProxyFromString(data) {
    var path = new core_PathProxy();
    if (!data) {
        return path;
    }
    var cpx = 0;
    var cpy = 0;
    var subpathX = cpx;
    var subpathY = cpy;
    var prevCmd;
    var CMD = core_PathProxy.CMD;
    var cmdList = data.match(commandReg);
    if (!cmdList) {
        return path;
    }
    for (var l = 0; l < cmdList.length; l++) {
        var cmdText = cmdList[l];
        var cmdStr = cmdText.charAt(0);
        var cmd = void 0;
        var p = cmdText.match(numberReg) || [];
        var pLen = p.length;
        for (var i = 0; i < pLen; i++) {
            p[i] = parseFloat(p[i]);
        }
        var off = 0;
        while (off < pLen) {
            var ctlPtx = void 0;
            var ctlPty = void 0;
            var rx = void 0;
            var ry = void 0;
            var psi = void 0;
            var fa = void 0;
            var fs = void 0;
            var x1 = cpx;
            var y1 = cpy;
            var len = void 0;
            var pathData = void 0;
            switch (cmdStr) {
                case 'l':
                    cpx += p[off++];
                    cpy += p[off++];
                    cmd = CMD.L;
                    path.addData(cmd, cpx, cpy);
                    break;
                case 'L':
                    cpx = p[off++];
                    cpy = p[off++];
                    cmd = CMD.L;
                    path.addData(cmd, cpx, cpy);
                    break;
                case 'm':
                    cpx += p[off++];
                    cpy += p[off++];
                    cmd = CMD.M;
                    path.addData(cmd, cpx, cpy);
                    subpathX = cpx;
                    subpathY = cpy;
                    cmdStr = 'l';
                    break;
                case 'M':
                    cpx = p[off++];
                    cpy = p[off++];
                    cmd = CMD.M;
                    path.addData(cmd, cpx, cpy);
                    subpathX = cpx;
                    subpathY = cpy;
                    cmdStr = 'L';
                    break;
                case 'h':
                    cpx += p[off++];
                    cmd = CMD.L;
                    path.addData(cmd, cpx, cpy);
                    break;
                case 'H':
                    cpx = p[off++];
                    cmd = CMD.L;
                    path.addData(cmd, cpx, cpy);
                    break;
                case 'v':
                    cpy += p[off++];
                    cmd = CMD.L;
                    path.addData(cmd, cpx, cpy);
                    break;
                case 'V':
                    cpy = p[off++];
                    cmd = CMD.L;
                    path.addData(cmd, cpx, cpy);
                    break;
                case 'C':
                    cmd = CMD.C;
                    path.addData(cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]);
                    cpx = p[off - 2];
                    cpy = p[off - 1];
                    break;
                case 'c':
                    cmd = CMD.C;
                    path.addData(cmd, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy);
                    cpx += p[off - 2];
                    cpy += p[off - 1];
                    break;
                case 'S':
                    ctlPtx = cpx;
                    ctlPty = cpy;
                    len = path.len();
                    pathData = path.data;
                    if (prevCmd === CMD.C) {
                        ctlPtx += cpx - pathData[len - 4];
                        ctlPty += cpy - pathData[len - 3];
                    }
                    cmd = CMD.C;
                    x1 = p[off++];
                    y1 = p[off++];
                    cpx = p[off++];
                    cpy = p[off++];
                    path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);
                    break;
                case 's':
                    ctlPtx = cpx;
                    ctlPty = cpy;
                    len = path.len();
                    pathData = path.data;
                    if (prevCmd === CMD.C) {
                        ctlPtx += cpx - pathData[len - 4];
                        ctlPty += cpy - pathData[len - 3];
                    }
                    cmd = CMD.C;
                    x1 = cpx + p[off++];
                    y1 = cpy + p[off++];
                    cpx += p[off++];
                    cpy += p[off++];
                    path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);
                    break;
                case 'Q':
                    x1 = p[off++];
                    y1 = p[off++];
                    cpx = p[off++];
                    cpy = p[off++];
                    cmd = CMD.Q;
                    path.addData(cmd, x1, y1, cpx, cpy);
                    break;
                case 'q':
                    x1 = p[off++] + cpx;
                    y1 = p[off++] + cpy;
                    cpx += p[off++];
                    cpy += p[off++];
                    cmd = CMD.Q;
                    path.addData(cmd, x1, y1, cpx, cpy);
                    break;
                case 'T':
                    ctlPtx = cpx;
                    ctlPty = cpy;
                    len = path.len();
                    pathData = path.data;
                    if (prevCmd === CMD.Q) {
                        ctlPtx += cpx - pathData[len - 4];
                        ctlPty += cpy - pathData[len - 3];
                    }
                    cpx = p[off++];
                    cpy = p[off++];
                    cmd = CMD.Q;
                    path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);
                    break;
                case 't':
                    ctlPtx = cpx;
                    ctlPty = cpy;
                    len = path.len();
                    pathData = path.data;
                    if (prevCmd === CMD.Q) {
                        ctlPtx += cpx - pathData[len - 4];
                        ctlPty += cpy - pathData[len - 3];
                    }
                    cpx += p[off++];
                    cpy += p[off++];
                    cmd = CMD.Q;
                    path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);
                    break;
                case 'A':
                    rx = p[off++];
                    ry = p[off++];
                    psi = p[off++];
                    fa = p[off++];
                    fs = p[off++];
                    x1 = cpx, y1 = cpy;
                    cpx = p[off++];
                    cpy = p[off++];
                    cmd = CMD.A;
                    processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);
                    break;
                case 'a':
                    rx = p[off++];
                    ry = p[off++];
                    psi = p[off++];
                    fa = p[off++];
                    fs = p[off++];
                    x1 = cpx, y1 = cpy;
                    cpx += p[off++];
                    cpy += p[off++];
                    cmd = CMD.A;
                    processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);
                    break;
            }
        }
        if (cmdStr === 'z' || cmdStr === 'Z') {
            cmd = CMD.Z;
            path.addData(cmd);
            cpx = subpathX;
            cpy = subpathY;
        }
        prevCmd = cmd;
    }
    path.toStatic();
    return path;
}
var path_SVGPath = (function (_super) {
    tslib_es6_extends(SVGPath, _super);
    function SVGPath() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    SVGPath.prototype.applyTransform = function (m) { };
    return SVGPath;
}(graphic_Path));
function isPathProxy(path) {
    return path.setData != null;
}
function createPathOptions(str, opts) {
    var pathProxy = createPathProxyFromString(str);
    var innerOpts = Object(util["extend"])({}, opts);
    innerOpts.buildPath = function (path) {
        if (isPathProxy(path)) {
            path.setData(pathProxy.data);
            var ctx = path.getContext();
            if (ctx) {
                path.rebuildPath(ctx, 1);
            }
        }
        else {
            var ctx = path;
            pathProxy.rebuildPath(ctx, 1);
        }
    };
    innerOpts.applyTransform = function (m) {
        transformPath(pathProxy, m);
        this.dirtyShape();
    };
    return innerOpts;
}
function createFromString(str, opts) {
    return new path_SVGPath(createPathOptions(str, opts));
}
function extendFromString(str, defaultOpts) {
    var innerOpts = createPathOptions(str, defaultOpts);
    var Sub = (function (_super) {
        tslib_es6_extends(Sub, _super);
        function Sub(opts) {
            var _this = _super.call(this, opts) || this;
            _this.applyTransform = innerOpts.applyTransform;
            _this.buildPath = innerOpts.buildPath;
            return _this;
        }
        return Sub;
    }(path_SVGPath));
    return Sub;
}
function mergePath(pathEls, opts) {
    var pathList = [];
    var len = pathEls.length;
    for (var i = 0; i < len; i++) {
        var pathEl = pathEls[i];
        pathList.push(pathEl.getUpdatedPathProxy(true));
    }
    var pathBundle = new graphic_Path(opts);
    pathBundle.createPathProxy();
    pathBundle.buildPath = function (path) {
        if (isPathProxy(path)) {
            path.appendPath(pathList);
            var ctx = path.getContext();
            if (ctx) {
                path.rebuildPath(ctx, 1);
            }
        }
    };
    return pathBundle;
}
function clonePath(sourcePath, opts) {
    opts = opts || {};
    var path = new graphic_Path();
    if (sourcePath.shape) {
        path.setShape(sourcePath.shape);
    }
    path.setStyle(sourcePath.style);
    if (opts.bakeTransform) {
        transformPath(path.path, sourcePath.getComputedTransform());
    }
    else {
        if (opts.toLocal) {
            path.setLocalTransform(sourcePath.getComputedTransform());
        }
        else {
            path.copyTransform(sourcePath);
        }
    }
    path.buildPath = sourcePath.buildPath;
    path.applyTransform = path.applyTransform;
    path.z = sourcePath.z;
    path.z2 = sourcePath.z2;
    path.zlevel = sourcePath.zlevel;
    return path;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Circle.js


var CircleShape = (function () {
    function CircleShape() {
        this.cx = 0;
        this.cy = 0;
        this.r = 0;
    }
    return CircleShape;
}());

var Circle_Circle = (function (_super) {
    tslib_es6_extends(Circle, _super);
    function Circle(opts) {
        return _super.call(this, opts) || this;
    }
    Circle.prototype.getDefaultShape = function () {
        return new CircleShape();
    };
    Circle.prototype.buildPath = function (ctx, shape) {
        ctx.moveTo(shape.cx + shape.r, shape.cy);
        ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2);
    };
    return Circle;
}(graphic_Path));
;
Circle_Circle.prototype.type = 'circle';
/* harmony default export */ var shape_Circle = (Circle_Circle);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Ellipse.js


var EllipseShape = (function () {
    function EllipseShape() {
        this.cx = 0;
        this.cy = 0;
        this.rx = 0;
        this.ry = 0;
    }
    return EllipseShape;
}());

var Ellipse_Ellipse = (function (_super) {
    tslib_es6_extends(Ellipse, _super);
    function Ellipse(opts) {
        return _super.call(this, opts) || this;
    }
    Ellipse.prototype.getDefaultShape = function () {
        return new EllipseShape();
    };
    Ellipse.prototype.buildPath = function (ctx, shape) {
        var k = 0.5522848;
        var x = shape.cx;
        var y = shape.cy;
        var a = shape.rx;
        var b = shape.ry;
        var ox = a * k;
        var oy = b * k;
        ctx.moveTo(x - a, y);
        ctx.bezierCurveTo(x - a, y - oy, x - ox, y - b, x, y - b);
        ctx.bezierCurveTo(x + ox, y - b, x + a, y - oy, x + a, y);
        ctx.bezierCurveTo(x + a, y + oy, x + ox, y + b, x, y + b);
        ctx.bezierCurveTo(x - ox, y + b, x - a, y + oy, x - a, y);
        ctx.closePath();
    };
    return Ellipse;
}(graphic_Path));
Ellipse_Ellipse.prototype.type = 'ellipse';
/* harmony default export */ var shape_Ellipse = (Ellipse_Ellipse);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/roundSector.js

var roundSector_PI = Math.PI;
var roundSector_PI2 = roundSector_PI * 2;
var roundSector_mathSin = Math.sin;
var roundSector_mathCos = Math.cos;
var mathACos = Math.acos;
var mathATan2 = Math.atan2;
var roundSector_mathAbs = Math.abs;
var roundSector_mathSqrt = Math.sqrt;
var roundSector_mathMax = Math.max;
var roundSector_mathMin = Math.min;
var roundSector_e = 1e-4;
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
    var dx10 = x1 - x0;
    var dy10 = y1 - y0;
    var dx32 = x3 - x2;
    var dy32 = y3 - y2;
    var t = dy32 * dx10 - dx32 * dy10;
    if (t * t < roundSector_e) {
        return;
    }
    t = (dx32 * (y0 - y2) - dy32 * (x0 - x2)) / t;
    return [x0 + t * dx10, y0 + t * dy10];
}
function computeCornerTangents(x0, y0, x1, y1, radius, cr, clockwise) {
    var x01 = x0 - x1;
    var y01 = y0 - y1;
    var lo = (clockwise ? cr : -cr) / roundSector_mathSqrt(x01 * x01 + y01 * y01);
    var ox = lo * y01;
    var oy = -lo * x01;
    var x11 = x0 + ox;
    var y11 = y0 + oy;
    var x10 = x1 + ox;
    var y10 = y1 + oy;
    var x00 = (x11 + x10) / 2;
    var y00 = (y11 + y10) / 2;
    var dx = x10 - x11;
    var dy = y10 - y11;
    var d2 = dx * dx + dy * dy;
    var r = radius - cr;
    var s = x11 * y10 - x10 * y11;
    var d = (dy < 0 ? -1 : 1) * roundSector_mathSqrt(roundSector_mathMax(0, r * r * d2 - s * s));
    var cx0 = (s * dy - dx * d) / d2;
    var cy0 = (-s * dx - dy * d) / d2;
    var cx1 = (s * dy + dx * d) / d2;
    var cy1 = (-s * dx + dy * d) / d2;
    var dx0 = cx0 - x00;
    var dy0 = cy0 - y00;
    var dx1 = cx1 - x00;
    var dy1 = cy1 - y00;
    if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) {
        cx0 = cx1;
        cy0 = cy1;
    }
    return {
        cx: cx0,
        cy: cy0,
        x0: -ox,
        y0: -oy,
        x1: cx0 * (radius / r - 1),
        y1: cy0 * (radius / r - 1)
    };
}
function normalizeCornerRadius(cr) {
    var arr;
    if (Object(util["isArray"])(cr)) {
        var len = cr.length;
        if (!len) {
            return cr;
        }
        if (len === 1) {
            arr = [cr[0], cr[0], 0, 0];
        }
        else if (len === 2) {
            arr = [cr[0], cr[0], cr[1], cr[1]];
        }
        else if (len === 3) {
            arr = cr.concat(cr[2]);
        }
        else {
            arr = cr;
        }
    }
    else {
        arr = [cr, cr, cr, cr];
    }
    return arr;
}
function roundSector_buildPath(ctx, shape) {
    var _a;
    var radius = roundSector_mathMax(shape.r, 0);
    var innerRadius = roundSector_mathMax(shape.r0 || 0, 0);
    var hasRadius = radius > 0;
    var hasInnerRadius = innerRadius > 0;
    if (!hasRadius && !hasInnerRadius) {
        return;
    }
    if (!hasRadius) {
        radius = innerRadius;
        innerRadius = 0;
    }
    if (innerRadius > radius) {
        var tmp = radius;
        radius = innerRadius;
        innerRadius = tmp;
    }
    var startAngle = shape.startAngle, endAngle = shape.endAngle;
    if (isNaN(startAngle) || isNaN(endAngle)) {
        return;
    }
    var cx = shape.cx, cy = shape.cy;
    var clockwise = !!shape.clockwise;
    var arc = roundSector_mathAbs(endAngle - startAngle);
    var mod = arc > roundSector_PI2 && arc % roundSector_PI2;
    mod > roundSector_e && (arc = mod);
    if (!(radius > roundSector_e)) {
        ctx.moveTo(cx, cy);
    }
    else if (arc > roundSector_PI2 - roundSector_e) {
        ctx.moveTo(cx + radius * roundSector_mathCos(startAngle), cy + radius * roundSector_mathSin(startAngle));
        ctx.arc(cx, cy, radius, startAngle, endAngle, !clockwise);
        if (innerRadius > roundSector_e) {
            ctx.moveTo(cx + innerRadius * roundSector_mathCos(endAngle), cy + innerRadius * roundSector_mathSin(endAngle));
            ctx.arc(cx, cy, innerRadius, endAngle, startAngle, clockwise);
        }
    }
    else {
        var icrStart = void 0;
        var icrEnd = void 0;
        var ocrStart = void 0;
        var ocrEnd = void 0;
        var ocrs = void 0;
        var ocre = void 0;
        var icrs = void 0;
        var icre = void 0;
        var ocrMax = void 0;
        var icrMax = void 0;
        var limitedOcrMax = void 0;
        var limitedIcrMax = void 0;
        var xre = void 0;
        var yre = void 0;
        var xirs = void 0;
        var yirs = void 0;
        var xrs = radius * roundSector_mathCos(startAngle);
        var yrs = radius * roundSector_mathSin(startAngle);
        var xire = innerRadius * roundSector_mathCos(endAngle);
        var yire = innerRadius * roundSector_mathSin(endAngle);
        var hasArc = arc > roundSector_e;
        if (hasArc) {
            var cornerRadius = shape.cornerRadius;
            if (cornerRadius) {
                _a = normalizeCornerRadius(cornerRadius), icrStart = _a[0], icrEnd = _a[1], ocrStart = _a[2], ocrEnd = _a[3];
            }
            var halfRd = roundSector_mathAbs(radius - innerRadius) / 2;
            ocrs = roundSector_mathMin(halfRd, ocrStart);
            ocre = roundSector_mathMin(halfRd, ocrEnd);
            icrs = roundSector_mathMin(halfRd, icrStart);
            icre = roundSector_mathMin(halfRd, icrEnd);
            limitedOcrMax = ocrMax = roundSector_mathMax(ocrs, ocre);
            limitedIcrMax = icrMax = roundSector_mathMax(icrs, icre);
            if (ocrMax > roundSector_e || icrMax > roundSector_e) {
                xre = radius * roundSector_mathCos(endAngle);
                yre = radius * roundSector_mathSin(endAngle);
                xirs = innerRadius * roundSector_mathCos(startAngle);
                yirs = innerRadius * roundSector_mathSin(startAngle);
                if (arc < roundSector_PI) {
                    var it_1 = intersect(xrs, yrs, xirs, yirs, xre, yre, xire, yire);
                    if (it_1) {
                        var x0 = xrs - it_1[0];
                        var y0 = yrs - it_1[1];
                        var x1 = xre - it_1[0];
                        var y1 = yre - it_1[1];
                        var a = 1 / roundSector_mathSin(mathACos((x0 * x1 + y0 * y1) / (roundSector_mathSqrt(x0 * x0 + y0 * y0) * roundSector_mathSqrt(x1 * x1 + y1 * y1))) / 2);
                        var b = roundSector_mathSqrt(it_1[0] * it_1[0] + it_1[1] * it_1[1]);
                        limitedOcrMax = roundSector_mathMin(ocrMax, (radius - b) / (a + 1));
                        limitedIcrMax = roundSector_mathMin(icrMax, (innerRadius - b) / (a - 1));
                    }
                }
            }
        }
        if (!hasArc) {
            ctx.moveTo(cx + xrs, cy + yrs);
        }
        else if (limitedOcrMax > roundSector_e) {
            var crStart = roundSector_mathMin(ocrStart, limitedOcrMax);
            var crEnd = roundSector_mathMin(ocrEnd, limitedOcrMax);
            var ct0 = computeCornerTangents(xirs, yirs, xrs, yrs, radius, crStart, clockwise);
            var ct1 = computeCornerTangents(xre, yre, xire, yire, radius, crEnd, clockwise);
            ctx.moveTo(cx + ct0.cx + ct0.x0, cy + ct0.cy + ct0.y0);
            if (limitedOcrMax < ocrMax && crStart === crEnd) {
                ctx.arc(cx + ct0.cx, cy + ct0.cy, limitedOcrMax, mathATan2(ct0.y0, ct0.x0), mathATan2(ct1.y0, ct1.x0), !clockwise);
            }
            else {
                crStart > 0 && ctx.arc(cx + ct0.cx, cy + ct0.cy, crStart, mathATan2(ct0.y0, ct0.x0), mathATan2(ct0.y1, ct0.x1), !clockwise);
                ctx.arc(cx, cy, radius, mathATan2(ct0.cy + ct0.y1, ct0.cx + ct0.x1), mathATan2(ct1.cy + ct1.y1, ct1.cx + ct1.x1), !clockwise);
                crEnd > 0 && ctx.arc(cx + ct1.cx, cy + ct1.cy, crEnd, mathATan2(ct1.y1, ct1.x1), mathATan2(ct1.y0, ct1.x0), !clockwise);
            }
        }
        else {
            ctx.moveTo(cx + xrs, cy + yrs);
            ctx.arc(cx, cy, radius, startAngle, endAngle, !clockwise);
        }
        if (!(innerRadius > roundSector_e) || !hasArc) {
            ctx.lineTo(cx + xire, cy + yire);
        }
        else if (limitedIcrMax > roundSector_e) {
            var crStart = roundSector_mathMin(icrStart, limitedIcrMax);
            var crEnd = roundSector_mathMin(icrEnd, limitedIcrMax);
            var ct0 = computeCornerTangents(xire, yire, xre, yre, innerRadius, -crEnd, clockwise);
            var ct1 = computeCornerTangents(xrs, yrs, xirs, yirs, innerRadius, -crStart, clockwise);
            ctx.lineTo(cx + ct0.cx + ct0.x0, cy + ct0.cy + ct0.y0);
            if (limitedIcrMax < icrMax && crStart === crEnd) {
                ctx.arc(cx + ct0.cx, cy + ct0.cy, limitedIcrMax, mathATan2(ct0.y0, ct0.x0), mathATan2(ct1.y0, ct1.x0), !clockwise);
            }
            else {
                crEnd > 0 && ctx.arc(cx + ct0.cx, cy + ct0.cy, crEnd, mathATan2(ct0.y0, ct0.x0), mathATan2(ct0.y1, ct0.x1), !clockwise);
                ctx.arc(cx, cy, innerRadius, mathATan2(ct0.cy + ct0.y1, ct0.cx + ct0.x1), mathATan2(ct1.cy + ct1.y1, ct1.cx + ct1.x1), clockwise);
                crStart > 0 && ctx.arc(cx + ct1.cx, cy + ct1.cy, crStart, mathATan2(ct1.y1, ct1.x1), mathATan2(ct1.y0, ct1.x0), !clockwise);
            }
        }
        else {
            ctx.lineTo(cx + xire, cy + yire);
            ctx.arc(cx, cy, innerRadius, endAngle, startAngle, clockwise);
        }
    }
    ctx.closePath();
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Sector.js



var SectorShape = (function () {
    function SectorShape() {
        this.cx = 0;
        this.cy = 0;
        this.r0 = 0;
        this.r = 0;
        this.startAngle = 0;
        this.endAngle = Math.PI * 2;
        this.clockwise = true;
        this.cornerRadius = 0;
    }
    return SectorShape;
}());

var Sector_Sector = (function (_super) {
    tslib_es6_extends(Sector, _super);
    function Sector(opts) {
        return _super.call(this, opts) || this;
    }
    Sector.prototype.getDefaultShape = function () {
        return new SectorShape();
    };
    Sector.prototype.buildPath = function (ctx, shape) {
        roundSector_buildPath(ctx, shape);
    };
    Sector.prototype.isZeroArea = function () {
        return this.shape.startAngle === this.shape.endAngle
            || this.shape.r === this.shape.r0;
    };
    return Sector;
}(graphic_Path));
Sector_Sector.prototype.type = 'sector';
/* harmony default export */ var shape_Sector = (Sector_Sector);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Ring.js


var RingShape = (function () {
    function RingShape() {
        this.cx = 0;
        this.cy = 0;
        this.r = 0;
        this.r0 = 0;
    }
    return RingShape;
}());

var Ring_Ring = (function (_super) {
    tslib_es6_extends(Ring, _super);
    function Ring(opts) {
        return _super.call(this, opts) || this;
    }
    Ring.prototype.getDefaultShape = function () {
        return new RingShape();
    };
    Ring.prototype.buildPath = function (ctx, shape) {
        var x = shape.cx;
        var y = shape.cy;
        var PI2 = Math.PI * 2;
        ctx.moveTo(x + shape.r, y);
        ctx.arc(x, y, shape.r, 0, PI2, false);
        ctx.moveTo(x + shape.r0, y);
        ctx.arc(x, y, shape.r0, 0, PI2, true);
    };
    return Ring;
}(graphic_Path));
Ring_Ring.prototype.type = 'ring';
/* harmony default export */ var shape_Ring = (Ring_Ring);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/smoothBezier.js

function smoothBezier(points, smooth, isLoop, constraint) {
    var cps = [];
    var v = [];
    var v1 = [];
    var v2 = [];
    var prevPoint;
    var nextPoint;
    var min;
    var max;
    if (constraint) {
        min = [Infinity, Infinity];
        max = [-Infinity, -Infinity];
        for (var i = 0, len = points.length; i < len; i++) {
            vector_min(min, min, points[i]);
            vector_max(max, max, points[i]);
        }
        vector_min(min, min, constraint[0]);
        vector_max(max, max, constraint[1]);
    }
    for (var i = 0, len = points.length; i < len; i++) {
        var point = points[i];
        if (isLoop) {
            prevPoint = points[i ? i - 1 : len - 1];
            nextPoint = points[(i + 1) % len];
        }
        else {
            if (i === 0 || i === len - 1) {
                cps.push(clone(points[i]));
                continue;
            }
            else {
                prevPoint = points[i - 1];
                nextPoint = points[i + 1];
            }
        }
        sub(v, nextPoint, prevPoint);
        vector_scale(v, v, smooth);
        var d0 = vector_distance(point, prevPoint);
        var d1 = vector_distance(point, nextPoint);
        var sum = d0 + d1;
        if (sum !== 0) {
            d0 /= sum;
            d1 /= sum;
        }
        vector_scale(v1, v, -d0);
        vector_scale(v2, v, d1);
        var cp0 = vector_add([], point, v1);
        var cp1 = vector_add([], point, v2);
        if (constraint) {
            vector_max(cp0, cp0, min);
            vector_min(cp0, cp0, max);
            vector_max(cp1, cp1, min);
            vector_min(cp1, cp1, max);
        }
        cps.push(cp0);
        cps.push(cp1);
    }
    if (isLoop) {
        cps.push(cps.shift());
    }
    return cps;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/poly.js

function poly_buildPath(ctx, shape, closePath) {
    var smooth = shape.smooth;
    var points = shape.points;
    if (points && points.length >= 2) {
        if (smooth) {
            var controlPoints = smoothBezier(points, smooth, closePath, shape.smoothConstraint);
            ctx.moveTo(points[0][0], points[0][1]);
            var len = points.length;
            for (var i = 0; i < (closePath ? len : len - 1); i++) {
                var cp1 = controlPoints[i * 2];
                var cp2 = controlPoints[i * 2 + 1];
                var p = points[(i + 1) % len];
                ctx.bezierCurveTo(cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]);
            }
        }
        else {
            ctx.moveTo(points[0][0], points[0][1]);
            for (var i = 1, l = points.length; i < l; i++) {
                ctx.lineTo(points[i][0], points[i][1]);
            }
        }
        closePath && ctx.closePath();
    }
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Polygon.js



var PolygonShape = (function () {
    function PolygonShape() {
        this.points = null;
        this.smooth = 0;
        this.smoothConstraint = null;
    }
    return PolygonShape;
}());

var Polygon_Polygon = (function (_super) {
    tslib_es6_extends(Polygon, _super);
    function Polygon(opts) {
        return _super.call(this, opts) || this;
    }
    Polygon.prototype.getDefaultShape = function () {
        return new PolygonShape();
    };
    Polygon.prototype.buildPath = function (ctx, shape) {
        poly_buildPath(ctx, shape, true);
    };
    return Polygon;
}(graphic_Path));
;
Polygon_Polygon.prototype.type = 'polygon';
/* harmony default export */ var shape_Polygon = (Polygon_Polygon);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Polyline.js



var PolylineShape = (function () {
    function PolylineShape() {
        this.points = null;
        this.percent = 1;
        this.smooth = 0;
        this.smoothConstraint = null;
    }
    return PolylineShape;
}());

var Polyline_Polyline = (function (_super) {
    tslib_es6_extends(Polyline, _super);
    function Polyline(opts) {
        return _super.call(this, opts) || this;
    }
    Polyline.prototype.getDefaultStyle = function () {
        return {
            stroke: '#000',
            fill: null
        };
    };
    Polyline.prototype.getDefaultShape = function () {
        return new PolylineShape();
    };
    Polyline.prototype.buildPath = function (ctx, shape) {
        poly_buildPath(ctx, shape, false);
    };
    return Polyline;
}(graphic_Path));
Polyline_Polyline.prototype.type = 'polyline';
/* harmony default export */ var shape_Polyline = (Polyline_Polyline);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Line.js



var Line_subPixelOptimizeOutputShape = {};
var LineShape = (function () {
    function LineShape() {
        this.x1 = 0;
        this.y1 = 0;
        this.x2 = 0;
        this.y2 = 0;
        this.percent = 1;
    }
    return LineShape;
}());

var Line_Line = (function (_super) {
    tslib_es6_extends(Line, _super);
    function Line(opts) {
        return _super.call(this, opts) || this;
    }
    Line.prototype.getDefaultStyle = function () {
        return {
            stroke: '#000',
            fill: null
        };
    };
    Line.prototype.getDefaultShape = function () {
        return new LineShape();
    };
    Line.prototype.buildPath = function (ctx, shape) {
        var x1;
        var y1;
        var x2;
        var y2;
        if (this.subPixelOptimize) {
            var optimizedShape = subPixelOptimizeLine(Line_subPixelOptimizeOutputShape, shape, this.style);
            x1 = optimizedShape.x1;
            y1 = optimizedShape.y1;
            x2 = optimizedShape.x2;
            y2 = optimizedShape.y2;
        }
        else {
            x1 = shape.x1;
            y1 = shape.y1;
            x2 = shape.x2;
            y2 = shape.y2;
        }
        var percent = shape.percent;
        if (percent === 0) {
            return;
        }
        ctx.moveTo(x1, y1);
        if (percent < 1) {
            x2 = x1 * (1 - percent) + x2 * percent;
            y2 = y1 * (1 - percent) + y2 * percent;
        }
        ctx.lineTo(x2, y2);
    };
    Line.prototype.pointAt = function (p) {
        var shape = this.shape;
        return [
            shape.x1 * (1 - p) + shape.x2 * p,
            shape.y1 * (1 - p) + shape.y2 * p
        ];
    };
    return Line;
}(graphic_Path));
Line_Line.prototype.type = 'line';
/* harmony default export */ var shape_Line = (Line_Line);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/BezierCurve.js




var BezierCurve_out = [];
var BezierCurveShape = (function () {
    function BezierCurveShape() {
        this.x1 = 0;
        this.y1 = 0;
        this.x2 = 0;
        this.y2 = 0;
        this.cpx1 = 0;
        this.cpy1 = 0;
        this.percent = 1;
    }
    return BezierCurveShape;
}());

function someVectorAt(shape, t, isTangent) {
    var cpx2 = shape.cpx2;
    var cpy2 = shape.cpy2;
    if (cpx2 != null || cpy2 != null) {
        return [
            (isTangent ? cubicDerivativeAt : curve_cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t),
            (isTangent ? cubicDerivativeAt : curve_cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t)
        ];
    }
    else {
        return [
            (isTangent ? curve_quadraticDerivativeAt : curve_quadraticAt)(shape.x1, shape.cpx1, shape.x2, t),
            (isTangent ? curve_quadraticDerivativeAt : curve_quadraticAt)(shape.y1, shape.cpy1, shape.y2, t)
        ];
    }
}
var BezierCurve_BezierCurve = (function (_super) {
    tslib_es6_extends(BezierCurve, _super);
    function BezierCurve(opts) {
        return _super.call(this, opts) || this;
    }
    BezierCurve.prototype.getDefaultStyle = function () {
        return {
            stroke: '#000',
            fill: null
        };
    };
    BezierCurve.prototype.getDefaultShape = function () {
        return new BezierCurveShape();
    };
    BezierCurve.prototype.buildPath = function (ctx, shape) {
        var x1 = shape.x1;
        var y1 = shape.y1;
        var x2 = shape.x2;
        var y2 = shape.y2;
        var cpx1 = shape.cpx1;
        var cpy1 = shape.cpy1;
        var cpx2 = shape.cpx2;
        var cpy2 = shape.cpy2;
        var percent = shape.percent;
        if (percent === 0) {
            return;
        }
        ctx.moveTo(x1, y1);
        if (cpx2 == null || cpy2 == null) {
            if (percent < 1) {
                curve_quadraticSubdivide(x1, cpx1, x2, percent, BezierCurve_out);
                cpx1 = BezierCurve_out[1];
                x2 = BezierCurve_out[2];
                curve_quadraticSubdivide(y1, cpy1, y2, percent, BezierCurve_out);
                cpy1 = BezierCurve_out[1];
                y2 = BezierCurve_out[2];
            }
            ctx.quadraticCurveTo(cpx1, cpy1, x2, y2);
        }
        else {
            if (percent < 1) {
                cubicSubdivide(x1, cpx1, cpx2, x2, percent, BezierCurve_out);
                cpx1 = BezierCurve_out[1];
                cpx2 = BezierCurve_out[2];
                x2 = BezierCurve_out[3];
                cubicSubdivide(y1, cpy1, cpy2, y2, percent, BezierCurve_out);
                cpy1 = BezierCurve_out[1];
                cpy2 = BezierCurve_out[2];
                y2 = BezierCurve_out[3];
            }
            ctx.bezierCurveTo(cpx1, cpy1, cpx2, cpy2, x2, y2);
        }
    };
    BezierCurve.prototype.pointAt = function (t) {
        return someVectorAt(this.shape, t, false);
    };
    BezierCurve.prototype.tangentAt = function (t) {
        var p = someVectorAt(this.shape, t, true);
        return normalize(p, p);
    };
    return BezierCurve;
}(graphic_Path));
;
BezierCurve_BezierCurve.prototype.type = 'bezier-curve';
/* harmony default export */ var shape_BezierCurve = (BezierCurve_BezierCurve);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Arc.js


var ArcShape = (function () {
    function ArcShape() {
        this.cx = 0;
        this.cy = 0;
        this.r = 0;
        this.startAngle = 0;
        this.endAngle = Math.PI * 2;
        this.clockwise = true;
    }
    return ArcShape;
}());

var Arc_Arc = (function (_super) {
    tslib_es6_extends(Arc, _super);
    function Arc(opts) {
        return _super.call(this, opts) || this;
    }
    Arc.prototype.getDefaultStyle = function () {
        return {
            stroke: '#000',
            fill: null
        };
    };
    Arc.prototype.getDefaultShape = function () {
        return new ArcShape();
    };
    Arc.prototype.buildPath = function (ctx, shape) {
        var x = shape.cx;
        var y = shape.cy;
        var r = Math.max(shape.r, 0);
        var startAngle = shape.startAngle;
        var endAngle = shape.endAngle;
        var clockwise = shape.clockwise;
        var unitX = Math.cos(startAngle);
        var unitY = Math.sin(startAngle);
        ctx.moveTo(unitX * r + x, unitY * r + y);
        ctx.arc(x, y, r, startAngle, endAngle, !clockwise);
    };
    return Arc;
}(graphic_Path));
Arc_Arc.prototype.type = 'arc';
/* harmony default export */ var shape_Arc = (Arc_Arc);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/CompoundPath.js


var CompoundPath_CompoundPath = (function (_super) {
    tslib_es6_extends(CompoundPath, _super);
    function CompoundPath() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.type = 'compound';
        return _this;
    }
    CompoundPath.prototype._updatePathDirty = function () {
        var paths = this.shape.paths;
        var dirtyPath = this.shapeChanged();
        for (var i = 0; i < paths.length; i++) {
            dirtyPath = dirtyPath || paths[i].shapeChanged();
        }
        if (dirtyPath) {
            this.dirtyShape();
        }
    };
    CompoundPath.prototype.beforeBrush = function () {
        this._updatePathDirty();
        var paths = this.shape.paths || [];
        var scale = this.getGlobalScale();
        for (var i = 0; i < paths.length; i++) {
            if (!paths[i].path) {
                paths[i].createPathProxy();
            }
            paths[i].path.setScale(scale[0], scale[1], paths[i].segmentIgnoreThreshold);
        }
    };
    CompoundPath.prototype.buildPath = function (ctx, shape) {
        var paths = shape.paths || [];
        for (var i = 0; i < paths.length; i++) {
            paths[i].buildPath(ctx, paths[i].shape, true);
        }
    };
    CompoundPath.prototype.afterBrush = function () {
        var paths = this.shape.paths || [];
        for (var i = 0; i < paths.length; i++) {
            paths[i].pathUpdated();
        }
    };
    CompoundPath.prototype.getBoundingRect = function () {
        this._updatePathDirty.call(this);
        return graphic_Path.prototype.getBoundingRect.call(this);
    };
    return CompoundPath;
}(graphic_Path));
/* harmony default export */ var graphic_CompoundPath = (CompoundPath_CompoundPath);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/Gradient.js
var Gradient = (function () {
    function Gradient(colorStops) {
        this.colorStops = colorStops || [];
    }
    Gradient.prototype.addColorStop = function (offset, color) {
        this.colorStops.push({
            offset: offset,
            color: color
        });
    };
    return Gradient;
}());
/* harmony default export */ var graphic_Gradient = (Gradient);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/LinearGradient.js


var LinearGradient_LinearGradient = (function (_super) {
    tslib_es6_extends(LinearGradient, _super);
    function LinearGradient(x, y, x2, y2, colorStops, globalCoord) {
        var _this = _super.call(this, colorStops) || this;
        _this.x = x == null ? 0 : x;
        _this.y = y == null ? 0 : y;
        _this.x2 = x2 == null ? 1 : x2;
        _this.y2 = y2 == null ? 0 : y2;
        _this.type = 'linear';
        _this.global = globalCoord || false;
        return _this;
    }
    return LinearGradient;
}(graphic_Gradient));
/* harmony default export */ var graphic_LinearGradient = (LinearGradient_LinearGradient);
;

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/RadialGradient.js


var RadialGradient_RadialGradient = (function (_super) {
    tslib_es6_extends(RadialGradient, _super);
    function RadialGradient(x, y, r, colorStops, globalCoord) {
        var _this = _super.call(this, colorStops) || this;
        _this.x = x == null ? 0.5 : x;
        _this.y = y == null ? 0.5 : y;
        _this.r = r == null ? 0.5 : r;
        _this.type = 'radial';
        _this.global = globalCoord || false;
        return _this;
    }
    return RadialGradient;
}(graphic_Gradient));
/* harmony default export */ var graphic_RadialGradient = (RadialGradient_RadialGradient);

// CONCATENATED MODULE: ./node_modules/zrender/lib/core/OrientedBoundingRect.js

var OrientedBoundingRect_extent = [0, 0];
var extent2 = [0, 0];
var OrientedBoundingRect_minTv = new core_Point();
var OrientedBoundingRect_maxTv = new core_Point();
var OrientedBoundingRect_OrientedBoundingRect = (function () {
    function OrientedBoundingRect(rect, transform) {
        this._corners = [];
        this._axes = [];
        this._origin = [0, 0];
        for (var i = 0; i < 4; i++) {
            this._corners[i] = new core_Point();
        }
        for (var i = 0; i < 2; i++) {
            this._axes[i] = new core_Point();
        }
        if (rect) {
            this.fromBoundingRect(rect, transform);
        }
    }
    OrientedBoundingRect.prototype.fromBoundingRect = function (rect, transform) {
        var corners = this._corners;
        var axes = this._axes;
        var x = rect.x;
        var y = rect.y;
        var x2 = x + rect.width;
        var y2 = y + rect.height;
        corners[0].set(x, y);
        corners[1].set(x2, y);
        corners[2].set(x2, y2);
        corners[3].set(x, y2);
        if (transform) {
            for (var i = 0; i < 4; i++) {
                corners[i].transform(transform);
            }
        }
        core_Point.sub(axes[0], corners[1], corners[0]);
        core_Point.sub(axes[1], corners[3], corners[0]);
        axes[0].normalize();
        axes[1].normalize();
        for (var i = 0; i < 2; i++) {
            this._origin[i] = axes[i].dot(corners[0]);
        }
    };
    OrientedBoundingRect.prototype.intersect = function (other, mtv) {
        var overlapped = true;
        var noMtv = !mtv;
        OrientedBoundingRect_minTv.set(Infinity, Infinity);
        OrientedBoundingRect_maxTv.set(0, 0);
        if (!this._intersectCheckOneSide(this, other, OrientedBoundingRect_minTv, OrientedBoundingRect_maxTv, noMtv, 1)) {
            overlapped = false;
            if (noMtv) {
                return overlapped;
            }
        }
        if (!this._intersectCheckOneSide(other, this, OrientedBoundingRect_minTv, OrientedBoundingRect_maxTv, noMtv, -1)) {
            overlapped = false;
            if (noMtv) {
                return overlapped;
            }
        }
        if (!noMtv) {
            core_Point.copy(mtv, overlapped ? OrientedBoundingRect_minTv : OrientedBoundingRect_maxTv);
        }
        return overlapped;
    };
    OrientedBoundingRect.prototype._intersectCheckOneSide = function (self, other, minTv, maxTv, noMtv, inverse) {
        var overlapped = true;
        for (var i = 0; i < 2; i++) {
            var axis = this._axes[i];
            this._getProjMinMaxOnAxis(i, self._corners, OrientedBoundingRect_extent);
            this._getProjMinMaxOnAxis(i, other._corners, extent2);
            if (OrientedBoundingRect_extent[1] < extent2[0] || OrientedBoundingRect_extent[0] > extent2[1]) {
                overlapped = false;
                if (noMtv) {
                    return overlapped;
                }
                var dist0 = Math.abs(extent2[0] - OrientedBoundingRect_extent[1]);
                var dist1 = Math.abs(OrientedBoundingRect_extent[0] - extent2[1]);
                if (Math.min(dist0, dist1) > maxTv.len()) {
                    if (dist0 < dist1) {
                        core_Point.scale(maxTv, axis, -dist0 * inverse);
                    }
                    else {
                        core_Point.scale(maxTv, axis, dist1 * inverse);
                    }
                }
            }
            else if (minTv) {
                var dist0 = Math.abs(extent2[0] - OrientedBoundingRect_extent[1]);
                var dist1 = Math.abs(OrientedBoundingRect_extent[0] - extent2[1]);
                if (Math.min(dist0, dist1) < minTv.len()) {
                    if (dist0 < dist1) {
                        core_Point.scale(minTv, axis, dist0 * inverse);
                    }
                    else {
                        core_Point.scale(minTv, axis, -dist1 * inverse);
                    }
                }
            }
        }
        return overlapped;
    };
    OrientedBoundingRect.prototype._getProjMinMaxOnAxis = function (dim, corners, out) {
        var axis = this._axes[dim];
        var origin = this._origin;
        var proj = corners[0].dot(axis) + origin[dim];
        var min = proj;
        var max = proj;
        for (var i = 1; i < corners.length; i++) {
            var proj_1 = corners[i].dot(axis) + origin[dim];
            min = Math.min(proj_1, min);
            max = Math.max(proj_1, max);
        }
        out[0] = min;
        out[1] = max;
    };
    return OrientedBoundingRect;
}());
/* harmony default export */ var core_OrientedBoundingRect = (OrientedBoundingRect_OrientedBoundingRect);

// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/IncrementalDisplayable.js



var IncrementalDisplayable_m = [];
var IncrementalDisplayable_IncrementalDisplayable = (function (_super) {
    tslib_es6_extends(IncrementalDisplayable, _super);
    function IncrementalDisplayable() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.notClear = true;
        _this.incremental = true;
        _this._displayables = [];
        _this._temporaryDisplayables = [];
        _this._cursor = 0;
        return _this;
    }
    IncrementalDisplayable.prototype.traverse = function (cb, context) {
        cb.call(context, this);
    };
    IncrementalDisplayable.prototype.useStyle = function () {
        this.style = {};
    };
    IncrementalDisplayable.prototype.getCursor = function () {
        return this._cursor;
    };
    IncrementalDisplayable.prototype.innerAfterBrush = function () {
        this._cursor = this._displayables.length;
    };
    IncrementalDisplayable.prototype.clearDisplaybles = function () {
        this._displayables = [];
        this._temporaryDisplayables = [];
        this._cursor = 0;
        this.markRedraw();
        this.notClear = false;
    };
    IncrementalDisplayable.prototype.clearTemporalDisplayables = function () {
        this._temporaryDisplayables = [];
    };
    IncrementalDisplayable.prototype.addDisplayable = function (displayable, notPersistent) {
        if (notPersistent) {
            this._temporaryDisplayables.push(displayable);
        }
        else {
            this._displayables.push(displayable);
        }
        this.markRedraw();
    };
    IncrementalDisplayable.prototype.addDisplayables = function (displayables, notPersistent) {
        notPersistent = notPersistent || false;
        for (var i = 0; i < displayables.length; i++) {
            this.addDisplayable(displayables[i], notPersistent);
        }
    };
    IncrementalDisplayable.prototype.getDisplayables = function () {
        return this._displayables;
    };
    IncrementalDisplayable.prototype.getTemporalDisplayables = function () {
        return this._temporaryDisplayables;
    };
    IncrementalDisplayable.prototype.eachPendingDisplayable = function (cb) {
        for (var i = this._cursor; i < this._displayables.length; i++) {
            cb && cb(this._displayables[i]);
        }
        for (var i = 0; i < this._temporaryDisplayables.length; i++) {
            cb && cb(this._temporaryDisplayables[i]);
        }
    };
    IncrementalDisplayable.prototype.update = function () {
        this.updateTransform();
        for (var i = this._cursor; i < this._displayables.length; i++) {
            var displayable = this._displayables[i];
            displayable.parent = this;
            displayable.update();
            displayable.parent = null;
        }
        for (var i = 0; i < this._temporaryDisplayables.length; i++) {
            var displayable = this._temporaryDisplayables[i];
            displayable.parent = this;
            displayable.update();
            displayable.parent = null;
        }
    };
    IncrementalDisplayable.prototype.getBoundingRect = function () {
        if (!this._rect) {
            var rect = new core_BoundingRect(Infinity, Infinity, -Infinity, -Infinity);
            for (var i = 0; i < this._displayables.length; i++) {
                var displayable = this._displayables[i];
                var childRect = displayable.getBoundingRect().clone();
                if (displayable.needLocalTransform()) {
                    childRect.applyTransform(displayable.getLocalTransform(IncrementalDisplayable_m));
                }
                rect.union(childRect);
            }
            this._rect = rect;
        }
        return this._rect;
    };
    IncrementalDisplayable.prototype.contain = function (x, y) {
        var localPos = this.transformCoordToLocal(x, y);
        var rect = this.getBoundingRect();
        if (rect.contain(localPos[0], localPos[1])) {
            for (var i = 0; i < this._displayables.length; i++) {
                var displayable = this._displayables[i];
                if (displayable.contain(x, y)) {
                    return true;
                }
            }
        }
        return false;
    };
    return IncrementalDisplayable;
}(graphic_Displayable));
/* harmony default export */ var graphic_IncrementalDisplayable = (IncrementalDisplayable_IncrementalDisplayable);

// CONCATENATED MODULE: ./node_modules/echarts/lib/util/graphic.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





























/**
 * @deprecated export for compatitable reason
 */

var graphic_mathMax = Math.max;
var graphic_mathMin = Math.min;
var _customShapeMap = {};
/**
 * Extend shape with parameters
 */
function extendShape(opts) {
  return graphic_Path.extend(opts);
}
var extendPathFromString = extendFromString;
/**
 * Extend path
 */
function extendPath(pathData, opts) {
  return extendPathFromString(pathData, opts);
}
/**
 * Register a user defined shape.
 * The shape class can be fetched by `getShapeClass`
 * This method will overwrite the registered shapes, including
 * the registered built-in shapes, if using the same `name`.
 * The shape can be used in `custom series` and
 * `graphic component` by declaring `{type: name}`.
 *
 * @param name
 * @param ShapeClass Can be generated by `extendShape`.
 */
function registerShape(name, ShapeClass) {
  _customShapeMap[name] = ShapeClass;
}
/**
 * Find shape class registered by `registerShape`. Usually used in
 * fetching user defined shape.
 *
 * [Caution]:
 * (1) This method **MUST NOT be used inside echarts !!!**, unless it is prepared
 * to use user registered shapes.
 * Because the built-in shape (see `getBuiltInShape`) will be registered by
 * `registerShape` by default. That enables users to get both built-in
 * shapes as well as the shapes belonging to themsleves. But users can overwrite
 * the built-in shapes by using names like 'circle', 'rect' via calling
 * `registerShape`. So the echarts inner featrues should not fetch shapes from here
 * in case that it is overwritten by users, except that some features, like
 * `custom series`, `graphic component`, do it deliberately.
 *
 * (2) In the features like `custom series`, `graphic component`, the user input
 * `{tpye: 'xxx'}` does not only specify shapes but also specify other graphic
 * elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names
 * are reserved names, that is, if some user registers a shape named `'image'`,
 * the shape will not be used. If we intending to add some more reserved names
 * in feature, that might bring break changes (disable some existing user shape
 * names). But that case probably rarely happens. So we don't make more mechanism
 * to resolve this issue here.
 *
 * @param name
 * @return The shape class. If not found, return nothing.
 */
function getShapeClass(name) {
  if (_customShapeMap.hasOwnProperty(name)) {
    return _customShapeMap[name];
  }
}
/**
 * Create a path element from path data string
 * @param pathData
 * @param opts
 * @param rect
 * @param layout 'center' or 'cover' default to be cover
 */
function makePath(pathData, opts, rect, layout) {
  var path = createFromString(pathData, opts);
  if (rect) {
    if (layout === 'center') {
      rect = centerGraphic(rect, path.getBoundingRect());
    }
    resizePath(path, rect);
  }
  return path;
}
/**
 * Create a image element from image url
 * @param imageUrl image url
 * @param opts options
 * @param rect constrain rect
 * @param layout 'center' or 'cover'. Default to be 'cover'
 */
function makeImage(imageUrl, rect, layout) {
  var zrImg = new graphic_Image({
    style: {
      image: imageUrl,
      x: rect.x,
      y: rect.y,
      width: rect.width,
      height: rect.height
    },
    onload: function (img) {
      if (layout === 'center') {
        var boundingRect = {
          width: img.width,
          height: img.height
        };
        zrImg.setStyle(centerGraphic(rect, boundingRect));
      }
    }
  });
  return zrImg;
}
/**
 * Get position of centered element in bounding box.
 *
 * @param  rect         element local bounding box
 * @param  boundingRect constraint bounding box
 * @return element position containing x, y, width, and height
 */
function centerGraphic(rect, boundingRect) {
  // Set rect to center, keep width / height ratio.
  var aspect = boundingRect.width / boundingRect.height;
  var width = rect.height * aspect;
  var height;
  if (width <= rect.width) {
    height = rect.height;
  } else {
    width = rect.width;
    height = width / aspect;
  }
  var cx = rect.x + rect.width / 2;
  var cy = rect.y + rect.height / 2;
  return {
    x: cx - width / 2,
    y: cy - height / 2,
    width: width,
    height: height
  };
}
var graphic_mergePath = mergePath;
/**
 * Resize a path to fit the rect
 * @param path
 * @param rect
 */
function resizePath(path, rect) {
  if (!path.applyTransform) {
    return;
  }
  var pathRect = path.getBoundingRect();
  var m = pathRect.calculateTransform(rect);
  path.applyTransform(m);
}
/**
 * Sub pixel optimize line for canvas
 */
function graphic_subPixelOptimizeLine(shape, lineWidth) {
  subPixelOptimizeLine(shape, shape, {
    lineWidth: lineWidth
  });
  return shape;
}
/**
 * Sub pixel optimize rect for canvas
 */
function graphic_subPixelOptimizeRect(param) {
  subPixelOptimizeRect(param.shape, param.shape, param.style);
  return param;
}
/**
 * Sub pixel optimize for canvas
 *
 * @param position Coordinate, such as x, y
 * @param lineWidth Should be nonnegative integer.
 * @param positiveOrNegative Default false (negative).
 * @return Optimized position.
 */
var graphic_subPixelOptimize = subPixelOptimize;
/**
 * Get transform matrix of target (param target),
 * in coordinate of its ancestor (param ancestor)
 *
 * @param target
 * @param [ancestor]
 */
function getTransform(target, ancestor) {
  var mat = identity([]);
  while (target && target !== ancestor) {
    matrix_mul(mat, target.getLocalTransform(), mat);
    target = target.parent;
  }
  return mat;
}
/**
 * Apply transform to an vertex.
 * @param target [x, y]
 * @param transform Can be:
 *      + Transform matrix: like [1, 0, 0, 1, 0, 0]
 *      + {position, rotation, scale}, the same as `zrender/Transformable`.
 * @param invert Whether use invert matrix.
 * @return [x, y]
 */
function graphic_applyTransform(target, transform, invert) {
  if (transform && !Object(util["isArrayLike"])(transform)) {
    transform = core_Transformable.getLocalTransform(transform);
  }
  if (invert) {
    transform = matrix_invert([], transform);
  }
  return applyTransform([], target, transform);
}
/**
 * @param direction 'left' 'right' 'top' 'bottom'
 * @param transform Transform matrix: like [1, 0, 0, 1, 0, 0]
 * @param invert Whether use invert matrix.
 * @return Transformed direction. 'left' 'right' 'top' 'bottom'
 */
function transformDirection(direction, transform, invert) {
  // Pick a base, ensure that transform result will not be (0, 0).
  var hBase = transform[4] === 0 || transform[5] === 0 || transform[0] === 0 ? 1 : Math.abs(2 * transform[4] / transform[0]);
  var vBase = transform[4] === 0 || transform[5] === 0 || transform[2] === 0 ? 1 : Math.abs(2 * transform[4] / transform[2]);
  var vertex = [direction === 'left' ? -hBase : direction === 'right' ? hBase : 0, direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0];
  vertex = graphic_applyTransform(vertex, transform, invert);
  return Math.abs(vertex[0]) > Math.abs(vertex[1]) ? vertex[0] > 0 ? 'right' : 'left' : vertex[1] > 0 ? 'bottom' : 'top';
}
function isNotGroup(el) {
  return !el.isGroup;
}
function isPath(el) {
  return el.shape != null;
}
/**
 * Apply group transition animation from g1 to g2.
 * If no animatableModel, no animation.
 */
function groupTransition(g1, g2, animatableModel) {
  if (!g1 || !g2) {
    return;
  }
  function getElMap(g) {
    var elMap = {};
    g.traverse(function (el) {
      if (isNotGroup(el) && el.anid) {
        elMap[el.anid] = el;
      }
    });
    return elMap;
  }
  function getAnimatableProps(el) {
    var obj = {
      x: el.x,
      y: el.y,
      rotation: el.rotation
    };
    if (isPath(el)) {
      obj.shape = Object(util["extend"])({}, el.shape);
    }
    return obj;
  }
  var elMap1 = getElMap(g1);
  g2.traverse(function (el) {
    if (isNotGroup(el) && el.anid) {
      var oldEl = elMap1[el.anid];
      if (oldEl) {
        var newProp = getAnimatableProps(el);
        el.attr(getAnimatableProps(oldEl));
        updateProps(el, newProp, animatableModel, getECData(el).dataIndex);
      }
    }
  });
}
function clipPointsByRect(points, rect) {
  // FIXME: This way might be incorrect when graphic clipped by a corner
  // and when element has a border.
  return Object(util["map"])(points, function (point) {
    var x = point[0];
    x = graphic_mathMax(x, rect.x);
    x = graphic_mathMin(x, rect.x + rect.width);
    var y = point[1];
    y = graphic_mathMax(y, rect.y);
    y = graphic_mathMin(y, rect.y + rect.height);
    return [x, y];
  });
}
/**
 * Return a new clipped rect. If rect size are negative, return undefined.
 */
function clipRectByRect(targetRect, rect) {
  var x = graphic_mathMax(targetRect.x, rect.x);
  var x2 = graphic_mathMin(targetRect.x + targetRect.width, rect.x + rect.width);
  var y = graphic_mathMax(targetRect.y, rect.y);
  var y2 = graphic_mathMin(targetRect.y + targetRect.height, rect.y + rect.height);
  // If the total rect is cliped, nothing, including the border,
  // should be painted. So return undefined.
  if (x2 >= x && y2 >= y) {
    return {
      x: x,
      y: y,
      width: x2 - x,
      height: y2 - y
    };
  }
}
function createIcon(iconStr,
// Support 'image://' or 'path://' or direct svg path.
opt, rect) {
  var innerOpts = Object(util["extend"])({
    rectHover: true
  }, opt);
  var style = innerOpts.style = {
    strokeNoScale: true
  };
  rect = rect || {
    x: -1,
    y: -1,
    width: 2,
    height: 2
  };
  if (iconStr) {
    return iconStr.indexOf('image://') === 0 ? (style.image = iconStr.slice(8), Object(util["defaults"])(style, rect), new graphic_Image(innerOpts)) : makePath(iconStr.replace('path://', ''), innerOpts, rect, 'center');
  }
}
/**
 * Return `true` if the given line (line `a`) and the given polygon
 * are intersect.
 * Note that we do not count colinear as intersect here because no
 * requirement for that. We could do that if required in future.
 */
function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
  for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
    var p = points[i];
    if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
      return true;
    }
    p2 = p;
  }
}
/**
 * Return `true` if the given two lines (line `a` and line `b`)
 * are intersect.
 * Note that we do not count colinear as intersect here because no
 * requirement for that. We could do that if required in future.
 */
function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
  // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
  var mx = a2x - a1x;
  var my = a2y - a1y;
  var nx = b2x - b1x;
  var ny = b2y - b1y;
  // `vec_m` and `vec_n` are parallel iff
  //     existing `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
  var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
  if (nearZero(nmCrossProduct)) {
    return false;
  }
  // `vec_m` and `vec_n` are intersect iff
  //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
  //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
  //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
  var b1a1x = a1x - b1x;
  var b1a1y = a1y - b1y;
  var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
  if (q < 0 || q > 1) {
    return false;
  }
  var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
  if (p < 0 || p > 1) {
    return false;
  }
  return true;
}
/**
 * Cross product of 2-dimension vector.
 */
function crossProduct2d(x1, y1, x2, y2) {
  return x1 * y2 - x2 * y1;
}
function nearZero(val) {
  return val <= 1e-6 && val >= -1e-6;
}
function setTooltipConfig(opt) {
  var itemTooltipOption = opt.itemTooltipOption;
  var componentModel = opt.componentModel;
  var itemName = opt.itemName;
  var itemTooltipOptionObj = Object(util["isString"])(itemTooltipOption) ? {
    formatter: itemTooltipOption
  } : itemTooltipOption;
  var mainType = componentModel.mainType;
  var componentIndex = componentModel.componentIndex;
  var formatterParams = {
    componentType: mainType,
    name: itemName,
    $vars: ['name']
  };
  formatterParams[mainType + 'Index'] = componentIndex;
  var formatterParamsExtra = opt.formatterParamsExtra;
  if (formatterParamsExtra) {
    Object(util["each"])(Object(util["keys"])(formatterParamsExtra), function (key) {
      if (!Object(util["hasOwn"])(formatterParams, key)) {
        formatterParams[key] = formatterParamsExtra[key];
        formatterParams.$vars.push(key);
      }
    });
  }
  var ecData = getECData(opt.el);
  ecData.componentMainType = mainType;
  ecData.componentIndex = componentIndex;
  ecData.tooltipConfig = {
    name: itemName,
    option: Object(util["defaults"])({
      content: itemName,
      encodeHTMLContent: true,
      formatterParams: formatterParams
    }, itemTooltipOptionObj)
  };
}
function traverseElement(el, cb) {
  var stopped;
  // TODO
  // Polyfill for fixing zrender group traverse don't visit it's root issue.
  if (el.isGroup) {
    stopped = cb(el);
  }
  if (!stopped) {
    el.traverse(cb);
  }
}
function traverseElements(els, cb) {
  if (els) {
    if (Object(util["isArray"])(els)) {
      for (var i = 0; i < els.length; i++) {
        traverseElement(els[i], cb);
      }
    } else {
      traverseElement(els, cb);
    }
  }
}
// Register built-in shapes. These shapes might be overwritten
// by users, although we do not recommend that.
registerShape('circle', shape_Circle);
registerShape('ellipse', shape_Ellipse);
registerShape('sector', shape_Sector);
registerShape('ring', shape_Ring);
registerShape('polygon', shape_Polygon);
registerShape('polyline', shape_Polyline);
registerShape('rect', shape_Rect);
registerShape('line', shape_Line);
registerShape('bezierCurve', shape_BezierCurve);
registerShape('arc', shape_Arc);

// CONCATENATED MODULE: ./node_modules/echarts/lib/view/Chart.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/










var Chart_inner = makeInner();
var renderPlanner = createRenderPlanner();
var Chart_ChartView = /** @class */function () {
  function ChartView() {
    this.group = new graphic_Group();
    this.uid = getUID('viewChart');
    this.renderTask = createTask({
      plan: renderTaskPlan,
      reset: renderTaskReset
    });
    this.renderTask.context = {
      view: this
    };
  }
  ChartView.prototype.init = function (ecModel, api) {};
  ChartView.prototype.render = function (seriesModel, ecModel, api, payload) {
    if (false) {}
  };
  /**
   * Highlight series or specified data item.
   */
  ChartView.prototype.highlight = function (seriesModel, ecModel, api, payload) {
    var data = seriesModel.getData(payload && payload.dataType);
    if (!data) {
      if (false) {}
      return;
    }
    toggleHighlight(data, payload, 'emphasis');
  };
  /**
   * Downplay series or specified data item.
   */
  ChartView.prototype.downplay = function (seriesModel, ecModel, api, payload) {
    var data = seriesModel.getData(payload && payload.dataType);
    if (!data) {
      if (false) {}
      return;
    }
    toggleHighlight(data, payload, 'normal');
  };
  /**
   * Remove self.
   */
  ChartView.prototype.remove = function (ecModel, api) {
    this.group.removeAll();
  };
  /**
   * Dispose self.
   */
  ChartView.prototype.dispose = function (ecModel, api) {};
  ChartView.prototype.updateView = function (seriesModel, ecModel, api, payload) {
    this.render(seriesModel, ecModel, api, payload);
  };
  // FIXME never used?
  ChartView.prototype.updateLayout = function (seriesModel, ecModel, api, payload) {
    this.render(seriesModel, ecModel, api, payload);
  };
  // FIXME never used?
  ChartView.prototype.updateVisual = function (seriesModel, ecModel, api, payload) {
    this.render(seriesModel, ecModel, api, payload);
  };
  /**
   * Traverse the new rendered elements.
   *
   * It will traverse the new added element in progressive rendering.
   * And traverse all in normal rendering.
   */
  ChartView.prototype.eachRendered = function (cb) {
    traverseElements(this.group, cb);
  };
  ChartView.markUpdateMethod = function (payload, methodName) {
    Chart_inner(payload).updateMethod = methodName;
  };
  ChartView.protoInitialize = function () {
    var proto = ChartView.prototype;
    proto.type = 'chart';
  }();
  return ChartView;
}();
;
/**
 * Set state of single element
 */
function elSetState(el, state, highlightDigit) {
  if (el && isHighDownDispatcher(el)) {
    (state === 'emphasis' ? enterEmphasis : leaveEmphasis)(el, highlightDigit);
  }
}
function toggleHighlight(data, payload, state) {
  var dataIndex = queryDataIndex(data, payload);
  var highlightDigit = payload && payload.highlightKey != null ? getHighlightDigit(payload.highlightKey) : null;
  if (dataIndex != null) {
    Object(util["each"])(normalizeToArray(dataIndex), function (dataIdx) {
      elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);
    });
  } else {
    data.eachItemGraphicEl(function (el) {
      elSetState(el, state, highlightDigit);
    });
  }
}
enableClassExtend(Chart_ChartView, ['dispose']);
enableClassManagement(Chart_ChartView);
function renderTaskPlan(context) {
  return renderPlanner(context.model);
}
function renderTaskReset(context) {
  var seriesModel = context.model;
  var ecModel = context.ecModel;
  var api = context.api;
  var payload = context.payload;
  // FIXME: remove updateView updateVisual
  var progressiveRender = seriesModel.pipelineContext.progressiveRender;
  var view = context.view;
  var updateMethod = payload && Chart_inner(payload).updateMethod;
  var methodName = progressiveRender ? 'incrementalPrepareRender' : updateMethod && view[updateMethod] ? updateMethod
  // `appendData` is also supported when data amount
  // is less than progressive threshold.
  : 'render';
  if (methodName !== 'render') {
    view[methodName](seriesModel, ecModel, api, payload);
  }
  return progressMethodMap[methodName];
}
var progressMethodMap = {
  incrementalPrepareRender: {
    progress: function (params, context) {
      context.view.incrementalRender(params, context.model, context.ecModel, context.api, context.payload);
    }
  },
  render: {
    // Put view.render in `progress` to support appendData. But in this case
    // view.render should not be called in reset, otherwise it will be called
    // twise. Use `forceFirstProgress` to make sure that view.render is called
    // in any cases.
    forceFirstProgress: true,
    progress: function (params, context) {
      context.view.render(context.model, context.ecModel, context.api, context.payload);
    }
  }
};
/* harmony default export */ var Chart = (Chart_ChartView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/throttle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var ORIGIN_METHOD = '\0__throttleOriginMethod';
var RATE = '\0__throttleRate';
var THROTTLE_TYPE = '\0__throttleType';
;
/**
 * @public
 * @param {(Function)} fn
 * @param {number} [delay=0] Unit: ms.
 * @param {boolean} [debounce=false]
 *        true: If call interval less than `delay`, only the last call works.
 *        false: If call interval less than `delay, call works on fixed rate.
 * @return {(Function)} throttled fn.
 */
function throttle(fn, delay, debounce) {
  var currCall;
  var lastCall = 0;
  var lastExec = 0;
  var timer = null;
  var diff;
  var scope;
  var args;
  var debounceNextCall;
  delay = delay || 0;
  function exec() {
    lastExec = new Date().getTime();
    timer = null;
    fn.apply(scope, args || []);
  }
  var cb = function () {
    var cbArgs = [];
    for (var _i = 0; _i < arguments.length; _i++) {
      cbArgs[_i] = arguments[_i];
    }
    currCall = new Date().getTime();
    scope = this;
    args = cbArgs;
    var thisDelay = debounceNextCall || delay;
    var thisDebounce = debounceNextCall || debounce;
    debounceNextCall = null;
    diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay;
    clearTimeout(timer);
    // Here we should make sure that: the `exec` SHOULD NOT be called later
    // than a new call of `cb`, that is, preserving the command order. Consider
    // calculating "scale rate" when roaming as an example. When a call of `cb`
    // happens, either the `exec` is called dierectly, or the call is delayed.
    // But the delayed call should never be later than next call of `cb`. Under
    // this assurance, we can simply update view state each time `dispatchAction`
    // triggered by user roaming, but not need to add extra code to avoid the
    // state being "rolled-back".
    if (thisDebounce) {
      timer = setTimeout(exec, thisDelay);
    } else {
      if (diff >= 0) {
        exec();
      } else {
        timer = setTimeout(exec, -diff);
      }
    }
    lastCall = currCall;
  };
  /**
   * Clear throttle.
   * @public
   */
  cb.clear = function () {
    if (timer) {
      clearTimeout(timer);
      timer = null;
    }
  };
  /**
   * Enable debounce once.
   */
  cb.debounceNextCall = function (debounceDelay) {
    debounceNextCall = debounceDelay;
  };
  return cb;
}
/**
 * Create throttle method or update throttle rate.
 *
 * @example
 * ComponentView.prototype.render = function () {
 *     ...
 *     throttle.createOrUpdate(
 *         this,
 *         '_dispatchAction',
 *         this.model.get('throttle'),
 *         'fixRate'
 *     );
 * };
 * ComponentView.prototype.remove = function () {
 *     throttle.clear(this, '_dispatchAction');
 * };
 * ComponentView.prototype.dispose = function () {
 *     throttle.clear(this, '_dispatchAction');
 * };
 *
 */
function createOrUpdate(obj, fnAttr, rate, throttleType) {
  var fn = obj[fnAttr];
  if (!fn) {
    return;
  }
  var originFn = fn[ORIGIN_METHOD] || fn;
  var lastThrottleType = fn[THROTTLE_TYPE];
  var lastRate = fn[RATE];
  if (lastRate !== rate || lastThrottleType !== throttleType) {
    if (rate == null || !throttleType) {
      return obj[fnAttr] = originFn;
    }
    fn = obj[fnAttr] = throttle(originFn, rate, throttleType === 'debounce');
    fn[ORIGIN_METHOD] = originFn;
    fn[THROTTLE_TYPE] = throttleType;
    fn[RATE] = rate;
  }
  return fn;
}
/**
 * Clear throttle. Example see throttle.createOrUpdate.
 */
function clear(obj, fnAttr) {
  var fn = obj[fnAttr];
  if (fn && fn[ORIGIN_METHOD]) {
    // Clear throttle
    fn.clear && fn.clear();
    obj[fnAttr] = fn[ORIGIN_METHOD];
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/style.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var style_inner = makeInner();
var defaultStyleMappers = {
  itemStyle: makeStyleMapper(ITEM_STYLE_KEY_MAP, true),
  lineStyle: makeStyleMapper(LINE_STYLE_KEY_MAP, true)
};
var defaultColorKey = {
  lineStyle: 'stroke',
  itemStyle: 'fill'
};
function getStyleMapper(seriesModel, stylePath) {
  var styleMapper = seriesModel.visualStyleMapper || defaultStyleMappers[stylePath];
  if (!styleMapper) {
    console.warn("Unknown style type '" + stylePath + "'.");
    return defaultStyleMappers.itemStyle;
  }
  return styleMapper;
}
function getDefaultColorKey(seriesModel, stylePath) {
  // return defaultColorKey[stylePath] ||
  var colorKey = seriesModel.visualDrawType || defaultColorKey[stylePath];
  if (!colorKey) {
    console.warn("Unknown style type '" + stylePath + "'.");
    return 'fill';
  }
  return colorKey;
}
var seriesStyleTask = {
  createOnAllSeries: true,
  performRawSeries: true,
  reset: function (seriesModel, ecModel) {
    var data = seriesModel.getData();
    var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle';
    // Set in itemStyle
    var styleModel = seriesModel.getModel(stylePath);
    var getStyle = getStyleMapper(seriesModel, stylePath);
    var globalStyle = getStyle(styleModel);
    var decalOption = styleModel.getShallow('decal');
    if (decalOption) {
      data.setVisual('decal', decalOption);
      decalOption.dirty = true;
    }
    // TODO
    var colorKey = getDefaultColorKey(seriesModel, stylePath);
    var color = globalStyle[colorKey];
    // TODO style callback
    var colorCallback = Object(util["isFunction"])(color) ? color : null;
    var hasAutoColor = globalStyle.fill === 'auto' || globalStyle.stroke === 'auto';
    // Get from color palette by default.
    if (!globalStyle[colorKey] || colorCallback || hasAutoColor) {
      // Note: If some series has color specified (e.g., by itemStyle.color), we DO NOT
      // make it effect palette. Because some scenarios users need to make some series
      // transparent or as background, which should better not effect the palette.
      var colorPalette = seriesModel.getColorFromPalette(
      // TODO series count changed.
      seriesModel.name, null, ecModel.getSeriesCount());
      if (!globalStyle[colorKey]) {
        globalStyle[colorKey] = colorPalette;
        data.setVisual('colorFromPalette', true);
      }
      globalStyle.fill = globalStyle.fill === 'auto' || Object(util["isFunction"])(globalStyle.fill) ? colorPalette : globalStyle.fill;
      globalStyle.stroke = globalStyle.stroke === 'auto' || Object(util["isFunction"])(globalStyle.stroke) ? colorPalette : globalStyle.stroke;
    }
    data.setVisual('style', globalStyle);
    data.setVisual('drawType', colorKey);
    // Only visible series has each data be visual encoded
    if (!ecModel.isSeriesFiltered(seriesModel) && colorCallback) {
      data.setVisual('colorFromPalette', false);
      return {
        dataEach: function (data, idx) {
          var dataParams = seriesModel.getDataParams(idx);
          var itemStyle = Object(util["extend"])({}, globalStyle);
          itemStyle[colorKey] = colorCallback(dataParams);
          data.setItemVisual(idx, 'style', itemStyle);
        }
      };
    }
  }
};
var sharedModel = new model_Model();
var dataStyleTask = {
  createOnAllSeries: true,
  performRawSeries: true,
  reset: function (seriesModel, ecModel) {
    if (seriesModel.ignoreStyleOnData || ecModel.isSeriesFiltered(seriesModel)) {
      return;
    }
    var data = seriesModel.getData();
    var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle';
    // Set in itemStyle
    var getStyle = getStyleMapper(seriesModel, stylePath);
    var colorKey = data.getVisual('drawType');
    return {
      dataEach: data.hasItemOption ? function (data, idx) {
        // Not use getItemModel for performance considuration
        var rawItem = data.getRawDataItem(idx);
        if (rawItem && rawItem[stylePath]) {
          sharedModel.option = rawItem[stylePath];
          var style = getStyle(sharedModel);
          var existsStyle = data.ensureUniqueItemVisual(idx, 'style');
          Object(util["extend"])(existsStyle, style);
          if (sharedModel.option.decal) {
            data.setItemVisual(idx, 'decal', sharedModel.option.decal);
            sharedModel.option.decal.dirty = true;
          }
          if (colorKey in style) {
            data.setItemVisual(idx, 'colorFromPalette', false);
          }
        }
      } : null
    };
  }
};
// Pick color from palette for the data which has not been set with color yet.
// Note: do not support stream rendering. No such cases yet.
var dataColorPaletteTask = {
  performRawSeries: true,
  overallReset: function (ecModel) {
    // Each type of series uses one scope.
    // Pie and funnel are using different scopes.
    var paletteScopeGroupByType = Object(util["createHashMap"])();
    ecModel.eachSeries(function (seriesModel) {
      var colorBy = seriesModel.getColorBy();
      if (seriesModel.isColorBySeries()) {
        return;
      }
      var key = seriesModel.type + '-' + colorBy;
      var colorScope = paletteScopeGroupByType.get(key);
      if (!colorScope) {
        colorScope = {};
        paletteScopeGroupByType.set(key, colorScope);
      }
      style_inner(seriesModel).scope = colorScope;
    });
    ecModel.eachSeries(function (seriesModel) {
      if (seriesModel.isColorBySeries() || ecModel.isSeriesFiltered(seriesModel)) {
        return;
      }
      var dataAll = seriesModel.getRawData();
      var idxMap = {};
      var data = seriesModel.getData();
      var colorScope = style_inner(seriesModel).scope;
      var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle';
      var colorKey = getDefaultColorKey(seriesModel, stylePath);
      data.each(function (idx) {
        var rawIdx = data.getRawIndex(idx);
        idxMap[rawIdx] = idx;
      });
      // Iterate on data before filtered. To make sure color from palette can be
      // Consistent when toggling legend.
      dataAll.each(function (rawIdx) {
        var idx = idxMap[rawIdx];
        var fromPalette = data.getItemVisual(idx, 'colorFromPalette');
        // Get color from palette for each data only when the color is inherited from series color, which is
        // also picked from color palette. So following situation is not in the case:
        // 1. series.itemStyle.color is set
        // 2. color is encoded by visualMap
        if (fromPalette) {
          var itemStyle = data.ensureUniqueItemVisual(idx, 'style');
          var name_1 = dataAll.getName(rawIdx) || rawIdx + '';
          var dataCount = dataAll.count();
          itemStyle[colorKey] = seriesModel.getColorFromPalette(name_1, colorScope, dataCount);
        }
      });
    });
  }
};

// CONCATENATED MODULE: ./node_modules/echarts/lib/loading/default.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var default_PI = Math.PI;
/**
 * @param {module:echarts/ExtensionAPI} api
 * @param {Object} [opts]
 * @param {string} [opts.text]
 * @param {string} [opts.color]
 * @param {string} [opts.textColor]
 * @return {module:zrender/Element}
 */
function defaultLoading(api, opts) {
  opts = opts || {};
  util["defaults"](opts, {
    text: 'loading',
    textColor: '#000',
    fontSize: 12,
    fontWeight: 'normal',
    fontStyle: 'normal',
    fontFamily: 'sans-serif',
    maskColor: 'rgba(255, 255, 255, 0.8)',
    showSpinner: true,
    color: '#5470c6',
    spinnerRadius: 10,
    lineWidth: 5,
    zlevel: 0
  });
  var group = new graphic_Group();
  var mask = new shape_Rect({
    style: {
      fill: opts.maskColor
    },
    zlevel: opts.zlevel,
    z: 10000
  });
  group.add(mask);
  var textContent = new Text({
    style: {
      text: opts.text,
      fill: opts.textColor,
      fontSize: opts.fontSize,
      fontWeight: opts.fontWeight,
      fontStyle: opts.fontStyle,
      fontFamily: opts.fontFamily
    },
    zlevel: opts.zlevel,
    z: 10001
  });
  var labelRect = new shape_Rect({
    style: {
      fill: 'none'
    },
    textContent: textContent,
    textConfig: {
      position: 'right',
      distance: 10
    },
    zlevel: opts.zlevel,
    z: 10001
  });
  group.add(labelRect);
  var arc;
  if (opts.showSpinner) {
    arc = new shape_Arc({
      shape: {
        startAngle: -default_PI / 2,
        endAngle: -default_PI / 2 + 0.1,
        r: opts.spinnerRadius
      },
      style: {
        stroke: opts.color,
        lineCap: 'round',
        lineWidth: opts.lineWidth
      },
      zlevel: opts.zlevel,
      z: 10001
    });
    arc.animateShape(true).when(1000, {
      endAngle: default_PI * 3 / 2
    }).start('circularInOut');
    arc.animateShape(true).when(1000, {
      startAngle: default_PI * 3 / 2
    }).delay(300).start('circularInOut');
    group.add(arc);
  }
  // Inject resize
  group.resize = function () {
    var textWidth = textContent.getBoundingRect().width;
    var r = opts.showSpinner ? opts.spinnerRadius : 0;
    // cx = (containerWidth - arcDiameter - textDistance - textWidth) / 2
    // textDistance needs to be calculated when both animation and text exist
    var cx = (api.getWidth() - r * 2 - (opts.showSpinner && textWidth ? 10 : 0) - textWidth) / 2 - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2)
    // only show the text
    + (opts.showSpinner ? 0 : textWidth / 2)
    // only show the spinner
    + (textWidth ? 0 : r);
    var cy = api.getHeight() / 2;
    opts.showSpinner && arc.setShape({
      cx: cx,
      cy: cy
    });
    labelRect.setShape({
      x: cx - r,
      y: cy - r,
      width: r * 2,
      height: r * 2
    });
    mask.setShape({
      x: 0,
      y: 0,
      width: api.getWidth(),
      height: api.getHeight()
    });
  };
  group.resize();
  return group;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/Scheduler.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






;
var Scheduler_Scheduler = /** @class */function () {
  function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) {
    // key: handlerUID
    this._stageTaskMap = Object(util["createHashMap"])();
    this.ecInstance = ecInstance;
    this.api = api;
    // Fix current processors in case that in some rear cases that
    // processors might be registered after echarts instance created.
    // Register processors incrementally for a echarts instance is
    // not supported by this stream architecture.
    dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice();
    visualHandlers = this._visualHandlers = visualHandlers.slice();
    this._allHandlers = dataProcessorHandlers.concat(visualHandlers);
  }
  Scheduler.prototype.restoreData = function (ecModel, payload) {
    // TODO: Only restore needed series and components, but not all components.
    // Currently `restoreData` of all of the series and component will be called.
    // But some independent components like `title`, `legend`, `graphic`, `toolbox`,
    // `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`,
    // and some components like coordinate system, axes, dataZoom, visualMap only
    // need their target series refresh.
    // (1) If we are implementing this feature some day, we should consider these cases:
    // if a data processor depends on a component (e.g., dataZoomProcessor depends
    // on the settings of `dataZoom`), it should be re-performed if the component
    // is modified by `setOption`.
    // (2) If a processor depends on sevral series, speicified by its `getTargetSeries`,
    // it should be re-performed when the result array of `getTargetSeries` changed.
    // We use `dependencies` to cover these issues.
    // (3) How to update target series when coordinate system related components modified.
    // TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty,
    // and this case all of the tasks will be set as dirty.
    ecModel.restoreData(payload);
    // Theoretically an overall task not only depends on each of its target series, but also
    // depends on all of the series.
    // The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks
    // dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure
    // that the overall task is set as dirty and to be performed, otherwise it probably cause
    // state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it
    // probably cause state chaos (consider `dataZoomProcessor`).
    this._stageTaskMap.each(function (taskRecord) {
      var overallTask = taskRecord.overallTask;
      overallTask && overallTask.dirty();
    });
  };
  // If seriesModel provided, incremental threshold is check by series data.
  Scheduler.prototype.getPerformArgs = function (task, isBlock) {
    // For overall task
    if (!task.__pipeline) {
      return;
    }
    var pipeline = this._pipelineMap.get(task.__pipeline.id);
    var pCtx = pipeline.context;
    var incremental = !isBlock && pipeline.progressiveEnabled && (!pCtx || pCtx.progressiveRender) && task.__idxInPipeline > pipeline.blockIndex;
    var step = incremental ? pipeline.step : null;
    var modDataCount = pCtx && pCtx.modDataCount;
    var modBy = modDataCount != null ? Math.ceil(modDataCount / step) : null;
    return {
      step: step,
      modBy: modBy,
      modDataCount: modDataCount
    };
  };
  Scheduler.prototype.getPipeline = function (pipelineId) {
    return this._pipelineMap.get(pipelineId);
  };
  /**
   * Current, progressive rendering starts from visual and layout.
   * Always detect render mode in the same stage, avoiding that incorrect
   * detection caused by data filtering.
   * Caution:
   * `updateStreamModes` use `seriesModel.getData()`.
   */
  Scheduler.prototype.updateStreamModes = function (seriesModel, view) {
    var pipeline = this._pipelineMap.get(seriesModel.uid);
    var data = seriesModel.getData();
    var dataLen = data.count();
    // `progressiveRender` means that can render progressively in each
    // animation frame. Note that some types of series do not provide
    // `view.incrementalPrepareRender` but support `chart.appendData`. We
    // use the term `incremental` but not `progressive` to describe the
    // case that `chart.appendData`.
    var progressiveRender = pipeline.progressiveEnabled && view.incrementalPrepareRender && dataLen >= pipeline.threshold;
    var large = seriesModel.get('large') && dataLen >= seriesModel.get('largeThreshold');
    // TODO: modDataCount should not updated if `appendData`, otherwise cause whole repaint.
    // see `test/candlestick-large3.html`
    var modDataCount = seriesModel.get('progressiveChunkMode') === 'mod' ? dataLen : null;
    seriesModel.pipelineContext = pipeline.context = {
      progressiveRender: progressiveRender,
      modDataCount: modDataCount,
      large: large
    };
  };
  Scheduler.prototype.restorePipelines = function (ecModel) {
    var scheduler = this;
    var pipelineMap = scheduler._pipelineMap = Object(util["createHashMap"])();
    ecModel.eachSeries(function (seriesModel) {
      var progressive = seriesModel.getProgressive();
      var pipelineId = seriesModel.uid;
      pipelineMap.set(pipelineId, {
        id: pipelineId,
        head: null,
        tail: null,
        threshold: seriesModel.getProgressiveThreshold(),
        progressiveEnabled: progressive && !(seriesModel.preventIncremental && seriesModel.preventIncremental()),
        blockIndex: -1,
        step: Math.round(progressive || 700),
        count: 0
      });
      scheduler._pipe(seriesModel, seriesModel.dataTask);
    });
  };
  Scheduler.prototype.prepareStageTasks = function () {
    var stageTaskMap = this._stageTaskMap;
    var ecModel = this.api.getModel();
    var api = this.api;
    Object(util["each"])(this._allHandlers, function (handler) {
      var record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, {});
      var errMsg = '';
      if (false) {}
      Object(util["assert"])(!(handler.reset && handler.overallReset), errMsg);
      handler.reset && this._createSeriesStageTask(handler, record, ecModel, api);
      handler.overallReset && this._createOverallStageTask(handler, record, ecModel, api);
    }, this);
  };
  Scheduler.prototype.prepareView = function (view, model, ecModel, api) {
    var renderTask = view.renderTask;
    var context = renderTask.context;
    context.model = model;
    context.ecModel = ecModel;
    context.api = api;
    renderTask.__block = !view.incrementalPrepareRender;
    this._pipe(model, renderTask);
  };
  Scheduler.prototype.performDataProcessorTasks = function (ecModel, payload) {
    // If we do not use `block` here, it should be considered when to update modes.
    this._performStageTasks(this._dataProcessorHandlers, ecModel, payload, {
      block: true
    });
  };
  Scheduler.prototype.performVisualTasks = function (ecModel, payload, opt) {
    this._performStageTasks(this._visualHandlers, ecModel, payload, opt);
  };
  Scheduler.prototype._performStageTasks = function (stageHandlers, ecModel, payload, opt) {
    opt = opt || {};
    var unfinished = false;
    var scheduler = this;
    Object(util["each"])(stageHandlers, function (stageHandler, idx) {
      if (opt.visualType && opt.visualType !== stageHandler.visualType) {
        return;
      }
      var stageHandlerRecord = scheduler._stageTaskMap.get(stageHandler.uid);
      var seriesTaskMap = stageHandlerRecord.seriesTaskMap;
      var overallTask = stageHandlerRecord.overallTask;
      if (overallTask) {
        var overallNeedDirty_1;
        var agentStubMap = overallTask.agentStubMap;
        agentStubMap.each(function (stub) {
          if (needSetDirty(opt, stub)) {
            stub.dirty();
            overallNeedDirty_1 = true;
          }
        });
        overallNeedDirty_1 && overallTask.dirty();
        scheduler.updatePayload(overallTask, payload);
        var performArgs_1 = scheduler.getPerformArgs(overallTask, opt.block);
        // Execute stubs firstly, which may set the overall task dirty,
        // then execute the overall task. And stub will call seriesModel.setData,
        // which ensures that in the overallTask seriesModel.getData() will not
        // return incorrect data.
        agentStubMap.each(function (stub) {
          stub.perform(performArgs_1);
        });
        if (overallTask.perform(performArgs_1)) {
          unfinished = true;
        }
      } else if (seriesTaskMap) {
        seriesTaskMap.each(function (task, pipelineId) {
          if (needSetDirty(opt, task)) {
            task.dirty();
          }
          var performArgs = scheduler.getPerformArgs(task, opt.block);
          // FIXME
          // if intending to declare `performRawSeries` in handlers, only
          // stream-independent (specifically, data item independent) operations can be
          // performed. Because if a series is filtered, most of the tasks will not
          // be performed. A stream-dependent operation probably cause wrong biz logic.
          // Perhaps we should not provide a separate callback for this case instead
          // of providing the config `performRawSeries`. The stream-dependent operations
          // and stream-independent operations should better not be mixed.
          performArgs.skip = !stageHandler.performRawSeries && ecModel.isSeriesFiltered(task.context.model);
          scheduler.updatePayload(task, payload);
          if (task.perform(performArgs)) {
            unfinished = true;
          }
        });
      }
    });
    function needSetDirty(opt, task) {
      return opt.setDirty && (!opt.dirtyMap || opt.dirtyMap.get(task.__pipeline.id));
    }
    this.unfinished = unfinished || this.unfinished;
  };
  Scheduler.prototype.performSeriesTasks = function (ecModel) {
    var unfinished;
    ecModel.eachSeries(function (seriesModel) {
      // Progress to the end for dataInit and dataRestore.
      unfinished = seriesModel.dataTask.perform() || unfinished;
    });
    this.unfinished = unfinished || this.unfinished;
  };
  Scheduler.prototype.plan = function () {
    // Travel pipelines, check block.
    this._pipelineMap.each(function (pipeline) {
      var task = pipeline.tail;
      do {
        if (task.__block) {
          pipeline.blockIndex = task.__idxInPipeline;
          break;
        }
        task = task.getUpstream();
      } while (task);
    });
  };
  Scheduler.prototype.updatePayload = function (task, payload) {
    payload !== 'remain' && (task.context.payload = payload);
  };
  Scheduler.prototype._createSeriesStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) {
    var scheduler = this;
    var oldSeriesTaskMap = stageHandlerRecord.seriesTaskMap;
    // The count of stages are totally about only several dozen, so
    // do not need to reuse the map.
    var newSeriesTaskMap = stageHandlerRecord.seriesTaskMap = Object(util["createHashMap"])();
    var seriesType = stageHandler.seriesType;
    var getTargetSeries = stageHandler.getTargetSeries;
    // If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily,
    // to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`,
    // it works but it may cause other irrelevant charts blocked.
    if (stageHandler.createOnAllSeries) {
      ecModel.eachRawSeries(create);
    } else if (seriesType) {
      ecModel.eachRawSeriesByType(seriesType, create);
    } else if (getTargetSeries) {
      getTargetSeries(ecModel, api).each(create);
    }
    function create(seriesModel) {
      var pipelineId = seriesModel.uid;
      // Init tasks for each seriesModel only once.
      // Reuse original task instance.
      var task = newSeriesTaskMap.set(pipelineId, oldSeriesTaskMap && oldSeriesTaskMap.get(pipelineId) || createTask({
        plan: seriesTaskPlan,
        reset: seriesTaskReset,
        count: seriesTaskCount
      }));
      task.context = {
        model: seriesModel,
        ecModel: ecModel,
        api: api,
        // PENDING: `useClearVisual` not used?
        useClearVisual: stageHandler.isVisual && !stageHandler.isLayout,
        plan: stageHandler.plan,
        reset: stageHandler.reset,
        scheduler: scheduler
      };
      scheduler._pipe(seriesModel, task);
    }
  };
  Scheduler.prototype._createOverallStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) {
    var scheduler = this;
    var overallTask = stageHandlerRecord.overallTask = stageHandlerRecord.overallTask
    // For overall task, the function only be called on reset stage.
    || createTask({
      reset: overallTaskReset
    });
    overallTask.context = {
      ecModel: ecModel,
      api: api,
      overallReset: stageHandler.overallReset,
      scheduler: scheduler
    };
    var oldAgentStubMap = overallTask.agentStubMap;
    // The count of stages are totally about only several dozen, so
    // do not need to reuse the map.
    var newAgentStubMap = overallTask.agentStubMap = Object(util["createHashMap"])();
    var seriesType = stageHandler.seriesType;
    var getTargetSeries = stageHandler.getTargetSeries;
    var overallProgress = true;
    var shouldOverallTaskDirty = false;
    // FIXME:TS never used, so comment it
    // let modifyOutputEnd = stageHandler.modifyOutputEnd;
    // An overall task with seriesType detected or has `getTargetSeries`, we add
    // stub in each pipelines, it will set the overall task dirty when the pipeline
    // progress. Moreover, to avoid call the overall task each frame (too frequent),
    // we set the pipeline block.
    var errMsg = '';
    if (false) {}
    Object(util["assert"])(!stageHandler.createOnAllSeries, errMsg);
    if (seriesType) {
      ecModel.eachRawSeriesByType(seriesType, createStub);
    } else if (getTargetSeries) {
      getTargetSeries(ecModel, api).each(createStub);
    }
    // Otherwise, (usually it is legacy case), the overall task will only be
    // executed when upstream is dirty. Otherwise the progressive rendering of all
    // pipelines will be disabled unexpectedly. But it still needs stubs to receive
    // dirty info from upstream.
    else {
      overallProgress = false;
      Object(util["each"])(ecModel.getSeries(), createStub);
    }
    function createStub(seriesModel) {
      var pipelineId = seriesModel.uid;
      var stub = newAgentStubMap.set(pipelineId, oldAgentStubMap && oldAgentStubMap.get(pipelineId) || (
      // When the result of `getTargetSeries` changed, the overallTask
      // should be set as dirty and re-performed.
      shouldOverallTaskDirty = true, createTask({
        reset: stubReset,
        onDirty: stubOnDirty
      })));
      stub.context = {
        model: seriesModel,
        overallProgress: overallProgress
        // FIXME:TS never used, so comment it
        // modifyOutputEnd: modifyOutputEnd
      };
      stub.agent = overallTask;
      stub.__block = overallProgress;
      scheduler._pipe(seriesModel, stub);
    }
    if (shouldOverallTaskDirty) {
      overallTask.dirty();
    }
  };
  Scheduler.prototype._pipe = function (seriesModel, task) {
    var pipelineId = seriesModel.uid;
    var pipeline = this._pipelineMap.get(pipelineId);
    !pipeline.head && (pipeline.head = task);
    pipeline.tail && pipeline.tail.pipe(task);
    pipeline.tail = task;
    task.__idxInPipeline = pipeline.count++;
    task.__pipeline = pipeline;
  };
  Scheduler.wrapStageHandler = function (stageHandler, visualType) {
    if (Object(util["isFunction"])(stageHandler)) {
      stageHandler = {
        overallReset: stageHandler,
        seriesType: detectSeriseType(stageHandler)
      };
    }
    stageHandler.uid = getUID('stageHandler');
    visualType && (stageHandler.visualType = visualType);
    return stageHandler;
  };
  ;
  return Scheduler;
}();
function overallTaskReset(context) {
  context.overallReset(context.ecModel, context.api, context.payload);
}
function stubReset(context) {
  return context.overallProgress && stubProgress;
}
function stubProgress() {
  this.agent.dirty();
  this.getDownstream().dirty();
}
function stubOnDirty() {
  this.agent && this.agent.dirty();
}
function seriesTaskPlan(context) {
  return context.plan ? context.plan(context.model, context.ecModel, context.api, context.payload) : null;
}
function seriesTaskReset(context) {
  if (context.useClearVisual) {
    context.data.clearAllVisual();
  }
  var resetDefines = context.resetDefines = normalizeToArray(context.reset(context.model, context.ecModel, context.api, context.payload));
  return resetDefines.length > 1 ? Object(util["map"])(resetDefines, function (v, idx) {
    return makeSeriesTaskProgress(idx);
  }) : singleSeriesTaskProgress;
}
var singleSeriesTaskProgress = makeSeriesTaskProgress(0);
function makeSeriesTaskProgress(resetDefineIdx) {
  return function (params, context) {
    var data = context.data;
    var resetDefine = context.resetDefines[resetDefineIdx];
    if (resetDefine && resetDefine.dataEach) {
      for (var i = params.start; i < params.end; i++) {
        resetDefine.dataEach(data, i);
      }
    } else if (resetDefine && resetDefine.progress) {
      resetDefine.progress(params, data);
    }
  };
}
function seriesTaskCount(context) {
  return context.data.count();
}
/**
 * Only some legacy stage handlers (usually in echarts extensions) are pure function.
 * To ensure that they can work normally, they should work in block mode, that is,
 * they should not be started util the previous tasks finished. So they cause the
 * progressive rendering disabled. We try to detect the series type, to narrow down
 * the block range to only the series type they concern, but not all series.
 */
function detectSeriseType(legacyFunc) {
  Scheduler_seriesType = null;
  try {
    // Assume there is no async when calling `eachSeriesByType`.
    legacyFunc(ecModelMock, apiMock);
  } catch (e) {}
  return Scheduler_seriesType;
}
var ecModelMock = {};
var apiMock = {};
var Scheduler_seriesType;
mockMethods(ecModelMock, Global);
mockMethods(apiMock, core_ExtensionAPI);
ecModelMock.eachSeriesByType = ecModelMock.eachRawSeriesByType = function (type) {
  Scheduler_seriesType = type;
};
ecModelMock.eachComponent = function (cond) {
  if (cond.mainType === 'series' && cond.subType) {
    Scheduler_seriesType = cond.subType;
  }
};
function mockMethods(target, Clz) {
  /* eslint-disable */
  for (var name_1 in Clz.prototype) {
    // Do not use hasOwnProperty
    target[name_1] = util["noop"];
  }
  /* eslint-enable */
}
/* harmony default export */ var core_Scheduler = (Scheduler_Scheduler);
// CONCATENATED MODULE: ./node_modules/echarts/lib/theme/light.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var colorAll = ['#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF'];
/* harmony default export */ var light = ({
  color: colorAll,
  colorLayer: [['#37A2DA', '#ffd85c', '#fd7b5f'], ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'], ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'], colorAll]
});
// CONCATENATED MODULE: ./node_modules/echarts/lib/theme/dark.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var contrastColor = '#B9B8CE';
var dark_backgroundColor = '#100C2A';
var axisCommon = function () {
  return {
    axisLine: {
      lineStyle: {
        color: contrastColor
      }
    },
    splitLine: {
      lineStyle: {
        color: '#484753'
      }
    },
    splitArea: {
      areaStyle: {
        color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)']
      }
    },
    minorSplitLine: {
      lineStyle: {
        color: '#20203B'
      }
    }
  };
};
var dark_colorPalette = ['#4992ff', '#7cffb2', '#fddd60', '#ff6e76', '#58d9f9', '#05c091', '#ff8a45', '#8d48e3', '#dd79ff'];
var dark_theme = {
  darkMode: true,
  color: dark_colorPalette,
  backgroundColor: dark_backgroundColor,
  axisPointer: {
    lineStyle: {
      color: '#817f91'
    },
    crossStyle: {
      color: '#817f91'
    },
    label: {
      // TODO Contrast of label backgorundColor
      color: '#fff'
    }
  },
  legend: {
    textStyle: {
      color: contrastColor
    },
    pageTextStyle: {
      color: contrastColor
    }
  },
  textStyle: {
    color: contrastColor
  },
  title: {
    textStyle: {
      color: '#EEF1FA'
    },
    subtextStyle: {
      color: '#B9B8CE'
    }
  },
  toolbox: {
    iconStyle: {
      borderColor: contrastColor
    }
  },
  dataZoom: {
    borderColor: '#71708A',
    textStyle: {
      color: contrastColor
    },
    brushStyle: {
      color: 'rgba(135,163,206,0.3)'
    },
    handleStyle: {
      color: '#353450',
      borderColor: '#C5CBE3'
    },
    moveHandleStyle: {
      color: '#B0B6C3',
      opacity: 0.3
    },
    fillerColor: 'rgba(135,163,206,0.2)',
    emphasis: {
      handleStyle: {
        borderColor: '#91B7F2',
        color: '#4D587D'
      },
      moveHandleStyle: {
        color: '#636D9A',
        opacity: 0.7
      }
    },
    dataBackground: {
      lineStyle: {
        color: '#71708A',
        width: 1
      },
      areaStyle: {
        color: '#71708A'
      }
    },
    selectedDataBackground: {
      lineStyle: {
        color: '#87A3CE'
      },
      areaStyle: {
        color: '#87A3CE'
      }
    }
  },
  visualMap: {
    textStyle: {
      color: contrastColor
    }
  },
  timeline: {
    lineStyle: {
      color: contrastColor
    },
    label: {
      color: contrastColor
    },
    controlStyle: {
      color: contrastColor,
      borderColor: contrastColor
    }
  },
  calendar: {
    itemStyle: {
      color: dark_backgroundColor
    },
    dayLabel: {
      color: contrastColor
    },
    monthLabel: {
      color: contrastColor
    },
    yearLabel: {
      color: contrastColor
    }
  },
  timeAxis: axisCommon(),
  logAxis: axisCommon(),
  valueAxis: axisCommon(),
  categoryAxis: axisCommon(),
  line: {
    symbol: 'circle'
  },
  graph: {
    color: dark_colorPalette
  },
  gauge: {
    title: {
      color: contrastColor
    },
    axisLine: {
      lineStyle: {
        color: [[1, 'rgba(207,212,219,0.2)']]
      }
    },
    axisLabel: {
      color: contrastColor
    },
    detail: {
      color: '#EEF1FA'
    }
  },
  candlestick: {
    itemStyle: {
      color: '#f64e56',
      color0: '#54ea92',
      borderColor: '#f64e56',
      borderColor0: '#54ea92'
      // borderColor: '#ca2824',
      // borderColor0: '#09a443'
    }
  }
};
dark_theme.categoryAxis.splitLine.show = false;
/* harmony default export */ var dark = (dark_theme);
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/ECEventProcessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * Usage of query:
 * `chart.on('click', query, handler);`
 * The `query` can be:
 * + The component type query string, only `mainType` or `mainType.subType`,
 *   like: 'xAxis', 'series', 'xAxis.category' or 'series.line'.
 * + The component query object, like:
 *   `{seriesIndex: 2}`, `{seriesName: 'xx'}`, `{seriesId: 'some'}`,
 *   `{xAxisIndex: 2}`, `{xAxisName: 'xx'}`, `{xAxisId: 'some'}`.
 * + The data query object, like:
 *   `{dataIndex: 123}`, `{dataType: 'link'}`, `{name: 'some'}`.
 * + The other query object (cmponent customized query), like:
 *   `{element: 'some'}` (only available in custom series).
 *
 * Caveat: If a prop in the `query` object is `null/undefined`, it is the
 * same as there is no such prop in the `query` object.
 */
var ECEventProcessor_ECEventProcessor = /** @class */function () {
  function ECEventProcessor() {}
  ECEventProcessor.prototype.normalizeQuery = function (query) {
    var cptQuery = {};
    var dataQuery = {};
    var otherQuery = {};
    // `query` is `mainType` or `mainType.subType` of component.
    if (util["isString"](query)) {
      var condCptType = parseClassType(query);
      // `.main` and `.sub` may be ''.
      cptQuery.mainType = condCptType.main || null;
      cptQuery.subType = condCptType.sub || null;
    }
    // `query` is an object, convert to {mainType, index, name, id}.
    else {
      // `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved,
      // can not be used in `compomentModel.filterForExposedEvent`.
      var suffixes_1 = ['Index', 'Name', 'Id'];
      var dataKeys_1 = {
        name: 1,
        dataIndex: 1,
        dataType: 1
      };
      util["each"](query, function (val, key) {
        var reserved = false;
        for (var i = 0; i < suffixes_1.length; i++) {
          var propSuffix = suffixes_1[i];
          var suffixPos = key.lastIndexOf(propSuffix);
          if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) {
            var mainType = key.slice(0, suffixPos);
            // Consider `dataIndex`.
            if (mainType !== 'data') {
              cptQuery.mainType = mainType;
              cptQuery[propSuffix.toLowerCase()] = val;
              reserved = true;
            }
          }
        }
        if (dataKeys_1.hasOwnProperty(key)) {
          dataQuery[key] = val;
          reserved = true;
        }
        if (!reserved) {
          otherQuery[key] = val;
        }
      });
    }
    return {
      cptQuery: cptQuery,
      dataQuery: dataQuery,
      otherQuery: otherQuery
    };
  };
  ECEventProcessor.prototype.filter = function (eventType, query) {
    // They should be assigned before each trigger call.
    var eventInfo = this.eventInfo;
    if (!eventInfo) {
      return true;
    }
    var targetEl = eventInfo.targetEl;
    var packedEvent = eventInfo.packedEvent;
    var model = eventInfo.model;
    var view = eventInfo.view;
    // For event like 'globalout'.
    if (!model || !view) {
      return true;
    }
    var cptQuery = query.cptQuery;
    var dataQuery = query.dataQuery;
    return check(cptQuery, model, 'mainType') && check(cptQuery, model, 'subType') && check(cptQuery, model, 'index', 'componentIndex') && check(cptQuery, model, 'name') && check(cptQuery, model, 'id') && check(dataQuery, packedEvent, 'name') && check(dataQuery, packedEvent, 'dataIndex') && check(dataQuery, packedEvent, 'dataType') && (!view.filterForExposedEvent || view.filterForExposedEvent(eventType, query.otherQuery, targetEl, packedEvent));
    function check(query, host, prop, propOnHost) {
      return query[prop] == null || host[propOnHost || prop] === query[prop];
    }
  };
  ECEventProcessor.prototype.afterTrigger = function () {
    // Make sure the eventInfo won't be used in next trigger.
    this.eventInfo = null;
  };
  return ECEventProcessor;
}();

;
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/symbol.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var SYMBOL_PROPS_WITH_CB = ['symbol', 'symbolSize', 'symbolRotate', 'symbolOffset'];
var SYMBOL_PROPS = SYMBOL_PROPS_WITH_CB.concat(['symbolKeepAspect']);
// Encoding visual for all series include which is filtered for legend drawing
var seriesSymbolTask = {
  createOnAllSeries: true,
  // For legend.
  performRawSeries: true,
  reset: function (seriesModel, ecModel) {
    var data = seriesModel.getData();
    if (seriesModel.legendIcon) {
      data.setVisual('legendIcon', seriesModel.legendIcon);
    }
    if (!seriesModel.hasSymbolVisual) {
      return;
    }
    var symbolOptions = {};
    var symbolOptionsCb = {};
    var hasCallback = false;
    for (var i = 0; i < SYMBOL_PROPS_WITH_CB.length; i++) {
      var symbolPropName = SYMBOL_PROPS_WITH_CB[i];
      var val = seriesModel.get(symbolPropName);
      if (Object(util["isFunction"])(val)) {
        hasCallback = true;
        symbolOptionsCb[symbolPropName] = val;
      } else {
        symbolOptions[symbolPropName] = val;
      }
    }
    symbolOptions.symbol = symbolOptions.symbol || seriesModel.defaultSymbol;
    data.setVisual(Object(util["extend"])({
      legendIcon: seriesModel.legendIcon || symbolOptions.symbol,
      symbolKeepAspect: seriesModel.get('symbolKeepAspect')
    }, symbolOptions));
    // Only visible series has each data be visual encoded
    if (ecModel.isSeriesFiltered(seriesModel)) {
      return;
    }
    var symbolPropsCb = Object(util["keys"])(symbolOptionsCb);
    function dataEach(data, idx) {
      var rawValue = seriesModel.getRawValue(idx);
      var params = seriesModel.getDataParams(idx);
      for (var i = 0; i < symbolPropsCb.length; i++) {
        var symbolPropName = symbolPropsCb[i];
        data.setItemVisual(idx, symbolPropName, symbolOptionsCb[symbolPropName](rawValue, params));
      }
    }
    return {
      dataEach: hasCallback ? dataEach : null
    };
  }
};
var dataSymbolTask = {
  createOnAllSeries: true,
  // For legend.
  performRawSeries: true,
  reset: function (seriesModel, ecModel) {
    if (!seriesModel.hasSymbolVisual) {
      return;
    }
    // Only visible series has each data be visual encoded
    if (ecModel.isSeriesFiltered(seriesModel)) {
      return;
    }
    var data = seriesModel.getData();
    function dataEach(data, idx) {
      var itemModel = data.getItemModel(idx);
      for (var i = 0; i < SYMBOL_PROPS.length; i++) {
        var symbolPropName = SYMBOL_PROPS[i];
        var val = itemModel.getShallow(symbolPropName, true);
        if (val != null) {
          data.setItemVisual(idx, symbolPropName, val);
        }
      }
    }
    return {
      dataEach: data.hasItemOption ? dataEach : null
    };
  }
};

// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/helper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function getItemVisualFromData(data, dataIndex, key) {
  switch (key) {
    case 'color':
      var style = data.getItemVisual(dataIndex, 'style');
      return style[data.getVisual('drawType')];
    case 'opacity':
      return data.getItemVisual(dataIndex, 'style').opacity;
    case 'symbol':
    case 'symbolSize':
    case 'liftZ':
      return data.getItemVisual(dataIndex, key);
    default:
      if (false) {}
  }
}
function getVisualFromData(data, key) {
  switch (key) {
    case 'color':
      var style = data.getVisual('style');
      return style[data.getVisual('drawType')];
    case 'opacity':
      return data.getVisual('style').opacity;
    case 'symbol':
    case 'symbolSize':
    case 'liftZ':
      return data.getVisual(key);
    default:
      if (false) {}
  }
}
function setItemVisualFromData(data, dataIndex, key, value) {
  switch (key) {
    case 'color':
      // Make sure not sharing style object.
      var style = data.ensureUniqueItemVisual(dataIndex, 'style');
      style[data.getVisual('drawType')] = value;
      // Mark the color has been changed, not from palette anymore
      data.setItemVisual(dataIndex, 'colorFromPalette', false);
      break;
    case 'opacity':
      data.ensureUniqueItemVisual(dataIndex, 'style').opacity = value;
      break;
    case 'symbol':
    case 'symbolSize':
    case 'liftZ':
      data.setItemVisual(dataIndex, key, value);
      break;
    default:
      if (false) {}
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/legacy/dataSelectAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



// Legacy data selection action.
// Includes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect
function createLegacyDataSelectAction(seriesType, ecRegisterAction) {
  function getSeriesIndices(ecModel, payload) {
    var seriesIndices = [];
    ecModel.eachComponent({
      mainType: 'series',
      subType: seriesType,
      query: payload
    }, function (seriesModel) {
      seriesIndices.push(seriesModel.seriesIndex);
    });
    return seriesIndices;
  }
  Object(util["each"])([[seriesType + 'ToggleSelect', 'toggleSelect'], [seriesType + 'Select', 'select'], [seriesType + 'UnSelect', 'unselect']], function (eventsMap) {
    ecRegisterAction(eventsMap[0], function (payload, ecModel, api) {
      payload = Object(util["extend"])({}, payload);
      if (false) {}
      api.dispatchAction(Object(util["extend"])(payload, {
        type: eventsMap[1],
        seriesIndex: getSeriesIndices(ecModel, payload)
      }));
    });
  });
}
function handleSeriesLegacySelectEvents(type, eventPostfix, ecIns, ecModel, payload) {
  var legacyEventName = type + eventPostfix;
  if (!ecIns.isSilent(legacyEventName)) {
    if (false) {}
    ecModel.eachComponent({
      mainType: 'series',
      subType: 'pie'
    }, function (seriesModel) {
      var seriesIndex = seriesModel.seriesIndex;
      var selectedMap = seriesModel.option.selectedMap;
      var selected = payload.selected;
      for (var i = 0; i < selected.length; i++) {
        if (selected[i].seriesIndex === seriesIndex) {
          var data = seriesModel.getData();
          var dataIndex = queryDataIndex(data, payload.fromActionPayload);
          ecIns.trigger(legacyEventName, {
            type: legacyEventName,
            seriesId: seriesModel.id,
            name: Object(util["isArray"])(dataIndex) ? data.getName(dataIndex[0]) : data.getName(dataIndex),
            selected: Object(util["isString"])(selectedMap) ? selectedMap : Object(util["extend"])({}, selectedMap)
          });
        }
      }
    });
  }
}
function handleLegacySelectEvents(messageCenter, ecIns, api) {
  messageCenter.on('selectchanged', function (params) {
    var ecModel = api.getModel();
    if (params.isFromClick) {
      handleSeriesLegacySelectEvents('map', 'selectchanged', ecIns, ecModel, params);
      handleSeriesLegacySelectEvents('pie', 'selectchanged', ecIns, ecModel, params);
    } else if (params.fromAction === 'select') {
      handleSeriesLegacySelectEvents('map', 'selected', ecIns, ecModel, params);
      handleSeriesLegacySelectEvents('pie', 'selected', ecIns, ecModel, params);
    } else if (params.fromAction === 'unselect') {
      handleSeriesLegacySelectEvents('map', 'unselected', ecIns, ecModel, params);
      handleSeriesLegacySelectEvents('pie', 'unselected', ecIns, ecModel, params);
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/event.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function findEventDispatcher(target, det, returnFirstMatch) {
  var found;
  while (target) {
    if (det(target)) {
      found = target;
      if (returnFirstMatch) {
        break;
      }
    }
    target = target.__hostTarget || target.parent;
  }
  return found;
}
// CONCATENATED MODULE: ./node_modules/zrender/lib/core/WeakMap.js
var wmUniqueIndex = Math.round(Math.random() * 9);
var supportDefineProperty = typeof Object.defineProperty === 'function';
var WeakMap = (function () {
    function WeakMap() {
        this._id = '__ec_inner_' + wmUniqueIndex++;
    }
    WeakMap.prototype.get = function (key) {
        return this._guard(key)[this._id];
    };
    WeakMap.prototype.set = function (key, value) {
        var target = this._guard(key);
        if (supportDefineProperty) {
            Object.defineProperty(target, this._id, {
                value: value,
                enumerable: false,
                configurable: true
            });
        }
        else {
            target[this._id] = value;
        }
        return this;
    };
    WeakMap.prototype["delete"] = function (key) {
        if (this.has(key)) {
            delete this._guard(key)[this._id];
            return true;
        }
        return false;
    };
    WeakMap.prototype.has = function (key) {
        return !!this._guard(key)[this._id];
    };
    WeakMap.prototype._guard = function (key) {
        if (key !== Object(key)) {
            throw TypeError('Value of WeakMap is not a non-null object.');
        }
        return key;
    };
    return WeakMap;
}());
/* harmony default export */ var core_WeakMap = (WeakMap);

// CONCATENATED MODULE: ./node_modules/echarts/lib/util/symbol.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Symbol factory





/**
 * Triangle shape
 * @inner
 */
var Triangle = graphic_Path.extend({
  type: 'triangle',
  shape: {
    cx: 0,
    cy: 0,
    width: 0,
    height: 0
  },
  buildPath: function (path, shape) {
    var cx = shape.cx;
    var cy = shape.cy;
    var width = shape.width / 2;
    var height = shape.height / 2;
    path.moveTo(cx, cy - height);
    path.lineTo(cx + width, cy + height);
    path.lineTo(cx - width, cy + height);
    path.closePath();
  }
});
/**
 * Diamond shape
 * @inner
 */
var Diamond = graphic_Path.extend({
  type: 'diamond',
  shape: {
    cx: 0,
    cy: 0,
    width: 0,
    height: 0
  },
  buildPath: function (path, shape) {
    var cx = shape.cx;
    var cy = shape.cy;
    var width = shape.width / 2;
    var height = shape.height / 2;
    path.moveTo(cx, cy - height);
    path.lineTo(cx + width, cy);
    path.lineTo(cx, cy + height);
    path.lineTo(cx - width, cy);
    path.closePath();
  }
});
/**
 * Pin shape
 * @inner
 */
var Pin = graphic_Path.extend({
  type: 'pin',
  shape: {
    // x, y on the cusp
    x: 0,
    y: 0,
    width: 0,
    height: 0
  },
  buildPath: function (path, shape) {
    var x = shape.x;
    var y = shape.y;
    var w = shape.width / 5 * 3;
    // Height must be larger than width
    var h = Math.max(w, shape.height);
    var r = w / 2;
    // Dist on y with tangent point and circle center
    var dy = r * r / (h - r);
    var cy = y - h + r + dy;
    var angle = Math.asin(dy / r);
    // Dist on x with tangent point and circle center
    var dx = Math.cos(angle) * r;
    var tanX = Math.sin(angle);
    var tanY = Math.cos(angle);
    var cpLen = r * 0.6;
    var cpLen2 = r * 0.7;
    path.moveTo(x - dx, cy + dy);
    path.arc(x, cy, r, Math.PI - angle, Math.PI * 2 + angle);
    path.bezierCurveTo(x + dx - tanX * cpLen, cy + dy + tanY * cpLen, x, y - cpLen2, x, y);
    path.bezierCurveTo(x, y - cpLen2, x - dx + tanX * cpLen, cy + dy + tanY * cpLen, x - dx, cy + dy);
    path.closePath();
  }
});
/**
 * Arrow shape
 * @inner
 */
var Arrow = graphic_Path.extend({
  type: 'arrow',
  shape: {
    x: 0,
    y: 0,
    width: 0,
    height: 0
  },
  buildPath: function (ctx, shape) {
    var height = shape.height;
    var width = shape.width;
    var x = shape.x;
    var y = shape.y;
    var dx = width / 3 * 2;
    ctx.moveTo(x, y);
    ctx.lineTo(x + dx, y + height);
    ctx.lineTo(x, y + height / 4 * 3);
    ctx.lineTo(x - dx, y + height);
    ctx.lineTo(x, y);
    ctx.closePath();
  }
});
/**
 * Map of path constructors
 */
// TODO Use function to build symbol path.
var symbolCtors = {
  line: shape_Line,
  rect: shape_Rect,
  roundRect: shape_Rect,
  square: shape_Rect,
  circle: shape_Circle,
  diamond: Diamond,
  pin: Pin,
  arrow: Arrow,
  triangle: Triangle
};
var symbolShapeMakers = {
  line: function (x, y, w, h, shape) {
    shape.x1 = x;
    shape.y1 = y + h / 2;
    shape.x2 = x + w;
    shape.y2 = y + h / 2;
  },
  rect: function (x, y, w, h, shape) {
    shape.x = x;
    shape.y = y;
    shape.width = w;
    shape.height = h;
  },
  roundRect: function (x, y, w, h, shape) {
    shape.x = x;
    shape.y = y;
    shape.width = w;
    shape.height = h;
    shape.r = Math.min(w, h) / 4;
  },
  square: function (x, y, w, h, shape) {
    var size = Math.min(w, h);
    shape.x = x;
    shape.y = y;
    shape.width = size;
    shape.height = size;
  },
  circle: function (x, y, w, h, shape) {
    // Put circle in the center of square
    shape.cx = x + w / 2;
    shape.cy = y + h / 2;
    shape.r = Math.min(w, h) / 2;
  },
  diamond: function (x, y, w, h, shape) {
    shape.cx = x + w / 2;
    shape.cy = y + h / 2;
    shape.width = w;
    shape.height = h;
  },
  pin: function (x, y, w, h, shape) {
    shape.x = x + w / 2;
    shape.y = y + h / 2;
    shape.width = w;
    shape.height = h;
  },
  arrow: function (x, y, w, h, shape) {
    shape.x = x + w / 2;
    shape.y = y + h / 2;
    shape.width = w;
    shape.height = h;
  },
  triangle: function (x, y, w, h, shape) {
    shape.cx = x + w / 2;
    shape.cy = y + h / 2;
    shape.width = w;
    shape.height = h;
  }
};
var symbolBuildProxies = {};
Object(util["each"])(symbolCtors, function (Ctor, name) {
  symbolBuildProxies[name] = new Ctor();
});
var SymbolClz = graphic_Path.extend({
  type: 'symbol',
  shape: {
    symbolType: '',
    x: 0,
    y: 0,
    width: 0,
    height: 0
  },
  calculateTextPosition: function (out, config, rect) {
    var res = calculateTextPosition(out, config, rect);
    var shape = this.shape;
    if (shape && shape.symbolType === 'pin' && config.position === 'inside') {
      res.y = rect.y + rect.height * 0.4;
    }
    return res;
  },
  buildPath: function (ctx, shape, inBundle) {
    var symbolType = shape.symbolType;
    if (symbolType !== 'none') {
      var proxySymbol = symbolBuildProxies[symbolType];
      if (!proxySymbol) {
        // Default rect
        symbolType = 'rect';
        proxySymbol = symbolBuildProxies[symbolType];
      }
      symbolShapeMakers[symbolType](shape.x, shape.y, shape.width, shape.height, proxySymbol.shape);
      proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle);
    }
  }
});
// Provide setColor helper method to avoid determine if set the fill or stroke outside
function symbolPathSetColor(color, innerColor) {
  if (this.type !== 'image') {
    var symbolStyle = this.style;
    if (this.__isEmptyBrush) {
      symbolStyle.stroke = color;
      symbolStyle.fill = innerColor || '#fff';
      // TODO Same width with lineStyle in LineView
      symbolStyle.lineWidth = 2;
    } else if (this.shape.symbolType === 'line') {
      symbolStyle.stroke = color;
    } else {
      symbolStyle.fill = color;
    }
    this.markRedraw();
  }
}
/**
 * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
 */
function symbol_createSymbol(symbolType, x, y, w, h, color,
// whether to keep the ratio of w/h,
keepAspect) {
  // TODO Support image object, DynamicImage.
  var isEmpty = symbolType.indexOf('empty') === 0;
  if (isEmpty) {
    symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6);
  }
  var symbolPath;
  if (symbolType.indexOf('image://') === 0) {
    symbolPath = makeImage(symbolType.slice(8), new core_BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover');
  } else if (symbolType.indexOf('path://') === 0) {
    symbolPath = makePath(symbolType.slice(7), {}, new core_BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover');
  } else {
    symbolPath = new SymbolClz({
      shape: {
        symbolType: symbolType,
        x: x,
        y: y,
        width: w,
        height: h
      }
    });
  }
  symbolPath.__isEmptyBrush = isEmpty;
  // TODO Should deprecate setColor
  symbolPath.setColor = symbolPathSetColor;
  if (color) {
    symbolPath.setColor(color);
  }
  return symbolPath;
}
function normalizeSymbolSize(symbolSize) {
  if (!Object(util["isArray"])(symbolSize)) {
    symbolSize = [+symbolSize, +symbolSize];
  }
  return [symbolSize[0] || 0, symbolSize[1] || 0];
}
function normalizeSymbolOffset(symbolOffset, symbolSize) {
  if (symbolOffset == null) {
    return;
  }
  if (!Object(util["isArray"])(symbolOffset)) {
    symbolOffset = [symbolOffset, symbolOffset];
  }
  return [number_parsePercent(symbolOffset[0], symbolSize[0]) || 0, number_parsePercent(Object(util["retrieve2"])(symbolOffset[1], symbolOffset[0]), symbolSize[1]) || 0];
}
// CONCATENATED MODULE: ./node_modules/zrender/lib/canvas/helper.js
function isSafeNum(num) {
    return isFinite(num);
}
function createLinearGradient(ctx, obj, rect) {
    var x = obj.x == null ? 0 : obj.x;
    var x2 = obj.x2 == null ? 1 : obj.x2;
    var y = obj.y == null ? 0 : obj.y;
    var y2 = obj.y2 == null ? 0 : obj.y2;
    if (!obj.global) {
        x = x * rect.width + rect.x;
        x2 = x2 * rect.width + rect.x;
        y = y * rect.height + rect.y;
        y2 = y2 * rect.height + rect.y;
    }
    x = isSafeNum(x) ? x : 0;
    x2 = isSafeNum(x2) ? x2 : 1;
    y = isSafeNum(y) ? y : 0;
    y2 = isSafeNum(y2) ? y2 : 0;
    var canvasGradient = ctx.createLinearGradient(x, y, x2, y2);
    return canvasGradient;
}
function createRadialGradient(ctx, obj, rect) {
    var width = rect.width;
    var height = rect.height;
    var min = Math.min(width, height);
    var x = obj.x == null ? 0.5 : obj.x;
    var y = obj.y == null ? 0.5 : obj.y;
    var r = obj.r == null ? 0.5 : obj.r;
    if (!obj.global) {
        x = x * width + rect.x;
        y = y * height + rect.y;
        r = r * min;
    }
    x = isSafeNum(x) ? x : 0.5;
    y = isSafeNum(y) ? y : 0.5;
    r = r >= 0 && isSafeNum(r) ? r : 0.5;
    var canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);
    return canvasGradient;
}
function getCanvasGradient(ctx, obj, rect) {
    var canvasGradient = obj.type === 'radial'
        ? createRadialGradient(ctx, obj, rect)
        : createLinearGradient(ctx, obj, rect);
    var colorStops = obj.colorStops;
    for (var i = 0; i < colorStops.length; i++) {
        canvasGradient.addColorStop(colorStops[i].offset, colorStops[i].color);
    }
    return canvasGradient;
}
function isClipPathChanged(clipPaths, prevClipPaths) {
    if (clipPaths === prevClipPaths || (!clipPaths && !prevClipPaths)) {
        return false;
    }
    if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {
        return true;
    }
    for (var i = 0; i < clipPaths.length; i++) {
        if (clipPaths[i] !== prevClipPaths[i]) {
            return true;
        }
    }
    return false;
}
function parseInt10(val) {
    return parseInt(val, 10);
}
function getSize(root, whIdx, opts) {
    var wh = ['width', 'height'][whIdx];
    var cwh = ['clientWidth', 'clientHeight'][whIdx];
    var plt = ['paddingLeft', 'paddingTop'][whIdx];
    var prb = ['paddingRight', 'paddingBottom'][whIdx];
    if (opts[wh] != null && opts[wh] !== 'auto') {
        return parseFloat(opts[wh]);
    }
    var stl = document.defaultView.getComputedStyle(root);
    return ((root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))
        - (parseInt10(stl[plt]) || 0)
        - (parseInt10(stl[prb]) || 0)) | 0;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/canvas/dashStyle.js

function normalizeLineDash(lineType, lineWidth) {
    if (!lineType || lineType === 'solid' || !(lineWidth > 0)) {
        return null;
    }
    return lineType === 'dashed'
        ? [4 * lineWidth, 2 * lineWidth]
        : lineType === 'dotted'
            ? [lineWidth]
            : Object(util["isNumber"])(lineType)
                ? [lineType] : Object(util["isArray"])(lineType) ? lineType : null;
}
function getLineDash(el) {
    var style = el.style;
    var lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);
    var lineDashOffset = style.lineDashOffset;
    if (lineDash) {
        var lineScale_1 = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;
        if (lineScale_1 && lineScale_1 !== 1) {
            lineDash = Object(util["map"])(lineDash, function (rawVal) {
                return rawVal / lineScale_1;
            });
            lineDashOffset /= lineScale_1;
        }
    }
    return [lineDash, lineDashOffset];
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/canvas/graphic.js











var pathProxyForDraw = new core_PathProxy(true);
function styleHasStroke(style) {
    var stroke = style.stroke;
    return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));
}
function isValidStrokeFillStyle(strokeOrFill) {
    return typeof strokeOrFill === 'string' && strokeOrFill !== 'none';
}
function styleHasFill(style) {
    var fill = style.fill;
    return fill != null && fill !== 'none';
}
function doFillPath(ctx, style) {
    if (style.fillOpacity != null && style.fillOpacity !== 1) {
        var originalGlobalAlpha = ctx.globalAlpha;
        ctx.globalAlpha = style.fillOpacity * style.opacity;
        ctx.fill();
        ctx.globalAlpha = originalGlobalAlpha;
    }
    else {
        ctx.fill();
    }
}
function doStrokePath(ctx, style) {
    if (style.strokeOpacity != null && style.strokeOpacity !== 1) {
        var originalGlobalAlpha = ctx.globalAlpha;
        ctx.globalAlpha = style.strokeOpacity * style.opacity;
        ctx.stroke();
        ctx.globalAlpha = originalGlobalAlpha;
    }
    else {
        ctx.stroke();
    }
}
function createCanvasPattern(ctx, pattern, el) {
    var image = createOrUpdateImage(pattern.image, pattern.__image, el);
    if (isImageReady(image)) {
        var canvasPattern = ctx.createPattern(image, pattern.repeat || 'repeat');
        if (typeof DOMMatrix === 'function'
            && canvasPattern
            && canvasPattern.setTransform) {
            var matrix = new DOMMatrix();
            matrix.translateSelf((pattern.x || 0), (pattern.y || 0));
            matrix.rotateSelf(0, 0, (pattern.rotation || 0) * util["RADIAN_TO_DEGREE"]);
            matrix.scaleSelf((pattern.scaleX || 1), (pattern.scaleY || 1));
            canvasPattern.setTransform(matrix);
        }
        return canvasPattern;
    }
}
function brushPath(ctx, el, style, inBatch) {
    var _a;
    var hasStroke = styleHasStroke(style);
    var hasFill = styleHasFill(style);
    var strokePercent = style.strokePercent;
    var strokePart = strokePercent < 1;
    var firstDraw = !el.path;
    if ((!el.silent || strokePart) && firstDraw) {
        el.createPathProxy();
    }
    var path = el.path || pathProxyForDraw;
    var dirtyFlag = el.__dirty;
    if (!inBatch) {
        var fill = style.fill;
        var stroke = style.stroke;
        var hasFillGradient = hasFill && !!fill.colorStops;
        var hasStrokeGradient = hasStroke && !!stroke.colorStops;
        var hasFillPattern = hasFill && !!fill.image;
        var hasStrokePattern = hasStroke && !!stroke.image;
        var fillGradient = void 0;
        var strokeGradient = void 0;
        var fillPattern = void 0;
        var strokePattern = void 0;
        var rect = void 0;
        if (hasFillGradient || hasStrokeGradient) {
            rect = el.getBoundingRect();
        }
        if (hasFillGradient) {
            fillGradient = dirtyFlag
                ? getCanvasGradient(ctx, fill, rect)
                : el.__canvasFillGradient;
            el.__canvasFillGradient = fillGradient;
        }
        if (hasStrokeGradient) {
            strokeGradient = dirtyFlag
                ? getCanvasGradient(ctx, stroke, rect)
                : el.__canvasStrokeGradient;
            el.__canvasStrokeGradient = strokeGradient;
        }
        if (hasFillPattern) {
            fillPattern = (dirtyFlag || !el.__canvasFillPattern)
                ? createCanvasPattern(ctx, fill, el)
                : el.__canvasFillPattern;
            el.__canvasFillPattern = fillPattern;
        }
        if (hasStrokePattern) {
            strokePattern = (dirtyFlag || !el.__canvasStrokePattern)
                ? createCanvasPattern(ctx, stroke, el)
                : el.__canvasStrokePattern;
            el.__canvasStrokePattern = fillPattern;
        }
        if (hasFillGradient) {
            ctx.fillStyle = fillGradient;
        }
        else if (hasFillPattern) {
            if (fillPattern) {
                ctx.fillStyle = fillPattern;
            }
            else {
                hasFill = false;
            }
        }
        if (hasStrokeGradient) {
            ctx.strokeStyle = strokeGradient;
        }
        else if (hasStrokePattern) {
            if (strokePattern) {
                ctx.strokeStyle = strokePattern;
            }
            else {
                hasStroke = false;
            }
        }
    }
    var scale = el.getGlobalScale();
    path.setScale(scale[0], scale[1], el.segmentIgnoreThreshold);
    var lineDash;
    var lineDashOffset;
    if (ctx.setLineDash && style.lineDash) {
        _a = getLineDash(el), lineDash = _a[0], lineDashOffset = _a[1];
    }
    var needsRebuild = true;
    if (firstDraw || (dirtyFlag & SHAPE_CHANGED_BIT)) {
        path.setDPR(ctx.dpr);
        if (strokePart) {
            path.setContext(null);
        }
        else {
            path.setContext(ctx);
            needsRebuild = false;
        }
        path.reset();
        el.buildPath(path, el.shape, inBatch);
        path.toStatic();
        el.pathUpdated();
    }
    if (needsRebuild) {
        path.rebuildPath(ctx, strokePart ? strokePercent : 1);
    }
    if (lineDash) {
        ctx.setLineDash(lineDash);
        ctx.lineDashOffset = lineDashOffset;
    }
    if (!inBatch) {
        if (style.strokeFirst) {
            if (hasStroke) {
                doStrokePath(ctx, style);
            }
            if (hasFill) {
                doFillPath(ctx, style);
            }
        }
        else {
            if (hasFill) {
                doFillPath(ctx, style);
            }
            if (hasStroke) {
                doStrokePath(ctx, style);
            }
        }
    }
    if (lineDash) {
        ctx.setLineDash([]);
    }
}
function brushImage(ctx, el, style) {
    var image = el.__image = createOrUpdateImage(style.image, el.__image, el, el.onload);
    if (!image || !isImageReady(image)) {
        return;
    }
    var x = style.x || 0;
    var y = style.y || 0;
    var width = el.getWidth();
    var height = el.getHeight();
    var aspect = image.width / image.height;
    if (width == null && height != null) {
        width = height * aspect;
    }
    else if (height == null && width != null) {
        height = width / aspect;
    }
    else if (width == null && height == null) {
        width = image.width;
        height = image.height;
    }
    if (style.sWidth && style.sHeight) {
        var sx = style.sx || 0;
        var sy = style.sy || 0;
        ctx.drawImage(image, sx, sy, style.sWidth, style.sHeight, x, y, width, height);
    }
    else if (style.sx && style.sy) {
        var sx = style.sx;
        var sy = style.sy;
        var sWidth = width - sx;
        var sHeight = height - sy;
        ctx.drawImage(image, sx, sy, sWidth, sHeight, x, y, width, height);
    }
    else {
        ctx.drawImage(image, x, y, width, height);
    }
}
function brushText(ctx, el, style) {
    var _a;
    var text = style.text;
    text != null && (text += '');
    if (text) {
        ctx.font = style.font || platform["a" /* DEFAULT_FONT */];
        ctx.textAlign = style.textAlign;
        ctx.textBaseline = style.textBaseline;
        var lineDash = void 0;
        var lineDashOffset = void 0;
        if (ctx.setLineDash && style.lineDash) {
            _a = getLineDash(el), lineDash = _a[0], lineDashOffset = _a[1];
        }
        if (lineDash) {
            ctx.setLineDash(lineDash);
            ctx.lineDashOffset = lineDashOffset;
        }
        if (style.strokeFirst) {
            if (styleHasStroke(style)) {
                ctx.strokeText(text, style.x, style.y);
            }
            if (styleHasFill(style)) {
                ctx.fillText(text, style.x, style.y);
            }
        }
        else {
            if (styleHasFill(style)) {
                ctx.fillText(text, style.x, style.y);
            }
            if (styleHasStroke(style)) {
                ctx.strokeText(text, style.x, style.y);
            }
        }
        if (lineDash) {
            ctx.setLineDash([]);
        }
    }
}
var SHADOW_NUMBER_PROPS = ['shadowBlur', 'shadowOffsetX', 'shadowOffsetY'];
var STROKE_PROPS = [
    ['lineCap', 'butt'], ['lineJoin', 'miter'], ['miterLimit', 10]
];
function bindCommonProps(ctx, style, prevStyle, forceSetAll, scope) {
    var styleChanged = false;
    if (!forceSetAll) {
        prevStyle = prevStyle || {};
        if (style === prevStyle) {
            return false;
        }
    }
    if (forceSetAll || style.opacity !== prevStyle.opacity) {
        flushPathDrawn(ctx, scope);
        styleChanged = true;
        var opacity = Math.max(Math.min(style.opacity, 1), 0);
        ctx.globalAlpha = isNaN(opacity) ? DEFAULT_COMMON_STYLE.opacity : opacity;
    }
    if (forceSetAll || style.blend !== prevStyle.blend) {
        if (!styleChanged) {
            flushPathDrawn(ctx, scope);
            styleChanged = true;
        }
        ctx.globalCompositeOperation = style.blend || DEFAULT_COMMON_STYLE.blend;
    }
    for (var i = 0; i < SHADOW_NUMBER_PROPS.length; i++) {
        var propName = SHADOW_NUMBER_PROPS[i];
        if (forceSetAll || style[propName] !== prevStyle[propName]) {
            if (!styleChanged) {
                flushPathDrawn(ctx, scope);
                styleChanged = true;
            }
            ctx[propName] = ctx.dpr * (style[propName] || 0);
        }
    }
    if (forceSetAll || style.shadowColor !== prevStyle.shadowColor) {
        if (!styleChanged) {
            flushPathDrawn(ctx, scope);
            styleChanged = true;
        }
        ctx.shadowColor = style.shadowColor || DEFAULT_COMMON_STYLE.shadowColor;
    }
    return styleChanged;
}
function bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetAll, scope) {
    var style = graphic_getStyle(el, scope.inHover);
    var prevStyle = forceSetAll
        ? null
        : (prevEl && graphic_getStyle(prevEl, scope.inHover) || {});
    if (style === prevStyle) {
        return false;
    }
    var styleChanged = bindCommonProps(ctx, style, prevStyle, forceSetAll, scope);
    if (forceSetAll || style.fill !== prevStyle.fill) {
        if (!styleChanged) {
            flushPathDrawn(ctx, scope);
            styleChanged = true;
        }
        isValidStrokeFillStyle(style.fill) && (ctx.fillStyle = style.fill);
    }
    if (forceSetAll || style.stroke !== prevStyle.stroke) {
        if (!styleChanged) {
            flushPathDrawn(ctx, scope);
            styleChanged = true;
        }
        isValidStrokeFillStyle(style.stroke) && (ctx.strokeStyle = style.stroke);
    }
    if (forceSetAll || style.opacity !== prevStyle.opacity) {
        if (!styleChanged) {
            flushPathDrawn(ctx, scope);
            styleChanged = true;
        }
        ctx.globalAlpha = style.opacity == null ? 1 : style.opacity;
    }
    if (el.hasStroke()) {
        var lineWidth = style.lineWidth;
        var newLineWidth = lineWidth / ((style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1);
        if (ctx.lineWidth !== newLineWidth) {
            if (!styleChanged) {
                flushPathDrawn(ctx, scope);
                styleChanged = true;
            }
            ctx.lineWidth = newLineWidth;
        }
    }
    for (var i = 0; i < STROKE_PROPS.length; i++) {
        var prop = STROKE_PROPS[i];
        var propName = prop[0];
        if (forceSetAll || style[propName] !== prevStyle[propName]) {
            if (!styleChanged) {
                flushPathDrawn(ctx, scope);
                styleChanged = true;
            }
            ctx[propName] = style[propName] || prop[1];
        }
    }
    return styleChanged;
}
function bindImageStyle(ctx, el, prevEl, forceSetAll, scope) {
    return bindCommonProps(ctx, graphic_getStyle(el, scope.inHover), prevEl && graphic_getStyle(prevEl, scope.inHover), forceSetAll, scope);
}
function setContextTransform(ctx, el) {
    var m = el.transform;
    var dpr = ctx.dpr || 1;
    if (m) {
        ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]);
    }
    else {
        ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
    }
}
function updateClipStatus(clipPaths, ctx, scope) {
    var allClipped = false;
    for (var i = 0; i < clipPaths.length; i++) {
        var clipPath = clipPaths[i];
        allClipped = allClipped || clipPath.isZeroArea();
        setContextTransform(ctx, clipPath);
        ctx.beginPath();
        clipPath.buildPath(ctx, clipPath.shape);
        ctx.clip();
    }
    scope.allClipped = allClipped;
}
function isTransformChanged(m0, m1) {
    if (m0 && m1) {
        return m0[0] !== m1[0]
            || m0[1] !== m1[1]
            || m0[2] !== m1[2]
            || m0[3] !== m1[3]
            || m0[4] !== m1[4]
            || m0[5] !== m1[5];
    }
    else if (!m0 && !m1) {
        return false;
    }
    return true;
}
var DRAW_TYPE_PATH = 1;
var DRAW_TYPE_IMAGE = 2;
var DRAW_TYPE_TEXT = 3;
var DRAW_TYPE_INCREMENTAL = 4;
function canPathBatch(style) {
    var hasFill = styleHasFill(style);
    var hasStroke = styleHasStroke(style);
    return !(style.lineDash
        || !(+hasFill ^ +hasStroke)
        || (hasFill && typeof style.fill !== 'string')
        || (hasStroke && typeof style.stroke !== 'string')
        || style.strokePercent < 1
        || style.strokeOpacity < 1
        || style.fillOpacity < 1);
}
function flushPathDrawn(ctx, scope) {
    scope.batchFill && ctx.fill();
    scope.batchStroke && ctx.stroke();
    scope.batchFill = '';
    scope.batchStroke = '';
}
function graphic_getStyle(el, inHover) {
    return inHover ? (el.__hoverStyle || el.style) : el.style;
}
function brushSingle(ctx, el) {
    brush(ctx, el, { inHover: false, viewWidth: 0, viewHeight: 0 }, true);
}
function brush(ctx, el, scope, isLast) {
    var m = el.transform;
    if (!el.shouldBePainted(scope.viewWidth, scope.viewHeight, false, false)) {
        el.__dirty &= ~REDRAW_BIT;
        el.__isRendered = false;
        return;
    }
    var clipPaths = el.__clipPaths;
    var prevElClipPaths = scope.prevElClipPaths;
    var forceSetTransform = false;
    var forceSetStyle = false;
    if (!prevElClipPaths || isClipPathChanged(clipPaths, prevElClipPaths)) {
        if (prevElClipPaths && prevElClipPaths.length) {
            flushPathDrawn(ctx, scope);
            ctx.restore();
            forceSetStyle = forceSetTransform = true;
            scope.prevElClipPaths = null;
            scope.allClipped = false;
            scope.prevEl = null;
        }
        if (clipPaths && clipPaths.length) {
            flushPathDrawn(ctx, scope);
            ctx.save();
            updateClipStatus(clipPaths, ctx, scope);
            forceSetTransform = true;
        }
        scope.prevElClipPaths = clipPaths;
    }
    if (scope.allClipped) {
        el.__isRendered = false;
        return;
    }
    el.beforeBrush && el.beforeBrush();
    el.innerBeforeBrush();
    var prevEl = scope.prevEl;
    if (!prevEl) {
        forceSetStyle = forceSetTransform = true;
    }
    var canBatchPath = el instanceof graphic_Path
        && el.autoBatch
        && canPathBatch(el.style);
    if (forceSetTransform || isTransformChanged(m, prevEl.transform)) {
        flushPathDrawn(ctx, scope);
        setContextTransform(ctx, el);
    }
    else if (!canBatchPath) {
        flushPathDrawn(ctx, scope);
    }
    var style = graphic_getStyle(el, scope.inHover);
    if (el instanceof graphic_Path) {
        if (scope.lastDrawType !== DRAW_TYPE_PATH) {
            forceSetStyle = true;
            scope.lastDrawType = DRAW_TYPE_PATH;
        }
        bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope);
        if (!canBatchPath || (!scope.batchFill && !scope.batchStroke)) {
            ctx.beginPath();
        }
        brushPath(ctx, el, style, canBatchPath);
        if (canBatchPath) {
            scope.batchFill = style.fill || '';
            scope.batchStroke = style.stroke || '';
        }
    }
    else {
        if (el instanceof graphic_TSpan) {
            if (scope.lastDrawType !== DRAW_TYPE_TEXT) {
                forceSetStyle = true;
                scope.lastDrawType = DRAW_TYPE_TEXT;
            }
            bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope);
            brushText(ctx, el, style);
        }
        else if (el instanceof graphic_Image) {
            if (scope.lastDrawType !== DRAW_TYPE_IMAGE) {
                forceSetStyle = true;
                scope.lastDrawType = DRAW_TYPE_IMAGE;
            }
            bindImageStyle(ctx, el, prevEl, forceSetStyle, scope);
            brushImage(ctx, el, style);
        }
        else if (el.getTemporalDisplayables) {
            if (scope.lastDrawType !== DRAW_TYPE_INCREMENTAL) {
                forceSetStyle = true;
                scope.lastDrawType = DRAW_TYPE_INCREMENTAL;
            }
            brushIncremental(ctx, el, scope);
        }
    }
    if (canBatchPath && isLast) {
        flushPathDrawn(ctx, scope);
    }
    el.innerAfterBrush();
    el.afterBrush && el.afterBrush();
    scope.prevEl = el;
    el.__dirty = 0;
    el.__isRendered = true;
}
function brushIncremental(ctx, el, scope) {
    var displayables = el.getDisplayables();
    var temporalDisplayables = el.getTemporalDisplayables();
    ctx.save();
    var innerScope = {
        prevElClipPaths: null,
        prevEl: null,
        allClipped: false,
        viewWidth: scope.viewWidth,
        viewHeight: scope.viewHeight,
        inHover: scope.inHover
    };
    var i;
    var len;
    for (i = el.getCursor(), len = displayables.length; i < len; i++) {
        var displayable = displayables[i];
        displayable.beforeBrush && displayable.beforeBrush();
        displayable.innerBeforeBrush();
        brush(ctx, displayable, innerScope, i === len - 1);
        displayable.innerAfterBrush();
        displayable.afterBrush && displayable.afterBrush();
        innerScope.prevEl = displayable;
    }
    for (var i_1 = 0, len_1 = temporalDisplayables.length; i_1 < len_1; i_1++) {
        var displayable = temporalDisplayables[i_1];
        displayable.beforeBrush && displayable.beforeBrush();
        displayable.innerBeforeBrush();
        brush(ctx, displayable, innerScope, i_1 === len_1 - 1);
        displayable.innerAfterBrush();
        displayable.afterBrush && displayable.afterBrush();
        innerScope.prevEl = displayable;
    }
    el.clearTemporalDisplayables();
    el.notClear = true;
    ctx.restore();
}

// CONCATENATED MODULE: ./node_modules/echarts/lib/util/decal.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var decalMap = new core_WeakMap();
var decalCache = new LRU["a" /* default */](100);
var decalKeys = ['symbol', 'symbolSize', 'symbolKeepAspect', 'color', 'backgroundColor', 'dashArrayX', 'dashArrayY', 'maxTileWidth', 'maxTileHeight'];
/**
 * Create or update pattern image from decal options
 *
 * @param {InnerDecalObject | 'none'} decalObject decal options, 'none' if no decal
 * @return {Pattern} pattern with generated image, null if no decal
 */
function createOrUpdatePatternFromDecal(decalObject, api) {
  if (decalObject === 'none') {
    return null;
  }
  var dpr = api.getDevicePixelRatio();
  var zr = api.getZr();
  var isSVG = zr.painter.type === 'svg';
  if (decalObject.dirty) {
    decalMap["delete"](decalObject);
  }
  var oldPattern = decalMap.get(decalObject);
  if (oldPattern) {
    return oldPattern;
  }
  var decalOpt = Object(util["defaults"])(decalObject, {
    symbol: 'rect',
    symbolSize: 1,
    symbolKeepAspect: true,
    color: 'rgba(0, 0, 0, 0.2)',
    backgroundColor: null,
    dashArrayX: 5,
    dashArrayY: 5,
    rotation: 0,
    maxTileWidth: 512,
    maxTileHeight: 512
  });
  if (decalOpt.backgroundColor === 'none') {
    decalOpt.backgroundColor = null;
  }
  var pattern = {
    repeat: 'repeat'
  };
  setPatternnSource(pattern);
  pattern.rotation = decalOpt.rotation;
  pattern.scaleX = pattern.scaleY = isSVG ? 1 : 1 / dpr;
  decalMap.set(decalObject, pattern);
  decalObject.dirty = false;
  return pattern;
  function setPatternnSource(pattern) {
    var keys = [dpr];
    var isValidKey = true;
    for (var i = 0; i < decalKeys.length; ++i) {
      var value = decalOpt[decalKeys[i]];
      if (value != null && !Object(util["isArray"])(value) && !Object(util["isString"])(value) && !Object(util["isNumber"])(value) && typeof value !== 'boolean') {
        isValidKey = false;
        break;
      }
      keys.push(value);
    }
    var cacheKey;
    if (isValidKey) {
      cacheKey = keys.join(',') + (isSVG ? '-svg' : '');
      var cache = decalCache.get(cacheKey);
      if (cache) {
        isSVG ? pattern.svgElement = cache : pattern.image = cache;
      }
    }
    var dashArrayX = normalizeDashArrayX(decalOpt.dashArrayX);
    var dashArrayY = normalizeDashArrayY(decalOpt.dashArrayY);
    var symbolArray = normalizeSymbolArray(decalOpt.symbol);
    var lineBlockLengthsX = getLineBlockLengthX(dashArrayX);
    var lineBlockLengthY = getLineBlockLengthY(dashArrayY);
    var canvas = !isSVG && platform["d" /* platformApi */].createCanvas();
    var svgRoot = isSVG && {
      tag: 'g',
      attrs: {},
      key: 'dcl',
      children: []
    };
    var pSize = getPatternSize();
    var ctx;
    if (canvas) {
      canvas.width = pSize.width * dpr;
      canvas.height = pSize.height * dpr;
      ctx = canvas.getContext('2d');
    }
    brushDecal();
    if (isValidKey) {
      decalCache.put(cacheKey, canvas || svgRoot);
    }
    pattern.image = canvas;
    pattern.svgElement = svgRoot;
    pattern.svgWidth = pSize.width;
    pattern.svgHeight = pSize.height;
    /**
     * Get minimum length that can make a repeatable pattern.
     *
     * @return {Object} pattern width and height
     */
    function getPatternSize() {
      /**
       * For example, if dash is [[3, 2], [2, 1]] for X, it looks like
       * |---  ---  ---  ---  --- ...
       * |-- -- -- -- -- -- -- -- ...
       * |---  ---  ---  ---  --- ...
       * |-- -- -- -- -- -- -- -- ...
       * So the minimum length of X is 15,
       * which is the least common multiple of `3 + 2` and `2 + 1`
       * |---  ---  ---  |---  --- ...
       * |-- -- -- -- -- |-- -- -- ...
       */
      var width = 1;
      for (var i = 0, xlen = lineBlockLengthsX.length; i < xlen; ++i) {
        width = getLeastCommonMultiple(width, lineBlockLengthsX[i]);
      }
      var symbolRepeats = 1;
      for (var i = 0, xlen = symbolArray.length; i < xlen; ++i) {
        symbolRepeats = getLeastCommonMultiple(symbolRepeats, symbolArray[i].length);
      }
      width *= symbolRepeats;
      var height = lineBlockLengthY * lineBlockLengthsX.length * symbolArray.length;
      if (false) { var warn; }
      return {
        width: Math.max(1, Math.min(width, decalOpt.maxTileWidth)),
        height: Math.max(1, Math.min(height, decalOpt.maxTileHeight))
      };
    }
    function brushDecal() {
      if (ctx) {
        ctx.clearRect(0, 0, canvas.width, canvas.height);
        if (decalOpt.backgroundColor) {
          ctx.fillStyle = decalOpt.backgroundColor;
          ctx.fillRect(0, 0, canvas.width, canvas.height);
        }
      }
      var ySum = 0;
      for (var i = 0; i < dashArrayY.length; ++i) {
        ySum += dashArrayY[i];
      }
      if (ySum <= 0) {
        // dashArrayY is 0, draw nothing
        return;
      }
      var y = -lineBlockLengthY;
      var yId = 0;
      var yIdTotal = 0;
      var xId0 = 0;
      while (y < pSize.height) {
        if (yId % 2 === 0) {
          var symbolYId = yIdTotal / 2 % symbolArray.length;
          var x = 0;
          var xId1 = 0;
          var xId1Total = 0;
          while (x < pSize.width * 2) {
            var xSum = 0;
            for (var i = 0; i < dashArrayX[xId0].length; ++i) {
              xSum += dashArrayX[xId0][i];
            }
            if (xSum <= 0) {
              // Skip empty line
              break;
            }
            // E.g., [15, 5, 20, 5] draws only for 15 and 20
            if (xId1 % 2 === 0) {
              var size = (1 - decalOpt.symbolSize) * 0.5;
              var left = x + dashArrayX[xId0][xId1] * size;
              var top_1 = y + dashArrayY[yId] * size;
              var width = dashArrayX[xId0][xId1] * decalOpt.symbolSize;
              var height = dashArrayY[yId] * decalOpt.symbolSize;
              var symbolXId = xId1Total / 2 % symbolArray[symbolYId].length;
              brushSymbol(left, top_1, width, height, symbolArray[symbolYId][symbolXId]);
            }
            x += dashArrayX[xId0][xId1];
            ++xId1Total;
            ++xId1;
            if (xId1 === dashArrayX[xId0].length) {
              xId1 = 0;
            }
          }
          ++xId0;
          if (xId0 === dashArrayX.length) {
            xId0 = 0;
          }
        }
        y += dashArrayY[yId];
        ++yIdTotal;
        ++yId;
        if (yId === dashArrayY.length) {
          yId = 0;
        }
      }
      function brushSymbol(x, y, width, height, symbolType) {
        var scale = isSVG ? 1 : dpr;
        var symbol = symbol_createSymbol(symbolType, x * scale, y * scale, width * scale, height * scale, decalOpt.color, decalOpt.symbolKeepAspect);
        if (isSVG) {
          var symbolVNode = zr.painter.renderOneToVNode(symbol);
          if (symbolVNode) {
            svgRoot.children.push(symbolVNode);
          }
        } else {
          // Paint to canvas for all other renderers.
          brushSingle(ctx, symbol);
        }
      }
    }
  }
}
/**
 * Convert symbol array into normalized array
 *
 * @param {string | (string | string[])[]} symbol symbol input
 * @return {string[][]} normolized symbol array
 */
function normalizeSymbolArray(symbol) {
  if (!symbol || symbol.length === 0) {
    return [['rect']];
  }
  if (Object(util["isString"])(symbol)) {
    return [[symbol]];
  }
  var isAllString = true;
  for (var i = 0; i < symbol.length; ++i) {
    if (!Object(util["isString"])(symbol[i])) {
      isAllString = false;
      break;
    }
  }
  if (isAllString) {
    return normalizeSymbolArray([symbol]);
  }
  var result = [];
  for (var i = 0; i < symbol.length; ++i) {
    if (Object(util["isString"])(symbol[i])) {
      result.push([symbol[i]]);
    } else {
      result.push(symbol[i]);
    }
  }
  return result;
}
/**
 * Convert dash input into dashArray
 *
 * @param {DecalDashArrayX} dash dash input
 * @return {number[][]} normolized dash array
 */
function normalizeDashArrayX(dash) {
  if (!dash || dash.length === 0) {
    return [[0, 0]];
  }
  if (Object(util["isNumber"])(dash)) {
    var dashValue = Math.ceil(dash);
    return [[dashValue, dashValue]];
  }
  /**
   * [20, 5] should be normalized into [[20, 5]],
   * while [20, [5, 10]] should be normalized into [[20, 20], [5, 10]]
   */
  var isAllNumber = true;
  for (var i = 0; i < dash.length; ++i) {
    if (!Object(util["isNumber"])(dash[i])) {
      isAllNumber = false;
      break;
    }
  }
  if (isAllNumber) {
    return normalizeDashArrayX([dash]);
  }
  var result = [];
  for (var i = 0; i < dash.length; ++i) {
    if (Object(util["isNumber"])(dash[i])) {
      var dashValue = Math.ceil(dash[i]);
      result.push([dashValue, dashValue]);
    } else {
      var dashValue = Object(util["map"])(dash[i], function (n) {
        return Math.ceil(n);
      });
      if (dashValue.length % 2 === 1) {
        // [4, 2, 1] means |----  -    -- |----  -    -- |
        // so normalize it to be [4, 2, 1, 4, 2, 1]
        result.push(dashValue.concat(dashValue));
      } else {
        result.push(dashValue);
      }
    }
  }
  return result;
}
/**
 * Convert dash input into dashArray
 *
 * @param {DecalDashArrayY} dash dash input
 * @return {number[]} normolized dash array
 */
function normalizeDashArrayY(dash) {
  if (!dash || typeof dash === 'object' && dash.length === 0) {
    return [0, 0];
  }
  if (Object(util["isNumber"])(dash)) {
    var dashValue_1 = Math.ceil(dash);
    return [dashValue_1, dashValue_1];
  }
  var dashValue = Object(util["map"])(dash, function (n) {
    return Math.ceil(n);
  });
  return dash.length % 2 ? dashValue.concat(dashValue) : dashValue;
}
/**
 * Get block length of each line. A block is the length of dash line and space.
 * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after
 * that, so the block length of this line is 5.
 *
 * @param {number[][]} dash dash array of X or Y
 * @return {number[]} block length of each line
 */
function getLineBlockLengthX(dash) {
  return Object(util["map"])(dash, function (line) {
    return getLineBlockLengthY(line);
  });
}
function getLineBlockLengthY(dash) {
  var blockLength = 0;
  for (var i = 0; i < dash.length; ++i) {
    blockLength += dash[i];
  }
  if (dash.length % 2 === 1) {
    // [4, 2, 1] means |----  -    -- |----  -    -- |
    // So total length is (4 + 2 + 1) * 2
    return blockLength * 2;
  }
  return blockLength;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/decal.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function decalVisual(ecModel, api) {
  ecModel.eachRawSeries(function (seriesModel) {
    if (ecModel.isSeriesFiltered(seriesModel)) {
      return;
    }
    var data = seriesModel.getData();
    if (data.hasItemVisual()) {
      data.each(function (idx) {
        var decal = data.getItemVisual(idx, 'decal');
        if (decal) {
          var itemStyle = data.ensureUniqueItemVisual(idx, 'style');
          itemStyle.decal = createOrUpdatePatternFromDecal(decal, api);
        }
      });
    }
    var decal = data.getVisual('decal');
    if (decal) {
      var style = data.getVisual('style');
      style.decal = createOrUpdatePatternFromDecal(decal, api);
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/lifecycle.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

;
var lifecycle = new core_Eventful();
/* harmony default export */ var core_lifecycle = (lifecycle);
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/impl.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// Implementation of exported APIs. For example registerMap, getMap.
// The implementations will be registered when installing the component.
// Avoid these code being bundled to the core module.
var implsStore = {};
// TODO Type
function registerImpl(name, impl) {
  if (false) {}
  implsStore[name] = impl;
}
function getImpl(name) {
  if (false) {}
  return implsStore[name];
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/echarts.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */


/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





































var echarts_version = '5.6.0';
var dependencies = {
  zrender: '5.6.1'
};
var TEST_FRAME_REMAIN_TIME = 1;
var PRIORITY_PROCESSOR_SERIES_FILTER = 800;
// Some data processors depends on the stack result dimension (to calculate data extent).
// So data stack stage should be in front of data processing stage.
var PRIORITY_PROCESSOR_DATASTACK = 900;
// "Data filter" will block the stream, so it should be
// put at the beginning of data processing.
var PRIORITY_PROCESSOR_FILTER = 1000;
var PRIORITY_PROCESSOR_DEFAULT = 2000;
var PRIORITY_PROCESSOR_STATISTIC = 5000;
var PRIORITY_VISUAL_LAYOUT = 1000;
var PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100;
var PRIORITY_VISUAL_GLOBAL = 2000;
var PRIORITY_VISUAL_CHART = 3000;
var PRIORITY_VISUAL_COMPONENT = 4000;
// Visual property in data. Greater than `PRIORITY_VISUAL_COMPONENT` to enable to
// overwrite the viusal result of component (like `visualMap`)
// using data item specific setting (like itemStyle.xxx on data item)
var PRIORITY_VISUAL_CHART_DATA_CUSTOM = 4500;
// Greater than `PRIORITY_VISUAL_CHART_DATA_CUSTOM` to enable to layout based on
// visual result like `symbolSize`.
var PRIORITY_VISUAL_POST_CHART_LAYOUT = 4600;
var PRIORITY_VISUAL_BRUSH = 5000;
var PRIORITY_VISUAL_ARIA = 6000;
var PRIORITY_VISUAL_DECAL = 7000;
var PRIORITY = {
  PROCESSOR: {
    FILTER: PRIORITY_PROCESSOR_FILTER,
    SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER,
    STATISTIC: PRIORITY_PROCESSOR_STATISTIC
  },
  VISUAL: {
    LAYOUT: PRIORITY_VISUAL_LAYOUT,
    PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,
    GLOBAL: PRIORITY_VISUAL_GLOBAL,
    CHART: PRIORITY_VISUAL_CHART,
    POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT,
    COMPONENT: PRIORITY_VISUAL_COMPONENT,
    BRUSH: PRIORITY_VISUAL_BRUSH,
    CHART_ITEM: PRIORITY_VISUAL_CHART_DATA_CUSTOM,
    ARIA: PRIORITY_VISUAL_ARIA,
    DECAL: PRIORITY_VISUAL_DECAL
  }
};
// Main process have three entries: `setOption`, `dispatchAction` and `resize`,
// where they must not be invoked nestedly, except the only case: invoke
// dispatchAction with updateMethod "none" in main process.
// This flag is used to carry out this rule.
// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).
var IN_MAIN_PROCESS_KEY = '__flagInMainProcess';
var PENDING_UPDATE = '__pendingUpdate';
var STATUS_NEEDS_UPDATE_KEY = '__needsUpdateStatus';
var ACTION_REG = /^[a-zA-Z0-9_]+$/;
var CONNECT_STATUS_KEY = '__connectUpdateStatus';
var CONNECT_STATUS_PENDING = 0;
var CONNECT_STATUS_UPDATING = 1;
var CONNECT_STATUS_UPDATED = 2;
;
;
function createRegisterEventWithLowercaseECharts(method) {
  return function () {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
      args[_i] = arguments[_i];
    }
    if (this.isDisposed()) {
      disposedWarning(this.id);
      return;
    }
    return toLowercaseNameAndCallEventful(this, method, args);
  };
}
function createRegisterEventWithLowercaseMessageCenter(method) {
  return function () {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
      args[_i] = arguments[_i];
    }
    return toLowercaseNameAndCallEventful(this, method, args);
  };
}
function toLowercaseNameAndCallEventful(host, method, args) {
  // `args[0]` is event name. Event name is all lowercase.
  args[0] = args[0] && args[0].toLowerCase();
  return core_Eventful.prototype[method].apply(host, args);
}
var echarts_MessageCenter = /** @class */function (_super) {
  __extends(MessageCenter, _super);
  function MessageCenter() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  return MessageCenter;
}(core_Eventful);
var messageCenterProto = echarts_MessageCenter.prototype;
messageCenterProto.on = createRegisterEventWithLowercaseMessageCenter('on');
messageCenterProto.off = createRegisterEventWithLowercaseMessageCenter('off');
// ---------------------------------------
// Internal method names for class ECharts
// ---------------------------------------
var prepare;
var prepareView;
var updateDirectly;
var updateMethods;
var doConvertPixel;
var updateStreamModes;
var doDispatchAction;
var flushPendingActions;
var triggerUpdatedEvent;
var bindRenderedEvent;
var bindMouseEvent;
var render;
var renderComponents;
var renderSeries;
var createExtensionAPI;
var enableConnect;
var markStatusToUpdate;
var applyChangedStates;
var echarts_ECharts = /** @class */function (_super) {
  __extends(ECharts, _super);
  function ECharts(dom,
  // Theme name or themeOption.
  theme, opts) {
    var _this = _super.call(this, new ECEventProcessor_ECEventProcessor()) || this;
    _this._chartsViews = [];
    _this._chartsMap = {};
    _this._componentsViews = [];
    _this._componentsMap = {};
    // Can't dispatch action during rendering procedure
    _this._pendingActions = [];
    opts = opts || {};
    // Get theme by name
    if (Object(util["isString"])(theme)) {
      theme = themeStorage[theme];
    }
    _this._dom = dom;
    var defaultRenderer = 'canvas';
    var defaultCoarsePointer = 'auto';
    var defaultUseDirtyRect = false;
    if (false) { var root; }
    if (opts.ssr) {
      registerSSRDataGetter(function (el) {
        var ecData = getECData(el);
        var dataIndex = ecData.dataIndex;
        if (dataIndex == null) {
          return;
        }
        var hashMap = Object(util["createHashMap"])();
        hashMap.set('series_index', ecData.seriesIndex);
        hashMap.set('data_index', dataIndex);
        ecData.ssrType && hashMap.set('ssr_type', ecData.ssrType);
        return hashMap;
      });
    }
    var zr = _this._zr = init(dom, {
      renderer: opts.renderer || defaultRenderer,
      devicePixelRatio: opts.devicePixelRatio,
      width: opts.width,
      height: opts.height,
      ssr: opts.ssr,
      useDirtyRect: Object(util["retrieve2"])(opts.useDirtyRect, defaultUseDirtyRect),
      useCoarsePointer: Object(util["retrieve2"])(opts.useCoarsePointer, defaultCoarsePointer),
      pointerSize: opts.pointerSize
    });
    _this._ssr = opts.ssr;
    // Expect 60 fps.
    _this._throttledZrFlush = throttle(Object(util["bind"])(zr.flush, zr), 17);
    theme = Object(util["clone"])(theme);
    theme && globalBackwardCompat(theme, true);
    _this._theme = theme;
    _this._locale = createLocaleObject(opts.locale || SYSTEM_LANG);
    _this._coordSysMgr = new CoordinateSystem();
    var api = _this._api = createExtensionAPI(_this);
    // Sort on demand
    function prioritySortFunc(a, b) {
      return a.__prio - b.__prio;
    }
    timsort_sort(visualFuncs, prioritySortFunc);
    timsort_sort(dataProcessorFuncs, prioritySortFunc);
    _this._scheduler = new core_Scheduler(_this, api, dataProcessorFuncs, visualFuncs);
    _this._messageCenter = new echarts_MessageCenter();
    // Init mouse events
    _this._initEvents();
    // In case some people write `window.onresize = chart.resize`
    _this.resize = Object(util["bind"])(_this.resize, _this);
    zr.animation.on('frame', _this._onframe, _this);
    bindRenderedEvent(zr, _this);
    bindMouseEvent(zr, _this);
    // ECharts instance can be used as value.
    Object(util["setAsPrimitive"])(_this);
    return _this;
  }
  ECharts.prototype._onframe = function () {
    if (this._disposed) {
      return;
    }
    applyChangedStates(this);
    var scheduler = this._scheduler;
    // Lazy update
    if (this[PENDING_UPDATE]) {
      var silent = this[PENDING_UPDATE].silent;
      this[IN_MAIN_PROCESS_KEY] = true;
      try {
        prepare(this);
        updateMethods.update.call(this, null, this[PENDING_UPDATE].updateParams);
      } catch (e) {
        this[IN_MAIN_PROCESS_KEY] = false;
        this[PENDING_UPDATE] = null;
        throw e;
      }
      // At present, in each frame, zrender performs:
      //   (1) animation step forward.
      //   (2) trigger('frame') (where this `_onframe` is called)
      //   (3) zrender flush (render).
      // If we do nothing here, since we use `setToFinal: true`, the step (3) above
      // will render the final state of the elements before the real animation started.
      this._zr.flush();
      this[IN_MAIN_PROCESS_KEY] = false;
      this[PENDING_UPDATE] = null;
      flushPendingActions.call(this, silent);
      triggerUpdatedEvent.call(this, silent);
    }
    // Avoid do both lazy update and progress in one frame.
    else if (scheduler.unfinished) {
      // Stream progress.
      var remainTime = TEST_FRAME_REMAIN_TIME;
      var ecModel = this._model;
      var api = this._api;
      scheduler.unfinished = false;
      do {
        var startTime = +new Date();
        scheduler.performSeriesTasks(ecModel);
        // Currently dataProcessorFuncs do not check threshold.
        scheduler.performDataProcessorTasks(ecModel);
        updateStreamModes(this, ecModel);
        // Do not update coordinate system here. Because that coord system update in
        // each frame is not a good user experience. So we follow the rule that
        // the extent of the coordinate system is determined in the first frame (the
        // frame is executed immediately after task reset.
        // this._coordSysMgr.update(ecModel, api);
        // console.log('--- ec frame visual ---', remainTime);
        scheduler.performVisualTasks(ecModel);
        renderSeries(this, this._model, api, 'remain', {});
        remainTime -= +new Date() - startTime;
      } while (remainTime > 0 && scheduler.unfinished);
      // Call flush explicitly for trigger finished event.
      if (!scheduler.unfinished) {
        this._zr.flush();
      }
      // Else, zr flushing be ensue within the same frame,
      // because zr flushing is after onframe event.
    }
  };
  ECharts.prototype.getDom = function () {
    return this._dom;
  };
  ECharts.prototype.getId = function () {
    return this.id;
  };
  ECharts.prototype.getZr = function () {
    return this._zr;
  };
  ECharts.prototype.isSSR = function () {
    return this._ssr;
  };
  /* eslint-disable-next-line */
  ECharts.prototype.setOption = function (option, notMerge, lazyUpdate) {
    if (this[IN_MAIN_PROCESS_KEY]) {
      if (false) {}
      return;
    }
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    var silent;
    var replaceMerge;
    var transitionOpt;
    if (Object(util["isObject"])(notMerge)) {
      lazyUpdate = notMerge.lazyUpdate;
      silent = notMerge.silent;
      replaceMerge = notMerge.replaceMerge;
      transitionOpt = notMerge.transition;
      notMerge = notMerge.notMerge;
    }
    this[IN_MAIN_PROCESS_KEY] = true;
    if (!this._model || notMerge) {
      var optionManager = new model_OptionManager(this._api);
      var theme = this._theme;
      var ecModel = this._model = new Global();
      ecModel.scheduler = this._scheduler;
      ecModel.ssr = this._ssr;
      ecModel.init(null, null, null, theme, this._locale, optionManager);
    }
    this._model.setOption(option, {
      replaceMerge: replaceMerge
    }, echarts_optionPreprocessorFuncs);
    var updateParams = {
      seriesTransition: transitionOpt,
      optionChanged: true
    };
    if (lazyUpdate) {
      this[PENDING_UPDATE] = {
        silent: silent,
        updateParams: updateParams
      };
      this[IN_MAIN_PROCESS_KEY] = false;
      // `setOption(option, {lazyMode: true})` may be called when zrender has been slept.
      // It should wake it up to make sure zrender start to render at the next frame.
      this.getZr().wakeUp();
    } else {
      try {
        prepare(this);
        updateMethods.update.call(this, null, updateParams);
      } catch (e) {
        this[PENDING_UPDATE] = null;
        this[IN_MAIN_PROCESS_KEY] = false;
        throw e;
      }
      // Ensure zr refresh sychronously, and then pixel in canvas can be
      // fetched after `setOption`.
      if (!this._ssr) {
        // not use flush when using ssr mode.
        this._zr.flush();
      }
      this[PENDING_UPDATE] = null;
      this[IN_MAIN_PROCESS_KEY] = false;
      flushPendingActions.call(this, silent);
      triggerUpdatedEvent.call(this, silent);
    }
  };
  /**
   * @deprecated
   */
  ECharts.prototype.setTheme = function () {
    deprecateLog('ECharts#setTheme() is DEPRECATED in ECharts 3.0');
  };
  // We don't want developers to use getModel directly.
  ECharts.prototype.getModel = function () {
    return this._model;
  };
  ECharts.prototype.getOption = function () {
    return this._model && this._model.getOption();
  };
  ECharts.prototype.getWidth = function () {
    return this._zr.getWidth();
  };
  ECharts.prototype.getHeight = function () {
    return this._zr.getHeight();
  };
  ECharts.prototype.getDevicePixelRatio = function () {
    return this._zr.painter.dpr
    /* eslint-disable-next-line */ || env["a" /* default */].hasGlobalWindow && window.devicePixelRatio || 1;
  };
  /**
   * Get canvas which has all thing rendered
   * @deprecated Use renderToCanvas instead.
   */
  ECharts.prototype.getRenderedCanvas = function (opts) {
    if (false) {}
    return this.renderToCanvas(opts);
  };
  ECharts.prototype.renderToCanvas = function (opts) {
    opts = opts || {};
    var painter = this._zr.painter;
    if (false) {}
    return painter.getRenderedCanvas({
      backgroundColor: opts.backgroundColor || this._model.get('backgroundColor'),
      pixelRatio: opts.pixelRatio || this.getDevicePixelRatio()
    });
  };
  ECharts.prototype.renderToSVGString = function (opts) {
    opts = opts || {};
    var painter = this._zr.painter;
    if (false) {}
    return painter.renderToString({
      useViewBox: opts.useViewBox
    });
  };
  /**
   * Get svg data url
   */
  ECharts.prototype.getSvgDataURL = function () {
    if (!env["a" /* default */].svgSupported) {
      return;
    }
    var zr = this._zr;
    var list = zr.storage.getDisplayList();
    // Stop animations
    Object(util["each"])(list, function (el) {
      el.stopAnimation(null, true);
    });
    return zr.painter.toDataURL();
  };
  ECharts.prototype.getDataURL = function (opts) {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    opts = opts || {};
    var excludeComponents = opts.excludeComponents;
    var ecModel = this._model;
    var excludesComponentViews = [];
    var self = this;
    Object(util["each"])(excludeComponents, function (componentType) {
      ecModel.eachComponent({
        mainType: componentType
      }, function (component) {
        var view = self._componentsMap[component.__viewId];
        if (!view.group.ignore) {
          excludesComponentViews.push(view);
          view.group.ignore = true;
        }
      });
    });
    var url = this._zr.painter.getType() === 'svg' ? this.getSvgDataURL() : this.renderToCanvas(opts).toDataURL('image/' + (opts && opts.type || 'png'));
    Object(util["each"])(excludesComponentViews, function (view) {
      view.group.ignore = false;
    });
    return url;
  };
  ECharts.prototype.getConnectedDataURL = function (opts) {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    var isSvg = opts.type === 'svg';
    var groupId = this.group;
    var mathMin = Math.min;
    var mathMax = Math.max;
    var MAX_NUMBER = Infinity;
    if (connectedGroups[groupId]) {
      var left_1 = MAX_NUMBER;
      var top_1 = MAX_NUMBER;
      var right_1 = -MAX_NUMBER;
      var bottom_1 = -MAX_NUMBER;
      var canvasList_1 = [];
      var dpr_1 = opts && opts.pixelRatio || this.getDevicePixelRatio();
      Object(util["each"])(echarts_instances, function (chart, id) {
        if (chart.group === groupId) {
          var canvas = isSvg ? chart.getZr().painter.getSvgDom().innerHTML : chart.renderToCanvas(Object(util["clone"])(opts));
          var boundingRect = chart.getDom().getBoundingClientRect();
          left_1 = mathMin(boundingRect.left, left_1);
          top_1 = mathMin(boundingRect.top, top_1);
          right_1 = mathMax(boundingRect.right, right_1);
          bottom_1 = mathMax(boundingRect.bottom, bottom_1);
          canvasList_1.push({
            dom: canvas,
            left: boundingRect.left,
            top: boundingRect.top
          });
        }
      });
      left_1 *= dpr_1;
      top_1 *= dpr_1;
      right_1 *= dpr_1;
      bottom_1 *= dpr_1;
      var width = right_1 - left_1;
      var height = bottom_1 - top_1;
      var targetCanvas = platform["d" /* platformApi */].createCanvas();
      var zr_1 = init(targetCanvas, {
        renderer: isSvg ? 'svg' : 'canvas'
      });
      zr_1.resize({
        width: width,
        height: height
      });
      if (isSvg) {
        var content_1 = '';
        Object(util["each"])(canvasList_1, function (item) {
          var x = item.left - left_1;
          var y = item.top - top_1;
          content_1 += '<g transform="translate(' + x + ',' + y + ')">' + item.dom + '</g>';
        });
        zr_1.painter.getSvgRoot().innerHTML = content_1;
        if (opts.connectedBackgroundColor) {
          zr_1.painter.setBackgroundColor(opts.connectedBackgroundColor);
        }
        zr_1.refreshImmediately();
        return zr_1.painter.toDataURL();
      } else {
        // Background between the charts
        if (opts.connectedBackgroundColor) {
          zr_1.add(new shape_Rect({
            shape: {
              x: 0,
              y: 0,
              width: width,
              height: height
            },
            style: {
              fill: opts.connectedBackgroundColor
            }
          }));
        }
        Object(util["each"])(canvasList_1, function (item) {
          var img = new graphic_Image({
            style: {
              x: item.left * dpr_1 - left_1,
              y: item.top * dpr_1 - top_1,
              image: item.dom
            }
          });
          zr_1.add(img);
        });
        zr_1.refreshImmediately();
        return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));
      }
    } else {
      return this.getDataURL(opts);
    }
  };
  ECharts.prototype.convertToPixel = function (finder, value) {
    return doConvertPixel(this, 'convertToPixel', finder, value);
  };
  ECharts.prototype.convertFromPixel = function (finder, value) {
    return doConvertPixel(this, 'convertFromPixel', finder, value);
  };
  /**
   * Is the specified coordinate systems or components contain the given pixel point.
   * @param {Array|number} value
   * @return {boolean} result
   */
  ECharts.prototype.containPixel = function (finder, value) {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    var ecModel = this._model;
    var result;
    var findResult = parseFinder(ecModel, finder);
    Object(util["each"])(findResult, function (models, key) {
      key.indexOf('Models') >= 0 && Object(util["each"])(models, function (model) {
        var coordSys = model.coordinateSystem;
        if (coordSys && coordSys.containPoint) {
          result = result || !!coordSys.containPoint(value);
        } else if (key === 'seriesModels') {
          var view = this._chartsMap[model.__viewId];
          if (view && view.containPoint) {
            result = result || view.containPoint(value, model);
          } else {
            if (false) {}
          }
        } else {
          if (false) {}
        }
      }, this);
    }, this);
    return !!result;
  };
  /**
   * Get visual from series or data.
   * @param finder
   *        If string, e.g., 'series', means {seriesIndex: 0}.
   *        If Object, could contain some of these properties below:
   *        {
   *            seriesIndex / seriesId / seriesName,
   *            dataIndex / dataIndexInside
   *        }
   *        If dataIndex is not specified, series visual will be fetched,
   *        but not data item visual.
   *        If all of seriesIndex, seriesId, seriesName are not specified,
   *        visual will be fetched from first series.
   * @param visualType 'color', 'symbol', 'symbolSize'
   */
  ECharts.prototype.getVisual = function (finder, visualType) {
    var ecModel = this._model;
    var parsedFinder = parseFinder(ecModel, finder, {
      defaultMainType: 'series'
    });
    var seriesModel = parsedFinder.seriesModel;
    if (false) {}
    var data = seriesModel.getData();
    var dataIndexInside = parsedFinder.hasOwnProperty('dataIndexInside') ? parsedFinder.dataIndexInside : parsedFinder.hasOwnProperty('dataIndex') ? data.indexOfRawIndex(parsedFinder.dataIndex) : null;
    return dataIndexInside != null ? getItemVisualFromData(data, dataIndexInside, visualType) : getVisualFromData(data, visualType);
  };
  /**
   * Get view of corresponding component model
   */
  ECharts.prototype.getViewOfComponentModel = function (componentModel) {
    return this._componentsMap[componentModel.__viewId];
  };
  /**
   * Get view of corresponding series model
   */
  ECharts.prototype.getViewOfSeriesModel = function (seriesModel) {
    return this._chartsMap[seriesModel.__viewId];
  };
  ECharts.prototype._initEvents = function () {
    var _this = this;
    Object(util["each"])(MOUSE_EVENT_NAMES, function (eveName) {
      var handler = function (e) {
        var ecModel = _this.getModel();
        var el = e.target;
        var params;
        var isGlobalOut = eveName === 'globalout';
        // no e.target when 'globalout'.
        if (isGlobalOut) {
          params = {};
        } else {
          el && findEventDispatcher(el, function (parent) {
            var ecData = getECData(parent);
            if (ecData && ecData.dataIndex != null) {
              var dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex);
              params = dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType, el) || {};
              return true;
            }
            // If element has custom eventData of components
            else if (ecData.eventData) {
              params = Object(util["extend"])({}, ecData.eventData);
              return true;
            }
          }, true);
        }
        // Contract: if params prepared in mouse event,
        // these properties must be specified:
        // {
        //    componentType: string (component main type)
        //    componentIndex: number
        // }
        // Otherwise event query can not work.
        if (params) {
          var componentType = params.componentType;
          var componentIndex = params.componentIndex;
          // Special handling for historic reason: when trigger by
          // markLine/markPoint/markArea, the componentType is
          // 'markLine'/'markPoint'/'markArea', but we should better
          // enable them to be queried by seriesIndex, since their
          // option is set in each series.
          if (componentType === 'markLine' || componentType === 'markPoint' || componentType === 'markArea') {
            componentType = 'series';
            componentIndex = params.seriesIndex;
          }
          var model = componentType && componentIndex != null && ecModel.getComponent(componentType, componentIndex);
          var view = model && _this[model.mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId];
          if (false) {}
          params.event = e;
          params.type = eveName;
          _this._$eventProcessor.eventInfo = {
            targetEl: el,
            packedEvent: params,
            model: model,
            view: view
          };
          _this.trigger(eveName, params);
        }
      };
      // Consider that some component (like tooltip, brush, ...)
      // register zr event handler, but user event handler might
      // do anything, such as call `setOption` or `dispatchAction`,
      // which probably update any of the content and probably
      // cause problem if it is called previous other inner handlers.
      handler.zrEventfulCallAtLast = true;
      _this._zr.on(eveName, handler, _this);
    });
    Object(util["each"])(eventActionMap, function (actionType, eventType) {
      _this._messageCenter.on(eventType, function (event) {
        this.trigger(eventType, event);
      }, _this);
    });
    // Extra events
    // TODO register?
    Object(util["each"])(['selectchanged'], function (eventType) {
      _this._messageCenter.on(eventType, function (event) {
        this.trigger(eventType, event);
      }, _this);
    });
    handleLegacySelectEvents(this._messageCenter, this, this._api);
  };
  ECharts.prototype.isDisposed = function () {
    return this._disposed;
  };
  ECharts.prototype.clear = function () {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    this.setOption({
      series: []
    }, true);
  };
  ECharts.prototype.dispose = function () {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    this._disposed = true;
    var dom = this.getDom();
    if (dom) {
      setAttribute(this.getDom(), DOM_ATTRIBUTE_KEY, '');
    }
    var chart = this;
    var api = chart._api;
    var ecModel = chart._model;
    Object(util["each"])(chart._componentsViews, function (component) {
      component.dispose(ecModel, api);
    });
    Object(util["each"])(chart._chartsViews, function (chart) {
      chart.dispose(ecModel, api);
    });
    // Dispose after all views disposed
    chart._zr.dispose();
    // Set properties to null.
    // To reduce the memory cost in case the top code still holds this instance unexpectedly.
    chart._dom = chart._model = chart._chartsMap = chart._componentsMap = chart._chartsViews = chart._componentsViews = chart._scheduler = chart._api = chart._zr = chart._throttledZrFlush = chart._theme = chart._coordSysMgr = chart._messageCenter = null;
    delete echarts_instances[chart.id];
  };
  /**
   * Resize the chart
   */
  ECharts.prototype.resize = function (opts) {
    if (this[IN_MAIN_PROCESS_KEY]) {
      if (false) {}
      return;
    }
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    this._zr.resize(opts);
    var ecModel = this._model;
    // Resize loading effect
    this._loadingFX && this._loadingFX.resize();
    if (!ecModel) {
      return;
    }
    var needPrepare = ecModel.resetOption('media');
    var silent = opts && opts.silent;
    // There is some real cases that:
    // chart.setOption(option, { lazyUpdate: true });
    // chart.resize();
    if (this[PENDING_UPDATE]) {
      if (silent == null) {
        silent = this[PENDING_UPDATE].silent;
      }
      needPrepare = true;
      this[PENDING_UPDATE] = null;
    }
    this[IN_MAIN_PROCESS_KEY] = true;
    try {
      needPrepare && prepare(this);
      updateMethods.update.call(this, {
        type: 'resize',
        animation: Object(util["extend"])({
          // Disable animation
          duration: 0
        }, opts && opts.animation)
      });
    } catch (e) {
      this[IN_MAIN_PROCESS_KEY] = false;
      throw e;
    }
    this[IN_MAIN_PROCESS_KEY] = false;
    flushPendingActions.call(this, silent);
    triggerUpdatedEvent.call(this, silent);
  };
  ECharts.prototype.showLoading = function (name, cfg) {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    if (Object(util["isObject"])(name)) {
      cfg = name;
      name = '';
    }
    name = name || 'default';
    this.hideLoading();
    if (!loadingEffects[name]) {
      if (false) {}
      return;
    }
    var el = loadingEffects[name](this._api, cfg);
    var zr = this._zr;
    this._loadingFX = el;
    zr.add(el);
  };
  /**
   * Hide loading effect
   */
  ECharts.prototype.hideLoading = function () {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    this._loadingFX && this._zr.remove(this._loadingFX);
    this._loadingFX = null;
  };
  ECharts.prototype.makeActionFromEvent = function (eventObj) {
    var payload = Object(util["extend"])({}, eventObj);
    payload.type = eventActionMap[eventObj.type];
    return payload;
  };
  /**
   * @param opt If pass boolean, means opt.silent
   * @param opt.silent Default `false`. Whether trigger events.
   * @param opt.flush Default `undefined`.
   *        true: Flush immediately, and then pixel in canvas can be fetched
   *            immediately. Caution: it might affect performance.
   *        false: Not flush.
   *        undefined: Auto decide whether perform flush.
   */
  ECharts.prototype.dispatchAction = function (payload, opt) {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    if (!Object(util["isObject"])(opt)) {
      opt = {
        silent: !!opt
      };
    }
    if (!actions[payload.type]) {
      return;
    }
    // Avoid dispatch action before setOption. Especially in `connect`.
    if (!this._model) {
      return;
    }
    // May dispatchAction in rendering procedure
    if (this[IN_MAIN_PROCESS_KEY]) {
      this._pendingActions.push(payload);
      return;
    }
    var silent = opt.silent;
    doDispatchAction.call(this, payload, silent);
    var flush = opt.flush;
    if (flush) {
      this._zr.flush();
    } else if (flush !== false && env["a" /* default */].browser.weChat) {
      // In WeChat embedded browser, `requestAnimationFrame` and `setInterval`
      // hang when sliding page (on touch event), which cause that zr does not
      // refresh until user interaction finished, which is not expected.
      // But `dispatchAction` may be called too frequently when pan on touch
      // screen, which impacts performance if do not throttle them.
      this._throttledZrFlush();
    }
    flushPendingActions.call(this, silent);
    triggerUpdatedEvent.call(this, silent);
  };
  ECharts.prototype.updateLabelLayout = function () {
    core_lifecycle.trigger('series:layoutlabels', this._model, this._api, {
      // Not adding series labels.
      // TODO
      updatedSeries: []
    });
  };
  ECharts.prototype.appendData = function (params) {
    if (this._disposed) {
      disposedWarning(this.id);
      return;
    }
    var seriesIndex = params.seriesIndex;
    var ecModel = this.getModel();
    var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
    if (false) {}
    seriesModel.appendData(params);
    // Note: `appendData` does not support that update extent of coordinate
    // system, util some scenario require that. In the expected usage of
    // `appendData`, the initial extent of coordinate system should better
    // be fixed by axis `min`/`max` setting or initial data, otherwise if
    // the extent changed while `appendData`, the location of the painted
    // graphic elements have to be changed, which make the usage of
    // `appendData` meaningless.
    this._scheduler.unfinished = true;
    this.getZr().wakeUp();
  };
  // A work around for no `internal` modifier in ts yet but
  // need to strictly hide private methods to JS users.
  ECharts.internalField = function () {
    prepare = function (ecIns) {
      var scheduler = ecIns._scheduler;
      scheduler.restorePipelines(ecIns._model);
      scheduler.prepareStageTasks();
      prepareView(ecIns, true);
      prepareView(ecIns, false);
      scheduler.plan();
    };
    /**
     * Prepare view instances of charts and components
     */
    prepareView = function (ecIns, isComponent) {
      var ecModel = ecIns._model;
      var scheduler = ecIns._scheduler;
      var viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews;
      var viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap;
      var zr = ecIns._zr;
      var api = ecIns._api;
      for (var i = 0; i < viewList.length; i++) {
        viewList[i].__alive = false;
      }
      isComponent ? ecModel.eachComponent(function (componentType, model) {
        componentType !== 'series' && doPrepare(model);
      }) : ecModel.eachSeries(doPrepare);
      function doPrepare(model) {
        // By default view will be reused if possible for the case that `setOption` with "notMerge"
        // mode and need to enable transition animation. (Usually, when they have the same id, or
        // especially no id but have the same type & name & index. See the `model.id` generation
        // rule in `makeIdAndName` and `viewId` generation rule here).
        // But in `replaceMerge` mode, this feature should be able to disabled when it is clear that
        // the new model has nothing to do with the old model.
        var requireNewView = model.__requireNewView;
        // This command should not work twice.
        model.__requireNewView = false;
        // Consider: id same and type changed.
        var viewId = '_ec_' + model.id + '_' + model.type;
        var view = !requireNewView && viewMap[viewId];
        if (!view) {
          var classType = parseClassType(model.type);
          var Clazz = isComponent ? view_Component.getClass(classType.main, classType.sub) :
          // FIXME:TS
          // (ChartView as ChartViewConstructor).getClass('series', classType.sub)
          // For backward compat, still support a chart type declared as only subType
          // like "liquidfill", but recommend "series.liquidfill"
          // But need a base class to make a type series.
          Chart.getClass(classType.sub);
          if (false) {}
          view = new Clazz();
          view.init(ecModel, api);
          viewMap[viewId] = view;
          viewList.push(view);
          zr.add(view.group);
        }
        model.__viewId = view.__id = viewId;
        view.__alive = true;
        view.__model = model;
        view.group.__ecComponentInfo = {
          mainType: model.mainType,
          index: model.componentIndex
        };
        !isComponent && scheduler.prepareView(view, model, ecModel, api);
      }
      for (var i = 0; i < viewList.length;) {
        var view = viewList[i];
        if (!view.__alive) {
          !isComponent && view.renderTask.dispose();
          zr.remove(view.group);
          view.dispose(ecModel, api);
          viewList.splice(i, 1);
          if (viewMap[view.__id] === view) {
            delete viewMap[view.__id];
          }
          view.__id = view.group.__ecComponentInfo = null;
        } else {
          i++;
        }
      }
    };
    updateDirectly = function (ecIns, method, payload, mainType, subType) {
      var ecModel = ecIns._model;
      ecModel.setUpdatePayload(payload);
      // broadcast
      if (!mainType) {
        // FIXME
        // Chart will not be update directly here, except set dirty.
        // But there is no such scenario now.
        Object(util["each"])([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);
        return;
      }
      var query = {};
      query[mainType + 'Id'] = payload[mainType + 'Id'];
      query[mainType + 'Index'] = payload[mainType + 'Index'];
      query[mainType + 'Name'] = payload[mainType + 'Name'];
      var condition = {
        mainType: mainType,
        query: query
      };
      subType && (condition.subType = subType); // subType may be '' by parseClassType;
      var excludeSeriesId = payload.excludeSeriesId;
      var excludeSeriesIdMap;
      if (excludeSeriesId != null) {
        excludeSeriesIdMap = Object(util["createHashMap"])();
        Object(util["each"])(normalizeToArray(excludeSeriesId), function (id) {
          var modelId = convertOptionIdName(id, null);
          if (modelId != null) {
            excludeSeriesIdMap.set(modelId, true);
          }
        });
      }
      // If dispatchAction before setOption, do nothing.
      ecModel && ecModel.eachComponent(condition, function (model) {
        var isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) != null;
        if (isExcluded) {
          return;
        }
        ;
        if (isHighDownPayload(payload)) {
          if (model instanceof Series) {
            if (payload.type === HIGHLIGHT_ACTION_TYPE && !payload.notBlur && !model.get(['emphasis', 'disabled'])) {
              blurSeriesFromHighlightPayload(model, payload, ecIns._api);
            }
          } else {
            var _a = findComponentHighDownDispatchers(model.mainType, model.componentIndex, payload.name, ecIns._api),
              focusSelf = _a.focusSelf,
              dispatchers = _a.dispatchers;
            if (payload.type === HIGHLIGHT_ACTION_TYPE && focusSelf && !payload.notBlur) {
              blurComponent(model.mainType, model.componentIndex, ecIns._api);
            }
            // PENDING:
            // Whether to put this "enter emphasis" code in `ComponentView`,
            // which will be the same as `ChartView` but might be not necessary
            // and will be far from this logic.
            if (dispatchers) {
              Object(util["each"])(dispatchers, function (dispatcher) {
                payload.type === HIGHLIGHT_ACTION_TYPE ? enterEmphasis(dispatcher) : leaveEmphasis(dispatcher);
              });
            }
          }
        } else if (isSelectChangePayload(payload)) {
          // TODO geo
          if (model instanceof Series) {
            toggleSelectionFromPayload(model, payload, ecIns._api);
            updateSeriesElementSelection(model);
            markStatusToUpdate(ecIns);
          }
        }
      }, ecIns);
      ecModel && ecModel.eachComponent(condition, function (model) {
        var isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) != null;
        if (isExcluded) {
          return;
        }
        ;
        callView(ecIns[mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId]);
      }, ecIns);
      function callView(view) {
        view && view.__alive && view[method] && view[method](view.__model, ecModel, ecIns._api, payload);
      }
    };
    updateMethods = {
      prepareAndUpdate: function (payload) {
        prepare(this);
        updateMethods.update.call(this, payload, {
          // Needs to mark option changed if newOption is given.
          // It's from MagicType.
          // TODO If use a separate flag optionChanged in payload?
          optionChanged: payload.newOption != null
        });
      },
      update: function (payload, updateParams) {
        var ecModel = this._model;
        var api = this._api;
        var zr = this._zr;
        var coordSysMgr = this._coordSysMgr;
        var scheduler = this._scheduler;
        // update before setOption
        if (!ecModel) {
          return;
        }
        ecModel.setUpdatePayload(payload);
        scheduler.restoreData(ecModel, payload);
        scheduler.performSeriesTasks(ecModel);
        // TODO
        // Save total ecModel here for undo/redo (after restoring data and before processing data).
        // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.
        // Create new coordinate system each update
        // In LineView may save the old coordinate system and use it to get the original point.
        coordSysMgr.create(ecModel, api);
        scheduler.performDataProcessorTasks(ecModel, payload);
        // Current stream render is not supported in data process. So we can update
        // stream modes after data processing, where the filtered data is used to
        // determine whether to use progressive rendering.
        updateStreamModes(this, ecModel);
        // We update stream modes before coordinate system updated, then the modes info
        // can be fetched when coord sys updating (consider the barGrid extent fix). But
        // the drawback is the full coord info can not be fetched. Fortunately this full
        // coord is not required in stream mode updater currently.
        coordSysMgr.update(ecModel, api);
        clearColorPalette(ecModel);
        scheduler.performVisualTasks(ecModel, payload);
        render(this, ecModel, api, payload, updateParams);
        // Set background
        var backgroundColor = ecModel.get('backgroundColor') || 'transparent';
        var darkMode = ecModel.get('darkMode');
        zr.setBackgroundColor(backgroundColor);
        // Force set dark mode.
        if (darkMode != null && darkMode !== 'auto') {
          zr.setDarkMode(darkMode);
        }
        core_lifecycle.trigger('afterupdate', ecModel, api);
      },
      updateTransform: function (payload) {
        var _this = this;
        var ecModel = this._model;
        var api = this._api;
        // update before setOption
        if (!ecModel) {
          return;
        }
        ecModel.setUpdatePayload(payload);
        // ChartView.markUpdateMethod(payload, 'updateTransform');
        var componentDirtyList = [];
        ecModel.eachComponent(function (componentType, componentModel) {
          if (componentType === 'series') {
            return;
          }
          var componentView = _this.getViewOfComponentModel(componentModel);
          if (componentView && componentView.__alive) {
            if (componentView.updateTransform) {
              var result = componentView.updateTransform(componentModel, ecModel, api, payload);
              result && result.update && componentDirtyList.push(componentView);
            } else {
              componentDirtyList.push(componentView);
            }
          }
        });
        var seriesDirtyMap = Object(util["createHashMap"])();
        ecModel.eachSeries(function (seriesModel) {
          var chartView = _this._chartsMap[seriesModel.__viewId];
          if (chartView.updateTransform) {
            var result = chartView.updateTransform(seriesModel, ecModel, api, payload);
            result && result.update && seriesDirtyMap.set(seriesModel.uid, 1);
          } else {
            seriesDirtyMap.set(seriesModel.uid, 1);
          }
        });
        clearColorPalette(ecModel);
        // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
        // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);
        this._scheduler.performVisualTasks(ecModel, payload, {
          setDirty: true,
          dirtyMap: seriesDirtyMap
        });
        // Currently, not call render of components. Geo render cost a lot.
        // renderComponents(ecIns, ecModel, api, payload, componentDirtyList);
        renderSeries(this, ecModel, api, payload, {}, seriesDirtyMap);
        core_lifecycle.trigger('afterupdate', ecModel, api);
      },
      updateView: function (payload) {
        var ecModel = this._model;
        // update before setOption
        if (!ecModel) {
          return;
        }
        ecModel.setUpdatePayload(payload);
        Chart.markUpdateMethod(payload, 'updateView');
        clearColorPalette(ecModel);
        // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
        this._scheduler.performVisualTasks(ecModel, payload, {
          setDirty: true
        });
        render(this, ecModel, this._api, payload, {});
        core_lifecycle.trigger('afterupdate', ecModel, this._api);
      },
      updateVisual: function (payload) {
        // updateMethods.update.call(this, payload);
        var _this = this;
        var ecModel = this._model;
        // update before setOption
        if (!ecModel) {
          return;
        }
        ecModel.setUpdatePayload(payload);
        // clear all visual
        ecModel.eachSeries(function (seriesModel) {
          seriesModel.getData().clearAllVisual();
        });
        // Perform visual
        Chart.markUpdateMethod(payload, 'updateVisual');
        clearColorPalette(ecModel);
        // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
        this._scheduler.performVisualTasks(ecModel, payload, {
          visualType: 'visual',
          setDirty: true
        });
        ecModel.eachComponent(function (componentType, componentModel) {
          if (componentType !== 'series') {
            var componentView = _this.getViewOfComponentModel(componentModel);
            componentView && componentView.__alive && componentView.updateVisual(componentModel, ecModel, _this._api, payload);
          }
        });
        ecModel.eachSeries(function (seriesModel) {
          var chartView = _this._chartsMap[seriesModel.__viewId];
          chartView.updateVisual(seriesModel, ecModel, _this._api, payload);
        });
        core_lifecycle.trigger('afterupdate', ecModel, this._api);
      },
      updateLayout: function (payload) {
        updateMethods.update.call(this, payload);
      }
    };
    doConvertPixel = function (ecIns, methodName, finder, value) {
      if (ecIns._disposed) {
        disposedWarning(ecIns.id);
        return;
      }
      var ecModel = ecIns._model;
      var coordSysList = ecIns._coordSysMgr.getCoordinateSystems();
      var result;
      var parsedFinder = parseFinder(ecModel, finder);
      for (var i = 0; i < coordSysList.length; i++) {
        var coordSys = coordSysList[i];
        if (coordSys[methodName] && (result = coordSys[methodName](ecModel, parsedFinder, value)) != null) {
          return result;
        }
      }
      if (false) {}
    };
    updateStreamModes = function (ecIns, ecModel) {
      var chartsMap = ecIns._chartsMap;
      var scheduler = ecIns._scheduler;
      ecModel.eachSeries(function (seriesModel) {
        scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]);
      });
    };
    doDispatchAction = function (payload, silent) {
      var _this = this;
      var ecModel = this.getModel();
      var payloadType = payload.type;
      var escapeConnect = payload.escapeConnect;
      var actionWrap = actions[payloadType];
      var actionInfo = actionWrap.actionInfo;
      var cptTypeTmp = (actionInfo.update || 'update').split(':');
      var updateMethod = cptTypeTmp.pop();
      var cptType = cptTypeTmp[0] != null && parseClassType(cptTypeTmp[0]);
      this[IN_MAIN_PROCESS_KEY] = true;
      var payloads = [payload];
      var batched = false;
      // Batch action
      if (payload.batch) {
        batched = true;
        payloads = Object(util["map"])(payload.batch, function (item) {
          item = Object(util["defaults"])(Object(util["extend"])({}, item), payload);
          item.batch = null;
          return item;
        });
      }
      var eventObjBatch = [];
      var eventObj;
      var isSelectChange = isSelectChangePayload(payload);
      var isHighDown = isHighDownPayload(payload);
      // Only leave blur once if there are multiple batches.
      if (isHighDown) {
        allLeaveBlur(this._api);
      }
      Object(util["each"])(payloads, function (batchItem) {
        // Action can specify the event by return it.
        eventObj = actionWrap.action(batchItem, _this._model, _this._api);
        // Emit event outside
        eventObj = eventObj || Object(util["extend"])({}, batchItem);
        // Convert type to eventType
        eventObj.type = actionInfo.event || eventObj.type;
        eventObjBatch.push(eventObj);
        // light update does not perform data process, layout and visual.
        if (isHighDown) {
          var _a = preParseFinder(payload),
            queryOptionMap = _a.queryOptionMap,
            mainTypeSpecified = _a.mainTypeSpecified;
          var componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : 'series';
          updateDirectly(_this, updateMethod, batchItem, componentMainType);
          markStatusToUpdate(_this);
        } else if (isSelectChange) {
          // At present `dispatchAction({ type: 'select', ... })` is not supported on components.
          // geo still use 'geoselect'.
          updateDirectly(_this, updateMethod, batchItem, 'series');
          markStatusToUpdate(_this);
        } else if (cptType) {
          updateDirectly(_this, updateMethod, batchItem, cptType.main, cptType.sub);
        }
      });
      if (updateMethod !== 'none' && !isHighDown && !isSelectChange && !cptType) {
        try {
          // Still dirty
          if (this[PENDING_UPDATE]) {
            prepare(this);
            updateMethods.update.call(this, payload);
            this[PENDING_UPDATE] = null;
          } else {
            updateMethods[updateMethod].call(this, payload);
          }
        } catch (e) {
          this[IN_MAIN_PROCESS_KEY] = false;
          throw e;
        }
      }
      // Follow the rule of action batch
      if (batched) {
        eventObj = {
          type: actionInfo.event || payloadType,
          escapeConnect: escapeConnect,
          batch: eventObjBatch
        };
      } else {
        eventObj = eventObjBatch[0];
      }
      this[IN_MAIN_PROCESS_KEY] = false;
      if (!silent) {
        var messageCenter = this._messageCenter;
        messageCenter.trigger(eventObj.type, eventObj);
        // Extra triggered 'selectchanged' event
        if (isSelectChange) {
          var newObj = {
            type: 'selectchanged',
            escapeConnect: escapeConnect,
            selected: getAllSelectedIndices(ecModel),
            isFromClick: payload.isFromClick || false,
            fromAction: payload.type,
            fromActionPayload: payload
          };
          messageCenter.trigger(newObj.type, newObj);
        }
      }
    };
    flushPendingActions = function (silent) {
      var pendingActions = this._pendingActions;
      while (pendingActions.length) {
        var payload = pendingActions.shift();
        doDispatchAction.call(this, payload, silent);
      }
    };
    triggerUpdatedEvent = function (silent) {
      !silent && this.trigger('updated');
    };
    /**
     * Event `rendered` is triggered when zr
     * rendered. It is useful for realtime
     * snapshot (reflect animation).
     *
     * Event `finished` is triggered when:
     * (1) zrender rendering finished.
     * (2) initial animation finished.
     * (3) progressive rendering finished.
     * (4) no pending action.
     * (5) no delayed setOption needs to be processed.
     */
    bindRenderedEvent = function (zr, ecIns) {
      zr.on('rendered', function (params) {
        ecIns.trigger('rendered', params);
        // The `finished` event should not be triggered repeatedly,
        // so it should only be triggered when rendering indeed happens
        // in zrender. (Consider the case that dipatchAction is keep
        // triggering when mouse move).
        if (
        // Although zr is dirty if initial animation is not finished
        // and this checking is called on frame, we also check
        // animation finished for robustness.
        zr.animation.isFinished() && !ecIns[PENDING_UPDATE] && !ecIns._scheduler.unfinished && !ecIns._pendingActions.length) {
          ecIns.trigger('finished');
        }
      });
    };
    bindMouseEvent = function (zr, ecIns) {
      zr.on('mouseover', function (e) {
        var el = e.target;
        var dispatcher = findEventDispatcher(el, isHighDownDispatcher);
        if (dispatcher) {
          handleGlobalMouseOverForHighDown(dispatcher, e, ecIns._api);
          markStatusToUpdate(ecIns);
        }
      }).on('mouseout', function (e) {
        var el = e.target;
        var dispatcher = findEventDispatcher(el, isHighDownDispatcher);
        if (dispatcher) {
          handleGlobalMouseOutForHighDown(dispatcher, e, ecIns._api);
          markStatusToUpdate(ecIns);
        }
      }).on('click', function (e) {
        var el = e.target;
        var dispatcher = findEventDispatcher(el, function (target) {
          return getECData(target).dataIndex != null;
        }, true);
        if (dispatcher) {
          var actionType = dispatcher.selected ? 'unselect' : 'select';
          var ecData = getECData(dispatcher);
          ecIns._api.dispatchAction({
            type: actionType,
            dataType: ecData.dataType,
            dataIndexInside: ecData.dataIndex,
            seriesIndex: ecData.seriesIndex,
            isFromClick: true
          });
        }
      });
    };
    function clearColorPalette(ecModel) {
      ecModel.clearColorPalette();
      ecModel.eachSeries(function (seriesModel) {
        seriesModel.clearColorPalette();
      });
    }
    ;
    // Allocate zlevels for series and components
    function allocateZlevels(ecModel) {
      ;
      var componentZLevels = [];
      var seriesZLevels = [];
      var hasSeparateZLevel = false;
      ecModel.eachComponent(function (componentType, componentModel) {
        var zlevel = componentModel.get('zlevel') || 0;
        var z = componentModel.get('z') || 0;
        var zlevelKey = componentModel.getZLevelKey();
        hasSeparateZLevel = hasSeparateZLevel || !!zlevelKey;
        (componentType === 'series' ? seriesZLevels : componentZLevels).push({
          zlevel: zlevel,
          z: z,
          idx: componentModel.componentIndex,
          type: componentType,
          key: zlevelKey
        });
      });
      if (hasSeparateZLevel) {
        // Series after component
        var zLevels = componentZLevels.concat(seriesZLevels);
        var lastSeriesZLevel_1;
        var lastSeriesKey_1;
        timsort_sort(zLevels, function (a, b) {
          if (a.zlevel === b.zlevel) {
            return a.z - b.z;
          }
          return a.zlevel - b.zlevel;
        });
        Object(util["each"])(zLevels, function (item) {
          var componentModel = ecModel.getComponent(item.type, item.idx);
          var zlevel = item.zlevel;
          var key = item.key;
          if (lastSeriesZLevel_1 != null) {
            zlevel = Math.max(lastSeriesZLevel_1, zlevel);
          }
          if (key) {
            if (zlevel === lastSeriesZLevel_1 && key !== lastSeriesKey_1) {
              zlevel++;
            }
            lastSeriesKey_1 = key;
          } else if (lastSeriesKey_1) {
            if (zlevel === lastSeriesZLevel_1) {
              zlevel++;
            }
            lastSeriesKey_1 = '';
          }
          lastSeriesZLevel_1 = zlevel;
          componentModel.setZLevel(zlevel);
        });
      }
    }
    render = function (ecIns, ecModel, api, payload, updateParams) {
      allocateZlevels(ecModel);
      renderComponents(ecIns, ecModel, api, payload, updateParams);
      Object(util["each"])(ecIns._chartsViews, function (chart) {
        chart.__alive = false;
      });
      renderSeries(ecIns, ecModel, api, payload, updateParams);
      // Remove groups of unrendered charts
      Object(util["each"])(ecIns._chartsViews, function (chart) {
        if (!chart.__alive) {
          chart.remove(ecModel, api);
        }
      });
    };
    renderComponents = function (ecIns, ecModel, api, payload, updateParams, dirtyList) {
      Object(util["each"])(dirtyList || ecIns._componentsViews, function (componentView) {
        var componentModel = componentView.__model;
        clearStates(componentModel, componentView);
        componentView.render(componentModel, ecModel, api, payload);
        updateZ(componentModel, componentView);
        updateStates(componentModel, componentView);
      });
    };
    /**
     * Render each chart and component
     */
    renderSeries = function (ecIns, ecModel, api, payload, updateParams, dirtyMap) {
      // Render all charts
      var scheduler = ecIns._scheduler;
      updateParams = Object(util["extend"])(updateParams || {}, {
        updatedSeries: ecModel.getSeries()
      });
      // TODO progressive?
      core_lifecycle.trigger('series:beforeupdate', ecModel, api, updateParams);
      var unfinished = false;
      ecModel.eachSeries(function (seriesModel) {
        var chartView = ecIns._chartsMap[seriesModel.__viewId];
        chartView.__alive = true;
        var renderTask = chartView.renderTask;
        scheduler.updatePayload(renderTask, payload);
        // TODO states on marker.
        clearStates(seriesModel, chartView);
        if (dirtyMap && dirtyMap.get(seriesModel.uid)) {
          renderTask.dirty();
        }
        if (renderTask.perform(scheduler.getPerformArgs(renderTask))) {
          unfinished = true;
        }
        chartView.group.silent = !!seriesModel.get('silent');
        // Should not call markRedraw on group, because it will disable zrender
        // incremental render (always render from the __startIndex each frame)
        // chartView.group.markRedraw();
        updateBlend(seriesModel, chartView);
        updateSeriesElementSelection(seriesModel);
      });
      scheduler.unfinished = unfinished || scheduler.unfinished;
      core_lifecycle.trigger('series:layoutlabels', ecModel, api, updateParams);
      // transition after label is layouted.
      core_lifecycle.trigger('series:transition', ecModel, api, updateParams);
      ecModel.eachSeries(function (seriesModel) {
        var chartView = ecIns._chartsMap[seriesModel.__viewId];
        // Update Z after labels updated. Before applying states.
        updateZ(seriesModel, chartView);
        // NOTE: Update states after label is updated.
        // label should be in normal status when layouting.
        updateStates(seriesModel, chartView);
      });
      // If use hover layer
      updateHoverLayerStatus(ecIns, ecModel);
      core_lifecycle.trigger('series:afterupdate', ecModel, api, updateParams);
    };
    markStatusToUpdate = function (ecIns) {
      ecIns[STATUS_NEEDS_UPDATE_KEY] = true;
      // Wake up zrender if it's sleep. Let it update states in the next frame.
      ecIns.getZr().wakeUp();
    };
    applyChangedStates = function (ecIns) {
      if (!ecIns[STATUS_NEEDS_UPDATE_KEY]) {
        return;
      }
      ecIns.getZr().storage.traverse(function (el) {
        // Not applied on removed elements, it may still in fading.
        if (isElementRemoved(el)) {
          return;
        }
        applyElementStates(el);
      });
      ecIns[STATUS_NEEDS_UPDATE_KEY] = false;
    };
    function applyElementStates(el) {
      var newStates = [];
      var oldStates = el.currentStates;
      // Keep other states.
      for (var i = 0; i < oldStates.length; i++) {
        var stateName = oldStates[i];
        if (!(stateName === 'emphasis' || stateName === 'blur' || stateName === 'select')) {
          newStates.push(stateName);
        }
      }
      // Only use states when it's exists.
      if (el.selected && el.states.select) {
        newStates.push('select');
      }
      if (el.hoverState === HOVER_STATE_EMPHASIS && el.states.emphasis) {
        newStates.push('emphasis');
      } else if (el.hoverState === HOVER_STATE_BLUR && el.states.blur) {
        newStates.push('blur');
      }
      el.useStates(newStates);
    }
    function updateHoverLayerStatus(ecIns, ecModel) {
      var zr = ecIns._zr;
      var storage = zr.storage;
      var elCount = 0;
      storage.traverse(function (el) {
        if (!el.isGroup) {
          elCount++;
        }
      });
      if (elCount > ecModel.get('hoverLayerThreshold') && !env["a" /* default */].node && !env["a" /* default */].worker) {
        ecModel.eachSeries(function (seriesModel) {
          if (seriesModel.preventUsingHoverLayer) {
            return;
          }
          var chartView = ecIns._chartsMap[seriesModel.__viewId];
          if (chartView.__alive) {
            chartView.eachRendered(function (el) {
              if (el.states.emphasis) {
                el.states.emphasis.hoverLayer = true;
              }
            });
          }
        });
      }
    }
    ;
    /**
     * Update chart and blend.
     */
    function updateBlend(seriesModel, chartView) {
      var blendMode = seriesModel.get('blendMode') || null;
      chartView.eachRendered(function (el) {
        // FIXME marker and other components
        if (!el.isGroup) {
          // DON'T mark the element dirty. In case element is incremental and don't want to rerender.
          el.style.blend = blendMode;
        }
      });
    }
    ;
    function updateZ(model, view) {
      if (model.preventAutoZ) {
        return;
      }
      var z = model.get('z') || 0;
      var zlevel = model.get('zlevel') || 0;
      // Set z and zlevel
      view.eachRendered(function (el) {
        doUpdateZ(el, z, zlevel, -Infinity);
        // Don't traverse the children because it has been traversed in _updateZ.
        return true;
      });
    }
    ;
    function doUpdateZ(el, z, zlevel, maxZ2) {
      // Group may also have textContent
      var label = el.getTextContent();
      var labelLine = el.getTextGuideLine();
      var isGroup = el.isGroup;
      if (isGroup) {
        // set z & zlevel of children elements of Group
        var children = el.childrenRef();
        for (var i = 0; i < children.length; i++) {
          maxZ2 = Math.max(doUpdateZ(children[i], z, zlevel, maxZ2), maxZ2);
        }
      } else {
        // not Group
        el.z = z;
        el.zlevel = zlevel;
        maxZ2 = Math.max(el.z2, maxZ2);
      }
      // always set z and zlevel if label/labelLine exists
      if (label) {
        label.z = z;
        label.zlevel = zlevel;
        // lift z2 of text content
        // TODO if el.emphasis.z2 is spcefied, what about textContent.
        isFinite(maxZ2) && (label.z2 = maxZ2 + 2);
      }
      if (labelLine) {
        var textGuideLineConfig = el.textGuideLineConfig;
        labelLine.z = z;
        labelLine.zlevel = zlevel;
        isFinite(maxZ2) && (labelLine.z2 = maxZ2 + (textGuideLineConfig && textGuideLineConfig.showAbove ? 1 : -1));
      }
      return maxZ2;
    }
    // Clear states without animation.
    // TODO States on component.
    function clearStates(model, view) {
      view.eachRendered(function (el) {
        // Not applied on removed elements, it may still in fading.
        if (isElementRemoved(el)) {
          return;
        }
        var textContent = el.getTextContent();
        var textGuide = el.getTextGuideLine();
        if (el.stateTransition) {
          el.stateTransition = null;
        }
        if (textContent && textContent.stateTransition) {
          textContent.stateTransition = null;
        }
        if (textGuide && textGuide.stateTransition) {
          textGuide.stateTransition = null;
        }
        // TODO If el is incremental.
        if (el.hasState()) {
          el.prevStates = el.currentStates;
          el.clearStates();
        } else if (el.prevStates) {
          el.prevStates = null;
        }
      });
    }
    function updateStates(model, view) {
      var stateAnimationModel = model.getModel('stateAnimation');
      var enableAnimation = model.isAnimationEnabled();
      var duration = stateAnimationModel.get('duration');
      var stateTransition = duration > 0 ? {
        duration: duration,
        delay: stateAnimationModel.get('delay'),
        easing: stateAnimationModel.get('easing')
        // additive: stateAnimationModel.get('additive')
      } : null;
      view.eachRendered(function (el) {
        if (el.states && el.states.emphasis) {
          // Not applied on removed elements, it may still in fading.
          if (isElementRemoved(el)) {
            return;
          }
          if (el instanceof graphic_Path) {
            savePathStates(el);
          }
          // Only updated on changed element. In case element is incremental and don't want to rerender.
          // TODO, a more proper way?
          if (el.__dirty) {
            var prevStates = el.prevStates;
            // Restore states without animation
            if (prevStates) {
              el.useStates(prevStates);
            }
          }
          // Update state transition and enable animation again.
          if (enableAnimation) {
            el.stateTransition = stateTransition;
            var textContent = el.getTextContent();
            var textGuide = el.getTextGuideLine();
            // TODO Is it necessary to animate label?
            if (textContent) {
              textContent.stateTransition = stateTransition;
            }
            if (textGuide) {
              textGuide.stateTransition = stateTransition;
            }
          }
          // Use highlighted and selected flag to toggle states.
          if (el.__dirty) {
            applyElementStates(el);
          }
        }
      });
    }
    ;
    createExtensionAPI = function (ecIns) {
      return new (/** @class */function (_super) {
        __extends(class_1, _super);
        function class_1() {
          return _super !== null && _super.apply(this, arguments) || this;
        }
        class_1.prototype.getCoordinateSystems = function () {
          return ecIns._coordSysMgr.getCoordinateSystems();
        };
        class_1.prototype.getComponentByElement = function (el) {
          while (el) {
            var modelInfo = el.__ecComponentInfo;
            if (modelInfo != null) {
              return ecIns._model.getComponent(modelInfo.mainType, modelInfo.index);
            }
            el = el.parent;
          }
        };
        class_1.prototype.enterEmphasis = function (el, highlightDigit) {
          enterEmphasis(el, highlightDigit);
          markStatusToUpdate(ecIns);
        };
        class_1.prototype.leaveEmphasis = function (el, highlightDigit) {
          leaveEmphasis(el, highlightDigit);
          markStatusToUpdate(ecIns);
        };
        class_1.prototype.enterBlur = function (el) {
          enterBlur(el);
          markStatusToUpdate(ecIns);
        };
        class_1.prototype.leaveBlur = function (el) {
          leaveBlur(el);
          markStatusToUpdate(ecIns);
        };
        class_1.prototype.enterSelect = function (el) {
          enterSelect(el);
          markStatusToUpdate(ecIns);
        };
        class_1.prototype.leaveSelect = function (el) {
          leaveSelect(el);
          markStatusToUpdate(ecIns);
        };
        class_1.prototype.getModel = function () {
          return ecIns.getModel();
        };
        class_1.prototype.getViewOfComponentModel = function (componentModel) {
          return ecIns.getViewOfComponentModel(componentModel);
        };
        class_1.prototype.getViewOfSeriesModel = function (seriesModel) {
          return ecIns.getViewOfSeriesModel(seriesModel);
        };
        return class_1;
      }(core_ExtensionAPI))(ecIns);
    };
    enableConnect = function (chart) {
      function updateConnectedChartsStatus(charts, status) {
        for (var i = 0; i < charts.length; i++) {
          var otherChart = charts[i];
          otherChart[CONNECT_STATUS_KEY] = status;
        }
      }
      Object(util["each"])(eventActionMap, function (actionType, eventType) {
        chart._messageCenter.on(eventType, function (event) {
          if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) {
            if (event && event.escapeConnect) {
              return;
            }
            var action_1 = chart.makeActionFromEvent(event);
            var otherCharts_1 = [];
            Object(util["each"])(echarts_instances, function (otherChart) {
              if (otherChart !== chart && otherChart.group === chart.group) {
                otherCharts_1.push(otherChart);
              }
            });
            updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_PENDING);
            Object(util["each"])(otherCharts_1, function (otherChart) {
              if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) {
                otherChart.dispatchAction(action_1);
              }
            });
            updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_UPDATED);
          }
        });
      });
    };
  }();
  return ECharts;
}(core_Eventful);
var echartsProto = echarts_ECharts.prototype;
echartsProto.on = createRegisterEventWithLowercaseECharts('on');
echartsProto.off = createRegisterEventWithLowercaseECharts('off');
/**
 * @deprecated
 */
// @ts-ignore
echartsProto.one = function (eventName, cb, ctx) {
  var self = this;
  deprecateLog('ECharts#one is deprecated.');
  function wrapped() {
    var args2 = [];
    for (var _i = 0; _i < arguments.length; _i++) {
      args2[_i] = arguments[_i];
    }
    cb && cb.apply && cb.apply(this, args2);
    // @ts-ignore
    self.off(eventName, wrapped);
  }
  ;
  // @ts-ignore
  this.on.call(this, eventName, wrapped, ctx);
};
var MOUSE_EVENT_NAMES = ['click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu'];
function disposedWarning(id) {
  if (false) {}
}
var actions = {};
/**
 * Map eventType to actionType
 */
var eventActionMap = {};
var dataProcessorFuncs = [];
var echarts_optionPreprocessorFuncs = [];
var visualFuncs = [];
var themeStorage = {};
var loadingEffects = {};
var echarts_instances = {};
var connectedGroups = {};
var idBase = +new Date() - 0;
var groupIdBase = +new Date() - 0;
var DOM_ATTRIBUTE_KEY = '_echarts_instance_';
/**
 * @param opts.devicePixelRatio Use window.devicePixelRatio by default
 * @param opts.renderer Can choose 'canvas' or 'svg' to render the chart.
 * @param opts.width Use clientWidth of the input `dom` by default.
 *        Can be 'auto' (the same as null/undefined)
 * @param opts.height Use clientHeight of the input `dom` by default.
 *        Can be 'auto' (the same as null/undefined)
 * @param opts.locale Specify the locale.
 * @param opts.useDirtyRect Enable dirty rectangle rendering or not.
 */
function echarts_init(dom, theme, opts) {
  var isClient = !(opts && opts.ssr);
  if (isClient) {
    if (false) {}
    var existInstance = getInstanceByDom(dom);
    if (existInstance) {
      if (false) {}
      return existInstance;
    }
    if (false) {}
  }
  var chart = new echarts_ECharts(dom, theme, opts);
  chart.id = 'ec_' + idBase++;
  echarts_instances[chart.id] = chart;
  isClient && setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);
  enableConnect(chart);
  core_lifecycle.trigger('afterinit', chart);
  return chart;
}
/**
 * @usage
 * (A)
 * ```js
 * let chart1 = echarts.init(dom1);
 * let chart2 = echarts.init(dom2);
 * chart1.group = 'xxx';
 * chart2.group = 'xxx';
 * echarts.connect('xxx');
 * ```
 * (B)
 * ```js
 * let chart1 = echarts.init(dom1);
 * let chart2 = echarts.init(dom2);
 * echarts.connect('xxx', [chart1, chart2]);
 * ```
 */
function connect(groupId) {
  // Is array of charts
  if (Object(util["isArray"])(groupId)) {
    var charts = groupId;
    groupId = null;
    // If any chart has group
    Object(util["each"])(charts, function (chart) {
      if (chart.group != null) {
        groupId = chart.group;
      }
    });
    groupId = groupId || 'g_' + groupIdBase++;
    Object(util["each"])(charts, function (chart) {
      chart.group = groupId;
    });
  }
  connectedGroups[groupId] = true;
  return groupId;
}
function disconnect(groupId) {
  connectedGroups[groupId] = false;
}
/**
 * Alias and backward compatibility
 * @deprecated
 */
var disConnect = disconnect;
/**
 * Dispose a chart instance
 */
function echarts_dispose(chart) {
  if (Object(util["isString"])(chart)) {
    chart = echarts_instances[chart];
  } else if (!(chart instanceof echarts_ECharts)) {
    // Try to treat as dom
    chart = getInstanceByDom(chart);
  }
  if (chart instanceof echarts_ECharts && !chart.isDisposed()) {
    chart.dispose();
  }
}
function getInstanceByDom(dom) {
  return echarts_instances[getAttribute(dom, DOM_ATTRIBUTE_KEY)];
}
function getInstanceById(key) {
  return echarts_instances[key];
}
/**
 * Register theme
 */
function registerTheme(name, theme) {
  themeStorage[name] = theme;
}
/**
 * Register option preprocessor
 */
function registerPreprocessor(preprocessorFunc) {
  if (Object(util["indexOf"])(echarts_optionPreprocessorFuncs, preprocessorFunc) < 0) {
    echarts_optionPreprocessorFuncs.push(preprocessorFunc);
  }
}
function registerProcessor(priority, processor) {
  normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_DEFAULT);
}
/**
 * Register postIniter
 * @param {Function} postInitFunc
 */
function registerPostInit(postInitFunc) {
  registerUpdateLifecycle('afterinit', postInitFunc);
}
/**
 * Register postUpdater
 * @param {Function} postUpdateFunc
 */
function registerPostUpdate(postUpdateFunc) {
  registerUpdateLifecycle('afterupdate', postUpdateFunc);
}
function registerUpdateLifecycle(name, cb) {
  core_lifecycle.on(name, cb);
}
function registerAction(actionInfo, eventName, action) {
  if (Object(util["isFunction"])(eventName)) {
    action = eventName;
    eventName = '';
  }
  var actionType = Object(util["isObject"])(actionInfo) ? actionInfo.type : [actionInfo, actionInfo = {
    event: eventName
  }][0];
  // Event name is all lowercase
  actionInfo.event = (actionInfo.event || actionType).toLowerCase();
  eventName = actionInfo.event;
  if (eventActionMap[eventName]) {
    // Already registered.
    return;
  }
  // Validate action type and event name.
  Object(util["assert"])(ACTION_REG.test(actionType) && ACTION_REG.test(eventName));
  if (!actions[actionType]) {
    actions[actionType] = {
      action: action,
      actionInfo: actionInfo
    };
  }
  eventActionMap[eventName] = actionType;
}
function registerCoordinateSystem(type, coordSysCreator) {
  CoordinateSystem.register(type, coordSysCreator);
}
/**
 * Get dimensions of specified coordinate system.
 * @param {string} type
 * @return {Array.<string|Object>}
 */
function getCoordinateSystemDimensions(type) {
  var coordSysCreator = CoordinateSystem.get(type);
  if (coordSysCreator) {
    return coordSysCreator.getDimensionsInfo ? coordSysCreator.getDimensionsInfo() : coordSysCreator.dimensions.slice();
  }
}

function registerLayout(priority, layoutTask) {
  normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout');
}
function registerVisual(priority, visualTask) {
  normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual');
}

var registeredTasks = [];
function normalizeRegister(targetList, priority, fn, defaultPriority, visualType) {
  if (Object(util["isFunction"])(priority) || Object(util["isObject"])(priority)) {
    fn = priority;
    priority = defaultPriority;
  }
  if (false) {}
  // Already registered
  if (Object(util["indexOf"])(registeredTasks, fn) >= 0) {
    return;
  }
  registeredTasks.push(fn);
  var stageHandler = core_Scheduler.wrapStageHandler(fn, visualType);
  stageHandler.__prio = priority;
  stageHandler.__raw = fn;
  targetList.push(stageHandler);
}
function registerLoading(name, loadingFx) {
  loadingEffects[name] = loadingFx;
}
/**
 * ZRender need a canvas context to do measureText.
 * But in node environment canvas may be created by node-canvas.
 * So we need to specify how to create a canvas instead of using document.createElement('canvas')
 *
 *
 * @deprecated use setPlatformAPI({ createCanvas }) instead.
 *
 * @example
 *     let Canvas = require('canvas');
 *     let echarts = require('echarts');
 *     echarts.setCanvasCreator(function () {
 *         // Small size is enough.
 *         return new Canvas(32, 32);
 *     });
 */
function setCanvasCreator(creator) {
  if (false) {}
  Object(platform["e" /* setPlatformAPI */])({
    createCanvas: creator
  });
}
/**
 * The parameters and usage: see `geoSourceManager.registerMap`.
 * Compatible with previous `echarts.registerMap`.
 */
function echarts_registerMap(mapName, geoJson, specialAreas) {
  var registerMap = getImpl('registerMap');
  registerMap && registerMap(mapName, geoJson, specialAreas);
}
function echarts_getMap(mapName) {
  var getMap = getImpl('getMap');
  return getMap && getMap(mapName);
}
var registerTransform = registerExternalTransform;
/**
 * Globa dispatchAction to a specified chart instance.
 */
// export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters<ECharts['dispatchAction']>[1]) {
//     if (!payload || !payload.chartId) {
//         // Must have chartId to find chart
//         return;
//     }
//     const chart = instances[payload.chartId];
//     if (chart) {
//         chart.dispatchAction(payload, opt);
//     }
// }
// Builtin global visual
registerVisual(PRIORITY_VISUAL_GLOBAL, seriesStyleTask);
registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataStyleTask);
registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataColorPaletteTask);
registerVisual(PRIORITY_VISUAL_GLOBAL, seriesSymbolTask);
registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataSymbolTask);
registerVisual(PRIORITY_VISUAL_DECAL, decalVisual);
registerPreprocessor(globalBackwardCompat);
registerProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStack);
registerLoading('default', defaultLoading);
// Default actions
registerAction({
  type: HIGHLIGHT_ACTION_TYPE,
  event: HIGHLIGHT_ACTION_TYPE,
  update: HIGHLIGHT_ACTION_TYPE
}, util["noop"]);
registerAction({
  type: DOWNPLAY_ACTION_TYPE,
  event: DOWNPLAY_ACTION_TYPE,
  update: DOWNPLAY_ACTION_TYPE
}, util["noop"]);
registerAction({
  type: SELECT_ACTION_TYPE,
  event: SELECT_ACTION_TYPE,
  update: SELECT_ACTION_TYPE
}, util["noop"]);
registerAction({
  type: UNSELECT_ACTION_TYPE,
  event: UNSELECT_ACTION_TYPE,
  update: UNSELECT_ACTION_TYPE
}, util["noop"]);
registerAction({
  type: TOGGLE_SELECT_ACTION_TYPE,
  event: TOGGLE_SELECT_ACTION_TYPE,
  update: TOGGLE_SELECT_ACTION_TYPE
}, util["noop"]);
// Default theme
registerTheme('light', light);
registerTheme('dark', dark);
// For backward compatibility, where the namespace `dataTool` will
// be mounted on `echarts` is the extension `dataTool` is imported.
var dataTool = {};
// CONCATENATED MODULE: ./node_modules/echarts/lib/extension.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var extensions = [];
var extensionRegisters = {
  registerPreprocessor: registerPreprocessor,
  registerProcessor: registerProcessor,
  registerPostInit: registerPostInit,
  registerPostUpdate: registerPostUpdate,
  registerUpdateLifecycle: registerUpdateLifecycle,
  registerAction: registerAction,
  registerCoordinateSystem: registerCoordinateSystem,
  registerLayout: registerLayout,
  registerVisual: registerVisual,
  registerTransform: registerTransform,
  registerLoading: registerLoading,
  registerMap: echarts_registerMap,
  registerImpl: registerImpl,
  PRIORITY: PRIORITY,
  ComponentModel: Component,
  ComponentView: view_Component,
  SeriesModel: Series,
  ChartView: Chart,
  // TODO Use ComponentModel and SeriesModel instead of Constructor
  registerComponentModel: function (ComponentModelClass) {
    Component.registerClass(ComponentModelClass);
  },
  registerComponentView: function (ComponentViewClass) {
    view_Component.registerClass(ComponentViewClass);
  },
  registerSeriesModel: function (SeriesModelClass) {
    Series.registerClass(SeriesModelClass);
  },
  registerChartView: function (ChartViewClass) {
    Chart.registerClass(ChartViewClass);
  },
  registerSubTypeDefaulter: function (componentType, defaulter) {
    Component.registerSubTypeDefaulter(componentType, defaulter);
  },
  registerPainter: function (painterType, PainterCtor) {
    registerPainter(painterType, PainterCtor);
  }
};
function use(ext) {
  if (Object(util["isArray"])(ext)) {
    // use([ChartLine, ChartBar]);
    Object(util["each"])(ext, function (singleExt) {
      use(singleExt);
    });
    return;
  }
  if (Object(util["indexOf"])(extensions, ext) >= 0) {
    return;
  }
  extensions.push(ext);
  if (Object(util["isFunction"])(ext)) {
    ext = {
      install: ext
    };
  }
  ext.install(extensionRegisters);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/DataDiffer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function dataIndexMapValueLength(valNumOrArrLengthMoreThan2) {
  return valNumOrArrLengthMoreThan2 == null ? 0 : valNumOrArrLengthMoreThan2.length || 1;
}
function defaultKeyGetter(item) {
  return item;
}
var DataDiffer = /** @class */function () {
  /**
   * @param context Can be visited by this.context in callback.
   */
  function DataDiffer(oldArr, newArr, oldKeyGetter, newKeyGetter, context,
  // By default: 'oneToOne'.
  diffMode) {
    this._old = oldArr;
    this._new = newArr;
    this._oldKeyGetter = oldKeyGetter || defaultKeyGetter;
    this._newKeyGetter = newKeyGetter || defaultKeyGetter;
    // Visible in callback via `this.context`;
    this.context = context;
    this._diffModeMultiple = diffMode === 'multiple';
  }
  /**
   * Callback function when add a data
   */
  DataDiffer.prototype.add = function (func) {
    this._add = func;
    return this;
  };
  /**
   * Callback function when update a data
   */
  DataDiffer.prototype.update = function (func) {
    this._update = func;
    return this;
  };
  /**
   * Callback function when update a data and only work in `cbMode: 'byKey'`.
   */
  DataDiffer.prototype.updateManyToOne = function (func) {
    this._updateManyToOne = func;
    return this;
  };
  /**
   * Callback function when update a data and only work in `cbMode: 'byKey'`.
   */
  DataDiffer.prototype.updateOneToMany = function (func) {
    this._updateOneToMany = func;
    return this;
  };
  /**
   * Callback function when update a data and only work in `cbMode: 'byKey'`.
   */
  DataDiffer.prototype.updateManyToMany = function (func) {
    this._updateManyToMany = func;
    return this;
  };
  /**
   * Callback function when remove a data
   */
  DataDiffer.prototype.remove = function (func) {
    this._remove = func;
    return this;
  };
  DataDiffer.prototype.execute = function () {
    this[this._diffModeMultiple ? '_executeMultiple' : '_executeOneToOne']();
  };
  DataDiffer.prototype._executeOneToOne = function () {
    var oldArr = this._old;
    var newArr = this._new;
    var newDataIndexMap = {};
    var oldDataKeyArr = new Array(oldArr.length);
    var newDataKeyArr = new Array(newArr.length);
    this._initIndexMap(oldArr, null, oldDataKeyArr, '_oldKeyGetter');
    this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');
    for (var i = 0; i < oldArr.length; i++) {
      var oldKey = oldDataKeyArr[i];
      var newIdxMapVal = newDataIndexMap[oldKey];
      var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);
      // idx can never be empty array here. see 'set null' logic below.
      if (newIdxMapValLen > 1) {
        // Consider there is duplicate key (for example, use dataItem.name as key).
        // We should make sure every item in newArr and oldArr can be visited.
        var newIdx = newIdxMapVal.shift();
        if (newIdxMapVal.length === 1) {
          newDataIndexMap[oldKey] = newIdxMapVal[0];
        }
        this._update && this._update(newIdx, i);
      } else if (newIdxMapValLen === 1) {
        newDataIndexMap[oldKey] = null;
        this._update && this._update(newIdxMapVal, i);
      } else {
        this._remove && this._remove(i);
      }
    }
    this._performRestAdd(newDataKeyArr, newDataIndexMap);
  };
  /**
   * For example, consider the case:
   * oldData: [o0, o1, o2, o3, o4, o5, o6, o7],
   * newData: [n0, n1, n2, n3, n4, n5, n6, n7, n8],
   * Where:
   *     o0, o1, n0 has key 'a' (many to one)
   *     o5, n4, n5, n6 has key 'b' (one to many)
   *     o2, n1 has key 'c' (one to one)
   *     n2, n3 has key 'd' (add)
   *     o3, o4 has key 'e' (remove)
   *     o6, o7, n7, n8 has key 'f' (many to many, treated as add and remove)
   * Then:
   *     (The order of the following directives are not ensured.)
   *     this._updateManyToOne(n0, [o0, o1]);
   *     this._updateOneToMany([n4, n5, n6], o5);
   *     this._update(n1, o2);
   *     this._remove(o3);
   *     this._remove(o4);
   *     this._remove(o6);
   *     this._remove(o7);
   *     this._add(n2);
   *     this._add(n3);
   *     this._add(n7);
   *     this._add(n8);
   */
  DataDiffer.prototype._executeMultiple = function () {
    var oldArr = this._old;
    var newArr = this._new;
    var oldDataIndexMap = {};
    var newDataIndexMap = {};
    var oldDataKeyArr = [];
    var newDataKeyArr = [];
    this._initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter');
    this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');
    for (var i = 0; i < oldDataKeyArr.length; i++) {
      var oldKey = oldDataKeyArr[i];
      var oldIdxMapVal = oldDataIndexMap[oldKey];
      var newIdxMapVal = newDataIndexMap[oldKey];
      var oldIdxMapValLen = dataIndexMapValueLength(oldIdxMapVal);
      var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);
      if (oldIdxMapValLen > 1 && newIdxMapValLen === 1) {
        this._updateManyToOne && this._updateManyToOne(newIdxMapVal, oldIdxMapVal);
        newDataIndexMap[oldKey] = null;
      } else if (oldIdxMapValLen === 1 && newIdxMapValLen > 1) {
        this._updateOneToMany && this._updateOneToMany(newIdxMapVal, oldIdxMapVal);
        newDataIndexMap[oldKey] = null;
      } else if (oldIdxMapValLen === 1 && newIdxMapValLen === 1) {
        this._update && this._update(newIdxMapVal, oldIdxMapVal);
        newDataIndexMap[oldKey] = null;
      } else if (oldIdxMapValLen > 1 && newIdxMapValLen > 1) {
        this._updateManyToMany && this._updateManyToMany(newIdxMapVal, oldIdxMapVal);
        newDataIndexMap[oldKey] = null;
      } else if (oldIdxMapValLen > 1) {
        for (var i_1 = 0; i_1 < oldIdxMapValLen; i_1++) {
          this._remove && this._remove(oldIdxMapVal[i_1]);
        }
      } else {
        this._remove && this._remove(oldIdxMapVal);
      }
    }
    this._performRestAdd(newDataKeyArr, newDataIndexMap);
  };
  DataDiffer.prototype._performRestAdd = function (newDataKeyArr, newDataIndexMap) {
    for (var i = 0; i < newDataKeyArr.length; i++) {
      var newKey = newDataKeyArr[i];
      var newIdxMapVal = newDataIndexMap[newKey];
      var idxMapValLen = dataIndexMapValueLength(newIdxMapVal);
      if (idxMapValLen > 1) {
        for (var j = 0; j < idxMapValLen; j++) {
          this._add && this._add(newIdxMapVal[j]);
        }
      } else if (idxMapValLen === 1) {
        this._add && this._add(newIdxMapVal);
      }
      // Support both `newDataKeyArr` are duplication removed or not removed.
      newDataIndexMap[newKey] = null;
    }
  };
  DataDiffer.prototype._initIndexMap = function (arr,
  // Can be null.
  map,
  // In 'byKey', the output `keyArr` is duplication removed.
  // In 'byIndex', the output `keyArr` is not duplication removed and
  //     its indices are accurately corresponding to `arr`.
  keyArr, keyGetterName) {
    var cbModeMultiple = this._diffModeMultiple;
    for (var i = 0; i < arr.length; i++) {
      // Add prefix to avoid conflict with Object.prototype.
      var key = '_ec_' + this[keyGetterName](arr[i], i);
      if (!cbModeMultiple) {
        keyArr[i] = key;
      }
      if (!map) {
        continue;
      }
      var idxMapVal = map[key];
      var idxMapValLen = dataIndexMapValueLength(idxMapVal);
      if (idxMapValLen === 0) {
        // Simple optimize: in most cases, one index has one key,
        // do not need array.
        map[key] = i;
        if (cbModeMultiple) {
          keyArr.push(key);
        }
      } else if (idxMapValLen === 1) {
        map[key] = [idxMapVal, i];
      } else {
        idxMapVal.push(i);
      }
    }
  };
  return DataDiffer;
}();
/* harmony default export */ var data_DataDiffer = (DataDiffer);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/dimensionHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var DimensionUserOuput = /** @class */function () {
  function DimensionUserOuput(encode, dimRequest) {
    this._encode = encode;
    this._schema = dimRequest;
  }
  DimensionUserOuput.prototype.get = function () {
    return {
      // Do not generate full dimension name until fist used.
      fullDimensions: this._getFullDimensionNames(),
      encode: this._encode
    };
  };
  /**
   * Get all data store dimension names.
   * Theoretically a series data store is defined both by series and used dataset (if any).
   * If some dimensions are omitted for performance reason in `this.dimensions`,
   * the dimension name may not be auto-generated if user does not specify a dimension name.
   * In this case, the dimension name is `null`/`undefined`.
   */
  DimensionUserOuput.prototype._getFullDimensionNames = function () {
    if (!this._cachedDimNames) {
      this._cachedDimNames = this._schema ? this._schema.makeOutputDimensionNames() : [];
    }
    return this._cachedDimNames;
  };
  return DimensionUserOuput;
}();
;
function summarizeDimensions(data, schema) {
  var summary = {};
  var encode = summary.encode = {};
  var notExtraCoordDimMap = Object(util["createHashMap"])();
  var defaultedLabel = [];
  var defaultedTooltip = [];
  var userOutputEncode = {};
  Object(util["each"])(data.dimensions, function (dimName) {
    var dimItem = data.getDimensionInfo(dimName);
    var coordDim = dimItem.coordDim;
    if (coordDim) {
      if (false) {}
      var coordDimIndex = dimItem.coordDimIndex;
      getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;
      if (!dimItem.isExtraCoord) {
        notExtraCoordDimMap.set(coordDim, 1);
        // Use the last coord dim (and label friendly) as default label,
        // because when dataset is used, it is hard to guess which dimension
        // can be value dimension. If both show x, y on label is not look good,
        // and conventionally y axis is focused more.
        if (mayLabelDimType(dimItem.type)) {
          defaultedLabel[0] = dimName;
        }
        // User output encode do not contain generated coords.
        // And it only has index. User can use index to retrieve value from the raw item array.
        getOrCreateEncodeArr(userOutputEncode, coordDim)[coordDimIndex] = data.getDimensionIndex(dimItem.name);
      }
      if (dimItem.defaultTooltip) {
        defaultedTooltip.push(dimName);
      }
    }
    VISUAL_DIMENSIONS.each(function (v, otherDim) {
      var encodeArr = getOrCreateEncodeArr(encode, otherDim);
      var dimIndex = dimItem.otherDims[otherDim];
      if (dimIndex != null && dimIndex !== false) {
        encodeArr[dimIndex] = dimItem.name;
      }
    });
  });
  var dataDimsOnCoord = [];
  var encodeFirstDimNotExtra = {};
  notExtraCoordDimMap.each(function (v, coordDim) {
    var dimArr = encode[coordDim];
    encodeFirstDimNotExtra[coordDim] = dimArr[0];
    // Not necessary to remove duplicate, because a data
    // dim canot on more than one coordDim.
    dataDimsOnCoord = dataDimsOnCoord.concat(dimArr);
  });
  summary.dataDimsOnCoord = dataDimsOnCoord;
  summary.dataDimIndicesOnCoord = Object(util["map"])(dataDimsOnCoord, function (dimName) {
    return data.getDimensionInfo(dimName).storeDimIndex;
  });
  summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;
  var encodeLabel = encode.label;
  // FIXME `encode.label` is not recommended, because formatter cannot be set
  // in this way. Use label.formatter instead. Maybe remove this approach someday.
  if (encodeLabel && encodeLabel.length) {
    defaultedLabel = encodeLabel.slice();
  }
  var encodeTooltip = encode.tooltip;
  if (encodeTooltip && encodeTooltip.length) {
    defaultedTooltip = encodeTooltip.slice();
  } else if (!defaultedTooltip.length) {
    defaultedTooltip = defaultedLabel.slice();
  }
  encode.defaultedLabel = defaultedLabel;
  encode.defaultedTooltip = defaultedTooltip;
  summary.userOutput = new DimensionUserOuput(userOutputEncode, schema);
  return summary;
}
function getOrCreateEncodeArr(encode, dim) {
  if (!encode.hasOwnProperty(dim)) {
    encode[dim] = [];
  }
  return encode[dim];
}
// FIXME:TS should be type `AxisType`
function getDimensionTypeByAxis(axisType) {
  return axisType === 'category' ? 'ordinal' : axisType === 'time' ? 'time' : 'float';
}
function mayLabelDimType(dimType) {
  // In most cases, ordinal and time do not suitable for label.
  // Ordinal info can be displayed on axis. Time is too long.
  return !(dimType === 'ordinal' || dimType === 'time');
}
// function findTheLastDimMayLabel(data) {
//     // Get last value dim
//     let dimensions = data.dimensions.slice();
//     let valueType;
//     let valueDim;
//     while (dimensions.length && (
//         valueDim = dimensions.pop(),
//         valueType = data.getDimensionInfo(valueDim).type,
//         valueType === 'ordinal' || valueType === 'time'
//     )) {} // jshint ignore:line
//     return valueDim;
// }
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/SeriesDimensionDefine.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var SeriesDimensionDefine_SeriesDimensionDefine = /** @class */function () {
  /**
   * @param opt All of the fields will be shallow copied.
   */
  function SeriesDimensionDefine(opt) {
    /**
     * The format of `otherDims` is:
     * ```js
     * {
     *     tooltip?: number
     *     label?: number
     *     itemName?: number
     *     seriesName?: number
     * }
     * ```
     *
     * A `series.encode` can specified these fields:
     * ```js
     * encode: {
     *     // "3, 1, 5" is the index of data dimension.
     *     tooltip: [3, 1, 5],
     *     label: [0, 3],
     *     ...
     * }
     * ```
     * `otherDims` is the parse result of the `series.encode` above, like:
     * ```js
     * // Suppose the index of this data dimension is `3`.
     * this.otherDims = {
     *     // `3` is at the index `0` of the `encode.tooltip`
     *     tooltip: 0,
     *     // `3` is at the index `1` of the `encode.label`
     *     label: 1
     * };
     * ```
     *
     * This prop should never be `null`/`undefined` after initialized.
     */
    this.otherDims = {};
    if (opt != null) {
      util["extend"](this, opt);
    }
  }
  return SeriesDimensionDefine;
}();
;
/* harmony default export */ var data_SeriesDimensionDefine = (SeriesDimensionDefine_SeriesDimensionDefine);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/SeriesDataSchema.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var SeriesDataSchema_inner = makeInner();
var dimTypeShort = {
  float: 'f',
  int: 'i',
  ordinal: 'o',
  number: 'n',
  time: 't'
};
/**
 * Represents the dimension requirement of a series.
 *
 * NOTICE:
 * When there are too many dimensions in dataset and many series, only the used dimensions
 * (i.e., used by coord sys and declared in `series.encode`) are add to `dimensionDefineList`.
 * But users may query data by other unused dimension names.
 * In this case, users can only query data if and only if they have defined dimension names
 * via ec option, so we provide `getDimensionIndexFromSource`, which only query them from
 * `source` dimensions.
 */
var SeriesDataSchema_SeriesDataSchema = /** @class */function () {
  function SeriesDataSchema(opt) {
    this.dimensions = opt.dimensions;
    this._dimOmitted = opt.dimensionOmitted;
    this.source = opt.source;
    this._fullDimCount = opt.fullDimensionCount;
    this._updateDimOmitted(opt.dimensionOmitted);
  }
  SeriesDataSchema.prototype.isDimensionOmitted = function () {
    return this._dimOmitted;
  };
  SeriesDataSchema.prototype._updateDimOmitted = function (dimensionOmitted) {
    this._dimOmitted = dimensionOmitted;
    if (!dimensionOmitted) {
      return;
    }
    if (!this._dimNameMap) {
      this._dimNameMap = ensureSourceDimNameMap(this.source);
    }
  };
  /**
   * @caution Can only be used when `dimensionOmitted: true`.
   *
   * Get index by user defined dimension name (i.e., not internal generate name).
   * That is, get index from `dimensionsDefine`.
   * If no `dimensionsDefine`, or no name get, return -1.
   */
  SeriesDataSchema.prototype.getSourceDimensionIndex = function (dimName) {
    return Object(util["retrieve2"])(this._dimNameMap.get(dimName), -1);
  };
  /**
   * @caution Can only be used when `dimensionOmitted: true`.
   *
   * Notice: may return `null`/`undefined` if user not specify dimension names.
   */
  SeriesDataSchema.prototype.getSourceDimension = function (dimIndex) {
    var dimensionsDefine = this.source.dimensionsDefine;
    if (dimensionsDefine) {
      return dimensionsDefine[dimIndex];
    }
  };
  SeriesDataSchema.prototype.makeStoreSchema = function () {
    var dimCount = this._fullDimCount;
    var willRetrieveDataByName = shouldRetrieveDataByName(this.source);
    var makeHashStrict = !shouldOmitUnusedDimensions(dimCount);
    // If source don't have dimensions or series don't omit unsed dimensions.
    // Generate from seriesDimList directly
    var dimHash = '';
    var dims = [];
    for (var fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < dimCount; fullDimIdx++) {
      var property = void 0;
      var type = void 0;
      var ordinalMeta = void 0;
      var seriesDimDef = this.dimensions[seriesDimIdx];
      // The list has been sorted by `storeDimIndex` asc.
      if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) {
        property = willRetrieveDataByName ? seriesDimDef.name : null;
        type = seriesDimDef.type;
        ordinalMeta = seriesDimDef.ordinalMeta;
        seriesDimIdx++;
      } else {
        var sourceDimDef = this.getSourceDimension(fullDimIdx);
        if (sourceDimDef) {
          property = willRetrieveDataByName ? sourceDimDef.name : null;
          type = sourceDimDef.type;
        }
      }
      dims.push({
        property: property,
        type: type,
        ordinalMeta: ordinalMeta
      });
      // If retrieving data by index,
      //   use <index, type, ordinalMeta> to determine whether data can be shared.
      //   (Because in this case there might be no dimension name defined in dataset, but indices always exists).
      //   (Indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash).
      // Otherwise if retrieving data by property name (like `data: [{aa: 123, bb: 765}, ...]`),
      //   use <property, type, ordinalMeta> in hash.
      if (willRetrieveDataByName && property != null
      // For data stack, we have make sure each series has its own dim on this store.
      // So we do not add property to hash to make sure they can share this store.
      && (!seriesDimDef || !seriesDimDef.isCalculationCoord)) {
        dimHash += makeHashStrict
        // Use escape character '`' in case that property name contains '$'.
        ? property.replace(/\`/g, '`1').replace(/\$/g, '`2')
        // For better performance, when there are large dimensions, tolerant this defects that hardly meet.
        : property;
      }
      dimHash += '$';
      dimHash += dimTypeShort[type] || 'f';
      if (ordinalMeta) {
        dimHash += ordinalMeta.uid;
      }
      dimHash += '$';
    }
    // Source from endpoint(usually series) will be read differently
    // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different.
    // So we use this three props as key.
    var source = this.source;
    var hash = [source.seriesLayoutBy, source.startIndex, dimHash].join('$$');
    return {
      dimensions: dims,
      hash: hash
    };
  };
  SeriesDataSchema.prototype.makeOutputDimensionNames = function () {
    var result = [];
    for (var fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimCount; fullDimIdx++) {
      var name_1 = void 0;
      var seriesDimDef = this.dimensions[seriesDimIdx];
      // The list has been sorted by `storeDimIndex` asc.
      if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) {
        if (!seriesDimDef.isCalculationCoord) {
          name_1 = seriesDimDef.name;
        }
        seriesDimIdx++;
      } else {
        var sourceDimDef = this.getSourceDimension(fullDimIdx);
        if (sourceDimDef) {
          name_1 = sourceDimDef.name;
        }
      }
      result.push(name_1);
    }
    return result;
  };
  SeriesDataSchema.prototype.appendCalculationDimension = function (dimDef) {
    this.dimensions.push(dimDef);
    dimDef.isCalculationCoord = true;
    this._fullDimCount++;
    // If append dimension on a data store, consider the store
    // might be shared by different series, series dimensions not
    // really map to store dimensions.
    this._updateDimOmitted(true);
  };
  return SeriesDataSchema;
}();

function isSeriesDataSchema(schema) {
  return schema instanceof SeriesDataSchema_SeriesDataSchema;
}
function createDimNameMap(dimsDef) {
  var dataDimNameMap = Object(util["createHashMap"])();
  for (var i = 0; i < (dimsDef || []).length; i++) {
    var dimDefItemRaw = dimsDef[i];
    var userDimName = Object(util["isObject"])(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw;
    if (userDimName != null && dataDimNameMap.get(userDimName) == null) {
      dataDimNameMap.set(userDimName, i);
    }
  }
  return dataDimNameMap;
}
function ensureSourceDimNameMap(source) {
  var innerSource = SeriesDataSchema_inner(source);
  return innerSource.dimNameMap || (innerSource.dimNameMap = createDimNameMap(source.dimensionsDefine));
}
function shouldOmitUnusedDimensions(dimCount) {
  return dimCount > 30;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/SeriesData.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global Int32Array */












var SeriesData_isObject = util["isObject"];
var SeriesData_map = util["map"];
var SeriesData_CtorInt32Array = typeof Int32Array === 'undefined' ? Array : Int32Array;
// Use prefix to avoid index to be the same as otherIdList[idx],
// which will cause weird update animation.
var ID_PREFIX = 'e\0\0';
var INDEX_NOT_FOUND = -1;
// type SeriesDimensionIndex = DimensionIndex;
var TRANSFERABLE_PROPERTIES = ['hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', '_dimSummary', 'userOutput', '_rawData', '_dimValueGetter', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount'];
var CLONE_PROPERTIES = ['_approximateExtent'];
// -----------------------------
// Internal method declarations:
// -----------------------------
var prepareInvertedIndex;
var getId;
var getIdNameFromStore;
var normalizeDimensions;
var transferProperties;
var cloneListForMapAndSample;
var makeIdFromName;
var SeriesData_SeriesData = /** @class */function () {
  /**
   * @param dimensionsInput.dimensions
   *        For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...].
   *        Dimensions should be concrete names like x, y, z, lng, lat, angle, radius
   */
  function SeriesData(dimensionsInput, hostModel) {
    this.type = 'list';
    this._dimOmitted = false;
    this._nameList = [];
    this._idList = [];
    // Models of data option is stored sparse for optimizing memory cost
    // Never used yet (not used yet).
    // private _optionModels: Model[] = [];
    // Global visual properties after visual coding
    this._visual = {};
    // Global layout properties.
    this._layout = {};
    // Item visual properties after visual coding
    this._itemVisuals = [];
    // Item layout properties after layout
    this._itemLayouts = [];
    // Graphic elements
    this._graphicEls = [];
    // key: dim, value: extent
    this._approximateExtent = {};
    this._calculationInfo = {};
    // Having detected that there is data item is non primitive type
    // (in type `OptionDataItemObject`).
    // Like `data: [ { value: xx, itemStyle: {...} }, ...]`
    // At present it only happen in `SOURCE_FORMAT_ORIGINAL`.
    this.hasItemOption = false;
    // Methods that create a new list based on this list should be listed here.
    // Notice that those method should `RETURN` the new list.
    this.TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'minmaxDownSample', 'lttbDownSample', 'map'];
    // Methods that change indices of this list should be listed here.
    this.CHANGABLE_METHODS = ['filterSelf', 'selectRange'];
    this.DOWNSAMPLE_METHODS = ['downSample', 'minmaxDownSample', 'lttbDownSample'];
    var dimensions;
    var assignStoreDimIdx = false;
    if (isSeriesDataSchema(dimensionsInput)) {
      dimensions = dimensionsInput.dimensions;
      this._dimOmitted = dimensionsInput.isDimensionOmitted();
      this._schema = dimensionsInput;
    } else {
      assignStoreDimIdx = true;
      dimensions = dimensionsInput;
    }
    dimensions = dimensions || ['x', 'y'];
    var dimensionInfos = {};
    var dimensionNames = [];
    var invertedIndicesMap = {};
    var needsHasOwn = false;
    var emptyObj = {};
    for (var i = 0; i < dimensions.length; i++) {
      // Use the original dimensions[i], where other flag props may exists.
      var dimInfoInput = dimensions[i];
      var dimensionInfo = util["isString"](dimInfoInput) ? new data_SeriesDimensionDefine({
        name: dimInfoInput
      }) : !(dimInfoInput instanceof data_SeriesDimensionDefine) ? new data_SeriesDimensionDefine(dimInfoInput) : dimInfoInput;
      var dimensionName = dimensionInfo.name;
      dimensionInfo.type = dimensionInfo.type || 'float';
      if (!dimensionInfo.coordDim) {
        dimensionInfo.coordDim = dimensionName;
        dimensionInfo.coordDimIndex = 0;
      }
      var otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {};
      dimensionNames.push(dimensionName);
      dimensionInfos[dimensionName] = dimensionInfo;
      if (emptyObj[dimensionName] != null) {
        needsHasOwn = true;
      }
      if (dimensionInfo.createInvertedIndices) {
        invertedIndicesMap[dimensionName] = [];
      }
      if (otherDims.itemName === 0) {
        this._nameDimIdx = i;
      }
      if (otherDims.itemId === 0) {
        this._idDimIdx = i;
      }
      if (false) {}
      if (assignStoreDimIdx) {
        dimensionInfo.storeDimIndex = i;
      }
    }
    this.dimensions = dimensionNames;
    this._dimInfos = dimensionInfos;
    this._initGetDimensionInfo(needsHasOwn);
    this.hostModel = hostModel;
    this._invertedIndicesMap = invertedIndicesMap;
    if (this._dimOmitted) {
      var dimIdxToName_1 = this._dimIdxToName = util["createHashMap"]();
      util["each"](dimensionNames, function (dimName) {
        dimIdxToName_1.set(dimensionInfos[dimName].storeDimIndex, dimName);
      });
    }
  }
  /**
   *
   * Get concrete dimension name by dimension name or dimension index.
   * If input a dimension name, do not validate whether the dimension name exits.
   *
   * @caution
   * @param dim Must make sure the dimension is `SeriesDimensionLoose`.
   * Because only those dimensions will have auto-generated dimension names if not
   * have a user-specified name, and other dimensions will get a return of null/undefined.
   *
   * @notice Because of this reason, should better use `getDimensionIndex` instead, for examples:
   * ```js
   * const val = data.getStore().get(data.getDimensionIndex(dim), dataIdx);
   * ```
   *
   * @return Concrete dim name.
   */
  SeriesData.prototype.getDimension = function (dim) {
    var dimIdx = this._recognizeDimIndex(dim);
    if (dimIdx == null) {
      return dim;
    }
    dimIdx = dim;
    if (!this._dimOmitted) {
      return this.dimensions[dimIdx];
    }
    // Retrieve from series dimension definition because it probably contains
    // generated dimension name (like 'x', 'y').
    var dimName = this._dimIdxToName.get(dimIdx);
    if (dimName != null) {
      return dimName;
    }
    var sourceDimDef = this._schema.getSourceDimension(dimIdx);
    if (sourceDimDef) {
      return sourceDimDef.name;
    }
  };
  /**
   * Get dimension index in data store. Return -1 if not found.
   * Can be used to index value from getRawValue.
   */
  SeriesData.prototype.getDimensionIndex = function (dim) {
    var dimIdx = this._recognizeDimIndex(dim);
    if (dimIdx != null) {
      return dimIdx;
    }
    if (dim == null) {
      return -1;
    }
    var dimInfo = this._getDimInfo(dim);
    return dimInfo ? dimInfo.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(dim) : -1;
  };
  /**
   * The meanings of the input parameter `dim`:
   *
   * + If dim is a number (e.g., `1`), it means the index of the dimension.
   *   For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'.
   * + If dim is a number-like string (e.g., `"1"`):
   *     + If there is the same concrete dim name defined in `series.dimensions` or `dataset.dimensions`,
   *        it means that concrete name.
   *     + If not, it will be converted to a number, which means the index of the dimension.
   *        (why? because of the backward compatibility. We have been tolerating number-like string in
   *        dimension setting, although now it seems that it is not a good idea.)
   *     For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`,
   *     if no dimension name is defined as `"1"`.
   * + If dim is a not-number-like string, it means the concrete dim name.
   *   For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`,
   *   or customized in `dimensions` property of option like `"age"`.
   *
   * @return recognized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).
   */
  SeriesData.prototype._recognizeDimIndex = function (dim) {
    if (util["isNumber"](dim)
    // If being a number-like string but not being defined as a dimension name.
    || dim != null && !isNaN(dim) && !this._getDimInfo(dim) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(dim) < 0)) {
      return +dim;
    }
  };
  SeriesData.prototype._getStoreDimIndex = function (dim) {
    var dimIdx = this.getDimensionIndex(dim);
    if (false) {}
    return dimIdx;
  };
  /**
   * Get type and calculation info of particular dimension
   * @param dim
   *        Dimension can be concrete names like x, y, z, lng, lat, angle, radius
   *        Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'
   */
  SeriesData.prototype.getDimensionInfo = function (dim) {
    // Do not clone, because there may be categories in dimInfo.
    return this._getDimInfo(this.getDimension(dim));
  };
  SeriesData.prototype._initGetDimensionInfo = function (needsHasOwn) {
    var dimensionInfos = this._dimInfos;
    this._getDimInfo = needsHasOwn ? function (dimName) {
      return dimensionInfos.hasOwnProperty(dimName) ? dimensionInfos[dimName] : undefined;
    } : function (dimName) {
      return dimensionInfos[dimName];
    };
  };
  /**
   * concrete dimension name list on coord.
   */
  SeriesData.prototype.getDimensionsOnCoord = function () {
    return this._dimSummary.dataDimsOnCoord.slice();
  };
  SeriesData.prototype.mapDimension = function (coordDim, idx) {
    var dimensionsSummary = this._dimSummary;
    if (idx == null) {
      return dimensionsSummary.encodeFirstDimNotExtra[coordDim];
    }
    var dims = dimensionsSummary.encode[coordDim];
    return dims ? dims[idx] : null;
  };
  SeriesData.prototype.mapDimensionsAll = function (coordDim) {
    var dimensionsSummary = this._dimSummary;
    var dims = dimensionsSummary.encode[coordDim];
    return (dims || []).slice();
  };
  SeriesData.prototype.getStore = function () {
    return this._store;
  };
  /**
   * Initialize from data
   * @param data source or data or data store.
   * @param nameList The name of a datum is used on data diff and
   *        default label/tooltip.
   *        A name can be specified in encode.itemName,
   *        or dataItem.name (only for series option data),
   *        or provided in nameList from outside.
   */
  SeriesData.prototype.initData = function (data, nameList, dimValueGetter) {
    var _this = this;
    var store;
    if (data instanceof data_DataStore) {
      store = data;
    }
    if (!store) {
      var dimensions = this.dimensions;
      var provider = isSourceInstance(data) || util["isArrayLike"](data) ? new dataProvider_DefaultDataProvider(data, dimensions.length) : data;
      store = new data_DataStore();
      var dimensionInfos = SeriesData_map(dimensions, function (dimName) {
        return {
          type: _this._dimInfos[dimName].type,
          property: dimName
        };
      });
      store.initData(provider, dimensionInfos, dimValueGetter);
    }
    this._store = store;
    // Reset
    this._nameList = (nameList || []).slice();
    this._idList = [];
    this._nameRepeatCount = {};
    this._doInit(0, store.count());
    // Cache summary info for fast visit. See "dimensionHelper".
    // Needs to be initialized after store is prepared.
    this._dimSummary = summarizeDimensions(this, this._schema);
    this.userOutput = this._dimSummary.userOutput;
  };
  /**
   * Caution: Can be only called on raw data (before `this._indices` created).
   */
  SeriesData.prototype.appendData = function (data) {
    var range = this._store.appendData(data);
    this._doInit(range[0], range[1]);
  };
  /**
   * Caution: Can be only called on raw data (before `this._indices` created).
   * This method does not modify `rawData` (`dataProvider`), but only
   * add values to store.
   *
   * The final count will be increased by `Math.max(values.length, names.length)`.
   *
   * @param values That is the SourceType: 'arrayRows', like
   *        [
   *            [12, 33, 44],
   *            [NaN, 43, 1],
   *            ['-', 'asdf', 0]
   *        ]
   *        Each item is exactly corresponding to a dimension.
   */
  SeriesData.prototype.appendValues = function (values, names) {
    var _a = this._store.appendValues(values, names && names.length),
      start = _a.start,
      end = _a.end;
    var shouldMakeIdFromName = this._shouldMakeIdFromName();
    this._updateOrdinalMeta();
    if (names) {
      for (var idx = start; idx < end; idx++) {
        var sourceIdx = idx - start;
        this._nameList[idx] = names[sourceIdx];
        if (shouldMakeIdFromName) {
          makeIdFromName(this, idx);
        }
      }
    }
  };
  SeriesData.prototype._updateOrdinalMeta = function () {
    var store = this._store;
    var dimensions = this.dimensions;
    for (var i = 0; i < dimensions.length; i++) {
      var dimInfo = this._dimInfos[dimensions[i]];
      if (dimInfo.ordinalMeta) {
        store.collectOrdinalMeta(dimInfo.storeDimIndex, dimInfo.ordinalMeta);
      }
    }
  };
  SeriesData.prototype._shouldMakeIdFromName = function () {
    var provider = this._store.getProvider();
    return this._idDimIdx == null && provider.getSource().sourceFormat !== SOURCE_FORMAT_TYPED_ARRAY && !provider.fillStorage;
  };
  SeriesData.prototype._doInit = function (start, end) {
    if (start >= end) {
      return;
    }
    var store = this._store;
    var provider = store.getProvider();
    this._updateOrdinalMeta();
    var nameList = this._nameList;
    var idList = this._idList;
    var sourceFormat = provider.getSource().sourceFormat;
    var isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL;
    // Each data item is value
    // [1, 2]
    // 2
    // Bar chart, line chart which uses category axis
    // only gives the 'y' value. 'x' value is the indices of category
    // Use a tempValue to normalize the value to be a (x, y) value
    // If dataItem is {name: ...} or {id: ...}, it has highest priority.
    // This kind of ids and names are always stored `_nameList` and `_idList`.
    if (isFormatOriginal && !provider.pure) {
      var sharedDataItem = [];
      for (var idx = start; idx < end; idx++) {
        // NOTICE: Try not to write things into dataItem
        var dataItem = provider.getItem(idx, sharedDataItem);
        if (!this.hasItemOption && isDataItemOption(dataItem)) {
          this.hasItemOption = true;
        }
        if (dataItem) {
          var itemName = dataItem.name;
          if (nameList[idx] == null && itemName != null) {
            nameList[idx] = convertOptionIdName(itemName, null);
          }
          var itemId = dataItem.id;
          if (idList[idx] == null && itemId != null) {
            idList[idx] = convertOptionIdName(itemId, null);
          }
        }
      }
    }
    if (this._shouldMakeIdFromName()) {
      for (var idx = start; idx < end; idx++) {
        makeIdFromName(this, idx);
      }
    }
    prepareInvertedIndex(this);
  };
  /**
   * PENDING: In fact currently this function is only used to short-circuit
   * the calling of `scale.unionExtentFromData` when data have been filtered by modules
   * like "dataZoom". `scale.unionExtentFromData` is used to calculate data extent for series on
   * an axis, but if a "axis related data filter module" is used, the extent of the axis have
   * been fixed and no need to calling `scale.unionExtentFromData` actually.
   * But if we add "custom data filter" in future, which is not "axis related", this method may
   * be still needed.
   *
   * Optimize for the scenario that data is filtered by a given extent.
   * Consider that if data amount is more than hundreds of thousand,
   * extent calculation will cost more than 10ms and the cache will
   * be erased because of the filtering.
   */
  SeriesData.prototype.getApproximateExtent = function (dim) {
    return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim));
  };
  /**
   * Calculate extent on a filtered data might be time consuming.
   * Approximate extent is only used for: calculate extent of filtered data outside.
   */
  SeriesData.prototype.setApproximateExtent = function (extent, dim) {
    dim = this.getDimension(dim);
    this._approximateExtent[dim] = extent.slice();
  };
  SeriesData.prototype.getCalculationInfo = function (key) {
    return this._calculationInfo[key];
  };
  SeriesData.prototype.setCalculationInfo = function (key, value) {
    SeriesData_isObject(key) ? util["extend"](this._calculationInfo, key) : this._calculationInfo[key] = value;
  };
  /**
   * @return Never be null/undefined. `number` will be converted to string. Because:
   * In most cases, name is used in display, where returning a string is more convenient.
   * In other cases, name is used in query (see `indexOfName`), where we can keep the
   * rule that name `2` equals to name `'2'`.
   */
  SeriesData.prototype.getName = function (idx) {
    var rawIndex = this.getRawIndex(idx);
    var name = this._nameList[rawIndex];
    if (name == null && this._nameDimIdx != null) {
      name = getIdNameFromStore(this, this._nameDimIdx, rawIndex);
    }
    if (name == null) {
      name = '';
    }
    return name;
  };
  SeriesData.prototype._getCategory = function (dimIdx, idx) {
    var ordinal = this._store.get(dimIdx, idx);
    var ordinalMeta = this._store.getOrdinalMeta(dimIdx);
    if (ordinalMeta) {
      return ordinalMeta.categories[ordinal];
    }
    return ordinal;
  };
  /**
   * @return Never null/undefined. `number` will be converted to string. Because:
   * In all cases having encountered at present, id is used in making diff comparison, which
   * are usually based on hash map. We can keep the rule that the internal id are always string
   * (treat `2` is the same as `'2'`) to make the related logic simple.
   */
  SeriesData.prototype.getId = function (idx) {
    return getId(this, this.getRawIndex(idx));
  };
  SeriesData.prototype.count = function () {
    return this._store.count();
  };
  /**
   * Get value. Return NaN if idx is out of range.
   *
   * @notice Should better to use `data.getStore().get(dimIndex, dataIdx)` instead.
   */
  SeriesData.prototype.get = function (dim, idx) {
    var store = this._store;
    var dimInfo = this._dimInfos[dim];
    if (dimInfo) {
      return store.get(dimInfo.storeDimIndex, idx);
    }
  };
  /**
   * @notice Should better to use `data.getStore().getByRawIndex(dimIndex, dataIdx)` instead.
   */
  SeriesData.prototype.getByRawIndex = function (dim, rawIdx) {
    var store = this._store;
    var dimInfo = this._dimInfos[dim];
    if (dimInfo) {
      return store.getByRawIndex(dimInfo.storeDimIndex, rawIdx);
    }
  };
  SeriesData.prototype.getIndices = function () {
    return this._store.getIndices();
  };
  SeriesData.prototype.getDataExtent = function (dim) {
    return this._store.getDataExtent(this._getStoreDimIndex(dim));
  };
  SeriesData.prototype.getSum = function (dim) {
    return this._store.getSum(this._getStoreDimIndex(dim));
  };
  SeriesData.prototype.getMedian = function (dim) {
    return this._store.getMedian(this._getStoreDimIndex(dim));
  };
  SeriesData.prototype.getValues = function (dimensions, idx) {
    var _this = this;
    var store = this._store;
    return util["isArray"](dimensions) ? store.getValues(SeriesData_map(dimensions, function (dim) {
      return _this._getStoreDimIndex(dim);
    }), idx) : store.getValues(dimensions);
  };
  /**
   * If value is NaN. Including '-'
   * Only check the coord dimensions.
   */
  SeriesData.prototype.hasValue = function (idx) {
    var dataDimIndicesOnCoord = this._dimSummary.dataDimIndicesOnCoord;
    for (var i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) {
      // Ordinal type originally can be string or number.
      // But when an ordinal type is used on coord, it can
      // not be string but only number. So we can also use isNaN.
      if (isNaN(this._store.get(dataDimIndicesOnCoord[i], idx))) {
        return false;
      }
    }
    return true;
  };
  /**
   * Retrieve the index with given name
   */
  SeriesData.prototype.indexOfName = function (name) {
    for (var i = 0, len = this._store.count(); i < len; i++) {
      if (this.getName(i) === name) {
        return i;
      }
    }
    return -1;
  };
  SeriesData.prototype.getRawIndex = function (idx) {
    return this._store.getRawIndex(idx);
  };
  SeriesData.prototype.indexOfRawIndex = function (rawIndex) {
    return this._store.indexOfRawIndex(rawIndex);
  };
  /**
   * Only support the dimension which inverted index created.
   * Do not support other cases until required.
   * @param dim concrete dim
   * @param value ordinal index
   * @return rawIndex
   */
  SeriesData.prototype.rawIndexOf = function (dim, value) {
    var invertedIndices = dim && this._invertedIndicesMap[dim];
    if (false) {}
    var rawIndex = invertedIndices && invertedIndices[value];
    if (rawIndex == null || isNaN(rawIndex)) {
      return INDEX_NOT_FOUND;
    }
    return rawIndex;
  };
  /**
   * Retrieve the index of nearest value
   * @param dim
   * @param value
   * @param [maxDistance=Infinity]
   * @return If and only if multiple indices has
   *         the same value, they are put to the result.
   */
  SeriesData.prototype.indicesOfNearest = function (dim, value, maxDistance) {
    return this._store.indicesOfNearest(this._getStoreDimIndex(dim), value, maxDistance);
  };
  SeriesData.prototype.each = function (dims, cb, ctx) {
    'use strict';

    if (util["isFunction"](dims)) {
      ctx = cb;
      cb = dims;
      dims = [];
    }
    // ctxCompat just for compat echarts3
    var fCtx = ctx || this;
    var dimIndices = SeriesData_map(normalizeDimensions(dims), this._getStoreDimIndex, this);
    this._store.each(dimIndices, fCtx ? util["bind"](cb, fCtx) : cb);
  };
  SeriesData.prototype.filterSelf = function (dims, cb, ctx) {
    'use strict';

    if (util["isFunction"](dims)) {
      ctx = cb;
      cb = dims;
      dims = [];
    }
    // ctxCompat just for compat echarts3
    var fCtx = ctx || this;
    var dimIndices = SeriesData_map(normalizeDimensions(dims), this._getStoreDimIndex, this);
    this._store = this._store.filter(dimIndices, fCtx ? util["bind"](cb, fCtx) : cb);
    return this;
  };
  /**
   * Select data in range. (For optimization of filter)
   * (Manually inline code, support 5 million data filtering in data zoom.)
   */
  SeriesData.prototype.selectRange = function (range) {
    'use strict';

    var _this = this;
    var innerRange = {};
    var dims = util["keys"](range);
    var dimIndices = [];
    util["each"](dims, function (dim) {
      var dimIdx = _this._getStoreDimIndex(dim);
      innerRange[dimIdx] = range[dim];
      dimIndices.push(dimIdx);
    });
    this._store = this._store.selectRange(innerRange);
    return this;
  };
  /* eslint-enable max-len */
  SeriesData.prototype.mapArray = function (dims, cb, ctx) {
    'use strict';

    if (util["isFunction"](dims)) {
      ctx = cb;
      cb = dims;
      dims = [];
    }
    // ctxCompat just for compat echarts3
    ctx = ctx || this;
    var result = [];
    this.each(dims, function () {
      result.push(cb && cb.apply(this, arguments));
    }, ctx);
    return result;
  };
  SeriesData.prototype.map = function (dims, cb, ctx, ctxCompat) {
    'use strict';

    // ctxCompat just for compat echarts3
    var fCtx = ctx || ctxCompat || this;
    var dimIndices = SeriesData_map(normalizeDimensions(dims), this._getStoreDimIndex, this);
    var list = cloneListForMapAndSample(this);
    list._store = this._store.map(dimIndices, fCtx ? util["bind"](cb, fCtx) : cb);
    return list;
  };
  SeriesData.prototype.modify = function (dims, cb, ctx, ctxCompat) {
    var _this = this;
    // ctxCompat just for compat echarts3
    var fCtx = ctx || ctxCompat || this;
    if (false) {}
    var dimIndices = SeriesData_map(normalizeDimensions(dims), this._getStoreDimIndex, this);
    // If do shallow clone here, if there are too many stacked series,
    // it still cost lots of memory, because `_store.dimensions` are not shared.
    // We should consider there probably be shallow clone happen in each series
    // in consequent filter/map.
    this._store.modify(dimIndices, fCtx ? util["bind"](cb, fCtx) : cb);
  };
  /**
   * Large data down sampling on given dimension
   * @param sampleIndex Sample index for name and id
   */
  SeriesData.prototype.downSample = function (dimension, rate, sampleValue, sampleIndex) {
    var list = cloneListForMapAndSample(this);
    list._store = this._store.downSample(this._getStoreDimIndex(dimension), rate, sampleValue, sampleIndex);
    return list;
  };
  /**
   * Large data down sampling using min-max
   * @param {string} valueDimension
   * @param {number} rate
   */
  SeriesData.prototype.minmaxDownSample = function (valueDimension, rate) {
    var list = cloneListForMapAndSample(this);
    list._store = this._store.minmaxDownSample(this._getStoreDimIndex(valueDimension), rate);
    return list;
  };
  /**
   * Large data down sampling using largest-triangle-three-buckets
   * @param {string} valueDimension
   * @param {number} targetCount
   */
  SeriesData.prototype.lttbDownSample = function (valueDimension, rate) {
    var list = cloneListForMapAndSample(this);
    list._store = this._store.lttbDownSample(this._getStoreDimIndex(valueDimension), rate);
    return list;
  };
  SeriesData.prototype.getRawDataItem = function (idx) {
    return this._store.getRawDataItem(idx);
  };
  /**
   * Get model of one data item.
   */
  // TODO: Type of data item
  SeriesData.prototype.getItemModel = function (idx) {
    var hostModel = this.hostModel;
    var dataItem = this.getRawDataItem(idx);
    return new model_Model(dataItem, hostModel, hostModel && hostModel.ecModel);
  };
  /**
   * Create a data differ
   */
  SeriesData.prototype.diff = function (otherList) {
    var thisList = this;
    return new data_DataDiffer(otherList ? otherList.getStore().getIndices() : [], this.getStore().getIndices(), function (idx) {
      return getId(otherList, idx);
    }, function (idx) {
      return getId(thisList, idx);
    });
  };
  /**
   * Get visual property.
   */
  SeriesData.prototype.getVisual = function (key) {
    var visual = this._visual;
    return visual && visual[key];
  };
  SeriesData.prototype.setVisual = function (kvObj, val) {
    this._visual = this._visual || {};
    if (SeriesData_isObject(kvObj)) {
      util["extend"](this._visual, kvObj);
    } else {
      this._visual[kvObj] = val;
    }
  };
  /**
   * Get visual property of single data item
   */
  // eslint-disable-next-line
  SeriesData.prototype.getItemVisual = function (idx, key) {
    var itemVisual = this._itemVisuals[idx];
    var val = itemVisual && itemVisual[key];
    if (val == null) {
      // Use global visual property
      return this.getVisual(key);
    }
    return val;
  };
  /**
   * If exists visual property of single data item
   */
  SeriesData.prototype.hasItemVisual = function () {
    return this._itemVisuals.length > 0;
  };
  /**
   * Make sure itemVisual property is unique
   */
  // TODO: use key to save visual to reduce memory.
  SeriesData.prototype.ensureUniqueItemVisual = function (idx, key) {
    var itemVisuals = this._itemVisuals;
    var itemVisual = itemVisuals[idx];
    if (!itemVisual) {
      itemVisual = itemVisuals[idx] = {};
    }
    var val = itemVisual[key];
    if (val == null) {
      val = this.getVisual(key);
      // TODO Performance?
      if (util["isArray"](val)) {
        val = val.slice();
      } else if (SeriesData_isObject(val)) {
        val = util["extend"]({}, val);
      }
      itemVisual[key] = val;
    }
    return val;
  };
  // eslint-disable-next-line
  SeriesData.prototype.setItemVisual = function (idx, key, value) {
    var itemVisual = this._itemVisuals[idx] || {};
    this._itemVisuals[idx] = itemVisual;
    if (SeriesData_isObject(key)) {
      util["extend"](itemVisual, key);
    } else {
      itemVisual[key] = value;
    }
  };
  /**
   * Clear itemVisuals and list visual.
   */
  SeriesData.prototype.clearAllVisual = function () {
    this._visual = {};
    this._itemVisuals = [];
  };
  SeriesData.prototype.setLayout = function (key, val) {
    SeriesData_isObject(key) ? util["extend"](this._layout, key) : this._layout[key] = val;
  };
  /**
   * Get layout property.
   */
  SeriesData.prototype.getLayout = function (key) {
    return this._layout[key];
  };
  /**
   * Get layout of single data item
   */
  SeriesData.prototype.getItemLayout = function (idx) {
    return this._itemLayouts[idx];
  };
  /**
   * Set layout of single data item
   */
  SeriesData.prototype.setItemLayout = function (idx, layout, merge) {
    this._itemLayouts[idx] = merge ? util["extend"](this._itemLayouts[idx] || {}, layout) : layout;
  };
  /**
   * Clear all layout of single data item
   */
  SeriesData.prototype.clearItemLayouts = function () {
    this._itemLayouts.length = 0;
  };
  /**
   * Set graphic element relative to data. It can be set as null
   */
  SeriesData.prototype.setItemGraphicEl = function (idx, el) {
    var seriesIndex = this.hostModel && this.hostModel.seriesIndex;
    setCommonECData(seriesIndex, this.dataType, idx, el);
    this._graphicEls[idx] = el;
  };
  SeriesData.prototype.getItemGraphicEl = function (idx) {
    return this._graphicEls[idx];
  };
  SeriesData.prototype.eachItemGraphicEl = function (cb, context) {
    util["each"](this._graphicEls, function (el, idx) {
      if (el) {
        cb && cb.call(context, el, idx);
      }
    });
  };
  /**
   * Shallow clone a new list except visual and layout properties, and graph elements.
   * New list only change the indices.
   */
  SeriesData.prototype.cloneShallow = function (list) {
    if (!list) {
      list = new SeriesData(this._schema ? this._schema : SeriesData_map(this.dimensions, this._getDimInfo, this), this.hostModel);
    }
    transferProperties(list, this);
    list._store = this._store;
    return list;
  };
  /**
   * Wrap some method to add more feature
   */
  SeriesData.prototype.wrapMethod = function (methodName, injectFunction) {
    var originalMethod = this[methodName];
    if (!util["isFunction"](originalMethod)) {
      return;
    }
    this.__wrappedMethods = this.__wrappedMethods || [];
    this.__wrappedMethods.push(methodName);
    this[methodName] = function () {
      var res = originalMethod.apply(this, arguments);
      return injectFunction.apply(this, [res].concat(util["slice"](arguments)));
    };
  };
  // ----------------------------------------------------------
  // A work around for internal method visiting private member.
  // ----------------------------------------------------------
  SeriesData.internalField = function () {
    prepareInvertedIndex = function (data) {
      var invertedIndicesMap = data._invertedIndicesMap;
      util["each"](invertedIndicesMap, function (invertedIndices, dim) {
        var dimInfo = data._dimInfos[dim];
        // Currently, only dimensions that has ordinalMeta can create inverted indices.
        var ordinalMeta = dimInfo.ordinalMeta;
        var store = data._store;
        if (ordinalMeta) {
          invertedIndices = invertedIndicesMap[dim] = new SeriesData_CtorInt32Array(ordinalMeta.categories.length);
          // The default value of TypedArray is 0. To avoid miss
          // mapping to 0, we should set it as INDEX_NOT_FOUND.
          for (var i = 0; i < invertedIndices.length; i++) {
            invertedIndices[i] = INDEX_NOT_FOUND;
          }
          for (var i = 0; i < store.count(); i++) {
            // Only support the case that all values are distinct.
            invertedIndices[store.get(dimInfo.storeDimIndex, i)] = i;
          }
        }
      });
    };
    getIdNameFromStore = function (data, dimIdx, idx) {
      return convertOptionIdName(data._getCategory(dimIdx, idx), null);
    };
    /**
     * @see the comment of `List['getId']`.
     */
    getId = function (data, rawIndex) {
      var id = data._idList[rawIndex];
      if (id == null && data._idDimIdx != null) {
        id = getIdNameFromStore(data, data._idDimIdx, rawIndex);
      }
      if (id == null) {
        id = ID_PREFIX + rawIndex;
      }
      return id;
    };
    normalizeDimensions = function (dimensions) {
      if (!util["isArray"](dimensions)) {
        dimensions = dimensions != null ? [dimensions] : [];
      }
      return dimensions;
    };
    /**
     * Data in excludeDimensions is copied, otherwise transferred.
     */
    cloneListForMapAndSample = function (original) {
      var list = new SeriesData(original._schema ? original._schema : SeriesData_map(original.dimensions, original._getDimInfo, original), original.hostModel);
      // FIXME If needs stackedOn, value may already been stacked
      transferProperties(list, original);
      return list;
    };
    transferProperties = function (target, source) {
      util["each"](TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), function (propName) {
        if (source.hasOwnProperty(propName)) {
          target[propName] = source[propName];
        }
      });
      target.__wrappedMethods = source.__wrappedMethods;
      util["each"](CLONE_PROPERTIES, function (propName) {
        target[propName] = util["clone"](source[propName]);
      });
      target._calculationInfo = util["extend"]({}, source._calculationInfo);
    };
    makeIdFromName = function (data, idx) {
      var nameList = data._nameList;
      var idList = data._idList;
      var nameDimIdx = data._nameDimIdx;
      var idDimIdx = data._idDimIdx;
      var name = nameList[idx];
      var id = idList[idx];
      if (name == null && nameDimIdx != null) {
        nameList[idx] = name = getIdNameFromStore(data, nameDimIdx, idx);
      }
      if (id == null && idDimIdx != null) {
        idList[idx] = id = getIdNameFromStore(data, idDimIdx, idx);
      }
      if (id == null && name != null) {
        var nameRepeatCount = data._nameRepeatCount;
        var nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1;
        id = name;
        if (nmCnt > 1) {
          id += '__ec__' + nmCnt;
        }
        idList[idx] = id;
      }
    };
  }();
  return SeriesData;
}();
/* harmony default export */ var data_SeriesData = (SeriesData_SeriesData);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/createDimensions.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








/**
 * For outside usage compat (like echarts-gl are using it).
 */
function createDimensions(source, opt) {
  return prepareSeriesDataSchema(source, opt).dimensions;
}
/**
 * This method builds the relationship between:
 * + "what the coord sys or series requires (see `coordDimensions`)",
 * + "what the user defines (in `encode` and `dimensions`, see `opt.dimensionsDefine` and `opt.encodeDefine`)"
 * + "what the data source provids (see `source`)".
 *
 * Some guess strategy will be adapted if user does not define something.
 * If no 'value' dimension specified, the first no-named dimension will be
 * named as 'value'.
 *
 * @return The results are always sorted by `storeDimIndex` asc.
 */
function prepareSeriesDataSchema(
// TODO: TYPE completeDimensions type
source, opt) {
  if (!isSourceInstance(source)) {
    source = createSourceFromSeriesDataOption(source);
  }
  opt = opt || {};
  var sysDims = opt.coordDimensions || [];
  var dimsDef = opt.dimensionsDefine || source.dimensionsDefine || [];
  var coordDimNameMap = Object(util["createHashMap"])();
  var resultList = [];
  var dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount);
  // Try to ignore unused dimensions if sharing a high dimension datastore
  // 30 is an experience value.
  var omitUnusedDimensions = opt.canOmitUnusedDimensions && shouldOmitUnusedDimensions(dimCount);
  var isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine;
  var dataDimNameMap = isUsingSourceDimensionsDef ? ensureSourceDimNameMap(source) : createDimNameMap(dimsDef);
  var encodeDef = opt.encodeDefine;
  if (!encodeDef && opt.encodeDefaulter) {
    encodeDef = opt.encodeDefaulter(source, dimCount);
  }
  var encodeDefMap = Object(util["createHashMap"])(encodeDef);
  var indicesMap = new CtorInt32Array(dimCount);
  for (var i = 0; i < indicesMap.length; i++) {
    indicesMap[i] = -1;
  }
  function getResultItem(dimIdx) {
    var idx = indicesMap[dimIdx];
    if (idx < 0) {
      var dimDefItemRaw = dimsDef[dimIdx];
      var dimDefItem = Object(util["isObject"])(dimDefItemRaw) ? dimDefItemRaw : {
        name: dimDefItemRaw
      };
      var resultItem = new data_SeriesDimensionDefine();
      var userDimName = dimDefItem.name;
      if (userDimName != null && dataDimNameMap.get(userDimName) != null) {
        // Only if `series.dimensions` is defined in option
        // displayName, will be set, and dimension will be displayed vertically in
        // tooltip by default.
        resultItem.name = resultItem.displayName = userDimName;
      }
      dimDefItem.type != null && (resultItem.type = dimDefItem.type);
      dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName);
      var newIdx = resultList.length;
      indicesMap[dimIdx] = newIdx;
      resultItem.storeDimIndex = dimIdx;
      resultList.push(resultItem);
      return resultItem;
    }
    return resultList[idx];
  }
  if (!omitUnusedDimensions) {
    for (var i = 0; i < dimCount; i++) {
      getResultItem(i);
    }
  }
  // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`.
  encodeDefMap.each(function (dataDimsRaw, coordDim) {
    var dataDims = normalizeToArray(dataDimsRaw).slice();
    // Note: It is allowed that `dataDims.length` is `0`, e.g., options is
    // `{encode: {x: -1, y: 1}}`. Should not filter anything in
    // this case.
    if (dataDims.length === 1 && !Object(util["isString"])(dataDims[0]) && dataDims[0] < 0) {
      encodeDefMap.set(coordDim, false);
      return;
    }
    var validDataDims = encodeDefMap.set(coordDim, []);
    Object(util["each"])(dataDims, function (resultDimIdxOrName, idx) {
      // The input resultDimIdx can be dim name or index.
      var resultDimIdx = Object(util["isString"])(resultDimIdxOrName) ? dataDimNameMap.get(resultDimIdxOrName) : resultDimIdxOrName;
      if (resultDimIdx != null && resultDimIdx < dimCount) {
        validDataDims[idx] = resultDimIdx;
        applyDim(getResultItem(resultDimIdx), coordDim, idx);
      }
    });
  });
  // Apply templates and default order from `sysDims`.
  var availDimIdx = 0;
  Object(util["each"])(sysDims, function (sysDimItemRaw) {
    var coordDim;
    var sysDimItemDimsDef;
    var sysDimItemOtherDims;
    var sysDimItem;
    if (Object(util["isString"])(sysDimItemRaw)) {
      coordDim = sysDimItemRaw;
      sysDimItem = {};
    } else {
      sysDimItem = sysDimItemRaw;
      coordDim = sysDimItem.name;
      var ordinalMeta = sysDimItem.ordinalMeta;
      sysDimItem.ordinalMeta = null;
      sysDimItem = Object(util["extend"])({}, sysDimItem);
      sysDimItem.ordinalMeta = ordinalMeta;
      // `coordDimIndex` should not be set directly.
      sysDimItemDimsDef = sysDimItem.dimsDef;
      sysDimItemOtherDims = sysDimItem.otherDims;
      sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex = sysDimItem.dimsDef = sysDimItem.otherDims = null;
    }
    var dataDims = encodeDefMap.get(coordDim);
    // negative resultDimIdx means no need to mapping.
    if (dataDims === false) {
      return;
    }
    dataDims = normalizeToArray(dataDims);
    // dimensions provides default dim sequences.
    if (!dataDims.length) {
      for (var i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) {
        while (availDimIdx < dimCount && getResultItem(availDimIdx).coordDim != null) {
          availDimIdx++;
        }
        availDimIdx < dimCount && dataDims.push(availDimIdx++);
      }
    }
    // Apply templates.
    Object(util["each"])(dataDims, function (resultDimIdx, coordDimIndex) {
      var resultItem = getResultItem(resultDimIdx);
      // Coordinate system has a higher priority on dim type than source.
      if (isUsingSourceDimensionsDef && sysDimItem.type != null) {
        resultItem.type = sysDimItem.type;
      }
      applyDim(Object(util["defaults"])(resultItem, sysDimItem), coordDim, coordDimIndex);
      if (resultItem.name == null && sysDimItemDimsDef) {
        var sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex];
        !Object(util["isObject"])(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {
          name: sysDimItemDimsDefItem
        });
        resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name;
        resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip;
      }
      // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}}
      sysDimItemOtherDims && Object(util["defaults"])(resultItem.otherDims, sysDimItemOtherDims);
    });
  });
  function applyDim(resultItem, coordDim, coordDimIndex) {
    if (VISUAL_DIMENSIONS.get(coordDim) != null) {
      resultItem.otherDims[coordDim] = coordDimIndex;
    } else {
      resultItem.coordDim = coordDim;
      resultItem.coordDimIndex = coordDimIndex;
      coordDimNameMap.set(coordDim, true);
    }
  }
  // Make sure the first extra dim is 'value'.
  var generateCoord = opt.generateCoord;
  var generateCoordCount = opt.generateCoordCount;
  var fromZero = generateCoordCount != null;
  generateCoordCount = generateCoord ? generateCoordCount || 1 : 0;
  var extra = generateCoord || 'value';
  function ifNoNameFillWithCoordName(resultItem) {
    if (resultItem.name == null) {
      // Duplication will be removed in the next step.
      resultItem.name = resultItem.coordDim;
    }
  }
  // Set dim `name` and other `coordDim` and other props.
  if (!omitUnusedDimensions) {
    for (var resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) {
      var resultItem = getResultItem(resultDimIdx);
      var coordDim = resultItem.coordDim;
      if (coordDim == null) {
        // TODO no need to generate coordDim for isExtraCoord?
        resultItem.coordDim = genCoordDimName(extra, coordDimNameMap, fromZero);
        resultItem.coordDimIndex = 0;
        // Series specified generateCoord is using out.
        if (!generateCoord || generateCoordCount <= 0) {
          resultItem.isExtraCoord = true;
        }
        generateCoordCount--;
      }
      ifNoNameFillWithCoordName(resultItem);
      if (resultItem.type == null && (guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must
      // Consider the case:
      // {
      //    dataset: {source: [
      //        ['2001', 123],
      //        ['2002', 456],
      //        ...
      //        ['The others', 987],
      //    ]},
      //    series: {type: 'pie'}
      // }
      // The first column should better be treated as a "ordinal" although it
      // might not be detected as an "ordinal" by `guessOrdinal`.
      || resultItem.isExtraCoord && (resultItem.otherDims.itemName != null || resultItem.otherDims.seriesName != null))) {
        resultItem.type = 'ordinal';
      }
    }
  } else {
    Object(util["each"])(resultList, function (resultItem) {
      // PENDING: guessOrdinal or let user specify type: 'ordinal' manually?
      ifNoNameFillWithCoordName(resultItem);
    });
    // Sort dimensions: there are some rule that use the last dim as label,
    // and for some latter travel process easier.
    resultList.sort(function (item0, item1) {
      return item0.storeDimIndex - item1.storeDimIndex;
    });
  }
  removeDuplication(resultList);
  return new SeriesDataSchema_SeriesDataSchema({
    source: source,
    dimensions: resultList,
    fullDimensionCount: dimCount,
    dimensionOmitted: omitUnusedDimensions
  });
}
function removeDuplication(result) {
  var duplicationMap = Object(util["createHashMap"])();
  for (var i = 0; i < result.length; i++) {
    var dim = result[i];
    var dimOriginalName = dim.name;
    var count = duplicationMap.get(dimOriginalName) || 0;
    if (count > 0) {
      // Starts from 0.
      dim.name = dimOriginalName + (count - 1);
    }
    count++;
    duplicationMap.set(dimOriginalName, count);
  }
}
// ??? TODO
// Originally detect dimCount by data[0]. Should we
// optimize it to only by sysDims and dimensions and encode.
// So only necessary dims will be initialized.
// But
// (1) custom series should be considered. where other dims
// may be visited.
// (2) sometimes user need to calculate bubble size or use visualMap
// on other dimensions besides coordSys needed.
// So, dims that is not used by system, should be shared in data store?
function getDimCount(source, sysDims, dimsDef, optDimCount) {
  // Note that the result dimCount should not small than columns count
  // of data, otherwise `dataDimNameMap` checking will be incorrect.
  var dimCount = Math.max(source.dimensionsDetectedCount || 1, sysDims.length, dimsDef.length, optDimCount || 0);
  Object(util["each"])(sysDims, function (sysDimItem) {
    var sysDimItemDimsDef;
    if (Object(util["isObject"])(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) {
      dimCount = Math.max(dimCount, sysDimItemDimsDef.length);
    }
  });
  return dimCount;
}
function genCoordDimName(name, map, fromZero) {
  if (fromZero || map.hasKey(name)) {
    var i = 0;
    while (map.hasKey(name + i)) {
      i++;
    }
    name += i;
  }
  map.set(name, true);
  return name;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/model/referHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Helper for model references.
 * There are many manners to refer axis/coordSys.
 */
// TODO
// merge relevant logic to this file?
// check: "modelHelper" of tooltip and "BrushTargetManager".


/**
 * @class
 * For example:
 * {
 *     coordSysName: 'cartesian2d',
 *     coordSysDims: ['x', 'y', ...],
 *     axisMap: HashMap({
 *         x: xAxisModel,
 *         y: yAxisModel
 *     }),
 *     categoryAxisMap: HashMap({
 *         x: xAxisModel,
 *         y: undefined
 *     }),
 *     // The index of the first category axis in `coordSysDims`.
 *     // `null/undefined` means no category axis exists.
 *     firstCategoryDimIndex: 1,
 *     // To replace user specified encode.
 * }
 */
var referHelper_CoordSysInfo = /** @class */function () {
  function CoordSysInfo(coordSysName) {
    this.coordSysDims = [];
    this.axisMap = Object(util["createHashMap"])();
    this.categoryAxisMap = Object(util["createHashMap"])();
    this.coordSysName = coordSysName;
  }
  return CoordSysInfo;
}();
function getCoordSysInfoBySeries(seriesModel) {
  var coordSysName = seriesModel.get('coordinateSystem');
  var result = new referHelper_CoordSysInfo(coordSysName);
  var fetch = fetchers[coordSysName];
  if (fetch) {
    fetch(seriesModel, result, result.axisMap, result.categoryAxisMap);
    return result;
  }
}
var fetchers = {
  cartesian2d: function (seriesModel, result, axisMap, categoryAxisMap) {
    var xAxisModel = seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0];
    var yAxisModel = seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0];
    if (false) {}
    result.coordSysDims = ['x', 'y'];
    axisMap.set('x', xAxisModel);
    axisMap.set('y', yAxisModel);
    if (referHelper_isCategory(xAxisModel)) {
      categoryAxisMap.set('x', xAxisModel);
      result.firstCategoryDimIndex = 0;
    }
    if (referHelper_isCategory(yAxisModel)) {
      categoryAxisMap.set('y', yAxisModel);
      result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);
    }
  },
  singleAxis: function (seriesModel, result, axisMap, categoryAxisMap) {
    var singleAxisModel = seriesModel.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];
    if (false) {}
    result.coordSysDims = ['single'];
    axisMap.set('single', singleAxisModel);
    if (referHelper_isCategory(singleAxisModel)) {
      categoryAxisMap.set('single', singleAxisModel);
      result.firstCategoryDimIndex = 0;
    }
  },
  polar: function (seriesModel, result, axisMap, categoryAxisMap) {
    var polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0];
    var radiusAxisModel = polarModel.findAxisModel('radiusAxis');
    var angleAxisModel = polarModel.findAxisModel('angleAxis');
    if (false) {}
    result.coordSysDims = ['radius', 'angle'];
    axisMap.set('radius', radiusAxisModel);
    axisMap.set('angle', angleAxisModel);
    if (referHelper_isCategory(radiusAxisModel)) {
      categoryAxisMap.set('radius', radiusAxisModel);
      result.firstCategoryDimIndex = 0;
    }
    if (referHelper_isCategory(angleAxisModel)) {
      categoryAxisMap.set('angle', angleAxisModel);
      result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);
    }
  },
  geo: function (seriesModel, result, axisMap, categoryAxisMap) {
    result.coordSysDims = ['lng', 'lat'];
  },
  parallel: function (seriesModel, result, axisMap, categoryAxisMap) {
    var ecModel = seriesModel.ecModel;
    var parallelModel = ecModel.getComponent('parallel', seriesModel.get('parallelIndex'));
    var coordSysDims = result.coordSysDims = parallelModel.dimensions.slice();
    Object(util["each"])(parallelModel.parallelAxisIndex, function (axisIndex, index) {
      var axisModel = ecModel.getComponent('parallelAxis', axisIndex);
      var axisDim = coordSysDims[index];
      axisMap.set(axisDim, axisModel);
      if (referHelper_isCategory(axisModel)) {
        categoryAxisMap.set(axisDim, axisModel);
        if (result.firstCategoryDimIndex == null) {
          result.firstCategoryDimIndex = index;
        }
      }
    });
  }
};
function referHelper_isCategory(axisModel) {
  return axisModel.get('type') === 'category';
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/dataStackHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * Note that it is too complicated to support 3d stack by value
 * (have to create two-dimension inverted index), so in 3d case
 * we just support that stacked by index.
 *
 * @param seriesModel
 * @param dimensionsInput The same as the input of <module:echarts/data/SeriesData>.
 *        The input will be modified.
 * @param opt
 * @param opt.stackedCoordDimension Specify a coord dimension if needed.
 * @param opt.byIndex=false
 * @return calculationInfo
 * {
 *     stackedDimension: string
 *     stackedByDimension: string
 *     isStackedByIndex: boolean
 *     stackedOverDimension: string
 *     stackResultDimension: string
 * }
 */
function enableDataStack(seriesModel, dimensionsInput, opt) {
  opt = opt || {};
  var byIndex = opt.byIndex;
  var stackedCoordDimension = opt.stackedCoordDimension;
  var dimensionDefineList;
  var schema;
  var store;
  if (isLegacyDimensionsInput(dimensionsInput)) {
    dimensionDefineList = dimensionsInput;
  } else {
    schema = dimensionsInput.schema;
    dimensionDefineList = schema.dimensions;
    store = dimensionsInput.store;
  }
  // Compatibal: when `stack` is set as '', do not stack.
  var mayStack = !!(seriesModel && seriesModel.get('stack'));
  var stackedByDimInfo;
  var stackedDimInfo;
  var stackResultDimension;
  var stackedOverDimension;
  Object(util["each"])(dimensionDefineList, function (dimensionInfo, index) {
    if (Object(util["isString"])(dimensionInfo)) {
      dimensionDefineList[index] = dimensionInfo = {
        name: dimensionInfo
      };
    }
    if (mayStack && !dimensionInfo.isExtraCoord) {
      // Find the first ordinal dimension as the stackedByDimInfo.
      if (!byIndex && !stackedByDimInfo && dimensionInfo.ordinalMeta) {
        stackedByDimInfo = dimensionInfo;
      }
      // Find the first stackable dimension as the stackedDimInfo.
      if (!stackedDimInfo && dimensionInfo.type !== 'ordinal' && dimensionInfo.type !== 'time' && (!stackedCoordDimension || stackedCoordDimension === dimensionInfo.coordDim)) {
        stackedDimInfo = dimensionInfo;
      }
    }
  });
  if (stackedDimInfo && !byIndex && !stackedByDimInfo) {
    // Compatible with previous design, value axis (time axis) only stack by index.
    // It may make sense if the user provides elaborately constructed data.
    byIndex = true;
  }
  // Add stack dimension, they can be both calculated by coordinate system in `unionExtent`.
  // That put stack logic in List is for using conveniently in echarts extensions, but it
  // might not be a good way.
  if (stackedDimInfo) {
    // Use a weird name that not duplicated with other names.
    // Also need to use seriesModel.id as postfix because different
    // series may share same data store. The stack dimension needs to be distinguished.
    stackResultDimension = '__\0ecstackresult_' + seriesModel.id;
    stackedOverDimension = '__\0ecstackedover_' + seriesModel.id;
    // Create inverted index to fast query index by value.
    if (stackedByDimInfo) {
      stackedByDimInfo.createInvertedIndices = true;
    }
    var stackedDimCoordDim_1 = stackedDimInfo.coordDim;
    var stackedDimType = stackedDimInfo.type;
    var stackedDimCoordIndex_1 = 0;
    Object(util["each"])(dimensionDefineList, function (dimensionInfo) {
      if (dimensionInfo.coordDim === stackedDimCoordDim_1) {
        stackedDimCoordIndex_1++;
      }
    });
    var stackedOverDimensionDefine = {
      name: stackResultDimension,
      coordDim: stackedDimCoordDim_1,
      coordDimIndex: stackedDimCoordIndex_1,
      type: stackedDimType,
      isExtraCoord: true,
      isCalculationCoord: true,
      storeDimIndex: dimensionDefineList.length
    };
    var stackResultDimensionDefine = {
      name: stackedOverDimension,
      // This dimension contains stack base (generally, 0), so do not set it as
      // `stackedDimCoordDim` to avoid extent calculation, consider log scale.
      coordDim: stackedOverDimension,
      coordDimIndex: stackedDimCoordIndex_1 + 1,
      type: stackedDimType,
      isExtraCoord: true,
      isCalculationCoord: true,
      storeDimIndex: dimensionDefineList.length + 1
    };
    if (schema) {
      if (store) {
        stackedOverDimensionDefine.storeDimIndex = store.ensureCalculationDimension(stackedOverDimension, stackedDimType);
        stackResultDimensionDefine.storeDimIndex = store.ensureCalculationDimension(stackResultDimension, stackedDimType);
      }
      schema.appendCalculationDimension(stackedOverDimensionDefine);
      schema.appendCalculationDimension(stackResultDimensionDefine);
    } else {
      dimensionDefineList.push(stackedOverDimensionDefine);
      dimensionDefineList.push(stackResultDimensionDefine);
    }
  }
  return {
    stackedDimension: stackedDimInfo && stackedDimInfo.name,
    stackedByDimension: stackedByDimInfo && stackedByDimInfo.name,
    isStackedByIndex: byIndex,
    stackedOverDimension: stackedOverDimension,
    stackResultDimension: stackResultDimension
  };
}
function isLegacyDimensionsInput(dimensionsInput) {
  return !isSeriesDataSchema(dimensionsInput.schema);
}
function isDimensionStacked(data, stackedDim) {
  // Each single series only maps to one pair of axis. So we do not need to
  // check stackByDim, whatever stacked by a dimension or stacked by index.
  return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension');
}
function getStackedDimension(data, targetDim) {
  return isDimensionStacked(data, targetDim) ? data.getCalculationInfo('stackResultDimension') : targetDim;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createSeriesData.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/











function getCoordSysDimDefs(seriesModel, coordSysInfo) {
  var coordSysName = seriesModel.get('coordinateSystem');
  var registeredCoordSys = CoordinateSystem.get(coordSysName);
  var coordSysDimDefs;
  if (coordSysInfo && coordSysInfo.coordSysDims) {
    coordSysDimDefs = util["map"](coordSysInfo.coordSysDims, function (dim) {
      var dimInfo = {
        name: dim
      };
      var axisModel = coordSysInfo.axisMap.get(dim);
      if (axisModel) {
        var axisType = axisModel.get('type');
        dimInfo.type = getDimensionTypeByAxis(axisType);
      }
      return dimInfo;
    });
  }
  if (!coordSysDimDefs) {
    // Get dimensions from registered coordinate system
    coordSysDimDefs = registeredCoordSys && (registeredCoordSys.getDimensionsInfo ? registeredCoordSys.getDimensionsInfo() : registeredCoordSys.dimensions.slice()) || ['x', 'y'];
  }
  return coordSysDimDefs;
}
function injectOrdinalMeta(dimInfoList, createInvertedIndices, coordSysInfo) {
  var firstCategoryDimIndex;
  var hasNameEncode;
  coordSysInfo && util["each"](dimInfoList, function (dimInfo, dimIndex) {
    var coordDim = dimInfo.coordDim;
    var categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim);
    if (categoryAxisModel) {
      if (firstCategoryDimIndex == null) {
        firstCategoryDimIndex = dimIndex;
      }
      dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta();
      if (createInvertedIndices) {
        dimInfo.createInvertedIndices = true;
      }
    }
    if (dimInfo.otherDims.itemName != null) {
      hasNameEncode = true;
    }
  });
  if (!hasNameEncode && firstCategoryDimIndex != null) {
    dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0;
  }
  return firstCategoryDimIndex;
}
/**
 * Caution: there are side effects to `sourceManager` in this method.
 * Should better only be called in `Series['getInitialData']`.
 */
function createSeriesData(sourceRaw, seriesModel, opt) {
  opt = opt || {};
  var sourceManager = seriesModel.getSourceManager();
  var source;
  var isOriginalSource = false;
  if (sourceRaw) {
    isOriginalSource = true;
    source = createSourceFromSeriesDataOption(sourceRaw);
  } else {
    source = sourceManager.getSource();
    // Is series.data. not dataset.
    isOriginalSource = source.sourceFormat === SOURCE_FORMAT_ORIGINAL;
  }
  var coordSysInfo = getCoordSysInfoBySeries(seriesModel);
  var coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo);
  var useEncodeDefaulter = opt.useEncodeDefaulter;
  var encodeDefaulter = util["isFunction"](useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? util["curry"](makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) : null;
  var createDimensionOptions = {
    coordDimensions: coordSysDimDefs,
    generateCoord: opt.generateCoord,
    encodeDefine: seriesModel.getEncode(),
    encodeDefaulter: encodeDefaulter,
    canOmitUnusedDimensions: !isOriginalSource
  };
  var schema = prepareSeriesDataSchema(source, createDimensionOptions);
  var firstCategoryDimIndex = injectOrdinalMeta(schema.dimensions, opt.createInvertedIndices, coordSysInfo);
  var store = !isOriginalSource ? sourceManager.getSharedDataStore(schema) : null;
  var stackCalculationInfo = enableDataStack(seriesModel, {
    schema: schema,
    store: store
  });
  var data = new data_SeriesData(schema, seriesModel);
  data.setCalculationInfo(stackCalculationInfo);
  var dimValueGetter = firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source) ? function (itemOpt, dimName, dataIndex, dimIndex) {
    // Use dataIndex as ordinal value in categoryAxis
    return dimIndex === firstCategoryDimIndex ? dataIndex : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex);
  } : null;
  data.hasItemOption = false;
  data.initData(
  // Try to reuse the data store in sourceManager if using dataset.
  isOriginalSource ? source : store, null, dimValueGetter);
  return data;
}
function isNeedCompleteOrdinalData(source) {
  if (source.sourceFormat === SOURCE_FORMAT_ORIGINAL) {
    var sampleItem = firstDataNotNull(source.data || []);
    return !util["isArray"](getDataItemValue(sampleItem));
  }
}
function firstDataNotNull(arr) {
  var i = 0;
  while (i < arr.length && arr[i] == null) {
    i++;
  }
  return arr[i];
}
/* harmony default export */ var helper_createSeriesData = (createSeriesData);
// CONCATENATED MODULE: ./node_modules/echarts/lib/scale/Scale.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var Scale = /** @class */function () {
  function Scale(setting) {
    this._setting = setting || {};
    this._extent = [Infinity, -Infinity];
  }
  Scale.prototype.getSetting = function (name) {
    return this._setting[name];
  };
  /**
   * Set extent from data
   */
  Scale.prototype.unionExtent = function (other) {
    var extent = this._extent;
    other[0] < extent[0] && (extent[0] = other[0]);
    other[1] > extent[1] && (extent[1] = other[1]);
    // not setExtent because in log axis it may transformed to power
    // this.setExtent(extent[0], extent[1]);
  };
  /**
   * Set extent from data
   */
  Scale.prototype.unionExtentFromData = function (data, dim) {
    this.unionExtent(data.getApproximateExtent(dim));
  };
  /**
   * Get extent
   *
   * Extent is always in increase order.
   */
  Scale.prototype.getExtent = function () {
    return this._extent.slice();
  };
  /**
   * Set extent
   */
  Scale.prototype.setExtent = function (start, end) {
    var thisExtent = this._extent;
    if (!isNaN(start)) {
      thisExtent[0] = start;
    }
    if (!isNaN(end)) {
      thisExtent[1] = end;
    }
  };
  /**
   * If value is in extent range
   */
  Scale.prototype.isInExtentRange = function (value) {
    return this._extent[0] <= value && this._extent[1] >= value;
  };
  /**
   * When axis extent depends on data and no data exists,
   * axis ticks should not be drawn, which is named 'blank'.
   */
  Scale.prototype.isBlank = function () {
    return this._isBlank;
  };
  /**
   * When axis extent depends on data and no data exists,
   * axis ticks should not be drawn, which is named 'blank'.
   */
  Scale.prototype.setBlank = function (isBlank) {
    this._isBlank = isBlank;
  };
  return Scale;
}();
enableClassManagement(Scale);
/* harmony default export */ var scale_Scale = (Scale);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/OrdinalMeta.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var uidBase = 0;
var OrdinalMeta_OrdinalMeta = /** @class */function () {
  function OrdinalMeta(opt) {
    this.categories = opt.categories || [];
    this._needCollect = opt.needCollect;
    this._deduplication = opt.deduplication;
    this.uid = ++uidBase;
  }
  OrdinalMeta.createByAxisModel = function (axisModel) {
    var option = axisModel.option;
    var data = option.data;
    var categories = data && Object(util["map"])(data, getName);
    return new OrdinalMeta({
      categories: categories,
      needCollect: !categories,
      // deduplication is default in axis.
      deduplication: option.dedplication !== false
    });
  };
  ;
  OrdinalMeta.prototype.getOrdinal = function (category) {
    // @ts-ignore
    return this._getOrCreateMap().get(category);
  };
  /**
   * @return The ordinal. If not found, return NaN.
   */
  OrdinalMeta.prototype.parseAndCollect = function (category) {
    var index;
    var needCollect = this._needCollect;
    // The value of category dim can be the index of the given category set.
    // This feature is only supported when !needCollect, because we should
    // consider a common case: a value is 2017, which is a number but is
    // expected to be tread as a category. This case usually happen in dataset,
    // where it happent to be no need of the index feature.
    if (!Object(util["isString"])(category) && !needCollect) {
      return category;
    }
    // Optimize for the scenario:
    // category is ['2012-01-01', '2012-01-02', ...], where the input
    // data has been ensured not duplicate and is large data.
    // Notice, if a dataset dimension provide categroies, usually echarts
    // should remove duplication except user tell echarts dont do that
    // (set axis.deduplication = false), because echarts do not know whether
    // the values in the category dimension has duplication (consider the
    // parallel-aqi example)
    if (needCollect && !this._deduplication) {
      index = this.categories.length;
      this.categories[index] = category;
      return index;
    }
    var map = this._getOrCreateMap();
    // @ts-ignore
    index = map.get(category);
    if (index == null) {
      if (needCollect) {
        index = this.categories.length;
        this.categories[index] = category;
        // @ts-ignore
        map.set(category, index);
      } else {
        index = NaN;
      }
    }
    return index;
  };
  // Consider big data, do not create map until needed.
  OrdinalMeta.prototype._getOrCreateMap = function () {
    return this._map || (this._map = Object(util["createHashMap"])(this.categories));
  };
  return OrdinalMeta;
}();
function getName(obj) {
  if (Object(util["isObject"])(obj) && obj.value != null) {
    return obj.value;
  } else {
    return obj + '';
  }
}
/* harmony default export */ var data_OrdinalMeta = (OrdinalMeta_OrdinalMeta);
// CONCATENATED MODULE: ./node_modules/echarts/lib/scale/helper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function isValueNice(val) {
  var exp10 = Math.pow(10, quantityExponent(Math.abs(val)));
  var f = Math.abs(val / exp10);
  return f === 0 || f === 1 || f === 2 || f === 3 || f === 5;
}
function isIntervalOrLogScale(scale) {
  return scale.type === 'interval' || scale.type === 'log';
}
/**
 * @param extent Both extent[0] and extent[1] should be valid number.
 *               Should be extent[0] < extent[1].
 * @param splitNumber splitNumber should be >= 1.
 */
function intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval) {
  var result = {};
  var span = extent[1] - extent[0];
  var interval = result.interval = nice(span / splitNumber, true);
  if (minInterval != null && interval < minInterval) {
    interval = result.interval = minInterval;
  }
  if (maxInterval != null && interval > maxInterval) {
    interval = result.interval = maxInterval;
  }
  // Tow more digital for tick.
  var precision = result.intervalPrecision = getIntervalPrecision(interval);
  // Niced extent inside original extent
  var niceTickExtent = result.niceTickExtent = [round(Math.ceil(extent[0] / interval) * interval, precision), round(Math.floor(extent[1] / interval) * interval, precision)];
  fixExtent(niceTickExtent, extent);
  return result;
}
function increaseInterval(interval) {
  var exp10 = Math.pow(10, quantityExponent(interval));
  // Increase interval
  var f = interval / exp10;
  if (!f) {
    f = 1;
  } else if (f === 2) {
    f = 3;
  } else if (f === 3) {
    f = 5;
  } else {
    // f is 1 or 5
    f *= 2;
  }
  return round(f * exp10);
}
/**
 * @return interval precision
 */
function getIntervalPrecision(interval) {
  // Tow more digital for tick.
  return getPrecision(interval) + 2;
}
function helper_clamp(niceTickExtent, idx, extent) {
  niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]);
}
// In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent.
function fixExtent(niceTickExtent, extent) {
  !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]);
  !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]);
  helper_clamp(niceTickExtent, 0, extent);
  helper_clamp(niceTickExtent, 1, extent);
  if (niceTickExtent[0] > niceTickExtent[1]) {
    niceTickExtent[0] = niceTickExtent[1];
  }
}
function helper_contain(val, extent) {
  return val >= extent[0] && val <= extent[1];
}
function helper_normalize(val, extent) {
  if (extent[1] === extent[0]) {
    return 0.5;
  }
  return (val - extent[0]) / (extent[1] - extent[0]);
}
function helper_scale(val, extent) {
  return val * (extent[1] - extent[0]) + extent[0];
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/scale/Ordinal.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * Linear continuous scale
 * http://en.wikipedia.org/wiki/Level_of_measurement
 */
// FIXME only one data




var Ordinal_OrdinalScale = /** @class */function (_super) {
  __extends(OrdinalScale, _super);
  function OrdinalScale(setting) {
    var _this = _super.call(this, setting) || this;
    _this.type = 'ordinal';
    var ordinalMeta = _this.getSetting('ordinalMeta');
    // Caution: Should not use instanceof, consider ec-extensions using
    // import approach to get OrdinalMeta class.
    if (!ordinalMeta) {
      ordinalMeta = new data_OrdinalMeta({});
    }
    if (Object(util["isArray"])(ordinalMeta)) {
      ordinalMeta = new data_OrdinalMeta({
        categories: Object(util["map"])(ordinalMeta, function (item) {
          return Object(util["isObject"])(item) ? item.value : item;
        })
      });
    }
    _this._ordinalMeta = ordinalMeta;
    _this._extent = _this.getSetting('extent') || [0, ordinalMeta.categories.length - 1];
    return _this;
  }
  OrdinalScale.prototype.parse = function (val) {
    // Caution: Math.round(null) will return `0` rather than `NaN`
    if (val == null) {
      return NaN;
    }
    return Object(util["isString"])(val) ? this._ordinalMeta.getOrdinal(val)
    // val might be float.
    : Math.round(val);
  };
  OrdinalScale.prototype.contain = function (rank) {
    rank = this.parse(rank);
    return helper_contain(rank, this._extent) && this._ordinalMeta.categories[rank] != null;
  };
  /**
   * Normalize given rank or name to linear [0, 1]
   * @param val raw ordinal number.
   * @return normalized value in [0, 1].
   */
  OrdinalScale.prototype.normalize = function (val) {
    val = this._getTickNumber(this.parse(val));
    return helper_normalize(val, this._extent);
  };
  /**
   * @param val normalized value in [0, 1].
   * @return raw ordinal number.
   */
  OrdinalScale.prototype.scale = function (val) {
    val = Math.round(helper_scale(val, this._extent));
    return this.getRawOrdinalNumber(val);
  };
  OrdinalScale.prototype.getTicks = function () {
    var ticks = [];
    var extent = this._extent;
    var rank = extent[0];
    while (rank <= extent[1]) {
      ticks.push({
        value: rank
      });
      rank++;
    }
    return ticks;
  };
  OrdinalScale.prototype.getMinorTicks = function (splitNumber) {
    // Not support.
    return;
  };
  /**
   * @see `Ordinal['_ordinalNumbersByTick']`
   */
  OrdinalScale.prototype.setSortInfo = function (info) {
    if (info == null) {
      this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;
      return;
    }
    var infoOrdinalNumbers = info.ordinalNumbers;
    var ordinalsByTick = this._ordinalNumbersByTick = [];
    var ticksByOrdinal = this._ticksByOrdinalNumber = [];
    // Unnecessary support negative tick in `realtimeSort`.
    var tickNum = 0;
    var allCategoryLen = this._ordinalMeta.categories.length;
    for (var len = Math.min(allCategoryLen, infoOrdinalNumbers.length); tickNum < len; ++tickNum) {
      var ordinalNumber = infoOrdinalNumbers[tickNum];
      ordinalsByTick[tickNum] = ordinalNumber;
      ticksByOrdinal[ordinalNumber] = tickNum;
    }
    // Handle that `series.data` only covers part of the `axis.category.data`.
    var unusedOrdinal = 0;
    for (; tickNum < allCategoryLen; ++tickNum) {
      while (ticksByOrdinal[unusedOrdinal] != null) {
        unusedOrdinal++;
      }
      ;
      ordinalsByTick.push(unusedOrdinal);
      ticksByOrdinal[unusedOrdinal] = tickNum;
    }
  };
  OrdinalScale.prototype._getTickNumber = function (ordinal) {
    var ticksByOrdinalNumber = this._ticksByOrdinalNumber;
    // also support ordinal out of range of `ordinalMeta.categories.length`,
    // where ordinal numbers are used as tick value directly.
    return ticksByOrdinalNumber && ordinal >= 0 && ordinal < ticksByOrdinalNumber.length ? ticksByOrdinalNumber[ordinal] : ordinal;
  };
  /**
   * @usage
   * ```js
   * const ordinalNumber = ordinalScale.getRawOrdinalNumber(tickVal);
   *
   * // case0
   * const rawOrdinalValue = axisModel.getCategories()[ordinalNumber];
   * // case1
   * const rawOrdinalValue = this._ordinalMeta.categories[ordinalNumber];
   * // case2
   * const coord = axis.dataToCoord(ordinalNumber);
   * ```
   *
   * @param {OrdinalNumber} tickNumber index of display
   */
  OrdinalScale.prototype.getRawOrdinalNumber = function (tickNumber) {
    var ordinalNumbersByTick = this._ordinalNumbersByTick;
    // tickNumber may be out of range, e.g., when axis max is larger than `ordinalMeta.categories.length`.,
    // where ordinal numbers are used as tick value directly.
    return ordinalNumbersByTick && tickNumber >= 0 && tickNumber < ordinalNumbersByTick.length ? ordinalNumbersByTick[tickNumber] : tickNumber;
  };
  /**
   * Get item on tick
   */
  OrdinalScale.prototype.getLabel = function (tick) {
    if (!this.isBlank()) {
      var ordinalNumber = this.getRawOrdinalNumber(tick.value);
      var cateogry = this._ordinalMeta.categories[ordinalNumber];
      // Note that if no data, ordinalMeta.categories is an empty array.
      // Return empty if it's not exist.
      return cateogry == null ? '' : cateogry + '';
    }
  };
  OrdinalScale.prototype.count = function () {
    return this._extent[1] - this._extent[0] + 1;
  };
  OrdinalScale.prototype.unionExtentFromData = function (data, dim) {
    this.unionExtent(data.getApproximateExtent(dim));
  };
  /**
   * @override
   * If value is in extent range
   */
  OrdinalScale.prototype.isInExtentRange = function (value) {
    value = this._getTickNumber(value);
    return this._extent[0] <= value && this._extent[1] >= value;
  };
  OrdinalScale.prototype.getOrdinalMeta = function () {
    return this._ordinalMeta;
  };
  OrdinalScale.prototype.calcNiceTicks = function () {};
  OrdinalScale.prototype.calcNiceExtent = function () {};
  OrdinalScale.type = 'ordinal';
  return OrdinalScale;
}(scale_Scale);
scale_Scale.registerClass(Ordinal_OrdinalScale);
/* harmony default export */ var Ordinal = (Ordinal_OrdinalScale);
// CONCATENATED MODULE: ./node_modules/echarts/lib/scale/Interval.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var roundNumber = round;
var Interval_IntervalScale = /** @class */function (_super) {
  __extends(IntervalScale, _super);
  function IntervalScale() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = 'interval';
    // Step is calculated in adjustExtent.
    _this._interval = 0;
    _this._intervalPrecision = 2;
    return _this;
  }
  IntervalScale.prototype.parse = function (val) {
    return val;
  };
  IntervalScale.prototype.contain = function (val) {
    return helper_contain(val, this._extent);
  };
  IntervalScale.prototype.normalize = function (val) {
    return helper_normalize(val, this._extent);
  };
  IntervalScale.prototype.scale = function (val) {
    return helper_scale(val, this._extent);
  };
  IntervalScale.prototype.setExtent = function (start, end) {
    var thisExtent = this._extent;
    // start,end may be a Number like '25',so...
    if (!isNaN(start)) {
      thisExtent[0] = parseFloat(start);
    }
    if (!isNaN(end)) {
      thisExtent[1] = parseFloat(end);
    }
  };
  IntervalScale.prototype.unionExtent = function (other) {
    var extent = this._extent;
    other[0] < extent[0] && (extent[0] = other[0]);
    other[1] > extent[1] && (extent[1] = other[1]);
    // unionExtent may called by it's sub classes
    this.setExtent(extent[0], extent[1]);
  };
  IntervalScale.prototype.getInterval = function () {
    return this._interval;
  };
  IntervalScale.prototype.setInterval = function (interval) {
    this._interval = interval;
    // Dropped auto calculated niceExtent and use user-set extent.
    // We assume user wants to set both interval, min, max to get a better result.
    this._niceExtent = this._extent.slice();
    this._intervalPrecision = getIntervalPrecision(interval);
  };
  /**
   * @param expandToNicedExtent Whether expand the ticks to niced extent.
   */
  IntervalScale.prototype.getTicks = function (expandToNicedExtent) {
    var interval = this._interval;
    var extent = this._extent;
    var niceTickExtent = this._niceExtent;
    var intervalPrecision = this._intervalPrecision;
    var ticks = [];
    // If interval is 0, return [];
    if (!interval) {
      return ticks;
    }
    // Consider this case: using dataZoom toolbox, zoom and zoom.
    var safeLimit = 10000;
    if (extent[0] < niceTickExtent[0]) {
      if (expandToNicedExtent) {
        ticks.push({
          value: roundNumber(niceTickExtent[0] - interval, intervalPrecision)
        });
      } else {
        ticks.push({
          value: extent[0]
        });
      }
    }
    var tick = niceTickExtent[0];
    while (tick <= niceTickExtent[1]) {
      ticks.push({
        value: tick
      });
      // Avoid rounding error
      tick = roundNumber(tick + interval, intervalPrecision);
      if (tick === ticks[ticks.length - 1].value) {
        // Consider out of safe float point, e.g.,
        // -3711126.9907707 + 2e-10 === -3711126.9907707
        break;
      }
      if (ticks.length > safeLimit) {
        return [];
      }
    }
    // Consider this case: the last item of ticks is smaller
    // than niceTickExtent[1] and niceTickExtent[1] === extent[1].
    var lastNiceTick = ticks.length ? ticks[ticks.length - 1].value : niceTickExtent[1];
    if (extent[1] > lastNiceTick) {
      if (expandToNicedExtent) {
        ticks.push({
          value: roundNumber(lastNiceTick + interval, intervalPrecision)
        });
      } else {
        ticks.push({
          value: extent[1]
        });
      }
    }
    return ticks;
  };
  IntervalScale.prototype.getMinorTicks = function (splitNumber) {
    var ticks = this.getTicks(true);
    var minorTicks = [];
    var extent = this.getExtent();
    for (var i = 1; i < ticks.length; i++) {
      var nextTick = ticks[i];
      var prevTick = ticks[i - 1];
      var count = 0;
      var minorTicksGroup = [];
      var interval = nextTick.value - prevTick.value;
      var minorInterval = interval / splitNumber;
      while (count < splitNumber - 1) {
        var minorTick = roundNumber(prevTick.value + (count + 1) * minorInterval);
        // For the first and last interval. The count may be less than splitNumber.
        if (minorTick > extent[0] && minorTick < extent[1]) {
          minorTicksGroup.push(minorTick);
        }
        count++;
      }
      minorTicks.push(minorTicksGroup);
    }
    return minorTicks;
  };
  /**
   * @param opt.precision If 'auto', use nice presision.
   * @param opt.pad returns 1.50 but not 1.5 if precision is 2.
   */
  IntervalScale.prototype.getLabel = function (data, opt) {
    if (data == null) {
      return '';
    }
    var precision = opt && opt.precision;
    if (precision == null) {
      precision = getPrecision(data.value) || 0;
    } else if (precision === 'auto') {
      // Should be more precise then tick.
      precision = this._intervalPrecision;
    }
    // (1) If `precision` is set, 12.005 should be display as '12.00500'.
    // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'.
    var dataNum = roundNumber(data.value, precision, true);
    return addCommas(dataNum);
  };
  /**
   * @param splitNumber By default `5`.
   */
  IntervalScale.prototype.calcNiceTicks = function (splitNumber, minInterval, maxInterval) {
    splitNumber = splitNumber || 5;
    var extent = this._extent;
    var span = extent[1] - extent[0];
    if (!isFinite(span)) {
      return;
    }
    // User may set axis min 0 and data are all negative
    // FIXME If it needs to reverse ?
    if (span < 0) {
      span = -span;
      extent.reverse();
    }
    var result = intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval);
    this._intervalPrecision = result.intervalPrecision;
    this._interval = result.interval;
    this._niceExtent = result.niceTickExtent;
  };
  IntervalScale.prototype.calcNiceExtent = function (opt) {
    var extent = this._extent;
    // If extent start and end are same, expand them
    if (extent[0] === extent[1]) {
      if (extent[0] !== 0) {
        // Expand extent
        // Note that extents can be both negative. See #13154
        var expandSize = Math.abs(extent[0]);
        // In the fowllowing case
        //      Axis has been fixed max 100
        //      Plus data are all 100 and axis extent are [100, 100].
        // Extend to the both side will cause expanded max is larger than fixed max.
        // So only expand to the smaller side.
        if (!opt.fixMax) {
          extent[1] += expandSize / 2;
          extent[0] -= expandSize / 2;
        } else {
          extent[0] -= expandSize / 2;
        }
      } else {
        extent[1] = 1;
      }
    }
    var span = extent[1] - extent[0];
    // If there are no data and extent are [Infinity, -Infinity]
    if (!isFinite(span)) {
      extent[0] = 0;
      extent[1] = 1;
    }
    this.calcNiceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);
    // let extent = this._extent;
    var interval = this._interval;
    if (!opt.fixMin) {
      extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval);
    }
    if (!opt.fixMax) {
      extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval);
    }
  };
  IntervalScale.prototype.setNiceExtent = function (min, max) {
    this._niceExtent = [min, max];
  };
  IntervalScale.type = 'interval';
  return IntervalScale;
}(scale_Scale);
scale_Scale.registerClass(Interval_IntervalScale);
/* harmony default export */ var Interval = (Interval_IntervalScale);
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/vendor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/* global Float32Array */
var supportFloat32Array = typeof Float32Array !== 'undefined';
var Float32ArrayCtor = !supportFloat32Array ? Array : Float32Array;
function createFloat32Array(arg) {
  if (Object(util["isArray"])(arg)) {
    // Return self directly if don't support TypedArray.
    return supportFloat32Array ? new Float32Array(arg) : arg;
  }
  // Else is number
  return new Float32ArrayCtor(arg);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/layout/barGrid.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var STACK_PREFIX = '__ec_stack_';
function getSeriesStackId(seriesModel) {
  return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex;
}
function getAxisKey(axis) {
  return axis.dim + axis.index;
}
/**
 * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined.
 */
function getLayoutOnAxis(opt) {
  var params = [];
  var baseAxis = opt.axis;
  var axisKey = 'axis0';
  if (baseAxis.type !== 'category') {
    return;
  }
  var bandWidth = baseAxis.getBandWidth();
  for (var i = 0; i < opt.count || 0; i++) {
    params.push(Object(util["defaults"])({
      bandWidth: bandWidth,
      axisKey: axisKey,
      stackId: STACK_PREFIX + i
    }, opt));
  }
  var widthAndOffsets = doCalBarWidthAndOffset(params);
  var result = [];
  for (var i = 0; i < opt.count; i++) {
    var item = widthAndOffsets[axisKey][STACK_PREFIX + i];
    item.offsetCenter = item.offset + item.width / 2;
    result.push(item);
  }
  return result;
}
function prepareLayoutBarSeries(seriesType, ecModel) {
  var seriesModels = [];
  ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    // Check series coordinate, do layout for cartesian2d only
    if (isOnCartesian(seriesModel)) {
      seriesModels.push(seriesModel);
    }
  });
  return seriesModels;
}
/**
 * Map from (baseAxis.dim + '_' + baseAxis.index) to min gap of two adjacent
 * values.
 * This works for time axes, value axes, and log axes.
 * For a single time axis, return value is in the form like
 * {'x_0': [1000000]}.
 * The value of 1000000 is in milliseconds.
 */
function getValueAxesMinGaps(barSeries) {
  /**
   * Map from axis.index to values.
   * For a single time axis, axisValues is in the form like
   * {'x_0': [1495555200000, 1495641600000, 1495728000000]}.
   * Items in axisValues[x], e.g. 1495555200000, are time values of all
   * series.
   */
  var axisValues = {};
  Object(util["each"])(barSeries, function (seriesModel) {
    var cartesian = seriesModel.coordinateSystem;
    var baseAxis = cartesian.getBaseAxis();
    if (baseAxis.type !== 'time' && baseAxis.type !== 'value') {
      return;
    }
    var data = seriesModel.getData();
    var key = baseAxis.dim + '_' + baseAxis.index;
    var dimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim));
    var store = data.getStore();
    for (var i = 0, cnt = store.count(); i < cnt; ++i) {
      var value = store.get(dimIdx, i);
      if (!axisValues[key]) {
        // No previous data for the axis
        axisValues[key] = [value];
      } else {
        // No value in previous series
        axisValues[key].push(value);
      }
      // Ignore duplicated time values in the same axis
    }
  });
  var axisMinGaps = {};
  for (var key in axisValues) {
    if (axisValues.hasOwnProperty(key)) {
      var valuesInAxis = axisValues[key];
      if (valuesInAxis) {
        // Sort axis values into ascending order to calculate gaps
        valuesInAxis.sort(function (a, b) {
          return a - b;
        });
        var min = null;
        for (var j = 1; j < valuesInAxis.length; ++j) {
          var delta = valuesInAxis[j] - valuesInAxis[j - 1];
          if (delta > 0) {
            // Ignore 0 delta because they are of the same axis value
            min = min === null ? delta : Math.min(min, delta);
          }
        }
        // Set to null if only have one data
        axisMinGaps[key] = min;
      }
    }
  }
  return axisMinGaps;
}
function makeColumnLayout(barSeries) {
  var axisMinGaps = getValueAxesMinGaps(barSeries);
  var seriesInfoList = [];
  Object(util["each"])(barSeries, function (seriesModel) {
    var cartesian = seriesModel.coordinateSystem;
    var baseAxis = cartesian.getBaseAxis();
    var axisExtent = baseAxis.getExtent();
    var bandWidth;
    if (baseAxis.type === 'category') {
      bandWidth = baseAxis.getBandWidth();
    } else if (baseAxis.type === 'value' || baseAxis.type === 'time') {
      var key = baseAxis.dim + '_' + baseAxis.index;
      var minGap = axisMinGaps[key];
      var extentSpan = Math.abs(axisExtent[1] - axisExtent[0]);
      var scale = baseAxis.scale.getExtent();
      var scaleSpan = Math.abs(scale[1] - scale[0]);
      bandWidth = minGap ? extentSpan / scaleSpan * minGap : extentSpan; // When there is only one data value
    } else {
      var data = seriesModel.getData();
      bandWidth = Math.abs(axisExtent[1] - axisExtent[0]) / data.count();
    }
    var barWidth = number_parsePercent(seriesModel.get('barWidth'), bandWidth);
    var barMaxWidth = number_parsePercent(seriesModel.get('barMaxWidth'), bandWidth);
    var barMinWidth = number_parsePercent(
    // barMinWidth by default is 0.5 / 1 in cartesian. Because in value axis,
    // the auto-calculated bar width might be less than 0.5 / 1.
    seriesModel.get('barMinWidth') || (isInLargeMode(seriesModel) ? 0.5 : 1), bandWidth);
    var barGap = seriesModel.get('barGap');
    var barCategoryGap = seriesModel.get('barCategoryGap');
    seriesInfoList.push({
      bandWidth: bandWidth,
      barWidth: barWidth,
      barMaxWidth: barMaxWidth,
      barMinWidth: barMinWidth,
      barGap: barGap,
      barCategoryGap: barCategoryGap,
      axisKey: getAxisKey(baseAxis),
      stackId: getSeriesStackId(seriesModel)
    });
  });
  return doCalBarWidthAndOffset(seriesInfoList);
}
function doCalBarWidthAndOffset(seriesInfoList) {
  // Columns info on each category axis. Key is cartesian name
  var columnsMap = {};
  Object(util["each"])(seriesInfoList, function (seriesInfo, idx) {
    var axisKey = seriesInfo.axisKey;
    var bandWidth = seriesInfo.bandWidth;
    var columnsOnAxis = columnsMap[axisKey] || {
      bandWidth: bandWidth,
      remainedWidth: bandWidth,
      autoWidthCount: 0,
      categoryGap: null,
      gap: '20%',
      stacks: {}
    };
    var stacks = columnsOnAxis.stacks;
    columnsMap[axisKey] = columnsOnAxis;
    var stackId = seriesInfo.stackId;
    if (!stacks[stackId]) {
      columnsOnAxis.autoWidthCount++;
    }
    stacks[stackId] = stacks[stackId] || {
      width: 0,
      maxWidth: 0
    };
    // Caution: In a single coordinate system, these barGrid attributes
    // will be shared by series. Consider that they have default values,
    // only the attributes set on the last series will work.
    // Do not change this fact unless there will be a break change.
    var barWidth = seriesInfo.barWidth;
    if (barWidth && !stacks[stackId].width) {
      // See #6312, do not restrict width.
      stacks[stackId].width = barWidth;
      barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);
      columnsOnAxis.remainedWidth -= barWidth;
    }
    var barMaxWidth = seriesInfo.barMaxWidth;
    barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);
    var barMinWidth = seriesInfo.barMinWidth;
    barMinWidth && (stacks[stackId].minWidth = barMinWidth);
    var barGap = seriesInfo.barGap;
    barGap != null && (columnsOnAxis.gap = barGap);
    var barCategoryGap = seriesInfo.barCategoryGap;
    barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap);
  });
  var result = {};
  Object(util["each"])(columnsMap, function (columnsOnAxis, coordSysName) {
    result[coordSysName] = {};
    var stacks = columnsOnAxis.stacks;
    var bandWidth = columnsOnAxis.bandWidth;
    var categoryGapPercent = columnsOnAxis.categoryGap;
    if (categoryGapPercent == null) {
      var columnCount = Object(util["keys"])(stacks).length;
      // More columns in one group
      // the spaces between group is smaller. Or the column will be too thin.
      categoryGapPercent = Math.max(35 - columnCount * 4, 15) + '%';
    }
    var categoryGap = number_parsePercent(categoryGapPercent, bandWidth);
    var barGapPercent = number_parsePercent(columnsOnAxis.gap, 1);
    var remainedWidth = columnsOnAxis.remainedWidth;
    var autoWidthCount = columnsOnAxis.autoWidthCount;
    var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    autoWidth = Math.max(autoWidth, 0);
    // Find if any auto calculated bar exceeded maxBarWidth
    Object(util["each"])(stacks, function (column) {
      var maxWidth = column.maxWidth;
      var minWidth = column.minWidth;
      if (!column.width) {
        var finalWidth = autoWidth;
        if (maxWidth && maxWidth < finalWidth) {
          finalWidth = Math.min(maxWidth, remainedWidth);
        }
        // `minWidth` has higher priority. `minWidth` decide that whether the
        // bar is able to be visible. So `minWidth` should not be restricted
        // by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In
        // the extreme cases for `value` axis, bars are allowed to overlap
        // with each other if `minWidth` specified.
        if (minWidth && minWidth > finalWidth) {
          finalWidth = minWidth;
        }
        if (finalWidth !== autoWidth) {
          column.width = finalWidth;
          remainedWidth -= finalWidth + barGapPercent * finalWidth;
          autoWidthCount--;
        }
      } else {
        // `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as
        // CSS does. Because barWidth can be a percent value, where
        // `barMaxWidth` can be used to restrict the final width.
        var finalWidth = column.width;
        if (maxWidth) {
          finalWidth = Math.min(finalWidth, maxWidth);
        }
        // `minWidth` has higher priority, as described above
        if (minWidth) {
          finalWidth = Math.max(finalWidth, minWidth);
        }
        column.width = finalWidth;
        remainedWidth -= finalWidth + barGapPercent * finalWidth;
        autoWidthCount--;
      }
    });
    // Recalculate width again
    autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    autoWidth = Math.max(autoWidth, 0);
    var widthSum = 0;
    var lastColumn;
    Object(util["each"])(stacks, function (column, idx) {
      if (!column.width) {
        column.width = autoWidth;
      }
      lastColumn = column;
      widthSum += column.width * (1 + barGapPercent);
    });
    if (lastColumn) {
      widthSum -= lastColumn.width * barGapPercent;
    }
    var offset = -widthSum / 2;
    Object(util["each"])(stacks, function (column, stackId) {
      result[coordSysName][stackId] = result[coordSysName][stackId] || {
        bandWidth: bandWidth,
        offset: offset,
        width: column.width
      };
      offset += column.width * (1 + barGapPercent);
    });
  });
  return result;
}
function retrieveColumnLayout(barWidthAndOffset, axis, seriesModel) {
  if (barWidthAndOffset && axis) {
    var result = barWidthAndOffset[getAxisKey(axis)];
    if (result != null && seriesModel != null) {
      return result[getSeriesStackId(seriesModel)];
    }
    return result;
  }
}

function barGrid_layout(seriesType, ecModel) {
  var seriesModels = prepareLayoutBarSeries(seriesType, ecModel);
  var barWidthAndOffset = makeColumnLayout(seriesModels);
  Object(util["each"])(seriesModels, function (seriesModel) {
    var data = seriesModel.getData();
    var cartesian = seriesModel.coordinateSystem;
    var baseAxis = cartesian.getBaseAxis();
    var stackId = getSeriesStackId(seriesModel);
    var columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId];
    var columnOffset = columnLayoutInfo.offset;
    var columnWidth = columnLayoutInfo.width;
    data.setLayout({
      bandWidth: columnLayoutInfo.bandWidth,
      offset: columnOffset,
      size: columnWidth
    });
  });
}
// TODO: Do not support stack in large mode yet.
function createProgressiveLayout(seriesType) {
  return {
    seriesType: seriesType,
    plan: createRenderPlanner(),
    reset: function (seriesModel) {
      if (!isOnCartesian(seriesModel)) {
        return;
      }
      var data = seriesModel.getData();
      var cartesian = seriesModel.coordinateSystem;
      var baseAxis = cartesian.getBaseAxis();
      var valueAxis = cartesian.getOtherAxis(baseAxis);
      var valueDimIdx = data.getDimensionIndex(data.mapDimension(valueAxis.dim));
      var baseDimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim));
      var drawBackground = seriesModel.get('showBackground', true);
      var valueDim = data.mapDimension(valueAxis.dim);
      var stackResultDim = data.getCalculationInfo('stackResultDimension');
      var stacked = isDimensionStacked(data, valueDim) && !!data.getCalculationInfo('stackedOnSeries');
      var isValueAxisH = valueAxis.isHorizontal();
      var valueAxisStart = getValueAxisStart(baseAxis, valueAxis);
      var isLarge = isInLargeMode(seriesModel);
      var barMinHeight = seriesModel.get('barMinHeight') || 0;
      var stackedDimIdx = stackResultDim && data.getDimensionIndex(stackResultDim);
      // Layout info.
      var columnWidth = data.getLayout('size');
      var columnOffset = data.getLayout('offset');
      return {
        progress: function (params, data) {
          var count = params.count;
          var largePoints = isLarge && createFloat32Array(count * 3);
          var largeBackgroundPoints = isLarge && drawBackground && createFloat32Array(count * 3);
          var largeDataIndices = isLarge && createFloat32Array(count);
          var coordLayout = cartesian.master.getRect();
          var bgSize = isValueAxisH ? coordLayout.width : coordLayout.height;
          var dataIndex;
          var store = data.getStore();
          var idxOffset = 0;
          while ((dataIndex = params.next()) != null) {
            var value = store.get(stacked ? stackedDimIdx : valueDimIdx, dataIndex);
            var baseValue = store.get(baseDimIdx, dataIndex);
            var baseCoord = valueAxisStart;
            var stackStartValue = void 0;
            // Because of the barMinHeight, we can not use the value in
            // stackResultDimension directly.
            if (stacked) {
              stackStartValue = +value - store.get(valueDimIdx, dataIndex);
            }
            var x = void 0;
            var y = void 0;
            var width = void 0;
            var height = void 0;
            if (isValueAxisH) {
              var coord = cartesian.dataToPoint([value, baseValue]);
              if (stacked) {
                var startCoord = cartesian.dataToPoint([stackStartValue, baseValue]);
                baseCoord = startCoord[0];
              }
              x = baseCoord;
              y = coord[1] + columnOffset;
              width = coord[0] - baseCoord;
              height = columnWidth;
              if (Math.abs(width) < barMinHeight) {
                width = (width < 0 ? -1 : 1) * barMinHeight;
              }
            } else {
              var coord = cartesian.dataToPoint([baseValue, value]);
              if (stacked) {
                var startCoord = cartesian.dataToPoint([baseValue, stackStartValue]);
                baseCoord = startCoord[1];
              }
              x = coord[0] + columnOffset;
              y = baseCoord;
              width = columnWidth;
              height = coord[1] - baseCoord;
              if (Math.abs(height) < barMinHeight) {
                // Include zero to has a positive bar
                height = (height <= 0 ? -1 : 1) * barMinHeight;
              }
            }
            if (!isLarge) {
              data.setItemLayout(dataIndex, {
                x: x,
                y: y,
                width: width,
                height: height
              });
            } else {
              largePoints[idxOffset] = x;
              largePoints[idxOffset + 1] = y;
              largePoints[idxOffset + 2] = isValueAxisH ? width : height;
              if (largeBackgroundPoints) {
                largeBackgroundPoints[idxOffset] = isValueAxisH ? coordLayout.x : x;
                largeBackgroundPoints[idxOffset + 1] = isValueAxisH ? y : coordLayout.y;
                largeBackgroundPoints[idxOffset + 2] = bgSize;
              }
              largeDataIndices[dataIndex] = dataIndex;
            }
            idxOffset += 3;
          }
          if (isLarge) {
            data.setLayout({
              largePoints: largePoints,
              largeDataIndices: largeDataIndices,
              largeBackgroundPoints: largeBackgroundPoints,
              valueAxisHorizontal: isValueAxisH
            });
          }
        }
      };
    }
  };
}
function isOnCartesian(seriesModel) {
  return seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'cartesian2d';
}
function isInLargeMode(seriesModel) {
  return seriesModel.pipelineContext && seriesModel.pipelineContext.large;
}
// See cases in `test/bar-start.html` and `#7412`, `#8747`.
function getValueAxisStart(baseAxis, valueAxis) {
  var startValue = valueAxis.model.get('startValue');
  if (!startValue) {
    startValue = 0;
  }
  return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? startValue > 0 ? startValue : 1 : startValue));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/scale/Time.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/*
* A third-party license is embedded for some of the code in this file:
* The "scaleLevels" was originally copied from "d3.js" with some
* modifications made for this project.
* (See more details in the comment on the definition of "scaleLevels" below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the license of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/
// [About UTC and local time zone]:
// In most cases, `number.parseDate` will treat input data string as local time
// (except time zone is specified in time string). And `format.formateTime` returns
// local time by default. option.useUTC is false by default. This design has
// considered these common cases:
// (1) Time that is persistent in server is in UTC, but it is needed to be displayed
// in local time by default.
// (2) By default, the input data string (e.g., '2011-01-02') should be displayed
// as its original time, without any time difference.







// FIXME 公用？
var bisect = function (a, x, lo, hi) {
  while (lo < hi) {
    var mid = lo + hi >>> 1;
    if (a[mid][1] < x) {
      lo = mid + 1;
    } else {
      hi = mid;
    }
  }
  return lo;
};
var Time_TimeScale = /** @class */function (_super) {
  __extends(TimeScale, _super);
  function TimeScale(settings) {
    var _this = _super.call(this, settings) || this;
    _this.type = 'time';
    return _this;
  }
  /**
   * Get label is mainly for other components like dataZoom, tooltip.
   */
  TimeScale.prototype.getLabel = function (tick) {
    var useUTC = this.getSetting('useUTC');
    return format(tick.value, fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))] || fullLeveledFormatter.second, useUTC, this.getSetting('locale'));
  };
  TimeScale.prototype.getFormattedLabel = function (tick, idx, labelFormatter) {
    var isUTC = this.getSetting('useUTC');
    var lang = this.getSetting('locale');
    return leveledFormat(tick, idx, labelFormatter, lang, isUTC);
  };
  /**
   * @override
   */
  TimeScale.prototype.getTicks = function () {
    var interval = this._interval;
    var extent = this._extent;
    var ticks = [];
    // If interval is 0, return [];
    if (!interval) {
      return ticks;
    }
    ticks.push({
      value: extent[0],
      level: 0
    });
    var useUTC = this.getSetting('useUTC');
    var innerTicks = getIntervalTicks(this._minLevelUnit, this._approxInterval, useUTC, extent);
    ticks = ticks.concat(innerTicks);
    ticks.push({
      value: extent[1],
      level: 0
    });
    return ticks;
  };
  TimeScale.prototype.calcNiceExtent = function (opt) {
    var extent = this._extent;
    // If extent start and end are same, expand them
    if (extent[0] === extent[1]) {
      // Expand extent
      extent[0] -= ONE_DAY;
      extent[1] += ONE_DAY;
    }
    // If there are no data and extent are [Infinity, -Infinity]
    if (extent[1] === -Infinity && extent[0] === Infinity) {
      var d = new Date();
      extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate());
      extent[0] = extent[1] - ONE_DAY;
    }
    this.calcNiceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);
  };
  TimeScale.prototype.calcNiceTicks = function (approxTickNum, minInterval, maxInterval) {
    approxTickNum = approxTickNum || 10;
    var extent = this._extent;
    var span = extent[1] - extent[0];
    this._approxInterval = span / approxTickNum;
    if (minInterval != null && this._approxInterval < minInterval) {
      this._approxInterval = minInterval;
    }
    if (maxInterval != null && this._approxInterval > maxInterval) {
      this._approxInterval = maxInterval;
    }
    var scaleIntervalsLen = scaleIntervals.length;
    var idx = Math.min(bisect(scaleIntervals, this._approxInterval, 0, scaleIntervalsLen), scaleIntervalsLen - 1);
    // Interval that can be used to calculate ticks
    this._interval = scaleIntervals[idx][1];
    // Min level used when picking ticks from top down.
    // We check one more level to avoid the ticks are to sparse in some case.
    this._minLevelUnit = scaleIntervals[Math.max(idx - 1, 0)][0];
  };
  TimeScale.prototype.parse = function (val) {
    // val might be float.
    return Object(util["isNumber"])(val) ? val : +parseDate(val);
  };
  TimeScale.prototype.contain = function (val) {
    return helper_contain(this.parse(val), this._extent);
  };
  TimeScale.prototype.normalize = function (val) {
    return helper_normalize(this.parse(val), this._extent);
  };
  TimeScale.prototype.scale = function (val) {
    return helper_scale(val, this._extent);
  };
  TimeScale.type = 'time';
  return TimeScale;
}(Interval);
/**
 * This implementation was originally copied from "d3.js"
 * <https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/time/scale.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 */
var scaleIntervals = [
// Format                           interval
['second', ONE_SECOND], ['minute', ONE_MINUTE], ['hour', ONE_HOUR], ['quarter-day', ONE_HOUR * 6], ['half-day', ONE_HOUR * 12], ['day', ONE_DAY * 1.2], ['half-week', ONE_DAY * 3.5], ['week', ONE_DAY * 7], ['month', ONE_DAY * 31], ['quarter', ONE_DAY * 95], ['half-year', ONE_YEAR / 2], ['year', ONE_YEAR] // 1Y
];
function isUnitValueSame(unit, valueA, valueB, isUTC) {
  var dateA = parseDate(valueA);
  var dateB = parseDate(valueB);
  var isSame = function (unit) {
    return getUnitValue(dateA, unit, isUTC) === getUnitValue(dateB, unit, isUTC);
  };
  var isSameYear = function () {
    return isSame('year');
  };
  // const isSameHalfYear = () => isSameYear() && isSame('half-year');
  // const isSameQuater = () => isSameYear() && isSame('quarter');
  var isSameMonth = function () {
    return isSameYear() && isSame('month');
  };
  var isSameDay = function () {
    return isSameMonth() && isSame('day');
  };
  // const isSameHalfDay = () => isSameDay() && isSame('half-day');
  var isSameHour = function () {
    return isSameDay() && isSame('hour');
  };
  var isSameMinute = function () {
    return isSameHour() && isSame('minute');
  };
  var isSameSecond = function () {
    return isSameMinute() && isSame('second');
  };
  var isSameMilliSecond = function () {
    return isSameSecond() && isSame('millisecond');
  };
  switch (unit) {
    case 'year':
      return isSameYear();
    case 'month':
      return isSameMonth();
    case 'day':
      return isSameDay();
    case 'hour':
      return isSameHour();
    case 'minute':
      return isSameMinute();
    case 'second':
      return isSameSecond();
    case 'millisecond':
      return isSameMilliSecond();
  }
}
// const primaryUnitGetters = {
//     year: fullYearGetterName(),
//     month: monthGetterName(),
//     day: dateGetterName(),
//     hour: hoursGetterName(),
//     minute: minutesGetterName(),
//     second: secondsGetterName(),
//     millisecond: millisecondsGetterName()
// };
// const primaryUnitUTCGetters = {
//     year: fullYearGetterName(true),
//     month: monthGetterName(true),
//     day: dateGetterName(true),
//     hour: hoursGetterName(true),
//     minute: minutesGetterName(true),
//     second: secondsGetterName(true),
//     millisecond: millisecondsGetterName(true)
// };
// function moveTick(date: Date, unitName: TimeUnit, step: number, isUTC: boolean) {
//     step = step || 1;
//     switch (getPrimaryTimeUnit(unitName)) {
//         case 'year':
//             date[fullYearSetterName(isUTC)](date[fullYearGetterName(isUTC)]() + step);
//             break;
//         case 'month':
//             date[monthSetterName(isUTC)](date[monthGetterName(isUTC)]() + step);
//             break;
//         case 'day':
//             date[dateSetterName(isUTC)](date[dateGetterName(isUTC)]() + step);
//             break;
//         case 'hour':
//             date[hoursSetterName(isUTC)](date[hoursGetterName(isUTC)]() + step);
//             break;
//         case 'minute':
//             date[minutesSetterName(isUTC)](date[minutesGetterName(isUTC)]() + step);
//             break;
//         case 'second':
//             date[secondsSetterName(isUTC)](date[secondsGetterName(isUTC)]() + step);
//             break;
//         case 'millisecond':
//             date[millisecondsSetterName(isUTC)](date[millisecondsGetterName(isUTC)]() + step);
//             break;
//     }
//     return date.getTime();
// }
// const DATE_INTERVALS = [[8, 7.5], [4, 3.5], [2, 1.5]];
// const MONTH_INTERVALS = [[6, 5.5], [3, 2.5], [2, 1.5]];
// const MINUTES_SECONDS_INTERVALS = [[30, 30], [20, 20], [15, 15], [10, 10], [5, 5], [2, 2]];
function getDateInterval(approxInterval, daysInMonth) {
  approxInterval /= ONE_DAY;
  return approxInterval > 16 ? 16
  // Math.floor(daysInMonth / 2) + 1  // In this case we only want one tick between two months.
  : approxInterval > 7.5 ? 7 // TODO week 7 or day 8?
  : approxInterval > 3.5 ? 4 : approxInterval > 1.5 ? 2 : 1;
}
function getMonthInterval(approxInterval) {
  var APPROX_ONE_MONTH = 30 * ONE_DAY;
  approxInterval /= APPROX_ONE_MONTH;
  return approxInterval > 6 ? 6 : approxInterval > 3 ? 3 : approxInterval > 2 ? 2 : 1;
}
function getHourInterval(approxInterval) {
  approxInterval /= ONE_HOUR;
  return approxInterval > 12 ? 12 : approxInterval > 6 ? 6 : approxInterval > 3.5 ? 4 : approxInterval > 2 ? 2 : 1;
}
function getMinutesAndSecondsInterval(approxInterval, isMinutes) {
  approxInterval /= isMinutes ? ONE_MINUTE : ONE_SECOND;
  return approxInterval > 30 ? 30 : approxInterval > 20 ? 20 : approxInterval > 15 ? 15 : approxInterval > 10 ? 10 : approxInterval > 5 ? 5 : approxInterval > 2 ? 2 : 1;
}
function getMillisecondsInterval(approxInterval) {
  return nice(approxInterval, true);
}
function getFirstTimestampOfUnit(date, unitName, isUTC) {
  var outDate = new Date(date);
  switch (getPrimaryTimeUnit(unitName)) {
    case 'year':
    case 'month':
      outDate[monthSetterName(isUTC)](0);
    case 'day':
      outDate[dateSetterName(isUTC)](1);
    case 'hour':
      outDate[hoursSetterName(isUTC)](0);
    case 'minute':
      outDate[minutesSetterName(isUTC)](0);
    case 'second':
      outDate[secondsSetterName(isUTC)](0);
      outDate[millisecondsSetterName(isUTC)](0);
  }
  return outDate.getTime();
}
function getIntervalTicks(bottomUnitName, approxInterval, isUTC, extent) {
  var safeLimit = 10000;
  var unitNames = timeUnits;
  var iter = 0;
  function addTicksInSpan(interval, minTimestamp, maxTimestamp, getMethodName, setMethodName, isDate, out) {
    var date = new Date(minTimestamp);
    var dateTime = minTimestamp;
    var d = date[getMethodName]();
    // if (isDate) {
    //     d -= 1; // Starts with 0;   PENDING
    // }
    while (dateTime < maxTimestamp && dateTime <= extent[1]) {
      out.push({
        value: dateTime
      });
      d += interval;
      date[setMethodName](d);
      dateTime = date.getTime();
    }
    // This extra tick is for calcuating ticks of next level. Will not been added to the final result
    out.push({
      value: dateTime,
      notAdd: true
    });
  }
  function addLevelTicks(unitName, lastLevelTicks, levelTicks) {
    var newAddedTicks = [];
    var isFirstLevel = !lastLevelTicks.length;
    if (isUnitValueSame(getPrimaryTimeUnit(unitName), extent[0], extent[1], isUTC)) {
      return;
    }
    if (isFirstLevel) {
      lastLevelTicks = [{
        // TODO Optimize. Not include so may ticks.
        value: getFirstTimestampOfUnit(new Date(extent[0]), unitName, isUTC)
      }, {
        value: extent[1]
      }];
    }
    for (var i = 0; i < lastLevelTicks.length - 1; i++) {
      var startTick = lastLevelTicks[i].value;
      var endTick = lastLevelTicks[i + 1].value;
      if (startTick === endTick) {
        continue;
      }
      var interval = void 0;
      var getterName = void 0;
      var setterName = void 0;
      var isDate = false;
      switch (unitName) {
        case 'year':
          interval = Math.max(1, Math.round(approxInterval / ONE_DAY / 365));
          getterName = fullYearGetterName(isUTC);
          setterName = fullYearSetterName(isUTC);
          break;
        case 'half-year':
        case 'quarter':
        case 'month':
          interval = getMonthInterval(approxInterval);
          getterName = monthGetterName(isUTC);
          setterName = monthSetterName(isUTC);
          break;
        case 'week': // PENDING If week is added. Ignore day.
        case 'half-week':
        case 'day':
          interval = getDateInterval(approxInterval, 31); // Use 32 days and let interval been 16
          getterName = dateGetterName(isUTC);
          setterName = dateSetterName(isUTC);
          isDate = true;
          break;
        case 'half-day':
        case 'quarter-day':
        case 'hour':
          interval = getHourInterval(approxInterval);
          getterName = hoursGetterName(isUTC);
          setterName = hoursSetterName(isUTC);
          break;
        case 'minute':
          interval = getMinutesAndSecondsInterval(approxInterval, true);
          getterName = minutesGetterName(isUTC);
          setterName = minutesSetterName(isUTC);
          break;
        case 'second':
          interval = getMinutesAndSecondsInterval(approxInterval, false);
          getterName = secondsGetterName(isUTC);
          setterName = secondsSetterName(isUTC);
          break;
        case 'millisecond':
          interval = getMillisecondsInterval(approxInterval);
          getterName = millisecondsGetterName(isUTC);
          setterName = millisecondsSetterName(isUTC);
          break;
      }
      addTicksInSpan(interval, startTick, endTick, getterName, setterName, isDate, newAddedTicks);
      if (unitName === 'year' && levelTicks.length > 1 && i === 0) {
        // Add nearest years to the left extent.
        levelTicks.unshift({
          value: levelTicks[0].value - interval
        });
      }
    }
    for (var i = 0; i < newAddedTicks.length; i++) {
      levelTicks.push(newAddedTicks[i]);
    }
    // newAddedTicks.length && console.log(unitName, newAddedTicks);
    return newAddedTicks;
  }
  var levelsTicks = [];
  var currentLevelTicks = [];
  var tickCount = 0;
  var lastLevelTickCount = 0;
  for (var i = 0; i < unitNames.length && iter++ < safeLimit; ++i) {
    var primaryTimeUnit = getPrimaryTimeUnit(unitNames[i]);
    if (!isPrimaryTimeUnit(unitNames[i])) {
      // TODO
      continue;
    }
    addLevelTicks(unitNames[i], levelsTicks[levelsTicks.length - 1] || [], currentLevelTicks);
    var nextPrimaryTimeUnit = unitNames[i + 1] ? getPrimaryTimeUnit(unitNames[i + 1]) : null;
    if (primaryTimeUnit !== nextPrimaryTimeUnit) {
      if (currentLevelTicks.length) {
        lastLevelTickCount = tickCount;
        // Remove the duplicate so the tick count can be precisely.
        currentLevelTicks.sort(function (a, b) {
          return a.value - b.value;
        });
        var levelTicksRemoveDuplicated = [];
        for (var i_1 = 0; i_1 < currentLevelTicks.length; ++i_1) {
          var tickValue = currentLevelTicks[i_1].value;
          if (i_1 === 0 || currentLevelTicks[i_1 - 1].value !== tickValue) {
            levelTicksRemoveDuplicated.push(currentLevelTicks[i_1]);
            if (tickValue >= extent[0] && tickValue <= extent[1]) {
              tickCount++;
            }
          }
        }
        var targetTickNum = (extent[1] - extent[0]) / approxInterval;
        // Added too much in this level and not too less in last level
        if (tickCount > targetTickNum * 1.5 && lastLevelTickCount > targetTickNum / 1.5) {
          break;
        }
        // Only treat primary time unit as one level.
        levelsTicks.push(levelTicksRemoveDuplicated);
        if (tickCount > targetTickNum || bottomUnitName === unitNames[i]) {
          break;
        }
      }
      // Reset if next unitName is primary
      currentLevelTicks = [];
    }
  }
  if (false) {}
  var levelsTicksInExtent = Object(util["filter"])(Object(util["map"])(levelsTicks, function (levelTicks) {
    return Object(util["filter"])(levelTicks, function (tick) {
      return tick.value >= extent[0] && tick.value <= extent[1] && !tick.notAdd;
    });
  }), function (levelTicks) {
    return levelTicks.length > 0;
  });
  var ticks = [];
  var maxLevel = levelsTicksInExtent.length - 1;
  for (var i = 0; i < levelsTicksInExtent.length; ++i) {
    var levelTicks = levelsTicksInExtent[i];
    for (var k = 0; k < levelTicks.length; ++k) {
      ticks.push({
        value: levelTicks[k].value,
        level: maxLevel - i
      });
    }
  }
  ticks.sort(function (a, b) {
    return a.value - b.value;
  });
  // Remove duplicates
  var result = [];
  for (var i = 0; i < ticks.length; ++i) {
    if (i === 0 || ticks[i].value !== ticks[i - 1].value) {
      result.push(ticks[i]);
    }
  }
  return result;
}
scale_Scale.registerClass(Time_TimeScale);
/* harmony default export */ var Time = (Time_TimeScale);
// CONCATENATED MODULE: ./node_modules/echarts/lib/scale/Log.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





// Use some method of IntervalScale

var scaleProto = scale_Scale.prototype;
// FIXME:TS refactor: not good to call it directly with `this`?
var Log_intervalScaleProto = Interval.prototype;
var roundingErrorFix = round;
var mathFloor = Math.floor;
var mathCeil = Math.ceil;
var Log_mathPow = Math.pow;
var mathLog = Math.log;
var Log_LogScale = /** @class */function (_super) {
  __extends(LogScale, _super);
  function LogScale() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = 'log';
    _this.base = 10;
    _this._originalScale = new Interval();
    // FIXME:TS actually used by `IntervalScale`
    _this._interval = 0;
    return _this;
  }
  /**
   * @param Whether expand the ticks to niced extent.
   */
  LogScale.prototype.getTicks = function (expandToNicedExtent) {
    var originalScale = this._originalScale;
    var extent = this._extent;
    var originalExtent = originalScale.getExtent();
    var ticks = Log_intervalScaleProto.getTicks.call(this, expandToNicedExtent);
    return util["map"](ticks, function (tick) {
      var val = tick.value;
      var powVal = round(Log_mathPow(this.base, val));
      // Fix #4158
      powVal = val === extent[0] && this._fixMin ? fixRoundingError(powVal, originalExtent[0]) : powVal;
      powVal = val === extent[1] && this._fixMax ? fixRoundingError(powVal, originalExtent[1]) : powVal;
      return {
        value: powVal
      };
    }, this);
  };
  LogScale.prototype.setExtent = function (start, end) {
    var base = mathLog(this.base);
    // log(-Infinity) is NaN, so safe guard here
    start = mathLog(Math.max(0, start)) / base;
    end = mathLog(Math.max(0, end)) / base;
    Log_intervalScaleProto.setExtent.call(this, start, end);
  };
  /**
   * @return {number} end
   */
  LogScale.prototype.getExtent = function () {
    var base = this.base;
    var extent = scaleProto.getExtent.call(this);
    extent[0] = Log_mathPow(base, extent[0]);
    extent[1] = Log_mathPow(base, extent[1]);
    // Fix #4158
    var originalScale = this._originalScale;
    var originalExtent = originalScale.getExtent();
    this._fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0]));
    this._fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1]));
    return extent;
  };
  LogScale.prototype.unionExtent = function (extent) {
    this._originalScale.unionExtent(extent);
    var base = this.base;
    extent[0] = mathLog(extent[0]) / mathLog(base);
    extent[1] = mathLog(extent[1]) / mathLog(base);
    scaleProto.unionExtent.call(this, extent);
  };
  LogScale.prototype.unionExtentFromData = function (data, dim) {
    // TODO
    // filter value that <= 0
    this.unionExtent(data.getApproximateExtent(dim));
  };
  /**
   * Update interval and extent of intervals for nice ticks
   * @param approxTickNum default 10 Given approx tick number
   */
  LogScale.prototype.calcNiceTicks = function (approxTickNum) {
    approxTickNum = approxTickNum || 10;
    var extent = this._extent;
    var span = extent[1] - extent[0];
    if (span === Infinity || span <= 0) {
      return;
    }
    var interval = quantity(span);
    var err = approxTickNum / span * interval;
    // Filter ticks to get closer to the desired count.
    if (err <= 0.5) {
      interval *= 10;
    }
    // Interval should be integer
    while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) {
      interval *= 10;
    }
    var niceExtent = [round(mathCeil(extent[0] / interval) * interval), round(mathFloor(extent[1] / interval) * interval)];
    this._interval = interval;
    this._niceExtent = niceExtent;
  };
  LogScale.prototype.calcNiceExtent = function (opt) {
    Log_intervalScaleProto.calcNiceExtent.call(this, opt);
    this._fixMin = opt.fixMin;
    this._fixMax = opt.fixMax;
  };
  LogScale.prototype.parse = function (val) {
    return val;
  };
  LogScale.prototype.contain = function (val) {
    val = mathLog(val) / mathLog(this.base);
    return helper_contain(val, this._extent);
  };
  LogScale.prototype.normalize = function (val) {
    val = mathLog(val) / mathLog(this.base);
    return helper_normalize(val, this._extent);
  };
  LogScale.prototype.scale = function (val) {
    val = helper_scale(val, this._extent);
    return Log_mathPow(this.base, val);
  };
  LogScale.type = 'log';
  return LogScale;
}(scale_Scale);
var Log_proto = Log_LogScale.prototype;
Log_proto.getMinorTicks = Log_intervalScaleProto.getMinorTicks;
Log_proto.getLabel = Log_intervalScaleProto.getLabel;
function fixRoundingError(val, originalVal) {
  return roundingErrorFix(val, getPrecision(originalVal));
}
scale_Scale.registerClass(Log_LogScale);
/* harmony default export */ var Log = (Log_LogScale);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/scaleRawExtentInfo.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var scaleRawExtentInfo_ScaleRawExtentInfo = /** @class */function () {
  function ScaleRawExtentInfo(scale, model,
  // Usually: data extent from all series on this axis.
  originalExtent) {
    this._prepareParams(scale, model, originalExtent);
  }
  /**
   * Parameters depending on outside (like model, user callback)
   * are prepared and fixed here.
   */
  ScaleRawExtentInfo.prototype._prepareParams = function (scale, model,
  // Usually: data extent from all series on this axis.
  dataExtent) {
    if (dataExtent[1] < dataExtent[0]) {
      dataExtent = [NaN, NaN];
    }
    this._dataMin = dataExtent[0];
    this._dataMax = dataExtent[1];
    var isOrdinal = this._isOrdinal = scale.type === 'ordinal';
    this._needCrossZero = scale.type === 'interval' && model.getNeedCrossZero && model.getNeedCrossZero();
    var axisMinValue = model.get('min', true);
    if (axisMinValue == null) {
      axisMinValue = model.get('startValue', true);
    }
    var modelMinRaw = this._modelMinRaw = axisMinValue;
    if (Object(util["isFunction"])(modelMinRaw)) {
      // This callback always provides users the full data extent (before data is filtered).
      this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({
        min: dataExtent[0],
        max: dataExtent[1]
      }));
    } else if (modelMinRaw !== 'dataMin') {
      this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw);
    }
    var modelMaxRaw = this._modelMaxRaw = model.get('max', true);
    if (Object(util["isFunction"])(modelMaxRaw)) {
      // This callback always provides users the full data extent (before data is filtered).
      this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({
        min: dataExtent[0],
        max: dataExtent[1]
      }));
    } else if (modelMaxRaw !== 'dataMax') {
      this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw);
    }
    if (isOrdinal) {
      // FIXME: there is a flaw here: if there is no "block" data processor like `dataZoom`,
      // and progressive rendering is using, here the category result might just only contain
      // the processed chunk rather than the entire result.
      this._axisDataLen = model.getCategories().length;
    } else {
      var boundaryGap = model.get('boundaryGap');
      var boundaryGapArr = Object(util["isArray"])(boundaryGap) ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];
      if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') {
        if (false) {}
        this._boundaryGapInner = [0, 0];
      } else {
        this._boundaryGapInner = [parsePercent(boundaryGapArr[0], 1), parsePercent(boundaryGapArr[1], 1)];
      }
    }
  };
  /**
   * Calculate extent by prepared parameters.
   * This method has no external dependency and can be called duplicatedly,
   * getting the same result.
   * If parameters changed, should call this method to recalcuate.
   */
  ScaleRawExtentInfo.prototype.calculate = function () {
    // Notice: When min/max is not set (that is, when there are null/undefined,
    // which is the most common case), these cases should be ensured:
    // (1) For 'ordinal', show all axis.data.
    // (2) For others:
    //      + `boundaryGap` is applied (if min/max set, boundaryGap is
    //      disabled).
    //      + If `needCrossZero`, min/max should be zero, otherwise, min/max should
    //      be the result that originalExtent enlarged by boundaryGap.
    // (3) If no data, it should be ensured that `scale.setBlank` is set.
    var isOrdinal = this._isOrdinal;
    var dataMin = this._dataMin;
    var dataMax = this._dataMax;
    var axisDataLen = this._axisDataLen;
    var boundaryGapInner = this._boundaryGapInner;
    var span = !isOrdinal ? dataMax - dataMin || Math.abs(dataMin) : null;
    // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax',
    // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`.
    var min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum;
    var max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum;
    // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed.
    var minFixed = min != null;
    var maxFixed = max != null;
    if (min == null) {
      min = isOrdinal ? axisDataLen ? 0 : NaN : dataMin - boundaryGapInner[0] * span;
    }
    if (max == null) {
      max = isOrdinal ? axisDataLen ? axisDataLen - 1 : NaN : dataMax + boundaryGapInner[1] * span;
    }
    (min == null || !isFinite(min)) && (min = NaN);
    (max == null || !isFinite(max)) && (max = NaN);
    var isBlank = Object(util["eqNaN"])(min) || Object(util["eqNaN"])(max) || isOrdinal && !axisDataLen;
    // If data extent modified, need to recalculated to ensure cross zero.
    if (this._needCrossZero) {
      // Axis is over zero and min is not set
      if (min > 0 && max > 0 && !minFixed) {
        min = 0;
        // minFixed = true;
      }
      // Axis is under zero and max is not set
      if (min < 0 && max < 0 && !maxFixed) {
        max = 0;
        // maxFixed = true;
      }
      // PENDING:
      // When `needCrossZero` and all data is positive/negative, should it be ensured
      // that the results processed by boundaryGap are positive/negative?
      // If so, here `minFixed`/`maxFixed` need to be set.
    }
    var determinedMin = this._determinedMin;
    var determinedMax = this._determinedMax;
    if (determinedMin != null) {
      min = determinedMin;
      minFixed = true;
    }
    if (determinedMax != null) {
      max = determinedMax;
      maxFixed = true;
    }
    // Ensure min/max be finite number or NaN here. (not to be null/undefined)
    // `NaN` means min/max axis is blank.
    return {
      min: min,
      max: max,
      minFixed: minFixed,
      maxFixed: maxFixed,
      isBlank: isBlank
    };
  };
  ScaleRawExtentInfo.prototype.modifyDataMinMax = function (minMaxName, val) {
    if (false) {}
    this[DATA_MIN_MAX_ATTR[minMaxName]] = val;
  };
  ScaleRawExtentInfo.prototype.setDeterminedMinMax = function (minMaxName, val) {
    var attr = DETERMINED_MIN_MAX_ATTR[minMaxName];
    if (false) {}
    this[attr] = val;
  };
  ScaleRawExtentInfo.prototype.freeze = function () {
    // @ts-ignore
    this.frozen = true;
  };
  return ScaleRawExtentInfo;
}();

var DETERMINED_MIN_MAX_ATTR = {
  min: '_determinedMin',
  max: '_determinedMax'
};
var DATA_MIN_MAX_ATTR = {
  min: '_dataMin',
  max: '_dataMax'
};
/**
 * Get scale min max and related info only depends on model settings.
 * This method can be called after coordinate system created.
 * For example, in data processing stage.
 *
 * Scale extent info probably be required multiple times during a workflow.
 * For example:
 * (1) `dataZoom` depends it to get the axis extent in "100%" state.
 * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.
 * (3) `coordSys.update` use it to finally decide the scale extent.
 * But the callback of `min`/`max` should not be called multiple times.
 * The code below should not be implemented repeatedly either.
 * So we cache the result in the scale instance, which will be recreated at the beginning
 * of the workflow (because `scale` instance will be recreated each round of the workflow).
 */
function ensureScaleRawExtentInfo(scale, model,
// Usually: data extent from all series on this axis.
originalExtent) {
  // Do not permit to recreate.
  var rawExtentInfo = scale.rawExtentInfo;
  if (rawExtentInfo) {
    return rawExtentInfo;
  }
  rawExtentInfo = new scaleRawExtentInfo_ScaleRawExtentInfo(scale, model, originalExtent);
  // @ts-ignore
  scale.rawExtentInfo = rawExtentInfo;
  return rawExtentInfo;
}
function parseAxisModelMinMax(scale, minMax) {
  return minMax == null ? null : Object(util["eqNaN"])(minMax) ? NaN : scale.parse(minMax);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/










/**
 * Get axis scale extent before niced.
 * Item of returned array can only be number (including Infinity and NaN).
 *
 * Caution:
 * Precondition of calling this method:
 * The scale extent has been initialized using series data extent via
 * `scale.setExtent` or `scale.unionExtentFromData`;
 */
function getScaleExtent(scale, model) {
  var scaleType = scale.type;
  var rawExtentResult = ensureScaleRawExtentInfo(scale, model, scale.getExtent()).calculate();
  scale.setBlank(rawExtentResult.isBlank);
  var min = rawExtentResult.min;
  var max = rawExtentResult.max;
  // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis
  // is base axis
  // FIXME
  // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.
  // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?
  //     Should not depend on series type `bar`?
  // (3) Fix that might overlap when using dataZoom.
  // (4) Consider other chart types using `barGrid`?
  // See #6728, #4862, `test/bar-overflow-time-plot.html`
  var ecModel = model.ecModel;
  if (ecModel && scaleType === 'time' /* || scaleType === 'interval' */) {
    var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);
    var isBaseAxisAndHasBarSeries_1 = false;
    util["each"](barSeriesModels, function (seriesModel) {
      isBaseAxisAndHasBarSeries_1 = isBaseAxisAndHasBarSeries_1 || seriesModel.getBaseAxis() === model.axis;
    });
    if (isBaseAxisAndHasBarSeries_1) {
      // Calculate placement of bars on axis. TODO should be decoupled
      // with barLayout
      var barWidthAndOffset = makeColumnLayout(barSeriesModels);
      // Adjust axis min and max to account for overflow
      var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);
      min = adjustedScale.min;
      max = adjustedScale.max;
    }
  }
  return {
    extent: [min, max],
    // "fix" means "fixed", the value should not be
    // changed in the subsequent steps.
    fixMin: rawExtentResult.minFixed,
    fixMax: rawExtentResult.maxFixed
  };
}
function adjustScaleForOverflow(min, max, model,
// Only support cartesian coord yet.
barWidthAndOffset) {
  // Get Axis Length
  var axisExtent = model.axis.getExtent();
  var axisLength = Math.abs(axisExtent[1] - axisExtent[0]);
  // Get bars on current base axis and calculate min and max overflow
  var barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis);
  if (barsOnCurrentAxis === undefined) {
    return {
      min: min,
      max: max
    };
  }
  var minOverflow = Infinity;
  util["each"](barsOnCurrentAxis, function (item) {
    minOverflow = Math.min(item.offset, minOverflow);
  });
  var maxOverflow = -Infinity;
  util["each"](barsOnCurrentAxis, function (item) {
    maxOverflow = Math.max(item.offset + item.width, maxOverflow);
  });
  minOverflow = Math.abs(minOverflow);
  maxOverflow = Math.abs(maxOverflow);
  var totalOverFlow = minOverflow + maxOverflow;
  // Calculate required buffer based on old range and overflow
  var oldRange = max - min;
  var oldRangePercentOfNew = 1 - (minOverflow + maxOverflow) / axisLength;
  var overflowBuffer = oldRange / oldRangePercentOfNew - oldRange;
  max += overflowBuffer * (maxOverflow / totalOverFlow);
  min -= overflowBuffer * (minOverflow / totalOverFlow);
  return {
    min: min,
    max: max
  };
}
// Precondition of calling this method:
// The scale extent has been initialized using series data extent via
// `scale.setExtent` or `scale.unionExtentFromData`;
function niceScaleExtent(scale, inModel) {
  var model = inModel;
  var extentInfo = getScaleExtent(scale, model);
  var extent = extentInfo.extent;
  var splitNumber = model.get('splitNumber');
  if (scale instanceof Log) {
    scale.base = model.get('logBase');
  }
  var scaleType = scale.type;
  var interval = model.get('interval');
  var isIntervalOrTime = scaleType === 'interval' || scaleType === 'time';
  scale.setExtent(extent[0], extent[1]);
  scale.calcNiceExtent({
    splitNumber: splitNumber,
    fixMin: extentInfo.fixMin,
    fixMax: extentInfo.fixMax,
    minInterval: isIntervalOrTime ? model.get('minInterval') : null,
    maxInterval: isIntervalOrTime ? model.get('maxInterval') : null
  });
  // If some one specified the min, max. And the default calculated interval
  // is not good enough. He can specify the interval. It is often appeared
  // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard
  // to be 60.
  // FIXME
  if (interval != null) {
    scale.setInterval && scale.setInterval(interval);
  }
}
/**
 * @param axisType Default retrieve from model.type
 */
function createScaleByModel(model, axisType) {
  axisType = axisType || model.get('type');
  if (axisType) {
    switch (axisType) {
      // Buildin scale
      case 'category':
        return new Ordinal({
          ordinalMeta: model.getOrdinalMeta ? model.getOrdinalMeta() : model.getCategories(),
          extent: [Infinity, -Infinity]
        });
      case 'time':
        return new Time({
          locale: model.ecModel.getLocaleModel(),
          useUTC: model.ecModel.get('useUTC')
        });
      default:
        // case 'value'/'interval', 'log', or others.
        return new (scale_Scale.getClass(axisType) || Interval)();
    }
  }
}
/**
 * Check if the axis cross 0
 */
function ifAxisCrossZero(axis) {
  var dataExtent = axis.scale.getExtent();
  var min = dataExtent[0];
  var max = dataExtent[1];
  return !(min > 0 && max > 0 || min < 0 && max < 0);
}
/**
 * @param axis
 * @return Label formatter function.
 *         param: {number} tickValue,
 *         param: {number} idx, the index in all ticks.
 *                         If category axis, this param is not required.
 *         return: {string} label string.
 */
function makeLabelFormatter(axis) {
  var labelFormatter = axis.getLabelModel().get('formatter');
  var categoryTickStart = axis.type === 'category' ? axis.scale.getExtent()[0] : null;
  if (axis.scale.type === 'time') {
    return function (tpl) {
      return function (tick, idx) {
        return axis.scale.getFormattedLabel(tick, idx, tpl);
      };
    }(labelFormatter);
  } else if (util["isString"](labelFormatter)) {
    return function (tpl) {
      return function (tick) {
        // For category axis, get raw value; for numeric axis,
        // get formatted label like '1,333,444'.
        var label = axis.scale.getLabel(tick);
        var text = tpl.replace('{value}', label != null ? label : '');
        return text;
      };
    }(labelFormatter);
  } else if (util["isFunction"](labelFormatter)) {
    return function (cb) {
      return function (tick, idx) {
        // The original intention of `idx` is "the index of the tick in all ticks".
        // But the previous implementation of category axis do not consider the
        // `axisLabel.interval`, which cause that, for example, the `interval` is
        // `1`, then the ticks "name5", "name7", "name9" are displayed, where the
        // corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep
        // the definition here for back compatibility.
        if (categoryTickStart != null) {
          idx = tick.value - categoryTickStart;
        }
        return cb(getAxisRawValue(axis, tick), idx, tick.level != null ? {
          level: tick.level
        } : null);
      };
    }(labelFormatter);
  } else {
    return function (tick) {
      return axis.scale.getLabel(tick);
    };
  }
}
function getAxisRawValue(axis, tick) {
  // In category axis with data zoom, tick is not the original
  // index of axis.data. So tick should not be exposed to user
  // in category axis.
  return axis.type === 'category' ? axis.scale.getLabel(tick) : tick.value;
}
/**
 * @param axis
 * @return Be null/undefined if no labels.
 */
function estimateLabelUnionRect(axis) {
  var axisModel = axis.model;
  var scale = axis.scale;
  if (!axisModel.get(['axisLabel', 'show']) || scale.isBlank()) {
    return;
  }
  var realNumberScaleTicks;
  var tickCount;
  var categoryScaleExtent = scale.getExtent();
  // Optimize for large category data, avoid call `getTicks()`.
  if (scale instanceof Ordinal) {
    tickCount = scale.count();
  } else {
    realNumberScaleTicks = scale.getTicks();
    tickCount = realNumberScaleTicks.length;
  }
  var axisLabelModel = axis.getLabelModel();
  var labelFormatter = makeLabelFormatter(axis);
  var rect;
  var step = 1;
  // Simple optimization for large amount of labels
  if (tickCount > 40) {
    step = Math.ceil(tickCount / 40);
  }
  for (var i = 0; i < tickCount; i += step) {
    var tick = realNumberScaleTicks ? realNumberScaleTicks[i] : {
      value: categoryScaleExtent[0] + i
    };
    var label = labelFormatter(tick, i);
    var unrotatedSingleRect = axisLabelModel.getTextRect(label);
    var singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0);
    rect ? rect.union(singleRect) : rect = singleRect;
  }
  return rect;
}
function rotateTextRect(textRect, rotate) {
  var rotateRadians = rotate * Math.PI / 180;
  var beforeWidth = textRect.width;
  var beforeHeight = textRect.height;
  var afterWidth = beforeWidth * Math.abs(Math.cos(rotateRadians)) + Math.abs(beforeHeight * Math.sin(rotateRadians));
  var afterHeight = beforeWidth * Math.abs(Math.sin(rotateRadians)) + Math.abs(beforeHeight * Math.cos(rotateRadians));
  var rotatedRect = new core_BoundingRect(textRect.x, textRect.y, afterWidth, afterHeight);
  return rotatedRect;
}
/**
 * @param model axisLabelModel or axisTickModel
 * @return {number|String} Can be null|'auto'|number|function
 */
function getOptionCategoryInterval(model) {
  var interval = model.get('interval');
  return interval == null ? 'auto' : interval;
}
/**
 * Set `categoryInterval` as 0 implicitly indicates that
 * show all labels regardless of overlap.
 * @param {Object} axis axisModel.axis
 */
function shouldShowAllLabels(axis) {
  return axis.type === 'category' && getOptionCategoryInterval(axis.getLabelModel()) === 0;
}
function getDataDimensionsOnAxis(data, axisDim) {
  // Remove duplicated dat dimensions caused by `getStackedDimension`.
  var dataDimMap = {};
  // Currently `mapDimensionsAll` will contain stack result dimension ('__\0ecstackresult').
  // PENDING: is it reasonable? Do we need to remove the original dim from "coord dim" since
  // there has been stacked result dim?
  util["each"](data.mapDimensionsAll(axisDim), function (dataDim) {
    // For example, the extent of the original dimension
    // is [0.1, 0.5], the extent of the `stackResultDimension`
    // is [7, 9], the final extent should NOT include [0.1, 0.5],
    // because there is no graphic corresponding to [0.1, 0.5].
    // See the case in `test/area-stack.html` `main1`, where area line
    // stack needs `yAxis` not start from 0.
    dataDimMap[getStackedDimension(data, dataDim)] = true;
  });
  return util["keys"](dataDimMap);
}
function unionAxisExtentFromData(dataExtent, data, axisDim) {
  if (data) {
    util["each"](getDataDimensionsOnAxis(data, axisDim), function (dim) {
      var seriesExtent = data.getApproximateExtent(dim);
      seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]);
      seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]);
    });
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisModelCommonMixin.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
var AxisModelCommonMixin = /** @class */function () {
  function AxisModelCommonMixin() {}
  AxisModelCommonMixin.prototype.getNeedCrossZero = function () {
    var option = this.option;
    return !option.scale;
  };
  /**
   * Should be implemented by each axis model if necessary.
   * @return coordinate system model
   */
  AxisModelCommonMixin.prototype.getCoordSysModel = function () {
    return;
  };
  return AxisModelCommonMixin;
}();

// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api/helper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * This module exposes helper functions for developing extensions.
 */


// import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge.js';







/**
 * Create a multi dimension List structure from seriesModel.
 */
function createList(seriesModel) {
  return helper_createSeriesData(null, seriesModel);
}
// export function createGraph(seriesModel) {
//     let nodes = seriesModel.get('data');
//     let links = seriesModel.get('links');
//     return createGraphFromNodeEdge(nodes, links, seriesModel);
// }


var helper_dataStack = {
  isDimensionStacked: isDimensionStacked,
  enableDataStack: enableDataStack,
  getStackedDimension: getStackedDimension
};
/**
 * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
 * @param {string} symbolDesc
 * @param {number} x
 * @param {number} y
 * @param {number} w
 * @param {number} h
 * @param {string} color
 */

/**
 * Create scale
 * @param {Array.<number>} dataExtent
 * @param {Object|module:echarts/Model} option If `optoin.type`
 *        is secified, it can only be `'value'` currently.
 */
function createScale(dataExtent, option) {
  var axisModel = option;
  if (!(option instanceof model_Model)) {
    axisModel = new model_Model(option);
    // FIXME
    // Currently AxisModelCommonMixin has nothing to do with the
    // the requirements of `axisHelper.createScaleByModel`. For
    // example the methods `getCategories` and `getOrdinalMeta`
    // are required for `'category'` axis, and ecModel is required
    // for `'time'` axis. But occasionally echarts-gl happened
    // to only use `'value'` axis.
    // zrUtil.mixin(axisModel, AxisModelCommonMixin);
  }
  var scale = createScaleByModel(axisModel);
  scale.setExtent(dataExtent[0], dataExtent[1]);
  niceScaleExtent(scale, axisModel);
  return scale;
}
/**
 * Mixin common methods to axis model,
 *
 * Include methods
 * `getFormattedLabels() => Array.<string>`
 * `getCategories() => Array.<string>`
 * `getMin(origin: boolean) => number`
 * `getMax(origin: boolean) => number`
 * `getNeedCrossZero() => boolean`
 */
function mixinAxisModelCommonMethods(Model) {
  util["mixin"](Model, AxisModelCommonMixin);
}


function helper_createTextStyle(textStyleModel, opts) {
  opts = opts || {};
  return createTextStyle(textStyleModel, null, null, opts.state !== 'normal');
}
// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/polygon.js

var polygon_EPSILON = 1e-8;
function polygon_isAroundEqual(a, b) {
    return Math.abs(a - b) < polygon_EPSILON;
}
function polygon_contain(points, x, y) {
    var w = 0;
    var p = points[0];
    if (!p) {
        return false;
    }
    for (var i = 1; i < points.length; i++) {
        var p2 = points[i];
        w += windingLine(p[0], p[1], p2[0], p2[1], x, y);
        p = p2;
    }
    var p0 = points[0];
    if (!polygon_isAroundEqual(p[0], p0[0]) || !polygon_isAroundEqual(p[1], p0[1])) {
        w += windingLine(p[0], p[1], p0[0], p0[1], x, y);
    }
    return w !== 0;
}

// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/Region.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var TMP_TRANSFORM = [];
function transformPoints(points, transform) {
  for (var p = 0; p < points.length; p++) {
    applyTransform(points[p], points[p], transform);
  }
}
function updateBBoxFromPoints(points, min, max, projection) {
  for (var i = 0; i < points.length; i++) {
    var p = points[i];
    if (projection) {
      // projection may return null point.
      p = projection.project(p);
    }
    if (p && isFinite(p[0]) && isFinite(p[1])) {
      vector_min(min, min, p);
      vector_max(max, max, p);
    }
  }
}
function centroid(points) {
  var signedArea = 0;
  var cx = 0;
  var cy = 0;
  var len = points.length;
  var x0 = points[len - 1][0];
  var y0 = points[len - 1][1];
  // Polygon should been closed.
  for (var i = 0; i < len; i++) {
    var x1 = points[i][0];
    var y1 = points[i][1];
    var a = x0 * y1 - x1 * y0;
    signedArea += a;
    cx += (x0 + x1) * a;
    cy += (y0 + y1) * a;
    x0 = x1;
    y0 = y1;
  }
  return signedArea ? [cx / signedArea / 3, cy / signedArea / 3, signedArea] : [points[0][0] || 0, points[0][1] || 0];
}
var Region = /** @class */function () {
  function Region(name) {
    this.name = name;
  }
  Region.prototype.setCenter = function (center) {
    this._center = center;
  };
  /**
   * Get center point in data unit. That is,
   * for GeoJSONRegion, the unit is lat/lng,
   * for GeoSVGRegion, the unit is SVG local coord.
   */
  Region.prototype.getCenter = function () {
    var center = this._center;
    if (!center) {
      // In most cases there are no need to calculate this center.
      // So calculate only when called.
      center = this._center = this.calcCenter();
    }
    return center;
  };
  return Region;
}();

var GeoJSONPolygonGeometry = /** @class */function () {
  function GeoJSONPolygonGeometry(exterior, interiors) {
    this.type = 'polygon';
    this.exterior = exterior;
    this.interiors = interiors;
  }
  return GeoJSONPolygonGeometry;
}();

var GeoJSONLineStringGeometry = /** @class */function () {
  function GeoJSONLineStringGeometry(points) {
    this.type = 'linestring';
    this.points = points;
  }
  return GeoJSONLineStringGeometry;
}();

var Region_GeoJSONRegion = /** @class */function (_super) {
  __extends(GeoJSONRegion, _super);
  function GeoJSONRegion(name, geometries, cp) {
    var _this = _super.call(this, name) || this;
    _this.type = 'geoJSON';
    _this.geometries = geometries;
    _this._center = cp && [cp[0], cp[1]];
    return _this;
  }
  GeoJSONRegion.prototype.calcCenter = function () {
    var geometries = this.geometries;
    var largestGeo;
    var largestGeoSize = 0;
    for (var i = 0; i < geometries.length; i++) {
      var geo = geometries[i];
      var exterior = geo.exterior;
      // Simple trick to use points count instead of polygon area as region size.
      // Ignore linestring
      var size = exterior && exterior.length;
      if (size > largestGeoSize) {
        largestGeo = geo;
        largestGeoSize = size;
      }
    }
    if (largestGeo) {
      return centroid(largestGeo.exterior);
    }
    // from bounding rect by default.
    var rect = this.getBoundingRect();
    return [rect.x + rect.width / 2, rect.y + rect.height / 2];
  };
  GeoJSONRegion.prototype.getBoundingRect = function (projection) {
    var rect = this._rect;
    // Always recalculate if using projection.
    if (rect && !projection) {
      return rect;
    }
    var min = [Infinity, Infinity];
    var max = [-Infinity, -Infinity];
    var geometries = this.geometries;
    Object(util["each"])(geometries, function (geo) {
      if (geo.type === 'polygon') {
        // Doesn't consider hole
        updateBBoxFromPoints(geo.exterior, min, max, projection);
      } else {
        Object(util["each"])(geo.points, function (points) {
          updateBBoxFromPoints(points, min, max, projection);
        });
      }
    });
    // Normalie invalid bounding.
    if (!(isFinite(min[0]) && isFinite(min[1]) && isFinite(max[0]) && isFinite(max[1]))) {
      min[0] = min[1] = max[0] = max[1] = 0;
    }
    rect = new core_BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);
    if (!projection) {
      this._rect = rect;
    }
    return rect;
  };
  GeoJSONRegion.prototype.contain = function (coord) {
    var rect = this.getBoundingRect();
    var geometries = this.geometries;
    if (!rect.contain(coord[0], coord[1])) {
      return false;
    }
    loopGeo: for (var i = 0, len = geometries.length; i < len; i++) {
      var geo = geometries[i];
      // Only support polygon.
      if (geo.type !== 'polygon') {
        continue;
      }
      var exterior = geo.exterior;
      var interiors = geo.interiors;
      if (polygon_contain(exterior, coord[0], coord[1])) {
        // Not in the region if point is in the hole.
        for (var k = 0; k < (interiors ? interiors.length : 0); k++) {
          if (polygon_contain(interiors[k], coord[0], coord[1])) {
            continue loopGeo;
          }
        }
        return true;
      }
    }
    return false;
  };
  /**
   * Transform the raw coords to target bounding.
   * @param x
   * @param y
   * @param width
   * @param height
   */
  GeoJSONRegion.prototype.transformTo = function (x, y, width, height) {
    var rect = this.getBoundingRect();
    var aspect = rect.width / rect.height;
    if (!width) {
      width = aspect * height;
    } else if (!height) {
      height = width / aspect;
    }
    var target = new core_BoundingRect(x, y, width, height);
    var transform = rect.calculateTransform(target);
    var geometries = this.geometries;
    for (var i = 0; i < geometries.length; i++) {
      var geo = geometries[i];
      if (geo.type === 'polygon') {
        transformPoints(geo.exterior, transform);
        Object(util["each"])(geo.interiors, function (interior) {
          transformPoints(interior, transform);
        });
      } else {
        Object(util["each"])(geo.points, function (points) {
          transformPoints(points, transform);
        });
      }
    }
    rect = this._rect;
    rect.copy(target);
    // Update center
    this._center = [rect.x + rect.width / 2, rect.y + rect.height / 2];
  };
  GeoJSONRegion.prototype.cloneShallow = function (name) {
    name == null && (name = this.name);
    var newRegion = new GeoJSONRegion(name, this.geometries, this._center);
    newRegion._rect = this._rect;
    newRegion.transformTo = null; // Simply avoid to be called.
    return newRegion;
  };
  return GeoJSONRegion;
}(Region);

var Region_GeoSVGRegion = /** @class */function (_super) {
  __extends(GeoSVGRegion, _super);
  function GeoSVGRegion(name, elOnlyForCalculate) {
    var _this = _super.call(this, name) || this;
    _this.type = 'geoSVG';
    _this._elOnlyForCalculate = elOnlyForCalculate;
    return _this;
  }
  GeoSVGRegion.prototype.calcCenter = function () {
    var el = this._elOnlyForCalculate;
    var rect = el.getBoundingRect();
    var center = [rect.x + rect.width / 2, rect.y + rect.height / 2];
    var mat = identity(TMP_TRANSFORM);
    var target = el;
    while (target && !target.isGeoSVGGraphicRoot) {
      matrix_mul(mat, target.getLocalTransform(), mat);
      target = target.parent;
    }
    matrix_invert(mat, mat);
    applyTransform(center, center, mat);
    return center;
  };
  return GeoSVGRegion;
}(Region);

// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/parseGeoJson.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Parse and decode geo json
 */


function decode(json) {
  if (!json.UTF8Encoding) {
    return json;
  }
  var jsonCompressed = json;
  var encodeScale = jsonCompressed.UTF8Scale;
  if (encodeScale == null) {
    encodeScale = 1024;
  }
  var features = jsonCompressed.features;
  util["each"](features, function (feature) {
    var geometry = feature.geometry;
    var encodeOffsets = geometry.encodeOffsets;
    var coordinates = geometry.coordinates;
    // Geometry may be appeded manually in the script after json loaded.
    // In this case this geometry is usually not encoded.
    if (!encodeOffsets) {
      return;
    }
    switch (geometry.type) {
      case 'LineString':
        geometry.coordinates = decodeRing(coordinates, encodeOffsets, encodeScale);
        break;
      case 'Polygon':
        decodeRings(coordinates, encodeOffsets, encodeScale);
        break;
      case 'MultiLineString':
        decodeRings(coordinates, encodeOffsets, encodeScale);
        break;
      case 'MultiPolygon':
        util["each"](coordinates, function (rings, idx) {
          return decodeRings(rings, encodeOffsets[idx], encodeScale);
        });
    }
  });
  // Has been decoded
  jsonCompressed.UTF8Encoding = false;
  return jsonCompressed;
}
function decodeRings(rings, encodeOffsets, encodeScale) {
  for (var c = 0; c < rings.length; c++) {
    rings[c] = decodeRing(rings[c], encodeOffsets[c], encodeScale);
  }
}
function decodeRing(coordinate, encodeOffsets, encodeScale) {
  var result = [];
  var prevX = encodeOffsets[0];
  var prevY = encodeOffsets[1];
  for (var i = 0; i < coordinate.length; i += 2) {
    var x = coordinate.charCodeAt(i) - 64;
    var y = coordinate.charCodeAt(i + 1) - 64;
    // ZigZag decoding
    x = x >> 1 ^ -(x & 1);
    y = y >> 1 ^ -(y & 1);
    // Delta deocding
    x += prevX;
    y += prevY;
    prevX = x;
    prevY = y;
    // Dequantize
    result.push([x / encodeScale, y / encodeScale]);
  }
  return result;
}
function parseGeoJSON(geoJson, nameProperty) {
  geoJson = decode(geoJson);
  return util["map"](util["filter"](geoJson.features, function (featureObj) {
    // Output of mapshaper may have geometry null
    return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0;
  }), function (featureObj) {
    var properties = featureObj.properties;
    var geo = featureObj.geometry;
    var geometries = [];
    switch (geo.type) {
      case 'Polygon':
        var coordinates = geo.coordinates;
        // According to the GeoJSON specification.
        // First must be exterior, and the rest are all interior(holes).
        geometries.push(new GeoJSONPolygonGeometry(coordinates[0], coordinates.slice(1)));
        break;
      case 'MultiPolygon':
        util["each"](geo.coordinates, function (item) {
          if (item[0]) {
            geometries.push(new GeoJSONPolygonGeometry(item[0], item.slice(1)));
          }
        });
        break;
      case 'LineString':
        geometries.push(new GeoJSONLineStringGeometry([geo.coordinates]));
        break;
      case 'MultiLineString':
        geometries.push(new GeoJSONLineStringGeometry(geo.coordinates));
    }
    var region = new Region_GeoJSONRegion(properties[nameProperty || 'name'], geometries, properties.cp);
    region.properties = properties;
    return region;
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api/number.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api/time.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api/graphic.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// CONCATENATED MODULE: ./node_modules/echarts/lib/legacy/getTextRect.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function getTextRect(text, font, align, verticalAlign, padding, rich, truncate, lineHeight) {
  var textEl = new Text({
    style: {
      text: text,
      font: font,
      align: align,
      verticalAlign: verticalAlign,
      padding: padding,
      rich: rich,
      overflow: truncate ? 'truncate' : null,
      lineHeight: lineHeight
    }
  });
  return textEl.getBoundingRect();
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api/format.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api/util.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisTickLabelBuilder.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var axisTickLabelBuilder_inner = makeInner();
function tickValuesToNumbers(axis, values) {
  var nums = util["map"](values, function (val) {
    return axis.scale.parse(val);
  });
  if (axis.type === 'time' && nums.length > 0) {
    // Time axis needs duplicate first/last tick (see TimeScale.getTicks())
    // The first and last tick/label don't get drawn
    nums.sort();
    nums.unshift(nums[0]);
    nums.push(nums[nums.length - 1]);
  }
  return nums;
}
function createAxisLabels(axis) {
  var custom = axis.getLabelModel().get('customValues');
  if (custom) {
    var labelFormatter_1 = makeLabelFormatter(axis);
    var extent_1 = axis.scale.getExtent();
    var tickNumbers = tickValuesToNumbers(axis, custom);
    var ticks = util["filter"](tickNumbers, function (val) {
      return val >= extent_1[0] && val <= extent_1[1];
    });
    return {
      labels: util["map"](ticks, function (numval) {
        var tick = {
          value: numval
        };
        return {
          formattedLabel: labelFormatter_1(tick),
          rawLabel: axis.scale.getLabel(tick),
          tickValue: numval
        };
      })
    };
  }
  // Only ordinal scale support tick interval
  return axis.type === 'category' ? makeCategoryLabels(axis) : makeRealNumberLabels(axis);
}
/**
 * @param {module:echats/coord/Axis} axis
 * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.
 * @return {Object} {
 *     ticks: Array.<number>
 *     tickCategoryInterval: number
 * }
 */
function createAxisTicks(axis, tickModel) {
  var custom = axis.getTickModel().get('customValues');
  if (custom) {
    var extent_2 = axis.scale.getExtent();
    var tickNumbers = tickValuesToNumbers(axis, custom);
    return {
      ticks: util["filter"](tickNumbers, function (val) {
        return val >= extent_2[0] && val <= extent_2[1];
      })
    };
  }
  // Only ordinal scale support tick interval
  return axis.type === 'category' ? makeCategoryTicks(axis, tickModel) : {
    ticks: util["map"](axis.scale.getTicks(), function (tick) {
      return tick.value;
    })
  };
}
function makeCategoryLabels(axis) {
  var labelModel = axis.getLabelModel();
  var result = makeCategoryLabelsActually(axis, labelModel);
  return !labelModel.get('show') || axis.scale.isBlank() ? {
    labels: [],
    labelCategoryInterval: result.labelCategoryInterval
  } : result;
}
function makeCategoryLabelsActually(axis, labelModel) {
  var labelsCache = getListCache(axis, 'labels');
  var optionLabelInterval = getOptionCategoryInterval(labelModel);
  var result = listCacheGet(labelsCache, optionLabelInterval);
  if (result) {
    return result;
  }
  var labels;
  var numericLabelInterval;
  if (util["isFunction"](optionLabelInterval)) {
    labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval);
  } else {
    numericLabelInterval = optionLabelInterval === 'auto' ? makeAutoCategoryInterval(axis) : optionLabelInterval;
    labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval);
  }
  // Cache to avoid calling interval function repeatedly.
  return listCacheSet(labelsCache, optionLabelInterval, {
    labels: labels,
    labelCategoryInterval: numericLabelInterval
  });
}
function makeCategoryTicks(axis, tickModel) {
  var ticksCache = getListCache(axis, 'ticks');
  var optionTickInterval = getOptionCategoryInterval(tickModel);
  var result = listCacheGet(ticksCache, optionTickInterval);
  if (result) {
    return result;
  }
  var ticks;
  var tickCategoryInterval;
  // Optimize for the case that large category data and no label displayed,
  // we should not return all ticks.
  if (!tickModel.get('show') || axis.scale.isBlank()) {
    ticks = [];
  }
  if (util["isFunction"](optionTickInterval)) {
    ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true);
  }
  // Always use label interval by default despite label show. Consider this
  // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows
  // labels. `splitLine` and `axisTick` should be consistent in this case.
  else if (optionTickInterval === 'auto') {
    var labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel());
    tickCategoryInterval = labelsResult.labelCategoryInterval;
    ticks = util["map"](labelsResult.labels, function (labelItem) {
      return labelItem.tickValue;
    });
  } else {
    tickCategoryInterval = optionTickInterval;
    ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);
  }
  // Cache to avoid calling interval function repeatedly.
  return listCacheSet(ticksCache, optionTickInterval, {
    ticks: ticks,
    tickCategoryInterval: tickCategoryInterval
  });
}
function makeRealNumberLabels(axis) {
  var ticks = axis.scale.getTicks();
  var labelFormatter = makeLabelFormatter(axis);
  return {
    labels: util["map"](ticks, function (tick, idx) {
      return {
        level: tick.level,
        formattedLabel: labelFormatter(tick, idx),
        rawLabel: axis.scale.getLabel(tick),
        tickValue: tick.value
      };
    })
  };
}
function getListCache(axis, prop) {
  // Because key can be a function, and cache size always is small, we use array cache.
  return axisTickLabelBuilder_inner(axis)[prop] || (axisTickLabelBuilder_inner(axis)[prop] = []);
}
function listCacheGet(cache, key) {
  for (var i = 0; i < cache.length; i++) {
    if (cache[i].key === key) {
      return cache[i].value;
    }
  }
}
function listCacheSet(cache, key, value) {
  cache.push({
    key: key,
    value: value
  });
  return value;
}
function makeAutoCategoryInterval(axis) {
  var result = axisTickLabelBuilder_inner(axis).autoInterval;
  return result != null ? result : axisTickLabelBuilder_inner(axis).autoInterval = axis.calculateCategoryInterval();
}
/**
 * Calculate interval for category axis ticks and labels.
 * To get precise result, at least one of `getRotate` and `isHorizontal`
 * should be implemented in axis.
 */
function calculateCategoryInterval(axis) {
  var params = fetchAutoCategoryIntervalCalculationParams(axis);
  var labelFormatter = makeLabelFormatter(axis);
  var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI;
  var ordinalScale = axis.scale;
  var ordinalExtent = ordinalScale.getExtent();
  // Providing this method is for optimization:
  // avoid generating a long array by `getTicks`
  // in large category data case.
  var tickCount = ordinalScale.count();
  if (ordinalExtent[1] - ordinalExtent[0] < 1) {
    return 0;
  }
  var step = 1;
  // Simple optimization. Empirical value: tick count should less than 40.
  if (tickCount > 40) {
    step = Math.max(1, Math.floor(tickCount / 40));
  }
  var tickValue = ordinalExtent[0];
  var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);
  var unitW = Math.abs(unitSpan * Math.cos(rotation));
  var unitH = Math.abs(unitSpan * Math.sin(rotation));
  var maxW = 0;
  var maxH = 0;
  // Caution: Performance sensitive for large category data.
  // Consider dataZoom, we should make appropriate step to avoid O(n) loop.
  for (; tickValue <= ordinalExtent[1]; tickValue += step) {
    var width = 0;
    var height = 0;
    // Not precise, do not consider align and vertical align
    // and each distance from axis line yet.
    var rect = getBoundingRect(labelFormatter({
      value: tickValue
    }), params.font, 'center', 'top');
    // Magic number
    width = rect.width * 1.3;
    height = rect.height * 1.3;
    // Min size, void long loop.
    maxW = Math.max(maxW, width, 7);
    maxH = Math.max(maxH, height, 7);
  }
  var dw = maxW / unitW;
  var dh = maxH / unitH;
  // 0/0 is NaN, 1/0 is Infinity.
  isNaN(dw) && (dw = Infinity);
  isNaN(dh) && (dh = Infinity);
  var interval = Math.max(0, Math.floor(Math.min(dw, dh)));
  var cache = axisTickLabelBuilder_inner(axis.model);
  var axisExtent = axis.getExtent();
  var lastAutoInterval = cache.lastAutoInterval;
  var lastTickCount = cache.lastTickCount;
  // Use cache to keep interval stable while moving zoom window,
  // otherwise the calculated interval might jitter when the zoom
  // window size is close to the interval-changing size.
  // For example, if all of the axis labels are `a, b, c, d, e, f, g`.
  // The jitter will cause that sometimes the displayed labels are
  // `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1).
  if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1
  // Always choose the bigger one, otherwise the critical
  // point is not the same when zooming in or zooming out.
  && lastAutoInterval > interval
  // If the axis change is caused by chart resize, the cache should not
  // be used. Otherwise some hidden labels might not be shown again.
  && cache.axisExtent0 === axisExtent[0] && cache.axisExtent1 === axisExtent[1]) {
    interval = lastAutoInterval;
  }
  // Only update cache if cache not used, otherwise the
  // changing of interval is too insensitive.
  else {
    cache.lastTickCount = tickCount;
    cache.lastAutoInterval = interval;
    cache.axisExtent0 = axisExtent[0];
    cache.axisExtent1 = axisExtent[1];
  }
  return interval;
}
function fetchAutoCategoryIntervalCalculationParams(axis) {
  var labelModel = axis.getLabelModel();
  return {
    axisRotate: axis.getRotate ? axis.getRotate() : axis.isHorizontal && !axis.isHorizontal() ? 90 : 0,
    labelRotate: labelModel.get('rotate') || 0,
    font: labelModel.getFont()
  };
}
function makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) {
  var labelFormatter = makeLabelFormatter(axis);
  var ordinalScale = axis.scale;
  var ordinalExtent = ordinalScale.getExtent();
  var labelModel = axis.getLabelModel();
  var result = [];
  // TODO: axisType: ordinalTime, pick the tick from each month/day/year/...
  var step = Math.max((categoryInterval || 0) + 1, 1);
  var startTick = ordinalExtent[0];
  var tickCount = ordinalScale.count();
  // Calculate start tick based on zero if possible to keep label consistent
  // while zooming and moving while interval > 0. Otherwise the selection
  // of displayable ticks and symbols probably keep changing.
  // 3 is empirical value.
  if (startTick !== 0 && step > 1 && tickCount / step > 2) {
    startTick = Math.round(Math.ceil(startTick / step) * step);
  }
  // (1) Only add min max label here but leave overlap checking
  // to render stage, which also ensure the returned list
  // suitable for splitLine and splitArea rendering.
  // (2) Scales except category always contain min max label so
  // do not need to perform this process.
  var showAllLabel = shouldShowAllLabels(axis);
  var includeMinLabel = labelModel.get('showMinLabel') || showAllLabel;
  var includeMaxLabel = labelModel.get('showMaxLabel') || showAllLabel;
  if (includeMinLabel && startTick !== ordinalExtent[0]) {
    addItem(ordinalExtent[0]);
  }
  // Optimize: avoid generating large array by `ordinalScale.getTicks()`.
  var tickValue = startTick;
  for (; tickValue <= ordinalExtent[1]; tickValue += step) {
    addItem(tickValue);
  }
  if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) {
    addItem(ordinalExtent[1]);
  }
  function addItem(tickValue) {
    var tickObj = {
      value: tickValue
    };
    result.push(onlyTick ? tickValue : {
      formattedLabel: labelFormatter(tickObj),
      rawLabel: ordinalScale.getLabel(tickObj),
      tickValue: tickValue
    });
  }
  return result;
}
function makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick) {
  var ordinalScale = axis.scale;
  var labelFormatter = makeLabelFormatter(axis);
  var result = [];
  util["each"](ordinalScale.getTicks(), function (tick) {
    var rawLabel = ordinalScale.getLabel(tick);
    var tickValue = tick.value;
    if (categoryInterval(tick.value, rawLabel)) {
      result.push(onlyTick ? tickValue : {
        formattedLabel: labelFormatter(tick),
        rawLabel: rawLabel,
        tickValue: tickValue
      });
    }
  });
  return result;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/Axis.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var NORMALIZED_EXTENT = [0, 1];
/**
 * Base class of Axis.
 */
var Axis_Axis = /** @class */function () {
  function Axis(dim, scale, extent) {
    this.onBand = false;
    this.inverse = false;
    this.dim = dim;
    this.scale = scale;
    this._extent = extent || [0, 0];
  }
  /**
   * If axis extent contain given coord
   */
  Axis.prototype.contain = function (coord) {
    var extent = this._extent;
    var min = Math.min(extent[0], extent[1]);
    var max = Math.max(extent[0], extent[1]);
    return coord >= min && coord <= max;
  };
  /**
   * If axis extent contain given data
   */
  Axis.prototype.containData = function (data) {
    return this.scale.contain(data);
  };
  /**
   * Get coord extent.
   */
  Axis.prototype.getExtent = function () {
    return this._extent.slice();
  };
  /**
   * Get precision used for formatting
   */
  Axis.prototype.getPixelPrecision = function (dataExtent) {
    return getPixelPrecision(dataExtent || this.scale.getExtent(), this._extent);
  };
  /**
   * Set coord extent
   */
  Axis.prototype.setExtent = function (start, end) {
    var extent = this._extent;
    extent[0] = start;
    extent[1] = end;
  };
  /**
   * Convert data to coord. Data is the rank if it has an ordinal scale
   */
  Axis.prototype.dataToCoord = function (data, clamp) {
    var extent = this._extent;
    var scale = this.scale;
    data = scale.normalize(data);
    if (this.onBand && scale.type === 'ordinal') {
      extent = extent.slice();
      fixExtentWithBands(extent, scale.count());
    }
    return linearMap(data, NORMALIZED_EXTENT, extent, clamp);
  };
  /**
   * Convert coord to data. Data is the rank if it has an ordinal scale
   */
  Axis.prototype.coordToData = function (coord, clamp) {
    var extent = this._extent;
    var scale = this.scale;
    if (this.onBand && scale.type === 'ordinal') {
      extent = extent.slice();
      fixExtentWithBands(extent, scale.count());
    }
    var t = linearMap(coord, extent, NORMALIZED_EXTENT, clamp);
    return this.scale.scale(t);
  };
  /**
   * Convert pixel point to data in axis
   */
  Axis.prototype.pointToData = function (point, clamp) {
    // Should be implemented in derived class if necessary.
    return;
  };
  /**
   * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`,
   * `axis.getTicksCoords` considers `onBand`, which is used by
   * `boundaryGap:true` of category axis and splitLine and splitArea.
   * @param opt.tickModel default: axis.model.getModel('axisTick')
   * @param opt.clamp If `true`, the first and the last
   *        tick must be at the axis end points. Otherwise, clip ticks
   *        that outside the axis extent.
   */
  Axis.prototype.getTicksCoords = function (opt) {
    opt = opt || {};
    var tickModel = opt.tickModel || this.getTickModel();
    var result = createAxisTicks(this, tickModel);
    var ticks = result.ticks;
    var ticksCoords = Object(util["map"])(ticks, function (tickVal) {
      return {
        coord: this.dataToCoord(this.scale.type === 'ordinal' ? this.scale.getRawOrdinalNumber(tickVal) : tickVal),
        tickValue: tickVal
      };
    }, this);
    var alignWithLabel = tickModel.get('alignWithLabel');
    fixOnBandTicksCoords(this, ticksCoords, alignWithLabel, opt.clamp);
    return ticksCoords;
  };
  Axis.prototype.getMinorTicksCoords = function () {
    if (this.scale.type === 'ordinal') {
      // Category axis doesn't support minor ticks
      return [];
    }
    var minorTickModel = this.model.getModel('minorTick');
    var splitNumber = minorTickModel.get('splitNumber');
    // Protection.
    if (!(splitNumber > 0 && splitNumber < 100)) {
      splitNumber = 5;
    }
    var minorTicks = this.scale.getMinorTicks(splitNumber);
    var minorTicksCoords = Object(util["map"])(minorTicks, function (minorTicksGroup) {
      return Object(util["map"])(minorTicksGroup, function (minorTick) {
        return {
          coord: this.dataToCoord(minorTick),
          tickValue: minorTick
        };
      }, this);
    }, this);
    return minorTicksCoords;
  };
  Axis.prototype.getViewLabels = function () {
    return createAxisLabels(this).labels;
  };
  Axis.prototype.getLabelModel = function () {
    return this.model.getModel('axisLabel');
  };
  /**
   * Notice here we only get the default tick model. For splitLine
   * or splitArea, we should pass the splitLineModel or splitAreaModel
   * manually when calling `getTicksCoords`.
   * In GL, this method may be overridden to:
   * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`
   */
  Axis.prototype.getTickModel = function () {
    return this.model.getModel('axisTick');
  };
  /**
   * Get width of band
   */
  Axis.prototype.getBandWidth = function () {
    var axisExtent = this._extent;
    var dataExtent = this.scale.getExtent();
    var len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0);
    // Fix #2728, avoid NaN when only one data.
    len === 0 && (len = 1);
    var size = Math.abs(axisExtent[1] - axisExtent[0]);
    return Math.abs(size) / len;
  };
  /**
   * Only be called in category axis.
   * Can be overridden, consider other axes like in 3D.
   * @return Auto interval for cateogry axis tick and label
   */
  Axis.prototype.calculateCategoryInterval = function () {
    return calculateCategoryInterval(this);
  };
  return Axis;
}();
function fixExtentWithBands(extent, nTick) {
  var size = extent[1] - extent[0];
  var len = nTick;
  var margin = size / len / 2;
  extent[0] += margin;
  extent[1] -= margin;
}
// If axis has labels [1, 2, 3, 4]. Bands on the axis are
// |---1---|---2---|---3---|---4---|.
// So the displayed ticks and splitLine/splitArea should between
// each data item, otherwise cause misleading (e.g., split tow bars
// of a single data item when there are two bar series).
// Also consider if tickCategoryInterval > 0 and onBand, ticks and
// splitLine/spliteArea should layout appropriately corresponding
// to displayed labels. (So we should not use `getBandWidth` in this
// case).
function fixOnBandTicksCoords(axis, ticksCoords, alignWithLabel, clamp) {
  var ticksLen = ticksCoords.length;
  if (!axis.onBand || alignWithLabel || !ticksLen) {
    return;
  }
  var axisExtent = axis.getExtent();
  var last;
  var diffSize;
  if (ticksLen === 1) {
    ticksCoords[0].coord = axisExtent[0];
    last = ticksCoords[1] = {
      coord: axisExtent[1],
      tickValue: ticksCoords[0].tickValue
    };
  } else {
    var crossLen = ticksCoords[ticksLen - 1].tickValue - ticksCoords[0].tickValue;
    var shift_1 = (ticksCoords[ticksLen - 1].coord - ticksCoords[0].coord) / crossLen;
    Object(util["each"])(ticksCoords, function (ticksItem) {
      ticksItem.coord -= shift_1 / 2;
    });
    var dataExtent = axis.scale.getExtent();
    diffSize = 1 + dataExtent[1] - ticksCoords[ticksLen - 1].tickValue;
    last = {
      coord: ticksCoords[ticksLen - 1].coord + shift_1 * diffSize,
      tickValue: dataExtent[1] + 1
    };
    ticksCoords.push(last);
  }
  var inverse = axisExtent[0] > axisExtent[1];
  // Handling clamp.
  if (littleThan(ticksCoords[0].coord, axisExtent[0])) {
    clamp ? ticksCoords[0].coord = axisExtent[0] : ticksCoords.shift();
  }
  if (clamp && littleThan(axisExtent[0], ticksCoords[0].coord)) {
    ticksCoords.unshift({
      coord: axisExtent[0]
    });
  }
  if (littleThan(axisExtent[1], last.coord)) {
    clamp ? last.coord = axisExtent[1] : ticksCoords.pop();
  }
  if (clamp && littleThan(last.coord, axisExtent[1])) {
    ticksCoords.push({
      coord: axisExtent[1]
    });
  }
  function littleThan(a, b) {
    // Avoid rounding error cause calculated tick coord different with extent.
    // It may cause an extra unnecessary tick added.
    a = round(a);
    b = round(b);
    return inverse ? a > b : a < b;
  }
}
/* harmony default export */ var coord_Axis = (Axis_Axis);
// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// These APIs are for more advanced usages
// For example extend charts and components, creating graphic elements, formatting.




















// --------------------- Helper Methods ---------------------













// --------------------- Export for Extension Usage ---------------------
// export {SeriesData};
 // TODO: Compatitable with exists echarts-gl code



// Only for GL

// --------------------- Deprecated Extension Methods ---------------------
// Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.
// Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:
// class Bar3DModel extends ComponentModel {}
// export function install(registers) { registers.registerComponentModel(Bar3DModel); }
// echarts.use(install);
function extendComponentModel(proto) {
  var Model = Component.extend(proto);
  Component.registerClass(Model);
  return Model;
}
function extendComponentView(proto) {
  var View = view_Component.extend(proto);
  view_Component.registerClass(View);
  return View;
}
function extendSeriesModel(proto) {
  var Model = Series.extend(proto);
  Series.registerClass(Model);
  return Model;
}
function extendChartView(proto) {
  var View = Chart.extend(proto);
  Chart.registerClass(View);
  return View;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/label/labelGuideHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var labelGuideHelper_PI2 = Math.PI * 2;
var labelGuideHelper_CMD = core_PathProxy.CMD;
var DEFAULT_SEARCH_SPACE = ['top', 'right', 'bottom', 'left'];
function getCandidateAnchor(pos, distance, rect, outPt, outDir) {
  var width = rect.width;
  var height = rect.height;
  switch (pos) {
    case 'top':
      outPt.set(rect.x + width / 2, rect.y - distance);
      outDir.set(0, -1);
      break;
    case 'bottom':
      outPt.set(rect.x + width / 2, rect.y + height + distance);
      outDir.set(0, 1);
      break;
    case 'left':
      outPt.set(rect.x - distance, rect.y + height / 2);
      outDir.set(-1, 0);
      break;
    case 'right':
      outPt.set(rect.x + width + distance, rect.y + height / 2);
      outDir.set(1, 0);
      break;
  }
}
function projectPointToArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y, out) {
  x -= cx;
  y -= cy;
  var d = Math.sqrt(x * x + y * y);
  x /= d;
  y /= d;
  // Intersect point.
  var ox = x * r + cx;
  var oy = y * r + cy;
  if (Math.abs(startAngle - endAngle) % labelGuideHelper_PI2 < 1e-4) {
    // Is a circle
    out[0] = ox;
    out[1] = oy;
    return d - r;
  }
  if (anticlockwise) {
    var tmp = startAngle;
    startAngle = normalizeRadian(endAngle);
    endAngle = normalizeRadian(tmp);
  } else {
    startAngle = normalizeRadian(startAngle);
    endAngle = normalizeRadian(endAngle);
  }
  if (startAngle > endAngle) {
    endAngle += labelGuideHelper_PI2;
  }
  var angle = Math.atan2(y, x);
  if (angle < 0) {
    angle += labelGuideHelper_PI2;
  }
  if (angle >= startAngle && angle <= endAngle || angle + labelGuideHelper_PI2 >= startAngle && angle + labelGuideHelper_PI2 <= endAngle) {
    // Project point is on the arc.
    out[0] = ox;
    out[1] = oy;
    return d - r;
  }
  var x1 = r * Math.cos(startAngle) + cx;
  var y1 = r * Math.sin(startAngle) + cy;
  var x2 = r * Math.cos(endAngle) + cx;
  var y2 = r * Math.sin(endAngle) + cy;
  var d1 = (x1 - x) * (x1 - x) + (y1 - y) * (y1 - y);
  var d2 = (x2 - x) * (x2 - x) + (y2 - y) * (y2 - y);
  if (d1 < d2) {
    out[0] = x1;
    out[1] = y1;
    return Math.sqrt(d1);
  } else {
    out[0] = x2;
    out[1] = y2;
    return Math.sqrt(d2);
  }
}
function projectPointToLine(x1, y1, x2, y2, x, y, out, limitToEnds) {
  var dx = x - x1;
  var dy = y - y1;
  var dx1 = x2 - x1;
  var dy1 = y2 - y1;
  var lineLen = Math.sqrt(dx1 * dx1 + dy1 * dy1);
  dx1 /= lineLen;
  dy1 /= lineLen;
  // dot product
  var projectedLen = dx * dx1 + dy * dy1;
  var t = projectedLen / lineLen;
  if (limitToEnds) {
    t = Math.min(Math.max(t, 0), 1);
  }
  t *= lineLen;
  var ox = out[0] = x1 + t * dx1;
  var oy = out[1] = y1 + t * dy1;
  return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));
}
function projectPointToRect(x1, y1, width, height, x, y, out) {
  if (width < 0) {
    x1 = x1 + width;
    width = -width;
  }
  if (height < 0) {
    y1 = y1 + height;
    height = -height;
  }
  var x2 = x1 + width;
  var y2 = y1 + height;
  var ox = out[0] = Math.min(Math.max(x, x1), x2);
  var oy = out[1] = Math.min(Math.max(y, y1), y2);
  return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));
}
var tmpPt = [];
function nearestPointOnRect(pt, rect, out) {
  var dist = projectPointToRect(rect.x, rect.y, rect.width, rect.height, pt.x, pt.y, tmpPt);
  out.set(tmpPt[0], tmpPt[1]);
  return dist;
}
/**
 * Calculate min distance corresponding point.
 * This method won't evaluate if point is in the path.
 */
function nearestPointOnPath(pt, path, out) {
  var xi = 0;
  var yi = 0;
  var x0 = 0;
  var y0 = 0;
  var x1;
  var y1;
  var minDist = Infinity;
  var data = path.data;
  var x = pt.x;
  var y = pt.y;
  for (var i = 0; i < data.length;) {
    var cmd = data[i++];
    if (i === 1) {
      xi = data[i];
      yi = data[i + 1];
      x0 = xi;
      y0 = yi;
    }
    var d = minDist;
    switch (cmd) {
      case labelGuideHelper_CMD.M:
        // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点
        // 在 closePath 的时候使用
        x0 = data[i++];
        y0 = data[i++];
        xi = x0;
        yi = y0;
        break;
      case labelGuideHelper_CMD.L:
        d = projectPointToLine(xi, yi, data[i], data[i + 1], x, y, tmpPt, true);
        xi = data[i++];
        yi = data[i++];
        break;
      case labelGuideHelper_CMD.C:
        d = cubicProjectPoint(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt);
        xi = data[i++];
        yi = data[i++];
        break;
      case labelGuideHelper_CMD.Q:
        d = quadraticProjectPoint(xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt);
        xi = data[i++];
        yi = data[i++];
        break;
      case labelGuideHelper_CMD.A:
        // TODO Arc 判断的开销比较大
        var cx = data[i++];
        var cy = data[i++];
        var rx = data[i++];
        var ry = data[i++];
        var theta = data[i++];
        var dTheta = data[i++];
        // TODO Arc 旋转
        i += 1;
        var anticlockwise = !!(1 - data[i++]);
        x1 = Math.cos(theta) * rx + cx;
        y1 = Math.sin(theta) * ry + cy;
        // 不是直接使用 arc 命令
        if (i <= 1) {
          // 第一个命令起点还未定义
          x0 = x1;
          y0 = y1;
        }
        // zr 使用scale来模拟椭圆, 这里也对x做一定的缩放
        var _x = (x - cx) * ry / rx + cx;
        d = projectPointToArc(cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y, tmpPt);
        xi = Math.cos(theta + dTheta) * rx + cx;
        yi = Math.sin(theta + dTheta) * ry + cy;
        break;
      case labelGuideHelper_CMD.R:
        x0 = xi = data[i++];
        y0 = yi = data[i++];
        var width = data[i++];
        var height = data[i++];
        d = projectPointToRect(x0, y0, width, height, x, y, tmpPt);
        break;
      case labelGuideHelper_CMD.Z:
        d = projectPointToLine(xi, yi, x0, y0, x, y, tmpPt, true);
        xi = x0;
        yi = y0;
        break;
    }
    if (d < minDist) {
      minDist = d;
      out.set(tmpPt[0], tmpPt[1]);
    }
  }
  return minDist;
}
// Temporal variable for intermediate usage.
var labelGuideHelper_pt0 = new core_Point();
var labelGuideHelper_pt1 = new core_Point();
var labelGuideHelper_pt2 = new core_Point();
var labelGuideHelper_dir = new core_Point();
var labelGuideHelper_dir2 = new core_Point();
/**
 * Calculate a proper guide line based on the label position and graphic element definition
 * @param label
 * @param labelRect
 * @param target
 * @param targetRect
 */
function updateLabelLinePoints(target, labelLineModel) {
  if (!target) {
    return;
  }
  var labelLine = target.getTextGuideLine();
  var label = target.getTextContent();
  // Needs to create text guide in each charts.
  if (!(label && labelLine)) {
    return;
  }
  var labelGuideConfig = target.textGuideLineConfig || {};
  var points = [[0, 0], [0, 0], [0, 0]];
  var searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE;
  var labelRect = label.getBoundingRect().clone();
  labelRect.applyTransform(label.getComputedTransform());
  var minDist = Infinity;
  var anchorPoint = labelGuideConfig.anchor;
  var targetTransform = target.getComputedTransform();
  var targetInversedTransform = targetTransform && matrix_invert([], targetTransform);
  var len = labelLineModel.get('length2') || 0;
  if (anchorPoint) {
    labelGuideHelper_pt2.copy(anchorPoint);
  }
  for (var i = 0; i < searchSpace.length; i++) {
    var candidate = searchSpace[i];
    getCandidateAnchor(candidate, 0, labelRect, labelGuideHelper_pt0, labelGuideHelper_dir);
    core_Point.scaleAndAdd(labelGuideHelper_pt1, labelGuideHelper_pt0, labelGuideHelper_dir, len);
    // Transform to target coord space.
    labelGuideHelper_pt1.transform(targetInversedTransform);
    // Note: getBoundingRect will ensure the `path` being created.
    var boundingRect = target.getBoundingRect();
    var dist = anchorPoint ? anchorPoint.distance(labelGuideHelper_pt1) : target instanceof graphic_Path ? nearestPointOnPath(labelGuideHelper_pt1, target.path, labelGuideHelper_pt2) : nearestPointOnRect(labelGuideHelper_pt1, boundingRect, labelGuideHelper_pt2);
    // TODO pt2 is in the path
    if (dist < minDist) {
      minDist = dist;
      // Transform back to global space.
      labelGuideHelper_pt1.transform(targetTransform);
      labelGuideHelper_pt2.transform(targetTransform);
      labelGuideHelper_pt2.toArray(points[0]);
      labelGuideHelper_pt1.toArray(points[1]);
      labelGuideHelper_pt0.toArray(points[2]);
    }
  }
  limitTurnAngle(points, labelLineModel.get('minTurnAngle'));
  labelLine.setShape({
    points: points
  });
}
// Temporal variable for the limitTurnAngle function
var labelGuideHelper_tmpArr = [];
var tmpProjPoint = new core_Point();
/**
 * Reduce the line segment attached to the label to limit the turn angle between two segments.
 * @param linePoints
 * @param minTurnAngle Radian of minimum turn angle. 0 - 180
 */
function limitTurnAngle(linePoints, minTurnAngle) {
  if (!(minTurnAngle <= 180 && minTurnAngle > 0)) {
    return;
  }
  minTurnAngle = minTurnAngle / 180 * Math.PI;
  // The line points can be
  //      /pt1----pt2 (label)
  //     /
  // pt0/
  labelGuideHelper_pt0.fromArray(linePoints[0]);
  labelGuideHelper_pt1.fromArray(linePoints[1]);
  labelGuideHelper_pt2.fromArray(linePoints[2]);
  core_Point.sub(labelGuideHelper_dir, labelGuideHelper_pt0, labelGuideHelper_pt1);
  core_Point.sub(labelGuideHelper_dir2, labelGuideHelper_pt2, labelGuideHelper_pt1);
  var len1 = labelGuideHelper_dir.len();
  var len2 = labelGuideHelper_dir2.len();
  if (len1 < 1e-3 || len2 < 1e-3) {
    return;
  }
  labelGuideHelper_dir.scale(1 / len1);
  labelGuideHelper_dir2.scale(1 / len2);
  var angleCos = labelGuideHelper_dir.dot(labelGuideHelper_dir2);
  var minTurnAngleCos = Math.cos(minTurnAngle);
  if (minTurnAngleCos < angleCos) {
    // Smaller than minTurnAngle
    // Calculate project point of pt0 on pt1-pt2
    var d = projectPointToLine(labelGuideHelper_pt1.x, labelGuideHelper_pt1.y, labelGuideHelper_pt2.x, labelGuideHelper_pt2.y, labelGuideHelper_pt0.x, labelGuideHelper_pt0.y, labelGuideHelper_tmpArr, false);
    tmpProjPoint.fromArray(labelGuideHelper_tmpArr);
    // Calculate new projected length with limited minTurnAngle and get the new connect point
    tmpProjPoint.scaleAndAdd(labelGuideHelper_dir2, d / Math.tan(Math.PI - minTurnAngle));
    // Limit the new calculated connect point between pt1 and pt2.
    var t = labelGuideHelper_pt2.x !== labelGuideHelper_pt1.x ? (tmpProjPoint.x - labelGuideHelper_pt1.x) / (labelGuideHelper_pt2.x - labelGuideHelper_pt1.x) : (tmpProjPoint.y - labelGuideHelper_pt1.y) / (labelGuideHelper_pt2.y - labelGuideHelper_pt1.y);
    if (isNaN(t)) {
      return;
    }
    if (t < 0) {
      core_Point.copy(tmpProjPoint, labelGuideHelper_pt1);
    } else if (t > 1) {
      core_Point.copy(tmpProjPoint, labelGuideHelper_pt2);
    }
    tmpProjPoint.toArray(linePoints[1]);
  }
}
/**
 * Limit the angle of line and the surface
 * @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite
 */
function limitSurfaceAngle(linePoints, surfaceNormal, maxSurfaceAngle) {
  if (!(maxSurfaceAngle <= 180 && maxSurfaceAngle > 0)) {
    return;
  }
  maxSurfaceAngle = maxSurfaceAngle / 180 * Math.PI;
  labelGuideHelper_pt0.fromArray(linePoints[0]);
  labelGuideHelper_pt1.fromArray(linePoints[1]);
  labelGuideHelper_pt2.fromArray(linePoints[2]);
  core_Point.sub(labelGuideHelper_dir, labelGuideHelper_pt1, labelGuideHelper_pt0);
  core_Point.sub(labelGuideHelper_dir2, labelGuideHelper_pt2, labelGuideHelper_pt1);
  var len1 = labelGuideHelper_dir.len();
  var len2 = labelGuideHelper_dir2.len();
  if (len1 < 1e-3 || len2 < 1e-3) {
    return;
  }
  labelGuideHelper_dir.scale(1 / len1);
  labelGuideHelper_dir2.scale(1 / len2);
  var angleCos = labelGuideHelper_dir.dot(surfaceNormal);
  var maxSurfaceAngleCos = Math.cos(maxSurfaceAngle);
  if (angleCos < maxSurfaceAngleCos) {
    // Calculate project point of pt0 on pt1-pt2
    var d = projectPointToLine(labelGuideHelper_pt1.x, labelGuideHelper_pt1.y, labelGuideHelper_pt2.x, labelGuideHelper_pt2.y, labelGuideHelper_pt0.x, labelGuideHelper_pt0.y, labelGuideHelper_tmpArr, false);
    tmpProjPoint.fromArray(labelGuideHelper_tmpArr);
    var HALF_PI = Math.PI / 2;
    var angle2 = Math.acos(labelGuideHelper_dir2.dot(surfaceNormal));
    var newAngle = HALF_PI + angle2 - maxSurfaceAngle;
    if (newAngle >= HALF_PI) {
      // parallel
      core_Point.copy(tmpProjPoint, labelGuideHelper_pt2);
    } else {
      // Calculate new projected length with limited minTurnAngle and get the new connect point
      tmpProjPoint.scaleAndAdd(labelGuideHelper_dir2, d / Math.tan(Math.PI / 2 - newAngle));
      // Limit the new calculated connect point between pt1 and pt2.
      var t = labelGuideHelper_pt2.x !== labelGuideHelper_pt1.x ? (tmpProjPoint.x - labelGuideHelper_pt1.x) / (labelGuideHelper_pt2.x - labelGuideHelper_pt1.x) : (tmpProjPoint.y - labelGuideHelper_pt1.y) / (labelGuideHelper_pt2.y - labelGuideHelper_pt1.y);
      if (isNaN(t)) {
        return;
      }
      if (t < 0) {
        core_Point.copy(tmpProjPoint, labelGuideHelper_pt1);
      } else if (t > 1) {
        core_Point.copy(tmpProjPoint, labelGuideHelper_pt2);
      }
    }
    tmpProjPoint.toArray(linePoints[1]);
  }
}
function setLabelLineState(labelLine, ignore, stateName, stateModel) {
  var isNormal = stateName === 'normal';
  var stateObj = isNormal ? labelLine : labelLine.ensureState(stateName);
  // Make sure display.
  stateObj.ignore = ignore;
  // Set smooth
  var smooth = stateModel.get('smooth');
  if (smooth && smooth === true) {
    smooth = 0.3;
  }
  stateObj.shape = stateObj.shape || {};
  if (smooth > 0) {
    stateObj.shape.smooth = smooth;
  }
  var styleObj = stateModel.getModel('lineStyle').getLineStyle();
  isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj;
}
function buildLabelLinePath(path, shape) {
  var smooth = shape.smooth;
  var points = shape.points;
  if (!points) {
    return;
  }
  path.moveTo(points[0][0], points[0][1]);
  if (smooth > 0 && points.length >= 3) {
    var len1 = vector_dist(points[0], points[1]);
    var len2 = vector_dist(points[1], points[2]);
    if (!len1 || !len2) {
      path.lineTo(points[1][0], points[1][1]);
      path.lineTo(points[2][0], points[2][1]);
      return;
    }
    var moveLen = Math.min(len1, len2) * smooth;
    var midPoint0 = lerp([], points[1], points[0], moveLen / len1);
    var midPoint2 = lerp([], points[1], points[2], moveLen / len2);
    var midPoint1 = lerp([], midPoint0, midPoint2, 0.5);
    path.bezierCurveTo(midPoint0[0], midPoint0[1], midPoint0[0], midPoint0[1], midPoint1[0], midPoint1[1]);
    path.bezierCurveTo(midPoint2[0], midPoint2[1], midPoint2[0], midPoint2[1], points[2][0], points[2][1]);
  } else {
    for (var i = 1; i < points.length; i++) {
      path.lineTo(points[i][0], points[i][1]);
    }
  }
}
/**
 * Create a label line if necessary and set it's style.
 */
function setLabelLineStyle(targetEl, statesModels, defaultStyle) {
  var labelLine = targetEl.getTextGuideLine();
  var label = targetEl.getTextContent();
  if (!label) {
    // Not show label line if there is no label.
    if (labelLine) {
      targetEl.removeTextGuideLine();
    }
    return;
  }
  var normalModel = statesModels.normal;
  var showNormal = normalModel.get('show');
  var labelIgnoreNormal = label.ignore;
  for (var i = 0; i < DISPLAY_STATES.length; i++) {
    var stateName = DISPLAY_STATES[i];
    var stateModel = statesModels[stateName];
    var isNormal = stateName === 'normal';
    if (stateModel) {
      var stateShow = stateModel.get('show');
      var isLabelIgnored = isNormal ? labelIgnoreNormal : Object(util["retrieve2"])(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);
      if (isLabelIgnored // Not show when label is not shown in this state.
      || !Object(util["retrieve2"])(stateShow, showNormal) // Use normal state by default if not set.
      ) {
        var stateObj = isNormal ? labelLine : labelLine && labelLine.states[stateName];
        if (stateObj) {
          stateObj.ignore = true;
        }
        if (!!labelLine) {
          setLabelLineState(labelLine, true, stateName, stateModel);
        }
        continue;
      }
      // Create labelLine if not exists
      if (!labelLine) {
        labelLine = new shape_Polyline();
        targetEl.setTextGuideLine(labelLine);
        // Reset state of normal because it's new created.
        // NOTE: NORMAL should always been the first!
        if (!isNormal && (labelIgnoreNormal || !showNormal)) {
          setLabelLineState(labelLine, true, 'normal', statesModels.normal);
        }
        // Use same state proxy.
        if (targetEl.stateProxy) {
          labelLine.stateProxy = targetEl.stateProxy;
        }
      }
      setLabelLineState(labelLine, false, stateName, stateModel);
    }
  }
  if (labelLine) {
    Object(util["defaults"])(labelLine.style, defaultStyle);
    // Not fill.
    labelLine.style.fill = null;
    var showAbove = normalModel.get('showAbove');
    var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {};
    labelLineConfig.showAbove = showAbove || false;
    // Custom the buildPath.
    labelLine.buildPath = buildLabelLinePath;
  }
}
function getLabelLineStatesModels(itemModel, labelLineName) {
  labelLineName = labelLineName || 'labelLine';
  var statesModels = {
    normal: itemModel.getModel(labelLineName)
  };
  for (var i = 0; i < SPECIAL_STATES.length; i++) {
    var stateName = SPECIAL_STATES[i];
    statesModels[stateName] = itemModel.getModel([stateName, labelLineName]);
  }
  return statesModels;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/label/labelLayoutHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function prepareLayoutList(input) {
  var list = [];
  for (var i = 0; i < input.length; i++) {
    var rawItem = input[i];
    if (rawItem.defaultAttr.ignore) {
      continue;
    }
    var label = rawItem.label;
    var transform = label.getComputedTransform();
    // NOTE: Get bounding rect after getComputedTransform, or label may not been updated by the host el.
    var localRect = label.getBoundingRect();
    var isAxisAligned = !transform || transform[1] < 1e-5 && transform[2] < 1e-5;
    var minMargin = label.style.margin || 0;
    var globalRect = localRect.clone();
    globalRect.applyTransform(transform);
    globalRect.x -= minMargin / 2;
    globalRect.y -= minMargin / 2;
    globalRect.width += minMargin;
    globalRect.height += minMargin;
    var obb = isAxisAligned ? new core_OrientedBoundingRect(localRect, transform) : null;
    list.push({
      label: label,
      labelLine: rawItem.labelLine,
      rect: globalRect,
      localRect: localRect,
      obb: obb,
      priority: rawItem.priority,
      defaultAttr: rawItem.defaultAttr,
      layoutOption: rawItem.computedLayoutOption,
      axisAligned: isAxisAligned,
      transform: transform
    });
  }
  return list;
}
function shiftLayout(list, xyDim, sizeDim, minBound, maxBound, balanceShift) {
  var len = list.length;
  if (len < 2) {
    return;
  }
  list.sort(function (a, b) {
    return a.rect[xyDim] - b.rect[xyDim];
  });
  var lastPos = 0;
  var delta;
  var adjusted = false;
  var shifts = [];
  var totalShifts = 0;
  for (var i = 0; i < len; i++) {
    var item = list[i];
    var rect = item.rect;
    delta = rect[xyDim] - lastPos;
    if (delta < 0) {
      // shiftForward(i, len, -delta);
      rect[xyDim] -= delta;
      item.label[xyDim] -= delta;
      adjusted = true;
    }
    var shift = Math.max(-delta, 0);
    shifts.push(shift);
    totalShifts += shift;
    lastPos = rect[xyDim] + rect[sizeDim];
  }
  if (totalShifts > 0 && balanceShift) {
    // Shift back to make the distribution more equally.
    shiftList(-totalShifts / len, 0, len);
  }
  // TODO bleedMargin?
  var first = list[0];
  var last = list[len - 1];
  var minGap;
  var maxGap;
  updateMinMaxGap();
  // If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds.
  minGap < 0 && squeezeGaps(-minGap, 0.8);
  maxGap < 0 && squeezeGaps(maxGap, 0.8);
  updateMinMaxGap();
  takeBoundsGap(minGap, maxGap, 1);
  takeBoundsGap(maxGap, minGap, -1);
  // Handle bailout when there is not enough space.
  updateMinMaxGap();
  if (minGap < 0) {
    squeezeWhenBailout(-minGap);
  }
  if (maxGap < 0) {
    squeezeWhenBailout(maxGap);
  }
  function updateMinMaxGap() {
    minGap = first.rect[xyDim] - minBound;
    maxGap = maxBound - last.rect[xyDim] - last.rect[sizeDim];
  }
  function takeBoundsGap(gapThisBound, gapOtherBound, moveDir) {
    if (gapThisBound < 0) {
      // Move from other gap if can.
      var moveFromMaxGap = Math.min(gapOtherBound, -gapThisBound);
      if (moveFromMaxGap > 0) {
        shiftList(moveFromMaxGap * moveDir, 0, len);
        var remained = moveFromMaxGap + gapThisBound;
        if (remained < 0) {
          squeezeGaps(-remained * moveDir, 1);
        }
      } else {
        squeezeGaps(-gapThisBound * moveDir, 1);
      }
    }
  }
  function shiftList(delta, start, end) {
    if (delta !== 0) {
      adjusted = true;
    }
    for (var i = start; i < end; i++) {
      var item = list[i];
      var rect = item.rect;
      rect[xyDim] += delta;
      item.label[xyDim] += delta;
    }
  }
  // Squeeze gaps if the labels exceed margin.
  function squeezeGaps(delta, maxSqeezePercent) {
    var gaps = [];
    var totalGaps = 0;
    for (var i = 1; i < len; i++) {
      var prevItemRect = list[i - 1].rect;
      var gap = Math.max(list[i].rect[xyDim] - prevItemRect[xyDim] - prevItemRect[sizeDim], 0);
      gaps.push(gap);
      totalGaps += gap;
    }
    if (!totalGaps) {
      return;
    }
    var squeezePercent = Math.min(Math.abs(delta) / totalGaps, maxSqeezePercent);
    if (delta > 0) {
      for (var i = 0; i < len - 1; i++) {
        // Distribute the shift delta to all gaps.
        var movement = gaps[i] * squeezePercent;
        // Forward
        shiftList(movement, 0, i + 1);
      }
    } else {
      // Backward
      for (var i = len - 1; i > 0; i--) {
        // Distribute the shift delta to all gaps.
        var movement = gaps[i - 1] * squeezePercent;
        shiftList(-movement, i, len);
      }
    }
  }
  /**
   * Squeeze to allow overlap if there is no more space available.
   * Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds.
   */
  function squeezeWhenBailout(delta) {
    var dir = delta < 0 ? -1 : 1;
    delta = Math.abs(delta);
    var moveForEachLabel = Math.ceil(delta / (len - 1));
    for (var i = 0; i < len - 1; i++) {
      if (dir > 0) {
        // Forward
        shiftList(moveForEachLabel, 0, i + 1);
      } else {
        // Backward
        shiftList(-moveForEachLabel, len - i - 1, len);
      }
      delta -= moveForEachLabel;
      if (delta <= 0) {
        return;
      }
    }
  }
  return adjusted;
}
/**
 * Adjust labels on x direction to avoid overlap.
 */
function shiftLayoutOnX(list, leftBound, rightBound,
// If average the shifts on all labels and add them to 0
// TODO: Not sure if should enable it.
// Pros: The angle of lines will distribute more equally
// Cons: In some layout. It may not what user wanted. like in pie. the label of last sector is usually changed unexpectedly.
balanceShift) {
  return shiftLayout(list, 'x', 'width', leftBound, rightBound, balanceShift);
}
/**
 * Adjust labels on y direction to avoid overlap.
 */
function shiftLayoutOnY(list, topBound, bottomBound,
// If average the shifts on all labels and add them to 0
balanceShift) {
  return shiftLayout(list, 'y', 'height', topBound, bottomBound, balanceShift);
}
function hideOverlap(labelList) {
  var displayedLabels = [];
  // TODO, render overflow visible first, put in the displayedLabels.
  labelList.sort(function (a, b) {
    return b.priority - a.priority;
  });
  var globalRect = new core_BoundingRect(0, 0, 0, 0);
  function hideEl(el) {
    if (!el.ignore) {
      // Show on emphasis.
      var emphasisState = el.ensureState('emphasis');
      if (emphasisState.ignore == null) {
        emphasisState.ignore = false;
      }
    }
    el.ignore = true;
  }
  for (var i = 0; i < labelList.length; i++) {
    var labelItem = labelList[i];
    var isAxisAligned = labelItem.axisAligned;
    var localRect = labelItem.localRect;
    var transform = labelItem.transform;
    var label = labelItem.label;
    var labelLine = labelItem.labelLine;
    globalRect.copy(labelItem.rect);
    // Add a threshold because layout may be aligned precisely.
    globalRect.width -= 0.1;
    globalRect.height -= 0.1;
    globalRect.x += 0.05;
    globalRect.y += 0.05;
    var obb = labelItem.obb;
    var overlapped = false;
    for (var j = 0; j < displayedLabels.length; j++) {
      var existsTextCfg = displayedLabels[j];
      // Fast rejection.
      if (!globalRect.intersect(existsTextCfg.rect)) {
        continue;
      }
      if (isAxisAligned && existsTextCfg.axisAligned) {
        // Is overlapped
        overlapped = true;
        break;
      }
      if (!existsTextCfg.obb) {
        // If self is not axis aligned. But other is.
        existsTextCfg.obb = new core_OrientedBoundingRect(existsTextCfg.localRect, existsTextCfg.transform);
      }
      if (!obb) {
        // If self is axis aligned. But other is not.
        obb = new core_OrientedBoundingRect(localRect, transform);
      }
      if (obb.intersect(existsTextCfg.obb)) {
        overlapped = true;
        break;
      }
    }
    // TODO Callback to determine if this overlap should be handled?
    if (overlapped) {
      hideEl(label);
      labelLine && hideEl(labelLine);
    } else {
      label.attr('ignore', labelItem.defaultAttr.ignore);
      labelLine && labelLine.attr('ignore', labelItem.defaultAttr.labelGuideIgnore);
      displayedLabels.push(labelItem);
    }
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/label/LabelManager.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO: move labels out of viewport.










function cloneArr(points) {
  if (points) {
    var newPoints = [];
    for (var i = 0; i < points.length; i++) {
      newPoints.push(points[i].slice());
    }
    return newPoints;
  }
}
function prepareLayoutCallbackParams(labelItem, hostEl) {
  var label = labelItem.label;
  var labelLine = hostEl && hostEl.getTextGuideLine();
  return {
    dataIndex: labelItem.dataIndex,
    dataType: labelItem.dataType,
    seriesIndex: labelItem.seriesModel.seriesIndex,
    text: labelItem.label.style.text,
    rect: labelItem.hostRect,
    labelRect: labelItem.rect,
    // x: labelAttr.x,
    // y: labelAttr.y,
    align: label.style.align,
    verticalAlign: label.style.verticalAlign,
    labelLinePoints: cloneArr(labelLine && labelLine.shape.points)
  };
}
var LABEL_OPTION_TO_STYLE_KEYS = ['align', 'verticalAlign', 'width', 'height', 'fontSize'];
var LabelManager_dummyTransformable = new core_Transformable();
var labelLayoutInnerStore = makeInner();
var labelLineAnimationStore = makeInner();
function extendWithKeys(target, source, keys) {
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    if (source[key] != null) {
      target[key] = source[key];
    }
  }
}
var LABEL_LAYOUT_PROPS = ['x', 'y', 'rotation'];
var LabelManager_LabelManager = /** @class */function () {
  function LabelManager() {
    this._labelList = [];
    this._chartViewList = [];
  }
  LabelManager.prototype.clearLabels = function () {
    this._labelList = [];
    this._chartViewList = [];
  };
  /**
   * Add label to manager
   */
  LabelManager.prototype._addLabel = function (dataIndex, dataType, seriesModel, label, layoutOption) {
    var labelStyle = label.style;
    var hostEl = label.__hostTarget;
    var textConfig = hostEl.textConfig || {};
    // TODO: If label is in other state.
    var labelTransform = label.getComputedTransform();
    var labelRect = label.getBoundingRect().plain();
    core_BoundingRect.applyTransform(labelRect, labelRect, labelTransform);
    if (labelTransform) {
      LabelManager_dummyTransformable.setLocalTransform(labelTransform);
    } else {
      // Identity transform.
      LabelManager_dummyTransformable.x = LabelManager_dummyTransformable.y = LabelManager_dummyTransformable.rotation = LabelManager_dummyTransformable.originX = LabelManager_dummyTransformable.originY = 0;
      LabelManager_dummyTransformable.scaleX = LabelManager_dummyTransformable.scaleY = 1;
    }
    LabelManager_dummyTransformable.rotation = normalizeRadian(LabelManager_dummyTransformable.rotation);
    var host = label.__hostTarget;
    var hostRect;
    if (host) {
      hostRect = host.getBoundingRect().plain();
      var transform = host.getComputedTransform();
      core_BoundingRect.applyTransform(hostRect, hostRect, transform);
    }
    var labelGuide = hostRect && host.getTextGuideLine();
    this._labelList.push({
      label: label,
      labelLine: labelGuide,
      seriesModel: seriesModel,
      dataIndex: dataIndex,
      dataType: dataType,
      layoutOption: layoutOption,
      computedLayoutOption: null,
      rect: labelRect,
      hostRect: hostRect,
      // Label with lower priority will be hidden when overlapped
      // Use rect size as default priority
      priority: hostRect ? hostRect.width * hostRect.height : 0,
      // Save default label attributes.
      // For restore if developers want get back to default value in callback.
      defaultAttr: {
        ignore: label.ignore,
        labelGuideIgnore: labelGuide && labelGuide.ignore,
        x: LabelManager_dummyTransformable.x,
        y: LabelManager_dummyTransformable.y,
        scaleX: LabelManager_dummyTransformable.scaleX,
        scaleY: LabelManager_dummyTransformable.scaleY,
        rotation: LabelManager_dummyTransformable.rotation,
        style: {
          x: labelStyle.x,
          y: labelStyle.y,
          align: labelStyle.align,
          verticalAlign: labelStyle.verticalAlign,
          width: labelStyle.width,
          height: labelStyle.height,
          fontSize: labelStyle.fontSize
        },
        cursor: label.cursor,
        attachedPos: textConfig.position,
        attachedRot: textConfig.rotation
      }
    });
  };
  LabelManager.prototype.addLabelsOfSeries = function (chartView) {
    var _this = this;
    this._chartViewList.push(chartView);
    var seriesModel = chartView.__model;
    var layoutOption = seriesModel.get('labelLayout');
    /**
     * Ignore layouting if it's not specified anything.
     */
    if (!(Object(util["isFunction"])(layoutOption) || Object(util["keys"])(layoutOption).length)) {
      return;
    }
    chartView.group.traverse(function (child) {
      if (child.ignore) {
        return true; // Stop traverse descendants.
      }
      // Only support label being hosted on graphic elements.
      var textEl = child.getTextContent();
      var ecData = getECData(child);
      // Can only attach the text on the element with dataIndex
      if (textEl && !textEl.disableLabelLayout) {
        _this._addLabel(ecData.dataIndex, ecData.dataType, seriesModel, textEl, layoutOption);
      }
    });
  };
  LabelManager.prototype.updateLayoutConfig = function (api) {
    var width = api.getWidth();
    var height = api.getHeight();
    function createDragHandler(el, labelLineModel) {
      return function () {
        updateLabelLinePoints(el, labelLineModel);
      };
    }
    for (var i = 0; i < this._labelList.length; i++) {
      var labelItem = this._labelList[i];
      var label = labelItem.label;
      var hostEl = label.__hostTarget;
      var defaultLabelAttr = labelItem.defaultAttr;
      var layoutOption = void 0;
      // TODO A global layout option?
      if (Object(util["isFunction"])(labelItem.layoutOption)) {
        layoutOption = labelItem.layoutOption(prepareLayoutCallbackParams(labelItem, hostEl));
      } else {
        layoutOption = labelItem.layoutOption;
      }
      layoutOption = layoutOption || {};
      labelItem.computedLayoutOption = layoutOption;
      var degreeToRadian = Math.PI / 180;
      // TODO hostEl should always exists.
      // Or label should not have parent because the x, y is all in global space.
      if (hostEl) {
        hostEl.setTextConfig({
          // Force to set local false.
          local: false,
          // Ignore position and rotation config on the host el if x or y is changed.
          position: layoutOption.x != null || layoutOption.y != null ? null : defaultLabelAttr.attachedPos,
          // Ignore rotation config on the host el if rotation is changed.
          rotation: layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.attachedRot,
          offset: [layoutOption.dx || 0, layoutOption.dy || 0]
        });
      }
      var needsUpdateLabelLine = false;
      if (layoutOption.x != null) {
        // TODO width of chart view.
        label.x = number_parsePercent(layoutOption.x, width);
        label.setStyle('x', 0); // Ignore movement in style. TODO: origin.
        needsUpdateLabelLine = true;
      } else {
        label.x = defaultLabelAttr.x;
        label.setStyle('x', defaultLabelAttr.style.x);
      }
      if (layoutOption.y != null) {
        // TODO height of chart view.
        label.y = number_parsePercent(layoutOption.y, height);
        label.setStyle('y', 0); // Ignore movement in style.
        needsUpdateLabelLine = true;
      } else {
        label.y = defaultLabelAttr.y;
        label.setStyle('y', defaultLabelAttr.style.y);
      }
      if (layoutOption.labelLinePoints) {
        var guideLine = hostEl.getTextGuideLine();
        if (guideLine) {
          guideLine.setShape({
            points: layoutOption.labelLinePoints
          });
          // Not update
          needsUpdateLabelLine = false;
        }
      }
      var labelLayoutStore = labelLayoutInnerStore(label);
      labelLayoutStore.needsUpdateLabelLine = needsUpdateLabelLine;
      label.rotation = layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.rotation;
      label.scaleX = defaultLabelAttr.scaleX;
      label.scaleY = defaultLabelAttr.scaleY;
      for (var k = 0; k < LABEL_OPTION_TO_STYLE_KEYS.length; k++) {
        var key = LABEL_OPTION_TO_STYLE_KEYS[k];
        label.setStyle(key, layoutOption[key] != null ? layoutOption[key] : defaultLabelAttr.style[key]);
      }
      if (layoutOption.draggable) {
        label.draggable = true;
        label.cursor = 'move';
        if (hostEl) {
          var hostModel = labelItem.seriesModel;
          if (labelItem.dataIndex != null) {
            var data = labelItem.seriesModel.getData(labelItem.dataType);
            hostModel = data.getItemModel(labelItem.dataIndex);
          }
          label.on('drag', createDragHandler(hostEl, hostModel.getModel('labelLine')));
        }
      } else {
        // TODO Other drag functions?
        label.off('drag');
        label.cursor = defaultLabelAttr.cursor;
      }
    }
  };
  LabelManager.prototype.layout = function (api) {
    var width = api.getWidth();
    var height = api.getHeight();
    var labelList = prepareLayoutList(this._labelList);
    var labelsNeedsAdjustOnX = Object(util["filter"])(labelList, function (item) {
      return item.layoutOption.moveOverlap === 'shiftX';
    });
    var labelsNeedsAdjustOnY = Object(util["filter"])(labelList, function (item) {
      return item.layoutOption.moveOverlap === 'shiftY';
    });
    shiftLayoutOnX(labelsNeedsAdjustOnX, 0, width);
    shiftLayoutOnY(labelsNeedsAdjustOnY, 0, height);
    var labelsNeedsHideOverlap = Object(util["filter"])(labelList, function (item) {
      return item.layoutOption.hideOverlap;
    });
    hideOverlap(labelsNeedsHideOverlap);
  };
  /**
   * Process all labels. Not only labels with layoutOption.
   */
  LabelManager.prototype.processLabelsOverall = function () {
    var _this = this;
    Object(util["each"])(this._chartViewList, function (chartView) {
      var seriesModel = chartView.__model;
      var ignoreLabelLineUpdate = chartView.ignoreLabelLineUpdate;
      var animationEnabled = seriesModel.isAnimationEnabled();
      chartView.group.traverse(function (child) {
        if (child.ignore && !child.forceLabelAnimation) {
          return true; // Stop traverse descendants.
        }
        var needsUpdateLabelLine = !ignoreLabelLineUpdate;
        var label = child.getTextContent();
        if (!needsUpdateLabelLine && label) {
          needsUpdateLabelLine = labelLayoutInnerStore(label).needsUpdateLabelLine;
        }
        if (needsUpdateLabelLine) {
          _this._updateLabelLine(child, seriesModel);
        }
        if (animationEnabled) {
          _this._animateLabels(child, seriesModel);
        }
      });
    });
  };
  LabelManager.prototype._updateLabelLine = function (el, seriesModel) {
    // Only support label being hosted on graphic elements.
    var textEl = el.getTextContent();
    // Update label line style.
    var ecData = getECData(el);
    var dataIndex = ecData.dataIndex;
    // Only support labelLine on the labels represent data.
    if (textEl && dataIndex != null) {
      var data = seriesModel.getData(ecData.dataType);
      var itemModel = data.getItemModel(dataIndex);
      var defaultStyle = {};
      var visualStyle = data.getItemVisual(dataIndex, 'style');
      if (visualStyle) {
        var visualType = data.getVisual('drawType');
        // Default to be same with main color
        defaultStyle.stroke = visualStyle[visualType];
      }
      var labelLineModel = itemModel.getModel('labelLine');
      setLabelLineStyle(el, getLabelLineStatesModels(itemModel), defaultStyle);
      updateLabelLinePoints(el, labelLineModel);
    }
  };
  LabelManager.prototype._animateLabels = function (el, seriesModel) {
    var textEl = el.getTextContent();
    var guideLine = el.getTextGuideLine();
    // Animate
    if (textEl
    // `forceLabelAnimation` has the highest priority
    && (el.forceLabelAnimation || !textEl.ignore && !textEl.invisible && !el.disableLabelAnimation && !isElementRemoved(el))) {
      var layoutStore = labelLayoutInnerStore(textEl);
      var oldLayout = layoutStore.oldLayout;
      var ecData = getECData(el);
      var dataIndex = ecData.dataIndex;
      var newProps = {
        x: textEl.x,
        y: textEl.y,
        rotation: textEl.rotation
      };
      var data = seriesModel.getData(ecData.dataType);
      if (!oldLayout) {
        textEl.attr(newProps);
        // Disable fade in animation if value animation is enabled.
        if (!labelInner(textEl).valueAnimation) {
          var oldOpacity = Object(util["retrieve2"])(textEl.style.opacity, 1);
          // Fade in animation
          textEl.style.opacity = 0;
          initProps(textEl, {
            style: {
              opacity: oldOpacity
            }
          }, seriesModel, dataIndex);
        }
      } else {
        textEl.attr(oldLayout);
        // Make sure the animation from is in the right status.
        var prevStates = el.prevStates;
        if (prevStates) {
          if (Object(util["indexOf"])(prevStates, 'select') >= 0) {
            textEl.attr(layoutStore.oldLayoutSelect);
          }
          if (Object(util["indexOf"])(prevStates, 'emphasis') >= 0) {
            textEl.attr(layoutStore.oldLayoutEmphasis);
          }
        }
        updateProps(textEl, newProps, seriesModel, dataIndex);
      }
      layoutStore.oldLayout = newProps;
      if (textEl.states.select) {
        var layoutSelect = layoutStore.oldLayoutSelect = {};
        extendWithKeys(layoutSelect, newProps, LABEL_LAYOUT_PROPS);
        extendWithKeys(layoutSelect, textEl.states.select, LABEL_LAYOUT_PROPS);
      }
      if (textEl.states.emphasis) {
        var layoutEmphasis = layoutStore.oldLayoutEmphasis = {};
        extendWithKeys(layoutEmphasis, newProps, LABEL_LAYOUT_PROPS);
        extendWithKeys(layoutEmphasis, textEl.states.emphasis, LABEL_LAYOUT_PROPS);
      }
      animateLabelValue(textEl, dataIndex, data, seriesModel, seriesModel);
    }
    if (guideLine && !guideLine.ignore && !guideLine.invisible) {
      var layoutStore = labelLineAnimationStore(guideLine);
      var oldLayout = layoutStore.oldLayout;
      var newLayout = {
        points: guideLine.shape.points
      };
      if (!oldLayout) {
        guideLine.setShape(newLayout);
        guideLine.style.strokePercent = 0;
        initProps(guideLine, {
          style: {
            strokePercent: 1
          }
        }, seriesModel);
      } else {
        guideLine.attr({
          shape: oldLayout
        });
        updateProps(guideLine, {
          shape: newLayout
        }, seriesModel);
      }
      layoutStore.oldLayout = newLayout;
    }
  };
  return LabelManager;
}();
/* harmony default export */ var label_LabelManager = (LabelManager_LabelManager);
// CONCATENATED MODULE: ./node_modules/echarts/lib/label/installLabelLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var getLabelManager = makeInner();
function installLabelLayout(registers) {
  registers.registerUpdateLifecycle('series:beforeupdate', function (ecModel, api, params) {
    // TODO api provide an namespace that can save stuff per instance
    var labelManager = getLabelManager(api).labelManager;
    if (!labelManager) {
      labelManager = getLabelManager(api).labelManager = new label_LabelManager();
    }
    labelManager.clearLabels();
  });
  registers.registerUpdateLifecycle('series:layoutlabels', function (ecModel, api, params) {
    var labelManager = getLabelManager(api).labelManager;
    params.updatedSeries.forEach(function (series) {
      labelManager.addLabelsOfSeries(api.getViewOfSeriesModel(series));
    });
    labelManager.updateLayoutConfig(api);
    labelManager.layout(api);
    labelManager.processLabelsOverall();
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/export/core.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Core API from echarts/src/echarts



// Import label layout by default.
// TODO will be treeshaked.

use(installLabelLayout);
// CONCATENATED MODULE: ./node_modules/zrender/lib/canvas/Layer.js









function createDom(id, painter, dpr) {
    var newDom = platform["d" /* platformApi */].createCanvas();
    var width = painter.getWidth();
    var height = painter.getHeight();
    var newDomStyle = newDom.style;
    if (newDomStyle) {
        newDomStyle.position = 'absolute';
        newDomStyle.left = '0';
        newDomStyle.top = '0';
        newDomStyle.width = width + 'px';
        newDomStyle.height = height + 'px';
        newDom.setAttribute('data-zr-dom-id', id);
    }
    newDom.width = width * dpr;
    newDom.height = height * dpr;
    return newDom;
}
;
var Layer_Layer = (function (_super) {
    tslib_es6_extends(Layer, _super);
    function Layer(id, painter, dpr) {
        var _this = _super.call(this) || this;
        _this.motionBlur = false;
        _this.lastFrameAlpha = 0.7;
        _this.dpr = 1;
        _this.virtual = false;
        _this.config = {};
        _this.incremental = false;
        _this.zlevel = 0;
        _this.maxRepaintRectCount = 5;
        _this.__dirty = true;
        _this.__firstTimePaint = true;
        _this.__used = false;
        _this.__drawIndex = 0;
        _this.__startIndex = 0;
        _this.__endIndex = 0;
        _this.__prevStartIndex = null;
        _this.__prevEndIndex = null;
        var dom;
        dpr = dpr || devicePixelRatio;
        if (typeof id === 'string') {
            dom = createDom(id, painter, dpr);
        }
        else if (util["isObject"](id)) {
            dom = id;
            id = dom.id;
        }
        _this.id = id;
        _this.dom = dom;
        var domStyle = dom.style;
        if (domStyle) {
            util["disableUserSelect"](dom);
            dom.onselectstart = function () { return false; };
            domStyle.padding = '0';
            domStyle.margin = '0';
            domStyle.borderWidth = '0';
        }
        _this.painter = painter;
        _this.dpr = dpr;
        return _this;
    }
    Layer.prototype.getElementCount = function () {
        return this.__endIndex - this.__startIndex;
    };
    Layer.prototype.afterBrush = function () {
        this.__prevStartIndex = this.__startIndex;
        this.__prevEndIndex = this.__endIndex;
    };
    Layer.prototype.initContext = function () {
        this.ctx = this.dom.getContext('2d');
        this.ctx.dpr = this.dpr;
    };
    Layer.prototype.setUnpainted = function () {
        this.__firstTimePaint = true;
    };
    Layer.prototype.createBackBuffer = function () {
        var dpr = this.dpr;
        this.domBack = createDom('back-' + this.id, this.painter, dpr);
        this.ctxBack = this.domBack.getContext('2d');
        if (dpr !== 1) {
            this.ctxBack.scale(dpr, dpr);
        }
    };
    Layer.prototype.createRepaintRects = function (displayList, prevList, viewWidth, viewHeight) {
        if (this.__firstTimePaint) {
            this.__firstTimePaint = false;
            return null;
        }
        var mergedRepaintRects = [];
        var maxRepaintRectCount = this.maxRepaintRectCount;
        var full = false;
        var pendingRect = new core_BoundingRect(0, 0, 0, 0);
        function addRectToMergePool(rect) {
            if (!rect.isFinite() || rect.isZero()) {
                return;
            }
            if (mergedRepaintRects.length === 0) {
                var boundingRect = new core_BoundingRect(0, 0, 0, 0);
                boundingRect.copy(rect);
                mergedRepaintRects.push(boundingRect);
            }
            else {
                var isMerged = false;
                var minDeltaArea = Infinity;
                var bestRectToMergeIdx = 0;
                for (var i = 0; i < mergedRepaintRects.length; ++i) {
                    var mergedRect = mergedRepaintRects[i];
                    if (mergedRect.intersect(rect)) {
                        var pendingRect_1 = new core_BoundingRect(0, 0, 0, 0);
                        pendingRect_1.copy(mergedRect);
                        pendingRect_1.union(rect);
                        mergedRepaintRects[i] = pendingRect_1;
                        isMerged = true;
                        break;
                    }
                    else if (full) {
                        pendingRect.copy(rect);
                        pendingRect.union(mergedRect);
                        var aArea = rect.width * rect.height;
                        var bArea = mergedRect.width * mergedRect.height;
                        var pendingArea = pendingRect.width * pendingRect.height;
                        var deltaArea = pendingArea - aArea - bArea;
                        if (deltaArea < minDeltaArea) {
                            minDeltaArea = deltaArea;
                            bestRectToMergeIdx = i;
                        }
                    }
                }
                if (full) {
                    mergedRepaintRects[bestRectToMergeIdx].union(rect);
                    isMerged = true;
                }
                if (!isMerged) {
                    var boundingRect = new core_BoundingRect(0, 0, 0, 0);
                    boundingRect.copy(rect);
                    mergedRepaintRects.push(boundingRect);
                }
                if (!full) {
                    full = mergedRepaintRects.length >= maxRepaintRectCount;
                }
            }
        }
        for (var i = this.__startIndex; i < this.__endIndex; ++i) {
            var el = displayList[i];
            if (el) {
                var shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);
                var prevRect = el.__isRendered && ((el.__dirty & REDRAW_BIT) || !shouldPaint)
                    ? el.getPrevPaintRect()
                    : null;
                if (prevRect) {
                    addRectToMergePool(prevRect);
                }
                var curRect = shouldPaint && ((el.__dirty & REDRAW_BIT) || !el.__isRendered)
                    ? el.getPaintRect()
                    : null;
                if (curRect) {
                    addRectToMergePool(curRect);
                }
            }
        }
        for (var i = this.__prevStartIndex; i < this.__prevEndIndex; ++i) {
            var el = prevList[i];
            var shouldPaint = el && el.shouldBePainted(viewWidth, viewHeight, true, true);
            if (el && (!shouldPaint || !el.__zr) && el.__isRendered) {
                var prevRect = el.getPrevPaintRect();
                if (prevRect) {
                    addRectToMergePool(prevRect);
                }
            }
        }
        var hasIntersections;
        do {
            hasIntersections = false;
            for (var i = 0; i < mergedRepaintRects.length;) {
                if (mergedRepaintRects[i].isZero()) {
                    mergedRepaintRects.splice(i, 1);
                    continue;
                }
                for (var j = i + 1; j < mergedRepaintRects.length;) {
                    if (mergedRepaintRects[i].intersect(mergedRepaintRects[j])) {
                        hasIntersections = true;
                        mergedRepaintRects[i].union(mergedRepaintRects[j]);
                        mergedRepaintRects.splice(j, 1);
                    }
                    else {
                        j++;
                    }
                }
                i++;
            }
        } while (hasIntersections);
        this._paintRects = mergedRepaintRects;
        return mergedRepaintRects;
    };
    Layer.prototype.debugGetPaintRects = function () {
        return (this._paintRects || []).slice();
    };
    Layer.prototype.resize = function (width, height) {
        var dpr = this.dpr;
        var dom = this.dom;
        var domStyle = dom.style;
        var domBack = this.domBack;
        if (domStyle) {
            domStyle.width = width + 'px';
            domStyle.height = height + 'px';
        }
        dom.width = width * dpr;
        dom.height = height * dpr;
        if (domBack) {
            domBack.width = width * dpr;
            domBack.height = height * dpr;
            if (dpr !== 1) {
                this.ctxBack.scale(dpr, dpr);
            }
        }
    };
    Layer.prototype.clear = function (clearAll, clearColor, repaintRects) {
        var dom = this.dom;
        var ctx = this.ctx;
        var width = dom.width;
        var height = dom.height;
        clearColor = clearColor || this.clearColor;
        var haveMotionBLur = this.motionBlur && !clearAll;
        var lastFrameAlpha = this.lastFrameAlpha;
        var dpr = this.dpr;
        var self = this;
        if (haveMotionBLur) {
            if (!this.domBack) {
                this.createBackBuffer();
            }
            this.ctxBack.globalCompositeOperation = 'copy';
            this.ctxBack.drawImage(dom, 0, 0, width / dpr, height / dpr);
        }
        var domBack = this.domBack;
        function doClear(x, y, width, height) {
            ctx.clearRect(x, y, width, height);
            if (clearColor && clearColor !== 'transparent') {
                var clearColorGradientOrPattern = void 0;
                if (util["isGradientObject"](clearColor)) {
                    var shouldCache = clearColor.global || (clearColor.__width === width
                        && clearColor.__height === height);
                    clearColorGradientOrPattern = shouldCache
                        && clearColor.__canvasGradient
                        || getCanvasGradient(ctx, clearColor, {
                            x: 0,
                            y: 0,
                            width: width,
                            height: height
                        });
                    clearColor.__canvasGradient = clearColorGradientOrPattern;
                    clearColor.__width = width;
                    clearColor.__height = height;
                }
                else if (util["isImagePatternObject"](clearColor)) {
                    clearColor.scaleX = clearColor.scaleX || dpr;
                    clearColor.scaleY = clearColor.scaleY || dpr;
                    clearColorGradientOrPattern = createCanvasPattern(ctx, clearColor, {
                        dirty: function () {
                            self.setUnpainted();
                            self.painter.refresh();
                        }
                    });
                }
                ctx.save();
                ctx.fillStyle = clearColorGradientOrPattern || clearColor;
                ctx.fillRect(x, y, width, height);
                ctx.restore();
            }
            if (haveMotionBLur) {
                ctx.save();
                ctx.globalAlpha = lastFrameAlpha;
                ctx.drawImage(domBack, x, y, width, height);
                ctx.restore();
            }
        }
        ;
        if (!repaintRects || haveMotionBLur) {
            doClear(0, 0, width, height);
        }
        else if (repaintRects.length) {
            util["each"](repaintRects, function (rect) {
                doClear(rect.x * dpr, rect.y * dpr, rect.width * dpr, rect.height * dpr);
            });
        }
    };
    return Layer;
}(core_Eventful));
/* harmony default export */ var canvas_Layer = (Layer_Layer);

// CONCATENATED MODULE: ./node_modules/zrender/lib/canvas/Painter.js








var HOVER_LAYER_ZLEVEL = 1e5;
var CANVAS_ZLEVEL = 314159;
var EL_AFTER_INCREMENTAL_INC = 0.01;
var INCREMENTAL_INC = 0.001;
function isLayerValid(layer) {
    if (!layer) {
        return false;
    }
    if (layer.__builtin__) {
        return true;
    }
    if (typeof (layer.resize) !== 'function'
        || typeof (layer.refresh) !== 'function') {
        return false;
    }
    return true;
}
function createRoot(width, height) {
    var domRoot = document.createElement('div');
    domRoot.style.cssText = [
        'position:relative',
        'width:' + width + 'px',
        'height:' + height + 'px',
        'padding:0',
        'margin:0',
        'border-width:0'
    ].join(';') + ';';
    return domRoot;
}
var Painter_CanvasPainter = (function () {
    function CanvasPainter(root, storage, opts, id) {
        this.type = 'canvas';
        this._zlevelList = [];
        this._prevDisplayList = [];
        this._layers = {};
        this._layerConfig = {};
        this._needsManuallyCompositing = false;
        this.type = 'canvas';
        var singleCanvas = !root.nodeName
            || root.nodeName.toUpperCase() === 'CANVAS';
        this._opts = opts = util["extend"]({}, opts || {});
        this.dpr = opts.devicePixelRatio || devicePixelRatio;
        this._singleCanvas = singleCanvas;
        this.root = root;
        var rootStyle = root.style;
        if (rootStyle) {
            util["disableUserSelect"](root);
            root.innerHTML = '';
        }
        this.storage = storage;
        var zlevelList = this._zlevelList;
        this._prevDisplayList = [];
        var layers = this._layers;
        if (!singleCanvas) {
            this._width = getSize(root, 0, opts);
            this._height = getSize(root, 1, opts);
            var domRoot = this._domRoot = createRoot(this._width, this._height);
            root.appendChild(domRoot);
        }
        else {
            var rootCanvas = root;
            var width = rootCanvas.width;
            var height = rootCanvas.height;
            if (opts.width != null) {
                width = opts.width;
            }
            if (opts.height != null) {
                height = opts.height;
            }
            this.dpr = opts.devicePixelRatio || 1;
            rootCanvas.width = width * this.dpr;
            rootCanvas.height = height * this.dpr;
            this._width = width;
            this._height = height;
            var mainLayer = new canvas_Layer(rootCanvas, this, this.dpr);
            mainLayer.__builtin__ = true;
            mainLayer.initContext();
            layers[CANVAS_ZLEVEL] = mainLayer;
            mainLayer.zlevel = CANVAS_ZLEVEL;
            zlevelList.push(CANVAS_ZLEVEL);
            this._domRoot = root;
        }
    }
    CanvasPainter.prototype.getType = function () {
        return 'canvas';
    };
    CanvasPainter.prototype.isSingleCanvas = function () {
        return this._singleCanvas;
    };
    CanvasPainter.prototype.getViewportRoot = function () {
        return this._domRoot;
    };
    CanvasPainter.prototype.getViewportRootOffset = function () {
        var viewportRoot = this.getViewportRoot();
        if (viewportRoot) {
            return {
                offsetLeft: viewportRoot.offsetLeft || 0,
                offsetTop: viewportRoot.offsetTop || 0
            };
        }
    };
    CanvasPainter.prototype.refresh = function (paintAll) {
        var list = this.storage.getDisplayList(true);
        var prevList = this._prevDisplayList;
        var zlevelList = this._zlevelList;
        this._redrawId = Math.random();
        this._paintList(list, prevList, paintAll, this._redrawId);
        for (var i = 0; i < zlevelList.length; i++) {
            var z = zlevelList[i];
            var layer = this._layers[z];
            if (!layer.__builtin__ && layer.refresh) {
                var clearColor = i === 0 ? this._backgroundColor : null;
                layer.refresh(clearColor);
            }
        }
        if (this._opts.useDirtyRect) {
            this._prevDisplayList = list.slice();
        }
        return this;
    };
    CanvasPainter.prototype.refreshHover = function () {
        this._paintHoverList(this.storage.getDisplayList(false));
    };
    CanvasPainter.prototype._paintHoverList = function (list) {
        var len = list.length;
        var hoverLayer = this._hoverlayer;
        hoverLayer && hoverLayer.clear();
        if (!len) {
            return;
        }
        var scope = {
            inHover: true,
            viewWidth: this._width,
            viewHeight: this._height
        };
        var ctx;
        for (var i = 0; i < len; i++) {
            var el = list[i];
            if (el.__inHover) {
                if (!hoverLayer) {
                    hoverLayer = this._hoverlayer = this.getLayer(HOVER_LAYER_ZLEVEL);
                }
                if (!ctx) {
                    ctx = hoverLayer.ctx;
                    ctx.save();
                }
                brush(ctx, el, scope, i === len - 1);
            }
        }
        if (ctx) {
            ctx.restore();
        }
    };
    CanvasPainter.prototype.getHoverLayer = function () {
        return this.getLayer(HOVER_LAYER_ZLEVEL);
    };
    CanvasPainter.prototype.paintOne = function (ctx, el) {
        brushSingle(ctx, el);
    };
    CanvasPainter.prototype._paintList = function (list, prevList, paintAll, redrawId) {
        if (this._redrawId !== redrawId) {
            return;
        }
        paintAll = paintAll || false;
        this._updateLayerStatus(list);
        var _a = this._doPaintList(list, prevList, paintAll), finished = _a.finished, needsRefreshHover = _a.needsRefreshHover;
        if (this._needsManuallyCompositing) {
            this._compositeManually();
        }
        if (needsRefreshHover) {
            this._paintHoverList(list);
        }
        if (!finished) {
            var self_1 = this;
            animation_requestAnimationFrame(function () {
                self_1._paintList(list, prevList, paintAll, redrawId);
            });
        }
        else {
            this.eachLayer(function (layer) {
                layer.afterBrush && layer.afterBrush();
            });
        }
    };
    CanvasPainter.prototype._compositeManually = function () {
        var ctx = this.getLayer(CANVAS_ZLEVEL).ctx;
        var width = this._domRoot.width;
        var height = this._domRoot.height;
        ctx.clearRect(0, 0, width, height);
        this.eachBuiltinLayer(function (layer) {
            if (layer.virtual) {
                ctx.drawImage(layer.dom, 0, 0, width, height);
            }
        });
    };
    CanvasPainter.prototype._doPaintList = function (list, prevList, paintAll) {
        var _this = this;
        var layerList = [];
        var useDirtyRect = this._opts.useDirtyRect;
        for (var zi = 0; zi < this._zlevelList.length; zi++) {
            var zlevel = this._zlevelList[zi];
            var layer = this._layers[zlevel];
            if (layer.__builtin__
                && layer !== this._hoverlayer
                && (layer.__dirty || paintAll)) {
                layerList.push(layer);
            }
        }
        var finished = true;
        var needsRefreshHover = false;
        var _loop_1 = function (k) {
            var layer = layerList[k];
            var ctx = layer.ctx;
            var repaintRects = useDirtyRect
                && layer.createRepaintRects(list, prevList, this_1._width, this_1._height);
            var start = paintAll ? layer.__startIndex : layer.__drawIndex;
            var useTimer = !paintAll && layer.incremental && Date.now;
            var startTime = useTimer && Date.now();
            var clearColor = layer.zlevel === this_1._zlevelList[0]
                ? this_1._backgroundColor : null;
            if (layer.__startIndex === layer.__endIndex) {
                layer.clear(false, clearColor, repaintRects);
            }
            else if (start === layer.__startIndex) {
                var firstEl = list[start];
                if (!firstEl.incremental || !firstEl.notClear || paintAll) {
                    layer.clear(false, clearColor, repaintRects);
                }
            }
            if (start === -1) {
                console.error('For some unknown reason. drawIndex is -1');
                start = layer.__startIndex;
            }
            var i;
            var repaint = function (repaintRect) {
                var scope = {
                    inHover: false,
                    allClipped: false,
                    prevEl: null,
                    viewWidth: _this._width,
                    viewHeight: _this._height
                };
                for (i = start; i < layer.__endIndex; i++) {
                    var el = list[i];
                    if (el.__inHover) {
                        needsRefreshHover = true;
                    }
                    _this._doPaintEl(el, layer, useDirtyRect, repaintRect, scope, i === layer.__endIndex - 1);
                    if (useTimer) {
                        var dTime = Date.now() - startTime;
                        if (dTime > 15) {
                            break;
                        }
                    }
                }
                if (scope.prevElClipPaths) {
                    ctx.restore();
                }
            };
            if (repaintRects) {
                if (repaintRects.length === 0) {
                    i = layer.__endIndex;
                }
                else {
                    var dpr = this_1.dpr;
                    for (var r = 0; r < repaintRects.length; ++r) {
                        var rect = repaintRects[r];
                        ctx.save();
                        ctx.beginPath();
                        ctx.rect(rect.x * dpr, rect.y * dpr, rect.width * dpr, rect.height * dpr);
                        ctx.clip();
                        repaint(rect);
                        ctx.restore();
                    }
                }
            }
            else {
                ctx.save();
                repaint();
                ctx.restore();
            }
            layer.__drawIndex = i;
            if (layer.__drawIndex < layer.__endIndex) {
                finished = false;
            }
        };
        var this_1 = this;
        for (var k = 0; k < layerList.length; k++) {
            _loop_1(k);
        }
        if (env["a" /* default */].wxa) {
            util["each"](this._layers, function (layer) {
                if (layer && layer.ctx && layer.ctx.draw) {
                    layer.ctx.draw();
                }
            });
        }
        return {
            finished: finished,
            needsRefreshHover: needsRefreshHover
        };
    };
    CanvasPainter.prototype._doPaintEl = function (el, currentLayer, useDirtyRect, repaintRect, scope, isLast) {
        var ctx = currentLayer.ctx;
        if (useDirtyRect) {
            var paintRect = el.getPaintRect();
            if (!repaintRect || paintRect && paintRect.intersect(repaintRect)) {
                brush(ctx, el, scope, isLast);
                el.setPrevPaintRect(paintRect);
            }
        }
        else {
            brush(ctx, el, scope, isLast);
        }
    };
    CanvasPainter.prototype.getLayer = function (zlevel, virtual) {
        if (this._singleCanvas && !this._needsManuallyCompositing) {
            zlevel = CANVAS_ZLEVEL;
        }
        var layer = this._layers[zlevel];
        if (!layer) {
            layer = new canvas_Layer('zr_' + zlevel, this, this.dpr);
            layer.zlevel = zlevel;
            layer.__builtin__ = true;
            if (this._layerConfig[zlevel]) {
                util["merge"](layer, this._layerConfig[zlevel], true);
            }
            else if (this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC]) {
                util["merge"](layer, this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC], true);
            }
            if (virtual) {
                layer.virtual = virtual;
            }
            this.insertLayer(zlevel, layer);
            layer.initContext();
        }
        return layer;
    };
    CanvasPainter.prototype.insertLayer = function (zlevel, layer) {
        var layersMap = this._layers;
        var zlevelList = this._zlevelList;
        var len = zlevelList.length;
        var domRoot = this._domRoot;
        var prevLayer = null;
        var i = -1;
        if (layersMap[zlevel]) {
            if (false) {}
            return;
        }
        if (!isLayerValid(layer)) {
            if (false) {}
            return;
        }
        if (len > 0 && zlevel > zlevelList[0]) {
            for (i = 0; i < len - 1; i++) {
                if (zlevelList[i] < zlevel
                    && zlevelList[i + 1] > zlevel) {
                    break;
                }
            }
            prevLayer = layersMap[zlevelList[i]];
        }
        zlevelList.splice(i + 1, 0, zlevel);
        layersMap[zlevel] = layer;
        if (!layer.virtual) {
            if (prevLayer) {
                var prevDom = prevLayer.dom;
                if (prevDom.nextSibling) {
                    domRoot.insertBefore(layer.dom, prevDom.nextSibling);
                }
                else {
                    domRoot.appendChild(layer.dom);
                }
            }
            else {
                if (domRoot.firstChild) {
                    domRoot.insertBefore(layer.dom, domRoot.firstChild);
                }
                else {
                    domRoot.appendChild(layer.dom);
                }
            }
        }
        layer.painter || (layer.painter = this);
    };
    CanvasPainter.prototype.eachLayer = function (cb, context) {
        var zlevelList = this._zlevelList;
        for (var i = 0; i < zlevelList.length; i++) {
            var z = zlevelList[i];
            cb.call(context, this._layers[z], z);
        }
    };
    CanvasPainter.prototype.eachBuiltinLayer = function (cb, context) {
        var zlevelList = this._zlevelList;
        for (var i = 0; i < zlevelList.length; i++) {
            var z = zlevelList[i];
            var layer = this._layers[z];
            if (layer.__builtin__) {
                cb.call(context, layer, z);
            }
        }
    };
    CanvasPainter.prototype.eachOtherLayer = function (cb, context) {
        var zlevelList = this._zlevelList;
        for (var i = 0; i < zlevelList.length; i++) {
            var z = zlevelList[i];
            var layer = this._layers[z];
            if (!layer.__builtin__) {
                cb.call(context, layer, z);
            }
        }
    };
    CanvasPainter.prototype.getLayers = function () {
        return this._layers;
    };
    CanvasPainter.prototype._updateLayerStatus = function (list) {
        this.eachBuiltinLayer(function (layer, z) {
            layer.__dirty = layer.__used = false;
        });
        function updatePrevLayer(idx) {
            if (prevLayer) {
                if (prevLayer.__endIndex !== idx) {
                    prevLayer.__dirty = true;
                }
                prevLayer.__endIndex = idx;
            }
        }
        if (this._singleCanvas) {
            for (var i_1 = 1; i_1 < list.length; i_1++) {
                var el = list[i_1];
                if (el.zlevel !== list[i_1 - 1].zlevel || el.incremental) {
                    this._needsManuallyCompositing = true;
                    break;
                }
            }
        }
        var prevLayer = null;
        var incrementalLayerCount = 0;
        var prevZlevel;
        var i;
        for (i = 0; i < list.length; i++) {
            var el = list[i];
            var zlevel = el.zlevel;
            var layer = void 0;
            if (prevZlevel !== zlevel) {
                prevZlevel = zlevel;
                incrementalLayerCount = 0;
            }
            if (el.incremental) {
                layer = this.getLayer(zlevel + INCREMENTAL_INC, this._needsManuallyCompositing);
                layer.incremental = true;
                incrementalLayerCount = 1;
            }
            else {
                layer = this.getLayer(zlevel + (incrementalLayerCount > 0 ? EL_AFTER_INCREMENTAL_INC : 0), this._needsManuallyCompositing);
            }
            if (!layer.__builtin__) {
                util["logError"]('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id);
            }
            if (layer !== prevLayer) {
                layer.__used = true;
                if (layer.__startIndex !== i) {
                    layer.__dirty = true;
                }
                layer.__startIndex = i;
                if (!layer.incremental) {
                    layer.__drawIndex = i;
                }
                else {
                    layer.__drawIndex = -1;
                }
                updatePrevLayer(i);
                prevLayer = layer;
            }
            if ((el.__dirty & REDRAW_BIT) && !el.__inHover) {
                layer.__dirty = true;
                if (layer.incremental && layer.__drawIndex < 0) {
                    layer.__drawIndex = i;
                }
            }
        }
        updatePrevLayer(i);
        this.eachBuiltinLayer(function (layer, z) {
            if (!layer.__used && layer.getElementCount() > 0) {
                layer.__dirty = true;
                layer.__startIndex = layer.__endIndex = layer.__drawIndex = 0;
            }
            if (layer.__dirty && layer.__drawIndex < 0) {
                layer.__drawIndex = layer.__startIndex;
            }
        });
    };
    CanvasPainter.prototype.clear = function () {
        this.eachBuiltinLayer(this._clearLayer);
        return this;
    };
    CanvasPainter.prototype._clearLayer = function (layer) {
        layer.clear();
    };
    CanvasPainter.prototype.setBackgroundColor = function (backgroundColor) {
        this._backgroundColor = backgroundColor;
        util["each"](this._layers, function (layer) {
            layer.setUnpainted();
        });
    };
    CanvasPainter.prototype.configLayer = function (zlevel, config) {
        if (config) {
            var layerConfig = this._layerConfig;
            if (!layerConfig[zlevel]) {
                layerConfig[zlevel] = config;
            }
            else {
                util["merge"](layerConfig[zlevel], config, true);
            }
            for (var i = 0; i < this._zlevelList.length; i++) {
                var _zlevel = this._zlevelList[i];
                if (_zlevel === zlevel || _zlevel === zlevel + EL_AFTER_INCREMENTAL_INC) {
                    var layer = this._layers[_zlevel];
                    util["merge"](layer, layerConfig[zlevel], true);
                }
            }
        }
    };
    CanvasPainter.prototype.delLayer = function (zlevel) {
        var layers = this._layers;
        var zlevelList = this._zlevelList;
        var layer = layers[zlevel];
        if (!layer) {
            return;
        }
        layer.dom.parentNode.removeChild(layer.dom);
        delete layers[zlevel];
        zlevelList.splice(util["indexOf"](zlevelList, zlevel), 1);
    };
    CanvasPainter.prototype.resize = function (width, height) {
        if (!this._domRoot.style) {
            if (width == null || height == null) {
                return;
            }
            this._width = width;
            this._height = height;
            this.getLayer(CANVAS_ZLEVEL).resize(width, height);
        }
        else {
            var domRoot = this._domRoot;
            domRoot.style.display = 'none';
            var opts = this._opts;
            var root = this.root;
            width != null && (opts.width = width);
            height != null && (opts.height = height);
            width = getSize(root, 0, opts);
            height = getSize(root, 1, opts);
            domRoot.style.display = '';
            if (this._width !== width || height !== this._height) {
                domRoot.style.width = width + 'px';
                domRoot.style.height = height + 'px';
                for (var id in this._layers) {
                    if (this._layers.hasOwnProperty(id)) {
                        this._layers[id].resize(width, height);
                    }
                }
                this.refresh(true);
            }
            this._width = width;
            this._height = height;
        }
        return this;
    };
    CanvasPainter.prototype.clearLayer = function (zlevel) {
        var layer = this._layers[zlevel];
        if (layer) {
            layer.clear();
        }
    };
    CanvasPainter.prototype.dispose = function () {
        this.root.innerHTML = '';
        this.root =
            this.storage =
                this._domRoot =
                    this._layers = null;
    };
    CanvasPainter.prototype.getRenderedCanvas = function (opts) {
        opts = opts || {};
        if (this._singleCanvas && !this._compositeManually) {
            return this._layers[CANVAS_ZLEVEL].dom;
        }
        var imageLayer = new canvas_Layer('image', this, opts.pixelRatio || this.dpr);
        imageLayer.initContext();
        imageLayer.clear(false, opts.backgroundColor || this._backgroundColor);
        var ctx = imageLayer.ctx;
        if (opts.pixelRatio <= this.dpr) {
            this.refresh();
            var width_1 = imageLayer.dom.width;
            var height_1 = imageLayer.dom.height;
            this.eachLayer(function (layer) {
                if (layer.__builtin__) {
                    ctx.drawImage(layer.dom, 0, 0, width_1, height_1);
                }
                else if (layer.renderToCanvas) {
                    ctx.save();
                    layer.renderToCanvas(ctx);
                    ctx.restore();
                }
            });
        }
        else {
            var scope = {
                inHover: false,
                viewWidth: this._width,
                viewHeight: this._height
            };
            var displayList = this.storage.getDisplayList(true);
            for (var i = 0, len = displayList.length; i < len; i++) {
                var el = displayList[i];
                brush(ctx, el, scope, i === len - 1);
            }
        }
        return imageLayer.dom;
    };
    CanvasPainter.prototype.getWidth = function () {
        return this._width;
    };
    CanvasPainter.prototype.getHeight = function () {
        return this._height;
    };
    return CanvasPainter;
}());
/* harmony default export */ var Painter = (Painter_CanvasPainter);
;

// CONCATENATED MODULE: ./node_modules/echarts/lib/renderer/installCanvasRenderer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function install(registers) {
  registers.registerPainter('canvas', Painter);
}
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/SVGPathRebuilder.js

var SVGPathRebuilder_mathSin = Math.sin;
var SVGPathRebuilder_mathCos = Math.cos;
var SVGPathRebuilder_PI = Math.PI;
var SVGPathRebuilder_PI2 = Math.PI * 2;
var degree = 180 / SVGPathRebuilder_PI;
var SVGPathRebuilder_SVGPathRebuilder = (function () {
    function SVGPathRebuilder() {
    }
    SVGPathRebuilder.prototype.reset = function (precision) {
        this._start = true;
        this._d = [];
        this._str = '';
        this._p = Math.pow(10, precision || 4);
    };
    SVGPathRebuilder.prototype.moveTo = function (x, y) {
        this._add('M', x, y);
    };
    SVGPathRebuilder.prototype.lineTo = function (x, y) {
        this._add('L', x, y);
    };
    SVGPathRebuilder.prototype.bezierCurveTo = function (x, y, x2, y2, x3, y3) {
        this._add('C', x, y, x2, y2, x3, y3);
    };
    SVGPathRebuilder.prototype.quadraticCurveTo = function (x, y, x2, y2) {
        this._add('Q', x, y, x2, y2);
    };
    SVGPathRebuilder.prototype.arc = function (cx, cy, r, startAngle, endAngle, anticlockwise) {
        this.ellipse(cx, cy, r, r, 0, startAngle, endAngle, anticlockwise);
    };
    SVGPathRebuilder.prototype.ellipse = function (cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise) {
        var dTheta = endAngle - startAngle;
        var clockwise = !anticlockwise;
        var dThetaPositive = Math.abs(dTheta);
        var isCircle = Object(helper["j" /* isAroundZero */])(dThetaPositive - SVGPathRebuilder_PI2)
            || (clockwise ? dTheta >= SVGPathRebuilder_PI2 : -dTheta >= SVGPathRebuilder_PI2);
        var unifiedTheta = dTheta > 0 ? dTheta % SVGPathRebuilder_PI2 : (dTheta % SVGPathRebuilder_PI2 + SVGPathRebuilder_PI2);
        var large = false;
        if (isCircle) {
            large = true;
        }
        else if (Object(helper["j" /* isAroundZero */])(dThetaPositive)) {
            large = false;
        }
        else {
            large = (unifiedTheta >= SVGPathRebuilder_PI) === !!clockwise;
        }
        var x0 = cx + rx * SVGPathRebuilder_mathCos(startAngle);
        var y0 = cy + ry * SVGPathRebuilder_mathSin(startAngle);
        if (this._start) {
            this._add('M', x0, y0);
        }
        var xRot = Math.round(psi * degree);
        if (isCircle) {
            var p = 1 / this._p;
            var dTheta_1 = (clockwise ? 1 : -1) * (SVGPathRebuilder_PI2 - p);
            this._add('A', rx, ry, xRot, 1, +clockwise, cx + rx * SVGPathRebuilder_mathCos(startAngle + dTheta_1), cy + ry * SVGPathRebuilder_mathSin(startAngle + dTheta_1));
            if (p > 1e-2) {
                this._add('A', rx, ry, xRot, 0, +clockwise, x0, y0);
            }
        }
        else {
            var x = cx + rx * SVGPathRebuilder_mathCos(endAngle);
            var y = cy + ry * SVGPathRebuilder_mathSin(endAngle);
            this._add('A', rx, ry, xRot, +large, +clockwise, x, y);
        }
    };
    SVGPathRebuilder.prototype.rect = function (x, y, w, h) {
        this._add('M', x, y);
        this._add('l', w, 0);
        this._add('l', 0, h);
        this._add('l', -w, 0);
        this._add('Z');
    };
    SVGPathRebuilder.prototype.closePath = function () {
        if (this._d.length > 0) {
            this._add('Z');
        }
    };
    SVGPathRebuilder.prototype._add = function (cmd, a, b, c, d, e, f, g, h) {
        var vals = [];
        var p = this._p;
        for (var i = 1; i < arguments.length; i++) {
            var val = arguments[i];
            if (isNaN(val)) {
                this._invalid = true;
                return;
            }
            vals.push(Math.round(val * p) / p);
        }
        this._d.push(cmd + vals.join(' '));
        this._start = cmd === 'Z';
    };
    SVGPathRebuilder.prototype.generateStr = function () {
        this._str = this._invalid ? '' : this._d.join('');
        this._d = [];
    };
    SVGPathRebuilder.prototype.getStr = function () {
        return this._str;
    };
    return SVGPathRebuilder;
}());
/* harmony default export */ var svg_SVGPathRebuilder = (SVGPathRebuilder_SVGPathRebuilder);

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/mapStyleToAttrs.js





var NONE = 'none';
var mathRound = Math.round;
function pathHasFill(style) {
    var fill = style.fill;
    return fill != null && fill !== NONE;
}
function pathHasStroke(style) {
    var stroke = style.stroke;
    return stroke != null && stroke !== NONE;
}
var strokeProps = ['lineCap', 'miterLimit', 'lineJoin'];
var svgStrokeProps = Object(util["map"])(strokeProps, function (prop) { return "stroke-" + prop.toLowerCase(); });
function mapStyleToAttrs(updateAttr, style, el, forceUpdate) {
    var opacity = style.opacity == null ? 1 : style.opacity;
    if (el instanceof graphic_Image) {
        updateAttr('opacity', opacity);
        return;
    }
    if (pathHasFill(style)) {
        var fill = Object(helper["p" /* normalizeColor */])(style.fill);
        updateAttr('fill', fill.color);
        var fillOpacity = style.fillOpacity != null
            ? style.fillOpacity * fill.opacity * opacity
            : fill.opacity * opacity;
        if (forceUpdate || fillOpacity < 1) {
            updateAttr('fill-opacity', fillOpacity);
        }
    }
    else {
        updateAttr('fill', NONE);
    }
    if (pathHasStroke(style)) {
        var stroke = Object(helper["p" /* normalizeColor */])(style.stroke);
        updateAttr('stroke', stroke.color);
        var strokeScale = style.strokeNoScale
            ? el.getLineScale()
            : 1;
        var strokeWidth = (strokeScale ? (style.lineWidth || 0) / strokeScale : 0);
        var strokeOpacity = style.strokeOpacity != null
            ? style.strokeOpacity * stroke.opacity * opacity
            : stroke.opacity * opacity;
        var strokeFirst = style.strokeFirst;
        if (forceUpdate || strokeWidth !== 1) {
            updateAttr('stroke-width', strokeWidth);
        }
        if (forceUpdate || strokeFirst) {
            updateAttr('paint-order', strokeFirst ? 'stroke' : 'fill');
        }
        if (forceUpdate || strokeOpacity < 1) {
            updateAttr('stroke-opacity', strokeOpacity);
        }
        if (style.lineDash) {
            var _a = getLineDash(el), lineDash = _a[0], lineDashOffset = _a[1];
            if (lineDash) {
                lineDashOffset = mathRound(lineDashOffset || 0);
                updateAttr('stroke-dasharray', lineDash.join(','));
                if (lineDashOffset || forceUpdate) {
                    updateAttr('stroke-dashoffset', lineDashOffset);
                }
            }
        }
        else if (forceUpdate) {
            updateAttr('stroke-dasharray', NONE);
        }
        for (var i = 0; i < strokeProps.length; i++) {
            var propName = strokeProps[i];
            if (forceUpdate || style[propName] !== DEFAULT_PATH_STYLE[propName]) {
                var val = style[propName] || DEFAULT_PATH_STYLE[propName];
                val && updateAttr(svgStrokeProps[i], val);
            }
        }
    }
    else if (forceUpdate) {
        updateAttr('stroke', NONE);
    }
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/core.js


var SVGNS = 'http://www.w3.org/2000/svg';
var XLINKNS = 'http://www.w3.org/1999/xlink';
var XMLNS = 'http://www.w3.org/2000/xmlns/';
var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
var META_DATA_PREFIX = 'ecmeta_';
function createElement(name) {
    return document.createElementNS(SVGNS, name);
}
;
function createVNode(tag, key, attrs, children, text) {
    return {
        tag: tag,
        attrs: attrs || {},
        children: children,
        text: text,
        key: key
    };
}
function createElementOpen(name, attrs) {
    var attrsStr = [];
    if (attrs) {
        for (var key in attrs) {
            var val = attrs[key];
            var part = key;
            if (val === false) {
                continue;
            }
            else if (val !== true && val != null) {
                part += "=\"" + val + "\"";
            }
            attrsStr.push(part);
        }
    }
    return "<" + name + " " + attrsStr.join(' ') + ">";
}
function createElementClose(name) {
    return "</" + name + ">";
}
function vNodeToString(el, opts) {
    opts = opts || {};
    var S = opts.newline ? '\n' : '';
    function convertElToString(el) {
        var children = el.children, tag = el.tag, attrs = el.attrs, text = el.text;
        return createElementOpen(tag, attrs)
            + (tag !== 'style' ? encodeHTML(text) : text || '')
            + (children ? "" + S + Object(util["map"])(children, function (child) { return convertElToString(child); }).join(S) + S : '')
            + createElementClose(tag);
    }
    return convertElToString(el);
}
function getCssString(selectorNodes, animationNodes, opts) {
    opts = opts || {};
    var S = opts.newline ? '\n' : '';
    var bracketBegin = " {" + S;
    var bracketEnd = S + "}";
    var selectors = Object(util["map"])(Object(util["keys"])(selectorNodes), function (className) {
        return className + bracketBegin + Object(util["map"])(Object(util["keys"])(selectorNodes[className]), function (attrName) {
            return attrName + ":" + selectorNodes[className][attrName] + ";";
        }).join(S) + bracketEnd;
    }).join(S);
    var animations = Object(util["map"])(Object(util["keys"])(animationNodes), function (animationName) {
        return "@keyframes " + animationName + bracketBegin + Object(util["map"])(Object(util["keys"])(animationNodes[animationName]), function (percent) {
            return percent + bracketBegin + Object(util["map"])(Object(util["keys"])(animationNodes[animationName][percent]), function (attrName) {
                var val = animationNodes[animationName][percent][attrName];
                if (attrName === 'd') {
                    val = "path(\"" + val + "\")";
                }
                return attrName + ":" + val + ";";
            }).join(S) + bracketEnd;
        }).join(S) + bracketEnd;
    }).join(S);
    if (!selectors && !animations) {
        return '';
    }
    return ['<![CDATA[', selectors, animations, ']]>'].join(S);
}
function createBrushScope(zrId) {
    return {
        zrId: zrId,
        shadowCache: {},
        patternCache: {},
        gradientCache: {},
        clipPathCache: {},
        defs: {},
        cssNodes: {},
        cssAnims: {},
        cssStyleCache: {},
        cssAnimIdx: 0,
        shadowIdx: 0,
        gradientIdx: 0,
        patternIdx: 0,
        clipPathIdx: 0
    };
}
function createSVGVNode(width, height, children, useViewBox) {
    return createVNode('svg', 'root', {
        'width': width,
        'height': height,
        'xmlns': SVGNS,
        'xmlns:xlink': XLINKNS,
        'version': '1.1',
        'baseProfile': 'full',
        'viewBox': useViewBox ? "0 0 " + width + " " + height : false
    }, children);
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/cssClassId.js
var cssClassIdx = 0;
function getClassId() {
    return cssClassIdx++;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/cssAnimation.js









var EASING_MAP = {
    cubicIn: '0.32,0,0.67,0',
    cubicOut: '0.33,1,0.68,1',
    cubicInOut: '0.65,0,0.35,1',
    quadraticIn: '0.11,0,0.5,0',
    quadraticOut: '0.5,1,0.89,1',
    quadraticInOut: '0.45,0,0.55,1',
    quarticIn: '0.5,0,0.75,0',
    quarticOut: '0.25,1,0.5,1',
    quarticInOut: '0.76,0,0.24,1',
    quinticIn: '0.64,0,0.78,0',
    quinticOut: '0.22,1,0.36,1',
    quinticInOut: '0.83,0,0.17,1',
    sinusoidalIn: '0.12,0,0.39,0',
    sinusoidalOut: '0.61,1,0.88,1',
    sinusoidalInOut: '0.37,0,0.63,1',
    exponentialIn: '0.7,0,0.84,0',
    exponentialOut: '0.16,1,0.3,1',
    exponentialInOut: '0.87,0,0.13,1',
    circularIn: '0.55,0,1,0.45',
    circularOut: '0,0.55,0.45,1',
    circularInOut: '0.85,0,0.15,1'
};
var transformOriginKey = 'transform-origin';
function buildPathString(el, kfShape, path) {
    var shape = Object(util["extend"])({}, el.shape);
    Object(util["extend"])(shape, kfShape);
    el.buildPath(path, shape);
    var svgPathBuilder = new svg_SVGPathRebuilder();
    svgPathBuilder.reset(Object(helper["f" /* getPathPrecision */])(el));
    path.rebuildPath(svgPathBuilder, 1);
    svgPathBuilder.generateStr();
    return svgPathBuilder.getStr();
}
function setTransformOrigin(target, transform) {
    var originX = transform.originX, originY = transform.originY;
    if (originX || originY) {
        target[transformOriginKey] = originX + "px " + originY + "px";
    }
}
var ANIMATE_STYLE_MAP = {
    fill: 'fill',
    opacity: 'opacity',
    lineWidth: 'stroke-width',
    lineDashOffset: 'stroke-dashoffset'
};
function addAnimation(cssAnim, scope) {
    var animationName = scope.zrId + '-ani-' + scope.cssAnimIdx++;
    scope.cssAnims[animationName] = cssAnim;
    return animationName;
}
function createCompoundPathCSSAnimation(el, attrs, scope) {
    var paths = el.shape.paths;
    var composedAnim = {};
    var cssAnimationCfg;
    var cssAnimationName;
    Object(util["each"])(paths, function (path) {
        var subScope = createBrushScope(scope.zrId);
        subScope.animation = true;
        createCSSAnimation(path, {}, subScope, true);
        var cssAnims = subScope.cssAnims;
        var cssNodes = subScope.cssNodes;
        var animNames = Object(util["keys"])(cssAnims);
        var len = animNames.length;
        if (!len) {
            return;
        }
        cssAnimationName = animNames[len - 1];
        var lastAnim = cssAnims[cssAnimationName];
        for (var percent in lastAnim) {
            var kf = lastAnim[percent];
            composedAnim[percent] = composedAnim[percent] || { d: '' };
            composedAnim[percent].d += kf.d || '';
        }
        for (var className in cssNodes) {
            var val = cssNodes[className].animation;
            if (val.indexOf(cssAnimationName) >= 0) {
                cssAnimationCfg = val;
            }
        }
    });
    if (!cssAnimationCfg) {
        return;
    }
    attrs.d = false;
    var animationName = addAnimation(composedAnim, scope);
    return cssAnimationCfg.replace(cssAnimationName, animationName);
}
function getEasingFunc(easing) {
    return Object(util["isString"])(easing)
        ? EASING_MAP[easing]
            ? "cubic-bezier(" + EASING_MAP[easing] + ")"
            : createCubicEasingFunc(easing) ? easing : ''
        : '';
}
function createCSSAnimation(el, attrs, scope, onlyShape) {
    var animators = el.animators;
    var len = animators.length;
    var cssAnimations = [];
    if (el instanceof graphic_CompoundPath) {
        var animationCfg = createCompoundPathCSSAnimation(el, attrs, scope);
        if (animationCfg) {
            cssAnimations.push(animationCfg);
        }
        else if (!len) {
            return;
        }
    }
    else if (!len) {
        return;
    }
    var groupAnimators = {};
    for (var i = 0; i < len; i++) {
        var animator = animators[i];
        var cfgArr = [animator.getMaxTime() / 1000 + 's'];
        var easing = getEasingFunc(animator.getClip().easing);
        var delay = animator.getDelay();
        if (easing) {
            cfgArr.push(easing);
        }
        else {
            cfgArr.push('linear');
        }
        if (delay) {
            cfgArr.push(delay / 1000 + 's');
        }
        if (animator.getLoop()) {
            cfgArr.push('infinite');
        }
        var cfg = cfgArr.join(' ');
        groupAnimators[cfg] = groupAnimators[cfg] || [cfg, []];
        groupAnimators[cfg][1].push(animator);
    }
    function createSingleCSSAnimation(groupAnimator) {
        var animators = groupAnimator[1];
        var len = animators.length;
        var transformKfs = {};
        var shapeKfs = {};
        var finalKfs = {};
        var animationTimingFunctionAttrName = 'animation-timing-function';
        function saveAnimatorTrackToCssKfs(animator, cssKfs, toCssAttrName) {
            var tracks = animator.getTracks();
            var maxTime = animator.getMaxTime();
            for (var k = 0; k < tracks.length; k++) {
                var track = tracks[k];
                if (track.needsAnimate()) {
                    var kfs = track.keyframes;
                    var attrName = track.propName;
                    toCssAttrName && (attrName = toCssAttrName(attrName));
                    if (attrName) {
                        for (var i = 0; i < kfs.length; i++) {
                            var kf = kfs[i];
                            var percent = Math.round(kf.time / maxTime * 100) + '%';
                            var kfEasing = getEasingFunc(kf.easing);
                            var rawValue = kf.rawValue;
                            if (Object(util["isString"])(rawValue) || Object(util["isNumber"])(rawValue)) {
                                cssKfs[percent] = cssKfs[percent] || {};
                                cssKfs[percent][attrName] = kf.rawValue;
                                if (kfEasing) {
                                    cssKfs[percent][animationTimingFunctionAttrName] = kfEasing;
                                }
                            }
                        }
                    }
                }
            }
        }
        for (var i = 0; i < len; i++) {
            var animator = animators[i];
            var targetProp = animator.targetName;
            if (!targetProp) {
                !onlyShape && saveAnimatorTrackToCssKfs(animator, transformKfs);
            }
            else if (targetProp === 'shape') {
                saveAnimatorTrackToCssKfs(animator, shapeKfs);
            }
        }
        for (var percent in transformKfs) {
            var transform = {};
            copyTransform(transform, el);
            Object(util["extend"])(transform, transformKfs[percent]);
            var str = Object(helper["g" /* getSRTTransformString */])(transform);
            var timingFunction = transformKfs[percent][animationTimingFunctionAttrName];
            finalKfs[percent] = str ? {
                transform: str
            } : {};
            setTransformOrigin(finalKfs[percent], transform);
            if (timingFunction) {
                finalKfs[percent][animationTimingFunctionAttrName] = timingFunction;
            }
        }
        ;
        var path;
        var canAnimateShape = true;
        for (var percent in shapeKfs) {
            finalKfs[percent] = finalKfs[percent] || {};
            var isFirst = !path;
            var timingFunction = shapeKfs[percent][animationTimingFunctionAttrName];
            if (isFirst) {
                path = new core_PathProxy();
            }
            var len_1 = path.len();
            path.reset();
            finalKfs[percent].d = buildPathString(el, shapeKfs[percent], path);
            var newLen = path.len();
            if (!isFirst && len_1 !== newLen) {
                canAnimateShape = false;
                break;
            }
            if (timingFunction) {
                finalKfs[percent][animationTimingFunctionAttrName] = timingFunction;
            }
        }
        ;
        if (!canAnimateShape) {
            for (var percent in finalKfs) {
                delete finalKfs[percent].d;
            }
        }
        if (!onlyShape) {
            for (var i = 0; i < len; i++) {
                var animator = animators[i];
                var targetProp = animator.targetName;
                if (targetProp === 'style') {
                    saveAnimatorTrackToCssKfs(animator, finalKfs, function (propName) { return ANIMATE_STYLE_MAP[propName]; });
                }
            }
        }
        var percents = Object(util["keys"])(finalKfs);
        var allTransformOriginSame = true;
        var transformOrigin;
        for (var i = 1; i < percents.length; i++) {
            var p0 = percents[i - 1];
            var p1 = percents[i];
            if (finalKfs[p0][transformOriginKey] !== finalKfs[p1][transformOriginKey]) {
                allTransformOriginSame = false;
                break;
            }
            transformOrigin = finalKfs[p0][transformOriginKey];
        }
        if (allTransformOriginSame && transformOrigin) {
            for (var percent in finalKfs) {
                if (finalKfs[percent][transformOriginKey]) {
                    delete finalKfs[percent][transformOriginKey];
                }
            }
            attrs[transformOriginKey] = transformOrigin;
        }
        if (Object(util["filter"])(percents, function (percent) { return Object(util["keys"])(finalKfs[percent]).length > 0; }).length) {
            var animationName = addAnimation(finalKfs, scope);
            return animationName + " " + groupAnimator[0] + " both";
        }
    }
    for (var key in groupAnimators) {
        var animationCfg = createSingleCSSAnimation(groupAnimators[key]);
        if (animationCfg) {
            cssAnimations.push(animationCfg);
        }
    }
    if (cssAnimations.length) {
        var className = scope.zrId + '-cls-' + getClassId();
        scope.cssNodes['.' + className] = {
            animation: cssAnimations.join(',')
        };
        attrs["class"] = className;
    }
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/cssEmphasis.js


function createCSSEmphasis(el, attrs, scope) {
    if (!el.ignore) {
        if (el.isSilent()) {
            var style = {
                'pointer-events': 'none'
            };
            setClassAttribute(style, attrs, scope, true);
        }
        else {
            var emphasisStyle = el.states.emphasis && el.states.emphasis.style
                ? el.states.emphasis.style
                : {};
            var fill = emphasisStyle.fill;
            if (!fill) {
                var normalFill = el.style && el.style.fill;
                var selectFill = el.states.select
                    && el.states.select.style
                    && el.states.select.style.fill;
                var fromFill = el.currentStates.indexOf('select') >= 0
                    ? (selectFill || normalFill)
                    : normalFill;
                if (fromFill) {
                    fill = Object(tool_color["liftColor"])(fromFill);
                }
            }
            var lineWidth = emphasisStyle.lineWidth;
            if (lineWidth) {
                var scaleX = (!emphasisStyle.strokeNoScale && el.transform)
                    ? el.transform[0]
                    : 1;
                lineWidth = lineWidth / scaleX;
            }
            var style = {
                cursor: 'pointer'
            };
            if (fill) {
                style.fill = fill;
            }
            if (emphasisStyle.stroke) {
                style.stroke = emphasisStyle.stroke;
            }
            if (lineWidth) {
                style['stroke-width'] = lineWidth;
            }
            setClassAttribute(style, attrs, scope, true);
        }
    }
}
function setClassAttribute(style, attrs, scope, withHover) {
    var styleKey = JSON.stringify(style);
    var className = scope.cssStyleCache[styleKey];
    if (!className) {
        className = scope.zrId + '-cls-' + getClassId();
        scope.cssStyleCache[styleKey] = className;
        scope.cssNodes['.' + className + (withHover ? ':hover' : '')] = style;
    }
    attrs["class"] = attrs["class"] ? (attrs["class"] + ' ' + className) : className;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/graphic.js















var graphic_round = Math.round;
function graphic_isImageLike(val) {
    return val && Object(util["isString"])(val.src);
}
function isCanvasLike(val) {
    return val && Object(util["isFunction"])(val.toDataURL);
}
function setStyleAttrs(attrs, style, el, scope) {
    mapStyleToAttrs(function (key, val) {
        var isFillStroke = key === 'fill' || key === 'stroke';
        if (isFillStroke && Object(helper["k" /* isGradient */])(val)) {
            setGradient(style, attrs, key, scope);
        }
        else if (isFillStroke && Object(helper["n" /* isPattern */])(val)) {
            setPattern(el, attrs, key, scope);
        }
        else {
            attrs[key] = val;
        }
        if (isFillStroke && scope.ssr && val === 'none') {
            attrs['pointer-events'] = 'visible';
        }
    }, style, el, false);
    setShadow(el, attrs, scope);
}
function setMetaData(attrs, el) {
    var metaData = getElementSSRData(el);
    if (metaData) {
        metaData.each(function (val, key) {
            val != null && (attrs[(META_DATA_PREFIX + key).toLowerCase()] = val + '');
        });
        if (el.isSilent()) {
            attrs[META_DATA_PREFIX + 'silent'] = 'true';
        }
    }
}
function noRotateScale(m) {
    return Object(helper["j" /* isAroundZero */])(m[0] - 1)
        && Object(helper["j" /* isAroundZero */])(m[1])
        && Object(helper["j" /* isAroundZero */])(m[2])
        && Object(helper["j" /* isAroundZero */])(m[3] - 1);
}
function noTranslate(m) {
    return Object(helper["j" /* isAroundZero */])(m[4]) && Object(helper["j" /* isAroundZero */])(m[5]);
}
function setTransform(attrs, m, compress) {
    if (m && !(noTranslate(m) && noRotateScale(m))) {
        var mul = compress ? 10 : 1e4;
        attrs.transform = noRotateScale(m)
            ? "translate(" + graphic_round(m[4] * mul) / mul + " " + graphic_round(m[5] * mul) / mul + ")" : Object(helper["e" /* getMatrixStr */])(m);
    }
}
function convertPolyShape(shape, attrs, mul) {
    var points = shape.points;
    var strArr = [];
    for (var i = 0; i < points.length; i++) {
        strArr.push(graphic_round(points[i][0] * mul) / mul);
        strArr.push(graphic_round(points[i][1] * mul) / mul);
    }
    attrs.points = strArr.join(' ');
}
function validatePolyShape(shape) {
    return !shape.smooth;
}
function createAttrsConvert(desc) {
    var normalizedDesc = Object(util["map"])(desc, function (item) {
        return (typeof item === 'string' ? [item, item] : item);
    });
    return function (shape, attrs, mul) {
        for (var i = 0; i < normalizedDesc.length; i++) {
            var item = normalizedDesc[i];
            var val = shape[item[0]];
            if (val != null) {
                attrs[item[1]] = graphic_round(val * mul) / mul;
            }
        }
    };
}
var builtinShapesDef = {
    circle: [createAttrsConvert(['cx', 'cy', 'r'])],
    polyline: [convertPolyShape, validatePolyShape],
    polygon: [convertPolyShape, validatePolyShape]
};
function hasShapeAnimation(el) {
    var animators = el.animators;
    for (var i = 0; i < animators.length; i++) {
        if (animators[i].targetName === 'shape') {
            return true;
        }
    }
    return false;
}
function brushSVGPath(el, scope) {
    var style = el.style;
    var shape = el.shape;
    var builtinShpDef = builtinShapesDef[el.type];
    var attrs = {};
    var needsAnimate = scope.animation;
    var svgElType = 'path';
    var strokePercent = el.style.strokePercent;
    var precision = (scope.compress && Object(helper["f" /* getPathPrecision */])(el)) || 4;
    if (builtinShpDef
        && !scope.willUpdate
        && !(builtinShpDef[1] && !builtinShpDef[1](shape))
        && !(needsAnimate && hasShapeAnimation(el))
        && !(strokePercent < 1)) {
        svgElType = el.type;
        var mul = Math.pow(10, precision);
        builtinShpDef[0](shape, attrs, mul);
    }
    else {
        var needBuildPath = !el.path || el.shapeChanged();
        if (!el.path) {
            el.createPathProxy();
        }
        var path = el.path;
        if (needBuildPath) {
            path.beginPath();
            el.buildPath(path, el.shape);
            el.pathUpdated();
        }
        var pathVersion = path.getVersion();
        var elExt = el;
        var svgPathBuilder = elExt.__svgPathBuilder;
        if (elExt.__svgPathVersion !== pathVersion
            || !svgPathBuilder
            || strokePercent !== elExt.__svgPathStrokePercent) {
            if (!svgPathBuilder) {
                svgPathBuilder = elExt.__svgPathBuilder = new svg_SVGPathRebuilder();
            }
            svgPathBuilder.reset(precision);
            path.rebuildPath(svgPathBuilder, strokePercent);
            svgPathBuilder.generateStr();
            elExt.__svgPathVersion = pathVersion;
            elExt.__svgPathStrokePercent = strokePercent;
        }
        attrs.d = svgPathBuilder.getStr();
    }
    setTransform(attrs, el.transform);
    setStyleAttrs(attrs, style, el, scope);
    setMetaData(attrs, el);
    scope.animation && createCSSAnimation(el, attrs, scope);
    scope.emphasis && createCSSEmphasis(el, attrs, scope);
    return createVNode(svgElType, el.id + '', attrs);
}
function brushSVGImage(el, scope) {
    var style = el.style;
    var image = style.image;
    if (image && !Object(util["isString"])(image)) {
        if (graphic_isImageLike(image)) {
            image = image.src;
        }
        else if (isCanvasLike(image)) {
            image = image.toDataURL();
        }
    }
    if (!image) {
        return;
    }
    var x = style.x || 0;
    var y = style.y || 0;
    var dw = style.width;
    var dh = style.height;
    var attrs = {
        href: image,
        width: dw,
        height: dh
    };
    if (x) {
        attrs.x = x;
    }
    if (y) {
        attrs.y = y;
    }
    setTransform(attrs, el.transform);
    setStyleAttrs(attrs, style, el, scope);
    setMetaData(attrs, el);
    scope.animation && createCSSAnimation(el, attrs, scope);
    return createVNode('image', el.id + '', attrs);
}
;
function brushSVGTSpan(el, scope) {
    var style = el.style;
    var text = style.text;
    text != null && (text += '');
    if (!text || isNaN(style.x) || isNaN(style.y)) {
        return;
    }
    var font = style.font || platform["a" /* DEFAULT_FONT */];
    var x = style.x || 0;
    var y = Object(helper["b" /* adjustTextY */])(style.y || 0, getLineHeight(font), style.textBaseline);
    var textAlign = helper["a" /* TEXT_ALIGN_TO_ANCHOR */][style.textAlign]
        || style.textAlign;
    var attrs = {
        'dominant-baseline': 'central',
        'text-anchor': textAlign
    };
    if (hasSeparateFont(style)) {
        var separatedFontStr = '';
        var fontStyle = style.fontStyle;
        var fontSize = parseFontSize(style.fontSize);
        if (!parseFloat(fontSize)) {
            return;
        }
        var fontFamily = style.fontFamily || platform["b" /* DEFAULT_FONT_FAMILY */];
        var fontWeight = style.fontWeight;
        separatedFontStr += "font-size:" + fontSize + ";font-family:" + fontFamily + ";";
        if (fontStyle && fontStyle !== 'normal') {
            separatedFontStr += "font-style:" + fontStyle + ";";
        }
        if (fontWeight && fontWeight !== 'normal') {
            separatedFontStr += "font-weight:" + fontWeight + ";";
        }
        attrs.style = separatedFontStr;
    }
    else {
        attrs.style = "font: " + font;
    }
    if (text.match(/\s/)) {
        attrs['xml:space'] = 'preserve';
    }
    if (x) {
        attrs.x = x;
    }
    if (y) {
        attrs.y = y;
    }
    setTransform(attrs, el.transform);
    setStyleAttrs(attrs, style, el, scope);
    setMetaData(attrs, el);
    scope.animation && createCSSAnimation(el, attrs, scope);
    return createVNode('text', el.id + '', attrs, undefined, text);
}
function graphic_brush(el, scope) {
    if (el instanceof graphic_Path) {
        return brushSVGPath(el, scope);
    }
    else if (el instanceof graphic_Image) {
        return brushSVGImage(el, scope);
    }
    else if (el instanceof graphic_TSpan) {
        return brushSVGTSpan(el, scope);
    }
}
function setShadow(el, attrs, scope) {
    var style = el.style;
    if (Object(helper["i" /* hasShadow */])(style)) {
        var shadowKey = Object(helper["h" /* getShadowKey */])(el);
        var shadowCache = scope.shadowCache;
        var shadowId = shadowCache[shadowKey];
        if (!shadowId) {
            var globalScale = el.getGlobalScale();
            var scaleX = globalScale[0];
            var scaleY = globalScale[1];
            if (!scaleX || !scaleY) {
                return;
            }
            var offsetX = style.shadowOffsetX || 0;
            var offsetY = style.shadowOffsetY || 0;
            var blur_1 = style.shadowBlur;
            var _a = Object(helper["p" /* normalizeColor */])(style.shadowColor), opacity = _a.opacity, color = _a.color;
            var stdDx = blur_1 / 2 / scaleX;
            var stdDy = blur_1 / 2 / scaleY;
            var stdDeviation = stdDx + ' ' + stdDy;
            shadowId = scope.zrId + '-s' + scope.shadowIdx++;
            scope.defs[shadowId] = createVNode('filter', shadowId, {
                'id': shadowId,
                'x': '-100%',
                'y': '-100%',
                'width': '300%',
                'height': '300%'
            }, [
                createVNode('feDropShadow', '', {
                    'dx': offsetX / scaleX,
                    'dy': offsetY / scaleY,
                    'stdDeviation': stdDeviation,
                    'flood-color': color,
                    'flood-opacity': opacity
                })
            ]);
            shadowCache[shadowKey] = shadowId;
        }
        attrs.filter = Object(helper["d" /* getIdURL */])(shadowId);
    }
}
function setGradient(style, attrs, target, scope) {
    var val = style[target];
    var gradientTag;
    var gradientAttrs = {
        'gradientUnits': val.global
            ? 'userSpaceOnUse'
            : 'objectBoundingBox'
    };
    if (Object(helper["m" /* isLinearGradient */])(val)) {
        gradientTag = 'linearGradient';
        gradientAttrs.x1 = val.x;
        gradientAttrs.y1 = val.y;
        gradientAttrs.x2 = val.x2;
        gradientAttrs.y2 = val.y2;
    }
    else if (Object(helper["o" /* isRadialGradient */])(val)) {
        gradientTag = 'radialGradient';
        gradientAttrs.cx = Object(util["retrieve2"])(val.x, 0.5);
        gradientAttrs.cy = Object(util["retrieve2"])(val.y, 0.5);
        gradientAttrs.r = Object(util["retrieve2"])(val.r, 0.5);
    }
    else {
        if (false) {}
        return;
    }
    var colors = val.colorStops;
    var colorStops = [];
    for (var i = 0, len = colors.length; i < len; ++i) {
        var offset = Object(helper["q" /* round4 */])(colors[i].offset) * 100 + '%';
        var stopColor = colors[i].color;
        var _a = Object(helper["p" /* normalizeColor */])(stopColor), color = _a.color, opacity = _a.opacity;
        var stopsAttrs = {
            'offset': offset
        };
        stopsAttrs['stop-color'] = color;
        if (opacity < 1) {
            stopsAttrs['stop-opacity'] = opacity;
        }
        colorStops.push(createVNode('stop', i + '', stopsAttrs));
    }
    var gradientVNode = createVNode(gradientTag, '', gradientAttrs, colorStops);
    var gradientKey = vNodeToString(gradientVNode);
    var gradientCache = scope.gradientCache;
    var gradientId = gradientCache[gradientKey];
    if (!gradientId) {
        gradientId = scope.zrId + '-g' + scope.gradientIdx++;
        gradientCache[gradientKey] = gradientId;
        gradientAttrs.id = gradientId;
        scope.defs[gradientId] = createVNode(gradientTag, gradientId, gradientAttrs, colorStops);
    }
    attrs[target] = Object(helper["d" /* getIdURL */])(gradientId);
}
function setPattern(el, attrs, target, scope) {
    var val = el.style[target];
    var boundingRect = el.getBoundingRect();
    var patternAttrs = {};
    var repeat = val.repeat;
    var noRepeat = repeat === 'no-repeat';
    var repeatX = repeat === 'repeat-x';
    var repeatY = repeat === 'repeat-y';
    var child;
    if (Object(helper["l" /* isImagePattern */])(val)) {
        var imageWidth_1 = val.imageWidth;
        var imageHeight_1 = val.imageHeight;
        var imageSrc = void 0;
        var patternImage = val.image;
        if (Object(util["isString"])(patternImage)) {
            imageSrc = patternImage;
        }
        else if (graphic_isImageLike(patternImage)) {
            imageSrc = patternImage.src;
        }
        else if (isCanvasLike(patternImage)) {
            imageSrc = patternImage.toDataURL();
        }
        if (typeof Image === 'undefined') {
            var errMsg = 'Image width/height must been given explictly in svg-ssr renderer.';
            Object(util["assert"])(imageWidth_1, errMsg);
            Object(util["assert"])(imageHeight_1, errMsg);
        }
        else if (imageWidth_1 == null || imageHeight_1 == null) {
            var setSizeToVNode_1 = function (vNode, img) {
                if (vNode) {
                    var svgEl = vNode.elm;
                    var width = imageWidth_1 || img.width;
                    var height = imageHeight_1 || img.height;
                    if (vNode.tag === 'pattern') {
                        if (repeatX) {
                            height = 1;
                            width /= boundingRect.width;
                        }
                        else if (repeatY) {
                            width = 1;
                            height /= boundingRect.height;
                        }
                    }
                    vNode.attrs.width = width;
                    vNode.attrs.height = height;
                    if (svgEl) {
                        svgEl.setAttribute('width', width);
                        svgEl.setAttribute('height', height);
                    }
                }
            };
            var createdImage = createOrUpdateImage(imageSrc, null, el, function (img) {
                noRepeat || setSizeToVNode_1(patternVNode, img);
                setSizeToVNode_1(child, img);
            });
            if (createdImage && createdImage.width && createdImage.height) {
                imageWidth_1 = imageWidth_1 || createdImage.width;
                imageHeight_1 = imageHeight_1 || createdImage.height;
            }
        }
        child = createVNode('image', 'img', {
            href: imageSrc,
            width: imageWidth_1,
            height: imageHeight_1
        });
        patternAttrs.width = imageWidth_1;
        patternAttrs.height = imageHeight_1;
    }
    else if (val.svgElement) {
        child = Object(util["clone"])(val.svgElement);
        patternAttrs.width = val.svgWidth;
        patternAttrs.height = val.svgHeight;
    }
    if (!child) {
        return;
    }
    var patternWidth;
    var patternHeight;
    if (noRepeat) {
        patternWidth = patternHeight = 1;
    }
    else if (repeatX) {
        patternHeight = 1;
        patternWidth = patternAttrs.width / boundingRect.width;
    }
    else if (repeatY) {
        patternWidth = 1;
        patternHeight = patternAttrs.height / boundingRect.height;
    }
    else {
        patternAttrs.patternUnits = 'userSpaceOnUse';
    }
    if (patternWidth != null && !isNaN(patternWidth)) {
        patternAttrs.width = patternWidth;
    }
    if (patternHeight != null && !isNaN(patternHeight)) {
        patternAttrs.height = patternHeight;
    }
    var patternTransform = Object(helper["g" /* getSRTTransformString */])(val);
    patternTransform && (patternAttrs.patternTransform = patternTransform);
    var patternVNode = createVNode('pattern', '', patternAttrs, [child]);
    var patternKey = vNodeToString(patternVNode);
    var patternCache = scope.patternCache;
    var patternId = patternCache[patternKey];
    if (!patternId) {
        patternId = scope.zrId + '-p' + scope.patternIdx++;
        patternCache[patternKey] = patternId;
        patternAttrs.id = patternId;
        patternVNode = scope.defs[patternId] = createVNode('pattern', patternId, patternAttrs, [child]);
    }
    attrs[target] = Object(helper["d" /* getIdURL */])(patternId);
}
function setClipPath(clipPath, attrs, scope) {
    var clipPathCache = scope.clipPathCache, defs = scope.defs;
    var clipPathId = clipPathCache[clipPath.id];
    if (!clipPathId) {
        clipPathId = scope.zrId + '-c' + scope.clipPathIdx++;
        var clipPathAttrs = {
            id: clipPathId
        };
        clipPathCache[clipPath.id] = clipPathId;
        defs[clipPathId] = createVNode('clipPath', clipPathId, clipPathAttrs, [brushSVGPath(clipPath, scope)]);
    }
    attrs['clip-path'] = Object(helper["d" /* getIdURL */])(clipPathId);
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/domapi.js
function createTextNode(text) {
    return document.createTextNode(text);
}
function createComment(text) {
    return document.createComment(text);
}
function insertBefore(parentNode, newNode, referenceNode) {
    parentNode.insertBefore(newNode, referenceNode);
}
function removeChild(node, child) {
    node.removeChild(child);
}
function appendChild(node, child) {
    node.appendChild(child);
}
function domapi_parentNode(node) {
    return node.parentNode;
}
function nextSibling(node) {
    return node.nextSibling;
}
function tagName(elm) {
    return elm.tagName;
}
function setTextContent(node, text) {
    node.textContent = text;
}
function getTextContent(node) {
    return node.textContent;
}
function isElement(node) {
    return node.nodeType === 1;
}
function isText(node) {
    return node.nodeType === 3;
}
function isComment(node) {
    return node.nodeType === 8;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/patch.js



var colonChar = 58;
var xChar = 120;
var emptyNode = createVNode('', '');
function isUndef(s) {
    return s === undefined;
}
function isDef(s) {
    return s !== undefined;
}
function createKeyToOldIdx(children, beginIdx, endIdx) {
    var map = {};
    for (var i = beginIdx; i <= endIdx; ++i) {
        var key = children[i].key;
        if (key !== undefined) {
            if (false) {}
            map[key] = i;
        }
    }
    return map;
}
function sameVnode(vnode1, vnode2) {
    var isSameKey = vnode1.key === vnode2.key;
    var isSameTag = vnode1.tag === vnode2.tag;
    return isSameTag && isSameKey;
}
function createElm(vnode) {
    var i;
    var children = vnode.children;
    var tag = vnode.tag;
    if (isDef(tag)) {
        var elm = (vnode.elm = createElement(tag));
        updateAttrs(emptyNode, vnode);
        if (Object(util["isArray"])(children)) {
            for (i = 0; i < children.length; ++i) {
                var ch = children[i];
                if (ch != null) {
                    appendChild(elm, createElm(ch));
                }
            }
        }
        else if (isDef(vnode.text) && !Object(util["isObject"])(vnode.text)) {
            appendChild(elm, createTextNode(vnode.text));
        }
    }
    else {
        vnode.elm = createTextNode(vnode.text);
    }
    return vnode.elm;
}
function addVnodes(parentElm, before, vnodes, startIdx, endIdx) {
    for (; startIdx <= endIdx; ++startIdx) {
        var ch = vnodes[startIdx];
        if (ch != null) {
            insertBefore(parentElm, createElm(ch), before);
        }
    }
}
function removeVnodes(parentElm, vnodes, startIdx, endIdx) {
    for (; startIdx <= endIdx; ++startIdx) {
        var ch = vnodes[startIdx];
        if (ch != null) {
            if (isDef(ch.tag)) {
                var parent_1 = domapi_parentNode(ch.elm);
                removeChild(parent_1, ch.elm);
            }
            else {
                removeChild(parentElm, ch.elm);
            }
        }
    }
}
function updateAttrs(oldVnode, vnode) {
    var key;
    var elm = vnode.elm;
    var oldAttrs = oldVnode && oldVnode.attrs || {};
    var attrs = vnode.attrs || {};
    if (oldAttrs === attrs) {
        return;
    }
    for (key in attrs) {
        var cur = attrs[key];
        var old = oldAttrs[key];
        if (old !== cur) {
            if (cur === true) {
                elm.setAttribute(key, '');
            }
            else if (cur === false) {
                elm.removeAttribute(key);
            }
            else {
                if (key === 'style') {
                    elm.style.cssText = cur;
                }
                else if (key.charCodeAt(0) !== xChar) {
                    elm.setAttribute(key, cur);
                }
                else if (key === 'xmlns:xlink' || key === 'xmlns') {
                    elm.setAttributeNS(XMLNS, key, cur);
                }
                else if (key.charCodeAt(3) === colonChar) {
                    elm.setAttributeNS(XML_NAMESPACE, key, cur);
                }
                else if (key.charCodeAt(5) === colonChar) {
                    elm.setAttributeNS(XLINKNS, key, cur);
                }
                else {
                    elm.setAttribute(key, cur);
                }
            }
        }
    }
    for (key in oldAttrs) {
        if (!(key in attrs)) {
            elm.removeAttribute(key);
        }
    }
}
function updateChildren(parentElm, oldCh, newCh) {
    var oldStartIdx = 0;
    var newStartIdx = 0;
    var oldEndIdx = oldCh.length - 1;
    var oldStartVnode = oldCh[0];
    var oldEndVnode = oldCh[oldEndIdx];
    var newEndIdx = newCh.length - 1;
    var newStartVnode = newCh[0];
    var newEndVnode = newCh[newEndIdx];
    var oldKeyToIdx;
    var idxInOld;
    var elmToMove;
    var before;
    while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
        if (oldStartVnode == null) {
            oldStartVnode = oldCh[++oldStartIdx];
        }
        else if (oldEndVnode == null) {
            oldEndVnode = oldCh[--oldEndIdx];
        }
        else if (newStartVnode == null) {
            newStartVnode = newCh[++newStartIdx];
        }
        else if (newEndVnode == null) {
            newEndVnode = newCh[--newEndIdx];
        }
        else if (sameVnode(oldStartVnode, newStartVnode)) {
            patchVnode(oldStartVnode, newStartVnode);
            oldStartVnode = oldCh[++oldStartIdx];
            newStartVnode = newCh[++newStartIdx];
        }
        else if (sameVnode(oldEndVnode, newEndVnode)) {
            patchVnode(oldEndVnode, newEndVnode);
            oldEndVnode = oldCh[--oldEndIdx];
            newEndVnode = newCh[--newEndIdx];
        }
        else if (sameVnode(oldStartVnode, newEndVnode)) {
            patchVnode(oldStartVnode, newEndVnode);
            insertBefore(parentElm, oldStartVnode.elm, nextSibling(oldEndVnode.elm));
            oldStartVnode = oldCh[++oldStartIdx];
            newEndVnode = newCh[--newEndIdx];
        }
        else if (sameVnode(oldEndVnode, newStartVnode)) {
            patchVnode(oldEndVnode, newStartVnode);
            insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
            oldEndVnode = oldCh[--oldEndIdx];
            newStartVnode = newCh[++newStartIdx];
        }
        else {
            if (isUndef(oldKeyToIdx)) {
                oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx);
            }
            idxInOld = oldKeyToIdx[newStartVnode.key];
            if (isUndef(idxInOld)) {
                insertBefore(parentElm, createElm(newStartVnode), oldStartVnode.elm);
            }
            else {
                elmToMove = oldCh[idxInOld];
                if (elmToMove.tag !== newStartVnode.tag) {
                    insertBefore(parentElm, createElm(newStartVnode), oldStartVnode.elm);
                }
                else {
                    patchVnode(elmToMove, newStartVnode);
                    oldCh[idxInOld] = undefined;
                    insertBefore(parentElm, elmToMove.elm, oldStartVnode.elm);
                }
            }
            newStartVnode = newCh[++newStartIdx];
        }
    }
    if (oldStartIdx <= oldEndIdx || newStartIdx <= newEndIdx) {
        if (oldStartIdx > oldEndIdx) {
            before = newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].elm;
            addVnodes(parentElm, before, newCh, newStartIdx, newEndIdx);
        }
        else {
            removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
        }
    }
}
function patchVnode(oldVnode, vnode) {
    var elm = (vnode.elm = oldVnode.elm);
    var oldCh = oldVnode.children;
    var ch = vnode.children;
    if (oldVnode === vnode) {
        return;
    }
    updateAttrs(oldVnode, vnode);
    if (isUndef(vnode.text)) {
        if (isDef(oldCh) && isDef(ch)) {
            if (oldCh !== ch) {
                updateChildren(elm, oldCh, ch);
            }
        }
        else if (isDef(ch)) {
            if (isDef(oldVnode.text)) {
                setTextContent(elm, '');
            }
            addVnodes(elm, null, ch, 0, ch.length - 1);
        }
        else if (isDef(oldCh)) {
            removeVnodes(elm, oldCh, 0, oldCh.length - 1);
        }
        else if (isDef(oldVnode.text)) {
            setTextContent(elm, '');
        }
    }
    else if (oldVnode.text !== vnode.text) {
        if (isDef(oldCh)) {
            removeVnodes(elm, oldCh, 0, oldCh.length - 1);
        }
        setTextContent(elm, vnode.text);
    }
}
function patch(oldVnode, vnode) {
    if (sameVnode(oldVnode, vnode)) {
        patchVnode(oldVnode, vnode);
    }
    else {
        var elm = oldVnode.elm;
        var parent_2 = domapi_parentNode(elm);
        createElm(vnode);
        if (parent_2 !== null) {
            insertBefore(parent_2, vnode.elm, nextSibling(elm));
            removeVnodes(parent_2, [oldVnode], 0, 0);
        }
    }
    return vnode;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/Painter.js






var svgId = 0;
var Painter_SVGPainter = (function () {
    function SVGPainter(root, storage, opts) {
        this.type = 'svg';
        this.refreshHover = createMethodNotSupport('refreshHover');
        this.configLayer = createMethodNotSupport('configLayer');
        this.storage = storage;
        this._opts = opts = Object(util["extend"])({}, opts);
        this.root = root;
        this._id = 'zr' + svgId++;
        this._oldVNode = createSVGVNode(opts.width, opts.height);
        if (root && !opts.ssr) {
            var viewport = this._viewport = document.createElement('div');
            viewport.style.cssText = 'position:relative;overflow:hidden';
            var svgDom = this._svgDom = this._oldVNode.elm = createElement('svg');
            updateAttrs(null, this._oldVNode);
            viewport.appendChild(svgDom);
            root.appendChild(viewport);
        }
        this.resize(opts.width, opts.height);
    }
    SVGPainter.prototype.getType = function () {
        return this.type;
    };
    SVGPainter.prototype.getViewportRoot = function () {
        return this._viewport;
    };
    SVGPainter.prototype.getViewportRootOffset = function () {
        var viewportRoot = this.getViewportRoot();
        if (viewportRoot) {
            return {
                offsetLeft: viewportRoot.offsetLeft || 0,
                offsetTop: viewportRoot.offsetTop || 0
            };
        }
    };
    SVGPainter.prototype.getSvgDom = function () {
        return this._svgDom;
    };
    SVGPainter.prototype.refresh = function () {
        if (this.root) {
            var vnode = this.renderToVNode({
                willUpdate: true
            });
            vnode.attrs.style = 'position:absolute;left:0;top:0;user-select:none';
            patch(this._oldVNode, vnode);
            this._oldVNode = vnode;
        }
    };
    SVGPainter.prototype.renderOneToVNode = function (el) {
        return graphic_brush(el, createBrushScope(this._id));
    };
    SVGPainter.prototype.renderToVNode = function (opts) {
        opts = opts || {};
        var list = this.storage.getDisplayList(true);
        var width = this._width;
        var height = this._height;
        var scope = createBrushScope(this._id);
        scope.animation = opts.animation;
        scope.willUpdate = opts.willUpdate;
        scope.compress = opts.compress;
        scope.emphasis = opts.emphasis;
        scope.ssr = this._opts.ssr;
        var children = [];
        var bgVNode = this._bgVNode = createBackgroundVNode(width, height, this._backgroundColor, scope);
        bgVNode && children.push(bgVNode);
        var mainVNode = !opts.compress
            ? (this._mainVNode = createVNode('g', 'main', {}, [])) : null;
        this._paintList(list, scope, mainVNode ? mainVNode.children : children);
        mainVNode && children.push(mainVNode);
        var defs = Object(util["map"])(Object(util["keys"])(scope.defs), function (id) { return scope.defs[id]; });
        if (defs.length) {
            children.push(createVNode('defs', 'defs', {}, defs));
        }
        if (opts.animation) {
            var animationCssStr = getCssString(scope.cssNodes, scope.cssAnims, { newline: true });
            if (animationCssStr) {
                var styleNode = createVNode('style', 'stl', {}, [], animationCssStr);
                children.push(styleNode);
            }
        }
        return createSVGVNode(width, height, children, opts.useViewBox);
    };
    SVGPainter.prototype.renderToString = function (opts) {
        opts = opts || {};
        return vNodeToString(this.renderToVNode({
            animation: Object(util["retrieve2"])(opts.cssAnimation, true),
            emphasis: Object(util["retrieve2"])(opts.cssEmphasis, true),
            willUpdate: false,
            compress: true,
            useViewBox: Object(util["retrieve2"])(opts.useViewBox, true)
        }), { newline: true });
    };
    SVGPainter.prototype.setBackgroundColor = function (backgroundColor) {
        this._backgroundColor = backgroundColor;
    };
    SVGPainter.prototype.getSvgRoot = function () {
        return this._mainVNode && this._mainVNode.elm;
    };
    SVGPainter.prototype._paintList = function (list, scope, out) {
        var listLen = list.length;
        var clipPathsGroupsStack = [];
        var clipPathsGroupsStackDepth = 0;
        var currentClipPathGroup;
        var prevClipPaths;
        var clipGroupNodeIdx = 0;
        for (var i = 0; i < listLen; i++) {
            var displayable = list[i];
            if (!displayable.invisible) {
                var clipPaths = displayable.__clipPaths;
                var len = clipPaths && clipPaths.length || 0;
                var prevLen = prevClipPaths && prevClipPaths.length || 0;
                var lca = void 0;
                for (lca = Math.max(len - 1, prevLen - 1); lca >= 0; lca--) {
                    if (clipPaths && prevClipPaths
                        && clipPaths[lca] === prevClipPaths[lca]) {
                        break;
                    }
                }
                for (var i_1 = prevLen - 1; i_1 > lca; i_1--) {
                    clipPathsGroupsStackDepth--;
                    currentClipPathGroup = clipPathsGroupsStack[clipPathsGroupsStackDepth - 1];
                }
                for (var i_2 = lca + 1; i_2 < len; i_2++) {
                    var groupAttrs = {};
                    setClipPath(clipPaths[i_2], groupAttrs, scope);
                    var g = createVNode('g', 'clip-g-' + clipGroupNodeIdx++, groupAttrs, []);
                    (currentClipPathGroup ? currentClipPathGroup.children : out).push(g);
                    clipPathsGroupsStack[clipPathsGroupsStackDepth++] = g;
                    currentClipPathGroup = g;
                }
                prevClipPaths = clipPaths;
                var ret = graphic_brush(displayable, scope);
                if (ret) {
                    (currentClipPathGroup ? currentClipPathGroup.children : out).push(ret);
                }
            }
        }
    };
    SVGPainter.prototype.resize = function (width, height) {
        var opts = this._opts;
        var root = this.root;
        var viewport = this._viewport;
        width != null && (opts.width = width);
        height != null && (opts.height = height);
        if (root && viewport) {
            viewport.style.display = 'none';
            width = getSize(root, 0, opts);
            height = getSize(root, 1, opts);
            viewport.style.display = '';
        }
        if (this._width !== width || this._height !== height) {
            this._width = width;
            this._height = height;
            if (viewport) {
                var viewportStyle = viewport.style;
                viewportStyle.width = width + 'px';
                viewportStyle.height = height + 'px';
            }
            if (!Object(helper["n" /* isPattern */])(this._backgroundColor)) {
                var svgDom = this._svgDom;
                if (svgDom) {
                    svgDom.setAttribute('width', width);
                    svgDom.setAttribute('height', height);
                }
                var bgEl = this._bgVNode && this._bgVNode.elm;
                if (bgEl) {
                    bgEl.setAttribute('width', width);
                    bgEl.setAttribute('height', height);
                }
            }
            else {
                this.refresh();
            }
        }
    };
    SVGPainter.prototype.getWidth = function () {
        return this._width;
    };
    SVGPainter.prototype.getHeight = function () {
        return this._height;
    };
    SVGPainter.prototype.dispose = function () {
        if (this.root) {
            this.root.innerHTML = '';
        }
        this._svgDom =
            this._viewport =
                this.storage =
                    this._oldVNode =
                        this._bgVNode =
                            this._mainVNode = null;
    };
    SVGPainter.prototype.clear = function () {
        if (this._svgDom) {
            this._svgDom.innerHTML = null;
        }
        this._oldVNode = null;
    };
    SVGPainter.prototype.toDataURL = function (base64) {
        var str = this.renderToString();
        var prefix = 'data:image/svg+xml;';
        if (base64) {
            str = Object(helper["c" /* encodeBase64 */])(str);
            return str && prefix + 'base64,' + str;
        }
        return prefix + 'charset=UTF-8,' + encodeURIComponent(str);
    };
    return SVGPainter;
}());
function createMethodNotSupport(method) {
    return function () {
        if (false) {}
    };
}
function createBackgroundVNode(width, height, backgroundColor, scope) {
    var bgVNode;
    if (backgroundColor && backgroundColor !== 'none') {
        bgVNode = createVNode('rect', 'bg', {
            width: width,
            height: height,
            x: '0',
            y: '0'
        });
        if (Object(helper["k" /* isGradient */])(backgroundColor)) {
            setGradient({ fill: backgroundColor }, bgVNode.attrs, 'fill', scope);
        }
        else if (Object(helper["n" /* isPattern */])(backgroundColor)) {
            setPattern({
                style: {
                    fill: backgroundColor
                },
                dirty: util["noop"],
                getBoundingRect: function () { return ({ width: width, height: height }); }
            }, bgVNode.attrs, 'fill', scope);
        }
        else {
            var _a = Object(helper["p" /* normalizeColor */])(backgroundColor), color = _a.color, opacity = _a.opacity;
            bgVNode.attrs.fill = color;
            opacity < 1 && (bgVNode.attrs['fill-opacity'] = opacity);
        }
    }
    return bgVNode;
}
/* harmony default export */ var svg_Painter = (Painter_SVGPainter);

// CONCATENATED MODULE: ./node_modules/echarts/lib/renderer/installSVGRenderer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function installSVGRenderer_install(registers) {
  registers.registerPainter('svg', svg_Painter);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/LineSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var LineSeries_LineSeriesModel = /** @class */function (_super) {
  __extends(LineSeriesModel, _super);
  function LineSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = LineSeriesModel.type;
    _this.hasSymbolVisual = true;
    return _this;
  }
  LineSeriesModel.prototype.getInitialData = function (option) {
    if (false) { var coordSys; }
    return helper_createSeriesData(null, this, {
      useEncodeDefaulter: true
    });
  };
  LineSeriesModel.prototype.getLegendIcon = function (opt) {
    var group = new graphic_Group();
    var line = symbol_createSymbol('line', 0, opt.itemHeight / 2, opt.itemWidth, 0, opt.lineStyle.stroke, false);
    group.add(line);
    line.setStyle(opt.lineStyle);
    var visualType = this.getData().getVisual('symbol');
    var visualRotate = this.getData().getVisual('symbolRotate');
    var symbolType = visualType === 'none' ? 'circle' : visualType;
    // Symbol size is 80% when there is a line
    var size = opt.itemHeight * 0.8;
    var symbol = symbol_createSymbol(symbolType, (opt.itemWidth - size) / 2, (opt.itemHeight - size) / 2, size, size, opt.itemStyle.fill);
    group.add(symbol);
    symbol.setStyle(opt.itemStyle);
    var symbolRotate = opt.iconRotate === 'inherit' ? visualRotate : opt.iconRotate || 0;
    symbol.rotation = symbolRotate * Math.PI / 180;
    symbol.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);
    if (symbolType.indexOf('empty') > -1) {
      symbol.style.stroke = symbol.style.fill;
      symbol.style.fill = '#fff';
      symbol.style.lineWidth = 2;
    }
    return group;
  };
  LineSeriesModel.type = 'series.line';
  LineSeriesModel.dependencies = ['grid', 'polar'];
  LineSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 3,
    coordinateSystem: 'cartesian2d',
    legendHoverLink: true,
    clip: true,
    label: {
      position: 'top'
    },
    // itemStyle: {
    // },
    endLabel: {
      show: false,
      valueAnimation: true,
      distance: 8
    },
    lineStyle: {
      width: 2,
      type: 'solid'
    },
    emphasis: {
      scale: true
    },
    // areaStyle: {
    // origin of areaStyle. Valid values:
    // `'auto'/null/undefined`: from axisLine to data
    // `'start'`: from min to data
    // `'end'`: from data to max
    // origin: 'auto'
    // },
    // false, 'start', 'end', 'middle'
    step: false,
    // Disabled if step is true
    smooth: false,
    smoothMonotone: null,
    symbol: 'emptyCircle',
    symbolSize: 4,
    symbolRotate: null,
    showSymbol: true,
    // `false`: follow the label interval strategy.
    // `true`: show all symbols.
    // `'auto'`: If possible, show all symbols, otherwise
    //           follow the label interval strategy.
    showAllSymbol: 'auto',
    // Whether to connect break point.
    connectNulls: false,
    // Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.
    sampling: 'none',
    animationEasing: 'linear',
    // Disable progressive
    progressive: 0,
    hoverLayerThreshold: Infinity,
    universalTransition: {
      divideShape: 'clone'
    },
    triggerLineEvent: false
  };
  return LineSeriesModel;
}(Series);
/* harmony default export */ var LineSeries = (LineSeries_LineSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/labelHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * @return label string. Not null/undefined
 */
function getDefaultLabel(data, dataIndex) {
  var labelDims = data.mapDimensionsAll('defaultedLabel');
  var len = labelDims.length;
  // Simple optimization (in lots of cases, label dims length is 1)
  if (len === 1) {
    var rawVal = retrieveRawValue(data, dataIndex, labelDims[0]);
    return rawVal != null ? rawVal + '' : null;
  } else if (len) {
    var vals = [];
    for (var i = 0; i < labelDims.length; i++) {
      vals.push(retrieveRawValue(data, dataIndex, labelDims[i]));
    }
    return vals.join(' ');
  }
}
function getDefaultInterpolatedLabel(data, interpolatedValue) {
  var labelDims = data.mapDimensionsAll('defaultedLabel');
  if (!Object(util["isArray"])(interpolatedValue)) {
    return interpolatedValue + '';
  }
  var vals = [];
  for (var i = 0; i < labelDims.length; i++) {
    var dimIndex = data.getDimensionIndex(labelDims[i]);
    if (dimIndex >= 0) {
      vals.push(interpolatedValue[dimIndex]);
    }
  }
  return vals.join(' ');
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/Symbol.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/










var Symbol_Symbol = /** @class */function (_super) {
  __extends(Symbol, _super);
  function Symbol(data, idx, seriesScope, opts) {
    var _this = _super.call(this) || this;
    _this.updateData(data, idx, seriesScope, opts);
    return _this;
  }
  Symbol.prototype._createSymbol = function (symbolType, data, idx, symbolSize, keepAspect) {
    // Remove paths created before
    this.removeAll();
    // let symbolPath = createSymbol(
    //     symbolType, -0.5, -0.5, 1, 1, color
    // );
    // If width/height are set too small (e.g., set to 1) on ios10
    // and macOS Sierra, a circle stroke become a rect, no matter what
    // the scale is set. So we set width/height as 2. See #4150.
    var symbolPath = symbol_createSymbol(symbolType, -1, -1, 2, 2, null, keepAspect);
    symbolPath.attr({
      z2: 100,
      culling: true,
      scaleX: symbolSize[0] / 2,
      scaleY: symbolSize[1] / 2
    });
    // Rewrite drift method
    symbolPath.drift = driftSymbol;
    this._symbolType = symbolType;
    this.add(symbolPath);
  };
  /**
   * Stop animation
   * @param {boolean} toLastFrame
   */
  Symbol.prototype.stopSymbolAnimation = function (toLastFrame) {
    this.childAt(0).stopAnimation(null, toLastFrame);
  };
  Symbol.prototype.getSymbolType = function () {
    return this._symbolType;
  };
  /**
   * FIXME:
   * Caution: This method breaks the encapsulation of this module,
   * but it indeed brings convenience. So do not use the method
   * unless you detailedly know all the implements of `Symbol`,
   * especially animation.
   *
   * Get symbol path element.
   */
  Symbol.prototype.getSymbolPath = function () {
    return this.childAt(0);
  };
  /**
   * Highlight symbol
   */
  Symbol.prototype.highlight = function () {
    enterEmphasis(this.childAt(0));
  };
  /**
   * Downplay symbol
   */
  Symbol.prototype.downplay = function () {
    leaveEmphasis(this.childAt(0));
  };
  /**
   * @param {number} zlevel
   * @param {number} z
   */
  Symbol.prototype.setZ = function (zlevel, z) {
    var symbolPath = this.childAt(0);
    symbolPath.zlevel = zlevel;
    symbolPath.z = z;
  };
  Symbol.prototype.setDraggable = function (draggable, hasCursorOption) {
    var symbolPath = this.childAt(0);
    symbolPath.draggable = draggable;
    symbolPath.cursor = !hasCursorOption && draggable ? 'move' : symbolPath.cursor;
  };
  /**
   * Update symbol properties
   */
  Symbol.prototype.updateData = function (data, idx, seriesScope, opts) {
    this.silent = false;
    var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
    var seriesModel = data.hostModel;
    var symbolSize = Symbol.getSymbolSize(data, idx);
    var isInit = symbolType !== this._symbolType;
    var disableAnimation = opts && opts.disableAnimation;
    if (isInit) {
      var keepAspect = data.getItemVisual(idx, 'symbolKeepAspect');
      this._createSymbol(symbolType, data, idx, symbolSize, keepAspect);
    } else {
      var symbolPath = this.childAt(0);
      symbolPath.silent = false;
      var target = {
        scaleX: symbolSize[0] / 2,
        scaleY: symbolSize[1] / 2
      };
      disableAnimation ? symbolPath.attr(target) : updateProps(symbolPath, target, seriesModel, idx);
      saveOldStyle(symbolPath);
    }
    this._updateCommon(data, idx, symbolSize, seriesScope, opts);
    if (isInit) {
      var symbolPath = this.childAt(0);
      if (!disableAnimation) {
        var target = {
          scaleX: this._sizeX,
          scaleY: this._sizeY,
          style: {
            // Always fadeIn. Because it has fadeOut animation when symbol is removed..
            opacity: symbolPath.style.opacity
          }
        };
        symbolPath.scaleX = symbolPath.scaleY = 0;
        symbolPath.style.opacity = 0;
        initProps(symbolPath, target, seriesModel, idx);
      }
    }
    if (disableAnimation) {
      // Must stop leave transition manually if don't call initProps or updateProps.
      this.childAt(0).stopAnimation('leave');
    }
  };
  Symbol.prototype._updateCommon = function (data, idx, symbolSize, seriesScope, opts) {
    var symbolPath = this.childAt(0);
    var seriesModel = data.hostModel;
    var emphasisItemStyle;
    var blurItemStyle;
    var selectItemStyle;
    var focus;
    var blurScope;
    var emphasisDisabled;
    var labelStatesModels;
    var hoverScale;
    var cursorStyle;
    if (seriesScope) {
      emphasisItemStyle = seriesScope.emphasisItemStyle;
      blurItemStyle = seriesScope.blurItemStyle;
      selectItemStyle = seriesScope.selectItemStyle;
      focus = seriesScope.focus;
      blurScope = seriesScope.blurScope;
      labelStatesModels = seriesScope.labelStatesModels;
      hoverScale = seriesScope.hoverScale;
      cursorStyle = seriesScope.cursorStyle;
      emphasisDisabled = seriesScope.emphasisDisabled;
    }
    if (!seriesScope || data.hasItemOption) {
      var itemModel = seriesScope && seriesScope.itemModel ? seriesScope.itemModel : data.getItemModel(idx);
      var emphasisModel = itemModel.getModel('emphasis');
      emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle();
      selectItemStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();
      blurItemStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();
      focus = emphasisModel.get('focus');
      blurScope = emphasisModel.get('blurScope');
      emphasisDisabled = emphasisModel.get('disabled');
      labelStatesModels = getLabelStatesModels(itemModel);
      hoverScale = emphasisModel.getShallow('scale');
      cursorStyle = itemModel.getShallow('cursor');
    }
    var symbolRotate = data.getItemVisual(idx, 'symbolRotate');
    symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0);
    var symbolOffset = normalizeSymbolOffset(data.getItemVisual(idx, 'symbolOffset'), symbolSize);
    if (symbolOffset) {
      symbolPath.x = symbolOffset[0];
      symbolPath.y = symbolOffset[1];
    }
    cursorStyle && symbolPath.attr('cursor', cursorStyle);
    var symbolStyle = data.getItemVisual(idx, 'style');
    var visualColor = symbolStyle.fill;
    if (symbolPath instanceof graphic_Image) {
      var pathStyle = symbolPath.style;
      symbolPath.useStyle(Object(util["extend"])({
        // TODO other properties like x, y ?
        image: pathStyle.image,
        x: pathStyle.x,
        y: pathStyle.y,
        width: pathStyle.width,
        height: pathStyle.height
      }, symbolStyle));
    } else {
      if (symbolPath.__isEmptyBrush) {
        // fill and stroke will be swapped if it's empty.
        // So we cloned a new style to avoid it affecting the original style in visual storage.
        // TODO Better implementation. No empty logic!
        symbolPath.useStyle(Object(util["extend"])({}, symbolStyle));
      } else {
        symbolPath.useStyle(symbolStyle);
      }
      // Disable decal because symbol scale will been applied on the decal.
      symbolPath.style.decal = null;
      symbolPath.setColor(visualColor, opts && opts.symbolInnerColor);
      symbolPath.style.strokeNoScale = true;
    }
    var liftZ = data.getItemVisual(idx, 'liftZ');
    var z2Origin = this._z2;
    if (liftZ != null) {
      if (z2Origin == null) {
        this._z2 = symbolPath.z2;
        symbolPath.z2 += liftZ;
      }
    } else if (z2Origin != null) {
      symbolPath.z2 = z2Origin;
      this._z2 = null;
    }
    var useNameLabel = opts && opts.useNameLabel;
    setLabelStyle(symbolPath, labelStatesModels, {
      labelFetcher: seriesModel,
      labelDataIndex: idx,
      defaultText: getLabelDefaultText,
      inheritColor: visualColor,
      defaultOpacity: symbolStyle.opacity
    });
    // Do not execute util needed.
    function getLabelDefaultText(idx) {
      return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx);
    }
    this._sizeX = symbolSize[0] / 2;
    this._sizeY = symbolSize[1] / 2;
    var emphasisState = symbolPath.ensureState('emphasis');
    emphasisState.style = emphasisItemStyle;
    symbolPath.ensureState('select').style = selectItemStyle;
    symbolPath.ensureState('blur').style = blurItemStyle;
    // null / undefined / true means to use default strategy.
    // 0 / false / negative number / NaN / Infinity means no scale.
    var scaleRatio = hoverScale == null || hoverScale === true ? Math.max(1.1, 3 / this._sizeY)
    // PENDING: restrict hoverScale > 1? It seems unreasonable to scale down
    : isFinite(hoverScale) && hoverScale > 0 ? +hoverScale : 1;
    // always set scale to allow resetting
    emphasisState.scaleX = this._sizeX * scaleRatio;
    emphasisState.scaleY = this._sizeY * scaleRatio;
    this.setSymbolScale(1);
    toggleHoverEmphasis(this, focus, blurScope, emphasisDisabled);
  };
  Symbol.prototype.setSymbolScale = function (scale) {
    this.scaleX = this.scaleY = scale;
  };
  Symbol.prototype.fadeOut = function (cb, seriesModel, opt) {
    var symbolPath = this.childAt(0);
    var dataIndex = getECData(this).dataIndex;
    var animationOpt = opt && opt.animation;
    // Avoid mistaken hover when fading out
    this.silent = symbolPath.silent = true;
    // Not show text when animating
    if (opt && opt.fadeLabel) {
      var textContent = symbolPath.getTextContent();
      if (textContent) {
        removeElement(textContent, {
          style: {
            opacity: 0
          }
        }, seriesModel, {
          dataIndex: dataIndex,
          removeOpt: animationOpt,
          cb: function () {
            symbolPath.removeTextContent();
          }
        });
      }
    } else {
      symbolPath.removeTextContent();
    }
    removeElement(symbolPath, {
      style: {
        opacity: 0
      },
      scaleX: 0,
      scaleY: 0
    }, seriesModel, {
      dataIndex: dataIndex,
      cb: cb,
      removeOpt: animationOpt
    });
  };
  Symbol.getSymbolSize = function (data, idx) {
    return normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));
  };
  return Symbol;
}(graphic_Group);
function driftSymbol(dx, dy) {
  this.parent.drift(dx, dy);
}
/* harmony default export */ var helper_Symbol = (Symbol_Symbol);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/SymbolDraw.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function symbolNeedsDraw(data, point, idx, opt) {
  return point && !isNaN(point[0]) && !isNaN(point[1]) && !(opt.isIgnore && opt.isIgnore(idx))
  // We do not set clipShape on group, because it will cut part of
  // the symbol element shape. We use the same clip shape here as
  // the line clip.
  && !(opt.clipShape && !opt.clipShape.contain(point[0], point[1])) && data.getItemVisual(idx, 'symbol') !== 'none';
}
function normalizeUpdateOpt(opt) {
  if (opt != null && !Object(util["isObject"])(opt)) {
    opt = {
      isIgnore: opt
    };
  }
  return opt || {};
}
function makeSeriesScope(data) {
  var seriesModel = data.hostModel;
  var emphasisModel = seriesModel.getModel('emphasis');
  return {
    emphasisItemStyle: emphasisModel.getModel('itemStyle').getItemStyle(),
    blurItemStyle: seriesModel.getModel(['blur', 'itemStyle']).getItemStyle(),
    selectItemStyle: seriesModel.getModel(['select', 'itemStyle']).getItemStyle(),
    focus: emphasisModel.get('focus'),
    blurScope: emphasisModel.get('blurScope'),
    emphasisDisabled: emphasisModel.get('disabled'),
    hoverScale: emphasisModel.get('scale'),
    labelStatesModels: getLabelStatesModels(seriesModel),
    cursorStyle: seriesModel.get('cursor')
  };
}
var SymbolDraw_SymbolDraw = /** @class */function () {
  function SymbolDraw(SymbolCtor) {
    this.group = new graphic_Group();
    this._SymbolCtor = SymbolCtor || helper_Symbol;
  }
  /**
   * Update symbols draw by new data
   */
  SymbolDraw.prototype.updateData = function (data, opt) {
    // Remove progressive els.
    this._progressiveEls = null;
    opt = normalizeUpdateOpt(opt);
    var group = this.group;
    var seriesModel = data.hostModel;
    var oldData = this._data;
    var SymbolCtor = this._SymbolCtor;
    var disableAnimation = opt.disableAnimation;
    var seriesScope = makeSeriesScope(data);
    var symbolUpdateOpt = {
      disableAnimation: disableAnimation
    };
    var getSymbolPoint = opt.getSymbolPoint || function (idx) {
      return data.getItemLayout(idx);
    };
    // There is no oldLineData only when first rendering or switching from
    // stream mode to normal mode, where previous elements should be removed.
    if (!oldData) {
      group.removeAll();
    }
    data.diff(oldData).add(function (newIdx) {
      var point = getSymbolPoint(newIdx);
      if (symbolNeedsDraw(data, point, newIdx, opt)) {
        var symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);
        symbolEl.setPosition(point);
        data.setItemGraphicEl(newIdx, symbolEl);
        group.add(symbolEl);
      }
    }).update(function (newIdx, oldIdx) {
      var symbolEl = oldData.getItemGraphicEl(oldIdx);
      var point = getSymbolPoint(newIdx);
      if (!symbolNeedsDraw(data, point, newIdx, opt)) {
        group.remove(symbolEl);
        return;
      }
      var newSymbolType = data.getItemVisual(newIdx, 'symbol') || 'circle';
      var oldSymbolType = symbolEl && symbolEl.getSymbolType && symbolEl.getSymbolType();
      if (!symbolEl
      // Create a new if symbol type changed.
      || oldSymbolType && oldSymbolType !== newSymbolType) {
        group.remove(symbolEl);
        symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);
        symbolEl.setPosition(point);
      } else {
        symbolEl.updateData(data, newIdx, seriesScope, symbolUpdateOpt);
        var target = {
          x: point[0],
          y: point[1]
        };
        disableAnimation ? symbolEl.attr(target) : updateProps(symbolEl, target, seriesModel);
      }
      // Add back
      group.add(symbolEl);
      data.setItemGraphicEl(newIdx, symbolEl);
    }).remove(function (oldIdx) {
      var el = oldData.getItemGraphicEl(oldIdx);
      el && el.fadeOut(function () {
        group.remove(el);
      }, seriesModel);
    }).execute();
    this._getSymbolPoint = getSymbolPoint;
    this._data = data;
  };
  ;
  SymbolDraw.prototype.updateLayout = function () {
    var _this = this;
    var data = this._data;
    if (data) {
      // Not use animation
      data.eachItemGraphicEl(function (el, idx) {
        var point = _this._getSymbolPoint(idx);
        el.setPosition(point);
        el.markRedraw();
      });
    }
  };
  ;
  SymbolDraw.prototype.incrementalPrepareUpdate = function (data) {
    this._seriesScope = makeSeriesScope(data);
    this._data = null;
    this.group.removeAll();
  };
  ;
  /**
   * Update symbols draw by new data
   */
  SymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) {
    // Clear
    this._progressiveEls = [];
    opt = normalizeUpdateOpt(opt);
    function updateIncrementalAndHover(el) {
      if (!el.isGroup) {
        el.incremental = true;
        el.ensureState('emphasis').hoverLayer = true;
      }
    }
    for (var idx = taskParams.start; idx < taskParams.end; idx++) {
      var point = data.getItemLayout(idx);
      if (symbolNeedsDraw(data, point, idx, opt)) {
        var el = new this._SymbolCtor(data, idx, this._seriesScope);
        el.traverse(updateIncrementalAndHover);
        el.setPosition(point);
        this.group.add(el);
        data.setItemGraphicEl(idx, el);
        this._progressiveEls.push(el);
      }
    }
  };
  ;
  SymbolDraw.prototype.eachRendered = function (cb) {
    traverseElements(this._progressiveEls || this.group, cb);
  };
  SymbolDraw.prototype.remove = function (enableAnimation) {
    var group = this.group;
    var data = this._data;
    // Incremental model do not have this._data.
    if (data && enableAnimation) {
      data.eachItemGraphicEl(function (el) {
        el.fadeOut(function () {
          group.remove(el);
        }, data.hostModel);
      });
    } else {
      group.removeAll();
    }
  };
  ;
  return SymbolDraw;
}();
/* harmony default export */ var helper_SymbolDraw = (SymbolDraw_SymbolDraw);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/helper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function prepareDataCoordInfo(coordSys, data, valueOrigin) {
  var baseAxis = coordSys.getBaseAxis();
  var valueAxis = coordSys.getOtherAxis(baseAxis);
  var valueStart = getValueStart(valueAxis, valueOrigin);
  var baseAxisDim = baseAxis.dim;
  var valueAxisDim = valueAxis.dim;
  var valueDim = data.mapDimension(valueAxisDim);
  var baseDim = data.mapDimension(baseAxisDim);
  var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;
  var dims = Object(util["map"])(coordSys.dimensions, function (coordDim) {
    return data.mapDimension(coordDim);
  });
  var stacked = false;
  var stackResultDim = data.getCalculationInfo('stackResultDimension');
  if (isDimensionStacked(data, dims[0] /* , dims[1] */)) {
    // jshint ignore:line
    stacked = true;
    dims[0] = stackResultDim;
  }
  if (isDimensionStacked(data, dims[1] /* , dims[0] */)) {
    // jshint ignore:line
    stacked = true;
    dims[1] = stackResultDim;
  }
  return {
    dataDimsForPoint: dims,
    valueStart: valueStart,
    valueAxisDim: valueAxisDim,
    baseAxisDim: baseAxisDim,
    stacked: !!stacked,
    valueDim: valueDim,
    baseDim: baseDim,
    baseDataOffset: baseDataOffset,
    stackedOverDimension: data.getCalculationInfo('stackedOverDimension')
  };
}
function getValueStart(valueAxis, valueOrigin) {
  var valueStart = 0;
  var extent = valueAxis.scale.getExtent();
  if (valueOrigin === 'start') {
    valueStart = extent[0];
  } else if (valueOrigin === 'end') {
    valueStart = extent[1];
  }
  // If origin is specified as a number, use it as
  // valueStart directly
  else if (Object(util["isNumber"])(valueOrigin) && !isNaN(valueOrigin)) {
    valueStart = valueOrigin;
  }
  // auto
  else {
    // Both positive
    if (extent[0] > 0) {
      valueStart = extent[0];
    }
    // Both negative
    else if (extent[1] < 0) {
      valueStart = extent[1];
    }
    // If is one positive, and one negative, onZero shall be true
  }
  return valueStart;
}
function getStackedOnPoint(dataCoordInfo, coordSys, data, idx) {
  var value = NaN;
  if (dataCoordInfo.stacked) {
    value = data.get(data.getCalculationInfo('stackedOverDimension'), idx);
  }
  if (isNaN(value)) {
    value = dataCoordInfo.valueStart;
  }
  var baseDataOffset = dataCoordInfo.baseDataOffset;
  var stackedData = [];
  stackedData[baseDataOffset] = data.get(dataCoordInfo.baseDim, idx);
  stackedData[1 - baseDataOffset] = value;
  return coordSys.dataToPoint(stackedData);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/lineAnimationDiff.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function diffData(oldData, newData) {
  var diffResult = [];
  newData.diff(oldData).add(function (idx) {
    diffResult.push({
      cmd: '+',
      idx: idx
    });
  }).update(function (newIdx, oldIdx) {
    diffResult.push({
      cmd: '=',
      idx: oldIdx,
      idx1: newIdx
    });
  }).remove(function (idx) {
    diffResult.push({
      cmd: '-',
      idx: idx
    });
  }).execute();
  return diffResult;
}
function lineAnimationDiff(oldData, newData, oldStackedOnPoints, newStackedOnPoints, oldCoordSys, newCoordSys, oldValueOrigin, newValueOrigin) {
  var diff = diffData(oldData, newData);
  // let newIdList = newData.mapArray(newData.getId);
  // let oldIdList = oldData.mapArray(oldData.getId);
  // convertToIntId(newIdList, oldIdList);
  // // FIXME One data ?
  // diff = arrayDiff(oldIdList, newIdList);
  var currPoints = [];
  var nextPoints = [];
  // Points for stacking base line
  var currStackedPoints = [];
  var nextStackedPoints = [];
  var status = [];
  var sortedIndices = [];
  var rawIndices = [];
  var newDataOldCoordInfo = prepareDataCoordInfo(oldCoordSys, newData, oldValueOrigin);
  // const oldDataNewCoordInfo = prepareDataCoordInfo(newCoordSys, oldData, newValueOrigin);
  var oldPoints = oldData.getLayout('points') || [];
  var newPoints = newData.getLayout('points') || [];
  for (var i = 0; i < diff.length; i++) {
    var diffItem = diff[i];
    var pointAdded = true;
    var oldIdx2 = void 0;
    var newIdx2 = void 0;
    // FIXME, animation is not so perfect when dataZoom window moves fast
    // Which is in case remvoing or add more than one data in the tail or head
    switch (diffItem.cmd) {
      case '=':
        oldIdx2 = diffItem.idx * 2;
        newIdx2 = diffItem.idx1 * 2;
        var currentX = oldPoints[oldIdx2];
        var currentY = oldPoints[oldIdx2 + 1];
        var nextX = newPoints[newIdx2];
        var nextY = newPoints[newIdx2 + 1];
        // If previous data is NaN, use next point directly
        if (isNaN(currentX) || isNaN(currentY)) {
          currentX = nextX;
          currentY = nextY;
        }
        currPoints.push(currentX, currentY);
        nextPoints.push(nextX, nextY);
        currStackedPoints.push(oldStackedOnPoints[oldIdx2], oldStackedOnPoints[oldIdx2 + 1]);
        nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);
        rawIndices.push(newData.getRawIndex(diffItem.idx1));
        break;
      case '+':
        var newIdx = diffItem.idx;
        var newDataDimsForPoint = newDataOldCoordInfo.dataDimsForPoint;
        var oldPt = oldCoordSys.dataToPoint([newData.get(newDataDimsForPoint[0], newIdx), newData.get(newDataDimsForPoint[1], newIdx)]);
        newIdx2 = newIdx * 2;
        currPoints.push(oldPt[0], oldPt[1]);
        nextPoints.push(newPoints[newIdx2], newPoints[newIdx2 + 1]);
        var stackedOnPoint = getStackedOnPoint(newDataOldCoordInfo, oldCoordSys, newData, newIdx);
        currStackedPoints.push(stackedOnPoint[0], stackedOnPoint[1]);
        nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);
        rawIndices.push(newData.getRawIndex(newIdx));
        break;
      case '-':
        pointAdded = false;
    }
    // Original indices
    if (pointAdded) {
      status.push(diffItem);
      sortedIndices.push(sortedIndices.length);
    }
  }
  // Diff result may be crossed if all items are changed
  // Sort by data index
  sortedIndices.sort(function (a, b) {
    return rawIndices[a] - rawIndices[b];
  });
  var len = currPoints.length;
  var sortedCurrPoints = createFloat32Array(len);
  var sortedNextPoints = createFloat32Array(len);
  var sortedCurrStackedPoints = createFloat32Array(len);
  var sortedNextStackedPoints = createFloat32Array(len);
  var sortedStatus = [];
  for (var i = 0; i < sortedIndices.length; i++) {
    var idx = sortedIndices[i];
    var i2 = i * 2;
    var idx2 = idx * 2;
    sortedCurrPoints[i2] = currPoints[idx2];
    sortedCurrPoints[i2 + 1] = currPoints[idx2 + 1];
    sortedNextPoints[i2] = nextPoints[idx2];
    sortedNextPoints[i2 + 1] = nextPoints[idx2 + 1];
    sortedCurrStackedPoints[i2] = currStackedPoints[idx2];
    sortedCurrStackedPoints[i2 + 1] = currStackedPoints[idx2 + 1];
    sortedNextStackedPoints[i2] = nextStackedPoints[idx2];
    sortedNextStackedPoints[i2 + 1] = nextStackedPoints[idx2 + 1];
    sortedStatus[i] = status[idx];
  }
  return {
    current: sortedCurrPoints,
    next: sortedNextPoints,
    stackedOnCurrent: sortedCurrStackedPoints,
    stackedOnNext: sortedNextStackedPoints,
    status: sortedStatus
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/poly.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// Poly path support NaN point



var poly_mathMin = Math.min;
var poly_mathMax = Math.max;
function isPointNull(x, y) {
  return isNaN(x) || isNaN(y);
}
/**
 * Draw smoothed line in non-monotone, in may cause undesired curve in extreme
 * situations. This should be used when points are non-monotone neither in x or
 * y dimension.
 */
function drawSegment(ctx, points, start, segLen, allLen, dir, smooth, smoothMonotone, connectNulls) {
  var prevX;
  var prevY;
  var cpx0;
  var cpy0;
  var cpx1;
  var cpy1;
  var idx = start;
  var k = 0;
  for (; k < segLen; k++) {
    var x = points[idx * 2];
    var y = points[idx * 2 + 1];
    if (idx >= allLen || idx < 0) {
      break;
    }
    if (isPointNull(x, y)) {
      if (connectNulls) {
        idx += dir;
        continue;
      }
      break;
    }
    if (idx === start) {
      ctx[dir > 0 ? 'moveTo' : 'lineTo'](x, y);
      cpx0 = x;
      cpy0 = y;
    } else {
      var dx = x - prevX;
      var dy = y - prevY;
      // Ignore tiny segment.
      if (dx * dx + dy * dy < 0.5) {
        idx += dir;
        continue;
      }
      if (smooth > 0) {
        var nextIdx = idx + dir;
        var nextX = points[nextIdx * 2];
        var nextY = points[nextIdx * 2 + 1];
        // Ignore duplicate point
        while (nextX === x && nextY === y && k < segLen) {
          k++;
          nextIdx += dir;
          idx += dir;
          nextX = points[nextIdx * 2];
          nextY = points[nextIdx * 2 + 1];
          x = points[idx * 2];
          y = points[idx * 2 + 1];
          dx = x - prevX;
          dy = y - prevY;
        }
        var tmpK = k + 1;
        if (connectNulls) {
          // Find next point not null
          while (isPointNull(nextX, nextY) && tmpK < segLen) {
            tmpK++;
            nextIdx += dir;
            nextX = points[nextIdx * 2];
            nextY = points[nextIdx * 2 + 1];
          }
        }
        var ratioNextSeg = 0.5;
        var vx = 0;
        var vy = 0;
        var nextCpx0 = void 0;
        var nextCpy0 = void 0;
        // Is last point
        if (tmpK >= segLen || isPointNull(nextX, nextY)) {
          cpx1 = x;
          cpy1 = y;
        } else {
          vx = nextX - prevX;
          vy = nextY - prevY;
          var dx0 = x - prevX;
          var dx1 = nextX - x;
          var dy0 = y - prevY;
          var dy1 = nextY - y;
          var lenPrevSeg = void 0;
          var lenNextSeg = void 0;
          if (smoothMonotone === 'x') {
            lenPrevSeg = Math.abs(dx0);
            lenNextSeg = Math.abs(dx1);
            var dir_1 = vx > 0 ? 1 : -1;
            cpx1 = x - dir_1 * lenPrevSeg * smooth;
            cpy1 = y;
            nextCpx0 = x + dir_1 * lenNextSeg * smooth;
            nextCpy0 = y;
          } else if (smoothMonotone === 'y') {
            lenPrevSeg = Math.abs(dy0);
            lenNextSeg = Math.abs(dy1);
            var dir_2 = vy > 0 ? 1 : -1;
            cpx1 = x;
            cpy1 = y - dir_2 * lenPrevSeg * smooth;
            nextCpx0 = x;
            nextCpy0 = y + dir_2 * lenNextSeg * smooth;
          } else {
            lenPrevSeg = Math.sqrt(dx0 * dx0 + dy0 * dy0);
            lenNextSeg = Math.sqrt(dx1 * dx1 + dy1 * dy1);
            // Use ratio of seg length
            ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg);
            cpx1 = x - vx * smooth * (1 - ratioNextSeg);
            cpy1 = y - vy * smooth * (1 - ratioNextSeg);
            // cp0 of next segment
            nextCpx0 = x + vx * smooth * ratioNextSeg;
            nextCpy0 = y + vy * smooth * ratioNextSeg;
            // Smooth constraint between point and next point.
            // Avoid exceeding extreme after smoothing.
            nextCpx0 = poly_mathMin(nextCpx0, poly_mathMax(nextX, x));
            nextCpy0 = poly_mathMin(nextCpy0, poly_mathMax(nextY, y));
            nextCpx0 = poly_mathMax(nextCpx0, poly_mathMin(nextX, x));
            nextCpy0 = poly_mathMax(nextCpy0, poly_mathMin(nextY, y));
            // Reclaculate cp1 based on the adjusted cp0 of next seg.
            vx = nextCpx0 - x;
            vy = nextCpy0 - y;
            cpx1 = x - vx * lenPrevSeg / lenNextSeg;
            cpy1 = y - vy * lenPrevSeg / lenNextSeg;
            // Smooth constraint between point and prev point.
            // Avoid exceeding extreme after smoothing.
            cpx1 = poly_mathMin(cpx1, poly_mathMax(prevX, x));
            cpy1 = poly_mathMin(cpy1, poly_mathMax(prevY, y));
            cpx1 = poly_mathMax(cpx1, poly_mathMin(prevX, x));
            cpy1 = poly_mathMax(cpy1, poly_mathMin(prevY, y));
            // Adjust next cp0 again.
            vx = x - cpx1;
            vy = y - cpy1;
            nextCpx0 = x + vx * lenNextSeg / lenPrevSeg;
            nextCpy0 = y + vy * lenNextSeg / lenPrevSeg;
          }
        }
        ctx.bezierCurveTo(cpx0, cpy0, cpx1, cpy1, x, y);
        cpx0 = nextCpx0;
        cpy0 = nextCpy0;
      } else {
        ctx.lineTo(x, y);
      }
    }
    prevX = x;
    prevY = y;
    idx += dir;
  }
  return k;
}
var ECPolylineShape = /** @class */function () {
  function ECPolylineShape() {
    this.smooth = 0;
    this.smoothConstraint = true;
  }
  return ECPolylineShape;
}();
var poly_ECPolyline = /** @class */function (_super) {
  __extends(ECPolyline, _super);
  function ECPolyline(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'ec-polyline';
    return _this;
  }
  ECPolyline.prototype.getDefaultStyle = function () {
    return {
      stroke: '#000',
      fill: null
    };
  };
  ECPolyline.prototype.getDefaultShape = function () {
    return new ECPolylineShape();
  };
  ECPolyline.prototype.buildPath = function (ctx, shape) {
    var points = shape.points;
    var i = 0;
    var len = points.length / 2;
    // const result = getBoundingBox(points, shape.smoothConstraint);
    if (shape.connectNulls) {
      // Must remove first and last null values avoid draw error in polygon
      for (; len > 0; len--) {
        if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {
          break;
        }
      }
      for (; i < len; i++) {
        if (!isPointNull(points[i * 2], points[i * 2 + 1])) {
          break;
        }
      }
    }
    while (i < len) {
      i += drawSegment(ctx, points, i, len, len, 1, shape.smooth, shape.smoothMonotone, shape.connectNulls) + 1;
    }
  };
  ECPolyline.prototype.getPointOn = function (xOrY, dim) {
    if (!this.path) {
      this.createPathProxy();
      this.buildPath(this.path, this.shape);
    }
    var path = this.path;
    var data = path.data;
    var CMD = core_PathProxy.CMD;
    var x0;
    var y0;
    var isDimX = dim === 'x';
    var roots = [];
    for (var i = 0; i < data.length;) {
      var cmd = data[i++];
      var x = void 0;
      var y = void 0;
      var x2 = void 0;
      var y2 = void 0;
      var x3 = void 0;
      var y3 = void 0;
      var t = void 0;
      switch (cmd) {
        case CMD.M:
          x0 = data[i++];
          y0 = data[i++];
          break;
        case CMD.L:
          x = data[i++];
          y = data[i++];
          t = isDimX ? (xOrY - x0) / (x - x0) : (xOrY - y0) / (y - y0);
          if (t <= 1 && t >= 0) {
            var val = isDimX ? (y - y0) * t + y0 : (x - x0) * t + x0;
            return isDimX ? [xOrY, val] : [val, xOrY];
          }
          x0 = x;
          y0 = y;
          break;
        case CMD.C:
          x = data[i++];
          y = data[i++];
          x2 = data[i++];
          y2 = data[i++];
          x3 = data[i++];
          y3 = data[i++];
          var nRoot = isDimX ? cubicRootAt(x0, x, x2, x3, xOrY, roots) : cubicRootAt(y0, y, y2, y3, xOrY, roots);
          if (nRoot > 0) {
            for (var i_1 = 0; i_1 < nRoot; i_1++) {
              var t_1 = roots[i_1];
              if (t_1 <= 1 && t_1 >= 0) {
                var val = isDimX ? curve_cubicAt(y0, y, y2, y3, t_1) : curve_cubicAt(x0, x, x2, x3, t_1);
                return isDimX ? [xOrY, val] : [val, xOrY];
              }
            }
          }
          x0 = x3;
          y0 = y3;
          break;
      }
    }
  };
  return ECPolyline;
}(graphic_Path);

var poly_ECPolygonShape = /** @class */function (_super) {
  __extends(ECPolygonShape, _super);
  function ECPolygonShape() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  return ECPolygonShape;
}(ECPolylineShape);
var poly_ECPolygon = /** @class */function (_super) {
  __extends(ECPolygon, _super);
  function ECPolygon(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'ec-polygon';
    return _this;
  }
  ECPolygon.prototype.getDefaultShape = function () {
    return new poly_ECPolygonShape();
  };
  ECPolygon.prototype.buildPath = function (ctx, shape) {
    var points = shape.points;
    var stackedOnPoints = shape.stackedOnPoints;
    var i = 0;
    var len = points.length / 2;
    var smoothMonotone = shape.smoothMonotone;
    if (shape.connectNulls) {
      // Must remove first and last null values avoid draw error in polygon
      for (; len > 0; len--) {
        if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {
          break;
        }
      }
      for (; i < len; i++) {
        if (!isPointNull(points[i * 2], points[i * 2 + 1])) {
          break;
        }
      }
    }
    while (i < len) {
      var k = drawSegment(ctx, points, i, len, len, 1, shape.smooth, smoothMonotone, shape.connectNulls);
      drawSegment(ctx, stackedOnPoints, i + k - 1, k, len, -1, shape.stackedOnSmooth, smoothMonotone, shape.connectNulls);
      i += k + 1;
      ctx.closePath();
    }
  };
  return ECPolygon;
}(graphic_Path);

// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function createGridClipPath(cartesian, hasAnimation, seriesModel, done, during) {
  var rect = cartesian.getArea();
  var x = rect.x;
  var y = rect.y;
  var width = rect.width;
  var height = rect.height;
  var lineWidth = seriesModel.get(['lineStyle', 'width']) || 0;
  // Expand the clip path a bit to avoid the border is clipped and looks thinner
  x -= lineWidth / 2;
  y -= lineWidth / 2;
  width += lineWidth;
  height += lineWidth;
  // fix: https://github.com/apache/incubator-echarts/issues/11369
  width = Math.ceil(width);
  if (x !== Math.floor(x)) {
    x = Math.floor(x);
    // if no extra 1px on `width`, it will still be clipped since `x` is floored
    width++;
  }
  var clipPath = new shape_Rect({
    shape: {
      x: x,
      y: y,
      width: width,
      height: height
    }
  });
  if (hasAnimation) {
    var baseAxis = cartesian.getBaseAxis();
    var isHorizontal = baseAxis.isHorizontal();
    var isAxisInversed = baseAxis.inverse;
    if (isHorizontal) {
      if (isAxisInversed) {
        clipPath.shape.x += width;
      }
      clipPath.shape.width = 0;
    } else {
      if (!isAxisInversed) {
        clipPath.shape.y += height;
      }
      clipPath.shape.height = 0;
    }
    var duringCb = Object(util["isFunction"])(during) ? function (percent) {
      during(percent, clipPath);
    } : null;
    initProps(clipPath, {
      shape: {
        width: width,
        height: height,
        x: x,
        y: y
      }
    }, seriesModel, null, done, duringCb);
  }
  return clipPath;
}
function createPolarClipPath(polar, hasAnimation, seriesModel) {
  var sectorArea = polar.getArea();
  // Avoid float number rounding error for symbol on the edge of axis extent.
  var r0 = round(sectorArea.r0, 1);
  var r = round(sectorArea.r, 1);
  var clipPath = new shape_Sector({
    shape: {
      cx: round(polar.cx, 1),
      cy: round(polar.cy, 1),
      r0: r0,
      r: r,
      startAngle: sectorArea.startAngle,
      endAngle: sectorArea.endAngle,
      clockwise: sectorArea.clockwise
    }
  });
  if (hasAnimation) {
    var isRadial = polar.getBaseAxis().dim === 'angle';
    if (isRadial) {
      clipPath.shape.endAngle = sectorArea.startAngle;
    } else {
      clipPath.shape.r = r0;
    }
    initProps(clipPath, {
      shape: {
        endAngle: sectorArea.endAngle,
        r: r
      }
    }, seriesModel);
  }
  return clipPath;
}
function createClipPath(coordSys, hasAnimation, seriesModel, done, during) {
  if (!coordSys) {
    return null;
  } else if (coordSys.type === 'polar') {
    return createPolarClipPath(coordSys, hasAnimation, seriesModel);
  } else if (coordSys.type === 'cartesian2d') {
    return createGridClipPath(coordSys, hasAnimation, seriesModel, done, during);
  }
  return null;
}

// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/CoordinateSystem.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function isCoordinateSystemType(coordSys, type) {
  return coordSys.type === type;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/LineView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// FIXME step not support polar


















function isPointsSame(points1, points2) {
  if (points1.length !== points2.length) {
    return;
  }
  for (var i = 0; i < points1.length; i++) {
    if (points1[i] !== points2[i]) {
      return;
    }
  }
  return true;
}
function bboxFromPoints(points) {
  var minX = Infinity;
  var minY = Infinity;
  var maxX = -Infinity;
  var maxY = -Infinity;
  for (var i = 0; i < points.length;) {
    var x = points[i++];
    var y = points[i++];
    if (!isNaN(x)) {
      minX = Math.min(x, minX);
      maxX = Math.max(x, maxX);
    }
    if (!isNaN(y)) {
      minY = Math.min(y, minY);
      maxY = Math.max(y, maxY);
    }
  }
  return [[minX, minY], [maxX, maxY]];
}
function getBoundingDiff(points1, points2) {
  var _a = bboxFromPoints(points1),
    min1 = _a[0],
    max1 = _a[1];
  var _b = bboxFromPoints(points2),
    min2 = _b[0],
    max2 = _b[1];
  // Get a max value from each corner of two boundings.
  return Math.max(Math.abs(min1[0] - min2[0]), Math.abs(min1[1] - min2[1]), Math.abs(max1[0] - max2[0]), Math.abs(max1[1] - max2[1]));
}
function getSmooth(smooth) {
  return util["isNumber"](smooth) ? smooth : smooth ? 0.5 : 0;
}
function getStackedOnPoints(coordSys, data, dataCoordInfo) {
  if (!dataCoordInfo.valueDim) {
    return [];
  }
  var len = data.count();
  var points = createFloat32Array(len * 2);
  for (var idx = 0; idx < len; idx++) {
    var pt = getStackedOnPoint(dataCoordInfo, coordSys, data, idx);
    points[idx * 2] = pt[0];
    points[idx * 2 + 1] = pt[1];
  }
  return points;
}
/**
 * Filter the null data and extend data for step considering `stepTurnAt`
 *
 * @param points data to convert, that may containing null
 * @param basePoints base data to reference, used only for areaStyle points
 * @param coordSys coordinate system
 * @param stepTurnAt 'start' | 'end' | 'middle' | true
 * @param connectNulls whether to connect nulls
 * @returns converted point positions
 */
function turnPointsIntoStep(points, basePoints, coordSys, stepTurnAt, connectNulls) {
  var baseAxis = coordSys.getBaseAxis();
  var baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1;
  var stepPoints = [];
  var i = 0;
  var stepPt = [];
  var pt = [];
  var nextPt = [];
  var filteredPoints = [];
  if (connectNulls) {
    for (i = 0; i < points.length; i += 2) {
      /**
       * For areaStyle of stepped lines, `stackedOnPoints` should be
       * filtered the same as `points` so that the base axis values
       * should stay the same as the lines above. See #20021
       */
      var reference = basePoints || points;
      if (!isNaN(reference[i]) && !isNaN(reference[i + 1])) {
        filteredPoints.push(points[i], points[i + 1]);
      }
    }
    points = filteredPoints;
  }
  for (i = 0; i < points.length - 2; i += 2) {
    nextPt[0] = points[i + 2];
    nextPt[1] = points[i + 3];
    pt[0] = points[i];
    pt[1] = points[i + 1];
    stepPoints.push(pt[0], pt[1]);
    switch (stepTurnAt) {
      case 'end':
        stepPt[baseIndex] = nextPt[baseIndex];
        stepPt[1 - baseIndex] = pt[1 - baseIndex];
        stepPoints.push(stepPt[0], stepPt[1]);
        break;
      case 'middle':
        var middle = (pt[baseIndex] + nextPt[baseIndex]) / 2;
        var stepPt2 = [];
        stepPt[baseIndex] = stepPt2[baseIndex] = middle;
        stepPt[1 - baseIndex] = pt[1 - baseIndex];
        stepPt2[1 - baseIndex] = nextPt[1 - baseIndex];
        stepPoints.push(stepPt[0], stepPt[1]);
        stepPoints.push(stepPt2[0], stepPt2[1]);
        break;
      default:
        // default is start
        stepPt[baseIndex] = pt[baseIndex];
        stepPt[1 - baseIndex] = nextPt[1 - baseIndex];
        stepPoints.push(stepPt[0], stepPt[1]);
    }
  }
  // Last points
  stepPoints.push(points[i++], points[i++]);
  return stepPoints;
}
/**
 * Clip color stops to edge. Avoid creating too large gradients.
 * Which may lead to blurry when GPU acceleration is enabled. See #15680
 *
 * The stops has been sorted from small to large.
 */
function clipColorStops(colorStops, maxSize) {
  var newColorStops = [];
  var len = colorStops.length;
  // coord will always < 0 in prevOutOfRangeColorStop.
  var prevOutOfRangeColorStop;
  var prevInRangeColorStop;
  function lerpStop(stop0, stop1, clippedCoord) {
    var coord0 = stop0.coord;
    var p = (clippedCoord - coord0) / (stop1.coord - coord0);
    var color = Object(tool_color["lerp"])(p, [stop0.color, stop1.color]);
    return {
      coord: clippedCoord,
      color: color
    };
  }
  for (var i = 0; i < len; i++) {
    var stop_1 = colorStops[i];
    var coord = stop_1.coord;
    if (coord < 0) {
      prevOutOfRangeColorStop = stop_1;
    } else if (coord > maxSize) {
      if (prevInRangeColorStop) {
        newColorStops.push(lerpStop(prevInRangeColorStop, stop_1, maxSize));
      } else if (prevOutOfRangeColorStop) {
        // If there are two stops and coord range is between these two stops
        newColorStops.push(lerpStop(prevOutOfRangeColorStop, stop_1, 0), lerpStop(prevOutOfRangeColorStop, stop_1, maxSize));
      }
      // All following stop will be out of range. So just ignore them.
      break;
    } else {
      if (prevOutOfRangeColorStop) {
        newColorStops.push(lerpStop(prevOutOfRangeColorStop, stop_1, 0));
        // Reset
        prevOutOfRangeColorStop = null;
      }
      newColorStops.push(stop_1);
      prevInRangeColorStop = stop_1;
    }
  }
  return newColorStops;
}
function getVisualGradient(data, coordSys, api) {
  var visualMetaList = data.getVisual('visualMeta');
  if (!visualMetaList || !visualMetaList.length || !data.count()) {
    // When data.count() is 0, gradient range can not be calculated.
    return;
  }
  if (coordSys.type !== 'cartesian2d') {
    if (false) {}
    return;
  }
  var coordDim;
  var visualMeta;
  for (var i = visualMetaList.length - 1; i >= 0; i--) {
    var dimInfo = data.getDimensionInfo(visualMetaList[i].dimension);
    coordDim = dimInfo && dimInfo.coordDim;
    // Can only be x or y
    if (coordDim === 'x' || coordDim === 'y') {
      visualMeta = visualMetaList[i];
      break;
    }
  }
  if (!visualMeta) {
    if (false) {}
    return;
  }
  // If the area to be rendered is bigger than area defined by LinearGradient,
  // the canvas spec prescribes that the color of the first stop and the last
  // stop should be used. But if two stops are added at offset 0, in effect
  // browsers use the color of the second stop to render area outside
  // LinearGradient. So we can only infinitesimally extend area defined in
  // LinearGradient to render `outerColors`.
  var axis = coordSys.getAxis(coordDim);
  // dataToCoord mapping may not be linear, but must be monotonic.
  var colorStops = util["map"](visualMeta.stops, function (stop) {
    // offset will be calculated later.
    return {
      coord: axis.toGlobalCoord(axis.dataToCoord(stop.value)),
      color: stop.color
    };
  });
  var stopLen = colorStops.length;
  var outerColors = visualMeta.outerColors.slice();
  if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) {
    colorStops.reverse();
    outerColors.reverse();
  }
  var colorStopsInRange = clipColorStops(colorStops, coordDim === 'x' ? api.getWidth() : api.getHeight());
  var inRangeStopLen = colorStopsInRange.length;
  if (!inRangeStopLen && stopLen) {
    // All stops are out of range. All will be the same color.
    return colorStops[0].coord < 0 ? outerColors[1] ? outerColors[1] : colorStops[stopLen - 1].color : outerColors[0] ? outerColors[0] : colorStops[0].color;
  }
  var tinyExtent = 10; // Arbitrary value: 10px
  var minCoord = colorStopsInRange[0].coord - tinyExtent;
  var maxCoord = colorStopsInRange[inRangeStopLen - 1].coord + tinyExtent;
  var coordSpan = maxCoord - minCoord;
  if (coordSpan < 1e-3) {
    return 'transparent';
  }
  util["each"](colorStopsInRange, function (stop) {
    stop.offset = (stop.coord - minCoord) / coordSpan;
  });
  colorStopsInRange.push({
    // NOTE: inRangeStopLen may still be 0 if stoplen is zero.
    offset: inRangeStopLen ? colorStopsInRange[inRangeStopLen - 1].offset : 0.5,
    color: outerColors[1] || 'transparent'
  });
  colorStopsInRange.unshift({
    offset: inRangeStopLen ? colorStopsInRange[0].offset : 0.5,
    color: outerColors[0] || 'transparent'
  });
  var gradient = new graphic_LinearGradient(0, 0, 0, 0, colorStopsInRange, true);
  gradient[coordDim] = minCoord;
  gradient[coordDim + '2'] = maxCoord;
  return gradient;
}
function getIsIgnoreFunc(seriesModel, data, coordSys) {
  var showAllSymbol = seriesModel.get('showAllSymbol');
  var isAuto = showAllSymbol === 'auto';
  if (showAllSymbol && !isAuto) {
    return;
  }
  var categoryAxis = coordSys.getAxesByScale('ordinal')[0];
  if (!categoryAxis) {
    return;
  }
  // Note that category label interval strategy might bring some weird effect
  // in some scenario: users may wonder why some of the symbols are not
  // displayed. So we show all symbols as possible as we can.
  if (isAuto
  // Simplify the logic, do not determine label overlap here.
  && canShowAllSymbolForCategory(categoryAxis, data)) {
    return;
  }
  // Otherwise follow the label interval strategy on category axis.
  var categoryDataDim = data.mapDimension(categoryAxis.dim);
  var labelMap = {};
  util["each"](categoryAxis.getViewLabels(), function (labelItem) {
    var ordinalNumber = categoryAxis.scale.getRawOrdinalNumber(labelItem.tickValue);
    labelMap[ordinalNumber] = 1;
  });
  return function (dataIndex) {
    return !labelMap.hasOwnProperty(data.get(categoryDataDim, dataIndex));
  };
}
function canShowAllSymbolForCategory(categoryAxis, data) {
  // In most cases, line is monotonous on category axis, and the label size
  // is close with each other. So we check the symbol size and some of the
  // label size alone with the category axis to estimate whether all symbol
  // can be shown without overlap.
  var axisExtent = categoryAxis.getExtent();
  var availSize = Math.abs(axisExtent[1] - axisExtent[0]) / categoryAxis.scale.count();
  isNaN(availSize) && (availSize = 0); // 0/0 is NaN.
  // Sampling some points, max 5.
  var dataLen = data.count();
  var step = Math.max(1, Math.round(dataLen / 5));
  for (var dataIndex = 0; dataIndex < dataLen; dataIndex += step) {
    if (helper_Symbol.getSymbolSize(data, dataIndex
    // Only for cartesian, where `isHorizontal` exists.
    )[categoryAxis.isHorizontal() ? 1 : 0]
    // Empirical number
    * 1.5 > availSize) {
      return false;
    }
  }
  return true;
}
function LineView_isPointNull(x, y) {
  return isNaN(x) || isNaN(y);
}
function getLastIndexNotNull(points) {
  var len = points.length / 2;
  for (; len > 0; len--) {
    if (!LineView_isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {
      break;
    }
  }
  return len - 1;
}
function getPointAtIndex(points, idx) {
  return [points[idx * 2], points[idx * 2 + 1]];
}
function getIndexRange(points, xOrY, dim) {
  var len = points.length / 2;
  var dimIdx = dim === 'x' ? 0 : 1;
  var a;
  var b;
  var prevIndex = 0;
  var nextIndex = -1;
  for (var i = 0; i < len; i++) {
    b = points[i * 2 + dimIdx];
    if (isNaN(b) || isNaN(points[i * 2 + 1 - dimIdx])) {
      continue;
    }
    if (i === 0) {
      a = b;
      continue;
    }
    if (a <= xOrY && b >= xOrY || a >= xOrY && b <= xOrY) {
      nextIndex = i;
      break;
    }
    prevIndex = i;
    a = b;
  }
  return {
    range: [prevIndex, nextIndex],
    t: (xOrY - a) / (b - a)
  };
}
function anyStateShowEndLabel(seriesModel) {
  if (seriesModel.get(['endLabel', 'show'])) {
    return true;
  }
  for (var i = 0; i < SPECIAL_STATES.length; i++) {
    if (seriesModel.get([SPECIAL_STATES[i], 'endLabel', 'show'])) {
      return true;
    }
  }
  return false;
}
function createLineClipPath(lineView, coordSys, hasAnimation, seriesModel) {
  if (isCoordinateSystemType(coordSys, 'cartesian2d')) {
    var endLabelModel_1 = seriesModel.getModel('endLabel');
    var valueAnimation_1 = endLabelModel_1.get('valueAnimation');
    var data_1 = seriesModel.getData();
    var labelAnimationRecord_1 = {
      lastFrameIndex: 0
    };
    var during = anyStateShowEndLabel(seriesModel) ? function (percent, clipRect) {
      lineView._endLabelOnDuring(percent, clipRect, data_1, labelAnimationRecord_1, valueAnimation_1, endLabelModel_1, coordSys);
    } : null;
    var isHorizontal = coordSys.getBaseAxis().isHorizontal();
    var clipPath = createGridClipPath(coordSys, hasAnimation, seriesModel, function () {
      var endLabel = lineView._endLabel;
      if (endLabel && hasAnimation) {
        if (labelAnimationRecord_1.originalX != null) {
          endLabel.attr({
            x: labelAnimationRecord_1.originalX,
            y: labelAnimationRecord_1.originalY
          });
        }
      }
    }, during);
    // Expand clip shape to avoid clipping when line value exceeds axis
    if (!seriesModel.get('clip', true)) {
      var rectShape = clipPath.shape;
      var expandSize = Math.max(rectShape.width, rectShape.height);
      if (isHorizontal) {
        rectShape.y -= expandSize;
        rectShape.height += expandSize * 2;
      } else {
        rectShape.x -= expandSize;
        rectShape.width += expandSize * 2;
      }
    }
    // Set to the final frame. To make sure label layout is right.
    if (during) {
      during(1, clipPath);
    }
    return clipPath;
  } else {
    if (false) {}
    return createPolarClipPath(coordSys, hasAnimation, seriesModel);
  }
}
function getEndLabelStateSpecified(endLabelModel, coordSys) {
  var baseAxis = coordSys.getBaseAxis();
  var isHorizontal = baseAxis.isHorizontal();
  var isBaseInversed = baseAxis.inverse;
  var align = isHorizontal ? isBaseInversed ? 'right' : 'left' : 'center';
  var verticalAlign = isHorizontal ? 'middle' : isBaseInversed ? 'top' : 'bottom';
  return {
    normal: {
      align: endLabelModel.get('align') || align,
      verticalAlign: endLabelModel.get('verticalAlign') || verticalAlign
    }
  };
}
var LineView_LineView = /** @class */function (_super) {
  __extends(LineView, _super);
  function LineView() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  LineView.prototype.init = function () {
    var lineGroup = new graphic_Group();
    var symbolDraw = new helper_SymbolDraw();
    this.group.add(symbolDraw.group);
    this._symbolDraw = symbolDraw;
    this._lineGroup = lineGroup;
    this._changePolyState = util["bind"](this._changePolyState, this);
  };
  LineView.prototype.render = function (seriesModel, ecModel, api) {
    var coordSys = seriesModel.coordinateSystem;
    var group = this.group;
    var data = seriesModel.getData();
    var lineStyleModel = seriesModel.getModel('lineStyle');
    var areaStyleModel = seriesModel.getModel('areaStyle');
    var points = data.getLayout('points') || [];
    var isCoordSysPolar = coordSys.type === 'polar';
    var prevCoordSys = this._coordSys;
    var symbolDraw = this._symbolDraw;
    var polyline = this._polyline;
    var polygon = this._polygon;
    var lineGroup = this._lineGroup;
    var hasAnimation = !ecModel.ssr && seriesModel.get('animation');
    var isAreaChart = !areaStyleModel.isEmpty();
    var valueOrigin = areaStyleModel.get('origin');
    var dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin);
    var stackedOnPoints = isAreaChart && getStackedOnPoints(coordSys, data, dataCoordInfo);
    var showSymbol = seriesModel.get('showSymbol');
    var connectNulls = seriesModel.get('connectNulls');
    var isIgnoreFunc = showSymbol && !isCoordSysPolar && getIsIgnoreFunc(seriesModel, data, coordSys);
    // Remove temporary symbols
    var oldData = this._data;
    oldData && oldData.eachItemGraphicEl(function (el, idx) {
      if (el.__temp) {
        group.remove(el);
        oldData.setItemGraphicEl(idx, null);
      }
    });
    // Remove previous created symbols if showSymbol changed to false
    if (!showSymbol) {
      symbolDraw.remove();
    }
    group.add(lineGroup);
    // FIXME step not support polar
    var step = !isCoordSysPolar ? seriesModel.get('step') : false;
    var clipShapeForSymbol;
    if (coordSys && coordSys.getArea && seriesModel.get('clip', true)) {
      clipShapeForSymbol = coordSys.getArea();
      // Avoid float number rounding error for symbol on the edge of axis extent.
      // See #7913 and `test/dataZoom-clip.html`.
      if (clipShapeForSymbol.width != null) {
        clipShapeForSymbol.x -= 0.1;
        clipShapeForSymbol.y -= 0.1;
        clipShapeForSymbol.width += 0.2;
        clipShapeForSymbol.height += 0.2;
      } else if (clipShapeForSymbol.r0) {
        clipShapeForSymbol.r0 -= 0.5;
        clipShapeForSymbol.r += 0.5;
      }
    }
    this._clipShapeForSymbol = clipShapeForSymbol;
    var visualColor = getVisualGradient(data, coordSys, api) || data.getVisual('style')[data.getVisual('drawType')];
    // Initialization animation or coordinate system changed
    if (!(polyline && prevCoordSys.type === coordSys.type && step === this._step)) {
      showSymbol && symbolDraw.updateData(data, {
        isIgnore: isIgnoreFunc,
        clipShape: clipShapeForSymbol,
        disableAnimation: true,
        getSymbolPoint: function (idx) {
          return [points[idx * 2], points[idx * 2 + 1]];
        }
      });
      hasAnimation && this._initSymbolLabelAnimation(data, coordSys, clipShapeForSymbol);
      if (step) {
        if (stackedOnPoints) {
          stackedOnPoints = turnPointsIntoStep(stackedOnPoints, points, coordSys, step, connectNulls);
        }
        // TODO If stacked series is not step
        points = turnPointsIntoStep(points, null, coordSys, step, connectNulls);
      }
      polyline = this._newPolyline(points);
      if (isAreaChart) {
        polygon = this._newPolygon(points, stackedOnPoints);
      } // If areaStyle is removed
      else if (polygon) {
        lineGroup.remove(polygon);
        polygon = this._polygon = null;
      }
      // NOTE: Must update _endLabel before setClipPath.
      if (!isCoordSysPolar) {
        this._initOrUpdateEndLabel(seriesModel, coordSys, convertToColorString(visualColor));
      }
      lineGroup.setClipPath(createLineClipPath(this, coordSys, true, seriesModel));
    } else {
      if (isAreaChart && !polygon) {
        // If areaStyle is added
        polygon = this._newPolygon(points, stackedOnPoints);
      } else if (polygon && !isAreaChart) {
        // If areaStyle is removed
        lineGroup.remove(polygon);
        polygon = this._polygon = null;
      }
      // NOTE: Must update _endLabel before setClipPath.
      if (!isCoordSysPolar) {
        this._initOrUpdateEndLabel(seriesModel, coordSys, convertToColorString(visualColor));
      }
      // Update clipPath
      var oldClipPath = lineGroup.getClipPath();
      if (oldClipPath) {
        var newClipPath = createLineClipPath(this, coordSys, false, seriesModel);
        initProps(oldClipPath, {
          shape: newClipPath.shape
        }, seriesModel);
      } else {
        lineGroup.setClipPath(createLineClipPath(this, coordSys, true, seriesModel));
      }
      // Always update, or it is wrong in the case turning on legend
      // because points are not changed.
      showSymbol && symbolDraw.updateData(data, {
        isIgnore: isIgnoreFunc,
        clipShape: clipShapeForSymbol,
        disableAnimation: true,
        getSymbolPoint: function (idx) {
          return [points[idx * 2], points[idx * 2 + 1]];
        }
      });
      // In the case data zoom triggered refreshing frequently
      // Data may not change if line has a category axis. So it should animate nothing.
      if (!isPointsSame(this._stackedOnPoints, stackedOnPoints) || !isPointsSame(this._points, points)) {
        if (hasAnimation) {
          this._doUpdateAnimation(data, stackedOnPoints, coordSys, api, step, valueOrigin, connectNulls);
        } else {
          // Not do it in update with animation
          if (step) {
            if (stackedOnPoints) {
              stackedOnPoints = turnPointsIntoStep(stackedOnPoints, points, coordSys, step, connectNulls);
            }
            // TODO If stacked series is not step
            points = turnPointsIntoStep(points, null, coordSys, step, connectNulls);
          }
          polyline.setShape({
            points: points
          });
          polygon && polygon.setShape({
            points: points,
            stackedOnPoints: stackedOnPoints
          });
        }
      }
    }
    var emphasisModel = seriesModel.getModel('emphasis');
    var focus = emphasisModel.get('focus');
    var blurScope = emphasisModel.get('blurScope');
    var emphasisDisabled = emphasisModel.get('disabled');
    polyline.useStyle(util["defaults"](
    // Use color in lineStyle first
    lineStyleModel.getLineStyle(), {
      fill: 'none',
      stroke: visualColor,
      lineJoin: 'bevel'
    }));
    setStatesStylesFromModel(polyline, seriesModel, 'lineStyle');
    if (polyline.style.lineWidth > 0 && seriesModel.get(['emphasis', 'lineStyle', 'width']) === 'bolder') {
      var emphasisLineStyle = polyline.getState('emphasis').style;
      emphasisLineStyle.lineWidth = +polyline.style.lineWidth + 1;
    }
    // Needs seriesIndex for focus
    getECData(polyline).seriesIndex = seriesModel.seriesIndex;
    toggleHoverEmphasis(polyline, focus, blurScope, emphasisDisabled);
    var smooth = getSmooth(seriesModel.get('smooth'));
    var smoothMonotone = seriesModel.get('smoothMonotone');
    polyline.setShape({
      smooth: smooth,
      smoothMonotone: smoothMonotone,
      connectNulls: connectNulls
    });
    if (polygon) {
      var stackedOnSeries = data.getCalculationInfo('stackedOnSeries');
      var stackedOnSmooth = 0;
      polygon.useStyle(util["defaults"](areaStyleModel.getAreaStyle(), {
        fill: visualColor,
        opacity: 0.7,
        lineJoin: 'bevel',
        decal: data.getVisual('style').decal
      }));
      if (stackedOnSeries) {
        stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));
      }
      polygon.setShape({
        smooth: smooth,
        stackedOnSmooth: stackedOnSmooth,
        smoothMonotone: smoothMonotone,
        connectNulls: connectNulls
      });
      setStatesStylesFromModel(polygon, seriesModel, 'areaStyle');
      // Needs seriesIndex for focus
      getECData(polygon).seriesIndex = seriesModel.seriesIndex;
      toggleHoverEmphasis(polygon, focus, blurScope, emphasisDisabled);
    }
    var changePolyState = this._changePolyState;
    data.eachItemGraphicEl(function (el) {
      // Switch polyline / polygon state if element changed its state.
      el && (el.onHoverStateChange = changePolyState);
    });
    this._polyline.onHoverStateChange = changePolyState;
    this._data = data;
    // Save the coordinate system for transition animation when data changed
    this._coordSys = coordSys;
    this._stackedOnPoints = stackedOnPoints;
    this._points = points;
    this._step = step;
    this._valueOrigin = valueOrigin;
    if (seriesModel.get('triggerLineEvent')) {
      this.packEventData(seriesModel, polyline);
      polygon && this.packEventData(seriesModel, polygon);
    }
  };
  LineView.prototype.packEventData = function (seriesModel, el) {
    getECData(el).eventData = {
      componentType: 'series',
      componentSubType: 'line',
      componentIndex: seriesModel.componentIndex,
      seriesIndex: seriesModel.seriesIndex,
      seriesName: seriesModel.name,
      seriesType: 'line'
    };
  };
  LineView.prototype.highlight = function (seriesModel, ecModel, api, payload) {
    var data = seriesModel.getData();
    var dataIndex = queryDataIndex(data, payload);
    this._changePolyState('emphasis');
    if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) {
      var points = data.getLayout('points');
      var symbol = data.getItemGraphicEl(dataIndex);
      if (!symbol) {
        // Create a temporary symbol if it is not exists
        var x = points[dataIndex * 2];
        var y = points[dataIndex * 2 + 1];
        if (isNaN(x) || isNaN(y)) {
          // Null data
          return;
        }
        // fix #11360: shouldn't draw symbol outside clipShapeForSymbol
        if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(x, y)) {
          return;
        }
        var zlevel = seriesModel.get('zlevel') || 0;
        var z = seriesModel.get('z') || 0;
        symbol = new helper_Symbol(data, dataIndex);
        symbol.x = x;
        symbol.y = y;
        symbol.setZ(zlevel, z);
        // ensure label text of the temporary symbol is in front of line and area polygon
        var symbolLabel = symbol.getSymbolPath().getTextContent();
        if (symbolLabel) {
          symbolLabel.zlevel = zlevel;
          symbolLabel.z = z;
          symbolLabel.z2 = this._polyline.z2 + 1;
        }
        symbol.__temp = true;
        data.setItemGraphicEl(dataIndex, symbol);
        // Stop scale animation
        symbol.stopSymbolAnimation(true);
        this.group.add(symbol);
      }
      symbol.highlight();
    } else {
      // Highlight whole series
      Chart.prototype.highlight.call(this, seriesModel, ecModel, api, payload);
    }
  };
  LineView.prototype.downplay = function (seriesModel, ecModel, api, payload) {
    var data = seriesModel.getData();
    var dataIndex = queryDataIndex(data, payload);
    this._changePolyState('normal');
    if (dataIndex != null && dataIndex >= 0) {
      var symbol = data.getItemGraphicEl(dataIndex);
      if (symbol) {
        if (symbol.__temp) {
          data.setItemGraphicEl(dataIndex, null);
          this.group.remove(symbol);
        } else {
          symbol.downplay();
        }
      }
    } else {
      // FIXME
      // can not downplay completely.
      // Downplay whole series
      Chart.prototype.downplay.call(this, seriesModel, ecModel, api, payload);
    }
  };
  LineView.prototype._changePolyState = function (toState) {
    var polygon = this._polygon;
    setStatesFlag(this._polyline, toState);
    polygon && setStatesFlag(polygon, toState);
  };
  LineView.prototype._newPolyline = function (points) {
    var polyline = this._polyline;
    // Remove previous created polyline
    if (polyline) {
      this._lineGroup.remove(polyline);
    }
    polyline = new poly_ECPolyline({
      shape: {
        points: points
      },
      segmentIgnoreThreshold: 2,
      z2: 10
    });
    this._lineGroup.add(polyline);
    this._polyline = polyline;
    return polyline;
  };
  LineView.prototype._newPolygon = function (points, stackedOnPoints) {
    var polygon = this._polygon;
    // Remove previous created polygon
    if (polygon) {
      this._lineGroup.remove(polygon);
    }
    polygon = new poly_ECPolygon({
      shape: {
        points: points,
        stackedOnPoints: stackedOnPoints
      },
      segmentIgnoreThreshold: 2
    });
    this._lineGroup.add(polygon);
    this._polygon = polygon;
    return polygon;
  };
  LineView.prototype._initSymbolLabelAnimation = function (data, coordSys, clipShape) {
    var isHorizontalOrRadial;
    var isCoordSysPolar;
    var baseAxis = coordSys.getBaseAxis();
    var isAxisInverse = baseAxis.inverse;
    if (coordSys.type === 'cartesian2d') {
      isHorizontalOrRadial = baseAxis.isHorizontal();
      isCoordSysPolar = false;
    } else if (coordSys.type === 'polar') {
      isHorizontalOrRadial = baseAxis.dim === 'angle';
      isCoordSysPolar = true;
    }
    var seriesModel = data.hostModel;
    var seriesDuration = seriesModel.get('animationDuration');
    if (util["isFunction"](seriesDuration)) {
      seriesDuration = seriesDuration(null);
    }
    var seriesDelay = seriesModel.get('animationDelay') || 0;
    var seriesDelayValue = util["isFunction"](seriesDelay) ? seriesDelay(null) : seriesDelay;
    data.eachItemGraphicEl(function (symbol, idx) {
      var el = symbol;
      if (el) {
        var point = [symbol.x, symbol.y];
        var start = void 0;
        var end = void 0;
        var current = void 0;
        if (clipShape) {
          if (isCoordSysPolar) {
            var polarClip = clipShape;
            var coord = coordSys.pointToCoord(point);
            if (isHorizontalOrRadial) {
              start = polarClip.startAngle;
              end = polarClip.endAngle;
              current = -coord[1] / 180 * Math.PI;
            } else {
              start = polarClip.r0;
              end = polarClip.r;
              current = coord[0];
            }
          } else {
            var gridClip = clipShape;
            if (isHorizontalOrRadial) {
              start = gridClip.x;
              end = gridClip.x + gridClip.width;
              current = symbol.x;
            } else {
              start = gridClip.y + gridClip.height;
              end = gridClip.y;
              current = symbol.y;
            }
          }
        }
        var ratio = end === start ? 0 : (current - start) / (end - start);
        if (isAxisInverse) {
          ratio = 1 - ratio;
        }
        var delay = util["isFunction"](seriesDelay) ? seriesDelay(idx) : seriesDuration * ratio + seriesDelayValue;
        var symbolPath = el.getSymbolPath();
        var text = symbolPath.getTextContent();
        el.attr({
          scaleX: 0,
          scaleY: 0
        });
        el.animateTo({
          scaleX: 1,
          scaleY: 1
        }, {
          duration: 200,
          setToFinal: true,
          delay: delay
        });
        if (text) {
          text.animateFrom({
            style: {
              opacity: 0
            }
          }, {
            duration: 300,
            delay: delay
          });
        }
        symbolPath.disableLabelAnimation = true;
      }
    });
  };
  LineView.prototype._initOrUpdateEndLabel = function (seriesModel, coordSys, inheritColor) {
    var endLabelModel = seriesModel.getModel('endLabel');
    if (anyStateShowEndLabel(seriesModel)) {
      var data_2 = seriesModel.getData();
      var polyline = this._polyline;
      // series may be filtered.
      var points = data_2.getLayout('points');
      if (!points) {
        polyline.removeTextContent();
        this._endLabel = null;
        return;
      }
      var endLabel = this._endLabel;
      if (!endLabel) {
        endLabel = this._endLabel = new Text({
          z2: 200 // should be higher than item symbol
        });
        endLabel.ignoreClip = true;
        polyline.setTextContent(this._endLabel);
        polyline.disableLabelAnimation = true;
      }
      // Find last non-NaN data to display data
      var dataIndex = getLastIndexNotNull(points);
      if (dataIndex >= 0) {
        setLabelStyle(polyline, getLabelStatesModels(seriesModel, 'endLabel'), {
          inheritColor: inheritColor,
          labelFetcher: seriesModel,
          labelDataIndex: dataIndex,
          defaultText: function (dataIndex, opt, interpolatedValue) {
            return interpolatedValue != null ? getDefaultInterpolatedLabel(data_2, interpolatedValue) : getDefaultLabel(data_2, dataIndex);
          },
          enableTextSetter: true
        }, getEndLabelStateSpecified(endLabelModel, coordSys));
        polyline.textConfig.position = null;
      }
    } else if (this._endLabel) {
      this._polyline.removeTextContent();
      this._endLabel = null;
    }
  };
  LineView.prototype._endLabelOnDuring = function (percent, clipRect, data, animationRecord, valueAnimation, endLabelModel, coordSys) {
    var endLabel = this._endLabel;
    var polyline = this._polyline;
    if (endLabel) {
      // NOTE: Don't remove percent < 1. percent === 1 means the first frame during render.
      // The label is not prepared at this time.
      if (percent < 1 && animationRecord.originalX == null) {
        animationRecord.originalX = endLabel.x;
        animationRecord.originalY = endLabel.y;
      }
      var points = data.getLayout('points');
      var seriesModel = data.hostModel;
      var connectNulls = seriesModel.get('connectNulls');
      var precision = endLabelModel.get('precision');
      var distance = endLabelModel.get('distance') || 0;
      var baseAxis = coordSys.getBaseAxis();
      var isHorizontal = baseAxis.isHorizontal();
      var isBaseInversed = baseAxis.inverse;
      var clipShape = clipRect.shape;
      var xOrY = isBaseInversed ? isHorizontal ? clipShape.x : clipShape.y + clipShape.height : isHorizontal ? clipShape.x + clipShape.width : clipShape.y;
      var distanceX = (isHorizontal ? distance : 0) * (isBaseInversed ? -1 : 1);
      var distanceY = (isHorizontal ? 0 : -distance) * (isBaseInversed ? -1 : 1);
      var dim = isHorizontal ? 'x' : 'y';
      var dataIndexRange = getIndexRange(points, xOrY, dim);
      var indices = dataIndexRange.range;
      var diff = indices[1] - indices[0];
      var value = void 0;
      if (diff >= 1) {
        // diff > 1 && connectNulls, which is on the null data.
        if (diff > 1 && !connectNulls) {
          var pt = getPointAtIndex(points, indices[0]);
          endLabel.attr({
            x: pt[0] + distanceX,
            y: pt[1] + distanceY
          });
          valueAnimation && (value = seriesModel.getRawValue(indices[0]));
        } else {
          var pt = polyline.getPointOn(xOrY, dim);
          pt && endLabel.attr({
            x: pt[0] + distanceX,
            y: pt[1] + distanceY
          });
          var startValue = seriesModel.getRawValue(indices[0]);
          var endValue = seriesModel.getRawValue(indices[1]);
          valueAnimation && (value = interpolateRawValues(data, precision, startValue, endValue, dataIndexRange.t));
        }
        animationRecord.lastFrameIndex = indices[0];
      } else {
        // If diff <= 0, which is the range is not found(Include NaN)
        // Choose the first point or last point.
        var idx = percent === 1 || animationRecord.lastFrameIndex > 0 ? indices[0] : 0;
        var pt = getPointAtIndex(points, idx);
        valueAnimation && (value = seriesModel.getRawValue(idx));
        endLabel.attr({
          x: pt[0] + distanceX,
          y: pt[1] + distanceY
        });
      }
      if (valueAnimation) {
        var inner = labelInner(endLabel);
        if (typeof inner.setLabelText === 'function') {
          inner.setLabelText(value);
        }
      }
    }
  };
  /**
   * @private
   */
  // FIXME Two value axis
  LineView.prototype._doUpdateAnimation = function (data, stackedOnPoints, coordSys, api, step, valueOrigin, connectNulls) {
    var polyline = this._polyline;
    var polygon = this._polygon;
    var seriesModel = data.hostModel;
    var diff = lineAnimationDiff(this._data, data, this._stackedOnPoints, stackedOnPoints, this._coordSys, coordSys, this._valueOrigin, valueOrigin);
    var current = diff.current;
    var stackedOnCurrent = diff.stackedOnCurrent;
    var next = diff.next;
    var stackedOnNext = diff.stackedOnNext;
    if (step) {
      // TODO If stacked series is not step
      stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, diff.current, coordSys, step, connectNulls);
      current = turnPointsIntoStep(diff.current, null, coordSys, step, connectNulls);
      stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, diff.next, coordSys, step, connectNulls);
      next = turnPointsIntoStep(diff.next, null, coordSys, step, connectNulls);
    }
    // Don't apply animation if diff is large.
    // For better result and avoid memory explosion problems like
    // https://github.com/apache/incubator-echarts/issues/12229
    if (getBoundingDiff(current, next) > 3000 || polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000) {
      polyline.stopAnimation();
      polyline.setShape({
        points: next
      });
      if (polygon) {
        polygon.stopAnimation();
        polygon.setShape({
          points: next,
          stackedOnPoints: stackedOnNext
        });
      }
      return;
    }
    polyline.shape.__points = diff.current;
    polyline.shape.points = current;
    var target = {
      shape: {
        points: next
      }
    };
    // Also animate the original points.
    // If points reference is changed when turning into step line.
    if (diff.current !== current) {
      target.shape.__points = diff.next;
    }
    // Stop previous animation.
    polyline.stopAnimation();
    updateProps(polyline, target, seriesModel);
    if (polygon) {
      polygon.setShape({
        // Reuse the points with polyline.
        points: current,
        stackedOnPoints: stackedOnCurrent
      });
      polygon.stopAnimation();
      updateProps(polygon, {
        shape: {
          stackedOnPoints: stackedOnNext
        }
      }, seriesModel);
      // If use attr directly in updateProps.
      if (polyline.shape.points !== polygon.shape.points) {
        polygon.shape.points = polyline.shape.points;
      }
    }
    var updatedDataInfo = [];
    var diffStatus = diff.status;
    for (var i = 0; i < diffStatus.length; i++) {
      var cmd = diffStatus[i].cmd;
      if (cmd === '=') {
        var el = data.getItemGraphicEl(diffStatus[i].idx1);
        if (el) {
          updatedDataInfo.push({
            el: el,
            ptIdx: i // Index of points
          });
        }
      }
    }
    if (polyline.animators && polyline.animators.length) {
      polyline.animators[0].during(function () {
        polygon && polygon.dirtyShape();
        var points = polyline.shape.__points;
        for (var i = 0; i < updatedDataInfo.length; i++) {
          var el = updatedDataInfo[i].el;
          var offset = updatedDataInfo[i].ptIdx * 2;
          el.x = points[offset];
          el.y = points[offset + 1];
          el.markRedraw();
        }
      });
    }
  };
  LineView.prototype.remove = function (ecModel) {
    var group = this.group;
    var oldData = this._data;
    this._lineGroup.removeAll();
    this._symbolDraw.remove(true);
    // Remove temporary created elements when highlighting
    oldData && oldData.eachItemGraphicEl(function (el, idx) {
      if (el.__temp) {
        group.remove(el);
        oldData.setItemGraphicEl(idx, null);
      }
    });
    this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null;
  };
  LineView.type = 'line';
  return LineView;
}(Chart);
/* harmony default export */ var line_LineView = (LineView_LineView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/layout/points.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function pointsLayout(seriesType, forceStoreInTypedArray) {
  return {
    seriesType: seriesType,
    plan: createRenderPlanner(),
    reset: function (seriesModel) {
      var data = seriesModel.getData();
      var coordSys = seriesModel.coordinateSystem;
      var pipelineContext = seriesModel.pipelineContext;
      var useTypedArray = forceStoreInTypedArray || pipelineContext.large;
      if (!coordSys) {
        return;
      }
      var dims = Object(util["map"])(coordSys.dimensions, function (dim) {
        return data.mapDimension(dim);
      }).slice(0, 2);
      var dimLen = dims.length;
      var stackResultDim = data.getCalculationInfo('stackResultDimension');
      if (isDimensionStacked(data, dims[0])) {
        dims[0] = stackResultDim;
      }
      if (isDimensionStacked(data, dims[1])) {
        dims[1] = stackResultDim;
      }
      var store = data.getStore();
      var dimIdx0 = data.getDimensionIndex(dims[0]);
      var dimIdx1 = data.getDimensionIndex(dims[1]);
      return dimLen && {
        progress: function (params, data) {
          var segCount = params.end - params.start;
          var points = useTypedArray && createFloat32Array(segCount * dimLen);
          var tmpIn = [];
          var tmpOut = [];
          for (var i = params.start, offset = 0; i < params.end; i++) {
            var point = void 0;
            if (dimLen === 1) {
              var x = store.get(dimIdx0, i);
              // NOTE: Make sure the second parameter is null to use default strategy.
              point = coordSys.dataToPoint(x, null, tmpOut);
            } else {
              tmpIn[0] = store.get(dimIdx0, i);
              tmpIn[1] = store.get(dimIdx1, i);
              // Let coordinate system to handle the NaN data.
              point = coordSys.dataToPoint(tmpIn, null, tmpOut);
            }
            if (useTypedArray) {
              points[offset++] = point[0];
              points[offset++] = point[1];
            } else {
              data.setItemLayout(i, point.slice());
            }
          }
          useTypedArray && data.setLayout('points', points);
        }
      };
    }
  };
}
;
// CONCATENATED MODULE: ./node_modules/echarts/lib/processor/dataSample.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var samplers = {
  average: function (frame) {
    var sum = 0;
    var count = 0;
    for (var i = 0; i < frame.length; i++) {
      if (!isNaN(frame[i])) {
        sum += frame[i];
        count++;
      }
    }
    // Return NaN if count is 0
    return count === 0 ? NaN : sum / count;
  },
  sum: function (frame) {
    var sum = 0;
    for (var i = 0; i < frame.length; i++) {
      // Ignore NaN
      sum += frame[i] || 0;
    }
    return sum;
  },
  max: function (frame) {
    var max = -Infinity;
    for (var i = 0; i < frame.length; i++) {
      frame[i] > max && (max = frame[i]);
    }
    // NaN will cause illegal axis extent.
    return isFinite(max) ? max : NaN;
  },
  min: function (frame) {
    var min = Infinity;
    for (var i = 0; i < frame.length; i++) {
      frame[i] < min && (min = frame[i]);
    }
    // NaN will cause illegal axis extent.
    return isFinite(min) ? min : NaN;
  },
  // TODO
  // Median
  nearest: function (frame) {
    return frame[0];
  }
};
var indexSampler = function (frame) {
  return Math.round(frame.length / 2);
};
function dataSample(seriesType) {
  return {
    seriesType: seriesType,
    // FIXME:TS never used, so comment it
    // modifyOutputEnd: true,
    reset: function (seriesModel, ecModel, api) {
      var data = seriesModel.getData();
      var sampling = seriesModel.get('sampling');
      var coordSys = seriesModel.coordinateSystem;
      var count = data.count();
      // Only cartesian2d support down sampling. Disable it when there is few data.
      if (count > 10 && coordSys.type === 'cartesian2d' && sampling) {
        var baseAxis = coordSys.getBaseAxis();
        var valueAxis = coordSys.getOtherAxis(baseAxis);
        var extent = baseAxis.getExtent();
        var dpr = api.getDevicePixelRatio();
        // Coordinste system has been resized
        var size = Math.abs(extent[1] - extent[0]) * (dpr || 1);
        var rate = Math.round(count / size);
        if (isFinite(rate) && rate > 1) {
          if (sampling === 'lttb') {
            seriesModel.setData(data.lttbDownSample(data.mapDimension(valueAxis.dim), 1 / rate));
          } else if (sampling === 'minmax') {
            seriesModel.setData(data.minmaxDownSample(data.mapDimension(valueAxis.dim), 1 / rate));
          }
          var sampler = void 0;
          if (Object(util["isString"])(sampling)) {
            sampler = samplers[sampling];
          } else if (Object(util["isFunction"])(sampling)) {
            sampler = sampling;
          }
          if (sampler) {
            // Only support sample the first dim mapped from value axis.
            seriesModel.setData(data.downSample(data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler));
          }
        }
      }
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// In case developer forget to include grid component


function install_install(registers) {
  registers.registerChartView(line_LineView);
  registers.registerSeriesModel(LineSeries);
  registers.registerLayout(pointsLayout('line', true));
  registers.registerVisual({
    seriesType: 'line',
    reset: function (seriesModel) {
      var data = seriesModel.getData();
      // Visual coding for legend
      var lineStyle = seriesModel.getModel('lineStyle').getLineStyle();
      if (lineStyle && !lineStyle.stroke) {
        // Fill in visual should be palette color if
        // has color callback
        lineStyle.stroke = data.getVisual('style').fill;
      }
      data.setVisual('legendLineStyle', lineStyle);
    }
  });
  // Down sample after filter
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, dataSample('line'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/BaseBarSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var BaseBarSeries_BaseBarSeriesModel = /** @class */function (_super) {
  __extends(BaseBarSeriesModel, _super);
  function BaseBarSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = BaseBarSeriesModel.type;
    return _this;
  }
  BaseBarSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return helper_createSeriesData(null, this, {
      useEncodeDefaulter: true
    });
  };
  BaseBarSeriesModel.prototype.getMarkerPosition = function (value, dims, startingAtTick) {
    var coordSys = this.coordinateSystem;
    if (coordSys && coordSys.clampData) {
      // PENDING if clamp ?
      var clampData_1 = coordSys.clampData(value);
      var pt_1 = coordSys.dataToPoint(clampData_1);
      if (startingAtTick) {
        Object(util["each"])(coordSys.getAxes(), function (axis, idx) {
          // If axis type is category, use tick coords instead
          if (axis.type === 'category' && dims != null) {
            var tickCoords = axis.getTicksCoords();
            var alignTicksWithLabel = axis.getTickModel().get('alignWithLabel');
            var targetTickId = clampData_1[idx];
            // The index of rightmost tick of markArea is 1 larger than x1/y1 index
            var isEnd = dims[idx] === 'x1' || dims[idx] === 'y1';
            if (isEnd && !alignTicksWithLabel) {
              targetTickId += 1;
            }
            // The only contains one tick, tickCoords is
            // like [{coord: 0, tickValue: 0}, {coord: 0}]
            // to the length should always be larger than 1
            if (tickCoords.length < 2) {
              return;
            } else if (tickCoords.length === 2) {
              // The left value and right value of the axis are
              // the same. coord is 0 in both items. Use the max
              // value of the axis as the coord
              pt_1[idx] = axis.toGlobalCoord(axis.getExtent()[isEnd ? 1 : 0]);
              return;
            }
            var leftCoord = void 0;
            var coord = void 0;
            var stepTickValue = 1;
            for (var i = 0; i < tickCoords.length; i++) {
              var tickCoord = tickCoords[i].coord;
              // The last item of tickCoords doesn't contain
              // tickValue
              var tickValue = i === tickCoords.length - 1 ? tickCoords[i - 1].tickValue + stepTickValue : tickCoords[i].tickValue;
              if (tickValue === targetTickId) {
                coord = tickCoord;
                break;
              } else if (tickValue < targetTickId) {
                leftCoord = tickCoord;
              } else if (leftCoord != null && tickValue > targetTickId) {
                coord = (tickCoord + leftCoord) / 2;
                break;
              }
              if (i === 1) {
                // Here we assume the step of category axes is
                // the same
                stepTickValue = tickValue - tickCoords[0].tickValue;
              }
            }
            if (coord == null) {
              if (!leftCoord) {
                // targetTickId is smaller than all tick ids in the
                // visible area, use the leftmost tick coord
                coord = tickCoords[0].coord;
              } else if (leftCoord) {
                // targetTickId is larger than all tick ids in the
                // visible area, use the rightmost tick coord
                coord = tickCoords[tickCoords.length - 1].coord;
              }
            }
            pt_1[idx] = axis.toGlobalCoord(coord);
          }
        });
      } else {
        var data = this.getData();
        var offset = data.getLayout('offset');
        var size = data.getLayout('size');
        var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;
        pt_1[offsetIndex] += offset + size / 2;
      }
      return pt_1;
    }
    return [NaN, NaN];
  };
  BaseBarSeriesModel.type = 'series.__base_bar__';
  BaseBarSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    coordinateSystem: 'cartesian2d',
    legendHoverLink: true,
    // stack: null
    // Cartesian coordinate system
    // xAxisIndex: 0,
    // yAxisIndex: 0,
    barMinHeight: 0,
    barMinAngle: 0,
    // cursor: null,
    large: false,
    largeThreshold: 400,
    progressive: 3e3,
    progressiveChunkMode: 'mod'
  };
  return BaseBarSeriesModel;
}(Series);
Series.registerClass(BaseBarSeries_BaseBarSeriesModel);
/* harmony default export */ var BaseBarSeries = (BaseBarSeries_BaseBarSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/BarSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var BarSeries_BarSeriesModel = /** @class */function (_super) {
  __extends(BarSeriesModel, _super);
  function BarSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = BarSeriesModel.type;
    return _this;
  }
  BarSeriesModel.prototype.getInitialData = function () {
    return helper_createSeriesData(null, this, {
      useEncodeDefaulter: true,
      createInvertedIndices: !!this.get('realtimeSort', true) || null
    });
  };
  /**
   * @override
   */
  BarSeriesModel.prototype.getProgressive = function () {
    // Do not support progressive in normal mode.
    return this.get('large') ? this.get('progressive') : false;
  };
  /**
   * @override
   */
  BarSeriesModel.prototype.getProgressiveThreshold = function () {
    // Do not support progressive in normal mode.
    var progressiveThreshold = this.get('progressiveThreshold');
    var largeThreshold = this.get('largeThreshold');
    if (largeThreshold > progressiveThreshold) {
      progressiveThreshold = largeThreshold;
    }
    return progressiveThreshold;
  };
  BarSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {
    return selectors.rect(data.getItemLayout(dataIndex));
  };
  BarSeriesModel.type = 'series.bar';
  BarSeriesModel.dependencies = ['grid', 'polar'];
  BarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeries.defaultOption, {
    // If clipped
    // Only available on cartesian2d
    clip: true,
    roundCap: false,
    showBackground: false,
    backgroundStyle: {
      color: 'rgba(180, 180, 180, 0.2)',
      borderColor: null,
      borderWidth: 0,
      borderType: 'solid',
      borderRadius: 0,
      shadowBlur: 0,
      shadowColor: null,
      shadowOffsetX: 0,
      shadowOffsetY: 0,
      opacity: 1
    },
    select: {
      itemStyle: {
        borderColor: '#212121'
      }
    },
    realtimeSort: false
  });
  return BarSeriesModel;
}(BaseBarSeries);
/* harmony default export */ var BarSeries = (BarSeries_BarSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/shape/sausage.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * Sausage: similar to sector, but have half circle on both sides
 */
var SausageShape = /** @class */function () {
  function SausageShape() {
    this.cx = 0;
    this.cy = 0;
    this.r0 = 0;
    this.r = 0;
    this.startAngle = 0;
    this.endAngle = Math.PI * 2;
    this.clockwise = true;
  }
  return SausageShape;
}();
var sausage_SausagePath = /** @class */function (_super) {
  __extends(SausagePath, _super);
  function SausagePath(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'sausage';
    return _this;
  }
  SausagePath.prototype.getDefaultShape = function () {
    return new SausageShape();
  };
  SausagePath.prototype.buildPath = function (ctx, shape) {
    var cx = shape.cx;
    var cy = shape.cy;
    var r0 = Math.max(shape.r0 || 0, 0);
    var r = Math.max(shape.r, 0);
    var dr = (r - r0) * 0.5;
    var rCenter = r0 + dr;
    var startAngle = shape.startAngle;
    var endAngle = shape.endAngle;
    var clockwise = shape.clockwise;
    var PI2 = Math.PI * 2;
    var lessThanCircle = clockwise ? endAngle - startAngle < PI2 : startAngle - endAngle < PI2;
    if (!lessThanCircle) {
      // Normalize angles
      startAngle = endAngle - (clockwise ? PI2 : -PI2);
    }
    var unitStartX = Math.cos(startAngle);
    var unitStartY = Math.sin(startAngle);
    var unitEndX = Math.cos(endAngle);
    var unitEndY = Math.sin(endAngle);
    if (lessThanCircle) {
      ctx.moveTo(unitStartX * r0 + cx, unitStartY * r0 + cy);
      ctx.arc(unitStartX * rCenter + cx, unitStartY * rCenter + cy, dr, -Math.PI + startAngle, startAngle, !clockwise);
    } else {
      ctx.moveTo(unitStartX * r + cx, unitStartY * r + cy);
    }
    ctx.arc(cx, cy, r, startAngle, endAngle, !clockwise);
    ctx.arc(unitEndX * rCenter + cx, unitEndY * rCenter + cy, dr, endAngle - Math.PI * 2, endAngle - Math.PI, !clockwise);
    if (r0 !== 0) {
      ctx.arc(cx, cy, r0, endAngle, startAngle, clockwise);
    }
    // ctx.closePath();
  };
  return SausagePath;
}(graphic_Path);
/* harmony default export */ var sausage = (sausage_SausagePath);
// CONCATENATED MODULE: ./node_modules/echarts/lib/label/sectorLabel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function createSectorCalculateTextPosition(positionMapping, opts) {
  opts = opts || {};
  var isRoundCap = opts.isRoundCap;
  return function (out, opts, boundingRect) {
    var textPosition = opts.position;
    if (!textPosition || textPosition instanceof Array) {
      return calculateTextPosition(out, opts, boundingRect);
    }
    var mappedSectorPosition = positionMapping(textPosition);
    var distance = opts.distance != null ? opts.distance : 5;
    var sector = this.shape;
    var cx = sector.cx;
    var cy = sector.cy;
    var r = sector.r;
    var r0 = sector.r0;
    var middleR = (r + r0) / 2;
    var startAngle = sector.startAngle;
    var endAngle = sector.endAngle;
    var middleAngle = (startAngle + endAngle) / 2;
    var extraDist = isRoundCap ? Math.abs(r - r0) / 2 : 0;
    var mathCos = Math.cos;
    var mathSin = Math.sin;
    // base position: top-left
    var x = cx + r * mathCos(startAngle);
    var y = cy + r * mathSin(startAngle);
    var textAlign = 'left';
    var textVerticalAlign = 'top';
    switch (mappedSectorPosition) {
      case 'startArc':
        x = cx + (r0 - distance) * mathCos(middleAngle);
        y = cy + (r0 - distance) * mathSin(middleAngle);
        textAlign = 'center';
        textVerticalAlign = 'top';
        break;
      case 'insideStartArc':
        x = cx + (r0 + distance) * mathCos(middleAngle);
        y = cy + (r0 + distance) * mathSin(middleAngle);
        textAlign = 'center';
        textVerticalAlign = 'bottom';
        break;
      case 'startAngle':
        x = cx + middleR * mathCos(startAngle) + adjustAngleDistanceX(startAngle, distance + extraDist, false);
        y = cy + middleR * mathSin(startAngle) + adjustAngleDistanceY(startAngle, distance + extraDist, false);
        textAlign = 'right';
        textVerticalAlign = 'middle';
        break;
      case 'insideStartAngle':
        x = cx + middleR * mathCos(startAngle) + adjustAngleDistanceX(startAngle, -distance + extraDist, false);
        y = cy + middleR * mathSin(startAngle) + adjustAngleDistanceY(startAngle, -distance + extraDist, false);
        textAlign = 'left';
        textVerticalAlign = 'middle';
        break;
      case 'middle':
        x = cx + middleR * mathCos(middleAngle);
        y = cy + middleR * mathSin(middleAngle);
        textAlign = 'center';
        textVerticalAlign = 'middle';
        break;
      case 'endArc':
        x = cx + (r + distance) * mathCos(middleAngle);
        y = cy + (r + distance) * mathSin(middleAngle);
        textAlign = 'center';
        textVerticalAlign = 'bottom';
        break;
      case 'insideEndArc':
        x = cx + (r - distance) * mathCos(middleAngle);
        y = cy + (r - distance) * mathSin(middleAngle);
        textAlign = 'center';
        textVerticalAlign = 'top';
        break;
      case 'endAngle':
        x = cx + middleR * mathCos(endAngle) + adjustAngleDistanceX(endAngle, distance + extraDist, true);
        y = cy + middleR * mathSin(endAngle) + adjustAngleDistanceY(endAngle, distance + extraDist, true);
        textAlign = 'left';
        textVerticalAlign = 'middle';
        break;
      case 'insideEndAngle':
        x = cx + middleR * mathCos(endAngle) + adjustAngleDistanceX(endAngle, -distance + extraDist, true);
        y = cy + middleR * mathSin(endAngle) + adjustAngleDistanceY(endAngle, -distance + extraDist, true);
        textAlign = 'right';
        textVerticalAlign = 'middle';
        break;
      default:
        return calculateTextPosition(out, opts, boundingRect);
    }
    out = out || {};
    out.x = x;
    out.y = y;
    out.align = textAlign;
    out.verticalAlign = textVerticalAlign;
    return out;
  };
}
function setSectorTextRotation(sector, textPosition, positionMapping, rotateType) {
  if (Object(util["isNumber"])(rotateType)) {
    // user-set rotation
    sector.setTextConfig({
      rotation: rotateType
    });
    return;
  } else if (Object(util["isArray"])(textPosition)) {
    // user-set position, use 0 as auto rotation
    sector.setTextConfig({
      rotation: 0
    });
    return;
  }
  var shape = sector.shape;
  var startAngle = shape.clockwise ? shape.startAngle : shape.endAngle;
  var endAngle = shape.clockwise ? shape.endAngle : shape.startAngle;
  var middleAngle = (startAngle + endAngle) / 2;
  var anchorAngle;
  var mappedSectorPosition = positionMapping(textPosition);
  switch (mappedSectorPosition) {
    case 'startArc':
    case 'insideStartArc':
    case 'middle':
    case 'insideEndArc':
    case 'endArc':
      anchorAngle = middleAngle;
      break;
    case 'startAngle':
    case 'insideStartAngle':
      anchorAngle = startAngle;
      break;
    case 'endAngle':
    case 'insideEndAngle':
      anchorAngle = endAngle;
      break;
    default:
      sector.setTextConfig({
        rotation: 0
      });
      return;
  }
  var rotate = Math.PI * 1.5 - anchorAngle;
  /**
   * TODO: labels with rotate > Math.PI / 2 should be rotate another
   * half round flipped to increase readability. However, only middle
   * position supports this for now, because in other positions, the
   * anchor point is not at the center of the text, so the positions
   * after rotating is not as expected.
   */
  if (mappedSectorPosition === 'middle' && rotate > Math.PI / 2 && rotate < Math.PI * 1.5) {
    rotate -= Math.PI;
  }
  sector.setTextConfig({
    rotation: rotate
  });
}
function adjustAngleDistanceX(angle, distance, isEnd) {
  return distance * Math.sin(angle) * (isEnd ? -1 : 1);
}
function adjustAngleDistanceY(angle, distance, isEnd) {
  return distance * Math.cos(angle) * (isEnd ? 1 : -1);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/sectorHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function getSectorCornerRadius(model, shape, zeroIfNull) {
  var cornerRadius = model.get('borderRadius');
  if (cornerRadius == null) {
    return zeroIfNull ? {
      cornerRadius: 0
    } : null;
  }
  if (!Object(util["isArray"])(cornerRadius)) {
    cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
  }
  var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
  return {
    cornerRadius: Object(util["map"])(cornerRadius, function (cr) {
      return parsePercent(cr, dr);
    })
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/BarView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


















var BarView_mathMax = Math.max;
var BarView_mathMin = Math.min;
function getClipArea(coord, data) {
  var coordSysClipArea = coord.getArea && coord.getArea();
  if (isCoordinateSystemType(coord, 'cartesian2d')) {
    var baseAxis = coord.getBaseAxis();
    // When boundaryGap is false or using time axis. bar may exceed the grid.
    // We should not clip this part.
    // See test/bar2.html
    if (baseAxis.type !== 'category' || !baseAxis.onBand) {
      var expandWidth = data.getLayout('bandWidth');
      if (baseAxis.isHorizontal()) {
        coordSysClipArea.x -= expandWidth;
        coordSysClipArea.width += expandWidth * 2;
      } else {
        coordSysClipArea.y -= expandWidth;
        coordSysClipArea.height += expandWidth * 2;
      }
    }
  }
  return coordSysClipArea;
}
var BarView_BarView = /** @class */function (_super) {
  __extends(BarView, _super);
  function BarView() {
    var _this = _super.call(this) || this;
    _this.type = BarView.type;
    _this._isFirstFrame = true;
    return _this;
  }
  BarView.prototype.render = function (seriesModel, ecModel, api, payload) {
    this._model = seriesModel;
    this._removeOnRenderedListener(api);
    this._updateDrawMode(seriesModel);
    var coordinateSystemType = seriesModel.get('coordinateSystem');
    if (coordinateSystemType === 'cartesian2d' || coordinateSystemType === 'polar') {
      // Clear previously rendered progressive elements.
      this._progressiveEls = null;
      this._isLargeDraw ? this._renderLarge(seriesModel, ecModel, api) : this._renderNormal(seriesModel, ecModel, api, payload);
    } else if (false) {}
  };
  BarView.prototype.incrementalPrepareRender = function (seriesModel) {
    this._clear();
    this._updateDrawMode(seriesModel);
    // incremental also need to clip, otherwise might be overlow.
    // But must not set clip in each frame, otherwise all of the children will be marked redraw.
    this._updateLargeClip(seriesModel);
  };
  BarView.prototype.incrementalRender = function (params, seriesModel) {
    // Reset
    this._progressiveEls = [];
    // Do not support progressive in normal mode.
    this._incrementalRenderLarge(params, seriesModel);
  };
  BarView.prototype.eachRendered = function (cb) {
    traverseElements(this._progressiveEls || this.group, cb);
  };
  BarView.prototype._updateDrawMode = function (seriesModel) {
    var isLargeDraw = seriesModel.pipelineContext.large;
    if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {
      this._isLargeDraw = isLargeDraw;
      this._clear();
    }
  };
  BarView.prototype._renderNormal = function (seriesModel, ecModel, api, payload) {
    var group = this.group;
    var data = seriesModel.getData();
    var oldData = this._data;
    var coord = seriesModel.coordinateSystem;
    var baseAxis = coord.getBaseAxis();
    var isHorizontalOrRadial;
    if (coord.type === 'cartesian2d') {
      isHorizontalOrRadial = baseAxis.isHorizontal();
    } else if (coord.type === 'polar') {
      isHorizontalOrRadial = baseAxis.dim === 'angle';
    }
    var animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null;
    var realtimeSortCfg = shouldRealtimeSort(seriesModel, coord);
    if (realtimeSortCfg) {
      this._enableRealtimeSort(realtimeSortCfg, data, api);
    }
    var needsClip = seriesModel.get('clip', true) || realtimeSortCfg;
    var coordSysClipArea = getClipArea(coord, data);
    // If there is clipPath created in large mode. Remove it.
    group.removeClipPath();
    // We don't use clipPath in normal mode because we needs a perfect animation
    // And don't want the label are clipped.
    var roundCap = seriesModel.get('roundCap', true);
    var drawBackground = seriesModel.get('showBackground', true);
    var backgroundModel = seriesModel.getModel('backgroundStyle');
    var barBorderRadius = backgroundModel.get('borderRadius') || 0;
    var bgEls = [];
    var oldBgEls = this._backgroundEls;
    var isInitSort = payload && payload.isInitSort;
    var isChangeOrder = payload && payload.type === 'changeAxisOrder';
    function createBackground(dataIndex) {
      var bgLayout = getLayout[coord.type](data, dataIndex);
      var bgEl = createBackgroundEl(coord, isHorizontalOrRadial, bgLayout);
      bgEl.useStyle(backgroundModel.getItemStyle());
      // Only cartesian2d support borderRadius.
      if (coord.type === 'cartesian2d') {
        bgEl.setShape('r', barBorderRadius);
      } else {
        bgEl.setShape('cornerRadius', barBorderRadius);
      }
      bgEls[dataIndex] = bgEl;
      return bgEl;
    }
    ;
    data.diff(oldData).add(function (dataIndex) {
      var itemModel = data.getItemModel(dataIndex);
      var layout = getLayout[coord.type](data, dataIndex, itemModel);
      if (drawBackground) {
        createBackground(dataIndex);
      }
      // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy".
      if (!data.hasValue(dataIndex) || !isValidLayout[coord.type](layout)) {
        return;
      }
      var isClipped = false;
      if (needsClip) {
        // Clip will modify the layout params.
        // And return a boolean to determine if the shape are fully clipped.
        isClipped = BarView_clip[coord.type](coordSysClipArea, layout);
      }
      var el = elementCreator[coord.type](seriesModel, data, dataIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, false, roundCap);
      if (realtimeSortCfg) {
        /**
         * Force label animation because even if the element is
         * ignored because it's clipped, it may not be clipped after
         * changing order. Then, if not using forceLabelAnimation,
         * the label animation was never started, in which case,
         * the label will be the final value and doesn't have label
         * animation.
         */
        el.forceLabelAnimation = true;
      }
      updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar');
      if (isInitSort) {
        el.attr({
          shape: layout
        });
      } else if (realtimeSortCfg) {
        updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, dataIndex, isHorizontalOrRadial, false, false);
      } else {
        initProps(el, {
          shape: layout
        }, seriesModel, dataIndex);
      }
      data.setItemGraphicEl(dataIndex, el);
      group.add(el);
      el.ignore = isClipped;
    }).update(function (newIndex, oldIndex) {
      var itemModel = data.getItemModel(newIndex);
      var layout = getLayout[coord.type](data, newIndex, itemModel);
      if (drawBackground) {
        var bgEl = void 0;
        if (oldBgEls.length === 0) {
          bgEl = createBackground(oldIndex);
        } else {
          bgEl = oldBgEls[oldIndex];
          bgEl.useStyle(backgroundModel.getItemStyle());
          // Only cartesian2d support borderRadius.
          if (coord.type === 'cartesian2d') {
            bgEl.setShape('r', barBorderRadius);
          } else {
            bgEl.setShape('cornerRadius', barBorderRadius);
          }
          bgEls[newIndex] = bgEl;
        }
        var bgLayout = getLayout[coord.type](data, newIndex);
        var shape = createBackgroundShape(isHorizontalOrRadial, bgLayout, coord);
        updateProps(bgEl, {
          shape: shape
        }, animationModel, newIndex);
      }
      var el = oldData.getItemGraphicEl(oldIndex);
      if (!data.hasValue(newIndex) || !isValidLayout[coord.type](layout)) {
        group.remove(el);
        return;
      }
      var isClipped = false;
      if (needsClip) {
        isClipped = BarView_clip[coord.type](coordSysClipArea, layout);
        if (isClipped) {
          group.remove(el);
        }
      }
      if (!el) {
        el = elementCreator[coord.type](seriesModel, data, newIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, !!el, roundCap);
      } else {
        saveOldStyle(el);
      }
      if (realtimeSortCfg) {
        el.forceLabelAnimation = true;
      }
      if (isChangeOrder) {
        var textEl = el.getTextContent();
        if (textEl) {
          var labelInnerStore = labelInner(textEl);
          if (labelInnerStore.prevValue != null) {
            /**
             * Set preValue to be value so that no new label
             * should be started, otherwise, it will take a full
             * `animationDurationUpdate` time to finish the
             * animation, which is not expected.
             */
            labelInnerStore.prevValue = labelInnerStore.value;
          }
        }
      }
      // Not change anything if only order changed.
      // Especially not change label.
      else {
        updateStyle(el, data, newIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar');
      }
      if (isInitSort) {
        el.attr({
          shape: layout
        });
      } else if (realtimeSortCfg) {
        updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, newIndex, isHorizontalOrRadial, true, isChangeOrder);
      } else {
        updateProps(el, {
          shape: layout
        }, seriesModel, newIndex, null);
      }
      data.setItemGraphicEl(newIndex, el);
      el.ignore = isClipped;
      group.add(el);
    }).remove(function (dataIndex) {
      var el = oldData.getItemGraphicEl(dataIndex);
      el && removeElementWithFadeOut(el, seriesModel, dataIndex);
    }).execute();
    var bgGroup = this._backgroundGroup || (this._backgroundGroup = new graphic_Group());
    bgGroup.removeAll();
    for (var i = 0; i < bgEls.length; ++i) {
      bgGroup.add(bgEls[i]);
    }
    group.add(bgGroup);
    this._backgroundEls = bgEls;
    this._data = data;
  };
  BarView.prototype._renderLarge = function (seriesModel, ecModel, api) {
    this._clear();
    createLarge(seriesModel, this.group);
    this._updateLargeClip(seriesModel);
  };
  BarView.prototype._incrementalRenderLarge = function (params, seriesModel) {
    this._removeBackground();
    createLarge(seriesModel, this.group, this._progressiveEls, true);
  };
  BarView.prototype._updateLargeClip = function (seriesModel) {
    // Use clipPath in large mode.
    var clipPath = seriesModel.get('clip', true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
    var group = this.group;
    if (clipPath) {
      group.setClipPath(clipPath);
    } else {
      group.removeClipPath();
    }
  };
  BarView.prototype._enableRealtimeSort = function (realtimeSortCfg, data, api) {
    var _this = this;
    // If no data in the first frame, wait for data to initSort
    if (!data.count()) {
      return;
    }
    var baseAxis = realtimeSortCfg.baseAxis;
    if (this._isFirstFrame) {
      this._dispatchInitSort(data, realtimeSortCfg, api);
      this._isFirstFrame = false;
    } else {
      var orderMapping_1 = function (idx) {
        var el = data.getItemGraphicEl(idx);
        var shape = el && el.shape;
        return shape &&
        // The result should be consistent with the initial sort by data value.
        // Do not support the case that both positive and negative exist.
        Math.abs(baseAxis.isHorizontal() ? shape.height : shape.width)
        // If data is NaN, shape.xxx may be NaN, so use || 0 here in case
        || 0;
      };
      this._onRendered = function () {
        _this._updateSortWithinSameData(data, orderMapping_1, baseAxis, api);
      };
      api.getZr().on('rendered', this._onRendered);
    }
  };
  BarView.prototype._dataSort = function (data, baseAxis, orderMapping) {
    var info = [];
    data.each(data.mapDimension(baseAxis.dim), function (ordinalNumber, dataIdx) {
      var mappedValue = orderMapping(dataIdx);
      mappedValue = mappedValue == null ? NaN : mappedValue;
      info.push({
        dataIndex: dataIdx,
        mappedValue: mappedValue,
        ordinalNumber: ordinalNumber
      });
    });
    info.sort(function (a, b) {
      // If NaN, it will be treated as min val.
      return b.mappedValue - a.mappedValue;
    });
    return {
      ordinalNumbers: Object(util["map"])(info, function (item) {
        return item.ordinalNumber;
      })
    };
  };
  BarView.prototype._isOrderChangedWithinSameData = function (data, orderMapping, baseAxis) {
    var scale = baseAxis.scale;
    var ordinalDataDim = data.mapDimension(baseAxis.dim);
    var lastValue = Number.MAX_VALUE;
    for (var tickNum = 0, len = scale.getOrdinalMeta().categories.length; tickNum < len; ++tickNum) {
      var rawIdx = data.rawIndexOf(ordinalDataDim, scale.getRawOrdinalNumber(tickNum));
      var value = rawIdx < 0
      // If some tick have no bar, the tick will be treated as min.
      ? Number.MIN_VALUE
      // PENDING: if dataZoom on baseAxis exits, is it a performance issue?
      : orderMapping(data.indexOfRawIndex(rawIdx));
      if (value > lastValue) {
        return true;
      }
      lastValue = value;
    }
    return false;
  };
  /*
   * Consider the case when A and B changed order, whose representing
   * bars are both out of sight, we don't wish to trigger reorder action
   * as long as the order in the view doesn't change.
   */
  BarView.prototype._isOrderDifferentInView = function (orderInfo, baseAxis) {
    var scale = baseAxis.scale;
    var extent = scale.getExtent();
    var tickNum = Math.max(0, extent[0]);
    var tickMax = Math.min(extent[1], scale.getOrdinalMeta().categories.length - 1);
    for (; tickNum <= tickMax; ++tickNum) {
      if (orderInfo.ordinalNumbers[tickNum] !== scale.getRawOrdinalNumber(tickNum)) {
        return true;
      }
    }
  };
  BarView.prototype._updateSortWithinSameData = function (data, orderMapping, baseAxis, api) {
    if (!this._isOrderChangedWithinSameData(data, orderMapping, baseAxis)) {
      return;
    }
    var sortInfo = this._dataSort(data, baseAxis, orderMapping);
    if (this._isOrderDifferentInView(sortInfo, baseAxis)) {
      this._removeOnRenderedListener(api);
      api.dispatchAction({
        type: 'changeAxisOrder',
        componentType: baseAxis.dim + 'Axis',
        axisId: baseAxis.index,
        sortInfo: sortInfo
      });
    }
  };
  BarView.prototype._dispatchInitSort = function (data, realtimeSortCfg, api) {
    var baseAxis = realtimeSortCfg.baseAxis;
    var sortResult = this._dataSort(data, baseAxis, function (dataIdx) {
      return data.get(data.mapDimension(realtimeSortCfg.otherAxis.dim), dataIdx);
    });
    api.dispatchAction({
      type: 'changeAxisOrder',
      componentType: baseAxis.dim + 'Axis',
      isInitSort: true,
      axisId: baseAxis.index,
      sortInfo: sortResult
    });
  };
  BarView.prototype.remove = function (ecModel, api) {
    this._clear(this._model);
    this._removeOnRenderedListener(api);
  };
  BarView.prototype.dispose = function (ecModel, api) {
    this._removeOnRenderedListener(api);
  };
  BarView.prototype._removeOnRenderedListener = function (api) {
    if (this._onRendered) {
      api.getZr().off('rendered', this._onRendered);
      this._onRendered = null;
    }
  };
  BarView.prototype._clear = function (model) {
    var group = this.group;
    var data = this._data;
    if (model && model.isAnimationEnabled() && data && !this._isLargeDraw) {
      this._removeBackground();
      this._backgroundEls = [];
      data.eachItemGraphicEl(function (el) {
        removeElementWithFadeOut(el, model, getECData(el).dataIndex);
      });
    } else {
      group.removeAll();
    }
    this._data = null;
    this._isFirstFrame = true;
  };
  BarView.prototype._removeBackground = function () {
    this.group.remove(this._backgroundGroup);
    this._backgroundGroup = null;
  };
  BarView.type = 'bar';
  return BarView;
}(Chart);
var BarView_clip = {
  cartesian2d: function (coordSysBoundingRect, layout) {
    var signWidth = layout.width < 0 ? -1 : 1;
    var signHeight = layout.height < 0 ? -1 : 1;
    // Needs positive width and height
    if (signWidth < 0) {
      layout.x += layout.width;
      layout.width = -layout.width;
    }
    if (signHeight < 0) {
      layout.y += layout.height;
      layout.height = -layout.height;
    }
    var coordSysX2 = coordSysBoundingRect.x + coordSysBoundingRect.width;
    var coordSysY2 = coordSysBoundingRect.y + coordSysBoundingRect.height;
    var x = BarView_mathMax(layout.x, coordSysBoundingRect.x);
    var x2 = BarView_mathMin(layout.x + layout.width, coordSysX2);
    var y = BarView_mathMax(layout.y, coordSysBoundingRect.y);
    var y2 = BarView_mathMin(layout.y + layout.height, coordSysY2);
    var xClipped = x2 < x;
    var yClipped = y2 < y;
    // When xClipped or yClipped, the element will be marked as `ignore`.
    // But we should also place the element at the edge of the coord sys bounding rect.
    // Because if data changed and the bar shows again, its transition animation
    // will begin at this place.
    layout.x = xClipped && x > coordSysX2 ? x2 : x;
    layout.y = yClipped && y > coordSysY2 ? y2 : y;
    layout.width = xClipped ? 0 : x2 - x;
    layout.height = yClipped ? 0 : y2 - y;
    // Reverse back
    if (signWidth < 0) {
      layout.x += layout.width;
      layout.width = -layout.width;
    }
    if (signHeight < 0) {
      layout.y += layout.height;
      layout.height = -layout.height;
    }
    return xClipped || yClipped;
  },
  polar: function (coordSysClipArea, layout) {
    var signR = layout.r0 <= layout.r ? 1 : -1;
    // Make sure r is larger than r0
    if (signR < 0) {
      var tmp = layout.r;
      layout.r = layout.r0;
      layout.r0 = tmp;
    }
    var r = BarView_mathMin(layout.r, coordSysClipArea.r);
    var r0 = BarView_mathMax(layout.r0, coordSysClipArea.r0);
    layout.r = r;
    layout.r0 = r0;
    var clipped = r - r0 < 0;
    // Reverse back
    if (signR < 0) {
      var tmp = layout.r;
      layout.r = layout.r0;
      layout.r0 = tmp;
    }
    return clipped;
  }
};
var elementCreator = {
  cartesian2d: function (seriesModel, data, newIndex, layout, isHorizontal, animationModel, axisModel, isUpdate, roundCap) {
    var rect = new shape_Rect({
      shape: Object(util["extend"])({}, layout),
      z2: 1
    });
    rect.__dataIndex = newIndex;
    rect.name = 'item';
    if (animationModel) {
      var rectShape = rect.shape;
      var animateProperty = isHorizontal ? 'height' : 'width';
      rectShape[animateProperty] = 0;
    }
    return rect;
  },
  polar: function (seriesModel, data, newIndex, layout, isRadial, animationModel, axisModel, isUpdate, roundCap) {
    var ShapeClass = !isRadial && roundCap ? sausage : shape_Sector;
    var sector = new ShapeClass({
      shape: layout,
      z2: 1
    });
    sector.name = 'item';
    var positionMap = createPolarPositionMapping(isRadial);
    sector.calculateTextPosition = createSectorCalculateTextPosition(positionMap, {
      isRoundCap: ShapeClass === sausage
    });
    // Animation
    if (animationModel) {
      var sectorShape = sector.shape;
      var animateProperty = isRadial ? 'r' : 'endAngle';
      var animateTarget = {};
      sectorShape[animateProperty] = isRadial ? layout.r0 : layout.startAngle;
      animateTarget[animateProperty] = layout[animateProperty];
      (isUpdate ? updateProps : initProps)(sector, {
        shape: animateTarget
        // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue
      }, animationModel);
    }
    return sector;
  }
};
function shouldRealtimeSort(seriesModel, coordSys) {
  var realtimeSortOption = seriesModel.get('realtimeSort', true);
  var baseAxis = coordSys.getBaseAxis();
  if (false) {}
  if (realtimeSortOption && baseAxis.type === 'category' && coordSys.type === 'cartesian2d') {
    return {
      baseAxis: baseAxis,
      otherAxis: coordSys.getOtherAxis(baseAxis)
    };
  }
}
function updateRealtimeAnimation(realtimeSortCfg, seriesAnimationModel, el, layout, newIndex, isHorizontal, isUpdate, isChangeOrder) {
  var seriesTarget;
  var axisTarget;
  if (isHorizontal) {
    axisTarget = {
      x: layout.x,
      width: layout.width
    };
    seriesTarget = {
      y: layout.y,
      height: layout.height
    };
  } else {
    axisTarget = {
      y: layout.y,
      height: layout.height
    };
    seriesTarget = {
      x: layout.x,
      width: layout.width
    };
  }
  if (!isChangeOrder) {
    // Keep the original growth animation if only axis order changed.
    // Not start a new animation.
    (isUpdate ? updateProps : initProps)(el, {
      shape: seriesTarget
    }, seriesAnimationModel, newIndex, null);
  }
  var axisAnimationModel = seriesAnimationModel ? realtimeSortCfg.baseAxis.model : null;
  (isUpdate ? updateProps : initProps)(el, {
    shape: axisTarget
  }, axisAnimationModel, newIndex);
}
function checkPropertiesNotValid(obj, props) {
  for (var i = 0; i < props.length; i++) {
    if (!isFinite(obj[props[i]])) {
      return true;
    }
  }
  return false;
}
var rectPropties = ['x', 'y', 'width', 'height'];
var polarPropties = ['cx', 'cy', 'r', 'startAngle', 'endAngle'];
var isValidLayout = {
  cartesian2d: function (layout) {
    return !checkPropertiesNotValid(layout, rectPropties);
  },
  polar: function (layout) {
    return !checkPropertiesNotValid(layout, polarPropties);
  }
};
var getLayout = {
  // itemModel is only used to get borderWidth, which is not needed
  // when calculating bar background layout.
  cartesian2d: function (data, dataIndex, itemModel) {
    var layout = data.getItemLayout(dataIndex);
    var fixedLineWidth = itemModel ? getLineWidth(itemModel, layout) : 0;
    // fix layout with lineWidth
    var signX = layout.width > 0 ? 1 : -1;
    var signY = layout.height > 0 ? 1 : -1;
    return {
      x: layout.x + signX * fixedLineWidth / 2,
      y: layout.y + signY * fixedLineWidth / 2,
      width: layout.width - signX * fixedLineWidth,
      height: layout.height - signY * fixedLineWidth
    };
  },
  polar: function (data, dataIndex, itemModel) {
    var layout = data.getItemLayout(dataIndex);
    return {
      cx: layout.cx,
      cy: layout.cy,
      r0: layout.r0,
      r: layout.r,
      startAngle: layout.startAngle,
      endAngle: layout.endAngle,
      clockwise: layout.clockwise
    };
  }
};
function isZeroOnPolar(layout) {
  return layout.startAngle != null && layout.endAngle != null && layout.startAngle === layout.endAngle;
}
function createPolarPositionMapping(isRadial) {
  return function (isRadial) {
    var arcOrAngle = isRadial ? 'Arc' : 'Angle';
    return function (position) {
      switch (position) {
        case 'start':
        case 'insideStart':
        case 'end':
        case 'insideEnd':
          return position + arcOrAngle;
        default:
          return position;
      }
    };
  }(isRadial);
}
function updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, isPolar) {
  var style = data.getItemVisual(dataIndex, 'style');
  if (!isPolar) {
    var borderRadius = itemModel.get(['itemStyle', 'borderRadius']) || 0;
    el.setShape('r', borderRadius);
  } else if (!seriesModel.get('roundCap')) {
    var sectorShape = el.shape;
    var cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape, true);
    Object(util["extend"])(sectorShape, cornerRadius);
    el.setShape(sectorShape);
  }
  el.useStyle(style);
  var cursorStyle = itemModel.getShallow('cursor');
  cursorStyle && el.attr('cursor', cursorStyle);
  var labelPositionOutside = isPolar ? isHorizontalOrRadial ? layout.r >= layout.r0 ? 'endArc' : 'startArc' : layout.endAngle >= layout.startAngle ? 'endAngle' : 'startAngle' : isHorizontalOrRadial ? layout.height >= 0 ? 'bottom' : 'top' : layout.width >= 0 ? 'right' : 'left';
  var labelStatesModels = getLabelStatesModels(itemModel);
  setLabelStyle(el, labelStatesModels, {
    labelFetcher: seriesModel,
    labelDataIndex: dataIndex,
    defaultText: getDefaultLabel(seriesModel.getData(), dataIndex),
    inheritColor: style.fill,
    defaultOpacity: style.opacity,
    defaultOutsidePosition: labelPositionOutside
  });
  var label = el.getTextContent();
  if (isPolar && label) {
    var position = itemModel.get(['label', 'position']);
    el.textConfig.inside = position === 'middle' ? true : null;
    setSectorTextRotation(el, position === 'outside' ? labelPositionOutside : position, createPolarPositionMapping(isHorizontalOrRadial), itemModel.get(['label', 'rotate']));
  }
  setLabelValueAnimation(label, labelStatesModels, seriesModel.getRawValue(dataIndex), function (value) {
    return getDefaultInterpolatedLabel(data, value);
  });
  var emphasisModel = itemModel.getModel(['emphasis']);
  toggleHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
  setStatesStylesFromModel(el, itemModel);
  if (isZeroOnPolar(layout)) {
    el.style.fill = 'none';
    el.style.stroke = 'none';
    Object(util["each"])(el.states, function (state) {
      if (state.style) {
        state.style.fill = state.style.stroke = 'none';
      }
    });
  }
}
// In case width or height are too small.
function getLineWidth(itemModel, rawLayout) {
  // Has no border.
  var borderColor = itemModel.get(['itemStyle', 'borderColor']);
  if (!borderColor || borderColor === 'none') {
    return 0;
  }
  var lineWidth = itemModel.get(['itemStyle', 'borderWidth']) || 0;
  // width or height may be NaN for empty data
  var width = isNaN(rawLayout.width) ? Number.MAX_VALUE : Math.abs(rawLayout.width);
  var height = isNaN(rawLayout.height) ? Number.MAX_VALUE : Math.abs(rawLayout.height);
  return Math.min(lineWidth, width, height);
}
var LagePathShape = /** @class */function () {
  function LagePathShape() {}
  return LagePathShape;
}();
var BarView_LargePath = /** @class */function (_super) {
  __extends(LargePath, _super);
  function LargePath(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'largeBar';
    return _this;
  }
  LargePath.prototype.getDefaultShape = function () {
    return new LagePathShape();
  };
  LargePath.prototype.buildPath = function (ctx, shape) {
    // Drawing lines is more efficient than drawing
    // a whole line or drawing rects.
    var points = shape.points;
    var baseDimIdx = this.baseDimIdx;
    var valueDimIdx = 1 - this.baseDimIdx;
    var startPoint = [];
    var size = [];
    var barWidth = this.barWidth;
    for (var i = 0; i < points.length; i += 3) {
      size[baseDimIdx] = barWidth;
      size[valueDimIdx] = points[i + 2];
      startPoint[baseDimIdx] = points[i + baseDimIdx];
      startPoint[valueDimIdx] = points[i + valueDimIdx];
      ctx.rect(startPoint[0], startPoint[1], size[0], size[1]);
    }
  };
  return LargePath;
}(graphic_Path);
function createLarge(seriesModel, group, progressiveEls, incremental) {
  // TODO support polar
  var data = seriesModel.getData();
  var baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;
  var largeDataIndices = data.getLayout('largeDataIndices');
  var barWidth = data.getLayout('size');
  var backgroundModel = seriesModel.getModel('backgroundStyle');
  var bgPoints = data.getLayout('largeBackgroundPoints');
  if (bgPoints) {
    var bgEl = new BarView_LargePath({
      shape: {
        points: bgPoints
      },
      incremental: !!incremental,
      silent: true,
      z2: 0
    });
    bgEl.baseDimIdx = baseDimIdx;
    bgEl.largeDataIndices = largeDataIndices;
    bgEl.barWidth = barWidth;
    bgEl.useStyle(backgroundModel.getItemStyle());
    group.add(bgEl);
    progressiveEls && progressiveEls.push(bgEl);
  }
  var el = new BarView_LargePath({
    shape: {
      points: data.getLayout('largePoints')
    },
    incremental: !!incremental,
    ignoreCoarsePointer: true,
    z2: 1
  });
  el.baseDimIdx = baseDimIdx;
  el.largeDataIndices = largeDataIndices;
  el.barWidth = barWidth;
  group.add(el);
  el.useStyle(data.getVisual('style'));
  // Stroke is rendered first to avoid overlapping with fill
  el.style.stroke = null;
  // Enable tooltip and user mouse/touch event handlers.
  getECData(el).seriesIndex = seriesModel.seriesIndex;
  if (!seriesModel.get('silent')) {
    el.on('mousedown', largePathUpdateDataIndex);
    el.on('mousemove', largePathUpdateDataIndex);
  }
  progressiveEls && progressiveEls.push(el);
}
// Use throttle to avoid frequently traverse to find dataIndex.
var largePathUpdateDataIndex = throttle(function (event) {
  var largePath = this;
  var dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY);
  getECData(largePath).dataIndex = dataIndex >= 0 ? dataIndex : null;
}, 30, false);
function largePathFindDataIndex(largePath, x, y) {
  var baseDimIdx = largePath.baseDimIdx;
  var valueDimIdx = 1 - baseDimIdx;
  var points = largePath.shape.points;
  var largeDataIndices = largePath.largeDataIndices;
  var startPoint = [];
  var size = [];
  var barWidth = largePath.barWidth;
  for (var i = 0, len = points.length / 3; i < len; i++) {
    var ii = i * 3;
    size[baseDimIdx] = barWidth;
    size[valueDimIdx] = points[ii + 2];
    startPoint[baseDimIdx] = points[ii + baseDimIdx];
    startPoint[valueDimIdx] = points[ii + valueDimIdx];
    if (size[valueDimIdx] < 0) {
      startPoint[valueDimIdx] += size[valueDimIdx];
      size[valueDimIdx] = -size[valueDimIdx];
    }
    if (x >= startPoint[0] && x <= startPoint[0] + size[0] && y >= startPoint[1] && y <= startPoint[1] + size[1]) {
      return largeDataIndices[i];
    }
  }
  return -1;
}
function createBackgroundShape(isHorizontalOrRadial, layout, coord) {
  if (isCoordinateSystemType(coord, 'cartesian2d')) {
    var rectShape = layout;
    var coordLayout = coord.getArea();
    return {
      x: isHorizontalOrRadial ? rectShape.x : coordLayout.x,
      y: isHorizontalOrRadial ? coordLayout.y : rectShape.y,
      width: isHorizontalOrRadial ? rectShape.width : coordLayout.width,
      height: isHorizontalOrRadial ? coordLayout.height : rectShape.height
    };
  } else {
    var coordLayout = coord.getArea();
    var sectorShape = layout;
    return {
      cx: coordLayout.cx,
      cy: coordLayout.cy,
      r0: isHorizontalOrRadial ? coordLayout.r0 : sectorShape.r0,
      r: isHorizontalOrRadial ? coordLayout.r : sectorShape.r,
      startAngle: isHorizontalOrRadial ? sectorShape.startAngle : 0,
      endAngle: isHorizontalOrRadial ? sectorShape.endAngle : Math.PI * 2
    };
  }
}
function createBackgroundEl(coord, isHorizontalOrRadial, layout) {
  var ElementClz = coord.type === 'polar' ? shape_Sector : shape_Rect;
  return new ElementClz({
    shape: createBackgroundShape(isHorizontalOrRadial, layout, coord),
    silent: true,
    z2: 0
  });
}
/* harmony default export */ var bar_BarView = (BarView_BarView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function bar_install_install(registers) {
  registers.registerChartView(bar_BarView);
  registers.registerSeriesModel(BarSeries);
  registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, util["curry"](barGrid_layout, 'bar'));
  // Do layout after other overall layout, which can prepare some information.
  registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, createProgressiveLayout('bar'));
  // Down sample after filter
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, dataSample('bar'));
  /**
   * @payload
   * @property {string} [componentType=series]
   * @property {number} [dx]
   * @property {number} [dy]
   * @property {number} [zoom]
   * @property {number} [originX]
   * @property {number} [originY]
   */
  registers.registerAction({
    type: 'changeAxisOrder',
    event: 'changeAxisOrder',
    update: 'update'
  }, function (payload, ecModel) {
    var componentType = payload.componentType || 'series';
    ecModel.eachComponent({
      mainType: componentType,
      query: payload
    }, function (componentModel) {
      if (payload.sortInfo) {
        componentModel.axis.setCategorySortInfo(payload.sortInfo);
      }
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/pie/pieLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var pieLayout_PI2 = Math.PI * 2;
var pieLayout_RADIAN = Math.PI / 180;
function getViewRect(seriesModel, api) {
  return getLayoutRect(seriesModel.getBoxLayoutParams(), {
    width: api.getWidth(),
    height: api.getHeight()
  });
}
function getBasicPieLayout(seriesModel, api) {
  var viewRect = getViewRect(seriesModel, api);
  // center can be string or number when coordinateSystem is specified
  var center = seriesModel.get('center');
  var radius = seriesModel.get('radius');
  if (!util["isArray"](radius)) {
    radius = [0, radius];
  }
  var width = number_parsePercent(viewRect.width, api.getWidth());
  var height = number_parsePercent(viewRect.height, api.getHeight());
  var size = Math.min(width, height);
  var r0 = number_parsePercent(radius[0], size / 2);
  var r = number_parsePercent(radius[1], size / 2);
  var cx;
  var cy;
  var coordSys = seriesModel.coordinateSystem;
  if (coordSys) {
    // percentage is not allowed when coordinate system is specified
    var point = coordSys.dataToPoint(center);
    cx = point[0] || 0;
    cy = point[1] || 0;
  } else {
    if (!util["isArray"](center)) {
      center = [center, center];
    }
    cx = number_parsePercent(center[0], width) + viewRect.x;
    cy = number_parsePercent(center[1], height) + viewRect.y;
  }
  return {
    cx: cx,
    cy: cy,
    r0: r0,
    r: r
  };
}
function pieLayout(seriesType, ecModel, api) {
  ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    var data = seriesModel.getData();
    var valueDim = data.mapDimension('value');
    var viewRect = getViewRect(seriesModel, api);
    var _a = getBasicPieLayout(seriesModel, api),
      cx = _a.cx,
      cy = _a.cy,
      r = _a.r,
      r0 = _a.r0;
    var startAngle = -seriesModel.get('startAngle') * pieLayout_RADIAN;
    var endAngle = seriesModel.get('endAngle');
    var padAngle = seriesModel.get('padAngle') * pieLayout_RADIAN;
    endAngle = endAngle === 'auto' ? startAngle - pieLayout_PI2 : -endAngle * pieLayout_RADIAN;
    var minAngle = seriesModel.get('minAngle') * pieLayout_RADIAN;
    var minAndPadAngle = minAngle + padAngle;
    var validDataCount = 0;
    data.each(valueDim, function (value) {
      !isNaN(value) && validDataCount++;
    });
    var sum = data.getSum(valueDim);
    // Sum may be 0
    var unitRadian = Math.PI / (sum || validDataCount) * 2;
    var clockwise = seriesModel.get('clockwise');
    var roseType = seriesModel.get('roseType');
    var stillShowZeroSum = seriesModel.get('stillShowZeroSum');
    // [0...max]
    var extent = data.getDataExtent(valueDim);
    extent[0] = 0;
    var dir = clockwise ? 1 : -1;
    var angles = [startAngle, endAngle];
    var halfPadAngle = dir * padAngle / 2;
    normalizeArcAngles(angles, !clockwise);
    startAngle = angles[0], endAngle = angles[1];
    var layoutData = getSeriesLayoutData(seriesModel);
    layoutData.startAngle = startAngle;
    layoutData.endAngle = endAngle;
    layoutData.clockwise = clockwise;
    var angleRange = Math.abs(endAngle - startAngle);
    // In the case some sector angle is smaller than minAngle
    var restAngle = angleRange;
    var valueSumLargerThanMinAngle = 0;
    var currentAngle = startAngle;
    data.setLayout({
      viewRect: viewRect,
      r: r
    });
    data.each(valueDim, function (value, idx) {
      var angle;
      if (isNaN(value)) {
        data.setItemLayout(idx, {
          angle: NaN,
          startAngle: NaN,
          endAngle: NaN,
          clockwise: clockwise,
          cx: cx,
          cy: cy,
          r0: r0,
          r: roseType ? NaN : r
        });
        return;
      }
      // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样？
      if (roseType !== 'area') {
        angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian;
      } else {
        angle = angleRange / validDataCount;
      }
      if (angle < minAndPadAngle) {
        angle = minAndPadAngle;
        restAngle -= minAndPadAngle;
      } else {
        valueSumLargerThanMinAngle += value;
      }
      var endAngle = currentAngle + dir * angle;
      // calculate display angle
      var actualStartAngle = 0;
      var actualEndAngle = 0;
      if (padAngle > angle) {
        actualStartAngle = currentAngle + dir * angle / 2;
        actualEndAngle = actualStartAngle;
      } else {
        actualStartAngle = currentAngle + halfPadAngle;
        actualEndAngle = endAngle - halfPadAngle;
      }
      data.setItemLayout(idx, {
        angle: angle,
        startAngle: actualStartAngle,
        endAngle: actualEndAngle,
        clockwise: clockwise,
        cx: cx,
        cy: cy,
        r0: r0,
        r: roseType ? linearMap(value, extent, [r0, r]) : r
      });
      currentAngle = endAngle;
    });
    // Some sector is constrained by minAngle and padAngle
    // Rest sectors needs recalculate angle
    if (restAngle < pieLayout_PI2 && validDataCount) {
      // Average the angle if rest angle is not enough after all angles is
      // Constrained by minAngle and padAngle
      if (restAngle <= 1e-3) {
        var angle_1 = angleRange / validDataCount;
        data.each(valueDim, function (value, idx) {
          if (!isNaN(value)) {
            var layout_1 = data.getItemLayout(idx);
            layout_1.angle = angle_1;
            var actualStartAngle = 0;
            var actualEndAngle = 0;
            if (angle_1 < padAngle) {
              actualStartAngle = startAngle + dir * (idx + 1 / 2) * angle_1;
              actualEndAngle = actualStartAngle;
            } else {
              actualStartAngle = startAngle + dir * idx * angle_1 + halfPadAngle;
              actualEndAngle = startAngle + dir * (idx + 1) * angle_1 - halfPadAngle;
            }
            layout_1.startAngle = actualStartAngle;
            layout_1.endAngle = actualEndAngle;
          }
        });
      } else {
        unitRadian = restAngle / valueSumLargerThanMinAngle;
        currentAngle = startAngle;
        data.each(valueDim, function (value, idx) {
          if (!isNaN(value)) {
            var layout_2 = data.getItemLayout(idx);
            var angle = layout_2.angle === minAndPadAngle ? minAndPadAngle : value * unitRadian;
            var actualStartAngle = 0;
            var actualEndAngle = 0;
            if (angle < padAngle) {
              actualStartAngle = currentAngle + dir * angle / 2;
              actualEndAngle = actualStartAngle;
            } else {
              actualStartAngle = currentAngle + halfPadAngle;
              actualEndAngle = currentAngle + dir * angle - halfPadAngle;
            }
            layout_2.startAngle = actualStartAngle;
            layout_2.endAngle = actualEndAngle;
            currentAngle += dir * angle;
          }
        });
      }
    }
  });
}
var getSeriesLayoutData = makeInner();
// CONCATENATED MODULE: ./node_modules/echarts/lib/processor/dataFilter.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function dataFilter(seriesType) {
  return {
    seriesType: seriesType,
    reset: function (seriesModel, ecModel) {
      var legendModels = ecModel.findComponents({
        mainType: 'legend'
      });
      if (!legendModels || !legendModels.length) {
        return;
      }
      var data = seriesModel.getData();
      data.filterSelf(function (idx) {
        var name = data.getName(idx);
        // If in any legend component the status is not selected.
        for (var i = 0; i < legendModels.length; i++) {
          // @ts-ignore FIXME: LegendModel
          if (!legendModels[i].isSelected(name)) {
            return false;
          }
        }
        return true;
      });
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/pie/labelLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// FIXME emphasis label position is not same with normal label position





var labelLayout_RADIAN = Math.PI / 180;
function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight, viewLeft, viewTop, farthestX) {
  if (list.length < 2) {
    return;
  }
  ;
  function recalculateXOnSemiToAlignOnEllipseCurve(semi) {
    var rB = semi.rB;
    var rB2 = rB * rB;
    for (var i = 0; i < semi.list.length; i++) {
      var item = semi.list[i];
      var dy = Math.abs(item.label.y - cy);
      // horizontal r is always same with original r because x is not changed.
      var rA = r + item.len;
      var rA2 = rA * rA;
      // Use ellipse implicit function to calculate x
      var dx = Math.sqrt(Math.abs((1 - dy * dy / rB2) * rA2));
      var newX = cx + (dx + item.len2) * dir;
      var deltaX = newX - item.label.x;
      var newTargetWidth = item.targetTextWidth - deltaX * dir;
      // text x is changed, so need to recalculate width.
      constrainTextWidth(item, newTargetWidth, true);
      item.label.x = newX;
    }
  }
  // Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve.
  function recalculateX(items) {
    // Extremes of
    var topSemi = {
      list: [],
      maxY: 0
    };
    var bottomSemi = {
      list: [],
      maxY: 0
    };
    for (var i = 0; i < items.length; i++) {
      if (items[i].labelAlignTo !== 'none') {
        continue;
      }
      var item = items[i];
      var semi = item.label.y > cy ? bottomSemi : topSemi;
      var dy = Math.abs(item.label.y - cy);
      if (dy >= semi.maxY) {
        var dx = item.label.x - cx - item.len2 * dir;
        // horizontal r is always same with original r because x is not changed.
        var rA = r + item.len;
        // Canculate rB based on the topest / bottemest label.
        var rB = Math.abs(dx) < rA ? Math.sqrt(dy * dy / (1 - dx * dx / rA / rA)) : rA;
        semi.rB = rB;
        semi.maxY = dy;
      }
      semi.list.push(item);
    }
    recalculateXOnSemiToAlignOnEllipseCurve(topSemi);
    recalculateXOnSemiToAlignOnEllipseCurve(bottomSemi);
  }
  var len = list.length;
  for (var i = 0; i < len; i++) {
    if (list[i].position === 'outer' && list[i].labelAlignTo === 'labelLine') {
      var dx = list[i].label.x - farthestX;
      list[i].linePoints[1][0] += dx;
      list[i].label.x = farthestX;
    }
  }
  if (shiftLayoutOnY(list, viewTop, viewTop + viewHeight)) {
    recalculateX(list);
  }
}
function avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop) {
  var leftList = [];
  var rightList = [];
  var leftmostX = Number.MAX_VALUE;
  var rightmostX = -Number.MAX_VALUE;
  for (var i = 0; i < labelLayoutList.length; i++) {
    var label = labelLayoutList[i].label;
    if (isPositionCenter(labelLayoutList[i])) {
      continue;
    }
    if (label.x < cx) {
      leftmostX = Math.min(leftmostX, label.x);
      leftList.push(labelLayoutList[i]);
    } else {
      rightmostX = Math.max(rightmostX, label.x);
      rightList.push(labelLayoutList[i]);
    }
  }
  for (var i = 0; i < labelLayoutList.length; i++) {
    var layout = labelLayoutList[i];
    if (!isPositionCenter(layout) && layout.linePoints) {
      if (layout.labelStyleWidth != null) {
        continue;
      }
      var label = layout.label;
      var linePoints = layout.linePoints;
      var targetTextWidth = void 0;
      if (layout.labelAlignTo === 'edge') {
        if (label.x < cx) {
          targetTextWidth = linePoints[2][0] - layout.labelDistance - viewLeft - layout.edgeDistance;
        } else {
          targetTextWidth = viewLeft + viewWidth - layout.edgeDistance - linePoints[2][0] - layout.labelDistance;
        }
      } else if (layout.labelAlignTo === 'labelLine') {
        if (label.x < cx) {
          targetTextWidth = leftmostX - viewLeft - layout.bleedMargin;
        } else {
          targetTextWidth = viewLeft + viewWidth - rightmostX - layout.bleedMargin;
        }
      } else {
        if (label.x < cx) {
          targetTextWidth = label.x - viewLeft - layout.bleedMargin;
        } else {
          targetTextWidth = viewLeft + viewWidth - label.x - layout.bleedMargin;
        }
      }
      layout.targetTextWidth = targetTextWidth;
      constrainTextWidth(layout, targetTextWidth);
    }
  }
  adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight, viewLeft, viewTop, rightmostX);
  adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight, viewLeft, viewTop, leftmostX);
  for (var i = 0; i < labelLayoutList.length; i++) {
    var layout = labelLayoutList[i];
    if (!isPositionCenter(layout) && layout.linePoints) {
      var label = layout.label;
      var linePoints = layout.linePoints;
      var isAlignToEdge = layout.labelAlignTo === 'edge';
      var padding = label.style.padding;
      var paddingH = padding ? padding[1] + padding[3] : 0;
      // textRect.width already contains paddingH if bgColor is set
      var extraPaddingH = label.style.backgroundColor ? 0 : paddingH;
      var realTextWidth = layout.rect.width + extraPaddingH;
      var dist = linePoints[1][0] - linePoints[2][0];
      if (isAlignToEdge) {
        if (label.x < cx) {
          linePoints[2][0] = viewLeft + layout.edgeDistance + realTextWidth + layout.labelDistance;
        } else {
          linePoints[2][0] = viewLeft + viewWidth - layout.edgeDistance - realTextWidth - layout.labelDistance;
        }
      } else {
        if (label.x < cx) {
          linePoints[2][0] = label.x + layout.labelDistance;
        } else {
          linePoints[2][0] = label.x - layout.labelDistance;
        }
        linePoints[1][0] = linePoints[2][0] + dist;
      }
      linePoints[1][1] = linePoints[2][1] = label.y;
    }
  }
}
/**
 * Set max width of each label, and then wrap each label to the max width.
 *
 * @param layout label layout
 * @param availableWidth max width for the label to display
 * @param forceRecalculate recaculate the text layout even if the current width
 * is smaller than `availableWidth`. This is useful when the text was previously
 * wrapped by calling `constrainTextWidth` but now `availableWidth` changed, in
 * which case, previous wrapping should be redo.
 */
function constrainTextWidth(layout, availableWidth, forceRecalculate) {
  if (forceRecalculate === void 0) {
    forceRecalculate = false;
  }
  if (layout.labelStyleWidth != null) {
    // User-defined style.width has the highest priority.
    return;
  }
  var label = layout.label;
  var style = label.style;
  var textRect = layout.rect;
  var bgColor = style.backgroundColor;
  var padding = style.padding;
  var paddingH = padding ? padding[1] + padding[3] : 0;
  var overflow = style.overflow;
  // textRect.width already contains paddingH if bgColor is set
  var oldOuterWidth = textRect.width + (bgColor ? 0 : paddingH);
  if (availableWidth < oldOuterWidth || forceRecalculate) {
    var oldHeight = textRect.height;
    if (overflow && overflow.match('break')) {
      // Temporarily set background to be null to calculate
      // the bounding box without background.
      label.setStyle('backgroundColor', null);
      // Set constraining width
      label.setStyle('width', availableWidth - paddingH);
      // This is the real bounding box of the text without padding.
      var innerRect = label.getBoundingRect();
      label.setStyle('width', Math.ceil(innerRect.width));
      label.setStyle('backgroundColor', bgColor);
    } else {
      var availableInnerWidth = availableWidth - paddingH;
      var newWidth = availableWidth < oldOuterWidth
      // Current text is too wide, use `availableWidth` as max width.
      ? availableInnerWidth :
      // Current available width is enough, but the text may have
      // already been wrapped with a smaller available width.
      forceRecalculate ? availableInnerWidth > layout.unconstrainedWidth
      // Current available is larger than text width,
      // so don't constrain width (otherwise it may have
      // empty space in the background).
      ? null
      // Current available is smaller than text width, so
      // use the current available width as constraining
      // width.
      : availableInnerWidth
      // Current available width is enough, so no need to
      // constrain.
      : null;
      label.setStyle('width', newWidth);
    }
    var newRect = label.getBoundingRect();
    textRect.width = newRect.width;
    var margin = (label.style.margin || 0) + 2.1;
    textRect.height = newRect.height + margin;
    textRect.y -= (textRect.height - oldHeight) / 2;
  }
}
function isPositionCenter(sectorShape) {
  // Not change x for center label
  return sectorShape.position === 'center';
}
function pieLabelLayout(seriesModel) {
  var data = seriesModel.getData();
  var labelLayoutList = [];
  var cx;
  var cy;
  var hasLabelRotate = false;
  var minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * labelLayout_RADIAN;
  var viewRect = data.getLayout('viewRect');
  var r = data.getLayout('r');
  var viewWidth = viewRect.width;
  var viewLeft = viewRect.x;
  var viewTop = viewRect.y;
  var viewHeight = viewRect.height;
  function setNotShow(el) {
    el.ignore = true;
  }
  function isLabelShown(label) {
    if (!label.ignore) {
      return true;
    }
    for (var key in label.states) {
      if (label.states[key].ignore === false) {
        return true;
      }
    }
    return false;
  }
  data.each(function (idx) {
    var sector = data.getItemGraphicEl(idx);
    var sectorShape = sector.shape;
    var label = sector.getTextContent();
    var labelLine = sector.getTextGuideLine();
    var itemModel = data.getItemModel(idx);
    var labelModel = itemModel.getModel('label');
    // Use position in normal or emphasis
    var labelPosition = labelModel.get('position') || itemModel.get(['emphasis', 'label', 'position']);
    var labelDistance = labelModel.get('distanceToLabelLine');
    var labelAlignTo = labelModel.get('alignTo');
    var edgeDistance = number_parsePercent(labelModel.get('edgeDistance'), viewWidth);
    var bleedMargin = labelModel.get('bleedMargin');
    var labelLineModel = itemModel.getModel('labelLine');
    var labelLineLen = labelLineModel.get('length');
    labelLineLen = number_parsePercent(labelLineLen, viewWidth);
    var labelLineLen2 = labelLineModel.get('length2');
    labelLineLen2 = number_parsePercent(labelLineLen2, viewWidth);
    if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) {
      Object(util["each"])(label.states, setNotShow);
      label.ignore = true;
      if (labelLine) {
        Object(util["each"])(labelLine.states, setNotShow);
        labelLine.ignore = true;
      }
      return;
    }
    if (!isLabelShown(label)) {
      return;
    }
    var midAngle = (sectorShape.startAngle + sectorShape.endAngle) / 2;
    var nx = Math.cos(midAngle);
    var ny = Math.sin(midAngle);
    var textX;
    var textY;
    var linePoints;
    var textAlign;
    cx = sectorShape.cx;
    cy = sectorShape.cy;
    var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';
    if (labelPosition === 'center') {
      textX = sectorShape.cx;
      textY = sectorShape.cy;
      textAlign = 'center';
    } else {
      var x1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * nx : sectorShape.r * nx) + cx;
      var y1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * ny : sectorShape.r * ny) + cy;
      textX = x1 + nx * 3;
      textY = y1 + ny * 3;
      if (!isLabelInside) {
        // For roseType
        var x2 = x1 + nx * (labelLineLen + r - sectorShape.r);
        var y2 = y1 + ny * (labelLineLen + r - sectorShape.r);
        var x3 = x2 + (nx < 0 ? -1 : 1) * labelLineLen2;
        var y3 = y2;
        if (labelAlignTo === 'edge') {
          // Adjust textX because text align of edge is opposite
          textX = nx < 0 ? viewLeft + edgeDistance : viewLeft + viewWidth - edgeDistance;
        } else {
          textX = x3 + (nx < 0 ? -labelDistance : labelDistance);
        }
        textY = y3;
        linePoints = [[x1, y1], [x2, y2], [x3, y3]];
      }
      textAlign = isLabelInside ? 'center' : labelAlignTo === 'edge' ? nx > 0 ? 'right' : 'left' : nx > 0 ? 'left' : 'right';
    }
    var PI = Math.PI;
    var labelRotate = 0;
    var rotate = labelModel.get('rotate');
    if (Object(util["isNumber"])(rotate)) {
      labelRotate = rotate * (PI / 180);
    } else if (labelPosition === 'center') {
      labelRotate = 0;
    } else if (rotate === 'radial' || rotate === true) {
      var radialAngle = nx < 0 ? -midAngle + PI : -midAngle;
      labelRotate = radialAngle;
    } else if (rotate === 'tangential' && labelPosition !== 'outside' && labelPosition !== 'outer') {
      var rad = Math.atan2(nx, ny);
      if (rad < 0) {
        rad = PI * 2 + rad;
      }
      var isDown = ny > 0;
      if (isDown) {
        rad = PI + rad;
      }
      labelRotate = rad - PI;
    }
    hasLabelRotate = !!labelRotate;
    label.x = textX;
    label.y = textY;
    label.rotation = labelRotate;
    label.setStyle({
      verticalAlign: 'middle'
    });
    // Not sectorShape the inside label
    if (!isLabelInside) {
      var textRect = label.getBoundingRect().clone();
      textRect.applyTransform(label.getComputedTransform());
      // Text has a default 1px stroke. Exclude this.
      var margin = (label.style.margin || 0) + 2.1;
      textRect.y -= margin / 2;
      textRect.height += margin;
      labelLayoutList.push({
        label: label,
        labelLine: labelLine,
        position: labelPosition,
        len: labelLineLen,
        len2: labelLineLen2,
        minTurnAngle: labelLineModel.get('minTurnAngle'),
        maxSurfaceAngle: labelLineModel.get('maxSurfaceAngle'),
        surfaceNormal: new core_Point(nx, ny),
        linePoints: linePoints,
        textAlign: textAlign,
        labelDistance: labelDistance,
        labelAlignTo: labelAlignTo,
        edgeDistance: edgeDistance,
        bleedMargin: bleedMargin,
        rect: textRect,
        unconstrainedWidth: textRect.width,
        labelStyleWidth: label.style.width
      });
    } else {
      label.setStyle({
        align: textAlign
      });
      var selectState = label.states.select;
      if (selectState) {
        selectState.x += label.x;
        selectState.y += label.y;
      }
    }
    sector.setTextConfig({
      inside: isLabelInside
    });
  });
  if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {
    avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop);
  }
  for (var i = 0; i < labelLayoutList.length; i++) {
    var layout = labelLayoutList[i];
    var label = layout.label;
    var labelLine = layout.labelLine;
    var notShowLabel = isNaN(label.x) || isNaN(label.y);
    if (label) {
      label.setStyle({
        align: layout.textAlign
      });
      if (notShowLabel) {
        Object(util["each"])(label.states, setNotShow);
        label.ignore = true;
      }
      var selectState = label.states.select;
      if (selectState) {
        selectState.x += label.x;
        selectState.y += label.y;
      }
    }
    if (labelLine) {
      var linePoints = layout.linePoints;
      if (notShowLabel || !linePoints) {
        Object(util["each"])(labelLine.states, setNotShow);
        labelLine.ignore = true;
      } else {
        limitTurnAngle(linePoints, layout.minTurnAngle);
        limitSurfaceAngle(linePoints, layout.surfaceNormal, layout.maxSurfaceAngle);
        labelLine.setShape({
          points: linePoints
        });
        // Set the anchor to the midpoint of sector
        label.__hostTarget.textGuideLineConfig = {
          anchor: new core_Point(linePoints[0][0], linePoints[0][1])
        };
      }
    }
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/pie/PieView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/











/**
 * Piece of pie including Sector, Label, LabelLine
 */
var PieView_PiePiece = /** @class */function (_super) {
  __extends(PiePiece, _super);
  function PiePiece(data, idx, startAngle) {
    var _this = _super.call(this) || this;
    _this.z2 = 2;
    var text = new Text();
    _this.setTextContent(text);
    _this.updateData(data, idx, startAngle, true);
    return _this;
  }
  PiePiece.prototype.updateData = function (data, idx, startAngle, firstCreate) {
    var sector = this;
    var seriesModel = data.hostModel;
    var itemModel = data.getItemModel(idx);
    var emphasisModel = itemModel.getModel('emphasis');
    var layout = data.getItemLayout(idx);
    // cornerRadius & innerCornerRadius doesn't exist in the item layout. Use `0` if null value is specified.
    // see `setItemLayout` in `pieLayout.ts`.
    var sectorShape = Object(util["extend"])(getSectorCornerRadius(itemModel.getModel('itemStyle'), layout, true), layout);
    // Ignore NaN data.
    if (isNaN(sectorShape.startAngle)) {
      // Use NaN shape to avoid drawing shape.
      sector.setShape(sectorShape);
      return;
    }
    if (firstCreate) {
      sector.setShape(sectorShape);
      var animationType = seriesModel.getShallow('animationType');
      if (seriesModel.ecModel.ssr) {
        // Use scale animation in SSR mode(opacity?)
        // Because CSS SVG animation doesn't support very customized shape animation.
        initProps(sector, {
          scaleX: 0,
          scaleY: 0
        }, seriesModel, {
          dataIndex: idx,
          isFrom: true
        });
        sector.originX = sectorShape.cx;
        sector.originY = sectorShape.cy;
      } else if (animationType === 'scale') {
        sector.shape.r = layout.r0;
        initProps(sector, {
          shape: {
            r: layout.r
          }
        }, seriesModel, idx);
      }
      // Expansion
      else {
        if (startAngle != null) {
          sector.setShape({
            startAngle: startAngle,
            endAngle: startAngle
          });
          initProps(sector, {
            shape: {
              startAngle: layout.startAngle,
              endAngle: layout.endAngle
            }
          }, seriesModel, idx);
        } else {
          sector.shape.endAngle = layout.startAngle;
          updateProps(sector, {
            shape: {
              endAngle: layout.endAngle
            }
          }, seriesModel, idx);
        }
      }
    } else {
      saveOldStyle(sector);
      // Transition animation from the old shape
      updateProps(sector, {
        shape: sectorShape
      }, seriesModel, idx);
    }
    sector.useStyle(data.getItemVisual(idx, 'style'));
    setStatesStylesFromModel(sector, itemModel);
    var midAngle = (layout.startAngle + layout.endAngle) / 2;
    var offset = seriesModel.get('selectedOffset');
    var dx = Math.cos(midAngle) * offset;
    var dy = Math.sin(midAngle) * offset;
    var cursorStyle = itemModel.getShallow('cursor');
    cursorStyle && sector.attr('cursor', cursorStyle);
    this._updateLabel(seriesModel, data, idx);
    sector.ensureState('emphasis').shape = Object(util["extend"])({
      r: layout.r + (emphasisModel.get('scale') ? emphasisModel.get('scaleSize') || 0 : 0)
    }, getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout));
    Object(util["extend"])(sector.ensureState('select'), {
      x: dx,
      y: dy,
      shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)
    });
    Object(util["extend"])(sector.ensureState('blur'), {
      shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)
    });
    var labelLine = sector.getTextGuideLine();
    var labelText = sector.getTextContent();
    labelLine && Object(util["extend"])(labelLine.ensureState('select'), {
      x: dx,
      y: dy
    });
    // TODO: needs dx, dy in zrender?
    Object(util["extend"])(labelText.ensureState('select'), {
      x: dx,
      y: dy
    });
    toggleHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
  };
  PiePiece.prototype._updateLabel = function (seriesModel, data, idx) {
    var sector = this;
    var itemModel = data.getItemModel(idx);
    var labelLineModel = itemModel.getModel('labelLine');
    var style = data.getItemVisual(idx, 'style');
    var visualColor = style && style.fill;
    var visualOpacity = style && style.opacity;
    setLabelStyle(sector, getLabelStatesModels(itemModel), {
      labelFetcher: data.hostModel,
      labelDataIndex: idx,
      inheritColor: visualColor,
      defaultOpacity: visualOpacity,
      defaultText: seriesModel.getFormattedLabel(idx, 'normal') || data.getName(idx)
    });
    var labelText = sector.getTextContent();
    // Set textConfig on sector.
    sector.setTextConfig({
      // reset position, rotation
      position: null,
      rotation: null
    });
    // Make sure update style on labelText after setLabelStyle.
    // Because setLabelStyle will replace a new style on it.
    labelText.attr({
      z2: 10
    });
    var labelPosition = seriesModel.get(['label', 'position']);
    if (labelPosition !== 'outside' && labelPosition !== 'outer') {
      sector.removeTextGuideLine();
    } else {
      var polyline = this.getTextGuideLine();
      if (!polyline) {
        polyline = new shape_Polyline();
        this.setTextGuideLine(polyline);
      }
      // Default use item visual color
      setLabelLineStyle(this, getLabelLineStatesModels(itemModel), {
        stroke: visualColor,
        opacity: Object(util["retrieve3"])(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1)
      });
    }
  };
  return PiePiece;
}(shape_Sector);
// Pie view
var PieView_PieView = /** @class */function (_super) {
  __extends(PieView, _super);
  function PieView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.ignoreLabelLineUpdate = true;
    return _this;
  }
  PieView.prototype.render = function (seriesModel, ecModel, api, payload) {
    var data = seriesModel.getData();
    var oldData = this._data;
    var group = this.group;
    var startAngle;
    // First render
    if (!oldData && data.count() > 0) {
      var shape = data.getItemLayout(0);
      for (var s = 1; isNaN(shape && shape.startAngle) && s < data.count(); ++s) {
        shape = data.getItemLayout(s);
      }
      if (shape) {
        startAngle = shape.startAngle;
      }
    }
    // remove empty-circle if it exists
    if (this._emptyCircleSector) {
      group.remove(this._emptyCircleSector);
    }
    // when all data are filtered, show lightgray empty circle
    if (data.count() === 0 && seriesModel.get('showEmptyCircle')) {
      var layoutData = getSeriesLayoutData(seriesModel);
      var sector = new shape_Sector({
        shape: Object(util["extend"])(getBasicPieLayout(seriesModel, api), layoutData)
      });
      sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle());
      this._emptyCircleSector = sector;
      group.add(sector);
    }
    data.diff(oldData).add(function (idx) {
      var piePiece = new PieView_PiePiece(data, idx, startAngle);
      data.setItemGraphicEl(idx, piePiece);
      group.add(piePiece);
    }).update(function (newIdx, oldIdx) {
      var piePiece = oldData.getItemGraphicEl(oldIdx);
      piePiece.updateData(data, newIdx, startAngle);
      piePiece.off('click');
      group.add(piePiece);
      data.setItemGraphicEl(newIdx, piePiece);
    }).remove(function (idx) {
      var piePiece = oldData.getItemGraphicEl(idx);
      removeElementWithFadeOut(piePiece, seriesModel, idx);
    }).execute();
    pieLabelLayout(seriesModel);
    // Always use initial animation.
    if (seriesModel.get('animationTypeUpdate') !== 'expansion') {
      this._data = data;
    }
  };
  PieView.prototype.dispose = function () {};
  PieView.prototype.containPoint = function (point, seriesModel) {
    var data = seriesModel.getData();
    var itemLayout = data.getItemLayout(0);
    if (itemLayout) {
      var dx = point[0] - itemLayout.cx;
      var dy = point[1] - itemLayout.cy;
      var radius = Math.sqrt(dx * dx + dy * dy);
      return radius <= itemLayout.r && radius >= itemLayout.r0;
    }
  };
  PieView.type = 'pie';
  return PieView;
}(Chart);
/* harmony default export */ var pie_PieView = (PieView_PieView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



/**
 * [Usage]:
 * (1)
 * createListSimply(seriesModel, ['value']);
 * (2)
 * createListSimply(seriesModel, {
 *     coordDimensions: ['value'],
 *     dimensionsCount: 5
 * });
 */
function createSeriesDataSimply(seriesModel, opt, nameList) {
  opt = Object(util["isArray"])(opt) && {
    coordDimensions: opt
  } || Object(util["extend"])({
    encodeDefine: seriesModel.getEncode()
  }, opt);
  var source = seriesModel.getSource();
  var dimensions = prepareSeriesDataSchema(source, opt).dimensions;
  var list = new data_SeriesData(dimensions, seriesModel);
  list.initData(source, nameList);
  return list;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/LegendVisualProvider.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * LegendVisualProvider is an bridge that pick encoded color from data and
 * provide to the legend component.
 */
var LegendVisualProvider = /** @class */function () {
  function LegendVisualProvider(
  // Function to get data after filtered. It stores all the encoding info
  getDataWithEncodedVisual,
  // Function to get raw data before filtered.
  getRawData) {
    this._getDataWithEncodedVisual = getDataWithEncodedVisual;
    this._getRawData = getRawData;
  }
  LegendVisualProvider.prototype.getAllNames = function () {
    var rawData = this._getRawData();
    // We find the name from the raw data. In case it's filtered by the legend component.
    // Normally, the name can be found in rawData, but can't be found in filtered data will display as gray.
    return rawData.mapArray(rawData.getName);
  };
  LegendVisualProvider.prototype.containName = function (name) {
    var rawData = this._getRawData();
    return rawData.indexOfName(name) >= 0;
  };
  LegendVisualProvider.prototype.indexOfName = function (name) {
    // Only get data when necessary.
    // Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet.
    // Invoking Series#getData immediately will throw an error.
    var dataWithEncodedVisual = this._getDataWithEncodedVisual();
    return dataWithEncodedVisual.indexOfName(name);
  };
  LegendVisualProvider.prototype.getItemVisual = function (dataIndex, key) {
    // Get encoded visual properties from final filtered data.
    var dataWithEncodedVisual = this._getDataWithEncodedVisual();
    return dataWithEncodedVisual.getItemVisual(dataIndex, key);
  };
  return LegendVisualProvider;
}();
/* harmony default export */ var visual_LegendVisualProvider = (LegendVisualProvider);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/pie/PieSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var innerData = makeInner();
var PieSeries_PieSeriesModel = /** @class */function (_super) {
  __extends(PieSeriesModel, _super);
  function PieSeriesModel() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  /**
   * @overwrite
   */
  PieSeriesModel.prototype.init = function (option) {
    _super.prototype.init.apply(this, arguments);
    // Enable legend selection for each data item
    // Use a function instead of direct access because data reference may changed
    this.legendVisualProvider = new visual_LegendVisualProvider(util["bind"](this.getData, this), util["bind"](this.getRawData, this));
    this._defaultLabelLine(option);
  };
  /**
   * @overwrite
   */
  PieSeriesModel.prototype.mergeOption = function () {
    _super.prototype.mergeOption.apply(this, arguments);
  };
  /**
   * @overwrite
   */
  PieSeriesModel.prototype.getInitialData = function () {
    return createSeriesDataSimply(this, {
      coordDimensions: ['value'],
      encodeDefaulter: util["curry"](makeSeriesEncodeForNameBased, this)
    });
  };
  /**
   * @overwrite
   */
  PieSeriesModel.prototype.getDataParams = function (dataIndex) {
    var data = this.getData();
    // update seats when data is changed
    var dataInner = innerData(data);
    var seats = dataInner.seats;
    if (!seats) {
      var valueList_1 = [];
      data.each(data.mapDimension('value'), function (value) {
        valueList_1.push(value);
      });
      seats = dataInner.seats = getPercentSeats(valueList_1, data.hostModel.get('percentPrecision'));
    }
    var params = _super.prototype.getDataParams.call(this, dataIndex);
    // seats may be empty when sum is 0
    params.percent = seats[dataIndex] || 0;
    params.$vars.push('percent');
    return params;
  };
  PieSeriesModel.prototype._defaultLabelLine = function (option) {
    // Extend labelLine emphasis
    defaultEmphasis(option, 'labelLine', ['show']);
    var labelLineNormalOpt = option.labelLine;
    var labelLineEmphasisOpt = option.emphasis.labelLine;
    // Not show label line if `label.normal.show = false`
    labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;
    labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;
  };
  PieSeriesModel.type = 'series.pie';
  PieSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    legendHoverLink: true,
    colorBy: 'data',
    // 默认全局居中
    center: ['50%', '50%'],
    radius: [0, '75%'],
    // 默认顺时针
    clockwise: true,
    startAngle: 90,
    endAngle: 'auto',
    padAngle: 0,
    // 最小角度改为0
    minAngle: 0,
    // If the angle of a sector less than `minShowLabelAngle`,
    // the label will not be displayed.
    minShowLabelAngle: 0,
    // 选中时扇区偏移量
    selectedOffset: 10,
    // 选择模式，默认关闭，可选single，multiple
    // selectedMode: false,
    // 南丁格尔玫瑰图模式，'radius'（半径） | 'area'（面积）
    // roseType: null,
    percentPrecision: 2,
    // If still show when all data zero.
    stillShowZeroSum: true,
    // cursor: null,
    left: 0,
    top: 0,
    right: 0,
    bottom: 0,
    width: null,
    height: null,
    label: {
      // color: 'inherit',
      // If rotate around circle
      rotate: 0,
      show: true,
      overflow: 'truncate',
      // 'outer', 'inside', 'center'
      position: 'outer',
      // 'none', 'labelLine', 'edge'. Works only when position is 'outer'
      alignTo: 'none',
      // Closest distance between label and chart edge.
      // Works only position is 'outer' and alignTo is 'edge'.
      edgeDistance: '25%',
      // Works only position is 'outer' and alignTo is not 'edge'.
      bleedMargin: 10,
      // Distance between text and label line.
      distanceToLabelLine: 5
      // formatter: 标签文本格式器，同 tooltip.formatter，不支持异步回调
      // 默认使用全局文本样式，详见 textStyle
      // distance: 当position为inner时有效，为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数
    },
    // Enabled when label.normal.position is 'outer'
    labelLine: {
      show: true,
      // 引导线两段中的第一段长度
      length: 15,
      // 引导线两段中的第二段长度
      length2: 15,
      smooth: false,
      minTurnAngle: 90,
      maxSurfaceAngle: 90,
      lineStyle: {
        // color: 各异,
        width: 1,
        type: 'solid'
      }
    },
    itemStyle: {
      borderWidth: 1,
      borderJoin: 'round'
    },
    showEmptyCircle: true,
    emptyCircleStyle: {
      color: 'lightgray',
      opacity: 1
    },
    labelLayout: {
      // Hide the overlapped label.
      hideOverlap: true
    },
    emphasis: {
      scale: true,
      scaleSize: 5
    },
    // If use strategy to avoid label overlapping
    avoidLabelOverlap: true,
    // Animation type. Valid values: expansion, scale
    animationType: 'expansion',
    animationDuration: 1000,
    // Animation type when update. Valid values: transition, expansion
    animationTypeUpdate: 'transition',
    animationEasingUpdate: 'cubicInOut',
    animationDurationUpdate: 500,
    animationEasing: 'cubicInOut'
  };
  return PieSeriesModel;
}(Series);
/* harmony default export */ var PieSeries = (PieSeries_PieSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/processor/negativeDataFilter.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function negativeDataFilter(seriesType) {
  return {
    seriesType: seriesType,
    reset: function (seriesModel, ecModel) {
      var data = seriesModel.getData();
      data.filterSelf(function (idx) {
        // handle negative value condition
        var valueDim = data.mapDimension('value');
        var curValue = data.get(valueDim, idx);
        if (Object(util["isNumber"])(curValue) && !isNaN(curValue) && curValue < 0) {
          return false;
        }
        return true;
      });
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/pie/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







function pie_install_install(registers) {
  registers.registerChartView(pie_PieView);
  registers.registerSeriesModel(PieSeries);
  createLegacyDataSelectAction('pie', registers.registerAction);
  registers.registerLayout(Object(util["curry"])(pieLayout, 'pie'));
  registers.registerProcessor(dataFilter('pie'));
  registers.registerProcessor(negativeDataFilter('pie'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/scatter/ScatterSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var ScatterSeries_ScatterSeriesModel = /** @class */function (_super) {
  __extends(ScatterSeriesModel, _super);
  function ScatterSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ScatterSeriesModel.type;
    _this.hasSymbolVisual = true;
    return _this;
  }
  ScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return helper_createSeriesData(null, this, {
      useEncodeDefaulter: true
    });
  };
  ScatterSeriesModel.prototype.getProgressive = function () {
    var progressive = this.option.progressive;
    if (progressive == null) {
      // PENDING
      return this.option.large ? 5e3 : this.get('progressive');
    }
    return progressive;
  };
  ScatterSeriesModel.prototype.getProgressiveThreshold = function () {
    var progressiveThreshold = this.option.progressiveThreshold;
    if (progressiveThreshold == null) {
      // PENDING
      return this.option.large ? 1e4 : this.get('progressiveThreshold');
    }
    return progressiveThreshold;
  };
  ScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {
    return selectors.point(data.getItemLayout(dataIndex));
  };
  ScatterSeriesModel.prototype.getZLevelKey = function () {
    // Each progressive series has individual key.
    return this.getData().count() > this.getProgressiveThreshold() ? this.id : '';
  };
  ScatterSeriesModel.type = 'series.scatter';
  ScatterSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];
  ScatterSeriesModel.defaultOption = {
    coordinateSystem: 'cartesian2d',
    // zlevel: 0,
    z: 2,
    legendHoverLink: true,
    symbolSize: 10,
    // symbolRotate: null,  // 图形旋转控制
    large: false,
    // Available when large is true
    largeThreshold: 2000,
    // cursor: null,
    itemStyle: {
      opacity: 0.8
      // color: 各异
    },
    emphasis: {
      scale: true
    },
    // If clip the overflow graphics
    // Works on cartesian / polar series
    clip: true,
    select: {
      itemStyle: {
        borderColor: '#212121'
      }
    },
    universalTransition: {
      divideShape: 'clone'
    }
    // progressive: null
  };
  return ScatterSeriesModel;
}(Series);
/* harmony default export */ var ScatterSeries = (ScatterSeries_ScatterSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/* global Float32Array */
// TODO Batch by color



var BOOST_SIZE_THRESHOLD = 4;
var LargeSymbolPathShape = /** @class */function () {
  function LargeSymbolPathShape() {}
  return LargeSymbolPathShape;
}();
var LargeSymbolDraw_LargeSymbolPath = /** @class */function (_super) {
  __extends(LargeSymbolPath, _super);
  function LargeSymbolPath(opts) {
    var _this = _super.call(this, opts) || this;
    _this._off = 0;
    _this.hoverDataIdx = -1;
    return _this;
  }
  LargeSymbolPath.prototype.getDefaultShape = function () {
    return new LargeSymbolPathShape();
  };
  LargeSymbolPath.prototype.reset = function () {
    this.notClear = false;
    this._off = 0;
  };
  LargeSymbolPath.prototype.buildPath = function (path, shape) {
    var points = shape.points;
    var size = shape.size;
    var symbolProxy = this.symbolProxy;
    var symbolProxyShape = symbolProxy.shape;
    var ctx = path.getContext ? path.getContext() : path;
    var canBoost = ctx && size[0] < BOOST_SIZE_THRESHOLD;
    var softClipShape = this.softClipShape;
    var i;
    // Do draw in afterBrush.
    if (canBoost) {
      this._ctx = ctx;
      return;
    }
    this._ctx = null;
    for (i = this._off; i < points.length;) {
      var x = points[i++];
      var y = points[i++];
      if (isNaN(x) || isNaN(y)) {
        continue;
      }
      if (softClipShape && !softClipShape.contain(x, y)) {
        continue;
      }
      symbolProxyShape.x = x - size[0] / 2;
      symbolProxyShape.y = y - size[1] / 2;
      symbolProxyShape.width = size[0];
      symbolProxyShape.height = size[1];
      symbolProxy.buildPath(path, symbolProxyShape, true);
    }
    if (this.incremental) {
      this._off = i;
      this.notClear = true;
    }
  };
  LargeSymbolPath.prototype.afterBrush = function () {
    var shape = this.shape;
    var points = shape.points;
    var size = shape.size;
    var ctx = this._ctx;
    var softClipShape = this.softClipShape;
    var i;
    if (!ctx) {
      return;
    }
    // PENDING If style or other canvas status changed?
    for (i = this._off; i < points.length;) {
      var x = points[i++];
      var y = points[i++];
      if (isNaN(x) || isNaN(y)) {
        continue;
      }
      if (softClipShape && !softClipShape.contain(x, y)) {
        continue;
      }
      // fillRect is faster than building a rect path and draw.
      // And it support light globalCompositeOperation.
      ctx.fillRect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]);
    }
    if (this.incremental) {
      this._off = i;
      this.notClear = true;
    }
  };
  LargeSymbolPath.prototype.findDataIndex = function (x, y) {
    // TODO ???
    // Consider transform
    var shape = this.shape;
    var points = shape.points;
    var size = shape.size;
    var w = Math.max(size[0], 4);
    var h = Math.max(size[1], 4);
    // Not consider transform
    // Treat each element as a rect
    // top down traverse
    for (var idx = points.length / 2 - 1; idx >= 0; idx--) {
      var i = idx * 2;
      var x0 = points[i] - w / 2;
      var y0 = points[i + 1] - h / 2;
      if (x >= x0 && y >= y0 && x <= x0 + w && y <= y0 + h) {
        return idx;
      }
    }
    return -1;
  };
  LargeSymbolPath.prototype.contain = function (x, y) {
    var localPos = this.transformCoordToLocal(x, y);
    var rect = this.getBoundingRect();
    x = localPos[0];
    y = localPos[1];
    if (rect.contain(x, y)) {
      // Cache found data index.
      var dataIdx = this.hoverDataIdx = this.findDataIndex(x, y);
      return dataIdx >= 0;
    }
    this.hoverDataIdx = -1;
    return false;
  };
  LargeSymbolPath.prototype.getBoundingRect = function () {
    // Ignore stroke for large symbol draw.
    var rect = this._rect;
    if (!rect) {
      var shape = this.shape;
      var points = shape.points;
      var size = shape.size;
      var w = size[0];
      var h = size[1];
      var minX = Infinity;
      var minY = Infinity;
      var maxX = -Infinity;
      var maxY = -Infinity;
      for (var i = 0; i < points.length;) {
        var x = points[i++];
        var y = points[i++];
        minX = Math.min(x, minX);
        maxX = Math.max(x, maxX);
        minY = Math.min(y, minY);
        maxY = Math.max(y, maxY);
      }
      rect = this._rect = new core_BoundingRect(minX - w / 2, minY - h / 2, maxX - minX + w, maxY - minY + h);
    }
    return rect;
  };
  return LargeSymbolPath;
}(graphic_Path);
var LargeSymbolDraw_LargeSymbolDraw = /** @class */function () {
  function LargeSymbolDraw() {
    this.group = new graphic_Group();
  }
  /**
   * Update symbols draw by new data
   */
  LargeSymbolDraw.prototype.updateData = function (data, opt) {
    this._clear();
    var symbolEl = this._create();
    symbolEl.setShape({
      points: data.getLayout('points')
    });
    this._setCommon(symbolEl, data, opt);
  };
  LargeSymbolDraw.prototype.updateLayout = function (data) {
    var points = data.getLayout('points');
    this.group.eachChild(function (child) {
      if (child.startIndex != null) {
        var len = (child.endIndex - child.startIndex) * 2;
        var byteOffset = child.startIndex * 4 * 2;
        points = new Float32Array(points.buffer, byteOffset, len);
      }
      child.setShape('points', points);
      // Reset draw cursor.
      child.reset();
    });
  };
  LargeSymbolDraw.prototype.incrementalPrepareUpdate = function (data) {
    this._clear();
  };
  LargeSymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) {
    var lastAdded = this._newAdded[0];
    var points = data.getLayout('points');
    var oldPoints = lastAdded && lastAdded.shape.points;
    // Merging the exists. Each element has 1e4 points.
    // Consider the performance balance between too much elements and too much points in one shape(may affect hover optimization)
    if (oldPoints && oldPoints.length < 2e4) {
      var oldLen = oldPoints.length;
      var newPoints = new Float32Array(oldLen + points.length);
      // Concat two array
      newPoints.set(oldPoints);
      newPoints.set(points, oldLen);
      // Update endIndex
      lastAdded.endIndex = taskParams.end;
      lastAdded.setShape({
        points: newPoints
      });
    } else {
      // Clear
      this._newAdded = [];
      var symbolEl = this._create();
      symbolEl.startIndex = taskParams.start;
      symbolEl.endIndex = taskParams.end;
      symbolEl.incremental = true;
      symbolEl.setShape({
        points: points
      });
      this._setCommon(symbolEl, data, opt);
    }
  };
  LargeSymbolDraw.prototype.eachRendered = function (cb) {
    this._newAdded[0] && cb(this._newAdded[0]);
  };
  LargeSymbolDraw.prototype._create = function () {
    var symbolEl = new LargeSymbolDraw_LargeSymbolPath({
      cursor: 'default'
    });
    symbolEl.ignoreCoarsePointer = true;
    this.group.add(symbolEl);
    this._newAdded.push(symbolEl);
    return symbolEl;
  };
  LargeSymbolDraw.prototype._setCommon = function (symbolEl, data, opt) {
    var hostModel = data.hostModel;
    opt = opt || {};
    var size = data.getVisual('symbolSize');
    symbolEl.setShape('size', size instanceof Array ? size : [size, size]);
    symbolEl.softClipShape = opt.clipShape || null;
    // Create symbolProxy to build path for each data
    symbolEl.symbolProxy = symbol_createSymbol(data.getVisual('symbol'), 0, 0, 0, 0);
    // Use symbolProxy setColor method
    symbolEl.setColor = symbolEl.symbolProxy.setColor;
    var extrudeShadow = symbolEl.shape.size[0] < BOOST_SIZE_THRESHOLD;
    symbolEl.useStyle(
    // Draw shadow when doing fillRect is extremely slow.
    hostModel.getModel('itemStyle').getItemStyle(extrudeShadow ? ['color', 'shadowBlur', 'shadowColor'] : ['color']));
    var globalStyle = data.getVisual('style');
    var visualColor = globalStyle && globalStyle.fill;
    if (visualColor) {
      symbolEl.setColor(visualColor);
    }
    var ecData = getECData(symbolEl);
    // Enable tooltip
    // PENDING May have performance issue when path is extremely large
    ecData.seriesIndex = hostModel.seriesIndex;
    symbolEl.on('mousemove', function (e) {
      ecData.dataIndex = null;
      var dataIndex = symbolEl.hoverDataIdx;
      if (dataIndex >= 0) {
        // Provide dataIndex for tooltip
        ecData.dataIndex = dataIndex + (symbolEl.startIndex || 0);
      }
    });
  };
  LargeSymbolDraw.prototype.remove = function () {
    this._clear();
  };
  LargeSymbolDraw.prototype._clear = function () {
    this._newAdded = [];
    this.group.removeAll();
  };
  return LargeSymbolDraw;
}();
/* harmony default export */ var helper_LargeSymbolDraw = (LargeSymbolDraw_LargeSymbolDraw);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/scatter/ScatterView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var ScatterView_ScatterView = /** @class */function (_super) {
  __extends(ScatterView, _super);
  function ScatterView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ScatterView.type;
    return _this;
  }
  ScatterView.prototype.render = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var symbolDraw = this._updateSymbolDraw(data, seriesModel);
    symbolDraw.updateData(data, {
      // TODO
      // If this parameter should be a shape or a bounding volume
      // shape will be more general.
      // But bounding volume like bounding rect will be much faster in the contain calculation
      clipShape: this._getClipShape(seriesModel)
    });
    this._finished = true;
  };
  ScatterView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var symbolDraw = this._updateSymbolDraw(data, seriesModel);
    symbolDraw.incrementalPrepareUpdate(data);
    this._finished = false;
  };
  ScatterView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {
    this._symbolDraw.incrementalUpdate(taskParams, seriesModel.getData(), {
      clipShape: this._getClipShape(seriesModel)
    });
    this._finished = taskParams.end === seriesModel.getData().count();
  };
  ScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    // Must mark group dirty and make sure the incremental layer will be cleared
    // PENDING
    this.group.dirty();
    if (!this._finished || data.count() > 1e4) {
      return {
        update: true
      };
    } else {
      var res = pointsLayout('').reset(seriesModel, ecModel, api);
      if (res.progress) {
        res.progress({
          start: 0,
          end: data.count(),
          count: data.count()
        }, data);
      }
      this._symbolDraw.updateLayout(data);
    }
  };
  ScatterView.prototype.eachRendered = function (cb) {
    this._symbolDraw && this._symbolDraw.eachRendered(cb);
  };
  ScatterView.prototype._getClipShape = function (seriesModel) {
    if (!seriesModel.get('clip', true)) {
      return;
    }
    var coordSys = seriesModel.coordinateSystem;
    // PENDING make `0.1` configurable, for example, `clipTolerance`?
    return coordSys && coordSys.getArea && coordSys.getArea(.1);
  };
  ScatterView.prototype._updateSymbolDraw = function (data, seriesModel) {
    var symbolDraw = this._symbolDraw;
    var pipelineContext = seriesModel.pipelineContext;
    var isLargeDraw = pipelineContext.large;
    if (!symbolDraw || isLargeDraw !== this._isLargeDraw) {
      symbolDraw && symbolDraw.remove();
      symbolDraw = this._symbolDraw = isLargeDraw ? new helper_LargeSymbolDraw() : new helper_SymbolDraw();
      this._isLargeDraw = isLargeDraw;
      this.group.removeAll();
    }
    this.group.add(symbolDraw.group);
    return symbolDraw;
  };
  ScatterView.prototype.remove = function (ecModel, api) {
    this._symbolDraw && this._symbolDraw.remove(true);
    this._symbolDraw = null;
  };
  ScatterView.prototype.dispose = function () {};
  ScatterView.type = 'scatter';
  return ScatterView;
}(Chart);
/* harmony default export */ var scatter_ScatterView = (ScatterView_ScatterView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/GridModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var GridModel_GridModel = /** @class */function (_super) {
  __extends(GridModel, _super);
  function GridModel() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  GridModel.type = 'grid';
  GridModel.dependencies = ['xAxis', 'yAxis'];
  GridModel.layoutMode = 'box';
  GridModel.defaultOption = {
    show: false,
    // zlevel: 0,
    z: 0,
    left: '10%',
    top: 60,
    right: '10%',
    bottom: 70,
    // If grid size contain label
    containLabel: false,
    // width: {totalWidth} - left - right,
    // height: {totalHeight} - top - bottom,
    backgroundColor: 'rgba(0,0,0,0)',
    borderWidth: 1,
    borderColor: '#ccc'
  };
  return GridModel;
}(Component);
/* harmony default export */ var cartesian_GridModel = (GridModel_GridModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/AxisModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var AxisModel_CartesianAxisModel = /** @class */function (_super) {
  __extends(CartesianAxisModel, _super);
  function CartesianAxisModel() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  CartesianAxisModel.prototype.getCoordSysModel = function () {
    return this.getReferringComponents('grid', SINGLE_REFERRING).models[0];
  };
  CartesianAxisModel.type = 'cartesian2dAxis';
  return CartesianAxisModel;
}(Component);

util["mixin"](AxisModel_CartesianAxisModel, AxisModelCommonMixin);
/* harmony default export */ var cartesian_AxisModel = (AxisModel_CartesianAxisModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisDefault.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var axisDefault_defaultOption = {
  show: true,
  // zlevel: 0,
  z: 0,
  // Inverse the axis.
  inverse: false,
  // Axis name displayed.
  name: '',
  // 'start' | 'middle' | 'end'
  nameLocation: 'end',
  // By degree. By default auto rotate by nameLocation.
  nameRotate: null,
  nameTruncate: {
    maxWidth: null,
    ellipsis: '...',
    placeholder: '.'
  },
  // Use global text style by default.
  nameTextStyle: {},
  // The gap between axisName and axisLine.
  nameGap: 15,
  // Default `false` to support tooltip.
  silent: false,
  // Default `false` to avoid legacy user event listener fail.
  triggerEvent: false,
  tooltip: {
    show: false
  },
  axisPointer: {},
  axisLine: {
    show: true,
    onZero: true,
    onZeroAxisIndex: null,
    lineStyle: {
      color: '#6E7079',
      width: 1,
      type: 'solid'
    },
    // The arrow at both ends the the axis.
    symbol: ['none', 'none'],
    symbolSize: [10, 15]
  },
  axisTick: {
    show: true,
    // Whether axisTick is inside the grid or outside the grid.
    inside: false,
    // The length of axisTick.
    length: 5,
    lineStyle: {
      width: 1
    }
  },
  axisLabel: {
    show: true,
    // Whether axisLabel is inside the grid or outside the grid.
    inside: false,
    rotate: 0,
    // true | false | null/undefined (auto)
    showMinLabel: null,
    // true | false | null/undefined (auto)
    showMaxLabel: null,
    margin: 8,
    // formatter: null,
    fontSize: 12
  },
  splitLine: {
    show: true,
    showMinLine: true,
    showMaxLine: true,
    lineStyle: {
      color: ['#E0E6F1'],
      width: 1,
      type: 'solid'
    }
  },
  splitArea: {
    show: false,
    areaStyle: {
      color: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)']
    }
  }
};
var axisDefault_categoryAxis = util["merge"]({
  // The gap at both ends of the axis. For categoryAxis, boolean.
  boundaryGap: true,
  // Set false to faster category collection.
  deduplication: null,
  // splitArea: {
  // show: false
  // },
  splitLine: {
    show: false
  },
  axisTick: {
    // If tick is align with label when boundaryGap is true
    alignWithLabel: false,
    interval: 'auto'
  },
  axisLabel: {
    interval: 'auto'
  }
}, axisDefault_defaultOption);
var axisDefault_valueAxis = util["merge"]({
  boundaryGap: [0, 0],
  axisLine: {
    // Not shown when other axis is categoryAxis in cartesian
    show: 'auto'
  },
  axisTick: {
    // Not shown when other axis is categoryAxis in cartesian
    show: 'auto'
  },
  // TODO
  // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]
  splitNumber: 5,
  minorTick: {
    // Minor tick, not available for cateogry axis.
    show: false,
    // Split number of minor ticks. The value should be in range of (0, 100)
    splitNumber: 5,
    // Length of minor tick
    length: 3,
    // Line style
    lineStyle: {
      // Default to be same with axisTick
    }
  },
  minorSplitLine: {
    show: false,
    lineStyle: {
      color: '#F4F7FD',
      width: 1
    }
  }
}, axisDefault_defaultOption);
var timeAxis = util["merge"]({
  splitNumber: 6,
  axisLabel: {
    // To eliminate labels that are not nice
    showMinLabel: false,
    showMaxLabel: false,
    rich: {
      primary: {
        fontWeight: 'bold'
      }
    }
  },
  splitLine: {
    show: false
  }
}, axisDefault_valueAxis);
var logAxis = util["defaults"]({
  logBase: 10
}, axisDefault_valueAxis);
/* harmony default export */ var axisDefault = ({
  category: axisDefault_categoryAxis,
  value: axisDefault_valueAxis,
  time: timeAxis,
  log: logAxis
});
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisCommonTypes.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var AXIS_TYPES = {
  value: 1,
  category: 1,
  time: 1,
  log: 1
};
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisModelCreator.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






/**
 * Generate sub axis model class
 * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ...
 */
function axisModelCreator(registers, axisName, BaseAxisModelClass, extraDefaultOption) {
  Object(util["each"])(AXIS_TYPES, function (v, axisType) {
    var defaultOption = Object(util["merge"])(Object(util["merge"])({}, axisDefault[axisType], true), extraDefaultOption, true);
    var AxisModel = /** @class */function (_super) {
      __extends(AxisModel, _super);
      function AxisModel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.type = axisName + 'Axis.' + axisType;
        return _this;
      }
      AxisModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {
        var layoutMode = fetchLayoutMode(this);
        var inputPositionParams = layoutMode ? getLayoutParams(option) : {};
        var themeModel = ecModel.getTheme();
        Object(util["merge"])(option, themeModel.get(axisType + 'Axis'));
        Object(util["merge"])(option, this.getDefaultOption());
        option.type = getAxisType(option);
        if (layoutMode) {
          mergeLayoutParam(option, inputPositionParams, layoutMode);
        }
      };
      AxisModel.prototype.optionUpdated = function () {
        var thisOption = this.option;
        if (thisOption.type === 'category') {
          this.__ordinalMeta = data_OrdinalMeta.createByAxisModel(this);
        }
      };
      /**
       * Should not be called before all of 'getInitailData' finished.
       * Because categories are collected during initializing data.
       */
      AxisModel.prototype.getCategories = function (rawData) {
        var option = this.option;
        // FIXME
        // warning if called before all of 'getInitailData' finished.
        if (option.type === 'category') {
          if (rawData) {
            return option.data;
          }
          return this.__ordinalMeta.categories;
        }
      };
      AxisModel.prototype.getOrdinalMeta = function () {
        return this.__ordinalMeta;
      };
      AxisModel.type = axisName + 'Axis.' + axisType;
      AxisModel.defaultOption = defaultOption;
      return AxisModel;
    }(BaseAxisModelClass);
    registers.registerComponentModel(AxisModel);
  });
  registers.registerSubTypeDefaulter(axisName + 'Axis', getAxisType);
}
function getAxisType(option) {
  // Default axis with data is category axis
  return option.type || (option.data ? 'category' : 'value');
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/Cartesian.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var Cartesian_Cartesian = /** @class */function () {
  function Cartesian(name) {
    this.type = 'cartesian';
    this._dimList = [];
    this._axes = {};
    this.name = name || '';
  }
  Cartesian.prototype.getAxis = function (dim) {
    return this._axes[dim];
  };
  Cartesian.prototype.getAxes = function () {
    return util["map"](this._dimList, function (dim) {
      return this._axes[dim];
    }, this);
  };
  Cartesian.prototype.getAxesByScale = function (scaleType) {
    scaleType = scaleType.toLowerCase();
    return util["filter"](this.getAxes(), function (axis) {
      return axis.scale.type === scaleType;
    });
  };
  Cartesian.prototype.addAxis = function (axis) {
    var dim = axis.dim;
    this._axes[dim] = axis;
    this._dimList.push(dim);
  };
  return Cartesian;
}();
;
/* harmony default export */ var cartesian_Cartesian = (Cartesian_Cartesian);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/Cartesian2D.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var cartesian2DDimensions = ['x', 'y'];
function canCalculateAffineTransform(scale) {
  return scale.type === 'interval' || scale.type === 'time';
}
var Cartesian2D_Cartesian2D = /** @class */function (_super) {
  __extends(Cartesian2D, _super);
  function Cartesian2D() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = 'cartesian2d';
    _this.dimensions = cartesian2DDimensions;
    return _this;
  }
  /**
   * Calculate an affine transform matrix if two axes are time or value.
   * It's mainly for accelartion on the large time series data.
   */
  Cartesian2D.prototype.calcAffineTransform = function () {
    this._transform = this._invTransform = null;
    var xAxisScale = this.getAxis('x').scale;
    var yAxisScale = this.getAxis('y').scale;
    if (!canCalculateAffineTransform(xAxisScale) || !canCalculateAffineTransform(yAxisScale)) {
      return;
    }
    var xScaleExtent = xAxisScale.getExtent();
    var yScaleExtent = yAxisScale.getExtent();
    var start = this.dataToPoint([xScaleExtent[0], yScaleExtent[0]]);
    var end = this.dataToPoint([xScaleExtent[1], yScaleExtent[1]]);
    var xScaleSpan = xScaleExtent[1] - xScaleExtent[0];
    var yScaleSpan = yScaleExtent[1] - yScaleExtent[0];
    if (!xScaleSpan || !yScaleSpan) {
      return;
    }
    // Accelerate data to point calculation on the special large time series data.
    var scaleX = (end[0] - start[0]) / xScaleSpan;
    var scaleY = (end[1] - start[1]) / yScaleSpan;
    var translateX = start[0] - xScaleExtent[0] * scaleX;
    var translateY = start[1] - yScaleExtent[0] * scaleY;
    var m = this._transform = [scaleX, 0, 0, scaleY, translateX, translateY];
    this._invTransform = matrix_invert([], m);
  };
  /**
   * Base axis will be used on stacking.
   */
  Cartesian2D.prototype.getBaseAxis = function () {
    return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAxis('x');
  };
  Cartesian2D.prototype.containPoint = function (point) {
    var axisX = this.getAxis('x');
    var axisY = this.getAxis('y');
    return axisX.contain(axisX.toLocalCoord(point[0])) && axisY.contain(axisY.toLocalCoord(point[1]));
  };
  Cartesian2D.prototype.containData = function (data) {
    return this.getAxis('x').containData(data[0]) && this.getAxis('y').containData(data[1]);
  };
  Cartesian2D.prototype.containZone = function (data1, data2) {
    var zoneDiag1 = this.dataToPoint(data1);
    var zoneDiag2 = this.dataToPoint(data2);
    var area = this.getArea();
    var zone = new core_BoundingRect(zoneDiag1[0], zoneDiag1[1], zoneDiag2[0] - zoneDiag1[0], zoneDiag2[1] - zoneDiag1[1]);
    return area.intersect(zone);
  };
  Cartesian2D.prototype.dataToPoint = function (data, clamp, out) {
    out = out || [];
    var xVal = data[0];
    var yVal = data[1];
    // Fast path
    if (this._transform
    // It's supported that if data is like `[Inifity, 123]`, where only Y pixel calculated.
    && xVal != null && isFinite(xVal) && yVal != null && isFinite(yVal)) {
      return applyTransform(out, data, this._transform);
    }
    var xAxis = this.getAxis('x');
    var yAxis = this.getAxis('y');
    out[0] = xAxis.toGlobalCoord(xAxis.dataToCoord(xVal, clamp));
    out[1] = yAxis.toGlobalCoord(yAxis.dataToCoord(yVal, clamp));
    return out;
  };
  Cartesian2D.prototype.clampData = function (data, out) {
    var xScale = this.getAxis('x').scale;
    var yScale = this.getAxis('y').scale;
    var xAxisExtent = xScale.getExtent();
    var yAxisExtent = yScale.getExtent();
    var x = xScale.parse(data[0]);
    var y = yScale.parse(data[1]);
    out = out || [];
    out[0] = Math.min(Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x), Math.max(xAxisExtent[0], xAxisExtent[1]));
    out[1] = Math.min(Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y), Math.max(yAxisExtent[0], yAxisExtent[1]));
    return out;
  };
  Cartesian2D.prototype.pointToData = function (point, clamp) {
    var out = [];
    if (this._invTransform) {
      return applyTransform(out, point, this._invTransform);
    }
    var xAxis = this.getAxis('x');
    var yAxis = this.getAxis('y');
    out[0] = xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp);
    out[1] = yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp);
    return out;
  };
  Cartesian2D.prototype.getOtherAxis = function (axis) {
    return this.getAxis(axis.dim === 'x' ? 'y' : 'x');
  };
  /**
   * Get rect area of cartesian.
   * Area will have a contain function to determine if a point is in the coordinate system.
   */
  Cartesian2D.prototype.getArea = function (tolerance) {
    tolerance = tolerance || 0;
    var xExtent = this.getAxis('x').getGlobalExtent();
    var yExtent = this.getAxis('y').getGlobalExtent();
    var x = Math.min(xExtent[0], xExtent[1]) - tolerance;
    var y = Math.min(yExtent[0], yExtent[1]) - tolerance;
    var width = Math.max(xExtent[0], xExtent[1]) - x + tolerance;
    var height = Math.max(yExtent[0], yExtent[1]) - y + tolerance;
    return new core_BoundingRect(x, y, width, height);
  };
  return Cartesian2D;
}(cartesian_Cartesian);
;
/* harmony default export */ var cartesian_Cartesian2D = (Cartesian2D_Cartesian2D);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/Axis2D.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var Axis2D_Axis2D = /** @class */function (_super) {
  __extends(Axis2D, _super);
  function Axis2D(dim, scale, coordExtent, axisType, position) {
    var _this = _super.call(this, dim, scale, coordExtent) || this;
    /**
     * Index of axis, can be used as key
     * Injected outside.
     */
    _this.index = 0;
    _this.type = axisType || 'value';
    _this.position = position || 'bottom';
    return _this;
  }
  Axis2D.prototype.isHorizontal = function () {
    var position = this.position;
    return position === 'top' || position === 'bottom';
  };
  /**
   * Each item cooresponds to this.getExtent(), which
   * means globalExtent[0] may greater than globalExtent[1],
   * unless `asc` is input.
   *
   * @param {boolean} [asc]
   * @return {Array.<number>}
   */
  Axis2D.prototype.getGlobalExtent = function (asc) {
    var ret = this.getExtent();
    ret[0] = this.toGlobalCoord(ret[0]);
    ret[1] = this.toGlobalCoord(ret[1]);
    asc && ret[0] > ret[1] && ret.reverse();
    return ret;
  };
  Axis2D.prototype.pointToData = function (point, clamp) {
    return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp);
  };
  /**
   * Set ordinalSortInfo
   * @param info new OrdinalSortInfo
   */
  Axis2D.prototype.setCategorySortInfo = function (info) {
    if (this.type !== 'category') {
      return false;
    }
    this.model.option.categorySortInfo = info;
    this.scale.setSortInfo(info);
  };
  return Axis2D;
}(coord_Axis);
/* harmony default export */ var cartesian_Axis2D = (Axis2D_Axis2D);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * Can only be called after coordinate system creation stage.
 * (Can be called before coordinate system update stage).
 */
function cartesianAxisHelper_layout(gridModel, axisModel, opt) {
  opt = opt || {};
  var grid = gridModel.coordinateSystem;
  var axis = axisModel.axis;
  var layout = {};
  var otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0];
  var rawAxisPosition = axis.position;
  var axisPosition = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition;
  var axisDim = axis.dim;
  var rect = grid.getRect();
  var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];
  var idx = {
    left: 0,
    right: 1,
    top: 0,
    bottom: 1,
    onZero: 2
  };
  var axisOffset = axisModel.get('offset') || 0;
  var posBound = axisDim === 'x' ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset] : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];
  if (otherAxisOnZeroOf) {
    var onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0));
    posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);
  }
  // Axis position
  layout.position = [axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0], axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]];
  // Axis rotation
  layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1);
  // Tick and label direction, x y is axisDim
  var dirMap = {
    top: -1,
    bottom: 1,
    left: -1,
    right: 1
  };
  layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];
  layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0;
  if (axisModel.get(['axisTick', 'inside'])) {
    layout.tickDirection = -layout.tickDirection;
  }
  if (util["retrieve"](opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {
    layout.labelDirection = -layout.labelDirection;
  }
  // Special label rotation
  var labelRotate = axisModel.get(['axisLabel', 'rotate']);
  layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate;
  // Over splitLine and splitArea
  layout.z2 = 1;
  return layout;
}
function isCartesian2DSeries(seriesModel) {
  return seriesModel.get('coordinateSystem') === 'cartesian2d';
}
function findAxisModels(seriesModel) {
  var axisModelMap = {
    xAxisModel: null,
    yAxisModel: null
  };
  util["each"](axisModelMap, function (v, key) {
    var axisType = key.replace(/Model$/, '');
    var axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];
    if (false) {}
    axisModelMap[key] = axisModel;
  });
  return axisModelMap;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisAlignTicks.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var axisAlignTicks_mathLog = Math.log;
function alignScaleTicks(scale, axisModel, alignToScale) {
  var intervalScaleProto = Interval.prototype;
  // NOTE: There is a precondition for log scale  here:
  // In log scale we store _interval and _extent of exponent value.
  // So if we use the method of InternalScale to set/get these data.
  // It process the exponent value, which is linear and what we want here.
  var alignToTicks = intervalScaleProto.getTicks.call(alignToScale);
  var alignToNicedTicks = intervalScaleProto.getTicks.call(alignToScale, true);
  var alignToSplitNumber = alignToTicks.length - 1;
  var alignToInterval = intervalScaleProto.getInterval.call(alignToScale);
  var scaleExtent = getScaleExtent(scale, axisModel);
  var rawExtent = scaleExtent.extent;
  var isMinFixed = scaleExtent.fixMin;
  var isMaxFixed = scaleExtent.fixMax;
  if (scale.type === 'log') {
    var logBase = axisAlignTicks_mathLog(scale.base);
    rawExtent = [axisAlignTicks_mathLog(rawExtent[0]) / logBase, axisAlignTicks_mathLog(rawExtent[1]) / logBase];
  }
  scale.setExtent(rawExtent[0], rawExtent[1]);
  scale.calcNiceExtent({
    splitNumber: alignToSplitNumber,
    fixMin: isMinFixed,
    fixMax: isMaxFixed
  });
  var extent = intervalScaleProto.getExtent.call(scale);
  // Need to update the rawExtent.
  // Because value in rawExtent may be not parsed. e.g. 'dataMin', 'dataMax'
  if (isMinFixed) {
    rawExtent[0] = extent[0];
  }
  if (isMaxFixed) {
    rawExtent[1] = extent[1];
  }
  var interval = intervalScaleProto.getInterval.call(scale);
  var min = rawExtent[0];
  var max = rawExtent[1];
  if (isMinFixed && isMaxFixed) {
    // User set min, max, divide to get new interval
    interval = (max - min) / alignToSplitNumber;
  } else if (isMinFixed) {
    max = rawExtent[0] + interval * alignToSplitNumber;
    // User set min, expand extent on the other side
    while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1])) {
      interval = increaseInterval(interval);
      max = rawExtent[0] + interval * alignToSplitNumber;
    }
  } else if (isMaxFixed) {
    // User set max, expand extent on the other side
    min = rawExtent[1] - interval * alignToSplitNumber;
    while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0])) {
      interval = increaseInterval(interval);
      min = rawExtent[1] - interval * alignToSplitNumber;
    }
  } else {
    var nicedSplitNumber = scale.getTicks().length - 1;
    if (nicedSplitNumber > alignToSplitNumber) {
      interval = increaseInterval(interval);
    }
    var range = interval * alignToSplitNumber;
    max = Math.ceil(rawExtent[1] / interval) * interval;
    min = round(max - range);
    // Not change the result that crossing zero.
    if (min < 0 && rawExtent[0] >= 0) {
      min = 0;
      max = round(range);
    } else if (max > 0 && rawExtent[1] <= 0) {
      max = 0;
      min = -round(range);
    }
  }
  // Adjust min, max based on the extent of alignTo. When min or max is set in alignTo scale
  var t0 = (alignToTicks[0].value - alignToNicedTicks[0].value) / alignToInterval;
  var t1 = (alignToTicks[alignToSplitNumber].value - alignToNicedTicks[alignToSplitNumber].value) / alignToInterval;
  // NOTE: Must in setExtent -> setInterval -> setNiceExtent order.
  intervalScaleProto.setExtent.call(scale, min + interval * t0, max + interval * t1);
  intervalScaleProto.setInterval.call(scale, interval);
  if (t0 || t1) {
    intervalScaleProto.setNiceExtent.call(scale, min + interval, max - interval);
  }
  if (false) { var ticks; }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/Grid.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Grid is a region which contains at most 4 cartesian systems
 *
 * TODO Default cartesian
 */









var Grid_Grid = /** @class */function () {
  function Grid(gridModel, ecModel, api) {
    // FIXME:TS where used (different from registered type 'cartesian2d')?
    this.type = 'grid';
    this._coordsMap = {};
    this._coordsList = [];
    this._axesMap = {};
    this._axesList = [];
    this.axisPointerEnabled = true;
    this.dimensions = cartesian2DDimensions;
    this._initCartesian(gridModel, ecModel, api);
    this.model = gridModel;
  }
  Grid.prototype.getRect = function () {
    return this._rect;
  };
  Grid.prototype.update = function (ecModel, api) {
    var axesMap = this._axesMap;
    this._updateScale(ecModel, this.model);
    function updateAxisTicks(axes) {
      var alignTo;
      // Axis is added in order of axisIndex.
      var axesIndices = Object(util["keys"])(axes);
      var len = axesIndices.length;
      if (!len) {
        return;
      }
      var axisNeedsAlign = [];
      // Process once and calculate the ticks for those don't use alignTicks.
      for (var i = len - 1; i >= 0; i--) {
        var idx = +axesIndices[i]; // Convert to number.
        var axis = axes[idx];
        var model = axis.model;
        var scale = axis.scale;
        if (
        // Only value and log axis without interval support alignTicks.
        isIntervalOrLogScale(scale) && model.get('alignTicks') && model.get('interval') == null) {
          axisNeedsAlign.push(axis);
        } else {
          niceScaleExtent(scale, model);
          if (isIntervalOrLogScale(scale)) {
            // Can only align to interval or log axis.
            alignTo = axis;
          }
        }
      }
      ;
      // All axes has set alignTicks. Pick the first one.
      // PENDING. Should we find the axis that both set interval, min, max and align to this one?
      if (axisNeedsAlign.length) {
        if (!alignTo) {
          alignTo = axisNeedsAlign.pop();
          niceScaleExtent(alignTo.scale, alignTo.model);
        }
        Object(util["each"])(axisNeedsAlign, function (axis) {
          alignScaleTicks(axis.scale, axis.model, alignTo.scale);
        });
      }
    }
    updateAxisTicks(axesMap.x);
    updateAxisTicks(axesMap.y);
    // Key: axisDim_axisIndex, value: boolean, whether onZero target.
    var onZeroRecords = {};
    Object(util["each"])(axesMap.x, function (xAxis) {
      fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords);
    });
    Object(util["each"])(axesMap.y, function (yAxis) {
      fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords);
    });
    // Resize again if containLabel is enabled
    // FIXME It may cause getting wrong grid size in data processing stage
    this.resize(this.model, api);
  };
  /**
   * Resize the grid
   */
  Grid.prototype.resize = function (gridModel, api, ignoreContainLabel) {
    var boxLayoutParams = gridModel.getBoxLayoutParams();
    var isContainLabel = !ignoreContainLabel && gridModel.get('containLabel');
    var gridRect = getLayoutRect(boxLayoutParams, {
      width: api.getWidth(),
      height: api.getHeight()
    });
    this._rect = gridRect;
    var axesList = this._axesList;
    adjustAxes();
    // Minus label size
    if (isContainLabel) {
      Object(util["each"])(axesList, function (axis) {
        if (!axis.model.get(['axisLabel', 'inside'])) {
          var labelUnionRect = estimateLabelUnionRect(axis);
          if (labelUnionRect) {
            var dim = axis.isHorizontal() ? 'height' : 'width';
            var margin = axis.model.get(['axisLabel', 'margin']);
            gridRect[dim] -= labelUnionRect[dim] + margin;
            if (axis.position === 'top') {
              gridRect.y += labelUnionRect.height + margin;
            } else if (axis.position === 'left') {
              gridRect.x += labelUnionRect.width + margin;
            }
          }
        }
      });
      adjustAxes();
    }
    Object(util["each"])(this._coordsList, function (coord) {
      // Calculate affine matrix to accelerate the data to point transform.
      // If all the axes scales are time or value.
      coord.calcAffineTransform();
    });
    function adjustAxes() {
      Object(util["each"])(axesList, function (axis) {
        var isHorizontal = axis.isHorizontal();
        var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];
        var idx = axis.inverse ? 1 : 0;
        axis.setExtent(extent[idx], extent[1 - idx]);
        updateAxisTransform(axis, isHorizontal ? gridRect.x : gridRect.y);
      });
    }
  };
  Grid.prototype.getAxis = function (dim, axisIndex) {
    var axesMapOnDim = this._axesMap[dim];
    if (axesMapOnDim != null) {
      return axesMapOnDim[axisIndex || 0];
    }
  };
  Grid.prototype.getAxes = function () {
    return this._axesList.slice();
  };
  Grid.prototype.getCartesian = function (xAxisIndex, yAxisIndex) {
    if (xAxisIndex != null && yAxisIndex != null) {
      var key = 'x' + xAxisIndex + 'y' + yAxisIndex;
      return this._coordsMap[key];
    }
    if (Object(util["isObject"])(xAxisIndex)) {
      yAxisIndex = xAxisIndex.yAxisIndex;
      xAxisIndex = xAxisIndex.xAxisIndex;
    }
    for (var i = 0, coordList = this._coordsList; i < coordList.length; i++) {
      if (coordList[i].getAxis('x').index === xAxisIndex || coordList[i].getAxis('y').index === yAxisIndex) {
        return coordList[i];
      }
    }
  };
  Grid.prototype.getCartesians = function () {
    return this._coordsList.slice();
  };
  /**
   * @implements
   */
  Grid.prototype.convertToPixel = function (ecModel, finder, value) {
    var target = this._findConvertTarget(finder);
    return target.cartesian ? target.cartesian.dataToPoint(value) : target.axis ? target.axis.toGlobalCoord(target.axis.dataToCoord(value)) : null;
  };
  /**
   * @implements
   */
  Grid.prototype.convertFromPixel = function (ecModel, finder, value) {
    var target = this._findConvertTarget(finder);
    return target.cartesian ? target.cartesian.pointToData(value) : target.axis ? target.axis.coordToData(target.axis.toLocalCoord(value)) : null;
  };
  Grid.prototype._findConvertTarget = function (finder) {
    var seriesModel = finder.seriesModel;
    var xAxisModel = finder.xAxisModel || seriesModel && seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0];
    var yAxisModel = finder.yAxisModel || seriesModel && seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0];
    var gridModel = finder.gridModel;
    var coordsList = this._coordsList;
    var cartesian;
    var axis;
    if (seriesModel) {
      cartesian = seriesModel.coordinateSystem;
      Object(util["indexOf"])(coordsList, cartesian) < 0 && (cartesian = null);
    } else if (xAxisModel && yAxisModel) {
      cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
    } else if (xAxisModel) {
      axis = this.getAxis('x', xAxisModel.componentIndex);
    } else if (yAxisModel) {
      axis = this.getAxis('y', yAxisModel.componentIndex);
    }
    // Lowest priority.
    else if (gridModel) {
      var grid = gridModel.coordinateSystem;
      if (grid === this) {
        cartesian = this._coordsList[0];
      }
    }
    return {
      cartesian: cartesian,
      axis: axis
    };
  };
  /**
   * @implements
   */
  Grid.prototype.containPoint = function (point) {
    var coord = this._coordsList[0];
    if (coord) {
      return coord.containPoint(point);
    }
  };
  /**
   * Initialize cartesian coordinate systems
   */
  Grid.prototype._initCartesian = function (gridModel, ecModel, api) {
    var _this = this;
    var grid = this;
    var axisPositionUsed = {
      left: false,
      right: false,
      top: false,
      bottom: false
    };
    var axesMap = {
      x: {},
      y: {}
    };
    var axesCount = {
      x: 0,
      y: 0
    };
    // Create axis
    ecModel.eachComponent('xAxis', createAxisCreator('x'), this);
    ecModel.eachComponent('yAxis', createAxisCreator('y'), this);
    if (!axesCount.x || !axesCount.y) {
      // Roll back when there no either x or y axis
      this._axesMap = {};
      this._axesList = [];
      return;
    }
    this._axesMap = axesMap;
    // Create cartesian2d
    Object(util["each"])(axesMap.x, function (xAxis, xAxisIndex) {
      Object(util["each"])(axesMap.y, function (yAxis, yAxisIndex) {
        var key = 'x' + xAxisIndex + 'y' + yAxisIndex;
        var cartesian = new cartesian_Cartesian2D(key);
        cartesian.master = _this;
        cartesian.model = gridModel;
        _this._coordsMap[key] = cartesian;
        _this._coordsList.push(cartesian);
        cartesian.addAxis(xAxis);
        cartesian.addAxis(yAxis);
      });
    });
    function createAxisCreator(dimName) {
      return function (axisModel, idx) {
        if (!isAxisUsedInTheGrid(axisModel, gridModel)) {
          return;
        }
        var axisPosition = axisModel.get('position');
        if (dimName === 'x') {
          // Fix position
          if (axisPosition !== 'top' && axisPosition !== 'bottom') {
            // Default bottom of X
            axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom';
          }
        } else {
          // Fix position
          if (axisPosition !== 'left' && axisPosition !== 'right') {
            // Default left of Y
            axisPosition = axisPositionUsed.left ? 'right' : 'left';
          }
        }
        axisPositionUsed[axisPosition] = true;
        var axis = new cartesian_Axis2D(dimName, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisPosition);
        var isCategory = axis.type === 'category';
        axis.onBand = isCategory && axisModel.get('boundaryGap');
        axis.inverse = axisModel.get('inverse');
        // Inject axis into axisModel
        axisModel.axis = axis;
        // Inject axisModel into axis
        axis.model = axisModel;
        // Inject grid info axis
        axis.grid = grid;
        // Index of axis, can be used as key
        axis.index = idx;
        grid._axesList.push(axis);
        axesMap[dimName][idx] = axis;
        axesCount[dimName]++;
      };
    }
  };
  /**
   * Update cartesian properties from series.
   */
  Grid.prototype._updateScale = function (ecModel, gridModel) {
    // Reset scale
    Object(util["each"])(this._axesList, function (axis) {
      axis.scale.setExtent(Infinity, -Infinity);
      if (axis.type === 'category') {
        var categorySortInfo = axis.model.get('categorySortInfo');
        axis.scale.setSortInfo(categorySortInfo);
      }
    });
    ecModel.eachSeries(function (seriesModel) {
      if (isCartesian2DSeries(seriesModel)) {
        var axesModelMap = findAxisModels(seriesModel);
        var xAxisModel = axesModelMap.xAxisModel;
        var yAxisModel = axesModelMap.yAxisModel;
        if (!isAxisUsedInTheGrid(xAxisModel, gridModel) || !isAxisUsedInTheGrid(yAxisModel, gridModel)) {
          return;
        }
        var cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
        var data = seriesModel.getData();
        var xAxis = cartesian.getAxis('x');
        var yAxis = cartesian.getAxis('y');
        unionExtent(data, xAxis);
        unionExtent(data, yAxis);
      }
    }, this);
    function unionExtent(data, axis) {
      Object(util["each"])(getDataDimensionsOnAxis(data, axis.dim), function (dim) {
        axis.scale.unionExtentFromData(data, dim);
      });
    }
  };
  /**
   * @param dim 'x' or 'y' or 'auto' or null/undefined
   */
  Grid.prototype.getTooltipAxes = function (dim) {
    var baseAxes = [];
    var otherAxes = [];
    Object(util["each"])(this.getCartesians(), function (cartesian) {
      var baseAxis = dim != null && dim !== 'auto' ? cartesian.getAxis(dim) : cartesian.getBaseAxis();
      var otherAxis = cartesian.getOtherAxis(baseAxis);
      Object(util["indexOf"])(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis);
      Object(util["indexOf"])(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis);
    });
    return {
      baseAxes: baseAxes,
      otherAxes: otherAxes
    };
  };
  Grid.create = function (ecModel, api) {
    var grids = [];
    ecModel.eachComponent('grid', function (gridModel, idx) {
      var grid = new Grid(gridModel, ecModel, api);
      grid.name = 'grid_' + idx;
      // dataSampling requires axis extent, so resize
      // should be performed in create stage.
      grid.resize(gridModel, api, true);
      gridModel.coordinateSystem = grid;
      grids.push(grid);
    });
    // Inject the coordinateSystems into seriesModel
    ecModel.eachSeries(function (seriesModel) {
      if (!isCartesian2DSeries(seriesModel)) {
        return;
      }
      var axesModelMap = findAxisModels(seriesModel);
      var xAxisModel = axesModelMap.xAxisModel;
      var yAxisModel = axesModelMap.yAxisModel;
      var gridModel = xAxisModel.getCoordSysModel();
      if (false) {}
      var grid = gridModel.coordinateSystem;
      seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
    });
    return grids;
  };
  // For deciding which dimensions to use when creating list data
  Grid.dimensions = cartesian2DDimensions;
  return Grid;
}();
/**
 * Check if the axis is used in the specified grid.
 */
function isAxisUsedInTheGrid(axisModel, gridModel) {
  return axisModel.getCoordSysModel() === gridModel;
}
function fixAxisOnZero(axesMap, otherAxisDim, axis,
// Key: see `getOnZeroRecordKey`
onZeroRecords) {
  axis.getAxesOnZeroOf = function () {
    // TODO: onZero of multiple axes.
    return otherAxisOnZeroOf ? [otherAxisOnZeroOf] : [];
  };
  // onZero can not be enabled in these two situations:
  // 1. When any other axis is a category axis.
  // 2. When no axis is cross 0 point.
  var otherAxes = axesMap[otherAxisDim];
  var otherAxisOnZeroOf;
  var axisModel = axis.model;
  var onZero = axisModel.get(['axisLine', 'onZero']);
  var onZeroAxisIndex = axisModel.get(['axisLine', 'onZeroAxisIndex']);
  if (!onZero) {
    return;
  }
  // If target axis is specified.
  if (onZeroAxisIndex != null) {
    if (canOnZeroToAxis(otherAxes[onZeroAxisIndex])) {
      otherAxisOnZeroOf = otherAxes[onZeroAxisIndex];
    }
  } else {
    // Find the first available other axis.
    for (var idx in otherAxes) {
      if (otherAxes.hasOwnProperty(idx) && canOnZeroToAxis(otherAxes[idx])
      // Consider that two Y axes on one value axis,
      // if both onZero, the two Y axes overlap.
      && !onZeroRecords[getOnZeroRecordKey(otherAxes[idx])]) {
        otherAxisOnZeroOf = otherAxes[idx];
        break;
      }
    }
  }
  if (otherAxisOnZeroOf) {
    onZeroRecords[getOnZeroRecordKey(otherAxisOnZeroOf)] = true;
  }
  function getOnZeroRecordKey(axis) {
    return axis.dim + '_' + axis.index;
  }
}
function canOnZeroToAxis(axis) {
  return axis && axis.type !== 'category' && axis.type !== 'time' && ifAxisCrossZero(axis);
}
function updateAxisTransform(axis, coordBase) {
  var axisExtent = axis.getExtent();
  var axisExtentSum = axisExtent[0] + axisExtent[1];
  // Fast transform
  axis.toGlobalCoord = axis.dim === 'x' ? function (coord) {
    return coord + coordBase;
  } : function (coord) {
    return axisExtentSum - coord + coordBase;
  };
  axis.toLocalCoord = axis.dim === 'x' ? function (coord) {
    return coord - coordBase;
  } : function (coord) {
    return axisExtentSum - coord + coordBase;
  };
}
/* harmony default export */ var cartesian_Grid = (Grid_Grid);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/AxisBuilder.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/











var AxisBuilder_PI = Math.PI;
/**
 * A final axis is translated and rotated from a "standard axis".
 * So opt.position and opt.rotation is required.
 *
 * A standard axis is and axis from [0, 0] to [0, axisExtent[1]],
 * for example: (0, 0) ------------> (0, 50)
 *
 * nameDirection or tickDirection or labelDirection is 1 means tick
 * or label is below the standard axis, whereas is -1 means above
 * the standard axis. labelOffset means offset between label and axis,
 * which is useful when 'onZero', where axisLabel is in the grid and
 * label in outside grid.
 *
 * Tips: like always,
 * positive rotation represents anticlockwise, and negative rotation
 * represents clockwise.
 * The direction of position coordinate is the same as the direction
 * of screen coordinate.
 *
 * Do not need to consider axis 'inverse', which is auto processed by
 * axis extent.
 */
var AxisBuilder_AxisBuilder = /** @class */function () {
  function AxisBuilder(axisModel, opt) {
    this.group = new graphic_Group();
    this.opt = opt;
    this.axisModel = axisModel;
    // Default value
    Object(util["defaults"])(opt, {
      labelOffset: 0,
      nameDirection: 1,
      tickDirection: 1,
      labelDirection: 1,
      silent: true,
      handleAutoShown: function () {
        return true;
      }
    });
    // FIXME Not use a separate text group?
    var transformGroup = new graphic_Group({
      x: opt.position[0],
      y: opt.position[1],
      rotation: opt.rotation
    });
    // this.group.add(transformGroup);
    // this._transformGroup = transformGroup;
    transformGroup.updateTransform();
    this._transformGroup = transformGroup;
  }
  AxisBuilder.prototype.hasBuilder = function (name) {
    return !!builders[name];
  };
  AxisBuilder.prototype.add = function (name) {
    builders[name](this.opt, this.axisModel, this.group, this._transformGroup);
  };
  AxisBuilder.prototype.getGroup = function () {
    return this.group;
  };
  AxisBuilder.innerTextLayout = function (axisRotation, textRotation, direction) {
    var rotationDiff = remRadian(textRotation - axisRotation);
    var textAlign;
    var textVerticalAlign;
    if (isRadianAroundZero(rotationDiff)) {
      // Label is parallel with axis line.
      textVerticalAlign = direction > 0 ? 'top' : 'bottom';
      textAlign = 'center';
    } else if (isRadianAroundZero(rotationDiff - AxisBuilder_PI)) {
      // Label is inverse parallel with axis line.
      textVerticalAlign = direction > 0 ? 'bottom' : 'top';
      textAlign = 'center';
    } else {
      textVerticalAlign = 'middle';
      if (rotationDiff > 0 && rotationDiff < AxisBuilder_PI) {
        textAlign = direction > 0 ? 'right' : 'left';
      } else {
        textAlign = direction > 0 ? 'left' : 'right';
      }
    }
    return {
      rotation: rotationDiff,
      textAlign: textAlign,
      textVerticalAlign: textVerticalAlign
    };
  };
  AxisBuilder.makeAxisEventDataBase = function (axisModel) {
    var eventData = {
      componentType: axisModel.mainType,
      componentIndex: axisModel.componentIndex
    };
    eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex;
    return eventData;
  };
  AxisBuilder.isLabelSilent = function (axisModel) {
    var tooltipOpt = axisModel.get('tooltip');
    return axisModel.get('silent')
    // Consider mouse cursor, add these restrictions.
    || !(axisModel.get('triggerEvent') || tooltipOpt && tooltipOpt.show);
  };
  return AxisBuilder;
}();
;
var builders = {
  axisLine: function (opt, axisModel, group, transformGroup) {
    var shown = axisModel.get(['axisLine', 'show']);
    if (shown === 'auto' && opt.handleAutoShown) {
      shown = opt.handleAutoShown('axisLine');
    }
    if (!shown) {
      return;
    }
    var extent = axisModel.axis.getExtent();
    var matrix = transformGroup.transform;
    var pt1 = [extent[0], 0];
    var pt2 = [extent[1], 0];
    var inverse = pt1[0] > pt2[0];
    if (matrix) {
      applyTransform(pt1, pt1, matrix);
      applyTransform(pt2, pt2, matrix);
    }
    var lineStyle = Object(util["extend"])({
      lineCap: 'round'
    }, axisModel.getModel(['axisLine', 'lineStyle']).getLineStyle());
    var line = new shape_Line({
      shape: {
        x1: pt1[0],
        y1: pt1[1],
        x2: pt2[0],
        y2: pt2[1]
      },
      style: lineStyle,
      strokeContainThreshold: opt.strokeContainThreshold || 5,
      silent: true,
      z2: 1
    });
    graphic_subPixelOptimizeLine(line.shape, line.style.lineWidth);
    line.anid = 'line';
    group.add(line);
    var arrows = axisModel.get(['axisLine', 'symbol']);
    if (arrows != null) {
      var arrowSize = axisModel.get(['axisLine', 'symbolSize']);
      if (Object(util["isString"])(arrows)) {
        // Use the same arrow for start and end point
        arrows = [arrows, arrows];
      }
      if (Object(util["isString"])(arrowSize) || Object(util["isNumber"])(arrowSize)) {
        // Use the same size for width and height
        arrowSize = [arrowSize, arrowSize];
      }
      var arrowOffset = normalizeSymbolOffset(axisModel.get(['axisLine', 'symbolOffset']) || 0, arrowSize);
      var symbolWidth_1 = arrowSize[0];
      var symbolHeight_1 = arrowSize[1];
      Object(util["each"])([{
        rotate: opt.rotation + Math.PI / 2,
        offset: arrowOffset[0],
        r: 0
      }, {
        rotate: opt.rotation - Math.PI / 2,
        offset: arrowOffset[1],
        r: Math.sqrt((pt1[0] - pt2[0]) * (pt1[0] - pt2[0]) + (pt1[1] - pt2[1]) * (pt1[1] - pt2[1]))
      }], function (point, index) {
        if (arrows[index] !== 'none' && arrows[index] != null) {
          var symbol = symbol_createSymbol(arrows[index], -symbolWidth_1 / 2, -symbolHeight_1 / 2, symbolWidth_1, symbolHeight_1, lineStyle.stroke, true);
          // Calculate arrow position with offset
          var r = point.r + point.offset;
          var pt = inverse ? pt2 : pt1;
          symbol.attr({
            rotation: point.rotate,
            x: pt[0] + r * Math.cos(opt.rotation),
            y: pt[1] - r * Math.sin(opt.rotation),
            silent: true,
            z2: 11
          });
          group.add(symbol);
        }
      });
    }
  },
  axisTickLabel: function (opt, axisModel, group, transformGroup) {
    var ticksEls = buildAxisMajorTicks(group, transformGroup, axisModel, opt);
    var labelEls = buildAxisLabel(group, transformGroup, axisModel, opt);
    fixMinMaxLabelShow(axisModel, labelEls, ticksEls);
    buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection);
    // This bit fixes the label overlap issue for the time chart.
    // See https://github.com/apache/echarts/issues/14266 for more.
    if (axisModel.get(['axisLabel', 'hideOverlap'])) {
      var labelList = prepareLayoutList(Object(util["map"])(labelEls, function (label) {
        return {
          label: label,
          priority: label.z2,
          defaultAttr: {
            ignore: label.ignore
          }
        };
      }));
      hideOverlap(labelList);
    }
  },
  axisName: function (opt, axisModel, group, transformGroup) {
    var name = Object(util["retrieve"])(opt.axisName, axisModel.get('name'));
    if (!name) {
      return;
    }
    var nameLocation = axisModel.get('nameLocation');
    var nameDirection = opt.nameDirection;
    var textStyleModel = axisModel.getModel('nameTextStyle');
    var gap = axisModel.get('nameGap') || 0;
    var extent = axisModel.axis.getExtent();
    var gapSignal = extent[0] > extent[1] ? -1 : 1;
    var pos = [nameLocation === 'start' ? extent[0] - gapSignal * gap : nameLocation === 'end' ? extent[1] + gapSignal * gap : (extent[0] + extent[1]) / 2,
    // Reuse labelOffset.
    isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0];
    var labelLayout;
    var nameRotation = axisModel.get('nameRotate');
    if (nameRotation != null) {
      nameRotation = nameRotation * AxisBuilder_PI / 180; // To radian.
    }
    var axisNameAvailableWidth;
    if (isNameLocationCenter(nameLocation)) {
      labelLayout = AxisBuilder_AxisBuilder.innerTextLayout(opt.rotation, nameRotation != null ? nameRotation : opt.rotation,
      // Adapt to axis.
      nameDirection);
    } else {
      labelLayout = endTextLayout(opt.rotation, nameLocation, nameRotation || 0, extent);
      axisNameAvailableWidth = opt.axisNameAvailableWidth;
      if (axisNameAvailableWidth != null) {
        axisNameAvailableWidth = Math.abs(axisNameAvailableWidth / Math.sin(labelLayout.rotation));
        !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null);
      }
    }
    var textFont = textStyleModel.getFont();
    var truncateOpt = axisModel.get('nameTruncate', true) || {};
    var ellipsis = truncateOpt.ellipsis;
    var maxWidth = Object(util["retrieve"])(opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth);
    var textEl = new Text({
      x: pos[0],
      y: pos[1],
      rotation: labelLayout.rotation,
      silent: AxisBuilder_AxisBuilder.isLabelSilent(axisModel),
      style: createTextStyle(textStyleModel, {
        text: name,
        font: textFont,
        overflow: 'truncate',
        width: maxWidth,
        ellipsis: ellipsis,
        fill: textStyleModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']),
        align: textStyleModel.get('align') || labelLayout.textAlign,
        verticalAlign: textStyleModel.get('verticalAlign') || labelLayout.textVerticalAlign
      }),
      z2: 1
    });
    setTooltipConfig({
      el: textEl,
      componentModel: axisModel,
      itemName: name
    });
    textEl.__fullText = name;
    // Id for animation
    textEl.anid = 'name';
    if (axisModel.get('triggerEvent')) {
      var eventData = AxisBuilder_AxisBuilder.makeAxisEventDataBase(axisModel);
      eventData.targetType = 'axisName';
      eventData.name = name;
      getECData(textEl).eventData = eventData;
    }
    // FIXME
    transformGroup.add(textEl);
    textEl.updateTransform();
    group.add(textEl);
    textEl.decomposeTransform();
  }
};
function endTextLayout(rotation, textPosition, textRotate, extent) {
  var rotationDiff = remRadian(textRotate - rotation);
  var textAlign;
  var textVerticalAlign;
  var inverse = extent[0] > extent[1];
  var onLeft = textPosition === 'start' && !inverse || textPosition !== 'start' && inverse;
  if (isRadianAroundZero(rotationDiff - AxisBuilder_PI / 2)) {
    textVerticalAlign = onLeft ? 'bottom' : 'top';
    textAlign = 'center';
  } else if (isRadianAroundZero(rotationDiff - AxisBuilder_PI * 1.5)) {
    textVerticalAlign = onLeft ? 'top' : 'bottom';
    textAlign = 'center';
  } else {
    textVerticalAlign = 'middle';
    if (rotationDiff < AxisBuilder_PI * 1.5 && rotationDiff > AxisBuilder_PI / 2) {
      textAlign = onLeft ? 'left' : 'right';
    } else {
      textAlign = onLeft ? 'right' : 'left';
    }
  }
  return {
    rotation: rotationDiff,
    textAlign: textAlign,
    textVerticalAlign: textVerticalAlign
  };
}
function fixMinMaxLabelShow(axisModel, labelEls, tickEls) {
  if (shouldShowAllLabels(axisModel.axis)) {
    return;
  }
  // If min or max are user set, we need to check
  // If the tick on min(max) are overlap on their neighbour tick
  // If they are overlapped, we need to hide the min(max) tick label
  var showMinLabel = axisModel.get(['axisLabel', 'showMinLabel']);
  var showMaxLabel = axisModel.get(['axisLabel', 'showMaxLabel']);
  // FIXME
  // Have not consider onBand yet, where tick els is more than label els.
  labelEls = labelEls || [];
  tickEls = tickEls || [];
  var firstLabel = labelEls[0];
  var nextLabel = labelEls[1];
  var lastLabel = labelEls[labelEls.length - 1];
  var prevLabel = labelEls[labelEls.length - 2];
  var firstTick = tickEls[0];
  var nextTick = tickEls[1];
  var lastTick = tickEls[tickEls.length - 1];
  var prevTick = tickEls[tickEls.length - 2];
  if (showMinLabel === false) {
    ignoreEl(firstLabel);
    ignoreEl(firstTick);
  } else if (isTwoLabelOverlapped(firstLabel, nextLabel)) {
    if (showMinLabel) {
      ignoreEl(nextLabel);
      ignoreEl(nextTick);
    } else {
      ignoreEl(firstLabel);
      ignoreEl(firstTick);
    }
  }
  if (showMaxLabel === false) {
    ignoreEl(lastLabel);
    ignoreEl(lastTick);
  } else if (isTwoLabelOverlapped(prevLabel, lastLabel)) {
    if (showMaxLabel) {
      ignoreEl(prevLabel);
      ignoreEl(prevTick);
    } else {
      ignoreEl(lastLabel);
      ignoreEl(lastTick);
    }
  }
}
function ignoreEl(el) {
  el && (el.ignore = true);
}
function isTwoLabelOverlapped(current, next) {
  // current and next has the same rotation.
  var firstRect = current && current.getBoundingRect().clone();
  var nextRect = next && next.getBoundingRect().clone();
  if (!firstRect || !nextRect) {
    return;
  }
  // When checking intersect of two rotated labels, we use mRotationBack
  // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`.
  var mRotationBack = identity([]);
  matrix_rotate(mRotationBack, mRotationBack, -current.rotation);
  firstRect.applyTransform(matrix_mul([], mRotationBack, current.getLocalTransform()));
  nextRect.applyTransform(matrix_mul([], mRotationBack, next.getLocalTransform()));
  return firstRect.intersect(nextRect);
}
function isNameLocationCenter(nameLocation) {
  return nameLocation === 'middle' || nameLocation === 'center';
}
function createTicks(ticksCoords, tickTransform, tickEndCoord, tickLineStyle, anidPrefix) {
  var tickEls = [];
  var pt1 = [];
  var pt2 = [];
  for (var i = 0; i < ticksCoords.length; i++) {
    var tickCoord = ticksCoords[i].coord;
    pt1[0] = tickCoord;
    pt1[1] = 0;
    pt2[0] = tickCoord;
    pt2[1] = tickEndCoord;
    if (tickTransform) {
      applyTransform(pt1, pt1, tickTransform);
      applyTransform(pt2, pt2, tickTransform);
    }
    // Tick line, Not use group transform to have better line draw
    var tickEl = new shape_Line({
      shape: {
        x1: pt1[0],
        y1: pt1[1],
        x2: pt2[0],
        y2: pt2[1]
      },
      style: tickLineStyle,
      z2: 2,
      autoBatch: true,
      silent: true
    });
    graphic_subPixelOptimizeLine(tickEl.shape, tickEl.style.lineWidth);
    tickEl.anid = anidPrefix + '_' + ticksCoords[i].tickValue;
    tickEls.push(tickEl);
  }
  return tickEls;
}
function buildAxisMajorTicks(group, transformGroup, axisModel, opt) {
  var axis = axisModel.axis;
  var tickModel = axisModel.getModel('axisTick');
  var shown = tickModel.get('show');
  if (shown === 'auto' && opt.handleAutoShown) {
    shown = opt.handleAutoShown('axisTick');
  }
  if (!shown || axis.scale.isBlank()) {
    return;
  }
  var lineStyleModel = tickModel.getModel('lineStyle');
  var tickEndCoord = opt.tickDirection * tickModel.get('length');
  var ticksCoords = axis.getTicksCoords();
  var ticksEls = createTicks(ticksCoords, transformGroup.transform, tickEndCoord, Object(util["defaults"])(lineStyleModel.getLineStyle(), {
    stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])
  }), 'ticks');
  for (var i = 0; i < ticksEls.length; i++) {
    group.add(ticksEls[i]);
  }
  return ticksEls;
}
function buildAxisMinorTicks(group, transformGroup, axisModel, tickDirection) {
  var axis = axisModel.axis;
  var minorTickModel = axisModel.getModel('minorTick');
  if (!minorTickModel.get('show') || axis.scale.isBlank()) {
    return;
  }
  var minorTicksCoords = axis.getMinorTicksCoords();
  if (!minorTicksCoords.length) {
    return;
  }
  var lineStyleModel = minorTickModel.getModel('lineStyle');
  var tickEndCoord = tickDirection * minorTickModel.get('length');
  var minorTickLineStyle = Object(util["defaults"])(lineStyleModel.getLineStyle(), Object(util["defaults"])(axisModel.getModel('axisTick').getLineStyle(), {
    stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])
  }));
  for (var i = 0; i < minorTicksCoords.length; i++) {
    var minorTicksEls = createTicks(minorTicksCoords[i], transformGroup.transform, tickEndCoord, minorTickLineStyle, 'minorticks_' + i);
    for (var k = 0; k < minorTicksEls.length; k++) {
      group.add(minorTicksEls[k]);
    }
  }
}
function buildAxisLabel(group, transformGroup, axisModel, opt) {
  var axis = axisModel.axis;
  var show = Object(util["retrieve"])(opt.axisLabelShow, axisModel.get(['axisLabel', 'show']));
  if (!show || axis.scale.isBlank()) {
    return;
  }
  var labelModel = axisModel.getModel('axisLabel');
  var labelMargin = labelModel.get('margin');
  var labels = axis.getViewLabels();
  // Special label rotate.
  var labelRotation = (Object(util["retrieve"])(opt.labelRotate, labelModel.get('rotate')) || 0) * AxisBuilder_PI / 180;
  var labelLayout = AxisBuilder_AxisBuilder.innerTextLayout(opt.rotation, labelRotation, opt.labelDirection);
  var rawCategoryData = axisModel.getCategories && axisModel.getCategories(true);
  var labelEls = [];
  var silent = AxisBuilder_AxisBuilder.isLabelSilent(axisModel);
  var triggerEvent = axisModel.get('triggerEvent');
  Object(util["each"])(labels, function (labelItem, index) {
    var tickValue = axis.scale.type === 'ordinal' ? axis.scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue;
    var formattedLabel = labelItem.formattedLabel;
    var rawLabel = labelItem.rawLabel;
    var itemLabelModel = labelModel;
    if (rawCategoryData && rawCategoryData[tickValue]) {
      var rawCategoryItem = rawCategoryData[tickValue];
      if (Object(util["isObject"])(rawCategoryItem) && rawCategoryItem.textStyle) {
        itemLabelModel = new model_Model(rawCategoryItem.textStyle, labelModel, axisModel.ecModel);
      }
    }
    var textColor = itemLabelModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']);
    var tickCoord = axis.dataToCoord(tickValue);
    var align = itemLabelModel.getShallow('align', true) || labelLayout.textAlign;
    var alignMin = Object(util["retrieve2"])(itemLabelModel.getShallow('alignMinLabel', true), align);
    var alignMax = Object(util["retrieve2"])(itemLabelModel.getShallow('alignMaxLabel', true), align);
    var verticalAlign = itemLabelModel.getShallow('verticalAlign', true) || itemLabelModel.getShallow('baseline', true) || labelLayout.textVerticalAlign;
    var verticalAlignMin = Object(util["retrieve2"])(itemLabelModel.getShallow('verticalAlignMinLabel', true), verticalAlign);
    var verticalAlignMax = Object(util["retrieve2"])(itemLabelModel.getShallow('verticalAlignMaxLabel', true), verticalAlign);
    var textEl = new Text({
      x: tickCoord,
      y: opt.labelOffset + opt.labelDirection * labelMargin,
      rotation: labelLayout.rotation,
      silent: silent,
      z2: 10 + (labelItem.level || 0),
      style: createTextStyle(itemLabelModel, {
        text: formattedLabel,
        align: index === 0 ? alignMin : index === labels.length - 1 ? alignMax : align,
        verticalAlign: index === 0 ? verticalAlignMin : index === labels.length - 1 ? verticalAlignMax : verticalAlign,
        fill: Object(util["isFunction"])(textColor) ? textColor(
        // (1) In category axis with data zoom, tick is not the original
        // index of axis.data. So tick should not be exposed to user
        // in category axis.
        // (2) Compatible with previous version, which always use formatted label as
        // input. But in interval scale the formatted label is like '223,445', which
        // maked user replace ','. So we modify it to return original val but remain
        // it as 'string' to avoid error in replacing.
        axis.type === 'category' ? rawLabel : axis.type === 'value' ? tickValue + '' : tickValue, index) : textColor
      })
    });
    textEl.anid = 'label_' + tickValue;
    setTooltipConfig({
      el: textEl,
      componentModel: axisModel,
      itemName: formattedLabel,
      formatterParamsExtra: {
        isTruncated: function () {
          return textEl.isTruncated;
        },
        value: rawLabel,
        tickIndex: index
      }
    });
    // Pack data for mouse event
    if (triggerEvent) {
      var eventData = AxisBuilder_AxisBuilder.makeAxisEventDataBase(axisModel);
      eventData.targetType = 'axisLabel';
      eventData.value = rawLabel;
      eventData.tickIndex = index;
      if (axis.type === 'category') {
        eventData.dataIndex = tickValue;
      }
      getECData(textEl).eventData = eventData;
    }
    // FIXME
    transformGroup.add(textEl);
    textEl.updateTransform();
    labelEls.push(textEl);
    group.add(textEl);
    textEl.decomposeTransform();
  });
  return labelEls;
}
/* harmony default export */ var axis_AxisBuilder = (AxisBuilder_AxisBuilder);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/modelHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// Build axisPointerModel, mergin tooltip.axisPointer model for each axis.
// allAxesInfo should be updated when setOption performed.
function collect(ecModel, api) {
  var result = {
    /**
     * key: makeKey(axis.model)
     * value: {
     *      axis,
     *      coordSys,
     *      axisPointerModel,
     *      triggerTooltip,
     *      triggerEmphasis,
     *      involveSeries,
     *      snap,
     *      seriesModels,
     *      seriesDataCount
     * }
     */
    axesInfo: {},
    seriesInvolved: false,
    /**
     * key: makeKey(coordSys.model)
     * value: Object: key makeKey(axis.model), value: axisInfo
     */
    coordSysAxesInfo: {},
    coordSysMap: {}
  };
  collectAxesInfo(result, ecModel, api);
  // Check seriesInvolved for performance, in case too many series in some chart.
  result.seriesInvolved && collectSeriesInfo(result, ecModel);
  return result;
}
function collectAxesInfo(result, ecModel, api) {
  var globalTooltipModel = ecModel.getComponent('tooltip');
  var globalAxisPointerModel = ecModel.getComponent('axisPointer');
  // links can only be set on global.
  var linksOption = globalAxisPointerModel.get('link', true) || [];
  var linkGroups = [];
  // Collect axes info.
  Object(util["each"])(api.getCoordinateSystems(), function (coordSys) {
    // Some coordinate system do not support axes, like geo.
    if (!coordSys.axisPointerEnabled) {
      return;
    }
    var coordSysKey = makeKey(coordSys.model);
    var axesInfoInCoordSys = result.coordSysAxesInfo[coordSysKey] = {};
    result.coordSysMap[coordSysKey] = coordSys;
    // Set tooltip (like 'cross') is a convenient way to show axisPointer
    // for user. So we enable setting tooltip on coordSys model.
    var coordSysModel = coordSys.model;
    var baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel);
    Object(util["each"])(coordSys.getAxes(), Object(util["curry"])(saveTooltipAxisInfo, false, null));
    // If axis tooltip used, choose tooltip axis for each coordSys.
    // Notice this case: coordSys is `grid` but not `cartesian2D` here.
    if (coordSys.getTooltipAxes && globalTooltipModel
    // If tooltip.showContent is set as false, tooltip will not
    // show but axisPointer will show as normal.
    && baseTooltipModel.get('show')) {
      // Compatible with previous logic. But series.tooltip.trigger: 'axis'
      // or series.data[n].tooltip.trigger: 'axis' are not support any more.
      var triggerAxis = baseTooltipModel.get('trigger') === 'axis';
      var cross = baseTooltipModel.get(['axisPointer', 'type']) === 'cross';
      var tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get(['axisPointer', 'axis']));
      if (triggerAxis || cross) {
        Object(util["each"])(tooltipAxes.baseAxes, Object(util["curry"])(saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis));
      }
      if (cross) {
        Object(util["each"])(tooltipAxes.otherAxes, Object(util["curry"])(saveTooltipAxisInfo, 'cross', false));
      }
    }
    // fromTooltip: true | false | 'cross'
    // triggerTooltip: true | false | null
    function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) {
      var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel);
      var axisPointerShow = axisPointerModel.get('show');
      if (!axisPointerShow || axisPointerShow === 'auto' && !fromTooltip && !isHandleTrigger(axisPointerModel)) {
        return;
      }
      if (triggerTooltip == null) {
        triggerTooltip = axisPointerModel.get('triggerTooltip');
      }
      axisPointerModel = fromTooltip ? makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) : axisPointerModel;
      var snap = axisPointerModel.get('snap');
      var triggerEmphasis = axisPointerModel.get('triggerEmphasis');
      var axisKey = makeKey(axis.model);
      var involveSeries = triggerTooltip || snap || axis.type === 'category';
      // If result.axesInfo[key] exist, override it (tooltip has higher priority).
      var axisInfo = result.axesInfo[axisKey] = {
        key: axisKey,
        axis: axis,
        coordSys: coordSys,
        axisPointerModel: axisPointerModel,
        triggerTooltip: triggerTooltip,
        triggerEmphasis: triggerEmphasis,
        involveSeries: involveSeries,
        snap: snap,
        useHandle: isHandleTrigger(axisPointerModel),
        seriesModels: [],
        linkGroup: null
      };
      axesInfoInCoordSys[axisKey] = axisInfo;
      result.seriesInvolved = result.seriesInvolved || involveSeries;
      var groupIndex = getLinkGroupIndex(linksOption, axis);
      if (groupIndex != null) {
        var linkGroup = linkGroups[groupIndex] || (linkGroups[groupIndex] = {
          axesInfo: {}
        });
        linkGroup.axesInfo[axisKey] = axisInfo;
        linkGroup.mapper = linksOption[groupIndex].mapper;
        axisInfo.linkGroup = linkGroup;
      }
    }
  });
}
function makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) {
  var tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer');
  var fields = ['type', 'snap', 'lineStyle', 'shadowStyle', 'label', 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z'];
  var volatileOption = {};
  Object(util["each"])(fields, function (field) {
    volatileOption[field] = Object(util["clone"])(tooltipAxisPointerModel.get(field));
  });
  // category axis do not auto snap, otherwise some tick that do not
  // has value can not be hovered. value/time/log axis default snap if
  // triggered from tooltip and trigger tooltip.
  volatileOption.snap = axis.type !== 'category' && !!triggerTooltip;
  // Compatible with previous behavior, tooltip axis does not show label by default.
  // Only these properties can be overridden from tooltip to axisPointer.
  if (tooltipAxisPointerModel.get('type') === 'cross') {
    volatileOption.type = 'line';
  }
  var labelOption = volatileOption.label || (volatileOption.label = {});
  // Follow the convention, do not show label when triggered by tooltip by default.
  labelOption.show == null && (labelOption.show = false);
  if (fromTooltip === 'cross') {
    // When 'cross', both axes show labels.
    var tooltipAxisPointerLabelShow = tooltipAxisPointerModel.get(['label', 'show']);
    labelOption.show = tooltipAxisPointerLabelShow != null ? tooltipAxisPointerLabelShow : true;
    // If triggerTooltip, this is a base axis, which should better not use cross style
    // (cross style is dashed by default)
    if (!triggerTooltip) {
      var crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle');
      crossStyle && Object(util["defaults"])(labelOption, crossStyle.textStyle);
    }
  }
  return axis.model.getModel('axisPointer', new model_Model(volatileOption, globalAxisPointerModel, ecModel));
}
function collectSeriesInfo(result, ecModel) {
  // Prepare data for axis trigger
  ecModel.eachSeries(function (seriesModel) {
    // Notice this case: this coordSys is `cartesian2D` but not `grid`.
    var coordSys = seriesModel.coordinateSystem;
    var seriesTooltipTrigger = seriesModel.get(['tooltip', 'trigger'], true);
    var seriesTooltipShow = seriesModel.get(['tooltip', 'show'], true);
    if (!coordSys || seriesTooltipTrigger === 'none' || seriesTooltipTrigger === false || seriesTooltipTrigger === 'item' || seriesTooltipShow === false || seriesModel.get(['axisPointer', 'show'], true) === false) {
      return;
    }
    Object(util["each"])(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {
      var axis = axisInfo.axis;
      if (coordSys.getAxis(axis.dim) === axis) {
        axisInfo.seriesModels.push(seriesModel);
        axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0);
        axisInfo.seriesDataCount += seriesModel.getData().count();
      }
    });
  });
}
/**
 * For example:
 * {
 *     axisPointer: {
 *         links: [{
 *             xAxisIndex: [2, 4],
 *             yAxisIndex: 'all'
 *         }, {
 *             xAxisId: ['a5', 'a7'],
 *             xAxisName: 'xxx'
 *         }]
 *     }
 * }
 */
function getLinkGroupIndex(linksOption, axis) {
  var axisModel = axis.model;
  var dim = axis.dim;
  for (var i = 0; i < linksOption.length; i++) {
    var linkOption = linksOption[i] || {};
    if (checkPropInLink(linkOption[dim + 'AxisId'], axisModel.id) || checkPropInLink(linkOption[dim + 'AxisIndex'], axisModel.componentIndex) || checkPropInLink(linkOption[dim + 'AxisName'], axisModel.name)) {
      return i;
    }
  }
}
function checkPropInLink(linkPropValue, axisPropValue) {
  return linkPropValue === 'all' || Object(util["isArray"])(linkPropValue) && Object(util["indexOf"])(linkPropValue, axisPropValue) >= 0 || linkPropValue === axisPropValue;
}
function fixValue(axisModel) {
  var axisInfo = getAxisInfo(axisModel);
  if (!axisInfo) {
    return;
  }
  var axisPointerModel = axisInfo.axisPointerModel;
  var scale = axisInfo.axis.scale;
  var option = axisPointerModel.option;
  var status = axisPointerModel.get('status');
  var value = axisPointerModel.get('value');
  // Parse init value for category and time axis.
  if (value != null) {
    value = scale.parse(value);
  }
  var useHandle = isHandleTrigger(axisPointerModel);
  // If `handle` used, `axisPointer` will always be displayed, so value
  // and status should be initialized.
  if (status == null) {
    option.status = useHandle ? 'show' : 'hide';
  }
  var extent = scale.getExtent().slice();
  extent[0] > extent[1] && extent.reverse();
  if (
  // Pick a value on axis when initializing.
  value == null
  // If both `handle` and `dataZoom` are used, value may be out of axis extent,
  // where we should re-pick a value to keep `handle` displaying normally.
  || value > extent[1]) {
    // Make handle displayed on the end of the axis when init, which looks better.
    value = extent[1];
  }
  if (value < extent[0]) {
    value = extent[0];
  }
  option.value = value;
  if (useHandle) {
    option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show';
  }
}
function getAxisInfo(axisModel) {
  var coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') || {}).coordSysAxesInfo;
  return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)];
}
function getAxisPointerModel(axisModel) {
  var axisInfo = getAxisInfo(axisModel);
  return axisInfo && axisInfo.axisPointerModel;
}
function isHandleTrigger(axisPointerModel) {
  return !!axisPointerModel.get(['handle', 'show']);
}
/**
 * @param {module:echarts/model/Model} model
 * @return {string} unique key
 */
function makeKey(model) {
  return model.type + '||' + model.id;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/AxisView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var axisPointerClazz = {};
/**
 * Base class of AxisView.
 */
var AxisView_AxisView = /** @class */function (_super) {
  __extends(AxisView, _super);
  function AxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = AxisView.type;
    return _this;
  }
  /**
   * @override
   */
  AxisView.prototype.render = function (axisModel, ecModel, api, payload) {
    // FIXME
    // This process should proformed after coordinate systems updated
    // (axis scale updated), and should be performed each time update.
    // So put it here temporarily, although it is not appropriate to
    // put a model-writing procedure in `view`.
    this.axisPointerClass && fixValue(axisModel);
    _super.prototype.render.apply(this, arguments);
    this._doUpdateAxisPointerClass(axisModel, api, true);
  };
  /**
   * Action handler.
   */
  AxisView.prototype.updateAxisPointer = function (axisModel, ecModel, api, payload) {
    this._doUpdateAxisPointerClass(axisModel, api, false);
  };
  /**
   * @override
   */
  AxisView.prototype.remove = function (ecModel, api) {
    var axisPointer = this._axisPointer;
    axisPointer && axisPointer.remove(api);
  };
  /**
   * @override
   */
  AxisView.prototype.dispose = function (ecModel, api) {
    this._disposeAxisPointer(api);
    _super.prototype.dispose.apply(this, arguments);
  };
  AxisView.prototype._doUpdateAxisPointerClass = function (axisModel, api, forceRender) {
    var Clazz = AxisView.getAxisPointerClass(this.axisPointerClass);
    if (!Clazz) {
      return;
    }
    var axisPointerModel = getAxisPointerModel(axisModel);
    axisPointerModel ? (this._axisPointer || (this._axisPointer = new Clazz())).render(axisModel, axisPointerModel, api, forceRender) : this._disposeAxisPointer(api);
  };
  AxisView.prototype._disposeAxisPointer = function (api) {
    this._axisPointer && this._axisPointer.dispose(api);
    this._axisPointer = null;
  };
  AxisView.registerAxisPointerClass = function (type, clazz) {
    if (false) {}
    axisPointerClazz[type] = clazz;
  };
  ;
  AxisView.getAxisPointerClass = function (type) {
    return type && axisPointerClazz[type];
  };
  ;
  AxisView.type = 'axis';
  return AxisView;
}(view_Component);
/* harmony default export */ var axis_AxisView = (AxisView_AxisView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/axisSplitHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var axisSplitHelper_inner = makeInner();
function rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel) {
  var axis = axisModel.axis;
  if (axis.scale.isBlank()) {
    return;
  }
  // TODO: TYPE
  var splitAreaModel = axisModel.getModel('splitArea');
  var areaStyleModel = splitAreaModel.getModel('areaStyle');
  var areaColors = areaStyleModel.get('color');
  var gridRect = gridModel.coordinateSystem.getRect();
  var ticksCoords = axis.getTicksCoords({
    tickModel: splitAreaModel,
    clamp: true
  });
  if (!ticksCoords.length) {
    return;
  }
  // For Making appropriate splitArea animation, the color and anid
  // should be corresponding to previous one if possible.
  var areaColorsLen = areaColors.length;
  var lastSplitAreaColors = axisSplitHelper_inner(axisView).splitAreaColors;
  var newSplitAreaColors = util["createHashMap"]();
  var colorIndex = 0;
  if (lastSplitAreaColors) {
    for (var i = 0; i < ticksCoords.length; i++) {
      var cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue);
      if (cIndex != null) {
        colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen;
        break;
      }
    }
  }
  var prev = axis.toGlobalCoord(ticksCoords[0].coord);
  var areaStyle = areaStyleModel.getAreaStyle();
  areaColors = util["isArray"](areaColors) ? areaColors : [areaColors];
  for (var i = 1; i < ticksCoords.length; i++) {
    var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);
    var x = void 0;
    var y = void 0;
    var width = void 0;
    var height = void 0;
    if (axis.isHorizontal()) {
      x = prev;
      y = gridRect.y;
      width = tickCoord - x;
      height = gridRect.height;
      prev = x + width;
    } else {
      x = gridRect.x;
      y = prev;
      width = gridRect.width;
      height = tickCoord - y;
      prev = y + height;
    }
    var tickValue = ticksCoords[i - 1].tickValue;
    tickValue != null && newSplitAreaColors.set(tickValue, colorIndex);
    axisGroup.add(new shape_Rect({
      anid: tickValue != null ? 'area_' + tickValue : null,
      shape: {
        x: x,
        y: y,
        width: width,
        height: height
      },
      style: util["defaults"]({
        fill: areaColors[colorIndex]
      }, areaStyle),
      autoBatch: true,
      silent: true
    }));
    colorIndex = (colorIndex + 1) % areaColorsLen;
  }
  axisSplitHelper_inner(axisView).splitAreaColors = newSplitAreaColors;
}
function rectCoordAxisHandleRemove(axisView) {
  axisSplitHelper_inner(axisView).splitAreaColors = null;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/CartesianAxisView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];
var selfBuilderAttrs = ['splitArea', 'splitLine', 'minorSplitLine'];
var CartesianAxisView_CartesianAxisView = /** @class */function (_super) {
  __extends(CartesianAxisView, _super);
  function CartesianAxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CartesianAxisView.type;
    _this.axisPointerClass = 'CartesianAxisPointer';
    return _this;
  }
  /**
   * @override
   */
  CartesianAxisView.prototype.render = function (axisModel, ecModel, api, payload) {
    this.group.removeAll();
    var oldAxisGroup = this._axisGroup;
    this._axisGroup = new graphic_Group();
    this.group.add(this._axisGroup);
    if (!axisModel.get('show')) {
      return;
    }
    var gridModel = axisModel.getCoordSysModel();
    var layout = cartesianAxisHelper_layout(gridModel, axisModel);
    var axisBuilder = new axis_AxisBuilder(axisModel, util["extend"]({
      handleAutoShown: function (elementType) {
        var cartesians = gridModel.coordinateSystem.getCartesians();
        for (var i = 0; i < cartesians.length; i++) {
          if (isIntervalOrLogScale(cartesians[i].getOtherAxis(axisModel.axis).scale)) {
            // Still show axis tick or axisLine if other axis is value / log
            return true;
          }
        }
        // Not show axisTick or axisLine if other axis is category / time
        return false;
      }
    }, layout));
    util["each"](axisBuilderAttrs, axisBuilder.add, axisBuilder);
    this._axisGroup.add(axisBuilder.getGroup());
    util["each"](selfBuilderAttrs, function (name) {
      if (axisModel.get([name, 'show'])) {
        axisElementBuilders[name](this, this._axisGroup, axisModel, gridModel);
      }
    }, this);
    // THIS is a special case for bar racing chart.
    // Update the axis label from the natural initial layout to
    // sorted layout should has no animation.
    var isInitialSortFromBarRacing = payload && payload.type === 'changeAxisOrder' && payload.isInitSort;
    if (!isInitialSortFromBarRacing) {
      groupTransition(oldAxisGroup, this._axisGroup, axisModel);
    }
    _super.prototype.render.call(this, axisModel, ecModel, api, payload);
  };
  CartesianAxisView.prototype.remove = function () {
    rectCoordAxisHandleRemove(this);
  };
  CartesianAxisView.type = 'cartesianAxis';
  return CartesianAxisView;
}(axis_AxisView);
var axisElementBuilders = {
  splitLine: function (axisView, axisGroup, axisModel, gridModel) {
    var axis = axisModel.axis;
    if (axis.scale.isBlank()) {
      return;
    }
    var splitLineModel = axisModel.getModel('splitLine');
    var lineStyleModel = splitLineModel.getModel('lineStyle');
    var lineColors = lineStyleModel.get('color');
    var showMinLine = splitLineModel.get('showMinLine') !== false;
    var showMaxLine = splitLineModel.get('showMaxLine') !== false;
    lineColors = util["isArray"](lineColors) ? lineColors : [lineColors];
    var gridRect = gridModel.coordinateSystem.getRect();
    var isHorizontal = axis.isHorizontal();
    var lineCount = 0;
    var ticksCoords = axis.getTicksCoords({
      tickModel: splitLineModel
    });
    var p1 = [];
    var p2 = [];
    var lineStyle = lineStyleModel.getLineStyle();
    for (var i = 0; i < ticksCoords.length; i++) {
      var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);
      if (i === 0 && !showMinLine || i === ticksCoords.length - 1 && !showMaxLine) {
        continue;
      }
      var tickValue = ticksCoords[i].tickValue;
      if (isHorizontal) {
        p1[0] = tickCoord;
        p1[1] = gridRect.y;
        p2[0] = tickCoord;
        p2[1] = gridRect.y + gridRect.height;
      } else {
        p1[0] = gridRect.x;
        p1[1] = tickCoord;
        p2[0] = gridRect.x + gridRect.width;
        p2[1] = tickCoord;
      }
      var colorIndex = lineCount++ % lineColors.length;
      var line = new shape_Line({
        anid: tickValue != null ? 'line_' + tickValue : null,
        autoBatch: true,
        shape: {
          x1: p1[0],
          y1: p1[1],
          x2: p2[0],
          y2: p2[1]
        },
        style: util["defaults"]({
          stroke: lineColors[colorIndex]
        }, lineStyle),
        silent: true
      });
      graphic_subPixelOptimizeLine(line.shape, lineStyle.lineWidth);
      axisGroup.add(line);
    }
  },
  minorSplitLine: function (axisView, axisGroup, axisModel, gridModel) {
    var axis = axisModel.axis;
    var minorSplitLineModel = axisModel.getModel('minorSplitLine');
    var lineStyleModel = minorSplitLineModel.getModel('lineStyle');
    var gridRect = gridModel.coordinateSystem.getRect();
    var isHorizontal = axis.isHorizontal();
    var minorTicksCoords = axis.getMinorTicksCoords();
    if (!minorTicksCoords.length) {
      return;
    }
    var p1 = [];
    var p2 = [];
    var lineStyle = lineStyleModel.getLineStyle();
    for (var i = 0; i < minorTicksCoords.length; i++) {
      for (var k = 0; k < minorTicksCoords[i].length; k++) {
        var tickCoord = axis.toGlobalCoord(minorTicksCoords[i][k].coord);
        if (isHorizontal) {
          p1[0] = tickCoord;
          p1[1] = gridRect.y;
          p2[0] = tickCoord;
          p2[1] = gridRect.y + gridRect.height;
        } else {
          p1[0] = gridRect.x;
          p1[1] = tickCoord;
          p2[0] = gridRect.x + gridRect.width;
          p2[1] = tickCoord;
        }
        var line = new shape_Line({
          anid: 'minor_line_' + minorTicksCoords[i][k].tickValue,
          autoBatch: true,
          shape: {
            x1: p1[0],
            y1: p1[1],
            x2: p2[0],
            y2: p2[1]
          },
          style: lineStyle,
          silent: true
        });
        graphic_subPixelOptimizeLine(line.shape, lineStyle.lineWidth);
        axisGroup.add(line);
      }
    }
  },
  splitArea: function (axisView, axisGroup, axisModel, gridModel) {
    rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel);
  }
};
var CartesianAxisView_CartesianXAxisView = /** @class */function (_super) {
  __extends(CartesianXAxisView, _super);
  function CartesianXAxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CartesianXAxisView.type;
    return _this;
  }
  CartesianXAxisView.type = 'xAxis';
  return CartesianXAxisView;
}(CartesianAxisView_CartesianAxisView);

var CartesianAxisView_CartesianYAxisView = /** @class */function (_super) {
  __extends(CartesianYAxisView, _super);
  function CartesianYAxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CartesianAxisView_CartesianXAxisView.type;
    return _this;
  }
  CartesianYAxisView.type = 'yAxis';
  return CartesianYAxisView;
}(CartesianAxisView_CartesianAxisView);

/* harmony default export */ var axis_CartesianAxisView = (CartesianAxisView_CartesianAxisView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/grid/installSimple.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









// Grid view
var installSimple_GridView = /** @class */function (_super) {
  __extends(GridView, _super);
  function GridView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = 'grid';
    return _this;
  }
  GridView.prototype.render = function (gridModel, ecModel) {
    this.group.removeAll();
    if (gridModel.get('show')) {
      this.group.add(new shape_Rect({
        shape: gridModel.coordinateSystem.getRect(),
        style: Object(util["defaults"])({
          fill: gridModel.get('backgroundColor')
        }, gridModel.getItemStyle()),
        silent: true,
        z2: -1
      }));
    }
  };
  GridView.type = 'grid';
  return GridView;
}(view_Component);
var extraOption = {
  // gridIndex: 0,
  // gridId: '',
  offset: 0
};
function installSimple_install(registers) {
  registers.registerComponentView(installSimple_GridView);
  registers.registerComponentModel(cartesian_GridModel);
  registers.registerCoordinateSystem('cartesian2d', cartesian_Grid);
  axisModelCreator(registers, 'x', AxisModel_CartesianAxisModel, extraOption);
  axisModelCreator(registers, 'y', AxisModel_CartesianAxisModel, extraOption);
  registers.registerComponentView(CartesianAxisView_CartesianXAxisView);
  registers.registerComponentView(CartesianAxisView_CartesianYAxisView);
  registers.registerPreprocessor(function (option) {
    // Only create grid when need
    if (option.xAxis && option.yAxis && !option.grid) {
      option.grid = {};
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/scatter/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function scatter_install_install(registers) {
  // In case developer forget to include grid component
  use(installSimple_install);
  registers.registerSeriesModel(ScatterSeries);
  registers.registerChartView(scatter_ScatterView);
  registers.registerLayout(pointsLayout('scatter'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/radarLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function radarLayout(ecModel) {
  ecModel.eachSeriesByType('radar', function (seriesModel) {
    var data = seriesModel.getData();
    var points = [];
    var coordSys = seriesModel.coordinateSystem;
    if (!coordSys) {
      return;
    }
    var axes = coordSys.getIndicatorAxes();
    util["each"](axes, function (axis, axisIndex) {
      data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) {
        points[dataIndex] = points[dataIndex] || [];
        var point = coordSys.dataToPoint(val, axisIndex);
        points[dataIndex][axisIndex] = isValidPoint(point) ? point : getValueMissingPoint(coordSys);
      });
    });
    // Close polygon
    data.each(function (idx) {
      // TODO
      // Is it appropriate to connect to the next data when some data is missing?
      // Or, should trade it like `connectNull` in line chart?
      var firstPoint = util["find"](points[idx], function (point) {
        return isValidPoint(point);
      }) || getValueMissingPoint(coordSys);
      // Copy the first actual point to the end of the array
      points[idx].push(firstPoint.slice());
      data.setItemLayout(idx, points[idx]);
    });
  });
}
function isValidPoint(point) {
  return !isNaN(point[0]) && !isNaN(point[1]);
}
function getValueMissingPoint(coordSys) {
  // It is error-prone to input [NaN, NaN] into polygon, polygon.
  // (probably cause problem when refreshing or animating)
  return [coordSys.cx, coordSys.cy];
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/backwardCompat.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck
// Backward compat for radar chart in 2

function radarBackwardCompat(option) {
  var polarOptArr = option.polar;
  if (polarOptArr) {
    if (!util["isArray"](polarOptArr)) {
      polarOptArr = [polarOptArr];
    }
    var polarNotRadar_1 = [];
    util["each"](polarOptArr, function (polarOpt, idx) {
      if (polarOpt.indicator) {
        if (polarOpt.type && !polarOpt.shape) {
          polarOpt.shape = polarOpt.type;
        }
        option.radar = option.radar || [];
        if (!util["isArray"](option.radar)) {
          option.radar = [option.radar];
        }
        option.radar.push(polarOpt);
      } else {
        polarNotRadar_1.push(polarOpt);
      }
    });
    option.polar = polarNotRadar_1;
  }
  util["each"](option.series, function (seriesOpt) {
    if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) {
      seriesOpt.radarIndex = seriesOpt.polarIndex;
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/RadarView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









var RadarView_RadarView = /** @class */function (_super) {
  __extends(RadarView, _super);
  function RadarView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = RadarView.type;
    return _this;
  }
  RadarView.prototype.render = function (seriesModel, ecModel, api) {
    var polar = seriesModel.coordinateSystem;
    var group = this.group;
    var data = seriesModel.getData();
    var oldData = this._data;
    function createSymbol(data, idx) {
      var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
      if (symbolType === 'none') {
        return;
      }
      var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));
      var symbolPath = symbol_createSymbol(symbolType, -1, -1, 2, 2);
      var symbolRotate = data.getItemVisual(idx, 'symbolRotate') || 0;
      symbolPath.attr({
        style: {
          strokeNoScale: true
        },
        z2: 100,
        scaleX: symbolSize[0] / 2,
        scaleY: symbolSize[1] / 2,
        rotation: symbolRotate * Math.PI / 180 || 0
      });
      return symbolPath;
    }
    function updateSymbols(oldPoints, newPoints, symbolGroup, data, idx, isInit) {
      // Simply rerender all
      symbolGroup.removeAll();
      for (var i = 0; i < newPoints.length - 1; i++) {
        var symbolPath = createSymbol(data, idx);
        if (symbolPath) {
          symbolPath.__dimIdx = i;
          if (oldPoints[i]) {
            symbolPath.setPosition(oldPoints[i]);
            graphic_namespaceObject[isInit ? 'initProps' : 'updateProps'](symbolPath, {
              x: newPoints[i][0],
              y: newPoints[i][1]
            }, seriesModel, idx);
          } else {
            symbolPath.setPosition(newPoints[i]);
          }
          symbolGroup.add(symbolPath);
        }
      }
    }
    function getInitialPoints(points) {
      return util["map"](points, function (pt) {
        return [polar.cx, polar.cy];
      });
    }
    data.diff(oldData).add(function (idx) {
      var points = data.getItemLayout(idx);
      if (!points) {
        return;
      }
      var polygon = new shape_Polygon();
      var polyline = new shape_Polyline();
      var target = {
        shape: {
          points: points
        }
      };
      polygon.shape.points = getInitialPoints(points);
      polyline.shape.points = getInitialPoints(points);
      initProps(polygon, target, seriesModel, idx);
      initProps(polyline, target, seriesModel, idx);
      var itemGroup = new graphic_Group();
      var symbolGroup = new graphic_Group();
      itemGroup.add(polyline);
      itemGroup.add(polygon);
      itemGroup.add(symbolGroup);
      updateSymbols(polyline.shape.points, points, symbolGroup, data, idx, true);
      data.setItemGraphicEl(idx, itemGroup);
    }).update(function (newIdx, oldIdx) {
      var itemGroup = oldData.getItemGraphicEl(oldIdx);
      var polyline = itemGroup.childAt(0);
      var polygon = itemGroup.childAt(1);
      var symbolGroup = itemGroup.childAt(2);
      var target = {
        shape: {
          points: data.getItemLayout(newIdx)
        }
      };
      if (!target.shape.points) {
        return;
      }
      updateSymbols(polyline.shape.points, target.shape.points, symbolGroup, data, newIdx, false);
      saveOldStyle(polygon);
      saveOldStyle(polyline);
      updateProps(polyline, target, seriesModel);
      updateProps(polygon, target, seriesModel);
      data.setItemGraphicEl(newIdx, itemGroup);
    }).remove(function (idx) {
      group.remove(oldData.getItemGraphicEl(idx));
    }).execute();
    data.eachItemGraphicEl(function (itemGroup, idx) {
      var itemModel = data.getItemModel(idx);
      var polyline = itemGroup.childAt(0);
      var polygon = itemGroup.childAt(1);
      var symbolGroup = itemGroup.childAt(2);
      // Radar uses the visual encoded from itemStyle.
      var itemStyle = data.getItemVisual(idx, 'style');
      var color = itemStyle.fill;
      group.add(itemGroup);
      polyline.useStyle(util["defaults"](itemModel.getModel('lineStyle').getLineStyle(), {
        fill: 'none',
        stroke: color
      }));
      setStatesStylesFromModel(polyline, itemModel, 'lineStyle');
      setStatesStylesFromModel(polygon, itemModel, 'areaStyle');
      var areaStyleModel = itemModel.getModel('areaStyle');
      var polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty();
      polygon.ignore = polygonIgnore;
      util["each"](['emphasis', 'select', 'blur'], function (stateName) {
        var stateModel = itemModel.getModel([stateName, 'areaStyle']);
        var stateIgnore = stateModel.isEmpty() && stateModel.parentModel.isEmpty();
        // Won't be ignore if normal state is not ignore.
        polygon.ensureState(stateName).ignore = stateIgnore && polygonIgnore;
      });
      polygon.useStyle(util["defaults"](areaStyleModel.getAreaStyle(), {
        fill: color,
        opacity: 0.7,
        decal: itemStyle.decal
      }));
      var emphasisModel = itemModel.getModel('emphasis');
      var itemHoverStyle = emphasisModel.getModel('itemStyle').getItemStyle();
      symbolGroup.eachChild(function (symbolPath) {
        if (symbolPath instanceof graphic_Image) {
          var pathStyle = symbolPath.style;
          symbolPath.useStyle(util["extend"]({
            // TODO other properties like x, y ?
            image: pathStyle.image,
            x: pathStyle.x,
            y: pathStyle.y,
            width: pathStyle.width,
            height: pathStyle.height
          }, itemStyle));
        } else {
          symbolPath.useStyle(itemStyle);
          symbolPath.setColor(color);
          symbolPath.style.strokeNoScale = true;
        }
        var pathEmphasisState = symbolPath.ensureState('emphasis');
        pathEmphasisState.style = util["clone"](itemHoverStyle);
        var defaultText = data.getStore().get(data.getDimensionIndex(symbolPath.__dimIdx), idx);
        (defaultText == null || isNaN(defaultText)) && (defaultText = '');
        setLabelStyle(symbolPath, getLabelStatesModels(itemModel), {
          labelFetcher: data.hostModel,
          labelDataIndex: idx,
          labelDimIndex: symbolPath.__dimIdx,
          defaultText: defaultText,
          inheritColor: color,
          defaultOpacity: itemStyle.opacity
        });
      });
      toggleHoverEmphasis(itemGroup, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
    });
    this._data = data;
  };
  RadarView.prototype.remove = function () {
    this.group.removeAll();
    this._data = null;
  };
  RadarView.type = 'radar';
  return RadarView;
}(Chart);
/* harmony default export */ var radar_RadarView = (RadarView_RadarView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/RadarSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var RadarSeries_RadarSeriesModel = /** @class */function (_super) {
  __extends(RadarSeriesModel, _super);
  function RadarSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = RadarSeriesModel.type;
    _this.hasSymbolVisual = true;
    return _this;
  }
  // Overwrite
  RadarSeriesModel.prototype.init = function (option) {
    _super.prototype.init.apply(this, arguments);
    // Enable legend selection for each data item
    // Use a function instead of direct access because data reference may changed
    this.legendVisualProvider = new visual_LegendVisualProvider(util["bind"](this.getData, this), util["bind"](this.getRawData, this));
  };
  RadarSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return createSeriesDataSimply(this, {
      generateCoord: 'indicator_',
      generateCoordCount: Infinity
    });
  };
  RadarSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    var data = this.getData();
    var coordSys = this.coordinateSystem;
    var indicatorAxes = coordSys.getIndicatorAxes();
    var name = this.getData().getName(dataIndex);
    var nameToDisplay = name === '' ? this.name : name;
    var markerColor = retrieveVisualColorForTooltipMarker(this, dataIndex);
    return createTooltipMarkup('section', {
      header: nameToDisplay,
      sortBlocks: true,
      blocks: util["map"](indicatorAxes, function (axis) {
        var val = data.get(data.mapDimension(axis.dim), dataIndex);
        return createTooltipMarkup('nameValue', {
          markerType: 'subItem',
          markerColor: markerColor,
          name: axis.name,
          value: val,
          sortParam: val
        });
      })
    });
  };
  RadarSeriesModel.prototype.getTooltipPosition = function (dataIndex) {
    if (dataIndex != null) {
      var data_1 = this.getData();
      var coordSys = this.coordinateSystem;
      var values = data_1.getValues(util["map"](coordSys.dimensions, function (dim) {
        return data_1.mapDimension(dim);
      }), dataIndex);
      for (var i = 0, len = values.length; i < len; i++) {
        if (!isNaN(values[i])) {
          var indicatorAxes = coordSys.getIndicatorAxes();
          return coordSys.coordToPoint(indicatorAxes[i].dataToCoord(values[i]), i);
        }
      }
    }
  };
  RadarSeriesModel.type = 'series.radar';
  RadarSeriesModel.dependencies = ['radar'];
  RadarSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    colorBy: 'data',
    coordinateSystem: 'radar',
    legendHoverLink: true,
    radarIndex: 0,
    lineStyle: {
      width: 2,
      type: 'solid',
      join: 'round'
    },
    label: {
      position: 'top'
    },
    // areaStyle: {
    // },
    // itemStyle: {}
    symbolSize: 8
    // symbolRotate: null
  };
  return RadarSeriesModel;
}(Series);
/* harmony default export */ var RadarSeries = (RadarSeries_RadarSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/radar/RadarModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var valueAxisDefault = axisDefault.value;
function defaultsShow(opt, show) {
  return util["defaults"]({
    show: show
  }, opt);
}
var RadarModel_RadarModel = /** @class */function (_super) {
  __extends(RadarModel, _super);
  function RadarModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = RadarModel.type;
    return _this;
  }
  RadarModel.prototype.optionUpdated = function () {
    var boundaryGap = this.get('boundaryGap');
    var splitNumber = this.get('splitNumber');
    var scale = this.get('scale');
    var axisLine = this.get('axisLine');
    var axisTick = this.get('axisTick');
    // let axisType = this.get('axisType');
    var axisLabel = this.get('axisLabel');
    var nameTextStyle = this.get('axisName');
    var showName = this.get(['axisName', 'show']);
    var nameFormatter = this.get(['axisName', 'formatter']);
    var nameGap = this.get('axisNameGap');
    var triggerEvent = this.get('triggerEvent');
    var indicatorModels = util["map"](this.get('indicator') || [], function (indicatorOpt) {
      // PENDING
      if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) {
        indicatorOpt.min = 0;
      } else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) {
        indicatorOpt.max = 0;
      }
      var iNameTextStyle = nameTextStyle;
      if (indicatorOpt.color != null) {
        iNameTextStyle = util["defaults"]({
          color: indicatorOpt.color
        }, nameTextStyle);
      }
      // Use same configuration
      var innerIndicatorOpt = util["merge"](util["clone"](indicatorOpt), {
        boundaryGap: boundaryGap,
        splitNumber: splitNumber,
        scale: scale,
        axisLine: axisLine,
        axisTick: axisTick,
        // axisType: axisType,
        axisLabel: axisLabel,
        // Compatible with 2 and use text
        name: indicatorOpt.text,
        showName: showName,
        nameLocation: 'end',
        nameGap: nameGap,
        // min: 0,
        nameTextStyle: iNameTextStyle,
        triggerEvent: triggerEvent
      }, false);
      if (util["isString"](nameFormatter)) {
        var indName = innerIndicatorOpt.name;
        innerIndicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : '');
      } else if (util["isFunction"](nameFormatter)) {
        innerIndicatorOpt.name = nameFormatter(innerIndicatorOpt.name, innerIndicatorOpt);
      }
      var model = new model_Model(innerIndicatorOpt, null, this.ecModel);
      util["mixin"](model, AxisModelCommonMixin.prototype);
      // For triggerEvent.
      model.mainType = 'radar';
      model.componentIndex = this.componentIndex;
      return model;
    }, this);
    this._indicatorModels = indicatorModels;
  };
  RadarModel.prototype.getIndicatorModels = function () {
    return this._indicatorModels;
  };
  RadarModel.type = 'radar';
  RadarModel.defaultOption = {
    // zlevel: 0,
    z: 0,
    center: ['50%', '50%'],
    radius: '75%',
    startAngle: 90,
    axisName: {
      show: true
      // formatter: null
      // textStyle: {}
    },
    boundaryGap: [0, 0],
    splitNumber: 5,
    axisNameGap: 15,
    scale: false,
    // Polygon or circle
    shape: 'polygon',
    axisLine: util["merge"]({
      lineStyle: {
        color: '#bbb'
      }
    }, valueAxisDefault.axisLine),
    axisLabel: defaultsShow(valueAxisDefault.axisLabel, false),
    axisTick: defaultsShow(valueAxisDefault.axisTick, false),
    // axisType: 'value',
    splitLine: defaultsShow(valueAxisDefault.splitLine, true),
    splitArea: defaultsShow(valueAxisDefault.splitArea, true),
    // {text, min, max}
    indicator: []
  };
  return RadarModel;
}(Component);
/* harmony default export */ var radar_RadarModel = (RadarModel_RadarModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/radar/RadarView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var RadarView_axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];
var radar_RadarView_RadarView = /** @class */function (_super) {
  __extends(RadarView, _super);
  function RadarView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = RadarView.type;
    return _this;
  }
  RadarView.prototype.render = function (radarModel, ecModel, api) {
    var group = this.group;
    group.removeAll();
    this._buildAxes(radarModel);
    this._buildSplitLineAndArea(radarModel);
  };
  RadarView.prototype._buildAxes = function (radarModel) {
    var radar = radarModel.coordinateSystem;
    var indicatorAxes = radar.getIndicatorAxes();
    var axisBuilders = util["map"](indicatorAxes, function (indicatorAxis) {
      var axisName = indicatorAxis.model.get('showName') ? indicatorAxis.name : ''; // hide name
      var axisBuilder = new axis_AxisBuilder(indicatorAxis.model, {
        axisName: axisName,
        position: [radar.cx, radar.cy],
        rotation: indicatorAxis.angle,
        labelDirection: -1,
        tickDirection: -1,
        nameDirection: 1
      });
      return axisBuilder;
    });
    util["each"](axisBuilders, function (axisBuilder) {
      util["each"](RadarView_axisBuilderAttrs, axisBuilder.add, axisBuilder);
      this.group.add(axisBuilder.getGroup());
    }, this);
  };
  RadarView.prototype._buildSplitLineAndArea = function (radarModel) {
    var radar = radarModel.coordinateSystem;
    var indicatorAxes = radar.getIndicatorAxes();
    if (!indicatorAxes.length) {
      return;
    }
    var shape = radarModel.get('shape');
    var splitLineModel = radarModel.getModel('splitLine');
    var splitAreaModel = radarModel.getModel('splitArea');
    var lineStyleModel = splitLineModel.getModel('lineStyle');
    var areaStyleModel = splitAreaModel.getModel('areaStyle');
    var showSplitLine = splitLineModel.get('show');
    var showSplitArea = splitAreaModel.get('show');
    var splitLineColors = lineStyleModel.get('color');
    var splitAreaColors = areaStyleModel.get('color');
    var splitLineColorsArr = util["isArray"](splitLineColors) ? splitLineColors : [splitLineColors];
    var splitAreaColorsArr = util["isArray"](splitAreaColors) ? splitAreaColors : [splitAreaColors];
    var splitLines = [];
    var splitAreas = [];
    function getColorIndex(areaOrLine, areaOrLineColorList, idx) {
      var colorIndex = idx % areaOrLineColorList.length;
      areaOrLine[colorIndex] = areaOrLine[colorIndex] || [];
      return colorIndex;
    }
    if (shape === 'circle') {
      var ticksRadius = indicatorAxes[0].getTicksCoords();
      var cx = radar.cx;
      var cy = radar.cy;
      for (var i = 0; i < ticksRadius.length; i++) {
        if (showSplitLine) {
          var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);
          splitLines[colorIndex].push(new shape_Circle({
            shape: {
              cx: cx,
              cy: cy,
              r: ticksRadius[i].coord
            }
          }));
        }
        if (showSplitArea && i < ticksRadius.length - 1) {
          var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i);
          splitAreas[colorIndex].push(new shape_Ring({
            shape: {
              cx: cx,
              cy: cy,
              r0: ticksRadius[i].coord,
              r: ticksRadius[i + 1].coord
            }
          }));
        }
      }
    }
    // Polyyon
    else {
      var realSplitNumber_1;
      var axesTicksPoints = util["map"](indicatorAxes, function (indicatorAxis, idx) {
        var ticksCoords = indicatorAxis.getTicksCoords();
        realSplitNumber_1 = realSplitNumber_1 == null ? ticksCoords.length - 1 : Math.min(ticksCoords.length - 1, realSplitNumber_1);
        return util["map"](ticksCoords, function (tickCoord) {
          return radar.coordToPoint(tickCoord.coord, idx);
        });
      });
      var prevPoints = [];
      for (var i = 0; i <= realSplitNumber_1; i++) {
        var points = [];
        for (var j = 0; j < indicatorAxes.length; j++) {
          points.push(axesTicksPoints[j][i]);
        }
        // Close
        if (points[0]) {
          points.push(points[0].slice());
        } else {
          if (false) {}
        }
        if (showSplitLine) {
          var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);
          splitLines[colorIndex].push(new shape_Polyline({
            shape: {
              points: points
            }
          }));
        }
        if (showSplitArea && prevPoints) {
          var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i - 1);
          splitAreas[colorIndex].push(new shape_Polygon({
            shape: {
              points: points.concat(prevPoints)
            }
          }));
        }
        prevPoints = points.slice().reverse();
      }
    }
    var lineStyle = lineStyleModel.getLineStyle();
    var areaStyle = areaStyleModel.getAreaStyle();
    // Add splitArea before splitLine
    util["each"](splitAreas, function (splitAreas, idx) {
      this.group.add(graphic_mergePath(splitAreas, {
        style: util["defaults"]({
          stroke: 'none',
          fill: splitAreaColorsArr[idx % splitAreaColorsArr.length]
        }, areaStyle),
        silent: true
      }));
    }, this);
    util["each"](splitLines, function (splitLines, idx) {
      this.group.add(graphic_mergePath(splitLines, {
        style: util["defaults"]({
          fill: 'none',
          stroke: splitLineColorsArr[idx % splitLineColorsArr.length]
        }, lineStyle),
        silent: true
      }));
    }, this);
  };
  RadarView.type = 'radar';
  return RadarView;
}(view_Component);
/* harmony default export */ var component_radar_RadarView = (radar_RadarView_RadarView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/radar/IndicatorAxis.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var IndicatorAxis_IndicatorAxis = /** @class */function (_super) {
  __extends(IndicatorAxis, _super);
  function IndicatorAxis(dim, scale, radiusExtent) {
    var _this = _super.call(this, dim, scale, radiusExtent) || this;
    _this.type = 'value';
    _this.angle = 0;
    _this.name = '';
    return _this;
  }
  return IndicatorAxis;
}(coord_Axis);
/* harmony default export */ var radar_IndicatorAxis = (IndicatorAxis_IndicatorAxis);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/radar/Radar.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO clockwise





var Radar_Radar = /** @class */function () {
  function Radar(radarModel, ecModel, api) {
    /**
     *
     * Radar dimensions
     */
    this.dimensions = [];
    this._model = radarModel;
    this._indicatorAxes = Object(util["map"])(radarModel.getIndicatorModels(), function (indicatorModel, idx) {
      var dim = 'indicator_' + idx;
      var indicatorAxis = new radar_IndicatorAxis(dim, new Interval()
      // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale()
      );
      indicatorAxis.name = indicatorModel.get('name');
      // Inject model and axis
      indicatorAxis.model = indicatorModel;
      indicatorModel.axis = indicatorAxis;
      this.dimensions.push(dim);
      return indicatorAxis;
    }, this);
    this.resize(radarModel, api);
  }
  Radar.prototype.getIndicatorAxes = function () {
    return this._indicatorAxes;
  };
  Radar.prototype.dataToPoint = function (value, indicatorIndex) {
    var indicatorAxis = this._indicatorAxes[indicatorIndex];
    return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex);
  };
  // TODO: API should be coordToPoint([coord, indicatorIndex])
  Radar.prototype.coordToPoint = function (coord, indicatorIndex) {
    var indicatorAxis = this._indicatorAxes[indicatorIndex];
    var angle = indicatorAxis.angle;
    var x = this.cx + coord * Math.cos(angle);
    var y = this.cy - coord * Math.sin(angle);
    return [x, y];
  };
  Radar.prototype.pointToData = function (pt) {
    var dx = pt[0] - this.cx;
    var dy = pt[1] - this.cy;
    var radius = Math.sqrt(dx * dx + dy * dy);
    dx /= radius;
    dy /= radius;
    var radian = Math.atan2(-dy, dx);
    // Find the closest angle
    // FIXME index can calculated directly
    var minRadianDiff = Infinity;
    var closestAxis;
    var closestAxisIdx = -1;
    for (var i = 0; i < this._indicatorAxes.length; i++) {
      var indicatorAxis = this._indicatorAxes[i];
      var diff = Math.abs(radian - indicatorAxis.angle);
      if (diff < minRadianDiff) {
        closestAxis = indicatorAxis;
        closestAxisIdx = i;
        minRadianDiff = diff;
      }
    }
    return [closestAxisIdx, +(closestAxis && closestAxis.coordToData(radius))];
  };
  Radar.prototype.resize = function (radarModel, api) {
    var center = radarModel.get('center');
    var viewWidth = api.getWidth();
    var viewHeight = api.getHeight();
    var viewSize = Math.min(viewWidth, viewHeight) / 2;
    this.cx = number_parsePercent(center[0], viewWidth);
    this.cy = number_parsePercent(center[1], viewHeight);
    this.startAngle = radarModel.get('startAngle') * Math.PI / 180;
    // radius may be single value like `20`, `'80%'`, or array like `[10, '80%']`
    var radius = radarModel.get('radius');
    if (Object(util["isString"])(radius) || Object(util["isNumber"])(radius)) {
      radius = [0, radius];
    }
    this.r0 = number_parsePercent(radius[0], viewSize);
    this.r = number_parsePercent(radius[1], viewSize);
    Object(util["each"])(this._indicatorAxes, function (indicatorAxis, idx) {
      indicatorAxis.setExtent(this.r0, this.r);
      var angle = this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length;
      // Normalize to [-PI, PI]
      angle = Math.atan2(Math.sin(angle), Math.cos(angle));
      indicatorAxis.angle = angle;
    }, this);
  };
  Radar.prototype.update = function (ecModel, api) {
    var indicatorAxes = this._indicatorAxes;
    var radarModel = this._model;
    Object(util["each"])(indicatorAxes, function (indicatorAxis) {
      indicatorAxis.scale.setExtent(Infinity, -Infinity);
    });
    ecModel.eachSeriesByType('radar', function (radarSeries, idx) {
      if (radarSeries.get('coordinateSystem') !== 'radar'
      // @ts-ignore
      || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel) {
        return;
      }
      var data = radarSeries.getData();
      Object(util["each"])(indicatorAxes, function (indicatorAxis) {
        indicatorAxis.scale.unionExtentFromData(data, data.mapDimension(indicatorAxis.dim));
      });
    }, this);
    var splitNumber = radarModel.get('splitNumber');
    var dummyScale = new Interval();
    dummyScale.setExtent(0, splitNumber);
    dummyScale.setInterval(1);
    // Force all the axis fixing the maxSplitNumber.
    Object(util["each"])(indicatorAxes, function (indicatorAxis, idx) {
      alignScaleTicks(indicatorAxis.scale, indicatorAxis.model, dummyScale);
    });
  };
  Radar.prototype.convertToPixel = function (ecModel, finder, value) {
    console.warn('Not implemented.');
    return null;
  };
  Radar.prototype.convertFromPixel = function (ecModel, finder, pixel) {
    console.warn('Not implemented.');
    return null;
  };
  Radar.prototype.containPoint = function (point) {
    console.warn('Not implemented.');
    return false;
  };
  Radar.create = function (ecModel, api) {
    var radarList = [];
    ecModel.eachComponent('radar', function (radarModel) {
      var radar = new Radar(radarModel, ecModel, api);
      radarList.push(radar);
      radarModel.coordinateSystem = radar;
    });
    ecModel.eachSeriesByType('radar', function (radarSeries) {
      if (radarSeries.get('coordinateSystem') === 'radar') {
        // Inject coordinate system
        // @ts-ignore
        radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0];
      }
    });
    return radarList;
  };
  /**
   * Radar dimensions is based on the data
   */
  Radar.dimensions = [];
  return Radar;
}();
/* harmony default export */ var radar_Radar = (Radar_Radar);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/radar/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function radar_install_install(registers) {
  registers.registerCoordinateSystem('radar', radar_Radar);
  registers.registerComponentModel(radar_RadarModel);
  registers.registerComponentView(component_radar_RadarView);
  registers.registerVisual({
    seriesType: 'radar',
    reset: function (seriesModel) {
      var data = seriesModel.getData();
      // itemVisual symbol is for selected data
      data.each(function (idx) {
        data.setItemVisual(idx, 'legendIcon', 'roundRect');
      });
      // visual is for unselected data
      data.setVisual('legendIcon', 'roundRect');
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







function chart_radar_install_install(registers) {
  use(radar_install_install);
  registers.registerChartView(radar_RadarView);
  registers.registerSeriesModel(RadarSeries);
  registers.registerLayout(radarLayout);
  registers.registerProcessor(dataFilter('radar'));
  registers.registerPreprocessor(radarBackwardCompat);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/interactionMutex.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck


var ATTR = '\0_ec_interaction_mutex';
function take(zr, resourceKey, userKey) {
  var store = getStore(zr);
  store[resourceKey] = userKey;
}
function release(zr, resourceKey, userKey) {
  var store = getStore(zr);
  var uKey = store[resourceKey];
  if (uKey === userKey) {
    store[resourceKey] = null;
  }
}
function isTaken(zr, resourceKey) {
  return !!getStore(zr)[resourceKey];
}
function getStore(zr) {
  return zr[ATTR] || (zr[ATTR] = {});
}
/**
 * payload: {
 *     type: 'takeGlobalCursor',
 *     key: 'dataZoomSelect', or 'brush', or ...,
 *         If no userKey, release global cursor.
 * }
 */
// TODO: SELF REGISTERED.
registerAction({
  type: 'takeGlobalCursor',
  event: 'globalCursorTaken',
  update: 'update'
}, util["noop"]);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/RoamController.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





;
var RoamController_RoamController = /** @class */function (_super) {
  __extends(RoamController, _super);
  function RoamController(zr) {
    var _this = _super.call(this) || this;
    _this._zr = zr;
    // Avoid two roamController bind the same handler
    var mousedownHandler = Object(util["bind"])(_this._mousedownHandler, _this);
    var mousemoveHandler = Object(util["bind"])(_this._mousemoveHandler, _this);
    var mouseupHandler = Object(util["bind"])(_this._mouseupHandler, _this);
    var mousewheelHandler = Object(util["bind"])(_this._mousewheelHandler, _this);
    var pinchHandler = Object(util["bind"])(_this._pinchHandler, _this);
    /**
     * Notice: only enable needed types. For example, if 'zoom'
     * is not needed, 'zoom' should not be enabled, otherwise
     * default mousewheel behaviour (scroll page) will be disabled.
     */
    _this.enable = function (controlType, opt) {
      // Disable previous first
      this.disable();
      this._opt = Object(util["defaults"])(Object(util["clone"])(opt) || {}, {
        zoomOnMouseWheel: true,
        moveOnMouseMove: true,
        // By default, wheel do not trigger move.
        moveOnMouseWheel: false,
        preventDefaultMouseMove: true
      });
      if (controlType == null) {
        controlType = true;
      }
      if (controlType === true || controlType === 'move' || controlType === 'pan') {
        zr.on('mousedown', mousedownHandler);
        zr.on('mousemove', mousemoveHandler);
        zr.on('mouseup', mouseupHandler);
      }
      if (controlType === true || controlType === 'scale' || controlType === 'zoom') {
        zr.on('mousewheel', mousewheelHandler);
        zr.on('pinch', pinchHandler);
      }
    };
    _this.disable = function () {
      zr.off('mousedown', mousedownHandler);
      zr.off('mousemove', mousemoveHandler);
      zr.off('mouseup', mouseupHandler);
      zr.off('mousewheel', mousewheelHandler);
      zr.off('pinch', pinchHandler);
    };
    return _this;
  }
  RoamController.prototype.isDragging = function () {
    return this._dragging;
  };
  RoamController.prototype.isPinching = function () {
    return this._pinching;
  };
  RoamController.prototype.setPointerChecker = function (pointerChecker) {
    this.pointerChecker = pointerChecker;
  };
  RoamController.prototype.dispose = function () {
    this.disable();
  };
  RoamController.prototype._mousedownHandler = function (e) {
    if (isMiddleOrRightButtonOnMouseUpDown(e)) {
      return;
    }
    var el = e.target;
    while (el) {
      if (el.draggable) {
        return;
      }
      // check if host is draggable
      el = el.__hostTarget || el.parent;
    }
    var x = e.offsetX;
    var y = e.offsetY;
    // Only check on mosedown, but not mousemove.
    // Mouse can be out of target when mouse moving.
    if (this.pointerChecker && this.pointerChecker(e, x, y)) {
      this._x = x;
      this._y = y;
      this._dragging = true;
    }
  };
  RoamController.prototype._mousemoveHandler = function (e) {
    if (!this._dragging || !isAvailableBehavior('moveOnMouseMove', e, this._opt) || e.gestureEvent === 'pinch' || isTaken(this._zr, 'globalPan')) {
      return;
    }
    var x = e.offsetX;
    var y = e.offsetY;
    var oldX = this._x;
    var oldY = this._y;
    var dx = x - oldX;
    var dy = y - oldY;
    this._x = x;
    this._y = y;
    this._opt.preventDefaultMouseMove && stop(e.event);
    RoamController_trigger(this, 'pan', 'moveOnMouseMove', e, {
      dx: dx,
      dy: dy,
      oldX: oldX,
      oldY: oldY,
      newX: x,
      newY: y,
      isAvailableBehavior: null
    });
  };
  RoamController.prototype._mouseupHandler = function (e) {
    if (!isMiddleOrRightButtonOnMouseUpDown(e)) {
      this._dragging = false;
    }
  };
  RoamController.prototype._mousewheelHandler = function (e) {
    var shouldZoom = isAvailableBehavior('zoomOnMouseWheel', e, this._opt);
    var shouldMove = isAvailableBehavior('moveOnMouseWheel', e, this._opt);
    var wheelDelta = e.wheelDelta;
    var absWheelDeltaDelta = Math.abs(wheelDelta);
    var originX = e.offsetX;
    var originY = e.offsetY;
    // wheelDelta maybe -0 in chrome mac.
    if (wheelDelta === 0 || !shouldZoom && !shouldMove) {
      return;
    }
    // If both `shouldZoom` and `shouldMove` is true, trigger
    // their event both, and the final behavior is determined
    // by event listener themselves.
    if (shouldZoom) {
      // Convenience:
      // Mac and VM Windows on Mac: scroll up: zoom out.
      // Windows: scroll up: zoom in.
      // FIXME: Should do more test in different environment.
      // wheelDelta is too complicated in difference nvironment
      // (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel),
      // although it has been normallized by zrender.
      // wheelDelta of mouse wheel is bigger than touch pad.
      var factor = absWheelDeltaDelta > 3 ? 1.4 : absWheelDeltaDelta > 1 ? 1.2 : 1.1;
      var scale = wheelDelta > 0 ? factor : 1 / factor;
      checkPointerAndTrigger(this, 'zoom', 'zoomOnMouseWheel', e, {
        scale: scale,
        originX: originX,
        originY: originY,
        isAvailableBehavior: null
      });
    }
    if (shouldMove) {
      // FIXME: Should do more test in different environment.
      var absDelta = Math.abs(wheelDelta);
      // wheelDelta of mouse wheel is bigger than touch pad.
      var scrollDelta = (wheelDelta > 0 ? 1 : -1) * (absDelta > 3 ? 0.4 : absDelta > 1 ? 0.15 : 0.05);
      checkPointerAndTrigger(this, 'scrollMove', 'moveOnMouseWheel', e, {
        scrollDelta: scrollDelta,
        originX: originX,
        originY: originY,
        isAvailableBehavior: null
      });
    }
  };
  RoamController.prototype._pinchHandler = function (e) {
    if (isTaken(this._zr, 'globalPan')) {
      return;
    }
    var scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1;
    checkPointerAndTrigger(this, 'zoom', null, e, {
      scale: scale,
      originX: e.pinchX,
      originY: e.pinchY,
      isAvailableBehavior: null
    });
  };
  return RoamController;
}(core_Eventful);
function checkPointerAndTrigger(controller, eventName, behaviorToCheck, e, contollerEvent) {
  if (controller.pointerChecker && controller.pointerChecker(e, contollerEvent.originX, contollerEvent.originY)) {
    // When mouse is out of roamController rect,
    // default befavoius should not be be disabled, otherwise
    // page sliding is disabled, contrary to expectation.
    stop(e.event);
    RoamController_trigger(controller, eventName, behaviorToCheck, e, contollerEvent);
  }
}
function RoamController_trigger(controller, eventName, behaviorToCheck, e, contollerEvent) {
  // Also provide behavior checker for event listener, for some case that
  // multiple components share one listener.
  contollerEvent.isAvailableBehavior = Object(util["bind"])(isAvailableBehavior, null, behaviorToCheck, e);
  // TODO should not have type issue.
  controller.trigger(eventName, contollerEvent);
}
// settings: {
//     zoomOnMouseWheel
//     moveOnMouseMove
//     moveOnMouseWheel
// }
// The value can be: true / false / 'shift' / 'ctrl' / 'alt'.
function isAvailableBehavior(behaviorToCheck, e, settings) {
  var setting = settings[behaviorToCheck];
  return !behaviorToCheck || setting && (!Object(util["isString"])(setting) || e.event[setting + 'Key']);
}
/* harmony default export */ var helper_RoamController = (RoamController_RoamController);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/roamHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * For geo and graph.
 */
function updateViewOnPan(controllerHost, dx, dy) {
  var target = controllerHost.target;
  target.x += dx;
  target.y += dy;
  target.dirty();
}
/**
 * For geo and graph.
 */
function updateViewOnZoom(controllerHost, zoomDelta, zoomX, zoomY) {
  var target = controllerHost.target;
  var zoomLimit = controllerHost.zoomLimit;
  var newZoom = controllerHost.zoom = controllerHost.zoom || 1;
  newZoom *= zoomDelta;
  if (zoomLimit) {
    var zoomMin = zoomLimit.min || 0;
    var zoomMax = zoomLimit.max || Infinity;
    newZoom = Math.max(Math.min(zoomMax, newZoom), zoomMin);
  }
  var zoomScale = newZoom / controllerHost.zoom;
  controllerHost.zoom = newZoom;
  // Keep the mouse center when scaling
  target.x -= (zoomX - target.x) * (zoomScale - 1);
  target.y -= (zoomY - target.y) * (zoomScale - 1);
  target.scaleX *= zoomScale;
  target.scaleY *= zoomScale;
  target.dirty();
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/cursorHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var IRRELEVANT_EXCLUDES = {
  'axisPointer': 1,
  'tooltip': 1,
  'brush': 1
};
/**
 * Avoid that: mouse click on a elements that is over geo or graph,
 * but roam is triggered.
 */
function onIrrelevantElement(e, api, targetCoordSysModel) {
  var model = api.getComponentByElement(e.topTarget);
  // If model is axisModel, it works only if it is injected with coordinateSystem.
  var coordSys = model && model.coordinateSystem;
  return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && coordSys && coordSys.model !== targetCoordSysModel;
}
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/parseXML.js

function parseXML(svg) {
    if (Object(util["isString"])(svg)) {
        var parser = new DOMParser();
        svg = parser.parseFromString(svg, 'text/xml');
    }
    var svgNode = svg;
    if (svgNode.nodeType === 9) {
        svgNode = svgNode.firstChild;
    }
    while (svgNode.nodeName.toLowerCase() !== 'svg' || svgNode.nodeType !== 1) {
        svgNode = svgNode.nextSibling;
    }
    return svgNode;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/parseSVG.js















;
var nodeParsers;
var INHERITABLE_STYLE_ATTRIBUTES_MAP = {
    'fill': 'fill',
    'stroke': 'stroke',
    'stroke-width': 'lineWidth',
    'opacity': 'opacity',
    'fill-opacity': 'fillOpacity',
    'stroke-opacity': 'strokeOpacity',
    'stroke-dasharray': 'lineDash',
    'stroke-dashoffset': 'lineDashOffset',
    'stroke-linecap': 'lineCap',
    'stroke-linejoin': 'lineJoin',
    'stroke-miterlimit': 'miterLimit',
    'font-family': 'fontFamily',
    'font-size': 'fontSize',
    'font-style': 'fontStyle',
    'font-weight': 'fontWeight',
    'text-anchor': 'textAlign',
    'visibility': 'visibility',
    'display': 'display'
};
var INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS = Object(util["keys"])(INHERITABLE_STYLE_ATTRIBUTES_MAP);
var SELF_STYLE_ATTRIBUTES_MAP = {
    'alignment-baseline': 'textBaseline',
    'stop-color': 'stopColor'
};
var SELF_STYLE_ATTRIBUTES_MAP_KEYS = Object(util["keys"])(SELF_STYLE_ATTRIBUTES_MAP);
var parseSVG_SVGParser = (function () {
    function SVGParser() {
        this._defs = {};
        this._root = null;
    }
    SVGParser.prototype.parse = function (xml, opt) {
        opt = opt || {};
        var svg = parseXML(xml);
        if (false) {}
        this._defsUsePending = [];
        var root = new graphic_Group();
        this._root = root;
        var named = [];
        var viewBox = svg.getAttribute('viewBox') || '';
        var width = parseFloat((svg.getAttribute('width') || opt.width));
        var height = parseFloat((svg.getAttribute('height') || opt.height));
        isNaN(width) && (width = null);
        isNaN(height) && (height = null);
        parseAttributes(svg, root, null, true, false);
        var child = svg.firstChild;
        while (child) {
            this._parseNode(child, root, named, null, false, false);
            child = child.nextSibling;
        }
        applyDefs(this._defs, this._defsUsePending);
        this._defsUsePending = [];
        var viewBoxRect;
        var viewBoxTransform;
        if (viewBox) {
            var viewBoxArr = splitNumberSequence(viewBox);
            if (viewBoxArr.length >= 4) {
                viewBoxRect = {
                    x: parseFloat((viewBoxArr[0] || 0)),
                    y: parseFloat((viewBoxArr[1] || 0)),
                    width: parseFloat(viewBoxArr[2]),
                    height: parseFloat(viewBoxArr[3])
                };
            }
        }
        if (viewBoxRect && width != null && height != null) {
            viewBoxTransform = makeViewBoxTransform(viewBoxRect, { x: 0, y: 0, width: width, height: height });
            if (!opt.ignoreViewBox) {
                var elRoot = root;
                root = new graphic_Group();
                root.add(elRoot);
                elRoot.scaleX = elRoot.scaleY = viewBoxTransform.scale;
                elRoot.x = viewBoxTransform.x;
                elRoot.y = viewBoxTransform.y;
            }
        }
        if (!opt.ignoreRootClip && width != null && height != null) {
            root.setClipPath(new shape_Rect({
                shape: { x: 0, y: 0, width: width, height: height }
            }));
        }
        return {
            root: root,
            width: width,
            height: height,
            viewBoxRect: viewBoxRect,
            viewBoxTransform: viewBoxTransform,
            named: named
        };
    };
    SVGParser.prototype._parseNode = function (xmlNode, parentGroup, named, namedFrom, isInDefs, isInText) {
        var nodeName = xmlNode.nodeName.toLowerCase();
        var el;
        var namedFromForSub = namedFrom;
        if (nodeName === 'defs') {
            isInDefs = true;
        }
        if (nodeName === 'text') {
            isInText = true;
        }
        if (nodeName === 'defs' || nodeName === 'switch') {
            el = parentGroup;
        }
        else {
            if (!isInDefs) {
                var parser_1 = nodeParsers[nodeName];
                if (parser_1 && Object(util["hasOwn"])(nodeParsers, nodeName)) {
                    el = parser_1.call(this, xmlNode, parentGroup);
                    var nameAttr = xmlNode.getAttribute('name');
                    if (nameAttr) {
                        var newNamed = {
                            name: nameAttr,
                            namedFrom: null,
                            svgNodeTagLower: nodeName,
                            el: el
                        };
                        named.push(newNamed);
                        if (nodeName === 'g') {
                            namedFromForSub = newNamed;
                        }
                    }
                    else if (namedFrom) {
                        named.push({
                            name: namedFrom.name,
                            namedFrom: namedFrom,
                            svgNodeTagLower: nodeName,
                            el: el
                        });
                    }
                    parentGroup.add(el);
                }
            }
            var parser = paintServerParsers[nodeName];
            if (parser && Object(util["hasOwn"])(paintServerParsers, nodeName)) {
                var def = parser.call(this, xmlNode);
                var id = xmlNode.getAttribute('id');
                if (id) {
                    this._defs[id] = def;
                }
            }
        }
        if (el && el.isGroup) {
            var child = xmlNode.firstChild;
            while (child) {
                if (child.nodeType === 1) {
                    this._parseNode(child, el, named, namedFromForSub, isInDefs, isInText);
                }
                else if (child.nodeType === 3 && isInText) {
                    this._parseText(child, el);
                }
                child = child.nextSibling;
            }
        }
    };
    SVGParser.prototype._parseText = function (xmlNode, parentGroup) {
        var text = new graphic_TSpan({
            style: {
                text: xmlNode.textContent
            },
            silent: true,
            x: this._textX || 0,
            y: this._textY || 0
        });
        inheritStyle(parentGroup, text);
        parseAttributes(xmlNode, text, this._defsUsePending, false, false);
        applyTextAlignment(text, parentGroup);
        var textStyle = text.style;
        var fontSize = textStyle.fontSize;
        if (fontSize && fontSize < 9) {
            textStyle.fontSize = 9;
            text.scaleX *= fontSize / 9;
            text.scaleY *= fontSize / 9;
        }
        var font = (textStyle.fontSize || textStyle.fontFamily) && [
            textStyle.fontStyle,
            textStyle.fontWeight,
            (textStyle.fontSize || 12) + 'px',
            textStyle.fontFamily || 'sans-serif'
        ].join(' ');
        textStyle.font = font;
        var rect = text.getBoundingRect();
        this._textX += rect.width;
        parentGroup.add(text);
        return text;
    };
    SVGParser.internalField = (function () {
        nodeParsers = {
            'g': function (xmlNode, parentGroup) {
                var g = new graphic_Group();
                inheritStyle(parentGroup, g);
                parseAttributes(xmlNode, g, this._defsUsePending, false, false);
                return g;
            },
            'rect': function (xmlNode, parentGroup) {
                var rect = new shape_Rect();
                inheritStyle(parentGroup, rect);
                parseAttributes(xmlNode, rect, this._defsUsePending, false, false);
                rect.setShape({
                    x: parseFloat(xmlNode.getAttribute('x') || '0'),
                    y: parseFloat(xmlNode.getAttribute('y') || '0'),
                    width: parseFloat(xmlNode.getAttribute('width') || '0'),
                    height: parseFloat(xmlNode.getAttribute('height') || '0')
                });
                rect.silent = true;
                return rect;
            },
            'circle': function (xmlNode, parentGroup) {
                var circle = new shape_Circle();
                inheritStyle(parentGroup, circle);
                parseAttributes(xmlNode, circle, this._defsUsePending, false, false);
                circle.setShape({
                    cx: parseFloat(xmlNode.getAttribute('cx') || '0'),
                    cy: parseFloat(xmlNode.getAttribute('cy') || '0'),
                    r: parseFloat(xmlNode.getAttribute('r') || '0')
                });
                circle.silent = true;
                return circle;
            },
            'line': function (xmlNode, parentGroup) {
                var line = new shape_Line();
                inheritStyle(parentGroup, line);
                parseAttributes(xmlNode, line, this._defsUsePending, false, false);
                line.setShape({
                    x1: parseFloat(xmlNode.getAttribute('x1') || '0'),
                    y1: parseFloat(xmlNode.getAttribute('y1') || '0'),
                    x2: parseFloat(xmlNode.getAttribute('x2') || '0'),
                    y2: parseFloat(xmlNode.getAttribute('y2') || '0')
                });
                line.silent = true;
                return line;
            },
            'ellipse': function (xmlNode, parentGroup) {
                var ellipse = new shape_Ellipse();
                inheritStyle(parentGroup, ellipse);
                parseAttributes(xmlNode, ellipse, this._defsUsePending, false, false);
                ellipse.setShape({
                    cx: parseFloat(xmlNode.getAttribute('cx') || '0'),
                    cy: parseFloat(xmlNode.getAttribute('cy') || '0'),
                    rx: parseFloat(xmlNode.getAttribute('rx') || '0'),
                    ry: parseFloat(xmlNode.getAttribute('ry') || '0')
                });
                ellipse.silent = true;
                return ellipse;
            },
            'polygon': function (xmlNode, parentGroup) {
                var pointsStr = xmlNode.getAttribute('points');
                var pointsArr;
                if (pointsStr) {
                    pointsArr = parsePoints(pointsStr);
                }
                var polygon = new shape_Polygon({
                    shape: {
                        points: pointsArr || []
                    },
                    silent: true
                });
                inheritStyle(parentGroup, polygon);
                parseAttributes(xmlNode, polygon, this._defsUsePending, false, false);
                return polygon;
            },
            'polyline': function (xmlNode, parentGroup) {
                var pointsStr = xmlNode.getAttribute('points');
                var pointsArr;
                if (pointsStr) {
                    pointsArr = parsePoints(pointsStr);
                }
                var polyline = new shape_Polyline({
                    shape: {
                        points: pointsArr || []
                    },
                    silent: true
                });
                inheritStyle(parentGroup, polyline);
                parseAttributes(xmlNode, polyline, this._defsUsePending, false, false);
                return polyline;
            },
            'image': function (xmlNode, parentGroup) {
                var img = new graphic_Image();
                inheritStyle(parentGroup, img);
                parseAttributes(xmlNode, img, this._defsUsePending, false, false);
                img.setStyle({
                    image: xmlNode.getAttribute('xlink:href') || xmlNode.getAttribute('href'),
                    x: +xmlNode.getAttribute('x'),
                    y: +xmlNode.getAttribute('y'),
                    width: +xmlNode.getAttribute('width'),
                    height: +xmlNode.getAttribute('height')
                });
                img.silent = true;
                return img;
            },
            'text': function (xmlNode, parentGroup) {
                var x = xmlNode.getAttribute('x') || '0';
                var y = xmlNode.getAttribute('y') || '0';
                var dx = xmlNode.getAttribute('dx') || '0';
                var dy = xmlNode.getAttribute('dy') || '0';
                this._textX = parseFloat(x) + parseFloat(dx);
                this._textY = parseFloat(y) + parseFloat(dy);
                var g = new graphic_Group();
                inheritStyle(parentGroup, g);
                parseAttributes(xmlNode, g, this._defsUsePending, false, true);
                return g;
            },
            'tspan': function (xmlNode, parentGroup) {
                var x = xmlNode.getAttribute('x');
                var y = xmlNode.getAttribute('y');
                if (x != null) {
                    this._textX = parseFloat(x);
                }
                if (y != null) {
                    this._textY = parseFloat(y);
                }
                var dx = xmlNode.getAttribute('dx') || '0';
                var dy = xmlNode.getAttribute('dy') || '0';
                var g = new graphic_Group();
                inheritStyle(parentGroup, g);
                parseAttributes(xmlNode, g, this._defsUsePending, false, true);
                this._textX += parseFloat(dx);
                this._textY += parseFloat(dy);
                return g;
            },
            'path': function (xmlNode, parentGroup) {
                var d = xmlNode.getAttribute('d') || '';
                var path = createFromString(d);
                inheritStyle(parentGroup, path);
                parseAttributes(xmlNode, path, this._defsUsePending, false, false);
                path.silent = true;
                return path;
            }
        };
    })();
    return SVGParser;
}());
var paintServerParsers = {
    'lineargradient': function (xmlNode) {
        var x1 = parseInt(xmlNode.getAttribute('x1') || '0', 10);
        var y1 = parseInt(xmlNode.getAttribute('y1') || '0', 10);
        var x2 = parseInt(xmlNode.getAttribute('x2') || '10', 10);
        var y2 = parseInt(xmlNode.getAttribute('y2') || '0', 10);
        var gradient = new graphic_LinearGradient(x1, y1, x2, y2);
        parsePaintServerUnit(xmlNode, gradient);
        parseGradientColorStops(xmlNode, gradient);
        return gradient;
    },
    'radialgradient': function (xmlNode) {
        var cx = parseInt(xmlNode.getAttribute('cx') || '0', 10);
        var cy = parseInt(xmlNode.getAttribute('cy') || '0', 10);
        var r = parseInt(xmlNode.getAttribute('r') || '0', 10);
        var gradient = new graphic_RadialGradient(cx, cy, r);
        parsePaintServerUnit(xmlNode, gradient);
        parseGradientColorStops(xmlNode, gradient);
        return gradient;
    }
};
function parsePaintServerUnit(xmlNode, gradient) {
    var gradientUnits = xmlNode.getAttribute('gradientUnits');
    if (gradientUnits === 'userSpaceOnUse') {
        gradient.global = true;
    }
}
function parseGradientColorStops(xmlNode, gradient) {
    var stop = xmlNode.firstChild;
    while (stop) {
        if (stop.nodeType === 1
            && stop.nodeName.toLocaleLowerCase() === 'stop') {
            var offsetStr = stop.getAttribute('offset');
            var offset = void 0;
            if (offsetStr && offsetStr.indexOf('%') > 0) {
                offset = parseInt(offsetStr, 10) / 100;
            }
            else if (offsetStr) {
                offset = parseFloat(offsetStr);
            }
            else {
                offset = 0;
            }
            var styleVals = {};
            parseInlineStyle(stop, styleVals, styleVals);
            var stopColor = styleVals.stopColor
                || stop.getAttribute('stop-color')
                || '#000000';
            gradient.colorStops.push({
                offset: offset,
                color: stopColor
            });
        }
        stop = stop.nextSibling;
    }
}
function inheritStyle(parent, child) {
    if (parent && parent.__inheritedStyle) {
        if (!child.__inheritedStyle) {
            child.__inheritedStyle = {};
        }
        Object(util["defaults"])(child.__inheritedStyle, parent.__inheritedStyle);
    }
}
function parsePoints(pointsString) {
    var list = splitNumberSequence(pointsString);
    var points = [];
    for (var i = 0; i < list.length; i += 2) {
        var x = parseFloat(list[i]);
        var y = parseFloat(list[i + 1]);
        points.push([x, y]);
    }
    return points;
}
function parseAttributes(xmlNode, el, defsUsePending, onlyInlineStyle, isTextGroup) {
    var disp = el;
    var inheritedStyle = disp.__inheritedStyle = disp.__inheritedStyle || {};
    var selfStyle = {};
    if (xmlNode.nodeType === 1) {
        parseTransformAttribute(xmlNode, el);
        parseInlineStyle(xmlNode, inheritedStyle, selfStyle);
        if (!onlyInlineStyle) {
            parseAttributeStyle(xmlNode, inheritedStyle, selfStyle);
        }
    }
    disp.style = disp.style || {};
    if (inheritedStyle.fill != null) {
        disp.style.fill = getFillStrokeStyle(disp, 'fill', inheritedStyle.fill, defsUsePending);
    }
    if (inheritedStyle.stroke != null) {
        disp.style.stroke = getFillStrokeStyle(disp, 'stroke', inheritedStyle.stroke, defsUsePending);
    }
    Object(util["each"])([
        'lineWidth', 'opacity', 'fillOpacity', 'strokeOpacity', 'miterLimit', 'fontSize'
    ], function (propName) {
        if (inheritedStyle[propName] != null) {
            disp.style[propName] = parseFloat(inheritedStyle[propName]);
        }
    });
    Object(util["each"])([
        'lineDashOffset', 'lineCap', 'lineJoin', 'fontWeight', 'fontFamily', 'fontStyle', 'textAlign'
    ], function (propName) {
        if (inheritedStyle[propName] != null) {
            disp.style[propName] = inheritedStyle[propName];
        }
    });
    if (isTextGroup) {
        disp.__selfStyle = selfStyle;
    }
    if (inheritedStyle.lineDash) {
        disp.style.lineDash = Object(util["map"])(splitNumberSequence(inheritedStyle.lineDash), function (str) {
            return parseFloat(str);
        });
    }
    if (inheritedStyle.visibility === 'hidden' || inheritedStyle.visibility === 'collapse') {
        disp.invisible = true;
    }
    if (inheritedStyle.display === 'none') {
        disp.ignore = true;
    }
}
function applyTextAlignment(text, parentGroup) {
    var parentSelfStyle = parentGroup.__selfStyle;
    if (parentSelfStyle) {
        var textBaseline = parentSelfStyle.textBaseline;
        var zrTextBaseline = textBaseline;
        if (!textBaseline || textBaseline === 'auto') {
            zrTextBaseline = 'alphabetic';
        }
        else if (textBaseline === 'baseline') {
            zrTextBaseline = 'alphabetic';
        }
        else if (textBaseline === 'before-edge' || textBaseline === 'text-before-edge') {
            zrTextBaseline = 'top';
        }
        else if (textBaseline === 'after-edge' || textBaseline === 'text-after-edge') {
            zrTextBaseline = 'bottom';
        }
        else if (textBaseline === 'central' || textBaseline === 'mathematical') {
            zrTextBaseline = 'middle';
        }
        text.style.textBaseline = zrTextBaseline;
    }
    var parentInheritedStyle = parentGroup.__inheritedStyle;
    if (parentInheritedStyle) {
        var textAlign = parentInheritedStyle.textAlign;
        var zrTextAlign = textAlign;
        if (textAlign) {
            if (textAlign === 'middle') {
                zrTextAlign = 'center';
            }
            text.style.textAlign = zrTextAlign;
        }
    }
}
var urlRegex = /^url\(\s*#(.*?)\)/;
function getFillStrokeStyle(el, method, str, defsUsePending) {
    var urlMatch = str && str.match(urlRegex);
    if (urlMatch) {
        var url = Object(util["trim"])(urlMatch[1]);
        defsUsePending.push([el, method, url]);
        return;
    }
    if (str === 'none') {
        str = null;
    }
    return str;
}
function applyDefs(defs, defsUsePending) {
    for (var i = 0; i < defsUsePending.length; i++) {
        var item = defsUsePending[i];
        item[0].style[item[1]] = defs[item[2]];
    }
}
var parseSVG_numberReg = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
function splitNumberSequence(rawStr) {
    return rawStr.match(parseSVG_numberReg) || [];
}
var transformRegex = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g;
var DEGREE_TO_ANGLE = Math.PI / 180;
function parseTransformAttribute(xmlNode, node) {
    var transform = xmlNode.getAttribute('transform');
    if (transform) {
        transform = transform.replace(/,/g, ' ');
        var transformOps_1 = [];
        var mt = null;
        transform.replace(transformRegex, function (str, type, value) {
            transformOps_1.push(type, value);
            return '';
        });
        for (var i = transformOps_1.length - 1; i > 0; i -= 2) {
            var value = transformOps_1[i];
            var type = transformOps_1[i - 1];
            var valueArr = splitNumberSequence(value);
            mt = mt || matrix_create();
            switch (type) {
                case 'translate':
                    matrix_translate(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || '0')]);
                    break;
                case 'scale':
                    matrix_scale(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || valueArr[0])]);
                    break;
                case 'rotate':
                    matrix_rotate(mt, mt, -parseFloat(valueArr[0]) * DEGREE_TO_ANGLE, [
                        parseFloat(valueArr[1] || '0'),
                        parseFloat(valueArr[2] || '0')
                    ]);
                    break;
                case 'skewX':
                    var sx = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);
                    matrix_mul(mt, [1, 0, sx, 1, 0, 0], mt);
                    break;
                case 'skewY':
                    var sy = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);
                    matrix_mul(mt, [1, sy, 0, 1, 0, 0], mt);
                    break;
                case 'matrix':
                    mt[0] = parseFloat(valueArr[0]);
                    mt[1] = parseFloat(valueArr[1]);
                    mt[2] = parseFloat(valueArr[2]);
                    mt[3] = parseFloat(valueArr[3]);
                    mt[4] = parseFloat(valueArr[4]);
                    mt[5] = parseFloat(valueArr[5]);
                    break;
            }
        }
        node.setLocalTransform(mt);
    }
}
var styleRegex = /([^\s:;]+)\s*:\s*([^:;]+)/g;
function parseInlineStyle(xmlNode, inheritableStyleResult, selfStyleResult) {
    var style = xmlNode.getAttribute('style');
    if (!style) {
        return;
    }
    styleRegex.lastIndex = 0;
    var styleRegResult;
    while ((styleRegResult = styleRegex.exec(style)) != null) {
        var svgStlAttr = styleRegResult[1];
        var zrInheritableStlAttr = Object(util["hasOwn"])(INHERITABLE_STYLE_ATTRIBUTES_MAP, svgStlAttr)
            ? INHERITABLE_STYLE_ATTRIBUTES_MAP[svgStlAttr]
            : null;
        if (zrInheritableStlAttr) {
            inheritableStyleResult[zrInheritableStlAttr] = styleRegResult[2];
        }
        var zrSelfStlAttr = Object(util["hasOwn"])(SELF_STYLE_ATTRIBUTES_MAP, svgStlAttr)
            ? SELF_STYLE_ATTRIBUTES_MAP[svgStlAttr]
            : null;
        if (zrSelfStlAttr) {
            selfStyleResult[zrSelfStlAttr] = styleRegResult[2];
        }
    }
}
function parseAttributeStyle(xmlNode, inheritableStyleResult, selfStyleResult) {
    for (var i = 0; i < INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {
        var svgAttrName = INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS[i];
        var attrValue = xmlNode.getAttribute(svgAttrName);
        if (attrValue != null) {
            inheritableStyleResult[INHERITABLE_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;
        }
    }
    for (var i = 0; i < SELF_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {
        var svgAttrName = SELF_STYLE_ATTRIBUTES_MAP_KEYS[i];
        var attrValue = xmlNode.getAttribute(svgAttrName);
        if (attrValue != null) {
            selfStyleResult[SELF_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;
        }
    }
}
function makeViewBoxTransform(viewBoxRect, boundingRect) {
    var scaleX = boundingRect.width / viewBoxRect.width;
    var scaleY = boundingRect.height / viewBoxRect.height;
    var scale = Math.min(scaleX, scaleY);
    return {
        scale: scale,
        x: -(viewBoxRect.x + viewBoxRect.width / 2) * scale + (boundingRect.x + boundingRect.width / 2),
        y: -(viewBoxRect.y + viewBoxRect.height / 2) * scale + (boundingRect.y + boundingRect.height / 2)
    };
}
function parseSVG(xml, opt) {
    var parser = new parseSVG_SVGParser();
    return parser.parse(xml, opt);
}


// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/GeoSVGResource.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







/**
 * "region available" means that: enable users to set attribute `name="xxx"` on those tags
 * to make it be a region.
 * 1. region styles and its label styles can be defined in echarts opton:
 * ```js
 * geo: {
 *     regions: [{
 *         name: 'xxx',
 *         itemStyle: { ... },
 *         label: { ... }
 *     }, {
 *         ...
 *     },
 *     ...]
 * };
 * ```
 * 2. name can be duplicated in different SVG tag. All of the tags with the same name share
 * a region option. For exampel if there are two <path> representing two lung lobes. They have
 * no common parents but both of them need to display label "lung" inside.
 */
var REGION_AVAILABLE_SVG_TAG_MAP = Object(util["createHashMap"])(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path',
// <text> <tspan> are also enabled because some SVG might paint text itself,
// but still need to trigger events or tooltip.
'text', 'tspan',
// <g> is also enabled because this case: if multiple tags share one name
// and need label displayed, every tags will display the name, which is not
// expected. So we can put them into a <g name="xxx">. Thereby only one label
// displayed and located based on the bounding rect of the <g>.
'g']);
var GeoSVGResource_GeoSVGResource = /** @class */function () {
  function GeoSVGResource(mapName, svg) {
    this.type = 'geoSVG';
    // All used graphics. key: hostKey, value: root
    this._usedGraphicMap = Object(util["createHashMap"])();
    // All unused graphics.
    this._freedGraphics = [];
    this._mapName = mapName;
    // Only perform parse to XML object here, which might be time
    // consiming for large SVG.
    // Although convert XML to zrender element is also time consiming,
    // if we do it here, the clone of zrender elements has to be
    // required. So we do it once for each geo instance, util real
    // performance issues call for optimizing it.
    this._parsedXML = parseXML(svg);
  }
  GeoSVGResource.prototype.load = function /* nameMap: NameMap */
  () {
    // In the "load" stage, graphic need to be built to
    // get boundingRect for geo coordinate system.
    var firstGraphic = this._firstGraphic;
    // Create the return data structure only when first graphic created.
    // Because they will be used in geo coordinate system update stage,
    // and `regions` will be mounted at `geo` coordinate system,
    // in which there is no "view" info, so that it should better not to
    // make references to graphic elements.
    if (!firstGraphic) {
      firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML);
      this._freedGraphics.push(firstGraphic);
      this._boundingRect = this._firstGraphic.boundingRect.clone();
      // PENDING: `nameMap` will not be supported until some real requirement come.
      // if (nameMap) {
      //     named = applyNameMap(named, nameMap);
      // }
      var _a = createRegions(firstGraphic.named),
        regions = _a.regions,
        regionsMap = _a.regionsMap;
      this._regions = regions;
      this._regionsMap = regionsMap;
    }
    return {
      boundingRect: this._boundingRect,
      regions: this._regions,
      regionsMap: this._regionsMap
    };
  };
  GeoSVGResource.prototype._buildGraphic = function (svgXML) {
    var result;
    var rootFromParse;
    try {
      result = svgXML && parseSVG(svgXML, {
        ignoreViewBox: true,
        ignoreRootClip: true
      }) || {};
      rootFromParse = result.root;
      Object(util["assert"])(rootFromParse != null);
    } catch (e) {
      throw new Error('Invalid svg format\n' + e.message);
    }
    // Note: we keep the covenant that the root has no transform. So always add an extra root.
    var root = new graphic_Group();
    root.add(rootFromParse);
    root.isGeoSVGGraphicRoot = true;
    // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]
    //
    // Consider: `<svg width="..." height="..." viewBox="...">`
    // - the `width/height` we call it `svgWidth/svgHeight` for short.
    // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,
    //   "viewport boundingRect", or `boundingRect` for short.
    // - `viewBox` defines the transform from the real content ot the viewport.
    //   `viewBox` has the same unit as the content of SVG.
    //   If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become
    //   different from the content of SVG. Otherwise, they are the same.
    //
    // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:
    // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).
    // 1. Make a transform from `viewBox` to `boundingRect`.
    //    Note: only support `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve
    //    the aspect ratio.
    // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])
    //    (`Geo`/`View` will do this job).
    //    Note: this transform might not preserve aspect radio, which depending on how users specify
    //    viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,
    //    but `geo.layoutCenter/layoutSize` will preserve aspect ratio).
    //
    // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG
    // layout look good.
    //
    // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect
    // of the SVG content and use them to make SVG layout look good.
    var svgWidth = result.width;
    var svgHeight = result.height;
    var viewBoxRect = result.viewBoxRect;
    var boundingRect = this._boundingRect;
    if (!boundingRect) {
      var bRectX = void 0;
      var bRectY = void 0;
      var bRectWidth = void 0;
      var bRectHeight = void 0;
      if (svgWidth != null) {
        bRectX = 0;
        bRectWidth = svgWidth;
      } else if (viewBoxRect) {
        bRectX = viewBoxRect.x;
        bRectWidth = viewBoxRect.width;
      }
      if (svgHeight != null) {
        bRectY = 0;
        bRectHeight = svgHeight;
      } else if (viewBoxRect) {
        bRectY = viewBoxRect.y;
        bRectHeight = viewBoxRect.height;
      }
      // If both viewBox and svgWidth/svgHeight not specified,
      // we have to determine how to layout those element to make them look good.
      if (bRectX == null || bRectY == null) {
        var calculatedBoundingRect = rootFromParse.getBoundingRect();
        if (bRectX == null) {
          bRectX = calculatedBoundingRect.x;
          bRectWidth = calculatedBoundingRect.width;
        }
        if (bRectY == null) {
          bRectY = calculatedBoundingRect.y;
          bRectHeight = calculatedBoundingRect.height;
        }
      }
      boundingRect = this._boundingRect = new core_BoundingRect(bRectX, bRectY, bRectWidth, bRectHeight);
    }
    if (viewBoxRect) {
      var viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect);
      // Only support `preserveAspectRatio 'xMidYMid'`
      rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale;
      rootFromParse.x = viewBoxTransform.x;
      rootFromParse.y = viewBoxTransform.y;
    }
    // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.
    // They do not strictly confine all of the content inside a display rect, but deliberately
    // use a `viewBox` to define a displayable rect.
    // PENDING:
    // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the
    // edge might also be clipped, because region labels are put as `textContent` of the SVG path.
    root.setClipPath(new shape_Rect({
      shape: boundingRect.plain()
    }));
    var named = [];
    Object(util["each"])(result.named, function (namedItem) {
      if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) {
        named.push(namedItem);
        setSilent(namedItem.el);
      }
    });
    return {
      root: root,
      boundingRect: boundingRect,
      named: named
    };
  };
  /**
   * Consider:
   * (1) One graphic element can not be shared by different `geoView` running simultaneously.
   *     Notice, also need to consider multiple echarts instances share a `mapRecord`.
   * (2) Converting SVG to graphic elements is time consuming.
   * (3) In the current architecture, `load` should be called frequently to get boundingRect,
   *     and it is called without view info.
   * So we maintain graphic elements in this module, and enables `view` to use/return these
   * graphics from/to the pool with it's uid.
   */
  GeoSVGResource.prototype.useGraphic = function (hostKey /* , nameMap: NameMap */) {
    var usedRootMap = this._usedGraphicMap;
    var svgGraphic = usedRootMap.get(hostKey);
    if (svgGraphic) {
      return svgGraphic;
    }
    svgGraphic = this._freedGraphics.pop()
    // use the first boundingRect to avoid duplicated boundingRect calculation.
    || this._buildGraphic(this._parsedXML);
    usedRootMap.set(hostKey, svgGraphic);
    // PENDING: `nameMap` will not be supported until some real requirement come.
    // `nameMap` can only be obtained from echarts option.
    // The original `named` must not be modified.
    // if (nameMap) {
    //     svgGraphic = extend({}, svgGraphic);
    //     svgGraphic.named = applyNameMap(svgGraphic.named, nameMap);
    // }
    return svgGraphic;
  };
  GeoSVGResource.prototype.freeGraphic = function (hostKey) {
    var usedRootMap = this._usedGraphicMap;
    var svgGraphic = usedRootMap.get(hostKey);
    if (svgGraphic) {
      usedRootMap.removeKey(hostKey);
      this._freedGraphics.push(svgGraphic);
    }
  };
  return GeoSVGResource;
}();

function setSilent(el) {
  // Only named element has silent: false, other elements should
  // act as background and has no user interaction.
  el.silent = false;
  // text|tspan will be converted to group.
  if (el.isGroup) {
    el.traverse(function (child) {
      child.silent = false;
    });
  }
}
function createRegions(named) {
  var regions = [];
  var regionsMap = Object(util["createHashMap"])();
  // Create resions only for the first graphic.
  Object(util["each"])(named, function (namedItem) {
    // Region has feature to calculate center for tooltip or other features.
    // If there is a <g name="xxx">, the center should be the center of the
    // bounding rect of the g.
    if (namedItem.namedFrom != null) {
      return;
    }
    var region = new Region_GeoSVGRegion(namedItem.name, namedItem.el);
    // PENDING: if `nameMap` supported, this region can not be mounted on
    // `this`, but can only be created each time `load()` called.
    regions.push(region);
    // PENDING: if multiple tag named with the same name, only one will be
    // found by `_regionsMap`. `_regionsMap` is used to find a coordinate
    // by name. We use `region.getCenter()` as the coordinate.
    regionsMap.set(namedItem.name, region);
  });
  return {
    regions: regions,
    regionsMap: regionsMap
  };
}
// PENDING: `nameMap` will not be supported until some real requirement come.
// /**
//  * Use the alias in geoNameMap.
//  * The input `named` must not be modified.
//  */
// function applyNameMap(
//     named: GeoSVGGraphicRecord['named'],
//     nameMap: NameMap
// ): GeoSVGGraphicRecord['named'] {
//     const result = [] as GeoSVGGraphicRecord['named'];
//     for (let i = 0; i < named.length; i++) {
//         let regionGraphic = named[i];
//         const name = regionGraphic.name;
//         if (nameMap && nameMap.hasOwnProperty(name)) {
//             regionGraphic = extend({}, regionGraphic);
//             regionGraphic.name = name;
//         }
//         result.push(regionGraphic);
//     }
//     return result;
// }
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/fix/nanhai.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Fix for 南海诸岛


var geoCoord = [126, 25];
var nanhaiName = '南海诸岛';
var nanhai_points = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];
for (var nanhai_i = 0; nanhai_i < nanhai_points.length; nanhai_i++) {
  for (var nanhai_k = 0; nanhai_k < nanhai_points[nanhai_i].length; nanhai_k++) {
    nanhai_points[nanhai_i][nanhai_k][0] /= 10.5;
    nanhai_points[nanhai_i][nanhai_k][1] /= -10.5 / 0.75;
    nanhai_points[nanhai_i][nanhai_k][0] += geoCoord[0];
    nanhai_points[nanhai_i][nanhai_k][1] += geoCoord[1];
  }
}
function fixNanhai(mapType, regions) {
  if (mapType === 'china') {
    for (var i = 0; i < regions.length; i++) {
      // Already exists.
      if (regions[i].name === nanhaiName) {
        return;
      }
    }
    regions.push(new Region_GeoJSONRegion(nanhaiName, util["map"](nanhai_points, function (exterior) {
      return {
        type: 'polygon',
        exterior: exterior
      };
    }), geoCoord));
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/fix/textCoord.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var coordsOffsetMap = {
  '南海诸岛': [32, 80],
  // 全国
  '广东': [0, -10],
  '香港': [10, 5],
  '澳门': [-10, 10],
  // '北京': [-10, 0],
  '天津': [5, 5]
};
function fixTextCoords(mapType, region) {
  if (mapType === 'china') {
    var coordFix = coordsOffsetMap[region.name];
    if (coordFix) {
      var cp = region.getCenter();
      cp[0] += coordFix[0] / 10.5;
      cp[1] += -coordFix[1] / (10.5 / 0.75);
      region.setCenter(cp);
    }
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Fix for 钓鱼岛
// let Region = require('../Region');
// let zrUtil = require('zrender/lib/core/util');
// let geoCoord = [126, 25];
var diaoyuIsland_points = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];
function fixDiaoyuIsland(mapType, region) {
  if (mapType === 'china' && region.name === '台湾') {
    region.geometries.push({
      type: 'polygon',
      exterior: diaoyuIsland_points[0]
    });
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/GeoJSONResource.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// Built-in GEO fixer.




var DEFAULT_NAME_PROPERTY = 'name';
var GeoJSONResource_GeoJSONResource = /** @class */function () {
  function GeoJSONResource(mapName, geoJSON, specialAreas) {
    this.type = 'geoJSON';
    this._parsedMap = Object(util["createHashMap"])();
    this._mapName = mapName;
    this._specialAreas = specialAreas;
    // PENDING: delay the parse to the first usage to rapid up the FMP?
    this._geoJSON = parseInput(geoJSON);
  }
  /**
   * @param nameMap can be null/undefined
   * @param nameProperty can be null/undefined
   */
  GeoJSONResource.prototype.load = function (nameMap, nameProperty) {
    nameProperty = nameProperty || DEFAULT_NAME_PROPERTY;
    var parsed = this._parsedMap.get(nameProperty);
    if (!parsed) {
      var rawRegions = this._parseToRegions(nameProperty);
      parsed = this._parsedMap.set(nameProperty, {
        regions: rawRegions,
        boundingRect: calculateBoundingRect(rawRegions)
      });
    }
    var regionsMap = Object(util["createHashMap"])();
    var finalRegions = [];
    Object(util["each"])(parsed.regions, function (region) {
      var regionName = region.name;
      // Try use the alias in geoNameMap
      if (nameMap && Object(util["hasOwn"])(nameMap, regionName)) {
        region = region.cloneShallow(regionName = nameMap[regionName]);
      }
      finalRegions.push(region);
      regionsMap.set(regionName, region);
    });
    return {
      regions: finalRegions,
      boundingRect: parsed.boundingRect || new core_BoundingRect(0, 0, 0, 0),
      regionsMap: regionsMap
    };
  };
  GeoJSONResource.prototype._parseToRegions = function (nameProperty) {
    var mapName = this._mapName;
    var geoJSON = this._geoJSON;
    var rawRegions;
    // https://jsperf.com/try-catch-performance-overhead
    try {
      rawRegions = geoJSON ? parseGeoJSON(geoJSON, nameProperty) : [];
    } catch (e) {
      throw new Error('Invalid geoJson format\n' + e.message);
    }
    fixNanhai(mapName, rawRegions);
    Object(util["each"])(rawRegions, function (region) {
      var regionName = region.name;
      fixTextCoords(mapName, region);
      fixDiaoyuIsland(mapName, region);
      // Some area like Alaska in USA map needs to be tansformed
      // to look better
      var specialArea = this._specialAreas && this._specialAreas[regionName];
      if (specialArea) {
        region.transformTo(specialArea.left, specialArea.top, specialArea.width, specialArea.height);
      }
    }, this);
    return rawRegions;
  };
  /**
   * Only for exporting to users.
   * **MUST NOT** used internally.
   */
  GeoJSONResource.prototype.getMapForUser = function () {
    return {
      // For backward compatibility, use geoJson
      // PENDING: it has been returning them without clone.
      // do we need to avoid outsite modification?
      geoJson: this._geoJSON,
      geoJSON: this._geoJSON,
      specialAreas: this._specialAreas
    };
  };
  return GeoJSONResource;
}();

function calculateBoundingRect(regions) {
  var rect;
  for (var i = 0; i < regions.length; i++) {
    var regionRect = regions[i].getBoundingRect();
    rect = rect || regionRect.clone();
    rect.union(regionRect);
  }
  return rect;
}
function parseInput(source) {
  return !Object(util["isString"])(source) ? source : typeof JSON !== 'undefined' && JSON.parse ? JSON.parse(source) : new Function('return (' + source + ');')();
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/geoSourceManager.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var geoSourceManager_storage = Object(util["createHashMap"])();
/* harmony default export */ var geoSourceManager = ({
  /**
   * Compatible with previous `echarts.registerMap`.
   *
   * @usage
   * ```js
   *
   * echarts.registerMap('USA', geoJson, specialAreas);
   *
   * echarts.registerMap('USA', {
   *     geoJson: geoJson,
   *     specialAreas: {...}
   * });
   * echarts.registerMap('USA', {
   *     geoJSON: geoJson,
   *     specialAreas: {...}
   * });
   *
   * echarts.registerMap('airport', {
   *     svg: svg
   * }
   * ```
   *
   * Note:
   * Do not support that register multiple geoJSON or SVG
   * one map name. Because different geoJSON and SVG have
   * different unit. It's not easy to make sure how those
   * units are mapping/normalize.
   * If intending to use multiple geoJSON or SVG, we can
   * use multiple geo coordinate system.
   */
  registerMap: function (mapName, rawDef, rawSpecialAreas) {
    if (rawDef.svg) {
      var resource = new GeoSVGResource_GeoSVGResource(mapName, rawDef.svg);
      geoSourceManager_storage.set(mapName, resource);
    } else {
      // Recommend:
      //     echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });
      // Backward compatibility:
      //     echarts.registerMap('eu', geoJSON, specialAreas);
      //     echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });
      var geoJSON = rawDef.geoJson || rawDef.geoJSON;
      if (geoJSON && !rawDef.features) {
        rawSpecialAreas = rawDef.specialAreas;
      } else {
        geoJSON = rawDef;
      }
      var resource = new GeoJSONResource_GeoJSONResource(mapName, geoJSON, rawSpecialAreas);
      geoSourceManager_storage.set(mapName, resource);
    }
  },
  getGeoResource: function (mapName) {
    return geoSourceManager_storage.get(mapName);
  },
  /**
   * Only for exporting to users.
   * **MUST NOT** used internally.
   */
  getMapForUser: function (mapName) {
    var resource = geoSourceManager_storage.get(mapName);
    // Do not support return SVG until some real requirement come.
    return resource && resource.type === 'geoJSON' && resource.getMapForUser();
  },
  load: function (mapName, nameMap, nameProperty) {
    var resource = geoSourceManager_storage.get(mapName);
    if (!resource) {
      if (false) {}
      return;
    }
    return resource.load(nameMap, nameProperty);
  }
});
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/MapDraw.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/













/**
 * Only these tags enable use `itemStyle` if they are named in SVG.
 * Other tags like <text> <tspan> <image> might not suitable for `itemStyle`.
 * They will not be considered to be styled until some requirements come.
 */
var OPTION_STYLE_ENABLED_TAGS = ['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path'];
var OPTION_STYLE_ENABLED_TAG_MAP = util["createHashMap"](OPTION_STYLE_ENABLED_TAGS);
var STATE_TRIGGER_TAG_MAP = util["createHashMap"](OPTION_STYLE_ENABLED_TAGS.concat(['g']));
var LABEL_HOST_MAP = util["createHashMap"](OPTION_STYLE_ENABLED_TAGS.concat(['g']));
var mapLabelRaw = makeInner();
function getFixedItemStyle(model) {
  var itemStyle = model.getItemStyle();
  var areaColor = model.get('areaColor');
  // If user want the color not to be changed when hover,
  // they should both set areaColor and color to be null.
  if (areaColor != null) {
    itemStyle.fill = areaColor;
  }
  return itemStyle;
}
// Only stroke can be used for line.
// Using fill in style if stroke not exits.
// TODO Not sure yet. Perhaps a separate `lineStyle`?
function fixLineStyle(styleHost) {
  var style = styleHost.style;
  if (style) {
    style.stroke = style.stroke || style.fill;
    style.fill = null;
  }
}
var MapDraw_MapDraw = /** @class */function () {
  function MapDraw(api) {
    var group = new graphic_Group();
    this.uid = getUID('ec_map_draw');
    this._controller = new helper_RoamController(api.getZr());
    this._controllerHost = {
      target: group
    };
    this.group = group;
    group.add(this._regionsGroup = new graphic_Group());
    group.add(this._svgGroup = new graphic_Group());
  }
  MapDraw.prototype.draw = function (mapOrGeoModel, ecModel, api, fromView, payload) {
    var isGeo = mapOrGeoModel.mainType === 'geo';
    // Map series has data. GEO model that controlled by map series
    // will be assigned with map data. Other GEO model has no data.
    var data = mapOrGeoModel.getData && mapOrGeoModel.getData();
    isGeo && ecModel.eachComponent({
      mainType: 'series',
      subType: 'map'
    }, function (mapSeries) {
      if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) {
        data = mapSeries.getData();
      }
    });
    var geo = mapOrGeoModel.coordinateSystem;
    var regionsGroup = this._regionsGroup;
    var group = this.group;
    var transformInfo = geo.getTransformInfo();
    var transformInfoRaw = transformInfo.raw;
    var transformInfoRoam = transformInfo.roam;
    // No animation when first draw or in action
    var isFirstDraw = !regionsGroup.childAt(0) || payload;
    if (isFirstDraw) {
      group.x = transformInfoRoam.x;
      group.y = transformInfoRoam.y;
      group.scaleX = transformInfoRoam.scaleX;
      group.scaleY = transformInfoRoam.scaleY;
      group.dirty();
    } else {
      updateProps(group, transformInfoRoam, mapOrGeoModel);
    }
    var isVisualEncodedByVisualMap = data && data.getVisual('visualMeta') && data.getVisual('visualMeta').length > 0;
    var viewBuildCtx = {
      api: api,
      geo: geo,
      mapOrGeoModel: mapOrGeoModel,
      data: data,
      isVisualEncodedByVisualMap: isVisualEncodedByVisualMap,
      isGeo: isGeo,
      transformInfoRaw: transformInfoRaw
    };
    if (geo.resourceType === 'geoJSON') {
      this._buildGeoJSON(viewBuildCtx);
    } else if (geo.resourceType === 'geoSVG') {
      this._buildSVG(viewBuildCtx);
    }
    this._updateController(mapOrGeoModel, ecModel, api);
    this._updateMapSelectHandler(mapOrGeoModel, regionsGroup, api, fromView);
  };
  MapDraw.prototype._buildGeoJSON = function (viewBuildCtx) {
    var regionsGroupByName = this._regionsGroupByName = util["createHashMap"]();
    var regionsInfoByName = util["createHashMap"]();
    var regionsGroup = this._regionsGroup;
    var transformInfoRaw = viewBuildCtx.transformInfoRaw;
    var mapOrGeoModel = viewBuildCtx.mapOrGeoModel;
    var data = viewBuildCtx.data;
    var projection = viewBuildCtx.geo.projection;
    var projectionStream = projection && projection.stream;
    function transformPoint(point, project) {
      if (project) {
        // projection may return null point.
        point = project(point);
      }
      return point && [point[0] * transformInfoRaw.scaleX + transformInfoRaw.x, point[1] * transformInfoRaw.scaleY + transformInfoRaw.y];
    }
    ;
    function transformPolygonPoints(inPoints) {
      var outPoints = [];
      // If projectionStream is provided. Use it instead of single point project.
      var project = !projectionStream && projection && projection.project;
      for (var i = 0; i < inPoints.length; ++i) {
        var newPt = transformPoint(inPoints[i], project);
        newPt && outPoints.push(newPt);
      }
      return outPoints;
    }
    function getPolyShape(points) {
      return {
        shape: {
          points: transformPolygonPoints(points)
        }
      };
    }
    regionsGroup.removeAll();
    // Only when the resource is GeoJSON, there is `geo.regions`.
    util["each"](viewBuildCtx.geo.regions, function (region) {
      var regionName = region.name;
      // Consider in GeoJson properties.name may be duplicated, for example,
      // there is multiple region named "United Kindom" or "France" (so many
      // colonies). And it is not appropriate to merge them in geo, which
      // will make them share the same label and bring trouble in label
      // location calculation.
      var regionGroup = regionsGroupByName.get(regionName);
      var _a = regionsInfoByName.get(regionName) || {},
        dataIdx = _a.dataIdx,
        regionModel = _a.regionModel;
      if (!regionGroup) {
        regionGroup = regionsGroupByName.set(regionName, new graphic_Group());
        regionsGroup.add(regionGroup);
        dataIdx = data ? data.indexOfName(regionName) : null;
        regionModel = viewBuildCtx.isGeo ? mapOrGeoModel.getRegionModel(regionName) : data ? data.getItemModel(dataIdx) : null;
        var silent = regionModel.get('silent', true);
        silent != null && (regionGroup.silent = silent);
        regionsInfoByName.set(regionName, {
          dataIdx: dataIdx,
          regionModel: regionModel
        });
      }
      var polygonSubpaths = [];
      var polylineSubpaths = [];
      util["each"](region.geometries, function (geometry) {
        // Polygon and MultiPolygon
        if (geometry.type === 'polygon') {
          var polys = [geometry.exterior].concat(geometry.interiors || []);
          if (projectionStream) {
            polys = projectPolys(polys, projectionStream);
          }
          util["each"](polys, function (poly) {
            polygonSubpaths.push(new shape_Polygon(getPolyShape(poly)));
          });
        }
        // LineString and MultiLineString
        else {
          var points = geometry.points;
          if (projectionStream) {
            points = projectPolys(points, projectionStream, true);
          }
          util["each"](points, function (points) {
            polylineSubpaths.push(new shape_Polyline(getPolyShape(points)));
          });
        }
      });
      var centerPt = transformPoint(region.getCenter(), projection && projection.project);
      function createCompoundPath(subpaths, isLine) {
        if (!subpaths.length) {
          return;
        }
        var compoundPath = new graphic_CompoundPath({
          culling: true,
          segmentIgnoreThreshold: 1,
          shape: {
            paths: subpaths
          }
        });
        regionGroup.add(compoundPath);
        applyOptionStyleForRegion(viewBuildCtx, compoundPath, dataIdx, regionModel);
        resetLabelForRegion(viewBuildCtx, compoundPath, regionName, regionModel, mapOrGeoModel, dataIdx, centerPt);
        if (isLine) {
          fixLineStyle(compoundPath);
          util["each"](compoundPath.states, fixLineStyle);
        }
      }
      createCompoundPath(polygonSubpaths);
      createCompoundPath(polylineSubpaths, true);
    });
    // Ensure children have been added to `regionGroup` before calling them.
    regionsGroupByName.each(function (regionGroup, regionName) {
      var _a = regionsInfoByName.get(regionName),
        dataIdx = _a.dataIdx,
        regionModel = _a.regionModel;
      resetEventTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel, dataIdx);
      resetTooltipForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel);
      resetStateTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel);
    }, this);
  };
  MapDraw.prototype._buildSVG = function (viewBuildCtx) {
    var mapName = viewBuildCtx.geo.map;
    var transformInfoRaw = viewBuildCtx.transformInfoRaw;
    this._svgGroup.x = transformInfoRaw.x;
    this._svgGroup.y = transformInfoRaw.y;
    this._svgGroup.scaleX = transformInfoRaw.scaleX;
    this._svgGroup.scaleY = transformInfoRaw.scaleY;
    if (this._svgResourceChanged(mapName)) {
      this._freeSVG();
      this._useSVG(mapName);
    }
    var svgDispatcherMap = this._svgDispatcherMap = util["createHashMap"]();
    var focusSelf = false;
    util["each"](this._svgGraphicRecord.named, function (namedItem) {
      // Note that we also allow different elements have the same name.
      // For example, a glyph of a city and the label of the city have
      // the same name and their tooltip info can be defined in a single
      // region option.
      var regionName = namedItem.name;
      var mapOrGeoModel = viewBuildCtx.mapOrGeoModel;
      var data = viewBuildCtx.data;
      var svgNodeTagLower = namedItem.svgNodeTagLower;
      var el = namedItem.el;
      var dataIdx = data ? data.indexOfName(regionName) : null;
      var regionModel = mapOrGeoModel.getRegionModel(regionName);
      if (OPTION_STYLE_ENABLED_TAG_MAP.get(svgNodeTagLower) != null && el instanceof graphic_Displayable) {
        applyOptionStyleForRegion(viewBuildCtx, el, dataIdx, regionModel);
      }
      if (el instanceof graphic_Displayable) {
        el.culling = true;
      }
      var silent = regionModel.get('silent', true);
      silent != null && (el.silent = silent);
      // We do not know how the SVG like so we'd better not to change z2.
      // Otherwise it might bring some unexpected result. For example,
      // an area hovered that make some inner city can not be clicked.
      el.z2EmphasisLift = 0;
      // If self named:
      if (!namedItem.namedFrom) {
        // label should batter to be displayed based on the center of <g>
        // if it is named rather than displayed on each child.
        if (LABEL_HOST_MAP.get(svgNodeTagLower) != null) {
          resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx, null);
        }
        resetEventTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx);
        resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel);
        if (STATE_TRIGGER_TAG_MAP.get(svgNodeTagLower) != null) {
          var focus_1 = resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel);
          if (focus_1 === 'self') {
            focusSelf = true;
          }
          var els = svgDispatcherMap.get(regionName) || svgDispatcherMap.set(regionName, []);
          els.push(el);
        }
      }
    }, this);
    this._enableBlurEntireSVG(focusSelf, viewBuildCtx);
  };
  MapDraw.prototype._enableBlurEntireSVG = function (focusSelf, viewBuildCtx) {
    // It's a little complicated to support blurring the entire geoSVG in series-map.
    // So do not support it until some requirements come.
    // At present, in series-map, only regions can be blurred.
    if (focusSelf && viewBuildCtx.isGeo) {
      var blurStyle = viewBuildCtx.mapOrGeoModel.getModel(['blur', 'itemStyle']).getItemStyle();
      // Only support `opacity` here. Because not sure that other props are suitable for
      // all of the elements generated by SVG (especially for Text/TSpan/Image/... ).
      var opacity_1 = blurStyle.opacity;
      this._svgGraphicRecord.root.traverse(function (el) {
        if (!el.isGroup) {
          // PENDING: clear those settings to SVG elements when `_freeSVG`.
          // (Currently it happen not to be needed.)
          setDefaultStateProxy(el);
          var style = el.ensureState('blur').style || {};
          // Do not overwrite the region style that already set from region option.
          if (style.opacity == null && opacity_1 != null) {
            style.opacity = opacity_1;
          }
          // If `ensureState('blur').style = {}`, there will be default opacity.
          // Enable `stateTransition` (animation).
          el.ensureState('emphasis');
        }
      });
    }
  };
  MapDraw.prototype.remove = function () {
    this._regionsGroup.removeAll();
    this._regionsGroupByName = null;
    this._svgGroup.removeAll();
    this._freeSVG();
    this._controller.dispose();
    this._controllerHost = null;
  };
  MapDraw.prototype.findHighDownDispatchers = function (name, geoModel) {
    if (name == null) {
      return [];
    }
    var geo = geoModel.coordinateSystem;
    if (geo.resourceType === 'geoJSON') {
      var regionsGroupByName = this._regionsGroupByName;
      if (regionsGroupByName) {
        var regionGroup = regionsGroupByName.get(name);
        return regionGroup ? [regionGroup] : [];
      }
    } else if (geo.resourceType === 'geoSVG') {
      return this._svgDispatcherMap && this._svgDispatcherMap.get(name) || [];
    }
  };
  MapDraw.prototype._svgResourceChanged = function (mapName) {
    return this._svgMapName !== mapName;
  };
  MapDraw.prototype._useSVG = function (mapName) {
    var resource = geoSourceManager.getGeoResource(mapName);
    if (resource && resource.type === 'geoSVG') {
      var svgGraphic = resource.useGraphic(this.uid);
      this._svgGroup.add(svgGraphic.root);
      this._svgGraphicRecord = svgGraphic;
      this._svgMapName = mapName;
    }
  };
  MapDraw.prototype._freeSVG = function () {
    var mapName = this._svgMapName;
    if (mapName == null) {
      return;
    }
    var resource = geoSourceManager.getGeoResource(mapName);
    if (resource && resource.type === 'geoSVG') {
      resource.freeGraphic(this.uid);
    }
    this._svgGraphicRecord = null;
    this._svgDispatcherMap = null;
    this._svgGroup.removeAll();
    this._svgMapName = null;
  };
  MapDraw.prototype._updateController = function (mapOrGeoModel, ecModel, api) {
    var geo = mapOrGeoModel.coordinateSystem;
    var controller = this._controller;
    var controllerHost = this._controllerHost;
    // @ts-ignore FIXME:TS
    controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit');
    controllerHost.zoom = geo.getZoom();
    // roamType is will be set default true if it is null
    // @ts-ignore FIXME:TS
    controller.enable(mapOrGeoModel.get('roam') || false);
    var mainType = mapOrGeoModel.mainType;
    function makeActionBase() {
      var action = {
        type: 'geoRoam',
        componentType: mainType
      };
      action[mainType + 'Id'] = mapOrGeoModel.id;
      return action;
    }
    controller.off('pan').on('pan', function (e) {
      this._mouseDownFlag = false;
      updateViewOnPan(controllerHost, e.dx, e.dy);
      api.dispatchAction(util["extend"](makeActionBase(), {
        dx: e.dx,
        dy: e.dy,
        animation: {
          duration: 0
        }
      }));
    }, this);
    controller.off('zoom').on('zoom', function (e) {
      this._mouseDownFlag = false;
      updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);
      api.dispatchAction(util["extend"](makeActionBase(), {
        totalZoom: controllerHost.zoom,
        zoom: e.scale,
        originX: e.originX,
        originY: e.originY,
        animation: {
          duration: 0
        }
      }));
    }, this);
    controller.setPointerChecker(function (e, x, y) {
      return geo.containPoint([x, y]) && !onIrrelevantElement(e, api, mapOrGeoModel);
    });
  };
  /**
   * FIXME: this is a temporarily workaround.
   * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like
   * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries`
   * will subsequently cache `defaultAttr` like `ignore`. If do not do this reset, the modified
   * props will have no chance to be restored.
   * Note: This reset should be after `clearStates` in `renderSeries` because `useStates` in
   * `renderSeries` will cache the modified `ignore` to `el._normalState`.
   * TODO:
   * Use clone/immutable in `LabelManager`?
   */
  MapDraw.prototype.resetForLabelLayout = function () {
    this.group.traverse(function (el) {
      var label = el.getTextContent();
      if (label) {
        label.ignore = mapLabelRaw(label).ignore;
      }
    });
  };
  MapDraw.prototype._updateMapSelectHandler = function (mapOrGeoModel, regionsGroup, api, fromView) {
    var mapDraw = this;
    regionsGroup.off('mousedown');
    regionsGroup.off('click');
    // @ts-ignore FIXME:TS resolve type conflict
    if (mapOrGeoModel.get('selectedMode')) {
      regionsGroup.on('mousedown', function () {
        mapDraw._mouseDownFlag = true;
      });
      regionsGroup.on('click', function (e) {
        if (!mapDraw._mouseDownFlag) {
          return;
        }
        mapDraw._mouseDownFlag = false;
      });
    }
  };
  return MapDraw;
}();
;
function applyOptionStyleForRegion(viewBuildCtx, el, dataIndex, regionModel) {
  // All of the path are using `itemStyle`, because
  // (1) Some SVG also use fill on polyline (The different between
  // polyline and polygon is "open" or "close" but not fill or not).
  // (2) For the common props like opacity, if some use itemStyle
  // and some use `lineStyle`, it might confuse users.
  // (3) Most SVG use <path>, where can not detect whether to draw a "line"
  // or a filled shape, so use `itemStyle` for <path>.
  var normalStyleModel = regionModel.getModel('itemStyle');
  var emphasisStyleModel = regionModel.getModel(['emphasis', 'itemStyle']);
  var blurStyleModel = regionModel.getModel(['blur', 'itemStyle']);
  var selectStyleModel = regionModel.getModel(['select', 'itemStyle']);
  // NOTE: DON'T use 'style' in visual when drawing map.
  // This component is used for drawing underlying map for both geo component and map series.
  var normalStyle = getFixedItemStyle(normalStyleModel);
  var emphasisStyle = getFixedItemStyle(emphasisStyleModel);
  var selectStyle = getFixedItemStyle(selectStyleModel);
  var blurStyle = getFixedItemStyle(blurStyleModel);
  // Update the itemStyle if has data visual
  var data = viewBuildCtx.data;
  if (data) {
    // Only visual color of each item will be used. It can be encoded by visualMap
    // But visual color of series is used in symbol drawing
    // Visual color for each series is for the symbol draw
    var style = data.getItemVisual(dataIndex, 'style');
    var decal = data.getItemVisual(dataIndex, 'decal');
    if (viewBuildCtx.isVisualEncodedByVisualMap && style.fill) {
      normalStyle.fill = style.fill;
    }
    if (decal) {
      normalStyle.decal = createOrUpdatePatternFromDecal(decal, viewBuildCtx.api);
    }
  }
  // SVG text, tspan and image can be named but not supporeted
  // to be styled by region option yet.
  el.setStyle(normalStyle);
  el.style.strokeNoScale = true;
  el.ensureState('emphasis').style = emphasisStyle;
  el.ensureState('select').style = selectStyle;
  el.ensureState('blur').style = blurStyle;
  // Enable blur
  setDefaultStateProxy(el);
}
function resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel,
// Exist only if `viewBuildCtx.data` exists.
dataIdx,
// If labelXY not provided, use `textConfig.position: 'inside'`
labelXY) {
  var data = viewBuildCtx.data;
  var isGeo = viewBuildCtx.isGeo;
  var isDataNaN = data && isNaN(data.get(data.mapDimension('value'), dataIdx));
  var itemLayout = data && data.getItemLayout(dataIdx);
  // In the following cases label will be drawn
  // 1. In map series and data value is NaN
  // 2. In geo component
  // 3. Region has no series legendIcon, which will be add a showLabel flag in mapSymbolLayout
  if (isGeo || isDataNaN || itemLayout && itemLayout.showLabel) {
    var query = !isGeo ? dataIdx : regionName;
    var labelFetcher = void 0;
    // Consider dataIdx not found.
    if (!data || dataIdx >= 0) {
      labelFetcher = mapOrGeoModel;
    }
    var specifiedTextOpt = labelXY ? {
      normal: {
        align: 'center',
        verticalAlign: 'middle'
      }
    } : null;
    // Caveat: must be called after `setDefaultStateProxy(el);` called.
    // because textContent will be assign with `el.stateProxy` inside.
    setLabelStyle(el, getLabelStatesModels(regionModel), {
      labelFetcher: labelFetcher,
      labelDataIndex: query,
      defaultText: regionName
    }, specifiedTextOpt);
    var textEl = el.getTextContent();
    if (textEl) {
      mapLabelRaw(textEl).ignore = textEl.ignore;
      if (el.textConfig && labelXY) {
        // Compute a relative offset based on the el bounding rect.
        var rect = el.getBoundingRect().clone();
        // Need to make sure the percent position base on the same rect in normal and
        // emphasis state. Otherwise if using boundingRect of el, but the emphasis state
        // has borderWidth (even 0.5px), the text position will be changed obviously
        // if the position is very big like ['1234%', '1345%'].
        el.textConfig.layoutRect = rect;
        el.textConfig.position = [(labelXY[0] - rect.x) / rect.width * 100 + '%', (labelXY[1] - rect.y) / rect.height * 100 + '%'];
      }
    }
    // PENDING:
    // If labelLayout is enabled (test/label-layout.html), el.dataIndex should be specified.
    // But el.dataIndex is also used to determine whether user event should be triggered,
    // where el.seriesIndex or el.dataModel must be specified. At present for a single el
    // there is not case that "only label layout enabled but user event disabled", so here
    // we depends `resetEventTriggerForRegion` to do the job of setting `el.dataIndex`.
    el.disableLabelAnimation = true;
  } else {
    el.removeTextContent();
    el.removeTextConfig();
    el.disableLabelAnimation = null;
  }
}
function resetEventTriggerForRegion(viewBuildCtx, eventTrigger, regionName, regionModel, mapOrGeoModel,
// Exist only if `viewBuildCtx.data` exists.
dataIdx) {
  // setItemGraphicEl, setHoverStyle after all polygons and labels
  // are added to the regionGroup
  if (viewBuildCtx.data) {
    // FIXME: when series-map use a SVG map, and there are duplicated name specified
    // on different SVG elements, after `data.setItemGraphicEl(...)`:
    // (1) all of them will be mounted with `dataIndex`, `seriesIndex`, so that tooltip
    // can be triggered only mouse hover. That's correct.
    // (2) only the last element will be kept in `data`, so that if trigger tooltip
    // by `dispatchAction`, only the last one can be found and triggered. That might be
    // not correct. We will fix it in future if anyone demanding that.
    viewBuildCtx.data.setItemGraphicEl(dataIdx, eventTrigger);
  }
  // series-map will not trigger "geoselectchange" no matter it is
  // based on a declared geo component. Because series-map will
  // trigger "selectchange". If it trigger both the two events,
  // If users call `chart.dispatchAction({type: 'toggleSelect'})`,
  // it not easy to also fire event "geoselectchanged".
  else {
    // Package custom mouse event for geo component
    getECData(eventTrigger).eventData = {
      componentType: 'geo',
      componentIndex: mapOrGeoModel.componentIndex,
      geoIndex: mapOrGeoModel.componentIndex,
      name: regionName,
      region: regionModel && regionModel.option || {}
    };
  }
}
function resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) {
  if (!viewBuildCtx.data) {
    setTooltipConfig({
      el: el,
      componentModel: mapOrGeoModel,
      itemName: regionName,
      // @ts-ignore FIXME:TS fix the "compatible with each other"?
      itemTooltipOption: regionModel.get('tooltip')
    });
  }
}
function resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) {
  // @ts-ignore FIXME:TS fix the "compatible with each other"?
  el.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode');
  // @ts-ignore FIXME:TS fix the "compatible with each other"?
  var emphasisModel = regionModel.getModel('emphasis');
  var focus = emphasisModel.get('focus');
  toggleHoverEmphasis(el, focus, emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
  if (viewBuildCtx.isGeo) {
    enableComponentHighDownFeatures(el, mapOrGeoModel, regionName);
  }
  return focus;
}
function projectPolys(rings,
// Polygons include exterior and interiors. Or polylines.
createStream, isLine) {
  var polygons = [];
  var curPoly;
  function startPolygon() {
    curPoly = [];
  }
  function endPolygon() {
    if (curPoly.length) {
      polygons.push(curPoly);
      curPoly = [];
    }
  }
  var stream = createStream({
    polygonStart: startPolygon,
    polygonEnd: endPolygon,
    lineStart: startPolygon,
    lineEnd: endPolygon,
    point: function (x, y) {
      // May have NaN values from stream.
      if (isFinite(x) && isFinite(y)) {
        curPoly.push([x, y]);
      }
    },
    sphere: function () {}
  });
  !isLine && stream.polygonStart();
  util["each"](rings, function (ring) {
    stream.lineStart();
    for (var i = 0; i < ring.length; i++) {
      stream.point(ring[i][0], ring[i][1]);
    }
    stream.lineEnd();
  });
  !isLine && stream.polygonEnd();
  return polygons;
}
/* harmony default export */ var helper_MapDraw = (MapDraw_MapDraw);
// @ts-ignore FIXME:TS fix the "compatible with each other"?
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/MapView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var MapView_MapView = /** @class */function (_super) {
  __extends(MapView, _super);
  function MapView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MapView.type;
    return _this;
  }
  MapView.prototype.render = function (mapModel, ecModel, api, payload) {
    // Not render if it is an toggleSelect action from self
    if (payload && payload.type === 'mapToggleSelect' && payload.from === this.uid) {
      return;
    }
    var group = this.group;
    group.removeAll();
    if (mapModel.getHostGeoModel()) {
      return;
    }
    if (this._mapDraw && payload && payload.type === 'geoRoam') {
      this._mapDraw.resetForLabelLayout();
    }
    // Not update map if it is an roam action from self
    if (!(payload && payload.type === 'geoRoam' && payload.componentType === 'series' && payload.seriesId === mapModel.id)) {
      if (mapModel.needsDrawMap) {
        var mapDraw = this._mapDraw || new helper_MapDraw(api);
        group.add(mapDraw.group);
        mapDraw.draw(mapModel, ecModel, api, this, payload);
        this._mapDraw = mapDraw;
      } else {
        // Remove drawn map
        this._mapDraw && this._mapDraw.remove();
        this._mapDraw = null;
      }
    } else {
      var mapDraw = this._mapDraw;
      mapDraw && group.add(mapDraw.group);
    }
    mapModel.get('showLegendSymbol') && ecModel.getComponent('legend') && this._renderSymbols(mapModel, ecModel, api);
  };
  MapView.prototype.remove = function () {
    this._mapDraw && this._mapDraw.remove();
    this._mapDraw = null;
    this.group.removeAll();
  };
  MapView.prototype.dispose = function () {
    this._mapDraw && this._mapDraw.remove();
    this._mapDraw = null;
  };
  MapView.prototype._renderSymbols = function (mapModel, ecModel, api) {
    var originalData = mapModel.originalData;
    var group = this.group;
    originalData.each(originalData.mapDimension('value'), function (value, originalDataIndex) {
      if (isNaN(value)) {
        return;
      }
      var layout = originalData.getItemLayout(originalDataIndex);
      if (!layout || !layout.point) {
        // Not exists in map
        return;
      }
      var point = layout.point;
      var offset = layout.offset;
      var circle = new shape_Circle({
        style: {
          // Because the special of map draw.
          // Which needs statistic of multiple series and draw on one map.
          // And each series also need a symbol with legend color
          //
          // Layout and visual are put one the different data
          // TODO
          fill: mapModel.getData().getVisual('style').fill
        },
        shape: {
          cx: point[0] + offset * 9,
          cy: point[1],
          r: 3
        },
        silent: true,
        // Do not overlap the first series, on which labels are displayed.
        z2: 8 + (!offset ? Z2_EMPHASIS_LIFT + 1 : 0)
      });
      // Only the series that has the first value on the same region is in charge of rendering the label.
      // But consider the case:
      // series: [
      //     {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]},
      //     {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]}
      // ]
      // The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`.
      // For backward compatibility, we follow the rule that render label `A` by the
      // settings on series `X` but render label `C` by the settings on series `Y`.
      if (!offset) {
        var fullData = mapModel.mainSeries.getData();
        var name_1 = originalData.getName(originalDataIndex);
        var fullIndex_1 = fullData.indexOfName(name_1);
        var itemModel = originalData.getItemModel(originalDataIndex);
        var labelModel = itemModel.getModel('label');
        var regionGroup = fullData.getItemGraphicEl(fullIndex_1);
        // `getFormattedLabel` needs to use `getData` inside. Here
        // `mapModel.getData()` is shallow cloned from `mainSeries.getData()`.
        // FIXME
        // If this is not the `mainSeries`, the item model (like label formatter)
        // set on original data item will never get. But it has been working
        // like that from the beginning, and this scenario is rarely encountered.
        // So it won't be fixed until we have to.
        setLabelStyle(circle, getLabelStatesModels(itemModel), {
          labelFetcher: {
            getFormattedLabel: function (idx, state) {
              return mapModel.getFormattedLabel(fullIndex_1, state);
            }
          },
          defaultText: name_1
        });
        circle.disableLabelAnimation = true;
        if (!labelModel.get('position')) {
          circle.setTextConfig({
            position: 'bottom'
          });
        }
        regionGroup.onHoverStateChange = function (toState) {
          setStatesFlag(circle, toState);
        };
      }
      group.add(circle);
    });
  };
  MapView.type = 'map';
  return MapView;
}(Chart);
/* harmony default export */ var map_MapView = (MapView_MapView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/MapSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var MapSeries_MapSeries = /** @class */function (_super) {
  __extends(MapSeries, _super);
  function MapSeries() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MapSeries.type;
    // Only first map series of same mapType will drawMap.
    _this.needsDrawMap = false;
    // Group of all map series with same mapType
    _this.seriesGroup = [];
    _this.getTooltipPosition = function (dataIndex) {
      if (dataIndex != null) {
        var name_1 = this.getData().getName(dataIndex);
        var geo = this.coordinateSystem;
        var region = geo.getRegion(name_1);
        return region && geo.dataToPoint(region.getCenter());
      }
    };
    return _this;
  }
  MapSeries.prototype.getInitialData = function (option) {
    var data = createSeriesDataSimply(this, {
      coordDimensions: ['value'],
      encodeDefaulter: util["curry"](makeSeriesEncodeForNameBased, this)
    });
    var dataNameIndexMap = util["createHashMap"]();
    var toAppendItems = [];
    for (var i = 0, len = data.count(); i < len; i++) {
      var name_2 = data.getName(i);
      dataNameIndexMap.set(name_2, i);
    }
    var geoSource = geoSourceManager.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);
    util["each"](geoSource.regions, function (region) {
      var name = region.name;
      var dataNameIdx = dataNameIndexMap.get(name);
      // apply specified echarts style in GeoJSON data
      var specifiedGeoJSONRegionStyle = region.properties && region.properties.echartsStyle;
      var dataItem;
      if (dataNameIdx == null) {
        dataItem = {
          name: name
        };
        toAppendItems.push(dataItem);
      } else {
        dataItem = data.getRawDataItem(dataNameIdx);
      }
      specifiedGeoJSONRegionStyle && util["merge"](dataItem, specifiedGeoJSONRegionStyle);
    });
    // Complete data with missing regions. The consequent processes (like visual
    // map and render) can not be performed without a "full data". For example,
    // find `dataIndex` by name.
    data.appendData(toAppendItems);
    return data;
  };
  /**
   * If no host geo model, return null, which means using a
   * inner exclusive geo model.
   */
  MapSeries.prototype.getHostGeoModel = function () {
    var geoIndex = this.option.geoIndex;
    return geoIndex != null ? this.ecModel.getComponent('geo', geoIndex) : null;
  };
  MapSeries.prototype.getMapType = function () {
    return (this.getHostGeoModel() || this).option.map;
  };
  // _fillOption(option, mapName) {
  // Shallow clone
  // option = zrUtil.extend({}, option);
  // option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap);
  // return option;
  // }
  MapSeries.prototype.getRawValue = function (dataIndex) {
    // Use value stored in data instead because it is calculated from multiple series
    // FIXME Provide all value of multiple series ?
    var data = this.getData();
    return data.get(data.mapDimension('value'), dataIndex);
  };
  /**
   * Get model of region
   */
  MapSeries.prototype.getRegionModel = function (regionName) {
    var data = this.getData();
    return data.getItemModel(data.indexOfName(regionName));
  };
  /**
   * Map tooltip formatter
   */
  MapSeries.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    // FIXME orignalData and data is a bit confusing
    var data = this.getData();
    var value = this.getRawValue(dataIndex);
    var name = data.getName(dataIndex);
    var seriesGroup = this.seriesGroup;
    var seriesNames = [];
    for (var i = 0; i < seriesGroup.length; i++) {
      var otherIndex = seriesGroup[i].originalData.indexOfName(name);
      var valueDim = data.mapDimension('value');
      if (!isNaN(seriesGroup[i].originalData.get(valueDim, otherIndex))) {
        seriesNames.push(seriesGroup[i].name);
      }
    }
    return createTooltipMarkup('section', {
      header: seriesNames.join(', '),
      noHeader: !seriesNames.length,
      blocks: [createTooltipMarkup('nameValue', {
        name: name,
        value: value
      })]
    });
  };
  MapSeries.prototype.setZoom = function (zoom) {
    this.option.zoom = zoom;
  };
  MapSeries.prototype.setCenter = function (center) {
    this.option.center = center;
  };
  MapSeries.prototype.getLegendIcon = function (opt) {
    var iconType = opt.icon || 'roundRect';
    var icon = symbol_createSymbol(iconType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill);
    icon.setStyle(opt.itemStyle);
    // Map do not use itemStyle.borderWidth as border width
    icon.style.stroke = 'none';
    // No rotation because no series visual symbol for map
    if (iconType.indexOf('empty') > -1) {
      icon.style.stroke = icon.style.fill;
      icon.style.fill = '#fff';
      icon.style.lineWidth = 2;
    }
    return icon;
  };
  MapSeries.type = 'series.map';
  MapSeries.dependencies = ['geo'];
  MapSeries.layoutMode = 'box';
  MapSeries.defaultOption = {
    // 一级层叠
    // zlevel: 0,
    // 二级层叠
    z: 2,
    coordinateSystem: 'geo',
    // map should be explicitly specified since ec3.
    map: '',
    // If `geoIndex` is not specified, a exclusive geo will be
    // created. Otherwise use the specified geo component, and
    // `map` and `mapType` are ignored.
    // geoIndex: 0,
    // 'center' | 'left' | 'right' | 'x%' | {number}
    left: 'center',
    // 'center' | 'top' | 'bottom' | 'x%' | {number}
    top: 'center',
    // right
    // bottom
    // width:
    // height
    // Aspect is width / height. Inited to be geoJson bbox aspect
    // This parameter is used for scale this aspect
    // Default value:
    // for geoSVG source: 1,
    // for geoJSON source: 0.75.
    aspectScale: null,
    // Layout with center and size
    // If you want to put map in a fixed size box with right aspect ratio
    // This two properties may be more convenient.
    // layoutCenter: [50%, 50%]
    // layoutSize: 100
    showLegendSymbol: true,
    // Define left-top, right-bottom coords to control view
    // For example, [ [180, 90], [-180, -90] ],
    // higher priority than center and zoom
    boundingCoords: null,
    // Default on center of map
    center: null,
    zoom: 1,
    scaleLimit: null,
    selectedMode: true,
    label: {
      show: false,
      color: '#000'
    },
    // scaleLimit: null,
    itemStyle: {
      borderWidth: 0.5,
      borderColor: '#444',
      areaColor: '#eee'
    },
    emphasis: {
      label: {
        show: true,
        color: 'rgb(100,0,0)'
      },
      itemStyle: {
        areaColor: 'rgba(255,215,0,0.8)'
      }
    },
    select: {
      label: {
        show: true,
        color: 'rgb(100,0,0)'
      },
      itemStyle: {
        color: 'rgba(255,215,0,0.8)'
      }
    },
    nameProperty: 'name'
  };
  return MapSeries;
}(Series);
/* harmony default export */ var map_MapSeries = (MapSeries_MapSeries);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/mapDataStatistic.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// FIXME 公用？
function dataStatistics(datas, statisticType) {
  var dataNameMap = {};
  util["each"](datas, function (data) {
    data.each(data.mapDimension('value'), function (value, idx) {
      // Add prefix to avoid conflict with Object.prototype.
      var mapKey = 'ec-' + data.getName(idx);
      dataNameMap[mapKey] = dataNameMap[mapKey] || [];
      if (!isNaN(value)) {
        dataNameMap[mapKey].push(value);
      }
    });
  });
  return datas[0].map(datas[0].mapDimension('value'), function (value, idx) {
    var mapKey = 'ec-' + datas[0].getName(idx);
    var sum = 0;
    var min = Infinity;
    var max = -Infinity;
    var len = dataNameMap[mapKey].length;
    for (var i = 0; i < len; i++) {
      min = Math.min(min, dataNameMap[mapKey][i]);
      max = Math.max(max, dataNameMap[mapKey][i]);
      sum += dataNameMap[mapKey][i];
    }
    var result;
    if (statisticType === 'min') {
      result = min;
    } else if (statisticType === 'max') {
      result = max;
    } else if (statisticType === 'average') {
      result = sum / len;
    } else {
      result = sum;
    }
    return len === 0 ? NaN : result;
  });
}
function mapDataStatistic(ecModel) {
  var seriesGroups = {};
  ecModel.eachSeriesByType('map', function (seriesModel) {
    var hostGeoModel = seriesModel.getHostGeoModel();
    var key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType();
    (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel);
  });
  util["each"](seriesGroups, function (seriesList, key) {
    var data = dataStatistics(util["map"](seriesList, function (seriesModel) {
      return seriesModel.getData();
    }), seriesList[0].get('mapValueCalculation'));
    for (var i = 0; i < seriesList.length; i++) {
      seriesList[i].originalData = seriesList[i].getData();
    }
    // FIXME Put where?
    for (var i = 0; i < seriesList.length; i++) {
      seriesList[i].seriesGroup = seriesList;
      seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel();
      seriesList[i].setData(data.cloneShallow());
      seriesList[i].mainSeries = seriesList[0];
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/mapSymbolLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function mapSymbolLayout(ecModel) {
  var processedMapType = {};
  ecModel.eachSeriesByType('map', function (mapSeries) {
    var mapType = mapSeries.getMapType();
    if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {
      return;
    }
    var mapSymbolOffsets = {};
    util["each"](mapSeries.seriesGroup, function (subMapSeries) {
      var geo = subMapSeries.coordinateSystem;
      var data = subMapSeries.originalData;
      if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {
        data.each(data.mapDimension('value'), function (value, idx) {
          var name = data.getName(idx);
          var region = geo.getRegion(name);
          // If input series.data is [11, 22, '-'/null/undefined, 44],
          // it will be filled with NaN: [11, 22, NaN, 44] and NaN will
          // not be drawn. So here must validate if value is NaN.
          if (!region || isNaN(value)) {
            return;
          }
          var offset = mapSymbolOffsets[name] || 0;
          var point = geo.dataToPoint(region.getCenter());
          mapSymbolOffsets[name] = offset + 1;
          data.setItemLayout(idx, {
            point: point,
            offset: offset
          });
        });
      }
    });
    // Show label of those region not has legendIcon (which is offset 0)
    var data = mapSeries.getData();
    data.each(function (idx) {
      var name = data.getName(idx);
      var layout = data.getItemLayout(idx) || {};
      layout.showLabel = !mapSymbolOffsets[name];
      data.setItemLayout(idx, layout);
    });
    processedMapType[mapType] = true;
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/View.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * Simple view coordinate system
 * Mapping given x, y to transformd view x, y
 */





var v2ApplyTransform = applyTransform;
var View_View = /** @class */function (_super) {
  __extends(View, _super);
  function View(name) {
    var _this = _super.call(this) || this;
    _this.type = 'view';
    _this.dimensions = ['x', 'y'];
    /**
     * Represents the transform brought by roam/zoom.
     * If `View['_viewRect']` applies roam transform,
     * we can get the final displayed rect.
     */
    _this._roamTransformable = new core_Transformable();
    /**
     * Represents the transform from `View['_rect']` to `View['_viewRect']`.
     */
    _this._rawTransformable = new core_Transformable();
    _this.name = name;
    return _this;
  }
  View.prototype.setBoundingRect = function (x, y, width, height) {
    this._rect = new core_BoundingRect(x, y, width, height);
    return this._rect;
  };
  /**
   * @return {module:zrender/core/BoundingRect}
   */
  View.prototype.getBoundingRect = function () {
    return this._rect;
  };
  View.prototype.setViewRect = function (x, y, width, height) {
    this._transformTo(x, y, width, height);
    this._viewRect = new core_BoundingRect(x, y, width, height);
  };
  /**
   * Transformed to particular position and size
   */
  View.prototype._transformTo = function (x, y, width, height) {
    var rect = this.getBoundingRect();
    var rawTransform = this._rawTransformable;
    rawTransform.transform = rect.calculateTransform(new core_BoundingRect(x, y, width, height));
    var rawParent = rawTransform.parent;
    rawTransform.parent = null;
    rawTransform.decomposeTransform();
    rawTransform.parent = rawParent;
    this._updateTransform();
  };
  /**
   * Set center of view
   */
  View.prototype.setCenter = function (centerCoord, api) {
    if (!centerCoord) {
      return;
    }
    this._center = [number_parsePercent(centerCoord[0], api.getWidth()), number_parsePercent(centerCoord[1], api.getHeight())];
    this._updateCenterAndZoom();
  };
  View.prototype.setZoom = function (zoom) {
    zoom = zoom || 1;
    var zoomLimit = this.zoomLimit;
    if (zoomLimit) {
      if (zoomLimit.max != null) {
        zoom = Math.min(zoomLimit.max, zoom);
      }
      if (zoomLimit.min != null) {
        zoom = Math.max(zoomLimit.min, zoom);
      }
    }
    this._zoom = zoom;
    this._updateCenterAndZoom();
  };
  /**
   * Get default center without roam
   */
  View.prototype.getDefaultCenter = function () {
    // Rect before any transform
    var rawRect = this.getBoundingRect();
    var cx = rawRect.x + rawRect.width / 2;
    var cy = rawRect.y + rawRect.height / 2;
    return [cx, cy];
  };
  View.prototype.getCenter = function () {
    return this._center || this.getDefaultCenter();
  };
  View.prototype.getZoom = function () {
    return this._zoom || 1;
  };
  View.prototype.getRoamTransform = function () {
    return this._roamTransformable.getLocalTransform();
  };
  /**
   * Remove roam
   */
  View.prototype._updateCenterAndZoom = function () {
    // Must update after view transform updated
    var rawTransformMatrix = this._rawTransformable.getLocalTransform();
    var roamTransform = this._roamTransformable;
    var defaultCenter = this.getDefaultCenter();
    var center = this.getCenter();
    var zoom = this.getZoom();
    center = applyTransform([], center, rawTransformMatrix);
    defaultCenter = applyTransform([], defaultCenter, rawTransformMatrix);
    roamTransform.originX = center[0];
    roamTransform.originY = center[1];
    roamTransform.x = defaultCenter[0] - center[0];
    roamTransform.y = defaultCenter[1] - center[1];
    roamTransform.scaleX = roamTransform.scaleY = zoom;
    this._updateTransform();
  };
  /**
   * Update transform props on `this` based on the current
   * `this._roamTransformable` and `this._rawTransformable`.
   */
  View.prototype._updateTransform = function () {
    var roamTransformable = this._roamTransformable;
    var rawTransformable = this._rawTransformable;
    rawTransformable.parent = roamTransformable;
    roamTransformable.updateTransform();
    rawTransformable.updateTransform();
    matrix_copy(this.transform || (this.transform = []), rawTransformable.transform || matrix_create());
    this._rawTransform = rawTransformable.getLocalTransform();
    this.invTransform = this.invTransform || [];
    matrix_invert(this.invTransform, this.transform);
    this.decomposeTransform();
  };
  View.prototype.getTransformInfo = function () {
    var rawTransformable = this._rawTransformable;
    var roamTransformable = this._roamTransformable;
    // Because roamTransformabel has `originX/originY` modified,
    // but the caller of `getTransformInfo` can not handle `originX/originY`,
    // so need to recalculate them.
    var dummyTransformable = new core_Transformable();
    dummyTransformable.transform = roamTransformable.transform;
    dummyTransformable.decomposeTransform();
    return {
      roam: {
        x: dummyTransformable.x,
        y: dummyTransformable.y,
        scaleX: dummyTransformable.scaleX,
        scaleY: dummyTransformable.scaleY
      },
      raw: {
        x: rawTransformable.x,
        y: rawTransformable.y,
        scaleX: rawTransformable.scaleX,
        scaleY: rawTransformable.scaleY
      }
    };
  };
  View.prototype.getViewRect = function () {
    return this._viewRect;
  };
  /**
   * Get view rect after roam transform
   */
  View.prototype.getViewRectAfterRoam = function () {
    var rect = this.getBoundingRect().clone();
    rect.applyTransform(this.transform);
    return rect;
  };
  /**
   * Convert a single (lon, lat) data item to (x, y) point.
   */
  View.prototype.dataToPoint = function (data, noRoam, out) {
    var transform = noRoam ? this._rawTransform : this.transform;
    out = out || [];
    return transform ? v2ApplyTransform(out, data, transform) : vector_copy(out, data);
  };
  /**
   * Convert a (x, y) point to (lon, lat) data
   */
  View.prototype.pointToData = function (point) {
    var invTransform = this.invTransform;
    return invTransform ? v2ApplyTransform([], point, invTransform) : [point[0], point[1]];
  };
  View.prototype.convertToPixel = function (ecModel, finder, value) {
    var coordSys = getCoordSys(finder);
    return coordSys === this ? coordSys.dataToPoint(value) : null;
  };
  View.prototype.convertFromPixel = function (ecModel, finder, pixel) {
    var coordSys = getCoordSys(finder);
    return coordSys === this ? coordSys.pointToData(pixel) : null;
  };
  /**
   * @implements
   */
  View.prototype.containPoint = function (point) {
    return this.getViewRectAfterRoam().contain(point[0], point[1]);
  };
  View.dimensions = ['x', 'y'];
  return View;
}(core_Transformable);
function getCoordSys(finder) {
  var seriesModel = finder.seriesModel;
  return seriesModel ? seriesModel.coordinateSystem : null; // e.g., graph.
}
/* harmony default export */ var coord_View = (View_View);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/Geo.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var GEO_DEFAULT_PARAMS = {
  'geoJSON': {
    aspectScale: 0.75,
    invertLongitute: true
  },
  'geoSVG': {
    aspectScale: 1,
    invertLongitute: false
  }
};
var geo2DDimensions = ['lng', 'lat'];
var Geo_Geo = /** @class */function (_super) {
  __extends(Geo, _super);
  function Geo(name, map, opt) {
    var _this = _super.call(this, name) || this;
    _this.dimensions = geo2DDimensions;
    _this.type = 'geo';
    // Only store specified name coord via `addGeoCoord`.
    _this._nameCoordMap = util["createHashMap"]();
    _this.map = map;
    var projection = opt.projection;
    var source = geoSourceManager.load(map, opt.nameMap, opt.nameProperty);
    var resource = geoSourceManager.getGeoResource(map);
    var resourceType = _this.resourceType = resource ? resource.type : null;
    var regions = _this.regions = source.regions;
    var defaultParams = GEO_DEFAULT_PARAMS[resource.type];
    _this._regionsMap = source.regionsMap;
    _this.regions = source.regions;
    if (false) {}
    _this.projection = projection;
    var boundingRect;
    if (projection) {
      // Can't reuse the raw bounding rect
      for (var i = 0; i < regions.length; i++) {
        var regionRect = regions[i].getBoundingRect(projection);
        boundingRect = boundingRect || regionRect.clone();
        boundingRect.union(regionRect);
      }
    } else {
      boundingRect = source.boundingRect;
    }
    _this.setBoundingRect(boundingRect.x, boundingRect.y, boundingRect.width, boundingRect.height);
    // aspectScale and invertLongitute actually is the parameters default raw projection.
    // So we ignore them if projection is given.
    // Ignore default aspect scale if projection exits.
    _this.aspectScale = projection ? 1 : util["retrieve2"](opt.aspectScale, defaultParams.aspectScale);
    // Not invert longitude if projection exits.
    _this._invertLongitute = projection ? false : defaultParams.invertLongitute;
    return _this;
  }
  Geo.prototype._transformTo = function (x, y, width, height) {
    var rect = this.getBoundingRect();
    var invertLongitute = this._invertLongitute;
    rect = rect.clone();
    if (invertLongitute) {
      // Longitude is inverted.
      rect.y = -rect.y - rect.height;
    }
    var rawTransformable = this._rawTransformable;
    rawTransformable.transform = rect.calculateTransform(new core_BoundingRect(x, y, width, height));
    var rawParent = rawTransformable.parent;
    rawTransformable.parent = null;
    rawTransformable.decomposeTransform();
    rawTransformable.parent = rawParent;
    if (invertLongitute) {
      rawTransformable.scaleY = -rawTransformable.scaleY;
    }
    this._updateTransform();
  };
  Geo.prototype.getRegion = function (name) {
    return this._regionsMap.get(name);
  };
  Geo.prototype.getRegionByCoord = function (coord) {
    var regions = this.regions;
    for (var i = 0; i < regions.length; i++) {
      var region = regions[i];
      if (region.type === 'geoJSON' && region.contain(coord)) {
        return regions[i];
      }
    }
  };
  /**
   * Add geoCoord for indexing by name
   */
  Geo.prototype.addGeoCoord = function (name, geoCoord) {
    this._nameCoordMap.set(name, geoCoord);
  };
  /**
   * Get geoCoord by name
   */
  Geo.prototype.getGeoCoord = function (name) {
    var region = this._regionsMap.get(name);
    // Calculate center only on demand.
    return this._nameCoordMap.get(name) || region && region.getCenter();
  };
  Geo.prototype.dataToPoint = function (data, noRoam, out) {
    if (util["isString"](data)) {
      // Map area name to geoCoord
      data = this.getGeoCoord(data);
    }
    if (data) {
      var projection = this.projection;
      if (projection) {
        // projection may return null point.
        data = projection.project(data);
      }
      return data && this.projectedToPoint(data, noRoam, out);
    }
  };
  Geo.prototype.pointToData = function (point) {
    var projection = this.projection;
    if (projection) {
      // projection may return null point.
      point = projection.unproject(point);
    }
    return point && this.pointToProjected(point);
  };
  /**
   * Point to projected data. Same with pointToData when projection is used.
   */
  Geo.prototype.pointToProjected = function (point) {
    return _super.prototype.pointToData.call(this, point);
  };
  Geo.prototype.projectedToPoint = function (projected, noRoam, out) {
    return _super.prototype.dataToPoint.call(this, projected, noRoam, out);
  };
  Geo.prototype.convertToPixel = function (ecModel, finder, value) {
    var coordSys = Geo_getCoordSys(finder);
    return coordSys === this ? coordSys.dataToPoint(value) : null;
  };
  Geo.prototype.convertFromPixel = function (ecModel, finder, pixel) {
    var coordSys = Geo_getCoordSys(finder);
    return coordSys === this ? coordSys.pointToData(pixel) : null;
  };
  return Geo;
}(coord_View);
;
util["mixin"](Geo_Geo, coord_View);
function Geo_getCoordSys(finder) {
  var geoModel = finder.geoModel;
  var seriesModel = finder.seriesModel;
  return geoModel ? geoModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem // For map series.
  || (seriesModel.getReferringComponents('geo', SINGLE_REFERRING).models[0] || {}).coordinateSystem : null;
}
/* harmony default export */ var geo_Geo = (Geo_Geo);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/geoCreator.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






/**
 * Resize method bound to the geo
 */
function resizeGeo(geoModel, api) {
  var boundingCoords = geoModel.get('boundingCoords');
  if (boundingCoords != null) {
    var leftTop_1 = boundingCoords[0];
    var rightBottom_1 = boundingCoords[1];
    if (!(isFinite(leftTop_1[0]) && isFinite(leftTop_1[1]) && isFinite(rightBottom_1[0]) && isFinite(rightBottom_1[1]))) {
      if (false) {}
    } else {
      // Sample around the lng/lat rect and use projection to calculate actual bounding rect.
      var projection_1 = this.projection;
      if (projection_1) {
        var xMin = leftTop_1[0];
        var yMin = leftTop_1[1];
        var xMax = rightBottom_1[0];
        var yMax = rightBottom_1[1];
        leftTop_1 = [Infinity, Infinity];
        rightBottom_1 = [-Infinity, -Infinity];
        // TODO better way?
        var sampleLine = function (x0, y0, x1, y1) {
          var dx = x1 - x0;
          var dy = y1 - y0;
          for (var i = 0; i <= 100; i++) {
            var p = i / 100;
            var pt = projection_1.project([x0 + dx * p, y0 + dy * p]);
            vector_min(leftTop_1, leftTop_1, pt);
            vector_max(rightBottom_1, rightBottom_1, pt);
          }
        };
        // Top
        sampleLine(xMin, yMin, xMax, yMin);
        // Right
        sampleLine(xMax, yMin, xMax, yMax);
        // Bottom
        sampleLine(xMax, yMax, xMin, yMax);
        // Left
        sampleLine(xMin, yMax, xMax, yMin);
      }
      this.setBoundingRect(leftTop_1[0], leftTop_1[1], rightBottom_1[0] - leftTop_1[0], rightBottom_1[1] - leftTop_1[1]);
    }
  }
  var rect = this.getBoundingRect();
  var centerOption = geoModel.get('layoutCenter');
  var sizeOption = geoModel.get('layoutSize');
  var viewWidth = api.getWidth();
  var viewHeight = api.getHeight();
  var aspect = rect.width / rect.height * this.aspectScale;
  var useCenterAndSize = false;
  var center;
  var size;
  if (centerOption && sizeOption) {
    center = [number_parsePercent(centerOption[0], viewWidth), number_parsePercent(centerOption[1], viewHeight)];
    size = number_parsePercent(sizeOption, Math.min(viewWidth, viewHeight));
    if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {
      useCenterAndSize = true;
    } else {
      if (false) {}
    }
  }
  var viewRect;
  if (useCenterAndSize) {
    viewRect = {};
    if (aspect > 1) {
      // Width is same with size
      viewRect.width = size;
      viewRect.height = size / aspect;
    } else {
      viewRect.height = size;
      viewRect.width = size * aspect;
    }
    viewRect.y = center[1] - viewRect.height / 2;
    viewRect.x = center[0] - viewRect.width / 2;
  } else {
    // Use left/top/width/height
    var boxLayoutOption = geoModel.getBoxLayoutParams();
    boxLayoutOption.aspect = aspect;
    viewRect = getLayoutRect(boxLayoutOption, {
      width: viewWidth,
      height: viewHeight
    });
  }
  this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);
  this.setCenter(geoModel.get('center'), api);
  this.setZoom(geoModel.get('zoom'));
}
// Back compat for ECharts2, where the coord map is set on map series:
// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},
function setGeoCoords(geo, model) {
  util["each"](model.get('geoCoord'), function (geoCoord, name) {
    geo.addGeoCoord(name, geoCoord);
  });
}
var geoCreator_GeoCreator = /** @class */function () {
  function GeoCreator() {
    // For deciding which dimensions to use when creating list data
    this.dimensions = geo2DDimensions;
  }
  GeoCreator.prototype.create = function (ecModel, api) {
    var geoList = [];
    function getCommonGeoProperties(model) {
      return {
        nameProperty: model.get('nameProperty'),
        aspectScale: model.get('aspectScale'),
        projection: model.get('projection')
      };
    }
    // FIXME Create each time may be slow
    ecModel.eachComponent('geo', function (geoModel, idx) {
      var mapName = geoModel.get('map');
      var geo = new geo_Geo(mapName + idx, mapName, util["extend"]({
        nameMap: geoModel.get('nameMap')
      }, getCommonGeoProperties(geoModel)));
      geo.zoomLimit = geoModel.get('scaleLimit');
      geoList.push(geo);
      // setGeoCoords(geo, geoModel);
      geoModel.coordinateSystem = geo;
      geo.model = geoModel;
      // Inject resize method
      geo.resize = resizeGeo;
      geo.resize(geoModel, api);
    });
    ecModel.eachSeries(function (seriesModel) {
      var coordSys = seriesModel.get('coordinateSystem');
      if (coordSys === 'geo') {
        var geoIndex = seriesModel.get('geoIndex') || 0;
        seriesModel.coordinateSystem = geoList[geoIndex];
      }
    });
    // If has map series
    var mapModelGroupBySeries = {};
    ecModel.eachSeriesByType('map', function (seriesModel) {
      if (!seriesModel.getHostGeoModel()) {
        var mapType = seriesModel.getMapType();
        mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];
        mapModelGroupBySeries[mapType].push(seriesModel);
      }
    });
    util["each"](mapModelGroupBySeries, function (mapSeries, mapType) {
      var nameMapList = util["map"](mapSeries, function (singleMapSeries) {
        return singleMapSeries.get('nameMap');
      });
      var geo = new geo_Geo(mapType, mapType, util["extend"]({
        nameMap: util["mergeAll"](nameMapList)
      }, getCommonGeoProperties(mapSeries[0])));
      geo.zoomLimit = util["retrieve"].apply(null, util["map"](mapSeries, function (singleMapSeries) {
        return singleMapSeries.get('scaleLimit');
      }));
      geoList.push(geo);
      // Inject resize method
      geo.resize = resizeGeo;
      geo.resize(mapSeries[0], api);
      util["each"](mapSeries, function (singleMapSeries) {
        singleMapSeries.coordinateSystem = geo;
        setGeoCoords(geo, singleMapSeries);
      });
    });
    return geoList;
  };
  /**
   * Fill given regions array
   */
  GeoCreator.prototype.getFilledRegions = function (originRegionArr, mapName, nameMap, nameProperty) {
    // Not use the original
    var regionsArr = (originRegionArr || []).slice();
    var dataNameMap = util["createHashMap"]();
    for (var i = 0; i < regionsArr.length; i++) {
      dataNameMap.set(regionsArr[i].name, regionsArr[i]);
    }
    var source = geoSourceManager.load(mapName, nameMap, nameProperty);
    util["each"](source.regions, function (region) {
      var name = region.name;
      var regionOption = dataNameMap.get(name);
      // apply specified echarts style in GeoJSON data
      var specifiedGeoJSONRegionStyle = region.properties && region.properties.echartsStyle;
      if (!regionOption) {
        regionOption = {
          name: name
        };
        regionsArr.push(regionOption);
      }
      specifiedGeoJSONRegionStyle && util["merge"](regionOption, specifiedGeoJSONRegionStyle);
    });
    return regionsArr;
  };
  return GeoCreator;
}();
var geoCreator = new geoCreator_GeoCreator();
/* harmony default export */ var geo_geoCreator = (geoCreator);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/GeoModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







;
var GeoModel_GeoModel = /** @class */function (_super) {
  __extends(GeoModel, _super);
  function GeoModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GeoModel.type;
    return _this;
  }
  GeoModel.prototype.init = function (option, parentModel, ecModel) {
    var source = geoSourceManager.getGeoResource(option.map);
    if (source && source.type === 'geoJSON') {
      var itemStyle = option.itemStyle = option.itemStyle || {};
      if (!('color' in itemStyle)) {
        itemStyle.color = '#eee';
      }
    }
    this.mergeDefaultAndTheme(option, ecModel);
    // Default label emphasis `show`
    defaultEmphasis(option, 'label', ['show']);
  };
  GeoModel.prototype.optionUpdated = function () {
    var _this = this;
    var option = this.option;
    option.regions = geo_geoCreator.getFilledRegions(option.regions, option.map, option.nameMap, option.nameProperty);
    var selectedMap = {};
    this._optionModelMap = util["reduce"](option.regions || [], function (optionModelMap, regionOpt) {
      var regionName = regionOpt.name;
      if (regionName) {
        optionModelMap.set(regionName, new model_Model(regionOpt, _this, _this.ecModel));
        if (regionOpt.selected) {
          selectedMap[regionName] = true;
        }
      }
      return optionModelMap;
    }, util["createHashMap"]());
    if (!option.selectedMap) {
      option.selectedMap = selectedMap;
    }
  };
  /**
   * Get model of region.
   */
  GeoModel.prototype.getRegionModel = function (name) {
    return this._optionModelMap.get(name) || new model_Model(null, this, this.ecModel);
  };
  /**
   * Format label
   * @param name Region name
   */
  GeoModel.prototype.getFormattedLabel = function (name, status) {
    var regionModel = this.getRegionModel(name);
    var formatter = status === 'normal' ? regionModel.get(['label', 'formatter']) : regionModel.get(['emphasis', 'label', 'formatter']);
    var params = {
      name: name
    };
    if (util["isFunction"](formatter)) {
      params.status = status;
      return formatter(params);
    } else if (util["isString"](formatter)) {
      return formatter.replace('{a}', name != null ? name : '');
    }
  };
  GeoModel.prototype.setZoom = function (zoom) {
    this.option.zoom = zoom;
  };
  GeoModel.prototype.setCenter = function (center) {
    this.option.center = center;
  };
  // PENGING If selectedMode is null ?
  GeoModel.prototype.select = function (name) {
    var option = this.option;
    var selectedMode = option.selectedMode;
    if (!selectedMode) {
      return;
    }
    if (selectedMode !== 'multiple') {
      option.selectedMap = null;
    }
    var selectedMap = option.selectedMap || (option.selectedMap = {});
    selectedMap[name] = true;
  };
  GeoModel.prototype.unSelect = function (name) {
    var selectedMap = this.option.selectedMap;
    if (selectedMap) {
      selectedMap[name] = false;
    }
  };
  GeoModel.prototype.toggleSelected = function (name) {
    this[this.isSelected(name) ? 'unSelect' : 'select'](name);
  };
  GeoModel.prototype.isSelected = function (name) {
    var selectedMap = this.option.selectedMap;
    return !!(selectedMap && selectedMap[name]);
  };
  GeoModel.type = 'geo';
  GeoModel.layoutMode = 'box';
  GeoModel.defaultOption = {
    // zlevel: 0,
    z: 0,
    show: true,
    left: 'center',
    top: 'center',
    // Default value:
    // for geoSVG source: 1,
    // for geoJSON source: 0.75.
    aspectScale: null,
    // /// Layout with center and size
    // If you want to put map in a fixed size box with right aspect ratio
    // This two properties may be more convenient
    // layoutCenter: [50%, 50%]
    // layoutSize: 100
    silent: false,
    // Map type
    map: '',
    // Define left-top, right-bottom coords to control view
    // For example, [ [180, 90], [-180, -90] ]
    boundingCoords: null,
    // Default on center of map
    center: null,
    zoom: 1,
    scaleLimit: null,
    // selectedMode: false
    label: {
      show: false,
      color: '#000'
    },
    itemStyle: {
      borderWidth: 0.5,
      borderColor: '#444'
      // Default color:
      // + geoJSON: #eee
      // + geoSVG: null (use SVG original `fill`)
      // color: '#eee'
    },
    emphasis: {
      label: {
        show: true,
        color: 'rgb(100,0,0)'
      },
      itemStyle: {
        color: 'rgba(255,215,0,0.8)'
      }
    },
    select: {
      label: {
        show: true,
        color: 'rgb(100,0,0)'
      },
      itemStyle: {
        color: 'rgba(255,215,0,0.8)'
      }
    },
    regions: []
    // tooltip: {
    //     show: false
    // }
  };
  return GeoModel;
}(Component);
/* harmony default export */ var geo_GeoModel = (GeoModel_GeoModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/action/roamHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function getCenterCoord(view, point) {
  // Use projected coord as center because it's linear.
  return view.pointToProjected ? view.pointToProjected(point) : view.pointToData(point);
}
function updateCenterAndZoom(view, payload, zoomLimit, api) {
  var previousZoom = view.getZoom();
  var center = view.getCenter();
  var zoom = payload.zoom;
  var point = view.projectedToPoint ? view.projectedToPoint(center) : view.dataToPoint(center);
  if (payload.dx != null && payload.dy != null) {
    point[0] -= payload.dx;
    point[1] -= payload.dy;
    view.setCenter(getCenterCoord(view, point), api);
  }
  if (zoom != null) {
    if (zoomLimit) {
      var zoomMin = zoomLimit.min || 0;
      var zoomMax = zoomLimit.max || Infinity;
      zoom = Math.max(Math.min(previousZoom * zoom, zoomMax), zoomMin) / previousZoom;
    }
    // Zoom on given point(originX, originY)
    view.scaleX *= zoom;
    view.scaleY *= zoom;
    var fixX = (payload.originX - view.x) * (zoom - 1);
    var fixY = (payload.originY - view.y) * (zoom - 1);
    view.x -= fixX;
    view.y -= fixY;
    view.updateTransform();
    // Get the new center
    view.setCenter(getCenterCoord(view, point), api);
    view.setZoom(zoom * previousZoom);
  }
  return {
    center: view.getCenter(),
    zoom: view.getZoom()
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/geo/GeoView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var GeoView_GeoView = /** @class */function (_super) {
  __extends(GeoView, _super);
  function GeoView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GeoView.type;
    _this.focusBlurEnabled = true;
    return _this;
  }
  GeoView.prototype.init = function (ecModel, api) {
    this._api = api;
  };
  GeoView.prototype.render = function (geoModel, ecModel, api, payload) {
    this._model = geoModel;
    if (!geoModel.get('show')) {
      this._mapDraw && this._mapDraw.remove();
      this._mapDraw = null;
      return;
    }
    if (!this._mapDraw) {
      this._mapDraw = new helper_MapDraw(api);
    }
    var mapDraw = this._mapDraw;
    mapDraw.draw(geoModel, ecModel, api, this, payload);
    mapDraw.group.on('click', this._handleRegionClick, this);
    mapDraw.group.silent = geoModel.get('silent');
    this.group.add(mapDraw.group);
    this.updateSelectStatus(geoModel, ecModel, api);
  };
  GeoView.prototype._handleRegionClick = function (e) {
    var eventData;
    findEventDispatcher(e.target, function (current) {
      return (eventData = getECData(current).eventData) != null;
    }, true);
    if (eventData) {
      this._api.dispatchAction({
        type: 'geoToggleSelect',
        geoId: this._model.id,
        name: eventData.name
      });
    }
  };
  GeoView.prototype.updateSelectStatus = function (model, ecModel, api) {
    var _this = this;
    this._mapDraw.group.traverse(function (node) {
      var eventData = getECData(node).eventData;
      if (eventData) {
        _this._model.isSelected(eventData.name) ? api.enterSelect(node) : api.leaveSelect(node);
        // No need to traverse children.
        return true;
      }
    });
  };
  GeoView.prototype.findHighDownDispatchers = function (name) {
    return this._mapDraw && this._mapDraw.findHighDownDispatchers(name, this._model);
  };
  GeoView.prototype.dispose = function () {
    this._mapDraw && this._mapDraw.remove();
  };
  GeoView.type = 'geo';
  return GeoView;
}(view_Component);
/* harmony default export */ var geo_GeoView = (GeoView_GeoView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/geo/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






function install_registerMap(mapName, geoJson, specialAreas) {
  geoSourceManager.registerMap(mapName, geoJson, specialAreas);
}
function geo_install_install(registers) {
  registers.registerCoordinateSystem('geo', geo_geoCreator);
  registers.registerComponentModel(geo_GeoModel);
  registers.registerComponentView(geo_GeoView);
  registers.registerImpl('registerMap', install_registerMap);
  registers.registerImpl('getMap', function (mapName) {
    return geoSourceManager.getMapForUser(mapName);
  });
  function makeAction(method, actionInfo) {
    actionInfo.update = 'geo:updateSelectStatus';
    registers.registerAction(actionInfo, function (payload, ecModel) {
      var selected = {};
      var allSelected = [];
      ecModel.eachComponent({
        mainType: 'geo',
        query: payload
      }, function (geoModel) {
        geoModel[method](payload.name);
        var geo = geoModel.coordinateSystem;
        Object(util["each"])(geo.regions, function (region) {
          selected[region.name] = geoModel.isSelected(region.name) || false;
        });
        // Notice: there might be duplicated name in different regions.
        var names = [];
        Object(util["each"])(selected, function (v, name) {
          selected[name] && names.push(name);
        });
        allSelected.push({
          geoIndex: geoModel.componentIndex,
          // Use singular, the same naming convention as the event `selectchanged`.
          name: names
        });
      });
      return {
        selected: selected,
        allSelected: allSelected,
        name: payload.name
      };
    });
  }
  makeAction('toggleSelected', {
    type: 'geoToggleSelect',
    event: 'geoselectchanged'
  });
  makeAction('select', {
    type: 'geoSelect',
    event: 'geoselected'
  });
  makeAction('unSelect', {
    type: 'geoUnSelect',
    event: 'geounselected'
  });
  /**
   * @payload
   * @property {string} [componentType=series]
   * @property {number} [dx]
   * @property {number} [dy]
   * @property {number} [zoom]
   * @property {number} [originX]
   * @property {number} [originY]
   */
  registers.registerAction({
    type: 'geoRoam',
    event: 'geoRoam',
    update: 'updateTransform'
  }, function (payload, ecModel, api) {
    var componentType = payload.componentType || 'series';
    ecModel.eachComponent({
      mainType: componentType,
      query: payload
    }, function (componentModel) {
      var geo = componentModel.coordinateSystem;
      if (geo.type !== 'geo') {
        return;
      }
      var res = updateCenterAndZoom(geo, payload, componentModel.get('scaleLimit'), api);
      componentModel.setCenter && componentModel.setCenter(res.center);
      componentModel.setZoom && componentModel.setZoom(res.zoom);
      // All map series with same `map` use the same geo coordinate system
      // So the center and zoom must be in sync. Include the series not selected by legend
      if (componentType === 'series') {
        Object(util["each"])(componentModel.seriesGroup, function (seriesModel) {
          seriesModel.setCenter(res.center);
          seriesModel.setZoom(res.zoom);
        });
      }
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







function map_install_install(registers) {
  use(geo_install_install);
  registers.registerChartView(map_MapView);
  registers.registerSeriesModel(map_MapSeries);
  registers.registerLayout(mapSymbolLayout);
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic);
  createLegacyDataSelectAction('map', registers.registerAction);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/layoutHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* The tree layoutHelper implementation was originally copied from
* "d3.js"(https://github.com/d3/d3-hierarchy) with
* some modifications made for this project.
* (see more details in the comment of the specific method below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the licence of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/
/**
 * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing
 *       the tree.
 */

/**
 * Initialize all computational message for following algorithm.
 */
function layoutHelper_init(inRoot) {
  var root = inRoot;
  root.hierNode = {
    defaultAncestor: null,
    ancestor: root,
    prelim: 0,
    modifier: 0,
    change: 0,
    shift: 0,
    i: 0,
    thread: null
  };
  var nodes = [root];
  var node;
  var children;
  while (node = nodes.pop()) {
    // jshint ignore:line
    children = node.children;
    if (node.isExpand && children.length) {
      var n = children.length;
      for (var i = n - 1; i >= 0; i--) {
        var child = children[i];
        child.hierNode = {
          defaultAncestor: null,
          ancestor: child,
          prelim: 0,
          modifier: 0,
          change: 0,
          shift: 0,
          i: i,
          thread: null
        };
        nodes.push(child);
      }
    }
  }
}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * Computes a preliminary x coordinate for node. Before that, this function is
 * applied recursively to the children of node, as well as the function
 * apportion(). After spacing out the children by calling executeShifts(), the
 * node is placed to the midpoint of its outermost children.
 */
function firstWalk(node, separation) {
  var children = node.isExpand ? node.children : [];
  var siblings = node.parentNode.children;
  var subtreeW = node.hierNode.i ? siblings[node.hierNode.i - 1] : null;
  if (children.length) {
    executeShifts(node);
    var midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2;
    if (subtreeW) {
      node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);
      node.hierNode.modifier = node.hierNode.prelim - midPoint;
    } else {
      node.hierNode.prelim = midPoint;
    }
  } else if (subtreeW) {
    node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);
  }
  node.parentNode.hierNode.defaultAncestor = apportion(node, subtreeW, node.parentNode.hierNode.defaultAncestor || siblings[0], separation);
}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * Computes all real x-coordinates by summing up the modifiers recursively.
 */
function secondWalk(node) {
  var nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier;
  node.setLayout({
    x: nodeX
  }, true);
  node.hierNode.modifier += node.parentNode.hierNode.modifier;
}
function layoutHelper_separation(cb) {
  return arguments.length ? cb : defaultSeparation;
}
/**
 * Transform the common coordinate to radial coordinate.
 */
function radialCoordinate(rad, r) {
  rad -= Math.PI / 2;
  return {
    x: r * Math.cos(rad),
    y: r * Math.sin(rad)
  };
}
/**
 * Get the layout position of the whole view.
 */
function layoutHelper_getViewRect(seriesModel, api) {
  return getLayoutRect(seriesModel.getBoxLayoutParams(), {
    width: api.getWidth(),
    height: api.getHeight()
  });
}
/**
 * All other shifts, applied to the smaller subtrees between w- and w+, are
 * performed by this function.
 *
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 */
function executeShifts(node) {
  var children = node.children;
  var n = children.length;
  var shift = 0;
  var change = 0;
  while (--n >= 0) {
    var child = children[n];
    child.hierNode.prelim += shift;
    child.hierNode.modifier += shift;
    change += child.hierNode.change;
    shift += child.hierNode.shift + change;
  }
}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * The core of the algorithm. Here, a new subtree is combined with the
 * previous subtrees. Threads are used to traverse the inside and outside
 * contours of the left and right subtree up to the highest common level.
 * Whenever two nodes of the inside contours conflict, we compute the left
 * one of the greatest uncommon ancestors using the function nextAncestor()
 * and call moveSubtree() to shift the subtree and prepare the shifts of
 * smaller subtrees. Finally, we add a new thread (if necessary).
 */
function apportion(subtreeV, subtreeW, ancestor, separation) {
  if (subtreeW) {
    var nodeOutRight = subtreeV;
    var nodeInRight = subtreeV;
    var nodeOutLeft = nodeInRight.parentNode.children[0];
    var nodeInLeft = subtreeW;
    var sumOutRight = nodeOutRight.hierNode.modifier;
    var sumInRight = nodeInRight.hierNode.modifier;
    var sumOutLeft = nodeOutLeft.hierNode.modifier;
    var sumInLeft = nodeInLeft.hierNode.modifier;
    while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) {
      nodeOutRight = nextRight(nodeOutRight);
      nodeOutLeft = nextLeft(nodeOutLeft);
      nodeOutRight.hierNode.ancestor = subtreeV;
      var shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim - sumInRight + separation(nodeInLeft, nodeInRight);
      if (shift > 0) {
        moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift);
        sumInRight += shift;
        sumOutRight += shift;
      }
      sumInLeft += nodeInLeft.hierNode.modifier;
      sumInRight += nodeInRight.hierNode.modifier;
      sumOutRight += nodeOutRight.hierNode.modifier;
      sumOutLeft += nodeOutLeft.hierNode.modifier;
    }
    if (nodeInLeft && !nextRight(nodeOutRight)) {
      nodeOutRight.hierNode.thread = nodeInLeft;
      nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight;
    }
    if (nodeInRight && !nextLeft(nodeOutLeft)) {
      nodeOutLeft.hierNode.thread = nodeInRight;
      nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft;
      ancestor = subtreeV;
    }
  }
  return ancestor;
}
/**
 * This function is used to traverse the right contour of a subtree.
 * It returns the rightmost child of node or the thread of node. The function
 * returns null if and only if node is on the highest depth of its subtree.
 */
function nextRight(node) {
  var children = node.children;
  return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread;
}
/**
 * This function is used to traverse the left contour of a subtree (or a subforest).
 * It returns the leftmost child of node or the thread of node. The function
 * returns null if and only if node is on the highest depth of its subtree.
 */
function nextLeft(node) {
  var children = node.children;
  return children.length && node.isExpand ? children[0] : node.hierNode.thread;
}
/**
 * If nodeInLeft’s ancestor is a sibling of node, returns nodeInLeft’s ancestor.
 * Otherwise, returns the specified ancestor.
 */
function nextAncestor(nodeInLeft, node, ancestor) {
  return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode ? nodeInLeft.hierNode.ancestor : ancestor;
}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * Shifts the current subtree rooted at wr.
 * This is done by increasing prelim(w+) and modifier(w+) by shift.
 */
function moveSubtree(wl, wr, shift) {
  var change = shift / (wr.hierNode.i - wl.hierNode.i);
  wr.hierNode.change -= change;
  wr.hierNode.shift += shift;
  wr.hierNode.modifier += shift;
  wr.hierNode.prelim += shift;
  wl.hierNode.change += change;
}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 */
function defaultSeparation(node1, node2) {
  return node1.parentNode === node2.parentNode ? 1 : 2;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/TreeView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/















var TreeEdgeShape = /** @class */function () {
  function TreeEdgeShape() {
    this.parentPoint = [];
    this.childPoints = [];
  }
  return TreeEdgeShape;
}();
var TreeView_TreePath = /** @class */function (_super) {
  __extends(TreePath, _super);
  function TreePath(opts) {
    return _super.call(this, opts) || this;
  }
  TreePath.prototype.getDefaultStyle = function () {
    return {
      stroke: '#000',
      fill: null
    };
  };
  TreePath.prototype.getDefaultShape = function () {
    return new TreeEdgeShape();
  };
  TreePath.prototype.buildPath = function (ctx, shape) {
    var childPoints = shape.childPoints;
    var childLen = childPoints.length;
    var parentPoint = shape.parentPoint;
    var firstChildPos = childPoints[0];
    var lastChildPos = childPoints[childLen - 1];
    if (childLen === 1) {
      ctx.moveTo(parentPoint[0], parentPoint[1]);
      ctx.lineTo(firstChildPos[0], firstChildPos[1]);
      return;
    }
    var orient = shape.orient;
    var forkDim = orient === 'TB' || orient === 'BT' ? 0 : 1;
    var otherDim = 1 - forkDim;
    var forkPosition = number_parsePercent(shape.forkPosition, 1);
    var tmpPoint = [];
    tmpPoint[forkDim] = parentPoint[forkDim];
    tmpPoint[otherDim] = parentPoint[otherDim] + (lastChildPos[otherDim] - parentPoint[otherDim]) * forkPosition;
    ctx.moveTo(parentPoint[0], parentPoint[1]);
    ctx.lineTo(tmpPoint[0], tmpPoint[1]);
    ctx.moveTo(firstChildPos[0], firstChildPos[1]);
    tmpPoint[forkDim] = firstChildPos[forkDim];
    ctx.lineTo(tmpPoint[0], tmpPoint[1]);
    tmpPoint[forkDim] = lastChildPos[forkDim];
    ctx.lineTo(tmpPoint[0], tmpPoint[1]);
    ctx.lineTo(lastChildPos[0], lastChildPos[1]);
    for (var i = 1; i < childLen - 1; i++) {
      var point = childPoints[i];
      ctx.moveTo(point[0], point[1]);
      tmpPoint[forkDim] = point[forkDim];
      ctx.lineTo(tmpPoint[0], tmpPoint[1]);
    }
  };
  return TreePath;
}(graphic_Path);
var TreeView_TreeView = /** @class */function (_super) {
  __extends(TreeView, _super);
  function TreeView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TreeView.type;
    _this._mainGroup = new graphic_Group();
    return _this;
  }
  TreeView.prototype.init = function (ecModel, api) {
    this._controller = new helper_RoamController(api.getZr());
    this._controllerHost = {
      target: this.group
    };
    this.group.add(this._mainGroup);
  };
  TreeView.prototype.render = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var layoutInfo = seriesModel.layoutInfo;
    var group = this._mainGroup;
    var layout = seriesModel.get('layout');
    if (layout === 'radial') {
      group.x = layoutInfo.x + layoutInfo.width / 2;
      group.y = layoutInfo.y + layoutInfo.height / 2;
    } else {
      group.x = layoutInfo.x;
      group.y = layoutInfo.y;
    }
    this._updateViewCoordSys(seriesModel, api);
    this._updateController(seriesModel, ecModel, api);
    var oldData = this._data;
    data.diff(oldData).add(function (newIdx) {
      if (TreeView_symbolNeedsDraw(data, newIdx)) {
        // Create node and edge
        updateNode(data, newIdx, null, group, seriesModel);
      }
    }).update(function (newIdx, oldIdx) {
      var symbolEl = oldData.getItemGraphicEl(oldIdx);
      if (!TreeView_symbolNeedsDraw(data, newIdx)) {
        symbolEl && TreeView_removeNode(oldData, oldIdx, symbolEl, group, seriesModel);
        return;
      }
      // Update node and edge
      updateNode(data, newIdx, symbolEl, group, seriesModel);
    }).remove(function (oldIdx) {
      var symbolEl = oldData.getItemGraphicEl(oldIdx);
      // When remove a collapsed node of subtree, since the collapsed
      // node haven't been initialized with a symbol element,
      // you can't found it's symbol element through index.
      // so if we want to remove the symbol element we should insure
      // that the symbol element is not null.
      if (symbolEl) {
        TreeView_removeNode(oldData, oldIdx, symbolEl, group, seriesModel);
      }
    }).execute();
    this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');
    this._updateNodeAndLinkScale(seriesModel);
    if (seriesModel.get('expandAndCollapse') === true) {
      data.eachItemGraphicEl(function (el, dataIndex) {
        el.off('click').on('click', function () {
          api.dispatchAction({
            type: 'treeExpandAndCollapse',
            seriesId: seriesModel.id,
            dataIndex: dataIndex
          });
        });
      });
    }
    this._data = data;
  };
  TreeView.prototype._updateViewCoordSys = function (seriesModel, api) {
    var data = seriesModel.getData();
    var points = [];
    data.each(function (idx) {
      var layout = data.getItemLayout(idx);
      if (layout && !isNaN(layout.x) && !isNaN(layout.y)) {
        points.push([+layout.x, +layout.y]);
      }
    });
    var min = [];
    var max = [];
    fromPoints(points, min, max);
    // If don't Store min max when collapse the root node after roam,
    // the root node will disappear.
    var oldMin = this._min;
    var oldMax = this._max;
    // If width or height is 0
    if (max[0] - min[0] === 0) {
      min[0] = oldMin ? oldMin[0] : min[0] - 1;
      max[0] = oldMax ? oldMax[0] : max[0] + 1;
    }
    if (max[1] - min[1] === 0) {
      min[1] = oldMin ? oldMin[1] : min[1] - 1;
      max[1] = oldMax ? oldMax[1] : max[1] + 1;
    }
    var viewCoordSys = seriesModel.coordinateSystem = new coord_View();
    viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');
    viewCoordSys.setBoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);
    viewCoordSys.setCenter(seriesModel.get('center'), api);
    viewCoordSys.setZoom(seriesModel.get('zoom'));
    // Here we use viewCoordSys just for computing the 'position' and 'scale' of the group
    this.group.attr({
      x: viewCoordSys.x,
      y: viewCoordSys.y,
      scaleX: viewCoordSys.scaleX,
      scaleY: viewCoordSys.scaleY
    });
    this._min = min;
    this._max = max;
  };
  TreeView.prototype._updateController = function (seriesModel, ecModel, api) {
    var _this = this;
    var controller = this._controller;
    var controllerHost = this._controllerHost;
    var group = this.group;
    controller.setPointerChecker(function (e, x, y) {
      var rect = group.getBoundingRect();
      rect.applyTransform(group.transform);
      return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel);
    });
    controller.enable(seriesModel.get('roam'));
    controllerHost.zoomLimit = seriesModel.get('scaleLimit');
    controllerHost.zoom = seriesModel.coordinateSystem.getZoom();
    controller.off('pan').off('zoom').on('pan', function (e) {
      updateViewOnPan(controllerHost, e.dx, e.dy);
      api.dispatchAction({
        seriesId: seriesModel.id,
        type: 'treeRoam',
        dx: e.dx,
        dy: e.dy
      });
    }).on('zoom', function (e) {
      updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);
      api.dispatchAction({
        seriesId: seriesModel.id,
        type: 'treeRoam',
        zoom: e.scale,
        originX: e.originX,
        originY: e.originY
      });
      _this._updateNodeAndLinkScale(seriesModel);
      // Only update label layout on zoom
      api.updateLabelLayout();
    });
  };
  TreeView.prototype._updateNodeAndLinkScale = function (seriesModel) {
    var data = seriesModel.getData();
    var nodeScale = this._getNodeGlobalScale(seriesModel);
    data.eachItemGraphicEl(function (el, idx) {
      el.setSymbolScale(nodeScale);
    });
  };
  TreeView.prototype._getNodeGlobalScale = function (seriesModel) {
    var coordSys = seriesModel.coordinateSystem;
    if (coordSys.type !== 'view') {
      return 1;
    }
    var nodeScaleRatio = this._nodeScaleRatio;
    var groupZoom = coordSys.scaleX || 1;
    // Scale node when zoom changes
    var roamZoom = coordSys.getZoom();
    var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;
    return nodeScale / groupZoom;
  };
  TreeView.prototype.dispose = function () {
    this._controller && this._controller.dispose();
    this._controllerHost = null;
  };
  TreeView.prototype.remove = function () {
    this._mainGroup.removeAll();
    this._data = null;
  };
  TreeView.type = 'tree';
  return TreeView;
}(Chart);
function TreeView_symbolNeedsDraw(data, dataIndex) {
  var layout = data.getItemLayout(dataIndex);
  return layout && !isNaN(layout.x) && !isNaN(layout.y);
}
function updateNode(data, dataIndex, symbolEl, group, seriesModel) {
  var isInit = !symbolEl;
  var node = data.tree.getNodeByDataIndex(dataIndex);
  var itemModel = node.getModel();
  var visualColor = node.getVisual('style').fill;
  var symbolInnerColor = node.isExpand === false && node.children.length !== 0 ? visualColor : '#fff';
  var virtualRoot = data.tree.root;
  var source = node.parentNode === virtualRoot ? node : node.parentNode || node;
  var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex);
  var sourceLayout = source.getLayout();
  var sourceOldLayout = sourceSymbolEl ? {
    x: sourceSymbolEl.__oldX,
    y: sourceSymbolEl.__oldY,
    rawX: sourceSymbolEl.__radialOldRawX,
    rawY: sourceSymbolEl.__radialOldRawY
  } : sourceLayout;
  var targetLayout = node.getLayout();
  if (isInit) {
    symbolEl = new helper_Symbol(data, dataIndex, null, {
      symbolInnerColor: symbolInnerColor,
      useNameLabel: true
    });
    symbolEl.x = sourceOldLayout.x;
    symbolEl.y = sourceOldLayout.y;
  } else {
    symbolEl.updateData(data, dataIndex, null, {
      symbolInnerColor: symbolInnerColor,
      useNameLabel: true
    });
  }
  symbolEl.__radialOldRawX = symbolEl.__radialRawX;
  symbolEl.__radialOldRawY = symbolEl.__radialRawY;
  symbolEl.__radialRawX = targetLayout.rawX;
  symbolEl.__radialRawY = targetLayout.rawY;
  group.add(symbolEl);
  data.setItemGraphicEl(dataIndex, symbolEl);
  symbolEl.__oldX = symbolEl.x;
  symbolEl.__oldY = symbolEl.y;
  updateProps(symbolEl, {
    x: targetLayout.x,
    y: targetLayout.y
  }, seriesModel);
  var symbolPath = symbolEl.getSymbolPath();
  if (seriesModel.get('layout') === 'radial') {
    var realRoot = virtualRoot.children[0];
    var rootLayout = realRoot.getLayout();
    var length_1 = realRoot.children.length;
    var rad = void 0;
    var isLeft = void 0;
    if (targetLayout.x === rootLayout.x && node.isExpand === true && realRoot.children.length) {
      var center = {
        x: (realRoot.children[0].getLayout().x + realRoot.children[length_1 - 1].getLayout().x) / 2,
        y: (realRoot.children[0].getLayout().y + realRoot.children[length_1 - 1].getLayout().y) / 2
      };
      rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x);
      if (rad < 0) {
        rad = Math.PI * 2 + rad;
      }
      isLeft = center.x < rootLayout.x;
      if (isLeft) {
        rad = rad - Math.PI;
      }
    } else {
      rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x);
      if (rad < 0) {
        rad = Math.PI * 2 + rad;
      }
      if (node.children.length === 0 || node.children.length !== 0 && node.isExpand === false) {
        isLeft = targetLayout.x < rootLayout.x;
        if (isLeft) {
          rad = rad - Math.PI;
        }
      } else {
        isLeft = targetLayout.x > rootLayout.x;
        if (!isLeft) {
          rad = rad - Math.PI;
        }
      }
    }
    var textPosition = isLeft ? 'left' : 'right';
    var normalLabelModel = itemModel.getModel('label');
    var rotate = normalLabelModel.get('rotate');
    var labelRotateRadian = rotate * (Math.PI / 180);
    var textContent = symbolPath.getTextContent();
    if (textContent) {
      symbolPath.setTextConfig({
        position: normalLabelModel.get('position') || textPosition,
        rotation: rotate == null ? -rad : labelRotateRadian,
        origin: 'center'
      });
      textContent.setStyle('verticalAlign', 'middle');
    }
  }
  // Handle status
  var focus = itemModel.get(['emphasis', 'focus']);
  var focusDataIndices = focus === 'relative' ? util["concatArray"](node.getAncestorsIndices(), node.getDescendantIndices()) : focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : null;
  if (focusDataIndices) {
    // Modify the focus to data indices.
    getECData(symbolEl).focus = focusDataIndices;
  }
  drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group);
  if (symbolEl.__edge) {
    symbolEl.onHoverStateChange = function (toState) {
      if (toState !== 'blur') {
        // NOTE: Ensure the parent elements will been blurred firstly.
        // According to the return of getAncestorsIndices and getDescendantIndices
        // TODO: A bit tricky.
        var parentEl = node.parentNode && data.getItemGraphicEl(node.parentNode.dataIndex);
        if (!(parentEl && parentEl.hoverState === HOVER_STATE_BLUR)) {
          setStatesFlag(symbolEl.__edge, toState);
        }
      }
    };
  }
}
function drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group) {
  var itemModel = node.getModel();
  var edgeShape = seriesModel.get('edgeShape');
  var layout = seriesModel.get('layout');
  var orient = seriesModel.getOrient();
  var curvature = seriesModel.get(['lineStyle', 'curveness']);
  var edgeForkPosition = seriesModel.get('edgeForkPosition');
  var lineStyle = itemModel.getModel('lineStyle').getLineStyle();
  var edge = symbolEl.__edge;
  // curve edge from node -> parent
  // polyline edge from node -> children
  if (edgeShape === 'curve') {
    if (node.parentNode && node.parentNode !== virtualRoot) {
      if (!edge) {
        edge = symbolEl.__edge = new shape_BezierCurve({
          shape: getEdgeShape(layout, orient, curvature, sourceOldLayout, sourceOldLayout)
        });
      }
      updateProps(edge, {
        shape: getEdgeShape(layout, orient, curvature, sourceLayout, targetLayout)
      }, seriesModel);
    }
  } else if (edgeShape === 'polyline') {
    if (layout === 'orthogonal') {
      if (node !== virtualRoot && node.children && node.children.length !== 0 && node.isExpand === true) {
        var children = node.children;
        var childPoints = [];
        for (var i = 0; i < children.length; i++) {
          var childLayout = children[i].getLayout();
          childPoints.push([childLayout.x, childLayout.y]);
        }
        if (!edge) {
          edge = symbolEl.__edge = new TreeView_TreePath({
            shape: {
              parentPoint: [targetLayout.x, targetLayout.y],
              childPoints: [[targetLayout.x, targetLayout.y]],
              orient: orient,
              forkPosition: edgeForkPosition
            }
          });
        }
        updateProps(edge, {
          shape: {
            parentPoint: [targetLayout.x, targetLayout.y],
            childPoints: childPoints
          }
        }, seriesModel);
      }
    } else {
      if (false) {}
    }
  }
  // show all edge when edgeShape is 'curve', filter node `isExpand` is false when edgeShape is 'polyline'
  if (edge && !(edgeShape === 'polyline' && !node.isExpand)) {
    edge.useStyle(util["defaults"]({
      strokeNoScale: true,
      fill: null
    }, lineStyle));
    setStatesStylesFromModel(edge, itemModel, 'lineStyle');
    setDefaultStateProxy(edge);
    group.add(edge);
  }
}
function removeNodeEdge(node, data, group, seriesModel, removeAnimationOpt) {
  var virtualRoot = data.tree.root;
  var _a = getSourceNode(virtualRoot, node),
    source = _a.source,
    sourceLayout = _a.sourceLayout;
  var symbolEl = data.getItemGraphicEl(node.dataIndex);
  if (!symbolEl) {
    return;
  }
  var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex);
  var sourceEdge = sourceSymbolEl.__edge;
  // 1. when expand the sub tree, delete the children node should delete the edge of
  // the source at the same time. because the polyline edge shape is only owned by the source.
  // 2.when the node is the only children of the source, delete the node should delete the edge of
  // the source at the same time. the same reason as above.
  var edge = symbolEl.__edge || (source.isExpand === false || source.children.length === 1 ? sourceEdge : undefined);
  var edgeShape = seriesModel.get('edgeShape');
  var layoutOpt = seriesModel.get('layout');
  var orient = seriesModel.get('orient');
  var curvature = seriesModel.get(['lineStyle', 'curveness']);
  if (edge) {
    if (edgeShape === 'curve') {
      removeElement(edge, {
        shape: getEdgeShape(layoutOpt, orient, curvature, sourceLayout, sourceLayout),
        style: {
          opacity: 0
        }
      }, seriesModel, {
        cb: function () {
          group.remove(edge);
        },
        removeOpt: removeAnimationOpt
      });
    } else if (edgeShape === 'polyline' && seriesModel.get('layout') === 'orthogonal') {
      removeElement(edge, {
        shape: {
          parentPoint: [sourceLayout.x, sourceLayout.y],
          childPoints: [[sourceLayout.x, sourceLayout.y]]
        },
        style: {
          opacity: 0
        }
      }, seriesModel, {
        cb: function () {
          group.remove(edge);
        },
        removeOpt: removeAnimationOpt
      });
    }
  }
}
function getSourceNode(virtualRoot, node) {
  var source = node.parentNode === virtualRoot ? node : node.parentNode || node;
  var sourceLayout;
  while (sourceLayout = source.getLayout(), sourceLayout == null) {
    source = source.parentNode === virtualRoot ? source : source.parentNode || source;
  }
  return {
    source: source,
    sourceLayout: sourceLayout
  };
}
function TreeView_removeNode(data, dataIndex, symbolEl, group, seriesModel) {
  var node = data.tree.getNodeByDataIndex(dataIndex);
  var virtualRoot = data.tree.root;
  var sourceLayout = getSourceNode(virtualRoot, node).sourceLayout;
  // Use same duration and easing with update to have more consistent animation.
  var removeAnimationOpt = {
    duration: seriesModel.get('animationDurationUpdate'),
    easing: seriesModel.get('animationEasingUpdate')
  };
  removeElement(symbolEl, {
    x: sourceLayout.x + 1,
    y: sourceLayout.y + 1
  }, seriesModel, {
    cb: function () {
      group.remove(symbolEl);
      data.setItemGraphicEl(dataIndex, null);
    },
    removeOpt: removeAnimationOpt
  });
  symbolEl.fadeOut(null, data.hostModel, {
    fadeLabel: true,
    animation: removeAnimationOpt
  });
  // remove edge as parent node
  node.children.forEach(function (childNode) {
    removeNodeEdge(childNode, data, group, seriesModel, removeAnimationOpt);
  });
  // remove edge as child node
  removeNodeEdge(node, data, group, seriesModel, removeAnimationOpt);
}
function getEdgeShape(layoutOpt, orient, curvature, sourceLayout, targetLayout) {
  var cpx1;
  var cpy1;
  var cpx2;
  var cpy2;
  var x1;
  var x2;
  var y1;
  var y2;
  if (layoutOpt === 'radial') {
    x1 = sourceLayout.rawX;
    y1 = sourceLayout.rawY;
    x2 = targetLayout.rawX;
    y2 = targetLayout.rawY;
    var radialCoor1 = radialCoordinate(x1, y1);
    var radialCoor2 = radialCoordinate(x1, y1 + (y2 - y1) * curvature);
    var radialCoor3 = radialCoordinate(x2, y2 + (y1 - y2) * curvature);
    var radialCoor4 = radialCoordinate(x2, y2);
    return {
      x1: radialCoor1.x || 0,
      y1: radialCoor1.y || 0,
      x2: radialCoor4.x || 0,
      y2: radialCoor4.y || 0,
      cpx1: radialCoor2.x || 0,
      cpy1: radialCoor2.y || 0,
      cpx2: radialCoor3.x || 0,
      cpy2: radialCoor3.y || 0
    };
  } else {
    x1 = sourceLayout.x;
    y1 = sourceLayout.y;
    x2 = targetLayout.x;
    y2 = targetLayout.y;
    if (orient === 'LR' || orient === 'RL') {
      cpx1 = x1 + (x2 - x1) * curvature;
      cpy1 = y1;
      cpx2 = x2 + (x1 - x2) * curvature;
      cpy2 = y2;
    }
    if (orient === 'TB' || orient === 'BT') {
      cpx1 = x1;
      cpy1 = y1 + (y2 - y1) * curvature;
      cpx2 = x2;
      cpy2 = y2 + (y1 - y2) * curvature;
    }
  }
  return {
    x1: x1,
    y1: y1,
    x2: x2,
    y2: y2,
    cpx1: cpx1,
    cpy1: cpy1,
    cpx2: cpx2,
    cpy2: cpy2
  };
}
/* harmony default export */ var tree_TreeView = (TreeView_TreeView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/linkSeriesData.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Link lists and struct (graph or tree)
 */


var linkSeriesData_inner = makeInner();
function linkSeriesData(opt) {
  var mainData = opt.mainData;
  var datas = opt.datas;
  if (!datas) {
    datas = {
      main: mainData
    };
    opt.datasAttr = {
      main: 'data'
    };
  }
  opt.datas = opt.mainData = null;
  linkAll(mainData, datas, opt);
  // Porxy data original methods.
  Object(util["each"])(datas, function (data) {
    Object(util["each"])(mainData.TRANSFERABLE_METHODS, function (methodName) {
      data.wrapMethod(methodName, Object(util["curry"])(transferInjection, opt));
    });
  });
  // Beyond transfer, additional features should be added to `cloneShallow`.
  mainData.wrapMethod('cloneShallow', Object(util["curry"])(cloneShallowInjection, opt));
  // Only mainData trigger change, because struct.update may trigger
  // another changable methods, which may bring about dead lock.
  Object(util["each"])(mainData.CHANGABLE_METHODS, function (methodName) {
    mainData.wrapMethod(methodName, Object(util["curry"])(changeInjection, opt));
  });
  // Make sure datas contains mainData.
  Object(util["assert"])(datas[mainData.dataType] === mainData);
}
function transferInjection(opt, res) {
  if (isMainData(this)) {
    // Transfer datas to new main data.
    var datas = Object(util["extend"])({}, linkSeriesData_inner(this).datas);
    datas[this.dataType] = res;
    linkAll(res, datas, opt);
  } else {
    // Modify the reference in main data to point newData.
    linkSingle(res, this.dataType, linkSeriesData_inner(this).mainData, opt);
  }
  return res;
}
function changeInjection(opt, res) {
  opt.struct && opt.struct.update();
  return res;
}
function cloneShallowInjection(opt, res) {
  // cloneShallow, which brings about some fragilities, may be inappropriate
  // to be exposed as an API. So for implementation simplicity we can make
  // the restriction that cloneShallow of not-mainData should not be invoked
  // outside, but only be invoked here.
  Object(util["each"])(linkSeriesData_inner(res).datas, function (data, dataType) {
    data !== res && linkSingle(data.cloneShallow(), dataType, res, opt);
  });
  return res;
}
/**
 * Supplement method to List.
 *
 * @public
 * @param [dataType] If not specified, return mainData.
 */
function getLinkedData(dataType) {
  var mainData = linkSeriesData_inner(this).mainData;
  return dataType == null || mainData == null ? mainData : linkSeriesData_inner(mainData).datas[dataType];
}
/**
 * Get list of all linked data
 */
function getLinkedDataAll() {
  var mainData = linkSeriesData_inner(this).mainData;
  return mainData == null ? [{
    data: mainData
  }] : Object(util["map"])(Object(util["keys"])(linkSeriesData_inner(mainData).datas), function (type) {
    return {
      type: type,
      data: linkSeriesData_inner(mainData).datas[type]
    };
  });
}
function isMainData(data) {
  return linkSeriesData_inner(data).mainData === data;
}
function linkAll(mainData, datas, opt) {
  linkSeriesData_inner(mainData).datas = {};
  Object(util["each"])(datas, function (data, dataType) {
    linkSingle(data, dataType, mainData, opt);
  });
}
function linkSingle(data, dataType, mainData, opt) {
  linkSeriesData_inner(mainData).datas[dataType] = data;
  linkSeriesData_inner(data).mainData = mainData;
  data.dataType = dataType;
  if (opt.struct) {
    data[opt.structAttr] = opt.struct;
    opt.struct[opt.datasAttr[dataType]] = data;
  }
  // Supplement method.
  data.getLinkedData = getLinkedData;
  data.getLinkedDataAll = getLinkedDataAll;
}
/* harmony default export */ var helper_linkSeriesData = (linkSeriesData);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/Tree.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Tree data structure
 */





var Tree_TreeNode = /** @class */function () {
  function TreeNode(name, hostTree) {
    this.depth = 0;
    this.height = 0;
    /**
     * Reference to list item.
     * Do not persistent dataIndex outside,
     * besause it may be changed by list.
     * If dataIndex -1,
     * this node is logical deleted (filtered) in list.
     */
    this.dataIndex = -1;
    this.children = [];
    this.viewChildren = [];
    this.isExpand = false;
    this.name = name || '';
    this.hostTree = hostTree;
  }
  /**
   * The node is removed.
   */
  TreeNode.prototype.isRemoved = function () {
    return this.dataIndex < 0;
  };
  TreeNode.prototype.eachNode = function (options, cb, context) {
    if (util["isFunction"](options)) {
      context = cb;
      cb = options;
      options = null;
    }
    options = options || {};
    if (util["isString"](options)) {
      options = {
        order: options
      };
    }
    var order = options.order || 'preorder';
    var children = this[options.attr || 'children'];
    var suppressVisitSub;
    order === 'preorder' && (suppressVisitSub = cb.call(context, this));
    for (var i = 0; !suppressVisitSub && i < children.length; i++) {
      children[i].eachNode(options, cb, context);
    }
    order === 'postorder' && cb.call(context, this);
  };
  /**
   * Update depth and height of this subtree.
   */
  TreeNode.prototype.updateDepthAndHeight = function (depth) {
    var height = 0;
    this.depth = depth;
    for (var i = 0; i < this.children.length; i++) {
      var child = this.children[i];
      child.updateDepthAndHeight(depth + 1);
      if (child.height > height) {
        height = child.height;
      }
    }
    this.height = height + 1;
  };
  TreeNode.prototype.getNodeById = function (id) {
    if (this.getId() === id) {
      return this;
    }
    for (var i = 0, children = this.children, len = children.length; i < len; i++) {
      var res = children[i].getNodeById(id);
      if (res) {
        return res;
      }
    }
  };
  TreeNode.prototype.contains = function (node) {
    if (node === this) {
      return true;
    }
    for (var i = 0, children = this.children, len = children.length; i < len; i++) {
      var res = children[i].contains(node);
      if (res) {
        return res;
      }
    }
  };
  /**
   * @param includeSelf Default false.
   * @return order: [root, child, grandchild, ...]
   */
  TreeNode.prototype.getAncestors = function (includeSelf) {
    var ancestors = [];
    var node = includeSelf ? this : this.parentNode;
    while (node) {
      ancestors.push(node);
      node = node.parentNode;
    }
    ancestors.reverse();
    return ancestors;
  };
  TreeNode.prototype.getAncestorsIndices = function () {
    var indices = [];
    var currNode = this;
    while (currNode) {
      indices.push(currNode.dataIndex);
      currNode = currNode.parentNode;
    }
    indices.reverse();
    return indices;
  };
  TreeNode.prototype.getDescendantIndices = function () {
    var indices = [];
    this.eachNode(function (childNode) {
      indices.push(childNode.dataIndex);
    });
    return indices;
  };
  TreeNode.prototype.getValue = function (dimension) {
    var data = this.hostTree.data;
    return data.getStore().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex);
  };
  TreeNode.prototype.setLayout = function (layout, merge) {
    this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge);
  };
  /**
   * @return {Object} layout
   */
  TreeNode.prototype.getLayout = function () {
    return this.hostTree.data.getItemLayout(this.dataIndex);
  };
  // @depcrecated
  // getModel<T = unknown, S extends keyof T = keyof T>(path: S): Model<T[S]>
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  TreeNode.prototype.getModel = function (path) {
    if (this.dataIndex < 0) {
      return;
    }
    var hostTree = this.hostTree;
    var itemModel = hostTree.data.getItemModel(this.dataIndex);
    return itemModel.getModel(path);
  };
  // TODO: TYPE More specific model
  TreeNode.prototype.getLevelModel = function () {
    return (this.hostTree.levelModels || [])[this.depth];
  };
  TreeNode.prototype.setVisual = function (key, value) {
    this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, key, value);
  };
  /**
   * Get item visual
   * FIXME: make return type better
   */
  TreeNode.prototype.getVisual = function (key) {
    return this.hostTree.data.getItemVisual(this.dataIndex, key);
  };
  TreeNode.prototype.getRawIndex = function () {
    return this.hostTree.data.getRawIndex(this.dataIndex);
  };
  TreeNode.prototype.getId = function () {
    return this.hostTree.data.getId(this.dataIndex);
  };
  /**
   * index in parent's children
   */
  TreeNode.prototype.getChildIndex = function () {
    if (this.parentNode) {
      var children = this.parentNode.children;
      for (var i = 0; i < children.length; ++i) {
        if (children[i] === this) {
          return i;
        }
      }
      return -1;
    }
    return -1;
  };
  /**
   * if this is an ancestor of another node
   *
   * @param node another node
   * @return if is ancestor
   */
  TreeNode.prototype.isAncestorOf = function (node) {
    var parent = node.parentNode;
    while (parent) {
      if (parent === this) {
        return true;
      }
      parent = parent.parentNode;
    }
    return false;
  };
  /**
   * if this is an descendant of another node
   *
   * @param node another node
   * @return if is descendant
   */
  TreeNode.prototype.isDescendantOf = function (node) {
    return node !== this && node.isAncestorOf(this);
  };
  return TreeNode;
}();

;
var Tree_Tree = /** @class */function () {
  function Tree(hostModel) {
    this.type = 'tree';
    this._nodes = [];
    this.hostModel = hostModel;
  }
  Tree.prototype.eachNode = function (options, cb, context) {
    this.root.eachNode(options, cb, context);
  };
  Tree.prototype.getNodeByDataIndex = function (dataIndex) {
    var rawIndex = this.data.getRawIndex(dataIndex);
    return this._nodes[rawIndex];
  };
  Tree.prototype.getNodeById = function (name) {
    return this.root.getNodeById(name);
  };
  /**
   * Update item available by list,
   * when list has been performed options like 'filterSelf' or 'map'.
   */
  Tree.prototype.update = function () {
    var data = this.data;
    var nodes = this._nodes;
    for (var i = 0, len = nodes.length; i < len; i++) {
      nodes[i].dataIndex = -1;
    }
    for (var i = 0, len = data.count(); i < len; i++) {
      nodes[data.getRawIndex(i)].dataIndex = i;
    }
  };
  /**
   * Clear all layouts
   */
  Tree.prototype.clearLayouts = function () {
    this.data.clearItemLayouts();
  };
  /**
   * data node format:
   * {
   *     name: ...
   *     value: ...
   *     children: [
   *         {
   *             name: ...
   *             value: ...
   *             children: ...
   *         },
   *         ...
   *     ]
   * }
   */
  Tree.createTree = function (dataRoot, hostModel, beforeLink) {
    var tree = new Tree(hostModel);
    var listData = [];
    var dimMax = 1;
    buildHierarchy(dataRoot);
    function buildHierarchy(dataNode, parentNode) {
      var value = dataNode.value;
      dimMax = Math.max(dimMax, util["isArray"](value) ? value.length : 1);
      listData.push(dataNode);
      var node = new Tree_TreeNode(convertOptionIdName(dataNode.name, ''), tree);
      parentNode ? addChild(node, parentNode) : tree.root = node;
      tree._nodes.push(node);
      var children = dataNode.children;
      if (children) {
        for (var i = 0; i < children.length; i++) {
          buildHierarchy(children[i], node);
        }
      }
    }
    tree.root.updateDepthAndHeight(0);
    var dimensions = prepareSeriesDataSchema(listData, {
      coordDimensions: ['value'],
      dimensionsCount: dimMax
    }).dimensions;
    var list = new data_SeriesData(dimensions, hostModel);
    list.initData(listData);
    beforeLink && beforeLink(list);
    helper_linkSeriesData({
      mainData: list,
      struct: tree,
      structAttr: 'tree'
    });
    tree.update();
    return tree;
  };
  return Tree;
}();
/**
 * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,
 * so this function is not ready and not necessary to be public.
 */
function addChild(child, node) {
  var children = node.children;
  if (child.parentNode === node) {
    return;
  }
  children.push(child);
  child.parentNode = node;
}
/* harmony default export */ var data_Tree = (Tree_Tree);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/treeHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function retrieveTargetInfo(payload, validPayloadTypes, seriesModel) {
  if (payload && util["indexOf"](validPayloadTypes, payload.type) >= 0) {
    var root = seriesModel.getData().tree.root;
    var targetNode = payload.targetNode;
    if (util["isString"](targetNode)) {
      targetNode = root.getNodeById(targetNode);
    }
    if (targetNode && root.contains(targetNode)) {
      return {
        node: targetNode
      };
    }
    var targetNodeId = payload.targetNodeId;
    if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) {
      return {
        node: targetNode
      };
    }
  }
}
// Not includes the given node at the last item.
function getPathToRoot(node) {
  var path = [];
  while (node) {
    node = node.parentNode;
    node && path.push(node);
  }
  return path.reverse();
}
function aboveViewRoot(viewRoot, node) {
  var viewPath = getPathToRoot(viewRoot);
  return util["indexOf"](viewPath, node) >= 0;
}
// From root to the input node (the input node will be included).
function wrapTreePathInfo(node, seriesModel) {
  var treePathInfo = [];
  while (node) {
    var nodeDataIndex = node.dataIndex;
    treePathInfo.push({
      name: node.name,
      dataIndex: nodeDataIndex,
      value: seriesModel.getRawValue(nodeDataIndex)
    });
    node = node.parentNode;
  }
  treePathInfo.reverse();
  return treePathInfo;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/TreeSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var TreeSeries_TreeSeriesModel = /** @class */function (_super) {
  __extends(TreeSeriesModel, _super);
  function TreeSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.hasSymbolVisual = true;
    // Do it self.
    _this.ignoreStyleOnData = true;
    return _this;
  }
  /**
   * Init a tree data structure from data in option series
   */
  TreeSeriesModel.prototype.getInitialData = function (option) {
    // create a virtual root
    var root = {
      name: option.name,
      children: option.data
    };
    var leaves = option.leaves || {};
    var leavesModel = new model_Model(leaves, this, this.ecModel);
    var tree = data_Tree.createTree(root, this, beforeLink);
    function beforeLink(nodeData) {
      nodeData.wrapMethod('getItemModel', function (model, idx) {
        var node = tree.getNodeByDataIndex(idx);
        if (!(node && node.children.length && node.isExpand)) {
          model.parentModel = leavesModel;
        }
        return model;
      });
    }
    var treeDepth = 0;
    tree.eachNode('preorder', function (node) {
      if (node.depth > treeDepth) {
        treeDepth = node.depth;
      }
    });
    var expandAndCollapse = option.expandAndCollapse;
    var expandTreeDepth = expandAndCollapse && option.initialTreeDepth >= 0 ? option.initialTreeDepth : treeDepth;
    tree.root.eachNode('preorder', function (node) {
      var item = node.hostTree.data.getRawDataItem(node.dataIndex);
      // Add item.collapsed != null, because users can collapse node original in the series.data.
      node.isExpand = item && item.collapsed != null ? !item.collapsed : node.depth <= expandTreeDepth;
    });
    return tree.data;
  };
  /**
   * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'.
   * @returns {string} orient
   */
  TreeSeriesModel.prototype.getOrient = function () {
    var orient = this.get('orient');
    if (orient === 'horizontal') {
      orient = 'LR';
    } else if (orient === 'vertical') {
      orient = 'TB';
    }
    return orient;
  };
  TreeSeriesModel.prototype.setZoom = function (zoom) {
    this.option.zoom = zoom;
  };
  TreeSeriesModel.prototype.setCenter = function (center) {
    this.option.center = center;
  };
  TreeSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    var tree = this.getData().tree;
    var realRoot = tree.root.children[0];
    var node = tree.getNodeByDataIndex(dataIndex);
    var value = node.getValue();
    var name = node.name;
    while (node && node !== realRoot) {
      name = node.parentNode.name + '.' + name;
      node = node.parentNode;
    }
    return createTooltipMarkup('nameValue', {
      name: name,
      value: value,
      noValue: isNaN(value) || value == null
    });
  };
  // Add tree path to tooltip param
  TreeSeriesModel.prototype.getDataParams = function (dataIndex) {
    var params = _super.prototype.getDataParams.apply(this, arguments);
    var node = this.getData().tree.getNodeByDataIndex(dataIndex);
    params.treeAncestors = wrapTreePathInfo(node, this);
    params.collapsed = !node.isExpand;
    return params;
  };
  TreeSeriesModel.type = 'series.tree';
  // can support the position parameters 'left', 'top','right','bottom', 'width',
  // 'height' in the setOption() with 'merge' mode normal.
  TreeSeriesModel.layoutMode = 'box';
  TreeSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    coordinateSystem: 'view',
    // the position of the whole view
    left: '12%',
    top: '12%',
    right: '12%',
    bottom: '12%',
    // the layout of the tree, two value can be selected, 'orthogonal' or 'radial'
    layout: 'orthogonal',
    // value can be 'polyline'
    edgeShape: 'curve',
    edgeForkPosition: '50%',
    // true | false | 'move' | 'scale', see module:component/helper/RoamController.
    roam: false,
    // Symbol size scale ratio in roam
    nodeScaleRatio: 0.4,
    // Default on center of graph
    center: null,
    zoom: 1,
    orient: 'LR',
    symbol: 'emptyCircle',
    symbolSize: 7,
    expandAndCollapse: true,
    initialTreeDepth: 2,
    lineStyle: {
      color: '#ccc',
      width: 1.5,
      curveness: 0.5
    },
    itemStyle: {
      color: 'lightsteelblue',
      // borderColor: '#c23531',
      borderWidth: 1.5
    },
    label: {
      show: true
    },
    animationEasing: 'linear',
    animationDuration: 700,
    animationDurationUpdate: 500
  };
  return TreeSeriesModel;
}(Series);
/* harmony default export */ var TreeSeries = (TreeSeries_TreeSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/traversalHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Traverse the tree from bottom to top and do something
 */
function eachAfter(root, callback, separation) {
  var nodes = [root];
  var next = [];
  var node;
  while (node = nodes.pop()) {
    // jshint ignore:line
    next.push(node);
    if (node.isExpand) {
      var children = node.children;
      if (children.length) {
        for (var i = 0; i < children.length; i++) {
          nodes.push(children[i]);
        }
      }
    }
  }
  while (node = next.pop()) {
    // jshint ignore:line
    callback(node, separation);
  }
}
/**
 * Traverse the tree from top to bottom and do something
 */
function eachBefore(root, callback) {
  var nodes = [root];
  var node;
  while (node = nodes.pop()) {
    // jshint ignore:line
    callback(node);
    if (node.isExpand) {
      var children = node.children;
      if (children.length) {
        for (var i = children.length - 1; i >= 0; i--) {
          nodes.push(children[i]);
        }
      }
    }
  }
}

// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/treeLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function treeLayout(ecModel, api) {
  ecModel.eachSeriesByType('tree', function (seriesModel) {
    commonLayout(seriesModel, api);
  });
}
function commonLayout(seriesModel, api) {
  var layoutInfo = layoutHelper_getViewRect(seriesModel, api);
  seriesModel.layoutInfo = layoutInfo;
  var layout = seriesModel.get('layout');
  var width = 0;
  var height = 0;
  var separation = null;
  if (layout === 'radial') {
    width = 2 * Math.PI;
    height = Math.min(layoutInfo.height, layoutInfo.width) / 2;
    separation = layoutHelper_separation(function (node1, node2) {
      return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth;
    });
  } else {
    width = layoutInfo.width;
    height = layoutInfo.height;
    separation = layoutHelper_separation();
  }
  var virtualRoot = seriesModel.getData().tree.root;
  var realRoot = virtualRoot.children[0];
  if (realRoot) {
    layoutHelper_init(virtualRoot);
    eachAfter(realRoot, firstWalk, separation);
    virtualRoot.hierNode.modifier = -realRoot.hierNode.prelim;
    eachBefore(realRoot, secondWalk);
    var left_1 = realRoot;
    var right_1 = realRoot;
    var bottom_1 = realRoot;
    eachBefore(realRoot, function (node) {
      var x = node.getLayout().x;
      if (x < left_1.getLayout().x) {
        left_1 = node;
      }
      if (x > right_1.getLayout().x) {
        right_1 = node;
      }
      if (node.depth > bottom_1.depth) {
        bottom_1 = node;
      }
    });
    var delta = left_1 === right_1 ? 1 : separation(left_1, right_1) / 2;
    var tx_1 = delta - left_1.getLayout().x;
    var kx_1 = 0;
    var ky_1 = 0;
    var coorX_1 = 0;
    var coorY_1 = 0;
    if (layout === 'radial') {
      kx_1 = width / (right_1.getLayout().x + delta + tx_1);
      // here we use (node.depth - 1), bucause the real root's depth is 1
      ky_1 = height / (bottom_1.depth - 1 || 1);
      eachBefore(realRoot, function (node) {
        coorX_1 = (node.getLayout().x + tx_1) * kx_1;
        coorY_1 = (node.depth - 1) * ky_1;
        var finalCoor = radialCoordinate(coorX_1, coorY_1);
        node.setLayout({
          x: finalCoor.x,
          y: finalCoor.y,
          rawX: coorX_1,
          rawY: coorY_1
        }, true);
      });
    } else {
      var orient_1 = seriesModel.getOrient();
      if (orient_1 === 'RL' || orient_1 === 'LR') {
        ky_1 = height / (right_1.getLayout().x + delta + tx_1);
        kx_1 = width / (bottom_1.depth - 1 || 1);
        eachBefore(realRoot, function (node) {
          coorY_1 = (node.getLayout().x + tx_1) * ky_1;
          coorX_1 = orient_1 === 'LR' ? (node.depth - 1) * kx_1 : width - (node.depth - 1) * kx_1;
          node.setLayout({
            x: coorX_1,
            y: coorY_1
          }, true);
        });
      } else if (orient_1 === 'TB' || orient_1 === 'BT') {
        kx_1 = width / (right_1.getLayout().x + delta + tx_1);
        ky_1 = height / (bottom_1.depth - 1 || 1);
        eachBefore(realRoot, function (node) {
          coorX_1 = (node.getLayout().x + tx_1) * kx_1;
          coorY_1 = orient_1 === 'TB' ? (node.depth - 1) * ky_1 : height - (node.depth - 1) * ky_1;
          node.setLayout({
            x: coorX_1,
            y: coorY_1
          }, true);
        });
      }
    }
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/treeVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function treeVisual(ecModel) {
  ecModel.eachSeriesByType('tree', function (seriesModel) {
    var data = seriesModel.getData();
    var tree = data.tree;
    tree.eachNode(function (node) {
      var model = node.getModel();
      // TODO Optimize
      var style = model.getModel('itemStyle').getItemStyle();
      var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');
      Object(util["extend"])(existsStyle, style);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/treeAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function installTreeAction(registers) {
  registers.registerAction({
    type: 'treeExpandAndCollapse',
    event: 'treeExpandAndCollapse',
    update: 'update'
  }, function (payload, ecModel) {
    ecModel.eachComponent({
      mainType: 'series',
      subType: 'tree',
      query: payload
    }, function (seriesModel) {
      var dataIndex = payload.dataIndex;
      var tree = seriesModel.getData().tree;
      var node = tree.getNodeByDataIndex(dataIndex);
      node.isExpand = !node.isExpand;
    });
  });
  registers.registerAction({
    type: 'treeRoam',
    event: 'treeRoam',
    // Here we set 'none' instead of 'update', because roam action
    // just need to update the transform matrix without having to recalculate
    // the layout. So don't need to go through the whole update process, such
    // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.
    update: 'none'
  }, function (payload, ecModel, api) {
    ecModel.eachComponent({
      mainType: 'series',
      subType: 'tree',
      query: payload
    }, function (seriesModel) {
      var coordSys = seriesModel.coordinateSystem;
      var res = updateCenterAndZoom(coordSys, payload, undefined, api);
      seriesModel.setCenter && seriesModel.setCenter(res.center);
      seriesModel.setZoom && seriesModel.setZoom(res.zoom);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function tree_install_install(registers) {
  registers.registerChartView(tree_TreeView);
  registers.registerSeriesModel(TreeSeries);
  registers.registerLayout(treeLayout);
  registers.registerVisual(treeVisual);
  installTreeAction(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/treemapAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var actionTypes = ['treemapZoomToNode', 'treemapRender', 'treemapMove'];
function installTreemapAction(registers) {
  for (var i = 0; i < actionTypes.length; i++) {
    registers.registerAction({
      type: actionTypes[i],
      update: 'updateView'
    }, util["noop"]);
  }
  registers.registerAction({
    type: 'treemapRootToNode',
    update: 'updateView'
  }, function (payload, ecModel) {
    ecModel.eachComponent({
      mainType: 'series',
      subType: 'treemap',
      query: payload
    }, handleRootToNode);
    function handleRootToNode(model, index) {
      var types = ['treemapZoomToNode', 'treemapRootToNode'];
      var targetInfo = retrieveTargetInfo(payload, types, model);
      if (targetInfo) {
        var originViewRoot = model.getViewRoot();
        if (originViewRoot) {
          payload.direction = aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown';
        }
        model.resetViewRoot(targetInfo.node);
      }
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function enableAriaDecalForTree(seriesModel) {
  var data = seriesModel.getData();
  var tree = data.tree;
  var decalPaletteScope = {};
  tree.eachNode(function (node) {
    // Use decal of level 1 node
    var current = node;
    while (current && current.depth > 1) {
      current = current.parentNode;
    }
    var decal = getDecalFromPalette(seriesModel.ecModel, current.name || current.dataIndex + '', decalPaletteScope);
    node.setVisual('decal', decal);
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/TreemapSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









var TreemapSeries_TreemapSeriesModel = /** @class */function (_super) {
  __extends(TreemapSeriesModel, _super);
  function TreemapSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TreemapSeriesModel.type;
    _this.preventUsingHoverLayer = true;
    return _this;
  }
  /**
   * @override
   */
  TreemapSeriesModel.prototype.getInitialData = function (option, ecModel) {
    // Create a virtual root.
    var root = {
      name: option.name,
      children: option.data
    };
    completeTreeValue(root);
    var levels = option.levels || [];
    // Used in "visual priority" in `treemapVisual.js`.
    // This way is a little tricky, must satisfy the precondition:
    //   1. There is no `treeNode.getModel('itemStyle.xxx')` used.
    //   2. The `Model.prototype.getModel()` will not use any clone-like way.
    var designatedVisualItemStyle = this.designatedVisualItemStyle = {};
    var designatedVisualModel = new model_Model({
      itemStyle: designatedVisualItemStyle
    }, this, ecModel);
    levels = option.levels = setDefault(levels, ecModel);
    var levelModels = util["map"](levels || [], function (levelDefine) {
      return new model_Model(levelDefine, designatedVisualModel, ecModel);
    }, this);
    // Make sure always a new tree is created when setOption,
    // in TreemapView, we check whether oldTree === newTree
    // to choose mappings approach among old shapes and new shapes.
    var tree = data_Tree.createTree(root, this, beforeLink);
    function beforeLink(nodeData) {
      nodeData.wrapMethod('getItemModel', function (model, idx) {
        var node = tree.getNodeByDataIndex(idx);
        var levelModel = node ? levelModels[node.depth] : null;
        // If no levelModel, we also need `designatedVisualModel`.
        model.parentModel = levelModel || designatedVisualModel;
        return model;
      });
    }
    return tree.data;
  };
  TreemapSeriesModel.prototype.optionUpdated = function () {
    this.resetViewRoot();
  };
  /**
   * @override
   * @param {number} dataIndex
   * @param {boolean} [mutipleSeries=false]
   */
  TreemapSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    var data = this.getData();
    var value = this.getRawValue(dataIndex);
    var name = data.getName(dataIndex);
    return createTooltipMarkup('nameValue', {
      name: name,
      value: value
    });
  };
  /**
   * Add tree path to tooltip param
   *
   * @override
   * @param {number} dataIndex
   * @return {Object}
   */
  TreemapSeriesModel.prototype.getDataParams = function (dataIndex) {
    var params = _super.prototype.getDataParams.apply(this, arguments);
    var node = this.getData().tree.getNodeByDataIndex(dataIndex);
    params.treeAncestors = wrapTreePathInfo(node, this);
    // compatitable the previous code.
    params.treePathInfo = params.treeAncestors;
    return params;
  };
  /**
   * @public
   * @param {Object} layoutInfo {
   *                                x: containerGroup x
   *                                y: containerGroup y
   *                                width: containerGroup width
   *                                height: containerGroup height
   *                            }
   */
  TreemapSeriesModel.prototype.setLayoutInfo = function (layoutInfo) {
    /**
     * @readOnly
     * @type {Object}
     */
    this.layoutInfo = this.layoutInfo || {};
    util["extend"](this.layoutInfo, layoutInfo);
  };
  /**
   * @param  {string} id
   * @return {number} index
   */
  TreemapSeriesModel.prototype.mapIdToIndex = function (id) {
    // A feature is implemented:
    // index is monotone increasing with the sequence of
    // input id at the first time.
    // This feature can make sure that each data item and its
    // mapped color have the same index between data list and
    // color list at the beginning, which is useful for user
    // to adjust data-color mapping.
    /**
     * @private
     * @type {Object}
     */
    var idIndexMap = this._idIndexMap;
    if (!idIndexMap) {
      idIndexMap = this._idIndexMap = util["createHashMap"]();
      /**
       * @private
       * @type {number}
       */
      this._idIndexMapCount = 0;
    }
    var index = idIndexMap.get(id);
    if (index == null) {
      idIndexMap.set(id, index = this._idIndexMapCount++);
    }
    return index;
  };
  TreemapSeriesModel.prototype.getViewRoot = function () {
    return this._viewRoot;
  };
  TreemapSeriesModel.prototype.resetViewRoot = function (viewRoot) {
    viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot;
    var root = this.getRawData().tree.root;
    if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) {
      this._viewRoot = root;
    }
  };
  TreemapSeriesModel.prototype.enableAriaDecal = function () {
    enableAriaDecalForTree(this);
  };
  TreemapSeriesModel.type = 'series.treemap';
  TreemapSeriesModel.layoutMode = 'box';
  TreemapSeriesModel.defaultOption = {
    // Disable progressive rendering
    progressive: 0,
    // size: ['80%', '80%'],            // deprecated, compatible with ec2.
    left: 'center',
    top: 'middle',
    width: '80%',
    height: '80%',
    sort: true,
    clipWindow: 'origin',
    squareRatio: 0.5 * (1 + Math.sqrt(5)),
    leafDepth: null,
    drillDownIcon: '▶',
    // to align specialized icon. ▷▶❒❐▼✚
    zoomToNodeRatio: 0.32 * 0.32,
    scaleLimit: null,
    roam: true,
    nodeClick: 'zoomToNode',
    animation: true,
    animationDurationUpdate: 900,
    animationEasing: 'quinticInOut',
    breadcrumb: {
      show: true,
      height: 22,
      left: 'center',
      top: 'bottom',
      // right
      // bottom
      emptyItemWidth: 25,
      itemStyle: {
        color: 'rgba(0,0,0,0.7)',
        textStyle: {
          color: '#fff'
        }
      },
      emphasis: {
        itemStyle: {
          color: 'rgba(0,0,0,0.9)' // '#5793f3',
        }
      }
    },
    label: {
      show: true,
      // Do not use textDistance, for ellipsis rect just the same as treemap node rect.
      distance: 0,
      padding: 5,
      position: 'inside',
      // formatter: null,
      color: '#fff',
      overflow: 'truncate'
      // align
      // verticalAlign
    },
    upperLabel: {
      show: false,
      position: [0, '50%'],
      height: 20,
      // formatter: null,
      // color: '#fff',
      overflow: 'truncate',
      // align: null,
      verticalAlign: 'middle'
    },
    itemStyle: {
      color: null,
      colorAlpha: null,
      colorSaturation: null,
      borderWidth: 0,
      gapWidth: 0,
      borderColor: '#fff',
      borderColorSaturation: null // If specified, borderColor will be ineffective, and the
      // border color is evaluated by color of current node and
      // borderColorSaturation.
    },
    emphasis: {
      upperLabel: {
        show: true,
        position: [0, '50%'],
        overflow: 'truncate',
        verticalAlign: 'middle'
      }
    },
    visualDimension: 0,
    visualMin: null,
    visualMax: null,
    color: [],
    // level[n].color (if necessary).
    // + Specify color list of each level. level[0].color would be global
    // color list if not specified. (see method `setDefault`).
    // + But set as a empty array to forbid fetch color from global palette
    // when using nodeModel.get('color'), otherwise nodes on deep level
    // will always has color palette set and are not able to inherit color
    // from parent node.
    // + TreemapSeries.color can not be set as 'none', otherwise effect
    // legend color fetching (see seriesColor.js).
    colorAlpha: null,
    colorSaturation: null,
    colorMappingBy: 'index',
    visibleMin: 10,
    // be rendered. Only works when sort is 'asc' or 'desc'.
    childrenVisibleMin: null,
    // grandchildren will not show.
    // Why grandchildren? If not grandchildren but children,
    // some siblings show children and some not,
    // the appearance may be mess and not consistent,
    levels: [] // Each item: {
    //     visibleMin, itemStyle, visualDimension, label
    // }
  };
  return TreemapSeriesModel;
}(Series);
/**
 * @param {Object} dataNode
 */
function completeTreeValue(dataNode) {
  // Postorder travel tree.
  // If value of none-leaf node is not set,
  // calculate it by suming up the value of all children.
  var sum = 0;
  util["each"](dataNode.children, function (child) {
    completeTreeValue(child);
    var childValue = child.value;
    util["isArray"](childValue) && (childValue = childValue[0]);
    sum += childValue;
  });
  var thisValue = dataNode.value;
  if (util["isArray"](thisValue)) {
    thisValue = thisValue[0];
  }
  if (thisValue == null || isNaN(thisValue)) {
    thisValue = sum;
  }
  // Value should not less than 0.
  if (thisValue < 0) {
    thisValue = 0;
  }
  util["isArray"](dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue;
}
/**
 * set default to level configuration
 */
function setDefault(levels, ecModel) {
  var globalColorList = normalizeToArray(ecModel.get('color'));
  var globalDecalList = normalizeToArray(ecModel.get(['aria', 'decal', 'decals']));
  if (!globalColorList) {
    return;
  }
  levels = levels || [];
  var hasColorDefine;
  var hasDecalDefine;
  util["each"](levels, function (levelDefine) {
    var model = new model_Model(levelDefine);
    var modelColor = model.get('color');
    var modelDecal = model.get('decal');
    if (model.get(['itemStyle', 'color']) || modelColor && modelColor !== 'none') {
      hasColorDefine = true;
    }
    if (model.get(['itemStyle', 'decal']) || modelDecal && modelDecal !== 'none') {
      hasDecalDefine = true;
    }
  });
  var level0 = levels[0] || (levels[0] = {});
  if (!hasColorDefine) {
    level0.color = globalColorList.slice();
  }
  if (!hasDecalDefine && globalDecalList) {
    level0.decal = globalDecalList.slice();
  }
  return levels;
}
/* harmony default export */ var TreemapSeries = (TreemapSeries_TreemapSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/Breadcrumb.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var TEXT_PADDING = 8;
var ITEM_GAP = 8;
var ARRAY_LENGTH = 5;
var Breadcrumb_Breadcrumb = /** @class */function () {
  function Breadcrumb(containerGroup) {
    this.group = new graphic_Group();
    containerGroup.add(this.group);
  }
  Breadcrumb.prototype.render = function (seriesModel, api, targetNode, onSelect) {
    var model = seriesModel.getModel('breadcrumb');
    var thisGroup = this.group;
    thisGroup.removeAll();
    if (!model.get('show') || !targetNode) {
      return;
    }
    var normalStyleModel = model.getModel('itemStyle');
    var emphasisModel = model.getModel('emphasis');
    var textStyleModel = normalStyleModel.getModel('textStyle');
    var emphasisTextStyleModel = emphasisModel.getModel(['itemStyle', 'textStyle']);
    var layoutParam = {
      pos: {
        left: model.get('left'),
        right: model.get('right'),
        top: model.get('top'),
        bottom: model.get('bottom')
      },
      box: {
        width: api.getWidth(),
        height: api.getHeight()
      },
      emptyItemWidth: model.get('emptyItemWidth'),
      totalWidth: 0,
      renderList: []
    };
    this._prepare(targetNode, layoutParam, textStyleModel);
    this._renderContent(seriesModel, layoutParam, normalStyleModel, emphasisModel, textStyleModel, emphasisTextStyleModel, onSelect);
    positionElement(thisGroup, layoutParam.pos, layoutParam.box);
  };
  /**
   * Prepare render list and total width
   * @private
   */
  Breadcrumb.prototype._prepare = function (targetNode, layoutParam, textStyleModel) {
    for (var node = targetNode; node; node = node.parentNode) {
      var text = convertOptionIdName(node.getModel().get('name'), '');
      var textRect = textStyleModel.getTextRect(text);
      var itemWidth = Math.max(textRect.width + TEXT_PADDING * 2, layoutParam.emptyItemWidth);
      layoutParam.totalWidth += itemWidth + ITEM_GAP;
      layoutParam.renderList.push({
        node: node,
        text: text,
        width: itemWidth
      });
    }
  };
  /**
   * @private
   */
  Breadcrumb.prototype._renderContent = function (seriesModel, layoutParam, normalStyleModel, emphasisModel, textStyleModel, emphasisTextStyleModel, onSelect) {
    // Start rendering.
    var lastX = 0;
    var emptyItemWidth = layoutParam.emptyItemWidth;
    var height = seriesModel.get(['breadcrumb', 'height']);
    var availableSize = getAvailableSize(layoutParam.pos, layoutParam.box);
    var totalWidth = layoutParam.totalWidth;
    var renderList = layoutParam.renderList;
    var emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle();
    for (var i = renderList.length - 1; i >= 0; i--) {
      var item = renderList[i];
      var itemNode = item.node;
      var itemWidth = item.width;
      var text = item.text;
      // Hdie text and shorten width if necessary.
      if (totalWidth > availableSize.width) {
        totalWidth -= itemWidth - emptyItemWidth;
        itemWidth = emptyItemWidth;
        text = null;
      }
      var el = new shape_Polygon({
        shape: {
          points: makeItemPoints(lastX, 0, itemWidth, height, i === renderList.length - 1, i === 0)
        },
        style: Object(util["defaults"])(normalStyleModel.getItemStyle(), {
          lineJoin: 'bevel'
        }),
        textContent: new Text({
          style: createTextStyle(textStyleModel, {
            text: text
          })
        }),
        textConfig: {
          position: 'inside'
        },
        z2: Z2_EMPHASIS_LIFT * 1e4,
        onclick: Object(util["curry"])(onSelect, itemNode)
      });
      el.disableLabelAnimation = true;
      el.getTextContent().ensureState('emphasis').style = createTextStyle(emphasisTextStyleModel, {
        text: text
      });
      el.ensureState('emphasis').style = emphasisItemStyle;
      toggleHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
      this.group.add(el);
      packEventData(el, seriesModel, itemNode);
      lastX += itemWidth + ITEM_GAP;
    }
  };
  Breadcrumb.prototype.remove = function () {
    this.group.removeAll();
  };
  return Breadcrumb;
}();
function makeItemPoints(x, y, itemWidth, itemHeight, head, tail) {
  var points = [[head ? x : x - ARRAY_LENGTH, y], [x + itemWidth, y], [x + itemWidth, y + itemHeight], [head ? x : x - ARRAY_LENGTH, y + itemHeight]];
  !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]);
  !head && points.push([x, y + itemHeight / 2]);
  return points;
}
// Package custom mouse event.
function packEventData(el, seriesModel, itemNode) {
  getECData(el).eventData = {
    componentType: 'series',
    componentSubType: 'treemap',
    componentIndex: seriesModel.componentIndex,
    seriesIndex: seriesModel.seriesIndex,
    seriesName: seriesModel.name,
    seriesType: 'treemap',
    selfType: 'breadcrumb',
    nodeData: {
      dataIndex: itemNode && itemNode.dataIndex,
      name: itemNode && itemNode.name
    },
    treePathInfo: itemNode && wrapTreePathInfo(itemNode, seriesModel)
  };
}
/* harmony default export */ var treemap_Breadcrumb = (Breadcrumb_Breadcrumb);
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/animation.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Animate multiple elements with a single done-callback.
 *
 * @example
 *  animation
 *      .createWrap()
 *      .add(el1, {x: 10, y: 10})
 *      .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)
 *      .done(function () { // done })
 *      .start('cubicOut');
 */
var AnimationWrap = /** @class */function () {
  function AnimationWrap() {
    this._storage = [];
    this._elExistsMap = {};
  }
  /**
   * Caution: a el can only be added once, otherwise 'done'
   * might not be called. This method checks this (by el.id),
   * suppresses adding and returns false when existing el found.
   *
   * @return Whether adding succeeded.
   */
  AnimationWrap.prototype.add = function (el, target, duration, delay, easing) {
    if (this._elExistsMap[el.id]) {
      return false;
    }
    this._elExistsMap[el.id] = true;
    this._storage.push({
      el: el,
      target: target,
      duration: duration,
      delay: delay,
      easing: easing
    });
    return true;
  };
  /**
   * Only execute when animation done/aborted.
   */
  AnimationWrap.prototype.finished = function (callback) {
    this._finishedCallback = callback;
    return this;
  };
  /**
   * Will stop exist animation firstly.
   */
  AnimationWrap.prototype.start = function () {
    var _this = this;
    var count = this._storage.length;
    var checkTerminate = function () {
      count--;
      if (count <= 0) {
        // Guard.
        _this._storage.length = 0;
        _this._elExistsMap = {};
        _this._finishedCallback && _this._finishedCallback();
      }
    };
    for (var i = 0, len = this._storage.length; i < len; i++) {
      var item = this._storage[i];
      item.el.animateTo(item.target, {
        duration: item.duration,
        delay: item.delay,
        easing: item.easing,
        setToFinal: true,
        done: checkTerminate,
        aborted: checkTerminate
      });
    }
    return this;
  };
  return AnimationWrap;
}();
function createWrap() {
  return new AnimationWrap();
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/TreemapView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


















var TreemapView_Group = graphic_Group;
var TreemapView_Rect = shape_Rect;
var DRAG_THRESHOLD = 3;
var PATH_LABEL_NOAMAL = 'label';
var PATH_UPPERLABEL_NORMAL = 'upperLabel';
// Should larger than emphasis states lift z
var Z2_BASE = Z2_EMPHASIS_LIFT * 10; // Should bigger than every z2.
var Z2_BG = Z2_EMPHASIS_LIFT * 2;
var Z2_CONTENT = Z2_EMPHASIS_LIFT * 3;
var getStateItemStyle = makeStyleMapper([['fill', 'color'],
// `borderColor` and `borderWidth` has been occupied,
// so use `stroke` to indicate the stroke of the rect.
['stroke', 'strokeColor'], ['lineWidth', 'strokeWidth'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor']
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
]);
var getItemStyleNormal = function (model) {
  // Normal style props should include emphasis style props.
  var itemStyle = getStateItemStyle(model);
  // Clear styles set by emphasis.
  itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null;
  return itemStyle;
};
var TreemapView_inner = makeInner();
var TreemapView_TreemapView = /** @class */function (_super) {
  __extends(TreemapView, _super);
  function TreemapView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TreemapView.type;
    _this._state = 'ready';
    _this._storage = createStorage();
    return _this;
  }
  /**
   * @override
   */
  TreemapView.prototype.render = function (seriesModel, ecModel, api, payload) {
    var models = ecModel.findComponents({
      mainType: 'series',
      subType: 'treemap',
      query: payload
    });
    if (Object(util["indexOf"])(models, seriesModel) < 0) {
      return;
    }
    this.seriesModel = seriesModel;
    this.api = api;
    this.ecModel = ecModel;
    var types = ['treemapZoomToNode', 'treemapRootToNode'];
    var targetInfo = retrieveTargetInfo(payload, types, seriesModel);
    var payloadType = payload && payload.type;
    var layoutInfo = seriesModel.layoutInfo;
    var isInit = !this._oldTree;
    var thisStorage = this._storage;
    // Mark new root when action is treemapRootToNode.
    var reRoot = payloadType === 'treemapRootToNode' && targetInfo && thisStorage ? {
      rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()],
      direction: payload.direction
    } : null;
    var containerGroup = this._giveContainerGroup(layoutInfo);
    var hasAnimation = seriesModel.get('animation');
    var renderResult = this._doRender(containerGroup, seriesModel, reRoot);
    hasAnimation && !isInit && (!payloadType || payloadType === 'treemapZoomToNode' || payloadType === 'treemapRootToNode') ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot) : renderResult.renderFinally();
    this._resetController(api);
    this._renderBreadcrumb(seriesModel, api, targetInfo);
  };
  TreemapView.prototype._giveContainerGroup = function (layoutInfo) {
    var containerGroup = this._containerGroup;
    if (!containerGroup) {
      // FIXME
      // 加一层containerGroup是为了clip，但是现在clip功能并没有实现。
      containerGroup = this._containerGroup = new TreemapView_Group();
      this._initEvents(containerGroup);
      this.group.add(containerGroup);
    }
    containerGroup.x = layoutInfo.x;
    containerGroup.y = layoutInfo.y;
    return containerGroup;
  };
  TreemapView.prototype._doRender = function (containerGroup, seriesModel, reRoot) {
    var thisTree = seriesModel.getData().tree;
    var oldTree = this._oldTree;
    // Clear last shape records.
    var lastsForAnimation = createStorage();
    var thisStorage = createStorage();
    var oldStorage = this._storage;
    var willInvisibleEls = [];
    function doRenderNode(thisNode, oldNode, parentGroup, depth) {
      return TreemapView_renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth);
    }
    // Notice: When thisTree and oldTree are the same tree (see list.cloneShallow),
    // the oldTree is actually losted, so we cannot find all of the old graphic
    // elements from tree. So we use this strategy: make element storage, move
    // from old storage to new storage, clear old storage.
    dualTravel(thisTree.root ? [thisTree.root] : [], oldTree && oldTree.root ? [oldTree.root] : [], containerGroup, thisTree === oldTree || !oldTree, 0);
    // Process all removing.
    var willDeleteEls = clearStorage(oldStorage);
    this._oldTree = thisTree;
    this._storage = thisStorage;
    if (this._controllerHost) {
      var _oldRootLayout = this.seriesModel.layoutInfo;
      var rootLayout = thisTree.root.getLayout();
      if (rootLayout.width === _oldRootLayout.width && rootLayout.height === _oldRootLayout.height) {
        this._controllerHost.zoom = 1;
      }
    }
    return {
      lastsForAnimation: lastsForAnimation,
      willDeleteEls: willDeleteEls,
      renderFinally: renderFinally
    };
    function dualTravel(thisViewChildren, oldViewChildren, parentGroup, sameTree, depth) {
      // When 'render' is triggered by action,
      // 'this' and 'old' may be the same tree,
      // we use rawIndex in that case.
      if (sameTree) {
        oldViewChildren = thisViewChildren;
        Object(util["each"])(thisViewChildren, function (child, index) {
          !child.isRemoved() && processNode(index, index);
        });
      }
      // Diff hierarchically (diff only in each subtree, but not whole).
      // because, consistency of view is important.
      else {
        new data_DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey).add(processNode).update(processNode).remove(Object(util["curry"])(processNode, null)).execute();
      }
      function getKey(node) {
        // Identify by name or raw index.
        return node.getId();
      }
      function processNode(newIndex, oldIndex) {
        var thisNode = newIndex != null ? thisViewChildren[newIndex] : null;
        var oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null;
        var group = doRenderNode(thisNode, oldNode, parentGroup, depth);
        group && dualTravel(thisNode && thisNode.viewChildren || [], oldNode && oldNode.viewChildren || [], group, sameTree, depth + 1);
      }
    }
    function clearStorage(storage) {
      var willDeleteEls = createStorage();
      storage && Object(util["each"])(storage, function (store, storageName) {
        var delEls = willDeleteEls[storageName];
        Object(util["each"])(store, function (el) {
          el && (delEls.push(el), TreemapView_inner(el).willDelete = true);
        });
      });
      return willDeleteEls;
    }
    function renderFinally() {
      Object(util["each"])(willDeleteEls, function (els) {
        Object(util["each"])(els, function (el) {
          el.parent && el.parent.remove(el);
        });
      });
      Object(util["each"])(willInvisibleEls, function (el) {
        el.invisible = true;
        // Setting invisible is for optimizing, so no need to set dirty,
        // just mark as invisible.
        el.dirty();
      });
    }
  };
  TreemapView.prototype._doAnimation = function (containerGroup, renderResult, seriesModel, reRoot) {
    var durationOption = seriesModel.get('animationDurationUpdate');
    var easingOption = seriesModel.get('animationEasing');
    // TODO: do not support function until necessary.
    var duration = (Object(util["isFunction"])(durationOption) ? 0 : durationOption) || 0;
    var easing = (Object(util["isFunction"])(easingOption) ? null : easingOption) || 'cubicOut';
    var animationWrap = createWrap();
    // Make delete animations.
    Object(util["each"])(renderResult.willDeleteEls, function (store, storageName) {
      Object(util["each"])(store, function (el, rawIndex) {
        if (el.invisible) {
          return;
        }
        var parent = el.parent; // Always has parent, and parent is nodeGroup.
        var target;
        var innerStore = TreemapView_inner(parent);
        if (reRoot && reRoot.direction === 'drillDown') {
          target = parent === reRoot.rootNodeGroup
          // This is the content element of view root.
          // Only `content` will enter this branch, because
          // `background` and `nodeGroup` will not be deleted.
          ? {
            shape: {
              x: 0,
              y: 0,
              width: innerStore.nodeWidth,
              height: innerStore.nodeHeight
            },
            style: {
              opacity: 0
            }
          }
          // Others.
          : {
            style: {
              opacity: 0
            }
          };
        } else {
          var targetX = 0;
          var targetY = 0;
          if (!innerStore.willDelete) {
            // Let node animate to right-bottom corner, cooperating with fadeout,
            // which is appropriate for user understanding.
            // Divided by 2 for reRoot rolling up effect.
            targetX = innerStore.nodeWidth / 2;
            targetY = innerStore.nodeHeight / 2;
          }
          target = storageName === 'nodeGroup' ? {
            x: targetX,
            y: targetY,
            style: {
              opacity: 0
            }
          } : {
            shape: {
              x: targetX,
              y: targetY,
              width: 0,
              height: 0
            },
            style: {
              opacity: 0
            }
          };
        }
        // TODO: do not support delay until necessary.
        target && animationWrap.add(el, target, duration, 0, easing);
      });
    });
    // Make other animations
    Object(util["each"])(this._storage, function (store, storageName) {
      Object(util["each"])(store, function (el, rawIndex) {
        var last = renderResult.lastsForAnimation[storageName][rawIndex];
        var target = {};
        if (!last) {
          return;
        }
        if (el instanceof graphic_Group) {
          if (last.oldX != null) {
            target.x = el.x;
            target.y = el.y;
            el.x = last.oldX;
            el.y = last.oldY;
          }
        } else {
          if (last.oldShape) {
            target.shape = Object(util["extend"])({}, el.shape);
            el.setShape(last.oldShape);
          }
          if (last.fadein) {
            el.setStyle('opacity', 0);
            target.style = {
              opacity: 1
            };
          }
          // When animation is stopped for succedent animation starting,
          // el.style.opacity might not be 1
          else if (el.style.opacity !== 1) {
            target.style = {
              opacity: 1
            };
          }
        }
        animationWrap.add(el, target, duration, 0, easing);
      });
    }, this);
    this._state = 'animating';
    animationWrap.finished(Object(util["bind"])(function () {
      this._state = 'ready';
      renderResult.renderFinally();
    }, this)).start();
  };
  TreemapView.prototype._resetController = function (api) {
    var controller = this._controller;
    var controllerHost = this._controllerHost;
    if (!controllerHost) {
      this._controllerHost = {
        target: this.group
      };
      controllerHost = this._controllerHost;
    }
    // Init controller.
    if (!controller) {
      controller = this._controller = new helper_RoamController(api.getZr());
      controller.enable(this.seriesModel.get('roam'));
      controllerHost.zoomLimit = this.seriesModel.get('scaleLimit');
      controllerHost.zoom = this.seriesModel.get('zoom');
      controller.on('pan', Object(util["bind"])(this._onPan, this));
      controller.on('zoom', Object(util["bind"])(this._onZoom, this));
    }
    var rect = new core_BoundingRect(0, 0, api.getWidth(), api.getHeight());
    controller.setPointerChecker(function (e, x, y) {
      return rect.contain(x, y);
    });
  };
  TreemapView.prototype._clearController = function () {
    var controller = this._controller;
    this._controllerHost = null;
    if (controller) {
      controller.dispose();
      controller = null;
    }
  };
  TreemapView.prototype._onPan = function (e) {
    if (this._state !== 'animating' && (Math.abs(e.dx) > DRAG_THRESHOLD || Math.abs(e.dy) > DRAG_THRESHOLD)) {
      // These param must not be cached.
      var root = this.seriesModel.getData().tree.root;
      if (!root) {
        return;
      }
      var rootLayout = root.getLayout();
      if (!rootLayout) {
        return;
      }
      this.api.dispatchAction({
        type: 'treemapMove',
        from: this.uid,
        seriesId: this.seriesModel.id,
        rootRect: {
          x: rootLayout.x + e.dx,
          y: rootLayout.y + e.dy,
          width: rootLayout.width,
          height: rootLayout.height
        }
      });
    }
  };
  TreemapView.prototype._onZoom = function (e) {
    var mouseX = e.originX;
    var mouseY = e.originY;
    var zoomDelta = e.scale;
    if (this._state !== 'animating') {
      // These param must not be cached.
      var root = this.seriesModel.getData().tree.root;
      if (!root) {
        return;
      }
      var rootLayout = root.getLayout();
      if (!rootLayout) {
        return;
      }
      var rect = new core_BoundingRect(rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height);
      // scaleLimit
      var zoomLimit = null;
      var _controllerHost = this._controllerHost;
      zoomLimit = _controllerHost.zoomLimit;
      var newZoom = _controllerHost.zoom = _controllerHost.zoom || 1;
      newZoom *= zoomDelta;
      if (zoomLimit) {
        var zoomMin = zoomLimit.min || 0;
        var zoomMax = zoomLimit.max || Infinity;
        newZoom = Math.max(Math.min(zoomMax, newZoom), zoomMin);
      }
      var zoomScale = newZoom / _controllerHost.zoom;
      _controllerHost.zoom = newZoom;
      var layoutInfo = this.seriesModel.layoutInfo;
      // Transform mouse coord from global to containerGroup.
      mouseX -= layoutInfo.x;
      mouseY -= layoutInfo.y;
      // Scale root bounding rect.
      var m = matrix_create();
      matrix_translate(m, m, [-mouseX, -mouseY]);
      matrix_scale(m, m, [zoomScale, zoomScale]);
      matrix_translate(m, m, [mouseX, mouseY]);
      rect.applyTransform(m);
      this.api.dispatchAction({
        type: 'treemapRender',
        from: this.uid,
        seriesId: this.seriesModel.id,
        rootRect: {
          x: rect.x,
          y: rect.y,
          width: rect.width,
          height: rect.height
        }
      });
    }
  };
  TreemapView.prototype._initEvents = function (containerGroup) {
    var _this = this;
    containerGroup.on('click', function (e) {
      if (_this._state !== 'ready') {
        return;
      }
      var nodeClick = _this.seriesModel.get('nodeClick', true);
      if (!nodeClick) {
        return;
      }
      var targetInfo = _this.findTarget(e.offsetX, e.offsetY);
      if (!targetInfo) {
        return;
      }
      var node = targetInfo.node;
      if (node.getLayout().isLeafRoot) {
        _this._rootToNode(targetInfo);
      } else {
        if (nodeClick === 'zoomToNode') {
          _this._zoomToNode(targetInfo);
        } else if (nodeClick === 'link') {
          var itemModel = node.hostTree.data.getItemModel(node.dataIndex);
          var link = itemModel.get('link', true);
          var linkTarget = itemModel.get('target', true) || 'blank';
          link && windowOpen(link, linkTarget);
        }
      }
    }, this);
  };
  TreemapView.prototype._renderBreadcrumb = function (seriesModel, api, targetInfo) {
    var _this = this;
    if (!targetInfo) {
      targetInfo = seriesModel.get('leafDepth', true) != null ? {
        node: seriesModel.getViewRoot()
      }
      // FIXME
      // better way?
      // Find breadcrumb tail on center of containerGroup.
      : this.findTarget(api.getWidth() / 2, api.getHeight() / 2);
      if (!targetInfo) {
        targetInfo = {
          node: seriesModel.getData().tree.root
        };
      }
    }
    (this._breadcrumb || (this._breadcrumb = new treemap_Breadcrumb(this.group))).render(seriesModel, api, targetInfo.node, function (node) {
      if (_this._state !== 'animating') {
        aboveViewRoot(seriesModel.getViewRoot(), node) ? _this._rootToNode({
          node: node
        }) : _this._zoomToNode({
          node: node
        });
      }
    });
  };
  /**
   * @override
   */
  TreemapView.prototype.remove = function () {
    this._clearController();
    this._containerGroup && this._containerGroup.removeAll();
    this._storage = createStorage();
    this._state = 'ready';
    this._breadcrumb && this._breadcrumb.remove();
  };
  TreemapView.prototype.dispose = function () {
    this._clearController();
  };
  TreemapView.prototype._zoomToNode = function (targetInfo) {
    this.api.dispatchAction({
      type: 'treemapZoomToNode',
      from: this.uid,
      seriesId: this.seriesModel.id,
      targetNode: targetInfo.node
    });
  };
  TreemapView.prototype._rootToNode = function (targetInfo) {
    this.api.dispatchAction({
      type: 'treemapRootToNode',
      from: this.uid,
      seriesId: this.seriesModel.id,
      targetNode: targetInfo.node
    });
  };
  /**
   * @public
   * @param {number} x Global coord x.
   * @param {number} y Global coord y.
   * @return {Object} info If not found, return undefined;
   * @return {number} info.node Target node.
   * @return {number} info.offsetX x refer to target node.
   * @return {number} info.offsetY y refer to target node.
   */
  TreemapView.prototype.findTarget = function (x, y) {
    var targetInfo;
    var viewRoot = this.seriesModel.getViewRoot();
    viewRoot.eachNode({
      attr: 'viewChildren',
      order: 'preorder'
    }, function (node) {
      var bgEl = this._storage.background[node.getRawIndex()];
      // If invisible, there might be no element.
      if (bgEl) {
        var point = bgEl.transformCoordToLocal(x, y);
        var shape = bgEl.shape;
        // For performance consideration, don't use 'getBoundingRect'.
        if (shape.x <= point[0] && point[0] <= shape.x + shape.width && shape.y <= point[1] && point[1] <= shape.y + shape.height) {
          targetInfo = {
            node: node,
            offsetX: point[0],
            offsetY: point[1]
          };
        } else {
          return false; // Suppress visit subtree.
        }
      }
    }, this);
    return targetInfo;
  };
  TreemapView.type = 'treemap';
  return TreemapView;
}(Chart);
/**
 * @inner
 */
function createStorage() {
  return {
    nodeGroup: [],
    background: [],
    content: []
  };
}
/**
 * @inner
 * @return Return undefined means do not travel further.
 */
function TreemapView_renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth) {
  // Whether under viewRoot.
  if (!thisNode) {
    // Deleting nodes will be performed finally. This method just find
    // element from old storage, or create new element, set them to new
    // storage, and set styles.
    return;
  }
  // -------------------------------------------------------------------
  // Start of closure variables available in "Procedures in renderNode".
  var thisLayout = thisNode.getLayout();
  var data = seriesModel.getData();
  var nodeModel = thisNode.getModel();
  // Only for enabling highlight/downplay. Clear firstly.
  // Because some node will not be rendered.
  data.setItemGraphicEl(thisNode.dataIndex, null);
  if (!thisLayout || !thisLayout.isInView) {
    return;
  }
  var thisWidth = thisLayout.width;
  var thisHeight = thisLayout.height;
  var borderWidth = thisLayout.borderWidth;
  var thisInvisible = thisLayout.invisible;
  var thisRawIndex = thisNode.getRawIndex();
  var oldRawIndex = oldNode && oldNode.getRawIndex();
  var thisViewChildren = thisNode.viewChildren;
  var upperHeight = thisLayout.upperHeight;
  var isParent = thisViewChildren && thisViewChildren.length;
  var itemStyleNormalModel = nodeModel.getModel('itemStyle');
  var itemStyleEmphasisModel = nodeModel.getModel(['emphasis', 'itemStyle']);
  var itemStyleBlurModel = nodeModel.getModel(['blur', 'itemStyle']);
  var itemStyleSelectModel = nodeModel.getModel(['select', 'itemStyle']);
  var borderRadius = itemStyleNormalModel.get('borderRadius') || 0;
  // End of closure ariables available in "Procedures in renderNode".
  // -----------------------------------------------------------------
  // Node group
  var group = giveGraphic('nodeGroup', TreemapView_Group);
  if (!group) {
    return;
  }
  parentGroup.add(group);
  // x,y are not set when el is above view root.
  group.x = thisLayout.x || 0;
  group.y = thisLayout.y || 0;
  group.markRedraw();
  TreemapView_inner(group).nodeWidth = thisWidth;
  TreemapView_inner(group).nodeHeight = thisHeight;
  if (thisLayout.isAboveViewRoot) {
    return group;
  }
  // Background
  var bg = giveGraphic('background', TreemapView_Rect, depth, Z2_BG);
  bg && renderBackground(group, bg, isParent && thisLayout.upperLabelHeight);
  var emphasisModel = nodeModel.getModel('emphasis');
  var focus = emphasisModel.get('focus');
  var blurScope = emphasisModel.get('blurScope');
  var isDisabled = emphasisModel.get('disabled');
  var focusOrIndices = focus === 'ancestor' ? thisNode.getAncestorsIndices() : focus === 'descendant' ? thisNode.getDescendantIndices() : focus;
  // No children, render content.
  if (isParent) {
    // Because of the implementation about "traverse" in graphic hover style, we
    // can not set hover listener on the "group" of non-leaf node. Otherwise the
    // hover event from the descendents will be listenered.
    if (isHighDownDispatcher(group)) {
      setAsHighDownDispatcher(group, false);
    }
    if (bg) {
      setAsHighDownDispatcher(bg, !isDisabled);
      // Only for enabling highlight/downplay.
      data.setItemGraphicEl(thisNode.dataIndex, bg);
      enableHoverFocus(bg, focusOrIndices, blurScope);
    }
  } else {
    var content = giveGraphic('content', TreemapView_Rect, depth, Z2_CONTENT);
    content && renderContent(group, content);
    bg.disableMorphing = true;
    if (bg && isHighDownDispatcher(bg)) {
      setAsHighDownDispatcher(bg, false);
    }
    setAsHighDownDispatcher(group, !isDisabled);
    // Only for enabling highlight/downplay.
    data.setItemGraphicEl(thisNode.dataIndex, group);
    var cursorStyle = nodeModel.getShallow('cursor');
    cursorStyle && content.attr('cursor', cursorStyle);
    enableHoverFocus(group, focusOrIndices, blurScope);
  }
  return group;
  // ----------------------------
  // | Procedures in renderNode |
  // ----------------------------
  function renderBackground(group, bg, useUpperLabel) {
    var ecData = getECData(bg);
    // For tooltip.
    ecData.dataIndex = thisNode.dataIndex;
    ecData.seriesIndex = seriesModel.seriesIndex;
    bg.setShape({
      x: 0,
      y: 0,
      width: thisWidth,
      height: thisHeight,
      r: borderRadius
    });
    if (thisInvisible) {
      // If invisible, do not set visual, otherwise the element will
      // change immediately before animation. We think it is OK to
      // remain its origin color when moving out of the view window.
      processInvisible(bg);
    } else {
      bg.invisible = false;
      var style = thisNode.getVisual('style');
      var visualBorderColor = style.stroke;
      var normalStyle = getItemStyleNormal(itemStyleNormalModel);
      normalStyle.fill = visualBorderColor;
      var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);
      emphasisStyle.fill = itemStyleEmphasisModel.get('borderColor');
      var blurStyle = getStateItemStyle(itemStyleBlurModel);
      blurStyle.fill = itemStyleBlurModel.get('borderColor');
      var selectStyle = getStateItemStyle(itemStyleSelectModel);
      selectStyle.fill = itemStyleSelectModel.get('borderColor');
      if (useUpperLabel) {
        var upperLabelWidth = thisWidth - 2 * borderWidth;
        prepareText(
        // PENDING: convert ZRColor to ColorString for text.
        bg, visualBorderColor, style.opacity, {
          x: borderWidth,
          y: 0,
          width: upperLabelWidth,
          height: upperHeight
        });
      }
      // For old bg.
      else {
        bg.removeTextContent();
      }
      bg.setStyle(normalStyle);
      bg.ensureState('emphasis').style = emphasisStyle;
      bg.ensureState('blur').style = blurStyle;
      bg.ensureState('select').style = selectStyle;
      setDefaultStateProxy(bg);
    }
    group.add(bg);
  }
  function renderContent(group, content) {
    var ecData = getECData(content);
    // For tooltip.
    ecData.dataIndex = thisNode.dataIndex;
    ecData.seriesIndex = seriesModel.seriesIndex;
    var contentWidth = Math.max(thisWidth - 2 * borderWidth, 0);
    var contentHeight = Math.max(thisHeight - 2 * borderWidth, 0);
    content.culling = true;
    content.setShape({
      x: borderWidth,
      y: borderWidth,
      width: contentWidth,
      height: contentHeight,
      r: borderRadius
    });
    if (thisInvisible) {
      // If invisible, do not set visual, otherwise the element will
      // change immediately before animation. We think it is OK to
      // remain its origin color when moving out of the view window.
      processInvisible(content);
    } else {
      content.invisible = false;
      var nodeStyle = thisNode.getVisual('style');
      var visualColor = nodeStyle.fill;
      var normalStyle = getItemStyleNormal(itemStyleNormalModel);
      normalStyle.fill = visualColor;
      normalStyle.decal = nodeStyle.decal;
      var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);
      var blurStyle = getStateItemStyle(itemStyleBlurModel);
      var selectStyle = getStateItemStyle(itemStyleSelectModel);
      // PENDING: convert ZRColor to ColorString for text.
      prepareText(content, visualColor, nodeStyle.opacity, null);
      content.setStyle(normalStyle);
      content.ensureState('emphasis').style = emphasisStyle;
      content.ensureState('blur').style = blurStyle;
      content.ensureState('select').style = selectStyle;
      setDefaultStateProxy(content);
    }
    group.add(content);
  }
  function processInvisible(element) {
    // Delay invisible setting utill animation finished,
    // avoid element vanish suddenly before animation.
    !element.invisible && willInvisibleEls.push(element);
  }
  function prepareText(rectEl, visualColor, visualOpacity,
  // Can be null/undefined
  upperLabelRect) {
    var normalLabelModel = nodeModel.getModel(upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL);
    var defaultText = convertOptionIdName(nodeModel.get('name'), null);
    var isShow = normalLabelModel.getShallow('show');
    setLabelStyle(rectEl, getLabelStatesModels(nodeModel, upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL), {
      defaultText: isShow ? defaultText : null,
      inheritColor: visualColor,
      defaultOpacity: visualOpacity,
      labelFetcher: seriesModel,
      labelDataIndex: thisNode.dataIndex
    });
    var textEl = rectEl.getTextContent();
    if (!textEl) {
      return;
    }
    var textStyle = textEl.style;
    var textPadding = Object(util["normalizeCssArray"])(textStyle.padding || 0);
    if (upperLabelRect) {
      rectEl.setTextConfig({
        layoutRect: upperLabelRect
      });
      textEl.disableLabelLayout = true;
    }
    textEl.beforeUpdate = function () {
      var width = Math.max((upperLabelRect ? upperLabelRect.width : rectEl.shape.width) - textPadding[1] - textPadding[3], 0);
      var height = Math.max((upperLabelRect ? upperLabelRect.height : rectEl.shape.height) - textPadding[0] - textPadding[2], 0);
      if (textStyle.width !== width || textStyle.height !== height) {
        textEl.setStyle({
          width: width,
          height: height
        });
      }
    };
    textStyle.truncateMinChar = 2;
    textStyle.lineOverflow = 'truncate';
    addDrillDownIcon(textStyle, upperLabelRect, thisLayout);
    var textEmphasisState = textEl.getState('emphasis');
    addDrillDownIcon(textEmphasisState ? textEmphasisState.style : null, upperLabelRect, thisLayout);
  }
  function addDrillDownIcon(style, upperLabelRect, thisLayout) {
    var text = style ? style.text : null;
    if (!upperLabelRect && thisLayout.isLeafRoot && text != null) {
      var iconChar = seriesModel.get('drillDownIcon', true);
      style.text = iconChar ? iconChar + ' ' + text : text;
    }
  }
  function giveGraphic(storageName, Ctor, depth, z) {
    var element = oldRawIndex != null && oldStorage[storageName][oldRawIndex];
    var lasts = lastsForAnimation[storageName];
    if (element) {
      // Remove from oldStorage
      oldStorage[storageName][oldRawIndex] = null;
      prepareAnimationWhenHasOld(lasts, element);
    }
    // If invisible and no old element, do not create new element (for optimizing).
    else if (!thisInvisible) {
      element = new Ctor();
      if (element instanceof graphic_Displayable) {
        element.z2 = calculateZ2(depth, z);
      }
      prepareAnimationWhenNoOld(lasts, element);
    }
    // Set to thisStorage
    return thisStorage[storageName][thisRawIndex] = element;
  }
  function prepareAnimationWhenHasOld(lasts, element) {
    var lastCfg = lasts[thisRawIndex] = {};
    if (element instanceof TreemapView_Group) {
      lastCfg.oldX = element.x;
      lastCfg.oldY = element.y;
    } else {
      lastCfg.oldShape = Object(util["extend"])({}, element.shape);
    }
  }
  // If a element is new, we need to find the animation start point carefully,
  // otherwise it will looks strange when 'zoomToNode'.
  function prepareAnimationWhenNoOld(lasts, element) {
    var lastCfg = lasts[thisRawIndex] = {};
    var parentNode = thisNode.parentNode;
    var isGroup = element instanceof graphic_Group;
    if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) {
      var parentOldX = 0;
      var parentOldY = 0;
      // New nodes appear from right-bottom corner in 'zoomToNode' animation.
      // For convenience, get old bounding rect from background.
      var parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()];
      if (!reRoot && parentOldBg && parentOldBg.oldShape) {
        parentOldX = parentOldBg.oldShape.width;
        parentOldY = parentOldBg.oldShape.height;
      }
      // When no parent old shape found, its parent is new too,
      // so we can just use {x:0, y:0}.
      if (isGroup) {
        lastCfg.oldX = 0;
        lastCfg.oldY = parentOldY;
      } else {
        lastCfg.oldShape = {
          x: parentOldX,
          y: parentOldY,
          width: 0,
          height: 0
        };
      }
    }
    // Fade in, user can be aware that these nodes are new.
    lastCfg.fadein = !isGroup;
  }
}
// We cannot set all background with the same z, because the behaviour of
// drill down and roll up differ background creation sequence from tree
// hierarchy sequence, which cause lower background elements to overlap
// upper ones. So we calculate z based on depth.
// Moreover, we try to shrink down z interval to [0, 1] to avoid that
// treemap with large z overlaps other components.
function calculateZ2(depth, z2InLevel) {
  return depth * Z2_BASE + z2InLevel;
}
/* harmony default export */ var treemap_TreemapView = (TreemapView_TreemapView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/VisualMapping.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var VisualMapping_each = util["each"];
var VisualMapping_isObject = util["isObject"];
var CATEGORY_DEFAULT_VISUAL_INDEX = -1;
var VisualMapping_VisualMapping = /** @class */function () {
  function VisualMapping(option) {
    var mappingMethod = option.mappingMethod;
    var visualType = option.type;
    var thisOption = this.option = util["clone"](option);
    this.type = visualType;
    this.mappingMethod = mappingMethod;
    this._normalizeData = normalizers[mappingMethod];
    var visualHandler = VisualMapping.visualHandlers[visualType];
    this.applyVisual = visualHandler.applyVisual;
    this.getColorMapper = visualHandler.getColorMapper;
    this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod];
    if (mappingMethod === 'piecewise') {
      normalizeVisualRange(thisOption);
      preprocessForPiecewise(thisOption);
    } else if (mappingMethod === 'category') {
      thisOption.categories ? preprocessForSpecifiedCategory(thisOption)
      // categories is ordinal when thisOption.categories not specified,
      // which need no more preprocess except normalize visual.
      : normalizeVisualRange(thisOption, true);
    } else {
      // mappingMethod === 'linear' or 'fixed'
      util["assert"](mappingMethod !== 'linear' || thisOption.dataExtent);
      normalizeVisualRange(thisOption);
    }
  }
  VisualMapping.prototype.mapValueToVisual = function (value) {
    var normalized = this._normalizeData(value);
    return this._normalizedToVisual(normalized, value);
  };
  VisualMapping.prototype.getNormalizer = function () {
    return util["bind"](this._normalizeData, this);
  };
  /**
   * List available visual types.
   *
   * @public
   * @return {Array.<string>}
   */
  VisualMapping.listVisualTypes = function () {
    return util["keys"](VisualMapping.visualHandlers);
  };
  // /**
  //  * @public
  //  */
  // static addVisualHandler(name, handler) {
  //     visualHandlers[name] = handler;
  // }
  /**
   * @public
   */
  VisualMapping.isValidType = function (visualType) {
    return VisualMapping.visualHandlers.hasOwnProperty(visualType);
  };
  /**
   * Convenient method.
   * Visual can be Object or Array or primary type.
   */
  VisualMapping.eachVisual = function (visual, callback, context) {
    if (util["isObject"](visual)) {
      util["each"](visual, callback, context);
    } else {
      callback.call(context, visual);
    }
  };
  VisualMapping.mapVisual = function (visual, callback, context) {
    var isPrimary;
    var newVisual = util["isArray"](visual) ? [] : util["isObject"](visual) ? {} : (isPrimary = true, null);
    VisualMapping.eachVisual(visual, function (v, key) {
      var newVal = callback.call(context, v, key);
      isPrimary ? newVisual = newVal : newVisual[key] = newVal;
    });
    return newVisual;
  };
  /**
   * Retrieve visual properties from given object.
   */
  VisualMapping.retrieveVisuals = function (obj) {
    var ret = {};
    var hasVisual;
    obj && VisualMapping_each(VisualMapping.visualHandlers, function (h, visualType) {
      if (obj.hasOwnProperty(visualType)) {
        ret[visualType] = obj[visualType];
        hasVisual = true;
      }
    });
    return hasVisual ? ret : null;
  };
  /**
   * Give order to visual types, considering colorSaturation, colorAlpha depends on color.
   *
   * @public
   * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}
   *                                     IF Array, like: ['color', 'symbol', 'colorSaturation']
   * @return {Array.<string>} Sorted visual types.
   */
  VisualMapping.prepareVisualTypes = function (visualTypes) {
    if (util["isArray"](visualTypes)) {
      visualTypes = visualTypes.slice();
    } else if (VisualMapping_isObject(visualTypes)) {
      var types_1 = [];
      VisualMapping_each(visualTypes, function (item, type) {
        types_1.push(type);
      });
      visualTypes = types_1;
    } else {
      return [];
    }
    visualTypes.sort(function (type1, type2) {
      // color should be front of colorSaturation, colorAlpha, ...
      // symbol and symbolSize do not matter.
      return type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0 ? 1 : -1;
    });
    return visualTypes;
  };
  /**
   * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'.
   * Other visuals are only depends on themself.
   */
  VisualMapping.dependsOn = function (visualType1, visualType2) {
    return visualType2 === 'color' ? !!(visualType1 && visualType1.indexOf(visualType2) === 0) : visualType1 === visualType2;
  };
  /**
   * @param value
   * @param pieceList [{value: ..., interval: [min, max]}, ...]
   *                         Always from small to big.
   * @param findClosestWhenOutside Default to be false
   * @return index
   */
  VisualMapping.findPieceIndex = function (value, pieceList, findClosestWhenOutside) {
    var possibleI;
    var abs = Infinity;
    // value has the higher priority.
    for (var i = 0, len = pieceList.length; i < len; i++) {
      var pieceValue = pieceList[i].value;
      if (pieceValue != null) {
        if (pieceValue === value
        // FIXME
        // It is supposed to compare value according to value type of dimension,
        // but currently value type can exactly be string or number.
        // Compromise for numeric-like string (like '12'), especially
        // in the case that visualMap.categories is ['22', '33'].
        || util["isString"](pieceValue) && pieceValue === value + '') {
          return i;
        }
        findClosestWhenOutside && updatePossible(pieceValue, i);
      }
    }
    for (var i = 0, len = pieceList.length; i < len; i++) {
      var piece = pieceList[i];
      var interval = piece.interval;
      var close_1 = piece.close;
      if (interval) {
        if (interval[0] === -Infinity) {
          if (VisualMapping_littleThan(close_1[1], value, interval[1])) {
            return i;
          }
        } else if (interval[1] === Infinity) {
          if (VisualMapping_littleThan(close_1[0], interval[0], value)) {
            return i;
          }
        } else if (VisualMapping_littleThan(close_1[0], interval[0], value) && VisualMapping_littleThan(close_1[1], value, interval[1])) {
          return i;
        }
        findClosestWhenOutside && updatePossible(interval[0], i);
        findClosestWhenOutside && updatePossible(interval[1], i);
      }
    }
    if (findClosestWhenOutside) {
      return value === Infinity ? pieceList.length - 1 : value === -Infinity ? 0 : possibleI;
    }
    function updatePossible(val, index) {
      var newAbs = Math.abs(val - value);
      if (newAbs < abs) {
        abs = newAbs;
        possibleI = index;
      }
    }
  };
  VisualMapping.visualHandlers = {
    color: {
      applyVisual: makeApplyVisual('color'),
      getColorMapper: function () {
        var thisOption = this.option;
        return util["bind"](thisOption.mappingMethod === 'category' ? function (value, isNormalized) {
          !isNormalized && (value = this._normalizeData(value));
          return doMapCategory.call(this, value);
        } : function (value, isNormalized, out) {
          // If output rgb array
          // which will be much faster and useful in pixel manipulation
          var returnRGBArray = !!out;
          !isNormalized && (value = this._normalizeData(value));
          out = tool_color["fastLerp"](value, thisOption.parsedVisual, out);
          return returnRGBArray ? out : tool_color["stringify"](out, 'rgba');
        }, this);
      },
      _normalizedToVisual: {
        linear: function (normalized) {
          return tool_color["stringify"](tool_color["fastLerp"](normalized, this.option.parsedVisual), 'rgba');
        },
        category: doMapCategory,
        piecewise: function (normalized, value) {
          var result = getSpecifiedVisual.call(this, value);
          if (result == null) {
            result = tool_color["stringify"](tool_color["fastLerp"](normalized, this.option.parsedVisual), 'rgba');
          }
          return result;
        },
        fixed: doMapFixed
      }
    },
    colorHue: makePartialColorVisualHandler(function (color, value) {
      return tool_color["modifyHSL"](color, value);
    }),
    colorSaturation: makePartialColorVisualHandler(function (color, value) {
      return tool_color["modifyHSL"](color, null, value);
    }),
    colorLightness: makePartialColorVisualHandler(function (color, value) {
      return tool_color["modifyHSL"](color, null, null, value);
    }),
    colorAlpha: makePartialColorVisualHandler(function (color, value) {
      return tool_color["modifyAlpha"](color, value);
    }),
    decal: {
      applyVisual: makeApplyVisual('decal'),
      _normalizedToVisual: {
        linear: null,
        category: doMapCategory,
        piecewise: null,
        fixed: null
      }
    },
    opacity: {
      applyVisual: makeApplyVisual('opacity'),
      _normalizedToVisual: createNormalizedToNumericVisual([0, 1])
    },
    liftZ: {
      applyVisual: makeApplyVisual('liftZ'),
      _normalizedToVisual: {
        linear: doMapFixed,
        category: doMapFixed,
        piecewise: doMapFixed,
        fixed: doMapFixed
      }
    },
    symbol: {
      applyVisual: function (value, getter, setter) {
        var symbolCfg = this.mapValueToVisual(value);
        setter('symbol', symbolCfg);
      },
      _normalizedToVisual: {
        linear: doMapToArray,
        category: doMapCategory,
        piecewise: function (normalized, value) {
          var result = getSpecifiedVisual.call(this, value);
          if (result == null) {
            result = doMapToArray.call(this, normalized);
          }
          return result;
        },
        fixed: doMapFixed
      }
    },
    symbolSize: {
      applyVisual: makeApplyVisual('symbolSize'),
      _normalizedToVisual: createNormalizedToNumericVisual([0, 1])
    }
  };
  return VisualMapping;
}();
function preprocessForPiecewise(thisOption) {
  var pieceList = thisOption.pieceList;
  thisOption.hasSpecialVisual = false;
  util["each"](pieceList, function (piece, index) {
    piece.originIndex = index;
    // piece.visual is "result visual value" but not
    // a visual range, so it does not need to be normalized.
    if (piece.visual != null) {
      thisOption.hasSpecialVisual = true;
    }
  });
}
function preprocessForSpecifiedCategory(thisOption) {
  // Hash categories.
  var categories = thisOption.categories;
  var categoryMap = thisOption.categoryMap = {};
  var visual = thisOption.visual;
  VisualMapping_each(categories, function (cate, index) {
    categoryMap[cate] = index;
  });
  // Process visual map input.
  if (!util["isArray"](visual)) {
    var visualArr_1 = [];
    if (util["isObject"](visual)) {
      VisualMapping_each(visual, function (v, cate) {
        var index = categoryMap[cate];
        visualArr_1[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v;
      });
    } else {
      // Is primary type, represents default visual.
      visualArr_1[CATEGORY_DEFAULT_VISUAL_INDEX] = visual;
    }
    visual = setVisualToOption(thisOption, visualArr_1);
  }
  // Remove categories that has no visual,
  // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.
  for (var i = categories.length - 1; i >= 0; i--) {
    if (visual[i] == null) {
      delete categoryMap[categories[i]];
      categories.pop();
    }
  }
}
function normalizeVisualRange(thisOption, isCategory) {
  var visual = thisOption.visual;
  var visualArr = [];
  if (util["isObject"](visual)) {
    VisualMapping_each(visual, function (v) {
      visualArr.push(v);
    });
  } else if (visual != null) {
    visualArr.push(visual);
  }
  var doNotNeedPair = {
    color: 1,
    symbol: 1
  };
  if (!isCategory && visualArr.length === 1 && !doNotNeedPair.hasOwnProperty(thisOption.type)) {
    // Do not care visualArr.length === 0, which is illegal.
    visualArr[1] = visualArr[0];
  }
  setVisualToOption(thisOption, visualArr);
}
function makePartialColorVisualHandler(applyValue) {
  return {
    applyVisual: function (value, getter, setter) {
      // Only used in HSL
      var colorChannel = this.mapValueToVisual(value);
      // Must not be array value
      setter('color', applyValue(getter('color'), colorChannel));
    },
    _normalizedToVisual: createNormalizedToNumericVisual([0, 1])
  };
}
function doMapToArray(normalized) {
  var visual = this.option.visual;
  return visual[Math.round(linearMap(normalized, [0, 1], [0, visual.length - 1], true))] || {}; // TODO {}?
}
function makeApplyVisual(visualType) {
  return function (value, getter, setter) {
    setter(visualType, this.mapValueToVisual(value));
  };
}
function doMapCategory(normalized) {
  var visual = this.option.visual;
  return visual[this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX ? normalized % visual.length : normalized];
}
function doMapFixed() {
  // visual will be convert to array.
  return this.option.visual[0];
}
/**
 * Create mapped to numeric visual
 */
function createNormalizedToNumericVisual(sourceExtent) {
  return {
    linear: function (normalized) {
      return linearMap(normalized, sourceExtent, this.option.visual, true);
    },
    category: doMapCategory,
    piecewise: function (normalized, value) {
      var result = getSpecifiedVisual.call(this, value);
      if (result == null) {
        result = linearMap(normalized, sourceExtent, this.option.visual, true);
      }
      return result;
    },
    fixed: doMapFixed
  };
}
function getSpecifiedVisual(value) {
  var thisOption = this.option;
  var pieceList = thisOption.pieceList;
  if (thisOption.hasSpecialVisual) {
    var pieceIndex = VisualMapping_VisualMapping.findPieceIndex(value, pieceList);
    var piece = pieceList[pieceIndex];
    if (piece && piece.visual) {
      return piece.visual[this.type];
    }
  }
}
function setVisualToOption(thisOption, visualArr) {
  thisOption.visual = visualArr;
  if (thisOption.type === 'color') {
    thisOption.parsedVisual = util["map"](visualArr, function (item) {
      var color = tool_color["parse"](item);
      if (!color && "production" !== 'production') {
        log_warn("'" + item + "' is an illegal color, fallback to '#000000'", true);
      }
      return color || [0, 0, 0, 1];
    });
  }
  return visualArr;
}
/**
 * Normalizers by mapping methods.
 */
var normalizers = {
  linear: function (value) {
    return linearMap(value, this.option.dataExtent, [0, 1], true);
  },
  piecewise: function (value) {
    var pieceList = this.option.pieceList;
    var pieceIndex = VisualMapping_VisualMapping.findPieceIndex(value, pieceList, true);
    if (pieceIndex != null) {
      return linearMap(pieceIndex, [0, pieceList.length - 1], [0, 1], true);
    }
  },
  category: function (value) {
    var index = this.option.categories ? this.option.categoryMap[value] : value; // ordinal value
    return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;
  },
  fixed: util["noop"]
};
function VisualMapping_littleThan(close, a, b) {
  return close ? a <= b : a < b;
}
/* harmony default export */ var visual_VisualMapping = (VisualMapping_VisualMapping);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/treemapVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var ITEM_STYLE_NORMAL = 'itemStyle';
var treemapVisual_inner = makeInner();
/* harmony default export */ var treemapVisual = ({
  seriesType: 'treemap',
  reset: function (seriesModel) {
    var tree = seriesModel.getData().tree;
    var root = tree.root;
    if (root.isRemoved()) {
      return;
    }
    travelTree(root,
    // Visual should calculate from tree root but not view root.
    {}, seriesModel.getViewRoot().getAncestors(), seriesModel);
  }
});
function travelTree(node, designatedVisual, viewRootAncestors, seriesModel) {
  var nodeModel = node.getModel();
  var nodeLayout = node.getLayout();
  var data = node.hostTree.data;
  // Optimize
  if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) {
    return;
  }
  var nodeItemStyleModel = nodeModel.getModel(ITEM_STYLE_NORMAL);
  var visuals = buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel);
  var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');
  // calculate border color
  var borderColor = nodeItemStyleModel.get('borderColor');
  var borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation');
  var thisNodeColor;
  if (borderColorSaturation != null) {
    // For performance, do not always execute 'calculateColor'.
    thisNodeColor = calculateColor(visuals);
    borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor);
  }
  existsStyle.stroke = borderColor;
  var viewChildren = node.viewChildren;
  if (!viewChildren || !viewChildren.length) {
    thisNodeColor = calculateColor(visuals);
    // Apply visual to this node.
    existsStyle.fill = thisNodeColor;
  } else {
    var mapping_1 = buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren);
    // Designate visual to children.
    Object(util["each"])(viewChildren, function (child, index) {
      // If higher than viewRoot, only ancestors of viewRoot is needed to visit.
      if (child.depth >= viewRootAncestors.length || child === viewRootAncestors[child.depth]) {
        var childVisual = mapVisual(nodeModel, visuals, child, index, mapping_1, seriesModel);
        travelTree(child, childVisual, viewRootAncestors, seriesModel);
      }
    });
  }
}
function buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel) {
  var visuals = Object(util["extend"])({}, designatedVisual);
  var designatedVisualItemStyle = seriesModel.designatedVisualItemStyle;
  Object(util["each"])(['color', 'colorAlpha', 'colorSaturation'], function (visualName) {
    // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel
    designatedVisualItemStyle[visualName] = designatedVisual[visualName];
    var val = nodeItemStyleModel.get(visualName);
    designatedVisualItemStyle[visualName] = null;
    val != null && (visuals[visualName] = val);
  });
  return visuals;
}
function calculateColor(visuals) {
  var color = getValueVisualDefine(visuals, 'color');
  if (color) {
    var colorAlpha = getValueVisualDefine(visuals, 'colorAlpha');
    var colorSaturation = getValueVisualDefine(visuals, 'colorSaturation');
    if (colorSaturation) {
      color = Object(tool_color["modifyHSL"])(color, null, null, colorSaturation);
    }
    if (colorAlpha) {
      color = Object(tool_color["modifyAlpha"])(color, colorAlpha);
    }
    return color;
  }
}
function calculateBorderColor(borderColorSaturation, thisNodeColor) {
  return thisNodeColor != null
  // Can only be string
  ? Object(tool_color["modifyHSL"])(thisNodeColor, null, null, borderColorSaturation) : null;
}
function getValueVisualDefine(visuals, name) {
  var value = visuals[name];
  if (value != null && value !== 'none') {
    return value;
  }
}
function buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren) {
  if (!viewChildren || !viewChildren.length) {
    return;
  }
  var rangeVisual = getRangeVisual(nodeModel, 'color') || visuals.color != null && visuals.color !== 'none' && (getRangeVisual(nodeModel, 'colorAlpha') || getRangeVisual(nodeModel, 'colorSaturation'));
  if (!rangeVisual) {
    return;
  }
  var visualMin = nodeModel.get('visualMin');
  var visualMax = nodeModel.get('visualMax');
  var dataExtent = nodeLayout.dataExtent.slice();
  visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin);
  visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax);
  var colorMappingBy = nodeModel.get('colorMappingBy');
  var opt = {
    type: rangeVisual.name,
    dataExtent: dataExtent,
    visual: rangeVisual.range
  };
  if (opt.type === 'color' && (colorMappingBy === 'index' || colorMappingBy === 'id')) {
    opt.mappingMethod = 'category';
    opt.loop = true;
    // categories is ordinal, so do not set opt.categories.
  } else {
    opt.mappingMethod = 'linear';
  }
  var mapping = new visual_VisualMapping(opt);
  treemapVisual_inner(mapping).drColorMappingBy = colorMappingBy;
  return mapping;
}
// Notice: If we don't have the attribute 'colorRange', but only use
// attribute 'color' to represent both concepts of 'colorRange' and 'color',
// (It means 'colorRange' when 'color' is Array, means 'color' when not array),
// this problem will be encountered:
// If a level-1 node doesn't have children, and its siblings have children,
// and colorRange is set on level-1, then the node cannot be colored.
// So we separate 'colorRange' and 'color' to different attributes.
function getRangeVisual(nodeModel, name) {
  // 'colorRange', 'colorARange', 'colorSRange'.
  // If not exists on this node, fetch from levels and series.
  var range = nodeModel.get(name);
  return Object(util["isArray"])(range) && range.length ? {
    name: name,
    range: range
  } : null;
}
function mapVisual(nodeModel, visuals, child, index, mapping, seriesModel) {
  var childVisuals = Object(util["extend"])({}, visuals);
  if (mapping) {
    // Only support color, colorAlpha, colorSaturation.
    var mappingType = mapping.type;
    var colorMappingBy = mappingType === 'color' && treemapVisual_inner(mapping).drColorMappingBy;
    var value = colorMappingBy === 'index' ? index : colorMappingBy === 'id' ? seriesModel.mapIdToIndex(child.getId()) : child.getValue(nodeModel.get('visualDimension'));
    childVisuals[mappingType] = mapping.mapValueToVisual(value);
  }
  return childVisuals;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/treemapLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* The treemap layout implementation was originally copied from
* "d3.js" with some modifications made for this project.
* (See more details in the comment of the method "squarify" below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the license of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/





var treemapLayout_mathMax = Math.max;
var treemapLayout_mathMin = Math.min;
var retrieveValue = util["retrieve"];
var treemapLayout_each = util["each"];
var PATH_BORDER_WIDTH = ['itemStyle', 'borderWidth'];
var PATH_GAP_WIDTH = ['itemStyle', 'gapWidth'];
var PATH_UPPER_LABEL_SHOW = ['upperLabel', 'show'];
var PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'height'];
;
/**
 * @public
 */
/* harmony default export */ var treemapLayout = ({
  seriesType: 'treemap',
  reset: function (seriesModel, ecModel, api, payload) {
    // Layout result in each node:
    // {x, y, width, height, area, borderWidth}
    var ecWidth = api.getWidth();
    var ecHeight = api.getHeight();
    var seriesOption = seriesModel.option;
    var layoutInfo = getLayoutRect(seriesModel.getBoxLayoutParams(), {
      width: api.getWidth(),
      height: api.getHeight()
    });
    var size = seriesOption.size || []; // Compatible with ec2.
    var containerWidth = number_parsePercent(retrieveValue(layoutInfo.width, size[0]), ecWidth);
    var containerHeight = number_parsePercent(retrieveValue(layoutInfo.height, size[1]), ecHeight);
    // Fetch payload info.
    var payloadType = payload && payload.type;
    var types = ['treemapZoomToNode', 'treemapRootToNode'];
    var targetInfo = retrieveTargetInfo(payload, types, seriesModel);
    var rootRect = payloadType === 'treemapRender' || payloadType === 'treemapMove' ? payload.rootRect : null;
    var viewRoot = seriesModel.getViewRoot();
    var viewAbovePath = getPathToRoot(viewRoot);
    if (payloadType !== 'treemapMove') {
      var rootSize = payloadType === 'treemapZoomToNode' ? estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) : rootRect ? [rootRect.width, rootRect.height] : [containerWidth, containerHeight];
      var sort_1 = seriesOption.sort;
      if (sort_1 && sort_1 !== 'asc' && sort_1 !== 'desc') {
        // Default to be desc order.
        sort_1 = 'desc';
      }
      var options = {
        squareRatio: seriesOption.squareRatio,
        sort: sort_1,
        leafDepth: seriesOption.leafDepth
      };
      // layout should be cleared because using updateView but not update.
      viewRoot.hostTree.clearLayouts();
      // TODO
      // optimize: if out of view clip, do not layout.
      // But take care that if do not render node out of view clip,
      // how to calculate start po
      var viewRootLayout_1 = {
        x: 0,
        y: 0,
        width: rootSize[0],
        height: rootSize[1],
        area: rootSize[0] * rootSize[1]
      };
      viewRoot.setLayout(viewRootLayout_1);
      squarify(viewRoot, options, false, 0);
      // Supplement layout.
      viewRootLayout_1 = viewRoot.getLayout();
      treemapLayout_each(viewAbovePath, function (node, index) {
        var childValue = (viewAbovePath[index + 1] || viewRoot).getValue();
        node.setLayout(util["extend"]({
          dataExtent: [childValue, childValue],
          borderWidth: 0,
          upperHeight: 0
        }, viewRootLayout_1));
      });
    }
    var treeRoot = seriesModel.getData().tree.root;
    treeRoot.setLayout(calculateRootPosition(layoutInfo, rootRect, targetInfo), true);
    seriesModel.setLayoutInfo(layoutInfo);
    // FIXME
    // 现在没有clip功能，暂时取ec高宽。
    prunning(treeRoot,
    // Transform to base element coordinate system.
    new core_BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight), viewAbovePath, viewRoot, 0);
  }
});
/**
 * Layout treemap with squarify algorithm.
 * The original presentation of this algorithm
 * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk
 * <https://graphics.ethz.ch/teaching/scivis_common/Literature/squarifiedTreeMaps.pdf>.
 * The implementation of this algorithm was originally copied from "d3.js"
 * <https://github.com/d3/d3/blob/9cc9a875e636a1dcf36cc1e07bdf77e1ad6e2c74/src/layout/treemap.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * @protected
 * @param {module:echarts/data/Tree~TreeNode} node
 * @param {Object} options
 * @param {string} options.sort 'asc' or 'desc'
 * @param {number} options.squareRatio
 * @param {boolean} hideChildren
 * @param {number} depth
 */
function squarify(node, options, hideChildren, depth) {
  var width;
  var height;
  if (node.isRemoved()) {
    return;
  }
  var thisLayout = node.getLayout();
  width = thisLayout.width;
  height = thisLayout.height;
  // Considering border and gap
  var nodeModel = node.getModel();
  var borderWidth = nodeModel.get(PATH_BORDER_WIDTH);
  var halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2;
  var upperLabelHeight = getUpperLabelHeight(nodeModel);
  var upperHeight = Math.max(borderWidth, upperLabelHeight);
  var layoutOffset = borderWidth - halfGapWidth;
  var layoutOffsetUpper = upperHeight - halfGapWidth;
  node.setLayout({
    borderWidth: borderWidth,
    upperHeight: upperHeight,
    upperLabelHeight: upperLabelHeight
  }, true);
  width = treemapLayout_mathMax(width - 2 * layoutOffset, 0);
  height = treemapLayout_mathMax(height - layoutOffset - layoutOffsetUpper, 0);
  var totalArea = width * height;
  var viewChildren = initChildren(node, nodeModel, totalArea, options, hideChildren, depth);
  if (!viewChildren.length) {
    return;
  }
  var rect = {
    x: layoutOffset,
    y: layoutOffsetUpper,
    width: width,
    height: height
  };
  var rowFixedLength = treemapLayout_mathMin(width, height);
  var best = Infinity; // the best row score so far
  var row = [];
  row.area = 0;
  for (var i = 0, len = viewChildren.length; i < len;) {
    var child = viewChildren[i];
    row.push(child);
    row.area += child.getLayout().area;
    var score = worst(row, rowFixedLength, options.squareRatio);
    // continue with this orientation
    if (score <= best) {
      i++;
      best = score;
    }
    // abort, and try a different orientation
    else {
      row.area -= row.pop().getLayout().area;
      treemapLayout_position(row, rowFixedLength, rect, halfGapWidth, false);
      rowFixedLength = treemapLayout_mathMin(rect.width, rect.height);
      row.length = row.area = 0;
      best = Infinity;
    }
  }
  if (row.length) {
    treemapLayout_position(row, rowFixedLength, rect, halfGapWidth, true);
  }
  if (!hideChildren) {
    var childrenVisibleMin = nodeModel.get('childrenVisibleMin');
    if (childrenVisibleMin != null && totalArea < childrenVisibleMin) {
      hideChildren = true;
    }
  }
  for (var i = 0, len = viewChildren.length; i < len; i++) {
    squarify(viewChildren[i], options, hideChildren, depth + 1);
  }
}
/**
 * Set area to each child, and calculate data extent for visual coding.
 */
function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {
  var viewChildren = node.children || [];
  var orderBy = options.sort;
  orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);
  var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;
  // leafDepth has higher priority.
  if (hideChildren && !overLeafDepth) {
    return node.viewChildren = [];
  }
  // Sort children, order by desc.
  viewChildren = util["filter"](viewChildren, function (child) {
    return !child.isRemoved();
  });
  treemapLayout_sort(viewChildren, orderBy);
  var info = statistic(nodeModel, viewChildren, orderBy);
  if (info.sum === 0) {
    return node.viewChildren = [];
  }
  info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);
  if (info.sum === 0) {
    return node.viewChildren = [];
  }
  // Set area to each child.
  for (var i = 0, len = viewChildren.length; i < len; i++) {
    var area = viewChildren[i].getValue() / info.sum * totalArea;
    // Do not use setLayout({...}, true), because it is needed to clear last layout.
    viewChildren[i].setLayout({
      area: area
    });
  }
  if (overLeafDepth) {
    viewChildren.length && node.setLayout({
      isLeafRoot: true
    }, true);
    viewChildren.length = 0;
  }
  node.viewChildren = viewChildren;
  node.setLayout({
    dataExtent: info.dataExtent
  }, true);
  return viewChildren;
}
/**
 * Consider 'visibleMin'. Modify viewChildren and get new sum.
 */
function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {
  // visibleMin is not supported yet when no option.sort.
  if (!orderBy) {
    return sum;
  }
  var visibleMin = nodeModel.get('visibleMin');
  var len = orderedChildren.length;
  var deletePoint = len;
  // Always travel from little value to big value.
  for (var i = len - 1; i >= 0; i--) {
    var value = orderedChildren[orderBy === 'asc' ? len - i - 1 : i].getValue();
    if (value / sum * totalArea < visibleMin) {
      deletePoint = i;
      sum -= value;
    }
  }
  orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint);
  return sum;
}
/**
 * Sort
 */
function treemapLayout_sort(viewChildren, orderBy) {
  if (orderBy) {
    viewChildren.sort(function (a, b) {
      var diff = orderBy === 'asc' ? a.getValue() - b.getValue() : b.getValue() - a.getValue();
      return diff === 0 ? orderBy === 'asc' ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex : diff;
    });
  }
  return viewChildren;
}
/**
 * Statistic
 */
function statistic(nodeModel, children, orderBy) {
  // Calculate sum.
  var sum = 0;
  for (var i = 0, len = children.length; i < len; i++) {
    sum += children[i].getValue();
  }
  // Statistic data extent for latter visual coding.
  // Notice: data extent should be calculate based on raw children
  // but not filtered view children, otherwise visual mapping will not
  // be stable when zoom (where children is filtered by visibleMin).
  var dimension = nodeModel.get('visualDimension');
  var dataExtent;
  // The same as area dimension.
  if (!children || !children.length) {
    dataExtent = [NaN, NaN];
  } else if (dimension === 'value' && orderBy) {
    dataExtent = [children[children.length - 1].getValue(), children[0].getValue()];
    orderBy === 'asc' && dataExtent.reverse();
  }
  // Other dimension.
  else {
    dataExtent = [Infinity, -Infinity];
    treemapLayout_each(children, function (child) {
      var value = child.getValue(dimension);
      value < dataExtent[0] && (dataExtent[0] = value);
      value > dataExtent[1] && (dataExtent[1] = value);
    });
  }
  return {
    sum: sum,
    dataExtent: dataExtent
  };
}
/**
 * Computes the score for the specified row,
 * as the worst aspect ratio.
 */
function worst(row, rowFixedLength, ratio) {
  var areaMax = 0;
  var areaMin = Infinity;
  for (var i = 0, area = void 0, len = row.length; i < len; i++) {
    area = row[i].getLayout().area;
    if (area) {
      area < areaMin && (areaMin = area);
      area > areaMax && (areaMax = area);
    }
  }
  var squareArea = row.area * row.area;
  var f = rowFixedLength * rowFixedLength * ratio;
  return squareArea ? treemapLayout_mathMax(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity;
}
/**
 * Positions the specified row of nodes. Modifies `rect`.
 */
function treemapLayout_position(row, rowFixedLength, rect, halfGapWidth, flush) {
  // When rowFixedLength === rect.width,
  // it is horizontal subdivision,
  // rowFixedLength is the width of the subdivision,
  // rowOtherLength is the height of the subdivision,
  // and nodes will be positioned from left to right.
  // wh[idx0WhenH] means: when horizontal,
  //      wh[idx0WhenH] => wh[0] => 'width'.
  //      xy[idx1WhenH] => xy[1] => 'y'.
  var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;
  var idx1WhenH = 1 - idx0WhenH;
  var xy = ['x', 'y'];
  var wh = ['width', 'height'];
  var last = rect[xy[idx0WhenH]];
  var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;
  if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {
    rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow
  }
  for (var i = 0, rowLen = row.length; i < rowLen; i++) {
    var node = row[i];
    var nodeLayout = {};
    var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;
    var wh1 = nodeLayout[wh[idx1WhenH]] = treemapLayout_mathMax(rowOtherLength - 2 * halfGapWidth, 0);
    // We use Math.max/min to avoid negative width/height when considering gap width.
    var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;
    var modWH = i === rowLen - 1 || remain < step ? remain : step;
    var wh0 = nodeLayout[wh[idx0WhenH]] = treemapLayout_mathMax(modWH - 2 * halfGapWidth, 0);
    nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + treemapLayout_mathMin(halfGapWidth, wh1 / 2);
    nodeLayout[xy[idx0WhenH]] = last + treemapLayout_mathMin(halfGapWidth, wh0 / 2);
    last += modWH;
    node.setLayout(nodeLayout, true);
  }
  rect[xy[idx1WhenH]] += rowOtherLength;
  rect[wh[idx1WhenH]] -= rowOtherLength;
}
// Return [containerWidth, containerHeight] as default.
function estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) {
  // If targetInfo.node exists, we zoom to the node,
  // so estimate whole width and height by target node.
  var currNode = (targetInfo || {}).node;
  var defaultSize = [containerWidth, containerHeight];
  if (!currNode || currNode === viewRoot) {
    return defaultSize;
  }
  var parent;
  var viewArea = containerWidth * containerHeight;
  var area = viewArea * seriesModel.option.zoomToNodeRatio;
  while (parent = currNode.parentNode) {
    // jshint ignore:line
    var sum = 0;
    var siblings = parent.children;
    for (var i = 0, len = siblings.length; i < len; i++) {
      sum += siblings[i].getValue();
    }
    var currNodeValue = currNode.getValue();
    if (currNodeValue === 0) {
      return defaultSize;
    }
    area *= sum / currNodeValue;
    // Considering border, suppose aspect ratio is 1.
    var parentModel = parent.getModel();
    var borderWidth = parentModel.get(PATH_BORDER_WIDTH);
    var upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel));
    area += 4 * borderWidth * borderWidth + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5);
    area > MAX_SAFE_INTEGER && (area = MAX_SAFE_INTEGER);
    currNode = parent;
  }
  area < viewArea && (area = viewArea);
  var scale = Math.pow(area / viewArea, 0.5);
  return [containerWidth * scale, containerHeight * scale];
}
// Root position based on coord of containerGroup
function calculateRootPosition(layoutInfo, rootRect, targetInfo) {
  if (rootRect) {
    return {
      x: rootRect.x,
      y: rootRect.y
    };
  }
  var defaultPosition = {
    x: 0,
    y: 0
  };
  if (!targetInfo) {
    return defaultPosition;
  }
  // If targetInfo is fetched by 'retrieveTargetInfo',
  // old tree and new tree are the same tree,
  // so the node still exists and we can visit it.
  var targetNode = targetInfo.node;
  var layout = targetNode.getLayout();
  if (!layout) {
    return defaultPosition;
  }
  // Transform coord from local to container.
  var targetCenter = [layout.width / 2, layout.height / 2];
  var node = targetNode;
  while (node) {
    var nodeLayout = node.getLayout();
    targetCenter[0] += nodeLayout.x;
    targetCenter[1] += nodeLayout.y;
    node = node.parentNode;
  }
  return {
    x: layoutInfo.width / 2 - targetCenter[0],
    y: layoutInfo.height / 2 - targetCenter[1]
  };
}
// Mark nodes visible for prunning when visual coding and rendering.
// Prunning depends on layout and root position, so we have to do it after layout.
function prunning(node, clipRect, viewAbovePath, viewRoot, depth) {
  var nodeLayout = node.getLayout();
  var nodeInViewAbovePath = viewAbovePath[depth];
  var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node;
  if (nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node !== viewRoot) {
    return;
  }
  node.setLayout({
    // isInView means: viewRoot sub tree + viewAbovePath
    isInView: true,
    // invisible only means: outside view clip so that the node can not
    // see but still layout for animation preparation but not render.
    invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout),
    isAboveViewRoot: isAboveViewRoot
  }, true);
  // Transform to child coordinate.
  var childClipRect = new core_BoundingRect(clipRect.x - nodeLayout.x, clipRect.y - nodeLayout.y, clipRect.width, clipRect.height);
  treemapLayout_each(node.viewChildren || [], function (child) {
    prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1);
  });
}
function getUpperLabelHeight(model) {
  return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function treemap_install_install(registers) {
  registers.registerSeriesModel(TreemapSeries);
  registers.registerChartView(treemap_TreemapView);
  registers.registerVisual(treemapVisual);
  registers.registerLayout(treemapLayout);
  installTreemapAction(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/categoryFilter.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function categoryFilter(ecModel) {
  var legendModels = ecModel.findComponents({
    mainType: 'legend'
  });
  if (!legendModels || !legendModels.length) {
    return;
  }
  ecModel.eachSeriesByType('graph', function (graphSeries) {
    var categoriesData = graphSeries.getCategoriesData();
    var graph = graphSeries.getGraph();
    var data = graph.data;
    var categoryNames = categoriesData.mapArray(categoriesData.getName);
    data.filterSelf(function (idx) {
      var model = data.getItemModel(idx);
      var category = model.getShallow('category');
      if (category != null) {
        if (Object(util["isNumber"])(category)) {
          category = categoryNames[category];
        }
        // If in any legend component the status is not selected.
        for (var i = 0; i < legendModels.length; i++) {
          if (!legendModels[i].isSelected(category)) {
            return false;
          }
        }
      }
      return true;
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/categoryVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function categoryVisual(ecModel) {
  var paletteScope = {};
  ecModel.eachSeriesByType('graph', function (seriesModel) {
    var categoriesData = seriesModel.getCategoriesData();
    var data = seriesModel.getData();
    var categoryNameIdxMap = {};
    categoriesData.each(function (idx) {
      var name = categoriesData.getName(idx);
      // Add prefix to avoid conflict with Object.prototype.
      categoryNameIdxMap['ec-' + name] = idx;
      var itemModel = categoriesData.getItemModel(idx);
      var style = itemModel.getModel('itemStyle').getItemStyle();
      if (!style.fill) {
        // Get color from palette.
        style.fill = seriesModel.getColorFromPalette(name, paletteScope);
      }
      categoriesData.setItemVisual(idx, 'style', style);
      var symbolVisualList = ['symbol', 'symbolSize', 'symbolKeepAspect'];
      for (var i = 0; i < symbolVisualList.length; i++) {
        var symbolVisual = itemModel.getShallow(symbolVisualList[i], true);
        if (symbolVisual != null) {
          categoriesData.setItemVisual(idx, symbolVisualList[i], symbolVisual);
        }
      }
    });
    // Assign category color to visual
    if (categoriesData.count()) {
      data.each(function (idx) {
        var model = data.getItemModel(idx);
        var categoryIdx = model.getShallow('category');
        if (categoryIdx != null) {
          if (Object(util["isString"])(categoryIdx)) {
            categoryIdx = categoryNameIdxMap['ec-' + categoryIdx];
          }
          var categoryStyle = categoriesData.getItemVisual(categoryIdx, 'style');
          var style = data.ensureUniqueItemVisual(idx, 'style');
          Object(util["extend"])(style, categoryStyle);
          var visualList = ['symbol', 'symbolSize', 'symbolKeepAspect'];
          for (var i = 0; i < visualList.length; i++) {
            data.setItemVisual(idx, visualList[i], categoriesData.getItemVisual(categoryIdx, visualList[i]));
          }
        }
      });
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/edgeVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function edgeVisual_normalize(a) {
  if (!(a instanceof Array)) {
    a = [a, a];
  }
  return a;
}
function graphEdgeVisual(ecModel) {
  ecModel.eachSeriesByType('graph', function (seriesModel) {
    var graph = seriesModel.getGraph();
    var edgeData = seriesModel.getEdgeData();
    var symbolType = edgeVisual_normalize(seriesModel.get('edgeSymbol'));
    var symbolSize = edgeVisual_normalize(seriesModel.get('edgeSymbolSize'));
    // const colorQuery = ['lineStyle', 'color'] as const;
    // const opacityQuery = ['lineStyle', 'opacity'] as const;
    edgeData.setVisual('fromSymbol', symbolType && symbolType[0]);
    edgeData.setVisual('toSymbol', symbolType && symbolType[1]);
    edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);
    edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]);
    edgeData.setVisual('style', seriesModel.getModel('lineStyle').getLineStyle());
    edgeData.each(function (idx) {
      var itemModel = edgeData.getItemModel(idx);
      var edge = graph.getEdgeByIndex(idx);
      var symbolType = edgeVisual_normalize(itemModel.getShallow('symbol', true));
      var symbolSize = edgeVisual_normalize(itemModel.getShallow('symbolSize', true));
      // Edge visual must after node visual
      var style = itemModel.getModel('lineStyle').getLineStyle();
      var existsStyle = edgeData.ensureUniqueItemVisual(idx, 'style');
      Object(util["extend"])(existsStyle, style);
      switch (existsStyle.stroke) {
        case 'source':
          {
            var nodeStyle = edge.node1.getVisual('style');
            existsStyle.stroke = nodeStyle && nodeStyle.fill;
            break;
          }
        case 'target':
          {
            var nodeStyle = edge.node2.getVisual('style');
            existsStyle.stroke = nodeStyle && nodeStyle.fill;
            break;
          }
      }
      symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]);
      symbolType[1] && edge.setVisual('toSymbol', symbolType[1]);
      symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]);
      symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck

var KEY_DELIMITER = '-->';
/**
 * params handler
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @returns {*}
 */
var getAutoCurvenessParams = function (seriesModel) {
  return seriesModel.get('autoCurveness') || null;
};
/**
 * Generate a list of edge curvatures, 20 is the default
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @param {number} appendLength
 * @return  20 => [0, -0.2, 0.2, -0.4, 0.4, -0.6, 0.6, -0.8, 0.8, -1, 1, -1.2, 1.2, -1.4, 1.4, -1.6, 1.6, -1.8, 1.8, -2]
 */
var createCurveness = function (seriesModel, appendLength) {
  var autoCurvenessParmas = getAutoCurvenessParams(seriesModel);
  var length = 20;
  var curvenessList = [];
  // handler the function set
  if (util["isNumber"](autoCurvenessParmas)) {
    length = autoCurvenessParmas;
  } else if (util["isArray"](autoCurvenessParmas)) {
    seriesModel.__curvenessList = autoCurvenessParmas;
    return;
  }
  // append length
  if (appendLength > length) {
    length = appendLength;
  }
  // make sure the length is even
  var len = length % 2 ? length + 2 : length + 3;
  curvenessList = [];
  for (var i = 0; i < len; i++) {
    curvenessList.push((i % 2 ? i + 1 : i) / 10 * (i % 2 ? -1 : 1));
  }
  seriesModel.__curvenessList = curvenessList;
};
/**
 * Create different cache key data in the positive and negative directions, in order to set the curvature later
 * @param {number|string|module:echarts/data/Graph.Node} n1
 * @param {number|string|module:echarts/data/Graph.Node} n2
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @returns {string} key
 */
var getKeyOfEdges = function (n1, n2, seriesModel) {
  var source = [n1.id, n1.dataIndex].join('.');
  var target = [n2.id, n2.dataIndex].join('.');
  return [seriesModel.uid, source, target].join(KEY_DELIMITER);
};
/**
 * get opposite key
 * @param {string} key
 * @returns {string}
 */
var getOppositeKey = function (key) {
  var keys = key.split(KEY_DELIMITER);
  return [keys[0], keys[2], keys[1]].join(KEY_DELIMITER);
};
/**
 * get edgeMap with key
 * @param edge
 * @param {module:echarts/model/SeriesModel} seriesModel
 */
var getEdgeFromMap = function (edge, seriesModel) {
  var key = getKeyOfEdges(edge.node1, edge.node2, seriesModel);
  return seriesModel.__edgeMap[key];
};
/**
 * calculate all cases total length
 * @param edge
 * @param seriesModel
 * @returns {number}
 */
var getTotalLengthBetweenNodes = function (edge, seriesModel) {
  var len = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node1, edge.node2, seriesModel), seriesModel);
  var lenV = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node2, edge.node1, seriesModel), seriesModel);
  return len + lenV;
};
/**
 *
 * @param key
 */
var getEdgeMapLengthWithKey = function (key, seriesModel) {
  var edgeMap = seriesModel.__edgeMap;
  return edgeMap[key] ? edgeMap[key].length : 0;
};
/**
 * Count the number of edges between the same two points, used to obtain the curvature table and the parity of the edge
 * @see /graph/GraphSeries.js@getInitialData
 * @param {module:echarts/model/SeriesModel} seriesModel
 */
function initCurvenessList(seriesModel) {
  if (!getAutoCurvenessParams(seriesModel)) {
    return;
  }
  seriesModel.__curvenessList = [];
  seriesModel.__edgeMap = {};
  // calc the array of curveness List
  createCurveness(seriesModel);
}
/**
 * set edgeMap with key
 * @param {number|string|module:echarts/data/Graph.Node} n1
 * @param {number|string|module:echarts/data/Graph.Node} n2
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @param {number} index
 */
function createEdgeMapForCurveness(n1, n2, seriesModel, index) {
  if (!getAutoCurvenessParams(seriesModel)) {
    return;
  }
  var key = getKeyOfEdges(n1, n2, seriesModel);
  var edgeMap = seriesModel.__edgeMap;
  var oppositeEdges = edgeMap[getOppositeKey(key)];
  // set direction
  if (edgeMap[key] && !oppositeEdges) {
    edgeMap[key].isForward = true;
  } else if (oppositeEdges && edgeMap[key]) {
    oppositeEdges.isForward = true;
    edgeMap[key].isForward = false;
  }
  edgeMap[key] = edgeMap[key] || [];
  edgeMap[key].push(index);
}
/**
 * get curvature for edge
 * @param edge
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @param index
 */
function getCurvenessForEdge(edge, seriesModel, index, needReverse) {
  var autoCurvenessParams = getAutoCurvenessParams(seriesModel);
  var isArrayParam = util["isArray"](autoCurvenessParams);
  if (!autoCurvenessParams) {
    return null;
  }
  var edgeArray = getEdgeFromMap(edge, seriesModel);
  if (!edgeArray) {
    return null;
  }
  var edgeIndex = -1;
  for (var i = 0; i < edgeArray.length; i++) {
    if (edgeArray[i] === index) {
      edgeIndex = i;
      break;
    }
  }
  // if totalLen is Longer createCurveness
  var totalLen = getTotalLengthBetweenNodes(edge, seriesModel);
  createCurveness(seriesModel, totalLen);
  edge.lineStyle = edge.lineStyle || {};
  // if is opposite edge, must set curvenss to opposite number
  var curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel);
  var curvenessList = seriesModel.__curvenessList;
  // if pass array no need parity
  var parityCorrection = isArrayParam ? 0 : totalLen % 2 ? 0 : 1;
  if (!edgeArray.isForward) {
    // the opposite edge show outside
    var oppositeKey = getOppositeKey(curKey);
    var len = getEdgeMapLengthWithKey(oppositeKey, seriesModel);
    var resValue = curvenessList[edgeIndex + len + parityCorrection];
    // isNeedReverse, simple, force type need reverse the curveness in the junction of the forword and the opposite
    if (needReverse) {
      // set as array may make the parity handle with the len of opposite
      if (isArrayParam) {
        if (autoCurvenessParams && autoCurvenessParams[0] === 0) {
          return (len + parityCorrection) % 2 ? resValue : -resValue;
        } else {
          return ((len % 2 ? 0 : 1) + parityCorrection) % 2 ? resValue : -resValue;
        }
      } else {
        return (len + parityCorrection) % 2 ? resValue : -resValue;
      }
    } else {
      return curvenessList[edgeIndex + len + parityCorrection];
    }
  } else {
    return curvenessList[parityCorrection + edgeIndex];
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function simpleLayout(seriesModel) {
  var coordSys = seriesModel.coordinateSystem;
  if (coordSys && coordSys.type !== 'view') {
    return;
  }
  var graph = seriesModel.getGraph();
  graph.eachNode(function (node) {
    var model = node.getModel();
    node.setLayout([+model.get('x'), +model.get('y')]);
  });
  simpleLayoutEdge(graph, seriesModel);
}
function simpleLayoutEdge(graph, seriesModel) {
  graph.eachEdge(function (edge, index) {
    var curveness = util["retrieve3"](edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, seriesModel, index, true), 0);
    var p1 = clone(edge.node1.getLayout());
    var p2 = clone(edge.node2.getLayout());
    var points = [p1, p2];
    if (+curveness) {
      points.push([(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness]);
    }
    edge.setLayout(points);
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/simpleLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function graphSimpleLayout(ecModel, api) {
  ecModel.eachSeriesByType('graph', function (seriesModel) {
    var layout = seriesModel.get('layout');
    var coordSys = seriesModel.coordinateSystem;
    if (coordSys && coordSys.type !== 'view') {
      var data_1 = seriesModel.getData();
      var dimensions_1 = [];
      Object(util["each"])(coordSys.dimensions, function (coordDim) {
        dimensions_1 = dimensions_1.concat(data_1.mapDimensionsAll(coordDim));
      });
      for (var dataIndex = 0; dataIndex < data_1.count(); dataIndex++) {
        var value = [];
        var hasValue = false;
        for (var i = 0; i < dimensions_1.length; i++) {
          var val = data_1.get(dimensions_1[i], dataIndex);
          if (!isNaN(val)) {
            hasValue = true;
          }
          value.push(val);
        }
        if (hasValue) {
          data_1.setItemLayout(dataIndex, coordSys.dataToPoint(value));
        } else {
          // Also {Array.<number>}, not undefined to avoid if...else... statement
          data_1.setItemLayout(dataIndex, [NaN, NaN]);
        }
      }
      simpleLayoutEdge(data_1.graph, seriesModel);
    } else if (!layout || layout === 'none') {
      simpleLayout(seriesModel);
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/graphHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function getNodeGlobalScale(seriesModel) {
  var coordSys = seriesModel.coordinateSystem;
  if (coordSys.type !== 'view') {
    return 1;
  }
  var nodeScaleRatio = seriesModel.option.nodeScaleRatio;
  var groupZoom = coordSys.scaleX;
  // Scale node when zoom changes
  var roamZoom = coordSys.getZoom();
  var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;
  return nodeScale / groupZoom;
}
function getSymbolSize(node) {
  var symbolSize = node.getVisual('symbolSize');
  if (symbolSize instanceof Array) {
    symbolSize = (symbolSize[0] + symbolSize[1]) / 2;
  }
  return +symbolSize;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/circularLayoutHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var circularLayoutHelper_PI = Math.PI;
var _symbolRadiansHalf = [];
/**
 * `basedOn` can be:
 * 'value':
 *     This layout is not accurate and have same bad case. For example,
 *     if the min value is very smaller than the max value, the nodes
 *     with the min value probably overlap even though there is enough
 *     space to layout them. So we only use this approach in the as the
 *     init layout of the force layout.
 *     FIXME
 *     Probably we do not need this method any more but use
 *     `basedOn: 'symbolSize'` in force layout if
 *     delay its init operations to GraphView.
 * 'symbolSize':
 *     This approach work only if all of the symbol size calculated.
 *     That is, the progressive rendering is not applied to graph.
 *     FIXME
 *     If progressive rendering is applied to graph some day,
 *     probably we have to use `basedOn: 'value'`.
 */
function circularLayout(seriesModel, basedOn, draggingNode, pointer) {
  var coordSys = seriesModel.coordinateSystem;
  if (coordSys && coordSys.type !== 'view') {
    return;
  }
  var rect = coordSys.getBoundingRect();
  var nodeData = seriesModel.getData();
  var graph = nodeData.graph;
  var cx = rect.width / 2 + rect.x;
  var cy = rect.height / 2 + rect.y;
  var r = Math.min(rect.width, rect.height) / 2;
  var count = nodeData.count();
  nodeData.setLayout({
    cx: cx,
    cy: cy
  });
  if (!count) {
    return;
  }
  if (draggingNode) {
    var _a = coordSys.pointToData(pointer),
      tempX = _a[0],
      tempY = _a[1];
    var v = [tempX - cx, tempY - cy];
    normalize(v, v);
    vector_scale(v, v, r);
    draggingNode.setLayout([cx + v[0], cy + v[1]], true);
    var circularRotateLabel = seriesModel.get(['circular', 'rotateLabel']);
    rotateNodeLabel(draggingNode, circularRotateLabel, cx, cy);
  }
  _layoutNodesBasedOn[basedOn](seriesModel, graph, nodeData, r, cx, cy, count);
  graph.eachEdge(function (edge, index) {
    var curveness = util["retrieve3"](edge.getModel().get(['lineStyle', 'curveness']), getCurvenessForEdge(edge, seriesModel, index), 0);
    var p1 = clone(edge.node1.getLayout());
    var p2 = clone(edge.node2.getLayout());
    var cp1;
    var x12 = (p1[0] + p2[0]) / 2;
    var y12 = (p1[1] + p2[1]) / 2;
    if (+curveness) {
      curveness *= 3;
      cp1 = [cx * curveness + x12 * (1 - curveness), cy * curveness + y12 * (1 - curveness)];
    }
    edge.setLayout([p1, p2, cp1]);
  });
}
var _layoutNodesBasedOn = {
  value: function (seriesModel, graph, nodeData, r, cx, cy, count) {
    var angle = 0;
    var sum = nodeData.getSum('value');
    var unitAngle = Math.PI * 2 / (sum || count);
    graph.eachNode(function (node) {
      var value = node.getValue('value');
      var radianHalf = unitAngle * (sum ? value : 1) / 2;
      angle += radianHalf;
      node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);
      angle += radianHalf;
    });
  },
  symbolSize: function (seriesModel, graph, nodeData, r, cx, cy, count) {
    var sumRadian = 0;
    _symbolRadiansHalf.length = count;
    var nodeScale = getNodeGlobalScale(seriesModel);
    graph.eachNode(function (node) {
      var symbolSize = getSymbolSize(node);
      // Normally this case will not happen, but we still add
      // some the defensive code (2px is an arbitrary value).
      isNaN(symbolSize) && (symbolSize = 2);
      symbolSize < 0 && (symbolSize = 0);
      symbolSize *= nodeScale;
      var symbolRadianHalf = Math.asin(symbolSize / 2 / r);
      // when `symbolSize / 2` is bigger than `r`.
      isNaN(symbolRadianHalf) && (symbolRadianHalf = circularLayoutHelper_PI / 2);
      _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf;
      sumRadian += symbolRadianHalf * 2;
    });
    var halfRemainRadian = (2 * circularLayoutHelper_PI - sumRadian) / count / 2;
    var angle = 0;
    graph.eachNode(function (node) {
      var radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex];
      angle += radianHalf;
      // init circular layout for
      // 1. layout undefined node
      // 2. not fixed node
      (!node.getLayout() || !node.getLayout().fixed) && node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);
      angle += radianHalf;
    });
  }
};
function rotateNodeLabel(node, circularRotateLabel, cx, cy) {
  var el = node.getGraphicEl();
  // need to check if el exists. '-' value may not create node element.
  if (!el) {
    return;
  }
  var nodeModel = node.getModel();
  var labelRotate = nodeModel.get(['label', 'rotate']) || 0;
  var symbolPath = el.getSymbolPath();
  if (circularRotateLabel) {
    var pos = node.getLayout();
    var rad = Math.atan2(pos[1] - cy, pos[0] - cx);
    if (rad < 0) {
      rad = Math.PI * 2 + rad;
    }
    var isLeft = pos[0] < cx;
    if (isLeft) {
      rad = rad - Math.PI;
    }
    var textPosition = isLeft ? 'left' : 'right';
    symbolPath.setTextConfig({
      rotation: -rad,
      position: textPosition,
      origin: 'center'
    });
    var emphasisState = symbolPath.ensureState('emphasis');
    util["extend"](emphasisState.textConfig || (emphasisState.textConfig = {}), {
      position: textPosition
    });
  } else {
    symbolPath.setTextConfig({
      rotation: labelRotate *= Math.PI / 180
    });
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/circularLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function graphCircularLayout(ecModel) {
  ecModel.eachSeriesByType('graph', function (seriesModel) {
    if (seriesModel.get('layout') === 'circular') {
      circularLayout(seriesModel, 'symbolSize');
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/forceHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* Some formulas were originally copied from "d3.js" with some
* modifications made for this project.
* (See more details in the comment of the method "step" below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the license of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/

var forceHelper_scaleAndAdd = scaleAndAdd;
// function adjacentNode(n, e) {
//     return e.n1 === n ? e.n2 : e.n1;
// }
function forceHelper_forceLayout(inNodes, inEdges, opts) {
  var nodes = inNodes;
  var edges = inEdges;
  var rect = opts.rect;
  var width = rect.width;
  var height = rect.height;
  var center = [rect.x + width / 2, rect.y + height / 2];
  // let scale = opts.scale || 1;
  var gravity = opts.gravity == null ? 0.1 : opts.gravity;
  // for (let i = 0; i < edges.length; i++) {
  //     let e = edges[i];
  //     let n1 = e.n1;
  //     let n2 = e.n2;
  //     n1.edges = n1.edges || [];
  //     n2.edges = n2.edges || [];
  //     n1.edges.push(e);
  //     n2.edges.push(e);
  // }
  // Init position
  for (var i = 0; i < nodes.length; i++) {
    var n = nodes[i];
    if (!n.p) {
      n.p = vector_create(width * (Math.random() - 0.5) + center[0], height * (Math.random() - 0.5) + center[1]);
    }
    n.pp = clone(n.p);
    n.edges = null;
  }
  // Formula in 'Graph Drawing by Force-directed Placement'
  // let k = scale * Math.sqrt(width * height / nodes.length);
  // let k2 = k * k;
  var initialFriction = opts.friction == null ? 0.6 : opts.friction;
  var friction = initialFriction;
  var beforeStepCallback;
  var afterStepCallback;
  return {
    warmUp: function () {
      friction = initialFriction * 0.8;
    },
    setFixed: function (idx) {
      nodes[idx].fixed = true;
    },
    setUnfixed: function (idx) {
      nodes[idx].fixed = false;
    },
    /**
     * Before step hook
     */
    beforeStep: function (cb) {
      beforeStepCallback = cb;
    },
    /**
     * After step hook
     */
    afterStep: function (cb) {
      afterStepCallback = cb;
    },
    /**
     * Some formulas were originally copied from "d3.js"
     * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js
     * with some modifications made for this project.
     * See the license statement at the head of this file.
     */
    step: function (cb) {
      beforeStepCallback && beforeStepCallback(nodes, edges);
      var v12 = [];
      var nLen = nodes.length;
      for (var i = 0; i < edges.length; i++) {
        var e = edges[i];
        if (e.ignoreForceLayout) {
          continue;
        }
        var n1 = e.n1;
        var n2 = e.n2;
        sub(v12, n2.p, n1.p);
        var d = vector_len(v12) - e.d;
        var w = n2.w / (n1.w + n2.w);
        if (isNaN(w)) {
          w = 0;
        }
        normalize(v12, v12);
        !n1.fixed && forceHelper_scaleAndAdd(n1.p, n1.p, v12, w * d * friction);
        !n2.fixed && forceHelper_scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction);
      }
      // Gravity
      for (var i = 0; i < nLen; i++) {
        var n = nodes[i];
        if (!n.fixed) {
          sub(v12, center, n.p);
          // let d = vec2.len(v12);
          // vec2.scale(v12, v12, 1 / d);
          // let gravityFactor = gravity;
          forceHelper_scaleAndAdd(n.p, n.p, v12, gravity * friction);
        }
      }
      // Repulsive
      // PENDING
      for (var i = 0; i < nLen; i++) {
        var n1 = nodes[i];
        for (var j = i + 1; j < nLen; j++) {
          var n2 = nodes[j];
          sub(v12, n2.p, n1.p);
          var d = vector_len(v12);
          if (d === 0) {
            // Random repulse
            set(v12, Math.random() - 0.5, Math.random() - 0.5);
            d = 1;
          }
          var repFact = (n1.rep + n2.rep) / d / d;
          !n1.fixed && forceHelper_scaleAndAdd(n1.pp, n1.pp, v12, repFact);
          !n2.fixed && forceHelper_scaleAndAdd(n2.pp, n2.pp, v12, -repFact);
        }
      }
      var v = [];
      for (var i = 0; i < nLen; i++) {
        var n = nodes[i];
        if (!n.fixed) {
          sub(v, n.p, n.pp);
          forceHelper_scaleAndAdd(n.p, n.p, v, friction);
          vector_copy(n.pp, n.p);
        }
      }
      friction = friction * 0.992;
      var finished = friction < 0.01;
      afterStepCallback && afterStepCallback(nodes, edges, finished);
      cb && cb(finished);
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/forceLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







function graphForceLayout(ecModel) {
  ecModel.eachSeriesByType('graph', function (graphSeries) {
    var coordSys = graphSeries.coordinateSystem;
    if (coordSys && coordSys.type !== 'view') {
      return;
    }
    if (graphSeries.get('layout') === 'force') {
      var preservedPoints_1 = graphSeries.preservedPoints || {};
      var graph_1 = graphSeries.getGraph();
      var nodeData_1 = graph_1.data;
      var edgeData = graph_1.edgeData;
      var forceModel = graphSeries.getModel('force');
      var initLayout = forceModel.get('initLayout');
      if (graphSeries.preservedPoints) {
        nodeData_1.each(function (idx) {
          var id = nodeData_1.getId(idx);
          nodeData_1.setItemLayout(idx, preservedPoints_1[id] || [NaN, NaN]);
        });
      } else if (!initLayout || initLayout === 'none') {
        simpleLayout(graphSeries);
      } else if (initLayout === 'circular') {
        circularLayout(graphSeries, 'value');
      }
      var nodeDataExtent_1 = nodeData_1.getDataExtent('value');
      var edgeDataExtent_1 = edgeData.getDataExtent('value');
      // let edgeDataExtent = edgeData.getDataExtent('value');
      var repulsion = forceModel.get('repulsion');
      var edgeLength = forceModel.get('edgeLength');
      var repulsionArr_1 = util["isArray"](repulsion) ? repulsion : [repulsion, repulsion];
      var edgeLengthArr_1 = util["isArray"](edgeLength) ? edgeLength : [edgeLength, edgeLength];
      // Larger value has smaller length
      edgeLengthArr_1 = [edgeLengthArr_1[1], edgeLengthArr_1[0]];
      var nodes_1 = nodeData_1.mapArray('value', function (value, idx) {
        var point = nodeData_1.getItemLayout(idx);
        var rep = linearMap(value, nodeDataExtent_1, repulsionArr_1);
        if (isNaN(rep)) {
          rep = (repulsionArr_1[0] + repulsionArr_1[1]) / 2;
        }
        return {
          w: rep,
          rep: rep,
          fixed: nodeData_1.getItemModel(idx).get('fixed'),
          p: !point || isNaN(point[0]) || isNaN(point[1]) ? null : point
        };
      });
      var edges = edgeData.mapArray('value', function (value, idx) {
        var edge = graph_1.getEdgeByIndex(idx);
        var d = linearMap(value, edgeDataExtent_1, edgeLengthArr_1);
        if (isNaN(d)) {
          d = (edgeLengthArr_1[0] + edgeLengthArr_1[1]) / 2;
        }
        var edgeModel = edge.getModel();
        var curveness = util["retrieve3"](edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, graphSeries, idx, true), 0);
        return {
          n1: nodes_1[edge.node1.dataIndex],
          n2: nodes_1[edge.node2.dataIndex],
          d: d,
          curveness: curveness,
          ignoreForceLayout: edgeModel.get('ignoreForceLayout')
        };
      });
      // let coordSys = graphSeries.coordinateSystem;
      var rect = coordSys.getBoundingRect();
      var forceInstance = forceHelper_forceLayout(nodes_1, edges, {
        rect: rect,
        gravity: forceModel.get('gravity'),
        friction: forceModel.get('friction')
      });
      forceInstance.beforeStep(function (nodes, edges) {
        for (var i = 0, l = nodes.length; i < l; i++) {
          if (nodes[i].fixed) {
            // Write back to layout instance
            vector_copy(nodes[i].p, graph_1.getNodeByIndex(i).getLayout());
          }
        }
      });
      forceInstance.afterStep(function (nodes, edges, stopped) {
        for (var i = 0, l = nodes.length; i < l; i++) {
          if (!nodes[i].fixed) {
            graph_1.getNodeByIndex(i).setLayout(nodes[i].p);
          }
          preservedPoints_1[nodeData_1.getId(i)] = nodes[i].p;
        }
        for (var i = 0, l = edges.length; i < l; i++) {
          var e = edges[i];
          var edge = graph_1.getEdgeByIndex(i);
          var p1 = e.n1.p;
          var p2 = e.n2.p;
          var points = edge.getLayout();
          points = points ? points.slice() : [];
          points[0] = points[0] || [];
          points[1] = points[1] || [];
          vector_copy(points[0], p1);
          vector_copy(points[1], p2);
          if (+e.curveness) {
            points[2] = [(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness];
          }
          edge.setLayout(points);
        }
      });
      graphSeries.forceLayout = forceInstance;
      graphSeries.preservedPoints = preservedPoints_1;
      // Step to get the layout
      forceInstance.step();
    } else {
      // Remove prev injected forceLayout instance
      graphSeries.forceLayout = null;
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/createView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// FIXME Where to create the simple view coordinate system




function createView_getViewRect(seriesModel, api, aspect) {
  var option = Object(util["extend"])(seriesModel.getBoxLayoutParams(), {
    aspect: aspect
  });
  return getLayoutRect(option, {
    width: api.getWidth(),
    height: api.getHeight()
  });
}
function createViewCoordSys(ecModel, api) {
  var viewList = [];
  ecModel.eachSeriesByType('graph', function (seriesModel) {
    var coordSysType = seriesModel.get('coordinateSystem');
    if (!coordSysType || coordSysType === 'view') {
      var data_1 = seriesModel.getData();
      var positions = data_1.mapArray(function (idx) {
        var itemModel = data_1.getItemModel(idx);
        return [+itemModel.get('x'), +itemModel.get('y')];
      });
      var min = [];
      var max = [];
      fromPoints(positions, min, max);
      // If width or height is 0
      if (max[0] - min[0] === 0) {
        max[0] += 1;
        min[0] -= 1;
      }
      if (max[1] - min[1] === 0) {
        max[1] += 1;
        min[1] -= 1;
      }
      var aspect = (max[0] - min[0]) / (max[1] - min[1]);
      // FIXME If get view rect after data processed?
      var viewRect = createView_getViewRect(seriesModel, api, aspect);
      // Position may be NaN, use view rect instead
      if (isNaN(aspect)) {
        min = [viewRect.x, viewRect.y];
        max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];
      }
      var bbWidth = max[0] - min[0];
      var bbHeight = max[1] - min[1];
      var viewWidth = viewRect.width;
      var viewHeight = viewRect.height;
      var viewCoordSys = seriesModel.coordinateSystem = new coord_View();
      viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');
      viewCoordSys.setBoundingRect(min[0], min[1], bbWidth, bbHeight);
      viewCoordSys.setViewRect(viewRect.x, viewRect.y, viewWidth, viewHeight);
      // Update roam info
      viewCoordSys.setCenter(seriesModel.get('center'), api);
      viewCoordSys.setZoom(seriesModel.get('zoom'));
      viewList.push(viewCoordSys);
    }
  });
  return viewList;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/LinePath.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * Line path for bezier and straight line draw
 */


var straightLineProto = shape_Line.prototype;
var bezierCurveProto = shape_BezierCurve.prototype;
var StraightLineShape = /** @class */function () {
  function StraightLineShape() {
    // Start point
    this.x1 = 0;
    this.y1 = 0;
    // End point
    this.x2 = 0;
    this.y2 = 0;
    this.percent = 1;
  }
  return StraightLineShape;
}();
var LinePath_CurveShape = /** @class */function (_super) {
  __extends(CurveShape, _super);
  function CurveShape() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  return CurveShape;
}(StraightLineShape);
function isStraightLine(shape) {
  return isNaN(+shape.cpx1) || isNaN(+shape.cpy1);
}
var LinePath_ECLinePath = /** @class */function (_super) {
  __extends(ECLinePath, _super);
  function ECLinePath(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'ec-line';
    return _this;
  }
  ECLinePath.prototype.getDefaultStyle = function () {
    return {
      stroke: '#000',
      fill: null
    };
  };
  ECLinePath.prototype.getDefaultShape = function () {
    return new StraightLineShape();
  };
  ECLinePath.prototype.buildPath = function (ctx, shape) {
    if (isStraightLine(shape)) {
      straightLineProto.buildPath.call(this, ctx, shape);
    } else {
      bezierCurveProto.buildPath.call(this, ctx, shape);
    }
  };
  ECLinePath.prototype.pointAt = function (t) {
    if (isStraightLine(this.shape)) {
      return straightLineProto.pointAt.call(this, t);
    } else {
      return bezierCurveProto.pointAt.call(this, t);
    }
  };
  ECLinePath.prototype.tangentAt = function (t) {
    var shape = this.shape;
    var p = isStraightLine(shape) ? [shape.x2 - shape.x1, shape.y2 - shape.y1] : bezierCurveProto.tangentAt.call(this, t);
    return normalize(p, p);
  };
  return ECLinePath;
}(graphic_Path);
/* harmony default export */ var LinePath = (LinePath_ECLinePath);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/Line.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









var SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol'];
function makeSymbolTypeKey(symbolCategory) {
  return '_' + symbolCategory + 'Type';
}
function makeSymbolTypeValue(name, lineData, idx) {
  var symbolType = lineData.getItemVisual(idx, name);
  if (!symbolType || symbolType === 'none') {
    return symbolType;
  }
  var symbolSize = lineData.getItemVisual(idx, name + 'Size');
  var symbolRotate = lineData.getItemVisual(idx, name + 'Rotate');
  var symbolOffset = lineData.getItemVisual(idx, name + 'Offset');
  var symbolKeepAspect = lineData.getItemVisual(idx, name + 'KeepAspect');
  var symbolSizeArr = normalizeSymbolSize(symbolSize);
  var symbolOffsetArr = normalizeSymbolOffset(symbolOffset || 0, symbolSizeArr);
  return symbolType + symbolSizeArr + symbolOffsetArr + (symbolRotate || '') + (symbolKeepAspect || '');
}
/**
 * @inner
 */
function Line_createSymbol(name, lineData, idx) {
  var symbolType = lineData.getItemVisual(idx, name);
  if (!symbolType || symbolType === 'none') {
    return;
  }
  var symbolSize = lineData.getItemVisual(idx, name + 'Size');
  var symbolRotate = lineData.getItemVisual(idx, name + 'Rotate');
  var symbolOffset = lineData.getItemVisual(idx, name + 'Offset');
  var symbolKeepAspect = lineData.getItemVisual(idx, name + 'KeepAspect');
  var symbolSizeArr = normalizeSymbolSize(symbolSize);
  var symbolOffsetArr = normalizeSymbolOffset(symbolOffset || 0, symbolSizeArr);
  var symbolPath = symbol_createSymbol(symbolType, -symbolSizeArr[0] / 2 + symbolOffsetArr[0], -symbolSizeArr[1] / 2 + symbolOffsetArr[1], symbolSizeArr[0], symbolSizeArr[1], null, symbolKeepAspect);
  symbolPath.__specifiedRotation = symbolRotate == null || isNaN(symbolRotate) ? void 0 : +symbolRotate * Math.PI / 180 || 0;
  symbolPath.name = name;
  return symbolPath;
}
function createLine(points) {
  var line = new LinePath({
    name: 'line',
    subPixelOptimize: true
  });
  setLinePoints(line.shape, points);
  return line;
}
function setLinePoints(targetShape, points) {
  targetShape.x1 = points[0][0];
  targetShape.y1 = points[0][1];
  targetShape.x2 = points[1][0];
  targetShape.y2 = points[1][1];
  targetShape.percent = 1;
  var cp1 = points[2];
  if (cp1) {
    targetShape.cpx1 = cp1[0];
    targetShape.cpy1 = cp1[1];
  } else {
    targetShape.cpx1 = NaN;
    targetShape.cpy1 = NaN;
  }
}
var helper_Line_Line = /** @class */function (_super) {
  __extends(Line, _super);
  function Line(lineData, idx, seriesScope) {
    var _this = _super.call(this) || this;
    _this._createLine(lineData, idx, seriesScope);
    return _this;
  }
  Line.prototype._createLine = function (lineData, idx, seriesScope) {
    var seriesModel = lineData.hostModel;
    var linePoints = lineData.getItemLayout(idx);
    var line = createLine(linePoints);
    line.shape.percent = 0;
    initProps(line, {
      shape: {
        percent: 1
      }
    }, seriesModel, idx);
    this.add(line);
    Object(util["each"])(SYMBOL_CATEGORIES, function (symbolCategory) {
      var symbol = Line_createSymbol(symbolCategory, lineData, idx);
      // symbols must added after line to make sure
      // it will be updated after line#update.
      // Or symbol position and rotation update in line#beforeUpdate will be one frame slow
      this.add(symbol);
      this[makeSymbolTypeKey(symbolCategory)] = makeSymbolTypeValue(symbolCategory, lineData, idx);
    }, this);
    this._updateCommonStl(lineData, idx, seriesScope);
  };
  // TODO More strict on the List type in parameters?
  Line.prototype.updateData = function (lineData, idx, seriesScope) {
    var seriesModel = lineData.hostModel;
    var line = this.childOfName('line');
    var linePoints = lineData.getItemLayout(idx);
    var target = {
      shape: {}
    };
    setLinePoints(target.shape, linePoints);
    updateProps(line, target, seriesModel, idx);
    Object(util["each"])(SYMBOL_CATEGORIES, function (symbolCategory) {
      var symbolType = makeSymbolTypeValue(symbolCategory, lineData, idx);
      var key = makeSymbolTypeKey(symbolCategory);
      // Symbol changed
      if (this[key] !== symbolType) {
        this.remove(this.childOfName(symbolCategory));
        var symbol = Line_createSymbol(symbolCategory, lineData, idx);
        this.add(symbol);
      }
      this[key] = symbolType;
    }, this);
    this._updateCommonStl(lineData, idx, seriesScope);
  };
  ;
  Line.prototype.getLinePath = function () {
    return this.childAt(0);
  };
  Line.prototype._updateCommonStl = function (lineData, idx, seriesScope) {
    var seriesModel = lineData.hostModel;
    var line = this.childOfName('line');
    var emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle;
    var blurLineStyle = seriesScope && seriesScope.blurLineStyle;
    var selectLineStyle = seriesScope && seriesScope.selectLineStyle;
    var labelStatesModels = seriesScope && seriesScope.labelStatesModels;
    var emphasisDisabled = seriesScope && seriesScope.emphasisDisabled;
    var focus = seriesScope && seriesScope.focus;
    var blurScope = seriesScope && seriesScope.blurScope;
    // Optimization for large dataset
    if (!seriesScope || lineData.hasItemOption) {
      var itemModel = lineData.getItemModel(idx);
      var emphasisModel = itemModel.getModel('emphasis');
      emphasisLineStyle = emphasisModel.getModel('lineStyle').getLineStyle();
      blurLineStyle = itemModel.getModel(['blur', 'lineStyle']).getLineStyle();
      selectLineStyle = itemModel.getModel(['select', 'lineStyle']).getLineStyle();
      emphasisDisabled = emphasisModel.get('disabled');
      focus = emphasisModel.get('focus');
      blurScope = emphasisModel.get('blurScope');
      labelStatesModels = getLabelStatesModels(itemModel);
    }
    var lineStyle = lineData.getItemVisual(idx, 'style');
    var visualColor = lineStyle.stroke;
    line.useStyle(lineStyle);
    line.style.fill = null;
    line.style.strokeNoScale = true;
    line.ensureState('emphasis').style = emphasisLineStyle;
    line.ensureState('blur').style = blurLineStyle;
    line.ensureState('select').style = selectLineStyle;
    // Update symbol
    Object(util["each"])(SYMBOL_CATEGORIES, function (symbolCategory) {
      var symbol = this.childOfName(symbolCategory);
      if (symbol) {
        // Share opacity and color with line.
        symbol.setColor(visualColor);
        symbol.style.opacity = lineStyle.opacity;
        for (var i = 0; i < SPECIAL_STATES.length; i++) {
          var stateName = SPECIAL_STATES[i];
          var lineState = line.getState(stateName);
          if (lineState) {
            var lineStateStyle = lineState.style || {};
            var state = symbol.ensureState(stateName);
            var stateStyle = state.style || (state.style = {});
            if (lineStateStyle.stroke != null) {
              stateStyle[symbol.__isEmptyBrush ? 'stroke' : 'fill'] = lineStateStyle.stroke;
            }
            if (lineStateStyle.opacity != null) {
              stateStyle.opacity = lineStateStyle.opacity;
            }
          }
        }
        symbol.markRedraw();
      }
    }, this);
    var rawVal = seriesModel.getRawValue(idx);
    setLabelStyle(this, labelStatesModels, {
      labelDataIndex: idx,
      labelFetcher: {
        getFormattedLabel: function (dataIndex, stateName) {
          return seriesModel.getFormattedLabel(dataIndex, stateName, lineData.dataType);
        }
      },
      inheritColor: visualColor || '#000',
      defaultOpacity: lineStyle.opacity,
      defaultText: (rawVal == null ? lineData.getName(idx) : isFinite(rawVal) ? round(rawVal) : rawVal) + ''
    });
    var label = this.getTextContent();
    // Always set `textStyle` even if `normalStyle.text` is null, because default
    // values have to be set on `normalStyle`.
    if (label) {
      var labelNormalModel = labelStatesModels.normal;
      label.__align = label.style.align;
      label.__verticalAlign = label.style.verticalAlign;
      // 'start', 'middle', 'end'
      label.__position = labelNormalModel.get('position') || 'middle';
      var distance = labelNormalModel.get('distance');
      if (!Object(util["isArray"])(distance)) {
        distance = [distance, distance];
      }
      label.__labelDistance = distance;
    }
    this.setTextConfig({
      position: null,
      local: true,
      inside: false // Can't be inside for stroke element.
    });
    toggleHoverEmphasis(this, focus, blurScope, emphasisDisabled);
  };
  Line.prototype.highlight = function () {
    enterEmphasis(this);
  };
  Line.prototype.downplay = function () {
    leaveEmphasis(this);
  };
  Line.prototype.updateLayout = function (lineData, idx) {
    this.setLinePoints(lineData.getItemLayout(idx));
  };
  Line.prototype.setLinePoints = function (points) {
    var linePath = this.childOfName('line');
    setLinePoints(linePath.shape, points);
    linePath.dirty();
  };
  Line.prototype.beforeUpdate = function () {
    var lineGroup = this;
    var symbolFrom = lineGroup.childOfName('fromSymbol');
    var symbolTo = lineGroup.childOfName('toSymbol');
    var label = lineGroup.getTextContent();
    // Quick reject
    if (!symbolFrom && !symbolTo && (!label || label.ignore)) {
      return;
    }
    var invScale = 1;
    var parentNode = this.parent;
    while (parentNode) {
      if (parentNode.scaleX) {
        invScale /= parentNode.scaleX;
      }
      parentNode = parentNode.parent;
    }
    var line = lineGroup.childOfName('line');
    // If line not changed
    // FIXME Parent scale changed
    if (!this.__dirty && !line.__dirty) {
      return;
    }
    var percent = line.shape.percent;
    var fromPos = line.pointAt(0);
    var toPos = line.pointAt(percent);
    var d = sub([], toPos, fromPos);
    normalize(d, d);
    function setSymbolRotation(symbol, percent) {
      // Fix #12388
      // when symbol is set to be 'arrow' in markLine,
      // symbolRotate value will be ignored, and compulsively use tangent angle.
      // rotate by default if symbol rotation is not specified
      var specifiedRotation = symbol.__specifiedRotation;
      if (specifiedRotation == null) {
        var tangent = line.tangentAt(percent);
        symbol.attr('rotation', (percent === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(tangent[1], tangent[0]));
      } else {
        symbol.attr('rotation', specifiedRotation);
      }
    }
    if (symbolFrom) {
      symbolFrom.setPosition(fromPos);
      setSymbolRotation(symbolFrom, 0);
      symbolFrom.scaleX = symbolFrom.scaleY = invScale * percent;
      symbolFrom.markRedraw();
    }
    if (symbolTo) {
      symbolTo.setPosition(toPos);
      setSymbolRotation(symbolTo, 1);
      symbolTo.scaleX = symbolTo.scaleY = invScale * percent;
      symbolTo.markRedraw();
    }
    if (label && !label.ignore) {
      label.x = label.y = 0;
      label.originX = label.originY = 0;
      var textAlign = void 0;
      var textVerticalAlign = void 0;
      var distance = label.__labelDistance;
      var distanceX = distance[0] * invScale;
      var distanceY = distance[1] * invScale;
      var halfPercent = percent / 2;
      var tangent = line.tangentAt(halfPercent);
      var n = [tangent[1], -tangent[0]];
      var cp = line.pointAt(halfPercent);
      if (n[1] > 0) {
        n[0] = -n[0];
        n[1] = -n[1];
      }
      var dir = tangent[0] < 0 ? -1 : 1;
      if (label.__position !== 'start' && label.__position !== 'end') {
        var rotation = -Math.atan2(tangent[1], tangent[0]);
        if (toPos[0] < fromPos[0]) {
          rotation = Math.PI + rotation;
        }
        label.rotation = rotation;
      }
      var dy = void 0;
      switch (label.__position) {
        case 'insideStartTop':
        case 'insideMiddleTop':
        case 'insideEndTop':
        case 'middle':
          dy = -distanceY;
          textVerticalAlign = 'bottom';
          break;
        case 'insideStartBottom':
        case 'insideMiddleBottom':
        case 'insideEndBottom':
          dy = distanceY;
          textVerticalAlign = 'top';
          break;
        default:
          dy = 0;
          textVerticalAlign = 'middle';
      }
      switch (label.__position) {
        case 'end':
          label.x = d[0] * distanceX + toPos[0];
          label.y = d[1] * distanceY + toPos[1];
          textAlign = d[0] > 0.8 ? 'left' : d[0] < -0.8 ? 'right' : 'center';
          textVerticalAlign = d[1] > 0.8 ? 'top' : d[1] < -0.8 ? 'bottom' : 'middle';
          break;
        case 'start':
          label.x = -d[0] * distanceX + fromPos[0];
          label.y = -d[1] * distanceY + fromPos[1];
          textAlign = d[0] > 0.8 ? 'right' : d[0] < -0.8 ? 'left' : 'center';
          textVerticalAlign = d[1] > 0.8 ? 'bottom' : d[1] < -0.8 ? 'top' : 'middle';
          break;
        case 'insideStartTop':
        case 'insideStart':
        case 'insideStartBottom':
          label.x = distanceX * dir + fromPos[0];
          label.y = fromPos[1] + dy;
          textAlign = tangent[0] < 0 ? 'right' : 'left';
          label.originX = -distanceX * dir;
          label.originY = -dy;
          break;
        case 'insideMiddleTop':
        case 'insideMiddle':
        case 'insideMiddleBottom':
        case 'middle':
          label.x = cp[0];
          label.y = cp[1] + dy;
          textAlign = 'center';
          label.originY = -dy;
          break;
        case 'insideEndTop':
        case 'insideEnd':
        case 'insideEndBottom':
          label.x = -distanceX * dir + toPos[0];
          label.y = toPos[1] + dy;
          textAlign = tangent[0] >= 0 ? 'right' : 'left';
          label.originX = distanceX * dir;
          label.originY = -dy;
          break;
      }
      label.scaleX = label.scaleY = invScale;
      label.setStyle({
        // Use the user specified text align and baseline first
        verticalAlign: label.__verticalAlign || textVerticalAlign,
        align: label.__align || textAlign
      });
    }
  };
  return Line;
}(graphic_Group);
/* harmony default export */ var helper_Line = (helper_Line_Line);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/LineDraw.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var LineDraw_LineDraw = /** @class */function () {
  function LineDraw(LineCtor) {
    this.group = new graphic_Group();
    this._LineCtor = LineCtor || helper_Line;
  }
  LineDraw.prototype.updateData = function (lineData) {
    var _this = this;
    // Remove progressive els.
    this._progressiveEls = null;
    var lineDraw = this;
    var group = lineDraw.group;
    var oldLineData = lineDraw._lineData;
    lineDraw._lineData = lineData;
    // There is no oldLineData only when first rendering or switching from
    // stream mode to normal mode, where previous elements should be removed.
    if (!oldLineData) {
      group.removeAll();
    }
    var seriesScope = LineDraw_makeSeriesScope(lineData);
    lineData.diff(oldLineData).add(function (idx) {
      _this._doAdd(lineData, idx, seriesScope);
    }).update(function (newIdx, oldIdx) {
      _this._doUpdate(oldLineData, lineData, oldIdx, newIdx, seriesScope);
    }).remove(function (idx) {
      group.remove(oldLineData.getItemGraphicEl(idx));
    }).execute();
  };
  ;
  LineDraw.prototype.updateLayout = function () {
    var lineData = this._lineData;
    // Do not support update layout in incremental mode.
    if (!lineData) {
      return;
    }
    lineData.eachItemGraphicEl(function (el, idx) {
      el.updateLayout(lineData, idx);
    }, this);
  };
  ;
  LineDraw.prototype.incrementalPrepareUpdate = function (lineData) {
    this._seriesScope = LineDraw_makeSeriesScope(lineData);
    this._lineData = null;
    this.group.removeAll();
  };
  ;
  LineDraw.prototype.incrementalUpdate = function (taskParams, lineData) {
    this._progressiveEls = [];
    function updateIncrementalAndHover(el) {
      if (!el.isGroup && !isEffectObject(el)) {
        el.incremental = true;
        el.ensureState('emphasis').hoverLayer = true;
      }
    }
    for (var idx = taskParams.start; idx < taskParams.end; idx++) {
      var itemLayout = lineData.getItemLayout(idx);
      if (lineNeedsDraw(itemLayout)) {
        var el = new this._LineCtor(lineData, idx, this._seriesScope);
        el.traverse(updateIncrementalAndHover);
        this.group.add(el);
        lineData.setItemGraphicEl(idx, el);
        this._progressiveEls.push(el);
      }
    }
  };
  ;
  LineDraw.prototype.remove = function () {
    this.group.removeAll();
  };
  ;
  LineDraw.prototype.eachRendered = function (cb) {
    traverseElements(this._progressiveEls || this.group, cb);
  };
  LineDraw.prototype._doAdd = function (lineData, idx, seriesScope) {
    var itemLayout = lineData.getItemLayout(idx);
    if (!lineNeedsDraw(itemLayout)) {
      return;
    }
    var el = new this._LineCtor(lineData, idx, seriesScope);
    lineData.setItemGraphicEl(idx, el);
    this.group.add(el);
  };
  LineDraw.prototype._doUpdate = function (oldLineData, newLineData, oldIdx, newIdx, seriesScope) {
    var itemEl = oldLineData.getItemGraphicEl(oldIdx);
    if (!lineNeedsDraw(newLineData.getItemLayout(newIdx))) {
      this.group.remove(itemEl);
      return;
    }
    if (!itemEl) {
      itemEl = new this._LineCtor(newLineData, newIdx, seriesScope);
    } else {
      itemEl.updateData(newLineData, newIdx, seriesScope);
    }
    newLineData.setItemGraphicEl(newIdx, itemEl);
    this.group.add(itemEl);
  };
  return LineDraw;
}();
function isEffectObject(el) {
  return el.animators && el.animators.length > 0;
}
function LineDraw_makeSeriesScope(lineData) {
  var hostModel = lineData.hostModel;
  var emphasisModel = hostModel.getModel('emphasis');
  return {
    lineStyle: hostModel.getModel('lineStyle').getLineStyle(),
    emphasisLineStyle: emphasisModel.getModel(['lineStyle']).getLineStyle(),
    blurLineStyle: hostModel.getModel(['blur', 'lineStyle']).getLineStyle(),
    selectLineStyle: hostModel.getModel(['select', 'lineStyle']).getLineStyle(),
    emphasisDisabled: emphasisModel.get('disabled'),
    blurScope: emphasisModel.get('blurScope'),
    focus: emphasisModel.get('focus'),
    labelStatesModels: getLabelStatesModels(hostModel)
  };
}
function isPointNaN(pt) {
  return isNaN(pt[0]) || isNaN(pt[1]);
}
function lineNeedsDraw(pts) {
  return pts && !isPointNaN(pts[0]) && !isPointNaN(pts[1]);
}
/* harmony default export */ var helper_LineDraw = (LineDraw_LineDraw);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/adjustEdge.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var adjustEdge_v1 = [];
var adjustEdge_v2 = [];
var v3 = [];
var adjustEdge_quadraticAt = curve_quadraticAt;
var v2DistSquare = distSquare;
var adjustEdge_mathAbs = Math.abs;
function intersectCurveCircle(curvePoints, center, radius) {
  var p0 = curvePoints[0];
  var p1 = curvePoints[1];
  var p2 = curvePoints[2];
  var d = Infinity;
  var t;
  var radiusSquare = radius * radius;
  var interval = 0.1;
  for (var _t = 0.1; _t <= 0.9; _t += 0.1) {
    adjustEdge_v1[0] = adjustEdge_quadraticAt(p0[0], p1[0], p2[0], _t);
    adjustEdge_v1[1] = adjustEdge_quadraticAt(p0[1], p1[1], p2[1], _t);
    var diff = adjustEdge_mathAbs(v2DistSquare(adjustEdge_v1, center) - radiusSquare);
    if (diff < d) {
      d = diff;
      t = _t;
    }
  }
  // Assume the segment is monotone，Find root through Bisection method
  // At most 32 iteration
  for (var i = 0; i < 32; i++) {
    // let prev = t - interval;
    var next = t + interval;
    // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev);
    // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev);
    adjustEdge_v2[0] = adjustEdge_quadraticAt(p0[0], p1[0], p2[0], t);
    adjustEdge_v2[1] = adjustEdge_quadraticAt(p0[1], p1[1], p2[1], t);
    v3[0] = adjustEdge_quadraticAt(p0[0], p1[0], p2[0], next);
    v3[1] = adjustEdge_quadraticAt(p0[1], p1[1], p2[1], next);
    var diff = v2DistSquare(adjustEdge_v2, center) - radiusSquare;
    if (adjustEdge_mathAbs(diff) < 1e-2) {
      break;
    }
    // let prevDiff = v2DistSquare(v1, center) - radiusSquare;
    var nextDiff = v2DistSquare(v3, center) - radiusSquare;
    interval /= 2;
    if (diff < 0) {
      if (nextDiff >= 0) {
        t = t + interval;
      } else {
        t = t - interval;
      }
    } else {
      if (nextDiff >= 0) {
        t = t - interval;
      } else {
        t = t + interval;
      }
    }
  }
  return t;
}
// Adjust edge to avoid
function adjustEdge(graph, scale) {
  var tmp0 = [];
  var quadraticSubdivide = curve_quadraticSubdivide;
  var pts = [[], [], []];
  var pts2 = [[], []];
  var v = [];
  scale /= 2;
  graph.eachEdge(function (edge, idx) {
    var linePoints = edge.getLayout();
    var fromSymbol = edge.getVisual('fromSymbol');
    var toSymbol = edge.getVisual('toSymbol');
    if (!linePoints.__original) {
      linePoints.__original = [clone(linePoints[0]), clone(linePoints[1])];
      if (linePoints[2]) {
        linePoints.__original.push(clone(linePoints[2]));
      }
    }
    var originalPoints = linePoints.__original;
    // Quadratic curve
    if (linePoints[2] != null) {
      vector_copy(pts[0], originalPoints[0]);
      vector_copy(pts[1], originalPoints[2]);
      vector_copy(pts[2], originalPoints[1]);
      if (fromSymbol && fromSymbol !== 'none') {
        var symbolSize = getSymbolSize(edge.node1);
        var t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale);
        // Subdivide and get the second
        quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);
        pts[0][0] = tmp0[3];
        pts[1][0] = tmp0[4];
        quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);
        pts[0][1] = tmp0[3];
        pts[1][1] = tmp0[4];
      }
      if (toSymbol && toSymbol !== 'none') {
        var symbolSize = getSymbolSize(edge.node2);
        var t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale);
        // Subdivide and get the first
        quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);
        pts[1][0] = tmp0[1];
        pts[2][0] = tmp0[2];
        quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);
        pts[1][1] = tmp0[1];
        pts[2][1] = tmp0[2];
      }
      // Copy back to layout
      vector_copy(linePoints[0], pts[0]);
      vector_copy(linePoints[1], pts[2]);
      vector_copy(linePoints[2], pts[1]);
    }
    // Line
    else {
      vector_copy(pts2[0], originalPoints[0]);
      vector_copy(pts2[1], originalPoints[1]);
      sub(v, pts2[1], pts2[0]);
      normalize(v, v);
      if (fromSymbol && fromSymbol !== 'none') {
        var symbolSize = getSymbolSize(edge.node1);
        scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale);
      }
      if (toSymbol && toSymbol !== 'none') {
        var symbolSize = getSymbolSize(edge.node2);
        scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale);
      }
      vector_copy(linePoints[0], pts2[0]);
      vector_copy(linePoints[1], pts2[1]);
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/GraphView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/













function isViewCoordSys(coordSys) {
  return coordSys.type === 'view';
}
var GraphView_GraphView = /** @class */function (_super) {
  __extends(GraphView, _super);
  function GraphView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GraphView.type;
    return _this;
  }
  GraphView.prototype.init = function (ecModel, api) {
    var symbolDraw = new helper_SymbolDraw();
    var lineDraw = new helper_LineDraw();
    var group = this.group;
    this._controller = new helper_RoamController(api.getZr());
    this._controllerHost = {
      target: group
    };
    group.add(symbolDraw.group);
    group.add(lineDraw.group);
    this._symbolDraw = symbolDraw;
    this._lineDraw = lineDraw;
    this._firstRender = true;
  };
  GraphView.prototype.render = function (seriesModel, ecModel, api) {
    var _this = this;
    var coordSys = seriesModel.coordinateSystem;
    this._model = seriesModel;
    var symbolDraw = this._symbolDraw;
    var lineDraw = this._lineDraw;
    var group = this.group;
    if (isViewCoordSys(coordSys)) {
      var groupNewProp = {
        x: coordSys.x,
        y: coordSys.y,
        scaleX: coordSys.scaleX,
        scaleY: coordSys.scaleY
      };
      if (this._firstRender) {
        group.attr(groupNewProp);
      } else {
        updateProps(group, groupNewProp, seriesModel);
      }
    }
    // Fix edge contact point with node
    adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));
    var data = seriesModel.getData();
    symbolDraw.updateData(data);
    var edgeData = seriesModel.getEdgeData();
    // TODO: TYPE
    lineDraw.updateData(edgeData);
    this._updateNodeAndLinkScale();
    this._updateController(seriesModel, ecModel, api);
    clearTimeout(this._layoutTimeout);
    var forceLayout = seriesModel.forceLayout;
    var layoutAnimation = seriesModel.get(['force', 'layoutAnimation']);
    if (forceLayout) {
      this._startForceLayoutIteration(forceLayout, layoutAnimation);
    }
    var layout = seriesModel.get('layout');
    data.graph.eachNode(function (node) {
      var idx = node.dataIndex;
      var el = node.getGraphicEl();
      var itemModel = node.getModel();
      if (!el) {
        return;
      }
      // Update draggable
      el.off('drag').off('dragend');
      var draggable = itemModel.get('draggable');
      if (draggable) {
        el.on('drag', function (e) {
          switch (layout) {
            case 'force':
              forceLayout.warmUp();
              !_this._layouting && _this._startForceLayoutIteration(forceLayout, layoutAnimation);
              forceLayout.setFixed(idx);
              // Write position back to layout
              data.setItemLayout(idx, [el.x, el.y]);
              break;
            case 'circular':
              data.setItemLayout(idx, [el.x, el.y]);
              // mark node fixed
              node.setLayout({
                fixed: true
              }, true);
              // recalculate circular layout
              circularLayout(seriesModel, 'symbolSize', node, [e.offsetX, e.offsetY]);
              _this.updateLayout(seriesModel);
              break;
            case 'none':
            default:
              data.setItemLayout(idx, [el.x, el.y]);
              // update edge
              simpleLayoutEdge(seriesModel.getGraph(), seriesModel);
              _this.updateLayout(seriesModel);
              break;
          }
        }).on('dragend', function () {
          if (forceLayout) {
            forceLayout.setUnfixed(idx);
          }
        });
      }
      el.setDraggable(draggable, !!itemModel.get('cursor'));
      var focus = itemModel.get(['emphasis', 'focus']);
      if (focus === 'adjacency') {
        getECData(el).focus = node.getAdjacentDataIndices();
      }
    });
    data.graph.eachEdge(function (edge) {
      var el = edge.getGraphicEl();
      var focus = edge.getModel().get(['emphasis', 'focus']);
      if (!el) {
        return;
      }
      if (focus === 'adjacency') {
        getECData(el).focus = {
          edge: [edge.dataIndex],
          node: [edge.node1.dataIndex, edge.node2.dataIndex]
        };
      }
    });
    var circularRotateLabel = seriesModel.get('layout') === 'circular' && seriesModel.get(['circular', 'rotateLabel']);
    var cx = data.getLayout('cx');
    var cy = data.getLayout('cy');
    data.graph.eachNode(function (node) {
      rotateNodeLabel(node, circularRotateLabel, cx, cy);
    });
    this._firstRender = false;
  };
  GraphView.prototype.dispose = function () {
    this.remove();
    this._controller && this._controller.dispose();
    this._controllerHost = null;
  };
  GraphView.prototype._startForceLayoutIteration = function (forceLayout, layoutAnimation) {
    var self = this;
    (function step() {
      forceLayout.step(function (stopped) {
        self.updateLayout(self._model);
        (self._layouting = !stopped) && (layoutAnimation ? self._layoutTimeout = setTimeout(step, 16) : step());
      });
    })();
  };
  GraphView.prototype._updateController = function (seriesModel, ecModel, api) {
    var _this = this;
    var controller = this._controller;
    var controllerHost = this._controllerHost;
    var group = this.group;
    controller.setPointerChecker(function (e, x, y) {
      var rect = group.getBoundingRect();
      rect.applyTransform(group.transform);
      return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel);
    });
    if (!isViewCoordSys(seriesModel.coordinateSystem)) {
      controller.disable();
      return;
    }
    controller.enable(seriesModel.get('roam'));
    controllerHost.zoomLimit = seriesModel.get('scaleLimit');
    controllerHost.zoom = seriesModel.coordinateSystem.getZoom();
    controller.off('pan').off('zoom').on('pan', function (e) {
      updateViewOnPan(controllerHost, e.dx, e.dy);
      api.dispatchAction({
        seriesId: seriesModel.id,
        type: 'graphRoam',
        dx: e.dx,
        dy: e.dy
      });
    }).on('zoom', function (e) {
      updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);
      api.dispatchAction({
        seriesId: seriesModel.id,
        type: 'graphRoam',
        zoom: e.scale,
        originX: e.originX,
        originY: e.originY
      });
      _this._updateNodeAndLinkScale();
      adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));
      _this._lineDraw.updateLayout();
      // Only update label layout on zoom
      api.updateLabelLayout();
    });
  };
  GraphView.prototype._updateNodeAndLinkScale = function () {
    var seriesModel = this._model;
    var data = seriesModel.getData();
    var nodeScale = getNodeGlobalScale(seriesModel);
    data.eachItemGraphicEl(function (el, idx) {
      el && el.setSymbolScale(nodeScale);
    });
  };
  GraphView.prototype.updateLayout = function (seriesModel) {
    adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));
    this._symbolDraw.updateLayout();
    this._lineDraw.updateLayout();
  };
  GraphView.prototype.remove = function () {
    clearTimeout(this._layoutTimeout);
    this._layouting = false;
    this._layoutTimeout = null;
    this._symbolDraw && this._symbolDraw.remove();
    this._lineDraw && this._lineDraw.remove();
  };
  GraphView.type = 'graph';
  return GraphView;
}(Chart);
/* harmony default export */ var graph_GraphView = (GraphView_GraphView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/Graph.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// id may be function name of Object, add a prefix to avoid this problem.
function generateNodeKey(id) {
  return '_EC_' + id;
}
var Graph_Graph = /** @class */function () {
  function Graph(directed) {
    this.type = 'graph';
    this.nodes = [];
    this.edges = [];
    this._nodesMap = {};
    /**
     * @type {Object.<string, module:echarts/data/Graph.Edge>}
     * @private
     */
    this._edgesMap = {};
    this._directed = directed || false;
  }
  /**
   * If is directed graph
   */
  Graph.prototype.isDirected = function () {
    return this._directed;
  };
  ;
  /**
   * Add a new node
   */
  Graph.prototype.addNode = function (id, dataIndex) {
    id = id == null ? '' + dataIndex : '' + id;
    var nodesMap = this._nodesMap;
    if (nodesMap[generateNodeKey(id)]) {
      if (false) {}
      return;
    }
    var node = new Graph_GraphNode(id, dataIndex);
    node.hostGraph = this;
    this.nodes.push(node);
    nodesMap[generateNodeKey(id)] = node;
    return node;
  };
  ;
  /**
   * Get node by data index
   */
  Graph.prototype.getNodeByIndex = function (dataIndex) {
    var rawIdx = this.data.getRawIndex(dataIndex);
    return this.nodes[rawIdx];
  };
  ;
  /**
   * Get node by id
   */
  Graph.prototype.getNodeById = function (id) {
    return this._nodesMap[generateNodeKey(id)];
  };
  ;
  /**
   * Add a new edge
   */
  Graph.prototype.addEdge = function (n1, n2, dataIndex) {
    var nodesMap = this._nodesMap;
    var edgesMap = this._edgesMap;
    // PENDING
    if (util["isNumber"](n1)) {
      n1 = this.nodes[n1];
    }
    if (util["isNumber"](n2)) {
      n2 = this.nodes[n2];
    }
    if (!(n1 instanceof Graph_GraphNode)) {
      n1 = nodesMap[generateNodeKey(n1)];
    }
    if (!(n2 instanceof Graph_GraphNode)) {
      n2 = nodesMap[generateNodeKey(n2)];
    }
    if (!n1 || !n2) {
      return;
    }
    var key = n1.id + '-' + n2.id;
    var edge = new Graph_GraphEdge(n1, n2, dataIndex);
    edge.hostGraph = this;
    if (this._directed) {
      n1.outEdges.push(edge);
      n2.inEdges.push(edge);
    }
    n1.edges.push(edge);
    if (n1 !== n2) {
      n2.edges.push(edge);
    }
    this.edges.push(edge);
    edgesMap[key] = edge;
    return edge;
  };
  ;
  /**
   * Get edge by data index
   */
  Graph.prototype.getEdgeByIndex = function (dataIndex) {
    var rawIdx = this.edgeData.getRawIndex(dataIndex);
    return this.edges[rawIdx];
  };
  ;
  /**
   * Get edge by two linked nodes
   */
  Graph.prototype.getEdge = function (n1, n2) {
    if (n1 instanceof Graph_GraphNode) {
      n1 = n1.id;
    }
    if (n2 instanceof Graph_GraphNode) {
      n2 = n2.id;
    }
    var edgesMap = this._edgesMap;
    if (this._directed) {
      return edgesMap[n1 + '-' + n2];
    } else {
      return edgesMap[n1 + '-' + n2] || edgesMap[n2 + '-' + n1];
    }
  };
  ;
  /**
   * Iterate all nodes
   */
  Graph.prototype.eachNode = function (cb, context) {
    var nodes = this.nodes;
    var len = nodes.length;
    for (var i = 0; i < len; i++) {
      if (nodes[i].dataIndex >= 0) {
        cb.call(context, nodes[i], i);
      }
    }
  };
  ;
  /**
   * Iterate all edges
   */
  Graph.prototype.eachEdge = function (cb, context) {
    var edges = this.edges;
    var len = edges.length;
    for (var i = 0; i < len; i++) {
      if (edges[i].dataIndex >= 0 && edges[i].node1.dataIndex >= 0 && edges[i].node2.dataIndex >= 0) {
        cb.call(context, edges[i], i);
      }
    }
  };
  ;
  /**
   * Breadth first traverse
   * Return true to stop traversing
   */
  Graph.prototype.breadthFirstTraverse = function (cb, startNode, direction, context) {
    if (!(startNode instanceof Graph_GraphNode)) {
      startNode = this._nodesMap[generateNodeKey(startNode)];
    }
    if (!startNode) {
      return;
    }
    var edgeType = direction === 'out' ? 'outEdges' : direction === 'in' ? 'inEdges' : 'edges';
    for (var i = 0; i < this.nodes.length; i++) {
      this.nodes[i].__visited = false;
    }
    if (cb.call(context, startNode, null)) {
      return;
    }
    var queue = [startNode];
    while (queue.length) {
      var currentNode = queue.shift();
      var edges = currentNode[edgeType];
      for (var i = 0; i < edges.length; i++) {
        var e = edges[i];
        var otherNode = e.node1 === currentNode ? e.node2 : e.node1;
        if (!otherNode.__visited) {
          if (cb.call(context, otherNode, currentNode)) {
            // Stop traversing
            return;
          }
          queue.push(otherNode);
          otherNode.__visited = true;
        }
      }
    }
  };
  ;
  // TODO
  // depthFirstTraverse(
  //     cb, startNode, direction, context
  // ) {
  // };
  // Filter update
  Graph.prototype.update = function () {
    var data = this.data;
    var edgeData = this.edgeData;
    var nodes = this.nodes;
    var edges = this.edges;
    for (var i = 0, len = nodes.length; i < len; i++) {
      nodes[i].dataIndex = -1;
    }
    for (var i = 0, len = data.count(); i < len; i++) {
      nodes[data.getRawIndex(i)].dataIndex = i;
    }
    edgeData.filterSelf(function (idx) {
      var edge = edges[edgeData.getRawIndex(idx)];
      return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0;
    });
    // Update edge
    for (var i = 0, len = edges.length; i < len; i++) {
      edges[i].dataIndex = -1;
    }
    for (var i = 0, len = edgeData.count(); i < len; i++) {
      edges[edgeData.getRawIndex(i)].dataIndex = i;
    }
  };
  ;
  /**
   * @return {module:echarts/data/Graph}
   */
  Graph.prototype.clone = function () {
    var graph = new Graph(this._directed);
    var nodes = this.nodes;
    var edges = this.edges;
    for (var i = 0; i < nodes.length; i++) {
      graph.addNode(nodes[i].id, nodes[i].dataIndex);
    }
    for (var i = 0; i < edges.length; i++) {
      var e = edges[i];
      graph.addEdge(e.node1.id, e.node2.id, e.dataIndex);
    }
    return graph;
  };
  ;
  return Graph;
}();
var Graph_GraphNode = /** @class */function () {
  function GraphNode(id, dataIndex) {
    this.inEdges = [];
    this.outEdges = [];
    this.edges = [];
    this.dataIndex = -1;
    this.id = id == null ? '' : id;
    this.dataIndex = dataIndex == null ? -1 : dataIndex;
  }
  /**
   * @return {number}
   */
  GraphNode.prototype.degree = function () {
    return this.edges.length;
  };
  /**
   * @return {number}
   */
  GraphNode.prototype.inDegree = function () {
    return this.inEdges.length;
  };
  /**
  * @return {number}
  */
  GraphNode.prototype.outDegree = function () {
    return this.outEdges.length;
  };
  GraphNode.prototype.getModel = function (path) {
    if (this.dataIndex < 0) {
      return;
    }
    var graph = this.hostGraph;
    var itemModel = graph.data.getItemModel(this.dataIndex);
    return itemModel.getModel(path);
  };
  GraphNode.prototype.getAdjacentDataIndices = function () {
    var dataIndices = {
      edge: [],
      node: []
    };
    for (var i = 0; i < this.edges.length; i++) {
      var adjacentEdge = this.edges[i];
      if (adjacentEdge.dataIndex < 0) {
        continue;
      }
      dataIndices.edge.push(adjacentEdge.dataIndex);
      dataIndices.node.push(adjacentEdge.node1.dataIndex, adjacentEdge.node2.dataIndex);
    }
    return dataIndices;
  };
  GraphNode.prototype.getTrajectoryDataIndices = function () {
    var connectedEdgesMap = util["createHashMap"]();
    var connectedNodesMap = util["createHashMap"]();
    for (var i = 0; i < this.edges.length; i++) {
      var adjacentEdge = this.edges[i];
      if (adjacentEdge.dataIndex < 0) {
        continue;
      }
      connectedEdgesMap.set(adjacentEdge.dataIndex, true);
      var sourceNodesQueue = [adjacentEdge.node1];
      var targetNodesQueue = [adjacentEdge.node2];
      var nodeIteratorIndex = 0;
      while (nodeIteratorIndex < sourceNodesQueue.length) {
        var sourceNode = sourceNodesQueue[nodeIteratorIndex];
        nodeIteratorIndex++;
        connectedNodesMap.set(sourceNode.dataIndex, true);
        for (var j = 0; j < sourceNode.inEdges.length; j++) {
          connectedEdgesMap.set(sourceNode.inEdges[j].dataIndex, true);
          sourceNodesQueue.push(sourceNode.inEdges[j].node1);
        }
      }
      nodeIteratorIndex = 0;
      while (nodeIteratorIndex < targetNodesQueue.length) {
        var targetNode = targetNodesQueue[nodeIteratorIndex];
        nodeIteratorIndex++;
        connectedNodesMap.set(targetNode.dataIndex, true);
        for (var j = 0; j < targetNode.outEdges.length; j++) {
          connectedEdgesMap.set(targetNode.outEdges[j].dataIndex, true);
          targetNodesQueue.push(targetNode.outEdges[j].node2);
        }
      }
    }
    return {
      edge: connectedEdgesMap.keys(),
      node: connectedNodesMap.keys()
    };
  };
  return GraphNode;
}();
var Graph_GraphEdge = /** @class */function () {
  function GraphEdge(n1, n2, dataIndex) {
    this.dataIndex = -1;
    this.node1 = n1;
    this.node2 = n2;
    this.dataIndex = dataIndex == null ? -1 : dataIndex;
  }
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  GraphEdge.prototype.getModel = function (path) {
    if (this.dataIndex < 0) {
      return;
    }
    var graph = this.hostGraph;
    var itemModel = graph.edgeData.getItemModel(this.dataIndex);
    return itemModel.getModel(path);
  };
  GraphEdge.prototype.getAdjacentDataIndices = function () {
    return {
      edge: [this.dataIndex],
      node: [this.node1.dataIndex, this.node2.dataIndex]
    };
  };
  GraphEdge.prototype.getTrajectoryDataIndices = function () {
    var connectedEdgesMap = util["createHashMap"]();
    var connectedNodesMap = util["createHashMap"]();
    connectedEdgesMap.set(this.dataIndex, true);
    var sourceNodes = [this.node1];
    var targetNodes = [this.node2];
    var nodeIteratorIndex = 0;
    while (nodeIteratorIndex < sourceNodes.length) {
      var sourceNode = sourceNodes[nodeIteratorIndex];
      nodeIteratorIndex++;
      connectedNodesMap.set(sourceNode.dataIndex, true);
      for (var j = 0; j < sourceNode.inEdges.length; j++) {
        connectedEdgesMap.set(sourceNode.inEdges[j].dataIndex, true);
        sourceNodes.push(sourceNode.inEdges[j].node1);
      }
    }
    nodeIteratorIndex = 0;
    while (nodeIteratorIndex < targetNodes.length) {
      var targetNode = targetNodes[nodeIteratorIndex];
      nodeIteratorIndex++;
      connectedNodesMap.set(targetNode.dataIndex, true);
      for (var j = 0; j < targetNode.outEdges.length; j++) {
        connectedEdgesMap.set(targetNode.outEdges[j].dataIndex, true);
        targetNodes.push(targetNode.outEdges[j].node2);
      }
    }
    return {
      edge: connectedEdgesMap.keys(),
      node: connectedNodesMap.keys()
    };
  };
  return GraphEdge;
}();
function createGraphDataProxyMixin(hostName, dataName) {
  return {
    /**
     * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.
     */
    getValue: function (dimension) {
      var data = this[hostName][dataName];
      return data.getStore().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex);
    },
    // TODO: TYPE stricter type.
    setVisual: function (key, value) {
      this.dataIndex >= 0 && this[hostName][dataName].setItemVisual(this.dataIndex, key, value);
    },
    getVisual: function (key) {
      return this[hostName][dataName].getItemVisual(this.dataIndex, key);
    },
    setLayout: function (layout, merge) {
      this.dataIndex >= 0 && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge);
    },
    getLayout: function () {
      return this[hostName][dataName].getItemLayout(this.dataIndex);
    },
    getGraphicEl: function () {
      return this[hostName][dataName].getItemGraphicEl(this.dataIndex);
    },
    getRawIndex: function () {
      return this[hostName][dataName].getRawIndex(this.dataIndex);
    }
  };
}
;
;
;
util["mixin"](Graph_GraphNode, createGraphDataProxyMixin('hostGraph', 'data'));
util["mixin"](Graph_GraphEdge, createGraphDataProxyMixin('hostGraph', 'edgeData'));
/* harmony default export */ var data_Graph = (Graph_Graph);

// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








function createGraphFromNodeEdge(nodes, edges, seriesModel, directed, beforeLink) {
  // ??? TODO
  // support dataset?
  var graph = new data_Graph(directed);
  for (var i = 0; i < nodes.length; i++) {
    graph.addNode(util["retrieve"](
    // Id, name, dataIndex
    nodes[i].id, nodes[i].name, i), i);
  }
  var linkNameList = [];
  var validEdges = [];
  var linkCount = 0;
  for (var i = 0; i < edges.length; i++) {
    var link = edges[i];
    var source = link.source;
    var target = link.target;
    // addEdge may fail when source or target not exists
    if (graph.addEdge(source, target, linkCount)) {
      validEdges.push(link);
      linkNameList.push(util["retrieve"](convertOptionIdName(link.id, null), source + ' > ' + target));
      linkCount++;
    }
  }
  var coordSys = seriesModel.get('coordinateSystem');
  var nodeData;
  if (coordSys === 'cartesian2d' || coordSys === 'polar') {
    nodeData = helper_createSeriesData(nodes, seriesModel);
  } else {
    var coordSysCtor = CoordinateSystem.get(coordSys);
    var coordDimensions = coordSysCtor ? coordSysCtor.dimensions || [] : [];
    // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs
    // `value` dimension, but graph need `value` dimension. It's better to
    // uniform this behavior.
    if (util["indexOf"](coordDimensions, 'value') < 0) {
      coordDimensions.concat(['value']);
    }
    var dimensions = prepareSeriesDataSchema(nodes, {
      coordDimensions: coordDimensions,
      encodeDefine: seriesModel.getEncode()
    }).dimensions;
    nodeData = new data_SeriesData(dimensions, seriesModel);
    nodeData.initData(nodes);
  }
  var edgeData = new data_SeriesData(['value'], seriesModel);
  edgeData.initData(validEdges, linkNameList);
  beforeLink && beforeLink(nodeData, edgeData);
  helper_linkSeriesData({
    mainData: nodeData,
    struct: graph,
    structAttr: 'graph',
    datas: {
      node: nodeData,
      edge: edgeData
    },
    datasAttr: {
      node: 'data',
      edge: 'edgeData'
    }
  });
  // Update dataIndex of nodes and edges because invalid edge may be removed
  graph.update();
  return graph;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/GraphSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/











var GraphSeries_GraphSeriesModel = /** @class */function (_super) {
  __extends(GraphSeriesModel, _super);
  function GraphSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GraphSeriesModel.type;
    _this.hasSymbolVisual = true;
    return _this;
  }
  GraphSeriesModel.prototype.init = function (option) {
    _super.prototype.init.apply(this, arguments);
    var self = this;
    function getCategoriesData() {
      return self._categoriesData;
    }
    // Provide data for legend select
    this.legendVisualProvider = new visual_LegendVisualProvider(getCategoriesData, getCategoriesData);
    this.fillDataTextStyle(option.edges || option.links);
    this._updateCategoriesData();
  };
  GraphSeriesModel.prototype.mergeOption = function (option) {
    _super.prototype.mergeOption.apply(this, arguments);
    this.fillDataTextStyle(option.edges || option.links);
    this._updateCategoriesData();
  };
  GraphSeriesModel.prototype.mergeDefaultAndTheme = function (option) {
    _super.prototype.mergeDefaultAndTheme.apply(this, arguments);
    defaultEmphasis(option, 'edgeLabel', ['show']);
  };
  GraphSeriesModel.prototype.getInitialData = function (option, ecModel) {
    var edges = option.edges || option.links || [];
    var nodes = option.data || option.nodes || [];
    var self = this;
    if (nodes && edges) {
      // auto curveness
      initCurvenessList(this);
      var graph = createGraphFromNodeEdge(nodes, edges, this, true, beforeLink);
      util["each"](graph.edges, function (edge) {
        createEdgeMapForCurveness(edge.node1, edge.node2, this, edge.dataIndex);
      }, this);
      return graph.data;
    }
    function beforeLink(nodeData, edgeData) {
      // Overwrite nodeData.getItemModel to
      nodeData.wrapMethod('getItemModel', function (model) {
        var categoriesModels = self._categoriesModels;
        var categoryIdx = model.getShallow('category');
        var categoryModel = categoriesModels[categoryIdx];
        if (categoryModel) {
          categoryModel.parentModel = model.parentModel;
          model.parentModel = categoryModel;
        }
        return model;
      });
      // TODO Inherit resolveParentPath by default in Model#getModel?
      var oldGetModel = model_Model.prototype.getModel;
      function newGetModel(path, parentModel) {
        var model = oldGetModel.call(this, path, parentModel);
        model.resolveParentPath = resolveParentPath;
        return model;
      }
      edgeData.wrapMethod('getItemModel', function (model) {
        model.resolveParentPath = resolveParentPath;
        model.getModel = newGetModel;
        return model;
      });
      function resolveParentPath(pathArr) {
        if (pathArr && (pathArr[0] === 'label' || pathArr[1] === 'label')) {
          var newPathArr = pathArr.slice();
          if (pathArr[0] === 'label') {
            newPathArr[0] = 'edgeLabel';
          } else if (pathArr[1] === 'label') {
            newPathArr[1] = 'edgeLabel';
          }
          return newPathArr;
        }
        return pathArr;
      }
    }
  };
  GraphSeriesModel.prototype.getGraph = function () {
    return this.getData().graph;
  };
  GraphSeriesModel.prototype.getEdgeData = function () {
    return this.getGraph().edgeData;
  };
  GraphSeriesModel.prototype.getCategoriesData = function () {
    return this._categoriesData;
  };
  GraphSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    if (dataType === 'edge') {
      var nodeData = this.getData();
      var params = this.getDataParams(dataIndex, dataType);
      var edge = nodeData.graph.getEdgeByIndex(dataIndex);
      var sourceName = nodeData.getName(edge.node1.dataIndex);
      var targetName = nodeData.getName(edge.node2.dataIndex);
      var nameArr = [];
      sourceName != null && nameArr.push(sourceName);
      targetName != null && nameArr.push(targetName);
      return createTooltipMarkup('nameValue', {
        name: nameArr.join(' > '),
        value: params.value,
        noValue: params.value == null
      });
    }
    // dataType === 'node' or empty
    var nodeMarkup = defaultSeriesFormatTooltip({
      series: this,
      dataIndex: dataIndex,
      multipleSeries: multipleSeries
    });
    return nodeMarkup;
  };
  GraphSeriesModel.prototype._updateCategoriesData = function () {
    var categories = util["map"](this.option.categories || [], function (category) {
      // Data must has value
      return category.value != null ? category : util["extend"]({
        value: 0
      }, category);
    });
    var categoriesData = new data_SeriesData(['value'], this);
    categoriesData.initData(categories);
    this._categoriesData = categoriesData;
    this._categoriesModels = categoriesData.mapArray(function (idx) {
      return categoriesData.getItemModel(idx);
    });
  };
  GraphSeriesModel.prototype.setZoom = function (zoom) {
    this.option.zoom = zoom;
  };
  GraphSeriesModel.prototype.setCenter = function (center) {
    this.option.center = center;
  };
  GraphSeriesModel.prototype.isAnimationEnabled = function () {
    return _super.prototype.isAnimationEnabled.call(this)
    // Not enable animation when do force layout
    && !(this.get('layout') === 'force' && this.get(['force', 'layoutAnimation']));
  };
  GraphSeriesModel.type = 'series.graph';
  GraphSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];
  GraphSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    coordinateSystem: 'view',
    // Default option for all coordinate systems
    // xAxisIndex: 0,
    // yAxisIndex: 0,
    // polarIndex: 0,
    // geoIndex: 0,
    legendHoverLink: true,
    layout: null,
    // Configuration of circular layout
    circular: {
      rotateLabel: false
    },
    // Configuration of force directed layout
    force: {
      initLayout: null,
      // Node repulsion. Can be an array to represent range.
      repulsion: [0, 50],
      gravity: 0.1,
      // Initial friction
      friction: 0.6,
      // Edge length. Can be an array to represent range.
      edgeLength: 30,
      layoutAnimation: true
    },
    left: 'center',
    top: 'center',
    // right: null,
    // bottom: null,
    // width: '80%',
    // height: '80%',
    symbol: 'circle',
    symbolSize: 10,
    edgeSymbol: ['none', 'none'],
    edgeSymbolSize: 10,
    edgeLabel: {
      position: 'middle',
      distance: 5
    },
    draggable: false,
    roam: false,
    // Default on center of graph
    center: null,
    zoom: 1,
    // Symbol size scale ratio in roam
    nodeScaleRatio: 0.6,
    // cursor: null,
    // categories: [],
    // data: []
    // Or
    // nodes: []
    //
    // links: []
    // Or
    // edges: []
    label: {
      show: false,
      formatter: '{b}'
    },
    itemStyle: {},
    lineStyle: {
      color: '#aaa',
      width: 1,
      opacity: 0.5
    },
    emphasis: {
      scale: true,
      label: {
        show: true
      }
    },
    select: {
      itemStyle: {
        borderColor: '#212121'
      }
    }
  };
  return GraphSeriesModel;
}(Series);
/* harmony default export */ var GraphSeries = (GraphSeries_GraphSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/












var install_actionInfo = {
  type: 'graphRoam',
  event: 'graphRoam',
  update: 'none'
};
function graph_install_install(registers) {
  registers.registerChartView(graph_GraphView);
  registers.registerSeriesModel(GraphSeries);
  registers.registerProcessor(categoryFilter);
  registers.registerVisual(categoryVisual);
  registers.registerVisual(graphEdgeVisual);
  registers.registerLayout(graphSimpleLayout);
  registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, graphCircularLayout);
  registers.registerLayout(graphForceLayout);
  registers.registerCoordinateSystem('graphView', {
    dimensions: coord_View.dimensions,
    create: createViewCoordSys
  });
  // Register legacy focus actions
  registers.registerAction({
    type: 'focusNodeAdjacency',
    event: 'focusNodeAdjacency',
    update: 'series:focusNodeAdjacency'
  }, util["noop"]);
  registers.registerAction({
    type: 'unfocusNodeAdjacency',
    event: 'unfocusNodeAdjacency',
    update: 'series:unfocusNodeAdjacency'
  }, util["noop"]);
  // Register roam action.
  registers.registerAction(install_actionInfo, function (payload, ecModel, api) {
    ecModel.eachComponent({
      mainType: 'series',
      query: payload
    }, function (seriesModel) {
      var coordSys = seriesModel.coordinateSystem;
      var res = updateCenterAndZoom(coordSys, payload, undefined, api);
      seriesModel.setCenter && seriesModel.setCenter(res.center);
      seriesModel.setZoom && seriesModel.setZoom(res.zoom);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/gauge/PointerPath.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var PointerShape = /** @class */function () {
  function PointerShape() {
    this.angle = 0;
    this.width = 10;
    this.r = 10;
    this.x = 0;
    this.y = 0;
  }
  return PointerShape;
}();
var PointerPath_PointerPath = /** @class */function (_super) {
  __extends(PointerPath, _super);
  function PointerPath(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'pointer';
    return _this;
  }
  PointerPath.prototype.getDefaultShape = function () {
    return new PointerShape();
  };
  PointerPath.prototype.buildPath = function (ctx, shape) {
    var mathCos = Math.cos;
    var mathSin = Math.sin;
    var r = shape.r;
    var width = shape.width;
    var angle = shape.angle;
    var x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2);
    var y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2);
    angle = shape.angle - Math.PI / 2;
    ctx.moveTo(x, y);
    ctx.lineTo(shape.x + mathCos(angle) * width, shape.y + mathSin(angle) * width);
    ctx.lineTo(shape.x + mathCos(shape.angle) * r, shape.y + mathSin(shape.angle) * r);
    ctx.lineTo(shape.x - mathCos(angle) * width, shape.y - mathSin(angle) * width);
    ctx.lineTo(x, y);
  };
  return PointerPath;
}(graphic_Path);
/* harmony default export */ var gauge_PointerPath = (PointerPath_PointerPath);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/gauge/GaugeView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/













function parsePosition(seriesModel, api) {
  var center = seriesModel.get('center');
  var width = api.getWidth();
  var height = api.getHeight();
  var size = Math.min(width, height);
  var cx = number_parsePercent(center[0], api.getWidth());
  var cy = number_parsePercent(center[1], api.getHeight());
  var r = number_parsePercent(seriesModel.get('radius'), size / 2);
  return {
    cx: cx,
    cy: cy,
    r: r
  };
}
function formatLabel(value, labelFormatter) {
  var label = value == null ? '' : value + '';
  if (labelFormatter) {
    if (Object(util["isString"])(labelFormatter)) {
      label = labelFormatter.replace('{value}', label);
    } else if (Object(util["isFunction"])(labelFormatter)) {
      label = labelFormatter(value);
    }
  }
  return label;
}
var GaugeView_GaugeView = /** @class */function (_super) {
  __extends(GaugeView, _super);
  function GaugeView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GaugeView.type;
    return _this;
  }
  GaugeView.prototype.render = function (seriesModel, ecModel, api) {
    this.group.removeAll();
    var colorList = seriesModel.get(['axisLine', 'lineStyle', 'color']);
    var posInfo = parsePosition(seriesModel, api);
    this._renderMain(seriesModel, ecModel, api, colorList, posInfo);
    this._data = seriesModel.getData();
  };
  GaugeView.prototype.dispose = function () {};
  GaugeView.prototype._renderMain = function (seriesModel, ecModel, api, colorList, posInfo) {
    var group = this.group;
    var clockwise = seriesModel.get('clockwise');
    var startAngle = -seriesModel.get('startAngle') / 180 * Math.PI;
    var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;
    var axisLineModel = seriesModel.getModel('axisLine');
    var roundCap = axisLineModel.get('roundCap');
    var MainPath = roundCap ? sausage : shape_Sector;
    var showAxis = axisLineModel.get('show');
    var lineStyleModel = axisLineModel.getModel('lineStyle');
    var axisLineWidth = lineStyleModel.get('width');
    var angles = [startAngle, endAngle];
    normalizeArcAngles(angles, !clockwise);
    startAngle = angles[0];
    endAngle = angles[1];
    var angleRangeSpan = endAngle - startAngle;
    var prevEndAngle = startAngle;
    var sectors = [];
    for (var i = 0; showAxis && i < colorList.length; i++) {
      // Clamp
      var percent = Math.min(Math.max(colorList[i][0], 0), 1);
      endAngle = startAngle + angleRangeSpan * percent;
      var sector = new MainPath({
        shape: {
          startAngle: prevEndAngle,
          endAngle: endAngle,
          cx: posInfo.cx,
          cy: posInfo.cy,
          clockwise: clockwise,
          r0: posInfo.r - axisLineWidth,
          r: posInfo.r
        },
        silent: true
      });
      sector.setStyle({
        fill: colorList[i][1]
      });
      sector.setStyle(lineStyleModel.getLineStyle(
      // Because we use sector to simulate arc
      // so the properties for stroking are useless
      ['color', 'width']));
      sectors.push(sector);
      prevEndAngle = endAngle;
    }
    sectors.reverse();
    Object(util["each"])(sectors, function (sector) {
      return group.add(sector);
    });
    var getColor = function (percent) {
      // Less than 0
      if (percent <= 0) {
        return colorList[0][1];
      }
      var i;
      for (i = 0; i < colorList.length; i++) {
        if (colorList[i][0] >= percent && (i === 0 ? 0 : colorList[i - 1][0]) < percent) {
          return colorList[i][1];
        }
      }
      // More than 1
      return colorList[i - 1][1];
    };
    this._renderTicks(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth);
    this._renderTitleAndDetail(seriesModel, ecModel, api, getColor, posInfo);
    this._renderAnchor(seriesModel, posInfo);
    this._renderPointer(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth);
  };
  GaugeView.prototype._renderTicks = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) {
    var group = this.group;
    var cx = posInfo.cx;
    var cy = posInfo.cy;
    var r = posInfo.r;
    var minVal = +seriesModel.get('min');
    var maxVal = +seriesModel.get('max');
    var splitLineModel = seriesModel.getModel('splitLine');
    var tickModel = seriesModel.getModel('axisTick');
    var labelModel = seriesModel.getModel('axisLabel');
    var splitNumber = seriesModel.get('splitNumber');
    var subSplitNumber = tickModel.get('splitNumber');
    var splitLineLen = number_parsePercent(splitLineModel.get('length'), r);
    var tickLen = number_parsePercent(tickModel.get('length'), r);
    var angle = startAngle;
    var step = (endAngle - startAngle) / splitNumber;
    var subStep = step / subSplitNumber;
    var splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle();
    var tickLineStyle = tickModel.getModel('lineStyle').getLineStyle();
    var splitLineDistance = splitLineModel.get('distance');
    var unitX;
    var unitY;
    for (var i = 0; i <= splitNumber; i++) {
      unitX = Math.cos(angle);
      unitY = Math.sin(angle);
      // Split line
      if (splitLineModel.get('show')) {
        var distance = splitLineDistance ? splitLineDistance + axisLineWidth : axisLineWidth;
        var splitLine = new shape_Line({
          shape: {
            x1: unitX * (r - distance) + cx,
            y1: unitY * (r - distance) + cy,
            x2: unitX * (r - splitLineLen - distance) + cx,
            y2: unitY * (r - splitLineLen - distance) + cy
          },
          style: splitLineStyle,
          silent: true
        });
        if (splitLineStyle.stroke === 'auto') {
          splitLine.setStyle({
            stroke: getColor(i / splitNumber)
          });
        }
        group.add(splitLine);
      }
      // Label
      if (labelModel.get('show')) {
        var distance = labelModel.get('distance') + splitLineDistance;
        var label = formatLabel(round(i / splitNumber * (maxVal - minVal) + minVal), labelModel.get('formatter'));
        var autoColor = getColor(i / splitNumber);
        var textStyleX = unitX * (r - splitLineLen - distance) + cx;
        var textStyleY = unitY * (r - splitLineLen - distance) + cy;
        var rotateType = labelModel.get('rotate');
        var rotate = 0;
        if (rotateType === 'radial') {
          rotate = -angle + 2 * Math.PI;
          if (rotate > Math.PI / 2) {
            rotate += Math.PI;
          }
        } else if (rotateType === 'tangential') {
          rotate = -angle - Math.PI / 2;
        } else if (Object(util["isNumber"])(rotateType)) {
          rotate = rotateType * Math.PI / 180;
        }
        if (rotate === 0) {
          group.add(new Text({
            style: createTextStyle(labelModel, {
              text: label,
              x: textStyleX,
              y: textStyleY,
              verticalAlign: unitY < -0.8 ? 'top' : unitY > 0.8 ? 'bottom' : 'middle',
              align: unitX < -0.4 ? 'left' : unitX > 0.4 ? 'right' : 'center'
            }, {
              inheritColor: autoColor
            }),
            silent: true
          }));
        } else {
          group.add(new Text({
            style: createTextStyle(labelModel, {
              text: label,
              x: textStyleX,
              y: textStyleY,
              verticalAlign: 'middle',
              align: 'center'
            }, {
              inheritColor: autoColor
            }),
            silent: true,
            originX: textStyleX,
            originY: textStyleY,
            rotation: rotate
          }));
        }
      }
      // Axis tick
      if (tickModel.get('show') && i !== splitNumber) {
        var distance = tickModel.get('distance');
        distance = distance ? distance + axisLineWidth : axisLineWidth;
        for (var j = 0; j <= subSplitNumber; j++) {
          unitX = Math.cos(angle);
          unitY = Math.sin(angle);
          var tickLine = new shape_Line({
            shape: {
              x1: unitX * (r - distance) + cx,
              y1: unitY * (r - distance) + cy,
              x2: unitX * (r - tickLen - distance) + cx,
              y2: unitY * (r - tickLen - distance) + cy
            },
            silent: true,
            style: tickLineStyle
          });
          if (tickLineStyle.stroke === 'auto') {
            tickLine.setStyle({
              stroke: getColor((i + j / subSplitNumber) / splitNumber)
            });
          }
          group.add(tickLine);
          angle += subStep;
        }
        angle -= subStep;
      } else {
        angle += step;
      }
    }
  };
  GaugeView.prototype._renderPointer = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) {
    var group = this.group;
    var oldData = this._data;
    var oldProgressData = this._progressEls;
    var progressList = [];
    var showPointer = seriesModel.get(['pointer', 'show']);
    var progressModel = seriesModel.getModel('progress');
    var showProgress = progressModel.get('show');
    var data = seriesModel.getData();
    var valueDim = data.mapDimension('value');
    var minVal = +seriesModel.get('min');
    var maxVal = +seriesModel.get('max');
    var valueExtent = [minVal, maxVal];
    var angleExtent = [startAngle, endAngle];
    function createPointer(idx, angle) {
      var itemModel = data.getItemModel(idx);
      var pointerModel = itemModel.getModel('pointer');
      var pointerWidth = number_parsePercent(pointerModel.get('width'), posInfo.r);
      var pointerLength = number_parsePercent(pointerModel.get('length'), posInfo.r);
      var pointerStr = seriesModel.get(['pointer', 'icon']);
      var pointerOffset = pointerModel.get('offsetCenter');
      var pointerOffsetX = number_parsePercent(pointerOffset[0], posInfo.r);
      var pointerOffsetY = number_parsePercent(pointerOffset[1], posInfo.r);
      var pointerKeepAspect = pointerModel.get('keepAspect');
      var pointer;
      // not exist icon type will be set 'rect'
      if (pointerStr) {
        pointer = symbol_createSymbol(pointerStr, pointerOffsetX - pointerWidth / 2, pointerOffsetY - pointerLength, pointerWidth, pointerLength, null, pointerKeepAspect);
      } else {
        pointer = new gauge_PointerPath({
          shape: {
            angle: -Math.PI / 2,
            width: pointerWidth,
            r: pointerLength,
            x: pointerOffsetX,
            y: pointerOffsetY
          }
        });
      }
      pointer.rotation = -(angle + Math.PI / 2);
      pointer.x = posInfo.cx;
      pointer.y = posInfo.cy;
      return pointer;
    }
    function createProgress(idx, endAngle) {
      var roundCap = progressModel.get('roundCap');
      var ProgressPath = roundCap ? sausage : shape_Sector;
      var isOverlap = progressModel.get('overlap');
      var progressWidth = isOverlap ? progressModel.get('width') : axisLineWidth / data.count();
      var r0 = isOverlap ? posInfo.r - progressWidth : posInfo.r - (idx + 1) * progressWidth;
      var r = isOverlap ? posInfo.r : posInfo.r - idx * progressWidth;
      var progress = new ProgressPath({
        shape: {
          startAngle: startAngle,
          endAngle: endAngle,
          cx: posInfo.cx,
          cy: posInfo.cy,
          clockwise: clockwise,
          r0: r0,
          r: r
        }
      });
      isOverlap && (progress.z2 = linearMap(data.get(valueDim, idx), [minVal, maxVal], [100, 0], true));
      return progress;
    }
    if (showProgress || showPointer) {
      data.diff(oldData).add(function (idx) {
        var val = data.get(valueDim, idx);
        if (showPointer) {
          var pointer = createPointer(idx, startAngle);
          // TODO hide pointer on NaN value?
          initProps(pointer, {
            rotation: -((isNaN(+val) ? angleExtent[0] : linearMap(val, valueExtent, angleExtent, true)) + Math.PI / 2)
          }, seriesModel);
          group.add(pointer);
          data.setItemGraphicEl(idx, pointer);
        }
        if (showProgress) {
          var progress = createProgress(idx, startAngle);
          var isClip = progressModel.get('clip');
          initProps(progress, {
            shape: {
              endAngle: linearMap(val, valueExtent, angleExtent, isClip)
            }
          }, seriesModel);
          group.add(progress);
          // Add data index and series index for indexing the data by element
          // Useful in tooltip
          setCommonECData(seriesModel.seriesIndex, data.dataType, idx, progress);
          progressList[idx] = progress;
        }
      }).update(function (newIdx, oldIdx) {
        var val = data.get(valueDim, newIdx);
        if (showPointer) {
          var previousPointer = oldData.getItemGraphicEl(oldIdx);
          var previousRotate = previousPointer ? previousPointer.rotation : startAngle;
          var pointer = createPointer(newIdx, previousRotate);
          pointer.rotation = previousRotate;
          updateProps(pointer, {
            rotation: -((isNaN(+val) ? angleExtent[0] : linearMap(val, valueExtent, angleExtent, true)) + Math.PI / 2)
          }, seriesModel);
          group.add(pointer);
          data.setItemGraphicEl(newIdx, pointer);
        }
        if (showProgress) {
          var previousProgress = oldProgressData[oldIdx];
          var previousEndAngle = previousProgress ? previousProgress.shape.endAngle : startAngle;
          var progress = createProgress(newIdx, previousEndAngle);
          var isClip = progressModel.get('clip');
          updateProps(progress, {
            shape: {
              endAngle: linearMap(val, valueExtent, angleExtent, isClip)
            }
          }, seriesModel);
          group.add(progress);
          // Add data index and series index for indexing the data by element
          // Useful in tooltip
          setCommonECData(seriesModel.seriesIndex, data.dataType, newIdx, progress);
          progressList[newIdx] = progress;
        }
      }).execute();
      data.each(function (idx) {
        var itemModel = data.getItemModel(idx);
        var emphasisModel = itemModel.getModel('emphasis');
        var focus = emphasisModel.get('focus');
        var blurScope = emphasisModel.get('blurScope');
        var emphasisDisabled = emphasisModel.get('disabled');
        if (showPointer) {
          var pointer = data.getItemGraphicEl(idx);
          var symbolStyle = data.getItemVisual(idx, 'style');
          var visualColor = symbolStyle.fill;
          if (pointer instanceof graphic_Image) {
            var pathStyle = pointer.style;
            pointer.useStyle(Object(util["extend"])({
              image: pathStyle.image,
              x: pathStyle.x,
              y: pathStyle.y,
              width: pathStyle.width,
              height: pathStyle.height
            }, symbolStyle));
          } else {
            pointer.useStyle(symbolStyle);
            pointer.type !== 'pointer' && pointer.setColor(visualColor);
          }
          pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle());
          if (pointer.style.fill === 'auto') {
            pointer.setStyle('fill', getColor(linearMap(data.get(valueDim, idx), valueExtent, [0, 1], true)));
          }
          pointer.z2EmphasisLift = 0;
          setStatesStylesFromModel(pointer, itemModel);
          toggleHoverEmphasis(pointer, focus, blurScope, emphasisDisabled);
        }
        if (showProgress) {
          var progress = progressList[idx];
          progress.useStyle(data.getItemVisual(idx, 'style'));
          progress.setStyle(itemModel.getModel(['progress', 'itemStyle']).getItemStyle());
          progress.z2EmphasisLift = 0;
          setStatesStylesFromModel(progress, itemModel);
          toggleHoverEmphasis(progress, focus, blurScope, emphasisDisabled);
        }
      });
      this._progressEls = progressList;
    }
  };
  GaugeView.prototype._renderAnchor = function (seriesModel, posInfo) {
    var anchorModel = seriesModel.getModel('anchor');
    var showAnchor = anchorModel.get('show');
    if (showAnchor) {
      var anchorSize = anchorModel.get('size');
      var anchorType = anchorModel.get('icon');
      var offsetCenter = anchorModel.get('offsetCenter');
      var anchorKeepAspect = anchorModel.get('keepAspect');
      var anchor = symbol_createSymbol(anchorType, posInfo.cx - anchorSize / 2 + number_parsePercent(offsetCenter[0], posInfo.r), posInfo.cy - anchorSize / 2 + number_parsePercent(offsetCenter[1], posInfo.r), anchorSize, anchorSize, null, anchorKeepAspect);
      anchor.z2 = anchorModel.get('showAbove') ? 1 : 0;
      anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle());
      this.group.add(anchor);
    }
  };
  GaugeView.prototype._renderTitleAndDetail = function (seriesModel, ecModel, api, getColor, posInfo) {
    var _this = this;
    var data = seriesModel.getData();
    var valueDim = data.mapDimension('value');
    var minVal = +seriesModel.get('min');
    var maxVal = +seriesModel.get('max');
    var contentGroup = new graphic_Group();
    var newTitleEls = [];
    var newDetailEls = [];
    var hasAnimation = seriesModel.isAnimationEnabled();
    var showPointerAbove = seriesModel.get(['pointer', 'showAbove']);
    data.diff(this._data).add(function (idx) {
      newTitleEls[idx] = new Text({
        silent: true
      });
      newDetailEls[idx] = new Text({
        silent: true
      });
    }).update(function (idx, oldIdx) {
      newTitleEls[idx] = _this._titleEls[oldIdx];
      newDetailEls[idx] = _this._detailEls[oldIdx];
    }).execute();
    data.each(function (idx) {
      var itemModel = data.getItemModel(idx);
      var value = data.get(valueDim, idx);
      var itemGroup = new graphic_Group();
      var autoColor = getColor(linearMap(value, [minVal, maxVal], [0, 1], true));
      var itemTitleModel = itemModel.getModel('title');
      if (itemTitleModel.get('show')) {
        var titleOffsetCenter = itemTitleModel.get('offsetCenter');
        var titleX = posInfo.cx + number_parsePercent(titleOffsetCenter[0], posInfo.r);
        var titleY = posInfo.cy + number_parsePercent(titleOffsetCenter[1], posInfo.r);
        var labelEl = newTitleEls[idx];
        labelEl.attr({
          z2: showPointerAbove ? 0 : 2,
          style: createTextStyle(itemTitleModel, {
            x: titleX,
            y: titleY,
            text: data.getName(idx),
            align: 'center',
            verticalAlign: 'middle'
          }, {
            inheritColor: autoColor
          })
        });
        itemGroup.add(labelEl);
      }
      var itemDetailModel = itemModel.getModel('detail');
      if (itemDetailModel.get('show')) {
        var detailOffsetCenter = itemDetailModel.get('offsetCenter');
        var detailX = posInfo.cx + number_parsePercent(detailOffsetCenter[0], posInfo.r);
        var detailY = posInfo.cy + number_parsePercent(detailOffsetCenter[1], posInfo.r);
        var width = number_parsePercent(itemDetailModel.get('width'), posInfo.r);
        var height = number_parsePercent(itemDetailModel.get('height'), posInfo.r);
        var detailColor = seriesModel.get(['progress', 'show']) ? data.getItemVisual(idx, 'style').fill : autoColor;
        var labelEl = newDetailEls[idx];
        var formatter_1 = itemDetailModel.get('formatter');
        labelEl.attr({
          z2: showPointerAbove ? 0 : 2,
          style: createTextStyle(itemDetailModel, {
            x: detailX,
            y: detailY,
            text: formatLabel(value, formatter_1),
            width: isNaN(width) ? null : width,
            height: isNaN(height) ? null : height,
            align: 'center',
            verticalAlign: 'middle'
          }, {
            inheritColor: detailColor
          })
        });
        setLabelValueAnimation(labelEl, {
          normal: itemDetailModel
        }, value, function (value) {
          return formatLabel(value, formatter_1);
        });
        hasAnimation && animateLabelValue(labelEl, idx, data, seriesModel, {
          getFormattedLabel: function (labelDataIndex, status, dataType, labelDimIndex, fmt, extendParams) {
            return formatLabel(extendParams ? extendParams.interpolatedValue : value, formatter_1);
          }
        });
        itemGroup.add(labelEl);
      }
      contentGroup.add(itemGroup);
    });
    this.group.add(contentGroup);
    this._titleEls = newTitleEls;
    this._detailEls = newDetailEls;
  };
  GaugeView.type = 'gauge';
  return GaugeView;
}(Chart);
/* harmony default export */ var gauge_GaugeView = (GaugeView_GaugeView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/gauge/GaugeSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var GaugeSeries_GaugeSeriesModel = /** @class */function (_super) {
  __extends(GaugeSeriesModel, _super);
  function GaugeSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GaugeSeriesModel.type;
    _this.visualStyleAccessPath = 'itemStyle';
    return _this;
  }
  GaugeSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return createSeriesDataSimply(this, ['value']);
  };
  GaugeSeriesModel.type = 'series.gauge';
  GaugeSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    colorBy: 'data',
    // 默认全局居中
    center: ['50%', '50%'],
    legendHoverLink: true,
    radius: '75%',
    startAngle: 225,
    endAngle: -45,
    clockwise: true,
    // 最小值
    min: 0,
    // 最大值
    max: 100,
    // 分割段数，默认为10
    splitNumber: 10,
    // 坐标轴线
    axisLine: {
      // 默认显示，属性show控制显示与否
      show: true,
      roundCap: false,
      lineStyle: {
        color: [[1, '#E6EBF8']],
        width: 10
      }
    },
    // 坐标轴线
    progress: {
      // 默认显示，属性show控制显示与否
      show: false,
      overlap: true,
      width: 10,
      roundCap: false,
      clip: true
    },
    // 分隔线
    splitLine: {
      // 默认显示，属性show控制显示与否
      show: true,
      // 属性length控制线长
      length: 10,
      distance: 10,
      // 属性lineStyle（详见lineStyle）控制线条样式
      lineStyle: {
        color: '#63677A',
        width: 3,
        type: 'solid'
      }
    },
    // 坐标轴小标记
    axisTick: {
      // 属性show控制显示与否，默认不显示
      show: true,
      // 每份split细分多少段
      splitNumber: 5,
      // 属性length控制线长
      length: 6,
      distance: 10,
      // 属性lineStyle控制线条样式
      lineStyle: {
        color: '#63677A',
        width: 1,
        type: 'solid'
      }
    },
    axisLabel: {
      show: true,
      distance: 15,
      // formatter: null,
      color: '#464646',
      fontSize: 12,
      rotate: 0
    },
    pointer: {
      icon: null,
      offsetCenter: [0, 0],
      show: true,
      showAbove: true,
      length: '60%',
      width: 6,
      keepAspect: false
    },
    anchor: {
      show: false,
      showAbove: false,
      size: 6,
      icon: 'circle',
      offsetCenter: [0, 0],
      keepAspect: false,
      itemStyle: {
        color: '#fff',
        borderWidth: 0,
        borderColor: '#5470c6'
      }
    },
    title: {
      show: true,
      // x, y，单位px
      offsetCenter: [0, '20%'],
      // 其余属性默认使用全局文本样式，详见TEXTSTYLE
      color: '#464646',
      fontSize: 16,
      valueAnimation: false
    },
    detail: {
      show: true,
      backgroundColor: 'rgba(0,0,0,0)',
      borderWidth: 0,
      borderColor: '#ccc',
      width: 100,
      height: null,
      padding: [5, 10],
      // x, y，单位px
      offsetCenter: [0, '40%'],
      // formatter: null,
      // 其余属性默认使用全局文本样式，详见TEXTSTYLE
      color: '#464646',
      fontSize: 30,
      fontWeight: 'bold',
      lineHeight: 30,
      valueAnimation: false
    }
  };
  return GaugeSeriesModel;
}(Series);
/* harmony default export */ var GaugeSeries = (GaugeSeries_GaugeSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/gauge/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function gauge_install_install(registers) {
  registers.registerChartView(gauge_GaugeView);
  registers.registerSeriesModel(GaugeSeries);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/funnel/FunnelView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var opacityAccessPath = ['itemStyle', 'opacity'];
/**
 * Piece of pie including Sector, Label, LabelLine
 */
var FunnelView_FunnelPiece = /** @class */function (_super) {
  __extends(FunnelPiece, _super);
  function FunnelPiece(data, idx) {
    var _this = _super.call(this) || this;
    var polygon = _this;
    var labelLine = new shape_Polyline();
    var text = new Text();
    polygon.setTextContent(text);
    _this.setTextGuideLine(labelLine);
    _this.updateData(data, idx, true);
    return _this;
  }
  FunnelPiece.prototype.updateData = function (data, idx, firstCreate) {
    var polygon = this;
    var seriesModel = data.hostModel;
    var itemModel = data.getItemModel(idx);
    var layout = data.getItemLayout(idx);
    var emphasisModel = itemModel.getModel('emphasis');
    var opacity = itemModel.get(opacityAccessPath);
    opacity = opacity == null ? 1 : opacity;
    if (!firstCreate) {
      saveOldStyle(polygon);
    }
    // Update common style
    polygon.useStyle(data.getItemVisual(idx, 'style'));
    polygon.style.lineJoin = 'round';
    if (firstCreate) {
      polygon.setShape({
        points: layout.points
      });
      polygon.style.opacity = 0;
      initProps(polygon, {
        style: {
          opacity: opacity
        }
      }, seriesModel, idx);
    } else {
      updateProps(polygon, {
        style: {
          opacity: opacity
        },
        shape: {
          points: layout.points
        }
      }, seriesModel, idx);
    }
    setStatesStylesFromModel(polygon, itemModel);
    this._updateLabel(data, idx);
    toggleHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
  };
  FunnelPiece.prototype._updateLabel = function (data, idx) {
    var polygon = this;
    var labelLine = this.getTextGuideLine();
    var labelText = polygon.getTextContent();
    var seriesModel = data.hostModel;
    var itemModel = data.getItemModel(idx);
    var layout = data.getItemLayout(idx);
    var labelLayout = layout.label;
    var style = data.getItemVisual(idx, 'style');
    var visualColor = style.fill;
    setLabelStyle(
    // position will not be used in setLabelStyle
    labelText, getLabelStatesModels(itemModel), {
      labelFetcher: data.hostModel,
      labelDataIndex: idx,
      defaultOpacity: style.opacity,
      defaultText: data.getName(idx)
    }, {
      normal: {
        align: labelLayout.textAlign,
        verticalAlign: labelLayout.verticalAlign
      }
    });
    polygon.setTextConfig({
      local: true,
      inside: !!labelLayout.inside,
      insideStroke: visualColor,
      // insideFill: 'auto',
      outsideFill: visualColor
    });
    var linePoints = labelLayout.linePoints;
    labelLine.setShape({
      points: linePoints
    });
    polygon.textGuideLineConfig = {
      anchor: linePoints ? new core_Point(linePoints[0][0], linePoints[0][1]) : null
    };
    // Make sure update style on labelText after setLabelStyle.
    // Because setLabelStyle will replace a new style on it.
    updateProps(labelText, {
      style: {
        x: labelLayout.x,
        y: labelLayout.y
      }
    }, seriesModel, idx);
    labelText.attr({
      rotation: labelLayout.rotation,
      originX: labelLayout.x,
      originY: labelLayout.y,
      z2: 10
    });
    setLabelLineStyle(polygon, getLabelLineStatesModels(itemModel), {
      // Default use item visual color
      stroke: visualColor
    });
  };
  return FunnelPiece;
}(shape_Polygon);
var FunnelView_FunnelView = /** @class */function (_super) {
  __extends(FunnelView, _super);
  function FunnelView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = FunnelView.type;
    _this.ignoreLabelLineUpdate = true;
    return _this;
  }
  FunnelView.prototype.render = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var oldData = this._data;
    var group = this.group;
    data.diff(oldData).add(function (idx) {
      var funnelPiece = new FunnelView_FunnelPiece(data, idx);
      data.setItemGraphicEl(idx, funnelPiece);
      group.add(funnelPiece);
    }).update(function (newIdx, oldIdx) {
      var piece = oldData.getItemGraphicEl(oldIdx);
      piece.updateData(data, newIdx);
      group.add(piece);
      data.setItemGraphicEl(newIdx, piece);
    }).remove(function (idx) {
      var piece = oldData.getItemGraphicEl(idx);
      removeElementWithFadeOut(piece, seriesModel, idx);
    }).execute();
    this._data = data;
  };
  FunnelView.prototype.remove = function () {
    this.group.removeAll();
    this._data = null;
  };
  FunnelView.prototype.dispose = function () {};
  FunnelView.type = 'funnel';
  return FunnelView;
}(Chart);
/* harmony default export */ var funnel_FunnelView = (FunnelView_FunnelView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/funnel/FunnelSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var FunnelSeries_FunnelSeriesModel = /** @class */function (_super) {
  __extends(FunnelSeriesModel, _super);
  function FunnelSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = FunnelSeriesModel.type;
    return _this;
  }
  FunnelSeriesModel.prototype.init = function (option) {
    _super.prototype.init.apply(this, arguments);
    // Enable legend selection for each data item
    // Use a function instead of direct access because data reference may changed
    this.legendVisualProvider = new visual_LegendVisualProvider(util["bind"](this.getData, this), util["bind"](this.getRawData, this));
    // Extend labelLine emphasis
    this._defaultLabelLine(option);
  };
  FunnelSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return createSeriesDataSimply(this, {
      coordDimensions: ['value'],
      encodeDefaulter: util["curry"](makeSeriesEncodeForNameBased, this)
    });
  };
  FunnelSeriesModel.prototype._defaultLabelLine = function (option) {
    // Extend labelLine emphasis
    defaultEmphasis(option, 'labelLine', ['show']);
    var labelLineNormalOpt = option.labelLine;
    var labelLineEmphasisOpt = option.emphasis.labelLine;
    // Not show label line if `label.normal.show = false`
    labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;
    labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;
  };
  // Overwrite
  FunnelSeriesModel.prototype.getDataParams = function (dataIndex) {
    var data = this.getData();
    var params = _super.prototype.getDataParams.call(this, dataIndex);
    var valueDim = data.mapDimension('value');
    var sum = data.getSum(valueDim);
    // Percent is 0 if sum is 0
    params.percent = !sum ? 0 : +(data.get(valueDim, dataIndex) / sum * 100).toFixed(2);
    params.$vars.push('percent');
    return params;
  };
  FunnelSeriesModel.type = 'series.funnel';
  FunnelSeriesModel.defaultOption = {
    // zlevel: 0,                  // 一级层叠
    z: 2,
    legendHoverLink: true,
    colorBy: 'data',
    left: 80,
    top: 60,
    right: 80,
    bottom: 60,
    // width: {totalWidth} - left - right,
    // height: {totalHeight} - top - bottom,
    // 默认取数据最小最大值
    // min: 0,
    // max: 100,
    minSize: '0%',
    maxSize: '100%',
    sort: 'descending',
    orient: 'vertical',
    gap: 0,
    funnelAlign: 'center',
    label: {
      show: true,
      position: 'outer'
      // formatter: 标签文本格式器，同Tooltip.formatter，不支持异步回调
    },
    labelLine: {
      show: true,
      length: 20,
      lineStyle: {
        // color: 各异,
        width: 1
      }
    },
    itemStyle: {
      // color: 各异,
      borderColor: '#fff',
      borderWidth: 1
    },
    emphasis: {
      label: {
        show: true
      }
    },
    select: {
      itemStyle: {
        borderColor: '#212121'
      }
    }
  };
  return FunnelSeriesModel;
}(Series);
/* harmony default export */ var FunnelSeries = (FunnelSeries_FunnelSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/funnel/funnelLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function funnelLayout_getViewRect(seriesModel, api) {
  return getLayoutRect(seriesModel.getBoxLayoutParams(), {
    width: api.getWidth(),
    height: api.getHeight()
  });
}
function getSortedIndices(data, sort) {
  var valueDim = data.mapDimension('value');
  var valueArr = data.mapArray(valueDim, function (val) {
    return val;
  });
  var indices = [];
  var isAscending = sort === 'ascending';
  for (var i = 0, len = data.count(); i < len; i++) {
    indices[i] = i;
  }
  // Add custom sortable function & none sortable opetion by "options.sort"
  if (Object(util["isFunction"])(sort)) {
    indices.sort(sort);
  } else if (sort !== 'none') {
    indices.sort(function (a, b) {
      return isAscending ? valueArr[a] - valueArr[b] : valueArr[b] - valueArr[a];
    });
  }
  return indices;
}
function funnelLayout_labelLayout(data) {
  var seriesModel = data.hostModel;
  var orient = seriesModel.get('orient');
  data.each(function (idx) {
    var itemModel = data.getItemModel(idx);
    var labelModel = itemModel.getModel('label');
    var labelPosition = labelModel.get('position');
    var labelLineModel = itemModel.getModel('labelLine');
    var layout = data.getItemLayout(idx);
    var points = layout.points;
    var isLabelInside = labelPosition === 'inner' || labelPosition === 'inside' || labelPosition === 'center' || labelPosition === 'insideLeft' || labelPosition === 'insideRight';
    var textAlign;
    var textX;
    var textY;
    var linePoints;
    if (isLabelInside) {
      if (labelPosition === 'insideLeft') {
        textX = (points[0][0] + points[3][0]) / 2 + 5;
        textY = (points[0][1] + points[3][1]) / 2;
        textAlign = 'left';
      } else if (labelPosition === 'insideRight') {
        textX = (points[1][0] + points[2][0]) / 2 - 5;
        textY = (points[1][1] + points[2][1]) / 2;
        textAlign = 'right';
      } else {
        textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;
        textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;
        textAlign = 'center';
      }
      linePoints = [[textX, textY], [textX, textY]];
    } else {
      var x1 = void 0;
      var y1 = void 0;
      var x2 = void 0;
      var y2 = void 0;
      var labelLineLen = labelLineModel.get('length');
      if (false) {}
      if (labelPosition === 'left') {
        // Left side
        x1 = (points[3][0] + points[0][0]) / 2;
        y1 = (points[3][1] + points[0][1]) / 2;
        x2 = x1 - labelLineLen;
        textX = x2 - 5;
        textAlign = 'right';
      } else if (labelPosition === 'right') {
        // Right side
        x1 = (points[1][0] + points[2][0]) / 2;
        y1 = (points[1][1] + points[2][1]) / 2;
        x2 = x1 + labelLineLen;
        textX = x2 + 5;
        textAlign = 'left';
      } else if (labelPosition === 'top') {
        // Top side
        x1 = (points[3][0] + points[0][0]) / 2;
        y1 = (points[3][1] + points[0][1]) / 2;
        y2 = y1 - labelLineLen;
        textY = y2 - 5;
        textAlign = 'center';
      } else if (labelPosition === 'bottom') {
        // Bottom side
        x1 = (points[1][0] + points[2][0]) / 2;
        y1 = (points[1][1] + points[2][1]) / 2;
        y2 = y1 + labelLineLen;
        textY = y2 + 5;
        textAlign = 'center';
      } else if (labelPosition === 'rightTop') {
        // RightTop side
        x1 = orient === 'horizontal' ? points[3][0] : points[1][0];
        y1 = orient === 'horizontal' ? points[3][1] : points[1][1];
        if (orient === 'horizontal') {
          y2 = y1 - labelLineLen;
          textY = y2 - 5;
          textAlign = 'center';
        } else {
          x2 = x1 + labelLineLen;
          textX = x2 + 5;
          textAlign = 'top';
        }
      } else if (labelPosition === 'rightBottom') {
        // RightBottom side
        x1 = points[2][0];
        y1 = points[2][1];
        if (orient === 'horizontal') {
          y2 = y1 + labelLineLen;
          textY = y2 + 5;
          textAlign = 'center';
        } else {
          x2 = x1 + labelLineLen;
          textX = x2 + 5;
          textAlign = 'bottom';
        }
      } else if (labelPosition === 'leftTop') {
        // LeftTop side
        x1 = points[0][0];
        y1 = orient === 'horizontal' ? points[0][1] : points[1][1];
        if (orient === 'horizontal') {
          y2 = y1 - labelLineLen;
          textY = y2 - 5;
          textAlign = 'center';
        } else {
          x2 = x1 - labelLineLen;
          textX = x2 - 5;
          textAlign = 'right';
        }
      } else if (labelPosition === 'leftBottom') {
        // LeftBottom side
        x1 = orient === 'horizontal' ? points[1][0] : points[3][0];
        y1 = orient === 'horizontal' ? points[1][1] : points[2][1];
        if (orient === 'horizontal') {
          y2 = y1 + labelLineLen;
          textY = y2 + 5;
          textAlign = 'center';
        } else {
          x2 = x1 - labelLineLen;
          textX = x2 - 5;
          textAlign = 'right';
        }
      } else {
        // Right side or Bottom side
        x1 = (points[1][0] + points[2][0]) / 2;
        y1 = (points[1][1] + points[2][1]) / 2;
        if (orient === 'horizontal') {
          y2 = y1 + labelLineLen;
          textY = y2 + 5;
          textAlign = 'center';
        } else {
          x2 = x1 + labelLineLen;
          textX = x2 + 5;
          textAlign = 'left';
        }
      }
      if (orient === 'horizontal') {
        x2 = x1;
        textX = x2;
      } else {
        y2 = y1;
        textY = y2;
      }
      linePoints = [[x1, y1], [x2, y2]];
    }
    layout.label = {
      linePoints: linePoints,
      x: textX,
      y: textY,
      verticalAlign: 'middle',
      textAlign: textAlign,
      inside: isLabelInside
    };
  });
}
function funnelLayout(ecModel, api) {
  ecModel.eachSeriesByType('funnel', function (seriesModel) {
    var data = seriesModel.getData();
    var valueDim = data.mapDimension('value');
    var sort = seriesModel.get('sort');
    var viewRect = funnelLayout_getViewRect(seriesModel, api);
    var orient = seriesModel.get('orient');
    var viewWidth = viewRect.width;
    var viewHeight = viewRect.height;
    var indices = getSortedIndices(data, sort);
    var x = viewRect.x;
    var y = viewRect.y;
    var sizeExtent = orient === 'horizontal' ? [number_parsePercent(seriesModel.get('minSize'), viewHeight), number_parsePercent(seriesModel.get('maxSize'), viewHeight)] : [number_parsePercent(seriesModel.get('minSize'), viewWidth), number_parsePercent(seriesModel.get('maxSize'), viewWidth)];
    var dataExtent = data.getDataExtent(valueDim);
    var min = seriesModel.get('min');
    var max = seriesModel.get('max');
    if (min == null) {
      min = Math.min(dataExtent[0], 0);
    }
    if (max == null) {
      max = dataExtent[1];
    }
    var funnelAlign = seriesModel.get('funnelAlign');
    var gap = seriesModel.get('gap');
    var viewSize = orient === 'horizontal' ? viewWidth : viewHeight;
    var itemSize = (viewSize - gap * (data.count() - 1)) / data.count();
    var getLinePoints = function (idx, offset) {
      // End point index is data.count() and we assign it 0
      if (orient === 'horizontal') {
        var val_1 = data.get(valueDim, idx) || 0;
        var itemHeight = linearMap(val_1, [min, max], sizeExtent, true);
        var y0 = void 0;
        switch (funnelAlign) {
          case 'top':
            y0 = y;
            break;
          case 'center':
            y0 = y + (viewHeight - itemHeight) / 2;
            break;
          case 'bottom':
            y0 = y + (viewHeight - itemHeight);
            break;
        }
        return [[offset, y0], [offset, y0 + itemHeight]];
      }
      var val = data.get(valueDim, idx) || 0;
      var itemWidth = linearMap(val, [min, max], sizeExtent, true);
      var x0;
      switch (funnelAlign) {
        case 'left':
          x0 = x;
          break;
        case 'center':
          x0 = x + (viewWidth - itemWidth) / 2;
          break;
        case 'right':
          x0 = x + viewWidth - itemWidth;
          break;
      }
      return [[x0, offset], [x0 + itemWidth, offset]];
    };
    if (sort === 'ascending') {
      // From bottom to top
      itemSize = -itemSize;
      gap = -gap;
      if (orient === 'horizontal') {
        x += viewWidth;
      } else {
        y += viewHeight;
      }
      indices = indices.reverse();
    }
    for (var i = 0; i < indices.length; i++) {
      var idx = indices[i];
      var nextIdx = indices[i + 1];
      var itemModel = data.getItemModel(idx);
      if (orient === 'horizontal') {
        var width = itemModel.get(['itemStyle', 'width']);
        if (width == null) {
          width = itemSize;
        } else {
          width = number_parsePercent(width, viewWidth);
          if (sort === 'ascending') {
            width = -width;
          }
        }
        var start = getLinePoints(idx, x);
        var end = getLinePoints(nextIdx, x + width);
        x += width + gap;
        data.setItemLayout(idx, {
          points: start.concat(end.slice().reverse())
        });
      } else {
        var height = itemModel.get(['itemStyle', 'height']);
        if (height == null) {
          height = itemSize;
        } else {
          height = number_parsePercent(height, viewHeight);
          if (sort === 'ascending') {
            height = -height;
          }
        }
        var start = getLinePoints(idx, y);
        var end = getLinePoints(nextIdx, y + height);
        y += height + gap;
        data.setItemLayout(idx, {
          points: start.concat(end.slice().reverse())
        });
      }
    }
    funnelLayout_labelLayout(data);
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/funnel/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function funnel_install_install(registers) {
  registers.registerChartView(funnel_FunnelView);
  registers.registerSeriesModel(FunnelSeries);
  registers.registerLayout(funnelLayout);
  registers.registerProcessor(dataFilter('funnel'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/ParallelView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var DEFAULT_SMOOTH = 0.3;
var ParallelView_ParallelView = /** @class */function (_super) {
  __extends(ParallelView, _super);
  function ParallelView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ParallelView.type;
    _this._dataGroup = new graphic_Group();
    _this._initialized = false;
    return _this;
  }
  ParallelView.prototype.init = function () {
    this.group.add(this._dataGroup);
  };
  /**
   * @override
   */
  ParallelView.prototype.render = function (seriesModel, ecModel, api, payload) {
    // Clear previously rendered progressive elements.
    this._progressiveEls = null;
    var dataGroup = this._dataGroup;
    var data = seriesModel.getData();
    var oldData = this._data;
    var coordSys = seriesModel.coordinateSystem;
    var dimensions = coordSys.dimensions;
    var seriesScope = ParallelView_makeSeriesScope(seriesModel);
    data.diff(oldData).add(add).update(update).remove(remove).execute();
    function add(newDataIndex) {
      var line = addEl(data, dataGroup, newDataIndex, dimensions, coordSys);
      updateElCommon(line, data, newDataIndex, seriesScope);
    }
    function update(newDataIndex, oldDataIndex) {
      var line = oldData.getItemGraphicEl(oldDataIndex);
      var points = createLinePoints(data, newDataIndex, dimensions, coordSys);
      data.setItemGraphicEl(newDataIndex, line);
      updateProps(line, {
        shape: {
          points: points
        }
      }, seriesModel, newDataIndex);
      saveOldStyle(line);
      updateElCommon(line, data, newDataIndex, seriesScope);
    }
    function remove(oldDataIndex) {
      var line = oldData.getItemGraphicEl(oldDataIndex);
      dataGroup.remove(line);
    }
    // First create
    if (!this._initialized) {
      this._initialized = true;
      var clipPath = createGridClipShape(coordSys, seriesModel, function () {
        // Callback will be invoked immediately if there is no animation
        setTimeout(function () {
          dataGroup.removeClipPath();
        });
      });
      dataGroup.setClipPath(clipPath);
    }
    this._data = data;
  };
  ParallelView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {
    this._initialized = true;
    this._data = null;
    this._dataGroup.removeAll();
  };
  ParallelView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {
    var data = seriesModel.getData();
    var coordSys = seriesModel.coordinateSystem;
    var dimensions = coordSys.dimensions;
    var seriesScope = ParallelView_makeSeriesScope(seriesModel);
    var progressiveEls = this._progressiveEls = [];
    for (var dataIndex = taskParams.start; dataIndex < taskParams.end; dataIndex++) {
      var line = addEl(data, this._dataGroup, dataIndex, dimensions, coordSys);
      line.incremental = true;
      updateElCommon(line, data, dataIndex, seriesScope);
      progressiveEls.push(line);
    }
  };
  ParallelView.prototype.remove = function () {
    this._dataGroup && this._dataGroup.removeAll();
    this._data = null;
  };
  ParallelView.type = 'parallel';
  return ParallelView;
}(Chart);
function createGridClipShape(coordSys, seriesModel, cb) {
  var parallelModel = coordSys.model;
  var rect = coordSys.getRect();
  var rectEl = new shape_Rect({
    shape: {
      x: rect.x,
      y: rect.y,
      width: rect.width,
      height: rect.height
    }
  });
  var dim = parallelModel.get('layout') === 'horizontal' ? 'width' : 'height';
  rectEl.setShape(dim, 0);
  initProps(rectEl, {
    shape: {
      width: rect.width,
      height: rect.height
    }
  }, seriesModel, cb);
  return rectEl;
}
function createLinePoints(data, dataIndex, dimensions, coordSys) {
  var points = [];
  for (var i = 0; i < dimensions.length; i++) {
    var dimName = dimensions[i];
    var value = data.get(data.mapDimension(dimName), dataIndex);
    if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) {
      points.push(coordSys.dataToPoint(value, dimName));
    }
  }
  return points;
}
function addEl(data, dataGroup, dataIndex, dimensions, coordSys) {
  var points = createLinePoints(data, dataIndex, dimensions, coordSys);
  var line = new shape_Polyline({
    shape: {
      points: points
    },
    // silent: true,
    z2: 10
  });
  dataGroup.add(line);
  data.setItemGraphicEl(dataIndex, line);
  return line;
}
function ParallelView_makeSeriesScope(seriesModel) {
  var smooth = seriesModel.get('smooth', true);
  smooth === true && (smooth = DEFAULT_SMOOTH);
  smooth = numericToNumber(smooth);
  Object(util["eqNaN"])(smooth) && (smooth = 0);
  return {
    smooth: smooth
  };
}
function updateElCommon(el, data, dataIndex, seriesScope) {
  el.useStyle(data.getItemVisual(dataIndex, 'style'));
  el.style.fill = null;
  el.setShape('smooth', seriesScope.smooth);
  var itemModel = data.getItemModel(dataIndex);
  var emphasisModel = itemModel.getModel('emphasis');
  setStatesStylesFromModel(el, itemModel, 'lineStyle');
  toggleHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
}
// function simpleDiff(oldData, newData, dimensions) {
//     let oldLen;
//     if (!oldData
//         || !oldData.__plProgressive
//         || (oldLen = oldData.count()) !== newData.count()
//     ) {
//         return true;
//     }
//     let dimLen = dimensions.length;
//     for (let i = 0; i < oldLen; i++) {
//         for (let j = 0; j < dimLen; j++) {
//             if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) {
//                 return true;
//             }
//         }
//     }
//     return false;
// }
// FIXME put in common util?
function isEmptyValue(val, axisType) {
  return axisType === 'category' ? val == null : val == null || isNaN(val); // axisType === 'value'
}
/* harmony default export */ var parallel_ParallelView = (ParallelView_ParallelView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/ParallelSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var ParallelSeries_ParallelSeriesModel = /** @class */function (_super) {
  __extends(ParallelSeriesModel, _super);
  function ParallelSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ParallelSeriesModel.type;
    _this.visualStyleAccessPath = 'lineStyle';
    _this.visualDrawType = 'stroke';
    return _this;
  }
  ParallelSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return helper_createSeriesData(null, this, {
      useEncodeDefaulter: Object(util["bind"])(makeDefaultEncode, null, this)
    });
  };
  /**
   * User can get data raw indices on 'axisAreaSelected' event received.
   *
   * @return Raw indices
   */
  ParallelSeriesModel.prototype.getRawIndicesByActiveState = function (activeState) {
    var coordSys = this.coordinateSystem;
    var data = this.getData();
    var indices = [];
    coordSys.eachActiveState(data, function (theActiveState, dataIndex) {
      if (activeState === theActiveState) {
        indices.push(data.getRawIndex(dataIndex));
      }
    });
    return indices;
  };
  ParallelSeriesModel.type = 'series.parallel';
  ParallelSeriesModel.dependencies = ['parallel'];
  ParallelSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    coordinateSystem: 'parallel',
    parallelIndex: 0,
    label: {
      show: false
    },
    inactiveOpacity: 0.05,
    activeOpacity: 1,
    lineStyle: {
      width: 1,
      opacity: 0.45,
      type: 'solid'
    },
    emphasis: {
      label: {
        show: false
      }
    },
    progressive: 500,
    smooth: false,
    animationEasing: 'linear'
  };
  return ParallelSeriesModel;
}(Series);
function makeDefaultEncode(seriesModel) {
  // The mapping of parallelAxis dimension to data dimension can
  // be specified in parallelAxis.option.dim. For example, if
  // parallelAxis.option.dim is 'dim3', it mapping to the third
  // dimension of data. But `data.encode` has higher priority.
  // Moreover, parallelModel.dimension should not be regarded as data
  // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6'];
  var parallelModel = seriesModel.ecModel.getComponent('parallel', seriesModel.get('parallelIndex'));
  if (!parallelModel) {
    return;
  }
  var encodeDefine = {};
  Object(util["each"])(parallelModel.dimensions, function (axisDim) {
    var dataDimIndex = convertDimNameToNumber(axisDim);
    encodeDefine[axisDim] = dataDimIndex;
  });
  return encodeDefine;
}
function convertDimNameToNumber(dimName) {
  return +dimName.replace('dim', '');
}
/* harmony default export */ var ParallelSeries = (ParallelSeries_ParallelSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/parallelVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var parallelVisual_opacityAccessPath = ['lineStyle', 'opacity'];
var parallelVisual = {
  seriesType: 'parallel',
  reset: function (seriesModel, ecModel) {
    var coordSys = seriesModel.coordinateSystem;
    var opacityMap = {
      normal: seriesModel.get(['lineStyle', 'opacity']),
      active: seriesModel.get('activeOpacity'),
      inactive: seriesModel.get('inactiveOpacity')
    };
    return {
      progress: function (params, data) {
        coordSys.eachActiveState(data, function (activeState, dataIndex) {
          var opacity = opacityMap[activeState];
          if (activeState === 'normal' && data.hasItemOption) {
            var itemOpacity = data.getItemModel(dataIndex).get(parallelVisual_opacityAccessPath, true);
            itemOpacity != null && (opacity = itemOpacity);
          }
          var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');
          existsStyle.opacity = opacity;
        }, params.start, params.end);
      }
    };
  }
};
/* harmony default export */ var parallel_parallelVisual = (parallelVisual);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function parallelPreprocessor(option) {
  createParallelIfNeeded(option);
  mergeAxisOptionFromParallel(option);
}
/**
 * Create a parallel coordinate if not exists.
 * @inner
 */
function createParallelIfNeeded(option) {
  if (option.parallel) {
    return;
  }
  var hasParallelSeries = false;
  util["each"](option.series, function (seriesOpt) {
    if (seriesOpt && seriesOpt.type === 'parallel') {
      hasParallelSeries = true;
    }
  });
  if (hasParallelSeries) {
    option.parallel = [{}];
  }
}
/**
 * Merge aixs definition from parallel option (if exists) to axis option.
 * @inner
 */
function mergeAxisOptionFromParallel(option) {
  var axes = normalizeToArray(option.parallelAxis);
  util["each"](axes, function (axisOption) {
    if (!util["isObject"](axisOption)) {
      return;
    }
    var parallelIndex = axisOption.parallelIndex || 0;
    var parallelOption = normalizeToArray(option.parallel)[parallelIndex];
    if (parallelOption && parallelOption.parallelAxisDefault) {
      util["merge"](axisOption, parallelOption.parallelAxisDefault, false);
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/parallel/ParallelView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var CLICK_THRESHOLD = 5; // > 4
var parallel_ParallelView_ParallelView = /** @class */function (_super) {
  __extends(ParallelView, _super);
  function ParallelView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ParallelView.type;
    return _this;
  }
  ParallelView.prototype.render = function (parallelModel, ecModel, api) {
    this._model = parallelModel;
    this._api = api;
    if (!this._handlers) {
      this._handlers = {};
      Object(util["each"])(handlers, function (handler, eventName) {
        api.getZr().on(eventName, this._handlers[eventName] = Object(util["bind"])(handler, this));
      }, this);
    }
    createOrUpdate(this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate');
  };
  ParallelView.prototype.dispose = function (ecModel, api) {
    clear(this, '_throttledDispatchExpand');
    Object(util["each"])(this._handlers, function (handler, eventName) {
      api.getZr().off(eventName, handler);
    });
    this._handlers = null;
  };
  /**
   * @internal
   * @param {Object} [opt] If null, cancel the last action triggering for debounce.
   */
  ParallelView.prototype._throttledDispatchExpand = function (opt) {
    this._dispatchExpand(opt);
  };
  /**
   * @internal
   */
  ParallelView.prototype._dispatchExpand = function (opt) {
    opt && this._api.dispatchAction(Object(util["extend"])({
      type: 'parallelAxisExpand'
    }, opt));
  };
  ParallelView.type = 'parallel';
  return ParallelView;
}(view_Component);
var handlers = {
  mousedown: function (e) {
    if (checkTrigger(this, 'click')) {
      this._mouseDownPoint = [e.offsetX, e.offsetY];
    }
  },
  mouseup: function (e) {
    var mouseDownPoint = this._mouseDownPoint;
    if (checkTrigger(this, 'click') && mouseDownPoint) {
      var point = [e.offsetX, e.offsetY];
      var dist = Math.pow(mouseDownPoint[0] - point[0], 2) + Math.pow(mouseDownPoint[1] - point[1], 2);
      if (dist > CLICK_THRESHOLD) {
        return;
      }
      var result = this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);
      result.behavior !== 'none' && this._dispatchExpand({
        axisExpandWindow: result.axisExpandWindow
      });
    }
    this._mouseDownPoint = null;
  },
  mousemove: function (e) {
    // Should do nothing when brushing.
    if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) {
      return;
    }
    var model = this._model;
    var result = model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);
    var behavior = result.behavior;
    behavior === 'jump' && this._throttledDispatchExpand.debounceNextCall(model.get('axisExpandDebounce'));
    this._throttledDispatchExpand(behavior === 'none' ? null // Cancel the last trigger, in case that mouse slide out of the area quickly.
    : {
      axisExpandWindow: result.axisExpandWindow,
      // Jumping uses animation, and sliding suppresses animation.
      animation: behavior === 'jump' ? null : {
        duration: 0 // Disable animation.
      }
    });
  }
};
function checkTrigger(view, triggerOn) {
  var model = view._model;
  return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn;
}
/* harmony default export */ var component_parallel_ParallelView = (parallel_ParallelView_ParallelView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/ParallelModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var ParallelModel_ParallelModel = /** @class */function (_super) {
  __extends(ParallelModel, _super);
  function ParallelModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ParallelModel.type;
    return _this;
  }
  ParallelModel.prototype.init = function () {
    _super.prototype.init.apply(this, arguments);
    this.mergeOption({});
  };
  ParallelModel.prototype.mergeOption = function (newOption) {
    var thisOption = this.option;
    newOption && util["merge"](thisOption, newOption, true);
    this._initDimensions();
  };
  /**
   * Whether series or axis is in this coordinate system.
   */
  ParallelModel.prototype.contains = function (model, ecModel) {
    var parallelIndex = model.get('parallelIndex');
    return parallelIndex != null && ecModel.getComponent('parallel', parallelIndex) === this;
  };
  ParallelModel.prototype.setAxisExpand = function (opt) {
    util["each"](['axisExpandable', 'axisExpandCenter', 'axisExpandCount', 'axisExpandWidth', 'axisExpandWindow'], function (name) {
      if (opt.hasOwnProperty(name)) {
        // @ts-ignore FIXME: why "never" inferred in this.option[name]?
        this.option[name] = opt[name];
      }
    }, this);
  };
  ParallelModel.prototype._initDimensions = function () {
    var dimensions = this.dimensions = [];
    var parallelAxisIndex = this.parallelAxisIndex = [];
    var axisModels = util["filter"](this.ecModel.queryComponents({
      mainType: 'parallelAxis'
    }), function (axisModel) {
      // Can not use this.contains here, because
      // initialization has not been completed yet.
      return (axisModel.get('parallelIndex') || 0) === this.componentIndex;
    }, this);
    util["each"](axisModels, function (axisModel) {
      dimensions.push('dim' + axisModel.get('dim'));
      parallelAxisIndex.push(axisModel.componentIndex);
    });
  };
  ParallelModel.type = 'parallel';
  ParallelModel.dependencies = ['parallelAxis'];
  ParallelModel.layoutMode = 'box';
  ParallelModel.defaultOption = {
    // zlevel: 0,
    z: 0,
    left: 80,
    top: 60,
    right: 80,
    bottom: 60,
    // width: {totalWidth} - left - right,
    // height: {totalHeight} - top - bottom,
    layout: 'horizontal',
    // FIXME
    // naming?
    axisExpandable: false,
    axisExpandCenter: null,
    axisExpandCount: 0,
    axisExpandWidth: 50,
    axisExpandRate: 17,
    axisExpandDebounce: 50,
    // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.
    // Do not doc to user until necessary.
    axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],
    axisExpandTriggerOn: 'click',
    parallelAxisDefault: null
  };
  return ParallelModel;
}(Component);
/* harmony default export */ var parallel_ParallelModel = (ParallelModel_ParallelModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/ParallelAxis.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var ParallelAxis_ParallelAxis = /** @class */function (_super) {
  __extends(ParallelAxis, _super);
  function ParallelAxis(dim, scale, coordExtent, axisType, axisIndex) {
    var _this = _super.call(this, dim, scale, coordExtent) || this;
    _this.type = axisType || 'value';
    _this.axisIndex = axisIndex;
    return _this;
  }
  ParallelAxis.prototype.isHorizontal = function () {
    return this.coordinateSystem.getModel().get('layout') !== 'horizontal';
  };
  return ParallelAxis;
}(coord_Axis);
/* harmony default export */ var parallel_ParallelAxis = (ParallelAxis_ParallelAxis);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/sliderMove.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Calculate slider move result.
 * Usage:
 * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as
 * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`.
 * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`.
 *
 * @param delta Move length.
 * @param handleEnds handleEnds[0] can be bigger then handleEnds[1].
 *              handleEnds will be modified in this method.
 * @param extent handleEnds is restricted by extent.
 *              extent[0] should less or equals than extent[1].
 * @param handleIndex Can be 'all', means that both move the two handleEnds.
 * @param minSpan The range of dataZoom can not be smaller than that.
 *              If not set, handle0 and cross handle1. If set as a non-negative
 *              number (including `0`), handles will push each other when reaching
 *              the minSpan.
 * @param maxSpan The range of dataZoom can not be larger than that.
 * @return The input handleEnds.
 */
function sliderMove(delta, handleEnds, extent, handleIndex, minSpan, maxSpan) {
  delta = delta || 0;
  var extentSpan = extent[1] - extent[0];
  // Notice maxSpan and minSpan can be null/undefined.
  if (minSpan != null) {
    minSpan = restrict(minSpan, [0, extentSpan]);
  }
  if (maxSpan != null) {
    maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0);
  }
  if (handleIndex === 'all') {
    var handleSpan = Math.abs(handleEnds[1] - handleEnds[0]);
    handleSpan = restrict(handleSpan, [0, extentSpan]);
    minSpan = maxSpan = restrict(handleSpan, [minSpan, maxSpan]);
    handleIndex = 0;
  }
  handleEnds[0] = restrict(handleEnds[0], extent);
  handleEnds[1] = restrict(handleEnds[1], extent);
  var originalDistSign = getSpanSign(handleEnds, handleIndex);
  handleEnds[handleIndex] += delta;
  // Restrict in extent.
  var extentMinSpan = minSpan || 0;
  var realExtent = extent.slice();
  originalDistSign.sign < 0 ? realExtent[0] += extentMinSpan : realExtent[1] -= extentMinSpan;
  handleEnds[handleIndex] = restrict(handleEnds[handleIndex], realExtent);
  // Expand span.
  var currDistSign;
  currDistSign = getSpanSign(handleEnds, handleIndex);
  if (minSpan != null && (currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan)) {
    // If minSpan exists, 'cross' is forbidden.
    handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan;
  }
  // Shrink span.
  currDistSign = getSpanSign(handleEnds, handleIndex);
  if (maxSpan != null && currDistSign.span > maxSpan) {
    handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan;
  }
  return handleEnds;
}
function getSpanSign(handleEnds, handleIndex) {
  var dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex];
  // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0]
  // is at left of handleEnds[1] for non-cross case.
  return {
    span: Math.abs(dist),
    sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1
  };
}
function restrict(value, extend) {
  return Math.min(extend[1] != null ? extend[1] : Infinity, Math.max(extend[0] != null ? extend[0] : -Infinity, value));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/Parallel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Parallel Coordinates
 * <https://en.wikipedia.org/wiki/Parallel_coordinates>
 */








var Parallel_each = util["each"];
var Parallel_mathMin = Math.min;
var Parallel_mathMax = Math.max;
var Parallel_mathFloor = Math.floor;
var Parallel_mathCeil = Math.ceil;
var Parallel_round = round;
var Parallel_PI = Math.PI;
var Parallel_Parallel = /** @class */function () {
  function Parallel(parallelModel, ecModel, api) {
    this.type = 'parallel';
    /**
     * key: dimension
     */
    this._axesMap = util["createHashMap"]();
    /**
     * key: dimension
     * value: {position: [], rotation, }
     */
    this._axesLayout = {};
    this.dimensions = parallelModel.dimensions;
    this._model = parallelModel;
    this._init(parallelModel, ecModel, api);
  }
  Parallel.prototype._init = function (parallelModel, ecModel, api) {
    var dimensions = parallelModel.dimensions;
    var parallelAxisIndex = parallelModel.parallelAxisIndex;
    Parallel_each(dimensions, function (dim, idx) {
      var axisIndex = parallelAxisIndex[idx];
      var axisModel = ecModel.getComponent('parallelAxis', axisIndex);
      var axis = this._axesMap.set(dim, new parallel_ParallelAxis(dim, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisIndex));
      var isCategory = axis.type === 'category';
      axis.onBand = isCategory && axisModel.get('boundaryGap');
      axis.inverse = axisModel.get('inverse');
      // Injection
      axisModel.axis = axis;
      axis.model = axisModel;
      axis.coordinateSystem = axisModel.coordinateSystem = this;
    }, this);
  };
  /**
   * Update axis scale after data processed
   */
  Parallel.prototype.update = function (ecModel, api) {
    this._updateAxesFromSeries(this._model, ecModel);
  };
  Parallel.prototype.containPoint = function (point) {
    var layoutInfo = this._makeLayoutInfo();
    var axisBase = layoutInfo.axisBase;
    var layoutBase = layoutInfo.layoutBase;
    var pixelDimIndex = layoutInfo.pixelDimIndex;
    var pAxis = point[1 - pixelDimIndex];
    var pLayout = point[pixelDimIndex];
    return pAxis >= axisBase && pAxis <= axisBase + layoutInfo.axisLength && pLayout >= layoutBase && pLayout <= layoutBase + layoutInfo.layoutLength;
  };
  Parallel.prototype.getModel = function () {
    return this._model;
  };
  /**
   * Update properties from series
   */
  Parallel.prototype._updateAxesFromSeries = function (parallelModel, ecModel) {
    ecModel.eachSeries(function (seriesModel) {
      if (!parallelModel.contains(seriesModel, ecModel)) {
        return;
      }
      var data = seriesModel.getData();
      Parallel_each(this.dimensions, function (dim) {
        var axis = this._axesMap.get(dim);
        axis.scale.unionExtentFromData(data, data.mapDimension(dim));
        niceScaleExtent(axis.scale, axis.model);
      }, this);
    }, this);
  };
  /**
   * Resize the parallel coordinate system.
   */
  Parallel.prototype.resize = function (parallelModel, api) {
    this._rect = getLayoutRect(parallelModel.getBoxLayoutParams(), {
      width: api.getWidth(),
      height: api.getHeight()
    });
    this._layoutAxes();
  };
  Parallel.prototype.getRect = function () {
    return this._rect;
  };
  Parallel.prototype._makeLayoutInfo = function () {
    var parallelModel = this._model;
    var rect = this._rect;
    var xy = ['x', 'y'];
    var wh = ['width', 'height'];
    var layout = parallelModel.get('layout');
    var pixelDimIndex = layout === 'horizontal' ? 0 : 1;
    var layoutLength = rect[wh[pixelDimIndex]];
    var layoutExtent = [0, layoutLength];
    var axisCount = this.dimensions.length;
    var axisExpandWidth = Parallel_restrict(parallelModel.get('axisExpandWidth'), layoutExtent);
    var axisExpandCount = Parallel_restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]);
    var axisExpandable = parallelModel.get('axisExpandable') && axisCount > 3 && axisCount > axisExpandCount && axisExpandCount > 1 && axisExpandWidth > 0 && layoutLength > 0;
    // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength],
    // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow),
    // where collapsed axes should be overlapped.
    var axisExpandWindow = parallelModel.get('axisExpandWindow');
    var winSize;
    if (!axisExpandWindow) {
      winSize = Parallel_restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent);
      var axisExpandCenter = parallelModel.get('axisExpandCenter') || Parallel_mathFloor(axisCount / 2);
      axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2];
      axisExpandWindow[1] = axisExpandWindow[0] + winSize;
    } else {
      winSize = Parallel_restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent);
      axisExpandWindow[1] = axisExpandWindow[0] + winSize;
    }
    var axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount);
    // Avoid axisCollapseWidth is too small.
    axisCollapseWidth < 3 && (axisCollapseWidth = 0);
    // Find the first and last indices > ewin[0] and < ewin[1].
    var winInnerIndices = [Parallel_mathFloor(Parallel_round(axisExpandWindow[0] / axisExpandWidth, 1)) + 1, Parallel_mathCeil(Parallel_round(axisExpandWindow[1] / axisExpandWidth, 1)) - 1];
    // Pos in ec coordinates.
    var axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0];
    return {
      layout: layout,
      pixelDimIndex: pixelDimIndex,
      layoutBase: rect[xy[pixelDimIndex]],
      layoutLength: layoutLength,
      axisBase: rect[xy[1 - pixelDimIndex]],
      axisLength: rect[wh[1 - pixelDimIndex]],
      axisExpandable: axisExpandable,
      axisExpandWidth: axisExpandWidth,
      axisCollapseWidth: axisCollapseWidth,
      axisExpandWindow: axisExpandWindow,
      axisCount: axisCount,
      winInnerIndices: winInnerIndices,
      axisExpandWindow0Pos: axisExpandWindow0Pos
    };
  };
  Parallel.prototype._layoutAxes = function () {
    var rect = this._rect;
    var axes = this._axesMap;
    var dimensions = this.dimensions;
    var layoutInfo = this._makeLayoutInfo();
    var layout = layoutInfo.layout;
    axes.each(function (axis) {
      var axisExtent = [0, layoutInfo.axisLength];
      var idx = axis.inverse ? 1 : 0;
      axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);
    });
    Parallel_each(dimensions, function (dim, idx) {
      var posInfo = (layoutInfo.axisExpandable ? layoutAxisWithExpand : layoutAxisWithoutExpand)(idx, layoutInfo);
      var positionTable = {
        horizontal: {
          x: posInfo.position,
          y: layoutInfo.axisLength
        },
        vertical: {
          x: 0,
          y: posInfo.position
        }
      };
      var rotationTable = {
        horizontal: Parallel_PI / 2,
        vertical: 0
      };
      var position = [positionTable[layout].x + rect.x, positionTable[layout].y + rect.y];
      var rotation = rotationTable[layout];
      var transform = matrix_create();
      matrix_rotate(transform, transform, rotation);
      matrix_translate(transform, transform, position);
      // TODO
      // tick layout info
      // TODO
      // update dimensions info based on axis order.
      this._axesLayout[dim] = {
        position: position,
        rotation: rotation,
        transform: transform,
        axisNameAvailableWidth: posInfo.axisNameAvailableWidth,
        axisLabelShow: posInfo.axisLabelShow,
        nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth,
        tickDirection: 1,
        labelDirection: 1
      };
    }, this);
  };
  /**
   * Get axis by dim.
   */
  Parallel.prototype.getAxis = function (dim) {
    return this._axesMap.get(dim);
  };
  /**
   * Convert a dim value of a single item of series data to Point.
   */
  Parallel.prototype.dataToPoint = function (value, dim) {
    return this.axisCoordToPoint(this._axesMap.get(dim).dataToCoord(value), dim);
  };
  /**
   * Travel data for one time, get activeState of each data item.
   * @param start the start dataIndex that travel from.
   * @param end the next dataIndex of the last dataIndex will be travel.
   */
  Parallel.prototype.eachActiveState = function (data, callback, start, end) {
    start == null && (start = 0);
    end == null && (end = data.count());
    var axesMap = this._axesMap;
    var dimensions = this.dimensions;
    var dataDimensions = [];
    var axisModels = [];
    util["each"](dimensions, function (axisDim) {
      dataDimensions.push(data.mapDimension(axisDim));
      axisModels.push(axesMap.get(axisDim).model);
    });
    var hasActiveSet = this.hasAxisBrushed();
    for (var dataIndex = start; dataIndex < end; dataIndex++) {
      var activeState = void 0;
      if (!hasActiveSet) {
        activeState = 'normal';
      } else {
        activeState = 'active';
        var values = data.getValues(dataDimensions, dataIndex);
        for (var j = 0, lenj = dimensions.length; j < lenj; j++) {
          var state = axisModels[j].getActiveState(values[j]);
          if (state === 'inactive') {
            activeState = 'inactive';
            break;
          }
        }
      }
      callback(activeState, dataIndex);
    }
  };
  /**
   * Whether has any activeSet.
   */
  Parallel.prototype.hasAxisBrushed = function () {
    var dimensions = this.dimensions;
    var axesMap = this._axesMap;
    var hasActiveSet = false;
    for (var j = 0, lenj = dimensions.length; j < lenj; j++) {
      if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') {
        hasActiveSet = true;
      }
    }
    return hasActiveSet;
  };
  /**
   * Convert coords of each axis to Point.
   *  Return point. For example: [10, 20]
   */
  Parallel.prototype.axisCoordToPoint = function (coord, dim) {
    var axisLayout = this._axesLayout[dim];
    return graphic_applyTransform([coord, 0], axisLayout.transform);
  };
  /**
   * Get axis layout.
   */
  Parallel.prototype.getAxisLayout = function (dim) {
    return util["clone"](this._axesLayout[dim]);
  };
  /**
   * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}.
   */
  Parallel.prototype.getSlidedAxisExpandWindow = function (point) {
    var layoutInfo = this._makeLayoutInfo();
    var pixelDimIndex = layoutInfo.pixelDimIndex;
    var axisExpandWindow = layoutInfo.axisExpandWindow.slice();
    var winSize = axisExpandWindow[1] - axisExpandWindow[0];
    var extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)];
    // Out of the area of coordinate system.
    if (!this.containPoint(point)) {
      return {
        behavior: 'none',
        axisExpandWindow: axisExpandWindow
      };
    }
    // Convert the point from global to expand coordinates.
    var pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos;
    // For dragging operation convenience, the window should not be
    // slided when mouse is the center area of the window.
    var delta;
    var behavior = 'slide';
    var axisCollapseWidth = layoutInfo.axisCollapseWidth;
    var triggerArea = this._model.get('axisExpandSlideTriggerArea');
    // But consider touch device, jump is necessary.
    var useJump = triggerArea[0] != null;
    if (axisCollapseWidth) {
      if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) {
        behavior = 'jump';
        delta = pointCoord - winSize * triggerArea[2];
      } else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) {
        behavior = 'jump';
        delta = pointCoord - winSize * (1 - triggerArea[2]);
      } else {
        (delta = pointCoord - winSize * triggerArea[1]) >= 0 && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0 && (delta = 0);
      }
      delta *= layoutInfo.axisExpandWidth / axisCollapseWidth;
      delta ? sliderMove(delta, axisExpandWindow, extent, 'all')
      // Avoid nonsense triger on mousemove.
      : behavior = 'none';
    }
    // When screen is too narrow, make it visible and slidable, although it is hard to interact.
    else {
      var winSize2 = axisExpandWindow[1] - axisExpandWindow[0];
      var pos = extent[1] * pointCoord / winSize2;
      axisExpandWindow = [Parallel_mathMax(0, pos - winSize2 / 2)];
      axisExpandWindow[1] = Parallel_mathMin(extent[1], axisExpandWindow[0] + winSize2);
      axisExpandWindow[0] = axisExpandWindow[1] - winSize2;
    }
    return {
      axisExpandWindow: axisExpandWindow,
      behavior: behavior
    };
  };
  return Parallel;
}();
function Parallel_restrict(len, extent) {
  return Parallel_mathMin(Parallel_mathMax(len, extent[0]), extent[1]);
}
function layoutAxisWithoutExpand(axisIndex, layoutInfo) {
  var step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1);
  return {
    position: step * axisIndex,
    axisNameAvailableWidth: step,
    axisLabelShow: true
  };
}
function layoutAxisWithExpand(axisIndex, layoutInfo) {
  var layoutLength = layoutInfo.layoutLength;
  var axisExpandWidth = layoutInfo.axisExpandWidth;
  var axisCount = layoutInfo.axisCount;
  var axisCollapseWidth = layoutInfo.axisCollapseWidth;
  var winInnerIndices = layoutInfo.winInnerIndices;
  var position;
  var axisNameAvailableWidth = axisCollapseWidth;
  var axisLabelShow = false;
  var nameTruncateMaxWidth;
  if (axisIndex < winInnerIndices[0]) {
    position = axisIndex * axisCollapseWidth;
    nameTruncateMaxWidth = axisCollapseWidth;
  } else if (axisIndex <= winInnerIndices[1]) {
    position = layoutInfo.axisExpandWindow0Pos + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0];
    axisNameAvailableWidth = axisExpandWidth;
    axisLabelShow = true;
  } else {
    position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth;
    nameTruncateMaxWidth = axisCollapseWidth;
  }
  return {
    position: position,
    axisNameAvailableWidth: axisNameAvailableWidth,
    axisLabelShow: axisLabelShow,
    nameTruncateMaxWidth: nameTruncateMaxWidth
  };
}
/* harmony default export */ var parallel_Parallel = (Parallel_Parallel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/parallelCreator.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Parallel coordinate system creater.
 */


function createParallelCoordSys(ecModel, api) {
  var coordSysList = [];
  ecModel.eachComponent('parallel', function (parallelModel, idx) {
    var coordSys = new parallel_Parallel(parallelModel, ecModel, api);
    coordSys.name = 'parallel_' + idx;
    coordSys.resize(parallelModel, api);
    parallelModel.coordinateSystem = coordSys;
    coordSys.model = parallelModel;
    coordSysList.push(coordSys);
  });
  // Inject the coordinateSystems into seriesModel
  ecModel.eachSeries(function (seriesModel) {
    if (seriesModel.get('coordinateSystem') === 'parallel') {
      var parallelModel = seriesModel.getReferringComponents('parallel', SINGLE_REFERRING).models[0];
      seriesModel.coordinateSystem = parallelModel.coordinateSystem;
    }
  });
  return coordSysList;
}
var parallelCoordSysCreator = {
  create: createParallelCoordSys
};
/* harmony default export */ var parallelCreator = (parallelCoordSysCreator);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/AxisModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var AxisModel_ParallelAxisModel = /** @class */function (_super) {
  __extends(ParallelAxisModel, _super);
  function ParallelAxisModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ParallelAxisModel.type;
    /**
     * @readOnly
     */
    _this.activeIntervals = [];
    return _this;
  }
  ParallelAxisModel.prototype.getAreaSelectStyle = function () {
    return makeStyleMapper([['fill', 'color'], ['lineWidth', 'borderWidth'], ['stroke', 'borderColor'], ['width', 'width'], ['opacity', 'opacity']
    // Option decal is in `DecalObject` but style.decal is in `PatternObject`.
    // So do not transfer decal directly.
    ])(this.getModel('areaSelectStyle'));
  };
  /**
   * The code of this feature is put on AxisModel but not ParallelAxis,
   * because axisModel can be alive after echarts updating but instance of
   * ParallelAxis having been disposed. this._activeInterval should be kept
   * when action dispatched (i.e. legend click).
   *
   * @param intervals `interval.length === 0` means set all active.
   */
  ParallelAxisModel.prototype.setActiveIntervals = function (intervals) {
    var activeIntervals = this.activeIntervals = util["clone"](intervals);
    // Normalize
    if (activeIntervals) {
      for (var i = activeIntervals.length - 1; i >= 0; i--) {
        asc(activeIntervals[i]);
      }
    }
  };
  /**
   * @param value When only attempting detect whether 'no activeIntervals set',
   *        `value` is not needed to be input.
   */
  ParallelAxisModel.prototype.getActiveState = function (value) {
    var activeIntervals = this.activeIntervals;
    if (!activeIntervals.length) {
      return 'normal';
    }
    if (value == null || isNaN(+value)) {
      return 'inactive';
    }
    // Simple optimization
    if (activeIntervals.length === 1) {
      var interval = activeIntervals[0];
      if (interval[0] <= value && value <= interval[1]) {
        return 'active';
      }
    } else {
      for (var i = 0, len = activeIntervals.length; i < len; i++) {
        if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) {
          return 'active';
        }
      }
    }
    return 'inactive';
  };
  return ParallelAxisModel;
}(Component);
util["mixin"](AxisModel_ParallelAxisModel, AxisModelCommonMixin);
/* harmony default export */ var parallel_AxisModel = (AxisModel_ParallelAxisModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/BrushController.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var BRUSH_PANEL_GLOBAL = true;
var BrushController_mathMin = Math.min;
var BrushController_mathMax = Math.max;
var BrushController_mathPow = Math.pow;
var COVER_Z = 10000;
var UNSELECT_THRESHOLD = 6;
var MIN_RESIZE_LINE_WIDTH = 6;
var MUTEX_RESOURCE_KEY = 'globalPan';
var DIRECTION_MAP = {
  w: [0, 0],
  e: [0, 1],
  n: [1, 0],
  s: [1, 1]
};
var CURSOR_MAP = {
  w: 'ew',
  e: 'ew',
  n: 'ns',
  s: 'ns',
  ne: 'nesw',
  sw: 'nesw',
  nw: 'nwse',
  se: 'nwse'
};
var DEFAULT_BRUSH_OPT = {
  brushStyle: {
    lineWidth: 2,
    stroke: 'rgba(210,219,238,0.3)',
    fill: '#D2DBEE'
  },
  transformable: true,
  brushMode: 'single',
  removeOnClick: false
};
var baseUID = 0;
/**
 * params:
 *     areas: Array.<Array>, coord relates to container group,
 *                             If no container specified, to global.
 *     opt {
 *         isEnd: boolean,
 *         removeOnClick: boolean
 *     }
 */
var BrushController_BrushController = /** @class */function (_super) {
  __extends(BrushController, _super);
  function BrushController(zr) {
    var _this = _super.call(this) || this;
    /**
     * @internal
     */
    _this._track = [];
    /**
     * @internal
     */
    _this._covers = [];
    _this._handlers = {};
    if (false) {}
    _this._zr = zr;
    _this.group = new graphic_Group();
    _this._uid = 'brushController_' + baseUID++;
    Object(util["each"])(pointerHandlers, function (handler, eventName) {
      this._handlers[eventName] = Object(util["bind"])(handler, this);
    }, _this);
    return _this;
  }
  /**
   * If set to `false`, select disabled.
   */
  BrushController.prototype.enableBrush = function (brushOption) {
    if (false) {}
    this._brushType && this._doDisableBrush();
    brushOption.brushType && this._doEnableBrush(brushOption);
    return this;
  };
  BrushController.prototype._doEnableBrush = function (brushOption) {
    var zr = this._zr;
    // Consider roam, which takes globalPan too.
    if (!this._enableGlobalPan) {
      take(zr, MUTEX_RESOURCE_KEY, this._uid);
    }
    Object(util["each"])(this._handlers, function (handler, eventName) {
      zr.on(eventName, handler);
    });
    this._brushType = brushOption.brushType;
    this._brushOption = Object(util["merge"])(Object(util["clone"])(DEFAULT_BRUSH_OPT), brushOption, true);
  };
  BrushController.prototype._doDisableBrush = function () {
    var zr = this._zr;
    release(zr, MUTEX_RESOURCE_KEY, this._uid);
    Object(util["each"])(this._handlers, function (handler, eventName) {
      zr.off(eventName, handler);
    });
    this._brushType = this._brushOption = null;
  };
  /**
   * @param panelOpts If not pass, it is global brush.
   */
  BrushController.prototype.setPanels = function (panelOpts) {
    if (panelOpts && panelOpts.length) {
      var panels_1 = this._panels = {};
      Object(util["each"])(panelOpts, function (panelOpts) {
        panels_1[panelOpts.panelId] = Object(util["clone"])(panelOpts);
      });
    } else {
      this._panels = null;
    }
    return this;
  };
  BrushController.prototype.mount = function (opt) {
    opt = opt || {};
    if (false) {}
    this._enableGlobalPan = opt.enableGlobalPan;
    var thisGroup = this.group;
    this._zr.add(thisGroup);
    thisGroup.attr({
      x: opt.x || 0,
      y: opt.y || 0,
      rotation: opt.rotation || 0,
      scaleX: opt.scaleX || 1,
      scaleY: opt.scaleY || 1
    });
    this._transform = thisGroup.getLocalTransform();
    return this;
  };
  // eachCover(cb, context): void {
  //     each(this._covers, cb, context);
  // }
  /**
   * Update covers.
   * @param coverConfigList
   *        If coverConfigList is null/undefined, all covers removed.
   */
  BrushController.prototype.updateCovers = function (coverConfigList) {
    if (false) {}
    coverConfigList = Object(util["map"])(coverConfigList, function (coverConfig) {
      return Object(util["merge"])(Object(util["clone"])(DEFAULT_BRUSH_OPT), coverConfig, true);
    });
    var tmpIdPrefix = '\0-brush-index-';
    var oldCovers = this._covers;
    var newCovers = this._covers = [];
    var controller = this;
    var creatingCover = this._creatingCover;
    new data_DataDiffer(oldCovers, coverConfigList, oldGetKey, getKey).add(addOrUpdate).update(addOrUpdate).remove(remove).execute();
    return this;
    function getKey(brushOption, index) {
      return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index) + '-' + brushOption.brushType;
    }
    function oldGetKey(cover, index) {
      return getKey(cover.__brushOption, index);
    }
    function addOrUpdate(newIndex, oldIndex) {
      var newBrushInternal = coverConfigList[newIndex];
      // Consider setOption in event listener of brushSelect,
      // where updating cover when creating should be forbidden.
      if (oldIndex != null && oldCovers[oldIndex] === creatingCover) {
        newCovers[newIndex] = oldCovers[oldIndex];
      } else {
        var cover = newCovers[newIndex] = oldIndex != null ? (oldCovers[oldIndex].__brushOption = newBrushInternal, oldCovers[oldIndex]) : endCreating(controller, createCover(controller, newBrushInternal));
        updateCoverAfterCreation(controller, cover);
      }
    }
    function remove(oldIndex) {
      if (oldCovers[oldIndex] !== creatingCover) {
        controller.group.remove(oldCovers[oldIndex]);
      }
    }
  };
  BrushController.prototype.unmount = function () {
    if (false) {}
    this.enableBrush(false);
    // container may 'removeAll' outside.
    clearCovers(this);
    this._zr.remove(this.group);
    if (false) {}
    return this;
  };
  BrushController.prototype.dispose = function () {
    this.unmount();
    this.off();
  };
  return BrushController;
}(core_Eventful);
function createCover(controller, brushOption) {
  var cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption);
  cover.__brushOption = brushOption;
  BrushController_updateZ(cover, brushOption);
  controller.group.add(cover);
  return cover;
}
function endCreating(controller, creatingCover) {
  var coverRenderer = getCoverRenderer(creatingCover);
  if (coverRenderer.endCreating) {
    coverRenderer.endCreating(controller, creatingCover);
    BrushController_updateZ(creatingCover, creatingCover.__brushOption);
  }
  return creatingCover;
}
function updateCoverShape(controller, cover) {
  var brushOption = cover.__brushOption;
  getCoverRenderer(cover).updateCoverShape(controller, cover, brushOption.range, brushOption);
}
function BrushController_updateZ(cover, brushOption) {
  var z = brushOption.z;
  z == null && (z = COVER_Z);
  cover.traverse(function (el) {
    el.z = z;
    el.z2 = z; // Consider in given container.
  });
}
function updateCoverAfterCreation(controller, cover) {
  getCoverRenderer(cover).updateCommon(controller, cover);
  updateCoverShape(controller, cover);
}
function getCoverRenderer(cover) {
  return coverRenderers[cover.__brushOption.brushType];
}
// return target panel or `true` (means global panel)
function getPanelByPoint(controller, e, localCursorPoint) {
  var panels = controller._panels;
  if (!panels) {
    return BRUSH_PANEL_GLOBAL; // Global panel
  }
  var panel;
  var transform = controller._transform;
  Object(util["each"])(panels, function (pn) {
    pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn);
  });
  return panel;
}
// Return a panel or true
function getPanelByCover(controller, cover) {
  var panels = controller._panels;
  if (!panels) {
    return BRUSH_PANEL_GLOBAL; // Global panel
  }
  var panelId = cover.__brushOption.panelId;
  // User may give cover without coord sys info,
  // which is then treated as global panel.
  return panelId != null ? panels[panelId] : BRUSH_PANEL_GLOBAL;
}
function clearCovers(controller) {
  var covers = controller._covers;
  var originalLength = covers.length;
  Object(util["each"])(covers, function (cover) {
    controller.group.remove(cover);
  }, controller);
  covers.length = 0;
  return !!originalLength;
}
function BrushController_trigger(controller, opt) {
  var areas = Object(util["map"])(controller._covers, function (cover) {
    var brushOption = cover.__brushOption;
    var range = Object(util["clone"])(brushOption.range);
    return {
      brushType: brushOption.brushType,
      panelId: brushOption.panelId,
      range: range
    };
  });
  controller.trigger('brush', {
    areas: areas,
    isEnd: !!opt.isEnd,
    removeOnClick: !!opt.removeOnClick
  });
}
function shouldShowCover(controller) {
  var track = controller._track;
  if (!track.length) {
    return false;
  }
  var p2 = track[track.length - 1];
  var p1 = track[0];
  var dx = p2[0] - p1[0];
  var dy = p2[1] - p1[1];
  var dist = BrushController_mathPow(dx * dx + dy * dy, 0.5);
  return dist > UNSELECT_THRESHOLD;
}
function getTrackEnds(track) {
  var tail = track.length - 1;
  tail < 0 && (tail = 0);
  return [track[0], track[tail]];
}
;
function createBaseRectCover(rectRangeConverter, controller, brushOption, edgeNameSequences) {
  var cover = new graphic_Group();
  cover.add(new shape_Rect({
    name: 'main',
    style: makeStyle(brushOption),
    silent: true,
    draggable: true,
    cursor: 'move',
    drift: Object(util["curry"])(driftRect, rectRangeConverter, controller, cover, ['n', 's', 'w', 'e']),
    ondragend: Object(util["curry"])(BrushController_trigger, controller, {
      isEnd: true
    })
  }));
  Object(util["each"])(edgeNameSequences, function (nameSequence) {
    cover.add(new shape_Rect({
      name: nameSequence.join(''),
      style: {
        opacity: 0
      },
      draggable: true,
      silent: true,
      invisible: true,
      drift: Object(util["curry"])(driftRect, rectRangeConverter, controller, cover, nameSequence),
      ondragend: Object(util["curry"])(BrushController_trigger, controller, {
        isEnd: true
      })
    }));
  });
  return cover;
}
function updateBaseRect(controller, cover, localRange, brushOption) {
  var lineWidth = brushOption.brushStyle.lineWidth || 0;
  var handleSize = BrushController_mathMax(lineWidth, MIN_RESIZE_LINE_WIDTH);
  var x = localRange[0][0];
  var y = localRange[1][0];
  var xa = x - lineWidth / 2;
  var ya = y - lineWidth / 2;
  var x2 = localRange[0][1];
  var y2 = localRange[1][1];
  var x2a = x2 - handleSize + lineWidth / 2;
  var y2a = y2 - handleSize + lineWidth / 2;
  var width = x2 - x;
  var height = y2 - y;
  var widtha = width + lineWidth;
  var heighta = height + lineWidth;
  updateRectShape(controller, cover, 'main', x, y, width, height);
  if (brushOption.transformable) {
    updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta);
    updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta);
    updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize);
    updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize);
    updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize);
    updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize);
    updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize);
    updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize);
  }
}
function updateCommon(controller, cover) {
  var brushOption = cover.__brushOption;
  var transformable = brushOption.transformable;
  var mainEl = cover.childAt(0);
  mainEl.useStyle(makeStyle(brushOption));
  mainEl.attr({
    silent: !transformable,
    cursor: transformable ? 'move' : 'default'
  });
  Object(util["each"])([['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']], function (nameSequence) {
    var el = cover.childOfName(nameSequence.join(''));
    var globalDir = nameSequence.length === 1 ? getGlobalDirection1(controller, nameSequence[0]) : getGlobalDirection2(controller, nameSequence);
    el && el.attr({
      silent: !transformable,
      invisible: !transformable,
      cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null
    });
  });
}
function updateRectShape(controller, cover, name, x, y, w, h) {
  var el = cover.childOfName(name);
  el && el.setShape(pointsToRect(clipByPanel(controller, cover, [[x, y], [x + w, y + h]])));
}
function makeStyle(brushOption) {
  return Object(util["defaults"])({
    strokeNoScale: true
  }, brushOption.brushStyle);
}
function formatRectRange(x, y, x2, y2) {
  var min = [BrushController_mathMin(x, x2), BrushController_mathMin(y, y2)];
  var max = [BrushController_mathMax(x, x2), BrushController_mathMax(y, y2)];
  return [[min[0], max[0]], [min[1], max[1]] // y range
  ];
}
function BrushController_getTransform(controller) {
  return getTransform(controller.group);
}
function getGlobalDirection1(controller, localDirName) {
  var map = {
    w: 'left',
    e: 'right',
    n: 'top',
    s: 'bottom'
  };
  var inverseMap = {
    left: 'w',
    right: 'e',
    top: 'n',
    bottom: 's'
  };
  var dir = transformDirection(map[localDirName], BrushController_getTransform(controller));
  return inverseMap[dir];
}
function getGlobalDirection2(controller, localDirNameSeq) {
  var globalDir = [getGlobalDirection1(controller, localDirNameSeq[0]), getGlobalDirection1(controller, localDirNameSeq[1])];
  (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse();
  return globalDir.join('');
}
function driftRect(rectRangeConverter, controller, cover, dirNameSequence, dx, dy) {
  var brushOption = cover.__brushOption;
  var rectRange = rectRangeConverter.toRectRange(brushOption.range);
  var localDelta = toLocalDelta(controller, dx, dy);
  Object(util["each"])(dirNameSequence, function (dirName) {
    var ind = DIRECTION_MAP[dirName];
    rectRange[ind[0]][ind[1]] += localDelta[ind[0]];
  });
  brushOption.range = rectRangeConverter.fromRectRange(formatRectRange(rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1]));
  updateCoverAfterCreation(controller, cover);
  BrushController_trigger(controller, {
    isEnd: false
  });
}
function driftPolygon(controller, cover, dx, dy) {
  var range = cover.__brushOption.range;
  var localDelta = toLocalDelta(controller, dx, dy);
  Object(util["each"])(range, function (point) {
    point[0] += localDelta[0];
    point[1] += localDelta[1];
  });
  updateCoverAfterCreation(controller, cover);
  BrushController_trigger(controller, {
    isEnd: false
  });
}
function toLocalDelta(controller, dx, dy) {
  var thisGroup = controller.group;
  var localD = thisGroup.transformCoordToLocal(dx, dy);
  var localZero = thisGroup.transformCoordToLocal(0, 0);
  return [localD[0] - localZero[0], localD[1] - localZero[1]];
}
function clipByPanel(controller, cover, data) {
  var panel = getPanelByCover(controller, cover);
  return panel && panel !== BRUSH_PANEL_GLOBAL ? panel.clipPath(data, controller._transform) : Object(util["clone"])(data);
}
function pointsToRect(points) {
  var xmin = BrushController_mathMin(points[0][0], points[1][0]);
  var ymin = BrushController_mathMin(points[0][1], points[1][1]);
  var xmax = BrushController_mathMax(points[0][0], points[1][0]);
  var ymax = BrushController_mathMax(points[0][1], points[1][1]);
  return {
    x: xmin,
    y: ymin,
    width: xmax - xmin,
    height: ymax - ymin
  };
}
function resetCursor(controller, e, localCursorPoint) {
  if (
  // Check active
  !controller._brushType
  // resetCursor should be always called when mouse is in zr area,
  // but not called when mouse is out of zr area to avoid bad influence
  // if `mousemove`, `mouseup` are triggered from `document` event.
  || isOutsideZrArea(controller, e.offsetX, e.offsetY)) {
    return;
  }
  var zr = controller._zr;
  var covers = controller._covers;
  var currPanel = getPanelByPoint(controller, e, localCursorPoint);
  // Check whether in covers.
  if (!controller._dragging) {
    for (var i = 0; i < covers.length; i++) {
      var brushOption = covers[i].__brushOption;
      if (currPanel && (currPanel === BRUSH_PANEL_GLOBAL || brushOption.panelId === currPanel.panelId) && coverRenderers[brushOption.brushType].contain(covers[i], localCursorPoint[0], localCursorPoint[1])) {
        // Use cursor style set on cover.
        return;
      }
    }
  }
  currPanel && zr.setCursorStyle('crosshair');
}
function preventDefault(e) {
  var rawE = e.event;
  rawE.preventDefault && rawE.preventDefault();
}
function mainShapeContain(cover, x, y) {
  return cover.childOfName('main').contain(x, y);
}
function updateCoverByMouse(controller, e, localCursorPoint, isEnd) {
  var creatingCover = controller._creatingCover;
  var panel = controller._creatingPanel;
  var thisBrushOption = controller._brushOption;
  var eventParams;
  controller._track.push(localCursorPoint.slice());
  if (shouldShowCover(controller) || creatingCover) {
    if (panel && !creatingCover) {
      thisBrushOption.brushMode === 'single' && clearCovers(controller);
      var brushOption = Object(util["clone"])(thisBrushOption);
      brushOption.brushType = determineBrushType(brushOption.brushType, panel);
      brushOption.panelId = panel === BRUSH_PANEL_GLOBAL ? null : panel.panelId;
      creatingCover = controller._creatingCover = createCover(controller, brushOption);
      controller._covers.push(creatingCover);
    }
    if (creatingCover) {
      var coverRenderer = coverRenderers[determineBrushType(controller._brushType, panel)];
      var coverBrushOption = creatingCover.__brushOption;
      coverBrushOption.range = coverRenderer.getCreatingRange(clipByPanel(controller, creatingCover, controller._track));
      if (isEnd) {
        endCreating(controller, creatingCover);
        coverRenderer.updateCommon(controller, creatingCover);
      }
      updateCoverShape(controller, creatingCover);
      eventParams = {
        isEnd: isEnd
      };
    }
  } else if (isEnd && thisBrushOption.brushMode === 'single' && thisBrushOption.removeOnClick) {
    // Help user to remove covers easily, only by a tiny drag, in 'single' mode.
    // But a single click do not clear covers, because user may have casual
    // clicks (for example, click on other component and do not expect covers
    // disappear).
    // Only some cover removed, trigger action, but not every click trigger action.
    if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) {
      eventParams = {
        isEnd: isEnd,
        removeOnClick: true
      };
    }
  }
  return eventParams;
}
function determineBrushType(brushType, panel) {
  if (brushType === 'auto') {
    if (false) {}
    return panel.defaultBrushType;
  }
  return brushType;
}
var pointerHandlers = {
  mousedown: function (e) {
    if (this._dragging) {
      // In case some browser do not support globalOut,
      // and release mouse out side the browser.
      handleDragEnd(this, e);
    } else if (!e.target || !e.target.draggable) {
      preventDefault(e);
      var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);
      this._creatingCover = null;
      var panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint);
      if (panel) {
        this._dragging = true;
        this._track = [localCursorPoint.slice()];
      }
    }
  },
  mousemove: function (e) {
    var x = e.offsetX;
    var y = e.offsetY;
    var localCursorPoint = this.group.transformCoordToLocal(x, y);
    resetCursor(this, e, localCursorPoint);
    if (this._dragging) {
      preventDefault(e);
      var eventParams = updateCoverByMouse(this, e, localCursorPoint, false);
      eventParams && BrushController_trigger(this, eventParams);
    }
  },
  mouseup: function (e) {
    handleDragEnd(this, e);
  }
};
function handleDragEnd(controller, e) {
  if (controller._dragging) {
    preventDefault(e);
    var x = e.offsetX;
    var y = e.offsetY;
    var localCursorPoint = controller.group.transformCoordToLocal(x, y);
    var eventParams = updateCoverByMouse(controller, e, localCursorPoint, true);
    controller._dragging = false;
    controller._track = [];
    controller._creatingCover = null;
    // trigger event should be at final, after procedure will be nested.
    eventParams && BrushController_trigger(controller, eventParams);
  }
}
function isOutsideZrArea(controller, x, y) {
  var zr = controller._zr;
  return x < 0 || x > zr.getWidth() || y < 0 || y > zr.getHeight();
}
/**
 * key: brushType
 */
var coverRenderers = {
  lineX: getLineRenderer(0),
  lineY: getLineRenderer(1),
  rect: {
    createCover: function (controller, brushOption) {
      function returnInput(range) {
        return range;
      }
      return createBaseRectCover({
        toRectRange: returnInput,
        fromRectRange: returnInput
      }, controller, brushOption, [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']]);
    },
    getCreatingRange: function (localTrack) {
      var ends = getTrackEnds(localTrack);
      return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]);
    },
    updateCoverShape: function (controller, cover, localRange, brushOption) {
      updateBaseRect(controller, cover, localRange, brushOption);
    },
    updateCommon: updateCommon,
    contain: mainShapeContain
  },
  polygon: {
    createCover: function (controller, brushOption) {
      var cover = new graphic_Group();
      // Do not use graphic.Polygon because graphic.Polyline do not close the
      // border of the shape when drawing, which is a better experience for user.
      cover.add(new shape_Polyline({
        name: 'main',
        style: makeStyle(brushOption),
        silent: true
      }));
      return cover;
    },
    getCreatingRange: function (localTrack) {
      return localTrack;
    },
    endCreating: function (controller, cover) {
      cover.remove(cover.childAt(0));
      // Use graphic.Polygon close the shape.
      cover.add(new shape_Polygon({
        name: 'main',
        draggable: true,
        drift: Object(util["curry"])(driftPolygon, controller, cover),
        ondragend: Object(util["curry"])(BrushController_trigger, controller, {
          isEnd: true
        })
      }));
    },
    updateCoverShape: function (controller, cover, localRange, brushOption) {
      cover.childAt(0).setShape({
        points: clipByPanel(controller, cover, localRange)
      });
    },
    updateCommon: updateCommon,
    contain: mainShapeContain
  }
};
function getLineRenderer(xyIndex) {
  return {
    createCover: function (controller, brushOption) {
      return createBaseRectCover({
        toRectRange: function (range) {
          var rectRange = [range, [0, 100]];
          xyIndex && rectRange.reverse();
          return rectRange;
        },
        fromRectRange: function (rectRange) {
          return rectRange[xyIndex];
        }
      }, controller, brushOption, [[['w'], ['e']], [['n'], ['s']]][xyIndex]);
    },
    getCreatingRange: function (localTrack) {
      var ends = getTrackEnds(localTrack);
      var min = BrushController_mathMin(ends[0][xyIndex], ends[1][xyIndex]);
      var max = BrushController_mathMax(ends[0][xyIndex], ends[1][xyIndex]);
      return [min, max];
    },
    updateCoverShape: function (controller, cover, localRange, brushOption) {
      var otherExtent;
      // If brushWidth not specified, fit the panel.
      var panel = getPanelByCover(controller, cover);
      if (panel !== BRUSH_PANEL_GLOBAL && panel.getLinearBrushOtherExtent) {
        otherExtent = panel.getLinearBrushOtherExtent(xyIndex);
      } else {
        var zr = controller._zr;
        otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]];
      }
      var rectRange = [localRange, otherExtent];
      xyIndex && rectRange.reverse();
      updateBaseRect(controller, cover, rectRange, brushOption);
    },
    updateCommon: updateCommon,
    contain: mainShapeContain
  };
}
/* harmony default export */ var helper_BrushController = (BrushController_BrushController);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/brushHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function makeRectPanelClipPath(rect) {
  rect = normalizeRect(rect);
  return function (localPoints) {
    return clipPointsByRect(localPoints, rect);
  };
}
function makeLinearBrushOtherExtent(rect, specifiedXYIndex) {
  rect = normalizeRect(rect);
  return function (xyIndex) {
    var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;
    var brushWidth = idx ? rect.width : rect.height;
    var base = idx ? rect.x : rect.y;
    return [base, base + (brushWidth || 0)];
  };
}
function makeRectIsTargetByCursor(rect, api, targetModel) {
  var boundingRect = normalizeRect(rect);
  return function (e, localCursorPoint) {
    return boundingRect.contain(localCursorPoint[0], localCursorPoint[1]) && !onIrrelevantElement(e, api, targetModel);
  };
}
// Consider width/height is negative.
function normalizeRect(rect) {
  return core_BoundingRect.create(rect);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/ParallelAxisView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var elementList = ['axisLine', 'axisTickLabel', 'axisName'];
var ParallelAxisView_ParallelAxisView = /** @class */function (_super) {
  __extends(ParallelAxisView, _super);
  function ParallelAxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ParallelAxisView.type;
    return _this;
  }
  ParallelAxisView.prototype.init = function (ecModel, api) {
    _super.prototype.init.apply(this, arguments);
    (this._brushController = new helper_BrushController(api.getZr())).on('brush', util["bind"](this._onBrush, this));
  };
  ParallelAxisView.prototype.render = function (axisModel, ecModel, api, payload) {
    if (fromAxisAreaSelect(axisModel, ecModel, payload)) {
      return;
    }
    this.axisModel = axisModel;
    this.api = api;
    this.group.removeAll();
    var oldAxisGroup = this._axisGroup;
    this._axisGroup = new graphic_Group();
    this.group.add(this._axisGroup);
    if (!axisModel.get('show')) {
      return;
    }
    var coordSysModel = getCoordSysModel(axisModel, ecModel);
    var coordSys = coordSysModel.coordinateSystem;
    var areaSelectStyle = axisModel.getAreaSelectStyle();
    var areaWidth = areaSelectStyle.width;
    var dim = axisModel.axis.dim;
    var axisLayout = coordSys.getAxisLayout(dim);
    var builderOpt = util["extend"]({
      strokeContainThreshold: areaWidth
    }, axisLayout);
    var axisBuilder = new axis_AxisBuilder(axisModel, builderOpt);
    util["each"](elementList, axisBuilder.add, axisBuilder);
    this._axisGroup.add(axisBuilder.getGroup());
    this._refreshBrushController(builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api);
    groupTransition(oldAxisGroup, this._axisGroup, axisModel);
  };
  // /**
  //  * @override
  //  */
  // updateVisual(axisModel, ecModel, api, payload) {
  //     this._brushController && this._brushController
  //         .updateCovers(getCoverInfoList(axisModel));
  // }
  ParallelAxisView.prototype._refreshBrushController = function (builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api) {
    // After filtering, axis may change, select area needs to be update.
    var extent = axisModel.axis.getExtent();
    var extentLen = extent[1] - extent[0];
    var extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value.
    // width/height might be negative, which will be
    // normalized in BoundingRect.
    var rect = core_BoundingRect.create({
      x: extent[0],
      y: -areaWidth / 2,
      width: extentLen,
      height: areaWidth
    });
    rect.x -= extra;
    rect.width += 2 * extra;
    this._brushController.mount({
      enableGlobalPan: true,
      rotation: builderOpt.rotation,
      x: builderOpt.position[0],
      y: builderOpt.position[1]
    }).setPanels([{
      panelId: 'pl',
      clipPath: makeRectPanelClipPath(rect),
      isTargetByCursor: makeRectIsTargetByCursor(rect, api, coordSysModel),
      getLinearBrushOtherExtent: makeLinearBrushOtherExtent(rect, 0)
    }]).enableBrush({
      brushType: 'lineX',
      brushStyle: areaSelectStyle,
      removeOnClick: true
    }).updateCovers(getCoverInfoList(axisModel));
  };
  ParallelAxisView.prototype._onBrush = function (eventParam) {
    var coverInfoList = eventParam.areas;
    // Do not cache these object, because the mey be changed.
    var axisModel = this.axisModel;
    var axis = axisModel.axis;
    var intervals = util["map"](coverInfoList, function (coverInfo) {
      return [axis.coordToData(coverInfo.range[0], true), axis.coordToData(coverInfo.range[1], true)];
    });
    // If realtime is true, action is not dispatched on drag end, because
    // the drag end emits the same params with the last drag move event,
    // and may have some delay when using touch pad.
    if (!axisModel.option.realtime === eventParam.isEnd || eventParam.removeOnClick) {
      // jshint ignore:line
      this.api.dispatchAction({
        type: 'axisAreaSelect',
        parallelAxisId: axisModel.id,
        intervals: intervals
      });
    }
  };
  ParallelAxisView.prototype.dispose = function () {
    this._brushController.dispose();
  };
  ParallelAxisView.type = 'parallelAxis';
  return ParallelAxisView;
}(view_Component);
function fromAxisAreaSelect(axisModel, ecModel, payload) {
  return payload && payload.type === 'axisAreaSelect' && ecModel.findComponents({
    mainType: 'parallelAxis',
    query: payload
  })[0] === axisModel;
}
function getCoverInfoList(axisModel) {
  var axis = axisModel.axis;
  return util["map"](axisModel.activeIntervals, function (interval) {
    return {
      brushType: 'lineX',
      panelId: 'pl',
      range: [axis.dataToCoord(interval[0], true), axis.dataToCoord(interval[1], true)]
    };
  });
}
function getCoordSysModel(axisModel, ecModel) {
  return ecModel.getComponent('parallel', axisModel.get('parallelIndex'));
}
/* harmony default export */ var axis_ParallelAxisView = (ParallelAxisView_ParallelAxisView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/parallelAxisAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var parallelAxisAction_actionInfo = {
  type: 'axisAreaSelect',
  event: 'axisAreaSelected'
  // update: 'updateVisual'
};
function installParallelActions(registers) {
  registers.registerAction(parallelAxisAction_actionInfo, function (payload, ecModel) {
    ecModel.eachComponent({
      mainType: 'parallelAxis',
      query: payload
    }, function (parallelAxisModel) {
      parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);
    });
  });
  /**
   * @payload
   */
  registers.registerAction('parallelAxisExpand', function (payload, ecModel) {
    ecModel.eachComponent({
      mainType: 'parallel',
      query: payload
    }, function (parallelModel) {
      parallelModel.setAxisExpand(payload);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/parallel/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var defaultAxisOption = {
  type: 'value',
  areaSelectStyle: {
    width: 20,
    borderWidth: 1,
    borderColor: 'rgba(160,197,232)',
    color: 'rgba(160,197,232)',
    opacity: 0.3
  },
  realtime: true,
  z: 10
};
function parallel_install_install(registers) {
  registers.registerComponentView(component_parallel_ParallelView);
  registers.registerComponentModel(parallel_ParallelModel);
  registers.registerCoordinateSystem('parallel', parallelCreator);
  registers.registerPreprocessor(parallelPreprocessor);
  registers.registerComponentModel(parallel_AxisModel);
  registers.registerComponentView(axis_ParallelAxisView);
  axisModelCreator(registers, 'parallel', parallel_AxisModel, defaultAxisOption);
  installParallelActions(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function chart_parallel_install_install(registers) {
  use(parallel_install_install);
  registers.registerChartView(parallel_ParallelView);
  registers.registerSeriesModel(ParallelSeries);
  registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, parallel_parallelVisual);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/SankeyView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var SankeyPathShape = /** @class */function () {
  function SankeyPathShape() {
    this.x1 = 0;
    this.y1 = 0;
    this.x2 = 0;
    this.y2 = 0;
    this.cpx1 = 0;
    this.cpy1 = 0;
    this.cpx2 = 0;
    this.cpy2 = 0;
    this.extent = 0;
  }
  return SankeyPathShape;
}();
var SankeyView_SankeyPath = /** @class */function (_super) {
  __extends(SankeyPath, _super);
  function SankeyPath(opts) {
    return _super.call(this, opts) || this;
  }
  SankeyPath.prototype.getDefaultShape = function () {
    return new SankeyPathShape();
  };
  SankeyPath.prototype.buildPath = function (ctx, shape) {
    var extent = shape.extent;
    ctx.moveTo(shape.x1, shape.y1);
    ctx.bezierCurveTo(shape.cpx1, shape.cpy1, shape.cpx2, shape.cpy2, shape.x2, shape.y2);
    if (shape.orient === 'vertical') {
      ctx.lineTo(shape.x2 + extent, shape.y2);
      ctx.bezierCurveTo(shape.cpx2 + extent, shape.cpy2, shape.cpx1 + extent, shape.cpy1, shape.x1 + extent, shape.y1);
    } else {
      ctx.lineTo(shape.x2, shape.y2 + extent);
      ctx.bezierCurveTo(shape.cpx2, shape.cpy2 + extent, shape.cpx1, shape.cpy1 + extent, shape.x1, shape.y1 + extent);
    }
    ctx.closePath();
  };
  SankeyPath.prototype.highlight = function () {
    enterEmphasis(this);
  };
  SankeyPath.prototype.downplay = function () {
    leaveEmphasis(this);
  };
  return SankeyPath;
}(graphic_Path);
var SankeyView_SankeyView = /** @class */function (_super) {
  __extends(SankeyView, _super);
  function SankeyView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SankeyView.type;
    _this._focusAdjacencyDisabled = false;
    return _this;
  }
  SankeyView.prototype.render = function (seriesModel, ecModel, api) {
    var sankeyView = this;
    var graph = seriesModel.getGraph();
    var group = this.group;
    var layoutInfo = seriesModel.layoutInfo;
    // view width
    var width = layoutInfo.width;
    // view height
    var height = layoutInfo.height;
    var nodeData = seriesModel.getData();
    var edgeData = seriesModel.getData('edge');
    var orient = seriesModel.get('orient');
    this._model = seriesModel;
    group.removeAll();
    group.x = layoutInfo.x;
    group.y = layoutInfo.y;
    // generate a bezire Curve for each edge
    graph.eachEdge(function (edge) {
      var curve = new SankeyView_SankeyPath();
      var ecData = getECData(curve);
      ecData.dataIndex = edge.dataIndex;
      ecData.seriesIndex = seriesModel.seriesIndex;
      ecData.dataType = 'edge';
      var edgeModel = edge.getModel();
      var lineStyleModel = edgeModel.getModel('lineStyle');
      var curvature = lineStyleModel.get('curveness');
      var n1Layout = edge.node1.getLayout();
      var node1Model = edge.node1.getModel();
      var dragX1 = node1Model.get('localX');
      var dragY1 = node1Model.get('localY');
      var n2Layout = edge.node2.getLayout();
      var node2Model = edge.node2.getModel();
      var dragX2 = node2Model.get('localX');
      var dragY2 = node2Model.get('localY');
      var edgeLayout = edge.getLayout();
      var x1;
      var y1;
      var x2;
      var y2;
      var cpx1;
      var cpy1;
      var cpx2;
      var cpy2;
      curve.shape.extent = Math.max(1, edgeLayout.dy);
      curve.shape.orient = orient;
      if (orient === 'vertical') {
        x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + edgeLayout.sy;
        y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + n1Layout.dy;
        x2 = (dragX2 != null ? dragX2 * width : n2Layout.x) + edgeLayout.ty;
        y2 = dragY2 != null ? dragY2 * height : n2Layout.y;
        cpx1 = x1;
        cpy1 = y1 * (1 - curvature) + y2 * curvature;
        cpx2 = x2;
        cpy2 = y1 * curvature + y2 * (1 - curvature);
      } else {
        x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + n1Layout.dx;
        y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + edgeLayout.sy;
        x2 = dragX2 != null ? dragX2 * width : n2Layout.x;
        y2 = (dragY2 != null ? dragY2 * height : n2Layout.y) + edgeLayout.ty;
        cpx1 = x1 * (1 - curvature) + x2 * curvature;
        cpy1 = y1;
        cpx2 = x1 * curvature + x2 * (1 - curvature);
        cpy2 = y2;
      }
      curve.setShape({
        x1: x1,
        y1: y1,
        x2: x2,
        y2: y2,
        cpx1: cpx1,
        cpy1: cpy1,
        cpx2: cpx2,
        cpy2: cpy2
      });
      curve.useStyle(lineStyleModel.getItemStyle());
      // Special color, use source node color or target node color
      applyCurveStyle(curve.style, orient, edge);
      var defaultEdgeLabelText = "" + edgeModel.get('value');
      var edgeLabelStateModels = getLabelStatesModels(edgeModel, 'edgeLabel');
      setLabelStyle(curve, edgeLabelStateModels, {
        labelFetcher: {
          getFormattedLabel: function (dataIndex, stateName, dataType, labelDimIndex, formatter, extendParams) {
            return seriesModel.getFormattedLabel(dataIndex, stateName, 'edge', labelDimIndex,
            // ensure edgeLabel formatter is provided
            // to prevent the inheritance from `label.formatter` of the series
            Object(util["retrieve3"])(formatter, edgeLabelStateModels.normal && edgeLabelStateModels.normal.get('formatter'), defaultEdgeLabelText), extendParams);
          }
        },
        labelDataIndex: edge.dataIndex,
        defaultText: defaultEdgeLabelText
      });
      curve.setTextConfig({
        position: 'inside'
      });
      var emphasisModel = edgeModel.getModel('emphasis');
      setStatesStylesFromModel(curve, edgeModel, 'lineStyle', function (model) {
        var style = model.getItemStyle();
        applyCurveStyle(style, orient, edge);
        return style;
      });
      group.add(curve);
      edgeData.setItemGraphicEl(edge.dataIndex, curve);
      var focus = emphasisModel.get('focus');
      toggleHoverEmphasis(curve, focus === 'adjacency' ? edge.getAdjacentDataIndices() : focus === 'trajectory' ? edge.getTrajectoryDataIndices() : focus, emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
    });
    // Generate a rect for each node
    graph.eachNode(function (node) {
      var layout = node.getLayout();
      var itemModel = node.getModel();
      var dragX = itemModel.get('localX');
      var dragY = itemModel.get('localY');
      var emphasisModel = itemModel.getModel('emphasis');
      var borderRadius = itemModel.get(['itemStyle', 'borderRadius']) || 0;
      var rect = new shape_Rect({
        shape: {
          x: dragX != null ? dragX * width : layout.x,
          y: dragY != null ? dragY * height : layout.y,
          width: layout.dx,
          height: layout.dy,
          r: borderRadius
        },
        style: itemModel.getModel('itemStyle').getItemStyle(),
        z2: 10
      });
      setLabelStyle(rect, getLabelStatesModels(itemModel), {
        labelFetcher: {
          getFormattedLabel: function (dataIndex, stateName) {
            return seriesModel.getFormattedLabel(dataIndex, stateName, 'node');
          }
        },
        labelDataIndex: node.dataIndex,
        defaultText: node.id
      });
      rect.disableLabelAnimation = true;
      rect.setStyle('fill', node.getVisual('color'));
      rect.setStyle('decal', node.getVisual('style').decal);
      setStatesStylesFromModel(rect, itemModel);
      group.add(rect);
      nodeData.setItemGraphicEl(node.dataIndex, rect);
      getECData(rect).dataType = 'node';
      var focus = emphasisModel.get('focus');
      toggleHoverEmphasis(rect, focus === 'adjacency' ? node.getAdjacentDataIndices() : focus === 'trajectory' ? node.getTrajectoryDataIndices() : focus, emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
    });
    nodeData.eachItemGraphicEl(function (el, dataIndex) {
      var itemModel = nodeData.getItemModel(dataIndex);
      if (itemModel.get('draggable')) {
        el.drift = function (dx, dy) {
          sankeyView._focusAdjacencyDisabled = true;
          this.shape.x += dx;
          this.shape.y += dy;
          this.dirty();
          api.dispatchAction({
            type: 'dragNode',
            seriesId: seriesModel.id,
            dataIndex: nodeData.getRawIndex(dataIndex),
            localX: this.shape.x / width,
            localY: this.shape.y / height
          });
        };
        el.ondragend = function () {
          sankeyView._focusAdjacencyDisabled = false;
        };
        el.draggable = true;
        el.cursor = 'move';
      }
    });
    if (!this._data && seriesModel.isAnimationEnabled()) {
      group.setClipPath(SankeyView_createGridClipShape(group.getBoundingRect(), seriesModel, function () {
        group.removeClipPath();
      }));
    }
    this._data = seriesModel.getData();
  };
  SankeyView.prototype.dispose = function () {};
  SankeyView.type = 'sankey';
  return SankeyView;
}(Chart);
/**
 * Special color, use source node color or target node color
 * @param curveProps curve's style to parse
 * @param orient direction
 * @param edge current curve data
 */
function applyCurveStyle(curveProps, orient, edge) {
  switch (curveProps.fill) {
    case 'source':
      curveProps.fill = edge.node1.getVisual('color');
      curveProps.decal = edge.node1.getVisual('style').decal;
      break;
    case 'target':
      curveProps.fill = edge.node2.getVisual('color');
      curveProps.decal = edge.node2.getVisual('style').decal;
      break;
    case 'gradient':
      var sourceColor = edge.node1.getVisual('color');
      var targetColor = edge.node2.getVisual('color');
      if (Object(util["isString"])(sourceColor) && Object(util["isString"])(targetColor)) {
        curveProps.fill = new graphic_LinearGradient(0, 0, +(orient === 'horizontal'), +(orient === 'vertical'), [{
          color: sourceColor,
          offset: 0
        }, {
          color: targetColor,
          offset: 1
        }]);
      }
  }
}
// Add animation to the view
function SankeyView_createGridClipShape(rect, seriesModel, cb) {
  var rectEl = new shape_Rect({
    shape: {
      x: rect.x - 10,
      y: rect.y - 10,
      width: 0,
      height: rect.height + 20
    }
  });
  initProps(rectEl, {
    shape: {
      width: rect.width + 20
    }
  }, seriesModel, cb);
  return rectEl;
}
/* harmony default export */ var sankey_SankeyView = (SankeyView_SankeyView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/SankeySeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var SankeySeries_SankeySeriesModel = /** @class */function (_super) {
  __extends(SankeySeriesModel, _super);
  function SankeySeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SankeySeriesModel.type;
    return _this;
  }
  /**
   * Init a graph data structure from data in option series
   */
  SankeySeriesModel.prototype.getInitialData = function (option, ecModel) {
    var links = option.edges || option.links || [];
    var nodes = option.data || option.nodes || [];
    var levels = option.levels || [];
    this.levelModels = [];
    var levelModels = this.levelModels;
    for (var i = 0; i < levels.length; i++) {
      if (levels[i].depth != null && levels[i].depth >= 0) {
        levelModels[levels[i].depth] = new model_Model(levels[i], this, ecModel);
      } else {
        if (false) {}
      }
    }
    var graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink);
    return graph.data;
    function beforeLink(nodeData, edgeData) {
      nodeData.wrapMethod('getItemModel', function (model, idx) {
        var seriesModel = model.parentModel;
        var layout = seriesModel.getData().getItemLayout(idx);
        if (layout) {
          var nodeDepth = layout.depth;
          var levelModel = seriesModel.levelModels[nodeDepth];
          if (levelModel) {
            model.parentModel = levelModel;
          }
        }
        return model;
      });
      edgeData.wrapMethod('getItemModel', function (model, idx) {
        var seriesModel = model.parentModel;
        var edge = seriesModel.getGraph().getEdgeByIndex(idx);
        var layout = edge.node1.getLayout();
        if (layout) {
          var depth = layout.depth;
          var levelModel = seriesModel.levelModels[depth];
          if (levelModel) {
            model.parentModel = levelModel;
          }
        }
        return model;
      });
    }
  };
  SankeySeriesModel.prototype.setNodePosition = function (dataIndex, localPosition) {
    var nodes = this.option.data || this.option.nodes;
    var dataItem = nodes[dataIndex];
    dataItem.localX = localPosition[0];
    dataItem.localY = localPosition[1];
  };
  /**
   * Return the graphic data structure
   *
   * @return graphic data structure
   */
  SankeySeriesModel.prototype.getGraph = function () {
    return this.getData().graph;
  };
  /**
   * Get edge data of graphic data structure
   *
   * @return data structure of list
   */
  SankeySeriesModel.prototype.getEdgeData = function () {
    return this.getGraph().edgeData;
  };
  SankeySeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    function noValue(val) {
      return isNaN(val) || val == null;
    }
    // dataType === 'node' or empty do not show tooltip by default
    if (dataType === 'edge') {
      var params = this.getDataParams(dataIndex, dataType);
      var rawDataOpt = params.data;
      var edgeValue = params.value;
      var edgeName = rawDataOpt.source + ' -- ' + rawDataOpt.target;
      return createTooltipMarkup('nameValue', {
        name: edgeName,
        value: edgeValue,
        noValue: noValue(edgeValue)
      });
    }
    // dataType === 'node'
    else {
      var node = this.getGraph().getNodeByIndex(dataIndex);
      var value = node.getLayout().value;
      var name_1 = this.getDataParams(dataIndex, dataType).data.name;
      return createTooltipMarkup('nameValue', {
        name: name_1 != null ? name_1 + '' : null,
        value: value,
        noValue: noValue(value)
      });
    }
  };
  SankeySeriesModel.prototype.optionUpdated = function () {};
  // Override Series.getDataParams()
  SankeySeriesModel.prototype.getDataParams = function (dataIndex, dataType) {
    var params = _super.prototype.getDataParams.call(this, dataIndex, dataType);
    if (params.value == null && dataType === 'node') {
      var node = this.getGraph().getNodeByIndex(dataIndex);
      var nodeValue = node.getLayout().value;
      params.value = nodeValue;
    }
    return params;
  };
  SankeySeriesModel.type = 'series.sankey';
  SankeySeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    coordinateSystem: 'view',
    left: '5%',
    top: '5%',
    right: '20%',
    bottom: '5%',
    orient: 'horizontal',
    nodeWidth: 20,
    nodeGap: 8,
    draggable: true,
    layoutIterations: 32,
    label: {
      show: true,
      position: 'right',
      fontSize: 12
    },
    edgeLabel: {
      show: false,
      fontSize: 12
    },
    levels: [],
    nodeAlign: 'justify',
    lineStyle: {
      color: '#314656',
      opacity: 0.2,
      curveness: 0.5
    },
    emphasis: {
      label: {
        show: true
      },
      lineStyle: {
        opacity: 0.5
      }
    },
    select: {
      itemStyle: {
        borderColor: '#212121'
      }
    },
    animationEasing: 'linear',
    animationDuration: 1000
  };
  return SankeySeriesModel;
}(Series);
/* harmony default export */ var SankeySeries = (SankeySeries_SankeySeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/sankeyLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function sankeyLayout(ecModel, api) {
  ecModel.eachSeriesByType('sankey', function (seriesModel) {
    var nodeWidth = seriesModel.get('nodeWidth');
    var nodeGap = seriesModel.get('nodeGap');
    var layoutInfo = sankeyLayout_getViewRect(seriesModel, api);
    seriesModel.layoutInfo = layoutInfo;
    var width = layoutInfo.width;
    var height = layoutInfo.height;
    var graph = seriesModel.getGraph();
    var nodes = graph.nodes;
    var edges = graph.edges;
    computeNodeValues(nodes);
    var filteredNodes = util["filter"](nodes, function (node) {
      return node.getLayout().value === 0;
    });
    var iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations');
    var orient = seriesModel.get('orient');
    var nodeAlign = seriesModel.get('nodeAlign');
    layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign);
  });
}
/**
 * Get the layout position of the whole view
 */
function sankeyLayout_getViewRect(seriesModel, api) {
  return getLayoutRect(seriesModel.getBoxLayoutParams(), {
    width: api.getWidth(),
    height: api.getHeight()
  });
}
function layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign) {
  computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign);
  computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient);
  computeEdgeDepths(nodes, orient);
}
/**
 * Compute the value of each node by summing the associated edge's value
 */
function computeNodeValues(nodes) {
  util["each"](nodes, function (node) {
    var value1 = sankeyLayout_sum(node.outEdges, getEdgeValue);
    var value2 = sankeyLayout_sum(node.inEdges, getEdgeValue);
    var nodeRawValue = node.getValue() || 0;
    var value = Math.max(value1, value2, nodeRawValue);
    node.setLayout({
      value: value
    }, true);
  });
}
/**
 * Compute the x-position for each node.
 *
 * Here we use Kahn algorithm to detect cycle when we traverse
 * the node to computer the initial x position.
 */
function computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign) {
  // Used to mark whether the edge is deleted. if it is deleted,
  // the value is 0, otherwise it is 1.
  var remainEdges = [];
  // Storage each node's indegree.
  var indegreeArr = [];
  // Used to storage the node with indegree is equal to 0.
  var zeroIndegrees = [];
  var nextTargetNode = [];
  var x = 0;
  // let kx = 0;
  for (var i = 0; i < edges.length; i++) {
    remainEdges[i] = 1;
  }
  for (var i = 0; i < nodes.length; i++) {
    indegreeArr[i] = nodes[i].inEdges.length;
    if (indegreeArr[i] === 0) {
      zeroIndegrees.push(nodes[i]);
    }
  }
  var maxNodeDepth = -1;
  // Traversing nodes using topological sorting to calculate the
  // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical')
  // position of the nodes.
  while (zeroIndegrees.length) {
    for (var idx = 0; idx < zeroIndegrees.length; idx++) {
      var node = zeroIndegrees[idx];
      var item = node.hostGraph.data.getRawDataItem(node.dataIndex);
      var isItemDepth = item.depth != null && item.depth >= 0;
      if (isItemDepth && item.depth > maxNodeDepth) {
        maxNodeDepth = item.depth;
      }
      node.setLayout({
        depth: isItemDepth ? item.depth : x
      }, true);
      orient === 'vertical' ? node.setLayout({
        dy: nodeWidth
      }, true) : node.setLayout({
        dx: nodeWidth
      }, true);
      for (var edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) {
        var edge = node.outEdges[edgeIdx];
        var indexEdge = edges.indexOf(edge);
        remainEdges[indexEdge] = 0;
        var targetNode = edge.node2;
        var nodeIndex = nodes.indexOf(targetNode);
        if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) {
          nextTargetNode.push(targetNode);
        }
      }
    }
    ++x;
    zeroIndegrees = nextTargetNode;
    nextTargetNode = [];
  }
  for (var i = 0; i < remainEdges.length; i++) {
    if (remainEdges[i] === 1) {
      throw new Error('Sankey is a DAG, the original data has cycle!');
    }
  }
  var maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;
  if (nodeAlign && nodeAlign !== 'left') {
    adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth);
  }
  var kx = orient === 'vertical' ? (height - nodeWidth) / maxDepth : (width - nodeWidth) / maxDepth;
  scaleNodeBreadths(nodes, kx, orient);
}
function isNodeDepth(node) {
  var item = node.hostGraph.data.getRawDataItem(node.dataIndex);
  return item.depth != null && item.depth >= 0;
}
function adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth) {
  if (nodeAlign === 'right') {
    var nextSourceNode = [];
    var remainNodes = nodes;
    var nodeHeight = 0;
    while (remainNodes.length) {
      for (var i = 0; i < remainNodes.length; i++) {
        var node = remainNodes[i];
        node.setLayout({
          skNodeHeight: nodeHeight
        }, true);
        for (var j = 0; j < node.inEdges.length; j++) {
          var edge = node.inEdges[j];
          if (nextSourceNode.indexOf(edge.node1) < 0) {
            nextSourceNode.push(edge.node1);
          }
        }
      }
      remainNodes = nextSourceNode;
      nextSourceNode = [];
      ++nodeHeight;
    }
    util["each"](nodes, function (node) {
      if (!isNodeDepth(node)) {
        node.setLayout({
          depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight)
        }, true);
      }
    });
  } else if (nodeAlign === 'justify') {
    moveSinksRight(nodes, maxDepth);
  }
}
/**
 * All the node without outEgdes are assigned maximum x-position and
 *     be aligned in the last column.
 *
 * @param nodes.  node of sankey view.
 * @param maxDepth.  use to assign to node without outEdges as x-position.
 */
function moveSinksRight(nodes, maxDepth) {
  util["each"](nodes, function (node) {
    if (!isNodeDepth(node) && !node.outEdges.length) {
      node.setLayout({
        depth: maxDepth
      }, true);
    }
  });
}
/**
 * Scale node x-position to the width
 *
 * @param nodes  node of sankey view
 * @param kx   multiple used to scale nodes
 */
function scaleNodeBreadths(nodes, kx, orient) {
  util["each"](nodes, function (node) {
    var nodeDepth = node.getLayout().depth * kx;
    orient === 'vertical' ? node.setLayout({
      y: nodeDepth
    }, true) : node.setLayout({
      x: nodeDepth
    }, true);
  });
}
/**
 * Using Gauss-Seidel iterations method to compute the node depth(y-position)
 *
 * @param nodes  node of sankey view
 * @param edges  edge of sankey view
 * @param height  the whole height of the area to draw the view
 * @param nodeGap  the vertical distance between two nodes
 *     in the same column.
 * @param iterations  the number of iterations for the algorithm
 */
function computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient) {
  var nodesByBreadth = prepareNodesByBreadth(nodes, orient);
  initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient);
  resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);
  for (var alpha = 1; iterations > 0; iterations--) {
    // 0.99 is a experience parameter, ensure that each iterations of
    // changes as small as possible.
    alpha *= 0.99;
    relaxRightToLeft(nodesByBreadth, alpha, orient);
    resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);
    relaxLeftToRight(nodesByBreadth, alpha, orient);
    resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);
  }
}
function prepareNodesByBreadth(nodes, orient) {
  var nodesByBreadth = [];
  var keyAttr = orient === 'vertical' ? 'y' : 'x';
  var groupResult = groupData(nodes, function (node) {
    return node.getLayout()[keyAttr];
  });
  groupResult.keys.sort(function (a, b) {
    return a - b;
  });
  util["each"](groupResult.keys, function (key) {
    nodesByBreadth.push(groupResult.buckets.get(key));
  });
  return nodesByBreadth;
}
/**
 * Compute the original y-position for each node
 */
function initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient) {
  var minKy = Infinity;
  util["each"](nodesByBreadth, function (nodes) {
    var n = nodes.length;
    var sum = 0;
    util["each"](nodes, function (node) {
      sum += node.getLayout().value;
    });
    var ky = orient === 'vertical' ? (width - (n - 1) * nodeGap) / sum : (height - (n - 1) * nodeGap) / sum;
    if (ky < minKy) {
      minKy = ky;
    }
  });
  util["each"](nodesByBreadth, function (nodes) {
    util["each"](nodes, function (node, i) {
      var nodeDy = node.getLayout().value * minKy;
      if (orient === 'vertical') {
        node.setLayout({
          x: i
        }, true);
        node.setLayout({
          dx: nodeDy
        }, true);
      } else {
        node.setLayout({
          y: i
        }, true);
        node.setLayout({
          dy: nodeDy
        }, true);
      }
    });
  });
  util["each"](edges, function (edge) {
    var edgeDy = +edge.getValue() * minKy;
    edge.setLayout({
      dy: edgeDy
    }, true);
  });
}
/**
 * Resolve the collision of initialized depth (y-position)
 */
function resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) {
  var keyAttr = orient === 'vertical' ? 'x' : 'y';
  util["each"](nodesByBreadth, function (nodes) {
    nodes.sort(function (a, b) {
      return a.getLayout()[keyAttr] - b.getLayout()[keyAttr];
    });
    var nodeX;
    var node;
    var dy;
    var y0 = 0;
    var n = nodes.length;
    var nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy';
    for (var i = 0; i < n; i++) {
      node = nodes[i];
      dy = y0 - node.getLayout()[keyAttr];
      if (dy > 0) {
        nodeX = node.getLayout()[keyAttr] + dy;
        orient === 'vertical' ? node.setLayout({
          x: nodeX
        }, true) : node.setLayout({
          y: nodeX
        }, true);
      }
      y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap;
    }
    var viewWidth = orient === 'vertical' ? width : height;
    // If the bottommost node goes outside the bounds, push it back up
    dy = y0 - nodeGap - viewWidth;
    if (dy > 0) {
      nodeX = node.getLayout()[keyAttr] - dy;
      orient === 'vertical' ? node.setLayout({
        x: nodeX
      }, true) : node.setLayout({
        y: nodeX
      }, true);
      y0 = nodeX;
      for (var i = n - 2; i >= 0; --i) {
        node = nodes[i];
        dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0;
        if (dy > 0) {
          nodeX = node.getLayout()[keyAttr] - dy;
          orient === 'vertical' ? node.setLayout({
            x: nodeX
          }, true) : node.setLayout({
            y: nodeX
          }, true);
        }
        y0 = node.getLayout()[keyAttr];
      }
    }
  });
}
/**
 * Change the y-position of the nodes, except most the right side nodes
 * @param nodesByBreadth
 * @param alpha  parameter used to adjust the nodes y-position
 */
function relaxRightToLeft(nodesByBreadth, alpha, orient) {
  util["each"](nodesByBreadth.slice().reverse(), function (nodes) {
    util["each"](nodes, function (node) {
      if (node.outEdges.length) {
        var y = sankeyLayout_sum(node.outEdges, weightedTarget, orient) / sankeyLayout_sum(node.outEdges, getEdgeValue);
        if (isNaN(y)) {
          var len = node.outEdges.length;
          y = len ? sankeyLayout_sum(node.outEdges, centerTarget, orient) / len : 0;
        }
        if (orient === 'vertical') {
          var nodeX = node.getLayout().x + (y - sankeyLayout_center(node, orient)) * alpha;
          node.setLayout({
            x: nodeX
          }, true);
        } else {
          var nodeY = node.getLayout().y + (y - sankeyLayout_center(node, orient)) * alpha;
          node.setLayout({
            y: nodeY
          }, true);
        }
      }
    });
  });
}
function weightedTarget(edge, orient) {
  return sankeyLayout_center(edge.node2, orient) * edge.getValue();
}
function centerTarget(edge, orient) {
  return sankeyLayout_center(edge.node2, orient);
}
function weightedSource(edge, orient) {
  return sankeyLayout_center(edge.node1, orient) * edge.getValue();
}
function centerSource(edge, orient) {
  return sankeyLayout_center(edge.node1, orient);
}
function sankeyLayout_center(node, orient) {
  return orient === 'vertical' ? node.getLayout().x + node.getLayout().dx / 2 : node.getLayout().y + node.getLayout().dy / 2;
}
function getEdgeValue(edge) {
  return edge.getValue();
}
function sankeyLayout_sum(array, cb, orient) {
  var sum = 0;
  var len = array.length;
  var i = -1;
  while (++i < len) {
    var value = +cb(array[i], orient);
    if (!isNaN(value)) {
      sum += value;
    }
  }
  return sum;
}
/**
 * Change the y-position of the nodes, except most the left side nodes
 */
function relaxLeftToRight(nodesByBreadth, alpha, orient) {
  util["each"](nodesByBreadth, function (nodes) {
    util["each"](nodes, function (node) {
      if (node.inEdges.length) {
        var y = sankeyLayout_sum(node.inEdges, weightedSource, orient) / sankeyLayout_sum(node.inEdges, getEdgeValue);
        if (isNaN(y)) {
          var len = node.inEdges.length;
          y = len ? sankeyLayout_sum(node.inEdges, centerSource, orient) / len : 0;
        }
        if (orient === 'vertical') {
          var nodeX = node.getLayout().x + (y - sankeyLayout_center(node, orient)) * alpha;
          node.setLayout({
            x: nodeX
          }, true);
        } else {
          var nodeY = node.getLayout().y + (y - sankeyLayout_center(node, orient)) * alpha;
          node.setLayout({
            y: nodeY
          }, true);
        }
      }
    });
  });
}
/**
 * Compute the depth(y-position) of each edge
 */
function computeEdgeDepths(nodes, orient) {
  var keyAttr = orient === 'vertical' ? 'x' : 'y';
  util["each"](nodes, function (node) {
    node.outEdges.sort(function (a, b) {
      return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr];
    });
    node.inEdges.sort(function (a, b) {
      return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr];
    });
  });
  util["each"](nodes, function (node) {
    var sy = 0;
    var ty = 0;
    util["each"](node.outEdges, function (edge) {
      edge.setLayout({
        sy: sy
      }, true);
      sy += edge.getLayout().dy;
    });
    util["each"](node.inEdges, function (edge) {
      edge.setLayout({
        ty: ty
      }, true);
      ty += edge.getLayout().dy;
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/sankeyVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function sankeyVisual(ecModel) {
  ecModel.eachSeriesByType('sankey', function (seriesModel) {
    var graph = seriesModel.getGraph();
    var nodes = graph.nodes;
    var edges = graph.edges;
    if (nodes.length) {
      var minValue_1 = Infinity;
      var maxValue_1 = -Infinity;
      util["each"](nodes, function (node) {
        var nodeValue = node.getLayout().value;
        if (nodeValue < minValue_1) {
          minValue_1 = nodeValue;
        }
        if (nodeValue > maxValue_1) {
          maxValue_1 = nodeValue;
        }
      });
      util["each"](nodes, function (node) {
        var mapping = new visual_VisualMapping({
          type: 'color',
          mappingMethod: 'linear',
          dataExtent: [minValue_1, maxValue_1],
          visual: seriesModel.get('color')
        });
        var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);
        var customColor = node.getModel().get(['itemStyle', 'color']);
        if (customColor != null) {
          node.setVisual('color', customColor);
          node.setVisual('style', {
            fill: customColor
          });
        } else {
          node.setVisual('color', mapValueToColor);
          node.setVisual('style', {
            fill: mapValueToColor
          });
        }
      });
    }
    if (edges.length) {
      util["each"](edges, function (edge) {
        var edgeStyle = edge.getModel().get('lineStyle');
        edge.setVisual('style', edgeStyle);
      });
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function sankey_install_install(registers) {
  registers.registerChartView(sankey_SankeyView);
  registers.registerSeriesModel(SankeySeries);
  registers.registerLayout(sankeyLayout);
  registers.registerVisual(sankeyVisual);
  registers.registerAction({
    type: 'dragNode',
    event: 'dragnode',
    // here can only use 'update' now, other value is not support in echarts.
    update: 'update'
  }, function (payload, ecModel) {
    ecModel.eachComponent({
      mainType: 'series',
      subType: 'sankey',
      query: payload
    }, function (seriesModel) {
      seriesModel.setNodePosition(payload.dataIndex, [payload.localX, payload.localY]);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var whiskerBoxCommon_WhiskerBoxCommonMixin = /** @class */function () {
  function WhiskerBoxCommonMixin() {}
  /**
   * @private
   */
  WhiskerBoxCommonMixin.prototype._hasEncodeRule = function (key) {
    var encodeRules = this.getEncode();
    return encodeRules && encodeRules.get(key) != null;
  };
  /**
   * @override
   */
  WhiskerBoxCommonMixin.prototype.getInitialData = function (option, ecModel) {
    // When both types of xAxis and yAxis are 'value', layout is
    // needed to be specified by user. Otherwise, layout can be
    // judged by which axis is category.
    var ordinalMeta;
    var xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex'));
    var yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex'));
    var xAxisType = xAxisModel.get('type');
    var yAxisType = yAxisModel.get('type');
    var addOrdinal;
    // FIXME
    // Consider time axis.
    if (xAxisType === 'category') {
      option.layout = 'horizontal';
      ordinalMeta = xAxisModel.getOrdinalMeta();
      addOrdinal = !this._hasEncodeRule('x');
    } else if (yAxisType === 'category') {
      option.layout = 'vertical';
      ordinalMeta = yAxisModel.getOrdinalMeta();
      addOrdinal = !this._hasEncodeRule('y');
    } else {
      option.layout = option.layout || 'horizontal';
    }
    var coordDims = ['x', 'y'];
    var baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1;
    var baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex];
    var otherAxisDim = coordDims[1 - baseAxisDimIndex];
    var axisModels = [xAxisModel, yAxisModel];
    var baseAxisType = axisModels[baseAxisDimIndex].get('type');
    var otherAxisType = axisModels[1 - baseAxisDimIndex].get('type');
    var data = option.data;
    // Clone a new data for next setOption({}) usage.
    // Avoid modifying current data will affect further update.
    if (data && addOrdinal) {
      var newOptionData_1 = [];
      util["each"](data, function (item, index) {
        var newItem;
        if (util["isArray"](item)) {
          newItem = item.slice();
          // Modify current using data.
          item.unshift(index);
        } else if (util["isArray"](item.value)) {
          newItem = util["extend"]({}, item);
          newItem.value = newItem.value.slice();
          // Modify current using data.
          item.value.unshift(index);
        } else {
          newItem = item;
        }
        newOptionData_1.push(newItem);
      });
      option.data = newOptionData_1;
    }
    var defaultValueDimensions = this.defaultValueDimensions;
    var coordDimensions = [{
      name: baseAxisDim,
      type: getDimensionTypeByAxis(baseAxisType),
      ordinalMeta: ordinalMeta,
      otherDims: {
        tooltip: false,
        itemName: 0
      },
      dimsDef: ['base']
    }, {
      name: otherAxisDim,
      type: getDimensionTypeByAxis(otherAxisType),
      dimsDef: defaultValueDimensions.slice()
    }];
    return createSeriesDataSimply(this, {
      coordDimensions: coordDimensions,
      dimensionsCount: defaultValueDimensions.length + 1,
      encodeDefaulter: util["curry"](makeSeriesEncodeForAxisCoordSys, coordDimensions, this)
    });
  };
  /**
   * If horizontal, base axis is x, otherwise y.
   * @override
   */
  WhiskerBoxCommonMixin.prototype.getBaseAxis = function () {
    var dim = this._baseAxisDim;
    return this.ecModel.getComponent(dim + 'Axis', this.get(dim + 'AxisIndex')).axis;
  };
  return WhiskerBoxCommonMixin;
}();
;

// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var BoxplotSeries_BoxplotSeriesModel = /** @class */function (_super) {
  __extends(BoxplotSeriesModel, _super);
  function BoxplotSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = BoxplotSeriesModel.type;
    // TODO
    // box width represents group size, so dimension should have 'size'.
    /**
     * @see <https://en.wikipedia.org/wiki/Box_plot>
     * The meanings of 'min' and 'max' depend on user,
     * and echarts do not need to know it.
     * @readOnly
     */
    _this.defaultValueDimensions = [{
      name: 'min',
      defaultTooltip: true
    }, {
      name: 'Q1',
      defaultTooltip: true
    }, {
      name: 'median',
      defaultTooltip: true
    }, {
      name: 'Q3',
      defaultTooltip: true
    }, {
      name: 'max',
      defaultTooltip: true
    }];
    _this.visualDrawType = 'stroke';
    return _this;
  }
  BoxplotSeriesModel.type = 'series.boxplot';
  BoxplotSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid'];
  BoxplotSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    coordinateSystem: 'cartesian2d',
    legendHoverLink: true,
    layout: null,
    boxWidth: [7, 50],
    itemStyle: {
      color: '#fff',
      borderWidth: 1
    },
    emphasis: {
      scale: true,
      itemStyle: {
        borderWidth: 2,
        shadowBlur: 5,
        shadowOffsetX: 1,
        shadowOffsetY: 1,
        shadowColor: 'rgba(0,0,0,0.2)'
      }
    },
    animationDuration: 800
  };
  return BoxplotSeriesModel;
}(Series);
Object(util["mixin"])(BoxplotSeries_BoxplotSeriesModel, whiskerBoxCommon_WhiskerBoxCommonMixin, true);
/* harmony default export */ var BoxplotSeries = (BoxplotSeries_BoxplotSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/BoxplotView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var BoxplotView_BoxplotView = /** @class */function (_super) {
  __extends(BoxplotView, _super);
  function BoxplotView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = BoxplotView.type;
    return _this;
  }
  BoxplotView.prototype.render = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var group = this.group;
    var oldData = this._data;
    // There is no old data only when first rendering or switching from
    // stream mode to normal mode, where previous elements should be removed.
    if (!this._data) {
      group.removeAll();
    }
    var constDim = seriesModel.get('layout') === 'horizontal' ? 1 : 0;
    data.diff(oldData).add(function (newIdx) {
      if (data.hasValue(newIdx)) {
        var itemLayout = data.getItemLayout(newIdx);
        var symbolEl = createNormalBox(itemLayout, data, newIdx, constDim, true);
        data.setItemGraphicEl(newIdx, symbolEl);
        group.add(symbolEl);
      }
    }).update(function (newIdx, oldIdx) {
      var symbolEl = oldData.getItemGraphicEl(oldIdx);
      // Empty data
      if (!data.hasValue(newIdx)) {
        group.remove(symbolEl);
        return;
      }
      var itemLayout = data.getItemLayout(newIdx);
      if (!symbolEl) {
        symbolEl = createNormalBox(itemLayout, data, newIdx, constDim);
      } else {
        saveOldStyle(symbolEl);
        updateNormalBoxData(itemLayout, symbolEl, data, newIdx);
      }
      group.add(symbolEl);
      data.setItemGraphicEl(newIdx, symbolEl);
    }).remove(function (oldIdx) {
      var el = oldData.getItemGraphicEl(oldIdx);
      el && group.remove(el);
    }).execute();
    this._data = data;
  };
  BoxplotView.prototype.remove = function (ecModel) {
    var group = this.group;
    var data = this._data;
    this._data = null;
    data && data.eachItemGraphicEl(function (el) {
      el && group.remove(el);
    });
  };
  BoxplotView.type = 'boxplot';
  return BoxplotView;
}(Chart);
var BoxPathShape = /** @class */function () {
  function BoxPathShape() {}
  return BoxPathShape;
}();
var BoxplotView_BoxPath = /** @class */function (_super) {
  __extends(BoxPath, _super);
  function BoxPath(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'boxplotBoxPath';
    return _this;
  }
  BoxPath.prototype.getDefaultShape = function () {
    return new BoxPathShape();
  };
  BoxPath.prototype.buildPath = function (ctx, shape) {
    var ends = shape.points;
    var i = 0;
    ctx.moveTo(ends[i][0], ends[i][1]);
    i++;
    for (; i < 4; i++) {
      ctx.lineTo(ends[i][0], ends[i][1]);
    }
    ctx.closePath();
    for (; i < ends.length; i++) {
      ctx.moveTo(ends[i][0], ends[i][1]);
      i++;
      ctx.lineTo(ends[i][0], ends[i][1]);
    }
  };
  return BoxPath;
}(graphic_Path);
function createNormalBox(itemLayout, data, dataIndex, constDim, isInit) {
  var ends = itemLayout.ends;
  var el = new BoxplotView_BoxPath({
    shape: {
      points: isInit ? transInit(ends, constDim, itemLayout) : ends
    }
  });
  updateNormalBoxData(itemLayout, el, data, dataIndex, isInit);
  return el;
}
function updateNormalBoxData(itemLayout, el, data, dataIndex, isInit) {
  var seriesModel = data.hostModel;
  var updateMethod = graphic_namespaceObject[isInit ? 'initProps' : 'updateProps'];
  updateMethod(el, {
    shape: {
      points: itemLayout.ends
    }
  }, seriesModel, dataIndex);
  el.useStyle(data.getItemVisual(dataIndex, 'style'));
  el.style.strokeNoScale = true;
  el.z2 = 100;
  var itemModel = data.getItemModel(dataIndex);
  var emphasisModel = itemModel.getModel('emphasis');
  setStatesStylesFromModel(el, itemModel);
  toggleHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
}
function transInit(points, dim, itemLayout) {
  return util["map"](points, function (point) {
    point = point.slice();
    point[dim] = itemLayout.initBaseline;
    return point;
  });
}
/* harmony default export */ var boxplot_BoxplotView = (BoxplotView_BoxplotView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/boxplotLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var boxplotLayout_each = util["each"];
function boxplotLayout(ecModel) {
  var groupResult = groupSeriesByAxis(ecModel);
  boxplotLayout_each(groupResult, function (groupItem) {
    var seriesModels = groupItem.seriesModels;
    if (!seriesModels.length) {
      return;
    }
    calculateBase(groupItem);
    boxplotLayout_each(seriesModels, function (seriesModel, idx) {
      layoutSingleSeries(seriesModel, groupItem.boxOffsetList[idx], groupItem.boxWidthList[idx]);
    });
  });
}
/**
 * Group series by axis.
 */
function groupSeriesByAxis(ecModel) {
  var result = [];
  var axisList = [];
  ecModel.eachSeriesByType('boxplot', function (seriesModel) {
    var baseAxis = seriesModel.getBaseAxis();
    var idx = util["indexOf"](axisList, baseAxis);
    if (idx < 0) {
      idx = axisList.length;
      axisList[idx] = baseAxis;
      result[idx] = {
        axis: baseAxis,
        seriesModels: []
      };
    }
    result[idx].seriesModels.push(seriesModel);
  });
  return result;
}
/**
 * Calculate offset and box width for each series.
 */
function calculateBase(groupItem) {
  var baseAxis = groupItem.axis;
  var seriesModels = groupItem.seriesModels;
  var seriesCount = seriesModels.length;
  var boxWidthList = groupItem.boxWidthList = [];
  var boxOffsetList = groupItem.boxOffsetList = [];
  var boundList = [];
  var bandWidth;
  if (baseAxis.type === 'category') {
    bandWidth = baseAxis.getBandWidth();
  } else {
    var maxDataCount_1 = 0;
    boxplotLayout_each(seriesModels, function (seriesModel) {
      maxDataCount_1 = Math.max(maxDataCount_1, seriesModel.getData().count());
    });
    var extent = baseAxis.getExtent();
    bandWidth = Math.abs(extent[1] - extent[0]) / maxDataCount_1;
  }
  boxplotLayout_each(seriesModels, function (seriesModel) {
    var boxWidthBound = seriesModel.get('boxWidth');
    if (!util["isArray"](boxWidthBound)) {
      boxWidthBound = [boxWidthBound, boxWidthBound];
    }
    boundList.push([number_parsePercent(boxWidthBound[0], bandWidth) || 0, number_parsePercent(boxWidthBound[1], bandWidth) || 0]);
  });
  var availableWidth = bandWidth * 0.8 - 2;
  var boxGap = availableWidth / seriesCount * 0.3;
  var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount;
  var base = boxWidth / 2 - availableWidth / 2;
  boxplotLayout_each(seriesModels, function (seriesModel, idx) {
    boxOffsetList.push(base);
    base += boxGap + boxWidth;
    boxWidthList.push(Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1]));
  });
}
/**
 * Calculate points location for each series.
 */
function layoutSingleSeries(seriesModel, offset, boxWidth) {
  var coordSys = seriesModel.coordinateSystem;
  var data = seriesModel.getData();
  var halfWidth = boxWidth / 2;
  var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;
  var vDimIdx = 1 - cDimIdx;
  var coordDims = ['x', 'y'];
  var cDim = data.mapDimension(coordDims[cDimIdx]);
  var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);
  if (cDim == null || vDims.length < 5) {
    return;
  }
  for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {
    var axisDimVal = data.get(cDim, dataIndex);
    var median = getPoint(axisDimVal, vDims[2], dataIndex);
    var end1 = getPoint(axisDimVal, vDims[0], dataIndex);
    var end2 = getPoint(axisDimVal, vDims[1], dataIndex);
    var end4 = getPoint(axisDimVal, vDims[3], dataIndex);
    var end5 = getPoint(axisDimVal, vDims[4], dataIndex);
    var ends = [];
    addBodyEnd(ends, end2, false);
    addBodyEnd(ends, end4, true);
    ends.push(end1, end2, end5, end4);
    layEndLine(ends, end1);
    layEndLine(ends, end5);
    layEndLine(ends, median);
    data.setItemLayout(dataIndex, {
      initBaseline: median[vDimIdx],
      ends: ends
    });
  }
  function getPoint(axisDimVal, dim, dataIndex) {
    var val = data.get(dim, dataIndex);
    var p = [];
    p[cDimIdx] = axisDimVal;
    p[vDimIdx] = val;
    var point;
    if (isNaN(axisDimVal) || isNaN(val)) {
      point = [NaN, NaN];
    } else {
      point = coordSys.dataToPoint(p);
      point[cDimIdx] += offset;
    }
    return point;
  }
  function addBodyEnd(ends, point, start) {
    var point1 = point.slice();
    var point2 = point.slice();
    point1[cDimIdx] += halfWidth;
    point2[cDimIdx] -= halfWidth;
    start ? ends.push(point1, point2) : ends.push(point2, point1);
  }
  function layEndLine(ends, endCenter) {
    var from = endCenter.slice();
    var to = endCenter.slice();
    from[cDimIdx] -= halfWidth;
    to[cDimIdx] += halfWidth;
    ends.push(from, to);
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * See:
 *  <https://en.wikipedia.org/wiki/Box_plot#cite_note-frigge_hoaglin_iglewicz-2>
 *  <http://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/boxplot.stats.html>
 *
 * Helper method for preparing data.
 *
 * @param rawData like
 *        [
 *            [12,232,443], (raw data set for the first box)
 *            [3843,5545,1232], (raw data set for the second box)
 *            ...
 *        ]
 * @param opt.boundIQR=1.5 Data less than min bound is outlier.
 *      default 1.5, means Q1 - 1.5 * (Q3 - Q1).
 *      If 'none'/0 passed, min bound will not be used.
 */
function prepareBoxplotData(rawData, opt) {
  opt = opt || {};
  var boxData = [];
  var outliers = [];
  var boundIQR = opt.boundIQR;
  var useExtreme = boundIQR === 'none' || boundIQR === 0;
  for (var i = 0; i < rawData.length; i++) {
    var ascList = asc(rawData[i].slice());
    var Q1 = quantile(ascList, 0.25);
    var Q2 = quantile(ascList, 0.5);
    var Q3 = quantile(ascList, 0.75);
    var min = ascList[0];
    var max = ascList[ascList.length - 1];
    var bound = (boundIQR == null ? 1.5 : boundIQR) * (Q3 - Q1);
    var low = useExtreme ? min : Math.max(min, Q1 - bound);
    var high = useExtreme ? max : Math.min(max, Q3 + bound);
    var itemNameFormatter = opt.itemNameFormatter;
    var itemName = Object(util["isFunction"])(itemNameFormatter) ? itemNameFormatter({
      value: i
    }) : Object(util["isString"])(itemNameFormatter) ? itemNameFormatter.replace('{value}', i + '') : i + '';
    boxData.push([itemName, low, Q1, Q2, Q3, high]);
    for (var j = 0; j < ascList.length; j++) {
      var dataItem = ascList[j];
      if (dataItem < low || dataItem > high) {
        var outlier = [itemName, dataItem];
        outliers.push(outlier);
      }
    }
  }
  return {
    boxData: boxData,
    outliers: outliers
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/boxplotTransform.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var boxplotTransform = {
  type: 'echarts:boxplot',
  transform: function transform(params) {
    var upstream = params.upstream;
    if (upstream.sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS) {
      var errMsg = '';
      if (false) {}
      throwError(errMsg);
    }
    var result = prepareBoxplotData(upstream.getRawData(), params.config);
    return [{
      dimensions: ['ItemName', 'Low', 'Q1', 'Q2', 'Q3', 'High'],
      data: result.boxData
    }, {
      data: result.outliers
    }];
  }
};
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function boxplot_install_install(registers) {
  registers.registerSeriesModel(BoxplotSeries);
  registers.registerChartView(boxplot_BoxplotView);
  registers.registerLayout(boxplotLayout);
  registers.registerTransform(boxplotTransform);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/candlestickVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var positiveBorderColorQuery = ['itemStyle', 'borderColor'];
var negativeBorderColorQuery = ['itemStyle', 'borderColor0'];
var dojiBorderColorQuery = ['itemStyle', 'borderColorDoji'];
var positiveColorQuery = ['itemStyle', 'color'];
var negativeColorQuery = ['itemStyle', 'color0'];
function candlestickVisual_getColor(sign, model) {
  return model.get(sign > 0 ? positiveColorQuery : negativeColorQuery);
}
function getBorderColor(sign, model) {
  return model.get(sign === 0 ? dojiBorderColorQuery : sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery);
}
var candlestickVisual = {
  seriesType: 'candlestick',
  plan: createRenderPlanner(),
  // For legend.
  performRawSeries: true,
  reset: function (seriesModel, ecModel) {
    // Only visible series has each data be visual encoded
    if (ecModel.isSeriesFiltered(seriesModel)) {
      return;
    }
    var isLargeRender = seriesModel.pipelineContext.large;
    return !isLargeRender && {
      progress: function (params, data) {
        var dataIndex;
        while ((dataIndex = params.next()) != null) {
          var itemModel = data.getItemModel(dataIndex);
          var sign = data.getItemLayout(dataIndex).sign;
          var style = itemModel.getItemStyle();
          style.fill = candlestickVisual_getColor(sign, itemModel);
          style.stroke = getBorderColor(sign, itemModel) || style.fill;
          var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');
          Object(util["extend"])(existsStyle, style);
        }
      }
    };
  }
};
/* harmony default export */ var candlestick_candlestickVisual = (candlestickVisual);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/CandlestickView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









var SKIP_PROPS = ['color', 'borderColor'];
var CandlestickView_CandlestickView = /** @class */function (_super) {
  __extends(CandlestickView, _super);
  function CandlestickView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CandlestickView.type;
    return _this;
  }
  CandlestickView.prototype.render = function (seriesModel, ecModel, api) {
    // If there is clipPath created in large mode. Remove it.
    this.group.removeClipPath();
    // Clear previously rendered progressive elements.
    this._progressiveEls = null;
    this._updateDrawMode(seriesModel);
    this._isLargeDraw ? this._renderLarge(seriesModel) : this._renderNormal(seriesModel);
  };
  CandlestickView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {
    this._clear();
    this._updateDrawMode(seriesModel);
  };
  CandlestickView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) {
    this._progressiveEls = [];
    this._isLargeDraw ? this._incrementalRenderLarge(params, seriesModel) : this._incrementalRenderNormal(params, seriesModel);
  };
  CandlestickView.prototype.eachRendered = function (cb) {
    traverseElements(this._progressiveEls || this.group, cb);
  };
  CandlestickView.prototype._updateDrawMode = function (seriesModel) {
    var isLargeDraw = seriesModel.pipelineContext.large;
    if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {
      this._isLargeDraw = isLargeDraw;
      this._clear();
    }
  };
  CandlestickView.prototype._renderNormal = function (seriesModel) {
    var data = seriesModel.getData();
    var oldData = this._data;
    var group = this.group;
    var isSimpleBox = data.getLayout('isSimpleBox');
    var needsClip = seriesModel.get('clip', true);
    var coord = seriesModel.coordinateSystem;
    var clipArea = coord.getArea && coord.getArea();
    // There is no old data only when first rendering or switching from
    // stream mode to normal mode, where previous elements should be removed.
    if (!this._data) {
      group.removeAll();
    }
    data.diff(oldData).add(function (newIdx) {
      if (data.hasValue(newIdx)) {
        var itemLayout = data.getItemLayout(newIdx);
        if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {
          return;
        }
        var el = CandlestickView_createNormalBox(itemLayout, newIdx, true);
        initProps(el, {
          shape: {
            points: itemLayout.ends
          }
        }, seriesModel, newIdx);
        setBoxCommon(el, data, newIdx, isSimpleBox);
        group.add(el);
        data.setItemGraphicEl(newIdx, el);
      }
    }).update(function (newIdx, oldIdx) {
      var el = oldData.getItemGraphicEl(oldIdx);
      // Empty data
      if (!data.hasValue(newIdx)) {
        group.remove(el);
        return;
      }
      var itemLayout = data.getItemLayout(newIdx);
      if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {
        group.remove(el);
        return;
      }
      if (!el) {
        el = CandlestickView_createNormalBox(itemLayout, newIdx);
      } else {
        updateProps(el, {
          shape: {
            points: itemLayout.ends
          }
        }, seriesModel, newIdx);
        saveOldStyle(el);
      }
      setBoxCommon(el, data, newIdx, isSimpleBox);
      group.add(el);
      data.setItemGraphicEl(newIdx, el);
    }).remove(function (oldIdx) {
      var el = oldData.getItemGraphicEl(oldIdx);
      el && group.remove(el);
    }).execute();
    this._data = data;
  };
  CandlestickView.prototype._renderLarge = function (seriesModel) {
    this._clear();
    CandlestickView_createLarge(seriesModel, this.group);
    var clipPath = seriesModel.get('clip', true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;
    if (clipPath) {
      this.group.setClipPath(clipPath);
    } else {
      this.group.removeClipPath();
    }
  };
  CandlestickView.prototype._incrementalRenderNormal = function (params, seriesModel) {
    var data = seriesModel.getData();
    var isSimpleBox = data.getLayout('isSimpleBox');
    var dataIndex;
    while ((dataIndex = params.next()) != null) {
      var itemLayout = data.getItemLayout(dataIndex);
      var el = CandlestickView_createNormalBox(itemLayout, dataIndex);
      setBoxCommon(el, data, dataIndex, isSimpleBox);
      el.incremental = true;
      this.group.add(el);
      this._progressiveEls.push(el);
    }
  };
  CandlestickView.prototype._incrementalRenderLarge = function (params, seriesModel) {
    CandlestickView_createLarge(seriesModel, this.group, this._progressiveEls, true);
  };
  CandlestickView.prototype.remove = function (ecModel) {
    this._clear();
  };
  CandlestickView.prototype._clear = function () {
    this.group.removeAll();
    this._data = null;
  };
  CandlestickView.type = 'candlestick';
  return CandlestickView;
}(Chart);
var NormalBoxPathShape = /** @class */function () {
  function NormalBoxPathShape() {}
  return NormalBoxPathShape;
}();
var CandlestickView_NormalBoxPath = /** @class */function (_super) {
  __extends(NormalBoxPath, _super);
  function NormalBoxPath(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'normalCandlestickBox';
    return _this;
  }
  NormalBoxPath.prototype.getDefaultShape = function () {
    return new NormalBoxPathShape();
  };
  NormalBoxPath.prototype.buildPath = function (ctx, shape) {
    var ends = shape.points;
    if (this.__simpleBox) {
      ctx.moveTo(ends[4][0], ends[4][1]);
      ctx.lineTo(ends[6][0], ends[6][1]);
    } else {
      ctx.moveTo(ends[0][0], ends[0][1]);
      ctx.lineTo(ends[1][0], ends[1][1]);
      ctx.lineTo(ends[2][0], ends[2][1]);
      ctx.lineTo(ends[3][0], ends[3][1]);
      ctx.closePath();
      ctx.moveTo(ends[4][0], ends[4][1]);
      ctx.lineTo(ends[5][0], ends[5][1]);
      ctx.moveTo(ends[6][0], ends[6][1]);
      ctx.lineTo(ends[7][0], ends[7][1]);
    }
  };
  return NormalBoxPath;
}(graphic_Path);
function CandlestickView_createNormalBox(itemLayout, dataIndex, isInit) {
  var ends = itemLayout.ends;
  return new CandlestickView_NormalBoxPath({
    shape: {
      points: isInit ? CandlestickView_transInit(ends, itemLayout) : ends
    },
    z2: 100
  });
}
function isNormalBoxClipped(clipArea, itemLayout) {
  var clipped = true;
  for (var i = 0; i < itemLayout.ends.length; i++) {
    // If any point are in the region.
    if (clipArea.contain(itemLayout.ends[i][0], itemLayout.ends[i][1])) {
      clipped = false;
      break;
    }
  }
  return clipped;
}
function setBoxCommon(el, data, dataIndex, isSimpleBox) {
  var itemModel = data.getItemModel(dataIndex);
  el.useStyle(data.getItemVisual(dataIndex, 'style'));
  el.style.strokeNoScale = true;
  el.__simpleBox = isSimpleBox;
  setStatesStylesFromModel(el, itemModel);
  var sign = data.getItemLayout(dataIndex).sign;
  util["each"](el.states, function (state, stateName) {
    var stateModel = itemModel.getModel(stateName);
    var color = candlestickVisual_getColor(sign, stateModel);
    var borderColor = getBorderColor(sign, stateModel) || color;
    var stateStyle = state.style || (state.style = {});
    color && (stateStyle.fill = color);
    borderColor && (stateStyle.stroke = borderColor);
  });
  var emphasisModel = itemModel.getModel('emphasis');
  toggleHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
}
function CandlestickView_transInit(points, itemLayout) {
  return util["map"](points, function (point) {
    point = point.slice();
    point[1] = itemLayout.initBaseline;
    return point;
  });
}
var LargeBoxPathShape = /** @class */function () {
  function LargeBoxPathShape() {}
  return LargeBoxPathShape;
}();
var CandlestickView_LargeBoxPath = /** @class */function (_super) {
  __extends(LargeBoxPath, _super);
  function LargeBoxPath(opts) {
    var _this = _super.call(this, opts) || this;
    _this.type = 'largeCandlestickBox';
    return _this;
  }
  LargeBoxPath.prototype.getDefaultShape = function () {
    return new LargeBoxPathShape();
  };
  LargeBoxPath.prototype.buildPath = function (ctx, shape) {
    // Drawing lines is more efficient than drawing
    // a whole line or drawing rects.
    var points = shape.points;
    for (var i = 0; i < points.length;) {
      if (this.__sign === points[i++]) {
        var x = points[i++];
        ctx.moveTo(x, points[i++]);
        ctx.lineTo(x, points[i++]);
      } else {
        i += 3;
      }
    }
  };
  return LargeBoxPath;
}(graphic_Path);
function CandlestickView_createLarge(seriesModel, group, progressiveEls, incremental) {
  var data = seriesModel.getData();
  var largePoints = data.getLayout('largePoints');
  var elP = new CandlestickView_LargeBoxPath({
    shape: {
      points: largePoints
    },
    __sign: 1,
    ignoreCoarsePointer: true
  });
  group.add(elP);
  var elN = new CandlestickView_LargeBoxPath({
    shape: {
      points: largePoints
    },
    __sign: -1,
    ignoreCoarsePointer: true
  });
  group.add(elN);
  var elDoji = new CandlestickView_LargeBoxPath({
    shape: {
      points: largePoints
    },
    __sign: 0,
    ignoreCoarsePointer: true
  });
  group.add(elDoji);
  setLargeStyle(1, elP, seriesModel, data);
  setLargeStyle(-1, elN, seriesModel, data);
  setLargeStyle(0, elDoji, seriesModel, data);
  if (incremental) {
    elP.incremental = true;
    elN.incremental = true;
  }
  if (progressiveEls) {
    progressiveEls.push(elP, elN);
  }
}
function setLargeStyle(sign, el, seriesModel, data) {
  // TODO put in visual?
  var borderColor = getBorderColor(sign, seriesModel)
  // Use color for border color by default.
  || candlestickVisual_getColor(sign, seriesModel);
  // Color must be excluded.
  // Because symbol provide setColor individually to set fill and stroke
  var itemStyle = seriesModel.getModel('itemStyle').getItemStyle(SKIP_PROPS);
  el.useStyle(itemStyle);
  el.style.fill = null;
  el.style.stroke = borderColor;
}
/* harmony default export */ var candlestick_CandlestickView = (CandlestickView_CandlestickView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var CandlestickSeries_CandlestickSeriesModel = /** @class */function (_super) {
  __extends(CandlestickSeriesModel, _super);
  function CandlestickSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CandlestickSeriesModel.type;
    _this.defaultValueDimensions = [{
      name: 'open',
      defaultTooltip: true
    }, {
      name: 'close',
      defaultTooltip: true
    }, {
      name: 'lowest',
      defaultTooltip: true
    }, {
      name: 'highest',
      defaultTooltip: true
    }];
    return _this;
  }
  /**
   * Get dimension for shadow in dataZoom
   * @return dimension name
   */
  CandlestickSeriesModel.prototype.getShadowDim = function () {
    return 'open';
  };
  CandlestickSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {
    var itemLayout = data.getItemLayout(dataIndex);
    return itemLayout && selectors.rect(itemLayout.brushRect);
  };
  CandlestickSeriesModel.type = 'series.candlestick';
  CandlestickSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid'];
  CandlestickSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    coordinateSystem: 'cartesian2d',
    legendHoverLink: true,
    // xAxisIndex: 0,
    // yAxisIndex: 0,
    layout: null,
    clip: true,
    itemStyle: {
      color: '#eb5454',
      color0: '#47b262',
      borderColor: '#eb5454',
      borderColor0: '#47b262',
      borderColorDoji: null,
      // borderColor: '#d24040',
      // borderColor0: '#398f4f',
      borderWidth: 1
    },
    emphasis: {
      itemStyle: {
        borderWidth: 2
      }
    },
    barMaxWidth: null,
    barMinWidth: null,
    barWidth: null,
    large: true,
    largeThreshold: 600,
    progressive: 3e3,
    progressiveThreshold: 1e4,
    progressiveChunkMode: 'mod',
    animationEasing: 'linear',
    animationDuration: 300
  };
  return CandlestickSeriesModel;
}(Series);
Object(util["mixin"])(CandlestickSeries_CandlestickSeriesModel, whiskerBoxCommon_WhiskerBoxCommonMixin, true);
/* harmony default export */ var CandlestickSeries = (CandlestickSeries_CandlestickSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/preprocessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function candlestickPreprocessor(option) {
  if (!option || !util["isArray"](option.series)) {
    return;
  }
  // Translate 'k' to 'candlestick'.
  util["each"](option.series, function (seriesItem) {
    if (util["isObject"](seriesItem) && seriesItem.type === 'k') {
      seriesItem.type = 'candlestick';
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/candlestickLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var candlestickLayout = {
  seriesType: 'candlestick',
  plan: createRenderPlanner(),
  reset: function (seriesModel) {
    var coordSys = seriesModel.coordinateSystem;
    var data = seriesModel.getData();
    var candleWidth = calculateCandleWidth(seriesModel, data);
    var cDimIdx = 0;
    var vDimIdx = 1;
    var coordDims = ['x', 'y'];
    var cDimI = data.getDimensionIndex(data.mapDimension(coordDims[cDimIdx]));
    var vDimsI = Object(util["map"])(data.mapDimensionsAll(coordDims[vDimIdx]), data.getDimensionIndex, data);
    var openDimI = vDimsI[0];
    var closeDimI = vDimsI[1];
    var lowestDimI = vDimsI[2];
    var highestDimI = vDimsI[3];
    data.setLayout({
      candleWidth: candleWidth,
      // The value is experimented visually.
      isSimpleBox: candleWidth <= 1.3
    });
    if (cDimI < 0 || vDimsI.length < 4) {
      return;
    }
    return {
      progress: seriesModel.pipelineContext.large ? largeProgress : normalProgress
    };
    function normalProgress(params, data) {
      var dataIndex;
      var store = data.getStore();
      while ((dataIndex = params.next()) != null) {
        var axisDimVal = store.get(cDimI, dataIndex);
        var openVal = store.get(openDimI, dataIndex);
        var closeVal = store.get(closeDimI, dataIndex);
        var lowestVal = store.get(lowestDimI, dataIndex);
        var highestVal = store.get(highestDimI, dataIndex);
        var ocLow = Math.min(openVal, closeVal);
        var ocHigh = Math.max(openVal, closeVal);
        var ocLowPoint = getPoint(ocLow, axisDimVal);
        var ocHighPoint = getPoint(ocHigh, axisDimVal);
        var lowestPoint = getPoint(lowestVal, axisDimVal);
        var highestPoint = getPoint(highestVal, axisDimVal);
        var ends = [];
        addBodyEnd(ends, ocHighPoint, 0);
        addBodyEnd(ends, ocLowPoint, 1);
        ends.push(subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint));
        var itemModel = data.getItemModel(dataIndex);
        var hasDojiColor = !!itemModel.get(['itemStyle', 'borderColorDoji']);
        data.setItemLayout(dataIndex, {
          sign: getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor),
          initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx],
          ends: ends,
          brushRect: makeBrushRect(lowestVal, highestVal, axisDimVal)
        });
      }
      function getPoint(val, axisDimVal) {
        var p = [];
        p[cDimIdx] = axisDimVal;
        p[vDimIdx] = val;
        return isNaN(axisDimVal) || isNaN(val) ? [NaN, NaN] : coordSys.dataToPoint(p);
      }
      function addBodyEnd(ends, point, start) {
        var point1 = point.slice();
        var point2 = point.slice();
        point1[cDimIdx] = graphic_subPixelOptimize(point1[cDimIdx] + candleWidth / 2, 1, false);
        point2[cDimIdx] = graphic_subPixelOptimize(point2[cDimIdx] - candleWidth / 2, 1, true);
        start ? ends.push(point1, point2) : ends.push(point2, point1);
      }
      function makeBrushRect(lowestVal, highestVal, axisDimVal) {
        var pmin = getPoint(lowestVal, axisDimVal);
        var pmax = getPoint(highestVal, axisDimVal);
        pmin[cDimIdx] -= candleWidth / 2;
        pmax[cDimIdx] -= candleWidth / 2;
        return {
          x: pmin[0],
          y: pmin[1],
          width: vDimIdx ? candleWidth : pmax[0] - pmin[0],
          height: vDimIdx ? pmax[1] - pmin[1] : candleWidth
        };
      }
      function subPixelOptimizePoint(point) {
        point[cDimIdx] = graphic_subPixelOptimize(point[cDimIdx], 1);
        return point;
      }
    }
    function largeProgress(params, data) {
      // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...]
      var points = createFloat32Array(params.count * 4);
      var offset = 0;
      var point;
      var tmpIn = [];
      var tmpOut = [];
      var dataIndex;
      var store = data.getStore();
      var hasDojiColor = !!seriesModel.get(['itemStyle', 'borderColorDoji']);
      while ((dataIndex = params.next()) != null) {
        var axisDimVal = store.get(cDimI, dataIndex);
        var openVal = store.get(openDimI, dataIndex);
        var closeVal = store.get(closeDimI, dataIndex);
        var lowestVal = store.get(lowestDimI, dataIndex);
        var highestVal = store.get(highestDimI, dataIndex);
        if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) {
          points[offset++] = NaN;
          offset += 3;
          continue;
        }
        points[offset++] = getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor);
        tmpIn[cDimIdx] = axisDimVal;
        tmpIn[vDimIdx] = lowestVal;
        point = coordSys.dataToPoint(tmpIn, null, tmpOut);
        points[offset++] = point ? point[0] : NaN;
        points[offset++] = point ? point[1] : NaN;
        tmpIn[vDimIdx] = highestVal;
        point = coordSys.dataToPoint(tmpIn, null, tmpOut);
        points[offset++] = point ? point[1] : NaN;
      }
      data.setLayout('largePoints', points);
    }
  }
};
/**
 * Get the sign of a single data.
 *
 * @returns 0 for doji with hasDojiColor: true,
 *          1 for positive,
 *          -1 for negative.
 */
function getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor) {
  var sign;
  if (openVal > closeVal) {
    sign = -1;
  } else if (openVal < closeVal) {
    sign = 1;
  } else {
    sign = hasDojiColor
    // When doji color is set, use it instead of color/color0.
    ? 0 : dataIndex > 0
    // If close === open, compare with close of last record
    ? store.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1
    // No record of previous, set to be positive
    : 1;
  }
  return sign;
}
function calculateCandleWidth(seriesModel, data) {
  var baseAxis = seriesModel.getBaseAxis();
  var extent;
  var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : (extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / data.count());
  var barMaxWidth = number_parsePercent(Object(util["retrieve2"])(seriesModel.get('barMaxWidth'), bandWidth), bandWidth);
  var barMinWidth = number_parsePercent(Object(util["retrieve2"])(seriesModel.get('barMinWidth'), 1), bandWidth);
  var barWidth = seriesModel.get('barWidth');
  return barWidth != null ? number_parsePercent(barWidth, bandWidth)
  // Put max outer to ensure bar visible in spite of overlap.
  : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth);
}
/* harmony default export */ var candlestick_candlestickLayout = (candlestickLayout);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function candlestick_install_install(registers) {
  registers.registerChartView(candlestick_CandlestickView);
  registers.registerSeriesModel(CandlestickSeries);
  registers.registerPreprocessor(candlestickPreprocessor);
  registers.registerVisual(candlestick_candlestickVisual);
  registers.registerLayout(candlestick_candlestickLayout);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/EffectSymbol.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function updateRipplePath(rippleGroup, effectCfg) {
  var color = effectCfg.rippleEffectColor || effectCfg.color;
  rippleGroup.eachChild(function (ripplePath) {
    ripplePath.attr({
      z: effectCfg.z,
      zlevel: effectCfg.zlevel,
      style: {
        stroke: effectCfg.brushType === 'stroke' ? color : null,
        fill: effectCfg.brushType === 'fill' ? color : null
      }
    });
  });
}
var EffectSymbol_EffectSymbol = /** @class */function (_super) {
  __extends(EffectSymbol, _super);
  function EffectSymbol(data, idx) {
    var _this = _super.call(this) || this;
    var symbol = new helper_Symbol(data, idx);
    var rippleGroup = new graphic_Group();
    _this.add(symbol);
    _this.add(rippleGroup);
    _this.updateData(data, idx);
    return _this;
  }
  EffectSymbol.prototype.stopEffectAnimation = function () {
    this.childAt(1).removeAll();
  };
  EffectSymbol.prototype.startEffectAnimation = function (effectCfg) {
    var symbolType = effectCfg.symbolType;
    var color = effectCfg.color;
    var rippleNumber = effectCfg.rippleNumber;
    var rippleGroup = this.childAt(1);
    for (var i = 0; i < rippleNumber; i++) {
      // If width/height are set too small (e.g., set to 1) on ios10
      // and macOS Sierra, a circle stroke become a rect, no matter what
      // the scale is set. So we set width/height as 2. See #4136.
      var ripplePath = symbol_createSymbol(symbolType, -1, -1, 2, 2, color);
      ripplePath.attr({
        style: {
          strokeNoScale: true
        },
        z2: 99,
        silent: true,
        scaleX: 0.5,
        scaleY: 0.5
      });
      var delay = -i / rippleNumber * effectCfg.period + effectCfg.effectOffset;
      ripplePath.animate('', true).when(effectCfg.period, {
        scaleX: effectCfg.rippleScale / 2,
        scaleY: effectCfg.rippleScale / 2
      }).delay(delay).start();
      ripplePath.animateStyle(true).when(effectCfg.period, {
        opacity: 0
      }).delay(delay).start();
      rippleGroup.add(ripplePath);
    }
    updateRipplePath(rippleGroup, effectCfg);
  };
  /**
   * Update effect symbol
   */
  EffectSymbol.prototype.updateEffectAnimation = function (effectCfg) {
    var oldEffectCfg = this._effectCfg;
    var rippleGroup = this.childAt(1);
    // Must reinitialize effect if following configuration changed
    var DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale', 'rippleNumber'];
    for (var i = 0; i < DIFFICULT_PROPS.length; i++) {
      var propName = DIFFICULT_PROPS[i];
      if (oldEffectCfg[propName] !== effectCfg[propName]) {
        this.stopEffectAnimation();
        this.startEffectAnimation(effectCfg);
        return;
      }
    }
    updateRipplePath(rippleGroup, effectCfg);
  };
  /**
   * Highlight symbol
   */
  EffectSymbol.prototype.highlight = function () {
    enterEmphasis(this);
  };
  /**
   * Downplay symbol
   */
  EffectSymbol.prototype.downplay = function () {
    leaveEmphasis(this);
  };
  EffectSymbol.prototype.getSymbolType = function () {
    var symbol = this.childAt(0);
    return symbol && symbol.getSymbolType();
  };
  /**
   * Update symbol properties
   */
  EffectSymbol.prototype.updateData = function (data, idx) {
    var _this = this;
    var seriesModel = data.hostModel;
    this.childAt(0).updateData(data, idx);
    var rippleGroup = this.childAt(1);
    var itemModel = data.getItemModel(idx);
    var symbolType = data.getItemVisual(idx, 'symbol');
    var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));
    var symbolStyle = data.getItemVisual(idx, 'style');
    var color = symbolStyle && symbolStyle.fill;
    var emphasisModel = itemModel.getModel('emphasis');
    rippleGroup.setScale(symbolSize);
    rippleGroup.traverse(function (ripplePath) {
      ripplePath.setStyle('fill', color);
    });
    var symbolOffset = normalizeSymbolOffset(data.getItemVisual(idx, 'symbolOffset'), symbolSize);
    if (symbolOffset) {
      rippleGroup.x = symbolOffset[0];
      rippleGroup.y = symbolOffset[1];
    }
    var symbolRotate = data.getItemVisual(idx, 'symbolRotate');
    rippleGroup.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;
    var effectCfg = {};
    effectCfg.showEffectOn = seriesModel.get('showEffectOn');
    effectCfg.rippleScale = itemModel.get(['rippleEffect', 'scale']);
    effectCfg.brushType = itemModel.get(['rippleEffect', 'brushType']);
    effectCfg.period = itemModel.get(['rippleEffect', 'period']) * 1000;
    effectCfg.effectOffset = idx / data.count();
    effectCfg.z = seriesModel.getShallow('z') || 0;
    effectCfg.zlevel = seriesModel.getShallow('zlevel') || 0;
    effectCfg.symbolType = symbolType;
    effectCfg.color = color;
    effectCfg.rippleEffectColor = itemModel.get(['rippleEffect', 'color']);
    effectCfg.rippleNumber = itemModel.get(['rippleEffect', 'number']);
    if (effectCfg.showEffectOn === 'render') {
      this._effectCfg ? this.updateEffectAnimation(effectCfg) : this.startEffectAnimation(effectCfg);
      this._effectCfg = effectCfg;
    } else {
      // Not keep old effect config
      this._effectCfg = null;
      this.stopEffectAnimation();
      this.onHoverStateChange = function (toState) {
        if (toState === 'emphasis') {
          if (effectCfg.showEffectOn !== 'render') {
            _this.startEffectAnimation(effectCfg);
          }
        } else if (toState === 'normal') {
          if (effectCfg.showEffectOn !== 'render') {
            _this.stopEffectAnimation();
          }
        }
      };
    }
    this._effectCfg = effectCfg;
    toggleHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
  };
  ;
  EffectSymbol.prototype.fadeOut = function (cb) {
    cb && cb();
  };
  ;
  return EffectSymbol;
}(graphic_Group);
/* harmony default export */ var helper_EffectSymbol = (EffectSymbol_EffectSymbol);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var EffectScatterView_EffectScatterView = /** @class */function (_super) {
  __extends(EffectScatterView, _super);
  function EffectScatterView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = EffectScatterView.type;
    return _this;
  }
  EffectScatterView.prototype.init = function () {
    this._symbolDraw = new helper_SymbolDraw(helper_EffectSymbol);
  };
  EffectScatterView.prototype.render = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var effectSymbolDraw = this._symbolDraw;
    effectSymbolDraw.updateData(data, {
      clipShape: this._getClipShape(seriesModel)
    });
    this.group.add(effectSymbolDraw.group);
  };
  EffectScatterView.prototype._getClipShape = function (seriesModel) {
    var coordSys = seriesModel.coordinateSystem;
    var clipArea = coordSys && coordSys.getArea && coordSys.getArea();
    return seriesModel.get('clip', true) ? clipArea : null;
  };
  EffectScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    this.group.dirty();
    var res = pointsLayout('').reset(seriesModel, ecModel, api);
    if (res.progress) {
      res.progress({
        start: 0,
        end: data.count(),
        count: data.count()
      }, data);
    }
    this._symbolDraw.updateLayout();
  };
  EffectScatterView.prototype._updateGroupTransform = function (seriesModel) {
    var coordSys = seriesModel.coordinateSystem;
    if (coordSys && coordSys.getRoamTransform) {
      this.group.transform = matrix_clone(coordSys.getRoamTransform());
      this.group.decomposeTransform();
    }
  };
  EffectScatterView.prototype.remove = function (ecModel, api) {
    this._symbolDraw && this._symbolDraw.remove(true);
  };
  EffectScatterView.type = 'effectScatter';
  return EffectScatterView;
}(Chart);
/* harmony default export */ var effectScatter_EffectScatterView = (EffectScatterView_EffectScatterView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var EffectScatterSeries_EffectScatterSeriesModel = /** @class */function (_super) {
  __extends(EffectScatterSeriesModel, _super);
  function EffectScatterSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = EffectScatterSeriesModel.type;
    _this.hasSymbolVisual = true;
    return _this;
  }
  EffectScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return helper_createSeriesData(null, this, {
      useEncodeDefaulter: true
    });
  };
  EffectScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {
    return selectors.point(data.getItemLayout(dataIndex));
  };
  EffectScatterSeriesModel.type = 'series.effectScatter';
  EffectScatterSeriesModel.dependencies = ['grid', 'polar'];
  EffectScatterSeriesModel.defaultOption = {
    coordinateSystem: 'cartesian2d',
    // zlevel: 0,
    z: 2,
    legendHoverLink: true,
    effectType: 'ripple',
    progressive: 0,
    // When to show the effect, option: 'render'|'emphasis'
    showEffectOn: 'render',
    clip: true,
    // Ripple effect config
    rippleEffect: {
      period: 4,
      // Scale of ripple
      scale: 2.5,
      // Brush type can be fill or stroke
      brushType: 'fill',
      // Ripple number
      number: 3
    },
    universalTransition: {
      divideShape: 'clone'
    },
    // Cartesian coordinate system
    // xAxisIndex: 0,
    // yAxisIndex: 0,
    // Polar coordinate system
    // polarIndex: 0,
    // Geo coordinate system
    // geoIndex: 0,
    // symbol: null,        // 图形类型
    symbolSize: 10 // 图形大小，半宽（半径）参数，当图形为方向或菱形则总宽度为symbolSize * 2
    // symbolRotate: null,  // 图形旋转控制
    // itemStyle: {
    //     opacity: 1
    // }
  };
  return EffectScatterSeriesModel;
}(Series);
/* harmony default export */ var EffectScatterSeries = (EffectScatterSeries_EffectScatterSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/effectScatter/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function effectScatter_install_install(registers) {
  registers.registerChartView(effectScatter_EffectScatterView);
  registers.registerSeriesModel(EffectScatterSeries);
  registers.registerLayout(pointsLayout('effectScatter'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/EffectLine.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * Provide effect for line
 */






var EffectLine_EffectLine = /** @class */function (_super) {
  __extends(EffectLine, _super);
  function EffectLine(lineData, idx, seriesScope) {
    var _this = _super.call(this) || this;
    _this.add(_this.createLine(lineData, idx, seriesScope));
    _this._updateEffectSymbol(lineData, idx);
    return _this;
  }
  EffectLine.prototype.createLine = function (lineData, idx, seriesScope) {
    return new helper_Line(lineData, idx, seriesScope);
  };
  EffectLine.prototype._updateEffectSymbol = function (lineData, idx) {
    var itemModel = lineData.getItemModel(idx);
    var effectModel = itemModel.getModel('effect');
    var size = effectModel.get('symbolSize');
    var symbolType = effectModel.get('symbol');
    if (!util["isArray"](size)) {
      size = [size, size];
    }
    var lineStyle = lineData.getItemVisual(idx, 'style');
    var color = effectModel.get('color') || lineStyle && lineStyle.stroke;
    var symbol = this.childAt(1);
    if (this._symbolType !== symbolType) {
      // Remove previous
      this.remove(symbol);
      symbol = symbol_createSymbol(symbolType, -0.5, -0.5, 1, 1, color);
      symbol.z2 = 100;
      symbol.culling = true;
      this.add(symbol);
    }
    // Symbol may be removed if loop is false
    if (!symbol) {
      return;
    }
    // Shadow color is same with color in default
    symbol.setStyle('shadowColor', color);
    symbol.setStyle(effectModel.getItemStyle(['color']));
    symbol.scaleX = size[0];
    symbol.scaleY = size[1];
    symbol.setColor(color);
    this._symbolType = symbolType;
    this._symbolScale = size;
    this._updateEffectAnimation(lineData, effectModel, idx);
  };
  EffectLine.prototype._updateEffectAnimation = function (lineData, effectModel, idx) {
    var symbol = this.childAt(1);
    if (!symbol) {
      return;
    }
    var points = lineData.getItemLayout(idx);
    var period = effectModel.get('period') * 1000;
    var loop = effectModel.get('loop');
    var roundTrip = effectModel.get('roundTrip');
    var constantSpeed = effectModel.get('constantSpeed');
    var delayExpr = util["retrieve"](effectModel.get('delay'), function (idx) {
      return idx / lineData.count() * period / 3;
    });
    // Ignore when updating
    symbol.ignore = true;
    this._updateAnimationPoints(symbol, points);
    if (constantSpeed > 0) {
      period = this._getLineLength(symbol) / constantSpeed * 1000;
    }
    if (period !== this._period || loop !== this._loop || roundTrip !== this._roundTrip) {
      symbol.stopAnimation();
      var delayNum = void 0;
      if (util["isFunction"](delayExpr)) {
        delayNum = delayExpr(idx);
      } else {
        delayNum = delayExpr;
      }
      if (symbol.__t > 0) {
        delayNum = -period * symbol.__t;
      }
      this._animateSymbol(symbol, period, delayNum, loop, roundTrip);
    }
    this._period = period;
    this._loop = loop;
    this._roundTrip = roundTrip;
  };
  EffectLine.prototype._animateSymbol = function (symbol, period, delayNum, loop, roundTrip) {
    if (period > 0) {
      symbol.__t = 0;
      var self_1 = this;
      var animator = symbol.animate('', loop).when(roundTrip ? period * 2 : period, {
        __t: roundTrip ? 2 : 1
      }).delay(delayNum).during(function () {
        self_1._updateSymbolPosition(symbol);
      });
      if (!loop) {
        animator.done(function () {
          self_1.remove(symbol);
        });
      }
      animator.start();
    }
  };
  EffectLine.prototype._getLineLength = function (symbol) {
    // Not so accurate
    return vector_dist(symbol.__p1, symbol.__cp1) + vector_dist(symbol.__cp1, symbol.__p2);
  };
  EffectLine.prototype._updateAnimationPoints = function (symbol, points) {
    symbol.__p1 = points[0];
    symbol.__p2 = points[1];
    symbol.__cp1 = points[2] || [(points[0][0] + points[1][0]) / 2, (points[0][1] + points[1][1]) / 2];
  };
  EffectLine.prototype.updateData = function (lineData, idx, seriesScope) {
    this.childAt(0).updateData(lineData, idx, seriesScope);
    this._updateEffectSymbol(lineData, idx);
  };
  EffectLine.prototype._updateSymbolPosition = function (symbol) {
    var p1 = symbol.__p1;
    var p2 = symbol.__p2;
    var cp1 = symbol.__cp1;
    var t = symbol.__t < 1 ? symbol.__t : 2 - symbol.__t;
    var pos = [symbol.x, symbol.y];
    var lastPos = pos.slice();
    var quadraticAt = curve_quadraticAt;
    var quadraticDerivativeAt = curve_quadraticDerivativeAt;
    pos[0] = quadraticAt(p1[0], cp1[0], p2[0], t);
    pos[1] = quadraticAt(p1[1], cp1[1], p2[1], t);
    // Tangent
    var tx = symbol.__t < 1 ? quadraticDerivativeAt(p1[0], cp1[0], p2[0], t) : quadraticDerivativeAt(p2[0], cp1[0], p1[0], 1 - t);
    var ty = symbol.__t < 1 ? quadraticDerivativeAt(p1[1], cp1[1], p2[1], t) : quadraticDerivativeAt(p2[1], cp1[1], p1[1], 1 - t);
    symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;
    // enable continuity trail for 'line', 'rect', 'roundRect' symbolType
    if (this._symbolType === 'line' || this._symbolType === 'rect' || this._symbolType === 'roundRect') {
      if (symbol.__lastT !== undefined && symbol.__lastT < symbol.__t) {
        symbol.scaleY = vector_dist(lastPos, pos) * 1.05;
        // make sure the last segment render within endPoint
        if (t === 1) {
          pos[0] = lastPos[0] + (pos[0] - lastPos[0]) / 2;
          pos[1] = lastPos[1] + (pos[1] - lastPos[1]) / 2;
        }
      } else if (symbol.__lastT === 1) {
        // After first loop, symbol.__t does NOT start with 0, so connect p1 to pos directly.
        symbol.scaleY = 2 * vector_dist(p1, pos);
      } else {
        symbol.scaleY = this._symbolScale[1];
      }
    }
    symbol.__lastT = symbol.__t;
    symbol.ignore = false;
    symbol.x = pos[0];
    symbol.y = pos[1];
  };
  EffectLine.prototype.updateLayout = function (lineData, idx) {
    this.childAt(0).updateLayout(lineData, idx);
    var effectModel = lineData.getItemModel(idx).getModel('effect');
    this._updateEffectAnimation(lineData, effectModel, idx);
  };
  return EffectLine;
}(graphic_Group);
/* harmony default export */ var helper_EffectLine = (EffectLine_EffectLine);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/Polyline.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var helper_Polyline_Polyline = /** @class */function (_super) {
  __extends(Polyline, _super);
  function Polyline(lineData, idx, seriesScope) {
    var _this = _super.call(this) || this;
    _this._createPolyline(lineData, idx, seriesScope);
    return _this;
  }
  Polyline.prototype._createPolyline = function (lineData, idx, seriesScope) {
    // let seriesModel = lineData.hostModel;
    var points = lineData.getItemLayout(idx);
    var line = new shape_Polyline({
      shape: {
        points: points
      }
    });
    this.add(line);
    this._updateCommonStl(lineData, idx, seriesScope);
  };
  ;
  Polyline.prototype.updateData = function (lineData, idx, seriesScope) {
    var seriesModel = lineData.hostModel;
    var line = this.childAt(0);
    var target = {
      shape: {
        points: lineData.getItemLayout(idx)
      }
    };
    updateProps(line, target, seriesModel, idx);
    this._updateCommonStl(lineData, idx, seriesScope);
  };
  ;
  Polyline.prototype._updateCommonStl = function (lineData, idx, seriesScope) {
    var line = this.childAt(0);
    var itemModel = lineData.getItemModel(idx);
    var emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle;
    var focus = seriesScope && seriesScope.focus;
    var blurScope = seriesScope && seriesScope.blurScope;
    var emphasisDisabled = seriesScope && seriesScope.emphasisDisabled;
    if (!seriesScope || lineData.hasItemOption) {
      var emphasisModel = itemModel.getModel('emphasis');
      emphasisLineStyle = emphasisModel.getModel('lineStyle').getLineStyle();
      emphasisDisabled = emphasisModel.get('disabled');
      focus = emphasisModel.get('focus');
      blurScope = emphasisModel.get('blurScope');
    }
    line.useStyle(lineData.getItemVisual(idx, 'style'));
    line.style.fill = null;
    line.style.strokeNoScale = true;
    var lineEmphasisState = line.ensureState('emphasis');
    lineEmphasisState.style = emphasisLineStyle;
    toggleHoverEmphasis(this, focus, blurScope, emphasisDisabled);
  };
  ;
  Polyline.prototype.updateLayout = function (lineData, idx) {
    var polyline = this.childAt(0);
    polyline.setShape('points', lineData.getItemLayout(idx));
  };
  ;
  return Polyline;
}(graphic_Group);
/* harmony default export */ var helper_Polyline = (helper_Polyline_Polyline);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/EffectPolyline.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var EffectPolyline_EffectPolyline = /** @class */function (_super) {
  __extends(EffectPolyline, _super);
  function EffectPolyline() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this._lastFrame = 0;
    _this._lastFramePercent = 0;
    return _this;
  }
  // Override
  EffectPolyline.prototype.createLine = function (lineData, idx, seriesScope) {
    return new helper_Polyline(lineData, idx, seriesScope);
  };
  ;
  // Override
  EffectPolyline.prototype._updateAnimationPoints = function (symbol, points) {
    this._points = points;
    var accLenArr = [0];
    var len = 0;
    for (var i = 1; i < points.length; i++) {
      var p1 = points[i - 1];
      var p2 = points[i];
      len += vector_dist(p1, p2);
      accLenArr.push(len);
    }
    if (len === 0) {
      this._length = 0;
      return;
    }
    for (var i = 0; i < accLenArr.length; i++) {
      accLenArr[i] /= len;
    }
    this._offsets = accLenArr;
    this._length = len;
  };
  ;
  // Override
  EffectPolyline.prototype._getLineLength = function () {
    return this._length;
  };
  ;
  // Override
  EffectPolyline.prototype._updateSymbolPosition = function (symbol) {
    var t = symbol.__t < 1 ? symbol.__t : 2 - symbol.__t;
    var points = this._points;
    var offsets = this._offsets;
    var len = points.length;
    if (!offsets) {
      // Has length 0
      return;
    }
    var lastFrame = this._lastFrame;
    var frame;
    if (t < this._lastFramePercent) {
      // Start from the next frame
      // PENDING start from lastFrame ?
      var start = Math.min(lastFrame + 1, len - 1);
      for (frame = start; frame >= 0; frame--) {
        if (offsets[frame] <= t) {
          break;
        }
      }
      // PENDING really need to do this ?
      frame = Math.min(frame, len - 2);
    } else {
      for (frame = lastFrame; frame < len; frame++) {
        if (offsets[frame] > t) {
          break;
        }
      }
      frame = Math.min(frame - 1, len - 2);
    }
    var p = (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame]);
    var p0 = points[frame];
    var p1 = points[frame + 1];
    symbol.x = p0[0] * (1 - p) + p * p1[0];
    symbol.y = p0[1] * (1 - p) + p * p1[1];
    var tx = symbol.__t < 1 ? p1[0] - p0[0] : p0[0] - p1[0];
    var ty = symbol.__t < 1 ? p1[1] - p0[1] : p0[1] - p1[1];
    symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;
    this._lastFrame = frame;
    this._lastFramePercent = t;
    symbol.ignore = false;
  };
  ;
  return EffectPolyline;
}(helper_EffectLine);
/* harmony default export */ var helper_EffectPolyline = (EffectPolyline_EffectPolyline);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/LargeLineDraw.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// TODO Batch by color




var LargeLinesPathShape = /** @class */function () {
  function LargeLinesPathShape() {
    this.polyline = false;
    this.curveness = 0;
    this.segs = [];
  }
  return LargeLinesPathShape;
}();
var LargeLineDraw_LargeLinesPath = /** @class */function (_super) {
  __extends(LargeLinesPath, _super);
  function LargeLinesPath(opts) {
    var _this = _super.call(this, opts) || this;
    _this._off = 0;
    _this.hoverDataIdx = -1;
    return _this;
  }
  LargeLinesPath.prototype.reset = function () {
    this.notClear = false;
    this._off = 0;
  };
  LargeLinesPath.prototype.getDefaultStyle = function () {
    return {
      stroke: '#000',
      fill: null
    };
  };
  LargeLinesPath.prototype.getDefaultShape = function () {
    return new LargeLinesPathShape();
  };
  LargeLinesPath.prototype.buildPath = function (ctx, shape) {
    var segs = shape.segs;
    var curveness = shape.curveness;
    var i;
    if (shape.polyline) {
      for (i = this._off; i < segs.length;) {
        var count = segs[i++];
        if (count > 0) {
          ctx.moveTo(segs[i++], segs[i++]);
          for (var k = 1; k < count; k++) {
            ctx.lineTo(segs[i++], segs[i++]);
          }
        }
      }
    } else {
      for (i = this._off; i < segs.length;) {
        var x0 = segs[i++];
        var y0 = segs[i++];
        var x1 = segs[i++];
        var y1 = segs[i++];
        ctx.moveTo(x0, y0);
        if (curveness > 0) {
          var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;
          var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;
          ctx.quadraticCurveTo(x2, y2, x1, y1);
        } else {
          ctx.lineTo(x1, y1);
        }
      }
    }
    if (this.incremental) {
      this._off = i;
      this.notClear = true;
    }
  };
  LargeLinesPath.prototype.findDataIndex = function (x, y) {
    var shape = this.shape;
    var segs = shape.segs;
    var curveness = shape.curveness;
    var lineWidth = this.style.lineWidth;
    if (shape.polyline) {
      var dataIndex = 0;
      for (var i = 0; i < segs.length;) {
        var count = segs[i++];
        if (count > 0) {
          var x0 = segs[i++];
          var y0 = segs[i++];
          for (var k = 1; k < count; k++) {
            var x1 = segs[i++];
            var y1 = segs[i++];
            if (containStroke(x0, y0, x1, y1, lineWidth, x, y)) {
              return dataIndex;
            }
          }
        }
        dataIndex++;
      }
    } else {
      var dataIndex = 0;
      for (var i = 0; i < segs.length;) {
        var x0 = segs[i++];
        var y0 = segs[i++];
        var x1 = segs[i++];
        var y1 = segs[i++];
        if (curveness > 0) {
          var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;
          var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;
          if (quadratic_containStroke(x0, y0, x2, y2, x1, y1, lineWidth, x, y)) {
            return dataIndex;
          }
        } else {
          if (containStroke(x0, y0, x1, y1, lineWidth, x, y)) {
            return dataIndex;
          }
        }
        dataIndex++;
      }
    }
    return -1;
  };
  LargeLinesPath.prototype.contain = function (x, y) {
    var localPos = this.transformCoordToLocal(x, y);
    var rect = this.getBoundingRect();
    x = localPos[0];
    y = localPos[1];
    if (rect.contain(x, y)) {
      // Cache found data index.
      var dataIdx = this.hoverDataIdx = this.findDataIndex(x, y);
      return dataIdx >= 0;
    }
    this.hoverDataIdx = -1;
    return false;
  };
  LargeLinesPath.prototype.getBoundingRect = function () {
    // Ignore stroke for large symbol draw.
    var rect = this._rect;
    if (!rect) {
      var shape = this.shape;
      var points = shape.segs;
      var minX = Infinity;
      var minY = Infinity;
      var maxX = -Infinity;
      var maxY = -Infinity;
      for (var i = 0; i < points.length;) {
        var x = points[i++];
        var y = points[i++];
        minX = Math.min(x, minX);
        maxX = Math.max(x, maxX);
        minY = Math.min(y, minY);
        maxY = Math.max(y, maxY);
      }
      rect = this._rect = new core_BoundingRect(minX, minY, maxX, maxY);
    }
    return rect;
  };
  return LargeLinesPath;
}(graphic_Path);
var LargeLineDraw_LargeLineDraw = /** @class */function () {
  function LargeLineDraw() {
    this.group = new graphic_Group();
  }
  /**
   * Update symbols draw by new data
   */
  LargeLineDraw.prototype.updateData = function (data) {
    this._clear();
    var lineEl = this._create();
    lineEl.setShape({
      segs: data.getLayout('linesPoints')
    });
    this._setCommon(lineEl, data);
  };
  ;
  /**
   * @override
   */
  LargeLineDraw.prototype.incrementalPrepareUpdate = function (data) {
    this.group.removeAll();
    this._clear();
  };
  ;
  /**
   * @override
   */
  LargeLineDraw.prototype.incrementalUpdate = function (taskParams, data) {
    var lastAdded = this._newAdded[0];
    var linePoints = data.getLayout('linesPoints');
    var oldSegs = lastAdded && lastAdded.shape.segs;
    // Merging the exists. Each element has 1e4 points.
    // Consider the performance balance between too much elements and too much points in one shape(may affect hover optimization)
    if (oldSegs && oldSegs.length < 2e4) {
      var oldLen = oldSegs.length;
      var newSegs = new Float32Array(oldLen + linePoints.length);
      // Concat two array
      newSegs.set(oldSegs);
      newSegs.set(linePoints, oldLen);
      lastAdded.setShape({
        segs: newSegs
      });
    } else {
      // Clear
      this._newAdded = [];
      var lineEl = this._create();
      lineEl.incremental = true;
      lineEl.setShape({
        segs: linePoints
      });
      this._setCommon(lineEl, data);
      lineEl.__startIndex = taskParams.start;
    }
  };
  /**
   * @override
   */
  LargeLineDraw.prototype.remove = function () {
    this._clear();
  };
  LargeLineDraw.prototype.eachRendered = function (cb) {
    this._newAdded[0] && cb(this._newAdded[0]);
  };
  LargeLineDraw.prototype._create = function () {
    var lineEl = new LargeLineDraw_LargeLinesPath({
      cursor: 'default',
      ignoreCoarsePointer: true
    });
    this._newAdded.push(lineEl);
    this.group.add(lineEl);
    return lineEl;
  };
  LargeLineDraw.prototype._setCommon = function (lineEl, data, isIncremental) {
    var hostModel = data.hostModel;
    lineEl.setShape({
      polyline: hostModel.get('polyline'),
      curveness: hostModel.get(['lineStyle', 'curveness'])
    });
    lineEl.useStyle(hostModel.getModel('lineStyle').getLineStyle());
    lineEl.style.strokeNoScale = true;
    var style = data.getVisual('style');
    if (style && style.stroke) {
      lineEl.setStyle('stroke', style.stroke);
    }
    lineEl.setStyle('fill', null);
    var ecData = getECData(lineEl);
    // Enable tooltip
    // PENDING May have performance issue when path is extremely large
    ecData.seriesIndex = hostModel.seriesIndex;
    lineEl.on('mousemove', function (e) {
      ecData.dataIndex = null;
      var dataIndex = lineEl.hoverDataIdx;
      if (dataIndex > 0) {
        // Provide dataIndex for tooltip
        ecData.dataIndex = dataIndex + lineEl.__startIndex;
      }
    });
  };
  ;
  LargeLineDraw.prototype._clear = function () {
    this._newAdded = [];
    this.group.removeAll();
  };
  ;
  return LargeLineDraw;
}();
/* harmony default export */ var helper_LargeLineDraw = (LargeLineDraw_LargeLineDraw);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/lines/linesLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global Float32Array */


var linesLayout = {
  seriesType: 'lines',
  plan: createRenderPlanner(),
  reset: function (seriesModel) {
    var coordSys = seriesModel.coordinateSystem;
    if (!coordSys) {
      if (false) {}
      return;
    }
    var isPolyline = seriesModel.get('polyline');
    var isLarge = seriesModel.pipelineContext.large;
    return {
      progress: function (params, lineData) {
        var lineCoords = [];
        if (isLarge) {
          var points = void 0;
          var segCount = params.end - params.start;
          if (isPolyline) {
            var totalCoordsCount = 0;
            for (var i = params.start; i < params.end; i++) {
              totalCoordsCount += seriesModel.getLineCoordsCount(i);
            }
            points = new Float32Array(segCount + totalCoordsCount * 2);
          } else {
            points = new Float32Array(segCount * 4);
          }
          var offset = 0;
          var pt = [];
          for (var i = params.start; i < params.end; i++) {
            var len = seriesModel.getLineCoords(i, lineCoords);
            if (isPolyline) {
              points[offset++] = len;
            }
            for (var k = 0; k < len; k++) {
              pt = coordSys.dataToPoint(lineCoords[k], false, pt);
              points[offset++] = pt[0];
              points[offset++] = pt[1];
            }
          }
          lineData.setLayout('linesPoints', points);
        } else {
          for (var i = params.start; i < params.end; i++) {
            var itemModel = lineData.getItemModel(i);
            var len = seriesModel.getLineCoords(i, lineCoords);
            var pts = [];
            if (isPolyline) {
              for (var j = 0; j < len; j++) {
                pts.push(coordSys.dataToPoint(lineCoords[j]));
              }
            } else {
              pts[0] = coordSys.dataToPoint(lineCoords[0]);
              pts[1] = coordSys.dataToPoint(lineCoords[1]);
              var curveness = itemModel.get(['lineStyle', 'curveness']);
              if (+curveness) {
                pts[2] = [(pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness, (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness];
              }
            }
            lineData.setItemLayout(i, pts);
          }
        }
      }
    };
  }
};
/* harmony default export */ var lines_linesLayout = (linesLayout);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/lines/LinesView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/










var LinesView_LinesView = /** @class */function (_super) {
  __extends(LinesView, _super);
  function LinesView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = LinesView.type;
    return _this;
  }
  LinesView.prototype.render = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var lineDraw = this._updateLineDraw(data, seriesModel);
    var zlevel = seriesModel.get('zlevel');
    var trailLength = seriesModel.get(['effect', 'trailLength']);
    var zr = api.getZr();
    // Avoid the drag cause ghost shadow
    // FIXME Better way ?
    // SVG doesn't support
    var isSvg = zr.painter.getType() === 'svg';
    if (!isSvg) {
      zr.painter.getLayer(zlevel).clear(true);
    }
    // Config layer with motion blur
    if (this._lastZlevel != null && !isSvg) {
      zr.configLayer(this._lastZlevel, {
        motionBlur: false
      });
    }
    if (this._showEffect(seriesModel) && trailLength > 0) {
      if (!isSvg) {
        zr.configLayer(zlevel, {
          motionBlur: true,
          lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0)
        });
      } else if (false) {}
    }
    lineDraw.updateData(data);
    var clipPath = seriesModel.get('clip', true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
    if (clipPath) {
      this.group.setClipPath(clipPath);
    } else {
      this.group.removeClipPath();
    }
    this._lastZlevel = zlevel;
    this._finished = true;
  };
  LinesView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var lineDraw = this._updateLineDraw(data, seriesModel);
    lineDraw.incrementalPrepareUpdate(data);
    this._clearLayer(api);
    this._finished = false;
  };
  LinesView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {
    this._lineDraw.incrementalUpdate(taskParams, seriesModel.getData());
    this._finished = taskParams.end === seriesModel.getData().count();
  };
  LinesView.prototype.eachRendered = function (cb) {
    this._lineDraw && this._lineDraw.eachRendered(cb);
  };
  LinesView.prototype.updateTransform = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var pipelineContext = seriesModel.pipelineContext;
    if (!this._finished || pipelineContext.large || pipelineContext.progressiveRender) {
      // TODO Don't have to do update in large mode. Only do it when there are millions of data.
      return {
        update: true
      };
    } else {
      // TODO Use same logic with ScatterView.
      // Manually update layout
      var res = lines_linesLayout.reset(seriesModel, ecModel, api);
      if (res.progress) {
        res.progress({
          start: 0,
          end: data.count(),
          count: data.count()
        }, data);
      }
      // Not in large mode
      this._lineDraw.updateLayout();
      this._clearLayer(api);
    }
  };
  LinesView.prototype._updateLineDraw = function (data, seriesModel) {
    var lineDraw = this._lineDraw;
    var hasEffect = this._showEffect(seriesModel);
    var isPolyline = !!seriesModel.get('polyline');
    var pipelineContext = seriesModel.pipelineContext;
    var isLargeDraw = pipelineContext.large;
    if (false) {}
    if (!lineDraw || hasEffect !== this._hasEffet || isPolyline !== this._isPolyline || isLargeDraw !== this._isLargeDraw) {
      if (lineDraw) {
        lineDraw.remove();
      }
      lineDraw = this._lineDraw = isLargeDraw ? new helper_LargeLineDraw() : new helper_LineDraw(isPolyline ? hasEffect ? helper_EffectPolyline : helper_Polyline : hasEffect ? helper_EffectLine : helper_Line);
      this._hasEffet = hasEffect;
      this._isPolyline = isPolyline;
      this._isLargeDraw = isLargeDraw;
    }
    this.group.add(lineDraw.group);
    return lineDraw;
  };
  LinesView.prototype._showEffect = function (seriesModel) {
    return !!seriesModel.get(['effect', 'show']);
  };
  LinesView.prototype._clearLayer = function (api) {
    // Not use motion when dragging or zooming
    var zr = api.getZr();
    var isSvg = zr.painter.getType() === 'svg';
    if (!isSvg && this._lastZlevel != null) {
      zr.painter.getLayer(this._lastZlevel).clear(true);
    }
  };
  LinesView.prototype.remove = function (ecModel, api) {
    this._lineDraw && this._lineDraw.remove();
    this._lineDraw = null;
    // Clear motion when lineDraw is removed
    this._clearLayer(api);
  };
  LinesView.prototype.dispose = function (ecModel, api) {
    this.remove(ecModel, api);
  };
  LinesView.type = 'lines';
  return LinesView;
}(Chart);
/* harmony default export */ var lines_LinesView = (LinesView_LinesView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/lines/LinesSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/* global Uint32Array, Float64Array, Float32Array */





var Uint32Arr = typeof Uint32Array === 'undefined' ? Array : Uint32Array;
var Float64Arr = typeof Float64Array === 'undefined' ? Array : Float64Array;
function compatEc2(seriesOpt) {
  var data = seriesOpt.data;
  if (data && data[0] && data[0][0] && data[0][0].coord) {
    if (false) {}
    seriesOpt.data = Object(util["map"])(data, function (itemOpt) {
      var coords = [itemOpt[0].coord, itemOpt[1].coord];
      var target = {
        coords: coords
      };
      if (itemOpt[0].name) {
        target.fromName = itemOpt[0].name;
      }
      if (itemOpt[1].name) {
        target.toName = itemOpt[1].name;
      }
      return Object(util["mergeAll"])([target, itemOpt[0], itemOpt[1]]);
    });
  }
}
var LinesSeries_LinesSeriesModel = /** @class */function (_super) {
  __extends(LinesSeriesModel, _super);
  function LinesSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = LinesSeriesModel.type;
    _this.visualStyleAccessPath = 'lineStyle';
    _this.visualDrawType = 'stroke';
    return _this;
  }
  LinesSeriesModel.prototype.init = function (option) {
    // The input data may be null/undefined.
    option.data = option.data || [];
    // Not using preprocessor because mergeOption may not have series.type
    compatEc2(option);
    var result = this._processFlatCoordsArray(option.data);
    this._flatCoords = result.flatCoords;
    this._flatCoordsOffset = result.flatCoordsOffset;
    if (result.flatCoords) {
      option.data = new Float32Array(result.count);
    }
    _super.prototype.init.apply(this, arguments);
  };
  LinesSeriesModel.prototype.mergeOption = function (option) {
    compatEc2(option);
    if (option.data) {
      // Only update when have option data to merge.
      var result = this._processFlatCoordsArray(option.data);
      this._flatCoords = result.flatCoords;
      this._flatCoordsOffset = result.flatCoordsOffset;
      if (result.flatCoords) {
        option.data = new Float32Array(result.count);
      }
    }
    _super.prototype.mergeOption.apply(this, arguments);
  };
  LinesSeriesModel.prototype.appendData = function (params) {
    var result = this._processFlatCoordsArray(params.data);
    if (result.flatCoords) {
      if (!this._flatCoords) {
        this._flatCoords = result.flatCoords;
        this._flatCoordsOffset = result.flatCoordsOffset;
      } else {
        this._flatCoords = Object(util["concatArray"])(this._flatCoords, result.flatCoords);
        this._flatCoordsOffset = Object(util["concatArray"])(this._flatCoordsOffset, result.flatCoordsOffset);
      }
      params.data = new Float32Array(result.count);
    }
    this.getRawData().appendData(params.data);
  };
  LinesSeriesModel.prototype._getCoordsFromItemModel = function (idx) {
    var itemModel = this.getData().getItemModel(idx);
    var coords = itemModel.option instanceof Array ? itemModel.option : itemModel.getShallow('coords');
    if (false) {}
    return coords;
  };
  LinesSeriesModel.prototype.getLineCoordsCount = function (idx) {
    if (this._flatCoordsOffset) {
      return this._flatCoordsOffset[idx * 2 + 1];
    } else {
      return this._getCoordsFromItemModel(idx).length;
    }
  };
  LinesSeriesModel.prototype.getLineCoords = function (idx, out) {
    if (this._flatCoordsOffset) {
      var offset = this._flatCoordsOffset[idx * 2];
      var len = this._flatCoordsOffset[idx * 2 + 1];
      for (var i = 0; i < len; i++) {
        out[i] = out[i] || [];
        out[i][0] = this._flatCoords[offset + i * 2];
        out[i][1] = this._flatCoords[offset + i * 2 + 1];
      }
      return len;
    } else {
      var coords = this._getCoordsFromItemModel(idx);
      for (var i = 0; i < coords.length; i++) {
        out[i] = out[i] || [];
        out[i][0] = coords[i][0];
        out[i][1] = coords[i][1];
      }
      return coords.length;
    }
  };
  LinesSeriesModel.prototype._processFlatCoordsArray = function (data) {
    var startOffset = 0;
    if (this._flatCoords) {
      startOffset = this._flatCoords.length;
    }
    // Stored as a typed array. In format
    // Points Count(2) | x | y | x | y | Points Count(3) | x |  y | x | y | x | y |
    if (Object(util["isNumber"])(data[0])) {
      var len = data.length;
      // Store offset and len of each segment
      var coordsOffsetAndLenStorage = new Uint32Arr(len);
      var coordsStorage = new Float64Arr(len);
      var coordsCursor = 0;
      var offsetCursor = 0;
      var dataCount = 0;
      for (var i = 0; i < len;) {
        dataCount++;
        var count = data[i++];
        // Offset
        coordsOffsetAndLenStorage[offsetCursor++] = coordsCursor + startOffset;
        // Len
        coordsOffsetAndLenStorage[offsetCursor++] = count;
        for (var k = 0; k < count; k++) {
          var x = data[i++];
          var y = data[i++];
          coordsStorage[coordsCursor++] = x;
          coordsStorage[coordsCursor++] = y;
          if (i > len) {
            if (false) {}
          }
        }
      }
      return {
        flatCoordsOffset: new Uint32Array(coordsOffsetAndLenStorage.buffer, 0, offsetCursor),
        flatCoords: coordsStorage,
        count: dataCount
      };
    }
    return {
      flatCoordsOffset: null,
      flatCoords: null,
      count: data.length
    };
  };
  LinesSeriesModel.prototype.getInitialData = function (option, ecModel) {
    if (false) { var CoordSys; }
    var lineData = new data_SeriesData(['value'], this);
    lineData.hasItemOption = false;
    lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) {
      // dataItem is simply coords
      if (dataItem instanceof Array) {
        return NaN;
      } else {
        lineData.hasItemOption = true;
        var value = dataItem.value;
        if (value != null) {
          return value instanceof Array ? value[dimIndex] : value;
        }
      }
    });
    return lineData;
  };
  LinesSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    var data = this.getData();
    var itemModel = data.getItemModel(dataIndex);
    var name = itemModel.get('name');
    if (name) {
      return name;
    }
    var fromName = itemModel.get('fromName');
    var toName = itemModel.get('toName');
    var nameArr = [];
    fromName != null && nameArr.push(fromName);
    toName != null && nameArr.push(toName);
    return createTooltipMarkup('nameValue', {
      name: nameArr.join(' > ')
    });
  };
  LinesSeriesModel.prototype.preventIncremental = function () {
    return !!this.get(['effect', 'show']);
  };
  LinesSeriesModel.prototype.getProgressive = function () {
    var progressive = this.option.progressive;
    if (progressive == null) {
      return this.option.large ? 1e4 : this.get('progressive');
    }
    return progressive;
  };
  LinesSeriesModel.prototype.getProgressiveThreshold = function () {
    var progressiveThreshold = this.option.progressiveThreshold;
    if (progressiveThreshold == null) {
      return this.option.large ? 2e4 : this.get('progressiveThreshold');
    }
    return progressiveThreshold;
  };
  LinesSeriesModel.prototype.getZLevelKey = function () {
    var effectModel = this.getModel('effect');
    var trailLength = effectModel.get('trailLength');
    return this.getData().count() > this.getProgressiveThreshold()
    // Each progressive series has individual key.
    ? this.id : effectModel.get('show') && trailLength > 0 ? trailLength + '' : '';
  };
  LinesSeriesModel.type = 'series.lines';
  LinesSeriesModel.dependencies = ['grid', 'polar', 'geo', 'calendar'];
  LinesSeriesModel.defaultOption = {
    coordinateSystem: 'geo',
    // zlevel: 0,
    z: 2,
    legendHoverLink: true,
    // Cartesian coordinate system
    xAxisIndex: 0,
    yAxisIndex: 0,
    symbol: ['none', 'none'],
    symbolSize: [10, 10],
    // Geo coordinate system
    geoIndex: 0,
    effect: {
      show: false,
      period: 4,
      constantSpeed: 0,
      symbol: 'circle',
      symbolSize: 3,
      loop: true,
      trailLength: 0.2
    },
    large: false,
    // Available when large is true
    largeThreshold: 2000,
    polyline: false,
    clip: true,
    label: {
      show: false,
      position: 'end'
      // distance: 5,
      // formatter: 标签文本格式器，同Tooltip.formatter，不支持异步回调
    },
    lineStyle: {
      opacity: 0.5
    }
  };
  return LinesSeriesModel;
}(Series);
/* harmony default export */ var LinesSeries = (LinesSeries_LinesSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/lines/linesVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function linesVisual_normalize(a) {
  if (!(a instanceof Array)) {
    a = [a, a];
  }
  return a;
}
var linesVisual = {
  seriesType: 'lines',
  reset: function (seriesModel) {
    var symbolType = linesVisual_normalize(seriesModel.get('symbol'));
    var symbolSize = linesVisual_normalize(seriesModel.get('symbolSize'));
    var data = seriesModel.getData();
    data.setVisual('fromSymbol', symbolType && symbolType[0]);
    data.setVisual('toSymbol', symbolType && symbolType[1]);
    data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);
    data.setVisual('toSymbolSize', symbolSize && symbolSize[1]);
    function dataEach(data, idx) {
      var itemModel = data.getItemModel(idx);
      var symbolType = linesVisual_normalize(itemModel.getShallow('symbol', true));
      var symbolSize = linesVisual_normalize(itemModel.getShallow('symbolSize', true));
      symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]);
      symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]);
      symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]);
      symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]);
    }
    return {
      dataEach: data.hasItemOption ? dataEach : null
    };
  }
};
/* harmony default export */ var lines_linesVisual = (linesVisual);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/lines/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function lines_install_install(registers) {
  registers.registerChartView(lines_LinesView);
  registers.registerSeriesModel(LinesSeries);
  registers.registerLayout(lines_linesLayout);
  registers.registerVisual(lines_linesVisual);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global Uint8ClampedArray */

var GRADIENT_LEVELS = 256;
var HeatmapLayer_HeatmapLayer = /** @class */function () {
  function HeatmapLayer() {
    this.blurSize = 30;
    this.pointSize = 20;
    this.maxOpacity = 1;
    this.minOpacity = 0;
    this._gradientPixels = {
      inRange: null,
      outOfRange: null
    };
    var canvas = platform["d" /* platformApi */].createCanvas();
    this.canvas = canvas;
  }
  /**
   * Renders Heatmap and returns the rendered canvas
   * @param data array of data, each has x, y, value
   * @param width canvas width
   * @param height canvas height
   */
  HeatmapLayer.prototype.update = function (data, width, height, normalize, colorFunc, isInRange) {
    var brush = this._getBrush();
    var gradientInRange = this._getGradient(colorFunc, 'inRange');
    var gradientOutOfRange = this._getGradient(colorFunc, 'outOfRange');
    var r = this.pointSize + this.blurSize;
    var canvas = this.canvas;
    var ctx = canvas.getContext('2d');
    var len = data.length;
    canvas.width = width;
    canvas.height = height;
    for (var i = 0; i < len; ++i) {
      var p = data[i];
      var x = p[0];
      var y = p[1];
      var value = p[2];
      // calculate alpha using value
      var alpha = normalize(value);
      // draw with the circle brush with alpha
      ctx.globalAlpha = alpha;
      ctx.drawImage(brush, x - r, y - r);
    }
    if (!canvas.width || !canvas.height) {
      // Avoid "Uncaught DOMException: Failed to execute 'getImageData' on
      // 'CanvasRenderingContext2D': The source height is 0."
      return canvas;
    }
    // colorize the canvas using alpha value and set with gradient
    var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
    var pixels = imageData.data;
    var offset = 0;
    var pixelLen = pixels.length;
    var minOpacity = this.minOpacity;
    var maxOpacity = this.maxOpacity;
    var diffOpacity = maxOpacity - minOpacity;
    while (offset < pixelLen) {
      var alpha = pixels[offset + 3] / 256;
      var gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4;
      // Simple optimize to ignore the empty data
      if (alpha > 0) {
        var gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange;
        // Any alpha > 0 will be mapped to [minOpacity, maxOpacity]
        alpha > 0 && (alpha = alpha * diffOpacity + minOpacity);
        pixels[offset++] = gradient[gradientOffset];
        pixels[offset++] = gradient[gradientOffset + 1];
        pixels[offset++] = gradient[gradientOffset + 2];
        pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256;
      } else {
        offset += 4;
      }
    }
    ctx.putImageData(imageData, 0, 0);
    return canvas;
  };
  /**
   * get canvas of a black circle brush used for canvas to draw later
   */
  HeatmapLayer.prototype._getBrush = function () {
    var brushCanvas = this._brushCanvas || (this._brushCanvas = platform["d" /* platformApi */].createCanvas());
    // set brush size
    var r = this.pointSize + this.blurSize;
    var d = r * 2;
    brushCanvas.width = d;
    brushCanvas.height = d;
    var ctx = brushCanvas.getContext('2d');
    ctx.clearRect(0, 0, d, d);
    // in order to render shadow without the distinct circle,
    // draw the distinct circle in an invisible place,
    // and use shadowOffset to draw shadow in the center of the canvas
    ctx.shadowOffsetX = d;
    ctx.shadowBlur = this.blurSize;
    // draw the shadow in black, and use alpha and shadow blur to generate
    // color in color map
    ctx.shadowColor = '#000';
    // draw circle in the left to the canvas
    ctx.beginPath();
    ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true);
    ctx.closePath();
    ctx.fill();
    return brushCanvas;
  };
  /**
   * get gradient color map
   * @private
   */
  HeatmapLayer.prototype._getGradient = function (colorFunc, state) {
    var gradientPixels = this._gradientPixels;
    var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4));
    var color = [0, 0, 0, 0];
    var off = 0;
    for (var i = 0; i < 256; i++) {
      colorFunc[state](i / 255, true, color);
      pixelsSingleState[off++] = color[0];
      pixelsSingleState[off++] = color[1];
      pixelsSingleState[off++] = color[2];
      pixelsSingleState[off++] = color[3];
    }
    return pixelsSingleState;
  };
  return HeatmapLayer;
}();
/* harmony default export */ var heatmap_HeatmapLayer = (HeatmapLayer_HeatmapLayer);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/heatmap/HeatmapView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








function getIsInPiecewiseRange(dataExtent, pieceList, selected) {
  var dataSpan = dataExtent[1] - dataExtent[0];
  pieceList = util["map"](pieceList, function (piece) {
    return {
      interval: [(piece.interval[0] - dataExtent[0]) / dataSpan, (piece.interval[1] - dataExtent[0]) / dataSpan]
    };
  });
  var len = pieceList.length;
  var lastIndex = 0;
  return function (val) {
    var i;
    // Try to find in the location of the last found
    for (i = lastIndex; i < len; i++) {
      var interval = pieceList[i].interval;
      if (interval[0] <= val && val <= interval[1]) {
        lastIndex = i;
        break;
      }
    }
    if (i === len) {
      // Not found, back interation
      for (i = lastIndex - 1; i >= 0; i--) {
        var interval = pieceList[i].interval;
        if (interval[0] <= val && val <= interval[1]) {
          lastIndex = i;
          break;
        }
      }
    }
    return i >= 0 && i < len && selected[i];
  };
}
function getIsInContinuousRange(dataExtent, range) {
  var dataSpan = dataExtent[1] - dataExtent[0];
  range = [(range[0] - dataExtent[0]) / dataSpan, (range[1] - dataExtent[0]) / dataSpan];
  return function (val) {
    return val >= range[0] && val <= range[1];
  };
}
function isGeoCoordSys(coordSys) {
  var dimensions = coordSys.dimensions;
  // Not use coordSys.type === 'geo' because coordSys maybe extended
  return dimensions[0] === 'lng' && dimensions[1] === 'lat';
}
var HeatmapView_HeatmapView = /** @class */function (_super) {
  __extends(HeatmapView, _super);
  function HeatmapView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = HeatmapView.type;
    return _this;
  }
  HeatmapView.prototype.render = function (seriesModel, ecModel, api) {
    var visualMapOfThisSeries;
    ecModel.eachComponent('visualMap', function (visualMap) {
      visualMap.eachTargetSeries(function (targetSeries) {
        if (targetSeries === seriesModel) {
          visualMapOfThisSeries = visualMap;
        }
      });
    });
    if (false) {}
    // Clear previously rendered progressive elements.
    this._progressiveEls = null;
    this.group.removeAll();
    var coordSys = seriesModel.coordinateSystem;
    if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') {
      this._renderOnCartesianAndCalendar(seriesModel, api, 0, seriesModel.getData().count());
    } else if (isGeoCoordSys(coordSys)) {
      this._renderOnGeo(coordSys, seriesModel, visualMapOfThisSeries, api);
    }
  };
  HeatmapView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {
    this.group.removeAll();
  };
  HeatmapView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) {
    var coordSys = seriesModel.coordinateSystem;
    if (coordSys) {
      // geo does not support incremental rendering?
      if (isGeoCoordSys(coordSys)) {
        this.render(seriesModel, ecModel, api);
      } else {
        this._progressiveEls = [];
        this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true);
      }
    }
  };
  HeatmapView.prototype.eachRendered = function (cb) {
    traverseElements(this._progressiveEls || this.group, cb);
  };
  HeatmapView.prototype._renderOnCartesianAndCalendar = function (seriesModel, api, start, end, incremental) {
    var coordSys = seriesModel.coordinateSystem;
    var isCartesian2d = isCoordinateSystemType(coordSys, 'cartesian2d');
    var width;
    var height;
    var xAxisExtent;
    var yAxisExtent;
    if (isCartesian2d) {
      var xAxis = coordSys.getAxis('x');
      var yAxis = coordSys.getAxis('y');
      if (false) {}
      // add 0.5px to avoid the gaps
      width = xAxis.getBandWidth() + .5;
      height = yAxis.getBandWidth() + .5;
      xAxisExtent = xAxis.scale.getExtent();
      yAxisExtent = yAxis.scale.getExtent();
    }
    var group = this.group;
    var data = seriesModel.getData();
    var emphasisStyle = seriesModel.getModel(['emphasis', 'itemStyle']).getItemStyle();
    var blurStyle = seriesModel.getModel(['blur', 'itemStyle']).getItemStyle();
    var selectStyle = seriesModel.getModel(['select', 'itemStyle']).getItemStyle();
    var borderRadius = seriesModel.get(['itemStyle', 'borderRadius']);
    var labelStatesModels = getLabelStatesModels(seriesModel);
    var emphasisModel = seriesModel.getModel('emphasis');
    var focus = emphasisModel.get('focus');
    var blurScope = emphasisModel.get('blurScope');
    var emphasisDisabled = emphasisModel.get('disabled');
    var dataDims = isCartesian2d ? [data.mapDimension('x'), data.mapDimension('y'), data.mapDimension('value')] : [data.mapDimension('time'), data.mapDimension('value')];
    for (var idx = start; idx < end; idx++) {
      var rect = void 0;
      var style = data.getItemVisual(idx, 'style');
      if (isCartesian2d) {
        var dataDimX = data.get(dataDims[0], idx);
        var dataDimY = data.get(dataDims[1], idx);
        // Ignore empty data and out of extent data
        if (isNaN(data.get(dataDims[2], idx)) || isNaN(dataDimX) || isNaN(dataDimY) || dataDimX < xAxisExtent[0] || dataDimX > xAxisExtent[1] || dataDimY < yAxisExtent[0] || dataDimY > yAxisExtent[1]) {
          continue;
        }
        var point = coordSys.dataToPoint([dataDimX, dataDimY]);
        rect = new shape_Rect({
          shape: {
            x: point[0] - width / 2,
            y: point[1] - height / 2,
            width: width,
            height: height
          },
          style: style
        });
      } else {
        // Ignore empty data
        if (isNaN(data.get(dataDims[1], idx))) {
          continue;
        }
        rect = new shape_Rect({
          z2: 1,
          shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape,
          style: style
        });
      }
      // Optimization for large dataset
      if (data.hasItemOption) {
        var itemModel = data.getItemModel(idx);
        var emphasisModel_1 = itemModel.getModel('emphasis');
        emphasisStyle = emphasisModel_1.getModel('itemStyle').getItemStyle();
        blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();
        selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();
        // Each item value struct in the data would be firstly
        // {
        //     itemStyle: { borderRadius: [30, 30] },
        //     value: [2022, 02, 22]
        // }
        borderRadius = itemModel.get(['itemStyle', 'borderRadius']);
        focus = emphasisModel_1.get('focus');
        blurScope = emphasisModel_1.get('blurScope');
        emphasisDisabled = emphasisModel_1.get('disabled');
        labelStatesModels = getLabelStatesModels(itemModel);
      }
      rect.shape.r = borderRadius;
      var rawValue = seriesModel.getRawValue(idx);
      var defaultText = '-';
      if (rawValue && rawValue[2] != null) {
        defaultText = rawValue[2] + '';
      }
      setLabelStyle(rect, labelStatesModels, {
        labelFetcher: seriesModel,
        labelDataIndex: idx,
        defaultOpacity: style.opacity,
        defaultText: defaultText
      });
      rect.ensureState('emphasis').style = emphasisStyle;
      rect.ensureState('blur').style = blurStyle;
      rect.ensureState('select').style = selectStyle;
      toggleHoverEmphasis(rect, focus, blurScope, emphasisDisabled);
      rect.incremental = incremental;
      // PENDING
      if (incremental) {
        // Rect must use hover layer if it's incremental.
        rect.states.emphasis.hoverLayer = true;
      }
      group.add(rect);
      data.setItemGraphicEl(idx, rect);
      if (this._progressiveEls) {
        this._progressiveEls.push(rect);
      }
    }
  };
  HeatmapView.prototype._renderOnGeo = function (geo, seriesModel, visualMapModel, api) {
    var inRangeVisuals = visualMapModel.targetVisuals.inRange;
    var outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange;
    // if (!visualMapping) {
    //     throw new Error('Data range must have color visuals');
    // }
    var data = seriesModel.getData();
    var hmLayer = this._hmLayer || this._hmLayer || new heatmap_HeatmapLayer();
    hmLayer.blurSize = seriesModel.get('blurSize');
    hmLayer.pointSize = seriesModel.get('pointSize');
    hmLayer.minOpacity = seriesModel.get('minOpacity');
    hmLayer.maxOpacity = seriesModel.get('maxOpacity');
    var rect = geo.getViewRect().clone();
    var roamTransform = geo.getRoamTransform();
    rect.applyTransform(roamTransform);
    // Clamp on viewport
    var x = Math.max(rect.x, 0);
    var y = Math.max(rect.y, 0);
    var x2 = Math.min(rect.width + rect.x, api.getWidth());
    var y2 = Math.min(rect.height + rect.y, api.getHeight());
    var width = x2 - x;
    var height = y2 - y;
    var dims = [data.mapDimension('lng'), data.mapDimension('lat'), data.mapDimension('value')];
    var points = data.mapArray(dims, function (lng, lat, value) {
      var pt = geo.dataToPoint([lng, lat]);
      pt[0] -= x;
      pt[1] -= y;
      pt.push(value);
      return pt;
    });
    var dataExtent = visualMapModel.getExtent();
    var isInRange = visualMapModel.type === 'visualMap.continuous' ? getIsInContinuousRange(dataExtent, visualMapModel.option.range) : getIsInPiecewiseRange(dataExtent, visualMapModel.getPieceList(), visualMapModel.option.selected);
    hmLayer.update(points, width, height, inRangeVisuals.color.getNormalizer(), {
      inRange: inRangeVisuals.color.getColorMapper(),
      outOfRange: outOfRangeVisuals.color.getColorMapper()
    }, isInRange);
    var img = new graphic_Image({
      style: {
        width: width,
        height: height,
        x: x,
        y: y,
        image: hmLayer.canvas
      },
      silent: true
    });
    this.group.add(img);
  };
  HeatmapView.type = 'heatmap';
  return HeatmapView;
}(Chart);
/* harmony default export */ var heatmap_HeatmapView = (HeatmapView_HeatmapView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var HeatmapSeries_HeatmapSeriesModel = /** @class */function (_super) {
  __extends(HeatmapSeriesModel, _super);
  function HeatmapSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = HeatmapSeriesModel.type;
    return _this;
  }
  HeatmapSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return helper_createSeriesData(null, this, {
      generateCoord: 'value'
    });
  };
  HeatmapSeriesModel.prototype.preventIncremental = function () {
    var coordSysCreator = CoordinateSystem.get(this.get('coordinateSystem'));
    if (coordSysCreator && coordSysCreator.dimensions) {
      return coordSysCreator.dimensions[0] === 'lng' && coordSysCreator.dimensions[1] === 'lat';
    }
  };
  HeatmapSeriesModel.type = 'series.heatmap';
  HeatmapSeriesModel.dependencies = ['grid', 'geo', 'calendar'];
  HeatmapSeriesModel.defaultOption = {
    coordinateSystem: 'cartesian2d',
    // zlevel: 0,
    z: 2,
    // Cartesian coordinate system
    // xAxisIndex: 0,
    // yAxisIndex: 0,
    // Geo coordinate system
    geoIndex: 0,
    blurSize: 30,
    pointSize: 20,
    maxOpacity: 1,
    minOpacity: 0,
    select: {
      itemStyle: {
        borderColor: '#212121'
      }
    }
  };
  return HeatmapSeriesModel;
}(Series);
/* harmony default export */ var HeatmapSeries = (HeatmapSeries_HeatmapSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/heatmap/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function heatmap_install_install(registers) {
  registers.registerChartView(heatmap_HeatmapView);
  registers.registerSeriesModel(HeatmapSeries);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/PictorialBarView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/












var BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'borderWidth'];
// index: +isHorizontal
var LAYOUT_ATTRS = [{
  xy: 'x',
  wh: 'width',
  index: 0,
  posDesc: ['left', 'right']
}, {
  xy: 'y',
  wh: 'height',
  index: 1,
  posDesc: ['top', 'bottom']
}];
var pathForLineWidth = new shape_Circle();
var PictorialBarView_PictorialBarView = /** @class */function (_super) {
  __extends(PictorialBarView, _super);
  function PictorialBarView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = PictorialBarView.type;
    return _this;
  }
  PictorialBarView.prototype.render = function (seriesModel, ecModel, api) {
    var group = this.group;
    var data = seriesModel.getData();
    var oldData = this._data;
    var cartesian = seriesModel.coordinateSystem;
    var baseAxis = cartesian.getBaseAxis();
    var isHorizontal = baseAxis.isHorizontal();
    var coordSysRect = cartesian.master.getRect();
    var opt = {
      ecSize: {
        width: api.getWidth(),
        height: api.getHeight()
      },
      seriesModel: seriesModel,
      coordSys: cartesian,
      coordSysExtent: [[coordSysRect.x, coordSysRect.x + coordSysRect.width], [coordSysRect.y, coordSysRect.y + coordSysRect.height]],
      isHorizontal: isHorizontal,
      valueDim: LAYOUT_ATTRS[+isHorizontal],
      categoryDim: LAYOUT_ATTRS[1 - +isHorizontal]
    };
    data.diff(oldData).add(function (dataIndex) {
      if (!data.hasValue(dataIndex)) {
        return;
      }
      var itemModel = PictorialBarView_getItemModel(data, dataIndex);
      var symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt);
      var bar = createBar(data, opt, symbolMeta);
      data.setItemGraphicEl(dataIndex, bar);
      group.add(bar);
      PictorialBarView_updateCommon(bar, opt, symbolMeta);
    }).update(function (newIndex, oldIndex) {
      var bar = oldData.getItemGraphicEl(oldIndex);
      if (!data.hasValue(newIndex)) {
        group.remove(bar);
        return;
      }
      var itemModel = PictorialBarView_getItemModel(data, newIndex);
      var symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt);
      var pictorialShapeStr = getShapeStr(data, symbolMeta);
      if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) {
        group.remove(bar);
        data.setItemGraphicEl(newIndex, null);
        bar = null;
      }
      if (bar) {
        updateBar(bar, opt, symbolMeta);
      } else {
        bar = createBar(data, opt, symbolMeta, true);
      }
      data.setItemGraphicEl(newIndex, bar);
      bar.__pictorialSymbolMeta = symbolMeta;
      // Add back
      group.add(bar);
      PictorialBarView_updateCommon(bar, opt, symbolMeta);
    }).remove(function (dataIndex) {
      var bar = oldData.getItemGraphicEl(dataIndex);
      bar && removeBar(oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar);
    }).execute();
    // Do clipping
    var clipPath = seriesModel.get('clip', true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;
    if (clipPath) {
      group.setClipPath(clipPath);
    } else {
      group.removeClipPath();
    }
    this._data = data;
    return this.group;
  };
  PictorialBarView.prototype.remove = function (ecModel, api) {
    var group = this.group;
    var data = this._data;
    if (ecModel.get('animation')) {
      if (data) {
        data.eachItemGraphicEl(function (bar) {
          removeBar(data, getECData(bar).dataIndex, ecModel, bar);
        });
      }
    } else {
      group.removeAll();
    }
  };
  PictorialBarView.type = 'pictorialBar';
  return PictorialBarView;
}(Chart);
// Set or calculate default value about symbol, and calculate layout info.
function getSymbolMeta(data, dataIndex, itemModel, opt) {
  var layout = data.getItemLayout(dataIndex);
  var symbolRepeat = itemModel.get('symbolRepeat');
  var symbolClip = itemModel.get('symbolClip');
  var symbolPosition = itemModel.get('symbolPosition') || 'start';
  var symbolRotate = itemModel.get('symbolRotate');
  var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;
  var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;
  var isAnimationEnabled = itemModel.isAnimationEnabled();
  var symbolMeta = {
    dataIndex: dataIndex,
    layout: layout,
    itemModel: itemModel,
    symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',
    style: data.getItemVisual(dataIndex, 'style'),
    symbolClip: symbolClip,
    symbolRepeat: symbolRepeat,
    symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),
    symbolPatternSize: symbolPatternSize,
    rotation: rotation,
    animationModel: isAnimationEnabled ? itemModel : null,
    hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']),
    z2: itemModel.getShallow('z', true) || 0
  };
  prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);
  prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta);
  prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);
  var symbolSize = symbolMeta.symbolSize;
  var symbolOffset = normalizeSymbolOffset(itemModel.get('symbolOffset'), symbolSize);
  prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta);
  return symbolMeta;
}
// bar length can be negative.
function prepareBarLength(itemModel, symbolRepeat, layout, opt, outputSymbolMeta) {
  var valueDim = opt.valueDim;
  var symbolBoundingData = itemModel.get('symbolBoundingData');
  var valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis());
  var zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0));
  var pxSignIdx = 1 - +(layout[valueDim.wh] <= 0);
  var boundingLength;
  if (util["isArray"](symbolBoundingData)) {
    var symbolBoundingExtent = [convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx, convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx];
    symbolBoundingExtent[1] < symbolBoundingExtent[0] && symbolBoundingExtent.reverse();
    boundingLength = symbolBoundingExtent[pxSignIdx];
  } else if (symbolBoundingData != null) {
    boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx;
  } else if (symbolRepeat) {
    boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx;
  } else {
    boundingLength = layout[valueDim.wh];
  }
  outputSymbolMeta.boundingLength = boundingLength;
  if (symbolRepeat) {
    outputSymbolMeta.repeatCutLength = layout[valueDim.wh];
  }
  // if 'pxSign' means sign of pixel,  it can't be zero, or symbolScale will be zero
  // and when borderWidth be settled, the actual linewidth will be NaN
  var isXAxis = valueDim.xy === 'x';
  var isInverse = valueAxis.inverse;
  outputSymbolMeta.pxSign = isXAxis && !isInverse || !isXAxis && isInverse ? boundingLength >= 0 ? 1 : -1 : boundingLength > 0 ? 1 : -1;
}
function convertToCoordOnAxis(axis, value) {
  return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value)));
}
// Support ['100%', '100%']
function prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength, pxSign, symbolPatternSize, opt, outputSymbolMeta) {
  var valueDim = opt.valueDim;
  var categoryDim = opt.categoryDim;
  var categorySize = Math.abs(layout[categoryDim.wh]);
  var symbolSize = data.getItemVisual(dataIndex, 'symbolSize');
  var parsedSymbolSize;
  if (util["isArray"](symbolSize)) {
    parsedSymbolSize = symbolSize.slice();
  } else {
    if (symbolSize == null) {
      // will parse to number below
      parsedSymbolSize = ['100%', '100%'];
    } else {
      parsedSymbolSize = [symbolSize, symbolSize];
    }
  }
  // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is
  // to complicated to calculate real percent value if considering scaled lineWidth.
  // So the actual size will bigger than layout size if lineWidth is bigger than zero,
  // which can be tolerated in pictorial chart.
  parsedSymbolSize[categoryDim.index] = number_parsePercent(parsedSymbolSize[categoryDim.index], categorySize);
  parsedSymbolSize[valueDim.index] = number_parsePercent(parsedSymbolSize[valueDim.index], symbolRepeat ? categorySize : Math.abs(boundingLength));
  outputSymbolMeta.symbolSize = parsedSymbolSize;
  // If x or y is less than zero, show reversed shape.
  var symbolScale = outputSymbolMeta.symbolScale = [parsedSymbolSize[0] / symbolPatternSize, parsedSymbolSize[1] / symbolPatternSize];
  // Follow convention, 'right' and 'top' is the normal scale.
  symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign;
}
function prepareLineWidth(itemModel, symbolScale, rotation, opt, outputSymbolMeta) {
  // In symbols are drawn with scale, so do not need to care about the case that width
  // or height are too small. But symbol use strokeNoScale, where acture lineWidth should
  // be calculated.
  var valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0;
  if (valueLineWidth) {
    pathForLineWidth.attr({
      scaleX: symbolScale[0],
      scaleY: symbolScale[1],
      rotation: rotation
    });
    pathForLineWidth.updateTransform();
    valueLineWidth /= pathForLineWidth.getLineScale();
    valueLineWidth *= symbolScale[opt.valueDim.index];
  }
  outputSymbolMeta.valueLineWidth = valueLineWidth || 0;
}
function prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, valueLineWidth, boundingLength, repeatCutLength, opt, outputSymbolMeta) {
  var categoryDim = opt.categoryDim;
  var valueDim = opt.valueDim;
  var pxSign = outputSymbolMeta.pxSign;
  var unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0);
  var pathLen = unitLength;
  // Note: rotation will not effect the layout of symbols, because user may
  // want symbols to rotate on its center, which should not be translated
  // when rotating.
  if (symbolRepeat) {
    var absBoundingLength = Math.abs(boundingLength);
    var symbolMargin = util["retrieve"](itemModel.get('symbolMargin'), '15%') + '';
    var hasEndGap = false;
    if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) {
      hasEndGap = true;
      symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1);
    }
    var symbolMarginNumeric = number_parsePercent(symbolMargin, symbolSize[valueDim.index]);
    var uLenWithMargin = Math.max(unitLength + symbolMarginNumeric * 2, 0);
    // When symbol margin is less than 0, margin at both ends will be subtracted
    // to ensure that all of the symbols will not be overflow the given area.
    var endFix = hasEndGap ? 0 : symbolMarginNumeric * 2;
    // Both final repeatTimes and final symbolMarginNumeric area calculated based on
    // boundingLength.
    var repeatSpecified = isNumeric(symbolRepeat);
    var repeatTimes = repeatSpecified ? symbolRepeat : toIntTimes((absBoundingLength + endFix) / uLenWithMargin);
    // Adjust calculate margin, to ensure each symbol is displayed
    // entirely in the given layout area.
    var mDiff = absBoundingLength - repeatTimes * unitLength;
    symbolMarginNumeric = mDiff / 2 / (hasEndGap ? repeatTimes : Math.max(repeatTimes - 1, 1));
    uLenWithMargin = unitLength + symbolMarginNumeric * 2;
    endFix = hasEndGap ? 0 : symbolMarginNumeric * 2;
    // Update repeatTimes when not all symbol will be shown.
    if (!repeatSpecified && symbolRepeat !== 'fixed') {
      repeatTimes = repeatCutLength ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin) : 0;
    }
    pathLen = repeatTimes * uLenWithMargin - endFix;
    outputSymbolMeta.repeatTimes = repeatTimes;
    outputSymbolMeta.symbolMargin = symbolMarginNumeric;
  }
  var sizeFix = pxSign * (pathLen / 2);
  var pathPosition = outputSymbolMeta.pathPosition = [];
  pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2;
  pathPosition[valueDim.index] = symbolPosition === 'start' ? sizeFix : symbolPosition === 'end' ? boundingLength - sizeFix : boundingLength / 2; // 'center'
  if (symbolOffset) {
    pathPosition[0] += symbolOffset[0];
    pathPosition[1] += symbolOffset[1];
  }
  var bundlePosition = outputSymbolMeta.bundlePosition = [];
  bundlePosition[categoryDim.index] = layout[categoryDim.xy];
  bundlePosition[valueDim.index] = layout[valueDim.xy];
  var barRectShape = outputSymbolMeta.barRectShape = util["extend"]({}, layout);
  barRectShape[valueDim.wh] = pxSign * Math.max(Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix));
  barRectShape[categoryDim.wh] = layout[categoryDim.wh];
  var clipShape = outputSymbolMeta.clipShape = {};
  // Consider that symbol may be overflow layout rect.
  clipShape[categoryDim.xy] = -layout[categoryDim.xy];
  clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh];
  clipShape[valueDim.xy] = 0;
  clipShape[valueDim.wh] = layout[valueDim.wh];
}
function createPath(symbolMeta) {
  var symbolPatternSize = symbolMeta.symbolPatternSize;
  var path = symbol_createSymbol(
  // Consider texture img, make a big size.
  symbolMeta.symbolType, -symbolPatternSize / 2, -symbolPatternSize / 2, symbolPatternSize, symbolPatternSize);
  path.attr({
    culling: true
  });
  path.type !== 'image' && path.setStyle({
    strokeNoScale: true
  });
  return path;
}
function createOrUpdateRepeatSymbols(bar, opt, symbolMeta, isUpdate) {
  var bundle = bar.__pictorialBundle;
  var symbolSize = symbolMeta.symbolSize;
  var valueLineWidth = symbolMeta.valueLineWidth;
  var pathPosition = symbolMeta.pathPosition;
  var valueDim = opt.valueDim;
  var repeatTimes = symbolMeta.repeatTimes || 0;
  var index = 0;
  var unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2;
  eachPath(bar, function (path) {
    path.__pictorialAnimationIndex = index;
    path.__pictorialRepeatTimes = repeatTimes;
    if (index < repeatTimes) {
      PictorialBarView_updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate);
    } else {
      PictorialBarView_updateAttr(path, null, {
        scaleX: 0,
        scaleY: 0
      }, symbolMeta, isUpdate, function () {
        bundle.remove(path);
      });
    }
    // updateHoverAnimation(path, symbolMeta);
    index++;
  });
  for (; index < repeatTimes; index++) {
    var path = createPath(symbolMeta);
    path.__pictorialAnimationIndex = index;
    path.__pictorialRepeatTimes = repeatTimes;
    bundle.add(path);
    var target = makeTarget(index);
    PictorialBarView_updateAttr(path, {
      x: target.x,
      y: target.y,
      scaleX: 0,
      scaleY: 0
    }, {
      scaleX: target.scaleX,
      scaleY: target.scaleY,
      rotation: target.rotation
    }, symbolMeta, isUpdate);
  }
  function makeTarget(index) {
    var position = pathPosition.slice();
    // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index
    // Otherwise: i = index;
    var pxSign = symbolMeta.pxSign;
    var i = index;
    if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) {
      i = repeatTimes - 1 - index;
    }
    position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index];
    return {
      x: position[0],
      y: position[1],
      scaleX: symbolMeta.symbolScale[0],
      scaleY: symbolMeta.symbolScale[1],
      rotation: symbolMeta.rotation
    };
  }
}
function createOrUpdateSingleSymbol(bar, opt, symbolMeta, isUpdate) {
  var bundle = bar.__pictorialBundle;
  var mainPath = bar.__pictorialMainPath;
  if (!mainPath) {
    mainPath = bar.__pictorialMainPath = createPath(symbolMeta);
    bundle.add(mainPath);
    PictorialBarView_updateAttr(mainPath, {
      x: symbolMeta.pathPosition[0],
      y: symbolMeta.pathPosition[1],
      scaleX: 0,
      scaleY: 0,
      rotation: symbolMeta.rotation
    }, {
      scaleX: symbolMeta.symbolScale[0],
      scaleY: symbolMeta.symbolScale[1]
    }, symbolMeta, isUpdate);
  } else {
    PictorialBarView_updateAttr(mainPath, null, {
      x: symbolMeta.pathPosition[0],
      y: symbolMeta.pathPosition[1],
      scaleX: symbolMeta.symbolScale[0],
      scaleY: symbolMeta.symbolScale[1],
      rotation: symbolMeta.rotation
    }, symbolMeta, isUpdate);
  }
}
// bar rect is used for label.
function createOrUpdateBarRect(bar, symbolMeta, isUpdate) {
  var rectShape = util["extend"]({}, symbolMeta.barRectShape);
  var barRect = bar.__pictorialBarRect;
  if (!barRect) {
    barRect = bar.__pictorialBarRect = new shape_Rect({
      z2: 2,
      shape: rectShape,
      silent: true,
      style: {
        stroke: 'transparent',
        fill: 'transparent',
        lineWidth: 0
      }
    });
    barRect.disableMorphing = true;
    bar.add(barRect);
  } else {
    PictorialBarView_updateAttr(barRect, null, {
      shape: rectShape
    }, symbolMeta, isUpdate);
  }
}
function createOrUpdateClip(bar, opt, symbolMeta, isUpdate) {
  // If not clip, symbol will be remove and rebuilt.
  if (symbolMeta.symbolClip) {
    var clipPath = bar.__pictorialClipPath;
    var clipShape = util["extend"]({}, symbolMeta.clipShape);
    var valueDim = opt.valueDim;
    var animationModel = symbolMeta.animationModel;
    var dataIndex = symbolMeta.dataIndex;
    if (clipPath) {
      updateProps(clipPath, {
        shape: clipShape
      }, animationModel, dataIndex);
    } else {
      clipShape[valueDim.wh] = 0;
      clipPath = new shape_Rect({
        shape: clipShape
      });
      bar.__pictorialBundle.setClipPath(clipPath);
      bar.__pictorialClipPath = clipPath;
      var target = {};
      target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh];
      graphic_namespaceObject[isUpdate ? 'updateProps' : 'initProps'](clipPath, {
        shape: target
      }, animationModel, dataIndex);
    }
  }
}
function PictorialBarView_getItemModel(data, dataIndex) {
  var itemModel = data.getItemModel(dataIndex);
  itemModel.getAnimationDelayParams = getAnimationDelayParams;
  itemModel.isAnimationEnabled = PictorialBarView_isAnimationEnabled;
  return itemModel;
}
function getAnimationDelayParams(path) {
  // The order is the same as the z-order, see `symbolRepeatDiretion`.
  return {
    index: path.__pictorialAnimationIndex,
    count: path.__pictorialRepeatTimes
  };
}
function PictorialBarView_isAnimationEnabled() {
  // `animation` prop can be set on itemModel in pictorial bar chart.
  return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation');
}
function createBar(data, opt, symbolMeta, isUpdate) {
  // bar is the main element for each data.
  var bar = new graphic_Group();
  // bundle is used for location and clip.
  var bundle = new graphic_Group();
  bar.add(bundle);
  bar.__pictorialBundle = bundle;
  bundle.x = symbolMeta.bundlePosition[0];
  bundle.y = symbolMeta.bundlePosition[1];
  if (symbolMeta.symbolRepeat) {
    createOrUpdateRepeatSymbols(bar, opt, symbolMeta);
  } else {
    createOrUpdateSingleSymbol(bar, opt, symbolMeta);
  }
  createOrUpdateBarRect(bar, symbolMeta, isUpdate);
  createOrUpdateClip(bar, opt, symbolMeta, isUpdate);
  bar.__pictorialShapeStr = getShapeStr(data, symbolMeta);
  bar.__pictorialSymbolMeta = symbolMeta;
  return bar;
}
function updateBar(bar, opt, symbolMeta) {
  var animationModel = symbolMeta.animationModel;
  var dataIndex = symbolMeta.dataIndex;
  var bundle = bar.__pictorialBundle;
  updateProps(bundle, {
    x: symbolMeta.bundlePosition[0],
    y: symbolMeta.bundlePosition[1]
  }, animationModel, dataIndex);
  if (symbolMeta.symbolRepeat) {
    createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true);
  } else {
    createOrUpdateSingleSymbol(bar, opt, symbolMeta, true);
  }
  createOrUpdateBarRect(bar, symbolMeta, true);
  createOrUpdateClip(bar, opt, symbolMeta, true);
}
function removeBar(data, dataIndex, animationModel, bar) {
  // Not show text when animating
  var labelRect = bar.__pictorialBarRect;
  labelRect && labelRect.removeTextContent();
  var paths = [];
  eachPath(bar, function (path) {
    paths.push(path);
  });
  bar.__pictorialMainPath && paths.push(bar.__pictorialMainPath);
  // I do not find proper remove animation for clip yet.
  bar.__pictorialClipPath && (animationModel = null);
  util["each"](paths, function (path) {
    removeElement(path, {
      scaleX: 0,
      scaleY: 0
    }, animationModel, dataIndex, function () {
      bar.parent && bar.parent.remove(bar);
    });
  });
  data.setItemGraphicEl(dataIndex, null);
}
function getShapeStr(data, symbolMeta) {
  return [data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none', !!symbolMeta.symbolRepeat, !!symbolMeta.symbolClip].join(':');
}
function eachPath(bar, cb, context) {
  // Do not use Group#eachChild, because it do not support remove.
  util["each"](bar.__pictorialBundle.children(), function (el) {
    el !== bar.__pictorialBarRect && cb.call(context, el);
  });
}
function PictorialBarView_updateAttr(el, immediateAttrs, animationAttrs, symbolMeta, isUpdate, cb) {
  immediateAttrs && el.attr(immediateAttrs);
  // when symbolCip used, only clip path has init animation, otherwise it would be weird effect.
  if (symbolMeta.symbolClip && !isUpdate) {
    animationAttrs && el.attr(animationAttrs);
  } else {
    animationAttrs && graphic_namespaceObject[isUpdate ? 'updateProps' : 'initProps'](el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb);
  }
}
function PictorialBarView_updateCommon(bar, opt, symbolMeta) {
  var dataIndex = symbolMeta.dataIndex;
  var itemModel = symbolMeta.itemModel;
  // Color must be excluded.
  // Because symbol provide setColor individually to set fill and stroke
  var emphasisModel = itemModel.getModel('emphasis');
  var emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();
  var blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();
  var selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();
  var cursorStyle = itemModel.getShallow('cursor');
  var focus = emphasisModel.get('focus');
  var blurScope = emphasisModel.get('blurScope');
  var hoverScale = emphasisModel.get('scale');
  eachPath(bar, function (path) {
    if (path instanceof graphic_Image) {
      var pathStyle = path.style;
      path.useStyle(util["extend"]({
        // TODO other properties like dx, dy ?
        image: pathStyle.image,
        x: pathStyle.x,
        y: pathStyle.y,
        width: pathStyle.width,
        height: pathStyle.height
      }, symbolMeta.style));
    } else {
      path.useStyle(symbolMeta.style);
    }
    var emphasisState = path.ensureState('emphasis');
    emphasisState.style = emphasisStyle;
    if (hoverScale) {
      // NOTE: Must after scale is set after updateAttr
      emphasisState.scaleX = path.scaleX * 1.1;
      emphasisState.scaleY = path.scaleY * 1.1;
    }
    path.ensureState('blur').style = blurStyle;
    path.ensureState('select').style = selectStyle;
    cursorStyle && (path.cursor = cursorStyle);
    path.z2 = symbolMeta.z2;
  });
  var barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)];
  var barRect = bar.__pictorialBarRect;
  barRect.ignoreClip = true;
  setLabelStyle(barRect, getLabelStatesModels(itemModel), {
    labelFetcher: opt.seriesModel,
    labelDataIndex: dataIndex,
    defaultText: getDefaultLabel(opt.seriesModel.getData(), dataIndex),
    inheritColor: symbolMeta.style.fill,
    defaultOpacity: symbolMeta.style.opacity,
    defaultOutsidePosition: barPositionOutside
  });
  toggleHoverEmphasis(bar, focus, blurScope, emphasisModel.get('disabled'));
}
function toIntTimes(times) {
  var roundedTimes = Math.round(times);
  // Escapse accurate error
  return Math.abs(times - roundedTimes) < 1e-4 ? roundedTimes : Math.ceil(times);
}
/* harmony default export */ var bar_PictorialBarView = (PictorialBarView_PictorialBarView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/PictorialBarSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var PictorialBarSeries_PictorialBarSeriesModel = /** @class */function (_super) {
  __extends(PictorialBarSeriesModel, _super);
  function PictorialBarSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = PictorialBarSeriesModel.type;
    _this.hasSymbolVisual = true;
    _this.defaultSymbol = 'roundRect';
    return _this;
  }
  PictorialBarSeriesModel.prototype.getInitialData = function (option) {
    // Disable stack.
    option.stack = null;
    return _super.prototype.getInitialData.apply(this, arguments);
  };
  PictorialBarSeriesModel.type = 'series.pictorialBar';
  PictorialBarSeriesModel.dependencies = ['grid'];
  PictorialBarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeries.defaultOption, {
    symbol: 'circle',
    symbolSize: null,
    symbolRotate: null,
    symbolPosition: null,
    symbolOffset: null,
    symbolMargin: null,
    symbolRepeat: false,
    symbolRepeatDirection: 'end',
    symbolClip: false,
    symbolBoundingData: null,
    symbolPatternSize: 400,
    barGap: '-100%',
    // Pictorial bar do not clip by default because in many cases
    // xAxis and yAxis are not displayed and it's expected not to clip
    clip: false,
    // z can be set in data item, which is z2 actually.
    // Disable progressive
    progressive: 0,
    emphasis: {
      // By default pictorialBar do not hover scale. Hover scale is not suitable
      // for the case that both has foreground and background.
      scale: false
    },
    select: {
      itemStyle: {
        borderColor: '#212121'
      }
    }
  });
  return PictorialBarSeriesModel;
}(BaseBarSeries);
/* harmony default export */ var PictorialBarSeries = (PictorialBarSeries_PictorialBarSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/installPictorialBar.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function installPictorialBar_install(registers) {
  registers.registerChartView(bar_PictorialBarView);
  registers.registerSeriesModel(PictorialBarSeries);
  registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, Object(util["curry"])(barGrid_layout, 'pictorialBar'));
  // Do layout after other overall layout, which can prepare some information.
  registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, createProgressiveLayout('pictorialBar'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









var ThemeRiverView_ThemeRiverView = /** @class */function (_super) {
  __extends(ThemeRiverView, _super);
  function ThemeRiverView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ThemeRiverView.type;
    _this._layers = [];
    return _this;
  }
  ThemeRiverView.prototype.render = function (seriesModel, ecModel, api) {
    var data = seriesModel.getData();
    var self = this;
    var group = this.group;
    var layersSeries = seriesModel.getLayerSeries();
    var layoutInfo = data.getLayout('layoutInfo');
    var rect = layoutInfo.rect;
    var boundaryGap = layoutInfo.boundaryGap;
    group.x = 0;
    group.y = rect.y + boundaryGap[0];
    function keyGetter(item) {
      return item.name;
    }
    var dataDiffer = new data_DataDiffer(this._layersSeries || [], layersSeries, keyGetter, keyGetter);
    var newLayersGroups = [];
    dataDiffer.add(Object(util["bind"])(process, this, 'add')).update(Object(util["bind"])(process, this, 'update')).remove(Object(util["bind"])(process, this, 'remove')).execute();
    function process(status, idx, oldIdx) {
      var oldLayersGroups = self._layers;
      if (status === 'remove') {
        group.remove(oldLayersGroups[idx]);
        return;
      }
      var points0 = [];
      var points1 = [];
      var style;
      var indices = layersSeries[idx].indices;
      var j = 0;
      for (; j < indices.length; j++) {
        var layout = data.getItemLayout(indices[j]);
        var x = layout.x;
        var y0 = layout.y0;
        var y = layout.y;
        points0.push(x, y0);
        points1.push(x, y0 + y);
        style = data.getItemVisual(indices[j], 'style');
      }
      var polygon;
      var textLayout = data.getItemLayout(indices[0]);
      var labelModel = seriesModel.getModel('label');
      var margin = labelModel.get('margin');
      var emphasisModel = seriesModel.getModel('emphasis');
      if (status === 'add') {
        var layerGroup = newLayersGroups[idx] = new graphic_Group();
        polygon = new poly_ECPolygon({
          shape: {
            points: points0,
            stackedOnPoints: points1,
            smooth: 0.4,
            stackedOnSmooth: 0.4,
            smoothConstraint: false
          },
          z2: 0
        });
        layerGroup.add(polygon);
        group.add(layerGroup);
        if (seriesModel.isAnimationEnabled()) {
          polygon.setClipPath(ThemeRiverView_createGridClipShape(polygon.getBoundingRect(), seriesModel, function () {
            polygon.removeClipPath();
          }));
        }
      } else {
        var layerGroup = oldLayersGroups[oldIdx];
        polygon = layerGroup.childAt(0);
        group.add(layerGroup);
        newLayersGroups[idx] = layerGroup;
        updateProps(polygon, {
          shape: {
            points: points0,
            stackedOnPoints: points1
          }
        }, seriesModel);
        saveOldStyle(polygon);
      }
      setLabelStyle(polygon, getLabelStatesModels(seriesModel), {
        labelDataIndex: indices[j - 1],
        defaultText: data.getName(indices[j - 1]),
        inheritColor: style.fill
      }, {
        normal: {
          verticalAlign: 'middle'
          // align: 'right'
        }
      });
      polygon.setTextConfig({
        position: null,
        local: true
      });
      var labelEl = polygon.getTextContent();
      // TODO More label position options.
      if (labelEl) {
        labelEl.x = textLayout.x - margin;
        labelEl.y = textLayout.y0 + textLayout.y / 2;
      }
      polygon.useStyle(style);
      data.setItemGraphicEl(idx, polygon);
      setStatesStylesFromModel(polygon, seriesModel);
      toggleHoverEmphasis(polygon, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
    }
    this._layersSeries = layersSeries;
    this._layers = newLayersGroups;
  };
  ThemeRiverView.type = 'themeRiver';
  return ThemeRiverView;
}(Chart);
;
// add animation to the view
function ThemeRiverView_createGridClipShape(rect, seriesModel, cb) {
  var rectEl = new shape_Rect({
    shape: {
      x: rect.x - 10,
      y: rect.y - 10,
      width: 0,
      height: rect.height + 20
    }
  });
  initProps(rectEl, {
    shape: {
      x: rect.x - 50,
      width: rect.width + 100,
      height: rect.height + 20
    }
  }, seriesModel, cb);
  return rectEl;
}
/* harmony default export */ var themeRiver_ThemeRiverView = (ThemeRiverView_ThemeRiverView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









var DATA_NAME_INDEX = 2;
var ThemeRiverSeries_ThemeRiverSeriesModel = /** @class */function (_super) {
  __extends(ThemeRiverSeriesModel, _super);
  function ThemeRiverSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ThemeRiverSeriesModel.type;
    return _this;
  }
  /**
   * @override
   */
  ThemeRiverSeriesModel.prototype.init = function (option) {
    // eslint-disable-next-line
    _super.prototype.init.apply(this, arguments);
    // Put this function here is for the sake of consistency of code style.
    // Enable legend selection for each data item
    // Use a function instead of direct access because data reference may changed
    this.legendVisualProvider = new visual_LegendVisualProvider(util["bind"](this.getData, this), util["bind"](this.getRawData, this));
  };
  /**
   * If there is no value of a certain point in the time for some event,set it value to 0.
   *
   * @param {Array} data  initial data in the option
   * @return {Array}
   */
  ThemeRiverSeriesModel.prototype.fixData = function (data) {
    var rawDataLength = data.length;
    /**
     * Make sure every layer data get the same keys.
     * The value index tells which layer has visited.
     * {
     *  2014/01/01: -1
     * }
     */
    var timeValueKeys = {};
    // grouped data by name
    var groupResult = groupData(data, function (item) {
      if (!timeValueKeys.hasOwnProperty(item[0] + '')) {
        timeValueKeys[item[0] + ''] = -1;
      }
      return item[2];
    });
    var layerData = [];
    groupResult.buckets.each(function (items, key) {
      layerData.push({
        name: key,
        dataList: items
      });
    });
    var layerNum = layerData.length;
    for (var k = 0; k < layerNum; ++k) {
      var name_1 = layerData[k].name;
      for (var j = 0; j < layerData[k].dataList.length; ++j) {
        var timeValue = layerData[k].dataList[j][0] + '';
        timeValueKeys[timeValue] = k;
      }
      for (var timeValue in timeValueKeys) {
        if (timeValueKeys.hasOwnProperty(timeValue) && timeValueKeys[timeValue] !== k) {
          timeValueKeys[timeValue] = k;
          data[rawDataLength] = [timeValue, 0, name_1];
          rawDataLength++;
        }
      }
    }
    return data;
  };
  /**
   * @override
   * @param  option  the initial option that user gave
   * @param  ecModel  the model object for themeRiver option
   */
  ThemeRiverSeriesModel.prototype.getInitialData = function (option, ecModel) {
    var singleAxisModel = this.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];
    var axisType = singleAxisModel.get('type');
    // filter the data item with the value of label is undefined
    var filterData = util["filter"](option.data, function (dataItem) {
      return dataItem[2] !== undefined;
    });
    // ??? TODO design a stage to transfer data for themeRiver and lines?
    var data = this.fixData(filterData || []);
    var nameList = [];
    var nameMap = this.nameMap = util["createHashMap"]();
    var count = 0;
    for (var i = 0; i < data.length; ++i) {
      nameList.push(data[i][DATA_NAME_INDEX]);
      if (!nameMap.get(data[i][DATA_NAME_INDEX])) {
        nameMap.set(data[i][DATA_NAME_INDEX], count);
        count++;
      }
    }
    var dimensions = prepareSeriesDataSchema(data, {
      coordDimensions: ['single'],
      dimensionsDefine: [{
        name: 'time',
        type: getDimensionTypeByAxis(axisType)
      }, {
        name: 'value',
        type: 'float'
      }, {
        name: 'name',
        type: 'ordinal'
      }],
      encodeDefine: {
        single: 0,
        value: 1,
        itemName: 2
      }
    }).dimensions;
    var list = new data_SeriesData(dimensions, this);
    list.initData(data);
    return list;
  };
  /**
   * The raw data is divided into multiple layers and each layer
   *     has same name.
   */
  ThemeRiverSeriesModel.prototype.getLayerSeries = function () {
    var data = this.getData();
    var lenCount = data.count();
    var indexArr = [];
    for (var i = 0; i < lenCount; ++i) {
      indexArr[i] = i;
    }
    var timeDim = data.mapDimension('single');
    // data group by name
    var groupResult = groupData(indexArr, function (index) {
      return data.get('name', index);
    });
    var layerSeries = [];
    groupResult.buckets.each(function (items, key) {
      items.sort(function (index1, index2) {
        return data.get(timeDim, index1) - data.get(timeDim, index2);
      });
      layerSeries.push({
        name: key,
        indices: items
      });
    });
    return layerSeries;
  };
  /**
   * Get data indices for show tooltip content
   */
  ThemeRiverSeriesModel.prototype.getAxisTooltipData = function (dim, value, baseAxis) {
    if (!util["isArray"](dim)) {
      dim = dim ? [dim] : [];
    }
    var data = this.getData();
    var layerSeries = this.getLayerSeries();
    var indices = [];
    var layerNum = layerSeries.length;
    var nestestValue;
    for (var i = 0; i < layerNum; ++i) {
      var minDist = Number.MAX_VALUE;
      var nearestIdx = -1;
      var pointNum = layerSeries[i].indices.length;
      for (var j = 0; j < pointNum; ++j) {
        var theValue = data.get(dim[0], layerSeries[i].indices[j]);
        var dist = Math.abs(theValue - value);
        if (dist <= minDist) {
          nestestValue = theValue;
          minDist = dist;
          nearestIdx = layerSeries[i].indices[j];
        }
      }
      indices.push(nearestIdx);
    }
    return {
      dataIndices: indices,
      nestestValue: nestestValue
    };
  };
  ThemeRiverSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    var data = this.getData();
    var name = data.getName(dataIndex);
    var value = data.get(data.mapDimension('value'), dataIndex);
    return createTooltipMarkup('nameValue', {
      name: name,
      value: value
    });
  };
  ThemeRiverSeriesModel.type = 'series.themeRiver';
  ThemeRiverSeriesModel.dependencies = ['singleAxis'];
  ThemeRiverSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    colorBy: 'data',
    coordinateSystem: 'singleAxis',
    // gap in axis's orthogonal orientation
    boundaryGap: ['10%', '10%'],
    // legendHoverLink: true,
    singleAxisIndex: 0,
    animationEasing: 'linear',
    label: {
      margin: 4,
      show: true,
      position: 'left',
      fontSize: 11
    },
    emphasis: {
      label: {
        show: true
      }
    }
  };
  return ThemeRiverSeriesModel;
}(Series);
/* harmony default export */ var ThemeRiverSeries = (ThemeRiverSeries_ThemeRiverSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function themeRiverLayout(ecModel, api) {
  ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
    var data = seriesModel.getData();
    var single = seriesModel.coordinateSystem;
    var layoutInfo = {};
    // use the axis boundingRect for view
    var rect = single.getRect();
    layoutInfo.rect = rect;
    var boundaryGap = seriesModel.get('boundaryGap');
    var axis = single.getAxis();
    layoutInfo.boundaryGap = boundaryGap;
    if (axis.orient === 'horizontal') {
      boundaryGap[0] = number_parsePercent(boundaryGap[0], rect.height);
      boundaryGap[1] = number_parsePercent(boundaryGap[1], rect.height);
      var height = rect.height - boundaryGap[0] - boundaryGap[1];
      doThemeRiverLayout(data, seriesModel, height);
    } else {
      boundaryGap[0] = number_parsePercent(boundaryGap[0], rect.width);
      boundaryGap[1] = number_parsePercent(boundaryGap[1], rect.width);
      var width = rect.width - boundaryGap[0] - boundaryGap[1];
      doThemeRiverLayout(data, seriesModel, width);
    }
    data.setLayout('layoutInfo', layoutInfo);
  });
}
/**
 * The layout information about themeriver
 *
 * @param data  data in the series
 * @param seriesModel  the model object of themeRiver series
 * @param height  value used to compute every series height
 */
function doThemeRiverLayout(data, seriesModel, height) {
  if (!data.count()) {
    return;
  }
  var coordSys = seriesModel.coordinateSystem;
  // the data in each layer are organized into a series.
  var layerSeries = seriesModel.getLayerSeries();
  // the points in each layer.
  var timeDim = data.mapDimension('single');
  var valueDim = data.mapDimension('value');
  var layerPoints = util["map"](layerSeries, function (singleLayer) {
    return util["map"](singleLayer.indices, function (idx) {
      var pt = coordSys.dataToPoint(data.get(timeDim, idx));
      pt[1] = data.get(valueDim, idx);
      return pt;
    });
  });
  var base = computeBaseline(layerPoints);
  var baseLine = base.y0;
  var ky = height / base.max;
  // set layout information for each item.
  var n = layerSeries.length;
  var m = layerSeries[0].indices.length;
  var baseY0;
  for (var j = 0; j < m; ++j) {
    baseY0 = baseLine[j] * ky;
    data.setItemLayout(layerSeries[0].indices[j], {
      layerIndex: 0,
      x: layerPoints[0][j][0],
      y0: baseY0,
      y: layerPoints[0][j][1] * ky
    });
    for (var i = 1; i < n; ++i) {
      baseY0 += layerPoints[i - 1][j][1] * ky;
      data.setItemLayout(layerSeries[i].indices[j], {
        layerIndex: i,
        x: layerPoints[i][j][0],
        y0: baseY0,
        y: layerPoints[i][j][1] * ky
      });
    }
  }
}
/**
 * Compute the baseLine of the rawdata
 * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics
 *
 * @param  data  the points in each layer
 */
function computeBaseline(data) {
  var layerNum = data.length;
  var pointNum = data[0].length;
  var sums = [];
  var y0 = [];
  var max = 0;
  for (var i = 0; i < pointNum; ++i) {
    var temp = 0;
    for (var j = 0; j < layerNum; ++j) {
      temp += data[j][i][1];
    }
    if (temp > max) {
      max = temp;
    }
    sums.push(temp);
  }
  for (var k = 0; k < pointNum; ++k) {
    y0[k] = (max - sums[k]) / 2;
  }
  max = 0;
  for (var l = 0; l < pointNum; ++l) {
    var sum = sums[l] + y0[l];
    if (sum > max) {
      max = sum;
    }
  }
  return {
    y0: y0,
    max: max
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */





function themeRiver_install_install(registers) {
  registers.registerChartView(themeRiver_ThemeRiverView);
  registers.registerSeriesModel(ThemeRiverSeries);
  registers.registerLayout(themeRiverLayout);
  registers.registerProcessor(dataFilter('themeRiver'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/SunburstPiece.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/











var DEFAULT_SECTOR_Z = 2;
var DEFAULT_TEXT_Z = 4;
/**
 * Sunburstce of Sunburst including Sector, Label, LabelLine
 */
var SunburstPiece_SunburstPiece = /** @class */function (_super) {
  __extends(SunburstPiece, _super);
  function SunburstPiece(node, seriesModel, ecModel, api) {
    var _this = _super.call(this) || this;
    _this.z2 = DEFAULT_SECTOR_Z;
    _this.textConfig = {
      inside: true
    };
    getECData(_this).seriesIndex = seriesModel.seriesIndex;
    var text = new Text({
      z2: DEFAULT_TEXT_Z,
      silent: node.getModel().get(['label', 'silent'])
    });
    _this.setTextContent(text);
    _this.updateData(true, node, seriesModel, ecModel, api);
    return _this;
  }
  SunburstPiece.prototype.updateData = function (firstCreate, node,
  // state: 'emphasis' | 'normal' | 'highlight' | 'downplay',
  seriesModel, ecModel, api) {
    this.node = node;
    node.piece = this;
    seriesModel = seriesModel || this._seriesModel;
    ecModel = ecModel || this._ecModel;
    var sector = this;
    getECData(sector).dataIndex = node.dataIndex;
    var itemModel = node.getModel();
    var emphasisModel = itemModel.getModel('emphasis');
    var layout = node.getLayout();
    var sectorShape = util["extend"]({}, layout);
    sectorShape.label = null;
    var normalStyle = node.getVisual('style');
    normalStyle.lineJoin = 'bevel';
    var decal = node.getVisual('decal');
    if (decal) {
      normalStyle.decal = createOrUpdatePatternFromDecal(decal, api);
    }
    var cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape, true);
    util["extend"](sectorShape, cornerRadius);
    util["each"](SPECIAL_STATES, function (stateName) {
      var state = sector.ensureState(stateName);
      var itemStyleModel = itemModel.getModel([stateName, 'itemStyle']);
      state.style = itemStyleModel.getItemStyle();
      // border radius
      var cornerRadius = getSectorCornerRadius(itemStyleModel, sectorShape);
      if (cornerRadius) {
        state.shape = cornerRadius;
      }
    });
    if (firstCreate) {
      sector.setShape(sectorShape);
      sector.shape.r = layout.r0;
      initProps(sector, {
        shape: {
          r: layout.r
        }
      }, seriesModel, node.dataIndex);
    } else {
      // Disable animation for gradient since no interpolation method
      // is supported for gradient
      updateProps(sector, {
        shape: sectorShape
      }, seriesModel);
      saveOldStyle(sector);
    }
    sector.useStyle(normalStyle);
    this._updateLabel(seriesModel);
    var cursorStyle = itemModel.getShallow('cursor');
    cursorStyle && sector.attr('cursor', cursorStyle);
    this._seriesModel = seriesModel || this._seriesModel;
    this._ecModel = ecModel || this._ecModel;
    var focus = emphasisModel.get('focus');
    var focusOrIndices = focus === 'relative' ? util["concatArray"](node.getAncestorsIndices(), node.getDescendantIndices()) : focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : focus;
    toggleHoverEmphasis(this, focusOrIndices, emphasisModel.get('blurScope'), emphasisModel.get('disabled'));
  };
  SunburstPiece.prototype._updateLabel = function (seriesModel) {
    var _this = this;
    var itemModel = this.node.getModel();
    var normalLabelModel = itemModel.getModel('label');
    var layout = this.node.getLayout();
    var angle = layout.endAngle - layout.startAngle;
    var midAngle = (layout.startAngle + layout.endAngle) / 2;
    var dx = Math.cos(midAngle);
    var dy = Math.sin(midAngle);
    var sector = this;
    var label = sector.getTextContent();
    var dataIndex = this.node.dataIndex;
    var labelMinAngle = normalLabelModel.get('minAngle') / 180 * Math.PI;
    var isNormalShown = normalLabelModel.get('show') && !(labelMinAngle != null && Math.abs(angle) < labelMinAngle);
    label.ignore = !isNormalShown;
    // TODO use setLabelStyle
    util["each"](DISPLAY_STATES, function (stateName) {
      var labelStateModel = stateName === 'normal' ? itemModel.getModel('label') : itemModel.getModel([stateName, 'label']);
      var isNormal = stateName === 'normal';
      var state = isNormal ? label : label.ensureState(stateName);
      var text = seriesModel.getFormattedLabel(dataIndex, stateName);
      if (isNormal) {
        text = text || _this.node.name;
      }
      state.style = createTextStyle(labelStateModel, {}, null, stateName !== 'normal', true);
      if (text) {
        state.style.text = text;
      }
      // Not displaying text when angle is too small
      var isShown = labelStateModel.get('show');
      if (isShown != null && !isNormal) {
        state.ignore = !isShown;
      }
      var labelPosition = getLabelAttr(labelStateModel, 'position');
      var sectorState = isNormal ? sector : sector.states[stateName];
      var labelColor = sectorState.style.fill;
      sectorState.textConfig = {
        outsideFill: labelStateModel.get('color') === 'inherit' ? labelColor : null,
        inside: labelPosition !== 'outside'
      };
      var r;
      var labelPadding = getLabelAttr(labelStateModel, 'distance') || 0;
      var textAlign = getLabelAttr(labelStateModel, 'align');
      var rotateType = getLabelAttr(labelStateModel, 'rotate');
      var flipStartAngle = Math.PI * 0.5;
      var flipEndAngle = Math.PI * 1.5;
      var midAngleNormal = normalizeRadian(rotateType === 'tangential' ? Math.PI / 2 - midAngle : midAngle);
      // For text that is up-side down, rotate 180 degrees to make sure
      // it's readable
      var needsFlip = midAngleNormal > flipStartAngle && !isRadianAroundZero(midAngleNormal - flipStartAngle) && midAngleNormal < flipEndAngle;
      if (labelPosition === 'outside') {
        r = layout.r + labelPadding;
        textAlign = needsFlip ? 'right' : 'left';
      } else {
        if (!textAlign || textAlign === 'center') {
          // Put label in the center if it's a circle
          if (angle === 2 * Math.PI && layout.r0 === 0) {
            r = 0;
          } else {
            r = (layout.r + layout.r0) / 2;
          }
          textAlign = 'center';
        } else if (textAlign === 'left') {
          r = layout.r0 + labelPadding;
          textAlign = needsFlip ? 'right' : 'left';
        } else if (textAlign === 'right') {
          r = layout.r - labelPadding;
          textAlign = needsFlip ? 'left' : 'right';
        }
      }
      state.style.align = textAlign;
      state.style.verticalAlign = getLabelAttr(labelStateModel, 'verticalAlign') || 'middle';
      state.x = r * dx + layout.cx;
      state.y = r * dy + layout.cy;
      var rotate = 0;
      if (rotateType === 'radial') {
        rotate = normalizeRadian(-midAngle) + (needsFlip ? Math.PI : 0);
      } else if (rotateType === 'tangential') {
        rotate = normalizeRadian(Math.PI / 2 - midAngle) + (needsFlip ? Math.PI : 0);
      } else if (util["isNumber"](rotateType)) {
        rotate = rotateType * Math.PI / 180;
      }
      state.rotation = normalizeRadian(rotate);
    });
    function getLabelAttr(model, name) {
      var stateAttr = model.get(name);
      if (stateAttr == null) {
        return normalLabelModel.get(name);
      }
      return stateAttr;
    }
    label.dirtyStyle();
  };
  return SunburstPiece;
}(shape_Sector);
/* harmony default export */ var sunburst_SunburstPiece = (SunburstPiece_SunburstPiece);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/sunburstAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var ROOT_TO_NODE_ACTION = 'sunburstRootToNode';
var HIGHLIGHT_ACTION = 'sunburstHighlight';
var UNHIGHLIGHT_ACTION = 'sunburstUnhighlight';
function installSunburstAction(registers) {
  registers.registerAction({
    type: ROOT_TO_NODE_ACTION,
    update: 'updateView'
  }, function (payload, ecModel) {
    ecModel.eachComponent({
      mainType: 'series',
      subType: 'sunburst',
      query: payload
    }, handleRootToNode);
    function handleRootToNode(model, index) {
      var targetInfo = retrieveTargetInfo(payload, [ROOT_TO_NODE_ACTION], model);
      if (targetInfo) {
        var originViewRoot = model.getViewRoot();
        if (originViewRoot) {
          payload.direction = aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown';
        }
        model.resetViewRoot(targetInfo.node);
      }
    }
  });
  registers.registerAction({
    type: HIGHLIGHT_ACTION,
    update: 'none'
  }, function (payload, ecModel, api) {
    // Clone
    payload = Object(util["extend"])({}, payload);
    ecModel.eachComponent({
      mainType: 'series',
      subType: 'sunburst',
      query: payload
    }, handleHighlight);
    function handleHighlight(model) {
      var targetInfo = retrieveTargetInfo(payload, [HIGHLIGHT_ACTION], model);
      if (targetInfo) {
        payload.dataIndex = targetInfo.node.dataIndex;
      }
    }
    if (false) {}
    // Fast forward action
    api.dispatchAction(Object(util["extend"])(payload, {
      type: 'highlight'
    }));
  });
  registers.registerAction({
    type: UNHIGHLIGHT_ACTION,
    update: 'updateView'
  }, function (payload, ecModel, api) {
    payload = Object(util["extend"])({}, payload);
    if (false) {}
    api.dispatchAction(Object(util["extend"])(payload, {
      type: 'downplay'
    }));
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/SunburstView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var SunburstView_SunburstView = /** @class */function (_super) {
  __extends(SunburstView, _super);
  function SunburstView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SunburstView.type;
    return _this;
  }
  SunburstView.prototype.render = function (seriesModel, ecModel, api,
  // @ts-ignore
  payload) {
    var self = this;
    this.seriesModel = seriesModel;
    this.api = api;
    this.ecModel = ecModel;
    var data = seriesModel.getData();
    var virtualRoot = data.tree.root;
    var newRoot = seriesModel.getViewRoot();
    var group = this.group;
    var renderLabelForZeroData = seriesModel.get('renderLabelForZeroData');
    var newChildren = [];
    newRoot.eachNode(function (node) {
      newChildren.push(node);
    });
    var oldChildren = this._oldChildren || [];
    dualTravel(newChildren, oldChildren);
    renderRollUp(virtualRoot, newRoot);
    this._initEvents();
    this._oldChildren = newChildren;
    function dualTravel(newChildren, oldChildren) {
      if (newChildren.length === 0 && oldChildren.length === 0) {
        return;
      }
      new data_DataDiffer(oldChildren, newChildren, getKey, getKey).add(processNode).update(processNode).remove(util["curry"](processNode, null)).execute();
      function getKey(node) {
        return node.getId();
      }
      function processNode(newIdx, oldIdx) {
        var newNode = newIdx == null ? null : newChildren[newIdx];
        var oldNode = oldIdx == null ? null : oldChildren[oldIdx];
        doRenderNode(newNode, oldNode);
      }
    }
    function doRenderNode(newNode, oldNode) {
      if (!renderLabelForZeroData && newNode && !newNode.getValue()) {
        // Not render data with value 0
        newNode = null;
      }
      if (newNode !== virtualRoot && oldNode !== virtualRoot) {
        if (oldNode && oldNode.piece) {
          if (newNode) {
            // Update
            oldNode.piece.updateData(false, newNode, seriesModel, ecModel, api);
            // For tooltip
            data.setItemGraphicEl(newNode.dataIndex, oldNode.piece);
          } else {
            // Remove
            removeNode(oldNode);
          }
        } else if (newNode) {
          // Add
          var piece = new sunburst_SunburstPiece(newNode, seriesModel, ecModel, api);
          group.add(piece);
          // For tooltip
          data.setItemGraphicEl(newNode.dataIndex, piece);
        }
      }
    }
    function removeNode(node) {
      if (!node) {
        return;
      }
      if (node.piece) {
        group.remove(node.piece);
        node.piece = null;
      }
    }
    function renderRollUp(virtualRoot, viewRoot) {
      if (viewRoot.depth > 0) {
        // Render
        if (self.virtualPiece) {
          // Update
          self.virtualPiece.updateData(false, virtualRoot, seriesModel, ecModel, api);
        } else {
          // Add
          self.virtualPiece = new sunburst_SunburstPiece(virtualRoot, seriesModel, ecModel, api);
          group.add(self.virtualPiece);
        }
        // TODO event scope
        viewRoot.piece.off('click');
        self.virtualPiece.on('click', function (e) {
          self._rootToNode(viewRoot.parentNode);
        });
      } else if (self.virtualPiece) {
        // Remove
        group.remove(self.virtualPiece);
        self.virtualPiece = null;
      }
    }
  };
  /**
   * @private
   */
  SunburstView.prototype._initEvents = function () {
    var _this = this;
    this.group.off('click');
    this.group.on('click', function (e) {
      var targetFound = false;
      var viewRoot = _this.seriesModel.getViewRoot();
      viewRoot.eachNode(function (node) {
        if (!targetFound && node.piece && node.piece === e.target) {
          var nodeClick = node.getModel().get('nodeClick');
          if (nodeClick === 'rootToNode') {
            _this._rootToNode(node);
          } else if (nodeClick === 'link') {
            var itemModel = node.getModel();
            var link = itemModel.get('link');
            if (link) {
              var linkTarget = itemModel.get('target', true) || '_blank';
              windowOpen(link, linkTarget);
            }
          }
          targetFound = true;
        }
      });
    });
  };
  /**
   * @private
   */
  SunburstView.prototype._rootToNode = function (node) {
    if (node !== this.seriesModel.getViewRoot()) {
      this.api.dispatchAction({
        type: ROOT_TO_NODE_ACTION,
        from: this.uid,
        seriesId: this.seriesModel.id,
        targetNode: node
      });
    }
  };
  /**
   * @implement
   */
  SunburstView.prototype.containPoint = function (point, seriesModel) {
    var treeRoot = seriesModel.getData();
    var itemLayout = treeRoot.getItemLayout(0);
    if (itemLayout) {
      var dx = point[0] - itemLayout.cx;
      var dy = point[1] - itemLayout.cy;
      var radius = Math.sqrt(dx * dx + dy * dy);
      return radius <= itemLayout.r && radius >= itemLayout.r0;
    }
  };
  SunburstView.type = 'sunburst';
  return SunburstView;
}(Chart);
/* harmony default export */ var sunburst_SunburstView = (SunburstView_SunburstView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/SunburstSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var SunburstSeries_SunburstSeriesModel = /** @class */function (_super) {
  __extends(SunburstSeriesModel, _super);
  function SunburstSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SunburstSeriesModel.type;
    _this.ignoreStyleOnData = true;
    return _this;
  }
  SunburstSeriesModel.prototype.getInitialData = function (option, ecModel) {
    // Create a virtual root.
    var root = {
      name: option.name,
      children: option.data
    };
    SunburstSeries_completeTreeValue(root);
    var levelModels = this._levelModels = util["map"](option.levels || [], function (levelDefine) {
      return new model_Model(levelDefine, this, ecModel);
    }, this);
    // Make sure always a new tree is created when setOption,
    // in TreemapView, we check whether oldTree === newTree
    // to choose mappings approach among old shapes and new shapes.
    var tree = data_Tree.createTree(root, this, beforeLink);
    function beforeLink(nodeData) {
      nodeData.wrapMethod('getItemModel', function (model, idx) {
        var node = tree.getNodeByDataIndex(idx);
        var levelModel = levelModels[node.depth];
        levelModel && (model.parentModel = levelModel);
        return model;
      });
    }
    return tree.data;
  };
  SunburstSeriesModel.prototype.optionUpdated = function () {
    this.resetViewRoot();
  };
  /*
   * @override
   */
  SunburstSeriesModel.prototype.getDataParams = function (dataIndex) {
    var params = _super.prototype.getDataParams.apply(this, arguments);
    var node = this.getData().tree.getNodeByDataIndex(dataIndex);
    params.treePathInfo = wrapTreePathInfo(node, this);
    return params;
  };
  SunburstSeriesModel.prototype.getLevelModel = function (node) {
    return this._levelModels && this._levelModels[node.depth];
  };
  SunburstSeriesModel.prototype.getViewRoot = function () {
    return this._viewRoot;
  };
  SunburstSeriesModel.prototype.resetViewRoot = function (viewRoot) {
    viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot;
    var root = this.getRawData().tree.root;
    if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) {
      this._viewRoot = root;
    }
  };
  SunburstSeriesModel.prototype.enableAriaDecal = function () {
    enableAriaDecalForTree(this);
  };
  SunburstSeriesModel.type = 'series.sunburst';
  SunburstSeriesModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    // 默认全局居中
    center: ['50%', '50%'],
    radius: [0, '75%'],
    // 默认顺时针
    clockwise: true,
    startAngle: 90,
    // 最小角度改为0
    minAngle: 0,
    // If still show when all data zero.
    stillShowZeroSum: true,
    // 'rootToNode', 'link', or false
    nodeClick: 'rootToNode',
    renderLabelForZeroData: false,
    label: {
      // could be: 'radial', 'tangential', or 'none'
      rotate: 'radial',
      show: true,
      opacity: 1,
      // 'left' is for inner side of inside, and 'right' is for outer
      // side for inside
      align: 'center',
      position: 'inside',
      distance: 5,
      silent: true
    },
    itemStyle: {
      borderWidth: 1,
      borderColor: 'white',
      borderType: 'solid',
      shadowBlur: 0,
      shadowColor: 'rgba(0, 0, 0, 0.2)',
      shadowOffsetX: 0,
      shadowOffsetY: 0,
      opacity: 1
    },
    emphasis: {
      focus: 'descendant'
    },
    blur: {
      itemStyle: {
        opacity: 0.2
      },
      label: {
        opacity: 0.1
      }
    },
    // Animation type can be expansion, scale.
    animationType: 'expansion',
    animationDuration: 1000,
    animationDurationUpdate: 500,
    data: [],
    /**
     * Sort order.
     *
     * Valid values: 'desc', 'asc', null, or callback function.
     * 'desc' and 'asc' for descend and ascendant order;
     * null for not sorting;
     * example of callback function:
     * function(nodeA, nodeB) {
     *     return nodeA.getValue() - nodeB.getValue();
     * }
     */
    sort: 'desc'
  };
  return SunburstSeriesModel;
}(Series);
function SunburstSeries_completeTreeValue(dataNode) {
  // Postorder travel tree.
  // If value of none-leaf node is not set,
  // calculate it by suming up the value of all children.
  var sum = 0;
  util["each"](dataNode.children, function (child) {
    SunburstSeries_completeTreeValue(child);
    var childValue = child.value;
    // TODO First value of array must be a number
    util["isArray"](childValue) && (childValue = childValue[0]);
    sum += childValue;
  });
  var thisValue = dataNode.value;
  if (util["isArray"](thisValue)) {
    thisValue = thisValue[0];
  }
  if (thisValue == null || isNaN(thisValue)) {
    thisValue = sum;
  }
  // Value should not less than 0.
  if (thisValue < 0) {
    thisValue = 0;
  }
  util["isArray"](dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue;
}
/* harmony default export */ var SunburstSeries = (SunburstSeries_SunburstSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/sunburstLayout.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// let PI2 = Math.PI * 2;
var sunburstLayout_RADIAN = Math.PI / 180;
function sunburstLayout(seriesType, ecModel, api) {
  ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    var center = seriesModel.get('center');
    var radius = seriesModel.get('radius');
    if (!util["isArray"](radius)) {
      radius = [0, radius];
    }
    if (!util["isArray"](center)) {
      center = [center, center];
    }
    var width = api.getWidth();
    var height = api.getHeight();
    var size = Math.min(width, height);
    var cx = number_parsePercent(center[0], width);
    var cy = number_parsePercent(center[1], height);
    var r0 = number_parsePercent(radius[0], size / 2);
    var r = number_parsePercent(radius[1], size / 2);
    var startAngle = -seriesModel.get('startAngle') * sunburstLayout_RADIAN;
    var minAngle = seriesModel.get('minAngle') * sunburstLayout_RADIAN;
    var virtualRoot = seriesModel.getData().tree.root;
    var treeRoot = seriesModel.getViewRoot();
    var rootDepth = treeRoot.depth;
    var sort = seriesModel.get('sort');
    if (sort != null) {
      sunburstLayout_initChildren(treeRoot, sort);
    }
    var validDataCount = 0;
    util["each"](treeRoot.children, function (child) {
      !isNaN(child.getValue()) && validDataCount++;
    });
    var sum = treeRoot.getValue();
    // Sum may be 0
    var unitRadian = Math.PI / (sum || validDataCount) * 2;
    var renderRollupNode = treeRoot.depth > 0;
    var levels = treeRoot.height - (renderRollupNode ? -1 : 1);
    var rPerLevel = (r - r0) / (levels || 1);
    var clockwise = seriesModel.get('clockwise');
    var stillShowZeroSum = seriesModel.get('stillShowZeroSum');
    // In the case some sector angle is smaller than minAngle
    // let restAngle = PI2;
    // let valueSumLargerThanMinAngle = 0;
    var dir = clockwise ? 1 : -1;
    /**
     * Render a tree
     * @return increased angle
     */
    var renderNode = function (node, startAngle) {
      if (!node) {
        return;
      }
      var endAngle = startAngle;
      // Render self
      if (node !== virtualRoot) {
        // Tree node is virtual, so it doesn't need to be drawn
        var value = node.getValue();
        var angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian;
        if (angle < minAngle) {
          angle = minAngle;
          // restAngle -= minAngle;
        }
        // else {
        //     valueSumLargerThanMinAngle += value;
        // }
        endAngle = startAngle + dir * angle;
        var depth = node.depth - rootDepth - (renderRollupNode ? -1 : 1);
        var rStart = r0 + rPerLevel * depth;
        var rEnd = r0 + rPerLevel * (depth + 1);
        var levelModel = seriesModel.getLevelModel(node);
        if (levelModel) {
          var r0_1 = levelModel.get('r0', true);
          var r_1 = levelModel.get('r', true);
          var radius_1 = levelModel.get('radius', true);
          if (radius_1 != null) {
            r0_1 = radius_1[0];
            r_1 = radius_1[1];
          }
          r0_1 != null && (rStart = number_parsePercent(r0_1, size / 2));
          r_1 != null && (rEnd = number_parsePercent(r_1, size / 2));
        }
        node.setLayout({
          angle: angle,
          startAngle: startAngle,
          endAngle: endAngle,
          clockwise: clockwise,
          cx: cx,
          cy: cy,
          r0: rStart,
          r: rEnd
        });
      }
      // Render children
      if (node.children && node.children.length) {
        // currentAngle = startAngle;
        var siblingAngle_1 = 0;
        util["each"](node.children, function (node) {
          siblingAngle_1 += renderNode(node, startAngle + siblingAngle_1);
        });
      }
      return endAngle - startAngle;
    };
    // Virtual root node for roll up
    if (renderRollupNode) {
      var rStart = r0;
      var rEnd = r0 + rPerLevel;
      var angle = Math.PI * 2;
      virtualRoot.setLayout({
        angle: angle,
        startAngle: startAngle,
        endAngle: startAngle + angle,
        clockwise: clockwise,
        cx: cx,
        cy: cy,
        r0: rStart,
        r: rEnd
      });
    }
    renderNode(treeRoot, startAngle);
  });
}
/**
 * Init node children by order and update visual
 */
function sunburstLayout_initChildren(node, sortOrder) {
  var children = node.children || [];
  node.children = sunburstLayout_sort(children, sortOrder);
  // Init children recursively
  if (children.length) {
    util["each"](node.children, function (child) {
      sunburstLayout_initChildren(child, sortOrder);
    });
  }
}
/**
 * Sort children nodes
 *
 * @param {TreeNode[]}               children children of node to be sorted
 * @param {string | function | null} sort sort method
 *                                   See SunburstSeries.js for details.
 */
function sunburstLayout_sort(children, sortOrder) {
  if (util["isFunction"](sortOrder)) {
    var sortTargets = util["map"](children, function (child, idx) {
      var value = child.getValue();
      return {
        params: {
          depth: child.depth,
          height: child.height,
          dataIndex: child.dataIndex,
          getValue: function () {
            return value;
          }
        },
        index: idx
      };
    });
    sortTargets.sort(function (a, b) {
      return sortOrder(a.params, b.params);
    });
    return util["map"](sortTargets, function (target) {
      return children[target.index];
    });
  } else {
    var isAsc_1 = sortOrder === 'asc';
    return children.sort(function (a, b) {
      var diff = (a.getValue() - b.getValue()) * (isAsc_1 ? 1 : -1);
      return diff === 0 ? (a.dataIndex - b.dataIndex) * (isAsc_1 ? -1 : 1) : diff;
    });
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/sunburstVisual.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function sunburstVisual(ecModel) {
  var paletteScope = {};
  // Default color strategy
  function pickColor(node, seriesModel, treeHeight) {
    // Choose color from palette based on the first level.
    var current = node;
    while (current && current.depth > 1) {
      current = current.parentNode;
    }
    var color = seriesModel.getColorFromPalette(current.name || current.dataIndex + '', paletteScope);
    if (node.depth > 1 && Object(util["isString"])(color)) {
      // Lighter on the deeper level.
      color = Object(tool_color["lift"])(color, (node.depth - 1) / (treeHeight - 1) * 0.5);
    }
    return color;
  }
  ecModel.eachSeriesByType('sunburst', function (seriesModel) {
    var data = seriesModel.getData();
    var tree = data.tree;
    tree.eachNode(function (node) {
      var model = node.getModel();
      var style = model.getModel('itemStyle').getItemStyle();
      if (!style.fill) {
        style.fill = pickColor(node, seriesModel, tree.root.height);
      }
      var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');
      Object(util["extend"])(existsStyle, style);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







function sunburst_install_install(registers) {
  registers.registerChartView(sunburst_SunburstView);
  registers.registerSeriesModel(SunburstSeries);
  registers.registerLayout(Object(util["curry"])(sunburstLayout, 'sunburst'));
  registers.registerProcessor(Object(util["curry"])(dataFilter, 'sunburst'));
  registers.registerVisual(sunburstVisual);
  installSunburstAction(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/custom/CustomSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




// Also compat with ec4, where
// `visual('color') visual('borderColor')` is supported.
var STYLE_VISUAL_TYPE = {
  color: 'fill',
  borderColor: 'stroke'
};
var NON_STYLE_VISUAL_PROPS = {
  symbol: 1,
  symbolSize: 1,
  symbolKeepAspect: 1,
  legendIcon: 1,
  visualMeta: 1,
  liftZ: 1,
  decal: 1
};
;
var customInnerStore = makeInner();
var CustomSeries_CustomSeriesModel = /** @class */function (_super) {
  __extends(CustomSeriesModel, _super);
  function CustomSeriesModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CustomSeriesModel.type;
    return _this;
  }
  CustomSeriesModel.prototype.optionUpdated = function () {
    this.currentZLevel = this.get('zlevel', true);
    this.currentZ = this.get('z', true);
  };
  CustomSeriesModel.prototype.getInitialData = function (option, ecModel) {
    return helper_createSeriesData(null, this);
  };
  CustomSeriesModel.prototype.getDataParams = function (dataIndex, dataType, el) {
    var params = _super.prototype.getDataParams.call(this, dataIndex, dataType);
    el && (params.info = customInnerStore(el).info);
    return params;
  };
  CustomSeriesModel.type = 'series.custom';
  CustomSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];
  CustomSeriesModel.defaultOption = {
    coordinateSystem: 'cartesian2d',
    // zlevel: 0,
    z: 2,
    legendHoverLink: true,
    // Custom series will not clip by default.
    // Some case will use custom series to draw label
    // For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight
    clip: false
    // Cartesian coordinate system
    // xAxisIndex: 0,
    // yAxisIndex: 0,
    // Polar coordinate system
    // polarIndex: 0,
    // Geo coordinate system
    // geoIndex: 0,
  };
  return CustomSeriesModel;
}(Series);
/* harmony default export */ var CustomSeries = (CustomSeries_CustomSeriesModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/prepareCustom.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function dataToCoordSize(dataSize, dataItem) {
  // dataItem is necessary in log axis.
  dataItem = dataItem || [0, 0];
  return util["map"](['x', 'y'], function (dim, dimIdx) {
    var axis = this.getAxis(dim);
    var val = dataItem[dimIdx];
    var halfSize = dataSize[dimIdx] / 2;
    return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));
  }, this);
}
function cartesianPrepareCustom(coordSys) {
  var rect = coordSys.master.getRect();
  return {
    coordSys: {
      // The name exposed to user is always 'cartesian2d' but not 'grid'.
      type: 'cartesian2d',
      x: rect.x,
      y: rect.y,
      width: rect.width,
      height: rect.height
    },
    api: {
      coord: function (data) {
        // do not provide "out" param
        return coordSys.dataToPoint(data);
      },
      size: util["bind"](dataToCoordSize, coordSys)
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/prepareCustom.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function prepareCustom_dataToCoordSize(dataSize, dataItem) {
  dataItem = dataItem || [0, 0];
  return util["map"]([0, 1], function (dimIdx) {
    var val = dataItem[dimIdx];
    var halfSize = dataSize[dimIdx] / 2;
    var p1 = [];
    var p2 = [];
    p1[dimIdx] = val - halfSize;
    p2[dimIdx] = val + halfSize;
    p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx];
    return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]);
  }, this);
}
function geoPrepareCustom(coordSys) {
  var rect = coordSys.getBoundingRect();
  return {
    coordSys: {
      type: 'geo',
      x: rect.x,
      y: rect.y,
      width: rect.width,
      height: rect.height,
      zoom: coordSys.getZoom()
    },
    api: {
      coord: function (data) {
        // do not provide "out" and noRoam param,
        // Compatible with this usage:
        // echarts.util.map(item.points, api.coord)
        return coordSys.dataToPoint(data);
      },
      size: util["bind"](prepareCustom_dataToCoordSize, coordSys)
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/prepareCustom.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function single_prepareCustom_dataToCoordSize(dataSize, dataItem) {
  // dataItem is necessary in log axis.
  var axis = this.getAxis();
  var val = dataItem instanceof Array ? dataItem[0] : dataItem;
  var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;
  return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));
}
function singlePrepareCustom(coordSys) {
  var rect = coordSys.getRect();
  return {
    coordSys: {
      type: 'singleAxis',
      x: rect.x,
      y: rect.y,
      width: rect.width,
      height: rect.height
    },
    api: {
      coord: function (val) {
        // do not provide "out" param
        return coordSys.dataToPoint(val);
      },
      size: Object(util["bind"])(single_prepareCustom_dataToCoordSize, coordSys)
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/prepareCustom.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// import AngleAxis from './AngleAxis.js';
function polar_prepareCustom_dataToCoordSize(dataSize, dataItem) {
  // dataItem is necessary in log axis.
  dataItem = dataItem || [0, 0];
  return util["map"](['Radius', 'Angle'], function (dim, dimIdx) {
    var getterName = 'get' + dim + 'Axis';
    // TODO: TYPE Check Angle Axis
    var axis = this[getterName]();
    var val = dataItem[dimIdx];
    var halfSize = dataSize[dimIdx] / 2;
    var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));
    if (dim === 'Angle') {
      result = result * Math.PI / 180;
    }
    return result;
  }, this);
}
function polarPrepareCustom(coordSys) {
  var radiusAxis = coordSys.getRadiusAxis();
  var angleAxis = coordSys.getAngleAxis();
  var radius = radiusAxis.getExtent();
  radius[0] > radius[1] && radius.reverse();
  return {
    coordSys: {
      type: 'polar',
      cx: coordSys.cx,
      cy: coordSys.cy,
      r: radius[1],
      r0: radius[0]
    },
    api: {
      coord: function (data) {
        var radius = radiusAxis.dataToRadius(data[0]);
        var angle = angleAxis.dataToAngle(data[1]);
        var coord = coordSys.coordToPoint([radius, angle]);
        coord.push(radius, angle * Math.PI / 180);
        return coord;
      },
      size: util["bind"](polar_prepareCustom_dataToCoordSize, coordSys)
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/calendar/prepareCustom.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function calendarPrepareCustom(coordSys) {
  var rect = coordSys.getRect();
  var rangeInfo = coordSys.getRangeInfo();
  return {
    coordSys: {
      type: 'calendar',
      x: rect.x,
      y: rect.y,
      width: rect.width,
      height: rect.height,
      cellWidth: coordSys.getCellWidth(),
      cellHeight: coordSys.getCellHeight(),
      rangeInfo: {
        start: rangeInfo.start,
        end: rangeInfo.end,
        weeks: rangeInfo.weeks,
        dayCount: rangeInfo.allDay
      }
    },
    api: {
      coord: function (data, clamp) {
        return coordSys.dataToPoint(data, clamp);
      }
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/styleCompat.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var deprecatedLogs = {};
/**
 * Whether need to call `convertEC4CompatibleStyle`.
 */
function isEC4CompatibleStyle(style, elType, hasOwnTextContentOption, hasOwnTextConfig) {
  // Since echarts5, `RectText` is separated from its host element and style.text
  // does not exist any more. The compat work brings some extra burden on performance.
  // So we provide:
  // `legacy: true` force make compat.
  // `legacy: false`, force do not compat.
  // `legacy` not set: auto detect whether legacy.
  //     But in this case we do not compat (difficult to detect and rare case):
  //     Becuse custom series and graphic component support "merge", users may firstly
  //     only set `textStrokeWidth` style or secondly only set `text`.
  return style && (style.legacy || style.legacy !== false && !hasOwnTextContentOption && !hasOwnTextConfig && elType !== 'tspan'
  // Difficult to detect whether legacy for a "text" el.
  && (elType === 'text' || Object(util["hasOwn"])(style, 'text')));
}
/**
 * `EC4CompatibleStyle` is style that might be in echarts4 format or echarts5 format.
 * @param hostStyle The properties might be modified.
 * @return If be text el, `textContentStyle` and `textConfig` will not be returned.
 *         Otherwise a `textContentStyle` and `textConfig` will be created, whose props area
 *         retried from the `hostStyle`.
 */
function convertFromEC4CompatibleStyle(hostStyle, elType, isNormal) {
  var srcStyle = hostStyle;
  var textConfig;
  var textContent;
  var textContentStyle;
  if (elType === 'text') {
    textContentStyle = srcStyle;
  } else {
    textContentStyle = {};
    Object(util["hasOwn"])(srcStyle, 'text') && (textContentStyle.text = srcStyle.text);
    Object(util["hasOwn"])(srcStyle, 'rich') && (textContentStyle.rich = srcStyle.rich);
    Object(util["hasOwn"])(srcStyle, 'textFill') && (textContentStyle.fill = srcStyle.textFill);
    Object(util["hasOwn"])(srcStyle, 'textStroke') && (textContentStyle.stroke = srcStyle.textStroke);
    Object(util["hasOwn"])(srcStyle, 'fontFamily') && (textContentStyle.fontFamily = srcStyle.fontFamily);
    Object(util["hasOwn"])(srcStyle, 'fontSize') && (textContentStyle.fontSize = srcStyle.fontSize);
    Object(util["hasOwn"])(srcStyle, 'fontStyle') && (textContentStyle.fontStyle = srcStyle.fontStyle);
    Object(util["hasOwn"])(srcStyle, 'fontWeight') && (textContentStyle.fontWeight = srcStyle.fontWeight);
    textContent = {
      type: 'text',
      style: textContentStyle,
      // ec4 does not support rectText trigger.
      // And when text position is different in normal and emphasis
      // => hover text trigger emphasis;
      // => text position changed, leave mouse pointer immediately;
      // That might cause incorrect state.
      silent: true
    };
    textConfig = {};
    var hasOwnPos = Object(util["hasOwn"])(srcStyle, 'textPosition');
    if (isNormal) {
      textConfig.position = hasOwnPos ? srcStyle.textPosition : 'inside';
    } else {
      hasOwnPos && (textConfig.position = srcStyle.textPosition);
    }
    Object(util["hasOwn"])(srcStyle, 'textPosition') && (textConfig.position = srcStyle.textPosition);
    Object(util["hasOwn"])(srcStyle, 'textOffset') && (textConfig.offset = srcStyle.textOffset);
    Object(util["hasOwn"])(srcStyle, 'textRotation') && (textConfig.rotation = srcStyle.textRotation);
    Object(util["hasOwn"])(srcStyle, 'textDistance') && (textConfig.distance = srcStyle.textDistance);
  }
  convertEC4CompatibleRichItem(textContentStyle, hostStyle);
  Object(util["each"])(textContentStyle.rich, function (richItem) {
    convertEC4CompatibleRichItem(richItem, richItem);
  });
  return {
    textConfig: textConfig,
    textContent: textContent
  };
}
/**
 * The result will be set to `out`.
 */
function convertEC4CompatibleRichItem(out, richItem) {
  if (!richItem) {
    return;
  }
  // (1) For simplicity, make textXXX properties (deprecated since ec5) has
  // higher priority. For example, consider in ec4 `borderColor: 5, textBorderColor: 10`
  // on a rect means `borderColor: 4` on the rect and `borderColor: 10` on an attached
  // richText in ec5.
  // (2) `out === richItem` if and only if `out` is text el or rich item.
  // So we can overwrite existing props in `out` since textXXX has higher priority.
  richItem.font = richItem.textFont || richItem.font;
  Object(util["hasOwn"])(richItem, 'textStrokeWidth') && (out.lineWidth = richItem.textStrokeWidth);
  Object(util["hasOwn"])(richItem, 'textAlign') && (out.align = richItem.textAlign);
  Object(util["hasOwn"])(richItem, 'textVerticalAlign') && (out.verticalAlign = richItem.textVerticalAlign);
  Object(util["hasOwn"])(richItem, 'textLineHeight') && (out.lineHeight = richItem.textLineHeight);
  Object(util["hasOwn"])(richItem, 'textWidth') && (out.width = richItem.textWidth);
  Object(util["hasOwn"])(richItem, 'textHeight') && (out.height = richItem.textHeight);
  Object(util["hasOwn"])(richItem, 'textBackgroundColor') && (out.backgroundColor = richItem.textBackgroundColor);
  Object(util["hasOwn"])(richItem, 'textPadding') && (out.padding = richItem.textPadding);
  Object(util["hasOwn"])(richItem, 'textBorderColor') && (out.borderColor = richItem.textBorderColor);
  Object(util["hasOwn"])(richItem, 'textBorderWidth') && (out.borderWidth = richItem.textBorderWidth);
  Object(util["hasOwn"])(richItem, 'textBorderRadius') && (out.borderRadius = richItem.textBorderRadius);
  Object(util["hasOwn"])(richItem, 'textBoxShadowColor') && (out.shadowColor = richItem.textBoxShadowColor);
  Object(util["hasOwn"])(richItem, 'textBoxShadowBlur') && (out.shadowBlur = richItem.textBoxShadowBlur);
  Object(util["hasOwn"])(richItem, 'textBoxShadowOffsetX') && (out.shadowOffsetX = richItem.textBoxShadowOffsetX);
  Object(util["hasOwn"])(richItem, 'textBoxShadowOffsetY') && (out.shadowOffsetY = richItem.textBoxShadowOffsetY);
}
/**
 * Convert to pure echarts4 format style.
 * `itemStyle` will be modified, added with ec4 style properties from
 * `textStyle` and `textConfig`.
 *
 * [Caveat]: For simplicity, `insideRollback` in ec4 does not compat, where
 * `styleEmphasis: {textFill: 'red'}` will remove the normal auto added stroke.
 */
function convertToEC4StyleForCustomSerise(itemStl, txStl, txCfg) {
  var out = itemStl;
  // See `custom.ts`, a trick to set extra `textPosition` firstly.
  out.textPosition = out.textPosition || txCfg.position || 'inside';
  txCfg.offset != null && (out.textOffset = txCfg.offset);
  txCfg.rotation != null && (out.textRotation = txCfg.rotation);
  txCfg.distance != null && (out.textDistance = txCfg.distance);
  var isInside = out.textPosition.indexOf('inside') >= 0;
  var hostFill = itemStl.fill || '#000';
  convertToEC4RichItem(out, txStl);
  var textFillNotSet = out.textFill == null;
  if (isInside) {
    if (textFillNotSet) {
      out.textFill = txCfg.insideFill || '#fff';
      !out.textStroke && txCfg.insideStroke && (out.textStroke = txCfg.insideStroke);
      !out.textStroke && (out.textStroke = hostFill);
      out.textStrokeWidth == null && (out.textStrokeWidth = 2);
    }
  } else {
    if (textFillNotSet) {
      out.textFill = itemStl.fill || txCfg.outsideFill || '#000';
    }
    !out.textStroke && txCfg.outsideStroke && (out.textStroke = txCfg.outsideStroke);
  }
  out.text = txStl.text;
  out.rich = txStl.rich;
  Object(util["each"])(txStl.rich, function (richItem) {
    convertToEC4RichItem(richItem, richItem);
  });
  return out;
}
function convertToEC4RichItem(out, richItem) {
  if (!richItem) {
    return;
  }
  Object(util["hasOwn"])(richItem, 'fill') && (out.textFill = richItem.fill);
  Object(util["hasOwn"])(richItem, 'stroke') && (out.textStroke = richItem.fill);
  Object(util["hasOwn"])(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth);
  Object(util["hasOwn"])(richItem, 'font') && (out.font = richItem.font);
  Object(util["hasOwn"])(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle);
  Object(util["hasOwn"])(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight);
  Object(util["hasOwn"])(richItem, 'fontSize') && (out.fontSize = richItem.fontSize);
  Object(util["hasOwn"])(richItem, 'fontFamily') && (out.fontFamily = richItem.fontFamily);
  Object(util["hasOwn"])(richItem, 'align') && (out.textAlign = richItem.align);
  Object(util["hasOwn"])(richItem, 'verticalAlign') && (out.textVerticalAlign = richItem.verticalAlign);
  Object(util["hasOwn"])(richItem, 'lineHeight') && (out.textLineHeight = richItem.lineHeight);
  Object(util["hasOwn"])(richItem, 'width') && (out.textWidth = richItem.width);
  Object(util["hasOwn"])(richItem, 'height') && (out.textHeight = richItem.height);
  Object(util["hasOwn"])(richItem, 'backgroundColor') && (out.textBackgroundColor = richItem.backgroundColor);
  Object(util["hasOwn"])(richItem, 'padding') && (out.textPadding = richItem.padding);
  Object(util["hasOwn"])(richItem, 'borderColor') && (out.textBorderColor = richItem.borderColor);
  Object(util["hasOwn"])(richItem, 'borderWidth') && (out.textBorderWidth = richItem.borderWidth);
  Object(util["hasOwn"])(richItem, 'borderRadius') && (out.textBorderRadius = richItem.borderRadius);
  Object(util["hasOwn"])(richItem, 'shadowColor') && (out.textBoxShadowColor = richItem.shadowColor);
  Object(util["hasOwn"])(richItem, 'shadowBlur') && (out.textBoxShadowBlur = richItem.shadowBlur);
  Object(util["hasOwn"])(richItem, 'shadowOffsetX') && (out.textBoxShadowOffsetX = richItem.shadowOffsetX);
  Object(util["hasOwn"])(richItem, 'shadowOffsetY') && (out.textBoxShadowOffsetY = richItem.shadowOffsetY);
  Object(util["hasOwn"])(richItem, 'textShadowColor') && (out.textShadowColor = richItem.textShadowColor);
  Object(util["hasOwn"])(richItem, 'textShadowBlur') && (out.textShadowBlur = richItem.textShadowBlur);
  Object(util["hasOwn"])(richItem, 'textShadowOffsetX') && (out.textShadowOffsetX = richItem.textShadowOffsetX);
  Object(util["hasOwn"])(richItem, 'textShadowOffsetY') && (out.textShadowOffsetY = richItem.textShadowOffsetY);
}
function warnDeprecated(deprecated, insteadApproach) {
  if (false) { var key; }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/customGraphicTransition.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var LEGACY_TRANSFORM_PROPS_MAP = {
  position: ['x', 'y'],
  scale: ['scaleX', 'scaleY'],
  origin: ['originX', 'originY']
};
var LEGACY_TRANSFORM_PROPS = Object(util["keys"])(LEGACY_TRANSFORM_PROPS_MAP);
var TRANSFORM_PROPS_MAP = Object(util["reduce"])(TRANSFORMABLE_PROPS, function (obj, key) {
  obj[key] = 1;
  return obj;
}, {});
var transformPropNamesStr = TRANSFORMABLE_PROPS.join(', ');
// '' means root
var ELEMENT_ANIMATABLE_PROPS = ['', 'style', 'shape', 'extra'];
;
var transitionInnerStore = makeInner();
;
function getElementAnimationConfig(animationType, el, elOption, parentModel, dataIndex) {
  var animationProp = animationType + "Animation";
  var config = getAnimationConfig(animationType, parentModel, dataIndex) || {};
  var userDuring = transitionInnerStore(el).userDuring;
  // Only set when duration is > 0 and it's need to be animated.
  if (config.duration > 0) {
    // For simplicity, if during not specified, the previous during will not work any more.
    config.during = userDuring ? Object(util["bind"])(duringCall, {
      el: el,
      userDuring: userDuring
    }) : null;
    config.setToFinal = true;
    config.scope = animationType;
  }
  Object(util["extend"])(config, elOption[animationProp]);
  return config;
}
function applyUpdateTransition(el, elOption, animatableModel, opts) {
  opts = opts || {};
  var dataIndex = opts.dataIndex,
    isInit = opts.isInit,
    clearStyle = opts.clearStyle;
  var hasAnimation = animatableModel.isAnimationEnabled();
  // Save the meta info for further morphing. Like apply on the sub morphing elements.
  var store = transitionInnerStore(el);
  var styleOpt = elOption.style;
  store.userDuring = elOption.during;
  var transFromProps = {};
  var propsToSet = {};
  prepareTransformAllPropsFinal(el, elOption, propsToSet);
  prepareShapeOrExtraAllPropsFinal('shape', elOption, propsToSet);
  prepareShapeOrExtraAllPropsFinal('extra', elOption, propsToSet);
  if (!isInit && hasAnimation) {
    prepareTransformTransitionFrom(el, elOption, transFromProps);
    prepareShapeOrExtraTransitionFrom('shape', el, elOption, transFromProps);
    prepareShapeOrExtraTransitionFrom('extra', el, elOption, transFromProps);
    prepareStyleTransitionFrom(el, elOption, styleOpt, transFromProps);
  }
  propsToSet.style = styleOpt;
  applyPropsDirectly(el, propsToSet, clearStyle);
  applyMiscProps(el, elOption);
  if (hasAnimation) {
    if (isInit) {
      var enterFromProps_1 = {};
      Object(util["each"])(ELEMENT_ANIMATABLE_PROPS, function (propName) {
        var prop = propName ? elOption[propName] : elOption;
        if (prop && prop.enterFrom) {
          if (propName) {
            enterFromProps_1[propName] = enterFromProps_1[propName] || {};
          }
          Object(util["extend"])(propName ? enterFromProps_1[propName] : enterFromProps_1, prop.enterFrom);
        }
      });
      var config = getElementAnimationConfig('enter', el, elOption, animatableModel, dataIndex);
      if (config.duration > 0) {
        el.animateFrom(enterFromProps_1, config);
      }
    } else {
      applyPropsTransition(el, elOption, dataIndex || 0, animatableModel, transFromProps);
    }
  }
  // Store leave to be used in leave transition.
  updateLeaveTo(el, elOption);
  styleOpt ? el.dirty() : el.markRedraw();
}
function updateLeaveTo(el, elOption) {
  // Try merge to previous set leaveTo
  var leaveToProps = transitionInnerStore(el).leaveToProps;
  for (var i = 0; i < ELEMENT_ANIMATABLE_PROPS.length; i++) {
    var propName = ELEMENT_ANIMATABLE_PROPS[i];
    var prop = propName ? elOption[propName] : elOption;
    if (prop && prop.leaveTo) {
      if (!leaveToProps) {
        leaveToProps = transitionInnerStore(el).leaveToProps = {};
      }
      if (propName) {
        leaveToProps[propName] = leaveToProps[propName] || {};
      }
      Object(util["extend"])(propName ? leaveToProps[propName] : leaveToProps, prop.leaveTo);
    }
  }
}
function applyLeaveTransition(el, elOption, animatableModel, onRemove) {
  if (el) {
    var parent_1 = el.parent;
    var leaveToProps = transitionInnerStore(el).leaveToProps;
    if (leaveToProps) {
      // TODO TODO use leave after leaveAnimation in series is introduced
      // TODO Data index?
      var config = getElementAnimationConfig('update', el, elOption, animatableModel, 0);
      config.done = function () {
        parent_1.remove(el);
        onRemove && onRemove();
      };
      el.animateTo(leaveToProps, config);
    } else {
      parent_1.remove(el);
      onRemove && onRemove();
    }
  }
}
function isTransitionAll(transition) {
  return transition === 'all';
}
function applyPropsDirectly(el,
// Can be null/undefined
allPropsFinal, clearStyle) {
  var styleOpt = allPropsFinal.style;
  if (!el.isGroup && styleOpt) {
    if (clearStyle) {
      el.useStyle({});
      // When style object changed, how to trade the existing animation?
      // It is probably complicated and not needed to cover all the cases.
      // But still need consider the case:
      // (1) When using init animation on `style.opacity`, and before the animation
      //     ended users triggers an update by mousewhel. At that time the init
      //     animation should better be continued rather than terminated.
      //     So after `useStyle` called, we should change the animation target manually
      //     to continue the effect of the init animation.
      // (2) PENDING: If the previous animation targeted at a `val1`, and currently we need
      //     to update the value to `val2` and no animation declared, should be terminate
      //     the previous animation or just modify the target of the animation?
      //     Therotically That will happen not only on `style` but also on `shape` and
      //     `transfrom` props. But we haven't handle this case at present yet.
      // (3) PENDING: Is it proper to visit `animators` and `targetName`?
      var animators = el.animators;
      for (var i = 0; i < animators.length; i++) {
        var animator = animators[i];
        // targetName is the "topKey".
        if (animator.targetName === 'style') {
          animator.changeTarget(el.style);
        }
      }
    }
    el.setStyle(styleOpt);
  }
  if (allPropsFinal) {
    // Not set style here.
    allPropsFinal.style = null;
    // Set el to the final state firstly.
    allPropsFinal && el.attr(allPropsFinal);
    allPropsFinal.style = styleOpt;
  }
}
function applyPropsTransition(el, elOption, dataIndex, model,
// Can be null/undefined
transFromProps) {
  if (transFromProps) {
    var config = getElementAnimationConfig('update', el, elOption, model, dataIndex);
    if (config.duration > 0) {
      el.animateFrom(transFromProps, config);
    }
  }
}
function applyMiscProps(el, elOption) {
  // Merge by default.
  Object(util["hasOwn"])(elOption, 'silent') && (el.silent = elOption.silent);
  Object(util["hasOwn"])(elOption, 'ignore') && (el.ignore = elOption.ignore);
  if (el instanceof graphic_Displayable) {
    Object(util["hasOwn"])(elOption, 'invisible') && (el.invisible = elOption.invisible);
  }
  if (el instanceof graphic_Path) {
    Object(util["hasOwn"])(elOption, 'autoBatch') && (el.autoBatch = elOption.autoBatch);
  }
}
// Use it to avoid it be exposed to user.
var tmpDuringScope = {};
var transitionDuringAPI = {
  // Usually other props do not need to be changed in animation during.
  setTransform: function (key, val) {
    if (false) {}
    tmpDuringScope.el[key] = val;
    return this;
  },
  getTransform: function (key) {
    if (false) {}
    return tmpDuringScope.el[key];
  },
  setShape: function (key, val) {
    if (false) {}
    var el = tmpDuringScope.el;
    var shape = el.shape || (el.shape = {});
    shape[key] = val;
    el.dirtyShape && el.dirtyShape();
    return this;
  },
  getShape: function (key) {
    if (false) {}
    var shape = tmpDuringScope.el.shape;
    if (shape) {
      return shape[key];
    }
  },
  setStyle: function (key, val) {
    if (false) {}
    var el = tmpDuringScope.el;
    var style = el.style;
    if (style) {
      if (false) {}
      style[key] = val;
      el.dirtyStyle && el.dirtyStyle();
    }
    return this;
  },
  getStyle: function (key) {
    if (false) {}
    var style = tmpDuringScope.el.style;
    if (style) {
      return style[key];
    }
  },
  setExtra: function (key, val) {
    if (false) {}
    var extra = tmpDuringScope.el.extra || (tmpDuringScope.el.extra = {});
    extra[key] = val;
    return this;
  },
  getExtra: function (key) {
    if (false) {}
    var extra = tmpDuringScope.el.extra;
    if (extra) {
      return extra[key];
    }
  }
};
function assertNotReserved(key) {
  if (false) {}
}
function duringCall() {
  // Do not provide "percent" until some requirements come.
  // Because consider thies case:
  // enterFrom: {x: 100, y: 30}, transition: 'x'.
  // And enter duration is different from update duration.
  // Thus it might be confused about the meaning of "percent" in during callback.
  var scope = this;
  var el = scope.el;
  if (!el) {
    return;
  }
  // If el is remove from zr by reason like legend, during still need to called,
  // because el will be added back to zr and the prop value should not be incorrect.
  var latestUserDuring = transitionInnerStore(el).userDuring;
  var scopeUserDuring = scope.userDuring;
  // Ensured a during is only called once in each animation frame.
  // If a during is called multiple times in one frame, maybe some users' calculation logic
  // might be wrong (not sure whether this usage exists).
  // The case of a during might be called twice can be: by default there is a animator for
  // 'x', 'y' when init. Before the init animation finished, call `setOption` to start
  // another animators for 'style'/'shape'/'extra'.
  if (latestUserDuring !== scopeUserDuring) {
    // release
    scope.el = scope.userDuring = null;
    return;
  }
  tmpDuringScope.el = el;
  // Give no `this` to user in "during" calling.
  scopeUserDuring(transitionDuringAPI);
  // FIXME: if in future meet the case that some prop will be both modified in `during` and `state`,
  // consider the issue that the prop might be incorrect when return to "normal" state.
}
function prepareShapeOrExtraTransitionFrom(mainAttr, fromEl, elOption, transFromProps) {
  var attrOpt = elOption[mainAttr];
  if (!attrOpt) {
    return;
  }
  var elPropsInAttr = fromEl[mainAttr];
  var transFromPropsInAttr;
  if (elPropsInAttr) {
    var transition = elOption.transition;
    var attrTransition = attrOpt.transition;
    if (attrTransition) {
      !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});
      if (isTransitionAll(attrTransition)) {
        Object(util["extend"])(transFromPropsInAttr, elPropsInAttr);
      } else {
        var transitionKeys = normalizeToArray(attrTransition);
        for (var i = 0; i < transitionKeys.length; i++) {
          var key = transitionKeys[i];
          var elVal = elPropsInAttr[key];
          transFromPropsInAttr[key] = elVal;
        }
      }
    } else if (isTransitionAll(transition) || Object(util["indexOf"])(transition, mainAttr) >= 0) {
      !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});
      var elPropsInAttrKeys = Object(util["keys"])(elPropsInAttr);
      for (var i = 0; i < elPropsInAttrKeys.length; i++) {
        var key = elPropsInAttrKeys[i];
        var elVal = elPropsInAttr[key];
        if (isNonStyleTransitionEnabled(attrOpt[key], elVal)) {
          transFromPropsInAttr[key] = elVal;
        }
      }
    }
  }
}
function prepareShapeOrExtraAllPropsFinal(mainAttr, elOption, allProps) {
  var attrOpt = elOption[mainAttr];
  if (!attrOpt) {
    return;
  }
  var allPropsInAttr = allProps[mainAttr] = {};
  var keysInAttr = Object(util["keys"])(attrOpt);
  for (var i = 0; i < keysInAttr.length; i++) {
    var key = keysInAttr[i];
    // To avoid share one object with different element, and
    // to avoid user modify the object inexpectedly, have to clone.
    allPropsInAttr[key] = cloneValue(attrOpt[key]);
  }
}
function prepareTransformTransitionFrom(el, elOption, transFromProps) {
  var transition = elOption.transition;
  var transitionKeys = isTransitionAll(transition) ? TRANSFORMABLE_PROPS : normalizeToArray(transition || []);
  for (var i = 0; i < transitionKeys.length; i++) {
    var key = transitionKeys[i];
    if (key === 'style' || key === 'shape' || key === 'extra') {
      continue;
    }
    var elVal = el[key];
    if (false) {}
    // Do not clone, animator will perform that clone.
    transFromProps[key] = elVal;
  }
}
function prepareTransformAllPropsFinal(el, elOption, allProps) {
  for (var i = 0; i < LEGACY_TRANSFORM_PROPS.length; i++) {
    var legacyName = LEGACY_TRANSFORM_PROPS[i];
    var xyName = LEGACY_TRANSFORM_PROPS_MAP[legacyName];
    var legacyArr = elOption[legacyName];
    if (legacyArr) {
      allProps[xyName[0]] = legacyArr[0];
      allProps[xyName[1]] = legacyArr[1];
    }
  }
  for (var i = 0; i < TRANSFORMABLE_PROPS.length; i++) {
    var key = TRANSFORMABLE_PROPS[i];
    if (elOption[key] != null) {
      allProps[key] = elOption[key];
    }
  }
}
function prepareStyleTransitionFrom(fromEl, elOption, styleOpt, transFromProps) {
  if (!styleOpt) {
    return;
  }
  var fromElStyle = fromEl.style;
  var transFromStyleProps;
  if (fromElStyle) {
    var styleTransition = styleOpt.transition;
    var elTransition = elOption.transition;
    if (styleTransition && !isTransitionAll(styleTransition)) {
      var transitionKeys = normalizeToArray(styleTransition);
      !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});
      for (var i = 0; i < transitionKeys.length; i++) {
        var key = transitionKeys[i];
        var elVal = fromElStyle[key];
        // Do not clone, see `checkNonStyleTansitionRefer`.
        transFromStyleProps[key] = elVal;
      }
    } else if (fromEl.getAnimationStyleProps && (isTransitionAll(elTransition) || isTransitionAll(styleTransition) || Object(util["indexOf"])(elTransition, 'style') >= 0)) {
      var animationProps = fromEl.getAnimationStyleProps();
      var animationStyleProps = animationProps ? animationProps.style : null;
      if (animationStyleProps) {
        !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});
        var styleKeys = Object(util["keys"])(styleOpt);
        for (var i = 0; i < styleKeys.length; i++) {
          var key = styleKeys[i];
          if (animationStyleProps[key]) {
            var elVal = fromElStyle[key];
            transFromStyleProps[key] = elVal;
          }
        }
      }
    }
  }
}
function isNonStyleTransitionEnabled(optVal, elVal) {
  // The same as `checkNonStyleTansitionRefer`.
  return !Object(util["isArrayLike"])(optVal) ? optVal != null && isFinite(optVal) : optVal !== elVal;
}
var checkTransformPropRefer;
if (false) {}
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var getStateToRestore = makeInner();
var KEYFRAME_EXCLUDE_KEYS = ['percent', 'easing', 'shape', 'style', 'extra'];
/**
 * Stop previous keyframe animation and restore the attributes.
 * Avoid new keyframe animation starts with wrong internal state when the percent: 0 is not set.
 */
function stopPreviousKeyframeAnimationAndRestore(el) {
  // Stop previous keyframe animation.
  el.stopAnimation('keyframe');
  // Restore
  el.attr(getStateToRestore(el));
}
function applyKeyframeAnimation(el, animationOpts, animatableModel) {
  if (!animatableModel.isAnimationEnabled() || !animationOpts) {
    return;
  }
  if (Object(util["isArray"])(animationOpts)) {
    Object(util["each"])(animationOpts, function (singleAnimationOpts) {
      applyKeyframeAnimation(el, singleAnimationOpts, animatableModel);
    });
    return;
  }
  var keyframes = animationOpts.keyframes;
  var duration = animationOpts.duration;
  if (animatableModel && duration == null) {
    // Default to use duration of config.
    // NOTE: animation config from payload will be ignored because they are mainly for transitions.
    var config = getAnimationConfig('enter', animatableModel, 0);
    duration = config && config.duration;
  }
  if (!keyframes || !duration) {
    return;
  }
  var stateToRestore = getStateToRestore(el);
  Object(util["each"])(ELEMENT_ANIMATABLE_PROPS, function (targetPropName) {
    if (targetPropName && !el[targetPropName]) {
      return;
    }
    var animator;
    var endFrameIsSet = false;
    // Sort keyframes by percent.
    keyframes.sort(function (a, b) {
      return a.percent - b.percent;
    });
    Object(util["each"])(keyframes, function (kf) {
      // Stop current animation.
      var animators = el.animators;
      var kfValues = targetPropName ? kf[targetPropName] : kf;
      if (false) {}
      if (!kfValues) {
        return;
      }
      var propKeys = Object(util["keys"])(kfValues);
      if (!targetPropName) {
        // PENDING performance?
        propKeys = Object(util["filter"])(propKeys, function (key) {
          return Object(util["indexOf"])(KEYFRAME_EXCLUDE_KEYS, key) < 0;
        });
      }
      if (!propKeys.length) {
        return;
      }
      if (!animator) {
        animator = el.animate(targetPropName, animationOpts.loop, true);
        animator.scope = 'keyframe';
      }
      for (var i = 0; i < animators.length; i++) {
        // Stop all other animation that is not keyframe.
        if (animators[i] !== animator && animators[i].targetName === animator.targetName) {
          animators[i].stopTracks(propKeys);
        }
      }
      targetPropName && (stateToRestore[targetPropName] = stateToRestore[targetPropName] || {});
      var savedTarget = targetPropName ? stateToRestore[targetPropName] : stateToRestore;
      Object(util["each"])(propKeys, function (key) {
        // Save original value.
        savedTarget[key] = ((targetPropName ? el[targetPropName] : el) || {})[key];
      });
      animator.whenWithKeys(duration * kf.percent, kfValues, propKeys, kf.easing);
    });
    if (!animator) {
      return;
    }
    if (false) {}
    animator.delay(animationOpts.delay || 0).duration(duration).start(animationOpts.easing);
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/custom/CustomView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






















var EMPHASIS = 'emphasis';
var NORMAL = 'normal';
var BLUR = 'blur';
var SELECT = 'select';
var STATES = [NORMAL, EMPHASIS, BLUR, SELECT];
var PATH_ITEM_STYLE = {
  normal: ['itemStyle'],
  emphasis: [EMPHASIS, 'itemStyle'],
  blur: [BLUR, 'itemStyle'],
  select: [SELECT, 'itemStyle']
};
var PATH_LABEL = {
  normal: ['label'],
  emphasis: [EMPHASIS, 'label'],
  blur: [BLUR, 'label'],
  select: [SELECT, 'label']
};
var DEFAULT_TRANSITION = ['x', 'y'];
// Use prefix to avoid index to be the same as el.name,
// which will cause weird update animation.
var GROUP_DIFF_PREFIX = 'e\0\0';
var attachedTxInfoTmp = {
  normal: {},
  emphasis: {},
  blur: {},
  select: {}
};
/**
 * To reduce total package size of each coordinate systems, the modules `prepareCustom`
 * of each coordinate systems are not required by each coordinate systems directly, but
 * required by the module `custom`.
 *
 * prepareInfoForCustomSeries {Function}: optional
 *     @return {Object} {coordSys: {...}, api: {
 *         coord: function (data, clamp) {}, // return point in global.
 *         size: function (dataSize, dataItem) {} // return size of each axis in coordSys.
 *     }}
 */
var prepareCustoms = {
  cartesian2d: cartesianPrepareCustom,
  geo: geoPrepareCustom,
  single: singlePrepareCustom,
  polar: polarPrepareCustom,
  calendar: calendarPrepareCustom
};
function CustomView_isPath(el) {
  return el instanceof graphic_Path;
}
function isDisplayable(el) {
  return el instanceof graphic_Displayable;
}
function copyElement(sourceEl, targetEl) {
  targetEl.copyTransform(sourceEl);
  if (isDisplayable(targetEl) && isDisplayable(sourceEl)) {
    targetEl.setStyle(sourceEl.style);
    targetEl.z = sourceEl.z;
    targetEl.z2 = sourceEl.z2;
    targetEl.zlevel = sourceEl.zlevel;
    targetEl.invisible = sourceEl.invisible;
    targetEl.ignore = sourceEl.ignore;
    if (CustomView_isPath(targetEl) && CustomView_isPath(sourceEl)) {
      targetEl.setShape(sourceEl.shape);
    }
  }
}
var CustomView_CustomChartView = /** @class */function (_super) {
  __extends(CustomChartView, _super);
  function CustomChartView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CustomChartView.type;
    return _this;
  }
  CustomChartView.prototype.render = function (customSeries, ecModel, api, payload) {
    // Clear previously rendered progressive elements.
    this._progressiveEls = null;
    var oldData = this._data;
    var data = customSeries.getData();
    var group = this.group;
    var renderItem = makeRenderItem(customSeries, data, ecModel, api);
    if (!oldData) {
      // Previous render is incremental render or first render.
      // Needs remove the incremental rendered elements.
      group.removeAll();
    }
    data.diff(oldData).add(function (newIdx) {
      createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data);
    }).remove(function (oldIdx) {
      var el = oldData.getItemGraphicEl(oldIdx);
      el && applyLeaveTransition(el, customInnerStore(el).option, customSeries);
    }).update(function (newIdx, oldIdx) {
      var oldEl = oldData.getItemGraphicEl(oldIdx);
      createOrUpdateItem(api, oldEl, newIdx, renderItem(newIdx, payload), customSeries, group, data);
    }).execute();
    // Do clipping
    var clipPath = customSeries.get('clip', true) ? createClipPath(customSeries.coordinateSystem, false, customSeries) : null;
    if (clipPath) {
      group.setClipPath(clipPath);
    } else {
      group.removeClipPath();
    }
    this._data = data;
  };
  CustomChartView.prototype.incrementalPrepareRender = function (customSeries, ecModel, api) {
    this.group.removeAll();
    this._data = null;
  };
  CustomChartView.prototype.incrementalRender = function (params, customSeries, ecModel, api, payload) {
    var data = customSeries.getData();
    var renderItem = makeRenderItem(customSeries, data, ecModel, api);
    var progressiveEls = this._progressiveEls = [];
    function setIncrementalAndHoverLayer(el) {
      if (!el.isGroup) {
        el.incremental = true;
        el.ensureState('emphasis').hoverLayer = true;
      }
    }
    for (var idx = params.start; idx < params.end; idx++) {
      var el = createOrUpdateItem(null, null, idx, renderItem(idx, payload), customSeries, this.group, data);
      if (el) {
        el.traverse(setIncrementalAndHoverLayer);
        progressiveEls.push(el);
      }
    }
  };
  CustomChartView.prototype.eachRendered = function (cb) {
    traverseElements(this._progressiveEls || this.group, cb);
  };
  CustomChartView.prototype.filterForExposedEvent = function (eventType, query, targetEl, packedEvent) {
    var elementName = query.element;
    if (elementName == null || targetEl.name === elementName) {
      return true;
    }
    // Enable to give a name on a group made by `renderItem`, and listen
    // events that are triggered by its descendents.
    while ((targetEl = targetEl.__hostTarget || targetEl.parent) && targetEl !== this.group) {
      if (targetEl.name === elementName) {
        return true;
      }
    }
    return false;
  };
  CustomChartView.type = 'custom';
  return CustomChartView;
}(Chart);
/* harmony default export */ var CustomView = (CustomView_CustomChartView);
function createEl(elOption) {
  var graphicType = elOption.type;
  var el;
  // Those graphic elements are not shapes. They should not be
  // overwritten by users, so do them first.
  if (graphicType === 'path') {
    var shape = elOption.shape;
    // Using pathRect brings convenience to users sacle svg path.
    var pathRect = shape.width != null && shape.height != null ? {
      x: shape.x || 0,
      y: shape.y || 0,
      width: shape.width,
      height: shape.height
    } : null;
    var pathData = getPathData(shape);
    // Path is also used for icon, so layout 'center' by default.
    el = makePath(pathData, null, pathRect, shape.layout || 'center');
    customInnerStore(el).customPathData = pathData;
  } else if (graphicType === 'image') {
    el = new graphic_Image({});
    customInnerStore(el).customImagePath = elOption.style.image;
  } else if (graphicType === 'text') {
    el = new Text({});
    // customInnerStore(el).customText = (elOption.style as TextStyleProps).text;
  } else if (graphicType === 'group') {
    el = new graphic_Group();
  } else if (graphicType === 'compoundPath') {
    throw new Error('"compoundPath" is not supported yet.');
  } else {
    var Clz = getShapeClass(graphicType);
    if (!Clz) {
      var errMsg = '';
      if (false) {}
      throwError(errMsg);
    }
    el = new Clz();
  }
  customInnerStore(el).customGraphicType = graphicType;
  el.name = elOption.name;
  // Compat ec4: the default z2 lift is 1. If changing the number,
  // some cases probably be broken: hierarchy layout along z, like circle packing,
  // where emphasis only intending to modify color/border rather than lift z2.
  el.z2EmphasisLift = 1;
  el.z2SelectLift = 1;
  return el;
}
function updateElNormal(
// Can be null/undefined
api, el, dataIndex, elOption, attachedTxInfo, seriesModel, isInit) {
  // Stop and restore before update any other attributes.
  stopPreviousKeyframeAnimationAndRestore(el);
  var txCfgOpt = attachedTxInfo && attachedTxInfo.normal.cfg;
  if (txCfgOpt) {
    // PENDING: whether use user object directly rather than clone?
    // TODO:5.0 textConfig transition animation?
    el.setTextConfig(txCfgOpt);
  }
  // Default transition ['x', 'y']
  if (elOption && elOption.transition == null) {
    elOption.transition = DEFAULT_TRANSITION;
  }
  // Do some normalization on style.
  var styleOpt = elOption && elOption.style;
  if (styleOpt) {
    if (el.type === 'text') {
      var textOptionStyle = styleOpt;
      // Compatible with ec4: if `textFill` or `textStroke` exists use them.
      Object(util["hasOwn"])(textOptionStyle, 'textFill') && (textOptionStyle.fill = textOptionStyle.textFill);
      Object(util["hasOwn"])(textOptionStyle, 'textStroke') && (textOptionStyle.stroke = textOptionStyle.textStroke);
    }
    var decalPattern = void 0;
    var decalObj = CustomView_isPath(el) ? styleOpt.decal : null;
    if (api && decalObj) {
      decalObj.dirty = true;
      decalPattern = createOrUpdatePatternFromDecal(decalObj, api);
    }
    // Always overwrite in case user specify this prop.
    styleOpt.__decalPattern = decalPattern;
  }
  if (isDisplayable(el)) {
    if (styleOpt) {
      var decalPattern = styleOpt.__decalPattern;
      if (decalPattern) {
        styleOpt.decal = decalPattern;
      }
    }
  }
  applyUpdateTransition(el, elOption, seriesModel, {
    dataIndex: dataIndex,
    isInit: isInit,
    clearStyle: true
  });
  applyKeyframeAnimation(el, elOption.keyframeAnimation, seriesModel);
}
function updateElOnState(state, el, elStateOpt, styleOpt, attachedTxInfo) {
  var elDisplayable = el.isGroup ? null : el;
  var txCfgOpt = attachedTxInfo && attachedTxInfo[state].cfg;
  // PENDING:5.0 support customize scale change and transition animation?
  if (elDisplayable) {
    // By default support auto lift color when hover whether `emphasis` specified.
    var stateObj = elDisplayable.ensureState(state);
    if (styleOpt === false) {
      var existingEmphasisState = elDisplayable.getState(state);
      if (existingEmphasisState) {
        existingEmphasisState.style = null;
      }
    } else {
      // style is needed to enable default emphasis.
      stateObj.style = styleOpt || null;
    }
    // If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`,
    // remove hover style.
    // If `elOption.textConfig` or `elOption.emphasis.textConfig` is null/undefined, it does not
    // make sense. So for simplicity, we do not ditinguish `hasOwnProperty` and null/undefined.
    if (txCfgOpt) {
      stateObj.textConfig = txCfgOpt;
    }
    setDefaultStateProxy(elDisplayable);
  }
}
function CustomView_updateZ(el, elOption, seriesModel) {
  // Group not support textContent and not support z yet.
  if (el.isGroup) {
    return;
  }
  var elDisplayable = el;
  var currentZ = seriesModel.currentZ;
  var currentZLevel = seriesModel.currentZLevel;
  // Always erase.
  elDisplayable.z = currentZ;
  elDisplayable.zlevel = currentZLevel;
  // z2 must not be null/undefined, otherwise sort error may occur.
  var optZ2 = elOption.z2;
  optZ2 != null && (elDisplayable.z2 = optZ2 || 0);
  for (var i = 0; i < STATES.length; i++) {
    updateZForEachState(elDisplayable, elOption, STATES[i]);
  }
}
function updateZForEachState(elDisplayable, elOption, state) {
  var isNormal = state === NORMAL;
  var elStateOpt = isNormal ? elOption : retrieveStateOption(elOption, state);
  var optZ2 = elStateOpt ? elStateOpt.z2 : null;
  var stateObj;
  if (optZ2 != null) {
    // Do not `ensureState` until required.
    stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state);
    stateObj.z2 = optZ2 || 0;
  }
}
function makeRenderItem(customSeries, data, ecModel, api) {
  var renderItem = customSeries.get('renderItem');
  var coordSys = customSeries.coordinateSystem;
  var prepareResult = {};
  if (coordSys) {
    if (false) {}
    // `coordSys.prepareCustoms` is used for external coord sys like bmap.
    prepareResult = coordSys.prepareCustoms ? coordSys.prepareCustoms(coordSys) : prepareCustoms[coordSys.type](coordSys);
  }
  var userAPI = Object(util["defaults"])({
    getWidth: api.getWidth,
    getHeight: api.getHeight,
    getZr: api.getZr,
    getDevicePixelRatio: api.getDevicePixelRatio,
    value: value,
    style: style,
    ordinalRawValue: ordinalRawValue,
    styleEmphasis: styleEmphasis,
    visual: visual,
    barLayout: barLayout,
    currentSeriesIndices: currentSeriesIndices,
    font: font
  }, prepareResult.api || {});
  var userParams = {
    // The life cycle of context: current round of rendering.
    // The global life cycle is probably not necessary, because
    // user can store global status by themselves.
    context: {},
    seriesId: customSeries.id,
    seriesName: customSeries.name,
    seriesIndex: customSeries.seriesIndex,
    coordSys: prepareResult.coordSys,
    dataInsideLength: data.count(),
    encode: wrapEncodeDef(customSeries.getData())
  };
  // If someday intending to refactor them to a class, should consider do not
  // break change: currently these attribute member are encapsulated in a closure
  // so that do not need to force user to call these method with a scope.
  // Do not support call `api` asynchronously without dataIndexInside input.
  var currDataIndexInside;
  var currItemModel;
  var currItemStyleModels = {};
  var currLabelModels = {};
  var seriesItemStyleModels = {};
  var seriesLabelModels = {};
  for (var i = 0; i < STATES.length; i++) {
    var stateName = STATES[i];
    seriesItemStyleModels[stateName] = customSeries.getModel(PATH_ITEM_STYLE[stateName]);
    seriesLabelModels[stateName] = customSeries.getModel(PATH_LABEL[stateName]);
  }
  function getItemModel(dataIndexInside) {
    return dataIndexInside === currDataIndexInside ? currItemModel || (currItemModel = data.getItemModel(dataIndexInside)) : data.getItemModel(dataIndexInside);
  }
  function getItemStyleModel(dataIndexInside, state) {
    return !data.hasItemOption ? seriesItemStyleModels[state] : dataIndexInside === currDataIndexInside ? currItemStyleModels[state] || (currItemStyleModels[state] = getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state])) : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]);
  }
  function getLabelModel(dataIndexInside, state) {
    return !data.hasItemOption ? seriesLabelModels[state] : dataIndexInside === currDataIndexInside ? currLabelModels[state] || (currLabelModels[state] = getItemModel(dataIndexInside).getModel(PATH_LABEL[state])) : getItemModel(dataIndexInside).getModel(PATH_LABEL[state]);
  }
  return function (dataIndexInside, payload) {
    currDataIndexInside = dataIndexInside;
    currItemModel = null;
    currItemStyleModels = {};
    currLabelModels = {};
    return renderItem && renderItem(Object(util["defaults"])({
      dataIndexInside: dataIndexInside,
      dataIndex: data.getRawIndex(dataIndexInside),
      // Can be used for optimization when zoom or roam.
      actionType: payload ? payload.type : null
    }, userParams), userAPI);
  };
  /**
   * @public
   * @param dim by default 0.
   * @param dataIndexInside by default `currDataIndexInside`.
   */
  function value(dim, dataIndexInside) {
    dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    return data.getStore().get(data.getDimensionIndex(dim || 0), dataIndexInside);
  }
  /**
   * @public
   * @param dim by default 0.
   * @param dataIndexInside by default `currDataIndexInside`.
   */
  function ordinalRawValue(dim, dataIndexInside) {
    dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    dim = dim || 0;
    var dimInfo = data.getDimensionInfo(dim);
    if (!dimInfo) {
      var dimIndex = data.getDimensionIndex(dim);
      return dimIndex >= 0 ? data.getStore().get(dimIndex, dataIndexInside) : undefined;
    }
    var val = data.get(dimInfo.name, dataIndexInside);
    var ordinalMeta = dimInfo && dimInfo.ordinalMeta;
    return ordinalMeta ? ordinalMeta.categories[val] : val;
  }
  /**
   * @deprecated The original intention of `api.style` is enable to set itemStyle
   * like other series. But it is not necessary and not easy to give a strict definition
   * of what it returns. And since echarts5 it needs to be make compat work. So
   * deprecates it since echarts5.
   *
   * By default, `visual` is applied to style (to support visualMap).
   * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`,
   * it can be implemented as:
   * `api.style({stroke: api.visual('color'), fill: null})`;
   *
   * [Compat]: since ec5, RectText has been separated from its hosts el.
   * so `api.style()` will only return the style from `itemStyle` but not handle `label`
   * any more. But `series.label` config is never published in doc.
   * We still compat it in `api.style()`. But not encourage to use it and will still not
   * to pulish it to doc.
   * @public
   * @param dataIndexInside by default `currDataIndexInside`.
   */
  function style(userProps, dataIndexInside) {
    if (false) {}
    dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    var style = data.getItemVisual(dataIndexInside, 'style');
    var visualColor = style && style.fill;
    var opacity = style && style.opacity;
    var itemStyle = getItemStyleModel(dataIndexInside, NORMAL).getItemStyle();
    visualColor != null && (itemStyle.fill = visualColor);
    opacity != null && (itemStyle.opacity = opacity);
    var opt = {
      inheritColor: Object(util["isString"])(visualColor) ? visualColor : '#000'
    };
    var labelModel = getLabelModel(dataIndexInside, NORMAL);
    // Now that the feature of "auto adjust text fill/stroke" has been migrated to zrender
    // since ec5, we should set `isAttached` as `false` here and make compat in
    // `convertToEC4StyleForCustomSerise`.
    var textStyle = createTextStyle(labelModel, null, opt, false, true);
    textStyle.text = labelModel.getShallow('show') ? Object(util["retrieve2"])(customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;
    var textConfig = createTextConfig(labelModel, opt, false);
    preFetchFromExtra(userProps, itemStyle);
    itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);
    userProps && applyUserPropsAfter(itemStyle, userProps);
    itemStyle.legacy = true;
    return itemStyle;
  }
  /**
   * @deprecated The reason see `api.style()`
   * @public
   * @param dataIndexInside by default `currDataIndexInside`.
   */
  function styleEmphasis(userProps, dataIndexInside) {
    if (false) {}
    dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    var itemStyle = getItemStyleModel(dataIndexInside, EMPHASIS).getItemStyle();
    var labelModel = getLabelModel(dataIndexInside, EMPHASIS);
    var textStyle = createTextStyle(labelModel, null, null, true, true);
    textStyle.text = labelModel.getShallow('show') ? Object(util["retrieve3"])(customSeries.getFormattedLabel(dataIndexInside, EMPHASIS), customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;
    var textConfig = createTextConfig(labelModel, null, true);
    preFetchFromExtra(userProps, itemStyle);
    itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);
    userProps && applyUserPropsAfter(itemStyle, userProps);
    itemStyle.legacy = true;
    return itemStyle;
  }
  function applyUserPropsAfter(itemStyle, extra) {
    for (var key in extra) {
      if (Object(util["hasOwn"])(extra, key)) {
        itemStyle[key] = extra[key];
      }
    }
  }
  function preFetchFromExtra(extra, itemStyle) {
    // A trick to retrieve those props firstly, which are used to
    // apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`.
    // (It's not reasonable but only for a degree of compat)
    if (extra) {
      extra.textFill && (itemStyle.textFill = extra.textFill);
      extra.textPosition && (itemStyle.textPosition = extra.textPosition);
    }
  }
  /**
   * @public
   * @param dataIndexInside by default `currDataIndexInside`.
   */
  function visual(visualType, dataIndexInside) {
    dataIndexInside == null && (dataIndexInside = currDataIndexInside);
    if (Object(util["hasOwn"])(STYLE_VISUAL_TYPE, visualType)) {
      var style_1 = data.getItemVisual(dataIndexInside, 'style');
      return style_1 ? style_1[STYLE_VISUAL_TYPE[visualType]] : null;
    }
    // Only support these visuals. Other visual might be inner tricky
    // for performance (like `style`), do not expose to users.
    if (Object(util["hasOwn"])(NON_STYLE_VISUAL_PROPS, visualType)) {
      return data.getItemVisual(dataIndexInside, visualType);
    }
  }
  /**
   * @public
   * @return If not support, return undefined.
   */
  function barLayout(opt) {
    if (coordSys.type === 'cartesian2d') {
      var baseAxis = coordSys.getBaseAxis();
      return getLayoutOnAxis(Object(util["defaults"])({
        axis: baseAxis
      }, opt));
    }
  }
  /**
   * @public
   */
  function currentSeriesIndices() {
    return ecModel.getCurrentSeriesIndices();
  }
  /**
   * @public
   * @return font string
   */
  function font(opt) {
    return getFont(opt, ecModel);
  }
}
function wrapEncodeDef(data) {
  var encodeDef = {};
  Object(util["each"])(data.dimensions, function (dimName) {
    var dimInfo = data.getDimensionInfo(dimName);
    if (!dimInfo.isExtraCoord) {
      var coordDim = dimInfo.coordDim;
      var dataDims = encodeDef[coordDim] = encodeDef[coordDim] || [];
      dataDims[dimInfo.coordDimIndex] = data.getDimensionIndex(dimName);
    }
  });
  return encodeDef;
}
function createOrUpdateItem(api, existsEl, dataIndex, elOption, seriesModel, group, data) {
  // [Rule]
  // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing.
  //     (It seems that violate the "merge" principle, but most of users probably intuitively
  //     regard "return;" as "show nothing element whatever", so make a exception to meet the
  //     most cases.)
  // The rule or "merge" see [STRATEGY_MERGE].
  // If `elOption` is `null`/`undefined`/`false` (when `renderItem` returns nothing).
  if (!elOption) {
    group.remove(existsEl);
    return;
  }
  var el = doCreateOrUpdateEl(api, existsEl, dataIndex, elOption, seriesModel, group);
  el && data.setItemGraphicEl(dataIndex, el);
  el && toggleHoverEmphasis(el, elOption.focus, elOption.blurScope, elOption.emphasisDisabled);
  return el;
}
function doCreateOrUpdateEl(api, existsEl, dataIndex, elOption, seriesModel, group) {
  if (false) {}
  var toBeReplacedIdx = -1;
  var oldEl = existsEl;
  if (existsEl && doesElNeedRecreate(existsEl, elOption, seriesModel)
  // || (
  //     // PENDING: even in one-to-one mapping case, if el is marked as morph,
  //     // do not sure whether the el will be mapped to another el with different
  //     // hierarchy in Group tree. So always recreate el rather than reuse the el.
  //     morphHelper && morphHelper.isOneToOneFrom(el)
  // )
  ) {
    // Should keep at the original index, otherwise "merge by index" will be incorrect.
    toBeReplacedIdx = Object(util["indexOf"])(group.childrenRef(), existsEl);
    existsEl = null;
  }
  var isInit = !existsEl;
  var el = existsEl;
  if (!el) {
    el = createEl(elOption);
    if (oldEl) {
      copyElement(oldEl, el);
    }
  } else {
    // FIMXE:NEXT unified clearState?
    // If in some case the performance issue arised, consider
    // do not clearState but update cached normal state directly.
    el.clearStates();
  }
  // Need to set morph: false explictly to disable automatically morphing.
  if (elOption.morph === false) {
    el.disableMorphing = true;
  } else if (el.disableMorphing) {
    el.disableMorphing = false;
  }
  attachedTxInfoTmp.normal.cfg = attachedTxInfoTmp.normal.conOpt = attachedTxInfoTmp.emphasis.cfg = attachedTxInfoTmp.emphasis.conOpt = attachedTxInfoTmp.blur.cfg = attachedTxInfoTmp.blur.conOpt = attachedTxInfoTmp.select.cfg = attachedTxInfoTmp.select.conOpt = null;
  attachedTxInfoTmp.isLegacy = false;
  doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfoTmp);
  doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit);
  updateElNormal(api, el, dataIndex, elOption, attachedTxInfoTmp, seriesModel, isInit);
  // `elOption.info` enables user to mount some info on
  // elements and use them in event handlers.
  // Update them only when user specified, otherwise, remain.
  Object(util["hasOwn"])(elOption, 'info') && (customInnerStore(el).info = elOption.info);
  for (var i = 0; i < STATES.length; i++) {
    var stateName = STATES[i];
    if (stateName !== NORMAL) {
      var otherStateOpt = retrieveStateOption(elOption, stateName);
      var otherStyleOpt = retrieveStyleOptionOnState(elOption, otherStateOpt, stateName);
      updateElOnState(stateName, el, otherStateOpt, otherStyleOpt, attachedTxInfoTmp);
    }
  }
  CustomView_updateZ(el, elOption, seriesModel);
  if (elOption.type === 'group') {
    mergeChildren(api, el, dataIndex, elOption, seriesModel);
  }
  if (toBeReplacedIdx >= 0) {
    group.replaceAt(el, toBeReplacedIdx);
  } else {
    group.add(el);
  }
  return el;
}
// `el` must not be null/undefined.
function doesElNeedRecreate(el, elOption, seriesModel) {
  var elInner = customInnerStore(el);
  var elOptionType = elOption.type;
  var elOptionShape = elOption.shape;
  var elOptionStyle = elOption.style;
  return (
    // Always create new if universal transition is enabled.
    // Because we do transition after render. It needs to know what old element is. Replacement will loose it.
    seriesModel.isUniversalTransitionEnabled()
    // If `elOptionType` is `null`, follow the merge principle.
    || elOptionType != null && elOptionType !== elInner.customGraphicType || elOptionType === 'path' && hasOwnPathData(elOptionShape) && getPathData(elOptionShape) !== elInner.customPathData || elOptionType === 'image' && Object(util["hasOwn"])(elOptionStyle, 'image') && elOptionStyle.image !== elInner.customImagePath
    // // FIXME test and remove this restriction?
    // || (elOptionType === 'text'
    //     && hasOwn(elOptionStyle, 'text')
    //     && (elOptionStyle as TextStyleProps).text !== elInner.customText
    // )
  );
}
function doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit) {
  // Based on the "merge" principle, if no clipPath provided,
  // do nothing. The exists clip will be totally removed only if
  // `el.clipPath` is `false`. Otherwise it will be merged/replaced.
  var clipPathOpt = elOption.clipPath;
  if (clipPathOpt === false) {
    if (el && el.getClipPath()) {
      el.removeClipPath();
    }
  } else if (clipPathOpt) {
    var clipPath = el.getClipPath();
    if (clipPath && doesElNeedRecreate(clipPath, clipPathOpt, seriesModel)) {
      clipPath = null;
    }
    if (!clipPath) {
      clipPath = createEl(clipPathOpt);
      if (false) {}
      el.setClipPath(clipPath);
    }
    updateElNormal(null, clipPath, dataIndex, clipPathOpt, null, seriesModel, isInit);
  }
  // If not define `clipPath` in option, do nothing unnecessary.
}
function doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfo) {
  // Group does not support textContent temporarily until necessary.
  if (el.isGroup) {
    return;
  }
  // Normal must be called before emphasis, for `isLegacy` detection.
  processTxInfo(elOption, null, attachedTxInfo);
  processTxInfo(elOption, EMPHASIS, attachedTxInfo);
  // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sense.
  // So for simplicity, if "elOption hasOwnProperty of them but be null/undefined", we do not
  // trade them as set to null to el.
  // Especially:
  // `elOption.textContent: false` means remove textContent.
  // `elOption.textContent.emphasis.style: false` means remove the style from emphasis state.
  var txConOptNormal = attachedTxInfo.normal.conOpt;
  var txConOptEmphasis = attachedTxInfo.emphasis.conOpt;
  var txConOptBlur = attachedTxInfo.blur.conOpt;
  var txConOptSelect = attachedTxInfo.select.conOpt;
  if (txConOptNormal != null || txConOptEmphasis != null || txConOptSelect != null || txConOptBlur != null) {
    var textContent = el.getTextContent();
    if (txConOptNormal === false) {
      textContent && el.removeTextContent();
    } else {
      txConOptNormal = attachedTxInfo.normal.conOpt = txConOptNormal || {
        type: 'text'
      };
      if (!textContent) {
        textContent = createEl(txConOptNormal);
        el.setTextContent(textContent);
      } else {
        // If in some case the performance issue arised, consider
        // do not clearState but update cached normal state directly.
        textContent.clearStates();
      }
      updateElNormal(null, textContent, dataIndex, txConOptNormal, null, seriesModel, isInit);
      var txConStlOptNormal = txConOptNormal && txConOptNormal.style;
      for (var i = 0; i < STATES.length; i++) {
        var stateName = STATES[i];
        if (stateName !== NORMAL) {
          var txConOptOtherState = attachedTxInfo[stateName].conOpt;
          updateElOnState(stateName, textContent, txConOptOtherState, retrieveStyleOptionOnState(txConOptNormal, txConOptOtherState, stateName), null);
        }
      }
      txConStlOptNormal ? textContent.dirty() : textContent.markRedraw();
    }
  }
}
function processTxInfo(elOption, state, attachedTxInfo) {
  var stateOpt = !state ? elOption : retrieveStateOption(elOption, state);
  var styleOpt = !state ? elOption.style : retrieveStyleOptionOnState(elOption, stateOpt, EMPHASIS);
  var elType = elOption.type;
  var txCfg = stateOpt ? stateOpt.textConfig : null;
  var txConOptNormal = elOption.textContent;
  var txConOpt = !txConOptNormal ? null : !state ? txConOptNormal : retrieveStateOption(txConOptNormal, state);
  if (styleOpt && (
  // Because emphasis style has little info to detect legacy,
  // if normal is legacy, emphasis is trade as legacy.
  attachedTxInfo.isLegacy || isEC4CompatibleStyle(styleOpt, elType, !!txCfg, !!txConOpt))) {
    attachedTxInfo.isLegacy = true;
    var convertResult = convertFromEC4CompatibleStyle(styleOpt, elType, !state);
    // Explicitly specified `textConfig` and `textContent` has higher priority than
    // the ones generated by legacy style. Otherwise if users use them and `api.style`
    // at the same time, they not both work and hardly to known why.
    if (!txCfg && convertResult.textConfig) {
      txCfg = convertResult.textConfig;
    }
    if (!txConOpt && convertResult.textContent) {
      txConOpt = convertResult.textContent;
    }
  }
  if (!state && txConOpt) {
    var txConOptNormal_1 = txConOpt;
    // `textContent: {type: 'text'}`, the "type" is easy to be missing. So we tolerate it.
    !txConOptNormal_1.type && (txConOptNormal_1.type = 'text');
    if (false) {}
  }
  var info = !state ? attachedTxInfo.normal : attachedTxInfo[state];
  info.cfg = txCfg;
  info.conOpt = txConOpt;
}
function retrieveStateOption(elOption, state) {
  return !state ? elOption : elOption ? elOption[state] : null;
}
function retrieveStyleOptionOnState(stateOptionNormal, stateOption, state) {
  var style = stateOption && stateOption.style;
  if (style == null && state === EMPHASIS && stateOptionNormal) {
    style = stateOptionNormal.styleEmphasis;
  }
  return style;
}
// Usage:
// (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates
//     that the existing children will not be removed, and enables the feature
//     that update some of the props of some of the children simply by construct
//     the returned children of `renderItem` like:
//     `var children = group.children = []; children[3] = {opacity: 0.5};`
// (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children
//     by child.name. But that might be lower performance.
// (3) If `elOption.$mergeChildren` is `false`, the existing children will be
//     replaced totally.
// (4) If `!elOption.children`, following the "merge" principle, nothing will
//     happen.
// (5) If `elOption.$mergeChildren` is not `false` neither `'byName'` and the
//     `el` is a group, and if any of the new child is null, it means to remove
//     the element at the same index, if exists. On the other hand, if the new
//     child is and empty object `{}`, it means to keep the element not changed.
//
// For implementation simpleness, do not provide a direct way to remove single
// child (otherwise the total indices of the children array have to be modified).
// User can remove a single child by setting its `ignore` to `true`.
function mergeChildren(api, el, dataIndex, elOption, seriesModel) {
  var newChildren = elOption.children;
  var newLen = newChildren ? newChildren.length : 0;
  var mergeChildren = elOption.$mergeChildren;
  // `diffChildrenByName` has been deprecated.
  var byName = mergeChildren === 'byName' || elOption.diffChildrenByName;
  var notMerge = mergeChildren === false;
  // For better performance on roam update, only enter if necessary.
  if (!newLen && !byName && !notMerge) {
    return;
  }
  if (byName) {
    diffGroupChildren({
      api: api,
      oldChildren: el.children() || [],
      newChildren: newChildren || [],
      dataIndex: dataIndex,
      seriesModel: seriesModel,
      group: el
    });
    return;
  }
  notMerge && el.removeAll();
  // Mapping children of a group simply by index, which
  // might be better performance.
  var index = 0;
  for (; index < newLen; index++) {
    var newChild = newChildren[index];
    var oldChild = el.childAt(index);
    if (newChild) {
      if (newChild.ignore == null) {
        // The old child is set to be ignored if null (see comments
        // below). So we need to set ignore to be false back.
        newChild.ignore = false;
      }
      doCreateOrUpdateEl(api, oldChild, dataIndex, newChild, seriesModel, el);
    } else {
      if (false) {}
      // If the new element option is null, it means to remove the old
      // element. But we cannot really remove the element from the group
      // directly, because the element order may not be stable when this
      // element is added back. So we set the element to be ignored.
      oldChild.ignore = true;
    }
  }
  for (var i = el.childCount() - 1; i >= index; i--) {
    var child = el.childAt(i);
    removeChildFromGroup(el, child, seriesModel);
  }
}
function removeChildFromGroup(group, child, seriesModel) {
  // Do not support leave elements that are not mentioned in the latest
  // `renderItem` return. Otherwise users may not have a clear and simple
  // concept that how to control all of the elements.
  child && applyLeaveTransition(child, customInnerStore(group).option, seriesModel);
}
function diffGroupChildren(context) {
  new data_DataDiffer(context.oldChildren, context.newChildren, CustomView_getKey, CustomView_getKey, context).add(processAddUpdate).update(processAddUpdate).remove(processRemove).execute();
}
function CustomView_getKey(item, idx) {
  var name = item && item.name;
  return name != null ? name : GROUP_DIFF_PREFIX + idx;
}
function processAddUpdate(newIndex, oldIndex) {
  var context = this.context;
  var childOption = newIndex != null ? context.newChildren[newIndex] : null;
  var child = oldIndex != null ? context.oldChildren[oldIndex] : null;
  doCreateOrUpdateEl(context.api, child, context.dataIndex, childOption, context.seriesModel, context.group);
}
function processRemove(oldIndex) {
  var context = this.context;
  var child = context.oldChildren[oldIndex];
  child && applyLeaveTransition(child, customInnerStore(child).option, context.seriesModel);
}
/**
 * @return SVG Path data.
 */
function getPathData(shape) {
  // "d" follows the SVG convention.
  return shape && (shape.pathData || shape.d);
}
function hasOwnPathData(shape) {
  return shape && (Object(util["hasOwn"])(shape, 'pathData') || Object(util["hasOwn"])(shape, 'd'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/custom/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function custom_install_install(registers) {
  registers.registerChartView(CustomView);
  registers.registerSeriesModel(CustomSeries);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var BaseAxisPointer_inner = makeInner();
var BaseAxisPointer_clone = util["clone"];
var bind = util["bind"];
/**
 * Base axis pointer class in 2D.
 */
var BaseAxisPointer_BaseAxisPointer = /** @class */function () {
  function BaseAxisPointer() {
    this._dragging = false;
    /**
     * In px, arbitrary value. Do not set too small,
     * no animation is ok for most cases.
     */
    this.animationThreshold = 15;
  }
  /**
   * @implement
   */
  BaseAxisPointer.prototype.render = function (axisModel, axisPointerModel, api, forceRender) {
    var value = axisPointerModel.get('value');
    var status = axisPointerModel.get('status');
    // Bind them to `this`, not in closure, otherwise they will not
    // be replaced when user calling setOption in not merge mode.
    this._axisModel = axisModel;
    this._axisPointerModel = axisPointerModel;
    this._api = api;
    // Optimize: `render` will be called repeatedly during mouse move.
    // So it is power consuming if performing `render` each time,
    // especially on mobile device.
    if (!forceRender && this._lastValue === value && this._lastStatus === status) {
      return;
    }
    this._lastValue = value;
    this._lastStatus = status;
    var group = this._group;
    var handle = this._handle;
    if (!status || status === 'hide') {
      // Do not clear here, for animation better.
      group && group.hide();
      handle && handle.hide();
      return;
    }
    group && group.show();
    handle && handle.show();
    // Otherwise status is 'show'
    var elOption = {};
    this.makeElOption(elOption, value, axisModel, axisPointerModel, api);
    // Enable change axis pointer type.
    var graphicKey = elOption.graphicKey;
    if (graphicKey !== this._lastGraphicKey) {
      this.clear(api);
    }
    this._lastGraphicKey = graphicKey;
    var moveAnimation = this._moveAnimation = this.determineAnimation(axisModel, axisPointerModel);
    if (!group) {
      group = this._group = new graphic_Group();
      this.createPointerEl(group, elOption, axisModel, axisPointerModel);
      this.createLabelEl(group, elOption, axisModel, axisPointerModel);
      api.getZr().add(group);
    } else {
      var doUpdateProps = util["curry"](BaseAxisPointer_updateProps, axisPointerModel, moveAnimation);
      this.updatePointerEl(group, elOption, doUpdateProps);
      this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel);
    }
    updateMandatoryProps(group, axisPointerModel, true);
    this._renderHandle(value);
  };
  /**
   * @implement
   */
  BaseAxisPointer.prototype.remove = function (api) {
    this.clear(api);
  };
  /**
   * @implement
   */
  BaseAxisPointer.prototype.dispose = function (api) {
    this.clear(api);
  };
  /**
   * @protected
   */
  BaseAxisPointer.prototype.determineAnimation = function (axisModel, axisPointerModel) {
    var animation = axisPointerModel.get('animation');
    var axis = axisModel.axis;
    var isCategoryAxis = axis.type === 'category';
    var useSnap = axisPointerModel.get('snap');
    // Value axis without snap always do not snap.
    if (!useSnap && !isCategoryAxis) {
      return false;
    }
    if (animation === 'auto' || animation == null) {
      var animationThreshold = this.animationThreshold;
      if (isCategoryAxis && axis.getBandWidth() > animationThreshold) {
        return true;
      }
      // It is important to auto animation when snap used. Consider if there is
      // a dataZoom, animation will be disabled when too many points exist, while
      // it will be enabled for better visual effect when little points exist.
      if (useSnap) {
        var seriesDataCount = getAxisInfo(axisModel).seriesDataCount;
        var axisExtent = axis.getExtent();
        // Approximate band width
        return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold;
      }
      return false;
    }
    return animation === true;
  };
  /**
   * add {pointer, label, graphicKey} to elOption
   * @protected
   */
  BaseAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {
    // Should be implemenented by sub-class.
  };
  /**
   * @protected
   */
  BaseAxisPointer.prototype.createPointerEl = function (group, elOption, axisModel, axisPointerModel) {
    var pointerOption = elOption.pointer;
    if (pointerOption) {
      var pointerEl = BaseAxisPointer_inner(group).pointerEl = new graphic_namespaceObject[pointerOption.type](BaseAxisPointer_clone(elOption.pointer));
      group.add(pointerEl);
    }
  };
  /**
   * @protected
   */
  BaseAxisPointer.prototype.createLabelEl = function (group, elOption, axisModel, axisPointerModel) {
    if (elOption.label) {
      var labelEl = BaseAxisPointer_inner(group).labelEl = new Text(BaseAxisPointer_clone(elOption.label));
      group.add(labelEl);
      updateLabelShowHide(labelEl, axisPointerModel);
    }
  };
  /**
   * @protected
   */
  BaseAxisPointer.prototype.updatePointerEl = function (group, elOption, updateProps) {
    var pointerEl = BaseAxisPointer_inner(group).pointerEl;
    if (pointerEl && elOption.pointer) {
      pointerEl.setStyle(elOption.pointer.style);
      updateProps(pointerEl, {
        shape: elOption.pointer.shape
      });
    }
  };
  /**
   * @protected
   */
  BaseAxisPointer.prototype.updateLabelEl = function (group, elOption, updateProps, axisPointerModel) {
    var labelEl = BaseAxisPointer_inner(group).labelEl;
    if (labelEl) {
      labelEl.setStyle(elOption.label.style);
      updateProps(labelEl, {
        // Consider text length change in vertical axis, animation should
        // be used on shape, otherwise the effect will be weird.
        // TODOTODO
        // shape: elOption.label.shape,
        x: elOption.label.x,
        y: elOption.label.y
      });
      updateLabelShowHide(labelEl, axisPointerModel);
    }
  };
  /**
   * @private
   */
  BaseAxisPointer.prototype._renderHandle = function (value) {
    if (this._dragging || !this.updateHandleTransform) {
      return;
    }
    var axisPointerModel = this._axisPointerModel;
    var zr = this._api.getZr();
    var handle = this._handle;
    var handleModel = axisPointerModel.getModel('handle');
    var status = axisPointerModel.get('status');
    if (!handleModel.get('show') || !status || status === 'hide') {
      handle && zr.remove(handle);
      this._handle = null;
      return;
    }
    var isInit;
    if (!this._handle) {
      isInit = true;
      handle = this._handle = createIcon(handleModel.get('icon'), {
        cursor: 'move',
        draggable: true,
        onmousemove: function (e) {
          // For mobile device, prevent screen slider on the button.
          stop(e.event);
        },
        onmousedown: bind(this._onHandleDragMove, this, 0, 0),
        drift: bind(this._onHandleDragMove, this),
        ondragend: bind(this._onHandleDragEnd, this)
      });
      zr.add(handle);
    }
    updateMandatoryProps(handle, axisPointerModel, false);
    // update style
    handle.setStyle(handleModel.getItemStyle(null, ['color', 'borderColor', 'borderWidth', 'opacity', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY']));
    // update position
    var handleSize = handleModel.get('size');
    if (!util["isArray"](handleSize)) {
      handleSize = [handleSize, handleSize];
    }
    handle.scaleX = handleSize[0] / 2;
    handle.scaleY = handleSize[1] / 2;
    createOrUpdate(this, '_doDispatchAxisPointer', handleModel.get('throttle') || 0, 'fixRate');
    this._moveHandleToValue(value, isInit);
  };
  BaseAxisPointer.prototype._moveHandleToValue = function (value, isInit) {
    BaseAxisPointer_updateProps(this._axisPointerModel, !isInit && this._moveAnimation, this._handle, getHandleTransProps(this.getHandleTransform(value, this._axisModel, this._axisPointerModel)));
  };
  BaseAxisPointer.prototype._onHandleDragMove = function (dx, dy) {
    var handle = this._handle;
    if (!handle) {
      return;
    }
    this._dragging = true;
    // Persistent for throttle.
    var trans = this.updateHandleTransform(getHandleTransProps(handle), [dx, dy], this._axisModel, this._axisPointerModel);
    this._payloadInfo = trans;
    handle.stopAnimation();
    handle.attr(getHandleTransProps(trans));
    BaseAxisPointer_inner(handle).lastProp = null;
    this._doDispatchAxisPointer();
  };
  /**
   * Throttled method.
   */
  BaseAxisPointer.prototype._doDispatchAxisPointer = function () {
    var handle = this._handle;
    if (!handle) {
      return;
    }
    var payloadInfo = this._payloadInfo;
    var axisModel = this._axisModel;
    this._api.dispatchAction({
      type: 'updateAxisPointer',
      x: payloadInfo.cursorPoint[0],
      y: payloadInfo.cursorPoint[1],
      tooltipOption: payloadInfo.tooltipOption,
      axesInfo: [{
        axisDim: axisModel.axis.dim,
        axisIndex: axisModel.componentIndex
      }]
    });
  };
  BaseAxisPointer.prototype._onHandleDragEnd = function () {
    this._dragging = false;
    var handle = this._handle;
    if (!handle) {
      return;
    }
    var value = this._axisPointerModel.get('value');
    // Consider snap or categroy axis, handle may be not consistent with
    // axisPointer. So move handle to align the exact value position when
    // drag ended.
    this._moveHandleToValue(value);
    // For the effect: tooltip will be shown when finger holding on handle
    // button, and will be hidden after finger left handle button.
    this._api.dispatchAction({
      type: 'hideTip'
    });
  };
  /**
   * @private
   */
  BaseAxisPointer.prototype.clear = function (api) {
    this._lastValue = null;
    this._lastStatus = null;
    var zr = api.getZr();
    var group = this._group;
    var handle = this._handle;
    if (zr && group) {
      this._lastGraphicKey = null;
      group && zr.remove(group);
      handle && zr.remove(handle);
      this._group = null;
      this._handle = null;
      this._payloadInfo = null;
    }
    clear(this, '_doDispatchAxisPointer');
  };
  /**
   * @protected
   */
  BaseAxisPointer.prototype.doClear = function () {
    // Implemented by sub-class if necessary.
  };
  BaseAxisPointer.prototype.buildLabel = function (xy, wh, xDimIndex) {
    xDimIndex = xDimIndex || 0;
    return {
      x: xy[xDimIndex],
      y: xy[1 - xDimIndex],
      width: wh[xDimIndex],
      height: wh[1 - xDimIndex]
    };
  };
  return BaseAxisPointer;
}();
function BaseAxisPointer_updateProps(animationModel, moveAnimation, el, props) {
  // Animation optimize.
  if (!propsEqual(BaseAxisPointer_inner(el).lastProp, props)) {
    BaseAxisPointer_inner(el).lastProp = props;
    moveAnimation ? updateProps(el, props, animationModel) : (el.stopAnimation(), el.attr(props));
  }
}
function propsEqual(lastProps, newProps) {
  if (util["isObject"](lastProps) && util["isObject"](newProps)) {
    var equals_1 = true;
    util["each"](newProps, function (item, key) {
      equals_1 = equals_1 && propsEqual(lastProps[key], item);
    });
    return !!equals_1;
  } else {
    return lastProps === newProps;
  }
}
function updateLabelShowHide(labelEl, axisPointerModel) {
  labelEl[axisPointerModel.get(['label', 'show']) ? 'show' : 'hide']();
}
function getHandleTransProps(trans) {
  return {
    x: trans.x || 0,
    y: trans.y || 0,
    rotation: trans.rotation || 0
  };
}
function updateMandatoryProps(group, axisPointerModel, silent) {
  var z = axisPointerModel.get('z');
  var zlevel = axisPointerModel.get('zlevel');
  group && group.traverse(function (el) {
    if (el.type !== 'group') {
      z != null && (el.z = z);
      zlevel != null && (el.zlevel = zlevel);
      el.silent = silent;
    }
  });
}
/* harmony default export */ var axisPointer_BaseAxisPointer = (BaseAxisPointer_BaseAxisPointer);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/viewHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








function buildElStyle(axisPointerModel) {
  var axisPointerType = axisPointerModel.get('type');
  var styleModel = axisPointerModel.getModel(axisPointerType + 'Style');
  var style;
  if (axisPointerType === 'line') {
    style = styleModel.getLineStyle();
    style.fill = null;
  } else if (axisPointerType === 'shadow') {
    style = styleModel.getAreaStyle();
    style.stroke = null;
  }
  return style;
}
/**
 * @param {Function} labelPos {align, verticalAlign, position}
 */
function buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos) {
  var value = axisPointerModel.get('value');
  var text = getValueLabel(value, axisModel.axis, axisModel.ecModel, axisPointerModel.get('seriesDataIndices'), {
    precision: axisPointerModel.get(['label', 'precision']),
    formatter: axisPointerModel.get(['label', 'formatter'])
  });
  var labelModel = axisPointerModel.getModel('label');
  var paddings = normalizeCssArray(labelModel.get('padding') || 0);
  var font = labelModel.getFont();
  var textRect = getBoundingRect(text, font);
  var position = labelPos.position;
  var width = textRect.width + paddings[1] + paddings[3];
  var height = textRect.height + paddings[0] + paddings[2];
  // Adjust by align.
  var align = labelPos.align;
  align === 'right' && (position[0] -= width);
  align === 'center' && (position[0] -= width / 2);
  var verticalAlign = labelPos.verticalAlign;
  verticalAlign === 'bottom' && (position[1] -= height);
  verticalAlign === 'middle' && (position[1] -= height / 2);
  // Not overflow ec container
  confineInContainer(position, width, height, api);
  var bgColor = labelModel.get('backgroundColor');
  if (!bgColor || bgColor === 'auto') {
    bgColor = axisModel.get(['axisLine', 'lineStyle', 'color']);
  }
  elOption.label = {
    // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},
    x: position[0],
    y: position[1],
    style: createTextStyle(labelModel, {
      text: text,
      font: font,
      fill: labelModel.getTextColor(),
      padding: paddings,
      backgroundColor: bgColor
    }),
    // Label should be over axisPointer.
    z2: 10
  };
}
// Do not overflow ec container
function confineInContainer(position, width, height, api) {
  var viewWidth = api.getWidth();
  var viewHeight = api.getHeight();
  position[0] = Math.min(position[0] + width, viewWidth) - width;
  position[1] = Math.min(position[1] + height, viewHeight) - height;
  position[0] = Math.max(position[0], 0);
  position[1] = Math.max(position[1], 0);
}
function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) {
  value = axis.scale.parse(value);
  var text = axis.scale.getLabel({
    value: value
  }, {
    // If `precision` is set, width can be fixed (like '12.00500'), which
    // helps to debounce when when moving label.
    precision: opt.precision
  });
  var formatter = opt.formatter;
  if (formatter) {
    var params_1 = {
      value: getAxisRawValue(axis, {
        value: value
      }),
      axisDimension: axis.dim,
      axisIndex: axis.index,
      seriesData: []
    };
    util["each"](seriesDataIndices, function (idxItem) {
      var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);
      var dataIndex = idxItem.dataIndexInside;
      var dataParams = series && series.getDataParams(dataIndex);
      dataParams && params_1.seriesData.push(dataParams);
    });
    if (util["isString"](formatter)) {
      text = formatter.replace('{value}', text);
    } else if (util["isFunction"](formatter)) {
      text = formatter(params_1);
    }
  }
  return text;
}
function getTransformedPosition(axis, value, layoutInfo) {
  var transform = matrix_create();
  matrix_rotate(transform, transform, layoutInfo.rotation);
  matrix_translate(transform, transform, layoutInfo.position);
  return graphic_applyTransform([axis.dataToCoord(value), (layoutInfo.labelOffset || 0) + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)], transform);
}
function buildCartesianSingleLabelElOption(value, elOption, layoutInfo, axisModel, axisPointerModel, api) {
  // @ts-ignore
  var textLayout = axis_AxisBuilder.innerTextLayout(layoutInfo.rotation, 0, layoutInfo.labelDirection);
  layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']);
  buildLabelElOption(elOption, axisModel, axisPointerModel, api, {
    position: getTransformedPosition(axisModel.axis, value, layoutInfo),
    align: textLayout.textAlign,
    verticalAlign: textLayout.textVerticalAlign
  });
}
function makeLineShape(p1, p2, xDimIndex) {
  xDimIndex = xDimIndex || 0;
  return {
    x1: p1[xDimIndex],
    y1: p1[1 - xDimIndex],
    x2: p2[xDimIndex],
    y2: p2[1 - xDimIndex]
  };
}
function makeRectShape(xy, wh, xDimIndex) {
  xDimIndex = xDimIndex || 0;
  return {
    x: xy[xDimIndex],
    y: xy[1 - xDimIndex],
    width: wh[xDimIndex],
    height: wh[1 - xDimIndex]
  };
}
function makeSectorShape(cx, cy, r0, r, startAngle, endAngle) {
  return {
    cx: cx,
    cy: cy,
    r0: r0,
    r: r,
    startAngle: startAngle,
    endAngle: endAngle,
    clockwise: true
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var CartesianAxisPointer_CartesianAxisPointer = /** @class */function (_super) {
  __extends(CartesianAxisPointer, _super);
  function CartesianAxisPointer() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  /**
   * @override
   */
  CartesianAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {
    var axis = axisModel.axis;
    var grid = axis.grid;
    var axisPointerType = axisPointerModel.get('type');
    var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();
    var pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true));
    if (axisPointerType && axisPointerType !== 'none') {
      var elStyle = buildElStyle(axisPointerModel);
      var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent);
      pointerOption.style = elStyle;
      elOption.graphicKey = pointerOption.type;
      elOption.pointer = pointerOption;
    }
    var layoutInfo = cartesianAxisHelper_layout(grid.model, axisModel);
    buildCartesianSingleLabelElOption(
    // @ts-ignore
    value, elOption, layoutInfo, axisModel, axisPointerModel, api);
  };
  /**
   * @override
   */
  CartesianAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) {
    var layoutInfo = cartesianAxisHelper_layout(axisModel.axis.grid.model, axisModel, {
      labelInside: false
    });
    // @ts-ignore
    layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);
    var pos = getTransformedPosition(axisModel.axis, value, layoutInfo);
    return {
      x: pos[0],
      y: pos[1],
      rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)
    };
  };
  /**
   * @override
   */
  CartesianAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) {
    var axis = axisModel.axis;
    var grid = axis.grid;
    var axisExtent = axis.getGlobalExtent(true);
    var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();
    var dimIndex = axis.dim === 'x' ? 0 : 1;
    var currPosition = [transform.x, transform.y];
    currPosition[dimIndex] += delta[dimIndex];
    currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);
    currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);
    var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;
    var cursorPoint = [cursorOtherValue, cursorOtherValue];
    cursorPoint[dimIndex] = currPosition[dimIndex];
    // Make tooltip do not overlap axisPointer and in the middle of the grid.
    var tooltipOptions = [{
      verticalAlign: 'middle'
    }, {
      align: 'center'
    }];
    return {
      x: currPosition[0],
      y: currPosition[1],
      rotation: transform.rotation,
      cursorPoint: cursorPoint,
      tooltipOption: tooltipOptions[dimIndex]
    };
  };
  return CartesianAxisPointer;
}(axisPointer_BaseAxisPointer);
function getCartesian(grid, axis) {
  var opt = {};
  opt[axis.dim + 'AxisIndex'] = axis.index;
  return grid.getCartesian(opt);
}
var pointerShapeBuilder = {
  line: function (axis, pixelValue, otherExtent) {
    var targetShape = makeLineShape([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getAxisDimIndex(axis));
    return {
      type: 'Line',
      subPixelOptimize: true,
      shape: targetShape
    };
  },
  shadow: function (axis, pixelValue, otherExtent) {
    var bandWidth = Math.max(1, axis.getBandWidth());
    var span = otherExtent[1] - otherExtent[0];
    return {
      type: 'Rect',
      shape: makeRectShape([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getAxisDimIndex(axis))
    };
  }
};
function getAxisDimIndex(axis) {
  return axis.dim === 'x' ? 0 : 1;
}
/* harmony default export */ var axisPointer_CartesianAxisPointer = (CartesianAxisPointer_CartesianAxisPointer);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var AxisPointerModel_AxisPointerModel = /** @class */function (_super) {
  __extends(AxisPointerModel, _super);
  function AxisPointerModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = AxisPointerModel.type;
    return _this;
  }
  AxisPointerModel.type = 'axisPointer';
  AxisPointerModel.defaultOption = {
    // 'auto' means that show when triggered by tooltip or handle.
    show: 'auto',
    // zlevel: 0,
    z: 50,
    type: 'line',
    // axispointer triggered by tootip determine snap automatically,
    // see `modelHelper`.
    snap: false,
    triggerTooltip: true,
    triggerEmphasis: true,
    value: null,
    status: null,
    link: [],
    // Do not set 'auto' here, otherwise global animation: false
    // will not effect at this axispointer.
    animation: null,
    animationDurationUpdate: 200,
    lineStyle: {
      color: '#B9BEC9',
      width: 1,
      type: 'dashed'
    },
    shadowStyle: {
      color: 'rgba(210,219,238,0.2)'
    },
    label: {
      show: true,
      formatter: null,
      precision: 'auto',
      margin: 3,
      color: '#fff',
      padding: [5, 7, 5, 7],
      backgroundColor: 'auto',
      borderColor: null,
      borderWidth: 0,
      borderRadius: 3
    },
    handle: {
      show: false,
      // eslint-disable-next-line
      icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z',
      size: 45,
      // handle margin is from symbol center to axis, which is stable when circular move.
      margin: 50,
      // color: '#1b8bbd'
      // color: '#2f4554'
      color: '#333',
      shadowBlur: 3,
      shadowColor: '#aaa',
      shadowOffsetX: 0,
      shadowOffsetY: 2,
      // For mobile performance
      throttle: 40
    }
  };
  return AxisPointerModel;
}(Component);
/* harmony default export */ var axisPointer_AxisPointerModel = (AxisPointerModel_AxisPointerModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/globalListener.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var globalListener_inner = makeInner();
var globalListener_each = util["each"];
/**
 * @param {string} key
 * @param {module:echarts/ExtensionAPI} api
 * @param {Function} handler
 *      param: {string} currTrigger
 *      param: {Array.<number>} point
 */
function register(key, api, handler) {
  if (env["a" /* default */].node) {
    return;
  }
  var zr = api.getZr();
  globalListener_inner(zr).records || (globalListener_inner(zr).records = {});
  initGlobalListeners(zr, api);
  var record = globalListener_inner(zr).records[key] || (globalListener_inner(zr).records[key] = {});
  record.handler = handler;
}
function initGlobalListeners(zr, api) {
  if (globalListener_inner(zr).initialized) {
    return;
  }
  globalListener_inner(zr).initialized = true;
  useHandler('click', util["curry"](doEnter, 'click'));
  useHandler('mousemove', util["curry"](doEnter, 'mousemove'));
  // useHandler('mouseout', onLeave);
  useHandler('globalout', onLeave);
  function useHandler(eventType, cb) {
    zr.on(eventType, function (e) {
      var dis = makeDispatchAction(api);
      globalListener_each(globalListener_inner(zr).records, function (record) {
        record && cb(record, e, dis.dispatchAction);
      });
      dispatchTooltipFinally(dis.pendings, api);
    });
  }
}
function dispatchTooltipFinally(pendings, api) {
  var showLen = pendings.showTip.length;
  var hideLen = pendings.hideTip.length;
  var actuallyPayload;
  if (showLen) {
    actuallyPayload = pendings.showTip[showLen - 1];
  } else if (hideLen) {
    actuallyPayload = pendings.hideTip[hideLen - 1];
  }
  if (actuallyPayload) {
    actuallyPayload.dispatchAction = null;
    api.dispatchAction(actuallyPayload);
  }
}
function onLeave(record, e, dispatchAction) {
  record.handler('leave', null, dispatchAction);
}
function doEnter(currTrigger, record, e, dispatchAction) {
  record.handler(currTrigger, e, dispatchAction);
}
function makeDispatchAction(api) {
  var pendings = {
    showTip: [],
    hideTip: []
  };
  // FIXME
  // better approach?
  // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip,
  // which may be conflict, (axisPointer call showTip but tooltip call hideTip);
  // So we have to add "final stage" to merge those dispatched actions.
  var dispatchAction = function (payload) {
    var pendingList = pendings[payload.type];
    if (pendingList) {
      pendingList.push(payload);
    } else {
      payload.dispatchAction = dispatchAction;
      api.dispatchAction(payload);
    }
  };
  return {
    dispatchAction: dispatchAction,
    pendings: pendings
  };
}
function unregister(key, api) {
  if (env["a" /* default */].node) {
    return;
  }
  var zr = api.getZr();
  var record = (globalListener_inner(zr).records || {})[key];
  if (record) {
    globalListener_inner(zr).records[key] = null;
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/AxisPointerView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var AxisPointerView_AxisPointerView = /** @class */function (_super) {
  __extends(AxisPointerView, _super);
  function AxisPointerView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = AxisPointerView.type;
    return _this;
  }
  AxisPointerView.prototype.render = function (globalAxisPointerModel, ecModel, api) {
    var globalTooltipModel = ecModel.getComponent('tooltip');
    var triggerOn = globalAxisPointerModel.get('triggerOn') || globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click';
    // Register global listener in AxisPointerView to enable
    // AxisPointerView to be independent to Tooltip.
    register('axisPointer', api, function (currTrigger, e, dispatchAction) {
      // If 'none', it is not controlled by mouse totally.
      if (triggerOn !== 'none' && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0)) {
        dispatchAction({
          type: 'updateAxisPointer',
          currTrigger: currTrigger,
          x: e && e.offsetX,
          y: e && e.offsetY
        });
      }
    });
  };
  AxisPointerView.prototype.remove = function (ecModel, api) {
    unregister('axisPointer', api);
  };
  AxisPointerView.prototype.dispose = function (ecModel, api) {
    unregister('axisPointer', api);
  };
  AxisPointerView.type = 'axisPointer';
  return AxisPointerView;
}(view_Component);
/* harmony default export */ var axisPointer_AxisPointerView = (AxisPointerView_AxisPointerView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * @param finder contains {seriesIndex, dataIndex, dataIndexInside}
 * @param ecModel
 * @return  {point: [x, y], el: ...} point Will not be null.
 */
function findPointFromSeries(finder, ecModel) {
  var point = [];
  var seriesIndex = finder.seriesIndex;
  var seriesModel;
  if (seriesIndex == null || !(seriesModel = ecModel.getSeriesByIndex(seriesIndex))) {
    return {
      point: []
    };
  }
  var data = seriesModel.getData();
  var dataIndex = queryDataIndex(data, finder);
  if (dataIndex == null || dataIndex < 0 || util["isArray"](dataIndex)) {
    return {
      point: []
    };
  }
  var el = data.getItemGraphicEl(dataIndex);
  var coordSys = seriesModel.coordinateSystem;
  if (seriesModel.getTooltipPosition) {
    point = seriesModel.getTooltipPosition(dataIndex) || [];
  } else if (coordSys && coordSys.dataToPoint) {
    if (finder.isStacked) {
      var baseAxis = coordSys.getBaseAxis();
      var valueAxis = coordSys.getOtherAxis(baseAxis);
      var valueAxisDim = valueAxis.dim;
      var baseAxisDim = baseAxis.dim;
      var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;
      var baseDim = data.mapDimension(baseAxisDim);
      var stackedData = [];
      stackedData[baseDataOffset] = data.get(baseDim, dataIndex);
      stackedData[1 - baseDataOffset] = data.get(data.getCalculationInfo('stackResultDimension'), dataIndex);
      point = coordSys.dataToPoint(stackedData) || [];
    } else {
      point = coordSys.dataToPoint(data.getValues(util["map"](coordSys.dimensions, function (dim) {
        return data.mapDimension(dim);
      }), dataIndex)) || [];
    }
  } else if (el) {
    // Use graphic bounding rect
    var rect = el.getBoundingRect().clone();
    rect.applyTransform(el.transform);
    point = [rect.x + rect.width / 2, rect.y + rect.height / 2];
  }
  return {
    point: point,
    el: el
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/axisTrigger.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var axisTrigger_inner = makeInner();
/**
 * Basic logic: check all axis, if they do not demand show/highlight,
 * then hide/downplay them.
 *
 * @return content of event obj for echarts.connect.
 */
function axisTrigger(payload, ecModel, api) {
  var currTrigger = payload.currTrigger;
  var point = [payload.x, payload.y];
  var finder = payload;
  var dispatchAction = payload.dispatchAction || Object(util["bind"])(api.dispatchAction, api);
  var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;
  // Pending
  // See #6121. But we are not able to reproduce it yet.
  if (!coordSysAxesInfo) {
    return;
  }
  if (illegalPoint(point)) {
    // Used in the default behavior of `connection`: use the sample seriesIndex
    // and dataIndex. And also used in the tooltipView trigger.
    point = findPointFromSeries({
      seriesIndex: finder.seriesIndex,
      // Do not use dataIndexInside from other ec instance.
      // FIXME: auto detect it?
      dataIndex: finder.dataIndex
    }, ecModel).point;
  }
  var isIllegalPoint = illegalPoint(point);
  // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}).
  // Notice: In this case, it is difficult to get the `point` (which is necessary to show
  // tooltip, so if point is not given, we just use the point found by sample seriesIndex
  // and dataIndex.
  var inputAxesInfo = finder.axesInfo;
  var axesInfo = coordSysAxesInfo.axesInfo;
  var shouldHide = currTrigger === 'leave' || illegalPoint(point);
  var outputPayload = {};
  var showValueMap = {};
  var dataByCoordSys = {
    list: [],
    map: {}
  };
  var updaters = {
    showPointer: Object(util["curry"])(axisTrigger_showPointer, showValueMap),
    showTooltip: Object(util["curry"])(showTooltip, dataByCoordSys)
  };
  // Process for triggered axes.
  Object(util["each"])(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {
    // If a point given, it must be contained by the coordinate system.
    var coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point);
    Object(util["each"])(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {
      var axis = axisInfo.axis;
      var inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo);
      // If no inputAxesInfo, no axis is restricted.
      if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) {
        var val = inputAxisInfo && inputAxisInfo.value;
        if (val == null && !isIllegalPoint) {
          val = axis.pointToData(point);
        }
        val != null && processOnAxis(axisInfo, val, updaters, false, outputPayload);
      }
    });
  });
  // Process for linked axes.
  var linkTriggers = {};
  Object(util["each"])(axesInfo, function (tarAxisInfo, tarKey) {
    var linkGroup = tarAxisInfo.linkGroup;
    // If axis has been triggered in the previous stage, it should not be triggered by link.
    if (linkGroup && !showValueMap[tarKey]) {
      Object(util["each"])(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {
        var srcValItem = showValueMap[srcKey];
        // If srcValItem exist, source axis is triggered, so link to target axis.
        if (srcAxisInfo !== tarAxisInfo && srcValItem) {
          var val = srcValItem.value;
          linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo))));
          linkTriggers[tarAxisInfo.key] = val;
        }
      });
    }
  });
  Object(util["each"])(linkTriggers, function (val, tarKey) {
    processOnAxis(axesInfo[tarKey], val, updaters, true, outputPayload);
  });
  updateModelActually(showValueMap, axesInfo, outputPayload);
  dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction);
  dispatchHighDownActually(axesInfo, dispatchAction, api);
  return outputPayload;
}
function processOnAxis(axisInfo, newValue, updaters, noSnap, outputFinder) {
  var axis = axisInfo.axis;
  if (axis.scale.isBlank() || !axis.containData(newValue)) {
    return;
  }
  if (!axisInfo.involveSeries) {
    updaters.showPointer(axisInfo, newValue);
    return;
  }
  // Heavy calculation. So put it after axis.containData checking.
  var payloadInfo = buildPayloadsBySeries(newValue, axisInfo);
  var payloadBatch = payloadInfo.payloadBatch;
  var snapToValue = payloadInfo.snapToValue;
  // Fill content of event obj for echarts.connect.
  // By default use the first involved series data as a sample to connect.
  if (payloadBatch[0] && outputFinder.seriesIndex == null) {
    Object(util["extend"])(outputFinder, payloadBatch[0]);
  }
  // If no linkSource input, this process is for collecting link
  // target, where snap should not be accepted.
  if (!noSnap && axisInfo.snap) {
    if (axis.containData(snapToValue) && snapToValue != null) {
      newValue = snapToValue;
    }
  }
  updaters.showPointer(axisInfo, newValue, payloadBatch);
  // Tooltip should always be snapToValue, otherwise there will be
  // incorrect "axis value ~ series value" mapping displayed in tooltip.
  updaters.showTooltip(axisInfo, payloadInfo, snapToValue);
}
function buildPayloadsBySeries(value, axisInfo) {
  var axis = axisInfo.axis;
  var dim = axis.dim;
  var snapToValue = value;
  var payloadBatch = [];
  var minDist = Number.MAX_VALUE;
  var minDiff = -1;
  Object(util["each"])(axisInfo.seriesModels, function (series, idx) {
    var dataDim = series.getData().mapDimensionsAll(dim);
    var seriesNestestValue;
    var dataIndices;
    if (series.getAxisTooltipData) {
      var result = series.getAxisTooltipData(dataDim, value, axis);
      dataIndices = result.dataIndices;
      seriesNestestValue = result.nestestValue;
    } else {
      dataIndices = series.getData().indicesOfNearest(dataDim[0], value,
      // Add a threshold to avoid find the wrong dataIndex
      // when data length is not same.
      // false,
      axis.type === 'category' ? 0.5 : null);
      if (!dataIndices.length) {
        return;
      }
      seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]);
    }
    if (seriesNestestValue == null || !isFinite(seriesNestestValue)) {
      return;
    }
    var diff = value - seriesNestestValue;
    var dist = Math.abs(diff);
    // Consider category case
    if (dist <= minDist) {
      if (dist < minDist || diff >= 0 && minDiff < 0) {
        minDist = dist;
        minDiff = diff;
        snapToValue = seriesNestestValue;
        payloadBatch.length = 0;
      }
      Object(util["each"])(dataIndices, function (dataIndex) {
        payloadBatch.push({
          seriesIndex: series.seriesIndex,
          dataIndexInside: dataIndex,
          dataIndex: series.getData().getRawIndex(dataIndex)
        });
      });
    }
  });
  return {
    payloadBatch: payloadBatch,
    snapToValue: snapToValue
  };
}
function axisTrigger_showPointer(showValueMap, axisInfo, value, payloadBatch) {
  showValueMap[axisInfo.key] = {
    value: value,
    payloadBatch: payloadBatch
  };
}
function showTooltip(dataByCoordSys, axisInfo, payloadInfo, value) {
  var payloadBatch = payloadInfo.payloadBatch;
  var axis = axisInfo.axis;
  var axisModel = axis.model;
  var axisPointerModel = axisInfo.axisPointerModel;
  // If no data, do not create anything in dataByCoordSys,
  // whose length will be used to judge whether dispatch action.
  if (!axisInfo.triggerTooltip || !payloadBatch.length) {
    return;
  }
  var coordSysModel = axisInfo.coordSys.model;
  var coordSysKey = makeKey(coordSysModel);
  var coordSysItem = dataByCoordSys.map[coordSysKey];
  if (!coordSysItem) {
    coordSysItem = dataByCoordSys.map[coordSysKey] = {
      coordSysId: coordSysModel.id,
      coordSysIndex: coordSysModel.componentIndex,
      coordSysType: coordSysModel.type,
      coordSysMainType: coordSysModel.mainType,
      dataByAxis: []
    };
    dataByCoordSys.list.push(coordSysItem);
  }
  coordSysItem.dataByAxis.push({
    axisDim: axis.dim,
    axisIndex: axisModel.componentIndex,
    axisType: axisModel.type,
    axisId: axisModel.id,
    value: value,
    // Caustion: viewHelper.getValueLabel is actually on "view stage", which
    // depends that all models have been updated. So it should not be performed
    // here. Considering axisPointerModel used here is volatile, which is hard
    // to be retrieve in TooltipView, we prepare parameters here.
    valueLabelOpt: {
      precision: axisPointerModel.get(['label', 'precision']),
      formatter: axisPointerModel.get(['label', 'formatter'])
    },
    seriesDataIndices: payloadBatch.slice()
  });
}
function updateModelActually(showValueMap, axesInfo, outputPayload) {
  var outputAxesInfo = outputPayload.axesInfo = [];
  // Basic logic: If no 'show' required, 'hide' this axisPointer.
  Object(util["each"])(axesInfo, function (axisInfo, key) {
    var option = axisInfo.axisPointerModel.option;
    var valItem = showValueMap[key];
    if (valItem) {
      !axisInfo.useHandle && (option.status = 'show');
      option.value = valItem.value;
      // For label formatter param and highlight.
      option.seriesDataIndices = (valItem.payloadBatch || []).slice();
    }
    // When always show (e.g., handle used), remain
    // original value and status.
    else {
      // If hide, value still need to be set, consider
      // click legend to toggle axis blank.
      !axisInfo.useHandle && (option.status = 'hide');
    }
    // If status is 'hide', should be no info in payload.
    option.status === 'show' && outputAxesInfo.push({
      axisDim: axisInfo.axis.dim,
      axisIndex: axisInfo.axis.model.componentIndex,
      value: option.value
    });
  });
}
function dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction) {
  // Basic logic: If no showTip required, hideTip will be dispatched.
  if (illegalPoint(point) || !dataByCoordSys.list.length) {
    dispatchAction({
      type: 'hideTip'
    });
    return;
  }
  // In most case only one axis (or event one series is used). It is
  // convenient to fetch payload.seriesIndex and payload.dataIndex
  // directly. So put the first seriesIndex and dataIndex of the first
  // axis on the payload.
  var sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};
  dispatchAction({
    type: 'showTip',
    escapeConnect: true,
    x: point[0],
    y: point[1],
    tooltipOption: payload.tooltipOption,
    position: payload.position,
    dataIndexInside: sampleItem.dataIndexInside,
    dataIndex: sampleItem.dataIndex,
    seriesIndex: sampleItem.seriesIndex,
    dataByCoordSys: dataByCoordSys.list
  });
}
function dispatchHighDownActually(axesInfo, dispatchAction, api) {
  // FIXME
  // highlight status modification should be a stage of main process?
  // (Consider confilct (e.g., legend and axisPointer) and setOption)
  var zr = api.getZr();
  var highDownKey = 'axisPointerLastHighlights';
  var lastHighlights = axisTrigger_inner(zr)[highDownKey] || {};
  var newHighlights = axisTrigger_inner(zr)[highDownKey] = {};
  // Update highlight/downplay status according to axisPointer model.
  // Build hash map and remove duplicate incidentally.
  Object(util["each"])(axesInfo, function (axisInfo, key) {
    var option = axisInfo.axisPointerModel.option;
    option.status === 'show' && axisInfo.triggerEmphasis && Object(util["each"])(option.seriesDataIndices, function (batchItem) {
      var key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex;
      newHighlights[key] = batchItem;
    });
  });
  // Diff.
  var toHighlight = [];
  var toDownplay = [];
  Object(util["each"])(lastHighlights, function (batchItem, key) {
    !newHighlights[key] && toDownplay.push(batchItem);
  });
  Object(util["each"])(newHighlights, function (batchItem, key) {
    !lastHighlights[key] && toHighlight.push(batchItem);
  });
  toDownplay.length && api.dispatchAction({
    type: 'downplay',
    escapeConnect: true,
    // Not blur others when highlight in axisPointer.
    notBlur: true,
    batch: toDownplay
  });
  toHighlight.length && api.dispatchAction({
    type: 'highlight',
    escapeConnect: true,
    // Not blur others when highlight in axisPointer.
    notBlur: true,
    batch: toHighlight
  });
}
function findInputAxisInfo(inputAxesInfo, axisInfo) {
  for (var i = 0; i < (inputAxesInfo || []).length; i++) {
    var inputAxisInfo = inputAxesInfo[i];
    if (axisInfo.axis.dim === inputAxisInfo.axisDim && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex) {
      return inputAxisInfo;
    }
  }
}
function makeMapperParam(axisInfo) {
  var axisModel = axisInfo.axis.model;
  var item = {};
  var dim = item.axisDim = axisInfo.axis.dim;
  item.axisIndex = item[dim + 'AxisIndex'] = axisModel.componentIndex;
  item.axisName = item[dim + 'AxisName'] = axisModel.name;
  item.axisId = item[dim + 'AxisId'] = axisModel.id;
  return item;
}
function illegalPoint(point) {
  return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







function axisPointer_install_install(registers) {
  // CartesianAxisPointer is not supposed to be required here. But consider
  // echarts.simple.js and online build tooltip, which only require gridSimple,
  // CartesianAxisPointer should be able to required somewhere.
  axis_AxisView.registerAxisPointerClass('CartesianAxisPointer', axisPointer_CartesianAxisPointer);
  registers.registerComponentModel(axisPointer_AxisPointerModel);
  registers.registerComponentView(axisPointer_AxisPointerView);
  registers.registerPreprocessor(function (option) {
    // Always has a global axisPointerModel for default setting.
    if (option) {
      (!option.axisPointer || option.axisPointer.length === 0) && (option.axisPointer = {});
      var link = option.axisPointer.link;
      // Normalize to array to avoid object mergin. But if link
      // is not set, remain null/undefined, otherwise it will
      // override existent link setting.
      if (link && !Object(util["isArray"])(link)) {
        option.axisPointer.link = [link];
      }
    }
  });
  // This process should proformed after coordinate systems created
  // and series data processed. So put it on statistic processing stage.
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) {
    // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.
    // allAxesInfo should be updated when setOption performed.
    ecModel.getComponent('axisPointer').coordSysAxesInfo = collect(ecModel, api);
  });
  // Broadcast to all views.
  registers.registerAction({
    type: 'updateAxisPointer',
    event: 'updateAxisPointer',
    update: ':updateAxisPointer'
  }, axisTrigger);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/grid/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function grid_install_install(registers) {
  use(installSimple_install);
  use(axisPointer_install_install);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var PolarAxisPointer_PolarAxisPointer = /** @class */function (_super) {
  __extends(PolarAxisPointer, _super);
  function PolarAxisPointer() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  /**
   * @override
   */
  PolarAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {
    var axis = axisModel.axis;
    if (axis.dim === 'angle') {
      this.animationThreshold = Math.PI / 18;
    }
    var polar = axis.polar;
    var otherAxis = polar.getOtherAxis(axis);
    var otherExtent = otherAxis.getExtent();
    var coordValue = axis.dataToCoord(value);
    var axisPointerType = axisPointerModel.get('type');
    if (axisPointerType && axisPointerType !== 'none') {
      var elStyle = buildElStyle(axisPointerModel);
      var pointerOption = PolarAxisPointer_pointerShapeBuilder[axisPointerType](axis, polar, coordValue, otherExtent);
      pointerOption.style = elStyle;
      elOption.graphicKey = pointerOption.type;
      elOption.pointer = pointerOption;
    }
    var labelMargin = axisPointerModel.get(['label', 'margin']);
    var labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin);
    buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos);
  };
  return PolarAxisPointer;
}(axisPointer_BaseAxisPointer);
;
function getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin) {
  var axis = axisModel.axis;
  var coord = axis.dataToCoord(value);
  var axisAngle = polar.getAngleAxis().getExtent()[0];
  axisAngle = axisAngle / 180 * Math.PI;
  var radiusExtent = polar.getRadiusAxis().getExtent();
  var position;
  var align;
  var verticalAlign;
  if (axis.dim === 'radius') {
    var transform = matrix_create();
    matrix_rotate(transform, transform, axisAngle);
    matrix_translate(transform, transform, [polar.cx, polar.cy]);
    position = graphic_applyTransform([coord, -labelMargin], transform);
    var labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0;
    // @ts-ignore
    var labelLayout = axis_AxisBuilder.innerTextLayout(axisAngle, labelRotation * Math.PI / 180, -1);
    align = labelLayout.textAlign;
    verticalAlign = labelLayout.textVerticalAlign;
  } else {
    // angle axis
    var r = radiusExtent[1];
    position = polar.coordToPoint([r + labelMargin, coord]);
    var cx = polar.cx;
    var cy = polar.cy;
    align = Math.abs(position[0] - cx) / r < 0.3 ? 'center' : position[0] > cx ? 'left' : 'right';
    verticalAlign = Math.abs(position[1] - cy) / r < 0.3 ? 'middle' : position[1] > cy ? 'top' : 'bottom';
  }
  return {
    position: position,
    align: align,
    verticalAlign: verticalAlign
  };
}
var PolarAxisPointer_pointerShapeBuilder = {
  line: function (axis, polar, coordValue, otherExtent) {
    return axis.dim === 'angle' ? {
      type: 'Line',
      shape: makeLineShape(polar.coordToPoint([otherExtent[0], coordValue]), polar.coordToPoint([otherExtent[1], coordValue]))
    } : {
      type: 'Circle',
      shape: {
        cx: polar.cx,
        cy: polar.cy,
        r: coordValue
      }
    };
  },
  shadow: function (axis, polar, coordValue, otherExtent) {
    var bandWidth = Math.max(1, axis.getBandWidth());
    var radian = Math.PI / 180;
    return axis.dim === 'angle' ? {
      type: 'Sector',
      shape: makeSectorShape(polar.cx, polar.cy, otherExtent[0], otherExtent[1],
      // In ECharts y is negative if angle is positive
      (-coordValue - bandWidth / 2) * radian, (-coordValue + bandWidth / 2) * radian)
    } : {
      type: 'Sector',
      shape: makeSectorShape(polar.cx, polar.cy, coordValue - bandWidth / 2, coordValue + bandWidth / 2, 0, Math.PI * 2)
    };
  }
};
/* harmony default export */ var axisPointer_PolarAxisPointer = (PolarAxisPointer_PolarAxisPointer);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/PolarModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var PolarModel_PolarModel = /** @class */function (_super) {
  __extends(PolarModel, _super);
  function PolarModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = PolarModel.type;
    return _this;
  }
  PolarModel.prototype.findAxisModel = function (axisType) {
    var foundAxisModel;
    var ecModel = this.ecModel;
    ecModel.eachComponent(axisType, function (axisModel) {
      if (axisModel.getCoordSysModel() === this) {
        foundAxisModel = axisModel;
      }
    }, this);
    return foundAxisModel;
  };
  PolarModel.type = 'polar';
  PolarModel.dependencies = ['radiusAxis', 'angleAxis'];
  PolarModel.defaultOption = {
    // zlevel: 0,
    z: 0,
    center: ['50%', '50%'],
    radius: '80%'
  };
  return PolarModel;
}(Component);
/* harmony default export */ var polar_PolarModel = (PolarModel_PolarModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/AxisModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var AxisModel_PolarAxisModel = /** @class */function (_super) {
  __extends(PolarAxisModel, _super);
  function PolarAxisModel() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  PolarAxisModel.prototype.getCoordSysModel = function () {
    return this.getReferringComponents('polar', SINGLE_REFERRING).models[0];
  };
  PolarAxisModel.type = 'polarAxis';
  return PolarAxisModel;
}(Component);
util["mixin"](AxisModel_PolarAxisModel, AxisModelCommonMixin);

var AxisModel_AngleAxisModel = /** @class */function (_super) {
  __extends(AngleAxisModel, _super);
  function AngleAxisModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = AngleAxisModel.type;
    return _this;
  }
  AngleAxisModel.type = 'angleAxis';
  return AngleAxisModel;
}(AxisModel_PolarAxisModel);

var AxisModel_RadiusAxisModel = /** @class */function (_super) {
  __extends(RadiusAxisModel, _super);
  function RadiusAxisModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = RadiusAxisModel.type;
    return _this;
  }
  RadiusAxisModel.type = 'radiusAxis';
  return RadiusAxisModel;
}(AxisModel_PolarAxisModel);

// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/RadiusAxis.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var RadiusAxis_RadiusAxis = /** @class */function (_super) {
  __extends(RadiusAxis, _super);
  function RadiusAxis(scale, radiusExtent) {
    return _super.call(this, 'radius', scale, radiusExtent) || this;
  }
  RadiusAxis.prototype.pointToData = function (point, clamp) {
    return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];
  };
  return RadiusAxis;
}(coord_Axis);
RadiusAxis_RadiusAxis.prototype.dataToRadius = coord_Axis.prototype.dataToCoord;
RadiusAxis_RadiusAxis.prototype.radiusToData = coord_Axis.prototype.coordToData;
/* harmony default export */ var polar_RadiusAxis = (RadiusAxis_RadiusAxis);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/AngleAxis.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var AngleAxis_inner = makeInner();
var AngleAxis_AngleAxis = /** @class */function (_super) {
  __extends(AngleAxis, _super);
  function AngleAxis(scale, angleExtent) {
    return _super.call(this, 'angle', scale, angleExtent || [0, 360]) || this;
  }
  AngleAxis.prototype.pointToData = function (point, clamp) {
    return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];
  };
  /**
   * Only be called in category axis.
   * Angle axis uses text height to decide interval
   *
   * @override
   * @return {number} Auto interval for cateogry axis tick and label
   */
  AngleAxis.prototype.calculateCategoryInterval = function () {
    var axis = this;
    var labelModel = axis.getLabelModel();
    var ordinalScale = axis.scale;
    var ordinalExtent = ordinalScale.getExtent();
    // Providing this method is for optimization:
    // avoid generating a long array by `getTicks`
    // in large category data case.
    var tickCount = ordinalScale.count();
    if (ordinalExtent[1] - ordinalExtent[0] < 1) {
      return 0;
    }
    var tickValue = ordinalExtent[0];
    var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);
    var unitH = Math.abs(unitSpan);
    // Not precise, just use height as text width
    // and each distance from axis line yet.
    var rect = getBoundingRect(tickValue == null ? '' : tickValue + '', labelModel.getFont(), 'center', 'top');
    var maxH = Math.max(rect.height, 7);
    var dh = maxH / unitH;
    // 0/0 is NaN, 1/0 is Infinity.
    isNaN(dh) && (dh = Infinity);
    var interval = Math.max(0, Math.floor(dh));
    var cache = AngleAxis_inner(axis.model);
    var lastAutoInterval = cache.lastAutoInterval;
    var lastTickCount = cache.lastTickCount;
    // Use cache to keep interval stable while moving zoom window,
    // otherwise the calculated interval might jitter when the zoom
    // window size is close to the interval-changing size.
    if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1
    // Always choose the bigger one, otherwise the critical
    // point is not the same when zooming in or zooming out.
    && lastAutoInterval > interval) {
      interval = lastAutoInterval;
    }
    // Only update cache if cache not used, otherwise the
    // changing of interval is too insensitive.
    else {
      cache.lastTickCount = tickCount;
      cache.lastAutoInterval = interval;
    }
    return interval;
  };
  return AngleAxis;
}(coord_Axis);
AngleAxis_AngleAxis.prototype.dataToAngle = coord_Axis.prototype.dataToCoord;
AngleAxis_AngleAxis.prototype.angleToData = coord_Axis.prototype.coordToData;
/* harmony default export */ var polar_AngleAxis = (AngleAxis_AngleAxis);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/Polar.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var polarDimensions = ['radius', 'angle'];
var Polar_Polar = /** @class */function () {
  function Polar(name) {
    this.dimensions = polarDimensions;
    this.type = 'polar';
    /**
     * x of polar center
     */
    this.cx = 0;
    /**
     * y of polar center
     */
    this.cy = 0;
    this._radiusAxis = new polar_RadiusAxis();
    this._angleAxis = new polar_AngleAxis();
    this.axisPointerEnabled = true;
    this.name = name || '';
    this._radiusAxis.polar = this._angleAxis.polar = this;
  }
  /**
   * If contain coord
   */
  Polar.prototype.containPoint = function (point) {
    var coord = this.pointToCoord(point);
    return this._radiusAxis.contain(coord[0]) && this._angleAxis.contain(coord[1]);
  };
  /**
   * If contain data
   */
  Polar.prototype.containData = function (data) {
    return this._radiusAxis.containData(data[0]) && this._angleAxis.containData(data[1]);
  };
  Polar.prototype.getAxis = function (dim) {
    var key = '_' + dim + 'Axis';
    return this[key];
  };
  Polar.prototype.getAxes = function () {
    return [this._radiusAxis, this._angleAxis];
  };
  /**
   * Get axes by type of scale
   */
  Polar.prototype.getAxesByScale = function (scaleType) {
    var axes = [];
    var angleAxis = this._angleAxis;
    var radiusAxis = this._radiusAxis;
    angleAxis.scale.type === scaleType && axes.push(angleAxis);
    radiusAxis.scale.type === scaleType && axes.push(radiusAxis);
    return axes;
  };
  Polar.prototype.getAngleAxis = function () {
    return this._angleAxis;
  };
  Polar.prototype.getRadiusAxis = function () {
    return this._radiusAxis;
  };
  Polar.prototype.getOtherAxis = function (axis) {
    var angleAxis = this._angleAxis;
    return axis === angleAxis ? this._radiusAxis : angleAxis;
  };
  /**
   * Base axis will be used on stacking.
   *
   */
  Polar.prototype.getBaseAxis = function () {
    return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAngleAxis();
  };
  Polar.prototype.getTooltipAxes = function (dim) {
    var baseAxis = dim != null && dim !== 'auto' ? this.getAxis(dim) : this.getBaseAxis();
    return {
      baseAxes: [baseAxis],
      otherAxes: [this.getOtherAxis(baseAxis)]
    };
  };
  /**
   * Convert a single data item to (x, y) point.
   * Parameter data is an array which the first element is radius and the second is angle
   */
  Polar.prototype.dataToPoint = function (data, clamp) {
    return this.coordToPoint([this._radiusAxis.dataToRadius(data[0], clamp), this._angleAxis.dataToAngle(data[1], clamp)]);
  };
  /**
   * Convert a (x, y) point to data
   */
  Polar.prototype.pointToData = function (point, clamp) {
    var coord = this.pointToCoord(point);
    return [this._radiusAxis.radiusToData(coord[0], clamp), this._angleAxis.angleToData(coord[1], clamp)];
  };
  /**
   * Convert a (x, y) point to (radius, angle) coord
   */
  Polar.prototype.pointToCoord = function (point) {
    var dx = point[0] - this.cx;
    var dy = point[1] - this.cy;
    var angleAxis = this.getAngleAxis();
    var extent = angleAxis.getExtent();
    var minAngle = Math.min(extent[0], extent[1]);
    var maxAngle = Math.max(extent[0], extent[1]);
    // Fix fixed extent in polarCreator
    // FIXME
    angleAxis.inverse ? minAngle = maxAngle - 360 : maxAngle = minAngle + 360;
    var radius = Math.sqrt(dx * dx + dy * dy);
    dx /= radius;
    dy /= radius;
    var radian = Math.atan2(-dy, dx) / Math.PI * 180;
    // move to angleExtent
    var dir = radian < minAngle ? 1 : -1;
    while (radian < minAngle || radian > maxAngle) {
      radian += dir * 360;
    }
    return [radius, radian];
  };
  /**
   * Convert a (radius, angle) coord to (x, y) point
   */
  Polar.prototype.coordToPoint = function (coord) {
    var radius = coord[0];
    var radian = coord[1] / 180 * Math.PI;
    var x = Math.cos(radian) * radius + this.cx;
    // Inverse the y
    var y = -Math.sin(radian) * radius + this.cy;
    return [x, y];
  };
  /**
   * Get ring area of cartesian.
   * Area will have a contain function to determine if a point is in the coordinate system.
   */
  Polar.prototype.getArea = function () {
    var angleAxis = this.getAngleAxis();
    var radiusAxis = this.getRadiusAxis();
    var radiusExtent = radiusAxis.getExtent().slice();
    radiusExtent[0] > radiusExtent[1] && radiusExtent.reverse();
    var angleExtent = angleAxis.getExtent();
    var RADIAN = Math.PI / 180;
    var EPSILON = 1e-4;
    return {
      cx: this.cx,
      cy: this.cy,
      r0: radiusExtent[0],
      r: radiusExtent[1],
      startAngle: -angleExtent[0] * RADIAN,
      endAngle: -angleExtent[1] * RADIAN,
      clockwise: angleAxis.inverse,
      contain: function (x, y) {
        // It's a ring shape.
        // Start angle and end angle don't matter
        var dx = x - this.cx;
        var dy = y - this.cy;
        var d2 = dx * dx + dy * dy;
        var r = this.r;
        var r0 = this.r0;
        // minus a tiny value 1e-4 in double side to avoid being clipped unexpectedly
        // r == r0 contain nothing
        return r !== r0 && d2 - EPSILON <= r * r && d2 + EPSILON >= r0 * r0;
      }
    };
  };
  Polar.prototype.convertToPixel = function (ecModel, finder, value) {
    var coordSys = Polar_getCoordSys(finder);
    return coordSys === this ? this.dataToPoint(value) : null;
  };
  Polar.prototype.convertFromPixel = function (ecModel, finder, pixel) {
    var coordSys = Polar_getCoordSys(finder);
    return coordSys === this ? this.pointToData(pixel) : null;
  };
  return Polar;
}();
function Polar_getCoordSys(finder) {
  var seriesModel = finder.seriesModel;
  var polarModel = finder.polarModel;
  return polarModel && polarModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem;
}
/* harmony default export */ var polar_Polar = (Polar_Polar);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/polarCreator.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO Axis scale





/**
 * Resize method bound to the polar
 */
function resizePolar(polar, polarModel, api) {
  var center = polarModel.get('center');
  var width = api.getWidth();
  var height = api.getHeight();
  polar.cx = number_parsePercent(center[0], width);
  polar.cy = number_parsePercent(center[1], height);
  var radiusAxis = polar.getRadiusAxis();
  var size = Math.min(width, height) / 2;
  var radius = polarModel.get('radius');
  if (radius == null) {
    radius = [0, '100%'];
  } else if (!util["isArray"](radius)) {
    // r0 = 0
    radius = [0, radius];
  }
  var parsedRadius = [number_parsePercent(radius[0], size), number_parsePercent(radius[1], size)];
  radiusAxis.inverse ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0]) : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]);
}
/**
 * Update polar
 */
function updatePolarScale(ecModel, api) {
  var polar = this;
  var angleAxis = polar.getAngleAxis();
  var radiusAxis = polar.getRadiusAxis();
  // Reset scale
  angleAxis.scale.setExtent(Infinity, -Infinity);
  radiusAxis.scale.setExtent(Infinity, -Infinity);
  ecModel.eachSeries(function (seriesModel) {
    if (seriesModel.coordinateSystem === polar) {
      var data_1 = seriesModel.getData();
      util["each"](getDataDimensionsOnAxis(data_1, 'radius'), function (dim) {
        radiusAxis.scale.unionExtentFromData(data_1, dim);
      });
      util["each"](getDataDimensionsOnAxis(data_1, 'angle'), function (dim) {
        angleAxis.scale.unionExtentFromData(data_1, dim);
      });
    }
  });
  niceScaleExtent(angleAxis.scale, angleAxis.model);
  niceScaleExtent(radiusAxis.scale, radiusAxis.model);
  // Fix extent of category angle axis
  if (angleAxis.type === 'category' && !angleAxis.onBand) {
    var extent = angleAxis.getExtent();
    var diff = 360 / angleAxis.scale.count();
    angleAxis.inverse ? extent[1] += diff : extent[1] -= diff;
    angleAxis.setExtent(extent[0], extent[1]);
  }
}
function isAngleAxisModel(axisModel) {
  return axisModel.mainType === 'angleAxis';
}
/**
 * Set common axis properties
 */
function setAxis(axis, axisModel) {
  var _a;
  axis.type = axisModel.get('type');
  axis.scale = createScaleByModel(axisModel);
  axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';
  axis.inverse = axisModel.get('inverse');
  if (isAngleAxisModel(axisModel)) {
    axis.inverse = axis.inverse !== axisModel.get('clockwise');
    var startAngle = axisModel.get('startAngle');
    var endAngle = (_a = axisModel.get('endAngle')) !== null && _a !== void 0 ? _a : startAngle + (axis.inverse ? -360 : 360);
    axis.setExtent(startAngle, endAngle);
  }
  // Inject axis instance
  axisModel.axis = axis;
  axis.model = axisModel;
}
var polarCreator = {
  dimensions: polarDimensions,
  create: function (ecModel, api) {
    var polarList = [];
    ecModel.eachComponent('polar', function (polarModel, idx) {
      var polar = new polar_Polar(idx + '');
      // Inject resize and update method
      polar.update = updatePolarScale;
      var radiusAxis = polar.getRadiusAxis();
      var angleAxis = polar.getAngleAxis();
      var radiusAxisModel = polarModel.findAxisModel('radiusAxis');
      var angleAxisModel = polarModel.findAxisModel('angleAxis');
      setAxis(radiusAxis, radiusAxisModel);
      setAxis(angleAxis, angleAxisModel);
      resizePolar(polar, polarModel, api);
      polarList.push(polar);
      polarModel.coordinateSystem = polar;
      polar.model = polarModel;
    });
    // Inject coordinateSystem to series
    ecModel.eachSeries(function (seriesModel) {
      if (seriesModel.get('coordinateSystem') === 'polar') {
        var polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0];
        if (false) {}
        seriesModel.coordinateSystem = polarModel.coordinateSystem;
      }
    });
    return polarList;
  }
};
/* harmony default export */ var polar_polarCreator = (polarCreator);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/AngleAxisView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var AngleAxisView_elementList = ['axisLine', 'axisLabel', 'axisTick', 'minorTick', 'splitLine', 'minorSplitLine', 'splitArea'];
function getAxisLineShape(polar, rExtent, angle) {
  rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse());
  var start = polar.coordToPoint([rExtent[0], angle]);
  var end = polar.coordToPoint([rExtent[1], angle]);
  return {
    x1: start[0],
    y1: start[1],
    x2: end[0],
    y2: end[1]
  };
}
function getRadiusIdx(polar) {
  var radiusAxis = polar.getRadiusAxis();
  return radiusAxis.inverse ? 0 : 1;
}
// Remove the last tick which will overlap the first tick
function fixAngleOverlap(list) {
  var firstItem = list[0];
  var lastItem = list[list.length - 1];
  if (firstItem && lastItem && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4) {
    list.pop();
  }
}
var AngleAxisView_AngleAxisView = /** @class */function (_super) {
  __extends(AngleAxisView, _super);
  function AngleAxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = AngleAxisView.type;
    _this.axisPointerClass = 'PolarAxisPointer';
    return _this;
  }
  AngleAxisView.prototype.render = function (angleAxisModel, ecModel) {
    this.group.removeAll();
    if (!angleAxisModel.get('show')) {
      return;
    }
    var angleAxis = angleAxisModel.axis;
    var polar = angleAxis.polar;
    var radiusExtent = polar.getRadiusAxis().getExtent();
    var ticksAngles = angleAxis.getTicksCoords();
    var minorTickAngles = angleAxis.getMinorTicksCoords();
    var labels = util["map"](angleAxis.getViewLabels(), function (labelItem) {
      labelItem = util["clone"](labelItem);
      var scale = angleAxis.scale;
      var tickValue = scale.type === 'ordinal' ? scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue;
      labelItem.coord = angleAxis.dataToCoord(tickValue);
      return labelItem;
    });
    fixAngleOverlap(labels);
    fixAngleOverlap(ticksAngles);
    util["each"](AngleAxisView_elementList, function (name) {
      if (angleAxisModel.get([name, 'show']) && (!angleAxis.scale.isBlank() || name === 'axisLine')) {
        angelAxisElementsBuilders[name](this.group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels);
      }
    }, this);
  };
  AngleAxisView.type = 'angleAxis';
  return AngleAxisView;
}(axis_AxisView);
var angelAxisElementsBuilders = {
  axisLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {
    var lineStyleModel = angleAxisModel.getModel(['axisLine', 'lineStyle']);
    var angleAxis = polar.getAngleAxis();
    var RADIAN = Math.PI / 180;
    var angleExtent = angleAxis.getExtent();
    // extent id of the axis radius (r0 and r)
    var rId = getRadiusIdx(polar);
    var r0Id = rId ? 0 : 1;
    var shape;
    var shapeType = Math.abs(angleExtent[1] - angleExtent[0]) === 360 ? 'Circle' : 'Arc';
    if (radiusExtent[r0Id] === 0) {
      shape = new graphic_namespaceObject[shapeType]({
        shape: {
          cx: polar.cx,
          cy: polar.cy,
          r: radiusExtent[rId],
          startAngle: -angleExtent[0] * RADIAN,
          endAngle: -angleExtent[1] * RADIAN,
          clockwise: angleAxis.inverse
        },
        style: lineStyleModel.getLineStyle(),
        z2: 1,
        silent: true
      });
    } else {
      shape = new shape_Ring({
        shape: {
          cx: polar.cx,
          cy: polar.cy,
          r: radiusExtent[rId],
          r0: radiusExtent[r0Id]
        },
        style: lineStyleModel.getLineStyle(),
        z2: 1,
        silent: true
      });
    }
    shape.style.fill = null;
    group.add(shape);
  },
  axisTick: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {
    var tickModel = angleAxisModel.getModel('axisTick');
    var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');
    var radius = radiusExtent[getRadiusIdx(polar)];
    var lines = util["map"](ticksAngles, function (tickAngleItem) {
      return new shape_Line({
        shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord)
      });
    });
    group.add(graphic_mergePath(lines, {
      style: util["defaults"](tickModel.getModel('lineStyle').getLineStyle(), {
        stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])
      })
    }));
  },
  minorTick: function (group, angleAxisModel, polar, tickAngles, minorTickAngles, radiusExtent) {
    if (!minorTickAngles.length) {
      return;
    }
    var tickModel = angleAxisModel.getModel('axisTick');
    var minorTickModel = angleAxisModel.getModel('minorTick');
    var tickLen = (tickModel.get('inside') ? -1 : 1) * minorTickModel.get('length');
    var radius = radiusExtent[getRadiusIdx(polar)];
    var lines = [];
    for (var i = 0; i < minorTickAngles.length; i++) {
      for (var k = 0; k < minorTickAngles[i].length; k++) {
        lines.push(new shape_Line({
          shape: getAxisLineShape(polar, [radius, radius + tickLen], minorTickAngles[i][k].coord)
        }));
      }
    }
    group.add(graphic_mergePath(lines, {
      style: util["defaults"](minorTickModel.getModel('lineStyle').getLineStyle(), util["defaults"](tickModel.getLineStyle(), {
        stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])
      }))
    }));
  },
  axisLabel: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels) {
    var rawCategoryData = angleAxisModel.getCategories(true);
    var commonLabelModel = angleAxisModel.getModel('axisLabel');
    var labelMargin = commonLabelModel.get('margin');
    var triggerEvent = angleAxisModel.get('triggerEvent');
    // Use length of ticksAngles because it may remove the last tick to avoid overlapping
    util["each"](labels, function (labelItem, idx) {
      var labelModel = commonLabelModel;
      var tickValue = labelItem.tickValue;
      var r = radiusExtent[getRadiusIdx(polar)];
      var p = polar.coordToPoint([r + labelMargin, labelItem.coord]);
      var cx = polar.cx;
      var cy = polar.cy;
      var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3 ? 'center' : p[0] > cx ? 'left' : 'right';
      var labelTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3 ? 'middle' : p[1] > cy ? 'top' : 'bottom';
      if (rawCategoryData && rawCategoryData[tickValue]) {
        var rawCategoryItem = rawCategoryData[tickValue];
        if (util["isObject"](rawCategoryItem) && rawCategoryItem.textStyle) {
          labelModel = new model_Model(rawCategoryItem.textStyle, commonLabelModel, commonLabelModel.ecModel);
        }
      }
      var textEl = new Text({
        silent: axis_AxisBuilder.isLabelSilent(angleAxisModel),
        style: createTextStyle(labelModel, {
          x: p[0],
          y: p[1],
          fill: labelModel.getTextColor() || angleAxisModel.get(['axisLine', 'lineStyle', 'color']),
          text: labelItem.formattedLabel,
          align: labelTextAlign,
          verticalAlign: labelTextVerticalAlign
        })
      });
      group.add(textEl);
      // Pack data for mouse event
      if (triggerEvent) {
        var eventData = axis_AxisBuilder.makeAxisEventDataBase(angleAxisModel);
        eventData.targetType = 'axisLabel';
        eventData.value = labelItem.rawLabel;
        getECData(textEl).eventData = eventData;
      }
    }, this);
  },
  splitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {
    var splitLineModel = angleAxisModel.getModel('splitLine');
    var lineStyleModel = splitLineModel.getModel('lineStyle');
    var lineColors = lineStyleModel.get('color');
    var lineCount = 0;
    lineColors = lineColors instanceof Array ? lineColors : [lineColors];
    var splitLines = [];
    for (var i = 0; i < ticksAngles.length; i++) {
      var colorIndex = lineCount++ % lineColors.length;
      splitLines[colorIndex] = splitLines[colorIndex] || [];
      splitLines[colorIndex].push(new shape_Line({
        shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord)
      }));
    }
    // Simple optimization
    // Batching the lines if color are the same
    for (var i = 0; i < splitLines.length; i++) {
      group.add(graphic_mergePath(splitLines[i], {
        style: util["defaults"]({
          stroke: lineColors[i % lineColors.length]
        }, lineStyleModel.getLineStyle()),
        silent: true,
        z: angleAxisModel.get('z')
      }));
    }
  },
  minorSplitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {
    if (!minorTickAngles.length) {
      return;
    }
    var minorSplitLineModel = angleAxisModel.getModel('minorSplitLine');
    var lineStyleModel = minorSplitLineModel.getModel('lineStyle');
    var lines = [];
    for (var i = 0; i < minorTickAngles.length; i++) {
      for (var k = 0; k < minorTickAngles[i].length; k++) {
        lines.push(new shape_Line({
          shape: getAxisLineShape(polar, radiusExtent, minorTickAngles[i][k].coord)
        }));
      }
    }
    group.add(graphic_mergePath(lines, {
      style: lineStyleModel.getLineStyle(),
      silent: true,
      z: angleAxisModel.get('z')
    }));
  },
  splitArea: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {
    if (!ticksAngles.length) {
      return;
    }
    var splitAreaModel = angleAxisModel.getModel('splitArea');
    var areaStyleModel = splitAreaModel.getModel('areaStyle');
    var areaColors = areaStyleModel.get('color');
    var lineCount = 0;
    areaColors = areaColors instanceof Array ? areaColors : [areaColors];
    var splitAreas = [];
    var RADIAN = Math.PI / 180;
    var prevAngle = -ticksAngles[0].coord * RADIAN;
    var r0 = Math.min(radiusExtent[0], radiusExtent[1]);
    var r1 = Math.max(radiusExtent[0], radiusExtent[1]);
    var clockwise = angleAxisModel.get('clockwise');
    for (var i = 1, len = ticksAngles.length; i <= len; i++) {
      var coord = i === len ? ticksAngles[0].coord : ticksAngles[i].coord;
      var colorIndex = lineCount++ % areaColors.length;
      splitAreas[colorIndex] = splitAreas[colorIndex] || [];
      splitAreas[colorIndex].push(new shape_Sector({
        shape: {
          cx: polar.cx,
          cy: polar.cy,
          r0: r0,
          r: r1,
          startAngle: prevAngle,
          endAngle: -coord * RADIAN,
          clockwise: clockwise
        },
        silent: true
      }));
      prevAngle = -coord * RADIAN;
    }
    // Simple optimization
    // Batching the lines if color are the same
    for (var i = 0; i < splitAreas.length; i++) {
      group.add(graphic_mergePath(splitAreas[i], {
        style: util["defaults"]({
          fill: areaColors[i % areaColors.length]
        }, areaStyleModel.getAreaStyle()),
        silent: true
      }));
    }
  }
};
/* harmony default export */ var axis_AngleAxisView = (AngleAxisView_AngleAxisView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/RadiusAxisView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var RadiusAxisView_axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];
var RadiusAxisView_selfBuilderAttrs = ['splitLine', 'splitArea', 'minorSplitLine'];
var RadiusAxisView_RadiusAxisView = /** @class */function (_super) {
  __extends(RadiusAxisView, _super);
  function RadiusAxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = RadiusAxisView.type;
    _this.axisPointerClass = 'PolarAxisPointer';
    return _this;
  }
  RadiusAxisView.prototype.render = function (radiusAxisModel, ecModel) {
    this.group.removeAll();
    if (!radiusAxisModel.get('show')) {
      return;
    }
    var oldAxisGroup = this._axisGroup;
    var newAxisGroup = this._axisGroup = new graphic_Group();
    this.group.add(newAxisGroup);
    var radiusAxis = radiusAxisModel.axis;
    var polar = radiusAxis.polar;
    var angleAxis = polar.getAngleAxis();
    var ticksCoords = radiusAxis.getTicksCoords();
    var minorTicksCoords = radiusAxis.getMinorTicksCoords();
    var axisAngle = angleAxis.getExtent()[0];
    var radiusExtent = radiusAxis.getExtent();
    var layout = layoutAxis(polar, radiusAxisModel, axisAngle);
    var axisBuilder = new axis_AxisBuilder(radiusAxisModel, layout);
    util["each"](RadiusAxisView_axisBuilderAttrs, axisBuilder.add, axisBuilder);
    newAxisGroup.add(axisBuilder.getGroup());
    groupTransition(oldAxisGroup, newAxisGroup, radiusAxisModel);
    util["each"](RadiusAxisView_selfBuilderAttrs, function (name) {
      if (radiusAxisModel.get([name, 'show']) && !radiusAxis.scale.isBlank()) {
        RadiusAxisView_axisElementBuilders[name](this.group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords);
      }
    }, this);
  };
  RadiusAxisView.type = 'radiusAxis';
  return RadiusAxisView;
}(axis_AxisView);
var RadiusAxisView_axisElementBuilders = {
  splitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
    var splitLineModel = radiusAxisModel.getModel('splitLine');
    var lineStyleModel = splitLineModel.getModel('lineStyle');
    var lineColors = lineStyleModel.get('color');
    var lineCount = 0;
    var angleAxis = polar.getAngleAxis();
    var RADIAN = Math.PI / 180;
    var angleExtent = angleAxis.getExtent();
    var shapeType = Math.abs(angleExtent[1] - angleExtent[0]) === 360 ? 'Circle' : 'Arc';
    lineColors = lineColors instanceof Array ? lineColors : [lineColors];
    var splitLines = [];
    for (var i = 0; i < ticksCoords.length; i++) {
      var colorIndex = lineCount++ % lineColors.length;
      splitLines[colorIndex] = splitLines[colorIndex] || [];
      splitLines[colorIndex].push(new graphic_namespaceObject[shapeType]({
        shape: {
          cx: polar.cx,
          cy: polar.cy,
          // ensure circle radius >= 0
          r: Math.max(ticksCoords[i].coord, 0),
          startAngle: -angleExtent[0] * RADIAN,
          endAngle: -angleExtent[1] * RADIAN,
          clockwise: angleAxis.inverse
        }
      }));
    }
    // Simple optimization
    // Batching the lines if color are the same
    for (var i = 0; i < splitLines.length; i++) {
      group.add(graphic_mergePath(splitLines[i], {
        style: util["defaults"]({
          stroke: lineColors[i % lineColors.length],
          fill: null
        }, lineStyleModel.getLineStyle()),
        silent: true
      }));
    }
  },
  minorSplitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords) {
    if (!minorTicksCoords.length) {
      return;
    }
    var minorSplitLineModel = radiusAxisModel.getModel('minorSplitLine');
    var lineStyleModel = minorSplitLineModel.getModel('lineStyle');
    var lines = [];
    for (var i = 0; i < minorTicksCoords.length; i++) {
      for (var k = 0; k < minorTicksCoords[i].length; k++) {
        lines.push(new shape_Circle({
          shape: {
            cx: polar.cx,
            cy: polar.cy,
            r: minorTicksCoords[i][k].coord
          }
        }));
      }
    }
    group.add(graphic_mergePath(lines, {
      style: util["defaults"]({
        fill: null
      }, lineStyleModel.getLineStyle()),
      silent: true
    }));
  },
  splitArea: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
    if (!ticksCoords.length) {
      return;
    }
    var splitAreaModel = radiusAxisModel.getModel('splitArea');
    var areaStyleModel = splitAreaModel.getModel('areaStyle');
    var areaColors = areaStyleModel.get('color');
    var lineCount = 0;
    areaColors = areaColors instanceof Array ? areaColors : [areaColors];
    var splitAreas = [];
    var prevRadius = ticksCoords[0].coord;
    for (var i = 1; i < ticksCoords.length; i++) {
      var colorIndex = lineCount++ % areaColors.length;
      splitAreas[colorIndex] = splitAreas[colorIndex] || [];
      splitAreas[colorIndex].push(new shape_Sector({
        shape: {
          cx: polar.cx,
          cy: polar.cy,
          r0: prevRadius,
          r: ticksCoords[i].coord,
          startAngle: 0,
          endAngle: Math.PI * 2
        },
        silent: true
      }));
      prevRadius = ticksCoords[i].coord;
    }
    // Simple optimization
    // Batching the lines if color are the same
    for (var i = 0; i < splitAreas.length; i++) {
      group.add(graphic_mergePath(splitAreas[i], {
        style: util["defaults"]({
          fill: areaColors[i % areaColors.length]
        }, areaStyleModel.getAreaStyle()),
        silent: true
      }));
    }
  }
};
/**
 * @inner
 */
function layoutAxis(polar, radiusAxisModel, axisAngle) {
  return {
    position: [polar.cx, polar.cy],
    rotation: axisAngle / 180 * Math.PI,
    labelDirection: -1,
    tickDirection: -1,
    nameDirection: 1,
    labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'),
    // Over splitLine and splitArea
    z2: 1
  };
}
/* harmony default export */ var axis_RadiusAxisView = (RadiusAxisView_RadiusAxisView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/layout/barPolar.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function barPolar_getSeriesStackId(seriesModel) {
  return seriesModel.get('stack') || '__ec_stack_' + seriesModel.seriesIndex;
}
function barPolar_getAxisKey(polar, axis) {
  return axis.dim + polar.model.componentIndex;
}
function barLayoutPolar(seriesType, ecModel, api) {
  var lastStackCoords = {};
  var barWidthAndOffset = calRadialBar(util["filter"](ecModel.getSeriesByType(seriesType), function (seriesModel) {
    return !ecModel.isSeriesFiltered(seriesModel) && seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'polar';
  }));
  ecModel.eachSeriesByType(seriesType, function (seriesModel) {
    // Check series coordinate, do layout for polar only
    if (seriesModel.coordinateSystem.type !== 'polar') {
      return;
    }
    var data = seriesModel.getData();
    var polar = seriesModel.coordinateSystem;
    var baseAxis = polar.getBaseAxis();
    var axisKey = barPolar_getAxisKey(polar, baseAxis);
    var stackId = barPolar_getSeriesStackId(seriesModel);
    var columnLayoutInfo = barWidthAndOffset[axisKey][stackId];
    var columnOffset = columnLayoutInfo.offset;
    var columnWidth = columnLayoutInfo.width;
    var valueAxis = polar.getOtherAxis(baseAxis);
    var cx = seriesModel.coordinateSystem.cx;
    var cy = seriesModel.coordinateSystem.cy;
    var barMinHeight = seriesModel.get('barMinHeight') || 0;
    var barMinAngle = seriesModel.get('barMinAngle') || 0;
    lastStackCoords[stackId] = lastStackCoords[stackId] || [];
    var valueDim = data.mapDimension(valueAxis.dim);
    var baseDim = data.mapDimension(baseAxis.dim);
    var stacked = isDimensionStacked(data, valueDim /* , baseDim */);
    var clampLayout = baseAxis.dim !== 'radius' || !seriesModel.get('roundCap', true);
    var valueAxisModel = valueAxis.model;
    var startValue = valueAxisModel.get('startValue');
    var valueAxisStart = valueAxis.dataToCoord(startValue || 0);
    for (var idx = 0, len = data.count(); idx < len; idx++) {
      var value = data.get(valueDim, idx);
      var baseValue = data.get(baseDim, idx);
      var sign = value >= 0 ? 'p' : 'n';
      var baseCoord = valueAxisStart;
      // Because of the barMinHeight, we can not use the value in
      // stackResultDimension directly.
      // Only ordinal axis can be stacked.
      if (stacked) {
        if (!lastStackCoords[stackId][baseValue]) {
          lastStackCoords[stackId][baseValue] = {
            p: valueAxisStart,
            n: valueAxisStart // Negative stack
          };
        }
        // Should also consider #4243
        baseCoord = lastStackCoords[stackId][baseValue][sign];
      }
      var r0 = void 0;
      var r = void 0;
      var startAngle = void 0;
      var endAngle = void 0;
      // radial sector
      if (valueAxis.dim === 'radius') {
        var radiusSpan = valueAxis.dataToCoord(value) - valueAxisStart;
        var angle = baseAxis.dataToCoord(baseValue);
        if (Math.abs(radiusSpan) < barMinHeight) {
          radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight;
        }
        r0 = baseCoord;
        r = baseCoord + radiusSpan;
        startAngle = angle - columnOffset;
        endAngle = startAngle - columnWidth;
        stacked && (lastStackCoords[stackId][baseValue][sign] = r);
      }
      // tangential sector
      else {
        var angleSpan = valueAxis.dataToCoord(value, clampLayout) - valueAxisStart;
        var radius = baseAxis.dataToCoord(baseValue);
        if (Math.abs(angleSpan) < barMinAngle) {
          angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle;
        }
        r0 = radius + columnOffset;
        r = r0 + columnWidth;
        startAngle = baseCoord;
        endAngle = baseCoord + angleSpan;
        // if the previous stack is at the end of the ring,
        // add a round to differentiate it from origin
        // let extent = angleAxis.getExtent();
        // let stackCoord = angle;
        // if (stackCoord === extent[0] && value > 0) {
        //     stackCoord = extent[1];
        // }
        // else if (stackCoord === extent[1] && value < 0) {
        //     stackCoord = extent[0];
        // }
        stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle);
      }
      data.setItemLayout(idx, {
        cx: cx,
        cy: cy,
        r0: r0,
        r: r,
        // Consider that positive angle is anti-clockwise,
        // while positive radian of sector is clockwise
        startAngle: -startAngle * Math.PI / 180,
        endAngle: -endAngle * Math.PI / 180,
        /**
         * Keep the same logic with bar in catesion: use end value to
         * control direction. Notice that if clockwise is true (by
         * default), the sector will always draw clockwisely, no matter
         * whether endAngle is greater or less than startAngle.
         */
        clockwise: startAngle >= endAngle
      });
    }
  });
}
/**
 * Calculate bar width and offset for radial bar charts
 */
function calRadialBar(barSeries) {
  // Columns info on each category axis. Key is polar name
  var columnsMap = {};
  util["each"](barSeries, function (seriesModel, idx) {
    var data = seriesModel.getData();
    var polar = seriesModel.coordinateSystem;
    var baseAxis = polar.getBaseAxis();
    var axisKey = barPolar_getAxisKey(polar, baseAxis);
    var axisExtent = baseAxis.getExtent();
    var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : Math.abs(axisExtent[1] - axisExtent[0]) / data.count();
    var columnsOnAxis = columnsMap[axisKey] || {
      bandWidth: bandWidth,
      remainedWidth: bandWidth,
      autoWidthCount: 0,
      categoryGap: '20%',
      gap: '30%',
      stacks: {}
    };
    var stacks = columnsOnAxis.stacks;
    columnsMap[axisKey] = columnsOnAxis;
    var stackId = barPolar_getSeriesStackId(seriesModel);
    if (!stacks[stackId]) {
      columnsOnAxis.autoWidthCount++;
    }
    stacks[stackId] = stacks[stackId] || {
      width: 0,
      maxWidth: 0
    };
    var barWidth = number_parsePercent(seriesModel.get('barWidth'), bandWidth);
    var barMaxWidth = number_parsePercent(seriesModel.get('barMaxWidth'), bandWidth);
    var barGap = seriesModel.get('barGap');
    var barCategoryGap = seriesModel.get('barCategoryGap');
    if (barWidth && !stacks[stackId].width) {
      barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);
      stacks[stackId].width = barWidth;
      columnsOnAxis.remainedWidth -= barWidth;
    }
    barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);
    barGap != null && (columnsOnAxis.gap = barGap);
    barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap);
  });
  var result = {};
  util["each"](columnsMap, function (columnsOnAxis, coordSysName) {
    result[coordSysName] = {};
    var stacks = columnsOnAxis.stacks;
    var bandWidth = columnsOnAxis.bandWidth;
    var categoryGap = number_parsePercent(columnsOnAxis.categoryGap, bandWidth);
    var barGapPercent = number_parsePercent(columnsOnAxis.gap, 1);
    var remainedWidth = columnsOnAxis.remainedWidth;
    var autoWidthCount = columnsOnAxis.autoWidthCount;
    var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    autoWidth = Math.max(autoWidth, 0);
    // Find if any auto calculated bar exceeded maxBarWidth
    util["each"](stacks, function (column, stack) {
      var maxWidth = column.maxWidth;
      if (maxWidth && maxWidth < autoWidth) {
        maxWidth = Math.min(maxWidth, remainedWidth);
        if (column.width) {
          maxWidth = Math.min(maxWidth, column.width);
        }
        remainedWidth -= maxWidth;
        column.width = maxWidth;
        autoWidthCount--;
      }
    });
    // Recalculate width again
    autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
    autoWidth = Math.max(autoWidth, 0);
    var widthSum = 0;
    var lastColumn;
    util["each"](stacks, function (column, idx) {
      if (!column.width) {
        column.width = autoWidth;
      }
      lastColumn = column;
      widthSum += column.width * (1 + barGapPercent);
    });
    if (lastColumn) {
      widthSum -= lastColumn.width * barGapPercent;
    }
    var offset = -widthSum / 2;
    util["each"](stacks, function (column, stackId) {
      result[coordSysName][stackId] = result[coordSysName][stackId] || {
        offset: offset,
        width: column.width
      };
      offset += column.width * (1 + barGapPercent);
    });
  });
  return result;
}
/* harmony default export */ var barPolar = (barLayoutPolar);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/polar/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/














var angleAxisExtraOption = {
  startAngle: 90,
  clockwise: true,
  splitNumber: 12,
  axisLabel: {
    rotate: 0
  }
};
var radiusAxisExtraOption = {
  splitNumber: 5
};
var install_PolarView = /** @class */function (_super) {
  __extends(PolarView, _super);
  function PolarView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = PolarView.type;
    return _this;
  }
  PolarView.type = 'polar';
  return PolarView;
}(view_Component);
function polar_install_install(registers) {
  use(axisPointer_install_install);
  axis_AxisView.registerAxisPointerClass('PolarAxisPointer', axisPointer_PolarAxisPointer);
  registers.registerCoordinateSystem('polar', polar_polarCreator);
  registers.registerComponentModel(polar_PolarModel);
  registers.registerComponentView(install_PolarView);
  // Model and view for angleAxis and radiusAxis
  axisModelCreator(registers, 'angle', AxisModel_AngleAxisModel, angleAxisExtraOption);
  axisModelCreator(registers, 'radius', AxisModel_RadiusAxisModel, radiusAxisExtraOption);
  registers.registerComponentView(axis_AngleAxisView);
  registers.registerComponentView(axis_RadiusAxisView);
  registers.registerLayout(Object(util["curry"])(barPolar, 'bar'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/singleAxisHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function singleAxisHelper_layout(axisModel, opt) {
  opt = opt || {};
  var single = axisModel.coordinateSystem;
  var axis = axisModel.axis;
  var layout = {};
  var axisPosition = axis.position;
  var orient = axis.orient;
  var rect = single.getRect();
  var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];
  var positionMap = {
    horizontal: {
      top: rectBound[2],
      bottom: rectBound[3]
    },
    vertical: {
      left: rectBound[0],
      right: rectBound[1]
    }
  };
  layout.position = [orient === 'vertical' ? positionMap.vertical[axisPosition] : rectBound[0], orient === 'horizontal' ? positionMap.horizontal[axisPosition] : rectBound[3]];
  var r = {
    horizontal: 0,
    vertical: 1
  };
  layout.rotation = Math.PI / 2 * r[orient];
  var directionMap = {
    top: -1,
    bottom: 1,
    right: 1,
    left: -1
  };
  layout.labelDirection = layout.tickDirection = layout.nameDirection = directionMap[axisPosition];
  if (axisModel.get(['axisTick', 'inside'])) {
    layout.tickDirection = -layout.tickDirection;
  }
  if (util["retrieve"](opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {
    layout.labelDirection = -layout.labelDirection;
  }
  var labelRotation = opt.rotate;
  labelRotation == null && (labelRotation = axisModel.get(['axisLabel', 'rotate']));
  layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation;
  layout.z2 = 1;
  return layout;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/SingleAxisView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var SingleAxisView_axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];
var SingleAxisView_selfBuilderAttrs = ['splitArea', 'splitLine'];
var SingleAxisView_SingleAxisView = /** @class */function (_super) {
  __extends(SingleAxisView, _super);
  function SingleAxisView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SingleAxisView.type;
    _this.axisPointerClass = 'SingleAxisPointer';
    return _this;
  }
  SingleAxisView.prototype.render = function (axisModel, ecModel, api, payload) {
    var group = this.group;
    group.removeAll();
    var oldAxisGroup = this._axisGroup;
    this._axisGroup = new graphic_Group();
    var layout = singleAxisHelper_layout(axisModel);
    var axisBuilder = new axis_AxisBuilder(axisModel, layout);
    util["each"](SingleAxisView_axisBuilderAttrs, axisBuilder.add, axisBuilder);
    group.add(this._axisGroup);
    group.add(axisBuilder.getGroup());
    util["each"](SingleAxisView_selfBuilderAttrs, function (name) {
      if (axisModel.get([name, 'show'])) {
        SingleAxisView_axisElementBuilders[name](this, this.group, this._axisGroup, axisModel);
      }
    }, this);
    groupTransition(oldAxisGroup, this._axisGroup, axisModel);
    _super.prototype.render.call(this, axisModel, ecModel, api, payload);
  };
  SingleAxisView.prototype.remove = function () {
    rectCoordAxisHandleRemove(this);
  };
  SingleAxisView.type = 'singleAxis';
  return SingleAxisView;
}(axis_AxisView);
var SingleAxisView_axisElementBuilders = {
  splitLine: function (axisView, group, axisGroup, axisModel) {
    var axis = axisModel.axis;
    if (axis.scale.isBlank()) {
      return;
    }
    var splitLineModel = axisModel.getModel('splitLine');
    var lineStyleModel = splitLineModel.getModel('lineStyle');
    var lineColors = lineStyleModel.get('color');
    lineColors = lineColors instanceof Array ? lineColors : [lineColors];
    var lineWidth = lineStyleModel.get('width');
    var gridRect = axisModel.coordinateSystem.getRect();
    var isHorizontal = axis.isHorizontal();
    var splitLines = [];
    var lineCount = 0;
    var ticksCoords = axis.getTicksCoords({
      tickModel: splitLineModel
    });
    var p1 = [];
    var p2 = [];
    for (var i = 0; i < ticksCoords.length; ++i) {
      var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);
      if (isHorizontal) {
        p1[0] = tickCoord;
        p1[1] = gridRect.y;
        p2[0] = tickCoord;
        p2[1] = gridRect.y + gridRect.height;
      } else {
        p1[0] = gridRect.x;
        p1[1] = tickCoord;
        p2[0] = gridRect.x + gridRect.width;
        p2[1] = tickCoord;
      }
      var line = new shape_Line({
        shape: {
          x1: p1[0],
          y1: p1[1],
          x2: p2[0],
          y2: p2[1]
        },
        silent: true
      });
      graphic_subPixelOptimizeLine(line.shape, lineWidth);
      var colorIndex = lineCount++ % lineColors.length;
      splitLines[colorIndex] = splitLines[colorIndex] || [];
      splitLines[colorIndex].push(line);
    }
    var lineStyle = lineStyleModel.getLineStyle(['color']);
    for (var i = 0; i < splitLines.length; ++i) {
      group.add(graphic_mergePath(splitLines[i], {
        style: util["defaults"]({
          stroke: lineColors[i % lineColors.length]
        }, lineStyle),
        silent: true
      }));
    }
  },
  splitArea: function (axisView, group, axisGroup, axisModel) {
    rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, axisModel);
  }
};
/* harmony default export */ var axis_SingleAxisView = (SingleAxisView_SingleAxisView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/AxisModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var AxisModel_SingleAxisModel = /** @class */function (_super) {
  __extends(SingleAxisModel, _super);
  function SingleAxisModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SingleAxisModel.type;
    return _this;
  }
  SingleAxisModel.prototype.getCoordSysModel = function () {
    return this;
  };
  SingleAxisModel.type = 'singleAxis';
  SingleAxisModel.layoutMode = 'box';
  SingleAxisModel.defaultOption = {
    left: '5%',
    top: '5%',
    right: '5%',
    bottom: '5%',
    type: 'value',
    position: 'bottom',
    orient: 'horizontal',
    axisLine: {
      show: true,
      lineStyle: {
        width: 1,
        type: 'solid'
      }
    },
    // Single coordinate system and single axis is the,
    // which is used as the parent tooltip model.
    // same model, so we set default tooltip show as true.
    tooltip: {
      show: true
    },
    axisTick: {
      show: true,
      length: 6,
      lineStyle: {
        width: 1
      }
    },
    axisLabel: {
      show: true,
      interval: 'auto'
    },
    splitLine: {
      show: true,
      lineStyle: {
        type: 'dashed',
        opacity: 0.2
      }
    }
  };
  return SingleAxisModel;
}(Component);
Object(util["mixin"])(AxisModel_SingleAxisModel, AxisModelCommonMixin.prototype);
/* harmony default export */ var single_AxisModel = (AxisModel_SingleAxisModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/SingleAxis.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var SingleAxis_SingleAxis = /** @class */function (_super) {
  __extends(SingleAxis, _super);
  function SingleAxis(dim, scale, coordExtent, axisType, position) {
    var _this = _super.call(this, dim, scale, coordExtent) || this;
    _this.type = axisType || 'value';
    _this.position = position || 'bottom';
    return _this;
  }
  /**
   * Judge the orient of the axis.
   */
  SingleAxis.prototype.isHorizontal = function () {
    var position = this.position;
    return position === 'top' || position === 'bottom';
  };
  SingleAxis.prototype.pointToData = function (point, clamp) {
    return this.coordinateSystem.pointToData(point)[0];
  };
  return SingleAxis;
}(coord_Axis);
/* harmony default export */ var single_SingleAxis = (SingleAxis_SingleAxis);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/Single.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Single coordinates system.
 */




var singleDimensions = ['single'];
/**
 * Create a single coordinates system.
 */
var Single_Single = /** @class */function () {
  function Single(axisModel, ecModel, api) {
    this.type = 'single';
    this.dimension = 'single';
    /**
     * Add it just for draw tooltip.
     */
    this.dimensions = singleDimensions;
    this.axisPointerEnabled = true;
    this.model = axisModel;
    this._init(axisModel, ecModel, api);
  }
  /**
   * Initialize single coordinate system.
   */
  Single.prototype._init = function (axisModel, ecModel, api) {
    var dim = this.dimension;
    var axis = new single_SingleAxis(dim, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisModel.get('position'));
    var isCategory = axis.type === 'category';
    axis.onBand = isCategory && axisModel.get('boundaryGap');
    axis.inverse = axisModel.get('inverse');
    axis.orient = axisModel.get('orient');
    axisModel.axis = axis;
    axis.model = axisModel;
    axis.coordinateSystem = this;
    this._axis = axis;
  };
  /**
   * Update axis scale after data processed
   */
  Single.prototype.update = function (ecModel, api) {
    ecModel.eachSeries(function (seriesModel) {
      if (seriesModel.coordinateSystem === this) {
        var data_1 = seriesModel.getData();
        Object(util["each"])(data_1.mapDimensionsAll(this.dimension), function (dim) {
          this._axis.scale.unionExtentFromData(data_1, dim);
        }, this);
        niceScaleExtent(this._axis.scale, this._axis.model);
      }
    }, this);
  };
  /**
   * Resize the single coordinate system.
   */
  Single.prototype.resize = function (axisModel, api) {
    this._rect = getLayoutRect({
      left: axisModel.get('left'),
      top: axisModel.get('top'),
      right: axisModel.get('right'),
      bottom: axisModel.get('bottom'),
      width: axisModel.get('width'),
      height: axisModel.get('height')
    }, {
      width: api.getWidth(),
      height: api.getHeight()
    });
    this._adjustAxis();
  };
  Single.prototype.getRect = function () {
    return this._rect;
  };
  Single.prototype._adjustAxis = function () {
    var rect = this._rect;
    var axis = this._axis;
    var isHorizontal = axis.isHorizontal();
    var extent = isHorizontal ? [0, rect.width] : [0, rect.height];
    var idx = axis.inverse ? 1 : 0;
    axis.setExtent(extent[idx], extent[1 - idx]);
    this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y);
  };
  Single.prototype._updateAxisTransform = function (axis, coordBase) {
    var axisExtent = axis.getExtent();
    var extentSum = axisExtent[0] + axisExtent[1];
    var isHorizontal = axis.isHorizontal();
    axis.toGlobalCoord = isHorizontal ? function (coord) {
      return coord + coordBase;
    } : function (coord) {
      return extentSum - coord + coordBase;
    };
    axis.toLocalCoord = isHorizontal ? function (coord) {
      return coord - coordBase;
    } : function (coord) {
      return extentSum - coord + coordBase;
    };
  };
  /**
   * Get axis.
   */
  Single.prototype.getAxis = function () {
    return this._axis;
  };
  /**
   * Get axis, add it just for draw tooltip.
   */
  Single.prototype.getBaseAxis = function () {
    return this._axis;
  };
  Single.prototype.getAxes = function () {
    return [this._axis];
  };
  Single.prototype.getTooltipAxes = function () {
    return {
      baseAxes: [this.getAxis()],
      // Empty otherAxes
      otherAxes: []
    };
  };
  /**
   * If contain point.
   */
  Single.prototype.containPoint = function (point) {
    var rect = this.getRect();
    var axis = this.getAxis();
    var orient = axis.orient;
    if (orient === 'horizontal') {
      return axis.contain(axis.toLocalCoord(point[0])) && point[1] >= rect.y && point[1] <= rect.y + rect.height;
    } else {
      return axis.contain(axis.toLocalCoord(point[1])) && point[0] >= rect.y && point[0] <= rect.y + rect.height;
    }
  };
  Single.prototype.pointToData = function (point) {
    var axis = this.getAxis();
    return [axis.coordToData(axis.toLocalCoord(point[axis.orient === 'horizontal' ? 0 : 1]))];
  };
  /**
   * Convert the series data to concrete point.
   * Can be [val] | val
   */
  Single.prototype.dataToPoint = function (val) {
    var axis = this.getAxis();
    var rect = this.getRect();
    var pt = [];
    var idx = axis.orient === 'horizontal' ? 0 : 1;
    if (val instanceof Array) {
      val = val[0];
    }
    pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val));
    pt[1 - idx] = idx === 0 ? rect.y + rect.height / 2 : rect.x + rect.width / 2;
    return pt;
  };
  Single.prototype.convertToPixel = function (ecModel, finder, value) {
    var coordSys = Single_getCoordSys(finder);
    return coordSys === this ? this.dataToPoint(value) : null;
  };
  Single.prototype.convertFromPixel = function (ecModel, finder, pixel) {
    var coordSys = Single_getCoordSys(finder);
    return coordSys === this ? this.pointToData(pixel) : null;
  };
  return Single;
}();
function Single_getCoordSys(finder) {
  var seriesModel = finder.seriesModel;
  var singleModel = finder.singleAxisModel;
  return singleModel && singleModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem;
}
/* harmony default export */ var single_Single = (Single_Single);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/singleCreator.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Single coordinate system creator.
 */


/**
 * Create single coordinate system and inject it into seriesModel.
 */
function singleCreator_create(ecModel, api) {
  var singles = [];
  ecModel.eachComponent('singleAxis', function (axisModel, idx) {
    var single = new single_Single(axisModel, ecModel, api);
    single.name = 'single_' + idx;
    single.resize(axisModel, api);
    axisModel.coordinateSystem = single;
    singles.push(single);
  });
  ecModel.eachSeries(function (seriesModel) {
    if (seriesModel.get('coordinateSystem') === 'singleAxis') {
      var singleAxisModel = seriesModel.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];
      seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem;
    }
  });
  return singles;
}
var singleCreator = {
  create: singleCreator_create,
  dimensions: singleDimensions
};
/* harmony default export */ var single_singleCreator = (singleCreator);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var XY = ['x', 'y'];
var WH = ['width', 'height'];
var SingleAxisPointer_SingleAxisPointer = /** @class */function (_super) {
  __extends(SingleAxisPointer, _super);
  function SingleAxisPointer() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  /**
   * @override
   */
  SingleAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {
    var axis = axisModel.axis;
    var coordSys = axis.coordinateSystem;
    var otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis));
    var pixelValue = coordSys.dataToPoint(value)[0];
    var axisPointerType = axisPointerModel.get('type');
    if (axisPointerType && axisPointerType !== 'none') {
      var elStyle = buildElStyle(axisPointerModel);
      var pointerOption = SingleAxisPointer_pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent);
      pointerOption.style = elStyle;
      elOption.graphicKey = pointerOption.type;
      elOption.pointer = pointerOption;
    }
    var layoutInfo = singleAxisHelper_layout(axisModel);
    buildCartesianSingleLabelElOption(
    // @ts-ignore
    value, elOption, layoutInfo, axisModel, axisPointerModel, api);
  };
  /**
   * @override
   */
  SingleAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) {
    var layoutInfo = singleAxisHelper_layout(axisModel, {
      labelInside: false
    });
    // @ts-ignore
    layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);
    var position = getTransformedPosition(axisModel.axis, value, layoutInfo);
    return {
      x: position[0],
      y: position[1],
      rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)
    };
  };
  /**
   * @override
   */
  SingleAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) {
    var axis = axisModel.axis;
    var coordSys = axis.coordinateSystem;
    var dimIndex = getPointDimIndex(axis);
    var axisExtent = getGlobalExtent(coordSys, dimIndex);
    var currPosition = [transform.x, transform.y];
    currPosition[dimIndex] += delta[dimIndex];
    currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);
    currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);
    var otherExtent = getGlobalExtent(coordSys, 1 - dimIndex);
    var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;
    var cursorPoint = [cursorOtherValue, cursorOtherValue];
    cursorPoint[dimIndex] = currPosition[dimIndex];
    return {
      x: currPosition[0],
      y: currPosition[1],
      rotation: transform.rotation,
      cursorPoint: cursorPoint,
      tooltipOption: {
        verticalAlign: 'middle'
      }
    };
  };
  return SingleAxisPointer;
}(axisPointer_BaseAxisPointer);
var SingleAxisPointer_pointerShapeBuilder = {
  line: function (axis, pixelValue, otherExtent) {
    var targetShape = makeLineShape([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getPointDimIndex(axis));
    return {
      type: 'Line',
      subPixelOptimize: true,
      shape: targetShape
    };
  },
  shadow: function (axis, pixelValue, otherExtent) {
    var bandWidth = axis.getBandWidth();
    var span = otherExtent[1] - otherExtent[0];
    return {
      type: 'Rect',
      shape: makeRectShape([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getPointDimIndex(axis))
    };
  }
};
function getPointDimIndex(axis) {
  return axis.isHorizontal() ? 0 : 1;
}
function getGlobalExtent(coordSys, dimIndex) {
  var rect = coordSys.getRect();
  return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]];
}
/* harmony default export */ var axisPointer_SingleAxisPointer = (SingleAxisPointer_SingleAxisPointer);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/singleAxis/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/










var install_SingleView = /** @class */function (_super) {
  __extends(SingleView, _super);
  function SingleView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SingleView.type;
    return _this;
  }
  SingleView.type = 'single';
  return SingleView;
}(view_Component);
function singleAxis_install_install(registers) {
  use(axisPointer_install_install);
  axis_AxisView.registerAxisPointerClass('SingleAxisPointer', axisPointer_SingleAxisPointer);
  registers.registerComponentView(install_SingleView);
  // Axis
  registers.registerComponentView(axis_SingleAxisView);
  registers.registerComponentModel(single_AxisModel);
  axisModelCreator(registers, 'single', single_AxisModel, single_AxisModel.defaultOption);
  registers.registerCoordinateSystem('single', single_singleCreator);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/calendar/CalendarModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var CalendarModel_CalendarModel = /** @class */function (_super) {
  __extends(CalendarModel, _super);
  function CalendarModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CalendarModel.type;
    return _this;
  }
  /**
   * @override
   */
  CalendarModel.prototype.init = function (option, parentModel, ecModel) {
    var inputPositionParams = getLayoutParams(option);
    _super.prototype.init.apply(this, arguments);
    mergeAndNormalizeLayoutParams(option, inputPositionParams);
  };
  /**
   * @override
   */
  CalendarModel.prototype.mergeOption = function (option) {
    _super.prototype.mergeOption.apply(this, arguments);
    mergeAndNormalizeLayoutParams(this.option, option);
  };
  CalendarModel.prototype.getCellSize = function () {
    // Has been normalized
    return this.option.cellSize;
  };
  CalendarModel.type = 'calendar';
  CalendarModel.defaultOption = {
    // zlevel: 0,
    z: 2,
    left: 80,
    top: 60,
    cellSize: 20,
    // horizontal vertical
    orient: 'horizontal',
    // month separate line style
    splitLine: {
      show: true,
      lineStyle: {
        color: '#000',
        width: 1,
        type: 'solid'
      }
    },
    // rect style  temporarily unused emphasis
    itemStyle: {
      color: '#fff',
      borderWidth: 1,
      borderColor: '#ccc'
    },
    // week text style
    dayLabel: {
      show: true,
      firstDay: 0,
      // start end
      position: 'start',
      margin: '50%',
      color: '#000'
    },
    // month text style
    monthLabel: {
      show: true,
      // start end
      position: 'start',
      margin: 5,
      // center or left
      align: 'center',
      formatter: null,
      color: '#000'
    },
    // year text style
    yearLabel: {
      show: true,
      // top bottom left right
      position: null,
      margin: 30,
      formatter: null,
      color: '#ccc',
      fontFamily: 'sans-serif',
      fontWeight: 'bolder',
      fontSize: 20
    }
  };
  return CalendarModel;
}(Component);
function mergeAndNormalizeLayoutParams(target, raw) {
  // Normalize cellSize
  var cellSize = target.cellSize;
  var cellSizeArr;
  if (!util["isArray"](cellSize)) {
    cellSizeArr = target.cellSize = [cellSize, cellSize];
  } else {
    cellSizeArr = cellSize;
  }
  if (cellSizeArr.length === 1) {
    cellSizeArr[1] = cellSizeArr[0];
  }
  var ignoreSize = util["map"]([0, 1], function (hvIdx) {
    // If user have set `width` or both `left` and `right`, cellSizeArr
    // will be automatically set to 'auto', otherwise the default
    // setting of cellSizeArr will make `width` setting not work.
    if (sizeCalculable(raw, hvIdx)) {
      cellSizeArr[hvIdx] = 'auto';
    }
    return cellSizeArr[hvIdx] != null && cellSizeArr[hvIdx] !== 'auto';
  });
  mergeLayoutParam(target, raw, {
    type: 'box',
    ignoreSize: ignoreSize
  });
}
/* harmony default export */ var calendar_CalendarModel = (CalendarModel_CalendarModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/calendar/CalendarView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var CalendarView_CalendarView = /** @class */function (_super) {
  __extends(CalendarView, _super);
  function CalendarView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = CalendarView.type;
    return _this;
  }
  CalendarView.prototype.render = function (calendarModel, ecModel, api) {
    var group = this.group;
    group.removeAll();
    var coordSys = calendarModel.coordinateSystem;
    // range info
    var rangeData = coordSys.getRangeInfo();
    var orient = coordSys.getOrient();
    // locale
    var localeModel = ecModel.getLocaleModel();
    this._renderDayRect(calendarModel, rangeData, group);
    // _renderLines must be called prior to following function
    this._renderLines(calendarModel, rangeData, orient, group);
    this._renderYearText(calendarModel, rangeData, orient, group);
    this._renderMonthText(calendarModel, localeModel, orient, group);
    this._renderWeekText(calendarModel, localeModel, rangeData, orient, group);
  };
  // render day rect
  CalendarView.prototype._renderDayRect = function (calendarModel, rangeData, group) {
    var coordSys = calendarModel.coordinateSystem;
    var itemRectStyleModel = calendarModel.getModel('itemStyle').getItemStyle();
    var sw = coordSys.getCellWidth();
    var sh = coordSys.getCellHeight();
    for (var i = rangeData.start.time; i <= rangeData.end.time; i = coordSys.getNextNDay(i, 1).time) {
      var point = coordSys.dataToRect([i], false).tl;
      // every rect
      var rect = new shape_Rect({
        shape: {
          x: point[0],
          y: point[1],
          width: sw,
          height: sh
        },
        cursor: 'default',
        style: itemRectStyleModel
      });
      group.add(rect);
    }
  };
  // render separate line
  CalendarView.prototype._renderLines = function (calendarModel, rangeData, orient, group) {
    var self = this;
    var coordSys = calendarModel.coordinateSystem;
    var lineStyleModel = calendarModel.getModel(['splitLine', 'lineStyle']).getLineStyle();
    var show = calendarModel.get(['splitLine', 'show']);
    var lineWidth = lineStyleModel.lineWidth;
    this._tlpoints = [];
    this._blpoints = [];
    this._firstDayOfMonth = [];
    this._firstDayPoints = [];
    var firstDay = rangeData.start;
    for (var i = 0; firstDay.time <= rangeData.end.time; i++) {
      addPoints(firstDay.formatedDate);
      if (i === 0) {
        firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m);
      }
      var date = firstDay.date;
      date.setMonth(date.getMonth() + 1);
      firstDay = coordSys.getDateInfo(date);
    }
    addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate);
    function addPoints(date) {
      self._firstDayOfMonth.push(coordSys.getDateInfo(date));
      self._firstDayPoints.push(coordSys.dataToRect([date], false).tl);
      var points = self._getLinePointsOfOneWeek(calendarModel, date, orient);
      self._tlpoints.push(points[0]);
      self._blpoints.push(points[points.length - 1]);
      show && self._drawSplitline(points, lineStyleModel, group);
    }
    // render top/left line
    show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group);
    // render bottom/right line
    show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group);
  };
  // get points at both ends
  CalendarView.prototype._getEdgesPoints = function (points, lineWidth, orient) {
    var rs = [points[0].slice(), points[points.length - 1].slice()];
    var idx = orient === 'horizontal' ? 0 : 1;
    // both ends of the line are extend half lineWidth
    rs[0][idx] = rs[0][idx] - lineWidth / 2;
    rs[1][idx] = rs[1][idx] + lineWidth / 2;
    return rs;
  };
  // render split line
  CalendarView.prototype._drawSplitline = function (points, lineStyle, group) {
    var poyline = new shape_Polyline({
      z2: 20,
      shape: {
        points: points
      },
      style: lineStyle
    });
    group.add(poyline);
  };
  // render month line of one week points
  CalendarView.prototype._getLinePointsOfOneWeek = function (calendarModel, date, orient) {
    var coordSys = calendarModel.coordinateSystem;
    var parsedDate = coordSys.getDateInfo(date);
    var points = [];
    for (var i = 0; i < 7; i++) {
      var tmpD = coordSys.getNextNDay(parsedDate.time, i);
      var point = coordSys.dataToRect([tmpD.time], false);
      points[2 * tmpD.day] = point.tl;
      points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr'];
    }
    return points;
  };
  CalendarView.prototype._formatterLabel = function (formatter, params) {
    if (Object(util["isString"])(formatter) && formatter) {
      return formatTplSimple(formatter, params);
    }
    if (Object(util["isFunction"])(formatter)) {
      return formatter(params);
    }
    return params.nameMap;
  };
  CalendarView.prototype._yearTextPositionControl = function (textEl, point, orient, position, margin) {
    var x = point[0];
    var y = point[1];
    var aligns = ['center', 'bottom'];
    if (position === 'bottom') {
      y += margin;
      aligns = ['center', 'top'];
    } else if (position === 'left') {
      x -= margin;
    } else if (position === 'right') {
      x += margin;
      aligns = ['center', 'top'];
    } else {
      // top
      y -= margin;
    }
    var rotate = 0;
    if (position === 'left' || position === 'right') {
      rotate = Math.PI / 2;
    }
    return {
      rotation: rotate,
      x: x,
      y: y,
      style: {
        align: aligns[0],
        verticalAlign: aligns[1]
      }
    };
  };
  // render year
  CalendarView.prototype._renderYearText = function (calendarModel, rangeData, orient, group) {
    var yearLabel = calendarModel.getModel('yearLabel');
    if (!yearLabel.get('show')) {
      return;
    }
    var margin = yearLabel.get('margin');
    var pos = yearLabel.get('position');
    if (!pos) {
      pos = orient !== 'horizontal' ? 'top' : 'left';
    }
    var points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]];
    var xc = (points[0][0] + points[1][0]) / 2;
    var yc = (points[0][1] + points[1][1]) / 2;
    var idx = orient === 'horizontal' ? 0 : 1;
    var posPoints = {
      top: [xc, points[idx][1]],
      bottom: [xc, points[1 - idx][1]],
      left: [points[1 - idx][0], yc],
      right: [points[idx][0], yc]
    };
    var name = rangeData.start.y;
    if (+rangeData.end.y > +rangeData.start.y) {
      name = name + '-' + rangeData.end.y;
    }
    var formatter = yearLabel.get('formatter');
    var params = {
      start: rangeData.start.y,
      end: rangeData.end.y,
      nameMap: name
    };
    var content = this._formatterLabel(formatter, params);
    var yearText = new Text({
      z2: 30,
      style: createTextStyle(yearLabel, {
        text: content
      }),
      silent: yearLabel.get('silent')
    });
    yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin));
    group.add(yearText);
  };
  CalendarView.prototype._monthTextPositionControl = function (point, isCenter, orient, position, margin) {
    var align = 'left';
    var vAlign = 'top';
    var x = point[0];
    var y = point[1];
    if (orient === 'horizontal') {
      y = y + margin;
      if (isCenter) {
        align = 'center';
      }
      if (position === 'start') {
        vAlign = 'bottom';
      }
    } else {
      x = x + margin;
      if (isCenter) {
        vAlign = 'middle';
      }
      if (position === 'start') {
        align = 'right';
      }
    }
    return {
      x: x,
      y: y,
      align: align,
      verticalAlign: vAlign
    };
  };
  // render month and year text
  CalendarView.prototype._renderMonthText = function (calendarModel, localeModel, orient, group) {
    var monthLabel = calendarModel.getModel('monthLabel');
    if (!monthLabel.get('show')) {
      return;
    }
    var nameMap = monthLabel.get('nameMap');
    var margin = monthLabel.get('margin');
    var pos = monthLabel.get('position');
    var align = monthLabel.get('align');
    var termPoints = [this._tlpoints, this._blpoints];
    if (!nameMap || Object(util["isString"])(nameMap)) {
      if (nameMap) {
        // case-sensitive
        localeModel = getLocaleModel(nameMap) || localeModel;
      }
      // PENDING
      // for ZH locale, original form is `一月` but current form is `1月`
      nameMap = localeModel.get(['time', 'monthAbbr']) || [];
    }
    var idx = pos === 'start' ? 0 : 1;
    var axis = orient === 'horizontal' ? 0 : 1;
    margin = pos === 'start' ? -margin : margin;
    var isCenter = align === 'center';
    var labelSilent = monthLabel.get('silent');
    for (var i = 0; i < termPoints[idx].length - 1; i++) {
      var tmp = termPoints[idx][i].slice();
      var firstDay = this._firstDayOfMonth[i];
      if (isCenter) {
        var firstDayPoints = this._firstDayPoints[i];
        tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2;
      }
      var formatter = monthLabel.get('formatter');
      var name_1 = nameMap[+firstDay.m - 1];
      var params = {
        yyyy: firstDay.y,
        yy: (firstDay.y + '').slice(2),
        MM: firstDay.m,
        M: +firstDay.m,
        nameMap: name_1
      };
      var content = this._formatterLabel(formatter, params);
      var monthText = new Text({
        z2: 30,
        style: Object(util["extend"])(createTextStyle(monthLabel, {
          text: content
        }), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin)),
        silent: labelSilent
      });
      group.add(monthText);
    }
  };
  CalendarView.prototype._weekTextPositionControl = function (point, orient, position, margin, cellSize) {
    var align = 'center';
    var vAlign = 'middle';
    var x = point[0];
    var y = point[1];
    var isStart = position === 'start';
    if (orient === 'horizontal') {
      x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2;
      align = isStart ? 'right' : 'left';
    } else {
      y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2;
      vAlign = isStart ? 'bottom' : 'top';
    }
    return {
      x: x,
      y: y,
      align: align,
      verticalAlign: vAlign
    };
  };
  // render weeks
  CalendarView.prototype._renderWeekText = function (calendarModel, localeModel, rangeData, orient, group) {
    var dayLabel = calendarModel.getModel('dayLabel');
    if (!dayLabel.get('show')) {
      return;
    }
    var coordSys = calendarModel.coordinateSystem;
    var pos = dayLabel.get('position');
    var nameMap = dayLabel.get('nameMap');
    var margin = dayLabel.get('margin');
    var firstDayOfWeek = coordSys.getFirstDayOfWeek();
    if (!nameMap || Object(util["isString"])(nameMap)) {
      if (nameMap) {
        // case-sensitive
        localeModel = getLocaleModel(nameMap) || localeModel;
      }
      // Use the first letter of `dayOfWeekAbbr` if `dayOfWeekShort` doesn't exist in the locale file
      var dayOfWeekShort = localeModel.get(['time', 'dayOfWeekShort']);
      nameMap = dayOfWeekShort || Object(util["map"])(localeModel.get(['time', 'dayOfWeekAbbr']), function (val) {
        return val[0];
      });
    }
    var start = coordSys.getNextNDay(rangeData.end.time, 7 - rangeData.lweek).time;
    var cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()];
    margin = number_parsePercent(margin, Math.min(cellSize[1], cellSize[0]));
    if (pos === 'start') {
      start = coordSys.getNextNDay(rangeData.start.time, -(7 + rangeData.fweek)).time;
      margin = -margin;
    }
    var labelSilent = dayLabel.get('silent');
    for (var i = 0; i < 7; i++) {
      var tmpD = coordSys.getNextNDay(start, i);
      var point = coordSys.dataToRect([tmpD.time], false).center;
      var day = i;
      day = Math.abs((i + firstDayOfWeek) % 7);
      var weekText = new Text({
        z2: 30,
        style: Object(util["extend"])(createTextStyle(dayLabel, {
          text: nameMap[day]
        }), this._weekTextPositionControl(point, orient, pos, margin, cellSize)),
        silent: labelSilent
      });
      group.add(weekText);
    }
  };
  CalendarView.type = 'calendar';
  return CalendarView;
}(view_Component);
/* harmony default export */ var calendar_CalendarView = (CalendarView_CalendarView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/calendar/Calendar.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



// (24*60*60*1000)
var PROXIMATE_ONE_DAY = 86400000;
var Calendar_Calendar = /** @class */function () {
  function Calendar(calendarModel, ecModel, api) {
    this.type = 'calendar';
    this.dimensions = Calendar.dimensions;
    // Required in createListFromData
    this.getDimensionsInfo = Calendar.getDimensionsInfo;
    this._model = calendarModel;
  }
  Calendar.getDimensionsInfo = function () {
    return [{
      name: 'time',
      type: 'time'
    }, 'value'];
  };
  Calendar.prototype.getRangeInfo = function () {
    return this._rangeInfo;
  };
  Calendar.prototype.getModel = function () {
    return this._model;
  };
  Calendar.prototype.getRect = function () {
    return this._rect;
  };
  Calendar.prototype.getCellWidth = function () {
    return this._sw;
  };
  Calendar.prototype.getCellHeight = function () {
    return this._sh;
  };
  Calendar.prototype.getOrient = function () {
    return this._orient;
  };
  /**
   * getFirstDayOfWeek
   *
   * @example
   *     0 : start at Sunday
   *     1 : start at Monday
   *
   * @return {number}
   */
  Calendar.prototype.getFirstDayOfWeek = function () {
    return this._firstDayOfWeek;
  };
  /**
   * get date info
   * }
   */
  Calendar.prototype.getDateInfo = function (date) {
    date = parseDate(date);
    var y = date.getFullYear();
    var m = date.getMonth() + 1;
    var mStr = m < 10 ? '0' + m : '' + m;
    var d = date.getDate();
    var dStr = d < 10 ? '0' + d : '' + d;
    var day = date.getDay();
    day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7);
    return {
      y: y + '',
      m: mStr,
      d: dStr,
      day: day,
      time: date.getTime(),
      formatedDate: y + '-' + mStr + '-' + dStr,
      date: date
    };
  };
  Calendar.prototype.getNextNDay = function (date, n) {
    n = n || 0;
    if (n === 0) {
      return this.getDateInfo(date);
    }
    date = new Date(this.getDateInfo(date).time);
    date.setDate(date.getDate() + n);
    return this.getDateInfo(date);
  };
  Calendar.prototype.update = function (ecModel, api) {
    this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay');
    this._orient = this._model.get('orient');
    this._lineWidth = this._model.getModel('itemStyle').getItemStyle().lineWidth || 0;
    this._rangeInfo = this._getRangeInfo(this._initRangeOption());
    var weeks = this._rangeInfo.weeks || 1;
    var whNames = ['width', 'height'];
    var cellSize = this._model.getCellSize().slice();
    var layoutParams = this._model.getBoxLayoutParams();
    var cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks];
    util["each"]([0, 1], function (idx) {
      if (cellSizeSpecified(cellSize, idx)) {
        layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx];
      }
    });
    var whGlobal = {
      width: api.getWidth(),
      height: api.getHeight()
    };
    var calendarRect = this._rect = getLayoutRect(layoutParams, whGlobal);
    util["each"]([0, 1], function (idx) {
      if (!cellSizeSpecified(cellSize, idx)) {
        cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx];
      }
    });
    function cellSizeSpecified(cellSize, idx) {
      return cellSize[idx] != null && cellSize[idx] !== 'auto';
    }
    // Has been calculated out number.
    this._sw = cellSize[0];
    this._sh = cellSize[1];
  };
  /**
   * Convert a time data(time, value) item to (x, y) point.
   */
  // TODO Clamp of calendar is not same with cartesian coordinate systems.
  // It will return NaN if data exceeds.
  Calendar.prototype.dataToPoint = function (data, clamp) {
    util["isArray"](data) && (data = data[0]);
    clamp == null && (clamp = true);
    var dayInfo = this.getDateInfo(data);
    var range = this._rangeInfo;
    var date = dayInfo.formatedDate;
    // if not in range return [NaN, NaN]
    if (clamp && !(dayInfo.time >= range.start.time && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY)) {
      return [NaN, NaN];
    }
    var week = dayInfo.day;
    var nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek;
    if (this._orient === 'vertical') {
      return [this._rect.x + week * this._sw + this._sw / 2, this._rect.y + nthWeek * this._sh + this._sh / 2];
    }
    return [this._rect.x + nthWeek * this._sw + this._sw / 2, this._rect.y + week * this._sh + this._sh / 2];
  };
  /**
   * Convert a (x, y) point to time data
   */
  Calendar.prototype.pointToData = function (point) {
    var date = this.pointToDate(point);
    return date && date.time;
  };
  /**
   * Convert a time date item to (x, y) four point.
   */
  Calendar.prototype.dataToRect = function (data, clamp) {
    var point = this.dataToPoint(data, clamp);
    return {
      contentShape: {
        x: point[0] - (this._sw - this._lineWidth) / 2,
        y: point[1] - (this._sh - this._lineWidth) / 2,
        width: this._sw - this._lineWidth,
        height: this._sh - this._lineWidth
      },
      center: point,
      tl: [point[0] - this._sw / 2, point[1] - this._sh / 2],
      tr: [point[0] + this._sw / 2, point[1] - this._sh / 2],
      br: [point[0] + this._sw / 2, point[1] + this._sh / 2],
      bl: [point[0] - this._sw / 2, point[1] + this._sh / 2]
    };
  };
  /**
   * Convert a (x, y) point to time date
   *
   * @param  {Array} point point
   * @return {Object}       date
   */
  Calendar.prototype.pointToDate = function (point) {
    var nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1;
    var nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1;
    var range = this._rangeInfo.range;
    if (this._orient === 'vertical') {
      return this._getDateByWeeksAndDay(nthY, nthX - 1, range);
    }
    return this._getDateByWeeksAndDay(nthX, nthY - 1, range);
  };
  Calendar.prototype.convertToPixel = function (ecModel, finder, value) {
    var coordSys = Calendar_getCoordSys(finder);
    return coordSys === this ? coordSys.dataToPoint(value) : null;
  };
  Calendar.prototype.convertFromPixel = function (ecModel, finder, pixel) {
    var coordSys = Calendar_getCoordSys(finder);
    return coordSys === this ? coordSys.pointToData(pixel) : null;
  };
  Calendar.prototype.containPoint = function (point) {
    console.warn('Not implemented.');
    return false;
  };
  /**
   * initRange
   * Normalize to an [start, end] array
   */
  Calendar.prototype._initRangeOption = function () {
    var range = this._model.get('range');
    var normalizedRange;
    // Convert [1990] to 1990
    if (util["isArray"](range) && range.length === 1) {
      range = range[0];
    }
    if (!util["isArray"](range)) {
      var rangeStr = range.toString();
      // One year.
      if (/^\d{4}$/.test(rangeStr)) {
        normalizedRange = [rangeStr + '-01-01', rangeStr + '-12-31'];
      }
      // One month
      if (/^\d{4}[\/|-]\d{1,2}$/.test(rangeStr)) {
        var start = this.getDateInfo(rangeStr);
        var firstDay = start.date;
        firstDay.setMonth(firstDay.getMonth() + 1);
        var end = this.getNextNDay(firstDay, -1);
        normalizedRange = [start.formatedDate, end.formatedDate];
      }
      // One day
      if (/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(rangeStr)) {
        normalizedRange = [rangeStr, rangeStr];
      }
    } else {
      normalizedRange = range;
    }
    if (!normalizedRange) {
      if (false) {}
      // Not handling it.
      return range;
    }
    var tmp = this._getRangeInfo(normalizedRange);
    if (tmp.start.time > tmp.end.time) {
      normalizedRange.reverse();
    }
    return normalizedRange;
  };
  /**
   * range info
   *
   * @private
   * @param  {Array} range range ['2017-01-01', '2017-07-08']
   *  If range[0] > range[1], they will not be reversed.
   * @return {Object}       obj
   */
  Calendar.prototype._getRangeInfo = function (range) {
    var parsedRange = [this.getDateInfo(range[0]), this.getDateInfo(range[1])];
    var reversed;
    if (parsedRange[0].time > parsedRange[1].time) {
      reversed = true;
      parsedRange.reverse();
    }
    var allDay = Math.floor(parsedRange[1].time / PROXIMATE_ONE_DAY) - Math.floor(parsedRange[0].time / PROXIMATE_ONE_DAY) + 1;
    // Consider case1 (#11677 #10430):
    // Set the system timezone as "UK", set the range to `['2016-07-01', '2016-12-31']`
    // Consider case2:
    // Firstly set system timezone as "Time Zone: America/Toronto",
    // ```
    // let first = new Date(1478412000000 - 3600 * 1000 * 2.5);
    // let second = new Date(1478412000000);
    // let allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1;
    // ```
    // will get wrong result because of DST. So we should fix it.
    var date = new Date(parsedRange[0].time);
    var startDateNum = date.getDate();
    var endDateNum = parsedRange[1].date.getDate();
    date.setDate(startDateNum + allDay - 1);
    // The bias can not over a month, so just compare date.
    var dateNum = date.getDate();
    if (dateNum !== endDateNum) {
      var sign = date.getTime() - parsedRange[1].time > 0 ? 1 : -1;
      while ((dateNum = date.getDate()) !== endDateNum && (date.getTime() - parsedRange[1].time) * sign > 0) {
        allDay -= sign;
        date.setDate(dateNum - sign);
      }
    }
    var weeks = Math.floor((allDay + parsedRange[0].day + 6) / 7);
    var nthWeek = reversed ? -weeks + 1 : weeks - 1;
    reversed && parsedRange.reverse();
    return {
      range: [parsedRange[0].formatedDate, parsedRange[1].formatedDate],
      start: parsedRange[0],
      end: parsedRange[1],
      allDay: allDay,
      weeks: weeks,
      // From 0.
      nthWeek: nthWeek,
      fweek: parsedRange[0].day,
      lweek: parsedRange[1].day
    };
  };
  /**
   * get date by nthWeeks and week day in range
   *
   * @private
   * @param  {number} nthWeek the week
   * @param  {number} day   the week day
   * @param  {Array} range [d1, d2]
   * @return {Object}
   */
  Calendar.prototype._getDateByWeeksAndDay = function (nthWeek, day, range) {
    var rangeInfo = this._getRangeInfo(range);
    if (nthWeek > rangeInfo.weeks || nthWeek === 0 && day < rangeInfo.fweek || nthWeek === rangeInfo.weeks && day > rangeInfo.lweek) {
      return null;
    }
    var nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day;
    var date = new Date(rangeInfo.start.time);
    date.setDate(+rangeInfo.start.d + nthDay);
    return this.getDateInfo(date);
  };
  Calendar.create = function (ecModel, api) {
    var calendarList = [];
    ecModel.eachComponent('calendar', function (calendarModel) {
      var calendar = new Calendar(calendarModel, ecModel, api);
      calendarList.push(calendar);
      calendarModel.coordinateSystem = calendar;
    });
    ecModel.eachSeries(function (calendarSeries) {
      if (calendarSeries.get('coordinateSystem') === 'calendar') {
        // Inject coordinate system
        calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0];
      }
    });
    return calendarList;
  };
  Calendar.dimensions = ['time', 'value'];
  return Calendar;
}();
function Calendar_getCoordSys(finder) {
  var calendarModel = finder.calendarModel;
  var seriesModel = finder.seriesModel;
  var coordSys = calendarModel ? calendarModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem : null;
  return coordSys;
}
/* harmony default export */ var calendar_Calendar = (Calendar_Calendar);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/calendar/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function calendar_install_install(registers) {
  registers.registerComponentModel(calendar_CalendarModel);
  registers.registerComponentView(calendar_CalendarView);
  registers.registerCoordinateSystem('calendar', calendar_Calendar);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/graphic/GraphicModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





;
;
;
function setKeyInfoToNewElOption(resultItem, newElOption) {
  var existElOption = resultItem.existing;
  // Set id and type after id assigned.
  newElOption.id = resultItem.keyInfo.id;
  !newElOption.type && existElOption && (newElOption.type = existElOption.type);
  // Set parent id if not specified
  if (newElOption.parentId == null) {
    var newElParentOption = newElOption.parentOption;
    if (newElParentOption) {
      newElOption.parentId = newElParentOption.id;
    } else if (existElOption) {
      newElOption.parentId = existElOption.parentId;
    }
  }
  // Clear
  newElOption.parentOption = null;
}
function isSetLoc(obj, props) {
  var isSet;
  util["each"](props, function (prop) {
    obj[prop] != null && obj[prop] !== 'auto' && (isSet = true);
  });
  return isSet;
}
function mergeNewElOptionToExist(existList, index, newElOption) {
  // Update existing options, for `getOption` feature.
  var newElOptCopy = util["extend"]({}, newElOption);
  var existElOption = existList[index];
  var $action = newElOption.$action || 'merge';
  if ($action === 'merge') {
    if (existElOption) {
      if (false) { var newType; }
      // We can ensure that newElOptCopy and existElOption are not
      // the same object, so `merge` will not change newElOptCopy.
      util["merge"](existElOption, newElOptCopy, true);
      // Rigid body, use ignoreSize.
      mergeLayoutParam(existElOption, newElOptCopy, {
        ignoreSize: true
      });
      // Will be used in render.
      copyLayoutParams(newElOption, existElOption);
      // Copy transition info to new option so it can be used in the transition.
      // DO IT AFTER merge
      copyTransitionInfo(newElOption, existElOption);
      copyTransitionInfo(newElOption, existElOption, 'shape');
      copyTransitionInfo(newElOption, existElOption, 'style');
      copyTransitionInfo(newElOption, existElOption, 'extra');
      // Copy clipPath
      newElOption.clipPath = existElOption.clipPath;
    } else {
      existList[index] = newElOptCopy;
    }
  } else if ($action === 'replace') {
    existList[index] = newElOptCopy;
  } else if ($action === 'remove') {
    // null will be cleaned later.
    existElOption && (existList[index] = null);
  }
}
var TRANSITION_PROPS_TO_COPY = ['transition', 'enterFrom', 'leaveTo'];
var ROOT_TRANSITION_PROPS_TO_COPY = TRANSITION_PROPS_TO_COPY.concat(['enterAnimation', 'updateAnimation', 'leaveAnimation']);
function copyTransitionInfo(target, source, targetProp) {
  if (targetProp) {
    if (!target[targetProp] && source[targetProp]) {
      // TODO avoid creating this empty object when there is no transition configuration.
      target[targetProp] = {};
    }
    target = target[targetProp];
    source = source[targetProp];
  }
  if (!target || !source) {
    return;
  }
  var props = targetProp ? TRANSITION_PROPS_TO_COPY : ROOT_TRANSITION_PROPS_TO_COPY;
  for (var i = 0; i < props.length; i++) {
    var prop = props[i];
    if (target[prop] == null && source[prop] != null) {
      target[prop] = source[prop];
    }
  }
}
function setLayoutInfoToExist(existItem, newElOption) {
  if (!existItem) {
    return;
  }
  existItem.hv = newElOption.hv = [
  // Rigid body, don't care about `width`.
  isSetLoc(newElOption, ['left', 'right']),
  // Rigid body, don't care about `height`.
  isSetLoc(newElOption, ['top', 'bottom'])];
  // Give default group size. Otherwise layout error may occur.
  if (existItem.type === 'group') {
    var existingGroupOpt = existItem;
    var newGroupOpt = newElOption;
    existingGroupOpt.width == null && (existingGroupOpt.width = newGroupOpt.width = 0);
    existingGroupOpt.height == null && (existingGroupOpt.height = newGroupOpt.height = 0);
  }
}
var GraphicModel_GraphicComponentModel = /** @class */function (_super) {
  __extends(GraphicComponentModel, _super);
  function GraphicComponentModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GraphicComponentModel.type;
    _this.preventAutoZ = true;
    return _this;
  }
  GraphicComponentModel.prototype.mergeOption = function (option, ecModel) {
    // Prevent default merge to elements
    var elements = this.option.elements;
    this.option.elements = null;
    _super.prototype.mergeOption.call(this, option, ecModel);
    this.option.elements = elements;
  };
  GraphicComponentModel.prototype.optionUpdated = function (newOption, isInit) {
    var thisOption = this.option;
    var newList = (isInit ? thisOption : newOption).elements;
    var existList = thisOption.elements = isInit ? [] : thisOption.elements;
    var flattenedList = [];
    this._flatten(newList, flattenedList, null);
    var mappingResult = mappingToExists(existList, flattenedList, 'normalMerge');
    // Clear elOptionsToUpdate
    var elOptionsToUpdate = this._elOptionsToUpdate = [];
    util["each"](mappingResult, function (resultItem, index) {
      var newElOption = resultItem.newOption;
      if (false) {}
      if (!newElOption) {
        return;
      }
      elOptionsToUpdate.push(newElOption);
      setKeyInfoToNewElOption(resultItem, newElOption);
      mergeNewElOptionToExist(existList, index, newElOption);
      setLayoutInfoToExist(existList[index], newElOption);
    }, this);
    // Clean
    thisOption.elements = util["filter"](existList, function (item) {
      // $action should be volatile, otherwise option gotten from
      // `getOption` will contain unexpected $action.
      item && delete item.$action;
      return item != null;
    });
  };
  /**
   * Convert
   * [{
   *  type: 'group',
   *  id: 'xx',
   *  children: [{type: 'circle'}, {type: 'polygon'}]
   * }]
   * to
   * [
   *  {type: 'group', id: 'xx'},
   *  {type: 'circle', parentId: 'xx'},
   *  {type: 'polygon', parentId: 'xx'}
   * ]
   */
  GraphicComponentModel.prototype._flatten = function (optionList, result, parentOption) {
    util["each"](optionList, function (option) {
      if (!option) {
        return;
      }
      if (parentOption) {
        option.parentOption = parentOption;
      }
      result.push(option);
      var children = option.children;
      // here we don't judge if option.type is `group`
      // when new option doesn't provide `type`, it will cause that the children can't be updated.
      if (children && children.length) {
        this._flatten(children, result, option);
      }
      // Deleting for JSON output, and for not affecting group creation.
      delete option.children;
    }, this);
  };
  // FIXME
  // Pass to view using payload? setOption has a payload?
  GraphicComponentModel.prototype.useElOptionsToUpdate = function () {
    var els = this._elOptionsToUpdate;
    // Clear to avoid render duplicately when zooming.
    this._elOptionsToUpdate = null;
    return els;
  };
  GraphicComponentModel.type = 'graphic';
  GraphicComponentModel.defaultOption = {
    elements: []
    // parentId: null
  };
  return GraphicComponentModel;
}(Component);

// CONCATENATED MODULE: ./node_modules/echarts/lib/component/graphic/GraphicView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/













var nonShapeGraphicElements = {
  // Reserved but not supported in graphic component.
  path: null,
  compoundPath: null,
  // Supported in graphic component.
  group: graphic_Group,
  image: graphic_Image,
  text: Text
};
var GraphicView_inner = makeInner();
// ------------------------
// View
// ------------------------
var GraphicView_GraphicComponentView = /** @class */function (_super) {
  __extends(GraphicComponentView, _super);
  function GraphicComponentView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = GraphicComponentView.type;
    return _this;
  }
  GraphicComponentView.prototype.init = function () {
    this._elMap = util["createHashMap"]();
  };
  GraphicComponentView.prototype.render = function (graphicModel, ecModel, api) {
    // Having leveraged between use cases and algorithm complexity, a very
    // simple layout mechanism is used:
    // The size(width/height) can be determined by itself or its parent (not
    // implemented yet), but can not by its children. (Top-down travel)
    // The location(x/y) can be determined by the bounding rect of itself
    // (can including its descendants or not) and the size of its parent.
    // (Bottom-up travel)
    // When `chart.clear()` or `chart.setOption({...}, true)` with the same id,
    // view will be reused.
    if (graphicModel !== this._lastGraphicModel) {
      this._clear();
    }
    this._lastGraphicModel = graphicModel;
    this._updateElements(graphicModel);
    this._relocate(graphicModel, api);
  };
  /**
   * Update graphic elements.
   */
  GraphicComponentView.prototype._updateElements = function (graphicModel) {
    var elOptionsToUpdate = graphicModel.useElOptionsToUpdate();
    if (!elOptionsToUpdate) {
      return;
    }
    var elMap = this._elMap;
    var rootGroup = this.group;
    var globalZ = graphicModel.get('z');
    var globalZLevel = graphicModel.get('zlevel');
    // Top-down tranverse to assign graphic settings to each elements.
    util["each"](elOptionsToUpdate, function (elOption) {
      var id = convertOptionIdName(elOption.id, null);
      var elExisting = id != null ? elMap.get(id) : null;
      var parentId = convertOptionIdName(elOption.parentId, null);
      var targetElParent = parentId != null ? elMap.get(parentId) : rootGroup;
      var elType = elOption.type;
      var elOptionStyle = elOption.style;
      if (elType === 'text' && elOptionStyle) {
        // In top/bottom mode, textVerticalAlign should not be used, which cause
        // inaccurately locating.
        if (elOption.hv && elOption.hv[1]) {
          elOptionStyle.textVerticalAlign = elOptionStyle.textBaseline = elOptionStyle.verticalAlign = elOptionStyle.align = null;
        }
      }
      var textContentOption = elOption.textContent;
      var textConfig = elOption.textConfig;
      if (elOptionStyle && isEC4CompatibleStyle(elOptionStyle, elType, !!textConfig, !!textContentOption)) {
        var convertResult = convertFromEC4CompatibleStyle(elOptionStyle, elType, true);
        if (!textConfig && convertResult.textConfig) {
          textConfig = elOption.textConfig = convertResult.textConfig;
        }
        if (!textContentOption && convertResult.textContent) {
          textContentOption = convertResult.textContent;
        }
      }
      // Remove unnecessary props to avoid potential problems.
      var elOptionCleaned = getCleanedElOption(elOption);
      // For simple, do not support parent change, otherwise reorder is needed.
      if (false) {}
      var $action = elOption.$action || 'merge';
      var isMerge = $action === 'merge';
      var isReplace = $action === 'replace';
      if (isMerge) {
        var isInit = !elExisting;
        var el_1 = elExisting;
        if (isInit) {
          el_1 = GraphicView_createEl(id, targetElParent, elOption.type, elMap);
        } else {
          el_1 && (GraphicView_inner(el_1).isNew = false);
          // Stop and restore before update any other attributes.
          stopPreviousKeyframeAnimationAndRestore(el_1);
        }
        if (el_1) {
          applyUpdateTransition(el_1, elOptionCleaned, graphicModel, {
            isInit: isInit
          });
          updateCommonAttrs(el_1, elOption, globalZ, globalZLevel);
        }
      } else if (isReplace) {
        removeEl(elExisting, elOption, elMap, graphicModel);
        var el_2 = GraphicView_createEl(id, targetElParent, elOption.type, elMap);
        if (el_2) {
          applyUpdateTransition(el_2, elOptionCleaned, graphicModel, {
            isInit: true
          });
          updateCommonAttrs(el_2, elOption, globalZ, globalZLevel);
        }
      } else if ($action === 'remove') {
        updateLeaveTo(elExisting, elOption);
        removeEl(elExisting, elOption, elMap, graphicModel);
      }
      var el = elMap.get(id);
      if (el && textContentOption) {
        if (isMerge) {
          var textContentExisting = el.getTextContent();
          textContentExisting ? textContentExisting.attr(textContentOption) : el.setTextContent(new Text(textContentOption));
        } else if (isReplace) {
          el.setTextContent(new Text(textContentOption));
        }
      }
      if (el) {
        var clipPathOption = elOption.clipPath;
        if (clipPathOption) {
          var clipPathType = clipPathOption.type;
          var clipPath = void 0;
          var isInit = false;
          if (isMerge) {
            var oldClipPath = el.getClipPath();
            isInit = !oldClipPath || GraphicView_inner(oldClipPath).type !== clipPathType;
            clipPath = isInit ? GraphicView_newEl(clipPathType) : oldClipPath;
          } else if (isReplace) {
            isInit = true;
            clipPath = GraphicView_newEl(clipPathType);
          }
          el.setClipPath(clipPath);
          applyUpdateTransition(clipPath, clipPathOption, graphicModel, {
            isInit: isInit
          });
          applyKeyframeAnimation(clipPath, clipPathOption.keyframeAnimation, graphicModel);
        }
        var elInner = GraphicView_inner(el);
        el.setTextConfig(textConfig);
        elInner.option = elOption;
        setEventData(el, graphicModel, elOption);
        setTooltipConfig({
          el: el,
          componentModel: graphicModel,
          itemName: el.name,
          itemTooltipOption: elOption.tooltip
        });
        applyKeyframeAnimation(el, elOption.keyframeAnimation, graphicModel);
      }
    });
  };
  /**
   * Locate graphic elements.
   */
  GraphicComponentView.prototype._relocate = function (graphicModel, api) {
    var elOptions = graphicModel.option.elements;
    var rootGroup = this.group;
    var elMap = this._elMap;
    var apiWidth = api.getWidth();
    var apiHeight = api.getHeight();
    var xy = ['x', 'y'];
    // Top-down to calculate percentage width/height of group
    for (var i = 0; i < elOptions.length; i++) {
      var elOption = elOptions[i];
      var id = convertOptionIdName(elOption.id, null);
      var el = id != null ? elMap.get(id) : null;
      if (!el || !el.isGroup) {
        continue;
      }
      var parentEl = el.parent;
      var isParentRoot = parentEl === rootGroup;
      // Like 'position:absolut' in css, default 0.
      var elInner = GraphicView_inner(el);
      var parentElInner = GraphicView_inner(parentEl);
      elInner.width = number_parsePercent(elInner.option.width, isParentRoot ? apiWidth : parentElInner.width) || 0;
      elInner.height = number_parsePercent(elInner.option.height, isParentRoot ? apiHeight : parentElInner.height) || 0;
    }
    // Bottom-up tranvese all elements (consider ec resize) to locate elements.
    for (var i = elOptions.length - 1; i >= 0; i--) {
      var elOption = elOptions[i];
      var id = convertOptionIdName(elOption.id, null);
      var el = id != null ? elMap.get(id) : null;
      if (!el) {
        continue;
      }
      var parentEl = el.parent;
      var parentElInner = GraphicView_inner(parentEl);
      var containerInfo = parentEl === rootGroup ? {
        width: apiWidth,
        height: apiHeight
      } : {
        width: parentElInner.width,
        height: parentElInner.height
      };
      // PENDING
      // Currently, when `bounding: 'all'`, the union bounding rect of the group
      // does not include the rect of [0, 0, group.width, group.height], which
      // is probably weird for users. Should we make a break change for it?
      var layoutPos = {};
      var layouted = positionElement(el, elOption, containerInfo, null, {
        hv: elOption.hv,
        boundingMode: elOption.bounding
      }, layoutPos);
      if (!GraphicView_inner(el).isNew && layouted) {
        var transition = elOption.transition;
        var animatePos = {};
        for (var k = 0; k < xy.length; k++) {
          var key = xy[k];
          var val = layoutPos[key];
          if (transition && (isTransitionAll(transition) || util["indexOf"](transition, key) >= 0)) {
            animatePos[key] = val;
          } else {
            el[key] = val;
          }
        }
        updateProps(el, animatePos, graphicModel, 0);
      } else {
        el.attr(layoutPos);
      }
    }
  };
  /**
   * Clear all elements.
   */
  GraphicComponentView.prototype._clear = function () {
    var _this = this;
    var elMap = this._elMap;
    elMap.each(function (el) {
      removeEl(el, GraphicView_inner(el).option, elMap, _this._lastGraphicModel);
    });
    this._elMap = util["createHashMap"]();
  };
  GraphicComponentView.prototype.dispose = function () {
    this._clear();
  };
  GraphicComponentView.type = 'graphic';
  return GraphicComponentView;
}(view_Component);

function GraphicView_newEl(graphicType) {
  if (false) {}
  var Clz = util["hasOwn"](nonShapeGraphicElements, graphicType)
  // Those graphic elements are not shapes. They should not be
  // overwritten by users, so do them first.
  ? nonShapeGraphicElements[graphicType] : getShapeClass(graphicType);
  if (false) {}
  var el = new Clz({});
  GraphicView_inner(el).type = graphicType;
  return el;
}
function GraphicView_createEl(id, targetElParent, graphicType, elMap) {
  var el = GraphicView_newEl(graphicType);
  targetElParent.add(el);
  elMap.set(id, el);
  GraphicView_inner(el).id = id;
  GraphicView_inner(el).isNew = true;
  return el;
}
function removeEl(elExisting, elOption, elMap, graphicModel) {
  var existElParent = elExisting && elExisting.parent;
  if (existElParent) {
    elExisting.type === 'group' && elExisting.traverse(function (el) {
      removeEl(el, elOption, elMap, graphicModel);
    });
    applyLeaveTransition(elExisting, elOption, graphicModel);
    elMap.removeKey(GraphicView_inner(elExisting).id);
  }
}
function updateCommonAttrs(el, elOption, defaultZ, defaultZlevel) {
  if (!el.isGroup) {
    util["each"]([['cursor', graphic_Displayable.prototype.cursor],
    // We should not support configure z and zlevel in the element level.
    // But seems we didn't limit it previously. So here still use it to avoid breaking.
    ['zlevel', defaultZlevel || 0], ['z', defaultZ || 0],
    // z2 must not be null/undefined, otherwise sort error may occur.
    ['z2', 0]], function (item) {
      var prop = item[0];
      if (util["hasOwn"](elOption, prop)) {
        el[prop] = util["retrieve2"](elOption[prop], item[1]);
      } else if (el[prop] == null) {
        el[prop] = item[1];
      }
    });
  }
  util["each"](util["keys"](elOption), function (key) {
    // Assign event handlers.
    // PENDING: should enumerate all event names or use pattern matching?
    if (key.indexOf('on') === 0) {
      var val = elOption[key];
      el[key] = util["isFunction"](val) ? val : null;
    }
  });
  if (util["hasOwn"](elOption, 'draggable')) {
    el.draggable = elOption.draggable;
  }
  // Other attributes
  elOption.name != null && (el.name = elOption.name);
  elOption.id != null && (el.id = elOption.id);
}
// Remove unnecessary props to avoid potential problems.
function getCleanedElOption(elOption) {
  elOption = util["extend"]({}, elOption);
  util["each"](['id', 'parentId', '$action', 'hv', 'bounding', 'textContent', 'clipPath'].concat(LOCATION_PARAMS), function (name) {
    delete elOption[name];
  });
  return elOption;
}
function setEventData(el, graphicModel, elOption) {
  var eventData = getECData(el).eventData;
  // Simple optimize for large amount of elements that no need event.
  if (!el.silent && !el.ignore && !eventData) {
    eventData = getECData(el).eventData = {
      componentType: 'graphic',
      componentIndex: graphicModel.componentIndex,
      name: el.name
    };
  }
  // `elOption.info` enables user to mount some info on
  // elements and use them in event handlers.
  if (eventData) {
    eventData.info = elOption.info;
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/graphic/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function graphic_install_install(registers) {
  registers.registerComponentModel(GraphicModel_GraphicComponentModel);
  registers.registerComponentView(GraphicView_GraphicComponentView);
  registers.registerPreprocessor(function (option) {
    var graphicOption = option.graphic;
    // Convert
    // {graphic: [{left: 10, type: 'circle'}, ...]}
    // or
    // {graphic: {left: 10, type: 'circle'}}
    // to
    // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}
    if (Object(util["isArray"])(graphicOption)) {
      if (!graphicOption[0] || !graphicOption[0].elements) {
        option.graphic = [{
          elements: graphicOption
        }];
      } else {
        // Only one graphic instance can be instantiated. (We don't
        // want that too many views are created in echarts._viewMap.)
        option.graphic = [option.graphic[0]];
      }
    } else if (graphicOption && !graphicOption.elements) {
      option.graphic = [{
        elements: [graphicOption]
      }];
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/helper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

var DATA_ZOOM_AXIS_DIMENSIONS = ['x', 'y', 'radius', 'angle', 'single'];
// Supported coords.
// FIXME: polar has been broken (but rarely used).
var SERIES_COORDS = ['cartesian2d', 'polar', 'singleAxis'];
function isCoordSupported(seriesModel) {
  var coordType = seriesModel.get('coordinateSystem');
  return Object(util["indexOf"])(SERIES_COORDS, coordType) >= 0;
}
function getAxisMainType(axisDim) {
  if (false) {}
  return axisDim + 'Axis';
}
function getAxisIndexPropName(axisDim) {
  if (false) {}
  return axisDim + 'AxisIndex';
}
function getAxisIdPropName(axisDim) {
  if (false) {}
  return axisDim + 'AxisId';
}
/**
 * If two dataZoomModels has the same axis controlled, we say that they are 'linked'.
 * This function finds all linked dataZoomModels start from the given payload.
 */
function findEffectedDataZooms(ecModel, payload) {
  // Key: `DataZoomAxisDimension`
  var axisRecords = Object(util["createHashMap"])();
  var effectedModels = [];
  // Key: uid of dataZoomModel
  var effectedModelMap = Object(util["createHashMap"])();
  // Find the dataZooms specified by payload.
  ecModel.eachComponent({
    mainType: 'dataZoom',
    query: payload
  }, function (dataZoomModel) {
    if (!effectedModelMap.get(dataZoomModel.uid)) {
      addToEffected(dataZoomModel);
    }
  });
  // Start from the given dataZoomModels, travel the graph to find
  // all of the linked dataZoom models.
  var foundNewLink;
  do {
    foundNewLink = false;
    ecModel.eachComponent('dataZoom', processSingle);
  } while (foundNewLink);
  function processSingle(dataZoomModel) {
    if (!effectedModelMap.get(dataZoomModel.uid) && isLinked(dataZoomModel)) {
      addToEffected(dataZoomModel);
      foundNewLink = true;
    }
  }
  function addToEffected(dataZoom) {
    effectedModelMap.set(dataZoom.uid, true);
    effectedModels.push(dataZoom);
    markAxisControlled(dataZoom);
  }
  function isLinked(dataZoomModel) {
    var isLink = false;
    dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
      var axisIdxArr = axisRecords.get(axisDim);
      if (axisIdxArr && axisIdxArr[axisIndex]) {
        isLink = true;
      }
    });
    return isLink;
  }
  function markAxisControlled(dataZoomModel) {
    dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
      (axisRecords.get(axisDim) || axisRecords.set(axisDim, []))[axisIndex] = true;
    });
  }
  return effectedModels;
}
/**
 * Find the first target coordinate system.
 * Available after model built.
 *
 * @return Like {
 *                  grid: [
 *                      {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},
 *                      {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},
 *                      ...
 *                  ],  // cartesians must not be null/undefined.
 *                  polar: [
 *                      {model: coord0, axisModels: [axis4], coordIndex: 0},
 *                      ...
 *                  ],  // polars must not be null/undefined.
 *                  singleAxis: [
 *                      {model: coord0, axisModels: [], coordIndex: 0}
 *                  ]
 *              }
 */
function collectReferCoordSysModelInfo(dataZoomModel) {
  var ecModel = dataZoomModel.ecModel;
  var coordSysInfoWrap = {
    infoList: [],
    infoMap: Object(util["createHashMap"])()
  };
  dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
    var axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);
    if (!axisModel) {
      return;
    }
    var coordSysModel = axisModel.getCoordSysModel();
    if (!coordSysModel) {
      return;
    }
    var coordSysUid = coordSysModel.uid;
    var coordSysInfo = coordSysInfoWrap.infoMap.get(coordSysUid);
    if (!coordSysInfo) {
      coordSysInfo = {
        model: coordSysModel,
        axisModels: []
      };
      coordSysInfoWrap.infoList.push(coordSysInfo);
      coordSysInfoWrap.infoMap.set(coordSysUid, coordSysInfo);
    }
    coordSysInfo.axisModels.push(axisModel);
  });
  return coordSysInfoWrap;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/DataZoomModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var DataZoomAxisInfo = /** @class */function () {
  function DataZoomAxisInfo() {
    this.indexList = [];
    this.indexMap = [];
  }
  DataZoomAxisInfo.prototype.add = function (axisCmptIdx) {
    // Remove duplication.
    if (!this.indexMap[axisCmptIdx]) {
      this.indexList.push(axisCmptIdx);
      this.indexMap[axisCmptIdx] = true;
    }
  };
  return DataZoomAxisInfo;
}();
var DataZoomModel_DataZoomModel = /** @class */function (_super) {
  __extends(DataZoomModel, _super);
  function DataZoomModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = DataZoomModel.type;
    _this._autoThrottle = true;
    _this._noTarget = true;
    /**
     * It is `[rangeModeForMin, rangeModeForMax]`.
     * The optional values for `rangeMode`:
     * + `'value'` mode: the axis extent will always be determined by
     *     `dataZoom.startValue` and `dataZoom.endValue`, despite
     *     how data like and how `axis.min` and `axis.max` are.
     * + `'percent'` mode: `100` represents 100% of the `[dMin, dMax]`,
     *     where `dMin` is `axis.min` if `axis.min` specified, otherwise `data.extent[0]`,
     *     and `dMax` is `axis.max` if `axis.max` specified, otherwise `data.extent[1]`.
     *     Axis extent will be determined by the result of the percent of `[dMin, dMax]`.
     *
     * For example, when users are using dynamic data (update data periodically via `setOption`),
     * if in `'value`' mode, the window will be kept in a fixed value range despite how
     * data are appended, while if in `'percent'` mode, whe window range will be changed alone with
     * the appended data (suppose `axis.min` and `axis.max` are not specified).
     */
    _this._rangePropMode = ['percent', 'percent'];
    return _this;
  }
  DataZoomModel.prototype.init = function (option, parentModel, ecModel) {
    var inputRawOption = retrieveRawOption(option);
    /**
     * Suppose a "main process" start at the point that model prepared (that is,
     * model initialized or merged or method called in `action`).
     * We should keep the `main process` idempotent, that is, given a set of values
     * on `option`, we get the same result.
     *
     * But sometimes, values on `option` will be updated for providing users
     * a "final calculated value" (`dataZoomProcessor` will do that). Those value
     * should not be the base/input of the `main process`.
     *
     * So in that case we should save and keep the input of the `main process`
     * separately, called `settledOption`.
     *
     * For example, consider the case:
     * (Step_1) brush zoom the grid by `toolbox.dataZoom`,
     *     where the original input `option.startValue`, `option.endValue` are earsed by
     *     calculated value.
     * (Step)2) click the legend to hide and show a series,
     *     where the new range is calculated by the earsed `startValue` and `endValue`,
     *     which brings incorrect result.
     */
    this.settledOption = inputRawOption;
    this.mergeDefaultAndTheme(option, ecModel);
    this._doInit(inputRawOption);
  };
  DataZoomModel.prototype.mergeOption = function (newOption) {
    var inputRawOption = retrieveRawOption(newOption);
    // FIX #2591
    Object(util["merge"])(this.option, newOption, true);
    Object(util["merge"])(this.settledOption, inputRawOption, true);
    this._doInit(inputRawOption);
  };
  DataZoomModel.prototype._doInit = function (inputRawOption) {
    var thisOption = this.option;
    this._setDefaultThrottle(inputRawOption);
    this._updateRangeUse(inputRawOption);
    var settledOption = this.settledOption;
    Object(util["each"])([['start', 'startValue'], ['end', 'endValue']], function (names, index) {
      // start/end has higher priority over startValue/endValue if they
      // both set, but we should make chart.setOption({endValue: 1000})
      // effective, rather than chart.setOption({endValue: 1000, end: null}).
      if (this._rangePropMode[index] === 'value') {
        thisOption[names[0]] = settledOption[names[0]] = null;
      }
      // Otherwise do nothing and use the merge result.
    }, this);
    this._resetTarget();
  };
  DataZoomModel.prototype._resetTarget = function () {
    var optionOrient = this.get('orient', true);
    var targetAxisIndexMap = this._targetAxisInfoMap = Object(util["createHashMap"])();
    var hasAxisSpecified = this._fillSpecifiedTargetAxis(targetAxisIndexMap);
    if (hasAxisSpecified) {
      this._orient = optionOrient || this._makeAutoOrientByTargetAxis();
    } else {
      this._orient = optionOrient || 'horizontal';
      this._fillAutoTargetAxisByOrient(targetAxisIndexMap, this._orient);
    }
    this._noTarget = true;
    targetAxisIndexMap.each(function (axisInfo) {
      if (axisInfo.indexList.length) {
        this._noTarget = false;
      }
    }, this);
  };
  DataZoomModel.prototype._fillSpecifiedTargetAxis = function (targetAxisIndexMap) {
    var hasAxisSpecified = false;
    Object(util["each"])(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {
      var refering = this.getReferringComponents(getAxisMainType(axisDim), MULTIPLE_REFERRING);
      // When user set axisIndex as a empty array, we think that user specify axisIndex
      // but do not want use auto mode. Because empty array may be encountered when
      // some error occurred.
      if (!refering.specified) {
        return;
      }
      hasAxisSpecified = true;
      var axisInfo = new DataZoomAxisInfo();
      Object(util["each"])(refering.models, function (axisModel) {
        axisInfo.add(axisModel.componentIndex);
      });
      targetAxisIndexMap.set(axisDim, axisInfo);
    }, this);
    return hasAxisSpecified;
  };
  DataZoomModel.prototype._fillAutoTargetAxisByOrient = function (targetAxisIndexMap, orient) {
    var ecModel = this.ecModel;
    var needAuto = true;
    // Find axis that parallel to dataZoom as default.
    if (needAuto) {
      var axisDim = orient === 'vertical' ? 'y' : 'x';
      var axisModels = ecModel.findComponents({
        mainType: axisDim + 'Axis'
      });
      setParallelAxis(axisModels, axisDim);
    }
    // Find axis that parallel to dataZoom as default.
    if (needAuto) {
      var axisModels = ecModel.findComponents({
        mainType: 'singleAxis',
        filter: function (axisModel) {
          return axisModel.get('orient', true) === orient;
        }
      });
      setParallelAxis(axisModels, 'single');
    }
    function setParallelAxis(axisModels, axisDim) {
      // At least use the first parallel axis as the target axis.
      var axisModel = axisModels[0];
      if (!axisModel) {
        return;
      }
      var axisInfo = new DataZoomAxisInfo();
      axisInfo.add(axisModel.componentIndex);
      targetAxisIndexMap.set(axisDim, axisInfo);
      needAuto = false;
      // Find parallel axes in the same grid.
      if (axisDim === 'x' || axisDim === 'y') {
        var gridModel_1 = axisModel.getReferringComponents('grid', SINGLE_REFERRING).models[0];
        gridModel_1 && Object(util["each"])(axisModels, function (axModel) {
          if (axisModel.componentIndex !== axModel.componentIndex && gridModel_1 === axModel.getReferringComponents('grid', SINGLE_REFERRING).models[0]) {
            axisInfo.add(axModel.componentIndex);
          }
        });
      }
    }
    if (needAuto) {
      // If no parallel axis, find the first category axis as default. (Also consider polar).
      Object(util["each"])(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {
        if (!needAuto) {
          return;
        }
        var axisModels = ecModel.findComponents({
          mainType: getAxisMainType(axisDim),
          filter: function (axisModel) {
            return axisModel.get('type', true) === 'category';
          }
        });
        if (axisModels[0]) {
          var axisInfo = new DataZoomAxisInfo();
          axisInfo.add(axisModels[0].componentIndex);
          targetAxisIndexMap.set(axisDim, axisInfo);
          needAuto = false;
        }
      }, this);
    }
  };
  DataZoomModel.prototype._makeAutoOrientByTargetAxis = function () {
    var dim;
    // Find the first axis
    this.eachTargetAxis(function (axisDim) {
      !dim && (dim = axisDim);
    }, this);
    return dim === 'y' ? 'vertical' : 'horizontal';
  };
  DataZoomModel.prototype._setDefaultThrottle = function (inputRawOption) {
    // When first time user set throttle, auto throttle ends.
    if (inputRawOption.hasOwnProperty('throttle')) {
      this._autoThrottle = false;
    }
    if (this._autoThrottle) {
      var globalOption = this.ecModel.option;
      this.option.throttle = globalOption.animation && globalOption.animationDurationUpdate > 0 ? 100 : 20;
    }
  };
  DataZoomModel.prototype._updateRangeUse = function (inputRawOption) {
    var rangePropMode = this._rangePropMode;
    var rangeModeInOption = this.get('rangeMode');
    Object(util["each"])([['start', 'startValue'], ['end', 'endValue']], function (names, index) {
      var percentSpecified = inputRawOption[names[0]] != null;
      var valueSpecified = inputRawOption[names[1]] != null;
      if (percentSpecified && !valueSpecified) {
        rangePropMode[index] = 'percent';
      } else if (!percentSpecified && valueSpecified) {
        rangePropMode[index] = 'value';
      } else if (rangeModeInOption) {
        rangePropMode[index] = rangeModeInOption[index];
      } else if (percentSpecified) {
        // percentSpecified && valueSpecified
        rangePropMode[index] = 'percent';
      }
      // else remain its original setting.
    });
  };
  DataZoomModel.prototype.noTarget = function () {
    return this._noTarget;
  };
  DataZoomModel.prototype.getFirstTargetAxisModel = function () {
    var firstAxisModel;
    this.eachTargetAxis(function (axisDim, axisIndex) {
      if (firstAxisModel == null) {
        firstAxisModel = this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex);
      }
    }, this);
    return firstAxisModel;
  };
  /**
   * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel
   */
  DataZoomModel.prototype.eachTargetAxis = function (callback, context) {
    this._targetAxisInfoMap.each(function (axisInfo, axisDim) {
      Object(util["each"])(axisInfo.indexList, function (axisIndex) {
        callback.call(context, axisDim, axisIndex);
      });
    });
  };
  /**
   * @return If not found, return null/undefined.
   */
  DataZoomModel.prototype.getAxisProxy = function (axisDim, axisIndex) {
    var axisModel = this.getAxisModel(axisDim, axisIndex);
    if (axisModel) {
      return axisModel.__dzAxisProxy;
    }
  };
  /**
   * @return If not found, return null/undefined.
   */
  DataZoomModel.prototype.getAxisModel = function (axisDim, axisIndex) {
    if (false) {}
    var axisInfo = this._targetAxisInfoMap.get(axisDim);
    if (axisInfo && axisInfo.indexMap[axisIndex]) {
      return this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex);
    }
  };
  /**
   * If not specified, set to undefined.
   */
  DataZoomModel.prototype.setRawRange = function (opt) {
    var thisOption = this.option;
    var settledOption = this.settledOption;
    Object(util["each"])([['start', 'startValue'], ['end', 'endValue']], function (names) {
      // Consider the pair <start, startValue>:
      // If one has value and the other one is `null/undefined`, we both set them
      // to `settledOption`. This strategy enables the feature to clear the original
      // value in `settledOption` to `null/undefined`.
      // But if both of them are `null/undefined`, we do not set them to `settledOption`
      // and keep `settledOption` with the original value. This strategy enables users to
      // only set <end or endValue> but not set <start or startValue> when calling
      // `dispatchAction`.
      // The pair <end, endValue> is treated in the same way.
      if (opt[names[0]] != null || opt[names[1]] != null) {
        thisOption[names[0]] = settledOption[names[0]] = opt[names[0]];
        thisOption[names[1]] = settledOption[names[1]] = opt[names[1]];
      }
    }, this);
    this._updateRangeUse(opt);
  };
  DataZoomModel.prototype.setCalculatedRange = function (opt) {
    var option = this.option;
    Object(util["each"])(['start', 'startValue', 'end', 'endValue'], function (name) {
      option[name] = opt[name];
    });
  };
  DataZoomModel.prototype.getPercentRange = function () {
    var axisProxy = this.findRepresentativeAxisProxy();
    if (axisProxy) {
      return axisProxy.getDataPercentWindow();
    }
  };
  /**
   * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);
   *
   * @return [startValue, endValue] value can only be '-' or finite number.
   */
  DataZoomModel.prototype.getValueRange = function (axisDim, axisIndex) {
    if (axisDim == null && axisIndex == null) {
      var axisProxy = this.findRepresentativeAxisProxy();
      if (axisProxy) {
        return axisProxy.getDataValueWindow();
      }
    } else {
      return this.getAxisProxy(axisDim, axisIndex).getDataValueWindow();
    }
  };
  /**
   * @param axisModel If axisModel given, find axisProxy
   *      corresponding to the axisModel
   */
  DataZoomModel.prototype.findRepresentativeAxisProxy = function (axisModel) {
    if (axisModel) {
      return axisModel.__dzAxisProxy;
    }
    // Find the first hosted axisProxy
    var firstProxy;
    var axisDimList = this._targetAxisInfoMap.keys();
    for (var i = 0; i < axisDimList.length; i++) {
      var axisDim = axisDimList[i];
      var axisInfo = this._targetAxisInfoMap.get(axisDim);
      for (var j = 0; j < axisInfo.indexList.length; j++) {
        var proxy = this.getAxisProxy(axisDim, axisInfo.indexList[j]);
        if (proxy.hostedBy(this)) {
          return proxy;
        }
        if (!firstProxy) {
          firstProxy = proxy;
        }
      }
    }
    // If no hosted proxy found, still need to return a proxy.
    // This case always happens in toolbox dataZoom, where axes are all hosted by
    // other dataZooms.
    return firstProxy;
  };
  DataZoomModel.prototype.getRangePropMode = function () {
    return this._rangePropMode.slice();
  };
  DataZoomModel.prototype.getOrient = function () {
    if (false) {}
    return this._orient;
  };
  DataZoomModel.type = 'dataZoom';
  DataZoomModel.dependencies = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series', 'toolbox'];
  DataZoomModel.defaultOption = {
    // zlevel: 0,
    z: 4,
    filterMode: 'filter',
    start: 0,
    end: 100
  };
  return DataZoomModel;
}(Component);
/**
 * Retrieve those raw params from option, which will be cached separately,
 * because they will be overwritten by normalized/calculated values in the main
 * process.
 */
function retrieveRawOption(option) {
  var ret = {};
  Object(util["each"])(['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) {
    option.hasOwnProperty(name) && (ret[name] = option[name]);
  });
  return ret;
}
/* harmony default export */ var dataZoom_DataZoomModel = (DataZoomModel_DataZoomModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var SelectZoomModel_SelectDataZoomModel = /** @class */function (_super) {
  __extends(SelectDataZoomModel, _super);
  function SelectDataZoomModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SelectDataZoomModel.type;
    return _this;
  }
  SelectDataZoomModel.type = 'dataZoom.select';
  return SelectDataZoomModel;
}(dataZoom_DataZoomModel);
/* harmony default export */ var SelectZoomModel = (SelectZoomModel_SelectDataZoomModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/DataZoomView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var DataZoomView_DataZoomView = /** @class */function (_super) {
  __extends(DataZoomView, _super);
  function DataZoomView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = DataZoomView.type;
    return _this;
  }
  DataZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) {
    this.dataZoomModel = dataZoomModel;
    this.ecModel = ecModel;
    this.api = api;
  };
  DataZoomView.type = 'dataZoom';
  return DataZoomView;
}(view_Component);
/* harmony default export */ var dataZoom_DataZoomView = (DataZoomView_DataZoomView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/SelectZoomView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var SelectZoomView_SelectDataZoomView = /** @class */function (_super) {
  __extends(SelectDataZoomView, _super);
  function SelectDataZoomView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SelectDataZoomView.type;
    return _this;
  }
  SelectDataZoomView.type = 'dataZoom.select';
  return SelectDataZoomView;
}(dataZoom_DataZoomView);
/* harmony default export */ var SelectZoomView = (SelectZoomView_SelectDataZoomView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/AxisProxy.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var AxisProxy_each = util["each"];
var AxisProxy_asc = asc;
/**
 * Operate single axis.
 * One axis can only operated by one axis operator.
 * Different dataZoomModels may be defined to operate the same axis.
 * (i.e. 'inside' data zoom and 'slider' data zoom components)
 * So dataZoomModels share one axisProxy in that case.
 */
var AxisProxy_AxisProxy = /** @class */function () {
  function AxisProxy(dimName, axisIndex, dataZoomModel, ecModel) {
    this._dimName = dimName;
    this._axisIndex = axisIndex;
    this.ecModel = ecModel;
    this._dataZoomModel = dataZoomModel;
    // /**
    //  * @readOnly
    //  * @private
    //  */
    // this.hasSeriesStacked;
  }
  /**
   * Whether the axisProxy is hosted by dataZoomModel.
   */
  AxisProxy.prototype.hostedBy = function (dataZoomModel) {
    return this._dataZoomModel === dataZoomModel;
  };
  /**
   * @return Value can only be NaN or finite value.
   */
  AxisProxy.prototype.getDataValueWindow = function () {
    return this._valueWindow.slice();
  };
  /**
   * @return {Array.<number>}
   */
  AxisProxy.prototype.getDataPercentWindow = function () {
    return this._percentWindow.slice();
  };
  AxisProxy.prototype.getTargetSeriesModels = function () {
    var seriesModels = [];
    this.ecModel.eachSeries(function (seriesModel) {
      if (isCoordSupported(seriesModel)) {
        var axisMainType = getAxisMainType(this._dimName);
        var axisModel = seriesModel.getReferringComponents(axisMainType, SINGLE_REFERRING).models[0];
        if (axisModel && this._axisIndex === axisModel.componentIndex) {
          seriesModels.push(seriesModel);
        }
      }
    }, this);
    return seriesModels;
  };
  AxisProxy.prototype.getAxisModel = function () {
    return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex);
  };
  AxisProxy.prototype.getMinMaxSpan = function () {
    return util["clone"](this._minMaxSpan);
  };
  /**
   * Only calculate by given range and this._dataExtent, do not change anything.
   */
  AxisProxy.prototype.calculateDataWindow = function (opt) {
    var dataExtent = this._dataExtent;
    var axisModel = this.getAxisModel();
    var scale = axisModel.axis.scale;
    var rangePropMode = this._dataZoomModel.getRangePropMode();
    var percentExtent = [0, 100];
    var percentWindow = [];
    var valueWindow = [];
    var hasPropModeValue;
    AxisProxy_each(['start', 'end'], function (prop, idx) {
      var boundPercent = opt[prop];
      var boundValue = opt[prop + 'Value'];
      // Notice: dataZoom is based either on `percentProp` ('start', 'end') or
      // on `valueProp` ('startValue', 'endValue'). (They are based on the data extent
      // but not min/max of axis, which will be calculated by data window then).
      // The former one is suitable for cases that a dataZoom component controls multiple
      // axes with different unit or extent, and the latter one is suitable for accurate
      // zoom by pixel (e.g., in dataZoomSelect).
      // we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated
      // only when setOption or dispatchAction, otherwise it remains its original value.
      // (Why not only record `percentProp` and always map to `valueProp`? Because
      // the map `valueProp` -> `percentProp` -> `valueProp` probably not the original
      // `valueProp`. consider two axes constrolled by one dataZoom. They have different
      // data extent. All of values that are overflow the `dataExtent` will be calculated
      // to percent '100%').
      if (rangePropMode[idx] === 'percent') {
        boundPercent == null && (boundPercent = percentExtent[idx]);
        // Use scale.parse to math round for category or time axis.
        boundValue = scale.parse(linearMap(boundPercent, percentExtent, dataExtent));
      } else {
        hasPropModeValue = true;
        boundValue = boundValue == null ? dataExtent[idx] : scale.parse(boundValue);
        // Calculating `percent` from `value` may be not accurate, because
        // This calculation can not be inversed, because all of values that
        // are overflow the `dataExtent` will be calculated to percent '100%'
        boundPercent = linearMap(boundValue, dataExtent, percentExtent);
      }
      // valueWindow[idx] = round(boundValue);
      // percentWindow[idx] = round(boundPercent);
      // fallback to extent start/end when parsed value or percent is invalid
      valueWindow[idx] = boundValue == null || isNaN(boundValue) ? dataExtent[idx] : boundValue;
      percentWindow[idx] = boundPercent == null || isNaN(boundPercent) ? percentExtent[idx] : boundPercent;
    });
    AxisProxy_asc(valueWindow);
    AxisProxy_asc(percentWindow);
    // The windows from user calling of `dispatchAction` might be out of the extent,
    // or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we don't restrict window
    // by `zoomLock` here, because we see `zoomLock` just as a interaction constraint,
    // where API is able to initialize/modify the window size even though `zoomLock`
    // specified.
    var spans = this._minMaxSpan;
    hasPropModeValue ? restrictSet(valueWindow, percentWindow, dataExtent, percentExtent, false) : restrictSet(percentWindow, valueWindow, percentExtent, dataExtent, true);
    function restrictSet(fromWindow, toWindow, fromExtent, toExtent, toValue) {
      var suffix = toValue ? 'Span' : 'ValueSpan';
      sliderMove(0, fromWindow, fromExtent, 'all', spans['min' + suffix], spans['max' + suffix]);
      for (var i = 0; i < 2; i++) {
        toWindow[i] = linearMap(fromWindow[i], fromExtent, toExtent, true);
        toValue && (toWindow[i] = scale.parse(toWindow[i]));
      }
    }
    return {
      valueWindow: valueWindow,
      percentWindow: percentWindow
    };
  };
  /**
   * Notice: reset should not be called before series.restoreData() is called,
   * so it is recommended to be called in "process stage" but not "model init
   * stage".
   */
  AxisProxy.prototype.reset = function (dataZoomModel) {
    if (dataZoomModel !== this._dataZoomModel) {
      return;
    }
    var targetSeries = this.getTargetSeriesModels();
    // Culculate data window and data extent, and record them.
    this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries);
    // `calculateDataWindow` uses min/maxSpan.
    this._updateMinMaxSpan();
    var dataWindow = this.calculateDataWindow(dataZoomModel.settledOption);
    this._valueWindow = dataWindow.valueWindow;
    this._percentWindow = dataWindow.percentWindow;
    // Update axis setting then.
    this._setAxisModel();
  };
  AxisProxy.prototype.filterData = function (dataZoomModel, api) {
    if (dataZoomModel !== this._dataZoomModel) {
      return;
    }
    var axisDim = this._dimName;
    var seriesModels = this.getTargetSeriesModels();
    var filterMode = dataZoomModel.get('filterMode');
    var valueWindow = this._valueWindow;
    if (filterMode === 'none') {
      return;
    }
    // FIXME
    // Toolbox may has dataZoom injected. And if there are stacked bar chart
    // with NaN data, NaN will be filtered and stack will be wrong.
    // So we need to force the mode to be set empty.
    // In fect, it is not a big deal that do not support filterMode-'filter'
    // when using toolbox#dataZoom, utill tooltip#dataZoom support "single axis
    // selection" some day, which might need "adapt to data extent on the
    // otherAxis", which is disabled by filterMode-'empty'.
    // But currently, stack has been fixed to based on value but not index,
    // so this is not an issue any more.
    // let otherAxisModel = this.getOtherAxisModel();
    // if (dataZoomModel.get('$fromToolbox')
    //     && otherAxisModel
    //     && otherAxisModel.hasSeriesStacked
    // ) {
    //     filterMode = 'empty';
    // }
    // TODO
    // filterMode 'weakFilter' and 'empty' is not optimized for huge data yet.
    AxisProxy_each(seriesModels, function (seriesModel) {
      var seriesData = seriesModel.getData();
      var dataDims = seriesData.mapDimensionsAll(axisDim);
      if (!dataDims.length) {
        return;
      }
      if (filterMode === 'weakFilter') {
        var store_1 = seriesData.getStore();
        var dataDimIndices_1 = util["map"](dataDims, function (dim) {
          return seriesData.getDimensionIndex(dim);
        }, seriesData);
        seriesData.filterSelf(function (dataIndex) {
          var leftOut;
          var rightOut;
          var hasValue;
          for (var i = 0; i < dataDims.length; i++) {
            var value = store_1.get(dataDimIndices_1[i], dataIndex);
            var thisHasValue = !isNaN(value);
            var thisLeftOut = value < valueWindow[0];
            var thisRightOut = value > valueWindow[1];
            if (thisHasValue && !thisLeftOut && !thisRightOut) {
              return true;
            }
            thisHasValue && (hasValue = true);
            thisLeftOut && (leftOut = true);
            thisRightOut && (rightOut = true);
          }
          // If both left out and right out, do not filter.
          return hasValue && leftOut && rightOut;
        });
      } else {
        AxisProxy_each(dataDims, function (dim) {
          if (filterMode === 'empty') {
            seriesModel.setData(seriesData = seriesData.map(dim, function (value) {
              return !isInWindow(value) ? NaN : value;
            }));
          } else {
            var range = {};
            range[dim] = valueWindow;
            // console.time('select');
            seriesData.selectRange(range);
            // console.timeEnd('select');
          }
        });
      }
      AxisProxy_each(dataDims, function (dim) {
        seriesData.setApproximateExtent(valueWindow, dim);
      });
    });
    function isInWindow(value) {
      return value >= valueWindow[0] && value <= valueWindow[1];
    }
  };
  AxisProxy.prototype._updateMinMaxSpan = function () {
    var minMaxSpan = this._minMaxSpan = {};
    var dataZoomModel = this._dataZoomModel;
    var dataExtent = this._dataExtent;
    AxisProxy_each(['min', 'max'], function (minMax) {
      var percentSpan = dataZoomModel.get(minMax + 'Span');
      var valueSpan = dataZoomModel.get(minMax + 'ValueSpan');
      valueSpan != null && (valueSpan = this.getAxisModel().axis.scale.parse(valueSpan));
      // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan
      if (valueSpan != null) {
        percentSpan = linearMap(dataExtent[0] + valueSpan, dataExtent, [0, 100], true);
      } else if (percentSpan != null) {
        valueSpan = linearMap(percentSpan, [0, 100], dataExtent, true) - dataExtent[0];
      }
      minMaxSpan[minMax + 'Span'] = percentSpan;
      minMaxSpan[minMax + 'ValueSpan'] = valueSpan;
    }, this);
  };
  AxisProxy.prototype._setAxisModel = function () {
    var axisModel = this.getAxisModel();
    var percentWindow = this._percentWindow;
    var valueWindow = this._valueWindow;
    if (!percentWindow) {
      return;
    }
    // [0, 500]: arbitrary value, guess axis extent.
    var precision = getPixelPrecision(valueWindow, [0, 500]);
    precision = Math.min(precision, 20);
    // For value axis, if min/max/scale are not set, we just use the extent obtained
    // by series data, which may be a little different from the extent calculated by
    // `axisHelper.getScaleExtent`. But the different just affects the experience a
    // little when zooming. So it will not be fixed until some users require it strongly.
    var rawExtentInfo = axisModel.axis.scale.rawExtentInfo;
    if (percentWindow[0] !== 0) {
      rawExtentInfo.setDeterminedMinMax('min', +valueWindow[0].toFixed(precision));
    }
    if (percentWindow[1] !== 100) {
      rawExtentInfo.setDeterminedMinMax('max', +valueWindow[1].toFixed(precision));
    }
    rawExtentInfo.freeze();
  };
  return AxisProxy;
}();
function calculateDataExtent(axisProxy, axisDim, seriesModels) {
  var dataExtent = [Infinity, -Infinity];
  AxisProxy_each(seriesModels, function (seriesModel) {
    unionAxisExtentFromData(dataExtent, seriesModel.getData(), axisDim);
  });
  // It is important to get "consistent" extent when more then one axes is
  // controlled by a `dataZoom`, otherwise those axes will not be synchronized
  // when zooming. But it is difficult to know what is "consistent", considering
  // axes have different type or even different meanings (For example, two
  // time axes are used to compare data of the same date in different years).
  // So basically dataZoom just obtains extent by series.data (in category axis
  // extent can be obtained from axis.data).
  // Nevertheless, user can set min/max/scale on axes to make extent of axes
  // consistent.
  var axisModel = axisProxy.getAxisModel();
  var rawExtentResult = ensureScaleRawExtentInfo(axisModel.axis.scale, axisModel, dataExtent).calculate();
  return [rawExtentResult.min, rawExtentResult.max];
}
/* harmony default export */ var dataZoom_AxisProxy = (AxisProxy_AxisProxy);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var dataZoomProcessor = {
  // `dataZoomProcessor` will only be performed in needed series. Consider if
  // there is a line series and a pie series, it is better not to update the
  // line series if only pie series is needed to be updated.
  getTargetSeries: function (ecModel) {
    function eachAxisModel(cb) {
      ecModel.eachComponent('dataZoom', function (dataZoomModel) {
        dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
          var axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);
          cb(axisDim, axisIndex, axisModel, dataZoomModel);
        });
      });
    }
    // FIXME: it brings side-effect to `getTargetSeries`.
    // Prepare axis proxies.
    eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {
      // dispose all last axis proxy, in case that some axis are deleted.
      axisModel.__dzAxisProxy = null;
    });
    var proxyList = [];
    eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {
      // Different dataZooms may constrol the same axis. In that case,
      // an axisProxy serves both of them.
      if (!axisModel.__dzAxisProxy) {
        // Use the first dataZoomModel as the main model of axisProxy.
        axisModel.__dzAxisProxy = new dataZoom_AxisProxy(axisDim, axisIndex, dataZoomModel, ecModel);
        proxyList.push(axisModel.__dzAxisProxy);
      }
    });
    var seriesModelMap = Object(util["createHashMap"])();
    Object(util["each"])(proxyList, function (axisProxy) {
      Object(util["each"])(axisProxy.getTargetSeriesModels(), function (seriesModel) {
        seriesModelMap.set(seriesModel.uid, seriesModel);
      });
    });
    return seriesModelMap;
  },
  // Consider appendData, where filter should be performed. Because data process is
  // in block mode currently, it is not need to worry about that the overallProgress
  // execute every frame.
  overallReset: function (ecModel, api) {
    ecModel.eachComponent('dataZoom', function (dataZoomModel) {
      // We calculate window and reset axis here but not in model
      // init stage and not after action dispatch handler, because
      // reset should be called after seriesData.restoreData.
      dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
        dataZoomModel.getAxisProxy(axisDim, axisIndex).reset(dataZoomModel);
      });
      // Caution: data zoom filtering is order sensitive when using
      // percent range and no min/max/scale set on axis.
      // For example, we have dataZoom definition:
      // [
      //      {xAxisIndex: 0, start: 30, end: 70},
      //      {yAxisIndex: 0, start: 20, end: 80}
      // ]
      // In this case, [20, 80] of y-dataZoom should be based on data
      // that have filtered by x-dataZoom using range of [30, 70],
      // but should not be based on full raw data. Thus sliding
      // x-dataZoom will change both ranges of xAxis and yAxis,
      // while sliding y-dataZoom will only change the range of yAxis.
      // So we should filter x-axis after reset x-axis immediately,
      // and then reset y-axis and filter y-axis.
      dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
        dataZoomModel.getAxisProxy(axisDim, axisIndex).filterData(dataZoomModel, api);
      });
    });
    ecModel.eachComponent('dataZoom', function (dataZoomModel) {
      // Fullfill all of the range props so that user
      // is able to get them from chart.getOption().
      var axisProxy = dataZoomModel.findRepresentativeAxisProxy();
      if (axisProxy) {
        var percentRange = axisProxy.getDataPercentWindow();
        var valueRange = axisProxy.getDataValueWindow();
        dataZoomModel.setCalculatedRange({
          start: percentRange[0],
          end: percentRange[1],
          startValue: valueRange[0],
          endValue: valueRange[1]
        });
      }
    });
  }
};
/* harmony default export */ var dataZoom_dataZoomProcessor = (dataZoomProcessor);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/dataZoomAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function installDataZoomAction(registers) {
  registers.registerAction('dataZoom', function (payload, ecModel) {
    var effectedModels = findEffectedDataZooms(ecModel, payload);
    Object(util["each"])(effectedModels, function (dataZoomModel) {
      dataZoomModel.setRawRange({
        start: payload.start,
        end: payload.end,
        startValue: payload.startValue,
        endValue: payload.endValue
      });
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installCommon.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var installed = false;
function installCommon(registers) {
  if (installed) {
    return;
  }
  installed = true;
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, dataZoom_dataZoomProcessor);
  installDataZoomAction(registers);
  registers.registerSubTypeDefaulter('dataZoom', function () {
    // Default 'slider' when no type specified.
    return 'slider';
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function installDataZoomSelect_install(registers) {
  registers.registerComponentModel(SelectZoomModel);
  registers.registerComponentView(SelectZoomView);
  installCommon(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/featureManager.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

var ToolboxFeature = /** @class */function () {
  function ToolboxFeature() {}
  return ToolboxFeature;
}();

var featureManager_features = {};
function registerFeature(name, ctor) {
  featureManager_features[name] = ctor;
}
function getFeature(name) {
  return featureManager_features[name];
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/ToolboxModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var ToolboxModel_ToolboxModel = /** @class */function (_super) {
  __extends(ToolboxModel, _super);
  function ToolboxModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ToolboxModel.type;
    return _this;
  }
  ToolboxModel.prototype.optionUpdated = function () {
    _super.prototype.optionUpdated.apply(this, arguments);
    var ecModel = this.ecModel;
    util["each"](this.option.feature, function (featureOpt, featureName) {
      var Feature = getFeature(featureName);
      if (Feature) {
        if (Feature.getDefaultOption) {
          Feature.defaultOption = Feature.getDefaultOption(ecModel);
        }
        util["merge"](featureOpt, Feature.defaultOption);
      }
    });
  };
  ToolboxModel.type = 'toolbox';
  ToolboxModel.layoutMode = {
    type: 'box',
    ignoreSize: true
  };
  ToolboxModel.defaultOption = {
    show: true,
    z: 6,
    // zlevel: 0,
    orient: 'horizontal',
    left: 'right',
    top: 'top',
    // right
    // bottom
    backgroundColor: 'transparent',
    borderColor: '#ccc',
    borderRadius: 0,
    borderWidth: 0,
    padding: 5,
    itemSize: 15,
    itemGap: 8,
    showTitle: true,
    iconStyle: {
      borderColor: '#666',
      color: 'none'
    },
    emphasis: {
      iconStyle: {
        borderColor: '#3E98C5'
      }
    },
    // textStyle: {},
    // feature
    tooltip: {
      show: false,
      position: 'bottom'
    }
  };
  return ToolboxModel;
}(Component);
/* harmony default export */ var toolbox_ToolboxModel = (ToolboxModel_ToolboxModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/listComponent.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck



/**
 * Layout list like component.
 * It will box layout each items in group of component and then position the whole group in the viewport
 * @param {module:zrender/group/Group} group
 * @param {module:echarts/model/Component} componentModel
 * @param {module:echarts/ExtensionAPI}
 */
function listComponent_layout(group, componentModel, api) {
  var boxLayoutParams = componentModel.getBoxLayoutParams();
  var padding = componentModel.get('padding');
  var viewportSize = {
    width: api.getWidth(),
    height: api.getHeight()
  };
  var rect = getLayoutRect(boxLayoutParams, viewportSize, padding);
  layout_box(componentModel.get('orient'), group, componentModel.get('itemGap'), rect.width, rect.height);
  positionElement(group, boxLayoutParams, viewportSize, padding);
}
function makeBackground(rect, componentModel) {
  var padding = normalizeCssArray(componentModel.get('padding'));
  var style = componentModel.getItemStyle(['color', 'opacity']);
  style.fill = componentModel.get('backgroundColor');
  rect = new shape_Rect({
    shape: {
      x: rect.x - padding[3],
      y: rect.y - padding[0],
      width: rect.width + padding[1] + padding[3],
      height: rect.height + padding[0] + padding[2],
      r: componentModel.get('borderRadius')
    },
    style: style,
    silent: true,
    z2: -1
  });
  // FIXME
  // `subPixelOptimizeRect` may bring some gap between edge of viewpart
  // and background rect when setting like `left: 0`, `top: 0`.
  // graphic.subPixelOptimizeRect(rect);
  return rect;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/ToolboxView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/













var ToolboxView_ToolboxView = /** @class */function (_super) {
  __extends(ToolboxView, _super);
  function ToolboxView() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  ToolboxView.prototype.render = function (toolboxModel, ecModel, api, payload) {
    var group = this.group;
    group.removeAll();
    if (!toolboxModel.get('show')) {
      return;
    }
    var itemSize = +toolboxModel.get('itemSize');
    var isVertical = toolboxModel.get('orient') === 'vertical';
    var featureOpts = toolboxModel.get('feature') || {};
    var features = this._features || (this._features = {});
    var featureNames = [];
    util["each"](featureOpts, function (opt, name) {
      featureNames.push(name);
    });
    new data_DataDiffer(this._featureNames || [], featureNames).add(processFeature).update(processFeature).remove(util["curry"](processFeature, null)).execute();
    // Keep for diff.
    this._featureNames = featureNames;
    function processFeature(newIndex, oldIndex) {
      var featureName = featureNames[newIndex];
      var oldName = featureNames[oldIndex];
      var featureOpt = featureOpts[featureName];
      var featureModel = new model_Model(featureOpt, toolboxModel, toolboxModel.ecModel);
      var feature;
      // FIX#11236, merge feature title from MagicType newOption. TODO: consider seriesIndex ?
      if (payload && payload.newTitle != null && payload.featureName === featureName) {
        featureOpt.title = payload.newTitle;
      }
      if (featureName && !oldName) {
        // Create
        if (isUserFeatureName(featureName)) {
          feature = {
            onclick: featureModel.option.onclick,
            featureName: featureName
          };
        } else {
          var Feature = getFeature(featureName);
          if (!Feature) {
            return;
          }
          feature = new Feature();
        }
        features[featureName] = feature;
      } else {
        feature = features[oldName];
        // If feature does not exist.
        if (!feature) {
          return;
        }
      }
      feature.uid = getUID('toolbox-feature');
      feature.model = featureModel;
      feature.ecModel = ecModel;
      feature.api = api;
      var isToolboxFeature = feature instanceof ToolboxFeature;
      if (!featureName && oldName) {
        isToolboxFeature && feature.dispose && feature.dispose(ecModel, api);
        return;
      }
      if (!featureModel.get('show') || isToolboxFeature && feature.unusable) {
        isToolboxFeature && feature.remove && feature.remove(ecModel, api);
        return;
      }
      createIconPaths(featureModel, feature, featureName);
      featureModel.setIconStatus = function (iconName, status) {
        var option = this.option;
        var iconPaths = this.iconPaths;
        option.iconStatus = option.iconStatus || {};
        option.iconStatus[iconName] = status;
        if (iconPaths[iconName]) {
          (status === 'emphasis' ? enterEmphasis : leaveEmphasis)(iconPaths[iconName]);
        }
      };
      if (feature instanceof ToolboxFeature) {
        if (feature.render) {
          feature.render(featureModel, ecModel, api, payload);
        }
      }
    }
    function createIconPaths(featureModel, feature, featureName) {
      var iconStyleModel = featureModel.getModel('iconStyle');
      var iconStyleEmphasisModel = featureModel.getModel(['emphasis', 'iconStyle']);
      // If one feature has multiple icons, they are organized as
      // {
      //     icon: {
      //         foo: '',
      //         bar: ''
      //     },
      //     title: {
      //         foo: '',
      //         bar: ''
      //     }
      // }
      var icons = feature instanceof ToolboxFeature && feature.getIcons ? feature.getIcons() : featureModel.get('icon');
      var titles = featureModel.get('title') || {};
      var iconsMap;
      var titlesMap;
      if (util["isString"](icons)) {
        iconsMap = {};
        iconsMap[featureName] = icons;
      } else {
        iconsMap = icons;
      }
      if (util["isString"](titles)) {
        titlesMap = {};
        titlesMap[featureName] = titles;
      } else {
        titlesMap = titles;
      }
      var iconPaths = featureModel.iconPaths = {};
      util["each"](iconsMap, function (iconStr, iconName) {
        var path = createIcon(iconStr, {}, {
          x: -itemSize / 2,
          y: -itemSize / 2,
          width: itemSize,
          height: itemSize
        }); // TODO handling image
        path.setStyle(iconStyleModel.getItemStyle());
        var pathEmphasisState = path.ensureState('emphasis');
        pathEmphasisState.style = iconStyleEmphasisModel.getItemStyle();
        // Text position calculation
        // TODO: extract `textStyle` from `iconStyle` and use `createTextStyle`
        var textContent = new Text({
          style: {
            text: titlesMap[iconName],
            align: iconStyleEmphasisModel.get('textAlign'),
            borderRadius: iconStyleEmphasisModel.get('textBorderRadius'),
            padding: iconStyleEmphasisModel.get('textPadding'),
            fill: null,
            font: getFont({
              fontStyle: iconStyleEmphasisModel.get('textFontStyle'),
              fontFamily: iconStyleEmphasisModel.get('textFontFamily'),
              fontSize: iconStyleEmphasisModel.get('textFontSize'),
              fontWeight: iconStyleEmphasisModel.get('textFontWeight')
            }, ecModel)
          },
          ignore: true
        });
        path.setTextContent(textContent);
        setTooltipConfig({
          el: path,
          componentModel: toolboxModel,
          itemName: iconName,
          formatterParamsExtra: {
            title: titlesMap[iconName]
          }
        });
        path.__title = titlesMap[iconName];
        path.on('mouseover', function () {
          // Should not reuse above hoverStyle, which might be modified.
          var hoverStyle = iconStyleEmphasisModel.getItemStyle();
          var defaultTextPosition = isVertical ? toolboxModel.get('right') == null && toolboxModel.get('left') !== 'right' ? 'right' : 'left' : toolboxModel.get('bottom') == null && toolboxModel.get('top') !== 'bottom' ? 'bottom' : 'top';
          textContent.setStyle({
            fill: iconStyleEmphasisModel.get('textFill') || hoverStyle.fill || hoverStyle.stroke || '#000',
            backgroundColor: iconStyleEmphasisModel.get('textBackgroundColor')
          });
          path.setTextConfig({
            position: iconStyleEmphasisModel.get('textPosition') || defaultTextPosition
          });
          textContent.ignore = !toolboxModel.get('showTitle');
          // Use enterEmphasis and leaveEmphasis provide by ec.
          // There are flags managed by the echarts.
          api.enterEmphasis(this);
        }).on('mouseout', function () {
          if (featureModel.get(['iconStatus', iconName]) !== 'emphasis') {
            api.leaveEmphasis(this);
          }
          textContent.hide();
        });
        (featureModel.get(['iconStatus', iconName]) === 'emphasis' ? enterEmphasis : leaveEmphasis)(path);
        group.add(path);
        path.on('click', util["bind"](feature.onclick, feature, ecModel, api, iconName));
        iconPaths[iconName] = path;
      });
    }
    listComponent_layout(group, toolboxModel, api);
    // Render background after group is layout
    // FIXME
    group.add(makeBackground(group.getBoundingRect(), toolboxModel));
    // Adjust icon title positions to avoid them out of screen
    isVertical || group.eachChild(function (icon) {
      var titleText = icon.__title;
      // const hoverStyle = icon.hoverStyle;
      // TODO simplify code?
      var emphasisState = icon.ensureState('emphasis');
      var emphasisTextConfig = emphasisState.textConfig || (emphasisState.textConfig = {});
      var textContent = icon.getTextContent();
      var emphasisTextState = textContent && textContent.ensureState('emphasis');
      // May be background element
      if (emphasisTextState && !util["isFunction"](emphasisTextState) && titleText) {
        var emphasisTextStyle = emphasisTextState.style || (emphasisTextState.style = {});
        var rect = getBoundingRect(titleText, Text.makeFont(emphasisTextStyle));
        var offsetX = icon.x + group.x;
        var offsetY = icon.y + group.y + itemSize;
        var needPutOnTop = false;
        if (offsetY + rect.height > api.getHeight()) {
          emphasisTextConfig.position = 'top';
          needPutOnTop = true;
        }
        var topOffset = needPutOnTop ? -5 - rect.height : itemSize + 10;
        if (offsetX + rect.width / 2 > api.getWidth()) {
          emphasisTextConfig.position = ['100%', topOffset];
          emphasisTextStyle.align = 'right';
        } else if (offsetX - rect.width / 2 < 0) {
          emphasisTextConfig.position = [0, topOffset];
          emphasisTextStyle.align = 'left';
        }
      }
    });
  };
  ToolboxView.prototype.updateView = function (toolboxModel, ecModel, api, payload) {
    util["each"](this._features, function (feature) {
      feature instanceof ToolboxFeature && feature.updateView && feature.updateView(feature.model, ecModel, api, payload);
    });
  };
  // updateLayout(toolboxModel, ecModel, api, payload) {
  //     zrUtil.each(this._features, function (feature) {
  //         feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload);
  //     });
  // },
  ToolboxView.prototype.remove = function (ecModel, api) {
    util["each"](this._features, function (feature) {
      feature instanceof ToolboxFeature && feature.remove && feature.remove(ecModel, api);
    });
    this.group.removeAll();
  };
  ToolboxView.prototype.dispose = function (ecModel, api) {
    util["each"](this._features, function (feature) {
      feature instanceof ToolboxFeature && feature.dispose && feature.dispose(ecModel, api);
    });
  };
  ToolboxView.type = 'toolbox';
  return ToolboxView;
}(view_Component);
function isUserFeatureName(featureName) {
  return featureName.indexOf('my') === 0;
}
/* harmony default export */ var toolbox_ToolboxView = (ToolboxView_ToolboxView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/* global window, Uint8Array, document */


var SaveAsImage_SaveAsImage = /** @class */function (_super) {
  __extends(SaveAsImage, _super);
  function SaveAsImage() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  SaveAsImage.prototype.onclick = function (ecModel, api) {
    var model = this.model;
    var title = model.get('name') || ecModel.get('title.0.text') || 'echarts';
    var isSvg = api.getZr().painter.getType() === 'svg';
    var type = isSvg ? 'svg' : model.get('type', true) || 'png';
    var url = api.getConnectedDataURL({
      type: type,
      backgroundColor: model.get('backgroundColor', true) || ecModel.get('backgroundColor') || '#fff',
      connectedBackgroundColor: model.get('connectedBackgroundColor'),
      excludeComponents: model.get('excludeComponents'),
      pixelRatio: model.get('pixelRatio')
    });
    var browser = env["a" /* default */].browser;
    // Chrome, Firefox, New Edge
    if (typeof MouseEvent === 'function' && (browser.newEdge || !browser.ie && !browser.edge)) {
      var $a = document.createElement('a');
      $a.download = title + '.' + type;
      $a.target = '_blank';
      $a.href = url;
      var evt = new MouseEvent('click', {
        // some micro front-end framework， window maybe is a Proxy
        view: document.defaultView,
        bubbles: true,
        cancelable: false
      });
      $a.dispatchEvent(evt);
    }
    // IE or old Edge
    else {
      // @ts-ignore
      if (window.navigator.msSaveOrOpenBlob || isSvg) {
        var parts = url.split(',');
        // data:[<mime type>][;charset=<charset>][;base64],<encoded data>
        var base64Encoded = parts[0].indexOf('base64') > -1;
        var bstr = isSvg
        // should decode the svg data uri first
        ? decodeURIComponent(parts[1]) : parts[1];
        // only `atob` when the data uri is encoded with base64
        // otherwise, like `svg` data uri exported by zrender,
        // there will be an error, for it's not encoded with base64.
        // (just a url-encoded string through `encodeURIComponent`)
        base64Encoded && (bstr = window.atob(bstr));
        var filename = title + '.' + type;
        // @ts-ignore
        if (window.navigator.msSaveOrOpenBlob) {
          var n = bstr.length;
          var u8arr = new Uint8Array(n);
          while (n--) {
            u8arr[n] = bstr.charCodeAt(n);
          }
          var blob = new Blob([u8arr]); // @ts-ignore
          window.navigator.msSaveOrOpenBlob(blob, filename);
        } else {
          var frame = document.createElement('iframe');
          document.body.appendChild(frame);
          var cw = frame.contentWindow;
          var doc = cw.document;
          doc.open('image/svg+xml', 'replace');
          doc.write(bstr);
          doc.close();
          cw.focus();
          doc.execCommand('SaveAs', true, filename);
          document.body.removeChild(frame);
        }
      } else {
        var lang = model.get('lang');
        var html = '' + '<body style="margin:0;">' + '<img src="' + url + '" style="max-width:100%;" title="' + (lang && lang[0] || '') + '" />' + '</body>';
        var tab = window.open();
        tab.document.write(html);
        tab.document.title = title;
      }
    }
  };
  SaveAsImage.getDefaultOption = function (ecModel) {
    var defaultOption = {
      show: true,
      icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0',
      title: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'title']),
      type: 'png',
      // Default use option.backgroundColor
      // backgroundColor: '#fff',
      connectedBackgroundColor: '#fff',
      name: '',
      excludeComponents: ['toolbox'],
      // use current pixel ratio of device by default
      // pixelRatio: 1,
      lang: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'lang'])
    };
    return defaultOption;
  };
  return SaveAsImage;
}(ToolboxFeature);
/* harmony default export */ var feature_SaveAsImage = (SaveAsImage_SaveAsImage);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/MagicType.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var INNER_STACK_KEYWORD = '__ec_magicType_stack__';
var ICON_TYPES = ['line', 'bar', 'stack'];
// stack and tiled appears in pair for the title
var TITLE_TYPES = ['line', 'bar', 'stack', 'tiled'];
var radioTypes = [['line', 'bar'], ['stack']];
var MagicType_MagicType = /** @class */function (_super) {
  __extends(MagicType, _super);
  function MagicType() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  MagicType.prototype.getIcons = function () {
    var model = this.model;
    var availableIcons = model.get('icon');
    var icons = {};
    util["each"](model.get('type'), function (type) {
      if (availableIcons[type]) {
        icons[type] = availableIcons[type];
      }
    });
    return icons;
  };
  MagicType.getDefaultOption = function (ecModel) {
    var defaultOption = {
      show: true,
      type: [],
      // Icon group
      icon: {
        line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',
        bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',
        // eslint-disable-next-line
        stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z' // jshint ignore:line
      },
      // `line`, `bar`, `stack`, `tiled`
      title: ecModel.getLocaleModel().get(['toolbox', 'magicType', 'title']),
      option: {},
      seriesIndex: {}
    };
    return defaultOption;
  };
  MagicType.prototype.onclick = function (ecModel, api, type) {
    var model = this.model;
    var seriesIndex = model.get(['seriesIndex', type]);
    // Not supported magicType
    if (!seriesOptGenreator[type]) {
      return;
    }
    var newOption = {
      series: []
    };
    var generateNewSeriesTypes = function (seriesModel) {
      var seriesType = seriesModel.subType;
      var seriesId = seriesModel.id;
      var newSeriesOpt = seriesOptGenreator[type](seriesType, seriesId, seriesModel, model);
      if (newSeriesOpt) {
        // PENDING If merge original option?
        util["defaults"](newSeriesOpt, seriesModel.option);
        newOption.series.push(newSeriesOpt);
      }
      // Modify boundaryGap
      var coordSys = seriesModel.coordinateSystem;
      if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) {
        var categoryAxis = coordSys.getAxesByScale('ordinal')[0];
        if (categoryAxis) {
          var axisDim = categoryAxis.dim;
          var axisType = axisDim + 'Axis';
          var axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];
          var axisIndex = axisModel.componentIndex;
          newOption[axisType] = newOption[axisType] || [];
          for (var i = 0; i <= axisIndex; i++) {
            newOption[axisType][axisIndex] = newOption[axisType][axisIndex] || {};
          }
          newOption[axisType][axisIndex].boundaryGap = type === 'bar';
        }
      }
    };
    util["each"](radioTypes, function (radio) {
      if (util["indexOf"](radio, type) >= 0) {
        util["each"](radio, function (item) {
          model.setIconStatus(item, 'normal');
        });
      }
    });
    model.setIconStatus(type, 'emphasis');
    ecModel.eachComponent({
      mainType: 'series',
      query: seriesIndex == null ? null : {
        seriesIndex: seriesIndex
      }
    }, generateNewSeriesTypes);
    var newTitle;
    var currentType = type;
    // Change title of stack
    if (type === 'stack') {
      // use titles in model instead of ecModel
      // as stack and tiled appears in pair, just flip them
      // no need of checking stack state
      newTitle = util["merge"]({
        stack: model.option.title.tiled,
        tiled: model.option.title.stack
      }, model.option.title);
      if (model.get(['iconStatus', type]) !== 'emphasis') {
        currentType = 'tiled';
      }
    }
    api.dispatchAction({
      type: 'changeMagicType',
      currentType: currentType,
      newOption: newOption,
      newTitle: newTitle,
      featureName: 'magicType'
    });
  };
  return MagicType;
}(ToolboxFeature);
var seriesOptGenreator = {
  'line': function (seriesType, seriesId, seriesModel, model) {
    if (seriesType === 'bar') {
      return util["merge"]({
        id: seriesId,
        type: 'line',
        // Preserve data related option
        data: seriesModel.get('data'),
        stack: seriesModel.get('stack'),
        markPoint: seriesModel.get('markPoint'),
        markLine: seriesModel.get('markLine')
      }, model.get(['option', 'line']) || {}, true);
    }
  },
  'bar': function (seriesType, seriesId, seriesModel, model) {
    if (seriesType === 'line') {
      return util["merge"]({
        id: seriesId,
        type: 'bar',
        // Preserve data related option
        data: seriesModel.get('data'),
        stack: seriesModel.get('stack'),
        markPoint: seriesModel.get('markPoint'),
        markLine: seriesModel.get('markLine')
      }, model.get(['option', 'bar']) || {}, true);
    }
  },
  'stack': function (seriesType, seriesId, seriesModel, model) {
    var isStack = seriesModel.get('stack') === INNER_STACK_KEYWORD;
    if (seriesType === 'line' || seriesType === 'bar') {
      model.setIconStatus('stack', isStack ? 'normal' : 'emphasis');
      return util["merge"]({
        id: seriesId,
        stack: isStack ? '' : INNER_STACK_KEYWORD
      }, model.get(['option', 'stack']) || {}, true);
    }
  }
};
// TODO: SELF REGISTERED.
registerAction({
  type: 'changeMagicType',
  event: 'magicTypeChanged',
  update: 'prepareAndUpdate'
}, function (payload, ecModel) {
  ecModel.mergeOption(payload.newOption);
});
/* harmony default export */ var feature_MagicType = (MagicType_MagicType);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/DataView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/* global document */





/* global document */
var BLOCK_SPLITER = new Array(60).join('-');
var ITEM_SPLITER = '\t';
/**
 * Group series into two types
 *  1. on category axis, like line, bar
 *  2. others, like scatter, pie
 */
function groupSeries(ecModel) {
  var seriesGroupByCategoryAxis = {};
  var otherSeries = [];
  var meta = [];
  ecModel.eachRawSeries(function (seriesModel) {
    var coordSys = seriesModel.coordinateSystem;
    if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {
      // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.
      var baseAxis = coordSys.getBaseAxis();
      if (baseAxis.type === 'category') {
        var key = baseAxis.dim + '_' + baseAxis.index;
        if (!seriesGroupByCategoryAxis[key]) {
          seriesGroupByCategoryAxis[key] = {
            categoryAxis: baseAxis,
            valueAxis: coordSys.getOtherAxis(baseAxis),
            series: []
          };
          meta.push({
            axisDim: baseAxis.dim,
            axisIndex: baseAxis.index
          });
        }
        seriesGroupByCategoryAxis[key].series.push(seriesModel);
      } else {
        otherSeries.push(seriesModel);
      }
    } else {
      otherSeries.push(seriesModel);
    }
  });
  return {
    seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,
    other: otherSeries,
    meta: meta
  };
}
/**
 * Assemble content of series on cateogory axis
 * @inner
 */
function assembleSeriesWithCategoryAxis(groups) {
  var tables = [];
  util["each"](groups, function (group, key) {
    var categoryAxis = group.categoryAxis;
    var valueAxis = group.valueAxis;
    var valueAxisDim = valueAxis.dim;
    var headers = [' '].concat(util["map"](group.series, function (series) {
      return series.name;
    }));
    // @ts-ignore TODO Polar
    var columns = [categoryAxis.model.getCategories()];
    util["each"](group.series, function (series) {
      var rawData = series.getRawData();
      columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) {
        return val;
      }));
    });
    // Assemble table content
    var lines = [headers.join(ITEM_SPLITER)];
    for (var i = 0; i < columns[0].length; i++) {
      var items = [];
      for (var j = 0; j < columns.length; j++) {
        items.push(columns[j][i]);
      }
      lines.push(items.join(ITEM_SPLITER));
    }
    tables.push(lines.join('\n'));
  });
  return tables.join('\n\n' + BLOCK_SPLITER + '\n\n');
}
/**
 * Assemble content of other series
 */
function assembleOtherSeries(series) {
  return util["map"](series, function (series) {
    var data = series.getRawData();
    var lines = [series.name];
    var vals = [];
    data.each(data.dimensions, function () {
      var argLen = arguments.length;
      var dataIndex = arguments[argLen - 1];
      var name = data.getName(dataIndex);
      for (var i = 0; i < argLen - 1; i++) {
        vals[i] = arguments[i];
      }
      lines.push((name ? name + ITEM_SPLITER : '') + vals.join(ITEM_SPLITER));
    });
    return lines.join('\n');
  }).join('\n\n' + BLOCK_SPLITER + '\n\n');
}
function getContentFromModel(ecModel) {
  var result = groupSeries(ecModel);
  return {
    value: util["filter"]([assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis), assembleOtherSeries(result.other)], function (str) {
      return !!str.replace(/[\n\t\s]/g, '');
    }).join('\n\n' + BLOCK_SPLITER + '\n\n'),
    meta: result.meta
  };
}
function trim(str) {
  return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}
/**
 * If a block is tsv format
 */
function isTSVFormat(block) {
  // Simple method to find out if a block is tsv format
  var firstLine = block.slice(0, block.indexOf('\n'));
  if (firstLine.indexOf(ITEM_SPLITER) >= 0) {
    return true;
  }
}
var itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g');
/**
 * @param {string} tsv
 * @return {Object}
 */
function parseTSVContents(tsv) {
  var tsvLines = tsv.split(/\n+/g);
  var headers = trim(tsvLines.shift()).split(itemSplitRegex);
  var categories = [];
  var series = util["map"](headers, function (header) {
    return {
      name: header,
      data: []
    };
  });
  for (var i = 0; i < tsvLines.length; i++) {
    var items = trim(tsvLines[i]).split(itemSplitRegex);
    categories.push(items.shift());
    for (var j = 0; j < items.length; j++) {
      series[j] && (series[j].data[i] = items[j]);
    }
  }
  return {
    series: series,
    categories: categories
  };
}
function parseListContents(str) {
  var lines = str.split(/\n+/g);
  var seriesName = trim(lines.shift());
  var data = [];
  for (var i = 0; i < lines.length; i++) {
    // if line is empty, ignore it.
    // there is a case that a user forgot to delete `\n`.
    var line = trim(lines[i]);
    if (!line) {
      continue;
    }
    var items = line.split(itemSplitRegex);
    var name_1 = '';
    var value = void 0;
    var hasName = false;
    if (isNaN(items[0])) {
      // First item is name
      hasName = true;
      name_1 = items[0];
      items = items.slice(1);
      data[i] = {
        name: name_1,
        value: []
      };
      value = data[i].value;
    } else {
      value = data[i] = [];
    }
    for (var j = 0; j < items.length; j++) {
      value.push(+items[j]);
    }
    if (value.length === 1) {
      hasName ? data[i].value = value[0] : data[i] = value[0];
    }
  }
  return {
    name: seriesName,
    data: data
  };
}
function parseContents(str, blockMetaList) {
  var blocks = str.split(new RegExp('\n*' + BLOCK_SPLITER + '\n*', 'g'));
  var newOption = {
    series: []
  };
  util["each"](blocks, function (block, idx) {
    if (isTSVFormat(block)) {
      var result = parseTSVContents(block);
      var blockMeta = blockMetaList[idx];
      var axisKey = blockMeta.axisDim + 'Axis';
      if (blockMeta) {
        newOption[axisKey] = newOption[axisKey] || [];
        newOption[axisKey][blockMeta.axisIndex] = {
          data: result.categories
        };
        newOption.series = newOption.series.concat(result.series);
      }
    } else {
      var result = parseListContents(block);
      newOption.series.push(result);
    }
  });
  return newOption;
}
var DataView_DataView = /** @class */function (_super) {
  __extends(DataView, _super);
  function DataView() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  DataView.prototype.onclick = function (ecModel, api) {
    // FIXME: better way?
    setTimeout(function () {
      api.dispatchAction({
        type: 'hideTip'
      });
    });
    var container = api.getDom();
    var model = this.model;
    if (this._dom) {
      container.removeChild(this._dom);
    }
    var root = document.createElement('div');
    // use padding to avoid 5px whitespace
    root.style.cssText = 'position:absolute;top:0;bottom:0;left:0;right:0;padding:5px';
    root.style.backgroundColor = model.get('backgroundColor') || '#fff';
    // Create elements
    var header = document.createElement('h4');
    var lang = model.get('lang') || [];
    header.innerHTML = lang[0] || model.get('title');
    header.style.cssText = 'margin:10px 20px';
    header.style.color = model.get('textColor');
    var viewMain = document.createElement('div');
    var textarea = document.createElement('textarea');
    viewMain.style.cssText = 'overflow:auto';
    var optionToContent = model.get('optionToContent');
    var contentToOption = model.get('contentToOption');
    var result = getContentFromModel(ecModel);
    if (util["isFunction"](optionToContent)) {
      var htmlOrDom = optionToContent(api.getOption());
      if (util["isString"](htmlOrDom)) {
        viewMain.innerHTML = htmlOrDom;
      } else if (util["isDom"](htmlOrDom)) {
        viewMain.appendChild(htmlOrDom);
      }
    } else {
      // Use default textarea
      textarea.readOnly = model.get('readOnly');
      var style = textarea.style;
      // eslint-disable-next-line max-len
      style.cssText = 'display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none';
      style.color = model.get('textColor');
      style.borderColor = model.get('textareaBorderColor');
      style.backgroundColor = model.get('textareaColor');
      textarea.value = result.value;
      viewMain.appendChild(textarea);
    }
    var blockMetaList = result.meta;
    var buttonContainer = document.createElement('div');
    buttonContainer.style.cssText = 'position:absolute;bottom:5px;left:0;right:0';
    // eslint-disable-next-line max-len
    var buttonStyle = 'float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px';
    var closeButton = document.createElement('div');
    var refreshButton = document.createElement('div');
    buttonStyle += ';background-color:' + model.get('buttonColor');
    buttonStyle += ';color:' + model.get('buttonTextColor');
    var self = this;
    function close() {
      container.removeChild(root);
      self._dom = null;
    }
    addEventListener(closeButton, 'click', close);
    addEventListener(refreshButton, 'click', function () {
      if (contentToOption == null && optionToContent != null || contentToOption != null && optionToContent == null) {
        if (false) {}
        close();
        return;
      }
      var newOption;
      try {
        if (util["isFunction"](contentToOption)) {
          newOption = contentToOption(viewMain, api.getOption());
        } else {
          newOption = parseContents(textarea.value, blockMetaList);
        }
      } catch (e) {
        close();
        throw new Error('Data view format error ' + e);
      }
      if (newOption) {
        api.dispatchAction({
          type: 'changeDataView',
          newOption: newOption
        });
      }
      close();
    });
    closeButton.innerHTML = lang[1];
    refreshButton.innerHTML = lang[2];
    refreshButton.style.cssText = closeButton.style.cssText = buttonStyle;
    !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
    buttonContainer.appendChild(closeButton);
    root.appendChild(header);
    root.appendChild(viewMain);
    root.appendChild(buttonContainer);
    viewMain.style.height = container.clientHeight - 80 + 'px';
    container.appendChild(root);
    this._dom = root;
  };
  DataView.prototype.remove = function (ecModel, api) {
    this._dom && api.getDom().removeChild(this._dom);
  };
  DataView.prototype.dispose = function (ecModel, api) {
    this.remove(ecModel, api);
  };
  DataView.getDefaultOption = function (ecModel) {
    var defaultOption = {
      show: true,
      readOnly: false,
      optionToContent: null,
      contentToOption: null,
      // eslint-disable-next-line
      icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28',
      title: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'title']),
      lang: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'lang']),
      backgroundColor: '#fff',
      textColor: '#000',
      textareaColor: '#fff',
      textareaBorderColor: '#333',
      buttonColor: '#c23531',
      buttonTextColor: '#fff'
    };
    return defaultOption;
  };
  return DataView;
}(ToolboxFeature);
/**
 * @inner
 */
function tryMergeDataOption(newData, originalData) {
  return util["map"](newData, function (newVal, idx) {
    var original = originalData && originalData[idx];
    if (util["isObject"](original) && !util["isArray"](original)) {
      var newValIsObject = util["isObject"](newVal) && !util["isArray"](newVal);
      if (!newValIsObject) {
        newVal = {
          value: newVal
        };
      }
      // original data has name but new data has no name
      var shouldDeleteName = original.name != null && newVal.name == null;
      // Original data has option
      newVal = util["defaults"](newVal, original);
      shouldDeleteName && delete newVal.name;
      return newVal;
    } else {
      return newVal;
    }
  });
}
// TODO: SELF REGISTERED.
registerAction({
  type: 'changeDataView',
  event: 'dataViewChanged',
  update: 'prepareAndUpdate'
}, function (payload, ecModel) {
  var newSeriesOptList = [];
  util["each"](payload.newOption.series, function (seriesOpt) {
    var seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0];
    if (!seriesModel) {
      // New created series
      // Geuss the series type
      newSeriesOptList.push(util["extend"]({
        // Default is scatter
        type: 'scatter'
      }, seriesOpt));
    } else {
      var originalData = seriesModel.get('data');
      newSeriesOptList.push({
        name: seriesOpt.name,
        data: tryMergeDataOption(seriesOpt.data, originalData)
      });
    }
  });
  ecModel.mergeOption(util["defaults"]({
    series: newSeriesOptList
  }, payload.newOption));
});
/* harmony default export */ var feature_DataView = (DataView_DataView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/history.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var history_each = util["each"];
var history_inner = makeInner();
/**
 * @param ecModel
 * @param newSnapshot key is dataZoomId
 */
function push(ecModel, newSnapshot) {
  var storedSnapshots = getStoreSnapshots(ecModel);
  // If previous dataZoom can not be found,
  // complete an range with current range.
  history_each(newSnapshot, function (batchItem, dataZoomId) {
    var i = storedSnapshots.length - 1;
    for (; i >= 0; i--) {
      var snapshot = storedSnapshots[i];
      if (snapshot[dataZoomId]) {
        break;
      }
    }
    if (i < 0) {
      // No origin range set, create one by current range.
      var dataZoomModel = ecModel.queryComponents({
        mainType: 'dataZoom',
        subType: 'select',
        id: dataZoomId
      })[0];
      if (dataZoomModel) {
        var percentRange = dataZoomModel.getPercentRange();
        storedSnapshots[0][dataZoomId] = {
          dataZoomId: dataZoomId,
          start: percentRange[0],
          end: percentRange[1]
        };
      }
    }
  });
  storedSnapshots.push(newSnapshot);
}
function pop(ecModel) {
  var storedSnapshots = getStoreSnapshots(ecModel);
  var head = storedSnapshots[storedSnapshots.length - 1];
  storedSnapshots.length > 1 && storedSnapshots.pop();
  // Find top for all dataZoom.
  var snapshot = {};
  history_each(head, function (batchItem, dataZoomId) {
    for (var i = storedSnapshots.length - 1; i >= 0; i--) {
      batchItem = storedSnapshots[i][dataZoomId];
      if (batchItem) {
        snapshot[dataZoomId] = batchItem;
        break;
      }
    }
  });
  return snapshot;
}
function history_clear(ecModel) {
  history_inner(ecModel).snapshots = null;
}
function history_count(ecModel) {
  return getStoreSnapshots(ecModel).length;
}
/**
 * History length of each dataZoom may be different.
 * this._history[0] is used to store origin range.
 */
function getStoreSnapshots(ecModel) {
  var store = history_inner(ecModel);
  if (!store.snapshots) {
    store.snapshots = [{}];
  }
  return store.snapshots;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/Restore.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var Restore_RestoreOption = /** @class */function (_super) {
  __extends(RestoreOption, _super);
  function RestoreOption() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  RestoreOption.prototype.onclick = function (ecModel, api) {
    history_clear(ecModel);
    api.dispatchAction({
      type: 'restore',
      from: this.uid
    });
  };
  RestoreOption.getDefaultOption = function (ecModel) {
    var defaultOption = {
      show: true,
      // eslint-disable-next-line
      icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5',
      title: ecModel.getLocaleModel().get(['toolbox', 'restore', 'title'])
    };
    return defaultOption;
  };
  return RestoreOption;
}(ToolboxFeature);
// TODO: SELF REGISTERED.
registerAction({
  type: 'restore',
  event: 'restore',
  update: 'prepareAndUpdate'
}, function (payload, ecModel) {
  ecModel.resetOption('recreate');
});
/* harmony default export */ var Restore = (Restore_RestoreOption);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/BrushTargetManager.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




// FIXME
// how to genarialize to more coordinate systems.
var INCLUDE_FINDER_MAIN_TYPES = ['grid', 'xAxis', 'yAxis', 'geo', 'graph', 'polar', 'radiusAxis', 'angleAxis', 'bmap'];
var BrushTargetManager_BrushTargetManager = /** @class */function () {
  /**
   * @param finder contains Index/Id/Name of xAxis/yAxis/geo/grid
   *        Each can be {number|Array.<number>}. like: {xAxisIndex: [3, 4]}
   * @param opt.include include coordinate system types.
   */
  function BrushTargetManager(finder, ecModel, opt) {
    var _this = this;
    this._targetInfoList = [];
    var foundCpts = BrushTargetManager_parseFinder(ecModel, finder);
    Object(util["each"])(targetInfoBuilders, function (builder, type) {
      if (!opt || !opt.include || Object(util["indexOf"])(opt.include, type) >= 0) {
        builder(foundCpts, _this._targetInfoList);
      }
    });
  }
  BrushTargetManager.prototype.setOutputRanges = function (areas, ecModel) {
    this.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {
      (area.coordRanges || (area.coordRanges = [])).push(coordRange);
      // area.coordRange is the first of area.coordRanges
      if (!area.coordRange) {
        area.coordRange = coordRange;
        // In 'category' axis, coord to pixel is not reversible, so we can not
        // rebuild range by coordRange accrately, which may bring trouble when
        // brushing only one item. So we use __rangeOffset to rebuilding range
        // by coordRange. And this it only used in brush component so it is no
        // need to be adapted to coordRanges.
        var result = coordConvert[area.brushType](0, coordSys, coordRange);
        area.__rangeOffset = {
          offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]),
          xyMinMax: result.xyMinMax
        };
      }
    });
    return areas;
  };
  BrushTargetManager.prototype.matchOutputRanges = function (areas, ecModel, cb) {
    Object(util["each"])(areas, function (area) {
      var targetInfo = this.findTargetInfo(area, ecModel);
      if (targetInfo && targetInfo !== true) {
        Object(util["each"])(targetInfo.coordSyses, function (coordSys) {
          var result = coordConvert[area.brushType](1, coordSys, area.range, true);
          cb(area, result.values, coordSys, ecModel);
        });
      }
    }, this);
  };
  /**
   * the `areas` is `BrushModel.areas`.
   * Called in layout stage.
   * convert `area.coordRange` to global range and set panelId to `area.range`.
   */
  BrushTargetManager.prototype.setInputRanges = function (areas, ecModel) {
    Object(util["each"])(areas, function (area) {
      var targetInfo = this.findTargetInfo(area, ecModel);
      if (false) {}
      area.range = area.range || [];
      // convert coordRange to global range and set panelId.
      if (targetInfo && targetInfo !== true) {
        area.panelId = targetInfo.panelId;
        // (1) area.range should always be calculate from coordRange but does
        // not keep its original value, for the sake of the dataZoom scenario,
        // where area.coordRange remains unchanged but area.range may be changed.
        // (2) Only support converting one coordRange to pixel range in brush
        // component. So do not consider `coordRanges`.
        // (3) About __rangeOffset, see comment above.
        var result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange);
        var rangeOffset = area.__rangeOffset;
        area.range = rangeOffset ? diffProcessor[area.brushType](result.values, rangeOffset.offset, getScales(result.xyMinMax, rangeOffset.xyMinMax)) : result.values;
      }
    }, this);
  };
  BrushTargetManager.prototype.makePanelOpts = function (api, getDefaultBrushType) {
    return Object(util["map"])(this._targetInfoList, function (targetInfo) {
      var rect = targetInfo.getPanelRect();
      return {
        panelId: targetInfo.panelId,
        defaultBrushType: getDefaultBrushType ? getDefaultBrushType(targetInfo) : null,
        clipPath: makeRectPanelClipPath(rect),
        isTargetByCursor: makeRectIsTargetByCursor(rect, api, targetInfo.coordSysModel),
        getLinearBrushOtherExtent: makeLinearBrushOtherExtent(rect)
      };
    });
  };
  BrushTargetManager.prototype.controlSeries = function (area, seriesModel, ecModel) {
    // Check whether area is bound in coord, and series do not belong to that coord.
    // If do not do this check, some brush (like lineX) will controll all axes.
    var targetInfo = this.findTargetInfo(area, ecModel);
    return targetInfo === true || targetInfo && Object(util["indexOf"])(targetInfo.coordSyses, seriesModel.coordinateSystem) >= 0;
  };
  /**
   * If return Object, a coord found.
   * If return true, global found.
   * Otherwise nothing found.
   */
  BrushTargetManager.prototype.findTargetInfo = function (area, ecModel) {
    var targetInfoList = this._targetInfoList;
    var foundCpts = BrushTargetManager_parseFinder(ecModel, area);
    for (var i = 0; i < targetInfoList.length; i++) {
      var targetInfo = targetInfoList[i];
      var areaPanelId = area.panelId;
      if (areaPanelId) {
        if (targetInfo.panelId === areaPanelId) {
          return targetInfo;
        }
      } else {
        for (var j = 0; j < targetInfoMatchers.length; j++) {
          if (targetInfoMatchers[j](foundCpts, targetInfo)) {
            return targetInfo;
          }
        }
      }
    }
    return true;
  };
  return BrushTargetManager;
}();
function formatMinMax(minMax) {
  minMax[0] > minMax[1] && minMax.reverse();
  return minMax;
}
function BrushTargetManager_parseFinder(ecModel, finder) {
  return parseFinder(ecModel, finder, {
    includeMainTypes: INCLUDE_FINDER_MAIN_TYPES
  });
}
var targetInfoBuilders = {
  grid: function (foundCpts, targetInfoList) {
    var xAxisModels = foundCpts.xAxisModels;
    var yAxisModels = foundCpts.yAxisModels;
    var gridModels = foundCpts.gridModels;
    // Remove duplicated.
    var gridModelMap = Object(util["createHashMap"])();
    var xAxesHas = {};
    var yAxesHas = {};
    if (!xAxisModels && !yAxisModels && !gridModels) {
      return;
    }
    Object(util["each"])(xAxisModels, function (axisModel) {
      var gridModel = axisModel.axis.grid.model;
      gridModelMap.set(gridModel.id, gridModel);
      xAxesHas[gridModel.id] = true;
    });
    Object(util["each"])(yAxisModels, function (axisModel) {
      var gridModel = axisModel.axis.grid.model;
      gridModelMap.set(gridModel.id, gridModel);
      yAxesHas[gridModel.id] = true;
    });
    Object(util["each"])(gridModels, function (gridModel) {
      gridModelMap.set(gridModel.id, gridModel);
      xAxesHas[gridModel.id] = true;
      yAxesHas[gridModel.id] = true;
    });
    gridModelMap.each(function (gridModel) {
      var grid = gridModel.coordinateSystem;
      var cartesians = [];
      Object(util["each"])(grid.getCartesians(), function (cartesian, index) {
        if (Object(util["indexOf"])(xAxisModels, cartesian.getAxis('x').model) >= 0 || Object(util["indexOf"])(yAxisModels, cartesian.getAxis('y').model) >= 0) {
          cartesians.push(cartesian);
        }
      });
      targetInfoList.push({
        panelId: 'grid--' + gridModel.id,
        gridModel: gridModel,
        coordSysModel: gridModel,
        // Use the first one as the representitive coordSys.
        coordSys: cartesians[0],
        coordSyses: cartesians,
        getPanelRect: panelRectBuilders.grid,
        xAxisDeclared: xAxesHas[gridModel.id],
        yAxisDeclared: yAxesHas[gridModel.id]
      });
    });
  },
  geo: function (foundCpts, targetInfoList) {
    Object(util["each"])(foundCpts.geoModels, function (geoModel) {
      var coordSys = geoModel.coordinateSystem;
      targetInfoList.push({
        panelId: 'geo--' + geoModel.id,
        geoModel: geoModel,
        coordSysModel: geoModel,
        coordSys: coordSys,
        coordSyses: [coordSys],
        getPanelRect: panelRectBuilders.geo
      });
    });
  }
};
var targetInfoMatchers = [
// grid
function (foundCpts, targetInfo) {
  var xAxisModel = foundCpts.xAxisModel;
  var yAxisModel = foundCpts.yAxisModel;
  var gridModel = foundCpts.gridModel;
  !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model);
  !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model);
  return gridModel && gridModel === targetInfo.gridModel;
},
// geo
function (foundCpts, targetInfo) {
  var geoModel = foundCpts.geoModel;
  return geoModel && geoModel === targetInfo.geoModel;
}];
var panelRectBuilders = {
  grid: function () {
    // grid is not Transformable.
    return this.coordSys.master.getRect().clone();
  },
  geo: function () {
    var coordSys = this.coordSys;
    var rect = coordSys.getBoundingRect().clone();
    // geo roam and zoom transform
    rect.applyTransform(getTransform(coordSys));
    return rect;
  }
};
var coordConvert = {
  lineX: Object(util["curry"])(axisConvert, 0),
  lineY: Object(util["curry"])(axisConvert, 1),
  rect: function (to, coordSys, rangeOrCoordRange, clamp) {
    var xminymin = to ? coordSys.pointToData([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp);
    var xmaxymax = to ? coordSys.pointToData([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp);
    var values = [formatMinMax([xminymin[0], xmaxymax[0]]), formatMinMax([xminymin[1], xmaxymax[1]])];
    return {
      values: values,
      xyMinMax: values
    };
  },
  polygon: function (to, coordSys, rangeOrCoordRange, clamp) {
    var xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]];
    var values = Object(util["map"])(rangeOrCoordRange, function (item) {
      var p = to ? coordSys.pointToData(item, clamp) : coordSys.dataToPoint(item, clamp);
      xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]);
      xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]);
      xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]);
      xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]);
      return p;
    });
    return {
      values: values,
      xyMinMax: xyMinMax
    };
  }
};
function axisConvert(axisNameIndex, to, coordSys, rangeOrCoordRange) {
  if (false) {}
  var axis = coordSys.getAxis(['x', 'y'][axisNameIndex]);
  var values = formatMinMax(Object(util["map"])([0, 1], function (i) {
    return to ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i]), true) : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i]));
  }));
  var xyMinMax = [];
  xyMinMax[axisNameIndex] = values;
  xyMinMax[1 - axisNameIndex] = [NaN, NaN];
  return {
    values: values,
    xyMinMax: xyMinMax
  };
}
var diffProcessor = {
  lineX: Object(util["curry"])(axisDiffProcessor, 0),
  lineY: Object(util["curry"])(axisDiffProcessor, 1),
  rect: function (values, refer, scales) {
    return [[values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]], [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]]];
  },
  polygon: function (values, refer, scales) {
    return Object(util["map"])(values, function (item, idx) {
      return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]];
    });
  }
};
function axisDiffProcessor(axisNameIndex, values, refer, scales) {
  return [values[0] - scales[axisNameIndex] * refer[0], values[1] - scales[axisNameIndex] * refer[1]];
}
// We have to process scale caused by dataZoom manually,
// although it might be not accurate.
// Return [0~1, 0~1]
function getScales(xyMinMaxCurr, xyMinMaxOrigin) {
  var sizeCurr = BrushTargetManager_getSize(xyMinMaxCurr);
  var sizeOrigin = BrushTargetManager_getSize(xyMinMaxOrigin);
  var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];
  isNaN(scales[0]) && (scales[0] = 1);
  isNaN(scales[1]) && (scales[1] = 1);
  return scales;
}
function BrushTargetManager_getSize(xyMinMax) {
  return xyMinMax ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]] : [NaN, NaN];
}
/* harmony default export */ var helper_BrushTargetManager = (BrushTargetManager_BrushTargetManager);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/DataZoom.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// TODO depends on DataZoom and Brush








var DataZoom_each = util["each"];
var DATA_ZOOM_ID_BASE = makeInternalComponentId('toolbox-dataZoom_');
var DataZoom_ICON_TYPES = ['zoom', 'back'];
var DataZoom_DataZoomFeature = /** @class */function (_super) {
  __extends(DataZoomFeature, _super);
  function DataZoomFeature() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  DataZoomFeature.prototype.render = function (featureModel, ecModel, api, payload) {
    if (!this._brushController) {
      this._brushController = new helper_BrushController(api.getZr());
      this._brushController.on('brush', util["bind"](this._onBrush, this)).mount();
    }
    updateZoomBtnStatus(featureModel, ecModel, this, payload, api);
    updateBackBtnStatus(featureModel, ecModel);
  };
  DataZoomFeature.prototype.onclick = function (ecModel, api, type) {
    DataZoom_handlers[type].call(this);
  };
  DataZoomFeature.prototype.remove = function (ecModel, api) {
    this._brushController && this._brushController.unmount();
  };
  DataZoomFeature.prototype.dispose = function (ecModel, api) {
    this._brushController && this._brushController.dispose();
  };
  DataZoomFeature.prototype._onBrush = function (eventParam) {
    var areas = eventParam.areas;
    if (!eventParam.isEnd || !areas.length) {
      return;
    }
    var snapshot = {};
    var ecModel = this.ecModel;
    this._brushController.updateCovers([]); // remove cover
    var brushTargetManager = new helper_BrushTargetManager(makeAxisFinder(this.model), ecModel, {
      include: ['grid']
    });
    brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {
      if (coordSys.type !== 'cartesian2d') {
        return;
      }
      var brushType = area.brushType;
      if (brushType === 'rect') {
        setBatch('x', coordSys, coordRange[0]);
        setBatch('y', coordSys, coordRange[1]);
      } else {
        setBatch({
          lineX: 'x',
          lineY: 'y'
        }[brushType], coordSys, coordRange);
      }
    });
    push(ecModel, snapshot);
    this._dispatchZoomAction(snapshot);
    function setBatch(dimName, coordSys, minMax) {
      var axis = coordSys.getAxis(dimName);
      var axisModel = axis.model;
      var dataZoomModel = findDataZoom(dimName, axisModel, ecModel);
      // Restrict range.
      var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan();
      if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) {
        minMax = sliderMove(0, minMax.slice(), axis.scale.getExtent(), 0, minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan);
      }
      dataZoomModel && (snapshot[dataZoomModel.id] = {
        dataZoomId: dataZoomModel.id,
        startValue: minMax[0],
        endValue: minMax[1]
      });
    }
    function findDataZoom(dimName, axisModel, ecModel) {
      var found;
      ecModel.eachComponent({
        mainType: 'dataZoom',
        subType: 'select'
      }, function (dzModel) {
        var has = dzModel.getAxisModel(dimName, axisModel.componentIndex);
        has && (found = dzModel);
      });
      return found;
    }
  };
  ;
  DataZoomFeature.prototype._dispatchZoomAction = function (snapshot) {
    var batch = [];
    // Convert from hash map to array.
    DataZoom_each(snapshot, function (batchItem, dataZoomId) {
      batch.push(util["clone"](batchItem));
    });
    batch.length && this.api.dispatchAction({
      type: 'dataZoom',
      from: this.uid,
      batch: batch
    });
  };
  DataZoomFeature.getDefaultOption = function (ecModel) {
    var defaultOption = {
      show: true,
      filterMode: 'filter',
      // Icon group
      icon: {
        zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',
        back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'
      },
      // `zoom`, `back`
      title: ecModel.getLocaleModel().get(['toolbox', 'dataZoom', 'title']),
      brushStyle: {
        borderWidth: 0,
        color: 'rgba(210,219,238,0.2)'
      }
    };
    return defaultOption;
  };
  return DataZoomFeature;
}(ToolboxFeature);
var DataZoom_handlers = {
  zoom: function () {
    var nextActive = !this._isZoomActive;
    this.api.dispatchAction({
      type: 'takeGlobalCursor',
      key: 'dataZoomSelect',
      dataZoomSelectActive: nextActive
    });
  },
  back: function () {
    this._dispatchZoomAction(pop(this.ecModel));
  }
};
function makeAxisFinder(dzFeatureModel) {
  var setting = {
    xAxisIndex: dzFeatureModel.get('xAxisIndex', true),
    yAxisIndex: dzFeatureModel.get('yAxisIndex', true),
    xAxisId: dzFeatureModel.get('xAxisId', true),
    yAxisId: dzFeatureModel.get('yAxisId', true)
  };
  // If both `xAxisIndex` `xAxisId` not set, it means 'all'.
  // If both `yAxisIndex` `yAxisId` not set, it means 'all'.
  // Some old cases set like this below to close yAxis control but leave xAxis control:
  // `{ feature: { dataZoom: { yAxisIndex: false } }`.
  if (setting.xAxisIndex == null && setting.xAxisId == null) {
    setting.xAxisIndex = 'all';
  }
  if (setting.yAxisIndex == null && setting.yAxisId == null) {
    setting.yAxisIndex = 'all';
  }
  return setting;
}
function updateBackBtnStatus(featureModel, ecModel) {
  featureModel.setIconStatus('back', history_count(ecModel) > 1 ? 'emphasis' : 'normal');
}
function updateZoomBtnStatus(featureModel, ecModel, view, payload, api) {
  var zoomActive = view._isZoomActive;
  if (payload && payload.type === 'takeGlobalCursor') {
    zoomActive = payload.key === 'dataZoomSelect' ? payload.dataZoomSelectActive : false;
  }
  view._isZoomActive = zoomActive;
  featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal');
  var brushTargetManager = new helper_BrushTargetManager(makeAxisFinder(featureModel), ecModel, {
    include: ['grid']
  });
  var panels = brushTargetManager.makePanelOpts(api, function (targetInfo) {
    return targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared ? 'lineX' : !targetInfo.xAxisDeclared && targetInfo.yAxisDeclared ? 'lineY' : 'rect';
  });
  view._brushController.setPanels(panels).enableBrush(zoomActive && panels.length ? {
    brushType: 'auto',
    brushStyle: featureModel.getModel('brushStyle').getItemStyle()
  } : false);
}
registerInternalOptionCreator('dataZoom', function (ecModel) {
  var toolboxModel = ecModel.getComponent('toolbox', 0);
  var featureDataZoomPath = ['feature', 'dataZoom'];
  if (!toolboxModel || toolboxModel.get(featureDataZoomPath) == null) {
    return;
  }
  var dzFeatureModel = toolboxModel.getModel(featureDataZoomPath);
  var dzOptions = [];
  var finder = makeAxisFinder(dzFeatureModel);
  var finderResult = parseFinder(ecModel, finder);
  DataZoom_each(finderResult.xAxisModels, function (axisModel) {
    return buildInternalOptions(axisModel, 'xAxis', 'xAxisIndex');
  });
  DataZoom_each(finderResult.yAxisModels, function (axisModel) {
    return buildInternalOptions(axisModel, 'yAxis', 'yAxisIndex');
  });
  function buildInternalOptions(axisModel, axisMainType, axisIndexPropName) {
    var axisIndex = axisModel.componentIndex;
    var newOpt = {
      type: 'select',
      $fromToolbox: true,
      // Default to be filter
      filterMode: dzFeatureModel.get('filterMode', true) || 'filter',
      // Id for merge mapping.
      id: DATA_ZOOM_ID_BASE + axisMainType + axisIndex
    };
    newOpt[axisIndexPropName] = axisIndex;
    dzOptions.push(newOpt);
  }
  return dzOptions;
});
/* harmony default export */ var DataZoom = (DataZoom_DataZoomFeature);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




// TODOD: REGISTER IN INSTALL






function toolbox_install_install(registers) {
  registers.registerComponentModel(toolbox_ToolboxModel);
  registers.registerComponentView(toolbox_ToolboxView);
  registerFeature('saveAsImage', feature_SaveAsImage);
  registerFeature('magicType', feature_MagicType);
  registerFeature('dataView', feature_DataView);
  registerFeature('dataZoom', DataZoom);
  registerFeature('restore', Restore);
  use(installDataZoomSelect_install);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/TooltipModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var TooltipModel_TooltipModel = /** @class */function (_super) {
  __extends(TooltipModel, _super);
  function TooltipModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TooltipModel.type;
    return _this;
  }
  TooltipModel.type = 'tooltip';
  TooltipModel.dependencies = ['axisPointer'];
  TooltipModel.defaultOption = {
    // zlevel: 0,
    z: 60,
    show: true,
    // tooltip main content
    showContent: true,
    // 'trigger' only works on coordinate system.
    // 'item' | 'axis' | 'none'
    trigger: 'item',
    // 'click' | 'mousemove' | 'none'
    triggerOn: 'mousemove|click',
    alwaysShowContent: false,
    displayMode: 'single',
    renderMode: 'auto',
    // whether restraint content inside viewRect.
    // If renderMode: 'richText', default true.
    // If renderMode: 'html', defaut false (for backward compat).
    confine: null,
    showDelay: 0,
    hideDelay: 100,
    // Animation transition time, unit is second
    transitionDuration: 0.4,
    enterable: false,
    backgroundColor: '#fff',
    // box shadow
    shadowBlur: 10,
    shadowColor: 'rgba(0, 0, 0, .2)',
    shadowOffsetX: 1,
    shadowOffsetY: 2,
    // tooltip border radius, unit is px, default is 4
    borderRadius: 4,
    // tooltip border width, unit is px, default is 0 (no border)
    borderWidth: 1,
    // Tooltip inside padding, default is 5 for all direction
    // Array is allowed to set up, right, bottom, left, same with css
    // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.
    padding: null,
    // Extra css text
    extraCssText: '',
    // axis indicator, trigger by axis
    axisPointer: {
      // default is line
      // legal values: 'line' | 'shadow' | 'cross'
      type: 'line',
      // Valid when type is line, appoint tooltip line locate on which line. Optional
      // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'
      // default is 'auto', chose the axis which type is category.
      // for multiply y axis, cartesian coord chose x axis, polar chose angle axis
      axis: 'auto',
      animation: 'auto',
      animationDurationUpdate: 200,
      animationEasingUpdate: 'exponentialOut',
      crossStyle: {
        color: '#999',
        width: 1,
        type: 'dashed',
        // TODO formatter
        textStyle: {}
      }
      // lineStyle and shadowStyle should not be specified here,
      // otherwise it will always override those styles on option.axisPointer.
    },
    textStyle: {
      color: '#666',
      fontSize: 14
    }
  };
  return TooltipModel;
}(Component);
/* harmony default export */ var tooltip_TooltipModel = (TooltipModel_TooltipModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/helper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/* global document */
function shouldTooltipConfine(tooltipModel) {
  var confineOption = tooltipModel.get('confine');
  return confineOption != null ? !!confineOption
  // In richText mode, the outside part can not be visible.
  : tooltipModel.get('renderMode') === 'richText';
}
function testStyle(styleProps) {
  if (!env["a" /* default */].domSupported) {
    return;
  }
  var style = document.documentElement.style;
  for (var i = 0, len = styleProps.length; i < len; i++) {
    if (styleProps[i] in style) {
      return styleProps[i];
    }
  }
}
var TRANSFORM_VENDOR = testStyle(['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']);
var TRANSITION_VENDOR = testStyle(['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);
function toCSSVendorPrefix(styleVendor, styleProp) {
  if (!styleVendor) {
    return styleProp;
  }
  styleProp = toCamelCase(styleProp, true);
  var idx = styleVendor.indexOf(styleProp);
  styleVendor = idx === -1 ? styleProp : "-" + styleVendor.slice(0, idx) + "-" + styleProp;
  return styleVendor.toLowerCase();
}
function getComputedStyle(el, style) {
  var stl = el.currentStyle || document.defaultView && document.defaultView.getComputedStyle(el);
  return stl ? style ? stl[style] : stl : null;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







/* global document, window */
var CSS_TRANSITION_VENDOR = toCSSVendorPrefix(TRANSITION_VENDOR, 'transition');
var CSS_TRANSFORM_VENDOR = toCSSVendorPrefix(TRANSFORM_VENDOR, 'transform');
// eslint-disable-next-line
var gCssText = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (env["a" /* default */].transform3dSupported ? 'will-change:transform;' : '');
function mirrorPos(pos) {
  pos = pos === 'left' ? 'right' : pos === 'right' ? 'left' : pos === 'top' ? 'bottom' : 'top';
  return pos;
}
function assembleArrow(tooltipModel, borderColor, arrowPosition) {
  if (!Object(util["isString"])(arrowPosition) || arrowPosition === 'inside') {
    return '';
  }
  var backgroundColor = tooltipModel.get('backgroundColor');
  var borderWidth = tooltipModel.get('borderWidth');
  borderColor = convertToColorString(borderColor);
  var arrowPos = mirrorPos(arrowPosition);
  var arrowSize = Math.max(Math.round(borderWidth) * 1.5, 6);
  var positionStyle = '';
  var transformStyle = CSS_TRANSFORM_VENDOR + ':';
  var rotateDeg;
  if (Object(util["indexOf"])(['left', 'right'], arrowPos) > -1) {
    positionStyle += 'top:50%';
    transformStyle += "translateY(-50%) rotate(" + (rotateDeg = arrowPos === 'left' ? -225 : -45) + "deg)";
  } else {
    positionStyle += 'left:50%';
    transformStyle += "translateX(-50%) rotate(" + (rotateDeg = arrowPos === 'top' ? 225 : 45) + "deg)";
  }
  var rotateRadian = rotateDeg * Math.PI / 180;
  var arrowWH = arrowSize + borderWidth;
  var rotatedWH = arrowWH * Math.abs(Math.cos(rotateRadian)) + arrowWH * Math.abs(Math.sin(rotateRadian));
  var arrowOffset = Math.round(((rotatedWH - Math.SQRT2 * borderWidth) / 2 + Math.SQRT2 * borderWidth - (rotatedWH - arrowWH) / 2) * 100) / 100;
  positionStyle += ";" + arrowPos + ":-" + arrowOffset + "px";
  var borderStyle = borderColor + " solid " + borderWidth + "px;";
  var styleCss = ["position:absolute;width:" + arrowSize + "px;height:" + arrowSize + "px;z-index:-1;", positionStyle + ";" + transformStyle + ";", "border-bottom:" + borderStyle, "border-right:" + borderStyle, "background-color:" + backgroundColor + ";"];
  return "<div style=\"" + styleCss.join('') + "\"></div>";
}
function assembleTransition(duration, onlyFade) {
  var transitionCurve = 'cubic-bezier(0.23,1,0.32,1)';
  var transitionOption = " " + duration / 2 + "s " + transitionCurve;
  var transitionText = "opacity" + transitionOption + ",visibility" + transitionOption;
  if (!onlyFade) {
    transitionOption = " " + duration + "s " + transitionCurve;
    transitionText += env["a" /* default */].transformSupported ? "," + CSS_TRANSFORM_VENDOR + transitionOption : ",left" + transitionOption + ",top" + transitionOption;
  }
  return CSS_TRANSITION_VENDOR + ':' + transitionText;
}
function assembleTransform(x, y, toString) {
  // If using float on style, the final width of the dom might
  // keep changing slightly while mouse move. So `toFixed(0)` them.
  var x0 = x.toFixed(0) + 'px';
  var y0 = y.toFixed(0) + 'px';
  // not support transform, use `left` and `top` instead.
  if (!env["a" /* default */].transformSupported) {
    return toString ? "top:" + y0 + ";left:" + x0 + ";" : [['top', y0], ['left', x0]];
  }
  // support transform
  var is3d = env["a" /* default */].transform3dSupported;
  var translate = "translate" + (is3d ? '3d' : '') + "(" + x0 + "," + y0 + (is3d ? ',0' : '') + ")";
  return toString ? 'top:0;left:0;' + CSS_TRANSFORM_VENDOR + ':' + translate + ';' : [['top', 0], ['left', 0], [TRANSFORM_VENDOR, translate]];
}
/**
 * @param {Object} textStyle
 * @return {string}
 * @inner
 */
function assembleFont(textStyleModel) {
  var cssText = [];
  var fontSize = textStyleModel.get('fontSize');
  var color = textStyleModel.getTextColor();
  color && cssText.push('color:' + color);
  cssText.push('font:' + textStyleModel.getFont());
  // @ts-ignore, leave it to the tooltip refactor.
  var lineHeight = Object(util["retrieve2"])(textStyleModel.get('lineHeight'), Math.round(fontSize * 3 / 2));
  fontSize && cssText.push('line-height:' + lineHeight + 'px');
  var shadowColor = textStyleModel.get('textShadowColor');
  var shadowBlur = textStyleModel.get('textShadowBlur') || 0;
  var shadowOffsetX = textStyleModel.get('textShadowOffsetX') || 0;
  var shadowOffsetY = textStyleModel.get('textShadowOffsetY') || 0;
  shadowColor && shadowBlur && cssText.push('text-shadow:' + shadowOffsetX + 'px ' + shadowOffsetY + 'px ' + shadowBlur + 'px ' + shadowColor);
  Object(util["each"])(['decoration', 'align'], function (name) {
    var val = textStyleModel.get(name);
    val && cssText.push('text-' + name + ':' + val);
  });
  return cssText.join(';');
}
function assembleCssText(tooltipModel, enableTransition, onlyFade) {
  var cssText = [];
  var transitionDuration = tooltipModel.get('transitionDuration');
  var backgroundColor = tooltipModel.get('backgroundColor');
  var shadowBlur = tooltipModel.get('shadowBlur');
  var shadowColor = tooltipModel.get('shadowColor');
  var shadowOffsetX = tooltipModel.get('shadowOffsetX');
  var shadowOffsetY = tooltipModel.get('shadowOffsetY');
  var textStyleModel = tooltipModel.getModel('textStyle');
  var padding = getPaddingFromTooltipModel(tooltipModel, 'html');
  var boxShadow = shadowOffsetX + "px " + shadowOffsetY + "px " + shadowBlur + "px " + shadowColor;
  cssText.push('box-shadow:' + boxShadow);
  // Animation transition. Do not animate when transitionDuration is 0.
  enableTransition && transitionDuration && cssText.push(assembleTransition(transitionDuration, onlyFade));
  if (backgroundColor) {
    cssText.push('background-color:' + backgroundColor);
  }
  // Border style
  Object(util["each"])(['width', 'color', 'radius'], function (name) {
    var borderName = 'border-' + name;
    var camelCase = toCamelCase(borderName);
    var val = tooltipModel.get(camelCase);
    val != null && cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));
  });
  // Text style
  cssText.push(assembleFont(textStyleModel));
  // Padding
  if (padding != null) {
    cssText.push('padding:' + normalizeCssArray(padding).join('px ') + 'px');
  }
  return cssText.join(';') + ';';
}
// If not able to make, do not modify the input `out`.
function makeStyleCoord(out, zr, container, zrX, zrY) {
  var zrPainter = zr && zr.painter;
  if (container) {
    var zrViewportRoot = zrPainter && zrPainter.getViewportRoot();
    if (zrViewportRoot) {
      // Some APPs might use scale on body, so we support CSS transform here.
      transformLocalCoord(out, zrViewportRoot, container, zrX, zrY);
    }
  } else {
    out[0] = zrX;
    out[1] = zrY;
    // xy should be based on canvas root. But tooltipContent is
    // the sibling of canvas root. So padding of ec container
    // should be considered here.
    var viewportRootOffset = zrPainter && zrPainter.getViewportRootOffset();
    if (viewportRootOffset) {
      out[0] += viewportRootOffset.offsetLeft;
      out[1] += viewportRootOffset.offsetTop;
    }
  }
  out[2] = out[0] / zr.getWidth();
  out[3] = out[1] / zr.getHeight();
}
var TooltipHTMLContent_TooltipHTMLContent = /** @class */function () {
  function TooltipHTMLContent(api, opt) {
    this._show = false;
    this._styleCoord = [0, 0, 0, 0];
    this._enterable = true;
    this._alwaysShowContent = false;
    this._firstShow = true;
    this._longHide = true;
    if (env["a" /* default */].wxa) {
      return null;
    }
    var el = document.createElement('div');
    // TODO: TYPE
    el.domBelongToZr = true;
    this.el = el;
    var zr = this._zr = api.getZr();
    var appendTo = opt.appendTo;
    var container = appendTo && (Object(util["isString"])(appendTo) ? document.querySelector(appendTo) : Object(util["isDom"])(appendTo) ? appendTo : Object(util["isFunction"])(appendTo) && appendTo(api.getDom()));
    makeStyleCoord(this._styleCoord, zr, container, api.getWidth() / 2, api.getHeight() / 2);
    (container || api.getDom()).appendChild(el);
    this._api = api;
    this._container = container;
    // FIXME
    // Is it needed to trigger zr event manually if
    // the browser do not support `pointer-events: none`.
    var self = this;
    el.onmouseenter = function () {
      // clear the timeout in hideLater and keep showing tooltip
      if (self._enterable) {
        clearTimeout(self._hideTimeout);
        self._show = true;
      }
      self._inContent = true;
    };
    el.onmousemove = function (e) {
      e = e || window.event;
      if (!self._enterable) {
        // `pointer-events: none` is set to tooltip content div
        // if `enterable` is set as `false`, and `el.onmousemove`
        // can not be triggered. But in browser that do not
        // support `pointer-events`, we need to do this:
        // Try trigger zrender event to avoid mouse
        // in and out shape too frequently
        var handler = zr.handler;
        var zrViewportRoot = zr.painter.getViewportRoot();
        normalizeEvent(zrViewportRoot, e, true);
        handler.dispatch('mousemove', e);
      }
    };
    el.onmouseleave = function () {
      // set `_inContent` to `false` before `hideLater`
      self._inContent = false;
      if (self._enterable) {
        if (self._show) {
          self.hideLater(self._hideDelay);
        }
      }
    };
  }
  /**
   * Update when tooltip is rendered
   */
  TooltipHTMLContent.prototype.update = function (tooltipModel) {
    // FIXME
    // Move this logic to ec main?
    if (!this._container) {
      var container = this._api.getDom();
      var position = getComputedStyle(container, 'position');
      var domStyle = container.style;
      if (domStyle.position !== 'absolute' && position !== 'absolute') {
        domStyle.position = 'relative';
      }
    }
    // move tooltip if chart resized
    var alwaysShowContent = tooltipModel.get('alwaysShowContent');
    alwaysShowContent && this._moveIfResized();
    // update alwaysShowContent
    this._alwaysShowContent = alwaysShowContent;
    // update className
    this.el.className = tooltipModel.get('className') || '';
    // Hide the tooltip
    // PENDING
    // this.hide();
  };
  TooltipHTMLContent.prototype.show = function (tooltipModel, nearPointColor) {
    clearTimeout(this._hideTimeout);
    clearTimeout(this._longHideTimeout);
    var el = this.el;
    var style = el.style;
    var styleCoord = this._styleCoord;
    if (!el.innerHTML) {
      style.display = 'none';
    } else {
      style.cssText = gCssText + assembleCssText(tooltipModel, !this._firstShow, this._longHide)
      // initial transform
      + assembleTransform(styleCoord[0], styleCoord[1], true) + ("border-color:" + convertToColorString(nearPointColor) + ";") + (tooltipModel.get('extraCssText') || '')
      // If mouse occasionally move over the tooltip, a mouseout event will be
      // triggered by canvas, and cause some unexpectable result like dragging
      // stop, "unfocusAdjacency". Here `pointer-events: none` is used to solve
      // it. Although it is not supported by IE8~IE10, fortunately it is a rare
      // scenario.
      + (";pointer-events:" + (this._enterable ? 'auto' : 'none'));
    }
    this._show = true;
    this._firstShow = false;
    this._longHide = false;
  };
  TooltipHTMLContent.prototype.setContent = function (content, markers, tooltipModel, borderColor, arrowPosition) {
    var el = this.el;
    if (content == null) {
      el.innerHTML = '';
      return;
    }
    var arrow = '';
    if (Object(util["isString"])(arrowPosition) && tooltipModel.get('trigger') === 'item' && !shouldTooltipConfine(tooltipModel)) {
      arrow = assembleArrow(tooltipModel, borderColor, arrowPosition);
    }
    if (Object(util["isString"])(content)) {
      el.innerHTML = content + arrow;
    } else if (content) {
      // Clear previous
      el.innerHTML = '';
      if (!Object(util["isArray"])(content)) {
        content = [content];
      }
      for (var i = 0; i < content.length; i++) {
        if (Object(util["isDom"])(content[i]) && content[i].parentNode !== el) {
          el.appendChild(content[i]);
        }
      }
      // no arrow if empty
      if (arrow && el.childNodes.length) {
        // no need to create a new parent element, but it's not supported by IE 10 and older.
        // const arrowEl = document.createRange().createContextualFragment(arrow);
        var arrowEl = document.createElement('div');
        arrowEl.innerHTML = arrow;
        el.appendChild(arrowEl);
      }
    }
  };
  TooltipHTMLContent.prototype.setEnterable = function (enterable) {
    this._enterable = enterable;
  };
  TooltipHTMLContent.prototype.getSize = function () {
    var el = this.el;
    return el ? [el.offsetWidth, el.offsetHeight] : [0, 0];
  };
  TooltipHTMLContent.prototype.moveTo = function (zrX, zrY) {
    if (!this.el) {
      return;
    }
    var styleCoord = this._styleCoord;
    makeStyleCoord(styleCoord, this._zr, this._container, zrX, zrY);
    if (styleCoord[0] != null && styleCoord[1] != null) {
      var style_1 = this.el.style;
      var transforms = assembleTransform(styleCoord[0], styleCoord[1]);
      Object(util["each"])(transforms, function (transform) {
        style_1[transform[0]] = transform[1];
      });
    }
  };
  /**
   * when `alwaysShowContent` is true,
   * move the tooltip after chart resized
   */
  TooltipHTMLContent.prototype._moveIfResized = function () {
    // The ratio of left to width
    var ratioX = this._styleCoord[2];
    // The ratio of top to height
    var ratioY = this._styleCoord[3];
    this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight());
  };
  TooltipHTMLContent.prototype.hide = function () {
    var _this = this;
    var style = this.el.style;
    style.visibility = 'hidden';
    style.opacity = '0';
    env["a" /* default */].transform3dSupported && (style.willChange = '');
    this._show = false;
    this._longHideTimeout = setTimeout(function () {
      return _this._longHide = true;
    }, 500);
  };
  TooltipHTMLContent.prototype.hideLater = function (time) {
    if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) {
      if (time) {
        this._hideDelay = time;
        // Set show false to avoid invoke hideLater multiple times
        this._show = false;
        this._hideTimeout = setTimeout(Object(util["bind"])(this.hide, this), time);
      } else {
        this.hide();
      }
    }
  };
  TooltipHTMLContent.prototype.isShow = function () {
    return this._show;
  };
  TooltipHTMLContent.prototype.dispose = function () {
    clearTimeout(this._hideTimeout);
    clearTimeout(this._longHideTimeout);
    var parentNode = this.el.parentNode;
    parentNode && parentNode.removeChild(this.el);
    this.el = this._container = null;
  };
  return TooltipHTMLContent;
}();
/* harmony default export */ var tooltip_TooltipHTMLContent = (TooltipHTMLContent_TooltipHTMLContent);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/TooltipRichContent.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var TooltipRichContent_TooltipRichContent = /** @class */function () {
  function TooltipRichContent(api) {
    this._show = false;
    this._styleCoord = [0, 0, 0, 0];
    this._alwaysShowContent = false;
    this._enterable = true;
    this._zr = api.getZr();
    TooltipRichContent_makeStyleCoord(this._styleCoord, this._zr, api.getWidth() / 2, api.getHeight() / 2);
  }
  /**
   * Update when tooltip is rendered
   */
  TooltipRichContent.prototype.update = function (tooltipModel) {
    var alwaysShowContent = tooltipModel.get('alwaysShowContent');
    alwaysShowContent && this._moveIfResized();
    // update alwaysShowContent
    this._alwaysShowContent = alwaysShowContent;
  };
  TooltipRichContent.prototype.show = function () {
    if (this._hideTimeout) {
      clearTimeout(this._hideTimeout);
    }
    this.el.show();
    this._show = true;
  };
  /**
   * Set tooltip content
   */
  TooltipRichContent.prototype.setContent = function (content, markupStyleCreator, tooltipModel, borderColor, arrowPosition) {
    var _this = this;
    if (util["isObject"](content)) {
      throwError( false ? undefined : '');
    }
    if (this.el) {
      this._zr.remove(this.el);
    }
    var textStyleModel = tooltipModel.getModel('textStyle');
    this.el = new Text({
      style: {
        rich: markupStyleCreator.richTextStyles,
        text: content,
        lineHeight: 22,
        borderWidth: 1,
        borderColor: borderColor,
        textShadowColor: textStyleModel.get('textShadowColor'),
        fill: tooltipModel.get(['textStyle', 'color']),
        padding: getPaddingFromTooltipModel(tooltipModel, 'richText'),
        verticalAlign: 'top',
        align: 'left'
      },
      z: tooltipModel.get('z')
    });
    util["each"](['backgroundColor', 'borderRadius', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'], function (propName) {
      _this.el.style[propName] = tooltipModel.get(propName);
    });
    util["each"](['textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'], function (propName) {
      _this.el.style[propName] = textStyleModel.get(propName) || 0;
    });
    this._zr.add(this.el);
    var self = this;
    this.el.on('mouseover', function () {
      // clear the timeout in hideLater and keep showing tooltip
      if (self._enterable) {
        clearTimeout(self._hideTimeout);
        self._show = true;
      }
      self._inContent = true;
    });
    this.el.on('mouseout', function () {
      if (self._enterable) {
        if (self._show) {
          self.hideLater(self._hideDelay);
        }
      }
      self._inContent = false;
    });
  };
  TooltipRichContent.prototype.setEnterable = function (enterable) {
    this._enterable = enterable;
  };
  TooltipRichContent.prototype.getSize = function () {
    var el = this.el;
    var bounding = this.el.getBoundingRect();
    // bounding rect does not include shadow. For renderMode richText,
    // if overflow, it will be cut. So calculate them accurately.
    var shadowOuterSize = calcShadowOuterSize(el.style);
    return [bounding.width + shadowOuterSize.left + shadowOuterSize.right, bounding.height + shadowOuterSize.top + shadowOuterSize.bottom];
  };
  TooltipRichContent.prototype.moveTo = function (x, y) {
    var el = this.el;
    if (el) {
      var styleCoord = this._styleCoord;
      TooltipRichContent_makeStyleCoord(styleCoord, this._zr, x, y);
      x = styleCoord[0];
      y = styleCoord[1];
      var style = el.style;
      var borderWidth = mathMaxWith0(style.borderWidth || 0);
      var shadowOuterSize = calcShadowOuterSize(style);
      // rich text x, y do not include border.
      el.x = x + borderWidth + shadowOuterSize.left;
      el.y = y + borderWidth + shadowOuterSize.top;
      el.markRedraw();
    }
  };
  /**
   * when `alwaysShowContent` is true,
   * move the tooltip after chart resized
   */
  TooltipRichContent.prototype._moveIfResized = function () {
    // The ratio of left to width
    var ratioX = this._styleCoord[2];
    // The ratio of top to height
    var ratioY = this._styleCoord[3];
    this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight());
  };
  TooltipRichContent.prototype.hide = function () {
    if (this.el) {
      this.el.hide();
    }
    this._show = false;
  };
  TooltipRichContent.prototype.hideLater = function (time) {
    if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) {
      if (time) {
        this._hideDelay = time;
        // Set show false to avoid invoke hideLater multiple times
        this._show = false;
        this._hideTimeout = setTimeout(util["bind"](this.hide, this), time);
      } else {
        this.hide();
      }
    }
  };
  TooltipRichContent.prototype.isShow = function () {
    return this._show;
  };
  TooltipRichContent.prototype.dispose = function () {
    this._zr.remove(this.el);
  };
  return TooltipRichContent;
}();
function mathMaxWith0(val) {
  return Math.max(0, val);
}
function calcShadowOuterSize(style) {
  var shadowBlur = mathMaxWith0(style.shadowBlur || 0);
  var shadowOffsetX = mathMaxWith0(style.shadowOffsetX || 0);
  var shadowOffsetY = mathMaxWith0(style.shadowOffsetY || 0);
  return {
    left: mathMaxWith0(shadowBlur - shadowOffsetX),
    right: mathMaxWith0(shadowBlur + shadowOffsetX),
    top: mathMaxWith0(shadowBlur - shadowOffsetY),
    bottom: mathMaxWith0(shadowBlur + shadowOffsetY)
  };
}
function TooltipRichContent_makeStyleCoord(out, zr, zrX, zrY) {
  out[0] = zrX;
  out[1] = zrY;
  out[2] = out[0] / zr.getWidth();
  out[3] = out[1] / zr.getHeight();
}
/* harmony default export */ var tooltip_TooltipRichContent = (TooltipRichContent_TooltipRichContent);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/TooltipView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */


/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






















var proxyRect = new shape_Rect({
  shape: {
    x: -1,
    y: -1,
    width: 2,
    height: 2
  }
});
var TooltipView_TooltipView = /** @class */function (_super) {
  __extends(TooltipView, _super);
  function TooltipView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TooltipView.type;
    return _this;
  }
  TooltipView.prototype.init = function (ecModel, api) {
    if (env["a" /* default */].node || !api.getDom()) {
      return;
    }
    var tooltipModel = ecModel.getComponent('tooltip');
    var renderMode = this._renderMode = getTooltipRenderMode(tooltipModel.get('renderMode'));
    this._tooltipContent = renderMode === 'richText' ? new tooltip_TooltipRichContent(api) : new tooltip_TooltipHTMLContent(api, {
      appendTo: tooltipModel.get('appendToBody', true) ? 'body' : tooltipModel.get('appendTo', true)
    });
  };
  TooltipView.prototype.render = function (tooltipModel, ecModel, api) {
    if (env["a" /* default */].node || !api.getDom()) {
      return;
    }
    // Reset
    this.group.removeAll();
    this._tooltipModel = tooltipModel;
    this._ecModel = ecModel;
    this._api = api;
    var tooltipContent = this._tooltipContent;
    tooltipContent.update(tooltipModel);
    tooltipContent.setEnterable(tooltipModel.get('enterable'));
    this._initGlobalListener();
    this._keepShow();
    // PENDING
    // `mousemove` event will be triggered very frequently when the mouse moves fast,
    // which causes that the `updatePosition` function was also called frequently.
    // In Chrome with devtools open and Firefox, tooltip looks laggy and shakes. See #14695 #16101
    // To avoid frequent triggering,
    // consider throttling it in 50ms when transition is enabled
    if (this._renderMode !== 'richText' && tooltipModel.get('transitionDuration')) {
      createOrUpdate(this, '_updatePosition', 50, 'fixRate');
    } else {
      clear(this, '_updatePosition');
    }
  };
  TooltipView.prototype._initGlobalListener = function () {
    var tooltipModel = this._tooltipModel;
    var triggerOn = tooltipModel.get('triggerOn');
    register('itemTooltip', this._api, Object(util["bind"])(function (currTrigger, e, dispatchAction) {
      // If 'none', it is not controlled by mouse totally.
      if (triggerOn !== 'none') {
        if (triggerOn.indexOf(currTrigger) >= 0) {
          this._tryShow(e, dispatchAction);
        } else if (currTrigger === 'leave') {
          this._hide(dispatchAction);
        }
      }
    }, this));
  };
  TooltipView.prototype._keepShow = function () {
    var tooltipModel = this._tooltipModel;
    var ecModel = this._ecModel;
    var api = this._api;
    var triggerOn = tooltipModel.get('triggerOn');
    // Try to keep the tooltip show when refreshing
    if (this._lastX != null && this._lastY != null
    // When user is willing to control tooltip totally using API,
    // self.manuallyShowTip({x, y}) might cause tooltip hide,
    // which is not expected.
    && triggerOn !== 'none' && triggerOn !== 'click') {
      var self_1 = this;
      clearTimeout(this._refreshUpdateTimeout);
      this._refreshUpdateTimeout = setTimeout(function () {
        // Show tip next tick after other charts are rendered
        // In case highlight action has wrong result
        // FIXME
        !api.isDisposed() && self_1.manuallyShowTip(tooltipModel, ecModel, api, {
          x: self_1._lastX,
          y: self_1._lastY,
          dataByCoordSys: self_1._lastDataByCoordSys
        });
      });
    }
  };
  /**
   * Show tip manually by
   * dispatchAction({
   *     type: 'showTip',
   *     x: 10,
   *     y: 10
   * });
   * Or
   * dispatchAction({
   *      type: 'showTip',
   *      seriesIndex: 0,
   *      dataIndex or dataIndexInside or name
   * });
   *
   *  TODO Batch
   */
  TooltipView.prototype.manuallyShowTip = function (tooltipModel, ecModel, api, payload) {
    if (payload.from === this.uid || env["a" /* default */].node || !api.getDom()) {
      return;
    }
    var dispatchAction = TooltipView_makeDispatchAction(payload, api);
    // Reset ticket
    this._ticket = '';
    // When triggered from axisPointer.
    var dataByCoordSys = payload.dataByCoordSys;
    var cmptRef = findComponentReference(payload, ecModel, api);
    if (cmptRef) {
      var rect = cmptRef.el.getBoundingRect().clone();
      rect.applyTransform(cmptRef.el.transform);
      this._tryShow({
        offsetX: rect.x + rect.width / 2,
        offsetY: rect.y + rect.height / 2,
        target: cmptRef.el,
        position: payload.position,
        // When manully trigger, the mouse is not on the el, so we'd better to
        // position tooltip on the bottom of the el and display arrow is possible.
        positionDefault: 'bottom'
      }, dispatchAction);
    } else if (payload.tooltip && payload.x != null && payload.y != null) {
      var el = proxyRect;
      el.x = payload.x;
      el.y = payload.y;
      el.update();
      getECData(el).tooltipConfig = {
        name: null,
        option: payload.tooltip
      };
      // Manually show tooltip while view is not using zrender elements.
      this._tryShow({
        offsetX: payload.x,
        offsetY: payload.y,
        target: el
      }, dispatchAction);
    } else if (dataByCoordSys) {
      this._tryShow({
        offsetX: payload.x,
        offsetY: payload.y,
        position: payload.position,
        dataByCoordSys: dataByCoordSys,
        tooltipOption: payload.tooltipOption
      }, dispatchAction);
    } else if (payload.seriesIndex != null) {
      if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) {
        return;
      }
      var pointInfo = findPointFromSeries(payload, ecModel);
      var cx = pointInfo.point[0];
      var cy = pointInfo.point[1];
      if (cx != null && cy != null) {
        this._tryShow({
          offsetX: cx,
          offsetY: cy,
          target: pointInfo.el,
          position: payload.position,
          // When manully trigger, the mouse is not on the el, so we'd better to
          // position tooltip on the bottom of the el and display arrow is possible.
          positionDefault: 'bottom'
        }, dispatchAction);
      }
    } else if (payload.x != null && payload.y != null) {
      // FIXME
      // should wrap dispatchAction like `axisPointer/globalListener` ?
      api.dispatchAction({
        type: 'updateAxisPointer',
        x: payload.x,
        y: payload.y
      });
      this._tryShow({
        offsetX: payload.x,
        offsetY: payload.y,
        position: payload.position,
        target: api.getZr().findHover(payload.x, payload.y).target
      }, dispatchAction);
    }
  };
  TooltipView.prototype.manuallyHideTip = function (tooltipModel, ecModel, api, payload) {
    var tooltipContent = this._tooltipContent;
    if (this._tooltipModel) {
      tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));
    }
    this._lastX = this._lastY = this._lastDataByCoordSys = null;
    if (payload.from !== this.uid) {
      this._hide(TooltipView_makeDispatchAction(payload, api));
    }
  };
  // Be compatible with previous design, that is, when tooltip.type is 'axis' and
  // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer
  // and tooltip.
  TooltipView.prototype._manuallyAxisShowTip = function (tooltipModel, ecModel, api, payload) {
    var seriesIndex = payload.seriesIndex;
    var dataIndex = payload.dataIndex;
    // @ts-ignore
    var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;
    if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) {
      return;
    }
    var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
    if (!seriesModel) {
      return;
    }
    var data = seriesModel.getData();
    var tooltipCascadedModel = buildTooltipModel([data.getItemModel(dataIndex), seriesModel, (seriesModel.coordinateSystem || {}).model], this._tooltipModel);
    if (tooltipCascadedModel.get('trigger') !== 'axis') {
      return;
    }
    api.dispatchAction({
      type: 'updateAxisPointer',
      seriesIndex: seriesIndex,
      dataIndex: dataIndex,
      position: payload.position
    });
    return true;
  };
  TooltipView.prototype._tryShow = function (e, dispatchAction) {
    var el = e.target;
    var tooltipModel = this._tooltipModel;
    if (!tooltipModel) {
      return;
    }
    // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed
    this._lastX = e.offsetX;
    this._lastY = e.offsetY;
    var dataByCoordSys = e.dataByCoordSys;
    if (dataByCoordSys && dataByCoordSys.length) {
      this._showAxisTooltip(dataByCoordSys, e);
    } else if (el) {
      var ecData = getECData(el);
      if (ecData.ssrType === 'legend') {
        // Don't trigger tooltip for legend tooltip item
        return;
      }
      this._lastDataByCoordSys = null;
      var seriesDispatcher_1;
      var cmptDispatcher_1;
      findEventDispatcher(el, function (target) {
        // Always show item tooltip if mouse is on the element with dataIndex
        if (getECData(target).dataIndex != null) {
          seriesDispatcher_1 = target;
          return true;
        }
        // Tooltip provided directly. Like legend.
        if (getECData(target).tooltipConfig != null) {
          cmptDispatcher_1 = target;
          return true;
        }
      }, true);
      if (seriesDispatcher_1) {
        this._showSeriesItemTooltip(e, seriesDispatcher_1, dispatchAction);
      } else if (cmptDispatcher_1) {
        this._showComponentItemTooltip(e, cmptDispatcher_1, dispatchAction);
      } else {
        this._hide(dispatchAction);
      }
    } else {
      this._lastDataByCoordSys = null;
      this._hide(dispatchAction);
    }
  };
  TooltipView.prototype._showOrMove = function (tooltipModel, cb) {
    // showDelay is used in this case: tooltip.enterable is set
    // as true. User intent to move mouse into tooltip and click
    // something. `showDelay` makes it easier to enter the content
    // but tooltip do not move immediately.
    var delay = tooltipModel.get('showDelay');
    cb = Object(util["bind"])(cb, this);
    clearTimeout(this._showTimout);
    delay > 0 ? this._showTimout = setTimeout(cb, delay) : cb();
  };
  TooltipView.prototype._showAxisTooltip = function (dataByCoordSys, e) {
    var ecModel = this._ecModel;
    var globalTooltipModel = this._tooltipModel;
    var point = [e.offsetX, e.offsetY];
    var singleTooltipModel = buildTooltipModel([e.tooltipOption], globalTooltipModel);
    var renderMode = this._renderMode;
    var cbParamsList = [];
    var articleMarkup = createTooltipMarkup('section', {
      blocks: [],
      noHeader: true
    });
    // Only for legacy: `Serise['formatTooltip']` returns a string.
    var markupTextArrLegacy = [];
    var markupStyleCreator = new tooltipMarkup_TooltipMarkupStyleCreator();
    Object(util["each"])(dataByCoordSys, function (itemCoordSys) {
      Object(util["each"])(itemCoordSys.dataByAxis, function (axisItem) {
        var axisModel = ecModel.getComponent(axisItem.axisDim + 'Axis', axisItem.axisIndex);
        var axisValue = axisItem.value;
        if (!axisModel || axisValue == null) {
          return;
        }
        var axisValueLabel = getValueLabel(axisValue, axisModel.axis, ecModel, axisItem.seriesDataIndices, axisItem.valueLabelOpt);
        var axisSectionMarkup = createTooltipMarkup('section', {
          header: axisValueLabel,
          noHeader: !Object(util["trim"])(axisValueLabel),
          sortBlocks: true,
          blocks: []
        });
        articleMarkup.blocks.push(axisSectionMarkup);
        Object(util["each"])(axisItem.seriesDataIndices, function (idxItem) {
          var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);
          var dataIndex = idxItem.dataIndexInside;
          var cbParams = series.getDataParams(dataIndex);
          // Can't find data.
          if (cbParams.dataIndex < 0) {
            return;
          }
          cbParams.axisDim = axisItem.axisDim;
          cbParams.axisIndex = axisItem.axisIndex;
          cbParams.axisType = axisItem.axisType;
          cbParams.axisId = axisItem.axisId;
          cbParams.axisValue = getAxisRawValue(axisModel.axis, {
            value: axisValue
          });
          cbParams.axisValueLabel = axisValueLabel;
          // Pre-create marker style for makers. Users can assemble richText
          // text in `formatter` callback and use those markers style.
          cbParams.marker = markupStyleCreator.makeTooltipMarker('item', convertToColorString(cbParams.color), renderMode);
          var seriesTooltipResult = normalizeTooltipFormatResult(series.formatTooltip(dataIndex, true, null));
          var frag = seriesTooltipResult.frag;
          if (frag) {
            var valueFormatter = buildTooltipModel([series], globalTooltipModel).get('valueFormatter');
            axisSectionMarkup.blocks.push(valueFormatter ? Object(util["extend"])({
              valueFormatter: valueFormatter
            }, frag) : frag);
          }
          if (seriesTooltipResult.text) {
            markupTextArrLegacy.push(seriesTooltipResult.text);
          }
          cbParamsList.push(cbParams);
        });
      });
    });
    // In most cases, the second axis is displays upper on the first one.
    // So we reverse it to look better.
    articleMarkup.blocks.reverse();
    markupTextArrLegacy.reverse();
    var positionExpr = e.position;
    var orderMode = singleTooltipModel.get('order');
    var builtMarkupText = buildTooltipMarkup(articleMarkup, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), singleTooltipModel.get('textStyle'));
    builtMarkupText && markupTextArrLegacy.unshift(builtMarkupText);
    var blockBreak = renderMode === 'richText' ? '\n\n' : '<br/>';
    var allMarkupText = markupTextArrLegacy.join(blockBreak);
    this._showOrMove(singleTooltipModel, function () {
      if (this._updateContentNotChangedOnAxis(dataByCoordSys, cbParamsList)) {
        this._updatePosition(singleTooltipModel, positionExpr, point[0], point[1], this._tooltipContent, cbParamsList);
      } else {
        this._showTooltipContent(singleTooltipModel, allMarkupText, cbParamsList, Math.random() + '', point[0], point[1], positionExpr, null, markupStyleCreator);
      }
    });
    // Do not trigger events here, because this branch only be entered
    // from dispatchAction.
  };
  TooltipView.prototype._showSeriesItemTooltip = function (e, dispatcher, dispatchAction) {
    var ecModel = this._ecModel;
    var ecData = getECData(dispatcher);
    // Use dataModel in element if possible
    // Used when mouseover on a element like markPoint or edge
    // In which case, the data is not main data in series.
    var seriesIndex = ecData.seriesIndex;
    var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
    // For example, graph link.
    var dataModel = ecData.dataModel || seriesModel;
    var dataIndex = ecData.dataIndex;
    var dataType = ecData.dataType;
    var data = dataModel.getData(dataType);
    var renderMode = this._renderMode;
    var positionDefault = e.positionDefault;
    var tooltipModel = buildTooltipModel([data.getItemModel(dataIndex), dataModel, seriesModel && (seriesModel.coordinateSystem || {}).model], this._tooltipModel, positionDefault ? {
      position: positionDefault
    } : null);
    var tooltipTrigger = tooltipModel.get('trigger');
    if (tooltipTrigger != null && tooltipTrigger !== 'item') {
      return;
    }
    var params = dataModel.getDataParams(dataIndex, dataType);
    var markupStyleCreator = new tooltipMarkup_TooltipMarkupStyleCreator();
    // Pre-create marker style for makers. Users can assemble richText
    // text in `formatter` callback and use those markers style.
    params.marker = markupStyleCreator.makeTooltipMarker('item', convertToColorString(params.color), renderMode);
    var seriesTooltipResult = normalizeTooltipFormatResult(dataModel.formatTooltip(dataIndex, false, dataType));
    var orderMode = tooltipModel.get('order');
    var valueFormatter = tooltipModel.get('valueFormatter');
    var frag = seriesTooltipResult.frag;
    var markupText = frag ? buildTooltipMarkup(valueFormatter ? Object(util["extend"])({
      valueFormatter: valueFormatter
    }, frag) : frag, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), tooltipModel.get('textStyle')) : seriesTooltipResult.text;
    var asyncTicket = 'item_' + dataModel.name + '_' + dataIndex;
    this._showOrMove(tooltipModel, function () {
      this._showTooltipContent(tooltipModel, markupText, params, asyncTicket, e.offsetX, e.offsetY, e.position, e.target, markupStyleCreator);
    });
    // FIXME
    // duplicated showtip if manuallyShowTip is called from dispatchAction.
    dispatchAction({
      type: 'showTip',
      dataIndexInside: dataIndex,
      dataIndex: data.getRawIndex(dataIndex),
      seriesIndex: seriesIndex,
      from: this.uid
    });
  };
  TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {
    var isHTMLRenderMode = this._renderMode === 'html';
    var ecData = getECData(el);
    var tooltipConfig = ecData.tooltipConfig;
    var tooltipOpt = tooltipConfig.option || {};
    var encodeHTMLContent = tooltipOpt.encodeHTMLContent;
    if (Object(util["isString"])(tooltipOpt)) {
      var content = tooltipOpt;
      tooltipOpt = {
        content: content,
        // Fixed formatter
        formatter: content
      };
      // when `tooltipConfig.option` is a string rather than an object,
      // we can't know if the content needs to be encoded
      // for the sake of security, encode it by default.
      encodeHTMLContent = true;
    }
    if (encodeHTMLContent && isHTMLRenderMode && tooltipOpt.content) {
      // clone might be unnecessary?
      tooltipOpt = Object(util["clone"])(tooltipOpt);
      tooltipOpt.content = encodeHTML(tooltipOpt.content);
    }
    var tooltipModelCascade = [tooltipOpt];
    var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);
    if (cmpt) {
      tooltipModelCascade.push(cmpt);
    }
    // In most cases, component tooltip formatter has different params with series tooltip formatter,
    // so that they cannot share the same formatter. Since the global tooltip formatter is used for series
    // by convention, we do not use it as the default formatter for component.
    tooltipModelCascade.push({
      formatter: tooltipOpt.content
    });
    var positionDefault = e.positionDefault;
    var subTooltipModel = buildTooltipModel(tooltipModelCascade, this._tooltipModel, positionDefault ? {
      position: positionDefault
    } : null);
    var defaultHtml = subTooltipModel.get('content');
    var asyncTicket = Math.random() + '';
    // PENDING: this case do not support richText style yet.
    var markupStyleCreator = new tooltipMarkup_TooltipMarkupStyleCreator();
    // Do not check whether `trigger` is 'none' here, because `trigger`
    // only works on coordinate system. In fact, we have not found case
    // that requires setting `trigger` nothing on component yet.
    this._showOrMove(subTooltipModel, function () {
      // Use formatterParams from element defined in component
      // Avoid users modify it.
      var formatterParams = Object(util["clone"])(subTooltipModel.get('formatterParams') || {});
      this._showTooltipContent(subTooltipModel, defaultHtml, formatterParams, asyncTicket, e.offsetX, e.offsetY, e.position, el, markupStyleCreator);
    });
    // If not dispatch showTip, tip may be hide triggered by axis.
    dispatchAction({
      type: 'showTip',
      from: this.uid
    });
  };
  TooltipView.prototype._showTooltipContent = function (
  // Use Model<TooltipOption> insteadof TooltipModel because this model may be from series or other options.
  // Instead of top level tooltip.
  tooltipModel, defaultHtml, params, asyncTicket, x, y, positionExpr, el, markupStyleCreator) {
    // Reset ticket
    this._ticket = '';
    if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) {
      return;
    }
    var tooltipContent = this._tooltipContent;
    tooltipContent.setEnterable(tooltipModel.get('enterable'));
    var formatter = tooltipModel.get('formatter');
    positionExpr = positionExpr || tooltipModel.get('position');
    var html = defaultHtml;
    var nearPoint = this._getNearestPoint([x, y], params, tooltipModel.get('trigger'), tooltipModel.get('borderColor'));
    var nearPointColor = nearPoint.color;
    if (formatter) {
      if (Object(util["isString"])(formatter)) {
        var useUTC = tooltipModel.ecModel.get('useUTC');
        var params0 = Object(util["isArray"])(params) ? params[0] : params;
        var isTimeAxis = params0 && params0.axisType && params0.axisType.indexOf('time') >= 0;
        html = formatter;
        if (isTimeAxis) {
          html = format(params0.axisValue, html, useUTC);
        }
        html = formatTpl(html, params, true);
      } else if (Object(util["isFunction"])(formatter)) {
        var callback = Object(util["bind"])(function (cbTicket, html) {
          if (cbTicket === this._ticket) {
            tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);
            this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el);
          }
        }, this);
        this._ticket = asyncTicket;
        html = formatter(params, asyncTicket, callback);
      } else {
        html = formatter;
      }
    }
    tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);
    tooltipContent.show(tooltipModel, nearPointColor);
    this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el);
  };
  TooltipView.prototype._getNearestPoint = function (point, tooltipDataParams, trigger, borderColor) {
    if (trigger === 'axis' || Object(util["isArray"])(tooltipDataParams)) {
      return {
        color: borderColor || (this._renderMode === 'html' ? '#fff' : 'none')
      };
    }
    if (!Object(util["isArray"])(tooltipDataParams)) {
      return {
        color: borderColor || tooltipDataParams.color || tooltipDataParams.borderColor
      };
    }
  };
  TooltipView.prototype._updatePosition = function (tooltipModel, positionExpr, x,
  // Mouse x
  y,
  // Mouse y
  content, params, el) {
    var viewWidth = this._api.getWidth();
    var viewHeight = this._api.getHeight();
    positionExpr = positionExpr || tooltipModel.get('position');
    var contentSize = content.getSize();
    var align = tooltipModel.get('align');
    var vAlign = tooltipModel.get('verticalAlign');
    var rect = el && el.getBoundingRect().clone();
    el && rect.applyTransform(el.transform);
    if (Object(util["isFunction"])(positionExpr)) {
      // Callback of position can be an array or a string specify the position
      positionExpr = positionExpr([x, y], params, content.el, rect, {
        viewSize: [viewWidth, viewHeight],
        contentSize: contentSize.slice()
      });
    }
    if (Object(util["isArray"])(positionExpr)) {
      x = number_parsePercent(positionExpr[0], viewWidth);
      y = number_parsePercent(positionExpr[1], viewHeight);
    } else if (Object(util["isObject"])(positionExpr)) {
      var boxLayoutPosition = positionExpr;
      boxLayoutPosition.width = contentSize[0];
      boxLayoutPosition.height = contentSize[1];
      var layoutRect = getLayoutRect(boxLayoutPosition, {
        width: viewWidth,
        height: viewHeight
      });
      x = layoutRect.x;
      y = layoutRect.y;
      align = null;
      // When positionExpr is left/top/right/bottom,
      // align and verticalAlign will not work.
      vAlign = null;
    }
    // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element
    else if (Object(util["isString"])(positionExpr) && el) {
      var pos = calcTooltipPosition(positionExpr, rect, contentSize, tooltipModel.get('borderWidth'));
      x = pos[0];
      y = pos[1];
    } else {
      var pos = refixTooltipPosition(x, y, content, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20);
      x = pos[0];
      y = pos[1];
    }
    align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0);
    vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0);
    if (shouldTooltipConfine(tooltipModel)) {
      var pos = confineTooltipPosition(x, y, content, viewWidth, viewHeight);
      x = pos[0];
      y = pos[1];
    }
    content.moveTo(x, y);
  };
  // FIXME
  // Should we remove this but leave this to user?
  TooltipView.prototype._updateContentNotChangedOnAxis = function (dataByCoordSys, cbParamsList) {
    var lastCoordSys = this._lastDataByCoordSys;
    var lastCbParamsList = this._cbParamsList;
    var contentNotChanged = !!lastCoordSys && lastCoordSys.length === dataByCoordSys.length;
    contentNotChanged && Object(util["each"])(lastCoordSys, function (lastItemCoordSys, indexCoordSys) {
      var lastDataByAxis = lastItemCoordSys.dataByAxis || [];
      var thisItemCoordSys = dataByCoordSys[indexCoordSys] || {};
      var thisDataByAxis = thisItemCoordSys.dataByAxis || [];
      contentNotChanged = contentNotChanged && lastDataByAxis.length === thisDataByAxis.length;
      contentNotChanged && Object(util["each"])(lastDataByAxis, function (lastItem, indexAxis) {
        var thisItem = thisDataByAxis[indexAxis] || {};
        var lastIndices = lastItem.seriesDataIndices || [];
        var newIndices = thisItem.seriesDataIndices || [];
        contentNotChanged = contentNotChanged && lastItem.value === thisItem.value && lastItem.axisType === thisItem.axisType && lastItem.axisId === thisItem.axisId && lastIndices.length === newIndices.length;
        contentNotChanged && Object(util["each"])(lastIndices, function (lastIdxItem, j) {
          var newIdxItem = newIndices[j];
          contentNotChanged = contentNotChanged && lastIdxItem.seriesIndex === newIdxItem.seriesIndex && lastIdxItem.dataIndex === newIdxItem.dataIndex;
        });
        // check is cbParams data value changed
        lastCbParamsList && Object(util["each"])(lastItem.seriesDataIndices, function (idxItem) {
          var seriesIdx = idxItem.seriesIndex;
          var cbParams = cbParamsList[seriesIdx];
          var lastCbParams = lastCbParamsList[seriesIdx];
          if (cbParams && lastCbParams && lastCbParams.data !== cbParams.data) {
            contentNotChanged = false;
          }
        });
      });
    });
    this._lastDataByCoordSys = dataByCoordSys;
    this._cbParamsList = cbParamsList;
    return !!contentNotChanged;
  };
  TooltipView.prototype._hide = function (dispatchAction) {
    // Do not directly hideLater here, because this behavior may be prevented
    // in dispatchAction when showTip is dispatched.
    // FIXME
    // duplicated hideTip if manuallyHideTip is called from dispatchAction.
    this._lastDataByCoordSys = null;
    dispatchAction({
      type: 'hideTip',
      from: this.uid
    });
  };
  TooltipView.prototype.dispose = function (ecModel, api) {
    if (env["a" /* default */].node || !api.getDom()) {
      return;
    }
    clear(this, '_updatePosition');
    this._tooltipContent.dispose();
    unregister('itemTooltip', api);
  };
  TooltipView.type = 'tooltip';
  return TooltipView;
}(view_Component);
/**
 * From top to bottom. (the last one should be globalTooltipModel);
 */
function buildTooltipModel(modelCascade, globalTooltipModel, defaultTooltipOption) {
  // Last is always tooltip model.
  var ecModel = globalTooltipModel.ecModel;
  var resultModel;
  if (defaultTooltipOption) {
    resultModel = new model_Model(defaultTooltipOption, ecModel, ecModel);
    resultModel = new model_Model(globalTooltipModel.option, resultModel, ecModel);
  } else {
    resultModel = globalTooltipModel;
  }
  for (var i = modelCascade.length - 1; i >= 0; i--) {
    var tooltipOpt = modelCascade[i];
    if (tooltipOpt) {
      if (tooltipOpt instanceof model_Model) {
        tooltipOpt = tooltipOpt.get('tooltip', true);
      }
      // In each data item tooltip can be simply write:
      // {
      //  value: 10,
      //  tooltip: 'Something you need to know'
      // }
      if (Object(util["isString"])(tooltipOpt)) {
        tooltipOpt = {
          formatter: tooltipOpt
        };
      }
      if (tooltipOpt) {
        resultModel = new model_Model(tooltipOpt, resultModel, ecModel);
      }
    }
  }
  return resultModel;
}
function TooltipView_makeDispatchAction(payload, api) {
  return payload.dispatchAction || Object(util["bind"])(api.dispatchAction, api);
}
function refixTooltipPosition(x, y, content, viewWidth, viewHeight, gapH, gapV) {
  var size = content.getSize();
  var width = size[0];
  var height = size[1];
  if (gapH != null) {
    // Add extra 2 pixels for this case:
    // At present the "values" in default tooltip are using CSS `float: right`.
    // When the right edge of the tooltip box is on the right side of the
    // viewport, the `float` layout might push the "values" to the second line.
    if (x + width + gapH + 2 > viewWidth) {
      x -= width + gapH;
    } else {
      x += gapH;
    }
  }
  if (gapV != null) {
    if (y + height + gapV > viewHeight) {
      y -= height + gapV;
    } else {
      y += gapV;
    }
  }
  return [x, y];
}
function confineTooltipPosition(x, y, content, viewWidth, viewHeight) {
  var size = content.getSize();
  var width = size[0];
  var height = size[1];
  x = Math.min(x + width, viewWidth) - width;
  y = Math.min(y + height, viewHeight) - height;
  x = Math.max(x, 0);
  y = Math.max(y, 0);
  return [x, y];
}
function calcTooltipPosition(position, rect, contentSize, borderWidth) {
  var domWidth = contentSize[0];
  var domHeight = contentSize[1];
  var offset = Math.ceil(Math.SQRT2 * borderWidth) + 8;
  var x = 0;
  var y = 0;
  var rectWidth = rect.width;
  var rectHeight = rect.height;
  switch (position) {
    case 'inside':
      x = rect.x + rectWidth / 2 - domWidth / 2;
      y = rect.y + rectHeight / 2 - domHeight / 2;
      break;
    case 'top':
      x = rect.x + rectWidth / 2 - domWidth / 2;
      y = rect.y - domHeight - offset;
      break;
    case 'bottom':
      x = rect.x + rectWidth / 2 - domWidth / 2;
      y = rect.y + rectHeight + offset;
      break;
    case 'left':
      x = rect.x - domWidth - offset;
      y = rect.y + rectHeight / 2 - domHeight / 2;
      break;
    case 'right':
      x = rect.x + rectWidth + offset;
      y = rect.y + rectHeight / 2 - domHeight / 2;
  }
  return [x, y];
}
function isCenterAlign(align) {
  return align === 'center' || align === 'middle';
}
/**
 * Find target component by payload like:
 * ```js
 * { legendId: 'some_id', name: 'xxx' }
 * { toolboxIndex: 1, name: 'xxx' }
 * { geoName: 'some_name', name: 'xxx' }
 * ```
 * PENDING: at present only
 *
 * If not found, return null/undefined.
 */
function findComponentReference(payload, ecModel, api) {
  var queryOptionMap = preParseFinder(payload).queryOptionMap;
  var componentMainType = queryOptionMap.keys()[0];
  if (!componentMainType || componentMainType === 'series') {
    return;
  }
  var queryResult = queryReferringComponents(ecModel, componentMainType, queryOptionMap.get(componentMainType), {
    useDefault: false,
    enableAll: false,
    enableNone: false
  });
  var model = queryResult.models[0];
  if (!model) {
    return;
  }
  var view = api.getViewOfComponentModel(model);
  var el;
  view.group.traverse(function (subEl) {
    var tooltipConfig = getECData(subEl).tooltipConfig;
    if (tooltipConfig && tooltipConfig.name === payload.name) {
      el = subEl;
      return true; // stop
    }
  });
  if (el) {
    return {
      componentMainType: componentMainType,
      componentIndex: model.componentIndex,
      el: el
    };
  }
}
/* harmony default export */ var tooltip_TooltipView = (TooltipView_TooltipView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function tooltip_install_install(registers) {
  use(axisPointer_install_install);
  registers.registerComponentModel(tooltip_TooltipModel);
  registers.registerComponentView(tooltip_TooltipView);
  /**
   * @action
   * @property {string} type
   * @property {number} seriesIndex
   * @property {number} dataIndex
   * @property {number} [x]
   * @property {number} [y]
   */
  registers.registerAction({
    type: 'showTip',
    event: 'showTip',
    update: 'tooltip:manuallyShowTip'
  }, util["noop"]);
  registers.registerAction({
    type: 'hideTip',
    event: 'hideTip',
    update: 'tooltip:manuallyHideTip'
  }, util["noop"]);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/preprocessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var DEFAULT_TOOLBOX_BTNS = ['rect', 'polygon', 'keep', 'clear'];
function brushPreprocessor(option, isNew) {
  var brushComponents = normalizeToArray(option ? option.brush : []);
  if (!brushComponents.length) {
    return;
  }
  var brushComponentSpecifiedBtns = [];
  util["each"](brushComponents, function (brushOpt) {
    var tbs = brushOpt.hasOwnProperty('toolbox') ? brushOpt.toolbox : [];
    if (tbs instanceof Array) {
      brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs);
    }
  });
  var toolbox = option && option.toolbox;
  if (util["isArray"](toolbox)) {
    toolbox = toolbox[0];
  }
  if (!toolbox) {
    toolbox = {
      feature: {}
    };
    option.toolbox = [toolbox];
  }
  var toolboxFeature = toolbox.feature || (toolbox.feature = {});
  var toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {});
  var brushTypes = toolboxBrush.type || (toolboxBrush.type = []);
  brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns);
  removeDuplicate(brushTypes);
  if (isNew && !brushTypes.length) {
    brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS);
  }
}
function removeDuplicate(arr) {
  var map = {};
  util["each"](arr, function (val) {
    map[val] = 1;
  });
  arr.length = 0;
  util["each"](map, function (flag, val) {
    arr.push(val);
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/visualSolution.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @file Visual solution, for consistent option specification.
 */



var visualSolution_each = util["each"];
function hasKeys(obj) {
  if (obj) {
    for (var name_1 in obj) {
      if (obj.hasOwnProperty(name_1)) {
        return true;
      }
    }
  }
}
function createVisualMappings(option, stateList, supplementVisualOption) {
  var visualMappings = {};
  visualSolution_each(stateList, function (state) {
    var mappings = visualMappings[state] = createMappings();
    visualSolution_each(option[state], function (visualData, visualType) {
      if (!visual_VisualMapping.isValidType(visualType)) {
        return;
      }
      var mappingOption = {
        type: visualType,
        visual: visualData
      };
      supplementVisualOption && supplementVisualOption(mappingOption, state);
      mappings[visualType] = new visual_VisualMapping(mappingOption);
      // Prepare a alpha for opacity, for some case that opacity
      // is not supported, such as rendering using gradient color.
      if (visualType === 'opacity') {
        mappingOption = util["clone"](mappingOption);
        mappingOption.type = 'colorAlpha';
        mappings.__hidden.__alphaForOpacity = new visual_VisualMapping(mappingOption);
      }
    });
  });
  return visualMappings;
  function createMappings() {
    var Creater = function () {};
    // Make sure hidden fields will not be visited by
    // object iteration (with hasOwnProperty checking).
    Creater.prototype.__hidden = Creater.prototype;
    var obj = new Creater();
    return obj;
  }
}
function replaceVisualOption(thisOption, newOption, keys) {
  // Visual attributes merge is not supported, otherwise it
  // brings overcomplicated merge logic. See #2853. So if
  // newOption has anyone of these keys, all of these keys
  // will be reset. Otherwise, all keys remain.
  var has;
  util["each"](keys, function (key) {
    if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {
      has = true;
    }
  });
  has && util["each"](keys, function (key) {
    if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {
      thisOption[key] = util["clone"](newOption[key]);
    } else {
      delete thisOption[key];
    }
  });
}
/**
 * @param stateList
 * @param visualMappings
 * @param list
 * @param getValueState param: valueOrIndex, return: state.
 * @param scope Scope for getValueState
 * @param dimension Concrete dimension, if used.
 */
// ???! handle brush?
function applyVisual(stateList, visualMappings, data, getValueState, scope, dimension) {
  var visualTypesMap = {};
  util["each"](stateList, function (state) {
    var visualTypes = visual_VisualMapping.prepareVisualTypes(visualMappings[state]);
    visualTypesMap[state] = visualTypes;
  });
  var dataIndex;
  function getVisual(key) {
    return getItemVisualFromData(data, dataIndex, key);
  }
  function setVisual(key, value) {
    setItemVisualFromData(data, dataIndex, key, value);
  }
  if (dimension == null) {
    data.each(eachItem);
  } else {
    data.each([dimension], eachItem);
  }
  function eachItem(valueOrIndex, index) {
    dataIndex = dimension == null ? valueOrIndex // First argument is index
    : index;
    var rawDataItem = data.getRawDataItem(dataIndex);
    // Consider performance
    // @ts-ignore
    if (rawDataItem && rawDataItem.visualMap === false) {
      return;
    }
    var valueState = getValueState.call(scope, valueOrIndex);
    var mappings = visualMappings[valueState];
    var visualTypes = visualTypesMap[valueState];
    for (var i = 0, len = visualTypes.length; i < len; i++) {
      var type = visualTypes[i];
      mappings[type] && mappings[type].applyVisual(valueOrIndex, getVisual, setVisual);
    }
  }
}
/**
 * @param data
 * @param stateList
 * @param visualMappings <state, Object.<visualType, module:echarts/visual/VisualMapping>>
 * @param getValueState param: valueOrIndex, return: state.
 * @param dim dimension or dimension index.
 */
function incrementalApplyVisual(stateList, visualMappings, getValueState, dim) {
  var visualTypesMap = {};
  util["each"](stateList, function (state) {
    var visualTypes = visual_VisualMapping.prepareVisualTypes(visualMappings[state]);
    visualTypesMap[state] = visualTypes;
  });
  return {
    progress: function progress(params, data) {
      var dimIndex;
      if (dim != null) {
        dimIndex = data.getDimensionIndex(dim);
      }
      function getVisual(key) {
        return getItemVisualFromData(data, dataIndex, key);
      }
      function setVisual(key, value) {
        setItemVisualFromData(data, dataIndex, key, value);
      }
      var dataIndex;
      var store = data.getStore();
      while ((dataIndex = params.next()) != null) {
        var rawDataItem = data.getRawDataItem(dataIndex);
        // Consider performance
        // @ts-ignore
        if (rawDataItem && rawDataItem.visualMap === false) {
          continue;
        }
        var value = dim != null ? store.get(dimIndex, dataIndex) : dataIndex;
        var valueState = getValueState(value);
        var mappings = visualMappings[valueState];
        var visualTypes = visualTypesMap[valueState];
        for (var i = 0, len = visualTypes.length; i < len; i++) {
          var type = visualTypes[i];
          mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual);
        }
      }
    }
  };
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/selector.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function makeBrushCommonSelectorForSeries(area) {
  var brushType = area.brushType;
  // Do not use function binding or curry for performance.
  var selectors = {
    point: function (itemLayout) {
      return selector_selector[brushType].point(itemLayout, selectors, area);
    },
    rect: function (itemLayout) {
      return selector_selector[brushType].rect(itemLayout, selectors, area);
    }
  };
  return selectors;
}
var selector_selector = {
  lineX: getLineSelectors(0),
  lineY: getLineSelectors(1),
  rect: {
    point: function (itemLayout, selectors, area) {
      return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]);
    },
    rect: function (itemLayout, selectors, area) {
      return itemLayout && area.boundingRect.intersect(itemLayout);
    }
  },
  polygon: {
    point: function (itemLayout, selectors, area) {
      return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]) && polygon_contain(area.range, itemLayout[0], itemLayout[1]);
    },
    rect: function (itemLayout, selectors, area) {
      var points = area.range;
      if (!itemLayout || points.length <= 1) {
        return false;
      }
      var x = itemLayout.x;
      var y = itemLayout.y;
      var width = itemLayout.width;
      var height = itemLayout.height;
      var p = points[0];
      if (polygon_contain(points, x, y) || polygon_contain(points, x + width, y) || polygon_contain(points, x, y + height) || polygon_contain(points, x + width, y + height) || core_BoundingRect.create(itemLayout).contain(p[0], p[1]) || linePolygonIntersect(x, y, x + width, y, points) || linePolygonIntersect(x, y, x, y + height, points) || linePolygonIntersect(x + width, y, x + width, y + height, points) || linePolygonIntersect(x, y + height, x + width, y + height, points)) {
        return true;
      }
    }
  }
};
function getLineSelectors(xyIndex) {
  var xy = ['x', 'y'];
  var wh = ['width', 'height'];
  return {
    point: function (itemLayout, selectors, area) {
      if (itemLayout) {
        var range = area.range;
        var p = itemLayout[xyIndex];
        return inLineRange(p, range);
      }
    },
    rect: function (itemLayout, selectors, area) {
      if (itemLayout) {
        var range = area.range;
        var layoutRange = [itemLayout[xy[xyIndex]], itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]]];
        layoutRange[1] < layoutRange[0] && layoutRange.reverse();
        return inLineRange(layoutRange[0], range) || inLineRange(layoutRange[1], range) || inLineRange(range[0], layoutRange) || inLineRange(range[1], layoutRange);
      }
    }
  };
}
function inLineRange(p, range) {
  return range[0] <= p && p <= range[1];
}
/* harmony default export */ var brush_selector = (selector_selector);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/visualEncoding.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var STATE_LIST = ['inBrush', 'outOfBrush'];
var DISPATCH_METHOD = '__ecBrushSelect';
var DISPATCH_FLAG = '__ecInBrushSelectEvent';
;
function layoutCovers(ecModel) {
  ecModel.eachComponent({
    mainType: 'brush'
  }, function (brushModel) {
    var brushTargetManager = brushModel.brushTargetManager = new helper_BrushTargetManager(brushModel.option, ecModel);
    brushTargetManager.setInputRanges(brushModel.areas, ecModel);
  });
}
/**
 * Register the visual encoding if this modules required.
 */
function brushVisual(ecModel, api, payload) {
  var brushSelected = [];
  var throttleType;
  var throttleDelay;
  ecModel.eachComponent({
    mainType: 'brush'
  }, function (brushModel) {
    payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption(payload.key === 'brush' ? payload.brushOption : {
      brushType: false
    });
  });
  layoutCovers(ecModel);
  ecModel.eachComponent({
    mainType: 'brush'
  }, function (brushModel, brushIndex) {
    var thisBrushSelected = {
      brushId: brushModel.id,
      brushIndex: brushIndex,
      brushName: brushModel.name,
      areas: util["clone"](brushModel.areas),
      selected: []
    };
    // Every brush component exists in event params, convenient
    // for user to find by index.
    brushSelected.push(thisBrushSelected);
    var brushOption = brushModel.option;
    var brushLink = brushOption.brushLink;
    var linkedSeriesMap = [];
    var selectedDataIndexForLink = [];
    var rangeInfoBySeries = [];
    var hasBrushExists = false;
    if (!brushIndex) {
      // Only the first throttle setting works.
      throttleType = brushOption.throttleType;
      throttleDelay = brushOption.throttleDelay;
    }
    // Add boundingRect and selectors to range.
    var areas = util["map"](brushModel.areas, function (area) {
      var builder = boundingRectBuilders[area.brushType];
      var selectableArea = util["defaults"]({
        boundingRect: builder ? builder(area) : void 0
      }, area);
      selectableArea.selectors = makeBrushCommonSelectorForSeries(selectableArea);
      return selectableArea;
    });
    var visualMappings = createVisualMappings(brushModel.option, STATE_LIST, function (mappingOption) {
      mappingOption.mappingMethod = 'fixed';
    });
    util["isArray"](brushLink) && util["each"](brushLink, function (seriesIndex) {
      linkedSeriesMap[seriesIndex] = 1;
    });
    function linkOthers(seriesIndex) {
      return brushLink === 'all' || !!linkedSeriesMap[seriesIndex];
    }
    // If no supported brush or no brush on the series,
    // all visuals should be in original state.
    function brushed(rangeInfoList) {
      return !!rangeInfoList.length;
    }
    /**
     * Logic for each series: (If the logic has to be modified one day, do it carefully!)
     *
     * ( brushed ┬ && ┬hasBrushExist ┬ && linkOthers  ) => StepA: ┬record, ┬ StepB: ┬visualByRecord.
     *   !brushed┘    ├hasBrushExist ┤                            └nothing,┘        ├visualByRecord.
     *                └!hasBrushExist┘                                              └nothing.
     * ( !brushed  && ┬hasBrushExist ┬ && linkOthers  ) => StepA:  nothing,  StepB: ┬visualByRecord.
     *                └!hasBrushExist┘                                              └nothing.
     * ( brushed ┬ &&                     !linkOthers ) => StepA:  nothing,  StepB: ┬visualByCheck.
     *   !brushed┘                                                                  └nothing.
     * ( !brushed  &&                     !linkOthers ) => StepA:  nothing,  StepB:  nothing.
     */
    // Step A
    ecModel.eachSeries(function (seriesModel, seriesIndex) {
      var rangeInfoList = rangeInfoBySeries[seriesIndex] = [];
      seriesModel.subType === 'parallel' ? stepAParallel(seriesModel, seriesIndex) : stepAOthers(seriesModel, seriesIndex, rangeInfoList);
    });
    function stepAParallel(seriesModel, seriesIndex) {
      var coordSys = seriesModel.coordinateSystem;
      hasBrushExists = hasBrushExists || coordSys.hasAxisBrushed();
      linkOthers(seriesIndex) && coordSys.eachActiveState(seriesModel.getData(), function (activeState, dataIndex) {
        activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1);
      });
    }
    function stepAOthers(seriesModel, seriesIndex, rangeInfoList) {
      if (!seriesModel.brushSelector || brushModelNotControll(brushModel, seriesIndex)) {
        return;
      }
      util["each"](areas, function (area) {
        if (brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel)) {
          rangeInfoList.push(area);
        }
        hasBrushExists = hasBrushExists || brushed(rangeInfoList);
      });
      if (linkOthers(seriesIndex) && brushed(rangeInfoList)) {
        var data_1 = seriesModel.getData();
        data_1.each(function (dataIndex) {
          if (checkInRange(seriesModel, rangeInfoList, data_1, dataIndex)) {
            selectedDataIndexForLink[dataIndex] = 1;
          }
        });
      }
    }
    // Step B
    ecModel.eachSeries(function (seriesModel, seriesIndex) {
      var seriesBrushSelected = {
        seriesId: seriesModel.id,
        seriesIndex: seriesIndex,
        seriesName: seriesModel.name,
        dataIndex: []
      };
      // Every series exists in event params, convenient
      // for user to find series by seriesIndex.
      thisBrushSelected.selected.push(seriesBrushSelected);
      var rangeInfoList = rangeInfoBySeries[seriesIndex];
      var data = seriesModel.getData();
      var getValueState = linkOthers(seriesIndex) ? function (dataIndex) {
        return selectedDataIndexForLink[dataIndex] ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush';
      } : function (dataIndex) {
        return checkInRange(seriesModel, rangeInfoList, data, dataIndex) ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush';
      };
      // If no supported brush or no brush, all visuals are in original state.
      (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList)) && applyVisual(STATE_LIST, visualMappings, data, getValueState);
    });
  });
  visualEncoding_dispatchAction(api, throttleType, throttleDelay, brushSelected, payload);
}
;
function visualEncoding_dispatchAction(api, throttleType, throttleDelay, brushSelected, payload) {
  // This event will not be triggered when `setOpion`, otherwise dead lock may
  // triggered when do `setOption` in event listener, which we do not find
  // satisfactory way to solve yet. Some considered resolutions:
  // (a) Diff with prevoius selected data ant only trigger event when changed.
  // But store previous data and diff precisely (i.e., not only by dataIndex, but
  // also detect value changes in selected data) might bring complexity or fragility.
  // (b) Use spectial param like `silent` to suppress event triggering.
  // But such kind of volatile param may be weird in `setOption`.
  if (!payload) {
    return;
  }
  var zr = api.getZr();
  if (zr[DISPATCH_FLAG]) {
    return;
  }
  if (!zr[DISPATCH_METHOD]) {
    zr[DISPATCH_METHOD] = doDispatch;
  }
  var fn = createOrUpdate(zr, DISPATCH_METHOD, throttleDelay, throttleType);
  fn(api, brushSelected);
}
function doDispatch(api, brushSelected) {
  if (!api.isDisposed()) {
    var zr = api.getZr();
    zr[DISPATCH_FLAG] = true;
    api.dispatchAction({
      type: 'brushSelect',
      batch: brushSelected
    });
    zr[DISPATCH_FLAG] = false;
  }
}
function checkInRange(seriesModel, rangeInfoList, data, dataIndex) {
  for (var i = 0, len = rangeInfoList.length; i < len; i++) {
    var area = rangeInfoList[i];
    if (seriesModel.brushSelector(dataIndex, data, area.selectors, area)) {
      return true;
    }
  }
}
function brushModelNotControll(brushModel, seriesIndex) {
  var seriesIndices = brushModel.option.seriesIndex;
  return seriesIndices != null && seriesIndices !== 'all' && (util["isArray"](seriesIndices) ? util["indexOf"](seriesIndices, seriesIndex) < 0 : seriesIndex !== seriesIndices);
}
var boundingRectBuilders = {
  rect: function (area) {
    return getBoundingRectFromMinMax(area.range);
  },
  polygon: function (area) {
    var minMax;
    var range = area.range;
    for (var i = 0, len = range.length; i < len; i++) {
      minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]];
      var rg = range[i];
      rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]);
      rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]);
      rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]);
      rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]);
    }
    return minMax && getBoundingRectFromMinMax(minMax);
  }
};
function getBoundingRectFromMinMax(minMax) {
  return new core_BoundingRect(minMax[0][0], minMax[1][0], minMax[0][1] - minMax[0][0], minMax[1][1] - minMax[1][0]);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/BrushView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var BrushView_BrushView = /** @class */function (_super) {
  __extends(BrushView, _super);
  function BrushView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = BrushView.type;
    return _this;
  }
  BrushView.prototype.init = function (ecModel, api) {
    this.ecModel = ecModel;
    this.api = api;
    this.model;
    (this._brushController = new helper_BrushController(api.getZr())).on('brush', util["bind"](this._onBrush, this)).mount();
  };
  BrushView.prototype.render = function (brushModel, ecModel, api, payload) {
    this.model = brushModel;
    this._updateController(brushModel, ecModel, api, payload);
  };
  BrushView.prototype.updateTransform = function (brushModel, ecModel, api, payload) {
    // PENDING: `updateTransform` is a little tricky, whose layout need
    // to be calculate mandatorily and other stages will not be performed.
    // Take care the correctness of the logic. See #11754 .
    layoutCovers(ecModel);
    this._updateController(brushModel, ecModel, api, payload);
  };
  BrushView.prototype.updateVisual = function (brushModel, ecModel, api, payload) {
    this.updateTransform(brushModel, ecModel, api, payload);
  };
  BrushView.prototype.updateView = function (brushModel, ecModel, api, payload) {
    this._updateController(brushModel, ecModel, api, payload);
  };
  BrushView.prototype._updateController = function (brushModel, ecModel, api, payload) {
    // Do not update controller when drawing.
    (!payload || payload.$from !== brushModel.id) && this._brushController.setPanels(brushModel.brushTargetManager.makePanelOpts(api)).enableBrush(brushModel.brushOption).updateCovers(brushModel.areas.slice());
  };
  // updateLayout: updateController,
  // updateVisual: updateController,
  BrushView.prototype.dispose = function () {
    this._brushController.dispose();
  };
  BrushView.prototype._onBrush = function (eventParam) {
    var modelId = this.model.id;
    var areas = this.model.brushTargetManager.setOutputRanges(eventParam.areas, this.ecModel);
    // Action is not dispatched on drag end, because the drag end
    // emits the same params with the last drag move event, and
    // may have some delay when using touch pad, which makes
    // animation not smooth (when using debounce).
    (!eventParam.isEnd || eventParam.removeOnClick) && this.api.dispatchAction({
      type: 'brush',
      brushId: modelId,
      areas: util["clone"](areas),
      $from: modelId
    });
    eventParam.isEnd && this.api.dispatchAction({
      type: 'brushEnd',
      brushId: modelId,
      areas: util["clone"](areas),
      $from: modelId
    });
  };
  BrushView.type = 'brush';
  return BrushView;
}(view_Component);
/* harmony default export */ var brush_BrushView = (BrushView_BrushView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/BrushModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var DEFAULT_OUT_OF_BRUSH_COLOR = '#ddd';
var BrushModel_BrushModel = /** @class */function (_super) {
  __extends(BrushModel, _super);
  function BrushModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = BrushModel.type;
    /**
     * @readOnly
     */
    _this.areas = [];
    /**
     * Current brush painting area settings.
     * @readOnly
     */
    _this.brushOption = {};
    return _this;
  }
  BrushModel.prototype.optionUpdated = function (newOption, isInit) {
    var thisOption = this.option;
    !isInit && replaceVisualOption(thisOption, newOption, ['inBrush', 'outOfBrush']);
    var inBrush = thisOption.inBrush = thisOption.inBrush || {};
    // Always give default visual, consider setOption at the second time.
    thisOption.outOfBrush = thisOption.outOfBrush || {
      color: DEFAULT_OUT_OF_BRUSH_COLOR
    };
    if (!inBrush.hasOwnProperty('liftZ')) {
      // Bigger than the highlight z lift, otherwise it will
      // be effected by the highlight z when brush.
      inBrush.liftZ = 5;
    }
  };
  /**
   * If `areas` is null/undefined, range state remain.
   */
  BrushModel.prototype.setAreas = function (areas) {
    if (false) {}
    // If areas is null/undefined, range state remain.
    // This helps user to dispatchAction({type: 'brush'}) with no areas
    // set but just want to get the current brush select info from a `brush` event.
    if (!areas) {
      return;
    }
    this.areas = util["map"](areas, function (area) {
      return generateBrushOption(this.option, area);
    }, this);
  };
  /**
   * Set the current painting brush option.
   */
  BrushModel.prototype.setBrushOption = function (brushOption) {
    this.brushOption = generateBrushOption(this.option, brushOption);
    this.brushType = this.brushOption.brushType;
  };
  BrushModel.type = 'brush';
  BrushModel.dependencies = ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series'];
  BrushModel.defaultOption = {
    seriesIndex: 'all',
    brushType: 'rect',
    brushMode: 'single',
    transformable: true,
    brushStyle: {
      borderWidth: 1,
      color: 'rgba(210,219,238,0.3)',
      borderColor: '#D2DBEE'
    },
    throttleType: 'fixRate',
    throttleDelay: 0,
    removeOnClick: true,
    z: 10000
  };
  return BrushModel;
}(Component);
function generateBrushOption(option, brushOption) {
  return util["merge"]({
    brushType: option.brushType,
    brushMode: option.brushMode,
    transformable: option.transformable,
    brushStyle: new model_Model(option.brushStyle).getItemStyle(),
    removeOnClick: option.removeOnClick,
    z: option.z
  }, brushOption, true);
}
/* harmony default export */ var brush_BrushModel = (BrushModel_BrushModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/Brush.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var Brush_ICON_TYPES = ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'];
var Brush_BrushFeature = /** @class */function (_super) {
  __extends(BrushFeature, _super);
  function BrushFeature() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  BrushFeature.prototype.render = function (featureModel, ecModel, api) {
    var brushType;
    var brushMode;
    var isBrushed;
    ecModel.eachComponent({
      mainType: 'brush'
    }, function (brushModel) {
      brushType = brushModel.brushType;
      brushMode = brushModel.brushOption.brushMode || 'single';
      isBrushed = isBrushed || !!brushModel.areas.length;
    });
    this._brushType = brushType;
    this._brushMode = brushMode;
    util["each"](featureModel.get('type', true), function (type) {
      featureModel.setIconStatus(type, (type === 'keep' ? brushMode === 'multiple' : type === 'clear' ? isBrushed : type === brushType) ? 'emphasis' : 'normal');
    });
  };
  BrushFeature.prototype.updateView = function (featureModel, ecModel, api) {
    this.render(featureModel, ecModel, api);
  };
  BrushFeature.prototype.getIcons = function () {
    var model = this.model;
    var availableIcons = model.get('icon', true);
    var icons = {};
    util["each"](model.get('type', true), function (type) {
      if (availableIcons[type]) {
        icons[type] = availableIcons[type];
      }
    });
    return icons;
  };
  ;
  BrushFeature.prototype.onclick = function (ecModel, api, type) {
    var brushType = this._brushType;
    var brushMode = this._brushMode;
    if (type === 'clear') {
      // Trigger parallel action firstly
      api.dispatchAction({
        type: 'axisAreaSelect',
        intervals: []
      });
      api.dispatchAction({
        type: 'brush',
        command: 'clear',
        // Clear all areas of all brush components.
        areas: []
      });
    } else {
      api.dispatchAction({
        type: 'takeGlobalCursor',
        key: 'brush',
        brushOption: {
          brushType: type === 'keep' ? brushType : brushType === type ? false : type,
          brushMode: type === 'keep' ? brushMode === 'multiple' ? 'single' : 'multiple' : brushMode
        }
      });
    }
  };
  ;
  BrushFeature.getDefaultOption = function (ecModel) {
    var defaultOption = {
      show: true,
      type: Brush_ICON_TYPES.slice(),
      icon: {
        /* eslint-disable */
        rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13',
        polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2',
        lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4',
        lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4',
        keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z',
        clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line
        /* eslint-enable */
      },
      // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`
      title: ecModel.getLocaleModel().get(['toolbox', 'brush', 'title'])
    };
    return defaultOption;
  };
  return BrushFeature;
}(ToolboxFeature);
/* harmony default export */ var Brush = (Brush_BrushFeature);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




// TODO



function brush_install_install(registers) {
  registers.registerComponentView(brush_BrushView);
  registers.registerComponentModel(brush_BrushModel);
  registers.registerPreprocessor(brushPreprocessor);
  registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, brushVisual);
  registers.registerAction({
    type: 'brush',
    event: 'brush',
    update: 'updateVisual'
  }, function (payload, ecModel) {
    ecModel.eachComponent({
      mainType: 'brush',
      query: payload
    }, function (brushModel) {
      brushModel.setAreas(payload.areas);
    });
  });
  /**
   * payload: {
   *      brushComponents: [
   *          {
   *              brushId,
   *              brushIndex,
   *              brushName,
   *              series: [
   *                  {
   *                      seriesId,
   *                      seriesIndex,
   *                      seriesName,
   *                      rawIndices: [21, 34, ...]
   *                  },
   *                  ...
   *              ]
   *          },
   *          ...
   *      ]
   * }
   */
  registers.registerAction({
    type: 'brushSelect',
    event: 'brushSelected',
    update: 'none'
  }, util["noop"]);
  registers.registerAction({
    type: 'brushEnd',
    event: 'brushEnd',
    update: 'none'
  }, util["noop"]);
  registerFeature('brush', Brush);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/title/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/









var install_TitleModel = /** @class */function (_super) {
  __extends(TitleModel, _super);
  function TitleModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TitleModel.type;
    _this.layoutMode = {
      type: 'box',
      ignoreSize: true
    };
    return _this;
  }
  TitleModel.type = 'title';
  TitleModel.defaultOption = {
    // zlevel: 0,
    z: 6,
    show: true,
    text: '',
    target: 'blank',
    subtext: '',
    subtarget: 'blank',
    left: 0,
    top: 0,
    backgroundColor: 'rgba(0,0,0,0)',
    borderColor: '#ccc',
    borderWidth: 0,
    padding: 5,
    itemGap: 10,
    textStyle: {
      fontSize: 18,
      fontWeight: 'bold',
      color: '#464646'
    },
    subtextStyle: {
      fontSize: 12,
      color: '#6E7079'
    }
  };
  return TitleModel;
}(Component);
// View
var install_TitleView = /** @class */function (_super) {
  __extends(TitleView, _super);
  function TitleView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TitleView.type;
    return _this;
  }
  TitleView.prototype.render = function (titleModel, ecModel, api) {
    this.group.removeAll();
    if (!titleModel.get('show')) {
      return;
    }
    var group = this.group;
    var textStyleModel = titleModel.getModel('textStyle');
    var subtextStyleModel = titleModel.getModel('subtextStyle');
    var textAlign = titleModel.get('textAlign');
    var textVerticalAlign = util["retrieve2"](titleModel.get('textBaseline'), titleModel.get('textVerticalAlign'));
    var textEl = new Text({
      style: createTextStyle(textStyleModel, {
        text: titleModel.get('text'),
        fill: textStyleModel.getTextColor()
      }, {
        disableBox: true
      }),
      z2: 10
    });
    var textRect = textEl.getBoundingRect();
    var subText = titleModel.get('subtext');
    var subTextEl = new Text({
      style: createTextStyle(subtextStyleModel, {
        text: subText,
        fill: subtextStyleModel.getTextColor(),
        y: textRect.height + titleModel.get('itemGap'),
        verticalAlign: 'top'
      }, {
        disableBox: true
      }),
      z2: 10
    });
    var link = titleModel.get('link');
    var sublink = titleModel.get('sublink');
    var triggerEvent = titleModel.get('triggerEvent', true);
    textEl.silent = !link && !triggerEvent;
    subTextEl.silent = !sublink && !triggerEvent;
    if (link) {
      textEl.on('click', function () {
        windowOpen(link, '_' + titleModel.get('target'));
      });
    }
    if (sublink) {
      subTextEl.on('click', function () {
        windowOpen(sublink, '_' + titleModel.get('subtarget'));
      });
    }
    getECData(textEl).eventData = getECData(subTextEl).eventData = triggerEvent ? {
      componentType: 'title',
      componentIndex: titleModel.componentIndex
    } : null;
    group.add(textEl);
    subText && group.add(subTextEl);
    // If no subText, but add subTextEl, there will be an empty line.
    var groupRect = group.getBoundingRect();
    var layoutOption = titleModel.getBoxLayoutParams();
    layoutOption.width = groupRect.width;
    layoutOption.height = groupRect.height;
    var layoutRect = getLayoutRect(layoutOption, {
      width: api.getWidth(),
      height: api.getHeight()
    }, titleModel.get('padding'));
    // Adjust text align based on position
    if (!textAlign) {
      // Align left if title is on the left. center and right is same
      textAlign = titleModel.get('left') || titleModel.get('right');
      // @ts-ignore
      if (textAlign === 'middle') {
        textAlign = 'center';
      }
      // Adjust layout by text align
      if (textAlign === 'right') {
        layoutRect.x += layoutRect.width;
      } else if (textAlign === 'center') {
        layoutRect.x += layoutRect.width / 2;
      }
    }
    if (!textVerticalAlign) {
      textVerticalAlign = titleModel.get('top') || titleModel.get('bottom');
      // @ts-ignore
      if (textVerticalAlign === 'center') {
        textVerticalAlign = 'middle';
      }
      if (textVerticalAlign === 'bottom') {
        layoutRect.y += layoutRect.height;
      } else if (textVerticalAlign === 'middle') {
        layoutRect.y += layoutRect.height / 2;
      }
      textVerticalAlign = textVerticalAlign || 'top';
    }
    group.x = layoutRect.x;
    group.y = layoutRect.y;
    group.markRedraw();
    var alignStyle = {
      align: textAlign,
      verticalAlign: textVerticalAlign
    };
    textEl.setStyle(alignStyle);
    subTextEl.setStyle(alignStyle);
    // Render background
    // Get groupRect again because textAlign has been changed
    groupRect = group.getBoundingRect();
    var padding = layoutRect.margin;
    var style = titleModel.getItemStyle(['color', 'opacity']);
    style.fill = titleModel.get('backgroundColor');
    var rect = new shape_Rect({
      shape: {
        x: groupRect.x - padding[3],
        y: groupRect.y - padding[0],
        width: groupRect.width + padding[1] + padding[3],
        height: groupRect.height + padding[0] + padding[2],
        r: titleModel.get('borderRadius')
      },
      style: style,
      subPixelOptimize: true,
      silent: true
    });
    group.add(rect);
  };
  TitleView.type = 'title';
  return TitleView;
}(view_Component);
function title_install_install(registers) {
  registers.registerComponentModel(install_TitleModel);
  registers.registerComponentView(install_TitleView);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/TimelineModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var TimelineModel_TimelineModel = /** @class */function (_super) {
  __extends(TimelineModel, _super);
  function TimelineModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TimelineModel.type;
    _this.layoutMode = 'box';
    return _this;
  }
  /**
   * @override
   */
  TimelineModel.prototype.init = function (option, parentModel, ecModel) {
    this.mergeDefaultAndTheme(option, ecModel);
    this._initData();
  };
  /**
   * @override
   */
  TimelineModel.prototype.mergeOption = function (option) {
    _super.prototype.mergeOption.apply(this, arguments);
    this._initData();
  };
  TimelineModel.prototype.setCurrentIndex = function (currentIndex) {
    if (currentIndex == null) {
      currentIndex = this.option.currentIndex;
    }
    var count = this._data.count();
    if (this.option.loop) {
      currentIndex = (currentIndex % count + count) % count;
    } else {
      currentIndex >= count && (currentIndex = count - 1);
      currentIndex < 0 && (currentIndex = 0);
    }
    this.option.currentIndex = currentIndex;
  };
  /**
   * @return {number} currentIndex
   */
  TimelineModel.prototype.getCurrentIndex = function () {
    return this.option.currentIndex;
  };
  /**
   * @return {boolean}
   */
  TimelineModel.prototype.isIndexMax = function () {
    return this.getCurrentIndex() >= this._data.count() - 1;
  };
  /**
   * @param {boolean} state true: play, false: stop
   */
  TimelineModel.prototype.setPlayState = function (state) {
    this.option.autoPlay = !!state;
  };
  /**
   * @return {boolean} true: play, false: stop
   */
  TimelineModel.prototype.getPlayState = function () {
    return !!this.option.autoPlay;
  };
  /**
   * @private
   */
  TimelineModel.prototype._initData = function () {
    var thisOption = this.option;
    var dataArr = thisOption.data || [];
    var axisType = thisOption.axisType;
    var names = this._names = [];
    var processedDataArr;
    if (axisType === 'category') {
      processedDataArr = [];
      Object(util["each"])(dataArr, function (item, index) {
        var value = convertOptionIdName(getDataItemValue(item), '');
        var newItem;
        if (Object(util["isObject"])(item)) {
          newItem = Object(util["clone"])(item);
          newItem.value = index;
        } else {
          newItem = index;
        }
        processedDataArr.push(newItem);
        names.push(value);
      });
    } else {
      processedDataArr = dataArr;
    }
    var dimType = {
      category: 'ordinal',
      time: 'time',
      value: 'number'
    }[axisType] || 'number';
    var data = this._data = new data_SeriesData([{
      name: 'value',
      type: dimType
    }], this);
    data.initData(processedDataArr, names);
  };
  TimelineModel.prototype.getData = function () {
    return this._data;
  };
  /**
   * @public
   * @return {Array.<string>} categoreis
   */
  TimelineModel.prototype.getCategories = function () {
    if (this.get('axisType') === 'category') {
      return this._names.slice();
    }
  };
  TimelineModel.type = 'timeline';
  /**
   * @protected
   */
  TimelineModel.defaultOption = {
    // zlevel: 0,                  // 一级层叠
    z: 4,
    show: true,
    axisType: 'time',
    realtime: true,
    left: '20%',
    top: null,
    right: '20%',
    bottom: 0,
    width: null,
    height: 40,
    padding: 5,
    controlPosition: 'left',
    autoPlay: false,
    rewind: false,
    loop: true,
    playInterval: 2000,
    currentIndex: 0,
    itemStyle: {},
    label: {
      color: '#000'
    },
    data: []
  };
  return TimelineModel;
}(Component);
/* harmony default export */ var timeline_TimelineModel = (TimelineModel_TimelineModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/SliderTimelineModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var SliderTimelineModel_SliderTimelineModel = /** @class */function (_super) {
  __extends(SliderTimelineModel, _super);
  function SliderTimelineModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SliderTimelineModel.type;
    return _this;
  }
  SliderTimelineModel.type = 'timeline.slider';
  /**
   * @protected
   */
  SliderTimelineModel.defaultOption = inheritDefaultOption(timeline_TimelineModel.defaultOption, {
    backgroundColor: 'rgba(0,0,0,0)',
    borderColor: '#ccc',
    borderWidth: 0,
    orient: 'horizontal',
    inverse: false,
    tooltip: {
      trigger: 'item' // data item may also have tootip attr.
    },
    symbol: 'circle',
    symbolSize: 12,
    lineStyle: {
      show: true,
      width: 2,
      color: '#DAE1F5'
    },
    label: {
      position: 'auto',
      // When using number, label position is not
      // restricted by viewRect.
      // positive: right/bottom, negative: left/top
      show: true,
      interval: 'auto',
      rotate: 0,
      // formatter: null,
      // 其余属性默认使用全局文本样式，详见TEXTSTYLE
      color: '#A4B1D7'
    },
    itemStyle: {
      color: '#A4B1D7',
      borderWidth: 1
    },
    checkpointStyle: {
      symbol: 'circle',
      symbolSize: 15,
      color: '#316bf3',
      borderColor: '#fff',
      borderWidth: 2,
      shadowBlur: 2,
      shadowOffsetX: 1,
      shadowOffsetY: 1,
      shadowColor: 'rgba(0, 0, 0, 0.3)',
      // borderColor: 'rgba(194,53,49, 0.5)',
      animation: true,
      animationDuration: 300,
      animationEasing: 'quinticInOut'
    },
    controlStyle: {
      show: true,
      showPlayBtn: true,
      showPrevBtn: true,
      showNextBtn: true,
      itemSize: 24,
      itemGap: 12,
      position: 'left',
      playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z',
      stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z',
      // eslint-disable-next-line max-len
      nextIcon: 'M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z',
      // eslint-disable-next-line max-len
      prevIcon: 'M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z',
      prevBtnSize: 18,
      nextBtnSize: 18,
      color: '#A4B1D7',
      borderColor: '#A4B1D7',
      borderWidth: 1
    },
    emphasis: {
      label: {
        show: true,
        // 其余属性默认使用全局文本样式，详见TEXTSTYLE
        color: '#6f778d'
      },
      itemStyle: {
        color: '#316BF3'
      },
      controlStyle: {
        color: '#316BF3',
        borderColor: '#316BF3',
        borderWidth: 2
      }
    },
    progress: {
      lineStyle: {
        color: '#316BF3'
      },
      itemStyle: {
        color: '#316BF3'
      },
      label: {
        color: '#6f778d'
      }
    },
    data: []
  });
  return SliderTimelineModel;
}(timeline_TimelineModel);
Object(util["mixin"])(SliderTimelineModel_SliderTimelineModel, dataFormat_DataFormatMixin.prototype);
/* harmony default export */ var timeline_SliderTimelineModel = (SliderTimelineModel_SliderTimelineModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/TimelineView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var TimelineView_TimelineView = /** @class */function (_super) {
  __extends(TimelineView, _super);
  function TimelineView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = TimelineView.type;
    return _this;
  }
  TimelineView.type = 'timeline';
  return TimelineView;
}(view_Component);
/* harmony default export */ var timeline_TimelineView = (TimelineView_TimelineView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/TimelineAxis.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * Extend axis 2d
 */
var TimelineAxis_TimelineAxis = /** @class */function (_super) {
  __extends(TimelineAxis, _super);
  function TimelineAxis(dim, scale, coordExtent, axisType) {
    var _this = _super.call(this, dim, scale, coordExtent) || this;
    _this.type = axisType || 'value';
    return _this;
  }
  /**
   * @override
   */
  TimelineAxis.prototype.getLabelModel = function () {
    // Force override
    return this.model.getModel('label');
  };
  /**
   * @override
   */
  TimelineAxis.prototype.isHorizontal = function () {
    return this.model.get('orient') === 'horizontal';
  };
  return TimelineAxis;
}(coord_Axis);
/* harmony default export */ var timeline_TimelineAxis = (TimelineAxis_TimelineAxis);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/SliderTimelineView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



















var SliderTimelineView_PI = Math.PI;
var labelDataIndexStore = makeInner();
var SliderTimelineView_SliderTimelineView = /** @class */function (_super) {
  __extends(SliderTimelineView, _super);
  function SliderTimelineView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SliderTimelineView.type;
    return _this;
  }
  SliderTimelineView.prototype.init = function (ecModel, api) {
    this.api = api;
  };
  /**
   * @override
   */
  SliderTimelineView.prototype.render = function (timelineModel, ecModel, api) {
    this.model = timelineModel;
    this.api = api;
    this.ecModel = ecModel;
    this.group.removeAll();
    if (timelineModel.get('show', true)) {
      var layoutInfo_1 = this._layout(timelineModel, api);
      var mainGroup_1 = this._createGroup('_mainGroup');
      var labelGroup = this._createGroup('_labelGroup');
      var axis_1 = this._axis = this._createAxis(layoutInfo_1, timelineModel);
      timelineModel.formatTooltip = function (dataIndex) {
        var name = axis_1.scale.getLabel({
          value: dataIndex
        });
        return createTooltipMarkup('nameValue', {
          noName: true,
          value: name
        });
      };
      Object(util["each"])(['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'], function (name) {
        this['_render' + name](layoutInfo_1, mainGroup_1, axis_1, timelineModel);
      }, this);
      this._renderAxisLabel(layoutInfo_1, labelGroup, axis_1, timelineModel);
      this._position(layoutInfo_1, timelineModel);
    }
    this._doPlayStop();
    this._updateTicksStatus();
  };
  /**
   * @override
   */
  SliderTimelineView.prototype.remove = function () {
    this._clearTimer();
    this.group.removeAll();
  };
  /**
   * @override
   */
  SliderTimelineView.prototype.dispose = function () {
    this._clearTimer();
  };
  SliderTimelineView.prototype._layout = function (timelineModel, api) {
    var labelPosOpt = timelineModel.get(['label', 'position']);
    var orient = timelineModel.get('orient');
    var viewRect = SliderTimelineView_getViewRect(timelineModel, api);
    var parsedLabelPos;
    // Auto label offset.
    if (labelPosOpt == null || labelPosOpt === 'auto') {
      parsedLabelPos = orient === 'horizontal' ? viewRect.y + viewRect.height / 2 < api.getHeight() / 2 ? '-' : '+' : viewRect.x + viewRect.width / 2 < api.getWidth() / 2 ? '+' : '-';
    } else if (Object(util["isString"])(labelPosOpt)) {
      parsedLabelPos = {
        horizontal: {
          top: '-',
          bottom: '+'
        },
        vertical: {
          left: '-',
          right: '+'
        }
      }[orient][labelPosOpt];
    } else {
      // is number
      parsedLabelPos = labelPosOpt;
    }
    var labelAlignMap = {
      horizontal: 'center',
      vertical: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'left' : 'right'
    };
    var labelBaselineMap = {
      horizontal: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'top' : 'bottom',
      vertical: 'middle'
    };
    var rotationMap = {
      horizontal: 0,
      vertical: SliderTimelineView_PI / 2
    };
    // Position
    var mainLength = orient === 'vertical' ? viewRect.height : viewRect.width;
    var controlModel = timelineModel.getModel('controlStyle');
    var showControl = controlModel.get('show', true);
    var controlSize = showControl ? controlModel.get('itemSize') : 0;
    var controlGap = showControl ? controlModel.get('itemGap') : 0;
    var sizePlusGap = controlSize + controlGap;
    // Special label rotate.
    var labelRotation = timelineModel.get(['label', 'rotate']) || 0;
    labelRotation = labelRotation * SliderTimelineView_PI / 180; // To radian.
    var playPosition;
    var prevBtnPosition;
    var nextBtnPosition;
    var controlPosition = controlModel.get('position', true);
    var showPlayBtn = showControl && controlModel.get('showPlayBtn', true);
    var showPrevBtn = showControl && controlModel.get('showPrevBtn', true);
    var showNextBtn = showControl && controlModel.get('showNextBtn', true);
    var xLeft = 0;
    var xRight = mainLength;
    // position[0] means left, position[1] means middle.
    if (controlPosition === 'left' || controlPosition === 'bottom') {
      showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap);
      showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap);
      showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
    } else {
      // 'top' 'right'
      showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
      showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap);
      showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
    }
    var axisExtent = [xLeft, xRight];
    if (timelineModel.get('inverse')) {
      axisExtent.reverse();
    }
    return {
      viewRect: viewRect,
      mainLength: mainLength,
      orient: orient,
      rotation: rotationMap[orient],
      labelRotation: labelRotation,
      labelPosOpt: parsedLabelPos,
      labelAlign: timelineModel.get(['label', 'align']) || labelAlignMap[orient],
      labelBaseline: timelineModel.get(['label', 'verticalAlign']) || timelineModel.get(['label', 'baseline']) || labelBaselineMap[orient],
      // Based on mainGroup.
      playPosition: playPosition,
      prevBtnPosition: prevBtnPosition,
      nextBtnPosition: nextBtnPosition,
      axisExtent: axisExtent,
      controlSize: controlSize,
      controlGap: controlGap
    };
  };
  SliderTimelineView.prototype._position = function (layoutInfo, timelineModel) {
    // Position is be called finally, because bounding rect is needed for
    // adapt content to fill viewRect (auto adapt offset).
    // Timeline may be not all in the viewRect when 'offset' is specified
    // as a number, because it is more appropriate that label aligns at
    // 'offset' but not the other edge defined by viewRect.
    var mainGroup = this._mainGroup;
    var labelGroup = this._labelGroup;
    var viewRect = layoutInfo.viewRect;
    if (layoutInfo.orient === 'vertical') {
      // transform to horizontal, inverse rotate by left-top point.
      var m = matrix_create();
      var rotateOriginX = viewRect.x;
      var rotateOriginY = viewRect.y + viewRect.height;
      matrix_translate(m, m, [-rotateOriginX, -rotateOriginY]);
      matrix_rotate(m, m, -SliderTimelineView_PI / 2);
      matrix_translate(m, m, [rotateOriginX, rotateOriginY]);
      viewRect = viewRect.clone();
      viewRect.applyTransform(m);
    }
    var viewBound = getBound(viewRect);
    var mainBound = getBound(mainGroup.getBoundingRect());
    var labelBound = getBound(labelGroup.getBoundingRect());
    var mainPosition = [mainGroup.x, mainGroup.y];
    var labelsPosition = [labelGroup.x, labelGroup.y];
    labelsPosition[0] = mainPosition[0] = viewBound[0][0];
    var labelPosOpt = layoutInfo.labelPosOpt;
    if (labelPosOpt == null || Object(util["isString"])(labelPosOpt)) {
      // '+' or '-'
      var mainBoundIdx = labelPosOpt === '+' ? 0 : 1;
      toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);
      toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);
    } else {
      var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;
      toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);
      labelsPosition[1] = mainPosition[1] + labelPosOpt;
    }
    mainGroup.setPosition(mainPosition);
    labelGroup.setPosition(labelsPosition);
    mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation;
    setOrigin(mainGroup);
    setOrigin(labelGroup);
    function setOrigin(targetGroup) {
      targetGroup.originX = viewBound[0][0] - targetGroup.x;
      targetGroup.originY = viewBound[1][0] - targetGroup.y;
    }
    function getBound(rect) {
      // [[xmin, xmax], [ymin, ymax]]
      return [[rect.x, rect.x + rect.width], [rect.y, rect.y + rect.height]];
    }
    function toBound(fromPos, from, to, dimIdx, boundIdx) {
      fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];
    }
  };
  SliderTimelineView.prototype._createAxis = function (layoutInfo, timelineModel) {
    var data = timelineModel.getData();
    var axisType = timelineModel.get('axisType');
    var scale = SliderTimelineView_createScaleByModel(timelineModel, axisType);
    // Customize scale. The `tickValue` is `dataIndex`.
    scale.getTicks = function () {
      return data.mapArray(['value'], function (value) {
        return {
          value: value
        };
      });
    };
    var dataExtent = data.getDataExtent('value');
    scale.setExtent(dataExtent[0], dataExtent[1]);
    scale.calcNiceTicks();
    var axis = new timeline_TimelineAxis('value', scale, layoutInfo.axisExtent, axisType);
    axis.model = timelineModel;
    return axis;
  };
  SliderTimelineView.prototype._createGroup = function (key) {
    var newGroup = this[key] = new graphic_Group();
    this.group.add(newGroup);
    return newGroup;
  };
  SliderTimelineView.prototype._renderAxisLine = function (layoutInfo, group, axis, timelineModel) {
    var axisExtent = axis.getExtent();
    if (!timelineModel.get(['lineStyle', 'show'])) {
      return;
    }
    var line = new shape_Line({
      shape: {
        x1: axisExtent[0],
        y1: 0,
        x2: axisExtent[1],
        y2: 0
      },
      style: Object(util["extend"])({
        lineCap: 'round'
      }, timelineModel.getModel('lineStyle').getLineStyle()),
      silent: true,
      z2: 1
    });
    group.add(line);
    var progressLine = this._progressLine = new shape_Line({
      shape: {
        x1: axisExtent[0],
        x2: this._currentPointer ? this._currentPointer.x : axisExtent[0],
        y1: 0,
        y2: 0
      },
      style: Object(util["defaults"])({
        lineCap: 'round',
        lineWidth: line.style.lineWidth
      }, timelineModel.getModel(['progress', 'lineStyle']).getLineStyle()),
      silent: true,
      z2: 1
    });
    group.add(progressLine);
  };
  SliderTimelineView.prototype._renderAxisTick = function (layoutInfo, group, axis, timelineModel) {
    var _this = this;
    var data = timelineModel.getData();
    // Show all ticks, despite ignoring strategy.
    var ticks = axis.scale.getTicks();
    this._tickSymbols = [];
    // The value is dataIndex, see the customized scale.
    Object(util["each"])(ticks, function (tick) {
      var tickCoord = axis.dataToCoord(tick.value);
      var itemModel = data.getItemModel(tick.value);
      var itemStyleModel = itemModel.getModel('itemStyle');
      var hoverStyleModel = itemModel.getModel(['emphasis', 'itemStyle']);
      var progressStyleModel = itemModel.getModel(['progress', 'itemStyle']);
      var symbolOpt = {
        x: tickCoord,
        y: 0,
        onclick: Object(util["bind"])(_this._changeTimeline, _this, tick.value)
      };
      var el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt);
      el.ensureState('emphasis').style = hoverStyleModel.getItemStyle();
      el.ensureState('progress').style = progressStyleModel.getItemStyle();
      enableHoverEmphasis(el);
      var ecData = getECData(el);
      if (itemModel.get('tooltip')) {
        ecData.dataIndex = tick.value;
        ecData.dataModel = timelineModel;
      } else {
        ecData.dataIndex = ecData.dataModel = null;
      }
      _this._tickSymbols.push(el);
    });
  };
  SliderTimelineView.prototype._renderAxisLabel = function (layoutInfo, group, axis, timelineModel) {
    var _this = this;
    var labelModel = axis.getLabelModel();
    if (!labelModel.get('show')) {
      return;
    }
    var data = timelineModel.getData();
    var labels = axis.getViewLabels();
    this._tickLabels = [];
    Object(util["each"])(labels, function (labelItem) {
      // The tickValue is dataIndex, see the customized scale.
      var dataIndex = labelItem.tickValue;
      var itemModel = data.getItemModel(dataIndex);
      var normalLabelModel = itemModel.getModel('label');
      var hoverLabelModel = itemModel.getModel(['emphasis', 'label']);
      var progressLabelModel = itemModel.getModel(['progress', 'label']);
      var tickCoord = axis.dataToCoord(labelItem.tickValue);
      var textEl = new Text({
        x: tickCoord,
        y: 0,
        rotation: layoutInfo.labelRotation - layoutInfo.rotation,
        onclick: Object(util["bind"])(_this._changeTimeline, _this, dataIndex),
        silent: false,
        style: createTextStyle(normalLabelModel, {
          text: labelItem.formattedLabel,
          align: layoutInfo.labelAlign,
          verticalAlign: layoutInfo.labelBaseline
        })
      });
      textEl.ensureState('emphasis').style = createTextStyle(hoverLabelModel);
      textEl.ensureState('progress').style = createTextStyle(progressLabelModel);
      group.add(textEl);
      enableHoverEmphasis(textEl);
      labelDataIndexStore(textEl).dataIndex = dataIndex;
      _this._tickLabels.push(textEl);
    });
  };
  SliderTimelineView.prototype._renderControl = function (layoutInfo, group, axis, timelineModel) {
    var controlSize = layoutInfo.controlSize;
    var rotation = layoutInfo.rotation;
    var itemStyle = timelineModel.getModel('controlStyle').getItemStyle();
    var hoverStyle = timelineModel.getModel(['emphasis', 'controlStyle']).getItemStyle();
    var playState = timelineModel.getPlayState();
    var inverse = timelineModel.get('inverse', true);
    makeBtn(layoutInfo.nextBtnPosition, 'next', Object(util["bind"])(this._changeTimeline, this, inverse ? '-' : '+'));
    makeBtn(layoutInfo.prevBtnPosition, 'prev', Object(util["bind"])(this._changeTimeline, this, inverse ? '+' : '-'));
    makeBtn(layoutInfo.playPosition, playState ? 'stop' : 'play', Object(util["bind"])(this._handlePlayClick, this, !playState), true);
    function makeBtn(position, iconName, onclick, willRotate) {
      if (!position) {
        return;
      }
      var iconSize = parsePercent(Object(util["retrieve2"])(timelineModel.get(['controlStyle', iconName + 'BtnSize']), controlSize), controlSize);
      var rect = [0, -iconSize / 2, iconSize, iconSize];
      var btn = makeControlIcon(timelineModel, iconName + 'Icon', rect, {
        x: position[0],
        y: position[1],
        originX: controlSize / 2,
        originY: 0,
        rotation: willRotate ? -rotation : 0,
        rectHover: true,
        style: itemStyle,
        onclick: onclick
      });
      btn.ensureState('emphasis').style = hoverStyle;
      group.add(btn);
      enableHoverEmphasis(btn);
    }
  };
  SliderTimelineView.prototype._renderCurrentPointer = function (layoutInfo, group, axis, timelineModel) {
    var data = timelineModel.getData();
    var currentIndex = timelineModel.getCurrentIndex();
    var pointerModel = data.getItemModel(currentIndex).getModel('checkpointStyle');
    var me = this;
    var callback = {
      onCreate: function (pointer) {
        pointer.draggable = true;
        pointer.drift = Object(util["bind"])(me._handlePointerDrag, me);
        pointer.ondragend = Object(util["bind"])(me._handlePointerDragend, me);
        pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel, true);
      },
      onUpdate: function (pointer) {
        pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel);
      }
    };
    // Reuse when exists, for animation and drag.
    this._currentPointer = giveSymbol(pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback);
  };
  SliderTimelineView.prototype._handlePlayClick = function (nextState) {
    this._clearTimer();
    this.api.dispatchAction({
      type: 'timelinePlayChange',
      playState: nextState,
      from: this.uid
    });
  };
  SliderTimelineView.prototype._handlePointerDrag = function (dx, dy, e) {
    this._clearTimer();
    this._pointerChangeTimeline([e.offsetX, e.offsetY]);
  };
  SliderTimelineView.prototype._handlePointerDragend = function (e) {
    this._pointerChangeTimeline([e.offsetX, e.offsetY], true);
  };
  SliderTimelineView.prototype._pointerChangeTimeline = function (mousePos, trigger) {
    var toCoord = this._toAxisCoord(mousePos)[0];
    var axis = this._axis;
    var axisExtent = asc(axis.getExtent().slice());
    toCoord > axisExtent[1] && (toCoord = axisExtent[1]);
    toCoord < axisExtent[0] && (toCoord = axisExtent[0]);
    this._currentPointer.x = toCoord;
    this._currentPointer.markRedraw();
    var progressLine = this._progressLine;
    if (progressLine) {
      progressLine.shape.x2 = toCoord;
      progressLine.dirty();
    }
    var targetDataIndex = this._findNearestTick(toCoord);
    var timelineModel = this.model;
    if (trigger || targetDataIndex !== timelineModel.getCurrentIndex() && timelineModel.get('realtime')) {
      this._changeTimeline(targetDataIndex);
    }
  };
  SliderTimelineView.prototype._doPlayStop = function () {
    var _this = this;
    this._clearTimer();
    if (this.model.getPlayState()) {
      this._timer = setTimeout(function () {
        // Do not cache
        var timelineModel = _this.model;
        _this._changeTimeline(timelineModel.getCurrentIndex() + (timelineModel.get('rewind', true) ? -1 : 1));
      }, this.model.get('playInterval'));
    }
  };
  SliderTimelineView.prototype._toAxisCoord = function (vertex) {
    var trans = this._mainGroup.getLocalTransform();
    return graphic_applyTransform(vertex, trans, true);
  };
  SliderTimelineView.prototype._findNearestTick = function (axisCoord) {
    var data = this.model.getData();
    var dist = Infinity;
    var targetDataIndex;
    var axis = this._axis;
    data.each(['value'], function (value, dataIndex) {
      var coord = axis.dataToCoord(value);
      var d = Math.abs(coord - axisCoord);
      if (d < dist) {
        dist = d;
        targetDataIndex = dataIndex;
      }
    });
    return targetDataIndex;
  };
  SliderTimelineView.prototype._clearTimer = function () {
    if (this._timer) {
      clearTimeout(this._timer);
      this._timer = null;
    }
  };
  SliderTimelineView.prototype._changeTimeline = function (nextIndex) {
    var currentIndex = this.model.getCurrentIndex();
    if (nextIndex === '+') {
      nextIndex = currentIndex + 1;
    } else if (nextIndex === '-') {
      nextIndex = currentIndex - 1;
    }
    this.api.dispatchAction({
      type: 'timelineChange',
      currentIndex: nextIndex,
      from: this.uid
    });
  };
  SliderTimelineView.prototype._updateTicksStatus = function () {
    var currentIndex = this.model.getCurrentIndex();
    var tickSymbols = this._tickSymbols;
    var tickLabels = this._tickLabels;
    if (tickSymbols) {
      for (var i = 0; i < tickSymbols.length; i++) {
        tickSymbols && tickSymbols[i] && tickSymbols[i].toggleState('progress', i < currentIndex);
      }
    }
    if (tickLabels) {
      for (var i = 0; i < tickLabels.length; i++) {
        tickLabels && tickLabels[i] && tickLabels[i].toggleState('progress', labelDataIndexStore(tickLabels[i]).dataIndex <= currentIndex);
      }
    }
  };
  SliderTimelineView.type = 'timeline.slider';
  return SliderTimelineView;
}(timeline_TimelineView);
function SliderTimelineView_createScaleByModel(model, axisType) {
  axisType = axisType || model.get('type');
  if (axisType) {
    switch (axisType) {
      // Buildin scale
      case 'category':
        return new Ordinal({
          ordinalMeta: model.getCategories(),
          extent: [Infinity, -Infinity]
        });
      case 'time':
        return new Time({
          locale: model.ecModel.getLocaleModel(),
          useUTC: model.ecModel.get('useUTC')
        });
      default:
        // default to be value
        return new Interval();
    }
  }
}
function SliderTimelineView_getViewRect(model, api) {
  return getLayoutRect(model.getBoxLayoutParams(), {
    width: api.getWidth(),
    height: api.getHeight()
  }, model.get('padding'));
}
function makeControlIcon(timelineModel, objPath, rect, opts) {
  var style = opts.style;
  var icon = createIcon(timelineModel.get(['controlStyle', objPath]), opts || {}, new core_BoundingRect(rect[0], rect[1], rect[2], rect[3]));
  // TODO createIcon won't use style in opt.
  if (style) {
    icon.setStyle(style);
  }
  return icon;
}
/**
 * Create symbol or update symbol
 * opt: basic position and event handlers
 */
function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {
  var color = itemStyleModel.get('color');
  if (!symbol) {
    var symbolType = hostModel.get('symbol');
    symbol = symbol_createSymbol(symbolType, -1, -1, 2, 2, color);
    symbol.setStyle('strokeNoScale', true);
    group.add(symbol);
    callback && callback.onCreate(symbol);
  } else {
    symbol.setColor(color);
    group.add(symbol); // Group may be new, also need to add.
    callback && callback.onUpdate(symbol);
  }
  // Style
  var itemStyle = itemStyleModel.getItemStyle(['color']);
  symbol.setStyle(itemStyle);
  // Transform and events.
  opt = Object(util["merge"])({
    rectHover: true,
    z2: 100
  }, opt, true);
  var symbolSize = normalizeSymbolSize(hostModel.get('symbolSize'));
  opt.scaleX = symbolSize[0] / 2;
  opt.scaleY = symbolSize[1] / 2;
  var symbolOffset = normalizeSymbolOffset(hostModel.get('symbolOffset'), symbolSize);
  if (symbolOffset) {
    opt.x = (opt.x || 0) + symbolOffset[0];
    opt.y = (opt.y || 0) + symbolOffset[1];
  }
  var symbolRotate = hostModel.get('symbolRotate');
  opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;
  symbol.attr(opt);
  // FIXME
  // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,
  // getBoundingRect will return wrong result.
  // (This is supposed to be resolved in zrender, but it is a little difficult to
  // leverage performance and auto updateTransform)
  // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.
  symbol.updateTransform();
  return symbol;
}
function pointerMoveTo(pointer, progressLine, dataIndex, axis, timelineModel, noAnimation) {
  if (pointer.dragging) {
    return;
  }
  var pointerModel = timelineModel.getModel('checkpointStyle');
  var toCoord = axis.dataToCoord(timelineModel.getData().get('value', dataIndex));
  if (noAnimation || !pointerModel.get('animation', true)) {
    pointer.attr({
      x: toCoord,
      y: 0
    });
    progressLine && progressLine.attr({
      shape: {
        x2: toCoord
      }
    });
  } else {
    var animationCfg = {
      duration: pointerModel.get('animationDuration', true),
      easing: pointerModel.get('animationEasing', true)
    };
    pointer.stopAnimation(null, true);
    pointer.animateTo({
      x: toCoord,
      y: 0
    }, animationCfg);
    progressLine && progressLine.animateTo({
      shape: {
        x2: toCoord
      }
    }, animationCfg);
  }
}
/* harmony default export */ var timeline_SliderTimelineView = (SliderTimelineView_SliderTimelineView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/timelineAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function installTimelineAction(registers) {
  registers.registerAction({
    type: 'timelineChange',
    event: 'timelineChanged',
    update: 'prepareAndUpdate'
  }, function (payload, ecModel, api) {
    var timelineModel = ecModel.getComponent('timeline');
    if (timelineModel && payload.currentIndex != null) {
      timelineModel.setCurrentIndex(payload.currentIndex);
      if (!timelineModel.get('loop', true) && timelineModel.isIndexMax() && timelineModel.getPlayState()) {
        timelineModel.setPlayState(false);
        // The timeline has played to the end, trigger event
        api.dispatchAction({
          type: 'timelinePlayChange',
          playState: false,
          from: payload.from
        });
      }
    }
    // Set normalized currentIndex to payload.
    ecModel.resetOption('timeline', {
      replaceMerge: timelineModel.get('replaceMerge', true)
    });
    return Object(util["defaults"])({
      currentIndex: timelineModel.option.currentIndex
    }, payload);
  });
  registers.registerAction({
    type: 'timelinePlayChange',
    event: 'timelinePlayChanged',
    update: 'update'
  }, function (payload, ecModel) {
    var timelineModel = ecModel.getComponent('timeline');
    if (timelineModel && payload.playState != null) {
      timelineModel.setPlayState(payload.playState);
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/preprocessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck

function timelinePreprocessor(option) {
  var timelineOpt = option && option.timeline;
  if (!util["isArray"](timelineOpt)) {
    timelineOpt = timelineOpt ? [timelineOpt] : [];
  }
  util["each"](timelineOpt, function (opt) {
    if (!opt) {
      return;
    }
    compatibleEC2(opt);
  });
}
function compatibleEC2(opt) {
  var type = opt.type;
  var ec2Types = {
    'number': 'value',
    'time': 'time'
  };
  // Compatible with ec2
  if (ec2Types[type]) {
    opt.axisType = ec2Types[type];
    delete opt.type;
  }
  transferItem(opt);
  if (preprocessor_has(opt, 'controlPosition')) {
    var controlStyle = opt.controlStyle || (opt.controlStyle = {});
    if (!preprocessor_has(controlStyle, 'position')) {
      controlStyle.position = opt.controlPosition;
    }
    if (controlStyle.position === 'none' && !preprocessor_has(controlStyle, 'show')) {
      controlStyle.show = false;
      delete controlStyle.position;
    }
    delete opt.controlPosition;
  }
  util["each"](opt.data || [], function (dataItem) {
    if (util["isObject"](dataItem) && !util["isArray"](dataItem)) {
      if (!preprocessor_has(dataItem, 'value') && preprocessor_has(dataItem, 'name')) {
        // In ec2, using name as value.
        dataItem.value = dataItem.name;
      }
      transferItem(dataItem);
    }
  });
}
function transferItem(opt) {
  var itemStyle = opt.itemStyle || (opt.itemStyle = {});
  var itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {});
  // Transfer label out
  var label = opt.label || opt.label || {};
  var labelNormal = label.normal || (label.normal = {});
  var excludeLabelAttr = {
    normal: 1,
    emphasis: 1
  };
  util["each"](label, function (value, name) {
    if (!excludeLabelAttr[name] && !preprocessor_has(labelNormal, name)) {
      labelNormal[name] = value;
    }
  });
  if (itemStyleEmphasis.label && !preprocessor_has(label, 'emphasis')) {
    label.emphasis = itemStyleEmphasis.label;
    delete itemStyleEmphasis.label;
  }
}
function preprocessor_has(obj, attr) {
  return obj.hasOwnProperty(attr);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */





function timeline_install_install(registers) {
  registers.registerComponentModel(timeline_SliderTimelineModel);
  registers.registerComponentView(timeline_SliderTimelineView);
  registers.registerSubTypeDefaulter('timeline', function () {
    // Only slider now.
    return 'slider';
  });
  installTimelineAction(registers);
  registers.registerPreprocessor(timelinePreprocessor);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/checkMarkerInSeries.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function checkMarkerInSeries(seriesOpts, markerType) {
  if (!seriesOpts) {
    return false;
  }
  var seriesOptArr = Object(util["isArray"])(seriesOpts) ? seriesOpts : [seriesOpts];
  for (var idx = 0; idx < seriesOptArr.length; idx++) {
    if (seriesOptArr[idx] && seriesOptArr[idx][markerType]) {
      return true;
    }
  }
  return false;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkerModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







function fillLabel(opt) {
  defaultEmphasis(opt, 'label', ['show']);
}
// { [componentType]: MarkerModel }
var MarkerModel_inner = makeInner();
var MarkerModel_MarkerModel = /** @class */function (_super) {
  __extends(MarkerModel, _super);
  function MarkerModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkerModel.type;
    /**
     * If marker model is created by self from series
     */
    _this.createdBySelf = false;
    return _this;
  }
  /**
   * @overrite
   */
  MarkerModel.prototype.init = function (option, parentModel, ecModel) {
    if (false) {}
    this.mergeDefaultAndTheme(option, ecModel);
    this._mergeOption(option, ecModel, false, true);
  };
  MarkerModel.prototype.isAnimationEnabled = function () {
    if (env["a" /* default */].node) {
      return false;
    }
    var hostSeries = this.__hostSeries;
    return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled();
  };
  /**
   * @overrite
   */
  MarkerModel.prototype.mergeOption = function (newOpt, ecModel) {
    this._mergeOption(newOpt, ecModel, false, false);
  };
  MarkerModel.prototype._mergeOption = function (newOpt, ecModel, createdBySelf, isInit) {
    var componentType = this.mainType;
    if (!createdBySelf) {
      ecModel.eachSeries(function (seriesModel) {
        // mainType can be markPoint, markLine, markArea
        var markerOpt = seriesModel.get(this.mainType, true);
        var markerModel = MarkerModel_inner(seriesModel)[componentType];
        if (!markerOpt || !markerOpt.data) {
          MarkerModel_inner(seriesModel)[componentType] = null;
          return;
        }
        if (!markerModel) {
          if (isInit) {
            // Default label emphasis `position` and `show`
            fillLabel(markerOpt);
          }
          util["each"](markerOpt.data, function (item) {
            // FIXME Overwrite fillLabel method ?
            if (item instanceof Array) {
              fillLabel(item[0]);
              fillLabel(item[1]);
            } else {
              fillLabel(item);
            }
          });
          markerModel = this.createMarkerModelFromSeries(markerOpt, this, ecModel);
          // markerModel = new ImplementedMarkerModel(
          //     markerOpt, this, ecModel
          // );
          util["extend"](markerModel, {
            mainType: this.mainType,
            // Use the same series index and name
            seriesIndex: seriesModel.seriesIndex,
            name: seriesModel.name,
            createdBySelf: true
          });
          markerModel.__hostSeries = seriesModel;
        } else {
          markerModel._mergeOption(markerOpt, ecModel, true);
        }
        MarkerModel_inner(seriesModel)[componentType] = markerModel;
      }, this);
    }
  };
  MarkerModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {
    var data = this.getData();
    var value = this.getRawValue(dataIndex);
    var itemName = data.getName(dataIndex);
    return createTooltipMarkup('section', {
      header: this.name,
      blocks: [createTooltipMarkup('nameValue', {
        name: itemName,
        value: value,
        noName: !itemName,
        noValue: value == null
      })]
    });
  };
  MarkerModel.prototype.getData = function () {
    return this._data;
  };
  MarkerModel.prototype.setData = function (data) {
    this._data = data;
  };
  MarkerModel.prototype.getDataParams = function (dataIndex, dataType) {
    var params = dataFormat_DataFormatMixin.prototype.getDataParams.call(this, dataIndex, dataType);
    var hostSeries = this.__hostSeries;
    if (hostSeries) {
      params.seriesId = hostSeries.id;
      params.seriesName = hostSeries.name;
      params.seriesType = hostSeries.subType;
    }
    return params;
  };
  MarkerModel.getMarkerModelFromSeries = function (seriesModel,
  // Support three types of markers. Strict check.
  componentType) {
    return MarkerModel_inner(seriesModel)[componentType];
  };
  MarkerModel.type = 'marker';
  MarkerModel.dependencies = ['series', 'grid', 'polar', 'geo'];
  return MarkerModel;
}(Component);
util["mixin"](MarkerModel_MarkerModel, dataFormat_DataFormatMixin.prototype);
/* harmony default export */ var marker_MarkerModel = (MarkerModel_MarkerModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkPointModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var MarkPointModel_MarkPointModel = /** @class */function (_super) {
  __extends(MarkPointModel, _super);
  function MarkPointModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkPointModel.type;
    return _this;
  }
  MarkPointModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {
    return new MarkPointModel(markerOpt, masterMarkerModel, ecModel);
  };
  MarkPointModel.type = 'markPoint';
  MarkPointModel.defaultOption = {
    // zlevel: 0,
    z: 5,
    symbol: 'pin',
    symbolSize: 50,
    // symbolRotate: 0,
    // symbolOffset: [0, 0]
    tooltip: {
      trigger: 'item'
    },
    label: {
      show: true,
      position: 'inside'
    },
    itemStyle: {
      borderWidth: 2
    },
    emphasis: {
      label: {
        show: true
      }
    }
  };
  return MarkPointModel;
}(marker_MarkerModel);
/* harmony default export */ var marker_MarkPointModel = (MarkPointModel_MarkPointModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/markerHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function hasXOrY(item) {
  return !(isNaN(parseFloat(item.x)) && isNaN(parseFloat(item.y)));
}
function hasXAndY(item) {
  return !isNaN(parseFloat(item.x)) && !isNaN(parseFloat(item.y));
}
function markerTypeCalculatorWithExtent(markerType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex) {
  var coordArr = [];
  var stacked = isDimensionStacked(data, targetDataDim /* , otherDataDim */);
  var calcDataDim = stacked ? data.getCalculationInfo('stackResultDimension') : targetDataDim;
  var value = numCalculate(data, calcDataDim, markerType);
  var dataIndex = data.indicesOfNearest(calcDataDim, value)[0];
  coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex);
  coordArr[targetCoordIndex] = data.get(calcDataDim, dataIndex);
  var coordArrValue = data.get(targetDataDim, dataIndex);
  // Make it simple, do not visit all stacked value to count precision.
  var precision = getPrecision(data.get(targetDataDim, dataIndex));
  precision = Math.min(precision, 20);
  if (precision >= 0) {
    coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision);
  }
  return [coordArr, coordArrValue];
}
// TODO Specified percent
var markerTypeCalculator = {
  min: Object(util["curry"])(markerTypeCalculatorWithExtent, 'min'),
  max: Object(util["curry"])(markerTypeCalculatorWithExtent, 'max'),
  average: Object(util["curry"])(markerTypeCalculatorWithExtent, 'average'),
  median: Object(util["curry"])(markerTypeCalculatorWithExtent, 'median')
};
/**
 * Transform markPoint data item to format used in List by do the following
 * 1. Calculate statistic like `max`, `min`, `average`
 * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array
 */
function dataTransform(seriesModel, item) {
  if (!item) {
    return;
  }
  var data = seriesModel.getData();
  var coordSys = seriesModel.coordinateSystem;
  var dims = coordSys && coordSys.dimensions;
  // 1. If not specify the position with pixel directly
  // 2. If `coord` is not a data array. Which uses `xAxis`,
  // `yAxis` to specify the coord on each dimension
  // parseFloat first because item.x and item.y can be percent string like '20%'
  if (!hasXAndY(item) && !Object(util["isArray"])(item.coord) && Object(util["isArray"])(dims)) {
    var axisInfo = markerHelper_getAxisInfo(item, data, coordSys, seriesModel);
    // Clone the option
    // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value
    item = Object(util["clone"])(item);
    if (item.type && markerTypeCalculator[item.type] && axisInfo.baseAxis && axisInfo.valueAxis) {
      var otherCoordIndex = Object(util["indexOf"])(dims, axisInfo.baseAxis.dim);
      var targetCoordIndex = Object(util["indexOf"])(dims, axisInfo.valueAxis.dim);
      var coordInfo = markerTypeCalculator[item.type](data, axisInfo.baseDataDim, axisInfo.valueDataDim, otherCoordIndex, targetCoordIndex);
      item.coord = coordInfo[0];
      // Force to use the value of calculated value.
      // let item use the value without stack.
      item.value = coordInfo[1];
    } else {
      // FIXME Only has one of xAxis and yAxis.
      item.coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis];
    }
  }
  // x y is provided
  if (item.coord == null || !Object(util["isArray"])(dims)) {
    item.coord = [];
  } else {
    // Each coord support max, min, average
    var coord = item.coord;
    for (var i = 0; i < 2; i++) {
      if (markerTypeCalculator[coord[i]]) {
        coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i]);
      }
    }
  }
  return item;
}
function markerHelper_getAxisInfo(item, data, coordSys, seriesModel) {
  var ret = {};
  if (item.valueIndex != null || item.valueDim != null) {
    ret.valueDataDim = item.valueIndex != null ? data.getDimension(item.valueIndex) : item.valueDim;
    ret.valueAxis = coordSys.getAxis(dataDimToCoordDim(seriesModel, ret.valueDataDim));
    ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis);
    ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);
  } else {
    ret.baseAxis = seriesModel.getBaseAxis();
    ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis);
    ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);
    ret.valueDataDim = data.mapDimension(ret.valueAxis.dim);
  }
  return ret;
}
function dataDimToCoordDim(seriesModel, dataDim) {
  var dimItem = seriesModel.getData().getDimensionInfo(dataDim);
  return dimItem && dimItem.coordDim;
}
/**
 * Filter data which is out of coordinateSystem range
 * [dataFilter description]
 */
function markerHelper_dataFilter(
// Currently only polar and cartesian has containData.
coordSys, item) {
  // Always return true if there is no coordSys
  return coordSys && coordSys.containData && item.coord && !hasXOrY(item) ? coordSys.containData(item.coord) : true;
}
function zoneFilter(
// Currently only polar and cartesian has containData.
coordSys, item1, item2) {
  // Always return true if there is no coordSys
  return coordSys && coordSys.containZone && item1.coord && item2.coord && !hasXOrY(item1) && !hasXOrY(item2) ? coordSys.containZone(item1.coord, item2.coord) : true;
}
function createMarkerDimValueGetter(inCoordSys, dims) {
  return inCoordSys ? function (item, dimName, dataIndex, dimIndex) {
    var rawVal = dimIndex < 2
    // x, y, radius, angle
    ? item.coord && item.coord[dimIndex] : item.value;
    return parseDataValue(rawVal, dims[dimIndex]);
  } : function (item, dimName, dataIndex, dimIndex) {
    return parseDataValue(item.value, dims[dimIndex]);
  };
}
function numCalculate(data, valueDataDim, type) {
  if (type === 'average') {
    var sum_1 = 0;
    var count_1 = 0;
    data.each(valueDataDim, function (val, idx) {
      if (!isNaN(val)) {
        sum_1 += val;
        count_1++;
      }
    });
    return sum_1 / count_1;
  } else if (type === 'median') {
    return data.getMedian(valueDataDim);
  } else {
    // max & min
    return data.getDataExtent(valueDataDim)[type === 'max' ? 1 : 0];
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkerView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/






var MarkerView_inner = makeInner();
var MarkerView_MarkerView = /** @class */function (_super) {
  __extends(MarkerView, _super);
  function MarkerView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkerView.type;
    return _this;
  }
  MarkerView.prototype.init = function () {
    this.markerGroupMap = Object(util["createHashMap"])();
  };
  MarkerView.prototype.render = function (markerModel, ecModel, api) {
    var _this = this;
    var markerGroupMap = this.markerGroupMap;
    markerGroupMap.each(function (item) {
      MarkerView_inner(item).keep = false;
    });
    ecModel.eachSeries(function (seriesModel) {
      var markerModel = marker_MarkerModel.getMarkerModelFromSeries(seriesModel, _this.type);
      markerModel && _this.renderSeries(seriesModel, markerModel, ecModel, api);
    });
    markerGroupMap.each(function (item) {
      !MarkerView_inner(item).keep && _this.group.remove(item.group);
    });
  };
  MarkerView.prototype.markKeep = function (drawGroup) {
    MarkerView_inner(drawGroup).keep = true;
  };
  MarkerView.prototype.toggleBlurSeries = function (seriesModelList, isBlur) {
    var _this = this;
    Object(util["each"])(seriesModelList, function (seriesModel) {
      var markerModel = marker_MarkerModel.getMarkerModelFromSeries(seriesModel, _this.type);
      if (markerModel) {
        var data = markerModel.getData();
        data.eachItemGraphicEl(function (el) {
          if (el) {
            isBlur ? enterBlur(el) : leaveBlur(el);
          }
        });
      }
    });
  };
  MarkerView.type = 'marker';
  return MarkerView;
}(view_Component);
/* harmony default export */ var marker_MarkerView = (MarkerView_MarkerView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkPointView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/










function updateMarkerLayout(mpData, seriesModel, api) {
  var coordSys = seriesModel.coordinateSystem;
  mpData.each(function (idx) {
    var itemModel = mpData.getItemModel(idx);
    var point;
    var xPx = number_parsePercent(itemModel.get('x'), api.getWidth());
    var yPx = number_parsePercent(itemModel.get('y'), api.getHeight());
    if (!isNaN(xPx) && !isNaN(yPx)) {
      point = [xPx, yPx];
    }
    // Chart like bar may have there own marker positioning logic
    else if (seriesModel.getMarkerPosition) {
      // Use the getMarkerPosition
      point = seriesModel.getMarkerPosition(mpData.getValues(mpData.dimensions, idx));
    } else if (coordSys) {
      var x = mpData.get(coordSys.dimensions[0], idx);
      var y = mpData.get(coordSys.dimensions[1], idx);
      point = coordSys.dataToPoint([x, y]);
    }
    // Use x, y if has any
    if (!isNaN(xPx)) {
      point[0] = xPx;
    }
    if (!isNaN(yPx)) {
      point[1] = yPx;
    }
    mpData.setItemLayout(idx, point);
  });
}
var MarkPointView_MarkPointView = /** @class */function (_super) {
  __extends(MarkPointView, _super);
  function MarkPointView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkPointView.type;
    return _this;
  }
  MarkPointView.prototype.updateTransform = function (markPointModel, ecModel, api) {
    ecModel.eachSeries(function (seriesModel) {
      var mpModel = marker_MarkerModel.getMarkerModelFromSeries(seriesModel, 'markPoint');
      if (mpModel) {
        updateMarkerLayout(mpModel.getData(), seriesModel, api);
        this.markerGroupMap.get(seriesModel.id).updateLayout();
      }
    }, this);
  };
  MarkPointView.prototype.renderSeries = function (seriesModel, mpModel, ecModel, api) {
    var coordSys = seriesModel.coordinateSystem;
    var seriesId = seriesModel.id;
    var seriesData = seriesModel.getData();
    var symbolDrawMap = this.markerGroupMap;
    var symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new helper_SymbolDraw());
    var mpData = createData(coordSys, seriesModel, mpModel);
    // FIXME
    mpModel.setData(mpData);
    updateMarkerLayout(mpModel.getData(), seriesModel, api);
    mpData.each(function (idx) {
      var itemModel = mpData.getItemModel(idx);
      var symbol = itemModel.getShallow('symbol');
      var symbolSize = itemModel.getShallow('symbolSize');
      var symbolRotate = itemModel.getShallow('symbolRotate');
      var symbolOffset = itemModel.getShallow('symbolOffset');
      var symbolKeepAspect = itemModel.getShallow('symbolKeepAspect');
      // TODO: refactor needed: single data item should not support callback function
      if (Object(util["isFunction"])(symbol) || Object(util["isFunction"])(symbolSize) || Object(util["isFunction"])(symbolRotate) || Object(util["isFunction"])(symbolOffset)) {
        var rawIdx = mpModel.getRawValue(idx);
        var dataParams = mpModel.getDataParams(idx);
        if (Object(util["isFunction"])(symbol)) {
          symbol = symbol(rawIdx, dataParams);
        }
        if (Object(util["isFunction"])(symbolSize)) {
          // FIXME 这里不兼容 ECharts 2.x，2.x 貌似参数是整个数据？
          symbolSize = symbolSize(rawIdx, dataParams);
        }
        if (Object(util["isFunction"])(symbolRotate)) {
          symbolRotate = symbolRotate(rawIdx, dataParams);
        }
        if (Object(util["isFunction"])(symbolOffset)) {
          symbolOffset = symbolOffset(rawIdx, dataParams);
        }
      }
      var style = itemModel.getModel('itemStyle').getItemStyle();
      var color = getVisualFromData(seriesData, 'color');
      if (!style.fill) {
        style.fill = color;
      }
      mpData.setItemVisual(idx, {
        symbol: symbol,
        symbolSize: symbolSize,
        symbolRotate: symbolRotate,
        symbolOffset: symbolOffset,
        symbolKeepAspect: symbolKeepAspect,
        style: style
      });
    });
    // TODO Text are wrong
    symbolDraw.updateData(mpData);
    this.group.add(symbolDraw.group);
    // Set host model for tooltip
    // FIXME
    mpData.eachItemGraphicEl(function (el) {
      el.traverse(function (child) {
        getECData(child).dataModel = mpModel;
      });
    });
    this.markKeep(symbolDraw);
    symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent');
  };
  MarkPointView.type = 'markPoint';
  return MarkPointView;
}(marker_MarkerView);
function createData(coordSys, seriesModel, mpModel) {
  var coordDimsInfos;
  if (coordSys) {
    coordDimsInfos = Object(util["map"])(coordSys && coordSys.dimensions, function (coordDim) {
      var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {};
      // In map series data don't have lng and lat dimension. Fallback to same with coordSys
      return Object(util["extend"])(Object(util["extend"])({}, info), {
        name: coordDim,
        // DON'T use ordinalMeta to parse and collect ordinal.
        ordinalMeta: null
      });
    });
  } else {
    coordDimsInfos = [{
      name: 'value',
      type: 'float'
    }];
  }
  var mpData = new data_SeriesData(coordDimsInfos, mpModel);
  var dataOpt = Object(util["map"])(mpModel.get('data'), Object(util["curry"])(dataTransform, seriesModel));
  if (coordSys) {
    dataOpt = Object(util["filter"])(dataOpt, Object(util["curry"])(markerHelper_dataFilter, coordSys));
  }
  var dimValueGetter = createMarkerDimValueGetter(!!coordSys, coordDimsInfos);
  mpData.initData(dataOpt, null, dimValueGetter);
  return mpData;
}
/* harmony default export */ var marker_MarkPointView = (MarkPointView_MarkPointView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/installMarkPoint.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */




function installMarkPoint_install(registers) {
  registers.registerComponentModel(marker_MarkPointModel);
  registers.registerComponentView(marker_MarkPointView);
  registers.registerPreprocessor(function (opt) {
    if (checkMarkerInSeries(opt.series, 'markPoint')) {
      // Make sure markPoint component is enabled
      opt.markPoint = opt.markPoint || {};
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkLineModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var MarkLineModel_MarkLineModel = /** @class */function (_super) {
  __extends(MarkLineModel, _super);
  function MarkLineModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkLineModel.type;
    return _this;
  }
  MarkLineModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {
    return new MarkLineModel(markerOpt, masterMarkerModel, ecModel);
  };
  MarkLineModel.type = 'markLine';
  MarkLineModel.defaultOption = {
    // zlevel: 0,
    z: 5,
    symbol: ['circle', 'arrow'],
    symbolSize: [8, 16],
    // symbolRotate: 0,
    symbolOffset: 0,
    precision: 2,
    tooltip: {
      trigger: 'item'
    },
    label: {
      show: true,
      position: 'end',
      distance: 5
    },
    lineStyle: {
      type: 'dashed'
    },
    emphasis: {
      label: {
        show: true
      },
      lineStyle: {
        width: 3
      }
    },
    animationEasing: 'linear'
  };
  return MarkLineModel;
}(marker_MarkerModel);
/* harmony default export */ var marker_MarkLineModel = (MarkLineModel_MarkLineModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkLineView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/













var MarkLineView_inner = makeInner();
var markLineTransform = function (seriesModel, coordSys, mlModel, item) {
  var data = seriesModel.getData();
  var itemArray;
  if (!Object(util["isArray"])(item)) {
    // Special type markLine like 'min', 'max', 'average', 'median'
    var mlType = item.type;
    if (mlType === 'min' || mlType === 'max' || mlType === 'average' || mlType === 'median'
    // In case
    // data: [{
    //   yAxis: 10
    // }]
    || item.xAxis != null || item.yAxis != null) {
      var valueAxis = void 0;
      var value = void 0;
      if (item.yAxis != null || item.xAxis != null) {
        valueAxis = coordSys.getAxis(item.yAxis != null ? 'y' : 'x');
        value = Object(util["retrieve"])(item.yAxis, item.xAxis);
      } else {
        var axisInfo = markerHelper_getAxisInfo(item, data, coordSys, seriesModel);
        valueAxis = axisInfo.valueAxis;
        var valueDataDim = getStackedDimension(data, axisInfo.valueDataDim);
        value = numCalculate(data, valueDataDim, mlType);
      }
      var valueIndex = valueAxis.dim === 'x' ? 0 : 1;
      var baseIndex = 1 - valueIndex;
      // Normized to 2d data with start and end point
      var mlFrom = Object(util["clone"])(item);
      var mlTo = {
        coord: []
      };
      mlFrom.type = null;
      mlFrom.coord = [];
      mlFrom.coord[baseIndex] = -Infinity;
      mlTo.coord[baseIndex] = Infinity;
      var precision = mlModel.get('precision');
      if (precision >= 0 && Object(util["isNumber"])(value)) {
        value = +value.toFixed(Math.min(precision, 20));
      }
      mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value;
      itemArray = [mlFrom, mlTo, {
        type: mlType,
        valueIndex: item.valueIndex,
        // Force to use the value of calculated value.
        value: value
      }];
    } else {
      // Invalid data
      if (false) {}
      itemArray = [];
    }
  } else {
    itemArray = item;
  }
  var normalizedItem = [dataTransform(seriesModel, itemArray[0]), dataTransform(seriesModel, itemArray[1]), Object(util["extend"])({}, itemArray[2])];
  // Avoid line data type is extended by from(to) data type
  normalizedItem[2].type = normalizedItem[2].type || null;
  // Merge from option and to option into line option
  Object(util["merge"])(normalizedItem[2], normalizedItem[0]);
  Object(util["merge"])(normalizedItem[2], normalizedItem[1]);
  return normalizedItem;
};
function isInfinity(val) {
  return !isNaN(val) && !isFinite(val);
}
// If a markLine has one dim
function ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) {
  var otherDimIndex = 1 - dimIndex;
  var dimName = coordSys.dimensions[dimIndex];
  return isInfinity(fromCoord[otherDimIndex]) && isInfinity(toCoord[otherDimIndex]) && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]);
}
function markLineFilter(coordSys, item) {
  if (coordSys.type === 'cartesian2d') {
    var fromCoord = item[0].coord;
    var toCoord = item[1].coord;
    // In case
    // {
    //  markLine: {
    //    data: [{ yAxis: 2 }]
    //  }
    // }
    if (fromCoord && toCoord && (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys))) {
      return true;
    }
  }
  return markerHelper_dataFilter(coordSys, item[0]) && markerHelper_dataFilter(coordSys, item[1]);
}
function updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api) {
  var coordSys = seriesModel.coordinateSystem;
  var itemModel = data.getItemModel(idx);
  var point;
  var xPx = number_parsePercent(itemModel.get('x'), api.getWidth());
  var yPx = number_parsePercent(itemModel.get('y'), api.getHeight());
  if (!isNaN(xPx) && !isNaN(yPx)) {
    point = [xPx, yPx];
  } else {
    // Chart like bar may have there own marker positioning logic
    if (seriesModel.getMarkerPosition) {
      // Use the getMarkerPosition
      point = seriesModel.getMarkerPosition(data.getValues(data.dimensions, idx));
    } else {
      var dims = coordSys.dimensions;
      var x = data.get(dims[0], idx);
      var y = data.get(dims[1], idx);
      point = coordSys.dataToPoint([x, y]);
    }
    // Expand line to the edge of grid if value on one axis is Inifnity
    // In case
    //  markLine: {
    //    data: [{
    //      yAxis: 2
    //      // or
    //      type: 'average'
    //    }]
    //  }
    if (isCoordinateSystemType(coordSys, 'cartesian2d')) {
      // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug
      var xAxis = coordSys.getAxis('x');
      var yAxis = coordSys.getAxis('y');
      var dims = coordSys.dimensions;
      if (isInfinity(data.get(dims[0], idx))) {
        point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]);
      } else if (isInfinity(data.get(dims[1], idx))) {
        point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]);
      }
    }
    // Use x, y if has any
    if (!isNaN(xPx)) {
      point[0] = xPx;
    }
    if (!isNaN(yPx)) {
      point[1] = yPx;
    }
  }
  data.setItemLayout(idx, point);
}
var MarkLineView_MarkLineView = /** @class */function (_super) {
  __extends(MarkLineView, _super);
  function MarkLineView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkLineView.type;
    return _this;
  }
  MarkLineView.prototype.updateTransform = function (markLineModel, ecModel, api) {
    ecModel.eachSeries(function (seriesModel) {
      var mlModel = marker_MarkerModel.getMarkerModelFromSeries(seriesModel, 'markLine');
      if (mlModel) {
        var mlData_1 = mlModel.getData();
        var fromData_1 = MarkLineView_inner(mlModel).from;
        var toData_1 = MarkLineView_inner(mlModel).to;
        // Update visual and layout of from symbol and to symbol
        fromData_1.each(function (idx) {
          updateSingleMarkerEndLayout(fromData_1, idx, true, seriesModel, api);
          updateSingleMarkerEndLayout(toData_1, idx, false, seriesModel, api);
        });
        // Update layout of line
        mlData_1.each(function (idx) {
          mlData_1.setItemLayout(idx, [fromData_1.getItemLayout(idx), toData_1.getItemLayout(idx)]);
        });
        this.markerGroupMap.get(seriesModel.id).updateLayout();
      }
    }, this);
  };
  MarkLineView.prototype.renderSeries = function (seriesModel, mlModel, ecModel, api) {
    var coordSys = seriesModel.coordinateSystem;
    var seriesId = seriesModel.id;
    var seriesData = seriesModel.getData();
    var lineDrawMap = this.markerGroupMap;
    var lineDraw = lineDrawMap.get(seriesId) || lineDrawMap.set(seriesId, new helper_LineDraw());
    this.group.add(lineDraw.group);
    var mlData = MarkLineView_createList(coordSys, seriesModel, mlModel);
    var fromData = mlData.from;
    var toData = mlData.to;
    var lineData = mlData.line;
    MarkLineView_inner(mlModel).from = fromData;
    MarkLineView_inner(mlModel).to = toData;
    // Line data for tooltip and formatter
    mlModel.setData(lineData);
    // TODO
    // Functionally, `symbolSize` & `symbolOffset` can also be 2D array now.
    // But the related logic and type definition are not finished yet.
    // Finish it if required
    var symbolType = mlModel.get('symbol');
    var symbolSize = mlModel.get('symbolSize');
    var symbolRotate = mlModel.get('symbolRotate');
    var symbolOffset = mlModel.get('symbolOffset');
    // TODO: support callback function like markPoint
    if (!Object(util["isArray"])(symbolType)) {
      symbolType = [symbolType, symbolType];
    }
    if (!Object(util["isArray"])(symbolSize)) {
      symbolSize = [symbolSize, symbolSize];
    }
    if (!Object(util["isArray"])(symbolRotate)) {
      symbolRotate = [symbolRotate, symbolRotate];
    }
    if (!Object(util["isArray"])(symbolOffset)) {
      symbolOffset = [symbolOffset, symbolOffset];
    }
    // Update visual and layout of from symbol and to symbol
    mlData.from.each(function (idx) {
      updateDataVisualAndLayout(fromData, idx, true);
      updateDataVisualAndLayout(toData, idx, false);
    });
    // Update visual and layout of line
    lineData.each(function (idx) {
      var lineStyle = lineData.getItemModel(idx).getModel('lineStyle').getLineStyle();
      // lineData.setItemVisual(idx, {
      //     color: lineColor || fromData.getItemVisual(idx, 'color')
      // });
      lineData.setItemLayout(idx, [fromData.getItemLayout(idx), toData.getItemLayout(idx)]);
      if (lineStyle.stroke == null) {
        lineStyle.stroke = fromData.getItemVisual(idx, 'style').fill;
      }
      lineData.setItemVisual(idx, {
        fromSymbolKeepAspect: fromData.getItemVisual(idx, 'symbolKeepAspect'),
        fromSymbolOffset: fromData.getItemVisual(idx, 'symbolOffset'),
        fromSymbolRotate: fromData.getItemVisual(idx, 'symbolRotate'),
        fromSymbolSize: fromData.getItemVisual(idx, 'symbolSize'),
        fromSymbol: fromData.getItemVisual(idx, 'symbol'),
        toSymbolKeepAspect: toData.getItemVisual(idx, 'symbolKeepAspect'),
        toSymbolOffset: toData.getItemVisual(idx, 'symbolOffset'),
        toSymbolRotate: toData.getItemVisual(idx, 'symbolRotate'),
        toSymbolSize: toData.getItemVisual(idx, 'symbolSize'),
        toSymbol: toData.getItemVisual(idx, 'symbol'),
        style: lineStyle
      });
    });
    lineDraw.updateData(lineData);
    // Set host model for tooltip
    // FIXME
    mlData.line.eachItemGraphicEl(function (el) {
      getECData(el).dataModel = mlModel;
      el.traverse(function (child) {
        getECData(child).dataModel = mlModel;
      });
    });
    function updateDataVisualAndLayout(data, idx, isFrom) {
      var itemModel = data.getItemModel(idx);
      updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api);
      var style = itemModel.getModel('itemStyle').getItemStyle();
      if (style.fill == null) {
        style.fill = getVisualFromData(seriesData, 'color');
      }
      data.setItemVisual(idx, {
        symbolKeepAspect: itemModel.get('symbolKeepAspect'),
        // `0` should be considered as a valid value, so use `retrieve2` instead of `||`
        symbolOffset: Object(util["retrieve2"])(itemModel.get('symbolOffset', true), symbolOffset[isFrom ? 0 : 1]),
        symbolRotate: Object(util["retrieve2"])(itemModel.get('symbolRotate', true), symbolRotate[isFrom ? 0 : 1]),
        // TODO: when 2d array is supported, it should ignore parent
        symbolSize: Object(util["retrieve2"])(itemModel.get('symbolSize'), symbolSize[isFrom ? 0 : 1]),
        symbol: Object(util["retrieve2"])(itemModel.get('symbol', true), symbolType[isFrom ? 0 : 1]),
        style: style
      });
    }
    this.markKeep(lineDraw);
    lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent');
  };
  MarkLineView.type = 'markLine';
  return MarkLineView;
}(marker_MarkerView);
function MarkLineView_createList(coordSys, seriesModel, mlModel) {
  var coordDimsInfos;
  if (coordSys) {
    coordDimsInfos = Object(util["map"])(coordSys && coordSys.dimensions, function (coordDim) {
      var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {};
      // In map series data don't have lng and lat dimension. Fallback to same with coordSys
      return Object(util["extend"])(Object(util["extend"])({}, info), {
        name: coordDim,
        // DON'T use ordinalMeta to parse and collect ordinal.
        ordinalMeta: null
      });
    });
  } else {
    coordDimsInfos = [{
      name: 'value',
      type: 'float'
    }];
  }
  var fromData = new data_SeriesData(coordDimsInfos, mlModel);
  var toData = new data_SeriesData(coordDimsInfos, mlModel);
  // No dimensions
  var lineData = new data_SeriesData([], mlModel);
  var optData = Object(util["map"])(mlModel.get('data'), Object(util["curry"])(markLineTransform, seriesModel, coordSys, mlModel));
  if (coordSys) {
    optData = Object(util["filter"])(optData, Object(util["curry"])(markLineFilter, coordSys));
  }
  var dimValueGetter = createMarkerDimValueGetter(!!coordSys, coordDimsInfos);
  fromData.initData(Object(util["map"])(optData, function (item) {
    return item[0];
  }), null, dimValueGetter);
  toData.initData(Object(util["map"])(optData, function (item) {
    return item[1];
  }), null, dimValueGetter);
  lineData.initData(Object(util["map"])(optData, function (item) {
    return item[2];
  }));
  lineData.hasItemOption = true;
  return {
    from: fromData,
    to: toData,
    line: lineData
  };
}
/* harmony default export */ var marker_MarkLineView = (MarkLineView_MarkLineView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/installMarkLine.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */




function installMarkLine_install(registers) {
  registers.registerComponentModel(marker_MarkLineModel);
  registers.registerComponentView(marker_MarkLineView);
  registers.registerPreprocessor(function (opt) {
    if (checkMarkerInSeries(opt.series, 'markLine')) {
      // Make sure markLine component is enabled
      opt.markLine = opt.markLine || {};
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkAreaModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var MarkAreaModel_MarkAreaModel = /** @class */function (_super) {
  __extends(MarkAreaModel, _super);
  function MarkAreaModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkAreaModel.type;
    return _this;
  }
  MarkAreaModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {
    return new MarkAreaModel(markerOpt, masterMarkerModel, ecModel);
  };
  MarkAreaModel.type = 'markArea';
  MarkAreaModel.defaultOption = {
    // zlevel: 0,
    // PENDING
    z: 1,
    tooltip: {
      trigger: 'item'
    },
    // markArea should fixed on the coordinate system
    animation: false,
    label: {
      show: true,
      position: 'top'
    },
    itemStyle: {
      // color and borderColor default to use color from series
      // color: 'auto'
      // borderColor: 'auto'
      borderWidth: 0
    },
    emphasis: {
      label: {
        show: true,
        position: 'top'
      }
    }
  };
  return MarkAreaModel;
}(marker_MarkerModel);
/* harmony default export */ var marker_MarkAreaModel = (MarkAreaModel_MarkAreaModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkAreaView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// TODO Optimize on polar















var MarkAreaView_inner = makeInner();
var markAreaTransform = function (seriesModel, coordSys, maModel, item) {
  // item may be null
  var item0 = item[0];
  var item1 = item[1];
  if (!item0 || !item1) {
    return;
  }
  var lt = dataTransform(seriesModel, item0);
  var rb = dataTransform(seriesModel, item1);
  // FIXME make sure lt is less than rb
  var ltCoord = lt.coord;
  var rbCoord = rb.coord;
  ltCoord[0] = Object(util["retrieve"])(ltCoord[0], -Infinity);
  ltCoord[1] = Object(util["retrieve"])(ltCoord[1], -Infinity);
  rbCoord[0] = Object(util["retrieve"])(rbCoord[0], Infinity);
  rbCoord[1] = Object(util["retrieve"])(rbCoord[1], Infinity);
  // Merge option into one
  var result = Object(util["mergeAll"])([{}, lt, rb]);
  result.coord = [lt.coord, rb.coord];
  result.x0 = lt.x;
  result.y0 = lt.y;
  result.x1 = rb.x;
  result.y1 = rb.y;
  return result;
};
function MarkAreaView_isInfinity(val) {
  return !isNaN(val) && !isFinite(val);
}
// If a markArea has one dim
function ifMarkAreaHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) {
  var otherDimIndex = 1 - dimIndex;
  return MarkAreaView_isInfinity(fromCoord[otherDimIndex]) && MarkAreaView_isInfinity(toCoord[otherDimIndex]);
}
function markAreaFilter(coordSys, item) {
  var fromCoord = item.coord[0];
  var toCoord = item.coord[1];
  var item0 = {
    coord: fromCoord,
    x: item.x0,
    y: item.y0
  };
  var item1 = {
    coord: toCoord,
    x: item.x1,
    y: item.y1
  };
  if (isCoordinateSystemType(coordSys, 'cartesian2d')) {
    // In case
    // {
    //  markArea: {
    //    data: [{ yAxis: 2 }]
    //  }
    // }
    if (fromCoord && toCoord && (ifMarkAreaHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkAreaHasOnlyDim(0, fromCoord, toCoord, coordSys))) {
      return true;
    }
    // Directly returning true may also do the work,
    // because markArea will not be shown automatically
    // when it's not included in coordinate system.
    // But filtering ahead can avoid keeping rendering markArea
    // when there are too many of them.
    return zoneFilter(coordSys, item0, item1);
  }
  return markerHelper_dataFilter(coordSys, item0) || markerHelper_dataFilter(coordSys, item1);
}
// dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0']
function getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) {
  var coordSys = seriesModel.coordinateSystem;
  var itemModel = data.getItemModel(idx);
  var point;
  var xPx = number_parsePercent(itemModel.get(dims[0]), api.getWidth());
  var yPx = number_parsePercent(itemModel.get(dims[1]), api.getHeight());
  if (!isNaN(xPx) && !isNaN(yPx)) {
    point = [xPx, yPx];
  } else {
    // Chart like bar may have there own marker positioning logic
    if (seriesModel.getMarkerPosition) {
      // Consider the case that user input the right-bottom point first
      // Pick the larger x and y as 'x1' and 'y1'
      var pointValue0 = data.getValues(['x0', 'y0'], idx);
      var pointValue1 = data.getValues(['x1', 'y1'], idx);
      var clampPointValue0 = coordSys.clampData(pointValue0);
      var clampPointValue1 = coordSys.clampData(pointValue1);
      var pointValue = [];
      if (dims[0] === 'x0') {
        pointValue[0] = clampPointValue0[0] > clampPointValue1[0] ? pointValue1[0] : pointValue0[0];
      } else {
        pointValue[0] = clampPointValue0[0] > clampPointValue1[0] ? pointValue0[0] : pointValue1[0];
      }
      if (dims[1] === 'y0') {
        pointValue[1] = clampPointValue0[1] > clampPointValue1[1] ? pointValue1[1] : pointValue0[1];
      } else {
        pointValue[1] = clampPointValue0[1] > clampPointValue1[1] ? pointValue0[1] : pointValue1[1];
      }
      // Use the getMarkerPosition
      point = seriesModel.getMarkerPosition(pointValue, dims, true);
    } else {
      var x = data.get(dims[0], idx);
      var y = data.get(dims[1], idx);
      var pt = [x, y];
      coordSys.clampData && coordSys.clampData(pt, pt);
      point = coordSys.dataToPoint(pt, true);
    }
    if (isCoordinateSystemType(coordSys, 'cartesian2d')) {
      // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug
      var xAxis = coordSys.getAxis('x');
      var yAxis = coordSys.getAxis('y');
      var x = data.get(dims[0], idx);
      var y = data.get(dims[1], idx);
      if (MarkAreaView_isInfinity(x)) {
        point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);
      } else if (MarkAreaView_isInfinity(y)) {
        point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);
      }
    }
    // Use x, y if has any
    if (!isNaN(xPx)) {
      point[0] = xPx;
    }
    if (!isNaN(yPx)) {
      point[1] = yPx;
    }
  }
  return point;
}
var dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']];
var MarkAreaView_MarkAreaView = /** @class */function (_super) {
  __extends(MarkAreaView, _super);
  function MarkAreaView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = MarkAreaView.type;
    return _this;
  }
  MarkAreaView.prototype.updateTransform = function (markAreaModel, ecModel, api) {
    ecModel.eachSeries(function (seriesModel) {
      var maModel = marker_MarkerModel.getMarkerModelFromSeries(seriesModel, 'markArea');
      if (maModel) {
        var areaData_1 = maModel.getData();
        areaData_1.each(function (idx) {
          var points = Object(util["map"])(dimPermutations, function (dim) {
            return getSingleMarkerEndPoint(areaData_1, idx, dim, seriesModel, api);
          });
          // Layout
          areaData_1.setItemLayout(idx, points);
          var el = areaData_1.getItemGraphicEl(idx);
          el.setShape('points', points);
        });
      }
    }, this);
  };
  MarkAreaView.prototype.renderSeries = function (seriesModel, maModel, ecModel, api) {
    var coordSys = seriesModel.coordinateSystem;
    var seriesId = seriesModel.id;
    var seriesData = seriesModel.getData();
    var areaGroupMap = this.markerGroupMap;
    var polygonGroup = areaGroupMap.get(seriesId) || areaGroupMap.set(seriesId, {
      group: new graphic_Group()
    });
    this.group.add(polygonGroup.group);
    this.markKeep(polygonGroup);
    var areaData = MarkAreaView_createList(coordSys, seriesModel, maModel);
    // Line data for tooltip and formatter
    maModel.setData(areaData);
    // Update visual and layout of line
    areaData.each(function (idx) {
      // Layout
      var points = Object(util["map"])(dimPermutations, function (dim) {
        return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);
      });
      var xAxisScale = coordSys.getAxis('x').scale;
      var yAxisScale = coordSys.getAxis('y').scale;
      var xAxisExtent = xAxisScale.getExtent();
      var yAxisExtent = yAxisScale.getExtent();
      var xPointExtent = [xAxisScale.parse(areaData.get('x0', idx)), xAxisScale.parse(areaData.get('x1', idx))];
      var yPointExtent = [yAxisScale.parse(areaData.get('y0', idx)), yAxisScale.parse(areaData.get('y1', idx))];
      asc(xPointExtent);
      asc(yPointExtent);
      var overlapped = !(xAxisExtent[0] > xPointExtent[1] || xAxisExtent[1] < xPointExtent[0] || yAxisExtent[0] > yPointExtent[1] || yAxisExtent[1] < yPointExtent[0]);
      // If none of the area is inside coordSys, allClipped is set to be true
      // in layout so that label will not be displayed. See #12591
      var allClipped = !overlapped;
      areaData.setItemLayout(idx, {
        points: points,
        allClipped: allClipped
      });
      var style = areaData.getItemModel(idx).getModel('itemStyle').getItemStyle();
      var color = getVisualFromData(seriesData, 'color');
      if (!style.fill) {
        style.fill = color;
        if (Object(util["isString"])(style.fill)) {
          style.fill = tool_color["modifyAlpha"](style.fill, 0.4);
        }
      }
      if (!style.stroke) {
        style.stroke = color;
      }
      // Visual
      areaData.setItemVisual(idx, 'style', style);
    });
    areaData.diff(MarkAreaView_inner(polygonGroup).data).add(function (idx) {
      var layout = areaData.getItemLayout(idx);
      if (!layout.allClipped) {
        var polygon = new shape_Polygon({
          shape: {
            points: layout.points
          }
        });
        areaData.setItemGraphicEl(idx, polygon);
        polygonGroup.group.add(polygon);
      }
    }).update(function (newIdx, oldIdx) {
      var polygon = MarkAreaView_inner(polygonGroup).data.getItemGraphicEl(oldIdx);
      var layout = areaData.getItemLayout(newIdx);
      if (!layout.allClipped) {
        if (polygon) {
          updateProps(polygon, {
            shape: {
              points: layout.points
            }
          }, maModel, newIdx);
        } else {
          polygon = new shape_Polygon({
            shape: {
              points: layout.points
            }
          });
        }
        areaData.setItemGraphicEl(newIdx, polygon);
        polygonGroup.group.add(polygon);
      } else if (polygon) {
        polygonGroup.group.remove(polygon);
      }
    }).remove(function (idx) {
      var polygon = MarkAreaView_inner(polygonGroup).data.getItemGraphicEl(idx);
      polygonGroup.group.remove(polygon);
    }).execute();
    areaData.eachItemGraphicEl(function (polygon, idx) {
      var itemModel = areaData.getItemModel(idx);
      var style = areaData.getItemVisual(idx, 'style');
      polygon.useStyle(areaData.getItemVisual(idx, 'style'));
      setLabelStyle(polygon, getLabelStatesModels(itemModel), {
        labelFetcher: maModel,
        labelDataIndex: idx,
        defaultText: areaData.getName(idx) || '',
        inheritColor: Object(util["isString"])(style.fill) ? tool_color["modifyAlpha"](style.fill, 1) : '#000'
      });
      setStatesStylesFromModel(polygon, itemModel);
      toggleHoverEmphasis(polygon, null, null, itemModel.get(['emphasis', 'disabled']));
      getECData(polygon).dataModel = maModel;
    });
    MarkAreaView_inner(polygonGroup).data = areaData;
    polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent');
  };
  MarkAreaView.type = 'markArea';
  return MarkAreaView;
}(marker_MarkerView);
function MarkAreaView_createList(coordSys, seriesModel, maModel) {
  var areaData;
  var dataDims;
  var dims = ['x0', 'y0', 'x1', 'y1'];
  if (coordSys) {
    var coordDimsInfos_1 = Object(util["map"])(coordSys && coordSys.dimensions, function (coordDim) {
      var data = seriesModel.getData();
      var info = data.getDimensionInfo(data.mapDimension(coordDim)) || {};
      // In map series data don't have lng and lat dimension. Fallback to same with coordSys
      return Object(util["extend"])(Object(util["extend"])({}, info), {
        name: coordDim,
        // DON'T use ordinalMeta to parse and collect ordinal.
        ordinalMeta: null
      });
    });
    dataDims = Object(util["map"])(dims, function (dim, idx) {
      return {
        name: dim,
        type: coordDimsInfos_1[idx % 2].type
      };
    });
    areaData = new data_SeriesData(dataDims, maModel);
  } else {
    dataDims = [{
      name: 'value',
      type: 'float'
    }];
    areaData = new data_SeriesData(dataDims, maModel);
  }
  var optData = Object(util["map"])(maModel.get('data'), Object(util["curry"])(markAreaTransform, seriesModel, coordSys, maModel));
  if (coordSys) {
    optData = Object(util["filter"])(optData, Object(util["curry"])(markAreaFilter, coordSys));
  }
  var dimValueGetter = coordSys ? function (item, dimName, dataIndex, dimIndex) {
    // TODO should convert to ParsedValue?
    var rawVal = item.coord[Math.floor(dimIndex / 2)][dimIndex % 2];
    return parseDataValue(rawVal, dataDims[dimIndex]);
  } : function (item, dimName, dataIndex, dimIndex) {
    return parseDataValue(item.value, dataDims[dimIndex]);
  };
  areaData.initData(optData, null, dimValueGetter);
  areaData.hasItemOption = true;
  return areaData;
}
/* harmony default export */ var marker_MarkAreaView = (MarkAreaView_MarkAreaView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/installMarkArea.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function installMarkArea_install(registers) {
  registers.registerComponentModel(marker_MarkAreaModel);
  registers.registerComponentView(marker_MarkAreaView);
  registers.registerPreprocessor(function (opt) {
    if (checkMarkerInSeries(opt.series, 'markArea')) {
      // Make sure markArea component is enabled
      opt.markArea = opt.markArea || {};
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/LegendModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var getDefaultSelectorOptions = function (ecModel, type) {
  if (type === 'all') {
    return {
      type: 'all',
      title: ecModel.getLocaleModel().get(['legend', 'selector', 'all'])
    };
  } else if (type === 'inverse') {
    return {
      type: 'inverse',
      title: ecModel.getLocaleModel().get(['legend', 'selector', 'inverse'])
    };
  }
};
var LegendModel_LegendModel = /** @class */function (_super) {
  __extends(LegendModel, _super);
  function LegendModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = LegendModel.type;
    _this.layoutMode = {
      type: 'box',
      // legend.width/height are maxWidth/maxHeight actually,
      // whereas real width/height is calculated by its content.
      // (Setting {left: 10, right: 10} does not make sense).
      // So consider the case:
      // `setOption({legend: {left: 10});`
      // then `setOption({legend: {right: 10});`
      // The previous `left` should be cleared by setting `ignoreSize`.
      ignoreSize: true
    };
    return _this;
  }
  LegendModel.prototype.init = function (option, parentModel, ecModel) {
    this.mergeDefaultAndTheme(option, ecModel);
    option.selected = option.selected || {};
    this._updateSelector(option);
  };
  LegendModel.prototype.mergeOption = function (option, ecModel) {
    _super.prototype.mergeOption.call(this, option, ecModel);
    this._updateSelector(option);
  };
  LegendModel.prototype._updateSelector = function (option) {
    var selector = option.selector;
    var ecModel = this.ecModel;
    if (selector === true) {
      selector = option.selector = ['all', 'inverse'];
    }
    if (util["isArray"](selector)) {
      util["each"](selector, function (item, index) {
        util["isString"](item) && (item = {
          type: item
        });
        selector[index] = util["merge"](item, getDefaultSelectorOptions(ecModel, item.type));
      });
    }
  };
  LegendModel.prototype.optionUpdated = function () {
    this._updateData(this.ecModel);
    var legendData = this._data;
    // If selectedMode is single, try to select one
    if (legendData[0] && this.get('selectedMode') === 'single') {
      var hasSelected = false;
      // If has any selected in option.selected
      for (var i = 0; i < legendData.length; i++) {
        var name_1 = legendData[i].get('name');
        if (this.isSelected(name_1)) {
          // Force to unselect others
          this.select(name_1);
          hasSelected = true;
          break;
        }
      }
      // Try select the first if selectedMode is single
      !hasSelected && this.select(legendData[0].get('name'));
    }
  };
  LegendModel.prototype._updateData = function (ecModel) {
    var potentialData = [];
    var availableNames = [];
    ecModel.eachRawSeries(function (seriesModel) {
      var seriesName = seriesModel.name;
      availableNames.push(seriesName);
      var isPotential;
      if (seriesModel.legendVisualProvider) {
        var provider = seriesModel.legendVisualProvider;
        var names = provider.getAllNames();
        if (!ecModel.isSeriesFiltered(seriesModel)) {
          availableNames = availableNames.concat(names);
        }
        if (names.length) {
          potentialData = potentialData.concat(names);
        } else {
          isPotential = true;
        }
      } else {
        isPotential = true;
      }
      if (isPotential && isNameSpecified(seriesModel)) {
        potentialData.push(seriesModel.name);
      }
    });
    /**
     * @type {Array.<string>}
     * @private
     */
    this._availableNames = availableNames;
    // If legend.data is not specified in option, use availableNames as data,
    // which is convenient for user preparing option.
    var rawData = this.get('data') || potentialData;
    var legendNameMap = util["createHashMap"]();
    var legendData = util["map"](rawData, function (dataItem) {
      // Can be string or number
      if (util["isString"](dataItem) || util["isNumber"](dataItem)) {
        dataItem = {
          name: dataItem
        };
      }
      if (legendNameMap.get(dataItem.name)) {
        // remove legend name duplicate
        return null;
      }
      legendNameMap.set(dataItem.name, true);
      return new model_Model(dataItem, this, this.ecModel);
    }, this);
    /**
     * @type {Array.<module:echarts/model/Model>}
     * @private
     */
    this._data = util["filter"](legendData, function (item) {
      return !!item;
    });
  };
  LegendModel.prototype.getData = function () {
    return this._data;
  };
  LegendModel.prototype.select = function (name) {
    var selected = this.option.selected;
    var selectedMode = this.get('selectedMode');
    if (selectedMode === 'single') {
      var data = this._data;
      util["each"](data, function (dataItem) {
        selected[dataItem.get('name')] = false;
      });
    }
    selected[name] = true;
  };
  LegendModel.prototype.unSelect = function (name) {
    if (this.get('selectedMode') !== 'single') {
      this.option.selected[name] = false;
    }
  };
  LegendModel.prototype.toggleSelected = function (name) {
    var selected = this.option.selected;
    // Default is true
    if (!selected.hasOwnProperty(name)) {
      selected[name] = true;
    }
    this[selected[name] ? 'unSelect' : 'select'](name);
  };
  LegendModel.prototype.allSelect = function () {
    var data = this._data;
    var selected = this.option.selected;
    util["each"](data, function (dataItem) {
      selected[dataItem.get('name', true)] = true;
    });
  };
  LegendModel.prototype.inverseSelect = function () {
    var data = this._data;
    var selected = this.option.selected;
    util["each"](data, function (dataItem) {
      var name = dataItem.get('name', true);
      // Initially, default value is true
      if (!selected.hasOwnProperty(name)) {
        selected[name] = true;
      }
      selected[name] = !selected[name];
    });
  };
  LegendModel.prototype.isSelected = function (name) {
    var selected = this.option.selected;
    return !(selected.hasOwnProperty(name) && !selected[name]) && util["indexOf"](this._availableNames, name) >= 0;
  };
  LegendModel.prototype.getOrient = function () {
    return this.get('orient') === 'vertical' ? {
      index: 1,
      name: 'vertical'
    } : {
      index: 0,
      name: 'horizontal'
    };
  };
  LegendModel.type = 'legend.plain';
  LegendModel.dependencies = ['series'];
  LegendModel.defaultOption = {
    // zlevel: 0,
    z: 4,
    show: true,
    orient: 'horizontal',
    left: 'center',
    // right: 'center',
    top: 0,
    // bottom: null,
    align: 'auto',
    backgroundColor: 'rgba(0,0,0,0)',
    borderColor: '#ccc',
    borderRadius: 0,
    borderWidth: 0,
    padding: 5,
    itemGap: 10,
    itemWidth: 25,
    itemHeight: 14,
    symbolRotate: 'inherit',
    symbolKeepAspect: true,
    inactiveColor: '#ccc',
    inactiveBorderColor: '#ccc',
    inactiveBorderWidth: 'auto',
    itemStyle: {
      color: 'inherit',
      opacity: 'inherit',
      borderColor: 'inherit',
      borderWidth: 'auto',
      borderCap: 'inherit',
      borderJoin: 'inherit',
      borderDashOffset: 'inherit',
      borderMiterLimit: 'inherit'
    },
    lineStyle: {
      width: 'auto',
      color: 'inherit',
      inactiveColor: '#ccc',
      inactiveWidth: 2,
      opacity: 'inherit',
      type: 'inherit',
      cap: 'inherit',
      join: 'inherit',
      dashOffset: 'inherit',
      miterLimit: 'inherit'
    },
    textStyle: {
      color: '#333'
    },
    selectedMode: true,
    selector: false,
    selectorLabel: {
      show: true,
      borderRadius: 10,
      padding: [3, 5, 3, 5],
      fontSize: 12,
      fontFamily: 'sans-serif',
      color: '#666',
      borderWidth: 1,
      borderColor: '#666'
    },
    emphasis: {
      selectorLabel: {
        show: true,
        color: '#eee',
        backgroundColor: '#666'
      }
    },
    selectorPosition: 'auto',
    selectorItemGap: 7,
    selectorButtonGap: 10,
    tooltip: {
      show: false
    }
  };
  return LegendModel;
}(Component);
/* harmony default export */ var legend_LegendModel = (LegendModel_LegendModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/LegendView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/












var curry = util["curry"];
var LegendView_each = util["each"];
var LegendView_Group = graphic_Group;
var LegendView_LegendView = /** @class */function (_super) {
  __extends(LegendView, _super);
  function LegendView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = LegendView.type;
    _this.newlineDisabled = false;
    return _this;
  }
  LegendView.prototype.init = function () {
    this.group.add(this._contentGroup = new LegendView_Group());
    this.group.add(this._selectorGroup = new LegendView_Group());
    this._isFirstRender = true;
  };
  /**
   * @protected
   */
  LegendView.prototype.getContentGroup = function () {
    return this._contentGroup;
  };
  /**
   * @protected
   */
  LegendView.prototype.getSelectorGroup = function () {
    return this._selectorGroup;
  };
  /**
   * @override
   */
  LegendView.prototype.render = function (legendModel, ecModel, api) {
    var isFirstRender = this._isFirstRender;
    this._isFirstRender = false;
    this.resetInner();
    if (!legendModel.get('show', true)) {
      return;
    }
    var itemAlign = legendModel.get('align');
    var orient = legendModel.get('orient');
    if (!itemAlign || itemAlign === 'auto') {
      itemAlign = legendModel.get('left') === 'right' && orient === 'vertical' ? 'right' : 'left';
    }
    // selector has been normalized to an array in model
    var selector = legendModel.get('selector', true);
    var selectorPosition = legendModel.get('selectorPosition', true);
    if (selector && (!selectorPosition || selectorPosition === 'auto')) {
      selectorPosition = orient === 'horizontal' ? 'end' : 'start';
    }
    this.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);
    // Perform layout.
    var positionInfo = legendModel.getBoxLayoutParams();
    var viewportSize = {
      width: api.getWidth(),
      height: api.getHeight()
    };
    var padding = legendModel.get('padding');
    var maxSize = getLayoutRect(positionInfo, viewportSize, padding);
    var mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition);
    // Place mainGroup, based on the calculated `mainRect`.
    var layoutRect = getLayoutRect(util["defaults"]({
      width: mainRect.width,
      height: mainRect.height
    }, positionInfo), viewportSize, padding);
    this.group.x = layoutRect.x - mainRect.x;
    this.group.y = layoutRect.y - mainRect.y;
    this.group.markRedraw();
    // Render background after group is layout.
    this.group.add(this._backgroundEl = makeBackground(mainRect, legendModel));
  };
  LegendView.prototype.resetInner = function () {
    this.getContentGroup().removeAll();
    this._backgroundEl && this.group.remove(this._backgroundEl);
    this.getSelectorGroup().removeAll();
  };
  LegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {
    var contentGroup = this.getContentGroup();
    var legendDrawnMap = util["createHashMap"]();
    var selectMode = legendModel.get('selectedMode');
    var excludeSeriesId = [];
    ecModel.eachRawSeries(function (seriesModel) {
      !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id);
    });
    LegendView_each(legendModel.getData(), function (legendItemModel, dataIndex) {
      var name = legendItemModel.get('name');
      // Use empty string or \n as a newline string
      if (!this.newlineDisabled && (name === '' || name === '\n')) {
        var g = new LegendView_Group();
        // @ts-ignore
        g.newline = true;
        contentGroup.add(g);
        return;
      }
      // Representitive series.
      var seriesModel = ecModel.getSeriesByName(name)[0];
      if (legendDrawnMap.get(name)) {
        // Have been drawn
        return;
      }
      // Legend to control series.
      if (seriesModel) {
        var data = seriesModel.getData();
        var lineVisualStyle = data.getVisual('legendLineStyle') || {};
        var legendIcon = data.getVisual('legendIcon');
        /**
         * `data.getVisual('style')` may be the color from the register
         * in series. For example, for line series,
         */
        var style = data.getVisual('style');
        var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, style, legendIcon, selectMode, api);
        itemGroup.on('click', curry(dispatchSelectAction, name, null, api, excludeSeriesId)).on('mouseover', curry(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId));
        if (ecModel.ssr) {
          itemGroup.eachChild(function (child) {
            var ecData = getECData(child);
            ecData.seriesIndex = seriesModel.seriesIndex;
            ecData.dataIndex = dataIndex;
            ecData.ssrType = 'legend';
          });
        }
        legendDrawnMap.set(name, true);
      } else {
        // Legend to control data. In pie and funnel.
        ecModel.eachRawSeries(function (seriesModel) {
          // In case multiple series has same data name
          if (legendDrawnMap.get(name)) {
            return;
          }
          if (seriesModel.legendVisualProvider) {
            var provider = seriesModel.legendVisualProvider;
            if (!provider.containName(name)) {
              return;
            }
            var idx = provider.indexOfName(name);
            var style = provider.getItemVisual(idx, 'style');
            var legendIcon = provider.getItemVisual(idx, 'legendIcon');
            var colorArr = Object(tool_color["parse"])(style.fill);
            // Color may be set to transparent in visualMap when data is out of range.
            // Do not show nothing.
            if (colorArr && colorArr[3] === 0) {
              colorArr[3] = 0.2;
              // TODO color is set to 0, 0, 0, 0. Should show correct RGBA
              style = util["extend"](util["extend"]({}, style), {
                fill: Object(tool_color["stringify"])(colorArr, 'rgba')
              });
            }
            var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, {}, style, legendIcon, selectMode, api);
            // FIXME: consider different series has items with the same name.
            itemGroup.on('click', curry(dispatchSelectAction, null, name, api, excludeSeriesId))
            // Should not specify the series name, consider legend controls
            // more than one pie series.
            .on('mouseover', curry(dispatchHighlightAction, null, name, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, null, name, api, excludeSeriesId));
            if (ecModel.ssr) {
              itemGroup.eachChild(function (child) {
                var ecData = getECData(child);
                ecData.seriesIndex = seriesModel.seriesIndex;
                ecData.dataIndex = dataIndex;
                ecData.ssrType = 'legend';
              });
            }
            legendDrawnMap.set(name, true);
          }
        }, this);
      }
      if (false) {}
    }, this);
    if (selector) {
      this._createSelector(selector, legendModel, api, orient, selectorPosition);
    }
  };
  LegendView.prototype._createSelector = function (selector, legendModel, api, orient, selectorPosition) {
    var selectorGroup = this.getSelectorGroup();
    LegendView_each(selector, function createSelectorButton(selectorItem) {
      var type = selectorItem.type;
      var labelText = new Text({
        style: {
          x: 0,
          y: 0,
          align: 'center',
          verticalAlign: 'middle'
        },
        onclick: function () {
          api.dispatchAction({
            type: type === 'all' ? 'legendAllSelect' : 'legendInverseSelect',
            legendId: legendModel.id
          });
        }
      });
      selectorGroup.add(labelText);
      var labelModel = legendModel.getModel('selectorLabel');
      var emphasisLabelModel = legendModel.getModel(['emphasis', 'selectorLabel']);
      setLabelStyle(labelText, {
        normal: labelModel,
        emphasis: emphasisLabelModel
      }, {
        defaultText: selectorItem.title
      });
      enableHoverEmphasis(labelText);
    });
  };
  LegendView.prototype._createItem = function (seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, itemVisualStyle, legendIcon, selectMode, api) {
    var drawType = seriesModel.visualDrawType;
    var itemWidth = legendModel.get('itemWidth');
    var itemHeight = legendModel.get('itemHeight');
    var isSelected = legendModel.isSelected(name);
    var iconRotate = legendItemModel.get('symbolRotate');
    var symbolKeepAspect = legendItemModel.get('symbolKeepAspect');
    var legendIconType = legendItemModel.get('icon');
    legendIcon = legendIconType || legendIcon || 'roundRect';
    var style = getLegendStyle(legendIcon, legendItemModel, lineVisualStyle, itemVisualStyle, drawType, isSelected, api);
    var itemGroup = new LegendView_Group();
    var textStyleModel = legendItemModel.getModel('textStyle');
    if (util["isFunction"](seriesModel.getLegendIcon) && (!legendIconType || legendIconType === 'inherit')) {
      // Series has specific way to define legend icon
      itemGroup.add(seriesModel.getLegendIcon({
        itemWidth: itemWidth,
        itemHeight: itemHeight,
        icon: legendIcon,
        iconRotate: iconRotate,
        itemStyle: style.itemStyle,
        lineStyle: style.lineStyle,
        symbolKeepAspect: symbolKeepAspect
      }));
    } else {
      // Use default legend icon policy for most series
      var rotate = legendIconType === 'inherit' && seriesModel.getData().getVisual('symbol') ? iconRotate === 'inherit' ? seriesModel.getData().getVisual('symbolRotate') : iconRotate : 0; // No rotation for no icon
      itemGroup.add(getDefaultLegendIcon({
        itemWidth: itemWidth,
        itemHeight: itemHeight,
        icon: legendIcon,
        iconRotate: rotate,
        itemStyle: style.itemStyle,
        lineStyle: style.lineStyle,
        symbolKeepAspect: symbolKeepAspect
      }));
    }
    var textX = itemAlign === 'left' ? itemWidth + 5 : -5;
    var textAlign = itemAlign;
    var formatter = legendModel.get('formatter');
    var content = name;
    if (util["isString"](formatter) && formatter) {
      content = formatter.replace('{name}', name != null ? name : '');
    } else if (util["isFunction"](formatter)) {
      content = formatter(name);
    }
    var textColor = isSelected ? textStyleModel.getTextColor() : legendItemModel.get('inactiveColor');
    itemGroup.add(new Text({
      style: createTextStyle(textStyleModel, {
        text: content,
        x: textX,
        y: itemHeight / 2,
        fill: textColor,
        align: textAlign,
        verticalAlign: 'middle'
      }, {
        inheritColor: textColor
      })
    }));
    // Add a invisible rect to increase the area of mouse hover
    var hitRect = new shape_Rect({
      shape: itemGroup.getBoundingRect(),
      style: {
        // Cannot use 'invisible' because SVG SSR will miss the node
        fill: 'transparent'
      }
    });
    var tooltipModel = legendItemModel.getModel('tooltip');
    if (tooltipModel.get('show')) {
      setTooltipConfig({
        el: hitRect,
        componentModel: legendModel,
        itemName: name,
        itemTooltipOption: tooltipModel.option
      });
    }
    itemGroup.add(hitRect);
    itemGroup.eachChild(function (child) {
      child.silent = true;
    });
    hitRect.silent = !selectMode;
    this.getContentGroup().add(itemGroup);
    enableHoverEmphasis(itemGroup);
    // @ts-ignore
    itemGroup.__legendDataIndex = dataIndex;
    return itemGroup;
  };
  LegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {
    var contentGroup = this.getContentGroup();
    var selectorGroup = this.getSelectorGroup();
    // Place items in contentGroup.
    layout_box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), maxSize.width, maxSize.height);
    var contentRect = contentGroup.getBoundingRect();
    var contentPos = [-contentRect.x, -contentRect.y];
    selectorGroup.markRedraw();
    contentGroup.markRedraw();
    if (selector) {
      // Place buttons in selectorGroup
      layout_box(
      // Buttons in selectorGroup always layout horizontally
      'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));
      var selectorRect = selectorGroup.getBoundingRect();
      var selectorPos = [-selectorRect.x, -selectorRect.y];
      var selectorButtonGap = legendModel.get('selectorButtonGap', true);
      var orientIdx = legendModel.getOrient().index;
      var wh = orientIdx === 0 ? 'width' : 'height';
      var hw = orientIdx === 0 ? 'height' : 'width';
      var yx = orientIdx === 0 ? 'y' : 'x';
      if (selectorPosition === 'end') {
        selectorPos[orientIdx] += contentRect[wh] + selectorButtonGap;
      } else {
        contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap;
      }
      // Always align selector to content as 'middle'
      selectorPos[1 - orientIdx] += contentRect[hw] / 2 - selectorRect[hw] / 2;
      selectorGroup.x = selectorPos[0];
      selectorGroup.y = selectorPos[1];
      contentGroup.x = contentPos[0];
      contentGroup.y = contentPos[1];
      var mainRect = {
        x: 0,
        y: 0
      };
      mainRect[wh] = contentRect[wh] + selectorButtonGap + selectorRect[wh];
      mainRect[hw] = Math.max(contentRect[hw], selectorRect[hw]);
      mainRect[yx] = Math.min(0, selectorRect[yx] + selectorPos[1 - orientIdx]);
      return mainRect;
    } else {
      contentGroup.x = contentPos[0];
      contentGroup.y = contentPos[1];
      return this.group.getBoundingRect();
    }
  };
  /**
   * @protected
   */
  LegendView.prototype.remove = function () {
    this.getContentGroup().removeAll();
    this._isFirstRender = true;
  };
  LegendView.type = 'legend.plain';
  return LegendView;
}(view_Component);
function getLegendStyle(iconType, legendItemModel, lineVisualStyle, itemVisualStyle, drawType, isSelected, api) {
  /**
   * Use series style if is inherit;
   * elsewise, use legend style
   */
  function handleCommonProps(style, visualStyle) {
    // If lineStyle.width is 'auto', it is set to be 2 if series has border
    if (style.lineWidth === 'auto') {
      style.lineWidth = visualStyle.lineWidth > 0 ? 2 : 0;
    }
    LegendView_each(style, function (propVal, propName) {
      style[propName] === 'inherit' && (style[propName] = visualStyle[propName]);
    });
  }
  // itemStyle
  var itemStyleModel = legendItemModel.getModel('itemStyle');
  var itemStyle = itemStyleModel.getItemStyle();
  var iconBrushType = iconType.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke';
  var decalStyle = itemStyleModel.getShallow('decal');
  itemStyle.decal = !decalStyle || decalStyle === 'inherit' ? itemVisualStyle.decal : createOrUpdatePatternFromDecal(decalStyle, api);
  if (itemStyle.fill === 'inherit') {
    /**
     * Series with visualDrawType as 'stroke' should have
     * series stroke as legend fill
     */
    itemStyle.fill = itemVisualStyle[drawType];
  }
  if (itemStyle.stroke === 'inherit') {
    /**
     * icon type with "emptyXXX" should use fill color
     * in visual style
     */
    itemStyle.stroke = itemVisualStyle[iconBrushType];
  }
  if (itemStyle.opacity === 'inherit') {
    /**
     * Use lineStyle.opacity if drawType is stroke
     */
    itemStyle.opacity = (drawType === 'fill' ? itemVisualStyle : lineVisualStyle).opacity;
  }
  handleCommonProps(itemStyle, itemVisualStyle);
  // lineStyle
  var legendLineModel = legendItemModel.getModel('lineStyle');
  var lineStyle = legendLineModel.getLineStyle();
  handleCommonProps(lineStyle, lineVisualStyle);
  // Fix auto color to real color
  itemStyle.fill === 'auto' && (itemStyle.fill = itemVisualStyle.fill);
  itemStyle.stroke === 'auto' && (itemStyle.stroke = itemVisualStyle.fill);
  lineStyle.stroke === 'auto' && (lineStyle.stroke = itemVisualStyle.fill);
  if (!isSelected) {
    var borderWidth = legendItemModel.get('inactiveBorderWidth');
    /**
     * Since stroke is set to be inactiveBorderColor, it may occur that
     * there is no border in series but border in legend, so we need to
     * use border only when series has border if is set to be auto
     */
    var visualHasBorder = itemStyle[iconBrushType];
    itemStyle.lineWidth = borderWidth === 'auto' ? itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0 : itemStyle.lineWidth;
    itemStyle.fill = legendItemModel.get('inactiveColor');
    itemStyle.stroke = legendItemModel.get('inactiveBorderColor');
    lineStyle.stroke = legendLineModel.get('inactiveColor');
    lineStyle.lineWidth = legendLineModel.get('inactiveWidth');
  }
  return {
    itemStyle: itemStyle,
    lineStyle: lineStyle
  };
}
function getDefaultLegendIcon(opt) {
  var symboType = opt.icon || 'roundRect';
  var icon = symbol_createSymbol(symboType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill, opt.symbolKeepAspect);
  icon.setStyle(opt.itemStyle);
  icon.rotation = (opt.iconRotate || 0) * Math.PI / 180;
  icon.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);
  if (symboType.indexOf('empty') > -1) {
    icon.style.stroke = icon.style.fill;
    icon.style.fill = '#fff';
    icon.style.lineWidth = 2;
  }
  return icon;
}
function dispatchSelectAction(seriesName, dataName, api, excludeSeriesId) {
  // downplay before unselect
  dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId);
  api.dispatchAction({
    type: 'legendToggleSelect',
    name: seriesName != null ? seriesName : dataName
  });
  // highlight after select
  // TODO highlight immediately may cause animation loss.
  dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId);
}
function isUseHoverLayer(api) {
  var list = api.getZr().storage.getDisplayList();
  var emphasisState;
  var i = 0;
  var len = list.length;
  while (i < len && !(emphasisState = list[i].states.emphasis)) {
    i++;
  }
  return emphasisState && emphasisState.hoverLayer;
}
function dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId) {
  // If element hover will move to a hoverLayer.
  if (!isUseHoverLayer(api)) {
    api.dispatchAction({
      type: 'highlight',
      seriesName: seriesName,
      name: dataName,
      excludeSeriesId: excludeSeriesId
    });
  }
}
function dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) {
  // If element hover will move to a hoverLayer.
  if (!isUseHoverLayer(api)) {
    api.dispatchAction({
      type: 'downplay',
      seriesName: seriesName,
      name: dataName,
      excludeSeriesId: excludeSeriesId
    });
  }
}
/* harmony default export */ var legend_LegendView = (LegendView_LegendView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/legendFilter.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function legendFilter(ecModel) {
  var legendModels = ecModel.findComponents({
    mainType: 'legend'
  });
  if (legendModels && legendModels.length) {
    ecModel.filterSeries(function (series) {
      // If in any legend component the status is not selected.
      // Because in legend series is assumed selected when it is not in the legend data.
      for (var i = 0; i < legendModels.length; i++) {
        if (!legendModels[i].isSelected(series.name)) {
          return false;
        }
      }
      return true;
    });
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/legendAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function legendSelectActionHandler(methodName, payload, ecModel) {
  var isAllSelect = methodName === 'allSelect' || methodName === 'inverseSelect';
  var selectedMap = {};
  var actionLegendIndices = [];
  ecModel.eachComponent({
    mainType: 'legend',
    query: payload
  }, function (legendModel) {
    if (isAllSelect) {
      legendModel[methodName]();
    } else {
      legendModel[methodName](payload.name);
    }
    makeSelectedMap(legendModel, selectedMap);
    actionLegendIndices.push(legendModel.componentIndex);
  });
  var allSelectedMap = {};
  // make selectedMap from all legend components
  ecModel.eachComponent('legend', function (legendModel) {
    Object(util["each"])(selectedMap, function (isSelected, name) {
      // Force other legend has same selected status
      // Or the first is toggled to true and other are toggled to false
      // In the case one legend has some item unSelected in option. And if other legend
      // doesn't has the item, they will assume it is selected.
      legendModel[isSelected ? 'select' : 'unSelect'](name);
    });
    makeSelectedMap(legendModel, allSelectedMap);
  });
  // Return the event explicitly
  return isAllSelect ? {
    selected: allSelectedMap,
    // return legendIndex array to tell the developers which legends are allSelect / inverseSelect
    legendIndex: actionLegendIndices
  } : {
    name: payload.name,
    selected: allSelectedMap
  };
}
function makeSelectedMap(legendModel, out) {
  var selectedMap = out || {};
  Object(util["each"])(legendModel.getData(), function (model) {
    var name = model.get('name');
    // Wrap element
    if (name === '\n' || name === '') {
      return;
    }
    var isItemSelected = legendModel.isSelected(name);
    if (Object(util["hasOwn"])(selectedMap, name)) {
      // Unselected if any legend is unselected
      selectedMap[name] = selectedMap[name] && isItemSelected;
    } else {
      selectedMap[name] = isItemSelected;
    }
  });
  return selectedMap;
}
function installLegendAction(registers) {
  /**
   * @event legendToggleSelect
   * @type {Object}
   * @property {string} type 'legendToggleSelect'
   * @property {string} [from]
   * @property {string} name Series name or data item name
   */
  registers.registerAction('legendToggleSelect', 'legendselectchanged', Object(util["curry"])(legendSelectActionHandler, 'toggleSelected'));
  registers.registerAction('legendAllSelect', 'legendselectall', Object(util["curry"])(legendSelectActionHandler, 'allSelect'));
  registers.registerAction('legendInverseSelect', 'legendinverseselect', Object(util["curry"])(legendSelectActionHandler, 'inverseSelect'));
  /**
   * @event legendSelect
   * @type {Object}
   * @property {string} type 'legendSelect'
   * @property {string} name Series name or data item name
   */
  registers.registerAction('legendSelect', 'legendselected', Object(util["curry"])(legendSelectActionHandler, 'select'));
  /**
   * @event legendUnSelect
   * @type {Object}
   * @property {string} type 'legendUnSelect'
   * @property {string} name Series name or data item name
   */
  registers.registerAction('legendUnSelect', 'legendunselected', Object(util["curry"])(legendSelectActionHandler, 'unSelect'));
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/installLegendPlain.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function installLegendPlain_install(registers) {
  registers.registerComponentModel(legend_LegendModel);
  registers.registerComponentView(legend_LegendView);
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);
  registers.registerSubTypeDefaulter('legend', function () {
    return 'plain';
  });
  installLegendAction(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/ScrollableLegendModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var ScrollableLegendModel_ScrollableLegendModel = /** @class */function (_super) {
  __extends(ScrollableLegendModel, _super);
  function ScrollableLegendModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ScrollableLegendModel.type;
    return _this;
  }
  /**
   * @param {number} scrollDataIndex
   */
  ScrollableLegendModel.prototype.setScrollDataIndex = function (scrollDataIndex) {
    this.option.scrollDataIndex = scrollDataIndex;
  };
  ScrollableLegendModel.prototype.init = function (option, parentModel, ecModel) {
    var inputPositionParams = getLayoutParams(option);
    _super.prototype.init.call(this, option, parentModel, ecModel);
    ScrollableLegendModel_mergeAndNormalizeLayoutParams(this, option, inputPositionParams);
  };
  /**
   * @override
   */
  ScrollableLegendModel.prototype.mergeOption = function (option, ecModel) {
    _super.prototype.mergeOption.call(this, option, ecModel);
    ScrollableLegendModel_mergeAndNormalizeLayoutParams(this, this.option, option);
  };
  ScrollableLegendModel.type = 'legend.scroll';
  ScrollableLegendModel.defaultOption = inheritDefaultOption(legend_LegendModel.defaultOption, {
    scrollDataIndex: 0,
    pageButtonItemGap: 5,
    pageButtonGap: null,
    pageButtonPosition: 'end',
    pageFormatter: '{current}/{total}',
    pageIcons: {
      horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],
      vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']
    },
    pageIconColor: '#2f4554',
    pageIconInactiveColor: '#aaa',
    pageIconSize: 15,
    pageTextStyle: {
      color: '#333'
    },
    animationDurationUpdate: 800
  });
  return ScrollableLegendModel;
}(legend_LegendModel);
;
// Do not `ignoreSize` to enable setting {left: 10, right: 10}.
function ScrollableLegendModel_mergeAndNormalizeLayoutParams(legendModel, target, raw) {
  var orient = legendModel.getOrient();
  var ignoreSize = [1, 1];
  ignoreSize[orient.index] = 0;
  mergeLayoutParam(target, raw, {
    type: 'box',
    ignoreSize: !!ignoreSize
  });
}
/* harmony default export */ var legend_ScrollableLegendModel = (ScrollableLegendModel_ScrollableLegendModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/ScrollableLegendView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * Separate legend and scrollable legend to reduce package size.
 */




var ScrollableLegendView_Group = graphic_Group;
var ScrollableLegendView_WH = ['width', 'height'];
var ScrollableLegendView_XY = ['x', 'y'];
var ScrollableLegendView_ScrollableLegendView = /** @class */function (_super) {
  __extends(ScrollableLegendView, _super);
  function ScrollableLegendView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ScrollableLegendView.type;
    _this.newlineDisabled = true;
    _this._currentIndex = 0;
    return _this;
  }
  ScrollableLegendView.prototype.init = function () {
    _super.prototype.init.call(this);
    this.group.add(this._containerGroup = new ScrollableLegendView_Group());
    this._containerGroup.add(this.getContentGroup());
    this.group.add(this._controllerGroup = new ScrollableLegendView_Group());
  };
  /**
   * @override
   */
  ScrollableLegendView.prototype.resetInner = function () {
    _super.prototype.resetInner.call(this);
    this._controllerGroup.removeAll();
    this._containerGroup.removeClipPath();
    this._containerGroup.__rectSize = null;
  };
  /**
   * @override
   */
  ScrollableLegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {
    var self = this;
    // Render content items.
    _super.prototype.renderInner.call(this, itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);
    var controllerGroup = this._controllerGroup;
    // FIXME: support be 'auto' adapt to size number text length,
    // e.g., '3/12345' should not overlap with the control arrow button.
    var pageIconSize = legendModel.get('pageIconSize', true);
    var pageIconSizeArr = util["isArray"](pageIconSize) ? pageIconSize : [pageIconSize, pageIconSize];
    createPageButton('pagePrev', 0);
    var pageTextStyleModel = legendModel.getModel('pageTextStyle');
    controllerGroup.add(new Text({
      name: 'pageText',
      style: {
        // Placeholder to calculate a proper layout.
        text: 'xx/xx',
        fill: pageTextStyleModel.getTextColor(),
        font: pageTextStyleModel.getFont(),
        verticalAlign: 'middle',
        align: 'center'
      },
      silent: true
    }));
    createPageButton('pageNext', 1);
    function createPageButton(name, iconIdx) {
      var pageDataIndexName = name + 'DataIndex';
      var icon = createIcon(legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx], {
        // Buttons will be created in each render, so we do not need
        // to worry about avoiding using legendModel kept in scope.
        onclick: util["bind"](self._pageGo, self, pageDataIndexName, legendModel, api)
      }, {
        x: -pageIconSizeArr[0] / 2,
        y: -pageIconSizeArr[1] / 2,
        width: pageIconSizeArr[0],
        height: pageIconSizeArr[1]
      });
      icon.name = name;
      controllerGroup.add(icon);
    }
  };
  /**
   * @override
   */
  ScrollableLegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {
    var selectorGroup = this.getSelectorGroup();
    var orientIdx = legendModel.getOrient().index;
    var wh = ScrollableLegendView_WH[orientIdx];
    var xy = ScrollableLegendView_XY[orientIdx];
    var hw = ScrollableLegendView_WH[1 - orientIdx];
    var yx = ScrollableLegendView_XY[1 - orientIdx];
    selector && layout_box(
    // Buttons in selectorGroup always layout horizontally
    'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));
    var selectorButtonGap = legendModel.get('selectorButtonGap', true);
    var selectorRect = selectorGroup.getBoundingRect();
    var selectorPos = [-selectorRect.x, -selectorRect.y];
    var processMaxSize = util["clone"](maxSize);
    selector && (processMaxSize[wh] = maxSize[wh] - selectorRect[wh] - selectorButtonGap);
    var mainRect = this._layoutContentAndController(legendModel, isFirstRender, processMaxSize, orientIdx, wh, hw, yx, xy);
    if (selector) {
      if (selectorPosition === 'end') {
        selectorPos[orientIdx] += mainRect[wh] + selectorButtonGap;
      } else {
        var offset = selectorRect[wh] + selectorButtonGap;
        selectorPos[orientIdx] -= offset;
        mainRect[xy] -= offset;
      }
      mainRect[wh] += selectorRect[wh] + selectorButtonGap;
      selectorPos[1 - orientIdx] += mainRect[yx] + mainRect[hw] / 2 - selectorRect[hw] / 2;
      mainRect[hw] = Math.max(mainRect[hw], selectorRect[hw]);
      mainRect[yx] = Math.min(mainRect[yx], selectorRect[yx] + selectorPos[1 - orientIdx]);
      selectorGroup.x = selectorPos[0];
      selectorGroup.y = selectorPos[1];
      selectorGroup.markRedraw();
    }
    return mainRect;
  };
  ScrollableLegendView.prototype._layoutContentAndController = function (legendModel, isFirstRender, maxSize, orientIdx, wh, hw, yx, xy) {
    var contentGroup = this.getContentGroup();
    var containerGroup = this._containerGroup;
    var controllerGroup = this._controllerGroup;
    // Place items in contentGroup.
    layout_box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), !orientIdx ? null : maxSize.width, orientIdx ? null : maxSize.height);
    layout_box(
    // Buttons in controller are layout always horizontally.
    'horizontal', controllerGroup, legendModel.get('pageButtonItemGap', true));
    var contentRect = contentGroup.getBoundingRect();
    var controllerRect = controllerGroup.getBoundingRect();
    var showController = this._showController = contentRect[wh] > maxSize[wh];
    // In case that the inner elements of contentGroup layout do not based on [0, 0]
    var contentPos = [-contentRect.x, -contentRect.y];
    // Remain contentPos when scroll animation perfroming.
    // If first rendering, `contentGroup.position` is [0, 0], which
    // does not make sense and may cause unexepcted animation if adopted.
    if (!isFirstRender) {
      contentPos[orientIdx] = contentGroup[xy];
    }
    // Layout container group based on 0.
    var containerPos = [0, 0];
    var controllerPos = [-controllerRect.x, -controllerRect.y];
    var pageButtonGap = util["retrieve2"](legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true));
    // Place containerGroup and controllerGroup and contentGroup.
    if (showController) {
      var pageButtonPosition = legendModel.get('pageButtonPosition', true);
      // controller is on the right / bottom.
      if (pageButtonPosition === 'end') {
        controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh];
      }
      // controller is on the left / top.
      else {
        containerPos[orientIdx] += controllerRect[wh] + pageButtonGap;
      }
    }
    // Always align controller to content as 'middle'.
    controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2;
    contentGroup.setPosition(contentPos);
    containerGroup.setPosition(containerPos);
    controllerGroup.setPosition(controllerPos);
    // Calculate `mainRect` and set `clipPath`.
    // mainRect should not be calculated by `this.group.getBoundingRect()`
    // for sake of the overflow.
    var mainRect = {
      x: 0,
      y: 0
    };
    // Consider content may be overflow (should be clipped).
    mainRect[wh] = showController ? maxSize[wh] : contentRect[wh];
    mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]);
    // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.
    mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]);
    containerGroup.__rectSize = maxSize[wh];
    if (showController) {
      var clipShape = {
        x: 0,
        y: 0
      };
      clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0);
      clipShape[hw] = mainRect[hw];
      containerGroup.setClipPath(new shape_Rect({
        shape: clipShape
      }));
      // Consider content may be larger than container, container rect
      // can not be obtained from `containerGroup.getBoundingRect()`.
      containerGroup.__rectSize = clipShape[wh];
    } else {
      // Do not remove or ignore controller. Keep them set as placeholders.
      controllerGroup.eachChild(function (child) {
        child.attr({
          invisible: true,
          silent: true
        });
      });
    }
    // Content translate animation.
    var pageInfo = this._getPageInfo(legendModel);
    pageInfo.pageIndex != null && updateProps(contentGroup, {
      x: pageInfo.contentPosition[0],
      y: pageInfo.contentPosition[1]
    },
    // When switch from "show controller" to "not show controller", view should be
    // updated immediately without animation, otherwise causes weird effect.
    showController ? legendModel : null);
    this._updatePageInfoView(legendModel, pageInfo);
    return mainRect;
  };
  ScrollableLegendView.prototype._pageGo = function (to, legendModel, api) {
    var scrollDataIndex = this._getPageInfo(legendModel)[to];
    scrollDataIndex != null && api.dispatchAction({
      type: 'legendScroll',
      scrollDataIndex: scrollDataIndex,
      legendId: legendModel.id
    });
  };
  ScrollableLegendView.prototype._updatePageInfoView = function (legendModel, pageInfo) {
    var controllerGroup = this._controllerGroup;
    util["each"](['pagePrev', 'pageNext'], function (name) {
      var key = name + 'DataIndex';
      var canJump = pageInfo[key] != null;
      var icon = controllerGroup.childOfName(name);
      if (icon) {
        icon.setStyle('fill', canJump ? legendModel.get('pageIconColor', true) : legendModel.get('pageIconInactiveColor', true));
        icon.cursor = canJump ? 'pointer' : 'default';
      }
    });
    var pageText = controllerGroup.childOfName('pageText');
    var pageFormatter = legendModel.get('pageFormatter');
    var pageIndex = pageInfo.pageIndex;
    var current = pageIndex != null ? pageIndex + 1 : 0;
    var total = pageInfo.pageCount;
    pageText && pageFormatter && pageText.setStyle('text', util["isString"](pageFormatter) ? pageFormatter.replace('{current}', current == null ? '' : current + '').replace('{total}', total == null ? '' : total + '') : pageFormatter({
      current: current,
      total: total
    }));
  };
  /**
   *  contentPosition: Array.<number>, null when data item not found.
   *  pageIndex: number, null when data item not found.
   *  pageCount: number, always be a number, can be 0.
   *  pagePrevDataIndex: number, null when no previous page.
   *  pageNextDataIndex: number, null when no next page.
   * }
   */
  ScrollableLegendView.prototype._getPageInfo = function (legendModel) {
    var scrollDataIndex = legendModel.get('scrollDataIndex', true);
    var contentGroup = this.getContentGroup();
    var containerRectSize = this._containerGroup.__rectSize;
    var orientIdx = legendModel.getOrient().index;
    var wh = ScrollableLegendView_WH[orientIdx];
    var xy = ScrollableLegendView_XY[orientIdx];
    var targetItemIndex = this._findTargetItemIndex(scrollDataIndex);
    var children = contentGroup.children();
    var targetItem = children[targetItemIndex];
    var itemCount = children.length;
    var pCount = !itemCount ? 0 : 1;
    var result = {
      contentPosition: [contentGroup.x, contentGroup.y],
      pageCount: pCount,
      pageIndex: pCount - 1,
      pagePrevDataIndex: null,
      pageNextDataIndex: null
    };
    if (!targetItem) {
      return result;
    }
    var targetItemInfo = getItemInfo(targetItem);
    result.contentPosition[orientIdx] = -targetItemInfo.s;
    // Strategy:
    // (1) Always align based on the left/top most item.
    // (2) It is user-friendly that the last item shown in the
    // current window is shown at the begining of next window.
    // Otherwise if half of the last item is cut by the window,
    // it will have no chance to display entirely.
    // (3) Consider that item size probably be different, we
    // have calculate pageIndex by size rather than item index,
    // and we can not get page index directly by division.
    // (4) The window is to narrow to contain more than
    // one item, we should make sure that the page can be fliped.
    for (var i = targetItemIndex + 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i <= itemCount; ++i) {
      currItemInfo = getItemInfo(children[i]);
      if (
      // Half of the last item is out of the window.
      !currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize
      // If the current item does not intersect with the window, the new page
      // can be started at the current item or the last item.
      || currItemInfo && !intersect(currItemInfo, winStartItemInfo.s)) {
        if (winEndItemInfo.i > winStartItemInfo.i) {
          winStartItemInfo = winEndItemInfo;
        } else {
          // e.g., when page size is smaller than item size.
          winStartItemInfo = currItemInfo;
        }
        if (winStartItemInfo) {
          if (result.pageNextDataIndex == null) {
            result.pageNextDataIndex = winStartItemInfo.i;
          }
          ++result.pageCount;
        }
      }
      winEndItemInfo = currItemInfo;
    }
    for (var i = targetItemIndex - 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i >= -1; --i) {
      currItemInfo = getItemInfo(children[i]);
      if (
      // If the the end item does not intersect with the window started
      // from the current item, a page can be settled.
      (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s)
      // e.g., when page size is smaller than item size.
      ) && winStartItemInfo.i < winEndItemInfo.i) {
        winEndItemInfo = winStartItemInfo;
        if (result.pagePrevDataIndex == null) {
          result.pagePrevDataIndex = winStartItemInfo.i;
        }
        ++result.pageCount;
        ++result.pageIndex;
      }
      winStartItemInfo = currItemInfo;
    }
    return result;
    function getItemInfo(el) {
      if (el) {
        var itemRect = el.getBoundingRect();
        var start = itemRect[xy] + el[xy];
        return {
          s: start,
          e: start + itemRect[wh],
          i: el.__legendDataIndex
        };
      }
    }
    function intersect(itemInfo, winStart) {
      return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize;
    }
  };
  ScrollableLegendView.prototype._findTargetItemIndex = function (targetDataIndex) {
    if (!this._showController) {
      return 0;
    }
    var index;
    var contentGroup = this.getContentGroup();
    var defaultIndex;
    contentGroup.eachChild(function (child, idx) {
      var legendDataIdx = child.__legendDataIndex;
      // FIXME
      // If the given targetDataIndex (from model) is illegal,
      // we use defaultIndex. But the index on the legend model and
      // action payload is still illegal. That case will not be
      // changed until some scenario requires.
      if (defaultIndex == null && legendDataIdx != null) {
        defaultIndex = idx;
      }
      if (legendDataIdx === targetDataIndex) {
        index = idx;
      }
    });
    return index != null ? index : defaultIndex;
  };
  ScrollableLegendView.type = 'legend.scroll';
  return ScrollableLegendView;
}(legend_LegendView);
/* harmony default export */ var legend_ScrollableLegendView = (ScrollableLegendView_ScrollableLegendView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/scrollableLegendAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function installScrollableLegendAction(registers) {
  /**
   * @event legendScroll
   * @type {Object}
   * @property {string} type 'legendScroll'
   * @property {string} scrollDataIndex
   */
  registers.registerAction('legendScroll', 'legendscroll', function (payload, ecModel) {
    var scrollDataIndex = payload.scrollDataIndex;
    scrollDataIndex != null && ecModel.eachComponent({
      mainType: 'legend',
      subType: 'scroll',
      query: payload
    }, function (legendModel) {
      legendModel.setScrollDataIndex(scrollDataIndex);
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/installLegendScroll.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function installLegendScroll_install(registers) {
  use(installLegendPlain_install);
  registers.registerComponentModel(legend_ScrollableLegendModel);
  registers.registerComponentView(legend_ScrollableLegendView);
  installScrollableLegendAction(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function legend_install_install(registers) {
  use(installLegendPlain_install);
  use(installLegendScroll_install);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var InsideZoomModel_InsideZoomModel = /** @class */function (_super) {
  __extends(InsideZoomModel, _super);
  function InsideZoomModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = InsideZoomModel.type;
    return _this;
  }
  InsideZoomModel.type = 'dataZoom.inside';
  InsideZoomModel.defaultOption = inheritDefaultOption(dataZoom_DataZoomModel.defaultOption, {
    disabled: false,
    zoomLock: false,
    zoomOnMouseWheel: true,
    moveOnMouseMove: true,
    moveOnMouseWheel: false,
    preventDefaultMouseMove: true
  });
  return InsideZoomModel;
}(dataZoom_DataZoomModel);
/* harmony default export */ var dataZoom_InsideZoomModel = (InsideZoomModel_InsideZoomModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/roams.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Only create one roam controller for each coordinate system.
// one roam controller might be refered by two inside data zoom
// components (for example, one for x and one for y). When user
// pan or zoom, only dispatch one action for those data zoom
// components.





var roams_inner = makeInner();
function setViewInfoToCoordSysRecord(api, dataZoomModel, getRange) {
  roams_inner(api).coordSysRecordMap.each(function (coordSysRecord) {
    var dzInfo = coordSysRecord.dataZoomInfoMap.get(dataZoomModel.uid);
    if (dzInfo) {
      dzInfo.getRange = getRange;
    }
  });
}
function disposeCoordSysRecordIfNeeded(api, dataZoomModel) {
  var coordSysRecordMap = roams_inner(api).coordSysRecordMap;
  var coordSysKeyArr = coordSysRecordMap.keys();
  for (var i = 0; i < coordSysKeyArr.length; i++) {
    var coordSysKey = coordSysKeyArr[i];
    var coordSysRecord = coordSysRecordMap.get(coordSysKey);
    var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;
    if (dataZoomInfoMap) {
      var dzUid = dataZoomModel.uid;
      var dzInfo = dataZoomInfoMap.get(dzUid);
      if (dzInfo) {
        dataZoomInfoMap.removeKey(dzUid);
        if (!dataZoomInfoMap.keys().length) {
          disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);
        }
      }
    }
  }
}
function disposeCoordSysRecord(coordSysRecordMap, coordSysRecord) {
  if (coordSysRecord) {
    coordSysRecordMap.removeKey(coordSysRecord.model.uid);
    var controller = coordSysRecord.controller;
    controller && controller.dispose();
  }
}
function createCoordSysRecord(api, coordSysModel) {
  // These init props will never change after record created.
  var coordSysRecord = {
    model: coordSysModel,
    containsPoint: Object(util["curry"])(containsPoint, coordSysModel),
    dispatchAction: Object(util["curry"])(roams_dispatchAction, api),
    dataZoomInfoMap: null,
    controller: null
  };
  // Must not do anything depends on coordSysRecord outside the event handler here,
  // because coordSysRecord not completed yet.
  var controller = coordSysRecord.controller = new helper_RoamController(api.getZr());
  Object(util["each"])(['pan', 'zoom', 'scrollMove'], function (eventName) {
    controller.on(eventName, function (event) {
      var batch = [];
      coordSysRecord.dataZoomInfoMap.each(function (dzInfo) {
        // Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove,
        // moveOnMouseWheel, ...) enabled.
        if (!event.isAvailableBehavior(dzInfo.model.option)) {
          return;
        }
        var method = (dzInfo.getRange || {})[eventName];
        var range = method && method(dzInfo.dzReferCoordSysInfo, coordSysRecord.model.mainType, coordSysRecord.controller, event);
        !dzInfo.model.get('disabled', true) && range && batch.push({
          dataZoomId: dzInfo.model.id,
          start: range[0],
          end: range[1]
        });
      });
      batch.length && coordSysRecord.dispatchAction(batch);
    });
  });
  return coordSysRecord;
}
/**
 * This action will be throttled.
 */
function roams_dispatchAction(api, batch) {
  if (!api.isDisposed()) {
    api.dispatchAction({
      type: 'dataZoom',
      animation: {
        easing: 'cubicOut',
        duration: 100
      },
      batch: batch
    });
  }
}
function containsPoint(coordSysModel, e, x, y) {
  return coordSysModel.coordinateSystem.containPoint([x, y]);
}
/**
 * Merge roamController settings when multiple dataZooms share one roamController.
 */
function mergeControllerParams(dataZoomInfoMap) {
  var controlType;
  // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated
  // as string, it is probably revert to reserved word by compress tool. See #7411.
  var prefix = 'type_';
  var typePriority = {
    'type_true': 2,
    'type_move': 1,
    'type_false': 0,
    'type_undefined': -1
  };
  var preventDefaultMouseMove = true;
  dataZoomInfoMap.each(function (dataZoomInfo) {
    var dataZoomModel = dataZoomInfo.model;
    var oneType = dataZoomModel.get('disabled', true) ? false : dataZoomModel.get('zoomLock', true) ? 'move' : true;
    if (typePriority[prefix + oneType] > typePriority[prefix + controlType]) {
      controlType = oneType;
    }
    // Prevent default move event by default. If one false, do not prevent. Otherwise
    // users may be confused why it does not work when multiple insideZooms exist.
    preventDefaultMouseMove = preventDefaultMouseMove && dataZoomModel.get('preventDefaultMouseMove', true);
  });
  return {
    controlType: controlType,
    opt: {
      // RoamController will enable all of these functionalities,
      // and the final behavior is determined by its event listener
      // provided by each inside zoom.
      zoomOnMouseWheel: true,
      moveOnMouseMove: true,
      moveOnMouseWheel: true,
      preventDefaultMouseMove: !!preventDefaultMouseMove
    }
  };
}
function installDataZoomRoamProcessor(registers) {
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, function (ecModel, api) {
    var apiInner = roams_inner(api);
    var coordSysRecordMap = apiInner.coordSysRecordMap || (apiInner.coordSysRecordMap = Object(util["createHashMap"])());
    coordSysRecordMap.each(function (coordSysRecord) {
      // `coordSysRecordMap` always exists (because it holds the `roam controller`, which should
      // better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow.
      coordSysRecord.dataZoomInfoMap = null;
    });
    ecModel.eachComponent({
      mainType: 'dataZoom',
      subType: 'inside'
    }, function (dataZoomModel) {
      var dzReferCoordSysWrap = collectReferCoordSysModelInfo(dataZoomModel);
      Object(util["each"])(dzReferCoordSysWrap.infoList, function (dzCoordSysInfo) {
        var coordSysUid = dzCoordSysInfo.model.uid;
        var coordSysRecord = coordSysRecordMap.get(coordSysUid) || coordSysRecordMap.set(coordSysUid, createCoordSysRecord(api, dzCoordSysInfo.model));
        var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap || (coordSysRecord.dataZoomInfoMap = Object(util["createHashMap"])());
        // Notice these props might be changed each time for a single dataZoomModel.
        dataZoomInfoMap.set(dataZoomModel.uid, {
          dzReferCoordSysInfo: dzCoordSysInfo,
          model: dataZoomModel,
          getRange: null
        });
      });
    });
    // (1) Merge dataZoom settings for each coord sys and set to the roam controller.
    // (2) Clear coord sys if not refered by any dataZoom.
    coordSysRecordMap.each(function (coordSysRecord) {
      var controller = coordSysRecord.controller;
      var firstDzInfo;
      var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;
      if (dataZoomInfoMap) {
        var firstDzKey = dataZoomInfoMap.keys()[0];
        if (firstDzKey != null) {
          firstDzInfo = dataZoomInfoMap.get(firstDzKey);
        }
      }
      if (!firstDzInfo) {
        disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);
        return;
      }
      var controllerParams = mergeControllerParams(dataZoomInfoMap);
      controller.enable(controllerParams.controlType, controllerParams.opt);
      controller.setPointerChecker(coordSysRecord.containsPoint);
      createOrUpdate(coordSysRecord, 'dispatchAction', firstDzInfo.model.get('throttle', true), 'fixRate');
    });
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/InsideZoomView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var InsideZoomView_InsideZoomView = /** @class */function (_super) {
  __extends(InsideZoomView, _super);
  function InsideZoomView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = 'dataZoom.inside';
    return _this;
  }
  InsideZoomView.prototype.render = function (dataZoomModel, ecModel, api) {
    _super.prototype.render.apply(this, arguments);
    if (dataZoomModel.noTarget()) {
      this._clear();
      return;
    }
    // Hence the `throttle` util ensures to preserve command order,
    // here simply updating range all the time will not cause missing
    // any of the the roam change.
    this.range = dataZoomModel.getPercentRange();
    // Reset controllers.
    setViewInfoToCoordSysRecord(api, dataZoomModel, {
      pan: Object(util["bind"])(getRangeHandlers.pan, this),
      zoom: Object(util["bind"])(getRangeHandlers.zoom, this),
      scrollMove: Object(util["bind"])(getRangeHandlers.scrollMove, this)
    });
  };
  InsideZoomView.prototype.dispose = function () {
    this._clear();
    _super.prototype.dispose.apply(this, arguments);
  };
  InsideZoomView.prototype._clear = function () {
    disposeCoordSysRecordIfNeeded(this.api, this.dataZoomModel);
    this.range = null;
  };
  InsideZoomView.type = 'dataZoom.inside';
  return InsideZoomView;
}(dataZoom_DataZoomView);
var getRangeHandlers = {
  zoom: function (coordSysInfo, coordSysMainType, controller, e) {
    var lastRange = this.range;
    var range = lastRange.slice();
    // Calculate transform by the first axis.
    var axisModel = coordSysInfo.axisModels[0];
    if (!axisModel) {
      return;
    }
    var directionInfo = getDirectionInfo[coordSysMainType](null, [e.originX, e.originY], axisModel, controller, coordSysInfo);
    var percentPoint = (directionInfo.signal > 0 ? directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel : directionInfo.pixel - directionInfo.pixelStart) / directionInfo.pixelLength * (range[1] - range[0]) + range[0];
    var scale = Math.max(1 / e.scale, 0);
    range[0] = (range[0] - percentPoint) * scale + percentPoint;
    range[1] = (range[1] - percentPoint) * scale + percentPoint;
    // Restrict range.
    var minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
    sliderMove(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan);
    this.range = range;
    if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {
      return range;
    }
  },
  pan: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) {
    var directionInfo = getDirectionInfo[coordSysMainType]([e.oldX, e.oldY], [e.newX, e.newY], axisModel, controller, coordSysInfo);
    return directionInfo.signal * (range[1] - range[0]) * directionInfo.pixel / directionInfo.pixelLength;
  }),
  scrollMove: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) {
    var directionInfo = getDirectionInfo[coordSysMainType]([0, 0], [e.scrollDelta, e.scrollDelta], axisModel, controller, coordSysInfo);
    return directionInfo.signal * (range[1] - range[0]) * e.scrollDelta;
  })
};
function makeMover(getPercentDelta) {
  return function (coordSysInfo, coordSysMainType, controller, e) {
    var lastRange = this.range;
    var range = lastRange.slice();
    // Calculate transform by the first axis.
    var axisModel = coordSysInfo.axisModels[0];
    if (!axisModel) {
      return;
    }
    var percentDelta = getPercentDelta(range, axisModel, coordSysInfo, coordSysMainType, controller, e);
    sliderMove(percentDelta, range, [0, 100], 'all');
    this.range = range;
    if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {
      return range;
    }
  };
}
var getDirectionInfo = {
  grid: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {
    var axis = axisModel.axis;
    var ret = {};
    var rect = coordSysInfo.model.coordinateSystem.getRect();
    oldPoint = oldPoint || [0, 0];
    if (axis.dim === 'x') {
      ret.pixel = newPoint[0] - oldPoint[0];
      ret.pixelLength = rect.width;
      ret.pixelStart = rect.x;
      ret.signal = axis.inverse ? 1 : -1;
    } else {
      // axis.dim === 'y'
      ret.pixel = newPoint[1] - oldPoint[1];
      ret.pixelLength = rect.height;
      ret.pixelStart = rect.y;
      ret.signal = axis.inverse ? -1 : 1;
    }
    return ret;
  },
  polar: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {
    var axis = axisModel.axis;
    var ret = {};
    var polar = coordSysInfo.model.coordinateSystem;
    var radiusExtent = polar.getRadiusAxis().getExtent();
    var angleExtent = polar.getAngleAxis().getExtent();
    oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0];
    newPoint = polar.pointToCoord(newPoint);
    if (axisModel.mainType === 'radiusAxis') {
      ret.pixel = newPoint[0] - oldPoint[0];
      // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]);
      // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]);
      ret.pixelLength = radiusExtent[1] - radiusExtent[0];
      ret.pixelStart = radiusExtent[0];
      ret.signal = axis.inverse ? 1 : -1;
    } else {
      // 'angleAxis'
      ret.pixel = newPoint[1] - oldPoint[1];
      // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]);
      // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]);
      ret.pixelLength = angleExtent[1] - angleExtent[0];
      ret.pixelStart = angleExtent[0];
      ret.signal = axis.inverse ? -1 : 1;
    }
    return ret;
  },
  singleAxis: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {
    var axis = axisModel.axis;
    var rect = coordSysInfo.model.coordinateSystem.getRect();
    var ret = {};
    oldPoint = oldPoint || [0, 0];
    if (axis.orient === 'horizontal') {
      ret.pixel = newPoint[0] - oldPoint[0];
      ret.pixelLength = rect.width;
      ret.pixelStart = rect.x;
      ret.signal = axis.inverse ? 1 : -1;
    } else {
      // 'vertical'
      ret.pixel = newPoint[1] - oldPoint[1];
      ret.pixelLength = rect.height;
      ret.pixelStart = rect.y;
      ret.signal = axis.inverse ? -1 : 1;
    }
    return ret;
  }
};
/* harmony default export */ var dataZoom_InsideZoomView = (InsideZoomView_InsideZoomView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




function installDataZoomInside_install(registers) {
  installCommon(registers);
  registers.registerComponentModel(dataZoom_InsideZoomModel);
  registers.registerComponentView(dataZoom_InsideZoomView);
  installDataZoomRoamProcessor(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var SliderZoomModel_SliderZoomModel = /** @class */function (_super) {
  __extends(SliderZoomModel, _super);
  function SliderZoomModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SliderZoomModel.type;
    return _this;
  }
  SliderZoomModel.type = 'dataZoom.slider';
  SliderZoomModel.layoutMode = 'box';
  SliderZoomModel.defaultOption = inheritDefaultOption(dataZoom_DataZoomModel.defaultOption, {
    show: true,
    // deault value can only be drived in view stage.
    right: 'ph',
    top: 'ph',
    width: 'ph',
    height: 'ph',
    left: null,
    bottom: null,
    borderColor: '#d2dbee',
    borderRadius: 3,
    backgroundColor: 'rgba(47,69,84,0)',
    // dataBackgroundColor: '#ddd',
    dataBackground: {
      lineStyle: {
        color: '#d2dbee',
        width: 0.5
      },
      areaStyle: {
        color: '#d2dbee',
        opacity: 0.2
      }
    },
    selectedDataBackground: {
      lineStyle: {
        color: '#8fb0f7',
        width: 0.5
      },
      areaStyle: {
        color: '#8fb0f7',
        opacity: 0.2
      }
    },
    // Color of selected window.
    fillerColor: 'rgba(135,175,274,0.2)',
    handleIcon: 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',
    // Percent of the slider height
    handleSize: '100%',
    handleStyle: {
      color: '#fff',
      borderColor: '#ACB8D1'
    },
    moveHandleSize: 7,
    moveHandleIcon: 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z',
    moveHandleStyle: {
      color: '#D2DBEE',
      opacity: 0.7
    },
    showDetail: true,
    showDataShadow: 'auto',
    realtime: true,
    zoomLock: false,
    textStyle: {
      color: '#6E7079'
    },
    brushSelect: true,
    brushStyle: {
      color: 'rgba(135,175,274,0.15)'
    },
    emphasis: {
      handleLabel: {
        show: true
      },
      handleStyle: {
        borderColor: '#8FB0F7'
      },
      moveHandleStyle: {
        color: '#8FB0F7'
      }
    }
  });
  return SliderZoomModel;
}(dataZoom_DataZoomModel);
/* harmony default export */ var dataZoom_SliderZoomModel = (SliderZoomModel_SliderZoomModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/SliderZoomView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/














var SliderZoomView_Rect = shape_Rect;
// Constants
var DEFAULT_LOCATION_EDGE_GAP = 7;
var DEFAULT_FRAME_BORDER_WIDTH = 1;
var DEFAULT_FILLER_SIZE = 30;
var DEFAULT_MOVE_HANDLE_SIZE = 7;
var HORIZONTAL = 'horizontal';
var VERTICAL = 'vertical';
var LABEL_GAP = 5;
var SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter'];
var REALTIME_ANIMATION_CONFIG = {
  easing: 'cubicOut',
  duration: 100,
  delay: 0
};
var SliderZoomView_SliderZoomView = /** @class */function (_super) {
  __extends(SliderZoomView, _super);
  function SliderZoomView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = SliderZoomView.type;
    _this._displayables = {};
    return _this;
  }
  SliderZoomView.prototype.init = function (ecModel, api) {
    this.api = api;
    // A unique handler for each dataZoom component
    this._onBrush = Object(util["bind"])(this._onBrush, this);
    this._onBrushEnd = Object(util["bind"])(this._onBrushEnd, this);
  };
  SliderZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) {
    _super.prototype.render.apply(this, arguments);
    createOrUpdate(this, '_dispatchZoomAction', dataZoomModel.get('throttle'), 'fixRate');
    this._orient = dataZoomModel.getOrient();
    if (dataZoomModel.get('show') === false) {
      this.group.removeAll();
      return;
    }
    if (dataZoomModel.noTarget()) {
      this._clear();
      this.group.removeAll();
      return;
    }
    // Notice: this._resetInterval() should not be executed when payload.type
    // is 'dataZoom', origin this._range should be maintained, otherwise 'pan'
    // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,
    if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) {
      this._buildView();
    }
    this._updateView();
  };
  SliderZoomView.prototype.dispose = function () {
    this._clear();
    _super.prototype.dispose.apply(this, arguments);
  };
  SliderZoomView.prototype._clear = function () {
    clear(this, '_dispatchZoomAction');
    var zr = this.api.getZr();
    zr.off('mousemove', this._onBrush);
    zr.off('mouseup', this._onBrushEnd);
  };
  SliderZoomView.prototype._buildView = function () {
    var thisGroup = this.group;
    thisGroup.removeAll();
    this._brushing = false;
    this._displayables.brushRect = null;
    this._resetLocation();
    this._resetInterval();
    var barGroup = this._displayables.sliderGroup = new graphic_Group();
    this._renderBackground();
    this._renderHandle();
    this._renderDataShadow();
    thisGroup.add(barGroup);
    this._positionGroup();
  };
  SliderZoomView.prototype._resetLocation = function () {
    var dataZoomModel = this.dataZoomModel;
    var api = this.api;
    var showMoveHandle = dataZoomModel.get('brushSelect');
    var moveHandleSize = showMoveHandle ? DEFAULT_MOVE_HANDLE_SIZE : 0;
    // If some of x/y/width/height are not specified,
    // auto-adapt according to target grid.
    var coordRect = this._findCoordRect();
    var ecSize = {
      width: api.getWidth(),
      height: api.getHeight()
    };
    // Default align by coordinate system rect.
    var positionInfo = this._orient === HORIZONTAL ? {
      // Why using 'right', because right should be used in vertical,
      // and it is better to be consistent for dealing with position param merge.
      right: ecSize.width - coordRect.x - coordRect.width,
      top: ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP - moveHandleSize,
      width: coordRect.width,
      height: DEFAULT_FILLER_SIZE
    } : {
      right: DEFAULT_LOCATION_EDGE_GAP,
      top: coordRect.y,
      width: DEFAULT_FILLER_SIZE,
      height: coordRect.height
    };
    // Do not write back to option and replace value 'ph', because
    // the 'ph' value should be recalculated when resize.
    var layoutParams = getLayoutParams(dataZoomModel.option);
    // Replace the placeholder value.
    Object(util["each"])(['right', 'top', 'width', 'height'], function (name) {
      if (layoutParams[name] === 'ph') {
        layoutParams[name] = positionInfo[name];
      }
    });
    var layoutRect = getLayoutRect(layoutParams, ecSize);
    this._location = {
      x: layoutRect.x,
      y: layoutRect.y
    };
    this._size = [layoutRect.width, layoutRect.height];
    this._orient === VERTICAL && this._size.reverse();
  };
  SliderZoomView.prototype._positionGroup = function () {
    var thisGroup = this.group;
    var location = this._location;
    var orient = this._orient;
    // Just use the first axis to determine mapping.
    var targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel();
    var inverse = targetAxisModel && targetAxisModel.get('inverse');
    var sliderGroup = this._displayables.sliderGroup;
    var otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse;
    // Transform barGroup.
    sliderGroup.attr(orient === HORIZONTAL && !inverse ? {
      scaleY: otherAxisInverse ? 1 : -1,
      scaleX: 1
    } : orient === HORIZONTAL && inverse ? {
      scaleY: otherAxisInverse ? 1 : -1,
      scaleX: -1
    } : orient === VERTICAL && !inverse ? {
      scaleY: otherAxisInverse ? -1 : 1,
      scaleX: 1,
      rotation: Math.PI / 2
    }
    // Don't use Math.PI, considering shadow direction.
    : {
      scaleY: otherAxisInverse ? -1 : 1,
      scaleX: -1,
      rotation: Math.PI / 2
    });
    // Position barGroup
    var rect = thisGroup.getBoundingRect([sliderGroup]);
    thisGroup.x = location.x - rect.x;
    thisGroup.y = location.y - rect.y;
    thisGroup.markRedraw();
  };
  SliderZoomView.prototype._getViewExtent = function () {
    return [0, this._size[0]];
  };
  SliderZoomView.prototype._renderBackground = function () {
    var dataZoomModel = this.dataZoomModel;
    var size = this._size;
    var barGroup = this._displayables.sliderGroup;
    var brushSelect = dataZoomModel.get('brushSelect');
    barGroup.add(new SliderZoomView_Rect({
      silent: true,
      shape: {
        x: 0,
        y: 0,
        width: size[0],
        height: size[1]
      },
      style: {
        fill: dataZoomModel.get('backgroundColor')
      },
      z2: -40
    }));
    // Click panel, over shadow, below handles.
    var clickPanel = new SliderZoomView_Rect({
      shape: {
        x: 0,
        y: 0,
        width: size[0],
        height: size[1]
      },
      style: {
        fill: 'transparent'
      },
      z2: 0,
      onclick: Object(util["bind"])(this._onClickPanel, this)
    });
    var zr = this.api.getZr();
    if (brushSelect) {
      clickPanel.on('mousedown', this._onBrushStart, this);
      clickPanel.cursor = 'crosshair';
      zr.on('mousemove', this._onBrush);
      zr.on('mouseup', this._onBrushEnd);
    } else {
      zr.off('mousemove', this._onBrush);
      zr.off('mouseup', this._onBrushEnd);
    }
    barGroup.add(clickPanel);
  };
  SliderZoomView.prototype._renderDataShadow = function () {
    var info = this._dataShadowInfo = this._prepareDataShadowInfo();
    this._displayables.dataShadowSegs = [];
    if (!info) {
      return;
    }
    var size = this._size;
    var oldSize = this._shadowSize || [];
    var seriesModel = info.series;
    var data = seriesModel.getRawData();
    var candlestickDim = seriesModel.getShadowDim && seriesModel.getShadowDim();
    var otherDim = candlestickDim && data.getDimensionInfo(candlestickDim) ? seriesModel.getShadowDim() // @see candlestick
    : info.otherDim;
    if (otherDim == null) {
      return;
    }
    var polygonPts = this._shadowPolygonPts;
    var polylinePts = this._shadowPolylinePts;
    // Not re-render if data doesn't change.
    if (data !== this._shadowData || otherDim !== this._shadowDim || size[0] !== oldSize[0] || size[1] !== oldSize[1]) {
      var otherDataExtent_1 = data.getDataExtent(otherDim);
      // Nice extent.
      var otherOffset = (otherDataExtent_1[1] - otherDataExtent_1[0]) * 0.3;
      otherDataExtent_1 = [otherDataExtent_1[0] - otherOffset, otherDataExtent_1[1] + otherOffset];
      var otherShadowExtent_1 = [0, size[1]];
      var thisShadowExtent = [0, size[0]];
      var areaPoints_1 = [[size[0], 0], [0, 0]];
      var linePoints_1 = [];
      var step_1 = thisShadowExtent[1] / (data.count() - 1);
      var thisCoord_1 = 0;
      // Optimize for large data shadow
      var stride_1 = Math.round(data.count() / size[0]);
      var lastIsEmpty_1;
      data.each([otherDim], function (value, index) {
        if (stride_1 > 0 && index % stride_1) {
          thisCoord_1 += step_1;
          return;
        }
        // FIXME
        // Should consider axis.min/axis.max when drawing dataShadow.
        // FIXME
        // 应该使用统一的空判断？还是在list里进行空判断？
        var isEmpty = value == null || isNaN(value) || value === '';
        // See #4235.
        var otherCoord = isEmpty ? 0 : linearMap(value, otherDataExtent_1, otherShadowExtent_1, true);
        // Attempt to draw data shadow precisely when there are empty value.
        if (isEmpty && !lastIsEmpty_1 && index) {
          areaPoints_1.push([areaPoints_1[areaPoints_1.length - 1][0], 0]);
          linePoints_1.push([linePoints_1[linePoints_1.length - 1][0], 0]);
        } else if (!isEmpty && lastIsEmpty_1) {
          areaPoints_1.push([thisCoord_1, 0]);
          linePoints_1.push([thisCoord_1, 0]);
        }
        areaPoints_1.push([thisCoord_1, otherCoord]);
        linePoints_1.push([thisCoord_1, otherCoord]);
        thisCoord_1 += step_1;
        lastIsEmpty_1 = isEmpty;
      });
      polygonPts = this._shadowPolygonPts = areaPoints_1;
      polylinePts = this._shadowPolylinePts = linePoints_1;
    }
    this._shadowData = data;
    this._shadowDim = otherDim;
    this._shadowSize = [size[0], size[1]];
    var dataZoomModel = this.dataZoomModel;
    function createDataShadowGroup(isSelectedArea) {
      var model = dataZoomModel.getModel(isSelectedArea ? 'selectedDataBackground' : 'dataBackground');
      var group = new graphic_Group();
      var polygon = new shape_Polygon({
        shape: {
          points: polygonPts
        },
        segmentIgnoreThreshold: 1,
        style: model.getModel('areaStyle').getAreaStyle(),
        silent: true,
        z2: -20
      });
      var polyline = new shape_Polyline({
        shape: {
          points: polylinePts
        },
        segmentIgnoreThreshold: 1,
        style: model.getModel('lineStyle').getLineStyle(),
        silent: true,
        z2: -19
      });
      group.add(polygon);
      group.add(polyline);
      return group;
    }
    // let dataBackgroundModel = dataZoomModel.getModel('dataBackground');
    for (var i = 0; i < 3; i++) {
      var group = createDataShadowGroup(i === 1);
      this._displayables.sliderGroup.add(group);
      this._displayables.dataShadowSegs.push(group);
    }
  };
  SliderZoomView.prototype._prepareDataShadowInfo = function () {
    var dataZoomModel = this.dataZoomModel;
    var showDataShadow = dataZoomModel.get('showDataShadow');
    if (showDataShadow === false) {
      return;
    }
    // Find a representative series.
    var result;
    var ecModel = this.ecModel;
    dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
      var seriesModels = dataZoomModel.getAxisProxy(axisDim, axisIndex).getTargetSeriesModels();
      Object(util["each"])(seriesModels, function (seriesModel) {
        if (result) {
          return;
        }
        if (showDataShadow !== true && Object(util["indexOf"])(SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')) < 0) {
          return;
        }
        var thisAxis = ecModel.getComponent(getAxisMainType(axisDim), axisIndex).axis;
        var otherDim = getOtherDim(axisDim);
        var otherAxisInverse;
        var coordSys = seriesModel.coordinateSystem;
        if (otherDim != null && coordSys.getOtherAxis) {
          otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse;
        }
        otherDim = seriesModel.getData().mapDimension(otherDim);
        result = {
          thisAxis: thisAxis,
          series: seriesModel,
          thisDim: axisDim,
          otherDim: otherDim,
          otherAxisInverse: otherAxisInverse
        };
      }, this);
    }, this);
    return result;
  };
  SliderZoomView.prototype._renderHandle = function () {
    var thisGroup = this.group;
    var displayables = this._displayables;
    var handles = displayables.handles = [null, null];
    var handleLabels = displayables.handleLabels = [null, null];
    var sliderGroup = this._displayables.sliderGroup;
    var size = this._size;
    var dataZoomModel = this.dataZoomModel;
    var api = this.api;
    var borderRadius = dataZoomModel.get('borderRadius') || 0;
    var brushSelect = dataZoomModel.get('brushSelect');
    var filler = displayables.filler = new SliderZoomView_Rect({
      silent: brushSelect,
      style: {
        fill: dataZoomModel.get('fillerColor')
      },
      textConfig: {
        position: 'inside'
      }
    });
    sliderGroup.add(filler);
    // Frame border.
    sliderGroup.add(new SliderZoomView_Rect({
      silent: true,
      subPixelOptimize: true,
      shape: {
        x: 0,
        y: 0,
        width: size[0],
        height: size[1],
        r: borderRadius
      },
      style: {
        // deprecated option
        stroke: dataZoomModel.get('dataBackgroundColor') || dataZoomModel.get('borderColor'),
        lineWidth: DEFAULT_FRAME_BORDER_WIDTH,
        fill: 'rgba(0,0,0,0)'
      }
    }));
    // Left and right handle to resize
    Object(util["each"])([0, 1], function (handleIndex) {
      var iconStr = dataZoomModel.get('handleIcon');
      if (!symbolBuildProxies[iconStr] && iconStr.indexOf('path://') < 0 && iconStr.indexOf('image://') < 0) {
        // Compatitable with the old icon parsers. Which can use a path string without path://
        iconStr = 'path://' + iconStr;
        if (false) {}
      }
      var path = symbol_createSymbol(iconStr, -1, 0, 2, 2, null, true);
      path.attr({
        cursor: getCursor(this._orient),
        draggable: true,
        drift: Object(util["bind"])(this._onDragMove, this, handleIndex),
        ondragend: Object(util["bind"])(this._onDragEnd, this),
        onmouseover: Object(util["bind"])(this._showDataInfo, this, true),
        onmouseout: Object(util["bind"])(this._showDataInfo, this, false),
        z2: 5
      });
      var bRect = path.getBoundingRect();
      var handleSize = dataZoomModel.get('handleSize');
      this._handleHeight = number_parsePercent(handleSize, this._size[1]);
      this._handleWidth = bRect.width / bRect.height * this._handleHeight;
      path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle());
      path.style.strokeNoScale = true;
      path.rectHover = true;
      path.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'handleStyle']).getItemStyle();
      enableHoverEmphasis(path);
      var handleColor = dataZoomModel.get('handleColor'); // deprecated option
      // Compatitable with previous version
      if (handleColor != null) {
        path.style.fill = handleColor;
      }
      sliderGroup.add(handles[handleIndex] = path);
      var textStyleModel = dataZoomModel.getModel('textStyle');
      var handleLabel = dataZoomModel.get('handleLabel') || {};
      var handleLabelShow = handleLabel.show || false;
      thisGroup.add(handleLabels[handleIndex] = new Text({
        silent: true,
        invisible: !handleLabelShow,
        style: createTextStyle(textStyleModel, {
          x: 0,
          y: 0,
          text: '',
          verticalAlign: 'middle',
          align: 'center',
          fill: textStyleModel.getTextColor(),
          font: textStyleModel.getFont()
        }),
        z2: 10
      }));
    }, this);
    // Handle to move. Only visible when brushSelect is set true.
    var actualMoveZone = filler;
    if (brushSelect) {
      var moveHandleHeight = number_parsePercent(dataZoomModel.get('moveHandleSize'), size[1]);
      var moveHandle_1 = displayables.moveHandle = new shape_Rect({
        style: dataZoomModel.getModel('moveHandleStyle').getItemStyle(),
        silent: true,
        shape: {
          r: [0, 0, 2, 2],
          y: size[1] - 0.5,
          height: moveHandleHeight
        }
      });
      var iconSize = moveHandleHeight * 0.8;
      var moveHandleIcon = displayables.moveHandleIcon = symbol_createSymbol(dataZoomModel.get('moveHandleIcon'), -iconSize / 2, -iconSize / 2, iconSize, iconSize, '#fff', true);
      moveHandleIcon.silent = true;
      moveHandleIcon.y = size[1] + moveHandleHeight / 2 - 0.5;
      moveHandle_1.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'moveHandleStyle']).getItemStyle();
      var moveZoneExpandSize = Math.min(size[1] / 2, Math.max(moveHandleHeight, 10));
      actualMoveZone = displayables.moveZone = new shape_Rect({
        invisible: true,
        shape: {
          y: size[1] - moveZoneExpandSize,
          height: moveHandleHeight + moveZoneExpandSize
        }
      });
      actualMoveZone.on('mouseover', function () {
        api.enterEmphasis(moveHandle_1);
      }).on('mouseout', function () {
        api.leaveEmphasis(moveHandle_1);
      });
      sliderGroup.add(moveHandle_1);
      sliderGroup.add(moveHandleIcon);
      sliderGroup.add(actualMoveZone);
    }
    actualMoveZone.attr({
      draggable: true,
      cursor: getCursor(this._orient),
      drift: Object(util["bind"])(this._onDragMove, this, 'all'),
      ondragstart: Object(util["bind"])(this._showDataInfo, this, true),
      ondragend: Object(util["bind"])(this._onDragEnd, this),
      onmouseover: Object(util["bind"])(this._showDataInfo, this, true),
      onmouseout: Object(util["bind"])(this._showDataInfo, this, false)
    });
  };
  SliderZoomView.prototype._resetInterval = function () {
    var range = this._range = this.dataZoomModel.getPercentRange();
    var viewExtent = this._getViewExtent();
    this._handleEnds = [linearMap(range[0], [0, 100], viewExtent, true), linearMap(range[1], [0, 100], viewExtent, true)];
  };
  SliderZoomView.prototype._updateInterval = function (handleIndex, delta) {
    var dataZoomModel = this.dataZoomModel;
    var handleEnds = this._handleEnds;
    var viewExtend = this._getViewExtent();
    var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
    var percentExtent = [0, 100];
    sliderMove(delta, handleEnds, viewExtend, dataZoomModel.get('zoomLock') ? 'all' : handleIndex, minMaxSpan.minSpan != null ? linearMap(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null, minMaxSpan.maxSpan != null ? linearMap(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null);
    var lastRange = this._range;
    var range = this._range = asc([linearMap(handleEnds[0], viewExtend, percentExtent, true), linearMap(handleEnds[1], viewExtend, percentExtent, true)]);
    return !lastRange || lastRange[0] !== range[0] || lastRange[1] !== range[1];
  };
  SliderZoomView.prototype._updateView = function (nonRealtime) {
    var displaybles = this._displayables;
    var handleEnds = this._handleEnds;
    var handleInterval = asc(handleEnds.slice());
    var size = this._size;
    Object(util["each"])([0, 1], function (handleIndex) {
      // Handles
      var handle = displaybles.handles[handleIndex];
      var handleHeight = this._handleHeight;
      handle.attr({
        scaleX: handleHeight / 2,
        scaleY: handleHeight / 2,
        // This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.
        // NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.
        x: handleEnds[handleIndex] + (handleIndex ? -1 : 1),
        y: size[1] / 2 - handleHeight / 2
      });
    }, this);
    // Filler
    displaybles.filler.setShape({
      x: handleInterval[0],
      y: 0,
      width: handleInterval[1] - handleInterval[0],
      height: size[1]
    });
    var viewExtent = {
      x: handleInterval[0],
      width: handleInterval[1] - handleInterval[0]
    };
    // Move handle
    if (displaybles.moveHandle) {
      displaybles.moveHandle.setShape(viewExtent);
      displaybles.moveZone.setShape(viewExtent);
      // Force update path on the invisible object
      displaybles.moveZone.getBoundingRect();
      displaybles.moveHandleIcon && displaybles.moveHandleIcon.attr('x', viewExtent.x + viewExtent.width / 2);
    }
    // update clip path of shadow.
    var dataShadowSegs = displaybles.dataShadowSegs;
    var segIntervals = [0, handleInterval[0], handleInterval[1], size[0]];
    for (var i = 0; i < dataShadowSegs.length; i++) {
      var segGroup = dataShadowSegs[i];
      var clipPath = segGroup.getClipPath();
      if (!clipPath) {
        clipPath = new shape_Rect();
        segGroup.setClipPath(clipPath);
      }
      clipPath.setShape({
        x: segIntervals[i],
        y: 0,
        width: segIntervals[i + 1] - segIntervals[i],
        height: size[1]
      });
    }
    this._updateDataInfo(nonRealtime);
  };
  SliderZoomView.prototype._updateDataInfo = function (nonRealtime) {
    var dataZoomModel = this.dataZoomModel;
    var displaybles = this._displayables;
    var handleLabels = displaybles.handleLabels;
    var orient = this._orient;
    var labelTexts = ['', ''];
    // FIXME
    // date型，支持formatter，autoformatter（ec2 date.getAutoFormatter）
    if (dataZoomModel.get('showDetail')) {
      var axisProxy = dataZoomModel.findRepresentativeAxisProxy();
      if (axisProxy) {
        var axis = axisProxy.getAxisModel().axis;
        var range = this._range;
        var dataInterval = nonRealtime
        // See #4434, data and axis are not processed and reset yet in non-realtime mode.
        ? axisProxy.calculateDataWindow({
          start: range[0],
          end: range[1]
        }).valueWindow : axisProxy.getDataValueWindow();
        labelTexts = [this._formatLabel(dataInterval[0], axis), this._formatLabel(dataInterval[1], axis)];
      }
    }
    var orderedHandleEnds = asc(this._handleEnds.slice());
    setLabel.call(this, 0);
    setLabel.call(this, 1);
    function setLabel(handleIndex) {
      // Label
      // Text should not transform by barGroup.
      // Ignore handlers transform
      var barTransform = getTransform(displaybles.handles[handleIndex].parent, this.group);
      var direction = transformDirection(handleIndex === 0 ? 'right' : 'left', barTransform);
      var offset = this._handleWidth / 2 + LABEL_GAP;
      var textPoint = graphic_applyTransform([orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset), this._size[1] / 2], barTransform);
      handleLabels[handleIndex].setStyle({
        x: textPoint[0],
        y: textPoint[1],
        verticalAlign: orient === HORIZONTAL ? 'middle' : direction,
        align: orient === HORIZONTAL ? direction : 'center',
        text: labelTexts[handleIndex]
      });
    }
  };
  SliderZoomView.prototype._formatLabel = function (value, axis) {
    var dataZoomModel = this.dataZoomModel;
    var labelFormatter = dataZoomModel.get('labelFormatter');
    var labelPrecision = dataZoomModel.get('labelPrecision');
    if (labelPrecision == null || labelPrecision === 'auto') {
      labelPrecision = axis.getPixelPrecision();
    }
    var valueStr = value == null || isNaN(value) ? ''
    // FIXME Glue code
    : axis.type === 'category' || axis.type === 'time' ? axis.scale.getLabel({
      value: Math.round(value)
    })
    // param of toFixed should less then 20.
    : value.toFixed(Math.min(labelPrecision, 20));
    return Object(util["isFunction"])(labelFormatter) ? labelFormatter(value, valueStr) : Object(util["isString"])(labelFormatter) ? labelFormatter.replace('{value}', valueStr) : valueStr;
  };
  /**
   * @param isEmphasis true: show, false: hide
   */
  SliderZoomView.prototype._showDataInfo = function (isEmphasis) {
    var handleLabel = this.dataZoomModel.get('handleLabel') || {};
    var normalShow = handleLabel.show || false;
    var emphasisHandleLabel = this.dataZoomModel.getModel(['emphasis', 'handleLabel']);
    var emphasisShow = emphasisHandleLabel.get('show') || false;
    // Dragging is considered as emphasis, unless emphasisShow is false
    var toShow = isEmphasis || this._dragging ? emphasisShow : normalShow;
    var displayables = this._displayables;
    var handleLabels = displayables.handleLabels;
    handleLabels[0].attr('invisible', !toShow);
    handleLabels[1].attr('invisible', !toShow);
    // Highlight move handle
    displayables.moveHandle && this.api[toShow ? 'enterEmphasis' : 'leaveEmphasis'](displayables.moveHandle, 1);
  };
  SliderZoomView.prototype._onDragMove = function (handleIndex, dx, dy, event) {
    this._dragging = true;
    // For mobile device, prevent screen slider on the button.
    stop(event.event);
    // Transform dx, dy to bar coordination.
    var barTransform = this._displayables.sliderGroup.getLocalTransform();
    var vertex = graphic_applyTransform([dx, dy], barTransform, true);
    var changed = this._updateInterval(handleIndex, vertex[0]);
    var realtime = this.dataZoomModel.get('realtime');
    this._updateView(!realtime);
    // Avoid dispatch dataZoom repeatly but range not changed,
    // which cause bad visual effect when progressive enabled.
    changed && realtime && this._dispatchZoomAction(true);
  };
  SliderZoomView.prototype._onDragEnd = function () {
    this._dragging = false;
    this._showDataInfo(false);
    // While in realtime mode and stream mode, dispatch action when
    // drag end will cause the whole view rerender, which is unnecessary.
    var realtime = this.dataZoomModel.get('realtime');
    !realtime && this._dispatchZoomAction(false);
  };
  SliderZoomView.prototype._onClickPanel = function (e) {
    var size = this._size;
    var localPoint = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY);
    if (localPoint[0] < 0 || localPoint[0] > size[0] || localPoint[1] < 0 || localPoint[1] > size[1]) {
      return;
    }
    var handleEnds = this._handleEnds;
    var center = (handleEnds[0] + handleEnds[1]) / 2;
    var changed = this._updateInterval('all', localPoint[0] - center);
    this._updateView();
    changed && this._dispatchZoomAction(false);
  };
  SliderZoomView.prototype._onBrushStart = function (e) {
    var x = e.offsetX;
    var y = e.offsetY;
    this._brushStart = new core_Point(x, y);
    this._brushing = true;
    this._brushStartTime = +new Date();
    // this._updateBrushRect(x, y);
  };
  SliderZoomView.prototype._onBrushEnd = function (e) {
    if (!this._brushing) {
      return;
    }
    var brushRect = this._displayables.brushRect;
    this._brushing = false;
    if (!brushRect) {
      return;
    }
    brushRect.attr('ignore', true);
    var brushShape = brushRect.shape;
    var brushEndTime = +new Date();
    // console.log(brushEndTime - this._brushStartTime);
    if (brushEndTime - this._brushStartTime < 200 && Math.abs(brushShape.width) < 5) {
      // Will treat it as a click
      return;
    }
    var viewExtend = this._getViewExtent();
    var percentExtent = [0, 100];
    this._range = asc([linearMap(brushShape.x, viewExtend, percentExtent, true), linearMap(brushShape.x + brushShape.width, viewExtend, percentExtent, true)]);
    this._handleEnds = [brushShape.x, brushShape.x + brushShape.width];
    this._updateView();
    this._dispatchZoomAction(false);
  };
  SliderZoomView.prototype._onBrush = function (e) {
    if (this._brushing) {
      // For mobile device, prevent screen slider on the button.
      stop(e.event);
      this._updateBrushRect(e.offsetX, e.offsetY);
    }
  };
  SliderZoomView.prototype._updateBrushRect = function (mouseX, mouseY) {
    var displayables = this._displayables;
    var dataZoomModel = this.dataZoomModel;
    var brushRect = displayables.brushRect;
    if (!brushRect) {
      brushRect = displayables.brushRect = new SliderZoomView_Rect({
        silent: true,
        style: dataZoomModel.getModel('brushStyle').getItemStyle()
      });
      displayables.sliderGroup.add(brushRect);
    }
    brushRect.attr('ignore', false);
    var brushStart = this._brushStart;
    var sliderGroup = this._displayables.sliderGroup;
    var endPoint = sliderGroup.transformCoordToLocal(mouseX, mouseY);
    var startPoint = sliderGroup.transformCoordToLocal(brushStart.x, brushStart.y);
    var size = this._size;
    endPoint[0] = Math.max(Math.min(size[0], endPoint[0]), 0);
    brushRect.setShape({
      x: startPoint[0],
      y: 0,
      width: endPoint[0] - startPoint[0],
      height: size[1]
    });
  };
  /**
   * This action will be throttled.
   */
  SliderZoomView.prototype._dispatchZoomAction = function (realtime) {
    var range = this._range;
    this.api.dispatchAction({
      type: 'dataZoom',
      from: this.uid,
      dataZoomId: this.dataZoomModel.id,
      animation: realtime ? REALTIME_ANIMATION_CONFIG : null,
      start: range[0],
      end: range[1]
    });
  };
  SliderZoomView.prototype._findCoordRect = function () {
    // Find the grid corresponding to the first axis referred by dataZoom.
    var rect;
    var coordSysInfoList = collectReferCoordSysModelInfo(this.dataZoomModel).infoList;
    if (!rect && coordSysInfoList.length) {
      var coordSys = coordSysInfoList[0].model.coordinateSystem;
      rect = coordSys.getRect && coordSys.getRect();
    }
    if (!rect) {
      var width = this.api.getWidth();
      var height = this.api.getHeight();
      rect = {
        x: width * 0.2,
        y: height * 0.2,
        width: width * 0.6,
        height: height * 0.6
      };
    }
    return rect;
  };
  SliderZoomView.type = 'dataZoom.slider';
  return SliderZoomView;
}(dataZoom_DataZoomView);
function getOtherDim(thisDim) {
  // FIXME
  // 这个逻辑和getOtherAxis里一致，但是写在这里是否不好
  var map = {
    x: 'y',
    y: 'x',
    radius: 'angle',
    angle: 'radius'
  };
  return map[thisDim];
}
function getCursor(orient) {
  return orient === 'vertical' ? 'ns-resize' : 'ew-resize';
}
/* harmony default export */ var dataZoom_SliderZoomView = (SliderZoomView_SliderZoomView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function installDataZoomSlider_install(registers) {
  registers.registerComponentModel(dataZoom_SliderZoomModel);
  registers.registerComponentView(dataZoom_SliderZoomView);
  installCommon(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function dataZoom_install_install(registers) {
  use(installDataZoomInside_install);
  use(installDataZoomSlider_install);
  // Do not install './dataZoomSelect',
  // since it only work for toolbox dataZoom.
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/visualDefault.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @file Visual mapping.
 */

var visualDefault = {
  /**
   * @public
   */
  get: function (visualType, key, isCategory) {
    var value = util["clone"]((visualDefault_defaultOption[visualType] || {})[key]);
    return isCategory ? util["isArray"](value) ? value[value.length - 1] : value : value;
  }
};
var visualDefault_defaultOption = {
  color: {
    active: ['#006edd', '#e0ffff'],
    inactive: ['rgba(0,0,0,0)']
  },
  colorHue: {
    active: [0, 360],
    inactive: [0, 0]
  },
  colorSaturation: {
    active: [0.3, 1],
    inactive: [0, 0]
  },
  colorLightness: {
    active: [0.9, 0.5],
    inactive: [0, 0]
  },
  colorAlpha: {
    active: [0.3, 1],
    inactive: [0, 0]
  },
  opacity: {
    active: [0.3, 1],
    inactive: [0, 0]
  },
  symbol: {
    active: ['circle', 'roundRect', 'diamond'],
    inactive: ['none']
  },
  symbolSize: {
    active: [10, 50],
    inactive: [0, 0]
  }
};
/* harmony default export */ var visual_visualDefault = (visualDefault);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/VisualMapModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var VisualMapModel_mapVisual = visual_VisualMapping.mapVisual;
var eachVisual = visual_VisualMapping.eachVisual;
var isArray = util["isArray"];
var VisualMapModel_each = util["each"];
var VisualMapModel_asc = asc;
var VisualMapModel_linearMap = linearMap;
var VisualMapModel_VisualMapModel = /** @class */function (_super) {
  __extends(VisualMapModel, _super);
  function VisualMapModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = VisualMapModel.type;
    _this.stateList = ['inRange', 'outOfRange'];
    _this.replacableOptionKeys = ['inRange', 'outOfRange', 'target', 'controller', 'color'];
    _this.layoutMode = {
      type: 'box',
      ignoreSize: true
    };
    /**
     * [lowerBound, upperBound]
     */
    _this.dataBound = [-Infinity, Infinity];
    _this.targetVisuals = {};
    _this.controllerVisuals = {};
    return _this;
  }
  VisualMapModel.prototype.init = function (option, parentModel, ecModel) {
    this.mergeDefaultAndTheme(option, ecModel);
  };
  /**
   * @protected
   */
  VisualMapModel.prototype.optionUpdated = function (newOption, isInit) {
    var thisOption = this.option;
    !isInit && replaceVisualOption(thisOption, newOption, this.replacableOptionKeys);
    this.textStyleModel = this.getModel('textStyle');
    this.resetItemSize();
    this.completeVisualOption();
  };
  /**
   * @protected
   */
  VisualMapModel.prototype.resetVisual = function (supplementVisualOption) {
    var stateList = this.stateList;
    supplementVisualOption = util["bind"](supplementVisualOption, this);
    this.controllerVisuals = createVisualMappings(this.option.controller, stateList, supplementVisualOption);
    this.targetVisuals = createVisualMappings(this.option.target, stateList, supplementVisualOption);
  };
  /**
   * @public
   */
  VisualMapModel.prototype.getItemSymbol = function () {
    return null;
  };
  /**
   * @protected
   * @return {Array.<number>} An array of series indices.
   */
  VisualMapModel.prototype.getTargetSeriesIndices = function () {
    var optionSeriesIndex = this.option.seriesIndex;
    var seriesIndices = [];
    if (optionSeriesIndex == null || optionSeriesIndex === 'all') {
      this.ecModel.eachSeries(function (seriesModel, index) {
        seriesIndices.push(index);
      });
    } else {
      seriesIndices = normalizeToArray(optionSeriesIndex);
    }
    return seriesIndices;
  };
  /**
   * @public
   */
  VisualMapModel.prototype.eachTargetSeries = function (callback, context) {
    util["each"](this.getTargetSeriesIndices(), function (seriesIndex) {
      var seriesModel = this.ecModel.getSeriesByIndex(seriesIndex);
      if (seriesModel) {
        callback.call(context, seriesModel);
      }
    }, this);
  };
  /**
   * @pubilc
   */
  VisualMapModel.prototype.isTargetSeries = function (seriesModel) {
    var is = false;
    this.eachTargetSeries(function (model) {
      model === seriesModel && (is = true);
    });
    return is;
  };
  /**
   * @example
   * this.formatValueText(someVal); // format single numeric value to text.
   * this.formatValueText(someVal, true); // format single category value to text.
   * this.formatValueText([min, max]); // format numeric min-max to text.
   * this.formatValueText([this.dataBound[0], max]); // using data lower bound.
   * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.
   *
   * @param value Real value, or this.dataBound[0 or 1].
   * @param isCategory Only available when value is number.
   * @param edgeSymbols Open-close symbol when value is interval.
   * @protected
   */
  VisualMapModel.prototype.formatValueText = function (value, isCategory, edgeSymbols) {
    var option = this.option;
    var precision = option.precision;
    var dataBound = this.dataBound;
    var formatter = option.formatter;
    var isMinMax;
    edgeSymbols = edgeSymbols || ['<', '>'];
    if (util["isArray"](value)) {
      value = value.slice();
      isMinMax = true;
    }
    var textValue = isCategory ? value // Value is string when isCategory
    : isMinMax ? [toFixed(value[0]), toFixed(value[1])] : toFixed(value);
    if (util["isString"](formatter)) {
      return formatter.replace('{value}', isMinMax ? textValue[0] : textValue).replace('{value2}', isMinMax ? textValue[1] : textValue);
    } else if (util["isFunction"](formatter)) {
      return isMinMax ? formatter(value[0], value[1]) : formatter(value);
    }
    if (isMinMax) {
      if (value[0] === dataBound[0]) {
        return edgeSymbols[0] + ' ' + textValue[1];
      } else if (value[1] === dataBound[1]) {
        return edgeSymbols[1] + ' ' + textValue[0];
      } else {
        return textValue[0] + ' - ' + textValue[1];
      }
    } else {
      // Format single value (includes category case).
      return textValue;
    }
    function toFixed(val) {
      return val === dataBound[0] ? 'min' : val === dataBound[1] ? 'max' : (+val).toFixed(Math.min(precision, 20));
    }
  };
  /**
   * @protected
   */
  VisualMapModel.prototype.resetExtent = function () {
    var thisOption = this.option;
    // Can not calculate data extent by data here.
    // Because series and data may be modified in processing stage.
    // So we do not support the feature "auto min/max".
    var extent = VisualMapModel_asc([thisOption.min, thisOption.max]);
    this._dataExtent = extent;
  };
  /**
   * PENDING:
   * delete this method if no outer usage.
   *
   * Return  Concrete dimension. If null/undefined is returned, no dimension is used.
   */
  // getDataDimension(data: SeriesData) {
  //     const optDim = this.option.dimension;
  //     if (optDim != null) {
  //         return data.getDimension(optDim);
  //     }
  //     const dimNames = data.dimensions;
  //     for (let i = dimNames.length - 1; i >= 0; i--) {
  //         const dimName = dimNames[i];
  //         const dimInfo = data.getDimensionInfo(dimName);
  //         if (!dimInfo.isCalculationCoord) {
  //             return dimName;
  //         }
  //     }
  // }
  VisualMapModel.prototype.getDataDimensionIndex = function (data) {
    var optDim = this.option.dimension;
    if (optDim != null) {
      return data.getDimensionIndex(optDim);
    }
    var dimNames = data.dimensions;
    for (var i = dimNames.length - 1; i >= 0; i--) {
      var dimName = dimNames[i];
      var dimInfo = data.getDimensionInfo(dimName);
      if (!dimInfo.isCalculationCoord) {
        return dimInfo.storeDimIndex;
      }
    }
  };
  VisualMapModel.prototype.getExtent = function () {
    return this._dataExtent.slice();
  };
  VisualMapModel.prototype.completeVisualOption = function () {
    var ecModel = this.ecModel;
    var thisOption = this.option;
    var base = {
      inRange: thisOption.inRange,
      outOfRange: thisOption.outOfRange
    };
    var target = thisOption.target || (thisOption.target = {});
    var controller = thisOption.controller || (thisOption.controller = {});
    util["merge"](target, base); // Do not override
    util["merge"](controller, base); // Do not override
    var isCategory = this.isCategory();
    completeSingle.call(this, target);
    completeSingle.call(this, controller);
    completeInactive.call(this, target, 'inRange', 'outOfRange');
    // completeInactive.call(this, target, 'outOfRange', 'inRange');
    completeController.call(this, controller);
    function completeSingle(base) {
      // Compatible with ec2 dataRange.color.
      // The mapping order of dataRange.color is: [high value, ..., low value]
      // whereas inRange.color and outOfRange.color is [low value, ..., high value]
      // Notice: ec2 has no inverse.
      if (isArray(thisOption.color)
      // If there has been inRange: {symbol: ...}, adding color is a mistake.
      // So adding color only when no inRange defined.
      && !base.inRange) {
        base.inRange = {
          color: thisOption.color.slice().reverse()
        };
      }
      // Compatible with previous logic, always give a default color, otherwise
      // simple config with no inRange and outOfRange will not work.
      // Originally we use visualMap.color as the default color, but setOption at
      // the second time the default color will be erased. So we change to use
      // constant DEFAULT_COLOR.
      // If user do not want the default color, set inRange: {color: null}.
      base.inRange = base.inRange || {
        color: ecModel.get('gradientColor')
      };
    }
    function completeInactive(base, stateExist, stateAbsent) {
      var optExist = base[stateExist];
      var optAbsent = base[stateAbsent];
      if (optExist && !optAbsent) {
        optAbsent = base[stateAbsent] = {};
        VisualMapModel_each(optExist, function (visualData, visualType) {
          if (!visual_VisualMapping.isValidType(visualType)) {
            return;
          }
          var defa = visual_visualDefault.get(visualType, 'inactive', isCategory);
          if (defa != null) {
            optAbsent[visualType] = defa;
            // Compatibable with ec2:
            // Only inactive color to rgba(0,0,0,0) can not
            // make label transparent, so use opacity also.
            if (visualType === 'color' && !optAbsent.hasOwnProperty('opacity') && !optAbsent.hasOwnProperty('colorAlpha')) {
              optAbsent.opacity = [0, 0];
            }
          }
        });
      }
    }
    function completeController(controller) {
      var symbolExists = (controller.inRange || {}).symbol || (controller.outOfRange || {}).symbol;
      var symbolSizeExists = (controller.inRange || {}).symbolSize || (controller.outOfRange || {}).symbolSize;
      var inactiveColor = this.get('inactiveColor');
      var itemSymbol = this.getItemSymbol();
      var defaultSymbol = itemSymbol || 'roundRect';
      VisualMapModel_each(this.stateList, function (state) {
        var itemSize = this.itemSize;
        var visuals = controller[state];
        // Set inactive color for controller if no other color
        // attr (like colorAlpha) specified.
        if (!visuals) {
          visuals = controller[state] = {
            color: isCategory ? inactiveColor : [inactiveColor]
          };
        }
        // Consistent symbol and symbolSize if not specified.
        if (visuals.symbol == null) {
          visuals.symbol = symbolExists && util["clone"](symbolExists) || (isCategory ? defaultSymbol : [defaultSymbol]);
        }
        if (visuals.symbolSize == null) {
          visuals.symbolSize = symbolSizeExists && util["clone"](symbolSizeExists) || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]);
        }
        // Filter none
        visuals.symbol = VisualMapModel_mapVisual(visuals.symbol, function (symbol) {
          return symbol === 'none' ? defaultSymbol : symbol;
        });
        // Normalize symbolSize
        var symbolSize = visuals.symbolSize;
        if (symbolSize != null) {
          var max_1 = -Infinity;
          // symbolSize can be object when categories defined.
          eachVisual(symbolSize, function (value) {
            value > max_1 && (max_1 = value);
          });
          visuals.symbolSize = VisualMapModel_mapVisual(symbolSize, function (value) {
            return VisualMapModel_linearMap(value, [0, max_1], [0, itemSize[0]], true);
          });
        }
      }, this);
    }
  };
  VisualMapModel.prototype.resetItemSize = function () {
    this.itemSize = [parseFloat(this.get('itemWidth')), parseFloat(this.get('itemHeight'))];
  };
  VisualMapModel.prototype.isCategory = function () {
    return !!this.option.categories;
  };
  /**
   * @public
   * @abstract
   */
  VisualMapModel.prototype.setSelected = function (selected) {};
  VisualMapModel.prototype.getSelected = function () {
    return null;
  };
  /**
   * @public
   * @abstract
   */
  VisualMapModel.prototype.getValueState = function (value) {
    return null;
  };
  /**
   * FIXME
   * Do not publish to thirt-part-dev temporarily
   * util the interface is stable. (Should it return
   * a function but not visual meta?)
   *
   * @pubilc
   * @abstract
   * @param getColorVisual
   *        params: value, valueState
   *        return: color
   * @return {Object} visualMeta
   *        should includes {stops, outerColors}
   *        outerColor means [colorBeyondMinValue, colorBeyondMaxValue]
   */
  VisualMapModel.prototype.getVisualMeta = function (getColorVisual) {
    return null;
  };
  VisualMapModel.type = 'visualMap';
  VisualMapModel.dependencies = ['series'];
  VisualMapModel.defaultOption = {
    show: true,
    // zlevel: 0,
    z: 4,
    seriesIndex: 'all',
    min: 0,
    max: 200,
    left: 0,
    right: null,
    top: null,
    bottom: 0,
    itemWidth: null,
    itemHeight: null,
    inverse: false,
    orient: 'vertical',
    backgroundColor: 'rgba(0,0,0,0)',
    borderColor: '#ccc',
    contentColor: '#5793f3',
    inactiveColor: '#aaa',
    borderWidth: 0,
    padding: 5,
    // 接受数组分别设定上右下左边距，同css
    textGap: 10,
    precision: 0,
    textStyle: {
      color: '#333' // 值域文字颜色
    }
  };
  return VisualMapModel;
}(Component);
/* harmony default export */ var visualMap_VisualMapModel = (VisualMapModel_VisualMapModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/ContinuousModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





// Constant
var DEFAULT_BAR_BOUND = [20, 140];
var ContinuousModel_ContinuousModel = /** @class */function (_super) {
  __extends(ContinuousModel, _super);
  function ContinuousModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ContinuousModel.type;
    return _this;
  }
  /**
   * @override
   */
  ContinuousModel.prototype.optionUpdated = function (newOption, isInit) {
    _super.prototype.optionUpdated.apply(this, arguments);
    this.resetExtent();
    this.resetVisual(function (mappingOption) {
      mappingOption.mappingMethod = 'linear';
      mappingOption.dataExtent = this.getExtent();
    });
    this._resetRange();
  };
  /**
   * @protected
   * @override
   */
  ContinuousModel.prototype.resetItemSize = function () {
    _super.prototype.resetItemSize.apply(this, arguments);
    var itemSize = this.itemSize;
    (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]);
    (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]);
  };
  /**
   * @private
   */
  ContinuousModel.prototype._resetRange = function () {
    var dataExtent = this.getExtent();
    var range = this.option.range;
    if (!range || range.auto) {
      // `range` should always be array (so we don't use other
      // value like 'auto') for user-friend. (consider getOption).
      dataExtent.auto = 1;
      this.option.range = dataExtent;
    } else if (util["isArray"](range)) {
      if (range[0] > range[1]) {
        range.reverse();
      }
      range[0] = Math.max(range[0], dataExtent[0]);
      range[1] = Math.min(range[1], dataExtent[1]);
    }
  };
  /**
   * @protected
   * @override
   */
  ContinuousModel.prototype.completeVisualOption = function () {
    _super.prototype.completeVisualOption.apply(this, arguments);
    util["each"](this.stateList, function (state) {
      var symbolSize = this.option.controller[state].symbolSize;
      if (symbolSize && symbolSize[0] !== symbolSize[1]) {
        symbolSize[0] = symbolSize[1] / 3; // For good looking.
      }
    }, this);
  };
  /**
   * @override
   */
  ContinuousModel.prototype.setSelected = function (selected) {
    this.option.range = selected.slice();
    this._resetRange();
  };
  /**
   * @public
   */
  ContinuousModel.prototype.getSelected = function () {
    var dataExtent = this.getExtent();
    var dataInterval = asc((this.get('range') || []).slice());
    // Clamp
    dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]);
    dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]);
    dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]);
    dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]);
    return dataInterval;
  };
  /**
   * @override
   */
  ContinuousModel.prototype.getValueState = function (value) {
    var range = this.option.range;
    var dataExtent = this.getExtent();
    // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.
    // range[1] is processed likewise.
    return (range[0] <= dataExtent[0] || range[0] <= value) && (range[1] >= dataExtent[1] || value <= range[1]) ? 'inRange' : 'outOfRange';
  };
  ContinuousModel.prototype.findTargetDataIndices = function (range) {
    var result = [];
    this.eachTargetSeries(function (seriesModel) {
      var dataIndices = [];
      var data = seriesModel.getData();
      data.each(this.getDataDimensionIndex(data), function (value, dataIndex) {
        range[0] <= value && value <= range[1] && dataIndices.push(dataIndex);
      }, this);
      result.push({
        seriesId: seriesModel.id,
        dataIndex: dataIndices
      });
    }, this);
    return result;
  };
  /**
   * @implement
   */
  ContinuousModel.prototype.getVisualMeta = function (getColorVisual) {
    var oVals = getColorStopValues(this, 'outOfRange', this.getExtent());
    var iVals = getColorStopValues(this, 'inRange', this.option.range.slice());
    var stops = [];
    function setStop(value, valueState) {
      stops.push({
        value: value,
        color: getColorVisual(value, valueState)
      });
    }
    // Format to: outOfRange -- inRange -- outOfRange.
    var iIdx = 0;
    var oIdx = 0;
    var iLen = iVals.length;
    var oLen = oVals.length;
    for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) {
      // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored.
      if (oVals[oIdx] < iVals[iIdx]) {
        setStop(oVals[oIdx], 'outOfRange');
      }
    }
    for (var first = 1; iIdx < iLen; iIdx++, first = 0) {
      // If range is full, value beyond min, max will be clamped.
      // make a singularity
      first && stops.length && setStop(iVals[iIdx], 'outOfRange');
      setStop(iVals[iIdx], 'inRange');
    }
    for (var first = 1; oIdx < oLen; oIdx++) {
      if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) {
        // make a singularity
        if (first) {
          stops.length && setStop(stops[stops.length - 1].value, 'outOfRange');
          first = 0;
        }
        setStop(oVals[oIdx], 'outOfRange');
      }
    }
    var stopsLen = stops.length;
    return {
      stops: stops,
      outerColors: [stopsLen ? stops[0].color : 'transparent', stopsLen ? stops[stopsLen - 1].color : 'transparent']
    };
  };
  ContinuousModel.type = 'visualMap.continuous';
  ContinuousModel.defaultOption = inheritDefaultOption(visualMap_VisualMapModel.defaultOption, {
    align: 'auto',
    calculable: false,
    hoverLink: true,
    realtime: true,
    handleIcon: 'path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z',
    handleSize: '120%',
    handleStyle: {
      borderColor: '#fff',
      borderWidth: 1
    },
    indicatorIcon: 'circle',
    indicatorSize: '50%',
    indicatorStyle: {
      borderColor: '#fff',
      borderWidth: 2,
      shadowBlur: 2,
      shadowOffsetX: 1,
      shadowOffsetY: 1,
      shadowColor: 'rgba(0,0,0,0.2)'
    }
    // emphasis: {
    //     handleStyle: {
    //         shadowBlur: 3,
    //         shadowOffsetX: 1,
    //         shadowOffsetY: 1,
    //         shadowColor: 'rgba(0,0,0,0.2)'
    //     }
    // }
  });
  return ContinuousModel;
}(visualMap_VisualMapModel);
function getColorStopValues(visualMapModel, valueState, dataExtent) {
  if (dataExtent[0] === dataExtent[1]) {
    return dataExtent.slice();
  }
  // When using colorHue mapping, it is not linear color any more.
  // Moreover, canvas gradient seems not to be accurate linear.
  // FIXME
  // Should be arbitrary value 100? or based on pixel size?
  var count = 200;
  var step = (dataExtent[1] - dataExtent[0]) / count;
  var value = dataExtent[0];
  var stopValues = [];
  for (var i = 0; i <= count && value < dataExtent[1]; i++) {
    stopValues.push(value);
    value += step;
  }
  stopValues.push(dataExtent[1]);
  return stopValues;
}
/* harmony default export */ var visualMap_ContinuousModel = (ContinuousModel_ContinuousModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/VisualMapView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var VisualMapView_VisualMapView = /** @class */function (_super) {
  __extends(VisualMapView, _super);
  function VisualMapView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = VisualMapView.type;
    _this.autoPositionValues = {
      left: 1,
      right: 1,
      top: 1,
      bottom: 1
    };
    return _this;
  }
  VisualMapView.prototype.init = function (ecModel, api) {
    this.ecModel = ecModel;
    this.api = api;
  };
  /**
   * @protected
   */
  VisualMapView.prototype.render = function (visualMapModel, ecModel, api, payload // TODO: TYPE
  ) {
    this.visualMapModel = visualMapModel;
    if (visualMapModel.get('show') === false) {
      this.group.removeAll();
      return;
    }
    this.doRender(visualMapModel, ecModel, api, payload);
  };
  /**
   * @protected
   */
  VisualMapView.prototype.renderBackground = function (group) {
    var visualMapModel = this.visualMapModel;
    var padding = normalizeCssArray(visualMapModel.get('padding') || 0);
    var rect = group.getBoundingRect();
    group.add(new shape_Rect({
      z2: -1,
      silent: true,
      shape: {
        x: rect.x - padding[3],
        y: rect.y - padding[0],
        width: rect.width + padding[3] + padding[1],
        height: rect.height + padding[0] + padding[2]
      },
      style: {
        fill: visualMapModel.get('backgroundColor'),
        stroke: visualMapModel.get('borderColor'),
        lineWidth: visualMapModel.get('borderWidth')
      }
    }));
  };
  /**
   * @protected
   * @param targetValue can be Infinity or -Infinity
   * @param visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize'
   * @param opts
   * @param opts.forceState Specify state, instead of using getValueState method.
   * @param opts.convertOpacityToAlpha For color gradient in controller widget.
   * @return {*} Visual value.
   */
  VisualMapView.prototype.getControllerVisual = function (targetValue, visualCluster, opts) {
    opts = opts || {};
    var forceState = opts.forceState;
    var visualMapModel = this.visualMapModel;
    var visualObj = {};
    // Default values.
    if (visualCluster === 'color') {
      var defaultColor = visualMapModel.get('contentColor');
      visualObj.color = defaultColor;
    }
    function getter(key) {
      return visualObj[key];
    }
    function setter(key, value) {
      visualObj[key] = value;
    }
    var mappings = visualMapModel.controllerVisuals[forceState || visualMapModel.getValueState(targetValue)];
    var visualTypes = visual_VisualMapping.prepareVisualTypes(mappings);
    util["each"](visualTypes, function (type) {
      var visualMapping = mappings[type];
      if (opts.convertOpacityToAlpha && type === 'opacity') {
        type = 'colorAlpha';
        visualMapping = mappings.__alphaForOpacity;
      }
      if (visual_VisualMapping.dependsOn(type, visualCluster)) {
        visualMapping && visualMapping.applyVisual(targetValue, getter, setter);
      }
    });
    return visualObj[visualCluster];
  };
  VisualMapView.prototype.positionGroup = function (group) {
    var model = this.visualMapModel;
    var api = this.api;
    positionElement(group, model.getBoxLayoutParams(), {
      width: api.getWidth(),
      height: api.getHeight()
    });
  };
  VisualMapView.prototype.doRender = function (visualMapModel, ecModel, api, payload) {};
  VisualMapView.type = 'visualMap';
  return VisualMapView;
}(view_Component);
/* harmony default export */ var visualMap_VisualMapView = (VisualMapView_VisualMapView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/helper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


var paramsSet = [['left', 'right', 'width'], ['top', 'bottom', 'height']];
/**
 * @param visualMapModel
 * @param api
 * @param itemSize always [short, long]
 * @return {string} 'left' or 'right' or 'top' or 'bottom'
 */
function getItemAlign(visualMapModel, api, itemSize) {
  var modelOption = visualMapModel.option;
  var itemAlign = modelOption.align;
  if (itemAlign != null && itemAlign !== 'auto') {
    return itemAlign;
  }
  // Auto decision align.
  var ecSize = {
    width: api.getWidth(),
    height: api.getHeight()
  };
  var realIndex = modelOption.orient === 'horizontal' ? 1 : 0;
  var reals = paramsSet[realIndex];
  var fakeValue = [0, null, 10];
  var layoutInput = {};
  for (var i = 0; i < 3; i++) {
    layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i];
    layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]];
  }
  var rParam = [['x', 'width', 3], ['y', 'height', 0]][realIndex];
  var rect = getLayoutRect(layoutInput, ecSize, modelOption.padding);
  return reals[(rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5 < ecSize[rParam[1]] * 0.5 ? 0 : 1];
}
/**
 * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and
 * dataIndexInside means filtered index.
 */
// TODO: TYPE more specified payload types.
function makeHighDownBatch(batch, visualMapModel) {
  util["each"](batch || [], function (batchItem) {
    if (batchItem.dataIndex != null) {
      batchItem.dataIndexInside = batchItem.dataIndex;
      batchItem.dataIndex = null;
    }
    batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : '');
  });
  return batch;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/ContinuousView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

















var ContinuousView_linearMap = linearMap;
var ContinuousView_each = util["each"];
var ContinuousView_mathMin = Math.min;
var ContinuousView_mathMax = Math.max;
// Arbitrary value
var HOVER_LINK_SIZE = 12;
var HOVER_LINK_OUT = 6;
// Notice:
// Any "interval" should be by the order of [low, high].
// "handle0" (handleIndex === 0) maps to
// low data value: this._dataInterval[0] and has low coord.
// "handle1" (handleIndex === 1) maps to
// high data value: this._dataInterval[1] and has high coord.
// The logic of transform is implemented in this._createBarGroup.
var ContinuousView_ContinuousView = /** @class */function (_super) {
  __extends(ContinuousView, _super);
  function ContinuousView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = ContinuousView.type;
    _this._shapes = {};
    _this._dataInterval = [];
    _this._handleEnds = [];
    _this._hoverLinkDataIndices = [];
    return _this;
  }
  ContinuousView.prototype.init = function (ecModel, api) {
    _super.prototype.init.call(this, ecModel, api);
    this._hoverLinkFromSeriesMouseOver = util["bind"](this._hoverLinkFromSeriesMouseOver, this);
    this._hideIndicator = util["bind"](this._hideIndicator, this);
  };
  ContinuousView.prototype.doRender = function (visualMapModel, ecModel, api, payload) {
    if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) {
      this._buildView();
    }
  };
  ContinuousView.prototype._buildView = function () {
    this.group.removeAll();
    var visualMapModel = this.visualMapModel;
    var thisGroup = this.group;
    this._orient = visualMapModel.get('orient');
    this._useHandle = visualMapModel.get('calculable');
    this._resetInterval();
    this._renderBar(thisGroup);
    var dataRangeText = visualMapModel.get('text');
    this._renderEndsText(thisGroup, dataRangeText, 0);
    this._renderEndsText(thisGroup, dataRangeText, 1);
    // Do this for background size calculation.
    this._updateView(true);
    // After updating view, inner shapes is built completely,
    // and then background can be rendered.
    this.renderBackground(thisGroup);
    // Real update view
    this._updateView();
    this._enableHoverLinkToSeries();
    this._enableHoverLinkFromSeries();
    this.positionGroup(thisGroup);
  };
  ContinuousView.prototype._renderEndsText = function (group, dataRangeText, endsIndex) {
    if (!dataRangeText) {
      return;
    }
    // Compatible with ec2, text[0] map to high value, text[1] map low value.
    var text = dataRangeText[1 - endsIndex];
    text = text != null ? text + '' : '';
    var visualMapModel = this.visualMapModel;
    var textGap = visualMapModel.get('textGap');
    var itemSize = visualMapModel.itemSize;
    var barGroup = this._shapes.mainGroup;
    var position = this._applyTransform([itemSize[0] / 2, endsIndex === 0 ? -textGap : itemSize[1] + textGap], barGroup);
    var align = this._applyTransform(endsIndex === 0 ? 'bottom' : 'top', barGroup);
    var orient = this._orient;
    var textStyleModel = this.visualMapModel.textStyleModel;
    this.group.add(new Text({
      style: createTextStyle(textStyleModel, {
        x: position[0],
        y: position[1],
        verticalAlign: orient === 'horizontal' ? 'middle' : align,
        align: orient === 'horizontal' ? align : 'center',
        text: text
      })
    }));
  };
  ContinuousView.prototype._renderBar = function (targetGroup) {
    var visualMapModel = this.visualMapModel;
    var shapes = this._shapes;
    var itemSize = visualMapModel.itemSize;
    var orient = this._orient;
    var useHandle = this._useHandle;
    var itemAlign = getItemAlign(visualMapModel, this.api, itemSize);
    var mainGroup = shapes.mainGroup = this._createBarGroup(itemAlign);
    var gradientBarGroup = new graphic_Group();
    mainGroup.add(gradientBarGroup);
    // Bar
    gradientBarGroup.add(shapes.outOfRange = createPolygon());
    gradientBarGroup.add(shapes.inRange = createPolygon(null, useHandle ? ContinuousView_getCursor(this._orient) : null, util["bind"](this._dragHandle, this, 'all', false), util["bind"](this._dragHandle, this, 'all', true)));
    // A border radius clip.
    gradientBarGroup.setClipPath(new shape_Rect({
      shape: {
        x: 0,
        y: 0,
        width: itemSize[0],
        height: itemSize[1],
        r: 3
      }
    }));
    var textRect = visualMapModel.textStyleModel.getTextRect('国');
    var textSize = ContinuousView_mathMax(textRect.width, textRect.height);
    // Handle
    if (useHandle) {
      shapes.handleThumbs = [];
      shapes.handleLabels = [];
      shapes.handleLabelPoints = [];
      this._createHandle(visualMapModel, mainGroup, 0, itemSize, textSize, orient);
      this._createHandle(visualMapModel, mainGroup, 1, itemSize, textSize, orient);
    }
    this._createIndicator(visualMapModel, mainGroup, itemSize, textSize, orient);
    targetGroup.add(mainGroup);
  };
  ContinuousView.prototype._createHandle = function (visualMapModel, mainGroup, handleIndex, itemSize, textSize, orient) {
    var onDrift = util["bind"](this._dragHandle, this, handleIndex, false);
    var onDragEnd = util["bind"](this._dragHandle, this, handleIndex, true);
    var handleSize = parsePercent(visualMapModel.get('handleSize'), itemSize[0]);
    var handleThumb = symbol_createSymbol(visualMapModel.get('handleIcon'), -handleSize / 2, -handleSize / 2, handleSize, handleSize, null, true);
    var cursor = ContinuousView_getCursor(this._orient);
    handleThumb.attr({
      cursor: cursor,
      draggable: true,
      drift: onDrift,
      ondragend: onDragEnd,
      onmousemove: function (e) {
        stop(e.event);
      }
    });
    handleThumb.x = itemSize[0] / 2;
    handleThumb.useStyle(visualMapModel.getModel('handleStyle').getItemStyle());
    handleThumb.setStyle({
      strokeNoScale: true,
      strokeFirst: true
    });
    handleThumb.style.lineWidth *= 2;
    handleThumb.ensureState('emphasis').style = visualMapModel.getModel(['emphasis', 'handleStyle']).getItemStyle();
    setAsHighDownDispatcher(handleThumb, true);
    mainGroup.add(handleThumb);
    // Text is always horizontal layout but should not be effected by
    // transform (orient/inverse). So label is built separately but not
    // use zrender/graphic/helper/RectText, and is located based on view
    // group (according to handleLabelPoint) but not barGroup.
    var textStyleModel = this.visualMapModel.textStyleModel;
    var handleLabel = new Text({
      cursor: cursor,
      draggable: true,
      drift: onDrift,
      onmousemove: function (e) {
        // For mobile device, prevent screen slider on the button.
        stop(e.event);
      },
      ondragend: onDragEnd,
      style: createTextStyle(textStyleModel, {
        x: 0,
        y: 0,
        text: ''
      })
    });
    handleLabel.ensureState('blur').style = {
      opacity: 0.1
    };
    handleLabel.stateTransition = {
      duration: 200
    };
    this.group.add(handleLabel);
    var handleLabelPoint = [handleSize, 0];
    var shapes = this._shapes;
    shapes.handleThumbs[handleIndex] = handleThumb;
    shapes.handleLabelPoints[handleIndex] = handleLabelPoint;
    shapes.handleLabels[handleIndex] = handleLabel;
  };
  ContinuousView.prototype._createIndicator = function (visualMapModel, mainGroup, itemSize, textSize, orient) {
    var scale = parsePercent(visualMapModel.get('indicatorSize'), itemSize[0]);
    var indicator = symbol_createSymbol(visualMapModel.get('indicatorIcon'), -scale / 2, -scale / 2, scale, scale, null, true);
    indicator.attr({
      cursor: 'move',
      invisible: true,
      silent: true,
      x: itemSize[0] / 2
    });
    var indicatorStyle = visualMapModel.getModel('indicatorStyle').getItemStyle();
    if (indicator instanceof graphic_Image) {
      var pathStyle = indicator.style;
      indicator.useStyle(util["extend"]({
        // TODO other properties like x, y ?
        image: pathStyle.image,
        x: pathStyle.x,
        y: pathStyle.y,
        width: pathStyle.width,
        height: pathStyle.height
      }, indicatorStyle));
    } else {
      indicator.useStyle(indicatorStyle);
    }
    mainGroup.add(indicator);
    var textStyleModel = this.visualMapModel.textStyleModel;
    var indicatorLabel = new Text({
      silent: true,
      invisible: true,
      style: createTextStyle(textStyleModel, {
        x: 0,
        y: 0,
        text: ''
      })
    });
    this.group.add(indicatorLabel);
    var indicatorLabelPoint = [(orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT) + itemSize[0] / 2, 0];
    var shapes = this._shapes;
    shapes.indicator = indicator;
    shapes.indicatorLabel = indicatorLabel;
    shapes.indicatorLabelPoint = indicatorLabelPoint;
    this._firstShowIndicator = true;
  };
  ContinuousView.prototype._dragHandle = function (handleIndex, isEnd,
  // dx is event from ondragend if isEnd is true. It's not used
  dx, dy) {
    if (!this._useHandle) {
      return;
    }
    this._dragging = !isEnd;
    if (!isEnd) {
      // Transform dx, dy to bar coordination.
      var vertex = this._applyTransform([dx, dy], this._shapes.mainGroup, true);
      this._updateInterval(handleIndex, vertex[1]);
      this._hideIndicator();
      // Considering realtime, update view should be executed
      // before dispatch action.
      this._updateView();
    }
    // dragEnd do not dispatch action when realtime.
    if (isEnd === !this.visualMapModel.get('realtime')) {
      // jshint ignore:line
      this.api.dispatchAction({
        type: 'selectDataRange',
        from: this.uid,
        visualMapId: this.visualMapModel.id,
        selected: this._dataInterval.slice()
      });
    }
    if (isEnd) {
      !this._hovering && this._clearHoverLinkToSeries();
    } else if (useHoverLinkOnHandle(this.visualMapModel)) {
      this._doHoverLinkToSeries(this._handleEnds[handleIndex], false);
    }
  };
  ContinuousView.prototype._resetInterval = function () {
    var visualMapModel = this.visualMapModel;
    var dataInterval = this._dataInterval = visualMapModel.getSelected();
    var dataExtent = visualMapModel.getExtent();
    var sizeExtent = [0, visualMapModel.itemSize[1]];
    this._handleEnds = [ContinuousView_linearMap(dataInterval[0], dataExtent, sizeExtent, true), ContinuousView_linearMap(dataInterval[1], dataExtent, sizeExtent, true)];
  };
  /**
   * @private
   * @param {(number|string)} handleIndex 0 or 1 or 'all'
   * @param {number} dx
   * @param {number} dy
   */
  ContinuousView.prototype._updateInterval = function (handleIndex, delta) {
    delta = delta || 0;
    var visualMapModel = this.visualMapModel;
    var handleEnds = this._handleEnds;
    var sizeExtent = [0, visualMapModel.itemSize[1]];
    sliderMove(delta, handleEnds, sizeExtent, handleIndex,
    // cross is forbidden
    0);
    var dataExtent = visualMapModel.getExtent();
    // Update data interval.
    this._dataInterval = [ContinuousView_linearMap(handleEnds[0], sizeExtent, dataExtent, true), ContinuousView_linearMap(handleEnds[1], sizeExtent, dataExtent, true)];
  };
  ContinuousView.prototype._updateView = function (forSketch) {
    var visualMapModel = this.visualMapModel;
    var dataExtent = visualMapModel.getExtent();
    var shapes = this._shapes;
    var outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]];
    var inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds;
    var visualInRange = this._createBarVisual(this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange');
    var visualOutOfRange = this._createBarVisual(dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange');
    shapes.inRange.setStyle({
      fill: visualInRange.barColor
      // opacity: visualInRange.opacity
    }).setShape('points', visualInRange.barPoints);
    shapes.outOfRange.setStyle({
      fill: visualOutOfRange.barColor
      // opacity: visualOutOfRange.opacity
    }).setShape('points', visualOutOfRange.barPoints);
    this._updateHandle(inRangeHandleEnds, visualInRange);
  };
  ContinuousView.prototype._createBarVisual = function (dataInterval, dataExtent, handleEnds, forceState) {
    var opts = {
      forceState: forceState,
      convertOpacityToAlpha: true
    };
    var colorStops = this._makeColorGradient(dataInterval, opts);
    var symbolSizes = [this.getControllerVisual(dataInterval[0], 'symbolSize', opts), this.getControllerVisual(dataInterval[1], 'symbolSize', opts)];
    var barPoints = this._createBarPoints(handleEnds, symbolSizes);
    return {
      barColor: new graphic_LinearGradient(0, 0, 0, 1, colorStops),
      barPoints: barPoints,
      handlesColor: [colorStops[0].color, colorStops[colorStops.length - 1].color]
    };
  };
  ContinuousView.prototype._makeColorGradient = function (dataInterval, opts) {
    // Considering colorHue, which is not linear, so we have to sample
    // to calculate gradient color stops, but not only calculate head
    // and tail.
    var sampleNumber = 100; // Arbitrary value.
    var colorStops = [];
    var step = (dataInterval[1] - dataInterval[0]) / sampleNumber;
    colorStops.push({
      color: this.getControllerVisual(dataInterval[0], 'color', opts),
      offset: 0
    });
    for (var i = 1; i < sampleNumber; i++) {
      var currValue = dataInterval[0] + step * i;
      if (currValue > dataInterval[1]) {
        break;
      }
      colorStops.push({
        color: this.getControllerVisual(currValue, 'color', opts),
        offset: i / sampleNumber
      });
    }
    colorStops.push({
      color: this.getControllerVisual(dataInterval[1], 'color', opts),
      offset: 1
    });
    return colorStops;
  };
  ContinuousView.prototype._createBarPoints = function (handleEnds, symbolSizes) {
    var itemSize = this.visualMapModel.itemSize;
    return [[itemSize[0] - symbolSizes[0], handleEnds[0]], [itemSize[0], handleEnds[0]], [itemSize[0], handleEnds[1]], [itemSize[0] - symbolSizes[1], handleEnds[1]]];
  };
  ContinuousView.prototype._createBarGroup = function (itemAlign) {
    var orient = this._orient;
    var inverse = this.visualMapModel.get('inverse');
    return new graphic_Group(orient === 'horizontal' && !inverse ? {
      scaleX: itemAlign === 'bottom' ? 1 : -1,
      rotation: Math.PI / 2
    } : orient === 'horizontal' && inverse ? {
      scaleX: itemAlign === 'bottom' ? -1 : 1,
      rotation: -Math.PI / 2
    } : orient === 'vertical' && !inverse ? {
      scaleX: itemAlign === 'left' ? 1 : -1,
      scaleY: -1
    } : {
      scaleX: itemAlign === 'left' ? 1 : -1
    });
  };
  ContinuousView.prototype._updateHandle = function (handleEnds, visualInRange) {
    if (!this._useHandle) {
      return;
    }
    var shapes = this._shapes;
    var visualMapModel = this.visualMapModel;
    var handleThumbs = shapes.handleThumbs;
    var handleLabels = shapes.handleLabels;
    var itemSize = visualMapModel.itemSize;
    var dataExtent = visualMapModel.getExtent();
    var align = this._applyTransform('left', shapes.mainGroup);
    ContinuousView_each([0, 1], function (handleIndex) {
      var handleThumb = handleThumbs[handleIndex];
      handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]);
      handleThumb.y = handleEnds[handleIndex];
      var val = ContinuousView_linearMap(handleEnds[handleIndex], [0, itemSize[1]], dataExtent, true);
      var symbolSize = this.getControllerVisual(val, 'symbolSize');
      handleThumb.scaleX = handleThumb.scaleY = symbolSize / itemSize[0];
      handleThumb.x = itemSize[0] - symbolSize / 2;
      // Update handle label position.
      var textPoint = graphic_applyTransform(shapes.handleLabelPoints[handleIndex], getTransform(handleThumb, this.group));
      if (this._orient === 'horizontal') {
        // If visualMap controls symbol size, an additional offset needs to be added to labels to avoid collision at minimum size.
        // Offset reaches value of 0 at "maximum" position, so maximum position is not altered at all.
        var minimumOffset = align === 'left' || align === 'top' ? (itemSize[0] - symbolSize) / 2 : (itemSize[0] - symbolSize) / -2;
        textPoint[1] += minimumOffset;
      }
      handleLabels[handleIndex].setStyle({
        x: textPoint[0],
        y: textPoint[1],
        text: visualMapModel.formatValueText(this._dataInterval[handleIndex]),
        verticalAlign: 'middle',
        align: this._orient === 'vertical' ? this._applyTransform('left', shapes.mainGroup) : 'center'
      });
    }, this);
  };
  ContinuousView.prototype._showIndicator = function (cursorValue, textValue, rangeSymbol, halfHoverLinkSize) {
    var visualMapModel = this.visualMapModel;
    var dataExtent = visualMapModel.getExtent();
    var itemSize = visualMapModel.itemSize;
    var sizeExtent = [0, itemSize[1]];
    var shapes = this._shapes;
    var indicator = shapes.indicator;
    if (!indicator) {
      return;
    }
    indicator.attr('invisible', false);
    var opts = {
      convertOpacityToAlpha: true
    };
    var color = this.getControllerVisual(cursorValue, 'color', opts);
    var symbolSize = this.getControllerVisual(cursorValue, 'symbolSize');
    var y = ContinuousView_linearMap(cursorValue, dataExtent, sizeExtent, true);
    var x = itemSize[0] - symbolSize / 2;
    var oldIndicatorPos = {
      x: indicator.x,
      y: indicator.y
    };
    // Update handle label position.
    indicator.y = y;
    indicator.x = x;
    var textPoint = graphic_applyTransform(shapes.indicatorLabelPoint, getTransform(indicator, this.group));
    var indicatorLabel = shapes.indicatorLabel;
    indicatorLabel.attr('invisible', false);
    var align = this._applyTransform('left', shapes.mainGroup);
    var orient = this._orient;
    var isHorizontal = orient === 'horizontal';
    indicatorLabel.setStyle({
      text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue),
      verticalAlign: isHorizontal ? align : 'middle',
      align: isHorizontal ? 'center' : align
    });
    var indicatorNewProps = {
      x: x,
      y: y,
      style: {
        fill: color
      }
    };
    var labelNewProps = {
      style: {
        x: textPoint[0],
        y: textPoint[1]
      }
    };
    if (visualMapModel.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {
      var animationCfg = {
        duration: 100,
        easing: 'cubicInOut',
        additive: true
      };
      indicator.x = oldIndicatorPos.x;
      indicator.y = oldIndicatorPos.y;
      indicator.animateTo(indicatorNewProps, animationCfg);
      indicatorLabel.animateTo(labelNewProps, animationCfg);
    } else {
      indicator.attr(indicatorNewProps);
      indicatorLabel.attr(labelNewProps);
    }
    this._firstShowIndicator = false;
    var handleLabels = this._shapes.handleLabels;
    if (handleLabels) {
      for (var i = 0; i < handleLabels.length; i++) {
        // Fade out handle labels.
        // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.
        this.api.enterBlur(handleLabels[i]);
      }
    }
  };
  ContinuousView.prototype._enableHoverLinkToSeries = function () {
    var self = this;
    this._shapes.mainGroup.on('mousemove', function (e) {
      self._hovering = true;
      if (!self._dragging) {
        var itemSize = self.visualMapModel.itemSize;
        var pos = self._applyTransform([e.offsetX, e.offsetY], self._shapes.mainGroup, true, true);
        // For hover link show when hover handle, which might be
        // below or upper than sizeExtent.
        pos[1] = ContinuousView_mathMin(ContinuousView_mathMax(0, pos[1]), itemSize[1]);
        self._doHoverLinkToSeries(pos[1], 0 <= pos[0] && pos[0] <= itemSize[0]);
      }
    }).on('mouseout', function () {
      // When mouse is out of handle, hoverLink still need
      // to be displayed when realtime is set as false.
      self._hovering = false;
      !self._dragging && self._clearHoverLinkToSeries();
    });
  };
  ContinuousView.prototype._enableHoverLinkFromSeries = function () {
    var zr = this.api.getZr();
    if (this.visualMapModel.option.hoverLink) {
      zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this);
      zr.on('mouseout', this._hideIndicator, this);
    } else {
      this._clearHoverLinkFromSeries();
    }
  };
  ContinuousView.prototype._doHoverLinkToSeries = function (cursorPos, hoverOnBar) {
    var visualMapModel = this.visualMapModel;
    var itemSize = visualMapModel.itemSize;
    if (!visualMapModel.option.hoverLink) {
      return;
    }
    var sizeExtent = [0, itemSize[1]];
    var dataExtent = visualMapModel.getExtent();
    // For hover link show when hover handle, which might be below or upper than sizeExtent.
    cursorPos = ContinuousView_mathMin(ContinuousView_mathMax(sizeExtent[0], cursorPos), sizeExtent[1]);
    var halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent);
    var hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize];
    var cursorValue = ContinuousView_linearMap(cursorPos, sizeExtent, dataExtent, true);
    var valueRange = [ContinuousView_linearMap(hoverRange[0], sizeExtent, dataExtent, true), ContinuousView_linearMap(hoverRange[1], sizeExtent, dataExtent, true)];
    // Consider data range is out of visualMap range, see test/visualMap-continuous.html,
    // where china and india has very large population.
    hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity);
    hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity);
    // Do not show indicator when mouse is over handle,
    // otherwise labels overlap, especially when dragging.
    if (hoverOnBar) {
      if (valueRange[0] === -Infinity) {
        this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize);
      } else if (valueRange[1] === Infinity) {
        this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize);
      } else {
        this._showIndicator(cursorValue, cursorValue, '≈ ', halfHoverLinkSize);
      }
    }
    // When realtime is set as false, handles, which are in barGroup,
    // also trigger hoverLink, which help user to realize where they
    // focus on when dragging. (see test/heatmap-large.html)
    // When realtime is set as true, highlight will not show when hover
    // handle, because the label on handle, which displays a exact value
    // but not range, might mislead users.
    var oldBatch = this._hoverLinkDataIndices;
    var newBatch = [];
    if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) {
      newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange);
    }
    var resultBatches = compressBatches(oldBatch, newBatch);
    this._dispatchHighDown('downplay', makeHighDownBatch(resultBatches[0], visualMapModel));
    this._dispatchHighDown('highlight', makeHighDownBatch(resultBatches[1], visualMapModel));
  };
  ContinuousView.prototype._hoverLinkFromSeriesMouseOver = function (e) {
    var ecData;
    findEventDispatcher(e.target, function (target) {
      var currECData = getECData(target);
      if (currECData.dataIndex != null) {
        ecData = currECData;
        return true;
      }
    }, true);
    if (!ecData) {
      return;
    }
    var dataModel = this.ecModel.getSeriesByIndex(ecData.seriesIndex);
    var visualMapModel = this.visualMapModel;
    if (!visualMapModel.isTargetSeries(dataModel)) {
      return;
    }
    var data = dataModel.getData(ecData.dataType);
    var value = data.getStore().get(visualMapModel.getDataDimensionIndex(data), ecData.dataIndex);
    if (!isNaN(value)) {
      this._showIndicator(value, value);
    }
  };
  ContinuousView.prototype._hideIndicator = function () {
    var shapes = this._shapes;
    shapes.indicator && shapes.indicator.attr('invisible', true);
    shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true);
    var handleLabels = this._shapes.handleLabels;
    if (handleLabels) {
      for (var i = 0; i < handleLabels.length; i++) {
        // Fade out handle labels.
        // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.
        this.api.leaveBlur(handleLabels[i]);
      }
    }
  };
  ContinuousView.prototype._clearHoverLinkToSeries = function () {
    this._hideIndicator();
    var indices = this._hoverLinkDataIndices;
    this._dispatchHighDown('downplay', makeHighDownBatch(indices, this.visualMapModel));
    indices.length = 0;
  };
  ContinuousView.prototype._clearHoverLinkFromSeries = function () {
    this._hideIndicator();
    var zr = this.api.getZr();
    zr.off('mouseover', this._hoverLinkFromSeriesMouseOver);
    zr.off('mouseout', this._hideIndicator);
  };
  ContinuousView.prototype._applyTransform = function (vertex, element, inverse, global) {
    var transform = getTransform(element, global ? null : this.group);
    return util["isArray"](vertex) ? graphic_applyTransform(vertex, transform, inverse) : transformDirection(vertex, transform, inverse);
  };
  // TODO: TYPE more specified payload types.
  ContinuousView.prototype._dispatchHighDown = function (type, batch) {
    batch && batch.length && this.api.dispatchAction({
      type: type,
      batch: batch
    });
  };
  /**
   * @override
   */
  ContinuousView.prototype.dispose = function () {
    this._clearHoverLinkFromSeries();
    this._clearHoverLinkToSeries();
  };
  ContinuousView.type = 'visualMap.continuous';
  return ContinuousView;
}(visualMap_VisualMapView);
function createPolygon(points, cursor, onDrift, onDragEnd) {
  return new shape_Polygon({
    shape: {
      points: points
    },
    draggable: !!onDrift,
    cursor: cursor,
    drift: onDrift,
    onmousemove: function (e) {
      // For mobile device, prevent screen slider on the button.
      stop(e.event);
    },
    ondragend: onDragEnd
  });
}
function getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent) {
  var halfHoverLinkSize = HOVER_LINK_SIZE / 2;
  var hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize');
  if (hoverLinkDataSize) {
    halfHoverLinkSize = ContinuousView_linearMap(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2;
  }
  return halfHoverLinkSize;
}
function useHoverLinkOnHandle(visualMapModel) {
  var hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle');
  return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle);
}
function ContinuousView_getCursor(orient) {
  return orient === 'vertical' ? 'ns-resize' : 'ew-resize';
}
/* harmony default export */ var visualMap_ContinuousView = (ContinuousView_ContinuousView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/visualMapAction.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var visualMapActionInfo = {
  type: 'selectDataRange',
  event: 'dataRangeSelected',
  // FIXME use updateView appears wrong
  update: 'update'
};
var visualMapActionHander = function (payload, ecModel) {
  ecModel.eachComponent({
    mainType: 'visualMap',
    query: payload
  }, function (model) {
    model.setSelected(payload.selected);
  });
};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/visualEncoding.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var visualMapEncodingHandlers = [{
  createOnAllSeries: true,
  reset: function (seriesModel, ecModel) {
    var resetDefines = [];
    ecModel.eachComponent('visualMap', function (visualMapModel) {
      var pipelineContext = seriesModel.pipelineContext;
      if (!visualMapModel.isTargetSeries(seriesModel) || pipelineContext && pipelineContext.large) {
        return;
      }
      resetDefines.push(incrementalApplyVisual(visualMapModel.stateList, visualMapModel.targetVisuals, util["bind"](visualMapModel.getValueState, visualMapModel), visualMapModel.getDataDimensionIndex(seriesModel.getData())));
    });
    return resetDefines;
  }
},
// Only support color.
{
  createOnAllSeries: true,
  reset: function (seriesModel, ecModel) {
    var data = seriesModel.getData();
    var visualMetaList = [];
    ecModel.eachComponent('visualMap', function (visualMapModel) {
      if (visualMapModel.isTargetSeries(seriesModel)) {
        var visualMeta = visualMapModel.getVisualMeta(util["bind"](visualEncoding_getColorVisual, null, seriesModel, visualMapModel)) || {
          stops: [],
          outerColors: []
        };
        var dimIdx = visualMapModel.getDataDimensionIndex(data);
        if (dimIdx >= 0) {
          // visualMeta.dimension should be dimension index, but not concrete dimension.
          visualMeta.dimension = dimIdx;
          visualMetaList.push(visualMeta);
        }
      }
    });
    // console.log(JSON.stringify(visualMetaList.map(a => a.stops)));
    seriesModel.getData().setVisual('visualMeta', visualMetaList);
  }
}];
// FIXME
// performance and export for heatmap?
// value can be Infinity or -Infinity
function visualEncoding_getColorVisual(seriesModel, visualMapModel, value, valueState) {
  var mappings = visualMapModel.targetVisuals[valueState];
  var visualTypes = visual_VisualMapping.prepareVisualTypes(mappings);
  var resultVisual = {
    color: getVisualFromData(seriesModel.getData(), 'color') // default color.
  };
  for (var i = 0, len = visualTypes.length; i < len; i++) {
    var type = visualTypes[i];
    var mapping = mappings[type === 'opacity' ? '__alphaForOpacity' : type];
    mapping && mapping.applyVisual(value, getVisual, setVisual);
  }
  return resultVisual.color;
  function getVisual(key) {
    return resultVisual[key];
  }
  function setVisual(key, value) {
    resultVisual[key] = value;
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/preprocessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck

var preprocessor_each = util["each"];
function visualMapPreprocessor(option) {
  var visualMap = option && option.visualMap;
  if (!util["isArray"](visualMap)) {
    visualMap = visualMap ? [visualMap] : [];
  }
  preprocessor_each(visualMap, function (opt) {
    if (!opt) {
      return;
    }
    // rename splitList to pieces
    if (visualMap_preprocessor_has(opt, 'splitList') && !visualMap_preprocessor_has(opt, 'pieces')) {
      opt.pieces = opt.splitList;
      delete opt.splitList;
    }
    var pieces = opt.pieces;
    if (pieces && util["isArray"](pieces)) {
      preprocessor_each(pieces, function (piece) {
        if (util["isObject"](piece)) {
          if (visualMap_preprocessor_has(piece, 'start') && !visualMap_preprocessor_has(piece, 'min')) {
            piece.min = piece.start;
          }
          if (visualMap_preprocessor_has(piece, 'end') && !visualMap_preprocessor_has(piece, 'max')) {
            piece.max = piece.end;
          }
        }
      });
    }
  });
}
function visualMap_preprocessor_has(obj, name) {
  return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/installCommon.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/




var installCommon_installed = false;
function installCommon_installCommon(registers) {
  if (installCommon_installed) {
    return;
  }
  installCommon_installed = true;
  registers.registerSubTypeDefaulter('visualMap', function (option) {
    // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.
    return !option.categories && (!(option.pieces ? option.pieces.length > 0 : option.splitNumber > 0) || option.calculable) ? 'continuous' : 'piecewise';
  });
  registers.registerAction(visualMapActionInfo, visualMapActionHander);
  Object(util["each"])(visualMapEncodingHandlers, function (handler) {
    registers.registerVisual(registers.PRIORITY.VISUAL.COMPONENT, handler);
  });
  registers.registerPreprocessor(visualMapPreprocessor);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function installVisualMapContinuous_install(registers) {
  registers.registerComponentModel(visualMap_ContinuousModel);
  registers.registerComponentView(visualMap_ContinuousView);
  installCommon_installCommon(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/PiecewiseModel.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/







var PiecewiseModel_PiecewiseModel = /** @class */function (_super) {
  __extends(PiecewiseModel, _super);
  function PiecewiseModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = PiecewiseModel.type;
    /**
     * The order is always [low, ..., high].
     * [{text: string, interval: Array.<number>}, ...]
     */
    _this._pieceList = [];
    return _this;
  }
  PiecewiseModel.prototype.optionUpdated = function (newOption, isInit) {
    _super.prototype.optionUpdated.apply(this, arguments);
    this.resetExtent();
    var mode = this._mode = this._determineMode();
    this._pieceList = [];
    resetMethods[this._mode].call(this, this._pieceList);
    this._resetSelected(newOption, isInit);
    var categories = this.option.categories;
    this.resetVisual(function (mappingOption, state) {
      if (mode === 'categories') {
        mappingOption.mappingMethod = 'category';
        mappingOption.categories = util["clone"](categories);
      } else {
        mappingOption.dataExtent = this.getExtent();
        mappingOption.mappingMethod = 'piecewise';
        mappingOption.pieceList = util["map"](this._pieceList, function (piece) {
          piece = util["clone"](piece);
          if (state !== 'inRange') {
            // FIXME
            // outOfRange do not support special visual in pieces.
            piece.visual = null;
          }
          return piece;
        });
      }
    });
  };
  /**
   * @protected
   * @override
   */
  PiecewiseModel.prototype.completeVisualOption = function () {
    // Consider this case:
    // visualMap: {
    //      pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}]
    // }
    // where no inRange/outOfRange set but only pieces. So we should make
    // default inRange/outOfRange for this case, otherwise visuals that only
    // appear in `pieces` will not be taken into account in visual encoding.
    var option = this.option;
    var visualTypesInPieces = {};
    var visualTypes = visual_VisualMapping.listVisualTypes();
    var isCategory = this.isCategory();
    util["each"](option.pieces, function (piece) {
      util["each"](visualTypes, function (visualType) {
        if (piece.hasOwnProperty(visualType)) {
          visualTypesInPieces[visualType] = 1;
        }
      });
    });
    util["each"](visualTypesInPieces, function (v, visualType) {
      var exists = false;
      util["each"](this.stateList, function (state) {
        exists = exists || has(option, state, visualType) || has(option.target, state, visualType);
      }, this);
      !exists && util["each"](this.stateList, function (state) {
        (option[state] || (option[state] = {}))[visualType] = visual_visualDefault.get(visualType, state === 'inRange' ? 'active' : 'inactive', isCategory);
      });
    }, this);
    function has(obj, state, visualType) {
      return obj && obj[state] && obj[state].hasOwnProperty(visualType);
    }
    _super.prototype.completeVisualOption.apply(this, arguments);
  };
  PiecewiseModel.prototype._resetSelected = function (newOption, isInit) {
    var thisOption = this.option;
    var pieceList = this._pieceList;
    // Selected do not merge but all override.
    var selected = (isInit ? thisOption : newOption).selected || {};
    thisOption.selected = selected;
    // Consider 'not specified' means true.
    util["each"](pieceList, function (piece, index) {
      var key = this.getSelectedMapKey(piece);
      if (!selected.hasOwnProperty(key)) {
        selected[key] = true;
      }
    }, this);
    if (thisOption.selectedMode === 'single') {
      // Ensure there is only one selected.
      var hasSel_1 = false;
      util["each"](pieceList, function (piece, index) {
        var key = this.getSelectedMapKey(piece);
        if (selected[key]) {
          hasSel_1 ? selected[key] = false : hasSel_1 = true;
        }
      }, this);
    }
    // thisOption.selectedMode === 'multiple', default: all selected.
  };
  /**
   * @public
   */
  PiecewiseModel.prototype.getItemSymbol = function () {
    return this.get('itemSymbol');
  };
  /**
   * @public
   */
  PiecewiseModel.prototype.getSelectedMapKey = function (piece) {
    return this._mode === 'categories' ? piece.value + '' : piece.index + '';
  };
  /**
   * @public
   */
  PiecewiseModel.prototype.getPieceList = function () {
    return this._pieceList;
  };
  /**
   * @return {string}
   */
  PiecewiseModel.prototype._determineMode = function () {
    var option = this.option;
    return option.pieces && option.pieces.length > 0 ? 'pieces' : this.option.categories ? 'categories' : 'splitNumber';
  };
  /**
   * @override
   */
  PiecewiseModel.prototype.setSelected = function (selected) {
    this.option.selected = util["clone"](selected);
  };
  /**
   * @override
   */
  PiecewiseModel.prototype.getValueState = function (value) {
    var index = visual_VisualMapping.findPieceIndex(value, this._pieceList);
    return index != null ? this.option.selected[this.getSelectedMapKey(this._pieceList[index])] ? 'inRange' : 'outOfRange' : 'outOfRange';
  };
  /**
   * @public
   * @param pieceIndex piece index in visualMapModel.getPieceList()
   */
  PiecewiseModel.prototype.findTargetDataIndices = function (pieceIndex) {
    var result = [];
    var pieceList = this._pieceList;
    this.eachTargetSeries(function (seriesModel) {
      var dataIndices = [];
      var data = seriesModel.getData();
      data.each(this.getDataDimensionIndex(data), function (value, dataIndex) {
        // Should always base on model pieceList, because it is order sensitive.
        var pIdx = visual_VisualMapping.findPieceIndex(value, pieceList);
        pIdx === pieceIndex && dataIndices.push(dataIndex);
      }, this);
      result.push({
        seriesId: seriesModel.id,
        dataIndex: dataIndices
      });
    }, this);
    return result;
  };
  /**
   * @private
   * @param piece piece.value or piece.interval is required.
   * @return  Can be Infinity or -Infinity
   */
  PiecewiseModel.prototype.getRepresentValue = function (piece) {
    var representValue;
    if (this.isCategory()) {
      representValue = piece.value;
    } else {
      if (piece.value != null) {
        representValue = piece.value;
      } else {
        var pieceInterval = piece.interval || [];
        representValue = pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity ? 0 : (pieceInterval[0] + pieceInterval[1]) / 2;
      }
    }
    return representValue;
  };
  PiecewiseModel.prototype.getVisualMeta = function (getColorVisual) {
    // Do not support category. (category axis is ordinal, numerical)
    if (this.isCategory()) {
      return;
    }
    var stops = [];
    var outerColors = ['', ''];
    var visualMapModel = this;
    function setStop(interval, valueState) {
      var representValue = visualMapModel.getRepresentValue({
        interval: interval
      }); // Not category
      if (!valueState) {
        valueState = visualMapModel.getValueState(representValue);
      }
      var color = getColorVisual(representValue, valueState);
      if (interval[0] === -Infinity) {
        outerColors[0] = color;
      } else if (interval[1] === Infinity) {
        outerColors[1] = color;
      } else {
        stops.push({
          value: interval[0],
          color: color
        }, {
          value: interval[1],
          color: color
        });
      }
    }
    // Suplement
    var pieceList = this._pieceList.slice();
    if (!pieceList.length) {
      pieceList.push({
        interval: [-Infinity, Infinity]
      });
    } else {
      var edge = pieceList[0].interval[0];
      edge !== -Infinity && pieceList.unshift({
        interval: [-Infinity, edge]
      });
      edge = pieceList[pieceList.length - 1].interval[1];
      edge !== Infinity && pieceList.push({
        interval: [edge, Infinity]
      });
    }
    var curr = -Infinity;
    util["each"](pieceList, function (piece) {
      var interval = piece.interval;
      if (interval) {
        // Fulfill gap.
        interval[0] > curr && setStop([curr, interval[0]], 'outOfRange');
        setStop(interval.slice());
        curr = interval[1];
      }
    }, this);
    return {
      stops: stops,
      outerColors: outerColors
    };
  };
  PiecewiseModel.type = 'visualMap.piecewise';
  PiecewiseModel.defaultOption = inheritDefaultOption(visualMap_VisualMapModel.defaultOption, {
    selected: null,
    minOpen: false,
    maxOpen: false,
    align: 'auto',
    itemWidth: 20,
    itemHeight: 14,
    itemSymbol: 'roundRect',
    pieces: null,
    categories: null,
    splitNumber: 5,
    selectedMode: 'multiple',
    itemGap: 10,
    hoverLink: true // Enable hover highlight.
  });
  return PiecewiseModel;
}(visualMap_VisualMapModel);
;
/**
 * Key is this._mode
 * @type {Object}
 * @this {module:echarts/component/viusalMap/PiecewiseMode}
 */
var resetMethods = {
  splitNumber: function (outPieceList) {
    var thisOption = this.option;
    var precision = Math.min(thisOption.precision, 20);
    var dataExtent = this.getExtent();
    var splitNumber = thisOption.splitNumber;
    splitNumber = Math.max(parseInt(splitNumber, 10), 1);
    thisOption.splitNumber = splitNumber;
    var splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber;
    // Precision auto-adaption
    while (+splitStep.toFixed(precision) !== splitStep && precision < 5) {
      precision++;
    }
    thisOption.precision = precision;
    splitStep = +splitStep.toFixed(precision);
    if (thisOption.minOpen) {
      outPieceList.push({
        interval: [-Infinity, dataExtent[0]],
        close: [0, 0]
      });
    }
    for (var index = 0, curr = dataExtent[0]; index < splitNumber; curr += splitStep, index++) {
      var max = index === splitNumber - 1 ? dataExtent[1] : curr + splitStep;
      outPieceList.push({
        interval: [curr, max],
        close: [1, 1]
      });
    }
    if (thisOption.maxOpen) {
      outPieceList.push({
        interval: [dataExtent[1], Infinity],
        close: [0, 0]
      });
    }
    reformIntervals(outPieceList);
    util["each"](outPieceList, function (piece, index) {
      piece.index = index;
      piece.text = this.formatValueText(piece.interval);
    }, this);
  },
  categories: function (outPieceList) {
    var thisOption = this.option;
    util["each"](thisOption.categories, function (cate) {
      // FIXME category模式也使用pieceList，但在visualMapping中不是使用pieceList。
      // 是否改一致。
      outPieceList.push({
        text: this.formatValueText(cate, true),
        value: cate
      });
    }, this);
    // See "Order Rule".
    normalizeReverse(thisOption, outPieceList);
  },
  pieces: function (outPieceList) {
    var thisOption = this.option;
    util["each"](thisOption.pieces, function (pieceListItem, index) {
      if (!util["isObject"](pieceListItem)) {
        pieceListItem = {
          value: pieceListItem
        };
      }
      var item = {
        text: '',
        index: index
      };
      if (pieceListItem.label != null) {
        item.text = pieceListItem.label;
      }
      if (pieceListItem.hasOwnProperty('value')) {
        var value = item.value = pieceListItem.value;
        item.interval = [value, value];
        item.close = [1, 1];
      } else {
        // `min` `max` is legacy option.
        // `lt` `gt` `lte` `gte` is recommended.
        var interval = item.interval = [];
        var close_1 = item.close = [0, 0];
        var closeList = [1, 0, 1];
        var infinityList = [-Infinity, Infinity];
        var useMinMax = [];
        for (var lg = 0; lg < 2; lg++) {
          var names = [['gte', 'gt', 'min'], ['lte', 'lt', 'max']][lg];
          for (var i = 0; i < 3 && interval[lg] == null; i++) {
            interval[lg] = pieceListItem[names[i]];
            close_1[lg] = closeList[i];
            useMinMax[lg] = i === 2;
          }
          interval[lg] == null && (interval[lg] = infinityList[lg]);
        }
        useMinMax[0] && interval[1] === Infinity && (close_1[0] = 0);
        useMinMax[1] && interval[0] === -Infinity && (close_1[1] = 0);
        if (false) {}
        if (interval[0] === interval[1] && close_1[0] && close_1[1]) {
          // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],
          // we use value to lift the priority when min === max
          item.value = interval[0];
        }
      }
      item.visual = visual_VisualMapping.retrieveVisuals(pieceListItem);
      outPieceList.push(item);
    }, this);
    // See "Order Rule".
    normalizeReverse(thisOption, outPieceList);
    // Only pieces
    reformIntervals(outPieceList);
    util["each"](outPieceList, function (piece) {
      var close = piece.close;
      var edgeSymbols = [['<', '≤'][close[1]], ['>', '≥'][close[0]]];
      piece.text = piece.text || this.formatValueText(piece.value != null ? piece.value : piece.interval, false, edgeSymbols);
    }, this);
  }
};
function normalizeReverse(thisOption, pieceList) {
  var inverse = thisOption.inverse;
  if (thisOption.orient === 'vertical' ? !inverse : inverse) {
    pieceList.reverse();
  }
}
/* harmony default export */ var visualMap_PiecewiseModel = (PiecewiseModel_PiecewiseModel);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/PiecewiseView.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/








var PiecewiseView_PiecewiseVisualMapView = /** @class */function (_super) {
  __extends(PiecewiseVisualMapView, _super);
  function PiecewiseVisualMapView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = PiecewiseVisualMapView.type;
    return _this;
  }
  PiecewiseVisualMapView.prototype.doRender = function () {
    var thisGroup = this.group;
    thisGroup.removeAll();
    var visualMapModel = this.visualMapModel;
    var textGap = visualMapModel.get('textGap');
    var textStyleModel = visualMapModel.textStyleModel;
    var textFont = textStyleModel.getFont();
    var textFill = textStyleModel.getTextColor();
    var itemAlign = this._getItemAlign();
    var itemSize = visualMapModel.itemSize;
    var viewData = this._getViewData();
    var endsText = viewData.endsText;
    var showLabel = util["retrieve"](visualMapModel.get('showLabel', true), !endsText);
    var silent = !visualMapModel.get('selectedMode');
    endsText && this._renderEndsText(thisGroup, endsText[0], itemSize, showLabel, itemAlign);
    util["each"](viewData.viewPieceList, function (item) {
      var piece = item.piece;
      var itemGroup = new graphic_Group();
      itemGroup.onclick = util["bind"](this._onItemClick, this, piece);
      this._enableHoverLink(itemGroup, item.indexInModelPieceList);
      // TODO Category
      var representValue = visualMapModel.getRepresentValue(piece);
      this._createItemSymbol(itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]], silent);
      if (showLabel) {
        var visualState = this.visualMapModel.getValueState(representValue);
        itemGroup.add(new Text({
          style: {
            x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap,
            y: itemSize[1] / 2,
            text: piece.text,
            verticalAlign: 'middle',
            align: itemAlign,
            font: textFont,
            fill: textFill,
            opacity: visualState === 'outOfRange' ? 0.5 : 1
          },
          silent: silent
        }));
      }
      thisGroup.add(itemGroup);
    }, this);
    endsText && this._renderEndsText(thisGroup, endsText[1], itemSize, showLabel, itemAlign);
    layout_box(visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap'));
    this.renderBackground(thisGroup);
    this.positionGroup(thisGroup);
  };
  PiecewiseVisualMapView.prototype._enableHoverLink = function (itemGroup, pieceIndex) {
    var _this = this;
    itemGroup.on('mouseover', function () {
      return onHoverLink('highlight');
    }).on('mouseout', function () {
      return onHoverLink('downplay');
    });
    var onHoverLink = function (method) {
      var visualMapModel = _this.visualMapModel;
      // TODO: TYPE More detailed action types
      visualMapModel.option.hoverLink && _this.api.dispatchAction({
        type: method,
        batch: makeHighDownBatch(visualMapModel.findTargetDataIndices(pieceIndex), visualMapModel)
      });
    };
  };
  PiecewiseVisualMapView.prototype._getItemAlign = function () {
    var visualMapModel = this.visualMapModel;
    var modelOption = visualMapModel.option;
    if (modelOption.orient === 'vertical') {
      return getItemAlign(visualMapModel, this.api, visualMapModel.itemSize);
    } else {
      // horizontal, most case left unless specifying right.
      var align = modelOption.align;
      if (!align || align === 'auto') {
        align = 'left';
      }
      return align;
    }
  };
  PiecewiseVisualMapView.prototype._renderEndsText = function (group, text, itemSize, showLabel, itemAlign) {
    if (!text) {
      return;
    }
    var itemGroup = new graphic_Group();
    var textStyleModel = this.visualMapModel.textStyleModel;
    itemGroup.add(new Text({
      style: createTextStyle(textStyleModel, {
        x: showLabel ? itemAlign === 'right' ? itemSize[0] : 0 : itemSize[0] / 2,
        y: itemSize[1] / 2,
        verticalAlign: 'middle',
        align: showLabel ? itemAlign : 'center',
        text: text
      })
    }));
    group.add(itemGroup);
  };
  /**
   * @private
   * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.
   */
  PiecewiseVisualMapView.prototype._getViewData = function () {
    var visualMapModel = this.visualMapModel;
    var viewPieceList = util["map"](visualMapModel.getPieceList(), function (piece, index) {
      return {
        piece: piece,
        indexInModelPieceList: index
      };
    });
    var endsText = visualMapModel.get('text');
    // Consider orient and inverse.
    var orient = visualMapModel.get('orient');
    var inverse = visualMapModel.get('inverse');
    // Order of model pieceList is always [low, ..., high]
    if (orient === 'horizontal' ? inverse : !inverse) {
      viewPieceList.reverse();
    }
    // Origin order of endsText is [high, low]
    else if (endsText) {
      endsText = endsText.slice().reverse();
    }
    return {
      viewPieceList: viewPieceList,
      endsText: endsText
    };
  };
  PiecewiseVisualMapView.prototype._createItemSymbol = function (group, representValue, shapeParam, silent) {
    var itemSymbol = symbol_createSymbol(
    // symbol will be string
    this.getControllerVisual(representValue, 'symbol'), shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3],
    // color will be string
    this.getControllerVisual(representValue, 'color'));
    itemSymbol.silent = silent;
    group.add(itemSymbol);
  };
  PiecewiseVisualMapView.prototype._onItemClick = function (piece) {
    var visualMapModel = this.visualMapModel;
    var option = visualMapModel.option;
    var selectedMode = option.selectedMode;
    if (!selectedMode) {
      return;
    }
    var selected = util["clone"](option.selected);
    var newKey = visualMapModel.getSelectedMapKey(piece);
    if (selectedMode === 'single' || selectedMode === true) {
      selected[newKey] = true;
      util["each"](selected, function (o, key) {
        selected[key] = key === newKey;
      });
    } else {
      selected[newKey] = !selected[newKey];
    }
    this.api.dispatchAction({
      type: 'selectDataRange',
      from: this.uid,
      visualMapId: this.visualMapModel.id,
      selected: selected
    });
  };
  PiecewiseVisualMapView.type = 'visualMap.piecewise';
  return PiecewiseVisualMapView;
}(visualMap_VisualMapView);
/* harmony default export */ var PiecewiseView = (PiecewiseView_PiecewiseVisualMapView);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function installVisualMapPiecewise_install(registers) {
  registers.registerComponentModel(visualMap_PiecewiseModel);
  registers.registerComponentView(PiecewiseView);
  installCommon_installCommon(registers);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



function visualMap_install_install(registers) {
  use(installVisualMapContinuous_install);
  use(installVisualMapPiecewise_install);
  // Do not install './dataZoomSelect',
  // since it only work for toolbox dataZoom.
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/aria.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var DEFAULT_OPTION = {
  label: {
    enabled: true
  },
  decal: {
    show: false
  }
};
var aria_inner = makeInner();
var aria_decalPaletteScope = {};
function ariaVisual(ecModel, api) {
  var ariaModel = ecModel.getModel('aria');
  // See "area enabled" detection code in `GlobalModel.ts`.
  if (!ariaModel.get('enabled')) {
    return;
  }
  var defaultOption = util["clone"](DEFAULT_OPTION);
  util["merge"](defaultOption.label, ecModel.getLocaleModel().get('aria'), false);
  util["merge"](ariaModel.option, defaultOption, false);
  setDecal();
  setLabel();
  function setDecal() {
    var decalModel = ariaModel.getModel('decal');
    var useDecal = decalModel.get('show');
    if (useDecal) {
      // Each type of series use one scope.
      // Pie and funnel are using different scopes.
      var paletteScopeGroupByType_1 = util["createHashMap"]();
      ecModel.eachSeries(function (seriesModel) {
        if (seriesModel.isColorBySeries()) {
          return;
        }
        var decalScope = paletteScopeGroupByType_1.get(seriesModel.type);
        if (!decalScope) {
          decalScope = {};
          paletteScopeGroupByType_1.set(seriesModel.type, decalScope);
        }
        aria_inner(seriesModel).scope = decalScope;
      });
      ecModel.eachRawSeries(function (seriesModel) {
        if (ecModel.isSeriesFiltered(seriesModel)) {
          return;
        }
        if (util["isFunction"](seriesModel.enableAriaDecal)) {
          // Let series define how to use decal palette on data
          seriesModel.enableAriaDecal();
          return;
        }
        var data = seriesModel.getData();
        if (!seriesModel.isColorBySeries()) {
          var dataAll_1 = seriesModel.getRawData();
          var idxMap_1 = {};
          var decalScope_1 = aria_inner(seriesModel).scope;
          data.each(function (idx) {
            var rawIdx = data.getRawIndex(idx);
            idxMap_1[rawIdx] = idx;
          });
          var dataCount_1 = dataAll_1.count();
          dataAll_1.each(function (rawIdx) {
            var idx = idxMap_1[rawIdx];
            var name = dataAll_1.getName(rawIdx) || rawIdx + '';
            var paletteDecal = getDecalFromPalette(seriesModel.ecModel, name, decalScope_1, dataCount_1);
            var specifiedDecal = data.getItemVisual(idx, 'decal');
            data.setItemVisual(idx, 'decal', mergeDecal(specifiedDecal, paletteDecal));
          });
        } else {
          var paletteDecal = getDecalFromPalette(seriesModel.ecModel, seriesModel.name, aria_decalPaletteScope, ecModel.getSeriesCount());
          var specifiedDecal = data.getVisual('decal');
          data.setVisual('decal', mergeDecal(specifiedDecal, paletteDecal));
        }
        function mergeDecal(specifiedDecal, paletteDecal) {
          // Merge decal from palette to decal from itemStyle.
          // User do not need to specify all of the decal props.
          var resultDecal = specifiedDecal ? util["extend"](util["extend"]({}, paletteDecal), specifiedDecal) : paletteDecal;
          resultDecal.dirty = true;
          return resultDecal;
        }
      });
    }
  }
  function setLabel() {
    var dom = api.getZr().dom;
    // TODO: support for SSR
    if (!dom) {
      return;
    }
    var labelLocale = ecModel.getLocaleModel().get('aria');
    var labelModel = ariaModel.getModel('label');
    labelModel.option = util["defaults"](labelModel.option, labelLocale);
    if (!labelModel.get('enabled')) {
      return;
    }
    dom.setAttribute('role', 'img');
    if (labelModel.get('description')) {
      dom.setAttribute('aria-label', labelModel.get('description'));
      return;
    }
    var seriesCnt = ecModel.getSeriesCount();
    var maxDataCnt = labelModel.get(['data', 'maxCount']) || 10;
    var maxSeriesCnt = labelModel.get(['series', 'maxCount']) || 10;
    var displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt);
    var ariaLabel;
    if (seriesCnt < 1) {
      // No series, no aria label
      return;
    } else {
      var title = getTitle();
      if (title) {
        var withTitle = labelModel.get(['general', 'withTitle']);
        ariaLabel = replace(withTitle, {
          title: title
        });
      } else {
        ariaLabel = labelModel.get(['general', 'withoutTitle']);
      }
      var seriesLabels_1 = [];
      var prefix = seriesCnt > 1 ? labelModel.get(['series', 'multiple', 'prefix']) : labelModel.get(['series', 'single', 'prefix']);
      ariaLabel += replace(prefix, {
        seriesCount: seriesCnt
      });
      ecModel.eachSeries(function (seriesModel, idx) {
        if (idx < displaySeriesCnt) {
          var seriesLabel = void 0;
          var seriesName = seriesModel.get('name');
          var withName = seriesName ? 'withName' : 'withoutName';
          seriesLabel = seriesCnt > 1 ? labelModel.get(['series', 'multiple', withName]) : labelModel.get(['series', 'single', withName]);
          seriesLabel = replace(seriesLabel, {
            seriesId: seriesModel.seriesIndex,
            seriesName: seriesModel.get('name'),
            seriesType: getSeriesTypeName(seriesModel.subType)
          });
          var data = seriesModel.getData();
          if (data.count() > maxDataCnt) {
            // Show part of data
            var partialLabel = labelModel.get(['data', 'partialData']);
            seriesLabel += replace(partialLabel, {
              displayCnt: maxDataCnt
            });
          } else {
            seriesLabel += labelModel.get(['data', 'allData']);
          }
          var middleSeparator_1 = labelModel.get(['data', 'separator', 'middle']);
          var endSeparator_1 = labelModel.get(['data', 'separator', 'end']);
          var excludeDimensionId_1 = labelModel.get(['data', 'excludeDimensionId']);
          var dataLabels = [];
          for (var i = 0; i < data.count(); i++) {
            if (i < maxDataCnt) {
              var name_1 = data.getName(i);
              var value = !excludeDimensionId_1 ? data.getValues(i) : util["filter"](data.getValues(i), function (v, j) {
                return util["indexOf"](excludeDimensionId_1, j) === -1;
              });
              var dataLabel = labelModel.get(['data', name_1 ? 'withName' : 'withoutName']);
              dataLabels.push(replace(dataLabel, {
                name: name_1,
                value: value.join(middleSeparator_1)
              }));
            }
          }
          seriesLabel += dataLabels.join(middleSeparator_1) + endSeparator_1;
          seriesLabels_1.push(seriesLabel);
        }
      });
      var separatorModel = labelModel.getModel(['series', 'multiple', 'separator']);
      var middleSeparator = separatorModel.get('middle');
      var endSeparator = separatorModel.get('end');
      ariaLabel += seriesLabels_1.join(middleSeparator) + endSeparator;
      dom.setAttribute('aria-label', ariaLabel);
    }
  }
  function replace(str, keyValues) {
    if (!util["isString"](str)) {
      return str;
    }
    var result = str;
    util["each"](keyValues, function (value, key) {
      result = result.replace(new RegExp('\\{\\s*' + key + '\\s*\\}', 'g'), value);
    });
    return result;
  }
  function getTitle() {
    var title = ecModel.get('title');
    if (title && title.length) {
      title = title[0];
    }
    return title && title.text;
  }
  function getSeriesTypeName(type) {
    var typeNames = ecModel.getLocaleModel().get(['series', 'typeNames']);
    return typeNames[type] || typeNames.chart;
  }
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/aria/preprocessor.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

function ariaPreprocessor(option) {
  if (!option || !option.aria) {
    return;
  }
  var aria = option.aria;
  // aria.show is deprecated and should use aria.enabled instead
  if (aria.show != null) {
    aria.enabled = aria.show;
  }
  aria.label = aria.label || {};
  // move description, general, series, data to be under aria.label
  util["each"](['description', 'general', 'series', 'data'], function (name) {
    if (aria[name] != null) {
      aria.label[name] = aria[name];
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/aria/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function aria_install_install(registers) {
  registers.registerPreprocessor(ariaPreprocessor);
  registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/conditionalExpression.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



;
var RELATIONAL_EXPRESSION_OP_ALIAS_MAP = {
  value: 'eq',
  // PENDING: not good for literal semantic?
  '<': 'lt',
  '<=': 'lte',
  '>': 'gt',
  '>=': 'gte',
  '=': 'eq',
  '!=': 'ne',
  '<>': 'ne'
  // Might be misleading for sake of the difference between '==' and '===',
  // so don't support them.
  // '==': 'eq',
  // '===': 'seq',
  // '!==': 'sne'
  // PENDING: Whether support some common alias "ge", "le", "neq"?
  // ge: 'gte',
  // le: 'lte',
  // neq: 'ne',
};
// type RelationalExpressionOpEvaluate = (tarVal: unknown, condVal: unknown) => boolean;
var conditionalExpression_RegExpEvaluator = /** @class */function () {
  function RegExpEvaluator(rVal) {
    // Support condVal: RegExp | string
    var condValue = this._condVal = Object(util["isString"])(rVal) ? new RegExp(rVal) : Object(util["isRegExp"])(rVal) ? rVal : null;
    if (condValue == null) {
      var errMsg = '';
      if (false) {}
      throwError(errMsg);
    }
  }
  RegExpEvaluator.prototype.evaluate = function (lVal) {
    var type = typeof lVal;
    return Object(util["isString"])(type) ? this._condVal.test(lVal) : Object(util["isNumber"])(type) ? this._condVal.test(lVal + '') : false;
  };
  return RegExpEvaluator;
}();
var ConstConditionInternal = /** @class */function () {
  function ConstConditionInternal() {}
  ConstConditionInternal.prototype.evaluate = function () {
    return this.value;
  };
  return ConstConditionInternal;
}();
var AndConditionInternal = /** @class */function () {
  function AndConditionInternal() {}
  AndConditionInternal.prototype.evaluate = function () {
    var children = this.children;
    for (var i = 0; i < children.length; i++) {
      if (!children[i].evaluate()) {
        return false;
      }
    }
    return true;
  };
  return AndConditionInternal;
}();
var OrConditionInternal = /** @class */function () {
  function OrConditionInternal() {}
  OrConditionInternal.prototype.evaluate = function () {
    var children = this.children;
    for (var i = 0; i < children.length; i++) {
      if (children[i].evaluate()) {
        return true;
      }
    }
    return false;
  };
  return OrConditionInternal;
}();
var NotConditionInternal = /** @class */function () {
  function NotConditionInternal() {}
  NotConditionInternal.prototype.evaluate = function () {
    return !this.child.evaluate();
  };
  return NotConditionInternal;
}();
var RelationalConditionInternal = /** @class */function () {
  function RelationalConditionInternal() {}
  RelationalConditionInternal.prototype.evaluate = function () {
    var needParse = !!this.valueParser;
    // Call getValue with no `this`.
    var getValue = this.getValue;
    var tarValRaw = getValue(this.valueGetterParam);
    var tarValParsed = needParse ? this.valueParser(tarValRaw) : null;
    // Relational cond follow "and" logic internally.
    for (var i = 0; i < this.subCondList.length; i++) {
      if (!this.subCondList[i].evaluate(needParse ? tarValParsed : tarValRaw)) {
        return false;
      }
    }
    return true;
  };
  return RelationalConditionInternal;
}();
function parseOption(exprOption, getters) {
  if (exprOption === true || exprOption === false) {
    var cond = new ConstConditionInternal();
    cond.value = exprOption;
    return cond;
  }
  var errMsg = '';
  if (!isObjectNotArray(exprOption)) {
    if (false) {}
    throwError(errMsg);
  }
  if (exprOption.and) {
    return parseAndOrOption('and', exprOption, getters);
  } else if (exprOption.or) {
    return parseAndOrOption('or', exprOption, getters);
  } else if (exprOption.not) {
    return parseNotOption(exprOption, getters);
  }
  return parseRelationalOption(exprOption, getters);
}
function parseAndOrOption(op, exprOption, getters) {
  var subOptionArr = exprOption[op];
  var errMsg = '';
  if (false) {}
  if (!Object(util["isArray"])(subOptionArr)) {
    throwError(errMsg);
  }
  if (!subOptionArr.length) {
    throwError(errMsg);
  }
  var cond = op === 'and' ? new AndConditionInternal() : new OrConditionInternal();
  cond.children = Object(util["map"])(subOptionArr, function (subOption) {
    return parseOption(subOption, getters);
  });
  if (!cond.children.length) {
    throwError(errMsg);
  }
  return cond;
}
function parseNotOption(exprOption, getters) {
  var subOption = exprOption.not;
  var errMsg = '';
  if (false) {}
  if (!isObjectNotArray(subOption)) {
    throwError(errMsg);
  }
  var cond = new NotConditionInternal();
  cond.child = parseOption(subOption, getters);
  if (!cond.child) {
    throwError(errMsg);
  }
  return cond;
}
function parseRelationalOption(exprOption, getters) {
  var errMsg = '';
  var valueGetterParam = getters.prepareGetValue(exprOption);
  var subCondList = [];
  var exprKeys = Object(util["keys"])(exprOption);
  var parserName = exprOption.parser;
  var valueParser = parserName ? getRawValueParser(parserName) : null;
  for (var i = 0; i < exprKeys.length; i++) {
    var keyRaw = exprKeys[i];
    if (keyRaw === 'parser' || getters.valueGetterAttrMap.get(keyRaw)) {
      continue;
    }
    var op = Object(util["hasOwn"])(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw) ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw] : keyRaw;
    var condValueRaw = exprOption[keyRaw];
    var condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw;
    var evaluator = createFilterComparator(op, condValueParsed) || op === 'reg' && new conditionalExpression_RegExpEvaluator(condValueParsed);
    if (!evaluator) {
      if (false) {}
      throwError(errMsg);
    }
    subCondList.push(evaluator);
  }
  if (!subCondList.length) {
    if (false) {}
    // No relational operator always disabled in case of dangers result.
    throwError(errMsg);
  }
  var cond = new RelationalConditionInternal();
  cond.valueGetterParam = valueGetterParam;
  cond.valueParser = valueParser;
  cond.getValue = getters.getValue;
  cond.subCondList = subCondList;
  return cond;
}
function isObjectNotArray(val) {
  return Object(util["isObject"])(val) && !Object(util["isArrayLike"])(val);
}
var ConditionalExpressionParsed = /** @class */function () {
  function ConditionalExpressionParsed(exprOption, getters) {
    this._cond = parseOption(exprOption, getters);
  }
  ConditionalExpressionParsed.prototype.evaluate = function () {
    return this._cond.evaluate();
  };
  return ConditionalExpressionParsed;
}();
;
function parseConditionalExpression(exprOption, getters) {
  return new ConditionalExpressionParsed(exprOption, getters);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/transform/filterTransform.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/



var filterTransform = {
  type: 'echarts:filter',
  // PENDING: enhance to filter by index rather than create new data
  transform: function (params) {
    // [Caveat] Fail-Fast:
    // Do not return the whole dataset unless user config indicates it explicitly.
    // For example, if no condition is specified by mistake, returning an empty result
    // is better than returning the entire raw source for the user to find the mistake.
    var upstream = params.upstream;
    var rawItem;
    var condition = parseConditionalExpression(params.config, {
      valueGetterAttrMap: Object(util["createHashMap"])({
        dimension: true
      }),
      prepareGetValue: function (exprOption) {
        var errMsg = '';
        var dimLoose = exprOption.dimension;
        if (!Object(util["hasOwn"])(exprOption, 'dimension')) {
          if (false) {}
          throwError(errMsg);
        }
        var dimInfo = upstream.getDimensionInfo(dimLoose);
        if (!dimInfo) {
          if (false) {}
          throwError(errMsg);
        }
        return {
          dimIdx: dimInfo.index
        };
      },
      getValue: function (param) {
        return upstream.retrieveValueFromItem(rawItem, param.dimIdx);
      }
    });
    var resultData = [];
    for (var i = 0, len = upstream.count(); i < len; i++) {
      rawItem = upstream.getRawDataItem(i);
      if (condition.evaluate()) {
        resultData.push(rawItem);
      }
    }
    return {
      data: resultData
    };
  }
};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/transform/sortTransform.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





var sampleLog = '';
if (false) {}
var sortTransform = {
  type: 'echarts:sort',
  transform: function (params) {
    var upstream = params.upstream;
    var config = params.config;
    var errMsg = '';
    // Normalize
    // const orderExprList: OrderExpression[] = isArray(config[0])
    //     ? config as OrderExpression[]
    //     : [config as OrderExpression];
    var orderExprList = normalizeToArray(config);
    if (!orderExprList.length) {
      if (false) {}
      throwError(errMsg);
    }
    var orderDefList = [];
    Object(util["each"])(orderExprList, function (orderExpr) {
      var dimLoose = orderExpr.dimension;
      var order = orderExpr.order;
      var parserName = orderExpr.parser;
      var incomparable = orderExpr.incomparable;
      if (dimLoose == null) {
        if (false) {}
        throwError(errMsg);
      }
      if (order !== 'asc' && order !== 'desc') {
        if (false) {}
        throwError(errMsg);
      }
      if (incomparable && incomparable !== 'min' && incomparable !== 'max') {
        var errMsg_1 = '';
        if (false) {}
        throwError(errMsg_1);
      }
      if (order !== 'asc' && order !== 'desc') {
        var errMsg_2 = '';
        if (false) {}
        throwError(errMsg_2);
      }
      var dimInfo = upstream.getDimensionInfo(dimLoose);
      if (!dimInfo) {
        if (false) {}
        throwError(errMsg);
      }
      var parser = parserName ? getRawValueParser(parserName) : null;
      if (parserName && !parser) {
        if (false) {}
        throwError(errMsg);
      }
      orderDefList.push({
        dimIdx: dimInfo.index,
        parser: parser,
        comparator: new dataValueHelper_SortOrderComparator(order, incomparable)
      });
    });
    // TODO: support it?
    var sourceFormat = upstream.sourceFormat;
    if (sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {
      if (false) {}
      throwError(errMsg);
    }
    // Other upstream format are all array.
    var resultData = [];
    for (var i = 0, len = upstream.count(); i < len; i++) {
      resultData.push(upstream.getRawDataItem(i));
    }
    resultData.sort(function (item0, item1) {
      for (var i = 0; i < orderDefList.length; i++) {
        var orderDef = orderDefList[i];
        var val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx);
        var val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx);
        if (orderDef.parser) {
          val0 = orderDef.parser(val0);
          val1 = orderDef.parser(val1);
        }
        var result = orderDef.comparator.evaluate(val0, val1);
        if (result !== 0) {
          return result;
        }
      }
      return 0;
    });
    return {
      data: resultData
    };
  }
};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/transform/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


function transform_install_install(registers) {
  registers.registerTransform(filterTransform);
  registers.registerTransform(sortTransform);
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataset/install.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/**
 * This module is imported by echarts directly.
 *
 * Notice:
 * Always keep this file exists for backward compatibility.
 * Because before 4.1.0, dataset is an optional component,
 * some users may import this module manually.
 */




var install_DatasetModel = /** @class */function (_super) {
  __extends(DatasetModel, _super);
  function DatasetModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = 'dataset';
    return _this;
  }
  DatasetModel.prototype.init = function (option, parentModel, ecModel) {
    _super.prototype.init.call(this, option, parentModel, ecModel);
    this._sourceManager = new sourceManager_SourceManager(this);
    disableTransformOptionMerge(this);
  };
  DatasetModel.prototype.mergeOption = function (newOption, ecModel) {
    _super.prototype.mergeOption.call(this, newOption, ecModel);
    disableTransformOptionMerge(this);
  };
  DatasetModel.prototype.optionUpdated = function () {
    this._sourceManager.dirty();
  };
  DatasetModel.prototype.getSourceManager = function () {
    return this._sourceManager;
  };
  DatasetModel.type = 'dataset';
  DatasetModel.defaultOption = {
    seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN
  };
  return DatasetModel;
}(Component);

var install_DatasetView = /** @class */function (_super) {
  __extends(DatasetView, _super);
  function DatasetView() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = 'dataset';
    return _this;
  }
  DatasetView.type = 'dataset';
  return DatasetView;
}(view_Component);
function dataset_install_install(registers) {
  registers.registerComponentModel(install_DatasetModel);
  registers.registerComponentView(install_DatasetView);
}
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/convertPath.js


var convertPath_CMD = core_PathProxy.CMD;
function aroundEqual(a, b) {
    return Math.abs(a - b) < 1e-5;
}
function pathToBezierCurves(path) {
    var data = path.data;
    var len = path.len();
    var bezierArrayGroups = [];
    var currentSubpath;
    var xi = 0;
    var yi = 0;
    var x0 = 0;
    var y0 = 0;
    function createNewSubpath(x, y) {
        if (currentSubpath && currentSubpath.length > 2) {
            bezierArrayGroups.push(currentSubpath);
        }
        currentSubpath = [x, y];
    }
    function addLine(x0, y0, x1, y1) {
        if (!(aroundEqual(x0, x1) && aroundEqual(y0, y1))) {
            currentSubpath.push(x0, y0, x1, y1, x1, y1);
        }
    }
    function addArc(startAngle, endAngle, cx, cy, rx, ry) {
        var delta = Math.abs(endAngle - startAngle);
        var len = Math.tan(delta / 4) * 4 / 3;
        var dir = endAngle < startAngle ? -1 : 1;
        var c1 = Math.cos(startAngle);
        var s1 = Math.sin(startAngle);
        var c2 = Math.cos(endAngle);
        var s2 = Math.sin(endAngle);
        var x1 = c1 * rx + cx;
        var y1 = s1 * ry + cy;
        var x4 = c2 * rx + cx;
        var y4 = s2 * ry + cy;
        var hx = rx * len * dir;
        var hy = ry * len * dir;
        currentSubpath.push(x1 - hx * s1, y1 + hy * c1, x4 + hx * s2, y4 - hy * c2, x4, y4);
    }
    var x1;
    var y1;
    var x2;
    var y2;
    for (var i = 0; i < len;) {
        var cmd = data[i++];
        var isFirst = i === 1;
        if (isFirst) {
            xi = data[i];
            yi = data[i + 1];
            x0 = xi;
            y0 = yi;
            if (cmd === convertPath_CMD.L || cmd === convertPath_CMD.C || cmd === convertPath_CMD.Q) {
                currentSubpath = [x0, y0];
            }
        }
        switch (cmd) {
            case convertPath_CMD.M:
                xi = x0 = data[i++];
                yi = y0 = data[i++];
                createNewSubpath(x0, y0);
                break;
            case convertPath_CMD.L:
                x1 = data[i++];
                y1 = data[i++];
                addLine(xi, yi, x1, y1);
                xi = x1;
                yi = y1;
                break;
            case convertPath_CMD.C:
                currentSubpath.push(data[i++], data[i++], data[i++], data[i++], xi = data[i++], yi = data[i++]);
                break;
            case convertPath_CMD.Q:
                x1 = data[i++];
                y1 = data[i++];
                x2 = data[i++];
                y2 = data[i++];
                currentSubpath.push(xi + 2 / 3 * (x1 - xi), yi + 2 / 3 * (y1 - yi), x2 + 2 / 3 * (x1 - x2), y2 + 2 / 3 * (y1 - y2), x2, y2);
                xi = x2;
                yi = y2;
                break;
            case convertPath_CMD.A:
                var cx = data[i++];
                var cy = data[i++];
                var rx = data[i++];
                var ry = data[i++];
                var startAngle = data[i++];
                var endAngle = data[i++] + startAngle;
                i += 1;
                var anticlockwise = !data[i++];
                x1 = Math.cos(startAngle) * rx + cx;
                y1 = Math.sin(startAngle) * ry + cy;
                if (isFirst) {
                    x0 = x1;
                    y0 = y1;
                    createNewSubpath(x0, y0);
                }
                else {
                    addLine(xi, yi, x1, y1);
                }
                xi = Math.cos(endAngle) * rx + cx;
                yi = Math.sin(endAngle) * ry + cy;
                var step = (anticlockwise ? -1 : 1) * Math.PI / 2;
                for (var angle = startAngle; anticlockwise ? angle > endAngle : angle < endAngle; angle += step) {
                    var nextAngle = anticlockwise ? Math.max(angle + step, endAngle)
                        : Math.min(angle + step, endAngle);
                    addArc(angle, nextAngle, cx, cy, rx, ry);
                }
                break;
            case convertPath_CMD.R:
                x0 = xi = data[i++];
                y0 = yi = data[i++];
                x1 = x0 + data[i++];
                y1 = y0 + data[i++];
                createNewSubpath(x1, y0);
                addLine(x1, y0, x1, y1);
                addLine(x1, y1, x0, y1);
                addLine(x0, y1, x0, y0);
                addLine(x0, y0, x1, y0);
                break;
            case convertPath_CMD.Z:
                currentSubpath && addLine(xi, yi, x0, y0);
                xi = x0;
                yi = y0;
                break;
        }
    }
    if (currentSubpath && currentSubpath.length > 2) {
        bezierArrayGroups.push(currentSubpath);
    }
    return bezierArrayGroups;
}
function adpativeBezier(x0, y0, x1, y1, x2, y2, x3, y3, out, scale) {
    if (aroundEqual(x0, x1) && aroundEqual(y0, y1) && aroundEqual(x2, x3) && aroundEqual(y2, y3)) {
        out.push(x3, y3);
        return;
    }
    var PIXEL_DISTANCE = 2 / scale;
    var PIXEL_DISTANCE_SQR = PIXEL_DISTANCE * PIXEL_DISTANCE;
    var dx = x3 - x0;
    var dy = y3 - y0;
    var d = Math.sqrt(dx * dx + dy * dy);
    dx /= d;
    dy /= d;
    var dx1 = x1 - x0;
    var dy1 = y1 - y0;
    var dx2 = x2 - x3;
    var dy2 = y2 - y3;
    var cp1LenSqr = dx1 * dx1 + dy1 * dy1;
    var cp2LenSqr = dx2 * dx2 + dy2 * dy2;
    if (cp1LenSqr < PIXEL_DISTANCE_SQR && cp2LenSqr < PIXEL_DISTANCE_SQR) {
        out.push(x3, y3);
        return;
    }
    var projLen1 = dx * dx1 + dy * dy1;
    var projLen2 = -dx * dx2 - dy * dy2;
    var d1Sqr = cp1LenSqr - projLen1 * projLen1;
    var d2Sqr = cp2LenSqr - projLen2 * projLen2;
    if (d1Sqr < PIXEL_DISTANCE_SQR && projLen1 >= 0
        && d2Sqr < PIXEL_DISTANCE_SQR && projLen2 >= 0) {
        out.push(x3, y3);
        return;
    }
    var tmpSegX = [];
    var tmpSegY = [];
    cubicSubdivide(x0, x1, x2, x3, 0.5, tmpSegX);
    cubicSubdivide(y0, y1, y2, y3, 0.5, tmpSegY);
    adpativeBezier(tmpSegX[0], tmpSegY[0], tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], tmpSegX[3], tmpSegY[3], out, scale);
    adpativeBezier(tmpSegX[4], tmpSegY[4], tmpSegX[5], tmpSegY[5], tmpSegX[6], tmpSegY[6], tmpSegX[7], tmpSegY[7], out, scale);
}
function pathToPolygons(path, scale) {
    var bezierArrayGroups = pathToBezierCurves(path);
    var polygons = [];
    scale = scale || 1;
    for (var i = 0; i < bezierArrayGroups.length; i++) {
        var beziers = bezierArrayGroups[i];
        var polygon = [];
        var x0 = beziers[0];
        var y0 = beziers[1];
        polygon.push(x0, y0);
        for (var k = 2; k < beziers.length;) {
            var x1 = beziers[k++];
            var y1 = beziers[k++];
            var x2 = beziers[k++];
            var y2 = beziers[k++];
            var x3 = beziers[k++];
            var y3 = beziers[k++];
            adpativeBezier(x0, y0, x1, y1, x2, y2, x3, y3, polygon, scale);
            x0 = x3;
            y0 = y3;
        }
        polygons.push(polygon);
    }
    return polygons;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/dividePath.js









function getDividingGrids(dimSize, rowDim, count) {
    var rowSize = dimSize[rowDim];
    var columnSize = dimSize[1 - rowDim];
    var ratio = Math.abs(rowSize / columnSize);
    var rowCount = Math.ceil(Math.sqrt(ratio * count));
    var columnCount = Math.floor(count / rowCount);
    if (columnCount === 0) {
        columnCount = 1;
        rowCount = count;
    }
    var grids = [];
    for (var i = 0; i < rowCount; i++) {
        grids.push(columnCount);
    }
    var currentCount = rowCount * columnCount;
    var remained = count - currentCount;
    if (remained > 0) {
        for (var i = 0; i < remained; i++) {
            grids[i % rowCount] += 1;
        }
    }
    return grids;
}
function divideSector(sectorShape, count, outShapes) {
    var r0 = sectorShape.r0;
    var r = sectorShape.r;
    var startAngle = sectorShape.startAngle;
    var endAngle = sectorShape.endAngle;
    var angle = Math.abs(endAngle - startAngle);
    var arcLen = angle * r;
    var deltaR = r - r0;
    var isAngleRow = arcLen > Math.abs(deltaR);
    var grids = getDividingGrids([arcLen, deltaR], isAngleRow ? 0 : 1, count);
    var rowSize = (isAngleRow ? angle : deltaR) / grids.length;
    for (var row = 0; row < grids.length; row++) {
        var columnSize = (isAngleRow ? deltaR : angle) / grids[row];
        for (var column = 0; column < grids[row]; column++) {
            var newShape = {};
            if (isAngleRow) {
                newShape.startAngle = startAngle + rowSize * row;
                newShape.endAngle = startAngle + rowSize * (row + 1);
                newShape.r0 = r0 + columnSize * column;
                newShape.r = r0 + columnSize * (column + 1);
            }
            else {
                newShape.startAngle = startAngle + columnSize * column;
                newShape.endAngle = startAngle + columnSize * (column + 1);
                newShape.r0 = r0 + rowSize * row;
                newShape.r = r0 + rowSize * (row + 1);
            }
            newShape.clockwise = sectorShape.clockwise;
            newShape.cx = sectorShape.cx;
            newShape.cy = sectorShape.cy;
            outShapes.push(newShape);
        }
    }
}
function divideRect(rectShape, count, outShapes) {
    var width = rectShape.width;
    var height = rectShape.height;
    var isHorizontalRow = width > height;
    var grids = getDividingGrids([width, height], isHorizontalRow ? 0 : 1, count);
    var rowSizeDim = isHorizontalRow ? 'width' : 'height';
    var columnSizeDim = isHorizontalRow ? 'height' : 'width';
    var rowDim = isHorizontalRow ? 'x' : 'y';
    var columnDim = isHorizontalRow ? 'y' : 'x';
    var rowSize = rectShape[rowSizeDim] / grids.length;
    for (var row = 0; row < grids.length; row++) {
        var columnSize = rectShape[columnSizeDim] / grids[row];
        for (var column = 0; column < grids[row]; column++) {
            var newShape = {};
            newShape[rowDim] = row * rowSize;
            newShape[columnDim] = column * columnSize;
            newShape[rowSizeDim] = rowSize;
            newShape[columnSizeDim] = columnSize;
            newShape.x += rectShape.x;
            newShape.y += rectShape.y;
            outShapes.push(newShape);
        }
    }
}
function dividePath_crossProduct2d(x1, y1, x2, y2) {
    return x1 * y2 - x2 * y1;
}
function dividePath_lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
    var mx = a2x - a1x;
    var my = a2y - a1y;
    var nx = b2x - b1x;
    var ny = b2y - b1y;
    var nmCrossProduct = dividePath_crossProduct2d(nx, ny, mx, my);
    if (Math.abs(nmCrossProduct) < 1e-6) {
        return null;
    }
    var b1a1x = a1x - b1x;
    var b1a1y = a1y - b1y;
    var p = dividePath_crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
    if (p < 0 || p > 1) {
        return null;
    }
    return new core_Point(p * mx + a1x, p * my + a1y);
}
function projPtOnLine(pt, lineA, lineB) {
    var dir = new core_Point();
    core_Point.sub(dir, lineB, lineA);
    dir.normalize();
    var dir2 = new core_Point();
    core_Point.sub(dir2, pt, lineA);
    var len = dir2.dot(dir);
    return len;
}
function addToPoly(poly, pt) {
    var last = poly[poly.length - 1];
    if (last && last[0] === pt[0] && last[1] === pt[1]) {
        return;
    }
    poly.push(pt);
}
function splitPolygonByLine(points, lineA, lineB) {
    var len = points.length;
    var intersections = [];
    for (var i = 0; i < len; i++) {
        var p0 = points[i];
        var p1 = points[(i + 1) % len];
        var intersectionPt = dividePath_lineLineIntersect(p0[0], p0[1], p1[0], p1[1], lineA.x, lineA.y, lineB.x, lineB.y);
        if (intersectionPt) {
            intersections.push({
                projPt: projPtOnLine(intersectionPt, lineA, lineB),
                pt: intersectionPt,
                idx: i
            });
        }
    }
    if (intersections.length < 2) {
        return [{ points: points }, { points: points }];
    }
    intersections.sort(function (a, b) {
        return a.projPt - b.projPt;
    });
    var splitPt0 = intersections[0];
    var splitPt1 = intersections[intersections.length - 1];
    if (splitPt1.idx < splitPt0.idx) {
        var tmp = splitPt0;
        splitPt0 = splitPt1;
        splitPt1 = tmp;
    }
    var splitPt0Arr = [splitPt0.pt.x, splitPt0.pt.y];
    var splitPt1Arr = [splitPt1.pt.x, splitPt1.pt.y];
    var newPolyA = [splitPt0Arr];
    var newPolyB = [splitPt1Arr];
    for (var i = splitPt0.idx + 1; i <= splitPt1.idx; i++) {
        addToPoly(newPolyA, points[i].slice());
    }
    addToPoly(newPolyA, splitPt1Arr);
    addToPoly(newPolyA, splitPt0Arr);
    for (var i = splitPt1.idx + 1; i <= splitPt0.idx + len; i++) {
        addToPoly(newPolyB, points[i % len].slice());
    }
    addToPoly(newPolyB, splitPt0Arr);
    addToPoly(newPolyB, splitPt1Arr);
    return [{
            points: newPolyA
        }, {
            points: newPolyB
        }];
}
function binaryDividePolygon(polygonShape) {
    var points = polygonShape.points;
    var min = [];
    var max = [];
    fromPoints(points, min, max);
    var boundingRect = new core_BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);
    var width = boundingRect.width;
    var height = boundingRect.height;
    var x = boundingRect.x;
    var y = boundingRect.y;
    var pt0 = new core_Point();
    var pt1 = new core_Point();
    if (width > height) {
        pt0.x = pt1.x = x + width / 2;
        pt0.y = y;
        pt1.y = y + height;
    }
    else {
        pt0.y = pt1.y = y + height / 2;
        pt0.x = x;
        pt1.x = x + width;
    }
    return splitPolygonByLine(points, pt0, pt1);
}
function binaryDivideRecursive(divider, shape, count, out) {
    if (count === 1) {
        out.push(shape);
    }
    else {
        var mid = Math.floor(count / 2);
        var sub = divider(shape);
        binaryDivideRecursive(divider, sub[0], mid, out);
        binaryDivideRecursive(divider, sub[1], count - mid, out);
    }
    return out;
}
function dividePath_clone(path, count) {
    var paths = [];
    for (var i = 0; i < count; i++) {
        paths.push(clonePath(path));
    }
    return paths;
}
function copyPathProps(source, target) {
    target.setStyle(source.style);
    target.z = source.z;
    target.z2 = source.z2;
    target.zlevel = source.zlevel;
}
function polygonConvert(points) {
    var out = [];
    for (var i = 0; i < points.length;) {
        out.push([points[i++], points[i++]]);
    }
    return out;
}
function split(path, count) {
    var outShapes = [];
    var shape = path.shape;
    var OutShapeCtor;
    switch (path.type) {
        case 'rect':
            divideRect(shape, count, outShapes);
            OutShapeCtor = shape_Rect;
            break;
        case 'sector':
            divideSector(shape, count, outShapes);
            OutShapeCtor = shape_Sector;
            break;
        case 'circle':
            divideSector({
                r0: 0, r: shape.r, startAngle: 0, endAngle: Math.PI * 2,
                cx: shape.cx, cy: shape.cy
            }, count, outShapes);
            OutShapeCtor = shape_Sector;
            break;
        default:
            var m = path.getComputedTransform();
            var scale = m ? Math.sqrt(Math.max(m[0] * m[0] + m[1] * m[1], m[2] * m[2] + m[3] * m[3])) : 1;
            var polygons = Object(util["map"])(pathToPolygons(path.getUpdatedPathProxy(), scale), function (poly) { return polygonConvert(poly); });
            var polygonCount = polygons.length;
            if (polygonCount === 0) {
                binaryDivideRecursive(binaryDividePolygon, {
                    points: polygons[0]
                }, count, outShapes);
            }
            else if (polygonCount === count) {
                for (var i = 0; i < polygonCount; i++) {
                    outShapes.push({
                        points: polygons[i]
                    });
                }
            }
            else {
                var totalArea_1 = 0;
                var items = Object(util["map"])(polygons, function (poly) {
                    var min = [];
                    var max = [];
                    fromPoints(poly, min, max);
                    var area = (max[1] - min[1]) * (max[0] - min[0]);
                    totalArea_1 += area;
                    return { poly: poly, area: area };
                });
                items.sort(function (a, b) { return b.area - a.area; });
                var left = count;
                for (var i = 0; i < polygonCount; i++) {
                    var item = items[i];
                    if (left <= 0) {
                        break;
                    }
                    var selfCount = i === polygonCount - 1
                        ? left
                        : Math.ceil(item.area / totalArea_1 * count);
                    if (selfCount < 0) {
                        continue;
                    }
                    binaryDivideRecursive(binaryDividePolygon, {
                        points: item.poly
                    }, selfCount, outShapes);
                    left -= selfCount;
                }
                ;
            }
            OutShapeCtor = shape_Polygon;
            break;
    }
    if (!OutShapeCtor) {
        return dividePath_clone(path, count);
    }
    var out = [];
    for (var i = 0; i < outShapes.length; i++) {
        var subPath = new OutShapeCtor();
        subPath.setShape(outShapes[i]);
        copyPathProps(path, subPath);
        out.push(subPath);
    }
    return out;
}

// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/morphPath.js








function alignSubpath(subpath1, subpath2) {
    var len1 = subpath1.length;
    var len2 = subpath2.length;
    if (len1 === len2) {
        return [subpath1, subpath2];
    }
    var tmpSegX = [];
    var tmpSegY = [];
    var shorterPath = len1 < len2 ? subpath1 : subpath2;
    var shorterLen = Math.min(len1, len2);
    var diff = Math.abs(len2 - len1) / 6;
    var shorterBezierCount = (shorterLen - 2) / 6;
    var eachCurveSubDivCount = Math.ceil(diff / shorterBezierCount) + 1;
    var newSubpath = [shorterPath[0], shorterPath[1]];
    var remained = diff;
    for (var i = 2; i < shorterLen;) {
        var x0 = shorterPath[i - 2];
        var y0 = shorterPath[i - 1];
        var x1 = shorterPath[i++];
        var y1 = shorterPath[i++];
        var x2 = shorterPath[i++];
        var y2 = shorterPath[i++];
        var x3 = shorterPath[i++];
        var y3 = shorterPath[i++];
        if (remained <= 0) {
            newSubpath.push(x1, y1, x2, y2, x3, y3);
            continue;
        }
        var actualSubDivCount = Math.min(remained, eachCurveSubDivCount - 1) + 1;
        for (var k = 1; k <= actualSubDivCount; k++) {
            var p = k / actualSubDivCount;
            cubicSubdivide(x0, x1, x2, x3, p, tmpSegX);
            cubicSubdivide(y0, y1, y2, y3, p, tmpSegY);
            x0 = tmpSegX[3];
            y0 = tmpSegY[3];
            newSubpath.push(tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], x0, y0);
            x1 = tmpSegX[5];
            y1 = tmpSegY[5];
            x2 = tmpSegX[6];
            y2 = tmpSegY[6];
        }
        remained -= actualSubDivCount - 1;
    }
    return shorterPath === subpath1 ? [newSubpath, subpath2] : [subpath1, newSubpath];
}
function createSubpath(lastSubpathSubpath, otherSubpath) {
    var len = lastSubpathSubpath.length;
    var lastX = lastSubpathSubpath[len - 2];
    var lastY = lastSubpathSubpath[len - 1];
    var newSubpath = [];
    for (var i = 0; i < otherSubpath.length;) {
        newSubpath[i++] = lastX;
        newSubpath[i++] = lastY;
    }
    return newSubpath;
}
function alignBezierCurves(array1, array2) {
    var _a;
    var lastSubpath1;
    var lastSubpath2;
    var newArray1 = [];
    var newArray2 = [];
    for (var i = 0; i < Math.max(array1.length, array2.length); i++) {
        var subpath1 = array1[i];
        var subpath2 = array2[i];
        var newSubpath1 = void 0;
        var newSubpath2 = void 0;
        if (!subpath1) {
            newSubpath1 = createSubpath(lastSubpath1 || subpath2, subpath2);
            newSubpath2 = subpath2;
        }
        else if (!subpath2) {
            newSubpath2 = createSubpath(lastSubpath2 || subpath1, subpath1);
            newSubpath1 = subpath1;
        }
        else {
            _a = alignSubpath(subpath1, subpath2), newSubpath1 = _a[0], newSubpath2 = _a[1];
            lastSubpath1 = newSubpath1;
            lastSubpath2 = newSubpath2;
        }
        newArray1.push(newSubpath1);
        newArray2.push(newSubpath2);
    }
    return [newArray1, newArray2];
}
function morphPath_centroid(array) {
    var signedArea = 0;
    var cx = 0;
    var cy = 0;
    var len = array.length;
    for (var i = 0, j = len - 2; i < len; j = i, i += 2) {
        var x0 = array[j];
        var y0 = array[j + 1];
        var x1 = array[i];
        var y1 = array[i + 1];
        var a = x0 * y1 - x1 * y0;
        signedArea += a;
        cx += (x0 + x1) * a;
        cy += (y0 + y1) * a;
    }
    if (signedArea === 0) {
        return [array[0] || 0, array[1] || 0];
    }
    return [cx / signedArea / 3, cy / signedArea / 3, signedArea];
}
function findBestRingOffset(fromSubBeziers, toSubBeziers, fromCp, toCp) {
    var bezierCount = (fromSubBeziers.length - 2) / 6;
    var bestScore = Infinity;
    var bestOffset = 0;
    var len = fromSubBeziers.length;
    var len2 = len - 2;
    for (var offset = 0; offset < bezierCount; offset++) {
        var cursorOffset = offset * 6;
        var score = 0;
        for (var k = 0; k < len; k += 2) {
            var idx = k === 0 ? cursorOffset : ((cursorOffset + k - 2) % len2 + 2);
            var x0 = fromSubBeziers[idx] - fromCp[0];
            var y0 = fromSubBeziers[idx + 1] - fromCp[1];
            var x1 = toSubBeziers[k] - toCp[0];
            var y1 = toSubBeziers[k + 1] - toCp[1];
            var dx = x1 - x0;
            var dy = y1 - y0;
            score += dx * dx + dy * dy;
        }
        if (score < bestScore) {
            bestScore = score;
            bestOffset = offset;
        }
    }
    return bestOffset;
}
function morphPath_reverse(array) {
    var newArr = [];
    var len = array.length;
    for (var i = 0; i < len; i += 2) {
        newArr[i] = array[len - i - 2];
        newArr[i + 1] = array[len - i - 1];
    }
    return newArr;
}
function findBestMorphingRotation(fromArr, toArr, searchAngleIteration, searchAngleRange) {
    var result = [];
    var fromNeedsReverse;
    for (var i = 0; i < fromArr.length; i++) {
        var fromSubpathBezier = fromArr[i];
        var toSubpathBezier = toArr[i];
        var fromCp = morphPath_centroid(fromSubpathBezier);
        var toCp = morphPath_centroid(toSubpathBezier);
        if (fromNeedsReverse == null) {
            fromNeedsReverse = fromCp[2] < 0 !== toCp[2] < 0;
        }
        var newFromSubpathBezier = [];
        var newToSubpathBezier = [];
        var bestAngle = 0;
        var bestScore = Infinity;
        var tmpArr = [];
        var len = fromSubpathBezier.length;
        if (fromNeedsReverse) {
            fromSubpathBezier = morphPath_reverse(fromSubpathBezier);
        }
        var offset = findBestRingOffset(fromSubpathBezier, toSubpathBezier, fromCp, toCp) * 6;
        var len2 = len - 2;
        for (var k = 0; k < len2; k += 2) {
            var idx = (offset + k) % len2 + 2;
            newFromSubpathBezier[k + 2] = fromSubpathBezier[idx] - fromCp[0];
            newFromSubpathBezier[k + 3] = fromSubpathBezier[idx + 1] - fromCp[1];
        }
        newFromSubpathBezier[0] = fromSubpathBezier[offset] - fromCp[0];
        newFromSubpathBezier[1] = fromSubpathBezier[offset + 1] - fromCp[1];
        if (searchAngleIteration > 0) {
            var step = searchAngleRange / searchAngleIteration;
            for (var angle = -searchAngleRange / 2; angle <= searchAngleRange / 2; angle += step) {
                var sa = Math.sin(angle);
                var ca = Math.cos(angle);
                var score = 0;
                for (var k = 0; k < fromSubpathBezier.length; k += 2) {
                    var x0 = newFromSubpathBezier[k];
                    var y0 = newFromSubpathBezier[k + 1];
                    var x1 = toSubpathBezier[k] - toCp[0];
                    var y1 = toSubpathBezier[k + 1] - toCp[1];
                    var newX1 = x1 * ca - y1 * sa;
                    var newY1 = x1 * sa + y1 * ca;
                    tmpArr[k] = newX1;
                    tmpArr[k + 1] = newY1;
                    var dx = newX1 - x0;
                    var dy = newY1 - y0;
                    score += dx * dx + dy * dy;
                }
                if (score < bestScore) {
                    bestScore = score;
                    bestAngle = angle;
                    for (var m = 0; m < tmpArr.length; m++) {
                        newToSubpathBezier[m] = tmpArr[m];
                    }
                }
            }
        }
        else {
            for (var i_1 = 0; i_1 < len; i_1 += 2) {
                newToSubpathBezier[i_1] = toSubpathBezier[i_1] - toCp[0];
                newToSubpathBezier[i_1 + 1] = toSubpathBezier[i_1 + 1] - toCp[1];
            }
        }
        result.push({
            from: newFromSubpathBezier,
            to: newToSubpathBezier,
            fromCp: fromCp,
            toCp: toCp,
            rotation: -bestAngle
        });
    }
    return result;
}
function isCombineMorphing(path) {
    return path.__isCombineMorphing;
}
function isMorphing(el) {
    return el.__morphT >= 0;
}
var SAVED_METHOD_PREFIX = '__mOriginal_';
function saveAndModifyMethod(obj, methodName, modifiers) {
    var savedMethodName = SAVED_METHOD_PREFIX + methodName;
    var originalMethod = obj[savedMethodName] || obj[methodName];
    if (!obj[savedMethodName]) {
        obj[savedMethodName] = obj[methodName];
    }
    var replace = modifiers.replace;
    var after = modifiers.after;
    var before = modifiers.before;
    obj[methodName] = function () {
        var args = arguments;
        var res;
        before && before.apply(this, args);
        if (replace) {
            res = replace.apply(this, args);
        }
        else {
            res = originalMethod.apply(this, args);
        }
        after && after.apply(this, args);
        return res;
    };
}
function restoreMethod(obj, methodName) {
    var savedMethodName = SAVED_METHOD_PREFIX + methodName;
    if (obj[savedMethodName]) {
        obj[methodName] = obj[savedMethodName];
        obj[savedMethodName] = null;
    }
}
function applyTransformOnBeziers(bezierCurves, mm) {
    for (var i = 0; i < bezierCurves.length; i++) {
        var subBeziers = bezierCurves[i];
        for (var k = 0; k < subBeziers.length;) {
            var x = subBeziers[k];
            var y = subBeziers[k + 1];
            subBeziers[k++] = mm[0] * x + mm[2] * y + mm[4];
            subBeziers[k++] = mm[1] * x + mm[3] * y + mm[5];
        }
    }
}
function prepareMorphPath(fromPath, toPath) {
    var fromPathProxy = fromPath.getUpdatedPathProxy();
    var toPathProxy = toPath.getUpdatedPathProxy();
    var _a = alignBezierCurves(pathToBezierCurves(fromPathProxy), pathToBezierCurves(toPathProxy)), fromBezierCurves = _a[0], toBezierCurves = _a[1];
    var fromPathTransform = fromPath.getComputedTransform();
    var toPathTransform = toPath.getComputedTransform();
    function updateIdentityTransform() {
        this.transform = null;
    }
    fromPathTransform && applyTransformOnBeziers(fromBezierCurves, fromPathTransform);
    toPathTransform && applyTransformOnBeziers(toBezierCurves, toPathTransform);
    saveAndModifyMethod(toPath, 'updateTransform', { replace: updateIdentityTransform });
    toPath.transform = null;
    var morphingData = findBestMorphingRotation(fromBezierCurves, toBezierCurves, 10, Math.PI);
    var tmpArr = [];
    saveAndModifyMethod(toPath, 'buildPath', { replace: function (path) {
            var t = toPath.__morphT;
            var onet = 1 - t;
            var newCp = [];
            for (var i = 0; i < morphingData.length; i++) {
                var item = morphingData[i];
                var from = item.from;
                var to = item.to;
                var angle = item.rotation * t;
                var fromCp = item.fromCp;
                var toCp = item.toCp;
                var sa = Math.sin(angle);
                var ca = Math.cos(angle);
                lerp(newCp, fromCp, toCp, t);
                for (var m = 0; m < from.length; m += 2) {
                    var x0_1 = from[m];
                    var y0_1 = from[m + 1];
                    var x1 = to[m];
                    var y1 = to[m + 1];
                    var x = x0_1 * onet + x1 * t;
                    var y = y0_1 * onet + y1 * t;
                    tmpArr[m] = (x * ca - y * sa) + newCp[0];
                    tmpArr[m + 1] = (x * sa + y * ca) + newCp[1];
                }
                var x0 = tmpArr[0];
                var y0 = tmpArr[1];
                path.moveTo(x0, y0);
                for (var m = 2; m < from.length;) {
                    var x1 = tmpArr[m++];
                    var y1 = tmpArr[m++];
                    var x2 = tmpArr[m++];
                    var y2 = tmpArr[m++];
                    var x3 = tmpArr[m++];
                    var y3 = tmpArr[m++];
                    if (x0 === x1 && y0 === y1 && x2 === x3 && y2 === y3) {
                        path.lineTo(x3, y3);
                    }
                    else {
                        path.bezierCurveTo(x1, y1, x2, y2, x3, y3);
                    }
                    x0 = x3;
                    y0 = y3;
                }
            }
        } });
}
function morphPath(fromPath, toPath, animationOpts) {
    if (!fromPath || !toPath) {
        return toPath;
    }
    var oldDone = animationOpts.done;
    var oldDuring = animationOpts.during;
    prepareMorphPath(fromPath, toPath);
    toPath.__morphT = 0;
    function restoreToPath() {
        restoreMethod(toPath, 'buildPath');
        restoreMethod(toPath, 'updateTransform');
        toPath.__morphT = -1;
        toPath.createPathProxy();
        toPath.dirtyShape();
    }
    toPath.animateTo({
        __morphT: 1
    }, Object(util["defaults"])({
        during: function (p) {
            toPath.dirtyShape();
            oldDuring && oldDuring(p);
        },
        done: function () {
            restoreToPath();
            oldDone && oldDone();
        }
    }, animationOpts));
    return toPath;
}
function hilbert(x, y, minX, minY, maxX, maxY) {
    var bits = 16;
    x = (maxX === minX) ? 0 : Math.round(32767 * (x - minX) / (maxX - minX));
    y = (maxY === minY) ? 0 : Math.round(32767 * (y - minY) / (maxY - minY));
    var d = 0;
    var tmp;
    for (var s = (1 << bits) / 2; s > 0; s /= 2) {
        var rx = 0;
        var ry = 0;
        if ((x & s) > 0) {
            rx = 1;
        }
        if ((y & s) > 0) {
            ry = 1;
        }
        d += s * s * ((3 * rx) ^ ry);
        if (ry === 0) {
            if (rx === 1) {
                x = s - 1 - x;
                y = s - 1 - y;
            }
            tmp = x;
            x = y;
            y = tmp;
        }
    }
    return d;
}
function sortPaths(pathList) {
    var xMin = Infinity;
    var yMin = Infinity;
    var xMax = -Infinity;
    var yMax = -Infinity;
    var cps = Object(util["map"])(pathList, function (path) {
        var rect = path.getBoundingRect();
        var m = path.getComputedTransform();
        var x = rect.x + rect.width / 2 + (m ? m[4] : 0);
        var y = rect.y + rect.height / 2 + (m ? m[5] : 0);
        xMin = Math.min(x, xMin);
        yMin = Math.min(y, yMin);
        xMax = Math.max(x, xMax);
        yMax = Math.max(y, yMax);
        return [x, y];
    });
    var items = Object(util["map"])(cps, function (cp, idx) {
        return {
            cp: cp,
            z: hilbert(cp[0], cp[1], xMin, yMin, xMax, yMax),
            path: pathList[idx]
        };
    });
    return items.sort(function (a, b) { return a.z - b.z; }).map(function (item) { return item.path; });
}
;
function defaultDividePath(param) {
    return split(param.path, param.count);
}
function createEmptyReturn() {
    return {
        fromIndividuals: [],
        toIndividuals: [],
        count: 0
    };
}
function combineMorph(fromList, toPath, animationOpts) {
    var fromPathList = [];
    function addFromPath(fromList) {
        for (var i = 0; i < fromList.length; i++) {
            var from = fromList[i];
            if (isCombineMorphing(from)) {
                addFromPath(from.childrenRef());
            }
            else if (from instanceof graphic_Path) {
                fromPathList.push(from);
            }
        }
    }
    addFromPath(fromList);
    var separateCount = fromPathList.length;
    if (!separateCount) {
        return createEmptyReturn();
    }
    var dividePath = animationOpts.dividePath || defaultDividePath;
    var toSubPathList = dividePath({
        path: toPath, count: separateCount
    });
    if (toSubPathList.length !== separateCount) {
        console.error('Invalid morphing: unmatched splitted path');
        return createEmptyReturn();
    }
    fromPathList = sortPaths(fromPathList);
    toSubPathList = sortPaths(toSubPathList);
    var oldDone = animationOpts.done;
    var oldDuring = animationOpts.during;
    var individualDelay = animationOpts.individualDelay;
    var identityTransform = new core_Transformable();
    for (var i = 0; i < separateCount; i++) {
        var from = fromPathList[i];
        var to = toSubPathList[i];
        to.parent = toPath;
        to.copyTransform(identityTransform);
        if (!individualDelay) {
            prepareMorphPath(from, to);
        }
    }
    toPath.__isCombineMorphing = true;
    toPath.childrenRef = function () {
        return toSubPathList;
    };
    function addToSubPathListToZr(zr) {
        for (var i = 0; i < toSubPathList.length; i++) {
            toSubPathList[i].addSelfToZr(zr);
        }
    }
    saveAndModifyMethod(toPath, 'addSelfToZr', {
        after: function (zr) {
            addToSubPathListToZr(zr);
        }
    });
    saveAndModifyMethod(toPath, 'removeSelfFromZr', {
        after: function (zr) {
            for (var i = 0; i < toSubPathList.length; i++) {
                toSubPathList[i].removeSelfFromZr(zr);
            }
        }
    });
    function restoreToPath() {
        toPath.__isCombineMorphing = false;
        toPath.__morphT = -1;
        toPath.childrenRef = null;
        restoreMethod(toPath, 'addSelfToZr');
        restoreMethod(toPath, 'removeSelfFromZr');
    }
    var toLen = toSubPathList.length;
    if (individualDelay) {
        var animating_1 = toLen;
        var eachDone = function () {
            animating_1--;
            if (animating_1 === 0) {
                restoreToPath();
                oldDone && oldDone();
            }
        };
        for (var i = 0; i < toLen; i++) {
            var indivdualAnimationOpts = individualDelay ? Object(util["defaults"])({
                delay: (animationOpts.delay || 0) + individualDelay(i, toLen, fromPathList[i], toSubPathList[i]),
                done: eachDone
            }, animationOpts) : animationOpts;
            morphPath(fromPathList[i], toSubPathList[i], indivdualAnimationOpts);
        }
    }
    else {
        toPath.__morphT = 0;
        toPath.animateTo({
            __morphT: 1
        }, Object(util["defaults"])({
            during: function (p) {
                for (var i = 0; i < toLen; i++) {
                    var child = toSubPathList[i];
                    child.__morphT = toPath.__morphT;
                    child.dirtyShape();
                }
                oldDuring && oldDuring(p);
            },
            done: function () {
                restoreToPath();
                for (var i = 0; i < fromList.length; i++) {
                    restoreMethod(fromList[i], 'updateTransform');
                }
                oldDone && oldDone();
            }
        }, animationOpts));
    }
    if (toPath.__zr) {
        addToSubPathListToZr(toPath.__zr);
    }
    return {
        fromIndividuals: fromPathList,
        toIndividuals: toSubPathList,
        count: toLen
    };
}
function separateMorph(fromPath, toPathList, animationOpts) {
    var toLen = toPathList.length;
    var fromPathList = [];
    var dividePath = animationOpts.dividePath || defaultDividePath;
    function addFromPath(fromList) {
        for (var i = 0; i < fromList.length; i++) {
            var from = fromList[i];
            if (isCombineMorphing(from)) {
                addFromPath(from.childrenRef());
            }
            else if (from instanceof graphic_Path) {
                fromPathList.push(from);
            }
        }
    }
    if (isCombineMorphing(fromPath)) {
        addFromPath(fromPath.childrenRef());
        var fromLen = fromPathList.length;
        if (fromLen < toLen) {
            var k = 0;
            for (var i = fromLen; i < toLen; i++) {
                fromPathList.push(clonePath(fromPathList[k++ % fromLen]));
            }
        }
        fromPathList.length = toLen;
    }
    else {
        fromPathList = dividePath({ path: fromPath, count: toLen });
        var fromPathTransform = fromPath.getComputedTransform();
        for (var i = 0; i < fromPathList.length; i++) {
            fromPathList[i].setLocalTransform(fromPathTransform);
        }
        if (fromPathList.length !== toLen) {
            console.error('Invalid morphing: unmatched splitted path');
            return createEmptyReturn();
        }
    }
    fromPathList = sortPaths(fromPathList);
    toPathList = sortPaths(toPathList);
    var individualDelay = animationOpts.individualDelay;
    for (var i = 0; i < toLen; i++) {
        var indivdualAnimationOpts = individualDelay ? Object(util["defaults"])({
            delay: (animationOpts.delay || 0) + individualDelay(i, toLen, fromPathList[i], toPathList[i])
        }, animationOpts) : animationOpts;
        morphPath(fromPathList[i], toPathList[i], indivdualAnimationOpts);
    }
    return {
        fromIndividuals: fromPathList,
        toIndividuals: toPathList,
        count: toPathList.length
    };
}


// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/morphTransitionHelper.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/





function isMultiple(elements) {
  return Object(util["isArray"])(elements[0]);
}
function prepareMorphBatches(one, many) {
  var batches = [];
  var batchCount = one.length;
  for (var i = 0; i < batchCount; i++) {
    batches.push({
      one: one[i],
      many: []
    });
  }
  for (var i = 0; i < many.length; i++) {
    var len = many[i].length;
    var k = void 0;
    for (k = 0; k < len; k++) {
      batches[k % batchCount].many.push(many[i][k]);
    }
  }
  var off = 0;
  // If one has more paths than each one of many. average them.
  for (var i = batchCount - 1; i >= 0; i--) {
    if (!batches[i].many.length) {
      var moveFrom = batches[off].many;
      if (moveFrom.length <= 1) {
        // Not enough
        // Start from the first one.
        if (off) {
          off = 0;
        } else {
          return batches;
        }
      }
      var len = moveFrom.length;
      var mid = Math.ceil(len / 2);
      batches[i].many = moveFrom.slice(mid, len);
      batches[off].many = moveFrom.slice(0, mid);
      off++;
    }
  }
  return batches;
}
var pathDividers = {
  clone: function (params) {
    var ret = [];
    // Fitting the alpha
    var approxOpacity = 1 - Math.pow(1 - params.path.style.opacity, 1 / params.count);
    for (var i = 0; i < params.count; i++) {
      var cloned = clonePath(params.path);
      cloned.setStyle('opacity', approxOpacity);
      ret.push(cloned);
    }
    return ret;
  },
  // Use the default divider
  split: null
};
function applyMorphAnimation(from, to, divideShape, seriesModel, dataIndex, animateOtherProps) {
  if (!from.length || !to.length) {
    return;
  }
  var updateAnimationCfg = getAnimationConfig('update', seriesModel, dataIndex);
  if (!(updateAnimationCfg && updateAnimationCfg.duration > 0)) {
    return;
  }
  var animationDelay = seriesModel.getModel('universalTransition').get('delay');
  var animationCfg = Object.assign({
    // Need to setToFinal so the further calculation based on the style can be correct.
    // Like emphasis color.
    setToFinal: true
  }, updateAnimationCfg);
  var many;
  var one;
  if (isMultiple(from)) {
    // manyToOne
    many = from;
    one = to;
  }
  if (isMultiple(to)) {
    // oneToMany
    many = to;
    one = from;
  }
  function morphOneBatch(batch, fromIsMany, animateIndex, animateCount, forceManyOne) {
    var batchMany = batch.many;
    var batchOne = batch.one;
    if (batchMany.length === 1 && !forceManyOne) {
      // Is one to one
      var batchFrom = fromIsMany ? batchMany[0] : batchOne;
      var batchTo = fromIsMany ? batchOne : batchMany[0];
      if (isCombineMorphing(batchFrom)) {
        // Keep doing combine animation.
        morphOneBatch({
          many: [batchFrom],
          one: batchTo
        }, true, animateIndex, animateCount, true);
      } else {
        var individualAnimationCfg = animationDelay ? Object(util["defaults"])({
          delay: animationDelay(animateIndex, animateCount)
        }, animationCfg) : animationCfg;
        morphPath(batchFrom, batchTo, individualAnimationCfg);
        animateOtherProps(batchFrom, batchTo, batchFrom, batchTo, individualAnimationCfg);
      }
    } else {
      var separateAnimationCfg = Object(util["defaults"])({
        dividePath: pathDividers[divideShape],
        individualDelay: animationDelay && function (idx, count, fromPath, toPath) {
          return animationDelay(idx + animateIndex, animateCount);
        }
      }, animationCfg);
      var _a = fromIsMany ? combineMorph(batchMany, batchOne, separateAnimationCfg) : separateMorph(batchOne, batchMany, separateAnimationCfg),
        fromIndividuals = _a.fromIndividuals,
        toIndividuals = _a.toIndividuals;
      var count = fromIndividuals.length;
      for (var k = 0; k < count; k++) {
        var individualAnimationCfg = animationDelay ? Object(util["defaults"])({
          delay: animationDelay(k, count)
        }, animationCfg) : animationCfg;
        animateOtherProps(fromIndividuals[k], toIndividuals[k], fromIsMany ? batchMany[k] : batch.one, fromIsMany ? batch.one : batchMany[k], individualAnimationCfg);
      }
    }
  }
  var fromIsMany = many ? many === from
  // Is one to one. If the path number not match. also needs do merge and separate morphing.
  : from.length > to.length;
  var morphBatches = many ? prepareMorphBatches(one, many) : prepareMorphBatches(fromIsMany ? to : from, [fromIsMany ? from : to]);
  var animateCount = 0;
  for (var i = 0; i < morphBatches.length; i++) {
    animateCount += morphBatches[i].many.length;
  }
  var animateIndex = 0;
  for (var i = 0; i < morphBatches.length; i++) {
    morphOneBatch(morphBatches[i], fromIsMany, animateIndex, animateCount);
    animateIndex += morphBatches[i].many.length;
  }
}
function getPathList(elements) {
  if (!elements) {
    return [];
  }
  if (Object(util["isArray"])(elements)) {
    var pathList_1 = [];
    for (var i = 0; i < elements.length; i++) {
      pathList_1.push(getPathList(elements[i]));
    }
    return pathList_1;
  }
  var pathList = [];
  elements.traverse(function (el) {
    if (el instanceof graphic_Path && !el.disableMorphing && !el.invisible && !el.ignore) {
      pathList.push(el);
    }
  });
  return pathList;
}
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/universalTransition.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Universal transitions that can animate between any shapes(series) and any properties in any amounts.










var DATA_COUNT_THRESHOLD = 1e4;
var TRANSITION_NONE = 0;
var TRANSITION_P2C = 1;
var TRANSITION_C2P = 2;
;
var getUniversalTransitionGlobalStore = makeInner();
function getDimension(data, visualDimension) {
  var dimensions = data.dimensions;
  for (var i = 0; i < dimensions.length; i++) {
    var dimInfo = data.getDimensionInfo(dimensions[i]);
    if (dimInfo && dimInfo.otherDims[visualDimension] === 0) {
      return dimensions[i];
    }
  }
}
// get value by dimension. (only get value of itemGroupId or childGroupId, so convert it to string)
function getValueByDimension(data, dataIndex, dimension) {
  var dimInfo = data.getDimensionInfo(dimension);
  var dimOrdinalMeta = dimInfo && dimInfo.ordinalMeta;
  if (dimInfo) {
    var value = data.get(dimInfo.name, dataIndex);
    if (dimOrdinalMeta) {
      return dimOrdinalMeta.categories[value] || value + '';
    }
    return value + '';
  }
}
function getGroupId(data, dataIndex, dataGroupId, isChild) {
  // try to get groupId from encode
  var visualDimension = isChild ? 'itemChildGroupId' : 'itemGroupId';
  var groupIdDim = getDimension(data, visualDimension);
  if (groupIdDim) {
    var groupId = getValueByDimension(data, dataIndex, groupIdDim);
    return groupId;
  }
  // try to get groupId from raw data item
  var rawDataItem = data.getRawDataItem(dataIndex);
  var property = isChild ? 'childGroupId' : 'groupId';
  if (rawDataItem && rawDataItem[property]) {
    return rawDataItem[property] + '';
  }
  // fallback
  if (isChild) {
    return;
  }
  // try to use series.dataGroupId as groupId, otherwise use dataItem's id as groupId
  return dataGroupId || data.getId(dataIndex);
}
// flatten all data items from different serieses into one arrary
function flattenDataDiffItems(list) {
  var items = [];
  Object(util["each"])(list, function (seriesInfo) {
    var data = seriesInfo.data;
    var dataGroupId = seriesInfo.dataGroupId;
    if (data.count() > DATA_COUNT_THRESHOLD) {
      if (false) {}
      return;
    }
    var indices = data.getIndices();
    for (var dataIndex = 0; dataIndex < indices.length; dataIndex++) {
      items.push({
        data: data,
        groupId: getGroupId(data, dataIndex, dataGroupId, false),
        childGroupId: getGroupId(data, dataIndex, dataGroupId, true),
        divide: seriesInfo.divide,
        dataIndex: dataIndex
      });
    }
  });
  return items;
}
function fadeInElement(newEl, newSeries, newIndex) {
  newEl.traverse(function (el) {
    if (el instanceof graphic_Path) {
      // TODO use fade in animation for target element.
      initProps(el, {
        style: {
          opacity: 0
        }
      }, newSeries, {
        dataIndex: newIndex,
        isFrom: true
      });
    }
  });
}
function universalTransition_removeEl(el) {
  if (el.parent) {
    // Bake parent transform to element.
    // So it can still have proper transform to transition after it's removed.
    var computedTransform = el.getComputedTransform();
    el.setLocalTransform(computedTransform);
    el.parent.remove(el);
  }
}
function stopAnimation(el) {
  el.stopAnimation();
  if (el.isGroup) {
    el.traverse(function (child) {
      child.stopAnimation();
    });
  }
}
function animateElementStyles(el, dataIndex, seriesModel) {
  var animationConfig = getAnimationConfig('update', seriesModel, dataIndex);
  animationConfig && el.traverse(function (child) {
    if (child instanceof graphic_Displayable) {
      var oldStyle = getOldStyle(child);
      if (oldStyle) {
        child.animateFrom({
          style: oldStyle
        }, animationConfig);
      }
    }
  });
}
function isAllIdSame(oldDiffItems, newDiffItems) {
  var len = oldDiffItems.length;
  if (len !== newDiffItems.length) {
    return false;
  }
  for (var i = 0; i < len; i++) {
    var oldItem = oldDiffItems[i];
    var newItem = newDiffItems[i];
    if (oldItem.data.getId(oldItem.dataIndex) !== newItem.data.getId(newItem.dataIndex)) {
      return false;
    }
  }
  return true;
}
function transitionBetween(oldList, newList, api) {
  var oldDiffItems = flattenDataDiffItems(oldList);
  var newDiffItems = flattenDataDiffItems(newList);
  function updateMorphingPathProps(from, to, rawFrom, rawTo, animationCfg) {
    if (rawFrom || from) {
      to.animateFrom({
        style: rawFrom && rawFrom !== from
        // dividingMethod like clone may override the style(opacity)
        // So extend it to raw style.
        ? Object(util["extend"])(Object(util["extend"])({}, rawFrom.style), from.style) : from.style
      }, animationCfg);
    }
  }
  var hasMorphAnimation = false;
  /**
   * With groupId and childGroupId, we can build parent-child relationships between dataItems.
   * However, we should mind the parent-child "direction" between old and new options.
   *
   * For example, suppose we have two dataItems from two series.data:
   *
   * dataA: [                          dataB: [
   *   {                                 {
   *     value: 5,                         value: 3,
   *     groupId: 'creatures',             groupId: 'animals',
   *     childGroupId: 'animals'           childGroupId: 'dogs'
   *   },                                },
   *   ...                               ...
   * ]                                 ]
   *
   * where dataA is belong to optionA and dataB is belong to optionB.
   *
   * When we `setOption(optionB)` from optionA, we choose childGroupId of dataItemA and groupId of
   * dataItemB as keys so the two keys are matched (both are 'animals'), then universalTransition
   * will work. This derection is "parent -> child".
   *
   * If we `setOption(optionA)` from optionB, we also choose groupId of dataItemB and childGroupId
   * of dataItemA as keys and universalTransition will work. This derection is "child -> parent".
   *
   * If there is no childGroupId specified, which means no multiLevelDrillDown/Up is needed and no
   * parent-child relationship exists. This direction is "none".
   *
   * So we need to know whether to use groupId or childGroupId as the key when we call the keyGetter
   * functions. Thus, we need to decide the direction first.
   *
   * The rule is:
   *
   * if (all childGroupIds in oldDiffItems and all groupIds in newDiffItems have common value) {
   *   direction = 'parent -> child';
   * } else if (all groupIds in oldDiffItems and all childGroupIds in newDiffItems have common value) {
   *   direction = 'child -> parent';
   * } else {
   *   direction = 'none';
   * }
   */
  var direction = TRANSITION_NONE;
  // find all groupIds and childGroupIds from oldDiffItems
  var oldGroupIds = Object(util["createHashMap"])();
  var oldChildGroupIds = Object(util["createHashMap"])();
  oldDiffItems.forEach(function (item) {
    item.groupId && oldGroupIds.set(item.groupId, true);
    item.childGroupId && oldChildGroupIds.set(item.childGroupId, true);
  });
  // traverse newDiffItems and decide the direction according to the rule
  for (var i = 0; i < newDiffItems.length; i++) {
    var newGroupId = newDiffItems[i].groupId;
    if (oldChildGroupIds.get(newGroupId)) {
      direction = TRANSITION_P2C;
      break;
    }
    var newChildGroupId = newDiffItems[i].childGroupId;
    if (newChildGroupId && oldGroupIds.get(newChildGroupId)) {
      direction = TRANSITION_C2P;
      break;
    }
  }
  function createKeyGetter(isOld, onlyGetId) {
    return function (diffItem) {
      var data = diffItem.data;
      var dataIndex = diffItem.dataIndex;
      // TODO if specified dim
      if (onlyGetId) {
        return data.getId(dataIndex);
      }
      if (isOld) {
        return direction === TRANSITION_P2C ? diffItem.childGroupId : diffItem.groupId;
      } else {
        return direction === TRANSITION_C2P ? diffItem.childGroupId : diffItem.groupId;
      }
    };
  }
  // Use id if it's very likely to be an one to one animation
  // It's more robust than groupId
  // TODO Check if key dimension is specified.
  var useId = isAllIdSame(oldDiffItems, newDiffItems);
  var isElementStillInChart = {};
  if (!useId) {
    // We may have different diff strategy with basicTransition if we use other dimension as key.
    // If so, we can't simply check if oldEl is same with newEl. We need a map to check if oldEl is still being used in the new chart.
    // We can't use the elements that already being morphed. Let it keep it's original basic transition.
    for (var i = 0; i < newDiffItems.length; i++) {
      var newItem = newDiffItems[i];
      var el = newItem.data.getItemGraphicEl(newItem.dataIndex);
      if (el) {
        isElementStillInChart[el.id] = true;
      }
    }
  }
  function updateOneToOne(newIndex, oldIndex) {
    var oldItem = oldDiffItems[oldIndex];
    var newItem = newDiffItems[newIndex];
    var newSeries = newItem.data.hostModel;
    // TODO Mark this elements is morphed and don't morph them anymore
    var oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex);
    var newEl = newItem.data.getItemGraphicEl(newItem.dataIndex);
    // Can't handle same elements.
    if (oldEl === newEl) {
      newEl && animateElementStyles(newEl, newItem.dataIndex, newSeries);
      return;
    }
    if (
    // We can't use the elements that already being morphed
    oldEl && isElementStillInChart[oldEl.id]) {
      return;
    }
    if (newEl) {
      // TODO: If keep animating the group in case
      // some of the elements don't want to be morphed.
      // TODO Label?
      stopAnimation(newEl);
      if (oldEl) {
        stopAnimation(oldEl);
        // If old element is doing leaving animation. stop it and remove it immediately.
        universalTransition_removeEl(oldEl);
        hasMorphAnimation = true;
        applyMorphAnimation(getPathList(oldEl), getPathList(newEl), newItem.divide, newSeries, newIndex, updateMorphingPathProps);
      } else {
        fadeInElement(newEl, newSeries, newIndex);
      }
    }
    // else keep oldEl leaving animation.
  }
  new data_DataDiffer(oldDiffItems, newDiffItems, createKeyGetter(true, useId), createKeyGetter(false, useId), null, 'multiple').update(updateOneToOne).updateManyToOne(function (newIndex, oldIndices) {
    var newItem = newDiffItems[newIndex];
    var newData = newItem.data;
    var newSeries = newData.hostModel;
    var newEl = newData.getItemGraphicEl(newItem.dataIndex);
    var oldElsList = Object(util["filter"])(Object(util["map"])(oldIndices, function (idx) {
      return oldDiffItems[idx].data.getItemGraphicEl(oldDiffItems[idx].dataIndex);
    }), function (oldEl) {
      return oldEl && oldEl !== newEl && !isElementStillInChart[oldEl.id];
    });
    if (newEl) {
      stopAnimation(newEl);
      if (oldElsList.length) {
        // If old element is doing leaving animation. stop it and remove it immediately.
        Object(util["each"])(oldElsList, function (oldEl) {
          stopAnimation(oldEl);
          universalTransition_removeEl(oldEl);
        });
        hasMorphAnimation = true;
        applyMorphAnimation(getPathList(oldElsList), getPathList(newEl), newItem.divide, newSeries, newIndex, updateMorphingPathProps);
      } else {
        fadeInElement(newEl, newSeries, newItem.dataIndex);
      }
    }
    // else keep oldEl leaving animation.
  }).updateOneToMany(function (newIndices, oldIndex) {
    var oldItem = oldDiffItems[oldIndex];
    var oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex);
    // We can't use the elements that already being morphed
    if (oldEl && isElementStillInChart[oldEl.id]) {
      return;
    }
    var newElsList = Object(util["filter"])(Object(util["map"])(newIndices, function (idx) {
      return newDiffItems[idx].data.getItemGraphicEl(newDiffItems[idx].dataIndex);
    }), function (el) {
      return el && el !== oldEl;
    });
    var newSeris = newDiffItems[newIndices[0]].data.hostModel;
    if (newElsList.length) {
      Object(util["each"])(newElsList, function (newEl) {
        return stopAnimation(newEl);
      });
      if (oldEl) {
        stopAnimation(oldEl);
        // If old element is doing leaving animation. stop it and remove it immediately.
        universalTransition_removeEl(oldEl);
        hasMorphAnimation = true;
        applyMorphAnimation(getPathList(oldEl), getPathList(newElsList), oldItem.divide,
        // Use divide on old.
        newSeris, newIndices[0], updateMorphingPathProps);
      } else {
        Object(util["each"])(newElsList, function (newEl) {
          return fadeInElement(newEl, newSeris, newIndices[0]);
        });
      }
    }
    // else keep oldEl leaving animation.
  }).updateManyToMany(function (newIndices, oldIndices) {
    // If two data are same and both have groupId.
    // Normally they should be diff by id.
    new data_DataDiffer(oldIndices, newIndices, function (rawIdx) {
      return oldDiffItems[rawIdx].data.getId(oldDiffItems[rawIdx].dataIndex);
    }, function (rawIdx) {
      return newDiffItems[rawIdx].data.getId(newDiffItems[rawIdx].dataIndex);
    }).update(function (newIndex, oldIndex) {
      // Use the original index
      updateOneToOne(newIndices[newIndex], oldIndices[oldIndex]);
    }).execute();
  }).execute();
  if (hasMorphAnimation) {
    Object(util["each"])(newList, function (_a) {
      var data = _a.data;
      var seriesModel = data.hostModel;
      var view = seriesModel && api.getViewOfSeriesModel(seriesModel);
      var animationCfg = getAnimationConfig('update', seriesModel, 0); // use 0 index.
      if (view && seriesModel.isAnimationEnabled() && animationCfg && animationCfg.duration > 0) {
        view.group.traverse(function (el) {
          if (el instanceof graphic_Path && !el.animators.length) {
            // We can't accept there still exists element that has no animation
            // if universalTransition is enabled
            el.animateFrom({
              style: {
                opacity: 0
              }
            }, animationCfg);
          }
        });
      }
    });
  }
}
function getSeriesTransitionKey(series) {
  var seriesKey = series.getModel('universalTransition').get('seriesKey');
  if (!seriesKey) {
    // Use series id by default.
    return series.id;
  }
  return seriesKey;
}
function convertArraySeriesKeyToString(seriesKey) {
  if (Object(util["isArray"])(seriesKey)) {
    // Order independent.
    return seriesKey.sort().join(',');
  }
  return seriesKey;
}
function getDivideShapeFromData(data) {
  if (data.hostModel) {
    return data.hostModel.getModel('universalTransition').get('divideShape');
  }
}
function findTransitionSeriesBatches(globalStore, params) {
  var updateBatches = Object(util["createHashMap"])();
  var oldDataMap = Object(util["createHashMap"])();
  // Map that only store key in array seriesKey.
  // Which is used to query the old data when transition from one to multiple series.
  var oldDataMapForSplit = Object(util["createHashMap"])();
  Object(util["each"])(globalStore.oldSeries, function (series, idx) {
    var oldDataGroupId = globalStore.oldDataGroupIds[idx];
    var oldData = globalStore.oldData[idx];
    var transitionKey = getSeriesTransitionKey(series);
    var transitionKeyStr = convertArraySeriesKeyToString(transitionKey);
    oldDataMap.set(transitionKeyStr, {
      dataGroupId: oldDataGroupId,
      data: oldData
    });
    if (Object(util["isArray"])(transitionKey)) {
      // Same key can't in different array seriesKey.
      Object(util["each"])(transitionKey, function (key) {
        oldDataMapForSplit.set(key, {
          key: transitionKeyStr,
          dataGroupId: oldDataGroupId,
          data: oldData
        });
      });
    }
  });
  function checkTransitionSeriesKeyDuplicated(transitionKeyStr) {
    if (updateBatches.get(transitionKeyStr)) {
      log_warn("Duplicated seriesKey in universalTransition " + transitionKeyStr);
    }
  }
  Object(util["each"])(params.updatedSeries, function (series) {
    if (series.isUniversalTransitionEnabled() && series.isAnimationEnabled()) {
      var newDataGroupId = series.get('dataGroupId');
      var newData = series.getData();
      var transitionKey = getSeriesTransitionKey(series);
      var transitionKeyStr = convertArraySeriesKeyToString(transitionKey);
      // Only transition between series with same id.
      var oldData = oldDataMap.get(transitionKeyStr);
      // string transition key is the best match.
      if (oldData) {
        if (false) {}
        // TODO check if data is same?
        updateBatches.set(transitionKeyStr, {
          oldSeries: [{
            dataGroupId: oldData.dataGroupId,
            divide: getDivideShapeFromData(oldData.data),
            data: oldData.data
          }],
          newSeries: [{
            dataGroupId: newDataGroupId,
            divide: getDivideShapeFromData(newData),
            data: newData
          }]
        });
      } else {
        // Transition from multiple series.
        // e.g. 'female', 'male' -> ['female', 'male']
        if (Object(util["isArray"])(transitionKey)) {
          if (false) {}
          var oldSeries_1 = [];
          Object(util["each"])(transitionKey, function (key) {
            var oldData = oldDataMap.get(key);
            if (oldData.data) {
              oldSeries_1.push({
                dataGroupId: oldData.dataGroupId,
                divide: getDivideShapeFromData(oldData.data),
                data: oldData.data
              });
            }
          });
          if (oldSeries_1.length) {
            updateBatches.set(transitionKeyStr, {
              oldSeries: oldSeries_1,
              newSeries: [{
                dataGroupId: newDataGroupId,
                data: newData,
                divide: getDivideShapeFromData(newData)
              }]
            });
          }
        } else {
          // Try transition to multiple series.
          // e.g. ['female', 'male'] -> 'female', 'male'
          var oldData_1 = oldDataMapForSplit.get(transitionKey);
          if (oldData_1) {
            var batch = updateBatches.get(oldData_1.key);
            if (!batch) {
              batch = {
                oldSeries: [{
                  dataGroupId: oldData_1.dataGroupId,
                  data: oldData_1.data,
                  divide: getDivideShapeFromData(oldData_1.data)
                }],
                newSeries: []
              };
              updateBatches.set(oldData_1.key, batch);
            }
            batch.newSeries.push({
              dataGroupId: newDataGroupId,
              data: newData,
              divide: getDivideShapeFromData(newData)
            });
          }
        }
      }
    }
  });
  return updateBatches;
}
function querySeries(series, finder) {
  for (var i = 0; i < series.length; i++) {
    var found = finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex || finder.seriesId != null && finder.seriesId === series[i].id;
    if (found) {
      return i;
    }
  }
}
function transitionSeriesFromOpt(transitionOpt, globalStore, params, api) {
  var from = [];
  var to = [];
  Object(util["each"])(normalizeToArray(transitionOpt.from), function (finder) {
    var idx = querySeries(globalStore.oldSeries, finder);
    if (idx >= 0) {
      from.push({
        dataGroupId: globalStore.oldDataGroupIds[idx],
        data: globalStore.oldData[idx],
        // TODO can specify divideShape in transition.
        divide: getDivideShapeFromData(globalStore.oldData[idx]),
        groupIdDim: finder.dimension
      });
    }
  });
  Object(util["each"])(normalizeToArray(transitionOpt.to), function (finder) {
    var idx = querySeries(params.updatedSeries, finder);
    if (idx >= 0) {
      var data = params.updatedSeries[idx].getData();
      to.push({
        dataGroupId: globalStore.oldDataGroupIds[idx],
        data: data,
        divide: getDivideShapeFromData(data),
        groupIdDim: finder.dimension
      });
    }
  });
  if (from.length > 0 && to.length > 0) {
    transitionBetween(from, to, api);
  }
}
function installUniversalTransition(registers) {
  registers.registerUpdateLifecycle('series:beforeupdate', function (ecMOdel, api, params) {
    Object(util["each"])(normalizeToArray(params.seriesTransition), function (transOpt) {
      Object(util["each"])(normalizeToArray(transOpt.to), function (finder) {
        var series = params.updatedSeries;
        for (var i = 0; i < series.length; i++) {
          if (finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex || finder.seriesId != null && finder.seriesId === series[i].id) {
            series[i][SERIES_UNIVERSAL_TRANSITION_PROP] = true;
          }
        }
      });
    });
  });
  registers.registerUpdateLifecycle('series:transition', function (ecModel, api, params) {
    // TODO api provide an namespace that can save stuff per instance
    var globalStore = getUniversalTransitionGlobalStore(api);
    // TODO multiple to multiple series.
    if (globalStore.oldSeries && params.updatedSeries && params.optionChanged) {
      // TODO transitionOpt was used in an old implementation and can be removed now
      // Use give transition config if its' give;
      var transitionOpt = params.seriesTransition;
      if (transitionOpt) {
        Object(util["each"])(normalizeToArray(transitionOpt), function (opt) {
          transitionSeriesFromOpt(opt, globalStore, params, api);
        });
      } else {
        // Else guess from series based on transition series key.
        var updateBatches_1 = findTransitionSeriesBatches(globalStore, params);
        Object(util["each"])(updateBatches_1.keys(), function (key) {
          var batch = updateBatches_1.get(key);
          transitionBetween(batch.oldSeries, batch.newSeries, api);
        });
      }
      // Reset
      Object(util["each"])(params.updatedSeries, function (series) {
        // Reset;
        if (series[SERIES_UNIVERSAL_TRANSITION_PROP]) {
          series[SERIES_UNIVERSAL_TRANSITION_PROP] = false;
        }
      });
    }
    // Save all series of current update. Not only the updated one.
    var allSeries = ecModel.getSeries();
    var savedSeries = globalStore.oldSeries = [];
    var savedDataGroupIds = globalStore.oldDataGroupIds = [];
    var savedData = globalStore.oldData = [];
    for (var i = 0; i < allSeries.length; i++) {
      var data = allSeries[i].getData();
      // Only save the data that can have transition.
      // Avoid large data costing too much extra memory
      if (data.count() < DATA_COUNT_THRESHOLD) {
        savedSeries.push(allSeries[i]);
        savedDataGroupIds.push(allSeries[i].get('dataGroupId'));
        savedData.push(data);
      }
    }
  });
}
// CONCATENATED MODULE: ./node_modules/echarts/index.js

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


// ----------------------------------------------
// All of the modules that are allowed to be
// imported are listed below.
//
// Users MUST NOT import other modules that are
// not included in this list.
// ----------------------------------------------




// -----------------
// Render engines
// -----------------
// Render via Canvas.
// echarts.init(dom, null, { renderer: 'canvas' })
use([install]);
// Render via SVG.
// echarts.init(dom, null, { renderer: 'svg' })
use([installSVGRenderer_install]);
// ----------------
// Charts (series)
// ----------------
// All of the series types, for example:
// chart.setOption({
//     series: [{
//         type: 'line' // or 'bar', 'pie', ...
//     }]
// });
use([install_install, bar_install_install, pie_install_install, scatter_install_install, chart_radar_install_install, map_install_install, tree_install_install, treemap_install_install, graph_install_install, gauge_install_install, funnel_install_install, chart_parallel_install_install, sankey_install_install, boxplot_install_install, candlestick_install_install, effectScatter_install_install, lines_install_install, heatmap_install_install, installPictorialBar_install, themeRiver_install_install, sunburst_install_install, custom_install_install]);
// -------------------
// Coordinate systems
// -------------------
// All of the axis modules have been included in the
// coordinate system module below, do not need to
// make extra import.
// `cartesian` coordinate system. For some historical
// reasons, it is named as grid, for example:
// chart.setOption({
//     grid: {...},
//     xAxis: {...},
//     yAxis: {...},
//     series: [{...}]
// });
use(grid_install_install);
// `polar` coordinate system, for example:
// chart.setOption({
//     polar: {...},
//     radiusAxis: {...},
//     angleAxis: {...},
//     series: [{
//         coordinateSystem: 'polar'
//     }]
// });
use(polar_install_install);
// `geo` coordinate system, for example:
// chart.setOption({
//     geo: {...},
//     series: [{
//         coordinateSystem: 'geo'
//     }]
// });
use(geo_install_install);
// `singleAxis` coordinate system (notice, it is a coordinate system
// with only one axis, work for chart like theme river), for example:
// chart.setOption({
//     singleAxis: {...}
//     series: [{type: 'themeRiver', ...}]
// });
use(singleAxis_install_install);
// `parallel` coordinate system, only work for parallel series, for example:
// chart.setOption({
//     parallel: {...},
//     parallelAxis: [{...}, ...],
//     series: [{
//         type: 'parallel'
//     }]
// });
use(parallel_install_install);
// `calendar` coordinate system. for example,
// chart.setOption({
//     calendar: {...},
//     series: [{
//         coordinateSystem: 'calendar'
//     }]
// );
use(calendar_install_install);
// ------------------
// Other components
// ------------------
// `graphic` component, for example:
// chart.setOption({
//     graphic: {...}
// });
use(graphic_install_install);
// `toolbox` component, for example:
// chart.setOption({
//     toolbox: {...}
// });
use(toolbox_install_install);
// `tooltip` component, for example:
// chart.setOption({
//     tooltip: {...}
// });
use(tooltip_install_install);
// `axisPointer` component, for example:
// chart.setOption({
//     tooltip: {axisPointer: {...}, ...}
// });
// Or
// chart.setOption({
//     axisPointer: {...}
// });
use(axisPointer_install_install);
// `brush` component, for example:
// chart.setOption({
//     brush: {...}
// });
// Or
// chart.setOption({
//     tooltip: {feature: {brush: {...}}
// })
use(brush_install_install);
// `title` component, for example:
// chart.setOption({
//     title: {...}
// });
use(title_install_install);
// `timeline` component, for example:
// chart.setOption({
//     timeline: {...}
// });
use(timeline_install_install);
// `markPoint` component, for example:
// chart.setOption({
//     series: [{markPoint: {...}}]
// });
use(installMarkPoint_install);
// `markLine` component, for example:
// chart.setOption({
//     series: [{markLine: {...}}]
// });
use(installMarkLine_install);
// `markArea` component, for example:
// chart.setOption({
//     series: [{markArea: {...}}]
// });
use(installMarkArea_install);
// `legend` component not scrollable. for example:
// chart.setOption({
//     legend: {...}
// });
use(legend_install_install);
// `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.
use(dataZoom_install_install);
// `dataZoom` component providing drag, pinch, wheel behaviors
// inside coordinate system, for example:
// chart.setOption({
//     dataZoom: {type: 'inside'}
// });
use(installDataZoomInside_install);
// `dataZoom` component providing a slider bar, for example:
// chart.setOption({
//     dataZoom: {type: 'slider'}
// });
use(installDataZoomSlider_install);
// `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.
use(visualMap_install_install);
// `visualMap` component providing continuous bar, for example:
// chart.setOption({
//     visualMap: {type: 'continuous'}
// });
use(installVisualMapContinuous_install);
// `visualMap` component providing pieces bar, for example:
// chart.setOption({
//     visualMap: {type: 'piecewise'}
// });
use(installVisualMapPiecewise_install);
// `aria` component providing aria, for example:
// chart.setOption({
//     aria: {...}
// });
use(aria_install_install);
// dataset transform
// chart.setOption({
//     dataset: {
//          transform: []
//     }
// });
use(transform_install_install);
use(dataset_install_install);
// universal transition
// chart.setOption({
//     series: {
//         universalTransition: { enabled: true }
//     }
// })
use(installUniversalTransition);
// label layout
// chart.setOption({
//     series: {
//         labelLayout: { hideOverlap: true }
//     }
// })
use(installLabelLayout);// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "install", function() { return /* binding */ install; });
__webpack_require__.d(__webpack_exports__, "version", function() { return /* binding */ version; });
__webpack_require__.d(__webpack_exports__, "ActionSheet", function() { return /* reexport */ action_sheet; });
__webpack_require__.d(__webpack_exports__, "AddressEdit", function() { return /* reexport */ address_edit; });
__webpack_require__.d(__webpack_exports__, "AddressList", function() { return /* reexport */ address_list; });
__webpack_require__.d(__webpack_exports__, "Area", function() { return /* reexport */ es_area; });
__webpack_require__.d(__webpack_exports__, "Badge", function() { return /* reexport */ badge; });
__webpack_require__.d(__webpack_exports__, "Button", function() { return /* reexport */ es_button; });
__webpack_require__.d(__webpack_exports__, "Calendar", function() { return /* reexport */ calendar; });
__webpack_require__.d(__webpack_exports__, "Card", function() { return /* reexport */ card; });
__webpack_require__.d(__webpack_exports__, "Cascader", function() { return /* reexport */ cascader; });
__webpack_require__.d(__webpack_exports__, "Cell", function() { return /* reexport */ cell; });
__webpack_require__.d(__webpack_exports__, "CellGroup", function() { return /* reexport */ cell_group; });
__webpack_require__.d(__webpack_exports__, "Checkbox", function() { return /* reexport */ es_checkbox; });
__webpack_require__.d(__webpack_exports__, "CheckboxGroup", function() { return /* reexport */ checkbox_group; });
__webpack_require__.d(__webpack_exports__, "Circle", function() { return /* reexport */ circle; });
__webpack_require__.d(__webpack_exports__, "Col", function() { return /* reexport */ col; });
__webpack_require__.d(__webpack_exports__, "Collapse", function() { return /* reexport */ collapse; });
__webpack_require__.d(__webpack_exports__, "CollapseItem", function() { return /* reexport */ collapse_item; });
__webpack_require__.d(__webpack_exports__, "ContactCard", function() { return /* reexport */ contact_card; });
__webpack_require__.d(__webpack_exports__, "ContactEdit", function() { return /* reexport */ contact_edit; });
__webpack_require__.d(__webpack_exports__, "ContactList", function() { return /* reexport */ contact_list; });
__webpack_require__.d(__webpack_exports__, "CountDown", function() { return /* reexport */ count_down; });
__webpack_require__.d(__webpack_exports__, "Coupon", function() { return /* reexport */ es_coupon; });
__webpack_require__.d(__webpack_exports__, "CouponCell", function() { return /* reexport */ coupon_cell; });
__webpack_require__.d(__webpack_exports__, "CouponList", function() { return /* reexport */ coupon_list; });
__webpack_require__.d(__webpack_exports__, "DatetimePicker", function() { return /* reexport */ datetime_picker; });
__webpack_require__.d(__webpack_exports__, "Dialog", function() { return /* reexport */ dialog; });
__webpack_require__.d(__webpack_exports__, "Divider", function() { return /* reexport */ divider; });
__webpack_require__.d(__webpack_exports__, "DropdownItem", function() { return /* reexport */ dropdown_item; });
__webpack_require__.d(__webpack_exports__, "DropdownMenu", function() { return /* reexport */ dropdown_menu; });
__webpack_require__.d(__webpack_exports__, "Empty", function() { return /* reexport */ empty; });
__webpack_require__.d(__webpack_exports__, "Field", function() { return /* reexport */ es_field; });
__webpack_require__.d(__webpack_exports__, "Form", function() { return /* reexport */ es_form; });
__webpack_require__.d(__webpack_exports__, "GoodsAction", function() { return /* reexport */ goods_action; });
__webpack_require__.d(__webpack_exports__, "GoodsActionButton", function() { return /* reexport */ goods_action_button; });
__webpack_require__.d(__webpack_exports__, "GoodsActionIcon", function() { return /* reexport */ goods_action_icon; });
__webpack_require__.d(__webpack_exports__, "Grid", function() { return /* reexport */ grid; });
__webpack_require__.d(__webpack_exports__, "GridItem", function() { return /* reexport */ grid_item; });
__webpack_require__.d(__webpack_exports__, "Icon", function() { return /* reexport */ es_icon; });
__webpack_require__.d(__webpack_exports__, "Image", function() { return /* reexport */ es_image; });
__webpack_require__.d(__webpack_exports__, "ImagePreview", function() { return /* reexport */ image_preview; });
__webpack_require__.d(__webpack_exports__, "IndexAnchor", function() { return /* reexport */ index_anchor; });
__webpack_require__.d(__webpack_exports__, "IndexBar", function() { return /* reexport */ index_bar; });
__webpack_require__.d(__webpack_exports__, "Info", function() { return /* reexport */ es_info; });
__webpack_require__.d(__webpack_exports__, "Lazyload", function() { return /* reexport */ lazyload; });
__webpack_require__.d(__webpack_exports__, "List", function() { return /* reexport */ es_list; });
__webpack_require__.d(__webpack_exports__, "Loading", function() { return /* reexport */ es_loading; });
__webpack_require__.d(__webpack_exports__, "Locale", function() { return /* reexport */ locale["a" /* default */]; });
__webpack_require__.d(__webpack_exports__, "NavBar", function() { return /* reexport */ nav_bar; });
__webpack_require__.d(__webpack_exports__, "NoticeBar", function() { return /* reexport */ notice_bar; });
__webpack_require__.d(__webpack_exports__, "Notify", function() { return /* reexport */ notify; });
__webpack_require__.d(__webpack_exports__, "NumberKeyboard", function() { return /* reexport */ number_keyboard; });
__webpack_require__.d(__webpack_exports__, "Overlay", function() { return /* reexport */ es_overlay; });
__webpack_require__.d(__webpack_exports__, "Pagination", function() { return /* reexport */ pagination; });
__webpack_require__.d(__webpack_exports__, "Panel", function() { return /* reexport */ panel; });
__webpack_require__.d(__webpack_exports__, "PasswordInput", function() { return /* reexport */ password_input; });
__webpack_require__.d(__webpack_exports__, "Picker", function() { return /* reexport */ es_picker; });
__webpack_require__.d(__webpack_exports__, "Popover", function() { return /* reexport */ popover; });
__webpack_require__.d(__webpack_exports__, "Popup", function() { return /* reexport */ popup; });
__webpack_require__.d(__webpack_exports__, "Progress", function() { return /* reexport */ es_progress; });
__webpack_require__.d(__webpack_exports__, "PullRefresh", function() { return /* reexport */ pull_refresh; });
__webpack_require__.d(__webpack_exports__, "Radio", function() { return /* reexport */ es_radio; });
__webpack_require__.d(__webpack_exports__, "RadioGroup", function() { return /* reexport */ radio_group; });
__webpack_require__.d(__webpack_exports__, "Rate", function() { return /* reexport */ es_rate; });
__webpack_require__.d(__webpack_exports__, "Row", function() { return /* reexport */ row; });
__webpack_require__.d(__webpack_exports__, "Search", function() { return /* reexport */ search; });
__webpack_require__.d(__webpack_exports__, "ShareSheet", function() { return /* reexport */ share_sheet; });
__webpack_require__.d(__webpack_exports__, "Sidebar", function() { return /* reexport */ sidebar; });
__webpack_require__.d(__webpack_exports__, "SidebarItem", function() { return /* reexport */ sidebar_item; });
__webpack_require__.d(__webpack_exports__, "Skeleton", function() { return /* reexport */ skeleton; });
__webpack_require__.d(__webpack_exports__, "Sku", function() { return /* reexport */ es_sku; });
__webpack_require__.d(__webpack_exports__, "Slider", function() { return /* reexport */ slider; });
__webpack_require__.d(__webpack_exports__, "Step", function() { return /* reexport */ es_step; });
__webpack_require__.d(__webpack_exports__, "Stepper", function() { return /* reexport */ stepper; });
__webpack_require__.d(__webpack_exports__, "Steps", function() { return /* reexport */ steps; });
__webpack_require__.d(__webpack_exports__, "Sticky", function() { return /* reexport */ es_sticky; });
__webpack_require__.d(__webpack_exports__, "SubmitBar", function() { return /* reexport */ submit_bar; });
__webpack_require__.d(__webpack_exports__, "Swipe", function() { return /* reexport */ swipe; });
__webpack_require__.d(__webpack_exports__, "SwipeCell", function() { return /* reexport */ swipe_cell; });
__webpack_require__.d(__webpack_exports__, "SwipeItem", function() { return /* reexport */ swipe_item; });
__webpack_require__.d(__webpack_exports__, "Switch", function() { return /* reexport */ es_switch; });
__webpack_require__.d(__webpack_exports__, "SwitchCell", function() { return /* reexport */ switch_cell; });
__webpack_require__.d(__webpack_exports__, "Tab", function() { return /* reexport */ tab; });
__webpack_require__.d(__webpack_exports__, "Tabbar", function() { return /* reexport */ tabbar; });
__webpack_require__.d(__webpack_exports__, "TabbarItem", function() { return /* reexport */ tabbar_item; });
__webpack_require__.d(__webpack_exports__, "Tabs", function() { return /* reexport */ tabs; });
__webpack_require__.d(__webpack_exports__, "Tag", function() { return /* reexport */ es_tag; });
__webpack_require__.d(__webpack_exports__, "Toast", function() { return /* reexport */ es_toast; });
__webpack_require__.d(__webpack_exports__, "TreeSelect", function() { return /* reexport */ tree_select; });
__webpack_require__.d(__webpack_exports__, "Uploader", function() { return /* reexport */ uploader; });

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
    for (var e = 1; e < arguments.length; e++) {
      var t = arguments[e];
      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
    }
    return n;
  }, _extends.apply(null, arguments);
}

// EXTERNAL MODULE: ./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js
var helper = __webpack_require__(14);
var helper_default = /*#__PURE__*/__webpack_require__.n(helper);

// EXTERNAL MODULE: ./node_modules/vue/dist/vue.js
var vue = __webpack_require__(22);
var vue_default = /*#__PURE__*/__webpack_require__.n(vue);

// EXTERNAL MODULE: ./node_modules/vant/es/utils/create/index.js + 4 modules
var create = __webpack_require__(1820);

// CONCATENATED MODULE: ./node_modules/vant/es/utils/functional.js


var inheritKey = ['ref', 'key', 'style', 'class', 'attrs', 'refInFor', 'nativeOn', 'directives', 'staticClass', 'staticStyle'];
var mapInheritKey = {
  nativeOn: 'on'
}; // inherit partial context, map nativeOn to on

function inherit(context, inheritListeners) {
  var result = inheritKey.reduce(function (obj, key) {
    if (context.data[key]) {
      obj[mapInheritKey[key] || key] = context.data[key];
    }

    return obj;
  }, {});

  if (inheritListeners) {
    result.on = result.on || {};

    _extends(result.on, context.data.on);
  }

  return result;
} // emit event

function functional_emit(context, eventName) {
  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
    args[_key - 2] = arguments[_key];
  }

  var listeners = context.listeners[eventName];

  if (listeners) {
    if (Array.isArray(listeners)) {
      listeners.forEach(function (listener) {
        listener.apply(void 0, args);
      });
    } else {
      listeners.apply(void 0, args);
    }
  }
} // mount functional component

function mount(Component, data) {
  var instance = new vue_default.a({
    el: document.createElement('div'),
    props: Component.props,
    render: function render(h) {
      return h(Component, _extends({
        props: this.$props
      }, data));
    }
  });
  document.body.appendChild(instance.$el);
  return instance;
}
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/popup/context.js
var context_context = {
  zIndex: 2000,
  lockCount: 0,
  stack: [],
  find: function find(vm) {
    return this.stack.filter(function (item) {
      return item.vm === vm;
    })[0];
  },
  remove: function remove(vm) {
    var item = this.find(vm);
    if (!item) return;
    item.vm = null;
    item.overlay = null;
    var index = this.stack.indexOf(item);
    this.stack.splice(index, 1);
  }
};
// EXTERNAL MODULE: ./node_modules/vant/es/utils/index.js
var utils = __webpack_require__(6);

// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/event.js

// eslint-disable-next-line import/no-mutable-exports
var supportsPassive = false;

if (!utils["h" /* isServer */]) {
  try {
    var opts = {};
    Object.defineProperty(opts, 'passive', {
      // eslint-disable-next-line getter-return
      get: function get() {
        /* istanbul ignore next */
        supportsPassive = true;
      }
    });
    window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty
  } catch (e) {}
}

function event_on(target, event, handler, passive) {
  if (passive === void 0) {
    passive = false;
  }

  if (!utils["h" /* isServer */]) {
    target.addEventListener(event, handler, supportsPassive ? {
      capture: false,
      passive: passive
    } : false);
  }
}
function off(target, event, handler) {
  if (!utils["h" /* isServer */]) {
    target.removeEventListener(event, handler);
  }
}
function event_stopPropagation(event) {
  event.stopPropagation();
}
function preventDefault(event, isStopPropagation) {
  /* istanbul ignore else */
  if (typeof event.cancelable !== 'boolean' || event.cancelable) {
    event.preventDefault();
  }

  if (isStopPropagation) {
    event_stopPropagation(event);
  }
}
// CONCATENATED MODULE: ./node_modules/vant/es/overlay/index.js


// Utils


 // Types

var _createNamespace = Object(create["a" /* createNamespace */])('overlay'),
    createComponent = _createNamespace[0],
    overlay_bem = _createNamespace[1];

function preventTouchMove(event) {
  preventDefault(event, true);
}

function Overlay(h, props, slots, ctx) {
  var style = _extends({
    zIndex: props.zIndex
  }, props.customStyle);

  if (Object(utils["c" /* isDef */])(props.duration)) {
    style.animationDuration = props.duration + "s";
  }

  return h("transition", {
    "attrs": {
      "name": "van-fade"
    }
  }, [h("div", helper_default()([{
    "directives": [{
      name: "show",
      value: props.show
    }],
    "style": style,
    "class": [overlay_bem(), props.className],
    "on": {
      "touchmove": props.lockScroll ? preventTouchMove : utils["i" /* noop */]
    }
  }, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
}

Overlay.props = {
  show: Boolean,
  zIndex: [Number, String],
  duration: [Number, String],
  className: null,
  customStyle: Object,
  lockScroll: {
    type: Boolean,
    default: true
  }
};
/* harmony default export */ var es_overlay = (createComponent(Overlay));
// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/node.js
function removeNode(el) {
  var parent = el.parentNode;

  if (parent) {
    parent.removeChild(el);
  }
}
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/popup/overlay.js





var defaultConfig = {
  className: '',
  customStyle: {}
};

function mountOverlay(vm) {
  return mount(es_overlay, {
    on: {
      // close popup when overlay clicked & closeOnClickOverlay is true
      click: function click() {
        vm.$emit('click-overlay');

        if (vm.closeOnClickOverlay) {
          if (vm.onClickOverlay) {
            vm.onClickOverlay();
          } else {
            vm.close();
          }
        }
      }
    }
  });
}

function updateOverlay(vm) {
  var item = context_context.find(vm);

  if (item) {
    var el = vm.$el;
    var config = item.config,
        overlay = item.overlay;

    if (el && el.parentNode) {
      el.parentNode.insertBefore(overlay.$el, el);
    }

    _extends(overlay, defaultConfig, config, {
      show: true
    });
  }
}
function openOverlay(vm, config) {
  var item = context_context.find(vm);

  if (item) {
    item.config = config;
  } else {
    var overlay = mountOverlay(vm);
    context_context.stack.push({
      vm: vm,
      config: config,
      overlay: overlay
    });
  }

  updateOverlay(vm);
}
function closeOverlay(vm) {
  var item = context_context.find(vm);

  if (item) {
    item.overlay.show = false;
  }
}
function removeOverlay(vm) {
  var item = context_context.find(vm);

  if (item) {
    removeNode(item.overlay.$el);
    context_context.remove(vm);
  }
}
// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/scroll.js
function isWindow(val) {
  return val === window;
} // get nearest scroll element
// https://github.com/vant-ui/vant/issues/3823


var overflowScrollReg = /scroll|auto|overlay/i;
function getScroller(el, root) {
  if (root === void 0) {
    root = window;
  }

  var node = el;

  while (node && node.tagName !== 'HTML' && node.tagName !== 'BODY' && node.nodeType === 1 && node !== root) {
    var _window$getComputedSt = window.getComputedStyle(node),
        overflowY = _window$getComputedSt.overflowY;

    if (overflowScrollReg.test(overflowY)) {
      return node;
    }

    node = node.parentNode;
  }

  return root;
}
function getScrollTop(el) {
  var top = 'scrollTop' in el ? el.scrollTop : el.pageYOffset; // iOS scroll bounce cause minus scrollTop

  return Math.max(top, 0);
}
function setScrollTop(el, value) {
  if ('scrollTop' in el) {
    el.scrollTop = value;
  } else {
    el.scrollTo(el.scrollX, value);
  }
}
function getRootScrollTop() {
  return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
}
function setRootScrollTop(value) {
  setScrollTop(window, value);
  setScrollTop(document.body, value);
} // get distance from element top to page top or scroller top

function getElementTop(el, scroller) {
  if (isWindow(el)) {
    return 0;
  }

  var scrollTop = scroller ? getScrollTop(scroller) : getRootScrollTop();
  return el.getBoundingClientRect().top + scrollTop;
}
function getVisibleHeight(el) {
  if (isWindow(el)) {
    return el.innerHeight;
  }

  return el.getBoundingClientRect().height;
}
function getVisibleTop(el) {
  if (isWindow(el)) {
    return 0;
  }

  return el.getBoundingClientRect().top;
}
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/touch.js


function getDirection(x, y) {
  if (x > y) {
    return 'horizontal';
  }

  if (y > x) {
    return 'vertical';
  }

  return '';
}

var TouchMixin = {
  data: function data() {
    return {
      direction: ''
    };
  },
  methods: {
    touchStart: function touchStart(event) {
      this.resetTouchStatus();
      this.startX = event.touches[0].clientX;
      this.startY = event.touches[0].clientY;
    },
    touchMove: function touchMove(event) {
      var touch = event.touches[0]; // safari back will set clientX to negative number

      this.deltaX = touch.clientX < 0 ? 0 : touch.clientX - this.startX;
      this.deltaY = touch.clientY - this.startY;
      this.offsetX = Math.abs(this.deltaX);
      this.offsetY = Math.abs(this.deltaY); // lock direction when distance is greater than a certain value

      var LOCK_DIRECTION_DISTANCE = 10;

      if (!this.direction || this.offsetX < LOCK_DIRECTION_DISTANCE && this.offsetY < LOCK_DIRECTION_DISTANCE) {
        this.direction = getDirection(this.offsetX, this.offsetY);
      }
    },
    resetTouchStatus: function resetTouchStatus() {
      this.direction = '';
      this.deltaX = 0;
      this.deltaY = 0;
      this.offsetX = 0;
      this.offsetY = 0;
    },
    // avoid Vue 2.6 event bubble issues by manually binding events
    // https://github.com/vant-ui/vant/issues/3015
    bindTouchEvent: function bindTouchEvent(el) {
      var onTouchStart = this.onTouchStart,
          onTouchMove = this.onTouchMove,
          onTouchEnd = this.onTouchEnd;
      event_on(el, 'touchstart', onTouchStart);
      event_on(el, 'touchmove', onTouchMove);

      if (onTouchEnd) {
        event_on(el, 'touchend', onTouchEnd);
        event_on(el, 'touchcancel', onTouchEnd);
      }
    }
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/portal.js
function getElement(selector) {
  if (typeof selector === 'string') {
    return document.querySelector(selector);
  }

  return selector();
}

function PortalMixin(_temp) {
  var _ref = _temp === void 0 ? {} : _temp,
      ref = _ref.ref,
      afterPortal = _ref.afterPortal;

  return {
    props: {
      getContainer: [String, Function]
    },
    watch: {
      getContainer: 'portal'
    },
    mounted: function mounted() {
      if (this.getContainer) {
        this.portal();
      }
    },
    methods: {
      portal: function portal() {
        var getContainer = this.getContainer;
        var el = ref ? this.$refs[ref] : this.$el;
        var container;

        if (getContainer) {
          container = getElement(getContainer);
        } else if (this.$parent) {
          container = this.$parent.$el;
        }

        if (container && container !== el.parentNode) {
          container.appendChild(el);
        }

        if (afterPortal) {
          afterPortal.call(this);
        }
      }
    }
  };
}
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/bind-event.js
/**
 * Bind event when mounted or activated
 */

var uid = 0;
function BindEventMixin(handler) {
  var key = "binded_" + uid++;

  function bind() {
    if (!this[key]) {
      handler.call(this, event_on, true);
      this[key] = true;
    }
  }

  function unbind() {
    if (this[key]) {
      handler.call(this, off, false);
      this[key] = false;
    }
  }

  return {
    mounted: bind,
    activated: bind,
    deactivated: unbind,
    beforeDestroy: unbind
  };
}
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/close-on-popstate.js


var CloseOnPopstateMixin = {
  mixins: [BindEventMixin(function (bind, isBind) {
    this.handlePopstate(isBind && this.closeOnPopstate);
  })],
  props: {
    closeOnPopstate: Boolean
  },
  data: function data() {
    return {
      bindStatus: false
    };
  },
  watch: {
    closeOnPopstate: function closeOnPopstate(val) {
      this.handlePopstate(val);
    }
  },
  methods: {
    onPopstate: function onPopstate() {
      this.close();
      this.shouldReopen = false;
    },
    handlePopstate: function handlePopstate(bind) {
      /* istanbul ignore if */
      if (this.$isServer) {
        return;
      }

      if (this.bindStatus !== bind) {
        this.bindStatus = bind;
        var action = bind ? event_on : off;
        action(window, 'popstate', this.onPopstate);
      }
    }
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/popup/index.js
// Context

 // Utils



 // Mixins




var popupMixinProps = {
  // Initial rendering animation
  transitionAppear: Boolean,
  // whether to show popup
  value: Boolean,
  // whether to show overlay
  overlay: Boolean,
  // overlay custom style
  overlayStyle: Object,
  // overlay custom class name
  overlayClass: String,
  // whether to close popup when overlay is clicked
  closeOnClickOverlay: Boolean,
  // z-index
  zIndex: [Number, String],
  // prevent body scroll
  lockScroll: {
    type: Boolean,
    default: true
  },
  // whether to lazy render
  lazyRender: {
    type: Boolean,
    default: true
  }
};
function PopupMixin(options) {
  if (options === void 0) {
    options = {};
  }

  return {
    mixins: [TouchMixin, CloseOnPopstateMixin, PortalMixin({
      afterPortal: function afterPortal() {
        if (this.overlay) {
          updateOverlay();
        }
      }
    })],
    provide: function provide() {
      return {
        vanPopup: this
      };
    },
    props: popupMixinProps,
    data: function data() {
      this.onReopenCallback = [];
      return {
        inited: this.value
      };
    },
    computed: {
      shouldRender: function shouldRender() {
        return this.inited || !this.lazyRender;
      }
    },
    watch: {
      value: function value(val) {
        var type = val ? 'open' : 'close';
        this.inited = this.inited || this.value;
        this[type]();

        if (!options.skipToggleEvent) {
          this.$emit(type);
        }
      },
      overlay: 'renderOverlay'
    },
    mounted: function mounted() {
      if (this.value) {
        this.open();
      }
    },

    /* istanbul ignore next */
    activated: function activated() {
      if (this.shouldReopen) {
        this.$emit('input', true);
        this.shouldReopen = false;
      }
    },
    beforeDestroy: function beforeDestroy() {
      removeOverlay(this);

      if (this.opened) {
        this.removeLock();
      }

      if (this.getContainer) {
        removeNode(this.$el);
      }
    },

    /* istanbul ignore next */
    deactivated: function deactivated() {
      if (this.value) {
        this.close();
        this.shouldReopen = true;
      }
    },
    methods: {
      open: function open() {
        /* istanbul ignore next */
        if (this.$isServer || this.opened) {
          return;
        } // cover default zIndex


        if (this.zIndex !== undefined) {
          context_context.zIndex = this.zIndex;
        }

        this.opened = true;
        this.renderOverlay();
        this.addLock();
        this.onReopenCallback.forEach(function (callback) {
          callback();
        });
      },
      addLock: function addLock() {
        if (this.lockScroll) {
          event_on(document, 'touchstart', this.touchStart);
          event_on(document, 'touchmove', this.onTouchMove);

          if (!context_context.lockCount) {
            document.body.classList.add('van-overflow-hidden');
          }

          context_context.lockCount++;
        }
      },
      removeLock: function removeLock() {
        if (this.lockScroll && context_context.lockCount) {
          context_context.lockCount--;
          off(document, 'touchstart', this.touchStart);
          off(document, 'touchmove', this.onTouchMove);

          if (!context_context.lockCount) {
            document.body.classList.remove('van-overflow-hidden');
          }
        }
      },
      close: function close() {
        if (!this.opened) {
          return;
        }

        closeOverlay(this);
        this.opened = false;
        this.removeLock();
        this.$emit('input', false);
      },
      onTouchMove: function onTouchMove(event) {
        this.touchMove(event);
        var direction = this.deltaY > 0 ? '10' : '01';
        var el = getScroller(event.target, this.$el);
        var scrollHeight = el.scrollHeight,
            offsetHeight = el.offsetHeight,
            scrollTop = el.scrollTop;
        var status = '11';
        /* istanbul ignore next */

        if (scrollTop === 0) {
          status = offsetHeight >= scrollHeight ? '00' : '01';
        } else if (scrollTop + offsetHeight >= scrollHeight) {
          status = '10';
        }
        /* istanbul ignore next */


        if (status !== '11' && this.direction === 'vertical' && !(parseInt(status, 2) & parseInt(direction, 2))) {
          preventDefault(event, true);
        }
      },
      renderOverlay: function renderOverlay() {
        var _this = this;

        if (this.$isServer || !this.value) {
          return;
        }

        this.$nextTick(function () {
          _this.updateZIndex(_this.overlay ? 1 : 0);

          if (_this.overlay) {
            openOverlay(_this, {
              zIndex: context_context.zIndex++,
              duration: _this.duration,
              className: _this.overlayClass,
              customStyle: _this.overlayStyle
            });
          } else {
            closeOverlay(_this);
          }
        });
      },
      updateZIndex: function updateZIndex(value) {
        if (value === void 0) {
          value = 0;
        }

        this.$el.style.zIndex = ++context_context.zIndex + value;
      },
      onReopen: function onReopen(callback) {
        this.onReopenCallback.push(callback);
      }
    }
  };
}
// EXTERNAL MODULE: ./node_modules/vant/es/utils/format/unit.js
var unit = __webpack_require__(122);

// CONCATENATED MODULE: ./node_modules/vant/es/info/index.js

// Utils

 // Types

var info_createNamespace = Object(create["a" /* createNamespace */])('info'),
    info_createComponent = info_createNamespace[0],
    info_bem = info_createNamespace[1];

function info_Info(h, props, slots, ctx) {
  var dot = props.dot,
      info = props.info;
  var showInfo = Object(utils["c" /* isDef */])(info) && info !== '';

  if (!dot && !showInfo) {
    return;
  }

  return h("div", helper_default()([{
    "class": info_bem({
      dot: dot
    })
  }, inherit(ctx, true)]), [dot ? '' : props.info]);
}

info_Info.props = {
  dot: Boolean,
  info: [Number, String]
};
/* harmony default export */ var es_info = (info_createComponent(info_Info));
// CONCATENATED MODULE: ./node_modules/vant/es/icon/index.js

// Utils

 // Components

 // Types

var icon_createNamespace = Object(create["a" /* createNamespace */])('icon'),
    icon_createComponent = icon_createNamespace[0],
    icon_bem = icon_createNamespace[1];

function isImage(name) {
  return name ? name.indexOf('/') !== -1 : false;
} // compatible with legacy usage, should be removed in next major version


var LEGACY_MAP = {
  medel: 'medal',
  'medel-o': 'medal-o',
  'calender-o': 'calendar-o'
};

function correctName(name) {
  return name && LEGACY_MAP[name] || name;
}

function Icon(h, props, slots, ctx) {
  var _props$badge;

  var name = correctName(props.name);
  var imageIcon = isImage(name);

  if (false) {}

  return h(props.tag, helper_default()([{
    "class": [props.classPrefix, imageIcon ? '' : props.classPrefix + "-" + name],
    "style": {
      color: props.color,
      fontSize: Object(unit["a" /* addUnit */])(props.size)
    }
  }, inherit(ctx, true)]), [slots.default && slots.default(), imageIcon && h("img", {
    "class": icon_bem('image'),
    "attrs": {
      "src": name
    }
  }), h(es_info, {
    "attrs": {
      "dot": props.dot,
      "info": (_props$badge = props.badge) != null ? _props$badge : props.info
    }
  })]);
}

Icon.props = {
  dot: Boolean,
  name: String,
  size: [Number, String],
  // @deprecated
  // should be removed in next major version
  info: [Number, String],
  badge: [Number, String],
  color: String,
  tag: {
    type: String,
    default: 'i'
  },
  classPrefix: {
    type: String,
    default: icon_bem()
  }
};
/* harmony default export */ var es_icon = (icon_createComponent(Icon));
// CONCATENATED MODULE: ./node_modules/vant/es/popup/index.js




var popup_createNamespace = Object(create["a" /* createNamespace */])('popup'),
    popup_createComponent = popup_createNamespace[0],
    popup_bem = popup_createNamespace[1];

/* harmony default export */ var popup = (popup_createComponent({
  mixins: [PopupMixin()],
  props: {
    round: Boolean,
    duration: [Number, String],
    closeable: Boolean,
    transition: String,
    safeAreaInsetBottom: Boolean,
    closeIcon: {
      type: String,
      default: 'cross'
    },
    closeIconPosition: {
      type: String,
      default: 'top-right'
    },
    position: {
      type: String,
      default: 'center'
    },
    overlay: {
      type: Boolean,
      default: true
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: true
    }
  },
  beforeCreate: function beforeCreate() {
    var _this = this;

    var createEmitter = function createEmitter(eventName) {
      return function (event) {
        return _this.$emit(eventName, event);
      };
    };

    this.onClick = createEmitter('click');
    this.onOpened = createEmitter('opened');
    this.onClosed = createEmitter('closed');
  },
  methods: {
    onClickCloseIcon: function onClickCloseIcon(event) {
      this.$emit('click-close-icon', event);
      this.close();
    }
  },
  render: function render() {
    var _bem;

    var h = arguments[0];

    if (!this.shouldRender) {
      return;
    }

    var round = this.round,
        position = this.position,
        duration = this.duration;
    var isCenter = position === 'center';
    var transitionName = this.transition || (isCenter ? 'van-fade' : "van-popup-slide-" + position);
    var style = {};

    if (Object(utils["c" /* isDef */])(duration)) {
      var key = isCenter ? 'animationDuration' : 'transitionDuration';
      style[key] = duration + "s";
    }

    return h("transition", {
      "attrs": {
        "appear": this.transitionAppear,
        "name": transitionName
      },
      "on": {
        "afterEnter": this.onOpened,
        "afterLeave": this.onClosed
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "style": style,
      "class": popup_bem((_bem = {
        round: round
      }, _bem[position] = position, _bem['safe-area-inset-bottom'] = this.safeAreaInsetBottom, _bem)),
      "on": {
        "click": this.onClick
      }
    }, [this.slots(), this.closeable && h(es_icon, {
      "attrs": {
        "role": "button",
        "tabindex": "0",
        "name": this.closeIcon
      },
      "class": popup_bem('close-icon', this.closeIconPosition),
      "on": {
        "click": this.onClickCloseIcon
      }
    })])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/loading/index.js

// Utils

 // Types

var loading_createNamespace = Object(create["a" /* createNamespace */])('loading'),
    loading_createComponent = loading_createNamespace[0],
    loading_bem = loading_createNamespace[1];

function LoadingIcon(h, props) {
  if (props.type === 'spinner') {
    var Spin = [];

    for (var i = 0; i < 12; i++) {
      Spin.push(h("i"));
    }

    return Spin;
  }

  return h("svg", {
    "class": loading_bem('circular'),
    "attrs": {
      "viewBox": "25 25 50 50"
    }
  }, [h("circle", {
    "attrs": {
      "cx": "50",
      "cy": "50",
      "r": "20",
      "fill": "none"
    }
  })]);
}

function LoadingText(h, props, slots) {
  if (slots.default) {
    var _props$textColor;

    var style = {
      fontSize: Object(unit["a" /* addUnit */])(props.textSize),
      color: (_props$textColor = props.textColor) != null ? _props$textColor : props.color
    };
    return h("span", {
      "class": loading_bem('text'),
      "style": style
    }, [slots.default()]);
  }
}

function Loading(h, props, slots, ctx) {
  var color = props.color,
      size = props.size,
      type = props.type;
  var style = {
    color: color
  };

  if (size) {
    var iconSize = Object(unit["a" /* addUnit */])(size);
    style.width = iconSize;
    style.height = iconSize;
  }

  return h("div", helper_default()([{
    "class": loading_bem([type, {
      vertical: props.vertical
    }])
  }, inherit(ctx, true)]), [h("span", {
    "class": loading_bem('spinner', type),
    "style": style
  }, [LoadingIcon(h, props)]), LoadingText(h, props, slots)]);
}

Loading.props = {
  color: String,
  size: [Number, String],
  vertical: Boolean,
  textSize: [Number, String],
  textColor: String,
  type: {
    type: String,
    default: 'circular'
  }
};
/* harmony default export */ var es_loading = (loading_createComponent(Loading));
// CONCATENATED MODULE: ./node_modules/vant/es/action-sheet/index.js


 // Utils


 // Mixins

 // Components



 // Types

var action_sheet_createNamespace = Object(create["a" /* createNamespace */])('action-sheet'),
    action_sheet_createComponent = action_sheet_createNamespace[0],
    action_sheet_bem = action_sheet_createNamespace[1];

function ActionSheet(h, props, slots, ctx) {
  var title = props.title,
      cancelText = props.cancelText,
      closeable = props.closeable;

  function onCancel() {
    functional_emit(ctx, 'input', false);
    functional_emit(ctx, 'cancel');
  }

  function Header() {
    if (title) {
      return h("div", {
        "class": action_sheet_bem('header')
      }, [title, closeable && h(es_icon, {
        "attrs": {
          "name": props.closeIcon
        },
        "class": action_sheet_bem('close'),
        "on": {
          "click": onCancel
        }
      })]);
    }
  }

  function Option(item, index) {
    var disabled = item.disabled,
        loading = item.loading,
        callback = item.callback;

    function onClickOption(event) {
      event.stopPropagation();

      if (disabled || loading) {
        return;
      }

      if (callback) {
        callback(item);
      }

      if (props.closeOnClickAction) {
        functional_emit(ctx, 'input', false);
      }

      vue_default.a.nextTick(function () {
        functional_emit(ctx, 'select', item, index);
      });
    }

    function OptionContent() {
      if (loading) {
        return h(es_loading, {
          "class": action_sheet_bem('loading-icon')
        });
      }

      return [h("span", {
        "class": action_sheet_bem('name')
      }, [item.name]), item.subname && h("div", {
        "class": action_sheet_bem('subname')
      }, [item.subname])];
    }

    return h("button", {
      "attrs": {
        "type": "button"
      },
      "class": [action_sheet_bem('item', {
        disabled: disabled,
        loading: loading
      }), item.className],
      "style": {
        color: item.color
      },
      "on": {
        "click": onClickOption
      }
    }, [OptionContent()]);
  }

  function CancelText() {
    if (cancelText) {
      return [h("div", {
        "class": action_sheet_bem('gap')
      }), h("button", {
        "attrs": {
          "type": "button"
        },
        "class": action_sheet_bem('cancel'),
        "on": {
          "click": onCancel
        }
      }, [cancelText])];
    }
  }

  function Description() {
    var description = (slots.description == null ? void 0 : slots.description()) || props.description;

    if (description) {
      return h("div", {
        "class": action_sheet_bem('description')
      }, [description]);
    }
  }

  return h(popup, helper_default()([{
    "class": action_sheet_bem(),
    "attrs": {
      "position": "bottom",
      "round": props.round,
      "value": props.value,
      "overlay": props.overlay,
      "duration": props.duration,
      "lazyRender": props.lazyRender,
      "lockScroll": props.lockScroll,
      "getContainer": props.getContainer,
      "closeOnPopstate": props.closeOnPopstate,
      "closeOnClickOverlay": props.closeOnClickOverlay,
      "safeAreaInsetBottom": props.safeAreaInsetBottom
    }
  }, inherit(ctx, true)]), [Header(), Description(), h("div", {
    "class": action_sheet_bem('content')
  }, [props.actions && props.actions.map(Option), slots.default == null ? void 0 : slots.default()]), CancelText()]);
}

ActionSheet.props = _extends({}, popupMixinProps, {
  title: String,
  actions: Array,
  duration: [Number, String],
  cancelText: String,
  description: String,
  getContainer: [String, Function],
  closeOnPopstate: Boolean,
  closeOnClickAction: Boolean,
  round: {
    type: Boolean,
    default: true
  },
  closeable: {
    type: Boolean,
    default: true
  },
  closeIcon: {
    type: String,
    default: 'cross'
  },
  safeAreaInsetBottom: {
    type: Boolean,
    default: true
  },
  overlay: {
    type: Boolean,
    default: true
  },
  closeOnClickOverlay: {
    type: Boolean,
    default: true
  }
});
/* harmony default export */ var action_sheet = (action_sheet_createComponent(ActionSheet));
// CONCATENATED MODULE: ./node_modules/vant/es/utils/validate/mobile.js
function isMobile(value) {
  value = value.replace(/[^-|\d]/g, '');
  return /^((\+86)|(86))?(1)\d{10}$/.test(value) || /^0[0-9-]{10,13}$/.test(value);
}
// CONCATENATED MODULE: ./node_modules/vant/es/picker/shared.js
var DEFAULT_ITEM_HEIGHT = 44;
var pickerProps = {
  title: String,
  loading: Boolean,
  readonly: Boolean,
  itemHeight: [Number, String],
  showToolbar: Boolean,
  cancelButtonText: String,
  confirmButtonText: String,
  allowHtml: {
    type: Boolean,
    default: true
  },
  visibleItemCount: {
    type: [Number, String],
    default: 6
  },
  swipeDuration: {
    type: [Number, String],
    default: 1000
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/utils/constant.js
// color
var RED = '#ee0a24'; // border

var BORDER = 'van-hairline';
var BORDER_TOP = BORDER + "--top";
var BORDER_LEFT = BORDER + "--left";
var BORDER_BOTTOM = BORDER + "--bottom";
var BORDER_SURROUND = BORDER + "--surround";
var BORDER_TOP_BOTTOM = BORDER + "--top-bottom";
var BORDER_UNSET_TOP_BOTTOM = BORDER + "-unset--top-bottom";
// CONCATENATED MODULE: ./node_modules/vant/es/utils/deep-clone.js

function deepClone(obj) {
  if (!Object(utils["c" /* isDef */])(obj)) {
    return obj;
  }

  if (Array.isArray(obj)) {
    return obj.map(function (item) {
      return deepClone(item);
    });
  }

  if (typeof obj === 'object') {
    var to = {};
    Object.keys(obj).forEach(function (key) {
      to[key] = deepClone(obj[key]);
    });
    return to;
  }

  return obj;
}
// CONCATENATED MODULE: ./node_modules/vant/es/utils/format/number.js
function range(num, min, max) {
  return Math.min(Math.max(num, min), max);
}

function trimExtraChar(value, _char, regExp) {
  var index = value.indexOf(_char);
  var prefix = '';

  if (index === -1) {
    return value;
  }

  if (_char === '-' && index !== 0) {
    return value.slice(0, index);
  }

  if (_char === '.' && value.match(/^(\.|-\.)/)) {
    prefix = index ? '-0' : '0';
  }

  return prefix + value.slice(0, index + 1) + value.slice(index).replace(regExp, '');
}

function number_formatNumber(value, allowDot, allowMinus) {
  if (allowDot === void 0) {
    allowDot = true;
  }

  if (allowMinus === void 0) {
    allowMinus = true;
  }

  if (allowDot) {
    value = trimExtraChar(value, '.', /\./g);
  } else {
    value = value.split('.')[0];
  }

  if (allowMinus) {
    value = trimExtraChar(value, '-', /-/g);
  } else {
    value = value.replace(/-/, '');
  }

  var regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
  return value.replace(regExp, '');
} // add num and avoid float number

function addNumber(num1, num2) {
  var cardinal = Math.pow(10, 10);
  return Math.round((num1 + num2) * cardinal) / cardinal;
}
// CONCATENATED MODULE: ./node_modules/vant/es/picker/PickerColumn.js







var DEFAULT_DURATION = 200; // 惯性滑动思路:
// 在手指离开屏幕时，如果和上一次 move 时的间隔小于 `MOMENTUM_LIMIT_TIME` 且 move
// 距离大于 `MOMENTUM_LIMIT_DISTANCE` 时，执行惯性滑动

var MOMENTUM_LIMIT_TIME = 300;
var MOMENTUM_LIMIT_DISTANCE = 15;

var PickerColumn_createNamespace = Object(create["a" /* createNamespace */])('picker-column'),
    PickerColumn_createComponent = PickerColumn_createNamespace[0],
    PickerColumn_bem = PickerColumn_createNamespace[1];

function getElementTranslateY(element) {
  var style = window.getComputedStyle(element);
  var transform = style.transform || style.webkitTransform;
  var translateY = transform.slice(7, transform.length - 1).split(', ')[5];
  return Number(translateY);
}

function isOptionDisabled(option) {
  return Object(utils["f" /* isObject */])(option) && option.disabled;
} // use standard WheelEvent:
// https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent


var supportMousewheel = utils["b" /* inBrowser */] && 'onwheel' in window;
var mousewheelTimer = null;
/* harmony default export */ var PickerColumn = (PickerColumn_createComponent({
  mixins: [TouchMixin],
  props: {
    valueKey: String,
    readonly: Boolean,
    allowHtml: Boolean,
    className: String,
    itemHeight: Number,
    defaultIndex: Number,
    swipeDuration: [Number, String],
    visibleItemCount: [Number, String],
    initialOptions: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  data: function data() {
    return {
      offset: 0,
      duration: 0,
      options: deepClone(this.initialOptions),
      currentIndex: this.defaultIndex
    };
  },
  created: function created() {
    if (this.$parent.children) {
      this.$parent.children.push(this);
    }

    this.setIndex(this.currentIndex);
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);

    if (supportMousewheel) {
      event_on(this.$el, 'wheel', this.onMouseWheel, false);
    }
  },
  destroyed: function destroyed() {
    var children = this.$parent.children;

    if (children) {
      children.splice(children.indexOf(this), 1);
    }

    if (supportMousewheel) {
      off(this.$el, 'wheel');
    }
  },
  watch: {
    initialOptions: 'setOptions',
    defaultIndex: function defaultIndex(val) {
      this.setIndex(val);
    }
  },
  computed: {
    count: function count() {
      return this.options.length;
    },
    baseOffset: function baseOffset() {
      return this.itemHeight * (this.visibleItemCount - 1) / 2;
    }
  },
  methods: {
    setOptions: function setOptions(options) {
      if (JSON.stringify(options) !== JSON.stringify(this.options)) {
        this.options = deepClone(options);
        this.setIndex(this.defaultIndex);
      }
    },
    onTouchStart: function onTouchStart(event) {
      if (this.readonly) {
        return;
      }

      this.touchStart(event);

      if (this.moving) {
        var translateY = getElementTranslateY(this.$refs.wrapper);
        this.offset = Math.min(0, translateY - this.baseOffset);
        this.startOffset = this.offset;
      } else {
        this.startOffset = this.offset;
      }

      this.duration = 0;
      this.transitionEndTrigger = null;
      this.touchStartTime = Date.now();
      this.momentumOffset = this.startOffset;
    },
    onTouchMove: function onTouchMove(event) {
      if (this.readonly) {
        return;
      }

      this.touchMove(event);

      if (this.direction === 'vertical') {
        this.moving = true;
        preventDefault(event, true);
      }

      this.offset = range(this.startOffset + this.deltaY, -(this.count * this.itemHeight), this.itemHeight);
      var now = Date.now();

      if (now - this.touchStartTime > MOMENTUM_LIMIT_TIME) {
        this.touchStartTime = now;
        this.momentumOffset = this.offset;
      }
    },
    onTouchEnd: function onTouchEnd() {
      var _this = this;

      if (this.readonly) {
        return;
      }

      var distance = this.offset - this.momentumOffset;
      var duration = Date.now() - this.touchStartTime;
      var allowMomentum = duration < MOMENTUM_LIMIT_TIME && Math.abs(distance) > MOMENTUM_LIMIT_DISTANCE;

      if (allowMomentum) {
        this.momentum(distance, duration);
        return;
      }

      var index = this.getIndexByOffset(this.offset);
      this.duration = DEFAULT_DURATION;
      this.setIndex(index, true); // compatible with desktop scenario
      // use setTimeout to skip the click event Emitted after touchstart

      setTimeout(function () {
        _this.moving = false;
      }, 0);
    },
    onMouseWheel: function onMouseWheel(event) {
      var _this2 = this;

      if (this.readonly) {
        return;
      }

      preventDefault(event, true); // simply combine touchstart and touchmove

      var translateY = getElementTranslateY(this.$refs.wrapper);
      this.startOffset = Math.min(0, translateY - this.baseOffset);
      this.momentumOffset = this.startOffset;
      this.transitionEndTrigger = null; // directly use deltaY, see https://caniuse.com/?search=deltaY
      // use deltaY to detect direction for not special setting device
      // https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event

      var deltaY = event.deltaY;

      if (this.startOffset === 0 && deltaY < 0) {
        return;
      } // Calculate the offset based on itemHeight


      var itemOffset = this.itemHeight * (deltaY > 0 ? -1 : 1);
      this.offset = range(this.startOffset + itemOffset, -(this.count * this.itemHeight), this.itemHeight);

      if (mousewheelTimer) {
        clearTimeout(mousewheelTimer);
      }

      mousewheelTimer = setTimeout(function () {
        _this2.onTouchEnd();

        _this2.touchStartTime = 0;
      }, MOMENTUM_LIMIT_TIME);
    },
    onTransitionEnd: function onTransitionEnd() {
      this.stopMomentum();
    },
    onClickItem: function onClickItem(index) {
      if (this.moving || this.readonly) {
        return;
      }

      this.transitionEndTrigger = null;
      this.duration = DEFAULT_DURATION;
      this.setIndex(index, true);
    },
    adjustIndex: function adjustIndex(index) {
      index = range(index, 0, this.count);

      for (var i = index; i < this.count; i++) {
        if (!isOptionDisabled(this.options[i])) return i;
      }

      for (var _i = index - 1; _i >= 0; _i--) {
        if (!isOptionDisabled(this.options[_i])) return _i;
      }
    },
    getOptionText: function getOptionText(option) {
      if (Object(utils["f" /* isObject */])(option) && this.valueKey in option) {
        return option[this.valueKey];
      }

      return option;
    },
    setIndex: function setIndex(index, emitChange) {
      var _this3 = this;

      index = this.adjustIndex(index) || 0;
      var offset = -index * this.itemHeight;

      var trigger = function trigger() {
        if (index !== _this3.currentIndex) {
          _this3.currentIndex = index;

          if (emitChange) {
            _this3.$emit('change', index);
          }
        }
      }; // trigger the change event after transitionend when moving


      if (this.moving && offset !== this.offset) {
        this.transitionEndTrigger = trigger;
      } else {
        trigger();
      }

      this.offset = offset;
    },
    setValue: function setValue(value) {
      var options = this.options;

      for (var i = 0; i < options.length; i++) {
        if (this.getOptionText(options[i]) === value) {
          return this.setIndex(i);
        }
      }
    },
    getValue: function getValue() {
      return this.options[this.currentIndex];
    },
    getIndexByOffset: function getIndexByOffset(offset) {
      return range(Math.round(-offset / this.itemHeight), 0, this.count - 1);
    },
    momentum: function momentum(distance, duration) {
      var speed = Math.abs(distance / duration);
      distance = this.offset + speed / 0.003 * (distance < 0 ? -1 : 1);
      var index = this.getIndexByOffset(distance);
      this.duration = +this.swipeDuration;
      this.setIndex(index, true);
    },
    stopMomentum: function stopMomentum() {
      this.moving = false;
      this.duration = 0;

      if (this.transitionEndTrigger) {
        this.transitionEndTrigger();
        this.transitionEndTrigger = null;
      }
    },
    genOptions: function genOptions() {
      var _this4 = this;

      var h = this.$createElement;
      var optionStyle = {
        height: this.itemHeight + "px"
      };
      return this.options.map(function (option, index) {
        var _domProps;

        var text = _this4.getOptionText(option);

        var disabled = isOptionDisabled(option);
        var data = {
          style: optionStyle,
          attrs: {
            role: 'button',
            tabindex: disabled ? -1 : 0
          },
          class: [PickerColumn_bem('item', {
            disabled: disabled,
            selected: index === _this4.currentIndex
          })],
          on: {
            click: function click() {
              _this4.onClickItem(index);
            }
          }
        };
        var childData = {
          class: 'van-ellipsis',
          domProps: (_domProps = {}, _domProps[_this4.allowHtml ? 'innerHTML' : 'textContent'] = text, _domProps)
        };
        return h("li", helper_default()([{}, data]), [_this4.slots('option', option) || h("div", helper_default()([{}, childData]))]);
      });
    }
  },
  render: function render() {
    var h = arguments[0];
    var wrapperStyle = {
      transform: "translate3d(0, " + (this.offset + this.baseOffset) + "px, 0)",
      transitionDuration: this.duration + "ms",
      transitionProperty: this.duration ? 'all' : 'none'
    };
    return h("div", {
      "class": [PickerColumn_bem(), this.className]
    }, [h("ul", {
      "ref": "wrapper",
      "style": wrapperStyle,
      "class": PickerColumn_bem('wrapper'),
      "on": {
        "transitionend": this.onTransitionEnd
      }
    }, [this.genOptions()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/picker/index.js

// Utils




 // Components




var picker_createNamespace = Object(create["a" /* createNamespace */])('picker'),
    picker_createComponent = picker_createNamespace[0],
    picker_bem = picker_createNamespace[1],
    picker_t = picker_createNamespace[2];

/* harmony default export */ var es_picker = (picker_createComponent({
  props: _extends({}, pickerProps, {
    defaultIndex: {
      type: [Number, String],
      default: 0
    },
    columns: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    toolbarPosition: {
      type: String,
      default: 'top'
    },
    valueKey: {
      type: String,
      default: 'text'
    }
  }),
  data: function data() {
    return {
      children: [],
      formattedColumns: []
    };
  },
  computed: {
    itemPxHeight: function itemPxHeight() {
      return this.itemHeight ? Object(unit["b" /* unitToPx */])(this.itemHeight) : DEFAULT_ITEM_HEIGHT;
    },
    dataType: function dataType() {
      var columns = this.columns;
      var firstColumn = columns[0] || {};

      if (firstColumn.children) {
        return 'cascade';
      }

      if (firstColumn.values) {
        return 'object';
      }

      return 'text';
    }
  },
  watch: {
    columns: {
      handler: 'format',
      immediate: true
    }
  },
  methods: {
    format: function format() {
      var columns = this.columns,
          dataType = this.dataType;

      if (dataType === 'text') {
        this.formattedColumns = [{
          values: columns
        }];
      } else if (dataType === 'cascade') {
        this.formatCascade();
      } else {
        this.formattedColumns = columns;
      }
    },
    formatCascade: function formatCascade() {
      var formatted = [];
      var cursor = {
        children: this.columns
      };

      while (cursor && cursor.children) {
        var _cursor$defaultIndex;

        var _cursor = cursor,
            children = _cursor.children;
        var defaultIndex = (_cursor$defaultIndex = cursor.defaultIndex) != null ? _cursor$defaultIndex : +this.defaultIndex;

        while (children[defaultIndex] && children[defaultIndex].disabled) {
          if (defaultIndex < children.length - 1) {
            defaultIndex++;
          } else {
            defaultIndex = 0;
            break;
          }
        }

        formatted.push({
          values: cursor.children,
          className: cursor.className,
          defaultIndex: defaultIndex
        });
        cursor = children[defaultIndex];
      }

      this.formattedColumns = formatted;
    },
    emit: function emit(event) {
      var _this = this;

      if (this.dataType === 'text') {
        this.$emit(event, this.getColumnValue(0), this.getColumnIndex(0));
      } else {
        var values = this.getValues(); // compatible with old version of wrong parameters
        // should be removed in next major version
        // see: https://github.com/vant-ui/vant/issues/5905

        if (this.dataType === 'cascade') {
          values = values.map(function (item) {
            return item[_this.valueKey];
          });
        }

        this.$emit(event, values, this.getIndexes());
      }
    },
    onCascadeChange: function onCascadeChange(columnIndex) {
      var cursor = {
        children: this.columns
      };
      var indexes = this.getIndexes();

      for (var i = 0; i <= columnIndex; i++) {
        cursor = cursor.children[indexes[i]];
      }

      while (cursor && cursor.children) {
        columnIndex++;
        this.setColumnValues(columnIndex, cursor.children);
        cursor = cursor.children[cursor.defaultIndex || 0];
      }
    },
    onChange: function onChange(columnIndex) {
      var _this2 = this;

      if (this.dataType === 'cascade') {
        this.onCascadeChange(columnIndex);
      }

      if (this.dataType === 'text') {
        this.$emit('change', this, this.getColumnValue(0), this.getColumnIndex(0));
      } else {
        var values = this.getValues(); // compatible with old version of wrong parameters
        // should be removed in next major version
        // see: https://github.com/vant-ui/vant/issues/5905

        if (this.dataType === 'cascade') {
          values = values.map(function (item) {
            return item[_this2.valueKey];
          });
        }

        this.$emit('change', this, values, columnIndex);
      }
    },
    // get column instance by index
    getColumn: function getColumn(index) {
      return this.children[index];
    },
    // @exposed-api
    // get column value by index
    getColumnValue: function getColumnValue(index) {
      var column = this.getColumn(index);
      return column && column.getValue();
    },
    // @exposed-api
    // set column value by index
    setColumnValue: function setColumnValue(index, value) {
      var column = this.getColumn(index);

      if (column) {
        column.setValue(value);

        if (this.dataType === 'cascade') {
          this.onCascadeChange(index);
        }
      }
    },
    // @exposed-api
    // get column option index by column index
    getColumnIndex: function getColumnIndex(columnIndex) {
      return (this.getColumn(columnIndex) || {}).currentIndex;
    },
    // @exposed-api
    // set column option index by column index
    setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
      var column = this.getColumn(columnIndex);

      if (column) {
        column.setIndex(optionIndex);

        if (this.dataType === 'cascade') {
          this.onCascadeChange(columnIndex);
        }
      }
    },
    // @exposed-api
    // get options of column by index
    getColumnValues: function getColumnValues(index) {
      return (this.children[index] || {}).options;
    },
    // @exposed-api
    // set options of column by index
    setColumnValues: function setColumnValues(index, options) {
      var column = this.children[index];

      if (column) {
        column.setOptions(options);
      }
    },
    // @exposed-api
    // get values of all columns
    getValues: function getValues() {
      return this.children.map(function (child) {
        return child.getValue();
      });
    },
    // @exposed-api
    // set values of all columns
    setValues: function setValues(values) {
      var _this3 = this;

      values.forEach(function (value, index) {
        _this3.setColumnValue(index, value);
      });
    },
    // @exposed-api
    // get indexes of all columns
    getIndexes: function getIndexes() {
      return this.children.map(function (child) {
        return child.currentIndex;
      });
    },
    // @exposed-api
    // set indexes of all columns
    setIndexes: function setIndexes(indexes) {
      var _this4 = this;

      indexes.forEach(function (optionIndex, columnIndex) {
        _this4.setColumnIndex(columnIndex, optionIndex);
      });
    },
    // @exposed-api
    confirm: function confirm() {
      this.children.forEach(function (child) {
        return child.stopMomentum();
      });
      this.emit('confirm');
    },
    cancel: function cancel() {
      this.emit('cancel');
    },
    genTitle: function genTitle() {
      var h = this.$createElement;
      var titleSlot = this.slots('title');

      if (titleSlot) {
        return titleSlot;
      }

      if (this.title) {
        return h("div", {
          "class": ['van-ellipsis', picker_bem('title')]
        }, [this.title]);
      }
    },
    genCancel: function genCancel() {
      var h = this.$createElement;
      return h("button", {
        "attrs": {
          "type": "button"
        },
        "class": picker_bem('cancel'),
        "on": {
          "click": this.cancel
        }
      }, [this.slots('cancel') || this.cancelButtonText || picker_t('cancel')]);
    },
    genConfirm: function genConfirm() {
      var h = this.$createElement;
      return h("button", {
        "attrs": {
          "type": "button"
        },
        "class": picker_bem('confirm'),
        "on": {
          "click": this.confirm
        }
      }, [this.slots('confirm') || this.confirmButtonText || picker_t('confirm')]);
    },
    genToolbar: function genToolbar() {
      var h = this.$createElement;

      if (this.showToolbar) {
        return h("div", {
          "class": picker_bem('toolbar')
        }, [this.slots() || [this.genCancel(), this.genTitle(), this.genConfirm()]]);
      }
    },
    genColumns: function genColumns() {
      var h = this.$createElement;
      var itemPxHeight = this.itemPxHeight;
      var wrapHeight = itemPxHeight * this.visibleItemCount;
      var frameStyle = {
        height: itemPxHeight + "px"
      };
      var columnsStyle = {
        height: wrapHeight + "px"
      };
      var maskStyle = {
        backgroundSize: "100% " + (wrapHeight - itemPxHeight) / 2 + "px"
      };
      return h("div", {
        "class": picker_bem('columns'),
        "style": columnsStyle,
        "on": {
          "touchmove": preventDefault
        }
      }, [this.genColumnItems(), h("div", {
        "class": picker_bem('mask'),
        "style": maskStyle
      }), h("div", {
        "class": [BORDER_UNSET_TOP_BOTTOM, picker_bem('frame')],
        "style": frameStyle
      })]);
    },
    genColumnItems: function genColumnItems() {
      var _this5 = this;

      var h = this.$createElement;
      return this.formattedColumns.map(function (item, columnIndex) {
        var _item$defaultIndex;

        return h(PickerColumn, {
          "attrs": {
            "readonly": _this5.readonly,
            "valueKey": _this5.valueKey,
            "allowHtml": _this5.allowHtml,
            "className": item.className,
            "itemHeight": _this5.itemPxHeight,
            "defaultIndex": (_item$defaultIndex = item.defaultIndex) != null ? _item$defaultIndex : +_this5.defaultIndex,
            "swipeDuration": _this5.swipeDuration,
            "visibleItemCount": _this5.visibleItemCount,
            "initialOptions": item.values
          },
          "scopedSlots": {
            option: _this5.$scopedSlots.option
          },
          "on": {
            "change": function change() {
              _this5.onChange(columnIndex);
            }
          }
        });
      });
    }
  },
  render: function render(h) {
    return h("div", {
      "class": picker_bem()
    }, [this.toolbarPosition === 'top' ? this.genToolbar() : h(), this.loading ? h(es_loading, {
      "class": picker_bem('loading')
    }) : h(), this.slots('columns-top'), this.genColumns(), this.slots('columns-bottom'), this.toolbarPosition === 'bottom' ? this.genToolbar() : h()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/area/index.js





var area_createNamespace = Object(create["a" /* createNamespace */])('area'),
    area_createComponent = area_createNamespace[0],
    area_bem = area_createNamespace[1];

var PLACEHOLDER_CODE = '000000';

function isOverseaCode(code) {
  return code[0] === '9';
}

function pickSlots(instance, keys) {
  var $slots = instance.$slots,
      $scopedSlots = instance.$scopedSlots;
  var scopedSlots = {};
  keys.forEach(function (key) {
    if ($scopedSlots[key]) {
      scopedSlots[key] = $scopedSlots[key];
    } else if ($slots[key]) {
      scopedSlots[key] = function () {
        return $slots[key];
      };
    }
  });
  return scopedSlots;
}

/* harmony default export */ var es_area = (area_createComponent({
  props: _extends({}, pickerProps, {
    value: String,
    areaList: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    columnsNum: {
      type: [Number, String],
      default: 3
    },
    isOverseaCode: {
      type: Function,
      default: isOverseaCode
    },
    columnsPlaceholder: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  }),
  data: function data() {
    return {
      code: this.value,
      columns: [{
        values: []
      }, {
        values: []
      }, {
        values: []
      }]
    };
  },
  computed: {
    province: function province() {
      return this.areaList.province_list || {};
    },
    city: function city() {
      return this.areaList.city_list || {};
    },
    county: function county() {
      return this.areaList.county_list || {};
    },
    displayColumns: function displayColumns() {
      return this.columns.slice(0, +this.columnsNum);
    },
    placeholderMap: function placeholderMap() {
      return {
        province: this.columnsPlaceholder[0] || '',
        city: this.columnsPlaceholder[1] || '',
        county: this.columnsPlaceholder[2] || ''
      };
    }
  },
  watch: {
    value: function value(val) {
      this.code = val;
      this.setValues();
    },
    areaList: {
      deep: true,
      handler: 'setValues'
    },
    columnsNum: function columnsNum() {
      var _this = this;

      this.$nextTick(function () {
        _this.setValues();
      });
    }
  },
  mounted: function mounted() {
    this.setValues();
  },
  methods: {
    // get list by code
    getList: function getList(type, code) {
      var result = [];

      if (type !== 'province' && !code) {
        return result;
      }

      var list = this[type];
      result = Object.keys(list).map(function (listCode) {
        return {
          code: listCode,
          name: list[listCode]
        };
      });

      if (code) {
        // oversea code
        if (this.isOverseaCode(code) && type === 'city') {
          code = '9';
        }

        result = result.filter(function (item) {
          return item.code.indexOf(code) === 0;
        });
      }

      if (this.placeholderMap[type] && result.length) {
        // set columns placeholder
        var codeFill = '';

        if (type === 'city') {
          codeFill = PLACEHOLDER_CODE.slice(2, 4);
        } else if (type === 'county') {
          codeFill = PLACEHOLDER_CODE.slice(4, 6);
        }

        result.unshift({
          code: "" + code + codeFill,
          name: this.placeholderMap[type]
        });
      }

      return result;
    },
    // get index by code
    getIndex: function getIndex(type, code) {
      var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
      var list = this.getList(type, code.slice(0, compareNum - 2)); // oversea code

      if (this.isOverseaCode(code) && type === 'province') {
        compareNum = 1;
      }

      code = code.slice(0, compareNum);

      for (var i = 0; i < list.length; i++) {
        if (list[i].code.slice(0, compareNum) === code) {
          return i;
        }
      }

      return 0;
    },
    // parse output columns data
    parseOutputValues: function parseOutputValues(values) {
      var _this2 = this;

      return values.map(function (value, index) {
        // save undefined value
        if (!value) return value;
        value = JSON.parse(JSON.stringify(value));

        if (!value.code || value.name === _this2.columnsPlaceholder[index]) {
          value.code = '';
          value.name = '';
        }

        return value;
      });
    },
    onChange: function onChange(picker, values, index) {
      this.code = values[index].code;
      this.setValues();
      var parsedValues = this.parseOutputValues(picker.getValues());
      this.$emit('change', picker, parsedValues, index);
    },
    onConfirm: function onConfirm(values, index) {
      values = this.parseOutputValues(values);
      this.setValues();
      this.$emit('confirm', values, index);
    },
    getDefaultCode: function getDefaultCode() {
      if (this.columnsPlaceholder.length) {
        return PLACEHOLDER_CODE;
      }

      var countyCodes = Object.keys(this.county);

      if (countyCodes[0]) {
        return countyCodes[0];
      }

      var cityCodes = Object.keys(this.city);

      if (cityCodes[0]) {
        return cityCodes[0];
      }

      return '';
    },
    setValues: function setValues() {
      var code = this.code;

      if (!code) {
        code = this.getDefaultCode();
      }

      var picker = this.$refs.picker;
      var province = this.getList('province');
      var city = this.getList('city', code.slice(0, 2));

      if (!picker) {
        return;
      }

      picker.setColumnValues(0, province);
      picker.setColumnValues(1, city);

      if (city.length && code.slice(2, 4) === '00' && !this.isOverseaCode(code)) {
        code = city[0].code;
      }

      picker.setColumnValues(2, this.getList('county', code.slice(0, 4)));
      picker.setIndexes([this.getIndex('province', code), this.getIndex('city', code), this.getIndex('county', code)]);
    },
    getValues: function getValues() {
      var picker = this.$refs.picker;
      var getValues = picker ? picker.getValues().filter(function (value) {
        return !!value;
      }) : [];
      getValues = this.parseOutputValues(getValues);
      return getValues;
    },
    getArea: function getArea() {
      var values = this.getValues();
      var area = {
        code: '',
        country: '',
        province: '',
        city: '',
        county: ''
      };

      if (!values.length) {
        return area;
      }

      var names = values.map(function (item) {
        return item.name;
      });
      var validValues = values.filter(function (value) {
        return !!value.code;
      });
      area.code = validValues.length ? validValues[validValues.length - 1].code : '';

      if (this.isOverseaCode(area.code)) {
        area.country = names[1] || '';
        area.province = names[2] || '';
      } else {
        area.province = names[0] || '';
        area.city = names[1] || '';
        area.county = names[2] || '';
      }

      return area;
    },
    // @exposed-api
    reset: function reset(code) {
      this.code = code || '';
      this.setValues();
    }
  },
  render: function render() {
    var h = arguments[0];

    var on = _extends({}, this.$listeners, {
      change: this.onChange,
      confirm: this.onConfirm
    });

    return h(es_picker, {
      "ref": "picker",
      "class": area_bem(),
      "attrs": {
        "showToolbar": true,
        "valueKey": "name",
        "title": this.title,
        "columns": this.displayColumns,
        "loading": this.loading,
        "readonly": this.readonly,
        "itemHeight": this.itemHeight,
        "swipeDuration": this.swipeDuration,
        "visibleItemCount": this.visibleItemCount,
        "cancelButtonText": this.cancelButtonText,
        "confirmButtonText": this.confirmButtonText
      },
      "scopedSlots": pickSlots(this, ['title', 'columns-top', 'columns-bottom']),
      "on": _extends({}, on)
    });
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/utils/router.js
/**
 * Vue Router support
 */
function isRedundantNavigation(err) {
  return err.name === 'NavigationDuplicated' || // compatible with vue-router@3.3
  err.message && err.message.indexOf('redundant navigation') !== -1;
}

function route(router, config) {
  var to = config.to,
      url = config.url,
      replace = config.replace;

  if (to && router) {
    var promise = router[replace ? 'replace' : 'push'](to);
    /* istanbul ignore else */

    if (promise && promise.catch) {
      promise.catch(function (err) {
        if (err && !isRedundantNavigation(err)) {
          throw err;
        }
      });
    }
  } else if (url) {
    replace ? location.replace(url) : location.href = url;
  }
}
function functionalRoute(context) {
  route(context.parent && context.parent.$router, context.props);
}
var routeProps = {
  url: String,
  replace: Boolean,
  to: [String, Object]
};
// CONCATENATED MODULE: ./node_modules/vant/es/cell/shared.js
var cellProps = {
  icon: String,
  size: String,
  center: Boolean,
  isLink: Boolean,
  required: Boolean,
  iconPrefix: String,
  titleStyle: null,
  titleClass: null,
  valueClass: null,
  labelClass: null,
  title: [Number, String],
  value: [Number, String],
  label: [Number, String],
  arrowDirection: String,
  border: {
    type: Boolean,
    default: true
  },
  clickable: {
    type: Boolean,
    default: null
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/cell/index.js


// Utils



 // Components

 // Types

var cell_createNamespace = Object(create["a" /* createNamespace */])('cell'),
    cell_createComponent = cell_createNamespace[0],
    cell_bem = cell_createNamespace[1];

function Cell(h, props, slots, ctx) {
  var _props$clickable;

  var icon = props.icon,
      size = props.size,
      title = props.title,
      label = props.label,
      value = props.value,
      isLink = props.isLink;
  var showTitle = slots.title || Object(utils["c" /* isDef */])(title);

  function Label() {
    var showLabel = slots.label || Object(utils["c" /* isDef */])(label);

    if (showLabel) {
      return h("div", {
        "class": [cell_bem('label'), props.labelClass]
      }, [slots.label ? slots.label() : label]);
    }
  }

  function Title() {
    if (showTitle) {
      return h("div", {
        "class": [cell_bem('title'), props.titleClass],
        "style": props.titleStyle
      }, [slots.title ? slots.title() : h("span", [title]), Label()]);
    }
  }

  function Value() {
    var showValue = slots.default || Object(utils["c" /* isDef */])(value);

    if (showValue) {
      return h("div", {
        "class": [cell_bem('value', {
          alone: !showTitle
        }), props.valueClass]
      }, [slots.default ? slots.default() : h("span", [value])]);
    }
  }

  function LeftIcon() {
    if (slots.icon) {
      return slots.icon();
    }

    if (icon) {
      return h(es_icon, {
        "class": cell_bem('left-icon'),
        "attrs": {
          "name": icon,
          "classPrefix": props.iconPrefix
        }
      });
    }
  }

  function RightIcon() {
    var rightIconSlot = slots['right-icon'];

    if (rightIconSlot) {
      return rightIconSlot();
    }

    if (isLink) {
      var arrowDirection = props.arrowDirection;
      return h(es_icon, {
        "class": cell_bem('right-icon'),
        "attrs": {
          "name": arrowDirection ? "arrow-" + arrowDirection : 'arrow'
        }
      });
    }
  }

  function onClick(event) {
    functional_emit(ctx, 'click', event);
    functionalRoute(ctx);
  }

  var clickable = (_props$clickable = props.clickable) != null ? _props$clickable : isLink;
  var classes = {
    clickable: clickable,
    center: props.center,
    required: props.required,
    borderless: !props.border
  };

  if (size) {
    classes[size] = size;
  }

  return h("div", helper_default()([{
    "class": cell_bem(classes),
    "attrs": {
      "role": clickable ? 'button' : null,
      "tabindex": clickable ? 0 : null
    },
    "on": {
      "click": onClick
    }
  }, inherit(ctx)]), [LeftIcon(), Title(), Value(), RightIcon(), slots.extra == null ? void 0 : slots.extra()]);
}

Cell.props = _extends({}, cellProps, routeProps);
/* harmony default export */ var cell = (cell_createComponent(Cell));
// CONCATENATED MODULE: ./node_modules/vant/es/utils/validate/system.js

function isAndroid() {
  /* istanbul ignore next */
  return utils["h" /* isServer */] ? false : /android/.test(navigator.userAgent.toLowerCase());
}
function isIOS() {
  /* istanbul ignore next */
  return utils["h" /* isServer */] ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
}
// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/reset-scroll.js
/**
 * Hack for iOS12 page scroll
 * https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
 */


var reset_scroll_isIOS = isIOS();
/* istanbul ignore next */

function resetScroll() {
  if (reset_scroll_isIOS) {
    setRootScrollTop(getRootScrollTop());
  }
}
// CONCATENATED MODULE: ./node_modules/vant/es/field/index.js



// Utils




 // Components





var field_createNamespace = Object(create["a" /* createNamespace */])('field'),
    field_createComponent = field_createNamespace[0],
    field_bem = field_createNamespace[1];

/* harmony default export */ var es_field = (field_createComponent({
  inheritAttrs: false,
  provide: function provide() {
    return {
      vanField: this
    };
  },
  inject: {
    vanForm: {
      default: null
    }
  },
  props: _extends({}, cellProps, {
    name: String,
    rules: Array,
    disabled: {
      type: Boolean,
      default: null
    },
    readonly: {
      type: Boolean,
      default: null
    },
    autosize: [Boolean, Object],
    leftIcon: String,
    rightIcon: String,
    clearable: Boolean,
    formatter: Function,
    maxlength: [Number, String],
    labelWidth: [Number, String],
    labelClass: null,
    labelAlign: String,
    inputAlign: String,
    placeholder: String,
    errorMessage: String,
    errorMessageAlign: String,
    showWordLimit: Boolean,
    value: {
      type: [Number, String],
      default: ''
    },
    type: {
      type: String,
      default: 'text'
    },
    error: {
      type: Boolean,
      default: null
    },
    colon: {
      type: Boolean,
      default: null
    },
    clearTrigger: {
      type: String,
      default: 'focus'
    },
    formatTrigger: {
      type: String,
      default: 'onChange'
    }
  }),
  data: function data() {
    return {
      focused: false,
      validateFailed: false,
      validateMessage: ''
    };
  },
  watch: {
    value: function value() {
      this.updateValue(this.value);
      this.resetValidation();
      this.validateWithTrigger('onChange');
      this.$nextTick(this.adjustSize);
    }
  },
  mounted: function mounted() {
    this.updateValue(this.value, this.formatTrigger);
    this.$nextTick(this.adjustSize);

    if (this.vanForm) {
      this.vanForm.addField(this);
    }
  },
  beforeDestroy: function beforeDestroy() {
    if (this.vanForm) {
      this.vanForm.removeField(this);
    }
  },
  computed: {
    showClear: function showClear() {
      var readonly = this.getProp('readonly');

      if (this.clearable && !readonly) {
        var hasValue = Object(utils["c" /* isDef */])(this.value) && this.value !== '';
        var trigger = this.clearTrigger === 'always' || this.clearTrigger === 'focus' && this.focused;
        return hasValue && trigger;
      }
    },
    showError: function showError() {
      if (this.error !== null) {
        return this.error;
      }

      if (this.vanForm && this.vanForm.showError && this.validateFailed) {
        return true;
      }
    },
    listeners: function listeners() {
      return _extends({}, this.$listeners, {
        blur: this.onBlur,
        focus: this.onFocus,
        input: this.onInput,
        click: this.onClickInput,
        keypress: this.onKeypress
      });
    },
    labelStyle: function labelStyle() {
      var labelWidth = this.getProp('labelWidth');

      if (labelWidth) {
        return {
          width: Object(unit["a" /* addUnit */])(labelWidth)
        };
      }
    },
    formValue: function formValue() {
      if (this.children && (this.$scopedSlots.input || this.$slots.input)) {
        return this.children.value;
      }

      return this.value;
    }
  },
  methods: {
    // @exposed-api
    focus: function focus() {
      if (this.$refs.input) {
        this.$refs.input.focus();
      }
    },
    // @exposed-api
    blur: function blur() {
      if (this.$refs.input) {
        this.$refs.input.blur();
      }
    },
    runValidator: function runValidator(value, rule) {
      return new Promise(function (resolve) {
        var returnVal = rule.validator(value, rule);

        if (Object(utils["g" /* isPromise */])(returnVal)) {
          return returnVal.then(resolve);
        }

        resolve(returnVal);
      });
    },
    isEmptyValue: function isEmptyValue(value) {
      if (Array.isArray(value)) {
        return !value.length;
      }

      if (value === 0) {
        return false;
      }

      return !value;
    },
    runSyncRule: function runSyncRule(value, rule) {
      if (rule.required && this.isEmptyValue(value)) {
        return false;
      }

      if (rule.pattern && !rule.pattern.test(value)) {
        return false;
      }

      return true;
    },
    getRuleMessage: function getRuleMessage(value, rule) {
      var message = rule.message;

      if (Object(utils["e" /* isFunction */])(message)) {
        return message(value, rule);
      }

      return message;
    },
    runRules: function runRules(rules) {
      var _this = this;

      return rules.reduce(function (promise, rule) {
        return promise.then(function () {
          if (_this.validateFailed) {
            return;
          }

          var value = _this.formValue;

          if (rule.formatter) {
            value = rule.formatter(value, rule);
          }

          if (!_this.runSyncRule(value, rule)) {
            _this.validateFailed = true;
            _this.validateMessage = _this.getRuleMessage(value, rule);
            return;
          }

          if (rule.validator) {
            return _this.runValidator(value, rule).then(function (result) {
              if (result === false) {
                _this.validateFailed = true;
                _this.validateMessage = _this.getRuleMessage(value, rule);
              }
            });
          }
        });
      }, Promise.resolve());
    },
    validate: function validate(rules) {
      var _this2 = this;

      if (rules === void 0) {
        rules = this.rules;
      }

      return new Promise(function (resolve) {
        if (!rules) {
          resolve();
        }

        _this2.resetValidation();

        _this2.runRules(rules).then(function () {
          if (_this2.validateFailed) {
            resolve({
              name: _this2.name,
              message: _this2.validateMessage
            });
          } else {
            resolve();
          }
        });
      });
    },
    validateWithTrigger: function validateWithTrigger(trigger) {
      if (this.vanForm && this.rules) {
        var defaultTrigger = this.vanForm.validateTrigger === trigger;
        var rules = this.rules.filter(function (rule) {
          if (rule.trigger) {
            return rule.trigger === trigger;
          }

          return defaultTrigger;
        });

        if (rules.length) {
          this.validate(rules);
        }
      }
    },
    resetValidation: function resetValidation() {
      if (this.validateFailed) {
        this.validateFailed = false;
        this.validateMessage = '';
      }
    },
    updateValue: function updateValue(value, trigger) {
      if (trigger === void 0) {
        trigger = 'onChange';
      }

      value = Object(utils["c" /* isDef */])(value) ? String(value) : ''; // native maxlength have incorrect line-break counting
      // see: https://github.com/vant-ui/vant/issues/5033

      var maxlength = this.maxlength;

      if (Object(utils["c" /* isDef */])(maxlength) && value.length > maxlength) {
        if (this.value && this.value.length === +maxlength) {
          value = this.value;
        } else {
          value = value.slice(0, maxlength);
        }
      }

      if (this.type === 'number' || this.type === 'digit') {
        var isNumber = this.type === 'number';
        value = number_formatNumber(value, isNumber, isNumber);
      }

      if (this.formatter && trigger === this.formatTrigger) {
        value = this.formatter(value);
      }

      var input = this.$refs.input;

      if (input && value !== input.value) {
        input.value = value;
      }

      if (value !== this.value) {
        this.$emit('input', value);
      }
    },
    onInput: function onInput(event) {
      // not update v-model when composing
      if (event.target.composing) {
        return;
      }

      this.updateValue(event.target.value);
    },
    onFocus: function onFocus(event) {
      this.focused = true;
      this.$emit('focus', event); // https://github.com/vant-ui/vant/issues/9715

      this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari

      /* istanbul ignore if */

      if (this.getProp('readonly')) {
        this.blur();
      }
    },
    onBlur: function onBlur(event) {
      if (this.getProp('readonly')) {
        return;
      }

      this.focused = false;
      this.updateValue(this.value, 'onBlur');
      this.$emit('blur', event);
      this.validateWithTrigger('onBlur');
      this.$nextTick(this.adjustSize);
      resetScroll();
    },
    onClick: function onClick(event) {
      this.$emit('click', event);
    },
    onClickInput: function onClickInput(event) {
      this.$emit('click-input', event);
    },
    onClickLeftIcon: function onClickLeftIcon(event) {
      this.$emit('click-left-icon', event);
    },
    onClickRightIcon: function onClickRightIcon(event) {
      this.$emit('click-right-icon', event);
    },
    onClear: function onClear(event) {
      preventDefault(event);
      this.$emit('input', '');
      this.$emit('clear', event);
    },
    onKeypress: function onKeypress(event) {
      var ENTER_CODE = 13;

      if (event.keyCode === ENTER_CODE) {
        var submitOnEnter = this.getProp('submitOnEnter');

        if (!submitOnEnter && this.type !== 'textarea') {
          preventDefault(event);
        } // trigger blur after click keyboard search button


        if (this.type === 'search') {
          this.blur();
        }
      }

      this.$emit('keypress', event);
    },
    adjustSize: function adjustSize() {
      var input = this.$refs.input;

      if (!(this.type === 'textarea' && this.autosize) || !input) {
        return;
      }

      var scrollTop = getRootScrollTop();
      input.style.height = 'auto';
      var height = input.scrollHeight;

      if (Object(utils["f" /* isObject */])(this.autosize)) {
        var _this$autosize = this.autosize,
            maxHeight = _this$autosize.maxHeight,
            minHeight = _this$autosize.minHeight;

        if (maxHeight) {
          height = Math.min(height, maxHeight);
        }

        if (minHeight) {
          height = Math.max(height, minHeight);
        }
      }

      if (height) {
        input.style.height = height + 'px'; // https://github.com/vant-ui/vant/issues/9178

        setRootScrollTop(scrollTop);
      }
    },
    genInput: function genInput() {
      var h = this.$createElement;
      var type = this.type;
      var disabled = this.getProp('disabled');
      var readonly = this.getProp('readonly');
      var inputSlot = this.slots('input');
      var inputAlign = this.getProp('inputAlign');

      if (inputSlot) {
        return h("div", {
          "class": field_bem('control', [inputAlign, 'custom']),
          "on": {
            "click": this.onClickInput
          }
        }, [inputSlot]);
      }

      var inputProps = {
        ref: 'input',
        class: field_bem('control', inputAlign),
        domProps: {
          value: this.value
        },
        attrs: _extends({}, this.$attrs, {
          name: this.name,
          disabled: disabled,
          readonly: readonly,
          placeholder: this.placeholder
        }),
        on: this.listeners,
        // add model directive to skip IME composition
        directives: [{
          name: 'model',
          value: this.value
        }]
      };

      if (type === 'textarea') {
        return h("textarea", helper_default()([{}, inputProps]));
      }

      var inputType = type;
      var inputMode; // type="number" is weird in iOS, and can't prevent dot in Android
      // so use inputmode to set keyboard in modern browsers

      if (type === 'number') {
        inputType = 'text';
        inputMode = 'decimal';
      }

      if (type === 'digit') {
        inputType = 'tel';
        inputMode = 'numeric';
      }

      return h("input", helper_default()([{
        "attrs": {
          "type": inputType,
          "inputmode": inputMode
        }
      }, inputProps]));
    },
    genLeftIcon: function genLeftIcon() {
      var h = this.$createElement;
      var showLeftIcon = this.slots('left-icon') || this.leftIcon;

      if (showLeftIcon) {
        return h("div", {
          "class": field_bem('left-icon'),
          "on": {
            "click": this.onClickLeftIcon
          }
        }, [this.slots('left-icon') || h(es_icon, {
          "attrs": {
            "name": this.leftIcon,
            "classPrefix": this.iconPrefix
          }
        })]);
      }
    },
    genRightIcon: function genRightIcon() {
      var h = this.$createElement;
      var slots = this.slots;
      var showRightIcon = slots('right-icon') || this.rightIcon;

      if (showRightIcon) {
        return h("div", {
          "class": field_bem('right-icon'),
          "on": {
            "click": this.onClickRightIcon
          }
        }, [slots('right-icon') || h(es_icon, {
          "attrs": {
            "name": this.rightIcon,
            "classPrefix": this.iconPrefix
          }
        })]);
      }
    },
    genWordLimit: function genWordLimit() {
      var h = this.$createElement;

      if (this.showWordLimit && this.maxlength) {
        var count = (this.value || '').length;
        return h("div", {
          "class": field_bem('word-limit')
        }, [h("span", {
          "class": field_bem('word-num')
        }, [count]), "/", this.maxlength]);
      }
    },
    genMessage: function genMessage() {
      var h = this.$createElement;

      if (this.vanForm && this.vanForm.showErrorMessage === false) {
        return;
      }

      var message = this.errorMessage || this.validateMessage;

      if (message) {
        var errorMessageAlign = this.getProp('errorMessageAlign');
        return h("div", {
          "class": field_bem('error-message', errorMessageAlign)
        }, [message]);
      }
    },
    getProp: function getProp(key) {
      if (Object(utils["c" /* isDef */])(this[key])) {
        return this[key];
      }

      if (this.vanForm && Object(utils["c" /* isDef */])(this.vanForm[key])) {
        return this.vanForm[key];
      }
    },
    genLabel: function genLabel() {
      var h = this.$createElement;
      var colon = this.getProp('colon') ? ':' : '';

      if (this.slots('label')) {
        return [this.slots('label'), colon];
      }

      if (this.label) {
        return h("span", [this.label + colon]);
      }
    }
  },
  render: function render() {
    var _bem;

    var h = arguments[0];
    var slots = this.slots;
    var disabled = this.getProp('disabled');
    var labelAlign = this.getProp('labelAlign');
    var scopedSlots = {
      icon: this.genLeftIcon
    };
    var Label = this.genLabel();

    if (Label) {
      scopedSlots.title = function () {
        return Label;
      };
    }

    var extra = this.slots('extra');

    if (extra) {
      scopedSlots.extra = function () {
        return extra;
      };
    }

    return h(cell, {
      "attrs": {
        "icon": this.leftIcon,
        "size": this.size,
        "center": this.center,
        "border": this.border,
        "isLink": this.isLink,
        "required": this.required,
        "clickable": this.clickable,
        "titleStyle": this.labelStyle,
        "valueClass": field_bem('value'),
        "titleClass": [field_bem('label', labelAlign), this.labelClass],
        "arrowDirection": this.arrowDirection
      },
      "scopedSlots": scopedSlots,
      "class": field_bem((_bem = {
        error: this.showError,
        disabled: disabled
      }, _bem["label-" + labelAlign] = labelAlign, _bem['min-height'] = this.type === 'textarea' && !this.autosize, _bem)),
      "on": {
        "click": this.onClick
      }
    }, [h("div", {
      "class": field_bem('body')
    }, [this.genInput(), this.showClear && h(es_icon, {
      "attrs": {
        "name": "clear"
      },
      "class": field_bem('clear'),
      "on": {
        "touchstart": this.onClear
      }
    }), this.genRightIcon(), slots('button') && h("div", {
      "class": field_bem('button')
    }, [slots('button')])]), this.genWordLimit(), this.genMessage()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/toast/lock-click.js
var lockCount = 0;
function lockClick(lock) {
  if (lock) {
    if (!lockCount) {
      document.body.classList.add('van-toast--unclickable');
    }

    lockCount++;
  } else {
    lockCount--;

    if (!lockCount) {
      document.body.classList.remove('van-toast--unclickable');
    }
  }
}
// CONCATENATED MODULE: ./node_modules/vant/es/toast/Toast.js
// Utils

 // Mixins

 // Components




var Toast_createNamespace = Object(create["a" /* createNamespace */])('toast'),
    Toast_createComponent = Toast_createNamespace[0],
    Toast_bem = Toast_createNamespace[1];

/* harmony default export */ var Toast = (Toast_createComponent({
  mixins: [PopupMixin()],
  props: {
    icon: String,
    className: null,
    iconPrefix: String,
    loadingType: String,
    forbidClick: Boolean,
    closeOnClick: Boolean,
    message: [Number, String],
    type: {
      type: String,
      default: 'text'
    },
    position: {
      type: String,
      default: 'middle'
    },
    transition: {
      type: String,
      default: 'van-fade'
    },
    lockScroll: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      clickable: false
    };
  },
  mounted: function mounted() {
    this.toggleClickable();
  },
  destroyed: function destroyed() {
    this.toggleClickable();
  },
  watch: {
    value: 'toggleClickable',
    forbidClick: 'toggleClickable'
  },
  methods: {
    onClick: function onClick() {
      if (this.closeOnClick) {
        this.close();
      }
    },
    toggleClickable: function toggleClickable() {
      var clickable = this.value && this.forbidClick;

      if (this.clickable !== clickable) {
        this.clickable = clickable;
        lockClick(clickable);
      }
    },

    /* istanbul ignore next */
    onAfterEnter: function onAfterEnter() {
      this.$emit('opened');

      if (this.onOpened) {
        this.onOpened();
      }
    },
    onAfterLeave: function onAfterLeave() {
      this.$emit('closed');
    },
    genIcon: function genIcon() {
      var h = this.$createElement;
      var icon = this.icon,
          type = this.type,
          iconPrefix = this.iconPrefix,
          loadingType = this.loadingType;
      var hasIcon = icon || type === 'success' || type === 'fail';

      if (hasIcon) {
        return h(es_icon, {
          "class": Toast_bem('icon'),
          "attrs": {
            "classPrefix": iconPrefix,
            "name": icon || type
          }
        });
      }

      if (type === 'loading') {
        return h(es_loading, {
          "class": Toast_bem('loading'),
          "attrs": {
            "type": loadingType
          }
        });
      }
    },
    genMessage: function genMessage() {
      var h = this.$createElement;
      var type = this.type,
          message = this.message;

      if (!Object(utils["c" /* isDef */])(message) || message === '') {
        return;
      }

      if (type === 'html') {
        return h("div", {
          "class": Toast_bem('text'),
          "domProps": {
            "innerHTML": message
          }
        });
      }

      return h("div", {
        "class": Toast_bem('text')
      }, [message]);
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    return h("transition", {
      "attrs": {
        "name": this.transition
      },
      "on": {
        "afterEnter": this.onAfterEnter,
        "afterLeave": this.onAfterLeave
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "class": [Toast_bem([this.position, (_ref = {}, _ref[this.type] = !this.icon, _ref)]), this.className],
      "on": {
        "click": this.onClick
      }
    }, [this.genIcon(), this.genMessage()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/toast/index.js





var defaultOptions = {
  icon: '',
  type: 'text',
  // @deprecated
  mask: false,
  value: true,
  message: '',
  className: '',
  overlay: false,
  onClose: null,
  onOpened: null,
  duration: 2000,
  iconPrefix: undefined,
  position: 'middle',
  transition: 'van-fade',
  forbidClick: false,
  loadingType: undefined,
  getContainer: 'body',
  overlayStyle: null,
  closeOnClick: false,
  closeOnClickOverlay: false
}; // default options of specific type

var defaultOptionsMap = {};
var queue = [];
var toast_multiple = false;

var currentOptions = _extends({}, defaultOptions);

function parseOptions(message) {
  if (Object(utils["f" /* isObject */])(message)) {
    return message;
  }

  return {
    message: message
  };
}

function isInDocument(element) {
  return document.body.contains(element);
}

function createInstance() {
  /* istanbul ignore if */
  if (utils["h" /* isServer */]) {
    return {};
  }

  queue = queue.filter(function (item) {
    return !item.$el.parentNode || isInDocument(item.$el);
  });

  if (!queue.length || toast_multiple) {
    var toast = new (vue_default.a.extend(Toast))({
      el: document.createElement('div')
    });
    toast.$on('input', function (value) {
      toast.value = value;
    });
    queue.push(toast);
  }

  return queue[queue.length - 1];
} // transform toast options to popup props


function transformOptions(options) {
  return _extends({}, options, {
    overlay: options.mask || options.overlay,
    mask: undefined,
    duration: undefined
  });
}

function toast_Toast(options) {
  if (options === void 0) {
    options = {};
  }

  var toast = createInstance(); // should add z-index if previous toast has not disappeared

  if (toast.value) {
    toast.updateZIndex();
  }

  options = parseOptions(options);
  options = _extends({}, currentOptions, defaultOptionsMap[options.type || currentOptions.type], options);

  if (false) {}

  options.clear = function () {
    toast.value = false;

    if (options.onClose) {
      options.onClose();
      options.onClose = null;
    }

    if (toast_multiple && !utils["h" /* isServer */]) {
      toast.$on('closed', function () {
        clearTimeout(toast.timer);
        queue = queue.filter(function (item) {
          return item !== toast;
        });
        removeNode(toast.$el);
        toast.$destroy();
      });
    }
  };

  _extends(toast, transformOptions(options));

  clearTimeout(toast.timer);

  if (options.duration > 0) {
    toast.timer = setTimeout(function () {
      toast.clear();
    }, options.duration);
  }

  return toast;
}

var toast_createMethod = function createMethod(type) {
  return function (options) {
    return toast_Toast(_extends({
      type: type
    }, parseOptions(options)));
  };
};

['loading', 'success', 'fail'].forEach(function (method) {
  toast_Toast[method] = toast_createMethod(method);
});

toast_Toast.clear = function (all) {
  if (queue.length) {
    if (all) {
      queue.forEach(function (toast) {
        toast.clear();
      });
      queue = [];
    } else if (!toast_multiple) {
      queue[0].clear();
    } else {
      queue.shift().clear();
    }
  }
};

toast_Toast.setDefaultOptions = function (type, options) {
  if (typeof type === 'string') {
    defaultOptionsMap[type] = options;
  } else {
    _extends(currentOptions, type);
  }
};

toast_Toast.resetDefaultOptions = function (type) {
  if (typeof type === 'string') {
    defaultOptionsMap[type] = null;
  } else {
    currentOptions = _extends({}, defaultOptions);
    defaultOptionsMap = {};
  }
};

toast_Toast.allowMultiple = function (value) {
  if (value === void 0) {
    value = true;
  }

  toast_multiple = value;
};

toast_Toast.install = function () {
  vue_default.a.use(Toast);
};

vue_default.a.prototype.$toast = toast_Toast;
/* harmony default export */ var es_toast = (toast_Toast);
// CONCATENATED MODULE: ./node_modules/vant/es/button/index.js


// Utils



 // Components


 // Types

var button_createNamespace = Object(create["a" /* createNamespace */])('button'),
    button_createComponent = button_createNamespace[0],
    button_bem = button_createNamespace[1];

function Button(h, props, slots, ctx) {
  var _ref;

  var tag = props.tag,
      icon = props.icon,
      type = props.type,
      color = props.color,
      plain = props.plain,
      disabled = props.disabled,
      loading = props.loading,
      hairline = props.hairline,
      loadingText = props.loadingText,
      iconPosition = props.iconPosition;
  var style = {};

  if (color) {
    style.color = plain ? color : 'white';

    if (!plain) {
      // Use background instead of backgroundColor to make linear-gradient work
      style.background = color;
    } // hide border when color is linear-gradient


    if (color.indexOf('gradient') !== -1) {
      style.border = 0;
    } else {
      style.borderColor = color;
    }
  }

  function onClick(event) {
    if (props.loading) {
      event.preventDefault();
    }

    if (!loading && !disabled) {
      functional_emit(ctx, 'click', event);
      functionalRoute(ctx);
    }
  }

  function onTouchstart(event) {
    functional_emit(ctx, 'touchstart', event);
  }

  var classes = [button_bem([type, props.size, {
    plain: plain,
    loading: loading,
    disabled: disabled,
    hairline: hairline,
    block: props.block,
    round: props.round,
    square: props.square
  }]), (_ref = {}, _ref[BORDER_SURROUND] = hairline, _ref)];

  function renderIcon() {
    if (loading) {
      return slots.loading ? slots.loading() : h(es_loading, {
        "class": button_bem('loading'),
        "attrs": {
          "size": props.loadingSize,
          "type": props.loadingType,
          "color": "currentColor"
        }
      });
    }

    if (slots.icon) {
      return h("div", {
        "class": button_bem('icon')
      }, [slots.icon()]);
    }

    if (icon) {
      return h(es_icon, {
        "attrs": {
          "name": icon,
          "classPrefix": props.iconPrefix
        },
        "class": button_bem('icon')
      });
    }
  }

  function renderContent() {
    var content = [];

    if (iconPosition === 'left') {
      content.push(renderIcon());
    }

    var text;

    if (loading) {
      text = loadingText;
    } else {
      text = slots.default ? slots.default() : props.text;
    }

    if (text) {
      content.push(h("span", {
        "class": button_bem('text')
      }, [text]));
    }

    if (iconPosition === 'right') {
      content.push(renderIcon());
    }

    return content;
  }

  return h(tag, helper_default()([{
    "style": style,
    "class": classes,
    "attrs": {
      "type": props.nativeType,
      "disabled": disabled
    },
    "on": {
      "click": onClick,
      "touchstart": onTouchstart
    }
  }, inherit(ctx)]), [h("div", {
    "class": button_bem('content')
  }, [renderContent()])]);
}

Button.props = _extends({}, routeProps, {
  text: String,
  icon: String,
  color: String,
  block: Boolean,
  plain: Boolean,
  round: Boolean,
  square: Boolean,
  loading: Boolean,
  hairline: Boolean,
  disabled: Boolean,
  iconPrefix: String,
  nativeType: String,
  loadingText: String,
  loadingType: String,
  tag: {
    type: String,
    default: 'button'
  },
  type: {
    type: String,
    default: 'default'
  },
  size: {
    type: String,
    default: 'normal'
  },
  loadingSize: {
    type: String,
    default: '20px'
  },
  iconPosition: {
    type: String,
    default: 'left'
  }
});
/* harmony default export */ var es_button = (button_createComponent(Button));
// CONCATENATED MODULE: ./node_modules/vant/es/utils/vnodes.js
function flattenVNodes(vnodes) {
  var result = [];

  function traverse(vnodes) {
    vnodes.forEach(function (vnode) {
      result.push(vnode);

      if (vnode.componentInstance) {
        traverse(vnode.componentInstance.$children.map(function (item) {
          return item.$vnode;
        }));
      }

      if (vnode.children) {
        traverse(vnode.children);
      }
    });
  }

  traverse(vnodes);
  return result;
} // sort children instances by vnodes order


function sortChildren(children, parent) {
  var componentOptions = parent.$vnode.componentOptions;

  if (!componentOptions || !componentOptions.children) {
    return;
  }

  var vnodes = flattenVNodes(componentOptions.children);
  children.sort(function (a, b) {
    return vnodes.indexOf(a.$vnode) - vnodes.indexOf(b.$vnode);
  });
}
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/relation.js

function ChildrenMixin(_parent, options) {
  var _inject, _computed;

  if (options === void 0) {
    options = {};
  }

  var indexKey = options.indexKey || 'index';
  return {
    inject: (_inject = {}, _inject[_parent] = {
      default: null
    }, _inject),
    computed: (_computed = {
      parent: function parent() {
        if (this.disableBindRelation) {
          return null;
        }

        return this[_parent];
      }
    }, _computed[indexKey] = function () {
      this.bindRelation();

      if (this.parent) {
        return this.parent.children.indexOf(this);
      }

      return null;
    }, _computed),
    watch: {
      disableBindRelation: function disableBindRelation(val) {
        if (!val) {
          this.bindRelation();
        }
      }
    },
    mounted: function mounted() {
      this.bindRelation();
    },
    beforeDestroy: function beforeDestroy() {
      var _this = this;

      if (this.parent) {
        this.parent.children = this.parent.children.filter(function (item) {
          return item !== _this;
        });
      }
    },
    methods: {
      bindRelation: function bindRelation() {
        if (!this.parent || this.parent.children.indexOf(this) !== -1) {
          return;
        }

        var children = [].concat(this.parent.children, [this]);
        sortChildren(children, this.parent);
        this.parent.children = children;
      }
    }
  };
}
function ParentMixin(parent) {
  return {
    provide: function provide() {
      var _ref;

      return _ref = {}, _ref[parent] = this, _ref;
    },
    data: function data() {
      return {
        children: []
      };
    }
  };
}
// CONCATENATED MODULE: ./node_modules/vant/es/goods-action/index.js



var goods_action_createNamespace = Object(create["a" /* createNamespace */])('goods-action'),
    goods_action_createComponent = goods_action_createNamespace[0],
    goods_action_bem = goods_action_createNamespace[1];

/* harmony default export */ var goods_action = (goods_action_createComponent({
  mixins: [ParentMixin('vanGoodsAction')],
  props: {
    safeAreaInsetBottom: {
      type: Boolean,
      default: true
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": goods_action_bem({
        unfit: !this.safeAreaInsetBottom
      })
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/goods-action-button/index.js






var goods_action_button_createNamespace = Object(create["a" /* createNamespace */])('goods-action-button'),
    goods_action_button_createComponent = goods_action_button_createNamespace[0],
    goods_action_button_bem = goods_action_button_createNamespace[1];

/* harmony default export */ var goods_action_button = (goods_action_button_createComponent({
  mixins: [ChildrenMixin('vanGoodsAction')],
  props: _extends({}, routeProps, {
    type: String,
    text: String,
    icon: String,
    color: String,
    loading: Boolean,
    disabled: Boolean
  }),
  computed: {
    isFirst: function isFirst() {
      var prev = this.parent && this.parent.children[this.index - 1];
      return !prev || prev.$options.name !== this.$options.name;
    },
    isLast: function isLast() {
      var next = this.parent && this.parent.children[this.index + 1];
      return !next || next.$options.name !== this.$options.name;
    }
  },
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);
      route(this.$router, this);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h(es_button, {
      "class": goods_action_button_bem([{
        first: this.isFirst,
        last: this.isLast
      }, this.type]),
      "attrs": {
        "size": "large",
        "type": this.type,
        "icon": this.icon,
        "color": this.color,
        "loading": this.loading,
        "disabled": this.disabled
      },
      "on": {
        "click": this.onClick
      }
    }, [this.slots() || this.text]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/dialog/Dialog.js








var Dialog_createNamespace = Object(create["a" /* createNamespace */])('dialog'),
    Dialog_createComponent = Dialog_createNamespace[0],
    Dialog_bem = Dialog_createNamespace[1],
    Dialog_t = Dialog_createNamespace[2];

/* harmony default export */ var Dialog = (Dialog_createComponent({
  mixins: [PopupMixin()],
  props: {
    title: String,
    theme: String,
    width: [Number, String],
    message: String,
    className: null,
    callback: Function,
    beforeClose: Function,
    messageAlign: String,
    cancelButtonText: String,
    cancelButtonColor: String,
    confirmButtonText: String,
    confirmButtonColor: String,
    showCancelButton: Boolean,
    overlay: {
      type: Boolean,
      default: true
    },
    allowHtml: {
      type: Boolean,
      default: true
    },
    transition: {
      type: String,
      default: 'van-dialog-bounce'
    },
    showConfirmButton: {
      type: Boolean,
      default: true
    },
    closeOnPopstate: {
      type: Boolean,
      default: true
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      loading: {
        confirm: false,
        cancel: false
      }
    };
  },
  methods: {
    onClickOverlay: function onClickOverlay() {
      this.handleAction('overlay');
    },
    handleAction: function handleAction(action) {
      var _this = this;

      this.$emit(action); // show not trigger close event when hidden

      if (!this.value) {
        return;
      }

      if (this.beforeClose) {
        this.loading[action] = true;
        this.beforeClose(action, function (state) {
          if (state !== false && _this.loading[action]) {
            _this.onClose(action);
          }

          _this.loading.confirm = false;
          _this.loading.cancel = false;
        });
      } else {
        this.onClose(action);
      }
    },
    onClose: function onClose(action) {
      this.close();

      if (this.callback) {
        this.callback(action);
      }
    },
    onOpened: function onOpened() {
      var _this2 = this;

      this.$emit('opened');
      this.$nextTick(function () {
        var _this2$$refs$dialog;

        (_this2$$refs$dialog = _this2.$refs.dialog) == null ? void 0 : _this2$$refs$dialog.focus();
      });
    },
    onClosed: function onClosed() {
      this.$emit('closed');
    },
    onKeydown: function onKeydown(event) {
      var _this3 = this;

      if (event.key === 'Escape' || event.key === 'Enter') {
        // skip keyboard events of child elements
        if (event.target !== this.$refs.dialog) {
          return;
        }

        var onEventType = {
          Enter: this.showConfirmButton ? function () {
            return _this3.handleAction('confirm');
          } : utils["i" /* noop */],
          Escape: this.showCancelButton ? function () {
            return _this3.handleAction('cancel');
          } : utils["i" /* noop */]
        };
        onEventType[event.key]();
        this.$emit('keydown', event);
      }
    },
    genRoundButtons: function genRoundButtons() {
      var _this4 = this;

      var h = this.$createElement;
      return h(goods_action, {
        "class": Dialog_bem('footer')
      }, [this.showCancelButton && h(goods_action_button, {
        "attrs": {
          "size": "large",
          "type": "warning",
          "text": this.cancelButtonText || Dialog_t('cancel'),
          "color": this.cancelButtonColor,
          "loading": this.loading.cancel
        },
        "class": Dialog_bem('cancel'),
        "on": {
          "click": function click() {
            _this4.handleAction('cancel');
          }
        }
      }), this.showConfirmButton && h(goods_action_button, {
        "attrs": {
          "size": "large",
          "type": "danger",
          "text": this.confirmButtonText || Dialog_t('confirm'),
          "color": this.confirmButtonColor,
          "loading": this.loading.confirm
        },
        "class": Dialog_bem('confirm'),
        "on": {
          "click": function click() {
            _this4.handleAction('confirm');
          }
        }
      })]);
    },
    genButtons: function genButtons() {
      var _this5 = this,
          _ref;

      var h = this.$createElement;
      var multiple = this.showCancelButton && this.showConfirmButton;
      return h("div", {
        "class": [BORDER_TOP, Dialog_bem('footer')]
      }, [this.showCancelButton && h(es_button, {
        "attrs": {
          "size": "large",
          "loading": this.loading.cancel,
          "text": this.cancelButtonText || Dialog_t('cancel'),
          "nativeType": "button"
        },
        "class": Dialog_bem('cancel'),
        "style": {
          color: this.cancelButtonColor
        },
        "on": {
          "click": function click() {
            _this5.handleAction('cancel');
          }
        }
      }), this.showConfirmButton && h(es_button, {
        "attrs": {
          "size": "large",
          "loading": this.loading.confirm,
          "text": this.confirmButtonText || Dialog_t('confirm'),
          "nativeType": "button"
        },
        "class": [Dialog_bem('confirm'), (_ref = {}, _ref[BORDER_LEFT] = multiple, _ref)],
        "style": {
          color: this.confirmButtonColor
        },
        "on": {
          "click": function click() {
            _this5.handleAction('confirm');
          }
        }
      })]);
    },
    genContent: function genContent(hasTitle, messageSlot) {
      var h = this.$createElement;

      if (messageSlot) {
        return h("div", {
          "class": Dialog_bem('content')
        }, [messageSlot]);
      }

      var message = this.message,
          messageAlign = this.messageAlign;

      if (message) {
        var _bem, _domProps;

        var data = {
          class: Dialog_bem('message', (_bem = {
            'has-title': hasTitle
          }, _bem[messageAlign] = messageAlign, _bem)),
          domProps: (_domProps = {}, _domProps[this.allowHtml ? 'innerHTML' : 'textContent'] = message, _domProps)
        };
        return h("div", {
          "class": Dialog_bem('content', {
            isolated: !hasTitle
          })
        }, [h("div", helper_default()([{}, data]))]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];

    if (!this.shouldRender) {
      return;
    }

    var message = this.message;
    var messageSlot = this.slots();
    var title = this.slots('title') || this.title;
    var Title = title && h("div", {
      "class": Dialog_bem('header', {
        isolated: !message && !messageSlot
      })
    }, [title]);
    return h("transition", {
      "attrs": {
        "name": this.transition
      },
      "on": {
        "afterEnter": this.onOpened,
        "afterLeave": this.onClosed
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "attrs": {
        "role": "dialog",
        "aria-labelledby": this.title || message,
        "tabIndex": 0
      },
      "class": [Dialog_bem([this.theme]), this.className],
      "style": {
        width: Object(unit["a" /* addUnit */])(this.width)
      },
      "ref": "dialog",
      "on": {
        "keydown": this.onKeydown
      }
    }, [Title, this.genContent(title, messageSlot), this.theme === 'round-button' ? this.genRoundButtons() : this.genButtons()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/dialog/index.js




var dialog_instance;

function dialog_isInDocument(element) {
  return document.body.contains(element);
}

function dialog_initInstance() {
  if (dialog_instance) {
    dialog_instance.$destroy();
  }

  dialog_instance = new (vue_default.a.extend(Dialog))({
    el: document.createElement('div'),
    // avoid missing animation when first rendered
    propsData: {
      lazyRender: false
    }
  });
  dialog_instance.$on('input', function (value) {
    dialog_instance.value = value;
  });
}

function dialog_Dialog(options) {
  /* istanbul ignore if */
  if (utils["h" /* isServer */]) {
    return Promise.resolve();
  }

  return new Promise(function (resolve, reject) {
    if (!dialog_instance || !dialog_isInDocument(dialog_instance.$el)) {
      dialog_initInstance();
    }

    _extends(dialog_instance, dialog_Dialog.currentOptions, options, {
      resolve: resolve,
      reject: reject
    });
  });
}

dialog_Dialog.defaultOptions = {
  value: true,
  title: '',
  width: '',
  theme: null,
  message: '',
  overlay: true,
  className: '',
  allowHtml: true,
  lockScroll: true,
  transition: 'van-dialog-bounce',
  beforeClose: null,
  overlayClass: '',
  overlayStyle: null,
  messageAlign: '',
  getContainer: 'body',
  cancelButtonText: '',
  cancelButtonColor: null,
  confirmButtonText: '',
  confirmButtonColor: null,
  showConfirmButton: true,
  showCancelButton: false,
  closeOnPopstate: true,
  closeOnClickOverlay: false,
  callback: function callback(action) {
    dialog_instance[action === 'confirm' ? 'resolve' : 'reject'](action);
  }
};
dialog_Dialog.alert = dialog_Dialog;

dialog_Dialog.confirm = function (options) {
  return dialog_Dialog(_extends({
    showCancelButton: true
  }, options));
};

dialog_Dialog.close = function () {
  if (dialog_instance) {
    dialog_instance.value = false;
  }
};

dialog_Dialog.setDefaultOptions = function (options) {
  _extends(dialog_Dialog.currentOptions, options);
};

dialog_Dialog.resetDefaultOptions = function () {
  dialog_Dialog.currentOptions = _extends({}, dialog_Dialog.defaultOptions);
};

dialog_Dialog.resetDefaultOptions();

dialog_Dialog.install = function () {
  vue_default.a.use(Dialog);
};

dialog_Dialog.Component = Dialog;
vue_default.a.prototype.$dialog = dialog_Dialog;
/* harmony default export */ var dialog = (dialog_Dialog);
// CONCATENATED MODULE: ./node_modules/vant/es/address-edit/Detail.js

// Utils

 // Components




var Detail_createNamespace = Object(create["a" /* createNamespace */])('address-edit-detail'),
    Detail_createComponent = Detail_createNamespace[0],
    Detail_bem = Detail_createNamespace[1],
    Detail_t = Detail_createNamespace[2];

var android = isAndroid();
/* harmony default export */ var Detail = (Detail_createComponent({
  props: {
    value: String,
    errorMessage: String,
    focused: Boolean,
    detailRows: [Number, String],
    searchResult: Array,
    detailMaxlength: [Number, String],
    showSearchResult: Boolean
  },
  computed: {
    shouldShowSearchResult: function shouldShowSearchResult() {
      return this.focused && this.searchResult && this.showSearchResult;
    }
  },
  methods: {
    onSelect: function onSelect(express) {
      this.$emit('select-search', express);
      this.$emit('input', ((express.address || '') + " " + (express.name || '')).trim());
    },
    onFinish: function onFinish() {
      this.$refs.field.blur();
    },
    genFinish: function genFinish() {
      var h = this.$createElement;
      var show = this.value && this.focused && android;

      if (show) {
        return h("div", {
          "class": Detail_bem('finish'),
          "on": {
            "click": this.onFinish
          }
        }, [Detail_t('complete')]);
      }
    },
    genSearchResult: function genSearchResult() {
      var _this = this;

      var h = this.$createElement;
      var value = this.value,
          shouldShowSearchResult = this.shouldShowSearchResult,
          searchResult = this.searchResult;

      if (shouldShowSearchResult) {
        return searchResult.map(function (express) {
          return h(cell, {
            "key": express.name + express.address,
            "attrs": {
              "clickable": true,
              "border": false,
              "icon": "location-o",
              "label": express.address
            },
            "class": Detail_bem('search-item'),
            "on": {
              "click": function click() {
                _this.onSelect(express);
              }
            },
            "scopedSlots": {
              title: function title() {
                if (express.name) {
                  var text = express.name.replace(value, "<span class=" + Detail_bem('keyword') + ">" + value + "</span>");
                  return h("div", {
                    "domProps": {
                      "innerHTML": text
                    }
                  });
                }
              }
            }
          });
        });
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h(cell, {
      "class": Detail_bem()
    }, [h(es_field, {
      "attrs": {
        "autosize": true,
        "rows": this.detailRows,
        "clearable": !android,
        "type": "textarea",
        "value": this.value,
        "errorMessage": this.errorMessage,
        "border": !this.shouldShowSearchResult,
        "label": Detail_t('label'),
        "maxlength": this.detailMaxlength,
        "placeholder": Detail_t('placeholder')
      },
      "ref": "field",
      "scopedSlots": {
        icon: this.genFinish
      },
      "on": _extends({}, this.$listeners)
    }), this.genSearchResult()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/switch/shared.js
/**
 * Common Switch Props
 */
var switchProps = {
  size: [Number, String],
  value: null,
  loading: Boolean,
  disabled: Boolean,
  activeColor: String,
  inactiveColor: String,
  activeValue: {
    type: null,
    default: true
  },
  inactiveValue: {
    type: null,
    default: false
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/field.js
var FieldMixin = {
  inject: {
    vanField: {
      default: null
    }
  },
  watch: {
    value: function value() {
      var field = this.vanField;

      if (field) {
        field.resetValidation();
        field.validateWithTrigger('onChange');
      }
    }
  },
  created: function created() {
    var field = this.vanField;

    if (field && !field.children) {
      field.children = this;
    }
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/switch/index.js
// Utils

 // Mixins

 // Components



var switch_createNamespace = Object(create["a" /* createNamespace */])('switch'),
    switch_createComponent = switch_createNamespace[0],
    switch_bem = switch_createNamespace[1];

/* harmony default export */ var es_switch = (switch_createComponent({
  mixins: [FieldMixin],
  props: switchProps,
  computed: {
    checked: function checked() {
      return this.value === this.activeValue;
    },
    style: function style() {
      return {
        fontSize: Object(unit["a" /* addUnit */])(this.size),
        backgroundColor: this.checked ? this.activeColor : this.inactiveColor
      };
    }
  },
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);

      if (!this.disabled && !this.loading) {
        var newValue = this.checked ? this.inactiveValue : this.activeValue;
        this.$emit('input', newValue);
        this.$emit('change', newValue);
      }
    },
    genLoading: function genLoading() {
      var h = this.$createElement;

      if (this.loading) {
        var color = this.checked ? this.activeColor : this.inactiveColor;
        return h(es_loading, {
          "class": switch_bem('loading'),
          "attrs": {
            "color": color
          }
        });
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var checked = this.checked,
        loading = this.loading,
        disabled = this.disabled;
    return h("div", {
      "class": switch_bem({
        on: checked,
        loading: loading,
        disabled: disabled
      }),
      "attrs": {
        "role": "switch",
        "aria-checked": String(checked)
      },
      "style": this.style,
      "on": {
        "click": this.onClick
      }
    }, [h("div", {
      "class": switch_bem('node')
    }, [this.genLoading()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/address-edit/index.js

// Utils

 // Components











var address_edit_createNamespace = Object(create["a" /* createNamespace */])('address-edit'),
    address_edit_createComponent = address_edit_createNamespace[0],
    address_edit_bem = address_edit_createNamespace[1],
    address_edit_t = address_edit_createNamespace[2];

var defaultData = {
  name: '',
  tel: '',
  country: '',
  province: '',
  city: '',
  county: '',
  areaCode: '',
  postalCode: '',
  addressDetail: '',
  isDefault: false
};

function isPostal(value) {
  return /^\d{6}$/.test(value);
}

/* harmony default export */ var address_edit = (address_edit_createComponent({
  props: {
    areaList: Object,
    isSaving: Boolean,
    isDeleting: Boolean,
    validator: Function,
    showDelete: Boolean,
    showPostal: Boolean,
    searchResult: Array,
    telMaxlength: [Number, String],
    showSetDefault: Boolean,
    saveButtonText: String,
    areaPlaceholder: String,
    deleteButtonText: String,
    showSearchResult: Boolean,
    showArea: {
      type: Boolean,
      default: true
    },
    showDetail: {
      type: Boolean,
      default: true
    },
    disableArea: Boolean,
    detailRows: {
      type: [Number, String],
      default: 1
    },
    detailMaxlength: {
      type: [Number, String],
      default: 200
    },
    addressInfo: {
      type: Object,
      default: function _default() {
        return _extends({}, defaultData);
      }
    },
    telValidator: {
      type: Function,
      default: isMobile
    },
    postalValidator: {
      type: Function,
      default: isPostal
    },
    areaColumnsPlaceholder: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  data: function data() {
    return {
      data: {},
      showAreaPopup: false,
      detailFocused: false,
      errorInfo: {
        tel: '',
        name: '',
        areaCode: '',
        postalCode: '',
        addressDetail: ''
      }
    };
  },
  computed: {
    areaListLoaded: function areaListLoaded() {
      return Object(utils["f" /* isObject */])(this.areaList) && Object.keys(this.areaList).length;
    },
    areaText: function areaText() {
      var _this$data = this.data,
          country = _this$data.country,
          province = _this$data.province,
          city = _this$data.city,
          county = _this$data.county,
          areaCode = _this$data.areaCode;

      if (areaCode) {
        var arr = [country, province, city, county];

        if (province && province === city) {
          arr.splice(1, 1);
        }

        return arr.filter(function (text) {
          return text;
        }).join('/');
      }

      return '';
    },
    // hide bottom field when use search && detail get focused
    hideBottomFields: function hideBottomFields() {
      var searchResult = this.searchResult;
      return searchResult && searchResult.length && this.detailFocused;
    }
  },
  watch: {
    addressInfo: {
      handler: function handler(val) {
        this.data = _extends({}, defaultData, val);
        this.setAreaCode(val.areaCode);
      },
      deep: true,
      immediate: true
    },
    areaList: function areaList() {
      this.setAreaCode(this.data.areaCode);
    }
  },
  methods: {
    onFocus: function onFocus(key) {
      this.errorInfo[key] = '';
      this.detailFocused = key === 'addressDetail';
      this.$emit('focus', key);
    },
    onChangeDetail: function onChangeDetail(val) {
      this.data.addressDetail = val;
      this.$emit('change-detail', val);
    },
    onAreaConfirm: function onAreaConfirm(values) {
      values = values.filter(function (value) {
        return !!value;
      });

      if (values.some(function (value) {
        return !value.code;
      })) {
        es_toast(address_edit_t('areaEmpty'));
        return;
      }

      this.showAreaPopup = false;
      this.assignAreaValues();
      this.$emit('change-area', values);
    },
    assignAreaValues: function assignAreaValues() {
      var area = this.$refs.area;

      if (area) {
        var detail = area.getArea();
        detail.areaCode = detail.code;
        delete detail.code;

        _extends(this.data, detail);
      }
    },
    onSave: function onSave() {
      var _this = this;

      var items = ['name', 'tel'];

      if (this.showArea) {
        items.push('areaCode');
      }

      if (this.showDetail) {
        items.push('addressDetail');
      }

      if (this.showPostal) {
        items.push('postalCode');
      }

      var isValid = items.every(function (item) {
        var msg = _this.getErrorMessage(item);

        if (msg) {
          _this.errorInfo[item] = msg;
        }

        return !msg;
      });

      if (isValid && !this.isSaving) {
        this.$emit('save', this.data);
      }
    },
    getErrorMessage: function getErrorMessage(key) {
      var value = String(this.data[key] || '').trim();

      if (this.validator) {
        var message = this.validator(key, value);

        if (message) {
          return message;
        }
      }

      switch (key) {
        case 'name':
          return value ? '' : address_edit_t('nameEmpty');

        case 'tel':
          return this.telValidator(value) ? '' : address_edit_t('telInvalid');

        case 'areaCode':
          return value ? '' : address_edit_t('areaEmpty');

        case 'addressDetail':
          return value ? '' : address_edit_t('addressEmpty');

        case 'postalCode':
          return value && !this.postalValidator(value) ? address_edit_t('postalEmpty') : '';
      }
    },
    onDelete: function onDelete() {
      var _this2 = this;

      dialog.confirm({
        title: address_edit_t('confirmDelete')
      }).then(function () {
        _this2.$emit('delete', _this2.data);
      }).catch(function () {
        _this2.$emit('cancel-delete', _this2.data);
      });
    },
    // get values of area component
    getArea: function getArea() {
      return this.$refs.area ? this.$refs.area.getValues() : [];
    },
    // set area code to area component
    setAreaCode: function setAreaCode(code) {
      this.data.areaCode = code || '';

      if (code) {
        this.$nextTick(this.assignAreaValues);
      }
    },
    // @exposed-api
    setAddressDetail: function setAddressDetail(value) {
      this.data.addressDetail = value;
    },
    onDetailBlur: function onDetailBlur() {
      var _this3 = this;

      // await for click search event
      setTimeout(function () {
        _this3.detailFocused = false;
      });
    },
    genSetDefaultCell: function genSetDefaultCell(h) {
      var _this4 = this;

      if (this.showSetDefault) {
        var slots = {
          'right-icon': function rightIcon() {
            return h(es_switch, {
              "attrs": {
                "size": "24"
              },
              "on": {
                "change": function change(event) {
                  _this4.$emit('change-default', event);
                }
              },
              "model": {
                value: _this4.data.isDefault,
                callback: function callback($$v) {
                  _this4.$set(_this4.data, "isDefault", $$v);
                }
              }
            });
          }
        };
        return h(cell, {
          "directives": [{
            name: "show",
            value: !this.hideBottomFields
          }],
          "attrs": {
            "center": true,
            "title": address_edit_t('defaultAddress')
          },
          "class": address_edit_bem('default'),
          "scopedSlots": slots
        });
      }

      return h();
    }
  },
  render: function render(h) {
    var _this5 = this;

    var data = this.data,
        errorInfo = this.errorInfo,
        disableArea = this.disableArea,
        hideBottomFields = this.hideBottomFields;

    var onFocus = function onFocus(name) {
      return function () {
        return _this5.onFocus(name);
      };
    };

    return h("div", {
      "class": address_edit_bem()
    }, [h("div", {
      "class": address_edit_bem('fields')
    }, [h(es_field, {
      "attrs": {
        "clearable": true,
        "label": address_edit_t('name'),
        "placeholder": address_edit_t('namePlaceholder'),
        "errorMessage": errorInfo.name
      },
      "on": {
        "focus": onFocus('name')
      },
      "model": {
        value: data.name,
        callback: function callback($$v) {
          _this5.$set(data, "name", $$v);
        }
      }
    }), h(es_field, {
      "attrs": {
        "clearable": true,
        "type": "tel",
        "label": address_edit_t('tel'),
        "maxlength": this.telMaxlength,
        "placeholder": address_edit_t('telPlaceholder'),
        "errorMessage": errorInfo.tel
      },
      "on": {
        "focus": onFocus('tel')
      },
      "model": {
        value: data.tel,
        callback: function callback($$v) {
          _this5.$set(data, "tel", $$v);
        }
      }
    }), h(es_field, {
      "directives": [{
        name: "show",
        value: this.showArea
      }],
      "attrs": {
        "readonly": true,
        "clickable": !disableArea,
        "label": address_edit_t('area'),
        "placeholder": this.areaPlaceholder || address_edit_t('areaPlaceholder'),
        "errorMessage": errorInfo.areaCode,
        "rightIcon": !disableArea ? 'arrow' : null,
        "value": this.areaText
      },
      "on": {
        "focus": onFocus('areaCode'),
        "click": function click() {
          _this5.$emit('click-area');

          _this5.showAreaPopup = !disableArea;
        }
      }
    }), h(Detail, {
      "directives": [{
        name: "show",
        value: this.showDetail
      }],
      "attrs": {
        "focused": this.detailFocused,
        "value": data.addressDetail,
        "errorMessage": errorInfo.addressDetail,
        "detailRows": this.detailRows,
        "detailMaxlength": this.detailMaxlength,
        "searchResult": this.searchResult,
        "showSearchResult": this.showSearchResult
      },
      "on": {
        "focus": onFocus('addressDetail'),
        "blur": this.onDetailBlur,
        "input": this.onChangeDetail,
        "select-search": function selectSearch(event) {
          _this5.$emit('select-search', event);
        }
      }
    }), this.showPostal && h(es_field, {
      "directives": [{
        name: "show",
        value: !hideBottomFields
      }],
      "attrs": {
        "type": "tel",
        "maxlength": "6",
        "label": address_edit_t('postal'),
        "placeholder": address_edit_t('postal'),
        "errorMessage": errorInfo.postalCode
      },
      "on": {
        "focus": onFocus('postalCode')
      },
      "model": {
        value: data.postalCode,
        callback: function callback($$v) {
          _this5.$set(data, "postalCode", $$v);
        }
      }
    }), this.slots()]), this.genSetDefaultCell(h), h("div", {
      "directives": [{
        name: "show",
        value: !hideBottomFields
      }],
      "class": address_edit_bem('buttons')
    }, [h(es_button, {
      "attrs": {
        "block": true,
        "round": true,
        "loading": this.isSaving,
        "type": "danger",
        "text": this.saveButtonText || address_edit_t('save')
      },
      "on": {
        "click": this.onSave
      }
    }), this.showDelete && h(es_button, {
      "attrs": {
        "block": true,
        "round": true,
        "loading": this.isDeleting,
        "text": this.deleteButtonText || address_edit_t('delete')
      },
      "on": {
        "click": this.onDelete
      }
    })]), h(popup, {
      "attrs": {
        "round": true,
        "position": "bottom",
        "lazyRender": false,
        "getContainer": "body"
      },
      "model": {
        value: _this5.showAreaPopup,
        callback: function callback($$v) {
          _this5.showAreaPopup = $$v;
        }
      }
    }, [h(es_area, {
      "ref": "area",
      "attrs": {
        "value": data.areaCode,
        "loading": !this.areaListLoaded,
        "areaList": this.areaList,
        "columnsPlaceholder": this.areaColumnsPlaceholder
      },
      "on": {
        "confirm": this.onAreaConfirm,
        "cancel": function cancel() {
          _this5.showAreaPopup = false;
        }
      }
    })])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/radio-group/index.js




var radio_group_createNamespace = Object(create["a" /* createNamespace */])('radio-group'),
    radio_group_createComponent = radio_group_createNamespace[0],
    radio_group_bem = radio_group_createNamespace[1];

/* harmony default export */ var radio_group = (radio_group_createComponent({
  mixins: [ParentMixin('vanRadio'), FieldMixin],
  props: {
    value: null,
    disabled: Boolean,
    direction: String,
    checkedColor: String,
    iconSize: [Number, String]
  },
  watch: {
    value: function value(_value) {
      this.$emit('change', _value);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": radio_group_bem([this.direction]),
      "attrs": {
        "role": "radiogroup"
      }
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/tag/index.js

// Utils

 // Components

 // Types

var tag_createNamespace = Object(create["a" /* createNamespace */])('tag'),
    tag_createComponent = tag_createNamespace[0],
    tag_bem = tag_createNamespace[1];

function Tag(h, props, slots, ctx) {
  var _style;

  var type = props.type,
      mark = props.mark,
      plain = props.plain,
      color = props.color,
      round = props.round,
      size = props.size,
      textColor = props.textColor;
  var key = plain ? 'color' : 'backgroundColor';
  var style = (_style = {}, _style[key] = color, _style);

  if (plain) {
    style.color = textColor || color;
    style.borderColor = color;
  } else {
    style.color = textColor;
    style.background = color;
  }

  var classes = {
    mark: mark,
    plain: plain,
    round: round
  };

  if (size) {
    classes[size] = size;
  }

  var CloseIcon = props.closeable && h(es_icon, {
    "attrs": {
      "name": "cross"
    },
    "class": tag_bem('close'),
    "on": {
      "click": function click(event) {
        event.stopPropagation();
        functional_emit(ctx, 'close');
      }
    }
  });
  return h("transition", {
    "attrs": {
      "name": props.closeable ? 'van-fade' : null
    }
  }, [h("span", helper_default()([{
    "key": "content",
    "style": style,
    "class": tag_bem([classes, type])
  }, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default(), CloseIcon])]);
}

Tag.props = {
  size: String,
  mark: Boolean,
  color: String,
  plain: Boolean,
  round: Boolean,
  textColor: String,
  closeable: Boolean,
  type: {
    type: String,
    default: 'default'
  }
};
/* harmony default export */ var es_tag = (tag_createComponent(Tag));
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/checkbox.js
/**
 * Common part of Checkbox & Radio
 */




var checkbox_CheckboxMixin = function CheckboxMixin(_ref) {
  var parent = _ref.parent,
      bem = _ref.bem,
      role = _ref.role;
  return {
    mixins: [ChildrenMixin(parent), FieldMixin],
    props: {
      name: null,
      value: null,
      disabled: Boolean,
      iconSize: [Number, String],
      checkedColor: String,
      labelPosition: String,
      labelDisabled: Boolean,
      shape: {
        type: String,
        default: 'round'
      },
      bindGroup: {
        type: Boolean,
        default: true
      }
    },
    computed: {
      disableBindRelation: function disableBindRelation() {
        return !this.bindGroup;
      },
      isDisabled: function isDisabled() {
        return this.parent && this.parent.disabled || this.disabled;
      },
      direction: function direction() {
        return this.parent && this.parent.direction || null;
      },
      iconStyle: function iconStyle() {
        var checkedColor = this.checkedColor || this.parent && this.parent.checkedColor;

        if (checkedColor && this.checked && !this.isDisabled) {
          return {
            borderColor: checkedColor,
            backgroundColor: checkedColor
          };
        }
      },
      tabindex: function tabindex() {
        if (this.isDisabled || role === 'radio' && !this.checked) {
          return -1;
        }

        return 0;
      }
    },
    methods: {
      onClick: function onClick(event) {
        var _this = this;

        var target = event.target;
        var icon = this.$refs.icon;
        var iconClicked = icon === target || (icon == null ? void 0 : icon.contains(target));

        if (!this.isDisabled && (iconClicked || !this.labelDisabled)) {
          this.toggle(); // wait for toggle method to complete
          // so we can get the changed value in the click event listener

          setTimeout(function () {
            _this.$emit('click', event);
          });
        } else {
          this.$emit('click', event);
        }
      },
      genIcon: function genIcon() {
        var h = this.$createElement;
        var checked = this.checked;
        var iconSize = this.iconSize || this.parent && this.parent.iconSize;
        return h("div", {
          "ref": "icon",
          "class": bem('icon', [this.shape, {
            disabled: this.isDisabled,
            checked: checked
          }]),
          "style": {
            fontSize: Object(unit["a" /* addUnit */])(iconSize)
          }
        }, [this.slots('icon', {
          checked: checked
        }) || h(es_icon, {
          "attrs": {
            "name": "success"
          },
          "style": this.iconStyle
        })]);
      },
      genLabel: function genLabel() {
        var h = this.$createElement;
        var slot = this.slots();

        if (slot) {
          return h("span", {
            "class": bem('label', [this.labelPosition, {
              disabled: this.isDisabled
            }])
          }, [slot]);
        }
      }
    },
    render: function render() {
      var h = arguments[0];
      var Children = [this.genIcon()];

      if (this.labelPosition === 'left') {
        Children.unshift(this.genLabel());
      } else {
        Children.push(this.genLabel());
      }

      return h("div", {
        "attrs": {
          "role": role,
          "tabindex": this.tabindex,
          "aria-checked": String(this.checked)
        },
        "class": bem([{
          disabled: this.isDisabled,
          'label-disabled': this.labelDisabled
        }, this.direction]),
        "on": {
          "click": this.onClick
        }
      }, [Children]);
    }
  };
};
// CONCATENATED MODULE: ./node_modules/vant/es/radio/index.js



var radio_createNamespace = Object(create["a" /* createNamespace */])('radio'),
    radio_createComponent = radio_createNamespace[0],
    radio_bem = radio_createNamespace[1];

/* harmony default export */ var es_radio = (radio_createComponent({
  mixins: [checkbox_CheckboxMixin({
    bem: radio_bem,
    role: 'radio',
    parent: 'vanRadio'
  })],
  computed: {
    currentValue: {
      get: function get() {
        return this.parent ? this.parent.value : this.value;
      },
      set: function set(val) {
        (this.parent || this).$emit('input', val);
      }
    },
    checked: function checked() {
      return this.currentValue === this.name;
    }
  },
  methods: {
    toggle: function toggle() {
      this.currentValue = this.name;
    }
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/address-list/Item.js


// Utils

 // Components




 // Types

var Item_createNamespace = Object(create["a" /* createNamespace */])('address-item'),
    Item_createComponent = Item_createNamespace[0],
    Item_bem = Item_createNamespace[1];

function AddressItem(h, props, slots, ctx) {
  var disabled = props.disabled,
      switchable = props.switchable;

  function onClick() {
    if (switchable) {
      functional_emit(ctx, 'select');
    }

    functional_emit(ctx, 'click');
  }

  var genRightIcon = function genRightIcon() {
    return h(es_icon, {
      "attrs": {
        "name": "edit"
      },
      "class": Item_bem('edit'),
      "on": {
        "click": function click(event) {
          event.stopPropagation();
          functional_emit(ctx, 'edit');
          functional_emit(ctx, 'click');
        }
      }
    });
  };

  function genTag() {
    if (slots.tag) {
      return slots.tag(_extends({}, props.data));
    }

    if (props.data.isDefault && props.defaultTagText) {
      return h(es_tag, {
        "attrs": {
          "type": "danger",
          "round": true
        },
        "class": Item_bem('tag')
      }, [props.defaultTagText]);
    }
  }

  function genContent() {
    var data = props.data;
    var Info = [h("div", {
      "class": Item_bem('name')
    }, [data.name + " " + data.tel, genTag()]), h("div", {
      "class": Item_bem('address')
    }, [data.address])];

    if (switchable && !disabled) {
      return h(es_radio, {
        "attrs": {
          "name": data.id,
          "iconSize": 18
        }
      }, [Info]);
    }

    return Info;
  }

  return h("div", {
    "class": Item_bem({
      disabled: disabled
    }),
    "on": {
      "click": onClick
    }
  }, [h(cell, helper_default()([{
    "attrs": {
      "border": false,
      "valueClass": Item_bem('value')
    },
    "scopedSlots": {
      default: genContent,
      'right-icon': genRightIcon
    }
  }, inherit(ctx)])), slots.bottom == null ? void 0 : slots.bottom(_extends({}, props.data, {
    disabled: disabled
  }))]);
}

AddressItem.props = {
  data: Object,
  disabled: Boolean,
  switchable: Boolean,
  defaultTagText: String
};
/* harmony default export */ var Item = (Item_createComponent(AddressItem));
// CONCATENATED MODULE: ./node_modules/vant/es/address-list/index.js

// Utils

 // Components



 // Types

var address_list_createNamespace = Object(create["a" /* createNamespace */])('address-list'),
    address_list_createComponent = address_list_createNamespace[0],
    address_list_bem = address_list_createNamespace[1],
    address_list_t = address_list_createNamespace[2];

function AddressList(h, props, slots, ctx) {
  function genList(list, disabled) {
    if (!list) {
      return;
    }

    return list.map(function (item, index) {
      return h(Item, {
        "attrs": {
          "data": item,
          "disabled": disabled,
          "switchable": props.switchable,
          "defaultTagText": props.defaultTagText
        },
        "key": item.id,
        "scopedSlots": {
          bottom: slots['item-bottom'],
          tag: slots.tag
        },
        "on": {
          "select": function select() {
            functional_emit(ctx, disabled ? 'select-disabled' : 'select', item, index);

            if (!disabled) {
              functional_emit(ctx, 'input', item.id);
            }
          },
          "edit": function edit() {
            functional_emit(ctx, disabled ? 'edit-disabled' : 'edit', item, index);
          },
          "click": function click() {
            functional_emit(ctx, 'click-item', item, index);
          }
        }
      });
    });
  }

  var List = genList(props.list);
  var DisabledList = genList(props.disabledList, true);
  return h("div", helper_default()([{
    "class": address_list_bem()
  }, inherit(ctx)]), [slots.top == null ? void 0 : slots.top(), h(radio_group, {
    "attrs": {
      "value": props.value
    }
  }, [List]), props.disabledText && h("div", {
    "class": address_list_bem('disabled-text')
  }, [props.disabledText]), DisabledList, slots.default == null ? void 0 : slots.default(), h("div", {
    "class": address_list_bem('bottom')
  }, [h(es_button, {
    "attrs": {
      "round": true,
      "block": true,
      "type": "danger",
      "text": props.addButtonText || address_list_t('add')
    },
    "class": address_list_bem('add'),
    "on": {
      "click": function click() {
        functional_emit(ctx, 'add');
      }
    }
  })])]);
}

AddressList.props = {
  list: Array,
  value: [Number, String],
  disabledList: Array,
  disabledText: String,
  addButtonText: String,
  defaultTagText: String,
  switchable: {
    type: Boolean,
    default: true
  }
};
/* harmony default export */ var address_list = (address_list_createComponent(AddressList));
// EXTERNAL MODULE: ./node_modules/vant/es/utils/validate/number.js
var number = __webpack_require__(78);

// CONCATENATED MODULE: ./node_modules/vant/es/badge/index.js



var badge_createNamespace = Object(create["a" /* createNamespace */])('badge'),
    badge_createComponent = badge_createNamespace[0],
    badge_bem = badge_createNamespace[1];

/* harmony default export */ var badge = (badge_createComponent({
  props: {
    dot: Boolean,
    max: [Number, String],
    color: String,
    content: [Number, String],
    tag: {
      type: String,
      default: 'div'
    }
  },
  methods: {
    hasContent: function hasContent() {
      return !!(this.$scopedSlots.content || Object(utils["c" /* isDef */])(this.content) && this.content !== '');
    },
    renderContent: function renderContent() {
      var dot = this.dot,
          max = this.max,
          content = this.content;

      if (!dot && this.hasContent()) {
        if (this.$scopedSlots.content) {
          return this.$scopedSlots.content();
        }

        if (Object(utils["c" /* isDef */])(max) && Object(number["b" /* isNumeric */])(content) && +content > max) {
          return max + "+";
        }

        return content;
      }
    },
    renderBadge: function renderBadge() {
      var h = this.$createElement;

      if (this.hasContent() || this.dot) {
        return h("div", {
          "class": badge_bem({
            dot: this.dot,
            fixed: !!this.$scopedSlots.default
          }),
          "style": {
            background: this.color
          }
        }, [this.renderContent()]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];

    if (this.$scopedSlots.default) {
      var tag = this.tag;
      return h(tag, {
        "class": badge_bem('wrapper')
      }, [this.$scopedSlots.default(), this.renderBadge()]);
    }

    return this.renderBadge();
  }
}));
// EXTERNAL MODULE: ./node_modules/vant/es/utils/dom/raf.js
var raf = __webpack_require__(41);

// CONCATENATED MODULE: ./node_modules/vant/es/utils/validate/date.js

function isDate(val) {
  return Object.prototype.toString.call(val) === '[object Date]' && !Object(number["a" /* isNaN */])(val.getTime());
}
// CONCATENATED MODULE: ./node_modules/vant/es/calendar/utils.js


var utils_createNamespace = Object(create["a" /* createNamespace */])('calendar'),
    utils_createComponent = utils_createNamespace[0],
    utils_bem = utils_createNamespace[1],
    utils_t = utils_createNamespace[2];


function formatMonthTitle(date) {
  return utils_t('monthTitle', date.getFullYear(), date.getMonth() + 1);
}
function compareMonth(date1, date2) {
  var year1 = date1.getFullYear();
  var year2 = date2.getFullYear();
  var month1 = date1.getMonth();
  var month2 = date2.getMonth();

  if (year1 === year2) {
    return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
  }

  return year1 > year2 ? 1 : -1;
}
function compareDay(day1, day2) {
  var compareMonthResult = compareMonth(day1, day2);

  if (compareMonthResult === 0) {
    var date1 = day1.getDate();
    var date2 = day2.getDate();
    return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
  }

  return compareMonthResult;
}
function getDayByOffset(date, offset) {
  date = new Date(date);
  date.setDate(date.getDate() + offset);
  return date;
}
function getPrevDay(date) {
  return getDayByOffset(date, -1);
}
function getNextDay(date) {
  return getDayByOffset(date, 1);
}
function calcDateNum(date) {
  var day1 = date[0].getTime();
  var day2 = date[1].getTime();
  return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
}
function copyDate(dates) {
  return new Date(dates);
}
function copyDates(dates) {
  if (Array.isArray(dates)) {
    return dates.map(function (date) {
      if (date === null) {
        return date;
      }

      return copyDate(date);
    });
  }

  return copyDate(dates);
}
// CONCATENATED MODULE: ./node_modules/vant/es/datetime-picker/utils.js

function times(n, iteratee) {
  if (n < 0) {
    return [];
  }

  var index = -1;
  var result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }

  return result;
}
function getTrueValue(value) {
  if (!value) {
    return 0;
  }

  while (Object(number["a" /* isNaN */])(parseInt(value, 10))) {
    if (value.length > 1) {
      value = value.slice(1);
    } else {
      return 0;
    }
  }

  return parseInt(value, 10);
}
function getMonthEndDay(year, month) {
  return 32 - new Date(year, month - 1, 32).getDate();
}
// CONCATENATED MODULE: ./node_modules/vant/es/calendar/components/Month.js





var Month_createNamespace = Object(create["a" /* createNamespace */])('calendar-month'),
    Month_createComponent = Month_createNamespace[0];

/* harmony default export */ var Month = (Month_createComponent({
  props: {
    date: Date,
    type: String,
    color: String,
    minDate: Date,
    maxDate: Date,
    showMark: Boolean,
    rowHeight: [Number, String],
    formatter: Function,
    lazyRender: Boolean,
    currentDate: [Date, Array],
    allowSameDay: Boolean,
    showSubtitle: Boolean,
    showMonthTitle: Boolean,
    firstDayOfWeek: Number
  },
  data: function data() {
    return {
      visible: false
    };
  },
  computed: {
    title: function title() {
      return formatMonthTitle(this.date);
    },
    rowHeightWithUnit: function rowHeightWithUnit() {
      return Object(unit["a" /* addUnit */])(this.rowHeight);
    },
    offset: function offset() {
      var firstDayOfWeek = this.firstDayOfWeek;
      var realDay = this.date.getDay();

      if (!firstDayOfWeek) {
        return realDay;
      }

      return (realDay + 7 - this.firstDayOfWeek) % 7;
    },
    totalDay: function totalDay() {
      return getMonthEndDay(this.date.getFullYear(), this.date.getMonth() + 1);
    },
    shouldRender: function shouldRender() {
      return this.visible || !this.lazyRender;
    },
    placeholders: function placeholders() {
      var rows = [];
      var count = Math.ceil((this.totalDay + this.offset) / 7);

      for (var day = 1; day <= count; day++) {
        rows.push({
          type: 'placeholder'
        });
      }

      return rows;
    },
    days: function days() {
      var days = [];
      var year = this.date.getFullYear();
      var month = this.date.getMonth();

      for (var day = 1; day <= this.totalDay; day++) {
        var date = new Date(year, month, day);
        var type = this.getDayType(date);
        var config = {
          date: date,
          type: type,
          text: day,
          bottomInfo: this.getBottomInfo(type)
        };

        if (this.formatter) {
          config = this.formatter(config);
        }

        days.push(config);
      }

      return days;
    }
  },
  methods: {
    getHeight: function getHeight() {
      var _this$$el;

      return ((_this$$el = this.$el) == null ? void 0 : _this$$el.getBoundingClientRect().height) || 0;
    },
    scrollIntoView: function scrollIntoView(body) {
      var _this$$refs = this.$refs,
          days = _this$$refs.days,
          month = _this$$refs.month;
      var el = this.showSubtitle ? days : month;
      var scrollTop = el.getBoundingClientRect().top - body.getBoundingClientRect().top + body.scrollTop;
      setScrollTop(body, scrollTop);
    },
    getMultipleDayType: function getMultipleDayType(day) {
      var _this = this;

      var isSelected = function isSelected(date) {
        return _this.currentDate.some(function (item) {
          return compareDay(item, date) === 0;
        });
      };

      if (isSelected(day)) {
        var prevDay = getPrevDay(day);
        var nextDay = getNextDay(day);
        var prevSelected = isSelected(prevDay);
        var nextSelected = isSelected(nextDay);

        if (prevSelected && nextSelected) {
          return 'multiple-middle';
        }

        if (prevSelected) {
          return 'end';
        }

        return nextSelected ? 'start' : 'multiple-selected';
      }

      return '';
    },
    getRangeDayType: function getRangeDayType(day) {
      var _this$currentDate = this.currentDate,
          startDay = _this$currentDate[0],
          endDay = _this$currentDate[1];

      if (!startDay) {
        return '';
      }

      var compareToStart = compareDay(day, startDay);

      if (!endDay) {
        return compareToStart === 0 ? 'start' : '';
      }

      var compareToEnd = compareDay(day, endDay);

      if (compareToStart === 0 && compareToEnd === 0 && this.allowSameDay) {
        return 'start-end';
      }

      if (compareToStart === 0) {
        return 'start';
      }

      if (compareToEnd === 0) {
        return 'end';
      }

      if (compareToStart > 0 && compareToEnd < 0) {
        return 'middle';
      }
    },
    getDayType: function getDayType(day) {
      var type = this.type,
          minDate = this.minDate,
          maxDate = this.maxDate,
          currentDate = this.currentDate;

      if (compareDay(day, minDate) < 0 || compareDay(day, maxDate) > 0) {
        return 'disabled';
      }

      if (currentDate === null) {
        return;
      }

      if (type === 'single') {
        return compareDay(day, currentDate) === 0 ? 'selected' : '';
      }

      if (type === 'multiple') {
        return this.getMultipleDayType(day);
      }
      /* istanbul ignore else */


      if (type === 'range') {
        return this.getRangeDayType(day);
      }
    },
    getBottomInfo: function getBottomInfo(type) {
      if (this.type === 'range') {
        if (type === 'start' || type === 'end') {
          return utils_t(type);
        }

        if (type === 'start-end') {
          return utils_t('startEnd');
        }
      }
    },
    getDayStyle: function getDayStyle(type, index) {
      var style = {
        height: this.rowHeightWithUnit
      };

      if (type === 'placeholder') {
        style.width = '100%';
        return style;
      }

      if (index === 0) {
        style.marginLeft = 100 * this.offset / 7 + "%";
      }

      if (this.color) {
        if (type === 'start' || type === 'end' || type === 'start-end' || type === 'multiple-selected' || type === 'multiple-middle') {
          style.background = this.color;
        } else if (type === 'middle') {
          style.color = this.color;
        }
      }

      return style;
    },
    genTitle: function genTitle() {
      var h = this.$createElement;

      if (this.showMonthTitle) {
        return h("div", {
          "class": utils_bem('month-title')
        }, [this.title]);
      }
    },
    genMark: function genMark() {
      var h = this.$createElement;

      if (this.showMark && this.shouldRender) {
        return h("div", {
          "class": utils_bem('month-mark')
        }, [this.date.getMonth() + 1]);
      }
    },
    genDays: function genDays() {
      var h = this.$createElement;
      var days = this.shouldRender ? this.days : this.placeholders;
      return h("div", {
        "ref": "days",
        "attrs": {
          "role": "grid"
        },
        "class": utils_bem('days')
      }, [this.genMark(), days.map(this.genDay)]);
    },
    genTopInfo: function genTopInfo(item) {
      var h = this.$createElement;
      var slot = this.$scopedSlots['top-info'];

      if (item.topInfo || slot) {
        return h("div", {
          "class": utils_bem('top-info')
        }, [slot ? slot(item) : item.topInfo]);
      }
    },
    genBottomInfo: function genBottomInfo(item) {
      var h = this.$createElement;
      var slot = this.$scopedSlots['bottom-info'];

      if (item.bottomInfo || slot) {
        return h("div", {
          "class": utils_bem('bottom-info')
        }, [slot ? slot(item) : item.bottomInfo]);
      }
    },
    genDay: function genDay(item, index) {
      var _this2 = this;

      var h = this.$createElement;
      var type = item.type;
      var style = this.getDayStyle(type, index);
      var disabled = type === 'disabled';

      var onClick = function onClick() {
        if (!disabled) {
          _this2.$emit('click', item);
        }
      };

      if (type === 'selected') {
        return h("div", {
          "attrs": {
            "role": "gridcell",
            "tabindex": -1
          },
          "style": style,
          "class": [utils_bem('day'), item.className],
          "on": {
            "click": onClick
          }
        }, [h("div", {
          "class": utils_bem('selected-day'),
          "style": {
            width: this.rowHeightWithUnit,
            height: this.rowHeightWithUnit,
            background: this.color
          }
        }, [this.genTopInfo(item), item.text, this.genBottomInfo(item)])]);
      }

      return h("div", {
        "attrs": {
          "role": "gridcell",
          "tabindex": disabled ? null : -1
        },
        "style": style,
        "class": [utils_bem('day', type), item.className],
        "on": {
          "click": onClick
        }
      }, [this.genTopInfo(item), item.text, this.genBottomInfo(item)]);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": utils_bem('month'),
      "ref": "month"
    }, [this.genTitle(), this.genDays()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/calendar/components/Header.js



var Header_createNamespace = Object(create["a" /* createNamespace */])('calendar-header'),
    Header_createComponent = Header_createNamespace[0];

/* harmony default export */ var components_Header = (Header_createComponent({
  props: {
    title: String,
    subtitle: String,
    showTitle: Boolean,
    showSubtitle: Boolean,
    firstDayOfWeek: Number
  },
  methods: {
    genTitle: function genTitle() {
      var h = this.$createElement;

      if (this.showTitle) {
        var title = this.slots('title') || this.title || utils_t('title');
        return h("div", {
          "class": utils_bem('header-title')
        }, [title]);
      }
    },
    genSubtitle: function genSubtitle() {
      var h = this.$createElement;

      if (this.showSubtitle) {
        return h("div", {
          "class": utils_bem('header-subtitle')
        }, [this.subtitle]);
      }
    },
    genWeekDays: function genWeekDays() {
      var h = this.$createElement;
      var weekdays = utils_t('weekdays');
      var firstDayOfWeek = this.firstDayOfWeek;
      var renderWeekDays = [].concat(weekdays.slice(firstDayOfWeek, 7), weekdays.slice(0, firstDayOfWeek));
      return h("div", {
        "class": utils_bem('weekdays')
      }, [renderWeekDays.map(function (item) {
        return h("span", {
          "class": utils_bem('weekday')
        }, [item]);
      })]);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": utils_bem('header')
    }, [this.genTitle(), this.genSubtitle(), this.genWeekDays()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/calendar/index.js
// Utils



 // Components






/* harmony default export */ var calendar = (utils_createComponent({
  props: {
    title: String,
    color: String,
    value: Boolean,
    readonly: Boolean,
    formatter: Function,
    rowHeight: [Number, String],
    confirmText: String,
    rangePrompt: String,
    defaultDate: [Date, Array],
    getContainer: [String, Function],
    allowSameDay: Boolean,
    confirmDisabledText: String,
    type: {
      type: String,
      default: 'single'
    },
    round: {
      type: Boolean,
      default: true
    },
    position: {
      type: String,
      default: 'bottom'
    },
    poppable: {
      type: Boolean,
      default: true
    },
    maxRange: {
      type: [Number, String],
      default: null
    },
    lazyRender: {
      type: Boolean,
      default: true
    },
    showMark: {
      type: Boolean,
      default: true
    },
    showTitle: {
      type: Boolean,
      default: true
    },
    showConfirm: {
      type: Boolean,
      default: true
    },
    showSubtitle: {
      type: Boolean,
      default: true
    },
    closeOnPopstate: {
      type: Boolean,
      default: true
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: true
    },
    safeAreaInsetBottom: {
      type: Boolean,
      default: true
    },
    minDate: {
      type: Date,
      validator: isDate,
      default: function _default() {
        return new Date();
      }
    },
    maxDate: {
      type: Date,
      validator: isDate,
      default: function _default() {
        var now = new Date();
        return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate());
      }
    },
    firstDayOfWeek: {
      type: [Number, String],
      default: 0,
      validator: function validator(val) {
        return val >= 0 && val <= 6;
      }
    }
  },
  inject: {
    vanPopup: {
      default: null
    }
  },
  data: function data() {
    return {
      subtitle: '',
      currentDate: this.getInitialDate()
    };
  },
  computed: {
    months: function months() {
      var months = [];
      var cursor = new Date(this.minDate);
      cursor.setDate(1);

      do {
        months.push(new Date(cursor));
        cursor.setMonth(cursor.getMonth() + 1);
      } while (compareMonth(cursor, this.maxDate) !== 1);

      return months;
    },
    buttonDisabled: function buttonDisabled() {
      var type = this.type,
          currentDate = this.currentDate;

      if (currentDate) {
        if (type === 'range') {
          return !currentDate[0] || !currentDate[1];
        }

        if (type === 'multiple') {
          return !currentDate.length;
        }
      }

      return !currentDate;
    },
    dayOffset: function dayOffset() {
      return this.firstDayOfWeek ? this.firstDayOfWeek % 7 : 0;
    }
  },
  watch: {
    value: 'init',
    type: function type() {
      this.reset();
    },
    defaultDate: function defaultDate(val) {
      this.currentDate = val;
      this.scrollIntoView();
    }
  },
  mounted: function mounted() {
    this.init(); // https://github.com/vant-ui/vant/issues/9845

    if (!this.poppable) {
      var _this$vanPopup;

      (_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
    }
  },

  /* istanbul ignore next */
  activated: function activated() {
    this.init();
  },
  methods: {
    // @exposed-api
    reset: function reset(date) {
      if (date === void 0) {
        date = this.getInitialDate();
      }

      this.currentDate = date;
      this.scrollIntoView();
    },
    init: function init() {
      var _this = this;

      if (this.poppable && !this.value) {
        return;
      }

      this.$nextTick(function () {
        // add Math.floor to avoid decimal height issues
        // https://github.com/vant-ui/vant/issues/5640
        _this.bodyHeight = Math.floor(_this.$refs.body.getBoundingClientRect().height);

        _this.onScroll();

        _this.scrollIntoView();
      });
    },
    // @exposed-api
    scrollToDate: function scrollToDate(targetDate) {
      var _this2 = this;

      Object(raf["c" /* raf */])(function () {
        var displayed = _this2.value || !_this2.poppable;
        /* istanbul ignore if */

        if (!targetDate || !displayed) {
          return;
        }

        _this2.months.some(function (month, index) {
          if (compareMonth(month, targetDate) === 0) {
            var _this2$$refs = _this2.$refs,
                body = _this2$$refs.body,
                months = _this2$$refs.months;
            months[index].scrollIntoView(body);
            return true;
          }

          return false;
        });

        _this2.onScroll();
      });
    },
    // scroll to current month
    scrollIntoView: function scrollIntoView() {
      var currentDate = this.currentDate;

      if (currentDate) {
        var targetDate = this.type === 'single' ? currentDate : currentDate[0];
        this.scrollToDate(targetDate);
      }
    },
    getInitialDate: function getInitialDate() {
      var type = this.type,
          minDate = this.minDate,
          maxDate = this.maxDate,
          defaultDate = this.defaultDate;

      if (defaultDate === null) {
        return defaultDate;
      }

      var defaultVal = new Date();

      if (compareDay(defaultVal, minDate) === -1) {
        defaultVal = minDate;
      } else if (compareDay(defaultVal, maxDate) === 1) {
        defaultVal = maxDate;
      }

      if (type === 'range') {
        var _ref = defaultDate || [],
            startDay = _ref[0],
            endDay = _ref[1];

        return [startDay || defaultVal, endDay || getNextDay(defaultVal)];
      }

      if (type === 'multiple') {
        return defaultDate || [defaultVal];
      }

      return defaultDate || defaultVal;
    },
    // calculate the position of the elements
    // and find the elements that needs to be rendered
    onScroll: function onScroll() {
      var _this$$refs = this.$refs,
          body = _this$$refs.body,
          months = _this$$refs.months;
      var top = getScrollTop(body);
      var bottom = top + this.bodyHeight;
      var heights = months.map(function (item) {
        return item.getHeight();
      });
      var heightSum = heights.reduce(function (a, b) {
        return a + b;
      }, 0); // iOS scroll bounce may exceed the range

      if (bottom > heightSum && top > 0) {
        return;
      }

      var height = 0;
      var currentMonth;
      var visibleRange = [-1, -1];

      for (var i = 0; i < months.length; i++) {
        var visible = height <= bottom && height + heights[i] >= top;

        if (visible) {
          visibleRange[1] = i;

          if (!currentMonth) {
            currentMonth = months[i];
            visibleRange[0] = i;
          }

          if (!months[i].showed) {
            months[i].showed = true;
            this.$emit('month-show', {
              date: months[i].date,
              title: months[i].title
            });
          }
        }

        height += heights[i];
      }

      months.forEach(function (month, index) {
        month.visible = index >= visibleRange[0] - 1 && index <= visibleRange[1] + 1;
      });
      /* istanbul ignore else */

      if (currentMonth) {
        this.subtitle = currentMonth.title;
      }
    },
    onClickDay: function onClickDay(item) {
      if (this.readonly) {
        return;
      }

      var date = item.date;
      var type = this.type,
          currentDate = this.currentDate;

      if (type === 'range') {
        if (!currentDate) {
          this.select([date, null]);
          return;
        }

        var startDay = currentDate[0],
            endDay = currentDate[1];

        if (startDay && !endDay) {
          var compareToStart = compareDay(date, startDay);

          if (compareToStart === 1) {
            this.select([startDay, date], true);
          } else if (compareToStart === -1) {
            this.select([date, null]);
          } else if (this.allowSameDay) {
            this.select([date, date], true);
          }
        } else {
          this.select([date, null]);
        }
      } else if (type === 'multiple') {
        if (!currentDate) {
          this.select([date]);
          return;
        }

        var selectedIndex;
        var selected = this.currentDate.some(function (dateItem, index) {
          var equal = compareDay(dateItem, date) === 0;

          if (equal) {
            selectedIndex = index;
          }

          return equal;
        });

        if (selected) {
          var _currentDate$splice = currentDate.splice(selectedIndex, 1),
              unselectedDate = _currentDate$splice[0];

          this.$emit('unselect', copyDate(unselectedDate));
        } else if (this.maxRange && currentDate.length >= this.maxRange) {
          es_toast(this.rangePrompt || utils_t('rangePrompt', this.maxRange));
        } else {
          this.select([].concat(currentDate, [date]));
        }
      } else {
        this.select(date, true);
      }
    },
    togglePopup: function togglePopup(val) {
      this.$emit('input', val);
    },
    select: function select(date, complete) {
      var _this3 = this;

      var emit = function emit(date) {
        _this3.currentDate = date;

        _this3.$emit('select', copyDates(_this3.currentDate));
      };

      if (complete && this.type === 'range') {
        var valid = this.checkRange(date);

        if (!valid) {
          // auto selected to max range if showConfirm
          if (this.showConfirm) {
            emit([date[0], getDayByOffset(date[0], this.maxRange - 1)]);
          } else {
            emit(date);
          }

          return;
        }
      }

      emit(date);

      if (complete && !this.showConfirm) {
        this.onConfirm();
      }
    },
    checkRange: function checkRange(date) {
      var maxRange = this.maxRange,
          rangePrompt = this.rangePrompt;

      if (maxRange && calcDateNum(date) > maxRange) {
        es_toast(rangePrompt || utils_t('rangePrompt', maxRange));
        return false;
      }

      return true;
    },
    onConfirm: function onConfirm() {
      this.$emit('confirm', copyDates(this.currentDate));
    },
    genMonth: function genMonth(date, index) {
      var h = this.$createElement;
      var showMonthTitle = index !== 0 || !this.showSubtitle;
      return h(Month, {
        "ref": "months",
        "refInFor": true,
        "attrs": {
          "date": date,
          "type": this.type,
          "color": this.color,
          "minDate": this.minDate,
          "maxDate": this.maxDate,
          "showMark": this.showMark,
          "formatter": this.formatter,
          "rowHeight": this.rowHeight,
          "lazyRender": this.lazyRender,
          "currentDate": this.currentDate,
          "showSubtitle": this.showSubtitle,
          "allowSameDay": this.allowSameDay,
          "showMonthTitle": showMonthTitle,
          "firstDayOfWeek": this.dayOffset
        },
        "scopedSlots": {
          'top-info': this.$scopedSlots['top-info'],
          'bottom-info': this.$scopedSlots['bottom-info']
        },
        "on": {
          "click": this.onClickDay
        }
      });
    },
    genFooterContent: function genFooterContent() {
      var h = this.$createElement;
      var slot = this.slots('footer');

      if (slot) {
        return slot;
      }

      if (this.showConfirm) {
        var text = this.buttonDisabled ? this.confirmDisabledText : this.confirmText;
        return h(es_button, {
          "attrs": {
            "round": true,
            "block": true,
            "type": "danger",
            "color": this.color,
            "disabled": this.buttonDisabled,
            "nativeType": "button"
          },
          "class": utils_bem('confirm'),
          "on": {
            "click": this.onConfirm
          }
        }, [text || utils_t('confirm')]);
      }
    },
    genFooter: function genFooter() {
      var h = this.$createElement;
      return h("div", {
        "class": utils_bem('footer', {
          unfit: !this.safeAreaInsetBottom
        })
      }, [this.genFooterContent()]);
    },
    genCalendar: function genCalendar() {
      var _this4 = this;

      var h = this.$createElement;
      return h("div", {
        "class": utils_bem()
      }, [h(components_Header, {
        "attrs": {
          "title": this.title,
          "showTitle": this.showTitle,
          "subtitle": this.subtitle,
          "showSubtitle": this.showSubtitle,
          "firstDayOfWeek": this.dayOffset
        },
        "scopedSlots": {
          title: function title() {
            return _this4.slots('title');
          }
        }
      }), h("div", {
        "ref": "body",
        "class": utils_bem('body'),
        "on": {
          "scroll": this.onScroll
        }
      }, [this.months.map(this.genMonth)]), this.genFooter()]);
    }
  },
  render: function render() {
    var _this5 = this;

    var h = arguments[0];

    if (this.poppable) {
      var _attrs;

      var createListener = function createListener(name) {
        return function () {
          return _this5.$emit(name);
        };
      };

      return h(popup, {
        "attrs": (_attrs = {
          "round": true,
          "value": this.value
        }, _attrs["round"] = this.round, _attrs["position"] = this.position, _attrs["closeable"] = this.showTitle || this.showSubtitle, _attrs["getContainer"] = this.getContainer, _attrs["closeOnPopstate"] = this.closeOnPopstate, _attrs["closeOnClickOverlay"] = this.closeOnClickOverlay, _attrs),
        "class": utils_bem('popup'),
        "on": {
          "input": this.togglePopup,
          "open": createListener('open'),
          "opened": createListener('opened'),
          "close": createListener('close'),
          "closed": createListener('closed')
        }
      }, [this.genCalendar()]);
    }

    return this.genCalendar();
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/image/index.js





var image_createNamespace = Object(create["a" /* createNamespace */])('image'),
    image_createComponent = image_createNamespace[0],
    image_bem = image_createNamespace[1];

/* harmony default export */ var es_image = (image_createComponent({
  props: {
    src: String,
    fit: String,
    alt: String,
    round: Boolean,
    width: [Number, String],
    height: [Number, String],
    radius: [Number, String],
    lazyLoad: Boolean,
    iconPrefix: String,
    showError: {
      type: Boolean,
      default: true
    },
    showLoading: {
      type: Boolean,
      default: true
    },
    errorIcon: {
      type: String,
      default: 'photo-fail'
    },
    loadingIcon: {
      type: String,
      default: 'photo'
    }
  },
  data: function data() {
    return {
      loading: true,
      error: false
    };
  },
  watch: {
    src: function src() {
      this.loading = true;
      this.error = false;
    }
  },
  computed: {
    style: function style() {
      var style = {};

      if (Object(utils["c" /* isDef */])(this.width)) {
        style.width = Object(unit["a" /* addUnit */])(this.width);
      }

      if (Object(utils["c" /* isDef */])(this.height)) {
        style.height = Object(unit["a" /* addUnit */])(this.height);
      }

      if (Object(utils["c" /* isDef */])(this.radius)) {
        style.overflow = 'hidden';
        style.borderRadius = Object(unit["a" /* addUnit */])(this.radius);
      }

      return style;
    }
  },
  created: function created() {
    var $Lazyload = this.$Lazyload;

    if ($Lazyload && utils["b" /* inBrowser */]) {
      $Lazyload.$on('loaded', this.onLazyLoaded);
      $Lazyload.$on('error', this.onLazyLoadError);
    }
  },
  beforeDestroy: function beforeDestroy() {
    var $Lazyload = this.$Lazyload;

    if ($Lazyload) {
      $Lazyload.$off('loaded', this.onLazyLoaded);
      $Lazyload.$off('error', this.onLazyLoadError);
    }
  },
  methods: {
    onLoad: function onLoad(event) {
      this.loading = false;
      this.$emit('load', event);
    },
    onLazyLoaded: function onLazyLoaded(_ref) {
      var el = _ref.el;

      if (el === this.$refs.image && this.loading) {
        this.onLoad();
      }
    },
    onLazyLoadError: function onLazyLoadError(_ref2) {
      var el = _ref2.el;

      if (el === this.$refs.image && !this.error) {
        this.onError();
      }
    },
    onError: function onError(event) {
      this.error = true;
      this.loading = false;
      this.$emit('error', event);
    },
    onClick: function onClick(event) {
      this.$emit('click', event);
    },
    genPlaceholder: function genPlaceholder() {
      var h = this.$createElement;

      if (this.loading && this.showLoading) {
        return h("div", {
          "class": image_bem('loading')
        }, [this.slots('loading') || h(es_icon, {
          "attrs": {
            "name": this.loadingIcon,
            "classPrefix": this.iconPrefix
          },
          "class": image_bem('loading-icon')
        })]);
      }

      if (this.error && this.showError) {
        return h("div", {
          "class": image_bem('error')
        }, [this.slots('error') || h(es_icon, {
          "attrs": {
            "name": this.errorIcon,
            "classPrefix": this.iconPrefix
          },
          "class": image_bem('error-icon')
        })]);
      }
    },
    genImage: function genImage() {
      var h = this.$createElement;
      var imgData = {
        class: image_bem('img'),
        attrs: {
          alt: this.alt
        },
        style: {
          objectFit: this.fit
        }
      };

      if (this.error) {
        return;
      }

      if (this.lazyLoad) {
        return h("img", helper_default()([{
          "ref": "image",
          "directives": [{
            name: "lazy",
            value: this.src
          }]
        }, imgData]));
      }

      return h("img", helper_default()([{
        "attrs": {
          "src": this.src
        },
        "on": {
          "load": this.onLoad,
          "error": this.onError
        }
      }, imgData]));
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": image_bem({
        round: this.round
      }),
      "style": this.style,
      "on": {
        "click": this.onClick
      }
    }, [this.genImage(), this.genPlaceholder(), this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/card/index.js

// Utils

 // Components


 // Types

var card_createNamespace = Object(create["a" /* createNamespace */])('card'),
    card_createComponent = card_createNamespace[0],
    card_bem = card_createNamespace[1];

function Card(h, props, slots, ctx) {
  var _slots$priceTop;

  var thumb = props.thumb;
  var showNum = slots.num || Object(utils["c" /* isDef */])(props.num);
  var showPrice = slots.price || Object(utils["c" /* isDef */])(props.price);
  var showOriginPrice = slots['origin-price'] || Object(utils["c" /* isDef */])(props.originPrice);
  var showBottom = showNum || showPrice || showOriginPrice || slots.bottom;

  function onThumbClick(event) {
    functional_emit(ctx, 'click-thumb', event);
  }

  function ThumbTag() {
    if (slots.tag || props.tag) {
      return h("div", {
        "class": card_bem('tag')
      }, [slots.tag ? slots.tag() : h(es_tag, {
        "attrs": {
          "mark": true,
          "type": "danger"
        }
      }, [props.tag])]);
    }
  }

  function Thumb() {
    if (slots.thumb || thumb) {
      return h("a", {
        "attrs": {
          "href": props.thumbLink
        },
        "class": card_bem('thumb'),
        "on": {
          "click": onThumbClick
        }
      }, [slots.thumb ? slots.thumb() : h(es_image, {
        "attrs": {
          "src": thumb,
          "width": "100%",
          "height": "100%",
          "fit": "cover",
          "lazy-load": props.lazyLoad
        }
      }), ThumbTag()]);
    }
  }

  function Title() {
    if (slots.title) {
      return slots.title();
    }

    if (props.title) {
      return h("div", {
        "class": [card_bem('title'), 'van-multi-ellipsis--l2']
      }, [props.title]);
    }
  }

  function Desc() {
    if (slots.desc) {
      return slots.desc();
    }

    if (props.desc) {
      return h("div", {
        "class": [card_bem('desc'), 'van-ellipsis']
      }, [props.desc]);
    }
  }

  function PriceContent() {
    var priceArr = props.price.toString().split('.');
    return h("div", [h("span", {
      "class": card_bem('price-currency')
    }, [props.currency]), h("span", {
      "class": card_bem('price-integer')
    }, [priceArr[0]]), ".", h("span", {
      "class": card_bem('price-decimal')
    }, [priceArr[1]])]);
  }

  function Price() {
    if (showPrice) {
      return h("div", {
        "class": card_bem('price')
      }, [slots.price ? slots.price() : PriceContent()]);
    }
  }

  function OriginPrice() {
    if (showOriginPrice) {
      var slot = slots['origin-price'];
      return h("div", {
        "class": card_bem('origin-price')
      }, [slot ? slot() : props.currency + " " + props.originPrice]);
    }
  }

  function Num() {
    if (showNum) {
      return h("div", {
        "class": card_bem('num')
      }, [slots.num ? slots.num() : "x" + props.num]);
    }
  }

  function Footer() {
    if (slots.footer) {
      return h("div", {
        "class": card_bem('footer')
      }, [slots.footer()]);
    }
  }

  return h("div", helper_default()([{
    "class": card_bem()
  }, inherit(ctx, true)]), [h("div", {
    "class": card_bem('header')
  }, [Thumb(), h("div", {
    "class": card_bem('content', {
      centered: props.centered
    })
  }, [h("div", [Title(), Desc(), slots.tags == null ? void 0 : slots.tags()]), showBottom && h("div", {
    "class": "van-card__bottom"
  }, [(_slots$priceTop = slots['price-top']) == null ? void 0 : _slots$priceTop.call(slots), Price(), OriginPrice(), Num(), slots.bottom == null ? void 0 : slots.bottom()])])]), Footer()]);
}

Card.props = {
  tag: String,
  desc: String,
  thumb: String,
  title: String,
  centered: Boolean,
  lazyLoad: Boolean,
  thumbLink: String,
  num: [Number, String],
  price: [Number, String],
  originPrice: [Number, String],
  currency: {
    type: String,
    default: '¥'
  }
};
/* harmony default export */ var card = (card_createComponent(Card));
// CONCATENATED MODULE: ./node_modules/vant/es/tab/index.js





var tab_createNamespace = Object(create["a" /* createNamespace */])('tab'),
    tab_createComponent = tab_createNamespace[0],
    tab_bem = tab_createNamespace[1];

/* harmony default export */ var tab = (tab_createComponent({
  mixins: [ChildrenMixin('vanTabs')],
  props: _extends({}, routeProps, {
    dot: Boolean,
    name: [Number, String],
    // @deprecated
    info: [Number, String],
    badge: [Number, String],
    title: String,
    titleStyle: null,
    titleClass: null,
    disabled: Boolean
  }),
  data: function data() {
    return {
      inited: false
    };
  },
  computed: {
    computedName: function computedName() {
      var _this$name;

      return (_this$name = this.name) != null ? _this$name : this.index;
    },
    isActive: function isActive() {
      var active = this.computedName === this.parent.currentName;

      if (active) {
        this.inited = true;
      }

      return active;
    }
  },
  watch: {
    title: function title() {
      this.parent.setLine();
      this.parent.scrollIntoView();
    },
    inited: function inited(val) {
      var _this = this;

      if (this.parent.lazyRender && val) {
        this.$nextTick(function () {
          _this.parent.$emit('rendered', _this.computedName, _this.title);
        });
      }
    }
  },
  render: function render(h) {
    var slots = this.slots,
        parent = this.parent,
        isActive = this.isActive;
    var slotContent = slots();

    if (false) {}

    if (!slotContent && !parent.animated) {
      return;
    }

    var show = parent.scrollspy || isActive;
    var shouldRender = this.inited || parent.scrollspy || !parent.lazyRender;
    var Content = shouldRender ? slotContent : h();

    if (parent.animated) {
      return h("div", {
        "attrs": {
          "role": "tabpanel",
          "aria-hidden": !isActive
        },
        "class": tab_bem('pane-wrapper', {
          inactive: !isActive
        })
      }, [h("div", {
        "class": tab_bem('pane')
      }, [Content])]);
    }

    return h("div", {
      "directives": [{
        name: "show",
        value: show
      }],
      "attrs": {
        "role": "tabpanel"
      },
      "class": tab_bem('pane')
    }, [Content]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/tabs/utils.js


function scrollLeftTo(scroller, to, duration) {
  var count = 0;
  var from = scroller.scrollLeft;
  var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);

  function animate() {
    scroller.scrollLeft += (to - from) / frames;

    if (++count < frames) {
      Object(raf["c" /* raf */])(animate);
    }
  }

  animate();
}
function scrollTopTo(scroller, to, duration, callback) {
  var current = getScrollTop(scroller);
  var isDown = current < to;
  var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);
  var step = (to - current) / frames;

  function animate() {
    current += step;

    if (isDown && current > to || !isDown && current < to) {
      current = to;
    }

    setScrollTop(scroller, current);

    if (isDown && current < to || !isDown && current > to) {
      Object(raf["c" /* raf */])(animate);
    } else if (callback) {
      Object(raf["c" /* raf */])(callback);
    }
  }

  animate();
}
// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/style.js
function isHidden(el) {
  var style = window.getComputedStyle(el);
  var hidden = style.display === 'none'; // offsetParent returns null in the following situations:
  // 1. The element or its parent element has the display property set to none.
  // 2. The element has the position property set to fixed

  var parentHidden = el.offsetParent === null && style.position !== 'fixed';
  return hidden || parentHidden;
}
// CONCATENATED MODULE: ./node_modules/vant/es/utils/interceptor.js

function callInterceptor(options) {
  var interceptor = options.interceptor,
      args = options.args,
      done = options.done;

  if (interceptor) {
    var returnVal = interceptor.apply(void 0, args);

    if (Object(utils["g" /* isPromise */])(returnVal)) {
      returnVal.then(function (value) {
        if (value) {
          done();
        }
      }).catch(utils["i" /* noop */]);
    } else if (returnVal) {
      done();
    }
  } else {
    done();
  }
}
// CONCATENATED MODULE: ./node_modules/vant/es/tabs/Title.js



var Title_createNamespace = Object(create["a" /* createNamespace */])('tab'),
    Title_createComponent = Title_createNamespace[0],
    Title_bem = Title_createNamespace[1];

/* harmony default export */ var tabs_Title = (Title_createComponent({
  props: {
    dot: Boolean,
    type: String,
    info: [Number, String],
    color: String,
    title: String,
    isActive: Boolean,
    disabled: Boolean,
    scrollable: Boolean,
    activeColor: String,
    inactiveColor: String
  },
  computed: {
    style: function style() {
      var style = {};
      var color = this.color,
          isActive = this.isActive;
      var isCard = this.type === 'card'; // card theme color

      if (color && isCard) {
        style.borderColor = color;

        if (!this.disabled) {
          if (isActive) {
            style.backgroundColor = color;
          } else {
            style.color = color;
          }
        }
      }

      var titleColor = isActive ? this.activeColor : this.inactiveColor;

      if (titleColor) {
        style.color = titleColor;
      }

      return style;
    }
  },
  methods: {
    onClick: function onClick() {
      this.$emit('click');
    },
    genText: function genText() {
      var h = this.$createElement;
      var Text = h("span", {
        "class": Title_bem('text', {
          ellipsis: !this.scrollable
        })
      }, [this.slots() || this.title]);

      if (this.dot || Object(utils["c" /* isDef */])(this.info) && this.info !== '') {
        return h("span", {
          "class": Title_bem('text-wrapper')
        }, [Text, h(es_info, {
          "attrs": {
            "dot": this.dot,
            "info": this.info
          }
        })]);
      }

      return Text;
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "attrs": {
        "role": "tab",
        "aria-selected": this.isActive
      },
      "class": [Title_bem({
        active: this.isActive,
        disabled: this.disabled
      })],
      "style": this.style,
      "on": {
        "click": this.onClick
      }
    }, [this.genText()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sticky/index.js






var sticky_createNamespace = Object(create["a" /* createNamespace */])('sticky'),
    sticky_createComponent = sticky_createNamespace[0],
    sticky_bem = sticky_createNamespace[1];

/* harmony default export */ var es_sticky = (sticky_createComponent({
  mixins: [BindEventMixin(function (bind, isBind) {
    if (!this.scroller) {
      this.scroller = getScroller(this.$el);
    }

    if (this.observer) {
      var method = isBind ? 'observe' : 'unobserve';
      this.observer[method](this.$el);
    }

    bind(this.scroller, 'scroll', this.onScroll, true);
    this.onScroll();
  })],
  props: {
    zIndex: [Number, String],
    container: null,
    offsetTop: {
      type: [Number, String],
      default: 0
    }
  },
  data: function data() {
    return {
      fixed: false,
      height: 0,
      transform: 0
    };
  },
  computed: {
    offsetTopPx: function offsetTopPx() {
      return Object(unit["b" /* unitToPx */])(this.offsetTop);
    },
    style: function style() {
      if (!this.fixed) {
        return;
      }

      var style = {};

      if (Object(utils["c" /* isDef */])(this.zIndex)) {
        style.zIndex = this.zIndex;
      }

      if (this.offsetTopPx && this.fixed) {
        style.top = this.offsetTopPx + "px";
      }

      if (this.transform) {
        style.transform = "translate3d(0, " + this.transform + "px, 0)";
      }

      return style;
    }
  },
  watch: {
    fixed: function fixed(isFixed) {
      this.$emit('change', isFixed);
    }
  },
  created: function created() {
    var _this = this;

    // compatibility: https://caniuse.com/#feat=intersectionobserver
    if (!utils["h" /* isServer */] && window.IntersectionObserver) {
      this.observer = new IntersectionObserver(function (entries) {
        // trigger scroll when visibility changed
        if (entries[0].intersectionRatio > 0) {
          _this.onScroll();
        }
      }, {
        root: document.body
      });
    }
  },
  methods: {
    onScroll: function onScroll() {
      var _this2 = this;

      if (isHidden(this.$el)) {
        return;
      }

      this.height = this.$el.offsetHeight;
      var container = this.container,
          offsetTopPx = this.offsetTopPx;
      var scrollTop = getScrollTop(window);
      var topToPageTop = getElementTop(this.$el);

      var emitScrollEvent = function emitScrollEvent() {
        _this2.$emit('scroll', {
          scrollTop: scrollTop,
          isFixed: _this2.fixed
        });
      }; // The sticky component should be kept inside the container element


      if (container) {
        var bottomToPageTop = topToPageTop + container.offsetHeight;

        if (scrollTop + offsetTopPx + this.height > bottomToPageTop) {
          var distanceToBottom = this.height + scrollTop - bottomToPageTop;

          if (distanceToBottom < this.height) {
            this.fixed = true;
            this.transform = -(distanceToBottom + offsetTopPx);
          } else {
            this.fixed = false;
          }

          emitScrollEvent();
          return;
        }
      }

      if (scrollTop + offsetTopPx > topToPageTop) {
        this.fixed = true;
        this.transform = 0;
      } else {
        this.fixed = false;
      }

      emitScrollEvent();
    }
  },
  render: function render() {
    var h = arguments[0];
    var fixed = this.fixed;
    var style = {
      height: fixed ? this.height + "px" : null
    };
    return h("div", {
      "style": style
    }, [h("div", {
      "class": sticky_bem({
        fixed: fixed
      }),
      "style": this.style
    }, [this.slots()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/tabs/Content.js




var Content_createNamespace = Object(create["a" /* createNamespace */])('tabs'),
    Content_createComponent = Content_createNamespace[0],
    Content_bem = Content_createNamespace[1];

var MIN_SWIPE_DISTANCE = 50;
/* harmony default export */ var tabs_Content = (Content_createComponent({
  mixins: [TouchMixin],
  props: {
    count: Number,
    duration: [Number, String],
    animated: Boolean,
    swipeable: Boolean,
    currentIndex: Number
  },
  computed: {
    style: function style() {
      if (this.animated) {
        return {
          transform: "translate3d(" + -1 * this.currentIndex * 100 + "%, 0, 0)",
          transitionDuration: this.duration + "s"
        };
      }
    },
    listeners: function listeners() {
      if (this.swipeable) {
        return {
          touchstart: this.touchStart,
          touchmove: this.touchMove,
          touchend: this.onTouchEnd,
          touchcancel: this.onTouchEnd
        };
      }
    }
  },
  methods: {
    // watch swipe touch end
    onTouchEnd: function onTouchEnd() {
      var direction = this.direction,
          deltaX = this.deltaX,
          currentIndex = this.currentIndex;
      /* istanbul ignore else */

      if (direction === 'horizontal' && this.offsetX >= MIN_SWIPE_DISTANCE) {
        /* istanbul ignore else */
        if (deltaX > 0 && currentIndex !== 0) {
          this.$emit('change', currentIndex - 1);
        } else if (deltaX < 0 && currentIndex !== this.count - 1) {
          this.$emit('change', currentIndex + 1);
        }
      }
    },
    genChildren: function genChildren() {
      var h = this.$createElement;

      if (this.animated) {
        return h("div", {
          "class": Content_bem('track'),
          "style": this.style
        }, [this.slots()]);
      }

      return this.slots();
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": Content_bem('content', {
        animated: this.animated
      }),
      "on": _extends({}, this.listeners)
    }, [this.genChildren()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/tabs/index.js
// Utils








 // Mixins


 // Components





var tabs_createNamespace = Object(create["a" /* createNamespace */])('tabs'),
    tabs_createComponent = tabs_createNamespace[0],
    tabs_bem = tabs_createNamespace[1];

/* harmony default export */ var tabs = (tabs_createComponent({
  mixins: [ParentMixin('vanTabs'), BindEventMixin(function (bind) {
    if (!this.scroller) {
      this.scroller = getScroller(this.$el);
    }

    bind(window, 'resize', this.resize, true);

    if (this.scrollspy) {
      bind(this.scroller, 'scroll', this.onScroll, true);
    }
  })],
  inject: {
    vanPopup: {
      default: null
    }
  },
  model: {
    prop: 'active'
  },
  props: {
    color: String,
    border: Boolean,
    sticky: Boolean,
    animated: Boolean,
    swipeable: Boolean,
    scrollspy: Boolean,
    background: String,
    lineWidth: [Number, String],
    lineHeight: [Number, String],
    beforeChange: Function,
    titleActiveColor: String,
    titleInactiveColor: String,
    type: {
      type: String,
      default: 'line'
    },
    active: {
      type: [Number, String],
      default: 0
    },
    ellipsis: {
      type: Boolean,
      default: true
    },
    duration: {
      type: [Number, String],
      default: 0.3
    },
    offsetTop: {
      type: [Number, String],
      default: 0
    },
    lazyRender: {
      type: Boolean,
      default: true
    },
    swipeThreshold: {
      type: [Number, String],
      default: 5
    }
  },
  data: function data() {
    return {
      position: '',
      currentIndex: null,
      lineStyle: {
        backgroundColor: this.color
      }
    };
  },
  computed: {
    // whether the nav is scrollable
    scrollable: function scrollable() {
      return this.children.length > this.swipeThreshold || !this.ellipsis;
    },
    navStyle: function navStyle() {
      return {
        borderColor: this.color,
        background: this.background
      };
    },
    currentName: function currentName() {
      var activeTab = this.children[this.currentIndex];

      if (activeTab) {
        return activeTab.computedName;
      }
    },
    offsetTopPx: function offsetTopPx() {
      return Object(unit["b" /* unitToPx */])(this.offsetTop);
    },
    scrollOffset: function scrollOffset() {
      if (this.sticky) {
        return this.offsetTopPx + this.tabHeight;
      }

      return 0;
    }
  },
  watch: {
    color: 'setLine',
    active: function active(name) {
      if (name !== this.currentName) {
        this.setCurrentIndexByName(name);
      }
    },
    children: function children() {
      var _this = this;

      this.setCurrentIndexByName(this.active);
      this.setLine();
      this.$nextTick(function () {
        _this.scrollIntoView(true);
      });
    },
    currentIndex: function currentIndex() {
      this.scrollIntoView();
      this.setLine(); // scroll to correct position

      if (this.stickyFixed && !this.scrollspy) {
        setRootScrollTop(Math.ceil(getElementTop(this.$el) - this.offsetTopPx));
      }
    },
    scrollspy: function scrollspy(val) {
      if (val) {
        event_on(this.scroller, 'scroll', this.onScroll, true);
      } else {
        off(this.scroller, 'scroll', this.onScroll);
      }
    }
  },
  mounted: function mounted() {
    var _this2 = this;

    this.init(); // https://github.com/vant-ui/vant/issues/7959

    if (this.vanPopup) {
      this.vanPopup.onReopen(function () {
        _this2.setLine();
      });
    }
  },
  activated: function activated() {
    this.init();
    this.setLine();
  },
  methods: {
    // @exposed-api
    resize: function resize() {
      this.setLine();
    },
    init: function init() {
      var _this3 = this;

      this.$nextTick(function () {
        _this3.inited = true;
        _this3.tabHeight = getVisibleHeight(_this3.$refs.wrap);

        _this3.scrollIntoView(true);
      });
    },
    // update nav bar style
    setLine: function setLine() {
      var _this4 = this;

      var shouldAnimate = this.inited;
      this.$nextTick(function () {
        var titles = _this4.$refs.titles;

        if (!titles || !titles[_this4.currentIndex] || _this4.type !== 'line' || isHidden(_this4.$el)) {
          return;
        }

        var title = titles[_this4.currentIndex].$el;
        var lineWidth = _this4.lineWidth,
            lineHeight = _this4.lineHeight;
        var left = title.offsetLeft + title.offsetWidth / 2;
        var lineStyle = {
          width: Object(unit["a" /* addUnit */])(lineWidth),
          backgroundColor: _this4.color,
          transform: "translateX(" + left + "px) translateX(-50%)"
        };

        if (shouldAnimate) {
          lineStyle.transitionDuration = _this4.duration + "s";
        }

        if (Object(utils["c" /* isDef */])(lineHeight)) {
          var height = Object(unit["a" /* addUnit */])(lineHeight);
          lineStyle.height = height;
          lineStyle.borderRadius = height;
        }

        _this4.lineStyle = lineStyle;
      });
    },
    // correct the index of active tab
    setCurrentIndexByName: function setCurrentIndexByName(name) {
      var matched = this.children.filter(function (tab) {
        return tab.computedName === name;
      });
      var defaultIndex = (this.children[0] || {}).index || 0;
      this.setCurrentIndex(matched.length ? matched[0].index : defaultIndex);
    },
    setCurrentIndex: function setCurrentIndex(currentIndex) {
      var newIndex = this.findAvailableTab(currentIndex);

      if (!Object(utils["c" /* isDef */])(newIndex)) {
        return;
      }

      var newTab = this.children[newIndex];
      var newName = newTab.computedName;
      var shouldEmitChange = this.currentIndex !== null;
      this.currentIndex = newIndex;

      if (newName !== this.active) {
        this.$emit('input', newName);

        if (shouldEmitChange) {
          this.$emit('change', newName, newTab.title);
        }
      }
    },
    findAvailableTab: function findAvailableTab(index) {
      var diff = index < this.currentIndex ? -1 : 1;

      while (index >= 0 && index < this.children.length) {
        if (!this.children[index].disabled) {
          return index;
        }

        index += diff;
      }
    },
    // emit event when clicked
    onClick: function onClick(item, index) {
      var _this5 = this;

      var _this$children$index = this.children[index],
          title = _this$children$index.title,
          disabled = _this$children$index.disabled,
          computedName = _this$children$index.computedName;

      if (disabled) {
        this.$emit('disabled', computedName, title);
      } else {
        callInterceptor({
          interceptor: this.beforeChange,
          args: [computedName],
          done: function done() {
            _this5.setCurrentIndex(index);

            _this5.scrollToCurrentContent();
          }
        });
        this.$emit('click', computedName, title);
        route(item.$router, item);
      }
    },
    // scroll active tab into view
    scrollIntoView: function scrollIntoView(immediate) {
      var titles = this.$refs.titles;

      if (!this.scrollable || !titles || !titles[this.currentIndex]) {
        return;
      }

      var nav = this.$refs.nav;
      var title = titles[this.currentIndex].$el;
      var to = title.offsetLeft - (nav.offsetWidth - title.offsetWidth) / 2;
      scrollLeftTo(nav, to, immediate ? 0 : +this.duration);
    },
    onSticktScroll: function onSticktScroll(params) {
      this.stickyFixed = params.isFixed;
      this.$emit('scroll', params);
    },
    // @exposed-api
    scrollTo: function scrollTo(name) {
      var _this6 = this;

      this.$nextTick(function () {
        _this6.setCurrentIndexByName(name);

        _this6.scrollToCurrentContent(true);
      });
    },
    scrollToCurrentContent: function scrollToCurrentContent(immediate) {
      var _this7 = this;

      if (immediate === void 0) {
        immediate = false;
      }

      if (this.scrollspy) {
        var target = this.children[this.currentIndex];
        var el = target == null ? void 0 : target.$el;

        if (el) {
          var to = getElementTop(el, this.scroller) - this.scrollOffset;
          this.lockScroll = true;
          scrollTopTo(this.scroller, to, immediate ? 0 : +this.duration, function () {
            _this7.lockScroll = false;
          });
        }
      }
    },
    onScroll: function onScroll() {
      if (this.scrollspy && !this.lockScroll) {
        var index = this.getCurrentIndexOnScroll();
        this.setCurrentIndex(index);
      }
    },
    getCurrentIndexOnScroll: function getCurrentIndexOnScroll() {
      var children = this.children;

      for (var index = 0; index < children.length; index++) {
        var top = getVisibleTop(children[index].$el);

        if (top > this.scrollOffset) {
          return index === 0 ? 0 : index - 1;
        }
      }

      return children.length - 1;
    }
  },
  render: function render() {
    var _this8 = this,
        _ref;

    var h = arguments[0];
    var type = this.type,
        animated = this.animated,
        scrollable = this.scrollable;
    var Nav = this.children.map(function (item, index) {
      var _item$badge;

      return h(tabs_Title, {
        "ref": "titles",
        "refInFor": true,
        "attrs": {
          "type": type,
          "dot": item.dot,
          "info": (_item$badge = item.badge) != null ? _item$badge : item.info,
          "title": item.title,
          "color": _this8.color,
          "isActive": index === _this8.currentIndex,
          "disabled": item.disabled,
          "scrollable": scrollable,
          "activeColor": _this8.titleActiveColor,
          "inactiveColor": _this8.titleInactiveColor
        },
        "style": item.titleStyle,
        "class": item.titleClass,
        "scopedSlots": {
          default: function _default() {
            return item.slots('title');
          }
        },
        "on": {
          "click": function click() {
            _this8.onClick(item, index);
          }
        }
      });
    });
    var Wrap = h("div", {
      "ref": "wrap",
      "class": [tabs_bem('wrap', {
        scrollable: scrollable
      }), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = type === 'line' && this.border, _ref)]
    }, [h("div", {
      "ref": "nav",
      "attrs": {
        "role": "tablist"
      },
      "class": tabs_bem('nav', [type, {
        complete: this.scrollable
      }]),
      "style": this.navStyle
    }, [this.slots('nav-left'), Nav, type === 'line' && h("div", {
      "class": tabs_bem('line'),
      "style": this.lineStyle
    }), this.slots('nav-right')])]);
    return h("div", {
      "class": tabs_bem([type])
    }, [this.sticky ? h(es_sticky, {
      "attrs": {
        "container": this.$el,
        "offsetTop": this.offsetTop
      },
      "on": {
        "scroll": this.onSticktScroll
      }
    }, [Wrap]) : Wrap, h(tabs_Content, {
      "attrs": {
        "count": this.children.length,
        "animated": animated,
        "duration": this.duration,
        "swipeable": this.swipeable,
        "currentIndex": this.currentIndex
      },
      "on": {
        "change": this.setCurrentIndex
      }
    }, [this.slots()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/cascader/index.js





var cascader_createNamespace = Object(create["a" /* createNamespace */])('cascader'),
    cascader_createComponent = cascader_createNamespace[0],
    cascader_bem = cascader_createNamespace[1],
    cascader_t = cascader_createNamespace[2];

/* harmony default export */ var cascader = (cascader_createComponent({
  props: {
    title: String,
    value: [Number, String],
    fieldNames: Object,
    placeholder: String,
    activeColor: String,
    options: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    closeable: {
      type: Boolean,
      default: true
    },
    showHeader: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      tabs: [],
      activeTab: 0
    };
  },
  computed: {
    textKey: function textKey() {
      var _this$fieldNames;

      return ((_this$fieldNames = this.fieldNames) == null ? void 0 : _this$fieldNames.text) || 'text';
    },
    valueKey: function valueKey() {
      var _this$fieldNames2;

      return ((_this$fieldNames2 = this.fieldNames) == null ? void 0 : _this$fieldNames2.value) || 'value';
    },
    childrenKey: function childrenKey() {
      var _this$fieldNames3;

      return ((_this$fieldNames3 = this.fieldNames) == null ? void 0 : _this$fieldNames3.children) || 'children';
    }
  },
  watch: {
    options: {
      deep: true,
      handler: 'updateTabs'
    },
    value: function value(_value) {
      var _this = this;

      if (_value || _value === 0) {
        var values = this.tabs.map(function (tab) {
          var _tab$selectedOption;

          return (_tab$selectedOption = tab.selectedOption) == null ? void 0 : _tab$selectedOption[_this.valueKey];
        });

        if (values.indexOf(_value) !== -1) {
          return;
        }
      }

      this.updateTabs();
    }
  },
  created: function created() {
    this.updateTabs();
  },
  methods: {
    getSelectedOptionsByValue: function getSelectedOptionsByValue(options, value) {
      for (var i = 0; i < options.length; i++) {
        var option = options[i];

        if (option[this.valueKey] === value) {
          return [option];
        }

        if (option[this.childrenKey]) {
          var selectedOptions = this.getSelectedOptionsByValue(option[this.childrenKey], value);

          if (selectedOptions) {
            return [option].concat(selectedOptions);
          }
        }
      }
    },
    updateTabs: function updateTabs() {
      var _this2 = this;

      if (this.value || this.value === 0) {
        var selectedOptions = this.getSelectedOptionsByValue(this.options, this.value);

        if (selectedOptions) {
          var optionsCursor = this.options;
          this.tabs = selectedOptions.map(function (option) {
            var tab = {
              options: optionsCursor,
              selectedOption: option
            };
            var next = optionsCursor.filter(function (item) {
              return item[_this2.valueKey] === option[_this2.valueKey];
            });

            if (next.length) {
              optionsCursor = next[0][_this2.childrenKey];
            }

            return tab;
          });

          if (optionsCursor) {
            this.tabs.push({
              options: optionsCursor,
              selectedOption: null
            });
          }

          this.$nextTick(function () {
            _this2.activeTab = _this2.tabs.length - 1;
          });
          return;
        }
      }

      this.tabs = [{
        options: this.options,
        selectedOption: null
      }];
    },
    onSelect: function onSelect(option, tabIndex) {
      var _this3 = this;

      this.tabs[tabIndex].selectedOption = option;

      if (this.tabs.length > tabIndex + 1) {
        this.tabs = this.tabs.slice(0, tabIndex + 1);
      }

      if (option[this.childrenKey]) {
        var nextTab = {
          options: option[this.childrenKey],
          selectedOption: null
        };

        if (this.tabs[tabIndex + 1]) {
          this.$set(this.tabs, tabIndex + 1, nextTab);
        } else {
          this.tabs.push(nextTab);
        }

        this.$nextTick(function () {
          _this3.activeTab++;
        });
      }

      var selectedOptions = this.tabs.map(function (tab) {
        return tab.selectedOption;
      }).filter(function (item) {
        return !!item;
      });
      var eventParams = {
        value: option[this.valueKey],
        tabIndex: tabIndex,
        selectedOptions: selectedOptions
      };
      this.$emit('input', option[this.valueKey]);
      this.$emit('change', eventParams);

      if (!option[this.childrenKey]) {
        this.$emit('finish', eventParams);
      }
    },
    onClose: function onClose() {
      this.$emit('close');
    },
    renderHeader: function renderHeader() {
      var h = this.$createElement;

      if (this.showHeader) {
        return h("div", {
          "class": cascader_bem('header')
        }, [h("h2", {
          "class": cascader_bem('title')
        }, [this.slots('title') || this.title]), this.closeable ? h(es_icon, {
          "attrs": {
            "name": "cross"
          },
          "class": cascader_bem('close-icon'),
          "on": {
            "click": this.onClose
          }
        }) : null]);
      }
    },
    renderOptions: function renderOptions(options, selectedOption, tabIndex) {
      var _this4 = this;

      var h = this.$createElement;

      var renderOption = function renderOption(option) {
        var isSelected = selectedOption && option[_this4.valueKey] === selectedOption[_this4.valueKey];
        var Text = _this4.slots('option', {
          option: option,
          selected: isSelected
        }) || h("span", [option[_this4.textKey]]);
        return h("li", {
          "class": cascader_bem('option', {
            selected: isSelected
          }),
          "style": {
            color: isSelected ? _this4.activeColor : null
          },
          "on": {
            "click": function click() {
              _this4.onSelect(option, tabIndex);
            }
          }
        }, [Text, isSelected ? h(es_icon, {
          "attrs": {
            "name": "success"
          },
          "class": cascader_bem('selected-icon')
        }) : null]);
      };

      return h("ul", {
        "class": cascader_bem('options')
      }, [options.map(renderOption)]);
    },
    renderTab: function renderTab(item, tabIndex) {
      var h = this.$createElement;
      var options = item.options,
          selectedOption = item.selectedOption;
      var title = selectedOption ? selectedOption[this.textKey] : this.placeholder || cascader_t('select');
      return h(tab, {
        "attrs": {
          "title": title,
          "titleClass": cascader_bem('tab', {
            unselected: !selectedOption
          })
        }
      }, [this.renderOptions(options, selectedOption, tabIndex)]);
    },
    renderTabs: function renderTabs() {
      var _this5 = this;

      var h = this.$createElement;
      return h(tabs, {
        "attrs": {
          "animated": true,
          "swipeable": true,
          "swipeThreshold": 0,
          "color": this.activeColor
        },
        "class": cascader_bem('tabs'),
        "model": {
          value: _this5.activeTab,
          callback: function callback($$v) {
            _this5.activeTab = $$v;
          }
        }
      }, [this.tabs.map(this.renderTab)]);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": cascader_bem()
    }, [this.renderHeader(), this.renderTabs()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/cell-group/index.js

// Utils


 // Types

var cell_group_createNamespace = Object(create["a" /* createNamespace */])('cell-group'),
    cell_group_createComponent = cell_group_createNamespace[0],
    cell_group_bem = cell_group_createNamespace[1];

function CellGroup(h, props, slots, ctx) {
  var _ref;

  var Group = h("div", helper_default()([{
    "class": [cell_group_bem({
      inset: props.inset
    }), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = props.border, _ref)]
  }, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()]);

  if (props.title || slots.title) {
    return h("div", {
      "key": ctx.data.key
    }, [h("div", {
      "class": cell_group_bem('title', {
        inset: props.inset
      })
    }, [slots.title ? slots.title() : props.title]), Group]);
  }

  return Group;
}

CellGroup.props = {
  title: String,
  inset: Boolean,
  border: {
    type: Boolean,
    default: true
  }
};
/* harmony default export */ var cell_group = (cell_group_createComponent(CellGroup));
// CONCATENATED MODULE: ./node_modules/vant/es/checkbox/index.js



var checkbox_createNamespace = Object(create["a" /* createNamespace */])('checkbox'),
    checkbox_createComponent = checkbox_createNamespace[0],
    checkbox_bem = checkbox_createNamespace[1];

/* harmony default export */ var es_checkbox = (checkbox_createComponent({
  mixins: [checkbox_CheckboxMixin({
    bem: checkbox_bem,
    role: 'checkbox',
    parent: 'vanCheckbox'
  })],
  computed: {
    checked: {
      get: function get() {
        if (this.parent) {
          return this.parent.value.indexOf(this.name) !== -1;
        }

        return this.value;
      },
      set: function set(val) {
        if (this.parent) {
          this.setParentValue(val);
        } else {
          this.$emit('input', val);
        }
      }
    }
  },
  watch: {
    value: function value(val) {
      this.$emit('change', val);
    }
  },
  methods: {
    // @exposed-api
    toggle: function toggle(checked) {
      var _this = this;

      if (checked === void 0) {
        checked = !this.checked;
      }

      // When toggle method is called multiple times at the same time,
      // only the last call is valid.
      // This is a hack for usage inside Cell.
      clearTimeout(this.toggleTask);
      this.toggleTask = setTimeout(function () {
        _this.checked = checked;
      });
    },
    setParentValue: function setParentValue(val) {
      var parent = this.parent;
      var value = parent.value.slice();

      if (val) {
        if (parent.max && value.length >= parent.max) {
          return;
        }
        /* istanbul ignore else */


        if (value.indexOf(this.name) === -1) {
          value.push(this.name);
          parent.$emit('input', value);
        }
      } else {
        var index = value.indexOf(this.name);
        /* istanbul ignore else */

        if (index !== -1) {
          value.splice(index, 1);
          parent.$emit('input', value);
        }
      }
    }
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/checkbox-group/index.js




var checkbox_group_createNamespace = Object(create["a" /* createNamespace */])('checkbox-group'),
    checkbox_group_createComponent = checkbox_group_createNamespace[0],
    checkbox_group_bem = checkbox_group_createNamespace[1];

/* harmony default export */ var checkbox_group = (checkbox_group_createComponent({
  mixins: [ParentMixin('vanCheckbox'), FieldMixin],
  props: {
    max: [Number, String],
    disabled: Boolean,
    direction: String,
    iconSize: [Number, String],
    checkedColor: String,
    value: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  watch: {
    value: function value(val) {
      this.$emit('change', val);
    }
  },
  methods: {
    // @exposed-api
    toggleAll: function toggleAll(options) {
      if (options === void 0) {
        options = {};
      }

      if (typeof options === 'boolean') {
        options = {
          checked: options
        };
      }

      var _options = options,
          checked = _options.checked,
          skipDisabled = _options.skipDisabled;
      var children = this.children.filter(function (item) {
        if (item.disabled && skipDisabled) {
          return item.checked;
        }

        return checked != null ? checked : !item.checked;
      });
      var names = children.map(function (item) {
        return item.name;
      });
      this.$emit('input', names);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": checkbox_group_bem([this.direction])
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/circle/index.js



var circle_createNamespace = Object(create["a" /* createNamespace */])('circle'),
    circle_createComponent = circle_createNamespace[0],
    circle_bem = circle_createNamespace[1];

var PERIMETER = 3140;
var circle_uid = 0;

function circle_format(rate) {
  return Math.min(Math.max(rate, 0), 100);
}

function getPath(clockwise, viewBoxSize) {
  var sweepFlag = clockwise ? 1 : 0;
  return "M " + viewBoxSize / 2 + " " + viewBoxSize / 2 + " m 0, -500 a 500, 500 0 1, " + sweepFlag + " 0, 1000 a 500, 500 0 1, " + sweepFlag + " 0, -1000";
}

/* harmony default export */ var circle = (circle_createComponent({
  props: {
    text: String,
    size: [Number, String],
    color: [String, Object],
    layerColor: String,
    strokeLinecap: String,
    value: {
      type: Number,
      default: 0
    },
    speed: {
      type: [Number, String],
      default: 0
    },
    fill: {
      type: String,
      default: 'none'
    },
    rate: {
      type: [Number, String],
      default: 100
    },
    strokeWidth: {
      type: [Number, String],
      default: 40
    },
    clockwise: {
      type: Boolean,
      default: true
    }
  },
  beforeCreate: function beforeCreate() {
    this.uid = "van-circle-gradient-" + circle_uid++;
  },
  computed: {
    style: function style() {
      var size = Object(unit["a" /* addUnit */])(this.size);
      return {
        width: size,
        height: size
      };
    },
    path: function path() {
      return getPath(this.clockwise, this.viewBoxSize);
    },
    viewBoxSize: function viewBoxSize() {
      return +this.strokeWidth + 1000;
    },
    layerStyle: function layerStyle() {
      return {
        fill: "" + this.fill,
        stroke: "" + this.layerColor,
        strokeWidth: this.strokeWidth + "px"
      };
    },
    hoverStyle: function hoverStyle() {
      var offset = PERIMETER * this.value / 100;
      return {
        stroke: "" + (this.gradient ? "url(#" + this.uid + ")" : this.color),
        strokeWidth: +this.strokeWidth + 1 + "px",
        strokeLinecap: this.strokeLinecap,
        strokeDasharray: offset + "px " + PERIMETER + "px"
      };
    },
    gradient: function gradient() {
      return Object(utils["f" /* isObject */])(this.color);
    },
    LinearGradient: function LinearGradient() {
      var _this = this;

      var h = this.$createElement;

      if (!this.gradient) {
        return;
      }

      var Stops = Object.keys(this.color).sort(function (a, b) {
        return parseFloat(a) - parseFloat(b);
      }).map(function (key, index) {
        return h("stop", {
          "key": index,
          "attrs": {
            "offset": key,
            "stop-color": _this.color[key]
          }
        });
      });
      return h("defs", [h("linearGradient", {
        "attrs": {
          "id": this.uid,
          "x1": "100%",
          "y1": "0%",
          "x2": "0%",
          "y2": "0%"
        }
      }, [Stops])]);
    }
  },
  watch: {
    rate: {
      handler: function handler(rate) {
        this.startTime = Date.now();
        this.startRate = this.value;
        this.endRate = circle_format(rate);
        this.increase = this.endRate > this.startRate;
        this.duration = Math.abs((this.startRate - this.endRate) * 1000 / this.speed);

        if (this.speed) {
          Object(raf["a" /* cancelRaf */])(this.rafId);
          this.rafId = Object(raf["c" /* raf */])(this.animate);
        } else {
          this.$emit('input', this.endRate);
        }
      },
      immediate: true
    }
  },
  methods: {
    animate: function animate() {
      var now = Date.now();
      var progress = Math.min((now - this.startTime) / this.duration, 1);
      var rate = progress * (this.endRate - this.startRate) + this.startRate;
      this.$emit('input', circle_format(parseFloat(rate.toFixed(1))));

      if (this.increase ? rate < this.endRate : rate > this.endRate) {
        this.rafId = Object(raf["c" /* raf */])(this.animate);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": circle_bem(),
      "style": this.style
    }, [h("svg", {
      "attrs": {
        "viewBox": "0 0 " + this.viewBoxSize + " " + this.viewBoxSize
      }
    }, [this.LinearGradient, h("path", {
      "class": circle_bem('layer'),
      "style": this.layerStyle,
      "attrs": {
        "d": this.path
      }
    }), h("path", {
      "attrs": {
        "d": this.path
      },
      "class": circle_bem('hover'),
      "style": this.hoverStyle
    })]), this.slots() || this.text && h("div", {
      "class": circle_bem('text')
    }, [this.text])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/col/index.js



var col_createNamespace = Object(create["a" /* createNamespace */])('col'),
    col_createComponent = col_createNamespace[0],
    col_bem = col_createNamespace[1];

/* harmony default export */ var col = (col_createComponent({
  mixins: [ChildrenMixin('vanRow')],
  props: {
    span: [Number, String],
    offset: [Number, String],
    tag: {
      type: String,
      default: 'div'
    }
  },
  computed: {
    style: function style() {
      var index = this.index;

      var _ref = this.parent || {},
          spaces = _ref.spaces;

      if (spaces && spaces[index]) {
        var _spaces$index = spaces[index],
            left = _spaces$index.left,
            right = _spaces$index.right;
        return {
          paddingLeft: left ? left + "px" : null,
          paddingRight: right ? right + "px" : null
        };
      }
    }
  },
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);
    }
  },
  render: function render() {
    var _bem;

    var h = arguments[0];
    var span = this.span,
        offset = this.offset;
    return h(this.tag, {
      "style": this.style,
      "class": col_bem((_bem = {}, _bem[span] = span, _bem["offset-" + offset] = offset, _bem)),
      "on": {
        "click": this.onClick
      }
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/collapse/index.js




var collapse_createNamespace = Object(create["a" /* createNamespace */])('collapse'),
    collapse_createComponent = collapse_createNamespace[0],
    collapse_bem = collapse_createNamespace[1];

/* harmony default export */ var collapse = (collapse_createComponent({
  mixins: [ParentMixin('vanCollapse')],
  props: {
    accordion: Boolean,
    value: [String, Number, Array],
    border: {
      type: Boolean,
      default: true
    }
  },
  methods: {
    switch: function _switch(name, expanded) {
      if (!this.accordion) {
        name = expanded ? this.value.concat(name) : this.value.filter(function (activeName) {
          return activeName !== name;
        });
      }

      this.$emit('change', name);
      this.$emit('input', name);
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    return h("div", {
      "class": [collapse_bem(), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = this.border, _ref)]
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/collapse-item/index.js

// Utils

 // Mixins

 // Components




var collapse_item_createNamespace = Object(create["a" /* createNamespace */])('collapse-item'),
    collapse_item_createComponent = collapse_item_createNamespace[0],
    collapse_item_bem = collapse_item_createNamespace[1];

var CELL_SLOTS = ['title', 'icon', 'right-icon'];
/* harmony default export */ var collapse_item = (collapse_item_createComponent({
  mixins: [ChildrenMixin('vanCollapse')],
  props: _extends({}, cellProps, {
    name: [Number, String],
    disabled: Boolean,
    lazyRender: {
      type: Boolean,
      default: true
    },
    isLink: {
      type: Boolean,
      default: true
    }
  }),
  data: function data() {
    return {
      show: null,
      inited: null
    };
  },
  computed: {
    currentName: function currentName() {
      var _this$name;

      return (_this$name = this.name) != null ? _this$name : this.index;
    },
    expanded: function expanded() {
      var _this = this;

      if (!this.parent) {
        return null;
      }

      var _this$parent = this.parent,
          value = _this$parent.value,
          accordion = _this$parent.accordion;

      if (false) {}

      return accordion ? value === this.currentName : value.some(function (name) {
        return name === _this.currentName;
      });
    }
  },
  created: function created() {
    this.show = this.expanded;
    this.inited = this.expanded;
  },
  watch: {
    expanded: function expanded(_expanded, prev) {
      var _this2 = this;

      if (prev === null) {
        return;
      }

      if (_expanded) {
        this.show = true;
        this.inited = true;
      } // Use raf: flick when opened in safari
      // Use nextTick: closing animation failed when set `user-select: none`


      var nextTick = _expanded ? this.$nextTick : raf["c" /* raf */];
      nextTick(function () {
        var _this2$$refs = _this2.$refs,
            content = _this2$$refs.content,
            wrapper = _this2$$refs.wrapper;

        if (!content || !wrapper) {
          return;
        }

        var offsetHeight = content.offsetHeight;

        if (offsetHeight) {
          var contentHeight = offsetHeight + "px";
          wrapper.style.height = _expanded ? 0 : contentHeight; // use double raf to ensure animation can start

          Object(raf["b" /* doubleRaf */])(function () {
            wrapper.style.height = _expanded ? contentHeight : 0;
          });
        } else {
          _this2.onTransitionEnd();
        }
      });
    }
  },
  methods: {
    onClick: function onClick() {
      if (!this.disabled) {
        this.toggle();
      }
    },
    // @exposed-api
    toggle: function toggle(expanded) {
      if (expanded === void 0) {
        expanded = !this.expanded;
      }

      var parent = this.parent,
          currentName = this.currentName;
      var close = parent.accordion && currentName === parent.value;
      var name = close ? '' : currentName;
      this.parent.switch(name, expanded);
    },
    onTransitionEnd: function onTransitionEnd() {
      if (!this.expanded) {
        this.show = false;
      } else {
        this.$refs.wrapper.style.height = '';
      }
    },
    genTitle: function genTitle() {
      var _this3 = this;

      var h = this.$createElement;
      var border = this.border,
          disabled = this.disabled,
          expanded = this.expanded;
      var titleSlots = CELL_SLOTS.reduce(function (slots, name) {
        if (_this3.slots(name)) {
          slots[name] = function () {
            return _this3.slots(name);
          };
        }

        return slots;
      }, {});

      if (this.slots('value')) {
        titleSlots.default = function () {
          return _this3.slots('value');
        };
      }

      return h(cell, {
        "attrs": {
          "role": "button",
          "tabindex": disabled ? -1 : 0,
          "aria-expanded": String(expanded)
        },
        "class": collapse_item_bem('title', {
          disabled: disabled,
          expanded: expanded,
          borderless: !border
        }),
        "on": {
          "click": this.onClick
        },
        "scopedSlots": titleSlots,
        "props": _extends({}, this.$props)
      });
    },
    genContent: function genContent() {
      var h = this.$createElement;

      if (this.inited || !this.lazyRender) {
        return h("div", {
          "directives": [{
            name: "show",
            value: this.show
          }],
          "ref": "wrapper",
          "class": collapse_item_bem('wrapper'),
          "on": {
            "transitionend": this.onTransitionEnd
          }
        }, [h("div", {
          "ref": "content",
          "class": collapse_item_bem('content')
        }, [this.slots()])]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": [collapse_item_bem({
        border: this.index && this.border
      })]
    }, [this.genTitle(), this.genContent()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/contact-card/index.js

// Utils

 // Components

 // Types

var contact_card_createNamespace = Object(create["a" /* createNamespace */])('contact-card'),
    contact_card_createComponent = contact_card_createNamespace[0],
    contact_card_bem = contact_card_createNamespace[1],
    contact_card_t = contact_card_createNamespace[2];

function ContactCard(h, props, slots, ctx) {
  var type = props.type,
      editable = props.editable;

  function onClick(event) {
    if (editable) {
      functional_emit(ctx, 'click', event);
    }
  }

  function Content() {
    if (type === 'add') {
      return props.addText || contact_card_t('addText');
    }

    return [h("div", [contact_card_t('name') + "\uFF1A" + props.name]), h("div", [contact_card_t('tel') + "\uFF1A" + props.tel])];
  }

  return h(cell, helper_default()([{
    "attrs": {
      "center": true,
      "border": false,
      "isLink": editable,
      "valueClass": contact_card_bem('value'),
      "icon": type === 'edit' ? 'contact' : 'add-square'
    },
    "class": contact_card_bem([type]),
    "on": {
      "click": onClick
    }
  }, inherit(ctx)]), [Content()]);
}

ContactCard.props = {
  tel: String,
  name: String,
  addText: String,
  editable: {
    type: Boolean,
    default: true
  },
  type: {
    type: String,
    default: 'add'
  }
};
/* harmony default export */ var contact_card = (contact_card_createComponent(ContactCard));
// CONCATENATED MODULE: ./node_modules/vant/es/contact-edit/index.js

// Utils

 // Components







var contact_edit_createNamespace = Object(create["a" /* createNamespace */])('contact-edit'),
    contact_edit_createComponent = contact_edit_createNamespace[0],
    contact_edit_bem = contact_edit_createNamespace[1],
    contact_edit_t = contact_edit_createNamespace[2];

var defaultContact = {
  tel: '',
  name: ''
};
/* harmony default export */ var contact_edit = (contact_edit_createComponent({
  props: {
    isEdit: Boolean,
    isSaving: Boolean,
    isDeleting: Boolean,
    showSetDefault: Boolean,
    setDefaultLabel: String,
    contactInfo: {
      type: Object,
      default: function _default() {
        return _extends({}, defaultContact);
      }
    },
    telValidator: {
      type: Function,
      default: isMobile
    }
  },
  data: function data() {
    return {
      data: _extends({}, defaultContact, this.contactInfo),
      errorInfo: {
        name: '',
        tel: ''
      }
    };
  },
  watch: {
    contactInfo: function contactInfo(val) {
      this.data = _extends({}, defaultContact, val);
    }
  },
  methods: {
    onFocus: function onFocus(key) {
      this.errorInfo[key] = '';
    },
    getErrorMessageByKey: function getErrorMessageByKey(key) {
      var value = this.data[key].trim();

      switch (key) {
        case 'name':
          return value ? '' : contact_edit_t('nameInvalid');

        case 'tel':
          return this.telValidator(value) ? '' : contact_edit_t('telInvalid');
      }
    },
    onSave: function onSave() {
      var _this = this;

      var isValid = ['name', 'tel'].every(function (item) {
        var msg = _this.getErrorMessageByKey(item);

        if (msg) {
          _this.errorInfo[item] = msg;
        }

        return !msg;
      });

      if (isValid && !this.isSaving) {
        this.$emit('save', this.data);
      }
    },
    onDelete: function onDelete() {
      var _this2 = this;

      dialog.confirm({
        title: contact_edit_t('confirmDelete')
      }).then(function () {
        _this2.$emit('delete', _this2.data);
      });
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];
    var data = this.data,
        errorInfo = this.errorInfo;

    var onFocus = function onFocus(name) {
      return function () {
        return _this3.onFocus(name);
      };
    };

    return h("div", {
      "class": contact_edit_bem()
    }, [h("div", {
      "class": contact_edit_bem('fields')
    }, [h(es_field, {
      "attrs": {
        "clearable": true,
        "maxlength": "30",
        "label": contact_edit_t('name'),
        "placeholder": contact_edit_t('nameEmpty'),
        "errorMessage": errorInfo.name
      },
      "on": {
        "focus": onFocus('name')
      },
      "model": {
        value: data.name,
        callback: function callback($$v) {
          _this3.$set(data, "name", $$v);
        }
      }
    }), h(es_field, {
      "attrs": {
        "clearable": true,
        "type": "tel",
        "label": contact_edit_t('tel'),
        "placeholder": contact_edit_t('telEmpty'),
        "errorMessage": errorInfo.tel
      },
      "on": {
        "focus": onFocus('tel')
      },
      "model": {
        value: data.tel,
        callback: function callback($$v) {
          _this3.$set(data, "tel", $$v);
        }
      }
    })]), this.showSetDefault && h(cell, {
      "attrs": {
        "title": this.setDefaultLabel,
        "border": false
      },
      "class": contact_edit_bem('switch-cell')
    }, [h(es_switch, {
      "attrs": {
        "size": 24
      },
      "slot": "right-icon",
      "on": {
        "change": function change(event) {
          _this3.$emit('change-default', event);
        }
      },
      "model": {
        value: data.isDefault,
        callback: function callback($$v) {
          _this3.$set(data, "isDefault", $$v);
        }
      }
    })]), h("div", {
      "class": contact_edit_bem('buttons')
    }, [h(es_button, {
      "attrs": {
        "block": true,
        "round": true,
        "type": "danger",
        "text": contact_edit_t('save'),
        "loading": this.isSaving
      },
      "on": {
        "click": this.onSave
      }
    }), this.isEdit && h(es_button, {
      "attrs": {
        "block": true,
        "round": true,
        "text": contact_edit_t('delete'),
        "loading": this.isDeleting
      },
      "on": {
        "click": this.onDelete
      }
    })])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/contact-list/index.js

// Utils


 // Components






 // Types

var contact_list_createNamespace = Object(create["a" /* createNamespace */])('contact-list'),
    contact_list_createComponent = contact_list_createNamespace[0],
    contact_list_bem = contact_list_createNamespace[1],
    contact_list_t = contact_list_createNamespace[2];

function ContactList(h, props, slots, ctx) {
  var List = props.list && props.list.map(function (item, index) {
    function onClick() {
      functional_emit(ctx, 'input', item.id);
      functional_emit(ctx, 'select', item, index);
    }

    function RightIcon() {
      return h(es_radio, {
        "attrs": {
          "name": item.id,
          "iconSize": 16,
          "checkedColor": RED
        },
        "on": {
          "click": onClick
        }
      });
    }

    function LeftIcon() {
      return h(es_icon, {
        "attrs": {
          "name": "edit"
        },
        "class": contact_list_bem('edit'),
        "on": {
          "click": function click(event) {
            event.stopPropagation();
            functional_emit(ctx, 'edit', item, index);
          }
        }
      });
    }

    function Content() {
      var nodes = [item.name + "\uFF0C" + item.tel];

      if (item.isDefault && props.defaultTagText) {
        nodes.push(h(es_tag, {
          "attrs": {
            "type": "danger",
            "round": true
          },
          "class": contact_list_bem('item-tag')
        }, [props.defaultTagText]));
      }

      return nodes;
    }

    return h(cell, {
      "key": item.id,
      "attrs": {
        "isLink": true,
        "center": true,
        "valueClass": contact_list_bem('item-value')
      },
      "class": contact_list_bem('item'),
      "scopedSlots": {
        icon: LeftIcon,
        default: Content,
        'right-icon': RightIcon
      },
      "on": {
        "click": onClick
      }
    });
  });
  return h("div", helper_default()([{
    "class": contact_list_bem()
  }, inherit(ctx)]), [h(radio_group, {
    "attrs": {
      "value": props.value
    },
    "class": contact_list_bem('group')
  }, [List]), h("div", {
    "class": contact_list_bem('bottom')
  }, [h(es_button, {
    "attrs": {
      "round": true,
      "block": true,
      "type": "danger",
      "text": props.addText || contact_list_t('addText')
    },
    "class": contact_list_bem('add'),
    "on": {
      "click": function click() {
        functional_emit(ctx, 'add');
      }
    }
  })])]);
}

ContactList.props = {
  value: null,
  list: Array,
  addText: String,
  defaultTagText: String
};
/* harmony default export */ var contact_list = (contact_list_createComponent(ContactList));
// EXTERNAL MODULE: ./node_modules/vant/es/utils/format/string.js
var string = __webpack_require__(37);

// CONCATENATED MODULE: ./node_modules/vant/es/count-down/utils.js

var SECOND = 1000;
var MINUTE = 60 * SECOND;
var HOUR = 60 * MINUTE;
var DAY = 24 * HOUR;
function parseTimeData(time) {
  var days = Math.floor(time / DAY);
  var hours = Math.floor(time % DAY / HOUR);
  var minutes = Math.floor(time % HOUR / MINUTE);
  var seconds = Math.floor(time % MINUTE / SECOND);
  var milliseconds = Math.floor(time % SECOND);
  return {
    days: days,
    hours: hours,
    minutes: minutes,
    seconds: seconds,
    milliseconds: milliseconds
  };
}
function parseFormat(format, timeData) {
  var days = timeData.days;
  var hours = timeData.hours,
      minutes = timeData.minutes,
      seconds = timeData.seconds,
      milliseconds = timeData.milliseconds;

  if (format.indexOf('DD') === -1) {
    hours += days * 24;
  } else {
    format = format.replace('DD', Object(string["b" /* padZero */])(days));
  }

  if (format.indexOf('HH') === -1) {
    minutes += hours * 60;
  } else {
    format = format.replace('HH', Object(string["b" /* padZero */])(hours));
  }

  if (format.indexOf('mm') === -1) {
    seconds += minutes * 60;
  } else {
    format = format.replace('mm', Object(string["b" /* padZero */])(minutes));
  }

  if (format.indexOf('ss') === -1) {
    milliseconds += seconds * 1000;
  } else {
    format = format.replace('ss', Object(string["b" /* padZero */])(seconds));
  }

  if (format.indexOf('S') !== -1) {
    var ms = Object(string["b" /* padZero */])(milliseconds, 3);

    if (format.indexOf('SSS') !== -1) {
      format = format.replace('SSS', ms);
    } else if (format.indexOf('SS') !== -1) {
      format = format.replace('SS', ms.slice(0, 2));
    } else {
      format = format.replace('S', ms.charAt(0));
    }
  }

  return format;
}
function isSameSecond(time1, time2) {
  return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
}
// CONCATENATED MODULE: ./node_modules/vant/es/count-down/index.js




var count_down_createNamespace = Object(create["a" /* createNamespace */])('count-down'),
    count_down_createComponent = count_down_createNamespace[0],
    count_down_bem = count_down_createNamespace[1];

/* harmony default export */ var count_down = (count_down_createComponent({
  props: {
    millisecond: Boolean,
    time: {
      type: [Number, String],
      default: 0
    },
    format: {
      type: String,
      default: 'HH:mm:ss'
    },
    autoStart: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      remain: 0
    };
  },
  computed: {
    timeData: function timeData() {
      return parseTimeData(this.remain);
    },
    formattedTime: function formattedTime() {
      return parseFormat(this.format, this.timeData);
    }
  },
  watch: {
    time: {
      immediate: true,
      handler: 'reset'
    }
  },
  activated: function activated() {
    if (this.keepAlivePaused) {
      this.counting = true;
      this.keepAlivePaused = false;
      this.tick();
    }
  },
  deactivated: function deactivated() {
    if (this.counting) {
      this.pause();
      this.keepAlivePaused = true;
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.pause();
  },
  methods: {
    // @exposed-api
    start: function start() {
      if (this.counting) {
        return;
      }

      this.counting = true;
      this.endTime = Date.now() + this.remain;
      this.tick();
    },
    // @exposed-api
    pause: function pause() {
      this.counting = false;
      Object(raf["a" /* cancelRaf */])(this.rafId);
    },
    // @exposed-api
    reset: function reset() {
      this.pause();
      this.remain = +this.time;

      if (this.autoStart) {
        this.start();
      }
    },
    tick: function tick() {
      // should not start counting in server
      // see: https://github.com/vant-ui/vant/issues/7807
      if (!utils["b" /* inBrowser */]) {
        return;
      }

      if (this.millisecond) {
        this.microTick();
      } else {
        this.macroTick();
      }
    },
    microTick: function microTick() {
      var _this = this;

      this.rafId = Object(raf["c" /* raf */])(function () {
        /* istanbul ignore if */
        // in case of call reset immediately after finish
        if (!_this.counting) {
          return;
        }

        _this.setRemain(_this.getRemain());

        if (_this.remain > 0) {
          _this.microTick();
        }
      });
    },
    macroTick: function macroTick() {
      var _this2 = this;

      this.rafId = Object(raf["c" /* raf */])(function () {
        /* istanbul ignore if */
        // in case of call reset immediately after finish
        if (!_this2.counting) {
          return;
        }

        var remain = _this2.getRemain();

        if (!isSameSecond(remain, _this2.remain) || remain === 0) {
          _this2.setRemain(remain);
        }

        if (_this2.remain > 0) {
          _this2.macroTick();
        }
      });
    },
    getRemain: function getRemain() {
      return Math.max(this.endTime - Date.now(), 0);
    },
    setRemain: function setRemain(remain) {
      this.remain = remain;
      this.$emit('change', this.timeData);

      if (remain === 0) {
        this.pause();
        this.$emit('finish');
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": count_down_bem()
    }, [this.slots('default', this.timeData) || this.formattedTime]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/coupon/index.js





var coupon_createNamespace = Object(create["a" /* createNamespace */])('coupon'),
    coupon_createComponent = coupon_createNamespace[0],
    coupon_bem = coupon_createNamespace[1],
    coupon_t = coupon_createNamespace[2];

function formatTimeStamp(timeStamp) {
  // compatible when the timestamp is seconds
  if (timeStamp < Math.pow(10, 12)) {
    return timeStamp * 1000;
  }

  return +timeStamp;
}

function getDate(timeStamp) {
  var date = new Date(formatTimeStamp(timeStamp));
  return date.getFullYear() + "." + Object(string["b" /* padZero */])(date.getMonth() + 1) + "." + Object(string["b" /* padZero */])(date.getDate());
}

function formatDiscount(discount) {
  return (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
}

function formatAmount(amount) {
  return (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
}

/* harmony default export */ var es_coupon = (coupon_createComponent({
  props: {
    coupon: Object,
    chosen: Boolean,
    disabled: Boolean,
    currency: {
      type: String,
      default: '¥'
    }
  },
  computed: {
    validPeriod: function validPeriod() {
      var _this$coupon = this.coupon,
          startAt = _this$coupon.startAt,
          endAt = _this$coupon.endAt,
          customValidPeriod = _this$coupon.customValidPeriod;
      return customValidPeriod || getDate(startAt) + " - " + getDate(endAt);
    },
    faceAmount: function faceAmount() {
      var coupon = this.coupon;

      if (coupon.valueDesc) {
        return coupon.valueDesc + "<span>" + (coupon.unitDesc || '') + "</span>";
      }

      if (coupon.denominations) {
        var denominations = formatAmount(coupon.denominations);
        return "<span>" + this.currency + "</span> " + denominations;
      }

      if (coupon.discount) {
        return coupon_t('discount', formatDiscount(coupon.discount));
      }

      return '';
    },
    conditionMessage: function conditionMessage() {
      var condition = formatAmount(this.coupon.originCondition);
      return condition === '0' ? coupon_t('unlimited') : coupon_t('condition', condition);
    }
  },
  render: function render() {
    var h = arguments[0];
    var coupon = this.coupon,
        disabled = this.disabled;
    var description = disabled && coupon.reason || coupon.description;
    return h("div", {
      "class": coupon_bem({
        disabled: disabled
      })
    }, [h("div", {
      "class": coupon_bem('content')
    }, [h("div", {
      "class": coupon_bem('head')
    }, [h("h2", {
      "class": coupon_bem('amount'),
      "domProps": {
        "innerHTML": this.faceAmount
      }
    }), h("p", {
      "class": coupon_bem('condition')
    }, [this.coupon.condition || this.conditionMessage])]), h("div", {
      "class": coupon_bem('body')
    }, [h("p", {
      "class": coupon_bem('name')
    }, [coupon.name]), h("p", {
      "class": coupon_bem('valid')
    }, [this.validPeriod]), !this.disabled && h(es_checkbox, {
      "attrs": {
        "size": 18,
        "value": this.chosen,
        "checkedColor": RED
      },
      "class": coupon_bem('corner')
    })])]), description && h("p", {
      "class": coupon_bem('description')
    }, [description])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/coupon-cell/index.js

// Utils

 // Components

 // Types

var coupon_cell_createNamespace = Object(create["a" /* createNamespace */])('coupon-cell'),
    coupon_cell_createComponent = coupon_cell_createNamespace[0],
    coupon_cell_bem = coupon_cell_createNamespace[1],
    coupon_cell_t = coupon_cell_createNamespace[2];

function coupon_cell_formatValue(props) {
  var coupons = props.coupons,
      chosenCoupon = props.chosenCoupon,
      currency = props.currency;
  var coupon = coupons[+chosenCoupon];

  if (coupon) {
    var value = 0;

    if (Object(utils["c" /* isDef */])(coupon.value)) {
      value = coupon.value;
    } else if (Object(utils["c" /* isDef */])(coupon.denominations)) {
      value = coupon.denominations;
    }

    return "-" + currency + " " + (value / 100).toFixed(2);
  }

  return coupons.length === 0 ? coupon_cell_t('tips') : coupon_cell_t('count', coupons.length);
}

function CouponCell(h, props, slots, ctx) {
  var selected = props.coupons[+props.chosenCoupon];
  var value = coupon_cell_formatValue(props);
  return h(cell, helper_default()([{
    "class": coupon_cell_bem(),
    "attrs": {
      "value": value,
      "title": props.title || coupon_cell_t('title'),
      "border": props.border,
      "isLink": props.editable,
      "valueClass": coupon_cell_bem('value', {
        selected: selected
      })
    }
  }, inherit(ctx, true)]));
}

CouponCell.model = {
  prop: 'chosenCoupon'
};
CouponCell.props = {
  title: String,
  coupons: {
    type: Array,
    default: function _default() {
      return [];
    }
  },
  currency: {
    type: String,
    default: '¥'
  },
  border: {
    type: Boolean,
    default: true
  },
  editable: {
    type: Boolean,
    default: true
  },
  chosenCoupon: {
    type: [Number, String],
    default: -1
  }
};
/* harmony default export */ var coupon_cell = (coupon_cell_createComponent(CouponCell));
// CONCATENATED MODULE: ./node_modules/vant/es/coupon-list/index.js
// Utils
 // Components







var coupon_list_createNamespace = Object(create["a" /* createNamespace */])('coupon-list'),
    coupon_list_createComponent = coupon_list_createNamespace[0],
    coupon_list_bem = coupon_list_createNamespace[1],
    coupon_list_t = coupon_list_createNamespace[2];

var EMPTY_IMAGE = 'https://img01.yzcdn.cn/vant/coupon-empty.png';
/* harmony default export */ var coupon_list = (coupon_list_createComponent({
  model: {
    prop: 'code'
  },
  props: {
    code: String,
    closeButtonText: String,
    inputPlaceholder: String,
    enabledTitle: String,
    disabledTitle: String,
    exchangeButtonText: String,
    exchangeButtonLoading: Boolean,
    exchangeButtonDisabled: Boolean,
    exchangeMinLength: {
      type: Number,
      default: 1
    },
    chosenCoupon: {
      type: Number,
      default: -1
    },
    coupons: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    disabledCoupons: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    displayedCouponIndex: {
      type: Number,
      default: -1
    },
    showExchangeBar: {
      type: Boolean,
      default: true
    },
    showCloseButton: {
      type: Boolean,
      default: true
    },
    showCount: {
      type: Boolean,
      default: true
    },
    currency: {
      type: String,
      default: '¥'
    },
    emptyImage: {
      type: String,
      default: EMPTY_IMAGE
    }
  },
  data: function data() {
    return {
      tab: 0,
      winHeight: window.innerHeight,
      currentCode: this.code || ''
    };
  },
  computed: {
    buttonDisabled: function buttonDisabled() {
      return !this.exchangeButtonLoading && (this.exchangeButtonDisabled || !this.currentCode || this.currentCode.length < this.exchangeMinLength);
    },
    listStyle: function listStyle() {
      return {
        height: this.winHeight - (this.showExchangeBar ? 140 : 94) + 'px'
      };
    }
  },
  watch: {
    code: function code(_code) {
      this.currentCode = _code;
    },
    currentCode: function currentCode(code) {
      this.$emit('input', code);
    },
    displayedCouponIndex: 'scrollToShowCoupon'
  },
  mounted: function mounted() {
    this.scrollToShowCoupon(this.displayedCouponIndex);
  },
  methods: {
    onClickExchangeButton: function onClickExchangeButton() {
      this.$emit('exchange', this.currentCode); // auto clear currentCode when not use vModel

      if (!this.code) {
        this.currentCode = '';
      }
    },
    // scroll to show specific coupon
    scrollToShowCoupon: function scrollToShowCoupon(index) {
      var _this = this;

      if (index === -1) {
        return;
      }

      this.$nextTick(function () {
        var _this$$refs = _this.$refs,
            card = _this$$refs.card,
            list = _this$$refs.list;
        /* istanbul ignore next */

        if (list && card && card[index]) {
          list.scrollTop = card[index].$el.offsetTop - 100;
        }
      });
    },
    genEmpty: function genEmpty() {
      var h = this.$createElement;
      return h("div", {
        "class": coupon_list_bem('empty')
      }, [h("img", {
        "attrs": {
          "src": this.emptyImage
        }
      }), h("p", [coupon_list_t('empty')])]);
    },
    genExchangeButton: function genExchangeButton() {
      var h = this.$createElement;
      return h(es_button, {
        "attrs": {
          "plain": true,
          "type": "danger",
          "text": this.exchangeButtonText || coupon_list_t('exchange'),
          "loading": this.exchangeButtonLoading,
          "disabled": this.buttonDisabled
        },
        "class": coupon_list_bem('exchange'),
        "on": {
          "click": this.onClickExchangeButton
        }
      });
    }
  },
  render: function render() {
    var _this2 = this;

    var h = arguments[0];
    var coupons = this.coupons,
        disabledCoupons = this.disabledCoupons;
    var count = this.showCount ? " (" + coupons.length + ")" : '';
    var title = (this.enabledTitle || coupon_list_t('enable')) + count;
    var disabledCount = this.showCount ? " (" + disabledCoupons.length + ")" : '';
    var disabledTitle = (this.disabledTitle || coupon_list_t('disabled')) + disabledCount;
    var ExchangeBar = this.showExchangeBar && h("div", {
      "class": coupon_list_bem('exchange-bar')
    }, [h(es_field, {
      "attrs": {
        "clearable": true,
        "border": false,
        "placeholder": this.inputPlaceholder || coupon_list_t('placeholder'),
        "maxlength": "20"
      },
      "class": coupon_list_bem('field'),
      "model": {
        value: _this2.currentCode,
        callback: function callback($$v) {
          _this2.currentCode = $$v;
        }
      }
    }), this.genExchangeButton()]);

    var onChange = function onChange(index) {
      return function () {
        return _this2.$emit('change', index);
      };
    };

    var CouponTab = h(tab, {
      "attrs": {
        "title": title
      }
    }, [h("div", {
      "class": coupon_list_bem('list', {
        'with-bottom': this.showCloseButton
      }),
      "style": this.listStyle
    }, [coupons.map(function (coupon, index) {
      return h(es_coupon, {
        "ref": "card",
        "key": coupon.id,
        "attrs": {
          "coupon": coupon,
          "currency": _this2.currency,
          "chosen": index === _this2.chosenCoupon
        },
        "nativeOn": {
          "click": onChange(index)
        }
      });
    }), !coupons.length && this.genEmpty(), this.slots('list-footer')])]);
    var DisabledCouponTab = h(tab, {
      "attrs": {
        "title": disabledTitle
      }
    }, [h("div", {
      "class": coupon_list_bem('list', {
        'with-bottom': this.showCloseButton
      }),
      "style": this.listStyle
    }, [disabledCoupons.map(function (coupon) {
      return h(es_coupon, {
        "attrs": {
          "disabled": true,
          "coupon": coupon,
          "currency": _this2.currency
        },
        "key": coupon.id
      });
    }), !disabledCoupons.length && this.genEmpty(), this.slots('disabled-list-footer')])]);
    return h("div", {
      "class": coupon_list_bem()
    }, [ExchangeBar, h(tabs, {
      "class": coupon_list_bem('tab'),
      "attrs": {
        "border": false
      },
      "model": {
        value: _this2.tab,
        callback: function callback($$v) {
          _this2.tab = $$v;
        }
      }
    }, [CouponTab, DisabledCouponTab]), h("div", {
      "class": coupon_list_bem('bottom')
    }, [h(es_button, {
      "directives": [{
        name: "show",
        value: this.showCloseButton
      }],
      "attrs": {
        "round": true,
        "type": "danger",
        "block": true,
        "text": this.closeButtonText || coupon_list_t('close')
      },
      "class": coupon_list_bem('close'),
      "on": {
        "click": onChange(-1)
      }
    })])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/datetime-picker/shared.js





var sharedProps = _extends({}, pickerProps, {
  value: null,
  filter: Function,
  columnsOrder: Array,
  showToolbar: {
    type: Boolean,
    default: true
  },
  formatter: {
    type: Function,
    default: function _default(type, value) {
      return value;
    }
  }
});
var TimePickerMixin = {
  data: function data() {
    return {
      innerValue: this.formatValue(this.value)
    };
  },
  computed: {
    originColumns: function originColumns() {
      var _this = this;

      return this.ranges.map(function (_ref) {
        var type = _ref.type,
            rangeArr = _ref.range;
        var values = times(rangeArr[1] - rangeArr[0] + 1, function (index) {
          var value = Object(string["b" /* padZero */])(rangeArr[0] + index);
          return value;
        });

        if (_this.filter) {
          values = _this.filter(type, values);
        }

        return {
          type: type,
          values: values
        };
      });
    },
    columns: function columns() {
      var _this2 = this;

      return this.originColumns.map(function (column) {
        return {
          values: column.values.map(function (value) {
            return _this2.formatter(column.type, value);
          })
        };
      });
    }
  },
  watch: {
    columns: 'updateColumnValue',
    innerValue: function innerValue(val, oldVal) {
      if (!oldVal) {
        this.$emit('input', null);
      } else {
        this.$emit('input', val);
      }
    }
  },
  mounted: function mounted() {
    var _this3 = this;

    this.updateColumnValue();
    this.$nextTick(function () {
      _this3.updateInnerValue();
    });
  },
  methods: {
    getPicker: function getPicker() {
      return this.$refs.picker;
    },
    // https://github.com/vant-ui/vant/issues/10013
    getProxiedPicker: function getProxiedPicker() {
      var _this4 = this;

      var picker = this.$refs.picker;

      if (picker) {
        var proxy = function proxy(fn) {
          return function () {
            picker[fn].apply(picker, arguments);

            _this4.updateInnerValue();
          };
        };

        return _extends({}, picker, {
          setValues: proxy('setValues'),
          setIndexes: proxy('setIndexes'),
          setColumnIndex: proxy('setColumnIndex'),
          setColumnValue: proxy('setColumnValue')
        });
      }
    },
    onConfirm: function onConfirm() {
      this.$emit('input', this.innerValue);
      this.$emit('confirm', this.innerValue);
    },
    onCancel: function onCancel() {
      this.$emit('cancel');
    }
  },
  render: function render() {
    var _this5 = this;

    var h = arguments[0];
    var props = {};
    Object.keys(pickerProps).forEach(function (key) {
      props[key] = _this5[key];
    });
    return h(es_picker, {
      "ref": "picker",
      "attrs": {
        "columns": this.columns,
        "readonly": this.readonly
      },
      "scopedSlots": this.$scopedSlots,
      "on": {
        "change": this.onChange,
        "confirm": this.onConfirm,
        "cancel": this.onCancel
      },
      "props": _extends({}, props)
    });
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/datetime-picker/TimePicker.js






var TimePicker_createNamespace = Object(create["a" /* createNamespace */])('time-picker'),
    TimePicker_createComponent = TimePicker_createNamespace[0];

/* harmony default export */ var TimePicker = (TimePicker_createComponent({
  mixins: [TimePickerMixin],
  props: _extends({}, sharedProps, {
    minHour: {
      type: [Number, String],
      default: 0
    },
    maxHour: {
      type: [Number, String],
      default: 23
    },
    minMinute: {
      type: [Number, String],
      default: 0
    },
    maxMinute: {
      type: [Number, String],
      default: 59
    }
  }),
  computed: {
    ranges: function ranges() {
      return [{
        type: 'hour',
        range: [+this.minHour, +this.maxHour]
      }, {
        type: 'minute',
        range: [+this.minMinute, +this.maxMinute]
      }];
    }
  },
  watch: {
    filter: 'updateInnerValue',
    minHour: function minHour() {
      var _this = this;

      this.$nextTick(function () {
        _this.updateInnerValue();
      });
    },
    maxHour: function maxHour(value) {
      var _this$innerValue$spli = this.innerValue.split(':'),
          hour = _this$innerValue$spli[0],
          minute = _this$innerValue$spli[1];

      if (hour >= value) {
        this.innerValue = this.formatValue(value + ":" + minute);
        this.updateColumnValue();
      } else {
        this.updateInnerValue();
      }
    },
    minMinute: 'updateInnerValue',
    maxMinute: function maxMinute(value) {
      var _this$innerValue$spli2 = this.innerValue.split(':'),
          hour = _this$innerValue$spli2[0],
          minute = _this$innerValue$spli2[1];

      if (minute >= value) {
        this.innerValue = this.formatValue(hour + ":" + value);
        this.updateColumnValue();
      } else {
        this.updateInnerValue();
      }
    },
    value: function value(val) {
      val = this.formatValue(val);

      if (val !== this.innerValue) {
        this.innerValue = val;
        this.updateColumnValue();
      }
    }
  },
  methods: {
    formatValue: function formatValue(value) {
      if (!value) {
        value = Object(string["b" /* padZero */])(this.minHour) + ":" + Object(string["b" /* padZero */])(this.minMinute);
      }

      var _value$split = value.split(':'),
          hour = _value$split[0],
          minute = _value$split[1];

      hour = Object(string["b" /* padZero */])(range(hour, this.minHour, this.maxHour));
      minute = Object(string["b" /* padZero */])(range(minute, this.minMinute, this.maxMinute));
      return hour + ":" + minute;
    },
    updateInnerValue: function updateInnerValue() {
      var _this$getPicker$getIn = this.getPicker().getIndexes(),
          hourIndex = _this$getPicker$getIn[0],
          minuteIndex = _this$getPicker$getIn[1];

      var _this$originColumns = this.originColumns,
          hourColumn = _this$originColumns[0],
          minuteColumn = _this$originColumns[1];
      var hour = hourColumn.values[hourIndex] || hourColumn.values[0];
      var minute = minuteColumn.values[minuteIndex] || minuteColumn.values[0];
      this.innerValue = this.formatValue(hour + ":" + minute);
      this.updateColumnValue();
    },
    onChange: function onChange(picker) {
      var _this2 = this;

      this.updateInnerValue();
      this.$nextTick(function () {
        _this2.$nextTick(function () {
          // https://github.com/vant-ui/vant/issues/9775
          _this2.updateInnerValue();

          _this2.$emit('change', picker);
        });
      });
    },
    updateColumnValue: function updateColumnValue() {
      var _this3 = this;

      var formatter = this.formatter;
      var pair = this.innerValue.split(':');
      var values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
      this.$nextTick(function () {
        _this3.getPicker().setValues(values);
      });
    }
  }
}));
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
function _isNativeReflectConstruct() {
  try {
    var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  } catch (t) {}
  return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
    return !!t;
  })();
}

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
function _setPrototypeOf(t, e) {
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
    return t.__proto__ = e, t;
  }, _setPrototypeOf(t, e);
}

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/construct.js


function _construct(t, e, r) {
  if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  var o = [null];
  o.push.apply(o, e);
  var p = new (t.bind.apply(t, o))();
  return r && _setPrototypeOf(p, r.prototype), p;
}

// CONCATENATED MODULE: ./node_modules/vant/es/datetime-picker/DatePicker.js







var currentYear = new Date().getFullYear();

var DatePicker_createNamespace = Object(create["a" /* createNamespace */])('date-picker'),
    DatePicker_createComponent = DatePicker_createNamespace[0];

/* harmony default export */ var DatePicker = (DatePicker_createComponent({
  mixins: [TimePickerMixin],
  props: _extends({}, sharedProps, {
    type: {
      type: String,
      default: 'datetime'
    },
    minDate: {
      type: Date,
      default: function _default() {
        return new Date(currentYear - 10, 0, 1);
      },
      validator: isDate
    },
    maxDate: {
      type: Date,
      default: function _default() {
        return new Date(currentYear + 10, 11, 31);
      },
      validator: isDate
    }
  }),
  watch: {
    filter: 'updateInnerValue',
    minDate: function minDate() {
      var _this = this;

      this.$nextTick(function () {
        _this.updateInnerValue();
      });
    },
    maxDate: function maxDate(value) {
      if (this.innerValue.valueOf() >= value.valueOf()) {
        this.innerValue = value;
      } else {
        this.updateInnerValue();
      }
    },
    value: function value(val) {
      val = this.formatValue(val);

      if (val && val.valueOf() !== this.innerValue.valueOf()) {
        this.innerValue = val;
      }
    }
  },
  computed: {
    ranges: function ranges() {
      var _this$getBoundary = this.getBoundary('max', this.innerValue ? this.innerValue : this.minDate),
          maxYear = _this$getBoundary.maxYear,
          maxDate = _this$getBoundary.maxDate,
          maxMonth = _this$getBoundary.maxMonth,
          maxHour = _this$getBoundary.maxHour,
          maxMinute = _this$getBoundary.maxMinute;

      var _this$getBoundary2 = this.getBoundary('min', this.innerValue ? this.innerValue : this.minDate),
          minYear = _this$getBoundary2.minYear,
          minDate = _this$getBoundary2.minDate,
          minMonth = _this$getBoundary2.minMonth,
          minHour = _this$getBoundary2.minHour,
          minMinute = _this$getBoundary2.minMinute;

      var result = [{
        type: 'year',
        range: [minYear, maxYear]
      }, {
        type: 'month',
        range: [minMonth, maxMonth]
      }, {
        type: 'day',
        range: [minDate, maxDate]
      }, {
        type: 'hour',
        range: [minHour, maxHour]
      }, {
        type: 'minute',
        range: [minMinute, maxMinute]
      }];

      switch (this.type) {
        case 'date':
          result = result.slice(0, 3);
          break;

        case 'year-month':
          result = result.slice(0, 2);
          break;

        case 'month-day':
          result = result.slice(1, 3);
          break;

        case 'datehour':
          result = result.slice(0, 4);
          break;
      }

      if (this.columnsOrder) {
        var columnsOrder = this.columnsOrder.concat(result.map(function (column) {
          return column.type;
        }));
        result.sort(function (a, b) {
          return columnsOrder.indexOf(a.type) - columnsOrder.indexOf(b.type);
        });
      }

      return result;
    }
  },
  methods: {
    formatValue: function formatValue(value) {
      var _this2 = this;

      if (!isDate(value)) {
        return null;
      }

      var minDate = new Date(this.minDate);
      var maxDate = new Date(this.maxDate);
      var dateMethods = {
        year: 'getFullYear',
        month: 'getMonth',
        day: 'getDate',
        hour: 'getHours',
        minute: 'getMinutes'
      };

      if (this.originColumns) {
        var dateColumns = this.originColumns.map(function (_ref, index) {
          var type = _ref.type,
              values = _ref.values;
          var range = _this2.ranges[index].range;
          var minDateVal = minDate[dateMethods[type]]();
          var maxDateVal = maxDate[dateMethods[type]]();
          var min = type === 'month' ? +values[0] - 1 : +values[0];
          var max = type === 'month' ? +values[values.length - 1] - 1 : +values[values.length - 1];
          return {
            type: type,
            values: [minDateVal < range[0] ? Math.max(minDateVal, min) : min || minDateVal, maxDateVal > range[1] ? Math.min(maxDateVal, max) : max || maxDateVal]
          };
        });

        if (this.type === 'month-day') {
          var year = (this.innerValue || this.minDate).getFullYear();
          dateColumns.unshift({
            type: 'year',
            values: [year, year]
          });
        }

        var dates = Object.keys(dateMethods).map(function (type) {
          var _dateColumns$filter$;

          return (_dateColumns$filter$ = dateColumns.filter(function (item) {
            return item.type === type;
          })[0]) == null ? void 0 : _dateColumns$filter$.values;
        }).filter(function (item) {
          return item;
        });
        minDate = _construct(Date, dates.map(function (val) {
          return getTrueValue(val[0]);
        }));
        maxDate = _construct(Date, dates.map(function (val) {
          return getTrueValue(val[1]);
        }));
      }

      value = Math.max(value, minDate.getTime());
      value = Math.min(value, maxDate.getTime());
      return new Date(value);
    },
    getBoundary: function getBoundary(type, value) {
      var _ref2;

      var boundary = this[type + "Date"];
      var year = boundary.getFullYear();
      var month = 1;
      var date = 1;
      var hour = 0;
      var minute = 0;

      if (type === 'max') {
        month = 12;
        date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
        hour = 23;
        minute = 59;
      }

      if (value.getFullYear() === year) {
        month = boundary.getMonth() + 1;

        if (value.getMonth() + 1 === month) {
          date = boundary.getDate();

          if (value.getDate() === date) {
            hour = boundary.getHours();

            if (value.getHours() === hour) {
              minute = boundary.getMinutes();
            }
          }
        }
      }

      return _ref2 = {}, _ref2[type + "Year"] = year, _ref2[type + "Month"] = month, _ref2[type + "Date"] = date, _ref2[type + "Hour"] = hour, _ref2[type + "Minute"] = minute, _ref2;
    },
    updateInnerValue: function updateInnerValue() {
      var _this3 = this;

      var type = this.type;
      var indexes = this.getPicker().getIndexes();

      var getValue = function getValue(type) {
        var index = 0;

        _this3.originColumns.forEach(function (column, columnIndex) {
          if (type === column.type) {
            index = columnIndex;
          }
        });

        var values = _this3.originColumns[index].values;
        return getTrueValue(values[indexes[index]]);
      };

      var year;
      var month;
      var day;

      if (type === 'month-day') {
        year = (this.innerValue || this.minDate).getFullYear();
        month = getValue('month');
        day = getValue('day');
      } else {
        year = getValue('year');
        month = getValue('month');
        day = type === 'year-month' ? 1 : getValue('day');
      }

      var maxDay = getMonthEndDay(year, month);
      day = day > maxDay ? maxDay : day;
      var hour = 0;
      var minute = 0;

      if (type === 'datehour') {
        hour = getValue('hour');
      }

      if (type === 'datetime') {
        hour = getValue('hour');
        minute = getValue('minute');
      }

      var value = new Date(year, month - 1, day, hour, minute);
      this.innerValue = this.formatValue(value);
    },
    onChange: function onChange(picker) {
      var _this4 = this;

      this.updateInnerValue();
      this.$nextTick(function () {
        _this4.$nextTick(function () {
          // https://github.com/vant-ui/vant/issues/9775
          _this4.updateInnerValue();

          _this4.$emit('change', picker);
        });
      });
    },
    updateColumnValue: function updateColumnValue() {
      var _this5 = this;

      var value = this.innerValue ? this.innerValue : this.minDate;
      var formatter = this.formatter;
      var values = this.originColumns.map(function (column) {
        switch (column.type) {
          case 'year':
            return formatter('year', "" + value.getFullYear());

          case 'month':
            return formatter('month', Object(string["b" /* padZero */])(value.getMonth() + 1));

          case 'day':
            return formatter('day', Object(string["b" /* padZero */])(value.getDate()));

          case 'hour':
            return formatter('hour', Object(string["b" /* padZero */])(value.getHours()));

          case 'minute':
            return formatter('minute', Object(string["b" /* padZero */])(value.getMinutes()));

          default:
            // no default
            return null;
        }
      });
      this.$nextTick(function () {
        _this5.getPicker().setValues(values);
      });
    }
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/datetime-picker/index.js





var datetime_picker_createNamespace = Object(create["a" /* createNamespace */])('datetime-picker'),
    datetime_picker_createComponent = datetime_picker_createNamespace[0],
    datetime_picker_bem = datetime_picker_createNamespace[1];

/* harmony default export */ var datetime_picker = (datetime_picker_createComponent({
  props: _extends({}, TimePicker.props, DatePicker.props),
  methods: {
    // @exposed-api
    getPicker: function getPicker() {
      return this.$refs.root.getProxiedPicker();
    }
  },
  render: function render() {
    var h = arguments[0];
    var Component = this.type === 'time' ? TimePicker : DatePicker;
    return h(Component, {
      "ref": "root",
      "class": datetime_picker_bem(),
      "scopedSlots": this.$scopedSlots,
      "props": _extends({}, this.$props),
      "on": _extends({}, this.$listeners)
    });
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/divider/index.js

// Utils

 // Types

var divider_createNamespace = Object(create["a" /* createNamespace */])('divider'),
    divider_createComponent = divider_createNamespace[0],
    divider_bem = divider_createNamespace[1];

function Divider(h, props, slots, ctx) {
  var _bem;

  return h("div", helper_default()([{
    "attrs": {
      "role": "separator"
    },
    "style": {
      borderColor: props.borderColor
    },
    "class": divider_bem((_bem = {
      dashed: props.dashed,
      hairline: props.hairline
    }, _bem["content-" + props.contentPosition] = slots.default, _bem))
  }, inherit(ctx, true)]), [slots.default && slots.default()]);
}

Divider.props = {
  dashed: Boolean,
  hairline: {
    type: Boolean,
    default: true
  },
  contentPosition: {
    type: String,
    default: 'center'
  }
};
/* harmony default export */ var divider = (divider_createComponent(Divider));
// CONCATENATED MODULE: ./node_modules/vant/es/dropdown-item/index.js
// Utils

 // Mixins


 // Components





var dropdown_item_createNamespace = Object(create["a" /* createNamespace */])('dropdown-item'),
    dropdown_item_createComponent = dropdown_item_createNamespace[0],
    dropdown_item_bem = dropdown_item_createNamespace[1];

/* harmony default export */ var dropdown_item = (dropdown_item_createComponent({
  mixins: [PortalMixin({
    ref: 'wrapper'
  }), ChildrenMixin('vanDropdownMenu')],
  props: {
    value: null,
    title: String,
    disabled: Boolean,
    titleClass: String,
    options: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    lazyRender: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      transition: true,
      showPopup: false,
      showWrapper: false
    };
  },
  computed: {
    displayTitle: function displayTitle() {
      var _this = this;

      if (this.title) {
        return this.title;
      }

      var match = this.options.filter(function (option) {
        return option.value === _this.value;
      });
      return match.length ? match[0].text : '';
    }
  },
  watch: {
    showPopup: function showPopup(val) {
      this.bindScroll(val);
    }
  },
  beforeCreate: function beforeCreate() {
    var _this2 = this;

    var createEmitter = function createEmitter(eventName) {
      return function () {
        return _this2.$emit(eventName);
      };
    };

    this.onOpen = createEmitter('open');
    this.onClose = createEmitter('close');
    this.onOpened = createEmitter('opened');
  },
  methods: {
    // @exposed-api
    toggle: function toggle(show, options) {
      if (show === void 0) {
        show = !this.showPopup;
      }

      if (options === void 0) {
        options = {};
      }

      if (show === this.showPopup) {
        return;
      }

      this.transition = !options.immediate;
      this.showPopup = show;

      if (show) {
        this.parent.updateOffset();
        this.showWrapper = true;
      }
    },
    bindScroll: function bindScroll(bind) {
      var scroller = this.parent.scroller;
      var action = bind ? event_on : off;
      action(scroller, 'scroll', this.onScroll, true);
    },
    onScroll: function onScroll() {
      this.parent.updateOffset();
    },
    onClickWrapper: function onClickWrapper(event) {
      // prevent being identified as clicking outside and closed when use get-contaienr
      if (this.getContainer) {
        event.stopPropagation();
      }
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];
    var _this$parent = this.parent,
        zIndex = _this$parent.zIndex,
        offset = _this$parent.offset,
        overlay = _this$parent.overlay,
        duration = _this$parent.duration,
        direction = _this$parent.direction,
        activeColor = _this$parent.activeColor,
        closeOnClickOverlay = _this$parent.closeOnClickOverlay;
    var Options = this.options.map(function (option) {
      var active = option.value === _this3.value;
      return h(cell, {
        "attrs": {
          "clickable": true,
          "icon": option.icon,
          "title": option.text
        },
        "key": option.value,
        "class": dropdown_item_bem('option', {
          active: active
        }),
        "style": {
          color: active ? activeColor : ''
        },
        "on": {
          "click": function click() {
            _this3.showPopup = false;

            if (option.value !== _this3.value) {
              _this3.$emit('input', option.value);

              _this3.$emit('change', option.value);
            }
          }
        }
      }, [active && h(es_icon, {
        "class": dropdown_item_bem('icon'),
        "attrs": {
          "color": activeColor,
          "name": "success"
        }
      })]);
    });
    var style = {
      zIndex: zIndex
    };

    if (direction === 'down') {
      style.top = offset + "px";
    } else {
      style.bottom = offset + "px";
    }

    return h("div", [h("div", {
      "directives": [{
        name: "show",
        value: this.showWrapper
      }],
      "ref": "wrapper",
      "style": style,
      "class": dropdown_item_bem([direction]),
      "on": {
        "click": this.onClickWrapper
      }
    }, [h(popup, {
      "attrs": {
        "overlay": overlay,
        "position": direction === 'down' ? 'top' : 'bottom',
        "duration": this.transition ? duration : 0,
        "lazyRender": this.lazyRender,
        "overlayStyle": {
          position: 'absolute'
        },
        "closeOnClickOverlay": closeOnClickOverlay
      },
      "class": dropdown_item_bem('content'),
      "on": {
        "open": this.onOpen,
        "close": this.onClose,
        "opened": this.onOpened,
        "closed": function closed() {
          _this3.showWrapper = false;

          _this3.$emit('closed');
        }
      },
      "model": {
        value: _this3.showPopup,
        callback: function callback($$v) {
          _this3.showPopup = $$v;
        }
      }
    }, [Options, this.slots('default')])])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/click-outside.js
/**
 * Listen to click outside event
 */

var click_outside_ClickOutsideMixin = function ClickOutsideMixin(config) {
  return {
    props: {
      closeOnClickOutside: {
        type: Boolean,
        default: true
      }
    },
    data: function data() {
      var _this = this;

      var clickOutsideHandler = function clickOutsideHandler(event) {
        if (_this.closeOnClickOutside && !_this.$el.contains(event.target)) {
          _this[config.method]();
        }
      };

      return {
        clickOutsideHandler: clickOutsideHandler
      };
    },
    mounted: function mounted() {
      event_on(document, config.event, this.clickOutsideHandler);
    },
    beforeDestroy: function beforeDestroy() {
      off(document, config.event, this.clickOutsideHandler);
    }
  };
};
// CONCATENATED MODULE: ./node_modules/vant/es/dropdown-menu/index.js
// Utils

 // Mixins




var dropdown_menu_createNamespace = Object(create["a" /* createNamespace */])('dropdown-menu'),
    dropdown_menu_createComponent = dropdown_menu_createNamespace[0],
    dropdown_menu_bem = dropdown_menu_createNamespace[1];

/* harmony default export */ var dropdown_menu = (dropdown_menu_createComponent({
  mixins: [ParentMixin('vanDropdownMenu'), click_outside_ClickOutsideMixin({
    event: 'click',
    method: 'onClickOutside'
  })],
  props: {
    zIndex: [Number, String],
    activeColor: String,
    overlay: {
      type: Boolean,
      default: true
    },
    duration: {
      type: [Number, String],
      default: 0.2
    },
    direction: {
      type: String,
      default: 'down'
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      offset: 0
    };
  },
  computed: {
    scroller: function scroller() {
      return getScroller(this.$el);
    },
    opened: function opened() {
      return this.children.some(function (item) {
        return item.showWrapper;
      });
    },
    barStyle: function barStyle() {
      if (this.opened && Object(utils["c" /* isDef */])(this.zIndex)) {
        return {
          zIndex: 1 + this.zIndex
        };
      }
    }
  },
  methods: {
    updateOffset: function updateOffset() {
      if (!this.$refs.bar) {
        return;
      }

      var rect = this.$refs.bar.getBoundingClientRect();

      if (this.direction === 'down') {
        this.offset = rect.bottom;
      } else {
        this.offset = window.innerHeight - rect.top;
      }
    },
    toggleItem: function toggleItem(active) {
      this.children.forEach(function (item, index) {
        if (index === active) {
          item.toggle();
        } else if (item.showPopup) {
          item.toggle(false, {
            immediate: true
          });
        }
      });
    },
    onClickOutside: function onClickOutside() {
      this.children.forEach(function (item) {
        item.toggle(false);
      });
    }
  },
  render: function render() {
    var _this = this;

    var h = arguments[0];
    var Titles = this.children.map(function (item, index) {
      return h("div", {
        "attrs": {
          "role": "button",
          "tabindex": item.disabled ? -1 : 0
        },
        "class": dropdown_menu_bem('item', {
          disabled: item.disabled
        }),
        "on": {
          "click": function click() {
            if (!item.disabled) {
              _this.toggleItem(index);
            }
          }
        }
      }, [h("span", {
        "class": [dropdown_menu_bem('title', {
          active: item.showPopup,
          down: item.showPopup === (_this.direction === 'down')
        }), item.titleClass],
        "style": {
          color: item.showPopup ? _this.activeColor : ''
        }
      }, [h("div", {
        "class": "van-ellipsis"
      }, [item.slots('title') || item.displayTitle])])]);
    });
    return h("div", {
      "class": dropdown_menu_bem()
    }, [h("div", {
      "ref": "bar",
      "style": this.barStyle,
      "class": dropdown_menu_bem('bar', {
        opened: this.opened
      })
    }, [Titles]), this.slots('default')]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/empty/Network.js
var prefix = 'van-empty-network-';
/* harmony default export */ var Network = ({
  render: function render() {
    var h = arguments[0];

    var genStop = function genStop(color, offset, opacity) {
      return h("stop", {
        "attrs": {
          "stop-color": color,
          "offset": offset + "%",
          "stop-opacity": opacity
        }
      });
    };

    return h("svg", {
      "attrs": {
        "viewBox": "0 0 160 160",
        "xmlns": "http://www.w3.org/2000/svg"
      }
    }, [h("defs", [h("linearGradient", {
      "attrs": {
        "id": prefix + "1",
        "x1": "64.022%",
        "y1": "100%",
        "x2": "64.022%",
        "y2": "0%"
      }
    }, [genStop('#FFF', 0, 0.5), genStop('#F2F3F5', 100)]), h("linearGradient", {
      "attrs": {
        "id": prefix + "2",
        "x1": "50%",
        "y1": "0%",
        "x2": "50%",
        "y2": "84.459%"
      }
    }, [genStop('#EBEDF0', 0), genStop('#DCDEE0', 100, 0)]), h("linearGradient", {
      "attrs": {
        "id": prefix + "3",
        "x1": "100%",
        "y1": "0%",
        "x2": "100%",
        "y2": "100%"
      }
    }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
      "attrs": {
        "id": prefix + "4",
        "x1": "100%",
        "y1": "100%",
        "x2": "100%",
        "y2": "0%"
      }
    }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
      "attrs": {
        "id": prefix + "5",
        "x1": "0%",
        "y1": "43.982%",
        "x2": "100%",
        "y2": "54.703%"
      }
    }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
      "attrs": {
        "id": prefix + "6",
        "x1": "94.535%",
        "y1": "43.837%",
        "x2": "5.465%",
        "y2": "54.948%"
      }
    }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("radialGradient", {
      "attrs": {
        "id": prefix + "7",
        "cx": "50%",
        "cy": "0%",
        "fx": "50%",
        "fy": "0%",
        "r": "100%",
        "gradientTransform": "matrix(0 1 -.54835 0 .5 -.5)"
      }
    }, [genStop('#EBEDF0', 0), genStop('#FFF', 100, 0)])]), h("g", {
      "attrs": {
        "fill": "none",
        "fill-rule": "evenodd"
      }
    }, [h("g", {
      "attrs": {
        "opacity": ".8"
      }
    }, [h("path", {
      "attrs": {
        "d": "M0 124V46h20v20h14v58H0z",
        "fill": "url(#" + prefix + "1)",
        "transform": "matrix(-1 0 0 1 36 7)"
      }
    }), h("path", {
      "attrs": {
        "d": "M121 8h22.231v14H152v77.37h-31V8z",
        "fill": "url(#" + prefix + "1)",
        "transform": "translate(2 7)"
      }
    })]), h("path", {
      "attrs": {
        "fill": "url(#" + prefix + "7)",
        "d": "M0 139h160v21H0z"
      }
    }), h("path", {
      "attrs": {
        "d": "M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",
        "fill": "url(#" + prefix + "2)",
        "fill-rule": "nonzero",
        "transform": "translate(43 36)"
      }
    }), h("g", {
      "attrs": {
        "opacity": ".6",
        "stroke-linecap": "round",
        "stroke-width": "7"
      }
    }, [h("path", {
      "attrs": {
        "d": "M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",
        "stroke": "url(#" + prefix + "3)",
        "transform": "translate(43 36)"
      }
    }), h("path", {
      "attrs": {
        "d": "M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",
        "stroke": "url(#" + prefix + "3)",
        "transform": "translate(43 36)"
      }
    }), h("path", {
      "attrs": {
        "d": "M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",
        "stroke": "url(#" + prefix + "4)",
        "transform": "rotate(-180 76.483 42.257)"
      }
    }), h("path", {
      "attrs": {
        "d": "M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",
        "stroke": "url(#" + prefix + "4)",
        "transform": "rotate(-180 89.791 42.146)"
      }
    })]), h("g", {
      "attrs": {
        "transform": "translate(31 105)",
        "fill-rule": "nonzero"
      }
    }, [h("rect", {
      "attrs": {
        "fill": "url(#" + prefix + "5)",
        "width": "98",
        "height": "34",
        "rx": "2"
      }
    }), h("rect", {
      "attrs": {
        "fill": "#FFF",
        "x": "9",
        "y": "8",
        "width": "80",
        "height": "18",
        "rx": "1.114"
      }
    }), h("rect", {
      "attrs": {
        "fill": "url(#" + prefix + "6)",
        "x": "15",
        "y": "12",
        "width": "18",
        "height": "6",
        "rx": "1.114"
      }
    })])])]);
  }
});
// CONCATENATED MODULE: ./node_modules/vant/es/empty/index.js



var empty_createNamespace = Object(create["a" /* createNamespace */])('empty'),
    empty_createComponent = empty_createNamespace[0],
    empty_bem = empty_createNamespace[1];

var PRESETS = ['error', 'search', 'default'];
/* harmony default export */ var empty = (empty_createComponent({
  props: {
    imageSize: [Number, String],
    description: String,
    image: {
      type: String,
      default: 'default'
    }
  },
  methods: {
    genImageContent: function genImageContent() {
      var h = this.$createElement;
      var slots = this.slots('image');

      if (slots) {
        return slots;
      }

      if (this.image === 'network') {
        return h(Network);
      }

      var image = this.image;

      if (PRESETS.indexOf(image) !== -1) {
        image = "https://img01.yzcdn.cn/vant/empty-image-" + image + ".png";
      }

      return h("img", {
        "attrs": {
          "src": image
        }
      });
    },
    genImage: function genImage() {
      var h = this.$createElement;
      var imageStyle = {
        width: Object(unit["a" /* addUnit */])(this.imageSize),
        height: Object(unit["a" /* addUnit */])(this.imageSize)
      };
      return h("div", {
        "class": empty_bem('image'),
        "style": imageStyle
      }, [this.genImageContent()]);
    },
    genDescription: function genDescription() {
      var h = this.$createElement;
      var description = this.slots('description') || this.description;

      if (description) {
        return h("p", {
          "class": empty_bem('description')
        }, [description]);
      }
    },
    genBottom: function genBottom() {
      var h = this.$createElement;
      var slot = this.slots();

      if (slot) {
        return h("div", {
          "class": empty_bem('bottom')
        }, [slot]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": empty_bem()
    }, [this.genImage(), this.genDescription(), this.genBottom()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/form/index.js



var form_createNamespace = Object(create["a" /* createNamespace */])('form'),
    form_createComponent = form_createNamespace[0],
    form_bem = form_createNamespace[1];

/* harmony default export */ var es_form = (form_createComponent({
  props: {
    colon: Boolean,
    disabled: Boolean,
    readonly: Boolean,
    labelWidth: [Number, String],
    labelAlign: String,
    inputAlign: String,
    scrollToError: Boolean,
    validateFirst: Boolean,
    errorMessageAlign: String,
    submitOnEnter: {
      type: Boolean,
      default: true
    },
    validateTrigger: {
      type: String,
      default: 'onBlur'
    },
    showError: {
      type: Boolean,
      default: true
    },
    showErrorMessage: {
      type: Boolean,
      default: true
    }
  },
  provide: function provide() {
    return {
      vanForm: this
    };
  },
  data: function data() {
    return {
      fields: []
    };
  },
  methods: {
    getFieldsByNames: function getFieldsByNames(names) {
      if (names) {
        return this.fields.filter(function (field) {
          return names.indexOf(field.name) !== -1;
        });
      }

      return this.fields;
    },
    validateSeq: function validateSeq(names) {
      var _this = this;

      return new Promise(function (resolve, reject) {
        var errors = [];

        var fields = _this.getFieldsByNames(names);

        fields.reduce(function (promise, field) {
          return promise.then(function () {
            if (!errors.length) {
              return field.validate().then(function (error) {
                if (error) {
                  errors.push(error);
                }
              });
            }
          });
        }, Promise.resolve()).then(function () {
          if (errors.length) {
            reject(errors);
          } else {
            resolve();
          }
        });
      });
    },
    validateFields: function validateFields(names) {
      var _this2 = this;

      return new Promise(function (resolve, reject) {
        var fields = _this2.getFieldsByNames(names);

        Promise.all(fields.map(function (item) {
          return item.validate();
        })).then(function (errors) {
          errors = errors.filter(function (item) {
            return item;
          });

          if (errors.length) {
            reject(errors);
          } else {
            resolve();
          }
        });
      });
    },
    // @exposed-api
    validate: function validate(name) {
      if (name && !Array.isArray(name)) {
        return this.validateField(name);
      }

      return this.validateFirst ? this.validateSeq(name) : this.validateFields(name);
    },
    validateField: function validateField(name) {
      var matched = this.fields.filter(function (item) {
        return item.name === name;
      });

      if (matched.length) {
        return new Promise(function (resolve, reject) {
          matched[0].validate().then(function (error) {
            if (error) {
              reject(error);
            } else {
              resolve();
            }
          });
        });
      }

      return Promise.reject();
    },
    // @exposed-api
    resetValidation: function resetValidation(name) {
      if (name && !Array.isArray(name)) {
        name = [name];
      }

      var fields = this.getFieldsByNames(name);
      fields.forEach(function (item) {
        item.resetValidation();
      });
    },
    // @exposed-api
    scrollToField: function scrollToField(name, options) {
      this.fields.some(function (item) {
        if (item.name === name) {
          item.$el.scrollIntoView(options);
          return true;
        }

        return false;
      });
    },
    addField: function addField(field) {
      this.fields.push(field);
      sortChildren(this.fields, this);
    },
    removeField: function removeField(field) {
      this.fields = this.fields.filter(function (item) {
        return item !== field;
      });
    },
    getValues: function getValues() {
      return this.fields.reduce(function (form, field) {
        form[field.name] = field.formValue;
        return form;
      }, {});
    },
    onSubmit: function onSubmit(event) {
      event.preventDefault();
      this.submit();
    },
    // @exposed-api
    submit: function submit() {
      var _this3 = this;

      var values = this.getValues();
      this.validate().then(function () {
        _this3.$emit('submit', values);
      }).catch(function (errors) {
        _this3.$emit('failed', {
          values: values,
          errors: errors
        });

        if (_this3.scrollToError) {
          _this3.scrollToField(errors[0].name);
        }
      });
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("form", {
      "class": form_bem(),
      "on": {
        "submit": this.onSubmit
      }
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/goods-action-icon/index.js







var goods_action_icon_createNamespace = Object(create["a" /* createNamespace */])('goods-action-icon'),
    goods_action_icon_createComponent = goods_action_icon_createNamespace[0],
    goods_action_icon_bem = goods_action_icon_createNamespace[1];

/* harmony default export */ var goods_action_icon = (goods_action_icon_createComponent({
  mixins: [ChildrenMixin('vanGoodsAction')],
  props: _extends({}, routeProps, {
    dot: Boolean,
    text: String,
    icon: String,
    color: String,
    // @deprecated
    info: [Number, String],
    badge: [Number, String],
    iconClass: null
  }),
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);
      route(this.$router, this);
    },
    genIcon: function genIcon() {
      var _this$badge;

      var h = this.$createElement;
      var slot = this.slots('icon');
      var info = (_this$badge = this.badge) != null ? _this$badge : this.info;

      if (false) {}

      if (slot) {
        return h("div", {
          "class": goods_action_icon_bem('icon')
        }, [slot, h(es_info, {
          "attrs": {
            "dot": this.dot,
            "info": info
          }
        })]);
      }

      return h(es_icon, {
        "class": [goods_action_icon_bem('icon'), this.iconClass],
        "attrs": {
          "tag": "div",
          "dot": this.dot,
          "name": this.icon,
          "badge": info,
          "color": this.color
        }
      });
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "attrs": {
        "role": "button",
        "tabindex": "0"
      },
      "class": goods_action_icon_bem(),
      "on": {
        "click": this.onClick
      }
    }, [this.genIcon(), this.slots() || this.text]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/grid/index.js




var grid_createNamespace = Object(create["a" /* createNamespace */])('grid'),
    grid_createComponent = grid_createNamespace[0],
    grid_bem = grid_createNamespace[1];

/* harmony default export */ var grid = (grid_createComponent({
  mixins: [ParentMixin('vanGrid')],
  props: {
    square: Boolean,
    gutter: [Number, String],
    iconSize: [Number, String],
    direction: String,
    clickable: Boolean,
    columnNum: {
      type: [Number, String],
      default: 4
    },
    center: {
      type: Boolean,
      default: true
    },
    border: {
      type: Boolean,
      default: true
    }
  },
  computed: {
    style: function style() {
      var gutter = this.gutter;

      if (gutter) {
        return {
          paddingLeft: Object(unit["a" /* addUnit */])(gutter)
        };
      }
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    return h("div", {
      "style": this.style,
      "class": [grid_bem(), (_ref = {}, _ref[BORDER_TOP] = this.border && !this.gutter, _ref)]
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/grid-item/index.js

// Utils


 // Mixins

 // Components




var grid_item_createNamespace = Object(create["a" /* createNamespace */])('grid-item'),
    grid_item_createComponent = grid_item_createNamespace[0],
    grid_item_bem = grid_item_createNamespace[1];

/* harmony default export */ var grid_item = (grid_item_createComponent({
  mixins: [ChildrenMixin('vanGrid')],
  props: _extends({}, routeProps, {
    dot: Boolean,
    text: String,
    icon: String,
    iconPrefix: String,
    // @deprecated
    info: [Number, String],
    badge: [Number, String]
  }),
  computed: {
    style: function style() {
      var _this$parent = this.parent,
          square = _this$parent.square,
          gutter = _this$parent.gutter,
          columnNum = _this$parent.columnNum;
      var percent = 100 / columnNum + "%";
      var style = {
        flexBasis: percent
      };

      if (square) {
        style.paddingTop = percent;
      } else if (gutter) {
        var gutterValue = Object(unit["a" /* addUnit */])(gutter);
        style.paddingRight = gutterValue;

        if (this.index >= columnNum) {
          style.marginTop = gutterValue;
        }
      }

      return style;
    },
    contentStyle: function contentStyle() {
      var _this$parent2 = this.parent,
          square = _this$parent2.square,
          gutter = _this$parent2.gutter;

      if (square && gutter) {
        var gutterValue = Object(unit["a" /* addUnit */])(gutter);
        return {
          right: gutterValue,
          bottom: gutterValue,
          height: 'auto'
        };
      }
    }
  },
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);
      route(this.$router, this);
    },
    genIcon: function genIcon() {
      var _this$badge;

      var h = this.$createElement;
      var iconSlot = this.slots('icon');
      var info = (_this$badge = this.badge) != null ? _this$badge : this.info;

      if (false) {}

      if (iconSlot) {
        return h("div", {
          "class": grid_item_bem('icon-wrapper')
        }, [iconSlot, h(es_info, {
          "attrs": {
            "dot": this.dot,
            "info": info
          }
        })]);
      }

      if (this.icon) {
        return h(es_icon, {
          "attrs": {
            "name": this.icon,
            "dot": this.dot,
            "badge": info,
            "size": this.parent.iconSize,
            "classPrefix": this.iconPrefix
          },
          "class": grid_item_bem('icon')
        });
      }
    },
    getText: function getText() {
      var h = this.$createElement;
      var textSlot = this.slots('text');

      if (textSlot) {
        return textSlot;
      }

      if (this.text) {
        return h("span", {
          "class": grid_item_bem('text')
        }, [this.text]);
      }
    },
    genContent: function genContent() {
      var slot = this.slots();

      if (slot) {
        return slot;
      }

      return [this.genIcon(), this.getText()];
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    var _this$parent3 = this.parent,
        center = _this$parent3.center,
        border = _this$parent3.border,
        square = _this$parent3.square,
        gutter = _this$parent3.gutter,
        direction = _this$parent3.direction,
        clickable = _this$parent3.clickable;
    return h("div", {
      "class": [grid_item_bem({
        square: square
      })],
      "style": this.style
    }, [h("div", {
      "style": this.contentStyle,
      "attrs": {
        "role": clickable ? 'button' : null,
        "tabindex": clickable ? 0 : null
      },
      "class": [grid_item_bem('content', [direction, {
        center: center,
        square: square,
        clickable: clickable,
        surround: border && gutter
      }]), (_ref = {}, _ref[BORDER] = border, _ref)],
      "on": {
        "click": this.onClick
      }
    }, [this.genContent()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/image-preview/shared.js


var shared_createNamespace = Object(create["a" /* createNamespace */])('image-preview'),
    shared_createComponent = shared_createNamespace[0],
    shared_bem = shared_createNamespace[1];


// CONCATENATED MODULE: ./node_modules/vant/es/swipe/index.js
// Utils




 // Mixins





var swipe_createNamespace = Object(create["a" /* createNamespace */])('swipe'),
    swipe_createComponent = swipe_createNamespace[0],
    swipe_bem = swipe_createNamespace[1];

/* harmony default export */ var swipe = (swipe_createComponent({
  mixins: [TouchMixin, ParentMixin('vanSwipe'), BindEventMixin(function (bind, isBind) {
    bind(window, 'resize', this.resize, true);
    bind(window, 'orientationchange', this.resize, true);
    bind(window, 'visibilitychange', this.onVisibilityChange);

    if (isBind) {
      this.initialize();
    } else {
      this.clear();
    }
  })],
  props: {
    width: [Number, String],
    height: [Number, String],
    autoplay: [Number, String],
    vertical: Boolean,
    lazyRender: Boolean,
    indicatorColor: String,
    loop: {
      type: Boolean,
      default: true
    },
    duration: {
      type: [Number, String],
      default: 500
    },
    touchable: {
      type: Boolean,
      default: true
    },
    initialSwipe: {
      type: [Number, String],
      default: 0
    },
    showIndicators: {
      type: Boolean,
      default: true
    },
    stopPropagation: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      rect: null,
      offset: 0,
      active: 0,
      deltaX: 0,
      deltaY: 0,
      swiping: false,
      computedWidth: 0,
      computedHeight: 0
    };
  },
  watch: {
    children: function children() {
      this.initialize();
    },
    initialSwipe: function initialSwipe() {
      this.initialize();
    },
    autoplay: function autoplay(_autoplay) {
      if (_autoplay > 0) {
        this.autoPlay();
      } else {
        this.clear();
      }
    }
  },
  computed: {
    count: function count() {
      return this.children.length;
    },
    maxCount: function maxCount() {
      return Math.ceil(Math.abs(this.minOffset) / this.size);
    },
    delta: function delta() {
      return this.vertical ? this.deltaY : this.deltaX;
    },
    size: function size() {
      return this[this.vertical ? 'computedHeight' : 'computedWidth'];
    },
    trackSize: function trackSize() {
      return this.count * this.size;
    },
    activeIndicator: function activeIndicator() {
      return (this.active + this.count) % this.count;
    },
    isCorrectDirection: function isCorrectDirection() {
      var expect = this.vertical ? 'vertical' : 'horizontal';
      return this.direction === expect;
    },
    trackStyle: function trackStyle() {
      var style = {
        transitionDuration: (this.swiping ? 0 : this.duration) + "ms",
        transform: "translate" + (this.vertical ? 'Y' : 'X') + "(" + this.offset + "px)"
      };

      if (this.size) {
        var mainAxis = this.vertical ? 'height' : 'width';
        var crossAxis = this.vertical ? 'width' : 'height';
        style[mainAxis] = this.trackSize + "px";
        style[crossAxis] = this[crossAxis] ? this[crossAxis] + "px" : '';
      }

      return style;
    },
    indicatorStyle: function indicatorStyle() {
      return {
        backgroundColor: this.indicatorColor
      };
    },
    minOffset: function minOffset() {
      return (this.vertical ? this.rect.height : this.rect.width) - this.size * this.count;
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$refs.track);
  },
  methods: {
    // initialize swipe position
    initialize: function initialize(active) {
      if (active === void 0) {
        active = +this.initialSwipe;
      }

      if (!this.$el || isHidden(this.$el)) {
        return;
      }

      clearTimeout(this.timer);
      var rect = {
        width: this.$el.offsetWidth,
        height: this.$el.offsetHeight
      };
      this.rect = rect;
      this.swiping = true;
      this.active = active;
      this.computedWidth = +this.width || rect.width;
      this.computedHeight = +this.height || rect.height;
      this.offset = this.getTargetOffset(active);
      this.children.forEach(function (swipe) {
        swipe.offset = 0;
      });
      this.autoPlay();
    },
    // @exposed-api
    resize: function resize() {
      this.initialize(this.activeIndicator);
    },
    onVisibilityChange: function onVisibilityChange() {
      if (document.hidden) {
        this.clear();
      } else {
        this.autoPlay();
      }
    },
    onTouchStart: function onTouchStart(event) {
      if (!this.touchable) return;
      this.clear();
      this.touchStartTime = Date.now();
      this.touchStart(event);
      this.correctPosition();
    },
    onTouchMove: function onTouchMove(event) {
      if (!this.touchable || !this.swiping) return;
      this.touchMove(event);

      if (this.isCorrectDirection) {
        preventDefault(event, this.stopPropagation);
        this.move({
          offset: this.delta
        });
      }
    },
    onTouchEnd: function onTouchEnd() {
      if (!this.touchable || !this.swiping) return;
      var size = this.size,
          delta = this.delta;
      var duration = Date.now() - this.touchStartTime;
      var speed = delta / duration;
      var shouldSwipe = Math.abs(speed) > 0.25 || Math.abs(delta) > size / 2;

      if (shouldSwipe && this.isCorrectDirection) {
        var offset = this.vertical ? this.offsetY : this.offsetX;
        var pace = 0;

        if (this.loop) {
          pace = offset > 0 ? delta > 0 ? -1 : 1 : 0;
        } else {
          pace = -Math[delta > 0 ? 'ceil' : 'floor'](delta / size);
        }

        this.move({
          pace: pace,
          emitChange: true
        });
      } else if (delta) {
        this.move({
          pace: 0
        });
      }

      this.swiping = false;
      this.autoPlay();
    },
    getTargetActive: function getTargetActive(pace) {
      var active = this.active,
          count = this.count,
          maxCount = this.maxCount;

      if (pace) {
        if (this.loop) {
          return range(active + pace, -1, count);
        }

        return range(active + pace, 0, maxCount);
      }

      return active;
    },
    getTargetOffset: function getTargetOffset(targetActive, offset) {
      if (offset === void 0) {
        offset = 0;
      }

      var currentPosition = targetActive * this.size;

      if (!this.loop) {
        currentPosition = Math.min(currentPosition, -this.minOffset);
      }

      var targetOffset = offset - currentPosition;

      if (!this.loop) {
        targetOffset = range(targetOffset, this.minOffset, 0);
      }

      return targetOffset;
    },
    move: function move(_ref) {
      var _ref$pace = _ref.pace,
          pace = _ref$pace === void 0 ? 0 : _ref$pace,
          _ref$offset = _ref.offset,
          offset = _ref$offset === void 0 ? 0 : _ref$offset,
          emitChange = _ref.emitChange;
      var loop = this.loop,
          count = this.count,
          active = this.active,
          children = this.children,
          trackSize = this.trackSize,
          minOffset = this.minOffset;

      if (count <= 1) {
        return;
      }

      var targetActive = this.getTargetActive(pace);
      var targetOffset = this.getTargetOffset(targetActive, offset); // auto move first and last swipe in loop mode

      if (loop) {
        if (children[0] && targetOffset !== minOffset) {
          var outRightBound = targetOffset < minOffset;
          children[0].offset = outRightBound ? trackSize : 0;
        }

        if (children[count - 1] && targetOffset !== 0) {
          var outLeftBound = targetOffset > 0;
          children[count - 1].offset = outLeftBound ? -trackSize : 0;
        }
      }

      this.active = targetActive;
      this.offset = targetOffset;

      if (emitChange && targetActive !== active) {
        this.$emit('change', this.activeIndicator);
      }
    },
    // @exposed-api
    prev: function prev() {
      var _this = this;

      this.correctPosition();
      this.resetTouchStatus();
      Object(raf["b" /* doubleRaf */])(function () {
        _this.swiping = false;

        _this.move({
          pace: -1,
          emitChange: true
        });
      });
    },
    // @exposed-api
    next: function next() {
      var _this2 = this;

      this.correctPosition();
      this.resetTouchStatus();
      Object(raf["b" /* doubleRaf */])(function () {
        _this2.swiping = false;

        _this2.move({
          pace: 1,
          emitChange: true
        });
      });
    },
    // @exposed-api
    swipeTo: function swipeTo(index, options) {
      var _this3 = this;

      if (options === void 0) {
        options = {};
      }

      this.correctPosition();
      this.resetTouchStatus();
      Object(raf["b" /* doubleRaf */])(function () {
        var targetIndex;

        if (_this3.loop && index === _this3.count) {
          targetIndex = _this3.active === 0 ? 0 : index;
        } else {
          targetIndex = index % _this3.count;
        }

        if (options.immediate) {
          Object(raf["b" /* doubleRaf */])(function () {
            _this3.swiping = false;
          });
        } else {
          _this3.swiping = false;
        }

        _this3.move({
          pace: targetIndex - _this3.active,
          emitChange: true
        });
      });
    },
    correctPosition: function correctPosition() {
      this.swiping = true;

      if (this.active <= -1) {
        this.move({
          pace: this.count
        });
      }

      if (this.active >= this.count) {
        this.move({
          pace: -this.count
        });
      }
    },
    clear: function clear() {
      clearTimeout(this.timer);
    },
    autoPlay: function autoPlay() {
      var _this4 = this;

      var autoplay = this.autoplay;

      if (autoplay > 0 && this.count > 1) {
        this.clear();
        this.timer = setTimeout(function () {
          _this4.next();

          _this4.autoPlay();
        }, autoplay);
      }
    },
    genIndicator: function genIndicator() {
      var _this5 = this;

      var h = this.$createElement;
      var count = this.count,
          activeIndicator = this.activeIndicator;
      var slot = this.slots('indicator');

      if (slot) {
        return slot;
      }

      if (this.showIndicators && count > 1) {
        return h("div", {
          "class": swipe_bem('indicators', {
            vertical: this.vertical
          })
        }, [Array.apply(void 0, Array(count)).map(function (empty, index) {
          return h("i", {
            "class": swipe_bem('indicator', {
              active: index === activeIndicator
            }),
            "style": index === activeIndicator ? _this5.indicatorStyle : null
          });
        })]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": swipe_bem()
    }, [h("div", {
      "ref": "track",
      "style": this.trackStyle,
      "class": swipe_bem('track', {
        vertical: this.vertical
      })
    }, [this.slots()]), this.genIndicator()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/swipe-item/index.js




var swipe_item_createNamespace = Object(create["a" /* createNamespace */])('swipe-item'),
    swipe_item_createComponent = swipe_item_createNamespace[0],
    swipe_item_bem = swipe_item_createNamespace[1];

/* harmony default export */ var swipe_item = (swipe_item_createComponent({
  mixins: [ChildrenMixin('vanSwipe')],
  data: function data() {
    return {
      offset: 0,
      inited: false,
      mounted: false
    };
  },
  mounted: function mounted() {
    var _this = this;

    this.$nextTick(function () {
      _this.mounted = true;
    });
  },
  computed: {
    style: function style() {
      var style = {};
      var _this$parent = this.parent,
          size = _this$parent.size,
          vertical = _this$parent.vertical;

      if (size) {
        style[vertical ? 'height' : 'width'] = size + "px";
      }

      if (this.offset) {
        style.transform = "translate" + (vertical ? 'Y' : 'X') + "(" + this.offset + "px)";
      }

      return style;
    },
    shouldRender: function shouldRender() {
      var index = this.index,
          inited = this.inited,
          parent = this.parent,
          mounted = this.mounted;

      if (!parent.lazyRender || inited) {
        return true;
      } // wait for all item to mount, so we can get the exact count


      if (!mounted) {
        return false;
      }

      var active = parent.activeIndicator;
      var maxActive = parent.count - 1;
      var prevActive = active === 0 && parent.loop ? maxActive : active - 1;
      var nextActive = active === maxActive && parent.loop ? 0 : active + 1;
      var shouldRender = index === active || index === prevActive || index === nextActive;

      if (shouldRender) {
        this.inited = true;
      }

      return shouldRender;
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": swipe_item_bem(),
      "style": this.style,
      "on": _extends({}, this.$listeners)
    }, [this.shouldRender && this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/image-preview/ImagePreviewItem.js
// Utils


 // Mixins

 // Component





function getDistance(touches) {
  return Math.sqrt(Math.pow(touches[0].clientX - touches[1].clientX, 2) + Math.pow(touches[0].clientY - touches[1].clientY, 2));
}

/* harmony default export */ var ImagePreviewItem = ({
  mixins: [TouchMixin],
  props: {
    src: String,
    show: Boolean,
    active: Number,
    minZoom: [Number, String],
    maxZoom: [Number, String],
    rootWidth: Number,
    rootHeight: Number
  },
  data: function data() {
    return {
      scale: 1,
      moveX: 0,
      moveY: 0,
      moving: false,
      zooming: false,
      imageRatio: 0,
      displayWidth: 0,
      displayHeight: 0
    };
  },
  computed: {
    vertical: function vertical() {
      var rootWidth = this.rootWidth,
          rootHeight = this.rootHeight;
      var rootRatio = rootHeight / rootWidth;
      return this.imageRatio > rootRatio;
    },
    imageStyle: function imageStyle() {
      var scale = this.scale;
      var style = {
        transitionDuration: this.zooming || this.moving ? '0s' : '.3s'
      };

      if (scale !== 1) {
        var offsetX = this.moveX / scale;
        var offsetY = this.moveY / scale;
        style.transform = "scale(" + scale + ", " + scale + ") translate(" + offsetX + "px, " + offsetY + "px)";
      }

      return style;
    },
    maxMoveX: function maxMoveX() {
      if (this.imageRatio) {
        var displayWidth = this.vertical ? this.rootHeight / this.imageRatio : this.rootWidth;
        return Math.max(0, (this.scale * displayWidth - this.rootWidth) / 2);
      }

      return 0;
    },
    maxMoveY: function maxMoveY() {
      if (this.imageRatio) {
        var displayHeight = this.vertical ? this.rootHeight : this.rootWidth * this.imageRatio;
        return Math.max(0, (this.scale * displayHeight - this.rootHeight) / 2);
      }

      return 0;
    }
  },
  watch: {
    active: 'resetScale',
    show: function show(val) {
      if (!val) {
        this.resetScale();
      }
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);
  },
  methods: {
    resetScale: function resetScale() {
      this.setScale(1);
      this.moveX = 0;
      this.moveY = 0;
    },
    setScale: function setScale(scale) {
      scale = range(scale, +this.minZoom, +this.maxZoom);

      if (scale !== this.scale) {
        this.scale = scale;
        this.$emit('scale', {
          scale: this.scale,
          index: this.active
        });
      }
    },
    toggleScale: function toggleScale() {
      var scale = this.scale > 1 ? 1 : 2;
      this.setScale(scale);
      this.moveX = 0;
      this.moveY = 0;
    },
    onTouchStart: function onTouchStart(event) {
      var touches = event.touches;
      var _this$offsetX = this.offsetX,
          offsetX = _this$offsetX === void 0 ? 0 : _this$offsetX;
      this.touchStart(event);
      this.touchStartTime = new Date();
      this.fingerNum = touches.length;
      this.startMoveX = this.moveX;
      this.startMoveY = this.moveY;
      this.moving = this.fingerNum === 1 && this.scale !== 1;
      this.zooming = this.fingerNum === 2 && !offsetX;

      if (this.zooming) {
        this.startScale = this.scale;
        this.startDistance = getDistance(event.touches);
      }
    },
    onTouchMove: function onTouchMove(event) {
      var touches = event.touches;
      this.touchMove(event);

      if (this.moving || this.zooming) {
        preventDefault(event, true);
      }

      if (this.moving) {
        var moveX = this.deltaX + this.startMoveX;
        var moveY = this.deltaY + this.startMoveY;
        this.moveX = range(moveX, -this.maxMoveX, this.maxMoveX);
        this.moveY = range(moveY, -this.maxMoveY, this.maxMoveY);
      }

      if (this.zooming && touches.length === 2) {
        var distance = getDistance(touches);
        var scale = this.startScale * distance / this.startDistance;
        this.setScale(scale);
      }
    },
    onTouchEnd: function onTouchEnd(event) {
      var stopPropagation = false;
      /* istanbul ignore else */

      if (this.moving || this.zooming) {
        stopPropagation = true;

        if (this.moving && this.startMoveX === this.moveX && this.startMoveY === this.moveY) {
          stopPropagation = false;
        }

        if (!event.touches.length) {
          if (this.zooming) {
            this.moveX = range(this.moveX, -this.maxMoveX, this.maxMoveX);
            this.moveY = range(this.moveY, -this.maxMoveY, this.maxMoveY);
            this.zooming = false;
          }

          this.moving = false;
          this.startMoveX = 0;
          this.startMoveY = 0;
          this.startScale = 1;

          if (this.scale < 1) {
            this.resetScale();
          }
        }
      } // eliminate tap delay on safari


      preventDefault(event, stopPropagation);
      this.checkTap();
      this.resetTouchStatus();
    },
    checkTap: function checkTap() {
      var _this = this;

      if (this.fingerNum > 1) {
        return;
      }

      var _this$offsetX2 = this.offsetX,
          offsetX = _this$offsetX2 === void 0 ? 0 : _this$offsetX2,
          _this$offsetY = this.offsetY,
          offsetY = _this$offsetY === void 0 ? 0 : _this$offsetY;
      var deltaTime = new Date() - this.touchStartTime;
      var TAP_TIME = 250;
      var TAP_OFFSET = 5;

      if (offsetX < TAP_OFFSET && offsetY < TAP_OFFSET && deltaTime < TAP_TIME) {
        if (this.doubleTapTimer) {
          clearTimeout(this.doubleTapTimer);
          this.doubleTapTimer = null;
          this.toggleScale();
        } else {
          this.doubleTapTimer = setTimeout(function () {
            _this.$emit('close');

            _this.doubleTapTimer = null;
          }, TAP_TIME);
        }
      }
    },
    onLoad: function onLoad(event) {
      var _event$target = event.target,
          naturalWidth = _event$target.naturalWidth,
          naturalHeight = _event$target.naturalHeight;
      this.imageRatio = naturalHeight / naturalWidth;
    }
  },
  render: function render() {
    var h = arguments[0];
    var imageSlots = {
      loading: function loading() {
        return h(es_loading, {
          "attrs": {
            "type": "spinner"
          }
        });
      }
    };
    return h(swipe_item, {
      "class": shared_bem('swipe-item')
    }, [h(es_image, {
      "attrs": {
        "src": this.src,
        "fit": "contain"
      },
      "class": shared_bem('image', {
        vertical: this.vertical
      }),
      "style": this.imageStyle,
      "scopedSlots": imageSlots,
      "on": {
        "load": this.onLoad
      }
    })]);
  }
});
// CONCATENATED MODULE: ./node_modules/vant/es/image-preview/ImagePreview.js
// Utils
 // Mixins



 // Components




/* harmony default export */ var image_preview_ImagePreview = (shared_createComponent({
  mixins: [TouchMixin, PopupMixin({
    skipToggleEvent: true
  }), BindEventMixin(function (bind) {
    bind(window, 'resize', this.resize, true);
    bind(window, 'orientationchange', this.resize, true);
  })],
  props: {
    className: null,
    closeable: Boolean,
    asyncClose: Boolean,
    overlayStyle: Object,
    showIndicators: Boolean,
    images: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    loop: {
      type: Boolean,
      default: true
    },
    overlay: {
      type: Boolean,
      default: true
    },
    minZoom: {
      type: [Number, String],
      default: 1 / 3
    },
    maxZoom: {
      type: [Number, String],
      default: 3
    },
    transition: {
      type: String,
      default: 'van-fade'
    },
    showIndex: {
      type: Boolean,
      default: true
    },
    swipeDuration: {
      type: [Number, String],
      default: 300
    },
    startPosition: {
      type: [Number, String],
      default: 0
    },
    overlayClass: {
      type: String,
      default: shared_bem('overlay')
    },
    closeIcon: {
      type: String,
      default: 'clear'
    },
    closeOnPopstate: {
      type: Boolean,
      default: true
    },
    closeIconPosition: {
      type: String,
      default: 'top-right'
    }
  },
  data: function data() {
    return {
      active: 0,
      rootWidth: 0,
      rootHeight: 0,
      doubleClickTimer: null
    };
  },
  mounted: function mounted() {
    this.resize();
  },
  watch: {
    startPosition: 'setActive',
    value: function value(val) {
      var _this = this;

      if (val) {
        this.setActive(+this.startPosition);
        this.$nextTick(function () {
          _this.resize();

          _this.$refs.swipe.swipeTo(+_this.startPosition, {
            immediate: true
          });
        });
      } else {
        this.$emit('close', {
          index: this.active,
          url: this.images[this.active]
        });
      }
    }
  },
  methods: {
    resize: function resize() {
      if (this.$el && this.$el.getBoundingClientRect) {
        var rect = this.$el.getBoundingClientRect();
        this.rootWidth = rect.width;
        this.rootHeight = rect.height;
      }
    },
    emitClose: function emitClose() {
      if (!this.asyncClose) {
        this.$emit('input', false);
      }
    },
    emitScale: function emitScale(args) {
      this.$emit('scale', args);
    },
    setActive: function setActive(active) {
      if (active !== this.active) {
        this.active = active;
        this.$emit('change', active);
      }
    },
    genIndex: function genIndex() {
      var h = this.$createElement;

      if (this.showIndex) {
        return h("div", {
          "class": shared_bem('index')
        }, [this.slots('index', {
          index: this.active
        }) || this.active + 1 + " / " + this.images.length]);
      }
    },
    genCover: function genCover() {
      var h = this.$createElement;
      var cover = this.slots('cover');

      if (cover) {
        return h("div", {
          "class": shared_bem('cover')
        }, [cover]);
      }
    },
    genImages: function genImages() {
      var _this2 = this;

      var h = this.$createElement;
      return h(swipe, {
        "ref": "swipe",
        "attrs": {
          "lazyRender": true,
          "loop": this.loop,
          "duration": this.swipeDuration,
          "initialSwipe": this.startPosition,
          "showIndicators": this.showIndicators,
          "indicatorColor": "white"
        },
        "class": shared_bem('swipe'),
        "on": {
          "change": this.setActive
        }
      }, [this.images.map(function (image) {
        return h(ImagePreviewItem, {
          "attrs": {
            "src": image,
            "show": _this2.value,
            "active": _this2.active,
            "maxZoom": _this2.maxZoom,
            "minZoom": _this2.minZoom,
            "rootWidth": _this2.rootWidth,
            "rootHeight": _this2.rootHeight
          },
          "on": {
            "scale": _this2.emitScale,
            "close": _this2.emitClose
          }
        });
      })]);
    },
    genClose: function genClose() {
      var h = this.$createElement;

      if (this.closeable) {
        return h(es_icon, {
          "attrs": {
            "role": "button",
            "name": this.closeIcon
          },
          "class": shared_bem('close-icon', this.closeIconPosition),
          "on": {
            "click": this.emitClose
          }
        });
      }
    },
    onClosed: function onClosed() {
      this.$emit('closed');
    },
    // @exposed-api
    swipeTo: function swipeTo(index, options) {
      if (this.$refs.swipe) {
        this.$refs.swipe.swipeTo(index, options);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("transition", {
      "attrs": {
        "name": this.transition
      },
      "on": {
        "afterLeave": this.onClosed
      }
    }, [this.shouldRender ? h("div", {
      "directives": [{
        name: "show",
        value: this.value
      }],
      "class": [shared_bem(), this.className]
    }, [this.genClose(), this.genImages(), this.genIndex(), this.genCover()]) : null]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/image-preview/index.js




var image_preview_instance;
var image_preview_defaultConfig = {
  loop: true,
  value: true,
  images: [],
  maxZoom: 3,
  minZoom: 1 / 3,
  onClose: null,
  onChange: null,
  className: '',
  showIndex: true,
  closeable: false,
  closeIcon: 'clear',
  asyncClose: false,
  transition: 'van-fade',
  getContainer: 'body',
  overlayStyle: null,
  startPosition: 0,
  swipeDuration: 300,
  showIndicators: false,
  closeOnPopstate: true,
  closeIconPosition: 'top-right'
};

var image_preview_initInstance = function initInstance() {
  image_preview_instance = new (vue_default.a.extend(image_preview_ImagePreview))({
    el: document.createElement('div')
  });
  document.body.appendChild(image_preview_instance.$el);
  image_preview_instance.$on('change', function (index) {
    if (image_preview_instance.onChange) {
      image_preview_instance.onChange(index);
    }
  });
  image_preview_instance.$on('scale', function (data) {
    if (image_preview_instance.onScale) {
      image_preview_instance.onScale(data);
    }
  });
};

var es_image_preview_ImagePreview = function ImagePreview(images, startPosition) {
  if (startPosition === void 0) {
    startPosition = 0;
  }

  /* istanbul ignore if */
  if (utils["h" /* isServer */]) {
    return;
  }

  if (!image_preview_instance) {
    image_preview_initInstance();
  }

  var options = Array.isArray(images) ? {
    images: images,
    startPosition: startPosition
  } : images;

  _extends(image_preview_instance, image_preview_defaultConfig, options);

  image_preview_instance.$once('input', function (show) {
    image_preview_instance.value = show;
  });
  image_preview_instance.$once('closed', function () {
    image_preview_instance.images = [];
  });

  if (options.onClose) {
    image_preview_instance.$off('close');
    image_preview_instance.$once('close', options.onClose);
  }

  return image_preview_instance;
};

es_image_preview_ImagePreview.Component = image_preview_ImagePreview;

es_image_preview_ImagePreview.install = function () {
  vue_default.a.use(image_preview_ImagePreview);
};

/* harmony default export */ var image_preview = (es_image_preview_ImagePreview);
// CONCATENATED MODULE: ./node_modules/vant/es/index-anchor/index.js





var index_anchor_createNamespace = Object(create["a" /* createNamespace */])('index-anchor'),
    index_anchor_createComponent = index_anchor_createNamespace[0],
    index_anchor_bem = index_anchor_createNamespace[1];

/* harmony default export */ var index_anchor = (index_anchor_createComponent({
  mixins: [ChildrenMixin('vanIndexBar', {
    indexKey: 'childrenIndex'
  })],
  props: {
    index: [Number, String]
  },
  data: function data() {
    return {
      top: 0,
      left: null,
      rect: {
        top: 0,
        height: 0
      },
      width: null,
      active: false
    };
  },
  computed: {
    sticky: function sticky() {
      return this.active && this.parent.sticky;
    },
    anchorStyle: function anchorStyle() {
      if (this.sticky) {
        return {
          zIndex: "" + this.parent.zIndex,
          left: this.left ? this.left + "px" : null,
          width: this.width ? this.width + "px" : null,
          transform: "translate3d(0, " + this.top + "px, 0)",
          color: this.parent.highlightColor
        };
      }
    }
  },
  mounted: function mounted() {
    var rect = this.$el.getBoundingClientRect();
    this.rect.height = rect.height;
  },
  methods: {
    scrollIntoView: function scrollIntoView() {
      this.$el.scrollIntoView();
    },
    getRect: function getRect(scroller, scrollerRect) {
      var el = this.$el;
      var elRect = el.getBoundingClientRect();
      this.rect.height = elRect.height;

      if (scroller === window || scroller === document.body) {
        this.rect.top = elRect.top + getRootScrollTop();
      } else {
        this.rect.top = elRect.top + getScrollTop(scroller) - scrollerRect.top;
      }

      return this.rect;
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    var sticky = this.sticky;
    return h("div", {
      "style": {
        height: sticky ? this.rect.height + "px" : null
      }
    }, [h("div", {
      "style": this.anchorStyle,
      "class": [index_anchor_bem({
        sticky: sticky
      }), (_ref = {}, _ref[BORDER_BOTTOM] = sticky, _ref)]
    }, [this.slots('default') || this.index])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/index-bar/index.js
// Utils



 // Mixins





function genAlphabet() {
  var indexList = [];
  var charCodeOfA = 'A'.charCodeAt(0);

  for (var i = 0; i < 26; i++) {
    indexList.push(String.fromCharCode(charCodeOfA + i));
  }

  return indexList;
}

var index_bar_createNamespace = Object(create["a" /* createNamespace */])('index-bar'),
    index_bar_createComponent = index_bar_createNamespace[0],
    index_bar_bem = index_bar_createNamespace[1];

/* harmony default export */ var index_bar = (index_bar_createComponent({
  mixins: [TouchMixin, ParentMixin('vanIndexBar'), BindEventMixin(function (bind) {
    if (!this.scroller) {
      this.scroller = getScroller(this.$el);
    }

    bind(this.scroller, 'scroll', this.onScroll);
  })],
  props: {
    zIndex: [Number, String],
    highlightColor: String,
    sticky: {
      type: Boolean,
      default: true
    },
    stickyOffsetTop: {
      type: Number,
      default: 0
    },
    indexList: {
      type: Array,
      default: genAlphabet
    }
  },
  data: function data() {
    return {
      activeAnchorIndex: null
    };
  },
  computed: {
    sidebarStyle: function sidebarStyle() {
      if (Object(utils["c" /* isDef */])(this.zIndex)) {
        return {
          zIndex: this.zIndex + 1
        };
      }
    },
    highlightStyle: function highlightStyle() {
      var highlightColor = this.highlightColor;

      if (highlightColor) {
        return {
          color: highlightColor
        };
      }
    }
  },
  watch: {
    indexList: function indexList() {
      this.$nextTick(this.onScroll);
    },
    activeAnchorIndex: function activeAnchorIndex(value) {
      if (value) {
        this.$emit('change', value);
      }
    }
  },
  methods: {
    onScroll: function onScroll() {
      var _this = this;

      if (isHidden(this.$el)) {
        return;
      }

      var scrollTop = getScrollTop(this.scroller);
      var scrollerRect = this.getScrollerRect();
      var rects = this.children.map(function (item) {
        return item.getRect(_this.scroller, scrollerRect);
      });
      var active = this.getActiveAnchorIndex(scrollTop, rects);
      this.activeAnchorIndex = this.indexList[active];

      if (this.sticky) {
        this.children.forEach(function (item, index) {
          if (index === active || index === active - 1) {
            var rect = item.$el.getBoundingClientRect();
            item.left = rect.left;
            item.width = rect.width;
          } else {
            item.left = null;
            item.width = null;
          }

          if (index === active) {
            item.active = true;
            item.top = Math.max(_this.stickyOffsetTop, rects[index].top - scrollTop) + scrollerRect.top;
          } else if (index === active - 1) {
            var activeItemTop = rects[active].top - scrollTop;
            item.active = activeItemTop > 0;
            item.top = activeItemTop + scrollerRect.top - rects[index].height;
          } else {
            item.active = false;
          }
        });
      }
    },
    getScrollerRect: function getScrollerRect() {
      if (this.scroller.getBoundingClientRect) {
        return this.scroller.getBoundingClientRect();
      }

      return {
        top: 0,
        left: 0
      };
    },
    getActiveAnchorIndex: function getActiveAnchorIndex(scrollTop, rects) {
      for (var i = this.children.length - 1; i >= 0; i--) {
        var prevHeight = i > 0 ? rects[i - 1].height : 0;
        var reachTop = this.sticky ? prevHeight + this.stickyOffsetTop : 0;

        if (scrollTop + reachTop >= rects[i].top) {
          return i;
        }
      }

      return -1;
    },
    onClick: function onClick(event) {
      this.scrollToElement(event.target);
    },
    onTouchMove: function onTouchMove(event) {
      this.touchMove(event);

      if (this.direction === 'vertical') {
        preventDefault(event);
        var _event$touches$ = event.touches[0],
            clientX = _event$touches$.clientX,
            clientY = _event$touches$.clientY;
        var target = document.elementFromPoint(clientX, clientY);

        if (target) {
          var index = target.dataset.index;
          /* istanbul ignore else */

          if (this.touchActiveIndex !== index) {
            this.touchActiveIndex = index;
            this.scrollToElement(target);
          }
        }
      }
    },
    scrollTo: function scrollTo(index) {
      var match = this.children.filter(function (item) {
        return String(item.index) === index;
      });

      if (match[0]) {
        match[0].scrollIntoView();

        if (this.sticky && this.stickyOffsetTop) {
          setRootScrollTop(getRootScrollTop() - this.stickyOffsetTop);
        }

        this.$emit('select', match[0].index);
      }
    },
    scrollToElement: function scrollToElement(element) {
      var index = element.dataset.index;
      this.scrollTo(index);
    },
    onTouchEnd: function onTouchEnd() {
      this.active = null;
    }
  },
  render: function render() {
    var _this2 = this;

    var h = arguments[0];
    var Indexes = this.indexList.map(function (index) {
      var active = index === _this2.activeAnchorIndex;
      return h("span", {
        "class": index_bar_bem('index', {
          active: active
        }),
        "style": active ? _this2.highlightStyle : null,
        "attrs": {
          "data-index": index
        }
      }, [index]);
    });
    return h("div", {
      "class": index_bar_bem()
    }, [h("div", {
      "class": index_bar_bem('sidebar'),
      "style": this.sidebarStyle,
      "on": {
        "click": this.onClick,
        "touchstart": this.touchStart,
        "touchmove": this.onTouchMove,
        "touchend": this.onTouchEnd,
        "touchcancel": this.onTouchEnd
      }
    }, [Indexes]), this.slots('default')]);
  }
}));
// EXTERNAL MODULE: ./node_modules/vant/node_modules/vue-lazyload/vue-lazyload.js
var vue_lazyload = __webpack_require__(1822);
var vue_lazyload_default = /*#__PURE__*/__webpack_require__.n(vue_lazyload);

// CONCATENATED MODULE: ./node_modules/vant/es/lazyload/index.js

/* harmony default export */ var lazyload = (vue_lazyload_default.a);
// CONCATENATED MODULE: ./node_modules/vant/es/list/index.js
// Utils


 // Mixins

 // Components



var list_createNamespace = Object(create["a" /* createNamespace */])('list'),
    list_createComponent = list_createNamespace[0],
    list_bem = list_createNamespace[1],
    list_t = list_createNamespace[2];

/* harmony default export */ var es_list = (list_createComponent({
  mixins: [BindEventMixin(function (bind) {
    if (!this.scroller) {
      this.scroller = getScroller(this.$el);
    }

    bind(this.scroller, 'scroll', this.check);
  })],
  model: {
    prop: 'loading'
  },
  props: {
    error: Boolean,
    loading: Boolean,
    finished: Boolean,
    errorText: String,
    loadingText: String,
    finishedText: String,
    immediateCheck: {
      type: Boolean,
      default: true
    },
    offset: {
      type: [Number, String],
      default: 300
    },
    direction: {
      type: String,
      default: 'down'
    }
  },
  data: function data() {
    return {
      // use sync innerLoading state to avoid repeated loading in some edge cases
      innerLoading: this.loading
    };
  },
  updated: function updated() {
    this.innerLoading = this.loading;
  },
  mounted: function mounted() {
    if (this.immediateCheck) {
      this.check();
    }
  },
  watch: {
    loading: 'check',
    finished: 'check'
  },
  methods: {
    // @exposed-api
    check: function check() {
      var _this = this;

      this.$nextTick(function () {
        if (_this.innerLoading || _this.finished || _this.error) {
          return;
        }

        var el = _this.$el,
            scroller = _this.scroller,
            offset = _this.offset,
            direction = _this.direction;
        var scrollerRect;

        if (scroller.getBoundingClientRect) {
          scrollerRect = scroller.getBoundingClientRect();
        } else {
          scrollerRect = {
            top: 0,
            bottom: scroller.innerHeight
          };
        }

        var scrollerHeight = scrollerRect.bottom - scrollerRect.top;
        /* istanbul ignore next */

        if (!scrollerHeight || isHidden(el)) {
          return false;
        }

        var isReachEdge = false;

        var placeholderRect = _this.$refs.placeholder.getBoundingClientRect();

        if (direction === 'up') {
          isReachEdge = scrollerRect.top - placeholderRect.top <= offset;
        } else {
          isReachEdge = placeholderRect.bottom - scrollerRect.bottom <= offset;
        }

        if (isReachEdge) {
          _this.innerLoading = true;

          _this.$emit('input', true);

          _this.$emit('load');
        }
      });
    },
    clickErrorText: function clickErrorText() {
      this.$emit('update:error', false);
      this.check();
    },
    genLoading: function genLoading() {
      var h = this.$createElement;

      if (this.innerLoading && !this.finished) {
        return h("div", {
          "key": "loading",
          "class": list_bem('loading')
        }, [this.slots('loading') || h(es_loading, {
          "attrs": {
            "size": "16"
          }
        }, [this.loadingText || list_t('loading')])]);
      }
    },
    genFinishedText: function genFinishedText() {
      var h = this.$createElement;

      if (this.finished) {
        var text = this.slots('finished') || this.finishedText;

        if (text) {
          return h("div", {
            "class": list_bem('finished-text')
          }, [text]);
        }
      }
    },
    genErrorText: function genErrorText() {
      var h = this.$createElement;

      if (this.error) {
        var text = this.slots('error') || this.errorText;

        if (text) {
          return h("div", {
            "on": {
              "click": this.clickErrorText
            },
            "class": list_bem('error-text')
          }, [text]);
        }
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var Placeholder = h("div", {
      "ref": "placeholder",
      "key": "placeholder",
      "class": list_bem('placeholder')
    });
    return h("div", {
      "class": list_bem(),
      "attrs": {
        "role": "feed",
        "aria-busy": this.innerLoading
      }
    }, [this.direction === 'down' ? this.slots() : Placeholder, this.genLoading(), this.genFinishedText(), this.genErrorText(), this.direction === 'up' ? this.slots() : Placeholder]);
  }
}));
// EXTERNAL MODULE: ./node_modules/vant/es/locale/index.js + 2 modules
var locale = __webpack_require__(123);

// CONCATENATED MODULE: ./node_modules/vant/es/nav-bar/index.js
// Utils

 // Components



var nav_bar_createNamespace = Object(create["a" /* createNamespace */])('nav-bar'),
    nav_bar_createComponent = nav_bar_createNamespace[0],
    nav_bar_bem = nav_bar_createNamespace[1];

/* harmony default export */ var nav_bar = (nav_bar_createComponent({
  props: {
    title: String,
    fixed: Boolean,
    zIndex: [Number, String],
    leftText: String,
    rightText: String,
    leftArrow: Boolean,
    placeholder: Boolean,
    safeAreaInsetTop: Boolean,
    border: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      height: null
    };
  },
  mounted: function mounted() {
    var _this = this;

    if (this.placeholder && this.fixed) {
      var setHeight = function setHeight() {
        _this.height = _this.$refs.navBar.getBoundingClientRect().height;
      };

      setHeight(); // https://github.com/vant-ui/vant/issues/10131

      setTimeout(setHeight, 100);
    }
  },
  methods: {
    genLeft: function genLeft() {
      var h = this.$createElement;
      var leftSlot = this.slots('left');

      if (leftSlot) {
        return leftSlot;
      }

      return [this.leftArrow && h(es_icon, {
        "class": nav_bar_bem('arrow'),
        "attrs": {
          "name": "arrow-left"
        }
      }), this.leftText && h("span", {
        "class": nav_bar_bem('text')
      }, [this.leftText])];
    },
    genRight: function genRight() {
      var h = this.$createElement;
      var rightSlot = this.slots('right');

      if (rightSlot) {
        return rightSlot;
      }

      if (this.rightText) {
        return h("span", {
          "class": nav_bar_bem('text')
        }, [this.rightText]);
      }
    },
    genNavBar: function genNavBar() {
      var _ref;

      var h = this.$createElement;
      return h("div", {
        "ref": "navBar",
        "style": {
          zIndex: this.zIndex
        },
        "class": [nav_bar_bem({
          fixed: this.fixed,
          'safe-area-inset-top': this.safeAreaInsetTop
        }), (_ref = {}, _ref[BORDER_BOTTOM] = this.border, _ref)]
      }, [h("div", {
        "class": nav_bar_bem('content')
      }, [this.hasLeft() && h("div", {
        "class": nav_bar_bem('left'),
        "on": {
          "click": this.onClickLeft
        }
      }, [this.genLeft()]), h("div", {
        "class": [nav_bar_bem('title'), 'van-ellipsis']
      }, [this.slots('title') || this.title]), this.hasRight() && h("div", {
        "class": nav_bar_bem('right'),
        "on": {
          "click": this.onClickRight
        }
      }, [this.genRight()])])]);
    },
    hasLeft: function hasLeft() {
      return this.leftArrow || this.leftText || this.slots('left');
    },
    hasRight: function hasRight() {
      return this.rightText || this.slots('right');
    },
    onClickLeft: function onClickLeft(event) {
      this.$emit('click-left', event);
    },
    onClickRight: function onClickRight(event) {
      this.$emit('click-right', event);
    }
  },
  render: function render() {
    var h = arguments[0];

    if (this.placeholder && this.fixed) {
      return h("div", {
        "class": nav_bar_bem('placeholder'),
        "style": {
          height: this.height + "px"
        }
      }, [this.genNavBar()]);
    }

    return this.genNavBar();
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/notice-bar/index.js





var notice_bar_createNamespace = Object(create["a" /* createNamespace */])('notice-bar'),
    notice_bar_createComponent = notice_bar_createNamespace[0],
    notice_bar_bem = notice_bar_createNamespace[1];

/* harmony default export */ var notice_bar = (notice_bar_createComponent({
  mixins: [BindEventMixin(function (bind) {
    // fix cache issues with forwards and back history in safari
    // see: https://guwii.com/cache-issues-with-forwards-and-back-history-in-safari/
    bind(window, 'pageshow', this.reset);
  })],
  inject: {
    vanPopup: {
      default: null
    }
  },
  props: {
    text: String,
    mode: String,
    color: String,
    leftIcon: String,
    wrapable: Boolean,
    background: String,
    scrollable: {
      type: Boolean,
      default: null
    },
    delay: {
      type: [Number, String],
      default: 1
    },
    speed: {
      type: [Number, String],
      default: 60
    }
  },
  data: function data() {
    return {
      show: true,
      offset: 0,
      duration: 0,
      wrapWidth: 0,
      contentWidth: 0
    };
  },
  watch: {
    scrollable: 'reset',
    text: {
      handler: 'reset',
      immediate: true
    }
  },
  created: function created() {
    // https://github.com/vant-ui/vant/issues/8634
    if (this.vanPopup) {
      this.vanPopup.onReopen(this.reset);
    }
  },
  activated: function activated() {
    this.reset();
  },
  methods: {
    onClickIcon: function onClickIcon(event) {
      if (this.mode === 'closeable') {
        this.show = false;
        this.$emit('close', event);
      }
    },
    onTransitionEnd: function onTransitionEnd() {
      var _this = this;

      this.offset = this.wrapWidth;
      this.duration = 0; // wait for Vue to render offset
      // using nextTick won't work in iOS14

      Object(raf["c" /* raf */])(function () {
        // use double raf to ensure animation can start
        Object(raf["b" /* doubleRaf */])(function () {
          _this.offset = -_this.contentWidth;
          _this.duration = (_this.contentWidth + _this.wrapWidth) / _this.speed;

          _this.$emit('replay');
        });
      });
    },
    // not an exposed-api, but may used by some users
    start: function start() {
      this.reset();
    },
    // @exposed-api
    reset: function reset() {
      var _this2 = this;

      var delay = Object(utils["c" /* isDef */])(this.delay) ? this.delay * 1000 : 0;
      this.offset = 0;
      this.duration = 0;
      this.wrapWidth = 0;
      this.contentWidth = 0;
      clearTimeout(this.startTimer);
      this.startTimer = setTimeout(function () {
        var _this2$$refs = _this2.$refs,
            wrap = _this2$$refs.wrap,
            content = _this2$$refs.content;

        if (!wrap || !content || _this2.scrollable === false) {
          return;
        }

        var wrapWidth = wrap.getBoundingClientRect().width;
        var contentWidth = content.getBoundingClientRect().width;

        if (_this2.scrollable || contentWidth > wrapWidth) {
          Object(raf["b" /* doubleRaf */])(function () {
            _this2.offset = -contentWidth;
            _this2.duration = contentWidth / _this2.speed;
            _this2.wrapWidth = wrapWidth;
            _this2.contentWidth = contentWidth;
          });
        }
      }, delay);
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];
    var slots = this.slots,
        mode = this.mode,
        leftIcon = this.leftIcon,
        onClickIcon = this.onClickIcon;
    var barStyle = {
      color: this.color,
      background: this.background
    };
    var contentStyle = {
      transform: this.offset ? "translateX(" + this.offset + "px)" : '',
      transitionDuration: this.duration + 's'
    };

    function LeftIcon() {
      var slot = slots('left-icon');

      if (slot) {
        return slot;
      }

      if (leftIcon) {
        return h(es_icon, {
          "class": notice_bar_bem('left-icon'),
          "attrs": {
            "name": leftIcon
          }
        });
      }
    }

    function RightIcon() {
      var slot = slots('right-icon');

      if (slot) {
        return slot;
      }

      var iconName;

      if (mode === 'closeable') {
        iconName = 'cross';
      } else if (mode === 'link') {
        iconName = 'arrow';
      }

      if (iconName) {
        return h(es_icon, {
          "class": notice_bar_bem('right-icon'),
          "attrs": {
            "name": iconName
          },
          "on": {
            "click": onClickIcon
          }
        });
      }
    }

    return h("div", {
      "attrs": {
        "role": "alert"
      },
      "directives": [{
        name: "show",
        value: this.show
      }],
      "class": notice_bar_bem({
        wrapable: this.wrapable
      }),
      "style": barStyle,
      "on": {
        "click": function click(event) {
          _this3.$emit('click', event);
        }
      }
    }, [LeftIcon(), h("div", {
      "ref": "wrap",
      "class": notice_bar_bem('wrap'),
      "attrs": {
        "role": "marquee"
      }
    }, [h("div", {
      "ref": "content",
      "class": [notice_bar_bem('content'), {
        'van-ellipsis': this.scrollable === false && !this.wrapable
      }],
      "style": contentStyle,
      "on": {
        "transitionend": this.onTransitionEnd
      }
    }, [this.slots() || this.text])]), RightIcon()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/notify/Notify.js


// Utils

 // Mixins

 // Components

 // Types

var Notify_createNamespace = Object(create["a" /* createNamespace */])('notify'),
    Notify_createComponent = Notify_createNamespace[0],
    Notify_bem = Notify_createNamespace[1];

function Notify(h, props, slots, ctx) {
  var style = {
    color: props.color,
    background: props.background
  };
  return h(popup, helper_default()([{
    "attrs": {
      "value": props.value,
      "position": "top",
      "overlay": false,
      "duration": 0.2,
      "lockScroll": false
    },
    "style": style,
    "class": [Notify_bem([props.type]), props.className]
  }, inherit(ctx, true)]), [(slots.default == null ? void 0 : slots.default()) || props.message]);
}

Notify.props = _extends({}, popupMixinProps, {
  color: String,
  message: [Number, String],
  duration: [Number, String],
  className: null,
  background: String,
  getContainer: [String, Function],
  type: {
    type: String,
    default: 'danger'
  }
});
/* harmony default export */ var notify_Notify = (Notify_createComponent(Notify));
// CONCATENATED MODULE: ./node_modules/vant/es/notify/index.js





var timer;
var notify_instance;

function notify_parseOptions(message) {
  return Object(utils["f" /* isObject */])(message) ? message : {
    message: message
  };
}

function es_notify_Notify(options) {
  /* istanbul ignore if */
  if (utils["h" /* isServer */]) {
    return;
  }

  if (!notify_instance) {
    notify_instance = mount(notify_Notify, {
      on: {
        click: function click(event) {
          if (notify_instance.onClick) {
            notify_instance.onClick(event);
          }
        },
        close: function close() {
          if (notify_instance.onClose) {
            notify_instance.onClose();
          }
        },
        opened: function opened() {
          if (notify_instance.onOpened) {
            notify_instance.onOpened();
          }
        }
      }
    });
  }

  options = _extends({}, es_notify_Notify.currentOptions, notify_parseOptions(options));

  _extends(notify_instance, options);

  clearTimeout(timer);

  if (options.duration && options.duration > 0) {
    timer = setTimeout(es_notify_Notify.clear, options.duration);
  }

  return notify_instance;
}

function notify_defaultOptions() {
  return {
    type: 'danger',
    value: true,
    message: '',
    color: undefined,
    background: undefined,
    duration: 3000,
    className: '',
    onClose: null,
    onClick: null,
    onOpened: null
  };
}

es_notify_Notify.clear = function () {
  if (notify_instance) {
    notify_instance.value = false;
  }
};

es_notify_Notify.currentOptions = notify_defaultOptions();

es_notify_Notify.setDefaultOptions = function (options) {
  _extends(es_notify_Notify.currentOptions, options);
};

es_notify_Notify.resetDefaultOptions = function () {
  es_notify_Notify.currentOptions = notify_defaultOptions();
};

es_notify_Notify.install = function () {
  vue_default.a.use(notify_Notify);
};

es_notify_Notify.Component = notify_Notify;
vue_default.a.prototype.$notify = es_notify_Notify;
/* harmony default export */ var notify = (es_notify_Notify);
// CONCATENATED MODULE: ./node_modules/vant/es/number-keyboard/DeleteIcon.js
/* harmony default export */ var number_keyboard_DeleteIcon = ({
  render: function render() {
    var h = arguments[0];
    return h("svg", {
      "attrs": {
        "viewBox": "0 0 32 22",
        "xmlns": "http://www.w3.org/2000/svg"
      }
    }, [h("path", {
      "attrs": {
        "d": "M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",
        "fill": "currentColor"
      }
    })]);
  }
});
// CONCATENATED MODULE: ./node_modules/vant/es/number-keyboard/CollapseIcon.js
/* harmony default export */ var CollapseIcon = ({
  render: function render() {
    var h = arguments[0];
    return h("svg", {
      "attrs": {
        "viewBox": "0 0 30 24",
        "xmlns": "http://www.w3.org/2000/svg"
      }
    }, [h("path", {
      "attrs": {
        "d": "M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",
        "fill": "currentColor"
      }
    })]);
  }
});
// CONCATENATED MODULE: ./node_modules/vant/es/number-keyboard/Key.js






var Key_createNamespace = Object(create["a" /* createNamespace */])('key'),
    Key_createComponent = Key_createNamespace[0],
    Key_bem = Key_createNamespace[1];

/* harmony default export */ var Key = (Key_createComponent({
  mixins: [TouchMixin],
  props: {
    type: String,
    text: [Number, String],
    color: String,
    wider: Boolean,
    large: Boolean,
    loading: Boolean
  },
  data: function data() {
    return {
      active: false
    };
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);
  },
  methods: {
    onTouchStart: function onTouchStart(event) {
      // compatible with Vue 2.6 event bubble bug
      event.stopPropagation();
      this.touchStart(event);
      this.active = true;
    },
    onTouchMove: function onTouchMove(event) {
      this.touchMove(event);

      if (this.direction) {
        this.active = false;
      }
    },
    onTouchEnd: function onTouchEnd(event) {
      if (this.active) {
        // eliminate tap delay on safari
        // see: https://github.com/vant-ui/vant/issues/6836
        if (!this.slots('default')) {
          event.preventDefault();
        }

        this.active = false;
        this.$emit('press', this.text, this.type);
      }
    },
    genContent: function genContent() {
      var h = this.$createElement;
      var isExtra = this.type === 'extra';
      var isDelete = this.type === 'delete';
      var text = this.slots('default') || this.text;

      if (this.loading) {
        return h(es_loading, {
          "class": Key_bem('loading-icon')
        });
      }

      if (isDelete) {
        return text || h(number_keyboard_DeleteIcon, {
          "class": Key_bem('delete-icon')
        });
      }

      if (isExtra) {
        return text || h(CollapseIcon, {
          "class": Key_bem('collapse-icon')
        });
      }

      return text;
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": Key_bem('wrapper', {
        wider: this.wider
      })
    }, [h("div", {
      "attrs": {
        "role": "button",
        "tabindex": "0"
      },
      "class": Key_bem([this.color, {
        large: this.large,
        active: this.active,
        delete: this.type === 'delete'
      }])
    }, [this.genContent()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/number-keyboard/index.js






var number_keyboard_createNamespace = Object(create["a" /* createNamespace */])('number-keyboard'),
    number_keyboard_createComponent = number_keyboard_createNamespace[0],
    number_keyboard_bem = number_keyboard_createNamespace[1];

/* harmony default export */ var number_keyboard = (number_keyboard_createComponent({
  mixins: [PortalMixin(), BindEventMixin(function (bind) {
    if (this.hideOnClickOutside) {
      bind(document.body, 'touchstart', this.onBlur);
    }
  })],
  model: {
    event: 'update:value'
  },
  props: {
    show: Boolean,
    title: String,
    zIndex: [Number, String],
    randomKeyOrder: Boolean,
    closeButtonText: String,
    deleteButtonText: String,
    closeButtonLoading: Boolean,
    theme: {
      type: String,
      default: 'default'
    },
    value: {
      type: String,
      default: ''
    },
    extraKey: {
      type: [String, Array],
      default: ''
    },
    maxlength: {
      type: [Number, String],
      default: Number.MAX_VALUE
    },
    transition: {
      type: Boolean,
      default: true
    },
    showDeleteKey: {
      type: Boolean,
      default: true
    },
    hideOnClickOutside: {
      type: Boolean,
      default: true
    },
    safeAreaInsetBottom: {
      type: Boolean,
      default: true
    }
  },
  watch: {
    show: function show(val) {
      if (!this.transition) {
        this.$emit(val ? 'show' : 'hide');
      }
    }
  },
  computed: {
    keys: function keys() {
      if (this.theme === 'custom') {
        return this.genCustomKeys();
      }

      return this.genDefaultKeys();
    }
  },
  methods: {
    genBasicKeys: function genBasicKeys() {
      var keys = [];

      for (var i = 1; i <= 9; i++) {
        keys.push({
          text: i
        });
      }

      if (this.randomKeyOrder) {
        keys.sort(function () {
          return Math.random() > 0.5 ? 1 : -1;
        });
      }

      return keys;
    },
    genDefaultKeys: function genDefaultKeys() {
      return [].concat(this.genBasicKeys(), [{
        text: this.extraKey,
        type: 'extra'
      }, {
        text: 0
      }, {
        text: this.showDeleteKey ? this.deleteButtonText : '',
        type: this.showDeleteKey ? 'delete' : ''
      }]);
    },
    genCustomKeys: function genCustomKeys() {
      var keys = this.genBasicKeys();
      var extraKey = this.extraKey;
      var extraKeys = Array.isArray(extraKey) ? extraKey : [extraKey];

      if (extraKeys.length === 1) {
        keys.push({
          text: 0,
          wider: true
        }, {
          text: extraKeys[0],
          type: 'extra'
        });
      } else if (extraKeys.length === 2) {
        keys.push({
          text: extraKeys[0],
          type: 'extra'
        }, {
          text: 0
        }, {
          text: extraKeys[1],
          type: 'extra'
        });
      }

      return keys;
    },
    onBlur: function onBlur() {
      this.show && this.$emit('blur');
    },
    onClose: function onClose() {
      this.$emit('close');
      this.onBlur();
    },
    onAnimationEnd: function onAnimationEnd() {
      this.$emit(this.show ? 'show' : 'hide');
    },
    onPress: function onPress(text, type) {
      if (text === '') {
        if (type === 'extra') {
          this.onBlur();
        }

        return;
      }

      var value = this.value;

      if (type === 'delete') {
        this.$emit('delete');
        this.$emit('update:value', value.slice(0, value.length - 1));
      } else if (type === 'close') {
        this.onClose();
      } else if (value.length < this.maxlength) {
        this.$emit('input', text);
        this.$emit('update:value', value + text);
      }
    },
    genTitle: function genTitle() {
      var h = this.$createElement;
      var title = this.title,
          theme = this.theme,
          closeButtonText = this.closeButtonText;
      var titleLeft = this.slots('title-left');
      var showClose = closeButtonText && theme === 'default';
      var showTitle = title || showClose || titleLeft;

      if (!showTitle) {
        return;
      }

      return h("div", {
        "class": number_keyboard_bem('header')
      }, [titleLeft && h("span", {
        "class": number_keyboard_bem('title-left')
      }, [titleLeft]), title && h("h2", {
        "class": number_keyboard_bem('title')
      }, [title]), showClose && h("button", {
        "attrs": {
          "type": "button"
        },
        "class": number_keyboard_bem('close'),
        "on": {
          "click": this.onClose
        }
      }, [closeButtonText])]);
    },
    genKeys: function genKeys() {
      var _this = this;

      var h = this.$createElement;
      return this.keys.map(function (key) {
        return h(Key, {
          "key": key.text,
          "attrs": {
            "text": key.text,
            "type": key.type,
            "wider": key.wider,
            "color": key.color
          },
          "on": {
            "press": _this.onPress
          }
        }, [key.type === 'delete' && _this.slots('delete'), key.type === 'extra' && _this.slots('extra-key')]);
      });
    },
    genSidebar: function genSidebar() {
      var h = this.$createElement;

      if (this.theme === 'custom') {
        return h("div", {
          "class": number_keyboard_bem('sidebar')
        }, [this.showDeleteKey && h(Key, {
          "attrs": {
            "large": true,
            "text": this.deleteButtonText,
            "type": "delete"
          },
          "on": {
            "press": this.onPress
          }
        }, [this.slots('delete')]), h(Key, {
          "attrs": {
            "large": true,
            "text": this.closeButtonText,
            "type": "close",
            "color": "blue",
            "loading": this.closeButtonLoading
          },
          "on": {
            "press": this.onPress
          }
        })]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var Title = this.genTitle();
    return h("transition", {
      "attrs": {
        "name": this.transition ? 'van-slide-up' : ''
      }
    }, [h("div", {
      "directives": [{
        name: "show",
        value: this.show
      }],
      "style": {
        zIndex: this.zIndex
      },
      "class": number_keyboard_bem({
        unfit: !this.safeAreaInsetBottom,
        'with-title': Title
      }),
      "on": {
        "touchstart": event_stopPropagation,
        "animationend": this.onAnimationEnd,
        "webkitAnimationEnd": this.onAnimationEnd
      }
    }, [Title, h("div", {
      "class": number_keyboard_bem('body')
    }, [h("div", {
      "class": number_keyboard_bem('keys')
    }, [this.genKeys()]), this.genSidebar()])])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/pagination/index.js



var pagination_createNamespace = Object(create["a" /* createNamespace */])('pagination'),
    pagination_createComponent = pagination_createNamespace[0],
    pagination_bem = pagination_createNamespace[1],
    pagination_t = pagination_createNamespace[2];

function makePage(number, text, active) {
  return {
    number: number,
    text: text,
    active: active
  };
}

/* harmony default export */ var pagination = (pagination_createComponent({
  props: {
    prevText: String,
    nextText: String,
    forceEllipses: Boolean,
    mode: {
      type: String,
      default: 'multi'
    },
    value: {
      type: Number,
      default: 0
    },
    pageCount: {
      type: [Number, String],
      default: 0
    },
    totalItems: {
      type: [Number, String],
      default: 0
    },
    itemsPerPage: {
      type: [Number, String],
      default: 10
    },
    showPageSize: {
      type: [Number, String],
      default: 5
    }
  },
  computed: {
    count: function count() {
      var count = this.pageCount || Math.ceil(this.totalItems / this.itemsPerPage);
      return Math.max(1, count);
    },
    pages: function pages() {
      var pages = [];
      var pageCount = this.count;
      var showPageSize = +this.showPageSize;

      if (this.mode !== 'multi') {
        return pages;
      } // Default page limits


      var startPage = 1;
      var endPage = pageCount;
      var isMaxSized = showPageSize < pageCount; // recompute if showPageSize

      if (isMaxSized) {
        // Current page is displayed in the middle of the visible ones
        startPage = Math.max(this.value - Math.floor(showPageSize / 2), 1);
        endPage = startPage + showPageSize - 1; // Adjust if limit is exceeded

        if (endPage > pageCount) {
          endPage = pageCount;
          startPage = endPage - showPageSize + 1;
        }
      } // Add page number links


      for (var number = startPage; number <= endPage; number++) {
        var page = makePage(number, number, number === this.value);
        pages.push(page);
      } // Add links to move between page sets


      if (isMaxSized && showPageSize > 0 && this.forceEllipses) {
        if (startPage > 1) {
          var previousPageSet = makePage(startPage - 1, '...', false);
          pages.unshift(previousPageSet);
        }

        if (endPage < pageCount) {
          var nextPageSet = makePage(endPage + 1, '...', false);
          pages.push(nextPageSet);
        }
      }

      return pages;
    }
  },
  watch: {
    value: {
      handler: function handler(page) {
        this.select(page || this.value);
      },
      immediate: true
    }
  },
  methods: {
    select: function select(page, emitChange) {
      page = Math.min(this.count, Math.max(1, page));

      if (this.value !== page) {
        this.$emit('input', page);

        if (emitChange) {
          this.$emit('change', page);
        }
      }
    }
  },
  render: function render() {
    var _this = this,
        _this$slots,
        _this$slots3;

    var h = arguments[0];
    var value = this.value;
    var simple = this.mode !== 'multi';

    var onSelect = function onSelect(value) {
      return function () {
        _this.select(value, true);
      };
    };

    return h("ul", {
      "class": pagination_bem({
        simple: simple
      })
    }, [h("li", {
      "class": [pagination_bem('item', {
        disabled: value === 1
      }), pagination_bem('prev'), BORDER],
      "on": {
        "click": onSelect(value - 1)
      }
    }, [((_this$slots = this.slots('prev-text')) != null ? _this$slots : this.prevText) || pagination_t('prev')]), this.pages.map(function (page) {
      var _this$slots2;

      return h("li", {
        "class": [pagination_bem('item', {
          active: page.active
        }), pagination_bem('page'), BORDER],
        "on": {
          "click": onSelect(page.number)
        }
      }, [(_this$slots2 = _this.slots('page', page)) != null ? _this$slots2 : page.text]);
    }), simple && h("li", {
      "class": pagination_bem('page-desc')
    }, [this.slots('pageDesc') || value + "/" + this.count]), h("li", {
      "class": [pagination_bem('item', {
        disabled: value === this.count
      }), pagination_bem('next'), BORDER],
      "on": {
        "click": onSelect(value + 1)
      }
    }, [((_this$slots3 = this.slots('next-text')) != null ? _this$slots3 : this.nextText) || pagination_t('next')])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/panel/index.js

// Utils


 // Components


 // Types

var panel_createNamespace = Object(create["a" /* createNamespace */])('panel'),
    panel_createComponent = panel_createNamespace[0],
    panel_bem = panel_createNamespace[1];

function Panel(h, props, slots, ctx) {
  var Content = function Content() {
    return [slots.header ? slots.header() : h(cell, {
      "attrs": {
        "icon": props.icon,
        "label": props.desc,
        "title": props.title,
        "value": props.status,
        "valueClass": panel_bem('header-value')
      },
      "class": panel_bem('header')
    }), h("div", {
      "class": panel_bem('content')
    }, [slots.default && slots.default()]), slots.footer && h("div", {
      "class": [panel_bem('footer'), BORDER_TOP]
    }, [slots.footer()])];
  };

  return h(cell_group, helper_default()([{
    "class": panel_bem(),
    "scopedSlots": {
      default: Content
    }
  }, inherit(ctx, true)]));
}

Panel.props = {
  icon: String,
  desc: String,
  title: String,
  status: String
};
/* harmony default export */ var panel = (panel_createComponent(Panel));
// CONCATENATED MODULE: ./node_modules/vant/es/password-input/index.js

// Utils


 // Types

var password_input_createNamespace = Object(create["a" /* createNamespace */])('password-input'),
    password_input_createComponent = password_input_createNamespace[0],
    password_input_bem = password_input_createNamespace[1];

function PasswordInput(h, props, slots, ctx) {
  var _ref2;

  var mask = props.mask,
      value = props.value,
      length = props.length,
      gutter = props.gutter,
      focused = props.focused,
      errorInfo = props.errorInfo;
  var info = errorInfo || props.info;
  var Points = [];

  for (var i = 0; i < length; i++) {
    var _ref;

    var _char = value[i];
    var showBorder = i !== 0 && !gutter;
    var showCursor = focused && i === value.length;
    var style = void 0;

    if (i !== 0 && gutter) {
      style = {
        marginLeft: Object(unit["a" /* addUnit */])(gutter)
      };
    }

    Points.push(h("li", {
      "class": [(_ref = {}, _ref[BORDER_LEFT] = showBorder, _ref), password_input_bem('item', {
        focus: showCursor
      })],
      "style": style
    }, [mask ? h("i", {
      "style": {
        visibility: _char ? 'visible' : 'hidden'
      }
    }) : _char, showCursor && h("div", {
      "class": password_input_bem('cursor')
    })]));
  }

  return h("div", {
    "class": password_input_bem()
  }, [h("ul", helper_default()([{
    "class": [password_input_bem('security'), (_ref2 = {}, _ref2[BORDER_SURROUND] = !gutter, _ref2)],
    "on": {
      "touchstart": function touchstart(event) {
        event.stopPropagation();
        functional_emit(ctx, 'focus', event);
      }
    }
  }, inherit(ctx, true)]), [Points]), info && h("div", {
    "class": password_input_bem(errorInfo ? 'error-info' : 'info')
  }, [info])]);
}

PasswordInput.props = {
  info: String,
  gutter: [Number, String],
  focused: Boolean,
  errorInfo: String,
  mask: {
    type: Boolean,
    default: true
  },
  value: {
    type: String,
    default: ''
  },
  length: {
    type: [Number, String],
    default: 6
  }
};
/* harmony default export */ var password_input = (password_input_createComponent(PasswordInput));
// EXTERNAL MODULE: ./node_modules/@vant/popperjs/dist/index.esm.mjs
var index_esm = __webpack_require__(932);

// CONCATENATED MODULE: ./node_modules/vant/es/popover/index.js



 // Mixins

 // Components




var popover_createNamespace = Object(create["a" /* createNamespace */])('popover'),
    popover_createComponent = popover_createNamespace[0],
    popover_bem = popover_createNamespace[1];

/* harmony default export */ var popover = (popover_createComponent({
  mixins: [click_outside_ClickOutsideMixin({
    event: 'touchstart',
    method: 'onClickOutside'
  })],
  props: {
    value: Boolean,
    trigger: String,
    overlay: Boolean,
    offset: {
      type: Array,
      default: function _default() {
        return [0, 8];
      }
    },
    theme: {
      type: String,
      default: 'light'
    },
    actions: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    placement: {
      type: String,
      default: 'bottom'
    },
    getContainer: {
      type: [String, Function],
      default: 'body'
    },
    closeOnClickAction: {
      type: Boolean,
      default: true
    }
  },
  watch: {
    value: 'updateLocation',
    placement: 'updateLocation'
  },
  mounted: function mounted() {
    this.updateLocation();
  },
  beforeDestroy: function beforeDestroy() {
    if (this.popper) {
      if (!utils["h" /* isServer */]) {
        window.removeEventListener('animationend', this.updateLocation);
        window.removeEventListener('transitionend', this.updateLocation);
      }

      this.popper.destroy();
      this.popper = null;
    }
  },
  methods: {
    createPopper: function createPopper() {
      var popper = Object(index_esm["createPopper"])(this.$refs.wrapper, this.$refs.popover.$el, {
        placement: this.placement,
        modifiers: [{
          name: 'computeStyles',
          options: {
            adaptive: false,
            gpuAcceleration: false
          }
        }, _extends({}, index_esm["offsetModifier"], {
          options: {
            offset: this.offset
          }
        })]
      });

      if (!utils["h" /* isServer */]) {
        window.addEventListener('animationend', this.updateLocation);
        window.addEventListener('transitionend', this.updateLocation);
      }

      return popper;
    },
    updateLocation: function updateLocation() {
      var _this = this;

      this.$nextTick(function () {
        if (!_this.value) {
          return;
        }

        if (!_this.popper) {
          _this.popper = _this.createPopper();
        } else {
          _this.popper.setOptions({
            placement: _this.placement
          });
        }
      });
    },
    renderAction: function renderAction(action, index) {
      var _this2 = this;

      var h = this.$createElement;
      var icon = action.icon,
          text = action.text,
          disabled = action.disabled,
          className = action.className;
      return h("div", {
        "attrs": {
          "role": "menuitem"
        },
        "class": [popover_bem('action', {
          disabled: disabled,
          'with-icon': icon
        }), className],
        "on": {
          "click": function click() {
            return _this2.onClickAction(action, index);
          }
        }
      }, [icon && h(es_icon, {
        "attrs": {
          "name": icon
        },
        "class": popover_bem('action-icon')
      }), h("div", {
        "class": [popover_bem('action-text'), BORDER_BOTTOM]
      }, [text])]);
    },
    onToggle: function onToggle(value) {
      this.$emit('input', value);
    },
    onClickWrapper: function onClickWrapper() {
      if (this.trigger === 'click') {
        this.onToggle(!this.value);
      }
    },
    onTouchstart: function onTouchstart(event) {
      event.stopPropagation();
      this.$emit('touchstart', event);
    },
    onClickAction: function onClickAction(action, index) {
      if (action.disabled) {
        return;
      }

      this.$emit('select', action, index);

      if (this.closeOnClickAction) {
        this.$emit('input', false);
      }
    },
    onClickOutside: function onClickOutside() {
      this.$emit('input', false);
    },
    onOpen: function onOpen() {
      this.$emit('open');
    },

    /* istanbul ignore next */
    onOpened: function onOpened() {
      this.$emit('opened');
    },
    onClose: function onClose() {
      this.$emit('close');
    },

    /* istanbul ignore next */
    onClosed: function onClosed() {
      this.$emit('closed');
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("span", {
      "ref": "wrapper",
      "class": popover_bem('wrapper'),
      "on": {
        "click": this.onClickWrapper
      }
    }, [h(popup, {
      "ref": "popover",
      "attrs": {
        "value": this.value,
        "overlay": this.overlay,
        "position": null,
        "transition": "van-popover-zoom",
        "lockScroll": false,
        "getContainer": this.getContainer
      },
      "class": popover_bem([this.theme]),
      "on": {
        "open": this.onOpen,
        "close": this.onClose,
        "input": this.onToggle,
        "opened": this.onOpened,
        "closed": this.onClosed
      },
      "nativeOn": {
        "touchstart": this.onTouchstart
      }
    }, [h("div", {
      "class": popover_bem('arrow')
    }), h("div", {
      "class": popover_bem('content'),
      "attrs": {
        "role": "menu"
      }
    }, [this.slots('default') || this.actions.map(this.renderAction)])]), this.slots('reference')]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/progress/index.js



var progress_createNamespace = Object(create["a" /* createNamespace */])('progress'),
    progress_createComponent = progress_createNamespace[0],
    progress_bem = progress_createNamespace[1];

/* harmony default export */ var es_progress = (progress_createComponent({
  mixins: [BindEventMixin(function (bind) {
    bind(window, 'resize', this.resize, true);
    bind(window, 'orientationchange', this.resize, true);
  })],
  props: {
    color: String,
    inactive: Boolean,
    pivotText: String,
    textColor: String,
    pivotColor: String,
    trackColor: String,
    strokeWidth: [Number, String],
    percentage: {
      type: [Number, String],
      required: true,
      validator: function validator(value) {
        return value >= 0 && value <= 100;
      }
    },
    showPivot: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      pivotWidth: 0,
      progressWidth: 0
    };
  },
  mounted: function mounted() {
    this.resize();
  },
  watch: {
    showPivot: 'resize',
    pivotText: 'resize'
  },
  methods: {
    // @exposed-api
    resize: function resize() {
      var _this = this;

      this.$nextTick(function () {
        _this.progressWidth = _this.$el.offsetWidth;
        _this.pivotWidth = _this.$refs.pivot ? _this.$refs.pivot.offsetWidth : 0;
      });
    }
  },
  render: function render() {
    var h = arguments[0];
    var pivotText = this.pivotText,
        percentage = this.percentage;
    var text = pivotText != null ? pivotText : percentage + '%';
    var showPivot = this.showPivot && text;
    var background = this.inactive ? '#cacaca' : this.color;
    var pivotStyle = {
      color: this.textColor,
      left: (this.progressWidth - this.pivotWidth) * percentage / 100 + "px",
      background: this.pivotColor || background
    };
    var portionStyle = {
      background: background,
      width: this.progressWidth * percentage / 100 + 'px'
    };
    var wrapperStyle = {
      background: this.trackColor,
      height: Object(unit["a" /* addUnit */])(this.strokeWidth)
    };
    return h("div", {
      "class": progress_bem(),
      "style": wrapperStyle
    }, [h("span", {
      "class": progress_bem('portion'),
      "style": portionStyle
    }, [showPivot && h("span", {
      "ref": "pivot",
      "style": pivotStyle,
      "class": progress_bem('pivot')
    }, [text])])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/pull-refresh/index.js
// Utils


 // Mixins

 // Components



var pull_refresh_createNamespace = Object(create["a" /* createNamespace */])('pull-refresh'),
    pull_refresh_createComponent = pull_refresh_createNamespace[0],
    pull_refresh_bem = pull_refresh_createNamespace[1],
    pull_refresh_t = pull_refresh_createNamespace[2];

var DEFAULT_HEAD_HEIGHT = 50;
var TEXT_STATUS = ['pulling', 'loosing', 'success'];
/* harmony default export */ var pull_refresh = (pull_refresh_createComponent({
  mixins: [TouchMixin],
  props: {
    disabled: Boolean,
    successText: String,
    pullingText: String,
    loosingText: String,
    loadingText: String,
    pullDistance: [Number, String],
    value: {
      type: Boolean,
      required: true
    },
    successDuration: {
      type: [Number, String],
      default: 500
    },
    animationDuration: {
      type: [Number, String],
      default: 300
    },
    headHeight: {
      type: [Number, String],
      default: DEFAULT_HEAD_HEIGHT
    }
  },
  data: function data() {
    return {
      status: 'normal',
      distance: 0,
      duration: 0
    };
  },
  computed: {
    touchable: function touchable() {
      return this.status !== 'loading' && this.status !== 'success' && !this.disabled;
    },
    headStyle: function headStyle() {
      if (this.headHeight !== DEFAULT_HEAD_HEIGHT) {
        return {
          height: this.headHeight + "px"
        };
      }
    }
  },
  watch: {
    value: function value(loading) {
      this.duration = this.animationDuration;

      if (loading) {
        this.setStatus(+this.headHeight, true);
      } else if (this.slots('success') || this.successText) {
        this.showSuccessTip();
      } else {
        this.setStatus(0, false);
      }
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$refs.track);
    this.scrollEl = getScroller(this.$el);
  },
  methods: {
    checkPullStart: function checkPullStart(event) {
      this.ceiling = getScrollTop(this.scrollEl) === 0;

      if (this.ceiling) {
        this.duration = 0;
        this.touchStart(event);
      }
    },
    onTouchStart: function onTouchStart(event) {
      if (this.touchable) {
        this.checkPullStart(event);
      }
    },
    onTouchMove: function onTouchMove(event) {
      if (!this.touchable) {
        return;
      }

      if (!this.ceiling) {
        this.checkPullStart(event);
      }

      this.touchMove(event);

      if (this.ceiling && this.deltaY >= 0 && this.direction === 'vertical') {
        preventDefault(event);
        this.setStatus(this.ease(this.deltaY));
      }
    },
    onTouchEnd: function onTouchEnd() {
      var _this = this;

      if (this.touchable && this.ceiling && this.deltaY) {
        this.duration = this.animationDuration;

        if (this.status === 'loosing') {
          this.setStatus(+this.headHeight, true);
          this.$emit('input', true); // ensure value change can be watched

          this.$nextTick(function () {
            _this.$emit('refresh');
          });
        } else {
          this.setStatus(0);
        }
      }
    },
    ease: function ease(distance) {
      var pullDistance = +(this.pullDistance || this.headHeight);

      if (distance > pullDistance) {
        if (distance < pullDistance * 2) {
          distance = pullDistance + (distance - pullDistance) / 2;
        } else {
          distance = pullDistance * 1.5 + (distance - pullDistance * 2) / 4;
        }
      }

      return Math.round(distance);
    },
    setStatus: function setStatus(distance, isLoading) {
      var status;

      if (isLoading) {
        status = 'loading';
      } else if (distance === 0) {
        status = 'normal';
      } else {
        status = distance < (this.pullDistance || this.headHeight) ? 'pulling' : 'loosing';
      }

      this.distance = distance;

      if (status !== this.status) {
        this.status = status;
      }
    },
    genStatus: function genStatus() {
      var h = this.$createElement;
      var status = this.status,
          distance = this.distance;
      var slot = this.slots(status, {
        distance: distance
      });

      if (slot) {
        return slot;
      }

      var nodes = [];
      var text = this[status + "Text"] || pull_refresh_t(status);

      if (TEXT_STATUS.indexOf(status) !== -1) {
        nodes.push(h("div", {
          "class": pull_refresh_bem('text')
        }, [text]));
      }

      if (status === 'loading') {
        nodes.push(h(es_loading, {
          "attrs": {
            "size": "16"
          }
        }, [text]));
      }

      return nodes;
    },
    showSuccessTip: function showSuccessTip() {
      var _this2 = this;

      this.status = 'success';
      setTimeout(function () {
        _this2.setStatus(0);
      }, this.successDuration);
    }
  },
  render: function render() {
    var h = arguments[0];
    var trackStyle = {
      transitionDuration: this.duration + "ms",
      transform: this.distance ? "translate3d(0," + this.distance + "px, 0)" : ''
    };
    return h("div", {
      "class": pull_refresh_bem()
    }, [h("div", {
      "ref": "track",
      "class": pull_refresh_bem('track'),
      "style": trackStyle
    }, [h("div", {
      "class": pull_refresh_bem('head'),
      "style": this.headStyle
    }, [this.genStatus()]), this.slots()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/rate/index.js
// Utils

 // Mixins


 // Components



var rate_createNamespace = Object(create["a" /* createNamespace */])('rate'),
    rate_createComponent = rate_createNamespace[0],
    rate_bem = rate_createNamespace[1];

function getRateStatus(value, index, allowHalf) {
  if (value >= index) {
    return 'full';
  }

  if (value + 0.5 >= index && allowHalf) {
    return 'half';
  }

  return 'void';
}

/* harmony default export */ var es_rate = (rate_createComponent({
  mixins: [TouchMixin, FieldMixin],
  props: {
    size: [Number, String],
    color: String,
    gutter: [Number, String],
    readonly: Boolean,
    disabled: Boolean,
    allowHalf: Boolean,
    voidColor: String,
    iconPrefix: String,
    disabledColor: String,
    value: {
      type: Number,
      default: 0
    },
    icon: {
      type: String,
      default: 'star'
    },
    voidIcon: {
      type: String,
      default: 'star-o'
    },
    count: {
      type: [Number, String],
      default: 5
    },
    touchable: {
      type: Boolean,
      default: true
    }
  },
  computed: {
    list: function list() {
      var list = [];

      for (var i = 1; i <= this.count; i++) {
        list.push(getRateStatus(this.value, i, this.allowHalf));
      }

      return list;
    },
    sizeWithUnit: function sizeWithUnit() {
      return Object(unit["a" /* addUnit */])(this.size);
    },
    gutterWithUnit: function gutterWithUnit() {
      return Object(unit["a" /* addUnit */])(this.gutter);
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);
  },
  methods: {
    select: function select(index) {
      if (!this.disabled && !this.readonly && index !== this.value) {
        this.$emit('input', index);
        this.$emit('change', index);
      }
    },
    onTouchStart: function onTouchStart(event) {
      var _this = this;

      if (this.readonly || this.disabled || !this.touchable) {
        return;
      }

      this.touchStart(event);
      var rects = this.$refs.items.map(function (item) {
        return item.getBoundingClientRect();
      });
      var ranges = [];
      rects.forEach(function (rect, index) {
        if (_this.allowHalf) {
          ranges.push({
            score: index + 0.5,
            left: rect.left
          }, {
            score: index + 1,
            left: rect.left + rect.width / 2
          });
        } else {
          ranges.push({
            score: index + 1,
            left: rect.left
          });
        }
      });
      this.ranges = ranges;
    },
    onTouchMove: function onTouchMove(event) {
      if (this.readonly || this.disabled || !this.touchable) {
        return;
      }

      this.touchMove(event);

      if (this.direction === 'horizontal') {
        preventDefault(event);
        var clientX = event.touches[0].clientX;
        this.select(this.getScoreByPosition(clientX));
      }
    },
    getScoreByPosition: function getScoreByPosition(x) {
      for (var i = this.ranges.length - 1; i > 0; i--) {
        if (x > this.ranges[i].left) {
          return this.ranges[i].score;
        }
      }

      return this.allowHalf ? 0.5 : 1;
    },
    genStar: function genStar(status, index) {
      var _this2 = this;

      var h = this.$createElement;
      var icon = this.icon,
          color = this.color,
          count = this.count,
          voidIcon = this.voidIcon,
          disabled = this.disabled,
          voidColor = this.voidColor,
          disabledColor = this.disabledColor;
      var score = index + 1;
      var isFull = status === 'full';
      var isVoid = status === 'void';
      var style;

      if (this.gutterWithUnit && score !== +count) {
        style = {
          paddingRight: this.gutterWithUnit
        };
      }

      return h("div", {
        "ref": "items",
        "refInFor": true,
        "key": index,
        "attrs": {
          "role": "radio",
          "tabindex": "0",
          "aria-setsize": count,
          "aria-posinset": score,
          "aria-checked": String(!isVoid)
        },
        "style": style,
        "class": rate_bem('item')
      }, [h(es_icon, {
        "attrs": {
          "size": this.sizeWithUnit,
          "name": isFull ? icon : voidIcon,
          "color": disabled ? disabledColor : isFull ? color : voidColor,
          "classPrefix": this.iconPrefix,
          "data-score": score
        },
        "class": rate_bem('icon', {
          disabled: disabled,
          full: isFull
        }),
        "on": {
          "click": function click() {
            _this2.select(score);
          }
        }
      }), this.allowHalf && h(es_icon, {
        "attrs": {
          "size": this.sizeWithUnit,
          "name": isVoid ? voidIcon : icon,
          "color": disabled ? disabledColor : isVoid ? voidColor : color,
          "classPrefix": this.iconPrefix,
          "data-score": score - 0.5
        },
        "class": rate_bem('icon', ['half', {
          disabled: disabled,
          full: !isVoid
        }]),
        "on": {
          "click": function click() {
            _this2.select(score - 0.5);
          }
        }
      })]);
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];
    return h("div", {
      "class": rate_bem({
        readonly: this.readonly,
        disabled: this.disabled
      }),
      "attrs": {
        "tabindex": "0",
        "role": "radiogroup"
      }
    }, [this.list.map(function (status, index) {
      return _this3.genStar(status, index);
    })]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/row/index.js



var row_createNamespace = Object(create["a" /* createNamespace */])('row'),
    row_createComponent = row_createNamespace[0],
    row_bem = row_createNamespace[1];

/* harmony default export */ var row = (row_createComponent({
  mixins: [ParentMixin('vanRow')],
  props: {
    type: String,
    align: String,
    justify: String,
    tag: {
      type: String,
      default: 'div'
    },
    gutter: {
      type: [Number, String],
      default: 0
    }
  },
  computed: {
    spaces: function spaces() {
      var gutter = Number(this.gutter);

      if (!gutter) {
        return;
      }

      var spaces = [];
      var groups = [[]];
      var totalSpan = 0;
      this.children.forEach(function (item, index) {
        totalSpan += Number(item.span);

        if (totalSpan > 24) {
          groups.push([index]);
          totalSpan -= 24;
        } else {
          groups[groups.length - 1].push(index);
        }
      });
      groups.forEach(function (group) {
        var averagePadding = gutter * (group.length - 1) / group.length;
        group.forEach(function (item, index) {
          if (index === 0) {
            spaces.push({
              right: averagePadding
            });
          } else {
            var left = gutter - spaces[item - 1].right;
            var right = averagePadding - left;
            spaces.push({
              left: left,
              right: right
            });
          }
        });
      });
      return spaces;
    }
  },
  methods: {
    onClick: function onClick(event) {
      this.$emit('click', event);
    }
  },
  render: function render() {
    var _bem;

    var h = arguments[0];
    var align = this.align,
        justify = this.justify;
    var flex = this.type === 'flex';
    return h(this.tag, {
      "class": row_bem((_bem = {
        flex: flex
      }, _bem["align-" + align] = flex && align, _bem["justify-" + justify] = flex && justify, _bem)),
      "on": {
        "click": this.onClick
      }
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/search/index.js



// Utils


 // Components

 // Types

var search_createNamespace = Object(create["a" /* createNamespace */])('search'),
    search_createComponent = search_createNamespace[0],
    search_bem = search_createNamespace[1],
    search_t = search_createNamespace[2];

function Search(h, props, slots, ctx) {
  function Label() {
    if (slots.label || props.label) {
      return h("div", {
        "class": search_bem('label')
      }, [slots.label ? slots.label() : props.label]);
    }
  }

  function Action() {
    if (!props.showAction) {
      return;
    }

    function onCancel() {
      if (slots.action) {
        return;
      }

      functional_emit(ctx, 'input', '');
      functional_emit(ctx, 'cancel');
    }

    return h("div", {
      "class": search_bem('action'),
      "attrs": {
        "role": "button",
        "tabindex": "0"
      },
      "on": {
        "click": onCancel
      }
    }, [slots.action ? slots.action() : props.actionText || search_t('cancel')]);
  }

  var fieldData = {
    attrs: ctx.data.attrs,
    on: _extends({}, ctx.listeners, {
      keypress: function keypress(event) {
        // press enter
        if (event.keyCode === 13) {
          preventDefault(event);
          functional_emit(ctx, 'search', props.value);
        }

        functional_emit(ctx, 'keypress', event);
      }
    })
  };
  var inheritData = inherit(ctx);
  inheritData.attrs = undefined;
  return h("div", helper_default()([{
    "class": search_bem({
      'show-action': props.showAction
    }),
    "style": {
      background: props.background
    }
  }, inheritData]), [slots.left == null ? void 0 : slots.left(), h("div", {
    "class": search_bem('content', props.shape)
  }, [Label(), h(es_field, helper_default()([{
    "attrs": {
      "type": "search",
      "border": false,
      "value": props.value,
      "leftIcon": props.leftIcon,
      "rightIcon": props.rightIcon,
      "clearable": props.clearable,
      "clearTrigger": props.clearTrigger
    },
    "scopedSlots": {
      'left-icon': slots['left-icon'],
      'right-icon': slots['right-icon']
    }
  }, fieldData]))]), Action()]);
}

Search.props = {
  value: String,
  label: String,
  rightIcon: String,
  actionText: String,
  background: String,
  showAction: Boolean,
  clearTrigger: String,
  shape: {
    type: String,
    default: 'square'
  },
  clearable: {
    type: Boolean,
    default: true
  },
  leftIcon: {
    type: String,
    default: 'search'
  }
};
/* harmony default export */ var search = (search_createComponent(Search));
// CONCATENATED MODULE: ./node_modules/vant/es/share-sheet/index.js

// Utils
 // Mixins

 // Components


var PRESET_ICONS = ['qq', 'link', 'weibo', 'wechat', 'poster', 'qrcode', 'weapp-qrcode', 'wechat-moments'];

var share_sheet_createNamespace = Object(create["a" /* createNamespace */])('share-sheet'),
    share_sheet_createComponent = share_sheet_createNamespace[0],
    share_sheet_bem = share_sheet_createNamespace[1],
    share_sheet_t = share_sheet_createNamespace[2];

/* harmony default export */ var share_sheet = (share_sheet_createComponent({
  props: _extends({}, popupMixinProps, {
    title: String,
    duration: String,
    cancelText: String,
    description: String,
    getContainer: [String, Function],
    options: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    overlay: {
      type: Boolean,
      default: true
    },
    closeOnPopstate: {
      type: Boolean,
      default: true
    },
    safeAreaInsetBottom: {
      type: Boolean,
      default: true
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: true
    }
  }),
  methods: {
    onCancel: function onCancel() {
      this.toggle(false);
      this.$emit('cancel');
    },
    onSelect: function onSelect(option, index) {
      this.$emit('select', option, index);
    },
    toggle: function toggle(val) {
      this.$emit('input', val);
    },
    getIconURL: function getIconURL(icon) {
      if (PRESET_ICONS.indexOf(icon) !== -1) {
        return "https://img01.yzcdn.cn/vant/share-sheet-" + icon + ".png";
      }

      return icon;
    },
    genHeader: function genHeader() {
      var h = this.$createElement;
      var title = this.slots('title') || this.title;
      var description = this.slots('description') || this.description;

      if (!title && !description) {
        return;
      }

      return h("div", {
        "class": share_sheet_bem('header')
      }, [title && h("h2", {
        "class": share_sheet_bem('title')
      }, [title]), description && h("span", {
        "class": share_sheet_bem('description')
      }, [description])]);
    },
    genOptions: function genOptions(options, showBorder) {
      var _this = this;

      var h = this.$createElement;
      return h("div", {
        "class": share_sheet_bem('options', {
          border: showBorder
        })
      }, [options.map(function (option, index) {
        return h("div", {
          "attrs": {
            "role": "button",
            "tabindex": "0"
          },
          "class": [share_sheet_bem('option'), option.className],
          "on": {
            "click": function click() {
              _this.onSelect(option, index);
            }
          }
        }, [h("img", {
          "attrs": {
            "src": _this.getIconURL(option.icon)
          },
          "class": share_sheet_bem('icon')
        }), option.name && h("span", {
          "class": share_sheet_bem('name')
        }, [option.name]), option.description && h("span", {
          "class": share_sheet_bem('option-description')
        }, [option.description])]);
      })]);
    },
    genRows: function genRows() {
      var _this2 = this;

      var options = this.options;

      if (Array.isArray(options[0])) {
        return options.map(function (item, index) {
          return _this2.genOptions(item, index !== 0);
        });
      }

      return this.genOptions(options);
    },
    genCancelText: function genCancelText() {
      var _this$cancelText;

      var h = this.$createElement;
      var cancelText = (_this$cancelText = this.cancelText) != null ? _this$cancelText : share_sheet_t('cancel');

      if (cancelText) {
        return h("button", {
          "attrs": {
            "type": "button"
          },
          "class": share_sheet_bem('cancel'),
          "on": {
            "click": this.onCancel
          }
        }, [cancelText]);
      }
    },
    onClickOverlay: function onClickOverlay() {
      this.$emit('click-overlay');
    }
  },
  render: function render() {
    var h = arguments[0];
    return h(popup, {
      "attrs": {
        "round": true,
        "value": this.value,
        "position": "bottom",
        "overlay": this.overlay,
        "duration": this.duration,
        "lazyRender": this.lazyRender,
        "lockScroll": this.lockScroll,
        "getContainer": this.getContainer,
        "closeOnPopstate": this.closeOnPopstate,
        "closeOnClickOverlay": this.closeOnClickOverlay,
        "safeAreaInsetBottom": this.safeAreaInsetBottom
      },
      "class": share_sheet_bem(),
      "on": {
        "input": this.toggle,
        "click-overlay": this.onClickOverlay
      }
    }, [this.genHeader(), this.genRows(), this.genCancelText()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sidebar/index.js



var sidebar_createNamespace = Object(create["a" /* createNamespace */])('sidebar'),
    sidebar_createComponent = sidebar_createNamespace[0],
    sidebar_bem = sidebar_createNamespace[1];

/* harmony default export */ var sidebar = (sidebar_createComponent({
  mixins: [ParentMixin('vanSidebar')],
  model: {
    prop: 'activeKey'
  },
  props: {
    activeKey: {
      type: [Number, String],
      default: 0
    }
  },
  data: function data() {
    return {
      index: +this.activeKey
    };
  },
  watch: {
    activeKey: function activeKey() {
      this.setIndex(+this.activeKey);
    }
  },
  methods: {
    setIndex: function setIndex(index) {
      if (index !== this.index) {
        this.index = index;
        this.$emit('change', index);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": sidebar_bem()
    }, [this.slots()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sidebar-item/index.js






var sidebar_item_createNamespace = Object(create["a" /* createNamespace */])('sidebar-item'),
    sidebar_item_createComponent = sidebar_item_createNamespace[0],
    sidebar_item_bem = sidebar_item_createNamespace[1];

/* harmony default export */ var sidebar_item = (sidebar_item_createComponent({
  mixins: [ChildrenMixin('vanSidebar')],
  props: _extends({}, routeProps, {
    dot: Boolean,
    // @deprecated
    info: [Number, String],
    badge: [Number, String],
    title: String,
    disabled: Boolean
  }),
  computed: {
    select: function select() {
      return this.index === +this.parent.activeKey;
    }
  },
  methods: {
    onClick: function onClick() {
      if (this.disabled) {
        return;
      }

      this.$emit('click', this.index);
      this.parent.$emit('input', this.index);
      this.parent.setIndex(this.index);
      route(this.$router, this);
    }
  },
  render: function render() {
    var _this$slots, _this$badge;

    var h = arguments[0];

    if (false) {}

    return h("a", {
      "class": sidebar_item_bem({
        select: this.select,
        disabled: this.disabled
      }),
      "on": {
        "click": this.onClick
      }
    }, [h("div", {
      "class": sidebar_item_bem('text')
    }, [(_this$slots = this.slots('title')) != null ? _this$slots : this.title, h(es_info, {
      "attrs": {
        "dot": this.dot,
        "info": (_this$badge = this.badge) != null ? _this$badge : this.info
      },
      "class": sidebar_item_bem('info')
    })])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/skeleton/index.js

// Utils

 // Types

var skeleton_createNamespace = Object(create["a" /* createNamespace */])('skeleton'),
    skeleton_createComponent = skeleton_createNamespace[0],
    skeleton_bem = skeleton_createNamespace[1];

var DEFAULT_ROW_WIDTH = '100%';
var DEFAULT_LAST_ROW_WIDTH = '60%';

function Skeleton(h, props, slots, ctx) {
  if (!props.loading) {
    return slots.default && slots.default();
  }

  function Title() {
    if (props.title) {
      return h("h3", {
        "class": skeleton_bem('title'),
        "style": {
          width: Object(unit["a" /* addUnit */])(props.titleWidth)
        }
      });
    }
  }

  function Rows() {
    var Rows = [];
    var rowWidth = props.rowWidth;

    function getRowWidth(index) {
      if (rowWidth === DEFAULT_ROW_WIDTH && index === +props.row - 1) {
        return DEFAULT_LAST_ROW_WIDTH;
      }

      if (Array.isArray(rowWidth)) {
        return rowWidth[index];
      }

      return rowWidth;
    }

    for (var i = 0; i < props.row; i++) {
      Rows.push(h("div", {
        "class": skeleton_bem('row'),
        "style": {
          width: Object(unit["a" /* addUnit */])(getRowWidth(i))
        }
      }));
    }

    return Rows;
  }

  function Avatar() {
    if (props.avatar) {
      var size = Object(unit["a" /* addUnit */])(props.avatarSize);
      return h("div", {
        "class": skeleton_bem('avatar', props.avatarShape),
        "style": {
          width: size,
          height: size
        }
      });
    }
  }

  return h("div", helper_default()([{
    "class": skeleton_bem({
      animate: props.animate,
      round: props.round
    })
  }, inherit(ctx)]), [Avatar(), h("div", {
    "class": skeleton_bem('content')
  }, [Title(), Rows()])]);
}

Skeleton.props = {
  title: Boolean,
  round: Boolean,
  avatar: Boolean,
  titleWidth: [Number, String],
  avatarSize: [Number, String],
  row: {
    type: [Number, String],
    default: 0
  },
  loading: {
    type: Boolean,
    default: true
  },
  animate: {
    type: Boolean,
    default: true
  },
  avatarShape: {
    type: String,
    default: 'round'
  },
  rowWidth: {
    type: [Number, String, Array],
    default: DEFAULT_ROW_WIDTH
  }
};
/* harmony default export */ var skeleton = (skeleton_createComponent(Skeleton));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/lang.js
/**
 * Sku only provide zh-CN lang by default
 */
/* harmony default export */ var lang = ({
  'zh-CN': {
    vanSku: {
      select: '请选择',
      selected: '已选',
      selectSku: '请先选择商品规格',
      soldout: '库存不足',
      originPrice: '原价',
      minusTip: '至少选择一件',
      minusStartTip: function minusStartTip(start) {
        return start + "\u4EF6\u8D77\u552E";
      },
      unavailable: '商品已经无法购买啦',
      stock: '剩余',
      stockUnit: '件',
      quotaTip: function quotaTip(quota) {
        return "\u6BCF\u4EBA\u9650\u8D2D" + quota + "\u4EF6";
      },
      quotaUsedTip: function quotaUsedTip(quota, count) {
        return "\u6BCF\u4EBA\u9650\u8D2D" + quota + "\u4EF6\uFF0C\u4F60\u5DF2\u8D2D\u4E70" + count + "\u4EF6";
      }
    },
    vanSkuActions: {
      buy: '立即购买',
      addCart: '加入购物车'
    },
    vanSkuImgUploader: {
      oversize: function oversize(maxSize) {
        return "\u6700\u5927\u53EF\u4E0A\u4F20\u56FE\u7247\u4E3A" + maxSize + "MB\uFF0C\u8BF7\u5C1D\u8BD5\u538B\u7F29\u56FE\u7247\u5C3A\u5BF8";
      },
      fail: '上传失败',
      uploading: '上传中...'
    },
    vanSkuStepper: {
      quotaLimit: function quotaLimit(quota) {
        return "\u9650\u8D2D" + quota + "\u4EF6";
      },
      quotaStart: function quotaStart(start) {
        return start + "\u4EF6\u8D77\u552E";
      },
      comma: '，',
      num: '购买数量'
    },
    vanSkuMessages: {
      fill: '请填写',
      upload: '请上传',
      imageLabel: '仅限一张',
      invalid: {
        tel: '请填写正确的数字格式留言',
        mobile: '手机号长度为6-20位数字',
        email: '请填写正确的邮箱',
        id_no: '请填写正确的身份证号码'
      },
      placeholder: {
        id_no: '请填写身份证号',
        text: '请填写留言',
        tel: '请填写数字',
        email: '请填写邮箱',
        date: '请选择日期',
        time: '请选择时间',
        textarea: '请填写留言',
        mobile: '请填写手机号'
      }
    },
    vanSkuRow: {
      multiple: '可多选'
    },
    vanSkuDatetimeField: {
      title: {
        date: '选择年月日',
        time: '选择时间',
        datetime: '选择日期时间'
      },
      format: {
        year: '年',
        month: '月',
        day: '日',
        hour: '时',
        minute: '分'
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/vant/es/sku/constants.js
var LIMIT_TYPE = {
  QUOTA_LIMIT: 0,
  STOCK_LIMIT: 1
};
var UNSELECTED_SKU_VALUE_ID = '';
/* harmony default export */ var constants = ({
  LIMIT_TYPE: LIMIT_TYPE,
  UNSELECTED_SKU_VALUE_ID: UNSELECTED_SKU_VALUE_ID
});
// CONCATENATED MODULE: ./node_modules/vant/es/sku/utils/sku-helper.js


/*
  normalize sku tree

  [
    {
      count: 2,
      k: "品种", // 规格名称 skuKeyName
      k_id: "1200", // skuKeyId
      k_s: "s1" // skuKeyStr
      v: [ // skuValues
        { // skuValue
          id: "1201", // skuValueId
          name: "萌" // 具体的规格值 skuValueName
        }, {
          id: "973",
          name: "帅"
        }
      ]
    },
    ...
  ]
                |
                v
  {
    s1: [{
      id: "1201",
      name: "萌"
    }, {
      id: "973",
      name: "帅"
    }],
    ...
  }
 */

var normalizeSkuTree = function normalizeSkuTree(skuTree) {
  var normalizedTree = {};
  skuTree.forEach(function (treeItem) {
    normalizedTree[treeItem.k_s] = treeItem.v;
  });
  return normalizedTree;
};
var normalizePropList = function normalizePropList(propList) {
  var normalizedProp = {};
  propList.forEach(function (item) {
    var itemObj = {};
    item.v.forEach(function (it) {
      itemObj[it.id] = it;
    });
    normalizedProp[item.k_id] = itemObj;
  });
  return normalizedProp;
}; // 判断是否所有的sku都已经选中

var sku_helper_isAllSelected = function isAllSelected(skuTree, selectedSku) {
  // 筛选selectedSku对象中key值不为空的值
  var selected = Object.keys(selectedSku).filter(function (skuKeyStr) {
    return selectedSku[skuKeyStr] !== UNSELECTED_SKU_VALUE_ID;
  });
  return skuTree.length === selected.length;
}; // 根据已选择的 sku 获取 skuComb

var getSkuComb = function getSkuComb(skuList, selectedSku) {
  var skuComb = skuList.filter(function (item) {
    return Object.keys(selectedSku).every(function (skuKeyStr) {
      return String(item[skuKeyStr]) === String(selectedSku[skuKeyStr]);
    });
  });
  return skuComb[0];
}; // 获取已选择的sku名称

var sku_helper_getSelectedSkuValues = function getSelectedSkuValues(skuTree, selectedSku) {
  var normalizedTree = normalizeSkuTree(skuTree);
  return Object.keys(selectedSku).reduce(function (selectedValues, skuKeyStr) {
    var skuValues = normalizedTree[skuKeyStr] || [];
    var skuValueId = selectedSku[skuKeyStr];

    if (skuValueId !== UNSELECTED_SKU_VALUE_ID && skuValues.length > 0) {
      var skuValue = skuValues.filter(function (value) {
        return value.id === skuValueId;
      })[0];
      skuValue && selectedValues.push(skuValue);
    }

    return selectedValues;
  }, []);
}; // 判断sku是否可选

var sku_helper_isSkuChoosable = function isSkuChoosable(skuList, selectedSku, skuToChoose) {
  var _extends2;

  var key = skuToChoose.key,
      valueId = skuToChoose.valueId; // 先假设sku已选中，拼入已选中sku对象中

  var matchedSku = _extends({}, selectedSku, (_extends2 = {}, _extends2[key] = valueId, _extends2)); // 再判断剩余sku是否全部不可选，若不可选则当前sku不可选中


  var skusToCheck = Object.keys(matchedSku).filter(function (skuKey) {
    return matchedSku[skuKey] !== UNSELECTED_SKU_VALUE_ID;
  });
  var filteredSku = skuList.filter(function (sku) {
    return skusToCheck.every(function (skuKey) {
      return String(matchedSku[skuKey]) === String(sku[skuKey]);
    });
  }); // 检查是否有非禁用的SKU可选

  var availableSku = filteredSku.filter(function (sku) {
    return sku.disable_status !== 1;
  });
  var stock = availableSku.reduce(function (total, sku) {
    total += sku.stock_num;
    return total;
  }, 0);
  return stock > 0;
}; // 根据disable_status字段过滤skuTree

var sku_helper_filterDisabledSkuTree = function filterDisabledSkuTree(skuTree, skuList, selectedSku) {
  if (selectedSku === void 0) {
    selectedSku = {};
  }

  if (!(skuList == null ? void 0 : skuList.length)) {
    return skuTree;
  } // 创建规格树的深拷贝，避免修改原始数据


  var treeClone = JSON.parse(JSON.stringify(skuTree)); // 对每个规格值，收集所有包含它的SKU

  var specValueToSkus = {}; // 初始化规格值到SKU的映射

  treeClone.forEach(function (treeItem) {
    var key = treeItem.k_s;
    treeItem.v.forEach(function (value) {
      var valueId = value.id;
      specValueToSkus[key + "-" + valueId] = [];
    });
  }); // 收集每个规格值对应的所有SKU

  skuList.forEach(function (item) {
    for (var i = 1; i <= 5; i++) {
      var key = "s" + i;
      var value = item[key];

      if (value && value !== '0') {
        var mapKey = key + "-" + value;

        if (specValueToSkus[mapKey]) {
          specValueToSkus[mapKey].push(item);
        }
      }
    }
  }); // 过滤规格树

  return treeClone.filter(function (treeItem) {
    var key = treeItem.k_s;
    var isSelectedSpec = selectedSku[key] && selectedSku[key] !== UNSELECTED_SKU_VALUE_ID; // 过滤规格值

    treeItem.v = treeItem.v.filter(function (value) {
      var valueId = value.id;
      var mapKey = key + "-" + valueId;
      var relatedSkus = specValueToSkus[mapKey] || []; // 1. 如果所有包含该规格值的SKU都被明确禁用，则过滤掉该规格值

      if (relatedSkus.length > 0) {
        var allExplicitlyDisabled = relatedSkus.every(function (sku) {
          return sku.disable_status === 1;
        });

        if (allExplicitlyDisabled) {
          return false;
        }
      } // 2. 如果是已选中的值，保留它


      if (isSelectedSpec && String(valueId) === String(selectedSku[key])) {
        return true;
      } // 3. 如果用户已经选择了其他规格，检查组合


      var validSelectedEntries = Object.entries(selectedSku).filter(function (_ref) {
        var selectedKey = _ref[0],
            val = _ref[1];
        return val !== UNSELECTED_SKU_VALUE_ID && selectedKey !== key;
      } // 排除当前规格
      );

      if (validSelectedEntries.length > 0) {
        // 创建当前组合
        var combinedSelection = {}; // 添加已选规格

        validSelectedEntries.forEach(function (_ref2) {
          var selectedKey = _ref2[0],
              val = _ref2[1];
          combinedSelection[selectedKey] = val;
        }); // 添加当前正在检查的规格值

        combinedSelection[key] = String(valueId); // 查找满足当前组合的SKU

        var matchingSku = skuList.filter(function (sku) {
          return Object.entries(combinedSelection).every(function (_ref3) {
            var selectedKey = _ref3[0],
                selectedVal = _ref3[1];
            return String(sku[selectedKey]) === String(selectedVal);
          });
        }); // 如果有匹配的SKU，检查它们是否全部被禁用

        if (matchingSku.length > 0) {
          var allDisabled = matchingSku.every(function (sku) {
            return sku.disable_status === 1;
          });
          return !allDisabled;
        }
      } // 默认保留所有规格值


      return true;
    }); // 如果是已选中的规格项，但过滤后没有包含已选值，则隐藏

    if (isSelectedSpec) {
      var selectedValueExists = treeItem.v.some(function (value) {
        return String(value.id) === String(selectedSku[key]);
      });
      return selectedValueExists;
    } // 如果该规格项下没有规格值了，则隐藏整个规格项


    return treeItem.v.length > 0;
  });
};
var sku_helper_getSelectedPropValues = function getSelectedPropValues(propList, selectedProp) {
  var normalizeProp = normalizePropList(propList);
  return Object.keys(selectedProp).reduce(function (acc, cur) {
    selectedProp[cur].forEach(function (it) {
      acc.push(_extends({}, normalizeProp[cur][it]));
    });
    return acc;
  }, []);
};
var sku_helper_getSelectedProperties = function getSelectedProperties(propList, selectedProp) {
  var list = [];
  (propList || []).forEach(function (prop) {
    if (selectedProp[prop.k_id] && selectedProp[prop.k_id].length > 0) {
      var v = [];
      prop.v.forEach(function (it) {
        if (selectedProp[prop.k_id].indexOf(it.id) > -1) {
          v.push(_extends({}, it));
        }
      });
      list.push(_extends({}, prop, {
        v: v
      }));
    }
  });
  return list;
};
/* harmony default export */ var sku_helper = ({
  normalizeSkuTree: normalizeSkuTree,
  getSkuComb: getSkuComb,
  getSelectedSkuValues: sku_helper_getSelectedSkuValues,
  isAllSelected: sku_helper_isAllSelected,
  isSkuChoosable: sku_helper_isSkuChoosable,
  getSelectedPropValues: sku_helper_getSelectedPropValues,
  getSelectedProperties: sku_helper_getSelectedProperties,
  filterDisabledSkuTree: sku_helper_filterDisabledSkuTree
});
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuHeader.js


// Utils


 // Components

 // Types

var SkuHeader_createNamespace = Object(create["a" /* createNamespace */])('sku-header'),
    SkuHeader_createComponent = SkuHeader_createNamespace[0],
    SkuHeader_bem = SkuHeader_createNamespace[1];

function getSkuImgValue(sku, selectedSku) {
  var imgValue;
  sku.tree.some(function (item) {
    var id = selectedSku[item.k_s];

    if (id && item.v) {
      var matchedSku = item.v.filter(function (skuValue) {
        return skuValue.id === id;
      })[0] || {};
      var img = matchedSku.previewImgUrl || matchedSku.imgUrl || matchedSku.img_url;

      if (img) {
        imgValue = _extends({}, matchedSku, {
          ks: item.k_s,
          imgUrl: img
        });
        return true;
      }
    }

    return false;
  });
  return imgValue;
}

function SkuHeader(h, props, slots, ctx) {
  var _slots$skuHeaderIma;

  var sku = props.sku,
      goods = props.goods,
      skuEventBus = props.skuEventBus,
      selectedSku = props.selectedSku,
      _props$showHeaderImag = props.showHeaderImage,
      showHeaderImage = _props$showHeaderImag === void 0 ? true : _props$showHeaderImag;
  var selectedValue = getSkuImgValue(sku, selectedSku);
  var imgUrl = selectedValue ? selectedValue.imgUrl : goods.picture;

  var previewImage = function previewImage() {
    skuEventBus.$emit('sku:previewImage', selectedValue);
  };

  return h("div", helper_default()([{
    "class": [SkuHeader_bem(), BORDER_BOTTOM]
  }, inherit(ctx)]), [showHeaderImage && h(es_image, {
    "attrs": {
      "fit": "cover",
      "src": imgUrl
    },
    "class": SkuHeader_bem('img-wrap'),
    "on": {
      "click": previewImage
    }
  }, [(_slots$skuHeaderIma = slots['sku-header-image-extra']) == null ? void 0 : _slots$skuHeaderIma.call(slots)]), h("div", {
    "class": SkuHeader_bem('goods-info')
  }, [slots.default == null ? void 0 : slots.default()])]);
}

SkuHeader.props = {
  sku: Object,
  goods: Object,
  skuEventBus: Object,
  selectedSku: Object,
  showHeaderImage: Boolean
};
/* harmony default export */ var components_SkuHeader = (SkuHeader_createComponent(SkuHeader));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuHeaderItem.js

// Utils

 // Types

var SkuHeaderItem_createNamespace = Object(create["a" /* createNamespace */])('sku-header-item'),
    SkuHeaderItem_createComponent = SkuHeaderItem_createNamespace[0],
    SkuHeaderItem_bem = SkuHeaderItem_createNamespace[1];

function SkuHeaderItem_SkuHeader(h, props, slots, ctx) {
  return h("div", helper_default()([{
    "class": SkuHeaderItem_bem()
  }, inherit(ctx)]), [slots.default && slots.default()]);
}

/* harmony default export */ var SkuHeaderItem = (SkuHeaderItem_createComponent(SkuHeaderItem_SkuHeader));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuRow.js
// Utils

 // Mixins




var SkuRow_createNamespace = Object(create["a" /* createNamespace */])('sku-row'),
    SkuRow_createComponent = SkuRow_createNamespace[0],
    SkuRow_bem = SkuRow_createNamespace[1],
    SkuRow_t = SkuRow_createNamespace[2];


/* harmony default export */ var SkuRow = (SkuRow_createComponent({
  mixins: [ParentMixin('vanSkuRows'), BindEventMixin(function (bind) {
    if (this.scrollable && this.$refs.scroller) {
      bind(this.$refs.scroller, 'scroll', this.onScroll);
    }
  })],
  props: {
    skuRow: Object
  },
  data: function data() {
    return {
      progress: 0
    };
  },
  computed: {
    scrollable: function scrollable() {
      return this.skuRow.largeImageMode && this.skuRow.v.length > 6;
    }
  },
  methods: {
    onScroll: function onScroll() {
      var _this$$refs = this.$refs,
          scroller = _this$$refs.scroller,
          row = _this$$refs.row;
      var distance = row.offsetWidth - scroller.offsetWidth;
      this.progress = scroller.scrollLeft / distance;
    },
    genTitle: function genTitle() {
      var h = this.$createElement;
      return h("div", {
        "class": SkuRow_bem('title')
      }, [this.skuRow.k, this.skuRow.is_multiple && h("span", {
        "class": SkuRow_bem('title-multiple')
      }, ["\uFF08", SkuRow_t('multiple'), "\uFF09"])]);
    },
    genIndicator: function genIndicator() {
      var h = this.$createElement;

      if (this.scrollable) {
        var style = {
          transform: "translate3d(" + this.progress * 20 + "px, 0, 0)"
        };
        return h("div", {
          "class": SkuRow_bem('indicator-wrapper')
        }, [h("div", {
          "class": SkuRow_bem('indicator')
        }, [h("div", {
          "class": SkuRow_bem('indicator-slider'),
          "style": style
        })])]);
      }
    },
    genContent: function genContent() {
      var h = this.$createElement;
      var nodes = this.slots();

      if (this.skuRow.largeImageMode) {
        var top = [];
        var bottom = [];
        nodes.forEach(function (node, index) {
          var group = Math.floor(index / 3) % 2 === 0 ? top : bottom;
          group.push(node);
        });
        return h("div", {
          "class": SkuRow_bem('scroller'),
          "ref": "scroller"
        }, [h("div", {
          "class": SkuRow_bem('row'),
          "ref": "row"
        }, [top]), bottom.length ? h("div", {
          "class": SkuRow_bem('row')
        }, [bottom]) : null]);
      }

      return nodes;
    },
    centerItem: function centerItem(selectSkuId) {
      if (!this.skuRow.largeImageMode || !selectSkuId) {
        return;
      }

      var _this$children = this.children,
          children = _this$children === void 0 ? [] : _this$children;
      var _this$$refs2 = this.$refs,
          scroller = _this$$refs2.scroller,
          row = _this$$refs2.row;
      var child = children.find(function (it) {
        return +it.skuValue.id === +selectSkuId;
      });

      if (scroller && row && child && child.$el) {
        var target = child.$el;
        var to = target.offsetLeft - (scroller.offsetWidth - target.offsetWidth) / 2;
        scroller.scrollLeft = to;
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": [SkuRow_bem(), BORDER_BOTTOM]
    }, [this.genTitle(), this.genContent(), this.genIndicator()]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuRowItem.js








var SkuRowItem_createNamespace = Object(create["a" /* createNamespace */])('sku-row-item'),
    SkuRowItem_createComponent = SkuRowItem_createNamespace[0];

/* harmony default export */ var SkuRowItem = (SkuRowItem_createComponent({
  mixins: [ChildrenMixin('vanSkuRows')],
  props: {
    lazyLoad: Boolean,
    skuValue: Object,
    skuKeyStr: String,
    skuEventBus: Object,
    selectedSku: Object,
    largeImageMode: Boolean,
    disableSoldoutSku: Boolean,
    skuList: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  computed: {
    imgUrl: function imgUrl() {
      var url = this.skuValue.imgUrl || this.skuValue.img_url;
      return this.largeImageMode ? url || 'https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png' : url;
    },
    choosable: function choosable() {
      if (!this.disableSoldoutSku) {
        return true;
      }

      return sku_helper_isSkuChoosable(this.skuList, this.selectedSku, {
        key: this.skuKeyStr,
        valueId: this.skuValue.id
      });
    }
  },
  methods: {
    onSelect: function onSelect() {
      if (this.choosable) {
        this.skuEventBus.$emit('sku:select', _extends({}, this.skuValue, {
          skuKeyStr: this.skuKeyStr
        }));
      }
    },
    onPreviewImg: function onPreviewImg(event) {
      event.stopPropagation();
      var skuValue = this.skuValue,
          skuKeyStr = this.skuKeyStr;
      this.skuEventBus.$emit('sku:previewImage', _extends({}, skuValue, {
        ks: skuKeyStr,
        imgUrl: skuValue.imgUrl || skuValue.img_url
      }));
    },
    genImage: function genImage(classPrefix) {
      var h = this.$createElement;

      if (this.imgUrl) {
        return h(es_image, {
          "attrs": {
            "fit": "cover",
            "src": this.imgUrl,
            "lazyLoad": this.lazyLoad
          },
          "class": classPrefix + "-img"
        });
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var choosed = this.skuValue.id === this.selectedSku[this.skuKeyStr];
    var classPrefix = this.largeImageMode ? SkuRow_bem('image-item') : SkuRow_bem('item');
    return h("span", {
      "class": [classPrefix, choosed ? classPrefix + "--active" : '', !this.choosable ? classPrefix + "--disabled" : ''],
      "on": {
        "click": this.onSelect
      }
    }, [this.genImage(classPrefix), h("div", {
      "class": classPrefix + "-name"
    }, [this.largeImageMode ? h("span", {
      "class": {
        'van-multi-ellipsis--l2': this.largeImageMode
      }
    }, [this.skuValue.name]) : this.skuValue.name]), this.largeImageMode && h(es_icon, {
      "attrs": {
        "name": "enlarge"
      },
      "class": classPrefix + "-img-icon",
      "on": {
        "click": this.onPreviewImg
      }
    })]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuRowPropItem.js



var SkuRowPropItem_createNamespace = Object(create["a" /* createNamespace */])('sku-row-prop-item'),
    SkuRowPropItem_createComponent = SkuRowPropItem_createNamespace[0];

/* harmony default export */ var SkuRowPropItem = (SkuRowPropItem_createComponent({
  props: {
    skuValue: Object,
    skuKeyStr: String,
    skuEventBus: Object,
    selectedProp: Object,
    multiple: Boolean,
    disabled: Boolean
  },
  computed: {
    choosed: function choosed() {
      var selectedProp = this.selectedProp,
          skuKeyStr = this.skuKeyStr,
          skuValue = this.skuValue;

      if (selectedProp && selectedProp[skuKeyStr]) {
        return selectedProp[skuKeyStr].indexOf(skuValue.id) > -1;
      }

      return false;
    }
  },
  methods: {
    onSelect: function onSelect() {
      if (this.disabled) return;
      this.skuEventBus.$emit('sku:propSelect', _extends({}, this.skuValue, {
        skuKeyStr: this.skuKeyStr,
        multiple: this.multiple
      }));
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("span", {
      "class": ['van-sku-row__item', {
        'van-sku-row__item--active': this.choosed
      }, {
        'van-sku-row__item--disabled': this.disabled
      }],
      "on": {
        "click": this.onSelect
      }
    }, [h("span", {
      "class": "van-sku-row__item-name"
    }, [this.skuValue.name])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/stepper/index.js









var stepper_createNamespace = Object(create["a" /* createNamespace */])('stepper'),
    stepper_createComponent = stepper_createNamespace[0],
    stepper_bem = stepper_createNamespace[1];

var LONG_PRESS_START_TIME = 600;
var LONG_PRESS_INTERVAL = 200;

function stepper_equal(value1, value2) {
  return String(value1) === String(value2);
}

/* harmony default export */ var stepper = (stepper_createComponent({
  mixins: [FieldMixin],
  props: {
    value: null,
    theme: String,
    integer: Boolean,
    disabled: Boolean,
    allowEmpty: Boolean,
    inputWidth: [Number, String],
    buttonSize: [Number, String],
    asyncChange: Boolean,
    placeholder: String,
    disablePlus: Boolean,
    disableMinus: Boolean,
    disableInput: Boolean,
    decimalLength: [Number, String],
    name: {
      type: [Number, String],
      default: ''
    },
    min: {
      type: [Number, String],
      default: 1
    },
    max: {
      type: [Number, String],
      default: Infinity
    },
    step: {
      type: [Number, String],
      default: 1
    },
    defaultValue: {
      type: [Number, String],
      default: 1
    },
    showPlus: {
      type: Boolean,
      default: true
    },
    showMinus: {
      type: Boolean,
      default: true
    },
    showInput: {
      type: Boolean,
      default: true
    },
    longPress: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    var _this$value;

    var defaultValue = (_this$value = this.value) != null ? _this$value : this.defaultValue;
    var value = this.format(defaultValue);

    if (!stepper_equal(value, this.value)) {
      this.$emit('input', value);
    }

    return {
      currentValue: value
    };
  },
  computed: {
    minusDisabled: function minusDisabled() {
      return this.disabled || this.disableMinus || this.currentValue <= +this.min;
    },
    plusDisabled: function plusDisabled() {
      return this.disabled || this.disablePlus || this.currentValue >= +this.max;
    },
    inputStyle: function inputStyle() {
      var style = {};

      if (this.inputWidth) {
        style.width = Object(unit["a" /* addUnit */])(this.inputWidth);
      }

      if (this.buttonSize) {
        style.height = Object(unit["a" /* addUnit */])(this.buttonSize);
      }

      return style;
    },
    buttonStyle: function buttonStyle() {
      if (this.buttonSize) {
        var size = Object(unit["a" /* addUnit */])(this.buttonSize);
        return {
          width: size,
          height: size
        };
      }
    }
  },
  watch: {
    max: 'check',
    min: 'check',
    integer: 'check',
    decimalLength: 'check',
    value: function value(val) {
      if (!stepper_equal(val, this.currentValue)) {
        this.currentValue = this.format(val);
      }
    },
    currentValue: function currentValue(val) {
      this.$emit('input', val);
      this.$emit('change', val, {
        name: this.name
      });
    }
  },
  methods: {
    check: function check() {
      var val = this.format(this.currentValue);

      if (!stepper_equal(val, this.currentValue)) {
        this.currentValue = val;
      }
    },
    // formatNumber illegal characters
    formatNumber: function formatNumber(value) {
      return number_formatNumber(String(value), !this.integer);
    },
    format: function format(value) {
      if (this.allowEmpty && value === '') {
        return value;
      }

      value = this.formatNumber(value); // format range

      value = value === '' ? 0 : +value;
      value = Object(number["a" /* isNaN */])(value) ? this.min : value;
      value = Math.max(Math.min(this.max, value), this.min); // format decimal

      if (Object(utils["c" /* isDef */])(this.decimalLength)) {
        value = value.toFixed(this.decimalLength);
      }

      return value;
    },
    onInput: function onInput(event) {
      var value = event.target.value;
      var formatted = this.formatNumber(value); // limit max decimal length

      if (Object(utils["c" /* isDef */])(this.decimalLength) && formatted.indexOf('.') !== -1) {
        var pair = formatted.split('.');
        formatted = pair[0] + "." + pair[1].slice(0, this.decimalLength);
      }

      if (!stepper_equal(value, formatted)) {
        event.target.value = formatted;
      } // prefer number type


      if (formatted === String(+formatted)) {
        formatted = +formatted;
      }

      this.emitChange(formatted);
    },
    emitChange: function emitChange(value) {
      if (this.asyncChange) {
        this.$emit('input', value);
        this.$emit('change', value, {
          name: this.name
        });
      } else {
        this.currentValue = value;
      }
    },
    onChange: function onChange() {
      var type = this.type;

      if (this[type + "Disabled"]) {
        this.$emit('overlimit', type);
        return;
      }

      var diff = type === 'minus' ? -this.step : +this.step;
      var value = this.format(addNumber(+this.currentValue, diff));
      this.emitChange(value);
      this.$emit(type);
    },
    onFocus: function onFocus(event) {
      // readonly not work in legacy mobile safari
      if (this.disableInput && this.$refs.input) {
        this.$refs.input.blur();
      } else {
        this.$emit('focus', event);
      }
    },
    onBlur: function onBlur(event) {
      var value = this.format(event.target.value);
      event.target.value = value;
      this.emitChange(value);
      this.$emit('blur', event);
      resetScroll();
    },
    longPressStep: function longPressStep() {
      var _this = this;

      this.longPressTimer = setTimeout(function () {
        _this.onChange();

        _this.longPressStep(_this.type);
      }, LONG_PRESS_INTERVAL);
    },
    onTouchStart: function onTouchStart() {
      var _this2 = this;

      if (!this.longPress) {
        return;
      }

      clearTimeout(this.longPressTimer);
      this.isLongPress = false;
      this.longPressTimer = setTimeout(function () {
        _this2.isLongPress = true;

        _this2.onChange();

        _this2.longPressStep();
      }, LONG_PRESS_START_TIME);
    },
    onTouchEnd: function onTouchEnd(event) {
      if (!this.longPress) {
        return;
      }

      clearTimeout(this.longPressTimer);

      if (this.isLongPress) {
        preventDefault(event);
      }
    },
    onMousedown: function onMousedown(event) {
      // fix mobile safari page scroll down issue
      // see: https://github.com/vant-ui/vant/issues/7690
      if (this.disableInput) {
        event.preventDefault();
      }
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];

    var createListeners = function createListeners(type) {
      return {
        on: {
          click: function click(e) {
            // disable double tap scrolling on mobile safari
            e.preventDefault();
            _this3.type = type;

            _this3.onChange();
          },
          touchstart: function touchstart() {
            _this3.type = type;

            _this3.onTouchStart();
          },
          touchend: _this3.onTouchEnd,
          touchcancel: _this3.onTouchEnd
        }
      };
    };

    return h("div", {
      "class": stepper_bem([this.theme])
    }, [h("button", helper_default()([{
      "directives": [{
        name: "show",
        value: this.showMinus
      }],
      "attrs": {
        "type": "button"
      },
      "style": this.buttonStyle,
      "class": stepper_bem('minus', {
        disabled: this.minusDisabled
      })
    }, createListeners('minus')])), h("input", {
      "directives": [{
        name: "show",
        value: this.showInput
      }],
      "ref": "input",
      "attrs": {
        "type": this.integer ? 'tel' : 'text',
        "role": "spinbutton",
        "disabled": this.disabled,
        "readonly": this.disableInput,
        "inputmode": this.integer ? 'numeric' : 'decimal',
        "placeholder": this.placeholder,
        "aria-valuemax": this.max,
        "aria-valuemin": this.min,
        "aria-valuenow": this.currentValue
      },
      "class": stepper_bem('input'),
      "domProps": {
        "value": this.currentValue
      },
      "style": this.inputStyle,
      "on": {
        "input": this.onInput,
        "focus": this.onFocus,
        "blur": this.onBlur,
        "mousedown": this.onMousedown
      }
    }), h("button", helper_default()([{
      "directives": [{
        name: "show",
        value: this.showPlus
      }],
      "attrs": {
        "type": "button"
      },
      "style": this.buttonStyle,
      "class": stepper_bem('plus', {
        disabled: this.plusDisabled
      })
    }, createListeners('plus')]))]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuStepper.js



var namespace = Object(create["a" /* createNamespace */])('sku-stepper');
var SkuStepper_createComponent = namespace[0];
var SkuStepper_t = namespace[2];
var QUOTA_LIMIT = LIMIT_TYPE.QUOTA_LIMIT,
    STOCK_LIMIT = LIMIT_TYPE.STOCK_LIMIT;
/* harmony default export */ var SkuStepper = (SkuStepper_createComponent({
  props: {
    stock: Number,
    skuEventBus: Object,
    skuStockNum: Number,
    selectedNum: Number,
    stepperTitle: String,
    disableStepperInput: Boolean,
    customStepperConfig: Object,
    hideQuotaText: Boolean,
    quota: {
      type: Number,
      default: 0
    },
    quotaUsed: {
      type: Number,
      default: 0
    },
    startSaleNum: {
      type: Number,
      default: 1
    }
  },
  data: function data() {
    return {
      currentNum: this.selectedNum,
      // 购买限制类型: 限购/库存
      limitType: STOCK_LIMIT
    };
  },
  watch: {
    currentNum: function currentNum(num) {
      var intValue = parseInt(num, 10);

      if (intValue >= this.stepperMinLimit && intValue <= this.stepperLimit) {
        this.skuEventBus.$emit('sku:numChange', intValue);
      }
    },
    stepperLimit: function stepperLimit(limit) {
      if (limit < this.currentNum && this.stepperMinLimit <= limit) {
        this.currentNum = limit;
      }

      this.checkState(this.stepperMinLimit, limit);
    },
    stepperMinLimit: function stepperMinLimit(start) {
      if (start > this.currentNum || start > this.stepperLimit) {
        this.currentNum = start;
      }

      this.checkState(start, this.stepperLimit);
    }
  },
  computed: {
    stepperLimit: function stepperLimit() {
      var quotaLimit = this.quota - this.quotaUsed;
      var limit; // 无限购时直接取库存，有限购时取限购数和库存数中小的那个

      if (this.quota > 0 && quotaLimit <= this.stock) {
        // 修正负的limit
        limit = quotaLimit < 0 ? 0 : quotaLimit;
        this.limitType = QUOTA_LIMIT;
      } else {
        limit = this.stock;
        this.limitType = STOCK_LIMIT;
      }

      return limit;
    },
    stepperMinLimit: function stepperMinLimit() {
      return this.startSaleNum < 1 ? 1 : this.startSaleNum;
    },
    quotaText: function quotaText() {
      var _this$customStepperCo = this.customStepperConfig,
          quotaText = _this$customStepperCo.quotaText,
          hideQuotaText = _this$customStepperCo.hideQuotaText;
      if (hideQuotaText) return '';
      var text = '';

      if (quotaText) {
        text = quotaText;
      } else {
        var textArr = [];

        if (this.startSaleNum > 1) {
          textArr.push(SkuStepper_t('quotaStart', this.startSaleNum));
        }

        if (this.quota > 0) {
          textArr.push(SkuStepper_t('quotaLimit', this.quota));
        }

        text = textArr.join(SkuStepper_t('comma'));
      }

      return text;
    }
  },
  created: function created() {
    this.checkState(this.stepperMinLimit, this.stepperLimit);
  },
  methods: {
    setCurrentNum: function setCurrentNum(num) {
      this.currentNum = num;
      this.checkState(this.stepperMinLimit, this.stepperLimit);
    },
    onOverLimit: function onOverLimit(action) {
      this.skuEventBus.$emit('sku:overLimit', {
        action: action,
        limitType: this.limitType,
        quota: this.quota,
        quotaUsed: this.quotaUsed,
        startSaleNum: this.startSaleNum
      });
    },
    onChange: function onChange(currentValue) {
      var intValue = parseInt(currentValue, 10);
      var handleStepperChange = this.customStepperConfig.handleStepperChange;
      handleStepperChange && handleStepperChange(intValue);
      this.$emit('change', intValue);
    },
    checkState: function checkState(min, max) {
      // 如果选择小于起售，则强制变为起售
      if (this.currentNum < min || min > max) {
        this.currentNum = min;
      } else if (this.currentNum > max) {
        // 当前选择数量大于最大可选时，需要重置已选数量
        this.currentNum = max;
      }

      this.skuEventBus.$emit('sku:stepperState', {
        valid: min <= max,
        min: min,
        max: max,
        limitType: this.limitType,
        quota: this.quota,
        quotaUsed: this.quotaUsed,
        startSaleNum: this.startSaleNum
      });
    }
  },
  render: function render() {
    var _this = this;

    var h = arguments[0];
    return h("div", {
      "class": "van-sku-stepper-stock"
    }, [h("div", {
      "class": "van-sku__stepper-title"
    }, [this.stepperTitle || SkuStepper_t('num')]), h(stepper, {
      "attrs": {
        "integer": true,
        "min": this.stepperMinLimit,
        "max": this.stepperLimit,
        "disableInput": this.disableStepperInput
      },
      "class": "van-sku__stepper",
      "on": {
        "overlimit": this.onOverLimit,
        "change": this.onChange
      },
      "model": {
        value: _this.currentNum,
        callback: function callback($$v) {
          _this.currentNum = $$v;
        }
      }
    }), !this.hideQuotaText && this.quotaText && h("span", {
      "class": "van-sku__stepper-quota"
    }, ["(", this.quotaText, ")"])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/utils/validate/email.js
/* eslint-disable */
function isEmail(value) {
  var reg = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;
  return reg.test(value.trim());
}
// CONCATENATED MODULE: ./node_modules/vant/es/uploader/utils.js

function toArray(item) {
  if (Array.isArray(item)) {
    return item;
  }

  return [item];
}
function utils_readFile(file, resultType) {
  return new Promise(function (resolve) {
    if (resultType === 'file') {
      resolve(null);
      return;
    }

    var reader = new FileReader();

    reader.onload = function (event) {
      resolve(event.target.result);
    };

    if (resultType === 'dataUrl') {
      reader.readAsDataURL(file);
    } else if (resultType === 'text') {
      reader.readAsText(file);
    }
  });
}
function isOversize(files, maxSize) {
  return toArray(files).some(function (file) {
    if (file) {
      if (Object(utils["e" /* isFunction */])(maxSize)) {
        return maxSize(file);
      }

      return file.size > maxSize;
    }

    return false;
  });
}
var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
function isImageUrl(url) {
  return IMAGE_REGEXP.test(url);
}
function isImageFile(item) {
  // some special urls cannot be recognized
  // user can add `isImage` flag to mark it as an image url
  if (item.isImage) {
    return true;
  }

  if (item.file && item.file.type) {
    return item.file.type.indexOf('image') === 0;
  }

  if (item.url) {
    return isImageUrl(item.url);
  }

  if (item.content) {
    return item.content.indexOf('data:image') === 0;
  }

  return false;
}
// CONCATENATED MODULE: ./node_modules/vant/es/uploader/index.js

// Utils

 // Mixins

 // Components






var uploader_createNamespace = Object(create["a" /* createNamespace */])('uploader'),
    uploader_createComponent = uploader_createNamespace[0],
    uploader_bem = uploader_createNamespace[1];

/* harmony default export */ var uploader = (uploader_createComponent({
  inheritAttrs: false,
  mixins: [FieldMixin],
  model: {
    prop: 'fileList'
  },
  props: {
    disabled: Boolean,
    readonly: Boolean,
    lazyLoad: Boolean,
    uploadText: String,
    afterRead: Function,
    beforeRead: Function,
    beforeDelete: Function,
    previewSize: [Number, String],
    previewOptions: Object,
    name: {
      type: [Number, String],
      default: ''
    },
    accept: {
      type: String,
      default: 'image/*'
    },
    fileList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    maxSize: {
      type: [Number, String, Function],
      default: Number.MAX_VALUE
    },
    maxCount: {
      type: [Number, String],
      default: Number.MAX_VALUE
    },
    deletable: {
      type: Boolean,
      default: true
    },
    showUpload: {
      type: Boolean,
      default: true
    },
    previewImage: {
      type: Boolean,
      default: true
    },
    previewFullImage: {
      type: Boolean,
      default: true
    },
    imageFit: {
      type: String,
      default: 'cover'
    },
    resultType: {
      type: String,
      default: 'dataUrl'
    },
    uploadIcon: {
      type: String,
      default: 'photograph'
    }
  },
  computed: {
    previewSizeWithUnit: function previewSizeWithUnit() {
      return Object(unit["a" /* addUnit */])(this.previewSize);
    },
    // for form
    value: function value() {
      return this.fileList;
    }
  },
  created: function created() {
    this.urls = [];
  },
  beforeDestroy: function beforeDestroy() {
    this.urls.forEach(function (url) {
      return URL.revokeObjectURL(url);
    });
  },
  methods: {
    getDetail: function getDetail(index) {
      if (index === void 0) {
        index = this.fileList.length;
      }

      return {
        name: this.name,
        index: index
      };
    },
    onChange: function onChange(event) {
      var _this = this;

      var files = event.target.files;

      if (this.disabled || !files.length) {
        return;
      }

      files = files.length === 1 ? files[0] : [].slice.call(files);

      if (this.beforeRead) {
        var response = this.beforeRead(files, this.getDetail());

        if (!response) {
          this.resetInput();
          return;
        }

        if (Object(utils["g" /* isPromise */])(response)) {
          response.then(function (data) {
            if (data) {
              _this.readFile(data);
            } else {
              _this.readFile(files);
            }
          }).catch(this.resetInput);
          return;
        }
      }

      this.readFile(files);
    },
    readFile: function readFile(files) {
      var _this2 = this;

      var oversize = isOversize(files, this.maxSize);

      if (Array.isArray(files)) {
        var maxCount = this.maxCount - this.fileList.length;

        if (files.length > maxCount) {
          files = files.slice(0, maxCount);
        }

        Promise.all(files.map(function (file) {
          return utils_readFile(file, _this2.resultType);
        })).then(function (contents) {
          var fileList = files.map(function (file, index) {
            var result = {
              file: file,
              status: '',
              message: ''
            };

            if (contents[index]) {
              result.content = contents[index];
            }

            return result;
          });

          _this2.onAfterRead(fileList, oversize);
        });
      } else {
        utils_readFile(files, this.resultType).then(function (content) {
          var result = {
            file: files,
            status: '',
            message: ''
          };

          if (content) {
            result.content = content;
          }

          _this2.onAfterRead(result, oversize);
        });
      }
    },
    onAfterRead: function onAfterRead(files, oversize) {
      var _this3 = this;

      this.resetInput();
      var validFiles = files;

      if (oversize) {
        var oversizeFiles = files;

        if (Array.isArray(files)) {
          oversizeFiles = [];
          validFiles = [];
          files.forEach(function (item) {
            if (item.file) {
              if (isOversize(item.file, _this3.maxSize)) {
                oversizeFiles.push(item);
              } else {
                validFiles.push(item);
              }
            }
          });
        } else {
          validFiles = null;
        }

        this.$emit('oversize', oversizeFiles, this.getDetail());
      }

      var isValidFiles = Array.isArray(validFiles) ? Boolean(validFiles.length) : Boolean(validFiles);

      if (isValidFiles) {
        this.$emit('input', [].concat(this.fileList, toArray(validFiles)));

        if (this.afterRead) {
          this.afterRead(validFiles, this.getDetail());
        }
      }
    },
    onDelete: function onDelete(file, index) {
      var _file$beforeDelete,
          _this4 = this;

      var beforeDelete = (_file$beforeDelete = file.beforeDelete) != null ? _file$beforeDelete : this.beforeDelete;

      if (beforeDelete) {
        var response = beforeDelete(file, this.getDetail(index));

        if (!response) {
          return;
        }

        if (Object(utils["g" /* isPromise */])(response)) {
          response.then(function () {
            _this4.deleteFile(file, index);
          }).catch(utils["i" /* noop */]);
          return;
        }
      }

      this.deleteFile(file, index);
    },
    deleteFile: function deleteFile(file, index) {
      var fileList = this.fileList.slice(0);
      fileList.splice(index, 1);
      this.$emit('input', fileList);
      this.$emit('delete', file, this.getDetail(index));
    },
    resetInput: function resetInput() {
      /* istanbul ignore else */
      if (this.$refs.input) {
        this.$refs.input.value = '';
      }
    },
    onClickUpload: function onClickUpload(event) {
      this.$emit('click-upload', event);
    },
    onPreviewImage: function onPreviewImage(item) {
      var _this5 = this;

      if (!this.previewFullImage) {
        return;
      }

      var imageFiles = this.fileList.filter(function (item) {
        return isImageFile(item);
      });
      var imageContents = imageFiles.map(function (item) {
        if (item.file && !item.url && item.status !== 'failed') {
          item.url = URL.createObjectURL(item.file);

          _this5.urls.push(item.url);
        }

        return item.url;
      });
      this.imagePreview = image_preview(_extends({
        images: imageContents,
        startPosition: imageFiles.indexOf(item),
        onClose: function onClose() {
          _this5.$emit('close-preview');
        }
      }, this.previewOptions));
    },
    // @exposed-api
    closeImagePreview: function closeImagePreview() {
      if (this.imagePreview) {
        this.imagePreview.close();
      }
    },
    // @exposed-api
    chooseFile: function chooseFile() {
      if (this.disabled) {
        return;
      }
      /* istanbul ignore else */


      if (this.$refs.input) {
        this.$refs.input.click();
      }
    },
    genPreviewMask: function genPreviewMask(item) {
      var h = this.$createElement;
      var status = item.status,
          message = item.message;

      if (status === 'uploading' || status === 'failed') {
        var MaskIcon = status === 'failed' ? h(es_icon, {
          "attrs": {
            "name": "close"
          },
          "class": uploader_bem('mask-icon')
        }) : h(es_loading, {
          "class": uploader_bem('loading')
        });
        var showMessage = Object(utils["c" /* isDef */])(message) && message !== '';
        return h("div", {
          "class": uploader_bem('mask')
        }, [MaskIcon, showMessage && h("div", {
          "class": uploader_bem('mask-message')
        }, [message])]);
      }
    },
    genPreviewItem: function genPreviewItem(item, index) {
      var _item$deletable,
          _this6 = this,
          _item$previewSize,
          _item$imageFit;

      var h = this.$createElement;
      var deleteAble = (_item$deletable = item.deletable) != null ? _item$deletable : this.deletable;
      var showDelete = item.status !== 'uploading' && deleteAble;
      var DeleteIcon = showDelete && h("div", {
        "class": uploader_bem('preview-delete'),
        "on": {
          "click": function click(event) {
            event.stopPropagation();

            _this6.onDelete(item, index);
          }
        }
      }, [h(es_icon, {
        "attrs": {
          "name": "cross"
        },
        "class": uploader_bem('preview-delete-icon')
      })]);
      var PreviewCoverContent = this.slots('preview-cover', _extends({
        index: index
      }, item));
      var PreviewCover = PreviewCoverContent && h("div", {
        "class": uploader_bem('preview-cover')
      }, [PreviewCoverContent]);
      var previewSize = (_item$previewSize = item.previewSize) != null ? _item$previewSize : this.previewSize;
      var imageFit = (_item$imageFit = item.imageFit) != null ? _item$imageFit : this.imageFit;
      var Preview = isImageFile(item) ? h(es_image, {
        "attrs": {
          "fit": imageFit,
          "src": item.content || item.url,
          "width": previewSize,
          "height": previewSize,
          "lazyLoad": this.lazyLoad
        },
        "class": uploader_bem('preview-image'),
        "on": {
          "click": function click() {
            _this6.onPreviewImage(item);
          }
        }
      }, [PreviewCover]) : h("div", {
        "class": uploader_bem('file'),
        "style": {
          width: this.previewSizeWithUnit,
          height: this.previewSizeWithUnit
        }
      }, [h(es_icon, {
        "class": uploader_bem('file-icon'),
        "attrs": {
          "name": "description"
        }
      }), h("div", {
        "class": [uploader_bem('file-name'), 'van-ellipsis']
      }, [item.file ? item.file.name : item.url]), PreviewCover]);
      return h("div", {
        "class": uploader_bem('preview'),
        "on": {
          "click": function click() {
            _this6.$emit('click-preview', item, _this6.getDetail(index));
          }
        }
      }, [Preview, this.genPreviewMask(item), DeleteIcon]);
    },
    genPreviewList: function genPreviewList() {
      if (this.previewImage) {
        return this.fileList.map(this.genPreviewItem);
      }
    },
    genUpload: function genUpload() {
      var h = this.$createElement;

      if (this.fileList.length >= this.maxCount) {
        return;
      }

      var slot = this.slots();
      var Input = this.readonly ? null : h("input", {
        "attrs": _extends({}, this.$attrs, {
          "type": "file",
          "accept": this.accept,
          "disabled": this.disabled
        }),
        "ref": "input",
        "class": uploader_bem('input'),
        "on": {
          "change": this.onChange
        }
      });

      if (slot) {
        return h("div", {
          "class": uploader_bem('input-wrapper'),
          "key": "input-wrapper",
          "on": {
            "click": this.onClickUpload
          }
        }, [slot, Input]);
      }

      var style;

      if (this.previewSize) {
        var size = this.previewSizeWithUnit;
        style = {
          width: size,
          height: size
        };
      }

      return h("div", {
        "directives": [{
          name: "show",
          value: this.showUpload
        }],
        "class": uploader_bem('upload', {
          readonly: this.readonly
        }),
        "style": style,
        "on": {
          "click": this.onClickUpload
        }
      }, [h(es_icon, {
        "attrs": {
          "name": this.uploadIcon
        },
        "class": uploader_bem('upload-icon')
      }), this.uploadText && h("span", {
        "class": uploader_bem('upload-text')
      }, [this.uploadText]), Input]);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": uploader_bem()
    }, [h("div", {
      "class": uploader_bem('wrapper', {
        disabled: this.disabled
      })
    }, [this.genPreviewList(), this.genUpload()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuImgUploader.js
// Utils
 // Components


var SkuImgUploader_namespace = Object(create["a" /* createNamespace */])('sku-img-uploader');
var SkuImgUploader_createComponent = SkuImgUploader_namespace[0];
var SkuImgUploader_t = SkuImgUploader_namespace[2];
/* harmony default export */ var SkuImgUploader = (SkuImgUploader_createComponent({
  props: {
    value: String,
    uploadImg: Function,
    customUpload: Function,
    maxSize: {
      type: Number,
      default: 6
    }
  },
  data: function data() {
    return {
      fileList: []
    };
  },
  watch: {
    value: function value(val) {
      if (val) {
        this.fileList = [{
          url: val,
          isImage: true
        }];
      } else {
        this.fileList = [];
      }
    }
  },
  methods: {
    afterReadFile: function afterReadFile(file) {
      var _this = this;

      file.status = 'uploading';
      file.message = SkuImgUploader_t('uploading');
      this.uploadImg(file.file, file.content).then(function (img) {
        file.status = 'done';

        _this.$emit('input', img);
      }).catch(function () {
        file.status = 'failed';
        file.message = SkuImgUploader_t('fail');
      });
    },
    onOversize: function onOversize() {
      this.$toast(SkuImgUploader_t('oversize', this.maxSize));
    },
    onDelete: function onDelete() {
      this.$emit('input', '');
    },
    onClickUpload: function onClickUpload() {
      var _this2 = this;

      if (this.customUpload) {
        this.customUpload().then(function (url) {
          _this2.fileList.push({
            url: url
          });

          _this2.$emit('input', url);
        });
      }
    }
  },
  render: function render() {
    var _this3 = this;

    var h = arguments[0];
    return h(uploader, {
      "attrs": {
        "maxCount": 1,
        "readonly": !!this.customUpload,
        "maxSize": this.maxSize * 1024 * 1024,
        "afterRead": this.afterReadFile
      },
      "on": {
        "oversize": this.onOversize,
        "delete": this.onDelete,
        "click-upload": this.onClickUpload
      },
      "model": {
        value: _this3.fileList,
        callback: function callback($$v) {
          _this3.fileList = $$v;
        }
      }
    });
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/utils/time-helper.js
 // 字符串转 Date
// 只处理 YYYY-MM-DD 或者 YYYY-MM-DD HH:MM 格式

function stringToDate(timeString) {
  if (!timeString) {
    return null;
  }

  return new Date(timeString.replace(/-/g, '/'));
} // Date 转字符串
// type: date or datetime

function dateToString(date, type) {
  if (type === void 0) {
    type = 'date';
  }

  if (!date) {
    return '';
  }

  var year = date.getFullYear();
  var month = date.getMonth() + 1;
  var day = date.getDate();
  var timeString = year + "-" + Object(string["b" /* padZero */])(month) + "-" + Object(string["b" /* padZero */])(day);

  if (type === 'datetime') {
    var hours = date.getHours();
    var minute = date.getMinutes();
    timeString += " " + Object(string["b" /* padZero */])(hours) + ":" + Object(string["b" /* padZero */])(minute);
  }

  return timeString;
}
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuDateTimeField.js
// Utils

 // Components




var SkuDateTimeField_namespace = Object(create["a" /* createNamespace */])('sku-datetime-field');
var SkuDateTimeField_createComponent = SkuDateTimeField_namespace[0];
var SkuDateTimeField_t = SkuDateTimeField_namespace[2];
/* harmony default export */ var SkuDateTimeField = (SkuDateTimeField_createComponent({
  props: {
    value: String,
    label: String,
    required: Boolean,
    placeholder: String,
    type: {
      type: String,
      default: 'date'
    }
  },
  data: function data() {
    return {
      showDatePicker: false,
      currentDate: this.type === 'time' ? '' : new Date(),
      minDate: new Date(new Date().getFullYear() - 60, 0, 1)
    };
  },
  watch: {
    value: function value(val) {
      switch (this.type) {
        case 'time':
          this.currentDate = val;
          break;

        case 'date':
        case 'datetime':
          this.currentDate = stringToDate(val) || new Date();
          break;
      }
    }
  },
  computed: {
    title: function title() {
      return SkuDateTimeField_t("title." + this.type);
    }
  },
  methods: {
    onClick: function onClick() {
      this.showDatePicker = true;
    },
    onConfirm: function onConfirm(val) {
      var data = val;

      if (this.type !== 'time') {
        data = dateToString(val, this.type);
      }

      this.$emit('input', data);
      this.showDatePicker = false;
    },
    onCancel: function onCancel() {
      this.showDatePicker = false;
    },
    formatter: function formatter(type, val) {
      var word = SkuDateTimeField_t("format." + type);
      return "" + val + word;
    }
  },
  render: function render() {
    var _this = this;

    var h = arguments[0];
    return h(es_field, {
      "attrs": {
        "readonly": true,
        "is-link": true,
        "center": true,
        "value": this.value,
        "label": this.label,
        "required": this.required,
        "placeholder": this.placeholder
      },
      "on": {
        "click": this.onClick
      }
    }, [h(popup, {
      "attrs": {
        "round": true,
        "position": "bottom",
        "getContainer": "body"
      },
      "slot": "extra",
      "model": {
        value: _this.showDatePicker,
        callback: function callback($$v) {
          _this.showDatePicker = $$v;
        }
      }
    }, [h(datetime_picker, {
      "attrs": {
        "type": this.type,
        "title": this.title,
        "value": this.currentDate,
        "minDate": this.minDate,
        "formatter": this.formatter
      },
      "on": {
        "cancel": this.onCancel,
        "confirm": this.onConfirm
      }
    })])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuMessages.js
// Utils


 // Components






var SkuMessages_createNamespace = Object(create["a" /* createNamespace */])('sku-messages'),
    SkuMessages_createComponent = SkuMessages_createNamespace[0],
    SkuMessages_bem = SkuMessages_createNamespace[1],
    SkuMessages_t = SkuMessages_createNamespace[2];

/* harmony default export */ var SkuMessages = (SkuMessages_createComponent({
  props: {
    messageConfig: Object,
    goodsId: [Number, String],
    messages: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  data: function data() {
    return {
      messageValues: this.resetMessageValues(this.messages)
    };
  },
  watch: {
    messages: function messages(val) {
      this.messageValues = this.resetMessageValues(val);
    }
  },
  methods: {
    resetMessageValues: function resetMessageValues(messages) {
      var messageConfig = this.messageConfig;
      var _messageConfig$initia = messageConfig.initialMessages,
          initialMessages = _messageConfig$initia === void 0 ? {} : _messageConfig$initia;
      return (messages || []).map(function (message) {
        return {
          value: initialMessages[message.name] || ''
        };
      });
    },
    getType: function getType(message) {
      if (+message.multiple === 1) {
        return 'textarea';
      }

      if (message.type === 'id_no') {
        return 'text';
      }

      return message.datetime > 0 ? 'datetime' : message.type;
    },
    getMessages: function getMessages() {
      var messages = {};
      this.messageValues.forEach(function (item, index) {
        messages["message_" + index] = item.value;
      });
      return messages;
    },
    getCartMessages: function getCartMessages() {
      var _this = this;

      var messages = {};
      this.messageValues.forEach(function (item, index) {
        var message = _this.messages[index];
        messages[message.name] = item.value;
      });
      return messages;
    },
    getPlaceholder: function getPlaceholder(message) {
      var type = +message.multiple === 1 ? 'textarea' : message.type;
      var map = this.messageConfig.placeholderMap || {};
      return message.placeholder || map[type] || SkuMessages_t("placeholder." + type);
    },
    validateMessages: function validateMessages() {
      var values = this.messageValues;

      for (var i = 0; i < values.length; i++) {
        var value = values[i].value;
        var message = this.messages[i];

        if (value === '') {
          // 必填字段的校验
          if (String(message.required) === '1') {
            var textType = SkuMessages_t(message.type === 'image' ? 'upload' : 'fill');
            return textType + message.name;
          }
        } else {
          if (message.type === 'tel' && !Object(number["b" /* isNumeric */])(value)) {
            return SkuMessages_t('invalid.tel');
          }

          if (message.type === 'mobile' && !/^\d{6,20}$/.test(value)) {
            return SkuMessages_t('invalid.mobile');
          }

          if (message.type === 'email' && !isEmail(value)) {
            return SkuMessages_t('invalid.email');
          }

          if (message.type === 'id_no' && (value.length < 15 || value.length > 18)) {
            return SkuMessages_t('invalid.id_no');
          }
        }
      }
    },

    /**
     * The phone number copied from IOS mobile phone address book
     * will add spaces and invisible Unicode characters
     * which cannot pass the /^\d+$/ verification
     * so keep numbers and dots
     */
    getFormatter: function getFormatter(message) {
      return function formatter(value) {
        if (message.type === 'mobile' || message.type === 'tel') {
          return value.replace(/[^\d.]/g, '');
        }

        return value;
      };
    },
    getExtraDesc: function getExtraDesc(message) {
      var h = this.$createElement;
      var extraDesc = message.extraDesc;

      if (extraDesc) {
        return h("div", {
          "class": SkuMessages_bem('extra-message')
        }, [extraDesc]);
      }
    },
    genMessage: function genMessage(message, index) {
      var _this2 = this;

      var h = this.$createElement;

      if (message.type === 'image') {
        return h(cell, {
          "key": this.goodsId + "-" + index,
          "attrs": {
            "title": message.name,
            "required": String(message.required) === '1',
            "valueClass": SkuMessages_bem('image-cell-value')
          },
          "class": SkuMessages_bem('image-cell')
        }, [h(SkuImgUploader, {
          "attrs": {
            "maxSize": this.messageConfig.uploadMaxSize,
            "uploadImg": this.messageConfig.uploadImg,
            "customUpload": this.messageConfig.customUpload
          },
          "model": {
            value: _this2.messageValues[index].value,
            callback: function callback($$v) {
              _this2.$set(_this2.messageValues[index], "value", $$v);
            }
          }
        }), h("div", {
          "class": SkuMessages_bem('image-cell-label')
        }, [SkuMessages_t('imageLabel')])]);
      } // 时间和日期使用的vant选择器


      var isDateOrTime = ['date', 'time'].indexOf(message.type) > -1;

      if (isDateOrTime) {
        return h(SkuDateTimeField, {
          "attrs": {
            "label": message.name,
            "required": String(message.required) === '1',
            "placeholder": this.getPlaceholder(message),
            "type": this.getType(message)
          },
          "key": this.goodsId + "-" + index,
          "model": {
            value: _this2.messageValues[index].value,
            callback: function callback($$v) {
              _this2.$set(_this2.messageValues[index], "value", $$v);
            }
          }
        });
      }

      return h("div", {
        "class": SkuMessages_bem('cell-block')
      }, [h(es_field, {
        "attrs": {
          "maxlength": "200",
          "center": !message.multiple,
          "label": message.name,
          "required": String(message.required) === '1',
          "placeholder": this.getPlaceholder(message),
          "type": this.getType(message),
          "formatter": this.getFormatter(message),
          "border": false
        },
        "key": this.goodsId + "-" + index,
        "model": {
          value: _this2.messageValues[index].value,
          callback: function callback($$v) {
            _this2.$set(_this2.messageValues[index], "value", $$v);
          }
        }
      }), this.getExtraDesc(message)]);
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": SkuMessages_bem()
    }, [this.messages.map(this.genMessage)]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/components/SkuActions.js

// Utils

 // Components

 // Types

var SkuActions_createNamespace = Object(create["a" /* createNamespace */])('sku-actions'),
    SkuActions_createComponent = SkuActions_createNamespace[0],
    SkuActions_bem = SkuActions_createNamespace[1],
    SkuActions_t = SkuActions_createNamespace[2];

function SkuActions(h, props, slots, ctx) {
  var createEmitter = function createEmitter(name) {
    return function () {
      props.skuEventBus.$emit(name);
    };
  };

  return h("div", helper_default()([{
    "class": SkuActions_bem()
  }, inherit(ctx)]), [props.showAddCartBtn && h(es_button, {
    "attrs": {
      "size": "large",
      "type": "warning",
      "text": props.addCartText || SkuActions_t('addCart')
    },
    "on": {
      "click": createEmitter('sku:addCart')
    }
  }), h(es_button, {
    "attrs": {
      "size": "large",
      "type": "danger",
      "text": props.buyText || SkuActions_t('buy')
    },
    "on": {
      "click": createEmitter('sku:buy')
    }
  })]);
}

SkuActions.props = {
  buyText: String,
  addCartText: String,
  skuEventBus: Object,
  showAddCartBtn: Boolean
};
/* harmony default export */ var components_SkuActions = (SkuActions_createComponent(SkuActions));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/Sku.js
















var Sku_namespace = Object(create["a" /* createNamespace */])('sku');
var Sku_createComponent = Sku_namespace[0],
    Sku_bem = Sku_namespace[1],
    Sku_t = Sku_namespace[2];
var Sku_QUOTA_LIMIT = LIMIT_TYPE.QUOTA_LIMIT;
/* harmony default export */ var Sku = (Sku_createComponent({
  props: {
    sku: Object,
    goods: Object,
    value: Boolean,
    buyText: String,
    goodsId: [Number, String],
    priceTag: String,
    lazyLoad: Boolean,
    hideStock: Boolean,
    properties: Array,
    skuProperties: Array,
    addCartText: String,
    stepperTitle: String,
    getContainer: [String, Function],
    hideQuotaText: Boolean,
    hideSelectedText: Boolean,
    resetStepperOnHide: Boolean,
    customSkuValidator: Function,
    disableStepperInput: Boolean,
    resetSelectedSkuOnHide: Boolean,
    quota: {
      type: Number,
      default: 0
    },
    quotaUsed: {
      type: Number,
      default: 0
    },
    startSaleNum: {
      type: Number,
      default: 1
    },
    initialSku: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    stockThreshold: {
      type: Number,
      default: 50
    },
    showSoldoutSku: {
      type: Boolean,
      default: true
    },
    showAddCartBtn: {
      type: Boolean,
      default: true
    },
    disableSoldoutSku: {
      type: Boolean,
      default: true
    },
    customStepperConfig: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    showHeaderImage: {
      type: Boolean,
      default: true
    },
    previewOnClickImage: {
      type: Boolean,
      default: true
    },
    safeAreaInsetBottom: {
      type: Boolean,
      default: true
    },
    closeOnClickOverlay: {
      type: Boolean,
      default: true
    },
    bodyOffsetTop: {
      type: Number,
      default: 200
    },
    messageConfig: {
      type: Object,
      default: function _default() {
        return {
          initialMessages: {},
          placeholderMap: {},
          uploadImg: function uploadImg() {
            return Promise.resolve();
          },
          uploadMaxSize: 5
        };
      }
    }
  },
  data: function data() {
    return {
      selectedSku: {},
      selectedProp: {},
      selectedNum: 1,
      show: this.value,
      currentSkuProperties: []
    };
  },
  watch: {
    show: function show(val) {
      this.$emit('input', val);

      if (!val) {
        this.$emit('sku-close', {
          selectedSkuValues: this.selectedSkuValues,
          selectedNum: this.selectedNum,
          selectedSkuComb: this.selectedSkuComb
        });

        if (this.resetStepperOnHide) {
          this.resetStepper();
        }

        if (this.resetSelectedSkuOnHide) {
          this.resetSelectedSku();
        }
      }
    },
    value: function value(val) {
      this.show = val;
    },
    initialSku: function initialSku() {
      this.resetStepper();
      this.resetSelectedSku();
    }
  },
  computed: {
    isSkuProperties: function isSkuProperties() {
      return this.skuProperties && this.skuProperties.length;
    },
    skuGroupClass: function skuGroupClass() {
      return ['van-sku-group-container', {
        'van-sku-group-container--hide-soldout': !this.showSoldoutSku
      }];
    },
    bodyStyle: function bodyStyle() {
      if (this.$isServer) {
        return;
      }

      var maxHeight = window.innerHeight - this.bodyOffsetTop;
      return {
        maxHeight: maxHeight + 'px'
      };
    },
    isSkuCombSelected: function isSkuCombSelected() {
      var _this = this;

      // SKU 未选完
      if (this.hasSku && !sku_helper_isAllSelected(this.skuTree, this.selectedSku)) {
        return false;
      } // 属性未全选


      return !this.propList.filter(function (i) {
        return i.is_necessary !== false;
      }).some(function (i) {
        return (_this.selectedProp[i.k_id] || []).length === 0;
      });
    },
    isSkuEmpty: function isSkuEmpty() {
      return Object.keys(this.sku).length === 0;
    },
    hasSku: function hasSku() {
      return !this.sku.none_sku;
    },
    hasSkuOrAttr: function hasSkuOrAttr() {
      return this.hasSku || this.propList.length > 0;
    },
    selectedSkuComb: function selectedSkuComb() {
      var skuComb = null;

      if (this.isSkuCombSelected || this.isSkuProperties) {
        if (this.hasSku) {
          skuComb = getSkuComb(this.skuList, this.selectedSku);
        } else {
          skuComb = {
            id: this.sku.collection_id,
            price: Math.round(this.sku.price * 100),
            stock_num: this.sku.stock_num
          };
        } // 更新当前规格属性数据


        this.setCurrentSkuProperties(skuComb ? skuComb.id : null);

        if (skuComb) {
          skuComb.properties = sku_helper_getSelectedProperties(this.propList, this.selectedProp);
          skuComb.property_price = this.selectedPropValues.reduce(function (acc, cur) {
            return acc + (cur.price || 0);
          }, 0);
        }
      }

      return skuComb;
    },
    selectedSkuValues: function selectedSkuValues() {
      return sku_helper_getSelectedSkuValues(this.skuTree, this.selectedSku);
    },
    selectedPropValues: function selectedPropValues() {
      return sku_helper_getSelectedPropValues(this.propList, this.selectedProp);
    },
    price: function price() {
      if (this.selectedSkuComb) {
        return ((this.selectedSkuComb.price + this.selectedSkuComb.property_price) / 100).toFixed(2);
      } // sku.price是一个格式化好的价格区间


      return this.sku.price;
    },
    originPrice: function originPrice() {
      if (this.selectedSkuComb && this.selectedSkuComb.origin_price) {
        return ((this.selectedSkuComb.origin_price + this.selectedSkuComb.property_price) / 100).toFixed(2);
      }

      return this.sku.origin_price;
    },
    skuTree: function skuTree() {
      var originTree = this.sku.tree || []; // 避免不必要的重复计算

      if (!originTree.length || !this.skuList.length) {
        return originTree;
      }

      return sku_helper_filterDisabledSkuTree(originTree, this.skuList, this.selectedSku);
    },
    skuList: function skuList() {
      return this.sku.list || [];
    },
    propList: function propList() {
      return this.isSkuProperties ? this.currentSkuProperties : this.properties || [];
    },
    imageList: function imageList() {
      var imageList = [this.goods.picture];

      if (this.skuTree.length > 0) {
        this.skuTree.forEach(function (treeItem) {
          if (!treeItem.v) {
            return;
          }

          treeItem.v.forEach(function (vItem) {
            var imgUrl = vItem.previewImgUrl || vItem.imgUrl || vItem.img_url;

            if (imgUrl && imageList.indexOf(imgUrl) === -1) {
              imageList.push(imgUrl);
            }
          });
        });
      }

      return imageList;
    },
    stock: function stock() {
      var stockNum = this.customStepperConfig.stockNum;

      if (stockNum !== undefined) {
        return stockNum;
      }

      if (this.selectedSkuComb) {
        return this.selectedSkuComb.stock_num;
      }

      return this.sku.stock_num;
    },
    stockText: function stockText() {
      var h = this.$createElement;
      var stockFormatter = this.customStepperConfig.stockFormatter;

      if (stockFormatter) {
        return stockFormatter(this.stock);
      }

      return [Sku_t('stock') + " ", h("span", {
        "class": Sku_bem('stock-num', {
          highlight: this.stock < this.stockThreshold
        })
      }, [this.stock]), " " + Sku_t('stockUnit')];
    },
    selectedText: function selectedText() {
      var _this2 = this;

      if (this.selectedSkuComb) {
        var values = this.selectedSkuValues.concat(this.selectedPropValues);
        return Sku_t('selected') + " " + values.map(function (item) {
          return item.name;
        }).join(' ');
      }

      var unselectedSku = this.skuTree.filter(function (item) {
        return _this2.selectedSku[item.k_s] === UNSELECTED_SKU_VALUE_ID;
      }).map(function (item) {
        return item.k;
      });
      var unselectedProp = this.propList.filter(function (item) {
        return (_this2.selectedProp[item.k_id] || []).length < 1;
      }).map(function (item) {
        return item.k;
      });
      return Sku_t('select') + " " + unselectedSku.concat(unselectedProp).join(' ');
    }
  },
  created: function created() {
    var skuEventBus = new vue_default.a();
    this.skuEventBus = skuEventBus;
    skuEventBus.$on('sku:select', this.onSelect);
    skuEventBus.$on('sku:propSelect', this.onPropSelect);
    skuEventBus.$on('sku:numChange', this.onNumChange);
    skuEventBus.$on('sku:previewImage', this.onPreviewImage);
    skuEventBus.$on('sku:overLimit', this.onOverLimit);
    skuEventBus.$on('sku:stepperState', this.onStepperState);
    skuEventBus.$on('sku:addCart', this.onAddCart);
    skuEventBus.$on('sku:buy', this.onBuy);
    this.resetStepper();
    this.resetSelectedSku(); // 组件初始化后的钩子，抛出skuEventBus

    this.$emit('after-sku-create', skuEventBus);
  },
  methods: {
    setCurrentSkuProperties: function setCurrentSkuProperties(id) {
      var _this$skuProperties;

      var target = ((_this$skuProperties = this.skuProperties) == null ? void 0 : _this$skuProperties.find(function (item) {
        return item.sku_id === id;
      })) || {};
      this.currentSkuProperties = target.properties || [];
    },
    resetStepper: function resetStepper() {
      var skuStepper = this.$refs.skuStepper;
      var selectedNum = this.initialSku.selectedNum;
      var num = selectedNum != null ? selectedNum : this.startSaleNum; // 用来缓存不合法的情况

      this.stepperError = null;

      if (skuStepper) {
        skuStepper.setCurrentNum(num);
      } else {
        // 当首次加载（skuStepper 为空）时，传入数量如果不合法，可能会存在问题
        this.selectedNum = num;
      }
    },
    // @exposed-api
    resetSelectedSku: function resetSelectedSku() {
      var _this3 = this;

      this.selectedSku = {}; // 检查initialSku中指定的值是否全部被禁用

      var initialSkuDisabled = this.checkInitialSkuDisabled(); // 如果initialSku中的值全部被禁用，直接返回空选择

      if (initialSkuDisabled) {
        // 重置商品属性
        this.resetSelectedProp();
        return;
      } // 重置 selectedSku


      this.skuTree.forEach(function (item) {
        _this3.selectedSku[item.k_s] = UNSELECTED_SKU_VALUE_ID;
      });
      this.skuTree.forEach(function (item) {
        var key = item.k_s; // 规格值只有1个时，优先判断

        var valueId = item.v.length === 1 ? item.v[0].id : _this3.initialSku[key];

        if (valueId && sku_helper_isSkuChoosable(_this3.skuList, _this3.selectedSku, {
          key: key,
          valueId: valueId
        })) {
          // 检查是否有对应的非禁用SKU
          var skusWithThisValue = _this3.skuList.filter(function (sku) {
            return String(sku[key]) === String(valueId);
          });

          var hasNonDisabledSku = skusWithThisValue.some(function (sku) {
            return sku.disable_status !== 1;
          });

          if (hasNonDisabledSku) {
            _this3.selectedSku[key] = valueId;
          }
        }
      });
      var skuValues = this.selectedSkuValues;

      if (skuValues.length > 0) {
        this.$nextTick(function () {
          _this3.$emit('sku-selected', {
            skuValue: skuValues[skuValues.length - 1],
            selectedSku: _this3.selectedSku,
            selectedSkuComb: _this3.selectedSkuComb
          });
        });
      }

      this.resetSelectedProp(); // 抛出重置事件

      this.$emit('sku-reset', {
        selectedSku: this.selectedSku,
        selectedProp: this.selectedProp,
        selectedSkuComb: this.selectedSkuComb
      });
      this.centerInitialSku();
    },
    // 检查initialSku中指定的值是否全部被禁用
    checkInitialSkuDisabled: function checkInitialSkuDisabled() {
      var _this4 = this;

      // 如果没有initialSku或者没有skuList，则不进行检查
      if (Object(utils["d" /* isEmpty */])(this.initialSku) || !this.skuList.length) {
        return false;
      } // 只关注 s1 到 s5 的规格键


      var skuKeys = ['s1', 's2', 's3', 's4', 's5']; // 获取initialSku中有效的规格项

      var initialSkuKeys = skuKeys.filter(function (key) {
        return _this4.initialSku[key] !== undefined && _this4.initialSku[key] !== UNSELECTED_SKU_VALUE_ID && _this4.initialSku[key] !== '';
      }); // 如果没有有效的规格项，则不进行检查

      if (!initialSkuKeys.length) {
        return false;
      } // 查找符合initialSku的所有sku组合


      var matchedSkus = this.skuList.filter(function (sku) {
        return initialSkuKeys.every(function (key) {
          return String(sku[key]) === String(_this4.initialSku[key]);
        });
      }); // 如果没有匹配的sku或者所有匹配的sku都被禁用，则返回true

      return !matchedSkus.length || matchedSkus.every(function (sku) {
        return sku.disable_status === 1;
      });
    },
    // 重置商品属性
    resetSelectedProp: function resetSelectedProp() {
      var _this5 = this;

      this.selectedProp = {};
      var _this$initialSku$sele = this.initialSku.selectedProp,
          selectedProp = _this$initialSku$sele === void 0 ? {} : _this$initialSku$sele; // 选中外部传入信息

      this.propList.forEach(function (item) {
        if (selectedProp[item.k_id]) {
          _this5.selectedProp[item.k_id] = selectedProp[item.k_id];
        }
      });

      if (Object(utils["d" /* isEmpty */])(this.selectedProp)) {
        this.propList.forEach(function (item) {
          var _item$v;

          // 没有加价的属性，默认选中第一个
          if ((item == null ? void 0 : (_item$v = item.v) == null ? void 0 : _item$v.length) > 0) {
            var v = item.v,
                k_id = item.k_id;
            var isHasConfigPrice = v.some(function (i) {
              return +i.price !== 0;
            }); // 没有加价属性

            if (!isHasConfigPrice) {
              // 找到第一个不被禁用的属性
              // 历史如果没有 text_status 字段的，就相当于沿用直接原来的逻辑取第一个属性
              var firstEnableProp = v.find(function (prop) {
                return prop.text_status !== 0;
              });

              if (firstEnableProp) {
                _this5.selectedProp[k_id] = [firstEnableProp.id];
              }
            }
          }
        });
      }

      var propValues = this.selectedPropValues;

      if (propValues.length > 0) {
        this.$emit('sku-prop-selected', {
          propValue: propValues[propValues.length - 1],
          selectedProp: this.selectedProp,
          selectedSkuComb: this.selectedSkuComb
        });
      }
    },
    getSkuMessages: function getSkuMessages() {
      return this.$refs.skuMessages ? this.$refs.skuMessages.getMessages() : {};
    },
    getSkuCartMessages: function getSkuCartMessages() {
      return this.$refs.skuMessages ? this.$refs.skuMessages.getCartMessages() : {};
    },
    validateSkuMessages: function validateSkuMessages() {
      return this.$refs.skuMessages ? this.$refs.skuMessages.validateMessages() : '';
    },
    validateSku: function validateSku() {
      if (this.selectedNum === 0) {
        return Sku_t('unavailable');
      }

      if (this.isSkuCombSelected) {
        return this.validateSkuMessages();
      } // 自定义sku校验


      if (this.customSkuValidator) {
        var err = this.customSkuValidator(this);
        if (err) return err;
      }

      return Sku_t('selectSku');
    },
    onSelect: function onSelect(skuValue) {
      var _this6 = this;

      // 点击已选中的sku时则取消选中
      var newSelectedSku = _extends({}, this.selectedSku);

      if (newSelectedSku[skuValue.skuKeyStr] === skuValue.id) {
        newSelectedSku[skuValue.skuKeyStr] = UNSELECTED_SKU_VALUE_ID;
      } else {
        newSelectedSku[skuValue.skuKeyStr] = skuValue.id;
      } // 使用 Vue.set 来确保正确触发响应式更新


      this.selectedSku = newSelectedSku; // 切换sku清空当前选择属性数据，触发prop-clear

      if (this.isSkuProperties) {
        this.selectedProp = {};
        this.onPropClear();
      } // 使用 $nextTick 等待 DOM 更新后再触发事件


      this.$nextTick(function () {
        _this6.$emit('sku-selected', {
          skuValue: skuValue,
          selectedSku: _this6.selectedSku,
          selectedSkuComb: _this6.selectedSkuComb
        });
      });
    },
    onPropClear: function onPropClear() {
      this.$emit('sku-prop-clear');
    },
    onPropSelect: function onPropSelect(propValue) {
      var _extends2;

      var arr = this.selectedProp[propValue.skuKeyStr] || [];
      var pos = arr.indexOf(propValue.id);

      if (pos > -1) {
        arr.splice(pos, 1);
      } else if (propValue.multiple) {
        arr.push(propValue.id);
      } else {
        arr.splice(0, 1, propValue.id);
      }

      this.selectedProp = _extends({}, this.selectedProp, (_extends2 = {}, _extends2[propValue.skuKeyStr] = arr, _extends2));
      this.$emit('sku-prop-selected', {
        propValue: propValue,
        selectedProp: this.selectedProp,
        selectedSkuComb: this.selectedSkuComb
      });
    },
    onNumChange: function onNumChange(num) {
      this.selectedNum = num;
    },
    onPreviewImage: function onPreviewImage(selectedValue) {
      var _this7 = this;

      var imageList = this.imageList;
      var index = 0;
      var indexImage = imageList[0];

      if (selectedValue && selectedValue.imgUrl) {
        this.imageList.some(function (image, pos) {
          if (image === selectedValue.imgUrl) {
            index = pos;
            return true;
          }

          return false;
        });
        indexImage = selectedValue.imgUrl;
      }

      var params = _extends({}, selectedValue, {
        index: index,
        imageList: this.imageList,
        indexImage: indexImage
      });

      this.$emit('open-preview', params);

      if (!this.previewOnClickImage) {
        return;
      }

      image_preview({
        images: this.imageList,
        startPosition: index,
        onClose: function onClose() {
          _this7.$emit('close-preview', params);
        }
      });
    },
    onOverLimit: function onOverLimit(data) {
      var action = data.action,
          limitType = data.limitType,
          quota = data.quota,
          quotaUsed = data.quotaUsed;
      var handleOverLimit = this.customStepperConfig.handleOverLimit;

      if (handleOverLimit) {
        handleOverLimit(data);
        return;
      }

      if (action === 'minus') {
        if (this.startSaleNum > 1) {
          es_toast(Sku_t('minusStartTip', this.startSaleNum));
        } else {
          es_toast(Sku_t('minusTip'));
        }
      } else if (action === 'plus') {
        if (limitType === Sku_QUOTA_LIMIT) {
          if (quotaUsed > 0) {
            es_toast(Sku_t('quotaUsedTip', quota, quotaUsed));
          } else {
            es_toast(Sku_t('quotaTip', quota));
          }
        } else {
          es_toast(Sku_t('soldout'));
        }
      }
    },
    onStepperState: function onStepperState(data) {
      this.stepperError = data.valid ? null : _extends({}, data, {
        action: 'plus'
      });
    },
    onAddCart: function onAddCart() {
      this.onBuyOrAddCart('add-cart');
    },
    onBuy: function onBuy() {
      this.onBuyOrAddCart('buy-clicked');
    },
    onBuyOrAddCart: function onBuyOrAddCart(type) {
      // sku 不符合购买条件
      if (this.stepperError) {
        return this.onOverLimit(this.stepperError);
      }

      var error = this.validateSku();

      if (error) {
        es_toast(error);
      } else {
        this.$emit(type, this.getSkuData());
      }
    },
    // @exposed-api
    getSkuData: function getSkuData() {
      return {
        goodsId: this.goodsId,
        messages: this.getSkuMessages(),
        selectedNum: this.selectedNum,
        cartMessages: this.getSkuCartMessages(),
        selectedSkuComb: this.selectedSkuComb
      };
    },
    // 当 popup 完全打开后执行
    onOpened: function onOpened() {
      this.centerInitialSku();
    },
    centerInitialSku: function centerInitialSku() {
      var _this8 = this;

      (this.$refs.skuRows || []).forEach(function (it) {
        var _ref = it.skuRow || {},
            k_s = _ref.k_s;

        it.centerItem(_this8.initialSku[k_s]);
      });
    }
  },
  render: function render() {
    var _this9 = this;

    var h = arguments[0];

    if (this.isSkuEmpty) {
      return;
    }

    var sku = this.sku,
        skuList = this.skuList,
        goods = this.goods,
        price = this.price,
        lazyLoad = this.lazyLoad,
        originPrice = this.originPrice,
        skuEventBus = this.skuEventBus,
        selectedSku = this.selectedSku,
        selectedProp = this.selectedProp,
        selectedNum = this.selectedNum,
        stepperTitle = this.stepperTitle,
        selectedSkuComb = this.selectedSkuComb,
        showHeaderImage = this.showHeaderImage,
        disableSoldoutSku = this.disableSoldoutSku;
    var slotsProps = {
      price: price,
      originPrice: originPrice,
      selectedNum: selectedNum,
      skuEventBus: skuEventBus,
      selectedSku: selectedSku,
      selectedSkuComb: selectedSkuComb
    };

    var slots = function slots(name) {
      return _this9.slots(name, slotsProps);
    };

    var Header = slots('sku-header') || h(components_SkuHeader, {
      "attrs": {
        "sku": sku,
        "goods": goods,
        "skuEventBus": skuEventBus,
        "selectedSku": selectedSku,
        "showHeaderImage": showHeaderImage
      }
    }, [h("template", {
      "slot": "sku-header-image-extra"
    }, [slots('sku-header-image-extra')]), slots('sku-header-price') || h("div", {
      "class": "van-sku__goods-price"
    }, [h("span", {
      "class": "van-sku__price-symbol"
    }, ["\uFFE5"]), h("span", {
      "class": "van-sku__price-num"
    }, [price]), this.priceTag && h("span", {
      "class": "van-sku__price-tag"
    }, [this.priceTag])]), slots('sku-header-origin-price') || originPrice && h(SkuHeaderItem, [Sku_t('originPrice'), " \uFFE5", originPrice]), !this.hideStock && h(SkuHeaderItem, [h("span", {
      "class": "van-sku__stock"
    }, [this.stockText])]), this.hasSkuOrAttr && !this.hideSelectedText && h(SkuHeaderItem, [this.selectedText]), slots('sku-header-extra')]);
    var Group = slots('sku-group') || this.hasSkuOrAttr && h("div", {
      "class": this.skuGroupClass
    }, [this.skuTree.map(function (skuTreeItem) {
      return h(SkuRow, {
        "attrs": {
          "skuRow": skuTreeItem
        },
        "ref": "skuRows",
        "refInFor": true
      }, [skuTreeItem.v.map(function (skuValue) {
        return h(SkuRowItem, {
          "attrs": {
            "skuList": skuList,
            "lazyLoad": lazyLoad,
            "skuValue": skuValue,
            "skuKeyStr": skuTreeItem.k_s,
            "selectedSku": selectedSku,
            "skuEventBus": skuEventBus,
            "disableSoldoutSku": disableSoldoutSku,
            "largeImageMode": skuTreeItem.largeImageMode
          }
        });
      })]);
    }), this.propList.map(function (skuTreeItem) {
      return h(SkuRow, {
        "attrs": {
          "skuRow": skuTreeItem
        }
      }, [skuTreeItem.v.map(function (skuValue) {
        return h(SkuRowPropItem, {
          "attrs": {
            "skuValue": skuValue,
            "skuKeyStr": skuTreeItem.k_id + '',
            "selectedProp": selectedProp,
            "skuEventBus": skuEventBus,
            "multiple": skuTreeItem.is_multiple,
            "disabled": skuValue.text_status === 0
          }
        });
      })]);
    })]);
    var Stepper = slots('sku-stepper') || h(SkuStepper, {
      "ref": "skuStepper",
      "attrs": {
        "stock": this.stock,
        "quota": this.quota,
        "quotaUsed": this.quotaUsed,
        "startSaleNum": this.startSaleNum,
        "skuEventBus": skuEventBus,
        "selectedNum": selectedNum,
        "stepperTitle": stepperTitle,
        "skuStockNum": sku.stock_num,
        "disableStepperInput": this.disableStepperInput,
        "customStepperConfig": this.customStepperConfig,
        "hideQuotaText": this.hideQuotaText
      },
      "on": {
        "change": function change(event) {
          _this9.$emit('stepper-change', event);
        }
      }
    });
    var Messages = slots('sku-messages') || h(SkuMessages, {
      "ref": "skuMessages",
      "attrs": {
        "goodsId": this.goodsId,
        "messageConfig": this.messageConfig,
        "messages": sku.messages
      }
    });
    var Actions = slots('sku-actions') || h(components_SkuActions, {
      "attrs": {
        "buyText": this.buyText,
        "skuEventBus": skuEventBus,
        "addCartText": this.addCartText,
        "showAddCartBtn": this.showAddCartBtn
      }
    });
    return h(popup, {
      "attrs": {
        "round": true,
        "closeable": true,
        "position": "bottom",
        "getContainer": this.getContainer,
        "closeOnClickOverlay": this.closeOnClickOverlay,
        "safeAreaInsetBottom": this.safeAreaInsetBottom
      },
      "class": "van-sku-container",
      "on": {
        "opened": this.onOpened
      },
      "model": {
        value: _this9.show,
        callback: function callback($$v) {
          _this9.show = $$v;
        }
      }
    }, [Header, h("div", {
      "class": "van-sku-body",
      "style": this.bodyStyle
    }, [slots('sku-body-top'), Group, slots('extra-sku-group'), Stepper, slots('before-sku-messages'), Messages, slots('after-sku-messages')]), slots('sku-actions-top'), Actions]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/sku/index.js
// Utils


 // Components











locale["a" /* default */].add(lang);
Sku.SkuActions = components_SkuActions;
Sku.SkuHeader = components_SkuHeader;
Sku.SkuHeaderItem = SkuHeaderItem;
Sku.SkuMessages = SkuMessages;
Sku.SkuStepper = SkuStepper;
Sku.SkuRow = SkuRow;
Sku.SkuRowItem = SkuRowItem;
Sku.SkuRowPropItem = SkuRowPropItem;
Sku.skuHelper = sku_helper;
Sku.skuConstants = constants;
/* harmony default export */ var es_sku = (Sku);
// CONCATENATED MODULE: ./node_modules/vant/es/slider/index.js







var slider_createNamespace = Object(create["a" /* createNamespace */])('slider'),
    slider_createComponent = slider_createNamespace[0],
    slider_bem = slider_createNamespace[1];

var isSameValue = function isSameValue(newValue, oldValue) {
  return JSON.stringify(newValue) === JSON.stringify(oldValue);
};

/* harmony default export */ var slider = (slider_createComponent({
  mixins: [TouchMixin, FieldMixin],
  props: {
    disabled: Boolean,
    vertical: Boolean,
    range: Boolean,
    barHeight: [Number, String],
    buttonSize: [Number, String],
    activeColor: String,
    inactiveColor: String,
    min: {
      type: [Number, String],
      default: 0
    },
    max: {
      type: [Number, String],
      default: 100
    },
    step: {
      type: [Number, String],
      default: 1
    },
    value: {
      type: [Number, Array],
      default: 0
    }
  },
  data: function data() {
    return {
      dragStatus: ''
    };
  },
  computed: {
    scope: function scope() {
      return this.max - this.min;
    },
    buttonStyle: function buttonStyle() {
      if (this.buttonSize) {
        var size = Object(unit["a" /* addUnit */])(this.buttonSize);
        return {
          width: size,
          height: size
        };
      }
    }
  },
  created: function created() {
    // format initial value
    this.updateValue(this.value);
  },
  mounted: function mounted() {
    if (this.range) {
      this.bindTouchEvent(this.$refs.wrapper0);
      this.bindTouchEvent(this.$refs.wrapper1);
    } else {
      this.bindTouchEvent(this.$refs.wrapper);
    }
  },
  methods: {
    onTouchStart: function onTouchStart(event) {
      if (this.disabled) {
        return;
      }

      this.touchStart(event);
      this.currentValue = this.value;

      if (this.range) {
        this.startValue = this.value.map(this.format);
      } else {
        this.startValue = this.format(this.value);
      }

      this.dragStatus = 'start';
    },
    onTouchMove: function onTouchMove(event) {
      if (this.disabled) {
        return;
      }

      if (this.dragStatus === 'start') {
        this.$emit('drag-start');
      }

      preventDefault(event, true);
      this.touchMove(event);
      this.dragStatus = 'draging';
      var rect = this.$el.getBoundingClientRect();
      var delta = this.vertical ? this.deltaY : this.deltaX;
      var total = this.vertical ? rect.height : rect.width;
      var diff = delta / total * this.scope;

      if (this.range) {
        this.currentValue[this.index] = this.startValue[this.index] + diff;
      } else {
        this.currentValue = this.startValue + diff;
      }

      this.updateValue(this.currentValue);
    },
    onTouchEnd: function onTouchEnd() {
      if (this.disabled) {
        return;
      }

      if (this.dragStatus === 'draging') {
        this.updateValue(this.currentValue, true);
        this.$emit('drag-end');
      }

      this.dragStatus = '';
    },
    onClick: function onClick(event) {
      event.stopPropagation();
      if (this.disabled) return;
      var rect = this.$el.getBoundingClientRect();
      var delta = this.vertical ? event.clientY - rect.top : event.clientX - rect.left;
      var total = this.vertical ? rect.height : rect.width;
      var value = +this.min + delta / total * this.scope;

      if (this.range) {
        var _this$value = this.value,
            left = _this$value[0],
            right = _this$value[1];
        var middle = (left + right) / 2;

        if (value <= middle) {
          left = value;
        } else {
          right = value;
        }

        value = [left, right];
      }

      this.startValue = this.value;
      this.updateValue(value, true);
    },
    // 处理两个滑块重叠之后的情况
    handleOverlap: function handleOverlap(value) {
      if (value[0] > value[1]) {
        value = deepClone(value);
        return value.reverse();
      }

      return value;
    },
    updateValue: function updateValue(value, end) {
      if (this.range) {
        value = this.handleOverlap(value).map(this.format);
      } else {
        value = this.format(value);
      }

      if (!isSameValue(value, this.value)) {
        this.$emit('input', value);
      }

      if (end && !isSameValue(value, this.startValue)) {
        this.$emit('change', value);
      }
    },
    format: function format(value) {
      var min = +this.min;
      var max = +this.max;
      var step = +this.step;
      value = range(value, min, max);
      var diff = Math.round((value - min) / step) * step;
      return addNumber(min, diff);
    }
  },
  render: function render() {
    var _wrapperStyle,
        _this = this,
        _barStyle;

    var h = arguments[0];
    var vertical = this.vertical;
    var mainAxis = vertical ? 'height' : 'width';
    var crossAxis = vertical ? 'width' : 'height';
    var wrapperStyle = (_wrapperStyle = {
      background: this.inactiveColor
    }, _wrapperStyle[crossAxis] = Object(unit["a" /* addUnit */])(this.barHeight), _wrapperStyle); // 计算选中条的长度百分比

    var calcMainAxis = function calcMainAxis() {
      var value = _this.value,
          min = _this.min,
          range = _this.range,
          scope = _this.scope;

      if (range) {
        return (value[1] - value[0]) * 100 / scope + "%";
      }

      return (value - min) * 100 / scope + "%";
    }; // 计算选中条的开始位置的偏移量


    var calcOffset = function calcOffset() {
      var value = _this.value,
          min = _this.min,
          range = _this.range,
          scope = _this.scope;

      if (range) {
        return (value[0] - min) * 100 / scope + "%";
      }

      return null;
    };

    var barStyle = (_barStyle = {}, _barStyle[mainAxis] = calcMainAxis(), _barStyle.left = this.vertical ? null : calcOffset(), _barStyle.top = this.vertical ? calcOffset() : null, _barStyle.background = this.activeColor, _barStyle);

    if (this.dragStatus) {
      barStyle.transition = 'none';
    }

    var renderButton = function renderButton(i) {
      var map = ['left', 'right'];
      var isNumber = typeof i === 'number';
      var current = isNumber ? _this.value[i] : _this.value;

      var getClassName = function getClassName() {
        if (isNumber) {
          return "button-wrapper-" + map[i];
        }

        return "button-wrapper";
      };

      var getRefName = function getRefName() {
        if (isNumber) {
          return "wrapper" + i;
        }

        return "wrapper";
      };

      var renderButtonContent = function renderButtonContent() {
        if (isNumber) {
          var slot = _this.slots(i === 0 ? 'left-button' : 'right-button', {
            value: current
          });

          if (slot) {
            return slot;
          }
        }

        if (_this.slots('button')) {
          return _this.slots('button');
        }

        return h("div", {
          "class": slider_bem('button'),
          "style": _this.buttonStyle
        });
      };

      return h("div", {
        "ref": getRefName(),
        "attrs": {
          "role": "slider",
          "tabindex": _this.disabled ? -1 : 0,
          "aria-valuemin": _this.min,
          "aria-valuenow": _this.value,
          "aria-valuemax": _this.max,
          "aria-orientation": _this.vertical ? 'vertical' : 'horizontal'
        },
        "class": slider_bem(getClassName()),
        "on": {
          "touchstart": function touchstart() {
            if (isNumber) {
              // 保存当前按钮的索引
              _this.index = i;
            }
          },
          "click": function click(e) {
            return e.stopPropagation();
          }
        }
      }, [renderButtonContent()]);
    };

    return h("div", {
      "style": wrapperStyle,
      "class": slider_bem({
        disabled: this.disabled,
        vertical: vertical
      }),
      "on": {
        "click": this.onClick
      }
    }, [h("div", {
      "class": slider_bem('bar'),
      "style": barStyle
    }, [this.range ? [renderButton(0), renderButton(1)] : renderButton()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/step/index.js





var step_createNamespace = Object(create["a" /* createNamespace */])('step'),
    step_createComponent = step_createNamespace[0],
    step_bem = step_createNamespace[1];

/* harmony default export */ var es_step = (step_createComponent({
  mixins: [ChildrenMixin('vanSteps')],
  computed: {
    status: function status() {
      if (this.index < this.parent.active) {
        return 'finish';
      }

      if (this.index === +this.parent.active) {
        return 'process';
      }
    },
    active: function active() {
      return this.status === 'process';
    },
    lineStyle: function lineStyle() {
      var _this$parent = this.parent,
          activeColor = _this$parent.activeColor,
          inactiveColor = _this$parent.inactiveColor,
          center = _this$parent.center,
          direction = _this$parent.direction;
      var style = {
        background: this.status === 'finish' ? activeColor : inactiveColor
      };

      if (center && direction === 'vertical') {
        style.top = '50%';
      }

      return style;
    },
    circleContainerStyle: function circleContainerStyle() {
      if (this.parent.center && this.parent.direction === 'vertical') {
        return {
          top: '50%'
        };
      }
    },
    titleStyle: function titleStyle() {
      if (this.active) {
        return {
          color: this.parent.activeColor
        };
      }

      if (!this.status) {
        return {
          color: this.parent.inactiveColor
        };
      }
    }
  },
  methods: {
    genCircle: function genCircle() {
      var h = this.$createElement;
      var _this$parent2 = this.parent,
          activeIcon = _this$parent2.activeIcon,
          iconPrefix = _this$parent2.iconPrefix,
          activeColor = _this$parent2.activeColor,
          finishIcon = _this$parent2.finishIcon,
          inactiveIcon = _this$parent2.inactiveIcon;

      if (this.active) {
        return this.slots('active-icon') || h(es_icon, {
          "class": step_bem('icon', 'active'),
          "attrs": {
            "name": activeIcon,
            "color": activeColor,
            "classPrefix": iconPrefix
          }
        });
      }

      var finishIconSlot = this.slots('finish-icon');

      if (this.status === 'finish' && (finishIcon || finishIconSlot)) {
        return finishIconSlot || h(es_icon, {
          "class": step_bem('icon', 'finish'),
          "attrs": {
            "name": finishIcon,
            "color": activeColor,
            "classPrefix": iconPrefix
          }
        });
      }

      var inactiveIconSlot = this.slots('inactive-icon');

      if (inactiveIcon || inactiveIconSlot) {
        return inactiveIconSlot || h(es_icon, {
          "class": step_bem('icon'),
          "attrs": {
            "name": inactiveIcon,
            "classPrefix": iconPrefix
          }
        });
      }

      return h("i", {
        "class": step_bem('circle'),
        "style": this.lineStyle
      });
    },
    onClickStep: function onClickStep() {
      this.parent.$emit('click-step', this.index);
    }
  },
  render: function render() {
    var _ref;

    var h = arguments[0];
    var status = this.status,
        active = this.active;
    var direction = this.parent.direction;
    return h("div", {
      "class": [BORDER, step_bem([direction, (_ref = {}, _ref[status] = status, _ref)])]
    }, [h("div", {
      "class": step_bem('title', {
        active: active
      }),
      "style": this.titleStyle,
      "on": {
        "click": this.onClickStep
      }
    }, [this.slots()]), h("div", {
      "class": step_bem('circle-container'),
      "on": {
        "click": this.onClickStep
      },
      "style": this.circleContainerStyle
    }, [this.genCircle()]), h("div", {
      "class": step_bem('line'),
      "style": this.lineStyle
    })]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/steps/index.js



var steps_createNamespace = Object(create["a" /* createNamespace */])('steps'),
    steps_createComponent = steps_createNamespace[0],
    steps_bem = steps_createNamespace[1];

/* harmony default export */ var steps = (steps_createComponent({
  mixins: [ParentMixin('vanSteps')],
  props: {
    center: Boolean,
    iconPrefix: String,
    finishIcon: String,
    activeColor: String,
    inactiveIcon: String,
    inactiveColor: String,
    active: {
      type: [Number, String],
      default: 0
    },
    direction: {
      type: String,
      default: 'horizontal'
    },
    activeIcon: {
      type: String,
      default: 'checked'
    }
  },
  render: function render() {
    var h = arguments[0];
    return h("div", {
      "class": steps_bem([this.direction])
    }, [h("div", {
      "class": steps_bem('items')
    }, [this.slots()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/submit-bar/index.js

// Utils

 // Components


 // Types

var submit_bar_createNamespace = Object(create["a" /* createNamespace */])('submit-bar'),
    submit_bar_createComponent = submit_bar_createNamespace[0],
    submit_bar_bem = submit_bar_createNamespace[1],
    submit_bar_t = submit_bar_createNamespace[2];

function SubmitBar(h, props, slots, ctx) {
  var tip = props.tip,
      price = props.price,
      tipIcon = props.tipIcon;

  function Text() {
    if (typeof price === 'number') {
      var priceArr = (price / 100).toFixed(props.decimalLength).split('.');
      var decimalStr = props.decimalLength ? "." + priceArr[1] : '';
      return h("div", {
        "style": {
          textAlign: props.textAlign ? props.textAlign : ''
        },
        "class": submit_bar_bem('text')
      }, [h("span", [props.label || submit_bar_t('label')]), h("span", {
        "class": submit_bar_bem('price')
      }, [props.currency, h("span", {
        "class": submit_bar_bem('price', 'integer')
      }, [priceArr[0]]), decimalStr]), props.suffixLabel && h("span", {
        "class": submit_bar_bem('suffix-label')
      }, [props.suffixLabel])]);
    }
  }

  function Tip() {
    if (slots.tip || tip) {
      return h("div", {
        "class": submit_bar_bem('tip')
      }, [tipIcon && h(es_icon, {
        "class": submit_bar_bem('tip-icon'),
        "attrs": {
          "name": tipIcon
        }
      }), tip && h("span", {
        "class": submit_bar_bem('tip-text')
      }, [tip]), slots.tip && slots.tip()]);
    }
  }

  return h("div", helper_default()([{
    "class": submit_bar_bem({
      unfit: !props.safeAreaInsetBottom
    })
  }, inherit(ctx)]), [slots.top && slots.top(), Tip(), h("div", {
    "class": submit_bar_bem('bar')
  }, [slots.default && slots.default(), Text(), slots.button ? slots.button() : h(es_button, {
    "attrs": {
      "round": true,
      "type": props.buttonType,
      "text": props.loading ? '' : props.buttonText,
      "color": props.buttonColor,
      "loading": props.loading,
      "disabled": props.disabled
    },
    "class": submit_bar_bem('button', props.buttonType),
    "on": {
      "click": function click() {
        functional_emit(ctx, 'submit');
      }
    }
  })])]);
}

SubmitBar.props = {
  tip: String,
  label: String,
  price: Number,
  tipIcon: String,
  loading: Boolean,
  disabled: Boolean,
  textAlign: String,
  buttonText: String,
  buttonColor: String,
  suffixLabel: String,
  safeAreaInsetBottom: {
    type: Boolean,
    default: true
  },
  decimalLength: {
    type: [Number, String],
    default: 2
  },
  currency: {
    type: String,
    default: '¥'
  },
  buttonType: {
    type: String,
    default: 'danger'
  }
};
/* harmony default export */ var submit_bar = (submit_bar_createComponent(SubmitBar));
// CONCATENATED MODULE: ./node_modules/vant/es/swipe-cell/index.js
// Utils


 // Mixins




var swipe_cell_createNamespace = Object(create["a" /* createNamespace */])('swipe-cell'),
    swipe_cell_createComponent = swipe_cell_createNamespace[0],
    swipe_cell_bem = swipe_cell_createNamespace[1];

var THRESHOLD = 0.15;
/* harmony default export */ var swipe_cell = (swipe_cell_createComponent({
  mixins: [TouchMixin, click_outside_ClickOutsideMixin({
    event: 'touchstart',
    method: 'onClick'
  })],
  props: {
    // @deprecated
    // should be removed in next major version, use beforeClose instead
    onClose: Function,
    disabled: Boolean,
    leftWidth: [Number, String],
    rightWidth: [Number, String],
    beforeClose: Function,
    stopPropagation: Boolean,
    name: {
      type: [Number, String],
      default: ''
    }
  },
  data: function data() {
    return {
      offset: 0,
      dragging: false
    };
  },
  computed: {
    computedLeftWidth: function computedLeftWidth() {
      return +this.leftWidth || this.getWidthByRef('left');
    },
    computedRightWidth: function computedRightWidth() {
      return +this.rightWidth || this.getWidthByRef('right');
    }
  },
  mounted: function mounted() {
    this.bindTouchEvent(this.$el);
  },
  methods: {
    getWidthByRef: function getWidthByRef(ref) {
      if (this.$refs[ref]) {
        var rect = this.$refs[ref].getBoundingClientRect();
        return rect.width;
      }

      return 0;
    },
    // @exposed-api
    open: function open(position) {
      var offset = position === 'left' ? this.computedLeftWidth : -this.computedRightWidth;
      this.opened = true;
      this.offset = offset;
      this.$emit('open', {
        position: position,
        name: this.name,
        // @deprecated
        // should be removed in next major version
        detail: this.name
      });
    },
    // @exposed-api
    close: function close(position) {
      this.offset = 0;

      if (this.opened) {
        this.opened = false;
        this.$emit('close', {
          position: position,
          name: this.name
        });
      }
    },
    onTouchStart: function onTouchStart(event) {
      if (this.disabled) {
        return;
      }

      this.startOffset = this.offset;
      this.touchStart(event);
    },
    onTouchMove: function onTouchMove(event) {
      if (this.disabled) {
        return;
      }

      this.touchMove(event);

      if (this.direction === 'horizontal') {
        this.dragging = true;
        this.lockClick = true;
        var isPrevent = !this.opened || this.deltaX * this.startOffset < 0;

        if (isPrevent) {
          preventDefault(event, this.stopPropagation);
        }

        this.offset = range(this.deltaX + this.startOffset, -this.computedRightWidth, this.computedLeftWidth);
      }
    },
    onTouchEnd: function onTouchEnd() {
      var _this = this;

      if (this.disabled) {
        return;
      }

      if (this.dragging) {
        this.toggle(this.offset > 0 ? 'left' : 'right');
        this.dragging = false; // compatible with desktop scenario

        setTimeout(function () {
          _this.lockClick = false;
        }, 0);
      }
    },
    toggle: function toggle(direction) {
      var offset = Math.abs(this.offset);
      var threshold = this.opened ? 1 - THRESHOLD : THRESHOLD;
      var computedLeftWidth = this.computedLeftWidth,
          computedRightWidth = this.computedRightWidth;

      if (computedRightWidth && direction === 'right' && offset > computedRightWidth * threshold) {
        this.open('right');
      } else if (computedLeftWidth && direction === 'left' && offset > computedLeftWidth * threshold) {
        this.open('left');
      } else {
        this.close();
      }
    },
    onClick: function onClick(position) {
      if (position === void 0) {
        position = 'outside';
      }

      this.$emit('click', position);

      if (this.opened && !this.lockClick) {
        if (this.beforeClose) {
          this.beforeClose({
            position: position,
            name: this.name,
            instance: this
          });
        } else if (this.onClose) {
          this.onClose(position, this, {
            name: this.name
          });
        } else {
          this.close(position);
        }
      }
    },
    getClickHandler: function getClickHandler(position, stop) {
      var _this2 = this;

      return function (event) {
        if (stop) {
          event.stopPropagation();
        }

        _this2.onClick(position);
      };
    },
    genLeftPart: function genLeftPart() {
      var h = this.$createElement;
      var content = this.slots('left');

      if (content) {
        return h("div", {
          "ref": "left",
          "class": swipe_cell_bem('left'),
          "on": {
            "click": this.getClickHandler('left', true)
          }
        }, [content]);
      }
    },
    genRightPart: function genRightPart() {
      var h = this.$createElement;
      var content = this.slots('right');

      if (content) {
        return h("div", {
          "ref": "right",
          "class": swipe_cell_bem('right'),
          "on": {
            "click": this.getClickHandler('right', true)
          }
        }, [content]);
      }
    }
  },
  render: function render() {
    var h = arguments[0];
    var wrapperStyle = {
      transform: "translate3d(" + this.offset + "px, 0, 0)",
      transitionDuration: this.dragging ? '0s' : '.6s'
    };
    return h("div", {
      "class": swipe_cell_bem(),
      "on": {
        "click": this.getClickHandler('cell')
      }
    }, [h("div", {
      "class": swipe_cell_bem('wrapper'),
      "style": wrapperStyle
    }, [this.genLeftPart(), this.slots(), this.genRightPart()])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/switch-cell/index.js


// Utils

 // Components



 // Types

var switch_cell_createNamespace = Object(create["a" /* createNamespace */])('switch-cell'),
    switch_cell_createComponent = switch_cell_createNamespace[0],
    switch_cell_bem = switch_cell_createNamespace[1];

function SwitchCell(h, props, slots, ctx) {
  if (false) {}

  return h(cell, helper_default()([{
    "attrs": {
      "center": true,
      "size": props.cellSize,
      "title": props.title,
      "border": props.border
    },
    "class": switch_cell_bem([props.cellSize])
  }, inherit(ctx)]), [h(es_switch, {
    "props": _extends({}, props),
    "on": _extends({}, ctx.listeners)
  })]);
}

SwitchCell.props = _extends({}, switchProps, {
  title: String,
  cellSize: String,
  border: {
    type: Boolean,
    default: true
  },
  size: {
    type: String,
    default: '24px'
  }
});
/* harmony default export */ var switch_cell = (switch_cell_createComponent(SwitchCell));
// CONCATENATED MODULE: ./node_modules/vant/es/tabbar/index.js





var tabbar_createNamespace = Object(create["a" /* createNamespace */])('tabbar'),
    tabbar_createComponent = tabbar_createNamespace[0],
    tabbar_bem = tabbar_createNamespace[1];

/* harmony default export */ var tabbar = (tabbar_createComponent({
  mixins: [ParentMixin('vanTabbar')],
  props: {
    route: Boolean,
    zIndex: [Number, String],
    placeholder: Boolean,
    activeColor: String,
    beforeChange: Function,
    inactiveColor: String,
    value: {
      type: [Number, String],
      default: 0
    },
    border: {
      type: Boolean,
      default: true
    },
    fixed: {
      type: Boolean,
      default: true
    },
    safeAreaInsetBottom: {
      type: Boolean,
      default: null
    }
  },
  data: function data() {
    return {
      height: null
    };
  },
  computed: {
    fit: function fit() {
      if (this.safeAreaInsetBottom !== null) {
        return this.safeAreaInsetBottom;
      } // enable safe-area-inset-bottom by default when fixed


      return this.fixed;
    }
  },
  watch: {
    value: 'setActiveItem',
    children: 'setActiveItem'
  },
  mounted: function mounted() {
    var _this = this;

    if (this.placeholder && this.fixed) {
      var setHeight = function setHeight() {
        _this.height = _this.$refs.tabbar.getBoundingClientRect().height;
      };

      setHeight(); // https://github.com/vant-ui/vant/issues/10131

      setTimeout(setHeight, 100);
    }
  },
  methods: {
    setActiveItem: function setActiveItem() {
      var _this2 = this;

      this.children.forEach(function (item, index) {
        item.nameMatched = item.name === _this2.value || index === _this2.value;
      });
    },
    triggerChange: function triggerChange(active, afterChange) {
      var _this3 = this;

      callInterceptor({
        interceptor: this.beforeChange,
        args: [active],
        done: function done() {
          _this3.$emit('input', active);

          _this3.$emit('change', active);

          afterChange();
        }
      });
    },
    genTabbar: function genTabbar() {
      var _ref;

      var h = this.$createElement;
      return h("div", {
        "ref": "tabbar",
        "style": {
          zIndex: this.zIndex
        },
        "class": [(_ref = {}, _ref[BORDER_TOP_BOTTOM] = this.border, _ref), tabbar_bem({
          unfit: !this.fit,
          fixed: this.fixed
        })]
      }, [this.slots()]);
    }
  },
  render: function render() {
    var h = arguments[0];

    if (this.placeholder && this.fixed) {
      return h("div", {
        "class": tabbar_bem('placeholder'),
        "style": {
          height: this.height + "px"
        }
      }, [this.genTabbar()]);
    }

    return this.genTabbar();
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/tabbar-item/index.js

// Utils

 // Mixins

 // Components




var tabbar_item_createNamespace = Object(create["a" /* createNamespace */])('tabbar-item'),
    tabbar_item_createComponent = tabbar_item_createNamespace[0],
    tabbar_item_bem = tabbar_item_createNamespace[1];

/* harmony default export */ var tabbar_item = (tabbar_item_createComponent({
  mixins: [ChildrenMixin('vanTabbar')],
  props: _extends({}, routeProps, {
    dot: Boolean,
    icon: String,
    name: [Number, String],
    // @deprecated
    info: [Number, String],
    badge: [Number, String],
    iconPrefix: String
  }),
  data: function data() {
    return {
      nameMatched: false
    };
  },
  computed: {
    active: function active() {
      var routeMode = this.parent.route;

      if (routeMode && '$route' in this) {
        var to = this.to,
            $route = this.$route;
        var config = Object(utils["f" /* isObject */])(to) ? to : {
          path: to
        };
        return !!$route.matched.find(function (r) {
          // vue-router 3.x $route.matched[0].path is empty in / and its children paths
          var path = r.path === '' ? '/' : r.path;
          var pathMatched = config.path === path;
          var nameMatched = Object(utils["c" /* isDef */])(config.name) && config.name === r.name;
          return pathMatched || nameMatched;
        });
      }

      return this.nameMatched;
    }
  },
  methods: {
    onClick: function onClick(event) {
      var _this = this;

      if (!this.active) {
        this.parent.triggerChange(this.name || this.index, function () {
          route(_this.$router, _this);
        });
      }

      this.$emit('click', event);
    },
    genIcon: function genIcon() {
      var h = this.$createElement;
      var slot = this.slots('icon', {
        active: this.active
      });

      if (slot) {
        return slot;
      }

      if (this.icon) {
        return h(es_icon, {
          "attrs": {
            "name": this.icon,
            "classPrefix": this.iconPrefix
          }
        });
      }
    }
  },
  render: function render() {
    var _this$badge;

    var h = arguments[0];
    var active = this.active;
    var color = this.parent[active ? 'activeColor' : 'inactiveColor'];

    if (false) {}

    return h("div", {
      "class": tabbar_item_bem({
        active: active
      }),
      "style": {
        color: color
      },
      "on": {
        "click": this.onClick
      }
    }, [h("div", {
      "class": tabbar_item_bem('icon')
    }, [this.genIcon(), h(es_info, {
      "attrs": {
        "dot": this.dot,
        "info": (_this$badge = this.badge) != null ? _this$badge : this.info
      }
    })]), h("div", {
      "class": tabbar_item_bem('text')
    }, [this.slots('default', {
      active: active
    })])]);
  }
}));
// CONCATENATED MODULE: ./node_modules/vant/es/tree-select/index.js

// Utils

 // Components



 // Types

var tree_select_createNamespace = Object(create["a" /* createNamespace */])('tree-select'),
    tree_select_createComponent = tree_select_createNamespace[0],
    tree_select_bem = tree_select_createNamespace[1];

function TreeSelect(h, props, slots, ctx) {
  var items = props.items,
      height = props.height,
      activeId = props.activeId,
      selectedIcon = props.selectedIcon,
      mainActiveIndex = props.mainActiveIndex;

  if (false) {}

  var selectedItem = items[+mainActiveIndex] || {};
  var subItems = selectedItem.children || [];
  var isMultiple = Array.isArray(activeId);

  function isActiveItem(id) {
    return isMultiple ? activeId.indexOf(id) !== -1 : activeId === id;
  }

  var Navs = items.map(function (item) {
    var _item$badge;

    return h(sidebar_item, {
      "attrs": {
        "dot": item.dot,
        "info": (_item$badge = item.badge) != null ? _item$badge : item.info,
        "title": item.text,
        "disabled": item.disabled
      },
      "class": [tree_select_bem('nav-item'), item.className]
    });
  });

  function Content() {
    if (slots.content) {
      return slots.content();
    }

    return subItems.map(function (item) {
      return h("div", {
        "key": item.id,
        "class": ['van-ellipsis', tree_select_bem('item', {
          active: isActiveItem(item.id),
          disabled: item.disabled
        })],
        "on": {
          "click": function click() {
            if (!item.disabled) {
              var newActiveId = item.id;

              if (isMultiple) {
                newActiveId = activeId.slice();
                var index = newActiveId.indexOf(item.id);

                if (index !== -1) {
                  newActiveId.splice(index, 1);
                } else if (newActiveId.length < props.max) {
                  newActiveId.push(item.id);
                }
              }

              functional_emit(ctx, 'update:active-id', newActiveId);
              functional_emit(ctx, 'click-item', item); // compatible with legacy usage, should be removed in next major version

              functional_emit(ctx, 'itemclick', item);
            }
          }
        }
      }, [item.text, isActiveItem(item.id) && h(es_icon, {
        "attrs": {
          "name": selectedIcon
        },
        "class": tree_select_bem('selected')
      })]);
    });
  }

  return h("div", helper_default()([{
    "class": tree_select_bem(),
    "style": {
      height: Object(unit["a" /* addUnit */])(height)
    }
  }, inherit(ctx)]), [h(sidebar, {
    "class": tree_select_bem('nav'),
    "attrs": {
      "activeKey": mainActiveIndex
    },
    "on": {
      "change": function change(index) {
        functional_emit(ctx, 'update:main-active-index', index);
        functional_emit(ctx, 'click-nav', index); // compatible with legacy usage, should be removed in next major version

        functional_emit(ctx, 'navclick', index);
      }
    }
  }, [Navs]), h("div", {
    "class": tree_select_bem('content')
  }, [Content()])]);
}

TreeSelect.props = {
  max: {
    type: [Number, String],
    default: Infinity
  },
  items: {
    type: Array,
    default: function _default() {
      return [];
    }
  },
  height: {
    type: [Number, String],
    default: 300
  },
  activeId: {
    type: [Number, String, Array],
    default: 0
  },
  selectedIcon: {
    type: String,
    default: 'success'
  },
  mainActiveIndex: {
    type: [Number, String],
    default: 0
  }
};
/* harmony default export */ var tree_select = (tree_select_createComponent(TreeSelect));
// CONCATENATED MODULE: ./node_modules/vant/es/index.js

























































































var version = '2.13.9';

function install(Vue) {
  var components = [action_sheet, address_edit, address_list, es_area, badge, es_button, calendar, card, cascader, cell, cell_group, es_checkbox, checkbox_group, circle, col, collapse, collapse_item, contact_card, contact_edit, contact_list, count_down, es_coupon, coupon_cell, coupon_list, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, es_form, goods_action, goods_action_button, goods_action_icon, grid, grid_item, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, es_list, es_loading, locale["a" /* default */], nav_bar, notice_bar, notify, number_keyboard, es_overlay, pagination, panel, password_input, es_picker, popover, popup, es_progress, pull_refresh, es_radio, radio_group, es_rate, row, search, share_sheet, sidebar, sidebar_item, skeleton, es_sku, slider, es_step, stepper, steps, es_sticky, submit_bar, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, tabs, es_tag, es_toast, tree_select, uploader];
  components.forEach(function (item) {
    if (item.install) {
      Vue.use(item);
    } else if (item.name) {
      Vue.component(item.name, item);
    }
  });
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}


/* harmony default export */ var es = __webpack_exports__["default"] = ({
  install: install,
  version: version
});
// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createNamespace; });

// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/bem.js
/**
 * bem helper
 * b() // 'button'
 * b('text') // 'button__text'
 * b({ disabled }) // 'button button--disabled'
 * b('text', { disabled }) // 'button__text button__text--disabled'
 * b(['disabled', 'primary']) // 'button button--disabled button--primary'
 */
function gen(name, mods) {
  if (!mods) {
    return '';
  }

  if (typeof mods === 'string') {
    return " " + name + "--" + mods;
  }

  if (Array.isArray(mods)) {
    return mods.reduce(function (ret, item) {
      return ret + gen(name, item);
    }, '');
  }

  return Object.keys(mods).reduce(function (ret, key) {
    return ret + (mods[key] ? gen(name, key) : '');
  }, '');
}

function createBEM(name) {
  return function (el, mods) {
    if (el && typeof el !== 'string') {
      mods = el;
      el = '';
    }

    el = el ? name + "__" + el : name;
    return "" + el + gen(el, mods);
  };
}
// EXTERNAL MODULE: ./node_modules/vant/es/utils/index.js
var utils = __webpack_require__(6);

// EXTERNAL MODULE: ./node_modules/vant/es/utils/format/string.js
var string = __webpack_require__(37);

// CONCATENATED MODULE: ./node_modules/vant/es/mixins/slots.js
/**
 * Use scopedSlots in Vue 2.6+
 * downgrade to slots in lower version
 */
var SlotsMixin = {
  methods: {
    slots: function slots(name, props) {
      if (name === void 0) {
        name = 'default';
      }

      var $slots = this.$slots,
          $scopedSlots = this.$scopedSlots;
      var scopedSlot = $scopedSlots[name];

      if (scopedSlot) {
        return scopedSlot(props);
      }

      return $slots[name];
    }
  }
};
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/component.js
/**
 * Create a basic component with common options
 */






function install(Vue) {
  var name = this.name;
  Vue.component(name, this);
  Vue.component(Object(string["a" /* camelize */])("-" + name), this);
} // unify slots & scopedSlots


function unifySlots(context) {
  // use data.scopedSlots in lower Vue version
  var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  var slots = context.slots();
  Object.keys(slots).forEach(function (key) {
    if (!scopedSlots[key]) {
      scopedSlots[key] = function () {
        return slots[key];
      };
    }
  });
  return scopedSlots;
} // should be removed after Vue 3

function transformFunctionComponent(pure) {
  return {
    functional: true,
    props: pure.props,
    model: pure.model,
    render: function render(h, context) {
      return pure(h, context.props, unifySlots(context), context);
    }
  };
}

function createComponent(name) {
  return function (sfc) {
    if (Object(utils["e" /* isFunction */])(sfc)) {
      sfc = transformFunctionComponent(sfc);
    }

    if (!sfc.functional) {
      sfc.mixins = sfc.mixins || [];
      sfc.mixins.push(SlotsMixin);
    }

    sfc.name = name;
    sfc.install = install;
    return sfc;
  };
}
// EXTERNAL MODULE: ./node_modules/vant/es/locale/index.js + 2 modules
var locale = __webpack_require__(123);

// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/i18n.js



function createI18N(name) {
  var prefix = Object(string["a" /* camelize */])(name) + '.';
  return function (path) {
    var messages = locale["a" /* default */].messages();
    var message = Object(utils["a" /* get */])(messages, prefix + path) || Object(utils["a" /* get */])(messages, path);

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return Object(utils["e" /* isFunction */])(message) ? message.apply(void 0, args) : message;
  };
}
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/index.js



function createNamespace(name) {
  name = 'van-' + name;
  return [createComponent(name), createBEM(name), createI18N(name)];
}
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.js
var vue = __webpack_require__(22);
var vue_default = /*#__PURE__*/__webpack_require__.n(vue);

// EXTERNAL MODULE: ./node_modules/vant/es/utils/index.js
var utils = __webpack_require__(6);

// CONCATENATED MODULE: ./node_modules/vant/es/utils/deep-assign.js

var deep_assign_hasOwnProperty = Object.prototype.hasOwnProperty;

function assignKey(to, from, key) {
  var val = from[key];

  if (!Object(utils["c" /* isDef */])(val)) {
    return;
  }

  if (!deep_assign_hasOwnProperty.call(to, key) || !Object(utils["f" /* isObject */])(val)) {
    to[key] = val;
  } else {
    // eslint-disable-next-line @typescript-eslint/no-use-before-define
    to[key] = deepAssign(Object(to[key]), from[key]);
  }
}

function deepAssign(to, from) {
  Object.keys(from).forEach(function (key) {
    assignKey(to, from, key);
  });
  return to;
}
// CONCATENATED MODULE: ./node_modules/vant/es/locale/lang/zh-CN.js
/* harmony default export */ var zh_CN = ({
  name: '姓名',
  tel: '电话',
  save: '保存',
  confirm: '确认',
  cancel: '取消',
  delete: '删除',
  complete: '完成',
  loading: '加载中...',
  telEmpty: '请填写电话',
  nameEmpty: '请填写姓名',
  nameInvalid: '请输入正确的姓名',
  confirmDelete: '确定要删除吗',
  telInvalid: '请输入正确的手机号',
  vanCalendar: {
    end: '结束',
    start: '开始',
    title: '日期选择',
    confirm: '确定',
    startEnd: '开始/结束',
    weekdays: ['日', '一', '二', '三', '四', '五', '六'],
    monthTitle: function monthTitle(year, month) {
      return year + "\u5E74" + month + "\u6708";
    },
    rangePrompt: function rangePrompt(maxRange) {
      return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
    }
  },
  vanCascader: {
    select: '请选择'
  },
  vanContactCard: {
    addText: '添加联系人'
  },
  vanContactList: {
    addText: '新建联系人'
  },
  vanPagination: {
    prev: '上一页',
    next: '下一页'
  },
  vanPullRefresh: {
    pulling: '下拉即可刷新...',
    loosing: '释放即可刷新...'
  },
  vanSubmitBar: {
    label: '合计：'
  },
  vanCoupon: {
    unlimited: '无使用门槛',
    discount: function discount(_discount) {
      return _discount + "\u6298";
    },
    condition: function condition(_condition) {
      return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
    }
  },
  vanCouponCell: {
    title: '优惠券',
    tips: '暂无可用',
    count: function count(_count) {
      return _count + "\u5F20\u53EF\u7528";
    }
  },
  vanCouponList: {
    empty: '暂无优惠券',
    exchange: '兑换',
    close: '不使用优惠券',
    enable: '可用',
    disabled: '不可用',
    placeholder: '请输入优惠码'
  },
  vanAddressEdit: {
    area: '地区',
    postal: '邮政编码',
    areaEmpty: '请选择地区',
    addressEmpty: '请填写详细地址',
    postalEmpty: '邮政编码格式不正确',
    defaultAddress: '设为默认收货地址',
    telPlaceholder: '收货人手机号',
    namePlaceholder: '收货人姓名',
    areaPlaceholder: '选择省 / 市 / 区'
  },
  vanAddressEditDetail: {
    label: '详细地址',
    placeholder: '街道门牌、楼层房间号等信息'
  },
  vanAddressList: {
    add: '新增地址'
  }
});
// CONCATENATED MODULE: ./node_modules/vant/es/locale/index.js



var proto = vue_default.a.prototype;
var defineReactive = vue_default.a.util.defineReactive;
defineReactive(proto, '$vantLang', 'zh-CN');
defineReactive(proto, '$vantMessages', {
  'zh-CN': zh_CN
});
/* harmony default export */ var locale = __webpack_exports__["a"] = ({
  messages: function messages() {
    return proto.$vantMessages[proto.$vantLang];
  },
  use: function use(lang, messages) {
    var _this$add;

    proto.$vantLang = lang;
    this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
  },
  add: function add(messages) {
    if (messages === void 0) {
      messages = {};
    }

    deepAssign(proto.$vantMessages, messages);
  }
});
/*# sourceMappingURL=app.374214c5f6f64768c7e7.css.map*/